diff --git a/pr-preview/pr-945/404.html b/pr-preview/pr-945/404.html index 1976be6493b..8def2027497 100644 --- a/pr-preview/pr-945/404.html +++ b/pr-preview/pr-945/404.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/assets/js/14485.a02fadd4.js b/pr-preview/pr-945/assets/js/14485.a02fadd4.js new file mode 100644 index 00000000000..c5a7fe6c1b0 --- /dev/null +++ b/pr-preview/pr-945/assets/js/14485.a02fadd4.js @@ -0,0 +1,2 @@ +/*! For license information please see 14485.a02fadd4.js.LICENSE.txt */ +(self.webpackChunkpush_website=self.webpackChunkpush_website||[]).push([[14485],{230972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(974512);function n(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function s(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function o(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function a(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function h(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function l(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function p(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),u(e/4294967296>>>0,t,r),u(e>>>0,t,r+4),t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),l(e>>>0,t,r),l(e/4294967296>>>0,t,r+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=n,t.writeInt16BE=n,t.writeUint16LE=s,t.writeInt16LE=s,t.readInt32BE=o,t.readUint32BE=a,t.readInt32LE=c,t.readUint32LE=h,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=l,t.writeInt32LE=l,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=o(e,t),i=o(e,t+4);return 4294967296*r+i-4294967296*(i>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*a(e,t)+a(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 4294967296*c(e,t+4)+r-4294967296*(r>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=h(e,t);return 4294967296*h(e,t+4)+r},t.writeUint64BE=p,t.writeInt64BE=p,t.writeUint64LE=d,t.writeInt64LE=d,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var i=0,n=1,s=e/8+r-1;s>=r;s--)i+=t[s]*n,n*=256;return i},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var i=0,n=1,s=r;s=n;o--)r[o]=t/s&255,s*=256;return r},t.writeUintLE=function(e,t,r,n){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===n&&(n=0),e%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!i.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var s=1,o=n;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(230972),n=r(276228);function s(e,t,r){for(var n=1634760805,s=857760878,o=2036477234,a=1797285236,c=r[3]<<24|r[2]<<16|r[1]<<8|r[0],h=r[7]<<24|r[6]<<16|r[5]<<8|r[4],u=r[11]<<24|r[10]<<16|r[9]<<8|r[8],l=r[15]<<24|r[14]<<16|r[13]<<8|r[12],p=r[19]<<24|r[18]<<16|r[17]<<8|r[16],d=r[23]<<24|r[22]<<16|r[21]<<8|r[20],f=r[27]<<24|r[26]<<16|r[25]<<8|r[24],g=r[31]<<24|r[30]<<16|r[29]<<8|r[28],y=t[3]<<24|t[2]<<16|t[1]<<8|t[0],v=t[7]<<24|t[6]<<16|t[5]<<8|t[4],m=t[11]<<24|t[10]<<16|t[9]<<8|t[8],w=t[15]<<24|t[14]<<16|t[13]<<8|t[12],b=n,_=s,E=o,I=a,S=c,P=h,O=u,x=l,T=p,A=d,R=f,N=g,C=y,j=v,k=m,M=w,L=0;L<20;L+=2)S=(S^=T=T+(C=(C^=b=b+S|0)>>>16|C<<16)|0)>>>20|S<<12,P=(P^=A=A+(j=(j^=_=_+P|0)>>>16|j<<16)|0)>>>20|P<<12,O=(O^=R=R+(k=(k^=E=E+O|0)>>>16|k<<16)|0)>>>20|O<<12,x=(x^=N=N+(M=(M^=I=I+x|0)>>>16|M<<16)|0)>>>20|x<<12,O=(O^=R=R+(k=(k^=E=E+O|0)>>>24|k<<8)|0)>>>25|O<<7,x=(x^=N=N+(M=(M^=I=I+x|0)>>>24|M<<8)|0)>>>25|x<<7,P=(P^=A=A+(j=(j^=_=_+P|0)>>>24|j<<8)|0)>>>25|P<<7,S=(S^=T=T+(C=(C^=b=b+S|0)>>>24|C<<8)|0)>>>25|S<<7,P=(P^=R=R+(M=(M^=b=b+P|0)>>>16|M<<16)|0)>>>20|P<<12,O=(O^=N=N+(C=(C^=_=_+O|0)>>>16|C<<16)|0)>>>20|O<<12,x=(x^=T=T+(j=(j^=E=E+x|0)>>>16|j<<16)|0)>>>20|x<<12,S=(S^=A=A+(k=(k^=I=I+S|0)>>>16|k<<16)|0)>>>20|S<<12,x=(x^=T=T+(j=(j^=E=E+x|0)>>>24|j<<8)|0)>>>25|x<<7,S=(S^=A=A+(k=(k^=I=I+S|0)>>>24|k<<8)|0)>>>25|S<<7,O=(O^=N=N+(C=(C^=_=_+O|0)>>>24|C<<8)|0)>>>25|O<<7,P=(P^=R=R+(M=(M^=b=b+P|0)>>>24|M<<8)|0)>>>25|P<<7;i.writeUint32LE(b+n|0,e,0),i.writeUint32LE(_+s|0,e,4),i.writeUint32LE(E+o|0,e,8),i.writeUint32LE(I+a|0,e,12),i.writeUint32LE(S+c|0,e,16),i.writeUint32LE(P+h|0,e,20),i.writeUint32LE(O+u|0,e,24),i.writeUint32LE(x+l|0,e,28),i.writeUint32LE(T+p|0,e,32),i.writeUint32LE(A+d|0,e,36),i.writeUint32LE(R+f|0,e,40),i.writeUint32LE(N+g|0,e,44),i.writeUint32LE(C+y|0,e,48),i.writeUint32LE(j+v|0,e,52),i.writeUint32LE(k+m|0,e,56),i.writeUint32LE(M+w|0,e,60)}function o(e,t,r,i,o){if(void 0===o&&(o=0),32!==e.length)throw new Error("ChaCha: key size must be 32 bytes");if(i.length>>=8,t++;if(i>0)throw new Error("ChaCha: counter overflow")}t.streamXOR=o,t.stream=function(e,t,r,i){return void 0===i&&(i=0),n.wipe(r),o(e,t,r,r,i)}},851612:(e,t,r)=>{"use strict";var i=r(929918),n=r(777360),s=r(276228),o=r(230972),a=r(926452);t.J4=32,t.PX=12,t.iW=16;var c=new Uint8Array(16),h=function(){function e(e){if(this.nonceLength=t.PX,this.tagLength=t.iW,e.length!==t.J4)throw new 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 new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(e,o.length-e.length);var a=new Uint8Array(32);i.stream(this._key,o,a,4);var c,h=t.length+this.tagLength;if(n){if(n.length!==h)throw new Error("ChaCha20Poly1305: incorrect destination length");c=n}else c=new Uint8Array(h);return i.streamXOR(this._key,o,t,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),a,c.subarray(0,c.length-this.tagLength),r),s.wipe(o),c},e.prototype.open=function(e,t,r,n){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&a.update(c.subarray(i.length%16))),a.update(r),r.length%16>0&&a.update(c.subarray(r.length%16));var h=new Uint8Array(8);i&&o.writeUint64LE(i.length,h),a.update(h),o.writeUint64LE(r.length,h),a.update(h);for(var u=a.digest(),l=0;l{"use strict";function r(e,t){if(e.length!==t.length)return 0;for(var r=0,i=0;i>>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)}},934904:(e,t,r)=>{"use strict";t._S=t.K=t.TP=t.wE=t.Ee=void 0;const i=r(337052),n=r(864974),s=r(276228);function o(e){const t=new Float64Array(16);if(e)for(let r=0;r>16&1),r[t-1]&=65535;r[15]=i[15]-32767-(r[14]>>16&1);const e=r[15]>>16&1;r[14]&=65535,y(i,r,1-e)}for(let n=0;n<16;n++)e[2*n]=255&i[n],e[2*n+1]=i[n]>>8}function m(e,t){let r=0;for(let i=0;i<32;i++)r|=e[i]^t[i];return(1&r-1>>>8)-1}function w(e,t){const r=new Uint8Array(32),i=new Uint8Array(32);return v(r,e),v(i,t),m(r,i)}function b(e){const t=new Uint8Array(32);return v(t,e),1&t[0]}function _(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]+r[i]}function E(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]-r[i]}function I(e,t,r){let i,n,s=0,o=0,a=0,c=0,h=0,u=0,l=0,p=0,d=0,f=0,g=0,y=0,v=0,m=0,w=0,b=0,_=0,E=0,I=0,S=0,P=0,O=0,x=0,T=0,A=0,R=0,N=0,C=0,j=0,k=0,M=0,L=r[0],D=r[1],U=r[2],$=r[3],q=r[4],z=r[5],H=r[6],K=r[7],B=r[8],F=r[9],V=r[10],W=r[11],G=r[12],Y=r[13],J=r[14],Q=r[15];i=t[0],s+=i*L,o+=i*D,a+=i*U,c+=i*$,h+=i*q,u+=i*z,l+=i*H,p+=i*K,d+=i*B,f+=i*F,g+=i*V,y+=i*W,v+=i*G,m+=i*Y,w+=i*J,b+=i*Q,i=t[1],o+=i*L,a+=i*D,c+=i*U,h+=i*$,u+=i*q,l+=i*z,p+=i*H,d+=i*K,f+=i*B,g+=i*F,y+=i*V,v+=i*W,m+=i*G,w+=i*Y,b+=i*J,_+=i*Q,i=t[2],a+=i*L,c+=i*D,h+=i*U,u+=i*$,l+=i*q,p+=i*z,d+=i*H,f+=i*K,g+=i*B,y+=i*F,v+=i*V,m+=i*W,w+=i*G,b+=i*Y,_+=i*J,E+=i*Q,i=t[3],c+=i*L,h+=i*D,u+=i*U,l+=i*$,p+=i*q,d+=i*z,f+=i*H,g+=i*K,y+=i*B,v+=i*F,m+=i*V,w+=i*W,b+=i*G,_+=i*Y,E+=i*J,I+=i*Q,i=t[4],h+=i*L,u+=i*D,l+=i*U,p+=i*$,d+=i*q,f+=i*z,g+=i*H,y+=i*K,v+=i*B,m+=i*F,w+=i*V,b+=i*W,_+=i*G,E+=i*Y,I+=i*J,S+=i*Q,i=t[5],u+=i*L,l+=i*D,p+=i*U,d+=i*$,f+=i*q,g+=i*z,y+=i*H,v+=i*K,m+=i*B,w+=i*F,b+=i*V,_+=i*W,E+=i*G,I+=i*Y,S+=i*J,P+=i*Q,i=t[6],l+=i*L,p+=i*D,d+=i*U,f+=i*$,g+=i*q,y+=i*z,v+=i*H,m+=i*K,w+=i*B,b+=i*F,_+=i*V,E+=i*W,I+=i*G,S+=i*Y,P+=i*J,O+=i*Q,i=t[7],p+=i*L,d+=i*D,f+=i*U,g+=i*$,y+=i*q,v+=i*z,m+=i*H,w+=i*K,b+=i*B,_+=i*F,E+=i*V,I+=i*W,S+=i*G,P+=i*Y,O+=i*J,x+=i*Q,i=t[8],d+=i*L,f+=i*D,g+=i*U,y+=i*$,v+=i*q,m+=i*z,w+=i*H,b+=i*K,_+=i*B,E+=i*F,I+=i*V,S+=i*W,P+=i*G,O+=i*Y,x+=i*J,T+=i*Q,i=t[9],f+=i*L,g+=i*D,y+=i*U,v+=i*$,m+=i*q,w+=i*z,b+=i*H,_+=i*K,E+=i*B,I+=i*F,S+=i*V,P+=i*W,O+=i*G,x+=i*Y,T+=i*J,A+=i*Q,i=t[10],g+=i*L,y+=i*D,v+=i*U,m+=i*$,w+=i*q,b+=i*z,_+=i*H,E+=i*K,I+=i*B,S+=i*F,P+=i*V,O+=i*W,x+=i*G,T+=i*Y,A+=i*J,R+=i*Q,i=t[11],y+=i*L,v+=i*D,m+=i*U,w+=i*$,b+=i*q,_+=i*z,E+=i*H,I+=i*K,S+=i*B,P+=i*F,O+=i*V,x+=i*W,T+=i*G,A+=i*Y,R+=i*J,N+=i*Q,i=t[12],v+=i*L,m+=i*D,w+=i*U,b+=i*$,_+=i*q,E+=i*z,I+=i*H,S+=i*K,P+=i*B,O+=i*F,x+=i*V,T+=i*W,A+=i*G,R+=i*Y,N+=i*J,C+=i*Q,i=t[13],m+=i*L,w+=i*D,b+=i*U,_+=i*$,E+=i*q,I+=i*z,S+=i*H,P+=i*K,O+=i*B,x+=i*F,T+=i*V,A+=i*W,R+=i*G,N+=i*Y,C+=i*J,j+=i*Q,i=t[14],w+=i*L,b+=i*D,_+=i*U,E+=i*$,I+=i*q,S+=i*z,P+=i*H,O+=i*K,x+=i*B,T+=i*F,A+=i*V,R+=i*W,N+=i*G,C+=i*Y,j+=i*J,k+=i*Q,i=t[15],b+=i*L,_+=i*D,E+=i*U,I+=i*$,S+=i*q,P+=i*z,O+=i*H,x+=i*K,T+=i*B,A+=i*F,R+=i*V,N+=i*W,C+=i*G,j+=i*Y,k+=i*J,M+=i*Q,s+=38*_,o+=38*E,a+=38*I,c+=38*S,h+=38*P,u+=38*O,l+=38*x,p+=38*T,d+=38*A,f+=38*R,g+=38*N,y+=38*C,v+=38*j,m+=38*k,w+=38*M,n=1,i=s+n+65535,n=Math.floor(i/65536),s=i-65536*n,i=o+n+65535,n=Math.floor(i/65536),o=i-65536*n,i=a+n+65535,n=Math.floor(i/65536),a=i-65536*n,i=c+n+65535,n=Math.floor(i/65536),c=i-65536*n,i=h+n+65535,n=Math.floor(i/65536),h=i-65536*n,i=u+n+65535,n=Math.floor(i/65536),u=i-65536*n,i=l+n+65535,n=Math.floor(i/65536),l=i-65536*n,i=p+n+65535,n=Math.floor(i/65536),p=i-65536*n,i=d+n+65535,n=Math.floor(i/65536),d=i-65536*n,i=f+n+65535,n=Math.floor(i/65536),f=i-65536*n,i=g+n+65535,n=Math.floor(i/65536),g=i-65536*n,i=y+n+65535,n=Math.floor(i/65536),y=i-65536*n,i=v+n+65535,n=Math.floor(i/65536),v=i-65536*n,i=m+n+65535,n=Math.floor(i/65536),m=i-65536*n,i=w+n+65535,n=Math.floor(i/65536),w=i-65536*n,i=b+n+65535,n=Math.floor(i/65536),b=i-65536*n,s+=n-1+37*(n-1),n=1,i=s+n+65535,n=Math.floor(i/65536),s=i-65536*n,i=o+n+65535,n=Math.floor(i/65536),o=i-65536*n,i=a+n+65535,n=Math.floor(i/65536),a=i-65536*n,i=c+n+65535,n=Math.floor(i/65536),c=i-65536*n,i=h+n+65535,n=Math.floor(i/65536),h=i-65536*n,i=u+n+65535,n=Math.floor(i/65536),u=i-65536*n,i=l+n+65535,n=Math.floor(i/65536),l=i-65536*n,i=p+n+65535,n=Math.floor(i/65536),p=i-65536*n,i=d+n+65535,n=Math.floor(i/65536),d=i-65536*n,i=f+n+65535,n=Math.floor(i/65536),f=i-65536*n,i=g+n+65535,n=Math.floor(i/65536),g=i-65536*n,i=y+n+65535,n=Math.floor(i/65536),y=i-65536*n,i=v+n+65535,n=Math.floor(i/65536),v=i-65536*n,i=m+n+65535,n=Math.floor(i/65536),m=i-65536*n,i=w+n+65535,n=Math.floor(i/65536),w=i-65536*n,i=b+n+65535,n=Math.floor(i/65536),b=i-65536*n,s+=n-1+37*(n-1),e[0]=s,e[1]=o,e[2]=a,e[3]=c,e[4]=h,e[5]=u,e[6]=l,e[7]=p,e[8]=d,e[9]=f,e[10]=g,e[11]=y,e[12]=v,e[13]=m,e[14]=w,e[15]=b}function S(e,t){I(e,t,t)}function P(e,t){const r=o();let i;for(i=0;i<16;i++)r[i]=t[i];for(i=253;i>=0;i--)S(r,r),2!==i&&4!==i&&I(r,r,t);for(i=0;i<16;i++)e[i]=r[i]}function O(e,t){const r=o(),i=o(),n=o(),s=o(),a=o(),c=o(),h=o(),l=o(),p=o();E(r,e[1],e[0]),E(p,t[1],t[0]),I(r,r,p),_(i,e[0],e[1]),_(p,t[0],t[1]),I(i,i,p),I(n,e[3],t[3]),I(n,n,u),I(s,e[2],t[2]),_(s,s,s),E(a,i,r),E(c,s,n),_(h,s,n),_(l,i,r),I(e[0],a,c),I(e[1],l,h),I(e[2],h,c),I(e[3],a,l)}function x(e,t,r){for(let i=0;i<4;i++)y(e[i],t[i],r)}function T(e,t){const r=o(),i=o(),n=o();P(n,t[2]),I(r,t[0],n),I(i,t[1],n),v(e,i),e[31]^=b(r)<<7}function A(e,t,r){f(e[0],a),f(e[1],c),f(e[2],c),f(e[3],a);for(let i=255;i>=0;--i){const n=r[i/8|0]>>(7&i)&1;x(e,t,n),O(t,e),O(e,e),x(e,t,n)}}function R(e,t){const r=[o(),o(),o(),o()];f(r[0],l),f(r[1],p),f(r[2],c),I(r[3],l,p),A(e,r,t)}function N(e){if(e.length!==t.TP)throw new Error(`ed25519: seed must be ${t.TP} bytes`);const r=(0,n.hash)(e);r[0]&=248,r[31]&=127,r[31]|=64;const i=new Uint8Array(32),s=[o(),o(),o(),o()];R(s,r),T(i,s);const a=new Uint8Array(64);return a.set(e),a.set(i,32),{publicKey:i,secretKey:a}}t.K=N;const C=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 j(e,t){let r,i,n,s;for(i=63;i>=32;--i){for(r=0,n=i-32,s=i-12;n>4)*C[n],r=t[n]>>8,t[n]&=255;for(n=0;n<32;n++)t[n]-=r*C[n];for(i=0;i<32;i++)t[i+1]+=t[i]>>8,e[i]=255&t[i]}function k(e){const t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let r=0;r<64;r++)e[r]=0;j(e,t)}function M(e,t){const r=o(),i=o(),n=o(),s=o(),u=o(),l=o(),p=o();return f(e[2],c),function(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(e[1],t),S(n,e[1]),I(s,n,h),E(n,n,e[2]),_(s,e[2],s),S(u,s),S(l,u),I(p,l,u),I(r,p,n),I(r,r,s),function(e,t){const r=o();let i;for(i=0;i<16;i++)r[i]=t[i];for(i=250;i>=0;i--)S(r,r),1!==i&&I(r,r,t);for(i=0;i<16;i++)e[i]=r[i]}(r,r),I(r,r,n),I(r,r,s),I(r,r,s),I(e[0],r,s),S(i,e[0]),I(i,i,s),w(i,n)&&I(e[0],e[0],d),S(i,e[0]),I(i,i,s),w(i,n)?-1:(b(e[0])===t[31]>>7&&E(e[0],a,e[0]),I(e[3],e[0],e[1]),0)}t._S=function(e,t){const r=new Float64Array(64),i=[o(),o(),o(),o()],s=(0,n.hash)(e.subarray(0,32));s[0]&=248,s[31]&=127,s[31]|=64;const a=new Uint8Array(64);a.set(s.subarray(32),32);const c=new n.SHA512;c.update(a.subarray(32)),c.update(t);const h=c.digest();c.clean(),k(h),R(i,h),T(a,i),c.reset(),c.update(a.subarray(0,32)),c.update(e.subarray(32)),c.update(t);const u=c.digest();k(u);for(let n=0;n<32;n++)r[n]=h[n];for(let n=0;n<32;n++)for(let e=0;e<32;e++)r[n+e]+=u[n]*s[e];return j(a.subarray(32),r),a}},252670:(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}},616804:(e,t,r)=>{"use strict";var i=r(422412),n=r(276228),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 new 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{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(252670),n=r(926452),s=r(276228),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{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var r=65535&e,i=65535&t;return r*i+((e>>>16&65535)*i+r*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},777360:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(926452),n=r(276228);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]=8191&(r>>>13|i<<3);var n=e[4]|e[5]<<8;this._r[2]=7939&(i>>>10|n<<6);var s=e[6]|e[7]<<8;this._r[3]=8191&(n>>>7|s<<9);var o=e[8]|e[9]<<8;this._r[4]=255&(s>>>4|o<<12),this._r[5]=o>>>1&8190;var a=e[10]|e[11]<<8;this._r[6]=8191&(o>>>14|a<<2);var c=e[12]|e[13]<<8;this._r[7]=8065&(a>>>11|c<<5);var h=e[14]|e[15]<<8;this._r[8]=8191&(c>>>8|h<<8),this._r[9]=h>>>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],h=this._h[5],u=this._h[6],l=this._h[7],p=this._h[8],d=this._h[9],f=this._r[0],g=this._r[1],y=this._r[2],v=this._r[3],m=this._r[4],w=this._r[5],b=this._r[6],_=this._r[7],E=this._r[8],I=this._r[9];r>=16;){var S=e[t+0]|e[t+1]<<8;n+=8191&S;var P=e[t+2]|e[t+3]<<8;s+=8191&(S>>>13|P<<3);var O=e[t+4]|e[t+5]<<8;o+=8191&(P>>>10|O<<6);var x=e[t+6]|e[t+7]<<8;a+=8191&(O>>>7|x<<9);var T=e[t+8]|e[t+9]<<8;c+=8191&(x>>>4|T<<12),h+=T>>>1&8191;var A=e[t+10]|e[t+11]<<8;u+=8191&(T>>>14|A<<2);var R=e[t+12]|e[t+13]<<8;l+=8191&(A>>>11|R<<5);var N=e[t+14]|e[t+15]<<8,C=0,j=C;j+=n*f,j+=s*(5*I),j+=o*(5*E),j+=a*(5*_),C=(j+=c*(5*b))>>>13,j&=8191,j+=h*(5*w),j+=u*(5*m),j+=l*(5*v),j+=(p+=8191&(R>>>8|N<<8))*(5*y);var k=C+=(j+=(d+=N>>>5|i)*(5*g))>>>13;k+=n*g,k+=s*f,k+=o*(5*I),k+=a*(5*E),C=(k+=c*(5*_))>>>13,k&=8191,k+=h*(5*b),k+=u*(5*w),k+=l*(5*m),k+=p*(5*v),C+=(k+=d*(5*y))>>>13,k&=8191;var M=C;M+=n*y,M+=s*g,M+=o*f,M+=a*(5*I),C=(M+=c*(5*E))>>>13,M&=8191,M+=h*(5*_),M+=u*(5*b),M+=l*(5*w),M+=p*(5*m);var L=C+=(M+=d*(5*v))>>>13;L+=n*v,L+=s*y,L+=o*g,L+=a*f,C=(L+=c*(5*I))>>>13,L&=8191,L+=h*(5*E),L+=u*(5*_),L+=l*(5*b),L+=p*(5*w);var D=C+=(L+=d*(5*m))>>>13;D+=n*m,D+=s*v,D+=o*y,D+=a*g,C=(D+=c*f)>>>13,D&=8191,D+=h*(5*I),D+=u*(5*E),D+=l*(5*_),D+=p*(5*b);var U=C+=(D+=d*(5*w))>>>13;U+=n*w,U+=s*m,U+=o*v,U+=a*y,C=(U+=c*g)>>>13,U&=8191,U+=h*f,U+=u*(5*I),U+=l*(5*E),U+=p*(5*_);var $=C+=(U+=d*(5*b))>>>13;$+=n*b,$+=s*w,$+=o*m,$+=a*v,C=($+=c*y)>>>13,$&=8191,$+=h*g,$+=u*f,$+=l*(5*I),$+=p*(5*E);var q=C+=($+=d*(5*_))>>>13;q+=n*_,q+=s*b,q+=o*w,q+=a*m,C=(q+=c*v)>>>13,q&=8191,q+=h*y,q+=u*g,q+=l*f,q+=p*(5*I);var z=C+=(q+=d*(5*E))>>>13;z+=n*E,z+=s*_,z+=o*b,z+=a*w,C=(z+=c*m)>>>13,z&=8191,z+=h*v,z+=u*y,z+=l*g,z+=p*f;var H=C+=(z+=d*(5*I))>>>13;H+=n*I,H+=s*E,H+=o*_,H+=a*b,C=(H+=c*w)>>>13,H&=8191,H+=h*m,H+=u*v,H+=l*y,H+=p*g,n=j=8191&(C=(C=((C+=(H+=d*f)>>>13)<<2)+C|0)+(j&=8191)|0),s=k+=C>>>=13,o=M&=8191,a=L&=8191,c=D&=8191,h=U&=8191,u=$&=8191,l=q&=8191,p=z&=8191,d=H&=8191,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]=h,this._h[6]=u,this._h[7]=l,this._h[8]=p,this._h[9]=d},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(i=~i,s=0;s<10;s++)this._h[s]=this._h[s]&i|o[s];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),n=this._h[0]+this._pad[0],this._h[0]=65535&n,s=1;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=16&&(t=i-i%16,this._blocks(e,r,t),r+=t,i-=t),i){for(n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const i=r(115492),n=r(230972),s=r(276228);function o(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new i.SystemRandomSource,t.randomBytes=o,t.randomUint32=function(e=t.defaultRandomSource){const r=o(4,e),i=(0,n.readUint32LE)(r);return(0,s.wipe)(r),i};const a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(e,r=a,i=t.defaultRandomSource){if(r.length<2)throw new Error("randomString charset is too short");if(r.length>256)throw new Error("randomString charset is too long");let n="";const c=r.length,h=256-256%c;for(;e>0;){const t=o(Math.ceil(256*e/h),i);for(let i=0;i0;i++){const s=t[i];s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;t.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const e="undefined"!=typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const t=new Uint8Array(e);for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;const i=r(276228);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const e=r(99432);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");const r=new Uint8Array(e);for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;const i=r(787029),n=r(835821);t.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new i.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new n.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}}},950204:(e,t,r)=>{"use strict";var i=r(230972),n=r(276228);t.On=32,t.cS=64;var s=function(){function e(){this.digestLength=t.On,this.blockSize=t.cS,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 new Error("SHA256: can't update because hash was finished.");var r=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)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/536870912|0,s=t<<3,o=t%64<56?64:128;this._buffer[r]=128;for(var c=r+1;c0?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.aD=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],h=t[2],u=t[3],l=t[4],p=t[5],d=t[6],f=t[7],g=0;g<16;g++){var y=n+4*g;e[g]=i.readUint32BE(r,y)}for(g=16;g<64;g++){var v=e[g-2],m=(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10,w=((v=e[g-15])>>>7|v<<25)^(v>>>18|v<<14)^v>>>3;e[g]=(m+e[g-7]|0)+(w+e[g-16]|0)}for(g=0;g<64;g++){m=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&p^~l&d)|0)+(f+(o[g]+e[g]|0)|0)|0,w=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&c^a&h^c&h)|0;f=d,d=p,p=l,l=u+m|0,u=h,h=c,c=a,a=m+w|0}t[0]+=a,t[1]+=c,t[2]+=h,t[3]+=u,t[4]+=l,t[5]+=p,t[6]+=d,t[7]+=f,n+=64,s-=64}return n}t.tW=function(e){var t=new s;t.update(e);var r=t.digest();return t.clean(),r}},864974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(230972),n=r(276228);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 new Error("SHA512: can't update because hash was finished.");var i=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength0;)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/536870912|0,s=t<<3,o=t%128<112?128:256;this._buffer[r]=128;for(var c=r+1;c0?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 h,u,l,p,d,f,g,y,v=r[0],m=r[1],w=r[2],b=r[3],_=r[4],E=r[5],I=r[6],S=r[7],P=n[0],O=n[1],x=n[2],T=n[3],A=n[4],R=n[5],N=n[6],C=n[7];c>=128;){for(var j=0;j<16;j++){var k=8*j+a;e[j]=i.readUint32BE(s,k),t[j]=i.readUint32BE(s,k+4)}for(j=0;j<80;j++){var M,L,D=v,U=m,$=w,q=b,z=_,H=E,K=I,B=P,F=O,V=x,W=T,G=A,Y=R,J=N;if(d=65535&(u=C),f=u>>>16,g=65535&(h=S),y=h>>>16,d+=65535&(u=(A>>>14|_<<18)^(A>>>18|_<<14)^(_>>>9|A<<23)),f+=u>>>16,g+=65535&(h=(_>>>14|A<<18)^(_>>>18|A<<14)^(A>>>9|_<<23)),y+=h>>>16,d+=65535&(u=A&R^~A&N),f+=u>>>16,g+=65535&(h=_&E^~_&I),y+=h>>>16,h=o[2*j],d+=65535&(u=o[2*j+1]),f+=u>>>16,g+=65535&h,y+=h>>>16,h=e[j%16],f+=(u=t[j%16])>>>16,g+=65535&h,y+=h>>>16,g+=(f+=(d+=65535&u)>>>16)>>>16,d=65535&(u=p=65535&d|f<<16),f=u>>>16,g=65535&(h=l=65535&g|(y+=g>>>16)<<16),y=h>>>16,d+=65535&(u=(P>>>28|v<<4)^(v>>>2|P<<30)^(v>>>7|P<<25)),f+=u>>>16,g+=65535&(h=(v>>>28|P<<4)^(P>>>2|v<<30)^(P>>>7|v<<25)),y+=h>>>16,f+=(u=P&O^P&x^O&x)>>>16,g+=65535&(h=v&m^v&w^m&w),y+=h>>>16,M=65535&(g+=(f+=(d+=65535&u)>>>16)>>>16)|(y+=g>>>16)<<16,L=65535&d|f<<16,d=65535&(u=W),f=u>>>16,g=65535&(h=q),y=h>>>16,f+=(u=p)>>>16,g+=65535&(h=l),y+=h>>>16,m=D,w=U,b=$,_=q=65535&(g+=(f+=(d+=65535&u)>>>16)>>>16)|(y+=g>>>16)<<16,E=z,I=H,S=K,v=M,O=B,x=F,T=V,A=W=65535&d|f<<16,R=G,N=Y,C=J,P=L,j%16==15)for(k=0;k<16;k++)h=e[k],d=65535&(u=t[k]),f=u>>>16,g=65535&h,y=h>>>16,h=e[(k+9)%16],d+=65535&(u=t[(k+9)%16]),f+=u>>>16,g+=65535&h,y+=h>>>16,l=e[(k+1)%16],d+=65535&(u=((p=t[(k+1)%16])>>>1|l<<31)^(p>>>8|l<<24)^(p>>>7|l<<25)),f+=u>>>16,g+=65535&(h=(l>>>1|p<<31)^(l>>>8|p<<24)^l>>>7),y+=h>>>16,l=e[(k+14)%16],f+=(u=((p=t[(k+14)%16])>>>19|l<<13)^(l>>>29|p<<3)^(p>>>6|l<<26))>>>16,g+=65535&(h=(l>>>19|p<<13)^(p>>>29|l<<3)^l>>>6),y+=h>>>16,y+=(g+=(f+=(d+=65535&u)>>>16)>>>16)>>>16,e[k]=65535&g|y<<16,t[k]=65535&d|f<<16}d=65535&(u=P),f=u>>>16,g=65535&(h=v),y=h>>>16,h=r[0],f+=(u=n[0])>>>16,g+=65535&h,y+=h>>>16,y+=(g+=(f+=(d+=65535&u)>>>16)>>>16)>>>16,r[0]=v=65535&g|y<<16,n[0]=P=65535&d|f<<16,d=65535&(u=O),f=u>>>16,g=65535&(h=m),y=h>>>16,h=r[1],f+=(u=n[1])>>>16,g+=65535&h,y+=h>>>16,y+=(g+=(f+=(d+=65535&u)>>>16)>>>16)>>>16,r[1]=m=65535&g|y<<16,n[1]=O=65535&d|f<<16,d=65535&(u=x),f=u>>>16,g=65535&(h=w),y=h>>>16,h=r[2],f+=(u=n[2])>>>16,g+=65535&h,y+=h>>>16,y+=(g+=(f+=(d+=65535&u)>>>16)>>>16)>>>16,r[2]=w=65535&g|y<<16,n[2]=x=65535&d|f<<16,d=65535&(u=T),f=u>>>16,g=65535&(h=b),y=h>>>16,h=r[3],f+=(u=n[3])>>>16,g+=65535&h,y+=h>>>16,y+=(g+=(f+=(d+=65535&u)>>>16)>>>16)>>>16,r[3]=b=65535&g|y<<16,n[3]=T=65535&d|f<<16,d=65535&(u=A),f=u>>>16,g=65535&(h=_),y=h>>>16,h=r[4],f+=(u=n[4])>>>16,g+=65535&h,y+=h>>>16,y+=(g+=(f+=(d+=65535&u)>>>16)>>>16)>>>16,r[4]=_=65535&g|y<<16,n[4]=A=65535&d|f<<16,d=65535&(u=R),f=u>>>16,g=65535&(h=E),y=h>>>16,h=r[5],f+=(u=n[5])>>>16,g+=65535&h,y+=h>>>16,y+=(g+=(f+=(d+=65535&u)>>>16)>>>16)>>>16,r[5]=E=65535&g|y<<16,n[5]=R=65535&d|f<<16,d=65535&(u=N),f=u>>>16,g=65535&(h=I),y=h>>>16,h=r[6],f+=(u=n[6])>>>16,g+=65535&h,y+=h>>>16,y+=(g+=(f+=(d+=65535&u)>>>16)>>>16)>>>16,r[6]=I=65535&g|y<<16,n[6]=N=65535&d|f<<16,d=65535&(u=C),f=u>>>16,g=65535&(h=S),y=h>>>16,h=r[7],f+=(u=n[7])>>>16,g+=65535&h,y+=h>>>16,y+=(g+=(f+=(d+=65535&u)>>>16)>>>16)>>>16,r[7]=S=65535&g|y<<16,n[7]=C=65535&d|f<<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}},276228:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t{"use strict";t.Tc=t.TZ=t.wE=t.Xx=void 0;const i=r(337052),n=r(276228);function s(e){const t=new Float64Array(16);if(e)for(let r=0;r=0;--s){const e=r[s>>>3]>>>(7&s)&1;h(n,o,e),h(f,g,e),u(y,n,f),l(n,n,f),u(f,o,g),l(o,o,g),d(g,y),d(v,n),p(n,f,n),p(f,o,y),u(y,n,f),l(n,n,f),d(o,n),l(f,g,v),p(n,f,a),u(n,n,g),p(f,f,n),p(n,g,v),p(g,o,i),d(o,y),h(n,o,e),h(f,g,e)}for(let s=0;s<16;s++)i[s+16]=n[s],i[s+32]=f[s],i[s+48]=o[s],i[s+64]=g[s];const m=i.subarray(32),w=i.subarray(16);!function(e,t){const r=s();for(let i=0;i<16;i++)r[i]=t[i];for(let i=253;i>=0;i--)d(r,r),2!==i&&4!==i&&p(r,r,t);for(let i=0;i<16;i++)e[i]=r[i]}(m,m),p(w,w,m);const b=new Uint8Array(32);return function(e,t){const r=s(),i=s();for(let n=0;n<16;n++)i[n]=t[n];c(i),c(i),c(i);for(let n=0;n<2;n++){r[0]=i[0]-65517;for(let t=1;t<15;t++)r[t]=i[t]-65535-(r[t-1]>>16&1),r[t-1]&=65535;r[15]=i[15]-32767-(r[14]>>16&1);const e=r[15]>>16&1;r[14]&=65535,h(i,r,1-e)}for(let n=0;n<16;n++)e[2*n]=255&i[n],e[2*n+1]=i[n]>>8}(b,w),b}function g(e){return f(e,o)}function y(e){if(e.length!==t.wE)throw new Error(`x25519: seed must be ${t.wE} bytes`);const r=new Uint8Array(e);return{publicKey:g(r),secretKey:r}}t.TZ=function(e){const t=(0,i.randomBytes)(32,e),r=y(t);return(0,n.wipe)(t),r},t.Tc=function(e,r,i=!1){if(e.length!==t.Xx)throw new Error("X25519: incorrect secret key length");if(r.length!==t.Xx)throw new Error("X25519: incorrect public key length");const n=f(e,r);if(i){let e=0;for(let t=0;t{"use strict";function i(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function n(){const e=i();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=i,t.getSubtleCrypto=n,t.isBrowserCryptoAvailable=function(){return!!i()&&!!n()}},391089:(e,t)=>{"use strict";function r(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function i(){return"undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=r,t.isNode=i,t.isBrowser=function(){return!r()&&!i()}},525682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(498186);i.__exportStar(r(277173),t),i.__exportStar(r(391089),t)},498186:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>s,__asyncDelegator:()=>b,__asyncGenerator:()=>w,__asyncValues:()=>_,__await:()=>m,__awaiter:()=>u,__classPrivateFieldGet:()=>P,__classPrivateFieldSet:()=>O,__createBinding:()=>p,__decorate:()=>a,__exportStar:()=>d,__extends:()=>n,__generator:()=>l,__importDefault:()=>S,__importStar:()=>I,__makeTemplateObject:()=>E,__metadata:()=>h,__param:()=>c,__read:()=>g,__rest:()=>o,__spread:()=>y,__spreadArrays:()=>v,__values:()=>f});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},i(e,t)};function n(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return s=Object.assign||function(e){for(var t,r=1,i=arguments.length;r=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function c(e,t){return function(r,i){t(r,i,e)}}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,i){return new(r||(r=Promise))((function(n,s){function o(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))}function l(e,t){var r,i,n,s,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}function y(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(r=n[e](t)).value instanceof m?Promise.resolve(r.value.v).then(c,h):u(s[0][2],r)}catch(i){u(s[0][3],i)}var r}function c(e){a("next",e)}function h(e){a("throw",e)}function u(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function b(e){var t,r;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,n){t[i]=e[i]?function(t){return(r=!r)?{value:m(e[i](t)),done:"return"===i}:n?n(t):t}:n}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(t){return new Promise((function(i,n){(function(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)})(i,n,(t=e[r](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function P(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function O(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},314485:(e,t,r)=>{"use strict";r.d(t,{REQUIRED_METHODS:()=>kl,default:()=>Yl});var i={};r.r(i),r.d(i,{identity:()=>B});var n={};r.r(n),r.d(n,{base2:()=>F});var s={};r.r(s),r.d(s,{base8:()=>V});var o={};r.r(o),r.d(o,{base10:()=>W});var a={};r.r(a),r.d(a,{base16:()=>G,base16upper:()=>Y});var c={};r.r(c),r.d(c,{base36:()=>Q,base36upper:()=>X});var h={};r.r(h),r.d(h,{base64:()=>ee,base64pad:()=>te,base64url:()=>re,base64urlpad:()=>ie});var u={};r.r(u),r.d(u,{base256emoji:()=>ae});var l={};r.r(l),r.d(l,{sha256:()=>pe,sha512:()=>de});var p={};r.r(p),r.d(p,{identity:()=>ge});var d={};r.r(d),r.d(d,{code:()=>ve,decode:()=>we,encode:()=>me,name:()=>ye});var f={};r.r(f),r.d(f,{code:()=>Ie,decode:()=>Pe,encode:()=>Se,name:()=>Ee});var g=r(137007),y=r.n(g),v=function(e,t,r){if(r||2===arguments.length)for(var i,n=0,s=t.length;ne+t.length),0));const r=q(t);let i=0;for(const n of e)r.set(n,i),i+=n.length;return r}var H=r(552071),K=r(192081);const B=(0,H.HT)({prefix:"\0",name:"identity",encode:e=>(0,K.dI)(e),decode:e=>(0,K.sH)(e)}),F=(0,H.yE)({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),V=(0,H.yE)({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),W=(0,H._Q)({prefix:"9",name:"base10",alphabet:"0123456789"}),G=(0,H.yE)({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Y=(0,H.yE)({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var J=r(633431);const Q=(0,H._Q)({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),X=(0,H._Q)({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Z=r(852807);const ee=(0,H.yE)({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),te=(0,H.yE)({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),re=(0,H.yE)({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ie=(0,H.yE)({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),ne=Array.from("\ud83d\ude80\ud83e\ude90\u2604\ud83d\udef0\ud83c\udf0c\ud83c\udf11\ud83c\udf12\ud83c\udf13\ud83c\udf14\ud83c\udf15\ud83c\udf16\ud83c\udf17\ud83c\udf18\ud83c\udf0d\ud83c\udf0f\ud83c\udf0e\ud83d\udc09\u2600\ud83d\udcbb\ud83d\udda5\ud83d\udcbe\ud83d\udcbf\ud83d\ude02\u2764\ud83d\ude0d\ud83e\udd23\ud83d\ude0a\ud83d\ude4f\ud83d\udc95\ud83d\ude2d\ud83d\ude18\ud83d\udc4d\ud83d\ude05\ud83d\udc4f\ud83d\ude01\ud83d\udd25\ud83e\udd70\ud83d\udc94\ud83d\udc96\ud83d\udc99\ud83d\ude22\ud83e\udd14\ud83d\ude06\ud83d\ude44\ud83d\udcaa\ud83d\ude09\u263a\ud83d\udc4c\ud83e\udd17\ud83d\udc9c\ud83d\ude14\ud83d\ude0e\ud83d\ude07\ud83c\udf39\ud83e\udd26\ud83c\udf89\ud83d\udc9e\u270c\u2728\ud83e\udd37\ud83d\ude31\ud83d\ude0c\ud83c\udf38\ud83d\ude4c\ud83d\ude0b\ud83d\udc97\ud83d\udc9a\ud83d\ude0f\ud83d\udc9b\ud83d\ude42\ud83d\udc93\ud83e\udd29\ud83d\ude04\ud83d\ude00\ud83d\udda4\ud83d\ude03\ud83d\udcaf\ud83d\ude48\ud83d\udc47\ud83c\udfb6\ud83d\ude12\ud83e\udd2d\u2763\ud83d\ude1c\ud83d\udc8b\ud83d\udc40\ud83d\ude2a\ud83d\ude11\ud83d\udca5\ud83d\ude4b\ud83d\ude1e\ud83d\ude29\ud83d\ude21\ud83e\udd2a\ud83d\udc4a\ud83e\udd73\ud83d\ude25\ud83e\udd24\ud83d\udc49\ud83d\udc83\ud83d\ude33\u270b\ud83d\ude1a\ud83d\ude1d\ud83d\ude34\ud83c\udf1f\ud83d\ude2c\ud83d\ude43\ud83c\udf40\ud83c\udf37\ud83d\ude3b\ud83d\ude13\u2b50\u2705\ud83e\udd7a\ud83c\udf08\ud83d\ude08\ud83e\udd18\ud83d\udca6\u2714\ud83d\ude23\ud83c\udfc3\ud83d\udc90\u2639\ud83c\udf8a\ud83d\udc98\ud83d\ude20\u261d\ud83d\ude15\ud83c\udf3a\ud83c\udf82\ud83c\udf3b\ud83d\ude10\ud83d\udd95\ud83d\udc9d\ud83d\ude4a\ud83d\ude39\ud83d\udde3\ud83d\udcab\ud83d\udc80\ud83d\udc51\ud83c\udfb5\ud83e\udd1e\ud83d\ude1b\ud83d\udd34\ud83d\ude24\ud83c\udf3c\ud83d\ude2b\u26bd\ud83e\udd19\u2615\ud83c\udfc6\ud83e\udd2b\ud83d\udc48\ud83d\ude2e\ud83d\ude46\ud83c\udf7b\ud83c\udf43\ud83d\udc36\ud83d\udc81\ud83d\ude32\ud83c\udf3f\ud83e\udde1\ud83c\udf81\u26a1\ud83c\udf1e\ud83c\udf88\u274c\u270a\ud83d\udc4b\ud83d\ude30\ud83e\udd28\ud83d\ude36\ud83e\udd1d\ud83d\udeb6\ud83d\udcb0\ud83c\udf53\ud83d\udca2\ud83e\udd1f\ud83d\ude41\ud83d\udea8\ud83d\udca8\ud83e\udd2c\u2708\ud83c\udf80\ud83c\udf7a\ud83e\udd13\ud83d\ude19\ud83d\udc9f\ud83c\udf31\ud83d\ude16\ud83d\udc76\ud83e\udd74\u25b6\u27a1\u2753\ud83d\udc8e\ud83d\udcb8\u2b07\ud83d\ude28\ud83c\udf1a\ud83e\udd8b\ud83d\ude37\ud83d\udd7a\u26a0\ud83d\ude45\ud83d\ude1f\ud83d\ude35\ud83d\udc4e\ud83e\udd32\ud83e\udd20\ud83e\udd27\ud83d\udccc\ud83d\udd35\ud83d\udc85\ud83e\uddd0\ud83d\udc3e\ud83c\udf52\ud83d\ude17\ud83e\udd11\ud83c\udf0a\ud83e\udd2f\ud83d\udc37\u260e\ud83d\udca7\ud83d\ude2f\ud83d\udc86\ud83d\udc46\ud83c\udfa4\ud83d\ude47\ud83c\udf51\u2744\ud83c\udf34\ud83d\udca3\ud83d\udc38\ud83d\udc8c\ud83d\udccd\ud83e\udd40\ud83e\udd22\ud83d\udc45\ud83d\udca1\ud83d\udca9\ud83d\udc50\ud83d\udcf8\ud83d\udc7b\ud83e\udd10\ud83e\udd2e\ud83c\udfbc\ud83e\udd75\ud83d\udea9\ud83c\udf4e\ud83c\udf4a\ud83d\udc7c\ud83d\udc8d\ud83d\udce3\ud83e\udd42"),se=ne.reduce(((e,t,r)=>(e[r]=t,e)),[]),oe=ne.reduce(((e,t,r)=>(e[t.codePointAt(0)]=r,e)),[]);const ae=(0,H.HT)({prefix:"\ud83d\ude80",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+=se[t]),"")},decode:function(e){const t=[];for(const r of e){const e=oe[r.codePointAt(0)];if(void 0===e)throw new Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});var ce=r(814403);const he=({name:e,code:t,encode:r})=>new ue(e,t,r);class ue{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?ce.vt(this.code,t):t.then((e=>ce.vt(this.code,e)))}throw Error("Unknown type, must be binary type")}}const le=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),pe=he({name:"sha2-256",code:18,encode:le("SHA-256")}),de=he({name:"sha2-512",code:19,encode:le("SHA-512")}),fe=K.au,ge={code:0,name:"identity",encode:fe,digest:e=>ce.vt(0,fe(e))},ye="raw",ve=85,me=e=>(0,K.au)(e),we=e=>(0,K.au)(e),be=new TextEncoder,_e=new TextDecoder,Ee="json",Ie=512,Se=e=>be.encode(JSON.stringify(e)),Pe=e=>JSON.parse(_e.decode(e));r(754070),r(674973);const Oe={...i,...n,...s,...o,...a,...J,...c,...Z,...h,...u};function xe(e,t,r,i){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:i}}}const Te=xe("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),Ae=xe("ascii","a",(e=>{let t="a";for(let r=0;r{const t=q((e=e.substring(1)).length);for(let r=0;r"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),Ve=Be("ascii","a",(e=>{let t="a";for(let r=0;r{const t=Ke((e=e.substring(1)).length);for(let r=0;r{const t=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');return JSON.parse(t,((e,t)=>"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t))})(e)}catch(t){return e}}function Qe(e){return"string"==typeof e?e:(t=e,JSON.stringify(t,((e,t)=>"bigint"==typeof t?t.toString()+"n":t))||"");var t}function Xe(e){return Je(Ge(Ye(e,Le),De))}function Ze(e){return Ge(Ye(Qe(e),De),Le)}function et(e){const t="z"+Ge(function(e,t){t||(t=e.reduce(((e,t)=>e+t.length),0));const r=Ke(t);let i=0;for(const n of e)r.set(n,i),i+=n.length;return He(r)}([Ye("K36",ze),e]),ze);return[$e,qe,t].join(":")}function tt(e){return Ge(e,Le)}function rt(e){const t=e.split(Me);return{header:Xe(t[0]),payload:Xe(t[1]),signature:Ye(t[2],Le),data:Ye(t.slice(0,2).join(Me),Ue)}}function it(e=(0,D.randomBytes)(32)){return ke.K(e)}async function nt(e,t,r,i,n=(0,A.fromMiliseconds)(Date.now())){const s={alg:"EdDSA",typ:"JWT"},o={iss:et(i.publicKey),sub:e,aud:t,iat:n,exp:n+r},a=Ye([Ze((c={header:s,payload:o}).header),Ze(c.payload)].join(Me),Ue);var c;return function(e){return[Ze(e.header),Ze(e.payload),tt(e.signature)].join(Me)}({header:s,payload:o,signature:ke._S(i.secretKey,a)})}r(755665);const st={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}},ot=":";function at(e){const[t,r]=e.split(ot);return{namespace:t,reference:r}}function ct(e,t=[]){const r=[];return Object.keys(e).forEach((i=>{if(t.length&&!t.includes(i))return;const n=e[i];r.push(...n.accounts)})),r}function ht(e,t){return e.includes(":")?[e]:t.chains||[]}var ut=Object.defineProperty,lt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,ft=(e,t,r)=>t in e?ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gt=(e,t)=>{for(var r in t||(t={}))pt.call(t,r)&&ft(e,r,t[r]);if(lt)for(var r of lt(t))dt.call(t,r)&&ft(e,r,t[r]);return e};const yt="react-native",vt="node",mt="browser",wt="unknown",bt="js";function _t(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function Et(){return!(0,R.getDocument)()&&!!(0,R.getNavigator)()&&"ReactNative"===navigator.product}function It(){return!_t()&&!!(0,R.getNavigator)()&&!!(0,R.getDocument)()}function St(){return Et()?yt:_t()?vt:It()?mt:wt}function Pt(){var e;try{return Et()&&typeof r.g<"u"&&typeof(null==r.g?void 0:r.g.Application)<"u"?null==(e=r.g.Application)?void 0:e.applicationId:void 0}catch{return}}function Ot(){return(0,N.g)()||{name:"",description:"",url:"",icons:[""]}}function xt(e,t,i){const n=function(){if(St()===yt&&typeof r.g<"u"&&typeof(null==r.g?void 0:r.g.Platform)<"u"){const{OS:e,Version:t}=r.g.Platform;return[e,t].join("-")}const e=O();if(null===e)return"unknown";const t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[t,e.name,e.version].join("-"):[t,e.version].join("-")}(),s=function(){var e;const t=St();return t===mt?[t,(null==(e=(0,R.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),[bt,i].join("-"),n,s].join("/")}function Tt({protocol:e,version:t,relayUrl:r,sdkVersion:i,auth:n,projectId:s,useOnCloseEvent:o,bundleId:a,packageName:c}){const h=r.split("?"),u={auth:n,ua:xt(e,t,i),projectId:s,useOnCloseEvent:o||void 0,packageName:c||void 0,bundleId:a||void 0},l=function(e,t){let r=C.parse(e);return r=gt(gt({},r),t),C.stringify(r)}(h[1]||"",u);return h[0]+"?"+l}function At(e,t){return e.filter((e=>t.includes(e))).length===e.length}function Rt(e){return Object.fromEntries(e.entries())}function Nt(e){return new Map(Object.entries(e))}function Ct(e=A.FIVE_MINUTES,t){const r=(0,A.toMiliseconds)(e||A.FIVE_MINUTES);let i,n,s,o;return{resolve:e=>{s&&i&&(clearTimeout(s),i(e),o=Promise.resolve(e))},reject:e=>{s&&n&&(clearTimeout(s),n(e))},done:()=>new Promise(((e,a)=>{if(o)return e(o);s=setTimeout((()=>{const e=new Error(t);o=Promise.reject(e),a(e)}),r),i=e,n=a}))}}function jt(e,t,r){return new Promise((async(i,n)=>{const s=setTimeout((()=>n(new Error(r))),t);try{i(await e)}catch(Sn){n(Sn)}clearTimeout(s)}))}function kt(e,t){if("string"==typeof t&&t.startsWith(`${e}:`))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}if("id"===e.toLowerCase()){if("number"!=typeof t)throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${e}`)}function Mt(e){const[t,r]=e.split(":"),i={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof r)i.topic=r;else{if("id"!==t||!Number.isInteger(Number(r)))throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);i.id=Number(r)}return i}function Lt(e,t){return(0,A.fromMiliseconds)((t||Date.now())+(0,A.toMiliseconds)(e))}function Dt(e){return Date.now()>=(0,A.toMiliseconds)(e)}function Ut(e,t){return`${e}${t?`:${t}`:""}`}function $t(e=[],t=[]){return[...new Set([...e,...t])]}async function qt({id:e,topic:t,wcDeepLink:i}){var n;try{if(!i)return;const s="string"==typeof i?JSON.parse(i):i,o=s?.href;if("string"!=typeof o)return;const a=function(e,t,r){const i=`requestId=${t}&sessionTopic=${r}`;e.endsWith("/")&&(e=e.slice(0,-1));let n=`${e}`;if(e.startsWith("https://t.me")){n=`${n}${e.includes("?")?"&startapp=":"?startapp="}${function(e,t=!1){const r=Buffer.from(e).toString("base64");return t?r.replace(/[=]/g,""):r}(i,!0)}`}else n=`${n}/wc?${i}`;return n}(o,e,t),c=St();if(c===mt){if(null==(n=(0,R.getDocument)())||!n.hasFocus())return void console.warn("Document does not have focus, skipping deeplink.");a.startsWith("https://")||a.startsWith("http://")?window.open(a,"_blank","noreferrer noopener"):window.open(a,typeof window<"u"&&(window.TelegramWebviewProxy||window.Telegram||window.TelegramWebviewProxyProto)?"_blank":"_self","noreferrer noopener")}else c===yt&&typeof(null==r.g?void 0:r.g.Linking)<"u"&&await r.g.Linking.openURL(a)}catch(s){console.error(s)}}function zt(e,t){if(!e.includes(t))return null;const r=e.split(/([&,?,=])/),i=r.indexOf(t);return r[i+2]}function Ht(){return typeof crypto<"u"&&null!=crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Kt(){return typeof process<"u"&&"true"===process.env.IS_VITEST}function Bt(e){return Buffer.from(e,"base64").toString("utf-8")}const Ft="https://rpc.walletconnect.org/v1";async function Vt(e,t,r,i,n,s){switch(r.t){case"eip191":return function(e,t,r){return(0,k.x_)((0,j.A)(t),r).toLowerCase()===e.toLowerCase()}(e,t,r.s);case"eip1271":return await async function(e,t,r,i,n,s){const o=at(i);if(!o.namespace||!o.reference)throw new Error(`isValidEip1271Signature failed: chainId must be in CAIP-2 format, received: ${i}`);try{const o="0x1626ba7e",a="0000000000000000000000000000000000000000000000000000000000000040",c="0000000000000000000000000000000000000000000000000000000000000041",h=r.substring(2),u=o+(0,j.A)(t).substring(2)+a+c+h,l=await fetch(`${s||Ft}/?chainId=${i}&projectId=${n}`,{method:"POST",body:JSON.stringify({id:Wt(),jsonrpc:"2.0",method:"eth_call",params:[{to:e,data:u},"latest"]})}),{result:p}=await l.json();return!!p&&p.slice(0,o.length).toLowerCase()===o.toLowerCase()}catch(a){return console.error("isValidEip1271Signature: ",a),!1}}(e,t,r.s,i,n,s);default:throw new Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${r.t}`)}}function Wt(){return Date.now()+Math.floor(1e3*Math.random())}var Gt=Object.defineProperty,Yt=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,Qt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,er=(e,t,r)=>t in e?Gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tr=(e,t)=>{for(var r in t||(t={}))Xt.call(t,r)&&er(e,r,t[r]);if(Qt)for(var r of Qt(t))Zt.call(t,r)&&er(e,r,t[r]);return e},rr=(e,t)=>Yt(e,Jt(t));const ir=e=>e?.split(":"),nr=e=>{const t=e&&ir(e);if(t)return t[2]+":"+t[3]},sr=e=>{const t=e&&ir(e);if(t)return t.pop()};async function or(e){const{cacao:t,projectId:r}=e,{s:i,p:n}=t,s=ar(n,n.iss),o=sr(n.iss);return await Vt(o,s,i,nr(n.iss),r)}const ar=(e,t)=>{const r=`${e.domain} wants you to sign in with your Ethereum account:`,i=sr(t);if(!e.aud&&!e.uri)throw new Error("Either `aud` or `uri` is required to construct the message");let n=e.statement||void 0;const s=`URI: ${e.aud||e.uri}`,o=`Version: ${e.version}`,a=`Chain ID: ${(e=>{const t=e&&ir(e);if(t)return e.includes("did:pkh:")?t[3]:t[1]})(t)}`,c=`Nonce: ${e.nonce}`,h=`Issued At: ${e.iat}`,u=e.exp?`Expiration Time: ${e.exp}`:void 0,l=e.nbf?`Not Before: ${e.nbf}`:void 0,p=e.requestId?`Request ID: ${e.requestId}`:void 0,d=e.resources?`Resources:${e.resources.map((e=>`\n- ${e}`)).join("")}`:void 0,f=mr(e.resources);if(f){n=gr(n,lr(f))}return[r,i,"",n,"",s,o,a,c,h,u,l,p,d].filter((e=>null!=e)).join("\n")};function cr(e){if(!e)throw new Error("No recap provided, value is undefined");if(!e.att)throw new Error("No `att` property found");const t=Object.keys(e.att);if(null==t||!t.length)throw new Error("No resources found in `att` property");t.forEach((t=>{const r=e.att[t];if(Array.isArray(r))throw new Error(`Resource must be an object: ${t}`);if("object"!=typeof r)throw new Error(`Resource must be an object: ${t}`);if(!Object.keys(r).length)throw new Error(`Resource object is empty: ${t}`);Object.keys(r).forEach((e=>{const t=r[e];if(!Array.isArray(t))throw new Error(`Ability limits ${e} must be an array of objects, found: ${t}`);if(!t.length)throw new Error(`Value of ${e} is empty array, must be an array with objects`);t.forEach((t=>{if("object"!=typeof t)throw new Error(`Ability limits (${e}) must be an array of objects, found: ${t}`)}))}))}))}function hr(e,t,r={}){t=t?.sort(((e,t)=>e.localeCompare(t)));const i=t.map((t=>({[`${e}/${t}`]:[r]})));return Object.assign({},...i)}function ur(e){return cr(e),`urn:recap:${function(e){return Buffer.from(JSON.stringify(e)).toString("base64")}(e).replace(/=/g,"")}`}function lr(e){const t=function(e){return JSON.parse(Buffer.from(e,"base64").toString("utf-8"))}(e.replace("urn:recap:",""));return cr(t),t}function pr(e,t,r){const i=function(e,t,r,i={}){return r?.sort(((e,t)=>e.localeCompare(t))),{att:{[e]:hr(t,r,i)}}}(e,t,r);return ur(i)}function dr(e){return e&&e.includes("urn:recap:")}function fr(e,t){const r=function(e,t){cr(e),cr(t);const r=Object.keys(e.att).concat(Object.keys(t.att)).sort(((e,t)=>e.localeCompare(t))),i={att:{}};return r.forEach((r=>{var n,s;Object.keys((null==(n=e.att)?void 0:n[r])||{}).concat(Object.keys((null==(s=t.att)?void 0:s[r])||{})).sort(((e,t)=>e.localeCompare(t))).forEach((n=>{var s,o;i.att[r]=rr(tr({},i.att[r]),{[n]:(null==(s=e.att[r])?void 0:s[n])||(null==(o=t.att[r])?void 0:o[n])})}))})),i}(lr(e),lr(t));return ur(r)}function gr(e="",t){cr(t);const r="I further authorize the stated URI to perform the following actions on my behalf: ";if(e.includes(r))return e;const i=[];let n=0;Object.keys(t.att).forEach((e=>{const r=Object.keys(t.att[e]).map((e=>({ability:e.split("/")[0],action:e.split("/")[1]})));r.sort(((e,t)=>e.action.localeCompare(t.action)));const s={};r.forEach((e=>{s[e.ability]||(s[e.ability]=[]),s[e.ability].push(e.action)}));const o=Object.keys(s).map((t=>(n++,`(${n}) '${t}': '${s[t].join("', '")}' for '${e}'.`)));i.push(o.join(", ").replace(".,","."))}));return`${e?e+" ":""}${`${r}${i.join(" ")}`}`}function yr(e){var t;const r=lr(e);cr(r);const i=null==(t=r.att)?void 0:t.eip155;return i?Object.keys(i).map((e=>e.split("/")[1])):[]}function vr(e){const t=lr(e);cr(t);const r=[];return Object.values(t.att).forEach((e=>{Object.values(e).forEach((e=>{var t;null!=(t=e?.[0])&&t.chains&&r.push(e[0].chains)}))})),[...new Set(r.flat())]}function mr(e){if(!e)return;const t=e?.[e.length-1];return dr(t)?t:void 0}const wr="base10",br="base16",_r="base64pad",Er="base64url",Ir="utf8";function Sr(){return Ce((0,D.randomBytes)(32),br)}function Pr(e){return Ce((0,U.tW)(Ne(e,br)),br)}function Or(e){return Ce((0,U.tW)(Ne(e,Ir)),br)}function xr(e){return Ne(`${e}`,wr)}function Tr(e){return Number(Ce(e,wr))}function Ar(e){const{encoding:t=_r}=e;if(2===Tr(e.type))return Ce(z([e.type,e.sealed]),t);if(1===Tr(e.type)){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Ce(z([e.type,e.senderPublicKey,e.iv,e.sealed]),t)}return Ce(z([e.type,e.iv,e.sealed]),t)}function Rr(e){const{encoded:t,encoding:r=_r}=e,i=Ne(t,r),n=i.slice(0,1);if(1===Tr(n)){const e=33,t=e+12,r=i.slice(1,e),s=i.slice(e,t);return{type:n,sealed:i.slice(t),iv:s,senderPublicKey:r}}if(2===Tr(n)){return{type:n,sealed:i.slice(1),iv:(0,D.randomBytes)(12)}}const s=i.slice(1,13);return{type:n,sealed:i.slice(13),iv:s}}function Nr(e){const t=e?.type||0;if(1===t){if(typeof e?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof e?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:e?.senderPublicKey,receiverPublicKey:e?.receiverPublicKey}}function Cr(e){return 1===e.type&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}function jr(e){return 2===e.type}function kr(e,t){const[r,i,n]=e.split("."),s=function(e){return Buffer.from(function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");const r=t.length%4;return r>0&&(t+="=".repeat(4-r)),t}(e),"base64")}(n);if(64!==s.length)throw new Error("Invalid signature length");const o=s.slice(0,32).toString("hex"),a=s.slice(32,64).toString("hex"),c=`${r}.${i}`,h=(new U.aD).update(Buffer.from(c)).digest(),u=function(e){return new je.ec("p256").keyFromPublic({x:Buffer.from(e.x,"base64").toString("hex"),y:Buffer.from(e.y,"base64").toString("hex")},"hex")}(t),l=Buffer.from(h).toString("hex");if(!u.verify(l,{r:o,s:a}))throw new Error("Invalid signature");return rt(e).payload}function Mr(e){return e?.relay||{protocol:"irn"}}function Lr(e){const t=st[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var Dr=Object.defineProperty,Ur=Object.defineProperties,$r=Object.getOwnPropertyDescriptors,qr=Object.getOwnPropertySymbols,zr=Object.prototype.hasOwnProperty,Hr=Object.prototype.propertyIsEnumerable,Kr=(e,t,r)=>t in e?Dr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Br=(e,t)=>{for(var r in t||(t={}))zr.call(t,r)&&Kr(e,r,t[r]);if(qr)for(var r of qr(t))Hr.call(t,r)&&Kr(e,r,t[r]);return e};function Fr(e,t="-"){const r={},i="relay"+t;return Object.keys(e).forEach((t=>{if(t.startsWith(i)){const n=t.replace(i,""),s=e[t];r[n]=s}})),r}function Vr(e){if(!e.includes("wc:")){const t=Bt(e);null!=t&&t.includes("wc:")&&(e=t)}const t=(e=(e=e.includes("wc://")?e.replace("wc://",""):e).includes("wc:")?e.replace("wc:",""):e).indexOf(":"),r=-1!==e.indexOf("?")?e.indexOf("?"):void 0,i=e.substring(0,t),n=e.substring(t+1,r).split("@"),s=typeof r<"u"?e.substring(r):"",o=C.parse(s),a="string"==typeof o.methods?o.methods.split(","):void 0;return{protocol:i,topic:Wr(n[0]),version:parseInt(n[1],10),symKey:o.symKey,relay:Fr(o),methods:a,expiryTimestamp:o.expiryTimestamp?parseInt(o.expiryTimestamp,10):void 0}}function Wr(e){return e.startsWith("//")?e.substring(2):e}function Gr(e){return`${e.protocol}:${e.topic}@${e.version}?`+C.stringify(Br(((e,t)=>Ur(e,$r(t)))(Br({symKey:e.symKey},function(e,t="-"){const r={};return Object.keys(e).forEach((i=>{const n="relay"+t+i;e[i]&&(r[n]=e[i])})),r}(e.relay)),{expiryTimestamp:e.expiryTimestamp}),e.methods?{methods:e.methods.join(",")}:{}))}function Yr(e,t,r){return`${e}?wc_ev=${r}&topic=${t}`}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function Jr(e){const t=[];return e.forEach((e=>{const[r,i]=e.split(":");t.push(`${r}:${i}`)})),t}function Qr(e){return e.includes(":")}function Xr(e){return Qr(e)?e.split(":")[0]:e}function Zr(e,t){t=t.map((e=>e.replace("did:pkh:","")));const r=function(e){const t={};return e?.forEach((e=>{const[r,i]=e.split(":");t[r]||(t[r]={accounts:[],chains:[],events:[]}),t[r].accounts.push(e),t[r].chains.push(`${r}:${i}`)})),t}(t);for(const[i,n]of Object.entries(r))n.methods?n.methods=$t(n.methods,e):n.methods=e,n.events=["chainChanged","accountsChanged"];return r}const ei={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},ti={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function ri(e,t){const{message:r,code:i}=ti[e];return{message:t?`${r} ${t}`:r,code:i}}function ii(e,t){const{message:r,code:i}=ei[e];return{message:t?`${r} ${t}`:r,code:i}}function ni(e,t){return!!Array.isArray(e)&&(!(typeof t<"u"&&e.length)||e.every(t))}function si(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function oi(e){return typeof e>"u"}function ai(e,t){return!(!t||!oi(e))||"string"==typeof e&&!!e.trim().length}function ci(e,t){return!(!t||!oi(e))||"number"==typeof e&&!isNaN(e)}function hi(e){return!(!ai(e,!1)||!e.includes(":"))&&2===e.split(":").length}function ui(e){let t=!0;return ni(e)?e.length&&(t=e.every((e=>ai(e,!1)))):t=!1,t}function li(e,t,r){let i=null;return Object.entries(e).forEach((([e,n])=>{if(i)return;const s=function(e,t,r){let i=null;return ni(t)&&t.length?t.forEach((e=>{i||hi(e)||(i=ii("UNSUPPORTED_CHAINS",`${r}, chain ${e} should be a string and conform to "namespace:chainId" format`))})):hi(e)||(i=ii("UNSUPPORTED_CHAINS",`${r}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),i}(e,ht(e,n),`${t} ${r}`);s&&(i=s)})),i}function pi(e,t){let r=null;return ni(e)?e.forEach((e=>{r||function(e){if(ai(e,!1)&&e.includes(":")){const t=e.split(":");if(3===t.length){const e=t[0]+":"+t[1];return!!t[2]&&hi(e)}}return!1}(e)||(r=ii("UNSUPPORTED_ACCOUNTS",`${t}, account ${e} should be a string and conform to "namespace:chainId:address" format`))})):r=ii("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}function di(e,t){let r=null;return Object.values(e).forEach((e=>{if(r)return;const i=function(e,t){let r=null;return ui(e?.methods)?ui(e?.events)||(r=ii("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):r=ii("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),r}(e,`${t}, namespace`);i&&(r=i)})),r}function fi(e,t){let r=null;if(e&&si(e)){const i=di(e,t);i&&(r=i);const n=function(e,t){let r=null;return Object.values(e).forEach((e=>{if(r)return;const i=pi(e?.accounts,`${t} namespace`);i&&(r=i)})),r}(e,t);n&&(r=n)}else r=ri("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function gi(e){return ai(e.protocol,!0)}function yi(e){return typeof e<"u"&&null!==typeof e}function vi(e,t){return!(!hi(t)||!function(e){const t=[];return Object.values(e).forEach((e=>{t.push(...Jr(e.accounts))})),t}(e).includes(t))}function mi(e,t,r){return!!ai(r,!1)&&function(e,t){const r=[];return Object.values(e).forEach((e=>{Jr(e.accounts).includes(t)&&r.push(...e.methods)})),r}(e,t).includes(r)}function wi(e,t,r){return!!ai(r,!1)&&function(e,t){const r=[];return Object.values(e).forEach((e=>{Jr(e.accounts).includes(t)&&r.push(...e.events)})),r}(e,t).includes(r)}function bi(e,t,r){let i=null;const n=function(e){const t={};return Object.keys(e).forEach((r=>{var i;r.includes(":")?t[r]=e[r]:null==(i=e[r].chains)||i.forEach((i=>{t[i]={methods:e[r].methods,events:e[r].events}}))})),t}(e),s=function(e){const t={};return Object.keys(e).forEach((r=>{if(r.includes(":"))t[r]=e[r];else{const i=Jr(e[r].accounts);i?.forEach((i=>{t[i]={accounts:e[r].accounts.filter((e=>e.includes(`${i}:`))),methods:e[r].methods,events:e[r].events}}))}})),t}(t),o=Object.keys(n),a=Object.keys(s),c=_i(Object.keys(e)),h=_i(Object.keys(t)),u=c.filter((e=>!h.includes(e)));return u.length&&(i=ri("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces.\n Required: ${u.toString()}\n Received: ${Object.keys(t).toString()}`)),At(o,a)||(i=ri("NON_CONFORMING_NAMESPACES",`${r} namespaces chains don't satisfy required namespaces.\n Required: ${o.toString()}\n Approved: ${a.toString()}`)),Object.keys(t).forEach((e=>{if(!e.includes(":")||i)return;const n=Jr(t[e].accounts);n.includes(e)||(i=ri("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace accounts for ${e}\n Required: ${e}\n Approved: ${n.toString()}`))})),o.forEach((e=>{i||(At(n[e].methods,s[e].methods)?At(n[e].events,s[e].events)||(i=ri("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${e}`)):i=ri("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${e}`))})),i}function _i(e){return[...new Set(e.map((e=>e.includes(":")?e.split(":")[0]:e)))]}function Ei(){const e=St();return new Promise((t=>{switch(e){case mt:t(It()&&navigator?.onLine);break;case yt:t(async function(){if(Et()&&typeof r.g<"u"&&null!=r.g&&r.g.NetInfo){const e=await(null==r.g?void 0:r.g.NetInfo.fetch());return e?.isConnected}return!0}());break;default:t(!0)}}))}function Ii(e){switch(St()){case mt:!function(e){!Et()&&It()&&(window.addEventListener("online",(()=>e(!0))),window.addEventListener("offline",(()=>e(!1))))}(e);break;case yt:!function(e){Et()&&typeof r.g<"u"&&null!=r.g&&r.g.NetInfo&&r.g?.NetInfo.addEventListener((t=>e(t?.isConnected)))}(e)}}const Si={};class Pi{static get(e){return Si[e]}static set(e,t){Si[e]=t}static delete(e){delete Si[e]}}class Oi{}class xi extends Oi{constructor(e){super()}}const Ti=A.FIVE_SECONDS,Ai="heartbeat_pulse";class Ri extends xi{constructor(e){super(e),this.events=new g.EventEmitter,this.interval=Ti,this.interval=e?.interval||Ti}static async init(e){const t=new Ri(e);return await t.init(),t}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async initialize(){this.intervalRef=setInterval((()=>this.pulse()),(0,A.toMiliseconds)(this.interval))}pulse(){this.events.emit(Ai)}}const Ni=/"(?:_|\\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*:/,Ci=/"(?: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*:/,ji=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ki(e,t){if(!("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t))return t;!function(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}(e)}function Mi(e,t={}){if("string"!=typeof e)return e;const r=e.trim();if('"'===e[0]&&e.endsWith('"')&&!e.includes("\\"))return r.slice(1,-1);if(r.length<=9){const 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(!ji.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Ni.test(e)||Ci.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,ki)}return JSON.parse(e)}catch(i){if(t.strict)throw i;return e}}function Li(e,...t){try{return(r=e(...t))&&"function"==typeof r.then?r:Promise.resolve(r)}catch(i){return Promise.reject(i)}var r}function Di(e){if(function(e){const t=typeof e;return null===e||"object"!==t&&"function"!==t}(e))return String(e);if(function(e){const t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}(e)||Array.isArray(e))return JSON.stringify(e);if("function"==typeof e.toJSON)return Di(e.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function Ui(){if("undefined"==typeof Buffer)throw new TypeError("[unstorage] Buffer is not supported!")}const $i="base64:";function qi(e){return e?e.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function zi(...e){return qi(e.join(":"))}function Hi(e){return(e=qi(e))?e+":":""}const Ki=()=>{const e=new Map;return{name:"memory",getInstance:()=>e,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:()=>[...e.keys()],clear(){e.clear()},dispose(){e.clear()}}};function Bi(e={}){const t={mounts:{"":e.driver||Ki()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=e=>{for(const 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){r=qi(r);for(const i of t.watchListeners)i(e,r)}},s=async()=>{if(t.watching){for(const e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},o=(e,t,i)=>{const 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(const o of e){const e="string"==typeof o,i=qi(e?o:o.key),n=e?void 0:o.value,a=e||!o.options?t:{...t,...o.options},c=r(i);s(c).items.push({key:i,value:n,relativeKey:c.relativeKey,options:a})}return Promise.all([...n.values()].map((e=>i(e)))).then((e=>e.flat()))},a={hasItem(e,t={}){e=qi(e);const{relativeKey:i,driver:n}=r(e);return Li(n.hasItem,i,t)},getItem(e,t={}){e=qi(e);const{relativeKey:i,driver:n}=r(e);return Li(n.getItem,i,t).then((e=>Mi(e)))},getItems:(e,t)=>o(e,t,(e=>e.driver.getItems?Li(e.driver.getItems,e.items.map((e=>({key:e.relativeKey,options:e.options}))),t).then((t=>t.map((t=>({key:zi(e.base,t.key),value:Mi(t.value)}))))):Promise.all(e.items.map((t=>Li(e.driver.getItem,t.relativeKey,t.options).then((e=>({key:t.key,value:Mi(e)})))))))),getItemRaw(e,t={}){e=qi(e);const{relativeKey:i,driver:n}=r(e);return n.getItemRaw?Li(n.getItemRaw,i,t):Li(n.getItem,i,t).then((e=>function(e){return"string"!=typeof e?e:e.startsWith($i)?(Ui(),Buffer.from(e.slice(7),"base64")):e}(e)))},async setItem(e,t,i={}){if(void 0===t)return a.removeItem(e);e=qi(e);const{relativeKey:s,driver:o}=r(e);o.setItem&&(await Li(o.setItem,s,Di(t),i),o.watch||n("update",e))},async setItems(e,t){await o(e,t,(async e=>{if(e.driver.setItems)return Li(e.driver.setItems,e.items.map((e=>({key:e.relativeKey,value:Di(e.value),options:e.options}))),t);e.driver.setItem&&await Promise.all(e.items.map((t=>Li(e.driver.setItem,t.relativeKey,Di(t.value),t.options))))}))},async setItemRaw(e,t,i={}){if(void 0===t)return a.removeItem(e,i);e=qi(e);const{relativeKey:s,driver:o}=r(e);if(o.setItemRaw)await Li(o.setItemRaw,s,t,i);else{if(!o.setItem)return;await Li(o.setItem,s,function(e){if("string"==typeof e)return e;Ui();const t=Buffer.from(e).toString("base64");return $i+t}(t),i)}o.watch||n("update",e)},async removeItem(e,t={}){"boolean"==typeof t&&(t={removeMeta:t}),e=qi(e);const{relativeKey:i,driver:s}=r(e);s.removeItem&&(await Li(s.removeItem,i,t),(t.removeMeta||t.removeMata)&&await Li(s.removeItem,i+"$",t),s.watch||n("remove",e))},async getMeta(e,t={}){"boolean"==typeof t&&(t={nativeOnly:t}),e=qi(e);const{relativeKey:i,driver:n}=r(e),s=Object.create(null);if(n.getMeta&&Object.assign(s,await Li(n.getMeta,i,t)),!t.nativeOnly){const e=await Li(n.getItem,i+"$",t).then((e=>Mi(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={}){e=Hi(e);const r=i(e,!0);let n=[];const s=[];for(const i of r){const e=await Li(i.driver.getKeys,i.relativeBase,t);for(const t of e){const e=i.mountpoint+qi(t);n.some((t=>e.startsWith(t)))||s.push(e)}n=[i.mountpoint,...n.filter((e=>!e.startsWith(i.mountpoint)))]}return e?s.filter((t=>t.startsWith(e)&&"$"!==t[t.length-1])):s.filter((e=>"$"!==e[e.length-1]))},async clear(e,t={}){e=Hi(e),await Promise.all(i(e,!1).map((async e=>{if(e.driver.clear)return Li(e.driver.clear,e.relativeBase,t);if(e.driver.removeItem){const r=await e.driver.getKeys(e.relativeBase||"",t);return Promise.all(r.map((r=>e.driver.removeItem(r,t))))}})))},async dispose(){await Promise.all(Object.values(t.mounts).map((e=>Vi(e))))},watch:async e=>(await(async()=>{if(!t.watching){t.watching=!0;for(const e in t.mounts)t.unwatch[e]=await Fi(t.mounts[e],n,e)}})(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter((t=>t!==e)),0===t.watchListeners.length&&await s()}),async unwatch(){t.watchListeners=[],await s()},mount(e,r){if((e=Hi(e))&&t.mounts[e])throw new 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(Fi(r,n,e)).then((r=>{t.unwatch[e]=r})).catch(console.error),a},async unmount(e,r=!0){(e=Hi(e))&&t.mounts[e]&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),r&&await Vi(t.mounts[e]),t.mountpoints=t.mountpoints.filter((t=>t!==e)),delete t.mounts[e])},getMount(e=""){e=qi(e)+":";const t=r(e);return{driver:t.driver,base:t.base}},getMounts(e="",t={}){e=qi(e);return i(e,t.parents).map((e=>({driver:e.driver,base:e.mountpoint})))},keys:(e,t={})=>a.getKeys(e,t),get:(e,t={})=>a.getItem(e,t),set:(e,t,r={})=>a.setItem(e,t,r),has:(e,t={})=>a.hasItem(e,t),del:(e,t={})=>a.removeItem(e,t),remove:(e,t={})=>a.removeItem(e,t)};return a}function Fi(e,t,r){return e.watch?e.watch(((e,i)=>t(e,r+i))):()=>{}}async function Vi(e){"function"==typeof e.dispose&&await Li(e.dispose)}function Wi(e){return new Promise(((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)}))}function Gi(e,t){const r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);const i=Wi(r);return(e,r)=>i.then((i=>r(i.transaction(t,e).objectStore(t))))}let Yi;function Ji(){return Yi||(Yi=Gi("keyval-store","keyval")),Yi}function Qi(e,t=Ji()){return t("readonly",(t=>Wi(t.get(e))))}function Xi(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},Wi(e.transaction)}var Zi=(e={})=>{const t=e.base&&e.base.length>0?`${e.base}:`:"",r=e=>t+e;let i;return e.dbName&&e.storeName&&(i=Gi(e.dbName,e.storeName)),{name:"idb-keyval",options:e,hasItem:async e=>!(typeof await Qi(r(e),i)>"u"),getItem:async e=>await Qi(r(e),i)??null,setItem:(e,t)=>function(e,t,r=Ji()){return r("readwrite",(r=>(r.put(t,e),Wi(r.transaction))))}(r(e),t,i),removeItem:e=>function(e,t=Ji()){return t("readwrite",(t=>(t.delete(e),Wi(t.transaction))))}(r(e),i),getKeys:()=>function(e=Ji()){return e("readonly",(e=>{if(e.getAllKeys)return Wi(e.getAllKeys());const t=[];return Xi(e,(e=>t.push(e.key))).then((()=>t))}))}(i),clear:()=>function(e=Ji()){return e("readwrite",(e=>(e.clear(),Wi(e.transaction))))}(i)}};class en{constructor(){this.indexedDb=Bi({driver:Zi({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){const t=await this.indexedDb.getItem(e);if(null!==t)return t}async setItem(e,t){await this.indexedDb.setItem(e,Qe(t))}async removeItem(e){await this.indexedDb.removeItem(e)}}var tn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof r.g<"u"?r.g:typeof self<"u"?self:{},rn={exports:{}};function nn(e){var t;return[e[0],Je(null!=(t=e[1])?t:"")]}!function(){let e;function t(){}e=t,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(){const 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})),typeof tn<"u"&&tn.localStorage?rn.exports=tn.localStorage:typeof window<"u"&&window.localStorage?rn.exports=window.localStorage:rn.exports=new t}();class sn{constructor(){this.localStorage=rn.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(nn)}async getItem(e){const t=this.localStorage.getItem(e);if(null!==t)return Je(t)}async setItem(e,t){this.localStorage.setItem(e,Qe(t))}async removeItem(e){this.localStorage.removeItem(e)}}const on=async(e,t)=>{t.length&&t.forEach((async t=>{await e.removeItem(t)}))};class an{constructor(){this.initialized=!1,this.setInitialized=e=>{this.storage=e,this.initialized=!0};const e=new sn;this.storage=e;try{(async(e,t,r)=>{const i="wc_storage_version",n=await t.getItem(i);if(n&&n>=1)return void r(t);const s=await e.getKeys();if(!s.length)return void r(t);const o=[];for(;s.length;){const r=s.shift();if(!r)continue;const i=r.toLowerCase();if(i.includes("wc@")||i.includes("walletconnect")||i.includes("wc_")||i.includes("wallet_connect")){const i=await e.getItem(r);await t.setItem(r,i),o.push(r)}}await t.setItem(i,1),r(t),on(e,o)})(e,new en,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,t){return await this.initialize(),this.storage.setItem(e,t)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise((e=>{const t=setInterval((()=>{this.initialized&&(clearInterval(t),e())}),20)}))}}var cn=r(44874),hn=r.n(cn);const un="info",ln="custom_context";class pn{constructor(e){this.nodeValue=e,this.sizeInBytes=(new TextEncoder).encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}}class dn{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){const t=new pn(e);if(t.size>this.maxSizeInBytes)throw new Error(`[LinkedList] Value too big to insert into list: ${e} with size ${t.size}`);for(;this.size+t.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=t),this.tail=t):(this.head=t,this.tail=t),this.lengthInNodes++,this.sizeInBytes+=t.size}shift(){if(!this.head)return;const e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){const e=[];let t=this.head;for(;null!==t;)e.push(t.value),t=t.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};const t=e.value;return e=e.next,{done:!1,value:t}}}}}class fn{constructor(e,t=1024e3){this.level=e??"error",this.levelValue=cn.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=t,this.logs=new dn(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,t){t===cn.levels.values.error?console.error(e):t===cn.levels.values.warn?console.warn(e):t===cn.levels.values.debug?console.debug(e):t===cn.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append(Qe({timestamp:(new Date).toISOString(),log:e}));const t="string"==typeof e?JSON.parse(e).level:e.level;t>=this.levelValue&&this.forwardToConsole(e,t)}getLogs(){return this.logs}clearLogs(){this.logs=new dn(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){const t=this.getLogArray();return t.push(Qe({extraMetadata:e})),new Blob(t,{type:"application/json"})}}class gn{constructor(e,t=1024e3){this.baseChunkLogger=new fn(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){const t=URL.createObjectURL(this.logsToBlob(e)),r=document.createElement("a");r.href=t,r.download=`walletconnect-logs-${(new Date).toISOString()}.txt`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(t)}}class yn{constructor(e,t=1024e3){this.baseChunkLogger=new fn(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}}var vn=Object.defineProperty,mn=Object.defineProperties,wn=Object.getOwnPropertyDescriptors,bn=Object.getOwnPropertySymbols,_n=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,In=(e,t,r)=>t in e?vn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sn=(e,t)=>{for(var r in t||(t={}))_n.call(t,r)&&In(e,r,t[r]);if(bn)for(var r of bn(t))En.call(t,r)&&In(e,r,t[r]);return e},Pn=(e,t)=>mn(e,wn(t));function On(e){return Pn(Sn({},e),{level:e?.level||un})}function xn(e,t=ln){let r="";return r=typeof e.bindings>"u"?function(e,t=ln){return e[t]||""}(e,t):e.bindings().context||"",r}function Tn(e,t,r=ln){const i=function(e,t,r=ln){const i=xn(e,r);return i.trim()?`${i}/${t}`:t}(e,t,r);return function(e,t,r=ln){return e[r]=t,e}(e.child({context:i}),i,r)}function An(e){return typeof e.loggerOverride<"u"&&"string"!=typeof e.loggerOverride?{logger:e.loggerOverride,chunkLoggerController:null}:typeof window<"u"?function(e){var t,r;const i=new gn(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:hn()(Pn(Sn({},e.opts),{level:"trace",browser:Pn(Sn({},null==(r=e.opts)?void 0:r.browser),{write:e=>i.write(e)})})),chunkLoggerController:i}}(e):function(e){var t;const r=new yn(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:hn()(Pn(Sn({},e.opts),{level:"trace"}),r),chunkLoggerController:r}}(e)}class Rn extends Oi{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}}class Nn extends Oi{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}}class Cn{constructor(e,t){this.logger=e,this.core=t}}class jn extends Oi{constructor(e,t){super(),this.relayer=e,this.logger=t}}class kn extends Oi{constructor(e){super()}}class Mn{constructor(e,t,r,i){this.core=e,this.logger=t,this.name=r}}class Ln extends Oi{constructor(e,t){super(),this.relayer=e,this.logger=t}}class Dn extends Oi{constructor(e,t){super(),this.core=e,this.logger=t}}class Un{constructor(e,t,r){this.core=e,this.logger=t,this.store=r}}class $n{constructor(e,t){this.projectId=e,this.logger=t}}class qn{constructor(e,t,r){this.core=e,this.logger=t,this.telemetryEnabled=r}}y();class zn{constructor(e){this.opts=e,this.protocol="wc",this.version=2}}g.EventEmitter;class Hn{constructor(e){this.client=e}}const Kn="PARSE_ERROR",Bn="INVALID_REQUEST",Fn="METHOD_NOT_FOUND",Vn="INVALID_PARAMS",Wn="INTERNAL_ERROR",Gn="SERVER_ERROR",Yn=[-32700,-32600,-32601,-32602,-32603],Jn={[Kn]:{code:-32700,message:"Parse error"},[Bn]:{code:-32600,message:"Invalid Request"},[Fn]:{code:-32601,message:"Method not found"},[Vn]:{code:-32602,message:"Invalid params"},[Wn]:{code:-32603,message:"Internal error"},[Gn]:{code:-32e3,message:"Server error"}},Qn=Gn;function Xn(e){return Yn.includes(e)}function Zn(e){return Object.keys(Jn).includes(e)?Jn[e]:Jn[Qn]}function es(e){const t=Object.values(Jn).find((t=>t.code===e));return t||Jn[Qn]}function ts(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}var rs=r(525682);function is(e=3){return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function ns(e=6){return BigInt(is(e))}function ss(e,t,r){return{id:r||is(),jsonrpc:"2.0",method:e,params:t}}function os(e,t){return{id:e,jsonrpc:"2.0",result:t}}function as(e,t,r){return{id:e,jsonrpc:"2.0",error:cs(t,r)}}function cs(e,t){return void 0===e?Zn(Wn):("string"==typeof e&&(e=Object.assign(Object.assign({},Zn(Gn)),{message:e})),void 0!==t&&(e.data=t),Xn(e.code)&&(e=es(e.code)),e)}class hs{}class us extends hs{constructor(){super()}}class ls extends us{constructor(e){super()}}function ps(e,t){const r=function(e){const t=e.match(new RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return void 0!==r&&new RegExp(t).test(r)}function ds(e){return ps(e,"^https?:")}function fs(e){return ps(e,"^wss?:")}function gs(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function ys(e){return gs(e)&&"method"in e}function vs(e){return gs(e)&&(ms(e)||ws(e))}function ms(e){return"result"in e}function ws(e){return"error"in e}class bs extends ls{constructor(e){super(e),this.events=new g.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(ss(e.method,e.params||[],e.id||ns().toString()),t)}async requestStrict(e,t){return new Promise((async(r,i)=>{if(!this.connection.connected)try{await this.open()}catch(n){i(n)}this.events.on(`${e.id}`,(e=>{ws(e)?i(e.error):r(e.result)}));try{await this.connection.send(e,t)}catch(n){i(n)}}))}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),vs(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",(e=>this.onPayload(e))),this.connection.on("close",(e=>this.onClose(e))),this.connection.on("error",(e=>this.events.emit("error",e))),this.connection.on("register_error",(e=>this.onClose())),this.hasRegisteredEventListeners=!0)}}const _s=e=>e.split("?")[0],Es=typeof WebSocket<"u"?WebSocket:typeof r.g<"u"&&typeof r.g.WebSocket<"u"?r.g.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:r(490796);class Is{constructor(e){if(this.url=e,this.events=new g.EventEmitter,this.registering=!1,!fs(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise(((e,t)=>{typeof this.socket>"u"?t(new Error("Connection already closed")):(this.socket.onclose=t=>{this.onClose(t),e()},this.socket.close())}))}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Qe(e))}catch(t){this.onError(e.id,t)}}register(e=this.url){if(!fs(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){const e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise(((e,t)=>{this.events.once("register_error",(e=>{this.resetMaxListeners(),t(e)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return t(new Error("WebSocket connection is missing or invalid"));e(this.socket)}))}))}return this.url=e,this.registering=!0,new Promise(((t,i)=>{const n=(0,rs.isReactNative)()?void 0:{rejectUnauthorized:(o=e,!new RegExp("wss?://localhost(:d{2,5})?").test(o))},s=new Es(e,[],n);var o;typeof WebSocket<"u"||typeof r.g<"u"&&typeof r.g.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u"?s.onerror=e=>{const t=e;i(this.emitError(t.error))}:s.on("error",(e=>{i(this.emitError(e))})),s.onopen=()=>{this.onOpen(s),t(s)}}))}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;const t="string"==typeof e.data?Je(e.data):e.data;this.events.emit("payload",t)}onError(e,t){const r=this.parseError(t),i=as(e,r.message||r.toString());this.events.emit("payload",i)}parseError(e,t=this.url){return ts(e,_s(t),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(e){const t=this.parseError(new Error(e?.message||`WebSocket connection failed for host: ${_s(this.url)}`));return this.events.emit("register_error",t),t}}var Ss=r(908142),Ps=r.n(Ss);const Os="core",xs=`wc@2:${Os}:`,Ts="error",As={database:":memory:"},Rs="client_ed25519_seed",Ns=A.ONE_DAY,Cs=A.SIX_HOURS,js="wss://relay.walletconnect.org",ks="relayer_message",Ms="relayer_message_ack",Ls="relayer_connect",Ds="relayer_disconnect",Us="relayer_error",$s="relayer_connection_stalled",qs="relayer_publish",zs="payload",Hs="connect",Ks="disconnect",Bs="error",Fs="2.17.3",Vs={link_mode:"link_mode",relay:"relay"},Ws="WALLETCONNECT_LINK_MODE_APPS",Gs="subscription_created",Ys="subscription_deleted",Js="subscription_sync",Qs="subscription_resubscribed",Xs=1e3*A.FIVE_SECONDS,Zs={wc_pairingDelete:{req:{ttl:A.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:A.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:A.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:A.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:A.ONE_DAY,prompt:!1,tag:0},res:{ttl:A.ONE_DAY,prompt:!1,tag:0}}},eo="pairing_create",to="pairing_expire",ro="pairing_delete",io="pairing_ping",no="history_created",so="history_updated",oo="history_deleted",ao="history_sync",co="expirer_created",ho="expirer_deleted",uo="expirer_expired",lo="expirer_sync",po="https://verify.walletconnect.org",fo=po,go=`${fo}/v3`,yo=["https://verify.walletconnect.com",po],vo="pairing_started",mo="pairing_uri_validation_success",wo="pairing_uri_not_expired",bo="store_new_pairing",_o="subscribing_pairing_topic",Eo="subscribe_pairing_topic_success",Io="existing_pairing",So="pairing_not_expired",Po="emit_inactive_pairing",Oo="emit_session_proposal",xo="no_internet_connection",To="malformed_pairing_uri",Ao="active_pairing_already_exists",Ro="subscribe_pairing_topic_failure",No="pairing_expired",Co="proposal_listener_not_found",jo="session_approve_started",ko="session_namespaces_validation_success",Mo="subscribing_session_topic",Lo="subscribe_session_topic_success",Do="publishing_session_approve",Uo="session_approve_publish_success",$o="store_session",qo="publishing_session_settle",zo="session_settle_publish_success",Ho="no_internet_connection",Ko="proposal_expired",Bo="subscribe_session_topic_failure",Fo="session_approve_publish_failure",Vo="session_settle_publish_failure",Wo="session_approve_namespace_validation_failure",Go="proposal_not_found",Yo="authenticated_session_approve_started",Jo="create_authenticated_session_topic",Qo="cacaos_verified",Xo="store_authenticated_session",Zo="subscribing_authenticated_session_topic",ea="subscribe_authenticated_session_topic_success",ta="publishing_authenticated_session_approve",ra="no_internet_connection",ia="invalid_cacao",na="subscribe_authenticated_session_topic_failure",sa="authenticated_session_approve_publish_failure",oa="authenticated_session_pending_request_not_found";var aa=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),i=0;i>>0,o=new Uint8Array(s);e[t];){var u=r[e.charCodeAt(t)];if(255===u)return;for(var l=0,p=s-1;(0!==u||l>>0,o[p]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");n=l,t++}if(" "!==e[t]){for(var d=s-n;d!==s&&0===o[d];)d++;for(var f=new Uint8Array(i+(s-d)),g=i;d!==s;)f[g++]=o[d++];return f}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,i=0,n=0,s=t.length;n!==s&&0===t[n];)n++,r++;for(var o=(s-n)*u+1>>>0,h=new Uint8Array(o);n!==s;){for(var l=t[n],p=0,d=o-1;(0!==l||p>>0,h[d]=l%a>>>0,l=l/a>>>0;if(0!==l)throw new Error("Non-zero carry");i=p,n++}for(var f=o-i;f!==o&&0===h[f];)f++;for(var g=c.repeat(r);f{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")};class ua{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class la{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return da(this,e)}}class pa{constructor(e){this.decoders=e}or(e){return da(this,e)}decode(e){const t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const da=(e,t)=>new pa({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class fa{constructor(e,t,r,i){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=i,this.encoder=new ua(e,t,r),this.decoder=new la(e,t,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const ga=({name:e,prefix:t,encode:r,decode:i})=>new fa(e,t,r,i),ya=({prefix:e,name:t,alphabet:r})=>{const{encode:i,decode:n}=ca(r,t);return ga({prefix:e,name:t,encode:i,decode:e=>ha(n(e))})},va=({name:e,prefix:t,bitsPerChar:r,alphabet:i})=>ga({prefix:t,name:e,encode:e=>((e,t,r)=>{const i="="===t[t.length-1],n=(1<r;)o-=r,s+=t[n&a>>o];if(o&&(s+=t[n&a<((e,t,r,i)=>{const n={};for(let u=0;u=8&&(a-=8,o[h++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return o})(t,i,r,e)}),ma=ga({prefix:"\0",name:"identity",encode:e=>(e=>(new TextDecoder).decode(e))(e),decode:e=>(e=>(new TextEncoder).encode(e))(e)});var wa=Object.freeze({__proto__:null,identity:ma});const ba=va({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var _a=Object.freeze({__proto__:null,base2:ba});const Ea=va({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Ia=Object.freeze({__proto__:null,base8:Ea});const Sa=ya({prefix:"9",name:"base10",alphabet:"0123456789"});var Pa=Object.freeze({__proto__:null,base10:Sa});const Oa=va({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),xa=va({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Ta=Object.freeze({__proto__:null,base16:Oa,base16upper:xa});const Aa=va({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Ra=va({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Na=va({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Ca=va({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),ja=va({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),ka=va({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Ma=va({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),La=va({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Da=va({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Ua=Object.freeze({__proto__:null,base32:Aa,base32upper:Ra,base32pad:Na,base32padupper:Ca,base32hex:ja,base32hexupper:ka,base32hexpad:Ma,base32hexpadupper:La,base32z:Da});const $a=ya({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),qa=ya({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var za=Object.freeze({__proto__:null,base36:$a,base36upper:qa});const Ha=ya({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Ka=ya({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Ba=Object.freeze({__proto__:null,base58btc:Ha,base58flickr:Ka});const Fa=va({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Va=va({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Wa=va({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Ga=va({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Ya=Object.freeze({__proto__:null,base64:Fa,base64pad:Va,base64url:Wa,base64urlpad:Ga});const Ja=Array.from("\ud83d\ude80\ud83e\ude90\u2604\ud83d\udef0\ud83c\udf0c\ud83c\udf11\ud83c\udf12\ud83c\udf13\ud83c\udf14\ud83c\udf15\ud83c\udf16\ud83c\udf17\ud83c\udf18\ud83c\udf0d\ud83c\udf0f\ud83c\udf0e\ud83d\udc09\u2600\ud83d\udcbb\ud83d\udda5\ud83d\udcbe\ud83d\udcbf\ud83d\ude02\u2764\ud83d\ude0d\ud83e\udd23\ud83d\ude0a\ud83d\ude4f\ud83d\udc95\ud83d\ude2d\ud83d\ude18\ud83d\udc4d\ud83d\ude05\ud83d\udc4f\ud83d\ude01\ud83d\udd25\ud83e\udd70\ud83d\udc94\ud83d\udc96\ud83d\udc99\ud83d\ude22\ud83e\udd14\ud83d\ude06\ud83d\ude44\ud83d\udcaa\ud83d\ude09\u263a\ud83d\udc4c\ud83e\udd17\ud83d\udc9c\ud83d\ude14\ud83d\ude0e\ud83d\ude07\ud83c\udf39\ud83e\udd26\ud83c\udf89\ud83d\udc9e\u270c\u2728\ud83e\udd37\ud83d\ude31\ud83d\ude0c\ud83c\udf38\ud83d\ude4c\ud83d\ude0b\ud83d\udc97\ud83d\udc9a\ud83d\ude0f\ud83d\udc9b\ud83d\ude42\ud83d\udc93\ud83e\udd29\ud83d\ude04\ud83d\ude00\ud83d\udda4\ud83d\ude03\ud83d\udcaf\ud83d\ude48\ud83d\udc47\ud83c\udfb6\ud83d\ude12\ud83e\udd2d\u2763\ud83d\ude1c\ud83d\udc8b\ud83d\udc40\ud83d\ude2a\ud83d\ude11\ud83d\udca5\ud83d\ude4b\ud83d\ude1e\ud83d\ude29\ud83d\ude21\ud83e\udd2a\ud83d\udc4a\ud83e\udd73\ud83d\ude25\ud83e\udd24\ud83d\udc49\ud83d\udc83\ud83d\ude33\u270b\ud83d\ude1a\ud83d\ude1d\ud83d\ude34\ud83c\udf1f\ud83d\ude2c\ud83d\ude43\ud83c\udf40\ud83c\udf37\ud83d\ude3b\ud83d\ude13\u2b50\u2705\ud83e\udd7a\ud83c\udf08\ud83d\ude08\ud83e\udd18\ud83d\udca6\u2714\ud83d\ude23\ud83c\udfc3\ud83d\udc90\u2639\ud83c\udf8a\ud83d\udc98\ud83d\ude20\u261d\ud83d\ude15\ud83c\udf3a\ud83c\udf82\ud83c\udf3b\ud83d\ude10\ud83d\udd95\ud83d\udc9d\ud83d\ude4a\ud83d\ude39\ud83d\udde3\ud83d\udcab\ud83d\udc80\ud83d\udc51\ud83c\udfb5\ud83e\udd1e\ud83d\ude1b\ud83d\udd34\ud83d\ude24\ud83c\udf3c\ud83d\ude2b\u26bd\ud83e\udd19\u2615\ud83c\udfc6\ud83e\udd2b\ud83d\udc48\ud83d\ude2e\ud83d\ude46\ud83c\udf7b\ud83c\udf43\ud83d\udc36\ud83d\udc81\ud83d\ude32\ud83c\udf3f\ud83e\udde1\ud83c\udf81\u26a1\ud83c\udf1e\ud83c\udf88\u274c\u270a\ud83d\udc4b\ud83d\ude30\ud83e\udd28\ud83d\ude36\ud83e\udd1d\ud83d\udeb6\ud83d\udcb0\ud83c\udf53\ud83d\udca2\ud83e\udd1f\ud83d\ude41\ud83d\udea8\ud83d\udca8\ud83e\udd2c\u2708\ud83c\udf80\ud83c\udf7a\ud83e\udd13\ud83d\ude19\ud83d\udc9f\ud83c\udf31\ud83d\ude16\ud83d\udc76\ud83e\udd74\u25b6\u27a1\u2753\ud83d\udc8e\ud83d\udcb8\u2b07\ud83d\ude28\ud83c\udf1a\ud83e\udd8b\ud83d\ude37\ud83d\udd7a\u26a0\ud83d\ude45\ud83d\ude1f\ud83d\ude35\ud83d\udc4e\ud83e\udd32\ud83e\udd20\ud83e\udd27\ud83d\udccc\ud83d\udd35\ud83d\udc85\ud83e\uddd0\ud83d\udc3e\ud83c\udf52\ud83d\ude17\ud83e\udd11\ud83c\udf0a\ud83e\udd2f\ud83d\udc37\u260e\ud83d\udca7\ud83d\ude2f\ud83d\udc86\ud83d\udc46\ud83c\udfa4\ud83d\ude47\ud83c\udf51\u2744\ud83c\udf34\ud83d\udca3\ud83d\udc38\ud83d\udc8c\ud83d\udccd\ud83e\udd40\ud83e\udd22\ud83d\udc45\ud83d\udca1\ud83d\udca9\ud83d\udc50\ud83d\udcf8\ud83d\udc7b\ud83e\udd10\ud83e\udd2e\ud83c\udfbc\ud83e\udd75\ud83d\udea9\ud83c\udf4e\ud83c\udf4a\ud83d\udc7c\ud83d\udc8d\ud83d\udce3\ud83e\udd42"),Qa=Ja.reduce(((e,t,r)=>(e[r]=t,e)),[]),Xa=Ja.reduce(((e,t,r)=>(e[t.codePointAt(0)]=r,e)),[]);const Za=ga({prefix:"\ud83d\ude80",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+=Qa[t]),"")},decode:function(e){const t=[];for(const r of e){const e=Xa[r.codePointAt(0)];if(void 0===e)throw new Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});var ec=Object.freeze({__proto__:null,base256emoji:Za}),tc=function e(t,r,i){r=r||[];for(var n=i=i||0;t>=nc;)r[i++]=255&t|rc,t/=128;for(;t⁣)r[i++]=255&t|rc,t>>>=7;return r[i]=0|t,e.bytes=i-n+1,r},rc=128,ic=-128,nc=Math.pow(2,31);var sc=function e(t,r){var i,n=0,s=(r=r||0,0),o=r,a=t.length;do{if(o>=a)throw e.bytes=0,new RangeError("Could not decode varint");i=t[o++],n+=s<28?(i&ac)<=oc);return e.bytes=o-r,n},oc=128,ac=127;var cc=Math.pow(2,7),hc=Math.pow(2,14),uc=Math.pow(2,21),lc=Math.pow(2,28),pc=Math.pow(2,35),dc=Math.pow(2,42),fc=Math.pow(2,49),gc=Math.pow(2,56),yc=Math.pow(2,63),vc={encode:tc,decode:sc,encodingLength:function(e){return e(mc.encode(e,t,r),t),bc=e=>mc.encodingLength(e),_c=(e,t)=>{const r=t.byteLength,i=bc(e),n=i+bc(r),s=new Uint8Array(n+r);return wc(e,s,0),wc(r,s,i),s.set(t,n),new Ec(e,r,t,s)};class Ec{constructor(e,t,r,i){this.code=e,this.size=t,this.digest=r,this.bytes=i}}const Ic=({name:e,code:t,encode:r})=>new Sc(e,t,r);class Sc{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?_c(this.code,t):t.then((e=>_c(this.code,e)))}throw Error("Unknown type, must be binary type")}}const Pc=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),Oc=Ic({name:"sha2-256",code:18,encode:Pc("SHA-256")}),xc=Ic({name:"sha2-512",code:19,encode:Pc("SHA-512")});Object.freeze({__proto__:null,sha256:Oc,sha512:xc});const Tc=ha,Ac={code:0,name:"identity",encode:Tc,digest:e=>_c(0,Tc(e))};Object.freeze({__proto__:null,identity:Ac});new TextEncoder,new TextDecoder;const Rc={...wa,..._a,...Ia,...Pa,...Ta,...Ua,...za,...Ba,...Ya,...ec};function Nc(e,t,r,i){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:i}}}const Cc=Nc("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),jc=Nc("ascii","a",(e=>{let t="a";for(let r=0;r{const t=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}((e=e.substring(1)).length);for(let r=0;r{if(!this.initialized){const e=await this.getKeyChain();typeof e<"u"&&(this.keychain=e),this.initialized=!0}},this.has=e=>(this.isInitialized(),this.keychain.has(e)),this.set=async(e,t)=>{this.isInitialized(),this.keychain.set(e,t),await this.persist()},this.get=e=>{this.isInitialized();const t=this.keychain.get(e);if(typeof t>"u"){const{message:t}=ri("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t},this.del=async e=>{this.isInitialized(),this.keychain.delete(e),await this.persist()},this.core=e,this.logger=Tn(t,this.name)}get context(){return xn(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,Rt(e))}async getKeyChain(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Nt(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:e}=ri("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Lc{constructor(e,t,r){this.core=e,this.logger=t,this.name="crypto",this.randomSessionIdentifier=Sr(),this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=e=>(this.isInitialized(),this.keychain.has(e)),this.getClientId=async()=>{this.isInitialized();return et(it(await this.getClientSeed()).publicKey)},this.generateKeyPair=()=>{this.isInitialized();const e=function(){const e=$.TZ();return{privateKey:Ce(e.secretKey,br),publicKey:Ce(e.publicKey,br)}}();return this.setPrivateKey(e.publicKey,e.privateKey)},this.signJWT=async e=>{this.isInitialized();const t=it(await this.getClientSeed()),r=this.randomSessionIdentifier,i=Ns;return await nt(r,e,i,t)},this.generateSharedKey=(e,t,r)=>{this.isInitialized();const i=function(e,t){const r=$.Tc(Ne(e,br),Ne(t,br),!0);return Ce(new L.i(U.aD,r).expand(32),br)}(this.getPrivateKey(e),t);return this.setSymKey(i,r)},this.setSymKey=async(e,t)=>{this.isInitialized();const r=t||Pr(e);return await this.keychain.set(r,e),r},this.deleteKeyPair=async e=>{this.isInitialized(),await this.keychain.del(e)},this.deleteSymKey=async e=>{this.isInitialized(),await this.keychain.del(e)},this.encode=async(e,t,r)=>{this.isInitialized();const i=Nr(r),n=Qe(t);if(jr(i))return function(e,t){const r=xr(2),i=(0,D.randomBytes)(12);return Ar({type:r,sealed:Ne(e,Ir),iv:i,encoding:t})}(n,r?.encoding);if(Cr(i)){const t=i.senderPublicKey,r=i.receiverPublicKey;e=await this.generateSharedKey(t,r)}const s=this.getSymKey(e),{type:o,senderPublicKey:a}=i;return function(e){const t=xr(typeof e.type<"u"?e.type:0);if(1===Tr(t)&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const r=typeof e.senderPublicKey<"u"?Ne(e.senderPublicKey,br):void 0,i=typeof e.iv<"u"?Ne(e.iv,br):(0,D.randomBytes)(12);return Ar({type:t,sealed:new M.g6(Ne(e.symKey,br)).seal(i,Ne(e.message,Ir)),iv:i,senderPublicKey:r,encoding:e.encoding})}({type:o,symKey:s,message:n,senderPublicKey:a,encoding:r?.encoding})},this.decode=async(e,t,r)=>{this.isInitialized();const i=function(e,t){const r=Rr({encoded:e,encoding:t?.encoding});return Nr({type:Tr(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?Ce(r.senderPublicKey,br):void 0,receiverPublicKey:t?.receiverPublicKey})}(t,r);if(jr(i)){const e=function(e,t){const{sealed:r}=Rr({encoded:e,encoding:t});return Ce(r,Ir)}(t,r?.encoding);return Je(e)}if(Cr(i)){const t=i.receiverPublicKey,r=i.senderPublicKey;e=await this.generateSharedKey(t,r)}try{const i=function(e){const t=new M.g6(Ne(e.symKey,br)),{sealed:r,iv:i}=Rr({encoded:e.encoded,encoding:e?.encoding}),n=t.open(i,r);if(null===n)throw new Error("Failed to decrypt");return Ce(n,Ir)}({symKey:this.getSymKey(e),encoded:t,encoding:r?.encoding});return Je(i)}catch(n){this.logger.error(`Failed to decode message from topic: '${e}', clientId: '${await this.getClientId()}'`),this.logger.error(n)}},this.getPayloadType=(e,t=_r)=>Tr(Rr({encoded:e,encoding:t}).type),this.getPayloadSenderPublicKey=(e,t=_r)=>{const r=Rr({encoded:e,encoding:t});return r.senderPublicKey?Ce(r.senderPublicKey,br):void 0},this.core=e,this.logger=Tn(t,this.name),this.keychain=r||new Mc(this.core,this.logger)}get context(){return xn(this.logger)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(Rs)}catch{e=Sr(),await this.keychain.set(Rs,e)}return function(e,t="utf8"){const r=kc[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${e}`):globalThis.Buffer.from(e,"utf8")}(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){const{message:e}=ri("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Dc extends Cn{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=xs,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const e=await this.getRelayerMessages();typeof e<"u"&&(this.messages=e),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(Ti){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(Ti)}finally{this.initialized=!0}}},this.set=async(e,t)=>{this.isInitialized();const r=Or(t);let i=this.messages.get(e);return typeof i>"u"&&(i={}),typeof i[r]<"u"||(i[r]=t,this.messages.set(e,i),await this.persist()),r},this.get=e=>{this.isInitialized();let t=this.messages.get(e);return typeof t>"u"&&(t={}),t},this.has=(e,t)=>{this.isInitialized();return typeof this.get(e)[Or(t)]<"u"},this.del=async e=>{this.isInitialized(),this.messages.delete(e),await this.persist()},this.logger=Tn(e,this.name),this.core=t}get context(){return xn(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,Rt(e))}async getRelayerMessages(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Nt(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:e}=ri("NOT_INITIALIZED",this.name);throw new Error(e)}}}var Uc=Object.defineProperty,$c=Object.defineProperties,qc=Object.getOwnPropertyDescriptors,zc=Object.getOwnPropertySymbols,Hc=Object.prototype.hasOwnProperty,Kc=Object.prototype.propertyIsEnumerable,Bc=(e,t,r)=>t in e?Uc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fc=(e,t)=>{for(var r in t||(t={}))Hc.call(t,r)&&Bc(e,r,t[r]);if(zc)for(var r of zc(t))Kc.call(t,r)&&Bc(e,r,t[r]);return e},Vc=(e,t)=>$c(e,qc(t));class Wc extends jn{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new g.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,A.toMiliseconds)(A.ONE_MINUTE),this.initialPublishTimeout=(0,A.toMiliseconds)(15*A.ONE_SECOND),this.needsTransportRestart=!1,this.publish=async(e,t,r)=>{var i;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:e,message:t,opts:r}});const n=r?.ttl||Cs,s=Mr(r),o=r?.prompt||!1,a=r?.tag||0,c=r?.id||ns().toString(),h={topic:e,message:t,opts:{ttl:n,relay:s,prompt:o,tag:a,id:c,attestation:r?.attestation}},u=`Failed to publish payload, please try again. id:${c} tag:${a}`;try{const i=new Promise((async i=>{const s=({id:e})=>{h.opts.id===e&&(this.removeRequestFromQueue(e),this.relayer.events.removeListener(qs,s),i(h))};this.relayer.events.on(qs,s);const u=jt(new Promise(((i,s)=>{this.rpcPublish({topic:e,message:t,ttl:n,prompt:o,tag:a,id:c,attestation:r?.attestation}).then(i).catch((e=>{this.logger.warn(e,e?.message),s(e)}))})),this.initialPublishTimeout,`Failed initial publish, retrying.... id:${c} tag:${a}`);try{await u,this.events.removeListener(qs,s)}catch(l){this.queue.set(c,Vc(Fc({},h),{attempt:1})),this.logger.warn(l,l?.message)}}));this.logger.trace({type:"method",method:"publish",params:{id:c,topic:e,message:t,opts:r}}),await jt(i,this.publishTimeout,u)}catch(l){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(l),null!=(i=r?.internal)&&i.throwOnFailedPublish)throw l}finally{this.queue.delete(c)}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.relayer=e,this.logger=Tn(t,this.name),this.registerEventListeners()}get context(){return xn(this.logger)}async rpcPublish(e){var t,r,i,n;const{topic:s,message:o,ttl:a=Cs,prompt:c,tag:h,id:u,attestation:l}=e,p={method:Lr(Mr().protocol).publish,params:{topic:s,message:o,ttl:a,prompt:c,tag:h,attestation:l},id:u};oi(null==(t=p.params)?void 0:t.prompt)&&(null==(r=p.params)||delete r.prompt),oi(null==(i=p.params)?void 0:i.tag)&&(null==(n=p.params)||delete n.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:p});const d=await this.relayer.request(p);return this.relayer.events.emit(qs,e),this.logger.debug("Successfully Published Payload"),d}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach((async(e,t)=>{const r=e.attempt+1;this.queue.set(t,Vc(Fc({},e),{attempt:r}));const{topic:i,message:n,opts:s,attestation:o}=e;this.logger.warn({},`Publisher: queue->publishing: ${e.opts.id}, tag: ${e.opts.tag}, attempt: ${r}`),await this.rpcPublish({topic:i,message:n,ttl:s.ttl,prompt:s.prompt,tag:s.tag,id:s.id,attestation:o}),this.logger.warn({},`Publisher: queue->published: ${e.opts.id}`)}))}registerEventListeners(){this.relayer.core.heartbeat.on(Ai,(()=>{if(this.needsTransportRestart)return this.needsTransportRestart=!1,void this.relayer.events.emit($s);this.checkQueue()})),this.relayer.on(Ms,(e=>{this.removeRequestFromQueue(e.id.toString())}))}}class Gc{constructor(){this.map=new Map,this.set=(e,t)=>{const r=this.get(e);this.exists(e,t)||this.map.set(e,[...r,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u")return void this.map.delete(e);if(!this.map.has(e))return;const r=this.get(e);if(!this.exists(e,t))return;const i=r.filter((e=>e!==t));i.length?this.map.set(e,i):this.map.delete(e)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var Yc=Object.defineProperty,Jc=Object.defineProperties,Qc=Object.getOwnPropertyDescriptors,Xc=Object.getOwnPropertySymbols,Zc=Object.prototype.hasOwnProperty,eh=Object.prototype.propertyIsEnumerable,th=(e,t,r)=>t in e?Yc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rh=(e,t)=>{for(var r in t||(t={}))Zc.call(t,r)&&th(e,r,t[r]);if(Xc)for(var r of Xc(t))eh.call(t,r)&&th(e,r,t[r]);return e},ih=(e,t)=>Jc(e,Qc(t));class nh extends Ln{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new Gc,this.events=new g.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=xs,this.subscribeTimeout=(0,A.toMiliseconds)(A.ONE_MINUTE),this.initialSubscribeTimeout=(0,A.toMiliseconds)(15*A.ONE_SECOND),this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId(),await this.restore()),this.initialized=!0},this.subscribe=async(e,t)=>{this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}});try{const r=Mr(t),i={topic:e,relay:r,transportType:t?.transportType};this.pending.set(e,i);const n=await this.rpcSubscribe(e,r,t);return"string"==typeof n&&(this.onSubscribe(n,i),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}})),n}catch(r){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(r),r}},this.unsubscribe=async(e,t)=>{await this.restartToComplete(),this.isInitialized(),typeof t?.id<"u"?await this.unsubscribeById(e,t.id,t):await this.unsubscribeByTopic(e,t)},this.isSubscribed=async e=>{if(this.topics.includes(e))return!0;const t=`${this.pendingSubscriptionWatchLabel}_${e}`;return await new Promise(((r,i)=>{const n=new A.Watch;n.start(t);const s=setInterval((()=>{(!this.pending.has(e)&&this.topics.includes(e)||this.cached.some((t=>t.topic===e)))&&(clearInterval(s),n.stop(t),r(!0)),n.elapsed(t)>=Xs&&(clearInterval(s),n.stop(t),i(new Error("Subscription resolution timeout")))}),this.pollingInterval)})).catch((()=>!1))},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>{await this.restore(),await this.onRestart()},this.checkPending=async()=>{if(!(0!==this.pending.size||this.initialized&&this.relayer.connected))return;const e=[];this.pending.forEach((t=>{e.push(t)})),await this.batchSubscribe(e)},this.registerEventListeners=()=>{this.relayer.core.heartbeat.on(Ai,(async()=>{await this.checkPending()})),this.events.on(Gs,(async e=>{const t=Gs;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()})),this.events.on(Ys,(async e=>{const t=Ys;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()}))},this.relayer=e,this.logger=Tn(t,this.name),this.clientId=""}get context(){return xn(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let r=!1;try{r=this.getSubscription(e).topic===t}catch{}return r}reset(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){const r=this.topicMap.get(e);await Promise.all(r.map((async r=>await this.unsubscribeById(e,r,t))))}async unsubscribeById(e,t,r){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:r}});try{const i=Mr(r);await this.rpcUnsubscribe(e,t,i);const n=ii("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,n),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:r}})}catch(Sn){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(Sn),Sn}}async rpcSubscribe(e,t,r){var i;r?.transportType===Vs.relay&&await this.restartToComplete();const n={method:Lr(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});const s=null==(i=r?.internal)?void 0:i.throwOnFailedPublish;try{const t=this.getSubscriptionId(e);if(r?.transportType===Vs.link_mode)return setTimeout((()=>{(this.relayer.connected||this.relayer.connecting)&&this.relayer.request(n).catch((e=>this.logger.warn(e)))}),(0,A.toMiliseconds)(A.ONE_SECOND)),t;const i=new Promise((async t=>{const r=i=>{i.topic===e&&(this.events.removeListener(Gs,r),t(i.id))};this.events.on(Gs,r);try{const i=await jt(new Promise(((e,t)=>{this.relayer.request(n).catch((e=>{this.logger.warn(e,e?.message),t(e)})).then(e)})),this.initialSubscribeTimeout,`Subscribing to ${e} failed, please try again`);this.events.removeListener(Gs,r),t(i)}catch{}})),o=await jt(i,this.subscribeTimeout,`Subscribing to ${e} failed, please try again`);if(!o&&s)throw new Error(`Subscribing to ${e} failed, please try again`);return o?t:null}catch(o){if(this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit($s),s)throw o}return null}async rpcBatchSubscribe(e){if(!e.length)return;const t={method:Lr(e[0].relay.protocol).batchSubscribe,params:{topics:e.map((e=>e.topic))}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:t});try{await await jt(new Promise((e=>{this.relayer.request(t).catch((e=>this.logger.warn(e))).then(e)})),this.subscribeTimeout,"rpcBatchSubscribe failed, please try again")}catch{this.relayer.events.emit($s)}}async rpcBatchFetchMessages(e){if(!e.length)return;const t={method:Lr(e[0].relay.protocol).batchFetchMessages,params:{topics:e.map((e=>e.topic))}};let r;this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:t});try{r=await await jt(new Promise(((e,r)=>{this.relayer.request(t).catch((e=>{this.logger.warn(e),r(e)})).then(e)})),this.subscribeTimeout,"rpcBatchFetchMessages failed, please try again")}catch{this.relayer.events.emit($s)}return r}rpcUnsubscribe(e,t,r){const i={method:Lr(r.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.request(i)}onSubscribe(e,t){this.setSubscription(e,ih(rh({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach((e=>{this.setSubscription(e.id,rh({},e)),this.pending.delete(e.topic)}))}async onUnsubscribe(e,t,r){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,r),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t)}addSubscription(e,t){this.subscriptions.set(e,rh({},t)),this.topicMap.set(t.topic,e),this.events.emit(Gs,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});const t=this.subscriptions.get(e);if(!t){const{message:t}=ri("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});const r=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(r.topic,e),this.events.emit(Ys,ih(rh({},r),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(Js)}async onRestart(){if(this.cached.length){const e=[...this.cached],t=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let r=0;r"u"||!e.length)return;if(this.subscriptions.size){const{message:e}=ri("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(e)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){e.length&&(await this.rpcBatchSubscribe(e),this.onBatchSubscribe(e.map((e=>ih(rh({},e),{id:this.getSubscriptionId(e.topic)})))))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);const t=await this.rpcBatchFetchMessages(e);t&&t.messages&&(await function(e){return new Promise((t=>setTimeout(t,e)))}((0,A.toMiliseconds)(A.ONE_SECOND)),await this.relayer.handleBatchMessageEvents(t.messages))}async onConnect(){await this.restart(),this.reset()}onDisconnect(){this.onDisable()}isInitialized(){if(!this.initialized){const{message:e}=ri("NOT_INITIALIZED",this.name);throw new Error(e)}}async restartToComplete(){!this.relayer.connected&&!this.relayer.connecting&&await this.relayer.transportOpen()}getSubscriptionId(e){return Or(e+this.clientId)}}var sh=Object.defineProperty,oh=Object.getOwnPropertySymbols,ah=Object.prototype.hasOwnProperty,ch=Object.prototype.propertyIsEnumerable,hh=(e,t,r)=>t in e?sh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uh=(e,t)=>{for(var r in t||(t={}))ah.call(t,r)&&hh(e,r,t[r]);if(oh)for(var r of oh(t))ch.call(t,r)&&hh(e,r,t[r]);return e};class lh extends kn{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new g.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1,this.heartBeatTimeout=(0,A.toMiliseconds)(A.THIRTY_SECONDS+A.FIVE_SECONDS),this.requestsInFlight=[],this.connectTimeout=(0,A.toMiliseconds)(15*A.ONE_SECOND),this.request=async e=>{var t,r;this.logger.debug("Publishing Request Payload");const i=e.id||ns().toString();await this.toEstablishConnection();try{this.logger.trace({id:i,method:e.method,topic:null==(t=e.params)?void 0:t.topic},"relayer.request - publishing...");const n=`${i}:${(null==(r=e.params)?void 0:r.tag)||""}`;this.requestsInFlight.push(n);const s=await this.provider.request(e);return this.requestsInFlight=this.requestsInFlight.filter((e=>e!==n)),s}catch(n){throw this.logger.debug(`Failed to Publish Request: ${i}`),n}},this.resetPingTimeout=()=>{if(_t())try{clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout((()=>{var e,t,r;this.logger.debug({},"pingTimeout: Connection stalled, terminating..."),null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)||r.terminate()}),this.heartBeatTimeout)}catch(e){this.logger.warn(e,e?.message)}},this.onPayloadHandler=e=>{this.onProviderPayload(e),this.resetPingTimeout()},this.onConnectHandler=()=>{this.logger.warn({},"Relayer connected \ud83d\udedc"),this.startPingTimeout(),this.events.emit(Ls)},this.onDisconnectHandler=()=>{this.logger.warn({},"Relayer disconnected \ud83d\uded1"),this.requestsInFlight=[],this.onProviderDisconnect()},this.onProviderErrorHandler=e=>{this.logger.fatal(e,`Fatal socket error: ${e?.message}`),this.events.emit(Us,e),this.logger.fatal("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(zs,this.onPayloadHandler),this.provider.on(Hs,this.onConnectHandler),this.provider.on(Ks,this.onDisconnectHandler),this.provider.on(Bs,this.onProviderErrorHandler)},this.core=e.core,this.logger=typeof e.logger<"u"&&"string"!=typeof e.logger?Tn(e.logger,this.name):hn()(On({level:e.logger||"error"})),this.messages=new Dc(this.logger,e.core),this.subscriber=new nh(this,this.logger),this.publisher=new Wc(this,this.logger),this.relayUrl=e?.relayUrl||js,this.projectId=e.projectId,Et()&&typeof r.g<"u"&&typeof(null==r.g?void 0:r.g.Platform)<"u"&&"android"===(null==r.g?void 0:r.g.Platform.OS)?this.packageName=Pt():Et()&&typeof r.g<"u"&&typeof(null==r.g?void 0:r.g.Platform)<"u"&&"ios"===(null==r.g?void 0:r.g.Platform.OS)&&(this.bundleId=Pt()),this.provider={}}async init(){if(this.logger.trace("Initialized"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]),this.initialized=!0,this.subscriber.cached.length>0)try{await this.transportOpen()}catch(e){this.logger.warn(e,e?.message)}}get context(){return xn(this.logger)}get connected(){var e,t,r;return 1===(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)}get connecting(){var e,t,r;return 0===(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)}async publish(e,t,r){this.isInitialized(),await this.publisher.publish(e,t,r),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now(),transportType:Vs.relay})}async subscribe(e,t){var r,i,n;this.isInitialized(),(null==t||!t.transportType||"relay"===t?.transportType)&&await this.toEstablishConnection();const s=typeof(null==(r=t?.internal)?void 0:r.throwOnFailedPublish)>"u"||(null==(i=t?.internal)?void 0:i.throwOnFailedPublish);let o,a=(null==(n=this.subscriber.topicMap.get(e))?void 0:n[0])||"";const c=t=>{t.topic===e&&(this.subscriber.off(Gs,c),o())};return await Promise.all([new Promise((e=>{o=e,this.subscriber.on(Gs,c)})),new Promise((async(r,i)=>{a=await this.subscriber.subscribe(e,uh({internal:{throwOnFailedPublish:s}},t)).catch((e=>{s&&i(e)}))||a,r()}))]),a}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportDisconnect(){this.provider.disconnect&&(this.hasExperiencedNetworkDisruption||this.connected)?await jt(this.provider.disconnect(),2e3,"provider.disconnect()").catch((()=>this.onProviderDisconnect())):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){if(this.connectPromise?(this.logger.debug({},"Waiting for existing connection attempt to resolve..."),await this.connectPromise,this.logger.debug({},"Existing connection attempt resolved")):(this.connectPromise=new Promise((async(t,r)=>{await this.connect(e).then(t).catch(r).finally((()=>{this.connectPromise=void 0}))})),await this.connectPromise),!this.connected)throw new Error(`Couldn't establish socket connection to the relay server: ${this.relayUrl}`)}async restartTransport(e){this.logger.debug({},"Restarting transport..."),!this.connectionAttemptInProgress&&(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await Ei())throw new Error("No internet connection detected. Please restart your network and try again.")}async handleBatchMessageEvents(e){if(0===e?.length)return void this.logger.trace("Batch message events is empty. Ignoring...");const t=e.sort(((e,t)=>e.publishedAt-t.publishedAt));this.logger.debug(`Batch of ${t.length} message events sorted`);for(const r of t)try{await this.onMessageEvent(r)}catch(Sn){this.logger.warn(Sn,"Error while processing batch message event: "+Sn?.message)}this.logger.trace(`Batch of ${t.length} message events processed`)}async onLinkMessageEvent(e,t){const{topic:r}=e;if(!t.sessionExists){const e={topic:r,expiry:Lt(A.FIVE_MINUTES),relay:{protocol:"irn"},active:!1};await this.core.pairing.pairings.set(r,e)}this.events.emit(ks,e),await this.recordMessageEvent(e)}async connect(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;let t=1;for(;t<6;){try{this.logger.debug({},`Connecting to ${this.relayUrl}, attempt: ${t}...`),await this.createProvider(),await new Promise((async(e,t)=>{const r=()=>{t(new Error("Connection interrupted while trying to subscribe"))};this.provider.once(Ks,r),await jt(new Promise(((e,t)=>{this.provider.connect().then(e).catch(t)})),this.connectTimeout,`Socket stalled when trying to connect to ${this.relayUrl}`).catch((e=>{t(e)})).finally((()=>{this.provider.off(Ks,r),clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0})),await new Promise((async(e,t)=>{const r=()=>{t(new Error("Connection interrupted while trying to subscribe"))};this.provider.once(Ks,r),await this.subscriber.start().then(e).catch(t).finally((()=>{this.provider.off(Ks,r)}))})),this.hasExperiencedNetworkDisruption=!1,e()}))}catch(Ti){await this.subscriber.stop();const t=Ti;this.logger.warn({},t.message),this.hasExperiencedNetworkDisruption=!0}finally{this.connectionAttemptInProgress=!1}if(this.connected){this.logger.debug({},`Connected to ${this.relayUrl} successfully on attempt: ${t}`);break}await new Promise((e=>setTimeout(e,(0,A.toMiliseconds)(1*t)))),t++}}startPingTimeout(){var e,t,r,i,n;if(_t())try{null!=(t=null==(e=this.provider)?void 0:e.connection)&&t.socket&&(null==(n=null==(i=null==(r=this.provider)?void 0:r.connection)?void 0:i.socket)||n.on("ping",(()=>{this.resetPingTimeout()}))),this.resetPingTimeout()}catch(s){this.logger.warn(s,s?.message)}}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new bs(new Is(Tt({sdkVersion:Fs,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId,packageName:this.packageName}))),this.registerProviderListeners()}async recordMessageEvent(e){const{topic:t,message:r}=e;await this.messages.set(t,r)}async shouldIgnoreMessageEvent(e){const{topic:t,message:r}=e;if(!r||0===r.length)return this.logger.warn(`Ignoring invalid/empty message: ${r}`),!0;if(!await this.subscriber.isSubscribed(t))return this.logger.warn(`Ignoring message for non-subscribed topic ${t}`),!0;const i=this.messages.has(t,r);return i&&this.logger.warn(`Ignoring duplicate message: ${r}`),i}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),ys(e)){if(!e.method.endsWith("_subscription"))return;const t=e.params,{topic:r,message:i,publishedAt:n,attestation:s}=t.data,o={topic:r,message:i,publishedAt:n,transportType:Vs.relay,attestation:s};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(uh({type:"event",event:t.id},o)),this.events.emit(t.id,o),await this.acknowledgePayload(e),await this.onMessageEvent(o)}else vs(e)&&this.events.emit(Ms,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(ks,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){const t=os(e.id,!0);await this.provider.connection.send(t)}unregisterProviderListeners(){this.provider.off(zs,this.onPayloadHandler),this.provider.off(Hs,this.onConnectHandler),this.provider.off(Ks,this.onDisconnectHandler),this.provider.off(Bs,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await Ei();Ii((async t=>{e!==t&&(e=t,t?await this.transportOpen().catch((e=>this.logger.error(e,e?.message))):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))}))}async onProviderDisconnect(){await this.subscriber.stop(),clearTimeout(this.pingTimeout),this.events.emit(Ds),this.connectionAttemptInProgress=!1,!this.transportExplicitlyClosed&&(this.reconnectTimeout||this.connectPromise||(this.reconnectTimeout=setTimeout((async()=>{clearTimeout(this.reconnectTimeout),await this.transportOpen().catch((e=>this.logger.error(e,e?.message)))}),(0,A.toMiliseconds)(.1))))}isInitialized(){if(!this.initialized){const{message:e}=ri("NOT_INITIALIZED",this.name);throw new Error(e)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),!this.connected&&await this.transportOpen()}}var ph=Object.defineProperty,dh=Object.getOwnPropertySymbols,fh=Object.prototype.hasOwnProperty,gh=Object.prototype.propertyIsEnumerable,yh=(e,t,r)=>t in e?ph(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vh=(e,t)=>{for(var r in t||(t={}))fh.call(t,r)&&yh(e,r,t[r]);if(dh)for(var r of dh(t))gh.call(t,r)&&yh(e,r,t[r]);return e};class mh extends Mn{constructor(e,t,r,i=xs,n=void 0){super(e,t,r,i),this.core=e,this.logger=t,this.name=r,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=xs,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((e=>{this.getKey&&null!==e&&!oi(e)?this.map.set(this.getKey(e),e):function(e){var t;return null==(t=e?.proposer)?void 0:t.publicKey}(e)?this.map.set(e.id,e):function(e){return e?.topic}(e)&&this.map.set(e.topic,e)})),this.cached=[],this.initialized=!0)},this.set=async(e,t)=>{this.isInitialized(),this.map.has(e)?await this.update(e,t):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:e,value:t}),this.map.set(e,t),await this.persist())},this.get=e=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:e}),this.getData(e)),this.getAll=e=>(this.isInitialized(),e?this.values.filter((t=>Object.keys(e).every((r=>Ps()(t[r],e[r]))))):this.values),this.update=async(e,t)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:e,update:t});const r=vh(vh({},this.getData(e)),t);this.map.set(e,r),await this.persist()},this.delete=async(e,t)=>{this.isInitialized(),this.map.has(e)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:e,reason:t}),this.map.delete(e),this.addToRecentlyDeleted(e),await this.persist())},this.logger=Tn(t,this.name),this.storagePrefix=i,this.getKey=n}get context(){return xn(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){const t=this.map.get(e);if(!t){if(this.recentlyDeleted.includes(e)){const{message:t}=ri("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(t),new Error(t)}const{message:t}=ri("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(t),new Error(t)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{const e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){const{message:e}=ri("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){const{message:e}=ri("NOT_INITIALIZED",this.name);throw new Error(e)}}}class wh{constructor(e,t){this.core=e,this.logger=t,this.name="pairing",this.version="0.3",this.events=new(y()),this.initialized=!1,this.storagePrefix=xs,this.ignoredPayloadTypes=[1],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:e})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...e])]},this.create=async e=>{this.isInitialized();const t=Sr(),r=await this.core.crypto.setSymKey(t),i=Lt(A.FIVE_MINUTES),n={protocol:"irn"},s={topic:r,expiry:i,relay:n,active:!1,methods:e?.methods},o=Gr({protocol:this.core.protocol,version:this.core.version,topic:r,symKey:t,relay:n,expiryTimestamp:i,methods:e?.methods});return this.events.emit(eo,s),this.core.expirer.set(r,i),await this.pairings.set(r,s),await this.core.relayer.subscribe(r,{transportType:e?.transportType}),{topic:r,uri:o}},this.pair=async e=>{this.isInitialized();const t=this.core.eventClient.createEvent({properties:{topic:e?.uri,trace:[vo]}});this.isValidPair(e,t);const{topic:r,symKey:i,relay:n,expiryTimestamp:s,methods:o}=Vr(e.uri);let a;if(t.props.properties.topic=r,t.addTrace(mo),t.addTrace(wo),this.pairings.keys.includes(r)){if(a=this.pairings.get(r),t.addTrace(Io),a.active)throw t.setError(Ao),new Error(`Pairing already exists: ${r}. Please try again with a new connection URI.`);t.addTrace(So)}const c=s||Lt(A.FIVE_MINUTES),h={topic:r,relay:n,expiry:c,active:!1,methods:o};this.core.expirer.set(r,c),await this.pairings.set(r,h),t.addTrace(bo),e.activatePairing&&await this.activate({topic:r}),this.events.emit(eo,h),t.addTrace(Po),this.core.crypto.keychain.has(r)||await this.core.crypto.setSymKey(i,r),t.addTrace(_o);try{await this.core.relayer.confirmOnlineStateOrThrow()}catch{t.setError(xo)}try{await this.core.relayer.subscribe(r,{relay:n})}catch(u){throw t.setError(Ro),u}return t.addTrace(Eo),h},this.activate=async({topic:e})=>{this.isInitialized();const t=Lt(A.THIRTY_DAYS);this.core.expirer.set(e,t),await this.pairings.update(e,{active:!0,expiry:t})},this.ping=async e=>{this.isInitialized(),await this.isValidPing(e);const{topic:t}=e;if(this.pairings.keys.includes(t)){const e=await this.sendRequest(t,"wc_pairingPing",{}),{done:r,resolve:i,reject:n}=Ct();this.events.once(Ut("pairing_ping",e),(({error:e})=>{e?n(e):i()})),await r()}},this.updateExpiry=async({topic:e,expiry:t})=>{this.isInitialized(),await this.pairings.update(e,{expiry:t})},this.updateMetadata=async({topic:e,metadata:t})=>{this.isInitialized(),await this.pairings.update(e,{peerMetadata:t})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async e=>{this.isInitialized(),await this.isValidDisconnect(e);const{topic:t}=e;this.pairings.keys.includes(t)&&(await this.sendRequest(t,"wc_pairingDelete",ii("USER_DISCONNECTED")),await this.deletePairing(t))},this.formatUriFromPairing=e=>{this.isInitialized();const{topic:t,relay:r,expiry:i,methods:n}=e,s=this.core.crypto.keychain.get(t);return Gr({protocol:this.core.protocol,version:this.core.version,topic:t,symKey:s,relay:r,expiryTimestamp:i,methods:n})},this.sendRequest=async(e,t,r)=>{const i=ss(t,r),n=await this.core.crypto.encode(e,i),s=Zs[t].req;return this.core.history.set(e,i),this.core.relayer.publish(e,n,s),i.id},this.sendResult=async(e,t,r)=>{const i=os(e,r),n=await this.core.crypto.encode(t,i),s=await this.core.history.get(t,e),o=Zs[s.request.method].res;await this.core.relayer.publish(t,n,o),await this.core.history.resolve(i)},this.sendError=async(e,t,r)=>{const i=as(e,r),n=await this.core.crypto.encode(t,i),s=await this.core.history.get(t,e),o=Zs[s.request.method]?Zs[s.request.method].res:Zs.unregistered_method.res;await this.core.relayer.publish(t,n,o),await this.core.history.resolve(i)},this.deletePairing=async(e,t)=>{await this.core.relayer.unsubscribe(e),await Promise.all([this.pairings.delete(e,ii("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(e),t?Promise.resolve():this.core.expirer.del(e)])},this.cleanup=async()=>{const e=this.pairings.getAll().filter((e=>Dt(e.expiry)));await Promise.all(e.map((e=>this.deletePairing(e.topic))))},this.onRelayEventRequest=e=>{const{topic:t,payload:r}=e;switch(r.method){case"wc_pairingPing":return this.onPairingPingRequest(t,r);case"wc_pairingDelete":return this.onPairingDeleteRequest(t,r);default:return this.onUnknownRpcMethodRequest(t,r)}},this.onRelayEventResponse=async e=>{const{topic:t,payload:r}=e,i=(await this.core.history.get(t,r.id)).request.method;return"wc_pairingPing"===i?this.onPairingPingResponse(t,r):this.onUnknownRpcMethodResponse(i)},this.onPairingPingRequest=async(e,t)=>{const{id:r}=t;try{this.isValidPing({topic:e}),await this.sendResult(r,e,!0),this.events.emit(io,{id:r,topic:e})}catch(i){await this.sendError(r,e,i),this.logger.error(i)}},this.onPairingPingResponse=(e,t)=>{const{id:r}=t;setTimeout((()=>{ms(t)?this.events.emit(Ut("pairing_ping",r),{}):ws(t)&&this.events.emit(Ut("pairing_ping",r),{error:t.error})}),500)},this.onPairingDeleteRequest=async(e,t)=>{const{id:r}=t;try{this.isValidDisconnect({topic:e}),await this.deletePairing(e),this.events.emit(ro,{id:r,topic:e})}catch(i){await this.sendError(r,e,i),this.logger.error(i)}},this.onUnknownRpcMethodRequest=async(e,t)=>{const{id:r,method:i}=t;try{if(this.registeredMethods.includes(i))return;const t=ii("WC_METHOD_UNSUPPORTED",i);await this.sendError(r,e,t),this.logger.error(t)}catch(n){await this.sendError(r,e,n),this.logger.error(n)}},this.onUnknownRpcMethodResponse=e=>{this.registeredMethods.includes(e)||this.logger.error(ii("WC_METHOD_UNSUPPORTED",e))},this.isValidPair=(e,t)=>{var r;if(!yi(e)){const{message:r}=ri("MISSING_OR_INVALID",`pair() params: ${e}`);throw t.setError(To),new Error(r)}if(!function(e){function t(e){try{return typeof new URL(e)<"u"}catch{return!1}}try{if(ai(e,!1))return!!t(e)||t(Bt(e))}catch{}return!1}(e.uri)){const{message:r}=ri("MISSING_OR_INVALID",`pair() uri: ${e.uri}`);throw t.setError(To),new Error(r)}const i=Vr(e?.uri);if(null==(r=i?.relay)||!r.protocol){const{message:e}=ri("MISSING_OR_INVALID","pair() uri#relay-protocol");throw t.setError(To),new Error(e)}if(null==i||!i.symKey){const{message:e}=ri("MISSING_OR_INVALID","pair() uri#symKey");throw t.setError(To),new Error(e)}if(null!=i&&i.expiryTimestamp&&(0,A.toMiliseconds)(i?.expiryTimestamp){if(!yi(e)){const{message:t}=ri("MISSING_OR_INVALID",`ping() params: ${e}`);throw new Error(t)}const{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidDisconnect=async e=>{if(!yi(e)){const{message:t}=ri("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw new Error(t)}const{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidPairingTopic=async e=>{if(!ai(e,!1)){const{message:t}=ri("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(t)}if(!this.pairings.keys.includes(e)){const{message:t}=ri("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(t)}if(Dt(this.pairings.get(e).expiry)){await this.deletePairing(e);const{message:t}=ri("EXPIRED",`pairing topic: ${e}`);throw new Error(t)}},this.core=e,this.logger=Tn(t,this.name),this.pairings=new mh(this.core,this.logger,this.name,this.storagePrefix)}get context(){return xn(this.logger)}isInitialized(){if(!this.initialized){const{message:e}=ri("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(ks,(async e=>{const{topic:t,message:r,transportType:i}=e;if(!this.pairings.keys.includes(t)||i===Vs.link_mode||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(r)))return;const n=await this.core.crypto.decode(t,r);try{ys(n)?(this.core.history.set(t,n),this.onRelayEventRequest({topic:t,payload:n})):vs(n)&&(await this.core.history.resolve(n),await this.onRelayEventResponse({topic:t,payload:n}),this.core.history.delete(t,n.id))}catch(s){this.logger.error(s)}}))}registerExpirerEvents(){this.core.expirer.on(uo,(async e=>{const{topic:t}=Mt(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit(to,{topic:t}))}))}}class bh extends Nn{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new g.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=xs,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((e=>this.records.set(e.id,e))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(e,t,r)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:e,request:t,chainId:r}),this.records.has(t.id))return;const i={id:t.id,topic:e,request:{method:t.method,params:t.params||null},chainId:r,expiry:Lt(A.THIRTY_DAYS)};this.records.set(i.id,i),this.persist(),this.events.emit(no,i)},this.resolve=async e=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:e}),!this.records.has(e.id))return;const t=await this.getRecord(e.id);typeof t.response>"u"&&(t.response=ws(e)?{error:e.error}:{result:e.result},this.records.set(t.id,t),this.persist(),this.events.emit(so,t))},this.get=async(e,t)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:e,id:t}),await this.getRecord(t)),this.delete=(e,t)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:t}),this.values.forEach((r=>{if(r.topic===e){if(typeof t<"u"&&r.id!==t)return;this.records.delete(r.id),this.events.emit(oo,r)}})),this.persist()},this.exists=async(e,t)=>(this.isInitialized(),!!this.records.has(t)&&(await this.getRecord(t)).topic===e),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=Tn(t,this.name)}get context(){return xn(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const e=[];return this.values.forEach((t=>{if(typeof t.response<"u")return;const r={topic:t.topic,request:ss(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(r)})),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();const t=this.records.get(e);if(!t){const{message:t}=ri("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(ao)}async restore(){try{const e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){const{message:e}=ri("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(no,(e=>{const t=no;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})})),this.events.on(so,(e=>{const t=so;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})})),this.events.on(oo,(e=>{const t=oo;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})})),this.core.heartbeat.on(Ai,(()=>{this.cleanup()}))}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach((t=>{(0,A.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${t.id}`),this.records.delete(t.id),this.events.emit(oo,t,!1),e=!0)})),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){const{message:e}=ri("NOT_INITIALIZED",this.name);throw new Error(e)}}}class _h extends Dn{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new g.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=xs,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((e=>this.expirations.set(e.target,e))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=e=>{try{const t=this.formatTarget(e);return typeof this.getExpiration(t)<"u"}catch{return!1}},this.set=(e,t)=>{this.isInitialized();const r=this.formatTarget(e),i={target:r,expiry:t};this.expirations.set(r,i),this.checkExpiry(r,i),this.events.emit(co,{target:r,expiration:i})},this.get=e=>{this.isInitialized();const t=this.formatTarget(e);return this.getExpiration(t)},this.del=e=>{if(this.isInitialized(),this.has(e)){const t=this.formatTarget(e),r=this.getExpiration(t);this.expirations.delete(t),this.events.emit(ho,{target:t,expiration:r})}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=Tn(t,this.name)}get context(){return xn(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if("string"==typeof e)return function(e){return kt("topic",e)}(e);if("number"==typeof e)return function(e){return kt("id",e)}(e);const{message:t}=ri("UNKNOWN_TYPE","Target type: "+typeof e);throw new Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(lo)}async restore(){try{const e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){const{message:e}=ri("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){const t=this.expirations.get(e);if(!t){const{message:t}=ri("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.warn(t),new Error(t)}return t}checkExpiry(e,t){const{expiry:r}=t;(0,A.toMiliseconds)(r)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(uo,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach(((e,t)=>this.checkExpiry(t,e)))}registerEventListeners(){this.core.heartbeat.on(Ai,(()=>this.checkExpirations())),this.events.on(co,(e=>{const t=co;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})),this.events.on(uo,(e=>{const t=uo;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})),this.events.on(ho,(e=>{const t=ho;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}))}isInitialized(){if(!this.initialized){const{message:e}=ri("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Eh extends Un{constructor(e,t,r){super(e,t,r),this.core=e,this.logger=t,this.store=r,this.name="verify-api",this.verifyUrlV3=go,this.storagePrefix=xs,this.version=2,this.init=async()=>{var e;this.isDevEnv||(this.publicKey=await this.store.getItem(this.storeKey),this.publicKey&&(0,A.toMiliseconds)(null==(e=this.publicKey)?void 0:e.expiresAt){if(!It()||this.isDevEnv)return;const t=window.location.origin,{id:r,decryptedId:i}=e,n=`${this.verifyUrlV3}/attestation?projectId=${this.core.projectId}&origin=${t}&id=${r}&decryptedId=${i}`;try{const e=(0,R.getDocument)(),t=this.startAbortTimer(5*A.ONE_SECOND),i=await new Promise(((i,s)=>{const o=()=>{window.removeEventListener("message",c),e.body.removeChild(a),s("attestation aborted")};this.abortController.signal.addEventListener("abort",o);const a=e.createElement("iframe");a.src=n,a.style.display="none",a.addEventListener("error",o,{signal:this.abortController.signal});const c=n=>{if(n.data&&"string"==typeof n.data)try{const s=JSON.parse(n.data);if("verify_attestation"===s.type){if(rt(s.attestation).payload.id!==r)return;clearInterval(t),e.body.removeChild(a),this.abortController.signal.removeEventListener("abort",o),window.removeEventListener("message",c),i(null===s.attestation?"":s.attestation)}}catch(s){this.logger.warn(s)}};e.body.appendChild(a),window.addEventListener("message",c,{signal:this.abortController.signal})}));return this.logger.debug("jwt attestation",i),i}catch(s){this.logger.warn(s)}return""},this.resolve=async e=>{if(this.isDevEnv)return"";const{attestationId:t,hash:r,encryptedId:i}=e;if(""===t)return void this.logger.debug("resolve: attestationId is empty, skipping");if(t){if(rt(t).payload.id!==i)return;const e=await this.isValidJwtAttestation(t);if(e)return e.isVerified?e:void this.logger.warn("resolve: jwt attestation: origin url not verified")}if(!r)return;const n=this.getVerifyUrl(e?.verifyUrl);return this.fetchAttestation(r,n)},this.fetchAttestation=async(e,t)=>{this.logger.debug(`resolving attestation: ${e} from url: ${t}`);const r=this.startAbortTimer(5*A.ONE_SECOND),i=await fetch(`${t}/attestation/${e}?v2Supported=true`,{signal:this.abortController.signal});return clearTimeout(r),200===i.status?await i.json():void 0},this.getVerifyUrl=e=>{let t=e||fo;return yo.includes(t)||(this.logger.info(`verify url: ${t}, not included in trusted list, assigning default: ${fo}`),t=fo),t},this.fetchPublicKey=async()=>{try{this.logger.debug(`fetching public key from: ${this.verifyUrlV3}`);const e=this.startAbortTimer(A.FIVE_SECONDS),t=await fetch(`${this.verifyUrlV3}/public-key`,{signal:this.abortController.signal});return clearTimeout(e),await t.json()}catch(Sn){this.logger.warn(Sn)}},this.persistPublicKey=async e=>{this.logger.debug("persisting public key to local storage",e),await this.store.setItem(this.storeKey,e),this.publicKey=e},this.removePublicKey=async()=>{this.logger.debug("removing verify v2 public key from storage"),await this.store.removeItem(this.storeKey),this.publicKey=void 0},this.isValidJwtAttestation=async e=>{const t=await this.getPublicKey();try{if(t)return this.validateAttestation(e,t)}catch(i){this.logger.error(i),this.logger.warn("error validating attestation")}const r=await this.fetchAndPersistPublicKey();try{if(r)return this.validateAttestation(e,r)}catch(i){this.logger.error(i),this.logger.warn("error validating attestation")}},this.getPublicKey=async()=>this.publicKey?this.publicKey:await this.fetchAndPersistPublicKey(),this.fetchAndPersistPublicKey=async()=>{if(this.fetchPromise)return await this.fetchPromise,this.publicKey;this.fetchPromise=new Promise((async e=>{const t=await this.fetchPublicKey();t&&(await this.persistPublicKey(t),e(t))}));const e=await this.fetchPromise;return this.fetchPromise=void 0,e},this.validateAttestation=(e,t)=>{const r=kr(e,t.publicKey),i={hasExpired:(0,A.toMiliseconds)(r.exp)this.abortController.abort()),(0,A.toMiliseconds)(e))}}class Ih extends $n{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.context="echo",this.registerDeviceToken=async e=>{const{clientId:t,token:r,notificationType:i,enableEncrypted:n=!1}=e,s=`https://echo.walletconnect.com/${this.projectId}/clients`;await fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:t,type:i,token:r,always_raw:n})})},this.logger=Tn(t,this.context)}}var Sh=Object.defineProperty,Ph=Object.getOwnPropertySymbols,Oh=Object.prototype.hasOwnProperty,xh=Object.prototype.propertyIsEnumerable,Th=(e,t,r)=>t in e?Sh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ah=(e,t)=>{for(var r in t||(t={}))Oh.call(t,r)&&Th(e,r,t[r]);if(Ph)for(var r of Ph(t))xh.call(t,r)&&Th(e,r,t[r]);return e};class Rh extends qn{constructor(e,t,r=!0){super(e,t,r),this.core=e,this.logger=t,this.context="event-client",this.storagePrefix=xs,this.storageVersion=.1,this.events=new Map,this.shouldPersist=!1,this.init=async()=>{if(!Kt())try{const e={eventId:Ht(),timestamp:Date.now(),domain:this.getAppDomain(),props:{event:"INIT",type:"",properties:{client_id:await this.core.crypto.getClientId(),user_agent:xt(this.core.relayer.protocol,this.core.relayer.version,Fs)}}};await this.sendEvent([e])}catch(Sn){this.logger.warn(Sn)}},this.createEvent=e=>{const{event:t="ERROR",type:r="",properties:{topic:i,trace:n}}=e,s=Ht(),o=this.core.projectId||"",a=Date.now(),c=Ah({eventId:s,timestamp:a,props:{event:t,type:r,properties:{topic:i,trace:n}},bundleId:o,domain:this.getAppDomain()},this.setMethods(s));return this.telemetryEnabled&&(this.events.set(s,c),this.shouldPersist=!0),c},this.getEvent=e=>{const{eventId:t,topic:r}=e;if(t)return this.events.get(t);const i=Array.from(this.events.values()).find((e=>e.props.properties.topic===r));return i?Ah(Ah({},i),this.setMethods(i.eventId)):void 0},this.deleteEvent=e=>{const{eventId:t}=e;this.events.delete(t),this.shouldPersist=!0},this.setEventListeners=()=>{this.core.heartbeat.on(Ai,(async()=>{this.shouldPersist&&await this.persist(),this.events.forEach((e=>{(0,A.fromMiliseconds)(Date.now())-(0,A.fromMiliseconds)(e.timestamp)>86400&&(this.events.delete(e.eventId),this.shouldPersist=!0)}))}))},this.setMethods=e=>({addTrace:t=>this.addTrace(e,t),setError:t=>this.setError(e,t)}),this.addTrace=(e,t)=>{const r=this.events.get(e);r&&(r.props.properties.trace.push(t),this.events.set(e,r),this.shouldPersist=!0)},this.setError=(e,t)=>{const r=this.events.get(e);r&&(r.props.type=t,r.timestamp=Date.now(),this.events.set(e,r),this.shouldPersist=!0)},this.persist=async()=>{await this.core.storage.setItem(this.storageKey,Array.from(this.events.values())),this.shouldPersist=!1},this.restore=async()=>{try{const e=await this.core.storage.getItem(this.storageKey)||[];if(!e.length)return;e.forEach((e=>{this.events.set(e.eventId,Ah(Ah({},e),this.setMethods(e.eventId)))}))}catch(Sn){this.logger.warn(Sn)}},this.submit=async()=>{if(!this.telemetryEnabled||0===this.events.size)return;const e=[];for(const[r,i]of this.events)i.props.type&&e.push(i);if(0!==e.length)try{if((await this.sendEvent(e)).ok)for(const t of e)this.events.delete(t.eventId),this.shouldPersist=!0}catch(t){this.logger.warn(t)}},this.sendEvent=async e=>{const t=this.getAppDomain()?"":"&sp=desktop";return await fetch(`https://pulse.walletconnect.org/batch?projectId=${this.core.projectId}&st=events_sdk&sv=js-${Fs}${t}`,{method:"POST",body:JSON.stringify(e)})},this.getAppDomain=()=>Ot().url,this.logger=Tn(t,this.context),this.telemetryEnabled=r,r?this.restore().then((async()=>{await this.submit(),this.setEventListeners()})):this.persist()}get storageKey(){return this.storagePrefix+this.storageVersion+this.core.customStoragePrefix+"//"+this.context}}var Nh=Object.defineProperty,Ch=Object.getOwnPropertySymbols,jh=Object.prototype.hasOwnProperty,kh=Object.prototype.propertyIsEnumerable,Mh=(e,t,r)=>t in e?Nh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lh=(e,t)=>{for(var r in t||(t={}))jh.call(t,r)&&Mh(e,r,t[r]);if(Ch)for(var r of Ch(t))kh.call(t,r)&&Mh(e,r,t[r]);return e};class Dh extends Rn{constructor(e){var t;super(e),this.protocol="wc",this.version=2,this.name=Os,this.events=new g.EventEmitter,this.initialized=!1,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.dispatchEnvelope=({topic:e,message:t,sessionExists:r})=>{if(!e||!t)return;const i={topic:e,message:t,publishedAt:Date.now(),transportType:Vs.link_mode};this.relayer.onLinkMessageEvent(i,{sessionExists:r})},this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||js,this.customStoragePrefix=null!=e&&e.customStoragePrefix?`:${e.customStoragePrefix}`:"";const r=On({level:"string"==typeof e?.logger&&e.logger?e.logger:Ts,name:Os}),{logger:i,chunkLoggerController:n}=An({opts:r,maxSizeInBytes:e?.maxLogBlobSizeInBytes,loggerOverride:e?.logger});this.logChunkController=n,null!=(t=this.logChunkController)&&t.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var e,t;null!=(e=this.logChunkController)&&e.downloadLogsBlobInBrowser&&(null==(t=this.logChunkController)||t.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=Tn(i,this.name),this.heartbeat=new Ri,this.crypto=new Lc(this,this.logger,e?.keychain),this.history=new bh(this,this.logger),this.expirer=new _h(this,this.logger),this.storage=null!=e&&e.storage?e.storage:new an(Lh(Lh({},As),e?.storageOptions)),this.relayer=new lh({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new wh(this,this.logger),this.verify=new Eh(this,this.logger,this.storage),this.echoClient=new Ih(this.projectId||"",this.logger),this.linkModeSupportedApps=[],this.eventClient=new Rh(this,this.logger,e?.telemetryEnabled)}static async init(e){const t=new Dh(e);await t.initialize();const r=await t.crypto.getClientId();return await t.storage.setItem("WALLETCONNECT_CLIENT_ID",r),t}get context(){return xn(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return null==(e=this.logChunkController)?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async addLinkModeSupportedApp(e){this.linkModeSupportedApps.includes(e)||(this.linkModeSupportedApps.push(e),await this.storage.setItem(Ws,this.linkModeSupportedApps))}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.eventClient.init(),this.linkModeSupportedApps=await this.storage.getItem(Ws)||[],this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}}const Uh=Dh,$h="client",qh=`wc@2:${$h}:`,zh=$h,Hh="error",Kh="WALLETCONNECT_DEEPLINK_CHOICE",Bh="Proposal expired",Fh=A.SEVEN_DAYS,Vh={wc_sessionPropose:{req:{ttl:A.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:A.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:A.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:A.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:A.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:A.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:A.ONE_DAY,prompt:!1,tag:1104},res:{ttl:A.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:A.ONE_DAY,prompt:!1,tag:1106},res:{ttl:A.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:A.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:A.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:A.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:A.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:A.ONE_DAY,prompt:!1,tag:1112},res:{ttl:A.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:A.ONE_DAY,prompt:!1,tag:1114},res:{ttl:A.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:A.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:A.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:A.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:A.FIVE_MINUTES,prompt:!1,tag:1119}}},Wh={min:A.FIVE_MINUTES,max:A.SEVEN_DAYS},Gh="IDLE",Yh="ACTIVE",Jh=["wc_sessionPropose","wc_sessionRequest","wc_authRequest","wc_sessionAuthenticate"],Qh="wc@1.5:auth:",Xh=`${Qh}:PUB_KEY`;var Zh=Object.defineProperty,eu=Object.defineProperties,tu=Object.getOwnPropertyDescriptors,ru=Object.getOwnPropertySymbols,iu=Object.prototype.hasOwnProperty,nu=Object.prototype.propertyIsEnumerable,su=(e,t,r)=>t in e?Zh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ou=(e,t)=>{for(var r in t||(t={}))iu.call(t,r)&&su(e,r,t[r]);if(ru)for(var r of ru(t))nu.call(t,r)&&su(e,r,t[r]);return e},au=(e,t)=>eu(e,tu(t));class cu extends Hn{constructor(e){super(e),this.name="engine",this.events=new(y()),this.initialized=!1,this.requestQueue={state:Gh,queue:[]},this.sessionRequestQueue={state:Gh,queue:[]},this.requestQueueDelay=A.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.relayMessageCache=[],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),await this.registerLinkModeListeners(),this.client.core.pairing.register({methods:Object.keys(Vh)}),this.initialized=!0,setTimeout((()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()}),(0,A.toMiliseconds)(this.requestQueueDelay)))},this.connect=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();const t=au(ou({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});await this.isValidConnect(t);const{pairingTopic:r,requiredNamespaces:i,optionalNamespaces:n,sessionProperties:s,relays:o}=t;let a,c=r,h=!1;try{c&&(h=this.client.core.pairing.pairings.get(c).active)}catch(m){throw this.client.logger.error(`connect() -> pairing.get(${c}) failed`),m}if(!c||!h){const{topic:e,uri:t}=await this.client.core.pairing.create();c=e,a=t}if(!c){const{message:e}=ri("NO_MATCHING_KEY",`connect() pairing topic: ${c}`);throw new Error(e)}const u=await this.client.core.crypto.generateKeyPair(),l=Vh.wc_sessionPropose.req.ttl||A.FIVE_MINUTES,p=Lt(l),d=ou({requiredNamespaces:i,optionalNamespaces:n,relays:o??[{protocol:"irn"}],proposer:{publicKey:u,metadata:this.client.metadata},expiryTimestamp:p,pairingTopic:c},s&&{sessionProperties:s}),{reject:f,resolve:g,done:y}=Ct(l,Bh);this.events.once(Ut("session_connect"),(async({error:e,session:t})=>{if(e)f(e);else if(t){t.self.publicKey=u;const e=au(ou({},t),{pairingTopic:d.pairingTopic,requiredNamespaces:d.requiredNamespaces,optionalNamespaces:d.optionalNamespaces,transportType:Vs.relay});await this.client.session.set(t.topic,e),await this.setExpiry(t.topic,t.expiry),c&&await this.client.core.pairing.updateMetadata({topic:c,metadata:t.peer.metadata}),this.cleanupDuplicatePairings(e),g(e)}}));const v=await this.sendRequest({topic:c,method:"wc_sessionPropose",params:d,throwOnFailedPublish:!0});return await this.setProposal(v,ou({id:v},d)),{uri:a,approval:y}},this.pair=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{return await this.client.core.pairing.pair(e)}catch(t){throw this.client.logger.error("pair() failed"),t}},this.approve=async e=>{var t,r,i;const n=this.client.core.eventClient.createEvent({properties:{topic:null==(t=e?.id)?void 0:t.toString(),trace:[jo]}});try{this.isInitialized(),await this.confirmOnlineStateOrThrow()}catch($t){throw n.setError(Ho),$t}try{await this.isValidProposalId(e?.id)}catch($t){throw this.client.logger.error(`approve() -> proposal.get(${e?.id}) failed`),n.setError(Go),$t}try{await this.isValidApprove(e)}catch($t){throw this.client.logger.error("approve() -> isValidApprove() failed"),n.setError(Wo),$t}const{id:s,relayProtocol:o,namespaces:a,sessionProperties:c,sessionConfig:h}=e,u=this.client.proposal.get(s);this.client.core.eventClient.deleteEvent({eventId:n.eventId});const{pairingTopic:l,proposer:p,requiredNamespaces:d,optionalNamespaces:f}=u;let g=null==(r=this.client.core.eventClient)?void 0:r.getEvent({topic:l});g||(g=null==(i=this.client.core.eventClient)?void 0:i.createEvent({type:jo,properties:{topic:l,trace:[jo,ko]}}));const y=await this.client.core.crypto.generateKeyPair(),v=p.publicKey,m=await this.client.core.crypto.generateSharedKey(y,v),w=ou(ou({relay:{protocol:o??"irn"},namespaces:a,controller:{publicKey:y,metadata:this.client.metadata},expiry:Lt(Fh)},c&&{sessionProperties:c}),h&&{sessionConfig:h}),b=Vs.relay;g.addTrace(Mo);try{await this.client.core.relayer.subscribe(m,{transportType:b})}catch($t){throw g.setError(Bo),$t}g.addTrace(Lo);const _=au(ou({},w),{topic:m,requiredNamespaces:d,optionalNamespaces:f,pairingTopic:l,acknowledged:!1,self:w.controller,peer:{publicKey:p.publicKey,metadata:p.metadata},controller:y,transportType:Vs.relay});await this.client.session.set(m,_),g.addTrace($o);try{g.addTrace(qo),await this.sendRequest({topic:m,method:"wc_sessionSettle",params:w,throwOnFailedPublish:!0}).catch((e=>{throw g?.setError(Vo),e})),g.addTrace(zo),g.addTrace(Do),await this.sendResult({id:s,topic:l,result:{relay:{protocol:o??"irn"},responderPublicKey:y},throwOnFailedPublish:!0}).catch((e=>{throw g?.setError(Fo),e})),g.addTrace(Uo)}catch($t){throw this.client.logger.error($t),this.client.session.delete(m,ii("USER_DISCONNECTED")),await this.client.core.relayer.unsubscribe(m),$t}return this.client.core.eventClient.deleteEvent({eventId:g.eventId}),await this.client.core.pairing.updateMetadata({topic:l,metadata:p.metadata}),await this.client.proposal.delete(s,ii("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:l}),await this.setExpiry(m,Lt(Fh)),{topic:m,acknowledged:()=>Promise.resolve(this.client.session.get(m))}},this.reject=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidReject(e)}catch(n){throw this.client.logger.error("reject() -> isValidReject() failed"),n}const{id:t,reason:r}=e;let i;try{i=this.client.proposal.get(t).pairingTopic}catch(n){throw this.client.logger.error(`reject() -> proposal.get(${t}) failed`),n}i&&(await this.sendError({id:t,topic:i,error:r,rpcOpts:Vh.wc_sessionPropose.reject}),await this.client.proposal.delete(t,ii("USER_DISCONNECTED")))},this.update=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidUpdate(e)}catch(h){throw this.client.logger.error("update() -> isValidUpdate() failed"),h}const{topic:t,namespaces:r}=e,{done:i,resolve:n,reject:s}=Ct(),o=is(),a=ns().toString(),c=this.client.session.get(t).namespaces;return this.events.once(Ut("session_update",o),(({error:e})=>{e?s(e):n()})),await this.client.session.update(t,{namespaces:r}),await this.sendRequest({topic:t,method:"wc_sessionUpdate",params:{namespaces:r},throwOnFailedPublish:!0,clientRpcId:o,relayRpcId:a}).catch((e=>{this.client.logger.error(e),this.client.session.update(t,{namespaces:c}),s(e)})),{acknowledged:i}},this.extend=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidExtend(e)}catch(o){throw this.client.logger.error("extend() -> isValidExtend() failed"),o}const{topic:t}=e,r=is(),{done:i,resolve:n,reject:s}=Ct();return this.events.once(Ut("session_extend",r),(({error:e})=>{e?s(e):n()})),await this.setExpiry(t,Lt(Fh)),this.sendRequest({topic:t,method:"wc_sessionExtend",params:{},clientRpcId:r,throwOnFailedPublish:!0}).catch((e=>{s(e)})),{acknowledged:i}},this.request=async e=>{this.isInitialized();try{await this.isValidRequest(e)}catch(p){throw this.client.logger.error("request() -> isValidRequest() failed"),p}const{chainId:t,request:r,topic:i,expiry:n=Vh.wc_sessionRequest.req.ttl}=e,s=this.client.session.get(i);s?.transportType===Vs.relay&&await this.confirmOnlineStateOrThrow();const o=is(),a=ns().toString(),{done:c,resolve:h,reject:u}=Ct(n,"Request expired. Please try again.");this.events.once(Ut("session_request",o),(({error:e,result:t})=>{e?u(e):h(t)}));const l=this.getAppLinkIfEnabled(s.peer.metadata,s.transportType);return l?(await this.sendRequest({clientRpcId:o,relayRpcId:a,topic:i,method:"wc_sessionRequest",params:{request:au(ou({},r),{expiryTimestamp:Lt(n)}),chainId:t},expiry:n,throwOnFailedPublish:!0,appLink:l}).catch((e=>u(e))),this.client.events.emit("session_request_sent",{topic:i,request:r,chainId:t,id:o}),await c()):await Promise.all([new Promise((async e=>{await this.sendRequest({clientRpcId:o,relayRpcId:a,topic:i,method:"wc_sessionRequest",params:{request:au(ou({},r),{expiryTimestamp:Lt(n)}),chainId:t},expiry:n,throwOnFailedPublish:!0}).catch((e=>u(e))),this.client.events.emit("session_request_sent",{topic:i,request:r,chainId:t,id:o}),e()})),new Promise((async e=>{var t;if(null==(t=s.sessionConfig)||!t.disableDeepLink){const e=await async function(e,t){let r="";try{if(It()&&(r=localStorage.getItem(t),r))return r;r=await e.getItem(t)}catch(n){console.error(n)}return r}(this.client.core.storage,Kh);await qt({id:o,topic:i,wcDeepLink:e})}e()})),c()]).then((e=>e[2]))},this.respond=async e=>{this.isInitialized(),await this.isValidRespond(e);const{topic:t,response:r}=e,{id:i}=r,n=this.client.session.get(t);n.transportType===Vs.relay&&await this.confirmOnlineStateOrThrow();const s=this.getAppLinkIfEnabled(n.peer.metadata,n.transportType);ms(r)?await this.sendResult({id:i,topic:t,result:r.result,throwOnFailedPublish:!0,appLink:s}):ws(r)&&await this.sendError({id:i,topic:t,error:r.error,appLink:s}),this.cleanupAfterResponse(e)},this.ping=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidPing(e)}catch(Ti){throw this.client.logger.error("ping() -> isValidPing() failed"),Ti}const{topic:t}=e;if(this.client.session.keys.includes(t)){const e=is(),r=ns().toString(),{done:i,resolve:n,reject:s}=Ct();this.events.once(Ut("session_ping",e),(({error:e})=>{e?s(e):n()})),await Promise.all([this.sendRequest({topic:t,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:e,relayRpcId:r}),i()])}else this.client.core.pairing.pairings.keys.includes(t)&&await this.client.core.pairing.ping({topic:t})},this.emit=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidEmit(e);const{topic:t,event:r,chainId:i}=e,n=ns().toString(),s=is();await this.sendRequest({topic:t,method:"wc_sessionEvent",params:{event:r,chainId:i},throwOnFailedPublish:!0,relayRpcId:n,clientRpcId:s})},this.disconnect=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidDisconnect(e);const{topic:t}=e;if(this.client.session.keys.includes(t))await this.sendRequest({topic:t,method:"wc_sessionDelete",params:ii("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession({topic:t,emitEvent:!1});else{if(!this.client.core.pairing.pairings.keys.includes(t)){const{message:e}=ri("MISMATCHED_TOPIC",`Session or pairing topic not found: ${t}`);throw new Error(e)}await this.client.core.pairing.disconnect({topic:t})}},this.find=e=>(this.isInitialized(),this.client.session.getAll().filter((t=>function(e,t){const{requiredNamespaces:r}=t,i=Object.keys(e.namespaces),n=Object.keys(r);let s=!0;return!!At(n,i)&&(i.forEach((t=>{const{accounts:i,methods:n,events:o}=e.namespaces[t],a=Jr(i),c=r[t];At(ht(t,c),a)&&At(c.methods,n)&&At(c.events,o)||(s=!1)})),s)}(t,e)))),this.getPendingSessionRequests=()=>this.client.pendingRequest.getAll(),this.authenticate=async(e,t)=>{var r;this.isInitialized(),this.isValidAuthenticate(e);const i=t&&this.client.core.linkModeSupportedApps.includes(t)&&(null==(r=this.client.metadata.redirect)?void 0:r.linkMode),n=i?Vs.link_mode:Vs.relay;n===Vs.relay&&await this.confirmOnlineStateOrThrow();const{chains:s,statement:o="",uri:a,domain:c,nonce:h,type:u,exp:l,nbf:p,methods:d=[],expiry:f}=e,g=[...e.resources||[]],{topic:y,uri:v}=await this.client.core.pairing.create({methods:["wc_sessionAuthenticate"],transportType:n});this.client.logger.info({message:"Generated new pairing",pairing:{topic:y,uri:v}});const m=await this.client.core.crypto.generateKeyPair(),w=Pr(m);if(await Promise.all([this.client.auth.authKeys.set(Xh,{responseTopic:w,publicKey:m}),this.client.auth.pairingTopics.set(w,{topic:w,pairingTopic:y})]),await this.client.core.relayer.subscribe(w,{transportType:n}),this.client.logger.info(`sending request to new pairing topic: ${y}`),d.length>0){const{namespace:e}=at(s[0]);let t=pr(e,"request",d);mr(g)&&(t=fr(t,g.pop())),g.push(t)}const b=f&&f>Vh.wc_sessionAuthenticate.req.ttl?f:Vh.wc_sessionAuthenticate.req.ttl,_={authPayload:{type:u??"caip122",chains:s,statement:o,aud:a,domain:c,version:"1",nonce:h,iat:(new Date).toISOString(),exp:l,nbf:p,resources:g},requester:{publicKey:m,metadata:this.client.metadata},expiryTimestamp:Lt(b)},E={requiredNamespaces:{},optionalNamespaces:{eip155:{chains:s,methods:[...new Set(["personal_sign",...d])],events:["chainChanged","accountsChanged"]}},relays:[{protocol:"irn"}],pairingTopic:y,proposer:{publicKey:m,metadata:this.client.metadata},expiryTimestamp:Lt(Vh.wc_sessionPropose.req.ttl)},{done:I,resolve:S,reject:P}=Ct(b,"Request expired"),O=async({error:e,session:t})=>{if(this.events.off(Ut("session_request",T),x),e)P(e);else if(t){t.self.publicKey=m,await this.client.session.set(t.topic,t),await this.setExpiry(t.topic,t.expiry),y&&await this.client.core.pairing.updateMetadata({topic:y,metadata:t.peer.metadata});const e=this.client.session.get(t.topic);await this.deleteProposal(A),S({session:e})}},x=async e=>{var r,i,s;if(await this.deletePendingAuthRequest(T,{message:"fulfilled",code:0}),e.error){const t=ii("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return e.error.code===t.code?void 0:(this.events.off(Ut("session_connect"),O),P(e.error.message))}await this.deleteProposal(A),this.events.off(Ut("session_connect"),O);const{cacaos:o,responder:a}=e.result,c=[],h=[];for(const t of o){await or({cacao:t,projectId:this.client.core.projectId})||(this.client.logger.error(t,"Signature verification failed"),P(ii("SESSION_SETTLEMENT_FAILED","Signature verification failed")));const{p:e}=t,r=mr(e.resources),i=[nr(e.iss)],n=sr(e.iss);if(r){const e=yr(r),t=vr(r);c.push(...e),i.push(...t)}for(const t of i)h.push(`${t}:${n}`)}const u=await this.client.core.crypto.generateSharedKey(m,a.publicKey);let l;c.length>0&&(l={topic:u,acknowledged:!0,self:{publicKey:m,metadata:this.client.metadata},peer:a,controller:a.publicKey,expiry:Lt(Fh),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:y,namespaces:Zr([...new Set(c)],[...new Set(h)]),transportType:n},await this.client.core.relayer.subscribe(u,{transportType:n}),await this.client.session.set(u,l),y&&await this.client.core.pairing.updateMetadata({topic:y,metadata:a.metadata}),l=this.client.session.get(u)),null!=(r=this.client.metadata.redirect)&&r.linkMode&&null!=(i=a.metadata.redirect)&&i.linkMode&&null!=(s=a.metadata.redirect)&&s.universal&&t&&(this.client.core.addLinkModeSupportedApp(a.metadata.redirect.universal),this.client.session.update(u,{transportType:Vs.link_mode})),S({auths:o,session:l})},T=is(),A=is();let R;this.events.once(Ut("session_connect"),O),this.events.once(Ut("session_request",T),x);try{if(i){const e=ss("wc_sessionAuthenticate",_,T);this.client.core.history.set(y,e);const r=await this.client.core.crypto.encode("",e,{type:2,encoding:Er});R=Yr(t,y,r)}else await Promise.all([this.sendRequest({topic:y,method:"wc_sessionAuthenticate",params:_,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:T}),this.sendRequest({topic:y,method:"wc_sessionPropose",params:E,expiry:Vh.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:A})])}catch(cr){throw this.events.off(Ut("session_connect"),O),this.events.off(Ut("session_request",T),x),cr}return await this.setProposal(A,ou({id:A},E)),await this.setAuthRequest(T,{request:au(ou({},_),{verifyContext:{}}),pairingTopic:y,transportType:n}),{uri:R??v,response:I}},this.approveSessionAuthenticate=async e=>{const{id:t,auths:r}=e,i=this.client.core.eventClient.createEvent({properties:{topic:t.toString(),trace:[Yo]}});try{this.isInitialized()}catch(f){throw i.setError(ra),f}const n=this.getPendingAuthRequest(t);if(!n)throw i.setError(oa),new Error(`Could not find pending auth request with id ${t}`);const s=n.transportType||Vs.relay;s===Vs.relay&&await this.confirmOnlineStateOrThrow();const o=n.requester.publicKey,a=await this.client.core.crypto.generateKeyPair(),c=Pr(o),h={type:1,receiverPublicKey:o,senderPublicKey:a},u=[],l=[];for(const g of r){if(!await or({cacao:g,projectId:this.client.core.projectId})){i.setError(ia);const e=ii("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw await this.sendError({id:t,topic:c,error:e,encodeOpts:h}),new Error(e.message)}i.addTrace(Qo);const{p:e}=g,r=mr(e.resources),n=[nr(e.iss)],s=sr(e.iss);if(r){const e=yr(r),t=vr(r);u.push(...e),n.push(...t)}for(const t of n)l.push(`${t}:${s}`)}const p=await this.client.core.crypto.generateSharedKey(a,o);let d;if(i.addTrace(Jo),u?.length>0){d={topic:p,acknowledged:!0,self:{publicKey:a,metadata:this.client.metadata},peer:{publicKey:o,metadata:n.requester.metadata},controller:o,expiry:Lt(Fh),authentication:r,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:n.pairingTopic,namespaces:Zr([...new Set(u)],[...new Set(l)]),transportType:s},i.addTrace(Zo);try{await this.client.core.relayer.subscribe(p,{transportType:s})}catch(f){throw i.setError(na),f}i.addTrace(ea),await this.client.session.set(p,d),i.addTrace(Xo),await this.client.core.pairing.updateMetadata({topic:n.pairingTopic,metadata:n.requester.metadata})}i.addTrace(ta);try{await this.sendResult({topic:c,id:t,result:{cacaos:r,responder:{publicKey:a,metadata:this.client.metadata}},encodeOpts:h,throwOnFailedPublish:!0,appLink:this.getAppLinkIfEnabled(n.requester.metadata,s)})}catch(f){throw i.setError(sa),f}return await this.client.auth.requests.delete(t,{message:"fulfilled",code:0}),await this.client.core.pairing.activate({topic:n.pairingTopic}),this.client.core.eventClient.deleteEvent({eventId:i.eventId}),{session:d}},this.rejectSessionAuthenticate=async e=>{this.isInitialized();const{id:t,reason:r}=e,i=this.getPendingAuthRequest(t);if(!i)throw new Error(`Could not find pending auth request with id ${t}`);i.transportType===Vs.relay&&await this.confirmOnlineStateOrThrow();const n=i.requester.publicKey,s=await this.client.core.crypto.generateKeyPair(),o=Pr(n),a={type:1,receiverPublicKey:n,senderPublicKey:s};await this.sendError({id:t,topic:o,error:r,encodeOpts:a,rpcOpts:Vh.wc_sessionAuthenticate.reject,appLink:this.getAppLinkIfEnabled(i.requester.metadata,i.transportType)}),await this.client.auth.requests.delete(t,{message:"rejected",code:0}),await this.client.proposal.delete(t,ii("USER_DISCONNECTED"))},this.formatAuthMessage=e=>{this.isInitialized();const{request:t,iss:r}=e;return ar(t,r)},this.processRelayMessageCache=()=>{setTimeout((async()=>{if(0!==this.relayMessageCache.length)for(;this.relayMessageCache.length>0;)try{const e=this.relayMessageCache.shift();e&&await this.onRelayMessage(e)}catch(e){this.client.logger.error(e)}}),50)},this.cleanupDuplicatePairings=async e=>{if(e.pairingTopic)try{const t=this.client.core.pairing.pairings.get(e.pairingTopic),r=this.client.core.pairing.pairings.getAll().filter((r=>{var i,n;return(null==(i=r.peerMetadata)?void 0:i.url)&&(null==(n=r.peerMetadata)?void 0:n.url)===e.peer.metadata.url&&r.topic&&r.topic!==t.topic}));if(0===r.length)return;this.client.logger.info(`Cleaning up ${r.length} duplicate pairing(s)`),await Promise.all(r.map((e=>this.client.core.pairing.disconnect({topic:e.topic})))),this.client.logger.info("Duplicate pairings clean up finished")}catch(t){this.client.logger.error(t)}},this.deleteSession=async e=>{var t;const{topic:r,expirerHasDeleted:i=!1,emitEvent:n=!0,id:s=0}=e,{self:o}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),await this.client.session.delete(r,ii("USER_DISCONNECTED")),this.addToRecentlyDeleted(r,"session"),this.client.core.crypto.keychain.has(o.publicKey)&&await this.client.core.crypto.deleteKeyPair(o.publicKey),this.client.core.crypto.keychain.has(r)&&await this.client.core.crypto.deleteSymKey(r),i||this.client.core.expirer.del(r),this.client.core.storage.removeItem(Kh).catch((e=>this.client.logger.warn(e))),this.getPendingSessionRequests().forEach((e=>{e.topic===r&&this.deletePendingSessionRequest(e.id,ii("USER_DISCONNECTED"))})),r===(null==(t=this.sessionRequestQueue.queue[0])?void 0:t.topic)&&(this.sessionRequestQueue.state=Gh),n&&this.client.events.emit("session_delete",{id:s,topic:r})},this.deleteProposal=async(e,t)=>{if(t)try{const t=this.client.proposal.get(e),r=this.client.core.eventClient.getEvent({topic:t.pairingTopic});r?.setError(Ko)}catch{}await Promise.all([this.client.proposal.delete(e,ii("USER_DISCONNECTED")),t?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"proposal")},this.deletePendingSessionRequest=async(e,t,r=!1)=>{await Promise.all([this.client.pendingRequest.delete(e,t),r?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter((t=>t.id!==e)),r&&(this.sessionRequestQueue.state=Gh,this.client.events.emit("session_request_expire",{id:e}))},this.deletePendingAuthRequest=async(e,t,r=!1)=>{await Promise.all([this.client.auth.requests.delete(e,t),r?Promise.resolve():this.client.core.expirer.del(e)])},this.setExpiry=async(e,t)=>{this.client.session.keys.includes(e)&&(this.client.core.expirer.set(e,t),await this.client.session.update(e,{expiry:t}))},this.setProposal=async(e,t)=>{this.client.core.expirer.set(e,Lt(Vh.wc_sessionPropose.req.ttl)),await this.client.proposal.set(e,t)},this.setAuthRequest=async(e,t)=>{const{request:r,pairingTopic:i,transportType:n=Vs.relay}=t;this.client.core.expirer.set(e,r.expiryTimestamp),await this.client.auth.requests.set(e,{authPayload:r.authPayload,requester:r.requester,expiryTimestamp:r.expiryTimestamp,id:e,pairingTopic:i,verifyContext:r.verifyContext,transportType:n})},this.setPendingSessionRequest=async e=>{const{id:t,topic:r,params:i,verifyContext:n}=e,s=i.request.expiryTimestamp||Lt(Vh.wc_sessionRequest.req.ttl);this.client.core.expirer.set(t,s),await this.client.pendingRequest.set(t,{id:t,topic:r,params:i,verifyContext:n})},this.sendRequest=async e=>{const{topic:t,method:i,params:n,expiry:s,relayRpcId:o,clientRpcId:a,throwOnFailedPublish:c,appLink:h}=e,u=ss(i,n,a);let l;const p=!!h;try{const e=p?Er:_r;l=await this.client.core.crypto.encode(t,u,{encoding:e})}catch(g){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${t} failed`),g}let d;if(Jh.includes(i)){const e=Or(JSON.stringify(u)),t=Or(l);d=await this.client.core.verify.register({id:t,decryptedId:e})}const f=Vh[i].req;if(f.attestation=d,s&&(f.ttl=s),o&&(f.id=o),this.client.core.history.set(t,u),p){const e=Yr(h,t,l);await r.g.Linking.openURL(e,this.client.name)}else{const e=Vh[i].req;s&&(e.ttl=s),o&&(e.id=o),c?(e.internal=au(ou({},e.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(t,l,e)):this.client.core.relayer.publish(t,l,e).catch((e=>this.client.logger.error(e)))}return u.id},this.sendResult=async e=>{const{id:t,topic:i,result:n,throwOnFailedPublish:s,encodeOpts:o,appLink:a}=e,c=os(t,n);let h;const u=a&&typeof(null==r.g?void 0:r.g.Linking)<"u";try{const e=u?Er:_r;h=await this.client.core.crypto.encode(i,c,au(ou({},o||{}),{encoding:e}))}catch(p){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${i} failed`),p}let l;try{l=await this.client.core.history.get(i,t)}catch(p){throw this.client.logger.error(`sendResult() -> history.get(${i}, ${t}) failed`),p}if(u){const e=Yr(a,i,h);await r.g.Linking.openURL(e,this.client.name)}else{const e=Vh[l.request.method].res;s?(e.internal=au(ou({},e.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(i,h,e)):this.client.core.relayer.publish(i,h,e).catch((e=>this.client.logger.error(e)))}await this.client.core.history.resolve(c)},this.sendError=async e=>{const{id:t,topic:i,error:n,encodeOpts:s,rpcOpts:o,appLink:a}=e,c=as(t,n);let h;const u=a&&typeof(null==r.g?void 0:r.g.Linking)<"u";try{const e=u?Er:_r;h=await this.client.core.crypto.encode(i,c,au(ou({},s||{}),{encoding:e}))}catch(p){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${i} failed`),p}let l;try{l=await this.client.core.history.get(i,t)}catch(p){throw this.client.logger.error(`sendError() -> history.get(${i}, ${t}) failed`),p}if(u){const e=Yr(a,i,h);await r.g.Linking.openURL(e,this.client.name)}else{const e=o||Vh[l.request.method].res;this.client.core.relayer.publish(i,h,e)}await this.client.core.history.resolve(c)},this.cleanup=async()=>{const e=[],t=[];this.client.session.getAll().forEach((t=>{let r=!1;Dt(t.expiry)&&(r=!0),this.client.core.crypto.keychain.has(t.topic)||(r=!0),r&&e.push(t.topic)})),this.client.proposal.getAll().forEach((e=>{Dt(e.expiryTimestamp)&&t.push(e.id)})),await Promise.all([...e.map((e=>this.deleteSession({topic:e}))),...t.map((e=>this.deleteProposal(e)))])},this.onRelayEventRequest=async e=>{this.requestQueue.queue.push(e),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state!==Yh){for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=Yh;const t=this.requestQueue.queue.shift();if(t)try{await this.processRequest(t)}catch(e){this.client.logger.warn(e)}}this.requestQueue.state=Gh}else this.client.logger.info("Request queue already active, skipping...")},this.processRequest=async e=>{const{topic:t,payload:r,attestation:i,transportType:n,encryptedId:s}=e,o=r.method;if(!this.shouldIgnorePairingRequest({topic:t,requestMethod:o}))switch(o){case"wc_sessionPropose":return await this.onSessionProposeRequest({topic:t,payload:r,attestation:i,encryptedId:s});case"wc_sessionSettle":return await this.onSessionSettleRequest(t,r);case"wc_sessionUpdate":return await this.onSessionUpdateRequest(t,r);case"wc_sessionExtend":return await this.onSessionExtendRequest(t,r);case"wc_sessionPing":return await this.onSessionPingRequest(t,r);case"wc_sessionDelete":return await this.onSessionDeleteRequest(t,r);case"wc_sessionRequest":return await this.onSessionRequest({topic:t,payload:r,attestation:i,encryptedId:s,transportType:n});case"wc_sessionEvent":return await this.onSessionEventRequest(t,r);case"wc_sessionAuthenticate":return await this.onSessionAuthenticateRequest({topic:t,payload:r,attestation:i,encryptedId:s,transportType:n});default:return this.client.logger.info(`Unsupported request method ${o}`)}},this.onRelayEventResponse=async e=>{const{topic:t,payload:r,transportType:i}=e,n=(await this.client.core.history.get(t,r.id)).request.method;switch(n){case"wc_sessionPropose":return this.onSessionProposeResponse(t,r,i);case"wc_sessionSettle":return this.onSessionSettleResponse(t,r);case"wc_sessionUpdate":return this.onSessionUpdateResponse(t,r);case"wc_sessionExtend":return this.onSessionExtendResponse(t,r);case"wc_sessionPing":return this.onSessionPingResponse(t,r);case"wc_sessionRequest":return this.onSessionRequestResponse(t,r);case"wc_sessionAuthenticate":return this.onSessionAuthenticateResponse(t,r);default:return this.client.logger.info(`Unsupported response method ${n}`)}},this.onRelayEventUnknownPayload=e=>{const{topic:t}=e,{message:r}=ri("MISSING_OR_INVALID",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`);throw new Error(r)},this.shouldIgnorePairingRequest=e=>{const{topic:t,requestMethod:r}=e,i=this.expectedPairingMethodMap.get(t);return!(!i||i.includes(r))&&!!(i.includes("wc_sessionAuthenticate")&&this.client.events.listenerCount("session_authenticate")>0)},this.onSessionProposeRequest=async e=>{const{topic:t,payload:r,attestation:i,encryptedId:n}=e,{params:s,id:o}=r;try{const e=this.client.core.eventClient.getEvent({topic:t});0===this.client.events.listenerCount("session_proposal")&&(console.warn("No listener for session_proposal event"),e?.setError(Co)),this.isValidConnect(ou({},r.params));const a=s.expiryTimestamp||Lt(Vh.wc_sessionPropose.req.ttl),c=ou({id:o,pairingTopic:t,expiryTimestamp:a},s);await this.setProposal(o,c);const h=await this.getVerifyContext({attestationId:i,hash:Or(JSON.stringify(r)),encryptedId:n,metadata:c.proposer.metadata});e?.addTrace(Oo),this.client.events.emit("session_proposal",{id:o,params:c,verifyContext:h})}catch(a){await this.sendError({id:o,topic:t,error:a,rpcOpts:Vh.wc_sessionPropose.autoReject}),this.client.logger.error(a)}},this.onSessionProposeResponse=async(e,t,r)=>{const{id:i}=t;if(ms(t)){const{result:n}=t;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:n});const s=this.client.proposal.get(i);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:s});const o=s.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:o});const a=n.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:a});const c=await this.client.core.crypto.generateSharedKey(o,a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:c});const h=await this.client.core.relayer.subscribe(c,{transportType:r});this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:h}),await this.client.core.pairing.activate({topic:e})}else if(ws(t)){await this.client.proposal.delete(i,ii("USER_DISCONNECTED"));const e=Ut("session_connect");if(0===this.events.listenerCount(e))throw new Error(`emitting ${e} without any listeners, 954`);this.events.emit(Ut("session_connect"),{error:t.error})}},this.onSessionSettleRequest=async(e,t)=>{const{id:r,params:i}=t;try{this.isValidSessionSettleRequest(i);const{relay:r,controller:n,expiry:s,namespaces:o,sessionProperties:a,sessionConfig:c}=t.params,h=au(ou(ou({topic:e,relay:r,expiry:s,namespaces:o,acknowledged:!0,pairingTopic:"",requiredNamespaces:{},optionalNamespaces:{},controller:n.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:n.publicKey,metadata:n.metadata}},a&&{sessionProperties:a}),c&&{sessionConfig:c}),{transportType:Vs.relay}),u=Ut("session_connect");if(0===this.events.listenerCount(u))throw new Error(`emitting ${u} without any listeners 997`);this.events.emit(Ut("session_connect"),{session:h}),await this.sendResult({id:t.id,topic:e,result:!0,throwOnFailedPublish:!0})}catch(n){await this.sendError({id:r,topic:e,error:n}),this.client.logger.error(n)}},this.onSessionSettleResponse=async(e,t)=>{const{id:r}=t;ms(t)?(await this.client.session.update(e,{acknowledged:!0}),this.events.emit(Ut("session_approve",r),{})):ws(t)&&(await this.client.session.delete(e,ii("USER_DISCONNECTED")),this.events.emit(Ut("session_approve",r),{error:t.error}))},this.onSessionUpdateRequest=async(e,t)=>{const{params:r,id:i}=t;try{const t=`${e}_session_update`,s=Pi.get(t);if(s&&this.isRequestOutOfSync(s,i))return this.client.logger.warn(`Discarding out of sync request - ${i}`),void this.sendError({id:i,topic:e,error:ii("INVALID_UPDATE_REQUEST")});this.isValidUpdate(ou({topic:e},r));try{Pi.set(t,i),await this.client.session.update(e,{namespaces:r.namespaces}),await this.sendResult({id:i,topic:e,result:!0,throwOnFailedPublish:!0})}catch(n){throw Pi.delete(t),n}this.client.events.emit("session_update",{id:i,topic:e,params:r})}catch(s){await this.sendError({id:i,topic:e,error:s}),this.client.logger.error(s)}},this.isRequestOutOfSync=(e,t)=>t.toString().slice(0,-3){const{id:r}=t,i=Ut("session_update",r);if(0===this.events.listenerCount(i))throw new Error(`emitting ${i} without any listeners`);ms(t)?this.events.emit(Ut("session_update",r),{}):ws(t)&&this.events.emit(Ut("session_update",r),{error:t.error})},this.onSessionExtendRequest=async(e,t)=>{const{id:r}=t;try{this.isValidExtend({topic:e}),await this.setExpiry(e,Lt(Fh)),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_extend",{id:r,topic:e})}catch(Sn){await this.sendError({id:r,topic:e,error:Sn}),this.client.logger.error(Sn)}},this.onSessionExtendResponse=(e,t)=>{const{id:r}=t,i=Ut("session_extend",r);if(0===this.events.listenerCount(i))throw new Error(`emitting ${i} without any listeners`);ms(t)?this.events.emit(Ut("session_extend",r),{}):ws(t)&&this.events.emit(Ut("session_extend",r),{error:t.error})},this.onSessionPingRequest=async(e,t)=>{const{id:r}=t;try{this.isValidPing({topic:e}),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_ping",{id:r,topic:e})}catch(Sn){await this.sendError({id:r,topic:e,error:Sn}),this.client.logger.error(Sn)}},this.onSessionPingResponse=(e,t)=>{const{id:r}=t,i=Ut("session_ping",r);if(0===this.events.listenerCount(i))throw new Error(`emitting ${i} without any listeners`);setTimeout((()=>{ms(t)?this.events.emit(Ut("session_ping",r),{}):ws(t)&&this.events.emit(Ut("session_ping",r),{error:t.error})}),500)},this.onSessionDeleteRequest=async(e,t)=>{const{id:r}=t;try{this.isValidDisconnect({topic:e,reason:t.params}),Promise.all([new Promise((t=>{this.client.core.relayer.once(qs,(async()=>{t(await this.deleteSession({topic:e,id:r}))}))})),this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:e,error:ii("USER_DISCONNECTED")})]).catch((e=>this.client.logger.error(e)))}catch(Sn){this.client.logger.error(Sn)}},this.onSessionRequest=async e=>{var t,r,i;const{topic:n,payload:s,attestation:o,encryptedId:a,transportType:c}=e,{id:h,params:u}=s;try{await this.isValidRequest(ou({topic:n},u));const e=this.client.session.get(n),s={id:h,topic:n,params:u,verifyContext:await this.getVerifyContext({attestationId:o,hash:Or(JSON.stringify(ss("wc_sessionRequest",u,h))),encryptedId:a,metadata:e.peer.metadata,transportType:c})};await this.setPendingSessionRequest(s),c===Vs.link_mode&&null!=(t=e.peer.metadata.redirect)&&t.universal&&this.client.core.addLinkModeSupportedApp(null==(r=e.peer.metadata.redirect)?void 0:r.universal),null!=(i=this.client.signConfig)&&i.disableRequestQueue?this.emitSessionRequest(s):(this.addSessionRequestToSessionRequestQueue(s),this.processSessionRequestQueue())}catch(l){await this.sendError({id:h,topic:n,error:l}),this.client.logger.error(l)}},this.onSessionRequestResponse=(e,t)=>{const{id:r}=t,i=Ut("session_request",r);if(0===this.events.listenerCount(i))throw new Error(`emitting ${i} without any listeners`);ms(t)?this.events.emit(Ut("session_request",r),{result:t.result}):ws(t)&&this.events.emit(Ut("session_request",r),{error:t.error})},this.onSessionEventRequest=async(e,t)=>{const{id:r,params:i}=t;try{const t=`${e}_session_event_${i.event.name}`,n=Pi.get(t);if(n&&this.isRequestOutOfSync(n,r))return void this.client.logger.info(`Discarding out of sync request - ${r}`);this.isValidEmit(ou({topic:e},i)),this.client.events.emit("session_event",{id:r,topic:e,params:i}),Pi.set(t,r)}catch(n){await this.sendError({id:r,topic:e,error:n}),this.client.logger.error(n)}},this.onSessionAuthenticateResponse=(e,t)=>{const{id:r}=t;this.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:e,payload:t}),ms(t)?this.events.emit(Ut("session_request",r),{result:t.result}):ws(t)&&this.events.emit(Ut("session_request",r),{error:t.error})},this.onSessionAuthenticateRequest=async e=>{var t;const{topic:r,payload:i,attestation:n,encryptedId:s,transportType:o}=e;try{const{requester:e,authPayload:a,expiryTimestamp:c}=i.params,h=await this.getVerifyContext({attestationId:n,hash:Or(JSON.stringify(i)),encryptedId:s,metadata:e.metadata,transportType:o}),u={requester:e,pairingTopic:r,id:i.id,authPayload:a,verifyContext:h,expiryTimestamp:c};await this.setAuthRequest(i.id,{request:u,pairingTopic:r,transportType:o}),o===Vs.link_mode&&null!=(t=e.metadata.redirect)&&t.universal&&this.client.core.addLinkModeSupportedApp(e.metadata.redirect.universal),this.client.events.emit("session_authenticate",{topic:r,params:i.params,id:i.id,verifyContext:h})}catch(a){this.client.logger.error(a);const e=i.params.requester.publicKey,t=await this.client.core.crypto.generateKeyPair(),n=this.getAppLinkIfEnabled(i.params.requester.metadata,o),s={type:1,receiverPublicKey:e,senderPublicKey:t};await this.sendError({id:i.id,topic:r,error:a,encodeOpts:s,rpcOpts:Vh.wc_sessionAuthenticate.autoReject,appLink:n})}},this.addSessionRequestToSessionRequestQueue=e=>{this.sessionRequestQueue.queue.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:"fulfilled",code:0}),setTimeout((()=>{this.sessionRequestQueue.state=Gh,this.processSessionRequestQueue()}),(0,A.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=({topic:e,error:t})=>{const r=this.client.core.history.pending;r.length>0&&r.filter((t=>t.topic===e&&"wc_sessionRequest"===t.request.method)).forEach((e=>{const r=Ut("session_request",e.request.id);if(0===this.events.listenerCount(r))throw new Error(`emitting ${r} without any listeners`);this.events.emit(Ut("session_request",e.request.id),{error:t})}))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===Yh)return void this.client.logger.info("session request queue is already active.");const e=this.sessionRequestQueue.queue[0];if(e)try{this.sessionRequestQueue.state=Yh,this.emitSessionRequest(e)}catch(t){this.client.logger.error(t)}else this.client.logger.info("session request queue is empty.")},this.emitSessionRequest=e=>{this.client.events.emit("session_request",e)},this.onPairingCreated=e=>{if(e.methods&&this.expectedPairingMethodMap.set(e.topic,e.methods),e.active)return;const t=this.client.proposal.getAll().find((t=>t.pairingTopic===e.topic));t&&this.onSessionProposeRequest({topic:e.topic,payload:ss("wc_sessionPropose",{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces,relays:t.relays,proposer:t.proposer,sessionProperties:t.sessionProperties},t.id)})},this.isValidConnect=async e=>{if(!yi(e)){const{message:t}=ri("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(e)}`);throw new Error(t)}const{pairingTopic:t,requiredNamespaces:r,optionalNamespaces:i,sessionProperties:n,relays:s}=e;if(oi(t)||await this.isValidPairingTopic(t),!function(e,t){let r=!1;return t&&!e?r=!0:e&&ni(e)&&e.length&&e.forEach((e=>{r=gi(e)})),r}(s,!0)){const{message:e}=ri("MISSING_OR_INVALID",`connect() relays: ${s}`);throw new Error(e)}!oi(r)&&0!==si(r)&&this.validateNamespaces(r,"requiredNamespaces"),!oi(i)&&0!==si(i)&&this.validateNamespaces(i,"optionalNamespaces"),oi(n)||this.validateSessionProps(n,"sessionProperties")},this.validateNamespaces=(e,t)=>{const r=function(e,t,r){let i=null;if(e&&si(e)){const n=di(e,t);n&&(i=n);const s=li(e,t,r);s&&(i=s)}else i=ri("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return i}(e,"connect()",t);if(r)throw new Error(r.message)},this.isValidApprove=async e=>{if(!yi(e))throw new Error(ri("MISSING_OR_INVALID",`approve() params: ${e}`).message);const{id:t,namespaces:r,relayProtocol:i,sessionProperties:n}=e;this.checkRecentlyDeleted(t),await this.isValidProposalId(t);const s=this.client.proposal.get(t),o=fi(r,"approve()");if(o)throw new Error(o.message);const a=bi(s.requiredNamespaces,r,"approve()");if(a)throw new Error(a.message);if(!ai(i,!0)){const{message:e}=ri("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw new Error(e)}oi(n)||this.validateSessionProps(n,"sessionProperties")},this.isValidReject=async e=>{if(!yi(e)){const{message:t}=ri("MISSING_OR_INVALID",`reject() params: ${e}`);throw new Error(t)}const{id:t,reason:r}=e;if(this.checkRecentlyDeleted(t),await this.isValidProposalId(t),!function(e){return!!(e&&"object"==typeof e&&e.code&&ci(e.code,!1)&&e.message&&ai(e.message,!1))}(r)){const{message:e}=ri("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(r)}`);throw new Error(e)}},this.isValidSessionSettleRequest=e=>{if(!yi(e)){const{message:t}=ri("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${e}`);throw new Error(t)}const{relay:t,controller:r,namespaces:i,expiry:n}=e;if(!gi(t)){const{message:e}=ri("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(e)}const s=function(e,t){let r=null;return ai(e?.publicKey,!1)||(r=ri("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}(r,"onSessionSettleRequest()");if(s)throw new Error(s.message);const o=fi(i,"onSessionSettleRequest()");if(o)throw new Error(o.message);if(Dt(n)){const{message:e}=ri("EXPIRED","onSessionSettleRequest()");throw new Error(e)}},this.isValidUpdate=async e=>{if(!yi(e)){const{message:t}=ri("MISSING_OR_INVALID",`update() params: ${e}`);throw new Error(t)}const{topic:t,namespaces:r}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);const i=this.client.session.get(t),n=fi(r,"update()");if(n)throw new Error(n.message);const s=bi(i.requiredNamespaces,r,"update()");if(s)throw new Error(s.message)},this.isValidExtend=async e=>{if(!yi(e)){const{message:t}=ri("MISSING_OR_INVALID",`extend() params: ${e}`);throw new Error(t)}const{topic:t}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t)},this.isValidRequest=async e=>{if(!yi(e)){const{message:t}=ri("MISSING_OR_INVALID",`request() params: ${e}`);throw new Error(t)}const{topic:t,request:r,chainId:i,expiry:n}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);const{namespaces:s}=this.client.session.get(t);if(!vi(s,i)){const{message:e}=ri("MISSING_OR_INVALID",`request() chainId: ${i}`);throw new Error(e)}if(!function(e){return!(oi(e)||!ai(e.method,!1))}(r)){const{message:e}=ri("MISSING_OR_INVALID",`request() ${JSON.stringify(r)}`);throw new Error(e)}if(!mi(s,i,r.method)){const{message:e}=ri("MISSING_OR_INVALID",`request() method: ${r.method}`);throw new Error(e)}if(n&&!function(e,t){return ci(e,!1)&&e<=t.max&&e>=t.min}(n,Wh)){const{message:e}=ri("MISSING_OR_INVALID",`request() expiry: ${n}. Expiry must be a number (in seconds) between ${Wh.min} and ${Wh.max}`);throw new Error(e)}},this.isValidRespond=async e=>{var t;if(!yi(e)){const{message:t}=ri("MISSING_OR_INVALID",`respond() params: ${e}`);throw new Error(t)}const{topic:r,response:i}=e;try{await this.isValidSessionTopic(r)}catch(n){throw null!=(t=e?.response)&&t.id&&this.cleanupAfterResponse(e),n}if(!function(e){return!(oi(e)||oi(e.result)&&oi(e.error)||!ci(e.id,!1)||!ai(e.jsonrpc,!1))}(i)){const{message:e}=ri("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(i)}`);throw new Error(e)}},this.isValidPing=async e=>{if(!yi(e)){const{message:t}=ri("MISSING_OR_INVALID",`ping() params: ${e}`);throw new Error(t)}const{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidEmit=async e=>{if(!yi(e)){const{message:t}=ri("MISSING_OR_INVALID",`emit() params: ${e}`);throw new Error(t)}const{topic:t,event:r,chainId:i}=e;await this.isValidSessionTopic(t);const{namespaces:n}=this.client.session.get(t);if(!vi(n,i)){const{message:e}=ri("MISSING_OR_INVALID",`emit() chainId: ${i}`);throw new Error(e)}if(!function(e){return!(oi(e)||!ai(e.name,!1))}(r)){const{message:e}=ri("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw new Error(e)}if(!wi(n,i,r.name)){const{message:e}=ri("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw new Error(e)}},this.isValidDisconnect=async e=>{if(!yi(e)){const{message:t}=ri("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw new Error(t)}const{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidAuthenticate=e=>{const{chains:t,uri:r,domain:i,nonce:n}=e;if(!Array.isArray(t)||0===t.length)throw new Error("chains is required and must be a non-empty array");if(!ai(r,!1))throw new Error("uri is required parameter");if(!ai(i,!1))throw new Error("domain is required parameter");if(!ai(n,!1))throw new Error("nonce is required parameter");if([...new Set(t.map((e=>at(e).namespace)))].length>1)throw new Error("Multi-namespace requests are not supported. Please request single namespace only.");const{namespace:s}=at(t[0]);if("eip155"!==s)throw new Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},this.getVerifyContext=async e=>{const{attestationId:t,hash:r,encryptedId:i,metadata:n,transportType:s}=e,o={verified:{verifyUrl:n.verifyUrl||fo,validation:"UNKNOWN",origin:n.url||""}};try{if(s===Vs.link_mode){const e=this.getAppLinkIfEnabled(n,s);return o.verified.validation=e&&new URL(e).origin===new URL(n.url).origin?"VALID":"INVALID",o}const e=await this.client.core.verify.resolve({attestationId:t,hash:r,encryptedId:i,verifyUrl:n.verifyUrl});e&&(o.verified.origin=e.origin,o.verified.isScam=e.isScam,o.verified.validation=e.origin===new URL(n.url).origin?"VALID":"INVALID")}catch(a){this.client.logger.warn(a)}return this.client.logger.debug(`Verify context: ${JSON.stringify(o)}`),o},this.validateSessionProps=(e,t)=>{Object.values(e).forEach((e=>{if(!ai(e,!1)){const{message:r}=ri("MISSING_OR_INVALID",`${t} must be in Record format. Received: ${JSON.stringify(e)}`);throw new Error(r)}}))},this.getPendingAuthRequest=e=>{const t=this.client.auth.requests.get(e);return"object"==typeof t?t:void 0},this.addToRecentlyDeleted=(e,t)=>{if(this.recentlyDeletedMap.set(e,t),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let e=0;const t=this.recentlyDeletedLimit/2;for(const r of this.recentlyDeletedMap.keys()){if(e++>=t)break;this.recentlyDeletedMap.delete(r)}}},this.checkRecentlyDeleted=e=>{const t=this.recentlyDeletedMap.get(e);if(t){const{message:r}=ri("MISSING_OR_INVALID",`Record was recently deleted - ${t}: ${e}`);throw new Error(r)}},this.isLinkModeEnabled=(e,t)=>{var i,n,s,o,a,c,h,u,l;return!(!e||t!==Vs.link_mode)&&(!0===(null==(n=null==(i=this.client.metadata)?void 0:i.redirect)?void 0:n.linkMode)&&void 0!==(null==(o=null==(s=this.client.metadata)?void 0:s.redirect)?void 0:o.universal)&&""!==(null==(c=null==(a=this.client.metadata)?void 0:a.redirect)?void 0:c.universal)&&void 0!==(null==(h=e?.redirect)?void 0:h.universal)&&""!==(null==(u=e?.redirect)?void 0:u.universal)&&!0===(null==(l=e?.redirect)?void 0:l.linkMode)&&this.client.core.linkModeSupportedApps.includes(e.redirect.universal)&&typeof(null==r.g?void 0:r.g.Linking)<"u")},this.getAppLinkIfEnabled=(e,t)=>{var r;return this.isLinkModeEnabled(e,t)?null==(r=e?.redirect)?void 0:r.universal:void 0},this.handleLinkModeMessage=({url:e})=>{if(!e||!e.includes("wc_ev")||!e.includes("topic"))return;const t=zt(e,"topic")||"",r=decodeURIComponent(zt(e,"wc_ev")||""),i=this.client.session.keys.includes(t);i&&this.client.session.update(t,{transportType:Vs.link_mode}),this.client.core.dispatchEnvelope({topic:t,message:r,sessionExists:i})},this.registerLinkModeListeners=async()=>{var e;if(Kt()||Et()&&null!=(e=this.client.metadata.redirect)&&e.linkMode){const e=null==r.g?void 0:r.g.Linking;if(typeof e<"u"){e.addEventListener("url",this.handleLinkModeMessage,this.client.name);const t=await e.getInitialURL();t&&setTimeout((()=>{this.handleLinkModeMessage({url:t})}),50)}}}}isInitialized(){if(!this.initialized){const{message:e}=ri("NOT_INITIALIZED",this.name);throw new Error(e)}}async confirmOnlineStateOrThrow(){await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(ks,(e=>{!this.initialized||this.relayMessageCache.length>0?this.relayMessageCache.push(e):this.onRelayMessage(e)}))}async onRelayMessage(e){const{topic:t,message:r,attestation:i,transportType:n}=e,{publicKey:s}=this.client.auth.authKeys.keys.includes(Xh)?this.client.auth.authKeys.get(Xh):{responseTopic:void 0,publicKey:void 0},o=await this.client.core.crypto.decode(t,r,{receiverPublicKey:s,encoding:n===Vs.link_mode?Er:_r});try{ys(o)?(this.client.core.history.set(t,o),this.onRelayEventRequest({topic:t,payload:o,attestation:i,transportType:n,encryptedId:Or(r)})):vs(o)?(await this.client.core.history.resolve(o),await this.onRelayEventResponse({topic:t,payload:o,transportType:n}),this.client.core.history.delete(t,o.id)):this.onRelayEventUnknownPayload({topic:t,payload:o,transportType:n})}catch(a){this.client.logger.error(a)}}registerExpirerEvents(){this.client.core.expirer.on(uo,(async e=>{const{topic:t,id:r}=Mt(e.target);return r&&this.client.pendingRequest.keys.includes(r)?await this.deletePendingSessionRequest(r,ri("EXPIRED"),!0):r&&this.client.auth.requests.keys.includes(r)?await this.deletePendingAuthRequest(r,ri("EXPIRED"),!0):void(t?this.client.session.keys.includes(t)&&(await this.deleteSession({topic:t,expirerHasDeleted:!0}),this.client.events.emit("session_expire",{topic:t})):r&&(await this.deleteProposal(r,!0),this.client.events.emit("proposal_expire",{id:r})))}))}registerPairingEvents(){this.client.core.pairing.events.on(eo,(e=>this.onPairingCreated(e))),this.client.core.pairing.events.on(ro,(e=>{this.addToRecentlyDeleted(e.topic,"pairing")}))}isValidPairingTopic(e){if(!ai(e,!1)){const{message:t}=ri("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){const{message:t}=ri("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(t)}if(Dt(this.client.core.pairing.pairings.get(e).expiry)){const{message:t}=ri("EXPIRED",`pairing topic: ${e}`);throw new Error(t)}}async isValidSessionTopic(e){if(!ai(e,!1)){const{message:t}=ri("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw new Error(t)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){const{message:t}=ri("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw new Error(t)}if(Dt(this.client.session.get(e).expiry)){await this.deleteSession({topic:e});const{message:t}=ri("EXPIRED",`session topic: ${e}`);throw new Error(t)}if(!this.client.core.crypto.keychain.has(e)){const{message:t}=ri("MISSING_OR_INVALID",`session topic does not exist in keychain: ${e}`);throw await this.deleteSession({topic:e}),new Error(t)}}async isValidSessionOrPairingTopic(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else{if(!this.client.core.pairing.pairings.keys.includes(e)){if(ai(e,!1)){const{message:t}=ri("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw new Error(t)}{const{message:t}=ri("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw new Error(t)}}this.isValidPairingTopic(e)}}async isValidProposalId(e){if(!function(e){return"number"==typeof e}(e)){const{message:t}=ri("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw new Error(t)}if(!this.client.proposal.keys.includes(e)){const{message:t}=ri("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw new Error(t)}if(Dt(this.client.proposal.get(e).expiryTimestamp)){await this.deleteProposal(e);const{message:t}=ri("EXPIRED",`proposal id: ${e}`);throw new Error(t)}}}class hu extends mh{constructor(e,t){super(e,t,"proposal",qh),this.core=e,this.logger=t}}class uu extends mh{constructor(e,t){super(e,t,"session",qh),this.core=e,this.logger=t}}class lu extends mh{constructor(e,t){super(e,t,"request",qh,(e=>e.id)),this.core=e,this.logger=t}}class pu extends mh{constructor(e,t){super(e,t,"authKeys",Qh,(()=>Xh)),this.core=e,this.logger=t}}class du extends mh{constructor(e,t){super(e,t,"pairingTopics",Qh),this.core=e,this.logger=t}}class fu extends mh{constructor(e,t){super(e,t,"requests",Qh,(e=>e.id)),this.core=e,this.logger=t}}class gu{constructor(e,t){this.core=e,this.logger=t,this.authKeys=new pu(this.core,this.logger),this.pairingTopics=new du(this.core,this.logger),this.requests=new fu(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}class yu extends zn{constructor(e){super(e),this.protocol="wc",this.version=2,this.name=zh,this.events=new g.EventEmitter,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.removeAllListeners=e=>this.events.removeAllListeners(e),this.connect=async e=>{try{return await this.engine.connect(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.pair=async e=>{try{return await this.engine.pair(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.approve=async e=>{try{return await this.engine.approve(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.reject=async e=>{try{return await this.engine.reject(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.update=async e=>{try{return await this.engine.update(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.extend=async e=>{try{return await this.engine.extend(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.request=async e=>{try{return await this.engine.request(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.respond=async e=>{try{return await this.engine.respond(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.ping=async e=>{try{return await this.engine.ping(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.emit=async e=>{try{return await this.engine.emit(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.disconnect=async e=>{try{return await this.engine.disconnect(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.find=e=>{try{return this.engine.find(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(e){throw this.logger.error(e.message),e}},this.authenticate=async(e,t)=>{try{return await this.engine.authenticate(e,t)}catch(Sn){throw this.logger.error(Sn.message),Sn}},this.formatAuthMessage=e=>{try{return this.engine.formatAuthMessage(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.approveSessionAuthenticate=async e=>{try{return await this.engine.approveSessionAuthenticate(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.rejectSessionAuthenticate=async e=>{try{return await this.engine.rejectSessionAuthenticate(e)}catch(Ti){throw this.logger.error(Ti.message),Ti}},this.name=e?.name||zh,this.metadata=e?.metadata||Ot(),this.signConfig=e?.signConfig;const t=typeof e?.logger<"u"&&"string"!=typeof e?.logger?e.logger:hn()(On({level:e?.logger||Hh}));this.core=e?.core||new Uh(e),this.logger=Tn(t,this.name),this.session=new uu(this.core,this.logger),this.proposal=new hu(this.core,this.logger),this.pendingRequest=new lu(this.core,this.logger),this.engine=new cu(this),this.auth=new gu(this.core,this.logger)}static async init(e){const t=new yu(e);return await t.initialize(),t}get context(){return xn(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.auth.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success"),setTimeout((()=>{this.engine.processRelayMessageCache()}),(0,A.toMiliseconds)(A.ONE_SECOND))}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}}var vu=r(302543),mu=r(21222),wu=r.n(mu),bu=Object.defineProperty,_u=Object.defineProperties,Eu=Object.getOwnPropertyDescriptors,Iu=Object.getOwnPropertySymbols,Su=Object.prototype.hasOwnProperty,Pu=Object.prototype.propertyIsEnumerable,Ou=(e,t,r)=>t in e?bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xu=(e,t)=>{for(var r in t||(t={}))Su.call(t,r)&&Ou(e,r,t[r]);if(Iu)for(var r of Iu(t))Pu.call(t,r)&&Ou(e,r,t[r]);return e},Tu=(e,t)=>_u(e,Eu(t));const Au={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};class Ru{constructor(e,t=!1){if(this.url=e,this.disableProviderPing=t,this.events=new g.EventEmitter,this.isAvailable=!1,this.registering=!1,!ds(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=t}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(e){this.isAvailable||await this.register();try{const t=Qe(e),r=await(await wu()(this.url,Tu(xu({},Au),{body:t}))).json();this.onPayload({data:r})}catch(t){this.onError(e.id,t)}}async register(e=this.url){if(!ds(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){const e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise(((e,t)=>{this.events.once("register_error",(e=>{this.resetMaxListeners(),t(e)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return t(new Error("HTTP connection is missing or invalid"));e()}))}))}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){const t=Qe({id:1,jsonrpc:"2.0",method:"test",params:[]});await wu()(e,Tu(xu({},Au),{body:t}))}this.onOpen()}catch(t){const e=this.parseError(t);throw this.events.emit("register_error",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;const t="string"==typeof e.data?Je(e.data):e.data;this.events.emit("payload",t)}onError(e,t){const r=this.parseError(t),i=as(e,r.message||r.toString());this.events.emit("payload",i)}parseError(e,t=this.url){return ts(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}const Nu="error",Cu="wc@2:universal_provider:",ju="https://rpc.walletconnect.org/v1/",ku="generic",Mu=`${ju}bundler`,Lu="default_chain_changed";var Du=Object.defineProperty,Uu=Object.defineProperties,$u=Object.getOwnPropertyDescriptors,qu=Object.getOwnPropertySymbols,zu=Object.prototype.hasOwnProperty,Hu=Object.prototype.propertyIsEnumerable,Ku=(e,t,r)=>t in e?Du(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bu=(e,t)=>{for(var r in t||(t={}))zu.call(t,r)&&Ku(e,r,t[r]);if(qu)for(var r of qu(t))Hu.call(t,r)&&Ku(e,r,t[r]);return e},Fu=(e,t)=>Uu(e,$u(t));function Vu(e,t,r){var i;const n=at(e);return(null==(i=t.rpcMap)?void 0:i[n.reference])||`${ju}?chainId=${n.namespace}:${n.reference}&projectId=${r}`}function Wu(e){return e.includes(":")?e.split(":")[1]:e}function Gu(e){return e.map((e=>`${e.split(":")[0]}:${e.split(":")[1]}`))}function Yu(e={},t={}){const r=Ju(e),i=Ju(t);return(0,vu.merge)(r,i)}function Ju(e){var t,r,i,n;const s={};if(!si(e))return s;for(const[o,a]of Object.entries(e)){const e=Qr(o)?[o]:a.chains,c=a.methods||[],h=a.events||[],u=a.rpcMap||{},l=Xr(o);s[l]=Fu(Bu(Bu({},s[l]),a),{chains:$t(e,null==(t=s[l])?void 0:t.chains),methods:$t(c,null==(r=s[l])?void 0:r.methods),events:$t(h,null==(i=s[l])?void 0:i.events),rpcMap:Bu(Bu({},u),null==(n=s[l])?void 0:n.rpcMap)})}return s}function Qu(e){return e.includes(":")?e.split(":")[2]:e}function Xu(e){const t={};for(const[r,i]of Object.entries(e)){const e=i.methods||[],n=i.events||[],s=i.accounts||[],o=Qr(r)?[r]:i.chains?i.chains:Gu(i.accounts);t[r]={chains:o,methods:e,events:n,accounts:s}}return t}function Zu(e){return"number"==typeof e?e:e.includes("0x")?parseInt(e,16):(e=e.includes(":")?e.split(":")[1]:e,isNaN(Number(e))?e:Number(e))}const el={},tl=e=>el[e],rl=(e,t)=>{el[e]=t};class il{constructor(e){this.name="polkadot",this.namespace=e.namespace,this.events=tl("events"),this.client=tl("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(Lu,`${this.name}:${e}`)}getAccounts(){const e=this.namespace.accounts;return e&&e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2]))||[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;const i=Wu(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||Vu(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new bs(new Ru(r,tl("disableProviderPing")))}}var nl=Object.defineProperty,sl=Object.defineProperties,ol=Object.getOwnPropertyDescriptors,al=Object.getOwnPropertySymbols,cl=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable,ul=(e,t,r)=>t in e?nl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ll=(e,t)=>{for(var r in t||(t={}))cl.call(t,r)&&ul(e,r,t[r]);if(al)for(var r of al(t))hl.call(t,r)&&ul(e,r,t[r]);return e},pl=(e,t)=>sl(e,ol(t));class dl{constructor(e){this.name="eip155",this.namespace=e.namespace,this.events=tl("events"),this.client=tl("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){switch(e.request.method){case"eth_requestAccounts":case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(e);case"eth_chainId":return parseInt(this.getDefaultChain());case"wallet_getCapabilities":return await this.getCapabilities(e);case"wallet_getCallsStatus":return await this.getCallStatus(e)}return this.namespace.methods.includes(e.request.method)?await this.client.request(e):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(parseInt(e),t),this.chainId=parseInt(e),this.events.emit(Lu,`${this.name}:${e}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}createHttpProvider(e,t){const r=t||Vu(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new bs(new Ru(r,tl("disableProviderPing")))}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;const i=parseInt(Wu(t));e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}getHttpProvider(){const e=this.chainId,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}async handleSwitchChain(e){var t,r;let i=e.request.params?null==(t=e.request.params[0])?void 0:t.chainId:"0x0";i=i.startsWith("0x")?i:`0x${i}`;const n=parseInt(i,16);if(this.isChainApproved(n))this.setDefaultChain(`${n}`);else{if(!this.namespace.methods.includes("wallet_switchEthereumChain"))throw new Error(`Failed to switch to chain 'eip155:${n}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);await this.client.request({topic:e.topic,request:{method:e.request.method,params:[{chainId:i}]},chainId:null==(r=this.namespace.chains)?void 0:r[0]}),this.setDefaultChain(`${n}`)}return null}isChainApproved(e){return this.namespace.chains.includes(`${this.name}:${e}`)}async getCapabilities(e){var t,r,i;const n=null==(r=null==(t=e.request)?void 0:t.params)?void 0:r[0];if(!n)throw new Error("Missing address parameter in `wallet_getCapabilities` request");const s=this.client.session.get(e.topic),o=(null==(i=s?.sessionProperties)?void 0:i.capabilities)||{};if(null!=o&&o[n])return o?.[n];const a=await this.client.request(e);try{await this.client.session.update(e.topic,{sessionProperties:pl(ll({},s.sessionProperties||{}),{capabilities:pl(ll({},o||{}),{[n]:a})})})}catch(lr){console.warn("Failed to update session with capabilities",lr)}return a}async getCallStatus(e){var t,r;const i=this.client.session.get(e.topic),n=null==(t=i.sessionProperties)?void 0:t.bundler_name;if(n){const t=this.getBundlerUrl(e.chainId,n);try{return await this.getUserOperationReceipt(t,e)}catch(o){console.warn("Failed to fetch call status from bundler",o,t)}}const s=null==(r=i.sessionProperties)?void 0:r.bundler_url;if(s)try{return await this.getUserOperationReceipt(s,e)}catch(a){console.warn("Failed to fetch call status from custom bundler",a,s)}if(this.namespace.methods.includes(e.request.method))return await this.client.request(e);throw new Error("Fetching call status not approved by the wallet.")}async getUserOperationReceipt(e,t){var r;const i=new URL(e),n=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ss("eth_getUserOperationReceipt",[null==(r=t.request.params)?void 0:r[0]]))});if(!n.ok)throw new Error(`Failed to fetch user operation receipt - ${n.status}`);return await n.json()}getBundlerUrl(e,t){return`${Mu}?projectId=${this.client.core.projectId}&chainId=${e}&bundler=${t}`}}class fl{constructor(e){this.name="solana",this.namespace=e.namespace,this.events=tl("events"),this.client=tl("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(Lu,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;const i=Wu(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||Vu(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new bs(new Ru(r,tl("disableProviderPing")))}}class gl{constructor(e){this.name="cosmos",this.namespace=e.namespace,this.events=tl("events"),this.client=tl("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(Lu,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;const i=Wu(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||Vu(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new bs(new Ru(r,tl("disableProviderPing")))}}class yl{constructor(e){this.name="algorand",this.namespace=e.namespace,this.events=tl("events"),this.client=tl("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(!this.httpProviders[e]){const r=t||Vu(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.chainId=e,this.events.emit(Lu,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;e[t]=this.createHttpProvider(t,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||Vu(e,this.namespace,this.client.core.projectId);return typeof r>"u"?void 0:new bs(new Ru(r,tl("disableProviderPing")))}}class vl{constructor(e){this.name="cip34",this.namespace=e.namespace,this.events=tl("events"),this.client=tl("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(Lu,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{const r=this.getCardanoRPCUrl(t),i=Wu(t);e[i]=this.createHttpProvider(i,r)})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}getCardanoRPCUrl(e){const t=this.namespace.rpcMap;if(t)return t[e]}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||this.getCardanoRPCUrl(e);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new bs(new Ru(r,tl("disableProviderPing")))}}class ml{constructor(e){this.name="elrond",this.namespace=e.namespace,this.events=tl("events"),this.client=tl("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(Lu,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;const i=Wu(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||Vu(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new bs(new Ru(r,tl("disableProviderPing")))}}class wl{constructor(e){this.name="multiversx",this.namespace=e.namespace,this.events=tl("events"),this.client=tl("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(Lu,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;const i=Wu(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||Vu(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new bs(new Ru(r,tl("disableProviderPing")))}}class bl{constructor(e){this.name="near",this.namespace=e.namespace,this.events=tl("events"),this.client=tl("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){const r=t||Vu(`${this.name}:${e}`,this.namespace);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.events.emit(Lu,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e&&e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2]))||[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;e[t]=this.createHttpProvider(t,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||Vu(e,this.namespace);return typeof r>"u"?void 0:new bs(new Ru(r,tl("disableProviderPing")))}}class _l{constructor(e){this.name="tezos",this.namespace=e.namespace,this.events=tl("events"),this.client=tl("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){const r=t||Vu(`${this.name}:${e}`,this.namespace);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.events.emit(Lu,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e&&e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2]))||[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{e[t]=this.createHttpProvider(t)})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||Vu(e,this.namespace);return typeof r>"u"?void 0:new bs(new Ru(r))}}class El{constructor(e){this.name=ku,this.namespace=e.namespace,this.events=tl("events"),this.client=tl("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(e.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(e.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(e.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(e.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider(e.chainId).request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(Lu,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}createHttpProviders(){var e,t;const r={};return null==(t=null==(e=this.namespace)?void 0:e.accounts)||t.forEach((e=>{const t=at(e);r[`${t.namespace}:${t.reference}`]=this.createHttpProvider(e)})),r}getHttpProvider(e){const t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||Vu(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new bs(new Ru(r,tl("disableProviderPing")))}}var Il=Object.defineProperty,Sl=Object.defineProperties,Pl=Object.getOwnPropertyDescriptors,Ol=Object.getOwnPropertySymbols,xl=Object.prototype.hasOwnProperty,Tl=Object.prototype.propertyIsEnumerable,Al=(e,t,r)=>t in e?Il(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rl=(e,t)=>{for(var r in t||(t={}))xl.call(t,r)&&Al(e,r,t[r]);if(Ol)for(var r of Ol(t))Tl.call(t,r)&&Al(e,r,t[r]);return e},Nl=(e,t)=>Sl(e,Pl(t));class Cl{constructor(e){this.events=new(y()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=e,this.logger=typeof e?.logger<"u"&&"string"!=typeof e?.logger?e.logger:hn()(On({level:e?.logger||Nu})),this.disableProviderPing=e?.disableProviderPing||!1}static async init(e){const t=new Cl(e);return await t.initialize(),t}async request(e,t,r){const[i,n]=this.validateChain(t);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(i).request({request:Rl({},e),chainId:`${i}:${n}`,topic:this.session.topic,expiry:r})}sendAsync(e,t,r,i){const n=(new Date).getTime();this.request(e,r,i).then((e=>t(null,os(n,e)))).catch((e=>t(e,void 0)))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:null==(e=this.session)?void 0:e.topic,reason:ii("USER_DISCONNECTED")}),await this.cleanup()}async connect(e){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}async authenticate(e,t){if(!this.client)throw new Error("Sign Client not initialized");this.setNamespaces(e),await this.cleanupPendingPairings();const{uri:r,response:i}=await this.client.authenticate(e,t);r&&(this.uri=r,this.events.emit("display_uri",r));const n=await i();if(this.session=n.session,this.session){const e=Xu(this.session.namespaces);this.namespaces=Yu(this.namespaces,e),this.persist("namespaces",this.namespaces),this.onConnect()}return n}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}async pair(e){this.shouldAbortPairingAttempt=!1;let t=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(t>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:r,approval:i}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});r&&(this.uri=r,this.events.emit("display_uri",r)),await i().then((e=>{this.session=e;const t=Xu(e.namespaces);this.namespaces=Yu(this.namespaces,t),this.persist("namespaces",this.namespaces)})).catch((e=>{if(e.message!==Bh)throw e;t++}))}while(!this.session);return this.onConnect(),this.session}setDefaultChain(e,t){try{if(!this.session)return;const[r,i]=this.validateChain(e),n=this.getProvider(r);n.name===ku?n.setDefaultChain(`${r}:${i}`,t):n.setDefaultChain(i,t)}catch(Ti){if(!/Please call connect/.test(Ti.message))throw Ti}}async cleanupPendingPairings(e={}){this.logger.info("Cleaning up inactive pairings...");const t=this.client.pairing.getAll();if(ni(t)){for(const r of t)e.deletePairings?this.client.core.expirer.set(r.topic,0):await this.client.core.relayer.subscriber.unsubscribe(r.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const e=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[e]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await yu.init({core:this.providerOpts.core,logger:this.providerOpts.logger||Nu,relayUrl:this.providerOpts.relayUrl||"wss://relay.walletconnect.org",projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const e=[...new Set(Object.keys(this.session.namespaces).map((e=>Xr(e))))];rl("client",this.client),rl("events",this.events),rl("disableProviderPing",this.disableProviderPing),e.forEach((e=>{if(!this.session)return;const t=function(e,t){const r=Object.keys(t.namespaces).filter((t=>t.includes(e)));if(!r.length)return[];const i=[];return r.forEach((e=>{const r=t.namespaces[e].accounts;i.push(...r)})),i}(e,this.session),r=Gu(t),i=Yu(this.namespaces,this.optionalNamespaces),n=Nl(Rl({},i[e]),{accounts:t,chains:r});switch(e){case"eip155":this.rpcProviders[e]=new dl({namespace:n});break;case"algorand":this.rpcProviders[e]=new yl({namespace:n});break;case"solana":this.rpcProviders[e]=new fl({namespace:n});break;case"cosmos":this.rpcProviders[e]=new gl({namespace:n});break;case"polkadot":this.rpcProviders[e]=new il({namespace:n});break;case"cip34":this.rpcProviders[e]=new vl({namespace:n});break;case"elrond":this.rpcProviders[e]=new ml({namespace:n});break;case"multiversx":this.rpcProviders[e]=new wl({namespace:n});break;case"near":this.rpcProviders[e]=new bl({namespace:n});break;case"tezos":this.rpcProviders[e]=new _l({namespace:n});break;default:this.rpcProviders[ku]?this.rpcProviders[ku].updateNamespace(n):this.rpcProviders[ku]=new El({namespace:n})}}))}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",(e=>{this.events.emit("session_ping",e)})),this.client.on("session_event",(e=>{const{params:t}=e,{event:r}=t;if("accountsChanged"===r.name){const e=r.data;e&&ni(e)&&this.events.emit("accountsChanged",e.map(Qu))}else if("chainChanged"===r.name){const e=t.chainId,r=t.event.data,i=Xr(e),n=Zu(e)!==Zu(r)?`${i}:${Zu(r)}`:e;this.onChainChanged(n)}else this.events.emit(r.name,r.data);this.events.emit("session_event",e)})),this.client.on("session_update",(({topic:e,params:t})=>{var r;const{namespaces:i}=t,n=null==(r=this.client)?void 0:r.session.get(e);this.session=Nl(Rl({},n),{namespaces:i}),this.onSessionUpdate(),this.events.emit("session_update",{topic:e,params:t})})),this.client.on("session_delete",(async e=>{await this.cleanup(),this.events.emit("session_delete",e),this.events.emit("disconnect",Nl(Rl({},ii("USER_DISCONNECTED")),{data:e.topic}))})),this.on(Lu,(e=>{this.onChainChanged(e,!0)}))}getProvider(e){return this.rpcProviders[e]||this.rpcProviders[ku]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach((e=>{var t;this.getProvider(e).updateNamespace(null==(t=this.session)?void 0:t.namespaces[e])}))}setNamespaces(e){const{namespaces:t,optionalNamespaces:r,sessionProperties:i}=e;t&&Object.keys(t).length&&(this.namespaces=t),r&&Object.keys(r).length&&(this.optionalNamespaces=r),this.sessionProperties=i,this.persist("namespaces",t),this.persist("optionalNamespaces",r)}validateChain(e){const[t,r]=e?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[t,r];if(t&&!Object.keys(this.namespaces||{}).map((e=>Xr(e))).includes(t))throw new Error(`Namespace '${t}' is not configured. Please call connect() first with namespace config.`);if(t&&r)return[t,r];const i=Xr(Object.keys(this.namespaces)[0]);return[i,this.rpcProviders[i].getDefaultChain()]}async requestAccounts(){const[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}onChainChanged(e,t=!1){if(!this.namespaces)return;const[r,i]=this.validateChain(e);i&&(t||this.getProvider(r).setDefaultChain(i),this.namespaces[r]?this.namespaces[r].defaultChain=i:this.namespaces[`${r}:${i}`]?this.namespaces[`${r}:${i}`].defaultChain=i:this.namespaces[`${r}:${i}`]={defaultChain:i},this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",i))}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(e,t){this.client.core.storage.setItem(`${Cu}/${e}`,t)}async getFromStore(e){return await this.client.core.storage.getItem(`${Cu}/${e}`)}}const jl=Cl,kl=["eth_sendTransaction","personal_sign"],Ml=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode","wallet_sendCalls","wallet_getCapabilities","wallet_getCallsStatus","wallet_showCallsStatus"],Ll=["chainChanged","accountsChanged"],Dl=["chainChanged","accountsChanged","message","disconnect","connect"];var Ul=Object.defineProperty,$l=Object.defineProperties,ql=Object.getOwnPropertyDescriptors,zl=Object.getOwnPropertySymbols,Hl=Object.prototype.hasOwnProperty,Kl=Object.prototype.propertyIsEnumerable,Bl=(e,t,r)=>t in e?Ul(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fl=(e,t)=>{for(var r in t||(t={}))Hl.call(t,r)&&Bl(e,r,t[r]);if(zl)for(var r of zl(t))Kl.call(t,r)&&Bl(e,r,t[r]);return e},Vl=(e,t)=>$l(e,ql(t));function Wl(e){return Number(e[0].split(":")[1])}function Gl(e){return`0x${e.toString(16)}`}class Yl{constructor(){this.events=new g.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY="wc@2:ethereum_provider:",this.on=(e,t)=>(this.events.on(e,t),this),this.once=(e,t)=>(this.events.once(e,t),this),this.removeListener=(e,t)=>(this.events.removeListener(e,t),this),this.off=(e,t)=>(this.events.off(e,t),this),this.parseAccount=e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e,this.signer={},this.rpc={}}static async init(e){const t=new Yl;return await t.initialize(e),t}async request(e,t){return await this.signer.request(e,this.formatChainId(this.chainId),t)}sendAsync(e,t,r){this.signer.sendAsync(e,t,this.formatChainId(this.chainId),r)}get connected(){return!!this.signer.client&&this.signer.client.core.relayer.connected}get connecting(){return!!this.signer.client&&this.signer.client.core.relayer.connecting}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(e){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(e);const{required:t,optional:r}=function(e){const{chains:t,optionalChains:r,methods:i,optionalMethods:n,events:s,optionalEvents:o,rpcMap:a}=e;if(!ni(t))throw new Error("Invalid chains");const c={chains:t,methods:i||kl,events:s||Ll,rpcMap:Fl({},t.length?{[Wl(t)]:a[Wl(t)]}:{})},h=s?.filter((e=>!Ll.includes(e))),u=i?.filter((e=>!kl.includes(e)));if(!(r||o||n||null!=h&&h.length||null!=u&&u.length))return{required:t.length?c:void 0};const l={chains:[...new Set(h?.length&&u?.length||!r?c.chains.concat(r||[]):r)],methods:[...new Set(c.methods.concat(null!=n&&n.length?n:Ml))],events:[...new Set(c.events.concat(null!=o&&o.length?o:Dl))],rpcMap:a};return{required:t.length?c:void 0,optional:r.length?l:void 0}}(this.rpc);try{const i=await new Promise((async(i,n)=>{var s;this.rpc.showQrModal&&(null==(s=this.modal)||s.subscribeModal((e=>{!e.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),n(new Error("Connection request reset. Please try again.")))}))),await this.signer.connect(Vl(Fl({namespaces:Fl({},t&&{[this.namespace]:t})},r&&{optionalNamespaces:{[this.namespace]:r}}),{pairingTopic:e?.pairingTopic})).then((e=>{i(e)})).catch((e=>{n(new Error(e.message))}))}));if(!i)return;const n=ct(i.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:n),this.setAccounts(n),this.events.emit("connect",{chainId:Gl(this.chainId)})}catch(i){throw this.signer.logger.error(i),i}finally{this.modal&&this.modal.closeModal()}}async authenticate(e,t){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts({chains:e?.chains});try{const r=await new Promise((async(r,i)=>{var n;this.rpc.showQrModal&&(null==(n=this.modal)||n.subscribeModal((e=>{!e.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),i(new Error("Connection request reset. Please try again.")))}))),await this.signer.authenticate(Vl(Fl({},e),{chains:this.rpc.chains}),t).then((e=>{r(e)})).catch((e=>{i(new Error(e.message))}))})),i=r.session;if(i){const e=ct(i.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:e),this.setAccounts(e),this.events.emit("connect",{chainId:Gl(this.chainId)})}return r}catch(Sn){throw this.signer.logger.error(Sn),Sn}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",(e=>{const{params:t}=e,{event:r}=t;"accountsChanged"===r.name?(this.accounts=this.parseAccounts(r.data),this.events.emit("accountsChanged",this.accounts)):"chainChanged"===r.name?this.setChainId(this.formatChainId(r.data)):this.events.emit(r.name,r.data),this.events.emit("session_event",e)})),this.signer.on("chainChanged",(e=>{const t=parseInt(e);this.chainId=t,this.events.emit("chainChanged",Gl(this.chainId)),this.persist()})),this.signer.on("session_update",(e=>{this.events.emit("session_update",e)})),this.signer.on("session_delete",(e=>{this.reset(),this.events.emit("session_delete",e),this.events.emit("disconnect",Vl(Fl({},ii("USER_DISCONNECTED")),{data:e.topic,name:"USER_DISCONNECTED"}))})),this.signer.on("display_uri",(e=>{var t,r;this.rpc.showQrModal&&(null==(t=this.modal)||t.closeModal(),null==(r=this.modal)||r.openModal({uri:e})),this.events.emit("display_uri",e)}))}switchEthereumChain(e){this.request({method:"wallet_switchEthereumChain",params:[{chainId:e.toString(16)}]})}isCompatibleChainId(e){return"string"==typeof e&&e.startsWith(`${this.namespace}:`)}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(":")[1])}setChainIds(e){const t=e.filter((e=>this.isCompatibleChainId(e))).map((e=>this.parseChainId(e)));t.length&&(this.chainId=t[0],this.events.emit("chainChanged",Gl(this.chainId)),this.persist())}setChainId(e){if(this.isCompatibleChainId(e)){const t=this.parseChainId(e);this.chainId=t,this.switchEthereumChain(t)}}parseAccountId(e){const[t,r,i]=e.split(":");return{chainId:`${t}:${r}`,address:i}}setAccounts(e){this.accounts=e.filter((e=>this.parseChainId(this.parseAccountId(e).chainId)===this.chainId)).map((e=>this.parseAccountId(e).address)),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(e){var t,r;const i=null!=(t=e?.chains)?t:[],n=null!=(r=e?.optionalChains)?r:[],s=i.concat(n);if(!s.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const o=i.length?e?.methods||kl:[],a=i.length?e?.events||Ll:[],c=e?.optionalMethods||[],h=e?.optionalEvents||[],u=e?.rpcMap||this.buildRpcMap(s,e.projectId),l=e?.qrModalOptions||void 0;return{chains:i?.map((e=>this.formatChainId(e))),optionalChains:n.map((e=>this.formatChainId(e))),methods:o,events:a,optionalMethods:c,optionalEvents:h,rpcMap:u,showQrModal:!(null==e||!e.showQrModal),qrModalOptions:l,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,t){const r={};return e.forEach((e=>{r[e]=this.getRpcUrl(e,t)})),r}async initialize(e){if(this.rpc=this.getRpcConfig(e),this.chainId=this.rpc.chains.length?Wl(this.rpc.chains):Wl(this.rpc.optionalChains),this.signer=await jl.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:e.disableProviderPing,relayUrl:e.relayUrl,storageOptions:e.storageOptions,customStoragePrefix:e.customStoragePrefix,telemetryEnabled:e.telemetryEnabled,logger:e.logger}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let e;try{const{WalletConnectModal:t}=await r.e(80940).then(r.bind(r,380940));e=t}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(e)try{this.modal=new e(Fl({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(Sn){throw this.signer.logger.error(Sn),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(e){if(!e)return;const{chains:t,optionalChains:r,rpcMap:i}=e;t&&ni(t)&&(this.rpc.chains=t.map((e=>this.formatChainId(e))),t.forEach((e=>{this.rpc.rpcMap[e]=i?.[e]||this.getRpcUrl(e)}))),r&&ni(r)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=r?.map((e=>this.formatChainId(e))),r.forEach((e=>{this.rpc.rpcMap[e]=i?.[e]||this.getRpcUrl(e)})))}getRpcUrl(e,t){var r;return(null==(r=this.rpc.rpcMap)?void 0:r[e])||`https://rpc.walletconnect.org/v1/?chainId=eip155:${e}&projectId=${t||this.rpc.projectId}`}async loadPersistedSession(){if(this.session)try{const e=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),t=this.session.namespaces[`${this.namespace}:${e}`]?this.session.namespaces[`${this.namespace}:${e}`]:this.session.namespaces[this.namespace];this.setChainIds(e?[this.formatChainId(e)]:t?.accounts),this.setAccounts(t?.accounts)}catch(e){this.signer.logger.error("Failed to load persisted session, clearing state..."),this.signer.logger.error(e),await this.disconnect().catch((e=>this.signer.logger.warn(e)))}}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(e){return"string"==typeof e||e instanceof String?[this.parseAccount(e)]:e.map((e=>this.parseAccount(e)))}}},21222:function(e,t){var r="undefined"!=typeof self?self:this,i=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r="URLSearchParams"in e,i="Symbol"in e&&"iterator"in Symbol,n="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in e,o="ArrayBuffer"in e;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function h(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function g(e){var t=new FileReader,r=f(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:n&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&n&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,r,i=d(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=f(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i-1?i:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function b(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),i=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(n))}})),t}function _(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},v.call(w.prototype),v.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];_.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(S){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function I(e,r){return new Promise((function(i,s){var o=new w(e,r);if(o.signal&&o.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),i=r.shift().trim();if(i){var n=r.join(":").trim();t.append(i,n)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;i(new _(n,r))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new t.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&n&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",c)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}I.polyfill=!0,e.fetch||(e.fetch=I,e.Headers=p,e.Request=w,e.Response=_),t.Headers=p,t.Request=w,t.Response=_,t.fetch=I,Object.defineProperty(t,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var n=i;(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},490796:e=>{"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},755665:()=>{},149026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(880584);i.__exportStar(r(979244),t),i.__exportStar(r(331861),t)},979244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},331861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},388900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(880584);i.__exportStar(r(599606),t),i.__exportStar(r(789883),t),i.__exportStar(r(662010),t),i.__exportStar(r(149026),t)},662010:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(880584).__exportStar(r(163093),t)},163093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0;t.IWatch=class{}},160221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;const i=r(149026);t.toMiliseconds=function(e){return e*i.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/i.ONE_THOUSAND)}},602985:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise((t=>{setTimeout((()=>{t(!0)}),e)}))}},599606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(880584);i.__exportStar(r(602985),t),i.__exportStar(r(160221),t)},789883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){const t=this.get(e);if(void 0!==t.elapsed)throw new Error(`Watch already stopped for label: ${e}`);const r=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:r})}get(e){const t=this.timestamps.get(e);if(void 0===t)throw new Error(`No timestamp found for label: ${e}`);return t}elapsed(e){const t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=r,t.default=r},880584:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>s,__asyncDelegator:()=>b,__asyncGenerator:()=>w,__asyncValues:()=>_,__await:()=>m,__awaiter:()=>u,__classPrivateFieldGet:()=>P,__classPrivateFieldSet:()=>O,__createBinding:()=>p,__decorate:()=>a,__exportStar:()=>d,__extends:()=>n,__generator:()=>l,__importDefault:()=>S,__importStar:()=>I,__makeTemplateObject:()=>E,__metadata:()=>h,__param:()=>c,__read:()=>g,__rest:()=>o,__spread:()=>y,__spreadArrays:()=>v,__values:()=>f});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},i(e,t)};function n(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return s=Object.assign||function(e){for(var t,r=1,i=arguments.length;r=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function c(e,t){return function(r,i){t(r,i,e)}}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,i){return new(r||(r=Promise))((function(n,s){function o(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))}function l(e,t){var r,i,n,s,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}function y(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(r=n[e](t)).value instanceof m?Promise.resolve(r.value.v).then(c,h):u(s[0][2],r)}catch(i){u(s[0][3],i)}var r}function c(e){a("next",e)}function h(e){a("throw",e)}function u(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function b(e){var t,r;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,n){t[i]=e[i]?function(t){return(r=!r)?{value:m(e[i](t)),done:"return"===i}:n?n(t):t}:n}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(t){return new Promise((function(i,n){(function(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)})(i,n,(t=e[r](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function P(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function O(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},838196:(e,t)=>{"use strict";function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function i(e){const t=r(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=i,t.getDocumentOrThrow=function(){return i("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return i("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return i("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return i("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return i("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},842063:(e,t,r)=>{"use strict";t.g=void 0;const i=r(838196);t.g=function(){let e,t;try{e=i.getDocumentOrThrow(),t=i.getLocationOrThrow()}catch(s){return null}function r(...t){const r=e.getElementsByTagName("meta");for(let e=0;ei.getAttribute(e))).filter((e=>!!e&&t.includes(e)));if(n.length&&n){const e=i.getAttribute("content");if(e)return e}}return""}const n=function(){let t=r("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:r("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const r=e.getElementsByTagName("link"),i=[];for(let e=0;e-1){const e=n.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=t.protocol+"//"+t.host;if(0===e.indexOf("/"))r+=e;else{const i=t.pathname.split("/");i.pop();r+=i.join("/")+"/"+e}i.push(r)}else if(0===e.indexOf("//")){const r=t.protocol+e;i.push(r)}else i.push(e)}}return i}(),name:n}}},530454:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),i=new RegExp("("+t+")+","gi");function n(e,t){try{return[decodeURIComponent(e.join(""))]}catch(s){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),i=e.slice(t);return Array.prototype.concat.call([],n(r),n(i))}function s(e){try{return decodeURIComponent(e)}catch(s){for(var t=e.match(r)||[],i=1;i{"use strict";e.exports=function(e,t){for(var r={},i=Object.keys(e),n=Array.isArray(t),s=0;s{e=r.nmd(e);var i="__lodash_hash_undefined__",n=9007199254740991,s="[object Arguments]",o="[object Array]",a="[object Boolean]",c="[object Date]",h="[object Error]",u="[object Function]",l="[object Map]",p="[object Number]",d="[object Object]",f="[object Promise]",g="[object RegExp]",y="[object Set]",v="[object String]",m="[object Symbol]",w="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",E=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[s]=S[o]=S[b]=S[a]=S[_]=S[c]=S[h]=S[u]=S[l]=S[p]=S[d]=S[g]=S[y]=S[v]=S[w]=!1;var P="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,O="object"==typeof self&&self&&self.Object===Object&&self,x=P||O||Function("return this")(),T=t&&!t.nodeType&&t,A=T&&e&&!e.nodeType&&e,R=A&&A.exports===T,N=R&&P.process,C=function(){try{return N&&N.binding&&N.binding("util")}catch(e){}}(),j=C&&C.isTypedArray;function k(e,t){for(var r=-1,i=null==e?0:e.length;++ra))return!1;var h=s.get(e);if(h&&s.get(t))return h==t;var u=-1,l=!0,p=2&r?new be:void 0;for(s.set(e,t),s.set(t,e);++u-1},me.prototype.set=function(e,t){var r=this.__data__,i=Ie(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},we.prototype.clear=function(){this.size=0,this.__data__={hash:new ve,map:new(se||me),string:new ve}},we.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},we.prototype.get=function(e){return Ne(this,e).get(e)},we.prototype.has=function(e){return Ne(this,e).has(e)},we.prototype.set=function(e,t){var r=Ne(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,i),this},be.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.clear=function(){this.__data__=new me,this.size=0},_e.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var r=this.__data__;if(r instanceof me){var i=r.__data__;if(!se||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new we(i)}return r.set(e,t),this.size=r.size,this};var je=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,i=null==e?0:e.length,n=0,s=[];++r-1&&e%1==0&&e-1&&e%1==0&&e<=n}function Ke(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Be(e){return null!=e&&"object"==typeof e}var Fe=j?function(e){return function(t){return e(t)}}(j):function(e){return Be(e)&&He(e.length)&&!!S[Se(e)]};function Ve(e){return null!=(t=e)&&He(t.length)&&!ze(t)?Ee(e):Te(e);var t}e.exports=function(e,t){return Oe(e,t)}},302543:function(e,t,r){var i;e=r.nmd(e),function(){var n,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,h=32,u=64,l=128,p=256,d=1/0,f=9007199254740991,g=NaN,y=4294967295,v=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",h],["partialRight",u],["rearg",p]],m="[object Arguments]",w="[object Array]",b="[object Boolean]",_="[object Date]",E="[object Error]",I="[object Function]",S="[object GeneratorFunction]",P="[object Map]",O="[object Number]",x="[object Object]",T="[object Promise]",A="[object RegExp]",R="[object Set]",N="[object String]",C="[object Symbol]",j="[object WeakMap]",k="[object ArrayBuffer]",M="[object DataView]",L="[object Float32Array]",D="[object Float64Array]",U="[object Int8Array]",$="[object Int16Array]",q="[object Int32Array]",z="[object Uint8Array]",H="[object Uint8ClampedArray]",K="[object Uint16Array]",B="[object Uint32Array]",F=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,J=RegExp(G.source),Q=RegExp(Y.source),X=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ne.source),oe=/^\s+/,ae=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,he=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,ye=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,we=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ee=/($^)/,Ie=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",Pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",xe="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ne="['\u2019]",Ce="["+Se+"]",je="["+Re+"]",ke="["+Pe+"]",Me="\\d+",Le="["+Oe+"]",De="["+xe+"]",Ue="[^"+Se+Re+Me+Oe+xe+Te+"]",$e="\\ud83c[\\udffb-\\udfff]",qe="[^"+Se+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",Ke="["+Te+"]",Be="\\u200d",Fe="(?:"+De+"|"+Ue+")",Ve="(?:"+Ke+"|"+Ue+")",We="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ge="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+ke+"|"+$e+")"+"?",Je="["+Ae+"]?",Qe=Je+Ye+("(?:"+Be+"(?:"+[qe,ze,He].join("|")+")"+Je+Ye+")*"),Xe="(?:"+[Le,ze,He].join("|")+")"+Qe,Ze="(?:"+[qe+ke+"?",ke,ze,He,Ce].join("|")+")",et=RegExp(Ne,"g"),tt=RegExp(ke,"g"),rt=RegExp($e+"(?="+$e+")|"+Ze+Qe,"g"),it=RegExp([Ke+"?"+De+"+"+We+"(?="+[je,Ke,"$"].join("|")+")",Ve+"+"+Ge+"(?="+[je,Ke+Fe,"$"].join("|")+")",Ke+"?"+Fe+"+"+We,Ke+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,Xe].join("|"),"g"),nt=RegExp("["+Be+Se+Pe+Ae+"]"),st=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[L]=ct[D]=ct[U]=ct[$]=ct[q]=ct[z]=ct[H]=ct[K]=ct[B]=!0,ct[m]=ct[w]=ct[k]=ct[b]=ct[M]=ct[_]=ct[E]=ct[I]=ct[P]=ct[O]=ct[x]=ct[A]=ct[R]=ct[N]=ct[j]=!1;var ht={};ht[m]=ht[w]=ht[k]=ht[M]=ht[b]=ht[_]=ht[L]=ht[D]=ht[U]=ht[$]=ht[q]=ht[P]=ht[O]=ht[x]=ht[A]=ht[R]=ht[N]=ht[C]=ht[z]=ht[H]=ht[K]=ht[B]=!0,ht[E]=ht[I]=ht[j]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,pt=parseInt,dt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ft="object"==typeof self&&self&&self.Object===Object&&self,gt=dt||ft||Function("return this")(),yt=t&&!t.nodeType&&t,vt=yt&&e&&!e.nodeType&&e,mt=vt&&vt.exports===yt,wt=mt&&dt.process,bt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||wt&&wt.binding&&wt.binding("util")}catch(t){}}(),_t=bt&&bt.isArrayBuffer,Et=bt&&bt.isDate,It=bt&&bt.isMap,St=bt&&bt.isRegExp,Pt=bt&&bt.isSet,Ot=bt&&bt.isTypedArray;function xt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Tt(e,t,r,i){for(var n=-1,s=null==e?0:e.length;++n-1}function kt(e,t,r){for(var i=-1,n=null==e?0:e.length;++i-1;);return r}function ir(e,t){for(var r=e.length;r--&&Kt(t,e[r],0)>-1;);return r}var nr=Gt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),sr=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function or(e){return"\\"+ut[e]}function ar(e){return nt.test(e)}function cr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,i){r[++t]=[i,e]})),r}function hr(e,t){return function(r){return e(t(r))}}function ur(e,t){for(var r=-1,i=e.length,n=0,s=[];++r",""":'"',"'":"'"});var vr=function e(t){var r,i=(t=null==t?gt:vr.defaults(gt.Object(),t,vr.pick(gt,ot))).Array,ae=t.Date,Se=t.Error,Pe=t.Function,Oe=t.Math,xe=t.Object,Te=t.RegExp,Ae=t.String,Re=t.TypeError,Ne=i.prototype,Ce=Pe.prototype,je=xe.prototype,ke=t["__core-js_shared__"],Me=Ce.toString,Le=je.hasOwnProperty,De=0,Ue=(r=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",$e=je.toString,qe=Me.call(xe),ze=gt._,He=Te("^"+Me.call(Le).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ke=mt?t.Buffer:n,Be=t.Symbol,Fe=t.Uint8Array,Ve=Ke?Ke.allocUnsafe:n,We=hr(xe.getPrototypeOf,xe),Ge=xe.create,Ye=je.propertyIsEnumerable,Je=Ne.splice,Qe=Be?Be.isConcatSpreadable:n,Xe=Be?Be.iterator:n,Ze=Be?Be.toStringTag:n,rt=function(){try{var e=ps(xe,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,ut=ae&&ae.now!==gt.Date.now&&ae.now,dt=t.setTimeout!==gt.setTimeout&&t.setTimeout,ft=Oe.ceil,yt=Oe.floor,vt=xe.getOwnPropertySymbols,wt=Ke?Ke.isBuffer:n,bt=t.isFinite,qt=Ne.join,Gt=hr(xe.keys,xe),mr=Oe.max,wr=Oe.min,br=ae.now,_r=t.parseInt,Er=Oe.random,Ir=Ne.reverse,Sr=ps(t,"DataView"),Pr=ps(t,"Map"),Or=ps(t,"Promise"),xr=ps(t,"Set"),Tr=ps(t,"WeakMap"),Ar=ps(xe,"create"),Rr=Tr&&new Tr,Nr={},Cr=Us(Sr),jr=Us(Pr),kr=Us(Or),Mr=Us(xr),Lr=Us(Tr),Dr=Be?Be.prototype:n,Ur=Dr?Dr.valueOf:n,$r=Dr?Dr.toString:n;function qr(e){if(ra(e)&&!Fo(e)&&!(e instanceof Br)){if(e instanceof Kr)return e;if(Le.call(e,"__wrapped__"))return $s(e)}return new Kr(e)}var zr=function(){function e(){}return function(t){if(!ta(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Hr(){}function Kr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Br(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function Fr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ci(e,t,r,i,s,o){var a,c=1&t,h=2&t,u=4&t;if(r&&(a=s?r(e,i,s,o):r(e)),a!==n)return a;if(!ta(e))return e;var l=Fo(e);if(l){if(a=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!c)return Rn(e,a)}else{var p=gs(e),d=p==I||p==S;if(Yo(e))return Sn(e,c);if(p==x||p==m||d&&!s){if(a=h||d?{}:vs(e),!c)return h?function(e,t){return Nn(e,fs(e),t)}(e,function(e,t){return e&&Nn(t,ja(t),e)}(a,e)):function(e,t){return Nn(e,ds(e),t)}(e,ni(a,e))}else{if(!ht[p])return s?e:{};a=function(e,t,r){var i=e.constructor;switch(t){case k:return Pn(e);case b:case _:return new i(+e);case M:return function(e,t){var r=t?Pn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case L:case D:case U:case $:case q:case z:case H:case K:case B:return On(e,r);case P:return new i;case O:case N:return new i(e);case A:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new i;case C:return n=e,Ur?xe(Ur.call(n)):{}}var n}(e,p,c)}}o||(o=new Yr);var f=o.get(e);if(f)return f;o.set(e,a),aa(e)?e.forEach((function(i){a.add(ci(i,t,r,i,e,o))})):ia(e)&&e.forEach((function(i,n){a.set(n,ci(i,t,r,n,e,o))}));var g=l?n:(u?h?ss:ns:h?ja:Ca)(e);return At(g||e,(function(i,n){g&&(i=e[n=i]),ti(a,n,ci(i,t,r,n,e,o))})),a}function hi(e,t,r){var i=r.length;if(null==e)return!i;for(e=xe(e);i--;){var s=r[i],o=t[s],a=e[s];if(a===n&&!(s in e)||!o(a))return!1}return!0}function ui(e,t,r){if("function"!=typeof e)throw new Re(s);return Ns((function(){e.apply(n,r)}),t)}function li(e,t,r,i){var n=-1,s=jt,o=!0,a=e.length,c=[],h=t.length;if(!a)return c;r&&(t=Mt(t,Zt(r))),i?(s=kt,o=!1):t.length>=200&&(s=tr,o=!1,t=new Gr(t));e:for(;++n-1},Vr.prototype.set=function(e,t){var r=this.__data__,i=ri(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Fr,map:new(Pr||Vr),string:new Fr}},Wr.prototype.delete=function(e){var t=us(this,e).delete(e);return this.size-=t?1:0,t},Wr.prototype.get=function(e){return us(this,e).get(e)},Wr.prototype.has=function(e){return us(this,e).has(e)},Wr.prototype.set=function(e,t){var r=us(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},Gr.prototype.add=Gr.prototype.push=function(e){return this.__data__.set(e,o),this},Gr.prototype.has=function(e){return this.__data__.has(e)},Yr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Yr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Yr.prototype.get=function(e){return this.__data__.get(e)},Yr.prototype.has=function(e){return this.__data__.has(e)},Yr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Vr){var i=r.__data__;if(!Pr||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Wr(i)}return r.set(e,t),this.size=r.size,this};var pi=kn(bi),di=kn(_i,!0);function fi(e,t){var r=!0;return pi(e,(function(e,i,n){return r=!!t(e,i,n)})),r}function gi(e,t,r){for(var i=-1,s=e.length;++i0&&r(a)?t>1?vi(a,t-1,r,i,n):Lt(n,a):i||(n[n.length]=a)}return n}var mi=Mn(),wi=Mn(!0);function bi(e,t){return e&&mi(e,t,Ca)}function _i(e,t){return e&&wi(e,t,Ca)}function Ei(e,t){return Ct(t,(function(t){return Xo(e[t])}))}function Ii(e,t){for(var r=0,i=(t=bn(t,e)).length;null!=e&&rt}function xi(e,t){return null!=e&&Le.call(e,t)}function Ti(e,t){return null!=e&&t in xe(e)}function Ai(e,t,r){for(var s=r?kt:jt,o=e[0].length,a=e.length,c=a,h=i(a),u=1/0,l=[];c--;){var p=e[c];c&&t&&(p=Mt(p,Zt(t))),u=wr(p.length,u),h[c]=!r&&(t||o>=120&&p.length>=120)?new Gr(c&&p):n}p=e[0];var d=-1,f=h[0];e:for(;++d=a?c:c*("desc"==r[i]?-1:1)}return e.index-t.index}(e,t,r)}))}function Fi(e,t,r){for(var i=-1,n=t.length,s={};++i-1;)a!==e&&Je.call(a,c,1),Je.call(e,c,1);return e}function Wi(e,t){for(var r=e?t.length:0,i=r-1;r--;){var n=t[r];if(r==i||n!==s){var s=n;ws(n)?Je.call(e,n,1):pn(e,n)}}return e}function Gi(e,t){return e+yt(Er()*(t-e+1))}function Yi(e,t){var r="";if(!e||t<1||t>f)return r;do{t%2&&(r+=e),(t=yt(t/2))&&(e+=e)}while(t);return r}function Ji(e,t){return Cs(xs(e,t,nc),e+"")}function Qi(e){return Qr(za(e))}function Xi(e,t){var r=za(e);return Ms(r,ai(t,0,r.length))}function Zi(e,t,r,i){if(!ta(e))return e;for(var s=-1,o=(t=bn(t,e)).length,a=o-1,c=e;null!=c&&++ss?0:s+t),(r=r>s?s:r)<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;for(var o=i(s);++n>>1,o=e[s];null!==o&&!ha(o)&&(r?o<=t:o=200){var h=t?null:Jn(e);if(h)return lr(h);o=!1,n=tr,c=new Gr}else c=t?[]:a;e:for(;++i=i?e:nn(e,t,r)}var In=nt||function(e){return gt.clearTimeout(e)};function Sn(e,t){if(t)return e.slice();var r=e.length,i=Ve?Ve(r):new e.constructor(r);return e.copy(i),i}function Pn(e){var t=new e.constructor(e.byteLength);return new Fe(t).set(new Fe(e)),t}function On(e,t){var r=t?Pn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function xn(e,t){if(e!==t){var r=e!==n,i=null===e,s=e==e,o=ha(e),a=t!==n,c=null===t,h=t==t,u=ha(t);if(!c&&!u&&!o&&e>t||o&&a&&h&&!c&&!u||i&&a&&h||!r&&h||!s)return 1;if(!i&&!o&&!u&&e1?r[s-1]:n,a=s>2?r[2]:n;for(o=e.length>3&&"function"==typeof o?(s--,o):n,a&&bs(r[0],r[1],a)&&(o=s<3?n:o,s=1),t=xe(t);++i-1?s[o?t[a]:a]:n}}function qn(e){return is((function(t){var r=t.length,i=r,o=Kr.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new Re(s);if(o&&!c&&"wrapper"==as(a))var c=new Kr([],!0)}for(i=c?i:r;++i1&&b.reverse(),d&&uc))return!1;var u=o.get(e),l=o.get(t);if(u&&l)return u==t&&l==e;var p=-1,d=!0,f=2&r?new Gr:n;for(o.set(e,t),o.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return At(v,(function(r){var i="_."+r[0];t&r[1]&&!jt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(he);return t?t[1].split(ue):[]}(i),r)))}function ks(e){var t=0,r=0;return function(){var i=br(),s=16-(i-r);if(r=i,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ms(e,t){var r=-1,i=e.length,s=i-1;for(t=t===n?i:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,so(e,r)}));function po(e){var t=qr(e);return t.__chain__=!0,t}function fo(e,t){return t(e)}var go=is((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,s=function(t){return oi(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Br&&ws(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:fo,args:[s],thisArg:n}),new Kr(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(s)}));var yo=Cn((function(e,t,r){Le.call(e,r)?++e[r]:si(e,r,1)}));var vo=$n(Ks),mo=$n(Bs);function wo(e,t){return(Fo(e)?At:pi)(e,hs(t,3))}function bo(e,t){return(Fo(e)?Rt:di)(e,hs(t,3))}var _o=Cn((function(e,t,r){Le.call(e,r)?e[r].push(t):si(e,r,[t])}));var Eo=Ji((function(e,t,r){var n=-1,s="function"==typeof t,o=Wo(e)?i(e.length):[];return pi(e,(function(e){o[++n]=s?xt(t,e,r):Ri(e,t,r)})),o})),Io=Cn((function(e,t,r){si(e,r,t)}));function So(e,t){return(Fo(e)?Mt:$i)(e,hs(t,3))}var Po=Cn((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Oo=Ji((function(e,t){if(null==e)return[];var r=t.length;return r>1&&bs(e,t[0],t[1])?t=[]:r>2&&bs(t[0],t[1],t[2])&&(t=[t[0]]),Bi(e,vi(t,1),[])})),xo=ut||function(){return gt.Date.now()};function To(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Xn(e,l,n,n,n,n,t)}function Ao(e,t){var r;if("function"!=typeof t)throw new Re(s);return e=ga(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Ro=Ji((function(e,t,r){var i=1;if(r.length){var n=ur(r,cs(Ro));i|=h}return Xn(e,i,t,r,n)})),No=Ji((function(e,t,r){var i=3;if(r.length){var n=ur(r,cs(No));i|=h}return Xn(t,i,e,r,n)}));function Co(e,t,r){var i,o,a,c,h,u,l=0,p=!1,d=!1,f=!0;if("function"!=typeof e)throw new Re(s);function g(t){var r=i,s=o;return i=o=n,l=t,c=e.apply(s,r)}function y(e){var r=e-u;return u===n||r>=t||r<0||d&&e-l>=a}function v(){var e=xo();if(y(e))return m(e);h=Ns(v,function(e){var r=t-(e-u);return d?wr(r,a-(e-l)):r}(e))}function m(e){return h=n,f&&i?g(e):(i=o=n,c)}function w(){var e=xo(),r=y(e);if(i=arguments,o=this,u=e,r){if(h===n)return function(e){return l=e,h=Ns(v,t),p?g(e):c}(u);if(d)return In(h),h=Ns(v,t),g(u)}return h===n&&(h=Ns(v,t)),c}return t=va(t)||0,ta(r)&&(p=!!r.leading,a=(d="maxWait"in r)?mr(va(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),w.cancel=function(){h!==n&&In(h),l=0,i=u=o=h=n},w.flush=function(){return h===n?c:m(xo())},w}var jo=Ji((function(e,t){return ui(e,1,t)})),ko=Ji((function(e,t,r){return ui(e,va(t)||0,r)}));function Mo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(s);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var o=e.apply(this,i);return r.cache=s.set(n,o)||s,o};return r.cache=new(Mo.Cache||Wr),r}function Lo(e){if("function"!=typeof e)throw new Re(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Mo.Cache=Wr;var Do=_n((function(e,t){var r=(t=1==t.length&&Fo(t[0])?Mt(t[0],Zt(hs())):Mt(vi(t,1),Zt(hs()))).length;return Ji((function(i){for(var n=-1,s=wr(i.length,r);++n=t})),Bo=Ni(function(){return arguments}())?Ni:function(e){return ra(e)&&Le.call(e,"callee")&&!Ye.call(e,"callee")},Fo=i.isArray,Vo=_t?Zt(_t):function(e){return ra(e)&&Pi(e)==k};function Wo(e){return null!=e&&ea(e.length)&&!Xo(e)}function Go(e){return ra(e)&&Wo(e)}var Yo=wt||vc,Jo=Et?Zt(Et):function(e){return ra(e)&&Pi(e)==_};function Qo(e){if(!ra(e))return!1;var t=Pi(e);return t==E||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!sa(e)}function Xo(e){if(!ta(e))return!1;var t=Pi(e);return t==I||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zo(e){return"number"==typeof e&&e==ga(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ra(e){return null!=e&&"object"==typeof e}var ia=It?Zt(It):function(e){return ra(e)&&gs(e)==P};function na(e){return"number"==typeof e||ra(e)&&Pi(e)==O}function sa(e){if(!ra(e)||Pi(e)!=x)return!1;var t=We(e);if(null===t)return!0;var r=Le.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Me.call(r)==qe}var oa=St?Zt(St):function(e){return ra(e)&&Pi(e)==A};var aa=Pt?Zt(Pt):function(e){return ra(e)&&gs(e)==R};function ca(e){return"string"==typeof e||!Fo(e)&&ra(e)&&Pi(e)==N}function ha(e){return"symbol"==typeof e||ra(e)&&Pi(e)==C}var ua=Ot?Zt(Ot):function(e){return ra(e)&&ea(e.length)&&!!ct[Pi(e)]};var la=Wn(Ui),pa=Wn((function(e,t){return e<=t}));function da(e){if(!e)return[];if(Wo(e))return ca(e)?fr(e):Rn(e);if(Xe&&e[Xe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Xe]());var t=gs(e);return(t==P?cr:t==R?lr:za)(e)}function fa(e){return e?(e=va(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ga(e){var t=fa(e),r=t%1;return t==t?r?t-r:t:0}function ya(e){return e?ai(ga(e),0,y):0}function va(e){if("number"==typeof e)return e;if(ha(e))return g;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var r=ve.test(e);return r||we.test(e)?pt(e.slice(2),r?2:8):ye.test(e)?g:+e}function ma(e){return Nn(e,ja(e))}function wa(e){return null==e?"":un(e)}var ba=jn((function(e,t){if(Ss(t)||Wo(t))Nn(t,Ca(t),e);else for(var r in t)Le.call(t,r)&&ti(e,r,t[r])})),_a=jn((function(e,t){Nn(t,ja(t),e)})),Ea=jn((function(e,t,r,i){Nn(t,ja(t),e,i)})),Ia=jn((function(e,t,r,i){Nn(t,Ca(t),e,i)})),Sa=is(oi);var Pa=Ji((function(e,t){e=xe(e);var r=-1,i=t.length,s=i>2?t[2]:n;for(s&&bs(t[0],t[1],s)&&(i=1);++r1),t})),Nn(e,ss(e),r),i&&(r=ci(r,7,ts));for(var n=t.length;n--;)pn(r,t[n]);return r}));var Da=is((function(e,t){return null==e?{}:function(e,t){return Fi(e,t,(function(t,r){return Ta(e,r)}))}(e,t)}));function Ua(e,t){if(null==e)return{};var r=Mt(ss(e),(function(e){return[e]}));return t=hs(t),Fi(e,r,(function(e,r){return t(e,r[0])}))}var $a=Qn(Ca),qa=Qn(ja);function za(e){return null==e?[]:er(e,Ca(e))}var Ha=Dn((function(e,t,r){return t=t.toLowerCase(),e+(r?Ka(t):t)}));function Ka(e){return Qa(wa(e).toLowerCase())}function Ba(e){return(e=wa(e))&&e.replace(_e,nr).replace(tt,"")}var Fa=Dn((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Va=Dn((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Wa=Ln("toLowerCase");var Ga=Dn((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Ya=Dn((function(e,t,r){return e+(r?" ":"")+Qa(t)}));var Ja=Dn((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Qa=Ln("toUpperCase");function Xa(e,t,r){return e=wa(e),(t=r?n:t)===n?function(e){return st.test(e)}(e)?function(e){return e.match(it)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Za=Ji((function(e,t){try{return xt(e,n,t)}catch(r){return Qo(r)?r:new Se(r)}})),ec=is((function(e,t){return At(t,(function(t){t=Ds(t),si(e,t,Ro(e[t],e))})),e}));function tc(e){return function(){return e}}var rc=qn(),ic=qn(!0);function nc(e){return e}function sc(e){return Mi("function"==typeof e?e:ci(e,1))}var oc=Ji((function(e,t){return function(r){return Ri(r,e,t)}})),ac=Ji((function(e,t){return function(r){return Ri(e,r,t)}}));function cc(e,t,r){var i=Ca(t),n=Ei(t,i);null!=r||ta(t)&&(n.length||!i.length)||(r=t,t=e,e=this,n=Ei(t,Ca(t)));var s=!(ta(r)&&"chain"in r&&!r.chain),o=Xo(e);return At(n,(function(r){var i=t[r];e[r]=i,o&&(e.prototype[r]=function(){var t=this.__chain__;if(s||t){var r=e(this.__wrapped__);return(r.__actions__=Rn(this.__actions__)).push({func:i,args:arguments,thisArg:e}),r.__chain__=t,r}return i.apply(e,Lt([this.value()],arguments))})})),e}function hc(){}var uc=Bn(Mt),lc=Bn(Nt),pc=Bn($t);function dc(e){return _s(e)?Wt(Ds(e)):function(e){return function(t){return Ii(t,e)}}(e)}var fc=Vn(),gc=Vn(!0);function yc(){return[]}function vc(){return!1}var mc=Kn((function(e,t){return e+t}),0),wc=Yn("ceil"),bc=Kn((function(e,t){return e/t}),1),_c=Yn("floor");var Ec,Ic=Kn((function(e,t){return e*t}),1),Sc=Yn("round"),Pc=Kn((function(e,t){return e-t}),0);return qr.after=function(e,t){if("function"!=typeof t)throw new Re(s);return e=ga(e),function(){if(--e<1)return t.apply(this,arguments)}},qr.ary=To,qr.assign=ba,qr.assignIn=_a,qr.assignInWith=Ea,qr.assignWith=Ia,qr.at=Sa,qr.before=Ao,qr.bind=Ro,qr.bindAll=ec,qr.bindKey=No,qr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Fo(e)?e:[e]},qr.chain=po,qr.chunk=function(e,t,r){t=(r?bs(e,t,r):t===n)?1:mr(ga(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var o=0,a=0,c=i(ft(s/t));os?0:s+r),(i=i===n||i>s?s:ga(i))<0&&(i+=s),i=r>i?0:ya(i);r>>0)?(e=wa(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=un(t))&&ar(e)?En(fr(e),0,r):e.split(t,r):[]},qr.spread=function(e,t){if("function"!=typeof e)throw new Re(s);return t=null==t?0:mr(ga(t),0),Ji((function(r){var i=r[t],n=En(r,0,t);return i&&Lt(n,i),xt(e,this,n)}))},qr.tail=function(e){var t=null==e?0:e.length;return t?nn(e,1,t):[]},qr.take=function(e,t,r){return e&&e.length?nn(e,0,(t=r||t===n?1:ga(t))<0?0:t):[]},qr.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?nn(e,(t=i-(t=r||t===n?1:ga(t)))<0?0:t,i):[]},qr.takeRightWhile=function(e,t){return e&&e.length?fn(e,hs(t,3),!1,!0):[]},qr.takeWhile=function(e,t){return e&&e.length?fn(e,hs(t,3)):[]},qr.tap=function(e,t){return t(e),e},qr.throttle=function(e,t,r){var i=!0,n=!0;if("function"!=typeof e)throw new Re(s);return ta(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),Co(e,t,{leading:i,maxWait:t,trailing:n})},qr.thru=fo,qr.toArray=da,qr.toPairs=$a,qr.toPairsIn=qa,qr.toPath=function(e){return Fo(e)?Mt(e,Ds):ha(e)?[e]:Rn(Ls(wa(e)))},qr.toPlainObject=ma,qr.transform=function(e,t,r){var i=Fo(e),n=i||Yo(e)||ua(e);if(t=hs(t,4),null==r){var s=e&&e.constructor;r=n?i?new s:[]:ta(e)&&Xo(s)?zr(We(e)):{}}return(n?At:bi)(e,(function(e,i,n){return t(r,e,i,n)})),r},qr.unary=function(e){return To(e,1)},qr.union=to,qr.unionBy=ro,qr.unionWith=io,qr.uniq=function(e){return e&&e.length?ln(e):[]},qr.uniqBy=function(e,t){return e&&e.length?ln(e,hs(t,2)):[]},qr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ln(e,n,t):[]},qr.unset=function(e,t){return null==e||pn(e,t)},qr.unzip=no,qr.unzipWith=so,qr.update=function(e,t,r){return null==e?e:dn(e,t,wn(r))},qr.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:dn(e,t,wn(r),i)},qr.values=za,qr.valuesIn=function(e){return null==e?[]:er(e,ja(e))},qr.without=oo,qr.words=Xa,qr.wrap=function(e,t){return Uo(wn(t),e)},qr.xor=ao,qr.xorBy=co,qr.xorWith=ho,qr.zip=uo,qr.zipObject=function(e,t){return vn(e||[],t||[],ti)},qr.zipObjectDeep=function(e,t){return vn(e||[],t||[],Zi)},qr.zipWith=lo,qr.entries=$a,qr.entriesIn=qa,qr.extend=_a,qr.extendWith=Ea,cc(qr,qr),qr.add=mc,qr.attempt=Za,qr.camelCase=Ha,qr.capitalize=Ka,qr.ceil=wc,qr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=va(r))==r?r:0),t!==n&&(t=(t=va(t))==t?t:0),ai(va(e),t,r)},qr.clone=function(e){return ci(e,4)},qr.cloneDeep=function(e){return ci(e,5)},qr.cloneDeepWith=function(e,t){return ci(e,5,t="function"==typeof t?t:n)},qr.cloneWith=function(e,t){return ci(e,4,t="function"==typeof t?t:n)},qr.conformsTo=function(e,t){return null==t||hi(e,t,Ca(t))},qr.deburr=Ba,qr.defaultTo=function(e,t){return null==e||e!=e?t:e},qr.divide=bc,qr.endsWith=function(e,t,r){e=wa(e),t=un(t);var i=e.length,s=r=r===n?i:ai(ga(r),0,i);return(r-=t.length)>=0&&e.slice(r,s)==t},qr.eq=zo,qr.escape=function(e){return(e=wa(e))&&Q.test(e)?e.replace(Y,sr):e},qr.escapeRegExp=function(e){return(e=wa(e))&&se.test(e)?e.replace(ne,"\\$&"):e},qr.every=function(e,t,r){var i=Fo(e)?Nt:fi;return r&&bs(e,t,r)&&(t=n),i(e,hs(t,3))},qr.find=vo,qr.findIndex=Ks,qr.findKey=function(e,t){return zt(e,hs(t,3),bi)},qr.findLast=mo,qr.findLastIndex=Bs,qr.findLastKey=function(e,t){return zt(e,hs(t,3),_i)},qr.floor=_c,qr.forEach=wo,qr.forEachRight=bo,qr.forIn=function(e,t){return null==e?e:mi(e,hs(t,3),ja)},qr.forInRight=function(e,t){return null==e?e:wi(e,hs(t,3),ja)},qr.forOwn=function(e,t){return e&&bi(e,hs(t,3))},qr.forOwnRight=function(e,t){return e&&_i(e,hs(t,3))},qr.get=xa,qr.gt=Ho,qr.gte=Ko,qr.has=function(e,t){return null!=e&&ys(e,t,xi)},qr.hasIn=Ta,qr.head=Vs,qr.identity=nc,qr.includes=function(e,t,r,i){e=Wo(e)?e:za(e),r=r&&!i?ga(r):0;var n=e.length;return r<0&&(r=mr(n+r,0)),ca(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&Kt(e,t,r)>-1},qr.indexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=null==r?0:ga(r);return n<0&&(n=mr(i+n,0)),Kt(e,t,n)},qr.inRange=function(e,t,r){return t=fa(t),r===n?(r=t,t=0):r=fa(r),function(e,t,r){return e>=wr(t,r)&&e=-9007199254740991&&e<=f},qr.isSet=aa,qr.isString=ca,qr.isSymbol=ha,qr.isTypedArray=ua,qr.isUndefined=function(e){return e===n},qr.isWeakMap=function(e){return ra(e)&&gs(e)==j},qr.isWeakSet=function(e){return ra(e)&&"[object WeakSet]"==Pi(e)},qr.join=function(e,t){return null==e?"":qt.call(e,t)},qr.kebabCase=Fa,qr.last=Js,qr.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var s=i;return r!==n&&(s=(s=ga(r))<0?mr(i+s,0):wr(s,i-1)),t==t?function(e,t,r){for(var i=r+1;i--;)if(e[i]===t)return i;return i}(e,t,s):Ht(e,Ft,s,!0)},qr.lowerCase=Va,qr.lowerFirst=Wa,qr.lt=la,qr.lte=pa,qr.max=function(e){return e&&e.length?gi(e,nc,Oi):n},qr.maxBy=function(e,t){return e&&e.length?gi(e,hs(t,2),Oi):n},qr.mean=function(e){return Vt(e,nc)},qr.meanBy=function(e,t){return Vt(e,hs(t,2))},qr.min=function(e){return e&&e.length?gi(e,nc,Ui):n},qr.minBy=function(e,t){return e&&e.length?gi(e,hs(t,2),Ui):n},qr.stubArray=yc,qr.stubFalse=vc,qr.stubObject=function(){return{}},qr.stubString=function(){return""},qr.stubTrue=function(){return!0},qr.multiply=Ic,qr.nth=function(e,t){return e&&e.length?Ki(e,ga(t)):n},qr.noConflict=function(){return gt._===this&&(gt._=ze),this},qr.noop=hc,qr.now=xo,qr.pad=function(e,t,r){e=wa(e);var i=(t=ga(t))?dr(e):0;if(!t||i>=t)return e;var n=(t-i)/2;return Fn(yt(n),r)+e+Fn(ft(n),r)},qr.padEnd=function(e,t,r){e=wa(e);var i=(t=ga(t))?dr(e):0;return t&&it){var i=e;e=t,t=i}if(r||e%1||t%1){var s=Er();return wr(e+s*(t-e+lt("1e-"+((s+"").length-1))),t)}return Gi(e,t)},qr.reduce=function(e,t,r){var i=Fo(e)?Dt:Yt,n=arguments.length<3;return i(e,hs(t,4),r,n,pi)},qr.reduceRight=function(e,t,r){var i=Fo(e)?Ut:Yt,n=arguments.length<3;return i(e,hs(t,4),r,n,di)},qr.repeat=function(e,t,r){return t=(r?bs(e,t,r):t===n)?1:ga(t),Yi(wa(e),t)},qr.replace=function(){var e=arguments,t=wa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},qr.result=function(e,t,r){var i=-1,s=(t=bn(t,e)).length;for(s||(s=1,e=n);++if)return[];var r=y,i=wr(e,y);t=hs(t),e-=y;for(var n=Qt(i,t);++r=o)return e;var c=r-dr(i);if(c<1)return i;var h=a?En(a,0,c).join(""):e.slice(0,c);if(s===n)return h+i;if(a&&(c+=h.length-c),oa(s)){if(e.slice(c).search(s)){var u,l=h;for(s.global||(s=Te(s.source,wa(ge.exec(s))+"g")),s.lastIndex=0;u=s.exec(l);)var p=u.index;h=h.slice(0,p===n?c:p)}}else if(e.indexOf(un(s),c)!=c){var d=h.lastIndexOf(s);d>-1&&(h=h.slice(0,d))}return h+i},qr.unescape=function(e){return(e=wa(e))&&J.test(e)?e.replace(G,yr):e},qr.uniqueId=function(e){var t=++De;return wa(e)+t},qr.upperCase=Ja,qr.upperFirst=Qa,qr.each=wo,qr.eachRight=bo,qr.first=Vs,cc(qr,(Ec={},bi(qr,(function(e,t){Le.call(qr.prototype,t)||(Ec[t]=e)})),Ec),{chain:!1}),qr.VERSION="4.17.21",At(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){qr[e].placeholder=qr})),At(["drop","take"],(function(e,t){Br.prototype[e]=function(r){r=r===n?1:mr(ga(r),0);var i=this.__filtered__&&!t?new Br(this):this.clone();return i.__filtered__?i.__takeCount__=wr(r,i.__takeCount__):i.__views__.push({size:wr(r,y),type:e+(i.__dir__<0?"Right":"")}),i},Br.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),At(["filter","map","takeWhile"],(function(e,t){var r=t+1,i=1==r||3==r;Br.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:hs(e,3),type:r}),t.__filtered__=t.__filtered__||i,t}})),At(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Br.prototype[e]=function(){return this[r](1).value()[0]}})),At(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Br.prototype[e]=function(){return this.__filtered__?new Br(this):this[r](1)}})),Br.prototype.compact=function(){return this.filter(nc)},Br.prototype.find=function(e){return this.filter(e).head()},Br.prototype.findLast=function(e){return this.reverse().find(e)},Br.prototype.invokeMap=Ji((function(e,t){return"function"==typeof e?new Br(this):this.map((function(r){return Ri(r,e,t)}))})),Br.prototype.reject=function(e){return this.filter(Lo(hs(e)))},Br.prototype.slice=function(e,t){e=ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Br(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},Br.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Br.prototype.toArray=function(){return this.take(y)},bi(Br.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),s=qr[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);s&&(qr.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,c=t instanceof Br,h=a[0],u=c||Fo(t),l=function(e){var t=s.apply(qr,Lt([e],a));return i&&p?t[0]:t};u&&r&&"function"==typeof h&&1!=h.length&&(c=u=!1);var p=this.__chain__,d=!!this.__actions__.length,f=o&&!p,g=c&&!d;if(!o&&u){t=g?t:new Br(this);var y=e.apply(t,a);return y.__actions__.push({func:fo,args:[l],thisArg:n}),new Kr(y,p)}return f&&g?e.apply(this,a):(y=this.thru(l),f?i?y.value()[0]:y.value():y)})})),At(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ne[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);qr.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var n=this.value();return t.apply(Fo(n)?n:[],e)}return this[r]((function(r){return t.apply(Fo(r)?r:[],e)}))}})),bi(Br.prototype,(function(e,t){var r=qr[t];if(r){var i=r.name+"";Le.call(Nr,i)||(Nr[i]=[]),Nr[i].push({name:t,func:r})}})),Nr[zn(n,2).name]=[{name:"wrapper",func:n}],Br.prototype.clone=function(){var e=new Br(this.__wrapped__);return e.__actions__=Rn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Rn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Rn(this.__views__),e},Br.prototype.reverse=function(){if(this.__filtered__){var e=new Br(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Br.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Fo(e),i=t<0,n=r?e.length:0,s=function(e,t,r){var i=-1,n=r.length;for(;++i=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},qr.prototype.plant=function(e){for(var t,r=this;r instanceof Hr;){var i=$s(r);i.__index__=0,i.__values__=n,t?s.__wrapped__=i:t=i;var s=i;r=r.__wrapped__}return s.__wrapped__=e,t},qr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Br){var t=e;return this.__actions__.length&&(t=new Br(this)),(t=t.reverse()).__actions__.push({func:fo,args:[eo],thisArg:n}),new Kr(t,this.__chain__)}return this.thru(eo)},qr.prototype.toJSON=qr.prototype.valueOf=qr.prototype.value=function(){return gn(this.__wrapped__,this.__actions__)},qr.prototype.first=qr.prototype.head,Xe&&(qr.prototype[Xe]=function(){return this}),qr}();gt._=vr,(i=function(){return vr}.call(t,r,t,e))===n||(e.exports=i)}.call(this)},686663:(e,t,r)=>{"use strict";const i=r(224280),n=r(530454),s=r(300528),o=r(473055),a=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function h(e,t){return t.encode?t.strict?i(e):encodeURIComponent(e):e}function u(e,t){return t.decode?n(e):e}function l(e){return Array.isArray(e)?e.sort():"object"==typeof e?l(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function d(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function f(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,i)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===i[e]&&(i[e]={}),i[e][t[1]]=r):i[e]=r};case"bracket":return(e,r,i)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==i[e]?i[e]=[].concat(i[e],r):i[e]=[r]:i[e]=r};case"colon-list-separator":return(e,r,i)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==i[e]?i[e]=[].concat(i[e],r):i[e]=[r]:i[e]=r};case"comma":case"separator":return(t,r,i)=>{const n="string"==typeof r&&r.includes(e.arrayFormatSeparator),s="string"==typeof r&&!n&&u(r,e).includes(e.arrayFormatSeparator);r=s?u(r,e):r;const o=n||s?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);i[t]=o};case"bracket-separator":return(t,r,i)=>{const n=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!n)return void(i[t]=r?u(r,e):r);const s=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==i[t]?i[t]=[].concat(i[t],s):i[t]=s};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),i=Object.create(null);if("string"!=typeof e)return i;if(!(e=e.trim().replace(/^[?#&]/,"")))return i;for(const n of e.split("&")){if(""===n)continue;let[e,o]=s(t.decode?n.replace(/\+/g," "):n,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?o:u(o,t),r(u(e,t),o,i)}for(const n of Object.keys(i)){const e=i[n];if("object"==typeof e&&null!==e)for(const r of Object.keys(e))e[r]=f(e[r],t);else i[n]=f(e,t)}return!1===t.sort?i:(!0===t.sort?Object.keys(i).sort():Object.keys(i).sort(t.sort)).reduce(((e,t)=>{const r=i[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=l(r):e[t]=r,e}),Object.create(null))}t.extract=d,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],i=function(e){switch(e.arrayFormat){case"index":return t=>(r,i)=>{const n=r.length;return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[h(t,e),"[",n,"]"].join("")]:[...r,[h(t,e),"[",h(n,e),"]=",h(i,e)].join("")]};case"bracket":return t=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[h(t,e),"[]"].join("")]:[...r,[h(t,e),"[]=",h(i,e)].join("")];case"colon-list-separator":return t=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[h(t,e),":list="].join("")]:[...r,[h(t,e),":list=",h(i,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(i,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?i:(n=null===n?"":n,0===i.length?[[h(r,e),t,h(n,e)].join("")]:[[i,h(n,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,h(t,e)]:[...r,[h(t,e),"=",h(i,e)].join("")]}}(t),n={};for(const o of Object.keys(e))r(o)||(n[o]=e[o]);const s=Object.keys(n);return!1!==t.sort&&s.sort(t.sort),s.map((r=>{const n=e[r];return void 0===n?"":null===n?h(r,t):Array.isArray(n)?0===n.length&&"bracket-separator"===t.arrayFormat?h(r,t)+"[]":n.reduce(i(r),[]).join("&"):h(r,t)+"="+h(n,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,i]=s(e,"#");return Object.assign({url:r.split("?")[0]||"",query:g(d(e),t)},t&&t.parseFragmentIdentifier&&i?{fragmentIdentifier:u(i,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[a]:!0},r);const i=p(e.url).split("?")[0]||"",n=t.extract(e.url),s=t.parse(n,{sort:!1}),o=Object.assign(s,e.query);let c=t.stringify(o,r);c&&(c=`?${c}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${r[a]?h(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${i}${c}${u}`},t.pick=(e,r,i)=>{i=Object.assign({parseFragmentIdentifier:!0,[a]:!1},i);const{url:n,query:s,fragmentIdentifier:c}=t.parseUrl(e,i);return t.stringifyUrl({url:n,query:o(s,r),fragmentIdentifier:c},i)},t.exclude=(e,r,i)=>{const n=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,n,i)}},40793:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}e.exports=function(e,r,i){var n=i&&i.stringify||t;if("object"==typeof e&&null!==e){var s=r.length+1;if(1===s)return e;var o=new Array(s);o[0]=n(e);for(var a=1;a-1?l:0,e.charCodeAt(d+1)){case 100:case 102:if(u>=c)break;if(null==r[u])break;l=c)break;if(null==r[u])break;l=c)break;if(void 0===r[u])break;l",l=d+2,d++;break}h+=n(r[u]),l=d+2,d++;break;case 115:if(u>=c)break;l{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},224280:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},44874:(e,t,r)=>{"use strict";const i=r(40793);e.exports=o;const n=function(){function e(e){return void 0!==e&&e}try{return"undefined"!=typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{},s={mapHttpRequest:p,mapHttpResponse:p,wrapRequestSerializer:d,wrapResponseSerializer:d,wrapErrorSerializer:d,req:p,res:p,err:function(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const r in e)void 0===t[r]&&(t[r]=e[r]);return t}};function o(e){(e=e||{}).browser=e.browser||{};const t=e.browser.transmit;if(t&&"function"!=typeof t.send)throw Error("pino: transmit option must have a send function");const r=e.browser.write||n;e.browser.write&&(e.browser.asObject=!0);const i=e.serializers||{},s=function(e,t){if(Array.isArray(e))return e.filter((function(e){return"!stdSerializers.err"!==e}));return!0===e&&Object.keys(t)}(e.browser.serialize,i);let p=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(p=!1);"function"==typeof r&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),!1===e.enabled&&(e.level="silent");const d=e.level||"info",g=Object.create(r);g.log||(g.log=f),Object.defineProperty(g,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(g,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,a(y,g,"error","log"),a(y,g,"fatal","error"),a(y,g,"warn","error"),a(y,g,"info","log"),a(y,g,"debug","log"),a(y,g,"trace","log")}});const y={transmit:t,serialize:s,asObject:e.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:l(e)};return g.levels=o.levels,g.level=d,g.setMaxListeners=g.getMaxListeners=g.emit=g.addListener=g.on=g.prependListener=g.once=g.prependOnceListener=g.removeListener=g.removeAllListeners=g.listeners=g.listenerCount=g.eventNames=g.write=g.flush=f,g.serializers=i,g._serialize=s,g._stdErrSerialize=p,g.child=function(r,n){if(!r)throw new Error("missing bindings for child Pino");n=n||{},s&&r.serializers&&(n.serializers=r.serializers);const o=n.serializers;if(s&&o){var a=Object.assign({},i,o),l=!0===e.browser.serialize?Object.keys(a):s;delete r.serializers,c([r],l,a,this._stdErrSerialize)}function p(e){this._childLevel=1+(0|e._childLevel),this.error=h(e,r,"error"),this.fatal=h(e,r,"fatal"),this.warn=h(e,r,"warn"),this.info=h(e,r,"info"),this.debug=h(e,r,"debug"),this.trace=h(e,r,"trace"),a&&(this.serializers=a,this._serialize=l),t&&(this._logEvent=u([].concat(e._logEvent.bindings,r)))}return p.prototype=this,new p(this)},t&&(g._logEvent=u()),g}function a(e,t,r,s){const a=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?f:a[r]?a[r]:n[r]||n[s]||f,function(e,t,r){if(!e.transmit&&t[r]===f)return;t[r]=(s=t[r],function(){const a=e.timestamp(),h=new Array(arguments.length),l=Object.getPrototypeOf&&Object.getPrototypeOf(this)===n?n:this;for(var p=0;p-1&&i in r&&(e[n][i]=r[i](e[n][i]))}function h(e,t,r){return function(){const i=new Array(1+arguments.length);i[0]=t;for(var n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(974512);function n(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function s(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function o(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function a(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function h(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function f(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),u(e/4294967296>>>0,t,r),u(e>>>0,t,r+4),t}function l(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),f(e>>>0,t,r),f(e/4294967296>>>0,t,r+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=n,t.writeInt16BE=n,t.writeUint16LE=s,t.writeInt16LE=s,t.readInt32BE=o,t.readUint32BE=a,t.readInt32LE=c,t.readUint32LE=h,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=f,t.writeInt32LE=f,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=o(e,t),i=o(e,t+4);return 4294967296*r+i-4294967296*(i>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*a(e,t)+a(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 4294967296*c(e,t+4)+r-4294967296*(r>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=h(e,t);return 4294967296*h(e,t+4)+r},t.writeUint64BE=d,t.writeInt64BE=d,t.writeUint64LE=l,t.writeInt64LE=l,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var i=0,n=1,s=e/8+r-1;s>=r;s--)i+=t[s]*n,n*=256;return i},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var i=0,n=1,s=r;s=n;o--)r[o]=t/s&255,s*=256;return r},t.writeUintLE=function(e,t,r,n){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===n&&(n=0),e%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!i.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var s=1,o=n;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(230972),n=r(276228);function s(e,t,r){for(var n=1634760805,s=857760878,o=2036477234,a=1797285236,c=r[3]<<24|r[2]<<16|r[1]<<8|r[0],h=r[7]<<24|r[6]<<16|r[5]<<8|r[4],u=r[11]<<24|r[10]<<16|r[9]<<8|r[8],f=r[15]<<24|r[14]<<16|r[13]<<8|r[12],d=r[19]<<24|r[18]<<16|r[17]<<8|r[16],l=r[23]<<24|r[22]<<16|r[21]<<8|r[20],p=r[27]<<24|r[26]<<16|r[25]<<8|r[24],g=r[31]<<24|r[30]<<16|r[29]<<8|r[28],b=t[3]<<24|t[2]<<16|t[1]<<8|t[0],y=t[7]<<24|t[6]<<16|t[5]<<8|t[4],v=t[11]<<24|t[10]<<16|t[9]<<8|t[8],m=t[15]<<24|t[14]<<16|t[13]<<8|t[12],w=n,_=s,E=o,S=a,I=c,P=h,O=u,A=f,x=d,R=l,T=p,N=g,M=b,C=y,j=v,q=m,k=0;k<20;k+=2)I=(I^=x=x+(M=(M^=w=w+I|0)>>>16|M<<16)|0)>>>20|I<<12,P=(P^=R=R+(C=(C^=_=_+P|0)>>>16|C<<16)|0)>>>20|P<<12,O=(O^=T=T+(j=(j^=E=E+O|0)>>>16|j<<16)|0)>>>20|O<<12,A=(A^=N=N+(q=(q^=S=S+A|0)>>>16|q<<16)|0)>>>20|A<<12,O=(O^=T=T+(j=(j^=E=E+O|0)>>>24|j<<8)|0)>>>25|O<<7,A=(A^=N=N+(q=(q^=S=S+A|0)>>>24|q<<8)|0)>>>25|A<<7,P=(P^=R=R+(C=(C^=_=_+P|0)>>>24|C<<8)|0)>>>25|P<<7,I=(I^=x=x+(M=(M^=w=w+I|0)>>>24|M<<8)|0)>>>25|I<<7,P=(P^=T=T+(q=(q^=w=w+P|0)>>>16|q<<16)|0)>>>20|P<<12,O=(O^=N=N+(M=(M^=_=_+O|0)>>>16|M<<16)|0)>>>20|O<<12,A=(A^=x=x+(C=(C^=E=E+A|0)>>>16|C<<16)|0)>>>20|A<<12,I=(I^=R=R+(j=(j^=S=S+I|0)>>>16|j<<16)|0)>>>20|I<<12,A=(A^=x=x+(C=(C^=E=E+A|0)>>>24|C<<8)|0)>>>25|A<<7,I=(I^=R=R+(j=(j^=S=S+I|0)>>>24|j<<8)|0)>>>25|I<<7,O=(O^=N=N+(M=(M^=_=_+O|0)>>>24|M<<8)|0)>>>25|O<<7,P=(P^=T=T+(q=(q^=w=w+P|0)>>>24|q<<8)|0)>>>25|P<<7;i.writeUint32LE(w+n|0,e,0),i.writeUint32LE(_+s|0,e,4),i.writeUint32LE(E+o|0,e,8),i.writeUint32LE(S+a|0,e,12),i.writeUint32LE(I+c|0,e,16),i.writeUint32LE(P+h|0,e,20),i.writeUint32LE(O+u|0,e,24),i.writeUint32LE(A+f|0,e,28),i.writeUint32LE(x+d|0,e,32),i.writeUint32LE(R+l|0,e,36),i.writeUint32LE(T+p|0,e,40),i.writeUint32LE(N+g|0,e,44),i.writeUint32LE(M+b|0,e,48),i.writeUint32LE(C+y|0,e,52),i.writeUint32LE(j+v|0,e,56),i.writeUint32LE(q+m|0,e,60)}function o(e,t,r,i,o){if(void 0===o&&(o=0),32!==e.length)throw new Error("ChaCha: key size must be 32 bytes");if(i.length>>=8,t++;if(i>0)throw new Error("ChaCha: counter overflow")}t.streamXOR=o,t.stream=function(e,t,r,i){return void 0===i&&(i=0),n.wipe(r),o(e,t,r,r,i)}},851612:(e,t,r)=>{"use strict";var i=r(929918),n=r(777360),s=r(276228),o=r(230972),a=r(926452);t.J4=32,t.PX=12,t.iW=16;var c=new Uint8Array(16),h=function(){function e(e){if(this.nonceLength=t.PX,this.tagLength=t.iW,e.length!==t.J4)throw new 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 new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(e,o.length-e.length);var a=new Uint8Array(32);i.stream(this._key,o,a,4);var c,h=t.length+this.tagLength;if(n){if(n.length!==h)throw new Error("ChaCha20Poly1305: incorrect destination length");c=n}else c=new Uint8Array(h);return i.streamXOR(this._key,o,t,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),a,c.subarray(0,c.length-this.tagLength),r),s.wipe(o),c},e.prototype.open=function(e,t,r,n){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&a.update(c.subarray(i.length%16))),a.update(r),r.length%16>0&&a.update(c.subarray(r.length%16));var h=new Uint8Array(8);i&&o.writeUint64LE(i.length,h),a.update(h),o.writeUint64LE(r.length,h),a.update(h);for(var u=a.digest(),f=0;f{"use strict";function r(e,t){if(e.length!==t.length)return 0;for(var r=0,i=0;i>>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)}},934904:(e,t,r)=>{"use strict";t._S=t.K=t.TP=t.wE=t.Ee=void 0;const i=r(337052),n=r(864974),s=r(276228);function o(e){const t=new Float64Array(16);if(e)for(let r=0;r>16&1),r[t-1]&=65535;r[15]=i[15]-32767-(r[14]>>16&1);const e=r[15]>>16&1;r[14]&=65535,b(i,r,1-e)}for(let n=0;n<16;n++)e[2*n]=255&i[n],e[2*n+1]=i[n]>>8}function v(e,t){let r=0;for(let i=0;i<32;i++)r|=e[i]^t[i];return(1&r-1>>>8)-1}function m(e,t){const r=new Uint8Array(32),i=new Uint8Array(32);return y(r,e),y(i,t),v(r,i)}function w(e){const t=new Uint8Array(32);return y(t,e),1&t[0]}function _(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]+r[i]}function E(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]-r[i]}function S(e,t,r){let i,n,s=0,o=0,a=0,c=0,h=0,u=0,f=0,d=0,l=0,p=0,g=0,b=0,y=0,v=0,m=0,w=0,_=0,E=0,S=0,I=0,P=0,O=0,A=0,x=0,R=0,T=0,N=0,M=0,C=0,j=0,q=0,k=r[0],L=r[1],D=r[2],U=r[3],$=r[4],z=r[5],B=r[6],H=r[7],K=r[8],F=r[9],V=r[10],W=r[11],G=r[12],J=r[13],Y=r[14],X=r[15];i=t[0],s+=i*k,o+=i*L,a+=i*D,c+=i*U,h+=i*$,u+=i*z,f+=i*B,d+=i*H,l+=i*K,p+=i*F,g+=i*V,b+=i*W,y+=i*G,v+=i*J,m+=i*Y,w+=i*X,i=t[1],o+=i*k,a+=i*L,c+=i*D,h+=i*U,u+=i*$,f+=i*z,d+=i*B,l+=i*H,p+=i*K,g+=i*F,b+=i*V,y+=i*W,v+=i*G,m+=i*J,w+=i*Y,_+=i*X,i=t[2],a+=i*k,c+=i*L,h+=i*D,u+=i*U,f+=i*$,d+=i*z,l+=i*B,p+=i*H,g+=i*K,b+=i*F,y+=i*V,v+=i*W,m+=i*G,w+=i*J,_+=i*Y,E+=i*X,i=t[3],c+=i*k,h+=i*L,u+=i*D,f+=i*U,d+=i*$,l+=i*z,p+=i*B,g+=i*H,b+=i*K,y+=i*F,v+=i*V,m+=i*W,w+=i*G,_+=i*J,E+=i*Y,S+=i*X,i=t[4],h+=i*k,u+=i*L,f+=i*D,d+=i*U,l+=i*$,p+=i*z,g+=i*B,b+=i*H,y+=i*K,v+=i*F,m+=i*V,w+=i*W,_+=i*G,E+=i*J,S+=i*Y,I+=i*X,i=t[5],u+=i*k,f+=i*L,d+=i*D,l+=i*U,p+=i*$,g+=i*z,b+=i*B,y+=i*H,v+=i*K,m+=i*F,w+=i*V,_+=i*W,E+=i*G,S+=i*J,I+=i*Y,P+=i*X,i=t[6],f+=i*k,d+=i*L,l+=i*D,p+=i*U,g+=i*$,b+=i*z,y+=i*B,v+=i*H,m+=i*K,w+=i*F,_+=i*V,E+=i*W,S+=i*G,I+=i*J,P+=i*Y,O+=i*X,i=t[7],d+=i*k,l+=i*L,p+=i*D,g+=i*U,b+=i*$,y+=i*z,v+=i*B,m+=i*H,w+=i*K,_+=i*F,E+=i*V,S+=i*W,I+=i*G,P+=i*J,O+=i*Y,A+=i*X,i=t[8],l+=i*k,p+=i*L,g+=i*D,b+=i*U,y+=i*$,v+=i*z,m+=i*B,w+=i*H,_+=i*K,E+=i*F,S+=i*V,I+=i*W,P+=i*G,O+=i*J,A+=i*Y,x+=i*X,i=t[9],p+=i*k,g+=i*L,b+=i*D,y+=i*U,v+=i*$,m+=i*z,w+=i*B,_+=i*H,E+=i*K,S+=i*F,I+=i*V,P+=i*W,O+=i*G,A+=i*J,x+=i*Y,R+=i*X,i=t[10],g+=i*k,b+=i*L,y+=i*D,v+=i*U,m+=i*$,w+=i*z,_+=i*B,E+=i*H,S+=i*K,I+=i*F,P+=i*V,O+=i*W,A+=i*G,x+=i*J,R+=i*Y,T+=i*X,i=t[11],b+=i*k,y+=i*L,v+=i*D,m+=i*U,w+=i*$,_+=i*z,E+=i*B,S+=i*H,I+=i*K,P+=i*F,O+=i*V,A+=i*W,x+=i*G,R+=i*J,T+=i*Y,N+=i*X,i=t[12],y+=i*k,v+=i*L,m+=i*D,w+=i*U,_+=i*$,E+=i*z,S+=i*B,I+=i*H,P+=i*K,O+=i*F,A+=i*V,x+=i*W,R+=i*G,T+=i*J,N+=i*Y,M+=i*X,i=t[13],v+=i*k,m+=i*L,w+=i*D,_+=i*U,E+=i*$,S+=i*z,I+=i*B,P+=i*H,O+=i*K,A+=i*F,x+=i*V,R+=i*W,T+=i*G,N+=i*J,M+=i*Y,C+=i*X,i=t[14],m+=i*k,w+=i*L,_+=i*D,E+=i*U,S+=i*$,I+=i*z,P+=i*B,O+=i*H,A+=i*K,x+=i*F,R+=i*V,T+=i*W,N+=i*G,M+=i*J,C+=i*Y,j+=i*X,i=t[15],w+=i*k,_+=i*L,E+=i*D,S+=i*U,I+=i*$,P+=i*z,O+=i*B,A+=i*H,x+=i*K,R+=i*F,T+=i*V,N+=i*W,M+=i*G,C+=i*J,j+=i*Y,q+=i*X,s+=38*_,o+=38*E,a+=38*S,c+=38*I,h+=38*P,u+=38*O,f+=38*A,d+=38*x,l+=38*R,p+=38*T,g+=38*N,b+=38*M,y+=38*C,v+=38*j,m+=38*q,n=1,i=s+n+65535,n=Math.floor(i/65536),s=i-65536*n,i=o+n+65535,n=Math.floor(i/65536),o=i-65536*n,i=a+n+65535,n=Math.floor(i/65536),a=i-65536*n,i=c+n+65535,n=Math.floor(i/65536),c=i-65536*n,i=h+n+65535,n=Math.floor(i/65536),h=i-65536*n,i=u+n+65535,n=Math.floor(i/65536),u=i-65536*n,i=f+n+65535,n=Math.floor(i/65536),f=i-65536*n,i=d+n+65535,n=Math.floor(i/65536),d=i-65536*n,i=l+n+65535,n=Math.floor(i/65536),l=i-65536*n,i=p+n+65535,n=Math.floor(i/65536),p=i-65536*n,i=g+n+65535,n=Math.floor(i/65536),g=i-65536*n,i=b+n+65535,n=Math.floor(i/65536),b=i-65536*n,i=y+n+65535,n=Math.floor(i/65536),y=i-65536*n,i=v+n+65535,n=Math.floor(i/65536),v=i-65536*n,i=m+n+65535,n=Math.floor(i/65536),m=i-65536*n,i=w+n+65535,n=Math.floor(i/65536),w=i-65536*n,s+=n-1+37*(n-1),n=1,i=s+n+65535,n=Math.floor(i/65536),s=i-65536*n,i=o+n+65535,n=Math.floor(i/65536),o=i-65536*n,i=a+n+65535,n=Math.floor(i/65536),a=i-65536*n,i=c+n+65535,n=Math.floor(i/65536),c=i-65536*n,i=h+n+65535,n=Math.floor(i/65536),h=i-65536*n,i=u+n+65535,n=Math.floor(i/65536),u=i-65536*n,i=f+n+65535,n=Math.floor(i/65536),f=i-65536*n,i=d+n+65535,n=Math.floor(i/65536),d=i-65536*n,i=l+n+65535,n=Math.floor(i/65536),l=i-65536*n,i=p+n+65535,n=Math.floor(i/65536),p=i-65536*n,i=g+n+65535,n=Math.floor(i/65536),g=i-65536*n,i=b+n+65535,n=Math.floor(i/65536),b=i-65536*n,i=y+n+65535,n=Math.floor(i/65536),y=i-65536*n,i=v+n+65535,n=Math.floor(i/65536),v=i-65536*n,i=m+n+65535,n=Math.floor(i/65536),m=i-65536*n,i=w+n+65535,n=Math.floor(i/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]=h,e[5]=u,e[6]=f,e[7]=d,e[8]=l,e[9]=p,e[10]=g,e[11]=b,e[12]=y,e[13]=v,e[14]=m,e[15]=w}function I(e,t){S(e,t,t)}function P(e,t){const r=o();let i;for(i=0;i<16;i++)r[i]=t[i];for(i=253;i>=0;i--)I(r,r),2!==i&&4!==i&&S(r,r,t);for(i=0;i<16;i++)e[i]=r[i]}function O(e,t){const r=o(),i=o(),n=o(),s=o(),a=o(),c=o(),h=o(),f=o(),d=o();E(r,e[1],e[0]),E(d,t[1],t[0]),S(r,r,d),_(i,e[0],e[1]),_(d,t[0],t[1]),S(i,i,d),S(n,e[3],t[3]),S(n,n,u),S(s,e[2],t[2]),_(s,s,s),E(a,i,r),E(c,s,n),_(h,s,n),_(f,i,r),S(e[0],a,c),S(e[1],f,h),S(e[2],h,c),S(e[3],a,f)}function A(e,t,r){for(let i=0;i<4;i++)b(e[i],t[i],r)}function x(e,t){const r=o(),i=o(),n=o();P(n,t[2]),S(r,t[0],n),S(i,t[1],n),y(e,i),e[31]^=w(r)<<7}function R(e,t,r){p(e[0],a),p(e[1],c),p(e[2],c),p(e[3],a);for(let i=255;i>=0;--i){const n=r[i/8|0]>>(7&i)&1;A(e,t,n),O(t,e),O(e,e),A(e,t,n)}}function T(e,t){const r=[o(),o(),o(),o()];p(r[0],f),p(r[1],d),p(r[2],c),S(r[3],f,d),R(e,r,t)}function N(e){if(e.length!==t.TP)throw new Error(`ed25519: seed must be ${t.TP} bytes`);const r=(0,n.hash)(e);r[0]&=248,r[31]&=127,r[31]|=64;const i=new Uint8Array(32),s=[o(),o(),o(),o()];T(s,r),x(i,s);const a=new Uint8Array(64);return a.set(e),a.set(i,32),{publicKey:i,secretKey:a}}t.K=N;const M=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 C(e,t){let r,i,n,s;for(i=63;i>=32;--i){for(r=0,n=i-32,s=i-12;n>4)*M[n],r=t[n]>>8,t[n]&=255;for(n=0;n<32;n++)t[n]-=r*M[n];for(i=0;i<32;i++)t[i+1]+=t[i]>>8,e[i]=255&t[i]}function j(e){const t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let r=0;r<64;r++)e[r]=0;C(e,t)}function q(e,t){const r=o(),i=o(),n=o(),s=o(),u=o(),f=o(),d=o();return p(e[2],c),function(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(e[1],t),I(n,e[1]),S(s,n,h),E(n,n,e[2]),_(s,e[2],s),I(u,s),I(f,u),S(d,f,u),S(r,d,n),S(r,r,s),function(e,t){const r=o();let i;for(i=0;i<16;i++)r[i]=t[i];for(i=250;i>=0;i--)I(r,r),1!==i&&S(r,r,t);for(i=0;i<16;i++)e[i]=r[i]}(r,r),S(r,r,n),S(r,r,s),S(r,r,s),S(e[0],r,s),I(i,e[0]),S(i,i,s),m(i,n)&&S(e[0],e[0],l),I(i,e[0]),S(i,i,s),m(i,n)?-1:(w(e[0])===t[31]>>7&&E(e[0],a,e[0]),S(e[3],e[0],e[1]),0)}t._S=function(e,t){const r=new Float64Array(64),i=[o(),o(),o(),o()],s=(0,n.hash)(e.subarray(0,32));s[0]&=248,s[31]&=127,s[31]|=64;const a=new Uint8Array(64);a.set(s.subarray(32),32);const c=new n.SHA512;c.update(a.subarray(32)),c.update(t);const h=c.digest();c.clean(),j(h),T(i,h),x(a,i),c.reset(),c.update(a.subarray(0,32)),c.update(e.subarray(32)),c.update(t);const u=c.digest();j(u);for(let n=0;n<32;n++)r[n]=h[n];for(let n=0;n<32;n++)for(let e=0;e<32;e++)r[n+e]+=u[n]*s[e];return C(a.subarray(32),r),a}},252670:(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}},616804:(e,t,r)=>{"use strict";var i=r(422412),n=r(276228),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 new 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{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(252670),n=r(926452),s=r(276228),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{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var r=65535&e,i=65535&t;return r*i+((e>>>16&65535)*i+r*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},777360:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(926452),n=r(276228);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]=8191&(r>>>13|i<<3);var n=e[4]|e[5]<<8;this._r[2]=7939&(i>>>10|n<<6);var s=e[6]|e[7]<<8;this._r[3]=8191&(n>>>7|s<<9);var o=e[8]|e[9]<<8;this._r[4]=255&(s>>>4|o<<12),this._r[5]=o>>>1&8190;var a=e[10]|e[11]<<8;this._r[6]=8191&(o>>>14|a<<2);var c=e[12]|e[13]<<8;this._r[7]=8065&(a>>>11|c<<5);var h=e[14]|e[15]<<8;this._r[8]=8191&(c>>>8|h<<8),this._r[9]=h>>>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],h=this._h[5],u=this._h[6],f=this._h[7],d=this._h[8],l=this._h[9],p=this._r[0],g=this._r[1],b=this._r[2],y=this._r[3],v=this._r[4],m=this._r[5],w=this._r[6],_=this._r[7],E=this._r[8],S=this._r[9];r>=16;){var I=e[t+0]|e[t+1]<<8;n+=8191&I;var P=e[t+2]|e[t+3]<<8;s+=8191&(I>>>13|P<<3);var O=e[t+4]|e[t+5]<<8;o+=8191&(P>>>10|O<<6);var A=e[t+6]|e[t+7]<<8;a+=8191&(O>>>7|A<<9);var x=e[t+8]|e[t+9]<<8;c+=8191&(A>>>4|x<<12),h+=x>>>1&8191;var R=e[t+10]|e[t+11]<<8;u+=8191&(x>>>14|R<<2);var T=e[t+12]|e[t+13]<<8;f+=8191&(R>>>11|T<<5);var N=e[t+14]|e[t+15]<<8,M=0,C=M;C+=n*p,C+=s*(5*S),C+=o*(5*E),C+=a*(5*_),M=(C+=c*(5*w))>>>13,C&=8191,C+=h*(5*m),C+=u*(5*v),C+=f*(5*y),C+=(d+=8191&(T>>>8|N<<8))*(5*b);var j=M+=(C+=(l+=N>>>5|i)*(5*g))>>>13;j+=n*g,j+=s*p,j+=o*(5*S),j+=a*(5*E),M=(j+=c*(5*_))>>>13,j&=8191,j+=h*(5*w),j+=u*(5*m),j+=f*(5*v),j+=d*(5*y),M+=(j+=l*(5*b))>>>13,j&=8191;var q=M;q+=n*b,q+=s*g,q+=o*p,q+=a*(5*S),M=(q+=c*(5*E))>>>13,q&=8191,q+=h*(5*_),q+=u*(5*w),q+=f*(5*m),q+=d*(5*v);var k=M+=(q+=l*(5*y))>>>13;k+=n*y,k+=s*b,k+=o*g,k+=a*p,M=(k+=c*(5*S))>>>13,k&=8191,k+=h*(5*E),k+=u*(5*_),k+=f*(5*w),k+=d*(5*m);var L=M+=(k+=l*(5*v))>>>13;L+=n*v,L+=s*y,L+=o*b,L+=a*g,M=(L+=c*p)>>>13,L&=8191,L+=h*(5*S),L+=u*(5*E),L+=f*(5*_),L+=d*(5*w);var D=M+=(L+=l*(5*m))>>>13;D+=n*m,D+=s*v,D+=o*y,D+=a*b,M=(D+=c*g)>>>13,D&=8191,D+=h*p,D+=u*(5*S),D+=f*(5*E),D+=d*(5*_);var U=M+=(D+=l*(5*w))>>>13;U+=n*w,U+=s*m,U+=o*v,U+=a*y,M=(U+=c*b)>>>13,U&=8191,U+=h*g,U+=u*p,U+=f*(5*S),U+=d*(5*E);var $=M+=(U+=l*(5*_))>>>13;$+=n*_,$+=s*w,$+=o*m,$+=a*v,M=($+=c*y)>>>13,$&=8191,$+=h*b,$+=u*g,$+=f*p,$+=d*(5*S);var z=M+=($+=l*(5*E))>>>13;z+=n*E,z+=s*_,z+=o*w,z+=a*m,M=(z+=c*v)>>>13,z&=8191,z+=h*y,z+=u*b,z+=f*g,z+=d*p;var B=M+=(z+=l*(5*S))>>>13;B+=n*S,B+=s*E,B+=o*_,B+=a*w,M=(B+=c*m)>>>13,B&=8191,B+=h*v,B+=u*y,B+=f*b,B+=d*g,n=C=8191&(M=(M=((M+=(B+=l*p)>>>13)<<2)+M|0)+(C&=8191)|0),s=j+=M>>>=13,o=q&=8191,a=k&=8191,c=L&=8191,h=D&=8191,u=U&=8191,f=$&=8191,d=z&=8191,l=B&=8191,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]=h,this._h[6]=u,this._h[7]=f,this._h[8]=d,this._h[9]=l},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(i=~i,s=0;s<10;s++)this._h[s]=this._h[s]&i|o[s];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),n=this._h[0]+this._pad[0],this._h[0]=65535&n,s=1;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=16&&(t=i-i%16,this._blocks(e,r,t),r+=t,i-=t),i){for(n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const i=r(115492),n=r(230972),s=r(276228);function o(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new i.SystemRandomSource,t.randomBytes=o,t.randomUint32=function(e=t.defaultRandomSource){const r=o(4,e),i=(0,n.readUint32LE)(r);return(0,s.wipe)(r),i};const a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(e,r=a,i=t.defaultRandomSource){if(r.length<2)throw new Error("randomString charset is too short");if(r.length>256)throw new Error("randomString charset is too long");let n="";const c=r.length,h=256-256%c;for(;e>0;){const t=o(Math.ceil(256*e/h),i);for(let i=0;i0;i++){const s=t[i];s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;t.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const e="undefined"!=typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const t=new Uint8Array(e);for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;const i=r(276228);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const e=r(99432);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");const r=new Uint8Array(e);for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;const i=r(787029),n=r(835821);t.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new i.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new n.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}}},950204:(e,t,r)=>{"use strict";var i=r(230972),n=r(276228);t.On=32,t.cS=64;var s=function(){function e(){this.digestLength=t.On,this.blockSize=t.cS,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 new Error("SHA256: can't update because hash was finished.");var r=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)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/536870912|0,s=t<<3,o=t%64<56?64:128;this._buffer[r]=128;for(var c=r+1;c0?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.aD=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],h=t[2],u=t[3],f=t[4],d=t[5],l=t[6],p=t[7],g=0;g<16;g++){var b=n+4*g;e[g]=i.readUint32BE(r,b)}for(g=16;g<64;g++){var y=e[g-2],v=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,m=((y=e[g-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;e[g]=(v+e[g-7]|0)+(m+e[g-16]|0)}for(g=0;g<64;g++){v=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&d^~f&l)|0)+(p+(o[g]+e[g]|0)|0)|0,m=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&c^a&h^c&h)|0;p=l,l=d,d=f,f=u+v|0,u=h,h=c,c=a,a=v+m|0}t[0]+=a,t[1]+=c,t[2]+=h,t[3]+=u,t[4]+=f,t[5]+=d,t[6]+=l,t[7]+=p,n+=64,s-=64}return n}t.tW=function(e){var t=new s;t.update(e);var r=t.digest();return t.clean(),r}},864974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(230972),n=r(276228);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 new Error("SHA512: can't update because hash was finished.");var i=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength0;)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/536870912|0,s=t<<3,o=t%128<112?128:256;this._buffer[r]=128;for(var c=r+1;c0?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 h,u,f,d,l,p,g,b,y=r[0],v=r[1],m=r[2],w=r[3],_=r[4],E=r[5],S=r[6],I=r[7],P=n[0],O=n[1],A=n[2],x=n[3],R=n[4],T=n[5],N=n[6],M=n[7];c>=128;){for(var C=0;C<16;C++){var j=8*C+a;e[C]=i.readUint32BE(s,j),t[C]=i.readUint32BE(s,j+4)}for(C=0;C<80;C++){var q,k,L=y,D=v,U=m,$=w,z=_,B=E,H=S,K=P,F=O,V=A,W=x,G=R,J=T,Y=N;if(l=65535&(u=M),p=u>>>16,g=65535&(h=I),b=h>>>16,l+=65535&(u=(R>>>14|_<<18)^(R>>>18|_<<14)^(_>>>9|R<<23)),p+=u>>>16,g+=65535&(h=(_>>>14|R<<18)^(_>>>18|R<<14)^(R>>>9|_<<23)),b+=h>>>16,l+=65535&(u=R&T^~R&N),p+=u>>>16,g+=65535&(h=_&E^~_&S),b+=h>>>16,h=o[2*C],l+=65535&(u=o[2*C+1]),p+=u>>>16,g+=65535&h,b+=h>>>16,h=e[C%16],p+=(u=t[C%16])>>>16,g+=65535&h,b+=h>>>16,g+=(p+=(l+=65535&u)>>>16)>>>16,l=65535&(u=d=65535&l|p<<16),p=u>>>16,g=65535&(h=f=65535&g|(b+=g>>>16)<<16),b=h>>>16,l+=65535&(u=(P>>>28|y<<4)^(y>>>2|P<<30)^(y>>>7|P<<25)),p+=u>>>16,g+=65535&(h=(y>>>28|P<<4)^(P>>>2|y<<30)^(P>>>7|y<<25)),b+=h>>>16,p+=(u=P&O^P&A^O&A)>>>16,g+=65535&(h=y&v^y&m^v&m),b+=h>>>16,q=65535&(g+=(p+=(l+=65535&u)>>>16)>>>16)|(b+=g>>>16)<<16,k=65535&l|p<<16,l=65535&(u=W),p=u>>>16,g=65535&(h=$),b=h>>>16,p+=(u=d)>>>16,g+=65535&(h=f),b+=h>>>16,v=L,m=D,w=U,_=$=65535&(g+=(p+=(l+=65535&u)>>>16)>>>16)|(b+=g>>>16)<<16,E=z,S=B,I=H,y=q,O=K,A=F,x=V,R=W=65535&l|p<<16,T=G,N=J,M=Y,P=k,C%16==15)for(j=0;j<16;j++)h=e[j],l=65535&(u=t[j]),p=u>>>16,g=65535&h,b=h>>>16,h=e[(j+9)%16],l+=65535&(u=t[(j+9)%16]),p+=u>>>16,g+=65535&h,b+=h>>>16,f=e[(j+1)%16],l+=65535&(u=((d=t[(j+1)%16])>>>1|f<<31)^(d>>>8|f<<24)^(d>>>7|f<<25)),p+=u>>>16,g+=65535&(h=(f>>>1|d<<31)^(f>>>8|d<<24)^f>>>7),b+=h>>>16,f=e[(j+14)%16],p+=(u=((d=t[(j+14)%16])>>>19|f<<13)^(f>>>29|d<<3)^(d>>>6|f<<26))>>>16,g+=65535&(h=(f>>>19|d<<13)^(d>>>29|f<<3)^f>>>6),b+=h>>>16,b+=(g+=(p+=(l+=65535&u)>>>16)>>>16)>>>16,e[j]=65535&g|b<<16,t[j]=65535&l|p<<16}l=65535&(u=P),p=u>>>16,g=65535&(h=y),b=h>>>16,h=r[0],p+=(u=n[0])>>>16,g+=65535&h,b+=h>>>16,b+=(g+=(p+=(l+=65535&u)>>>16)>>>16)>>>16,r[0]=y=65535&g|b<<16,n[0]=P=65535&l|p<<16,l=65535&(u=O),p=u>>>16,g=65535&(h=v),b=h>>>16,h=r[1],p+=(u=n[1])>>>16,g+=65535&h,b+=h>>>16,b+=(g+=(p+=(l+=65535&u)>>>16)>>>16)>>>16,r[1]=v=65535&g|b<<16,n[1]=O=65535&l|p<<16,l=65535&(u=A),p=u>>>16,g=65535&(h=m),b=h>>>16,h=r[2],p+=(u=n[2])>>>16,g+=65535&h,b+=h>>>16,b+=(g+=(p+=(l+=65535&u)>>>16)>>>16)>>>16,r[2]=m=65535&g|b<<16,n[2]=A=65535&l|p<<16,l=65535&(u=x),p=u>>>16,g=65535&(h=w),b=h>>>16,h=r[3],p+=(u=n[3])>>>16,g+=65535&h,b+=h>>>16,b+=(g+=(p+=(l+=65535&u)>>>16)>>>16)>>>16,r[3]=w=65535&g|b<<16,n[3]=x=65535&l|p<<16,l=65535&(u=R),p=u>>>16,g=65535&(h=_),b=h>>>16,h=r[4],p+=(u=n[4])>>>16,g+=65535&h,b+=h>>>16,b+=(g+=(p+=(l+=65535&u)>>>16)>>>16)>>>16,r[4]=_=65535&g|b<<16,n[4]=R=65535&l|p<<16,l=65535&(u=T),p=u>>>16,g=65535&(h=E),b=h>>>16,h=r[5],p+=(u=n[5])>>>16,g+=65535&h,b+=h>>>16,b+=(g+=(p+=(l+=65535&u)>>>16)>>>16)>>>16,r[5]=E=65535&g|b<<16,n[5]=T=65535&l|p<<16,l=65535&(u=N),p=u>>>16,g=65535&(h=S),b=h>>>16,h=r[6],p+=(u=n[6])>>>16,g+=65535&h,b+=h>>>16,b+=(g+=(p+=(l+=65535&u)>>>16)>>>16)>>>16,r[6]=S=65535&g|b<<16,n[6]=N=65535&l|p<<16,l=65535&(u=M),p=u>>>16,g=65535&(h=I),b=h>>>16,h=r[7],p+=(u=n[7])>>>16,g+=65535&h,b+=h>>>16,b+=(g+=(p+=(l+=65535&u)>>>16)>>>16)>>>16,r[7]=I=65535&g|b<<16,n[7]=M=65535&l|p<<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}},276228:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t{"use strict";t.Tc=t.TZ=t.wE=t.Xx=void 0;const i=r(337052),n=r(276228);function s(e){const t=new Float64Array(16);if(e)for(let r=0;r=0;--s){const e=r[s>>>3]>>>(7&s)&1;h(n,o,e),h(p,g,e),u(b,n,p),f(n,n,p),u(p,o,g),f(o,o,g),l(g,b),l(y,n),d(n,p,n),d(p,o,b),u(b,n,p),f(n,n,p),l(o,n),f(p,g,y),d(n,p,a),u(n,n,g),d(p,p,n),d(n,g,y),d(g,o,i),l(o,b),h(n,o,e),h(p,g,e)}for(let s=0;s<16;s++)i[s+16]=n[s],i[s+32]=p[s],i[s+48]=o[s],i[s+64]=g[s];const v=i.subarray(32),m=i.subarray(16);!function(e,t){const r=s();for(let i=0;i<16;i++)r[i]=t[i];for(let i=253;i>=0;i--)l(r,r),2!==i&&4!==i&&d(r,r,t);for(let i=0;i<16;i++)e[i]=r[i]}(v,v),d(m,m,v);const w=new Uint8Array(32);return function(e,t){const r=s(),i=s();for(let n=0;n<16;n++)i[n]=t[n];c(i),c(i),c(i);for(let n=0;n<2;n++){r[0]=i[0]-65517;for(let t=1;t<15;t++)r[t]=i[t]-65535-(r[t-1]>>16&1),r[t-1]&=65535;r[15]=i[15]-32767-(r[14]>>16&1);const e=r[15]>>16&1;r[14]&=65535,h(i,r,1-e)}for(let n=0;n<16;n++)e[2*n]=255&i[n],e[2*n+1]=i[n]>>8}(w,m),w}function g(e){return p(e,o)}function b(e){if(e.length!==t.wE)throw new Error(`x25519: seed must be ${t.wE} bytes`);const r=new Uint8Array(e);return{publicKey:g(r),secretKey:r}}t.TZ=function(e){const t=(0,i.randomBytes)(32,e),r=b(t);return(0,n.wipe)(t),r},t.Tc=function(e,r,i=!1){if(e.length!==t.Xx)throw new Error("X25519: incorrect secret key length");if(r.length!==t.Xx)throw new Error("X25519: incorrect public key length");const n=p(e,r);if(i){let e=0;for(let t=0;t{"use strict";function i(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function n(){const e=i();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=i,t.getSubtleCrypto=n,t.isBrowserCryptoAvailable=function(){return!!i()&&!!n()}},391089:(e,t)=>{"use strict";function r(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function i(){return"undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=r,t.isNode=i,t.isBrowser=function(){return!r()&&!i()}},525682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(498186);i.__exportStar(r(277173),t),i.__exportStar(r(391089),t)},498186:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>s,__asyncDelegator:()=>w,__asyncGenerator:()=>m,__asyncValues:()=>_,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>P,__classPrivateFieldSet:()=>O,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>l,__extends:()=>n,__generator:()=>f,__importDefault:()=>I,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>h,__param:()=>c,__read:()=>g,__rest:()=>o,__spread:()=>b,__spreadArrays:()=>y,__values:()=>p});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},i(e,t)};function n(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return s=Object.assign||function(e){for(var t,r=1,i=arguments.length;r=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function c(e,t){return function(r,i){t(r,i,e)}}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,i){return new(r||(r=Promise))((function(n,s){function o(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))}function f(e,t){var r,i,n,s,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}function b(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(r=n[e](t)).value instanceof v?Promise.resolve(r.value.v).then(c,h):u(s[0][2],r)}catch(i){u(s[0][3],i)}var r}function c(e){a("next",e)}function h(e){a("throw",e)}function u(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function w(e){var t,r;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,n){t[i]=e[i]?function(t){return(r=!r)?{value:v(e[i](t)),done:"return"===i}:n?n(t):t}:n}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(t){return new Promise((function(i,n){(function(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)})(i,n,(t=e[r](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function I(e){return e&&e.__esModule?e:{default:e}}function P(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function O(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},314485:(e,t,r)=>{"use strict";r.d(t,{REQUIRED_METHODS:()=>Pf,default:()=>$f});var i={};r.r(i),r.d(i,{identity:()=>K});var n={};r.r(n),r.d(n,{base2:()=>F});var s={};r.r(s),r.d(s,{base8:()=>V});var o={};r.r(o),r.d(o,{base10:()=>W});var a={};r.r(a),r.d(a,{base16:()=>G,base16upper:()=>J});var c={};r.r(c),r.d(c,{base36:()=>X,base36upper:()=>Q});var h={};r.r(h),r.d(h,{base64:()=>ee,base64pad:()=>te,base64url:()=>re,base64urlpad:()=>ie});var u={};r.r(u),r.d(u,{base256emoji:()=>ae});var f={};r.r(f),r.d(f,{sha256:()=>de,sha512:()=>le});var d={};r.r(d),r.d(d,{identity:()=>ge});var l={};r.r(l),r.d(l,{code:()=>ye,decode:()=>me,encode:()=>ve,name:()=>be});var p={};r.r(p),r.d(p,{code:()=>Se,decode:()=>Pe,encode:()=>Ie,name:()=>Ee});var g=r(137007),b=r.n(g),y=function(e,t,r){if(r||2===arguments.length)for(var i,n=0,s=t.length;ne+t.length),0));const r=$(t);let i=0;for(const n of e)r.set(n,i),i+=n.length;return r}var B=r(552071),H=r(192081);const K=(0,B.HT)({prefix:"\0",name:"identity",encode:e=>(0,H.dI)(e),decode:e=>(0,H.sH)(e)}),F=(0,B.yE)({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),V=(0,B.yE)({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),W=(0,B._Q)({prefix:"9",name:"base10",alphabet:"0123456789"}),G=(0,B.yE)({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),J=(0,B.yE)({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Y=r(633431);const X=(0,B._Q)({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Q=(0,B._Q)({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Z=r(852807);const ee=(0,B.yE)({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),te=(0,B.yE)({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),re=(0,B.yE)({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ie=(0,B.yE)({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),ne=Array.from("\ud83d\ude80\ud83e\ude90\u2604\ud83d\udef0\ud83c\udf0c\ud83c\udf11\ud83c\udf12\ud83c\udf13\ud83c\udf14\ud83c\udf15\ud83c\udf16\ud83c\udf17\ud83c\udf18\ud83c\udf0d\ud83c\udf0f\ud83c\udf0e\ud83d\udc09\u2600\ud83d\udcbb\ud83d\udda5\ud83d\udcbe\ud83d\udcbf\ud83d\ude02\u2764\ud83d\ude0d\ud83e\udd23\ud83d\ude0a\ud83d\ude4f\ud83d\udc95\ud83d\ude2d\ud83d\ude18\ud83d\udc4d\ud83d\ude05\ud83d\udc4f\ud83d\ude01\ud83d\udd25\ud83e\udd70\ud83d\udc94\ud83d\udc96\ud83d\udc99\ud83d\ude22\ud83e\udd14\ud83d\ude06\ud83d\ude44\ud83d\udcaa\ud83d\ude09\u263a\ud83d\udc4c\ud83e\udd17\ud83d\udc9c\ud83d\ude14\ud83d\ude0e\ud83d\ude07\ud83c\udf39\ud83e\udd26\ud83c\udf89\ud83d\udc9e\u270c\u2728\ud83e\udd37\ud83d\ude31\ud83d\ude0c\ud83c\udf38\ud83d\ude4c\ud83d\ude0b\ud83d\udc97\ud83d\udc9a\ud83d\ude0f\ud83d\udc9b\ud83d\ude42\ud83d\udc93\ud83e\udd29\ud83d\ude04\ud83d\ude00\ud83d\udda4\ud83d\ude03\ud83d\udcaf\ud83d\ude48\ud83d\udc47\ud83c\udfb6\ud83d\ude12\ud83e\udd2d\u2763\ud83d\ude1c\ud83d\udc8b\ud83d\udc40\ud83d\ude2a\ud83d\ude11\ud83d\udca5\ud83d\ude4b\ud83d\ude1e\ud83d\ude29\ud83d\ude21\ud83e\udd2a\ud83d\udc4a\ud83e\udd73\ud83d\ude25\ud83e\udd24\ud83d\udc49\ud83d\udc83\ud83d\ude33\u270b\ud83d\ude1a\ud83d\ude1d\ud83d\ude34\ud83c\udf1f\ud83d\ude2c\ud83d\ude43\ud83c\udf40\ud83c\udf37\ud83d\ude3b\ud83d\ude13\u2b50\u2705\ud83e\udd7a\ud83c\udf08\ud83d\ude08\ud83e\udd18\ud83d\udca6\u2714\ud83d\ude23\ud83c\udfc3\ud83d\udc90\u2639\ud83c\udf8a\ud83d\udc98\ud83d\ude20\u261d\ud83d\ude15\ud83c\udf3a\ud83c\udf82\ud83c\udf3b\ud83d\ude10\ud83d\udd95\ud83d\udc9d\ud83d\ude4a\ud83d\ude39\ud83d\udde3\ud83d\udcab\ud83d\udc80\ud83d\udc51\ud83c\udfb5\ud83e\udd1e\ud83d\ude1b\ud83d\udd34\ud83d\ude24\ud83c\udf3c\ud83d\ude2b\u26bd\ud83e\udd19\u2615\ud83c\udfc6\ud83e\udd2b\ud83d\udc48\ud83d\ude2e\ud83d\ude46\ud83c\udf7b\ud83c\udf43\ud83d\udc36\ud83d\udc81\ud83d\ude32\ud83c\udf3f\ud83e\udde1\ud83c\udf81\u26a1\ud83c\udf1e\ud83c\udf88\u274c\u270a\ud83d\udc4b\ud83d\ude30\ud83e\udd28\ud83d\ude36\ud83e\udd1d\ud83d\udeb6\ud83d\udcb0\ud83c\udf53\ud83d\udca2\ud83e\udd1f\ud83d\ude41\ud83d\udea8\ud83d\udca8\ud83e\udd2c\u2708\ud83c\udf80\ud83c\udf7a\ud83e\udd13\ud83d\ude19\ud83d\udc9f\ud83c\udf31\ud83d\ude16\ud83d\udc76\ud83e\udd74\u25b6\u27a1\u2753\ud83d\udc8e\ud83d\udcb8\u2b07\ud83d\ude28\ud83c\udf1a\ud83e\udd8b\ud83d\ude37\ud83d\udd7a\u26a0\ud83d\ude45\ud83d\ude1f\ud83d\ude35\ud83d\udc4e\ud83e\udd32\ud83e\udd20\ud83e\udd27\ud83d\udccc\ud83d\udd35\ud83d\udc85\ud83e\uddd0\ud83d\udc3e\ud83c\udf52\ud83d\ude17\ud83e\udd11\ud83c\udf0a\ud83e\udd2f\ud83d\udc37\u260e\ud83d\udca7\ud83d\ude2f\ud83d\udc86\ud83d\udc46\ud83c\udfa4\ud83d\ude47\ud83c\udf51\u2744\ud83c\udf34\ud83d\udca3\ud83d\udc38\ud83d\udc8c\ud83d\udccd\ud83e\udd40\ud83e\udd22\ud83d\udc45\ud83d\udca1\ud83d\udca9\ud83d\udc50\ud83d\udcf8\ud83d\udc7b\ud83e\udd10\ud83e\udd2e\ud83c\udfbc\ud83e\udd75\ud83d\udea9\ud83c\udf4e\ud83c\udf4a\ud83d\udc7c\ud83d\udc8d\ud83d\udce3\ud83e\udd42"),se=ne.reduce(((e,t,r)=>(e[r]=t,e)),[]),oe=ne.reduce(((e,t,r)=>(e[t.codePointAt(0)]=r,e)),[]);const ae=(0,B.HT)({prefix:"\ud83d\ude80",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+=se[t]),"")},decode:function(e){const t=[];for(const r of e){const e=oe[r.codePointAt(0)];if(void 0===e)throw new Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});var ce=r(814403);const he=({name:e,code:t,encode:r})=>new ue(e,t,r);class ue{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?ce.vt(this.code,t):t.then((e=>ce.vt(this.code,e)))}throw Error("Unknown type, must be binary type")}}const fe=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),de=he({name:"sha2-256",code:18,encode:fe("SHA-256")}),le=he({name:"sha2-512",code:19,encode:fe("SHA-512")}),pe=H.au,ge={code:0,name:"identity",encode:pe,digest:e=>ce.vt(0,pe(e))},be="raw",ye=85,ve=e=>(0,H.au)(e),me=e=>(0,H.au)(e),we=new TextEncoder,_e=new TextDecoder,Ee="json",Se=512,Ie=e=>we.encode(JSON.stringify(e)),Pe=e=>JSON.parse(_e.decode(e));r(754070),r(674973);const Oe={...i,...n,...s,...o,...a,...Y,...c,...Z,...h,...u};function Ae(e,t,r,i){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:i}}}const xe=Ae("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),Re=Ae("ascii","a",(e=>{let t="a";for(let r=0;r{const t=$((e=e.substring(1)).length);for(let r=0;r"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),Ve=Ke("ascii","a",(e=>{let t="a";for(let r=0;r{const t=He((e=e.substring(1)).length);for(let r=0;r{const t=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');return JSON.parse(t,((e,t)=>"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t))})(e)}catch(t){return e}}function Xe(e){return"string"==typeof e?e:(t=e,JSON.stringify(t,((e,t)=>"bigint"==typeof t?t.toString()+"n":t))||"");var t}function Qe(e){return Ye(Ge(Je(e,ke),Le))}function Ze(e){return Ge(Je(Xe(e),Le),ke)}function et(e){const t="z"+Ge(function(e,t){t||(t=e.reduce(((e,t)=>e+t.length),0));const r=He(t);let i=0;for(const n of e)r.set(n,i),i+=n.length;return Be(r)}([Je("K36",ze),e]),ze);return[Ue,$e,t].join(":")}function tt(e){return Ge(e,ke)}function rt(e){const t=e.split(qe);return{header:Qe(t[0]),payload:Qe(t[1]),signature:Je(t[2],ke),data:Je(t.slice(0,2).join(qe),De)}}function it(e=(0,L.randomBytes)(32)){return je.K(e)}async function nt(e,t,r,i,n=(0,R.fromMiliseconds)(Date.now())){const s={alg:"EdDSA",typ:"JWT"},o={iss:et(i.publicKey),sub:e,aud:t,iat:n,exp:n+r},a=Je([Ze((c={header:s,payload:o}).header),Ze(c.payload)].join(qe),De);var c;return function(e){return[Ze(e.header),Ze(e.payload),tt(e.signature)].join(qe)}({header:s,payload:o,signature:je._S(i.secretKey,a)})}r(755665);const st={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}},ot=":";function at(e){const[t,r]=e.split(ot);return{namespace:t,reference:r}}function ct(e,t=[]){const r=[];return Object.keys(e).forEach((i=>{if(t.length&&!t.includes(i))return;const n=e[i];r.push(...n.accounts)})),r}function ht(e,t){return e.includes(":")?[e]:t.chains||[]}var ut=Object.defineProperty,ft=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,pt=(e,t,r)=>t in e?ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gt=(e,t)=>{for(var r in t||(t={}))dt.call(t,r)&&pt(e,r,t[r]);if(ft)for(var r of ft(t))lt.call(t,r)&&pt(e,r,t[r]);return e};const bt="react-native",yt="node",vt="browser",mt="unknown",wt="js";function _t(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function Et(){return!(0,T.getDocument)()&&!!(0,T.getNavigator)()&&"ReactNative"===navigator.product}function St(){return!_t()&&!!(0,T.getNavigator)()&&!!(0,T.getDocument)()}function It(){return Et()?bt:_t()?yt:St()?vt:mt}function Pt(){return(0,N.g)()||{name:"",description:"",url:"",icons:[""]}}function Ot(e,t,i){const n=function(){if(It()===bt&&typeof r.g<"u"&&typeof(null==r.g?void 0:r.g.Platform)<"u"){const{OS:e,Version:t}=r.g.Platform;return[e,t].join("-")}const e=O();if(null===e)return"unknown";const t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[t,e.name,e.version].join("-"):[t,e.version].join("-")}(),s=function(){var e;const t=It();return t===vt?[t,(null==(e=(0,T.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),[wt,i].join("-"),n,s].join("/")}function At({protocol:e,version:t,relayUrl:r,sdkVersion:i,auth:n,projectId:s,useOnCloseEvent:o,bundleId:a}){const c=r.split("?"),h={auth:n,ua:Ot(e,t,i),projectId:s,useOnCloseEvent:o||void 0,origin:a||void 0},u=function(e,t){let r=M.parse(e);return r=gt(gt({},r),t),M.stringify(r)}(c[1]||"",h);return c[0]+"?"+u}function xt(e,t){return e.filter((e=>t.includes(e))).length===e.length}function Rt(e){return Object.fromEntries(e.entries())}function Tt(e){return new Map(Object.entries(e))}function Nt(e=R.FIVE_MINUTES,t){const r=(0,R.toMiliseconds)(e||R.FIVE_MINUTES);let i,n,s;return{resolve:e=>{s&&i&&(clearTimeout(s),i(e))},reject:e=>{s&&n&&(clearTimeout(s),n(e))},done:()=>new Promise(((e,o)=>{s=setTimeout((()=>{o(new Error(t))}),r),i=e,n=o}))}}function Mt(e,t,r){return new Promise((async(i,n)=>{const s=setTimeout((()=>n(new Error(r))),t);try{i(await e)}catch(Sn){n(Sn)}clearTimeout(s)}))}function Ct(e,t){if("string"==typeof t&&t.startsWith(`${e}:`))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}if("id"===e.toLowerCase()){if("number"!=typeof t)throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${e}`)}function jt(e){const[t,r]=e.split(":"),i={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof r)i.topic=r;else{if("id"!==t||!Number.isInteger(Number(r)))throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);i.id=Number(r)}return i}function qt(e,t){return(0,R.fromMiliseconds)((t||Date.now())+(0,R.toMiliseconds)(e))}function kt(e){return Date.now()>=(0,R.toMiliseconds)(e)}function Lt(e,t){return`${e}${t?`:${t}`:""}`}function Dt(e=[],t=[]){return[...new Set([...e,...t])]}async function Ut({id:e,topic:t,wcDeepLink:i}){var n;try{if(!i)return;const s="string"==typeof i?JSON.parse(i):i,o=s?.href;if("string"!=typeof o)return;const a=function(e,t,r){const i=`requestId=${t}&sessionTopic=${r}`;e.endsWith("/")&&(e=e.slice(0,-1));let n=`${e}`;if(e.startsWith("https://t.me")){n=`${n}${e.includes("?")?"&startapp=":"?startapp="}${function(e,t=!1){const r=Buffer.from(e).toString("base64");return t?r.replace(/[=]/g,""):r}(i,!0)}`}else n=`${n}/wc?${i}`;return n}(o,e,t),c=It();if(c===vt){if(null==(n=(0,T.getDocument)())||!n.hasFocus())return void console.warn("Document does not have focus, skipping deeplink.");a.startsWith("https://")||a.startsWith("http://")?window.open(a,"_blank","noreferrer noopener"):window.open(a,typeof window<"u"&&(window.TelegramWebviewProxy||window.Telegram||window.TelegramWebviewProxyProto)?"_blank":"_self","noreferrer noopener")}else c===bt&&typeof(null==r.g?void 0:r.g.Linking)<"u"&&await r.g.Linking.openURL(a)}catch(s){console.error(s)}}function $t(e,t){if(!e.includes(t))return null;const r=e.split(/([&,?,=])/),i=r.indexOf(t);return r[i+2]}function zt(){return typeof crypto<"u"&&null!=crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Bt(){return typeof process<"u"&&"true"===process.env.IS_VITEST}function Ht(e){return Buffer.from(e,"base64").toString("utf-8")}const Kt="https://rpc.walletconnect.org/v1";async function Ft(e,t,r,i,n,s){switch(r.t){case"eip191":return function(e,t,r){return(0,j.x_)((0,C.A)(t),r).toLowerCase()===e.toLowerCase()}(e,t,r.s);case"eip1271":return await async function(e,t,r,i,n,s){const o=at(i);if(!o.namespace||!o.reference)throw new Error(`isValidEip1271Signature failed: chainId must be in CAIP-2 format, received: ${i}`);try{const o="0x1626ba7e",a="0000000000000000000000000000000000000000000000000000000000000040",c="0000000000000000000000000000000000000000000000000000000000000041",h=r.substring(2),u=o+(0,C.A)(t).substring(2)+a+c+h,f=await fetch(`${s||Kt}/?chainId=${i}&projectId=${n}`,{method:"POST",body:JSON.stringify({id:Vt(),jsonrpc:"2.0",method:"eth_call",params:[{to:e,data:u},"latest"]})}),{result:d}=await f.json();return!!d&&d.slice(0,o.length).toLowerCase()===o.toLowerCase()}catch(a){return console.error("isValidEip1271Signature: ",a),!1}}(e,t,r.s,i,n,s);default:throw new Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${r.t}`)}}function Vt(){return Date.now()+Math.floor(1e3*Math.random())}var Wt=Object.defineProperty,Gt=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,Yt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,Zt=(e,t,r)=>t in e?Wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,er=(e,t)=>{for(var r in t||(t={}))Xt.call(t,r)&&Zt(e,r,t[r]);if(Yt)for(var r of Yt(t))Qt.call(t,r)&&Zt(e,r,t[r]);return e},tr=(e,t)=>Gt(e,Jt(t));const rr=e=>e?.split(":"),ir=e=>{const t=e&&rr(e);if(t)return t[2]+":"+t[3]},nr=e=>{const t=e&&rr(e);if(t)return t.pop()};async function sr(e){const{cacao:t,projectId:r}=e,{s:i,p:n}=t,s=or(n,n.iss),o=nr(n.iss);return await Ft(o,s,i,ir(n.iss),r)}const or=(e,t)=>{const r=`${e.domain} wants you to sign in with your Ethereum account:`,i=nr(t);if(!e.aud&&!e.uri)throw new Error("Either `aud` or `uri` is required to construct the message");let n=e.statement||void 0;const s=`URI: ${e.aud||e.uri}`,o=`Version: ${e.version}`,a=`Chain ID: ${(e=>{const t=e&&rr(e);if(t)return e.includes("did:pkh:")?t[3]:t[1]})(t)}`,c=`Nonce: ${e.nonce}`,h=`Issued At: ${e.iat}`,u=e.exp?`Expiration Time: ${e.exp}`:void 0,f=e.nbf?`Not Before: ${e.nbf}`:void 0,d=e.requestId?`Request ID: ${e.requestId}`:void 0,l=e.resources?`Resources:${e.resources.map((e=>`\n- ${e}`)).join("")}`:void 0,p=yr(e.resources);if(p){n=pr(n,ur(p))}return[r,i,"",n,"",s,o,a,c,h,u,f,d,l].filter((e=>null!=e)).join("\n")};function ar(e){if(!e)throw new Error("No recap provided, value is undefined");if(!e.att)throw new Error("No `att` property found");const t=Object.keys(e.att);if(null==t||!t.length)throw new Error("No resources found in `att` property");t.forEach((t=>{const r=e.att[t];if(Array.isArray(r))throw new Error(`Resource must be an object: ${t}`);if("object"!=typeof r)throw new Error(`Resource must be an object: ${t}`);if(!Object.keys(r).length)throw new Error(`Resource object is empty: ${t}`);Object.keys(r).forEach((e=>{const t=r[e];if(!Array.isArray(t))throw new Error(`Ability limits ${e} must be an array of objects, found: ${t}`);if(!t.length)throw new Error(`Value of ${e} is empty array, must be an array with objects`);t.forEach((t=>{if("object"!=typeof t)throw new Error(`Ability limits (${e}) must be an array of objects, found: ${t}`)}))}))}))}function cr(e,t,r={}){t=t?.sort(((e,t)=>e.localeCompare(t)));const i=t.map((t=>({[`${e}/${t}`]:[r]})));return Object.assign({},...i)}function hr(e){return ar(e),`urn:recap:${function(e){return Buffer.from(JSON.stringify(e)).toString("base64")}(e).replace(/=/g,"")}`}function ur(e){const t=function(e){return JSON.parse(Buffer.from(e,"base64").toString("utf-8"))}(e.replace("urn:recap:",""));return ar(t),t}function fr(e,t,r){const i=function(e,t,r,i={}){return r?.sort(((e,t)=>e.localeCompare(t))),{att:{[e]:cr(t,r,i)}}}(e,t,r);return hr(i)}function dr(e){return e&&e.includes("urn:recap:")}function lr(e,t){const r=function(e,t){ar(e),ar(t);const r=Object.keys(e.att).concat(Object.keys(t.att)).sort(((e,t)=>e.localeCompare(t))),i={att:{}};return r.forEach((r=>{var n,s;Object.keys((null==(n=e.att)?void 0:n[r])||{}).concat(Object.keys((null==(s=t.att)?void 0:s[r])||{})).sort(((e,t)=>e.localeCompare(t))).forEach((n=>{var s,o;i.att[r]=tr(er({},i.att[r]),{[n]:(null==(s=e.att[r])?void 0:s[n])||(null==(o=t.att[r])?void 0:o[n])})}))})),i}(ur(e),ur(t));return hr(r)}function pr(e="",t){ar(t);const r="I further authorize the stated URI to perform the following actions on my behalf: ";if(e.includes(r))return e;const i=[];let n=0;Object.keys(t.att).forEach((e=>{const r=Object.keys(t.att[e]).map((e=>({ability:e.split("/")[0],action:e.split("/")[1]})));r.sort(((e,t)=>e.action.localeCompare(t.action)));const s={};r.forEach((e=>{s[e.ability]||(s[e.ability]=[]),s[e.ability].push(e.action)}));const o=Object.keys(s).map((t=>(n++,`(${n}) '${t}': '${s[t].join("', '")}' for '${e}'.`)));i.push(o.join(", ").replace(".,","."))}));return`${e?e+" ":""}${`${r}${i.join(" ")}`}`}function gr(e){var t;const r=ur(e);ar(r);const i=null==(t=r.att)?void 0:t.eip155;return i?Object.keys(i).map((e=>e.split("/")[1])):[]}function br(e){const t=ur(e);ar(t);const r=[];return Object.values(t.att).forEach((e=>{Object.values(e).forEach((e=>{var t;null!=(t=e?.[0])&&t.chains&&r.push(e[0].chains)}))})),[...new Set(r.flat())]}function yr(e){if(!e)return;const t=e?.[e.length-1];return dr(t)?t:void 0}const vr="base10",mr="base16",wr="base64pad",_r="base64url",Er="utf8";function Sr(){return Me((0,L.randomBytes)(32),mr)}function Ir(e){return Me((0,D.tW)(Ne(e,mr)),mr)}function Pr(e){return Me((0,D.tW)(Ne(e,Er)),mr)}function Or(e){return Ne(`${e}`,vr)}function Ar(e){return Number(Me(e,vr))}function xr(e){const{encoding:t=wr}=e;if(2===Ar(e.type))return Me(z([e.type,e.sealed]),t);if(1===Ar(e.type)){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Me(z([e.type,e.senderPublicKey,e.iv,e.sealed]),t)}return Me(z([e.type,e.iv,e.sealed]),t)}function Rr(e){const{encoded:t,encoding:r=wr}=e,i=Ne(t,r),n=i.slice(0,1);if(1===Ar(n)){const e=33,t=e+12,r=i.slice(1,e),s=i.slice(e,t);return{type:n,sealed:i.slice(t),iv:s,senderPublicKey:r}}if(2===Ar(n)){return{type:n,sealed:i.slice(1),iv:(0,L.randomBytes)(12)}}const s=i.slice(1,13);return{type:n,sealed:i.slice(13),iv:s}}function Tr(e){const t=e?.type||0;if(1===t){if(typeof e?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof e?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:e?.senderPublicKey,receiverPublicKey:e?.receiverPublicKey}}function Nr(e){return 1===e.type&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}function Mr(e){return 2===e.type}function Cr(e,t){const[r,i,n]=e.split("."),s=function(e){return Buffer.from(function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");const r=t.length%4;return r>0&&(t+="=".repeat(4-r)),t}(e),"base64")}(n);if(64!==s.length)throw new Error("Invalid signature length");const o=s.slice(0,32).toString("hex"),a=s.slice(32,64).toString("hex"),c=`${r}.${i}`,h=(new D.aD).update(Buffer.from(c)).digest(),u=function(e){return new Ce.ec("p256").keyFromPublic({x:Buffer.from(e.x,"base64").toString("hex"),y:Buffer.from(e.y,"base64").toString("hex")},"hex")}(t),f=Buffer.from(h).toString("hex");if(!u.verify(f,{r:o,s:a}))throw new Error("Invalid signature");return rt(e).payload}function jr(e){return e?.relay||{protocol:"irn"}}function qr(e){const t=st[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var kr=Object.defineProperty,Lr=Object.defineProperties,Dr=Object.getOwnPropertyDescriptors,Ur=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Br=(e,t,r)=>t in e?kr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hr=(e,t)=>{for(var r in t||(t={}))$r.call(t,r)&&Br(e,r,t[r]);if(Ur)for(var r of Ur(t))zr.call(t,r)&&Br(e,r,t[r]);return e};function Kr(e,t="-"){const r={},i="relay"+t;return Object.keys(e).forEach((t=>{if(t.startsWith(i)){const n=t.replace(i,""),s=e[t];r[n]=s}})),r}function Fr(e){if(!e.includes("wc:")){const t=Ht(e);null!=t&&t.includes("wc:")&&(e=t)}const t=(e=(e=e.includes("wc://")?e.replace("wc://",""):e).includes("wc:")?e.replace("wc:",""):e).indexOf(":"),r=-1!==e.indexOf("?")?e.indexOf("?"):void 0,i=e.substring(0,t),n=e.substring(t+1,r).split("@"),s=typeof r<"u"?e.substring(r):"",o=M.parse(s),a="string"==typeof o.methods?o.methods.split(","):void 0;return{protocol:i,topic:Vr(n[0]),version:parseInt(n[1],10),symKey:o.symKey,relay:Kr(o),methods:a,expiryTimestamp:o.expiryTimestamp?parseInt(o.expiryTimestamp,10):void 0}}function Vr(e){return e.startsWith("//")?e.substring(2):e}function Wr(e){return`${e.protocol}:${e.topic}@${e.version}?`+M.stringify(Hr(((e,t)=>Lr(e,Dr(t)))(Hr({symKey:e.symKey},function(e,t="-"){const r={};return Object.keys(e).forEach((i=>{const n="relay"+t+i;e[i]&&(r[n]=e[i])})),r}(e.relay)),{expiryTimestamp:e.expiryTimestamp}),e.methods?{methods:e.methods.join(",")}:{}))}function Gr(e,t,r){return`${e}?wc_ev=${r}&topic=${t}`}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function Jr(e){const t=[];return e.forEach((e=>{const[r,i]=e.split(":");t.push(`${r}:${i}`)})),t}function Yr(e){return e.includes(":")}function Xr(e){return Yr(e)?e.split(":")[0]:e}function Qr(e,t){t=t.map((e=>e.replace("did:pkh:","")));const r=function(e){const t={};return e?.forEach((e=>{const[r,i]=e.split(":");t[r]||(t[r]={accounts:[],chains:[],events:[]}),t[r].accounts.push(e),t[r].chains.push(`${r}:${i}`)})),t}(t);for(const[i,n]of Object.entries(r))n.methods?n.methods=Dt(n.methods,e):n.methods=e,n.events=["chainChanged","accountsChanged"];return r}const Zr={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},ei={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function ti(e,t){const{message:r,code:i}=ei[e];return{message:t?`${r} ${t}`:r,code:i}}function ri(e,t){const{message:r,code:i}=Zr[e];return{message:t?`${r} ${t}`:r,code:i}}function ii(e,t){return!!Array.isArray(e)&&(!(typeof t<"u"&&e.length)||e.every(t))}function ni(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function si(e){return typeof e>"u"}function oi(e,t){return!(!t||!si(e))||"string"==typeof e&&!!e.trim().length}function ai(e,t){return!(!t||!si(e))||"number"==typeof e&&!isNaN(e)}function ci(e){return!(!oi(e,!1)||!e.includes(":"))&&2===e.split(":").length}function hi(e){let t=!0;return ii(e)?e.length&&(t=e.every((e=>oi(e,!1)))):t=!1,t}function ui(e,t,r){let i=null;return Object.entries(e).forEach((([e,n])=>{if(i)return;const s=function(e,t,r){let i=null;return ii(t)&&t.length?t.forEach((e=>{i||ci(e)||(i=ri("UNSUPPORTED_CHAINS",`${r}, chain ${e} should be a string and conform to "namespace:chainId" format`))})):ci(e)||(i=ri("UNSUPPORTED_CHAINS",`${r}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),i}(e,ht(e,n),`${t} ${r}`);s&&(i=s)})),i}function fi(e,t){let r=null;return ii(e)?e.forEach((e=>{r||function(e){if(oi(e,!1)&&e.includes(":")){const t=e.split(":");if(3===t.length){const e=t[0]+":"+t[1];return!!t[2]&&ci(e)}}return!1}(e)||(r=ri("UNSUPPORTED_ACCOUNTS",`${t}, account ${e} should be a string and conform to "namespace:chainId:address" format`))})):r=ri("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}function di(e,t){let r=null;return Object.values(e).forEach((e=>{if(r)return;const i=function(e,t){let r=null;return hi(e?.methods)?hi(e?.events)||(r=ri("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):r=ri("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),r}(e,`${t}, namespace`);i&&(r=i)})),r}function li(e,t){let r=null;if(e&&ni(e)){const i=di(e,t);i&&(r=i);const n=function(e,t){let r=null;return Object.values(e).forEach((e=>{if(r)return;const i=fi(e?.accounts,`${t} namespace`);i&&(r=i)})),r}(e,t);n&&(r=n)}else r=ti("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function pi(e){return oi(e.protocol,!0)}function gi(e){return typeof e<"u"&&null!==typeof e}function bi(e,t){return!(!ci(t)||!function(e){const t=[];return Object.values(e).forEach((e=>{t.push(...Jr(e.accounts))})),t}(e).includes(t))}function yi(e,t,r){return!!oi(r,!1)&&function(e,t){const r=[];return Object.values(e).forEach((e=>{Jr(e.accounts).includes(t)&&r.push(...e.methods)})),r}(e,t).includes(r)}function vi(e,t,r){return!!oi(r,!1)&&function(e,t){const r=[];return Object.values(e).forEach((e=>{Jr(e.accounts).includes(t)&&r.push(...e.events)})),r}(e,t).includes(r)}function mi(e,t,r){let i=null;const n=function(e){const t={};return Object.keys(e).forEach((r=>{var i;r.includes(":")?t[r]=e[r]:null==(i=e[r].chains)||i.forEach((i=>{t[i]={methods:e[r].methods,events:e[r].events}}))})),t}(e),s=function(e){const t={};return Object.keys(e).forEach((r=>{if(r.includes(":"))t[r]=e[r];else{const i=Jr(e[r].accounts);i?.forEach((i=>{t[i]={accounts:e[r].accounts.filter((e=>e.includes(`${i}:`))),methods:e[r].methods,events:e[r].events}}))}})),t}(t),o=Object.keys(n),a=Object.keys(s),c=wi(Object.keys(e)),h=wi(Object.keys(t)),u=c.filter((e=>!h.includes(e)));return u.length&&(i=ti("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces.\n Required: ${u.toString()}\n Received: ${Object.keys(t).toString()}`)),xt(o,a)||(i=ti("NON_CONFORMING_NAMESPACES",`${r} namespaces chains don't satisfy required namespaces.\n Required: ${o.toString()}\n Approved: ${a.toString()}`)),Object.keys(t).forEach((e=>{if(!e.includes(":")||i)return;const n=Jr(t[e].accounts);n.includes(e)||(i=ti("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace accounts for ${e}\n Required: ${e}\n Approved: ${n.toString()}`))})),o.forEach((e=>{i||(xt(n[e].methods,s[e].methods)?xt(n[e].events,s[e].events)||(i=ti("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${e}`)):i=ti("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${e}`))})),i}function wi(e){return[...new Set(e.map((e=>e.includes(":")?e.split(":")[0]:e)))]}function _i(){const e=It();return new Promise((t=>{switch(e){case vt:t(St()&&navigator?.onLine);break;case bt:t(async function(){if(Et()&&typeof r.g<"u"&&null!=r.g&&r.g.NetInfo){const e=await(null==r.g?void 0:r.g.NetInfo.fetch());return e?.isConnected}return!0}());break;default:t(!0)}}))}function Ei(e){switch(It()){case vt:!function(e){!Et()&&St()&&(window.addEventListener("online",(()=>e(!0))),window.addEventListener("offline",(()=>e(!1))))}(e);break;case bt:!function(e){Et()&&typeof r.g<"u"&&null!=r.g&&r.g.NetInfo&&r.g?.NetInfo.addEventListener((t=>e(t?.isConnected)))}(e)}}const Si={};class Ii{static get(e){return Si[e]}static set(e,t){Si[e]=t}static delete(e){delete Si[e]}}class Pi{}class Oi extends Pi{constructor(e){super()}}const Ai=R.FIVE_SECONDS,xi="heartbeat_pulse";class Ri extends Oi{constructor(e){super(e),this.events=new g.EventEmitter,this.interval=Ai,this.interval=e?.interval||Ai}static async init(e){const t=new Ri(e);return await t.init(),t}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async initialize(){this.intervalRef=setInterval((()=>this.pulse()),(0,R.toMiliseconds)(this.interval))}pulse(){this.events.emit(xi)}}const Ti=/"(?:_|\\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*:/,Ni=/"(?: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*:/,Mi=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Ci(e,t){if(!("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t))return t;!function(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}(e)}function ji(e,t={}){if("string"!=typeof e)return e;const r=e.trim();if('"'===e[0]&&e.endsWith('"')&&!e.includes("\\"))return r.slice(1,-1);if(r.length<=9){const 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(!Mi.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Ti.test(e)||Ni.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Ci)}return JSON.parse(e)}catch(i){if(t.strict)throw i;return e}}function qi(e,...t){try{return(r=e(...t))&&"function"==typeof r.then?r:Promise.resolve(r)}catch(i){return Promise.reject(i)}var r}function ki(e){if(function(e){const t=typeof e;return null===e||"object"!==t&&"function"!==t}(e))return String(e);if(function(e){const t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}(e)||Array.isArray(e))return JSON.stringify(e);if("function"==typeof e.toJSON)return ki(e.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function Li(){if("undefined"==typeof Buffer)throw new TypeError("[unstorage] Buffer is not supported!")}const Di="base64:";function Ui(e){return e?e.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function $i(...e){return Ui(e.join(":"))}function zi(e){return(e=Ui(e))?e+":":""}const Bi=()=>{const e=new Map;return{name:"memory",getInstance:()=>e,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:()=>[...e.keys()],clear(){e.clear()},dispose(){e.clear()}}};function Hi(e={}){const t={mounts:{"":e.driver||Bi()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=e=>{for(const 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){r=Ui(r);for(const i of t.watchListeners)i(e,r)}},s=async()=>{if(t.watching){for(const e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},o=(e,t,i)=>{const 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(const o of e){const e="string"==typeof o,i=Ui(e?o:o.key),n=e?void 0:o.value,a=e||!o.options?t:{...t,...o.options},c=r(i);s(c).items.push({key:i,value:n,relativeKey:c.relativeKey,options:a})}return Promise.all([...n.values()].map((e=>i(e)))).then((e=>e.flat()))},a={hasItem(e,t={}){e=Ui(e);const{relativeKey:i,driver:n}=r(e);return qi(n.hasItem,i,t)},getItem(e,t={}){e=Ui(e);const{relativeKey:i,driver:n}=r(e);return qi(n.getItem,i,t).then((e=>ji(e)))},getItems:(e,t)=>o(e,t,(e=>e.driver.getItems?qi(e.driver.getItems,e.items.map((e=>({key:e.relativeKey,options:e.options}))),t).then((t=>t.map((t=>({key:$i(e.base,t.key),value:ji(t.value)}))))):Promise.all(e.items.map((t=>qi(e.driver.getItem,t.relativeKey,t.options).then((e=>({key:t.key,value:ji(e)})))))))),getItemRaw(e,t={}){e=Ui(e);const{relativeKey:i,driver:n}=r(e);return n.getItemRaw?qi(n.getItemRaw,i,t):qi(n.getItem,i,t).then((e=>function(e){return"string"!=typeof e?e:e.startsWith(Di)?(Li(),Buffer.from(e.slice(7),"base64")):e}(e)))},async setItem(e,t,i={}){if(void 0===t)return a.removeItem(e);e=Ui(e);const{relativeKey:s,driver:o}=r(e);o.setItem&&(await qi(o.setItem,s,ki(t),i),o.watch||n("update",e))},async setItems(e,t){await o(e,t,(async e=>{if(e.driver.setItems)return qi(e.driver.setItems,e.items.map((e=>({key:e.relativeKey,value:ki(e.value),options:e.options}))),t);e.driver.setItem&&await Promise.all(e.items.map((t=>qi(e.driver.setItem,t.relativeKey,ki(t.value),t.options))))}))},async setItemRaw(e,t,i={}){if(void 0===t)return a.removeItem(e,i);e=Ui(e);const{relativeKey:s,driver:o}=r(e);if(o.setItemRaw)await qi(o.setItemRaw,s,t,i);else{if(!o.setItem)return;await qi(o.setItem,s,function(e){if("string"==typeof e)return e;Li();const t=Buffer.from(e).toString("base64");return Di+t}(t),i)}o.watch||n("update",e)},async removeItem(e,t={}){"boolean"==typeof t&&(t={removeMeta:t}),e=Ui(e);const{relativeKey:i,driver:s}=r(e);s.removeItem&&(await qi(s.removeItem,i,t),(t.removeMeta||t.removeMata)&&await qi(s.removeItem,i+"$",t),s.watch||n("remove",e))},async getMeta(e,t={}){"boolean"==typeof t&&(t={nativeOnly:t}),e=Ui(e);const{relativeKey:i,driver:n}=r(e),s=Object.create(null);if(n.getMeta&&Object.assign(s,await qi(n.getMeta,i,t)),!t.nativeOnly){const e=await qi(n.getItem,i+"$",t).then((e=>ji(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={}){e=zi(e);const r=i(e,!0);let n=[];const s=[];for(const i of r){const e=await qi(i.driver.getKeys,i.relativeBase,t);for(const t of e){const e=i.mountpoint+Ui(t);n.some((t=>e.startsWith(t)))||s.push(e)}n=[i.mountpoint,...n.filter((e=>!e.startsWith(i.mountpoint)))]}return e?s.filter((t=>t.startsWith(e)&&"$"!==t[t.length-1])):s.filter((e=>"$"!==e[e.length-1]))},async clear(e,t={}){e=zi(e),await Promise.all(i(e,!1).map((async e=>{if(e.driver.clear)return qi(e.driver.clear,e.relativeBase,t);if(e.driver.removeItem){const r=await e.driver.getKeys(e.relativeBase||"",t);return Promise.all(r.map((r=>e.driver.removeItem(r,t))))}})))},async dispose(){await Promise.all(Object.values(t.mounts).map((e=>Fi(e))))},watch:async e=>(await(async()=>{if(!t.watching){t.watching=!0;for(const e in t.mounts)t.unwatch[e]=await Ki(t.mounts[e],n,e)}})(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter((t=>t!==e)),0===t.watchListeners.length&&await s()}),async unwatch(){t.watchListeners=[],await s()},mount(e,r){if((e=zi(e))&&t.mounts[e])throw new 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(Ki(r,n,e)).then((r=>{t.unwatch[e]=r})).catch(console.error),a},async unmount(e,r=!0){(e=zi(e))&&t.mounts[e]&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),r&&await Fi(t.mounts[e]),t.mountpoints=t.mountpoints.filter((t=>t!==e)),delete t.mounts[e])},getMount(e=""){e=Ui(e)+":";const t=r(e);return{driver:t.driver,base:t.base}},getMounts(e="",t={}){e=Ui(e);return i(e,t.parents).map((e=>({driver:e.driver,base:e.mountpoint})))},keys:(e,t={})=>a.getKeys(e,t),get:(e,t={})=>a.getItem(e,t),set:(e,t,r={})=>a.setItem(e,t,r),has:(e,t={})=>a.hasItem(e,t),del:(e,t={})=>a.removeItem(e,t),remove:(e,t={})=>a.removeItem(e,t)};return a}function Ki(e,t,r){return e.watch?e.watch(((e,i)=>t(e,r+i))):()=>{}}async function Fi(e){"function"==typeof e.dispose&&await qi(e.dispose)}function Vi(e){return new Promise(((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)}))}function Wi(e,t){const r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);const i=Vi(r);return(e,r)=>i.then((i=>r(i.transaction(t,e).objectStore(t))))}let Gi;function Ji(){return Gi||(Gi=Wi("keyval-store","keyval")),Gi}function Yi(e,t=Ji()){return t("readonly",(t=>Vi(t.get(e))))}function Xi(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},Vi(e.transaction)}var Qi=(e={})=>{const t=e.base&&e.base.length>0?`${e.base}:`:"",r=e=>t+e;let i;return e.dbName&&e.storeName&&(i=Wi(e.dbName,e.storeName)),{name:"idb-keyval",options:e,hasItem:async e=>!(typeof await Yi(r(e),i)>"u"),getItem:async e=>await Yi(r(e),i)??null,setItem:(e,t)=>function(e,t,r=Ji()){return r("readwrite",(r=>(r.put(t,e),Vi(r.transaction))))}(r(e),t,i),removeItem:e=>function(e,t=Ji()){return t("readwrite",(t=>(t.delete(e),Vi(t.transaction))))}(r(e),i),getKeys:()=>function(e=Ji()){return e("readonly",(e=>{if(e.getAllKeys)return Vi(e.getAllKeys());const t=[];return Xi(e,(e=>t.push(e.key))).then((()=>t))}))}(i),clear:()=>function(e=Ji()){return e("readwrite",(e=>(e.clear(),Vi(e.transaction))))}(i)}};class Zi{constructor(){this.indexedDb=Hi({driver:Qi({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){const t=await this.indexedDb.getItem(e);if(null!==t)return t}async setItem(e,t){await this.indexedDb.setItem(e,Xe(t))}async removeItem(e){await this.indexedDb.removeItem(e)}}var en=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof r.g<"u"?r.g:typeof self<"u"?self:{},tn={exports:{}};function rn(e){var t;return[e[0],Ye(null!=(t=e[1])?t:"")]}!function(){let e;function t(){}e=t,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(){const 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})),typeof en<"u"&&en.localStorage?tn.exports=en.localStorage:typeof window<"u"&&window.localStorage?tn.exports=window.localStorage:tn.exports=new t}();class nn{constructor(){this.localStorage=tn.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(rn)}async getItem(e){const t=this.localStorage.getItem(e);if(null!==t)return Ye(t)}async setItem(e,t){this.localStorage.setItem(e,Xe(t))}async removeItem(e){this.localStorage.removeItem(e)}}const sn=async(e,t)=>{t.length&&t.forEach((async t=>{await e.removeItem(t)}))};class on{constructor(){this.initialized=!1,this.setInitialized=e=>{this.storage=e,this.initialized=!0};const e=new nn;this.storage=e;try{(async(e,t,r)=>{const i="wc_storage_version",n=await t.getItem(i);if(n&&n>=1)return void r(t);const s=await e.getKeys();if(!s.length)return void r(t);const o=[];for(;s.length;){const r=s.shift();if(!r)continue;const i=r.toLowerCase();if(i.includes("wc@")||i.includes("walletconnect")||i.includes("wc_")||i.includes("wallet_connect")){const i=await e.getItem(r);await t.setItem(r,i),o.push(r)}}await t.setItem(i,1),r(t),sn(e,o)})(e,new Zi,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,t){return await this.initialize(),this.storage.setItem(e,t)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise((e=>{const t=setInterval((()=>{this.initialized&&(clearInterval(t),e())}),20)}))}}var an=r(44874),cn=r.n(an);const hn="info",un="custom_context";class fn{constructor(e){this.nodeValue=e,this.sizeInBytes=(new TextEncoder).encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}}class dn{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){const t=new fn(e);if(t.size>this.maxSizeInBytes)throw new Error(`[LinkedList] Value too big to insert into list: ${e} with size ${t.size}`);for(;this.size+t.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=t),this.tail=t):(this.head=t,this.tail=t),this.lengthInNodes++,this.sizeInBytes+=t.size}shift(){if(!this.head)return;const e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){const e=[];let t=this.head;for(;null!==t;)e.push(t.value),t=t.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};const t=e.value;return e=e.next,{done:!1,value:t}}}}}class ln{constructor(e,t=1024e3){this.level=e??"error",this.levelValue=an.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=t,this.logs=new dn(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,t){t===an.levels.values.error?console.error(e):t===an.levels.values.warn?console.warn(e):t===an.levels.values.debug?console.debug(e):t===an.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append(Xe({timestamp:(new Date).toISOString(),log:e}));const t="string"==typeof e?JSON.parse(e).level:e.level;t>=this.levelValue&&this.forwardToConsole(e,t)}getLogs(){return this.logs}clearLogs(){this.logs=new dn(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){const t=this.getLogArray();return t.push(Xe({extraMetadata:e})),new Blob(t,{type:"application/json"})}}class pn{constructor(e,t=1024e3){this.baseChunkLogger=new ln(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){const t=URL.createObjectURL(this.logsToBlob(e)),r=document.createElement("a");r.href=t,r.download=`walletconnect-logs-${(new Date).toISOString()}.txt`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(t)}}class gn{constructor(e,t=1024e3){this.baseChunkLogger=new ln(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}}var bn=Object.defineProperty,yn=Object.defineProperties,vn=Object.getOwnPropertyDescriptors,mn=Object.getOwnPropertySymbols,wn=Object.prototype.hasOwnProperty,_n=Object.prototype.propertyIsEnumerable,En=(e,t,r)=>t in e?bn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sn=(e,t)=>{for(var r in t||(t={}))wn.call(t,r)&&En(e,r,t[r]);if(mn)for(var r of mn(t))_n.call(t,r)&&En(e,r,t[r]);return e},In=(e,t)=>yn(e,vn(t));function Pn(e){return In(Sn({},e),{level:e?.level||hn})}function On(e,t=un){let r="";return r=typeof e.bindings>"u"?function(e,t=un){return e[t]||""}(e,t):e.bindings().context||"",r}function An(e,t,r=un){const i=function(e,t,r=un){const i=On(e,r);return i.trim()?`${i}/${t}`:t}(e,t,r);return function(e,t,r=un){return e[r]=t,e}(e.child({context:i}),i,r)}function xn(e){return typeof e.loggerOverride<"u"&&"string"!=typeof e.loggerOverride?{logger:e.loggerOverride,chunkLoggerController:null}:typeof window<"u"?function(e){var t,r;const i=new pn(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:cn()(In(Sn({},e.opts),{level:"trace",browser:In(Sn({},null==(r=e.opts)?void 0:r.browser),{write:e=>i.write(e)})})),chunkLoggerController:i}}(e):function(e){var t;const r=new gn(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:cn()(In(Sn({},e.opts),{level:"trace"}),r),chunkLoggerController:r}}(e)}class Rn extends Pi{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}}class Tn extends Pi{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}}class Nn{constructor(e,t){this.logger=e,this.core=t}}class Mn extends Pi{constructor(e,t){super(),this.relayer=e,this.logger=t}}class Cn extends Pi{constructor(e){super()}}class jn{constructor(e,t,r,i){this.core=e,this.logger=t,this.name=r}}class qn extends Pi{constructor(e,t){super(),this.relayer=e,this.logger=t}}class kn extends Pi{constructor(e,t){super(),this.core=e,this.logger=t}}class Ln{constructor(e,t,r){this.core=e,this.logger=t,this.store=r}}class Dn{constructor(e,t){this.projectId=e,this.logger=t}}class Un{constructor(e,t,r){this.core=e,this.logger=t,this.telemetryEnabled=r}}b();class $n{constructor(e){this.opts=e,this.protocol="wc",this.version=2}}g.EventEmitter;class zn{constructor(e){this.client=e}}const Bn="PARSE_ERROR",Hn="INVALID_REQUEST",Kn="METHOD_NOT_FOUND",Fn="INVALID_PARAMS",Vn="INTERNAL_ERROR",Wn="SERVER_ERROR",Gn=[-32700,-32600,-32601,-32602,-32603],Jn={[Bn]:{code:-32700,message:"Parse error"},[Hn]:{code:-32600,message:"Invalid Request"},[Kn]:{code:-32601,message:"Method not found"},[Fn]:{code:-32602,message:"Invalid params"},[Vn]:{code:-32603,message:"Internal error"},[Wn]:{code:-32e3,message:"Server error"}},Yn=Wn;function Xn(e){return Gn.includes(e)}function Qn(e){return Object.keys(Jn).includes(e)?Jn[e]:Jn[Yn]}function Zn(e){const t=Object.values(Jn).find((t=>t.code===e));return t||Jn[Yn]}function es(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}var ts=r(525682);function rs(e=3){return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function is(e=6){return BigInt(rs(e))}function ns(e,t,r){return{id:r||rs(),jsonrpc:"2.0",method:e,params:t}}function ss(e,t){return{id:e,jsonrpc:"2.0",result:t}}function os(e,t,r){return{id:e,jsonrpc:"2.0",error:as(t,r)}}function as(e,t){return void 0===e?Qn(Vn):("string"==typeof e&&(e=Object.assign(Object.assign({},Qn(Wn)),{message:e})),void 0!==t&&(e.data=t),Xn(e.code)&&(e=Zn(e.code)),e)}class cs{}class hs extends cs{constructor(){super()}}class us extends hs{constructor(e){super()}}function fs(e,t){const r=function(e){const t=e.match(new RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return void 0!==r&&new RegExp(t).test(r)}function ds(e){return fs(e,"^https?:")}function ls(e){return fs(e,"^wss?:")}function ps(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function gs(e){return ps(e)&&"method"in e}function bs(e){return ps(e)&&(ys(e)||vs(e))}function ys(e){return"result"in e}function vs(e){return"error"in e}class ms extends us{constructor(e){super(e),this.events=new g.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(ns(e.method,e.params||[],e.id||is().toString()),t)}async requestStrict(e,t){return new Promise((async(r,i)=>{if(!this.connection.connected)try{await this.open()}catch(n){i(n)}this.events.on(`${e.id}`,(e=>{vs(e)?i(e.error):r(e.result)}));try{await this.connection.send(e,t)}catch(n){i(n)}}))}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),bs(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",(e=>this.onPayload(e))),this.connection.on("close",(e=>this.onClose(e))),this.connection.on("error",(e=>this.events.emit("error",e))),this.connection.on("register_error",(e=>this.onClose())),this.hasRegisteredEventListeners=!0)}}const ws=e=>e.split("?")[0],_s=typeof WebSocket<"u"?WebSocket:typeof r.g<"u"&&typeof r.g.WebSocket<"u"?r.g.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:r(490796);class Es{constructor(e){if(this.url=e,this.events=new g.EventEmitter,this.registering=!1,!ls(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise(((e,t)=>{typeof this.socket>"u"?t(new Error("Connection already closed")):(this.socket.onclose=t=>{this.onClose(t),e()},this.socket.close())}))}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Xe(e))}catch(t){this.onError(e.id,t)}}register(e=this.url){if(!ls(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){const e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise(((e,t)=>{this.events.once("register_error",(e=>{this.resetMaxListeners(),t(e)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return t(new Error("WebSocket connection is missing or invalid"));e(this.socket)}))}))}return this.url=e,this.registering=!0,new Promise(((t,i)=>{const n=new URLSearchParams(e).get("origin"),s=(0,ts.isReactNative)()?{headers:{origin:n}}:{rejectUnauthorized:(a=e,!new RegExp("wss?://localhost(:d{2,5})?").test(a))},o=new _s(e,[],s);var a;typeof WebSocket<"u"||typeof r.g<"u"&&typeof r.g.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u"?o.onerror=e=>{const t=e;i(this.emitError(t.error))}:o.on("error",(e=>{i(this.emitError(e))})),o.onopen=()=>{this.onOpen(o),t(o)}}))}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;const t="string"==typeof e.data?Ye(e.data):e.data;this.events.emit("payload",t)}onError(e,t){const r=this.parseError(t),i=os(e,r.message||r.toString());this.events.emit("payload",i)}parseError(e,t=this.url){return es(e,ws(t),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(e){const t=this.parseError(new Error(e?.message||`WebSocket connection failed for host: ${ws(this.url)}`));return this.events.emit("register_error",t),t}}var Ss=r(908142),Is=r.n(Ss);const Ps="core",Os=`wc@2:${Ps}:`,As="error",xs={database:":memory:"},Rs="client_ed25519_seed",Ts=R.ONE_DAY,Ns=R.SIX_HOURS,Ms="wss://relay.walletconnect.org",Cs="relayer_message",js="relayer_message_ack",qs="relayer_connect",ks="relayer_disconnect",Ls="relayer_error",Ds="relayer_connection_stalled",Us="relayer_publish",$s="payload",zs="connect",Bs="disconnect",Hs="error",Ks="2.17.2",Fs={link_mode:"link_mode",relay:"relay"},Vs="WALLETCONNECT_LINK_MODE_APPS",Ws="subscription_created",Gs="subscription_deleted",Js="subscription_sync",Ys="subscription_resubscribed",Xs=1e3*R.FIVE_SECONDS,Qs={wc_pairingDelete:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:R.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:R.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:R.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:R.ONE_DAY,prompt:!1,tag:0},res:{ttl:R.ONE_DAY,prompt:!1,tag:0}}},Zs="pairing_create",eo="pairing_expire",to="pairing_delete",ro="pairing_ping",io="history_created",no="history_updated",so="history_deleted",oo="history_sync",ao="expirer_created",co="expirer_deleted",ho="expirer_expired",uo="expirer_sync",fo="https://verify.walletconnect.org",lo=fo,po=`${lo}/v3`,go=["https://verify.walletconnect.com",fo],bo="pairing_started",yo="pairing_uri_validation_success",vo="pairing_uri_not_expired",mo="store_new_pairing",wo="subscribing_pairing_topic",_o="subscribe_pairing_topic_success",Eo="existing_pairing",So="pairing_not_expired",Io="emit_inactive_pairing",Po="emit_session_proposal",Oo="no_internet_connection",Ao="malformed_pairing_uri",xo="active_pairing_already_exists",Ro="subscribe_pairing_topic_failure",To="pairing_expired",No="proposal_listener_not_found",Mo="session_approve_started",Co="session_namespaces_validation_success",jo="subscribing_session_topic",qo="subscribe_session_topic_success",ko="publishing_session_approve",Lo="session_approve_publish_success",Do="store_session",Uo="publishing_session_settle",$o="session_settle_publish_success",zo="no_internet_connection",Bo="proposal_expired",Ho="subscribe_session_topic_failure",Ko="session_approve_publish_failure",Fo="session_settle_publish_failure",Vo="session_approve_namespace_validation_failure",Wo="proposal_not_found",Go="authenticated_session_approve_started",Jo="create_authenticated_session_topic",Yo="cacaos_verified",Xo="store_authenticated_session",Qo="subscribing_authenticated_session_topic",Zo="subscribe_authenticated_session_topic_success",ea="publishing_authenticated_session_approve",ta="no_internet_connection",ra="invalid_cacao",ia="subscribe_authenticated_session_topic_failure",na="authenticated_session_approve_publish_failure",sa="authenticated_session_pending_request_not_found";var oa=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),i=0;i>>0,o=new Uint8Array(s);e[t];){var u=r[e.charCodeAt(t)];if(255===u)return;for(var f=0,d=s-1;(0!==u||f>>0,o[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");n=f,t++}if(" "!==e[t]){for(var l=s-n;l!==s&&0===o[l];)l++;for(var p=new Uint8Array(i+(s-l)),g=i;l!==s;)p[g++]=o[l++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,i=0,n=0,s=t.length;n!==s&&0===t[n];)n++,r++;for(var o=(s-n)*u+1>>>0,h=new Uint8Array(o);n!==s;){for(var f=t[n],d=0,l=o-1;(0!==f||d>>0,h[l]=f%a>>>0,f=f/a>>>0;if(0!==f)throw new Error("Non-zero carry");i=d,n++}for(var p=o-i;p!==o&&0===h[p];)p++;for(var g=c.repeat(r);p{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")};class ha{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class ua{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return da(this,e)}}class fa{constructor(e){this.decoders=e}or(e){return da(this,e)}decode(e){const t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const da=(e,t)=>new fa({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class la{constructor(e,t,r,i){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=i,this.encoder=new ha(e,t,r),this.decoder=new ua(e,t,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const pa=({name:e,prefix:t,encode:r,decode:i})=>new la(e,t,r,i),ga=({prefix:e,name:t,alphabet:r})=>{const{encode:i,decode:n}=aa(r,t);return pa({prefix:e,name:t,encode:i,decode:e=>ca(n(e))})},ba=({name:e,prefix:t,bitsPerChar:r,alphabet:i})=>pa({prefix:t,name:e,encode:e=>((e,t,r)=>{const i="="===t[t.length-1],n=(1<r;)o-=r,s+=t[n&a>>o];if(o&&(s+=t[n&a<((e,t,r,i)=>{const n={};for(let u=0;u=8&&(a-=8,o[h++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return o})(t,i,r,e)}),ya=pa({prefix:"\0",name:"identity",encode:e=>(e=>(new TextDecoder).decode(e))(e),decode:e=>(e=>(new TextEncoder).encode(e))(e)});var va=Object.freeze({__proto__:null,identity:ya});const ma=ba({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var wa=Object.freeze({__proto__:null,base2:ma});const _a=ba({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Ea=Object.freeze({__proto__:null,base8:_a});const Sa=ga({prefix:"9",name:"base10",alphabet:"0123456789"});var Ia=Object.freeze({__proto__:null,base10:Sa});const Pa=ba({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Oa=ba({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Aa=Object.freeze({__proto__:null,base16:Pa,base16upper:Oa});const xa=ba({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Ra=ba({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Ta=ba({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Na=ba({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Ma=ba({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Ca=ba({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),ja=ba({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),qa=ba({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),ka=ba({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var La=Object.freeze({__proto__:null,base32:xa,base32upper:Ra,base32pad:Ta,base32padupper:Na,base32hex:Ma,base32hexupper:Ca,base32hexpad:ja,base32hexpadupper:qa,base32z:ka});const Da=ga({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Ua=ga({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var $a=Object.freeze({__proto__:null,base36:Da,base36upper:Ua});const za=ga({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Ba=ga({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Ha=Object.freeze({__proto__:null,base58btc:za,base58flickr:Ba});const Ka=ba({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Fa=ba({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Va=ba({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Wa=ba({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Ga=Object.freeze({__proto__:null,base64:Ka,base64pad:Fa,base64url:Va,base64urlpad:Wa});const Ja=Array.from("\ud83d\ude80\ud83e\ude90\u2604\ud83d\udef0\ud83c\udf0c\ud83c\udf11\ud83c\udf12\ud83c\udf13\ud83c\udf14\ud83c\udf15\ud83c\udf16\ud83c\udf17\ud83c\udf18\ud83c\udf0d\ud83c\udf0f\ud83c\udf0e\ud83d\udc09\u2600\ud83d\udcbb\ud83d\udda5\ud83d\udcbe\ud83d\udcbf\ud83d\ude02\u2764\ud83d\ude0d\ud83e\udd23\ud83d\ude0a\ud83d\ude4f\ud83d\udc95\ud83d\ude2d\ud83d\ude18\ud83d\udc4d\ud83d\ude05\ud83d\udc4f\ud83d\ude01\ud83d\udd25\ud83e\udd70\ud83d\udc94\ud83d\udc96\ud83d\udc99\ud83d\ude22\ud83e\udd14\ud83d\ude06\ud83d\ude44\ud83d\udcaa\ud83d\ude09\u263a\ud83d\udc4c\ud83e\udd17\ud83d\udc9c\ud83d\ude14\ud83d\ude0e\ud83d\ude07\ud83c\udf39\ud83e\udd26\ud83c\udf89\ud83d\udc9e\u270c\u2728\ud83e\udd37\ud83d\ude31\ud83d\ude0c\ud83c\udf38\ud83d\ude4c\ud83d\ude0b\ud83d\udc97\ud83d\udc9a\ud83d\ude0f\ud83d\udc9b\ud83d\ude42\ud83d\udc93\ud83e\udd29\ud83d\ude04\ud83d\ude00\ud83d\udda4\ud83d\ude03\ud83d\udcaf\ud83d\ude48\ud83d\udc47\ud83c\udfb6\ud83d\ude12\ud83e\udd2d\u2763\ud83d\ude1c\ud83d\udc8b\ud83d\udc40\ud83d\ude2a\ud83d\ude11\ud83d\udca5\ud83d\ude4b\ud83d\ude1e\ud83d\ude29\ud83d\ude21\ud83e\udd2a\ud83d\udc4a\ud83e\udd73\ud83d\ude25\ud83e\udd24\ud83d\udc49\ud83d\udc83\ud83d\ude33\u270b\ud83d\ude1a\ud83d\ude1d\ud83d\ude34\ud83c\udf1f\ud83d\ude2c\ud83d\ude43\ud83c\udf40\ud83c\udf37\ud83d\ude3b\ud83d\ude13\u2b50\u2705\ud83e\udd7a\ud83c\udf08\ud83d\ude08\ud83e\udd18\ud83d\udca6\u2714\ud83d\ude23\ud83c\udfc3\ud83d\udc90\u2639\ud83c\udf8a\ud83d\udc98\ud83d\ude20\u261d\ud83d\ude15\ud83c\udf3a\ud83c\udf82\ud83c\udf3b\ud83d\ude10\ud83d\udd95\ud83d\udc9d\ud83d\ude4a\ud83d\ude39\ud83d\udde3\ud83d\udcab\ud83d\udc80\ud83d\udc51\ud83c\udfb5\ud83e\udd1e\ud83d\ude1b\ud83d\udd34\ud83d\ude24\ud83c\udf3c\ud83d\ude2b\u26bd\ud83e\udd19\u2615\ud83c\udfc6\ud83e\udd2b\ud83d\udc48\ud83d\ude2e\ud83d\ude46\ud83c\udf7b\ud83c\udf43\ud83d\udc36\ud83d\udc81\ud83d\ude32\ud83c\udf3f\ud83e\udde1\ud83c\udf81\u26a1\ud83c\udf1e\ud83c\udf88\u274c\u270a\ud83d\udc4b\ud83d\ude30\ud83e\udd28\ud83d\ude36\ud83e\udd1d\ud83d\udeb6\ud83d\udcb0\ud83c\udf53\ud83d\udca2\ud83e\udd1f\ud83d\ude41\ud83d\udea8\ud83d\udca8\ud83e\udd2c\u2708\ud83c\udf80\ud83c\udf7a\ud83e\udd13\ud83d\ude19\ud83d\udc9f\ud83c\udf31\ud83d\ude16\ud83d\udc76\ud83e\udd74\u25b6\u27a1\u2753\ud83d\udc8e\ud83d\udcb8\u2b07\ud83d\ude28\ud83c\udf1a\ud83e\udd8b\ud83d\ude37\ud83d\udd7a\u26a0\ud83d\ude45\ud83d\ude1f\ud83d\ude35\ud83d\udc4e\ud83e\udd32\ud83e\udd20\ud83e\udd27\ud83d\udccc\ud83d\udd35\ud83d\udc85\ud83e\uddd0\ud83d\udc3e\ud83c\udf52\ud83d\ude17\ud83e\udd11\ud83c\udf0a\ud83e\udd2f\ud83d\udc37\u260e\ud83d\udca7\ud83d\ude2f\ud83d\udc86\ud83d\udc46\ud83c\udfa4\ud83d\ude47\ud83c\udf51\u2744\ud83c\udf34\ud83d\udca3\ud83d\udc38\ud83d\udc8c\ud83d\udccd\ud83e\udd40\ud83e\udd22\ud83d\udc45\ud83d\udca1\ud83d\udca9\ud83d\udc50\ud83d\udcf8\ud83d\udc7b\ud83e\udd10\ud83e\udd2e\ud83c\udfbc\ud83e\udd75\ud83d\udea9\ud83c\udf4e\ud83c\udf4a\ud83d\udc7c\ud83d\udc8d\ud83d\udce3\ud83e\udd42"),Ya=Ja.reduce(((e,t,r)=>(e[r]=t,e)),[]),Xa=Ja.reduce(((e,t,r)=>(e[t.codePointAt(0)]=r,e)),[]);const Qa=pa({prefix:"\ud83d\ude80",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+=Ya[t]),"")},decode:function(e){const t=[];for(const r of e){const e=Xa[r.codePointAt(0)];if(void 0===e)throw new Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});var Za=Object.freeze({__proto__:null,base256emoji:Qa}),ec=function e(t,r,i){r=r||[];for(var n=i=i||0;t>=ic;)r[i++]=255&t|tc,t/=128;for(;t&rc;)r[i++]=255&t|tc,t>>>=7;return r[i]=0|t,e.bytes=i-n+1,r},tc=128,rc=-128,ic=Math.pow(2,31);var nc=function e(t,r){var i,n=0,s=(r=r||0,0),o=r,a=t.length;do{if(o>=a)throw e.bytes=0,new RangeError("Could not decode varint");i=t[o++],n+=s<28?(i&oc)<=sc);return e.bytes=o-r,n},sc=128,oc=127;var ac=Math.pow(2,7),cc=Math.pow(2,14),hc=Math.pow(2,21),uc=Math.pow(2,28),fc=Math.pow(2,35),dc=Math.pow(2,42),lc=Math.pow(2,49),pc=Math.pow(2,56),gc=Math.pow(2,63),bc={encode:ec,decode:nc,encodingLength:function(e){return e(yc.encode(e,t,r),t),mc=e=>yc.encodingLength(e),wc=(e,t)=>{const r=t.byteLength,i=mc(e),n=i+mc(r),s=new Uint8Array(n+r);return vc(e,s,0),vc(r,s,i),s.set(t,n),new _c(e,r,t,s)};class _c{constructor(e,t,r,i){this.code=e,this.size=t,this.digest=r,this.bytes=i}}const Ec=({name:e,code:t,encode:r})=>new Sc(e,t,r);class Sc{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?wc(this.code,t):t.then((e=>wc(this.code,e)))}throw Error("Unknown type, must be binary type")}}const Ic=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),Pc=Ec({name:"sha2-256",code:18,encode:Ic("SHA-256")}),Oc=Ec({name:"sha2-512",code:19,encode:Ic("SHA-512")});Object.freeze({__proto__:null,sha256:Pc,sha512:Oc});const Ac=ca,xc={code:0,name:"identity",encode:Ac,digest:e=>wc(0,Ac(e))};Object.freeze({__proto__:null,identity:xc});new TextEncoder,new TextDecoder;const Rc={...va,...wa,...Ea,...Ia,...Aa,...La,...$a,...Ha,...Ga,...Za};function Tc(e,t,r,i){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:i}}}const Nc=Tc("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),Mc=Tc("ascii","a",(e=>{let t="a";for(let r=0;r{const t=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}((e=e.substring(1)).length);for(let r=0;r{if(!this.initialized){const e=await this.getKeyChain();typeof e<"u"&&(this.keychain=e),this.initialized=!0}},this.has=e=>(this.isInitialized(),this.keychain.has(e)),this.set=async(e,t)=>{this.isInitialized(),this.keychain.set(e,t),await this.persist()},this.get=e=>{this.isInitialized();const t=this.keychain.get(e);if(typeof t>"u"){const{message:t}=ti("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t},this.del=async e=>{this.isInitialized(),this.keychain.delete(e),await this.persist()},this.core=e,this.logger=An(t,this.name)}get context(){return On(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,Rt(e))}async getKeyChain(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Tt(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:e}=ti("NOT_INITIALIZED",this.name);throw new Error(e)}}}class qc{constructor(e,t,r){this.core=e,this.logger=t,this.name="crypto",this.randomSessionIdentifier=Sr(),this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=e=>(this.isInitialized(),this.keychain.has(e)),this.getClientId=async()=>{this.isInitialized();return et(it(await this.getClientSeed()).publicKey)},this.generateKeyPair=()=>{this.isInitialized();const e=function(){const e=U.TZ();return{privateKey:Me(e.secretKey,mr),publicKey:Me(e.publicKey,mr)}}();return this.setPrivateKey(e.publicKey,e.privateKey)},this.signJWT=async e=>{this.isInitialized();const t=it(await this.getClientSeed()),r=this.randomSessionIdentifier,i=Ts;return await nt(r,e,i,t)},this.generateSharedKey=(e,t,r)=>{this.isInitialized();const i=function(e,t){const r=U.Tc(Ne(e,mr),Ne(t,mr),!0);return Me(new k.i(D.aD,r).expand(32),mr)}(this.getPrivateKey(e),t);return this.setSymKey(i,r)},this.setSymKey=async(e,t)=>{this.isInitialized();const r=t||Ir(e);return await this.keychain.set(r,e),r},this.deleteKeyPair=async e=>{this.isInitialized(),await this.keychain.del(e)},this.deleteSymKey=async e=>{this.isInitialized(),await this.keychain.del(e)},this.encode=async(e,t,r)=>{this.isInitialized();const i=Tr(r),n=Xe(t);if(Mr(i))return function(e,t){const r=Or(2),i=(0,L.randomBytes)(12);return xr({type:r,sealed:Ne(e,Er),iv:i,encoding:t})}(n,r?.encoding);if(Nr(i)){const t=i.senderPublicKey,r=i.receiverPublicKey;e=await this.generateSharedKey(t,r)}const s=this.getSymKey(e),{type:o,senderPublicKey:a}=i;return function(e){const t=Or(typeof e.type<"u"?e.type:0);if(1===Ar(t)&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const r=typeof e.senderPublicKey<"u"?Ne(e.senderPublicKey,mr):void 0,i=typeof e.iv<"u"?Ne(e.iv,mr):(0,L.randomBytes)(12);return xr({type:t,sealed:new q.g6(Ne(e.symKey,mr)).seal(i,Ne(e.message,Er)),iv:i,senderPublicKey:r,encoding:e.encoding})}({type:o,symKey:s,message:n,senderPublicKey:a,encoding:r?.encoding})},this.decode=async(e,t,r)=>{this.isInitialized();const i=function(e,t){const r=Rr({encoded:e,encoding:t?.encoding});return Tr({type:Ar(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?Me(r.senderPublicKey,mr):void 0,receiverPublicKey:t?.receiverPublicKey})}(t,r);if(Mr(i)){const e=function(e,t){const{sealed:r}=Rr({encoded:e,encoding:t});return Me(r,Er)}(t,r?.encoding);return Ye(e)}if(Nr(i)){const t=i.receiverPublicKey,r=i.senderPublicKey;e=await this.generateSharedKey(t,r)}try{const i=function(e){const t=new q.g6(Ne(e.symKey,mr)),{sealed:r,iv:i}=Rr({encoded:e.encoded,encoding:e?.encoding}),n=t.open(i,r);if(null===n)throw new Error("Failed to decrypt");return Me(n,Er)}({symKey:this.getSymKey(e),encoded:t,encoding:r?.encoding});return Ye(i)}catch(n){this.logger.error(`Failed to decode message from topic: '${e}', clientId: '${await this.getClientId()}'`),this.logger.error(n)}},this.getPayloadType=(e,t=wr)=>Ar(Rr({encoded:e,encoding:t}).type),this.getPayloadSenderPublicKey=(e,t=wr)=>{const r=Rr({encoded:e,encoding:t});return r.senderPublicKey?Me(r.senderPublicKey,mr):void 0},this.core=e,this.logger=An(t,this.name),this.keychain=r||new jc(this.core,this.logger)}get context(){return On(this.logger)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(Rs)}catch{e=Sr(),await this.keychain.set(Rs,e)}return function(e,t="utf8"){const r=Cc[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${e}`):globalThis.Buffer.from(e,"utf8")}(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){const{message:e}=ti("NOT_INITIALIZED",this.name);throw new Error(e)}}}class kc extends Nn{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=Os,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const e=await this.getRelayerMessages();typeof e<"u"&&(this.messages=e),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(Ai){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(Ai)}finally{this.initialized=!0}}},this.set=async(e,t)=>{this.isInitialized();const r=Pr(t);let i=this.messages.get(e);return typeof i>"u"&&(i={}),typeof i[r]<"u"||(i[r]=t,this.messages.set(e,i),await this.persist()),r},this.get=e=>{this.isInitialized();let t=this.messages.get(e);return typeof t>"u"&&(t={}),t},this.has=(e,t)=>{this.isInitialized();return typeof this.get(e)[Pr(t)]<"u"},this.del=async e=>{this.isInitialized(),this.messages.delete(e),await this.persist()},this.logger=An(e,this.name),this.core=t}get context(){return On(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,Rt(e))}async getRelayerMessages(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Tt(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:e}=ti("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Lc extends Mn{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new g.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,R.toMiliseconds)(R.ONE_MINUTE),this.failedPublishTimeout=(0,R.toMiliseconds)(R.ONE_SECOND),this.needsTransportRestart=!1,this.publish=async(e,t,r)=>{var i;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:e,message:t,opts:r}});const n=r?.ttl||Ns,s=jr(r),o=r?.prompt||!1,a=r?.tag||0,c=r?.id||is().toString(),h={topic:e,message:t,opts:{ttl:n,relay:s,prompt:o,tag:a,id:c,attestation:r?.attestation}},u=`Failed to publish payload, please try again. id:${c} tag:${a}`,f=Date.now();let d,l=1;try{for(;void 0===d;){if(Date.now()-f>this.publishTimeout)throw new Error(u);this.logger.trace({id:c,attempts:l},`publisher.publish - attempt ${l}`),d=await await Mt(this.rpcPublish(e,t,n,s,o,a,c,r?.attestation).catch((e=>this.logger.warn(e))),this.publishTimeout,u),l++,d||await new Promise((e=>setTimeout(e,this.failedPublishTimeout)))}this.relayer.events.emit(Us,h),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{id:c,topic:e,message:t,opts:r}})}catch(p){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(p),null!=(i=r?.internal)&&i.throwOnFailedPublish)throw p;this.queue.set(c,h)}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.relayer=e,this.logger=An(t,this.name),this.registerEventListeners()}get context(){return On(this.logger)}rpcPublish(e,t,r,i,n,s,o,a){var c,h,u,f;const d={method:qr(i.protocol).publish,params:{topic:e,message:t,ttl:r,prompt:n,tag:s,attestation:a},id:o};return si(null==(c=d.params)?void 0:c.prompt)&&(null==(h=d.params)||delete h.prompt),si(null==(u=d.params)?void 0:u.tag)&&(null==(f=d.params)||delete f.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:d}),this.relayer.request(d)}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach((async e=>{const{topic:t,message:r,opts:i}=e;await this.publish(t,r,i)}))}registerEventListeners(){this.relayer.core.heartbeat.on(xi,(()=>{if(this.needsTransportRestart)return this.needsTransportRestart=!1,void this.relayer.events.emit(Ds);this.checkQueue()})),this.relayer.on(js,(e=>{this.removeRequestFromQueue(e.id.toString())}))}}class Dc{constructor(){this.map=new Map,this.set=(e,t)=>{const r=this.get(e);this.exists(e,t)||this.map.set(e,[...r,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u")return void this.map.delete(e);if(!this.map.has(e))return;const r=this.get(e);if(!this.exists(e,t))return;const i=r.filter((e=>e!==t));i.length?this.map.set(e,i):this.map.delete(e)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var Uc=Object.defineProperty,$c=Object.defineProperties,zc=Object.getOwnPropertyDescriptors,Bc=Object.getOwnPropertySymbols,Hc=Object.prototype.hasOwnProperty,Kc=Object.prototype.propertyIsEnumerable,Fc=(e,t,r)=>t in e?Uc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vc=(e,t)=>{for(var r in t||(t={}))Hc.call(t,r)&&Fc(e,r,t[r]);if(Bc)for(var r of Bc(t))Kc.call(t,r)&&Fc(e,r,t[r]);return e},Wc=(e,t)=>$c(e,zc(t));class Gc extends qn{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new Dc,this.events=new g.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=Os,this.subscribeTimeout=(0,R.toMiliseconds)(R.ONE_MINUTE),this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.pendingBatchMessages=[],this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId(),await this.restore()),this.initialized=!0},this.subscribe=async(e,t)=>{this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}});try{const r=jr(t),i={topic:e,relay:r,transportType:t?.transportType};this.pending.set(e,i);const n=await this.rpcSubscribe(e,r,t);return"string"==typeof n&&(this.onSubscribe(n,i),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}})),n}catch(r){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(r),r}},this.unsubscribe=async(e,t)=>{await this.restartToComplete(),this.isInitialized(),typeof t?.id<"u"?await this.unsubscribeById(e,t.id,t):await this.unsubscribeByTopic(e,t)},this.isSubscribed=async e=>{if(this.topics.includes(e))return!0;const t=`${this.pendingSubscriptionWatchLabel}_${e}`;return await new Promise(((r,i)=>{const n=new R.Watch;n.start(t);const s=setInterval((()=>{!this.pending.has(e)&&this.topics.includes(e)&&(clearInterval(s),n.stop(t),r(!0)),n.elapsed(t)>=Xs&&(clearInterval(s),n.stop(t),i(new Error("Subscription resolution timeout")))}),this.pollingInterval)})).catch((()=>!1))},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=An(t,this.name),this.clientId=""}get context(){return On(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let r=!1;try{r=this.getSubscription(e).topic===t}catch{}return r}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){const r=this.topicMap.get(e);await Promise.all(r.map((async r=>await this.unsubscribeById(e,r,t))))}async unsubscribeById(e,t,r){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:r}});try{const i=jr(r);await this.rpcUnsubscribe(e,t,i);const n=ri("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,n),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:r}})}catch(Sn){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(Sn),Sn}}async rpcSubscribe(e,t,r){var i;r?.transportType===Fs.relay&&await this.restartToComplete();const n={method:qr(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});const s=null==(i=r?.internal)?void 0:i.throwOnFailedPublish;try{const t=Pr(e+this.clientId);if(r?.transportType===Fs.link_mode)return setTimeout((()=>{(this.relayer.connected||this.relayer.connecting)&&this.relayer.request(n).catch((e=>this.logger.warn(e)))}),(0,R.toMiliseconds)(R.ONE_SECOND)),t;const i=await Mt(this.relayer.request(n).catch((e=>this.logger.warn(e))),this.subscribeTimeout,`Subscribing to ${e} failed, please try again`);if(!i&&s)throw new Error(`Subscribing to ${e} failed, please try again`);return i?t:null}catch(o){if(this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(Ds),s)throw o}return null}async rpcBatchSubscribe(e){if(!e.length)return;const t={method:qr(e[0].relay.protocol).batchSubscribe,params:{topics:e.map((e=>e.topic))}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:t});try{return await await Mt(this.relayer.request(t).catch((e=>this.logger.warn(e))),this.subscribeTimeout)}catch{this.relayer.events.emit(Ds)}}async rpcBatchFetchMessages(e){if(!e.length)return;const t={method:qr(e[0].relay.protocol).batchFetchMessages,params:{topics:e.map((e=>e.topic))}};let r;this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:t});try{r=await await Mt(this.relayer.request(t).catch((e=>this.logger.warn(e))),this.subscribeTimeout)}catch{this.relayer.events.emit(Ds)}return r}rpcUnsubscribe(e,t,r){const i={method:qr(r.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.request(i)}onSubscribe(e,t){this.setSubscription(e,Wc(Vc({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach((e=>{this.setSubscription(e.id,Vc({},e)),this.pending.delete(e.topic)}))}async onUnsubscribe(e,t,r){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,r),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t)}addSubscription(e,t){this.subscriptions.set(e,Vc({},t)),this.topicMap.set(t.topic,e),this.events.emit(Ws,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});const t=this.subscriptions.get(e);if(!t){const{message:t}=ti("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});const r=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(r.topic,e),this.events.emit(Gs,Wc(Vc({},r),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(Js)}async reset(){if(this.cached.length){const e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t"u"||!e.length)return;if(this.subscriptions.size){const{message:e}=ti("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(e)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;const t=await this.rpcBatchSubscribe(e);ii(t)&&this.onBatchSubscribe(t.map(((t,r)=>Wc(Vc({},e[r]),{id:t}))))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);const t=await this.rpcBatchFetchMessages(e);t&&t.messages&&(this.pendingBatchMessages=this.pendingBatchMessages.concat(t.messages))}async onConnect(){await this.restart(),this.onEnable()}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||!this.relayer.connected)return;const e=[];this.pending.forEach((t=>{e.push(t)})),await this.batchSubscribe(e),this.pendingBatchMessages.length&&(await this.relayer.handleBatchMessageEvents(this.pendingBatchMessages),this.pendingBatchMessages=[])}registerEventListeners(){this.relayer.core.heartbeat.on(xi,(async()=>{await this.checkPending()})),this.events.on(Ws,(async e=>{const t=Ws;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()})),this.events.on(Gs,(async e=>{const t=Gs;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()}))}isInitialized(){if(!this.initialized){const{message:e}=ti("NOT_INITIALIZED",this.name);throw new Error(e)}}async restartToComplete(){!this.relayer.connected&&!this.relayer.connecting&&await this.relayer.transportOpen(),this.restartInProgress&&await new Promise((e=>{const t=setInterval((()=>{this.restartInProgress||(clearInterval(t),e())}),this.pollingInterval)}))}}var Jc=Object.defineProperty,Yc=Object.getOwnPropertySymbols,Xc=Object.prototype.hasOwnProperty,Qc=Object.prototype.propertyIsEnumerable,Zc=(e,t,r)=>t in e?Jc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eh=(e,t)=>{for(var r in t||(t={}))Xc.call(t,r)&&Zc(e,r,t[r]);if(Yc)for(var r of Yc(t))Qc.call(t,r)&&Zc(e,r,t[r]);return e};class th extends Cn{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new g.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","stalled","interrupted"],this.hasExperiencedNetworkDisruption=!1,this.requestsInFlight=new Map,this.heartBeatTimeout=(0,R.toMiliseconds)(R.THIRTY_SECONDS+R.ONE_SECOND),this.request=async e=>{var t,r;this.logger.debug("Publishing Request Payload");const i=e.id||is().toString();await this.toEstablishConnection();try{const n=this.provider.request(e);this.requestsInFlight.set(i,{promise:n,request:e}),this.logger.trace({id:i,method:e.method,topic:null==(t=e.params)?void 0:t.topic},"relayer.request - attempt to publish...");const s=await new Promise((async(e,t)=>{const r=()=>{t(new Error(`relayer.request - publish interrupted, id: ${i}`))};this.provider.on(Bs,r);const s=await n;this.provider.off(Bs,r),e(s)}));return this.logger.trace({id:i,method:e.method,topic:null==(r=e.params)?void 0:r.topic},"relayer.request - published"),s}catch(n){throw this.logger.debug(`Failed to Publish Request: ${i}`),n}finally{this.requestsInFlight.delete(i)}},this.resetPingTimeout=()=>{if(_t())try{clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout((()=>{var e,t,r;null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)||r.terminate()}),this.heartBeatTimeout)}catch(e){this.logger.warn(e)}},this.onPayloadHandler=e=>{this.onProviderPayload(e),this.resetPingTimeout()},this.onConnectHandler=()=>{this.logger.trace("relayer connected"),this.startPingTimeout(),this.events.emit(qs)},this.onDisconnectHandler=()=>{this.logger.trace("relayer disconnected"),this.onProviderDisconnect()},this.onProviderErrorHandler=e=>{this.logger.error(e),this.events.emit(Ls,e),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on($s,this.onPayloadHandler),this.provider.on(zs,this.onConnectHandler),this.provider.on(Bs,this.onDisconnectHandler),this.provider.on(Hs,this.onProviderErrorHandler)},this.core=e.core,this.logger=typeof e.logger<"u"&&"string"!=typeof e.logger?An(e.logger,this.name):cn()(Pn({level:e.logger||"error"})),this.messages=new kc(this.logger,e.core),this.subscriber=new Gc(this,this.logger),this.publisher=new Lc(this,this.logger),this.relayUrl=e?.relayUrl||Ms,this.projectId=e.projectId,this.bundleId=function(){var e;try{return Et()&&typeof r.g<"u"&&typeof(null==r.g?void 0:r.g.Application)<"u"?null==(e=r.g.Application)?void 0:e.applicationId:void 0}catch{return}}(),this.provider={}}async init(){if(this.logger.trace("Initialized"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]),this.initialized=!0,this.subscriber.cached.length>0)try{await this.transportOpen()}catch(e){this.logger.warn(e)}}get context(){return On(this.logger)}get connected(){var e,t,r;return 1===(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)}get connecting(){var e,t,r;return 0===(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)}async publish(e,t,r){this.isInitialized(),await this.publisher.publish(e,t,r),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now(),transportType:Fs.relay})}async subscribe(e,t){var r,i,n;this.isInitialized(),"relay"===t?.transportType&&await this.toEstablishConnection();const s=typeof(null==(r=t?.internal)?void 0:r.throwOnFailedPublish)>"u"||(null==(i=t?.internal)?void 0:i.throwOnFailedPublish);let o,a=(null==(n=this.subscriber.topicMap.get(e))?void 0:n[0])||"";const c=t=>{t.topic===e&&(this.subscriber.off(Ws,c),o())};return await Promise.all([new Promise((e=>{o=e,this.subscriber.on(Ws,c)})),new Promise((async(r,i)=>{a=await this.subscriber.subscribe(e,eh({internal:{throwOnFailedPublish:s}},t)).catch((e=>{s&&i(e)}))||a,r()}))]),a}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportDisconnect(){if(!this.hasExperiencedNetworkDisruption&&this.connected&&this.requestsInFlight.size>0)try{await Promise.all(Array.from(this.requestsInFlight.values()).map((e=>e.promise)))}catch(e){this.logger.warn(e)}this.provider.disconnect&&(this.hasExperiencedNetworkDisruption||this.connected)?await Mt(this.provider.disconnect(),2e3,"provider.disconnect()").catch((()=>this.onProviderDisconnect())):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),await this.createProvider(),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;try{await new Promise((async(e,t)=>{const r=()=>{this.provider.off(Bs,r),t(new Error("Connection interrupted while trying to subscribe"))};this.provider.on(Bs,r),await Mt(this.provider.connect(),(0,R.toMiliseconds)(R.ONE_MINUTE),`Socket stalled when trying to connect to ${this.relayUrl}`).catch((e=>{t(e)})).finally((()=>{clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0})),this.subscriber.start().catch((e=>{this.logger.error(e),this.onDisconnectHandler()})),this.hasExperiencedNetworkDisruption=!1,e()}))}catch(t){this.logger.error(t);const e=t;if(this.hasExperiencedNetworkDisruption=!0,!this.isConnectionStalled(e.message))throw t}finally{this.connectionAttemptInProgress=!1}}async restartTransport(e){this.connectionAttemptInProgress||(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await _i())throw new Error("No internet connection detected. Please restart your network and try again.")}async handleBatchMessageEvents(e){if(0===e?.length)return void this.logger.trace("Batch message events is empty. Ignoring...");const t=e.sort(((e,t)=>e.publishedAt-t.publishedAt));this.logger.trace(`Batch of ${t.length} message events sorted`);for(const r of t)try{await this.onMessageEvent(r)}catch(Sn){this.logger.warn(Sn)}this.logger.trace(`Batch of ${t.length} message events processed`)}async onLinkMessageEvent(e,t){const{topic:r}=e;if(!t.sessionExists){const e={topic:r,expiry:qt(R.FIVE_MINUTES),relay:{protocol:"irn"},active:!1};await this.core.pairing.pairings.set(r,e)}this.events.emit(Cs,e),await this.recordMessageEvent(e)}startPingTimeout(){var e,t,r,i,n;if(_t())try{null!=(t=null==(e=this.provider)?void 0:e.connection)&&t.socket&&(null==(n=null==(i=null==(r=this.provider)?void 0:r.connection)?void 0:i.socket)||n.once("ping",(()=>{this.resetPingTimeout()}))),this.resetPingTimeout()}catch(s){this.logger.warn(s)}}isConnectionStalled(e){return this.staleConnectionErrors.some((t=>e.includes(t)))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new ms(new Es(At({sdkVersion:Ks,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(e){const{topic:t,message:r}=e;await this.messages.set(t,r)}async shouldIgnoreMessageEvent(e){const{topic:t,message:r}=e;if(!r||0===r.length)return this.logger.debug(`Ignoring invalid/empty message: ${r}`),!0;if(!await this.subscriber.isSubscribed(t))return this.logger.debug(`Ignoring message for non-subscribed topic ${t}`),!0;const i=this.messages.has(t,r);return i&&this.logger.debug(`Ignoring duplicate message: ${r}`),i}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),gs(e)){if(!e.method.endsWith("_subscription"))return;const t=e.params,{topic:r,message:i,publishedAt:n,attestation:s}=t.data,o={topic:r,message:i,publishedAt:n,transportType:Fs.relay,attestation:s};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(eh({type:"event",event:t.id},o)),this.events.emit(t.id,o),await this.acknowledgePayload(e),await this.onMessageEvent(o)}else bs(e)&&this.events.emit(js,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(Cs,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){const t=ss(e.id,!0);await this.provider.connection.send(t)}unregisterProviderListeners(){this.provider.off($s,this.onPayloadHandler),this.provider.off(zs,this.onConnectHandler),this.provider.off(Bs,this.onDisconnectHandler),this.provider.off(Hs,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await _i();Ei((async t=>{e!==t&&(e=t,t?await this.restartTransport().catch((e=>this.logger.error(e))):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))}))}async onProviderDisconnect(){await this.subscriber.stop(),this.requestsInFlight.clear(),clearTimeout(this.pingTimeout),this.events.emit(ks),this.connectionAttemptInProgress=!1,!this.transportExplicitlyClosed&&(this.reconnectTimeout||(this.reconnectTimeout=setTimeout((async()=>{await this.transportOpen().catch((e=>this.logger.error(e)))}),(0,R.toMiliseconds)(.1))))}isInitialized(){if(!this.initialized){const{message:e}=ti("NOT_INITIALIZED",this.name);throw new Error(e)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),!this.connected&&(this.connectionAttemptInProgress&&await new Promise((e=>{const t=setInterval((()=>{this.connected&&(clearInterval(t),e())}),this.connectionStatusPollingInterval)})),await this.transportOpen())}}var rh=Object.defineProperty,ih=Object.getOwnPropertySymbols,nh=Object.prototype.hasOwnProperty,sh=Object.prototype.propertyIsEnumerable,oh=(e,t,r)=>t in e?rh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ah=(e,t)=>{for(var r in t||(t={}))nh.call(t,r)&&oh(e,r,t[r]);if(ih)for(var r of ih(t))sh.call(t,r)&&oh(e,r,t[r]);return e};class ch extends jn{constructor(e,t,r,i=Os,n=void 0){super(e,t,r,i),this.core=e,this.logger=t,this.name=r,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Os,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((e=>{this.getKey&&null!==e&&!si(e)?this.map.set(this.getKey(e),e):function(e){var t;return null==(t=e?.proposer)?void 0:t.publicKey}(e)?this.map.set(e.id,e):function(e){return e?.topic}(e)&&this.map.set(e.topic,e)})),this.cached=[],this.initialized=!0)},this.set=async(e,t)=>{this.isInitialized(),this.map.has(e)?await this.update(e,t):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:e,value:t}),this.map.set(e,t),await this.persist())},this.get=e=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:e}),this.getData(e)),this.getAll=e=>(this.isInitialized(),e?this.values.filter((t=>Object.keys(e).every((r=>Is()(t[r],e[r]))))):this.values),this.update=async(e,t)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:e,update:t});const r=ah(ah({},this.getData(e)),t);this.map.set(e,r),await this.persist()},this.delete=async(e,t)=>{this.isInitialized(),this.map.has(e)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:e,reason:t}),this.map.delete(e),this.addToRecentlyDeleted(e),await this.persist())},this.logger=An(t,this.name),this.storagePrefix=i,this.getKey=n}get context(){return On(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){const t=this.map.get(e);if(!t){if(this.recentlyDeleted.includes(e)){const{message:t}=ti("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(t),new Error(t)}const{message:t}=ti("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(t),new Error(t)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{const e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){const{message:e}=ti("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){const{message:e}=ti("NOT_INITIALIZED",this.name);throw new Error(e)}}}class hh{constructor(e,t){this.core=e,this.logger=t,this.name="pairing",this.version="0.3",this.events=new(b()),this.initialized=!1,this.storagePrefix=Os,this.ignoredPayloadTypes=[1],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:e})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...e])]},this.create=async e=>{this.isInitialized();const t=Sr(),r=await this.core.crypto.setSymKey(t),i=qt(R.FIVE_MINUTES),n={protocol:"irn"},s={topic:r,expiry:i,relay:n,active:!1,methods:e?.methods},o=Wr({protocol:this.core.protocol,version:this.core.version,topic:r,symKey:t,relay:n,expiryTimestamp:i,methods:e?.methods});return this.events.emit(Zs,s),this.core.expirer.set(r,i),await this.pairings.set(r,s),await this.core.relayer.subscribe(r,{transportType:e?.transportType}),{topic:r,uri:o}},this.pair=async e=>{this.isInitialized();const t=this.core.eventClient.createEvent({properties:{topic:e?.uri,trace:[bo]}});this.isValidPair(e,t);const{topic:r,symKey:i,relay:n,expiryTimestamp:s,methods:o}=Fr(e.uri);let a;if(t.props.properties.topic=r,t.addTrace(yo),t.addTrace(vo),this.pairings.keys.includes(r)){if(a=this.pairings.get(r),t.addTrace(Eo),a.active)throw t.setError(xo),new Error(`Pairing already exists: ${r}. Please try again with a new connection URI.`);t.addTrace(So)}const c=s||qt(R.FIVE_MINUTES),h={topic:r,relay:n,expiry:c,active:!1,methods:o};this.core.expirer.set(r,c),await this.pairings.set(r,h),t.addTrace(mo),e.activatePairing&&await this.activate({topic:r}),this.events.emit(Zs,h),t.addTrace(Io),this.core.crypto.keychain.has(r)||await this.core.crypto.setSymKey(i,r),t.addTrace(wo);try{await this.core.relayer.confirmOnlineStateOrThrow()}catch{t.setError(Oo)}try{await this.core.relayer.subscribe(r,{relay:n})}catch(u){throw t.setError(Ro),u}return t.addTrace(_o),h},this.activate=async({topic:e})=>{this.isInitialized();const t=qt(R.THIRTY_DAYS);this.core.expirer.set(e,t),await this.pairings.update(e,{active:!0,expiry:t})},this.ping=async e=>{this.isInitialized(),await this.isValidPing(e);const{topic:t}=e;if(this.pairings.keys.includes(t)){const e=await this.sendRequest(t,"wc_pairingPing",{}),{done:r,resolve:i,reject:n}=Nt();this.events.once(Lt("pairing_ping",e),(({error:e})=>{e?n(e):i()})),await r()}},this.updateExpiry=async({topic:e,expiry:t})=>{this.isInitialized(),await this.pairings.update(e,{expiry:t})},this.updateMetadata=async({topic:e,metadata:t})=>{this.isInitialized(),await this.pairings.update(e,{peerMetadata:t})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async e=>{this.isInitialized(),await this.isValidDisconnect(e);const{topic:t}=e;this.pairings.keys.includes(t)&&(await this.sendRequest(t,"wc_pairingDelete",ri("USER_DISCONNECTED")),await this.deletePairing(t))},this.formatUriFromPairing=e=>{this.isInitialized();const{topic:t,relay:r,expiry:i,methods:n}=e,s=this.core.crypto.keychain.get(t);return Wr({protocol:this.core.protocol,version:this.core.version,topic:t,symKey:s,relay:r,expiryTimestamp:i,methods:n})},this.sendRequest=async(e,t,r)=>{const i=ns(t,r),n=await this.core.crypto.encode(e,i),s=Qs[t].req;return this.core.history.set(e,i),this.core.relayer.publish(e,n,s),i.id},this.sendResult=async(e,t,r)=>{const i=ss(e,r),n=await this.core.crypto.encode(t,i),s=await this.core.history.get(t,e),o=Qs[s.request.method].res;await this.core.relayer.publish(t,n,o),await this.core.history.resolve(i)},this.sendError=async(e,t,r)=>{const i=os(e,r),n=await this.core.crypto.encode(t,i),s=await this.core.history.get(t,e),o=Qs[s.request.method]?Qs[s.request.method].res:Qs.unregistered_method.res;await this.core.relayer.publish(t,n,o),await this.core.history.resolve(i)},this.deletePairing=async(e,t)=>{await this.core.relayer.unsubscribe(e),await Promise.all([this.pairings.delete(e,ri("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(e),t?Promise.resolve():this.core.expirer.del(e)])},this.cleanup=async()=>{const e=this.pairings.getAll().filter((e=>kt(e.expiry)));await Promise.all(e.map((e=>this.deletePairing(e.topic))))},this.onRelayEventRequest=e=>{const{topic:t,payload:r}=e;switch(r.method){case"wc_pairingPing":return this.onPairingPingRequest(t,r);case"wc_pairingDelete":return this.onPairingDeleteRequest(t,r);default:return this.onUnknownRpcMethodRequest(t,r)}},this.onRelayEventResponse=async e=>{const{topic:t,payload:r}=e,i=(await this.core.history.get(t,r.id)).request.method;return"wc_pairingPing"===i?this.onPairingPingResponse(t,r):this.onUnknownRpcMethodResponse(i)},this.onPairingPingRequest=async(e,t)=>{const{id:r}=t;try{this.isValidPing({topic:e}),await this.sendResult(r,e,!0),this.events.emit(ro,{id:r,topic:e})}catch(i){await this.sendError(r,e,i),this.logger.error(i)}},this.onPairingPingResponse=(e,t)=>{const{id:r}=t;setTimeout((()=>{ys(t)?this.events.emit(Lt("pairing_ping",r),{}):vs(t)&&this.events.emit(Lt("pairing_ping",r),{error:t.error})}),500)},this.onPairingDeleteRequest=async(e,t)=>{const{id:r}=t;try{this.isValidDisconnect({topic:e}),await this.deletePairing(e),this.events.emit(to,{id:r,topic:e})}catch(i){await this.sendError(r,e,i),this.logger.error(i)}},this.onUnknownRpcMethodRequest=async(e,t)=>{const{id:r,method:i}=t;try{if(this.registeredMethods.includes(i))return;const t=ri("WC_METHOD_UNSUPPORTED",i);await this.sendError(r,e,t),this.logger.error(t)}catch(n){await this.sendError(r,e,n),this.logger.error(n)}},this.onUnknownRpcMethodResponse=e=>{this.registeredMethods.includes(e)||this.logger.error(ri("WC_METHOD_UNSUPPORTED",e))},this.isValidPair=(e,t)=>{var r;if(!gi(e)){const{message:r}=ti("MISSING_OR_INVALID",`pair() params: ${e}`);throw t.setError(Ao),new Error(r)}if(!function(e){function t(e){try{return typeof new URL(e)<"u"}catch{return!1}}try{if(oi(e,!1))return!!t(e)||t(Ht(e))}catch{}return!1}(e.uri)){const{message:r}=ti("MISSING_OR_INVALID",`pair() uri: ${e.uri}`);throw t.setError(Ao),new Error(r)}const i=Fr(e?.uri);if(null==(r=i?.relay)||!r.protocol){const{message:e}=ti("MISSING_OR_INVALID","pair() uri#relay-protocol");throw t.setError(Ao),new Error(e)}if(null==i||!i.symKey){const{message:e}=ti("MISSING_OR_INVALID","pair() uri#symKey");throw t.setError(Ao),new Error(e)}if(null!=i&&i.expiryTimestamp&&(0,R.toMiliseconds)(i?.expiryTimestamp){if(!gi(e)){const{message:t}=ti("MISSING_OR_INVALID",`ping() params: ${e}`);throw new Error(t)}const{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidDisconnect=async e=>{if(!gi(e)){const{message:t}=ti("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw new Error(t)}const{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidPairingTopic=async e=>{if(!oi(e,!1)){const{message:t}=ti("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(t)}if(!this.pairings.keys.includes(e)){const{message:t}=ti("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(t)}if(kt(this.pairings.get(e).expiry)){await this.deletePairing(e);const{message:t}=ti("EXPIRED",`pairing topic: ${e}`);throw new Error(t)}},this.core=e,this.logger=An(t,this.name),this.pairings=new ch(this.core,this.logger,this.name,this.storagePrefix)}get context(){return On(this.logger)}isInitialized(){if(!this.initialized){const{message:e}=ti("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(Cs,(async e=>{const{topic:t,message:r,transportType:i}=e;if(!this.pairings.keys.includes(t)||i===Fs.link_mode||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(r)))return;const n=await this.core.crypto.decode(t,r);try{gs(n)?(this.core.history.set(t,n),this.onRelayEventRequest({topic:t,payload:n})):bs(n)&&(await this.core.history.resolve(n),await this.onRelayEventResponse({topic:t,payload:n}),this.core.history.delete(t,n.id))}catch(s){this.logger.error(s)}}))}registerExpirerEvents(){this.core.expirer.on(ho,(async e=>{const{topic:t}=jt(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit(eo,{topic:t}))}))}}class uh extends Tn{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new g.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Os,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((e=>this.records.set(e.id,e))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(e,t,r)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:e,request:t,chainId:r}),this.records.has(t.id))return;const i={id:t.id,topic:e,request:{method:t.method,params:t.params||null},chainId:r,expiry:qt(R.THIRTY_DAYS)};this.records.set(i.id,i),this.persist(),this.events.emit(io,i)},this.resolve=async e=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:e}),!this.records.has(e.id))return;const t=await this.getRecord(e.id);typeof t.response>"u"&&(t.response=vs(e)?{error:e.error}:{result:e.result},this.records.set(t.id,t),this.persist(),this.events.emit(no,t))},this.get=async(e,t)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:e,id:t}),await this.getRecord(t)),this.delete=(e,t)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:t}),this.values.forEach((r=>{if(r.topic===e){if(typeof t<"u"&&r.id!==t)return;this.records.delete(r.id),this.events.emit(so,r)}})),this.persist()},this.exists=async(e,t)=>(this.isInitialized(),!!this.records.has(t)&&(await this.getRecord(t)).topic===e),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=An(t,this.name)}get context(){return On(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const e=[];return this.values.forEach((t=>{if(typeof t.response<"u")return;const r={topic:t.topic,request:ns(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(r)})),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();const t=this.records.get(e);if(!t){const{message:t}=ti("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(oo)}async restore(){try{const e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){const{message:e}=ti("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(io,(e=>{const t=io;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})})),this.events.on(no,(e=>{const t=no;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})})),this.events.on(so,(e=>{const t=so;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})})),this.core.heartbeat.on(xi,(()=>{this.cleanup()}))}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach((t=>{(0,R.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${t.id}`),this.records.delete(t.id),this.events.emit(so,t,!1),e=!0)})),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){const{message:e}=ti("NOT_INITIALIZED",this.name);throw new Error(e)}}}class fh extends kn{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new g.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Os,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((e=>this.expirations.set(e.target,e))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=e=>{try{const t=this.formatTarget(e);return typeof this.getExpiration(t)<"u"}catch{return!1}},this.set=(e,t)=>{this.isInitialized();const r=this.formatTarget(e),i={target:r,expiry:t};this.expirations.set(r,i),this.checkExpiry(r,i),this.events.emit(ao,{target:r,expiration:i})},this.get=e=>{this.isInitialized();const t=this.formatTarget(e);return this.getExpiration(t)},this.del=e=>{if(this.isInitialized(),this.has(e)){const t=this.formatTarget(e),r=this.getExpiration(t);this.expirations.delete(t),this.events.emit(co,{target:t,expiration:r})}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=An(t,this.name)}get context(){return On(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if("string"==typeof e)return function(e){return Ct("topic",e)}(e);if("number"==typeof e)return function(e){return Ct("id",e)}(e);const{message:t}=ti("UNKNOWN_TYPE","Target type: "+typeof e);throw new Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(uo)}async restore(){try{const e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){const{message:e}=ti("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){const t=this.expirations.get(e);if(!t){const{message:t}=ti("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.warn(t),new Error(t)}return t}checkExpiry(e,t){const{expiry:r}=t;(0,R.toMiliseconds)(r)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(ho,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach(((e,t)=>this.checkExpiry(t,e)))}registerEventListeners(){this.core.heartbeat.on(xi,(()=>this.checkExpirations())),this.events.on(ao,(e=>{const t=ao;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})),this.events.on(ho,(e=>{const t=ho;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})),this.events.on(co,(e=>{const t=co;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}))}isInitialized(){if(!this.initialized){const{message:e}=ti("NOT_INITIALIZED",this.name);throw new Error(e)}}}class dh extends Ln{constructor(e,t,r){super(e,t,r),this.core=e,this.logger=t,this.store=r,this.name="verify-api",this.verifyUrlV3=po,this.storagePrefix=Os,this.version=2,this.init=async()=>{var e;this.isDevEnv||(this.publicKey=await this.store.getItem(this.storeKey),this.publicKey&&(0,R.toMiliseconds)(null==(e=this.publicKey)?void 0:e.expiresAt){if(!St()||this.isDevEnv)return;const t=window.location.origin,{id:r,decryptedId:i}=e,n=`${this.verifyUrlV3}/attestation?projectId=${this.core.projectId}&origin=${t}&id=${r}&decryptedId=${i}`;try{const e=(0,T.getDocument)(),t=this.startAbortTimer(5*R.ONE_SECOND),i=await new Promise(((i,s)=>{const o=()=>{window.removeEventListener("message",c),e.body.removeChild(a),s("attestation aborted")};this.abortController.signal.addEventListener("abort",o);const a=e.createElement("iframe");a.src=n,a.style.display="none",a.addEventListener("error",o,{signal:this.abortController.signal});const c=n=>{if(n.data&&"string"==typeof n.data)try{const s=JSON.parse(n.data);if("verify_attestation"===s.type){if(rt(s.attestation).payload.id!==r)return;clearInterval(t),e.body.removeChild(a),this.abortController.signal.removeEventListener("abort",o),window.removeEventListener("message",c),i(null===s.attestation?"":s.attestation)}}catch(s){this.logger.warn(s)}};e.body.appendChild(a),window.addEventListener("message",c,{signal:this.abortController.signal})}));return this.logger.debug("jwt attestation",i),i}catch(s){this.logger.warn(s)}return""},this.resolve=async e=>{if(this.isDevEnv)return"";const{attestationId:t,hash:r,encryptedId:i}=e;if(""===t)return void this.logger.debug("resolve: attestationId is empty, skipping");if(t){if(rt(t).payload.id!==i)return;const e=await this.isValidJwtAttestation(t);if(e)return e.isVerified?e:void this.logger.warn("resolve: jwt attestation: origin url not verified")}if(!r)return;const n=this.getVerifyUrl(e?.verifyUrl);return this.fetchAttestation(r,n)},this.fetchAttestation=async(e,t)=>{this.logger.debug(`resolving attestation: ${e} from url: ${t}`);const r=this.startAbortTimer(5*R.ONE_SECOND),i=await fetch(`${t}/attestation/${e}?v2Supported=true`,{signal:this.abortController.signal});return clearTimeout(r),200===i.status?await i.json():void 0},this.getVerifyUrl=e=>{let t=e||lo;return go.includes(t)||(this.logger.info(`verify url: ${t}, not included in trusted list, assigning default: ${lo}`),t=lo),t},this.fetchPublicKey=async()=>{try{this.logger.debug(`fetching public key from: ${this.verifyUrlV3}`);const e=this.startAbortTimer(R.FIVE_SECONDS),t=await fetch(`${this.verifyUrlV3}/public-key`,{signal:this.abortController.signal});return clearTimeout(e),await t.json()}catch(Sn){this.logger.warn(Sn)}},this.persistPublicKey=async e=>{this.logger.debug("persisting public key to local storage",e),await this.store.setItem(this.storeKey,e),this.publicKey=e},this.removePublicKey=async()=>{this.logger.debug("removing verify v2 public key from storage"),await this.store.removeItem(this.storeKey),this.publicKey=void 0},this.isValidJwtAttestation=async e=>{const t=await this.getPublicKey();try{if(t)return this.validateAttestation(e,t)}catch(i){this.logger.error(i),this.logger.warn("error validating attestation")}const r=await this.fetchAndPersistPublicKey();try{if(r)return this.validateAttestation(e,r)}catch(i){this.logger.error(i),this.logger.warn("error validating attestation")}},this.getPublicKey=async()=>this.publicKey?this.publicKey:await this.fetchAndPersistPublicKey(),this.fetchAndPersistPublicKey=async()=>{if(this.fetchPromise)return await this.fetchPromise,this.publicKey;this.fetchPromise=new Promise((async e=>{const t=await this.fetchPublicKey();t&&(await this.persistPublicKey(t),e(t))}));const e=await this.fetchPromise;return this.fetchPromise=void 0,e},this.validateAttestation=(e,t)=>{const r=Cr(e,t.publicKey),i={hasExpired:(0,R.toMiliseconds)(r.exp)this.abortController.abort()),(0,R.toMiliseconds)(e))}}class lh extends Dn{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.context="echo",this.registerDeviceToken=async e=>{const{clientId:t,token:r,notificationType:i,enableEncrypted:n=!1}=e,s=`https://echo.walletconnect.com/${this.projectId}/clients`;await fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:t,type:i,token:r,always_raw:n})})},this.logger=An(t,this.context)}}var ph=Object.defineProperty,gh=Object.getOwnPropertySymbols,bh=Object.prototype.hasOwnProperty,yh=Object.prototype.propertyIsEnumerable,vh=(e,t,r)=>t in e?ph(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mh=(e,t)=>{for(var r in t||(t={}))bh.call(t,r)&&vh(e,r,t[r]);if(gh)for(var r of gh(t))yh.call(t,r)&&vh(e,r,t[r]);return e};class wh extends Un{constructor(e,t,r=!0){super(e,t,r),this.core=e,this.logger=t,this.context="event-client",this.storagePrefix=Os,this.storageVersion=.1,this.events=new Map,this.shouldPersist=!1,this.init=async()=>{if(!Bt())try{const e={eventId:zt(),timestamp:Date.now(),domain:this.getAppDomain(),props:{event:"INIT",type:"",properties:{client_id:await this.core.crypto.getClientId(),user_agent:Ot(this.core.relayer.protocol,this.core.relayer.version,Ks)}}};await this.sendEvent([e])}catch(Sn){this.logger.warn(Sn)}},this.createEvent=e=>{const{event:t="ERROR",type:r="",properties:{topic:i,trace:n}}=e,s=zt(),o=this.core.projectId||"",a=Date.now(),c=mh({eventId:s,timestamp:a,props:{event:t,type:r,properties:{topic:i,trace:n}},bundleId:o,domain:this.getAppDomain()},this.setMethods(s));return this.telemetryEnabled&&(this.events.set(s,c),this.shouldPersist=!0),c},this.getEvent=e=>{const{eventId:t,topic:r}=e;if(t)return this.events.get(t);const i=Array.from(this.events.values()).find((e=>e.props.properties.topic===r));return i?mh(mh({},i),this.setMethods(i.eventId)):void 0},this.deleteEvent=e=>{const{eventId:t}=e;this.events.delete(t),this.shouldPersist=!0},this.setEventListeners=()=>{this.core.heartbeat.on(xi,(async()=>{this.shouldPersist&&await this.persist(),this.events.forEach((e=>{(0,R.fromMiliseconds)(Date.now())-(0,R.fromMiliseconds)(e.timestamp)>86400&&(this.events.delete(e.eventId),this.shouldPersist=!0)}))}))},this.setMethods=e=>({addTrace:t=>this.addTrace(e,t),setError:t=>this.setError(e,t)}),this.addTrace=(e,t)=>{const r=this.events.get(e);r&&(r.props.properties.trace.push(t),this.events.set(e,r),this.shouldPersist=!0)},this.setError=(e,t)=>{const r=this.events.get(e);r&&(r.props.type=t,r.timestamp=Date.now(),this.events.set(e,r),this.shouldPersist=!0)},this.persist=async()=>{await this.core.storage.setItem(this.storageKey,Array.from(this.events.values())),this.shouldPersist=!1},this.restore=async()=>{try{const e=await this.core.storage.getItem(this.storageKey)||[];if(!e.length)return;e.forEach((e=>{this.events.set(e.eventId,mh(mh({},e),this.setMethods(e.eventId)))}))}catch(Sn){this.logger.warn(Sn)}},this.submit=async()=>{if(!this.telemetryEnabled||0===this.events.size)return;const e=[];for(const[r,i]of this.events)i.props.type&&e.push(i);if(0!==e.length)try{if((await this.sendEvent(e)).ok)for(const t of e)this.events.delete(t.eventId),this.shouldPersist=!0}catch(t){this.logger.warn(t)}},this.sendEvent=async e=>{const t=this.getAppDomain()?"":"&sp=desktop";return await fetch(`https://pulse.walletconnect.org/batch?projectId=${this.core.projectId}&st=events_sdk&sv=js-${Ks}${t}`,{method:"POST",body:JSON.stringify(e)})},this.getAppDomain=()=>Pt().url,this.logger=An(t,this.context),this.telemetryEnabled=r,r?this.restore().then((async()=>{await this.submit(),this.setEventListeners()})):this.persist()}get storageKey(){return this.storagePrefix+this.storageVersion+this.core.customStoragePrefix+"//"+this.context}}var _h=Object.defineProperty,Eh=Object.getOwnPropertySymbols,Sh=Object.prototype.hasOwnProperty,Ih=Object.prototype.propertyIsEnumerable,Ph=(e,t,r)=>t in e?_h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oh=(e,t)=>{for(var r in t||(t={}))Sh.call(t,r)&&Ph(e,r,t[r]);if(Eh)for(var r of Eh(t))Ih.call(t,r)&&Ph(e,r,t[r]);return e};class Ah extends Rn{constructor(e){var t;super(e),this.protocol="wc",this.version=2,this.name=Ps,this.events=new g.EventEmitter,this.initialized=!1,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.dispatchEnvelope=({topic:e,message:t,sessionExists:r})=>{if(!e||!t)return;const i={topic:e,message:t,publishedAt:Date.now(),transportType:Fs.link_mode};this.relayer.onLinkMessageEvent(i,{sessionExists:r})},this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||Ms,this.customStoragePrefix=null!=e&&e.customStoragePrefix?`:${e.customStoragePrefix}`:"";const r=Pn({level:"string"==typeof e?.logger&&e.logger?e.logger:As}),{logger:i,chunkLoggerController:n}=xn({opts:r,maxSizeInBytes:e?.maxLogBlobSizeInBytes,loggerOverride:e?.logger});this.logChunkController=n,null!=(t=this.logChunkController)&&t.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var e,t;null!=(e=this.logChunkController)&&e.downloadLogsBlobInBrowser&&(null==(t=this.logChunkController)||t.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=An(i,this.name),this.heartbeat=new Ri,this.crypto=new qc(this,this.logger,e?.keychain),this.history=new uh(this,this.logger),this.expirer=new fh(this,this.logger),this.storage=null!=e&&e.storage?e.storage:new on(Oh(Oh({},xs),e?.storageOptions)),this.relayer=new th({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new hh(this,this.logger),this.verify=new dh(this,this.logger,this.storage),this.echoClient=new lh(this.projectId||"",this.logger),this.linkModeSupportedApps=[],this.eventClient=new wh(this,this.logger,e?.telemetryEnabled)}static async init(e){const t=new Ah(e);await t.initialize();const r=await t.crypto.getClientId();return await t.storage.setItem("WALLETCONNECT_CLIENT_ID",r),t}get context(){return On(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return null==(e=this.logChunkController)?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async addLinkModeSupportedApp(e){this.linkModeSupportedApps.includes(e)||(this.linkModeSupportedApps.push(e),await this.storage.setItem(Vs,this.linkModeSupportedApps))}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.eventClient.init(),this.linkModeSupportedApps=await this.storage.getItem(Vs)||[],this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}}const xh=Ah,Rh="client",Th=`wc@2:${Rh}:`,Nh=Rh,Mh="error",Ch="WALLETCONNECT_DEEPLINK_CHOICE",jh="Proposal expired",qh=R.SEVEN_DAYS,kh={wc_sessionPropose:{req:{ttl:R.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1104},res:{ttl:R.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1106},res:{ttl:R.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:R.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:R.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1112},res:{ttl:R.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:R.ONE_DAY,prompt:!1,tag:1114},res:{ttl:R.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:R.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:R.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:R.FIVE_MINUTES,prompt:!1,tag:1119}}},Lh={min:R.FIVE_MINUTES,max:R.SEVEN_DAYS},Dh="IDLE",Uh="ACTIVE",$h=["wc_sessionPropose","wc_sessionRequest","wc_authRequest","wc_sessionAuthenticate"],zh="wc@1.5:auth:",Bh=`${zh}:PUB_KEY`;var Hh=Object.defineProperty,Kh=Object.defineProperties,Fh=Object.getOwnPropertyDescriptors,Vh=Object.getOwnPropertySymbols,Wh=Object.prototype.hasOwnProperty,Gh=Object.prototype.propertyIsEnumerable,Jh=(e,t,r)=>t in e?Hh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yh=(e,t)=>{for(var r in t||(t={}))Wh.call(t,r)&&Jh(e,r,t[r]);if(Vh)for(var r of Vh(t))Gh.call(t,r)&&Jh(e,r,t[r]);return e},Xh=(e,t)=>Kh(e,Fh(t));class Qh extends zn{constructor(e){super(e),this.name="engine",this.events=new(b()),this.initialized=!1,this.requestQueue={state:Dh,queue:[]},this.sessionRequestQueue={state:Dh,queue:[]},this.requestQueueDelay=R.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.relayMessageCache=[],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),await this.registerLinkModeListeners(),this.client.core.pairing.register({methods:Object.keys(kh)}),this.initialized=!0,setTimeout((()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()}),(0,R.toMiliseconds)(this.requestQueueDelay)))},this.connect=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();const t=Xh(Yh({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});await this.isValidConnect(t);const{pairingTopic:r,requiredNamespaces:i,optionalNamespaces:n,sessionProperties:s,relays:o}=t;let a,c=r,h=!1;try{c&&(h=this.client.core.pairing.pairings.get(c).active)}catch(v){throw this.client.logger.error(`connect() -> pairing.get(${c}) failed`),v}if(!c||!h){const{topic:e,uri:t}=await this.client.core.pairing.create();c=e,a=t}if(!c){const{message:e}=ti("NO_MATCHING_KEY",`connect() pairing topic: ${c}`);throw new Error(e)}const u=await this.client.core.crypto.generateKeyPair(),f=kh.wc_sessionPropose.req.ttl||R.FIVE_MINUTES,d=qt(f),l=Yh({requiredNamespaces:i,optionalNamespaces:n,relays:o??[{protocol:"irn"}],proposer:{publicKey:u,metadata:this.client.metadata},expiryTimestamp:d,pairingTopic:c},s&&{sessionProperties:s}),{reject:p,resolve:g,done:b}=Nt(f,jh);this.events.once(Lt("session_connect"),(async({error:e,session:t})=>{if(e)p(e);else if(t){t.self.publicKey=u;const e=Xh(Yh({},t),{pairingTopic:l.pairingTopic,requiredNamespaces:l.requiredNamespaces,optionalNamespaces:l.optionalNamespaces,transportType:Fs.relay});await this.client.session.set(t.topic,e),await this.setExpiry(t.topic,t.expiry),c&&await this.client.core.pairing.updateMetadata({topic:c,metadata:t.peer.metadata}),this.cleanupDuplicatePairings(e),g(e)}}));const y=await this.sendRequest({topic:c,method:"wc_sessionPropose",params:l,throwOnFailedPublish:!0});return await this.setProposal(y,Yh({id:y},l)),{uri:a,approval:b}},this.pair=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{return await this.client.core.pairing.pair(e)}catch(t){throw this.client.logger.error("pair() failed"),t}},this.approve=async e=>{var t,r,i;const n=this.client.core.eventClient.createEvent({properties:{topic:null==(t=e?.id)?void 0:t.toString(),trace:[Mo]}});try{this.isInitialized(),await this.confirmOnlineStateOrThrow()}catch(Dt){throw n.setError(zo),Dt}try{await this.isValidProposalId(e?.id)}catch(Dt){throw this.client.logger.error(`approve() -> proposal.get(${e?.id}) failed`),n.setError(Wo),Dt}try{await this.isValidApprove(e)}catch(Dt){throw this.client.logger.error("approve() -> isValidApprove() failed"),n.setError(Vo),Dt}const{id:s,relayProtocol:o,namespaces:a,sessionProperties:c,sessionConfig:h}=e,u=this.client.proposal.get(s);this.client.core.eventClient.deleteEvent({eventId:n.eventId});const{pairingTopic:f,proposer:d,requiredNamespaces:l,optionalNamespaces:p}=u;let g=null==(r=this.client.core.eventClient)?void 0:r.getEvent({topic:f});g||(g=null==(i=this.client.core.eventClient)?void 0:i.createEvent({type:Mo,properties:{topic:f,trace:[Mo,Co]}}));const b=await this.client.core.crypto.generateKeyPair(),y=d.publicKey,v=await this.client.core.crypto.generateSharedKey(b,y),m=Yh(Yh({relay:{protocol:o??"irn"},namespaces:a,controller:{publicKey:b,metadata:this.client.metadata},expiry:qt(qh)},c&&{sessionProperties:c}),h&&{sessionConfig:h}),w=Fs.relay;g.addTrace(jo);try{await this.client.core.relayer.subscribe(v,{transportType:w})}catch(Dt){throw g.setError(Ho),Dt}g.addTrace(qo);const _=Xh(Yh({},m),{topic:v,requiredNamespaces:l,optionalNamespaces:p,pairingTopic:f,acknowledged:!1,self:m.controller,peer:{publicKey:d.publicKey,metadata:d.metadata},controller:b,transportType:Fs.relay});await this.client.session.set(v,_),g.addTrace(Do);try{g.addTrace(Uo),await this.sendRequest({topic:v,method:"wc_sessionSettle",params:m,throwOnFailedPublish:!0}).catch((e=>{throw g?.setError(Fo),e})),g.addTrace($o),g.addTrace(ko),await this.sendResult({id:s,topic:f,result:{relay:{protocol:o??"irn"},responderPublicKey:b},throwOnFailedPublish:!0}).catch((e=>{throw g?.setError(Ko),e})),g.addTrace(Lo)}catch(Dt){throw this.client.logger.error(Dt),this.client.session.delete(v,ri("USER_DISCONNECTED")),await this.client.core.relayer.unsubscribe(v),Dt}return this.client.core.eventClient.deleteEvent({eventId:g.eventId}),await this.client.core.pairing.updateMetadata({topic:f,metadata:d.metadata}),await this.client.proposal.delete(s,ri("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:f}),await this.setExpiry(v,qt(qh)),{topic:v,acknowledged:()=>Promise.resolve(this.client.session.get(v))}},this.reject=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidReject(e)}catch(n){throw this.client.logger.error("reject() -> isValidReject() failed"),n}const{id:t,reason:r}=e;let i;try{i=this.client.proposal.get(t).pairingTopic}catch(n){throw this.client.logger.error(`reject() -> proposal.get(${t}) failed`),n}i&&(await this.sendError({id:t,topic:i,error:r,rpcOpts:kh.wc_sessionPropose.reject}),await this.client.proposal.delete(t,ri("USER_DISCONNECTED")))},this.update=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidUpdate(e)}catch(h){throw this.client.logger.error("update() -> isValidUpdate() failed"),h}const{topic:t,namespaces:r}=e,{done:i,resolve:n,reject:s}=Nt(),o=rs(),a=is().toString(),c=this.client.session.get(t).namespaces;return this.events.once(Lt("session_update",o),(({error:e})=>{e?s(e):n()})),await this.client.session.update(t,{namespaces:r}),await this.sendRequest({topic:t,method:"wc_sessionUpdate",params:{namespaces:r},throwOnFailedPublish:!0,clientRpcId:o,relayRpcId:a}).catch((e=>{this.client.logger.error(e),this.client.session.update(t,{namespaces:c}),s(e)})),{acknowledged:i}},this.extend=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidExtend(e)}catch(o){throw this.client.logger.error("extend() -> isValidExtend() failed"),o}const{topic:t}=e,r=rs(),{done:i,resolve:n,reject:s}=Nt();return this.events.once(Lt("session_extend",r),(({error:e})=>{e?s(e):n()})),await this.setExpiry(t,qt(qh)),this.sendRequest({topic:t,method:"wc_sessionExtend",params:{},clientRpcId:r,throwOnFailedPublish:!0}).catch((e=>{s(e)})),{acknowledged:i}},this.request=async e=>{this.isInitialized();try{await this.isValidRequest(e)}catch(d){throw this.client.logger.error("request() -> isValidRequest() failed"),d}const{chainId:t,request:r,topic:i,expiry:n=kh.wc_sessionRequest.req.ttl}=e,s=this.client.session.get(i);s?.transportType===Fs.relay&&await this.confirmOnlineStateOrThrow();const o=rs(),a=is().toString(),{done:c,resolve:h,reject:u}=Nt(n,"Request expired. Please try again.");this.events.once(Lt("session_request",o),(({error:e,result:t})=>{e?u(e):h(t)}));const f=this.getAppLinkIfEnabled(s.peer.metadata,s.transportType);return f?(await this.sendRequest({clientRpcId:o,relayRpcId:a,topic:i,method:"wc_sessionRequest",params:{request:Xh(Yh({},r),{expiryTimestamp:qt(n)}),chainId:t},expiry:n,throwOnFailedPublish:!0,appLink:f}).catch((e=>u(e))),this.client.events.emit("session_request_sent",{topic:i,request:r,chainId:t,id:o}),await c()):await Promise.all([new Promise((async e=>{await this.sendRequest({clientRpcId:o,relayRpcId:a,topic:i,method:"wc_sessionRequest",params:{request:Xh(Yh({},r),{expiryTimestamp:qt(n)}),chainId:t},expiry:n,throwOnFailedPublish:!0}).catch((e=>u(e))),this.client.events.emit("session_request_sent",{topic:i,request:r,chainId:t,id:o}),e()})),new Promise((async e=>{var t;if(null==(t=s.sessionConfig)||!t.disableDeepLink){const e=await async function(e,t){let r="";try{if(St()&&(r=localStorage.getItem(t),r))return r;r=await e.getItem(t)}catch(n){console.error(n)}return r}(this.client.core.storage,Ch);await Ut({id:o,topic:i,wcDeepLink:e})}e()})),c()]).then((e=>e[2]))},this.respond=async e=>{this.isInitialized(),await this.isValidRespond(e);const{topic:t,response:r}=e,{id:i}=r,n=this.client.session.get(t);n.transportType===Fs.relay&&await this.confirmOnlineStateOrThrow();const s=this.getAppLinkIfEnabled(n.peer.metadata,n.transportType);ys(r)?await this.sendResult({id:i,topic:t,result:r.result,throwOnFailedPublish:!0,appLink:s}):vs(r)&&await this.sendError({id:i,topic:t,error:r.error,appLink:s}),this.cleanupAfterResponse(e)},this.ping=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidPing(e)}catch(Ai){throw this.client.logger.error("ping() -> isValidPing() failed"),Ai}const{topic:t}=e;if(this.client.session.keys.includes(t)){const e=rs(),r=is().toString(),{done:i,resolve:n,reject:s}=Nt();this.events.once(Lt("session_ping",e),(({error:e})=>{e?s(e):n()})),await Promise.all([this.sendRequest({topic:t,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:e,relayRpcId:r}),i()])}else this.client.core.pairing.pairings.keys.includes(t)&&await this.client.core.pairing.ping({topic:t})},this.emit=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidEmit(e);const{topic:t,event:r,chainId:i}=e,n=is().toString();await this.sendRequest({topic:t,method:"wc_sessionEvent",params:{event:r,chainId:i},throwOnFailedPublish:!0,relayRpcId:n})},this.disconnect=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidDisconnect(e);const{topic:t}=e;if(this.client.session.keys.includes(t))await this.sendRequest({topic:t,method:"wc_sessionDelete",params:ri("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession({topic:t,emitEvent:!1});else{if(!this.client.core.pairing.pairings.keys.includes(t)){const{message:e}=ti("MISMATCHED_TOPIC",`Session or pairing topic not found: ${t}`);throw new Error(e)}await this.client.core.pairing.disconnect({topic:t})}},this.find=e=>(this.isInitialized(),this.client.session.getAll().filter((t=>function(e,t){const{requiredNamespaces:r}=t,i=Object.keys(e.namespaces),n=Object.keys(r);let s=!0;return!!xt(n,i)&&(i.forEach((t=>{const{accounts:i,methods:n,events:o}=e.namespaces[t],a=Jr(i),c=r[t];xt(ht(t,c),a)&&xt(c.methods,n)&&xt(c.events,o)||(s=!1)})),s)}(t,e)))),this.getPendingSessionRequests=()=>this.client.pendingRequest.getAll(),this.authenticate=async(e,t)=>{var r;this.isInitialized(),this.isValidAuthenticate(e);const i=t&&this.client.core.linkModeSupportedApps.includes(t)&&(null==(r=this.client.metadata.redirect)?void 0:r.linkMode),n=i?Fs.link_mode:Fs.relay;n===Fs.relay&&await this.confirmOnlineStateOrThrow();const{chains:s,statement:o="",uri:a,domain:c,nonce:h,type:u,exp:f,nbf:d,methods:l=[],expiry:p}=e,g=[...e.resources||[]],{topic:b,uri:y}=await this.client.core.pairing.create({methods:["wc_sessionAuthenticate"],transportType:n});this.client.logger.info({message:"Generated new pairing",pairing:{topic:b,uri:y}});const v=await this.client.core.crypto.generateKeyPair(),m=Ir(v);if(await Promise.all([this.client.auth.authKeys.set(Bh,{responseTopic:m,publicKey:v}),this.client.auth.pairingTopics.set(m,{topic:m,pairingTopic:b})]),await this.client.core.relayer.subscribe(m,{transportType:n}),this.client.logger.info(`sending request to new pairing topic: ${b}`),l.length>0){const{namespace:e}=at(s[0]);let t=fr(e,"request",l);yr(g)&&(t=lr(t,g.pop())),g.push(t)}const w=p&&p>kh.wc_sessionAuthenticate.req.ttl?p:kh.wc_sessionAuthenticate.req.ttl,_={authPayload:{type:u??"caip122",chains:s,statement:o,aud:a,domain:c,version:"1",nonce:h,iat:(new Date).toISOString(),exp:f,nbf:d,resources:g},requester:{publicKey:v,metadata:this.client.metadata},expiryTimestamp:qt(w)},E={requiredNamespaces:{},optionalNamespaces:{eip155:{chains:s,methods:[...new Set(["personal_sign",...l])],events:["chainChanged","accountsChanged"]}},relays:[{protocol:"irn"}],pairingTopic:b,proposer:{publicKey:v,metadata:this.client.metadata},expiryTimestamp:qt(kh.wc_sessionPropose.req.ttl)},{done:S,resolve:I,reject:P}=Nt(w,"Request expired"),O=async({error:e,session:t})=>{if(this.events.off(Lt("session_request",x),A),e)P(e);else if(t){t.self.publicKey=v,await this.client.session.set(t.topic,t),await this.setExpiry(t.topic,t.expiry),b&&await this.client.core.pairing.updateMetadata({topic:b,metadata:t.peer.metadata});const e=this.client.session.get(t.topic);await this.deleteProposal(R),I({session:e})}},A=async e=>{var r,i,s;if(await this.deletePendingAuthRequest(x,{message:"fulfilled",code:0}),e.error){const t=ri("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return e.error.code===t.code?void 0:(this.events.off(Lt("session_connect"),O),P(e.error.message))}await this.deleteProposal(R),this.events.off(Lt("session_connect"),O);const{cacaos:o,responder:a}=e.result,c=[],h=[];for(const t of o){await sr({cacao:t,projectId:this.client.core.projectId})||(this.client.logger.error(t,"Signature verification failed"),P(ri("SESSION_SETTLEMENT_FAILED","Signature verification failed")));const{p:e}=t,r=yr(e.resources),i=[ir(e.iss)],n=nr(e.iss);if(r){const e=gr(r),t=br(r);c.push(...e),i.push(...t)}for(const t of i)h.push(`${t}:${n}`)}const u=await this.client.core.crypto.generateSharedKey(v,a.publicKey);let f;c.length>0&&(f={topic:u,acknowledged:!0,self:{publicKey:v,metadata:this.client.metadata},peer:a,controller:a.publicKey,expiry:qt(qh),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:b,namespaces:Qr([...new Set(c)],[...new Set(h)]),transportType:n},await this.client.core.relayer.subscribe(u,{transportType:n}),await this.client.session.set(u,f),b&&await this.client.core.pairing.updateMetadata({topic:b,metadata:a.metadata}),f=this.client.session.get(u)),null!=(r=this.client.metadata.redirect)&&r.linkMode&&null!=(i=a.metadata.redirect)&&i.linkMode&&null!=(s=a.metadata.redirect)&&s.universal&&t&&(this.client.core.addLinkModeSupportedApp(a.metadata.redirect.universal),this.client.session.update(u,{transportType:Fs.link_mode})),I({auths:o,session:f})},x=rs(),R=rs();let T;this.events.once(Lt("session_connect"),O),this.events.once(Lt("session_request",x),A);try{if(i){const e=ns("wc_sessionAuthenticate",_,x);this.client.core.history.set(b,e);const r=await this.client.core.crypto.encode("",e,{type:2,encoding:_r});T=Gr(t,b,r)}else await Promise.all([this.sendRequest({topic:b,method:"wc_sessionAuthenticate",params:_,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:x}),this.sendRequest({topic:b,method:"wc_sessionPropose",params:E,expiry:kh.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:R})])}catch(ar){throw this.events.off(Lt("session_connect"),O),this.events.off(Lt("session_request",x),A),ar}return await this.setProposal(R,Yh({id:R},E)),await this.setAuthRequest(x,{request:Xh(Yh({},_),{verifyContext:{}}),pairingTopic:b,transportType:n}),{uri:T??y,response:S}},this.approveSessionAuthenticate=async e=>{const{id:t,auths:r}=e,i=this.client.core.eventClient.createEvent({properties:{topic:t.toString(),trace:[Go]}});try{this.isInitialized()}catch(p){throw i.setError(ta),p}const n=this.getPendingAuthRequest(t);if(!n)throw i.setError(sa),new Error(`Could not find pending auth request with id ${t}`);const s=n.transportType||Fs.relay;s===Fs.relay&&await this.confirmOnlineStateOrThrow();const o=n.requester.publicKey,a=await this.client.core.crypto.generateKeyPair(),c=Ir(o),h={type:1,receiverPublicKey:o,senderPublicKey:a},u=[],f=[];for(const g of r){if(!await sr({cacao:g,projectId:this.client.core.projectId})){i.setError(ra);const e=ri("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw await this.sendError({id:t,topic:c,error:e,encodeOpts:h}),new Error(e.message)}i.addTrace(Yo);const{p:e}=g,r=yr(e.resources),n=[ir(e.iss)],s=nr(e.iss);if(r){const e=gr(r),t=br(r);u.push(...e),n.push(...t)}for(const t of n)f.push(`${t}:${s}`)}const d=await this.client.core.crypto.generateSharedKey(a,o);let l;if(i.addTrace(Jo),u?.length>0){l={topic:d,acknowledged:!0,self:{publicKey:a,metadata:this.client.metadata},peer:{publicKey:o,metadata:n.requester.metadata},controller:o,expiry:qt(qh),authentication:r,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:n.pairingTopic,namespaces:Qr([...new Set(u)],[...new Set(f)]),transportType:s},i.addTrace(Qo);try{await this.client.core.relayer.subscribe(d,{transportType:s})}catch(p){throw i.setError(ia),p}i.addTrace(Zo),await this.client.session.set(d,l),i.addTrace(Xo),await this.client.core.pairing.updateMetadata({topic:n.pairingTopic,metadata:n.requester.metadata})}i.addTrace(ea);try{await this.sendResult({topic:c,id:t,result:{cacaos:r,responder:{publicKey:a,metadata:this.client.metadata}},encodeOpts:h,throwOnFailedPublish:!0,appLink:this.getAppLinkIfEnabled(n.requester.metadata,s)})}catch(p){throw i.setError(na),p}return await this.client.auth.requests.delete(t,{message:"fulfilled",code:0}),await this.client.core.pairing.activate({topic:n.pairingTopic}),this.client.core.eventClient.deleteEvent({eventId:i.eventId}),{session:l}},this.rejectSessionAuthenticate=async e=>{this.isInitialized();const{id:t,reason:r}=e,i=this.getPendingAuthRequest(t);if(!i)throw new Error(`Could not find pending auth request with id ${t}`);i.transportType===Fs.relay&&await this.confirmOnlineStateOrThrow();const n=i.requester.publicKey,s=await this.client.core.crypto.generateKeyPair(),o=Ir(n),a={type:1,receiverPublicKey:n,senderPublicKey:s};await this.sendError({id:t,topic:o,error:r,encodeOpts:a,rpcOpts:kh.wc_sessionAuthenticate.reject,appLink:this.getAppLinkIfEnabled(i.requester.metadata,i.transportType)}),await this.client.auth.requests.delete(t,{message:"rejected",code:0}),await this.client.proposal.delete(t,ri("USER_DISCONNECTED"))},this.formatAuthMessage=e=>{this.isInitialized();const{request:t,iss:r}=e;return or(t,r)},this.processRelayMessageCache=()=>{setTimeout((async()=>{if(0!==this.relayMessageCache.length)for(;this.relayMessageCache.length>0;)try{const e=this.relayMessageCache.shift();e&&await this.onRelayMessage(e)}catch(e){this.client.logger.error(e)}}),50)},this.cleanupDuplicatePairings=async e=>{if(e.pairingTopic)try{const t=this.client.core.pairing.pairings.get(e.pairingTopic),r=this.client.core.pairing.pairings.getAll().filter((r=>{var i,n;return(null==(i=r.peerMetadata)?void 0:i.url)&&(null==(n=r.peerMetadata)?void 0:n.url)===e.peer.metadata.url&&r.topic&&r.topic!==t.topic}));if(0===r.length)return;this.client.logger.info(`Cleaning up ${r.length} duplicate pairing(s)`),await Promise.all(r.map((e=>this.client.core.pairing.disconnect({topic:e.topic})))),this.client.logger.info("Duplicate pairings clean up finished")}catch(t){this.client.logger.error(t)}},this.deleteSession=async e=>{var t;const{topic:r,expirerHasDeleted:i=!1,emitEvent:n=!0,id:s=0}=e,{self:o}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),await this.client.session.delete(r,ri("USER_DISCONNECTED")),this.addToRecentlyDeleted(r,"session"),this.client.core.crypto.keychain.has(o.publicKey)&&await this.client.core.crypto.deleteKeyPair(o.publicKey),this.client.core.crypto.keychain.has(r)&&await this.client.core.crypto.deleteSymKey(r),i||this.client.core.expirer.del(r),this.client.core.storage.removeItem(Ch).catch((e=>this.client.logger.warn(e))),this.getPendingSessionRequests().forEach((e=>{e.topic===r&&this.deletePendingSessionRequest(e.id,ri("USER_DISCONNECTED"))})),r===(null==(t=this.sessionRequestQueue.queue[0])?void 0:t.topic)&&(this.sessionRequestQueue.state=Dh),n&&this.client.events.emit("session_delete",{id:s,topic:r})},this.deleteProposal=async(e,t)=>{if(t)try{const t=this.client.proposal.get(e),r=this.client.core.eventClient.getEvent({topic:t.pairingTopic});r?.setError(Bo)}catch{}await Promise.all([this.client.proposal.delete(e,ri("USER_DISCONNECTED")),t?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"proposal")},this.deletePendingSessionRequest=async(e,t,r=!1)=>{await Promise.all([this.client.pendingRequest.delete(e,t),r?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter((t=>t.id!==e)),r&&(this.sessionRequestQueue.state=Dh,this.client.events.emit("session_request_expire",{id:e}))},this.deletePendingAuthRequest=async(e,t,r=!1)=>{await Promise.all([this.client.auth.requests.delete(e,t),r?Promise.resolve():this.client.core.expirer.del(e)])},this.setExpiry=async(e,t)=>{this.client.session.keys.includes(e)&&(this.client.core.expirer.set(e,t),await this.client.session.update(e,{expiry:t}))},this.setProposal=async(e,t)=>{this.client.core.expirer.set(e,qt(kh.wc_sessionPropose.req.ttl)),await this.client.proposal.set(e,t)},this.setAuthRequest=async(e,t)=>{const{request:r,pairingTopic:i,transportType:n=Fs.relay}=t;this.client.core.expirer.set(e,r.expiryTimestamp),await this.client.auth.requests.set(e,{authPayload:r.authPayload,requester:r.requester,expiryTimestamp:r.expiryTimestamp,id:e,pairingTopic:i,verifyContext:r.verifyContext,transportType:n})},this.setPendingSessionRequest=async e=>{const{id:t,topic:r,params:i,verifyContext:n}=e,s=i.request.expiryTimestamp||qt(kh.wc_sessionRequest.req.ttl);this.client.core.expirer.set(t,s),await this.client.pendingRequest.set(t,{id:t,topic:r,params:i,verifyContext:n})},this.sendRequest=async e=>{const{topic:t,method:i,params:n,expiry:s,relayRpcId:o,clientRpcId:a,throwOnFailedPublish:c,appLink:h}=e,u=ns(i,n,a);let f;const d=!!h;try{const e=d?_r:wr;f=await this.client.core.crypto.encode(t,u,{encoding:e})}catch(g){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${t} failed`),g}let l;if($h.includes(i)){const e=Pr(JSON.stringify(u)),t=Pr(f);l=await this.client.core.verify.register({id:t,decryptedId:e})}const p=kh[i].req;if(p.attestation=l,s&&(p.ttl=s),o&&(p.id=o),this.client.core.history.set(t,u),d){const e=Gr(h,t,f);await r.g.Linking.openURL(e,this.client.name)}else{const e=kh[i].req;s&&(e.ttl=s),o&&(e.id=o),c?(e.internal=Xh(Yh({},e.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(t,f,e)):this.client.core.relayer.publish(t,f,e).catch((e=>this.client.logger.error(e)))}return u.id},this.sendResult=async e=>{const{id:t,topic:i,result:n,throwOnFailedPublish:s,encodeOpts:o,appLink:a}=e,c=ss(t,n);let h;const u=a&&typeof(null==r.g?void 0:r.g.Linking)<"u";try{const e=u?_r:wr;h=await this.client.core.crypto.encode(i,c,Xh(Yh({},o||{}),{encoding:e}))}catch(d){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${i} failed`),d}let f;try{f=await this.client.core.history.get(i,t)}catch(d){throw this.client.logger.error(`sendResult() -> history.get(${i}, ${t}) failed`),d}if(u){const e=Gr(a,i,h);await r.g.Linking.openURL(e,this.client.name)}else{const e=kh[f.request.method].res;s?(e.internal=Xh(Yh({},e.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(i,h,e)):this.client.core.relayer.publish(i,h,e).catch((e=>this.client.logger.error(e)))}await this.client.core.history.resolve(c)},this.sendError=async e=>{const{id:t,topic:i,error:n,encodeOpts:s,rpcOpts:o,appLink:a}=e,c=os(t,n);let h;const u=a&&typeof(null==r.g?void 0:r.g.Linking)<"u";try{const e=u?_r:wr;h=await this.client.core.crypto.encode(i,c,Xh(Yh({},s||{}),{encoding:e}))}catch(d){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${i} failed`),d}let f;try{f=await this.client.core.history.get(i,t)}catch(d){throw this.client.logger.error(`sendError() -> history.get(${i}, ${t}) failed`),d}if(u){const e=Gr(a,i,h);await r.g.Linking.openURL(e,this.client.name)}else{const e=o||kh[f.request.method].res;this.client.core.relayer.publish(i,h,e)}await this.client.core.history.resolve(c)},this.cleanup=async()=>{const e=[],t=[];this.client.session.getAll().forEach((t=>{let r=!1;kt(t.expiry)&&(r=!0),this.client.core.crypto.keychain.has(t.topic)||(r=!0),r&&e.push(t.topic)})),this.client.proposal.getAll().forEach((e=>{kt(e.expiryTimestamp)&&t.push(e.id)})),await Promise.all([...e.map((e=>this.deleteSession({topic:e}))),...t.map((e=>this.deleteProposal(e)))])},this.onRelayEventRequest=async e=>{this.requestQueue.queue.push(e),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state!==Uh){for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=Uh;const t=this.requestQueue.queue.shift();if(t)try{await this.processRequest(t)}catch(e){this.client.logger.warn(e)}}this.requestQueue.state=Dh}else this.client.logger.info("Request queue already active, skipping...")},this.processRequest=async e=>{const{topic:t,payload:r,attestation:i,transportType:n,encryptedId:s}=e,o=r.method;if(!this.shouldIgnorePairingRequest({topic:t,requestMethod:o}))switch(o){case"wc_sessionPropose":return await this.onSessionProposeRequest({topic:t,payload:r,attestation:i,encryptedId:s});case"wc_sessionSettle":return await this.onSessionSettleRequest(t,r);case"wc_sessionUpdate":return await this.onSessionUpdateRequest(t,r);case"wc_sessionExtend":return await this.onSessionExtendRequest(t,r);case"wc_sessionPing":return await this.onSessionPingRequest(t,r);case"wc_sessionDelete":return await this.onSessionDeleteRequest(t,r);case"wc_sessionRequest":return await this.onSessionRequest({topic:t,payload:r,attestation:i,encryptedId:s,transportType:n});case"wc_sessionEvent":return await this.onSessionEventRequest(t,r);case"wc_sessionAuthenticate":return await this.onSessionAuthenticateRequest({topic:t,payload:r,attestation:i,encryptedId:s,transportType:n});default:return this.client.logger.info(`Unsupported request method ${o}`)}},this.onRelayEventResponse=async e=>{const{topic:t,payload:r,transportType:i}=e,n=(await this.client.core.history.get(t,r.id)).request.method;switch(n){case"wc_sessionPropose":return this.onSessionProposeResponse(t,r,i);case"wc_sessionSettle":return this.onSessionSettleResponse(t,r);case"wc_sessionUpdate":return this.onSessionUpdateResponse(t,r);case"wc_sessionExtend":return this.onSessionExtendResponse(t,r);case"wc_sessionPing":return this.onSessionPingResponse(t,r);case"wc_sessionRequest":return this.onSessionRequestResponse(t,r);case"wc_sessionAuthenticate":return this.onSessionAuthenticateResponse(t,r);default:return this.client.logger.info(`Unsupported response method ${n}`)}},this.onRelayEventUnknownPayload=e=>{const{topic:t}=e,{message:r}=ti("MISSING_OR_INVALID",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`);throw new Error(r)},this.shouldIgnorePairingRequest=e=>{const{topic:t,requestMethod:r}=e,i=this.expectedPairingMethodMap.get(t);return!(!i||i.includes(r))&&!!(i.includes("wc_sessionAuthenticate")&&this.client.events.listenerCount("session_authenticate")>0)},this.onSessionProposeRequest=async e=>{const{topic:t,payload:r,attestation:i,encryptedId:n}=e,{params:s,id:o}=r;try{const e=this.client.core.eventClient.getEvent({topic:t});this.isValidConnect(Yh({},r.params));const a=s.expiryTimestamp||qt(kh.wc_sessionPropose.req.ttl),c=Yh({id:o,pairingTopic:t,expiryTimestamp:a},s);await this.setProposal(o,c);const h=await this.getVerifyContext({attestationId:i,hash:Pr(JSON.stringify(r)),encryptedId:n,metadata:c.proposer.metadata});0===this.client.events.listenerCount("session_proposal")&&(console.warn("No listener for session_proposal event"),e?.setError(No)),e?.addTrace(Po),this.client.events.emit("session_proposal",{id:o,params:c,verifyContext:h})}catch(a){await this.sendError({id:o,topic:t,error:a,rpcOpts:kh.wc_sessionPropose.autoReject}),this.client.logger.error(a)}},this.onSessionProposeResponse=async(e,t,r)=>{const{id:i}=t;if(ys(t)){const{result:n}=t;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:n});const s=this.client.proposal.get(i);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:s});const o=s.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:o});const a=n.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:a});const c=await this.client.core.crypto.generateSharedKey(o,a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:c});const h=await this.client.core.relayer.subscribe(c,{transportType:r});this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:h}),await this.client.core.pairing.activate({topic:e})}else if(vs(t)){await this.client.proposal.delete(i,ri("USER_DISCONNECTED"));const e=Lt("session_connect");if(0===this.events.listenerCount(e))throw new Error(`emitting ${e} without any listeners, 954`);this.events.emit(Lt("session_connect"),{error:t.error})}},this.onSessionSettleRequest=async(e,t)=>{const{id:r,params:i}=t;try{this.isValidSessionSettleRequest(i);const{relay:r,controller:n,expiry:s,namespaces:o,sessionProperties:a,sessionConfig:c}=t.params,h=Xh(Yh(Yh({topic:e,relay:r,expiry:s,namespaces:o,acknowledged:!0,pairingTopic:"",requiredNamespaces:{},optionalNamespaces:{},controller:n.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:n.publicKey,metadata:n.metadata}},a&&{sessionProperties:a}),c&&{sessionConfig:c}),{transportType:Fs.relay}),u=Lt("session_connect");if(0===this.events.listenerCount(u))throw new Error(`emitting ${u} without any listeners 997`);this.events.emit(Lt("session_connect"),{session:h}),await this.sendResult({id:t.id,topic:e,result:!0,throwOnFailedPublish:!0})}catch(n){await this.sendError({id:r,topic:e,error:n}),this.client.logger.error(n)}},this.onSessionSettleResponse=async(e,t)=>{const{id:r}=t;ys(t)?(await this.client.session.update(e,{acknowledged:!0}),this.events.emit(Lt("session_approve",r),{})):vs(t)&&(await this.client.session.delete(e,ri("USER_DISCONNECTED")),this.events.emit(Lt("session_approve",r),{error:t.error}))},this.onSessionUpdateRequest=async(e,t)=>{const{params:r,id:i}=t;try{const t=`${e}_session_update`,s=Ii.get(t);if(s&&this.isRequestOutOfSync(s,i))return this.client.logger.info(`Discarding out of sync request - ${i}`),void this.sendError({id:i,topic:e,error:ri("INVALID_UPDATE_REQUEST")});this.isValidUpdate(Yh({topic:e},r));try{Ii.set(t,i),await this.client.session.update(e,{namespaces:r.namespaces}),await this.sendResult({id:i,topic:e,result:!0,throwOnFailedPublish:!0})}catch(n){throw Ii.delete(t),n}this.client.events.emit("session_update",{id:i,topic:e,params:r})}catch(s){await this.sendError({id:i,topic:e,error:s}),this.client.logger.error(s)}},this.isRequestOutOfSync=(e,t)=>parseInt(t.toString().slice(0,-3))<=parseInt(e.toString().slice(0,-3)),this.onSessionUpdateResponse=(e,t)=>{const{id:r}=t,i=Lt("session_update",r);if(0===this.events.listenerCount(i))throw new Error(`emitting ${i} without any listeners`);ys(t)?this.events.emit(Lt("session_update",r),{}):vs(t)&&this.events.emit(Lt("session_update",r),{error:t.error})},this.onSessionExtendRequest=async(e,t)=>{const{id:r}=t;try{this.isValidExtend({topic:e}),await this.setExpiry(e,qt(qh)),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_extend",{id:r,topic:e})}catch(Sn){await this.sendError({id:r,topic:e,error:Sn}),this.client.logger.error(Sn)}},this.onSessionExtendResponse=(e,t)=>{const{id:r}=t,i=Lt("session_extend",r);if(0===this.events.listenerCount(i))throw new Error(`emitting ${i} without any listeners`);ys(t)?this.events.emit(Lt("session_extend",r),{}):vs(t)&&this.events.emit(Lt("session_extend",r),{error:t.error})},this.onSessionPingRequest=async(e,t)=>{const{id:r}=t;try{this.isValidPing({topic:e}),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_ping",{id:r,topic:e})}catch(Sn){await this.sendError({id:r,topic:e,error:Sn}),this.client.logger.error(Sn)}},this.onSessionPingResponse=(e,t)=>{const{id:r}=t,i=Lt("session_ping",r);if(0===this.events.listenerCount(i))throw new Error(`emitting ${i} without any listeners`);setTimeout((()=>{ys(t)?this.events.emit(Lt("session_ping",r),{}):vs(t)&&this.events.emit(Lt("session_ping",r),{error:t.error})}),500)},this.onSessionDeleteRequest=async(e,t)=>{const{id:r}=t;try{this.isValidDisconnect({topic:e,reason:t.params}),Promise.all([new Promise((t=>{this.client.core.relayer.once(Us,(async()=>{t(await this.deleteSession({topic:e,id:r}))}))})),this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:e,error:ri("USER_DISCONNECTED")})]).catch((e=>this.client.logger.error(e)))}catch(Sn){this.client.logger.error(Sn)}},this.onSessionRequest=async e=>{var t,r,i;const{topic:n,payload:s,attestation:o,encryptedId:a,transportType:c}=e,{id:h,params:u}=s;try{await this.isValidRequest(Yh({topic:n},u));const e=this.client.session.get(n),s={id:h,topic:n,params:u,verifyContext:await this.getVerifyContext({attestationId:o,hash:Pr(JSON.stringify(ns("wc_sessionRequest",u,h))),encryptedId:a,metadata:e.peer.metadata,transportType:c})};await this.setPendingSessionRequest(s),c===Fs.link_mode&&null!=(t=e.peer.metadata.redirect)&&t.universal&&this.client.core.addLinkModeSupportedApp(null==(r=e.peer.metadata.redirect)?void 0:r.universal),null!=(i=this.client.signConfig)&&i.disableRequestQueue?this.emitSessionRequest(s):(this.addSessionRequestToSessionRequestQueue(s),this.processSessionRequestQueue())}catch(f){await this.sendError({id:h,topic:n,error:f}),this.client.logger.error(f)}},this.onSessionRequestResponse=(e,t)=>{const{id:r}=t,i=Lt("session_request",r);if(0===this.events.listenerCount(i))throw new Error(`emitting ${i} without any listeners`);ys(t)?this.events.emit(Lt("session_request",r),{result:t.result}):vs(t)&&this.events.emit(Lt("session_request",r),{error:t.error})},this.onSessionEventRequest=async(e,t)=>{const{id:r,params:i}=t;try{const t=`${e}_session_event_${i.event.name}`,n=Ii.get(t);if(n&&this.isRequestOutOfSync(n,r))return void this.client.logger.info(`Discarding out of sync request - ${r}`);this.isValidEmit(Yh({topic:e},i)),this.client.events.emit("session_event",{id:r,topic:e,params:i}),Ii.set(t,r)}catch(n){await this.sendError({id:r,topic:e,error:n}),this.client.logger.error(n)}},this.onSessionAuthenticateResponse=(e,t)=>{const{id:r}=t;this.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:e,payload:t}),ys(t)?this.events.emit(Lt("session_request",r),{result:t.result}):vs(t)&&this.events.emit(Lt("session_request",r),{error:t.error})},this.onSessionAuthenticateRequest=async e=>{var t;const{topic:r,payload:i,attestation:n,encryptedId:s,transportType:o}=e;try{const{requester:e,authPayload:a,expiryTimestamp:c}=i.params,h=await this.getVerifyContext({attestationId:n,hash:Pr(JSON.stringify(i)),encryptedId:s,metadata:e.metadata,transportType:o}),u={requester:e,pairingTopic:r,id:i.id,authPayload:a,verifyContext:h,expiryTimestamp:c};await this.setAuthRequest(i.id,{request:u,pairingTopic:r,transportType:o}),o===Fs.link_mode&&null!=(t=e.metadata.redirect)&&t.universal&&this.client.core.addLinkModeSupportedApp(e.metadata.redirect.universal),this.client.events.emit("session_authenticate",{topic:r,params:i.params,id:i.id,verifyContext:h})}catch(a){this.client.logger.error(a);const e=i.params.requester.publicKey,t=await this.client.core.crypto.generateKeyPair(),n=this.getAppLinkIfEnabled(i.params.requester.metadata,o),s={type:1,receiverPublicKey:e,senderPublicKey:t};await this.sendError({id:i.id,topic:r,error:a,encodeOpts:s,rpcOpts:kh.wc_sessionAuthenticate.autoReject,appLink:n})}},this.addSessionRequestToSessionRequestQueue=e=>{this.sessionRequestQueue.queue.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:"fulfilled",code:0}),setTimeout((()=>{this.sessionRequestQueue.state=Dh,this.processSessionRequestQueue()}),(0,R.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=({topic:e,error:t})=>{const r=this.client.core.history.pending;r.length>0&&r.filter((t=>t.topic===e&&"wc_sessionRequest"===t.request.method)).forEach((e=>{const r=Lt("session_request",e.request.id);if(0===this.events.listenerCount(r))throw new Error(`emitting ${r} without any listeners`);this.events.emit(Lt("session_request",e.request.id),{error:t})}))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===Uh)return void this.client.logger.info("session request queue is already active.");const e=this.sessionRequestQueue.queue[0];if(e)try{this.sessionRequestQueue.state=Uh,this.emitSessionRequest(e)}catch(t){this.client.logger.error(t)}else this.client.logger.info("session request queue is empty.")},this.emitSessionRequest=e=>{this.client.events.emit("session_request",e)},this.onPairingCreated=e=>{if(e.methods&&this.expectedPairingMethodMap.set(e.topic,e.methods),e.active)return;const t=this.client.proposal.getAll().find((t=>t.pairingTopic===e.topic));t&&this.onSessionProposeRequest({topic:e.topic,payload:ns("wc_sessionPropose",{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces,relays:t.relays,proposer:t.proposer,sessionProperties:t.sessionProperties},t.id)})},this.isValidConnect=async e=>{if(!gi(e)){const{message:t}=ti("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(e)}`);throw new Error(t)}const{pairingTopic:t,requiredNamespaces:r,optionalNamespaces:i,sessionProperties:n,relays:s}=e;if(si(t)||await this.isValidPairingTopic(t),!function(e,t){let r=!1;return t&&!e?r=!0:e&&ii(e)&&e.length&&e.forEach((e=>{r=pi(e)})),r}(s,!0)){const{message:e}=ti("MISSING_OR_INVALID",`connect() relays: ${s}`);throw new Error(e)}!si(r)&&0!==ni(r)&&this.validateNamespaces(r,"requiredNamespaces"),!si(i)&&0!==ni(i)&&this.validateNamespaces(i,"optionalNamespaces"),si(n)||this.validateSessionProps(n,"sessionProperties")},this.validateNamespaces=(e,t)=>{const r=function(e,t,r){let i=null;if(e&&ni(e)){const n=di(e,t);n&&(i=n);const s=ui(e,t,r);s&&(i=s)}else i=ti("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return i}(e,"connect()",t);if(r)throw new Error(r.message)},this.isValidApprove=async e=>{if(!gi(e))throw new Error(ti("MISSING_OR_INVALID",`approve() params: ${e}`).message);const{id:t,namespaces:r,relayProtocol:i,sessionProperties:n}=e;this.checkRecentlyDeleted(t),await this.isValidProposalId(t);const s=this.client.proposal.get(t),o=li(r,"approve()");if(o)throw new Error(o.message);const a=mi(s.requiredNamespaces,r,"approve()");if(a)throw new Error(a.message);if(!oi(i,!0)){const{message:e}=ti("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw new Error(e)}si(n)||this.validateSessionProps(n,"sessionProperties")},this.isValidReject=async e=>{if(!gi(e)){const{message:t}=ti("MISSING_OR_INVALID",`reject() params: ${e}`);throw new Error(t)}const{id:t,reason:r}=e;if(this.checkRecentlyDeleted(t),await this.isValidProposalId(t),!function(e){return!!(e&&"object"==typeof e&&e.code&&ai(e.code,!1)&&e.message&&oi(e.message,!1))}(r)){const{message:e}=ti("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(r)}`);throw new Error(e)}},this.isValidSessionSettleRequest=e=>{if(!gi(e)){const{message:t}=ti("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${e}`);throw new Error(t)}const{relay:t,controller:r,namespaces:i,expiry:n}=e;if(!pi(t)){const{message:e}=ti("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(e)}const s=function(e,t){let r=null;return oi(e?.publicKey,!1)||(r=ti("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}(r,"onSessionSettleRequest()");if(s)throw new Error(s.message);const o=li(i,"onSessionSettleRequest()");if(o)throw new Error(o.message);if(kt(n)){const{message:e}=ti("EXPIRED","onSessionSettleRequest()");throw new Error(e)}},this.isValidUpdate=async e=>{if(!gi(e)){const{message:t}=ti("MISSING_OR_INVALID",`update() params: ${e}`);throw new Error(t)}const{topic:t,namespaces:r}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);const i=this.client.session.get(t),n=li(r,"update()");if(n)throw new Error(n.message);const s=mi(i.requiredNamespaces,r,"update()");if(s)throw new Error(s.message)},this.isValidExtend=async e=>{if(!gi(e)){const{message:t}=ti("MISSING_OR_INVALID",`extend() params: ${e}`);throw new Error(t)}const{topic:t}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t)},this.isValidRequest=async e=>{if(!gi(e)){const{message:t}=ti("MISSING_OR_INVALID",`request() params: ${e}`);throw new Error(t)}const{topic:t,request:r,chainId:i,expiry:n}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);const{namespaces:s}=this.client.session.get(t);if(!bi(s,i)){const{message:e}=ti("MISSING_OR_INVALID",`request() chainId: ${i}`);throw new Error(e)}if(!function(e){return!(si(e)||!oi(e.method,!1))}(r)){const{message:e}=ti("MISSING_OR_INVALID",`request() ${JSON.stringify(r)}`);throw new Error(e)}if(!yi(s,i,r.method)){const{message:e}=ti("MISSING_OR_INVALID",`request() method: ${r.method}`);throw new Error(e)}if(n&&!function(e,t){return ai(e,!1)&&e<=t.max&&e>=t.min}(n,Lh)){const{message:e}=ti("MISSING_OR_INVALID",`request() expiry: ${n}. Expiry must be a number (in seconds) between ${Lh.min} and ${Lh.max}`);throw new Error(e)}},this.isValidRespond=async e=>{var t;if(!gi(e)){const{message:t}=ti("MISSING_OR_INVALID",`respond() params: ${e}`);throw new Error(t)}const{topic:r,response:i}=e;try{await this.isValidSessionTopic(r)}catch(n){throw null!=(t=e?.response)&&t.id&&this.cleanupAfterResponse(e),n}if(!function(e){return!(si(e)||si(e.result)&&si(e.error)||!ai(e.id,!1)||!oi(e.jsonrpc,!1))}(i)){const{message:e}=ti("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(i)}`);throw new Error(e)}},this.isValidPing=async e=>{if(!gi(e)){const{message:t}=ti("MISSING_OR_INVALID",`ping() params: ${e}`);throw new Error(t)}const{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidEmit=async e=>{if(!gi(e)){const{message:t}=ti("MISSING_OR_INVALID",`emit() params: ${e}`);throw new Error(t)}const{topic:t,event:r,chainId:i}=e;await this.isValidSessionTopic(t);const{namespaces:n}=this.client.session.get(t);if(!bi(n,i)){const{message:e}=ti("MISSING_OR_INVALID",`emit() chainId: ${i}`);throw new Error(e)}if(!function(e){return!(si(e)||!oi(e.name,!1))}(r)){const{message:e}=ti("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw new Error(e)}if(!vi(n,i,r.name)){const{message:e}=ti("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw new Error(e)}},this.isValidDisconnect=async e=>{if(!gi(e)){const{message:t}=ti("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw new Error(t)}const{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidAuthenticate=e=>{const{chains:t,uri:r,domain:i,nonce:n}=e;if(!Array.isArray(t)||0===t.length)throw new Error("chains is required and must be a non-empty array");if(!oi(r,!1))throw new Error("uri is required parameter");if(!oi(i,!1))throw new Error("domain is required parameter");if(!oi(n,!1))throw new Error("nonce is required parameter");if([...new Set(t.map((e=>at(e).namespace)))].length>1)throw new Error("Multi-namespace requests are not supported. Please request single namespace only.");const{namespace:s}=at(t[0]);if("eip155"!==s)throw new Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},this.getVerifyContext=async e=>{const{attestationId:t,hash:r,encryptedId:i,metadata:n,transportType:s}=e,o={verified:{verifyUrl:n.verifyUrl||lo,validation:"UNKNOWN",origin:n.url||""}};try{if(s===Fs.link_mode){const e=this.getAppLinkIfEnabled(n,s);return o.verified.validation=e&&new URL(e).origin===new URL(n.url).origin?"VALID":"INVALID",o}const e=await this.client.core.verify.resolve({attestationId:t,hash:r,encryptedId:i,verifyUrl:n.verifyUrl});e&&(o.verified.origin=e.origin,o.verified.isScam=e.isScam,o.verified.validation=e.origin===new URL(n.url).origin?"VALID":"INVALID")}catch(a){this.client.logger.warn(a)}return this.client.logger.debug(`Verify context: ${JSON.stringify(o)}`),o},this.validateSessionProps=(e,t)=>{Object.values(e).forEach((e=>{if(!oi(e,!1)){const{message:r}=ti("MISSING_OR_INVALID",`${t} must be in Record format. Received: ${JSON.stringify(e)}`);throw new Error(r)}}))},this.getPendingAuthRequest=e=>{const t=this.client.auth.requests.get(e);return"object"==typeof t?t:void 0},this.addToRecentlyDeleted=(e,t)=>{if(this.recentlyDeletedMap.set(e,t),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let e=0;const t=this.recentlyDeletedLimit/2;for(const r of this.recentlyDeletedMap.keys()){if(e++>=t)break;this.recentlyDeletedMap.delete(r)}}},this.checkRecentlyDeleted=e=>{const t=this.recentlyDeletedMap.get(e);if(t){const{message:r}=ti("MISSING_OR_INVALID",`Record was recently deleted - ${t}: ${e}`);throw new Error(r)}},this.isLinkModeEnabled=(e,t)=>{var i,n,s,o,a,c,h,u,f;return!(!e||t!==Fs.link_mode)&&(!0===(null==(n=null==(i=this.client.metadata)?void 0:i.redirect)?void 0:n.linkMode)&&void 0!==(null==(o=null==(s=this.client.metadata)?void 0:s.redirect)?void 0:o.universal)&&""!==(null==(c=null==(a=this.client.metadata)?void 0:a.redirect)?void 0:c.universal)&&void 0!==(null==(h=e?.redirect)?void 0:h.universal)&&""!==(null==(u=e?.redirect)?void 0:u.universal)&&!0===(null==(f=e?.redirect)?void 0:f.linkMode)&&this.client.core.linkModeSupportedApps.includes(e.redirect.universal)&&typeof(null==r.g?void 0:r.g.Linking)<"u")},this.getAppLinkIfEnabled=(e,t)=>{var r;return this.isLinkModeEnabled(e,t)?null==(r=e?.redirect)?void 0:r.universal:void 0},this.handleLinkModeMessage=({url:e})=>{if(!e||!e.includes("wc_ev")||!e.includes("topic"))return;const t=$t(e,"topic")||"",r=decodeURIComponent($t(e,"wc_ev")||""),i=this.client.session.keys.includes(t);i&&this.client.session.update(t,{transportType:Fs.link_mode}),this.client.core.dispatchEnvelope({topic:t,message:r,sessionExists:i})},this.registerLinkModeListeners=async()=>{var e;if(Bt()||Et()&&null!=(e=this.client.metadata.redirect)&&e.linkMode){const e=null==r.g?void 0:r.g.Linking;if(typeof e<"u"){e.addEventListener("url",this.handleLinkModeMessage,this.client.name);const t=await e.getInitialURL();t&&setTimeout((()=>{this.handleLinkModeMessage({url:t})}),50)}}}}isInitialized(){if(!this.initialized){const{message:e}=ti("NOT_INITIALIZED",this.name);throw new Error(e)}}async confirmOnlineStateOrThrow(){await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(Cs,(e=>{!this.initialized||this.relayMessageCache.length>0?this.relayMessageCache.push(e):this.onRelayMessage(e)}))}async onRelayMessage(e){const{topic:t,message:r,attestation:i,transportType:n}=e,{publicKey:s}=this.client.auth.authKeys.keys.includes(Bh)?this.client.auth.authKeys.get(Bh):{responseTopic:void 0,publicKey:void 0},o=await this.client.core.crypto.decode(t,r,{receiverPublicKey:s,encoding:n===Fs.link_mode?_r:wr});try{gs(o)?(this.client.core.history.set(t,o),this.onRelayEventRequest({topic:t,payload:o,attestation:i,transportType:n,encryptedId:Pr(r)})):bs(o)?(await this.client.core.history.resolve(o),await this.onRelayEventResponse({topic:t,payload:o,transportType:n}),this.client.core.history.delete(t,o.id)):this.onRelayEventUnknownPayload({topic:t,payload:o,transportType:n})}catch(a){this.client.logger.error(a)}}registerExpirerEvents(){this.client.core.expirer.on(ho,(async e=>{const{topic:t,id:r}=jt(e.target);return r&&this.client.pendingRequest.keys.includes(r)?await this.deletePendingSessionRequest(r,ti("EXPIRED"),!0):r&&this.client.auth.requests.keys.includes(r)?await this.deletePendingAuthRequest(r,ti("EXPIRED"),!0):void(t?this.client.session.keys.includes(t)&&(await this.deleteSession({topic:t,expirerHasDeleted:!0}),this.client.events.emit("session_expire",{topic:t})):r&&(await this.deleteProposal(r,!0),this.client.events.emit("proposal_expire",{id:r})))}))}registerPairingEvents(){this.client.core.pairing.events.on(Zs,(e=>this.onPairingCreated(e))),this.client.core.pairing.events.on(to,(e=>{this.addToRecentlyDeleted(e.topic,"pairing")}))}isValidPairingTopic(e){if(!oi(e,!1)){const{message:t}=ti("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){const{message:t}=ti("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(t)}if(kt(this.client.core.pairing.pairings.get(e).expiry)){const{message:t}=ti("EXPIRED",`pairing topic: ${e}`);throw new Error(t)}}async isValidSessionTopic(e){if(!oi(e,!1)){const{message:t}=ti("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw new Error(t)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){const{message:t}=ti("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw new Error(t)}if(kt(this.client.session.get(e).expiry)){await this.deleteSession({topic:e});const{message:t}=ti("EXPIRED",`session topic: ${e}`);throw new Error(t)}if(!this.client.core.crypto.keychain.has(e)){const{message:t}=ti("MISSING_OR_INVALID",`session topic does not exist in keychain: ${e}`);throw await this.deleteSession({topic:e}),new Error(t)}}async isValidSessionOrPairingTopic(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else{if(!this.client.core.pairing.pairings.keys.includes(e)){if(oi(e,!1)){const{message:t}=ti("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw new Error(t)}{const{message:t}=ti("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw new Error(t)}}this.isValidPairingTopic(e)}}async isValidProposalId(e){if(!function(e){return"number"==typeof e}(e)){const{message:t}=ti("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw new Error(t)}if(!this.client.proposal.keys.includes(e)){const{message:t}=ti("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw new Error(t)}if(kt(this.client.proposal.get(e).expiryTimestamp)){await this.deleteProposal(e);const{message:t}=ti("EXPIRED",`proposal id: ${e}`);throw new Error(t)}}}class Zh extends ch{constructor(e,t){super(e,t,"proposal",Th),this.core=e,this.logger=t}}class eu extends ch{constructor(e,t){super(e,t,"session",Th),this.core=e,this.logger=t}}class tu extends ch{constructor(e,t){super(e,t,"request",Th,(e=>e.id)),this.core=e,this.logger=t}}class ru extends ch{constructor(e,t){super(e,t,"authKeys",zh,(()=>Bh)),this.core=e,this.logger=t}}class iu extends ch{constructor(e,t){super(e,t,"pairingTopics",zh),this.core=e,this.logger=t}}class nu extends ch{constructor(e,t){super(e,t,"requests",zh,(e=>e.id)),this.core=e,this.logger=t}}class su{constructor(e,t){this.core=e,this.logger=t,this.authKeys=new ru(this.core,this.logger),this.pairingTopics=new iu(this.core,this.logger),this.requests=new nu(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}class ou extends $n{constructor(e){super(e),this.protocol="wc",this.version=2,this.name=Nh,this.events=new g.EventEmitter,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.removeAllListeners=e=>this.events.removeAllListeners(e),this.connect=async e=>{try{return await this.engine.connect(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.pair=async e=>{try{return await this.engine.pair(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.approve=async e=>{try{return await this.engine.approve(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.reject=async e=>{try{return await this.engine.reject(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.update=async e=>{try{return await this.engine.update(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.extend=async e=>{try{return await this.engine.extend(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.request=async e=>{try{return await this.engine.request(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.respond=async e=>{try{return await this.engine.respond(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.ping=async e=>{try{return await this.engine.ping(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.emit=async e=>{try{return await this.engine.emit(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.disconnect=async e=>{try{return await this.engine.disconnect(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.find=e=>{try{return this.engine.find(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(e){throw this.logger.error(e.message),e}},this.authenticate=async(e,t)=>{try{return await this.engine.authenticate(e,t)}catch(Sn){throw this.logger.error(Sn.message),Sn}},this.formatAuthMessage=e=>{try{return this.engine.formatAuthMessage(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.approveSessionAuthenticate=async e=>{try{return await this.engine.approveSessionAuthenticate(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.rejectSessionAuthenticate=async e=>{try{return await this.engine.rejectSessionAuthenticate(e)}catch(Ai){throw this.logger.error(Ai.message),Ai}},this.name=e?.name||Nh,this.metadata=e?.metadata||Pt(),this.signConfig=e?.signConfig;const t=typeof e?.logger<"u"&&"string"!=typeof e?.logger?e.logger:cn()(Pn({level:e?.logger||Mh}));this.core=e?.core||new xh(e),this.logger=An(t,this.name),this.session=new eu(this.core,this.logger),this.proposal=new Zh(this.core,this.logger),this.pendingRequest=new tu(this.core,this.logger),this.engine=new Qh(this),this.auth=new su(this.core,this.logger)}static async init(e){const t=new ou(e);return await t.initialize(),t}get context(){return On(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.auth.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success"),this.engine.processRelayMessageCache()}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}}var au=r(302543),cu=r(21222),hu=r.n(cu),uu=Object.defineProperty,fu=Object.defineProperties,du=Object.getOwnPropertyDescriptors,lu=Object.getOwnPropertySymbols,pu=Object.prototype.hasOwnProperty,gu=Object.prototype.propertyIsEnumerable,bu=(e,t,r)=>t in e?uu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yu=(e,t)=>{for(var r in t||(t={}))pu.call(t,r)&&bu(e,r,t[r]);if(lu)for(var r of lu(t))gu.call(t,r)&&bu(e,r,t[r]);return e},vu=(e,t)=>fu(e,du(t));const mu={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};class wu{constructor(e,t=!1){if(this.url=e,this.disableProviderPing=t,this.events=new g.EventEmitter,this.isAvailable=!1,this.registering=!1,!ds(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=t}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(e){this.isAvailable||await this.register();try{const t=Xe(e),r=await(await hu()(this.url,vu(yu({},mu),{body:t}))).json();this.onPayload({data:r})}catch(t){this.onError(e.id,t)}}async register(e=this.url){if(!ds(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){const e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise(((e,t)=>{this.events.once("register_error",(e=>{this.resetMaxListeners(),t(e)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return t(new Error("HTTP connection is missing or invalid"));e()}))}))}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){const t=Xe({id:1,jsonrpc:"2.0",method:"test",params:[]});await hu()(e,vu(yu({},mu),{body:t}))}this.onOpen()}catch(t){const e=this.parseError(t);throw this.events.emit("register_error",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;const t="string"==typeof e.data?Ye(e.data):e.data;this.events.emit("payload",t)}onError(e,t){const r=this.parseError(t),i=os(e,r.message||r.toString());this.events.emit("payload",i)}parseError(e,t=this.url){return es(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}const _u="error",Eu="wc@2:universal_provider:",Su="https://rpc.walletconnect.org/v1/",Iu="generic",Pu=`${Su}bundler`,Ou="default_chain_changed";var Au=Object.defineProperty,xu=Object.defineProperties,Ru=Object.getOwnPropertyDescriptors,Tu=Object.getOwnPropertySymbols,Nu=Object.prototype.hasOwnProperty,Mu=Object.prototype.propertyIsEnumerable,Cu=(e,t,r)=>t in e?Au(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ju=(e,t)=>{for(var r in t||(t={}))Nu.call(t,r)&&Cu(e,r,t[r]);if(Tu)for(var r of Tu(t))Mu.call(t,r)&&Cu(e,r,t[r]);return e},qu=(e,t)=>xu(e,Ru(t));function ku(e,t,r){var i;const n=at(e);return(null==(i=t.rpcMap)?void 0:i[n.reference])||`${Su}?chainId=${n.namespace}:${n.reference}&projectId=${r}`}function Lu(e){return e.includes(":")?e.split(":")[1]:e}function Du(e){return e.map((e=>`${e.split(":")[0]}:${e.split(":")[1]}`))}function Uu(e={},t={}){const r=$u(e),i=$u(t);return(0,au.merge)(r,i)}function $u(e){var t,r,i,n;const s={};if(!ni(e))return s;for(const[o,a]of Object.entries(e)){const e=Yr(o)?[o]:a.chains,c=a.methods||[],h=a.events||[],u=a.rpcMap||{},f=Xr(o);s[f]=qu(ju(ju({},s[f]),a),{chains:Dt(e,null==(t=s[f])?void 0:t.chains),methods:Dt(c,null==(r=s[f])?void 0:r.methods),events:Dt(h,null==(i=s[f])?void 0:i.events),rpcMap:ju(ju({},u),null==(n=s[f])?void 0:n.rpcMap)})}return s}function zu(e){return e.includes(":")?e.split(":")[2]:e}function Bu(e){const t={};for(const[r,i]of Object.entries(e)){const e=i.methods||[],n=i.events||[],s=i.accounts||[],o=Yr(r)?[r]:i.chains?i.chains:Du(i.accounts);t[r]={chains:o,methods:e,events:n,accounts:s}}return t}function Hu(e){return"number"==typeof e?e:e.includes("0x")?parseInt(e,16):(e=e.includes(":")?e.split(":")[1]:e,isNaN(Number(e))?e:Number(e))}const Ku={},Fu=e=>Ku[e],Vu=(e,t)=>{Ku[e]=t};class Wu{constructor(e){this.name="polkadot",this.namespace=e.namespace,this.events=Fu("events"),this.client=Fu("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(Ou,`${this.name}:${e}`)}getAccounts(){const e=this.namespace.accounts;return e&&e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2]))||[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;const i=Lu(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||ku(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new ms(new wu(r,Fu("disableProviderPing")))}}var Gu=Object.defineProperty,Ju=Object.defineProperties,Yu=Object.getOwnPropertyDescriptors,Xu=Object.getOwnPropertySymbols,Qu=Object.prototype.hasOwnProperty,Zu=Object.prototype.propertyIsEnumerable,ef=(e,t,r)=>t in e?Gu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tf=(e,t)=>{for(var r in t||(t={}))Qu.call(t,r)&&ef(e,r,t[r]);if(Xu)for(var r of Xu(t))Zu.call(t,r)&&ef(e,r,t[r]);return e},rf=(e,t)=>Ju(e,Yu(t));class nf{constructor(e){this.name="eip155",this.namespace=e.namespace,this.events=Fu("events"),this.client=Fu("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){switch(e.request.method){case"eth_requestAccounts":case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(e);case"eth_chainId":return parseInt(this.getDefaultChain());case"wallet_getCapabilities":return await this.getCapabilities(e);case"wallet_getCallsStatus":return await this.getCallStatus(e)}return this.namespace.methods.includes(e.request.method)?await this.client.request(e):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(parseInt(e),t),this.chainId=parseInt(e),this.events.emit(Ou,`${this.name}:${e}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}createHttpProvider(e,t){const r=t||ku(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new ms(new wu(r,Fu("disableProviderPing")))}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;const i=parseInt(Lu(t));e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}getHttpProvider(){const e=this.chainId,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}async handleSwitchChain(e){var t,r;let i=e.request.params?null==(t=e.request.params[0])?void 0:t.chainId:"0x0";i=i.startsWith("0x")?i:`0x${i}`;const n=parseInt(i,16);if(this.isChainApproved(n))this.setDefaultChain(`${n}`);else{if(!this.namespace.methods.includes("wallet_switchEthereumChain"))throw new Error(`Failed to switch to chain 'eip155:${n}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);await this.client.request({topic:e.topic,request:{method:e.request.method,params:[{chainId:i}]},chainId:null==(r=this.namespace.chains)?void 0:r[0]}),this.setDefaultChain(`${n}`)}return null}isChainApproved(e){return this.namespace.chains.includes(`${this.name}:${e}`)}async getCapabilities(e){var t,r,i;const n=null==(r=null==(t=e.request)?void 0:t.params)?void 0:r[0];if(!n)throw new Error("Missing address parameter in `wallet_getCapabilities` request");const s=this.client.session.get(e.topic),o=(null==(i=s?.sessionProperties)?void 0:i.capabilities)||{};if(null!=o&&o[n])return o?.[n];const a=await this.client.request(e);try{await this.client.session.update(e.topic,{sessionProperties:rf(tf({},s.sessionProperties||{}),{capabilities:rf(tf({},o||{}),{[n]:a})})})}catch(si){console.warn("Failed to update session with capabilities",si)}return a}async getCallStatus(e){var t,r;const i=this.client.session.get(e.topic),n=null==(t=i.sessionProperties)?void 0:t.bundler_name;if(n){const t=this.getBundlerUrl(e.chainId,n);try{return await this.getUserOperationReceipt(t,e)}catch(o){console.warn("Failed to fetch call status from bundler",o,t)}}const s=null==(r=i.sessionProperties)?void 0:r.bundler_url;if(s)try{return await this.getUserOperationReceipt(s,e)}catch(a){console.warn("Failed to fetch call status from custom bundler",a,s)}if(this.namespace.methods.includes(e.request.method))return await this.client.request(e);throw new Error("Fetching call status not approved by the wallet.")}async getUserOperationReceipt(e,t){var r;const i=new URL(e),n=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ns("eth_getUserOperationReceipt",[null==(r=t.request.params)?void 0:r[0]]))});if(!n.ok)throw new Error(`Failed to fetch user operation receipt - ${n.status}`);return await n.json()}getBundlerUrl(e,t){return`${Pu}?projectId=${this.client.core.projectId}&chainId=${e}&bundler=${t}`}}class sf{constructor(e){this.name="solana",this.namespace=e.namespace,this.events=Fu("events"),this.client=Fu("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(Ou,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;const i=Lu(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||ku(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new ms(new wu(r,Fu("disableProviderPing")))}}class of{constructor(e){this.name="cosmos",this.namespace=e.namespace,this.events=Fu("events"),this.client=Fu("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(Ou,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;const i=Lu(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||ku(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new ms(new wu(r,Fu("disableProviderPing")))}}class af{constructor(e){this.name="algorand",this.namespace=e.namespace,this.events=Fu("events"),this.client=Fu("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(!this.httpProviders[e]){const r=t||ku(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.chainId=e,this.events.emit(Ou,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;e[t]=this.createHttpProvider(t,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||ku(e,this.namespace,this.client.core.projectId);return typeof r>"u"?void 0:new ms(new wu(r,Fu("disableProviderPing")))}}class cf{constructor(e){this.name="cip34",this.namespace=e.namespace,this.events=Fu("events"),this.client=Fu("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(Ou,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{const r=this.getCardanoRPCUrl(t),i=Lu(t);e[i]=this.createHttpProvider(i,r)})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}getCardanoRPCUrl(e){const t=this.namespace.rpcMap;if(t)return t[e]}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||this.getCardanoRPCUrl(e);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new ms(new wu(r,Fu("disableProviderPing")))}}class hf{constructor(e){this.name="elrond",this.namespace=e.namespace,this.events=Fu("events"),this.client=Fu("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(Ou,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;const i=Lu(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||ku(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new ms(new wu(r,Fu("disableProviderPing")))}}class uf{constructor(e){this.name="multiversx",this.namespace=e.namespace,this.events=Fu("events"),this.client=Fu("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(Ou,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;const i=Lu(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||ku(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new ms(new wu(r,Fu("disableProviderPing")))}}class ff{constructor(e){this.name="near",this.namespace=e.namespace,this.events=Fu("events"),this.client=Fu("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){const r=t||ku(`${this.name}:${e}`,this.namespace);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.events.emit(Ou,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e&&e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2]))||[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{var r;e[t]=this.createHttpProvider(t,null==(r=this.namespace.rpcMap)?void 0:r[t])})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||ku(e,this.namespace);return typeof r>"u"?void 0:new ms(new wu(r,Fu("disableProviderPing")))}}class df{constructor(e){this.name="tezos",this.namespace=e.namespace,this.events=Fu("events"),this.client=Fu("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){const r=t||ku(`${this.name}:${e}`,this.namespace);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.events.emit(Ou,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e&&e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2]))||[]}createHttpProviders(){const e={};return this.namespace.chains.forEach((t=>{e[t]=this.createHttpProvider(t)})),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||ku(e,this.namespace);return typeof r>"u"?void 0:new ms(new wu(r))}}class lf{constructor(e){this.name=Iu,this.namespace=e.namespace,this.events=Fu("events"),this.client=Fu("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(e.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(e.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(e.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(e.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider(e.chainId).request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(Ou,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter((e=>e.split(":")[1]===this.chainId.toString())).map((e=>e.split(":")[2])))]:[]}createHttpProviders(){var e,t;const r={};return null==(t=null==(e=this.namespace)?void 0:e.accounts)||t.forEach((e=>{const t=at(e);r[`${t.namespace}:${t.reference}`]=this.createHttpProvider(e)})),r}getHttpProvider(e){const t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){const r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){const r=t||ku(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new ms(new wu(r,Fu("disableProviderPing")))}}var pf=Object.defineProperty,gf=Object.defineProperties,bf=Object.getOwnPropertyDescriptors,yf=Object.getOwnPropertySymbols,vf=Object.prototype.hasOwnProperty,mf=Object.prototype.propertyIsEnumerable,wf=(e,t,r)=>t in e?pf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_f=(e,t)=>{for(var r in t||(t={}))vf.call(t,r)&&wf(e,r,t[r]);if(yf)for(var r of yf(t))mf.call(t,r)&&wf(e,r,t[r]);return e},Ef=(e,t)=>gf(e,bf(t));class Sf{constructor(e){this.events=new(b()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=e,this.logger=typeof e?.logger<"u"&&"string"!=typeof e?.logger?e.logger:cn()(Pn({level:e?.logger||_u})),this.disableProviderPing=e?.disableProviderPing||!1}static async init(e){const t=new Sf(e);return await t.initialize(),t}async request(e,t,r){const[i,n]=this.validateChain(t);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(i).request({request:_f({},e),chainId:`${i}:${n}`,topic:this.session.topic,expiry:r})}sendAsync(e,t,r,i){const n=(new Date).getTime();this.request(e,r,i).then((e=>t(null,ss(n,e)))).catch((e=>t(e,void 0)))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:null==(e=this.session)?void 0:e.topic,reason:ri("USER_DISCONNECTED")}),await this.cleanup()}async connect(e){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}async authenticate(e,t){if(!this.client)throw new Error("Sign Client not initialized");this.setNamespaces(e),await this.cleanupPendingPairings();const{uri:r,response:i}=await this.client.authenticate(e,t);r&&(this.uri=r,this.events.emit("display_uri",r));const n=await i();if(this.session=n.session,this.session){const e=Bu(this.session.namespaces);this.namespaces=Uu(this.namespaces,e),this.persist("namespaces",this.namespaces),this.onConnect()}return n}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}async pair(e){this.shouldAbortPairingAttempt=!1;let t=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(t>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:r,approval:i}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});r&&(this.uri=r,this.events.emit("display_uri",r)),await i().then((e=>{this.session=e;const t=Bu(e.namespaces);this.namespaces=Uu(this.namespaces,t),this.persist("namespaces",this.namespaces)})).catch((e=>{if(e.message!==jh)throw e;t++}))}while(!this.session);return this.onConnect(),this.session}setDefaultChain(e,t){try{if(!this.session)return;const[r,i]=this.validateChain(e),n=this.getProvider(r);n.name===Iu?n.setDefaultChain(`${r}:${i}`,t):n.setDefaultChain(i,t)}catch(Ai){if(!/Please call connect/.test(Ai.message))throw Ai}}async cleanupPendingPairings(e={}){this.logger.info("Cleaning up inactive pairings...");const t=this.client.pairing.getAll();if(ii(t)){for(const r of t)e.deletePairings?this.client.core.expirer.set(r.topic,0):await this.client.core.relayer.subscriber.unsubscribe(r.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const e=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[e]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await ou.init({core:this.providerOpts.core,logger:this.providerOpts.logger||_u,relayUrl:this.providerOpts.relayUrl||"wss://relay.walletconnect.org",projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const e=[...new Set(Object.keys(this.session.namespaces).map((e=>Xr(e))))];Vu("client",this.client),Vu("events",this.events),Vu("disableProviderPing",this.disableProviderPing),e.forEach((e=>{if(!this.session)return;const t=function(e,t){const r=Object.keys(t.namespaces).filter((t=>t.includes(e)));if(!r.length)return[];const i=[];return r.forEach((e=>{const r=t.namespaces[e].accounts;i.push(...r)})),i}(e,this.session),r=Du(t),i=Uu(this.namespaces,this.optionalNamespaces),n=Ef(_f({},i[e]),{accounts:t,chains:r});switch(e){case"eip155":this.rpcProviders[e]=new nf({namespace:n});break;case"algorand":this.rpcProviders[e]=new af({namespace:n});break;case"solana":this.rpcProviders[e]=new sf({namespace:n});break;case"cosmos":this.rpcProviders[e]=new of({namespace:n});break;case"polkadot":this.rpcProviders[e]=new Wu({namespace:n});break;case"cip34":this.rpcProviders[e]=new cf({namespace:n});break;case"elrond":this.rpcProviders[e]=new hf({namespace:n});break;case"multiversx":this.rpcProviders[e]=new uf({namespace:n});break;case"near":this.rpcProviders[e]=new ff({namespace:n});break;case"tezos":this.rpcProviders[e]=new df({namespace:n});break;default:this.rpcProviders[Iu]?this.rpcProviders[Iu].updateNamespace(n):this.rpcProviders[Iu]=new lf({namespace:n})}}))}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",(e=>{this.events.emit("session_ping",e)})),this.client.on("session_event",(e=>{const{params:t}=e,{event:r}=t;if("accountsChanged"===r.name){const e=r.data;e&&ii(e)&&this.events.emit("accountsChanged",e.map(zu))}else if("chainChanged"===r.name){const e=t.chainId,r=t.event.data,i=Xr(e),n=Hu(e)!==Hu(r)?`${i}:${Hu(r)}`:e;this.onChainChanged(n)}else this.events.emit(r.name,r.data);this.events.emit("session_event",e)})),this.client.on("session_update",(({topic:e,params:t})=>{var r;const{namespaces:i}=t,n=null==(r=this.client)?void 0:r.session.get(e);this.session=Ef(_f({},n),{namespaces:i}),this.onSessionUpdate(),this.events.emit("session_update",{topic:e,params:t})})),this.client.on("session_delete",(async e=>{await this.cleanup(),this.events.emit("session_delete",e),this.events.emit("disconnect",Ef(_f({},ri("USER_DISCONNECTED")),{data:e.topic}))})),this.on(Ou,(e=>{this.onChainChanged(e,!0)}))}getProvider(e){return this.rpcProviders[e]||this.rpcProviders[Iu]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach((e=>{var t;this.getProvider(e).updateNamespace(null==(t=this.session)?void 0:t.namespaces[e])}))}setNamespaces(e){const{namespaces:t,optionalNamespaces:r,sessionProperties:i}=e;t&&Object.keys(t).length&&(this.namespaces=t),r&&Object.keys(r).length&&(this.optionalNamespaces=r),this.sessionProperties=i,this.persist("namespaces",t),this.persist("optionalNamespaces",r)}validateChain(e){const[t,r]=e?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[t,r];if(t&&!Object.keys(this.namespaces||{}).map((e=>Xr(e))).includes(t))throw new Error(`Namespace '${t}' is not configured. Please call connect() first with namespace config.`);if(t&&r)return[t,r];const i=Xr(Object.keys(this.namespaces)[0]);return[i,this.rpcProviders[i].getDefaultChain()]}async requestAccounts(){const[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}onChainChanged(e,t=!1){if(!this.namespaces)return;const[r,i]=this.validateChain(e);i&&(t||this.getProvider(r).setDefaultChain(i),this.namespaces[r]?this.namespaces[r].defaultChain=i:this.namespaces[`${r}:${i}`]?this.namespaces[`${r}:${i}`].defaultChain=i:this.namespaces[`${r}:${i}`]={defaultChain:i},this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",i))}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(e,t){this.client.core.storage.setItem(`${Eu}/${e}`,t)}async getFromStore(e){return await this.client.core.storage.getItem(`${Eu}/${e}`)}}const If=Sf,Pf=["eth_sendTransaction","personal_sign"],Of=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode","wallet_sendCalls","wallet_getCapabilities","wallet_getCallsStatus","wallet_showCallsStatus"],Af=["chainChanged","accountsChanged"],xf=["chainChanged","accountsChanged","message","disconnect","connect"];var Rf=Object.defineProperty,Tf=Object.defineProperties,Nf=Object.getOwnPropertyDescriptors,Mf=Object.getOwnPropertySymbols,Cf=Object.prototype.hasOwnProperty,jf=Object.prototype.propertyIsEnumerable,qf=(e,t,r)=>t in e?Rf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kf=(e,t)=>{for(var r in t||(t={}))Cf.call(t,r)&&qf(e,r,t[r]);if(Mf)for(var r of Mf(t))jf.call(t,r)&&qf(e,r,t[r]);return e},Lf=(e,t)=>Tf(e,Nf(t));function Df(e){return Number(e[0].split(":")[1])}function Uf(e){return`0x${e.toString(16)}`}class $f{constructor(){this.events=new g.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY="wc@2:ethereum_provider:",this.on=(e,t)=>(this.events.on(e,t),this),this.once=(e,t)=>(this.events.once(e,t),this),this.removeListener=(e,t)=>(this.events.removeListener(e,t),this),this.off=(e,t)=>(this.events.off(e,t),this),this.parseAccount=e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e,this.signer={},this.rpc={}}static async init(e){const t=new $f;return await t.initialize(e),t}async request(e,t){return await this.signer.request(e,this.formatChainId(this.chainId),t)}sendAsync(e,t,r){this.signer.sendAsync(e,t,this.formatChainId(this.chainId),r)}get connected(){return!!this.signer.client&&this.signer.client.core.relayer.connected}get connecting(){return!!this.signer.client&&this.signer.client.core.relayer.connecting}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(e){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(e);const{required:t,optional:r}=function(e){const{chains:t,optionalChains:r,methods:i,optionalMethods:n,events:s,optionalEvents:o,rpcMap:a}=e;if(!ii(t))throw new Error("Invalid chains");const c={chains:t,methods:i||Pf,events:s||Af,rpcMap:kf({},t.length?{[Df(t)]:a[Df(t)]}:{})},h=s?.filter((e=>!Af.includes(e))),u=i?.filter((e=>!Pf.includes(e)));if(!(r||o||n||null!=h&&h.length||null!=u&&u.length))return{required:t.length?c:void 0};const f={chains:[...new Set(h?.length&&u?.length||!r?c.chains.concat(r||[]):r)],methods:[...new Set(c.methods.concat(null!=n&&n.length?n:Of))],events:[...new Set(c.events.concat(null!=o&&o.length?o:xf))],rpcMap:a};return{required:t.length?c:void 0,optional:r.length?f:void 0}}(this.rpc);try{const i=await new Promise((async(i,n)=>{var s;this.rpc.showQrModal&&(null==(s=this.modal)||s.subscribeModal((e=>{!e.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),n(new Error("Connection request reset. Please try again.")))}))),await this.signer.connect(Lf(kf({namespaces:kf({},t&&{[this.namespace]:t})},r&&{optionalNamespaces:{[this.namespace]:r}}),{pairingTopic:e?.pairingTopic})).then((e=>{i(e)})).catch((e=>{n(new Error(e.message))}))}));if(!i)return;const n=ct(i.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:n),this.setAccounts(n),this.events.emit("connect",{chainId:Uf(this.chainId)})}catch(i){throw this.signer.logger.error(i),i}finally{this.modal&&this.modal.closeModal()}}async authenticate(e,t){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts({chains:e?.chains});try{const r=await new Promise((async(r,i)=>{var n;this.rpc.showQrModal&&(null==(n=this.modal)||n.subscribeModal((e=>{!e.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),i(new Error("Connection request reset. Please try again.")))}))),await this.signer.authenticate(Lf(kf({},e),{chains:this.rpc.chains}),t).then((e=>{r(e)})).catch((e=>{i(new Error(e.message))}))})),i=r.session;if(i){const e=ct(i.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:e),this.setAccounts(e),this.events.emit("connect",{chainId:Uf(this.chainId)})}return r}catch(Sn){throw this.signer.logger.error(Sn),Sn}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",(e=>{const{params:t}=e,{event:r}=t;"accountsChanged"===r.name?(this.accounts=this.parseAccounts(r.data),this.events.emit("accountsChanged",this.accounts)):"chainChanged"===r.name?this.setChainId(this.formatChainId(r.data)):this.events.emit(r.name,r.data),this.events.emit("session_event",e)})),this.signer.on("chainChanged",(e=>{const t=parseInt(e);this.chainId=t,this.events.emit("chainChanged",Uf(this.chainId)),this.persist()})),this.signer.on("session_update",(e=>{this.events.emit("session_update",e)})),this.signer.on("session_delete",(e=>{this.reset(),this.events.emit("session_delete",e),this.events.emit("disconnect",Lf(kf({},ri("USER_DISCONNECTED")),{data:e.topic,name:"USER_DISCONNECTED"}))})),this.signer.on("display_uri",(e=>{var t,r;this.rpc.showQrModal&&(null==(t=this.modal)||t.closeModal(),null==(r=this.modal)||r.openModal({uri:e})),this.events.emit("display_uri",e)}))}switchEthereumChain(e){this.request({method:"wallet_switchEthereumChain",params:[{chainId:e.toString(16)}]})}isCompatibleChainId(e){return"string"==typeof e&&e.startsWith(`${this.namespace}:`)}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(":")[1])}setChainIds(e){const t=e.filter((e=>this.isCompatibleChainId(e))).map((e=>this.parseChainId(e)));t.length&&(this.chainId=t[0],this.events.emit("chainChanged",Uf(this.chainId)),this.persist())}setChainId(e){if(this.isCompatibleChainId(e)){const t=this.parseChainId(e);this.chainId=t,this.switchEthereumChain(t)}}parseAccountId(e){const[t,r,i]=e.split(":");return{chainId:`${t}:${r}`,address:i}}setAccounts(e){this.accounts=e.filter((e=>this.parseChainId(this.parseAccountId(e).chainId)===this.chainId)).map((e=>this.parseAccountId(e).address)),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(e){var t,r;const i=null!=(t=e?.chains)?t:[],n=null!=(r=e?.optionalChains)?r:[],s=i.concat(n);if(!s.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const o=i.length?e?.methods||Pf:[],a=i.length?e?.events||Af:[],c=e?.optionalMethods||[],h=e?.optionalEvents||[],u=e?.rpcMap||this.buildRpcMap(s,e.projectId),f=e?.qrModalOptions||void 0;return{chains:i?.map((e=>this.formatChainId(e))),optionalChains:n.map((e=>this.formatChainId(e))),methods:o,events:a,optionalMethods:c,optionalEvents:h,rpcMap:u,showQrModal:!(null==e||!e.showQrModal),qrModalOptions:f,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,t){const r={};return e.forEach((e=>{r[e]=this.getRpcUrl(e,t)})),r}async initialize(e){if(this.rpc=this.getRpcConfig(e),this.chainId=this.rpc.chains.length?Df(this.rpc.chains):Df(this.rpc.optionalChains),this.signer=await If.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:e.disableProviderPing,relayUrl:e.relayUrl,storageOptions:e.storageOptions,customStoragePrefix:e.customStoragePrefix,telemetryEnabled:e.telemetryEnabled}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let e;try{const{WalletConnectModal:t}=await r.e(80940).then(r.bind(r,380940));e=t}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(e)try{this.modal=new e(kf({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(Sn){throw this.signer.logger.error(Sn),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(e){if(!e)return;const{chains:t,optionalChains:r,rpcMap:i}=e;t&&ii(t)&&(this.rpc.chains=t.map((e=>this.formatChainId(e))),t.forEach((e=>{this.rpc.rpcMap[e]=i?.[e]||this.getRpcUrl(e)}))),r&&ii(r)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=r?.map((e=>this.formatChainId(e))),r.forEach((e=>{this.rpc.rpcMap[e]=i?.[e]||this.getRpcUrl(e)})))}getRpcUrl(e,t){var r;return(null==(r=this.rpc.rpcMap)?void 0:r[e])||`https://rpc.walletconnect.org/v1/?chainId=eip155:${e}&projectId=${t||this.rpc.projectId}`}async loadPersistedSession(){if(this.session)try{const e=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),t=this.session.namespaces[`${this.namespace}:${e}`]?this.session.namespaces[`${this.namespace}:${e}`]:this.session.namespaces[this.namespace];this.setChainIds(e?[this.formatChainId(e)]:t?.accounts),this.setAccounts(t?.accounts)}catch(e){this.signer.logger.error("Failed to load persisted session, clearing state..."),this.signer.logger.error(e),await this.disconnect().catch((e=>this.signer.logger.warn(e)))}}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(e){return"string"==typeof e||e instanceof String?[this.parseAccount(e)]:e.map((e=>this.parseAccount(e)))}}},21222:function(e,t){var r="undefined"!=typeof self?self:this,i=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r="URLSearchParams"in e,i="Symbol"in e&&"iterator"in Symbol,n="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in e,o="ArrayBuffer"in e;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function h(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function l(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function g(e){var t=new FileReader,r=p(t);return t.readAsArrayBuffer(e),r}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:n&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&n&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,r,i=l(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=p(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i-1?i:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),i=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(n))}})),t}function _(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},y.call(m.prototype),y.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];_.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(I){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,r){return new Promise((function(i,s){var o=new m(e,r);if(o.signal&&o.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),i=r.shift().trim();if(i){var n=r.join(":").trim();t.append(i,n)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;i(new _(n,r))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new t.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&n&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",c)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=d,e.Request=m,e.Response=_),t.Headers=d,t.Request=m,t.Response=_,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var n=i;(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},490796:e=>{"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},755665:()=>{},149026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(880584);i.__exportStar(r(979244),t),i.__exportStar(r(331861),t)},979244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},331861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},388900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(880584);i.__exportStar(r(599606),t),i.__exportStar(r(789883),t),i.__exportStar(r(662010),t),i.__exportStar(r(149026),t)},662010:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(880584).__exportStar(r(163093),t)},163093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0;t.IWatch=class{}},160221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;const i=r(149026);t.toMiliseconds=function(e){return e*i.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/i.ONE_THOUSAND)}},602985:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise((t=>{setTimeout((()=>{t(!0)}),e)}))}},599606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(880584);i.__exportStar(r(602985),t),i.__exportStar(r(160221),t)},789883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){const t=this.get(e);if(void 0!==t.elapsed)throw new Error(`Watch already stopped for label: ${e}`);const r=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:r})}get(e){const t=this.timestamps.get(e);if(void 0===t)throw new Error(`No timestamp found for label: ${e}`);return t}elapsed(e){const t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=r,t.default=r},880584:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>s,__asyncDelegator:()=>w,__asyncGenerator:()=>m,__asyncValues:()=>_,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>P,__classPrivateFieldSet:()=>O,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>l,__extends:()=>n,__generator:()=>f,__importDefault:()=>I,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>h,__param:()=>c,__read:()=>g,__rest:()=>o,__spread:()=>b,__spreadArrays:()=>y,__values:()=>p});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},i(e,t)};function n(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return s=Object.assign||function(e){for(var t,r=1,i=arguments.length;r=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function c(e,t){return function(r,i){t(r,i,e)}}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,i){return new(r||(r=Promise))((function(n,s){function o(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))}function f(e,t){var r,i,n,s,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}function b(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(r=n[e](t)).value instanceof v?Promise.resolve(r.value.v).then(c,h):u(s[0][2],r)}catch(i){u(s[0][3],i)}var r}function c(e){a("next",e)}function h(e){a("throw",e)}function u(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function w(e){var t,r;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,n){t[i]=e[i]?function(t){return(r=!r)?{value:v(e[i](t)),done:"return"===i}:n?n(t):t}:n}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(t){return new Promise((function(i,n){(function(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)})(i,n,(t=e[r](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function I(e){return e&&e.__esModule?e:{default:e}}function P(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function O(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},194112:(e,t,r)=>{"use strict";var i=t;i.version=r(417559).rE,i.utils=r(938402),i.rand=r(415037),i.curve=r(777867),i.curves=r(727483),i.ec=r(252040),i.eddsa=r(636983)},774278:(e,t,r)=>{"use strict";var i=r(439404),n=r(938402),s=n.getNAF,o=n.getJSF,a=n.assert;function c(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){a(e.precomputed);var r=e._getDoubles(),i=s(t,1,this._bitLength),n=(1<=o;u--)c=(c<<1)+i[u];h.push(c)}for(var f=this.jpoint(null,null,null),d=this.jpoint(null,null,null),l=n;l>0;l--){for(o=0;o=0;h--){for(var u=0;h>=0&&0===o[h];h--)u++;if(h>=0&&u++,c=c.dblp(u),h<0)break;var f=o[h];a(0!==f),c="affine"===e.type?f>0?c.mixedAdd(n[f-1>>1]):c.mixedAdd(n[-f-1>>1].neg()):f>0?c.add(n[f-1>>1]):c.add(n[-f-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,i,n){var a,c,h,u=this._wnafT1,f=this._wnafT2,d=this._wnafT3,l=0;for(a=0;a=1;a-=2){var g=a-1,b=a;if(1===u[g]&&1===u[b]){var y=[t[g],null,null,t[b]];0===t[g].y.cmp(t[b].y)?(y[1]=t[g].add(t[b]),y[2]=t[g].toJ().mixedAdd(t[b].neg())):0===t[g].y.cmp(t[b].y.redNeg())?(y[1]=t[g].toJ().mixedAdd(t[b]),y[2]=t[g].add(t[b].neg())):(y[1]=t[g].toJ().mixedAdd(t[b]),y[2]=t[g].toJ().mixedAdd(t[b].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],m=o(r[g],r[b]);for(l=Math.max(m[0].length,l),d[g]=new Array(l),d[b]=new Array(l),c=0;c=0;a--){for(var I=0;a>=0;){var P=!0;for(c=0;c=0&&I++,E=E.dblp(I),a<0)break;for(c=0;c0?h=f[c][O-1>>1]:O<0&&(h=f[c][-O-1>>1].neg()),E="affine"===h.type?E.mixedAdd(h):E.add(h))}}for(a=0;a=Math.ceil((e.bitLength()+1)/t.step)},h.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;n{"use strict";var i=r(938402),n=r(439404),s=r(256698),o=r(774278),a=i.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function h(e,t,r,i,s){o.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new n(t,16),this.y=new n(r,16),this.z=i?new n(i,16):this.curve.one,this.t=s&&new n(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}s(c,o),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},c.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),s=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=i.redMul(s.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var c=a.fromRed().isOdd();return(t&&!c||!t&&c)&&(a=a.redNeg()),this.point(e,a)},c.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),s=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=i.redMul(s.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},s(h,o.BasePoint),c.prototype.pointFromJSON=function(e){return h.fromJSON(this,e)},c.prototype.point=function(e,t,r,i){return new h(this,e,t,r,i)},h.fromJSON=function(e,t){return new h(e,t[0],t[1],t[2])},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),s=i.redAdd(t),o=s.redSub(r),a=i.redSub(t),c=n.redMul(o),h=s.redMul(a),u=n.redMul(a),f=o.redMul(s);return this.curve.point(c,h,f,u)},h.prototype._projDbl=function(){var e,t,r,i,n,s,o=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var h=(i=this.curve._mulA(a)).redAdd(c);this.zOne?(e=o.redSub(a).redSub(c).redMul(h.redSub(this.curve.two)),t=h.redMul(i.redSub(c)),r=h.redSqr().redSub(h).redSub(h)):(n=this.z.redSqr(),s=h.redSub(n).redISub(n),e=o.redSub(a).redISub(c).redMul(s),t=h.redMul(i.redSub(c)),r=h.redMul(s))}else i=a.redAdd(c),n=this.curve._mulC(this.z).redSqr(),s=i.redSub(n).redSub(n),e=this.curve._mulC(o.redISub(i)).redMul(s),t=this.curve._mulC(i).redMul(a.redISub(c)),r=i.redMul(s);return this.curve.point(e,t,r)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),s=r.redSub(t),o=n.redSub(i),a=n.redAdd(i),c=r.redAdd(t),h=s.redMul(o),u=a.redMul(c),f=s.redMul(c),d=o.redMul(a);return this.curve.point(h,u,d,f)},h.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),s=this.x.redMul(e.x),o=this.y.redMul(e.y),a=this.curve.d.redMul(s).redMul(o),c=n.redSub(a),h=n.redAdd(a),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(s).redISub(o),f=i.redMul(c).redMul(u);return this.curve.twisted?(t=i.redMul(h).redMul(o.redSub(this.curve._mulA(s))),r=c.redMul(h)):(t=i.redMul(h).redMul(o.redSub(s)),r=this.curve._mulC(c).redMul(h)),this.curve.point(f,t,r)},h.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},h.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},h.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},h.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},h.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},777867:(e,t,r)=>{"use strict";var i=t;i.base=r(774278),i.short=r(43461),i.mont=r(34397),i.edwards=r(826491)},34397:(e,t,r)=>{"use strict";var i=r(439404),n=r(256698),s=r(774278),o=r(938402);function a(e){s.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){s.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(a,s),e.exports=a,a.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},n(c,s.BasePoint),a.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},a.prototype.point=function(e,t){return new c(this,e,t)},a.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),s=e.x.redSub(e.z).redMul(r),o=n.redMul(i),a=t.z.redMul(s.redAdd(o).redSqr()),c=t.x.redMul(s.redISub(o).redSqr());return this.curve.point(a,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var s=n.length-1;s>=0;s--)0===n[s]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},43461:(e,t,r)=>{"use strict";var i=r(938402),n=r(439404),s=r(256698),o=r(774278),a=i.assert;function c(e){o.call(this,"short",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(e,t,r,i){o.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new n(t,16),this.y=new n(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,i){o.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new n(0)):(this.x=new n(t,16),this.y=new n(r,16),this.z=new n(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}s(c,o),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new n(e.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);t=(t=i[0].cmp(i[1])<0?i[0]:i[1]).toRed(this.red)}if(e.lambda)r=new n(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(t))?r=s[0]:(r=s[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new n(e.a,16),b:new n(e.b,16)}})):this._getEndoBasis(r)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),r=new n(2).toRed(t).redInvm(),i=r.redNeg(),s=new n(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(s).fromRed(),i.redSub(s).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,i,s,o,a,c,h,u,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,l=this.n.clone(),p=new n(1),g=new n(0),b=new n(0),y=new n(1),v=0;0!==d.cmpn(0);){var m=l.div(d);h=l.sub(m.mul(d)),u=b.sub(m.mul(p));var w=y.sub(m.mul(g));if(!i&&h.cmp(f)<0)t=c.neg(),r=p,i=h.neg(),s=u;else if(i&&2==++v)break;c=h,l=d,d=h,b=p,p=u,y=g,g=w}o=h.neg(),a=u;var _=i.sqr().add(s.sqr());return o.sqr().add(a.sqr()).cmp(_)>=0&&(o=t,a=r),i.negative&&(i=i.neg(),s=s.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:i,b:s},{a:o,b:a}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),s=r.b.neg().mul(e).divRound(this.n),o=n.mul(r.a),a=s.mul(i.a),c=n.mul(r.b),h=s.mul(i.b);return{k1:e.sub(o).sub(a),k2:c.add(h).neg()}},c.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var s=i.fromRed().isOdd();return(t&&!s||!t&&s)&&(i=i.redNeg()),this.point(e,i)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,s=0;s":""},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},h.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),s=n.redSqr().redISub(this.x.redAdd(this.x)),o=n.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(e){return e=new n(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},h.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},h.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},h.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},h.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},s(u,o.BasePoint),c.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),s=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),a=i.redSub(n),c=s.redSub(o);if(0===a.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=a.redSqr(),u=h.redMul(a),f=i.redMul(h),d=c.redSqr().redIAdd(u).redISub(f).redISub(f),l=c.redMul(f.redISub(d)).redISub(s.redMul(u)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(d,l,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,s=e.y.redMul(t).redMul(this.z),o=r.redSub(i),a=n.redSub(s);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),h=c.redMul(o),u=r.redMul(c),f=a.redSqr().redIAdd(h).redISub(u).redISub(u),d=a.redMul(u.redISub(f)).redISub(n.redMul(h)),l=this.z.redMul(o);return this.curve.jpoint(f,d,l)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},727483:(e,t,r)=>{"use strict";var i,n=t,s=r(277952),o=r(777867),a=r(938402).assert;function c(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=c,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(604674)}catch(u){i=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},252040:(e,t,r)=>{"use strict";var i=r(439404),n=r(932723),s=r(938402),o=r(727483),a=r(415037),c=s.assert,h=r(934747),u=r(236390);function f(e){if(!(this instanceof f))return new f(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=f,f.prototype.keyPair=function(e){return new h(this,e)},f.prototype.keyFromPrivate=function(e,t){return h.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return h.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),s=this.n.sub(new i(2));;){var o=new i(t.generate(r));if(!(o.cmp(s)>0))return o.iaddn(1),this.keyFromPrivate(o)}},f.prototype._truncateToN=function(e,t,r){var n;if(i.isBN(e)||"number"==typeof e)n=(e=new i(e,16)).byteLength();else if("object"==typeof e)n=e.length,e=new i(e,16);else{var s=e.toString();n=s.length+1>>>1,e=new i(s,16)}"number"!=typeof r&&(r=8*n);var o=r-this.n.bitLength();return o>0&&(e=e.ushrn(o)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,s){"object"==typeof r&&(s=r,r=null),s||(s={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(e,!1,s.msgBitLength);for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),c=e.toArray("be",o),h=new n({hash:this.hash,entropy:a,nonce:c,pers:s.pers,persEnc:s.persEnc||"utf8"}),f=this.n.sub(new i(1)),d=0;;d++){var l=s.k?s.k(d):new i(h.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(f)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var g=p.getX(),b=g.umod(this.n);if(0!==b.cmpn(0)){var y=l.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==g.cmp(b)?2:0);return s.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),v^=1),new u({r:b,s:y,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,r,i,n){n||(n={}),e=this._truncateToN(e,!1,n.msgBitLength),r=this.keyFromPublic(r,i);var s=(t=new u(t,"hex")).r,o=t.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,c=o.invm(this.n),h=c.mul(e).umod(this.n),f=c.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(h,r.getPublic(),f)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(h,r.getPublic(),f)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},f.prototype.recoverPubKey=function(e,t,r,n){c((3&r)===r,"The recovery param is more than two bits"),t=new u(t,n);var s=this.n,o=new i(e),a=t.r,h=t.s,f=1&r,d=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");a=d?this.curve.pointFromX(a.add(this.curve.n),f):this.curve.pointFromX(a,f);var l=t.r.invm(s),p=s.sub(o).mul(l).umod(s),g=h.mul(l).umod(s);return this.g.mulAdd(p,a,g)},f.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new u(t,i)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var s;try{s=this.recoverPubKey(e,t,n)}catch(e){continue}if(s.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},934747:(e,t,r)=>{"use strict";var i=r(439404),n=r(938402).assert;function s(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=s,s.fromPublic=function(e,t,r){return t instanceof s?t:new s(e,{pub:t,pubEnc:r})},s.fromPrivate=function(e,t,r){return t instanceof s?t:new s(e,{priv:t,privEnc:r})},s.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},s.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},s.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||n(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},s.prototype.derive=function(e){return e.validate()||n(e.validate(),"public point not validated"),e.mul(this.priv).getX()},s.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},s.prototype.verify=function(e,t,r){return this.ec.verify(e,t,this,void 0,r)},s.prototype.inspect=function(){return""}},236390:(e,t,r)=>{"use strict";var i=r(439404),n=r(938402),s=n.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(s(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;if(0===e[t.place])return!1;for(var n=0,s=0,o=t.place;s>>=0;return!(n<=127)&&(t.place=o,n)}function h(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=o,o.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new a;if(48!==e[r.place++])return!1;var s=c(e,r);if(!1===s)return!1;if(s+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=c(e,r);if(!1===o)return!1;if(128&e[r.place])return!1;var h=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var u=c(e,r);if(!1===u)return!1;if(e.length!==u+r.place)return!1;if(128&e[r.place])return!1;var f=e.slice(r.place,u+r.place);if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new i(h),this.s=new i(f),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=h(t),r=h(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];u(i,t.length),(i=i.concat(t)).push(2),u(i,r.length);var s=i.concat(r),o=[48];return u(o,s.length),o=o.concat(s),n.encode(o,e)}},636983:(e,t,r)=>{"use strict";var i=r(277952),n=r(727483),s=r(938402),o=s.assert,a=s.parseBytes,c=r(596032),h=r(777681);function u(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=n[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=i.sha512}e.exports=u,u.prototype.sign=function(e,t){e=a(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),s=this.encodePoint(n),o=this.hashInt(s,r.pubBytes(),e).mul(r.priv()),c=i.add(o).umod(this.curve.n);return this.makeSignature({R:n,S:c,Rencoded:s})},u.prototype.verify=function(e,t,r){if(e=a(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),s=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(s)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";var i=r(938402),n=i.assert,s=i.parseBytes,o=i.cachedProperty;function a(e,t){this.eddsa=e,this._secret=s(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=s(t.pub)}a.fromPublic=function(e,t){return t instanceof a?t:new a(e,{pub:t})},a.fromSecret=function(e,t){return t instanceof a?t:new a(e,{secret:t})},a.prototype.secret=function(){return this._secret},o(a,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),o(a,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),o(a,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,i=t.slice(0,e.encodingLength);return i[0]&=248,i[r]&=127,i[r]|=64,i})),o(a,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),o(a,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),o(a,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),a.prototype.sign=function(e){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},a.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},a.prototype.getSecret=function(e){return n(this._secret,"KeyPair is public only"),i.encode(this.secret(),e)},a.prototype.getPublic=function(e){return i.encode(this.pubBytes(),e)},e.exports=a},777681:(e,t,r)=>{"use strict";var i=r(439404),n=r(938402),s=n.assert,o=n.cachedProperty,a=n.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=a(t)),Array.isArray(t)&&(s(t.length===2*e.encodingLength,"Signature has invalid size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),s(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),o(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),o(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),o(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},604674:e=>{e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},938402:(e,t,r)=>{"use strict";var i=t,n=r(439404),s=r(443349),o=r(764367);i.assert=s,i.toArray=o.toArray,i.zero2=o.zero2,i.toHex=o.toHex,i.encode=o.encode,i.getNAF=function(e,t,r){var i,n=new Array(Math.max(e.bitLength(),r)+1);for(i=0;i(s>>1)-1?(s>>1)-c:c,o.isubn(a)):a=0,n[i]=a,o.iushrn(1)}return n},i.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i,n=0,s=0;e.cmpn(-n)>0||t.cmpn(-s)>0;){var o,a,c=e.andln(3)+n&3,h=t.andln(3)+s&3;3===c&&(c=-1),3===h&&(h=-1),o=1&c?3!==(i=e.andln(7)+n&7)&&5!==i||2!==h?c:-c:0,r[0].push(o),a=1&h?3!==(i=t.andln(7)+s&7)&&5!==i||2!==c?h:-h:0,r[1].push(a),2*n===o+1&&(n=1-n),2*s===a+1&&(s=1-s),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},838196:(e,t)=>{"use strict";function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function i(e){const t=r(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=i,t.getDocumentOrThrow=function(){return i("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return i("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return i("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return i("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return i("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},842063:(e,t,r)=>{"use strict";t.g=void 0;const i=r(838196);t.g=function(){let e,t;try{e=i.getDocumentOrThrow(),t=i.getLocationOrThrow()}catch(s){return null}function r(...t){const r=e.getElementsByTagName("meta");for(let e=0;ei.getAttribute(e))).filter((e=>!!e&&t.includes(e)));if(n.length&&n){const e=i.getAttribute("content");if(e)return e}}return""}const n=function(){let t=r("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:r("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const r=e.getElementsByTagName("link"),i=[];for(let e=0;e-1){const e=n.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=t.protocol+"//"+t.host;if(0===e.indexOf("/"))r+=e;else{const i=t.pathname.split("/");i.pop();r+=i.join("/")+"/"+e}i.push(r)}else if(0===e.indexOf("//")){const r=t.protocol+e;i.push(r)}else i.push(e)}}return i}(),name:n}}},530454:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),i=new RegExp("("+t+")+","gi");function n(e,t){try{return[decodeURIComponent(e.join(""))]}catch(s){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),i=e.slice(t);return Array.prototype.concat.call([],n(r),n(i))}function s(e){try{return decodeURIComponent(e)}catch(s){for(var t=e.match(r)||[],i=1;i{"use strict";e.exports=function(e,t){for(var r={},i=Object.keys(e),n=Array.isArray(t),s=0;s{e=r.nmd(e);var i="__lodash_hash_undefined__",n=9007199254740991,s="[object Arguments]",o="[object Array]",a="[object Boolean]",c="[object Date]",h="[object Error]",u="[object Function]",f="[object Map]",d="[object Number]",l="[object Object]",p="[object Promise]",g="[object RegExp]",b="[object Set]",y="[object String]",v="[object Symbol]",m="[object WeakMap]",w="[object ArrayBuffer]",_="[object DataView]",E=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,I={};I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I[s]=I[o]=I[w]=I[a]=I[_]=I[c]=I[h]=I[u]=I[f]=I[d]=I[l]=I[g]=I[b]=I[y]=I[m]=!1;var P="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,O="object"==typeof self&&self&&self.Object===Object&&self,A=P||O||Function("return this")(),x=t&&!t.nodeType&&t,R=x&&e&&!e.nodeType&&e,T=R&&R.exports===x,N=T&&P.process,M=function(){try{return N&&N.binding&&N.binding("util")}catch(e){}}(),C=M&&M.isTypedArray;function j(e,t){for(var r=-1,i=null==e?0:e.length;++ra))return!1;var h=s.get(e);if(h&&s.get(t))return h==t;var u=-1,f=!0,d=2&r?new we:void 0;for(s.set(e,t),s.set(t,e);++u-1},ve.prototype.set=function(e,t){var r=this.__data__,i=Se(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},me.prototype.clear=function(){this.size=0,this.__data__={hash:new ye,map:new(se||ve),string:new ye}},me.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},me.prototype.get=function(e){return Ne(this,e).get(e)},me.prototype.has=function(e){return Ne(this,e).has(e)},me.prototype.set=function(e,t){var r=Ne(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},we.prototype.add=we.prototype.push=function(e){return this.__data__.set(e,i),this},we.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.clear=function(){this.__data__=new ve,this.size=0},_e.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ve){var i=r.__data__;if(!se||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new me(i)}return r.set(e,t),this.size=r.size,this};var Ce=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,i=null==e?0:e.length,n=0,s=[];++r-1&&e%1==0&&e-1&&e%1==0&&e<=n}function He(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ke(e){return null!=e&&"object"==typeof e}var Fe=C?function(e){return function(t){return e(t)}}(C):function(e){return Ke(e)&&Be(e.length)&&!!I[Ie(e)]};function Ve(e){return null!=(t=e)&&Be(t.length)&&!ze(t)?Ee(e):xe(e);var t}e.exports=function(e,t){return Oe(e,t)}},302543:function(e,t,r){var i;e=r.nmd(e),function(){var n,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,h=32,u=64,f=128,d=256,l=1/0,p=9007199254740991,g=NaN,b=4294967295,y=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",h],["partialRight",u],["rearg",d]],v="[object Arguments]",m="[object Array]",w="[object Boolean]",_="[object Date]",E="[object Error]",S="[object Function]",I="[object GeneratorFunction]",P="[object Map]",O="[object Number]",A="[object Object]",x="[object Promise]",R="[object RegExp]",T="[object Set]",N="[object String]",M="[object Symbol]",C="[object WeakMap]",j="[object ArrayBuffer]",q="[object DataView]",k="[object Float32Array]",L="[object Float64Array]",D="[object Int8Array]",U="[object Int16Array]",$="[object Int32Array]",z="[object Uint8Array]",B="[object Uint8ClampedArray]",H="[object Uint16Array]",K="[object Uint32Array]",F=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,Y=RegExp(G.source),X=RegExp(J.source),Q=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ne.source),oe=/^\s+/,ae=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,he=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,be=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ee=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,Ie="\\ud800-\\udfff",Pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",xe="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ne="['\u2019]",Me="["+Ie+"]",Ce="["+Te+"]",je="["+Pe+"]",qe="\\d+",ke="["+Oe+"]",Le="["+Ae+"]",De="[^"+Ie+Te+qe+Oe+Ae+xe+"]",Ue="\\ud83c[\\udffb-\\udfff]",$e="[^"+Ie+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+xe+"]",Ke="\\u200d",Fe="(?:"+Le+"|"+De+")",Ve="(?:"+He+"|"+De+")",We="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ge="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Je="(?:"+je+"|"+Ue+")"+"?",Ye="["+Re+"]?",Xe=Ye+Je+("(?:"+Ke+"(?:"+[$e,ze,Be].join("|")+")"+Ye+Je+")*"),Qe="(?:"+[ke,ze,Be].join("|")+")"+Xe,Ze="(?:"+[$e+je+"?",je,ze,Be,Me].join("|")+")",et=RegExp(Ne,"g"),tt=RegExp(je,"g"),rt=RegExp(Ue+"(?="+Ue+")|"+Ze+Xe,"g"),it=RegExp([He+"?"+Le+"+"+We+"(?="+[Ce,He,"$"].join("|")+")",Ve+"+"+Ge+"(?="+[Ce,He+Fe,"$"].join("|")+")",He+"?"+Fe+"+"+We,He+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qe,Qe].join("|"),"g"),nt=RegExp("["+Ke+Ie+Pe+Re+"]"),st=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[k]=ct[L]=ct[D]=ct[U]=ct[$]=ct[z]=ct[B]=ct[H]=ct[K]=!0,ct[v]=ct[m]=ct[j]=ct[w]=ct[q]=ct[_]=ct[E]=ct[S]=ct[P]=ct[O]=ct[A]=ct[R]=ct[T]=ct[N]=ct[C]=!1;var ht={};ht[v]=ht[m]=ht[j]=ht[q]=ht[w]=ht[_]=ht[k]=ht[L]=ht[D]=ht[U]=ht[$]=ht[P]=ht[O]=ht[A]=ht[R]=ht[T]=ht[N]=ht[M]=ht[z]=ht[B]=ht[H]=ht[K]=!0,ht[E]=ht[S]=ht[C]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ft=parseFloat,dt=parseInt,lt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,pt="object"==typeof self&&self&&self.Object===Object&&self,gt=lt||pt||Function("return this")(),bt=t&&!t.nodeType&&t,yt=bt&&e&&!e.nodeType&&e,vt=yt&&yt.exports===bt,mt=vt&<.process,wt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(t){}}(),_t=wt&&wt.isArrayBuffer,Et=wt&&wt.isDate,St=wt&&wt.isMap,It=wt&&wt.isRegExp,Pt=wt&&wt.isSet,Ot=wt&&wt.isTypedArray;function At(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function xt(e,t,r,i){for(var n=-1,s=null==e?0:e.length;++n-1}function jt(e,t,r){for(var i=-1,n=null==e?0:e.length;++i-1;);return r}function ir(e,t){for(var r=e.length;r--&&Ht(t,e[r],0)>-1;);return r}var nr=Gt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),sr=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function or(e){return"\\"+ut[e]}function ar(e){return nt.test(e)}function cr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,i){r[++t]=[i,e]})),r}function hr(e,t){return function(r){return e(t(r))}}function ur(e,t){for(var r=-1,i=e.length,n=0,s=[];++r",""":'"',"'":"'"});var yr=function e(t){var r,i=(t=null==t?gt:yr.defaults(gt.Object(),t,yr.pick(gt,ot))).Array,ae=t.Date,Ie=t.Error,Pe=t.Function,Oe=t.Math,Ae=t.Object,xe=t.RegExp,Re=t.String,Te=t.TypeError,Ne=i.prototype,Me=Pe.prototype,Ce=Ae.prototype,je=t["__core-js_shared__"],qe=Me.toString,ke=Ce.hasOwnProperty,Le=0,De=(r=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ue=Ce.toString,$e=qe.call(Ae),ze=gt._,Be=xe("^"+qe.call(ke).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=vt?t.Buffer:n,Ke=t.Symbol,Fe=t.Uint8Array,Ve=He?He.allocUnsafe:n,We=hr(Ae.getPrototypeOf,Ae),Ge=Ae.create,Je=Ce.propertyIsEnumerable,Ye=Ne.splice,Xe=Ke?Ke.isConcatSpreadable:n,Qe=Ke?Ke.iterator:n,Ze=Ke?Ke.toStringTag:n,rt=function(){try{var e=ds(Ae,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,ut=ae&&ae.now!==gt.Date.now&&ae.now,lt=t.setTimeout!==gt.setTimeout&&t.setTimeout,pt=Oe.ceil,bt=Oe.floor,yt=Ae.getOwnPropertySymbols,mt=He?He.isBuffer:n,wt=t.isFinite,$t=Ne.join,Gt=hr(Ae.keys,Ae),vr=Oe.max,mr=Oe.min,wr=ae.now,_r=t.parseInt,Er=Oe.random,Sr=Ne.reverse,Ir=ds(t,"DataView"),Pr=ds(t,"Map"),Or=ds(t,"Promise"),Ar=ds(t,"Set"),xr=ds(t,"WeakMap"),Rr=ds(Ae,"create"),Tr=xr&&new xr,Nr={},Mr=Ds(Ir),Cr=Ds(Pr),jr=Ds(Or),qr=Ds(Ar),kr=Ds(xr),Lr=Ke?Ke.prototype:n,Dr=Lr?Lr.valueOf:n,Ur=Lr?Lr.toString:n;function $r(e){if(ra(e)&&!Fo(e)&&!(e instanceof Kr)){if(e instanceof Hr)return e;if(ke.call(e,"__wrapped__"))return Us(e)}return new Hr(e)}var zr=function(){function e(){}return function(t){if(!ta(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Br(){}function Hr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Kr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=b,this.__views__=[]}function Fr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ci(e,t,r,i,s,o){var a,c=1&t,h=2&t,u=4&t;if(r&&(a=s?r(e,i,s,o):r(e)),a!==n)return a;if(!ta(e))return e;var f=Fo(e);if(f){if(a=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&ke.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!c)return Tn(e,a)}else{var d=gs(e),l=d==S||d==I;if(Jo(e))return In(e,c);if(d==A||d==v||l&&!s){if(a=h||l?{}:ys(e),!c)return h?function(e,t){return Nn(e,ps(e),t)}(e,function(e,t){return e&&Nn(t,Ca(t),e)}(a,e)):function(e,t){return Nn(e,ls(e),t)}(e,ni(a,e))}else{if(!ht[d])return s?e:{};a=function(e,t,r){var i=e.constructor;switch(t){case j:return Pn(e);case w:case _:return new i(+e);case q:return function(e,t){var r=t?Pn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case k:case L:case D:case U:case $:case z:case B:case H:case K:return On(e,r);case P:return new i;case O:case N:return new i(e);case R:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new i;case M:return n=e,Dr?Ae(Dr.call(n)):{}}var n}(e,d,c)}}o||(o=new Jr);var p=o.get(e);if(p)return p;o.set(e,a),aa(e)?e.forEach((function(i){a.add(ci(i,t,r,i,e,o))})):ia(e)&&e.forEach((function(i,n){a.set(n,ci(i,t,r,n,e,o))}));var g=f?n:(u?h?ss:ns:h?Ca:Ma)(e);return Rt(g||e,(function(i,n){g&&(i=e[n=i]),ti(a,n,ci(i,t,r,n,e,o))})),a}function hi(e,t,r){var i=r.length;if(null==e)return!i;for(e=Ae(e);i--;){var s=r[i],o=t[s],a=e[s];if(a===n&&!(s in e)||!o(a))return!1}return!0}function ui(e,t,r){if("function"!=typeof e)throw new Te(s);return Ns((function(){e.apply(n,r)}),t)}function fi(e,t,r,i){var n=-1,s=Ct,o=!0,a=e.length,c=[],h=t.length;if(!a)return c;r&&(t=qt(t,Zt(r))),i?(s=jt,o=!1):t.length>=200&&(s=tr,o=!1,t=new Gr(t));e:for(;++n-1},Vr.prototype.set=function(e,t){var r=this.__data__,i=ri(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Fr,map:new(Pr||Vr),string:new Fr}},Wr.prototype.delete=function(e){var t=us(this,e).delete(e);return this.size-=t?1:0,t},Wr.prototype.get=function(e){return us(this,e).get(e)},Wr.prototype.has=function(e){return us(this,e).has(e)},Wr.prototype.set=function(e,t){var r=us(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},Gr.prototype.add=Gr.prototype.push=function(e){return this.__data__.set(e,o),this},Gr.prototype.has=function(e){return this.__data__.has(e)},Jr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Jr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Jr.prototype.get=function(e){return this.__data__.get(e)},Jr.prototype.has=function(e){return this.__data__.has(e)},Jr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Vr){var i=r.__data__;if(!Pr||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Wr(i)}return r.set(e,t),this.size=r.size,this};var di=jn(wi),li=jn(_i,!0);function pi(e,t){var r=!0;return di(e,(function(e,i,n){return r=!!t(e,i,n)})),r}function gi(e,t,r){for(var i=-1,s=e.length;++i0&&r(a)?t>1?yi(a,t-1,r,i,n):kt(n,a):i||(n[n.length]=a)}return n}var vi=qn(),mi=qn(!0);function wi(e,t){return e&&vi(e,t,Ma)}function _i(e,t){return e&&mi(e,t,Ma)}function Ei(e,t){return Mt(t,(function(t){return Qo(e[t])}))}function Si(e,t){for(var r=0,i=(t=wn(t,e)).length;null!=e&&rt}function Ai(e,t){return null!=e&&ke.call(e,t)}function xi(e,t){return null!=e&&t in Ae(e)}function Ri(e,t,r){for(var s=r?jt:Ct,o=e[0].length,a=e.length,c=a,h=i(a),u=1/0,f=[];c--;){var d=e[c];c&&t&&(d=qt(d,Zt(t))),u=mr(d.length,u),h[c]=!r&&(t||o>=120&&d.length>=120)?new Gr(c&&d):n}d=e[0];var l=-1,p=h[0];e:for(;++l=a?c:c*("desc"==r[i]?-1:1)}return e.index-t.index}(e,t,r)}))}function Fi(e,t,r){for(var i=-1,n=t.length,s={};++i-1;)a!==e&&Ye.call(a,c,1),Ye.call(e,c,1);return e}function Wi(e,t){for(var r=e?t.length:0,i=r-1;r--;){var n=t[r];if(r==i||n!==s){var s=n;ms(n)?Ye.call(e,n,1):dn(e,n)}}return e}function Gi(e,t){return e+bt(Er()*(t-e+1))}function Ji(e,t){var r="";if(!e||t<1||t>p)return r;do{t%2&&(r+=e),(t=bt(t/2))&&(e+=e)}while(t);return r}function Yi(e,t){return Ms(As(e,t,nc),e+"")}function Xi(e){return Xr(za(e))}function Qi(e,t){var r=za(e);return qs(r,ai(t,0,r.length))}function Zi(e,t,r,i){if(!ta(e))return e;for(var s=-1,o=(t=wn(t,e)).length,a=o-1,c=e;null!=c&&++ss?0:s+t),(r=r>s?s:r)<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;for(var o=i(s);++n>>1,o=e[s];null!==o&&!ha(o)&&(r?o<=t:o=200){var h=t?null:Yn(e);if(h)return fr(h);o=!1,n=tr,c=new Gr}else c=t?[]:a;e:for(;++i=i?e:nn(e,t,r)}var Sn=nt||function(e){return gt.clearTimeout(e)};function In(e,t){if(t)return e.slice();var r=e.length,i=Ve?Ve(r):new e.constructor(r);return e.copy(i),i}function Pn(e){var t=new e.constructor(e.byteLength);return new Fe(t).set(new Fe(e)),t}function On(e,t){var r=t?Pn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function An(e,t){if(e!==t){var r=e!==n,i=null===e,s=e==e,o=ha(e),a=t!==n,c=null===t,h=t==t,u=ha(t);if(!c&&!u&&!o&&e>t||o&&a&&h&&!c&&!u||i&&a&&h||!r&&h||!s)return 1;if(!i&&!o&&!u&&e1?r[s-1]:n,a=s>2?r[2]:n;for(o=e.length>3&&"function"==typeof o?(s--,o):n,a&&ws(r[0],r[1],a)&&(o=s<3?n:o,s=1),t=Ae(t);++i-1?s[o?t[a]:a]:n}}function $n(e){return is((function(t){var r=t.length,i=r,o=Hr.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new Te(s);if(o&&!c&&"wrapper"==as(a))var c=new Hr([],!0)}for(i=c?i:r;++i1&&w.reverse(),l&&uc))return!1;var u=o.get(e),f=o.get(t);if(u&&f)return u==t&&f==e;var d=-1,l=!0,p=2&r?new Gr:n;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Rt(y,(function(r){var i="_."+r[0];t&r[1]&&!Ct(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(he);return t?t[1].split(ue):[]}(i),r)))}function js(e){var t=0,r=0;return function(){var i=wr(),s=16-(i-r);if(r=i,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function qs(e,t){var r=-1,i=e.length,s=i-1;for(t=t===n?i:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,so(e,r)}));function lo(e){var t=$r(e);return t.__chain__=!0,t}function po(e,t){return t(e)}var go=is((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,s=function(t){return oi(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Kr&&ms(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[s],thisArg:n}),new Hr(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(s)}));var bo=Mn((function(e,t,r){ke.call(e,r)?++e[r]:si(e,r,1)}));var yo=Un(Hs),vo=Un(Ks);function mo(e,t){return(Fo(e)?Rt:di)(e,hs(t,3))}function wo(e,t){return(Fo(e)?Tt:li)(e,hs(t,3))}var _o=Mn((function(e,t,r){ke.call(e,r)?e[r].push(t):si(e,r,[t])}));var Eo=Yi((function(e,t,r){var n=-1,s="function"==typeof t,o=Wo(e)?i(e.length):[];return di(e,(function(e){o[++n]=s?At(t,e,r):Ti(e,t,r)})),o})),So=Mn((function(e,t,r){si(e,r,t)}));function Io(e,t){return(Fo(e)?qt:Ui)(e,hs(t,3))}var Po=Mn((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Oo=Yi((function(e,t){if(null==e)return[];var r=t.length;return r>1&&ws(e,t[0],t[1])?t=[]:r>2&&ws(t[0],t[1],t[2])&&(t=[t[0]]),Ki(e,yi(t,1),[])})),Ao=ut||function(){return gt.Date.now()};function xo(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Qn(e,f,n,n,n,n,t)}function Ro(e,t){var r;if("function"!=typeof t)throw new Te(s);return e=ga(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var To=Yi((function(e,t,r){var i=1;if(r.length){var n=ur(r,cs(To));i|=h}return Qn(e,i,t,r,n)})),No=Yi((function(e,t,r){var i=3;if(r.length){var n=ur(r,cs(No));i|=h}return Qn(t,i,e,r,n)}));function Mo(e,t,r){var i,o,a,c,h,u,f=0,d=!1,l=!1,p=!0;if("function"!=typeof e)throw new Te(s);function g(t){var r=i,s=o;return i=o=n,f=t,c=e.apply(s,r)}function b(e){var r=e-u;return u===n||r>=t||r<0||l&&e-f>=a}function y(){var e=Ao();if(b(e))return v(e);h=Ns(y,function(e){var r=t-(e-u);return l?mr(r,a-(e-f)):r}(e))}function v(e){return h=n,p&&i?g(e):(i=o=n,c)}function m(){var e=Ao(),r=b(e);if(i=arguments,o=this,u=e,r){if(h===n)return function(e){return f=e,h=Ns(y,t),d?g(e):c}(u);if(l)return Sn(h),h=Ns(y,t),g(u)}return h===n&&(h=Ns(y,t)),c}return t=ya(t)||0,ta(r)&&(d=!!r.leading,a=(l="maxWait"in r)?vr(ya(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),m.cancel=function(){h!==n&&Sn(h),f=0,i=u=o=h=n},m.flush=function(){return h===n?c:v(Ao())},m}var Co=Yi((function(e,t){return ui(e,1,t)})),jo=Yi((function(e,t,r){return ui(e,ya(t)||0,r)}));function qo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(s);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var o=e.apply(this,i);return r.cache=s.set(n,o)||s,o};return r.cache=new(qo.Cache||Wr),r}function ko(e){if("function"!=typeof e)throw new Te(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}qo.Cache=Wr;var Lo=_n((function(e,t){var r=(t=1==t.length&&Fo(t[0])?qt(t[0],Zt(hs())):qt(yi(t,1),Zt(hs()))).length;return Yi((function(i){for(var n=-1,s=mr(i.length,r);++n=t})),Ko=Ni(function(){return arguments}())?Ni:function(e){return ra(e)&&ke.call(e,"callee")&&!Je.call(e,"callee")},Fo=i.isArray,Vo=_t?Zt(_t):function(e){return ra(e)&&Pi(e)==j};function Wo(e){return null!=e&&ea(e.length)&&!Qo(e)}function Go(e){return ra(e)&&Wo(e)}var Jo=mt||yc,Yo=Et?Zt(Et):function(e){return ra(e)&&Pi(e)==_};function Xo(e){if(!ra(e))return!1;var t=Pi(e);return t==E||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!sa(e)}function Qo(e){if(!ta(e))return!1;var t=Pi(e);return t==S||t==I||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zo(e){return"number"==typeof e&&e==ga(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ra(e){return null!=e&&"object"==typeof e}var ia=St?Zt(St):function(e){return ra(e)&&gs(e)==P};function na(e){return"number"==typeof e||ra(e)&&Pi(e)==O}function sa(e){if(!ra(e)||Pi(e)!=A)return!1;var t=We(e);if(null===t)return!0;var r=ke.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&qe.call(r)==$e}var oa=It?Zt(It):function(e){return ra(e)&&Pi(e)==R};var aa=Pt?Zt(Pt):function(e){return ra(e)&&gs(e)==T};function ca(e){return"string"==typeof e||!Fo(e)&&ra(e)&&Pi(e)==N}function ha(e){return"symbol"==typeof e||ra(e)&&Pi(e)==M}var ua=Ot?Zt(Ot):function(e){return ra(e)&&ea(e.length)&&!!ct[Pi(e)]};var fa=Wn(Di),da=Wn((function(e,t){return e<=t}));function la(e){if(!e)return[];if(Wo(e))return ca(e)?pr(e):Tn(e);if(Qe&&e[Qe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Qe]());var t=gs(e);return(t==P?cr:t==T?fr:za)(e)}function pa(e){return e?(e=ya(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ga(e){var t=pa(e),r=t%1;return t==t?r?t-r:t:0}function ba(e){return e?ai(ga(e),0,b):0}function ya(e){if("number"==typeof e)return e;if(ha(e))return g;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var r=ye.test(e);return r||me.test(e)?dt(e.slice(2),r?2:8):be.test(e)?g:+e}function va(e){return Nn(e,Ca(e))}function ma(e){return null==e?"":un(e)}var wa=Cn((function(e,t){if(Is(t)||Wo(t))Nn(t,Ma(t),e);else for(var r in t)ke.call(t,r)&&ti(e,r,t[r])})),_a=Cn((function(e,t){Nn(t,Ca(t),e)})),Ea=Cn((function(e,t,r,i){Nn(t,Ca(t),e,i)})),Sa=Cn((function(e,t,r,i){Nn(t,Ma(t),e,i)})),Ia=is(oi);var Pa=Yi((function(e,t){e=Ae(e);var r=-1,i=t.length,s=i>2?t[2]:n;for(s&&ws(t[0],t[1],s)&&(i=1);++r1),t})),Nn(e,ss(e),r),i&&(r=ci(r,7,ts));for(var n=t.length;n--;)dn(r,t[n]);return r}));var La=is((function(e,t){return null==e?{}:function(e,t){return Fi(e,t,(function(t,r){return xa(e,r)}))}(e,t)}));function Da(e,t){if(null==e)return{};var r=qt(ss(e),(function(e){return[e]}));return t=hs(t),Fi(e,r,(function(e,r){return t(e,r[0])}))}var Ua=Xn(Ma),$a=Xn(Ca);function za(e){return null==e?[]:er(e,Ma(e))}var Ba=Ln((function(e,t,r){return t=t.toLowerCase(),e+(r?Ha(t):t)}));function Ha(e){return Xa(ma(e).toLowerCase())}function Ka(e){return(e=ma(e))&&e.replace(_e,nr).replace(tt,"")}var Fa=Ln((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Va=Ln((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Wa=kn("toLowerCase");var Ga=Ln((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Ja=Ln((function(e,t,r){return e+(r?" ":"")+Xa(t)}));var Ya=Ln((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Xa=kn("toUpperCase");function Qa(e,t,r){return e=ma(e),(t=r?n:t)===n?function(e){return st.test(e)}(e)?function(e){return e.match(it)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var Za=Yi((function(e,t){try{return At(e,n,t)}catch(r){return Xo(r)?r:new Ie(r)}})),ec=is((function(e,t){return Rt(t,(function(t){t=Ls(t),si(e,t,To(e[t],e))})),e}));function tc(e){return function(){return e}}var rc=$n(),ic=$n(!0);function nc(e){return e}function sc(e){return qi("function"==typeof e?e:ci(e,1))}var oc=Yi((function(e,t){return function(r){return Ti(r,e,t)}})),ac=Yi((function(e,t){return function(r){return Ti(e,r,t)}}));function cc(e,t,r){var i=Ma(t),n=Ei(t,i);null!=r||ta(t)&&(n.length||!i.length)||(r=t,t=e,e=this,n=Ei(t,Ma(t)));var s=!(ta(r)&&"chain"in r&&!r.chain),o=Qo(e);return Rt(n,(function(r){var i=t[r];e[r]=i,o&&(e.prototype[r]=function(){var t=this.__chain__;if(s||t){var r=e(this.__wrapped__);return(r.__actions__=Tn(this.__actions__)).push({func:i,args:arguments,thisArg:e}),r.__chain__=t,r}return i.apply(e,kt([this.value()],arguments))})})),e}function hc(){}var uc=Kn(qt),fc=Kn(Nt),dc=Kn(Ut);function lc(e){return _s(e)?Wt(Ls(e)):function(e){return function(t){return Si(t,e)}}(e)}var pc=Vn(),gc=Vn(!0);function bc(){return[]}function yc(){return!1}var vc=Hn((function(e,t){return e+t}),0),mc=Jn("ceil"),wc=Hn((function(e,t){return e/t}),1),_c=Jn("floor");var Ec,Sc=Hn((function(e,t){return e*t}),1),Ic=Jn("round"),Pc=Hn((function(e,t){return e-t}),0);return $r.after=function(e,t){if("function"!=typeof t)throw new Te(s);return e=ga(e),function(){if(--e<1)return t.apply(this,arguments)}},$r.ary=xo,$r.assign=wa,$r.assignIn=_a,$r.assignInWith=Ea,$r.assignWith=Sa,$r.at=Ia,$r.before=Ro,$r.bind=To,$r.bindAll=ec,$r.bindKey=No,$r.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Fo(e)?e:[e]},$r.chain=lo,$r.chunk=function(e,t,r){t=(r?ws(e,t,r):t===n)?1:vr(ga(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var o=0,a=0,c=i(pt(s/t));os?0:s+r),(i=i===n||i>s?s:ga(i))<0&&(i+=s),i=r>i?0:ba(i);r>>0)?(e=ma(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=un(t))&&ar(e)?En(pr(e),0,r):e.split(t,r):[]},$r.spread=function(e,t){if("function"!=typeof e)throw new Te(s);return t=null==t?0:vr(ga(t),0),Yi((function(r){var i=r[t],n=En(r,0,t);return i&&kt(n,i),At(e,this,n)}))},$r.tail=function(e){var t=null==e?0:e.length;return t?nn(e,1,t):[]},$r.take=function(e,t,r){return e&&e.length?nn(e,0,(t=r||t===n?1:ga(t))<0?0:t):[]},$r.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?nn(e,(t=i-(t=r||t===n?1:ga(t)))<0?0:t,i):[]},$r.takeRightWhile=function(e,t){return e&&e.length?pn(e,hs(t,3),!1,!0):[]},$r.takeWhile=function(e,t){return e&&e.length?pn(e,hs(t,3)):[]},$r.tap=function(e,t){return t(e),e},$r.throttle=function(e,t,r){var i=!0,n=!0;if("function"!=typeof e)throw new Te(s);return ta(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),Mo(e,t,{leading:i,maxWait:t,trailing:n})},$r.thru=po,$r.toArray=la,$r.toPairs=Ua,$r.toPairsIn=$a,$r.toPath=function(e){return Fo(e)?qt(e,Ls):ha(e)?[e]:Tn(ks(ma(e)))},$r.toPlainObject=va,$r.transform=function(e,t,r){var i=Fo(e),n=i||Jo(e)||ua(e);if(t=hs(t,4),null==r){var s=e&&e.constructor;r=n?i?new s:[]:ta(e)&&Qo(s)?zr(We(e)):{}}return(n?Rt:wi)(e,(function(e,i,n){return t(r,e,i,n)})),r},$r.unary=function(e){return xo(e,1)},$r.union=to,$r.unionBy=ro,$r.unionWith=io,$r.uniq=function(e){return e&&e.length?fn(e):[]},$r.uniqBy=function(e,t){return e&&e.length?fn(e,hs(t,2)):[]},$r.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?fn(e,n,t):[]},$r.unset=function(e,t){return null==e||dn(e,t)},$r.unzip=no,$r.unzipWith=so,$r.update=function(e,t,r){return null==e?e:ln(e,t,mn(r))},$r.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:ln(e,t,mn(r),i)},$r.values=za,$r.valuesIn=function(e){return null==e?[]:er(e,Ca(e))},$r.without=oo,$r.words=Qa,$r.wrap=function(e,t){return Do(mn(t),e)},$r.xor=ao,$r.xorBy=co,$r.xorWith=ho,$r.zip=uo,$r.zipObject=function(e,t){return yn(e||[],t||[],ti)},$r.zipObjectDeep=function(e,t){return yn(e||[],t||[],Zi)},$r.zipWith=fo,$r.entries=Ua,$r.entriesIn=$a,$r.extend=_a,$r.extendWith=Ea,cc($r,$r),$r.add=vc,$r.attempt=Za,$r.camelCase=Ba,$r.capitalize=Ha,$r.ceil=mc,$r.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ya(r))==r?r:0),t!==n&&(t=(t=ya(t))==t?t:0),ai(ya(e),t,r)},$r.clone=function(e){return ci(e,4)},$r.cloneDeep=function(e){return ci(e,5)},$r.cloneDeepWith=function(e,t){return ci(e,5,t="function"==typeof t?t:n)},$r.cloneWith=function(e,t){return ci(e,4,t="function"==typeof t?t:n)},$r.conformsTo=function(e,t){return null==t||hi(e,t,Ma(t))},$r.deburr=Ka,$r.defaultTo=function(e,t){return null==e||e!=e?t:e},$r.divide=wc,$r.endsWith=function(e,t,r){e=ma(e),t=un(t);var i=e.length,s=r=r===n?i:ai(ga(r),0,i);return(r-=t.length)>=0&&e.slice(r,s)==t},$r.eq=zo,$r.escape=function(e){return(e=ma(e))&&X.test(e)?e.replace(J,sr):e},$r.escapeRegExp=function(e){return(e=ma(e))&&se.test(e)?e.replace(ne,"\\$&"):e},$r.every=function(e,t,r){var i=Fo(e)?Nt:pi;return r&&ws(e,t,r)&&(t=n),i(e,hs(t,3))},$r.find=yo,$r.findIndex=Hs,$r.findKey=function(e,t){return zt(e,hs(t,3),wi)},$r.findLast=vo,$r.findLastIndex=Ks,$r.findLastKey=function(e,t){return zt(e,hs(t,3),_i)},$r.floor=_c,$r.forEach=mo,$r.forEachRight=wo,$r.forIn=function(e,t){return null==e?e:vi(e,hs(t,3),Ca)},$r.forInRight=function(e,t){return null==e?e:mi(e,hs(t,3),Ca)},$r.forOwn=function(e,t){return e&&wi(e,hs(t,3))},$r.forOwnRight=function(e,t){return e&&_i(e,hs(t,3))},$r.get=Aa,$r.gt=Bo,$r.gte=Ho,$r.has=function(e,t){return null!=e&&bs(e,t,Ai)},$r.hasIn=xa,$r.head=Vs,$r.identity=nc,$r.includes=function(e,t,r,i){e=Wo(e)?e:za(e),r=r&&!i?ga(r):0;var n=e.length;return r<0&&(r=vr(n+r,0)),ca(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&Ht(e,t,r)>-1},$r.indexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=null==r?0:ga(r);return n<0&&(n=vr(i+n,0)),Ht(e,t,n)},$r.inRange=function(e,t,r){return t=pa(t),r===n?(r=t,t=0):r=pa(r),function(e,t,r){return e>=mr(t,r)&&e=-9007199254740991&&e<=p},$r.isSet=aa,$r.isString=ca,$r.isSymbol=ha,$r.isTypedArray=ua,$r.isUndefined=function(e){return e===n},$r.isWeakMap=function(e){return ra(e)&&gs(e)==C},$r.isWeakSet=function(e){return ra(e)&&"[object WeakSet]"==Pi(e)},$r.join=function(e,t){return null==e?"":$t.call(e,t)},$r.kebabCase=Fa,$r.last=Ys,$r.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var s=i;return r!==n&&(s=(s=ga(r))<0?vr(i+s,0):mr(s,i-1)),t==t?function(e,t,r){for(var i=r+1;i--;)if(e[i]===t)return i;return i}(e,t,s):Bt(e,Ft,s,!0)},$r.lowerCase=Va,$r.lowerFirst=Wa,$r.lt=fa,$r.lte=da,$r.max=function(e){return e&&e.length?gi(e,nc,Oi):n},$r.maxBy=function(e,t){return e&&e.length?gi(e,hs(t,2),Oi):n},$r.mean=function(e){return Vt(e,nc)},$r.meanBy=function(e,t){return Vt(e,hs(t,2))},$r.min=function(e){return e&&e.length?gi(e,nc,Di):n},$r.minBy=function(e,t){return e&&e.length?gi(e,hs(t,2),Di):n},$r.stubArray=bc,$r.stubFalse=yc,$r.stubObject=function(){return{}},$r.stubString=function(){return""},$r.stubTrue=function(){return!0},$r.multiply=Sc,$r.nth=function(e,t){return e&&e.length?Hi(e,ga(t)):n},$r.noConflict=function(){return gt._===this&&(gt._=ze),this},$r.noop=hc,$r.now=Ao,$r.pad=function(e,t,r){e=ma(e);var i=(t=ga(t))?lr(e):0;if(!t||i>=t)return e;var n=(t-i)/2;return Fn(bt(n),r)+e+Fn(pt(n),r)},$r.padEnd=function(e,t,r){e=ma(e);var i=(t=ga(t))?lr(e):0;return t&&it){var i=e;e=t,t=i}if(r||e%1||t%1){var s=Er();return mr(e+s*(t-e+ft("1e-"+((s+"").length-1))),t)}return Gi(e,t)},$r.reduce=function(e,t,r){var i=Fo(e)?Lt:Jt,n=arguments.length<3;return i(e,hs(t,4),r,n,di)},$r.reduceRight=function(e,t,r){var i=Fo(e)?Dt:Jt,n=arguments.length<3;return i(e,hs(t,4),r,n,li)},$r.repeat=function(e,t,r){return t=(r?ws(e,t,r):t===n)?1:ga(t),Ji(ma(e),t)},$r.replace=function(){var e=arguments,t=ma(e[0]);return e.length<3?t:t.replace(e[1],e[2])},$r.result=function(e,t,r){var i=-1,s=(t=wn(t,e)).length;for(s||(s=1,e=n);++ip)return[];var r=b,i=mr(e,b);t=hs(t),e-=b;for(var n=Xt(i,t);++r=o)return e;var c=r-lr(i);if(c<1)return i;var h=a?En(a,0,c).join(""):e.slice(0,c);if(s===n)return h+i;if(a&&(c+=h.length-c),oa(s)){if(e.slice(c).search(s)){var u,f=h;for(s.global||(s=xe(s.source,ma(ge.exec(s))+"g")),s.lastIndex=0;u=s.exec(f);)var d=u.index;h=h.slice(0,d===n?c:d)}}else if(e.indexOf(un(s),c)!=c){var l=h.lastIndexOf(s);l>-1&&(h=h.slice(0,l))}return h+i},$r.unescape=function(e){return(e=ma(e))&&Y.test(e)?e.replace(G,br):e},$r.uniqueId=function(e){var t=++Le;return ma(e)+t},$r.upperCase=Ya,$r.upperFirst=Xa,$r.each=mo,$r.eachRight=wo,$r.first=Vs,cc($r,(Ec={},wi($r,(function(e,t){ke.call($r.prototype,t)||(Ec[t]=e)})),Ec),{chain:!1}),$r.VERSION="4.17.21",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){$r[e].placeholder=$r})),Rt(["drop","take"],(function(e,t){Kr.prototype[e]=function(r){r=r===n?1:vr(ga(r),0);var i=this.__filtered__&&!t?new Kr(this):this.clone();return i.__filtered__?i.__takeCount__=mr(r,i.__takeCount__):i.__views__.push({size:mr(r,b),type:e+(i.__dir__<0?"Right":"")}),i},Kr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Rt(["filter","map","takeWhile"],(function(e,t){var r=t+1,i=1==r||3==r;Kr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:hs(e,3),type:r}),t.__filtered__=t.__filtered__||i,t}})),Rt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Kr.prototype[e]=function(){return this[r](1).value()[0]}})),Rt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Kr.prototype[e]=function(){return this.__filtered__?new Kr(this):this[r](1)}})),Kr.prototype.compact=function(){return this.filter(nc)},Kr.prototype.find=function(e){return this.filter(e).head()},Kr.prototype.findLast=function(e){return this.reverse().find(e)},Kr.prototype.invokeMap=Yi((function(e,t){return"function"==typeof e?new Kr(this):this.map((function(r){return Ti(r,e,t)}))})),Kr.prototype.reject=function(e){return this.filter(ko(hs(e)))},Kr.prototype.slice=function(e,t){e=ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Kr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},Kr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Kr.prototype.toArray=function(){return this.take(b)},wi(Kr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),s=$r[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);s&&($r.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,c=t instanceof Kr,h=a[0],u=c||Fo(t),f=function(e){var t=s.apply($r,kt([e],a));return i&&d?t[0]:t};u&&r&&"function"==typeof h&&1!=h.length&&(c=u=!1);var d=this.__chain__,l=!!this.__actions__.length,p=o&&!d,g=c&&!l;if(!o&&u){t=g?t:new Kr(this);var b=e.apply(t,a);return b.__actions__.push({func:po,args:[f],thisArg:n}),new Hr(b,d)}return p&&g?e.apply(this,a):(b=this.thru(f),p?i?b.value()[0]:b.value():b)})})),Rt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ne[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);$r.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var n=this.value();return t.apply(Fo(n)?n:[],e)}return this[r]((function(r){return t.apply(Fo(r)?r:[],e)}))}})),wi(Kr.prototype,(function(e,t){var r=$r[t];if(r){var i=r.name+"";ke.call(Nr,i)||(Nr[i]=[]),Nr[i].push({name:t,func:r})}})),Nr[zn(n,2).name]=[{name:"wrapper",func:n}],Kr.prototype.clone=function(){var e=new Kr(this.__wrapped__);return e.__actions__=Tn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Tn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Tn(this.__views__),e},Kr.prototype.reverse=function(){if(this.__filtered__){var e=new Kr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Kr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Fo(e),i=t<0,n=r?e.length:0,s=function(e,t,r){var i=-1,n=r.length;for(;++i=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},$r.prototype.plant=function(e){for(var t,r=this;r instanceof Br;){var i=Us(r);i.__index__=0,i.__values__=n,t?s.__wrapped__=i:t=i;var s=i;r=r.__wrapped__}return s.__wrapped__=e,t},$r.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Kr){var t=e;return this.__actions__.length&&(t=new Kr(this)),(t=t.reverse()).__actions__.push({func:po,args:[eo],thisArg:n}),new Hr(t,this.__chain__)}return this.thru(eo)},$r.prototype.toJSON=$r.prototype.valueOf=$r.prototype.value=function(){return gn(this.__wrapped__,this.__actions__)},$r.prototype.first=$r.prototype.head,Qe&&($r.prototype[Qe]=function(){return this}),$r}();gt._=yr,(i=function(){return yr}.call(t,r,t,e))===n||(e.exports=i)}.call(this)},686663:(e,t,r)=>{"use strict";const i=r(224280),n=r(530454),s=r(300528),o=r(473055),a=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function h(e,t){return t.encode?t.strict?i(e):encodeURIComponent(e):e}function u(e,t){return t.decode?n(e):e}function f(e){return Array.isArray(e)?e.sort():"object"==typeof e?f(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function d(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function l(e){const t=(e=d(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,i)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===i[e]&&(i[e]={}),i[e][t[1]]=r):i[e]=r};case"bracket":return(e,r,i)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==i[e]?i[e]=[].concat(i[e],r):i[e]=[r]:i[e]=r};case"colon-list-separator":return(e,r,i)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==i[e]?i[e]=[].concat(i[e],r):i[e]=[r]:i[e]=r};case"comma":case"separator":return(t,r,i)=>{const n="string"==typeof r&&r.includes(e.arrayFormatSeparator),s="string"==typeof r&&!n&&u(r,e).includes(e.arrayFormatSeparator);r=s?u(r,e):r;const o=n||s?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);i[t]=o};case"bracket-separator":return(t,r,i)=>{const n=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!n)return void(i[t]=r?u(r,e):r);const s=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==i[t]?i[t]=[].concat(i[t],s):i[t]=s};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),i=Object.create(null);if("string"!=typeof e)return i;if(!(e=e.trim().replace(/^[?#&]/,"")))return i;for(const n of e.split("&")){if(""===n)continue;let[e,o]=s(t.decode?n.replace(/\+/g," "):n,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?o:u(o,t),r(u(e,t),o,i)}for(const n of Object.keys(i)){const e=i[n];if("object"==typeof e&&null!==e)for(const r of Object.keys(e))e[r]=p(e[r],t);else i[n]=p(e,t)}return!1===t.sort?i:(!0===t.sort?Object.keys(i).sort():Object.keys(i).sort(t.sort)).reduce(((e,t)=>{const r=i[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=f(r):e[t]=r,e}),Object.create(null))}t.extract=l,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],i=function(e){switch(e.arrayFormat){case"index":return t=>(r,i)=>{const n=r.length;return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[h(t,e),"[",n,"]"].join("")]:[...r,[h(t,e),"[",h(n,e),"]=",h(i,e)].join("")]};case"bracket":return t=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[h(t,e),"[]"].join("")]:[...r,[h(t,e),"[]=",h(i,e)].join("")];case"colon-list-separator":return t=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[h(t,e),":list="].join("")]:[...r,[h(t,e),":list=",h(i,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(i,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?i:(n=null===n?"":n,0===i.length?[[h(r,e),t,h(n,e)].join("")]:[[i,h(n,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,h(t,e)]:[...r,[h(t,e),"=",h(i,e)].join("")]}}(t),n={};for(const o of Object.keys(e))r(o)||(n[o]=e[o]);const s=Object.keys(n);return!1!==t.sort&&s.sort(t.sort),s.map((r=>{const n=e[r];return void 0===n?"":null===n?h(r,t):Array.isArray(n)?0===n.length&&"bracket-separator"===t.arrayFormat?h(r,t)+"[]":n.reduce(i(r),[]).join("&"):h(r,t)+"="+h(n,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,i]=s(e,"#");return Object.assign({url:r.split("?")[0]||"",query:g(l(e),t)},t&&t.parseFragmentIdentifier&&i?{fragmentIdentifier:u(i,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[a]:!0},r);const i=d(e.url).split("?")[0]||"",n=t.extract(e.url),s=t.parse(n,{sort:!1}),o=Object.assign(s,e.query);let c=t.stringify(o,r);c&&(c=`?${c}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${r[a]?h(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${i}${c}${u}`},t.pick=(e,r,i)=>{i=Object.assign({parseFragmentIdentifier:!0,[a]:!1},i);const{url:n,query:s,fragmentIdentifier:c}=t.parseUrl(e,i);return t.stringifyUrl({url:n,query:o(s,r),fragmentIdentifier:c},i)},t.exclude=(e,r,i)=>{const n=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,n,i)}},40793:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}e.exports=function(e,r,i){var n=i&&i.stringify||t;if("object"==typeof e&&null!==e){var s=r.length+1;if(1===s)return e;var o=new Array(s);o[0]=n(e);for(var a=1;a-1?f:0,e.charCodeAt(l+1)){case 100:case 102:if(u>=c)break;if(null==r[u])break;f=c)break;if(null==r[u])break;f=c)break;if(void 0===r[u])break;f",f=l+2,l++;break}h+=n(r[u]),f=l+2,l++;break;case 115:if(u>=c)break;f{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},224280:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},44874:(e,t,r)=>{"use strict";const i=r(40793);e.exports=o;const n=function(){function e(e){return void 0!==e&&e}try{return"undefined"!=typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{},s={mapHttpRequest:d,mapHttpResponse:d,wrapRequestSerializer:l,wrapResponseSerializer:l,wrapErrorSerializer:l,req:d,res:d,err:function(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const r in e)void 0===t[r]&&(t[r]=e[r]);return t}};function o(e){(e=e||{}).browser=e.browser||{};const t=e.browser.transmit;if(t&&"function"!=typeof t.send)throw Error("pino: transmit option must have a send function");const r=e.browser.write||n;e.browser.write&&(e.browser.asObject=!0);const i=e.serializers||{},s=function(e,t){if(Array.isArray(e))return e.filter((function(e){return"!stdSerializers.err"!==e}));return!0===e&&Object.keys(t)}(e.browser.serialize,i);let d=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(d=!1);"function"==typeof r&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),!1===e.enabled&&(e.level="silent");const l=e.level||"info",g=Object.create(r);g.log||(g.log=p),Object.defineProperty(g,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(g,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,a(b,g,"error","log"),a(b,g,"fatal","error"),a(b,g,"warn","error"),a(b,g,"info","log"),a(b,g,"debug","log"),a(b,g,"trace","log")}});const b={transmit:t,serialize:s,asObject:e.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:f(e)};return g.levels=o.levels,g.level=l,g.setMaxListeners=g.getMaxListeners=g.emit=g.addListener=g.on=g.prependListener=g.once=g.prependOnceListener=g.removeListener=g.removeAllListeners=g.listeners=g.listenerCount=g.eventNames=g.write=g.flush=p,g.serializers=i,g._serialize=s,g._stdErrSerialize=d,g.child=function(r,n){if(!r)throw new Error("missing bindings for child Pino");n=n||{},s&&r.serializers&&(n.serializers=r.serializers);const o=n.serializers;if(s&&o){var a=Object.assign({},i,o),f=!0===e.browser.serialize?Object.keys(a):s;delete r.serializers,c([r],f,a,this._stdErrSerialize)}function d(e){this._childLevel=1+(0|e._childLevel),this.error=h(e,r,"error"),this.fatal=h(e,r,"fatal"),this.warn=h(e,r,"warn"),this.info=h(e,r,"info"),this.debug=h(e,r,"debug"),this.trace=h(e,r,"trace"),a&&(this.serializers=a,this._serialize=f),t&&(this._logEvent=u([].concat(e._logEvent.bindings,r)))}return d.prototype=this,new d(this)},t&&(g._logEvent=u()),g}function a(e,t,r,s){const a=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?p:a[r]?a[r]:n[r]||n[s]||p,function(e,t,r){if(!e.transmit&&t[r]===p)return;t[r]=(s=t[r],function(){const a=e.timestamp(),h=new Array(arguments.length),f=Object.getPrototypeOf&&Object.getPrototypeOf(this)===n?n:this;for(var d=0;d-1&&i in r&&(e[n][i]=r[i](e[n][i]))}function h(e,t,r){return function(){const i=new Array(1+arguments.length);i[0]=t;for(var n=1;n{"use strict";e.exports={rE:"6.6.0"}}}]); \ No newline at end of file diff --git a/pr-preview/pr-945/assets/js/21f8fbc5.04df2c2a.js b/pr-preview/pr-945/assets/js/21f8fbc5.e641f9c7.js similarity index 99% rename from pr-preview/pr-945/assets/js/21f8fbc5.04df2c2a.js rename to pr-preview/pr-945/assets/js/21f8fbc5.e641f9c7.js index 997f4005105..d57c2af5c6b 100644 --- a/pr-preview/pr-945/assets/js/21f8fbc5.04df2c2a.js +++ b/pr-preview/pr-945/assets/js/21f8fbc5.e641f9c7.js @@ -1 +1 @@ -"use strict";(self.webpackChunkpush_website=self.webpackChunkpush_website||[]).push([[58382],{828598:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>l,default:()=>p,frontMatter:()=>a,metadata:()=>h,toc:()=>c});var t=n(474848),o=n(28453),i=n(313554),r=n.n(i);const a={id:"docs-roadmap-live-roadmap",title:"Live Roadmap",hide_title:!0,slug:"./",displayed_sidebar:"pushRoadmapSidebar",sidebar_position:1,image:"/assets/docs/previews/docs_roadmap--live_roadmap.png"},l="Overview",h={id:"roadmap/docs-roadmap-live-roadmap",title:"Live Roadmap",description:"**_",source:"@site/docs/roadmap/01-Push-Roadmap.mdx",sourceDirName:"roadmap",slug:"/roadmap/",permalink:"/push-website/pr-preview/pr-945/docs/roadmap/",draft:!1,unlisted:!1,editUrl:"https://github.com/push-protocol/push-website/blob/main/docs/roadmap/01-Push-Roadmap.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{id:"docs-roadmap-live-roadmap",title:"Live Roadmap",hide_title:!0,slug:"./",displayed_sidebar:"pushRoadmapSidebar",sidebar_position:1,image:"/assets/docs/previews/docs_roadmap--live_roadmap.png"},sidebar:"pushRoadmapSidebar",next:{title:"Roadmap Recaps",permalink:"/push-website/pr-preview/pr-945/docs/roadmap/roadmap-recaps"}},d={},c=[{value:"LAST_UPDATED",id:"last_updated",level:6},{value:"Live Roadmap",id:"live-roadmap",level:2},{value:"Push Nodes Alpha Q4 2024",id:"push-nodes-alpha-q4-2024",level:3},{value:"Unified Push SDK V2 NEW Q3 2024\u2197",id:"unified-push-sdk-v2-new-q3-2024",level:3},{value:"Support for Ethers V6 NEW Q1 2024\u2197",id:"support-for-ethers-v6-new-q1-2024",level:3},{value:"Reward Points NEW Q2 2024\u2197",id:"reward-points-new-q2-2024",level:3},{value:"Hyper Scalable Chat NEW Q1 2024\u2197",id:"hyper-scalable-chat-new-q1-2024",level:3},{value:"Push MetaMask Snap V2 Q3 2024\u2197",id:"push-metamask-snap-v2-q3-2024",level:3},{value:"Guest Mode on dApp NEW Q1 2024\u2197",id:"guest-mode-on-dapp-new-q1-2024",level:3},{value:"Push Protocol V2.5 NEW Q1 2024\u2197",id:"push-protocol-v25-new-q1-2024",level:3},{value:"Fee Pool Expansion Q2 2024",id:"fee-pool-expansion-q2-2024",level:3},{value:"User Profile Settings Q3 2024",id:"user-profile-settings-q3-2024",level:3},{value:"Notification Read Receipts Q1 2025",id:"notification-read-receipts-q1-2025",level:3},{value:"Smart Contract Wallet Support Q4 2024",id:"smart-contract-wallet-support-q4-2024",level:3},{value:"NFT Sharded Encryption NEW Q2 2024",id:"nft-sharded-encryption-new-q2-2024",level:3},{value:"Push Nodes Audit Q3 2024",id:"push-nodes-audit-q3-2024",level:3},{value:"Proof of Stake Network NEW Q3 2024",id:"proof-of-stake-network-new-q3-2024",level:3},{value:"Revamped Website Q3 2024\u2197",id:"revamped-website-q3-2024",level:3},{value:"Analytics Dashboard NEW Q3 2024\u2197",id:"analytics-dashboard-new-q3-2024",level:3},{value:"Other SDKs Q3 2024\u2197\u2197\u2197",id:"other-sdks-q3-2024",level:3},{value:"Autonomous Group NEW Q2 2025",id:"autonomous-group-new-q2-2025",level:3},{value:"Push Protocol V3 NEW Q4 2024\u2197",id:"push-protocol-v3-new-q4-2024",level:3},{value:"Anon Chat NEW Q2 2025",id:"anon-chat-new-q2-2025",level:3},{value:"Custom Roles / Rules for Groups Q4 2024\u2197",id:"custom-roles--rules-for-groups-q4-2024",level:3},{value:"Governance V2 Q4 2024\u2197",id:"governance-v2-q4-2024",level:3},{value:"Email / Telegram Notifications Q4 2024",id:"email--telegram-notifications-q4-2024",level:3},{value:"Push goes Multi-Chain NEW Q4 2024\u2197",id:"push-goes-multi-chain-new-q4-2024",level:3},{value:"Completed Milestone",id:"completed-milestone",level:2},{value:"Hyper Scalable Group Q4 2023\u2197",id:"hyper-scalable-group-q4-2023",level:3},{value:"Gated + Group Chats Q4 2023\u2197",id:"gated--group-chats-q4-2023",level:3},{value:"Notification Settings Q4 2023\u2197",id:"notification-settings-q4-2023",level:3},{value:"Push Protocol V2 Q3 2023\u2197",id:"push-protocol-v2-q3-2023",level:3},{value:"Push Spaces Q3 2023\u2197",id:"push-spaces-q3-2023",level:3},{value:"Push NFT Chat Q3 2023\u2197",id:"push-nft-chat-q3-2023",level:3},{value:"Push Video Q2 2023\u2197",id:"push-video-q2-2023",level:3},{value:"Push Delivery Nodes Q1 2023\u2197",id:"push-delivery-nodes-q1-2023",level:3},{value:"Launch on BNB Chain Q1 2023\u2197",id:"launch-on-bnb-chain-q1-2023",level:3}];function u(e){const s={a:"a",admonition:"admonition",code:"code",del:"del",em:"em",h1:"h1",h2:"h2",h3:"h3",h6:"h6",mermaid:"mermaid",p:"p",strong:"strong",...(0,o.R)(),...e.components},{Head:n}=s;return n||function(e,s){throw new Error("Expected "+(s?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Head",!0),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{id:"overview",children:"Overview"}),"\n",(0,t.jsx)(s.h6,{id:"last_updated",children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Dec 15, 2024"})})})})}),"\n",(0,t.jsx)(s.p,{children:"Live roadmap is a living document that will be updated as we progress through our roadmap. It will be refreshed constantly with new features, milestones and other important information as we progress through our roadmap."}),"\n",(0,t.jsxs)(s.p,{children:["For feature request or support reach out to us ",(0,t.jsx)(s.a,{href:"mailto:support@push.org",children:"support@push.org"})]}),"\n","\n","\n",(0,t.jsx)(s.mermaid,{value:"timeline\n title Roadmap Plan 2024\n Q1 2024 : Support for Ethers V6\n : Hyper Scalable Chat\n : Guest Mode on dApp\n Q2 2024 : Push Protocol V2.5\n : Push Tokenomics V2 (Fee Pool+)\n : Notification Read Receipts\n : Support for AA Wallets\n : Reward Points\n : NFT Chat Sharded Encryption\n Q3 2024 : Push Nodes Alpha\n : Unified Push SDK V2\n : Push Nodes Audit\n : User Profile Settings\n : Proof of Stake Network\n : Revamped Website\n : Analytics Dashboard\n : Other SDKs (Swift, Android, Flutter, etc)\n : Decentralized Autonomous Group (DAG)\n Q4 2024 : Push Protocol V3\n : Push Metamask Snap V2\n : Anon Chat (Wallet > Anon > Wallet)\n : Custom Roles for Groups\n : DAO and Governance V2\n : Email / Telegram Notifications\n : Push goes Multi-Chain (Hello non-EVMs)"}),"\n",(0,t.jsx)(n,{children:(0,t.jsx)("title",{children:"Push Live Roadmap | Push Roadmap | Push Documentation"})}),"\n",(0,t.jsx)(s.h2,{id:"live-roadmap",children:"Live Roadmap"}),"\n",(0,t.jsxs)(s.h3,{id:"push-nodes-alpha-q4-2024",children:["Push Nodes Alpha ",(0,t.jsx)(s.em,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q4 2024"})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push nodes will complete the final step of decentralization and will be open for everyone to run and participate in securing the network, enabling genesis of Push Network (L2 for web3 communication)."}),"\n",(0,t.jsxs)(s.p,{children:["Push network is a Proof of Stake network requiring nodes to stake ",(0,t.jsx)(s.a,{href:"https://coinmarketcap.com/currencies/epns/",title:"$PUSH at Coinmarketcap.com",children:(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.code,{children:"$PUSH"})})})})," to secure the network. It will be able to validate, store and deliver notifications and user profiles in the alpha version."]}),"\n",(0,t.jsx)(r(),{controls:!0,width:"100%",url:"https://www.youtube.com/watch?v=JCwH2pN69dw"}),"\n",(0,t.jsx)("p",{}),"\n",(0,t.jsx)(s.admonition,{type:"info",children:(0,t.jsx)(s.p,{children:"Push Protocol and Nodes are evolving, we will be announcing the future of this milestone soon via governance."})}),"\n",(0,t.jsxs)(s.h3,{id:"unified-push-sdk-v2-new-q3-2024",children:["Unified Push SDK V2 ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("i",{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2024",(0,t.jsx)(s.a,{href:"https://www.npmjs.com/package/@pushprotocol/restapi",title:"SDK Documentation",children:"\u2197"})]})})})})})})]}),"\n",(0,t.jsxs)(s.p,{children:["We started the journey of making our SDK more developer friendly with unified SDK to enable both chat and notifications in ",(0,t.jsx)(s.a,{href:"/docs/",title:"Push SDK Documentation",children:"4 LoC or less"}),"."]}),"\n",(0,t.jsx)(s.p,{children:"We will be taking this further with V2 of our SDK to encompass all forms of communication (Notifications, Chat, Video, Spaces) in a single SDK."}),"\n",(0,t.jsxs)(s.admonition,{type:"note",children:[(0,t.jsxs)(s.p,{children:["V2 is changed to be an iterative process to avoid breaking changes and instead upgrade it by introducing logic to support backward compatibility to the best extent. The iterations can be tracked ",(0,t.jsx)(s.a,{href:"https://github.com/push-protocol/push-sdk",children:"here"}),"."]}),(0,t.jsxs)(s.p,{children:["This is a breaking change, we recommend all developers to join our ",(0,t.jsx)(s.a,{href:"https://discord.gg/pushprotocol",children:"Discord server"})," -> ",(0,t.jsx)(s.code,{children:"#dev-announcements"})," channel for information on how to upgrade and best practices for easier transition."]})]}),"\n",(0,t.jsxs)(s.h3,{id:"support-for-ethers-v6-new-q1-2024",children:["Support for Ethers V6 ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q1 2024",(0,t.jsx)(s.a,{href:"/docs/chat/build/initialize-user/",title:"Documentation supporting Ethers V6",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"We will be upgrading our SDK to support Ethers V6 along with Ethers V5 and viem. This will enable developers to use our SDK with latest version of Ethers."}),"\n",(0,t.jsxs)(s.h3,{id:"reward-points-new-q2-2024",children:["Reward Points ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q2 2024",(0,t.jsx)(s.a,{href:"https://app.push.org/points",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Points are a new way for users to show they belong to the Push community and have access to some cool surprises in the future. The more tasks they complete, the higher the rewards."}),"\n",(0,t.jsxs)(s.h3,{id:"hyper-scalable-chat-new-q1-2024",children:["Hyper Scalable Chat ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q1 2024",(0,t.jsx)(s.a,{href:"/blog/benchmarking-push-chat-message/",title:"Scaling Push Chat Benchmarking",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Hyper scalable chat will allow asynchronous messages in DMs or groups enabling several users to chat without wait. It will also enable groups to have 50k-100k users in a single group."}),"\n",(0,t.jsxs)(s.h3,{id:"push-metamask-snap-v2-q3-2024",children:["Push MetaMask Snap V2 ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2024",(0,t.jsx)(s.a,{href:"https://app.push.org/snap",title:"Install Push Snap on MetaMask",children:"\u2197"})]})})})})]}),"\n",(0,t.jsxs)(s.p,{children:["We bought notifications to MetaMask with our ",(0,t.jsx)(s.a,{href:"https://snaps.metamask.io/snap/npm/pushprotocol/snap/",children:"MetaMask Snap"}),". We will be upgrading it to V2 to enable chat and other forms of communication in MetaMask!"]}),"\n",(0,t.jsxs)(s.p,{children:["Snap has been upgraded with new features, due to limitations of Metamask for chat functionality. We have introduced in-app chat notifications on Push Mobile App ",(0,t.jsx)(s.a,{href:"https://apps.apple.com/us/app/push-epns/id1528614910",title:"Push iOS App",children:"iOS"})," and ",(0,t.jsx)(s.a,{href:"https://play.google.com/store/apps/details?id=io.epns.epns&hl=en",title:"Push Android App",children:"Android"}),"."]}),"\n",(0,t.jsxs)(s.h3,{id:"guest-mode-on-dapp-new-q1-2024",children:["Guest Mode on dApp ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q1 2024",(0,t.jsx)(s.a,{href:"https://app.push.org/",title:"Guest Mode dApp",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"We will be enabling guest mode on dApp to enable users to use Push without having to connect their wallet. Web3 needs to be accessible with the same ease as web2 and we are working towards it."}),"\n",(0,t.jsxs)(s.h3,{id:"push-protocol-v25-new-q1-2024",children:["Push Protocol V2.5 ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q1 2024",(0,t.jsx)(s.a,{href:"https://github.com/push-protocol/push-smart-contracts",title:"Push Protocol V2.5",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Protocol V2.5 is a planned upgrade to Push Protocol V2. It will enable several new features and will be a major step towards Push Protocol V3. Features include adding dynamic fees for various premium functionality, splitting contracts to enable better gas management, etc."}),"\n",(0,t.jsx)(s.admonition,{type:"note",children:(0,t.jsx)(s.p,{children:"Push Protocol V2.5 is feature complete and merged with Push Protocol V3."})}),"\n",(0,t.jsxs)(s.h3,{id:"fee-pool-expansion-q2-2024",children:["Fee Pool Expansion ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("i",{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q2 2024"})})})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Tokenenoics V2 further opens up the fee pool to enable more features. It also is a step towards Push Protocol V3 where crypto wallets will also be able to earn part of the fee from the fee pool, apart from token holders."}),"\n",(0,t.jsxs)(s.p,{children:["Some of the fee pool features it will add on for ",(0,t.jsx)(s.a,{href:"https://coinmarketcap.com/currencies/epns/",title:"$PUSH at Coinmarketcap.com",children:(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.code,{children:"$PUSH"})})})})," are - ",(0,t.jsx)(s.strong,{children:"Incentivized Chat"}),", ",(0,t.jsx)(s.strong,{children:"Complex Gated Groups"}),", ",(0,t.jsx)(s.strong,{children:"Push Payments Fee"}),", etc. Read about tokenomics in detail ",(0,t.jsx)(s.a,{href:"/docs/tokenomics/deepdive/$push/",title:"Push Tokenomics",children:"here"}),"."]}),"\n",(0,t.jsx)(s.admonition,{type:"note",children:(0,t.jsxs)(s.p,{children:["This is now treated as evolution of push nodes and a subset of email / telegram notifications, that is a ",(0,t.jsx)(s.a,{href:"/docs/roadmap#email--telegram-notifications-q4-2024",title:"Enabling email / telegram notifications for Push Notification",children:"new addition to the roadmap"}),"."]})}),"\n",(0,t.jsxs)(s.h3,{id:"user-profile-settings-q3-2024",children:["User Profile Settings ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("i",{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q3 2024"})})})})})})]}),"\n",(0,t.jsx)(s.p,{children:"With the unified SDK, Push user profiles handle everything from notifications to chat to spaces to video. Enabling user profile also enabled us to create intricate user profile settings to enable users to customize their experience on how they want to be notified, preferences for chat, audio, video, etc."}),"\n",(0,t.jsx)(s.p,{children:"Apart from our anti-spam mechanism already in place for user-centric actions (ie: opt-in to get notifications, accept chat requests, etc). This opens up the possibility of users choosing who can message them, whether it's open to all, or another recipient needs to pay (with return option) to make it to their inbox. Same for who can video call them, if at all among other options."}),"\n",(0,t.jsx)(s.admonition,{type:"note",children:(0,t.jsx)(s.p,{children:"User profile settings is getting a makeover as the Push Protocol and nodes evolves."})}),"\n",(0,t.jsxs)(s.h3,{id:"notification-read-receipts-q1-2025",children:["Notification Read Receipts ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q1 2025"})})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Notification read receipts is a popular feature requested by several protocols. Doing this in a decentralized manner is a challenge (who do you trust in interoperable environment?) but this seems possible with Push profiles that can silently sign these read receipts from a frontend. We will be working on this soon."}),"\n",(0,t.jsxs)(s.h3,{id:"smart-contract-wallet-support-q4-2024",children:["Smart Contract Wallet Support ",(0,t.jsx)(s.em,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q4 2024"})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push already supports Smart Contract wallets that conform to EIP-1271 standard. Though, we are not opening it officially since the decryption process for few AA wallets can be a security risk (When they store all signatures to execute a transaction). We have few ideas on how to solve this and will be working on it during this quarter."}),"\n",(0,t.jsx)(s.admonition,{type:"note",children:(0,t.jsx)(s.p,{children:"SDK is feature complete, frontend is revamping to enable this soon."})}),"\n",(0,t.jsxs)(s.h3,{id:"nft-sharded-encryption-new-q2-2024",children:["NFT Sharded Encryption ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("i",{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q2 2024"})})})})})})]}),"\n",(0,t.jsxs)(s.p,{children:["Push NFT Chat is the first of its kind NFT Chat that enables communication to be tied to NFTs! Read more about it ",(0,t.jsx)(s.a,{href:"/blog/introducing-push-nft-chat-chats-and-comms-tied-to-your-nf-ts-done-right/",title:"Article explaining NFT Chat",children:"here"}),"."]}),"\n",(0,t.jsxs)(s.p,{children:["It's a game changer but does require an added step when it's transferred to another user for communication to get transferred. With the help of sharded encryption, we will be able to eliminate this step and enable smoothest experience for NFT Chat, even when you change wallets, or want to start afresh ","\ud83d\ude04","."]}),"\n",(0,t.jsx)(s.admonition,{type:"note",children:(0,t.jsx)(s.p,{children:"Ties to the evolution of Push Nodes, will announce more details after governance proposal goes out."})}),"\n",(0,t.jsxs)(s.h3,{id:"push-nodes-audit-q3-2024",children:["Push Nodes Audit ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("i",{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q3 2024"})})})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Nodes Audit will be a third party audit of Push Nodes to ensure that it's secure and ready for production. Audit will likely include all relevant smart contracts and the node software on which the Proof of Stake network will depend for security."}),"\n",(0,t.jsx)(s.admonition,{type:"note",children:(0,t.jsx)(s.p,{children:"Ties to the evolution of Push Nodes, will announce more details after governance proposal goes out."})}),"\n",(0,t.jsxs)(s.h3,{id:"proof-of-stake-network-new-q3-2024",children:["Proof of Stake Network ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q3 2024"})})})]}),"\n",(0,t.jsxs)(s.p,{children:["Proof of Stake launch will make Push Network (L2 for web3 communication) incentivized for every validator, storage, delivery nodes. It will enable anyone to run a node and participate in securing the network and get rewarded for it by earning ",(0,t.jsx)(s.a,{href:"https://coinmarketcap.com/currencies/epns/",title:"$PUSH at Coinmarketcap.com",children:(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.code,{children:"$PUSH"})})})}),"."]}),"\n",(0,t.jsx)(s.p,{children:"Proof of Stake works by both incentivizing and penalizing nodes for their actions. Ensuring that the network is secure and reliable for all users and protocols."}),"\n",(0,t.jsxs)(s.h3,{id:"revamped-website-q3-2024",children:["Revamped Website ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2024",(0,t.jsx)(s.a,{href:"https://push.org",title:"Revamped Push Website",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"We will be revamping our website to enable better communication of our vision, product and features focused on developers and users."}),"\n",(0,t.jsxs)(s.h3,{id:"analytics-dashboard-new-q3-2024",children:["Analytics Dashboard ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2024",(0,t.jsx)(s.a,{href:"https://push.network",title:"Push Network Analytics",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Network is a decentralized network and we want to enable everyone to participate in it. Analytics dashboard will enable anyone to see the health of the network and how it's performing."}),"\n",(0,t.jsxs)(s.h3,{id:"other-sdks-q3-2024",children:["Other SDKs ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2024",(0,t.jsx)(s.a,{href:"https://github.com/push-protocol/push-swift-sdk",title:"Swift SDK",children:"\u2197"}),(0,t.jsx)(s.a,{href:"https://github.com/ethereum-push-notification-service/push-kotlin-sdk",title:"Kotlin SDK",children:"\u2197"}),(0,t.jsx)(s.a,{href:"https://github.com/push-protocol/push-restapi-dart",title:"Dart SDK",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push SDK is getting really popular with several protocols using it for their notifications and chat. We will be bringing new features of our unified SDK to other platforms like Swift, Android, Flutter, etc to enable developers to use Push SDK in their mobile apps with the coding language of their choice."}),"\n",(0,t.jsxs)(s.h3,{id:"autonomous-group-new-q2-2025",children:["Autonomous Group ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q2 2025"})})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Gated group chats have been a game changer for web3 protocols to create communities of their users and engage with them in a seamless manner. It allows for gamification of the community and enables protocols to create their own game theory for who can join the group, send messages and who can't."}),"\n",(0,t.jsx)(s.p,{children:"The next step towards this is autonomity of these groups. We will be enabling protocols to create their own autonomous groups that can be governed by the community itself where the community can decide rules on who can join, send messages, be an admin, moderator or do several other things based on the gated logic."}),"\n",(0,t.jsxs)(s.p,{children:["After all, DAO should have their DAGs free of any ownership unless it can be cryptographically set ","\ud83d\ude04","."]}),"\n",(0,t.jsxs)(s.h3,{id:"push-protocol-v3-new-q4-2024",children:["Push Protocol V3 ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q4 2024",(0,t.jsx)(s.a,{href:"https://github.com/push-protocol/push-smart-contracts",title:"Push Protocol V3",children:"\u2197"})]})})})]}),"\n",(0,t.jsxs)(s.p,{children:["We are bringing basket of tokens in V3, which means any fee pool action is not reliant on ",(0,t.jsx)(s.a,{href:"https://coinmarketcap.com/currencies/epns/",title:"$PUSH at Coinmarketcap.com",children:(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.code,{children:"$PUSH"})})})})," but can use a number of stable coins with usage of ",(0,t.jsx)(s.a,{href:"https://coinmarketcap.com/currencies/epns/",title:"$PUSH at Coinmarketcap.com",children:(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.code,{children:"$PUSH"})})})})," to pay fees at a discounted price."]}),"\n",(0,t.jsxs)(s.p,{children:["This will enable more frictionless experience for protocols or users who want to pay for premium features. At the same time, since ",(0,t.jsx)(s.a,{href:"https://coinmarketcap.com/currencies/epns/",title:"$PUSH at Coinmarketcap.com",children:(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.code,{children:"$PUSH"})})})})," is still required to get portion of the fee pool, the token will still be required to be held by protocols and users to get the benefits of the fee pool."]}),"\n",(0,t.jsx)(s.p,{children:"Apart for this, V3 will feature ability to split fee pool between token holders and crypto wallets along with some other features that we will be announcing soon."}),"\n",(0,t.jsxs)(s.h3,{id:"anon-chat-new-q2-2025",children:["Anon Chat ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q2 2025"})})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Anon Chat is a feature that will enable users to chat with each other without revealing their wallet identity. Currently, wallet chats with another wallet but with anon chat, wallet can generate a temporary identity that can be used to chat with another wallet and then be discarded \ud83e\udd77."}),"\n",(0,t.jsxs)(s.h3,{id:"custom-roles--rules-for-groups-q4-2024",children:["Custom Roles / Rules for Groups ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q4 2024",(0,t.jsx)(s.a,{href:"/docs/chat/build/conditional-rules-for-group/",title:"Custom rules and roles for groups",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Custom roles for groups will enable protocols to create their own roles and rules for their gated groups."}),"\n",(0,t.jsxs)(s.h3,{id:"governance-v2-q4-2024",children:["Governance V2 ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q4 2024",(0,t.jsx)(s.a,{href:"/docs/dao/",title:"Push DAO Phase 2",children:"\u2197"})]})})})})]}),"\n",(0,t.jsxs)(s.p,{children:["We started with progressive decentralized governance ",(0,t.jsx)(s.a,{href:"/blog/push-dao-progressive-decentralization-the-next-phase-of-push-governance/",title:"Article explaining Push DAO and how it works",children:"phase 0 followed by phase 1"})," and will be taking it further with phase 2."]}),"\n",(0,t.jsxs)(s.h3,{id:"email--telegram-notifications-q4-2024",children:["Email / Telegram Notifications ",(0,t.jsx)(s.em,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q4 2024"})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push has sent over 140m notifications and has more than 300k subscribers getting notifications to native web3 wallets."}),"\n",(0,t.jsx)(s.p,{children:"We will now be enabling protocols to send notifications to email and telegram in addition to notifications to wallets to further simplify the UX and to expand the reach of Push to mainstream users."}),"\n",(0,t.jsxs)(s.h3,{id:"push-goes-multi-chain-new-q4-2024",children:["Push goes Multi-Chain ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q4 2024",(0,t.jsx)(s.a,{href:"https://github.com/oak-security/audit-reports/blob/main/Push/2024-11-29%20Audit%20Report%20-%20Push%20Protocol%20-%20Comm%20Cairo.pdf",title:"Cairo Smart Contract Audit",children:"\u2197"})]})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push is cross-chain by design and already supports several chains like Ethereum, Polygon, BNB, Arbitrum, etc. It's time to enable Push to support non-EVM chains like Bitcoin, Solana, Avalanche, etc."}),"\n",(0,t.jsxs)(s.p,{children:["Push vision has always been to be the de-facto communication layer for web3. We imagine a future where a protocol of Solana is able to send a notification to a user on Ethereum that can be shown on Metamask (and vice versa), or a user on Bitcoin can send a message to a user on Polygon, and that a user is made up of several wallets on several chains. All of this is possible with Push and we will be working towards it ","\u2764\ufe0f","."]}),"\n",(0,t.jsx)(s.h2,{id:"completed-milestone",children:"Completed Milestone"}),"\n",(0,t.jsxs)(s.h3,{id:"hyper-scalable-group-q4-2023",children:["Hyper Scalable Group ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q4 2023",(0,t.jsx)(s.a,{href:"/blog/hyper-scalable-group-chats/",title:"Benchmark article for hyper scalable group chats",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push launched hyper-scalable groups allowing upto 5k users for private and 25k users for public groups. This enables protocols to create large communities of their users and engage with them in a seamless manner."}),"\n",(0,t.jsxs)(s.h3,{id:"gated--group-chats-q4-2023",children:["Gated + Group Chats ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q4 2023",(0,t.jsx)(s.a,{href:"/docs/chat/build/conditional-rules-for-group/",title:"Developer docs on conditional gating of groups",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push launched gated chats for web3 protocols to enable them to create gated communities for their users. This enables protocols / DAOs / NFTs to create a community of their users and engage with them based on the gamification of their choice."}),"\n",(0,t.jsxs)(s.h3,{id:"notification-settings-q4-2023",children:["Notification Settings ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q4 2023",(0,t.jsx)(s.a,{href:"/blog/introducing-notification-settings/",title:"Article explaining notification settings for Push and how to use it",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Notifications for web3 are synonymous with Push. With notification settings, protocols can provide notification settings for customized user preferences on a granular level."}),"\n",(0,t.jsxs)(s.h3,{id:"push-protocol-v2-q3-2023",children:["Push Protocol V2 ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2023",(0,t.jsx)(s.a,{href:"/blog/push-v2-is-live-new-rewards-utility-and-functionality/",title:"Article explaining Push Protocol V2",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Protocol V2 is designed to reward all participation in the network. Ensuring the start of creating a circular economy for web3 communication."}),"\n",(0,t.jsxs)(s.p,{children:["It introduced yield farming v2 which includes rewards + fee earned by network! This is split among all ",(0,t.jsx)(s.a,{href:"https://coinmarketcap.com/currencies/epns/",title:"$PUSH at Coinmarketcap.com",children:(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.code,{children:"$PUSH"})})})})," token holders based on the amount staked and the duration of time they have ",(0,t.jsx)(s.a,{href:"/blog/new-push-yield-farming-rewards-full-details/",title:"Article explaining for Yield Farming on Push Protocol V2 works",children:"held the tokens"}),"."]}),"\n",(0,t.jsxs)(s.h3,{id:"push-spaces-q3-2023",children:["Push Spaces ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2023",(0,t.jsx)(s.a,{href:"blog/push-spaces-is-live-decentralized-audio-and-video-streaming-is-here/",title:"Article about Push Spaces launch",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Spaces is a decentralized audio and video streaming solution for web3. It enables protocols to create their own audio and video rooms for their users to join and interact with each other."}),"\n",(0,t.jsx)(s.p,{children:"It is built on top of composable parts of Push Chat protocol and Push Notifications protocol which means that it inherits their gating ability along with using notifications to exchange peer info for establishing the connection."}),"\n",(0,t.jsxs)(s.h3,{id:"push-nft-chat-q3-2023",children:["Push NFT Chat ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2023",(0,t.jsx)(s.a,{href:"/blog/introducing-push-nft-chat-chats-and-comms-tied-to-your-nf-ts-done-right/",title:"Article explaining NFT Chat",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push NFT Chat is the first of its kind NFT Chat that enables communication to be tied to NFTs!"}),"\n",(0,t.jsx)(s.p,{children:"It enables NFTs to be used as a key to unlock communication with other NFTs or wallets. You can use any NFTs to create a chat room and invite other NFTs or wallets to chat with them apart from sending notifications or conducting spaces with them."}),"\n",(0,t.jsxs)(s.h3,{id:"push-video-q2-2023",children:["Push Video ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q2 2023",(0,t.jsx)(s.a,{href:"/blog/push-launches-wallet-to-wallet-video-chat/",title:"Article about Push Video launch",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Video is a wallet to wallet video chat solution for web3. It enables users to video chat with each other without having to share their personal information."}),"\n",(0,t.jsxs)(s.h3,{id:"push-delivery-nodes-q1-2023",children:["Push Delivery Nodes ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q1 2023",(0,t.jsx)(s.a,{href:"/blog/empower-your-wallet-app-or-platform-with-push-delivery-nodes/",title:"Article about Push Delivery Nodes launch",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Delivery Nodes enable crypto wallets to deliver communication to their users including chat, notifications, video, spaces, etc. It enables services to run their delivery nodes that can listen to the Push Network and deliver communication to their users or perform actions based on any communication (encrypted) coming to wallet addresses they are listening to."}),"\n",(0,t.jsxs)(s.h3,{id:"launch-on-bnb-chain-q1-2023",children:["Launch on BNB Chain ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q1 2023",(0,t.jsx)(s.a,{href:"/blog/push-protocol-launches-on-bnb-chain/",title:"Article about Push launch on BNB",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Protocol officially launched on BNB Chain after Polygon and Ethereum. As of now it supports BNB Chain, Polygon PoS, Polygon ZKEVM, Ethereum and Arbitrum. It will be supporting more chains in the future."}),"\n",(0,t.jsxs)(s.p,{children:[(0,t.jsx)(s.strong,{children:"Note"}),": Push Notification protocol is chain specific for delivering on-chain notifications. Other features of Push like chat, video, spaces, off-chain notifications, etc are chain agnostic and can be used on any EVM chain without needing additional support."]})]})}function p(e={}){const{wrapper:s}={...(0,o.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},28453:(e,s,n)=>{n.d(s,{R:()=>r,x:()=>a});var t=n(296540);const o={},i=t.createContext(o);function r(e){const s=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),t.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkpush_website=self.webpackChunkpush_website||[]).push([[58382],{828598:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>l,default:()=>p,frontMatter:()=>a,metadata:()=>h,toc:()=>c});var t=n(474848),o=n(28453),i=n(313554),r=n.n(i);const a={id:"docs-roadmap-live-roadmap",title:"Live Roadmap",hide_title:!0,slug:"./",displayed_sidebar:"pushRoadmapSidebar",sidebar_position:1,image:"/assets/docs/previews/docs_roadmap--live_roadmap.png"},l="Overview",h={id:"roadmap/docs-roadmap-live-roadmap",title:"Live Roadmap",description:"**_",source:"@site/docs/roadmap/01-Push-Roadmap.mdx",sourceDirName:"roadmap",slug:"/roadmap/",permalink:"/push-website/pr-preview/pr-945/docs/roadmap/",draft:!1,unlisted:!1,editUrl:"https://github.com/push-protocol/push-website/blob/main/docs/roadmap/01-Push-Roadmap.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{id:"docs-roadmap-live-roadmap",title:"Live Roadmap",hide_title:!0,slug:"./",displayed_sidebar:"pushRoadmapSidebar",sidebar_position:1,image:"/assets/docs/previews/docs_roadmap--live_roadmap.png"},sidebar:"pushRoadmapSidebar",next:{title:"Roadmap Recaps",permalink:"/push-website/pr-preview/pr-945/docs/roadmap/roadmap-recaps"}},d={},c=[{value:"LAST_UPDATED",id:"last_updated",level:6},{value:"Live Roadmap",id:"live-roadmap",level:2},{value:"Push Nodes Alpha Q4 2024",id:"push-nodes-alpha-q4-2024",level:3},{value:"Unified Push SDK V2 NEW Q3 2024\u2197",id:"unified-push-sdk-v2-new-q3-2024",level:3},{value:"Support for Ethers V6 NEW Q1 2024\u2197",id:"support-for-ethers-v6-new-q1-2024",level:3},{value:"Reward Points NEW Q2 2024\u2197",id:"reward-points-new-q2-2024",level:3},{value:"Hyper Scalable Chat NEW Q1 2024\u2197",id:"hyper-scalable-chat-new-q1-2024",level:3},{value:"Push MetaMask Snap V2 Q3 2024\u2197",id:"push-metamask-snap-v2-q3-2024",level:3},{value:"Guest Mode on dApp NEW Q1 2024\u2197",id:"guest-mode-on-dapp-new-q1-2024",level:3},{value:"Push Protocol V2.5 NEW Q1 2024\u2197",id:"push-protocol-v25-new-q1-2024",level:3},{value:"Fee Pool Expansion Q2 2024",id:"fee-pool-expansion-q2-2024",level:3},{value:"User Profile Settings Q3 2024",id:"user-profile-settings-q3-2024",level:3},{value:"Notification Read Receipts Q1 2025",id:"notification-read-receipts-q1-2025",level:3},{value:"Smart Contract Wallet Support Q4 2024",id:"smart-contract-wallet-support-q4-2024",level:3},{value:"NFT Sharded Encryption NEW Q2 2024",id:"nft-sharded-encryption-new-q2-2024",level:3},{value:"Push Nodes Audit Q3 2024",id:"push-nodes-audit-q3-2024",level:3},{value:"Proof of Stake Network NEW Q3 2024",id:"proof-of-stake-network-new-q3-2024",level:3},{value:"Revamped Website Q3 2024\u2197",id:"revamped-website-q3-2024",level:3},{value:"Analytics Dashboard NEW Q3 2024\u2197",id:"analytics-dashboard-new-q3-2024",level:3},{value:"Other SDKs Q3 2024\u2197\u2197\u2197",id:"other-sdks-q3-2024",level:3},{value:"Autonomous Group NEW Q2 2025",id:"autonomous-group-new-q2-2025",level:3},{value:"Push Protocol V3 NEW Q4 2024\u2197",id:"push-protocol-v3-new-q4-2024",level:3},{value:"Anon Chat NEW Q2 2025",id:"anon-chat-new-q2-2025",level:3},{value:"Custom Roles / Rules for Groups Q4 2024\u2197",id:"custom-roles--rules-for-groups-q4-2024",level:3},{value:"Governance V2 Q4 2024\u2197",id:"governance-v2-q4-2024",level:3},{value:"Email / Telegram Notifications Q4 2024",id:"email--telegram-notifications-q4-2024",level:3},{value:"Push goes Multi-Chain NEW Q4 2024\u2197",id:"push-goes-multi-chain-new-q4-2024",level:3},{value:"Completed Milestone",id:"completed-milestone",level:2},{value:"Hyper Scalable Group Q4 2023\u2197",id:"hyper-scalable-group-q4-2023",level:3},{value:"Gated + Group Chats Q4 2023\u2197",id:"gated--group-chats-q4-2023",level:3},{value:"Notification Settings Q4 2023\u2197",id:"notification-settings-q4-2023",level:3},{value:"Push Protocol V2 Q3 2023\u2197",id:"push-protocol-v2-q3-2023",level:3},{value:"Push Spaces Q3 2023\u2197",id:"push-spaces-q3-2023",level:3},{value:"Push NFT Chat Q3 2023\u2197",id:"push-nft-chat-q3-2023",level:3},{value:"Push Video Q2 2023\u2197",id:"push-video-q2-2023",level:3},{value:"Push Delivery Nodes Q1 2023\u2197",id:"push-delivery-nodes-q1-2023",level:3},{value:"Launch on BNB Chain Q1 2023\u2197",id:"launch-on-bnb-chain-q1-2023",level:3}];function u(e){const s={a:"a",admonition:"admonition",code:"code",del:"del",em:"em",h1:"h1",h2:"h2",h3:"h3",h6:"h6",mermaid:"mermaid",p:"p",strong:"strong",...(0,o.R)(),...e.components},{Head:n}=s;return n||function(e,s){throw new Error("Expected "+(s?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Head",!0),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{id:"overview",children:"Overview"}),"\n",(0,t.jsx)(s.h6,{id:"last_updated",children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Dec 16, 2024"})})})})}),"\n",(0,t.jsx)(s.p,{children:"Live roadmap is a living document that will be updated as we progress through our roadmap. It will be refreshed constantly with new features, milestones and other important information as we progress through our roadmap."}),"\n",(0,t.jsxs)(s.p,{children:["For feature request or support reach out to us ",(0,t.jsx)(s.a,{href:"mailto:support@push.org",children:"support@push.org"})]}),"\n","\n","\n",(0,t.jsx)(s.mermaid,{value:"timeline\n title Roadmap Plan 2024\n Q1 2024 : Support for Ethers V6\n : Hyper Scalable Chat\n : Guest Mode on dApp\n Q2 2024 : Push Protocol V2.5\n : Push Tokenomics V2 (Fee Pool+)\n : Notification Read Receipts\n : Support for AA Wallets\n : Reward Points\n : NFT Chat Sharded Encryption\n Q3 2024 : Push Nodes Alpha\n : Unified Push SDK V2\n : Push Nodes Audit\n : User Profile Settings\n : Proof of Stake Network\n : Revamped Website\n : Analytics Dashboard\n : Other SDKs (Swift, Android, Flutter, etc)\n : Decentralized Autonomous Group (DAG)\n Q4 2024 : Push Protocol V3\n : Push Metamask Snap V2\n : Anon Chat (Wallet > Anon > Wallet)\n : Custom Roles for Groups\n : DAO and Governance V2\n : Email / Telegram Notifications\n : Push goes Multi-Chain (Hello non-EVMs)"}),"\n",(0,t.jsx)(n,{children:(0,t.jsx)("title",{children:"Push Live Roadmap | Push Roadmap | Push Documentation"})}),"\n",(0,t.jsx)(s.h2,{id:"live-roadmap",children:"Live Roadmap"}),"\n",(0,t.jsxs)(s.h3,{id:"push-nodes-alpha-q4-2024",children:["Push Nodes Alpha ",(0,t.jsx)(s.em,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q4 2024"})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push nodes will complete the final step of decentralization and will be open for everyone to run and participate in securing the network, enabling genesis of Push Network (L2 for web3 communication)."}),"\n",(0,t.jsxs)(s.p,{children:["Push network is a Proof of Stake network requiring nodes to stake ",(0,t.jsx)(s.a,{href:"https://coinmarketcap.com/currencies/epns/",title:"$PUSH at Coinmarketcap.com",children:(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.code,{children:"$PUSH"})})})})," to secure the network. It will be able to validate, store and deliver notifications and user profiles in the alpha version."]}),"\n",(0,t.jsx)(r(),{controls:!0,width:"100%",url:"https://www.youtube.com/watch?v=JCwH2pN69dw"}),"\n",(0,t.jsx)("p",{}),"\n",(0,t.jsx)(s.admonition,{type:"info",children:(0,t.jsx)(s.p,{children:"Push Protocol and Nodes are evolving, we will be announcing the future of this milestone soon via governance."})}),"\n",(0,t.jsxs)(s.h3,{id:"unified-push-sdk-v2-new-q3-2024",children:["Unified Push SDK V2 ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("i",{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2024",(0,t.jsx)(s.a,{href:"https://www.npmjs.com/package/@pushprotocol/restapi",title:"SDK Documentation",children:"\u2197"})]})})})})})})]}),"\n",(0,t.jsxs)(s.p,{children:["We started the journey of making our SDK more developer friendly with unified SDK to enable both chat and notifications in ",(0,t.jsx)(s.a,{href:"/docs/",title:"Push SDK Documentation",children:"4 LoC or less"}),"."]}),"\n",(0,t.jsx)(s.p,{children:"We will be taking this further with V2 of our SDK to encompass all forms of communication (Notifications, Chat, Video, Spaces) in a single SDK."}),"\n",(0,t.jsxs)(s.admonition,{type:"note",children:[(0,t.jsxs)(s.p,{children:["V2 is changed to be an iterative process to avoid breaking changes and instead upgrade it by introducing logic to support backward compatibility to the best extent. The iterations can be tracked ",(0,t.jsx)(s.a,{href:"https://github.com/push-protocol/push-sdk",children:"here"}),"."]}),(0,t.jsxs)(s.p,{children:["This is a breaking change, we recommend all developers to join our ",(0,t.jsx)(s.a,{href:"https://discord.gg/pushprotocol",children:"Discord server"})," -> ",(0,t.jsx)(s.code,{children:"#dev-announcements"})," channel for information on how to upgrade and best practices for easier transition."]})]}),"\n",(0,t.jsxs)(s.h3,{id:"support-for-ethers-v6-new-q1-2024",children:["Support for Ethers V6 ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q1 2024",(0,t.jsx)(s.a,{href:"/docs/chat/build/initialize-user/",title:"Documentation supporting Ethers V6",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"We will be upgrading our SDK to support Ethers V6 along with Ethers V5 and viem. This will enable developers to use our SDK with latest version of Ethers."}),"\n",(0,t.jsxs)(s.h3,{id:"reward-points-new-q2-2024",children:["Reward Points ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q2 2024",(0,t.jsx)(s.a,{href:"https://app.push.org/points",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Points are a new way for users to show they belong to the Push community and have access to some cool surprises in the future. The more tasks they complete, the higher the rewards."}),"\n",(0,t.jsxs)(s.h3,{id:"hyper-scalable-chat-new-q1-2024",children:["Hyper Scalable Chat ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q1 2024",(0,t.jsx)(s.a,{href:"/blog/benchmarking-push-chat-message/",title:"Scaling Push Chat Benchmarking",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Hyper scalable chat will allow asynchronous messages in DMs or groups enabling several users to chat without wait. It will also enable groups to have 50k-100k users in a single group."}),"\n",(0,t.jsxs)(s.h3,{id:"push-metamask-snap-v2-q3-2024",children:["Push MetaMask Snap V2 ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2024",(0,t.jsx)(s.a,{href:"https://app.push.org/snap",title:"Install Push Snap on MetaMask",children:"\u2197"})]})})})})]}),"\n",(0,t.jsxs)(s.p,{children:["We bought notifications to MetaMask with our ",(0,t.jsx)(s.a,{href:"https://snaps.metamask.io/snap/npm/pushprotocol/snap/",children:"MetaMask Snap"}),". We will be upgrading it to V2 to enable chat and other forms of communication in MetaMask!"]}),"\n",(0,t.jsxs)(s.p,{children:["Snap has been upgraded with new features, due to limitations of Metamask for chat functionality. We have introduced in-app chat notifications on Push Mobile App ",(0,t.jsx)(s.a,{href:"https://apps.apple.com/us/app/push-epns/id1528614910",title:"Push iOS App",children:"iOS"})," and ",(0,t.jsx)(s.a,{href:"https://play.google.com/store/apps/details?id=io.epns.epns&hl=en",title:"Push Android App",children:"Android"}),"."]}),"\n",(0,t.jsxs)(s.h3,{id:"guest-mode-on-dapp-new-q1-2024",children:["Guest Mode on dApp ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q1 2024",(0,t.jsx)(s.a,{href:"https://app.push.org/",title:"Guest Mode dApp",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"We will be enabling guest mode on dApp to enable users to use Push without having to connect their wallet. Web3 needs to be accessible with the same ease as web2 and we are working towards it."}),"\n",(0,t.jsxs)(s.h3,{id:"push-protocol-v25-new-q1-2024",children:["Push Protocol V2.5 ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q1 2024",(0,t.jsx)(s.a,{href:"https://github.com/push-protocol/push-smart-contracts",title:"Push Protocol V2.5",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Protocol V2.5 is a planned upgrade to Push Protocol V2. It will enable several new features and will be a major step towards Push Protocol V3. Features include adding dynamic fees for various premium functionality, splitting contracts to enable better gas management, etc."}),"\n",(0,t.jsx)(s.admonition,{type:"note",children:(0,t.jsx)(s.p,{children:"Push Protocol V2.5 is feature complete and merged with Push Protocol V3."})}),"\n",(0,t.jsxs)(s.h3,{id:"fee-pool-expansion-q2-2024",children:["Fee Pool Expansion ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("i",{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q2 2024"})})})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Tokenenoics V2 further opens up the fee pool to enable more features. It also is a step towards Push Protocol V3 where crypto wallets will also be able to earn part of the fee from the fee pool, apart from token holders."}),"\n",(0,t.jsxs)(s.p,{children:["Some of the fee pool features it will add on for ",(0,t.jsx)(s.a,{href:"https://coinmarketcap.com/currencies/epns/",title:"$PUSH at Coinmarketcap.com",children:(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.code,{children:"$PUSH"})})})})," are - ",(0,t.jsx)(s.strong,{children:"Incentivized Chat"}),", ",(0,t.jsx)(s.strong,{children:"Complex Gated Groups"}),", ",(0,t.jsx)(s.strong,{children:"Push Payments Fee"}),", etc. Read about tokenomics in detail ",(0,t.jsx)(s.a,{href:"/docs/tokenomics/deepdive/$push/",title:"Push Tokenomics",children:"here"}),"."]}),"\n",(0,t.jsx)(s.admonition,{type:"note",children:(0,t.jsxs)(s.p,{children:["This is now treated as evolution of push nodes and a subset of email / telegram notifications, that is a ",(0,t.jsx)(s.a,{href:"/docs/roadmap#email--telegram-notifications-q4-2024",title:"Enabling email / telegram notifications for Push Notification",children:"new addition to the roadmap"}),"."]})}),"\n",(0,t.jsxs)(s.h3,{id:"user-profile-settings-q3-2024",children:["User Profile Settings ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("i",{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q3 2024"})})})})})})]}),"\n",(0,t.jsx)(s.p,{children:"With the unified SDK, Push user profiles handle everything from notifications to chat to spaces to video. Enabling user profile also enabled us to create intricate user profile settings to enable users to customize their experience on how they want to be notified, preferences for chat, audio, video, etc."}),"\n",(0,t.jsx)(s.p,{children:"Apart from our anti-spam mechanism already in place for user-centric actions (ie: opt-in to get notifications, accept chat requests, etc). This opens up the possibility of users choosing who can message them, whether it's open to all, or another recipient needs to pay (with return option) to make it to their inbox. Same for who can video call them, if at all among other options."}),"\n",(0,t.jsx)(s.admonition,{type:"note",children:(0,t.jsx)(s.p,{children:"User profile settings is getting a makeover as the Push Protocol and nodes evolves."})}),"\n",(0,t.jsxs)(s.h3,{id:"notification-read-receipts-q1-2025",children:["Notification Read Receipts ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q1 2025"})})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Notification read receipts is a popular feature requested by several protocols. Doing this in a decentralized manner is a challenge (who do you trust in interoperable environment?) but this seems possible with Push profiles that can silently sign these read receipts from a frontend. We will be working on this soon."}),"\n",(0,t.jsxs)(s.h3,{id:"smart-contract-wallet-support-q4-2024",children:["Smart Contract Wallet Support ",(0,t.jsx)(s.em,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q4 2024"})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push already supports Smart Contract wallets that conform to EIP-1271 standard. Though, we are not opening it officially since the decryption process for few AA wallets can be a security risk (When they store all signatures to execute a transaction). We have few ideas on how to solve this and will be working on it during this quarter."}),"\n",(0,t.jsx)(s.admonition,{type:"note",children:(0,t.jsx)(s.p,{children:"SDK is feature complete, frontend is revamping to enable this soon."})}),"\n",(0,t.jsxs)(s.h3,{id:"nft-sharded-encryption-new-q2-2024",children:["NFT Sharded Encryption ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("i",{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q2 2024"})})})})})})]}),"\n",(0,t.jsxs)(s.p,{children:["Push NFT Chat is the first of its kind NFT Chat that enables communication to be tied to NFTs! Read more about it ",(0,t.jsx)(s.a,{href:"/blog/introducing-push-nft-chat-chats-and-comms-tied-to-your-nf-ts-done-right/",title:"Article explaining NFT Chat",children:"here"}),"."]}),"\n",(0,t.jsxs)(s.p,{children:["It's a game changer but does require an added step when it's transferred to another user for communication to get transferred. With the help of sharded encryption, we will be able to eliminate this step and enable smoothest experience for NFT Chat, even when you change wallets, or want to start afresh ","\ud83d\ude04","."]}),"\n",(0,t.jsx)(s.admonition,{type:"note",children:(0,t.jsx)(s.p,{children:"Ties to the evolution of Push Nodes, will announce more details after governance proposal goes out."})}),"\n",(0,t.jsxs)(s.h3,{id:"push-nodes-audit-q3-2024",children:["Push Nodes Audit ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("i",{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q3 2024"})})})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Nodes Audit will be a third party audit of Push Nodes to ensure that it's secure and ready for production. Audit will likely include all relevant smart contracts and the node software on which the Proof of Stake network will depend for security."}),"\n",(0,t.jsx)(s.admonition,{type:"note",children:(0,t.jsx)(s.p,{children:"Ties to the evolution of Push Nodes, will announce more details after governance proposal goes out."})}),"\n",(0,t.jsxs)(s.h3,{id:"proof-of-stake-network-new-q3-2024",children:["Proof of Stake Network ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q3 2024"})})})]}),"\n",(0,t.jsxs)(s.p,{children:["Proof of Stake launch will make Push Network (L2 for web3 communication) incentivized for every validator, storage, delivery nodes. It will enable anyone to run a node and participate in securing the network and get rewarded for it by earning ",(0,t.jsx)(s.a,{href:"https://coinmarketcap.com/currencies/epns/",title:"$PUSH at Coinmarketcap.com",children:(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.code,{children:"$PUSH"})})})}),"."]}),"\n",(0,t.jsx)(s.p,{children:"Proof of Stake works by both incentivizing and penalizing nodes for their actions. Ensuring that the network is secure and reliable for all users and protocols."}),"\n",(0,t.jsxs)(s.h3,{id:"revamped-website-q3-2024",children:["Revamped Website ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2024",(0,t.jsx)(s.a,{href:"https://push.org",title:"Revamped Push Website",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"We will be revamping our website to enable better communication of our vision, product and features focused on developers and users."}),"\n",(0,t.jsxs)(s.h3,{id:"analytics-dashboard-new-q3-2024",children:["Analytics Dashboard ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2024",(0,t.jsx)(s.a,{href:"https://push.network",title:"Push Network Analytics",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Network is a decentralized network and we want to enable everyone to participate in it. Analytics dashboard will enable anyone to see the health of the network and how it's performing."}),"\n",(0,t.jsxs)(s.h3,{id:"other-sdks-q3-2024",children:["Other SDKs ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2024",(0,t.jsx)(s.a,{href:"https://github.com/push-protocol/push-swift-sdk",title:"Swift SDK",children:"\u2197"}),(0,t.jsx)(s.a,{href:"https://github.com/ethereum-push-notification-service/push-kotlin-sdk",title:"Kotlin SDK",children:"\u2197"}),(0,t.jsx)(s.a,{href:"https://github.com/push-protocol/push-restapi-dart",title:"Dart SDK",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push SDK is getting really popular with several protocols using it for their notifications and chat. We will be bringing new features of our unified SDK to other platforms like Swift, Android, Flutter, etc to enable developers to use Push SDK in their mobile apps with the coding language of their choice."}),"\n",(0,t.jsxs)(s.h3,{id:"autonomous-group-new-q2-2025",children:["Autonomous Group ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q2 2025"})})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Gated group chats have been a game changer for web3 protocols to create communities of their users and engage with them in a seamless manner. It allows for gamification of the community and enables protocols to create their own game theory for who can join the group, send messages and who can't."}),"\n",(0,t.jsx)(s.p,{children:"The next step towards this is autonomity of these groups. We will be enabling protocols to create their own autonomous groups that can be governed by the community itself where the community can decide rules on who can join, send messages, be an admin, moderator or do several other things based on the gated logic."}),"\n",(0,t.jsxs)(s.p,{children:["After all, DAO should have their DAGs free of any ownership unless it can be cryptographically set ","\ud83d\ude04","."]}),"\n",(0,t.jsxs)(s.h3,{id:"push-protocol-v3-new-q4-2024",children:["Push Protocol V3 ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q4 2024",(0,t.jsx)(s.a,{href:"https://github.com/push-protocol/push-smart-contracts",title:"Push Protocol V3",children:"\u2197"})]})})})]}),"\n",(0,t.jsxs)(s.p,{children:["We are bringing basket of tokens in V3, which means any fee pool action is not reliant on ",(0,t.jsx)(s.a,{href:"https://coinmarketcap.com/currencies/epns/",title:"$PUSH at Coinmarketcap.com",children:(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.code,{children:"$PUSH"})})})})," but can use a number of stable coins with usage of ",(0,t.jsx)(s.a,{href:"https://coinmarketcap.com/currencies/epns/",title:"$PUSH at Coinmarketcap.com",children:(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.code,{children:"$PUSH"})})})})," to pay fees at a discounted price."]}),"\n",(0,t.jsxs)(s.p,{children:["This will enable more frictionless experience for protocols or users who want to pay for premium features. At the same time, since ",(0,t.jsx)(s.a,{href:"https://coinmarketcap.com/currencies/epns/",title:"$PUSH at Coinmarketcap.com",children:(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.code,{children:"$PUSH"})})})})," is still required to get portion of the fee pool, the token will still be required to be held by protocols and users to get the benefits of the fee pool."]}),"\n",(0,t.jsx)(s.p,{children:"Apart for this, V3 will feature ability to split fee pool between token holders and crypto wallets along with some other features that we will be announcing soon."}),"\n",(0,t.jsxs)(s.h3,{id:"anon-chat-new-q2-2025",children:["Anon Chat ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.del,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q2 2025"})})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Anon Chat is a feature that will enable users to chat with each other without revealing their wallet identity. Currently, wallet chats with another wallet but with anon chat, wallet can generate a temporary identity that can be used to chat with another wallet and then be discarded \ud83e\udd77."}),"\n",(0,t.jsxs)(s.h3,{id:"custom-roles--rules-for-groups-q4-2024",children:["Custom Roles / Rules for Groups ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q4 2024",(0,t.jsx)(s.a,{href:"/docs/chat/build/conditional-rules-for-group/",title:"Custom rules and roles for groups",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Custom roles for groups will enable protocols to create their own roles and rules for their gated groups."}),"\n",(0,t.jsxs)(s.h3,{id:"governance-v2-q4-2024",children:["Governance V2 ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q4 2024",(0,t.jsx)(s.a,{href:"/docs/dao/",title:"Push DAO Phase 2",children:"\u2197"})]})})})})]}),"\n",(0,t.jsxs)(s.p,{children:["We started with progressive decentralized governance ",(0,t.jsx)(s.a,{href:"/blog/push-dao-progressive-decentralization-the-next-phase-of-push-governance/",title:"Article explaining Push DAO and how it works",children:"phase 0 followed by phase 1"})," and will be taking it further with phase 2."]}),"\n",(0,t.jsxs)(s.h3,{id:"email--telegram-notifications-q4-2024",children:["Email / Telegram Notifications ",(0,t.jsx)(s.em,{children:(0,t.jsx)("sup",{children:(0,t.jsx)("sub",{children:"Q4 2024"})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push has sent over 140m notifications and has more than 300k subscribers getting notifications to native web3 wallets."}),"\n",(0,t.jsx)(s.p,{children:"We will now be enabling protocols to send notifications to email and telegram in addition to notifications to wallets to further simplify the UX and to expand the reach of Push to mainstream users."}),"\n",(0,t.jsxs)(s.h3,{id:"push-goes-multi-chain-new-q4-2024",children:["Push goes Multi-Chain ",(0,t.jsx)("sup",{children:(0,t.jsx)(s.em,{children:"NEW"})})," ",(0,t.jsx)(s.em,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q4 2024",(0,t.jsx)(s.a,{href:"https://github.com/oak-security/audit-reports/blob/main/Push/2024-11-29%20Audit%20Report%20-%20Push%20Protocol%20-%20Comm%20Cairo.pdf",title:"Cairo Smart Contract Audit",children:"\u2197"})]})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push is cross-chain by design and already supports several chains like Ethereum, Polygon, BNB, Arbitrum, etc. It's time to enable Push to support non-EVM chains like Bitcoin, Solana, Avalanche, etc."}),"\n",(0,t.jsxs)(s.p,{children:["Push vision has always been to be the de-facto communication layer for web3. We imagine a future where a protocol of Solana is able to send a notification to a user on Ethereum that can be shown on Metamask (and vice versa), or a user on Bitcoin can send a message to a user on Polygon, and that a user is made up of several wallets on several chains. All of this is possible with Push and we will be working towards it ","\u2764\ufe0f","."]}),"\n",(0,t.jsx)(s.h2,{id:"completed-milestone",children:"Completed Milestone"}),"\n",(0,t.jsxs)(s.h3,{id:"hyper-scalable-group-q4-2023",children:["Hyper Scalable Group ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q4 2023",(0,t.jsx)(s.a,{href:"/blog/hyper-scalable-group-chats/",title:"Benchmark article for hyper scalable group chats",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push launched hyper-scalable groups allowing upto 5k users for private and 25k users for public groups. This enables protocols to create large communities of their users and engage with them in a seamless manner."}),"\n",(0,t.jsxs)(s.h3,{id:"gated--group-chats-q4-2023",children:["Gated + Group Chats ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q4 2023",(0,t.jsx)(s.a,{href:"/docs/chat/build/conditional-rules-for-group/",title:"Developer docs on conditional gating of groups",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push launched gated chats for web3 protocols to enable them to create gated communities for their users. This enables protocols / DAOs / NFTs to create a community of their users and engage with them based on the gamification of their choice."}),"\n",(0,t.jsxs)(s.h3,{id:"notification-settings-q4-2023",children:["Notification Settings ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q4 2023",(0,t.jsx)(s.a,{href:"/blog/introducing-notification-settings/",title:"Article explaining notification settings for Push and how to use it",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Notifications for web3 are synonymous with Push. With notification settings, protocols can provide notification settings for customized user preferences on a granular level."}),"\n",(0,t.jsxs)(s.h3,{id:"push-protocol-v2-q3-2023",children:["Push Protocol V2 ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2023",(0,t.jsx)(s.a,{href:"/blog/push-v2-is-live-new-rewards-utility-and-functionality/",title:"Article explaining Push Protocol V2",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Protocol V2 is designed to reward all participation in the network. Ensuring the start of creating a circular economy for web3 communication."}),"\n",(0,t.jsxs)(s.p,{children:["It introduced yield farming v2 which includes rewards + fee earned by network! This is split among all ",(0,t.jsx)(s.a,{href:"https://coinmarketcap.com/currencies/epns/",title:"$PUSH at Coinmarketcap.com",children:(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.em,{children:(0,t.jsx)(s.code,{children:"$PUSH"})})})})," token holders based on the amount staked and the duration of time they have ",(0,t.jsx)(s.a,{href:"/blog/new-push-yield-farming-rewards-full-details/",title:"Article explaining for Yield Farming on Push Protocol V2 works",children:"held the tokens"}),"."]}),"\n",(0,t.jsxs)(s.h3,{id:"push-spaces-q3-2023",children:["Push Spaces ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2023",(0,t.jsx)(s.a,{href:"blog/push-spaces-is-live-decentralized-audio-and-video-streaming-is-here/",title:"Article about Push Spaces launch",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Spaces is a decentralized audio and video streaming solution for web3. It enables protocols to create their own audio and video rooms for their users to join and interact with each other."}),"\n",(0,t.jsx)(s.p,{children:"It is built on top of composable parts of Push Chat protocol and Push Notifications protocol which means that it inherits their gating ability along with using notifications to exchange peer info for establishing the connection."}),"\n",(0,t.jsxs)(s.h3,{id:"push-nft-chat-q3-2023",children:["Push NFT Chat ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q3 2023",(0,t.jsx)(s.a,{href:"/blog/introducing-push-nft-chat-chats-and-comms-tied-to-your-nf-ts-done-right/",title:"Article explaining NFT Chat",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push NFT Chat is the first of its kind NFT Chat that enables communication to be tied to NFTs!"}),"\n",(0,t.jsx)(s.p,{children:"It enables NFTs to be used as a key to unlock communication with other NFTs or wallets. You can use any NFTs to create a chat room and invite other NFTs or wallets to chat with them apart from sending notifications or conducting spaces with them."}),"\n",(0,t.jsxs)(s.h3,{id:"push-video-q2-2023",children:["Push Video ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q2 2023",(0,t.jsx)(s.a,{href:"/blog/push-launches-wallet-to-wallet-video-chat/",title:"Article about Push Video launch",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Video is a wallet to wallet video chat solution for web3. It enables users to video chat with each other without having to share their personal information."}),"\n",(0,t.jsxs)(s.h3,{id:"push-delivery-nodes-q1-2023",children:["Push Delivery Nodes ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q1 2023",(0,t.jsx)(s.a,{href:"/blog/empower-your-wallet-app-or-platform-with-push-delivery-nodes/",title:"Article about Push Delivery Nodes launch",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Delivery Nodes enable crypto wallets to deliver communication to their users including chat, notifications, video, spaces, etc. It enables services to run their delivery nodes that can listen to the Push Network and deliver communication to their users or perform actions based on any communication (encrypted) coming to wallet addresses they are listening to."}),"\n",(0,t.jsxs)(s.h3,{id:"launch-on-bnb-chain-q1-2023",children:["Launch on BNB Chain ",(0,t.jsx)(s.em,{children:(0,t.jsx)(s.strong,{children:(0,t.jsx)("sup",{children:(0,t.jsxs)("sub",{children:["Q1 2023",(0,t.jsx)(s.a,{href:"/blog/push-protocol-launches-on-bnb-chain/",title:"Article about Push launch on BNB",children:"\u2197"})]})})})})]}),"\n",(0,t.jsx)(s.p,{children:"Push Protocol officially launched on BNB Chain after Polygon and Ethereum. As of now it supports BNB Chain, Polygon PoS, Polygon ZKEVM, Ethereum and Arbitrum. It will be supporting more chains in the future."}),"\n",(0,t.jsxs)(s.p,{children:[(0,t.jsx)(s.strong,{children:"Note"}),": Push Notification protocol is chain specific for delivering on-chain notifications. Other features of Push like chat, video, spaces, off-chain notifications, etc are chain agnostic and can be used on any EVM chain without needing additional support."]})]})}function p(e={}){const{wrapper:s}={...(0,o.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},28453:(e,s,n)=>{n.d(s,{R:()=>r,x:()=>a});var t=n(296540);const o={},i=t.createContext(o);function r(e){const s=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),t.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/pr-preview/pr-945/assets/js/9559.87f90938.js b/pr-preview/pr-945/assets/js/9559.2c66be92.js similarity index 63% rename from pr-preview/pr-945/assets/js/9559.87f90938.js rename to pr-preview/pr-945/assets/js/9559.2c66be92.js index 6662358033a..f1acf35bd5a 100644 --- a/pr-preview/pr-945/assets/js/9559.87f90938.js +++ b/pr-preview/pr-945/assets/js/9559.2c66be92.js @@ -4690,7 +4690,7 @@ function __classPrivateFieldSet(receiver, privateMap, value) { // EXPORTS __webpack_require__.d(__webpack_exports__, { - REQUIRED_METHODS: () => (/* binding */ dist_index_es_u), + REQUIRED_METHODS: () => (/* binding */ ethereum_provider_dist_index_es_g), "default": () => (/* binding */ ethereum_provider_dist_index_es_C) }); @@ -5374,8 +5374,8 @@ function to_string_toString(array, encoding = 'utf8') { -// EXTERNAL MODULE: ./node_modules/@walletconnect/utils/node_modules/elliptic/lib/elliptic.js -var elliptic = __webpack_require__(194112); +// EXTERNAL MODULE: ./node_modules/elliptic/lib/elliptic.js +var elliptic = __webpack_require__(86729); // EXTERNAL MODULE: ./node_modules/@stablelib/ed25519/lib/ed25519.js var lib_ed25519 = __webpack_require__(934904); ;// ./node_modules/@walletconnect/relay-auth/dist/esm/constants.js @@ -5637,15 +5637,15 @@ function e(s,r,i="string"){if(!s[r]||typeof s[r]!==i)throw new Error(`Missing or //# sourceMappingURL=index.es.js.map ;// ./node_modules/@walletconnect/utils/dist/index.es.js -const H=":";function re(e){const[n,t]=e.split(H);return{namespace:n,reference:t}}function ke(e){const{namespace:n,reference:t}=e;return[n,t].join(H)}function oe(e){const[n,t,r]=e.split(H);return{namespace:n,reference:t,address:r}}function De(e){const{namespace:n,reference:t,address:r}=e;return[n,t,r].join(H)}function se(e,n){const t=[];return e.forEach(r=>{const o=n(r);t.includes(o)||t.push(o)}),t}function xe(e){const{address:n}=oe(e);return n}function Ve(e){const{namespace:n,reference:t}=oe(e);return ke({namespace:n,reference:t})}function ft(e,n){const{namespace:t,reference:r}=re(n);return De({namespace:t,reference:r,address:e})}function pt(e){return se(e,xe)}function Me(e){return se(e,Ve)}function mt(e,n=[]){const t=[];return Object.keys(e).forEach(r=>{if(n.length&&!n.includes(r))return;const o=e[r];t.push(...o.accounts)}),t}function ht(e,n=[]){const t=[];return Object.keys(e).forEach(r=>{if(n.length&&!n.includes(r))return;const o=e[r];t.push(...Me(o.accounts))}),t}function yt(e,n=[]){const t=[];return Object.keys(e).forEach(r=>{if(n.length&&!n.includes(r))return;const o=e[r];t.push(...W(r,o))}),t}function W(e,n){return e.includes(":")?[e]:n.chains||[]}var gt=Object.defineProperty,Ke=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Le=(e,n,t)=>n in e?gt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,Fe=(e,n)=>{for(var t in n||(n={}))vt.call(n,t)&&Le(e,t,n[t]);if(Ke)for(var t of Ke(n))bt.call(n,t)&&Le(e,t,n[t]);return e};const qe="ReactNative",y={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},J=" ",Et=":",Be="/",ie=2,wt=1e3,He="js";function ce(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function index_es_(){return!(0,dist_cjs.getDocument)()&&!!(0,dist_cjs.getNavigator)()&&navigator.product===qe}function V(){return!ce()&&!!(0,dist_cjs.getNavigator)()&&!!(0,dist_cjs.getDocument)()}function index_es_P(){return index_es_()?y.reactNative:ce()?y.node:V()?y.browser:y.unknown}function Ot(){var e;try{return index_es_()&&typeof global<"u"&&typeof(global==null?void 0:global.Application)<"u"?(e=global.Application)==null?void 0:e.applicationId:void 0}catch{return}}function We(e,n){let t=query_string.parse(e);return t=Fe(Fe({},t),n),e=query_string.stringify(t),e}function Nt(){return (0,window_metadata_dist_cjs/* getWindowMetadata */.g)()||{name:"",description:"",url:"",icons:[""]}}function St(e,n){var t;const r=index_es_P(),o={protocol:e,version:n,env:r};return r==="browser"&&(o.host=((t=Te())==null?void 0:t.host)||"unknown"),o}function Je(){if(index_es_P()===y.reactNative&&typeof global<"u"&&typeof(global==null?void 0:global.Platform)<"u"){const{OS:t,Version:r}=global.Platform;return[t,r].join("-")}const e=detect();if(e===null)return"unknown";const n=e.os?e.os.replace(" ","").toLowerCase():"unknown";return e.type==="browser"?[n,e.name,e.version].join("-"):[n,e.version].join("-")}function ze(){var e;const n=index_es_P();return n===y.browser?[n,((e=(0,dist_cjs.getLocation)())==null?void 0:e.host)||"unknown"].join(":"):n}function Ge(e,n,t){const r=Je(),o=ze();return[[e,n].join("-"),[He,t].join("-"),r,o].join("/")}function $t({protocol:e,version:n,relayUrl:t,sdkVersion:r,auth:o,projectId:s,useOnCloseEvent:i,bundleId:u}){const l=t.split("?"),c=Ge(e,n,r),d={auth:o,ua:c,projectId:s,useOnCloseEvent:i||void 0,origin:u||void 0},a=We(l[1]||"",d);return l[0]+"?"+a}function Rt(e){let n=(e.match(/^[^:]+(?=:\/\/)/gi)||[])[0];const t=typeof n<"u"?e.split("://")[1]:e;return n=n==="wss"?"https":"http",[n,t].join("://")}function It(e,n,t){if(!e[n]||typeof e[n]!==t)throw new Error(`Missing or invalid "${n}" param`)}function Ye(e,n=ie){return Qe(e.split(Be),n)}function jt(e){return Ye(e).join(J)}function $(e,n){return e.filter(t=>n.includes(t)).length===e.length}function Qe(e,n=ie){return e.slice(Math.max(e.length-n,0))}function Tt(e){return Object.fromEntries(e.entries())}function Pt(e){return new Map(Object.entries(e))}function At(e,n){const t={};return Object.keys(e).forEach(r=>{t[r]=n(e[r])}),t}const Ct=e=>e;function Ze(e){return e.trim().replace(/^\w/,n=>n.toUpperCase())}function Ut(e){return e.split(J).map(n=>Ze(n)).join(J)}function _t(e=cjs.FIVE_MINUTES,n){const t=(0,cjs.toMiliseconds)(e||cjs.FIVE_MINUTES);let r,o,s;return{resolve:i=>{s&&r&&(clearTimeout(s),r(i))},reject:i=>{s&&o&&(clearTimeout(s),o(i))},done:()=>new Promise((i,u)=>{s=setTimeout(()=>{u(new Error(n))},t),r=i,o=u})}}function kt(e,n,t){return new Promise(async(r,o)=>{const s=setTimeout(()=>o(new Error(t)),n);try{const i=await e;r(i)}catch(i){o(i)}clearTimeout(s)})}function ae(e,n){if(typeof n=="string"&&n.startsWith(`${e}:`))return n;if(e.toLowerCase()==="topic"){if(typeof n!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${n}`}else if(e.toLowerCase()==="id"){if(typeof n!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${n}`}throw new Error(`Unknown expirer target type: ${e}`)}function Dt(e){return ae("topic",e)}function xt(e){return ae("id",e)}function Vt(e){const[n,t]=e.split(":"),r={id:void 0,topic:void 0};if(n==="topic"&&typeof t=="string")r.topic=t;else if(n==="id"&&Number.isInteger(Number(t)))r.id=Number(t);else throw new Error(`Invalid target, expected id:number or topic:string, got ${n}:${t}`);return r}function Mt(e,n){return (0,cjs.fromMiliseconds)((n||Date.now())+(0,cjs.toMiliseconds)(e))}function Kt(e){return Date.now()>=(0,cjs.toMiliseconds)(e)}function Lt(e,n){return`${e}${n?`:${n}`:""}`}function N(e=[],n=[]){return[...new Set([...e,...n])]}async function Ft({id:e,topic:n,wcDeepLink:t}){var r;try{if(!t)return;const o=typeof t=="string"?JSON.parse(t):t,s=o?.href;if(typeof s!="string")return;const i=Xe(s,e,n),u=index_es_P();if(u===y.browser){if(!((r=(0,dist_cjs.getDocument)())!=null&&r.hasFocus())){console.warn("Document does not have focus, skipping deeplink.");return}i.startsWith("https://")||i.startsWith("http://")?window.open(i,"_blank","noreferrer noopener"):window.open(i,en()?"_blank":"_self","noreferrer noopener")}else u===y.reactNative&&typeof(global==null?void 0:global.Linking)<"u"&&await global.Linking.openURL(i)}catch(o){console.error(o)}}function Xe(e,n,t){const r=`requestId=${n}&sessionTopic=${t}`;e.endsWith("/")&&(e=e.slice(0,-1));let o=`${e}`;if(e.startsWith("https://t.me")){const s=e.includes("?")?"&startapp=":"?startapp=";o=`${o}${s}${nn(r,!0)}`}else o=`${o}/wc?${r}`;return o}async function qt(e,n){let t="";try{if(V()&&(t=localStorage.getItem(n),t))return t;t=await e.getItem(n)}catch(r){console.error(r)}return t}function ue(e,n){return e.filter(t=>n.includes(t))}function Bt(e,n){if(!e.includes(n))return null;const t=e.split(/([&,?,=])/),r=t.indexOf(n);return t[r+2]}function Ht(){return typeof crypto<"u"&&crypto!=null&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,e=>{const n=Math.random()*16|0;return(e==="x"?n:n&3|8).toString(16)})}function Wt(){return typeof process<"u"&&process.env.IS_VITEST==="true"}function en(){return typeof window<"u"&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto)}function nn(e,n=!1){const t=Buffer.from(e).toString("base64");return n?t.replace(/[=]/g,""):t}function le(e){return Buffer.from(e,"base64").toString("utf-8")}const Jt="https://rpc.walletconnect.org/v1";async function tn(e,n,t,r,o,s){switch(t.t){case"eip191":return rn(e,n,t.s);case"eip1271":return await on(e,n,t.s,r,o,s);default:throw new Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${t.t}`)}}function rn(e,n,t){return (0,lib_esm/* recoverAddress */.x_)((0,message/* hashMessage */.A)(n),t).toLowerCase()===e.toLowerCase()}async function on(e,n,t,r,o,s){const i=re(r);if(!i.namespace||!i.reference)throw new Error(`isValidEip1271Signature failed: chainId must be in CAIP-2 format, received: ${r}`);try{const u="0x1626ba7e",l="0000000000000000000000000000000000000000000000000000000000000040",c="0000000000000000000000000000000000000000000000000000000000000041",d=t.substring(2),a=(0,message/* hashMessage */.A)(n).substring(2),f=u+a+l+c+d,h=await fetch(`${s||Jt}/?chainId=${r}&projectId=${o}`,{method:"POST",body:JSON.stringify({id:zt(),jsonrpc:"2.0",method:"eth_call",params:[{to:e,data:f},"latest"]})}),{result:p}=await h.json();return p?p.slice(0,u.length).toLowerCase()===u.toLowerCase():!1}catch(u){return console.error("isValidEip1271Signature: ",u),!1}}function zt(){return Date.now()+Math.floor(Math.random()*1e3)}var Gt=Object.defineProperty,Yt=Object.defineProperties,Qt=Object.getOwnPropertyDescriptors,sn=Object.getOwnPropertySymbols,Zt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,cn=(e,n,t)=>n in e?Gt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,de=(e,n)=>{for(var t in n||(n={}))Zt.call(n,t)&&cn(e,t,n[t]);if(sn)for(var t of sn(n))Xt.call(n,t)&&cn(e,t,n[t]);return e},an=(e,n)=>Yt(e,Qt(n));const er="did:pkh:",z=e=>e?.split(":"),un=e=>{const n=e&&z(e);if(n)return e.includes(er)?n[3]:n[1]},ln=e=>{const n=e&&z(e);if(n)return n[2]+":"+n[3]},index_es_fe=e=>{const n=e&&z(e);if(n)return n.pop()};async function nr(e){const{cacao:n,projectId:t}=e,{s:r,p:o}=n,s=dn(o,o.iss),i=index_es_fe(o.iss);return await tn(i,s,r,ln(o.iss),t)}const dn=(e,n)=>{const t=`${e.domain} wants you to sign in with your Ethereum account:`,r=index_es_fe(n);if(!e.aud&&!e.uri)throw new Error("Either `aud` or `uri` is required to construct the message");let o=e.statement||void 0;const s=`URI: ${e.aud||e.uri}`,i=`Version: ${e.version}`,u=`Chain ID: ${un(n)}`,l=`Nonce: ${e.nonce}`,c=`Issued At: ${e.iat}`,d=e.exp?`Expiration Time: ${e.exp}`:void 0,a=e.nbf?`Not Before: ${e.nbf}`:void 0,f=e.requestId?`Request ID: ${e.requestId}`:void 0,h=e.resources?`Resources:${e.resources.map(m=>` -- ${m}`).join("")}`:void 0,p=Y(e.resources);if(p){const m=index_es_R(p);o=he(o,m)}return[t,r,"",o,"",s,i,u,l,c,d,a,f,h].filter(m=>m!=null).join(` -`)};function tr(e,n,t){return t.includes("did:pkh:")||(t=`did:pkh:${t}`),{h:{t:"caip122"},p:{iss:t,domain:e.domain,aud:e.aud,version:e.version,nonce:e.nonce,iat:e.iat,statement:e.statement,requestId:e.requestId,resources:e.resources,nbf:e.nbf,exp:e.exp},s:n}}function rr(e){var n;const{authPayload:t,chains:r,methods:o}=e,s=t.statement||"";if(!(r!=null&&r.length))return t;const i=t.chains,u=ue(i,r);if(!(u!=null&&u.length))throw new Error("No supported chains");const l=fn(t.resources);if(!l)return t;O(l);const c=pn(l,"eip155");let d=t?.resources||[];if(c!=null&&c.length){const a=mn(c),f=ue(a,o);if(!(f!=null&&f.length))throw new Error(`Supported methods don't satisfy the requested: ${JSON.stringify(a)}, supported: ${JSON.stringify(o)}`);const h=pe("request",f,{chains:u}),p=vn(l,"eip155",h);d=((n=t?.resources)==null?void 0:n.slice(0,-1))||[],d.push(G(p))}return an(de({},t),{statement:En(s,Y(d)),chains:u,resources:t!=null&&t.resources||d.length>0?d:void 0})}function fn(e){const n=Y(e);if(n&&me(n))return index_es_R(n)}function or(e,n){var t;return(t=e?.att)==null?void 0:t.hasOwnProperty(n)}function pn(e,n){var t,r;return(t=e?.att)!=null&&t[n]?Object.keys((r=e?.att)==null?void 0:r[n]):[]}function sr(e){return e?.map(n=>Object.keys(n))||[]}function mn(e){return e?.map(n=>{var t;return(t=n.split("/"))==null?void 0:t[1]})||[]}function hn(e){return Buffer.from(JSON.stringify(e)).toString("base64")}function yn(e){return JSON.parse(Buffer.from(e,"base64").toString("utf-8"))}function O(e){if(!e)throw new Error("No recap provided, value is undefined");if(!e.att)throw new Error("No `att` property found");const n=Object.keys(e.att);if(!(n!=null&&n.length))throw new Error("No resources found in `att` property");n.forEach(t=>{const r=e.att[t];if(Array.isArray(r))throw new Error(`Resource must be an object: ${t}`);if(typeof r!="object")throw new Error(`Resource must be an object: ${t}`);if(!Object.keys(r).length)throw new Error(`Resource object is empty: ${t}`);Object.keys(r).forEach(o=>{const s=r[o];if(!Array.isArray(s))throw new Error(`Ability limits ${o} must be an array of objects, found: ${s}`);if(!s.length)throw new Error(`Value of ${o} is empty array, must be an array with objects`);s.forEach(i=>{if(typeof i!="object")throw new Error(`Ability limits (${o}) must be an array of objects, found: ${i}`)})})})}function gn(e,n,t,r={}){return t?.sort((o,s)=>o.localeCompare(s)),{att:{[e]:pe(n,t,r)}}}function vn(e,n,t){var r;return e.att[n]=de({},t),((r=Object.keys(e.att))==null?void 0:r.sort((o,s)=>o.localeCompare(s))).reduce((o,s)=>(o.att[s]=e.att[s],o),{att:{}})}function pe(e,n,t={}){n=n?.sort((o,s)=>o.localeCompare(s));const r=n.map(o=>({[`${e}/${o}`]:[t]}));return Object.assign({},...r)}function G(e){return O(e),`urn:recap:${hn(e).replace(/=/g,"")}`}function index_es_R(e){const n=yn(e.replace("urn:recap:",""));return O(n),n}function ir(e,n,t){const r=gn(e,n,t);return G(r)}function me(e){return e&&e.includes("urn:recap:")}function cr(e,n){const t=index_es_R(e),r=index_es_R(n),o=bn(t,r);return G(o)}function bn(e,n){O(e),O(n);const t=Object.keys(e.att).concat(Object.keys(n.att)).sort((o,s)=>o.localeCompare(s)),r={att:{}};return t.forEach(o=>{var s,i;Object.keys(((s=e.att)==null?void 0:s[o])||{}).concat(Object.keys(((i=n.att)==null?void 0:i[o])||{})).sort((u,l)=>u.localeCompare(l)).forEach(u=>{var l,c;r.att[o]=an(de({},r.att[o]),{[u]:((l=e.att[o])==null?void 0:l[u])||((c=n.att[o])==null?void 0:c[u])})})}),r}function he(e="",n){O(n);const t="I further authorize the stated URI to perform the following actions on my behalf: ";if(e.includes(t))return e;const r=[];let o=0;Object.keys(n.att).forEach(u=>{const l=Object.keys(n.att[u]).map(a=>({ability:a.split("/")[0],action:a.split("/")[1]}));l.sort((a,f)=>a.action.localeCompare(f.action));const c={};l.forEach(a=>{c[a.ability]||(c[a.ability]=[]),c[a.ability].push(a.action)});const d=Object.keys(c).map(a=>(o++,`(${o}) '${a}': '${c[a].join("', '")}' for '${u}'.`));r.push(d.join(", ").replace(".,","."))});const s=r.join(" "),i=`${t}${s}`;return`${e?e+" ":""}${i}`}function ar(e){var n;const t=index_es_R(e);O(t);const r=(n=t.att)==null?void 0:n.eip155;return r?Object.keys(r).map(o=>o.split("/")[1]):[]}function ur(e){const n=index_es_R(e);O(n);const t=[];return Object.values(n.att).forEach(r=>{Object.values(r).forEach(o=>{var s;(s=o?.[0])!=null&&s.chains&&t.push(o[0].chains)})}),[...new Set(t.flat())]}function En(e,n){if(!n)return e;const t=index_es_R(n);return O(t),he(e,t)}function Y(e){if(!e)return;const n=e?.[e.length-1];return me(n)?n:void 0}const ye="base10",index_es_g="base16",ge="base64pad",lr="base64url",index_es_k="utf8",ve=0,D=1,index_es_M=2,dr=0,wn=1,K=12,be=32;function fr(){const e=x25519/* generateKeyPair */.TZ();return{privateKey:to_string_toString(e.secretKey,index_es_g),publicKey:to_string_toString(e.publicKey,index_es_g)}}function pr(){const e=(0,random.randomBytes)(be);return to_string_toString(e,index_es_g)}function mr(e,n){const t=x25519/* sharedKey */.Tc(from_string_fromString(e,index_es_g),from_string_fromString(n,index_es_g),!0),r=new hkdf/* HKDF */.i(sha256/* SHA256 */.aD,t).expand(be);return to_string_toString(r,index_es_g)}function hr(e){const n=(0,sha256/* hash */.tW)(from_string_fromString(e,index_es_g));return to_string_toString(n,index_es_g)}function yr(e){const n=(0,sha256/* hash */.tW)(from_string_fromString(e,index_es_k));return to_string_toString(n,index_es_g)}function Ee(e){return from_string_fromString(`${e}`,ye)}function A(e){return Number(to_string_toString(e,ye))}function gr(e){const n=Ee(typeof e.type<"u"?e.type:ve);if(A(n)===D&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const t=typeof e.senderPublicKey<"u"?from_string_fromString(e.senderPublicKey,index_es_g):void 0,r=typeof e.iv<"u"?from_string_fromString(e.iv,index_es_g):(0,random.randomBytes)(K),o=new chacha20poly1305/* ChaCha20Poly1305 */.g6(from_string_fromString(e.symKey,index_es_g)).seal(r,from_string_fromString(e.message,index_es_k));return we({type:n,sealed:o,iv:r,senderPublicKey:t,encoding:e.encoding})}function vr(e,n){const t=Ee(index_es_M),r=(0,random.randomBytes)(K),o=from_string_fromString(e,index_es_k);return we({type:t,sealed:o,iv:r,encoding:n})}function br(e){const n=new chacha20poly1305/* ChaCha20Poly1305 */.g6(from_string_fromString(e.symKey,index_es_g)),{sealed:t,iv:r}=Q({encoded:e.encoded,encoding:e?.encoding}),o=n.open(r,t);if(o===null)throw new Error("Failed to decrypt");return to_string_toString(o,index_es_k)}function Er(e,n){const{sealed:t}=Q({encoded:e,encoding:n});return to_string_toString(t,index_es_k)}function we(e){const{encoding:n=ge}=e;if(A(e.type)===index_es_M)return to_string_toString(concat([e.type,e.sealed]),n);if(A(e.type)===D){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return to_string_toString(concat([e.type,e.senderPublicKey,e.iv,e.sealed]),n)}return to_string_toString(concat([e.type,e.iv,e.sealed]),n)}function Q(e){const{encoded:n,encoding:t=ge}=e,r=from_string_fromString(n,t),o=r.slice(dr,wn),s=wn;if(A(o)===D){const c=s+be,d=c+K,a=r.slice(s,c),f=r.slice(c,d),h=r.slice(d);return{type:o,sealed:h,iv:f,senderPublicKey:a}}if(A(o)===index_es_M){const c=r.slice(s),d=(0,random.randomBytes)(K);return{type:o,sealed:c,iv:d}}const i=s+K,u=r.slice(s,i),l=r.slice(i);return{type:o,sealed:l,iv:u}}function wr(e,n){const t=Q({encoded:e,encoding:n?.encoding});return On({type:A(t.type),senderPublicKey:typeof t.senderPublicKey<"u"?to_string_toString(t.senderPublicKey,index_es_g):void 0,receiverPublicKey:n?.receiverPublicKey})}function On(e){const n=e?.type||ve;if(n===D){if(typeof e?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof e?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:n,senderPublicKey:e?.senderPublicKey,receiverPublicKey:e?.receiverPublicKey}}function Or(e){return e.type===D&&typeof e.senderPublicKey=="string"&&typeof e.receiverPublicKey=="string"}function Nr(e){return e.type===index_es_M}function Nn(e){return new elliptic.ec("p256").keyFromPublic({x:Buffer.from(e.x,"base64").toString("hex"),y:Buffer.from(e.y,"base64").toString("hex")},"hex")}function Sr(e){let n=e.replace(/-/g,"+").replace(/_/g,"/");const t=n.length%4;return t>0&&(n+="=".repeat(4-t)),n}function $r(e){return Buffer.from(Sr(e),"base64")}function Rr(e,n){const[t,r,o]=e.split("."),s=$r(o);if(s.length!==64)throw new Error("Invalid signature length");const i=s.slice(0,32).toString("hex"),u=s.slice(32,64).toString("hex"),l=`${t}.${r}`,c=new sha256/* SHA256 */.aD().update(Buffer.from(l)).digest(),d=Nn(n),a=Buffer.from(c).toString("hex");if(!d.verify(a,{r:i,s:u}))throw new Error("Invalid signature");return utils_decodeJWT(e).payload}const Sn="irn";function Ir(e){return e?.relay||{protocol:Sn}}function jr(e){const n=C[e];if(typeof n>"u")throw new Error(`Relay Protocol not supported: ${e}`);return n}var Tr=Object.defineProperty,Pr=Object.defineProperties,Ar=Object.getOwnPropertyDescriptors,$n=Object.getOwnPropertySymbols,Cr=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable,Rn=(e,n,t)=>n in e?Tr(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,In=(e,n)=>{for(var t in n||(n={}))Cr.call(n,t)&&Rn(e,t,n[t]);if($n)for(var t of $n(n))Ur.call(n,t)&&Rn(e,t,n[t]);return e},_r=(e,n)=>Pr(e,Ar(n));function jn(e,n="-"){const t={},r="relay"+n;return Object.keys(e).forEach(o=>{if(o.startsWith(r)){const s=o.replace(r,""),i=e[o];t[s]=i}}),t}function kr(e){if(!e.includes("wc:")){const l=le(e);l!=null&&l.includes("wc:")&&(e=l)}e=e.includes("wc://")?e.replace("wc://",""):e,e=e.includes("wc:")?e.replace("wc:",""):e;const n=e.indexOf(":"),t=e.indexOf("?")!==-1?e.indexOf("?"):void 0,r=e.substring(0,n),o=e.substring(n+1,t).split("@"),s=typeof t<"u"?e.substring(t):"",i=query_string.parse(s),u=typeof i.methods=="string"?i.methods.split(","):void 0;return{protocol:r,topic:Tn(o[0]),version:parseInt(o[1],10),symKey:i.symKey,relay:jn(i),methods:u,expiryTimestamp:i.expiryTimestamp?parseInt(i.expiryTimestamp,10):void 0}}function Tn(e){return e.startsWith("//")?e.substring(2):e}function Pn(e,n="-"){const t="relay",r={};return Object.keys(e).forEach(o=>{const s=t+n+o;e[o]&&(r[s]=e[o])}),r}function Dr(e){return`${e.protocol}:${e.topic}@${e.version}?`+query_string.stringify(In(_r(In({symKey:e.symKey},Pn(e.relay)),{expiryTimestamp:e.expiryTimestamp}),e.methods?{methods:e.methods.join(",")}:{}))}function xr(e,n,t){return`${e}?wc_ev=${t}&topic=${n}`}var Vr=Object.defineProperty,Mr=Object.defineProperties,Kr=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,Lr=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable,Cn=(e,n,t)=>n in e?Vr(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,qr=(e,n)=>{for(var t in n||(n={}))Lr.call(n,t)&&Cn(e,t,n[t]);if(An)for(var t of An(n))Fr.call(n,t)&&Cn(e,t,n[t]);return e},Br=(e,n)=>Mr(e,Kr(n));function index_es_C(e){const n=[];return e.forEach(t=>{const[r,o]=t.split(":");n.push(`${r}:${o}`)}),n}function Un(e){const n=[];return Object.values(e).forEach(t=>{n.push(...index_es_C(t.accounts))}),n}function _n(e,n){const t=[];return Object.values(e).forEach(r=>{index_es_C(r.accounts).includes(n)&&t.push(...r.methods)}),t}function kn(e,n){const t=[];return Object.values(e).forEach(r=>{index_es_C(r.accounts).includes(n)&&t.push(...r.events)}),t}function Hr(e,n){const t=Wn(e,n);if(t)throw new Error(t.message);const r={};for(const[o,s]of Object.entries(e))r[o]={methods:s.methods,events:s.events,chains:s.accounts.map(i=>`${i.split(":")[0]}:${i.split(":")[1]}`)};return r}function Wr(e){const{proposal:{requiredNamespaces:n,optionalNamespaces:t={}},supportedNamespaces:r}=e,o=Ne(n),s=Ne(t),i={};Object.keys(r).forEach(c=>{const d=r[c].chains,a=r[c].methods,f=r[c].events,h=r[c].accounts;d.forEach(p=>{if(!h.some(m=>m.includes(p)))throw new Error(`No accounts provided for chain ${p} in namespace ${c}`)}),i[c]={chains:d,methods:a,events:f,accounts:h}});const u=zn(n,i,"approve()");if(u)throw new Error(u.message);const l={};return!Object.keys(n).length&&!Object.keys(t).length?i:(Object.keys(o).forEach(c=>{const d=r[c].chains.filter(p=>{var m,E;return(E=(m=o[c])==null?void 0:m.chains)==null?void 0:E.includes(p)}),a=r[c].methods.filter(p=>{var m,E;return(E=(m=o[c])==null?void 0:m.methods)==null?void 0:E.includes(p)}),f=r[c].events.filter(p=>{var m,E;return(E=(m=o[c])==null?void 0:m.events)==null?void 0:E.includes(p)}),h=d.map(p=>r[c].accounts.filter(m=>m.includes(`${p}:`))).flat();l[c]={chains:d,methods:a,events:f,accounts:h}}),Object.keys(s).forEach(c=>{var d,a,f,h,p,m;if(!r[c])return;const E=(a=(d=s[c])==null?void 0:d.chains)==null?void 0:a.filter(j=>r[c].chains.includes(j)),nt=r[c].methods.filter(j=>{var T,x;return(x=(T=s[c])==null?void 0:T.methods)==null?void 0:x.includes(j)}),tt=r[c].events.filter(j=>{var T,x;return(x=(T=s[c])==null?void 0:T.events)==null?void 0:x.includes(j)}),rt=E?.map(j=>r[c].accounts.filter(T=>T.includes(`${j}:`))).flat();l[c]={chains:N((f=l[c])==null?void 0:f.chains,E),methods:N((h=l[c])==null?void 0:h.methods,nt),events:N((p=l[c])==null?void 0:p.events,tt),accounts:N((m=l[c])==null?void 0:m.accounts,rt)}}),l)}function Oe(e){return e.includes(":")}function Dn(e){return Oe(e)?e.split(":")[0]:e}function Ne(e){var n,t,r;const o={};if(!Z(e))return o;for(const[s,i]of Object.entries(e)){const u=Oe(s)?[s]:i.chains,l=i.methods||[],c=i.events||[],d=Dn(s);o[d]=Br(qr({},o[d]),{chains:N(u,(n=o[d])==null?void 0:n.chains),methods:N(l,(t=o[d])==null?void 0:t.methods),events:N(c,(r=o[d])==null?void 0:r.events)})}return o}function xn(e){const n={};return e?.forEach(t=>{const[r,o]=t.split(":");n[r]||(n[r]={accounts:[],chains:[],events:[]}),n[r].accounts.push(t),n[r].chains.push(`${r}:${o}`)}),n}function Jr(e,n){n=n.map(r=>r.replace("did:pkh:",""));const t=xn(n);for(const[r,o]of Object.entries(t))o.methods?o.methods=N(o.methods,e):o.methods=e,o.events=["chainChanged","accountsChanged"];return t}const Vn={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Mn={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function index_es_S(e,n){const{message:t,code:r}=Mn[e];return{message:n?`${t} ${n}`:t,code:r}}function U(e,n){const{message:t,code:r}=Vn[e];return{message:n?`${t} ${n}`:t,code:r}}function L(e,n){return Array.isArray(e)?typeof n<"u"&&e.length?e.every(n):!0:!1}function Z(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function I(e){return typeof e>"u"}function index_es_b(e,n){return n&&I(e)?!0:typeof e=="string"&&!!e.trim().length}function X(e,n){return n&&I(e)?!0:typeof e=="number"&&!isNaN(e)}function zr(e,n){const{requiredNamespaces:t}=n,r=Object.keys(e.namespaces),o=Object.keys(t);let s=!0;return $(o,r)?(r.forEach(i=>{const{accounts:u,methods:l,events:c}=e.namespaces[i],d=index_es_C(u),a=t[i];(!$(W(i,a),d)||!$(a.methods,l)||!$(a.events,c))&&(s=!1)}),s):!1}function index_es_F(e){return index_es_b(e,!1)&&e.includes(":")?e.split(":").length===2:!1}function Kn(e){if(index_es_b(e,!1)&&e.includes(":")){const n=e.split(":");if(n.length===3){const t=n[0]+":"+n[1];return!!n[2]&&index_es_F(t)}}return!1}function Gr(e){function n(t){try{return typeof new URL(t)<"u"}catch{return!1}}try{if(index_es_b(e,!1)){if(n(e))return!0;const t=le(e);return n(t)}}catch{}return!1}function Yr(e){var n;return(n=e?.proposer)==null?void 0:n.publicKey}function Qr(e){return e?.topic}function Zr(e,n){let t=null;return index_es_b(e?.publicKey,!1)||(t=index_es_S("MISSING_OR_INVALID",`${n} controller public key should be a string`)),t}function Se(e){let n=!0;return L(e)?e.length&&(n=e.every(t=>index_es_b(t,!1))):n=!1,n}function Ln(e,n,t){let r=null;return L(n)&&n.length?n.forEach(o=>{r||index_es_F(o)||(r=U("UNSUPPORTED_CHAINS",`${t}, chain ${o} should be a string and conform to "namespace:chainId" format`))}):index_es_F(e)||(r=U("UNSUPPORTED_CHAINS",`${t}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),r}function Fn(e,n,t){let r=null;return Object.entries(e).forEach(([o,s])=>{if(r)return;const i=Ln(o,W(o,s),`${n} ${t}`);i&&(r=i)}),r}function qn(e,n){let t=null;return L(e)?e.forEach(r=>{t||Kn(r)||(t=U("UNSUPPORTED_ACCOUNTS",`${n}, account ${r} should be a string and conform to "namespace:chainId:address" format`))}):t=U("UNSUPPORTED_ACCOUNTS",`${n}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),t}function Bn(e,n){let t=null;return Object.values(e).forEach(r=>{if(t)return;const o=qn(r?.accounts,`${n} namespace`);o&&(t=o)}),t}function Hn(e,n){let t=null;return Se(e?.methods)?Se(e?.events)||(t=U("UNSUPPORTED_EVENTS",`${n}, events should be an array of strings or empty array for no events`)):t=U("UNSUPPORTED_METHODS",`${n}, methods should be an array of strings or empty array for no methods`),t}function $e(e,n){let t=null;return Object.values(e).forEach(r=>{if(t)return;const o=Hn(r,`${n}, namespace`);o&&(t=o)}),t}function Xr(e,n,t){let r=null;if(e&&Z(e)){const o=$e(e,n);o&&(r=o);const s=Fn(e,n,t);s&&(r=s)}else r=index_es_S("MISSING_OR_INVALID",`${n}, ${t} should be an object with data`);return r}function Wn(e,n){let t=null;if(e&&Z(e)){const r=$e(e,n);r&&(t=r);const o=Bn(e,n);o&&(t=o)}else t=index_es_S("MISSING_OR_INVALID",`${n}, namespaces should be an object with data`);return t}function Jn(e){return index_es_b(e.protocol,!0)}function eo(e,n){let t=!1;return n&&!e?t=!0:e&&L(e)&&e.length&&e.forEach(r=>{t=Jn(r)}),t}function no(e){return typeof e=="number"}function to(e){return typeof e<"u"&&typeof e!==null}function ro(e){return!(!e||typeof e!="object"||!e.code||!X(e.code,!1)||!e.message||!index_es_b(e.message,!1))}function oo(e){return!(I(e)||!index_es_b(e.method,!1))}function so(e){return!(I(e)||I(e.result)&&I(e.error)||!X(e.id,!1)||!index_es_b(e.jsonrpc,!1))}function io(e){return!(I(e)||!index_es_b(e.name,!1))}function co(e,n){return!(!index_es_F(n)||!Un(e).includes(n))}function ao(e,n,t){return index_es_b(t,!1)?_n(e,n).includes(t):!1}function uo(e,n,t){return index_es_b(t,!1)?kn(e,n).includes(t):!1}function zn(e,n,t){let r=null;const o=lo(e),s=fo(n),i=Object.keys(o),u=Object.keys(s),l=Gn(Object.keys(e)),c=Gn(Object.keys(n)),d=l.filter(a=>!c.includes(a));return d.length&&(r=index_es_S("NON_CONFORMING_NAMESPACES",`${t} namespaces keys don't satisfy requiredNamespaces. +const H=":";function re(e){const[n,t]=e.split(H);return{namespace:n,reference:t}}function ke(e){const{namespace:n,reference:t}=e;return[n,t].join(H)}function oe(e){const[n,t,r]=e.split(H);return{namespace:n,reference:t,address:r}}function De(e){const{namespace:n,reference:t,address:r}=e;return[n,t,r].join(H)}function se(e,n){const t=[];return e.forEach(r=>{const o=n(r);t.includes(o)||t.push(o)}),t}function xe(e){const{address:n}=oe(e);return n}function Ve(e){const{namespace:n,reference:t}=oe(e);return ke({namespace:n,reference:t})}function ft(e,n){const{namespace:t,reference:r}=re(n);return De({namespace:t,reference:r,address:e})}function pt(e){return se(e,xe)}function Me(e){return se(e,Ve)}function mt(e,n=[]){const t=[];return Object.keys(e).forEach(r=>{if(n.length&&!n.includes(r))return;const o=e[r];t.push(...o.accounts)}),t}function ht(e,n=[]){const t=[];return Object.keys(e).forEach(r=>{if(n.length&&!n.includes(r))return;const o=e[r];t.push(...Me(o.accounts))}),t}function yt(e,n=[]){const t=[];return Object.keys(e).forEach(r=>{if(n.length&&!n.includes(r))return;const o=e[r];t.push(...W(r,o))}),t}function W(e,n){return e.includes(":")?[e]:n.chains||[]}var gt=Object.defineProperty,Ke=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Le=(e,n,t)=>n in e?gt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,Fe=(e,n)=>{for(var t in n||(n={}))vt.call(n,t)&&Le(e,t,n[t]);if(Ke)for(var t of Ke(n))bt.call(n,t)&&Le(e,t,n[t]);return e};const qe="ReactNative",y={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},J=" ",Et=":",Be="/",ie=2,wt=1e3,He="js";function ce(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function $(){return!(0,dist_cjs.getDocument)()&&!!(0,dist_cjs.getNavigator)()&&navigator.product===qe}function Ot(){return $()&&typeof global<"u"&&typeof(global==null?void 0:global.Platform)<"u"&&(global==null?void 0:global.Platform.OS)==="android"}function Nt(){return $()&&typeof global<"u"&&typeof(global==null?void 0:global.Platform)<"u"&&(global==null?void 0:global.Platform.OS)==="ios"}function V(){return!ce()&&!!(0,dist_cjs.getNavigator)()&&!!(0,dist_cjs.getDocument)()}function A(){return $()?y.reactNative:ce()?y.node:V()?y.browser:y.unknown}function St(){var e;try{return $()&&typeof global<"u"&&typeof(global==null?void 0:global.Application)<"u"?(e=global.Application)==null?void 0:e.applicationId:void 0}catch{return}}function We(e,n){let t=query_string.parse(e);return t=Fe(Fe({},t),n),e=query_string.stringify(t),e}function $t(){return (0,window_metadata_dist_cjs/* getWindowMetadata */.g)()||{name:"",description:"",url:"",icons:[""]}}function Rt(e,n){var t;const r=A(),o={protocol:e,version:n,env:r};return r==="browser"&&(o.host=((t=je())==null?void 0:t.host)||"unknown"),o}function Je(){if(A()===y.reactNative&&typeof global<"u"&&typeof(global==null?void 0:global.Platform)<"u"){const{OS:t,Version:r}=global.Platform;return[t,r].join("-")}const e=detect();if(e===null)return"unknown";const n=e.os?e.os.replace(" ","").toLowerCase():"unknown";return e.type==="browser"?[n,e.name,e.version].join("-"):[n,e.version].join("-")}function ze(){var e;const n=A();return n===y.browser?[n,((e=(0,dist_cjs.getLocation)())==null?void 0:e.host)||"unknown"].join(":"):n}function Ge(e,n,t){const r=Je(),o=ze();return[[e,n].join("-"),[He,t].join("-"),r,o].join("/")}function It({protocol:e,version:n,relayUrl:t,sdkVersion:r,auth:o,projectId:s,useOnCloseEvent:i,bundleId:u,packageName:l}){const c=t.split("?"),d=Ge(e,n,r),a={auth:o,ua:d,projectId:s,useOnCloseEvent:i||void 0,packageName:l||void 0,bundleId:u||void 0},f=We(c[1]||"",a);return c[0]+"?"+f}function Pt(e){let n=(e.match(/^[^:]+(?=:\/\/)/gi)||[])[0];const t=typeof n<"u"?e.split("://")[1]:e;return n=n==="wss"?"https":"http",[n,t].join("://")}function jt(e,n,t){if(!e[n]||typeof e[n]!==t)throw new Error(`Missing or invalid "${n}" param`)}function Ye(e,n=ie){return Qe(e.split(Be),n)}function Tt(e){return Ye(e).join(J)}function index_es_R(e,n){return e.filter(t=>n.includes(t)).length===e.length}function Qe(e,n=ie){return e.slice(Math.max(e.length-n,0))}function At(e){return Object.fromEntries(e.entries())}function index_es_Ct(e){return new Map(Object.entries(e))}function Ut(e,n){const t={};return Object.keys(e).forEach(r=>{t[r]=n(e[r])}),t}const _t=e=>e;function Ze(e){return e.trim().replace(/^\w/,n=>n.toUpperCase())}function kt(e){return e.split(J).map(n=>Ze(n)).join(J)}function Dt(e=cjs.FIVE_MINUTES,n){const t=(0,cjs.toMiliseconds)(e||cjs.FIVE_MINUTES);let r,o,s,i;return{resolve:u=>{s&&r&&(clearTimeout(s),r(u),i=Promise.resolve(u))},reject:u=>{s&&o&&(clearTimeout(s),o(u))},done:()=>new Promise((u,l)=>{if(i)return u(i);s=setTimeout(()=>{const c=new Error(n);i=Promise.reject(c),l(c)},t),r=u,o=l})}}function xt(e,n,t){return new Promise(async(r,o)=>{const s=setTimeout(()=>o(new Error(t)),n);try{const i=await e;r(i)}catch(i){o(i)}clearTimeout(s)})}function ae(e,n){if(typeof n=="string"&&n.startsWith(`${e}:`))return n;if(e.toLowerCase()==="topic"){if(typeof n!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${n}`}else if(e.toLowerCase()==="id"){if(typeof n!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${n}`}throw new Error(`Unknown expirer target type: ${e}`)}function Vt(e){return ae("topic",e)}function Mt(e){return ae("id",e)}function Kt(e){const[n,t]=e.split(":"),r={id:void 0,topic:void 0};if(n==="topic"&&typeof t=="string")r.topic=t;else if(n==="id"&&Number.isInteger(Number(t)))r.id=Number(t);else throw new Error(`Invalid target, expected id:number or topic:string, got ${n}:${t}`);return r}function Lt(e,n){return (0,cjs.fromMiliseconds)((n||Date.now())+(0,cjs.toMiliseconds)(e))}function Ft(e){return Date.now()>=(0,cjs.toMiliseconds)(e)}function qt(e,n){return`${e}${n?`:${n}`:""}`}function N(e=[],n=[]){return[...new Set([...e,...n])]}async function Bt({id:e,topic:n,wcDeepLink:t}){var r;try{if(!t)return;const o=typeof t=="string"?JSON.parse(t):t,s=o?.href;if(typeof s!="string")return;const i=Xe(s,e,n),u=A();if(u===y.browser){if(!((r=(0,dist_cjs.getDocument)())!=null&&r.hasFocus())){console.warn("Document does not have focus, skipping deeplink.");return}i.startsWith("https://")||i.startsWith("http://")?window.open(i,"_blank","noreferrer noopener"):window.open(i,en()?"_blank":"_self","noreferrer noopener")}else u===y.reactNative&&typeof(global==null?void 0:global.Linking)<"u"&&await global.Linking.openURL(i)}catch(o){console.error(o)}}function Xe(e,n,t){const r=`requestId=${n}&sessionTopic=${t}`;e.endsWith("/")&&(e=e.slice(0,-1));let o=`${e}`;if(e.startsWith("https://t.me")){const s=e.includes("?")?"&startapp=":"?startapp=";o=`${o}${s}${nn(r,!0)}`}else o=`${o}/wc?${r}`;return o}async function Ht(e,n){let t="";try{if(V()&&(t=localStorage.getItem(n),t))return t;t=await e.getItem(n)}catch(r){console.error(r)}return t}function ue(e,n){return e.filter(t=>n.includes(t))}function Wt(e,n){if(!e.includes(n))return null;const t=e.split(/([&,?,=])/),r=t.indexOf(n);return t[r+2]}function Jt(){return typeof crypto<"u"&&crypto!=null&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,e=>{const n=Math.random()*16|0;return(e==="x"?n:n&3|8).toString(16)})}function zt(){return typeof process<"u"&&process.env.IS_VITEST==="true"}function en(){return typeof window<"u"&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto)}function nn(e,n=!1){const t=Buffer.from(e).toString("base64");return n?t.replace(/[=]/g,""):t}function le(e){return Buffer.from(e,"base64").toString("utf-8")}function Gt(e){return new Promise(n=>setTimeout(n,e))}const Yt="https://rpc.walletconnect.org/v1";async function tn(e,n,t,r,o,s){switch(t.t){case"eip191":return rn(e,n,t.s);case"eip1271":return await on(e,n,t.s,r,o,s);default:throw new Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${t.t}`)}}function rn(e,n,t){return (0,lib_esm/* recoverAddress */.x_)((0,message/* hashMessage */.A)(n),t).toLowerCase()===e.toLowerCase()}async function on(e,n,t,r,o,s){const i=re(r);if(!i.namespace||!i.reference)throw new Error(`isValidEip1271Signature failed: chainId must be in CAIP-2 format, received: ${r}`);try{const u="0x1626ba7e",l="0000000000000000000000000000000000000000000000000000000000000040",c="0000000000000000000000000000000000000000000000000000000000000041",d=t.substring(2),a=(0,message/* hashMessage */.A)(n).substring(2),f=u+a+l+c+d,h=await fetch(`${s||Yt}/?chainId=${r}&projectId=${o}`,{method:"POST",body:JSON.stringify({id:Qt(),jsonrpc:"2.0",method:"eth_call",params:[{to:e,data:f},"latest"]})}),{result:p}=await h.json();return p?p.slice(0,u.length).toLowerCase()===u.toLowerCase():!1}catch(u){return console.error("isValidEip1271Signature: ",u),!1}}function Qt(){return Date.now()+Math.floor(Math.random()*1e3)}var Zt=Object.defineProperty,Xt=Object.defineProperties,er=Object.getOwnPropertyDescriptors,sn=Object.getOwnPropertySymbols,nr=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,cn=(e,n,t)=>n in e?Zt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,de=(e,n)=>{for(var t in n||(n={}))nr.call(n,t)&&cn(e,t,n[t]);if(sn)for(var t of sn(n))tr.call(n,t)&&cn(e,t,n[t]);return e},an=(e,n)=>Xt(e,er(n));const rr="did:pkh:",z=e=>e?.split(":"),un=e=>{const n=e&&z(e);if(n)return e.includes(rr)?n[3]:n[1]},ln=e=>{const n=e&&z(e);if(n)return n[2]+":"+n[3]},index_es_fe=e=>{const n=e&&z(e);if(n)return n.pop()};async function or(e){const{cacao:n,projectId:t}=e,{s:r,p:o}=n,s=dn(o,o.iss),i=index_es_fe(o.iss);return await tn(i,s,r,ln(o.iss),t)}const dn=(e,n)=>{const t=`${e.domain} wants you to sign in with your Ethereum account:`,r=index_es_fe(n);if(!e.aud&&!e.uri)throw new Error("Either `aud` or `uri` is required to construct the message");let o=e.statement||void 0;const s=`URI: ${e.aud||e.uri}`,i=`Version: ${e.version}`,u=`Chain ID: ${un(n)}`,l=`Nonce: ${e.nonce}`,c=`Issued At: ${e.iat}`,d=e.exp?`Expiration Time: ${e.exp}`:void 0,a=e.nbf?`Not Before: ${e.nbf}`:void 0,f=e.requestId?`Request ID: ${e.requestId}`:void 0,h=e.resources?`Resources:${e.resources.map(m=>` +- ${m}`).join("")}`:void 0,p=Y(e.resources);if(p){const m=I(p);o=he(o,m)}return[t,r,"",o,"",s,i,u,l,c,d,a,f,h].filter(m=>m!=null).join(` +`)};function sr(e,n,t){return t.includes("did:pkh:")||(t=`did:pkh:${t}`),{h:{t:"caip122"},p:{iss:t,domain:e.domain,aud:e.aud,version:e.version,nonce:e.nonce,iat:e.iat,statement:e.statement,requestId:e.requestId,resources:e.resources,nbf:e.nbf,exp:e.exp},s:n}}function ir(e){var n;const{authPayload:t,chains:r,methods:o}=e,s=t.statement||"";if(!(r!=null&&r.length))return t;const i=t.chains,u=ue(i,r);if(!(u!=null&&u.length))throw new Error("No supported chains");const l=fn(t.resources);if(!l)return t;O(l);const c=pn(l,"eip155");let d=t?.resources||[];if(c!=null&&c.length){const a=mn(c),f=ue(a,o);if(!(f!=null&&f.length))throw new Error(`Supported methods don't satisfy the requested: ${JSON.stringify(a)}, supported: ${JSON.stringify(o)}`);const h=pe("request",f,{chains:u}),p=vn(l,"eip155",h);d=((n=t?.resources)==null?void 0:n.slice(0,-1))||[],d.push(G(p))}return an(de({},t),{statement:En(s,Y(d)),chains:u,resources:t!=null&&t.resources||d.length>0?d:void 0})}function fn(e){const n=Y(e);if(n&&me(n))return I(n)}function cr(e,n){var t;return(t=e?.att)==null?void 0:t.hasOwnProperty(n)}function pn(e,n){var t,r;return(t=e?.att)!=null&&t[n]?Object.keys((r=e?.att)==null?void 0:r[n]):[]}function ar(e){return e?.map(n=>Object.keys(n))||[]}function mn(e){return e?.map(n=>{var t;return(t=n.split("/"))==null?void 0:t[1]})||[]}function hn(e){return Buffer.from(JSON.stringify(e)).toString("base64")}function yn(e){return JSON.parse(Buffer.from(e,"base64").toString("utf-8"))}function O(e){if(!e)throw new Error("No recap provided, value is undefined");if(!e.att)throw new Error("No `att` property found");const n=Object.keys(e.att);if(!(n!=null&&n.length))throw new Error("No resources found in `att` property");n.forEach(t=>{const r=e.att[t];if(Array.isArray(r))throw new Error(`Resource must be an object: ${t}`);if(typeof r!="object")throw new Error(`Resource must be an object: ${t}`);if(!Object.keys(r).length)throw new Error(`Resource object is empty: ${t}`);Object.keys(r).forEach(o=>{const s=r[o];if(!Array.isArray(s))throw new Error(`Ability limits ${o} must be an array of objects, found: ${s}`);if(!s.length)throw new Error(`Value of ${o} is empty array, must be an array with objects`);s.forEach(i=>{if(typeof i!="object")throw new Error(`Ability limits (${o}) must be an array of objects, found: ${i}`)})})})}function gn(e,n,t,r={}){return t?.sort((o,s)=>o.localeCompare(s)),{att:{[e]:pe(n,t,r)}}}function vn(e,n,t){var r;return e.att[n]=de({},t),((r=Object.keys(e.att))==null?void 0:r.sort((o,s)=>o.localeCompare(s))).reduce((o,s)=>(o.att[s]=e.att[s],o),{att:{}})}function pe(e,n,t={}){n=n?.sort((o,s)=>o.localeCompare(s));const r=n.map(o=>({[`${e}/${o}`]:[t]}));return Object.assign({},...r)}function G(e){return O(e),`urn:recap:${hn(e).replace(/=/g,"")}`}function I(e){const n=yn(e.replace("urn:recap:",""));return O(n),n}function ur(e,n,t){const r=gn(e,n,t);return G(r)}function me(e){return e&&e.includes("urn:recap:")}function lr(e,n){const t=I(e),r=I(n),o=bn(t,r);return G(o)}function bn(e,n){O(e),O(n);const t=Object.keys(e.att).concat(Object.keys(n.att)).sort((o,s)=>o.localeCompare(s)),r={att:{}};return t.forEach(o=>{var s,i;Object.keys(((s=e.att)==null?void 0:s[o])||{}).concat(Object.keys(((i=n.att)==null?void 0:i[o])||{})).sort((u,l)=>u.localeCompare(l)).forEach(u=>{var l,c;r.att[o]=an(de({},r.att[o]),{[u]:((l=e.att[o])==null?void 0:l[u])||((c=n.att[o])==null?void 0:c[u])})})}),r}function he(e="",n){O(n);const t="I further authorize the stated URI to perform the following actions on my behalf: ";if(e.includes(t))return e;const r=[];let o=0;Object.keys(n.att).forEach(u=>{const l=Object.keys(n.att[u]).map(a=>({ability:a.split("/")[0],action:a.split("/")[1]}));l.sort((a,f)=>a.action.localeCompare(f.action));const c={};l.forEach(a=>{c[a.ability]||(c[a.ability]=[]),c[a.ability].push(a.action)});const d=Object.keys(c).map(a=>(o++,`(${o}) '${a}': '${c[a].join("', '")}' for '${u}'.`));r.push(d.join(", ").replace(".,","."))});const s=r.join(" "),i=`${t}${s}`;return`${e?e+" ":""}${i}`}function dr(e){var n;const t=I(e);O(t);const r=(n=t.att)==null?void 0:n.eip155;return r?Object.keys(r).map(o=>o.split("/")[1]):[]}function fr(e){const n=I(e);O(n);const t=[];return Object.values(n.att).forEach(r=>{Object.values(r).forEach(o=>{var s;(s=o?.[0])!=null&&s.chains&&t.push(o[0].chains)})}),[...new Set(t.flat())]}function En(e,n){if(!n)return e;const t=I(n);return O(t),he(e,t)}function Y(e){if(!e)return;const n=e?.[e.length-1];return me(n)?n:void 0}const ye="base10",index_es_g="base16",ge="base64pad",pr="base64url",index_es_k="utf8",ve=0,D=1,index_es_M=2,mr=0,wn=1,K=12,be=32;function hr(){const e=x25519/* generateKeyPair */.TZ();return{privateKey:to_string_toString(e.secretKey,index_es_g),publicKey:to_string_toString(e.publicKey,index_es_g)}}function yr(){const e=(0,random.randomBytes)(be);return to_string_toString(e,index_es_g)}function gr(e,n){const t=x25519/* sharedKey */.Tc(from_string_fromString(e,index_es_g),from_string_fromString(n,index_es_g),!0),r=new hkdf/* HKDF */.i(sha256/* SHA256 */.aD,t).expand(be);return to_string_toString(r,index_es_g)}function vr(e){const n=(0,sha256/* hash */.tW)(from_string_fromString(e,index_es_g));return to_string_toString(n,index_es_g)}function br(e){const n=(0,sha256/* hash */.tW)(from_string_fromString(e,index_es_k));return to_string_toString(n,index_es_g)}function Ee(e){return from_string_fromString(`${e}`,ye)}function index_es_C(e){return Number(to_string_toString(e,ye))}function Er(e){const n=Ee(typeof e.type<"u"?e.type:ve);if(index_es_C(n)===D&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const t=typeof e.senderPublicKey<"u"?from_string_fromString(e.senderPublicKey,index_es_g):void 0,r=typeof e.iv<"u"?from_string_fromString(e.iv,index_es_g):(0,random.randomBytes)(K),o=new chacha20poly1305/* ChaCha20Poly1305 */.g6(from_string_fromString(e.symKey,index_es_g)).seal(r,from_string_fromString(e.message,index_es_k));return we({type:n,sealed:o,iv:r,senderPublicKey:t,encoding:e.encoding})}function wr(e,n){const t=Ee(index_es_M),r=(0,random.randomBytes)(K),o=from_string_fromString(e,index_es_k);return we({type:t,sealed:o,iv:r,encoding:n})}function Or(e){const n=new chacha20poly1305/* ChaCha20Poly1305 */.g6(from_string_fromString(e.symKey,index_es_g)),{sealed:t,iv:r}=Q({encoded:e.encoded,encoding:e?.encoding}),o=n.open(r,t);if(o===null)throw new Error("Failed to decrypt");return to_string_toString(o,index_es_k)}function Nr(e,n){const{sealed:t}=Q({encoded:e,encoding:n});return to_string_toString(t,index_es_k)}function we(e){const{encoding:n=ge}=e;if(index_es_C(e.type)===index_es_M)return to_string_toString(concat([e.type,e.sealed]),n);if(index_es_C(e.type)===D){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return to_string_toString(concat([e.type,e.senderPublicKey,e.iv,e.sealed]),n)}return to_string_toString(concat([e.type,e.iv,e.sealed]),n)}function Q(e){const{encoded:n,encoding:t=ge}=e,r=from_string_fromString(n,t),o=r.slice(mr,wn),s=wn;if(index_es_C(o)===D){const c=s+be,d=c+K,a=r.slice(s,c),f=r.slice(c,d),h=r.slice(d);return{type:o,sealed:h,iv:f,senderPublicKey:a}}if(index_es_C(o)===index_es_M){const c=r.slice(s),d=(0,random.randomBytes)(K);return{type:o,sealed:c,iv:d}}const i=s+K,u=r.slice(s,i),l=r.slice(i);return{type:o,sealed:l,iv:u}}function Sr(e,n){const t=Q({encoded:e,encoding:n?.encoding});return On({type:index_es_C(t.type),senderPublicKey:typeof t.senderPublicKey<"u"?to_string_toString(t.senderPublicKey,index_es_g):void 0,receiverPublicKey:n?.receiverPublicKey})}function On(e){const n=e?.type||ve;if(n===D){if(typeof e?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof e?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:n,senderPublicKey:e?.senderPublicKey,receiverPublicKey:e?.receiverPublicKey}}function $r(e){return e.type===D&&typeof e.senderPublicKey=="string"&&typeof e.receiverPublicKey=="string"}function Rr(e){return e.type===index_es_M}function Nn(e){return new elliptic.ec("p256").keyFromPublic({x:Buffer.from(e.x,"base64").toString("hex"),y:Buffer.from(e.y,"base64").toString("hex")},"hex")}function Ir(e){let n=e.replace(/-/g,"+").replace(/_/g,"/");const t=n.length%4;return t>0&&(n+="=".repeat(4-t)),n}function Pr(e){return Buffer.from(Ir(e),"base64")}function jr(e,n){const[t,r,o]=e.split("."),s=Pr(o);if(s.length!==64)throw new Error("Invalid signature length");const i=s.slice(0,32).toString("hex"),u=s.slice(32,64).toString("hex"),l=`${t}.${r}`,c=new sha256/* SHA256 */.aD().update(Buffer.from(l)).digest(),d=Nn(n),a=Buffer.from(c).toString("hex");if(!d.verify(a,{r:i,s:u}))throw new Error("Invalid signature");return utils_decodeJWT(e).payload}const Sn="irn";function Tr(e){return e?.relay||{protocol:Sn}}function Ar(e){const n=C[e];if(typeof n>"u")throw new Error(`Relay Protocol not supported: ${e}`);return n}var Cr=Object.defineProperty,Ur=Object.defineProperties,_r=Object.getOwnPropertyDescriptors,$n=Object.getOwnPropertySymbols,kr=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable,Rn=(e,n,t)=>n in e?Cr(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,In=(e,n)=>{for(var t in n||(n={}))kr.call(n,t)&&Rn(e,t,n[t]);if($n)for(var t of $n(n))Dr.call(n,t)&&Rn(e,t,n[t]);return e},xr=(e,n)=>Ur(e,_r(n));function Pn(e,n="-"){const t={},r="relay"+n;return Object.keys(e).forEach(o=>{if(o.startsWith(r)){const s=o.replace(r,""),i=e[o];t[s]=i}}),t}function Vr(e){if(!e.includes("wc:")){const l=le(e);l!=null&&l.includes("wc:")&&(e=l)}e=e.includes("wc://")?e.replace("wc://",""):e,e=e.includes("wc:")?e.replace("wc:",""):e;const n=e.indexOf(":"),t=e.indexOf("?")!==-1?e.indexOf("?"):void 0,r=e.substring(0,n),o=e.substring(n+1,t).split("@"),s=typeof t<"u"?e.substring(t):"",i=query_string.parse(s),u=typeof i.methods=="string"?i.methods.split(","):void 0;return{protocol:r,topic:jn(o[0]),version:parseInt(o[1],10),symKey:i.symKey,relay:Pn(i),methods:u,expiryTimestamp:i.expiryTimestamp?parseInt(i.expiryTimestamp,10):void 0}}function jn(e){return e.startsWith("//")?e.substring(2):e}function Tn(e,n="-"){const t="relay",r={};return Object.keys(e).forEach(o=>{const s=t+n+o;e[o]&&(r[s]=e[o])}),r}function Mr(e){return`${e.protocol}:${e.topic}@${e.version}?`+query_string.stringify(In(xr(In({symKey:e.symKey},Tn(e.relay)),{expiryTimestamp:e.expiryTimestamp}),e.methods?{methods:e.methods.join(",")}:{}))}function Kr(e,n,t){return`${e}?wc_ev=${t}&topic=${n}`}var Lr=Object.defineProperty,Fr=Object.defineProperties,qr=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,Br=Object.prototype.hasOwnProperty,Hr=Object.prototype.propertyIsEnumerable,Cn=(e,n,t)=>n in e?Lr(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,Wr=(e,n)=>{for(var t in n||(n={}))Br.call(n,t)&&Cn(e,t,n[t]);if(An)for(var t of An(n))Hr.call(n,t)&&Cn(e,t,n[t]);return e},Jr=(e,n)=>Fr(e,qr(n));function U(e){const n=[];return e.forEach(t=>{const[r,o]=t.split(":");n.push(`${r}:${o}`)}),n}function Un(e){const n=[];return Object.values(e).forEach(t=>{n.push(...U(t.accounts))}),n}function _n(e,n){const t=[];return Object.values(e).forEach(r=>{U(r.accounts).includes(n)&&t.push(...r.methods)}),t}function kn(e,n){const t=[];return Object.values(e).forEach(r=>{U(r.accounts).includes(n)&&t.push(...r.events)}),t}function zr(e,n){const t=Wn(e,n);if(t)throw new Error(t.message);const r={};for(const[o,s]of Object.entries(e))r[o]={methods:s.methods,events:s.events,chains:s.accounts.map(i=>`${i.split(":")[0]}:${i.split(":")[1]}`)};return r}function Gr(e){const{proposal:{requiredNamespaces:n,optionalNamespaces:t={}},supportedNamespaces:r}=e,o=Ne(n),s=Ne(t),i={};Object.keys(r).forEach(c=>{const d=r[c].chains,a=r[c].methods,f=r[c].events,h=r[c].accounts;d.forEach(p=>{if(!h.some(m=>m.includes(p)))throw new Error(`No accounts provided for chain ${p} in namespace ${c}`)}),i[c]={chains:d,methods:a,events:f,accounts:h}});const u=zn(n,i,"approve()");if(u)throw new Error(u.message);const l={};return!Object.keys(n).length&&!Object.keys(t).length?i:(Object.keys(o).forEach(c=>{const d=r[c].chains.filter(p=>{var m,E;return(E=(m=o[c])==null?void 0:m.chains)==null?void 0:E.includes(p)}),a=r[c].methods.filter(p=>{var m,E;return(E=(m=o[c])==null?void 0:m.methods)==null?void 0:E.includes(p)}),f=r[c].events.filter(p=>{var m,E;return(E=(m=o[c])==null?void 0:m.events)==null?void 0:E.includes(p)}),h=d.map(p=>r[c].accounts.filter(m=>m.includes(`${p}:`))).flat();l[c]={chains:d,methods:a,events:f,accounts:h}}),Object.keys(s).forEach(c=>{var d,a,f,h,p,m;if(!r[c])return;const E=(a=(d=s[c])==null?void 0:d.chains)==null?void 0:a.filter(j=>r[c].chains.includes(j)),nt=r[c].methods.filter(j=>{var T,x;return(x=(T=s[c])==null?void 0:T.methods)==null?void 0:x.includes(j)}),tt=r[c].events.filter(j=>{var T,x;return(x=(T=s[c])==null?void 0:T.events)==null?void 0:x.includes(j)}),rt=E?.map(j=>r[c].accounts.filter(T=>T.includes(`${j}:`))).flat();l[c]={chains:N((f=l[c])==null?void 0:f.chains,E),methods:N((h=l[c])==null?void 0:h.methods,nt),events:N((p=l[c])==null?void 0:p.events,tt),accounts:N((m=l[c])==null?void 0:m.accounts,rt)}}),l)}function Oe(e){return e.includes(":")}function Dn(e){return Oe(e)?e.split(":")[0]:e}function Ne(e){var n,t,r;const o={};if(!Z(e))return o;for(const[s,i]of Object.entries(e)){const u=Oe(s)?[s]:i.chains,l=i.methods||[],c=i.events||[],d=Dn(s);o[d]=Jr(Wr({},o[d]),{chains:N(u,(n=o[d])==null?void 0:n.chains),methods:N(l,(t=o[d])==null?void 0:t.methods),events:N(c,(r=o[d])==null?void 0:r.events)})}return o}function xn(e){const n={};return e?.forEach(t=>{const[r,o]=t.split(":");n[r]||(n[r]={accounts:[],chains:[],events:[]}),n[r].accounts.push(t),n[r].chains.push(`${r}:${o}`)}),n}function Yr(e,n){n=n.map(r=>r.replace("did:pkh:",""));const t=xn(n);for(const[r,o]of Object.entries(t))o.methods?o.methods=N(o.methods,e):o.methods=e,o.events=["chainChanged","accountsChanged"];return t}const Vn={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Mn={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function index_es_S(e,n){const{message:t,code:r}=Mn[e];return{message:n?`${t} ${n}`:t,code:r}}function index_es_(e,n){const{message:t,code:r}=Vn[e];return{message:n?`${t} ${n}`:t,code:r}}function L(e,n){return Array.isArray(e)?typeof n<"u"&&e.length?e.every(n):!0:!1}function Z(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function index_es_P(e){return typeof e>"u"}function index_es_b(e,n){return n&&index_es_P(e)?!0:typeof e=="string"&&!!e.trim().length}function X(e,n){return n&&index_es_P(e)?!0:typeof e=="number"&&!isNaN(e)}function Qr(e,n){const{requiredNamespaces:t}=n,r=Object.keys(e.namespaces),o=Object.keys(t);let s=!0;return index_es_R(o,r)?(r.forEach(i=>{const{accounts:u,methods:l,events:c}=e.namespaces[i],d=U(u),a=t[i];(!index_es_R(W(i,a),d)||!index_es_R(a.methods,l)||!index_es_R(a.events,c))&&(s=!1)}),s):!1}function F(e){return index_es_b(e,!1)&&e.includes(":")?e.split(":").length===2:!1}function Kn(e){if(index_es_b(e,!1)&&e.includes(":")){const n=e.split(":");if(n.length===3){const t=n[0]+":"+n[1];return!!n[2]&&F(t)}}return!1}function Zr(e){function n(t){try{return typeof new URL(t)<"u"}catch{return!1}}try{if(index_es_b(e,!1)){if(n(e))return!0;const t=le(e);return n(t)}}catch{}return!1}function Xr(e){var n;return(n=e?.proposer)==null?void 0:n.publicKey}function eo(e){return e?.topic}function no(e,n){let t=null;return index_es_b(e?.publicKey,!1)||(t=index_es_S("MISSING_OR_INVALID",`${n} controller public key should be a string`)),t}function Se(e){let n=!0;return L(e)?e.length&&(n=e.every(t=>index_es_b(t,!1))):n=!1,n}function Ln(e,n,t){let r=null;return L(n)&&n.length?n.forEach(o=>{r||F(o)||(r=index_es_("UNSUPPORTED_CHAINS",`${t}, chain ${o} should be a string and conform to "namespace:chainId" format`))}):F(e)||(r=index_es_("UNSUPPORTED_CHAINS",`${t}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),r}function Fn(e,n,t){let r=null;return Object.entries(e).forEach(([o,s])=>{if(r)return;const i=Ln(o,W(o,s),`${n} ${t}`);i&&(r=i)}),r}function qn(e,n){let t=null;return L(e)?e.forEach(r=>{t||Kn(r)||(t=index_es_("UNSUPPORTED_ACCOUNTS",`${n}, account ${r} should be a string and conform to "namespace:chainId:address" format`))}):t=index_es_("UNSUPPORTED_ACCOUNTS",`${n}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),t}function Bn(e,n){let t=null;return Object.values(e).forEach(r=>{if(t)return;const o=qn(r?.accounts,`${n} namespace`);o&&(t=o)}),t}function Hn(e,n){let t=null;return Se(e?.methods)?Se(e?.events)||(t=index_es_("UNSUPPORTED_EVENTS",`${n}, events should be an array of strings or empty array for no events`)):t=index_es_("UNSUPPORTED_METHODS",`${n}, methods should be an array of strings or empty array for no methods`),t}function $e(e,n){let t=null;return Object.values(e).forEach(r=>{if(t)return;const o=Hn(r,`${n}, namespace`);o&&(t=o)}),t}function to(e,n,t){let r=null;if(e&&Z(e)){const o=$e(e,n);o&&(r=o);const s=Fn(e,n,t);s&&(r=s)}else r=index_es_S("MISSING_OR_INVALID",`${n}, ${t} should be an object with data`);return r}function Wn(e,n){let t=null;if(e&&Z(e)){const r=$e(e,n);r&&(t=r);const o=Bn(e,n);o&&(t=o)}else t=index_es_S("MISSING_OR_INVALID",`${n}, namespaces should be an object with data`);return t}function Jn(e){return index_es_b(e.protocol,!0)}function ro(e,n){let t=!1;return n&&!e?t=!0:e&&L(e)&&e.length&&e.forEach(r=>{t=Jn(r)}),t}function oo(e){return typeof e=="number"}function so(e){return typeof e<"u"&&typeof e!==null}function io(e){return!(!e||typeof e!="object"||!e.code||!X(e.code,!1)||!e.message||!index_es_b(e.message,!1))}function co(e){return!(index_es_P(e)||!index_es_b(e.method,!1))}function ao(e){return!(index_es_P(e)||index_es_P(e.result)&&index_es_P(e.error)||!X(e.id,!1)||!index_es_b(e.jsonrpc,!1))}function uo(e){return!(index_es_P(e)||!index_es_b(e.name,!1))}function lo(e,n){return!(!F(n)||!Un(e).includes(n))}function fo(e,n,t){return index_es_b(t,!1)?_n(e,n).includes(t):!1}function po(e,n,t){return index_es_b(t,!1)?kn(e,n).includes(t):!1}function zn(e,n,t){let r=null;const o=mo(e),s=ho(n),i=Object.keys(o),u=Object.keys(s),l=Gn(Object.keys(e)),c=Gn(Object.keys(n)),d=l.filter(a=>!c.includes(a));return d.length&&(r=index_es_S("NON_CONFORMING_NAMESPACES",`${t} namespaces keys don't satisfy requiredNamespaces. Required: ${d.toString()} - Received: ${Object.keys(n).toString()}`)),$(i,u)||(r=index_es_S("NON_CONFORMING_NAMESPACES",`${t} namespaces chains don't satisfy required namespaces. + Received: ${Object.keys(n).toString()}`)),index_es_R(i,u)||(r=index_es_S("NON_CONFORMING_NAMESPACES",`${t} namespaces chains don't satisfy required namespaces. Required: ${i.toString()} - Approved: ${u.toString()}`)),Object.keys(n).forEach(a=>{if(!a.includes(":")||r)return;const f=index_es_C(n[a].accounts);f.includes(a)||(r=index_es_S("NON_CONFORMING_NAMESPACES",`${t} namespaces accounts don't satisfy namespace accounts for ${a} + Approved: ${u.toString()}`)),Object.keys(n).forEach(a=>{if(!a.includes(":")||r)return;const f=U(n[a].accounts);f.includes(a)||(r=index_es_S("NON_CONFORMING_NAMESPACES",`${t} namespaces accounts don't satisfy namespace accounts for ${a} Required: ${a} - Approved: ${f.toString()}`))}),i.forEach(a=>{r||($(o[a].methods,s[a].methods)?$(o[a].events,s[a].events)||(r=index_es_S("NON_CONFORMING_NAMESPACES",`${t} namespaces events don't satisfy namespace events for ${a}`)):r=index_es_S("NON_CONFORMING_NAMESPACES",`${t} namespaces methods don't satisfy namespace methods for ${a}`))}),r}function lo(e){const n={};return Object.keys(e).forEach(t=>{var r;t.includes(":")?n[t]=e[t]:(r=e[t].chains)==null||r.forEach(o=>{n[o]={methods:e[t].methods,events:e[t].events}})}),n}function Gn(e){return[...new Set(e.map(n=>n.includes(":")?n.split(":")[0]:n))]}function fo(e){const n={};return Object.keys(e).forEach(t=>{if(t.includes(":"))n[t]=e[t];else{const r=index_es_C(e[t].accounts);r?.forEach(o=>{n[o]={accounts:e[t].accounts.filter(s=>s.includes(`${o}:`)),methods:e[t].methods,events:e[t].events}})}}),n}function po(e,n){return X(e,!1)&&e<=n.max&&e>=n.min}function mo(){const e=index_es_P();return new Promise(n=>{switch(e){case y.browser:n(Yn());break;case y.reactNative:n(Qn());break;case y.node:n(Zn());break;default:n(!0)}})}function Yn(){return V()&&navigator?.onLine}async function Qn(){if(index_es_()&&typeof global<"u"&&global!=null&&global.NetInfo){const e=await(global==null?void 0:global.NetInfo.fetch());return e?.isConnected}return!0}function Zn(){return!0}function ho(e){switch(index_es_P()){case y.browser:Xn(e);break;case y.reactNative:et(e);break;case y.node:break}}function Xn(e){!index_es_()&&V()&&(window.addEventListener("online",()=>e(!0)),window.addEventListener("offline",()=>e(!1)))}function et(e){index_es_()&&typeof global<"u"&&global!=null&&global.NetInfo&&global?.NetInfo.addEventListener(n=>e(n?.isConnected))}const Re={};class yo{static get(n){return Re[n]}static set(n,t){Re[n]=t}static delete(n){delete Re[n]}} + Approved: ${f.toString()}`))}),i.forEach(a=>{r||(index_es_R(o[a].methods,s[a].methods)?index_es_R(o[a].events,s[a].events)||(r=index_es_S("NON_CONFORMING_NAMESPACES",`${t} namespaces events don't satisfy namespace events for ${a}`)):r=index_es_S("NON_CONFORMING_NAMESPACES",`${t} namespaces methods don't satisfy namespace methods for ${a}`))}),r}function mo(e){const n={};return Object.keys(e).forEach(t=>{var r;t.includes(":")?n[t]=e[t]:(r=e[t].chains)==null||r.forEach(o=>{n[o]={methods:e[t].methods,events:e[t].events}})}),n}function Gn(e){return[...new Set(e.map(n=>n.includes(":")?n.split(":")[0]:n))]}function ho(e){const n={};return Object.keys(e).forEach(t=>{if(t.includes(":"))n[t]=e[t];else{const r=U(e[t].accounts);r?.forEach(o=>{n[o]={accounts:e[t].accounts.filter(s=>s.includes(`${o}:`)),methods:e[t].methods,events:e[t].events}})}}),n}function yo(e,n){return X(e,!1)&&e<=n.max&&e>=n.min}function go(){const e=A();return new Promise(n=>{switch(e){case y.browser:n(Yn());break;case y.reactNative:n(Qn());break;case y.node:n(Zn());break;default:n(!0)}})}function Yn(){return V()&&navigator?.onLine}async function Qn(){if($()&&typeof global<"u"&&global!=null&&global.NetInfo){const e=await(global==null?void 0:global.NetInfo.fetch());return e?.isConnected}return!0}function Zn(){return!0}function vo(e){switch(A()){case y.browser:Xn(e);break;case y.reactNative:et(e);break;case y.node:break}}function Xn(e){!$()&&V()&&(window.addEventListener("online",()=>e(!0)),window.addEventListener("offline",()=>e(!1)))}function et(e){$()&&typeof global<"u"&&global!=null&&global.NetInfo&&global?.NetInfo.addEventListener(n=>e(n?.isConnected))}const Re={};class bo{static get(n){return Re[n]}static set(n,t){Re[n]=t}static delete(n){delete Re[n]}} //# sourceMappingURL=index.es.js.map ;// ./node_modules/@walletconnect/events/dist/esm/events.js @@ -6522,7 +6522,7 @@ function dist_index_es_C(i){return i}const x="idb-keyval";var index_es_z=(i={})= var pino = __webpack_require__(894308); var pino_default = /*#__PURE__*/__webpack_require__.n(pino); ;// ./node_modules/@walletconnect/logger/dist/index.es.js -const dist_index_es_c={level:"info"},dist_index_es_n="custom_context",dist_index_es_l=1e3*1024;class dist_index_es_O{constructor(e){this.nodeValue=e,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}}class index_es_d{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){const t=new dist_index_es_O(e);if(t.size>this.maxSizeInBytes)throw new Error(`[LinkedList] Value too big to insert into list: ${e} with size ${t.size}`);for(;this.size+t.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=t),this.tail=t):(this.head=t,this.tail=t),this.lengthInNodes++,this.sizeInBytes+=t.size}shift(){if(!this.head)return;const e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){const e=[];let t=this.head;for(;t!==null;)e.push(t.value),t=t.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};const t=e.value;return e=e.next,{done:!1,value:t}}}}}class index_es_L{constructor(e,t=dist_index_es_l){this.level=e??"error",this.levelValue=pino.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=t,this.logs=new index_es_d(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,t){t===pino.levels.values.error?console.error(e):t===pino.levels.values.warn?console.warn(e):t===pino.levels.values.debug?console.debug(e):t===pino.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append(safeJsonStringify({timestamp:new Date().toISOString(),log:e}));const t=typeof e=="string"?JSON.parse(e).level:e.level;t>=this.levelValue&&this.forwardToConsole(e,t)}getLogs(){return this.logs}clearLogs(){this.logs=new index_es_d(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){const t=this.getLogArray();return t.push(safeJsonStringify({extraMetadata:e})),new Blob(t,{type:"application/json"})}}class index_es_m{constructor(e,t=dist_index_es_l){this.baseChunkLogger=new index_es_L(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){const t=URL.createObjectURL(this.logsToBlob(e)),o=document.createElement("a");o.href=t,o.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(t)}}class B{constructor(e,t=dist_index_es_l){this.baseChunkLogger=new index_es_L(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}}var index_es_x=Object.defineProperty,dist_index_es_S=Object.defineProperties,logger_dist_index_es_=Object.getOwnPropertyDescriptors,index_es_p=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,dist_index_es_z=Object.prototype.propertyIsEnumerable,index_es_f=(r,e,t)=>e in r?index_es_x(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,i=(r,e)=>{for(var t in e||(e={}))T.call(e,t)&&index_es_f(r,t,e[t]);if(index_es_p)for(var t of index_es_p(e))dist_index_es_z.call(e,t)&&index_es_f(r,t,e[t]);return r},dist_index_es_g=(r,e)=>dist_index_es_S(r,logger_dist_index_es_(e));function logger_dist_index_es_k(r){return dist_index_es_g(i({},r),{level:r?.level||dist_index_es_c.level})}function v(r,e=dist_index_es_n){return r[e]||""}function dist_index_es_b(r,e,t=dist_index_es_n){return r[t]=e,r}function dist_index_es_y(r,e=dist_index_es_n){let t="";return typeof r.bindings>"u"?t=v(r,e):t=r.bindings().context||"",t}function index_es_w(r,e,t=dist_index_es_n){const o=dist_index_es_y(r,t);return o.trim()?`${o}/${e}`:e}function dist_index_es_E(r,e,t=dist_index_es_n){const o=index_es_w(r,e,t),a=r.child({context:o});return dist_index_es_b(a,o,t)}function logger_dist_index_es_C(r){var e,t;const o=new index_es_m((e=r.opts)==null?void 0:e.level,r.maxSizeInBytes);return{logger:pino_default()(dist_index_es_g(i({},r.opts),{level:"trace",browser:dist_index_es_g(i({},(t=r.opts)==null?void 0:t.browser),{write:a=>o.write(a)})})),chunkLoggerController:o}}function index_es_I(r){var e;const t=new B((e=r.opts)==null?void 0:e.level,r.maxSizeInBytes);return{logger:pino_default()(dist_index_es_g(i({},r.opts),{level:"trace"}),t),chunkLoggerController:t}}function index_es_A(r){return typeof r.loggerOverride<"u"&&typeof r.loggerOverride!="string"?{logger:r.loggerOverride,chunkLoggerController:null}:typeof window<"u"?logger_dist_index_es_C(r):index_es_I(r)} +const dist_index_es_c={level:"info"},dist_index_es_n="custom_context",dist_index_es_l=1e3*1024;class dist_index_es_O{constructor(e){this.nodeValue=e,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}}class index_es_d{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){const t=new dist_index_es_O(e);if(t.size>this.maxSizeInBytes)throw new Error(`[LinkedList] Value too big to insert into list: ${e} with size ${t.size}`);for(;this.size+t.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=t),this.tail=t):(this.head=t,this.tail=t),this.lengthInNodes++,this.sizeInBytes+=t.size}shift(){if(!this.head)return;const e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){const e=[];let t=this.head;for(;t!==null;)e.push(t.value),t=t.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};const t=e.value;return e=e.next,{done:!1,value:t}}}}}class index_es_L{constructor(e,t=dist_index_es_l){this.level=e??"error",this.levelValue=pino.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=t,this.logs=new index_es_d(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,t){t===pino.levels.values.error?console.error(e):t===pino.levels.values.warn?console.warn(e):t===pino.levels.values.debug?console.debug(e):t===pino.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append(safeJsonStringify({timestamp:new Date().toISOString(),log:e}));const t=typeof e=="string"?JSON.parse(e).level:e.level;t>=this.levelValue&&this.forwardToConsole(e,t)}getLogs(){return this.logs}clearLogs(){this.logs=new index_es_d(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){const t=this.getLogArray();return t.push(safeJsonStringify({extraMetadata:e})),new Blob(t,{type:"application/json"})}}class index_es_m{constructor(e,t=dist_index_es_l){this.baseChunkLogger=new index_es_L(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){const t=URL.createObjectURL(this.logsToBlob(e)),o=document.createElement("a");o.href=t,o.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(t)}}class index_es_B{constructor(e,t=dist_index_es_l){this.baseChunkLogger=new index_es_L(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}}var index_es_x=Object.defineProperty,dist_index_es_S=Object.defineProperties,logger_dist_index_es_=Object.getOwnPropertyDescriptors,index_es_p=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,dist_index_es_z=Object.prototype.propertyIsEnumerable,index_es_f=(r,e,t)=>e in r?index_es_x(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,i=(r,e)=>{for(var t in e||(e={}))T.call(e,t)&&index_es_f(r,t,e[t]);if(index_es_p)for(var t of index_es_p(e))dist_index_es_z.call(e,t)&&index_es_f(r,t,e[t]);return r},dist_index_es_g=(r,e)=>dist_index_es_S(r,logger_dist_index_es_(e));function logger_dist_index_es_k(r){return dist_index_es_g(i({},r),{level:r?.level||dist_index_es_c.level})}function v(r,e=dist_index_es_n){return r[e]||""}function dist_index_es_b(r,e,t=dist_index_es_n){return r[t]=e,r}function dist_index_es_y(r,e=dist_index_es_n){let t="";return typeof r.bindings>"u"?t=v(r,e):t=r.bindings().context||"",t}function index_es_w(r,e,t=dist_index_es_n){const o=dist_index_es_y(r,t);return o.trim()?`${o}/${e}`:e}function dist_index_es_E(r,e,t=dist_index_es_n){const o=index_es_w(r,e,t),a=r.child({context:o});return dist_index_es_b(a,o,t)}function logger_dist_index_es_C(r){var e,t;const o=new index_es_m((e=r.opts)==null?void 0:e.level,r.maxSizeInBytes);return{logger:pino_default()(dist_index_es_g(i({},r.opts),{level:"trace",browser:dist_index_es_g(i({},(t=r.opts)==null?void 0:t.browser),{write:a=>o.write(a)})})),chunkLoggerController:o}}function index_es_I(r){var e;const t=new index_es_B((e=r.opts)==null?void 0:e.level,r.maxSizeInBytes);return{logger:pino_default()(dist_index_es_g(i({},r.opts),{level:"trace"}),t),chunkLoggerController:t}}function index_es_A(r){return typeof r.loggerOverride<"u"&&typeof r.loggerOverride!="string"?{logger:r.loggerOverride,chunkLoggerController:null}:typeof window<"u"?logger_dist_index_es_C(r):index_es_I(r)} //# sourceMappingURL=index.es.js.map ;// ./node_modules/@walletconnect/types/dist/index.es.js @@ -6729,18 +6729,18 @@ class dist_index_es_o extends index_es_r{constructor(t){super(t),this.events=new //# sourceMappingURL=index.es.js.map ;// ./node_modules/@walletconnect/jsonrpc-ws-connection/dist/index.es.js -const jsonrpc_ws_connection_dist_index_es_w=()=>typeof WebSocket<"u"?WebSocket:typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:__webpack_require__(792784),jsonrpc_ws_connection_dist_index_es_b=()=>typeof WebSocket<"u"||typeof global<"u"&&typeof global.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",dist_index_es_a=c=>c.split("?")[0],jsonrpc_ws_connection_dist_index_es_h=10,jsonrpc_ws_connection_dist_index_es_S=jsonrpc_ws_connection_dist_index_es_w();class dist_index_es_f{constructor(e){if(this.url=e,this.events=new external_events_.EventEmitter,this.registering=!1,!isWsUrl(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,t)=>{if(typeof this.socket>"u"){t(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),e()},this.socket.close()})}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(safeJsonStringify(e))}catch(t){this.onError(e.id,t)}}register(e=this.url){if(!isWsUrl(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){const t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((n,o)=>{this.events.once("register_error",s=>{this.resetMaxListeners(),o(s)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return o(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=e,this.registering=!0,new Promise((t,n)=>{const o=new URLSearchParams(e).get("origin"),s=(0,environment_dist_cjs.isReactNative)()?{headers:{origin:o}}:{rejectUnauthorized:!isLocalhostUrl(e)},i=new jsonrpc_ws_connection_dist_index_es_S(e,[],s);jsonrpc_ws_connection_dist_index_es_b()?i.onerror=r=>{const l=r;n(this.emitError(l.error))}:i.on("error",r=>{n(this.emitError(r))}),i.onopen=()=>{this.onOpen(i),t(i)}})}onOpen(e){e.onmessage=t=>this.onPayload(t),e.onclose=t=>this.onClose(t),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;const t=typeof e.data=="string"?safeJsonParse(e.data):e.data;this.events.emit("payload",t)}onError(e,t){const n=this.parseError(t),o=n.message||n.toString(),s=formatJsonRpcError(e,o);this.events.emit("payload",s)}parseError(e,t=this.url){return parseConnectionError(e,dist_index_es_a(t),"WS")}resetMaxListeners(){this.events.getMaxListeners()>jsonrpc_ws_connection_dist_index_es_h&&this.events.setMaxListeners(jsonrpc_ws_connection_dist_index_es_h)}emitError(e){const t=this.parseError(new Error(e?.message||`WebSocket connection failed for host: ${dist_index_es_a(this.url)}`));return this.events.emit("register_error",t),t}} +const dist_index_es_v=()=>typeof WebSocket<"u"?WebSocket:typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:__webpack_require__(792784),jsonrpc_ws_connection_dist_index_es_w=()=>typeof WebSocket<"u"||typeof global<"u"&&typeof global.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",jsonrpc_ws_connection_dist_index_es_d=r=>r.split("?")[0],jsonrpc_ws_connection_dist_index_es_h=10,jsonrpc_ws_connection_dist_index_es_b=dist_index_es_v();class dist_index_es_f{constructor(e){if(this.url=e,this.events=new external_events_.EventEmitter,this.registering=!1,!isWsUrl(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,t)=>{if(typeof this.socket>"u"){t(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),e()},this.socket.close()})}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(safeJsonStringify(e))}catch(t){this.onError(e.id,t)}}register(e=this.url){if(!isWsUrl(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){const t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((n,s)=>{this.events.once("register_error",o=>{this.resetMaxListeners(),s(o)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return s(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=e,this.registering=!0,new Promise((t,n)=>{const s=(0,environment_dist_cjs.isReactNative)()?void 0:{rejectUnauthorized:!isLocalhostUrl(e)},o=new jsonrpc_ws_connection_dist_index_es_b(e,[],s);jsonrpc_ws_connection_dist_index_es_w()?o.onerror=i=>{const a=i;n(this.emitError(a.error))}:o.on("error",i=>{n(this.emitError(i))}),o.onopen=()=>{this.onOpen(o),t(o)}})}onOpen(e){e.onmessage=t=>this.onPayload(t),e.onclose=t=>this.onClose(t),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;const t=typeof e.data=="string"?safeJsonParse(e.data):e.data;this.events.emit("payload",t)}onError(e,t){const n=this.parseError(t),s=n.message||n.toString(),o=formatJsonRpcError(e,s);this.events.emit("payload",o)}parseError(e,t=this.url){return parseConnectionError(e,jsonrpc_ws_connection_dist_index_es_d(t),"WS")}resetMaxListeners(){this.events.getMaxListeners()>jsonrpc_ws_connection_dist_index_es_h&&this.events.setMaxListeners(jsonrpc_ws_connection_dist_index_es_h)}emitError(e){const t=this.parseError(new Error(e?.message||`WebSocket connection failed for host: ${jsonrpc_ws_connection_dist_index_es_d(this.url)}`));return this.events.emit("register_error",t),t}} //# sourceMappingURL=index.es.js.map // EXTERNAL MODULE: ./node_modules/lodash.isequal/index.js var lodash_isequal = __webpack_require__(908142); var lodash_isequal_default = /*#__PURE__*/__webpack_require__.n(lodash_isequal); ;// ./node_modules/@walletconnect/core/dist/index.es.js -const index_es_ye="wc",index_es_De=2,index_es_ie="core",core_dist_index_es_x=`${index_es_ye}@2:${index_es_ie}:`,index_es_Ye={name:index_es_ie,logger:"error"},index_es_Je={database:":memory:"},index_es_Xe="crypto",index_es_me="client_ed25519_seed",index_es_We=cjs.ONE_DAY,index_es_Ze="keychain",index_es_Qe="0.3",index_es_et="messages",tt="0.3",it=cjs.SIX_HOURS,st="publisher",rt="irn",nt="error",index_es_be="wss://relay.walletconnect.org",ot="relayer",dist_index_es_v={message:"relayer_message",message_ack:"relayer_message_ack",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed",publish:"relayer_publish"},at="_subscription",core_dist_index_es_I={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},index_es_ht=.1,ms={database:":memory:"},index_es_se="2.17.2",bs=1e4,dist_index_es_M={link_mode:"link_mode",relay:"relay"},ct="0.3",lt="WALLETCONNECT_CLIENT_ID",fe="WALLETCONNECT_LINK_MODE_APPS",core_dist_index_es_O={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"},fs=(/* unused pure expression or super */ null && (ee)),ut="subscription",dt="0.3",index_es_pt=cjs.FIVE_SECONDS*1e3,index_es_gt="pairing",index_es_yt="0.3",_s=(/* unused pure expression or super */ null && (ee)),index_es_B={wc_pairingDelete:{req:{ttl:cjs.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:cjs.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:cjs.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:cjs.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:cjs.ONE_DAY,prompt:!1,tag:0},res:{ttl:cjs.ONE_DAY,prompt:!1,tag:0}}},index_es_V={create:"pairing_create",expire:"pairing_expire",delete:"pairing_delete",ping:"pairing_ping"},dist_index_es_P={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},index_es_Dt="history",index_es_mt="0.3",index_es_bt="expirer",core_dist_index_es_S={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},index_es_ft="0.3",Es=(/* unused pure expression or super */ null && (F)),index_es_t="verify-api",vs="https://verify.walletconnect.com",index_es_Et="https://verify.walletconnect.org",index_es_J=index_es_Et,index_es_vt=`${index_es_J}/v3`,index_es_wt=[vs,index_es_Et],index_es_It="echo",index_es_Tt="https://echo.walletconnect.com",ws="event-client",core_dist_index_es_z={pairing_started:"pairing_started",pairing_uri_validation_success:"pairing_uri_validation_success",pairing_uri_not_expired:"pairing_uri_not_expired",store_new_pairing:"store_new_pairing",subscribing_pairing_topic:"subscribing_pairing_topic",subscribe_pairing_topic_success:"subscribe_pairing_topic_success",existing_pairing:"existing_pairing",pairing_not_expired:"pairing_not_expired",emit_inactive_pairing:"emit_inactive_pairing",emit_session_proposal:"emit_session_proposal",subscribing_to_pairing_topic:"subscribing_to_pairing_topic"},index_es_$={no_wss_connection:"no_wss_connection",no_internet_connection:"no_internet_connection",malformed_pairing_uri:"malformed_pairing_uri",active_pairing_already_exists:"active_pairing_already_exists",subscribe_pairing_topic_failure:"subscribe_pairing_topic_failure",pairing_expired:"pairing_expired",proposal_expired:"proposal_expired",proposal_listener_not_found:"proposal_listener_not_found"},Is={session_approve_started:"session_approve_started",proposal_not_expired:"proposal_not_expired",session_namespaces_validation_success:"session_namespaces_validation_success",create_session_topic:"create_session_topic",subscribing_session_topic:"subscribing_session_topic",subscribe_session_topic_success:"subscribe_session_topic_success",publishing_session_approve:"publishing_session_approve",session_approve_publish_success:"session_approve_publish_success",store_session:"store_session",publishing_session_settle:"publishing_session_settle",session_settle_publish_success:"session_settle_publish_success"},Ts={no_internet_connection:"no_internet_connection",no_wss_connection:"no_wss_connection",proposal_expired:"proposal_expired",subscribe_session_topic_failure:"subscribe_session_topic_failure",session_approve_publish_failure:"session_approve_publish_failure",session_settle_publish_failure:"session_settle_publish_failure",session_approve_namespace_validation_failure:"session_approve_namespace_validation_failure",proposal_not_found:"proposal_not_found"},Cs={authenticated_session_approve_started:"authenticated_session_approve_started",authenticated_session_not_expired:"authenticated_session_not_expired",chains_caip2_compliant:"chains_caip2_compliant",chains_evm_compliant:"chains_evm_compliant",create_authenticated_session_topic:"create_authenticated_session_topic",cacaos_verified:"cacaos_verified",store_authenticated_session:"store_authenticated_session",subscribing_authenticated_session_topic:"subscribing_authenticated_session_topic",subscribe_authenticated_session_topic_success:"subscribe_authenticated_session_topic_success",publishing_authenticated_session_approve:"publishing_authenticated_session_approve",authenticated_session_approve_publish_success:"authenticated_session_approve_publish_success"},Ps={no_internet_connection:"no_internet_connection",no_wss_connection:"no_wss_connection",missing_session_authenticate_request:"missing_session_authenticate_request",session_authenticate_request_expired:"session_authenticate_request_expired",chains_caip2_compliant_failure:"chains_caip2_compliant_failure",chains_evm_compliant_failure:"chains_evm_compliant_failure",invalid_cacao:"invalid_cacao",subscribe_authenticated_session_topic_failure:"subscribe_authenticated_session_topic_failure",authenticated_session_approve_publish_failure:"authenticated_session_approve_publish_failure",authenticated_session_pending_request_not_found:"authenticated_session_pending_request_not_found"},index_es_Ct=.1,index_es_Pt="event-client",index_es_St=86400,index_es_Rt="https://pulse.walletconnect.org/batch";function Ss(o,e){if(o.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),s=0;s>>0,T=new Uint8Array(A);y!==b;){for(var N=u[y],k=0,R=A-1;(N!==0||k<_)&&R!==-1;R--,k++)N+=256*T[R]>>>0,T[R]=N%a>>>0,N=N/a>>>0;if(N!==0)throw new Error("Non-zero carry");_=k,y++}for(var L=A-_;L!==A&&T[L]===0;)L++;for(var Q=h.repeat(g);L>>0,A=new Uint8Array(b);u[g];){var T=t[u.charCodeAt(g)];if(T===255)return;for(var N=0,k=b-1;(T!==0||N>>0,A[k]=T%256>>>0,T=T/256>>>0;if(T!==0)throw new Error("Non-zero carry");y=N,g++}if(u[g]!==" "){for(var R=b-y;R!==b&&A[R]===0;)R++;for(var L=new Uint8Array(_+(b-R)),Q=_;R!==b;)L[Q++]=A[R++];return L}}}function m(u){var g=D(u);if(g)return g;throw new Error(`Non-${e} character`)}return{encode:p,decodeUnsafe:D,decode:m}}var Rs=Ss,xs=Rs;const index_es_xt=o=>{if(o instanceof Uint8Array&&o.constructor.name==="Uint8Array")return o;if(o instanceof ArrayBuffer)return new Uint8Array(o);if(ArrayBuffer.isView(o))return new Uint8Array(o.buffer,o.byteOffset,o.byteLength);throw new Error("Unknown type, must be binary type")},Os=o=>new TextEncoder().encode(o),As=o=>new TextDecoder().decode(o);class Ns{constructor(e,t,s){this.name=e,this.prefix=t,this.baseEncode=s}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class zs{constructor(e,t,s){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=s}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return index_es_Ot(this,e)}}class Ls{constructor(e){this.decoders=e}or(e){return index_es_Ot(this,e)}decode(e){const t=e[0],s=this.decoders[t];if(s)return s.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const index_es_Ot=(o,e)=>new Ls({...o.decoders||{[o.prefix]:o},...e.decoders||{[e.prefix]:e}});class $s{constructor(e,t,s,i){this.name=e,this.prefix=t,this.baseEncode=s,this.baseDecode=i,this.encoder=new Ns(e,t,s),this.decoder=new zs(e,t,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const index_es_re=({name:o,prefix:e,encode:t,decode:s})=>new $s(o,e,t,s),index_es_X=({prefix:o,name:e,alphabet:t})=>{const{encode:s,decode:i}=xs(t,e);return index_es_re({prefix:o,name:e,encode:s,decode:r=>index_es_xt(i(r))})},ks=(o,e,t,s)=>{const i={};for(let l=0;l=8&&(a-=8,n[c++]=255&h>>a)}if(a>=t||255&h<<8-a)throw new SyntaxError("Unexpected end of data");return n},Ms=(o,e,t)=>{const s=e[e.length-1]==="=",i=(1<t;)n-=t,r+=e[i&a>>n];if(n&&(r+=e[i&a<index_es_re({prefix:e,name:o,encode(i){return Ms(i,s,t)},decode(i){return ks(i,s,t,o)}}),Us=index_es_re({prefix:"\0",name:"identity",encode:o=>As(o),decode:o=>Os(o)});var Fs=Object.freeze({__proto__:null,identity:Us});const Ks=core_dist_index_es_f({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Bs=Object.freeze({__proto__:null,base2:Ks});const Vs=core_dist_index_es_f({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var js=Object.freeze({__proto__:null,base8:Vs});const qs=index_es_X({prefix:"9",name:"base10",alphabet:"0123456789"});var Gs=Object.freeze({__proto__:null,base10:qs});const Hs=core_dist_index_es_f({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Ys=core_dist_index_es_f({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Js=Object.freeze({__proto__:null,base16:Hs,base16upper:Ys});const Xs=core_dist_index_es_f({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Ws=core_dist_index_es_f({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Zs=core_dist_index_es_f({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Qs=core_dist_index_es_f({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),index_es_er=core_dist_index_es_f({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),index_es_tr=core_dist_index_es_f({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),index_es_ir=core_dist_index_es_f({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),index_es_sr=core_dist_index_es_f({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),index_es_rr=core_dist_index_es_f({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var index_es_nr=Object.freeze({__proto__:null,base32:Xs,base32upper:Ws,base32pad:Zs,base32padupper:Qs,base32hex:index_es_er,base32hexupper:index_es_tr,base32hexpad:index_es_ir,base32hexpadupper:index_es_sr,base32z:index_es_rr});const index_es_or=index_es_X({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),index_es_ar=index_es_X({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var index_es_hr=Object.freeze({__proto__:null,base36:index_es_or,base36upper:index_es_ar});const index_es_cr=index_es_X({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),index_es_lr=index_es_X({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var index_es_ur=Object.freeze({__proto__:null,base58btc:index_es_cr,base58flickr:index_es_lr});const index_es_dr=core_dist_index_es_f({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),index_es_pr=core_dist_index_es_f({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),index_es_gr=core_dist_index_es_f({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),index_es_yr=core_dist_index_es_f({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var index_es_Dr=Object.freeze({__proto__:null,base64:index_es_dr,base64pad:index_es_pr,base64url:index_es_gr,base64urlpad:index_es_yr});const index_es_At=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),index_es_mr=index_es_At.reduce((o,e,t)=>(o[t]=e,o),[]),index_es_br=index_es_At.reduce((o,e,t)=>(o[e.codePointAt(0)]=t,o),[]);function index_es_fr(o){return o.reduce((e,t)=>(e+=index_es_mr[t],e),"")}function dist_index_es_r(o){const e=[];for(const t of o){const s=index_es_br[t.codePointAt(0)];if(s===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(s)}return new Uint8Array(e)}const index_es_Er=index_es_re({prefix:"\u{1F680}",name:"base256emoji",encode:index_es_fr,decode:dist_index_es_r});var index_es_vr=Object.freeze({__proto__:null,base256emoji:index_es_Er}),index_es_wr=index_es_zt,index_es_Nt=128,index_es_Ir=127,index_es_Tr=~index_es_Ir,index_es_Cr=Math.pow(2,31);function index_es_zt(o,e,t){e=e||[],t=t||0;for(var s=t;o>=index_es_Cr;)e[t++]=o&255|index_es_Nt,o/=128;for(;o&index_es_Tr;)e[t++]=o&255|index_es_Nt,o>>>=7;return e[t]=o|0,index_es_zt.bytes=t-s+1,e}var index_es_Pr=_e,index_es_Sr=128,index_es_Lt=127;function _e(o,s){var t=0,s=s||0,i=0,r=s,n,a=o.length;do{if(r>=a)throw _e.bytes=0,new RangeError("Could not decode varint");n=o[r++],t+=i<28?(n&index_es_Lt)<=index_es_Sr);return _e.bytes=r-s,t}var index_es_Rr=Math.pow(2,7),index_es_xr=Math.pow(2,14),index_es_Or=Math.pow(2,21),index_es_Ar=Math.pow(2,28),index_es_Nr=Math.pow(2,35),index_es_zr=Math.pow(2,42),index_es_Lr=Math.pow(2,49),index_es_$r=Math.pow(2,56),index_es_kr=Math.pow(2,63),index_es_Mr=function(o){return o(index_es_$t.encode(o,e,t),e),index_es_Mt=o=>index_es_$t.encodingLength(o),index_es_Ee=(o,e)=>{const t=e.byteLength,s=index_es_Mt(o),i=s+index_es_Mt(t),r=new Uint8Array(i+t);return index_es_kt(o,r,0),index_es_kt(t,r,s),r.set(e,i),new index_es_Fr(o,t,e,r)};class index_es_Fr{constructor(e,t,s,i){this.code=e,this.size=t,this.digest=s,this.bytes=i}}const index_es_Ut=({name:o,code:e,encode:t})=>new index_es_Kr(o,e,t);class index_es_Kr{constructor(e,t,s){this.name=e,this.code=t,this.encode=s}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?index_es_Ee(this.code,t):t.then(s=>index_es_Ee(this.code,s))}else throw Error("Unknown type, must be binary type")}}const index_es_Ft=o=>async e=>new Uint8Array(await crypto.subtle.digest(o,e)),index_es_Br=index_es_Ut({name:"sha2-256",code:18,encode:index_es_Ft("SHA-256")}),index_es_Vr=index_es_Ut({name:"sha2-512",code:19,encode:index_es_Ft("SHA-512")});var index_es_jr=Object.freeze({__proto__:null,sha256:index_es_Br,sha512:index_es_Vr});const index_es_Kt=0,index_es_qr="identity",index_es_Bt=index_es_xt,index_es_Gr=o=>index_es_Ee(index_es_Kt,index_es_Bt(o)),index_es_Hr={code:index_es_Kt,name:index_es_qr,encode:index_es_Bt,digest:index_es_Gr};var index_es_Yr=Object.freeze({__proto__:null,identity:index_es_Hr});new TextEncoder,new TextDecoder;const index_es_Vt={...Fs,...Bs,...js,...Gs,...Js,...index_es_nr,...index_es_hr,...index_es_ur,...index_es_Dr,...index_es_vr};({...index_es_jr,...index_es_Yr});function index_es_Jr(o=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(o):new Uint8Array(o)}function index_es_jt(o,e,t,s){return{name:o,prefix:e,encoder:{name:o,prefix:e,encode:t},decoder:{decode:s}}}const index_es_qt=index_es_jt("utf8","u",o=>"u"+new TextDecoder("utf8").decode(o),o=>new TextEncoder().encode(o.substring(1))),index_es_ve=index_es_jt("ascii","a",o=>{let e="a";for(let t=0;t{o=o.substring(1);const e=index_es_Jr(o.length);for(let t=0;t{if(!this.initialized){const s=await this.getKeyChain();typeof s<"u"&&(this.keychain=s),this.initialized=!0}},this.has=s=>(this.isInitialized(),this.keychain.has(s)),this.set=async(s,i)=>{this.isInitialized(),this.keychain.set(s,i),await this.persist()},this.get=s=>{this.isInitialized();const i=this.keychain.get(s);if(typeof i>"u"){const{message:r}=index_es_S("NO_MATCHING_KEY",`${this.name}: ${s}`);throw new Error(r)}return i},this.del=async s=>{this.isInitialized(),this.keychain.delete(s),await this.persist()},this.core=e,this.logger=dist_index_es_E(t,this.name)}get context(){return dist_index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,Tt(e))}async getKeyChain(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Pt(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}}class index_es_Ht{constructor(e,t,s){this.core=e,this.logger=t,this.name=index_es_Xe,this.randomSessionIdentifier=pr(),this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=i=>(this.isInitialized(),this.keychain.has(i)),this.getClientId=async()=>{this.isInitialized();const i=await this.getClientSeed(),r=generateKeyPair(i);return encodeIss(r.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const i=fr();return this.setPrivateKey(i.publicKey,i.privateKey)},this.signJWT=async i=>{this.isInitialized();const r=await this.getClientSeed(),n=generateKeyPair(r),a=this.randomSessionIdentifier,h=index_es_We;return await signJWT(a,i,h,n)},this.generateSharedKey=(i,r,n)=>{this.isInitialized();const a=this.getPrivateKey(i),h=mr(a,r);return this.setSymKey(h,n)},this.setSymKey=async(i,r)=>{this.isInitialized();const n=r||hr(i);return await this.keychain.set(n,i),n},this.deleteKeyPair=async i=>{this.isInitialized(),await this.keychain.del(i)},this.deleteSymKey=async i=>{this.isInitialized(),await this.keychain.del(i)},this.encode=async(i,r,n)=>{this.isInitialized();const a=On(n),h=safeJsonStringify(r);if(Nr(a))return vr(h,n?.encoding);if(Or(a)){const D=a.senderPublicKey,m=a.receiverPublicKey;i=await this.generateSharedKey(D,m)}const c=this.getSymKey(i),{type:l,senderPublicKey:p}=a;return gr({type:l,symKey:c,message:h,senderPublicKey:p,encoding:n?.encoding})},this.decode=async(i,r,n)=>{this.isInitialized();const a=wr(r,n);if(Nr(a)){const h=Er(r,n?.encoding);return safeJsonParse(h)}if(Or(a)){const h=a.receiverPublicKey,c=a.senderPublicKey;i=await this.generateSharedKey(h,c)}try{const h=this.getSymKey(i),c=br({symKey:h,encoded:r,encoding:n?.encoding});return safeJsonParse(c)}catch(h){this.logger.error(`Failed to decode message from topic: '${i}', clientId: '${await this.getClientId()}'`),this.logger.error(h)}},this.getPayloadType=(i,r=ge)=>{const n=Q({encoded:i,encoding:r});return A(n.type)},this.getPayloadSenderPublicKey=(i,r=ge)=>{const n=Q({encoded:i,encoding:r});return n.senderPublicKey?to_string_toString(n.senderPublicKey,index_es_g):void 0},this.core=e,this.logger=dist_index_es_E(t,this.name),this.keychain=s||new index_es_Gt(this.core,this.logger)}get context(){return dist_index_es_y(this.logger)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(index_es_me)}catch{e=pr(),await this.keychain.set(index_es_me,e)}return index_es_Wr(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}}class index_es_Yt extends index_es_a{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name=index_es_et,this.version=tt,this.initialized=!1,this.storagePrefix=core_dist_index_es_x,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const s=await this.getRelayerMessages();typeof s<"u"&&(this.messages=s),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(s){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(s)}finally{this.initialized=!0}}},this.set=async(s,i)=>{this.isInitialized();const r=yr(i);let n=this.messages.get(s);return typeof n>"u"&&(n={}),typeof n[r]<"u"||(n[r]=i,this.messages.set(s,n),await this.persist()),r},this.get=s=>{this.isInitialized();let i=this.messages.get(s);return typeof i>"u"&&(i={}),i},this.has=(s,i)=>{this.isInitialized();const r=this.get(s),n=yr(i);return typeof r[n]<"u"},this.del=async s=>{this.isInitialized(),this.messages.delete(s),await this.persist()},this.logger=dist_index_es_E(e,this.name),this.core=t}get context(){return dist_index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,Tt(e))}async getRelayerMessages(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Pt(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}}class index_es_Zr extends types_dist_index_es_g{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new external_events_.EventEmitter,this.name=st,this.queue=new Map,this.publishTimeout=(0,cjs.toMiliseconds)(cjs.ONE_MINUTE),this.failedPublishTimeout=(0,cjs.toMiliseconds)(cjs.ONE_SECOND),this.needsTransportRestart=!1,this.publish=async(s,i,r)=>{var n;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:s,message:i,opts:r}});const a=r?.ttl||it,h=Ir(r),c=r?.prompt||!1,l=r?.tag||0,p=r?.id||getBigIntRpcId().toString(),D={topic:s,message:i,opts:{ttl:a,relay:h,prompt:c,tag:l,id:p,attestation:r?.attestation}},m=`Failed to publish payload, please try again. id:${p} tag:${l}`,u=Date.now();let g,_=1;try{for(;g===void 0;){if(Date.now()-u>this.publishTimeout)throw new Error(m);this.logger.trace({id:p,attempts:_},`publisher.publish - attempt ${_}`),g=await await kt(this.rpcPublish(s,i,a,h,c,l,p,r?.attestation).catch(y=>this.logger.warn(y)),this.publishTimeout,m),_++,g||await new Promise(y=>setTimeout(y,this.failedPublishTimeout))}this.relayer.events.emit(dist_index_es_v.publish,D),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{id:p,topic:s,message:i,opts:r}})}catch(y){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(y),(n=r?.internal)!=null&&n.throwOnFailedPublish)throw y;this.queue.set(p,D)}},this.on=(s,i)=>{this.events.on(s,i)},this.once=(s,i)=>{this.events.once(s,i)},this.off=(s,i)=>{this.events.off(s,i)},this.removeListener=(s,i)=>{this.events.removeListener(s,i)},this.relayer=e,this.logger=dist_index_es_E(t,this.name),this.registerEventListeners()}get context(){return dist_index_es_y(this.logger)}rpcPublish(e,t,s,i,r,n,a,h){var c,l,p,D;const m={method:jr(i.protocol).publish,params:{topic:e,message:t,ttl:s,prompt:r,tag:n,attestation:h},id:a};return I((c=m.params)==null?void 0:c.prompt)&&((l=m.params)==null||delete l.prompt),I((p=m.params)==null?void 0:p.tag)&&((D=m.params)==null||delete D.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:m}),this.relayer.request(m)}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{const{topic:t,message:s,opts:i}=e;await this.publish(t,s,i)})}registerEventListeners(){this.relayer.core.heartbeat.on(r.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(dist_index_es_v.connection_stalled);return}this.checkQueue()}),this.relayer.on(dist_index_es_v.message_ack,e=>{this.removeRequestFromQueue(e.id.toString())})}}class index_es_Qr{constructor(){this.map=new Map,this.set=(e,t)=>{const s=this.get(e);this.exists(e,t)||this.map.set(e,[...s,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u"){this.map.delete(e);return}if(!this.map.has(e))return;const s=this.get(e);if(!this.exists(e,t))return;const i=s.filter(r=>r!==t);if(!i.length){this.map.delete(e);return}this.map.set(e,i)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var index_es_en=Object.defineProperty,index_es_tn=Object.defineProperties,index_es_sn=Object.getOwnPropertyDescriptors,index_es_Jt=Object.getOwnPropertySymbols,index_es_rn=Object.prototype.hasOwnProperty,index_es_nn=Object.prototype.propertyIsEnumerable,index_es_Xt=(o,e,t)=>e in o?index_es_en(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,index_es_W=(o,e)=>{for(var t in e||(e={}))index_es_rn.call(e,t)&&index_es_Xt(o,t,e[t]);if(index_es_Jt)for(var t of index_es_Jt(e))index_es_nn.call(e,t)&&index_es_Xt(o,t,e[t]);return o},index_es_we=(o,e)=>index_es_tn(o,index_es_sn(e));class index_es_Wt extends dist_index_es_d{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new index_es_Qr,this.events=new external_events_.EventEmitter,this.name=ut,this.version=dt,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=core_dist_index_es_x,this.subscribeTimeout=(0,cjs.toMiliseconds)(cjs.ONE_MINUTE),this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.pendingBatchMessages=[],this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId(),await this.restore()),this.initialized=!0},this.subscribe=async(s,i)=>{this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:s,opts:i}});try{const r=Ir(i),n={topic:s,relay:r,transportType:i?.transportType};this.pending.set(s,n);const a=await this.rpcSubscribe(s,r,i);return typeof a=="string"&&(this.onSubscribe(a,n),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:s,opts:i}})),a}catch(r){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(r),r}},this.unsubscribe=async(s,i)=>{await this.restartToComplete(),this.isInitialized(),typeof i?.id<"u"?await this.unsubscribeById(s,i.id,i):await this.unsubscribeByTopic(s,i)},this.isSubscribed=async s=>{if(this.topics.includes(s))return!0;const i=`${this.pendingSubscriptionWatchLabel}_${s}`;return await new Promise((r,n)=>{const a=new cjs.Watch;a.start(i);const h=setInterval(()=>{!this.pending.has(s)&&this.topics.includes(s)&&(clearInterval(h),a.stop(i),r(!0)),a.elapsed(i)>=index_es_pt&&(clearInterval(h),a.stop(i),n(new Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1)},this.on=(s,i)=>{this.events.on(s,i)},this.once=(s,i)=>{this.events.once(s,i)},this.off=(s,i)=>{this.events.off(s,i)},this.removeListener=(s,i)=>{this.events.removeListener(s,i)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=dist_index_es_E(t,this.name),this.clientId=""}get context(){return dist_index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let s=!1;try{s=this.getSubscription(e).topic===t}catch{}return s}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){const s=this.topicMap.get(e);await Promise.all(s.map(async i=>await this.unsubscribeById(e,i,t)))}async unsubscribeById(e,t,s){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:s}});try{const i=Ir(s);await this.rpcUnsubscribe(e,t,i);const r=U("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,r),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:s}})}catch(i){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(i),i}}async rpcSubscribe(e,t,s){var i;s?.transportType===dist_index_es_M.relay&&await this.restartToComplete();const r={method:jr(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});const n=(i=s?.internal)==null?void 0:i.throwOnFailedPublish;try{const a=yr(e+this.clientId);if(s?.transportType===dist_index_es_M.link_mode)return setTimeout(()=>{(this.relayer.connected||this.relayer.connecting)&&this.relayer.request(r).catch(c=>this.logger.warn(c))},(0,cjs.toMiliseconds)(cjs.ONE_SECOND)),a;const h=await kt(this.relayer.request(r).catch(c=>this.logger.warn(c)),this.subscribeTimeout,`Subscribing to ${e} failed, please try again`);if(!h&&n)throw new Error(`Subscribing to ${e} failed, please try again`);return h?a:null}catch(a){if(this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(dist_index_es_v.connection_stalled),n)throw a}return null}async rpcBatchSubscribe(e){if(!e.length)return;const t=e[0].relay,s={method:jr(t.protocol).batchSubscribe,params:{topics:e.map(i=>i.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:s});try{return await await kt(this.relayer.request(s).catch(i=>this.logger.warn(i)),this.subscribeTimeout)}catch{this.relayer.events.emit(dist_index_es_v.connection_stalled)}}async rpcBatchFetchMessages(e){if(!e.length)return;const t=e[0].relay,s={method:jr(t.protocol).batchFetchMessages,params:{topics:e.map(r=>r.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:s});let i;try{i=await await kt(this.relayer.request(s).catch(r=>this.logger.warn(r)),this.subscribeTimeout)}catch{this.relayer.events.emit(dist_index_es_v.connection_stalled)}return i}rpcUnsubscribe(e,t,s){const i={method:jr(s.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.request(i)}onSubscribe(e,t){this.setSubscription(e,index_es_we(index_es_W({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach(t=>{this.setSubscription(t.id,index_es_W({},t)),this.pending.delete(t.topic)})}async onUnsubscribe(e,t,s){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,s),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t)}addSubscription(e,t){this.subscriptions.set(e,index_es_W({},t)),this.topicMap.set(t.topic,e),this.events.emit(core_dist_index_es_O.created,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});const t=this.subscriptions.get(e);if(!t){const{message:s}=index_es_S("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(s)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});const s=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(s.topic,e),this.events.emit(core_dist_index_es_O.deleted,index_es_we(index_es_W({},s),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(core_dist_index_es_O.sync)}async reset(){if(this.cached.length){const e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t"u"||!e.length)return;if(this.subscriptions.size){const{message:t}=index_es_S("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;const t=await this.rpcBatchSubscribe(e);L(t)&&this.onBatchSubscribe(t.map((s,i)=>index_es_we(index_es_W({},e[i]),{id:s})))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);const t=await this.rpcBatchFetchMessages(e);t&&t.messages&&(this.pendingBatchMessages=this.pendingBatchMessages.concat(t.messages))}async onConnect(){await this.restart(),this.onEnable()}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||!this.relayer.connected)return;const e=[];this.pending.forEach(t=>{e.push(t)}),await this.batchSubscribe(e),this.pendingBatchMessages.length&&(await this.relayer.handleBatchMessageEvents(this.pendingBatchMessages),this.pendingBatchMessages=[])}registerEventListeners(){this.relayer.core.heartbeat.on(r.pulse,async()=>{await this.checkPending()}),this.events.on(core_dist_index_es_O.created,async e=>{const t=core_dist_index_es_O.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()}),this.events.on(core_dist_index_es_O.deleted,async e=>{const t=core_dist_index_es_O.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}async restartToComplete(){!this.relayer.connected&&!this.relayer.connecting&&await this.relayer.transportOpen(),this.restartInProgress&&await new Promise(e=>{const t=setInterval(()=>{this.restartInProgress||(clearInterval(t),e())},this.pollingInterval)})}}var index_es_on=Object.defineProperty,index_es_Zt=Object.getOwnPropertySymbols,index_es_an=Object.prototype.hasOwnProperty,index_es_hn=Object.prototype.propertyIsEnumerable,index_es_Qt=(o,e,t)=>e in o?index_es_on(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,ei=(o,e)=>{for(var t in e||(e={}))index_es_an.call(e,t)&&index_es_Qt(o,t,e[t]);if(index_es_Zt)for(var t of index_es_Zt(e))index_es_hn.call(e,t)&&index_es_Qt(o,t,e[t]);return o};class ti extends index_es_u{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new external_events_.EventEmitter,this.name=ot,this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","stalled","interrupted"],this.hasExperiencedNetworkDisruption=!1,this.requestsInFlight=new Map,this.heartBeatTimeout=(0,cjs.toMiliseconds)(cjs.THIRTY_SECONDS+cjs.ONE_SECOND),this.request=async t=>{var s,i;this.logger.debug("Publishing Request Payload");const r=t.id||getBigIntRpcId().toString();await this.toEstablishConnection();try{const n=this.provider.request(t);this.requestsInFlight.set(r,{promise:n,request:t}),this.logger.trace({id:r,method:t.method,topic:(s=t.params)==null?void 0:s.topic},"relayer.request - attempt to publish...");const a=await new Promise(async(h,c)=>{const l=()=>{c(new Error(`relayer.request - publish interrupted, id: ${r}`))};this.provider.on(core_dist_index_es_I.disconnect,l);const p=await n;this.provider.off(core_dist_index_es_I.disconnect,l),h(p)});return this.logger.trace({id:r,method:t.method,topic:(i=t.params)==null?void 0:i.topic},"relayer.request - published"),a}catch(n){throw this.logger.debug(`Failed to Publish Request: ${r}`),n}finally{this.requestsInFlight.delete(r)}},this.resetPingTimeout=()=>{if(ce())try{clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{var t,s,i;(i=(s=(t=this.provider)==null?void 0:t.connection)==null?void 0:s.socket)==null||i.terminate()},this.heartBeatTimeout)}catch(t){this.logger.warn(t)}},this.onPayloadHandler=t=>{this.onProviderPayload(t),this.resetPingTimeout()},this.onConnectHandler=()=>{this.logger.trace("relayer connected"),this.startPingTimeout(),this.events.emit(dist_index_es_v.connect)},this.onDisconnectHandler=()=>{this.logger.trace("relayer disconnected"),this.onProviderDisconnect()},this.onProviderErrorHandler=t=>{this.logger.error(t),this.events.emit(dist_index_es_v.error,t),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(core_dist_index_es_I.payload,this.onPayloadHandler),this.provider.on(core_dist_index_es_I.connect,this.onConnectHandler),this.provider.on(core_dist_index_es_I.disconnect,this.onDisconnectHandler),this.provider.on(core_dist_index_es_I.error,this.onProviderErrorHandler)},this.core=e.core,this.logger=typeof e.logger<"u"&&typeof e.logger!="string"?dist_index_es_E(e.logger,this.name):pino_default()(logger_dist_index_es_k({level:e.logger||nt})),this.messages=new index_es_Yt(this.logger,e.core),this.subscriber=new index_es_Wt(this,this.logger),this.publisher=new index_es_Zr(this,this.logger),this.relayUrl=e?.relayUrl||index_es_be,this.projectId=e.projectId,this.bundleId=Ot(),this.provider={}}async init(){if(this.logger.trace("Initialized"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]),this.initialized=!0,this.subscriber.cached.length>0)try{await this.transportOpen()}catch(e){this.logger.warn(e)}}get context(){return dist_index_es_y(this.logger)}get connected(){var e,t,s;return((s=(t=(e=this.provider)==null?void 0:e.connection)==null?void 0:t.socket)==null?void 0:s.readyState)===1}get connecting(){var e,t,s;return((s=(t=(e=this.provider)==null?void 0:e.connection)==null?void 0:t.socket)==null?void 0:s.readyState)===0}async publish(e,t,s){this.isInitialized(),await this.publisher.publish(e,t,s),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now(),transportType:dist_index_es_M.relay})}async subscribe(e,t){var s,i,r;this.isInitialized(),t?.transportType==="relay"&&await this.toEstablishConnection();const n=typeof((s=t?.internal)==null?void 0:s.throwOnFailedPublish)>"u"?!0:(i=t?.internal)==null?void 0:i.throwOnFailedPublish;let a=((r=this.subscriber.topicMap.get(e))==null?void 0:r[0])||"",h;const c=l=>{l.topic===e&&(this.subscriber.off(core_dist_index_es_O.created,c),h())};return await Promise.all([new Promise(l=>{h=l,this.subscriber.on(core_dist_index_es_O.created,c)}),new Promise(async(l,p)=>{a=await this.subscriber.subscribe(e,ei({internal:{throwOnFailedPublish:n}},t)).catch(D=>{n&&p(D)})||a,l()})]),a}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportDisconnect(){if(!this.hasExperiencedNetworkDisruption&&this.connected&&this.requestsInFlight.size>0)try{await Promise.all(Array.from(this.requestsInFlight.values()).map(e=>e.promise))}catch(e){this.logger.warn(e)}this.provider.disconnect&&(this.hasExperiencedNetworkDisruption||this.connected)?await kt(this.provider.disconnect(),2e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),await this.createProvider(),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;try{await new Promise(async(t,s)=>{const i=()=>{this.provider.off(core_dist_index_es_I.disconnect,i),s(new Error("Connection interrupted while trying to subscribe"))};this.provider.on(core_dist_index_es_I.disconnect,i),await kt(this.provider.connect(),(0,cjs.toMiliseconds)(cjs.ONE_MINUTE),`Socket stalled when trying to connect to ${this.relayUrl}`).catch(r=>{s(r)}).finally(()=>{clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0}),this.subscriber.start().catch(r=>{this.logger.error(r),this.onDisconnectHandler()}),this.hasExperiencedNetworkDisruption=!1,t()})}catch(t){this.logger.error(t);const s=t;if(this.hasExperiencedNetworkDisruption=!0,!this.isConnectionStalled(s.message))throw t}finally{this.connectionAttemptInProgress=!1}}async restartTransport(e){this.connectionAttemptInProgress||(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await mo())throw new Error("No internet connection detected. Please restart your network and try again.")}async handleBatchMessageEvents(e){if(e?.length===0){this.logger.trace("Batch message events is empty. Ignoring...");return}const t=e.sort((s,i)=>s.publishedAt-i.publishedAt);this.logger.trace(`Batch of ${t.length} message events sorted`);for(const s of t)try{await this.onMessageEvent(s)}catch(i){this.logger.warn(i)}this.logger.trace(`Batch of ${t.length} message events processed`)}async onLinkMessageEvent(e,t){const{topic:s}=e;if(!t.sessionExists){const i=Mt(cjs.FIVE_MINUTES),r={topic:s,expiry:i,relay:{protocol:"irn"},active:!1};await this.core.pairing.pairings.set(s,r)}this.events.emit(dist_index_es_v.message,e),await this.recordMessageEvent(e)}startPingTimeout(){var e,t,s,i,r;if(ce())try{(t=(e=this.provider)==null?void 0:e.connection)!=null&&t.socket&&((r=(i=(s=this.provider)==null?void 0:s.connection)==null?void 0:i.socket)==null||r.once("ping",()=>{this.resetPingTimeout()})),this.resetPingTimeout()}catch(n){this.logger.warn(n)}}isConnectionStalled(e){return this.staleConnectionErrors.some(t=>e.includes(t))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new dist_index_es_o(new dist_index_es_f($t({sdkVersion:index_es_se,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(e){const{topic:t,message:s}=e;await this.messages.set(t,s)}async shouldIgnoreMessageEvent(e){const{topic:t,message:s}=e;if(!s||s.length===0)return this.logger.debug(`Ignoring invalid/empty message: ${s}`),!0;if(!await this.subscriber.isSubscribed(t))return this.logger.debug(`Ignoring message for non-subscribed topic ${t}`),!0;const i=this.messages.has(t,s);return i&&this.logger.debug(`Ignoring duplicate message: ${s}`),i}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),isJsonRpcRequest(e)){if(!e.method.endsWith(at))return;const t=e.params,{topic:s,message:i,publishedAt:r,attestation:n}=t.data,a={topic:s,message:i,publishedAt:r,transportType:dist_index_es_M.relay,attestation:n};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(ei({type:"event",event:t.id},a)),this.events.emit(t.id,a),await this.acknowledgePayload(e),await this.onMessageEvent(a)}else isJsonRpcResponse(e)&&this.events.emit(dist_index_es_v.message_ack,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(dist_index_es_v.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){const t=formatJsonRpcResult(e.id,!0);await this.provider.connection.send(t)}unregisterProviderListeners(){this.provider.off(core_dist_index_es_I.payload,this.onPayloadHandler),this.provider.off(core_dist_index_es_I.connect,this.onConnectHandler),this.provider.off(core_dist_index_es_I.disconnect,this.onDisconnectHandler),this.provider.off(core_dist_index_es_I.error,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await mo();ho(async t=>{e!==t&&(e=t,t?await this.restartTransport().catch(s=>this.logger.error(s)):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))})}async onProviderDisconnect(){await this.subscriber.stop(),this.requestsInFlight.clear(),clearTimeout(this.pingTimeout),this.events.emit(dist_index_es_v.disconnect),this.connectionAttemptInProgress=!1,!this.transportExplicitlyClosed&&(this.reconnectTimeout||(this.reconnectTimeout=setTimeout(async()=>{await this.transportOpen().catch(e=>this.logger.error(e))},(0,cjs.toMiliseconds)(index_es_ht))))}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),!this.connected&&(this.connectionAttemptInProgress&&await new Promise(e=>{const t=setInterval(()=>{this.connected&&(clearInterval(t),e())},this.connectionStatusPollingInterval)}),await this.transportOpen())}}var index_es_cn=Object.defineProperty,ii=Object.getOwnPropertySymbols,index_es_ln=Object.prototype.hasOwnProperty,index_es_un=Object.prototype.propertyIsEnumerable,si=(o,e,t)=>e in o?index_es_cn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,ri=(o,e)=>{for(var t in e||(e={}))index_es_ln.call(e,t)&&si(o,t,e[t]);if(ii)for(var t of ii(e))index_es_un.call(e,t)&&si(o,t,e[t]);return o};class ni extends dist_index_es_p{constructor(e,t,s,i=core_dist_index_es_x,r=void 0){super(e,t,s,i),this.core=e,this.logger=t,this.name=s,this.map=new Map,this.version=ct,this.cached=[],this.initialized=!1,this.storagePrefix=core_dist_index_es_x,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>{this.getKey&&n!==null&&!I(n)?this.map.set(this.getKey(n),n):Yr(n)?this.map.set(n.id,n):Qr(n)&&this.map.set(n.topic,n)}),this.cached=[],this.initialized=!0)},this.set=async(n,a)=>{this.isInitialized(),this.map.has(n)?await this.update(n,a):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:n,value:a}),this.map.set(n,a),await this.persist())},this.get=n=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:n}),this.getData(n)),this.getAll=n=>(this.isInitialized(),n?this.values.filter(a=>Object.keys(n).every(h=>lodash_isequal_default()(a[h],n[h]))):this.values),this.update=async(n,a)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:n,update:a});const h=ri(ri({},this.getData(n)),a);this.map.set(n,h),await this.persist()},this.delete=async(n,a)=>{this.isInitialized(),this.map.has(n)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:n,reason:a}),this.map.delete(n),this.addToRecentlyDeleted(n),await this.persist())},this.logger=dist_index_es_E(t,this.name),this.storagePrefix=i,this.getKey=r}get context(){return dist_index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){const t=this.map.get(e);if(!t){if(this.recentlyDeleted.includes(e)){const{message:i}=index_es_S("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(i),new Error(i)}const{message:s}=index_es_S("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(s),new Error(s)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{const e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){const{message:t}=index_es_S("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}}class oi{constructor(e,t){this.core=e,this.logger=t,this.name=index_es_gt,this.version=index_es_yt,this.events=new (external_events_default()),this.initialized=!1,this.storagePrefix=core_dist_index_es_x,this.ignoredPayloadTypes=[D],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:s})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...s])]},this.create=async s=>{this.isInitialized();const i=pr(),r=await this.core.crypto.setSymKey(i),n=Mt(cjs.FIVE_MINUTES),a={protocol:rt},h={topic:r,expiry:n,relay:a,active:!1,methods:s?.methods},c=Dr({protocol:this.core.protocol,version:this.core.version,topic:r,symKey:i,relay:a,expiryTimestamp:n,methods:s?.methods});return this.events.emit(index_es_V.create,h),this.core.expirer.set(r,n),await this.pairings.set(r,h),await this.core.relayer.subscribe(r,{transportType:s?.transportType}),{topic:r,uri:c}},this.pair=async s=>{this.isInitialized();const i=this.core.eventClient.createEvent({properties:{topic:s?.uri,trace:[core_dist_index_es_z.pairing_started]}});this.isValidPair(s,i);const{topic:r,symKey:n,relay:a,expiryTimestamp:h,methods:c}=kr(s.uri);i.props.properties.topic=r,i.addTrace(core_dist_index_es_z.pairing_uri_validation_success),i.addTrace(core_dist_index_es_z.pairing_uri_not_expired);let l;if(this.pairings.keys.includes(r)){if(l=this.pairings.get(r),i.addTrace(core_dist_index_es_z.existing_pairing),l.active)throw i.setError(index_es_$.active_pairing_already_exists),new Error(`Pairing already exists: ${r}. Please try again with a new connection URI.`);i.addTrace(core_dist_index_es_z.pairing_not_expired)}const p=h||Mt(cjs.FIVE_MINUTES),D={topic:r,relay:a,expiry:p,active:!1,methods:c};this.core.expirer.set(r,p),await this.pairings.set(r,D),i.addTrace(core_dist_index_es_z.store_new_pairing),s.activatePairing&&await this.activate({topic:r}),this.events.emit(index_es_V.create,D),i.addTrace(core_dist_index_es_z.emit_inactive_pairing),this.core.crypto.keychain.has(r)||await this.core.crypto.setSymKey(n,r),i.addTrace(core_dist_index_es_z.subscribing_pairing_topic);try{await this.core.relayer.confirmOnlineStateOrThrow()}catch{i.setError(index_es_$.no_internet_connection)}try{await this.core.relayer.subscribe(r,{relay:a})}catch(m){throw i.setError(index_es_$.subscribe_pairing_topic_failure),m}return i.addTrace(core_dist_index_es_z.subscribe_pairing_topic_success),D},this.activate=async({topic:s})=>{this.isInitialized();const i=Mt(cjs.THIRTY_DAYS);this.core.expirer.set(s,i),await this.pairings.update(s,{active:!0,expiry:i})},this.ping=async s=>{this.isInitialized(),await this.isValidPing(s);const{topic:i}=s;if(this.pairings.keys.includes(i)){const r=await this.sendRequest(i,"wc_pairingPing",{}),{done:n,resolve:a,reject:h}=_t();this.events.once(Lt("pairing_ping",r),({error:c})=>{c?h(c):a()}),await n()}},this.updateExpiry=async({topic:s,expiry:i})=>{this.isInitialized(),await this.pairings.update(s,{expiry:i})},this.updateMetadata=async({topic:s,metadata:i})=>{this.isInitialized(),await this.pairings.update(s,{peerMetadata:i})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async s=>{this.isInitialized(),await this.isValidDisconnect(s);const{topic:i}=s;this.pairings.keys.includes(i)&&(await this.sendRequest(i,"wc_pairingDelete",U("USER_DISCONNECTED")),await this.deletePairing(i))},this.formatUriFromPairing=s=>{this.isInitialized();const{topic:i,relay:r,expiry:n,methods:a}=s,h=this.core.crypto.keychain.get(i);return Dr({protocol:this.core.protocol,version:this.core.version,topic:i,symKey:h,relay:r,expiryTimestamp:n,methods:a})},this.sendRequest=async(s,i,r)=>{const n=formatJsonRpcRequest(i,r),a=await this.core.crypto.encode(s,n),h=index_es_B[i].req;return this.core.history.set(s,n),this.core.relayer.publish(s,a,h),n.id},this.sendResult=async(s,i,r)=>{const n=formatJsonRpcResult(s,r),a=await this.core.crypto.encode(i,n),h=await this.core.history.get(i,s),c=index_es_B[h.request.method].res;await this.core.relayer.publish(i,a,c),await this.core.history.resolve(n)},this.sendError=async(s,i,r)=>{const n=formatJsonRpcError(s,r),a=await this.core.crypto.encode(i,n),h=await this.core.history.get(i,s),c=index_es_B[h.request.method]?index_es_B[h.request.method].res:index_es_B.unregistered_method.res;await this.core.relayer.publish(i,a,c),await this.core.history.resolve(n)},this.deletePairing=async(s,i)=>{await this.core.relayer.unsubscribe(s),await Promise.all([this.pairings.delete(s,U("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(s),i?Promise.resolve():this.core.expirer.del(s)])},this.cleanup=async()=>{const s=this.pairings.getAll().filter(i=>Kt(i.expiry));await Promise.all(s.map(i=>this.deletePairing(i.topic)))},this.onRelayEventRequest=s=>{const{topic:i,payload:r}=s;switch(r.method){case"wc_pairingPing":return this.onPairingPingRequest(i,r);case"wc_pairingDelete":return this.onPairingDeleteRequest(i,r);default:return this.onUnknownRpcMethodRequest(i,r)}},this.onRelayEventResponse=async s=>{const{topic:i,payload:r}=s,n=(await this.core.history.get(i,r.id)).request.method;switch(n){case"wc_pairingPing":return this.onPairingPingResponse(i,r);default:return this.onUnknownRpcMethodResponse(n)}},this.onPairingPingRequest=async(s,i)=>{const{id:r}=i;try{this.isValidPing({topic:s}),await this.sendResult(r,s,!0),this.events.emit(index_es_V.ping,{id:r,topic:s})}catch(n){await this.sendError(r,s,n),this.logger.error(n)}},this.onPairingPingResponse=(s,i)=>{const{id:r}=i;setTimeout(()=>{isJsonRpcResult(i)?this.events.emit(Lt("pairing_ping",r),{}):isJsonRpcError(i)&&this.events.emit(Lt("pairing_ping",r),{error:i.error})},500)},this.onPairingDeleteRequest=async(s,i)=>{const{id:r}=i;try{this.isValidDisconnect({topic:s}),await this.deletePairing(s),this.events.emit(index_es_V.delete,{id:r,topic:s})}catch(n){await this.sendError(r,s,n),this.logger.error(n)}},this.onUnknownRpcMethodRequest=async(s,i)=>{const{id:r,method:n}=i;try{if(this.registeredMethods.includes(n))return;const a=U("WC_METHOD_UNSUPPORTED",n);await this.sendError(r,s,a),this.logger.error(a)}catch(a){await this.sendError(r,s,a),this.logger.error(a)}},this.onUnknownRpcMethodResponse=s=>{this.registeredMethods.includes(s)||this.logger.error(U("WC_METHOD_UNSUPPORTED",s))},this.isValidPair=(s,i)=>{var r;if(!to(s)){const{message:a}=index_es_S("MISSING_OR_INVALID",`pair() params: ${s}`);throw i.setError(index_es_$.malformed_pairing_uri),new Error(a)}if(!Gr(s.uri)){const{message:a}=index_es_S("MISSING_OR_INVALID",`pair() uri: ${s.uri}`);throw i.setError(index_es_$.malformed_pairing_uri),new Error(a)}const n=kr(s?.uri);if(!((r=n?.relay)!=null&&r.protocol)){const{message:a}=index_es_S("MISSING_OR_INVALID","pair() uri#relay-protocol");throw i.setError(index_es_$.malformed_pairing_uri),new Error(a)}if(!(n!=null&&n.symKey)){const{message:a}=index_es_S("MISSING_OR_INVALID","pair() uri#symKey");throw i.setError(index_es_$.malformed_pairing_uri),new Error(a)}if(n!=null&&n.expiryTimestamp&&(0,cjs.toMiliseconds)(n?.expiryTimestamp){if(!to(s)){const{message:r}=index_es_S("MISSING_OR_INVALID",`ping() params: ${s}`);throw new Error(r)}const{topic:i}=s;await this.isValidPairingTopic(i)},this.isValidDisconnect=async s=>{if(!to(s)){const{message:r}=index_es_S("MISSING_OR_INVALID",`disconnect() params: ${s}`);throw new Error(r)}const{topic:i}=s;await this.isValidPairingTopic(i)},this.isValidPairingTopic=async s=>{if(!index_es_b(s,!1)){const{message:i}=index_es_S("MISSING_OR_INVALID",`pairing topic should be a string: ${s}`);throw new Error(i)}if(!this.pairings.keys.includes(s)){const{message:i}=index_es_S("NO_MATCHING_KEY",`pairing topic doesn't exist: ${s}`);throw new Error(i)}if(Kt(this.pairings.get(s).expiry)){await this.deletePairing(s);const{message:i}=index_es_S("EXPIRED",`pairing topic: ${s}`);throw new Error(i)}},this.core=e,this.logger=dist_index_es_E(t,this.name),this.pairings=new ni(this.core,this.logger,this.name,this.storagePrefix)}get context(){return dist_index_es_y(this.logger)}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(dist_index_es_v.message,async e=>{const{topic:t,message:s,transportType:i}=e;if(!this.pairings.keys.includes(t)||i===dist_index_es_M.link_mode||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(s)))return;const r=await this.core.crypto.decode(t,s);try{isJsonRpcRequest(r)?(this.core.history.set(t,r),this.onRelayEventRequest({topic:t,payload:r})):isJsonRpcResponse(r)&&(await this.core.history.resolve(r),await this.onRelayEventResponse({topic:t,payload:r}),this.core.history.delete(t,r.id))}catch(n){this.logger.error(n)}})}registerExpirerEvents(){this.core.expirer.on(core_dist_index_es_S.expired,async e=>{const{topic:t}=Vt(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit(index_es_V.expire,{topic:t}))})}}class ai extends dist_index_es_h{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new external_events_.EventEmitter,this.name=index_es_Dt,this.version=index_es_mt,this.cached=[],this.initialized=!1,this.storagePrefix=core_dist_index_es_x,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>this.records.set(s.id,s)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(s,i,r)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:s,request:i,chainId:r}),this.records.has(i.id))return;const n={id:i.id,topic:s,request:{method:i.method,params:i.params||null},chainId:r,expiry:Mt(cjs.THIRTY_DAYS)};this.records.set(n.id,n),this.persist(),this.events.emit(dist_index_es_P.created,n)},this.resolve=async s=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:s}),!this.records.has(s.id))return;const i=await this.getRecord(s.id);typeof i.response>"u"&&(i.response=isJsonRpcError(s)?{error:s.error}:{result:s.result},this.records.set(i.id,i),this.persist(),this.events.emit(dist_index_es_P.updated,i))},this.get=async(s,i)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:s,id:i}),await this.getRecord(i)),this.delete=(s,i)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:i}),this.values.forEach(r=>{if(r.topic===s){if(typeof i<"u"&&r.id!==i)return;this.records.delete(r.id),this.events.emit(dist_index_es_P.deleted,r)}}),this.persist()},this.exists=async(s,i)=>(this.isInitialized(),this.records.has(i)?(await this.getRecord(i)).topic===s:!1),this.on=(s,i)=>{this.events.on(s,i)},this.once=(s,i)=>{this.events.once(s,i)},this.off=(s,i)=>{this.events.off(s,i)},this.removeListener=(s,i)=>{this.events.removeListener(s,i)},this.logger=dist_index_es_E(t,this.name)}get context(){return dist_index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const e=[];return this.values.forEach(t=>{if(typeof t.response<"u")return;const s={topic:t.topic,request:formatJsonRpcRequest(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(s)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();const t=this.records.get(e);if(!t){const{message:s}=index_es_S("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(s)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(dist_index_es_P.sync)}async restore(){try{const e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){const{message:t}=index_es_S("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(dist_index_es_P.created,e=>{const t=dist_index_es_P.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.events.on(dist_index_es_P.updated,e=>{const t=dist_index_es_P.updated;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.events.on(dist_index_es_P.deleted,e=>{const t=dist_index_es_P.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.core.heartbeat.on(r.pulse,()=>{this.cleanup()})}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach(t=>{(0,cjs.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${t.id}`),this.records.delete(t.id),this.events.emit(dist_index_es_P.deleted,t,!1),e=!0)}),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}}class hi extends dist_index_es_x{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new external_events_.EventEmitter,this.name=index_es_bt,this.version=index_es_ft,this.cached=[],this.initialized=!1,this.storagePrefix=core_dist_index_es_x,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>this.expirations.set(s.target,s)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=s=>{try{const i=this.formatTarget(s);return typeof this.getExpiration(i)<"u"}catch{return!1}},this.set=(s,i)=>{this.isInitialized();const r=this.formatTarget(s),n={target:r,expiry:i};this.expirations.set(r,n),this.checkExpiry(r,n),this.events.emit(core_dist_index_es_S.created,{target:r,expiration:n})},this.get=s=>{this.isInitialized();const i=this.formatTarget(s);return this.getExpiration(i)},this.del=s=>{if(this.isInitialized(),this.has(s)){const i=this.formatTarget(s),r=this.getExpiration(i);this.expirations.delete(i),this.events.emit(core_dist_index_es_S.deleted,{target:i,expiration:r})}},this.on=(s,i)=>{this.events.on(s,i)},this.once=(s,i)=>{this.events.once(s,i)},this.off=(s,i)=>{this.events.off(s,i)},this.removeListener=(s,i)=>{this.events.removeListener(s,i)},this.logger=dist_index_es_E(t,this.name)}get context(){return dist_index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if(typeof e=="string")return Dt(e);if(typeof e=="number")return xt(e);const{message:t}=index_es_S("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw new Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(core_dist_index_es_S.sync)}async restore(){try{const e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){const{message:t}=index_es_S("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){const t=this.expirations.get(e);if(!t){const{message:s}=index_es_S("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.warn(s),new Error(s)}return t}checkExpiry(e,t){const{expiry:s}=t;(0,cjs.toMiliseconds)(s)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(core_dist_index_es_S.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,t)=>this.checkExpiry(t,e))}registerEventListeners(){this.core.heartbeat.on(r.pulse,()=>this.checkExpirations()),this.events.on(core_dist_index_es_S.created,e=>{const t=core_dist_index_es_S.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(core_dist_index_es_S.expired,e=>{const t=core_dist_index_es_S.expired;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(core_dist_index_es_S.deleted,e=>{const t=core_dist_index_es_S.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}}class ci extends types_dist_index_es_y{constructor(e,t,s){super(e,t,s),this.core=e,this.logger=t,this.store=s,this.name=index_es_t,this.verifyUrlV3=index_es_vt,this.storagePrefix=core_dist_index_es_x,this.version=index_es_De,this.init=async()=>{var i;this.isDevEnv||(this.publicKey=await this.store.getItem(this.storeKey),this.publicKey&&(0,cjs.toMiliseconds)((i=this.publicKey)==null?void 0:i.expiresAt){if(!V()||this.isDevEnv)return;const r=window.location.origin,{id:n,decryptedId:a}=i,h=`${this.verifyUrlV3}/attestation?projectId=${this.core.projectId}&origin=${r}&id=${n}&decryptedId=${a}`;try{const c=(0,dist_cjs.getDocument)(),l=this.startAbortTimer(cjs.ONE_SECOND*5),p=await new Promise((D,m)=>{const u=()=>{window.removeEventListener("message",_),c.body.removeChild(g),m("attestation aborted")};this.abortController.signal.addEventListener("abort",u);const g=c.createElement("iframe");g.src=h,g.style.display="none",g.addEventListener("error",u,{signal:this.abortController.signal});const _=y=>{if(y.data&&typeof y.data=="string")try{const b=JSON.parse(y.data);if(b.type==="verify_attestation"){if(utils_decodeJWT(b.attestation).payload.id!==n)return;clearInterval(l),c.body.removeChild(g),this.abortController.signal.removeEventListener("abort",u),window.removeEventListener("message",_),D(b.attestation===null?"":b.attestation)}}catch(b){this.logger.warn(b)}};c.body.appendChild(g),window.addEventListener("message",_,{signal:this.abortController.signal})});return this.logger.debug("jwt attestation",p),p}catch(c){this.logger.warn(c)}return""},this.resolve=async i=>{if(this.isDevEnv)return"";const{attestationId:r,hash:n,encryptedId:a}=i;if(r===""){this.logger.debug("resolve: attestationId is empty, skipping");return}if(r){if(utils_decodeJWT(r).payload.id!==a)return;const c=await this.isValidJwtAttestation(r);if(c){if(!c.isVerified){this.logger.warn("resolve: jwt attestation: origin url not verified");return}return c}}if(!n)return;const h=this.getVerifyUrl(i?.verifyUrl);return this.fetchAttestation(n,h)},this.fetchAttestation=async(i,r)=>{this.logger.debug(`resolving attestation: ${i} from url: ${r}`);const n=this.startAbortTimer(cjs.ONE_SECOND*5),a=await fetch(`${r}/attestation/${i}?v2Supported=true`,{signal:this.abortController.signal});return clearTimeout(n),a.status===200?await a.json():void 0},this.getVerifyUrl=i=>{let r=i||index_es_J;return index_es_wt.includes(r)||(this.logger.info(`verify url: ${r}, not included in trusted list, assigning default: ${index_es_J}`),r=index_es_J),r},this.fetchPublicKey=async()=>{try{this.logger.debug(`fetching public key from: ${this.verifyUrlV3}`);const i=this.startAbortTimer(cjs.FIVE_SECONDS),r=await fetch(`${this.verifyUrlV3}/public-key`,{signal:this.abortController.signal});return clearTimeout(i),await r.json()}catch(i){this.logger.warn(i)}},this.persistPublicKey=async i=>{this.logger.debug("persisting public key to local storage",i),await this.store.setItem(this.storeKey,i),this.publicKey=i},this.removePublicKey=async()=>{this.logger.debug("removing verify v2 public key from storage"),await this.store.removeItem(this.storeKey),this.publicKey=void 0},this.isValidJwtAttestation=async i=>{const r=await this.getPublicKey();try{if(r)return this.validateAttestation(i,r)}catch(a){this.logger.error(a),this.logger.warn("error validating attestation")}const n=await this.fetchAndPersistPublicKey();try{if(n)return this.validateAttestation(i,n)}catch(a){this.logger.error(a),this.logger.warn("error validating attestation")}},this.getPublicKey=async()=>this.publicKey?this.publicKey:await this.fetchAndPersistPublicKey(),this.fetchAndPersistPublicKey=async()=>{if(this.fetchPromise)return await this.fetchPromise,this.publicKey;this.fetchPromise=new Promise(async r=>{const n=await this.fetchPublicKey();n&&(await this.persistPublicKey(n),r(n))});const i=await this.fetchPromise;return this.fetchPromise=void 0,i},this.validateAttestation=(i,r)=>{const n=Rr(i,r.publicKey),a={hasExpired:(0,cjs.toMiliseconds)(n.exp)this.abortController.abort(),(0,cjs.toMiliseconds)(e))}}class li extends index_es_v{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.context=index_es_It,this.registerDeviceToken=async s=>{const{clientId:i,token:r,notificationType:n,enableEncrypted:a=!1}=s,h=`${index_es_Tt}/${this.projectId}/clients`;await fetch(h,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:i,type:n,token:r,always_raw:a})})},this.logger=dist_index_es_E(t,this.context)}}var index_es_dn=Object.defineProperty,ui=Object.getOwnPropertySymbols,index_es_pn=Object.prototype.hasOwnProperty,index_es_gn=Object.prototype.propertyIsEnumerable,di=(o,e,t)=>e in o?index_es_dn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,index_es_Z=(o,e)=>{for(var t in e||(e={}))index_es_pn.call(e,t)&&di(o,t,e[t]);if(ui)for(var t of ui(e))index_es_gn.call(e,t)&&di(o,t,e[t]);return o};class pi extends types_dist_index_es_C{constructor(e,t,s=!0){super(e,t,s),this.core=e,this.logger=t,this.context=index_es_Pt,this.storagePrefix=core_dist_index_es_x,this.storageVersion=index_es_Ct,this.events=new Map,this.shouldPersist=!1,this.init=async()=>{if(!Wt())try{const i={eventId:Ht(),timestamp:Date.now(),domain:this.getAppDomain(),props:{event:"INIT",type:"",properties:{client_id:await this.core.crypto.getClientId(),user_agent:Ge(this.core.relayer.protocol,this.core.relayer.version,index_es_se)}}};await this.sendEvent([i])}catch(i){this.logger.warn(i)}},this.createEvent=i=>{const{event:r="ERROR",type:n="",properties:{topic:a,trace:h}}=i,c=Ht(),l=this.core.projectId||"",p=Date.now(),D=index_es_Z({eventId:c,timestamp:p,props:{event:r,type:n,properties:{topic:a,trace:h}},bundleId:l,domain:this.getAppDomain()},this.setMethods(c));return this.telemetryEnabled&&(this.events.set(c,D),this.shouldPersist=!0),D},this.getEvent=i=>{const{eventId:r,topic:n}=i;if(r)return this.events.get(r);const a=Array.from(this.events.values()).find(h=>h.props.properties.topic===n);if(a)return index_es_Z(index_es_Z({},a),this.setMethods(a.eventId))},this.deleteEvent=i=>{const{eventId:r}=i;this.events.delete(r),this.shouldPersist=!0},this.setEventListeners=()=>{this.core.heartbeat.on(r.pulse,async()=>{this.shouldPersist&&await this.persist(),this.events.forEach(i=>{(0,cjs.fromMiliseconds)(Date.now())-(0,cjs.fromMiliseconds)(i.timestamp)>index_es_St&&(this.events.delete(i.eventId),this.shouldPersist=!0)})})},this.setMethods=i=>({addTrace:r=>this.addTrace(i,r),setError:r=>this.setError(i,r)}),this.addTrace=(i,r)=>{const n=this.events.get(i);n&&(n.props.properties.trace.push(r),this.events.set(i,n),this.shouldPersist=!0)},this.setError=(i,r)=>{const n=this.events.get(i);n&&(n.props.type=r,n.timestamp=Date.now(),this.events.set(i,n),this.shouldPersist=!0)},this.persist=async()=>{await this.core.storage.setItem(this.storageKey,Array.from(this.events.values())),this.shouldPersist=!1},this.restore=async()=>{try{const i=await this.core.storage.getItem(this.storageKey)||[];if(!i.length)return;i.forEach(r=>{this.events.set(r.eventId,index_es_Z(index_es_Z({},r),this.setMethods(r.eventId)))})}catch(i){this.logger.warn(i)}},this.submit=async()=>{if(!this.telemetryEnabled||this.events.size===0)return;const i=[];for(const[r,n]of this.events)n.props.type&&i.push(n);if(i.length!==0)try{if((await this.sendEvent(i)).ok)for(const r of i)this.events.delete(r.eventId),this.shouldPersist=!0}catch(r){this.logger.warn(r)}},this.sendEvent=async i=>{const r=this.getAppDomain()?"":"&sp=desktop";return await fetch(`${index_es_Rt}?projectId=${this.core.projectId}&st=events_sdk&sv=js-${index_es_se}${r}`,{method:"POST",body:JSON.stringify(i)})},this.getAppDomain=()=>Nt().url,this.logger=dist_index_es_E(t,this.context),this.telemetryEnabled=s,s?this.restore().then(async()=>{await this.submit(),this.setEventListeners()}):this.persist()}get storageKey(){return this.storagePrefix+this.storageVersion+this.core.customStoragePrefix+"//"+this.context}}var index_es_yn=Object.defineProperty,gi=Object.getOwnPropertySymbols,index_es_Dn=Object.prototype.hasOwnProperty,index_es_mn=Object.prototype.propertyIsEnumerable,yi=(o,e,t)=>e in o?index_es_yn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Di=(o,e)=>{for(var t in e||(e={}))index_es_Dn.call(e,t)&&yi(o,t,e[t]);if(gi)for(var t of gi(e))index_es_mn.call(e,t)&&yi(o,t,e[t]);return o};class ne extends types_dist_index_es_n{constructor(e){var t;super(e),this.protocol=index_es_ye,this.version=index_es_De,this.name=index_es_ie,this.events=new external_events_.EventEmitter,this.initialized=!1,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.dispatchEnvelope=({topic:n,message:a,sessionExists:h})=>{if(!n||!a)return;const c={topic:n,message:a,publishedAt:Date.now(),transportType:dist_index_es_M.link_mode};this.relayer.onLinkMessageEvent(c,{sessionExists:h})},this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||index_es_be,this.customStoragePrefix=e!=null&&e.customStoragePrefix?`:${e.customStoragePrefix}`:"";const s=logger_dist_index_es_k({level:typeof e?.logger=="string"&&e.logger?e.logger:index_es_Ye.logger}),{logger:i,chunkLoggerController:r}=index_es_A({opts:s,maxSizeInBytes:e?.maxLogBlobSizeInBytes,loggerOverride:e?.logger});this.logChunkController=r,(t=this.logChunkController)!=null&&t.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var n,a;(n=this.logChunkController)!=null&&n.downloadLogsBlobInBrowser&&((a=this.logChunkController)==null||a.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=dist_index_es_E(i,this.name),this.heartbeat=new index_es_i,this.crypto=new index_es_Ht(this,this.logger,e?.keychain),this.history=new ai(this,this.logger),this.expirer=new hi(this,this.logger),this.storage=e!=null&&e.storage?e.storage:new index_es_h(Di(Di({},index_es_Je),e?.storageOptions)),this.relayer=new ti({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new oi(this,this.logger),this.verify=new ci(this,this.logger,this.storage),this.echoClient=new li(this.projectId||"",this.logger),this.linkModeSupportedApps=[],this.eventClient=new pi(this,this.logger,e?.telemetryEnabled)}static async init(e){const t=new ne(e);await t.initialize();const s=await t.crypto.getClientId();return await t.storage.setItem(lt,s),t}get context(){return dist_index_es_y(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return(e=this.logChunkController)==null?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async addLinkModeSupportedApp(e){this.linkModeSupportedApps.includes(e)||(this.linkModeSupportedApps.push(e),await this.storage.setItem(fe,this.linkModeSupportedApps))}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.eventClient.init(),this.linkModeSupportedApps=await this.storage.getItem(fe)||[],this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}}const index_es_bn=ne; +const index_es_ye="wc",index_es_De=2,index_es_J="core",dist_index_es_A=`${index_es_ye}@2:${index_es_J}:`,index_es_Xe={name:index_es_J,logger:"error"},index_es_We={database:":memory:"},index_es_Ze="crypto",index_es_me="client_ed25519_seed",index_es_Qe=cjs.ONE_DAY,index_es_et="keychain",tt="0.3",it="messages",st="0.3",index_es_be=cjs.SIX_HOURS,rt="publisher",nt="irn",ot="error",fe="wss://relay.walletconnect.org",at="relayer",core_dist_index_es_v={message:"relayer_message",message_ack:"relayer_message_ack",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed",publish:"relayer_publish"},ct="_subscription",core_dist_index_es_C={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},index_es_ht=.1,ws={database:":memory:"},index_es_re="2.17.3",Is=1e4,dist_index_es_M={link_mode:"link_mode",relay:"relay"},lt="0.3",ut="WALLETCONNECT_CLIENT_ID",index_es_ve="WALLETCONNECT_LINK_MODE_APPS",index_es_T={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"},Ts=(/* unused pure expression or super */ null && (te)),dt="subscription",index_es_pt="0.3",index_es_gt=cjs.FIVE_SECONDS*1e3,index_es_yt="pairing",index_es_Dt="0.3",Cs=(/* unused pure expression or super */ null && (te)),index_es_V={wc_pairingDelete:{req:{ttl:cjs.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:cjs.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:cjs.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:cjs.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:cjs.ONE_DAY,prompt:!1,tag:0},res:{ttl:cjs.ONE_DAY,prompt:!1,tag:0}}},index_es_j={create:"pairing_create",expire:"pairing_expire",delete:"pairing_delete",ping:"pairing_ping"},dist_index_es_R={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},index_es_mt="history",index_es_bt="0.3",index_es_ft="expirer",core_dist_index_es_x={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},index_es_vt="0.3",Ps=(/* unused pure expression or super */ null && (B)),index_es_t="verify-api",Ss="https://verify.walletconnect.com",index_es_Et="https://verify.walletconnect.org",index_es_X=index_es_Et,index_es_wt=`${index_es_X}/v3`,index_es_It=[Ss,index_es_Et],index_es_Tt="echo",dist_index_es_Ct="https://echo.walletconnect.com",Rs="event-client",core_dist_index_es_z={pairing_started:"pairing_started",pairing_uri_validation_success:"pairing_uri_validation_success",pairing_uri_not_expired:"pairing_uri_not_expired",store_new_pairing:"store_new_pairing",subscribing_pairing_topic:"subscribing_pairing_topic",subscribe_pairing_topic_success:"subscribe_pairing_topic_success",existing_pairing:"existing_pairing",pairing_not_expired:"pairing_not_expired",emit_inactive_pairing:"emit_inactive_pairing",emit_session_proposal:"emit_session_proposal",subscribing_to_pairing_topic:"subscribing_to_pairing_topic"},index_es_$={no_wss_connection:"no_wss_connection",no_internet_connection:"no_internet_connection",malformed_pairing_uri:"malformed_pairing_uri",active_pairing_already_exists:"active_pairing_already_exists",subscribe_pairing_topic_failure:"subscribe_pairing_topic_failure",pairing_expired:"pairing_expired",proposal_expired:"proposal_expired",proposal_listener_not_found:"proposal_listener_not_found"},xs={session_approve_started:"session_approve_started",proposal_not_expired:"proposal_not_expired",session_namespaces_validation_success:"session_namespaces_validation_success",create_session_topic:"create_session_topic",subscribing_session_topic:"subscribing_session_topic",subscribe_session_topic_success:"subscribe_session_topic_success",publishing_session_approve:"publishing_session_approve",session_approve_publish_success:"session_approve_publish_success",store_session:"store_session",publishing_session_settle:"publishing_session_settle",session_settle_publish_success:"session_settle_publish_success"},Os={no_internet_connection:"no_internet_connection",no_wss_connection:"no_wss_connection",proposal_expired:"proposal_expired",subscribe_session_topic_failure:"subscribe_session_topic_failure",session_approve_publish_failure:"session_approve_publish_failure",session_settle_publish_failure:"session_settle_publish_failure",session_approve_namespace_validation_failure:"session_approve_namespace_validation_failure",proposal_not_found:"proposal_not_found"},As={authenticated_session_approve_started:"authenticated_session_approve_started",authenticated_session_not_expired:"authenticated_session_not_expired",chains_caip2_compliant:"chains_caip2_compliant",chains_evm_compliant:"chains_evm_compliant",create_authenticated_session_topic:"create_authenticated_session_topic",cacaos_verified:"cacaos_verified",store_authenticated_session:"store_authenticated_session",subscribing_authenticated_session_topic:"subscribing_authenticated_session_topic",subscribe_authenticated_session_topic_success:"subscribe_authenticated_session_topic_success",publishing_authenticated_session_approve:"publishing_authenticated_session_approve",authenticated_session_approve_publish_success:"authenticated_session_approve_publish_success"},Ns={no_internet_connection:"no_internet_connection",no_wss_connection:"no_wss_connection",missing_session_authenticate_request:"missing_session_authenticate_request",session_authenticate_request_expired:"session_authenticate_request_expired",chains_caip2_compliant_failure:"chains_caip2_compliant_failure",chains_evm_compliant_failure:"chains_evm_compliant_failure",invalid_cacao:"invalid_cacao",subscribe_authenticated_session_topic_failure:"subscribe_authenticated_session_topic_failure",authenticated_session_approve_publish_failure:"authenticated_session_approve_publish_failure",authenticated_session_pending_request_not_found:"authenticated_session_pending_request_not_found"},index_es_Pt=.1,index_es_St="event-client",index_es_Rt=86400,index_es_xt="https://pulse.walletconnect.org/batch";function zs(o,e){if(o.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),s=0;s>>0,f=new Uint8Array(P);b!==D;){for(var N=l[b],k=0,O=P-1;(N!==0||k>>0,f[O]=N%a>>>0,N=N/a>>>0;if(N!==0)throw new Error("Non-zero carry");w=k,b++}for(var L=P-w;L!==P&&f[L]===0;)L++;for(var ee=c.repeat(g);L>>0,P=new Uint8Array(D);l[g];){var f=t[l.charCodeAt(g)];if(f===255)return;for(var N=0,k=D-1;(f!==0||N>>0,P[k]=f%256>>>0,f=f/256>>>0;if(f!==0)throw new Error("Non-zero carry");b=N,g++}if(l[g]!==" "){for(var O=D-b;O!==D&&P[O]===0;)O++;for(var L=new Uint8Array(w+(D-O)),ee=w;O!==D;)L[ee++]=P[O++];return L}}}function m(l){var g=y(l);if(g)return g;throw new Error(`Non-${e} character`)}return{encode:d,decodeUnsafe:y,decode:m}}var Ls=zs,$s=Ls;const index_es_Ot=o=>{if(o instanceof Uint8Array&&o.constructor.name==="Uint8Array")return o;if(o instanceof ArrayBuffer)return new Uint8Array(o);if(ArrayBuffer.isView(o))return new Uint8Array(o.buffer,o.byteOffset,o.byteLength);throw new Error("Unknown type, must be binary type")},ks=o=>new TextEncoder().encode(o),Us=o=>new TextDecoder().decode(o);class Fs{constructor(e,t,s){this.name=e,this.prefix=t,this.baseEncode=s}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class Ms{constructor(e,t,s){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=s}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return index_es_At(this,e)}}class Ks{constructor(e){this.decoders=e}or(e){return index_es_At(this,e)}decode(e){const t=e[0],s=this.decoders[t];if(s)return s.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const index_es_At=(o,e)=>new Ks({...o.decoders||{[o.prefix]:o},...e.decoders||{[e.prefix]:e}});class Bs{constructor(e,t,s,i){this.name=e,this.prefix=t,this.baseEncode=s,this.baseDecode=i,this.encoder=new Fs(e,t,s),this.decoder=new Ms(e,t,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const ne=({name:o,prefix:e,encode:t,decode:s})=>new Bs(o,e,t,s),index_es_W=({prefix:o,name:e,alphabet:t})=>{const{encode:s,decode:i}=$s(t,e);return ne({prefix:o,name:e,encode:s,decode:r=>index_es_Ot(i(r))})},Vs=(o,e,t,s)=>{const i={};for(let u=0;u=8&&(a-=8,n[h++]=255&c>>a)}if(a>=t||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return n},js=(o,e,t)=>{const s=e[e.length-1]==="=",i=(1<t;)n-=t,r+=e[i&a>>n];if(n&&(r+=e[i&a<ne({prefix:e,name:o,encode(i){return js(i,s,t)},decode(i){return Vs(i,s,t,o)}}),qs=ne({prefix:"\0",name:"identity",encode:o=>Us(o),decode:o=>ks(o)});var Gs=Object.freeze({__proto__:null,identity:qs});const Hs=core_dist_index_es_({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Ys=Object.freeze({__proto__:null,base2:Hs});const Js=core_dist_index_es_({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Xs=Object.freeze({__proto__:null,base8:Js});const Ws=index_es_W({prefix:"9",name:"base10",alphabet:"0123456789"});var Zs=Object.freeze({__proto__:null,base10:Ws});const Qs=core_dist_index_es_({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),index_es_er=core_dist_index_es_({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var index_es_tr=Object.freeze({__proto__:null,base16:Qs,base16upper:index_es_er});const index_es_ir=core_dist_index_es_({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),index_es_sr=core_dist_index_es_({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),index_es_rr=core_dist_index_es_({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),index_es_nr=core_dist_index_es_({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),index_es_or=core_dist_index_es_({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),index_es_ar=core_dist_index_es_({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),index_es_cr=core_dist_index_es_({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),index_es_hr=core_dist_index_es_({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),index_es_lr=core_dist_index_es_({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var index_es_ur=Object.freeze({__proto__:null,base32:index_es_ir,base32upper:index_es_sr,base32pad:index_es_rr,base32padupper:index_es_nr,base32hex:index_es_or,base32hexupper:index_es_ar,base32hexpad:index_es_cr,base32hexpadupper:index_es_hr,base32z:index_es_lr});const index_es_dr=index_es_W({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),index_es_pr=index_es_W({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var index_es_gr=Object.freeze({__proto__:null,base36:index_es_dr,base36upper:index_es_pr});const index_es_yr=index_es_W({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),index_es_Dr=index_es_W({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var index_es_mr=Object.freeze({__proto__:null,base58btc:index_es_yr,base58flickr:index_es_Dr});const index_es_br=core_dist_index_es_({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),index_es_fr=core_dist_index_es_({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),index_es_vr=core_dist_index_es_({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),dist_index_es_r=core_dist_index_es_({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var index_es_Er=Object.freeze({__proto__:null,base64:index_es_br,base64pad:index_es_fr,base64url:index_es_vr,base64urlpad:dist_index_es_r});const index_es_Nt=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),index_es_wr=index_es_Nt.reduce((o,e,t)=>(o[t]=e,o),[]),index_es_Ir=index_es_Nt.reduce((o,e,t)=>(o[e.codePointAt(0)]=t,o),[]);function index_es_Tr(o){return o.reduce((e,t)=>(e+=index_es_wr[t],e),"")}function index_es_Cr(o){const e=[];for(const t of o){const s=index_es_Ir[t.codePointAt(0)];if(s===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(s)}return new Uint8Array(e)}const index_es_Pr=ne({prefix:"\u{1F680}",name:"base256emoji",encode:index_es_Tr,decode:index_es_Cr});var index_es_Sr=Object.freeze({__proto__:null,base256emoji:index_es_Pr}),index_es_Rr=index_es_Lt,index_es_zt=128,index_es_xr=127,index_es_Or=~index_es_xr,index_es_Ar=Math.pow(2,31);function index_es_Lt(o,e,t){e=e||[],t=t||0;for(var s=t;o>=index_es_Ar;)e[t++]=o&255|index_es_zt,o/=128;for(;o&index_es_Or;)e[t++]=o&255|index_es_zt,o>>>=7;return e[t]=o|0,index_es_Lt.bytes=t-s+1,e}var index_es_Nr=_e,index_es_zr=128,index_es_$t=127;function _e(o,s){var t=0,s=s||0,i=0,r=s,n,a=o.length;do{if(r>=a)throw _e.bytes=0,new RangeError("Could not decode varint");n=o[r++],t+=i<28?(n&index_es_$t)<=index_es_zr);return _e.bytes=r-s,t}var index_es_Lr=Math.pow(2,7),index_es_$r=Math.pow(2,14),index_es_kr=Math.pow(2,21),index_es_Ur=Math.pow(2,28),index_es_Fr=Math.pow(2,35),index_es_Mr=Math.pow(2,42),index_es_Kr=Math.pow(2,49),index_es_Br=Math.pow(2,56),index_es_Vr=Math.pow(2,63),index_es_jr=function(o){return o(index_es_kt.encode(o,e,t),e),index_es_Ft=o=>index_es_kt.encodingLength(o),index_es_Ee=(o,e)=>{const t=e.byteLength,s=index_es_Ft(o),i=s+index_es_Ft(t),r=new Uint8Array(i+t);return index_es_Ut(o,r,0),index_es_Ut(t,r,s),r.set(e,i),new index_es_Gr(o,t,e,r)};class index_es_Gr{constructor(e,t,s,i){this.code=e,this.size=t,this.digest=s,this.bytes=i}}const index_es_Mt=({name:o,code:e,encode:t})=>new index_es_Hr(o,e,t);class index_es_Hr{constructor(e,t,s){this.name=e,this.code=t,this.encode=s}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?index_es_Ee(this.code,t):t.then(s=>index_es_Ee(this.code,s))}else throw Error("Unknown type, must be binary type")}}const index_es_Kt=o=>async e=>new Uint8Array(await crypto.subtle.digest(o,e)),index_es_Yr=index_es_Mt({name:"sha2-256",code:18,encode:index_es_Kt("SHA-256")}),index_es_Jr=index_es_Mt({name:"sha2-512",code:19,encode:index_es_Kt("SHA-512")});var index_es_Xr=Object.freeze({__proto__:null,sha256:index_es_Yr,sha512:index_es_Jr});const index_es_Bt=0,index_es_Wr="identity",index_es_Vt=index_es_Ot,index_es_Zr=o=>index_es_Ee(index_es_Bt,index_es_Vt(o)),index_es_Qr={code:index_es_Bt,name:index_es_Wr,encode:index_es_Vt,digest:index_es_Zr};var index_es_en=Object.freeze({__proto__:null,identity:index_es_Qr});new TextEncoder,new TextDecoder;const index_es_jt={...Gs,...Ys,...Xs,...Zs,...index_es_tr,...index_es_ur,...index_es_gr,...index_es_mr,...index_es_Er,...index_es_Sr};({...index_es_Xr,...index_es_en});function index_es_tn(o=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(o):new Uint8Array(o)}function index_es_qt(o,e,t,s){return{name:o,prefix:e,encoder:{name:o,prefix:e,encode:t},decoder:{decode:s}}}const index_es_Gt=index_es_qt("utf8","u",o=>"u"+new TextDecoder("utf8").decode(o),o=>new TextEncoder().encode(o.substring(1))),index_es_we=index_es_qt("ascii","a",o=>{let e="a";for(let t=0;t{o=o.substring(1);const e=index_es_tn(o.length);for(let t=0;t{if(!this.initialized){const s=await this.getKeyChain();typeof s<"u"&&(this.keychain=s),this.initialized=!0}},this.has=s=>(this.isInitialized(),this.keychain.has(s)),this.set=async(s,i)=>{this.isInitialized(),this.keychain.set(s,i),await this.persist()},this.get=s=>{this.isInitialized();const i=this.keychain.get(s);if(typeof i>"u"){const{message:r}=index_es_S("NO_MATCHING_KEY",`${this.name}: ${s}`);throw new Error(r)}return i},this.del=async s=>{this.isInitialized(),this.keychain.delete(s),await this.persist()},this.core=e,this.logger=dist_index_es_E(t,this.name)}get context(){return dist_index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,At(e))}async getKeyChain(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?index_es_Ct(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}}class index_es_Yt{constructor(e,t,s){this.core=e,this.logger=t,this.name=index_es_Ze,this.randomSessionIdentifier=yr(),this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=i=>(this.isInitialized(),this.keychain.has(i)),this.getClientId=async()=>{this.isInitialized();const i=await this.getClientSeed(),r=generateKeyPair(i);return encodeIss(r.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const i=hr();return this.setPrivateKey(i.publicKey,i.privateKey)},this.signJWT=async i=>{this.isInitialized();const r=await this.getClientSeed(),n=generateKeyPair(r),a=this.randomSessionIdentifier,c=index_es_Qe;return await signJWT(a,i,c,n)},this.generateSharedKey=(i,r,n)=>{this.isInitialized();const a=this.getPrivateKey(i),c=gr(a,r);return this.setSymKey(c,n)},this.setSymKey=async(i,r)=>{this.isInitialized();const n=r||vr(i);return await this.keychain.set(n,i),n},this.deleteKeyPair=async i=>{this.isInitialized(),await this.keychain.del(i)},this.deleteSymKey=async i=>{this.isInitialized(),await this.keychain.del(i)},this.encode=async(i,r,n)=>{this.isInitialized();const a=On(n),c=safeJsonStringify(r);if(Rr(a))return wr(c,n?.encoding);if($r(a)){const y=a.senderPublicKey,m=a.receiverPublicKey;i=await this.generateSharedKey(y,m)}const h=this.getSymKey(i),{type:u,senderPublicKey:d}=a;return Er({type:u,symKey:h,message:c,senderPublicKey:d,encoding:n?.encoding})},this.decode=async(i,r,n)=>{this.isInitialized();const a=Sr(r,n);if(Rr(a)){const c=Nr(r,n?.encoding);return safeJsonParse(c)}if($r(a)){const c=a.receiverPublicKey,h=a.senderPublicKey;i=await this.generateSharedKey(c,h)}try{const c=this.getSymKey(i),h=Or({symKey:c,encoded:r,encoding:n?.encoding});return safeJsonParse(h)}catch(c){this.logger.error(`Failed to decode message from topic: '${i}', clientId: '${await this.getClientId()}'`),this.logger.error(c)}},this.getPayloadType=(i,r=ge)=>{const n=Q({encoded:i,encoding:r});return index_es_C(n.type)},this.getPayloadSenderPublicKey=(i,r=ge)=>{const n=Q({encoded:i,encoding:r});return n.senderPublicKey?to_string_toString(n.senderPublicKey,index_es_g):void 0},this.core=e,this.logger=dist_index_es_E(t,this.name),this.keychain=s||new index_es_Ht(this.core,this.logger)}get context(){return dist_index_es_y(this.logger)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(index_es_me)}catch{e=yr(),await this.keychain.set(index_es_me,e)}return index_es_rn(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}}class index_es_Jt extends index_es_a{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name=it,this.version=st,this.initialized=!1,this.storagePrefix=dist_index_es_A,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const s=await this.getRelayerMessages();typeof s<"u"&&(this.messages=s),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(s){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(s)}finally{this.initialized=!0}}},this.set=async(s,i)=>{this.isInitialized();const r=br(i);let n=this.messages.get(s);return typeof n>"u"&&(n={}),typeof n[r]<"u"||(n[r]=i,this.messages.set(s,n),await this.persist()),r},this.get=s=>{this.isInitialized();let i=this.messages.get(s);return typeof i>"u"&&(i={}),i},this.has=(s,i)=>{this.isInitialized();const r=this.get(s),n=br(i);return typeof r[n]<"u"},this.del=async s=>{this.isInitialized(),this.messages.delete(s),await this.persist()},this.logger=dist_index_es_E(e,this.name),this.core=t}get context(){return dist_index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,At(e))}async getRelayerMessages(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?index_es_Ct(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}}var index_es_nn=Object.defineProperty,index_es_on=Object.defineProperties,index_es_an=Object.getOwnPropertyDescriptors,index_es_Xt=Object.getOwnPropertySymbols,index_es_cn=Object.prototype.hasOwnProperty,index_es_hn=Object.prototype.propertyIsEnumerable,index_es_Wt=(o,e,t)=>e in o?index_es_nn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,index_es_Zt=(o,e)=>{for(var t in e||(e={}))index_es_cn.call(e,t)&&index_es_Wt(o,t,e[t]);if(index_es_Xt)for(var t of index_es_Xt(e))index_es_hn.call(e,t)&&index_es_Wt(o,t,e[t]);return o},index_es_Qt=(o,e)=>index_es_on(o,index_es_an(e));class index_es_ln extends types_dist_index_es_g{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new external_events_.EventEmitter,this.name=rt,this.queue=new Map,this.publishTimeout=(0,cjs.toMiliseconds)(cjs.ONE_MINUTE),this.initialPublishTimeout=(0,cjs.toMiliseconds)(cjs.ONE_SECOND*15),this.needsTransportRestart=!1,this.publish=async(s,i,r)=>{var n;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:s,message:i,opts:r}});const a=r?.ttl||index_es_be,c=Tr(r),h=r?.prompt||!1,u=r?.tag||0,d=r?.id||getBigIntRpcId().toString(),y={topic:s,message:i,opts:{ttl:a,relay:c,prompt:h,tag:u,id:d,attestation:r?.attestation}},m=`Failed to publish payload, please try again. id:${d} tag:${u}`;try{const l=new Promise(async g=>{const w=({id:D})=>{y.opts.id===D&&(this.removeRequestFromQueue(D),this.relayer.events.removeListener(core_dist_index_es_v.publish,w),g(y))};this.relayer.events.on(core_dist_index_es_v.publish,w);const b=xt(new Promise((D,P)=>{this.rpcPublish({topic:s,message:i,ttl:a,prompt:h,tag:u,id:d,attestation:r?.attestation}).then(D).catch(f=>{this.logger.warn(f,f?.message),P(f)})}),this.initialPublishTimeout,`Failed initial publish, retrying.... id:${d} tag:${u}`);try{await b,this.events.removeListener(core_dist_index_es_v.publish,w)}catch(D){this.queue.set(d,index_es_Qt(index_es_Zt({},y),{attempt:1})),this.logger.warn(D,D?.message)}});this.logger.trace({type:"method",method:"publish",params:{id:d,topic:s,message:i,opts:r}}),await xt(l,this.publishTimeout,m)}catch(l){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(l),(n=r?.internal)!=null&&n.throwOnFailedPublish)throw l}finally{this.queue.delete(d)}},this.on=(s,i)=>{this.events.on(s,i)},this.once=(s,i)=>{this.events.once(s,i)},this.off=(s,i)=>{this.events.off(s,i)},this.removeListener=(s,i)=>{this.events.removeListener(s,i)},this.relayer=e,this.logger=dist_index_es_E(t,this.name),this.registerEventListeners()}get context(){return dist_index_es_y(this.logger)}async rpcPublish(e){var t,s,i,r;const{topic:n,message:a,ttl:c=index_es_be,prompt:h,tag:u,id:d,attestation:y}=e,m={method:Ar(Tr().protocol).publish,params:{topic:n,message:a,ttl:c,prompt:h,tag:u,attestation:y},id:d};index_es_P((t=m.params)==null?void 0:t.prompt)&&((s=m.params)==null||delete s.prompt),index_es_P((i=m.params)==null?void 0:i.tag)&&((r=m.params)==null||delete r.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:m});const l=await this.relayer.request(m);return this.relayer.events.emit(core_dist_index_es_v.publish,e),this.logger.debug("Successfully Published Payload"),l}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach(async(e,t)=>{const s=e.attempt+1;this.queue.set(t,index_es_Qt(index_es_Zt({},e),{attempt:s}));const{topic:i,message:r,opts:n,attestation:a}=e;this.logger.warn({},`Publisher: queue->publishing: ${e.opts.id}, tag: ${e.opts.tag}, attempt: ${s}`),await this.rpcPublish({topic:i,message:r,ttl:n.ttl,prompt:n.prompt,tag:n.tag,id:n.id,attestation:a}),this.logger.warn({},`Publisher: queue->published: ${e.opts.id}`)})}registerEventListeners(){this.relayer.core.heartbeat.on(r.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(core_dist_index_es_v.connection_stalled);return}this.checkQueue()}),this.relayer.on(core_dist_index_es_v.message_ack,e=>{this.removeRequestFromQueue(e.id.toString())})}}class index_es_un{constructor(){this.map=new Map,this.set=(e,t)=>{const s=this.get(e);this.exists(e,t)||this.map.set(e,[...s,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u"){this.map.delete(e);return}if(!this.map.has(e))return;const s=this.get(e);if(!this.exists(e,t))return;const i=s.filter(r=>r!==t);if(!i.length){this.map.delete(e);return}this.map.set(e,i)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var index_es_dn=Object.defineProperty,index_es_pn=Object.defineProperties,index_es_gn=Object.getOwnPropertyDescriptors,ei=Object.getOwnPropertySymbols,index_es_yn=Object.prototype.hasOwnProperty,index_es_Dn=Object.prototype.propertyIsEnumerable,ti=(o,e,t)=>e in o?index_es_dn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,index_es_Z=(o,e)=>{for(var t in e||(e={}))index_es_yn.call(e,t)&&ti(o,t,e[t]);if(ei)for(var t of ei(e))index_es_Dn.call(e,t)&&ti(o,t,e[t]);return o},Ie=(o,e)=>index_es_pn(o,index_es_gn(e));class ii extends dist_index_es_d{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new index_es_un,this.events=new external_events_.EventEmitter,this.name=dt,this.version=index_es_pt,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=dist_index_es_A,this.subscribeTimeout=(0,cjs.toMiliseconds)(cjs.ONE_MINUTE),this.initialSubscribeTimeout=(0,cjs.toMiliseconds)(cjs.ONE_SECOND*15),this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId(),await this.restore()),this.initialized=!0},this.subscribe=async(s,i)=>{this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:s,opts:i}});try{const r=Tr(i),n={topic:s,relay:r,transportType:i?.transportType};this.pending.set(s,n);const a=await this.rpcSubscribe(s,r,i);return typeof a=="string"&&(this.onSubscribe(a,n),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:s,opts:i}})),a}catch(r){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(r),r}},this.unsubscribe=async(s,i)=>{await this.restartToComplete(),this.isInitialized(),typeof i?.id<"u"?await this.unsubscribeById(s,i.id,i):await this.unsubscribeByTopic(s,i)},this.isSubscribed=async s=>{if(this.topics.includes(s))return!0;const i=`${this.pendingSubscriptionWatchLabel}_${s}`;return await new Promise((r,n)=>{const a=new cjs.Watch;a.start(i);const c=setInterval(()=>{(!this.pending.has(s)&&this.topics.includes(s)||this.cached.some(h=>h.topic===s))&&(clearInterval(c),a.stop(i),r(!0)),a.elapsed(i)>=index_es_gt&&(clearInterval(c),a.stop(i),n(new Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1)},this.on=(s,i)=>{this.events.on(s,i)},this.once=(s,i)=>{this.events.once(s,i)},this.off=(s,i)=>{this.events.off(s,i)},this.removeListener=(s,i)=>{this.events.removeListener(s,i)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>{await this.restore(),await this.onRestart()},this.checkPending=async()=>{if(this.pending.size===0&&(!this.initialized||!this.relayer.connected))return;const s=[];this.pending.forEach(i=>{s.push(i)}),await this.batchSubscribe(s)},this.registerEventListeners=()=>{this.relayer.core.heartbeat.on(r.pulse,async()=>{await this.checkPending()}),this.events.on(index_es_T.created,async s=>{const i=index_es_T.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:s}),await this.persist()}),this.events.on(index_es_T.deleted,async s=>{const i=index_es_T.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:s}),await this.persist()})},this.relayer=e,this.logger=dist_index_es_E(t,this.name),this.clientId=""}get context(){return dist_index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let s=!1;try{s=this.getSubscription(e).topic===t}catch{}return s}reset(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){const s=this.topicMap.get(e);await Promise.all(s.map(async i=>await this.unsubscribeById(e,i,t)))}async unsubscribeById(e,t,s){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:s}});try{const i=Tr(s);await this.rpcUnsubscribe(e,t,i);const r=index_es_("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,r),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:s}})}catch(i){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(i),i}}async rpcSubscribe(e,t,s){var i;s?.transportType===dist_index_es_M.relay&&await this.restartToComplete();const r={method:Ar(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});const n=(i=s?.internal)==null?void 0:i.throwOnFailedPublish;try{const a=this.getSubscriptionId(e);if(s?.transportType===dist_index_es_M.link_mode)return setTimeout(()=>{(this.relayer.connected||this.relayer.connecting)&&this.relayer.request(r).catch(u=>this.logger.warn(u))},(0,cjs.toMiliseconds)(cjs.ONE_SECOND)),a;const c=new Promise(async u=>{const d=y=>{y.topic===e&&(this.events.removeListener(index_es_T.created,d),u(y.id))};this.events.on(index_es_T.created,d);try{const y=await xt(new Promise((m,l)=>{this.relayer.request(r).catch(g=>{this.logger.warn(g,g?.message),l(g)}).then(m)}),this.initialSubscribeTimeout,`Subscribing to ${e} failed, please try again`);this.events.removeListener(index_es_T.created,d),u(y)}catch{}}),h=await xt(c,this.subscribeTimeout,`Subscribing to ${e} failed, please try again`);if(!h&&n)throw new Error(`Subscribing to ${e} failed, please try again`);return h?a:null}catch(a){if(this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(core_dist_index_es_v.connection_stalled),n)throw a}return null}async rpcBatchSubscribe(e){if(!e.length)return;const t=e[0].relay,s={method:Ar(t.protocol).batchSubscribe,params:{topics:e.map(i=>i.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:s});try{await await xt(new Promise(i=>{this.relayer.request(s).catch(r=>this.logger.warn(r)).then(i)}),this.subscribeTimeout,"rpcBatchSubscribe failed, please try again")}catch{this.relayer.events.emit(core_dist_index_es_v.connection_stalled)}}async rpcBatchFetchMessages(e){if(!e.length)return;const t=e[0].relay,s={method:Ar(t.protocol).batchFetchMessages,params:{topics:e.map(r=>r.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:s});let i;try{i=await await xt(new Promise((r,n)=>{this.relayer.request(s).catch(a=>{this.logger.warn(a),n(a)}).then(r)}),this.subscribeTimeout,"rpcBatchFetchMessages failed, please try again")}catch{this.relayer.events.emit(core_dist_index_es_v.connection_stalled)}return i}rpcUnsubscribe(e,t,s){const i={method:Ar(s.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.request(i)}onSubscribe(e,t){this.setSubscription(e,Ie(index_es_Z({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach(t=>{this.setSubscription(t.id,index_es_Z({},t)),this.pending.delete(t.topic)})}async onUnsubscribe(e,t,s){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,s),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t)}addSubscription(e,t){this.subscriptions.set(e,index_es_Z({},t)),this.topicMap.set(t.topic,e),this.events.emit(index_es_T.created,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});const t=this.subscriptions.get(e);if(!t){const{message:s}=index_es_S("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(s)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});const s=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(s.topic,e),this.events.emit(index_es_T.deleted,Ie(index_es_Z({},s),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(index_es_T.sync)}async onRestart(){if(this.cached.length){const e=[...this.cached],t=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let s=0;s"u"||!e.length)return;if(this.subscriptions.size){const{message:t}=index_es_S("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){e.length&&(await this.rpcBatchSubscribe(e),this.onBatchSubscribe(e.map(t=>Ie(index_es_Z({},t),{id:this.getSubscriptionId(t.topic)}))))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);const t=await this.rpcBatchFetchMessages(e);t&&t.messages&&(await Gt((0,cjs.toMiliseconds)(cjs.ONE_SECOND)),await this.relayer.handleBatchMessageEvents(t.messages))}async onConnect(){await this.restart(),this.reset()}onDisconnect(){this.onDisable()}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}async restartToComplete(){!this.relayer.connected&&!this.relayer.connecting&&await this.relayer.transportOpen()}getSubscriptionId(e){return br(e+this.clientId)}}var index_es_mn=Object.defineProperty,si=Object.getOwnPropertySymbols,index_es_bn=Object.prototype.hasOwnProperty,index_es_fn=Object.prototype.propertyIsEnumerable,ri=(o,e,t)=>e in o?index_es_mn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,ni=(o,e)=>{for(var t in e||(e={}))index_es_bn.call(e,t)&&ri(o,t,e[t]);if(si)for(var t of si(e))index_es_fn.call(e,t)&&ri(o,t,e[t]);return o};class oi extends index_es_u{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new external_events_.EventEmitter,this.name=at,this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1,this.heartBeatTimeout=(0,cjs.toMiliseconds)(cjs.THIRTY_SECONDS+cjs.FIVE_SECONDS),this.requestsInFlight=[],this.connectTimeout=(0,cjs.toMiliseconds)(cjs.ONE_SECOND*15),this.request=async t=>{var s,i;this.logger.debug("Publishing Request Payload");const r=t.id||getBigIntRpcId().toString();await this.toEstablishConnection();try{this.logger.trace({id:r,method:t.method,topic:(s=t.params)==null?void 0:s.topic},"relayer.request - publishing...");const n=`${r}:${((i=t.params)==null?void 0:i.tag)||""}`;this.requestsInFlight.push(n);const a=await this.provider.request(t);return this.requestsInFlight=this.requestsInFlight.filter(c=>c!==n),a}catch(n){throw this.logger.debug(`Failed to Publish Request: ${r}`),n}},this.resetPingTimeout=()=>{if(ce())try{clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{var t,s,i;this.logger.debug({},"pingTimeout: Connection stalled, terminating..."),(i=(s=(t=this.provider)==null?void 0:t.connection)==null?void 0:s.socket)==null||i.terminate()},this.heartBeatTimeout)}catch(t){this.logger.warn(t,t?.message)}},this.onPayloadHandler=t=>{this.onProviderPayload(t),this.resetPingTimeout()},this.onConnectHandler=()=>{this.logger.warn({},"Relayer connected \u{1F6DC}"),this.startPingTimeout(),this.events.emit(core_dist_index_es_v.connect)},this.onDisconnectHandler=()=>{this.logger.warn({},"Relayer disconnected \u{1F6D1}"),this.requestsInFlight=[],this.onProviderDisconnect()},this.onProviderErrorHandler=t=>{this.logger.fatal(t,`Fatal socket error: ${t?.message}`),this.events.emit(core_dist_index_es_v.error,t),this.logger.fatal("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(core_dist_index_es_C.payload,this.onPayloadHandler),this.provider.on(core_dist_index_es_C.connect,this.onConnectHandler),this.provider.on(core_dist_index_es_C.disconnect,this.onDisconnectHandler),this.provider.on(core_dist_index_es_C.error,this.onProviderErrorHandler)},this.core=e.core,this.logger=typeof e.logger<"u"&&typeof e.logger!="string"?dist_index_es_E(e.logger,this.name):pino_default()(logger_dist_index_es_k({level:e.logger||ot})),this.messages=new index_es_Jt(this.logger,e.core),this.subscriber=new ii(this,this.logger),this.publisher=new index_es_ln(this,this.logger),this.relayUrl=e?.relayUrl||fe,this.projectId=e.projectId,Ot()?this.packageName=St():Nt()&&(this.bundleId=St()),this.provider={}}async init(){if(this.logger.trace("Initialized"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]),this.initialized=!0,this.subscriber.cached.length>0)try{await this.transportOpen()}catch(e){this.logger.warn(e,e?.message)}}get context(){return dist_index_es_y(this.logger)}get connected(){var e,t,s;return((s=(t=(e=this.provider)==null?void 0:e.connection)==null?void 0:t.socket)==null?void 0:s.readyState)===1}get connecting(){var e,t,s;return((s=(t=(e=this.provider)==null?void 0:e.connection)==null?void 0:t.socket)==null?void 0:s.readyState)===0}async publish(e,t,s){this.isInitialized(),await this.publisher.publish(e,t,s),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now(),transportType:dist_index_es_M.relay})}async subscribe(e,t){var s,i,r;this.isInitialized(),(!(t!=null&&t.transportType)||t?.transportType==="relay")&&await this.toEstablishConnection();const n=typeof((s=t?.internal)==null?void 0:s.throwOnFailedPublish)>"u"?!0:(i=t?.internal)==null?void 0:i.throwOnFailedPublish;let a=((r=this.subscriber.topicMap.get(e))==null?void 0:r[0])||"",c;const h=u=>{u.topic===e&&(this.subscriber.off(index_es_T.created,h),c())};return await Promise.all([new Promise(u=>{c=u,this.subscriber.on(index_es_T.created,h)}),new Promise(async(u,d)=>{a=await this.subscriber.subscribe(e,ni({internal:{throwOnFailedPublish:n}},t)).catch(y=>{n&&d(y)})||a,u()})]),a}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportDisconnect(){this.provider.disconnect&&(this.hasExperiencedNetworkDisruption||this.connected)?await xt(this.provider.disconnect(),2e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){if(this.connectPromise?(this.logger.debug({},"Waiting for existing connection attempt to resolve..."),await this.connectPromise,this.logger.debug({},"Existing connection attempt resolved")):(this.connectPromise=new Promise(async(t,s)=>{await this.connect(e).then(t).catch(s).finally(()=>{this.connectPromise=void 0})}),await this.connectPromise),!this.connected)throw new Error(`Couldn't establish socket connection to the relay server: ${this.relayUrl}`)}async restartTransport(e){this.logger.debug({},"Restarting transport..."),!this.connectionAttemptInProgress&&(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await go())throw new Error("No internet connection detected. Please restart your network and try again.")}async handleBatchMessageEvents(e){if(e?.length===0){this.logger.trace("Batch message events is empty. Ignoring...");return}const t=e.sort((s,i)=>s.publishedAt-i.publishedAt);this.logger.debug(`Batch of ${t.length} message events sorted`);for(const s of t)try{await this.onMessageEvent(s)}catch(i){this.logger.warn(i,"Error while processing batch message event: "+i?.message)}this.logger.trace(`Batch of ${t.length} message events processed`)}async onLinkMessageEvent(e,t){const{topic:s}=e;if(!t.sessionExists){const i=Lt(cjs.FIVE_MINUTES),r={topic:s,expiry:i,relay:{protocol:"irn"},active:!1};await this.core.pairing.pairings.set(s,r)}this.events.emit(core_dist_index_es_v.message,e),await this.recordMessageEvent(e)}async connect(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;let t=1;for(;t<6;){try{this.logger.debug({},`Connecting to ${this.relayUrl}, attempt: ${t}...`),await this.createProvider(),await new Promise(async(s,i)=>{const r=()=>{i(new Error("Connection interrupted while trying to subscribe"))};this.provider.once(core_dist_index_es_C.disconnect,r),await xt(new Promise((n,a)=>{this.provider.connect().then(n).catch(a)}),this.connectTimeout,`Socket stalled when trying to connect to ${this.relayUrl}`).catch(n=>{i(n)}).finally(()=>{this.provider.off(core_dist_index_es_C.disconnect,r),clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0}),await new Promise(async(n,a)=>{const c=()=>{a(new Error("Connection interrupted while trying to subscribe"))};this.provider.once(core_dist_index_es_C.disconnect,c),await this.subscriber.start().then(n).catch(a).finally(()=>{this.provider.off(core_dist_index_es_C.disconnect,c)})}),this.hasExperiencedNetworkDisruption=!1,s()})}catch(s){await this.subscriber.stop();const i=s;this.logger.warn({},i.message),this.hasExperiencedNetworkDisruption=!0}finally{this.connectionAttemptInProgress=!1}if(this.connected){this.logger.debug({},`Connected to ${this.relayUrl} successfully on attempt: ${t}`);break}await new Promise(s=>setTimeout(s,(0,cjs.toMiliseconds)(t*1))),t++}}startPingTimeout(){var e,t,s,i,r;if(ce())try{(t=(e=this.provider)==null?void 0:e.connection)!=null&&t.socket&&((r=(i=(s=this.provider)==null?void 0:s.connection)==null?void 0:i.socket)==null||r.on("ping",()=>{this.resetPingTimeout()})),this.resetPingTimeout()}catch(n){this.logger.warn(n,n?.message)}}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new dist_index_es_o(new dist_index_es_f(It({sdkVersion:index_es_re,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId,packageName:this.packageName}))),this.registerProviderListeners()}async recordMessageEvent(e){const{topic:t,message:s}=e;await this.messages.set(t,s)}async shouldIgnoreMessageEvent(e){const{topic:t,message:s}=e;if(!s||s.length===0)return this.logger.warn(`Ignoring invalid/empty message: ${s}`),!0;if(!await this.subscriber.isSubscribed(t))return this.logger.warn(`Ignoring message for non-subscribed topic ${t}`),!0;const i=this.messages.has(t,s);return i&&this.logger.warn(`Ignoring duplicate message: ${s}`),i}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),isJsonRpcRequest(e)){if(!e.method.endsWith(ct))return;const t=e.params,{topic:s,message:i,publishedAt:r,attestation:n}=t.data,a={topic:s,message:i,publishedAt:r,transportType:dist_index_es_M.relay,attestation:n};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(ni({type:"event",event:t.id},a)),this.events.emit(t.id,a),await this.acknowledgePayload(e),await this.onMessageEvent(a)}else isJsonRpcResponse(e)&&this.events.emit(core_dist_index_es_v.message_ack,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(core_dist_index_es_v.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){const t=formatJsonRpcResult(e.id,!0);await this.provider.connection.send(t)}unregisterProviderListeners(){this.provider.off(core_dist_index_es_C.payload,this.onPayloadHandler),this.provider.off(core_dist_index_es_C.connect,this.onConnectHandler),this.provider.off(core_dist_index_es_C.disconnect,this.onDisconnectHandler),this.provider.off(core_dist_index_es_C.error,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await go();vo(async t=>{e!==t&&(e=t,t?await this.transportOpen().catch(s=>this.logger.error(s,s?.message)):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))})}async onProviderDisconnect(){await this.subscriber.stop(),clearTimeout(this.pingTimeout),this.events.emit(core_dist_index_es_v.disconnect),this.connectionAttemptInProgress=!1,!this.transportExplicitlyClosed&&(this.reconnectTimeout||this.connectPromise||(this.reconnectTimeout=setTimeout(async()=>{clearTimeout(this.reconnectTimeout),await this.transportOpen().catch(e=>this.logger.error(e,e?.message))},(0,cjs.toMiliseconds)(index_es_ht))))}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),!this.connected&&await this.transportOpen()}}var index_es_vn=Object.defineProperty,ai=Object.getOwnPropertySymbols,core_dist_index_es_n=Object.prototype.hasOwnProperty,index_es_En=Object.prototype.propertyIsEnumerable,ci=(o,e,t)=>e in o?index_es_vn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,hi=(o,e)=>{for(var t in e||(e={}))core_dist_index_es_n.call(e,t)&&ci(o,t,e[t]);if(ai)for(var t of ai(e))index_es_En.call(e,t)&&ci(o,t,e[t]);return o};class li extends dist_index_es_p{constructor(e,t,s,i=dist_index_es_A,r=void 0){super(e,t,s,i),this.core=e,this.logger=t,this.name=s,this.map=new Map,this.version=lt,this.cached=[],this.initialized=!1,this.storagePrefix=dist_index_es_A,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>{this.getKey&&n!==null&&!index_es_P(n)?this.map.set(this.getKey(n),n):Xr(n)?this.map.set(n.id,n):eo(n)&&this.map.set(n.topic,n)}),this.cached=[],this.initialized=!0)},this.set=async(n,a)=>{this.isInitialized(),this.map.has(n)?await this.update(n,a):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:n,value:a}),this.map.set(n,a),await this.persist())},this.get=n=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:n}),this.getData(n)),this.getAll=n=>(this.isInitialized(),n?this.values.filter(a=>Object.keys(n).every(c=>lodash_isequal_default()(a[c],n[c]))):this.values),this.update=async(n,a)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:n,update:a});const c=hi(hi({},this.getData(n)),a);this.map.set(n,c),await this.persist()},this.delete=async(n,a)=>{this.isInitialized(),this.map.has(n)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:n,reason:a}),this.map.delete(n),this.addToRecentlyDeleted(n),await this.persist())},this.logger=dist_index_es_E(t,this.name),this.storagePrefix=i,this.getKey=r}get context(){return dist_index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){const t=this.map.get(e);if(!t){if(this.recentlyDeleted.includes(e)){const{message:i}=index_es_S("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(i),new Error(i)}const{message:s}=index_es_S("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(s),new Error(s)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{const e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){const{message:t}=index_es_S("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}}class ui{constructor(e,t){this.core=e,this.logger=t,this.name=index_es_yt,this.version=index_es_Dt,this.events=new (external_events_default()),this.initialized=!1,this.storagePrefix=dist_index_es_A,this.ignoredPayloadTypes=[D],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:s})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...s])]},this.create=async s=>{this.isInitialized();const i=yr(),r=await this.core.crypto.setSymKey(i),n=Lt(cjs.FIVE_MINUTES),a={protocol:nt},c={topic:r,expiry:n,relay:a,active:!1,methods:s?.methods},h=Mr({protocol:this.core.protocol,version:this.core.version,topic:r,symKey:i,relay:a,expiryTimestamp:n,methods:s?.methods});return this.events.emit(index_es_j.create,c),this.core.expirer.set(r,n),await this.pairings.set(r,c),await this.core.relayer.subscribe(r,{transportType:s?.transportType}),{topic:r,uri:h}},this.pair=async s=>{this.isInitialized();const i=this.core.eventClient.createEvent({properties:{topic:s?.uri,trace:[core_dist_index_es_z.pairing_started]}});this.isValidPair(s,i);const{topic:r,symKey:n,relay:a,expiryTimestamp:c,methods:h}=Vr(s.uri);i.props.properties.topic=r,i.addTrace(core_dist_index_es_z.pairing_uri_validation_success),i.addTrace(core_dist_index_es_z.pairing_uri_not_expired);let u;if(this.pairings.keys.includes(r)){if(u=this.pairings.get(r),i.addTrace(core_dist_index_es_z.existing_pairing),u.active)throw i.setError(index_es_$.active_pairing_already_exists),new Error(`Pairing already exists: ${r}. Please try again with a new connection URI.`);i.addTrace(core_dist_index_es_z.pairing_not_expired)}const d=c||Lt(cjs.FIVE_MINUTES),y={topic:r,relay:a,expiry:d,active:!1,methods:h};this.core.expirer.set(r,d),await this.pairings.set(r,y),i.addTrace(core_dist_index_es_z.store_new_pairing),s.activatePairing&&await this.activate({topic:r}),this.events.emit(index_es_j.create,y),i.addTrace(core_dist_index_es_z.emit_inactive_pairing),this.core.crypto.keychain.has(r)||await this.core.crypto.setSymKey(n,r),i.addTrace(core_dist_index_es_z.subscribing_pairing_topic);try{await this.core.relayer.confirmOnlineStateOrThrow()}catch{i.setError(index_es_$.no_internet_connection)}try{await this.core.relayer.subscribe(r,{relay:a})}catch(m){throw i.setError(index_es_$.subscribe_pairing_topic_failure),m}return i.addTrace(core_dist_index_es_z.subscribe_pairing_topic_success),y},this.activate=async({topic:s})=>{this.isInitialized();const i=Lt(cjs.THIRTY_DAYS);this.core.expirer.set(s,i),await this.pairings.update(s,{active:!0,expiry:i})},this.ping=async s=>{this.isInitialized(),await this.isValidPing(s);const{topic:i}=s;if(this.pairings.keys.includes(i)){const r=await this.sendRequest(i,"wc_pairingPing",{}),{done:n,resolve:a,reject:c}=Dt();this.events.once(qt("pairing_ping",r),({error:h})=>{h?c(h):a()}),await n()}},this.updateExpiry=async({topic:s,expiry:i})=>{this.isInitialized(),await this.pairings.update(s,{expiry:i})},this.updateMetadata=async({topic:s,metadata:i})=>{this.isInitialized(),await this.pairings.update(s,{peerMetadata:i})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async s=>{this.isInitialized(),await this.isValidDisconnect(s);const{topic:i}=s;this.pairings.keys.includes(i)&&(await this.sendRequest(i,"wc_pairingDelete",index_es_("USER_DISCONNECTED")),await this.deletePairing(i))},this.formatUriFromPairing=s=>{this.isInitialized();const{topic:i,relay:r,expiry:n,methods:a}=s,c=this.core.crypto.keychain.get(i);return Mr({protocol:this.core.protocol,version:this.core.version,topic:i,symKey:c,relay:r,expiryTimestamp:n,methods:a})},this.sendRequest=async(s,i,r)=>{const n=formatJsonRpcRequest(i,r),a=await this.core.crypto.encode(s,n),c=index_es_V[i].req;return this.core.history.set(s,n),this.core.relayer.publish(s,a,c),n.id},this.sendResult=async(s,i,r)=>{const n=formatJsonRpcResult(s,r),a=await this.core.crypto.encode(i,n),c=await this.core.history.get(i,s),h=index_es_V[c.request.method].res;await this.core.relayer.publish(i,a,h),await this.core.history.resolve(n)},this.sendError=async(s,i,r)=>{const n=formatJsonRpcError(s,r),a=await this.core.crypto.encode(i,n),c=await this.core.history.get(i,s),h=index_es_V[c.request.method]?index_es_V[c.request.method].res:index_es_V.unregistered_method.res;await this.core.relayer.publish(i,a,h),await this.core.history.resolve(n)},this.deletePairing=async(s,i)=>{await this.core.relayer.unsubscribe(s),await Promise.all([this.pairings.delete(s,index_es_("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(s),i?Promise.resolve():this.core.expirer.del(s)])},this.cleanup=async()=>{const s=this.pairings.getAll().filter(i=>Ft(i.expiry));await Promise.all(s.map(i=>this.deletePairing(i.topic)))},this.onRelayEventRequest=s=>{const{topic:i,payload:r}=s;switch(r.method){case"wc_pairingPing":return this.onPairingPingRequest(i,r);case"wc_pairingDelete":return this.onPairingDeleteRequest(i,r);default:return this.onUnknownRpcMethodRequest(i,r)}},this.onRelayEventResponse=async s=>{const{topic:i,payload:r}=s,n=(await this.core.history.get(i,r.id)).request.method;switch(n){case"wc_pairingPing":return this.onPairingPingResponse(i,r);default:return this.onUnknownRpcMethodResponse(n)}},this.onPairingPingRequest=async(s,i)=>{const{id:r}=i;try{this.isValidPing({topic:s}),await this.sendResult(r,s,!0),this.events.emit(index_es_j.ping,{id:r,topic:s})}catch(n){await this.sendError(r,s,n),this.logger.error(n)}},this.onPairingPingResponse=(s,i)=>{const{id:r}=i;setTimeout(()=>{isJsonRpcResult(i)?this.events.emit(qt("pairing_ping",r),{}):isJsonRpcError(i)&&this.events.emit(qt("pairing_ping",r),{error:i.error})},500)},this.onPairingDeleteRequest=async(s,i)=>{const{id:r}=i;try{this.isValidDisconnect({topic:s}),await this.deletePairing(s),this.events.emit(index_es_j.delete,{id:r,topic:s})}catch(n){await this.sendError(r,s,n),this.logger.error(n)}},this.onUnknownRpcMethodRequest=async(s,i)=>{const{id:r,method:n}=i;try{if(this.registeredMethods.includes(n))return;const a=index_es_("WC_METHOD_UNSUPPORTED",n);await this.sendError(r,s,a),this.logger.error(a)}catch(a){await this.sendError(r,s,a),this.logger.error(a)}},this.onUnknownRpcMethodResponse=s=>{this.registeredMethods.includes(s)||this.logger.error(index_es_("WC_METHOD_UNSUPPORTED",s))},this.isValidPair=(s,i)=>{var r;if(!so(s)){const{message:a}=index_es_S("MISSING_OR_INVALID",`pair() params: ${s}`);throw i.setError(index_es_$.malformed_pairing_uri),new Error(a)}if(!Zr(s.uri)){const{message:a}=index_es_S("MISSING_OR_INVALID",`pair() uri: ${s.uri}`);throw i.setError(index_es_$.malformed_pairing_uri),new Error(a)}const n=Vr(s?.uri);if(!((r=n?.relay)!=null&&r.protocol)){const{message:a}=index_es_S("MISSING_OR_INVALID","pair() uri#relay-protocol");throw i.setError(index_es_$.malformed_pairing_uri),new Error(a)}if(!(n!=null&&n.symKey)){const{message:a}=index_es_S("MISSING_OR_INVALID","pair() uri#symKey");throw i.setError(index_es_$.malformed_pairing_uri),new Error(a)}if(n!=null&&n.expiryTimestamp&&(0,cjs.toMiliseconds)(n?.expiryTimestamp){if(!so(s)){const{message:r}=index_es_S("MISSING_OR_INVALID",`ping() params: ${s}`);throw new Error(r)}const{topic:i}=s;await this.isValidPairingTopic(i)},this.isValidDisconnect=async s=>{if(!so(s)){const{message:r}=index_es_S("MISSING_OR_INVALID",`disconnect() params: ${s}`);throw new Error(r)}const{topic:i}=s;await this.isValidPairingTopic(i)},this.isValidPairingTopic=async s=>{if(!index_es_b(s,!1)){const{message:i}=index_es_S("MISSING_OR_INVALID",`pairing topic should be a string: ${s}`);throw new Error(i)}if(!this.pairings.keys.includes(s)){const{message:i}=index_es_S("NO_MATCHING_KEY",`pairing topic doesn't exist: ${s}`);throw new Error(i)}if(Ft(this.pairings.get(s).expiry)){await this.deletePairing(s);const{message:i}=index_es_S("EXPIRED",`pairing topic: ${s}`);throw new Error(i)}},this.core=e,this.logger=dist_index_es_E(t,this.name),this.pairings=new li(this.core,this.logger,this.name,this.storagePrefix)}get context(){return dist_index_es_y(this.logger)}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(core_dist_index_es_v.message,async e=>{const{topic:t,message:s,transportType:i}=e;if(!this.pairings.keys.includes(t)||i===dist_index_es_M.link_mode||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(s)))return;const r=await this.core.crypto.decode(t,s);try{isJsonRpcRequest(r)?(this.core.history.set(t,r),this.onRelayEventRequest({topic:t,payload:r})):isJsonRpcResponse(r)&&(await this.core.history.resolve(r),await this.onRelayEventResponse({topic:t,payload:r}),this.core.history.delete(t,r.id))}catch(n){this.logger.error(n)}})}registerExpirerEvents(){this.core.expirer.on(core_dist_index_es_x.expired,async e=>{const{topic:t}=Kt(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit(index_es_j.expire,{topic:t}))})}}class di extends dist_index_es_h{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new external_events_.EventEmitter,this.name=index_es_mt,this.version=index_es_bt,this.cached=[],this.initialized=!1,this.storagePrefix=dist_index_es_A,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>this.records.set(s.id,s)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(s,i,r)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:s,request:i,chainId:r}),this.records.has(i.id))return;const n={id:i.id,topic:s,request:{method:i.method,params:i.params||null},chainId:r,expiry:Lt(cjs.THIRTY_DAYS)};this.records.set(n.id,n),this.persist(),this.events.emit(dist_index_es_R.created,n)},this.resolve=async s=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:s}),!this.records.has(s.id))return;const i=await this.getRecord(s.id);typeof i.response>"u"&&(i.response=isJsonRpcError(s)?{error:s.error}:{result:s.result},this.records.set(i.id,i),this.persist(),this.events.emit(dist_index_es_R.updated,i))},this.get=async(s,i)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:s,id:i}),await this.getRecord(i)),this.delete=(s,i)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:i}),this.values.forEach(r=>{if(r.topic===s){if(typeof i<"u"&&r.id!==i)return;this.records.delete(r.id),this.events.emit(dist_index_es_R.deleted,r)}}),this.persist()},this.exists=async(s,i)=>(this.isInitialized(),this.records.has(i)?(await this.getRecord(i)).topic===s:!1),this.on=(s,i)=>{this.events.on(s,i)},this.once=(s,i)=>{this.events.once(s,i)},this.off=(s,i)=>{this.events.off(s,i)},this.removeListener=(s,i)=>{this.events.removeListener(s,i)},this.logger=dist_index_es_E(t,this.name)}get context(){return dist_index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const e=[];return this.values.forEach(t=>{if(typeof t.response<"u")return;const s={topic:t.topic,request:formatJsonRpcRequest(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(s)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();const t=this.records.get(e);if(!t){const{message:s}=index_es_S("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(s)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(dist_index_es_R.sync)}async restore(){try{const e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){const{message:t}=index_es_S("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(dist_index_es_R.created,e=>{const t=dist_index_es_R.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.events.on(dist_index_es_R.updated,e=>{const t=dist_index_es_R.updated;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.events.on(dist_index_es_R.deleted,e=>{const t=dist_index_es_R.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.core.heartbeat.on(r.pulse,()=>{this.cleanup()})}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach(t=>{(0,cjs.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${t.id}`),this.records.delete(t.id),this.events.emit(dist_index_es_R.deleted,t,!1),e=!0)}),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}}class pi extends dist_index_es_x{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new external_events_.EventEmitter,this.name=index_es_ft,this.version=index_es_vt,this.cached=[],this.initialized=!1,this.storagePrefix=dist_index_es_A,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>this.expirations.set(s.target,s)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=s=>{try{const i=this.formatTarget(s);return typeof this.getExpiration(i)<"u"}catch{return!1}},this.set=(s,i)=>{this.isInitialized();const r=this.formatTarget(s),n={target:r,expiry:i};this.expirations.set(r,n),this.checkExpiry(r,n),this.events.emit(core_dist_index_es_x.created,{target:r,expiration:n})},this.get=s=>{this.isInitialized();const i=this.formatTarget(s);return this.getExpiration(i)},this.del=s=>{if(this.isInitialized(),this.has(s)){const i=this.formatTarget(s),r=this.getExpiration(i);this.expirations.delete(i),this.events.emit(core_dist_index_es_x.deleted,{target:i,expiration:r})}},this.on=(s,i)=>{this.events.on(s,i)},this.once=(s,i)=>{this.events.once(s,i)},this.off=(s,i)=>{this.events.off(s,i)},this.removeListener=(s,i)=>{this.events.removeListener(s,i)},this.logger=dist_index_es_E(t,this.name)}get context(){return dist_index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if(typeof e=="string")return Vt(e);if(typeof e=="number")return Mt(e);const{message:t}=index_es_S("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw new Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(core_dist_index_es_x.sync)}async restore(){try{const e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){const{message:t}=index_es_S("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){const t=this.expirations.get(e);if(!t){const{message:s}=index_es_S("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.warn(s),new Error(s)}return t}checkExpiry(e,t){const{expiry:s}=t;(0,cjs.toMiliseconds)(s)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(core_dist_index_es_x.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,t)=>this.checkExpiry(t,e))}registerEventListeners(){this.core.heartbeat.on(r.pulse,()=>this.checkExpirations()),this.events.on(core_dist_index_es_x.created,e=>{const t=core_dist_index_es_x.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(core_dist_index_es_x.expired,e=>{const t=core_dist_index_es_x.expired;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(core_dist_index_es_x.deleted,e=>{const t=core_dist_index_es_x.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})}isInitialized(){if(!this.initialized){const{message:e}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(e)}}}class gi extends types_dist_index_es_y{constructor(e,t,s){super(e,t,s),this.core=e,this.logger=t,this.store=s,this.name=index_es_t,this.verifyUrlV3=index_es_wt,this.storagePrefix=dist_index_es_A,this.version=index_es_De,this.init=async()=>{var i;this.isDevEnv||(this.publicKey=await this.store.getItem(this.storeKey),this.publicKey&&(0,cjs.toMiliseconds)((i=this.publicKey)==null?void 0:i.expiresAt){if(!V()||this.isDevEnv)return;const r=window.location.origin,{id:n,decryptedId:a}=i,c=`${this.verifyUrlV3}/attestation?projectId=${this.core.projectId}&origin=${r}&id=${n}&decryptedId=${a}`;try{const h=(0,dist_cjs.getDocument)(),u=this.startAbortTimer(cjs.ONE_SECOND*5),d=await new Promise((y,m)=>{const l=()=>{window.removeEventListener("message",w),h.body.removeChild(g),m("attestation aborted")};this.abortController.signal.addEventListener("abort",l);const g=h.createElement("iframe");g.src=c,g.style.display="none",g.addEventListener("error",l,{signal:this.abortController.signal});const w=b=>{if(b.data&&typeof b.data=="string")try{const D=JSON.parse(b.data);if(D.type==="verify_attestation"){if(utils_decodeJWT(D.attestation).payload.id!==n)return;clearInterval(u),h.body.removeChild(g),this.abortController.signal.removeEventListener("abort",l),window.removeEventListener("message",w),y(D.attestation===null?"":D.attestation)}}catch(D){this.logger.warn(D)}};h.body.appendChild(g),window.addEventListener("message",w,{signal:this.abortController.signal})});return this.logger.debug("jwt attestation",d),d}catch(h){this.logger.warn(h)}return""},this.resolve=async i=>{if(this.isDevEnv)return"";const{attestationId:r,hash:n,encryptedId:a}=i;if(r===""){this.logger.debug("resolve: attestationId is empty, skipping");return}if(r){if(utils_decodeJWT(r).payload.id!==a)return;const h=await this.isValidJwtAttestation(r);if(h){if(!h.isVerified){this.logger.warn("resolve: jwt attestation: origin url not verified");return}return h}}if(!n)return;const c=this.getVerifyUrl(i?.verifyUrl);return this.fetchAttestation(n,c)},this.fetchAttestation=async(i,r)=>{this.logger.debug(`resolving attestation: ${i} from url: ${r}`);const n=this.startAbortTimer(cjs.ONE_SECOND*5),a=await fetch(`${r}/attestation/${i}?v2Supported=true`,{signal:this.abortController.signal});return clearTimeout(n),a.status===200?await a.json():void 0},this.getVerifyUrl=i=>{let r=i||index_es_X;return index_es_It.includes(r)||(this.logger.info(`verify url: ${r}, not included in trusted list, assigning default: ${index_es_X}`),r=index_es_X),r},this.fetchPublicKey=async()=>{try{this.logger.debug(`fetching public key from: ${this.verifyUrlV3}`);const i=this.startAbortTimer(cjs.FIVE_SECONDS),r=await fetch(`${this.verifyUrlV3}/public-key`,{signal:this.abortController.signal});return clearTimeout(i),await r.json()}catch(i){this.logger.warn(i)}},this.persistPublicKey=async i=>{this.logger.debug("persisting public key to local storage",i),await this.store.setItem(this.storeKey,i),this.publicKey=i},this.removePublicKey=async()=>{this.logger.debug("removing verify v2 public key from storage"),await this.store.removeItem(this.storeKey),this.publicKey=void 0},this.isValidJwtAttestation=async i=>{const r=await this.getPublicKey();try{if(r)return this.validateAttestation(i,r)}catch(a){this.logger.error(a),this.logger.warn("error validating attestation")}const n=await this.fetchAndPersistPublicKey();try{if(n)return this.validateAttestation(i,n)}catch(a){this.logger.error(a),this.logger.warn("error validating attestation")}},this.getPublicKey=async()=>this.publicKey?this.publicKey:await this.fetchAndPersistPublicKey(),this.fetchAndPersistPublicKey=async()=>{if(this.fetchPromise)return await this.fetchPromise,this.publicKey;this.fetchPromise=new Promise(async r=>{const n=await this.fetchPublicKey();n&&(await this.persistPublicKey(n),r(n))});const i=await this.fetchPromise;return this.fetchPromise=void 0,i},this.validateAttestation=(i,r)=>{const n=jr(i,r.publicKey),a={hasExpired:(0,cjs.toMiliseconds)(n.exp)this.abortController.abort(),(0,cjs.toMiliseconds)(e))}}class yi extends index_es_v{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.context=index_es_Tt,this.registerDeviceToken=async s=>{const{clientId:i,token:r,notificationType:n,enableEncrypted:a=!1}=s,c=`${dist_index_es_Ct}/${this.projectId}/clients`;await fetch(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:i,type:n,token:r,always_raw:a})})},this.logger=dist_index_es_E(t,this.context)}}var index_es_wn=Object.defineProperty,Di=Object.getOwnPropertySymbols,index_es_In=Object.prototype.hasOwnProperty,index_es_Tn=Object.prototype.propertyIsEnumerable,mi=(o,e,t)=>e in o?index_es_wn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,index_es_Q=(o,e)=>{for(var t in e||(e={}))index_es_In.call(e,t)&&mi(o,t,e[t]);if(Di)for(var t of Di(e))index_es_Tn.call(e,t)&&mi(o,t,e[t]);return o};class bi extends types_dist_index_es_C{constructor(e,t,s=!0){super(e,t,s),this.core=e,this.logger=t,this.context=index_es_St,this.storagePrefix=dist_index_es_A,this.storageVersion=index_es_Pt,this.events=new Map,this.shouldPersist=!1,this.init=async()=>{if(!zt())try{const i={eventId:Jt(),timestamp:Date.now(),domain:this.getAppDomain(),props:{event:"INIT",type:"",properties:{client_id:await this.core.crypto.getClientId(),user_agent:Ge(this.core.relayer.protocol,this.core.relayer.version,index_es_re)}}};await this.sendEvent([i])}catch(i){this.logger.warn(i)}},this.createEvent=i=>{const{event:r="ERROR",type:n="",properties:{topic:a,trace:c}}=i,h=Jt(),u=this.core.projectId||"",d=Date.now(),y=index_es_Q({eventId:h,timestamp:d,props:{event:r,type:n,properties:{topic:a,trace:c}},bundleId:u,domain:this.getAppDomain()},this.setMethods(h));return this.telemetryEnabled&&(this.events.set(h,y),this.shouldPersist=!0),y},this.getEvent=i=>{const{eventId:r,topic:n}=i;if(r)return this.events.get(r);const a=Array.from(this.events.values()).find(c=>c.props.properties.topic===n);if(a)return index_es_Q(index_es_Q({},a),this.setMethods(a.eventId))},this.deleteEvent=i=>{const{eventId:r}=i;this.events.delete(r),this.shouldPersist=!0},this.setEventListeners=()=>{this.core.heartbeat.on(r.pulse,async()=>{this.shouldPersist&&await this.persist(),this.events.forEach(i=>{(0,cjs.fromMiliseconds)(Date.now())-(0,cjs.fromMiliseconds)(i.timestamp)>index_es_Rt&&(this.events.delete(i.eventId),this.shouldPersist=!0)})})},this.setMethods=i=>({addTrace:r=>this.addTrace(i,r),setError:r=>this.setError(i,r)}),this.addTrace=(i,r)=>{const n=this.events.get(i);n&&(n.props.properties.trace.push(r),this.events.set(i,n),this.shouldPersist=!0)},this.setError=(i,r)=>{const n=this.events.get(i);n&&(n.props.type=r,n.timestamp=Date.now(),this.events.set(i,n),this.shouldPersist=!0)},this.persist=async()=>{await this.core.storage.setItem(this.storageKey,Array.from(this.events.values())),this.shouldPersist=!1},this.restore=async()=>{try{const i=await this.core.storage.getItem(this.storageKey)||[];if(!i.length)return;i.forEach(r=>{this.events.set(r.eventId,index_es_Q(index_es_Q({},r),this.setMethods(r.eventId)))})}catch(i){this.logger.warn(i)}},this.submit=async()=>{if(!this.telemetryEnabled||this.events.size===0)return;const i=[];for(const[r,n]of this.events)n.props.type&&i.push(n);if(i.length!==0)try{if((await this.sendEvent(i)).ok)for(const r of i)this.events.delete(r.eventId),this.shouldPersist=!0}catch(r){this.logger.warn(r)}},this.sendEvent=async i=>{const r=this.getAppDomain()?"":"&sp=desktop";return await fetch(`${index_es_xt}?projectId=${this.core.projectId}&st=events_sdk&sv=js-${index_es_re}${r}`,{method:"POST",body:JSON.stringify(i)})},this.getAppDomain=()=>$t().url,this.logger=dist_index_es_E(t,this.context),this.telemetryEnabled=s,s?this.restore().then(async()=>{await this.submit(),this.setEventListeners()}):this.persist()}get storageKey(){return this.storagePrefix+this.storageVersion+this.core.customStoragePrefix+"//"+this.context}}var index_es_Cn=Object.defineProperty,fi=Object.getOwnPropertySymbols,index_es_Pn=Object.prototype.hasOwnProperty,index_es_Sn=Object.prototype.propertyIsEnumerable,vi=(o,e,t)=>e in o?index_es_Cn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,_i=(o,e)=>{for(var t in e||(e={}))index_es_Pn.call(e,t)&&vi(o,t,e[t]);if(fi)for(var t of fi(e))index_es_Sn.call(e,t)&&vi(o,t,e[t]);return o};class index_es_oe extends types_dist_index_es_n{constructor(e){var t;super(e),this.protocol=index_es_ye,this.version=index_es_De,this.name=index_es_J,this.events=new external_events_.EventEmitter,this.initialized=!1,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.dispatchEnvelope=({topic:n,message:a,sessionExists:c})=>{if(!n||!a)return;const h={topic:n,message:a,publishedAt:Date.now(),transportType:dist_index_es_M.link_mode};this.relayer.onLinkMessageEvent(h,{sessionExists:c})},this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||fe,this.customStoragePrefix=e!=null&&e.customStoragePrefix?`:${e.customStoragePrefix}`:"";const s=logger_dist_index_es_k({level:typeof e?.logger=="string"&&e.logger?e.logger:index_es_Xe.logger,name:index_es_J}),{logger:i,chunkLoggerController:r}=index_es_A({opts:s,maxSizeInBytes:e?.maxLogBlobSizeInBytes,loggerOverride:e?.logger});this.logChunkController=r,(t=this.logChunkController)!=null&&t.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var n,a;(n=this.logChunkController)!=null&&n.downloadLogsBlobInBrowser&&((a=this.logChunkController)==null||a.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=dist_index_es_E(i,this.name),this.heartbeat=new index_es_i,this.crypto=new index_es_Yt(this,this.logger,e?.keychain),this.history=new di(this,this.logger),this.expirer=new pi(this,this.logger),this.storage=e!=null&&e.storage?e.storage:new index_es_h(_i(_i({},index_es_We),e?.storageOptions)),this.relayer=new oi({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new ui(this,this.logger),this.verify=new gi(this,this.logger,this.storage),this.echoClient=new yi(this.projectId||"",this.logger),this.linkModeSupportedApps=[],this.eventClient=new bi(this,this.logger,e?.telemetryEnabled)}static async init(e){const t=new index_es_oe(e);await t.initialize();const s=await t.crypto.getClientId();return await t.storage.setItem(ut,s),t}get context(){return dist_index_es_y(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return(e=this.logChunkController)==null?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async addLinkModeSupportedApp(e){this.linkModeSupportedApps.includes(e)||(this.linkModeSupportedApps.push(e),await this.storage.setItem(index_es_ve,this.linkModeSupportedApps))}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.eventClient.init(),this.linkModeSupportedApps=await this.storage.getItem(index_es_ve)||[],this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}}const index_es_Rn=index_es_oe; //# sourceMappingURL=index.es.js.map ;// ./node_modules/@walletconnect/sign-client/dist/index.es.js -const dist_index_es_be="wc",Ce=2,index_es_Le="client",dist_index_es_ye=`${dist_index_es_be}@${Ce}:${index_es_Le}:`,dist_index_es_we={name:index_es_Le,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.org"},cs={session_proposal:"session_proposal",session_update:"session_update",session_extend:"session_extend",session_ping:"session_ping",session_delete:"session_delete",session_expire:"session_expire",session_request:"session_request",session_request_sent:"session_request_sent",session_event:"session_event",proposal_expire:"proposal_expire",session_authenticate:"session_authenticate",session_request_expire:"session_request_expire"},ls={database:":memory:"},index_es_xe="WALLETCONNECT_DEEPLINK_CHOICE",ps={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},hs="history",ds="0.3",index_es_st="proposal",us=(/* unused pure expression or super */ null && (ss)),index_es_it="Proposal expired",index_es_rt="session",sign_client_dist_index_es_z=cjs.SEVEN_DAYS,index_es_nt="engine",sign_client_dist_index_es_v={wc_sessionPropose:{req:{ttl:cjs.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:cjs.ONE_DAY,prompt:!1,tag:1104},res:{ttl:cjs.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:cjs.ONE_DAY,prompt:!1,tag:1106},res:{ttl:cjs.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:cjs.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:cjs.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:cjs.ONE_DAY,prompt:!1,tag:1112},res:{ttl:cjs.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:cjs.ONE_DAY,prompt:!1,tag:1114},res:{ttl:cjs.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:cjs.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:cjs.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1119}}},dist_index_es_me={min:cjs.FIVE_MINUTES,max:cjs.SEVEN_DAYS},sign_client_dist_index_es_x={idle:"IDLE",active:"ACTIVE"},index_es_ot="request",index_es_at=["wc_sessionPropose","wc_sessionRequest","wc_authRequest","wc_sessionAuthenticate"],index_es_ct="wc",gs=1.5,index_es_lt="auth",dist_index_es_pt="authKeys",dist_index_es_ht="pairingTopics",index_es_dt="requests",index_es_oe=`${index_es_ct}@${1.5}:${index_es_lt}:`,index_es_ae=`${index_es_oe}:PUB_KEY`;var ys=Object.defineProperty,index_es_ws=Object.defineProperties,index_es_ms=Object.getOwnPropertyDescriptors,index_es_ut=Object.getOwnPropertySymbols,index_es_s=Object.prototype.hasOwnProperty,index_es_Es=Object.prototype.propertyIsEnumerable,dist_index_es_gt=(q,o,e)=>o in q?ys(q,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):q[o]=e,sign_client_dist_index_es_I=(q,o)=>{for(var e in o||(o={}))index_es_s.call(o,e)&&dist_index_es_gt(q,e,o[e]);if(index_es_ut)for(var e of index_es_ut(o))index_es_Es.call(o,e)&&dist_index_es_gt(q,e,o[e]);return q},dist_index_es_D=(q,o)=>index_es_ws(q,index_es_ms(o));class index_es_Rs extends M{constructor(o){super(o),this.name=index_es_nt,this.events=new (external_events_default()),this.initialized=!1,this.requestQueue={state:sign_client_dist_index_es_x.idle,queue:[]},this.sessionRequestQueue={state:sign_client_dist_index_es_x.idle,queue:[]},this.requestQueueDelay=cjs.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.relayMessageCache=[],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),await this.registerLinkModeListeners(),this.client.core.pairing.register({methods:Object.keys(sign_client_dist_index_es_v)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},(0,cjs.toMiliseconds)(this.requestQueueDelay)))},this.connect=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();const t=dist_index_es_D(sign_client_dist_index_es_I({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});await this.isValidConnect(t);const{pairingTopic:s,requiredNamespaces:i,optionalNamespaces:r,sessionProperties:n,relays:a}=t;let c=s,h,p=!1;try{c&&(p=this.client.core.pairing.pairings.get(c).active)}catch(E){throw this.client.logger.error(`connect() -> pairing.get(${c}) failed`),E}if(!c||!p){const{topic:E,uri:S}=await this.client.core.pairing.create();c=E,h=S}if(!c){const{message:E}=index_es_S("NO_MATCHING_KEY",`connect() pairing topic: ${c}`);throw new Error(E)}const d=await this.client.core.crypto.generateKeyPair(),l=sign_client_dist_index_es_v.wc_sessionPropose.req.ttl||cjs.FIVE_MINUTES,w=Mt(l),m=sign_client_dist_index_es_I({requiredNamespaces:i,optionalNamespaces:r,relays:a??[{protocol:rt}],proposer:{publicKey:d,metadata:this.client.metadata},expiryTimestamp:w,pairingTopic:c},n&&{sessionProperties:n}),{reject:y,resolve:_,done:R}=_t(l,index_es_it);this.events.once(Lt("session_connect"),async({error:E,session:S})=>{if(E)y(E);else if(S){S.self.publicKey=d;const M=dist_index_es_D(sign_client_dist_index_es_I({},S),{pairingTopic:m.pairingTopic,requiredNamespaces:m.requiredNamespaces,optionalNamespaces:m.optionalNamespaces,transportType:dist_index_es_M.relay});await this.client.session.set(S.topic,M),await this.setExpiry(S.topic,S.expiry),c&&await this.client.core.pairing.updateMetadata({topic:c,metadata:S.peer.metadata}),this.cleanupDuplicatePairings(M),_(M)}});const V=await this.sendRequest({topic:c,method:"wc_sessionPropose",params:m,throwOnFailedPublish:!0});return await this.setProposal(V,sign_client_dist_index_es_I({id:V},m)),{uri:h,approval:R}},this.pair=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{return await this.client.core.pairing.pair(e)}catch(t){throw this.client.logger.error("pair() failed"),t}},this.approve=async e=>{var t,s,i;const r=this.client.core.eventClient.createEvent({properties:{topic:(t=e?.id)==null?void 0:t.toString(),trace:[Is.session_approve_started]}});try{this.isInitialized(),await this.confirmOnlineStateOrThrow()}catch(N){throw r.setError(Ts.no_internet_connection),N}try{await this.isValidProposalId(e?.id)}catch(N){throw this.client.logger.error(`approve() -> proposal.get(${e?.id}) failed`),r.setError(Ts.proposal_not_found),N}try{await this.isValidApprove(e)}catch(N){throw this.client.logger.error("approve() -> isValidApprove() failed"),r.setError(Ts.session_approve_namespace_validation_failure),N}const{id:n,relayProtocol:a,namespaces:c,sessionProperties:h,sessionConfig:p}=e,d=this.client.proposal.get(n);this.client.core.eventClient.deleteEvent({eventId:r.eventId});const{pairingTopic:l,proposer:w,requiredNamespaces:m,optionalNamespaces:y}=d;let _=(s=this.client.core.eventClient)==null?void 0:s.getEvent({topic:l});_||(_=(i=this.client.core.eventClient)==null?void 0:i.createEvent({type:Is.session_approve_started,properties:{topic:l,trace:[Is.session_approve_started,Is.session_namespaces_validation_success]}}));const R=await this.client.core.crypto.generateKeyPair(),V=w.publicKey,E=await this.client.core.crypto.generateSharedKey(R,V),S=sign_client_dist_index_es_I(sign_client_dist_index_es_I({relay:{protocol:a??"irn"},namespaces:c,controller:{publicKey:R,metadata:this.client.metadata},expiry:Mt(sign_client_dist_index_es_z)},h&&{sessionProperties:h}),p&&{sessionConfig:p}),M=dist_index_es_M.relay;_.addTrace(Is.subscribing_session_topic);try{await this.client.core.relayer.subscribe(E,{transportType:M})}catch(N){throw _.setError(Ts.subscribe_session_topic_failure),N}_.addTrace(Is.subscribe_session_topic_success);const W=dist_index_es_D(sign_client_dist_index_es_I({},S),{topic:E,requiredNamespaces:m,optionalNamespaces:y,pairingTopic:l,acknowledged:!1,self:S.controller,peer:{publicKey:w.publicKey,metadata:w.metadata},controller:R,transportType:dist_index_es_M.relay});await this.client.session.set(E,W),_.addTrace(Is.store_session);try{_.addTrace(Is.publishing_session_settle),await this.sendRequest({topic:E,method:"wc_sessionSettle",params:S,throwOnFailedPublish:!0}).catch(N=>{throw _?.setError(Ts.session_settle_publish_failure),N}),_.addTrace(Is.session_settle_publish_success),_.addTrace(Is.publishing_session_approve),await this.sendResult({id:n,topic:l,result:{relay:{protocol:a??"irn"},responderPublicKey:R},throwOnFailedPublish:!0}).catch(N=>{throw _?.setError(Ts.session_approve_publish_failure),N}),_.addTrace(Is.session_approve_publish_success)}catch(N){throw this.client.logger.error(N),this.client.session.delete(E,U("USER_DISCONNECTED")),await this.client.core.relayer.unsubscribe(E),N}return this.client.core.eventClient.deleteEvent({eventId:_.eventId}),await this.client.core.pairing.updateMetadata({topic:l,metadata:w.metadata}),await this.client.proposal.delete(n,U("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:l}),await this.setExpiry(E,Mt(sign_client_dist_index_es_z)),{topic:E,acknowledged:()=>Promise.resolve(this.client.session.get(E))}},this.reject=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidReject(e)}catch(r){throw this.client.logger.error("reject() -> isValidReject() failed"),r}const{id:t,reason:s}=e;let i;try{i=this.client.proposal.get(t).pairingTopic}catch(r){throw this.client.logger.error(`reject() -> proposal.get(${t}) failed`),r}i&&(await this.sendError({id:t,topic:i,error:s,rpcOpts:sign_client_dist_index_es_v.wc_sessionPropose.reject}),await this.client.proposal.delete(t,U("USER_DISCONNECTED")))},this.update=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidUpdate(e)}catch(p){throw this.client.logger.error("update() -> isValidUpdate() failed"),p}const{topic:t,namespaces:s}=e,{done:i,resolve:r,reject:n}=_t(),a=payloadId(),c=getBigIntRpcId().toString(),h=this.client.session.get(t).namespaces;return this.events.once(Lt("session_update",a),({error:p})=>{p?n(p):r()}),await this.client.session.update(t,{namespaces:s}),await this.sendRequest({topic:t,method:"wc_sessionUpdate",params:{namespaces:s},throwOnFailedPublish:!0,clientRpcId:a,relayRpcId:c}).catch(p=>{this.client.logger.error(p),this.client.session.update(t,{namespaces:h}),n(p)}),{acknowledged:i}},this.extend=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidExtend(e)}catch(a){throw this.client.logger.error("extend() -> isValidExtend() failed"),a}const{topic:t}=e,s=payloadId(),{done:i,resolve:r,reject:n}=_t();return this.events.once(Lt("session_extend",s),({error:a})=>{a?n(a):r()}),await this.setExpiry(t,Mt(sign_client_dist_index_es_z)),this.sendRequest({topic:t,method:"wc_sessionExtend",params:{},clientRpcId:s,throwOnFailedPublish:!0}).catch(a=>{n(a)}),{acknowledged:i}},this.request=async e=>{this.isInitialized();try{await this.isValidRequest(e)}catch(w){throw this.client.logger.error("request() -> isValidRequest() failed"),w}const{chainId:t,request:s,topic:i,expiry:r=sign_client_dist_index_es_v.wc_sessionRequest.req.ttl}=e,n=this.client.session.get(i);n?.transportType===dist_index_es_M.relay&&await this.confirmOnlineStateOrThrow();const a=payloadId(),c=getBigIntRpcId().toString(),{done:h,resolve:p,reject:d}=_t(r,"Request expired. Please try again.");this.events.once(Lt("session_request",a),({error:w,result:m})=>{w?d(w):p(m)});const l=this.getAppLinkIfEnabled(n.peer.metadata,n.transportType);return l?(await this.sendRequest({clientRpcId:a,relayRpcId:c,topic:i,method:"wc_sessionRequest",params:{request:dist_index_es_D(sign_client_dist_index_es_I({},s),{expiryTimestamp:Mt(r)}),chainId:t},expiry:r,throwOnFailedPublish:!0,appLink:l}).catch(w=>d(w)),this.client.events.emit("session_request_sent",{topic:i,request:s,chainId:t,id:a}),await h()):await Promise.all([new Promise(async w=>{await this.sendRequest({clientRpcId:a,relayRpcId:c,topic:i,method:"wc_sessionRequest",params:{request:dist_index_es_D(sign_client_dist_index_es_I({},s),{expiryTimestamp:Mt(r)}),chainId:t},expiry:r,throwOnFailedPublish:!0}).catch(m=>d(m)),this.client.events.emit("session_request_sent",{topic:i,request:s,chainId:t,id:a}),w()}),new Promise(async w=>{var m;if(!((m=n.sessionConfig)!=null&&m.disableDeepLink)){const y=await qt(this.client.core.storage,index_es_xe);await Ft({id:a,topic:i,wcDeepLink:y})}w()}),h()]).then(w=>w[2])},this.respond=async e=>{this.isInitialized(),await this.isValidRespond(e);const{topic:t,response:s}=e,{id:i}=s,r=this.client.session.get(t);r.transportType===dist_index_es_M.relay&&await this.confirmOnlineStateOrThrow();const n=this.getAppLinkIfEnabled(r.peer.metadata,r.transportType);isJsonRpcResult(s)?await this.sendResult({id:i,topic:t,result:s.result,throwOnFailedPublish:!0,appLink:n}):isJsonRpcError(s)&&await this.sendError({id:i,topic:t,error:s.error,appLink:n}),this.cleanupAfterResponse(e)},this.ping=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidPing(e)}catch(s){throw this.client.logger.error("ping() -> isValidPing() failed"),s}const{topic:t}=e;if(this.client.session.keys.includes(t)){const s=payloadId(),i=getBigIntRpcId().toString(),{done:r,resolve:n,reject:a}=_t();this.events.once(Lt("session_ping",s),({error:c})=>{c?a(c):n()}),await Promise.all([this.sendRequest({topic:t,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:s,relayRpcId:i}),r()])}else this.client.core.pairing.pairings.keys.includes(t)&&await this.client.core.pairing.ping({topic:t})},this.emit=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidEmit(e);const{topic:t,event:s,chainId:i}=e,r=getBigIntRpcId().toString();await this.sendRequest({topic:t,method:"wc_sessionEvent",params:{event:s,chainId:i},throwOnFailedPublish:!0,relayRpcId:r})},this.disconnect=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidDisconnect(e);const{topic:t}=e;if(this.client.session.keys.includes(t))await this.sendRequest({topic:t,method:"wc_sessionDelete",params:U("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession({topic:t,emitEvent:!1});else if(this.client.core.pairing.pairings.keys.includes(t))await this.client.core.pairing.disconnect({topic:t});else{const{message:s}=index_es_S("MISMATCHED_TOPIC",`Session or pairing topic not found: ${t}`);throw new Error(s)}},this.find=e=>(this.isInitialized(),this.client.session.getAll().filter(t=>zr(t,e))),this.getPendingSessionRequests=()=>this.client.pendingRequest.getAll(),this.authenticate=async(e,t)=>{var s;this.isInitialized(),this.isValidAuthenticate(e);const i=t&&this.client.core.linkModeSupportedApps.includes(t)&&((s=this.client.metadata.redirect)==null?void 0:s.linkMode),r=i?dist_index_es_M.link_mode:dist_index_es_M.relay;r===dist_index_es_M.relay&&await this.confirmOnlineStateOrThrow();const{chains:n,statement:a="",uri:c,domain:h,nonce:p,type:d,exp:l,nbf:w,methods:m=[],expiry:y}=e,_=[...e.resources||[]],{topic:R,uri:V}=await this.client.core.pairing.create({methods:["wc_sessionAuthenticate"],transportType:r});this.client.logger.info({message:"Generated new pairing",pairing:{topic:R,uri:V}});const E=await this.client.core.crypto.generateKeyPair(),S=hr(E);if(await Promise.all([this.client.auth.authKeys.set(index_es_ae,{responseTopic:S,publicKey:E}),this.client.auth.pairingTopics.set(S,{topic:S,pairingTopic:R})]),await this.client.core.relayer.subscribe(S,{transportType:r}),this.client.logger.info(`sending request to new pairing topic: ${R}`),m.length>0){const{namespace:O}=re(n[0]);let T=ir(O,"request",m);Y(_)&&(T=cr(T,_.pop())),_.push(T)}const M=y&&y>sign_client_dist_index_es_v.wc_sessionAuthenticate.req.ttl?y:sign_client_dist_index_es_v.wc_sessionAuthenticate.req.ttl,W={authPayload:{type:d??"caip122",chains:n,statement:a,aud:c,domain:h,version:"1",nonce:p,iat:new Date().toISOString(),exp:l,nbf:w,resources:_},requester:{publicKey:E,metadata:this.client.metadata},expiryTimestamp:Mt(M)},N={eip155:{chains:n,methods:[...new Set(["personal_sign",...m])],events:["chainChanged","accountsChanged"]}},De={requiredNamespaces:{},optionalNamespaces:N,relays:[{protocol:"irn"}],pairingTopic:R,proposer:{publicKey:E,metadata:this.client.metadata},expiryTimestamp:Mt(sign_client_dist_index_es_v.wc_sessionPropose.req.ttl)},{done:wt,resolve:Ve,reject:Ee}=_t(M,"Request expired"),ce=async({error:O,session:T})=>{if(this.events.off(Lt("session_request",G),Re),O)Ee(O);else if(T){T.self.publicKey=E,await this.client.session.set(T.topic,T),await this.setExpiry(T.topic,T.expiry),R&&await this.client.core.pairing.updateMetadata({topic:R,metadata:T.peer.metadata});const le=this.client.session.get(T.topic);await this.deleteProposal(Z),Ve({session:le})}},Re=async O=>{var T,le,Me;if(await this.deletePendingAuthRequest(G,{message:"fulfilled",code:0}),O.error){const te=U("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return O.error.code===te.code?void 0:(this.events.off(Lt("session_connect"),ce),Ee(O.error.message))}await this.deleteProposal(Z),this.events.off(Lt("session_connect"),ce);const{cacaos:ke,responder:j}=O.result,Ie=[],$e=[];for(const te of ke){await nr({cacao:te,projectId:this.client.core.projectId})||(this.client.logger.error(te,"Signature verification failed"),Ee(U("SESSION_SETTLEMENT_FAILED","Signature verification failed")));const{p:fe}=te,ve=Y(fe.resources),Ke=[ln(fe.iss)],mt=index_es_fe(fe.iss);if(ve){const qe=ar(ve),_t=ur(ve);Ie.push(...qe),Ke.push(..._t)}for(const qe of Ke)$e.push(`${qe}:${mt}`)}const ee=await this.client.core.crypto.generateSharedKey(E,j.publicKey);let pe;Ie.length>0&&(pe={topic:ee,acknowledged:!0,self:{publicKey:E,metadata:this.client.metadata},peer:j,controller:j.publicKey,expiry:Mt(sign_client_dist_index_es_z),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:R,namespaces:Jr([...new Set(Ie)],[...new Set($e)]),transportType:r},await this.client.core.relayer.subscribe(ee,{transportType:r}),await this.client.session.set(ee,pe),R&&await this.client.core.pairing.updateMetadata({topic:R,metadata:j.metadata}),pe=this.client.session.get(ee)),(T=this.client.metadata.redirect)!=null&&T.linkMode&&(le=j.metadata.redirect)!=null&&le.linkMode&&(Me=j.metadata.redirect)!=null&&Me.universal&&t&&(this.client.core.addLinkModeSupportedApp(j.metadata.redirect.universal),this.client.session.update(ee,{transportType:dist_index_es_M.link_mode})),Ve({auths:ke,session:pe})},G=payloadId(),Z=payloadId();this.events.once(Lt("session_connect"),ce),this.events.once(Lt("session_request",G),Re);let Se;try{if(i){const O=formatJsonRpcRequest("wc_sessionAuthenticate",W,G);this.client.core.history.set(R,O);const T=await this.client.core.crypto.encode("",O,{type:index_es_M,encoding:lr});Se=xr(t,R,T)}else await Promise.all([this.sendRequest({topic:R,method:"wc_sessionAuthenticate",params:W,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:G}),this.sendRequest({topic:R,method:"wc_sessionPropose",params:De,expiry:sign_client_dist_index_es_v.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:Z})])}catch(O){throw this.events.off(Lt("session_connect"),ce),this.events.off(Lt("session_request",G),Re),O}return await this.setProposal(Z,sign_client_dist_index_es_I({id:Z},De)),await this.setAuthRequest(G,{request:dist_index_es_D(sign_client_dist_index_es_I({},W),{verifyContext:{}}),pairingTopic:R,transportType:r}),{uri:Se??V,response:wt}},this.approveSessionAuthenticate=async e=>{const{id:t,auths:s}=e,i=this.client.core.eventClient.createEvent({properties:{topic:t.toString(),trace:[Cs.authenticated_session_approve_started]}});try{this.isInitialized()}catch(y){throw i.setError(Ps.no_internet_connection),y}const r=this.getPendingAuthRequest(t);if(!r)throw i.setError(Ps.authenticated_session_pending_request_not_found),new Error(`Could not find pending auth request with id ${t}`);const n=r.transportType||dist_index_es_M.relay;n===dist_index_es_M.relay&&await this.confirmOnlineStateOrThrow();const a=r.requester.publicKey,c=await this.client.core.crypto.generateKeyPair(),h=hr(a),p={type:D,receiverPublicKey:a,senderPublicKey:c},d=[],l=[];for(const y of s){if(!await nr({cacao:y,projectId:this.client.core.projectId})){i.setError(Ps.invalid_cacao);const S=U("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw await this.sendError({id:t,topic:h,error:S,encodeOpts:p}),new Error(S.message)}i.addTrace(Cs.cacaos_verified);const{p:_}=y,R=Y(_.resources),V=[ln(_.iss)],E=index_es_fe(_.iss);if(R){const S=ar(R),M=ur(R);d.push(...S),V.push(...M)}for(const S of V)l.push(`${S}:${E}`)}const w=await this.client.core.crypto.generateSharedKey(c,a);i.addTrace(Cs.create_authenticated_session_topic);let m;if(d?.length>0){m={topic:w,acknowledged:!0,self:{publicKey:c,metadata:this.client.metadata},peer:{publicKey:a,metadata:r.requester.metadata},controller:a,expiry:Mt(sign_client_dist_index_es_z),authentication:s,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:r.pairingTopic,namespaces:Jr([...new Set(d)],[...new Set(l)]),transportType:n},i.addTrace(Cs.subscribing_authenticated_session_topic);try{await this.client.core.relayer.subscribe(w,{transportType:n})}catch(y){throw i.setError(Ps.subscribe_authenticated_session_topic_failure),y}i.addTrace(Cs.subscribe_authenticated_session_topic_success),await this.client.session.set(w,m),i.addTrace(Cs.store_authenticated_session),await this.client.core.pairing.updateMetadata({topic:r.pairingTopic,metadata:r.requester.metadata})}i.addTrace(Cs.publishing_authenticated_session_approve);try{await this.sendResult({topic:h,id:t,result:{cacaos:s,responder:{publicKey:c,metadata:this.client.metadata}},encodeOpts:p,throwOnFailedPublish:!0,appLink:this.getAppLinkIfEnabled(r.requester.metadata,n)})}catch(y){throw i.setError(Ps.authenticated_session_approve_publish_failure),y}return await this.client.auth.requests.delete(t,{message:"fulfilled",code:0}),await this.client.core.pairing.activate({topic:r.pairingTopic}),this.client.core.eventClient.deleteEvent({eventId:i.eventId}),{session:m}},this.rejectSessionAuthenticate=async e=>{this.isInitialized();const{id:t,reason:s}=e,i=this.getPendingAuthRequest(t);if(!i)throw new Error(`Could not find pending auth request with id ${t}`);i.transportType===dist_index_es_M.relay&&await this.confirmOnlineStateOrThrow();const r=i.requester.publicKey,n=await this.client.core.crypto.generateKeyPair(),a=hr(r),c={type:D,receiverPublicKey:r,senderPublicKey:n};await this.sendError({id:t,topic:a,error:s,encodeOpts:c,rpcOpts:sign_client_dist_index_es_v.wc_sessionAuthenticate.reject,appLink:this.getAppLinkIfEnabled(i.requester.metadata,i.transportType)}),await this.client.auth.requests.delete(t,{message:"rejected",code:0}),await this.client.proposal.delete(t,U("USER_DISCONNECTED"))},this.formatAuthMessage=e=>{this.isInitialized();const{request:t,iss:s}=e;return dn(t,s)},this.processRelayMessageCache=()=>{setTimeout(async()=>{if(this.relayMessageCache.length!==0)for(;this.relayMessageCache.length>0;)try{const e=this.relayMessageCache.shift();e&&await this.onRelayMessage(e)}catch(e){this.client.logger.error(e)}},50)},this.cleanupDuplicatePairings=async e=>{if(e.pairingTopic)try{const t=this.client.core.pairing.pairings.get(e.pairingTopic),s=this.client.core.pairing.pairings.getAll().filter(i=>{var r,n;return((r=i.peerMetadata)==null?void 0:r.url)&&((n=i.peerMetadata)==null?void 0:n.url)===e.peer.metadata.url&&i.topic&&i.topic!==t.topic});if(s.length===0)return;this.client.logger.info(`Cleaning up ${s.length} duplicate pairing(s)`),await Promise.all(s.map(i=>this.client.core.pairing.disconnect({topic:i.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(t){this.client.logger.error(t)}},this.deleteSession=async e=>{var t;const{topic:s,expirerHasDeleted:i=!1,emitEvent:r=!0,id:n=0}=e,{self:a}=this.client.session.get(s);await this.client.core.relayer.unsubscribe(s),await this.client.session.delete(s,U("USER_DISCONNECTED")),this.addToRecentlyDeleted(s,"session"),this.client.core.crypto.keychain.has(a.publicKey)&&await this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.keychain.has(s)&&await this.client.core.crypto.deleteSymKey(s),i||this.client.core.expirer.del(s),this.client.core.storage.removeItem(index_es_xe).catch(c=>this.client.logger.warn(c)),this.getPendingSessionRequests().forEach(c=>{c.topic===s&&this.deletePendingSessionRequest(c.id,U("USER_DISCONNECTED"))}),s===((t=this.sessionRequestQueue.queue[0])==null?void 0:t.topic)&&(this.sessionRequestQueue.state=sign_client_dist_index_es_x.idle),r&&this.client.events.emit("session_delete",{id:n,topic:s})},this.deleteProposal=async(e,t)=>{if(t)try{const s=this.client.proposal.get(e),i=this.client.core.eventClient.getEvent({topic:s.pairingTopic});i?.setError(Ts.proposal_expired)}catch{}await Promise.all([this.client.proposal.delete(e,U("USER_DISCONNECTED")),t?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"proposal")},this.deletePendingSessionRequest=async(e,t,s=!1)=>{await Promise.all([this.client.pendingRequest.delete(e,t),s?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(i=>i.id!==e),s&&(this.sessionRequestQueue.state=sign_client_dist_index_es_x.idle,this.client.events.emit("session_request_expire",{id:e}))},this.deletePendingAuthRequest=async(e,t,s=!1)=>{await Promise.all([this.client.auth.requests.delete(e,t),s?Promise.resolve():this.client.core.expirer.del(e)])},this.setExpiry=async(e,t)=>{this.client.session.keys.includes(e)&&(this.client.core.expirer.set(e,t),await this.client.session.update(e,{expiry:t}))},this.setProposal=async(e,t)=>{this.client.core.expirer.set(e,Mt(sign_client_dist_index_es_v.wc_sessionPropose.req.ttl)),await this.client.proposal.set(e,t)},this.setAuthRequest=async(e,t)=>{const{request:s,pairingTopic:i,transportType:r=dist_index_es_M.relay}=t;this.client.core.expirer.set(e,s.expiryTimestamp),await this.client.auth.requests.set(e,{authPayload:s.authPayload,requester:s.requester,expiryTimestamp:s.expiryTimestamp,id:e,pairingTopic:i,verifyContext:s.verifyContext,transportType:r})},this.setPendingSessionRequest=async e=>{const{id:t,topic:s,params:i,verifyContext:r}=e,n=i.request.expiryTimestamp||Mt(sign_client_dist_index_es_v.wc_sessionRequest.req.ttl);this.client.core.expirer.set(t,n),await this.client.pendingRequest.set(t,{id:t,topic:s,params:i,verifyContext:r})},this.sendRequest=async e=>{const{topic:t,method:s,params:i,expiry:r,relayRpcId:n,clientRpcId:a,throwOnFailedPublish:c,appLink:h}=e,p=formatJsonRpcRequest(s,i,a);let d;const l=!!h;try{const y=l?lr:ge;d=await this.client.core.crypto.encode(t,p,{encoding:y})}catch(y){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${t} failed`),y}let w;if(index_es_at.includes(s)){const y=yr(JSON.stringify(p)),_=yr(d);w=await this.client.core.verify.register({id:_,decryptedId:y})}const m=sign_client_dist_index_es_v[s].req;if(m.attestation=w,r&&(m.ttl=r),n&&(m.id=n),this.client.core.history.set(t,p),l){const y=xr(h,t,d);await global.Linking.openURL(y,this.client.name)}else{const y=sign_client_dist_index_es_v[s].req;r&&(y.ttl=r),n&&(y.id=n),c?(y.internal=dist_index_es_D(sign_client_dist_index_es_I({},y.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(t,d,y)):this.client.core.relayer.publish(t,d,y).catch(_=>this.client.logger.error(_))}return p.id},this.sendResult=async e=>{const{id:t,topic:s,result:i,throwOnFailedPublish:r,encodeOpts:n,appLink:a}=e,c=formatJsonRpcResult(t,i);let h;const p=a&&typeof(global==null?void 0:global.Linking)<"u";try{const l=p?lr:ge;h=await this.client.core.crypto.encode(s,c,dist_index_es_D(sign_client_dist_index_es_I({},n||{}),{encoding:l}))}catch(l){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${s} failed`),l}let d;try{d=await this.client.core.history.get(s,t)}catch(l){throw this.client.logger.error(`sendResult() -> history.get(${s}, ${t}) failed`),l}if(p){const l=xr(a,s,h);await global.Linking.openURL(l,this.client.name)}else{const l=sign_client_dist_index_es_v[d.request.method].res;r?(l.internal=dist_index_es_D(sign_client_dist_index_es_I({},l.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(s,h,l)):this.client.core.relayer.publish(s,h,l).catch(w=>this.client.logger.error(w))}await this.client.core.history.resolve(c)},this.sendError=async e=>{const{id:t,topic:s,error:i,encodeOpts:r,rpcOpts:n,appLink:a}=e,c=formatJsonRpcError(t,i);let h;const p=a&&typeof(global==null?void 0:global.Linking)<"u";try{const l=p?lr:ge;h=await this.client.core.crypto.encode(s,c,dist_index_es_D(sign_client_dist_index_es_I({},r||{}),{encoding:l}))}catch(l){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${s} failed`),l}let d;try{d=await this.client.core.history.get(s,t)}catch(l){throw this.client.logger.error(`sendError() -> history.get(${s}, ${t}) failed`),l}if(p){const l=xr(a,s,h);await global.Linking.openURL(l,this.client.name)}else{const l=n||sign_client_dist_index_es_v[d.request.method].res;this.client.core.relayer.publish(s,h,l)}await this.client.core.history.resolve(c)},this.cleanup=async()=>{const e=[],t=[];this.client.session.getAll().forEach(s=>{let i=!1;Kt(s.expiry)&&(i=!0),this.client.core.crypto.keychain.has(s.topic)||(i=!0),i&&e.push(s.topic)}),this.client.proposal.getAll().forEach(s=>{Kt(s.expiryTimestamp)&&t.push(s.id)}),await Promise.all([...e.map(s=>this.deleteSession({topic:s})),...t.map(s=>this.deleteProposal(s))])},this.onRelayEventRequest=async e=>{this.requestQueue.queue.push(e),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===sign_client_dist_index_es_x.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=sign_client_dist_index_es_x.active;const e=this.requestQueue.queue.shift();if(e)try{await this.processRequest(e)}catch(t){this.client.logger.warn(t)}}this.requestQueue.state=sign_client_dist_index_es_x.idle},this.processRequest=async e=>{const{topic:t,payload:s,attestation:i,transportType:r,encryptedId:n}=e,a=s.method;if(!this.shouldIgnorePairingRequest({topic:t,requestMethod:a}))switch(a){case"wc_sessionPropose":return await this.onSessionProposeRequest({topic:t,payload:s,attestation:i,encryptedId:n});case"wc_sessionSettle":return await this.onSessionSettleRequest(t,s);case"wc_sessionUpdate":return await this.onSessionUpdateRequest(t,s);case"wc_sessionExtend":return await this.onSessionExtendRequest(t,s);case"wc_sessionPing":return await this.onSessionPingRequest(t,s);case"wc_sessionDelete":return await this.onSessionDeleteRequest(t,s);case"wc_sessionRequest":return await this.onSessionRequest({topic:t,payload:s,attestation:i,encryptedId:n,transportType:r});case"wc_sessionEvent":return await this.onSessionEventRequest(t,s);case"wc_sessionAuthenticate":return await this.onSessionAuthenticateRequest({topic:t,payload:s,attestation:i,encryptedId:n,transportType:r});default:return this.client.logger.info(`Unsupported request method ${a}`)}},this.onRelayEventResponse=async e=>{const{topic:t,payload:s,transportType:i}=e,r=(await this.client.core.history.get(t,s.id)).request.method;switch(r){case"wc_sessionPropose":return this.onSessionProposeResponse(t,s,i);case"wc_sessionSettle":return this.onSessionSettleResponse(t,s);case"wc_sessionUpdate":return this.onSessionUpdateResponse(t,s);case"wc_sessionExtend":return this.onSessionExtendResponse(t,s);case"wc_sessionPing":return this.onSessionPingResponse(t,s);case"wc_sessionRequest":return this.onSessionRequestResponse(t,s);case"wc_sessionAuthenticate":return this.onSessionAuthenticateResponse(t,s);default:return this.client.logger.info(`Unsupported response method ${r}`)}},this.onRelayEventUnknownPayload=e=>{const{topic:t}=e,{message:s}=index_es_S("MISSING_OR_INVALID",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`);throw new Error(s)},this.shouldIgnorePairingRequest=e=>{const{topic:t,requestMethod:s}=e,i=this.expectedPairingMethodMap.get(t);return!i||i.includes(s)?!1:!!(i.includes("wc_sessionAuthenticate")&&this.client.events.listenerCount("session_authenticate")>0)},this.onSessionProposeRequest=async e=>{const{topic:t,payload:s,attestation:i,encryptedId:r}=e,{params:n,id:a}=s;try{const c=this.client.core.eventClient.getEvent({topic:t});this.isValidConnect(sign_client_dist_index_es_I({},s.params));const h=n.expiryTimestamp||Mt(sign_client_dist_index_es_v.wc_sessionPropose.req.ttl),p=sign_client_dist_index_es_I({id:a,pairingTopic:t,expiryTimestamp:h},n);await this.setProposal(a,p);const d=await this.getVerifyContext({attestationId:i,hash:yr(JSON.stringify(s)),encryptedId:r,metadata:p.proposer.metadata});this.client.events.listenerCount("session_proposal")===0&&(console.warn("No listener for session_proposal event"),c?.setError(index_es_$.proposal_listener_not_found)),c?.addTrace(core_dist_index_es_z.emit_session_proposal),this.client.events.emit("session_proposal",{id:a,params:p,verifyContext:d})}catch(c){await this.sendError({id:a,topic:t,error:c,rpcOpts:sign_client_dist_index_es_v.wc_sessionPropose.autoReject}),this.client.logger.error(c)}},this.onSessionProposeResponse=async(e,t,s)=>{const{id:i}=t;if(isJsonRpcResult(t)){const{result:r}=t;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:r});const n=this.client.proposal.get(i);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:n});const a=n.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:a});const c=r.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:c});const h=await this.client.core.crypto.generateSharedKey(a,c);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:h});const p=await this.client.core.relayer.subscribe(h,{transportType:s});this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:p}),await this.client.core.pairing.activate({topic:e})}else if(isJsonRpcError(t)){await this.client.proposal.delete(i,U("USER_DISCONNECTED"));const r=Lt("session_connect");if(this.events.listenerCount(r)===0)throw new Error(`emitting ${r} without any listeners, 954`);this.events.emit(Lt("session_connect"),{error:t.error})}},this.onSessionSettleRequest=async(e,t)=>{const{id:s,params:i}=t;try{this.isValidSessionSettleRequest(i);const{relay:r,controller:n,expiry:a,namespaces:c,sessionProperties:h,sessionConfig:p}=t.params,d=dist_index_es_D(sign_client_dist_index_es_I(sign_client_dist_index_es_I({topic:e,relay:r,expiry:a,namespaces:c,acknowledged:!0,pairingTopic:"",requiredNamespaces:{},optionalNamespaces:{},controller:n.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:n.publicKey,metadata:n.metadata}},h&&{sessionProperties:h}),p&&{sessionConfig:p}),{transportType:dist_index_es_M.relay}),l=Lt("session_connect");if(this.events.listenerCount(l)===0)throw new Error(`emitting ${l} without any listeners 997`);this.events.emit(Lt("session_connect"),{session:d}),await this.sendResult({id:t.id,topic:e,result:!0,throwOnFailedPublish:!0})}catch(r){await this.sendError({id:s,topic:e,error:r}),this.client.logger.error(r)}},this.onSessionSettleResponse=async(e,t)=>{const{id:s}=t;isJsonRpcResult(t)?(await this.client.session.update(e,{acknowledged:!0}),this.events.emit(Lt("session_approve",s),{})):isJsonRpcError(t)&&(await this.client.session.delete(e,U("USER_DISCONNECTED")),this.events.emit(Lt("session_approve",s),{error:t.error}))},this.onSessionUpdateRequest=async(e,t)=>{const{params:s,id:i}=t;try{const r=`${e}_session_update`,n=yo.get(r);if(n&&this.isRequestOutOfSync(n,i)){this.client.logger.info(`Discarding out of sync request - ${i}`),this.sendError({id:i,topic:e,error:U("INVALID_UPDATE_REQUEST")});return}this.isValidUpdate(sign_client_dist_index_es_I({topic:e},s));try{yo.set(r,i),await this.client.session.update(e,{namespaces:s.namespaces}),await this.sendResult({id:i,topic:e,result:!0,throwOnFailedPublish:!0})}catch(a){throw yo.delete(r),a}this.client.events.emit("session_update",{id:i,topic:e,params:s})}catch(r){await this.sendError({id:i,topic:e,error:r}),this.client.logger.error(r)}},this.isRequestOutOfSync=(e,t)=>parseInt(t.toString().slice(0,-3))<=parseInt(e.toString().slice(0,-3)),this.onSessionUpdateResponse=(e,t)=>{const{id:s}=t,i=Lt("session_update",s);if(this.events.listenerCount(i)===0)throw new Error(`emitting ${i} without any listeners`);isJsonRpcResult(t)?this.events.emit(Lt("session_update",s),{}):isJsonRpcError(t)&&this.events.emit(Lt("session_update",s),{error:t.error})},this.onSessionExtendRequest=async(e,t)=>{const{id:s}=t;try{this.isValidExtend({topic:e}),await this.setExpiry(e,Mt(sign_client_dist_index_es_z)),await this.sendResult({id:s,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_extend",{id:s,topic:e})}catch(i){await this.sendError({id:s,topic:e,error:i}),this.client.logger.error(i)}},this.onSessionExtendResponse=(e,t)=>{const{id:s}=t,i=Lt("session_extend",s);if(this.events.listenerCount(i)===0)throw new Error(`emitting ${i} without any listeners`);isJsonRpcResult(t)?this.events.emit(Lt("session_extend",s),{}):isJsonRpcError(t)&&this.events.emit(Lt("session_extend",s),{error:t.error})},this.onSessionPingRequest=async(e,t)=>{const{id:s}=t;try{this.isValidPing({topic:e}),await this.sendResult({id:s,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_ping",{id:s,topic:e})}catch(i){await this.sendError({id:s,topic:e,error:i}),this.client.logger.error(i)}},this.onSessionPingResponse=(e,t)=>{const{id:s}=t,i=Lt("session_ping",s);if(this.events.listenerCount(i)===0)throw new Error(`emitting ${i} without any listeners`);setTimeout(()=>{isJsonRpcResult(t)?this.events.emit(Lt("session_ping",s),{}):isJsonRpcError(t)&&this.events.emit(Lt("session_ping",s),{error:t.error})},500)},this.onSessionDeleteRequest=async(e,t)=>{const{id:s}=t;try{this.isValidDisconnect({topic:e,reason:t.params}),Promise.all([new Promise(i=>{this.client.core.relayer.once(dist_index_es_v.publish,async()=>{i(await this.deleteSession({topic:e,id:s}))})}),this.sendResult({id:s,topic:e,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:e,error:U("USER_DISCONNECTED")})]).catch(i=>this.client.logger.error(i))}catch(i){this.client.logger.error(i)}},this.onSessionRequest=async e=>{var t,s,i;const{topic:r,payload:n,attestation:a,encryptedId:c,transportType:h}=e,{id:p,params:d}=n;try{await this.isValidRequest(sign_client_dist_index_es_I({topic:r},d));const l=this.client.session.get(r),w=await this.getVerifyContext({attestationId:a,hash:yr(JSON.stringify(formatJsonRpcRequest("wc_sessionRequest",d,p))),encryptedId:c,metadata:l.peer.metadata,transportType:h}),m={id:p,topic:r,params:d,verifyContext:w};await this.setPendingSessionRequest(m),h===dist_index_es_M.link_mode&&(t=l.peer.metadata.redirect)!=null&&t.universal&&this.client.core.addLinkModeSupportedApp((s=l.peer.metadata.redirect)==null?void 0:s.universal),(i=this.client.signConfig)!=null&&i.disableRequestQueue?this.emitSessionRequest(m):(this.addSessionRequestToSessionRequestQueue(m),this.processSessionRequestQueue())}catch(l){await this.sendError({id:p,topic:r,error:l}),this.client.logger.error(l)}},this.onSessionRequestResponse=(e,t)=>{const{id:s}=t,i=Lt("session_request",s);if(this.events.listenerCount(i)===0)throw new Error(`emitting ${i} without any listeners`);isJsonRpcResult(t)?this.events.emit(Lt("session_request",s),{result:t.result}):isJsonRpcError(t)&&this.events.emit(Lt("session_request",s),{error:t.error})},this.onSessionEventRequest=async(e,t)=>{const{id:s,params:i}=t;try{const r=`${e}_session_event_${i.event.name}`,n=yo.get(r);if(n&&this.isRequestOutOfSync(n,s)){this.client.logger.info(`Discarding out of sync request - ${s}`);return}this.isValidEmit(sign_client_dist_index_es_I({topic:e},i)),this.client.events.emit("session_event",{id:s,topic:e,params:i}),yo.set(r,s)}catch(r){await this.sendError({id:s,topic:e,error:r}),this.client.logger.error(r)}},this.onSessionAuthenticateResponse=(e,t)=>{const{id:s}=t;this.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:e,payload:t}),isJsonRpcResult(t)?this.events.emit(Lt("session_request",s),{result:t.result}):isJsonRpcError(t)&&this.events.emit(Lt("session_request",s),{error:t.error})},this.onSessionAuthenticateRequest=async e=>{var t;const{topic:s,payload:i,attestation:r,encryptedId:n,transportType:a}=e;try{const{requester:c,authPayload:h,expiryTimestamp:p}=i.params,d=await this.getVerifyContext({attestationId:r,hash:yr(JSON.stringify(i)),encryptedId:n,metadata:c.metadata,transportType:a}),l={requester:c,pairingTopic:s,id:i.id,authPayload:h,verifyContext:d,expiryTimestamp:p};await this.setAuthRequest(i.id,{request:l,pairingTopic:s,transportType:a}),a===dist_index_es_M.link_mode&&(t=c.metadata.redirect)!=null&&t.universal&&this.client.core.addLinkModeSupportedApp(c.metadata.redirect.universal),this.client.events.emit("session_authenticate",{topic:s,params:i.params,id:i.id,verifyContext:d})}catch(c){this.client.logger.error(c);const h=i.params.requester.publicKey,p=await this.client.core.crypto.generateKeyPair(),d=this.getAppLinkIfEnabled(i.params.requester.metadata,a),l={type:D,receiverPublicKey:h,senderPublicKey:p};await this.sendError({id:i.id,topic:s,error:c,encodeOpts:l,rpcOpts:sign_client_dist_index_es_v.wc_sessionAuthenticate.autoReject,appLink:d})}},this.addSessionRequestToSessionRequestQueue=e=>{this.sessionRequestQueue.queue.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=sign_client_dist_index_es_x.idle,this.processSessionRequestQueue()},(0,cjs.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=({topic:e,error:t})=>{const s=this.client.core.history.pending;s.length>0&&s.filter(i=>i.topic===e&&i.request.method==="wc_sessionRequest").forEach(i=>{const r=i.request.id,n=Lt("session_request",r);if(this.events.listenerCount(n)===0)throw new Error(`emitting ${n} without any listeners`);this.events.emit(Lt("session_request",i.request.id),{error:t})})},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===sign_client_dist_index_es_x.active){this.client.logger.info("session request queue is already active.");return}const e=this.sessionRequestQueue.queue[0];if(!e){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=sign_client_dist_index_es_x.active,this.emitSessionRequest(e)}catch(t){this.client.logger.error(t)}},this.emitSessionRequest=e=>{this.client.events.emit("session_request",e)},this.onPairingCreated=e=>{if(e.methods&&this.expectedPairingMethodMap.set(e.topic,e.methods),e.active)return;const t=this.client.proposal.getAll().find(s=>s.pairingTopic===e.topic);t&&this.onSessionProposeRequest({topic:e.topic,payload:formatJsonRpcRequest("wc_sessionPropose",{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces,relays:t.relays,proposer:t.proposer,sessionProperties:t.sessionProperties},t.id)})},this.isValidConnect=async e=>{if(!to(e)){const{message:a}=index_es_S("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(e)}`);throw new Error(a)}const{pairingTopic:t,requiredNamespaces:s,optionalNamespaces:i,sessionProperties:r,relays:n}=e;if(I(t)||await this.isValidPairingTopic(t),!eo(n,!0)){const{message:a}=index_es_S("MISSING_OR_INVALID",`connect() relays: ${n}`);throw new Error(a)}!I(s)&&Z(s)!==0&&this.validateNamespaces(s,"requiredNamespaces"),!I(i)&&Z(i)!==0&&this.validateNamespaces(i,"optionalNamespaces"),I(r)||this.validateSessionProps(r,"sessionProperties")},this.validateNamespaces=(e,t)=>{const s=Xr(e,"connect()",t);if(s)throw new Error(s.message)},this.isValidApprove=async e=>{if(!to(e))throw new Error(index_es_S("MISSING_OR_INVALID",`approve() params: ${e}`).message);const{id:t,namespaces:s,relayProtocol:i,sessionProperties:r}=e;this.checkRecentlyDeleted(t),await this.isValidProposalId(t);const n=this.client.proposal.get(t),a=Wn(s,"approve()");if(a)throw new Error(a.message);const c=zn(n.requiredNamespaces,s,"approve()");if(c)throw new Error(c.message);if(!index_es_b(i,!0)){const{message:h}=index_es_S("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw new Error(h)}I(r)||this.validateSessionProps(r,"sessionProperties")},this.isValidReject=async e=>{if(!to(e)){const{message:i}=index_es_S("MISSING_OR_INVALID",`reject() params: ${e}`);throw new Error(i)}const{id:t,reason:s}=e;if(this.checkRecentlyDeleted(t),await this.isValidProposalId(t),!ro(s)){const{message:i}=index_es_S("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(s)}`);throw new Error(i)}},this.isValidSessionSettleRequest=e=>{if(!to(e)){const{message:c}=index_es_S("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${e}`);throw new Error(c)}const{relay:t,controller:s,namespaces:i,expiry:r}=e;if(!Jn(t)){const{message:c}=index_es_S("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(c)}const n=Zr(s,"onSessionSettleRequest()");if(n)throw new Error(n.message);const a=Wn(i,"onSessionSettleRequest()");if(a)throw new Error(a.message);if(Kt(r)){const{message:c}=index_es_S("EXPIRED","onSessionSettleRequest()");throw new Error(c)}},this.isValidUpdate=async e=>{if(!to(e)){const{message:a}=index_es_S("MISSING_OR_INVALID",`update() params: ${e}`);throw new Error(a)}const{topic:t,namespaces:s}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);const i=this.client.session.get(t),r=Wn(s,"update()");if(r)throw new Error(r.message);const n=zn(i.requiredNamespaces,s,"update()");if(n)throw new Error(n.message)},this.isValidExtend=async e=>{if(!to(e)){const{message:s}=index_es_S("MISSING_OR_INVALID",`extend() params: ${e}`);throw new Error(s)}const{topic:t}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t)},this.isValidRequest=async e=>{if(!to(e)){const{message:a}=index_es_S("MISSING_OR_INVALID",`request() params: ${e}`);throw new Error(a)}const{topic:t,request:s,chainId:i,expiry:r}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);const{namespaces:n}=this.client.session.get(t);if(!co(n,i)){const{message:a}=index_es_S("MISSING_OR_INVALID",`request() chainId: ${i}`);throw new Error(a)}if(!oo(s)){const{message:a}=index_es_S("MISSING_OR_INVALID",`request() ${JSON.stringify(s)}`);throw new Error(a)}if(!ao(n,i,s.method)){const{message:a}=index_es_S("MISSING_OR_INVALID",`request() method: ${s.method}`);throw new Error(a)}if(r&&!po(r,dist_index_es_me)){const{message:a}=index_es_S("MISSING_OR_INVALID",`request() expiry: ${r}. Expiry must be a number (in seconds) between ${dist_index_es_me.min} and ${dist_index_es_me.max}`);throw new Error(a)}},this.isValidRespond=async e=>{var t;if(!to(e)){const{message:r}=index_es_S("MISSING_OR_INVALID",`respond() params: ${e}`);throw new Error(r)}const{topic:s,response:i}=e;try{await this.isValidSessionTopic(s)}catch(r){throw(t=e?.response)!=null&&t.id&&this.cleanupAfterResponse(e),r}if(!so(i)){const{message:r}=index_es_S("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(i)}`);throw new Error(r)}},this.isValidPing=async e=>{if(!to(e)){const{message:s}=index_es_S("MISSING_OR_INVALID",`ping() params: ${e}`);throw new Error(s)}const{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidEmit=async e=>{if(!to(e)){const{message:n}=index_es_S("MISSING_OR_INVALID",`emit() params: ${e}`);throw new Error(n)}const{topic:t,event:s,chainId:i}=e;await this.isValidSessionTopic(t);const{namespaces:r}=this.client.session.get(t);if(!co(r,i)){const{message:n}=index_es_S("MISSING_OR_INVALID",`emit() chainId: ${i}`);throw new Error(n)}if(!io(s)){const{message:n}=index_es_S("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(s)}`);throw new Error(n)}if(!uo(r,i,s.name)){const{message:n}=index_es_S("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(s)}`);throw new Error(n)}},this.isValidDisconnect=async e=>{if(!to(e)){const{message:s}=index_es_S("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw new Error(s)}const{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidAuthenticate=e=>{const{chains:t,uri:s,domain:i,nonce:r}=e;if(!Array.isArray(t)||t.length===0)throw new Error("chains is required and must be a non-empty array");if(!index_es_b(s,!1))throw new Error("uri is required parameter");if(!index_es_b(i,!1))throw new Error("domain is required parameter");if(!index_es_b(r,!1))throw new Error("nonce is required parameter");if([...new Set(t.map(a=>re(a).namespace))].length>1)throw new Error("Multi-namespace requests are not supported. Please request single namespace only.");const{namespace:n}=re(t[0]);if(n!=="eip155")throw new Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},this.getVerifyContext=async e=>{const{attestationId:t,hash:s,encryptedId:i,metadata:r,transportType:n}=e,a={verified:{verifyUrl:r.verifyUrl||index_es_J,validation:"UNKNOWN",origin:r.url||""}};try{if(n===dist_index_es_M.link_mode){const h=this.getAppLinkIfEnabled(r,n);return a.verified.validation=h&&new URL(h).origin===new URL(r.url).origin?"VALID":"INVALID",a}const c=await this.client.core.verify.resolve({attestationId:t,hash:s,encryptedId:i,verifyUrl:r.verifyUrl});c&&(a.verified.origin=c.origin,a.verified.isScam=c.isScam,a.verified.validation=c.origin===new URL(r.url).origin?"VALID":"INVALID")}catch(c){this.client.logger.warn(c)}return this.client.logger.debug(`Verify context: ${JSON.stringify(a)}`),a},this.validateSessionProps=(e,t)=>{Object.values(e).forEach(s=>{if(!index_es_b(s,!1)){const{message:i}=index_es_S("MISSING_OR_INVALID",`${t} must be in Record format. Received: ${JSON.stringify(s)}`);throw new Error(i)}})},this.getPendingAuthRequest=e=>{const t=this.client.auth.requests.get(e);return typeof t=="object"?t:void 0},this.addToRecentlyDeleted=(e,t)=>{if(this.recentlyDeletedMap.set(e,t),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let s=0;const i=this.recentlyDeletedLimit/2;for(const r of this.recentlyDeletedMap.keys()){if(s++>=i)break;this.recentlyDeletedMap.delete(r)}}},this.checkRecentlyDeleted=e=>{const t=this.recentlyDeletedMap.get(e);if(t){const{message:s}=index_es_S("MISSING_OR_INVALID",`Record was recently deleted - ${t}: ${e}`);throw new Error(s)}},this.isLinkModeEnabled=(e,t)=>{var s,i,r,n,a,c,h,p,d;return!e||t!==dist_index_es_M.link_mode?!1:((i=(s=this.client.metadata)==null?void 0:s.redirect)==null?void 0:i.linkMode)===!0&&((n=(r=this.client.metadata)==null?void 0:r.redirect)==null?void 0:n.universal)!==void 0&&((c=(a=this.client.metadata)==null?void 0:a.redirect)==null?void 0:c.universal)!==""&&((h=e?.redirect)==null?void 0:h.universal)!==void 0&&((p=e?.redirect)==null?void 0:p.universal)!==""&&((d=e?.redirect)==null?void 0:d.linkMode)===!0&&this.client.core.linkModeSupportedApps.includes(e.redirect.universal)&&typeof(global==null?void 0:global.Linking)<"u"},this.getAppLinkIfEnabled=(e,t)=>{var s;return this.isLinkModeEnabled(e,t)?(s=e?.redirect)==null?void 0:s.universal:void 0},this.handleLinkModeMessage=({url:e})=>{if(!e||!e.includes("wc_ev")||!e.includes("topic"))return;const t=Bt(e,"topic")||"",s=decodeURIComponent(Bt(e,"wc_ev")||""),i=this.client.session.keys.includes(t);i&&this.client.session.update(t,{transportType:dist_index_es_M.link_mode}),this.client.core.dispatchEnvelope({topic:t,message:s,sessionExists:i})},this.registerLinkModeListeners=async()=>{var e;if(Wt()||index_es_()&&(e=this.client.metadata.redirect)!=null&&e.linkMode){const t=global==null?void 0:global.Linking;if(typeof t<"u"){t.addEventListener("url",this.handleLinkModeMessage,this.client.name);const s=await t.getInitialURL();s&&setTimeout(()=>{this.handleLinkModeMessage({url:s})},50)}}}}isInitialized(){if(!this.initialized){const{message:o}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(o)}}async confirmOnlineStateOrThrow(){await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(dist_index_es_v.message,o=>{!this.initialized||this.relayMessageCache.length>0?this.relayMessageCache.push(o):this.onRelayMessage(o)})}async onRelayMessage(o){const{topic:e,message:t,attestation:s,transportType:i}=o,{publicKey:r}=this.client.auth.authKeys.keys.includes(index_es_ae)?this.client.auth.authKeys.get(index_es_ae):{responseTopic:void 0,publicKey:void 0},n=await this.client.core.crypto.decode(e,t,{receiverPublicKey:r,encoding:i===dist_index_es_M.link_mode?lr:ge});try{isJsonRpcRequest(n)?(this.client.core.history.set(e,n),this.onRelayEventRequest({topic:e,payload:n,attestation:s,transportType:i,encryptedId:yr(t)})):isJsonRpcResponse(n)?(await this.client.core.history.resolve(n),await this.onRelayEventResponse({topic:e,payload:n,transportType:i}),this.client.core.history.delete(e,n.id)):this.onRelayEventUnknownPayload({topic:e,payload:n,transportType:i})}catch(a){this.client.logger.error(a)}}registerExpirerEvents(){this.client.core.expirer.on(core_dist_index_es_S.expired,async o=>{const{topic:e,id:t}=Vt(o.target);if(t&&this.client.pendingRequest.keys.includes(t))return await this.deletePendingSessionRequest(t,index_es_S("EXPIRED"),!0);if(t&&this.client.auth.requests.keys.includes(t))return await this.deletePendingAuthRequest(t,index_es_S("EXPIRED"),!0);e?this.client.session.keys.includes(e)&&(await this.deleteSession({topic:e,expirerHasDeleted:!0}),this.client.events.emit("session_expire",{topic:e})):t&&(await this.deleteProposal(t,!0),this.client.events.emit("proposal_expire",{id:t}))})}registerPairingEvents(){this.client.core.pairing.events.on(index_es_V.create,o=>this.onPairingCreated(o)),this.client.core.pairing.events.on(index_es_V.delete,o=>{this.addToRecentlyDeleted(o.topic,"pairing")})}isValidPairingTopic(o){if(!index_es_b(o,!1)){const{message:e}=index_es_S("MISSING_OR_INVALID",`pairing topic should be a string: ${o}`);throw new Error(e)}if(!this.client.core.pairing.pairings.keys.includes(o)){const{message:e}=index_es_S("NO_MATCHING_KEY",`pairing topic doesn't exist: ${o}`);throw new Error(e)}if(Kt(this.client.core.pairing.pairings.get(o).expiry)){const{message:e}=index_es_S("EXPIRED",`pairing topic: ${o}`);throw new Error(e)}}async isValidSessionTopic(o){if(!index_es_b(o,!1)){const{message:e}=index_es_S("MISSING_OR_INVALID",`session topic should be a string: ${o}`);throw new Error(e)}if(this.checkRecentlyDeleted(o),!this.client.session.keys.includes(o)){const{message:e}=index_es_S("NO_MATCHING_KEY",`session topic doesn't exist: ${o}`);throw new Error(e)}if(Kt(this.client.session.get(o).expiry)){await this.deleteSession({topic:o});const{message:e}=index_es_S("EXPIRED",`session topic: ${o}`);throw new Error(e)}if(!this.client.core.crypto.keychain.has(o)){const{message:e}=index_es_S("MISSING_OR_INVALID",`session topic does not exist in keychain: ${o}`);throw await this.deleteSession({topic:o}),new Error(e)}}async isValidSessionOrPairingTopic(o){if(this.checkRecentlyDeleted(o),this.client.session.keys.includes(o))await this.isValidSessionTopic(o);else if(this.client.core.pairing.pairings.keys.includes(o))this.isValidPairingTopic(o);else if(index_es_b(o,!1)){const{message:e}=index_es_S("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${o}`);throw new Error(e)}else{const{message:e}=index_es_S("MISSING_OR_INVALID",`session or pairing topic should be a string: ${o}`);throw new Error(e)}}async isValidProposalId(o){if(!no(o)){const{message:e}=index_es_S("MISSING_OR_INVALID",`proposal id should be a number: ${o}`);throw new Error(e)}if(!this.client.proposal.keys.includes(o)){const{message:e}=index_es_S("NO_MATCHING_KEY",`proposal id doesn't exist: ${o}`);throw new Error(e)}if(Kt(this.client.proposal.get(o).expiryTimestamp)){await this.deleteProposal(o);const{message:e}=index_es_S("EXPIRED",`proposal id: ${o}`);throw new Error(e)}}}class index_es_Ss extends ni{constructor(o,e){super(o,e,index_es_st,dist_index_es_ye),this.core=o,this.logger=e}}class dist_index_es_yt extends ni{constructor(o,e){super(o,e,index_es_rt,dist_index_es_ye),this.core=o,this.logger=e}}class index_es_Is extends ni{constructor(o,e){super(o,e,index_es_ot,dist_index_es_ye,t=>t.id),this.core=o,this.logger=e}}class index_es_fs extends ni{constructor(o,e){super(o,e,dist_index_es_pt,index_es_oe,()=>index_es_ae),this.core=o,this.logger=e}}class index_es_vs extends ni{constructor(o,e){super(o,e,dist_index_es_ht,index_es_oe),this.core=o,this.logger=e}}class index_es_qs extends ni{constructor(o,e){super(o,e,index_es_dt,index_es_oe,t=>t.id),this.core=o,this.logger=e}}class index_es_Ts{constructor(o,e){this.core=o,this.logger=e,this.authKeys=new index_es_fs(this.core,this.logger),this.pairingTopics=new index_es_vs(this.core,this.logger),this.requests=new index_es_qs(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}class dist_index_es_e extends types_dist_index_es_S{constructor(o){super(o),this.protocol=dist_index_es_be,this.version=Ce,this.name=dist_index_es_we.name,this.events=new external_events_.EventEmitter,this.on=(t,s)=>this.events.on(t,s),this.once=(t,s)=>this.events.once(t,s),this.off=(t,s)=>this.events.off(t,s),this.removeListener=(t,s)=>this.events.removeListener(t,s),this.removeAllListeners=t=>this.events.removeAllListeners(t),this.connect=async t=>{try{return await this.engine.connect(t)}catch(s){throw this.logger.error(s.message),s}},this.pair=async t=>{try{return await this.engine.pair(t)}catch(s){throw this.logger.error(s.message),s}},this.approve=async t=>{try{return await this.engine.approve(t)}catch(s){throw this.logger.error(s.message),s}},this.reject=async t=>{try{return await this.engine.reject(t)}catch(s){throw this.logger.error(s.message),s}},this.update=async t=>{try{return await this.engine.update(t)}catch(s){throw this.logger.error(s.message),s}},this.extend=async t=>{try{return await this.engine.extend(t)}catch(s){throw this.logger.error(s.message),s}},this.request=async t=>{try{return await this.engine.request(t)}catch(s){throw this.logger.error(s.message),s}},this.respond=async t=>{try{return await this.engine.respond(t)}catch(s){throw this.logger.error(s.message),s}},this.ping=async t=>{try{return await this.engine.ping(t)}catch(s){throw this.logger.error(s.message),s}},this.emit=async t=>{try{return await this.engine.emit(t)}catch(s){throw this.logger.error(s.message),s}},this.disconnect=async t=>{try{return await this.engine.disconnect(t)}catch(s){throw this.logger.error(s.message),s}},this.find=t=>{try{return this.engine.find(t)}catch(s){throw this.logger.error(s.message),s}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(t){throw this.logger.error(t.message),t}},this.authenticate=async(t,s)=>{try{return await this.engine.authenticate(t,s)}catch(i){throw this.logger.error(i.message),i}},this.formatAuthMessage=t=>{try{return this.engine.formatAuthMessage(t)}catch(s){throw this.logger.error(s.message),s}},this.approveSessionAuthenticate=async t=>{try{return await this.engine.approveSessionAuthenticate(t)}catch(s){throw this.logger.error(s.message),s}},this.rejectSessionAuthenticate=async t=>{try{return await this.engine.rejectSessionAuthenticate(t)}catch(s){throw this.logger.error(s.message),s}},this.name=o?.name||dist_index_es_we.name,this.metadata=o?.metadata||Nt(),this.signConfig=o?.signConfig;const e=typeof o?.logger<"u"&&typeof o?.logger!="string"?o.logger:pino_default()(logger_dist_index_es_k({level:o?.logger||dist_index_es_we.logger}));this.core=o?.core||new index_es_bn(o),this.logger=dist_index_es_E(e,this.name),this.session=new dist_index_es_yt(this.core,this.logger),this.proposal=new index_es_Ss(this.core,this.logger),this.pendingRequest=new index_es_Is(this.core,this.logger),this.engine=new index_es_Rs(this),this.auth=new index_es_Ts(this.core,this.logger)}static async init(o){const e=new dist_index_es_e(o);return await e.initialize(),e}get context(){return dist_index_es_y(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.auth.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success"),this.engine.processRelayMessageCache()}catch(o){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(o.message),o}}}const index_es_Ns=(/* unused pure expression or super */ null && (dist_index_es_yt)),index_es_Ps=(/* unused pure expression or super */ null && (dist_index_es_e)); +const Ce="wc",index_es_Le=2,index_es_xe="client",dist_index_es_ye=`${Ce}@${index_es_Le}:${index_es_xe}:`,dist_index_es_we={name:index_es_xe,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.org"},cs={session_proposal:"session_proposal",session_update:"session_update",session_extend:"session_extend",session_ping:"session_ping",session_delete:"session_delete",session_expire:"session_expire",session_request:"session_request",session_request_sent:"session_request_sent",session_event:"session_event",proposal_expire:"proposal_expire",session_authenticate:"session_authenticate",session_request_expire:"session_request_expire"},ls={database:":memory:"},dist_index_es_De="WALLETCONNECT_DEEPLINK_CHOICE",ps={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},hs="history",ds="0.3",index_es_it="proposal",us=(/* unused pure expression or super */ null && (Ct)),index_es_rt="Proposal expired",index_es_nt="session",index_es_H=cjs.SEVEN_DAYS,index_es_ot="engine",sign_client_dist_index_es_v={wc_sessionPropose:{req:{ttl:cjs.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:cjs.ONE_DAY,prompt:!1,tag:1104},res:{ttl:cjs.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:cjs.ONE_DAY,prompt:!1,tag:1106},res:{ttl:cjs.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:cjs.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:cjs.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:cjs.ONE_DAY,prompt:!1,tag:1112},res:{ttl:cjs.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:cjs.ONE_DAY,prompt:!1,tag:1114},res:{ttl:cjs.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:cjs.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:cjs.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:cjs.FIVE_MINUTES,prompt:!1,tag:1119}}},dist_index_es_me={min:cjs.FIVE_MINUTES,max:cjs.SEVEN_DAYS},sign_client_dist_index_es_x={idle:"IDLE",active:"ACTIVE"},index_es_at="request",index_es_ct=["wc_sessionPropose","wc_sessionRequest","wc_authRequest","wc_sessionAuthenticate"],index_es_lt="wc",gs=1.5,dist_index_es_pt="auth",dist_index_es_ht="authKeys",index_es_dt="pairingTopics",index_es_ut="requests",dist_index_es_oe=`${index_es_lt}@${1.5}:${dist_index_es_pt}:`,index_es_ae=`${dist_index_es_oe}:PUB_KEY`;var ys=Object.defineProperty,index_es_ws=Object.defineProperties,ms=Object.getOwnPropertyDescriptors,dist_index_es_gt=Object.getOwnPropertySymbols,_s=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,dist_index_es_yt=(q,o,e)=>o in q?ys(q,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):q[o]=e,sign_client_dist_index_es_I=(q,o)=>{for(var e in o||(o={}))_s.call(o,e)&&dist_index_es_yt(q,e,o[e]);if(dist_index_es_gt)for(var e of dist_index_es_gt(o))Es.call(o,e)&&dist_index_es_yt(q,e,o[e]);return q},dist_index_es_D=(q,o)=>index_es_ws(q,ms(o));class index_es_Rs extends M{constructor(o){super(o),this.name=index_es_ot,this.events=new (external_events_default()),this.initialized=!1,this.requestQueue={state:sign_client_dist_index_es_x.idle,queue:[]},this.sessionRequestQueue={state:sign_client_dist_index_es_x.idle,queue:[]},this.requestQueueDelay=cjs.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.relayMessageCache=[],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),await this.registerLinkModeListeners(),this.client.core.pairing.register({methods:Object.keys(sign_client_dist_index_es_v)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},(0,cjs.toMiliseconds)(this.requestQueueDelay)))},this.connect=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();const t=dist_index_es_D(sign_client_dist_index_es_I({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});await this.isValidConnect(t);const{pairingTopic:s,requiredNamespaces:i,optionalNamespaces:r,sessionProperties:n,relays:a}=t;let c=s,h,p=!1;try{c&&(p=this.client.core.pairing.pairings.get(c).active)}catch(E){throw this.client.logger.error(`connect() -> pairing.get(${c}) failed`),E}if(!c||!p){const{topic:E,uri:S}=await this.client.core.pairing.create();c=E,h=S}if(!c){const{message:E}=index_es_S("NO_MATCHING_KEY",`connect() pairing topic: ${c}`);throw new Error(E)}const d=await this.client.core.crypto.generateKeyPair(),l=sign_client_dist_index_es_v.wc_sessionPropose.req.ttl||cjs.FIVE_MINUTES,w=Lt(l),m=sign_client_dist_index_es_I({requiredNamespaces:i,optionalNamespaces:r,relays:a??[{protocol:nt}],proposer:{publicKey:d,metadata:this.client.metadata},expiryTimestamp:w,pairingTopic:c},n&&{sessionProperties:n}),{reject:y,resolve:_,done:R}=Dt(l,index_es_rt);this.events.once(qt("session_connect"),async({error:E,session:S})=>{if(E)y(E);else if(S){S.self.publicKey=d;const M=dist_index_es_D(sign_client_dist_index_es_I({},S),{pairingTopic:m.pairingTopic,requiredNamespaces:m.requiredNamespaces,optionalNamespaces:m.optionalNamespaces,transportType:dist_index_es_M.relay});await this.client.session.set(S.topic,M),await this.setExpiry(S.topic,S.expiry),c&&await this.client.core.pairing.updateMetadata({topic:c,metadata:S.peer.metadata}),this.cleanupDuplicatePairings(M),_(M)}});const V=await this.sendRequest({topic:c,method:"wc_sessionPropose",params:m,throwOnFailedPublish:!0});return await this.setProposal(V,sign_client_dist_index_es_I({id:V},m)),{uri:h,approval:R}},this.pair=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{return await this.client.core.pairing.pair(e)}catch(t){throw this.client.logger.error("pair() failed"),t}},this.approve=async e=>{var t,s,i;const r=this.client.core.eventClient.createEvent({properties:{topic:(t=e?.id)==null?void 0:t.toString(),trace:[xs.session_approve_started]}});try{this.isInitialized(),await this.confirmOnlineStateOrThrow()}catch(N){throw r.setError(Os.no_internet_connection),N}try{await this.isValidProposalId(e?.id)}catch(N){throw this.client.logger.error(`approve() -> proposal.get(${e?.id}) failed`),r.setError(Os.proposal_not_found),N}try{await this.isValidApprove(e)}catch(N){throw this.client.logger.error("approve() -> isValidApprove() failed"),r.setError(Os.session_approve_namespace_validation_failure),N}const{id:n,relayProtocol:a,namespaces:c,sessionProperties:h,sessionConfig:p}=e,d=this.client.proposal.get(n);this.client.core.eventClient.deleteEvent({eventId:r.eventId});const{pairingTopic:l,proposer:w,requiredNamespaces:m,optionalNamespaces:y}=d;let _=(s=this.client.core.eventClient)==null?void 0:s.getEvent({topic:l});_||(_=(i=this.client.core.eventClient)==null?void 0:i.createEvent({type:xs.session_approve_started,properties:{topic:l,trace:[xs.session_approve_started,xs.session_namespaces_validation_success]}}));const R=await this.client.core.crypto.generateKeyPair(),V=w.publicKey,E=await this.client.core.crypto.generateSharedKey(R,V),S=sign_client_dist_index_es_I(sign_client_dist_index_es_I({relay:{protocol:a??"irn"},namespaces:c,controller:{publicKey:R,metadata:this.client.metadata},expiry:Lt(index_es_H)},h&&{sessionProperties:h}),p&&{sessionConfig:p}),M=dist_index_es_M.relay;_.addTrace(xs.subscribing_session_topic);try{await this.client.core.relayer.subscribe(E,{transportType:M})}catch(N){throw _.setError(Os.subscribe_session_topic_failure),N}_.addTrace(xs.subscribe_session_topic_success);const W=dist_index_es_D(sign_client_dist_index_es_I({},S),{topic:E,requiredNamespaces:m,optionalNamespaces:y,pairingTopic:l,acknowledged:!1,self:S.controller,peer:{publicKey:w.publicKey,metadata:w.metadata},controller:R,transportType:dist_index_es_M.relay});await this.client.session.set(E,W),_.addTrace(xs.store_session);try{_.addTrace(xs.publishing_session_settle),await this.sendRequest({topic:E,method:"wc_sessionSettle",params:S,throwOnFailedPublish:!0}).catch(N=>{throw _?.setError(Os.session_settle_publish_failure),N}),_.addTrace(xs.session_settle_publish_success),_.addTrace(xs.publishing_session_approve),await this.sendResult({id:n,topic:l,result:{relay:{protocol:a??"irn"},responderPublicKey:R},throwOnFailedPublish:!0}).catch(N=>{throw _?.setError(Os.session_approve_publish_failure),N}),_.addTrace(xs.session_approve_publish_success)}catch(N){throw this.client.logger.error(N),this.client.session.delete(E,index_es_("USER_DISCONNECTED")),await this.client.core.relayer.unsubscribe(E),N}return this.client.core.eventClient.deleteEvent({eventId:_.eventId}),await this.client.core.pairing.updateMetadata({topic:l,metadata:w.metadata}),await this.client.proposal.delete(n,index_es_("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:l}),await this.setExpiry(E,Lt(index_es_H)),{topic:E,acknowledged:()=>Promise.resolve(this.client.session.get(E))}},this.reject=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidReject(e)}catch(r){throw this.client.logger.error("reject() -> isValidReject() failed"),r}const{id:t,reason:s}=e;let i;try{i=this.client.proposal.get(t).pairingTopic}catch(r){throw this.client.logger.error(`reject() -> proposal.get(${t}) failed`),r}i&&(await this.sendError({id:t,topic:i,error:s,rpcOpts:sign_client_dist_index_es_v.wc_sessionPropose.reject}),await this.client.proposal.delete(t,index_es_("USER_DISCONNECTED")))},this.update=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidUpdate(e)}catch(p){throw this.client.logger.error("update() -> isValidUpdate() failed"),p}const{topic:t,namespaces:s}=e,{done:i,resolve:r,reject:n}=Dt(),a=payloadId(),c=getBigIntRpcId().toString(),h=this.client.session.get(t).namespaces;return this.events.once(qt("session_update",a),({error:p})=>{p?n(p):r()}),await this.client.session.update(t,{namespaces:s}),await this.sendRequest({topic:t,method:"wc_sessionUpdate",params:{namespaces:s},throwOnFailedPublish:!0,clientRpcId:a,relayRpcId:c}).catch(p=>{this.client.logger.error(p),this.client.session.update(t,{namespaces:h}),n(p)}),{acknowledged:i}},this.extend=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidExtend(e)}catch(a){throw this.client.logger.error("extend() -> isValidExtend() failed"),a}const{topic:t}=e,s=payloadId(),{done:i,resolve:r,reject:n}=Dt();return this.events.once(qt("session_extend",s),({error:a})=>{a?n(a):r()}),await this.setExpiry(t,Lt(index_es_H)),this.sendRequest({topic:t,method:"wc_sessionExtend",params:{},clientRpcId:s,throwOnFailedPublish:!0}).catch(a=>{n(a)}),{acknowledged:i}},this.request=async e=>{this.isInitialized();try{await this.isValidRequest(e)}catch(w){throw this.client.logger.error("request() -> isValidRequest() failed"),w}const{chainId:t,request:s,topic:i,expiry:r=sign_client_dist_index_es_v.wc_sessionRequest.req.ttl}=e,n=this.client.session.get(i);n?.transportType===dist_index_es_M.relay&&await this.confirmOnlineStateOrThrow();const a=payloadId(),c=getBigIntRpcId().toString(),{done:h,resolve:p,reject:d}=Dt(r,"Request expired. Please try again.");this.events.once(qt("session_request",a),({error:w,result:m})=>{w?d(w):p(m)});const l=this.getAppLinkIfEnabled(n.peer.metadata,n.transportType);return l?(await this.sendRequest({clientRpcId:a,relayRpcId:c,topic:i,method:"wc_sessionRequest",params:{request:dist_index_es_D(sign_client_dist_index_es_I({},s),{expiryTimestamp:Lt(r)}),chainId:t},expiry:r,throwOnFailedPublish:!0,appLink:l}).catch(w=>d(w)),this.client.events.emit("session_request_sent",{topic:i,request:s,chainId:t,id:a}),await h()):await Promise.all([new Promise(async w=>{await this.sendRequest({clientRpcId:a,relayRpcId:c,topic:i,method:"wc_sessionRequest",params:{request:dist_index_es_D(sign_client_dist_index_es_I({},s),{expiryTimestamp:Lt(r)}),chainId:t},expiry:r,throwOnFailedPublish:!0}).catch(m=>d(m)),this.client.events.emit("session_request_sent",{topic:i,request:s,chainId:t,id:a}),w()}),new Promise(async w=>{var m;if(!((m=n.sessionConfig)!=null&&m.disableDeepLink)){const y=await Ht(this.client.core.storage,dist_index_es_De);await Bt({id:a,topic:i,wcDeepLink:y})}w()}),h()]).then(w=>w[2])},this.respond=async e=>{this.isInitialized(),await this.isValidRespond(e);const{topic:t,response:s}=e,{id:i}=s,r=this.client.session.get(t);r.transportType===dist_index_es_M.relay&&await this.confirmOnlineStateOrThrow();const n=this.getAppLinkIfEnabled(r.peer.metadata,r.transportType);isJsonRpcResult(s)?await this.sendResult({id:i,topic:t,result:s.result,throwOnFailedPublish:!0,appLink:n}):isJsonRpcError(s)&&await this.sendError({id:i,topic:t,error:s.error,appLink:n}),this.cleanupAfterResponse(e)},this.ping=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidPing(e)}catch(s){throw this.client.logger.error("ping() -> isValidPing() failed"),s}const{topic:t}=e;if(this.client.session.keys.includes(t)){const s=payloadId(),i=getBigIntRpcId().toString(),{done:r,resolve:n,reject:a}=Dt();this.events.once(qt("session_ping",s),({error:c})=>{c?a(c):n()}),await Promise.all([this.sendRequest({topic:t,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:s,relayRpcId:i}),r()])}else this.client.core.pairing.pairings.keys.includes(t)&&await this.client.core.pairing.ping({topic:t})},this.emit=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidEmit(e);const{topic:t,event:s,chainId:i}=e,r=getBigIntRpcId().toString(),n=payloadId();await this.sendRequest({topic:t,method:"wc_sessionEvent",params:{event:s,chainId:i},throwOnFailedPublish:!0,relayRpcId:r,clientRpcId:n})},this.disconnect=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidDisconnect(e);const{topic:t}=e;if(this.client.session.keys.includes(t))await this.sendRequest({topic:t,method:"wc_sessionDelete",params:index_es_("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession({topic:t,emitEvent:!1});else if(this.client.core.pairing.pairings.keys.includes(t))await this.client.core.pairing.disconnect({topic:t});else{const{message:s}=index_es_S("MISMATCHED_TOPIC",`Session or pairing topic not found: ${t}`);throw new Error(s)}},this.find=e=>(this.isInitialized(),this.client.session.getAll().filter(t=>Qr(t,e))),this.getPendingSessionRequests=()=>this.client.pendingRequest.getAll(),this.authenticate=async(e,t)=>{var s;this.isInitialized(),this.isValidAuthenticate(e);const i=t&&this.client.core.linkModeSupportedApps.includes(t)&&((s=this.client.metadata.redirect)==null?void 0:s.linkMode),r=i?dist_index_es_M.link_mode:dist_index_es_M.relay;r===dist_index_es_M.relay&&await this.confirmOnlineStateOrThrow();const{chains:n,statement:a="",uri:c,domain:h,nonce:p,type:d,exp:l,nbf:w,methods:m=[],expiry:y}=e,_=[...e.resources||[]],{topic:R,uri:V}=await this.client.core.pairing.create({methods:["wc_sessionAuthenticate"],transportType:r});this.client.logger.info({message:"Generated new pairing",pairing:{topic:R,uri:V}});const E=await this.client.core.crypto.generateKeyPair(),S=vr(E);if(await Promise.all([this.client.auth.authKeys.set(index_es_ae,{responseTopic:S,publicKey:E}),this.client.auth.pairingTopics.set(S,{topic:S,pairingTopic:R})]),await this.client.core.relayer.subscribe(S,{transportType:r}),this.client.logger.info(`sending request to new pairing topic: ${R}`),m.length>0){const{namespace:O}=re(n[0]);let T=ur(O,"request",m);Y(_)&&(T=lr(T,_.pop())),_.push(T)}const M=y&&y>sign_client_dist_index_es_v.wc_sessionAuthenticate.req.ttl?y:sign_client_dist_index_es_v.wc_sessionAuthenticate.req.ttl,W={authPayload:{type:d??"caip122",chains:n,statement:a,aud:c,domain:h,version:"1",nonce:p,iat:new Date().toISOString(),exp:l,nbf:w,resources:_},requester:{publicKey:E,metadata:this.client.metadata},expiryTimestamp:Lt(M)},N={eip155:{chains:n,methods:[...new Set(["personal_sign",...m])],events:["chainChanged","accountsChanged"]}},Ve={requiredNamespaces:{},optionalNamespaces:N,relays:[{protocol:"irn"}],pairingTopic:R,proposer:{publicKey:E,metadata:this.client.metadata},expiryTimestamp:Lt(sign_client_dist_index_es_v.wc_sessionPropose.req.ttl)},{done:mt,resolve:Me,reject:Ee}=Dt(M,"Request expired"),ce=async({error:O,session:T})=>{if(this.events.off(qt("session_request",G),Re),O)Ee(O);else if(T){T.self.publicKey=E,await this.client.session.set(T.topic,T),await this.setExpiry(T.topic,T.expiry),R&&await this.client.core.pairing.updateMetadata({topic:R,metadata:T.peer.metadata});const le=this.client.session.get(T.topic);await this.deleteProposal(Z),Me({session:le})}},Re=async O=>{var T,le,ke;if(await this.deletePendingAuthRequest(G,{message:"fulfilled",code:0}),O.error){const te=index_es_("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return O.error.code===te.code?void 0:(this.events.off(qt("session_connect"),ce),Ee(O.error.message))}await this.deleteProposal(Z),this.events.off(qt("session_connect"),ce);const{cacaos:$e,responder:j}=O.result,Ie=[],Ke=[];for(const te of $e){await or({cacao:te,projectId:this.client.core.projectId})||(this.client.logger.error(te,"Signature verification failed"),Ee(index_es_("SESSION_SETTLEMENT_FAILED","Signature verification failed")));const{p:fe}=te,ve=Y(fe.resources),Ue=[ln(fe.iss)],_t=index_es_fe(fe.iss);if(ve){const qe=dr(ve),Et=fr(ve);Ie.push(...qe),Ue.push(...Et)}for(const qe of Ue)Ke.push(`${qe}:${_t}`)}const ee=await this.client.core.crypto.generateSharedKey(E,j.publicKey);let pe;Ie.length>0&&(pe={topic:ee,acknowledged:!0,self:{publicKey:E,metadata:this.client.metadata},peer:j,controller:j.publicKey,expiry:Lt(index_es_H),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:R,namespaces:Yr([...new Set(Ie)],[...new Set(Ke)]),transportType:r},await this.client.core.relayer.subscribe(ee,{transportType:r}),await this.client.session.set(ee,pe),R&&await this.client.core.pairing.updateMetadata({topic:R,metadata:j.metadata}),pe=this.client.session.get(ee)),(T=this.client.metadata.redirect)!=null&&T.linkMode&&(le=j.metadata.redirect)!=null&&le.linkMode&&(ke=j.metadata.redirect)!=null&&ke.universal&&t&&(this.client.core.addLinkModeSupportedApp(j.metadata.redirect.universal),this.client.session.update(ee,{transportType:dist_index_es_M.link_mode})),Me({auths:$e,session:pe})},G=payloadId(),Z=payloadId();this.events.once(qt("session_connect"),ce),this.events.once(qt("session_request",G),Re);let Se;try{if(i){const O=formatJsonRpcRequest("wc_sessionAuthenticate",W,G);this.client.core.history.set(R,O);const T=await this.client.core.crypto.encode("",O,{type:index_es_M,encoding:pr});Se=Kr(t,R,T)}else await Promise.all([this.sendRequest({topic:R,method:"wc_sessionAuthenticate",params:W,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:G}),this.sendRequest({topic:R,method:"wc_sessionPropose",params:Ve,expiry:sign_client_dist_index_es_v.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:Z})])}catch(O){throw this.events.off(qt("session_connect"),ce),this.events.off(qt("session_request",G),Re),O}return await this.setProposal(Z,sign_client_dist_index_es_I({id:Z},Ve)),await this.setAuthRequest(G,{request:dist_index_es_D(sign_client_dist_index_es_I({},W),{verifyContext:{}}),pairingTopic:R,transportType:r}),{uri:Se??V,response:mt}},this.approveSessionAuthenticate=async e=>{const{id:t,auths:s}=e,i=this.client.core.eventClient.createEvent({properties:{topic:t.toString(),trace:[As.authenticated_session_approve_started]}});try{this.isInitialized()}catch(y){throw i.setError(Ns.no_internet_connection),y}const r=this.getPendingAuthRequest(t);if(!r)throw i.setError(Ns.authenticated_session_pending_request_not_found),new Error(`Could not find pending auth request with id ${t}`);const n=r.transportType||dist_index_es_M.relay;n===dist_index_es_M.relay&&await this.confirmOnlineStateOrThrow();const a=r.requester.publicKey,c=await this.client.core.crypto.generateKeyPair(),h=vr(a),p={type:D,receiverPublicKey:a,senderPublicKey:c},d=[],l=[];for(const y of s){if(!await or({cacao:y,projectId:this.client.core.projectId})){i.setError(Ns.invalid_cacao);const S=index_es_("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw await this.sendError({id:t,topic:h,error:S,encodeOpts:p}),new Error(S.message)}i.addTrace(As.cacaos_verified);const{p:_}=y,R=Y(_.resources),V=[ln(_.iss)],E=index_es_fe(_.iss);if(R){const S=dr(R),M=fr(R);d.push(...S),V.push(...M)}for(const S of V)l.push(`${S}:${E}`)}const w=await this.client.core.crypto.generateSharedKey(c,a);i.addTrace(As.create_authenticated_session_topic);let m;if(d?.length>0){m={topic:w,acknowledged:!0,self:{publicKey:c,metadata:this.client.metadata},peer:{publicKey:a,metadata:r.requester.metadata},controller:a,expiry:Lt(index_es_H),authentication:s,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:r.pairingTopic,namespaces:Yr([...new Set(d)],[...new Set(l)]),transportType:n},i.addTrace(As.subscribing_authenticated_session_topic);try{await this.client.core.relayer.subscribe(w,{transportType:n})}catch(y){throw i.setError(Ns.subscribe_authenticated_session_topic_failure),y}i.addTrace(As.subscribe_authenticated_session_topic_success),await this.client.session.set(w,m),i.addTrace(As.store_authenticated_session),await this.client.core.pairing.updateMetadata({topic:r.pairingTopic,metadata:r.requester.metadata})}i.addTrace(As.publishing_authenticated_session_approve);try{await this.sendResult({topic:h,id:t,result:{cacaos:s,responder:{publicKey:c,metadata:this.client.metadata}},encodeOpts:p,throwOnFailedPublish:!0,appLink:this.getAppLinkIfEnabled(r.requester.metadata,n)})}catch(y){throw i.setError(Ns.authenticated_session_approve_publish_failure),y}return await this.client.auth.requests.delete(t,{message:"fulfilled",code:0}),await this.client.core.pairing.activate({topic:r.pairingTopic}),this.client.core.eventClient.deleteEvent({eventId:i.eventId}),{session:m}},this.rejectSessionAuthenticate=async e=>{this.isInitialized();const{id:t,reason:s}=e,i=this.getPendingAuthRequest(t);if(!i)throw new Error(`Could not find pending auth request with id ${t}`);i.transportType===dist_index_es_M.relay&&await this.confirmOnlineStateOrThrow();const r=i.requester.publicKey,n=await this.client.core.crypto.generateKeyPair(),a=vr(r),c={type:D,receiverPublicKey:r,senderPublicKey:n};await this.sendError({id:t,topic:a,error:s,encodeOpts:c,rpcOpts:sign_client_dist_index_es_v.wc_sessionAuthenticate.reject,appLink:this.getAppLinkIfEnabled(i.requester.metadata,i.transportType)}),await this.client.auth.requests.delete(t,{message:"rejected",code:0}),await this.client.proposal.delete(t,index_es_("USER_DISCONNECTED"))},this.formatAuthMessage=e=>{this.isInitialized();const{request:t,iss:s}=e;return dn(t,s)},this.processRelayMessageCache=()=>{setTimeout(async()=>{if(this.relayMessageCache.length!==0)for(;this.relayMessageCache.length>0;)try{const e=this.relayMessageCache.shift();e&&await this.onRelayMessage(e)}catch(e){this.client.logger.error(e)}},50)},this.cleanupDuplicatePairings=async e=>{if(e.pairingTopic)try{const t=this.client.core.pairing.pairings.get(e.pairingTopic),s=this.client.core.pairing.pairings.getAll().filter(i=>{var r,n;return((r=i.peerMetadata)==null?void 0:r.url)&&((n=i.peerMetadata)==null?void 0:n.url)===e.peer.metadata.url&&i.topic&&i.topic!==t.topic});if(s.length===0)return;this.client.logger.info(`Cleaning up ${s.length} duplicate pairing(s)`),await Promise.all(s.map(i=>this.client.core.pairing.disconnect({topic:i.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(t){this.client.logger.error(t)}},this.deleteSession=async e=>{var t;const{topic:s,expirerHasDeleted:i=!1,emitEvent:r=!0,id:n=0}=e,{self:a}=this.client.session.get(s);await this.client.core.relayer.unsubscribe(s),await this.client.session.delete(s,index_es_("USER_DISCONNECTED")),this.addToRecentlyDeleted(s,"session"),this.client.core.crypto.keychain.has(a.publicKey)&&await this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.keychain.has(s)&&await this.client.core.crypto.deleteSymKey(s),i||this.client.core.expirer.del(s),this.client.core.storage.removeItem(dist_index_es_De).catch(c=>this.client.logger.warn(c)),this.getPendingSessionRequests().forEach(c=>{c.topic===s&&this.deletePendingSessionRequest(c.id,index_es_("USER_DISCONNECTED"))}),s===((t=this.sessionRequestQueue.queue[0])==null?void 0:t.topic)&&(this.sessionRequestQueue.state=sign_client_dist_index_es_x.idle),r&&this.client.events.emit("session_delete",{id:n,topic:s})},this.deleteProposal=async(e,t)=>{if(t)try{const s=this.client.proposal.get(e),i=this.client.core.eventClient.getEvent({topic:s.pairingTopic});i?.setError(Os.proposal_expired)}catch{}await Promise.all([this.client.proposal.delete(e,index_es_("USER_DISCONNECTED")),t?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"proposal")},this.deletePendingSessionRequest=async(e,t,s=!1)=>{await Promise.all([this.client.pendingRequest.delete(e,t),s?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(i=>i.id!==e),s&&(this.sessionRequestQueue.state=sign_client_dist_index_es_x.idle,this.client.events.emit("session_request_expire",{id:e}))},this.deletePendingAuthRequest=async(e,t,s=!1)=>{await Promise.all([this.client.auth.requests.delete(e,t),s?Promise.resolve():this.client.core.expirer.del(e)])},this.setExpiry=async(e,t)=>{this.client.session.keys.includes(e)&&(this.client.core.expirer.set(e,t),await this.client.session.update(e,{expiry:t}))},this.setProposal=async(e,t)=>{this.client.core.expirer.set(e,Lt(sign_client_dist_index_es_v.wc_sessionPropose.req.ttl)),await this.client.proposal.set(e,t)},this.setAuthRequest=async(e,t)=>{const{request:s,pairingTopic:i,transportType:r=dist_index_es_M.relay}=t;this.client.core.expirer.set(e,s.expiryTimestamp),await this.client.auth.requests.set(e,{authPayload:s.authPayload,requester:s.requester,expiryTimestamp:s.expiryTimestamp,id:e,pairingTopic:i,verifyContext:s.verifyContext,transportType:r})},this.setPendingSessionRequest=async e=>{const{id:t,topic:s,params:i,verifyContext:r}=e,n=i.request.expiryTimestamp||Lt(sign_client_dist_index_es_v.wc_sessionRequest.req.ttl);this.client.core.expirer.set(t,n),await this.client.pendingRequest.set(t,{id:t,topic:s,params:i,verifyContext:r})},this.sendRequest=async e=>{const{topic:t,method:s,params:i,expiry:r,relayRpcId:n,clientRpcId:a,throwOnFailedPublish:c,appLink:h}=e,p=formatJsonRpcRequest(s,i,a);let d;const l=!!h;try{const y=l?pr:ge;d=await this.client.core.crypto.encode(t,p,{encoding:y})}catch(y){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${t} failed`),y}let w;if(index_es_ct.includes(s)){const y=br(JSON.stringify(p)),_=br(d);w=await this.client.core.verify.register({id:_,decryptedId:y})}const m=sign_client_dist_index_es_v[s].req;if(m.attestation=w,r&&(m.ttl=r),n&&(m.id=n),this.client.core.history.set(t,p),l){const y=Kr(h,t,d);await global.Linking.openURL(y,this.client.name)}else{const y=sign_client_dist_index_es_v[s].req;r&&(y.ttl=r),n&&(y.id=n),c?(y.internal=dist_index_es_D(sign_client_dist_index_es_I({},y.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(t,d,y)):this.client.core.relayer.publish(t,d,y).catch(_=>this.client.logger.error(_))}return p.id},this.sendResult=async e=>{const{id:t,topic:s,result:i,throwOnFailedPublish:r,encodeOpts:n,appLink:a}=e,c=formatJsonRpcResult(t,i);let h;const p=a&&typeof(global==null?void 0:global.Linking)<"u";try{const l=p?pr:ge;h=await this.client.core.crypto.encode(s,c,dist_index_es_D(sign_client_dist_index_es_I({},n||{}),{encoding:l}))}catch(l){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${s} failed`),l}let d;try{d=await this.client.core.history.get(s,t)}catch(l){throw this.client.logger.error(`sendResult() -> history.get(${s}, ${t}) failed`),l}if(p){const l=Kr(a,s,h);await global.Linking.openURL(l,this.client.name)}else{const l=sign_client_dist_index_es_v[d.request.method].res;r?(l.internal=dist_index_es_D(sign_client_dist_index_es_I({},l.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(s,h,l)):this.client.core.relayer.publish(s,h,l).catch(w=>this.client.logger.error(w))}await this.client.core.history.resolve(c)},this.sendError=async e=>{const{id:t,topic:s,error:i,encodeOpts:r,rpcOpts:n,appLink:a}=e,c=formatJsonRpcError(t,i);let h;const p=a&&typeof(global==null?void 0:global.Linking)<"u";try{const l=p?pr:ge;h=await this.client.core.crypto.encode(s,c,dist_index_es_D(sign_client_dist_index_es_I({},r||{}),{encoding:l}))}catch(l){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${s} failed`),l}let d;try{d=await this.client.core.history.get(s,t)}catch(l){throw this.client.logger.error(`sendError() -> history.get(${s}, ${t}) failed`),l}if(p){const l=Kr(a,s,h);await global.Linking.openURL(l,this.client.name)}else{const l=n||sign_client_dist_index_es_v[d.request.method].res;this.client.core.relayer.publish(s,h,l)}await this.client.core.history.resolve(c)},this.cleanup=async()=>{const e=[],t=[];this.client.session.getAll().forEach(s=>{let i=!1;Ft(s.expiry)&&(i=!0),this.client.core.crypto.keychain.has(s.topic)||(i=!0),i&&e.push(s.topic)}),this.client.proposal.getAll().forEach(s=>{Ft(s.expiryTimestamp)&&t.push(s.id)}),await Promise.all([...e.map(s=>this.deleteSession({topic:s})),...t.map(s=>this.deleteProposal(s))])},this.onRelayEventRequest=async e=>{this.requestQueue.queue.push(e),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===sign_client_dist_index_es_x.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=sign_client_dist_index_es_x.active;const e=this.requestQueue.queue.shift();if(e)try{await this.processRequest(e)}catch(t){this.client.logger.warn(t)}}this.requestQueue.state=sign_client_dist_index_es_x.idle},this.processRequest=async e=>{const{topic:t,payload:s,attestation:i,transportType:r,encryptedId:n}=e,a=s.method;if(!this.shouldIgnorePairingRequest({topic:t,requestMethod:a}))switch(a){case"wc_sessionPropose":return await this.onSessionProposeRequest({topic:t,payload:s,attestation:i,encryptedId:n});case"wc_sessionSettle":return await this.onSessionSettleRequest(t,s);case"wc_sessionUpdate":return await this.onSessionUpdateRequest(t,s);case"wc_sessionExtend":return await this.onSessionExtendRequest(t,s);case"wc_sessionPing":return await this.onSessionPingRequest(t,s);case"wc_sessionDelete":return await this.onSessionDeleteRequest(t,s);case"wc_sessionRequest":return await this.onSessionRequest({topic:t,payload:s,attestation:i,encryptedId:n,transportType:r});case"wc_sessionEvent":return await this.onSessionEventRequest(t,s);case"wc_sessionAuthenticate":return await this.onSessionAuthenticateRequest({topic:t,payload:s,attestation:i,encryptedId:n,transportType:r});default:return this.client.logger.info(`Unsupported request method ${a}`)}},this.onRelayEventResponse=async e=>{const{topic:t,payload:s,transportType:i}=e,r=(await this.client.core.history.get(t,s.id)).request.method;switch(r){case"wc_sessionPropose":return this.onSessionProposeResponse(t,s,i);case"wc_sessionSettle":return this.onSessionSettleResponse(t,s);case"wc_sessionUpdate":return this.onSessionUpdateResponse(t,s);case"wc_sessionExtend":return this.onSessionExtendResponse(t,s);case"wc_sessionPing":return this.onSessionPingResponse(t,s);case"wc_sessionRequest":return this.onSessionRequestResponse(t,s);case"wc_sessionAuthenticate":return this.onSessionAuthenticateResponse(t,s);default:return this.client.logger.info(`Unsupported response method ${r}`)}},this.onRelayEventUnknownPayload=e=>{const{topic:t}=e,{message:s}=index_es_S("MISSING_OR_INVALID",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`);throw new Error(s)},this.shouldIgnorePairingRequest=e=>{const{topic:t,requestMethod:s}=e,i=this.expectedPairingMethodMap.get(t);return!i||i.includes(s)?!1:!!(i.includes("wc_sessionAuthenticate")&&this.client.events.listenerCount("session_authenticate")>0)},this.onSessionProposeRequest=async e=>{const{topic:t,payload:s,attestation:i,encryptedId:r}=e,{params:n,id:a}=s;try{const c=this.client.core.eventClient.getEvent({topic:t});this.client.events.listenerCount("session_proposal")===0&&(console.warn("No listener for session_proposal event"),c?.setError(index_es_$.proposal_listener_not_found)),this.isValidConnect(sign_client_dist_index_es_I({},s.params));const h=n.expiryTimestamp||Lt(sign_client_dist_index_es_v.wc_sessionPropose.req.ttl),p=sign_client_dist_index_es_I({id:a,pairingTopic:t,expiryTimestamp:h},n);await this.setProposal(a,p);const d=await this.getVerifyContext({attestationId:i,hash:br(JSON.stringify(s)),encryptedId:r,metadata:p.proposer.metadata});c?.addTrace(core_dist_index_es_z.emit_session_proposal),this.client.events.emit("session_proposal",{id:a,params:p,verifyContext:d})}catch(c){await this.sendError({id:a,topic:t,error:c,rpcOpts:sign_client_dist_index_es_v.wc_sessionPropose.autoReject}),this.client.logger.error(c)}},this.onSessionProposeResponse=async(e,t,s)=>{const{id:i}=t;if(isJsonRpcResult(t)){const{result:r}=t;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:r});const n=this.client.proposal.get(i);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:n});const a=n.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:a});const c=r.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:c});const h=await this.client.core.crypto.generateSharedKey(a,c);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:h});const p=await this.client.core.relayer.subscribe(h,{transportType:s});this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:p}),await this.client.core.pairing.activate({topic:e})}else if(isJsonRpcError(t)){await this.client.proposal.delete(i,index_es_("USER_DISCONNECTED"));const r=qt("session_connect");if(this.events.listenerCount(r)===0)throw new Error(`emitting ${r} without any listeners, 954`);this.events.emit(qt("session_connect"),{error:t.error})}},this.onSessionSettleRequest=async(e,t)=>{const{id:s,params:i}=t;try{this.isValidSessionSettleRequest(i);const{relay:r,controller:n,expiry:a,namespaces:c,sessionProperties:h,sessionConfig:p}=t.params,d=dist_index_es_D(sign_client_dist_index_es_I(sign_client_dist_index_es_I({topic:e,relay:r,expiry:a,namespaces:c,acknowledged:!0,pairingTopic:"",requiredNamespaces:{},optionalNamespaces:{},controller:n.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:n.publicKey,metadata:n.metadata}},h&&{sessionProperties:h}),p&&{sessionConfig:p}),{transportType:dist_index_es_M.relay}),l=qt("session_connect");if(this.events.listenerCount(l)===0)throw new Error(`emitting ${l} without any listeners 997`);this.events.emit(qt("session_connect"),{session:d}),await this.sendResult({id:t.id,topic:e,result:!0,throwOnFailedPublish:!0})}catch(r){await this.sendError({id:s,topic:e,error:r}),this.client.logger.error(r)}},this.onSessionSettleResponse=async(e,t)=>{const{id:s}=t;isJsonRpcResult(t)?(await this.client.session.update(e,{acknowledged:!0}),this.events.emit(qt("session_approve",s),{})):isJsonRpcError(t)&&(await this.client.session.delete(e,index_es_("USER_DISCONNECTED")),this.events.emit(qt("session_approve",s),{error:t.error}))},this.onSessionUpdateRequest=async(e,t)=>{const{params:s,id:i}=t;try{const r=`${e}_session_update`,n=bo.get(r);if(n&&this.isRequestOutOfSync(n,i)){this.client.logger.warn(`Discarding out of sync request - ${i}`),this.sendError({id:i,topic:e,error:index_es_("INVALID_UPDATE_REQUEST")});return}this.isValidUpdate(sign_client_dist_index_es_I({topic:e},s));try{bo.set(r,i),await this.client.session.update(e,{namespaces:s.namespaces}),await this.sendResult({id:i,topic:e,result:!0,throwOnFailedPublish:!0})}catch(a){throw bo.delete(r),a}this.client.events.emit("session_update",{id:i,topic:e,params:s})}catch(r){await this.sendError({id:i,topic:e,error:r}),this.client.logger.error(r)}},this.isRequestOutOfSync=(e,t)=>t.toString().slice(0,-3){const{id:s}=t,i=qt("session_update",s);if(this.events.listenerCount(i)===0)throw new Error(`emitting ${i} without any listeners`);isJsonRpcResult(t)?this.events.emit(qt("session_update",s),{}):isJsonRpcError(t)&&this.events.emit(qt("session_update",s),{error:t.error})},this.onSessionExtendRequest=async(e,t)=>{const{id:s}=t;try{this.isValidExtend({topic:e}),await this.setExpiry(e,Lt(index_es_H)),await this.sendResult({id:s,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_extend",{id:s,topic:e})}catch(i){await this.sendError({id:s,topic:e,error:i}),this.client.logger.error(i)}},this.onSessionExtendResponse=(e,t)=>{const{id:s}=t,i=qt("session_extend",s);if(this.events.listenerCount(i)===0)throw new Error(`emitting ${i} without any listeners`);isJsonRpcResult(t)?this.events.emit(qt("session_extend",s),{}):isJsonRpcError(t)&&this.events.emit(qt("session_extend",s),{error:t.error})},this.onSessionPingRequest=async(e,t)=>{const{id:s}=t;try{this.isValidPing({topic:e}),await this.sendResult({id:s,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_ping",{id:s,topic:e})}catch(i){await this.sendError({id:s,topic:e,error:i}),this.client.logger.error(i)}},this.onSessionPingResponse=(e,t)=>{const{id:s}=t,i=qt("session_ping",s);if(this.events.listenerCount(i)===0)throw new Error(`emitting ${i} without any listeners`);setTimeout(()=>{isJsonRpcResult(t)?this.events.emit(qt("session_ping",s),{}):isJsonRpcError(t)&&this.events.emit(qt("session_ping",s),{error:t.error})},500)},this.onSessionDeleteRequest=async(e,t)=>{const{id:s}=t;try{this.isValidDisconnect({topic:e,reason:t.params}),Promise.all([new Promise(i=>{this.client.core.relayer.once(core_dist_index_es_v.publish,async()=>{i(await this.deleteSession({topic:e,id:s}))})}),this.sendResult({id:s,topic:e,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:e,error:index_es_("USER_DISCONNECTED")})]).catch(i=>this.client.logger.error(i))}catch(i){this.client.logger.error(i)}},this.onSessionRequest=async e=>{var t,s,i;const{topic:r,payload:n,attestation:a,encryptedId:c,transportType:h}=e,{id:p,params:d}=n;try{await this.isValidRequest(sign_client_dist_index_es_I({topic:r},d));const l=this.client.session.get(r),w=await this.getVerifyContext({attestationId:a,hash:br(JSON.stringify(formatJsonRpcRequest("wc_sessionRequest",d,p))),encryptedId:c,metadata:l.peer.metadata,transportType:h}),m={id:p,topic:r,params:d,verifyContext:w};await this.setPendingSessionRequest(m),h===dist_index_es_M.link_mode&&(t=l.peer.metadata.redirect)!=null&&t.universal&&this.client.core.addLinkModeSupportedApp((s=l.peer.metadata.redirect)==null?void 0:s.universal),(i=this.client.signConfig)!=null&&i.disableRequestQueue?this.emitSessionRequest(m):(this.addSessionRequestToSessionRequestQueue(m),this.processSessionRequestQueue())}catch(l){await this.sendError({id:p,topic:r,error:l}),this.client.logger.error(l)}},this.onSessionRequestResponse=(e,t)=>{const{id:s}=t,i=qt("session_request",s);if(this.events.listenerCount(i)===0)throw new Error(`emitting ${i} without any listeners`);isJsonRpcResult(t)?this.events.emit(qt("session_request",s),{result:t.result}):isJsonRpcError(t)&&this.events.emit(qt("session_request",s),{error:t.error})},this.onSessionEventRequest=async(e,t)=>{const{id:s,params:i}=t;try{const r=`${e}_session_event_${i.event.name}`,n=bo.get(r);if(n&&this.isRequestOutOfSync(n,s)){this.client.logger.info(`Discarding out of sync request - ${s}`);return}this.isValidEmit(sign_client_dist_index_es_I({topic:e},i)),this.client.events.emit("session_event",{id:s,topic:e,params:i}),bo.set(r,s)}catch(r){await this.sendError({id:s,topic:e,error:r}),this.client.logger.error(r)}},this.onSessionAuthenticateResponse=(e,t)=>{const{id:s}=t;this.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:e,payload:t}),isJsonRpcResult(t)?this.events.emit(qt("session_request",s),{result:t.result}):isJsonRpcError(t)&&this.events.emit(qt("session_request",s),{error:t.error})},this.onSessionAuthenticateRequest=async e=>{var t;const{topic:s,payload:i,attestation:r,encryptedId:n,transportType:a}=e;try{const{requester:c,authPayload:h,expiryTimestamp:p}=i.params,d=await this.getVerifyContext({attestationId:r,hash:br(JSON.stringify(i)),encryptedId:n,metadata:c.metadata,transportType:a}),l={requester:c,pairingTopic:s,id:i.id,authPayload:h,verifyContext:d,expiryTimestamp:p};await this.setAuthRequest(i.id,{request:l,pairingTopic:s,transportType:a}),a===dist_index_es_M.link_mode&&(t=c.metadata.redirect)!=null&&t.universal&&this.client.core.addLinkModeSupportedApp(c.metadata.redirect.universal),this.client.events.emit("session_authenticate",{topic:s,params:i.params,id:i.id,verifyContext:d})}catch(c){this.client.logger.error(c);const h=i.params.requester.publicKey,p=await this.client.core.crypto.generateKeyPair(),d=this.getAppLinkIfEnabled(i.params.requester.metadata,a),l={type:D,receiverPublicKey:h,senderPublicKey:p};await this.sendError({id:i.id,topic:s,error:c,encodeOpts:l,rpcOpts:sign_client_dist_index_es_v.wc_sessionAuthenticate.autoReject,appLink:d})}},this.addSessionRequestToSessionRequestQueue=e=>{this.sessionRequestQueue.queue.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=sign_client_dist_index_es_x.idle,this.processSessionRequestQueue()},(0,cjs.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=({topic:e,error:t})=>{const s=this.client.core.history.pending;s.length>0&&s.filter(i=>i.topic===e&&i.request.method==="wc_sessionRequest").forEach(i=>{const r=i.request.id,n=qt("session_request",r);if(this.events.listenerCount(n)===0)throw new Error(`emitting ${n} without any listeners`);this.events.emit(qt("session_request",i.request.id),{error:t})})},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===sign_client_dist_index_es_x.active){this.client.logger.info("session request queue is already active.");return}const e=this.sessionRequestQueue.queue[0];if(!e){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=sign_client_dist_index_es_x.active,this.emitSessionRequest(e)}catch(t){this.client.logger.error(t)}},this.emitSessionRequest=e=>{this.client.events.emit("session_request",e)},this.onPairingCreated=e=>{if(e.methods&&this.expectedPairingMethodMap.set(e.topic,e.methods),e.active)return;const t=this.client.proposal.getAll().find(s=>s.pairingTopic===e.topic);t&&this.onSessionProposeRequest({topic:e.topic,payload:formatJsonRpcRequest("wc_sessionPropose",{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces,relays:t.relays,proposer:t.proposer,sessionProperties:t.sessionProperties},t.id)})},this.isValidConnect=async e=>{if(!so(e)){const{message:a}=index_es_S("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(e)}`);throw new Error(a)}const{pairingTopic:t,requiredNamespaces:s,optionalNamespaces:i,sessionProperties:r,relays:n}=e;if(index_es_P(t)||await this.isValidPairingTopic(t),!ro(n,!0)){const{message:a}=index_es_S("MISSING_OR_INVALID",`connect() relays: ${n}`);throw new Error(a)}!index_es_P(s)&&Z(s)!==0&&this.validateNamespaces(s,"requiredNamespaces"),!index_es_P(i)&&Z(i)!==0&&this.validateNamespaces(i,"optionalNamespaces"),index_es_P(r)||this.validateSessionProps(r,"sessionProperties")},this.validateNamespaces=(e,t)=>{const s=to(e,"connect()",t);if(s)throw new Error(s.message)},this.isValidApprove=async e=>{if(!so(e))throw new Error(index_es_S("MISSING_OR_INVALID",`approve() params: ${e}`).message);const{id:t,namespaces:s,relayProtocol:i,sessionProperties:r}=e;this.checkRecentlyDeleted(t),await this.isValidProposalId(t);const n=this.client.proposal.get(t),a=Wn(s,"approve()");if(a)throw new Error(a.message);const c=zn(n.requiredNamespaces,s,"approve()");if(c)throw new Error(c.message);if(!index_es_b(i,!0)){const{message:h}=index_es_S("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw new Error(h)}index_es_P(r)||this.validateSessionProps(r,"sessionProperties")},this.isValidReject=async e=>{if(!so(e)){const{message:i}=index_es_S("MISSING_OR_INVALID",`reject() params: ${e}`);throw new Error(i)}const{id:t,reason:s}=e;if(this.checkRecentlyDeleted(t),await this.isValidProposalId(t),!io(s)){const{message:i}=index_es_S("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(s)}`);throw new Error(i)}},this.isValidSessionSettleRequest=e=>{if(!so(e)){const{message:c}=index_es_S("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${e}`);throw new Error(c)}const{relay:t,controller:s,namespaces:i,expiry:r}=e;if(!Jn(t)){const{message:c}=index_es_S("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(c)}const n=no(s,"onSessionSettleRequest()");if(n)throw new Error(n.message);const a=Wn(i,"onSessionSettleRequest()");if(a)throw new Error(a.message);if(Ft(r)){const{message:c}=index_es_S("EXPIRED","onSessionSettleRequest()");throw new Error(c)}},this.isValidUpdate=async e=>{if(!so(e)){const{message:a}=index_es_S("MISSING_OR_INVALID",`update() params: ${e}`);throw new Error(a)}const{topic:t,namespaces:s}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);const i=this.client.session.get(t),r=Wn(s,"update()");if(r)throw new Error(r.message);const n=zn(i.requiredNamespaces,s,"update()");if(n)throw new Error(n.message)},this.isValidExtend=async e=>{if(!so(e)){const{message:s}=index_es_S("MISSING_OR_INVALID",`extend() params: ${e}`);throw new Error(s)}const{topic:t}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t)},this.isValidRequest=async e=>{if(!so(e)){const{message:a}=index_es_S("MISSING_OR_INVALID",`request() params: ${e}`);throw new Error(a)}const{topic:t,request:s,chainId:i,expiry:r}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);const{namespaces:n}=this.client.session.get(t);if(!lo(n,i)){const{message:a}=index_es_S("MISSING_OR_INVALID",`request() chainId: ${i}`);throw new Error(a)}if(!co(s)){const{message:a}=index_es_S("MISSING_OR_INVALID",`request() ${JSON.stringify(s)}`);throw new Error(a)}if(!fo(n,i,s.method)){const{message:a}=index_es_S("MISSING_OR_INVALID",`request() method: ${s.method}`);throw new Error(a)}if(r&&!yo(r,dist_index_es_me)){const{message:a}=index_es_S("MISSING_OR_INVALID",`request() expiry: ${r}. Expiry must be a number (in seconds) between ${dist_index_es_me.min} and ${dist_index_es_me.max}`);throw new Error(a)}},this.isValidRespond=async e=>{var t;if(!so(e)){const{message:r}=index_es_S("MISSING_OR_INVALID",`respond() params: ${e}`);throw new Error(r)}const{topic:s,response:i}=e;try{await this.isValidSessionTopic(s)}catch(r){throw(t=e?.response)!=null&&t.id&&this.cleanupAfterResponse(e),r}if(!ao(i)){const{message:r}=index_es_S("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(i)}`);throw new Error(r)}},this.isValidPing=async e=>{if(!so(e)){const{message:s}=index_es_S("MISSING_OR_INVALID",`ping() params: ${e}`);throw new Error(s)}const{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidEmit=async e=>{if(!so(e)){const{message:n}=index_es_S("MISSING_OR_INVALID",`emit() params: ${e}`);throw new Error(n)}const{topic:t,event:s,chainId:i}=e;await this.isValidSessionTopic(t);const{namespaces:r}=this.client.session.get(t);if(!lo(r,i)){const{message:n}=index_es_S("MISSING_OR_INVALID",`emit() chainId: ${i}`);throw new Error(n)}if(!uo(s)){const{message:n}=index_es_S("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(s)}`);throw new Error(n)}if(!po(r,i,s.name)){const{message:n}=index_es_S("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(s)}`);throw new Error(n)}},this.isValidDisconnect=async e=>{if(!so(e)){const{message:s}=index_es_S("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw new Error(s)}const{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidAuthenticate=e=>{const{chains:t,uri:s,domain:i,nonce:r}=e;if(!Array.isArray(t)||t.length===0)throw new Error("chains is required and must be a non-empty array");if(!index_es_b(s,!1))throw new Error("uri is required parameter");if(!index_es_b(i,!1))throw new Error("domain is required parameter");if(!index_es_b(r,!1))throw new Error("nonce is required parameter");if([...new Set(t.map(a=>re(a).namespace))].length>1)throw new Error("Multi-namespace requests are not supported. Please request single namespace only.");const{namespace:n}=re(t[0]);if(n!=="eip155")throw new Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},this.getVerifyContext=async e=>{const{attestationId:t,hash:s,encryptedId:i,metadata:r,transportType:n}=e,a={verified:{verifyUrl:r.verifyUrl||index_es_X,validation:"UNKNOWN",origin:r.url||""}};try{if(n===dist_index_es_M.link_mode){const h=this.getAppLinkIfEnabled(r,n);return a.verified.validation=h&&new URL(h).origin===new URL(r.url).origin?"VALID":"INVALID",a}const c=await this.client.core.verify.resolve({attestationId:t,hash:s,encryptedId:i,verifyUrl:r.verifyUrl});c&&(a.verified.origin=c.origin,a.verified.isScam=c.isScam,a.verified.validation=c.origin===new URL(r.url).origin?"VALID":"INVALID")}catch(c){this.client.logger.warn(c)}return this.client.logger.debug(`Verify context: ${JSON.stringify(a)}`),a},this.validateSessionProps=(e,t)=>{Object.values(e).forEach(s=>{if(!index_es_b(s,!1)){const{message:i}=index_es_S("MISSING_OR_INVALID",`${t} must be in Record format. Received: ${JSON.stringify(s)}`);throw new Error(i)}})},this.getPendingAuthRequest=e=>{const t=this.client.auth.requests.get(e);return typeof t=="object"?t:void 0},this.addToRecentlyDeleted=(e,t)=>{if(this.recentlyDeletedMap.set(e,t),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let s=0;const i=this.recentlyDeletedLimit/2;for(const r of this.recentlyDeletedMap.keys()){if(s++>=i)break;this.recentlyDeletedMap.delete(r)}}},this.checkRecentlyDeleted=e=>{const t=this.recentlyDeletedMap.get(e);if(t){const{message:s}=index_es_S("MISSING_OR_INVALID",`Record was recently deleted - ${t}: ${e}`);throw new Error(s)}},this.isLinkModeEnabled=(e,t)=>{var s,i,r,n,a,c,h,p,d;return!e||t!==dist_index_es_M.link_mode?!1:((i=(s=this.client.metadata)==null?void 0:s.redirect)==null?void 0:i.linkMode)===!0&&((n=(r=this.client.metadata)==null?void 0:r.redirect)==null?void 0:n.universal)!==void 0&&((c=(a=this.client.metadata)==null?void 0:a.redirect)==null?void 0:c.universal)!==""&&((h=e?.redirect)==null?void 0:h.universal)!==void 0&&((p=e?.redirect)==null?void 0:p.universal)!==""&&((d=e?.redirect)==null?void 0:d.linkMode)===!0&&this.client.core.linkModeSupportedApps.includes(e.redirect.universal)&&typeof(global==null?void 0:global.Linking)<"u"},this.getAppLinkIfEnabled=(e,t)=>{var s;return this.isLinkModeEnabled(e,t)?(s=e?.redirect)==null?void 0:s.universal:void 0},this.handleLinkModeMessage=({url:e})=>{if(!e||!e.includes("wc_ev")||!e.includes("topic"))return;const t=Wt(e,"topic")||"",s=decodeURIComponent(Wt(e,"wc_ev")||""),i=this.client.session.keys.includes(t);i&&this.client.session.update(t,{transportType:dist_index_es_M.link_mode}),this.client.core.dispatchEnvelope({topic:t,message:s,sessionExists:i})},this.registerLinkModeListeners=async()=>{var e;if(zt()||$()&&(e=this.client.metadata.redirect)!=null&&e.linkMode){const t=global==null?void 0:global.Linking;if(typeof t<"u"){t.addEventListener("url",this.handleLinkModeMessage,this.client.name);const s=await t.getInitialURL();s&&setTimeout(()=>{this.handleLinkModeMessage({url:s})},50)}}}}isInitialized(){if(!this.initialized){const{message:o}=index_es_S("NOT_INITIALIZED",this.name);throw new Error(o)}}async confirmOnlineStateOrThrow(){await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(core_dist_index_es_v.message,o=>{!this.initialized||this.relayMessageCache.length>0?this.relayMessageCache.push(o):this.onRelayMessage(o)})}async onRelayMessage(o){const{topic:e,message:t,attestation:s,transportType:i}=o,{publicKey:r}=this.client.auth.authKeys.keys.includes(index_es_ae)?this.client.auth.authKeys.get(index_es_ae):{responseTopic:void 0,publicKey:void 0},n=await this.client.core.crypto.decode(e,t,{receiverPublicKey:r,encoding:i===dist_index_es_M.link_mode?pr:ge});try{isJsonRpcRequest(n)?(this.client.core.history.set(e,n),this.onRelayEventRequest({topic:e,payload:n,attestation:s,transportType:i,encryptedId:br(t)})):isJsonRpcResponse(n)?(await this.client.core.history.resolve(n),await this.onRelayEventResponse({topic:e,payload:n,transportType:i}),this.client.core.history.delete(e,n.id)):this.onRelayEventUnknownPayload({topic:e,payload:n,transportType:i})}catch(a){this.client.logger.error(a)}}registerExpirerEvents(){this.client.core.expirer.on(core_dist_index_es_x.expired,async o=>{const{topic:e,id:t}=Kt(o.target);if(t&&this.client.pendingRequest.keys.includes(t))return await this.deletePendingSessionRequest(t,index_es_S("EXPIRED"),!0);if(t&&this.client.auth.requests.keys.includes(t))return await this.deletePendingAuthRequest(t,index_es_S("EXPIRED"),!0);e?this.client.session.keys.includes(e)&&(await this.deleteSession({topic:e,expirerHasDeleted:!0}),this.client.events.emit("session_expire",{topic:e})):t&&(await this.deleteProposal(t,!0),this.client.events.emit("proposal_expire",{id:t}))})}registerPairingEvents(){this.client.core.pairing.events.on(index_es_j.create,o=>this.onPairingCreated(o)),this.client.core.pairing.events.on(index_es_j.delete,o=>{this.addToRecentlyDeleted(o.topic,"pairing")})}isValidPairingTopic(o){if(!index_es_b(o,!1)){const{message:e}=index_es_S("MISSING_OR_INVALID",`pairing topic should be a string: ${o}`);throw new Error(e)}if(!this.client.core.pairing.pairings.keys.includes(o)){const{message:e}=index_es_S("NO_MATCHING_KEY",`pairing topic doesn't exist: ${o}`);throw new Error(e)}if(Ft(this.client.core.pairing.pairings.get(o).expiry)){const{message:e}=index_es_S("EXPIRED",`pairing topic: ${o}`);throw new Error(e)}}async isValidSessionTopic(o){if(!index_es_b(o,!1)){const{message:e}=index_es_S("MISSING_OR_INVALID",`session topic should be a string: ${o}`);throw new Error(e)}if(this.checkRecentlyDeleted(o),!this.client.session.keys.includes(o)){const{message:e}=index_es_S("NO_MATCHING_KEY",`session topic doesn't exist: ${o}`);throw new Error(e)}if(Ft(this.client.session.get(o).expiry)){await this.deleteSession({topic:o});const{message:e}=index_es_S("EXPIRED",`session topic: ${o}`);throw new Error(e)}if(!this.client.core.crypto.keychain.has(o)){const{message:e}=index_es_S("MISSING_OR_INVALID",`session topic does not exist in keychain: ${o}`);throw await this.deleteSession({topic:o}),new Error(e)}}async isValidSessionOrPairingTopic(o){if(this.checkRecentlyDeleted(o),this.client.session.keys.includes(o))await this.isValidSessionTopic(o);else if(this.client.core.pairing.pairings.keys.includes(o))this.isValidPairingTopic(o);else if(index_es_b(o,!1)){const{message:e}=index_es_S("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${o}`);throw new Error(e)}else{const{message:e}=index_es_S("MISSING_OR_INVALID",`session or pairing topic should be a string: ${o}`);throw new Error(e)}}async isValidProposalId(o){if(!oo(o)){const{message:e}=index_es_S("MISSING_OR_INVALID",`proposal id should be a number: ${o}`);throw new Error(e)}if(!this.client.proposal.keys.includes(o)){const{message:e}=index_es_S("NO_MATCHING_KEY",`proposal id doesn't exist: ${o}`);throw new Error(e)}if(Ft(this.client.proposal.get(o).expiryTimestamp)){await this.deleteProposal(o);const{message:e}=index_es_S("EXPIRED",`proposal id: ${o}`);throw new Error(e)}}}class index_es_Ss extends li{constructor(o,e){super(o,e,index_es_it,dist_index_es_ye),this.core=o,this.logger=e}}class dist_index_es_wt extends li{constructor(o,e){super(o,e,index_es_nt,dist_index_es_ye),this.core=o,this.logger=e}}class index_es_Is extends li{constructor(o,e){super(o,e,index_es_at,dist_index_es_ye,t=>t.id),this.core=o,this.logger=e}}class fs extends li{constructor(o,e){super(o,e,dist_index_es_ht,dist_index_es_oe,()=>index_es_ae),this.core=o,this.logger=e}}class vs extends li{constructor(o,e){super(o,e,index_es_dt,dist_index_es_oe),this.core=o,this.logger=e}}class index_es_qs extends li{constructor(o,e){super(o,e,index_es_ut,dist_index_es_oe,t=>t.id),this.core=o,this.logger=e}}class index_es_Ts{constructor(o,e){this.core=o,this.logger=e,this.authKeys=new fs(this.core,this.logger),this.pairingTopics=new vs(this.core,this.logger),this.requests=new index_es_qs(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}class dist_index_es_e extends types_dist_index_es_S{constructor(o){super(o),this.protocol=Ce,this.version=index_es_Le,this.name=dist_index_es_we.name,this.events=new external_events_.EventEmitter,this.on=(t,s)=>this.events.on(t,s),this.once=(t,s)=>this.events.once(t,s),this.off=(t,s)=>this.events.off(t,s),this.removeListener=(t,s)=>this.events.removeListener(t,s),this.removeAllListeners=t=>this.events.removeAllListeners(t),this.connect=async t=>{try{return await this.engine.connect(t)}catch(s){throw this.logger.error(s.message),s}},this.pair=async t=>{try{return await this.engine.pair(t)}catch(s){throw this.logger.error(s.message),s}},this.approve=async t=>{try{return await this.engine.approve(t)}catch(s){throw this.logger.error(s.message),s}},this.reject=async t=>{try{return await this.engine.reject(t)}catch(s){throw this.logger.error(s.message),s}},this.update=async t=>{try{return await this.engine.update(t)}catch(s){throw this.logger.error(s.message),s}},this.extend=async t=>{try{return await this.engine.extend(t)}catch(s){throw this.logger.error(s.message),s}},this.request=async t=>{try{return await this.engine.request(t)}catch(s){throw this.logger.error(s.message),s}},this.respond=async t=>{try{return await this.engine.respond(t)}catch(s){throw this.logger.error(s.message),s}},this.ping=async t=>{try{return await this.engine.ping(t)}catch(s){throw this.logger.error(s.message),s}},this.emit=async t=>{try{return await this.engine.emit(t)}catch(s){throw this.logger.error(s.message),s}},this.disconnect=async t=>{try{return await this.engine.disconnect(t)}catch(s){throw this.logger.error(s.message),s}},this.find=t=>{try{return this.engine.find(t)}catch(s){throw this.logger.error(s.message),s}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(t){throw this.logger.error(t.message),t}},this.authenticate=async(t,s)=>{try{return await this.engine.authenticate(t,s)}catch(i){throw this.logger.error(i.message),i}},this.formatAuthMessage=t=>{try{return this.engine.formatAuthMessage(t)}catch(s){throw this.logger.error(s.message),s}},this.approveSessionAuthenticate=async t=>{try{return await this.engine.approveSessionAuthenticate(t)}catch(s){throw this.logger.error(s.message),s}},this.rejectSessionAuthenticate=async t=>{try{return await this.engine.rejectSessionAuthenticate(t)}catch(s){throw this.logger.error(s.message),s}},this.name=o?.name||dist_index_es_we.name,this.metadata=o?.metadata||$t(),this.signConfig=o?.signConfig;const e=typeof o?.logger<"u"&&typeof o?.logger!="string"?o.logger:pino_default()(logger_dist_index_es_k({level:o?.logger||dist_index_es_we.logger}));this.core=o?.core||new index_es_Rn(o),this.logger=dist_index_es_E(e,this.name),this.session=new dist_index_es_wt(this.core,this.logger),this.proposal=new index_es_Ss(this.core,this.logger),this.pendingRequest=new index_es_Is(this.core,this.logger),this.engine=new index_es_Rs(this),this.auth=new index_es_Ts(this.core,this.logger)}static async init(o){const e=new dist_index_es_e(o);return await e.initialize(),e}get context(){return dist_index_es_y(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.auth.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success"),setTimeout(()=>{this.engine.processRelayMessageCache()},(0,cjs.toMiliseconds)(cjs.ONE_SECOND))}catch(o){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(o.message),o}}}const index_es_Ns=(/* unused pure expression or super */ null && (dist_index_es_wt)),index_es_Ps=(/* unused pure expression or super */ null && (dist_index_es_e)); //# sourceMappingURL=index.es.js.map // EXTERNAL MODULE: ./node_modules/lodash/lodash.js @@ -6749,15 +6749,15 @@ var lodash = __webpack_require__(302543); var node_ponyfill = __webpack_require__(144484); var node_ponyfill_default = /*#__PURE__*/__webpack_require__.n(node_ponyfill); ;// ./node_modules/@walletconnect/jsonrpc-http-connection/dist/index.es.js -var jsonrpc_http_connection_dist_index_es_P=Object.defineProperty,jsonrpc_http_connection_dist_index_es_w=Object.defineProperties,jsonrpc_http_connection_dist_index_es_E=Object.getOwnPropertyDescriptors,jsonrpc_http_connection_dist_index_es_c=Object.getOwnPropertySymbols,dist_index_es_L=Object.prototype.hasOwnProperty,jsonrpc_http_connection_dist_index_es_O=Object.prototype.propertyIsEnumerable,jsonrpc_http_connection_dist_index_es_l=(r,t,e)=>t in r?jsonrpc_http_connection_dist_index_es_P(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,jsonrpc_http_connection_dist_index_es_p=(r,t)=>{for(var e in t||(t={}))dist_index_es_L.call(t,e)&&jsonrpc_http_connection_dist_index_es_l(r,e,t[e]);if(jsonrpc_http_connection_dist_index_es_c)for(var e of jsonrpc_http_connection_dist_index_es_c(t))jsonrpc_http_connection_dist_index_es_O.call(t,e)&&jsonrpc_http_connection_dist_index_es_l(r,e,t[e]);return r},jsonrpc_http_connection_dist_index_es_v=(r,t)=>jsonrpc_http_connection_dist_index_es_w(r,jsonrpc_http_connection_dist_index_es_E(t));const index_es_j={Accept:"application/json","Content-Type":"application/json"},index_es_T="POST",jsonrpc_http_connection_dist_index_es_d={headers:index_es_j,method:index_es_T},jsonrpc_http_connection_dist_index_es_g=10;class jsonrpc_http_connection_dist_index_es_f{constructor(t,e=!1){if(this.url=t,this.disableProviderPing=e,this.events=new external_events_.EventEmitter,this.isAvailable=!1,this.registering=!1,!isHttpUrl(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);this.url=t,this.disableProviderPing=e}get connected(){return this.isAvailable}get connecting(){return this.registering}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async open(t=this.url){await this.register(t)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(t){this.isAvailable||await this.register();try{const e=safeJsonStringify(t),s=await(await node_ponyfill_default()(this.url,jsonrpc_http_connection_dist_index_es_v(jsonrpc_http_connection_dist_index_es_p({},jsonrpc_http_connection_dist_index_es_d),{body:e}))).json();this.onPayload({data:s})}catch(e){this.onError(t.id,e)}}async register(t=this.url){if(!isHttpUrl(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);if(this.registering){const e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((s,i)=>{this.events.once("register_error",n=>{this.resetMaxListeners(),i(n)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return i(new Error("HTTP connection is missing or invalid"));s()})})}this.url=t,this.registering=!0;try{if(!this.disableProviderPing){const e=safeJsonStringify({id:1,jsonrpc:"2.0",method:"test",params:[]});await node_ponyfill_default()(t,jsonrpc_http_connection_dist_index_es_v(jsonrpc_http_connection_dist_index_es_p({},jsonrpc_http_connection_dist_index_es_d),{body:e}))}this.onOpen()}catch(e){const s=this.parseError(e);throw this.events.emit("register_error",s),this.onClose(),s}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(t){if(typeof t.data>"u")return;const e=typeof t.data=="string"?safeJsonParse(t.data):t.data;this.events.emit("payload",e)}onError(t,e){const s=this.parseError(e),i=s.message||s.toString(),n=formatJsonRpcError(t,i);this.events.emit("payload",n)}parseError(t,e=this.url){return parseConnectionError(t,e,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>jsonrpc_http_connection_dist_index_es_g&&this.events.setMaxListeners(jsonrpc_http_connection_dist_index_es_g)}} +var dist_index_es_P=Object.defineProperty,jsonrpc_http_connection_dist_index_es_w=Object.defineProperties,jsonrpc_http_connection_dist_index_es_E=Object.getOwnPropertyDescriptors,jsonrpc_http_connection_dist_index_es_c=Object.getOwnPropertySymbols,dist_index_es_L=Object.prototype.hasOwnProperty,jsonrpc_http_connection_dist_index_es_O=Object.prototype.propertyIsEnumerable,jsonrpc_http_connection_dist_index_es_l=(r,t,e)=>t in r?dist_index_es_P(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,jsonrpc_http_connection_dist_index_es_p=(r,t)=>{for(var e in t||(t={}))dist_index_es_L.call(t,e)&&jsonrpc_http_connection_dist_index_es_l(r,e,t[e]);if(jsonrpc_http_connection_dist_index_es_c)for(var e of jsonrpc_http_connection_dist_index_es_c(t))jsonrpc_http_connection_dist_index_es_O.call(t,e)&&jsonrpc_http_connection_dist_index_es_l(r,e,t[e]);return r},jsonrpc_http_connection_dist_index_es_v=(r,t)=>jsonrpc_http_connection_dist_index_es_w(r,jsonrpc_http_connection_dist_index_es_E(t));const dist_index_es_j={Accept:"application/json","Content-Type":"application/json"},dist_index_es_T="POST",jsonrpc_http_connection_dist_index_es_d={headers:dist_index_es_j,method:dist_index_es_T},jsonrpc_http_connection_dist_index_es_g=10;class jsonrpc_http_connection_dist_index_es_f{constructor(t,e=!1){if(this.url=t,this.disableProviderPing=e,this.events=new external_events_.EventEmitter,this.isAvailable=!1,this.registering=!1,!isHttpUrl(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);this.url=t,this.disableProviderPing=e}get connected(){return this.isAvailable}get connecting(){return this.registering}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async open(t=this.url){await this.register(t)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(t){this.isAvailable||await this.register();try{const e=safeJsonStringify(t),s=await(await node_ponyfill_default()(this.url,jsonrpc_http_connection_dist_index_es_v(jsonrpc_http_connection_dist_index_es_p({},jsonrpc_http_connection_dist_index_es_d),{body:e}))).json();this.onPayload({data:s})}catch(e){this.onError(t.id,e)}}async register(t=this.url){if(!isHttpUrl(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);if(this.registering){const e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((s,i)=>{this.events.once("register_error",n=>{this.resetMaxListeners(),i(n)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return i(new Error("HTTP connection is missing or invalid"));s()})})}this.url=t,this.registering=!0;try{if(!this.disableProviderPing){const e=safeJsonStringify({id:1,jsonrpc:"2.0",method:"test",params:[]});await node_ponyfill_default()(t,jsonrpc_http_connection_dist_index_es_v(jsonrpc_http_connection_dist_index_es_p({},jsonrpc_http_connection_dist_index_es_d),{body:e}))}this.onOpen()}catch(e){const s=this.parseError(e);throw this.events.emit("register_error",s),this.onClose(),s}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(t){if(typeof t.data>"u")return;const e=typeof t.data=="string"?safeJsonParse(t.data):t.data;this.events.emit("payload",e)}onError(t,e){const s=this.parseError(e),i=s.message||s.toString(),n=formatJsonRpcError(t,i);this.events.emit("payload",n)}parseError(t,e=this.url){return parseConnectionError(t,e,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>jsonrpc_http_connection_dist_index_es_g&&this.events.setMaxListeners(jsonrpc_http_connection_dist_index_es_g)}} //# sourceMappingURL=index.es.js.map ;// ./node_modules/@walletconnect/universal-provider/dist/index.es.js -const universal_provider_dist_index_es_D="error",dist_index_es_rt="wss://relay.walletconnect.org",dist_index_es_nt="wc",dist_index_es_at="universal_provider",universal_provider_dist_index_es_S=`${dist_index_es_nt}@2:${dist_index_es_at}:`,universal_provider_dist_index_es_="https://rpc.walletconnect.org/v1/",universal_provider_dist_index_es_f="generic",dist_index_es_ot=`${universal_provider_dist_index_es_}bundler`,universal_provider_dist_index_es_p={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};var dist_index_es_ct=Object.defineProperty,universal_provider_dist_index_es_ht=Object.defineProperties,universal_provider_dist_index_es_pt=Object.getOwnPropertyDescriptors,dist_index_es_j=Object.getOwnPropertySymbols,dist_index_es_dt=Object.prototype.hasOwnProperty,dist_index_es_ut=Object.prototype.propertyIsEnumerable,dist_index_es_R=(r,t,e)=>t in r?dist_index_es_ct(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,universal_provider_dist_index_es_g=(r,t)=>{for(var e in t||(t={}))dist_index_es_dt.call(t,e)&&dist_index_es_R(r,e,t[e]);if(dist_index_es_j)for(var e of dist_index_es_j(t))dist_index_es_ut.call(t,e)&&dist_index_es_R(r,e,t[e]);return r},dist_index_es_lt=(r,t)=>universal_provider_dist_index_es_ht(r,universal_provider_dist_index_es_pt(t));function universal_provider_dist_index_es_h(r,t,e){var s;const i=re(r);return((s=t.rpcMap)==null?void 0:s[i.reference])||`${universal_provider_dist_index_es_}?chainId=${i.namespace}:${i.reference}&projectId=${e}`}function universal_provider_dist_index_es_l(r){return r.includes(":")?r.split(":")[1]:r}function index_es_U(r){return r.map(t=>`${t.split(":")[0]}:${t.split(":")[1]}`)}function dist_index_es_mt(r,t){const e=Object.keys(t.namespaces).filter(i=>i.includes(r));if(!e.length)return[];const s=[];return e.forEach(i=>{const n=t.namespaces[i].accounts;s.push(...n)}),s}function dist_index_es_$(r={},t={}){const e=dist_index_es_T(r),s=dist_index_es_T(t);return (0,lodash.merge)(e,s)}function dist_index_es_T(r){var t,e,s,i;const n={};if(!Z(r))return n;for(const[a,c]of Object.entries(r)){const m=Oe(a)?[a]:c.chains,I=c.methods||[],V=c.events||[],B=c.rpcMap||{},v=Dn(a);n[v]=dist_index_es_lt(universal_provider_dist_index_es_g(universal_provider_dist_index_es_g({},n[v]),c),{chains:N(m,(t=n[v])==null?void 0:t.chains),methods:N(I,(e=n[v])==null?void 0:e.methods),events:N(V,(s=n[v])==null?void 0:s.events),rpcMap:universal_provider_dist_index_es_g(universal_provider_dist_index_es_g({},B),(i=n[v])==null?void 0:i.rpcMap)})}return n}function dist_index_es_vt(r){return r.includes(":")?r.split(":")[2]:r}function universal_provider_dist_index_es_k(r){const t={};for(const[e,s]of Object.entries(r)){const i=s.methods||[],n=s.events||[],a=s.accounts||[],c=Oe(e)?[e]:s.chains?s.chains:index_es_U(s.accounts);t[e]={chains:c,methods:i,events:n,accounts:a}}return t}function universal_provider_dist_index_es_E(r){return typeof r=="number"?r:r.includes("0x")?parseInt(r,16):(r=r.includes(":")?r.split(":")[1]:r,isNaN(Number(r))?r:Number(r))}const universal_provider_dist_index_es_L={},universal_provider_dist_index_es_o=r=>universal_provider_dist_index_es_L[r],universal_provider_dist_index_es_b=(r,t)=>{universal_provider_dist_index_es_L[r]=t};class dist_index_es_ft{constructor(t){this.name="polkadot",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const i=universal_provider_dist_index_es_l(e);t[i]=this.createHttpProvider(i,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}var dist_index_es_Pt=Object.defineProperty,universal_provider_dist_index_es_gt=Object.defineProperties,dist_index_es_wt=Object.getOwnPropertyDescriptors,dist_index_es_F=Object.getOwnPropertySymbols,dist_index_es_Ct=Object.prototype.hasOwnProperty,dist_index_es_It=Object.prototype.propertyIsEnumerable,index_es_G=(r,t,e)=>t in r?dist_index_es_Pt(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,universal_provider_dist_index_es_M=(r,t)=>{for(var e in t||(t={}))dist_index_es_Ct.call(t,e)&&index_es_G(r,e,t[e]);if(dist_index_es_F)for(var e of dist_index_es_F(t))dist_index_es_It.call(t,e)&&index_es_G(r,e,t[e]);return r},universal_provider_dist_index_es_x=(r,t)=>universal_provider_dist_index_es_gt(r,dist_index_es_wt(t));class dist_index_es_Ht{constructor(t){this.name="eip155",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(t){switch(t.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(t);case"eth_chainId":return parseInt(this.getDefaultChain());case"wallet_getCapabilities":return await this.getCapabilities(t);case"wallet_getCallsStatus":return await this.getCallStatus(t)}return this.namespace.methods.includes(t.request.method)?await this.client.request(t):this.getHttpProvider().request(t.request)}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(parseInt(t),e),this.chainId=parseInt(t),this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const i=parseInt(universal_provider_dist_index_es_l(e));t[i]=this.createHttpProvider(i,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}getHttpProvider(){const t=this.chainId,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}async handleSwitchChain(t){var e,s;let i=t.request.params?(e=t.request.params[0])==null?void 0:e.chainId:"0x0";i=i.startsWith("0x")?i:`0x${i}`;const n=parseInt(i,16);if(this.isChainApproved(n))this.setDefaultChain(`${n}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:t.topic,request:{method:t.request.method,params:[{chainId:i}]},chainId:(s=this.namespace.chains)==null?void 0:s[0]}),this.setDefaultChain(`${n}`);else throw new Error(`Failed to switch to chain 'eip155:${n}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(t){return this.namespace.chains.includes(`${this.name}:${t}`)}async getCapabilities(t){var e,s,i;const n=(s=(e=t.request)==null?void 0:e.params)==null?void 0:s[0];if(!n)throw new Error("Missing address parameter in `wallet_getCapabilities` request");const a=this.client.session.get(t.topic),c=((i=a?.sessionProperties)==null?void 0:i.capabilities)||{};if(c!=null&&c[n])return c?.[n];const m=await this.client.request(t);try{await this.client.session.update(t.topic,{sessionProperties:universal_provider_dist_index_es_x(universal_provider_dist_index_es_M({},a.sessionProperties||{}),{capabilities:universal_provider_dist_index_es_x(universal_provider_dist_index_es_M({},c||{}),{[n]:m})})})}catch(I){console.warn("Failed to update session with capabilities",I)}return m}async getCallStatus(t){var e,s;const i=this.client.session.get(t.topic),n=(e=i.sessionProperties)==null?void 0:e.bundler_name;if(n){const c=this.getBundlerUrl(t.chainId,n);try{return await this.getUserOperationReceipt(c,t)}catch(m){console.warn("Failed to fetch call status from bundler",m,c)}}const a=(s=i.sessionProperties)==null?void 0:s.bundler_url;if(a)try{return await this.getUserOperationReceipt(a,t)}catch(c){console.warn("Failed to fetch call status from custom bundler",c,a)}if(this.namespace.methods.includes(t.request.method))return await this.client.request(t);throw new Error("Fetching call status not approved by the wallet.")}async getUserOperationReceipt(t,e){var s;const i=new URL(t),n=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(formatJsonRpcRequest("eth_getUserOperationReceipt",[(s=e.request.params)==null?void 0:s[0]]))});if(!n.ok)throw new Error(`Failed to fetch user operation receipt - ${n.status}`);return await n.json()}getBundlerUrl(t,e){return`${dist_index_es_ot}?projectId=${this.client.core.projectId}&chainId=${t}&bundler=${e}`}}class dist_index_es_$t{constructor(t){this.name="solana",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const i=universal_provider_dist_index_es_l(e);t[i]=this.createHttpProvider(i,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}class dist_index_es_Et{constructor(t){this.name="cosmos",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const i=universal_provider_dist_index_es_l(e);t[i]=this.createHttpProvider(i,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}class dist_index_es_bt{constructor(t){this.name="algorand",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(!this.httpProviders[t]){const s=e||universal_provider_dist_index_es_h(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;t[e]=this.createHttpProvider(e,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace,this.client.core.projectId);return typeof s>"u"?void 0:new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}class dist_index_es_At{constructor(t){this.name="cip34",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{const s=this.getCardanoRPCUrl(e),i=universal_provider_dist_index_es_l(e);t[i]=this.createHttpProvider(i,s)}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}getCardanoRPCUrl(t){const e=this.namespace.rpcMap;if(e)return e[t]}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||this.getCardanoRPCUrl(t);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}class dist_index_es_Nt{constructor(t){this.name="elrond",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const i=universal_provider_dist_index_es_l(e);t[i]=this.createHttpProvider(i,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}class universal_provider_dist_index_es_yt{constructor(t){this.name="multiversx",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const i=universal_provider_dist_index_es_l(e);t[i]=this.createHttpProvider(i,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}class dist_index_es_Ot{constructor(t){this.name="near",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const s=e||universal_provider_dist_index_es_h(`${this.name}:${t}`,this.namespace);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;t[e]=this.createHttpProvider(e,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace);return typeof s>"u"?void 0:new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}class dist_index_es_qt{constructor(t){this.name="tezos",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const s=e||universal_provider_dist_index_es_h(`${this.name}:${t}`,this.namespace);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{t[e]=this.createHttpProvider(e)}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace);return typeof s>"u"?void 0:new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s))}}class dist_index_es_Dt{constructor(t){this.name=universal_provider_dist_index_es_f,this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(t.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(t.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(t.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(t.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider(t.chainId).request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){var t,e;const s={};return(e=(t=this.namespace)==null?void 0:t.accounts)==null||e.forEach(i=>{const n=re(i);s[`${n.namespace}:${n.reference}`]=this.createHttpProvider(i)}),s}getHttpProvider(t){const e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}var dist_index_es_St=Object.defineProperty,dist_index_es_t=Object.defineProperties,dist_index_es_jt=Object.getOwnPropertyDescriptors,dist_index_es_J=Object.getOwnPropertySymbols,dist_index_es_Rt=Object.prototype.hasOwnProperty,dist_index_es_Ut=Object.prototype.propertyIsEnumerable,universal_provider_dist_index_es_z=(r,t,e)=>t in r?dist_index_es_St(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,universal_provider_dist_index_es_w=(r,t)=>{for(var e in t||(t={}))dist_index_es_Rt.call(t,e)&&universal_provider_dist_index_es_z(r,e,t[e]);if(dist_index_es_J)for(var e of dist_index_es_J(t))dist_index_es_Ut.call(t,e)&&universal_provider_dist_index_es_z(r,e,t[e]);return r},dist_index_es_A=(r,t)=>dist_index_es_t(r,dist_index_es_jt(t));class universal_provider_dist_index_es_C{constructor(t){this.events=new (external_events_default()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=t,this.logger=typeof t?.logger<"u"&&typeof t?.logger!="string"?t.logger:pino_default()(logger_dist_index_es_k({level:t?.logger||universal_provider_dist_index_es_D})),this.disableProviderPing=t?.disableProviderPing||!1}static async init(t){const e=new universal_provider_dist_index_es_C(t);return await e.initialize(),e}async request(t,e,s){const[i,n]=this.validateChain(e);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(i).request({request:universal_provider_dist_index_es_w({},t),chainId:`${i}:${n}`,topic:this.session.topic,expiry:s})}sendAsync(t,e,s,i){const n=new Date().getTime();this.request(t,s,i).then(a=>e(null,formatJsonRpcResult(n,a))).catch(a=>e(a,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var t;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(t=this.session)==null?void 0:t.topic,reason:U("USER_DISCONNECTED")}),await this.cleanup()}async connect(t){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(t),await this.cleanupPendingPairings(),!t.skipPairing)return await this.pair(t.pairingTopic)}async authenticate(t,e){if(!this.client)throw new Error("Sign Client not initialized");this.setNamespaces(t),await this.cleanupPendingPairings();const{uri:s,response:i}=await this.client.authenticate(t,e);s&&(this.uri=s,this.events.emit("display_uri",s));const n=await i();if(this.session=n.session,this.session){const a=universal_provider_dist_index_es_k(this.session.namespaces);this.namespaces=dist_index_es_$(this.namespaces,a),this.persist("namespaces",this.namespaces),this.onConnect()}return n}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}removeListener(t,e){this.events.removeListener(t,e)}off(t,e){this.events.off(t,e)}get isWalletConnect(){return!0}async pair(t){this.shouldAbortPairingAttempt=!1;let e=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(e>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:s,approval:i}=await this.client.connect({pairingTopic:t,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});s&&(this.uri=s,this.events.emit("display_uri",s)),await i().then(n=>{this.session=n;const a=universal_provider_dist_index_es_k(n.namespaces);this.namespaces=dist_index_es_$(this.namespaces,a),this.persist("namespaces",this.namespaces)}).catch(n=>{if(n.message!==index_es_it)throw n;e++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(t,e){try{if(!this.session)return;const[s,i]=this.validateChain(t),n=this.getProvider(s);n.name===universal_provider_dist_index_es_f?n.setDefaultChain(`${s}:${i}`,e):n.setDefaultChain(i,e)}catch(s){if(!/Please call connect/.test(s.message))throw s}}async cleanupPendingPairings(t={}){this.logger.info("Cleaning up inactive pairings...");const e=this.client.pairing.getAll();if(L(e)){for(const s of e)t.deletePairings?this.client.core.expirer.set(s.topic,0):await this.client.core.relayer.subscriber.unsubscribe(s.topic);this.logger.info(`Inactive pairings cleared: ${e.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const t=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[t]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await dist_index_es_e.init({core:this.providerOpts.core,logger:this.providerOpts.logger||universal_provider_dist_index_es_D,relayUrl:this.providerOpts.relayUrl||dist_index_es_rt,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const t=[...new Set(Object.keys(this.session.namespaces).map(e=>Dn(e)))];universal_provider_dist_index_es_b("client",this.client),universal_provider_dist_index_es_b("events",this.events),universal_provider_dist_index_es_b("disableProviderPing",this.disableProviderPing),t.forEach(e=>{if(!this.session)return;const s=dist_index_es_mt(e,this.session),i=index_es_U(s),n=dist_index_es_$(this.namespaces,this.optionalNamespaces),a=dist_index_es_A(universal_provider_dist_index_es_w({},n[e]),{accounts:s,chains:i});switch(e){case"eip155":this.rpcProviders[e]=new dist_index_es_Ht({namespace:a});break;case"algorand":this.rpcProviders[e]=new dist_index_es_bt({namespace:a});break;case"solana":this.rpcProviders[e]=new dist_index_es_$t({namespace:a});break;case"cosmos":this.rpcProviders[e]=new dist_index_es_Et({namespace:a});break;case"polkadot":this.rpcProviders[e]=new dist_index_es_ft({namespace:a});break;case"cip34":this.rpcProviders[e]=new dist_index_es_At({namespace:a});break;case"elrond":this.rpcProviders[e]=new dist_index_es_Nt({namespace:a});break;case"multiversx":this.rpcProviders[e]=new universal_provider_dist_index_es_yt({namespace:a});break;case"near":this.rpcProviders[e]=new dist_index_es_Ot({namespace:a});break;case"tezos":this.rpcProviders[e]=new dist_index_es_qt({namespace:a});break;default:this.rpcProviders[universal_provider_dist_index_es_f]?this.rpcProviders[universal_provider_dist_index_es_f].updateNamespace(a):this.rpcProviders[universal_provider_dist_index_es_f]=new dist_index_es_Dt({namespace:a})}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",t=>{this.events.emit("session_ping",t)}),this.client.on("session_event",t=>{const{params:e}=t,{event:s}=e;if(s.name==="accountsChanged"){const i=s.data;i&&L(i)&&this.events.emit("accountsChanged",i.map(dist_index_es_vt))}else if(s.name==="chainChanged"){const i=e.chainId,n=e.event.data,a=Dn(i),c=universal_provider_dist_index_es_E(i)!==universal_provider_dist_index_es_E(n)?`${a}:${universal_provider_dist_index_es_E(n)}`:i;this.onChainChanged(c)}else this.events.emit(s.name,s.data);this.events.emit("session_event",t)}),this.client.on("session_update",({topic:t,params:e})=>{var s;const{namespaces:i}=e,n=(s=this.client)==null?void 0:s.session.get(t);this.session=dist_index_es_A(universal_provider_dist_index_es_w({},n),{namespaces:i}),this.onSessionUpdate(),this.events.emit("session_update",{topic:t,params:e})}),this.client.on("session_delete",async t=>{await this.cleanup(),this.events.emit("session_delete",t),this.events.emit("disconnect",dist_index_es_A(universal_provider_dist_index_es_w({},U("USER_DISCONNECTED")),{data:t.topic}))}),this.on(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,t=>{this.onChainChanged(t,!0)})}getProvider(t){return this.rpcProviders[t]||this.rpcProviders[universal_provider_dist_index_es_f]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(t=>{var e;this.getProvider(t).updateNamespace((e=this.session)==null?void 0:e.namespaces[t])})}setNamespaces(t){const{namespaces:e,optionalNamespaces:s,sessionProperties:i}=t;e&&Object.keys(e).length&&(this.namespaces=e),s&&Object.keys(s).length&&(this.optionalNamespaces=s),this.sessionProperties=i,this.persist("namespaces",e),this.persist("optionalNamespaces",s)}validateChain(t){const[e,s]=t?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[e,s];if(e&&!Object.keys(this.namespaces||{}).map(a=>Dn(a)).includes(e))throw new Error(`Namespace '${e}' is not configured. Please call connect() first with namespace config.`);if(e&&s)return[e,s];const i=Dn(Object.keys(this.namespaces)[0]),n=this.rpcProviders[i].getDefaultChain();return[i,n]}async requestAccounts(){const[t]=this.validateChain();return await this.getProvider(t).requestAccounts()}onChainChanged(t,e=!1){if(!this.namespaces)return;const[s,i]=this.validateChain(t);i&&(e||this.getProvider(s).setDefaultChain(i),this.namespaces[s]?this.namespaces[s].defaultChain=i:this.namespaces[`${s}:${i}`]?this.namespaces[`${s}:${i}`].defaultChain=i:this.namespaces[`${s}:${i}`]={defaultChain:i},this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",i))}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(t,e){this.client.core.storage.setItem(`${universal_provider_dist_index_es_S}/${t}`,e)}async getFromStore(t){return await this.client.core.storage.getItem(`${universal_provider_dist_index_es_S}/${t}`)}}const dist_index_es_Tt=universal_provider_dist_index_es_C; +const universal_provider_dist_index_es_D="error",dist_index_es_rt="wss://relay.walletconnect.org",dist_index_es_nt="wc",dist_index_es_at="universal_provider",universal_provider_dist_index_es_S=`${dist_index_es_nt}@2:${dist_index_es_at}:`,universal_provider_dist_index_es_="https://rpc.walletconnect.org/v1/",universal_provider_dist_index_es_f="generic",dist_index_es_ot=`${universal_provider_dist_index_es_}bundler`,universal_provider_dist_index_es_p={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};var dist_index_es_ct=Object.defineProperty,universal_provider_dist_index_es_ht=Object.defineProperties,universal_provider_dist_index_es_pt=Object.getOwnPropertyDescriptors,universal_provider_dist_index_es_j=Object.getOwnPropertySymbols,dist_index_es_dt=Object.prototype.hasOwnProperty,dist_index_es_ut=Object.prototype.propertyIsEnumerable,universal_provider_dist_index_es_R=(r,t,e)=>t in r?dist_index_es_ct(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,universal_provider_dist_index_es_g=(r,t)=>{for(var e in t||(t={}))dist_index_es_dt.call(t,e)&&universal_provider_dist_index_es_R(r,e,t[e]);if(universal_provider_dist_index_es_j)for(var e of universal_provider_dist_index_es_j(t))dist_index_es_ut.call(t,e)&&universal_provider_dist_index_es_R(r,e,t[e]);return r},dist_index_es_lt=(r,t)=>universal_provider_dist_index_es_ht(r,universal_provider_dist_index_es_pt(t));function universal_provider_dist_index_es_h(r,t,e){var s;const i=re(r);return((s=t.rpcMap)==null?void 0:s[i.reference])||`${universal_provider_dist_index_es_}?chainId=${i.namespace}:${i.reference}&projectId=${e}`}function universal_provider_dist_index_es_l(r){return r.includes(":")?r.split(":")[1]:r}function index_es_U(r){return r.map(t=>`${t.split(":")[0]}:${t.split(":")[1]}`)}function dist_index_es_mt(r,t){const e=Object.keys(t.namespaces).filter(i=>i.includes(r));if(!e.length)return[];const s=[];return e.forEach(i=>{const n=t.namespaces[i].accounts;s.push(...n)}),s}function dist_index_es_$(r={},t={}){const e=universal_provider_dist_index_es_T(r),s=universal_provider_dist_index_es_T(t);return (0,lodash.merge)(e,s)}function universal_provider_dist_index_es_T(r){var t,e,s,i;const n={};if(!Z(r))return n;for(const[a,c]of Object.entries(r)){const m=Oe(a)?[a]:c.chains,I=c.methods||[],V=c.events||[],B=c.rpcMap||{},v=Dn(a);n[v]=dist_index_es_lt(universal_provider_dist_index_es_g(universal_provider_dist_index_es_g({},n[v]),c),{chains:N(m,(t=n[v])==null?void 0:t.chains),methods:N(I,(e=n[v])==null?void 0:e.methods),events:N(V,(s=n[v])==null?void 0:s.events),rpcMap:universal_provider_dist_index_es_g(universal_provider_dist_index_es_g({},B),(i=n[v])==null?void 0:i.rpcMap)})}return n}function dist_index_es_vt(r){return r.includes(":")?r.split(":")[2]:r}function universal_provider_dist_index_es_k(r){const t={};for(const[e,s]of Object.entries(r)){const i=s.methods||[],n=s.events||[],a=s.accounts||[],c=Oe(e)?[e]:s.chains?s.chains:index_es_U(s.accounts);t[e]={chains:c,methods:i,events:n,accounts:a}}return t}function universal_provider_dist_index_es_E(r){return typeof r=="number"?r:r.includes("0x")?parseInt(r,16):(r=r.includes(":")?r.split(":")[1]:r,isNaN(Number(r))?r:Number(r))}const universal_provider_dist_index_es_L={},universal_provider_dist_index_es_o=r=>universal_provider_dist_index_es_L[r],universal_provider_dist_index_es_b=(r,t)=>{universal_provider_dist_index_es_L[r]=t};class dist_index_es_ft{constructor(t){this.name="polkadot",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const i=universal_provider_dist_index_es_l(e);t[i]=this.createHttpProvider(i,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}var dist_index_es_Pt=Object.defineProperty,universal_provider_dist_index_es_gt=Object.defineProperties,universal_provider_dist_index_es_wt=Object.getOwnPropertyDescriptors,index_es_F=Object.getOwnPropertySymbols,universal_provider_dist_index_es_Ct=Object.prototype.hasOwnProperty,dist_index_es_It=Object.prototype.propertyIsEnumerable,index_es_G=(r,t,e)=>t in r?dist_index_es_Pt(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,universal_provider_dist_index_es_M=(r,t)=>{for(var e in t||(t={}))universal_provider_dist_index_es_Ct.call(t,e)&&index_es_G(r,e,t[e]);if(index_es_F)for(var e of index_es_F(t))dist_index_es_It.call(t,e)&&index_es_G(r,e,t[e]);return r},universal_provider_dist_index_es_x=(r,t)=>universal_provider_dist_index_es_gt(r,universal_provider_dist_index_es_wt(t));class dist_index_es_Ht{constructor(t){this.name="eip155",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(t){switch(t.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(t);case"eth_chainId":return parseInt(this.getDefaultChain());case"wallet_getCapabilities":return await this.getCapabilities(t);case"wallet_getCallsStatus":return await this.getCallStatus(t)}return this.namespace.methods.includes(t.request.method)?await this.client.request(t):this.getHttpProvider().request(t.request)}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(parseInt(t),e),this.chainId=parseInt(t),this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const i=parseInt(universal_provider_dist_index_es_l(e));t[i]=this.createHttpProvider(i,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}getHttpProvider(){const t=this.chainId,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}async handleSwitchChain(t){var e,s;let i=t.request.params?(e=t.request.params[0])==null?void 0:e.chainId:"0x0";i=i.startsWith("0x")?i:`0x${i}`;const n=parseInt(i,16);if(this.isChainApproved(n))this.setDefaultChain(`${n}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:t.topic,request:{method:t.request.method,params:[{chainId:i}]},chainId:(s=this.namespace.chains)==null?void 0:s[0]}),this.setDefaultChain(`${n}`);else throw new Error(`Failed to switch to chain 'eip155:${n}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(t){return this.namespace.chains.includes(`${this.name}:${t}`)}async getCapabilities(t){var e,s,i;const n=(s=(e=t.request)==null?void 0:e.params)==null?void 0:s[0];if(!n)throw new Error("Missing address parameter in `wallet_getCapabilities` request");const a=this.client.session.get(t.topic),c=((i=a?.sessionProperties)==null?void 0:i.capabilities)||{};if(c!=null&&c[n])return c?.[n];const m=await this.client.request(t);try{await this.client.session.update(t.topic,{sessionProperties:universal_provider_dist_index_es_x(universal_provider_dist_index_es_M({},a.sessionProperties||{}),{capabilities:universal_provider_dist_index_es_x(universal_provider_dist_index_es_M({},c||{}),{[n]:m})})})}catch(I){console.warn("Failed to update session with capabilities",I)}return m}async getCallStatus(t){var e,s;const i=this.client.session.get(t.topic),n=(e=i.sessionProperties)==null?void 0:e.bundler_name;if(n){const c=this.getBundlerUrl(t.chainId,n);try{return await this.getUserOperationReceipt(c,t)}catch(m){console.warn("Failed to fetch call status from bundler",m,c)}}const a=(s=i.sessionProperties)==null?void 0:s.bundler_url;if(a)try{return await this.getUserOperationReceipt(a,t)}catch(c){console.warn("Failed to fetch call status from custom bundler",c,a)}if(this.namespace.methods.includes(t.request.method))return await this.client.request(t);throw new Error("Fetching call status not approved by the wallet.")}async getUserOperationReceipt(t,e){var s;const i=new URL(t),n=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(formatJsonRpcRequest("eth_getUserOperationReceipt",[(s=e.request.params)==null?void 0:s[0]]))});if(!n.ok)throw new Error(`Failed to fetch user operation receipt - ${n.status}`);return await n.json()}getBundlerUrl(t,e){return`${dist_index_es_ot}?projectId=${this.client.core.projectId}&chainId=${t}&bundler=${e}`}}class dist_index_es_$t{constructor(t){this.name="solana",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const i=universal_provider_dist_index_es_l(e);t[i]=this.createHttpProvider(i,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}class dist_index_es_Et{constructor(t){this.name="cosmos",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const i=universal_provider_dist_index_es_l(e);t[i]=this.createHttpProvider(i,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}class dist_index_es_bt{constructor(t){this.name="algorand",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(!this.httpProviders[t]){const s=e||universal_provider_dist_index_es_h(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;t[e]=this.createHttpProvider(e,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace,this.client.core.projectId);return typeof s>"u"?void 0:new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}class dist_index_es_At{constructor(t){this.name="cip34",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{const s=this.getCardanoRPCUrl(e),i=universal_provider_dist_index_es_l(e);t[i]=this.createHttpProvider(i,s)}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}getCardanoRPCUrl(t){const e=this.namespace.rpcMap;if(e)return e[t]}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||this.getCardanoRPCUrl(t);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}class dist_index_es_Nt{constructor(t){this.name="elrond",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const i=universal_provider_dist_index_es_l(e);t[i]=this.createHttpProvider(i,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}class universal_provider_dist_index_es_yt{constructor(t){this.name="multiversx",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const i=universal_provider_dist_index_es_l(e);t[i]=this.createHttpProvider(i,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}class dist_index_es_Ot{constructor(t){this.name="near",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const s=e||universal_provider_dist_index_es_h(`${this.name}:${t}`,this.namespace);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;t[e]=this.createHttpProvider(e,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace);return typeof s>"u"?void 0:new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}class dist_index_es_qt{constructor(t){this.name="tezos",this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const s=e||universal_provider_dist_index_es_h(`${this.name}:${t}`,this.namespace);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{t[e]=this.createHttpProvider(e)}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace);return typeof s>"u"?void 0:new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s))}}class dist_index_es_Dt{constructor(t){this.name=universal_provider_dist_index_es_f,this.namespace=t.namespace,this.events=universal_provider_dist_index_es_o("events"),this.client=universal_provider_dist_index_es_o("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(t.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(t.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(t.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(t.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider(t.chainId).request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){var t,e;const s={};return(e=(t=this.namespace)==null?void 0:t.accounts)==null||e.forEach(i=>{const n=re(i);s[`${n.namespace}:${n.reference}`]=this.createHttpProvider(i)}),s}getHttpProvider(t){const e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||universal_provider_dist_index_es_h(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new dist_index_es_o(new jsonrpc_http_connection_dist_index_es_f(s,universal_provider_dist_index_es_o("disableProviderPing")))}}var dist_index_es_St=Object.defineProperty,dist_index_es_t=Object.defineProperties,dist_index_es_jt=Object.getOwnPropertyDescriptors,dist_index_es_J=Object.getOwnPropertySymbols,dist_index_es_Rt=Object.prototype.hasOwnProperty,dist_index_es_Ut=Object.prototype.propertyIsEnumerable,universal_provider_dist_index_es_z=(r,t,e)=>t in r?dist_index_es_St(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,universal_provider_dist_index_es_w=(r,t)=>{for(var e in t||(t={}))dist_index_es_Rt.call(t,e)&&universal_provider_dist_index_es_z(r,e,t[e]);if(dist_index_es_J)for(var e of dist_index_es_J(t))dist_index_es_Ut.call(t,e)&&universal_provider_dist_index_es_z(r,e,t[e]);return r},universal_provider_dist_index_es_A=(r,t)=>dist_index_es_t(r,dist_index_es_jt(t));class universal_provider_dist_index_es_C{constructor(t){this.events=new (external_events_default()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=t,this.logger=typeof t?.logger<"u"&&typeof t?.logger!="string"?t.logger:pino_default()(logger_dist_index_es_k({level:t?.logger||universal_provider_dist_index_es_D})),this.disableProviderPing=t?.disableProviderPing||!1}static async init(t){const e=new universal_provider_dist_index_es_C(t);return await e.initialize(),e}async request(t,e,s){const[i,n]=this.validateChain(e);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(i).request({request:universal_provider_dist_index_es_w({},t),chainId:`${i}:${n}`,topic:this.session.topic,expiry:s})}sendAsync(t,e,s,i){const n=new Date().getTime();this.request(t,s,i).then(a=>e(null,formatJsonRpcResult(n,a))).catch(a=>e(a,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var t;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(t=this.session)==null?void 0:t.topic,reason:index_es_("USER_DISCONNECTED")}),await this.cleanup()}async connect(t){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(t),await this.cleanupPendingPairings(),!t.skipPairing)return await this.pair(t.pairingTopic)}async authenticate(t,e){if(!this.client)throw new Error("Sign Client not initialized");this.setNamespaces(t),await this.cleanupPendingPairings();const{uri:s,response:i}=await this.client.authenticate(t,e);s&&(this.uri=s,this.events.emit("display_uri",s));const n=await i();if(this.session=n.session,this.session){const a=universal_provider_dist_index_es_k(this.session.namespaces);this.namespaces=dist_index_es_$(this.namespaces,a),this.persist("namespaces",this.namespaces),this.onConnect()}return n}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}removeListener(t,e){this.events.removeListener(t,e)}off(t,e){this.events.off(t,e)}get isWalletConnect(){return!0}async pair(t){this.shouldAbortPairingAttempt=!1;let e=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(e>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:s,approval:i}=await this.client.connect({pairingTopic:t,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});s&&(this.uri=s,this.events.emit("display_uri",s)),await i().then(n=>{this.session=n;const a=universal_provider_dist_index_es_k(n.namespaces);this.namespaces=dist_index_es_$(this.namespaces,a),this.persist("namespaces",this.namespaces)}).catch(n=>{if(n.message!==index_es_rt)throw n;e++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(t,e){try{if(!this.session)return;const[s,i]=this.validateChain(t),n=this.getProvider(s);n.name===universal_provider_dist_index_es_f?n.setDefaultChain(`${s}:${i}`,e):n.setDefaultChain(i,e)}catch(s){if(!/Please call connect/.test(s.message))throw s}}async cleanupPendingPairings(t={}){this.logger.info("Cleaning up inactive pairings...");const e=this.client.pairing.getAll();if(L(e)){for(const s of e)t.deletePairings?this.client.core.expirer.set(s.topic,0):await this.client.core.relayer.subscriber.unsubscribe(s.topic);this.logger.info(`Inactive pairings cleared: ${e.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const t=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[t]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await dist_index_es_e.init({core:this.providerOpts.core,logger:this.providerOpts.logger||universal_provider_dist_index_es_D,relayUrl:this.providerOpts.relayUrl||dist_index_es_rt,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const t=[...new Set(Object.keys(this.session.namespaces).map(e=>Dn(e)))];universal_provider_dist_index_es_b("client",this.client),universal_provider_dist_index_es_b("events",this.events),universal_provider_dist_index_es_b("disableProviderPing",this.disableProviderPing),t.forEach(e=>{if(!this.session)return;const s=dist_index_es_mt(e,this.session),i=index_es_U(s),n=dist_index_es_$(this.namespaces,this.optionalNamespaces),a=universal_provider_dist_index_es_A(universal_provider_dist_index_es_w({},n[e]),{accounts:s,chains:i});switch(e){case"eip155":this.rpcProviders[e]=new dist_index_es_Ht({namespace:a});break;case"algorand":this.rpcProviders[e]=new dist_index_es_bt({namespace:a});break;case"solana":this.rpcProviders[e]=new dist_index_es_$t({namespace:a});break;case"cosmos":this.rpcProviders[e]=new dist_index_es_Et({namespace:a});break;case"polkadot":this.rpcProviders[e]=new dist_index_es_ft({namespace:a});break;case"cip34":this.rpcProviders[e]=new dist_index_es_At({namespace:a});break;case"elrond":this.rpcProviders[e]=new dist_index_es_Nt({namespace:a});break;case"multiversx":this.rpcProviders[e]=new universal_provider_dist_index_es_yt({namespace:a});break;case"near":this.rpcProviders[e]=new dist_index_es_Ot({namespace:a});break;case"tezos":this.rpcProviders[e]=new dist_index_es_qt({namespace:a});break;default:this.rpcProviders[universal_provider_dist_index_es_f]?this.rpcProviders[universal_provider_dist_index_es_f].updateNamespace(a):this.rpcProviders[universal_provider_dist_index_es_f]=new dist_index_es_Dt({namespace:a})}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",t=>{this.events.emit("session_ping",t)}),this.client.on("session_event",t=>{const{params:e}=t,{event:s}=e;if(s.name==="accountsChanged"){const i=s.data;i&&L(i)&&this.events.emit("accountsChanged",i.map(dist_index_es_vt))}else if(s.name==="chainChanged"){const i=e.chainId,n=e.event.data,a=Dn(i),c=universal_provider_dist_index_es_E(i)!==universal_provider_dist_index_es_E(n)?`${a}:${universal_provider_dist_index_es_E(n)}`:i;this.onChainChanged(c)}else this.events.emit(s.name,s.data);this.events.emit("session_event",t)}),this.client.on("session_update",({topic:t,params:e})=>{var s;const{namespaces:i}=e,n=(s=this.client)==null?void 0:s.session.get(t);this.session=universal_provider_dist_index_es_A(universal_provider_dist_index_es_w({},n),{namespaces:i}),this.onSessionUpdate(),this.events.emit("session_update",{topic:t,params:e})}),this.client.on("session_delete",async t=>{await this.cleanup(),this.events.emit("session_delete",t),this.events.emit("disconnect",universal_provider_dist_index_es_A(universal_provider_dist_index_es_w({},index_es_("USER_DISCONNECTED")),{data:t.topic}))}),this.on(universal_provider_dist_index_es_p.DEFAULT_CHAIN_CHANGED,t=>{this.onChainChanged(t,!0)})}getProvider(t){return this.rpcProviders[t]||this.rpcProviders[universal_provider_dist_index_es_f]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(t=>{var e;this.getProvider(t).updateNamespace((e=this.session)==null?void 0:e.namespaces[t])})}setNamespaces(t){const{namespaces:e,optionalNamespaces:s,sessionProperties:i}=t;e&&Object.keys(e).length&&(this.namespaces=e),s&&Object.keys(s).length&&(this.optionalNamespaces=s),this.sessionProperties=i,this.persist("namespaces",e),this.persist("optionalNamespaces",s)}validateChain(t){const[e,s]=t?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[e,s];if(e&&!Object.keys(this.namespaces||{}).map(a=>Dn(a)).includes(e))throw new Error(`Namespace '${e}' is not configured. Please call connect() first with namespace config.`);if(e&&s)return[e,s];const i=Dn(Object.keys(this.namespaces)[0]),n=this.rpcProviders[i].getDefaultChain();return[i,n]}async requestAccounts(){const[t]=this.validateChain();return await this.getProvider(t).requestAccounts()}onChainChanged(t,e=!1){if(!this.namespaces)return;const[s,i]=this.validateChain(t);i&&(e||this.getProvider(s).setDefaultChain(i),this.namespaces[s]?this.namespaces[s].defaultChain=i:this.namespaces[`${s}:${i}`]?this.namespaces[`${s}:${i}`].defaultChain=i:this.namespaces[`${s}:${i}`]={defaultChain:i},this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",i))}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(t,e){this.client.core.storage.setItem(`${universal_provider_dist_index_es_S}/${t}`,e)}async getFromStore(t){return await this.client.core.storage.getItem(`${universal_provider_dist_index_es_S}/${t}`)}}const dist_index_es_Tt=universal_provider_dist_index_es_C; //# sourceMappingURL=index.es.js.map ;// ./node_modules/@walletconnect/ethereum-provider/dist/index.es.js -const ethereum_provider_dist_index_es_R="wc",ethereum_provider_dist_index_es_T="ethereum_provider",ethereum_provider_dist_index_es_$=`${ethereum_provider_dist_index_es_R}@2:${ethereum_provider_dist_index_es_T}:`,ethereum_provider_dist_index_es_j="https://rpc.walletconnect.org/v1/",dist_index_es_u=["eth_sendTransaction","personal_sign"],ethereum_provider_dist_index_es_y=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode","wallet_sendCalls","wallet_getCapabilities","wallet_getCallsStatus","wallet_showCallsStatus"],ethereum_provider_dist_index_es_g=["chainChanged","accountsChanged"],ethereum_provider_dist_index_es_b=["chainChanged","accountsChanged","message","disconnect","connect"];var index_es_q=Object.defineProperty,dist_index_es_N=Object.defineProperties,ethereum_provider_dist_index_es_D=Object.getOwnPropertyDescriptors,ethereum_provider_dist_index_es_M=Object.getOwnPropertySymbols,dist_index_es_U=Object.prototype.hasOwnProperty,index_es_Q=Object.prototype.propertyIsEnumerable,ethereum_provider_dist_index_es_O=(r,t,s)=>t in r?index_es_q(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,ethereum_provider_dist_index_es_p=(r,t)=>{for(var s in t||(t={}))dist_index_es_U.call(t,s)&ðereum_provider_dist_index_es_O(r,s,t[s]);if(ethereum_provider_dist_index_es_M)for(var s of ethereum_provider_dist_index_es_M(t))index_es_Q.call(t,s)&ðereum_provider_dist_index_es_O(r,s,t[s]);return r},ethereum_provider_dist_index_es_E=(r,t)=>dist_index_es_N(r,ethereum_provider_dist_index_es_D(t));function ethereum_provider_dist_index_es_m(r){return Number(r[0].split(":")[1])}function ethereum_provider_dist_index_es_v(r){return`0x${r.toString(16)}`}function ethereum_provider_dist_index_es_L(r){const{chains:t,optionalChains:s,methods:i,optionalMethods:e,events:n,optionalEvents:o,rpcMap:c}=r;if(!L(t))throw new Error("Invalid chains");const a={chains:t,methods:i||dist_index_es_u,events:n||ethereum_provider_dist_index_es_g,rpcMap:ethereum_provider_dist_index_es_p({},t.length?{[ethereum_provider_dist_index_es_m(t)]:c[ethereum_provider_dist_index_es_m(t)]}:{})},h=n?.filter(l=>!ethereum_provider_dist_index_es_g.includes(l)),d=i?.filter(l=>!dist_index_es_u.includes(l));if(!s&&!o&&!e&&!(h!=null&&h.length)&&!(d!=null&&d.length))return{required:t.length?a:void 0};const w=h?.length&&d?.length||!s,I={chains:[...new Set(w?a.chains.concat(s||[]):s)],methods:[...new Set(a.methods.concat(e!=null&&e.length?e:ethereum_provider_dist_index_es_y))],events:[...new Set(a.events.concat(o!=null&&o.length?o:ethereum_provider_dist_index_es_b))],rpcMap:c};return{required:t.length?a:void 0,optional:s.length?I:void 0}}class ethereum_provider_dist_index_es_C{constructor(){this.events=new external_events_.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=ethereum_provider_dist_index_es_$,this.on=(t,s)=>(this.events.on(t,s),this),this.once=(t,s)=>(this.events.once(t,s),this),this.removeListener=(t,s)=>(this.events.removeListener(t,s),this),this.off=(t,s)=>(this.events.off(t,s),this),this.parseAccount=t=>this.isCompatibleChainId(t)?this.parseAccountId(t).address:t,this.signer={},this.rpc={}}static async init(t){const s=new ethereum_provider_dist_index_es_C;return await s.initialize(t),s}async request(t,s){return await this.signer.request(t,this.formatChainId(this.chainId),s)}sendAsync(t,s,i){this.signer.sendAsync(t,s,this.formatChainId(this.chainId),i)}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(t){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(t);const{required:s,optional:i}=ethereum_provider_dist_index_es_L(this.rpc);try{const e=await new Promise(async(o,c)=>{var a;this.rpc.showQrModal&&((a=this.modal)==null||a.subscribeModal(h=>{!h.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),c(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(ethereum_provider_dist_index_es_E(ethereum_provider_dist_index_es_p({namespaces:ethereum_provider_dist_index_es_p({},s&&{[this.namespace]:s})},i&&{optionalNamespaces:{[this.namespace]:i}}),{pairingTopic:t?.pairingTopic})).then(h=>{o(h)}).catch(h=>{c(new Error(h.message))})});if(!e)return;const n=mt(e.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:n),this.setAccounts(n),this.events.emit("connect",{chainId:ethereum_provider_dist_index_es_v(this.chainId)})}catch(e){throw this.signer.logger.error(e),e}finally{this.modal&&this.modal.closeModal()}}async authenticate(t,s){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts({chains:t?.chains});try{const i=await new Promise(async(n,o)=>{var c;this.rpc.showQrModal&&((c=this.modal)==null||c.subscribeModal(a=>{!a.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),o(new Error("Connection request reset. Please try again.")))})),await this.signer.authenticate(ethereum_provider_dist_index_es_E(ethereum_provider_dist_index_es_p({},t),{chains:this.rpc.chains}),s).then(a=>{n(a)}).catch(a=>{o(new Error(a.message))})}),e=i.session;if(e){const n=mt(e.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:n),this.setAccounts(n),this.events.emit("connect",{chainId:ethereum_provider_dist_index_es_v(this.chainId)})}return i}catch(i){throw this.signer.logger.error(i),i}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",t=>{const{params:s}=t,{event:i}=s;i.name==="accountsChanged"?(this.accounts=this.parseAccounts(i.data),this.events.emit("accountsChanged",this.accounts)):i.name==="chainChanged"?this.setChainId(this.formatChainId(i.data)):this.events.emit(i.name,i.data),this.events.emit("session_event",t)}),this.signer.on("chainChanged",t=>{const s=parseInt(t);this.chainId=s,this.events.emit("chainChanged",ethereum_provider_dist_index_es_v(this.chainId)),this.persist()}),this.signer.on("session_update",t=>{this.events.emit("session_update",t)}),this.signer.on("session_delete",t=>{this.reset(),this.events.emit("session_delete",t),this.events.emit("disconnect",ethereum_provider_dist_index_es_E(ethereum_provider_dist_index_es_p({},U("USER_DISCONNECTED")),{data:t.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",t=>{var s,i;this.rpc.showQrModal&&((s=this.modal)==null||s.closeModal(),(i=this.modal)==null||i.openModal({uri:t})),this.events.emit("display_uri",t)})}switchEthereumChain(t){this.request({method:"wallet_switchEthereumChain",params:[{chainId:t.toString(16)}]})}isCompatibleChainId(t){return typeof t=="string"?t.startsWith(`${this.namespace}:`):!1}formatChainId(t){return`${this.namespace}:${t}`}parseChainId(t){return Number(t.split(":")[1])}setChainIds(t){const s=t.filter(i=>this.isCompatibleChainId(i)).map(i=>this.parseChainId(i));s.length&&(this.chainId=s[0],this.events.emit("chainChanged",ethereum_provider_dist_index_es_v(this.chainId)),this.persist())}setChainId(t){if(this.isCompatibleChainId(t)){const s=this.parseChainId(t);this.chainId=s,this.switchEthereumChain(s)}}parseAccountId(t){const[s,i,e]=t.split(":");return{chainId:`${s}:${i}`,address:e}}setAccounts(t){this.accounts=t.filter(s=>this.parseChainId(this.parseAccountId(s).chainId)===this.chainId).map(s=>this.parseAccountId(s).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(t){var s,i;const e=(s=t?.chains)!=null?s:[],n=(i=t?.optionalChains)!=null?i:[],o=e.concat(n);if(!o.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const c=e.length?t?.methods||dist_index_es_u:[],a=e.length?t?.events||ethereum_provider_dist_index_es_g:[],h=t?.optionalMethods||[],d=t?.optionalEvents||[],w=t?.rpcMap||this.buildRpcMap(o,t.projectId),I=t?.qrModalOptions||void 0;return{chains:e?.map(l=>this.formatChainId(l)),optionalChains:n.map(l=>this.formatChainId(l)),methods:c,events:a,optionalMethods:h,optionalEvents:d,rpcMap:w,showQrModal:!!(t!=null&&t.showQrModal),qrModalOptions:I,projectId:t.projectId,metadata:t.metadata}}buildRpcMap(t,s){const i={};return t.forEach(e=>{i[e]=this.getRpcUrl(e,s)}),i}async initialize(t){if(this.rpc=this.getRpcConfig(t),this.chainId=this.rpc.chains.length?ethereum_provider_dist_index_es_m(this.rpc.chains):ethereum_provider_dist_index_es_m(this.rpc.optionalChains),this.signer=await dist_index_es_Tt.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:t.disableProviderPing,relayUrl:t.relayUrl,storageOptions:t.storageOptions,customStoragePrefix:t.customStoragePrefix,telemetryEnabled:t.telemetryEnabled}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let s;try{const{WalletConnectModal:i}=await __webpack_require__.e(/* import() */ 940).then(__webpack_require__.bind(__webpack_require__, 380940));s=i}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(s)try{this.modal=new s(ethereum_provider_dist_index_es_p({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(i){throw this.signer.logger.error(i),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(t){if(!t)return;const{chains:s,optionalChains:i,rpcMap:e}=t;s&&L(s)&&(this.rpc.chains=s.map(n=>this.formatChainId(n)),s.forEach(n=>{this.rpc.rpcMap[n]=e?.[n]||this.getRpcUrl(n)})),i&&L(i)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=i?.map(n=>this.formatChainId(n)),i.forEach(n=>{this.rpc.rpcMap[n]=e?.[n]||this.getRpcUrl(n)}))}getRpcUrl(t,s){var i;return((i=this.rpc.rpcMap)==null?void 0:i[t])||`${ethereum_provider_dist_index_es_j}?chainId=eip155:${t}&projectId=${s||this.rpc.projectId}`}async loadPersistedSession(){if(this.session)try{const t=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),s=this.session.namespaces[`${this.namespace}:${t}`]?this.session.namespaces[`${this.namespace}:${t}`]:this.session.namespaces[this.namespace];this.setChainIds(t?[this.formatChainId(t)]:s?.accounts),this.setAccounts(s?.accounts)}catch(t){this.signer.logger.error("Failed to load persisted session, clearing state..."),this.signer.logger.error(t),await this.disconnect().catch(s=>this.signer.logger.warn(s))}}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(t){return typeof t=="string"||t instanceof String?[this.parseAccount(t)]:t.map(s=>this.parseAccount(s))}}const ethereum_provider_dist_index_es_x=(/* unused pure expression or super */ null && (ethereum_provider_dist_index_es_C)); +const ethereum_provider_dist_index_es_R="wc",ethereum_provider_dist_index_es_T="ethereum_provider",ethereum_provider_dist_index_es_$=`${ethereum_provider_dist_index_es_R}@2:${ethereum_provider_dist_index_es_T}:`,ethereum_provider_dist_index_es_j="https://rpc.walletconnect.org/v1/",ethereum_provider_dist_index_es_g=["eth_sendTransaction","personal_sign"],ethereum_provider_dist_index_es_y=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode","wallet_sendCalls","wallet_getCapabilities","wallet_getCallsStatus","wallet_showCallsStatus"],dist_index_es_u=["chainChanged","accountsChanged"],ethereum_provider_dist_index_es_b=["chainChanged","accountsChanged","message","disconnect","connect"];var index_es_q=Object.defineProperty,dist_index_es_N=Object.defineProperties,ethereum_provider_dist_index_es_D=Object.getOwnPropertyDescriptors,ethereum_provider_dist_index_es_M=Object.getOwnPropertySymbols,dist_index_es_U=Object.prototype.hasOwnProperty,dist_index_es_Q=Object.prototype.propertyIsEnumerable,ethereum_provider_dist_index_es_O=(r,t,s)=>t in r?index_es_q(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,ethereum_provider_dist_index_es_p=(r,t)=>{for(var s in t||(t={}))dist_index_es_U.call(t,s)&ðereum_provider_dist_index_es_O(r,s,t[s]);if(ethereum_provider_dist_index_es_M)for(var s of ethereum_provider_dist_index_es_M(t))dist_index_es_Q.call(t,s)&ðereum_provider_dist_index_es_O(r,s,t[s]);return r},ethereum_provider_dist_index_es_E=(r,t)=>dist_index_es_N(r,ethereum_provider_dist_index_es_D(t));function ethereum_provider_dist_index_es_m(r){return Number(r[0].split(":")[1])}function ethereum_provider_dist_index_es_v(r){return`0x${r.toString(16)}`}function ethereum_provider_dist_index_es_L(r){const{chains:t,optionalChains:s,methods:i,optionalMethods:e,events:n,optionalEvents:o,rpcMap:c}=r;if(!L(t))throw new Error("Invalid chains");const a={chains:t,methods:i||ethereum_provider_dist_index_es_g,events:n||dist_index_es_u,rpcMap:ethereum_provider_dist_index_es_p({},t.length?{[ethereum_provider_dist_index_es_m(t)]:c[ethereum_provider_dist_index_es_m(t)]}:{})},h=n?.filter(l=>!dist_index_es_u.includes(l)),d=i?.filter(l=>!ethereum_provider_dist_index_es_g.includes(l));if(!s&&!o&&!e&&!(h!=null&&h.length)&&!(d!=null&&d.length))return{required:t.length?a:void 0};const w=h?.length&&d?.length||!s,I={chains:[...new Set(w?a.chains.concat(s||[]):s)],methods:[...new Set(a.methods.concat(e!=null&&e.length?e:ethereum_provider_dist_index_es_y))],events:[...new Set(a.events.concat(o!=null&&o.length?o:ethereum_provider_dist_index_es_b))],rpcMap:c};return{required:t.length?a:void 0,optional:s.length?I:void 0}}class ethereum_provider_dist_index_es_C{constructor(){this.events=new external_events_.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=ethereum_provider_dist_index_es_$,this.on=(t,s)=>(this.events.on(t,s),this),this.once=(t,s)=>(this.events.once(t,s),this),this.removeListener=(t,s)=>(this.events.removeListener(t,s),this),this.off=(t,s)=>(this.events.off(t,s),this),this.parseAccount=t=>this.isCompatibleChainId(t)?this.parseAccountId(t).address:t,this.signer={},this.rpc={}}static async init(t){const s=new ethereum_provider_dist_index_es_C;return await s.initialize(t),s}async request(t,s){return await this.signer.request(t,this.formatChainId(this.chainId),s)}sendAsync(t,s,i){this.signer.sendAsync(t,s,this.formatChainId(this.chainId),i)}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(t){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(t);const{required:s,optional:i}=ethereum_provider_dist_index_es_L(this.rpc);try{const e=await new Promise(async(o,c)=>{var a;this.rpc.showQrModal&&((a=this.modal)==null||a.subscribeModal(h=>{!h.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),c(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(ethereum_provider_dist_index_es_E(ethereum_provider_dist_index_es_p({namespaces:ethereum_provider_dist_index_es_p({},s&&{[this.namespace]:s})},i&&{optionalNamespaces:{[this.namespace]:i}}),{pairingTopic:t?.pairingTopic})).then(h=>{o(h)}).catch(h=>{c(new Error(h.message))})});if(!e)return;const n=mt(e.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:n),this.setAccounts(n),this.events.emit("connect",{chainId:ethereum_provider_dist_index_es_v(this.chainId)})}catch(e){throw this.signer.logger.error(e),e}finally{this.modal&&this.modal.closeModal()}}async authenticate(t,s){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts({chains:t?.chains});try{const i=await new Promise(async(n,o)=>{var c;this.rpc.showQrModal&&((c=this.modal)==null||c.subscribeModal(a=>{!a.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),o(new Error("Connection request reset. Please try again.")))})),await this.signer.authenticate(ethereum_provider_dist_index_es_E(ethereum_provider_dist_index_es_p({},t),{chains:this.rpc.chains}),s).then(a=>{n(a)}).catch(a=>{o(new Error(a.message))})}),e=i.session;if(e){const n=mt(e.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:n),this.setAccounts(n),this.events.emit("connect",{chainId:ethereum_provider_dist_index_es_v(this.chainId)})}return i}catch(i){throw this.signer.logger.error(i),i}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",t=>{const{params:s}=t,{event:i}=s;i.name==="accountsChanged"?(this.accounts=this.parseAccounts(i.data),this.events.emit("accountsChanged",this.accounts)):i.name==="chainChanged"?this.setChainId(this.formatChainId(i.data)):this.events.emit(i.name,i.data),this.events.emit("session_event",t)}),this.signer.on("chainChanged",t=>{const s=parseInt(t);this.chainId=s,this.events.emit("chainChanged",ethereum_provider_dist_index_es_v(this.chainId)),this.persist()}),this.signer.on("session_update",t=>{this.events.emit("session_update",t)}),this.signer.on("session_delete",t=>{this.reset(),this.events.emit("session_delete",t),this.events.emit("disconnect",ethereum_provider_dist_index_es_E(ethereum_provider_dist_index_es_p({},index_es_("USER_DISCONNECTED")),{data:t.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",t=>{var s,i;this.rpc.showQrModal&&((s=this.modal)==null||s.closeModal(),(i=this.modal)==null||i.openModal({uri:t})),this.events.emit("display_uri",t)})}switchEthereumChain(t){this.request({method:"wallet_switchEthereumChain",params:[{chainId:t.toString(16)}]})}isCompatibleChainId(t){return typeof t=="string"?t.startsWith(`${this.namespace}:`):!1}formatChainId(t){return`${this.namespace}:${t}`}parseChainId(t){return Number(t.split(":")[1])}setChainIds(t){const s=t.filter(i=>this.isCompatibleChainId(i)).map(i=>this.parseChainId(i));s.length&&(this.chainId=s[0],this.events.emit("chainChanged",ethereum_provider_dist_index_es_v(this.chainId)),this.persist())}setChainId(t){if(this.isCompatibleChainId(t)){const s=this.parseChainId(t);this.chainId=s,this.switchEthereumChain(s)}}parseAccountId(t){const[s,i,e]=t.split(":");return{chainId:`${s}:${i}`,address:e}}setAccounts(t){this.accounts=t.filter(s=>this.parseChainId(this.parseAccountId(s).chainId)===this.chainId).map(s=>this.parseAccountId(s).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(t){var s,i;const e=(s=t?.chains)!=null?s:[],n=(i=t?.optionalChains)!=null?i:[],o=e.concat(n);if(!o.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const c=e.length?t?.methods||ethereum_provider_dist_index_es_g:[],a=e.length?t?.events||dist_index_es_u:[],h=t?.optionalMethods||[],d=t?.optionalEvents||[],w=t?.rpcMap||this.buildRpcMap(o,t.projectId),I=t?.qrModalOptions||void 0;return{chains:e?.map(l=>this.formatChainId(l)),optionalChains:n.map(l=>this.formatChainId(l)),methods:c,events:a,optionalMethods:h,optionalEvents:d,rpcMap:w,showQrModal:!!(t!=null&&t.showQrModal),qrModalOptions:I,projectId:t.projectId,metadata:t.metadata}}buildRpcMap(t,s){const i={};return t.forEach(e=>{i[e]=this.getRpcUrl(e,s)}),i}async initialize(t){if(this.rpc=this.getRpcConfig(t),this.chainId=this.rpc.chains.length?ethereum_provider_dist_index_es_m(this.rpc.chains):ethereum_provider_dist_index_es_m(this.rpc.optionalChains),this.signer=await dist_index_es_Tt.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:t.disableProviderPing,relayUrl:t.relayUrl,storageOptions:t.storageOptions,customStoragePrefix:t.customStoragePrefix,telemetryEnabled:t.telemetryEnabled,logger:t.logger}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let s;try{const{WalletConnectModal:i}=await __webpack_require__.e(/* import() */ 940).then(__webpack_require__.bind(__webpack_require__, 380940));s=i}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(s)try{this.modal=new s(ethereum_provider_dist_index_es_p({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(i){throw this.signer.logger.error(i),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(t){if(!t)return;const{chains:s,optionalChains:i,rpcMap:e}=t;s&&L(s)&&(this.rpc.chains=s.map(n=>this.formatChainId(n)),s.forEach(n=>{this.rpc.rpcMap[n]=e?.[n]||this.getRpcUrl(n)})),i&&L(i)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=i?.map(n=>this.formatChainId(n)),i.forEach(n=>{this.rpc.rpcMap[n]=e?.[n]||this.getRpcUrl(n)}))}getRpcUrl(t,s){var i;return((i=this.rpc.rpcMap)==null?void 0:i[t])||`${ethereum_provider_dist_index_es_j}?chainId=eip155:${t}&projectId=${s||this.rpc.projectId}`}async loadPersistedSession(){if(this.session)try{const t=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),s=this.session.namespaces[`${this.namespace}:${t}`]?this.session.namespaces[`${this.namespace}:${t}`]:this.session.namespaces[this.namespace];this.setChainIds(t?[this.formatChainId(t)]:s?.accounts),this.setAccounts(s?.accounts)}catch(t){this.signer.logger.error("Failed to load persisted session, clearing state..."),this.signer.logger.error(t),await this.disconnect().catch(s=>this.signer.logger.warn(s))}}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(t){return typeof t=="string"||t instanceof String?[this.parseAccount(t)]:t.map(s=>this.parseAccount(s))}}const ethereum_provider_dist_index_es_x=(/* unused pure expression or super */ null && (ethereum_provider_dist_index_es_C)); //# sourceMappingURL=index.es.js.map @@ -11427,4030 +11427,6 @@ function __classPrivateFieldSet(receiver, privateMap, value) { } -/***/ }), - -/***/ 194112: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var elliptic = exports; - -elliptic.version = (__webpack_require__(417559)/* .version */ .rE); -elliptic.utils = __webpack_require__(938402); -elliptic.rand = __webpack_require__(415037); -elliptic.curve = __webpack_require__(777867); -elliptic.curves = __webpack_require__(727483); - -// Protocols -elliptic.ec = __webpack_require__(252040); -elliptic.eddsa = __webpack_require__(636983); - - -/***/ }), - -/***/ 774278: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var BN = __webpack_require__(439404); -var utils = __webpack_require__(938402); -var getNAF = utils.getNAF; -var getJSF = utils.getJSF; -var assert = utils.assert; - -function BaseCurve(type, conf) { - this.type = type; - this.p = new BN(conf.p, 16); - - // Use Montgomery, when there is no fast reduction for the prime - this.red = conf.prime ? BN.red(conf.prime) : BN.mont(this.p); - - // Useful for many curves - this.zero = new BN(0).toRed(this.red); - this.one = new BN(1).toRed(this.red); - this.two = new BN(2).toRed(this.red); - - // Curve configuration, optional - this.n = conf.n && new BN(conf.n, 16); - this.g = conf.g && this.pointFromJSON(conf.g, conf.gRed); - - // Temporary arrays - this._wnafT1 = new Array(4); - this._wnafT2 = new Array(4); - this._wnafT3 = new Array(4); - this._wnafT4 = new Array(4); - - this._bitLength = this.n ? this.n.bitLength() : 0; - - // Generalized Greg Maxwell's trick - var adjustCount = this.n && this.p.div(this.n); - if (!adjustCount || adjustCount.cmpn(100) > 0) { - this.redN = null; - } else { - this._maxwellTrick = true; - this.redN = this.n.toRed(this.red); - } -} -module.exports = BaseCurve; - -BaseCurve.prototype.point = function point() { - throw new Error('Not implemented'); -}; - -BaseCurve.prototype.validate = function validate() { - throw new Error('Not implemented'); -}; - -BaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) { - assert(p.precomputed); - var doubles = p._getDoubles(); - - var naf = getNAF(k, 1, this._bitLength); - var I = (1 << (doubles.step + 1)) - (doubles.step % 2 === 0 ? 2 : 1); - I /= 3; - - // Translate into more windowed form - var repr = []; - var j; - var nafW; - for (j = 0; j < naf.length; j += doubles.step) { - nafW = 0; - for (var l = j + doubles.step - 1; l >= j; l--) - nafW = (nafW << 1) + naf[l]; - repr.push(nafW); - } - - var a = this.jpoint(null, null, null); - var b = this.jpoint(null, null, null); - for (var i = I; i > 0; i--) { - for (j = 0; j < repr.length; j++) { - nafW = repr[j]; - if (nafW === i) - b = b.mixedAdd(doubles.points[j]); - else if (nafW === -i) - b = b.mixedAdd(doubles.points[j].neg()); - } - a = a.add(b); - } - return a.toP(); -}; - -BaseCurve.prototype._wnafMul = function _wnafMul(p, k) { - var w = 4; - - // Precompute window - var nafPoints = p._getNAFPoints(w); - w = nafPoints.wnd; - var wnd = nafPoints.points; - - // Get NAF form - var naf = getNAF(k, w, this._bitLength); - - // Add `this`*(N+1) for every w-NAF index - var acc = this.jpoint(null, null, null); - for (var i = naf.length - 1; i >= 0; i--) { - // Count zeroes - for (var l = 0; i >= 0 && naf[i] === 0; i--) - l++; - if (i >= 0) - l++; - acc = acc.dblp(l); - - if (i < 0) - break; - var z = naf[i]; - assert(z !== 0); - if (p.type === 'affine') { - // J +- P - if (z > 0) - acc = acc.mixedAdd(wnd[(z - 1) >> 1]); - else - acc = acc.mixedAdd(wnd[(-z - 1) >> 1].neg()); - } else { - // J +- J - if (z > 0) - acc = acc.add(wnd[(z - 1) >> 1]); - else - acc = acc.add(wnd[(-z - 1) >> 1].neg()); - } - } - return p.type === 'affine' ? acc.toP() : acc; -}; - -BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW, - points, - coeffs, - len, - jacobianResult) { - var wndWidth = this._wnafT1; - var wnd = this._wnafT2; - var naf = this._wnafT3; - - // Fill all arrays - var max = 0; - var i; - var j; - var p; - for (i = 0; i < len; i++) { - p = points[i]; - var nafPoints = p._getNAFPoints(defW); - wndWidth[i] = nafPoints.wnd; - wnd[i] = nafPoints.points; - } - - // Comb small window NAFs - for (i = len - 1; i >= 1; i -= 2) { - var a = i - 1; - var b = i; - if (wndWidth[a] !== 1 || wndWidth[b] !== 1) { - naf[a] = getNAF(coeffs[a], wndWidth[a], this._bitLength); - naf[b] = getNAF(coeffs[b], wndWidth[b], this._bitLength); - max = Math.max(naf[a].length, max); - max = Math.max(naf[b].length, max); - continue; - } - - var comb = [ - points[a], /* 1 */ - null, /* 3 */ - null, /* 5 */ - points[b], /* 7 */ - ]; - - // Try to avoid Projective points, if possible - if (points[a].y.cmp(points[b].y) === 0) { - comb[1] = points[a].add(points[b]); - comb[2] = points[a].toJ().mixedAdd(points[b].neg()); - } else if (points[a].y.cmp(points[b].y.redNeg()) === 0) { - comb[1] = points[a].toJ().mixedAdd(points[b]); - comb[2] = points[a].add(points[b].neg()); - } else { - comb[1] = points[a].toJ().mixedAdd(points[b]); - comb[2] = points[a].toJ().mixedAdd(points[b].neg()); - } - - var index = [ - -3, /* -1 -1 */ - -1, /* -1 0 */ - -5, /* -1 1 */ - -7, /* 0 -1 */ - 0, /* 0 0 */ - 7, /* 0 1 */ - 5, /* 1 -1 */ - 1, /* 1 0 */ - 3, /* 1 1 */ - ]; - - var jsf = getJSF(coeffs[a], coeffs[b]); - max = Math.max(jsf[0].length, max); - naf[a] = new Array(max); - naf[b] = new Array(max); - for (j = 0; j < max; j++) { - var ja = jsf[0][j] | 0; - var jb = jsf[1][j] | 0; - - naf[a][j] = index[(ja + 1) * 3 + (jb + 1)]; - naf[b][j] = 0; - wnd[a] = comb; - } - } - - var acc = this.jpoint(null, null, null); - var tmp = this._wnafT4; - for (i = max; i >= 0; i--) { - var k = 0; - - while (i >= 0) { - var zero = true; - for (j = 0; j < len; j++) { - tmp[j] = naf[j][i] | 0; - if (tmp[j] !== 0) - zero = false; - } - if (!zero) - break; - k++; - i--; - } - if (i >= 0) - k++; - acc = acc.dblp(k); - if (i < 0) - break; - - for (j = 0; j < len; j++) { - var z = tmp[j]; - p; - if (z === 0) - continue; - else if (z > 0) - p = wnd[j][(z - 1) >> 1]; - else if (z < 0) - p = wnd[j][(-z - 1) >> 1].neg(); - - if (p.type === 'affine') - acc = acc.mixedAdd(p); - else - acc = acc.add(p); - } - } - // Zeroify references - for (i = 0; i < len; i++) - wnd[i] = null; - - if (jacobianResult) - return acc; - else - return acc.toP(); -}; - -function BasePoint(curve, type) { - this.curve = curve; - this.type = type; - this.precomputed = null; -} -BaseCurve.BasePoint = BasePoint; - -BasePoint.prototype.eq = function eq(/*other*/) { - throw new Error('Not implemented'); -}; - -BasePoint.prototype.validate = function validate() { - return this.curve.validate(this); -}; - -BaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) { - bytes = utils.toArray(bytes, enc); - - var len = this.p.byteLength(); - - // uncompressed, hybrid-odd, hybrid-even - if ((bytes[0] === 0x04 || bytes[0] === 0x06 || bytes[0] === 0x07) && - bytes.length - 1 === 2 * len) { - if (bytes[0] === 0x06) - assert(bytes[bytes.length - 1] % 2 === 0); - else if (bytes[0] === 0x07) - assert(bytes[bytes.length - 1] % 2 === 1); - - var res = this.point(bytes.slice(1, 1 + len), - bytes.slice(1 + len, 1 + 2 * len)); - - return res; - } else if ((bytes[0] === 0x02 || bytes[0] === 0x03) && - bytes.length - 1 === len) { - return this.pointFromX(bytes.slice(1, 1 + len), bytes[0] === 0x03); - } - throw new Error('Unknown point format'); -}; - -BasePoint.prototype.encodeCompressed = function encodeCompressed(enc) { - return this.encode(enc, true); -}; - -BasePoint.prototype._encode = function _encode(compact) { - var len = this.curve.p.byteLength(); - var x = this.getX().toArray('be', len); - - if (compact) - return [ this.getY().isEven() ? 0x02 : 0x03 ].concat(x); - - return [ 0x04 ].concat(x, this.getY().toArray('be', len)); -}; - -BasePoint.prototype.encode = function encode(enc, compact) { - return utils.encode(this._encode(compact), enc); -}; - -BasePoint.prototype.precompute = function precompute(power) { - if (this.precomputed) - return this; - - var precomputed = { - doubles: null, - naf: null, - beta: null, - }; - precomputed.naf = this._getNAFPoints(8); - precomputed.doubles = this._getDoubles(4, power); - precomputed.beta = this._getBeta(); - this.precomputed = precomputed; - - return this; -}; - -BasePoint.prototype._hasDoubles = function _hasDoubles(k) { - if (!this.precomputed) - return false; - - var doubles = this.precomputed.doubles; - if (!doubles) - return false; - - return doubles.points.length >= Math.ceil((k.bitLength() + 1) / doubles.step); -}; - -BasePoint.prototype._getDoubles = function _getDoubles(step, power) { - if (this.precomputed && this.precomputed.doubles) - return this.precomputed.doubles; - - var doubles = [ this ]; - var acc = this; - for (var i = 0; i < power; i += step) { - for (var j = 0; j < step; j++) - acc = acc.dbl(); - doubles.push(acc); - } - return { - step: step, - points: doubles, - }; -}; - -BasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) { - if (this.precomputed && this.precomputed.naf) - return this.precomputed.naf; - - var res = [ this ]; - var max = (1 << wnd) - 1; - var dbl = max === 1 ? null : this.dbl(); - for (var i = 1; i < max; i++) - res[i] = res[i - 1].add(dbl); - return { - wnd: wnd, - points: res, - }; -}; - -BasePoint.prototype._getBeta = function _getBeta() { - return null; -}; - -BasePoint.prototype.dblp = function dblp(k) { - var r = this; - for (var i = 0; i < k; i++) - r = r.dbl(); - return r; -}; - - -/***/ }), - -/***/ 826491: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(938402); -var BN = __webpack_require__(439404); -var inherits = __webpack_require__(672017); -var Base = __webpack_require__(774278); - -var assert = utils.assert; - -function EdwardsCurve(conf) { - // NOTE: Important as we are creating point in Base.call() - this.twisted = (conf.a | 0) !== 1; - this.mOneA = this.twisted && (conf.a | 0) === -1; - this.extended = this.mOneA; - - Base.call(this, 'edwards', conf); - - this.a = new BN(conf.a, 16).umod(this.red.m); - this.a = this.a.toRed(this.red); - this.c = new BN(conf.c, 16).toRed(this.red); - this.c2 = this.c.redSqr(); - this.d = new BN(conf.d, 16).toRed(this.red); - this.dd = this.d.redAdd(this.d); - - assert(!this.twisted || this.c.fromRed().cmpn(1) === 0); - this.oneC = (conf.c | 0) === 1; -} -inherits(EdwardsCurve, Base); -module.exports = EdwardsCurve; - -EdwardsCurve.prototype._mulA = function _mulA(num) { - if (this.mOneA) - return num.redNeg(); - else - return this.a.redMul(num); -}; - -EdwardsCurve.prototype._mulC = function _mulC(num) { - if (this.oneC) - return num; - else - return this.c.redMul(num); -}; - -// Just for compatibility with Short curve -EdwardsCurve.prototype.jpoint = function jpoint(x, y, z, t) { - return this.point(x, y, z, t); -}; - -EdwardsCurve.prototype.pointFromX = function pointFromX(x, odd) { - x = new BN(x, 16); - if (!x.red) - x = x.toRed(this.red); - - var x2 = x.redSqr(); - var rhs = this.c2.redSub(this.a.redMul(x2)); - var lhs = this.one.redSub(this.c2.redMul(this.d).redMul(x2)); - - var y2 = rhs.redMul(lhs.redInvm()); - var y = y2.redSqrt(); - if (y.redSqr().redSub(y2).cmp(this.zero) !== 0) - throw new Error('invalid point'); - - var isOdd = y.fromRed().isOdd(); - if (odd && !isOdd || !odd && isOdd) - y = y.redNeg(); - - return this.point(x, y); -}; - -EdwardsCurve.prototype.pointFromY = function pointFromY(y, odd) { - y = new BN(y, 16); - if (!y.red) - y = y.toRed(this.red); - - // x^2 = (y^2 - c^2) / (c^2 d y^2 - a) - var y2 = y.redSqr(); - var lhs = y2.redSub(this.c2); - var rhs = y2.redMul(this.d).redMul(this.c2).redSub(this.a); - var x2 = lhs.redMul(rhs.redInvm()); - - if (x2.cmp(this.zero) === 0) { - if (odd) - throw new Error('invalid point'); - else - return this.point(this.zero, y); - } - - var x = x2.redSqrt(); - if (x.redSqr().redSub(x2).cmp(this.zero) !== 0) - throw new Error('invalid point'); - - if (x.fromRed().isOdd() !== odd) - x = x.redNeg(); - - return this.point(x, y); -}; - -EdwardsCurve.prototype.validate = function validate(point) { - if (point.isInfinity()) - return true; - - // Curve: A * X^2 + Y^2 = C^2 * (1 + D * X^2 * Y^2) - point.normalize(); - - var x2 = point.x.redSqr(); - var y2 = point.y.redSqr(); - var lhs = x2.redMul(this.a).redAdd(y2); - var rhs = this.c2.redMul(this.one.redAdd(this.d.redMul(x2).redMul(y2))); - - return lhs.cmp(rhs) === 0; -}; - -function Point(curve, x, y, z, t) { - Base.BasePoint.call(this, curve, 'projective'); - if (x === null && y === null && z === null) { - this.x = this.curve.zero; - this.y = this.curve.one; - this.z = this.curve.one; - this.t = this.curve.zero; - this.zOne = true; - } else { - this.x = new BN(x, 16); - this.y = new BN(y, 16); - this.z = z ? new BN(z, 16) : this.curve.one; - this.t = t && new BN(t, 16); - if (!this.x.red) - this.x = this.x.toRed(this.curve.red); - if (!this.y.red) - this.y = this.y.toRed(this.curve.red); - if (!this.z.red) - this.z = this.z.toRed(this.curve.red); - if (this.t && !this.t.red) - this.t = this.t.toRed(this.curve.red); - this.zOne = this.z === this.curve.one; - - // Use extended coordinates - if (this.curve.extended && !this.t) { - this.t = this.x.redMul(this.y); - if (!this.zOne) - this.t = this.t.redMul(this.z.redInvm()); - } - } -} -inherits(Point, Base.BasePoint); - -EdwardsCurve.prototype.pointFromJSON = function pointFromJSON(obj) { - return Point.fromJSON(this, obj); -}; - -EdwardsCurve.prototype.point = function point(x, y, z, t) { - return new Point(this, x, y, z, t); -}; - -Point.fromJSON = function fromJSON(curve, obj) { - return new Point(curve, obj[0], obj[1], obj[2]); -}; - -Point.prototype.inspect = function inspect() { - if (this.isInfinity()) - return ''; - return ''; -}; - -Point.prototype.isInfinity = function isInfinity() { - // XXX This code assumes that zero is always zero in red - return this.x.cmpn(0) === 0 && - (this.y.cmp(this.z) === 0 || - (this.zOne && this.y.cmp(this.curve.c) === 0)); -}; - -Point.prototype._extDbl = function _extDbl() { - // hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html - // #doubling-dbl-2008-hwcd - // 4M + 4S - - // A = X1^2 - var a = this.x.redSqr(); - // B = Y1^2 - var b = this.y.redSqr(); - // C = 2 * Z1^2 - var c = this.z.redSqr(); - c = c.redIAdd(c); - // D = a * A - var d = this.curve._mulA(a); - // E = (X1 + Y1)^2 - A - B - var e = this.x.redAdd(this.y).redSqr().redISub(a).redISub(b); - // G = D + B - var g = d.redAdd(b); - // F = G - C - var f = g.redSub(c); - // H = D - B - var h = d.redSub(b); - // X3 = E * F - var nx = e.redMul(f); - // Y3 = G * H - var ny = g.redMul(h); - // T3 = E * H - var nt = e.redMul(h); - // Z3 = F * G - var nz = f.redMul(g); - return this.curve.point(nx, ny, nz, nt); -}; - -Point.prototype._projDbl = function _projDbl() { - // hyperelliptic.org/EFD/g1p/auto-twisted-projective.html - // #doubling-dbl-2008-bbjlp - // #doubling-dbl-2007-bl - // and others - // Generally 3M + 4S or 2M + 4S - - // B = (X1 + Y1)^2 - var b = this.x.redAdd(this.y).redSqr(); - // C = X1^2 - var c = this.x.redSqr(); - // D = Y1^2 - var d = this.y.redSqr(); - - var nx; - var ny; - var nz; - var e; - var h; - var j; - if (this.curve.twisted) { - // E = a * C - e = this.curve._mulA(c); - // F = E + D - var f = e.redAdd(d); - if (this.zOne) { - // X3 = (B - C - D) * (F - 2) - nx = b.redSub(c).redSub(d).redMul(f.redSub(this.curve.two)); - // Y3 = F * (E - D) - ny = f.redMul(e.redSub(d)); - // Z3 = F^2 - 2 * F - nz = f.redSqr().redSub(f).redSub(f); - } else { - // H = Z1^2 - h = this.z.redSqr(); - // J = F - 2 * H - j = f.redSub(h).redISub(h); - // X3 = (B-C-D)*J - nx = b.redSub(c).redISub(d).redMul(j); - // Y3 = F * (E - D) - ny = f.redMul(e.redSub(d)); - // Z3 = F * J - nz = f.redMul(j); - } - } else { - // E = C + D - e = c.redAdd(d); - // H = (c * Z1)^2 - h = this.curve._mulC(this.z).redSqr(); - // J = E - 2 * H - j = e.redSub(h).redSub(h); - // X3 = c * (B - E) * J - nx = this.curve._mulC(b.redISub(e)).redMul(j); - // Y3 = c * E * (C - D) - ny = this.curve._mulC(e).redMul(c.redISub(d)); - // Z3 = E * J - nz = e.redMul(j); - } - return this.curve.point(nx, ny, nz); -}; - -Point.prototype.dbl = function dbl() { - if (this.isInfinity()) - return this; - - // Double in extended coordinates - if (this.curve.extended) - return this._extDbl(); - else - return this._projDbl(); -}; - -Point.prototype._extAdd = function _extAdd(p) { - // hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html - // #addition-add-2008-hwcd-3 - // 8M - - // A = (Y1 - X1) * (Y2 - X2) - var a = this.y.redSub(this.x).redMul(p.y.redSub(p.x)); - // B = (Y1 + X1) * (Y2 + X2) - var b = this.y.redAdd(this.x).redMul(p.y.redAdd(p.x)); - // C = T1 * k * T2 - var c = this.t.redMul(this.curve.dd).redMul(p.t); - // D = Z1 * 2 * Z2 - var d = this.z.redMul(p.z.redAdd(p.z)); - // E = B - A - var e = b.redSub(a); - // F = D - C - var f = d.redSub(c); - // G = D + C - var g = d.redAdd(c); - // H = B + A - var h = b.redAdd(a); - // X3 = E * F - var nx = e.redMul(f); - // Y3 = G * H - var ny = g.redMul(h); - // T3 = E * H - var nt = e.redMul(h); - // Z3 = F * G - var nz = f.redMul(g); - return this.curve.point(nx, ny, nz, nt); -}; - -Point.prototype._projAdd = function _projAdd(p) { - // hyperelliptic.org/EFD/g1p/auto-twisted-projective.html - // #addition-add-2008-bbjlp - // #addition-add-2007-bl - // 10M + 1S - - // A = Z1 * Z2 - var a = this.z.redMul(p.z); - // B = A^2 - var b = a.redSqr(); - // C = X1 * X2 - var c = this.x.redMul(p.x); - // D = Y1 * Y2 - var d = this.y.redMul(p.y); - // E = d * C * D - var e = this.curve.d.redMul(c).redMul(d); - // F = B - E - var f = b.redSub(e); - // G = B + E - var g = b.redAdd(e); - // X3 = A * F * ((X1 + Y1) * (X2 + Y2) - C - D) - var tmp = this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(c).redISub(d); - var nx = a.redMul(f).redMul(tmp); - var ny; - var nz; - if (this.curve.twisted) { - // Y3 = A * G * (D - a * C) - ny = a.redMul(g).redMul(d.redSub(this.curve._mulA(c))); - // Z3 = F * G - nz = f.redMul(g); - } else { - // Y3 = A * G * (D - C) - ny = a.redMul(g).redMul(d.redSub(c)); - // Z3 = c * F * G - nz = this.curve._mulC(f).redMul(g); - } - return this.curve.point(nx, ny, nz); -}; - -Point.prototype.add = function add(p) { - if (this.isInfinity()) - return p; - if (p.isInfinity()) - return this; - - if (this.curve.extended) - return this._extAdd(p); - else - return this._projAdd(p); -}; - -Point.prototype.mul = function mul(k) { - if (this._hasDoubles(k)) - return this.curve._fixedNafMul(this, k); - else - return this.curve._wnafMul(this, k); -}; - -Point.prototype.mulAdd = function mulAdd(k1, p, k2) { - return this.curve._wnafMulAdd(1, [ this, p ], [ k1, k2 ], 2, false); -}; - -Point.prototype.jmulAdd = function jmulAdd(k1, p, k2) { - return this.curve._wnafMulAdd(1, [ this, p ], [ k1, k2 ], 2, true); -}; - -Point.prototype.normalize = function normalize() { - if (this.zOne) - return this; - - // Normalize coordinates - var zi = this.z.redInvm(); - this.x = this.x.redMul(zi); - this.y = this.y.redMul(zi); - if (this.t) - this.t = this.t.redMul(zi); - this.z = this.curve.one; - this.zOne = true; - return this; -}; - -Point.prototype.neg = function neg() { - return this.curve.point(this.x.redNeg(), - this.y, - this.z, - this.t && this.t.redNeg()); -}; - -Point.prototype.getX = function getX() { - this.normalize(); - return this.x.fromRed(); -}; - -Point.prototype.getY = function getY() { - this.normalize(); - return this.y.fromRed(); -}; - -Point.prototype.eq = function eq(other) { - return this === other || - this.getX().cmp(other.getX()) === 0 && - this.getY().cmp(other.getY()) === 0; -}; - -Point.prototype.eqXToP = function eqXToP(x) { - var rx = x.toRed(this.curve.red).redMul(this.z); - if (this.x.cmp(rx) === 0) - return true; - - var xc = x.clone(); - var t = this.curve.redN.redMul(this.z); - for (;;) { - xc.iadd(this.curve.n); - if (xc.cmp(this.curve.p) >= 0) - return false; - - rx.redIAdd(t); - if (this.x.cmp(rx) === 0) - return true; - } -}; - -// Compatibility with BaseCurve -Point.prototype.toP = Point.prototype.normalize; -Point.prototype.mixedAdd = Point.prototype.add; - - -/***/ }), - -/***/ 777867: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var curve = exports; - -curve.base = __webpack_require__(774278); -curve.short = __webpack_require__(43461); -curve.mont = __webpack_require__(34397); -curve.edwards = __webpack_require__(826491); - - -/***/ }), - -/***/ 34397: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var BN = __webpack_require__(439404); -var inherits = __webpack_require__(672017); -var Base = __webpack_require__(774278); - -var utils = __webpack_require__(938402); - -function MontCurve(conf) { - Base.call(this, 'mont', conf); - - this.a = new BN(conf.a, 16).toRed(this.red); - this.b = new BN(conf.b, 16).toRed(this.red); - this.i4 = new BN(4).toRed(this.red).redInvm(); - this.two = new BN(2).toRed(this.red); - this.a24 = this.i4.redMul(this.a.redAdd(this.two)); -} -inherits(MontCurve, Base); -module.exports = MontCurve; - -MontCurve.prototype.validate = function validate(point) { - var x = point.normalize().x; - var x2 = x.redSqr(); - var rhs = x2.redMul(x).redAdd(x2.redMul(this.a)).redAdd(x); - var y = rhs.redSqrt(); - - return y.redSqr().cmp(rhs) === 0; -}; - -function Point(curve, x, z) { - Base.BasePoint.call(this, curve, 'projective'); - if (x === null && z === null) { - this.x = this.curve.one; - this.z = this.curve.zero; - } else { - this.x = new BN(x, 16); - this.z = new BN(z, 16); - if (!this.x.red) - this.x = this.x.toRed(this.curve.red); - if (!this.z.red) - this.z = this.z.toRed(this.curve.red); - } -} -inherits(Point, Base.BasePoint); - -MontCurve.prototype.decodePoint = function decodePoint(bytes, enc) { - return this.point(utils.toArray(bytes, enc), 1); -}; - -MontCurve.prototype.point = function point(x, z) { - return new Point(this, x, z); -}; - -MontCurve.prototype.pointFromJSON = function pointFromJSON(obj) { - return Point.fromJSON(this, obj); -}; - -Point.prototype.precompute = function precompute() { - // No-op -}; - -Point.prototype._encode = function _encode() { - return this.getX().toArray('be', this.curve.p.byteLength()); -}; - -Point.fromJSON = function fromJSON(curve, obj) { - return new Point(curve, obj[0], obj[1] || curve.one); -}; - -Point.prototype.inspect = function inspect() { - if (this.isInfinity()) - return ''; - return ''; -}; - -Point.prototype.isInfinity = function isInfinity() { - // XXX This code assumes that zero is always zero in red - return this.z.cmpn(0) === 0; -}; - -Point.prototype.dbl = function dbl() { - // http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#doubling-dbl-1987-m-3 - // 2M + 2S + 4A - - // A = X1 + Z1 - var a = this.x.redAdd(this.z); - // AA = A^2 - var aa = a.redSqr(); - // B = X1 - Z1 - var b = this.x.redSub(this.z); - // BB = B^2 - var bb = b.redSqr(); - // C = AA - BB - var c = aa.redSub(bb); - // X3 = AA * BB - var nx = aa.redMul(bb); - // Z3 = C * (BB + A24 * C) - var nz = c.redMul(bb.redAdd(this.curve.a24.redMul(c))); - return this.curve.point(nx, nz); -}; - -Point.prototype.add = function add() { - throw new Error('Not supported on Montgomery curve'); -}; - -Point.prototype.diffAdd = function diffAdd(p, diff) { - // http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#diffadd-dadd-1987-m-3 - // 4M + 2S + 6A - - // A = X2 + Z2 - var a = this.x.redAdd(this.z); - // B = X2 - Z2 - var b = this.x.redSub(this.z); - // C = X3 + Z3 - var c = p.x.redAdd(p.z); - // D = X3 - Z3 - var d = p.x.redSub(p.z); - // DA = D * A - var da = d.redMul(a); - // CB = C * B - var cb = c.redMul(b); - // X5 = Z1 * (DA + CB)^2 - var nx = diff.z.redMul(da.redAdd(cb).redSqr()); - // Z5 = X1 * (DA - CB)^2 - var nz = diff.x.redMul(da.redISub(cb).redSqr()); - return this.curve.point(nx, nz); -}; - -Point.prototype.mul = function mul(k) { - var t = k.clone(); - var a = this; // (N / 2) * Q + Q - var b = this.curve.point(null, null); // (N / 2) * Q - var c = this; // Q - - for (var bits = []; t.cmpn(0) !== 0; t.iushrn(1)) - bits.push(t.andln(1)); - - for (var i = bits.length - 1; i >= 0; i--) { - if (bits[i] === 0) { - // N * Q + Q = ((N / 2) * Q + Q)) + (N / 2) * Q - a = a.diffAdd(b, c); - // N * Q = 2 * ((N / 2) * Q + Q)) - b = b.dbl(); - } else { - // N * Q = ((N / 2) * Q + Q) + ((N / 2) * Q) - b = a.diffAdd(b, c); - // N * Q + Q = 2 * ((N / 2) * Q + Q) - a = a.dbl(); - } - } - return b; -}; - -Point.prototype.mulAdd = function mulAdd() { - throw new Error('Not supported on Montgomery curve'); -}; - -Point.prototype.jumlAdd = function jumlAdd() { - throw new Error('Not supported on Montgomery curve'); -}; - -Point.prototype.eq = function eq(other) { - return this.getX().cmp(other.getX()) === 0; -}; - -Point.prototype.normalize = function normalize() { - this.x = this.x.redMul(this.z.redInvm()); - this.z = this.curve.one; - return this; -}; - -Point.prototype.getX = function getX() { - // Normalize coordinates - this.normalize(); - - return this.x.fromRed(); -}; - - -/***/ }), - -/***/ 43461: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(938402); -var BN = __webpack_require__(439404); -var inherits = __webpack_require__(672017); -var Base = __webpack_require__(774278); - -var assert = utils.assert; - -function ShortCurve(conf) { - Base.call(this, 'short', conf); - - this.a = new BN(conf.a, 16).toRed(this.red); - this.b = new BN(conf.b, 16).toRed(this.red); - this.tinv = this.two.redInvm(); - - this.zeroA = this.a.fromRed().cmpn(0) === 0; - this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0; - - // If the curve is endomorphic, precalculate beta and lambda - this.endo = this._getEndomorphism(conf); - this._endoWnafT1 = new Array(4); - this._endoWnafT2 = new Array(4); -} -inherits(ShortCurve, Base); -module.exports = ShortCurve; - -ShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) { - // No efficient endomorphism - if (!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1) - return; - - // Compute beta and lambda, that lambda * P = (beta * Px; Py) - var beta; - var lambda; - if (conf.beta) { - beta = new BN(conf.beta, 16).toRed(this.red); - } else { - var betas = this._getEndoRoots(this.p); - // Choose the smallest beta - beta = betas[0].cmp(betas[1]) < 0 ? betas[0] : betas[1]; - beta = beta.toRed(this.red); - } - if (conf.lambda) { - lambda = new BN(conf.lambda, 16); - } else { - // Choose the lambda that is matching selected beta - var lambdas = this._getEndoRoots(this.n); - if (this.g.mul(lambdas[0]).x.cmp(this.g.x.redMul(beta)) === 0) { - lambda = lambdas[0]; - } else { - lambda = lambdas[1]; - assert(this.g.mul(lambda).x.cmp(this.g.x.redMul(beta)) === 0); - } - } - - // Get basis vectors, used for balanced length-two representation - var basis; - if (conf.basis) { - basis = conf.basis.map(function(vec) { - return { - a: new BN(vec.a, 16), - b: new BN(vec.b, 16), - }; - }); - } else { - basis = this._getEndoBasis(lambda); - } - - return { - beta: beta, - lambda: lambda, - basis: basis, - }; -}; - -ShortCurve.prototype._getEndoRoots = function _getEndoRoots(num) { - // Find roots of for x^2 + x + 1 in F - // Root = (-1 +- Sqrt(-3)) / 2 - // - var red = num === this.p ? this.red : BN.mont(num); - var tinv = new BN(2).toRed(red).redInvm(); - var ntinv = tinv.redNeg(); - - var s = new BN(3).toRed(red).redNeg().redSqrt().redMul(tinv); - - var l1 = ntinv.redAdd(s).fromRed(); - var l2 = ntinv.redSub(s).fromRed(); - return [ l1, l2 ]; -}; - -ShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) { - // aprxSqrt >= sqrt(this.n) - var aprxSqrt = this.n.ushrn(Math.floor(this.n.bitLength() / 2)); - - // 3.74 - // Run EGCD, until r(L + 1) < aprxSqrt - var u = lambda; - var v = this.n.clone(); - var x1 = new BN(1); - var y1 = new BN(0); - var x2 = new BN(0); - var y2 = new BN(1); - - // NOTE: all vectors are roots of: a + b * lambda = 0 (mod n) - var a0; - var b0; - // First vector - var a1; - var b1; - // Second vector - var a2; - var b2; - - var prevR; - var i = 0; - var r; - var x; - while (u.cmpn(0) !== 0) { - var q = v.div(u); - r = v.sub(q.mul(u)); - x = x2.sub(q.mul(x1)); - var y = y2.sub(q.mul(y1)); - - if (!a1 && r.cmp(aprxSqrt) < 0) { - a0 = prevR.neg(); - b0 = x1; - a1 = r.neg(); - b1 = x; - } else if (a1 && ++i === 2) { - break; - } - prevR = r; - - v = u; - u = r; - x2 = x1; - x1 = x; - y2 = y1; - y1 = y; - } - a2 = r.neg(); - b2 = x; - - var len1 = a1.sqr().add(b1.sqr()); - var len2 = a2.sqr().add(b2.sqr()); - if (len2.cmp(len1) >= 0) { - a2 = a0; - b2 = b0; - } - - // Normalize signs - if (a1.negative) { - a1 = a1.neg(); - b1 = b1.neg(); - } - if (a2.negative) { - a2 = a2.neg(); - b2 = b2.neg(); - } - - return [ - { a: a1, b: b1 }, - { a: a2, b: b2 }, - ]; -}; - -ShortCurve.prototype._endoSplit = function _endoSplit(k) { - var basis = this.endo.basis; - var v1 = basis[0]; - var v2 = basis[1]; - - var c1 = v2.b.mul(k).divRound(this.n); - var c2 = v1.b.neg().mul(k).divRound(this.n); - - var p1 = c1.mul(v1.a); - var p2 = c2.mul(v2.a); - var q1 = c1.mul(v1.b); - var q2 = c2.mul(v2.b); - - // Calculate answer - var k1 = k.sub(p1).sub(p2); - var k2 = q1.add(q2).neg(); - return { k1: k1, k2: k2 }; -}; - -ShortCurve.prototype.pointFromX = function pointFromX(x, odd) { - x = new BN(x, 16); - if (!x.red) - x = x.toRed(this.red); - - var y2 = x.redSqr().redMul(x).redIAdd(x.redMul(this.a)).redIAdd(this.b); - var y = y2.redSqrt(); - if (y.redSqr().redSub(y2).cmp(this.zero) !== 0) - throw new Error('invalid point'); - - // XXX Is there any way to tell if the number is odd without converting it - // to non-red form? - var isOdd = y.fromRed().isOdd(); - if (odd && !isOdd || !odd && isOdd) - y = y.redNeg(); - - return this.point(x, y); -}; - -ShortCurve.prototype.validate = function validate(point) { - if (point.inf) - return true; - - var x = point.x; - var y = point.y; - - var ax = this.a.redMul(x); - var rhs = x.redSqr().redMul(x).redIAdd(ax).redIAdd(this.b); - return y.redSqr().redISub(rhs).cmpn(0) === 0; -}; - -ShortCurve.prototype._endoWnafMulAdd = - function _endoWnafMulAdd(points, coeffs, jacobianResult) { - var npoints = this._endoWnafT1; - var ncoeffs = this._endoWnafT2; - for (var i = 0; i < points.length; i++) { - var split = this._endoSplit(coeffs[i]); - var p = points[i]; - var beta = p._getBeta(); - - if (split.k1.negative) { - split.k1.ineg(); - p = p.neg(true); - } - if (split.k2.negative) { - split.k2.ineg(); - beta = beta.neg(true); - } - - npoints[i * 2] = p; - npoints[i * 2 + 1] = beta; - ncoeffs[i * 2] = split.k1; - ncoeffs[i * 2 + 1] = split.k2; - } - var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult); - - // Clean-up references to points and coefficients - for (var j = 0; j < i * 2; j++) { - npoints[j] = null; - ncoeffs[j] = null; - } - return res; - }; - -function Point(curve, x, y, isRed) { - Base.BasePoint.call(this, curve, 'affine'); - if (x === null && y === null) { - this.x = null; - this.y = null; - this.inf = true; - } else { - this.x = new BN(x, 16); - this.y = new BN(y, 16); - // Force redgomery representation when loading from JSON - if (isRed) { - this.x.forceRed(this.curve.red); - this.y.forceRed(this.curve.red); - } - if (!this.x.red) - this.x = this.x.toRed(this.curve.red); - if (!this.y.red) - this.y = this.y.toRed(this.curve.red); - this.inf = false; - } -} -inherits(Point, Base.BasePoint); - -ShortCurve.prototype.point = function point(x, y, isRed) { - return new Point(this, x, y, isRed); -}; - -ShortCurve.prototype.pointFromJSON = function pointFromJSON(obj, red) { - return Point.fromJSON(this, obj, red); -}; - -Point.prototype._getBeta = function _getBeta() { - if (!this.curve.endo) - return; - - var pre = this.precomputed; - if (pre && pre.beta) - return pre.beta; - - var beta = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y); - if (pre) { - var curve = this.curve; - var endoMul = function(p) { - return curve.point(p.x.redMul(curve.endo.beta), p.y); - }; - pre.beta = beta; - beta.precomputed = { - beta: null, - naf: pre.naf && { - wnd: pre.naf.wnd, - points: pre.naf.points.map(endoMul), - }, - doubles: pre.doubles && { - step: pre.doubles.step, - points: pre.doubles.points.map(endoMul), - }, - }; - } - return beta; -}; - -Point.prototype.toJSON = function toJSON() { - if (!this.precomputed) - return [ this.x, this.y ]; - - return [ this.x, this.y, this.precomputed && { - doubles: this.precomputed.doubles && { - step: this.precomputed.doubles.step, - points: this.precomputed.doubles.points.slice(1), - }, - naf: this.precomputed.naf && { - wnd: this.precomputed.naf.wnd, - points: this.precomputed.naf.points.slice(1), - }, - } ]; -}; - -Point.fromJSON = function fromJSON(curve, obj, red) { - if (typeof obj === 'string') - obj = JSON.parse(obj); - var res = curve.point(obj[0], obj[1], red); - if (!obj[2]) - return res; - - function obj2point(obj) { - return curve.point(obj[0], obj[1], red); - } - - var pre = obj[2]; - res.precomputed = { - beta: null, - doubles: pre.doubles && { - step: pre.doubles.step, - points: [ res ].concat(pre.doubles.points.map(obj2point)), - }, - naf: pre.naf && { - wnd: pre.naf.wnd, - points: [ res ].concat(pre.naf.points.map(obj2point)), - }, - }; - return res; -}; - -Point.prototype.inspect = function inspect() { - if (this.isInfinity()) - return ''; - return ''; -}; - -Point.prototype.isInfinity = function isInfinity() { - return this.inf; -}; - -Point.prototype.add = function add(p) { - // O + P = P - if (this.inf) - return p; - - // P + O = P - if (p.inf) - return this; - - // P + P = 2P - if (this.eq(p)) - return this.dbl(); - - // P + (-P) = O - if (this.neg().eq(p)) - return this.curve.point(null, null); - - // P + Q = O - if (this.x.cmp(p.x) === 0) - return this.curve.point(null, null); - - var c = this.y.redSub(p.y); - if (c.cmpn(0) !== 0) - c = c.redMul(this.x.redSub(p.x).redInvm()); - var nx = c.redSqr().redISub(this.x).redISub(p.x); - var ny = c.redMul(this.x.redSub(nx)).redISub(this.y); - return this.curve.point(nx, ny); -}; - -Point.prototype.dbl = function dbl() { - if (this.inf) - return this; - - // 2P = O - var ys1 = this.y.redAdd(this.y); - if (ys1.cmpn(0) === 0) - return this.curve.point(null, null); - - var a = this.curve.a; - - var x2 = this.x.redSqr(); - var dyinv = ys1.redInvm(); - var c = x2.redAdd(x2).redIAdd(x2).redIAdd(a).redMul(dyinv); - - var nx = c.redSqr().redISub(this.x.redAdd(this.x)); - var ny = c.redMul(this.x.redSub(nx)).redISub(this.y); - return this.curve.point(nx, ny); -}; - -Point.prototype.getX = function getX() { - return this.x.fromRed(); -}; - -Point.prototype.getY = function getY() { - return this.y.fromRed(); -}; - -Point.prototype.mul = function mul(k) { - k = new BN(k, 16); - if (this.isInfinity()) - return this; - else if (this._hasDoubles(k)) - return this.curve._fixedNafMul(this, k); - else if (this.curve.endo) - return this.curve._endoWnafMulAdd([ this ], [ k ]); - else - return this.curve._wnafMul(this, k); -}; - -Point.prototype.mulAdd = function mulAdd(k1, p2, k2) { - var points = [ this, p2 ]; - var coeffs = [ k1, k2 ]; - if (this.curve.endo) - return this.curve._endoWnafMulAdd(points, coeffs); - else - return this.curve._wnafMulAdd(1, points, coeffs, 2); -}; - -Point.prototype.jmulAdd = function jmulAdd(k1, p2, k2) { - var points = [ this, p2 ]; - var coeffs = [ k1, k2 ]; - if (this.curve.endo) - return this.curve._endoWnafMulAdd(points, coeffs, true); - else - return this.curve._wnafMulAdd(1, points, coeffs, 2, true); -}; - -Point.prototype.eq = function eq(p) { - return this === p || - this.inf === p.inf && - (this.inf || this.x.cmp(p.x) === 0 && this.y.cmp(p.y) === 0); -}; - -Point.prototype.neg = function neg(_precompute) { - if (this.inf) - return this; - - var res = this.curve.point(this.x, this.y.redNeg()); - if (_precompute && this.precomputed) { - var pre = this.precomputed; - var negate = function(p) { - return p.neg(); - }; - res.precomputed = { - naf: pre.naf && { - wnd: pre.naf.wnd, - points: pre.naf.points.map(negate), - }, - doubles: pre.doubles && { - step: pre.doubles.step, - points: pre.doubles.points.map(negate), - }, - }; - } - return res; -}; - -Point.prototype.toJ = function toJ() { - if (this.inf) - return this.curve.jpoint(null, null, null); - - var res = this.curve.jpoint(this.x, this.y, this.curve.one); - return res; -}; - -function JPoint(curve, x, y, z) { - Base.BasePoint.call(this, curve, 'jacobian'); - if (x === null && y === null && z === null) { - this.x = this.curve.one; - this.y = this.curve.one; - this.z = new BN(0); - } else { - this.x = new BN(x, 16); - this.y = new BN(y, 16); - this.z = new BN(z, 16); - } - if (!this.x.red) - this.x = this.x.toRed(this.curve.red); - if (!this.y.red) - this.y = this.y.toRed(this.curve.red); - if (!this.z.red) - this.z = this.z.toRed(this.curve.red); - - this.zOne = this.z === this.curve.one; -} -inherits(JPoint, Base.BasePoint); - -ShortCurve.prototype.jpoint = function jpoint(x, y, z) { - return new JPoint(this, x, y, z); -}; - -JPoint.prototype.toP = function toP() { - if (this.isInfinity()) - return this.curve.point(null, null); - - var zinv = this.z.redInvm(); - var zinv2 = zinv.redSqr(); - var ax = this.x.redMul(zinv2); - var ay = this.y.redMul(zinv2).redMul(zinv); - - return this.curve.point(ax, ay); -}; - -JPoint.prototype.neg = function neg() { - return this.curve.jpoint(this.x, this.y.redNeg(), this.z); -}; - -JPoint.prototype.add = function add(p) { - // O + P = P - if (this.isInfinity()) - return p; - - // P + O = P - if (p.isInfinity()) - return this; - - // 12M + 4S + 7A - var pz2 = p.z.redSqr(); - var z2 = this.z.redSqr(); - var u1 = this.x.redMul(pz2); - var u2 = p.x.redMul(z2); - var s1 = this.y.redMul(pz2.redMul(p.z)); - var s2 = p.y.redMul(z2.redMul(this.z)); - - var h = u1.redSub(u2); - var r = s1.redSub(s2); - if (h.cmpn(0) === 0) { - if (r.cmpn(0) !== 0) - return this.curve.jpoint(null, null, null); - else - return this.dbl(); - } - - var h2 = h.redSqr(); - var h3 = h2.redMul(h); - var v = u1.redMul(h2); - - var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v); - var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3)); - var nz = this.z.redMul(p.z).redMul(h); - - return this.curve.jpoint(nx, ny, nz); -}; - -JPoint.prototype.mixedAdd = function mixedAdd(p) { - // O + P = P - if (this.isInfinity()) - return p.toJ(); - - // P + O = P - if (p.isInfinity()) - return this; - - // 8M + 3S + 7A - var z2 = this.z.redSqr(); - var u1 = this.x; - var u2 = p.x.redMul(z2); - var s1 = this.y; - var s2 = p.y.redMul(z2).redMul(this.z); - - var h = u1.redSub(u2); - var r = s1.redSub(s2); - if (h.cmpn(0) === 0) { - if (r.cmpn(0) !== 0) - return this.curve.jpoint(null, null, null); - else - return this.dbl(); - } - - var h2 = h.redSqr(); - var h3 = h2.redMul(h); - var v = u1.redMul(h2); - - var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v); - var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3)); - var nz = this.z.redMul(h); - - return this.curve.jpoint(nx, ny, nz); -}; - -JPoint.prototype.dblp = function dblp(pow) { - if (pow === 0) - return this; - if (this.isInfinity()) - return this; - if (!pow) - return this.dbl(); - - var i; - if (this.curve.zeroA || this.curve.threeA) { - var r = this; - for (i = 0; i < pow; i++) - r = r.dbl(); - return r; - } - - // 1M + 2S + 1A + N * (4S + 5M + 8A) - // N = 1 => 6M + 6S + 9A - var a = this.curve.a; - var tinv = this.curve.tinv; - - var jx = this.x; - var jy = this.y; - var jz = this.z; - var jz4 = jz.redSqr().redSqr(); - - // Reuse results - var jyd = jy.redAdd(jy); - for (i = 0; i < pow; i++) { - var jx2 = jx.redSqr(); - var jyd2 = jyd.redSqr(); - var jyd4 = jyd2.redSqr(); - var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4)); - - var t1 = jx.redMul(jyd2); - var nx = c.redSqr().redISub(t1.redAdd(t1)); - var t2 = t1.redISub(nx); - var dny = c.redMul(t2); - dny = dny.redIAdd(dny).redISub(jyd4); - var nz = jyd.redMul(jz); - if (i + 1 < pow) - jz4 = jz4.redMul(jyd4); - - jx = nx; - jz = nz; - jyd = dny; - } - - return this.curve.jpoint(jx, jyd.redMul(tinv), jz); -}; - -JPoint.prototype.dbl = function dbl() { - if (this.isInfinity()) - return this; - - if (this.curve.zeroA) - return this._zeroDbl(); - else if (this.curve.threeA) - return this._threeDbl(); - else - return this._dbl(); -}; - -JPoint.prototype._zeroDbl = function _zeroDbl() { - var nx; - var ny; - var nz; - // Z = 1 - if (this.zOne) { - // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html - // #doubling-mdbl-2007-bl - // 1M + 5S + 14A - - // XX = X1^2 - var xx = this.x.redSqr(); - // YY = Y1^2 - var yy = this.y.redSqr(); - // YYYY = YY^2 - var yyyy = yy.redSqr(); - // S = 2 * ((X1 + YY)^2 - XX - YYYY) - var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy); - s = s.redIAdd(s); - // M = 3 * XX + a; a = 0 - var m = xx.redAdd(xx).redIAdd(xx); - // T = M ^ 2 - 2*S - var t = m.redSqr().redISub(s).redISub(s); - - // 8 * YYYY - var yyyy8 = yyyy.redIAdd(yyyy); - yyyy8 = yyyy8.redIAdd(yyyy8); - yyyy8 = yyyy8.redIAdd(yyyy8); - - // X3 = T - nx = t; - // Y3 = M * (S - T) - 8 * YYYY - ny = m.redMul(s.redISub(t)).redISub(yyyy8); - // Z3 = 2*Y1 - nz = this.y.redAdd(this.y); - } else { - // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html - // #doubling-dbl-2009-l - // 2M + 5S + 13A - - // A = X1^2 - var a = this.x.redSqr(); - // B = Y1^2 - var b = this.y.redSqr(); - // C = B^2 - var c = b.redSqr(); - // D = 2 * ((X1 + B)^2 - A - C) - var d = this.x.redAdd(b).redSqr().redISub(a).redISub(c); - d = d.redIAdd(d); - // E = 3 * A - var e = a.redAdd(a).redIAdd(a); - // F = E^2 - var f = e.redSqr(); - - // 8 * C - var c8 = c.redIAdd(c); - c8 = c8.redIAdd(c8); - c8 = c8.redIAdd(c8); - - // X3 = F - 2 * D - nx = f.redISub(d).redISub(d); - // Y3 = E * (D - X3) - 8 * C - ny = e.redMul(d.redISub(nx)).redISub(c8); - // Z3 = 2 * Y1 * Z1 - nz = this.y.redMul(this.z); - nz = nz.redIAdd(nz); - } - - return this.curve.jpoint(nx, ny, nz); -}; - -JPoint.prototype._threeDbl = function _threeDbl() { - var nx; - var ny; - var nz; - // Z = 1 - if (this.zOne) { - // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html - // #doubling-mdbl-2007-bl - // 1M + 5S + 15A - - // XX = X1^2 - var xx = this.x.redSqr(); - // YY = Y1^2 - var yy = this.y.redSqr(); - // YYYY = YY^2 - var yyyy = yy.redSqr(); - // S = 2 * ((X1 + YY)^2 - XX - YYYY) - var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy); - s = s.redIAdd(s); - // M = 3 * XX + a - var m = xx.redAdd(xx).redIAdd(xx).redIAdd(this.curve.a); - // T = M^2 - 2 * S - var t = m.redSqr().redISub(s).redISub(s); - // X3 = T - nx = t; - // Y3 = M * (S - T) - 8 * YYYY - var yyyy8 = yyyy.redIAdd(yyyy); - yyyy8 = yyyy8.redIAdd(yyyy8); - yyyy8 = yyyy8.redIAdd(yyyy8); - ny = m.redMul(s.redISub(t)).redISub(yyyy8); - // Z3 = 2 * Y1 - nz = this.y.redAdd(this.y); - } else { - // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-2001-b - // 3M + 5S - - // delta = Z1^2 - var delta = this.z.redSqr(); - // gamma = Y1^2 - var gamma = this.y.redSqr(); - // beta = X1 * gamma - var beta = this.x.redMul(gamma); - // alpha = 3 * (X1 - delta) * (X1 + delta) - var alpha = this.x.redSub(delta).redMul(this.x.redAdd(delta)); - alpha = alpha.redAdd(alpha).redIAdd(alpha); - // X3 = alpha^2 - 8 * beta - var beta4 = beta.redIAdd(beta); - beta4 = beta4.redIAdd(beta4); - var beta8 = beta4.redAdd(beta4); - nx = alpha.redSqr().redISub(beta8); - // Z3 = (Y1 + Z1)^2 - gamma - delta - nz = this.y.redAdd(this.z).redSqr().redISub(gamma).redISub(delta); - // Y3 = alpha * (4 * beta - X3) - 8 * gamma^2 - var ggamma8 = gamma.redSqr(); - ggamma8 = ggamma8.redIAdd(ggamma8); - ggamma8 = ggamma8.redIAdd(ggamma8); - ggamma8 = ggamma8.redIAdd(ggamma8); - ny = alpha.redMul(beta4.redISub(nx)).redISub(ggamma8); - } - - return this.curve.jpoint(nx, ny, nz); -}; - -JPoint.prototype._dbl = function _dbl() { - var a = this.curve.a; - - // 4M + 6S + 10A - var jx = this.x; - var jy = this.y; - var jz = this.z; - var jz4 = jz.redSqr().redSqr(); - - var jx2 = jx.redSqr(); - var jy2 = jy.redSqr(); - - var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4)); - - var jxd4 = jx.redAdd(jx); - jxd4 = jxd4.redIAdd(jxd4); - var t1 = jxd4.redMul(jy2); - var nx = c.redSqr().redISub(t1.redAdd(t1)); - var t2 = t1.redISub(nx); - - var jyd8 = jy2.redSqr(); - jyd8 = jyd8.redIAdd(jyd8); - jyd8 = jyd8.redIAdd(jyd8); - jyd8 = jyd8.redIAdd(jyd8); - var ny = c.redMul(t2).redISub(jyd8); - var nz = jy.redAdd(jy).redMul(jz); - - return this.curve.jpoint(nx, ny, nz); -}; - -JPoint.prototype.trpl = function trpl() { - if (!this.curve.zeroA) - return this.dbl().add(this); - - // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#tripling-tpl-2007-bl - // 5M + 10S + ... - - // XX = X1^2 - var xx = this.x.redSqr(); - // YY = Y1^2 - var yy = this.y.redSqr(); - // ZZ = Z1^2 - var zz = this.z.redSqr(); - // YYYY = YY^2 - var yyyy = yy.redSqr(); - // M = 3 * XX + a * ZZ2; a = 0 - var m = xx.redAdd(xx).redIAdd(xx); - // MM = M^2 - var mm = m.redSqr(); - // E = 6 * ((X1 + YY)^2 - XX - YYYY) - MM - var e = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy); - e = e.redIAdd(e); - e = e.redAdd(e).redIAdd(e); - e = e.redISub(mm); - // EE = E^2 - var ee = e.redSqr(); - // T = 16*YYYY - var t = yyyy.redIAdd(yyyy); - t = t.redIAdd(t); - t = t.redIAdd(t); - t = t.redIAdd(t); - // U = (M + E)^2 - MM - EE - T - var u = m.redIAdd(e).redSqr().redISub(mm).redISub(ee).redISub(t); - // X3 = 4 * (X1 * EE - 4 * YY * U) - var yyu4 = yy.redMul(u); - yyu4 = yyu4.redIAdd(yyu4); - yyu4 = yyu4.redIAdd(yyu4); - var nx = this.x.redMul(ee).redISub(yyu4); - nx = nx.redIAdd(nx); - nx = nx.redIAdd(nx); - // Y3 = 8 * Y1 * (U * (T - U) - E * EE) - var ny = this.y.redMul(u.redMul(t.redISub(u)).redISub(e.redMul(ee))); - ny = ny.redIAdd(ny); - ny = ny.redIAdd(ny); - ny = ny.redIAdd(ny); - // Z3 = (Z1 + E)^2 - ZZ - EE - var nz = this.z.redAdd(e).redSqr().redISub(zz).redISub(ee); - - return this.curve.jpoint(nx, ny, nz); -}; - -JPoint.prototype.mul = function mul(k, kbase) { - k = new BN(k, kbase); - - return this.curve._wnafMul(this, k); -}; - -JPoint.prototype.eq = function eq(p) { - if (p.type === 'affine') - return this.eq(p.toJ()); - - if (this === p) - return true; - - // x1 * z2^2 == x2 * z1^2 - var z2 = this.z.redSqr(); - var pz2 = p.z.redSqr(); - if (this.x.redMul(pz2).redISub(p.x.redMul(z2)).cmpn(0) !== 0) - return false; - - // y1 * z2^3 == y2 * z1^3 - var z3 = z2.redMul(this.z); - var pz3 = pz2.redMul(p.z); - return this.y.redMul(pz3).redISub(p.y.redMul(z3)).cmpn(0) === 0; -}; - -JPoint.prototype.eqXToP = function eqXToP(x) { - var zs = this.z.redSqr(); - var rx = x.toRed(this.curve.red).redMul(zs); - if (this.x.cmp(rx) === 0) - return true; - - var xc = x.clone(); - var t = this.curve.redN.redMul(zs); - for (;;) { - xc.iadd(this.curve.n); - if (xc.cmp(this.curve.p) >= 0) - return false; - - rx.redIAdd(t); - if (this.x.cmp(rx) === 0) - return true; - } -}; - -JPoint.prototype.inspect = function inspect() { - if (this.isInfinity()) - return ''; - return ''; -}; - -JPoint.prototype.isInfinity = function isInfinity() { - // XXX This code assumes that zero is always zero in red - return this.z.cmpn(0) === 0; -}; - - -/***/ }), - -/***/ 727483: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var curves = exports; - -var hash = __webpack_require__(277952); -var curve = __webpack_require__(777867); -var utils = __webpack_require__(938402); - -var assert = utils.assert; - -function PresetCurve(options) { - if (options.type === 'short') - this.curve = new curve.short(options); - else if (options.type === 'edwards') - this.curve = new curve.edwards(options); - else - this.curve = new curve.mont(options); - this.g = this.curve.g; - this.n = this.curve.n; - this.hash = options.hash; - - assert(this.g.validate(), 'Invalid curve'); - assert(this.g.mul(this.n).isInfinity(), 'Invalid curve, G*N != O'); -} -curves.PresetCurve = PresetCurve; - -function defineCurve(name, options) { - Object.defineProperty(curves, name, { - configurable: true, - enumerable: true, - get: function() { - var curve = new PresetCurve(options); - Object.defineProperty(curves, name, { - configurable: true, - enumerable: true, - value: curve, - }); - return curve; - }, - }); -} - -defineCurve('p192', { - type: 'short', - prime: 'p192', - p: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff', - a: 'ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc', - b: '64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1', - n: 'ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831', - hash: hash.sha256, - gRed: false, - g: [ - '188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012', - '07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811', - ], -}); - -defineCurve('p224', { - type: 'short', - prime: 'p224', - p: 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001', - a: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe', - b: 'b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4', - n: 'ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d', - hash: hash.sha256, - gRed: false, - g: [ - 'b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21', - 'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34', - ], -}); - -defineCurve('p256', { - type: 'short', - prime: null, - p: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff', - a: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc', - b: '5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b', - n: 'ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551', - hash: hash.sha256, - gRed: false, - g: [ - '6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296', - '4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5', - ], -}); - -defineCurve('p384', { - type: 'short', - prime: null, - p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' + - 'fffffffe ffffffff 00000000 00000000 ffffffff', - a: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' + - 'fffffffe ffffffff 00000000 00000000 fffffffc', - b: 'b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f ' + - '5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef', - n: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 ' + - 'f4372ddf 581a0db2 48b0a77a ecec196a ccc52973', - hash: hash.sha384, - gRed: false, - g: [ - 'aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 ' + - '5502f25d bf55296c 3a545e38 72760ab7', - '3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 ' + - '0a60b1ce 1d7e819d 7a431d7c 90ea0e5f', - ], -}); - -defineCurve('p521', { - type: 'short', - prime: null, - p: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' + - 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' + - 'ffffffff ffffffff ffffffff ffffffff ffffffff', - a: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' + - 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' + - 'ffffffff ffffffff ffffffff ffffffff fffffffc', - b: '00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b ' + - '99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd ' + - '3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00', - n: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' + - 'ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 ' + - 'f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409', - hash: hash.sha512, - gRed: false, - g: [ - '000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 ' + - '053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 ' + - 'a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66', - '00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 ' + - '579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 ' + - '3fad0761 353c7086 a272c240 88be9476 9fd16650', - ], -}); - -defineCurve('curve25519', { - type: 'mont', - prime: 'p25519', - p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed', - a: '76d06', - b: '1', - n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed', - hash: hash.sha256, - gRed: false, - g: [ - '9', - ], -}); - -defineCurve('ed25519', { - type: 'edwards', - prime: 'p25519', - p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed', - a: '-1', - c: '1', - // -121665 * (121666^(-1)) (mod P) - d: '52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3', - n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed', - hash: hash.sha256, - gRed: false, - g: [ - '216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a', - - // 4/5 - '6666666666666666666666666666666666666666666666666666666666666658', - ], -}); - -var pre; -try { - pre = __webpack_require__(604674); -} catch (e) { - pre = undefined; -} - -defineCurve('secp256k1', { - type: 'short', - prime: 'k256', - p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f', - a: '0', - b: '7', - n: 'ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141', - h: '1', - hash: hash.sha256, - - // Precomputed endomorphism - beta: '7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee', - lambda: '5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72', - basis: [ - { - a: '3086d221a7d46bcde86c90e49284eb15', - b: '-e4437ed6010e88286f547fa90abfe4c3', - }, - { - a: '114ca50f7a8e2f3f657c1108d9d44cfd8', - b: '3086d221a7d46bcde86c90e49284eb15', - }, - ], - - gRed: false, - g: [ - '79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798', - '483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8', - pre, - ], -}); - - -/***/ }), - -/***/ 252040: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var BN = __webpack_require__(439404); -var HmacDRBG = __webpack_require__(932723); -var utils = __webpack_require__(938402); -var curves = __webpack_require__(727483); -var rand = __webpack_require__(415037); -var assert = utils.assert; - -var KeyPair = __webpack_require__(934747); -var Signature = __webpack_require__(236390); - -function EC(options) { - if (!(this instanceof EC)) - return new EC(options); - - // Shortcut `elliptic.ec(curve-name)` - if (typeof options === 'string') { - assert(Object.prototype.hasOwnProperty.call(curves, options), - 'Unknown curve ' + options); - - options = curves[options]; - } - - // Shortcut for `elliptic.ec(elliptic.curves.curveName)` - if (options instanceof curves.PresetCurve) - options = { curve: options }; - - this.curve = options.curve.curve; - this.n = this.curve.n; - this.nh = this.n.ushrn(1); - this.g = this.curve.g; - - // Point on curve - this.g = options.curve.g; - this.g.precompute(options.curve.n.bitLength() + 1); - - // Hash for function for DRBG - this.hash = options.hash || options.curve.hash; -} -module.exports = EC; - -EC.prototype.keyPair = function keyPair(options) { - return new KeyPair(this, options); -}; - -EC.prototype.keyFromPrivate = function keyFromPrivate(priv, enc) { - return KeyPair.fromPrivate(this, priv, enc); -}; - -EC.prototype.keyFromPublic = function keyFromPublic(pub, enc) { - return KeyPair.fromPublic(this, pub, enc); -}; - -EC.prototype.genKeyPair = function genKeyPair(options) { - if (!options) - options = {}; - - // Instantiate Hmac_DRBG - var drbg = new HmacDRBG({ - hash: this.hash, - pers: options.pers, - persEnc: options.persEnc || 'utf8', - entropy: options.entropy || rand(this.hash.hmacStrength), - entropyEnc: options.entropy && options.entropyEnc || 'utf8', - nonce: this.n.toArray(), - }); - - var bytes = this.n.byteLength(); - var ns2 = this.n.sub(new BN(2)); - for (;;) { - var priv = new BN(drbg.generate(bytes)); - if (priv.cmp(ns2) > 0) - continue; - - priv.iaddn(1); - return this.keyFromPrivate(priv); - } -}; - -EC.prototype._truncateToN = function _truncateToN(msg, truncOnly, bitLength) { - var byteLength; - if (BN.isBN(msg) || typeof msg === 'number') { - msg = new BN(msg, 16); - byteLength = msg.byteLength(); - } else if (typeof msg === 'object') { - // BN assumes an array-like input and asserts length - byteLength = msg.length; - msg = new BN(msg, 16); - } else { - // BN converts the value to string - var str = msg.toString(); - // HEX encoding - byteLength = (str.length + 1) >>> 1; - msg = new BN(str, 16); - } - // Allow overriding - if (typeof bitLength !== 'number') { - bitLength = byteLength * 8; - } - var delta = bitLength - this.n.bitLength(); - if (delta > 0) - msg = msg.ushrn(delta); - if (!truncOnly && msg.cmp(this.n) >= 0) - return msg.sub(this.n); - else - return msg; -}; - -EC.prototype.sign = function sign(msg, key, enc, options) { - if (typeof enc === 'object') { - options = enc; - enc = null; - } - if (!options) - options = {}; - - key = this.keyFromPrivate(key, enc); - msg = this._truncateToN(msg, false, options.msgBitLength); - - // Zero-extend key to provide enough entropy - var bytes = this.n.byteLength(); - var bkey = key.getPrivate().toArray('be', bytes); - - // Zero-extend nonce to have the same byte size as N - var nonce = msg.toArray('be', bytes); - - // Instantiate Hmac_DRBG - var drbg = new HmacDRBG({ - hash: this.hash, - entropy: bkey, - nonce: nonce, - pers: options.pers, - persEnc: options.persEnc || 'utf8', - }); - - // Number of bytes to generate - var ns1 = this.n.sub(new BN(1)); - - for (var iter = 0; ; iter++) { - var k = options.k ? - options.k(iter) : - new BN(drbg.generate(this.n.byteLength())); - k = this._truncateToN(k, true); - if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0) - continue; - - var kp = this.g.mul(k); - if (kp.isInfinity()) - continue; - - var kpX = kp.getX(); - var r = kpX.umod(this.n); - if (r.cmpn(0) === 0) - continue; - - var s = k.invm(this.n).mul(r.mul(key.getPrivate()).iadd(msg)); - s = s.umod(this.n); - if (s.cmpn(0) === 0) - continue; - - var recoveryParam = (kp.getY().isOdd() ? 1 : 0) | - (kpX.cmp(r) !== 0 ? 2 : 0); - - // Use complement of `s`, if it is > `n / 2` - if (options.canonical && s.cmp(this.nh) > 0) { - s = this.n.sub(s); - recoveryParam ^= 1; - } - - return new Signature({ r: r, s: s, recoveryParam: recoveryParam }); - } -}; - -EC.prototype.verify = function verify(msg, signature, key, enc, options) { - if (!options) - options = {}; - - msg = this._truncateToN(msg, false, options.msgBitLength); - key = this.keyFromPublic(key, enc); - signature = new Signature(signature, 'hex'); - - // Perform primitive values validation - var r = signature.r; - var s = signature.s; - if (r.cmpn(1) < 0 || r.cmp(this.n) >= 0) - return false; - if (s.cmpn(1) < 0 || s.cmp(this.n) >= 0) - return false; - - // Validate signature - var sinv = s.invm(this.n); - var u1 = sinv.mul(msg).umod(this.n); - var u2 = sinv.mul(r).umod(this.n); - var p; - - if (!this.curve._maxwellTrick) { - p = this.g.mulAdd(u1, key.getPublic(), u2); - if (p.isInfinity()) - return false; - - return p.getX().umod(this.n).cmp(r) === 0; - } - - // NOTE: Greg Maxwell's trick, inspired by: - // https://git.io/vad3K - - p = this.g.jmulAdd(u1, key.getPublic(), u2); - if (p.isInfinity()) - return false; - - // Compare `p.x` of Jacobian point with `r`, - // this will do `p.x == r * p.z^2` instead of multiplying `p.x` by the - // inverse of `p.z^2` - return p.eqXToP(r); -}; - -EC.prototype.recoverPubKey = function(msg, signature, j, enc) { - assert((3 & j) === j, 'The recovery param is more than two bits'); - signature = new Signature(signature, enc); - - var n = this.n; - var e = new BN(msg); - var r = signature.r; - var s = signature.s; - - // A set LSB signifies that the y-coordinate is odd - var isYOdd = j & 1; - var isSecondKey = j >> 1; - if (r.cmp(this.curve.p.umod(this.curve.n)) >= 0 && isSecondKey) - throw new Error('Unable to find sencond key candinate'); - - // 1.1. Let x = r + jn. - if (isSecondKey) - r = this.curve.pointFromX(r.add(this.curve.n), isYOdd); - else - r = this.curve.pointFromX(r, isYOdd); - - var rInv = signature.r.invm(n); - var s1 = n.sub(e).mul(rInv).umod(n); - var s2 = s.mul(rInv).umod(n); - - // 1.6.1 Compute Q = r^-1 (sR - eG) - // Q = r^-1 (sR + -eG) - return this.g.mulAdd(s1, r, s2); -}; - -EC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) { - signature = new Signature(signature, enc); - if (signature.recoveryParam !== null) - return signature.recoveryParam; - - for (var i = 0; i < 4; i++) { - var Qprime; - try { - Qprime = this.recoverPubKey(e, signature, i); - } catch (e) { - continue; - } - - if (Qprime.eq(Q)) - return i; - } - throw new Error('Unable to find valid recovery factor'); -}; - - -/***/ }), - -/***/ 934747: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var BN = __webpack_require__(439404); -var utils = __webpack_require__(938402); -var assert = utils.assert; - -function KeyPair(ec, options) { - this.ec = ec; - this.priv = null; - this.pub = null; - - // KeyPair(ec, { priv: ..., pub: ... }) - if (options.priv) - this._importPrivate(options.priv, options.privEnc); - if (options.pub) - this._importPublic(options.pub, options.pubEnc); -} -module.exports = KeyPair; - -KeyPair.fromPublic = function fromPublic(ec, pub, enc) { - if (pub instanceof KeyPair) - return pub; - - return new KeyPair(ec, { - pub: pub, - pubEnc: enc, - }); -}; - -KeyPair.fromPrivate = function fromPrivate(ec, priv, enc) { - if (priv instanceof KeyPair) - return priv; - - return new KeyPair(ec, { - priv: priv, - privEnc: enc, - }); -}; - -KeyPair.prototype.validate = function validate() { - var pub = this.getPublic(); - - if (pub.isInfinity()) - return { result: false, reason: 'Invalid public key' }; - if (!pub.validate()) - return { result: false, reason: 'Public key is not a point' }; - if (!pub.mul(this.ec.curve.n).isInfinity()) - return { result: false, reason: 'Public key * N != O' }; - - return { result: true, reason: null }; -}; - -KeyPair.prototype.getPublic = function getPublic(compact, enc) { - // compact is optional argument - if (typeof compact === 'string') { - enc = compact; - compact = null; - } - - if (!this.pub) - this.pub = this.ec.g.mul(this.priv); - - if (!enc) - return this.pub; - - return this.pub.encode(enc, compact); -}; - -KeyPair.prototype.getPrivate = function getPrivate(enc) { - if (enc === 'hex') - return this.priv.toString(16, 2); - else - return this.priv; -}; - -KeyPair.prototype._importPrivate = function _importPrivate(key, enc) { - this.priv = new BN(key, enc || 16); - - // Ensure that the priv won't be bigger than n, otherwise we may fail - // in fixed multiplication method - this.priv = this.priv.umod(this.ec.curve.n); -}; - -KeyPair.prototype._importPublic = function _importPublic(key, enc) { - if (key.x || key.y) { - // Montgomery points only have an `x` coordinate. - // Weierstrass/Edwards points on the other hand have both `x` and - // `y` coordinates. - if (this.ec.curve.type === 'mont') { - assert(key.x, 'Need x coordinate'); - } else if (this.ec.curve.type === 'short' || - this.ec.curve.type === 'edwards') { - assert(key.x && key.y, 'Need both x and y coordinate'); - } - this.pub = this.ec.curve.point(key.x, key.y); - return; - } - this.pub = this.ec.curve.decodePoint(key, enc); -}; - -// ECDH -KeyPair.prototype.derive = function derive(pub) { - if(!pub.validate()) { - assert(pub.validate(), 'public point not validated'); - } - return pub.mul(this.priv).getX(); -}; - -// ECDSA -KeyPair.prototype.sign = function sign(msg, enc, options) { - return this.ec.sign(msg, this, enc, options); -}; - -KeyPair.prototype.verify = function verify(msg, signature, options) { - return this.ec.verify(msg, signature, this, undefined, options); -}; - -KeyPair.prototype.inspect = function inspect() { - return ''; -}; - - -/***/ }), - -/***/ 236390: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var BN = __webpack_require__(439404); - -var utils = __webpack_require__(938402); -var assert = utils.assert; - -function Signature(options, enc) { - if (options instanceof Signature) - return options; - - if (this._importDER(options, enc)) - return; - - assert(options.r && options.s, 'Signature without r or s'); - this.r = new BN(options.r, 16); - this.s = new BN(options.s, 16); - if (options.recoveryParam === undefined) - this.recoveryParam = null; - else - this.recoveryParam = options.recoveryParam; -} -module.exports = Signature; - -function Position() { - this.place = 0; -} - -function getLength(buf, p) { - var initial = buf[p.place++]; - if (!(initial & 0x80)) { - return initial; - } - var octetLen = initial & 0xf; - - // Indefinite length or overflow - if (octetLen === 0 || octetLen > 4) { - return false; - } - - if(buf[p.place] === 0x00) { - return false; - } - - var val = 0; - for (var i = 0, off = p.place; i < octetLen; i++, off++) { - val <<= 8; - val |= buf[off]; - val >>>= 0; - } - - // Leading zeroes - if (val <= 0x7f) { - return false; - } - - p.place = off; - return val; -} - -function rmPadding(buf) { - var i = 0; - var len = buf.length - 1; - while (!buf[i] && !(buf[i + 1] & 0x80) && i < len) { - i++; - } - if (i === 0) { - return buf; - } - return buf.slice(i); -} - -Signature.prototype._importDER = function _importDER(data, enc) { - data = utils.toArray(data, enc); - var p = new Position(); - if (data[p.place++] !== 0x30) { - return false; - } - var len = getLength(data, p); - if (len === false) { - return false; - } - if ((len + p.place) !== data.length) { - return false; - } - if (data[p.place++] !== 0x02) { - return false; - } - var rlen = getLength(data, p); - if (rlen === false) { - return false; - } - if ((data[p.place] & 128) !== 0) { - return false; - } - var r = data.slice(p.place, rlen + p.place); - p.place += rlen; - if (data[p.place++] !== 0x02) { - return false; - } - var slen = getLength(data, p); - if (slen === false) { - return false; - } - if (data.length !== slen + p.place) { - return false; - } - if ((data[p.place] & 128) !== 0) { - return false; - } - var s = data.slice(p.place, slen + p.place); - if (r[0] === 0) { - if (r[1] & 0x80) { - r = r.slice(1); - } else { - // Leading zeroes - return false; - } - } - if (s[0] === 0) { - if (s[1] & 0x80) { - s = s.slice(1); - } else { - // Leading zeroes - return false; - } - } - - this.r = new BN(r); - this.s = new BN(s); - this.recoveryParam = null; - - return true; -}; - -function constructLength(arr, len) { - if (len < 0x80) { - arr.push(len); - return; - } - var octets = 1 + (Math.log(len) / Math.LN2 >>> 3); - arr.push(octets | 0x80); - while (--octets) { - arr.push((len >>> (octets << 3)) & 0xff); - } - arr.push(len); -} - -Signature.prototype.toDER = function toDER(enc) { - var r = this.r.toArray(); - var s = this.s.toArray(); - - // Pad values - if (r[0] & 0x80) - r = [ 0 ].concat(r); - // Pad values - if (s[0] & 0x80) - s = [ 0 ].concat(s); - - r = rmPadding(r); - s = rmPadding(s); - - while (!s[0] && !(s[1] & 0x80)) { - s = s.slice(1); - } - var arr = [ 0x02 ]; - constructLength(arr, r.length); - arr = arr.concat(r); - arr.push(0x02); - constructLength(arr, s.length); - var backHalf = arr.concat(s); - var res = [ 0x30 ]; - constructLength(res, backHalf.length); - res = res.concat(backHalf); - return utils.encode(res, enc); -}; - - -/***/ }), - -/***/ 636983: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var hash = __webpack_require__(277952); -var curves = __webpack_require__(727483); -var utils = __webpack_require__(938402); -var assert = utils.assert; -var parseBytes = utils.parseBytes; -var KeyPair = __webpack_require__(596032); -var Signature = __webpack_require__(777681); - -function EDDSA(curve) { - assert(curve === 'ed25519', 'only tested with ed25519 so far'); - - if (!(this instanceof EDDSA)) - return new EDDSA(curve); - - curve = curves[curve].curve; - this.curve = curve; - this.g = curve.g; - this.g.precompute(curve.n.bitLength() + 1); - - this.pointClass = curve.point().constructor; - this.encodingLength = Math.ceil(curve.n.bitLength() / 8); - this.hash = hash.sha512; -} - -module.exports = EDDSA; - -/** -* @param {Array|String} message - message bytes -* @param {Array|String|KeyPair} secret - secret bytes or a keypair -* @returns {Signature} - signature -*/ -EDDSA.prototype.sign = function sign(message, secret) { - message = parseBytes(message); - var key = this.keyFromSecret(secret); - var r = this.hashInt(key.messagePrefix(), message); - var R = this.g.mul(r); - var Rencoded = this.encodePoint(R); - var s_ = this.hashInt(Rencoded, key.pubBytes(), message) - .mul(key.priv()); - var S = r.add(s_).umod(this.curve.n); - return this.makeSignature({ R: R, S: S, Rencoded: Rencoded }); -}; - -/** -* @param {Array} message - message bytes -* @param {Array|String|Signature} sig - sig bytes -* @param {Array|String|Point|KeyPair} pub - public key -* @returns {Boolean} - true if public key matches sig of message -*/ -EDDSA.prototype.verify = function verify(message, sig, pub) { - message = parseBytes(message); - sig = this.makeSignature(sig); - if (sig.S().gte(sig.eddsa.curve.n) || sig.S().isNeg()) { - return false; - } - var key = this.keyFromPublic(pub); - var h = this.hashInt(sig.Rencoded(), key.pubBytes(), message); - var SG = this.g.mul(sig.S()); - var RplusAh = sig.R().add(key.pub().mul(h)); - return RplusAh.eq(SG); -}; - -EDDSA.prototype.hashInt = function hashInt() { - var hash = this.hash(); - for (var i = 0; i < arguments.length; i++) - hash.update(arguments[i]); - return utils.intFromLE(hash.digest()).umod(this.curve.n); -}; - -EDDSA.prototype.keyFromPublic = function keyFromPublic(pub) { - return KeyPair.fromPublic(this, pub); -}; - -EDDSA.prototype.keyFromSecret = function keyFromSecret(secret) { - return KeyPair.fromSecret(this, secret); -}; - -EDDSA.prototype.makeSignature = function makeSignature(sig) { - if (sig instanceof Signature) - return sig; - return new Signature(this, sig); -}; - -/** -* * https://tools.ietf.org/html/draft-josefsson-eddsa-ed25519-03#section-5.2 -* -* EDDSA defines methods for encoding and decoding points and integers. These are -* helper convenience methods, that pass along to utility functions implied -* parameters. -* -*/ -EDDSA.prototype.encodePoint = function encodePoint(point) { - var enc = point.getY().toArray('le', this.encodingLength); - enc[this.encodingLength - 1] |= point.getX().isOdd() ? 0x80 : 0; - return enc; -}; - -EDDSA.prototype.decodePoint = function decodePoint(bytes) { - bytes = utils.parseBytes(bytes); - - var lastIx = bytes.length - 1; - var normed = bytes.slice(0, lastIx).concat(bytes[lastIx] & ~0x80); - var xIsOdd = (bytes[lastIx] & 0x80) !== 0; - - var y = utils.intFromLE(normed); - return this.curve.pointFromY(y, xIsOdd); -}; - -EDDSA.prototype.encodeInt = function encodeInt(num) { - return num.toArray('le', this.encodingLength); -}; - -EDDSA.prototype.decodeInt = function decodeInt(bytes) { - return utils.intFromLE(bytes); -}; - -EDDSA.prototype.isPoint = function isPoint(val) { - return val instanceof this.pointClass; -}; - - -/***/ }), - -/***/ 596032: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(938402); -var assert = utils.assert; -var parseBytes = utils.parseBytes; -var cachedProperty = utils.cachedProperty; - -/** -* @param {EDDSA} eddsa - instance -* @param {Object} params - public/private key parameters -* -* @param {Array} [params.secret] - secret seed bytes -* @param {Point} [params.pub] - public key point (aka `A` in eddsa terms) -* @param {Array} [params.pub] - public key point encoded as bytes -* -*/ -function KeyPair(eddsa, params) { - this.eddsa = eddsa; - this._secret = parseBytes(params.secret); - if (eddsa.isPoint(params.pub)) - this._pub = params.pub; - else - this._pubBytes = parseBytes(params.pub); -} - -KeyPair.fromPublic = function fromPublic(eddsa, pub) { - if (pub instanceof KeyPair) - return pub; - return new KeyPair(eddsa, { pub: pub }); -}; - -KeyPair.fromSecret = function fromSecret(eddsa, secret) { - if (secret instanceof KeyPair) - return secret; - return new KeyPair(eddsa, { secret: secret }); -}; - -KeyPair.prototype.secret = function secret() { - return this._secret; -}; - -cachedProperty(KeyPair, 'pubBytes', function pubBytes() { - return this.eddsa.encodePoint(this.pub()); -}); - -cachedProperty(KeyPair, 'pub', function pub() { - if (this._pubBytes) - return this.eddsa.decodePoint(this._pubBytes); - return this.eddsa.g.mul(this.priv()); -}); - -cachedProperty(KeyPair, 'privBytes', function privBytes() { - var eddsa = this.eddsa; - var hash = this.hash(); - var lastIx = eddsa.encodingLength - 1; - - var a = hash.slice(0, eddsa.encodingLength); - a[0] &= 248; - a[lastIx] &= 127; - a[lastIx] |= 64; - - return a; -}); - -cachedProperty(KeyPair, 'priv', function priv() { - return this.eddsa.decodeInt(this.privBytes()); -}); - -cachedProperty(KeyPair, 'hash', function hash() { - return this.eddsa.hash().update(this.secret()).digest(); -}); - -cachedProperty(KeyPair, 'messagePrefix', function messagePrefix() { - return this.hash().slice(this.eddsa.encodingLength); -}); - -KeyPair.prototype.sign = function sign(message) { - assert(this._secret, 'KeyPair can only verify'); - return this.eddsa.sign(message, this); -}; - -KeyPair.prototype.verify = function verify(message, sig) { - return this.eddsa.verify(message, sig, this); -}; - -KeyPair.prototype.getSecret = function getSecret(enc) { - assert(this._secret, 'KeyPair is public only'); - return utils.encode(this.secret(), enc); -}; - -KeyPair.prototype.getPublic = function getPublic(enc) { - return utils.encode(this.pubBytes(), enc); -}; - -module.exports = KeyPair; - - -/***/ }), - -/***/ 777681: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var BN = __webpack_require__(439404); -var utils = __webpack_require__(938402); -var assert = utils.assert; -var cachedProperty = utils.cachedProperty; -var parseBytes = utils.parseBytes; - -/** -* @param {EDDSA} eddsa - eddsa instance -* @param {Array|Object} sig - -* @param {Array|Point} [sig.R] - R point as Point or bytes -* @param {Array|bn} [sig.S] - S scalar as bn or bytes -* @param {Array} [sig.Rencoded] - R point encoded -* @param {Array} [sig.Sencoded] - S scalar encoded -*/ -function Signature(eddsa, sig) { - this.eddsa = eddsa; - - if (typeof sig !== 'object') - sig = parseBytes(sig); - - if (Array.isArray(sig)) { - assert(sig.length === eddsa.encodingLength * 2, 'Signature has invalid size'); - sig = { - R: sig.slice(0, eddsa.encodingLength), - S: sig.slice(eddsa.encodingLength), - }; - } - - assert(sig.R && sig.S, 'Signature without R or S'); - - if (eddsa.isPoint(sig.R)) - this._R = sig.R; - if (sig.S instanceof BN) - this._S = sig.S; - - this._Rencoded = Array.isArray(sig.R) ? sig.R : sig.Rencoded; - this._Sencoded = Array.isArray(sig.S) ? sig.S : sig.Sencoded; -} - -cachedProperty(Signature, 'S', function S() { - return this.eddsa.decodeInt(this.Sencoded()); -}); - -cachedProperty(Signature, 'R', function R() { - return this.eddsa.decodePoint(this.Rencoded()); -}); - -cachedProperty(Signature, 'Rencoded', function Rencoded() { - return this.eddsa.encodePoint(this.R()); -}); - -cachedProperty(Signature, 'Sencoded', function Sencoded() { - return this.eddsa.encodeInt(this.S()); -}); - -Signature.prototype.toBytes = function toBytes() { - return this.Rencoded().concat(this.Sencoded()); -}; - -Signature.prototype.toHex = function toHex() { - return utils.encode(this.toBytes(), 'hex').toUpperCase(); -}; - -module.exports = Signature; - - -/***/ }), - -/***/ 604674: -/***/ ((module) => { - -module.exports = { - doubles: { - step: 4, - points: [ - [ - 'e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a', - 'f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821', - ], - [ - '8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508', - '11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf', - ], - [ - '175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739', - 'd3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695', - ], - [ - '363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640', - '4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9', - ], - [ - '8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c', - '4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36', - ], - [ - '723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda', - '96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f', - ], - [ - 'eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa', - '5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999', - ], - [ - '100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0', - 'cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09', - ], - [ - 'e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d', - '9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d', - ], - [ - 'feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d', - 'e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088', - ], - [ - 'da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1', - '9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d', - ], - [ - '53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0', - '5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8', - ], - [ - '8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047', - '10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a', - ], - [ - '385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862', - '283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453', - ], - [ - '6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7', - '7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160', - ], - [ - '3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd', - '56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0', - ], - [ - '85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83', - '7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6', - ], - [ - '948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a', - '53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589', - ], - [ - '6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8', - 'bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17', - ], - [ - 'e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d', - '4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda', - ], - [ - 'e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725', - '7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd', - ], - [ - '213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754', - '4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2', - ], - [ - '4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c', - '17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6', - ], - [ - 'fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6', - '6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f', - ], - [ - '76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39', - 'c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01', - ], - [ - 'c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891', - '893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3', - ], - [ - 'd895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b', - 'febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f', - ], - [ - 'b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03', - '2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7', - ], - [ - 'e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d', - 'eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78', - ], - [ - 'a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070', - '7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1', - ], - [ - '90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4', - 'e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150', - ], - [ - '8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da', - '662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82', - ], - [ - 'e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11', - '1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc', - ], - [ - '8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e', - 'efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b', - ], - [ - 'e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41', - '2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51', - ], - [ - 'b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef', - '67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45', - ], - [ - 'd68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8', - 'db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120', - ], - [ - '324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d', - '648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84', - ], - [ - '4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96', - '35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d', - ], - [ - '9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd', - 'ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d', - ], - [ - '6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5', - '9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8', - ], - [ - 'a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266', - '40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8', - ], - [ - '7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71', - '34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac', - ], - [ - '928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac', - 'c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f', - ], - [ - '85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751', - '1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962', - ], - [ - 'ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e', - '493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907', - ], - [ - '827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241', - 'c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec', - ], - [ - 'eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3', - 'be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d', - ], - [ - 'e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f', - '4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414', - ], - [ - '1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19', - 'aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd', - ], - [ - '146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be', - 'b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0', - ], - [ - 'fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9', - '6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811', - ], - [ - 'da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2', - '8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1', - ], - [ - 'a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13', - '7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c', - ], - [ - '174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c', - 'ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73', - ], - [ - '959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba', - '2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd', - ], - [ - 'd2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151', - 'e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405', - ], - [ - '64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073', - 'd99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589', - ], - [ - '8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458', - '38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e', - ], - [ - '13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b', - '69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27', - ], - [ - 'bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366', - 'd3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1', - ], - [ - '8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa', - '40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482', - ], - [ - '8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0', - '620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945', - ], - [ - 'dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787', - '7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573', - ], - [ - 'f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e', - 'ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82', - ], - ], - }, - naf: { - wnd: 7, - points: [ - [ - 'f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9', - '388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672', - ], - [ - '2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4', - 'd8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6', - ], - [ - '5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc', - '6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da', - ], - [ - 'acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe', - 'cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37', - ], - [ - '774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb', - 'd984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b', - ], - [ - 'f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8', - 'ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81', - ], - [ - 'd7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e', - '581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58', - ], - [ - 'defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34', - '4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77', - ], - [ - '2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c', - '85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a', - ], - [ - '352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5', - '321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c', - ], - [ - '2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f', - '2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67', - ], - [ - '9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714', - '73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402', - ], - [ - 'daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729', - 'a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55', - ], - [ - 'c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db', - '2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482', - ], - [ - '6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4', - 'e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82', - ], - [ - '1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5', - 'b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396', - ], - [ - '605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479', - '2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49', - ], - [ - '62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d', - '80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf', - ], - [ - '80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f', - '1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a', - ], - [ - '7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb', - 'd0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7', - ], - [ - 'd528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9', - 'eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933', - ], - [ - '49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963', - '758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a', - ], - [ - '77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74', - '958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6', - ], - [ - 'f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530', - 'e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37', - ], - [ - '463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b', - '5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e', - ], - [ - 'f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247', - 'cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6', - ], - [ - 'caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1', - 'cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476', - ], - [ - '2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120', - '4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40', - ], - [ - '7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435', - '91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61', - ], - [ - '754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18', - '673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683', - ], - [ - 'e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8', - '59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5', - ], - [ - '186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb', - '3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b', - ], - [ - 'df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f', - '55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417', - ], - [ - '5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143', - 'efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868', - ], - [ - '290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba', - 'e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a', - ], - [ - 'af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45', - 'f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6', - ], - [ - '766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a', - '744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996', - ], - [ - '59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e', - 'c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e', - ], - [ - 'f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8', - 'e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d', - ], - [ - '7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c', - '30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2', - ], - [ - '948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519', - 'e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e', - ], - [ - '7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab', - '100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437', - ], - [ - '3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca', - 'ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311', - ], - [ - 'd3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf', - '8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4', - ], - [ - '1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610', - '68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575', - ], - [ - '733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4', - 'f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d', - ], - [ - '15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c', - 'd56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d', - ], - [ - 'a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940', - 'edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629', - ], - [ - 'e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980', - 'a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06', - ], - [ - '311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3', - '66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374', - ], - [ - '34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf', - '9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee', - ], - [ - 'f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63', - '4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1', - ], - [ - 'd7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448', - 'fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b', - ], - [ - '32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf', - '5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661', - ], - [ - '7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5', - '8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6', - ], - [ - 'ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6', - '8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e', - ], - [ - '16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5', - '5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d', - ], - [ - 'eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99', - 'f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc', - ], - [ - '78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51', - 'f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4', - ], - [ - '494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5', - '42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c', - ], - [ - 'a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5', - '204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b', - ], - [ - 'c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997', - '4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913', - ], - [ - '841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881', - '73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154', - ], - [ - '5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5', - '39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865', - ], - [ - '36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66', - 'd2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc', - ], - [ - '336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726', - 'ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224', - ], - [ - '8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede', - '6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e', - ], - [ - '1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94', - '60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6', - ], - [ - '85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31', - '3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511', - ], - [ - '29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51', - 'b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b', - ], - [ - 'a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252', - 'ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2', - ], - [ - '4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5', - 'cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c', - ], - [ - 'd24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b', - '6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3', - ], - [ - 'ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4', - '322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d', - ], - [ - 'af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f', - '6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700', - ], - [ - 'e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889', - '2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4', - ], - [ - '591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246', - 'b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196', - ], - [ - '11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984', - '998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4', - ], - [ - '3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a', - 'b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257', - ], - [ - 'cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030', - 'bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13', - ], - [ - 'c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197', - '6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096', - ], - [ - 'c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593', - 'c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38', - ], - [ - 'a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef', - '21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f', - ], - [ - '347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38', - '60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448', - ], - [ - 'da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a', - '49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a', - ], - [ - 'c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111', - '5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4', - ], - [ - '4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502', - '7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437', - ], - [ - '3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea', - 'be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7', - ], - [ - 'cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26', - '8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d', - ], - [ - 'b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986', - '39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a', - ], - [ - 'd4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e', - '62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54', - ], - [ - '48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4', - '25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77', - ], - [ - 'dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda', - 'ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517', - ], - [ - '6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859', - 'cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10', - ], - [ - 'e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f', - 'f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125', - ], - [ - 'eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c', - '6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e', - ], - [ - '13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942', - 'fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1', - ], - [ - 'ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a', - '1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2', - ], - [ - 'b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80', - '5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423', - ], - [ - 'ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d', - '438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8', - ], - [ - '8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1', - 'cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758', - ], - [ - '52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63', - 'c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375', - ], - [ - 'e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352', - '6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d', - ], - [ - '7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193', - 'ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec', - ], - [ - '5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00', - '9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0', - ], - [ - '32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58', - 'ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c', - ], - [ - 'e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7', - 'd3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4', - ], - [ - '8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8', - 'c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f', - ], - [ - '4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e', - '67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649', - ], - [ - '3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d', - 'cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826', - ], - [ - '674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b', - '299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5', - ], - [ - 'd32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f', - 'f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87', - ], - [ - '30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6', - '462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b', - ], - [ - 'be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297', - '62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc', - ], - [ - '93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a', - '7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c', - ], - [ - 'b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c', - 'ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f', - ], - [ - 'd5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52', - '4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a', - ], - [ - 'd3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb', - 'bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46', - ], - [ - '463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065', - 'bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f', - ], - [ - '7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917', - '603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03', - ], - [ - '74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9', - 'cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08', - ], - [ - '30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3', - '553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8', - ], - [ - '9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57', - '712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373', - ], - [ - '176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66', - 'ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3', - ], - [ - '75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8', - '9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8', - ], - [ - '809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721', - '9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1', - ], - [ - '1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180', - '4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9', - ], - ], - }, -}; - - -/***/ }), - -/***/ 938402: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -var utils = exports; -var BN = __webpack_require__(439404); -var minAssert = __webpack_require__(443349); -var minUtils = __webpack_require__(764367); - -utils.assert = minAssert; -utils.toArray = minUtils.toArray; -utils.zero2 = minUtils.zero2; -utils.toHex = minUtils.toHex; -utils.encode = minUtils.encode; - -// Represent num in a w-NAF form -function getNAF(num, w, bits) { - var naf = new Array(Math.max(num.bitLength(), bits) + 1); - var i; - for (i = 0; i < naf.length; i += 1) { - naf[i] = 0; - } - - var ws = 1 << (w + 1); - var k = num.clone(); - - for (i = 0; i < naf.length; i++) { - var z; - var mod = k.andln(ws - 1); - if (k.isOdd()) { - if (mod > (ws >> 1) - 1) - z = (ws >> 1) - mod; - else - z = mod; - k.isubn(z); - } else { - z = 0; - } - - naf[i] = z; - k.iushrn(1); - } - - return naf; -} -utils.getNAF = getNAF; - -// Represent k1, k2 in a Joint Sparse Form -function getJSF(k1, k2) { - var jsf = [ - [], - [], - ]; - - k1 = k1.clone(); - k2 = k2.clone(); - var d1 = 0; - var d2 = 0; - var m8; - while (k1.cmpn(-d1) > 0 || k2.cmpn(-d2) > 0) { - // First phase - var m14 = (k1.andln(3) + d1) & 3; - var m24 = (k2.andln(3) + d2) & 3; - if (m14 === 3) - m14 = -1; - if (m24 === 3) - m24 = -1; - var u1; - if ((m14 & 1) === 0) { - u1 = 0; - } else { - m8 = (k1.andln(7) + d1) & 7; - if ((m8 === 3 || m8 === 5) && m24 === 2) - u1 = -m14; - else - u1 = m14; - } - jsf[0].push(u1); - - var u2; - if ((m24 & 1) === 0) { - u2 = 0; - } else { - m8 = (k2.andln(7) + d2) & 7; - if ((m8 === 3 || m8 === 5) && m14 === 2) - u2 = -m24; - else - u2 = m24; - } - jsf[1].push(u2); - - // Second phase - if (2 * d1 === u1 + 1) - d1 = 1 - d1; - if (2 * d2 === u2 + 1) - d2 = 1 - d2; - k1.iushrn(1); - k2.iushrn(1); - } - - return jsf; -} -utils.getJSF = getJSF; - -function cachedProperty(obj, name, computer) { - var key = '_' + name; - obj.prototype[name] = function cachedProperty() { - return this[key] !== undefined ? this[key] : - this[key] = computer.call(this); - }; -} -utils.cachedProperty = cachedProperty; - -function parseBytes(bytes) { - return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') : - bytes; -} -utils.parseBytes = parseBytes; - -function intFromLE(bytes) { - return new BN(bytes, 'hex', 'le'); -} -utils.intFromLE = intFromLE; - - - /***/ }), /***/ 838196: @@ -22929,14 +18905,6 @@ SonicBoom.default = SonicBoom module.exports = SonicBoom -/***/ }), - -/***/ 417559: -/***/ ((module) => { - -"use strict"; -module.exports = {"rE":"6.6.0"}; - /***/ }), /***/ 553550: diff --git a/pr-preview/pr-945/assets/js/98351.a95bd4d2.js b/pr-preview/pr-945/assets/js/98351.d91f64bc.js similarity index 67% rename from pr-preview/pr-945/assets/js/98351.a95bd4d2.js rename to pr-preview/pr-945/assets/js/98351.d91f64bc.js index 6ed7509ea29..50e019dde62 100644 --- a/pr-preview/pr-945/assets/js/98351.a95bd4d2.js +++ b/pr-preview/pr-945/assets/js/98351.d91f64bc.js @@ -1,4 +1,4 @@ -/*! For license information please see 98351.a95bd4d2.js.LICENSE.txt */ +/*! For license information please see 98351.d91f64bc.js.LICENSE.txt */ (self.webpackChunkpush_website=self.webpackChunkpush_website||[]).push([[98351],{566289:(e,t)=>{"use strict";function r(e){if(Array.isArray(e)){const t=[];let n=0;for(let i=0;ie.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,r)}function i(e){if(0===e[0])throw new Error("invalid RLP: extra zeros");return l(u(e))}function o(e,t){if(e<56)return Uint8Array.from([e+t]);const r=p(e),n=p(t+55+r.length/2);return Uint8Array.from(d(n+r))}function a(e,t=!1){if(null==e||0===e.length)return Uint8Array.from([]);const r=s(m(e));if(t)return r;if(0!==r.remainder.length)throw new Error("invalid RLP: remainder must be zero");return r.data}function s(e){let t,r,o,a,c;const u=[],l=e[0];if(l<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(l<=183){if(t=l-127,o=128===l?Uint8Array.from([]):n(e,1,t),2===t&&o[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:o,remainder:e.slice(t)}}if(l<=191){if(r=l-182,e.length-1e.length)throw new Error("invalid RLP: total length is larger than the data");for(a=n(e,r,o);a.length;)c=s(a),u.push(c.data),a=c.remainder;return{data:u,remainder:e.slice(o)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.RLP=t.utils=t.decode=t.encode=void 0,t.encode=r,t.decode=a;const c=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function u(e){let t="";for(let r=0;re+t.length),0),r=new Uint8Array(t);for(let n=0,i=0;n=2&&"0"===e[0]&&"x"===e[1]}function m(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return g(e)?d((t="string"!=typeof(r=e)?r:g(r)?r.slice(2):r).length%2?`0${t}`:t):h(e);var t,r;if("number"==typeof e||"bigint"==typeof e)return e?d(p(e)):Uint8Array.from([]);if(null==e)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof e)}t.utils={bytesToHex:u,concatBytes:f,hexToBytes:d,utf8ToBytes:h},t.RLP={encode:r,decode:a}},616284:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.accountBodyToRLP=t.accountBodyToSlim=t.accountBodyFromSlim=t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;const n=r(566289),i=r(32019),o=r(626513),a=r(382672),s=r(277312),c=r(689838),u=r(335546),l=r(959498),d=BigInt(0);class f{constructor(e=d,t=d,r=c.KECCAK256_RLP,n=c.KECCAK256_NULL){this.nonce=e,this.balance=t,this.storageRoot=r,this.codeHash=n,this._validate()}static fromAccountData(e){const{nonce:t,balance:r,storageRoot:n,codeHash:i}=e;return new f(void 0!==t?(0,s.bufferToBigInt)((0,s.toBuffer)(t)):void 0,void 0!==r?(0,s.bufferToBigInt)((0,s.toBuffer)(r)):void 0,void 0!==n?(0,s.toBuffer)(n):void 0,void 0!==i?(0,s.toBuffer)(i):void 0)}static fromRlpSerializedAccount(e){const t=(0,s.arrToBufArr)(n.RLP.decode(Uint8Array.from(e)));if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)}static fromValuesArray(e){const[t,r,n,i]=e;return new f((0,s.bufferToBigInt)(t),(0,s.bufferToBigInt)(r),n,i)}_validate(){if(this.nonce=8?d+=r[i].toUpperCase():d+=r[i];return d};t.isValidChecksumAddress=function(e,r){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,r)===e};t.generateAddress=function(e,t){return(0,u.assertIsBuffer)(e),(0,u.assertIsBuffer)(t),(0,s.bufferToBigInt)(t)===BigInt(0)?Buffer.from((0,i.keccak256)(n.RLP.encode((0,s.bufArrToArr)([e,null])))).slice(-20):Buffer.from((0,i.keccak256)(n.RLP.encode((0,s.bufArrToArr)([e,t])))).slice(-20)};t.generateAddress2=function(e,t,r){if((0,u.assertIsBuffer)(e),(0,u.assertIsBuffer)(t),(0,u.assertIsBuffer)(r),20!==e.length)throw new Error("Expected from to be of length 20");if(32!==t.length)throw new Error("Expected salt to be of length 32");const n=(0,i.keccak256)(Buffer.concat([Buffer.from("ff","hex"),e,t,(0,i.keccak256)(r)]));return(0,s.toBuffer)(n).slice(-20)};t.isValidPrivate=function(e){return o.secp256k1.utils.isValidPrivateKey(e)};t.isValidPublic=function(e,t=!1){if((0,u.assertIsBuffer)(e),64===e.length)try{return o.secp256k1.ProjectivePoint.fromHex(Buffer.concat([Buffer.from([4]),e])),!0}catch(r){return!1}if(!t)return!1;try{return o.secp256k1.ProjectivePoint.fromHex(e),!0}catch(r){return!1}};t.pubToAddress=function(e,t=!1){if((0,u.assertIsBuffer)(e),t&&64!==e.length&&(e=Buffer.from(o.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1))),64!==e.length)throw new Error("Expected pubKey to be of length 64");return Buffer.from((0,i.keccak256)(e)).slice(-20)},t.publicToAddress=t.pubToAddress;t.privateToPublic=function(e){return(0,u.assertIsBuffer)(e),Buffer.from(o.secp256k1.ProjectivePoint.fromPrivateKey(e).toRawBytes(!1).slice(1))};t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))};t.importPublic=function(e){return(0,u.assertIsBuffer)(e),64!==e.length&&(e=Buffer.from(o.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1))),e};t.zeroAddress=function(){const e=(0,s.zeros)(20);return(0,s.bufferToHex)(e)};function h(e){const[t,r,n,i]=e;return[t,r,0===(0,s.arrToBufArr)(n).length?c.KECCAK256_RLP:n,0===(0,s.arrToBufArr)(i).length?c.KECCAK256_NULL:i]}t.isZeroAddress=function(e){try{(0,u.assertIsString)(e)}catch(r){return!1}return(0,t.zeroAddress)()===e},t.accountBodyFromSlim=h;const p=new Uint8Array(0);t.accountBodyToSlim=function(e){const[t,r,n,i]=e;return[t,r,(0,s.arrToBufArr)(n).equals(c.KECCAK256_RLP)?p:n,(0,s.arrToBufArr)(i).equals(c.KECCAK256_NULL)?p:i]},t.accountBodyToRLP=function(e,t=!0){const r=t?h(e):e;return(0,s.arrToBufArr)(n.RLP.encode(r))}},286727:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Address=void 0;const n=r(616284),i=r(277312);class o{constructor(e){if(20!==e.length)throw new Error("Invalid address length");this.buf=e}static zero(){return new o((0,i.zeros)(20))}static fromString(e){if(!(0,n.isValidAddress)(e))throw new Error("Invalid address");return new o((0,i.toBuffer)(e))}static fromPublicKey(e){if(!Buffer.isBuffer(e))throw new Error("Public key should be Buffer");const t=(0,n.pubToAddress)(e);return new o(t)}static fromPrivateKey(e){if(!Buffer.isBuffer(e))throw new Error("Private key should be Buffer");const t=(0,n.privateToAddress)(e);return new o(t)}static generate(e,t){if("bigint"!=typeof t)throw new Error("Expected nonce to be a bigint");return new o((0,n.generateAddress)(e.buf,(0,i.bigIntToBuffer)(t)))}static generate2(e,t,r){if(!Buffer.isBuffer(t))throw new Error("Expected salt to be a Buffer");if(!Buffer.isBuffer(r))throw new Error("Expected initCode to be a Buffer");return new o((0,n.generateAddress2)(e.buf,t,r))}equals(e){return this.buf.equals(e.buf)}isZero(){return this.equals(o.zero())}isPrecompileOrSystemAddress(){const e=(0,i.bufferToBigInt)(this.buf),t=BigInt(0),r=BigInt("0xffff");return e>=t&&e<=r}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return Buffer.from(this.buf)}}t.Address=o},798421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncEventEmitter=void 0;const n=r(137007);class i extends n.EventEmitter{emit(e,...t){let[r,n]=t;const i=this;let o=i._events[e]??[];return void 0===n&&"function"==typeof r&&(n=r,r=void 0),"newListener"!==e&&"removeListener"!==e||(r={event:r,fn:n},n=void 0),o=Array.isArray(o)?o:[o],async function(e,t,r){let n;for await(const o of t)try{o.length<2?o.call(e,r):await new Promise(((t,n)=>{o.call(e,r,(e=>{e?n(e):t()}))}))}catch(i){n=i}if(n)throw n}(i,o.slice(),r).then(n).catch(n),i.listenerCount(e)>0}once(e,t){const r=this;let n;if("function"!=typeof t)throw new TypeError("listener must be a function");return n=t.length>=2?function(i,o){r.removeListener(e,n),t(i,o)}:function(i){r.removeListener(e,n),t(i,n)},r.on(e,n),r}first(e,t){let r=this._events[e]??[];if("function"!=typeof t)throw new TypeError("listener must be a function");return Array.isArray(r)||(this._events[e]=r=[r]),r.unshift(t),this}before(e,t,r){return this.beforeOrAfter(e,t,r)}after(e,t,r){return this.beforeOrAfter(e,t,r,"after")}beforeOrAfter(e,t,r,n){let i,o,a=this._events[e]??[];const s="after"===n?1:0;if("function"!=typeof r)throw new TypeError("listener must be a function");if("function"!=typeof t)throw new TypeError("target must be a function");for(Array.isArray(a)||(this._events[e]=a=[a]),o=a.length,i=a.length;i--;)if(a[i]===t){o=i+s;break}return a.splice(o,0,r),this}on(e,t){return super.on(e,t)}addListener(e,t){return super.addListener(e,t)}prependListener(e,t){return super.prependListener(e,t)}prependOnceListener(e,t){return super.prependOnceListener(e,t)}removeAllListeners(e){return super.removeAllListeners(e)}removeListener(e,t){return super.removeListener(e,t)}eventNames(){return super.eventNames()}listeners(e){return super.listeners(e)}listenerCount(e){return super.listenerCount(e)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(e){return super.setMaxListeners(e)}}t.AsyncEventEmitter=i},277312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.intToUnpaddedBuffer=t.bigIntToUnpaddedBuffer=t.bigIntToHex=t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.short=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToInt=t.bigIntToBuffer=t.bufferToBigInt=t.bufferToHex=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;const n=r(335546),i=r(959498);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Received an invalid integer type: ${e}`);return`0x${e.toString(16)}`};t.intToBuffer=function(e){const r=(0,t.intToHex)(e);return Buffer.from((0,i.padToEven)(r.slice(2)),"hex")};t.zeros=function(e){return Buffer.allocUnsafe(e).fill(0)};const o=function(e,r,n){const i=(0,t.zeros)(r);return n?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,n.assertIsBuffer)(e),a(e)};t.unpadArray=function(e){return(0,n.assertIsArray)(e),a(e)};t.unpadHexString=function(e){return(0,n.assertIsHexString)(e),e=(0,i.stripHexPrefix)(e),"0x"+a(e)};t.toBuffer=function(e){if(null==e)return Buffer.allocUnsafe(0);if(Buffer.isBuffer(e))return Buffer.from(e);if(Array.isArray(e)||e instanceof Uint8Array)return Buffer.from(e);if("string"==typeof e){if(!(0,i.isHexString)(e))throw new Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${e}`);return Buffer.from((0,i.padToEven)((0,i.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,t.intToBuffer)(e);if("bigint"==typeof e){if(e0&&0===r[0])throw new Error(`${t} cannot have leading zeroes, received: ${r.toString("hex")}`)},t.arrToBufArr=function e(t){return Array.isArray(t)?t.map((t=>e(t))):Buffer.from(t)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((t=>e(t))):Uint8Array.from(t??[])};t.bigIntToHex=e=>"0x"+e.toString(16),t.bigIntToUnpaddedBuffer=function(e){return(0,t.unpadBuffer)(c(e))},t.intToUnpaddedBuffer=function(e){return(0,t.unpadBuffer)((0,t.intToBuffer)(e))}},689838:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_WITHDRAWALS_PER_PAYLOAD=t.RLP_EMPTY_STRING=t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.SECP256K1_ORDER_DIV_2=t.SECP256K1_ORDER=t.MAX_INTEGER_BIGINT=t.MAX_INTEGER=t.MAX_UINT64=void 0;const n=r(348287),i=r(626513);t.MAX_UINT64=BigInt("0xffffffffffffffff"),t.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),t.SECP256K1_ORDER=i.secp256k1.CURVE.n,t.SECP256K1_ORDER_DIV_2=i.secp256k1.CURVE.n/BigInt(2),t.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.Buffer.from(t.KECCAK256_RLP_S,"hex"),t.RLP_EMPTY_STRING=n.Buffer.from([128]),t.MAX_WITHDRAWALS_PER_PAYLOAD=16},845062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactBytesToNibbles=t.bytesToNibbles=t.nibblesToCompactBytes=t.nibblesToBytes=t.hasTerminator=void 0;t.hasTerminator=e=>e.length>0&&16===e[e.length-1];t.nibblesToBytes=(e,t)=>{for(let r=0,n=0;n{let r=0;(0,t.hasTerminator)(e)&&(r=1,e=e.subarray(0,e.length-1));const n=new Uint8Array(e.length/2+1);return n[0]=r<<5,1&~e.length||(n[0]|=16,n[0]|=e[0],e=e.subarray(1)),(0,t.nibblesToBytes)(e,n.subarray(1)),n};t.bytesToNibbles=e=>{const t=2*e.length+1,r=new Uint8Array(t);for(let n=0;n{if(0===e.length)return e;let r=(0,t.bytesToNibbles)(e);r[0]<2&&(r=r.subarray(0,r.length-1));const n=2-(1&r[0]);return r.subarray(n)}},335546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;const n=r(959498);t.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){throw new Error(`This method only supports 0x-prefixed hex strings but input was: ${e}`)}};t.assertIsBuffer=function(e){if(!Buffer.isBuffer(e)){throw new Error(`This method only supports Buffer but input was: ${e}`)}};t.assertIsArray=function(e){if(!Array.isArray(e)){throw new Error(`This method only supports number arrays but input was: ${e}`)}};t.assertIsString=function(e){if("string"!=typeof e){throw new Error(`This method only supports strings but input was: ${e}`)}}},968683:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.toAscii=t.stripHexPrefix=t.padToEven=t.isHexString=t.isHexPrefixed=t.getKeys=t.getBinarySize=t.fromUtf8=t.fromAscii=t.arrayContainsArray=void 0,i(r(689838),t),i(r(252652),t),i(r(616284),t),i(r(286727),t),i(r(137380),t),i(r(392133),t),i(r(277312),t),i(r(142666),t),i(r(845062),t),i(r(798421),t);var o=r(959498);Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return o.arrayContainsArray}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return o.fromAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return o.fromUtf8}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return o.getBinarySize}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return o.getKeys}}),Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return o.isHexPrefixed}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return o.isHexString}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return o.padToEven}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return o.stripHexPrefix}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return o.toAscii}}),i(r(631708),t),i(r(681862),t)},959498:(e,t)=>{"use strict";function r(e){if("string"!=typeof e)throw new Error("[isHexPrefixed] input must be type 'string', received type "+typeof e);return"0"===e[0]&&"x"===e[1]}Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,t.isHexPrefixed=r;function n(e){let t=e;if("string"!=typeof t)throw new Error("[padToEven] value must be type 'string', received "+typeof t);return t.length%2&&(t=`0${t}`),t}t.stripHexPrefix=e=>{if("string"!=typeof e)throw new Error("[stripHexPrefix] input must be type 'string', received "+typeof e);return r(e)?e.slice(2):e},t.padToEven=n,t.getBinarySize=function(e){if("string"!=typeof e)throw new Error("[getBinarySize] method requires input type 'string', received "+typeof e);return Buffer.byteLength(e,"utf8")},t.arrayContainsArray=function(e,t,r){if(!0!==Array.isArray(e))throw new Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof e}'`);if(!0!==Array.isArray(t))throw new Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof t}'`);return t[!0===r?"some":"every"]((t=>e.indexOf(t)>=0))},t.toAscii=function(e){let t="",r=0;const n=e.length;for("0x"===e.substring(0,2)&&(r=2);r0&&e.length!==2+2*t)}},631708:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lock=void 0;t.Lock=class{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise((e=>this.promiseResolverQueue.push(e)))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(1===this.permits&&this.promiseResolverQueue.length>0){this.permits-=1;const e=this.promiseResolverQueue.shift();e&&e(!0)}}}},681862:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProvider=t.fetchFromProvider=void 0;const n=r(206215);t.fetchFromProvider=async(e,t)=>(await(0,n.default)(e,{headers:{"content-type":"application/json"},type:"json",data:{method:t.method,params:t.params,jsonrpc:"2.0",id:1}})).result;t.getProvider=e=>{if("string"==typeof e)return e;if(void 0!==e?.connection?.url)return e.connection.url;throw new Error("Must provide valid provider URL or Web3Provider")}},392133:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toCompactSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;const n=r(32019),i=r(626513),o=r(277312),a=r(689838),s=r(335546);function c(e,t){return e===BigInt(0)||e===BigInt(1)?e:void 0===t?e-BigInt(27):e-(t*BigInt(2)+BigInt(35))}function u(e){return e===BigInt(0)||e===BigInt(1)}t.ecsign=function(e,t,r){const n=i.secp256k1.sign(e,t),o=n.toCompactRawBytes();return{r:Buffer.from(o.slice(0,32)),s:Buffer.from(o.slice(32,64)),v:void 0===r?BigInt(n.recovery+27):BigInt(n.recovery+35)+BigInt(r)*BigInt(2)}};t.ecrecover=function(e,t,r,n,a){const s=Buffer.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(n,32)],64),l=c(t,a);if(!u(l))throw new Error("Invalid signature v value");const d=i.secp256k1.Signature.fromCompact(s).addRecoveryBit(Number(l)).recoverPublicKey(e);return Buffer.from(d.toRawBytes(!1).slice(1))};t.toRpcSig=function(e,t,r,n){if(!u(c(e,n)))throw new Error("Invalid signature v value");return(0,o.bufferToHex)(Buffer.concat([(0,o.setLengthLeft)(t,32),(0,o.setLengthLeft)(r,32),(0,o.toBuffer)(e)]))};t.toCompactSig=function(e,t,r,n){if(!u(c(e,n)))throw new Error("Invalid signature v value");let i=r;return(e>BigInt(28)&&e%BigInt(2)===BigInt(1)||e===BigInt(1)||e===BigInt(28))&&(i=Buffer.from(r),i[0]|=128),(0,o.bufferToHex)(Buffer.concat([(0,o.setLengthLeft)(t,32),(0,o.setLengthLeft)(i,32)]))};t.fromRpcSig=function(e){const t=(0,o.toBuffer)(e);let r,n,i;if(t.length>=65)r=t.slice(0,32),n=t.slice(32,64),i=(0,o.bufferToBigInt)(t.slice(64));else{if(64!==t.length)throw new Error("Invalid signature length");r=t.slice(0,32),n=t.slice(32,64),i=BigInt((0,o.bufferToInt)(t.slice(32,33))>>7),n[0]&=127}return i<27&&(i+=BigInt(27)),{v:i,r:r,s:n}};t.isValidSignature=function(e,t,r,n=!0,i){if(32!==t.length||32!==r.length)return!1;if(!u(c(e,i)))return!1;const s=(0,o.bufferToBigInt)(t),l=(0,o.bufferToBigInt)(r);return!(s===BigInt(0)||s>=a.SECP256K1_ORDER||l===BigInt(0)||l>=a.SECP256K1_ORDER)&&!(n&&l>=a.SECP256K1_ORDER_DIV_2)};t.hashPersonalMessage=function(e){(0,s.assertIsBuffer)(e);const t=Buffer.from(`\x19Ethereum Signed Message:\n${e.length}`,"utf-8");return Buffer.from((0,n.keccak256)(Buffer.concat([t,e])))}},142666:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=void 0;const n=r(277312),i=r(959498);var o;!function(e){e[e.Number=0]="Number",e[e.BigInt=1]="BigInt",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(o=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0===e)return;if("string"==typeof e&&!(0,i.isHexString)(e))throw new Error(`A string must be provided with a 0x-prefix, given: ${e}`);if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const r=(0,n.toBuffer)(e);switch(t){case o.Buffer:return r;case o.BigInt:return(0,n.bufferToBigInt)(r);case o.Number:{const e=(0,n.bufferToBigInt)(r);if(e>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(e)}case o.PrefixedHexString:return(0,n.bufferToHex)(r);default:throw new Error("unknown outputType")}}},252652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GWEI_TO_WEI=void 0,t.GWEI_TO_WEI=BigInt(1e9)},137380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Withdrawal=void 0;const n=r(286727),i=r(277312),o=r(142666);class a{constructor(e,t,r,n){this.index=e,this.validatorIndex=t,this.address=r,this.amount=n}static fromWithdrawalData(e){const{index:t,validatorIndex:r,address:i,amount:s}=e,c=(0,o.toType)(t,o.TypeOutput.BigInt),u=(0,o.toType)(r,o.TypeOutput.BigInt),l=new n.Address((0,o.toType)(i,o.TypeOutput.Buffer)),d=(0,o.toType)(s,o.TypeOutput.BigInt);return new a(c,u,l,d)}static fromValuesArray(e){if(4!==e.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${e.length}`);const[t,r,n,i]=e;return a.fromWithdrawalData({index:t,validatorIndex:r,address:n,amount:i})}static toBufferArray(e){const{index:t,validatorIndex:r,address:i,amount:a}=e,s=(0,o.toType)(t,o.TypeOutput.BigInt)===BigInt(0)?Buffer.alloc(0):(0,o.toType)(t,o.TypeOutput.Buffer),c=(0,o.toType)(r,o.TypeOutput.BigInt)===BigInt(0)?Buffer.alloc(0):(0,o.toType)(r,o.TypeOutput.Buffer);let u;u=i instanceof n.Address?i.buf:(0,o.toType)(i,o.TypeOutput.Buffer);return[s,c,u,(0,o.toType)(a,o.TypeOutput.BigInt)===BigInt(0)?Buffer.alloc(0):(0,o.toType)(a,o.TypeOutput.Buffer)]}raw(){return a.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,i.bigIntToHex)(this.index),validatorIndex:(0,i.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,i.bigIntToHex)(this.amount)}}}t.Withdrawal=a},363280:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});const n="abi/5.7.0"},257127:(e,t,r)=>{"use strict";r.d(t,{y:()=>M,D:()=>P});var n=r(308471),i=r(639121),o=r(878366),a=r(363280),s=r(355242),c=r(208402);class u extends s.Ue{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=(0,c.bv)(t)}catch(r){this._throwError(r.message,t)}return e.writeValue(t)}decode(e){return(0,c.bv)((0,n.bj)(e.readValue().toHexString(),20))}}class l extends s.Ue{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const d=new o.Vy(a.r);function f(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map((t=>{const n=t.localName;return n||d.throwError("cannot encode object for signature with missing names",o.Vy.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]&&d.throwError("cannot encode object for signature with duplicate names",o.Vy.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]=!0,r[n]}))}else d.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&d.throwArgumentError("types/value length mismatch","tuple",r);let i=new s.AU(e.wordSize),a=new s.AU(e.wordSize),c=[];t.forEach(((e,t)=>{let r=n[t];if(e.dynamic){let t=a.length;e.encode(a,r);let n=i.writeUpdatableValue();c.push((e=>{n(e+t)}))}else e.encode(i,r)})),c.forEach((e=>{e(i.length)}));let u=e.appendWriter(i);return u+=e.appendWriter(a),u}function h(e,t){let r=[],n=e.subReader(0);t.forEach((t=>{let i=null;if(t.dynamic){let r=e.readValue(),s=n.subReader(r.toNumber());try{i=t.decode(s)}catch(a){if(a.code===o.Vy.errors.BUFFER_OVERRUN)throw a;i=a,i.baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(a){if(a.code===o.Vy.errors.BUFFER_OVERRUN)throw a;i=a,i.baseType=t.name,i.name=t.localName,i.type=t.type}null!=i&&r.push(i)}));const i=t.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});t.forEach(((e,t)=>{let n=e.localName;if(!n||1!==i[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const o=r[t];o instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw o}}):r[n]=o}));for(let o=0;o{throw e}})}return Object.freeze(r)}class p extends s.Ue{constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let r=0;re._data.length&&d.throwError("insufficient data length",o.Vy.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let r=[];for(let n=0;n{e.dynamic&&(r=!0),n.push(e.type)}));super("tuple","tuple("+n.join(",")+")",t,r),this.coders=e}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});return this.coders.forEach(((r,n)=>{let i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))})),Object.freeze(e)}encode(e,t){return f(e,this.coders,t)}decode(e){return e.coerce(this.name,h(e,this.coders))}}var I=r(427814);const k=new o.Vy(a.r),_=new RegExp(/^bytes([0-9]*)$/),T=new RegExp(/^(u?int)([0-9]*)$/);class M{constructor(e){(0,i.yY)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new u(e.name);case"bool":return new g(e.name);case"string":return new x(e.name);case"bytes":return new y(e.name);case"array":return new p(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new S((e.components||[]).map((e=>this._getCoder(e))),e.name);case"":return new v(e.name)}let t=e.type.match(T);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!=0)&&k.throwArgumentError("invalid "+t[1]+" bit length","param",e),new C(r/8,"int"===t[1],e.name)}if(t=e.type.match(_),t){let r=parseInt(t[1]);return(0===r||r>32)&&k.throwArgumentError("invalid bytes length","param",e),new b(r,e.name)}return k.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new s.mP(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new s.AU(this._getWordSize())}getDefaultValue(e){const t=e.map((e=>this._getCoder(I.aX.from(e))));return new S(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&k.throwError("types/values length mismatch",o.Vy.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const r=e.map((e=>this._getCoder(I.aX.from(e)))),n=new S(r,"_"),i=this._getWriter();return n.encode(i,t),i.data}decode(e,t,r){const i=e.map((e=>this._getCoder(I.aX.from(e))));return new S(i,"_").decode(this._getReader((0,n.k9)(t),r))}}const P=new M},355242:(e,t,r)=>{"use strict";r.d(t,{$v:()=>u,AU:()=>d,Ue:()=>l,mP:()=>f});var n=r(308471),i=r(937457),o=r(639121),a=r(878366),s=r(363280);const c=new a.Vy(s.r);function u(e){const t=[],r=function(e,n){if(Array.isArray(n))for(let o in n){const a=e.slice();a.push(o);try{r(a,n[o])}catch(i){t.push({path:a,error:i})}}};return r([],e),t}class l{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){c.throwArgumentError(e,this.localName,t)}}class d{constructor(e){(0,o.yY)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,n.qn)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData((0,n.xW)(e._data))}writeBytes(e){let t=(0,n.k9)(e);const r=t.length%this.wordSize;return r&&(t=(0,n.xW)([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=(0,n.k9)(i.gH.from(e));return t.length>this.wordSize&&c.throwError("value out-of-bounds",a.Vy.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,n.xW)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class f{constructor(e,t,r,i){(0,o.yY)(this,"_data",(0,n.k9)(e)),(0,o.yY)(this,"wordSize",t||32),(0,o.yY)(this,"_coerceFunc",r),(0,o.yY)(this,"allowLoose",i),this._offset=0}get data(){return(0,n.c$)(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):f.coerce(e,t)}_peekBytes(e,t,r){let n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:c.throwError("data out-of-bounds",a.Vy.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new f(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return i.gH.from(this.readBytes(this.wordSize))}}},427814:(e,t,r)=>{"use strict";r.d(t,{$o:()=>h,FK:()=>y,Pw:()=>C,Zp:()=>b,aX:()=>g,bp:()=>S,hc:()=>E});var n=r(937457),i=r(639121),o=r(878366),a=r(363280);const s=new o.Vy(a.r),c={};let u={calldata:!0,memory:!0,storage:!0},l={calldata:!0,memory:!0};function d(e,t){if("bytes"===e||"string"===e){if(u[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&l[t])return!0;return(u[t]||"payable"===t)&&s.throwArgumentError("invalid modifier","name",t),!1}function f(e,t){for(let r in t)(0,i.yY)(e,r,t[r])}const h=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),p=new RegExp(/^(.*)\[([0-9]*)\]$/);class g{constructor(e,t){e!==c&&s.throwError("use fromString",o.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),f(this,t);let r=this.type.match(p);f(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:g.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=h.sighash),h[e]||s.throwArgumentError("invalid format type","format",e),e===h.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==h.sighash&&(t+=this.type),t+="("+this.components.map((t=>t.format(e))).join(e===h.full?", ":",")+")"):t+=this.type,e!==h.sighash&&(!0===this.indexed&&(t+=" indexed"),e===h.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?g.fromString(e,t):g.fromObject(e)}static fromObject(e){return g.isParamType(e)?e:new g(c,{name:e.name||null,type:I(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(g.fromObject):null})}static fromString(e,t){return r=function(e,t){let r=e;function n(t){s.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function i(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},a=o;for(let s=0;sg.fromString(e,t)))}class y{constructor(e,t){e!==c&&s.throwError("use a static from method",o.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),f(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return y.isFragment(e)?e:"string"==typeof e?y.fromString(e):y.fromObject(e)}static fromObject(e){if(y.isFragment(e))return e;switch(e.type){case"function":return E.fromObject(e);case"event":return b.fromObject(e);case"constructor":return C.fromObject(e);case"error":return S.fromObject(e);case"fallback":case"receive":return null}return s.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?b.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?E.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?C.fromString(e.trim()):"error"===e.split(" ")[0]?S.fromString(e.substring(5).trim()):s.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class b extends y{format(e){if(e||(e=h.sighash),h[e]||s.throwArgumentError("invalid format type","format",e),e===h.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==h.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===h.full?", ":",")+") ",e!==h.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?b.fromString(e):b.fromObject(e)}static fromObject(e){if(b.isEventFragment(e))return e;"event"!==e.type&&s.throwArgumentError("invalid event object","value",e);const t={name:_(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(g.fromObject):[],type:"event"};return new b(c,t)}static fromString(e){let t=e.match(T);t||s.throwArgumentError("invalid event string","value",e);let r=!1;return t[3].split(" ").forEach((e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:s.warn("unknown modifier: "+e)}})),b.fromObject({name:t[1].trim(),anonymous:r,inputs:m(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function v(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&s.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||s.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=n.gH.from(r[1]),r[0]):e}function w(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function A(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&s.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&s.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||s.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&s.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&s.throwArgumentError("unable to determine stateMutability","value",e),t}class C extends y{format(e){if(e||(e=h.sighash),h[e]||s.throwArgumentError("invalid format type","format",e),e===h.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});e===h.sighash&&s.throwError("cannot format a constructor for sighash",o.Vy.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map((t=>t.format(e))).join(e===h.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?C.fromString(e):C.fromObject(e)}static fromObject(e){if(C.isConstructorFragment(e))return e;"constructor"!==e.type&&s.throwArgumentError("invalid constructor object","value",e);let t=A(e);t.constant&&s.throwArgumentError("constructor cannot be constant","value",e);const r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(g.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?n.gH.from(e.gas):null};return new C(c,r)}static fromString(e){let t={type:"constructor"},r=(e=v(e,t)).match(T);return r&&"constructor"===r[1].trim()||s.throwArgumentError("invalid constructor string","value",e),t.inputs=m(r[2].trim(),!1),w(r[3].trim(),t),C.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class E extends C{format(e){if(e||(e=h.sighash),h[e]||s.throwArgumentError("invalid format type","format",e),e===h.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==h.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===h.full?", ":",")+") ",e!==h.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((t=>t.format(e))).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?E.fromString(e):E.fromObject(e)}static fromObject(e){if(E.isFunctionFragment(e))return e;"function"!==e.type&&s.throwArgumentError("invalid function object","value",e);let t=A(e);const r={type:e.type,name:_(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(g.fromObject):[],outputs:e.outputs?e.outputs.map(g.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?n.gH.from(e.gas):null};return new E(c,r)}static fromString(e){let t={type:"function"},r=(e=v(e,t)).split(" returns ");r.length>2&&s.throwArgumentError("invalid function string","value",e);let n=r[0].match(T);if(n||s.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&_(t.name),t.inputs=m(n[2],!1),w(n[3].trim(),t),r.length>1){let n=r[1].match(T);""==n[1].trim()&&""==n[3].trim()||s.throwArgumentError("unexpected tokens","value",e),t.outputs=m(n[2],!1)}else t.outputs=[];return E.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function x(e){const t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||s.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class S extends y{format(e){if(e||(e=h.sighash),h[e]||s.throwArgumentError("invalid format type","format",e),e===h.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==h.sighash&&(t+="error "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===h.full?", ":",")+") ",t.trim()}static from(e){return"string"==typeof e?S.fromString(e):S.fromObject(e)}static fromObject(e){if(S.isErrorFragment(e))return e;"error"!==e.type&&s.throwArgumentError("invalid error object","value",e);const t={type:e.type,name:_(e.name),inputs:e.inputs?e.inputs.map(g.fromObject):[]};return x(new S(c,t))}static fromString(e){let t={type:"error"},r=e.match(T);return r||s.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&_(t.name),t.inputs=m(r[2],!1),x(S.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function I(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const k=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function _(e){return e&&e.match(k)||s.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const T=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},442935:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AbiCoder:()=>i.y,ConstructorFragment:()=>n.Pw,ErrorFragment:()=>n.bp,EventFragment:()=>n.Zp,FormatTypes:()=>n.$o,Fragment:()=>n.FK,FunctionFragment:()=>n.hc,Indexed:()=>o.wu,Interface:()=>o.KA,LogDescription:()=>o.FW,ParamType:()=>n.aX,TransactionDescription:()=>o.dJ,checkResultErrors:()=>a.$v,defaultAbiCoder:()=>i.D});var n=r(427814),i=r(257127),o=r(33020),a=r(355242)},33020:(e,t,r)=>{"use strict";r.d(t,{FW:()=>p,KA:()=>w,dJ:()=>g,wu:()=>y});var n=r(208402),i=r(937457),o=r(308471),a=r(108392),s=r(350234),c=r(639121),u=r(257127),l=r(427814),d=r(878366),f=r(363280);const h=new d.Vy(f.r);class p extends c.VY{}class g extends c.VY{}class m extends c.VY{}class y extends c.VY{static isIndexed(e){return!(!e||!e._isIndexed)}}const b={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function v(e,t){const r=new Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class w{constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,(0,c.yY)(this,"fragments",t.map((e=>l.FK.from(e))).filter((e=>null!=e))),(0,c.yY)(this,"_abiCoder",(0,c.$J)(new.target,"getAbiCoder")()),(0,c.yY)(this,"functions",{}),(0,c.yY)(this,"errors",{}),(0,c.yY)(this,"events",{}),(0,c.yY)(this,"structs",{}),this.fragments.forEach((e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void h.warn("duplicate definition - constructor"):void(0,c.yY)(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();t[r]?h.warn("duplicate definition - "+r):t[r]=e})),this.deploy||(0,c.yY)(this,"deploy",l.Pw.from({payable:!1,type:"constructor"})),(0,c.yY)(this,"_isInterface",!0)}format(e){e||(e=l.$o.full),e===l.$o.sighash&&h.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map((t=>t.format(e)));return e===l.$o.json?JSON.stringify(t.map((e=>JSON.parse(e)))):t}static getAbiCoder(){return u.D}static getAddress(e){return(0,n.bv)(e)}static getSighash(e){return(0,o.Ab)((0,a.id)(e.format()),0,4)}static getEventTopic(e){return(0,a.id)(e.format())}getFunction(e){if((0,o.Lo)(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];h.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.functions).filter((e=>e.split("(")[0]===t));return 0===r.length?h.throwArgumentError("no matching function","name",t):r.length>1&&h.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}const t=this.functions[l.hc.fromString(e).format()];return t||h.throwArgumentError("no matching function","signature",e),t}getEvent(e){if((0,o.Lo)(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];h.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.events).filter((e=>e.split("(")[0]===t));return 0===r.length?h.throwArgumentError("no matching event","name",t):r.length>1&&h.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}const t=this.events[l.Zp.fromString(e).format()];return t||h.throwArgumentError("no matching event","signature",e),t}getError(e){if((0,o.Lo)(e)){const t=(0,c.$J)(this.constructor,"getSighash");for(const r in this.errors){if(e===t(this.errors[r]))return this.errors[r]}h.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.errors).filter((e=>e.split("(")[0]===t));return 0===r.length?h.throwArgumentError("no matching error","name",t):r.length>1&&h.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}const t=this.errors[l.hc.fromString(e).format()];return t||h.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(r){throw t}}return(0,c.$J)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,c.$J)(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"==typeof e&&(e=this.getError(e));const r=(0,o.k9)(t);return(0,o.c$)(r.slice(0,4))!==this.getSighash(e)&&h.throwArgumentError(`data signature does not match error ${e.name}.`,"data",(0,o.c$)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),(0,o.c$)((0,o.xW)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));const r=(0,o.k9)(t);return(0,o.c$)(r.slice(0,4))!==this.getSighash(e)&&h.throwArgumentError(`data signature does not match function ${e.name}.`,"data",(0,o.c$)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,o.c$)((0,o.xW)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,o.k9)(t),n=null,i="",a=null,s=null,c=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(u){}break;case 4:{const e=(0,o.c$)(r.slice(0,4)),t=b[e];if(t)a=this._abiCoder.decode(t.inputs,r.slice(4)),s=t.name,c=t.signature,t.reason&&(n=a[0]),"Error"===s?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(a[0])}`:"Panic"===s&&(i=`; VM Exception while processing transaction: reverted with panic code ${a[0]}`);else try{const t=this.getError(e);a=this._abiCoder.decode(t.inputs,r.slice(4)),s=t.name,c=t.format()}catch(u){}break}}return h.throwError("call revert exception"+i,d.Vy.errors.CALL_EXCEPTION,{method:e.format(),data:(0,o.c$)(t),errorArgs:a,errorName:s,errorSignature:c,reason:n})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,o.c$)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&h.throwError("too many arguments for "+e.format(),d.Vy.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));const n=(e,t)=>"string"===e.type?(0,a.id)(t):"bytes"===e.type?(0,s.S)((0,o.c$)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=i.gH.from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),(0,o.bj)((0,o.c$)(t),32));for(t.forEach(((t,i)=>{let o=e.inputs[i];o.indexed?null==t?r.push(null):"array"===o.baseType||"tuple"===o.baseType?h.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?r.push(t.map((e=>n(o,e)))):r.push(n(o,t)):null!=t&&h.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));const r=[],n=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&h.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(((e,o)=>{const c=t[o];if(e.indexed)if("string"===e.type)r.push((0,a.id)(c));else if("bytes"===e.type)r.push((0,s.S)(c));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(this._abiCoder.encode([e.type],[c]))}else n.push(e),i.push(c)})),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);(0,o.Lo)(r[0],32)&&r[0].toLowerCase()===t||h.throwError("fragment/topic mismatch",d.Vy.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:r[0]}),r=r.slice(1)}let n=[],i=[],a=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(l.aX.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(n.push(e),a.push(!1)):(i.push(e),a.push(!1))}));let s=null!=r?this._abiCoder.decode(n,(0,o.xW)(r)):null,c=this._abiCoder.decode(i,t,!0),u=[],f=0,p=0;e.inputs.forEach(((e,t)=>{if(e.indexed)if(null==s)u[t]=new y({_isIndexed:!0,hash:null});else if(a[t])u[t]=new y({_isIndexed:!0,hash:s[p++]});else try{u[t]=s[p++]}catch(r){u[t]=r}else try{u[t]=c[f++]}catch(r){u[t]=r}if(e.name&&null==u[e.name]){const r=u[t];r instanceof Error?Object.defineProperty(u,e.name,{enumerable:!0,get:()=>{throw v(`property ${JSON.stringify(e.name)}`,r)}}):u[e.name]=r}}));for(let o=0;o{throw v(`index ${o}`,e)}})}return Object.freeze(u)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new g({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:i.gH.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new p({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){const t=(0,o.c$)(e);let r=this.getError(t.substring(0,10).toLowerCase());return r?new m({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!(!e||!e._isInterface)}}},485610:(e,t,r)=>{"use strict";r.d(t,{Rj:()=>c,Kq:()=>u});var n=r(937457),i=(r(308471),r(639121)),o=r(878366);var a=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const s=new o.Vy("abstract-provider/5.7.0");class c extends i.VY{static isForkEvent(e){return!(!e||!e._isForkEvent)}}class u{constructor(){s.checkAbstract(new.target,u),(0,i.yY)(this,"_isProvider",!0)}getFeeData(){return a(this,void 0,void 0,(function*(){const{block:e,gasPrice:t}=yield(0,i.k_)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((e=>null))});let r=null,o=null,a=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,a=n.gH.from("1500000000"),o=e.baseFeePerGas.mul(2).add(a)),{lastBaseFeePerGas:r,maxFeePerGas:o,maxPriorityFeePerGas:a,gasPrice:t}}))}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!(!e||!e._isProvider)}}},279099:(e,t,r)=>{"use strict";r.d(t,{l:()=>u,J:()=>l});var n=r(639121),i=r(878366);var o=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const a=new i.Vy("abstract-signer/5.7.0"),s=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],c=[i.Vy.errors.INSUFFICIENT_FUNDS,i.Vy.errors.NONCE_EXPIRED,i.Vy.errors.REPLACEMENT_UNDERPRICED];class u{constructor(){a.checkAbstract(new.target,u),(0,n.yY)(this,"_isSigner",!0)}getBalance(e){return o(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)}))}getTransactionCount(e){return o(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)}))}estimateGas(e){return o(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const t=yield(0,n.k_)(this.checkTransaction(e));return yield this.provider.estimateGas(t)}))}call(e,t){return o(this,void 0,void 0,(function*(){this._checkProvider("call");const r=yield(0,n.k_)(this.checkTransaction(e));return yield this.provider.call(r,t)}))}sendTransaction(e){return o(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)}))}getChainId(){return o(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return o(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return o(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(e){return o(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)}))}checkTransaction(e){for(const r in e)-1===s.indexOf(r)&&a.throwArgumentError("invalid transaction key: "+r,"transaction",e);const t=(0,n.Ic)(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then((t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&a.throwArgumentError("from address mismatch","transaction",e),t[0]))),t}populateTransaction(e){return o(this,void 0,void 0,(function*(){const t=yield(0,n.k_)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then((e=>o(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.resolveName(e);return null==t&&a.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})))),t.to.catch((e=>{})));const r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null==t.gasPrice||2!==t.type&&!r?0!==t.type&&1!==t.type||!r||a.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):a.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==t.type&&null!=t.type||null==t.maxFeePerGas||null==t.maxPriorityFeePerGas)if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{const e=yield this.getFeeData();if(null==t.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(t.type=2,null!=t.gasPrice){const e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(r&&a.throwError("network does not support EIP-1559",i.Vy.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):a.throwError("failed to get consistent fee data",i.Vy.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else t.type=2;return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch((e=>{if(c.indexOf(e.code)>=0)throw e;return a.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",i.Vy.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})}))),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then((t=>(0!==t[1]&&t[0]!==t[1]&&a.throwArgumentError("chainId address mismatch","transaction",e),t[0]))),yield(0,n.k_)(t)}))}_checkProvider(e){this.provider||a.throwError("missing provider",i.Vy.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}class l extends u{constructor(e,t){super(),(0,n.yY)(this,"address",e),(0,n.yY)(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then((()=>{a.throwError(e,i.Vy.errors.UNSUPPORTED_OPERATION,{operation:t})}))}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new l(this.address,e)}}},208402:(e,t,r)=>{"use strict";r.d(t,{bv:()=>h,RZ:()=>m,Nm:()=>y,OD:()=>g,PW:()=>p});var n=r(308471),i=r(937457),o=r(350234),a=r(127196);const s=new(r(878366).Vy)("address/5.7.0");function c(e){(0,n.Lo)(e,20)||s.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let n=0;n<40;n++)r[n]=t[n].charCodeAt(0);const i=(0,n.k9)((0,o.S)(r));for(let n=0;n<40;n+=2)i[n>>1]>>4>=8&&(t[n]=t[n].toUpperCase()),(15&i[n>>1])>=8&&(t[n+1]=t[n+1].toUpperCase());return"0x"+t.join("")}const u={};for(let b=0;b<10;b++)u[String(b)]=String(b);for(let b=0;b<26;b++)u[String.fromCharCode(65+b)]=String(10+b);const l=Math.floor((d=9007199254740991,Math.log10?Math.log10(d):Math.log(d)/Math.LN10));var d;function f(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>u[e])).join("");for(;t.length>=l;){let e=t.substring(0,l);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function h(e){let t=null;if("string"!=typeof e&&s.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=c(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&s.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==f(e)&&s.throwArgumentError("bad icap checksum","address",e),t=(0,i.Os)(e.substring(4));t.length<40;)t="0"+t;t=c("0x"+t)}else s.throwArgumentError("invalid address","address",e);return t}function p(e){try{return h(e),!0}catch(t){}return!1}function g(e){let t=(0,i.ii)(h(e).substring(2)).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+f("XE00"+t)+t}function m(e){let t=null;try{t=h(e.from)}catch(c){s.throwArgumentError("missing from address","transaction",e)}const r=(0,n.gr)((0,n.k9)(i.gH.from(e.nonce).toHexString()));return h((0,n.Ab)((0,o.S)((0,a.encode)([t,r])),12))}function y(e,t,r){return 32!==(0,n.cm)(t)&&s.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,n.cm)(r)&&s.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),h((0,n.Ab)((0,o.S)((0,n.xW)(["0xff",h(e),t,r])),12))}},990531:(e,t,r)=>{"use strict";r.d(t,{D:()=>i,l:()=>o});var n=r(308471);function i(e){e=atob(e);const t=[];for(let r=0;r{"use strict";r.d(t,{zn:()=>a});var n=r(308471),i=r(639121);class o{constructor(e){(0,i.yY)(this,"alphabet",e),(0,i.yY)(this,"base",e.length),(0,i.yY)(this,"_alphabetMap",{}),(0,i.yY)(this,"_leader",e.charAt(0));for(let t=0;t0;)r.push(e%this.base),e=e/this.base|0}let i="";for(let n=0;0===t[n]&&n=0;--n)i+=this.alphabet[r[n]];return i}decode(e){if("string"!=typeof e)throw new TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r>=8;for(;i>0;)t.push(255&i),i>>=8}for(let r=0;e[r]===this._leader&&r{"use strict";r.d(t,{r:()=>n});const n="bignumber/5.7.0"},937457:(e,t,r)=>{"use strict";r.d(t,{Os:()=>v,YR:()=>f,gH:()=>p,ii:()=>w});var n=r(352046),i=r.n(n),o=r(308471),a=r(878366),s=r(356667),c=i().BN;const u=new a.Vy(s.r),l={},d=9007199254740991;function f(e){return null!=e&&(p.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,o.Lo)(e)||"bigint"==typeof e||(0,o.aY)(e))}let h=!1;class p{constructor(e,t){e!==l&&u.throwError("cannot call constructor directly; use BigNumber.from",a.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return m(y(this).fromTwos(e))}toTwos(e){return m(y(this).toTwos(e))}abs(){return"-"===this._hex[0]?p.from(this._hex.substring(1)):this}add(e){return m(y(this).add(y(e)))}sub(e){return m(y(this).sub(y(e)))}div(e){return p.from(e).isZero()&&b("division-by-zero","div"),m(y(this).div(y(e)))}mul(e){return m(y(this).mul(y(e)))}mod(e){const t=y(e);return t.isNeg()&&b("division-by-zero","mod"),m(y(this).umod(t))}pow(e){const t=y(e);return t.isNeg()&&b("negative-power","pow"),m(y(this).pow(t))}and(e){const t=y(e);return(this.isNegative()||t.isNeg())&&b("unbound-bitwise-result","and"),m(y(this).and(t))}or(e){const t=y(e);return(this.isNegative()||t.isNeg())&&b("unbound-bitwise-result","or"),m(y(this).or(t))}xor(e){const t=y(e);return(this.isNegative()||t.isNeg())&&b("unbound-bitwise-result","xor"),m(y(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&b("negative-width","mask"),m(y(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&b("negative-width","shl"),m(y(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&b("negative-width","shr"),m(y(this).shrn(e))}eq(e){return y(this).eq(y(e))}lt(e){return y(this).lt(y(e))}lte(e){return y(this).lte(y(e))}gt(e){return y(this).gt(y(e))}gte(e){return y(this).gte(y(e))}isNegative(){return"-"===this._hex[0]}isZero(){return y(this).isZero()}toNumber(){try{return y(this).toNumber()}catch(e){b("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return u.throwError("this platform does not support BigInt",a.Vy.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?h||(h=!0,u.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?u.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",a.Vy.errors.UNEXPECTED_ARGUMENT,{}):u.throwError("BigNumber.toString does not accept parameters",a.Vy.errors.UNEXPECTED_ARGUMENT,{})),y(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof p)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new p(l,g(e)):e.match(/^-?[0-9]+$/)?new p(l,g(new c(e))):u.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&b("underflow","BigNumber.from",e),(e>=d||e<=-d)&&b("overflow","BigNumber.from",e),p.from(String(e));const t=e;if("bigint"==typeof t)return p.from(t.toString());if((0,o.aY)(t))return p.from((0,o.c$)(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return p.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&((0,o.Lo)(e)||"-"===e[0]&&(0,o.Lo)(e.substring(1))))return p.from(e)}return u.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function g(e){if("string"!=typeof e)return g(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&u.throwArgumentError("invalid hex","value",e),"0x00"===(e=g(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function m(e){return p.from(g(e))}function y(e){const t=p.from(e).toHexString();return"-"===t[0]?new c("-"+t.substring(3),16):new c(t.substring(2),16)}function b(e,t,r){const n={fault:e,operation:t};return null!=r&&(n.value=r),u.throwError(e,a.Vy.errors.NUMERIC_FAULT,n)}function v(e){return new c(e,36).toString(16)}function w(e){return new c(e,16).toString(36)}},352046:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(391848).Buffer}catch(_){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(_){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?""}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?f[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=h[e],l=p[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modrn(l).toString(e);r=(d=d.idivn(l)).isZero()?g+r:f[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,g=h>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],w=8191&v,A=v>>>13,C=0|a[4],E=8191&C,x=C>>>13,S=0|a[5],I=8191&S,k=S>>>13,_=0|a[6],T=8191&_,M=_>>>13,P=0|a[7],j=8191&P,D=P>>>13,O=0|a[8],B=8191&O,N=O>>>13,R=0|a[9],L=8191&R,F=R>>>13,U=0|s[0],z=8191&U,H=U>>>13,V=0|s[1],K=8191&V,G=V>>>13,q=0|s[2],Q=8191&q,W=q>>>13,J=0|s[3],Y=8191&J,Z=J>>>13,$=0|s[4],X=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,he=0|s[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,z)|0))<<13)|0;u=((o=Math.imul(f,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H);var ye=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,K)|0))<<13)|0;u=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,G)|0;var be=(u+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,Q)|0))<<13)|0;u=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,W)|0;var ve=(u+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Y)|0))<<13)|0;u=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(x,z)|0,o=Math.imul(x,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Z)|0;var we=(u+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var Ae=(u+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;u=((o=o+Math.imul(f,ne)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0;var Ce=(u+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;u=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0;var Ee=(u+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(f,ce)|0))<<13)|0;u=((o=o+Math.imul(f,ue)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(N,z)|0,o=Math.imul(N,H),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(D,K)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,Z)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,ue)|0;var xe=(u+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;u=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,G)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,de)|0,o=o+Math.imul(g,fe)|0;var Se=(u+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ge)|0)+Math.imul(f,pe)|0))<<13)|0;u=((o=o+Math.imul(f,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,n=n+Math.imul(y,de)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Ie=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((o=o+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,W))+Math.imul(F,Q)|0,o=Math.imul(F,W),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,ue)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,ue)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var ke=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,Z))+Math.imul(F,Y)|0,o=Math.imul(F,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,n=n+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,fe)|0;var _e=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ge)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,ge)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,n=n+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Te=(u+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(j,ce)|0,i=(i=i+Math.imul(j,ue)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,ue)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(u+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ge)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,ue)|0,n=n+Math.imul(j,de)|0,i=(i=i+Math.imul(j,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((o=o+Math.imul(M,ge)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,ce),i=(i=Math.imul(L,ue))+Math.imul(F,ce)|0,o=Math.imul(F,ue),n=n+Math.imul(B,de)|0,i=(i=i+Math.imul(B,fe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,fe)|0;var je=(u+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,ge)|0)+Math.imul(D,pe)|0))<<13)|0;u=((o=o+Math.imul(D,ge)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,de),i=(i=Math.imul(L,fe))+Math.imul(F,de)|0,o=Math.imul(F,fe);var De=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(N,pe)|0))<<13)|0;u=((o=o+Math.imul(N,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(u+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,ge))+Math.imul(F,pe)|0))<<13)|0;return u=((o=Math.imul(F,ge))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=Ae,c[6]=Ce,c[7]=Ee,c[8]=xe,c[9]=Se,c[10]=Ie,c[11]=ke,c[12]=_e,c[13]=Te,c[14]=Me,c[15]=Pe,c[16]=je,c[17]=De,c[18]=Oe,0!==u&&(c[19]=u,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function b(e,t,r){return y(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(m=g),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?g(this,e,t):r<1024?y(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;!(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;!(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;!(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;!(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new I(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function A(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},A.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(e,t){e.iushrn(this.n,0,t)},A.prototype.imulK=function(e){return e.imul(this.k)},i(C,A),C.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new C;else if("p224"===e)t=new E;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return w[e]=t,t},I.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){n(!(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},I.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var g=h,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var d=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,I),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},308471:(e,t,r)=>{"use strict";r.d(t,{k9:()=>u,xW:()=>l,qn:()=>b,cm:()=>m,Ab:()=>y,hP:()=>w,Fh:()=>v,bj:()=>A,c$:()=>g,aY:()=>c,f:()=>a,Lo:()=>h,FU:()=>E,Pc:()=>C,gr:()=>d,e8:()=>f});const n=new(r(878366).Vy)("bytes/5.7.0");function i(e){return!!e.toHexString}function o(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function a(e){return h(e)&&!(e.length%2)||c(e)}function s(e){return"number"==typeof e&&e==e&&e%1==0}function c(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!s(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function u(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),o(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e)&&(e=e.toHexString()),h(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",e));const i=[];for(let e=0;eu(e))),r=t.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(r);return t.reduce(((e,t)=>(n.set(t,e),e+t.length)),0),o(n)}function d(e){let t=u(e);if(0===t.length)return t;let r=0;for(;rt&&n.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),o(r)}function h(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}const p="0123456789abcdef";function g(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=p[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e))return e.toHexString();if(h(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":n.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(c(e)){let t="0x";for(let r=0;r>4]+p[15&n]}return t}return n.throwArgumentError("invalid hexlify value","value",e)}function m(e){if("string"!=typeof e)e=g(e);else if(!h(e)||e.length%2)return null;return(e.length-2)/2}function y(e,t,r){return"string"!=typeof e?e=g(e):(!h(e)||e.length%2)&&n.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function b(e){let t="0x";return e.forEach((e=>{t+=g(e).substring(2)})),t}function v(e){const t=w(g(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function w(e){"string"!=typeof e&&(e=g(e)),h(e)||n.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t2*t+2&&n.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function C(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(a(e)){let r=u(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=g(r.slice(0,32)),t.s=g(r.slice(32,64))):65===r.length?(t.r=g(r.slice(0,32)),t.s=g(r.slice(32,64)),t.v=r[64]):n.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:n.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=g(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const r=f(u(t._vs),32);t._vs=g(r);const i=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;const o=g(r);null==t.s?t.s=o:t.s!==o&&n.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?n.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{const r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&n.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&h(t.r)?t.r=A(t.r,32):n.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&h(t.s)?t.s=A(t.s,32):n.throwArgumentError("signature missing or invalid s","signature",e);const r=u(t.s);r[0]>=128&&n.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const i=g(r);t._vs&&(h(t._vs)||n.throwArgumentError("signature invalid _vs","signature",e),t._vs=A(t._vs,32)),null==t._vs?t._vs=i:t._vs!==i&&n.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function E(e){return g(l([(e=C(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},148892:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});const n="0x0000000000000000000000000000000000000000"},243514:(e,t,r)=>{"use strict";r.d(t,{Is:()=>u,LV:()=>l,XK:()=>o,d0:()=>s,eR:()=>i,fw:()=>d,lQ:()=>c,pD:()=>a});var n=r(937457);const i=n.gH.from(-1),o=n.gH.from(0),a=n.gH.from(1),s=n.gH.from(2),c=n.gH.from("1000000000000000000"),u=n.gH.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),l=n.gH.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),d=n.gH.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},818930:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});const n="0x0000000000000000000000000000000000000000000000000000000000000000"},86863:(e,t,r)=>{"use strict";r.d(t,{Uq:()=>k,NZ:()=>_,PM:()=>T});var n=r(355242),i=r(33020),o=r(485610),a=r(279099),s=r(208402),c=r(937457),u=r(308471),l=r(639121),d=r(722677),f=r(878366);var h=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const p=new f.Vy("contracts/5.7.0"),g={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function m(e,t){return h(this,void 0,void 0,(function*(){const r=yield t;"string"!=typeof r&&p.throwArgumentError("invalid address or ENS name","name",r);try{return(0,s.bv)(r)}catch(i){}e||p.throwError("a provider or signer is needed to resolve ENS names",f.Vy.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield e.resolveName(r);return null==n&&p.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n}))}function y(e,t,r){return h(this,void 0,void 0,(function*(){return Array.isArray(r)?yield Promise.all(r.map(((r,n)=>y(e,Array.isArray(t)?t[n]:t[r.name],r)))):"address"===r.type?yield m(e,t):"tuple"===r.type?yield y(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map((t=>y(e,t,r.arrayChildren)))):Promise.reject(p.makeError("invalid value for array",f.Vy.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t}))}function b(e,t,r){return h(this,void 0,void 0,(function*(){let n={};r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=(0,l.Ic)(r.pop())),p.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?n.from?n.from=(0,l.k_)({override:m(e.signer,n.from),signer:e.signer.getAddress()}).then((e=>h(this,void 0,void 0,(function*(){return(0,s.bv)(e.signer)!==e.override&&p.throwError("Contract with a Signer cannot override from",f.Vy.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})))):n.from=e.signer.getAddress():n.from&&(n.from=m(e.provider,n.from));const i=yield(0,l.k_)({args:y(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:(0,l.k_)(n)||{}}),o=e.interface.encodeFunctionData(t,i.args),a={data:o,to:i.address},g=i.overrides;if(null!=g.nonce&&(a.nonce=c.gH.from(g.nonce).toNumber()),null!=g.gasLimit&&(a.gasLimit=c.gH.from(g.gasLimit)),null!=g.gasPrice&&(a.gasPrice=c.gH.from(g.gasPrice)),null!=g.maxFeePerGas&&(a.maxFeePerGas=c.gH.from(g.maxFeePerGas)),null!=g.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=c.gH.from(g.maxPriorityFeePerGas)),null!=g.from&&(a.from=g.from),null!=g.type&&(a.type=g.type),null!=g.accessList&&(a.accessList=(0,d.$2)(g.accessList)),null==a.gasLimit&&null!=t.gas){let e=21e3;const r=(0,u.k9)(o);for(let t=0;tnull!=n[e]));return b.length&&p.throwError(`cannot override ${b.map((e=>JSON.stringify(e))).join(",")}`,f.Vy.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:b}),a}))}function v(e,t){const r=t.wait.bind(t);t.wait=t=>r(t).then((t=>(t.events=t.logs.map((r=>{let n=(0,l.A4)(r),i=null;try{i=e.interface.parseLog(r)}catch(o){}return i&&(n.args=i.args,n.decode=(t,r)=>e.interface.decodeEventLog(i.eventFragment,t,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>e.provider,n.getBlock=()=>e.provider.getBlock(t.blockHash),n.getTransaction=()=>e.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(t),n})),t)))}function w(e,t,r){const n=e.signer||e.provider;return function(...i){return h(this,void 0,void 0,(function*(){let o;if(i.length===t.inputs.length+1&&"object"==typeof i[i.length-1]){const e=(0,l.Ic)(i.pop());null!=e.blockTag&&(o=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(o));const a=yield b(e,t,i),s=yield n.call(a,o);try{let n=e.interface.decodeFunctionResult(t,s);return r&&1===t.outputs.length&&(n=n[0]),n}catch(c){throw c.code===f.Vy.errors.CALL_EXCEPTION&&(c.address=e.address,c.args=i,c.transaction=a),c}}))}}function A(e,t,r){return t.constant?w(e,t,r):function(e,t){return function(...r){return h(this,void 0,void 0,(function*(){e.signer||p.throwError("sending a transaction requires a signer",f.Vy.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());const n=yield b(e,t,r),i=yield e.signer.sendTransaction(n);return v(e,i),i}))}}(e,t)}function C(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map((e=>Array.isArray(e)?e.join("|"):e)).join(":"):""):"*"}class E{constructor(e,t){(0,l.yY)(this,"tag",e),(0,l.yY)(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter((r=>!(!t&&r.listener===e)||(t=!0,!1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((e=>e.listener))}listenerCount(){return this._listeners.length}run(e){const t=this.listenerCount();return this._listeners=this._listeners.filter((t=>{const r=e.slice();return setTimeout((()=>{t.listener.apply(this,r)}),0),!t.once})),t}prepareEvent(e){}getEmit(e){return[e]}}class x extends E{constructor(){super("error",null)}}class S extends E{constructor(e,t,r,n){const i={address:e};let o=t.getEventTopic(r);n?(o!==n[0]&&p.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[o],super(C(i),i),(0,l.yY)(this,"address",e),(0,l.yY)(this,"interface",t),(0,l.yY)(this,"fragment",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){const t=(0,n.$v)(e.args);if(t.length)throw t[0].error;const r=(e.args||[]).slice();return r.push(e),r}}class I extends E{constructor(e,t){super("*",{address:e}),(0,l.yY)(this,"address",e),(0,l.yY)(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{const t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(t){}}}class k{constructor(e,t,r){(0,l.yY)(this,"interface",(0,l.$J)(new.target,"getInterface")(t)),null==r?((0,l.yY)(this,"provider",null),(0,l.yY)(this,"signer",null)):a.l.isSigner(r)?((0,l.yY)(this,"provider",r.provider||null),(0,l.yY)(this,"signer",r)):o.Kq.isProvider(r)?((0,l.yY)(this,"provider",r),(0,l.yY)(this,"signer",null)):p.throwArgumentError("invalid signer or provider","signerOrProvider",r),(0,l.yY)(this,"callStatic",{}),(0,l.yY)(this,"estimateGas",{}),(0,l.yY)(this,"functions",{}),(0,l.yY)(this,"populateTransaction",{}),(0,l.yY)(this,"filters",{});{const e={};Object.keys(this.interface.events).forEach((t=>{const r=this.interface.events[t];(0,l.yY)(this.filters,t,((...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)}))),e[r.name]||(e[r.name]=[]),e[r.name].push(t)})),Object.keys(e).forEach((t=>{const r=e[t];1===r.length?(0,l.yY)(this.filters,t,this.filters[r[0]]):p.warn(`Duplicate definition of ${t} (${r.join(", ")})`)}))}if((0,l.yY)(this,"_runningEvents",{}),(0,l.yY)(this,"_wrappedEmits",{}),null==e&&p.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,l.yY)(this,"address",e),this.provider)(0,l.yY)(this,"resolvedAddress",m(this.provider,e));else try{(0,l.yY)(this,"resolvedAddress",Promise.resolve((0,s.bv)(e)))}catch(c){p.throwError("provider is required to use ENS name as contract address",f.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((e=>{}));const n={},i={};Object.keys(this.interface.functions).forEach((e=>{const t=this.interface.functions[e];if(i[e])p.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);else{i[e]=!0;{const r=t.name;n[`%${r}`]||(n[`%${r}`]=[]),n[`%${r}`].push(e)}null==this[e]&&(0,l.yY)(this,e,A(this,t,!0)),null==this.functions[e]&&(0,l.yY)(this.functions,e,A(this,t,!1)),null==this.callStatic[e]&&(0,l.yY)(this.callStatic,e,w(this,t,!0)),null==this.populateTransaction[e]&&(0,l.yY)(this.populateTransaction,e,function(e,t){return function(...r){return b(e,t,r)}}(this,t)),null==this.estimateGas[e]&&(0,l.yY)(this.estimateGas,e,function(e,t){const r=e.signer||e.provider;return function(...n){return h(this,void 0,void 0,(function*(){r||p.throwError("estimate require a provider or signer",f.Vy.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield b(e,t,n);return yield r.estimateGas(i)}))}}(this,t))}})),Object.keys(n).forEach((e=>{const t=n[e];if(t.length>1)return;e=e.substring(1);const r=t[0];try{null==this[e]&&(0,l.yY)(this,e,this[r])}catch(i){}null==this.functions[e]&&(0,l.yY)(this.functions,e,this.functions[r]),null==this.callStatic[e]&&(0,l.yY)(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&(0,l.yY)(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&(0,l.yY)(this.estimateGas,e,this.estimateGas[r])}))}static getContractAddress(e){return(0,s.RZ)(e)}static getInterface(e){return i.KA.isInterface(e)?e:new i.KA(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,e).then((e=>("0x"===e&&p.throwError("contract not deployed",f.Vy.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(e){this.signer||p.throwError("sending a transactions require a signer",f.Vy.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const t=(0,l.Ic)(e||{});return["from","to"].forEach((function(e){null!=t[e]&&p.throwError("cannot override "+e,f.Vy.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(t)))}connect(e){"string"==typeof e&&(e=new a.J(e,this.provider));const t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,l.yY)(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return i.wu.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new x);if("event"===e)return this._normalizeRunningEvent(new E("event",null));if("*"===e)return this._normalizeRunningEvent(new I(this.address,this.interface));const t=this.interface.getEvent(e);return this._normalizeRunningEvent(new S(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{const t=e.topics[0];if("string"!=typeof t)throw new Error("invalid topic");const r=this.interface.getEvent(t);return this._normalizeRunningEvent(new S(this.address,this.interface,r,e.topics))}catch(t){}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new E(C(r),r))}return this._normalizeRunningEvent(new I(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];const t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){const n=(0,l.A4)(t);return n.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},n.getBlock=()=>this.provider.getBlock(t.blockHash),n.getTransaction=()=>this.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(n),n}_addEventListener(e,t,r){if(this.provider||p.throwError("events require a provider or a signer with a provider",f.Vy.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{const t=e.getEmit(n);this.emit(e.filter,...t)}catch(i){n.decodeError=i.error}null!=e.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){const n=this._getRunningEvent(e),i=(0,l.Ic)(n.filter);return"string"==typeof t&&(0,u.Lo)(t,32)?(null!=r&&p.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then((e=>e.map((e=>this._wrapEvent(n,e,null)))))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;const r=this._getRunningEvent(e),n=r.run(t)>0;return this._checkRunningEvents(r),n}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce(((e,t)=>e+this._runningEvents[t].listenerCount()),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){const e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach((t=>{e.push(t)}));return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(const e in this._runningEvents){const t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}const t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;const r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class _ extends k{}class T{constructor(e,t,r){let n=null;n="string"==typeof t?t:(0,u.aY)(t)?(0,u.c$)(t):t&&"string"==typeof t.object?t.object:"!","0x"!==n.substring(0,2)&&(n="0x"+n),(!(0,u.Lo)(n)||n.length%2)&&p.throwArgumentError("invalid bytecode","bytecode",t),r&&!a.l.isSigner(r)&&p.throwArgumentError("invalid signer","signer",r),(0,l.yY)(this,"bytecode",n),(0,l.yY)(this,"interface",(0,l.$J)(new.target,"getInterface")(e)),(0,l.yY)(this,"signer",r||null)}getDeployTransaction(...e){let t={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1]){t=(0,l.Ic)(e.pop());for(const e in t)if(!g[e])throw new Error("unknown transaction override "+e)}if(["data","from","to"].forEach((e=>{null!=t[e]&&p.throwError("cannot override "+e,f.Vy.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.value){c.gH.from(t.value).isZero()||this.interface.deploy.payable||p.throwError("non-payable constructor cannot override value",f.Vy.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:t.value})}return p.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),t.data=(0,u.c$)((0,u.xW)([this.bytecode,this.interface.encodeDeploy(e)])),t}deploy(...e){return h(this,void 0,void 0,(function*(){let t={};e.length===this.interface.deploy.inputs.length+1&&(t=e.pop()),p.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");const r=yield y(this.signer,e,this.interface.deploy.inputs);r.push(t);const n=this.getDeployTransaction(...r),i=yield this.signer.sendTransaction(n),o=(0,l.$J)(this.constructor,"getContractAddress")(i),a=(0,l.$J)(this.constructor,"getContract")(o,this.interface,this.signer);return v(a,i),(0,l.yY)(a,"deployTransaction",i),a}))}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,t){null==e&&p.throwError("missing compiler output",f.Vy.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));const r=e.abi;let n=null;return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}static getInterface(e){return _.getInterface(e)}static getContractAddress(e){return(0,s.RZ)(e)}static getContract(e,t,r){return new _(e,t,r)}}},785182:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});const n="hash/5.7.0"},108392:(e,t,r)=>{"use strict";r.d(t,{id:()=>o});var n=r(350234),i=r(771414);function o(e){return(0,n.S)((0,i.YW)(e))}},611390:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(308471),i=r(350234),o=r(771414);const a="\x19Ethereum Signed Message:\n";function s(e){return"string"==typeof e&&(e=(0,o.YW)(e)),(0,i.S)((0,n.xW)([(0,o.YW)(a),(0,o.YW)(String(e.length)),e]))}},238023:(e,t,r)=>{"use strict";r.d(t,{Wh:()=>B,uV:()=>D,kM:()=>O});var n=r(308471),i=r(771414),o=r(350234),a=r(878366),s=r(785182);function c(e,t){null==t&&(t=1);const r=[],n=r.forEach,i=function(e,t){n.call(e,(function(e){t>0&&Array.isArray(e)?i(e,t-1):r.push(e)}))};return i(e,t),r}function u(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,o=[0,1];for(let w=1;w>--c&1}const d=Math.pow(2,31),f=d>>>1,h=f>>1,p=d-1;let g=0;for(let w=0;w<31;w++)g=g<<1|l();let m=[],y=0,b=d;for(;;){let e=Math.floor(((g-y+1)*i-1)/b),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e>>1|l(),a=a<<1^f,s=(s^f)<<1|f|1;y=a,b=1+s-a}let v=n-4;return m.map((t=>{switch(t-v){case 3:return v+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return v+256+(e[s++]<<8|e[s++]);case 1:return v+e[s++];default:return t-1}}))}(e))}function l(e){return 1&e?~e>>1:e>>1}function d(e,t){let r=Array(e);for(let n=0,i=-1;nt[e])):r}function p(e,t,r){let n=Array(e).fill(void 0).map((()=>[]));for(let i=0;in[t].push(e)));return n}function g(e,t){let r=1+t(),n=t(),i=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r)}return t}(t);return c(p(i.length,1+e,t).map(((e,t)=>{const o=e[0],a=e.slice(1);return Array(i[t]).fill(void 0).map(((e,t)=>{let i=t*n;return[o+t*r,a.map((e=>e+i))]}))})))}function m(e,t){return p(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}const y=u((0,r(990531).D)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),b=new Set(h(y)),v=new Set(h(y)),w=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(g(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(m(r,e))}return function(e){const t={};for(let r=0;re-t));return function r(){let n=[];for(;;){let i=h(e,t);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort(((e,t)=>t.set.size-e.set.size));let i=e(),o=i%3;i=i/3|0;let a=!!(1&i);return i>>=1,{branches:n,valid:o,fe0f:a,save:1==i,check:2==i}}()}(y),C=45,E=95;function x(e){return(0,i.dg)(e)}function S(e){return e.filter((e=>65039!=e))}function I(e){for(let r of e.split(".")){let e=x(r);try{for(let t=e.lastIndexOf(E)-1;t>=0;t--)if(e[t]!==E)throw new Error("underscore only allowed at start");if(e.length>=4&&e.every((e=>e<128))&&e[2]===C&&e[3]===C)throw new Error("invalid label extension")}catch(t){throw new Error(`Invalid label "${r}": ${t.message}`)}}return e}function k(e){return I(function(e,t){let r=x(e).reverse(),n=[];for(;r.length;){let e=_(r);if(e){n.push(...t(e));continue}let i=r.pop();if(b.has(i)){n.push(i);continue}if(v.has(i))continue;let o=w[i];if(!o)throw new Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`);n.push(...o)}return I((i=String.fromCodePoint(...n),i.normalize("NFC")));var i}(e,S))}function _(e,t){var r;let n,i,o=A,a=[],s=e.length;for(t&&(t.length=0);s;){let c=e[--s];if(o=null===(r=o.branches.find((e=>e.set.has(c))))||void 0===r?void 0:r.node,!o)break;if(o.save)i=c;else if(o.check&&c===i)break;a.push(c),o.fe0f&&(a.push(65039),s>0&&65039==e[s-1]&&s--),o.valid&&(n=a.slice(),2==o.valid&&n.splice(1,1),t&&t.push(...e.slice(s).reverse()),e.length=s)}return n}const T=new a.Vy(s.r),M=new Uint8Array(32);function P(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function j(e){const t=(0,i.YW)(k(e)),r=[];if(0===e.length)return r;let n=0;for(let i=0;i=t.length)throw new Error("invalid ENS name; empty component");return r.push(P(t.slice(n))),r}function D(e){try{return 0!==j(e).length}catch(t){}return!1}function O(e){"string"!=typeof e&&T.throwArgumentError("invalid ENS name; not a string","name",e);let t=M;const r=j(e);for(;r.length;)t=(0,o.S)((0,n.xW)([t,(0,o.S)(r.pop())]));return(0,n.c$)(t)}function B(e){return(0,n.c$)((0,n.xW)(j(e).map((e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"}M.fill(0)},872218:(e,t,r)=>{"use strict";r.d(t,{z:()=>I});var n=r(208402),i=r(937457),o=r(308471),a=r(350234),s=r(639121),c=r(878366),u=r(785182),l=r(108392),d=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const f=new c.Vy(u.r),h=new Uint8Array(32);h.fill(0);const p=i.gH.from(-1),g=i.gH.from(0),m=i.gH.from(1),y=i.gH.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const b=(0,o.bj)(m.toHexString(),32),v=(0,o.bj)(g.toHexString(),32),w={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},A=["name","version","chainId","verifyingContract","salt"];function C(e){return function(t){return"string"!=typeof t&&f.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const E={name:C("name"),version:C("version"),chainId:function(e){try{return i.gH.from(e).toString()}catch(t){}return f.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,n.bv)(e).toLowerCase()}catch(t){}return f.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=(0,o.k9)(e);if(32!==t.length)throw new Error("bad length");return(0,o.c$)(t)}catch(t){}return f.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function x(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const r=""===t[1],n=parseInt(t[2]||"256");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&f.throwArgumentError("invalid numeric width","type",e);const a=y.mask(r?n-1:n),s=r?a.add(m).mul(p):g;return function(t){const r=i.gH.from(t);return(r.lt(s)||r.gt(a))&&f.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),(0,o.bj)(r.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&f.throwArgumentError("invalid bytes width","type",e),function(t){return(0,o.k9)(t).length!==r&&f.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){const t=(0,o.k9)(e),r=t.length%32;return r?(0,o.qn)([t,h.slice(r)]):(0,o.c$)(t)}(t)}}}switch(e){case"address":return function(e){return(0,o.bj)((0,n.bv)(e),32)};case"bool":return function(e){return e?b:v};case"bytes":return function(e){return(0,a.S)(e)};case"string":return function(e){return(0,l.id)(e)}}return null}function S(e,t){return`${e}(${t.map((({name:e,type:t})=>t+" "+e)).join(",")})`}class I{constructor(e){(0,s.yY)(this,"types",Object.freeze((0,s.A4)(e))),(0,s.yY)(this,"_encoderCache",{}),(0,s.yY)(this,"_types",{});const t={},r={},n={};Object.keys(e).forEach((e=>{t[e]={},r[e]=[],n[e]={}}));for(const o in e){const n={};e[o].forEach((i=>{n[i.name]&&f.throwArgumentError(`duplicate variable name ${JSON.stringify(i.name)} in ${JSON.stringify(o)}`,"types",e),n[i.name]=!0;const a=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===o&&f.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",e);x(a)||(r[a]||f.throwArgumentError(`unknown type ${JSON.stringify(a)}`,"types",e),r[a].push(o),t[o][a]=!0)}))}const i=Object.keys(r).filter((e=>0===r[e].length));0===i.length?f.throwArgumentError("missing primary type","types",e):i.length>1&&f.throwArgumentError(`ambiguous primary types or unused types: ${i.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),(0,s.yY)(this,"primaryType",i[0]),function i(o,a){a[o]&&f.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",e),a[o]=!0,Object.keys(t[o]).forEach((e=>{r[e]&&(i(e,a),Object.keys(a).forEach((t=>{n[t][e]=!0})))})),delete a[o]}(this.primaryType,{});for(const o in n){const t=Object.keys(n[o]);t.sort(),this._types[o]=S(o,e[o])+t.map((t=>S(t,e[t]))).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{const t=x(e);if(t)return t}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&f.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let i=t.map(r);return this._types[e]&&(i=i.map(a.S)),(0,a.S)((0,o.qn)(i))}}const r=this.types[e];if(r){const t=(0,l.id)(this._types[e]);return e=>{const n=r.map((({name:t,type:r})=>{const n=this.getEncoder(r)(e[t]);return this._types[r]?(0,a.S)(n):n}));return n.unshift(t),(0,o.qn)(n)}}return f.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const t=this._types[e];return t||f.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,a.S)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(x(e))return r(e,t);const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const e=n[1],i=parseInt(n[3]);return i>=0&&t.length!==i&&f.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((t=>this._visit(e,t,r)))}const i=this.types[e];return i?i.reduce(((e,{name:n,type:i})=>(e[n]=this._visit(i,t[n],r),e)),{}):f.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new I(e)}static getPrimaryType(e){return I.from(e).primaryType}static hashStruct(e,t,r){return I.from(t).hashStruct(e,r)}static hashDomain(e){const t=[];for(const r in e){const n=w[r];n||f.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort(((e,t)=>A.indexOf(e.name)-A.indexOf(t.name))),I.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,o.qn)(["0x1901",I.hashDomain(e),I.from(t).hash(r)])}static hash(e,t,r){return(0,a.S)(I.encode(e,t,r))}static resolveNames(e,t,r,n){return d(this,void 0,void 0,(function*(){e=(0,s.Ic)(e);const i={};e.verifyingContract&&!(0,o.Lo)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const a=I.from(t);a.visit(r,((e,t)=>("address"!==e||(0,o.Lo)(t,20)||(i[t]="0x"),t)));for(const e in i)i[e]=yield n(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=a.visit(r,((e,t)=>"address"===e&&i[t]?i[t]:t)),{domain:e,value:r}}))}static getPayload(e,t,r){I.hashDomain(e);const n={},a=[];A.forEach((t=>{const r=e[t];null!=r&&(n[t]=E[t](r),a.push({name:t,type:w[t]}))}));const c=I.from(t),u=(0,s.Ic)(t);return u.EIP712Domain?f.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):u.EIP712Domain=a,c.encode(r),{types:u,domain:n,primaryType:c.primaryType,message:c.visit(r,((e,t)=>{if(e.match(/^bytes(\d*)/))return(0,o.c$)((0,o.k9)(t));if(e.match(/^u?int/))return i.gH.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&f.throwArgumentError("invalid string","value",t),t}return f.throwArgumentError("unsupported type","type",e)}))}}}},350234:(e,t,r)=>{"use strict";r.d(t,{S:()=>a});var n=r(131176),i=r.n(n),o=r(308471);function a(e){return"0x"+i().keccak_256((0,o.k9)(e))}},878366:(e,t,r)=>{"use strict";r.d(t,{O4:()=>l,Vy:()=>f});let n=!1,i=!1;const o={debug:1,default:2,info:2,warning:3,error:4,off:5};let a=o.default,s=null;const c=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var u,l;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(u||(u={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(l||(l={}));const d="0123456789abcdef";class f{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const r=e.toLowerCase();null==o[r]&&this.throwArgumentError("invalid log level name","logLevel",e),a>o[r]||console.log.apply(console,t)}debug(...e){this._log(f.levels.DEBUG,e)}info(...e){this._log(f.levels.INFO,e)}warn(...e){this._log(f.levels.WARNING,e)}makeError(e,t,r){if(i)return this.makeError("censored error",t,{});t||(t=f.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((e=>{const t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e>4],r+=d[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(s){n.push(e+"="+JSON.stringify(r[e].toString()))}})),n.push(`code=${t}`),n.push(`version=${this.version}`);const o=e;let a="";switch(t){case l.NUMERIC_FAULT:{a="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":a+="-"+t;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break}case l.CALL_EXCEPTION:case l.INSUFFICIENT_FUNDS:case l.MISSING_NEW:case l.NONCE_EXPIRED:case l.REPLACEMENT_UNDERPRICED:case l.TRANSACTION_REPLACED:case l.UNPREDICTABLE_GAS_LIMIT:a=t}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),n.length&&(e+=" ("+n.join(", ")+")");const s=new Error(e);return s.reason=o,s.code=t,Object.keys(r).forEach((function(e){s[e]=r[e]})),s}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,f.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),c&&this.throwError("platform missing String.prototype.normalize",f.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,f.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,f.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",et&&this.throwError("too many arguments"+r,f.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",f.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",f.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",f.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return s||(s=new f("logger/5.7.0")),s}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",f.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!e)return;this.globalLogger().throwError("error censorship permanent",f.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!e,n=!!t}static setLogLevel(e){const t=o[e.toLowerCase()];null!=t?a=t:f.globalLogger().warn("invalid log level - "+e)}static from(e){return new f(e)}}f.errors=l,f.levels=u},83699:(e,t,r)=>{"use strict";r.d(t,{N:()=>l});const n=new(r(878366).Vy)("networks/5.7.1");function i(e){const t=function(t,r){null==r&&(r={});const n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(i){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(i){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(i){}if(t.PocketProvider&&"-"!==r.pocket){const o=["goerli","ropsten","rinkeby","sepolia"];try{const i=new t.PocketProvider(e,r.pocket);i.network&&-1===o.indexOf(i.network.name)&&n.push(i)}catch(i){}}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(i){}if(t.AnkrProvider&&"-"!==r.ankr)try{const i=["ropsten"],o=new t.AnkrProvider(e,r.ankr);o.network&&-1===i.indexOf(o.network.name)&&n.push(o)}catch(i){}if(0===n.length)return null;if(t.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:"homestead"===e&&(i=2),new t.FallbackProvider(n,i)}return n[0]};return t.renetwork=function(e){return i(e)},t}function o(e,t){const r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return o(e,t)},r}const a={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:i("homestead")},s={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:i("ropsten")},c={chainId:63,name:"classicMordor",_defaultProvider:o("https://www.ethercluster.com/mordor","classicMordor")},u={unspecified:{chainId:0,name:"unspecified"},homestead:a,mainnet:a,morden:{chainId:2,name:"morden"},ropsten:s,testnet:s,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:i("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:i("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:i("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:i("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:o("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:c,classicTestnet:c,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:o("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:i("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:i("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function l(e){if(null==e)return null;if("number"==typeof e){for(const t in u){const r=u[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){const t=u[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}const t=u[e.name];if(!t)return"number"!=typeof e.chainId&&n.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&n.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;var i;return null==r&&t._defaultProvider&&(r=(i=t._defaultProvider)&&"function"==typeof i.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}},639121:(e,t,r)=>{"use strict";r.d(t,{VY:()=>g,qN:()=>u,A4:()=>p,yY:()=>a,$J:()=>s,k_:()=>c,Ic:()=>l});var n=r(878366);var i=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const o=new n.Vy("properties/5.7.0");function a(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function s(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function c(e){return i(this,void 0,void 0,(function*(){const t=Object.keys(e).map((t=>{const r=e[t];return Promise.resolve(r).then((e=>({key:t,value:e})))}));return(yield Promise.all(t)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})}))}function u(e,t){e&&"object"==typeof e||o.throwArgumentError("invalid object","object",e),Object.keys(e).forEach((r=>{t[r]||o.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)}))}function l(e){const t={};for(const r in e)t[r]=e[r];return t}const d={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function f(e){if(null==e||d[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;const r=Object.keys(e);for(let n=0;np(e))));if("object"==typeof e){const t={};for(const r in e){const n=e[r];void 0!==n&&a(t,r,p(n))}return t}return o.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function p(e){return h(e)}class g{constructor(e){for(const t in e)this[t]=p(e[t])}}},788004:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});const n="providers/5.7.2"},571998:(e,t,r)=>{"use strict";r.d(t,{DJ:()=>V,xR:()=>U});var n=r(485610),i=r(990531),o=r(141730),a=r(937457),s=r(308471),c=r(818930),u=r(238023),l=r(83699),d=r(639121),f=r(577010),h=r(771414),p=r(632808),g=r(169674),m=r.n(g),y=r(878366),b=r(788004),v=r(941577),w=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const A=new y.Vy(b.r);function C(e){return null==e?"null":(32!==(0,s.cm)(e)&&A.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function E(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((e=>{if(Array.isArray(e)){const t={};e.forEach((e=>{t[C(e)]=!0}));const r=Object.keys(t);return r.sort(),r.join("|")}return C(e)})).join("&")}function x(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,s.cm)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+E(e);if(n.Rj.isForkEvent(e))throw A.warn("not implemented"),new Error("not implemented");if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+E(e.topics||[])}throw new Error("invalid event - "+e)}function S(){return(new Date).getTime()}function I(e){return new Promise((t=>{setTimeout(t,e)}))}const k=["block","network","pending","poll"];class _{constructor(e,t,r){(0,d.yY)(this,"tag",e),(0,d.yY)(this,"listener",t),(0,d.yY)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){const e=this.tag.split(":");if("filter"!==e[0])return null;const t=e[1],r=""===(n=e[2])?[]:n.split(/&/g).map((e=>{if(""===e)return[];const t=e.split("|").map((e=>"null"===e?null:e));return 1===t.length?t[0]:t}));var n;const i={};return r.length>0&&(i.topics=r),t&&"*"!==t&&(i.address=t),i}pollable(){return this.tag.indexOf(":")>=0||k.indexOf(this.tag)>=0}}const T={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function M(e){return(0,s.bj)(a.gH.from(e).toHexString(),32)}function P(e){return o.zn.encode((0,s.xW)([e,(0,s.Ab)((0,f.sc)((0,f.sc)(e)),0,4)]))}const j=new RegExp("^(ipfs)://(.*)$","i"),D=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),j,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function O(e,t){try{return(0,h._v)(B(e,t))}catch(r){}return null}function B(e,t){if("0x"===e)return null;const r=a.gH.from((0,s.Ab)(e,t,t+32)).toNumber(),n=a.gH.from((0,s.Ab)(e,r,r+32)).toNumber();return(0,s.Ab)(e,r+32,r+32+n)}function N(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):A.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function R(e){const t=(0,s.k9)(e);if(t.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(t,32-t.length),r}function L(e){if(e.length%32==0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function F(e){const t=[];let r=0;for(let n=0;na.gH.from(e).eq(1))).catch((e=>{if(e.code===y.Vy.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e}))),this._supportsEip2544}_fetch(e,t){return w(this,void 0,void 0,(function*(){const r={to:this.address,ccipReadEnabled:!0,data:(0,s.qn)([e,(0,u.kM)(this.name),t||"0x"])};let n=!1;(yield this.supportsWildcard())&&(n=!0,r.data=(0,s.qn)(["0x9061b923",F([(0,u.Wh)(this.name),r.data])]));try{let e=yield this.provider.call(r);return(0,s.k9)(e).length%32==4&&A.throwError("resolver threw error",y.Vy.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=B(e,0)),e}catch(i){if(i.code===y.Vy.errors.CALL_EXCEPTION)return null;throw i}}))}_fetchBytes(e,t){return w(this,void 0,void 0,(function*(){const r=yield this._fetch(e,t);return null!=r?B(r,0):null}))}_getAddress(e,t){const r=T[String(e)];if(null==r&&A.throwError(`unsupported coin type: ${e}`,y.Vy.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);const n=(0,s.k9)(t);if(null!=r.p2pkh){const e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return P((0,s.xW)([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){const e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return P((0,s.xW)([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){const e=n[1];let t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){const e=m().toWords(n.slice(2));return e.unshift(t),m().encode(r.prefix,e)}}return null}getAddress(e){return w(this,void 0,void 0,(function*(){if(null==e&&(e=60),60===e)try{const e=yield this._fetch("0x3b3b57de");return"0x"===e||e===c.j?null:this.provider.formatter.callAddress(e)}catch(n){if(n.code===y.Vy.errors.CALL_EXCEPTION)return null;throw n}const t=yield this._fetchBytes("0xf1cb7e06",M(e));if(null==t||"0x"===t)return null;const r=this._getAddress(e,t);return null==r&&A.throwError("invalid or unsupported coin data",y.Vy.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r}))}getAvatar(){return w(this,void 0,void 0,(function*(){const e=[{type:"name",content:this.name}];try{const t=yield this.getText("avatar");if(null==t)return null;for(let r=0;re[t]))}return A.throwError("invalid or unsupported content hash data",y.Vy.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})}))}getText(e){return w(this,void 0,void 0,(function*(){let t=(0,h.YW)(e);t=(0,s.xW)([M(64),M(t.length),t]),t.length%32!=0&&(t=(0,s.xW)([t,(0,s.bj)("0x",32-e.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",(0,s.c$)(t));return null==r||"0x"===r?null:(0,h._v)(r)}))}}let z=null,H=1;class V extends n.Kq{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,d.yY)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch((e=>{})),this._ready().catch((e=>{}));else{const t=(0,d.$J)(new.target,"getNetwork")(e);t?((0,d.yY)(this,"_network",t),this.emit("network",t,null)):A.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return w(this,void 0,void 0,(function*(){if(null==this._network){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch(e){}null==t&&(t=yield this.detectNetwork()),t||A.throwError("no network detected",y.Vy.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:(0,d.yY)(this,"_network",t),this.emit("network",t,null))}return this._network}))}get ready(){return(0,p.wt)((()=>this._ready().then((e=>e),(e=>{if(e.code!==y.Vy.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))))}static getFormatter(){return null==z&&(z=new v.ZA),z}static getNetwork(e){return(0,l.N)(null==e?"homestead":e)}ccipReadFetch(e,t,r){return w(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===r.length)return null;const n=e.to.toLowerCase(),i=t.toLowerCase(),o=[];for(let e=0;e=0?null:JSON.stringify({data:i,sender:n}),c=yield(0,p.x6)({url:a,errorPassThrough:!0},s,((e,t)=>(e.status=t.statusCode,e)));if(c.data)return c.data;const u=c.message||"unknown error";if(c.status>=400&&c.status<500)return A.throwError(`response not found during CCIP fetch: ${u}`,y.Vy.errors.SERVER_ERROR,{url:t,errorMessage:u});o.push(u)}return A.throwError(`error encountered during CCIP fetch: ${o.map((e=>JSON.stringify(e))).join(", ")}`,y.Vy.errors.SERVER_ERROR,{urls:r,errorMessages:o})}))}_getInternalBlockNumber(e){return w(this,void 0,void 0,(function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const t=this._internalBlockNumber;try{const r=yield t;if(S()-r.respTime<=e)return r.blockNumber;break}catch(n){if(this._internalBlockNumber===t)break}}const t=S(),r=(0,d.k_)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((e=>null),(e=>e))}).then((({blockNumber:e,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;const i=S();return(e=a.gH.from(e).toNumber()){this._internalBlockNumber===r&&(this._internalBlockNumber=null)})),(yield r).blockNumber}))}poll(){return w(this,void 0,void 0,(function*(){const e=H++,t=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(n){return void this.emit("error",n)}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)A.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",A.makeError("network block skew detected",y.Vy.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((e=>{if("block"===e)return;const t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((e=>{switch(e.type){case"tx":{const r=e.hash;let n=this.getTransactionReceipt(r).then((e=>e&&null!=e.blockNumber?(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e),null):null)).catch((e=>{this.emit("error",e)}));t.push(n);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);const n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;const i=n.toBlock-this._maxFilterBlockRange;i>n.fromBlock&&(n.fromBlock=i),n.fromBlock<0&&(n.fromBlock=0);const o=this.getLogs(n).then((t=>{e._inflight=!1,0!==t.length&&t.forEach((t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(n,t)}))})).catch((t=>{this.emit("error",t),e._inflight=!1}));t.push(o)}}})),this._lastBlockNumber=r,Promise.all(t).then((()=>{this.emit("didPoll",e)})).catch((e=>{this.emit("error",e)}))}else this.emit("didPoll",e)}))}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return w(this,void 0,void 0,(function*(){return A.throwError("provider does not support network detection",y.Vy.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return w(this,void 0,void 0,(function*(){const e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield I(0),this._network;const r=A.makeError("underlying network changed",y.Vy.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((e=>{this._setFastBlockNumber(e)}),(e=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const e=S();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then((e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return w(this,void 0,void 0,(function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)}))}_waitForTransaction(e,t,r,n){return w(this,void 0,void 0,(function*(){const i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=t?i:new Promise(((i,o)=>{const a=[];let s=!1;const c=function(){return!!s||(s=!0,a.forEach((e=>{e()})),!1)},u=e=>{e.confirmations{this.removeListener(e,u)})),n){let r=n.startBlock,i=null;const u=a=>w(this,void 0,void 0,(function*(){s||(yield I(1e3),this.getTransactionCount(n.from).then((l=>w(this,void 0,void 0,(function*(){if(!s){if(l<=n.nonce)r=a;else{{const t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==i&&(i=r-3,i{s||this.once("block",u)})))}));if(s)return;this.once("block",u),a.push((()=>{this.removeListener("block",u)}))}if("number"==typeof r&&r>0){const e=setTimeout((()=>{c()||o(A.makeError("timeout exceeded",y.Vy.errors.TIMEOUT,{timeout:r}))}),r);e.unref&&e.unref(),a.push((()=>{clearTimeout(e)}))}}))}))}getBlockNumber(){return w(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return w(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return a.gH.from(e)}catch(t){return A.throwError("bad result from backend",y.Vy.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}}))}getBalance(e,t){return w(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,d.k_)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getBalance",r);try{return a.gH.from(n)}catch(i){return A.throwError("bad result from backend",y.Vy.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:i})}}))}getTransactionCount(e,t){return w(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,d.k_)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getTransactionCount",r);try{return a.gH.from(n).toNumber()}catch(i){return A.throwError("bad result from backend",y.Vy.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:i})}}))}getCode(e,t){return w(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,d.k_)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getCode",r);try{return(0,s.c$)(n)}catch(i){return A.throwError("bad result from backend",y.Vy.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:i})}}))}getStorageAt(e,t,r){return w(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield(0,d.k_)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((e=>(0,s.Fh)(e)))}),i=yield this.perform("getStorageAt",n);try{return(0,s.c$)(i)}catch(o){return A.throwError("bad result from backend",y.Vy.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:i,error:o})}}))}_wrapTransaction(e,t,r){if(null!=t&&32!==(0,s.cm)(t))throw new Error("invalid response - sendTransaction");const n=e;return null!=t&&e.hash!==t&&A.throwError("Transaction hash mismatch from Provider.sendTransaction.",y.Vy.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),n.wait=(t,n)=>w(this,void 0,void 0,(function*(){let i;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});const o=yield this._waitForTransaction(e.hash,t,n,i);return null==o&&0===t?null:(this._emitted["t:"+e.hash]=o.blockNumber,0===o.status&&A.throwError("transaction failed",y.Vy.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:o}),o)})),n}sendTransaction(e){return w(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then((e=>(0,s.c$)(e))),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(i){throw i.transaction=r,i.transactionHash=r.hash,i}}))}_getTransactionRequest(e){return w(this,void 0,void 0,(function*(){const t=yield e,r={};return["from","to"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?this._getAddress(e):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?a.gH.from(e):null)))})),["type"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>null!=e?e:null)))})),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?(0,s.c$)(e):null)))})),this.formatter.transactionRequest(yield(0,d.k_)(r))}))}_getFilter(e){return w(this,void 0,void 0,(function*(){e=yield e;const t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach((r=>{null!=e[r]&&(t[r]=e[r])})),["fromBlock","toBlock"].forEach((r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))})),this.formatter.filter(yield(0,d.k_)(t))}))}_call(e,t,r){return w(this,void 0,void 0,(function*(){r>=10&&A.throwError("CCIP read exceeded maximum redirections",y.Vy.errors.SERVER_ERROR,{redirects:r,transaction:e});const n=e.to,i=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=n&&"0x556f1830"===i.substring(0,10)&&(0,s.cm)(i)%32==4)try{const o=(0,s.Ab)(i,4),c=(0,s.Ab)(o,0,32);a.gH.from(c).eq(n)||A.throwError("CCIP Read sender did not match",y.Vy.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});const u=[],l=a.gH.from((0,s.Ab)(o,32,64)).toNumber(),d=a.gH.from((0,s.Ab)(o,l,l+32)).toNumber(),f=(0,s.Ab)(o,l+32);for(let t=0;tw(this,void 0,void 0,(function*(){const e=yield this.perform("getBlock",n);if(null==e)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let n=0;nthis._wrapTransaction(e))),r}return this.formatter.block(e)}))),{oncePoll:this})}))}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return w(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return(0,p.wt)((()=>w(this,void 0,void 0,(function*(){const r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;const n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return this._wrapTransaction(n)}))),{oncePoll:this})}))}getTransactionReceipt(e){return w(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return(0,p.wt)((()=>w(this,void 0,void 0,(function*(){const r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;const n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return n}))),{oncePoll:this})}))}getLogs(e){return w(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield(0,d.k_)({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach((e=>{null==e.removed&&(e.removed=!1)})),v.ZA.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)}))}getEtherPrice(){return w(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(e){return w(this,void 0,void 0,(function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&A.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return t+=e,t<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)}))}getResolver(e){return w(this,void 0,void 0,(function*(){let t=e;for(;;){if(""===t||"."===t)return null;if("eth"!==e&&"eth"===t)return null;const r=yield this._getResolver(t,"getResolver");if(null!=r){const n=new U(this,r,e);return t===e||(yield n.supportsWildcard())?n:null}t=t.split(".").slice(1).join(".")}}))}_getResolver(e,t){return w(this,void 0,void 0,(function*(){null==t&&(t="ENS");const r=yield this.getNetwork();r.ensAddress||A.throwError("network does not support ENS",y.Vy.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{const t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+(0,u.kM)(e).substring(2)});return this.formatter.callAddress(t)}catch(n){}return null}))}resolveName(e){return w(this,void 0,void 0,(function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(r){if((0,s.Lo)(e))throw r}"string"!=typeof e&&A.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null}))}lookupAddress(e){return w(this,void 0,void 0,(function*(){e=yield e;const t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;const n=O(yield this.call({to:r,data:"0x691f3431"+(0,u.kM)(t).substring(2)}),0);return(yield this.resolveName(n))!=e?null:n}))}getAvatar(e){return w(this,void 0,void 0,(function*(){let t=null;if((0,s.Lo)(e)){const r=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",i=yield this._getResolver(r,"getAvatar");if(!i)return null;t=new U(this,i,r);try{const e=yield t.getAvatar();if(e)return e.url}catch(n){if(n.code!==y.Vy.errors.CALL_EXCEPTION)throw n}try{const e=O(yield this.call({to:i,data:"0x691f3431"+(0,u.kM)(r).substring(2)}),0);t=yield this.getResolver(e)}catch(n){if(n.code!==y.Vy.errors.CALL_EXCEPTION)throw n;return null}}else if(t=yield this.getResolver(e),!t)return null;const r=yield t.getAvatar();return null==r?null:r.url}))}perform(e,t){return A.throwError(e+" not implemented",y.Vy.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_stopEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_addEventListener(e,t,r){const n=new _(x(e),t,r);return this._events.push(n),this._startEvent(n),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,n=[],i=x(e);return this._events=this._events.filter((e=>e.tag!==i||(setTimeout((()=>{e.listener.apply(this,t)}),0),r=!0,!e.once||(n.push(e),!1)))),n.forEach((e=>{this._stopEvent(e)})),r}listenerCount(e){if(!e)return this._events.length;let t=x(e);return this._events.filter((e=>e.tag===t)).length}listeners(e){if(null==e)return this._events.map((e=>e.listener));let t=x(e);return this._events.filter((e=>e.tag===t)).map((e=>e.listener))}off(e,t){if(null==t)return this.removeAllListeners(e);const r=[];let n=!1,i=x(e);return this._events=this._events.filter((e=>e.tag!==i||e.listener!=t||(!!n||(n=!0,r.push(e),!1)))),r.forEach((e=>{this._stopEvent(e)})),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const r=x(e);this._events=this._events.filter((e=>e.tag!==r||(t.push(e),!1)))}return t.forEach((e=>{this._stopEvent(e)})),this}}},941577:(e,t,r)=>{"use strict";r.d(t,{ZA:()=>f,Zd:()=>m,fw:()=>h,ws:()=>p});var n=r(208402),i=r(937457),o=r(308471),a=r(148892),s=r(639121),c=r(722677),u=r(878366),l=r(788004);const d=new u.Vy(l.r);class f{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),a=this.hex.bind(this),c=this.number.bind(this),u=this.type.bind(this);return e.transaction={hash:o,type:u,accessList:f.allowNull(this.accessList.bind(this),null),blockHash:f.allowNull(o,null),blockNumber:f.allowNull(c,null),transactionIndex:f.allowNull(c,null),confirmations:f.allowNull(c,null),from:t,gasPrice:f.allowNull(r),maxPriorityFeePerGas:f.allowNull(r),maxFeePerGas:f.allowNull(r),gasLimit:r,to:f.allowNull(t,null),value:r,nonce:c,data:i,r:f.allowNull(this.uint256),s:f.allowNull(this.uint256),v:f.allowNull(c),creates:f.allowNull(t,null),raw:f.allowNull(i)},e.transactionRequest={from:f.allowNull(t),nonce:f.allowNull(c),gasLimit:f.allowNull(r),gasPrice:f.allowNull(r),maxPriorityFeePerGas:f.allowNull(r),maxFeePerGas:f.allowNull(r),to:f.allowNull(t),value:f.allowNull(r),data:f.allowNull((e=>this.data(e,!0))),type:f.allowNull(c),accessList:f.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:c,blockNumber:c,transactionHash:o,address:t,topics:f.arrayOf(o),data:i,logIndex:c,blockHash:o},e.receipt={to:f.allowNull(this.address,null),from:f.allowNull(this.address,null),contractAddress:f.allowNull(t,null),transactionIndex:c,root:f.allowNull(a),gasUsed:r,logsBloom:f.allowNull(i),blockHash:o,transactionHash:o,logs:f.arrayOf(this.receiptLog.bind(this)),blockNumber:c,confirmations:f.allowNull(c,null),cumulativeGasUsed:r,effectiveGasPrice:f.allowNull(r),status:f.allowNull(c),type:u},e.block={hash:f.allowNull(o),parentHash:o,number:c,timestamp:c,nonce:f.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:f.allowNull(t),extraData:i,transactions:f.allowNull(f.arrayOf(o)),baseFeePerGas:f.allowNull(r)},e.blockWithTransactions=(0,s.Ic)(e.block),e.blockWithTransactions.transactions=f.allowNull(f.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:f.allowNull(n,void 0),toBlock:f.allowNull(n,void 0),blockHash:f.allowNull(o,void 0),address:f.allowNull(t,void 0),topics:f.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:f.allowNull(c),blockHash:f.allowNull(o),transactionIndex:c,removed:f.allowNull(this.boolean.bind(this)),address:t,data:f.allowFalsish(i,"0x"),topics:f.arrayOf(o),transactionHash:o,logIndex:c},e}accessList(e){return(0,c.$2)(e||[])}number(e){return"0x"===e?0:i.gH.from(e).toNumber()}type(e){return"0x"===e||null==e?0:i.gH.from(e).toNumber()}bigNumber(e){return i.gH.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,o.Lo)(e))?e.toLowerCase():d.throwArgumentError("invalid hash","value",e)}data(e,t){const r=this.hex(e,t);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+e);return r}address(e){return(0,n.bv)(e)}callAddress(e){if(!(0,o.Lo)(e,32))return null;const t=(0,n.bv)((0,o.Ab)(e,12));return t===a.L?null:t}contractAddress(e){return(0,n.RZ)(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||(0,o.Lo)(e))return(0,o.Fh)(e);throw new Error("invalid blockTag")}hash(e,t){const r=this.hex(e,t);return 32!==(0,o.cm)(r)?d.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;const t=i.gH.from(e);try{return t.toNumber()}catch(r){}return null}uint256(e){if(!(0,o.Lo)(e))throw new Error("invalid uint256");return(0,o.bj)(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);const r=null!=e._difficulty?e._difficulty:e.difficulty,n=f.check(t,e);return n._difficulty=null==r?null:i.gH.from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return f.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&i.gH.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),1!==e.type&&2!==e.type||null!=e.accessList||(e.accessList=[]);const t=f.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;(0,o.Lo)(r)&&(r=i.gH.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),(0,o.Lo)(r)&&(r=i.gH.from(r).toNumber()),"number"!=typeof r&&null!=t.v&&(r=(t.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return(0,c.qg)(e)}receiptLog(e){return f.check(this.formats.receiptLog,e)}receipt(e){const t=f.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const e=i.gH.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&d.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):d.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&d.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map((e=>this.topics(e))):null!=e?this.hash(e,!0):null}filter(e){return f.check(this.formats.filter,e)}filterLog(e){return f.check(this.formats.filterLog,e)}static check(e,t){const r={};for(const i in e)try{const n=e[i](t[i]);void 0!==n&&(r[i]=n)}catch(n){throw n.checkKey=i,n.checkValue=t[i],n}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const r=[];return t.forEach((function(t){r.push(e(t))})),r}}}function h(e){return e&&"function"==typeof e.isCommunityResource}function p(e){return h(e)&&e.isCommunityResource()}let g=!1;function m(){g||(g=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}},304004:(e,t,r)=>{"use strict";r.d(t,{g:()=>d,p:()=>f});var n=r(639121),i=r(570953),o=r(941577),a=r(878366),s=r(788004),c=r(817689);const u=new a.Vy(s.r),l="84842078b09946638c03157f83405213";class d extends i.f{constructor(e,t){const r=new f(e,t),i=r.connection;i.password&&u.throwError("INFURA WebSocket project secrets unsupported",a.Vy.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});super(i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),e),(0,n.yY)(this,"apiKey",r.projectId),(0,n.yY)(this,"projectId",r.projectId),(0,n.yY)(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===l}}class f extends c.M{static getWebSocketProvider(e,t){return new d(e,t)}static getApiKey(e){const t={apiKey:l,projectId:l,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(u.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),u.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:u.throwError("unsupported network",a.Vy.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:(e,r)=>(t.projectId===l&&(0,o.Zd)(),Promise.resolve(!0))};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}isCommunityResource(){return this.projectId===l}}},939549:(e,t,r)=>{"use strict";r.d(t,{F:()=>I,c:()=>E});var n=r(279099),i=r(937457),o=r(308471),a=r(872218),s=r(639121),c=r(771414),u=r(722677),l=r(632808),d=r(878366),f=r(788004),h=r(571998),p=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const g=new d.Vy(f.r),m=["call","estimateGas"];function y(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){const r=(0,o.Lo)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(const r in e){const n=y(e[r],t);if(n)return n}return null}if("string"==typeof e)try{return y(JSON.parse(e),t)}catch(r){}return null}function b(e,t,r){const n=r.transaction||r.signedTransaction;if("call"===e){const e=y(t,!0);if(e)return e.data;g.throwError("missing revert data in call exception; Transaction reverted without a reason string",d.Vy.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){let r=y(t.body,!1);null==r&&(r=y(t,!1)),r&&g.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",d.Vy.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let i=t.message;throw t.code===d.Vy.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&g.throwError("insufficient funds for intrinsic transaction cost",d.Vy.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/nonce (is )?too low/i)&&g.throwError("nonce has already been used",d.Vy.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&g.throwError("replacement fee too low",d.Vy.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/only replay-protected/i)&&g.throwError("legacy pre-eip-155 transactions not supported",d.Vy.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),m.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&g.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",d.Vy.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function v(e){return new Promise((function(t){setTimeout(t,e)}))}function w(e){if(e.error){const t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function A(e){return e?e.toLowerCase():e}const C={};class E extends n.l{constructor(e,t,r){if(super(),e!==C)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,s.yY)(this,"provider",t),null==r&&(r=0),"string"==typeof r?((0,s.yY)(this,"_address",this.provider.formatter.address(r)),(0,s.yY)(this,"_index",null)):"number"==typeof r?((0,s.yY)(this,"_index",r),(0,s.yY)(this,"_address",null)):g.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return g.throwError("cannot alter JSON-RPC Signer connection",d.Vy.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new x(C,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((e=>(e.length<=this._index&&g.throwError("unknown account #"+this._index,d.Vy.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index]))))}sendUncheckedTransaction(e){e=(0,s.Ic)(e);const t=this.getAddress().then((e=>(e&&(e=e.toLowerCase()),e)));if(null==e.gasLimit){const r=(0,s.Ic)(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((e=>p(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.provider.resolveName(e);return null==t&&g.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))))),(0,s.k_)({tx:(0,s.k_)(e),sender:t}).then((({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&g.throwArgumentError("from address mismatch","transaction",e):t.from=r;const n=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then((e=>e),(e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&g.throwError("user rejected transaction",d.Vy.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),b("sendTransaction",e,n))))}))}signTransaction(e){return g.throwError("signing transactions is unsupported",d.Vy.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return p(this,void 0,void 0,(function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield(0,l.wt)((()=>p(this,void 0,void 0,(function*(){const e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}))),{oncePoll:this.provider})}catch(n){throw n.transactionHash=r,n}}))}signMessage(e){return p(this,void 0,void 0,(function*(){const t="string"==typeof e?(0,c.YW)(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,o.c$)(t),r.toLowerCase()])}catch(n){throw"string"==typeof n.message&&n.message.match(/user denied/i)&&g.throwError("user rejected signing",d.Vy.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),n}}))}_legacySignMessage(e){return p(this,void 0,void 0,(function*(){const t="string"==typeof e?(0,c.YW)(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),(0,o.c$)(t)])}catch(n){throw"string"==typeof n.message&&n.message.match(/user denied/i)&&g.throwError("user rejected signing",d.Vy.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),n}}))}_signTypedData(e,t,r){return p(this,void 0,void 0,(function*(){const n=yield a.z.resolveNames(e,t,r,(e=>this.provider.resolveName(e))),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(a.z.getPayload(n.domain,t,n.value))])}catch(o){throw"string"==typeof o.message&&o.message.match(/user denied/i)&&g.throwError("user rejected signing",d.Vy.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:n.domain,types:t,value:n.value}}),o}}))}unlock(e){return p(this,void 0,void 0,(function*(){const t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])}))}}class x extends E{sendTransaction(e){return this.sendUncheckedTransaction(e).then((e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)})))}}const S={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class I extends h.DJ{constructor(e,t){let r=t;null==r&&(r=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then((t=>{e(t)}),(e=>{t(e)}))}),0)}))),super(r),e||(e=(0,s.$J)(this.constructor,"defaultUrl")()),"string"==typeof e?(0,s.yY)(this,"connection",Object.freeze({url:e})):(0,s.yY)(this,"connection",Object.freeze((0,s.Ic)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return p(this,void 0,void 0,(function*(){yield v(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(t){}}if(null!=e){const r=(0,s.$J)(this.constructor,"getNetwork");try{return r(i.gH.from(e).toNumber())}catch(t){return g.throwError("could not detect network",d.Vy.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return g.throwError("could not detect network",d.Vy.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(e){return new E(C,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((e=>e.map((e=>this.formatter.address(e)))))}send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,s.A4)(r),provider:this});const n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];const i=(0,l.x6)(this.connection,JSON.stringify(r),w).then((e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e}));return n&&(this._cache[e]=i,setTimeout((()=>{this._cache[e]=null}),0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[A(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[A(t.address),t.blockTag]];case"getCode":return["eth_getCode",[A(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[A(t.address),(0,o.bj)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[(0,s.$J)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,s.$J)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=A(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return p(this,void 0,void 0,(function*(){if("call"===e||"estimateGas"===e){const e=t.transaction;if(e&&null!=e.type&&i.gH.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=(0,s.Ic)(t)).transaction=(0,s.Ic)(e),delete t.transaction.type)}}const r=this.prepareRequest(e,t);null==r&&g.throwError(e+" not implemented",d.Vy.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(n){return b(e,n,t)}}))}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;const e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null;let n=Promise.resolve();return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return v(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null;e.send("eth_uninstallFilter",[r])})).catch((e=>{}))}(),r})).catch((e=>{}))}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const r=(0,s.Ic)(S);if(t)for(const i in t)t[i]&&(r[i]=!0);(0,s.qN)(e,r);const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null==e[t])return;const r=(0,o.Fh)(i.gH.from(e[t]));"gasLimit"===t&&(t="gas"),n[t]=r})),["from","to","data"].forEach((function(t){null!=e[t]&&(n[t]=(0,o.c$)(e[t]))})),e.accessList&&(n.accessList=(0,u.$2)(e.accessList)),n}}},817689:(e,t,r)=>{"use strict";r.d(t,{B:()=>u,M:()=>l});var n=r(639121),i=r(878366),o=r(788004),a=r(939549),s=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const c=new i.Vy(o.r);class u extends a.F{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return s(this,void 0,void 0,(function*(){let t=this.network;return null==t&&(t=yield e.detectNetwork.call(this),t||c.throwError("no network detected",i.Vy.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,n.yY)(this,"_network",t),this.emit("network",t,null))),t}))}}class l extends u{constructor(e,t){c.checkAbstract(new.target,l),e=(0,n.$J)(new.target,"getNetwork")(e),t=(0,n.$J)(new.target,"getApiKey")(t);super((0,n.$J)(new.target,"getUrl")(e,t),e),"string"==typeof t?(0,n.yY)(this,"apiKey",t):null!=t&&Object.keys(t).forEach((e=>{(0,n.yY)(this,e,t[e])}))}_startPending(){c.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return c.throwError("API provider does not support signing",i.Vy.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return c.throwError("not implemented; sub-classes must override getUrl",i.Vy.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}},724824:(e,t,r)=>{"use strict";r.d(t,{j:()=>l});var n=r(639121),i=r(878366),o=r(788004),a=r(939549);const s=new i.Vy(o.r);let c=1;function u(e,t){const r="Web3LegacyFetcher";return function(e,i){const o={method:e,params:i,id:c++,jsonrpc:"2.0"};return new Promise(((e,i)=>{this.emit("debug",{action:"request",fetcher:r,request:(0,n.A4)(o),provider:this}),t(o,((t,n)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:o,provider:this}),i(t);if(this.emit("debug",{action:"response",fetcher:r,request:o,response:n,provider:this}),n.error){const e=new Error(n.error.message);return e.code=n.error.code,e.data=n.error.data,i(e)}e(n.result)}))}))}}class l extends a.F{constructor(e,t){null==e&&s.throwArgumentError("missing provider","provider",e);let r=null,i=null,o=null;"function"==typeof e?(r="unknown:",i=e):(r=e.host||e.path||"",!r&&e.isMetaMask&&(r="metamask"),o=e,e.request?(""===r&&(r="eip-1193:"),i=function(e){return function(t,r){null==r&&(r=[]);const i={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,n.A4)(i),provider:this}),e.request(i).then((e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,error:e,provider:this}),e}))}}(e)):e.sendAsync?i=u(0,e.sendAsync.bind(e)):e.send?i=u(0,e.send.bind(e)):s.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),(0,n.yY)(this,"jsonRpcFetchFunc",i),(0,n.yY)(this,"provider",o)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}},570953:(e,t,r)=>{"use strict";r.d(t,{f:()=>f});var n=r(937457),i=r(639121),o=r(939549),a=r(878366),s=r(788004);let c=null;try{if(c=WebSocket,null==c)throw new Error("inject please")}catch(h){const e=new a.Vy(s.r);c=function(){e.throwError("WebSockets not supported in this environment",a.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var u=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const l=new a.Vy(s.r);let d=1;class f extends o.F{constructor(e,t){"any"===t&&l.throwError("WebSocketProvider does not support 'any' network yet",a.Vy.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),super("string"==typeof e?e:"_websocket",t),this._pollingInterval=-1,this._wsReady=!1,"string"==typeof e?(0,i.yY)(this,"_websocket",new c(this.connection.url)):(0,i.yY)(this,"_websocket",e),(0,i.yY)(this,"_requests",{}),(0,i.yY)(this,"_subs",{}),(0,i.yY)(this,"_subIds",{}),(0,i.yY)(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach((e=>{this.websocket.send(this._requests[e].payload)}))},this.websocket.onmessage=e=>{const t=e.data,r=JSON.parse(t);if(null!=r.id){const e=String(r.id),n=this._requests[e];if(delete this._requests[e],void 0!==r.result)n.callback(null,r.result),this.emit("debug",{action:"response",request:JSON.parse(n.payload),response:r.result,provider:this});else{let e=null;r.error?(e=new Error(r.error.message||"unknown error"),(0,i.yY)(e,"code",r.error.code||null),(0,i.yY)(e,"response",t)):e=new Error("unknown error"),n.callback(e,void 0),this.emit("debug",{action:"response",error:e,request:JSON.parse(n.payload),provider:this})}}else if("eth_subscription"===r.method){const e=this._subs[r.params.subscription];e&&e.processFunc(r.params.result)}else console.warn("this should not happen")};const r=setInterval((()=>{this.emit("poll")}),1e3);r.unref&&r.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){l.throwError("cannot reset events block on WebSocketProvider",a.Vy.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){l.throwError("cannot set polling interval on WebSocketProvider",a.Vy.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return u(this,void 0,void 0,(function*(){return null}))}set polling(e){e&&l.throwError("cannot set polling on WebSocketProvider",a.Vy.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){const r=d++;return new Promise(((n,i)=>{const o=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(o),provider:this}),this._requests[String(r)]={callback:function(e,t){return e?i(e):n(t)},payload:o},this._wsReady&&this.websocket.send(o)}))}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,t,r){return u(this,void 0,void 0,(function*(){let n=this._subIds[e];null==n&&(n=Promise.all(t).then((e=>this.send("eth_subscribe",e))),this._subIds[e]=n);const i=yield n;this._subs[i]={tag:e,processFunc:r}}))}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],(e=>{const t=n.gH.from(e.number).toNumber();this._emitted.block=t,this.emit("block",t)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(e=>{this.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(t=>{null==t.removed&&(t.removed=!1),this.emit(e.filter,this.formatter.filterLog(t))}));break;case"tx":{const t=e=>{const t=e.hash;this.getTransactionReceipt(t).then((e=>{e&&this.emit(t,e)}))};t(e),this._subscribe("tx",["newHeads"],(e=>{this._events.filter((e=>"tx"===e.type)).forEach(t)}));break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}_stopEvent(e){let t=e.tag;if("tx"===e.type){if(this._events.filter((e=>"tx"===e.type)).length)return;t="tx"}else if(this.listenerCount(e.event))return;const r=this._subIds[t];r&&(delete this._subIds[t],r.then((e=>{this._subs[e]&&(delete this._subs[e],this.send("eth_unsubscribe",[e]))})))}destroy(){return u(this,void 0,void 0,(function*(){this.websocket.readyState===c.CONNECTING&&(yield new Promise((e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}}))),this.websocket.close(1e3)}))}}},127196:(e,t,r)=>{"use strict";r.r(t),r.d(t,{decode:()=>f,encode:()=>u});var n=r(308471),i=r(878366);const o=new i.Vy("rlp/5.7.0");function a(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function s(e,t,r){let n=0;for(let i=0;it+1+n&&o.throwError("child data too short",i.Vy.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:a}}function d(e,t){if(0===e.length&&o.throwError("data too short",i.Vy.errors.BUFFER_OVERRUN,{}),e[t]>=248){const r=e[t]-247;t+1+r>e.length&&o.throwError("data short segment too short",i.Vy.errors.BUFFER_OVERRUN,{});const n=s(e,t+1,r);return t+1+r+n>e.length&&o.throwError("data long segment too short",i.Vy.errors.BUFFER_OVERRUN,{}),l(e,t,t+1+r,r+n)}if(e[t]>=192){const r=e[t]-192;return t+1+r>e.length&&o.throwError("data array too short",i.Vy.errors.BUFFER_OVERRUN,{}),l(e,t,t+1,r)}if(e[t]>=184){const r=e[t]-183;t+1+r>e.length&&o.throwError("data array too short",i.Vy.errors.BUFFER_OVERRUN,{});const a=s(e,t+1,r);t+1+r+a>e.length&&o.throwError("data array too short",i.Vy.errors.BUFFER_OVERRUN,{});return{consumed:1+r+a,result:(0,n.c$)(e.slice(t+1+r,t+1+r+a))}}if(e[t]>=128){const r=e[t]-128;t+1+r>e.length&&o.throwError("data too short",i.Vy.errors.BUFFER_OVERRUN,{});return{consumed:1+r,result:(0,n.c$)(e.slice(t+1,t+1+r))}}return{consumed:1,result:(0,n.c$)(e[t])}}function f(e){const t=(0,n.k9)(e),r=d(t,0);return r.consumed!==t.length&&o.throwArgumentError("invalid rlp data","data",e),r.result}},577010:(e,t,r)=>{"use strict";r.d(t,{L5:()=>f,HE:()=>u,sc:()=>l,Zf:()=>d});var n=r(277952),i=r.n(n),o=r(308471),a=r(630760),s=r(878366);const c=new s.Vy("sha2/5.7.0");function u(e){return"0x"+i().ripemd160().update((0,o.k9)(e)).digest("hex")}function l(e){return"0x"+i().sha256().update((0,o.k9)(e)).digest("hex")}function d(e){return"0x"+i().sha512().update((0,o.k9)(e)).digest("hex")}function f(e,t,r){return a.q[e]||c.throwError("unsupported algorithm "+e,s.Vy.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+i().hmac(i()[e],(0,o.k9)(t)).update((0,o.k9)(r)).digest("hex")}},630760:(e,t,r)=>{"use strict";var n;r.d(t,{q:()=>n}),function(e){e.sha256="sha256",e.sha512="sha512"}(n||(n={}))},507670:(e,t,r)=>{"use strict";r.d(t,{hR:()=>W,uN:()=>Y,jL:()=>J});var n=r(605280),i=r.n(n),o=r(277952),a=r.n(o);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self&&self;function s(e,t,r){return r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},e(r,r.exports),r.exports}var c=u;function u(e,t){if(!e)throw new Error(t||"Assertion failed")}u.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var l=s((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}})),d=s((function(e,t){var r=t;r.assert=c,r.toArray=l.toArray,r.zero2=l.zero2,r.toHex=l.toHex,r.encode=l.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,c=e.andln(3)+i&3,u=t.andln(3)+o&3;3===c&&(c=-1),3===u&&(u=-1),a=1&c?3!==(n=e.andln(7)+i&7)&&5!==n||2!==u?c:-c:0,r[0].push(a),s=1&u?3!==(n=t.andln(7)+o&7)&&5!==n||2!==c?u:-u:0,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new(i())(e,"hex","le")}})),f=d.getNAF,h=d.getJSF,p=d.assert;function g(e,t){this.type=e,this.p=new(i())(t.p,16),this.red=t.prime?i().red(t.prime):i().mont(this.p),this.zero=new(i())(0).toRed(this.red),this.one=new(i())(1).toRed(this.red),this.two=new(i())(2).toRed(this.red),this.n=t.n&&new(i())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var m=g;function y(e,t){this.curve=e,this.type=t,this.precomputed=null}g.prototype.point=function(){throw new Error("Not implemented")},g.prototype.validate=function(){throw new Error("Not implemented")},g.prototype._fixedNafMul=function(e,t){p(e.precomputed);var r=e._getDoubles(),n=f(t,1,this._bitLength),i=(1<=o;c--)a=(a<<1)+n[c];s.push(a)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),d=i;d>0;d--){for(o=0;o=0;s--){for(var c=0;s>=0&&0===o[s];s--)c++;if(s>=0&&c++,a=a.dblp(c),s<0)break;var u=o[s];p(0!==u),a="affine"===e.type?u>0?a.mixedAdd(i[u-1>>1]):a.mixedAdd(i[-u-1>>1].neg()):u>0?a.add(i[u-1>>1]):a.add(i[-u-1>>1].neg())}return"affine"===e.type?a.toP():a},g.prototype._wnafMulAdd=function(e,t,r,n,i){var o,a,s,c=this._wnafT1,u=this._wnafT2,l=this._wnafT3,d=0;for(o=0;o=1;o-=2){var g=o-1,m=o;if(1===c[g]&&1===c[m]){var y=[t[g],null,null,t[m]];0===t[g].y.cmp(t[m].y)?(y[1]=t[g].add(t[m]),y[2]=t[g].toJ().mixedAdd(t[m].neg())):0===t[g].y.cmp(t[m].y.redNeg())?(y[1]=t[g].toJ().mixedAdd(t[m]),y[2]=t[g].add(t[m].neg())):(y[1]=t[g].toJ().mixedAdd(t[m]),y[2]=t[g].toJ().mixedAdd(t[m].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=h(r[g],r[m]);for(d=Math.max(v[0].length,d),l[g]=new Array(d),l[m]=new Array(d),a=0;a=0;o--){for(var x=0;o>=0;){var S=!0;for(a=0;a=0&&x++,C=C.dblp(x),o<0)break;for(a=0;a0?s=u[a][I-1>>1]:I<0&&(s=u[a][-I-1>>1].neg()),C="affine"===s.type?C.mixedAdd(s):C.add(s))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},y.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},w.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(u).neg()}},w.prototype.pointFromX=function(e,t){(e=new(i())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},w.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},w.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},C.prototype.isInfinity=function(){return this.inf},C.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},C.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},C.prototype.getX=function(){return this.x.fromRed()},C.prototype.getY=function(){return this.y.fromRed()},C.prototype.mul=function(e){return e=new(i())(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},C.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},C.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},C.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},C.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},C.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},b(E,m.BasePoint),w.prototype.jpoint=function(e,t,r){return new E(this,e,t,r)},E.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},E.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},E.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),d=n.redMul(u),f=c.redSqr().redIAdd(l).redISub(d).redISub(d),h=c.redMul(d.redISub(f)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},E.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),l=r.redMul(c),d=s.redSqr().redIAdd(u).redISub(l).redISub(l),f=s.redMul(l.redISub(d)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},E.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},E.prototype.inspect=function(){return this.isInfinity()?"":""},E.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var x=s((function(e,t){var r=t;r.base=m,r.short=A,r.mont=null,r.edwards=null})),S=s((function(e,t){var r,n=t,i=d.assert;function o(e){"short"===e.type?this.curve=new x.short(e):"edwards"===e.type?this.curve=new x.edwards(e):this.curve=new x.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new o(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a().sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(c){r=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function I(e){if(!(this instanceof I))return new I(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=l.toArray(e.entropy,e.entropyEnc||"hex"),r=l.toArray(e.nonce,e.nonceEnc||"hex"),n=l.toArray(e.pers,e.persEnc||"hex");c(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var k=I;I.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},I.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=l.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"};var P=d.assert;function j(e,t){if(e instanceof j)return e;this._importDER(e,t)||(P(e.r&&e.s,"Signature without r or s"),this.r=new(i())(e.r,16),this.s=new(i())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var D=j;function O(){this.place=0}function B(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function N(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}j.prototype._importDER=function(e,t){e=d.toArray(e,t);var r=new O;if(48!==e[r.place++])return!1;var n=B(e,r);if(!1===n)return!1;if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=B(e,r);if(!1===o)return!1;var a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var s=B(e,r);if(!1===s)return!1;if(e.length!==s+r.place)return!1;var c=e.slice(r.place,s+r.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new(i())(a),this.s=new(i())(c),this.recoveryParam=null,!0},j.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=N(t),r=N(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];R(n,t.length),(n=n.concat(t)).push(2),R(n,r.length);var i=n.concat(r),o=[48];return R(o,i.length),o=o.concat(i),d.encode(o,e)};var L=function(){throw new Error("unsupported")},F=d.assert;function U(e){if(!(this instanceof U))return new U(e);"string"==typeof e&&(F(Object.prototype.hasOwnProperty.call(S,e),"Unknown curve "+e),e=S[e]),e instanceof S.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var z=U;U.prototype.keyPair=function(e){return new M(this,e)},U.prototype.keyFromPrivate=function(e,t){return M.fromPrivate(this,e,t)},U.prototype.keyFromPublic=function(e,t){return M.fromPublic(this,e,t)},U.prototype.genKeyPair=function(e){e||(e={});for(var t=new k({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||L(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(i())(2));;){var o=new(i())(t.generate(r));if(!(o.cmp(n)>0))return o.iaddn(1),this.keyFromPrivate(o)}},U.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},U.prototype.sign=function(e,t,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new(i())(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),s=e.toArray("be",o),c=new k({hash:this.hash,entropy:a,nonce:s,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new(i())(1)),l=0;;l++){var d=n.k?n.k(l):new(i())(c.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(u)>=0)){var f=this.g.mul(d);if(!f.isInfinity()){var h=f.getX(),p=h.umod(this.n);if(0!==p.cmpn(0)){var g=d.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var m=(f.getY().isOdd()?1:0)|(0!==h.cmp(p)?2:0);return n.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),m^=1),new D({r:p,s:g,recoveryParam:m})}}}}}},U.prototype.verify=function(e,t,r,n){e=this._truncateToN(new(i())(e,16)),r=this.keyFromPublic(r,n);var o=(t=new D(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),u=c.mul(e).umod(this.n),l=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),l)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(u,r.getPublic(),l)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},U.prototype.recoverPubKey=function(e,t,r,n){F((3&r)===r,"The recovery param is more than two bits"),t=new D(t,n);var o=this.n,a=new(i())(e),s=t.r,c=t.s,u=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var d=t.r.invm(o),f=o.sub(a).mul(d).umod(o),h=c.mul(d).umod(o);return this.g.mulAdd(f,s,h)},U.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new D(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var H=s((function(e,t){var r=t;r.version="6.5.4",r.utils=d,r.rand=function(){throw new Error("unsupported")},r.curve=x,r.curves=S,r.ec=z,r.eddsa=null})).ec,V=r(308471),K=r(639121);const G=new(r(878366).Vy)("signing-key/5.7.0");let q=null;function Q(){return q||(q=new H("secp256k1")),q}class W{constructor(e){(0,K.yY)(this,"curve","secp256k1"),(0,K.yY)(this,"privateKey",(0,V.c$)(e)),32!==(0,V.cm)(this.privateKey)&&G.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=Q().keyFromPrivate((0,V.k9)(this.privateKey));(0,K.yY)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,K.yY)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,K.yY)(this,"_isSigningKey",!0)}_addPoint(e){const t=Q().keyFromPublic((0,V.k9)(this.publicKey)),r=Q().keyFromPublic((0,V.k9)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){const t=Q().keyFromPrivate((0,V.k9)(this.privateKey)),r=(0,V.k9)(e);32!==r.length&&G.throwArgumentError("bad digest length","digest",e);const n=t.sign(r,{canonical:!0});return(0,V.Pc)({recoveryParam:n.recoveryParam,r:(0,V.bj)("0x"+n.r.toString(16),32),s:(0,V.bj)("0x"+n.s.toString(16),32)})}computeSharedSecret(e){const t=Q().keyFromPrivate((0,V.k9)(this.privateKey)),r=Q().keyFromPublic((0,V.k9)(Y(e)));return(0,V.bj)("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function J(e,t){const r=(0,V.Pc)(t),n={r:(0,V.k9)(r.r),s:(0,V.k9)(r.s)};return"0x"+Q().recoverPubKey((0,V.k9)(e),n,r.recoveryParam).encode("hex",!1)}function Y(e,t){const r=(0,V.k9)(e);if(32===r.length){const e=new W(r);return t?"0x"+Q().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?(0,V.c$)(r):"0x"+Q().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+Q().keyFromPublic(r).getPublic(!0,"hex"):(0,V.c$)(r):G.throwArgumentError("invalid public or private key","key","[REDACTED]")}},605280:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(858954).Buffer}catch(_){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(_){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?""}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?f[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=h[e],l=p[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modrn(l).toString(e);r=(d=d.idivn(l)).isZero()?g+r:f[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,g=h>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],w=8191&v,A=v>>>13,C=0|a[4],E=8191&C,x=C>>>13,S=0|a[5],I=8191&S,k=S>>>13,_=0|a[6],T=8191&_,M=_>>>13,P=0|a[7],j=8191&P,D=P>>>13,O=0|a[8],B=8191&O,N=O>>>13,R=0|a[9],L=8191&R,F=R>>>13,U=0|s[0],z=8191&U,H=U>>>13,V=0|s[1],K=8191&V,G=V>>>13,q=0|s[2],Q=8191&q,W=q>>>13,J=0|s[3],Y=8191&J,Z=J>>>13,$=0|s[4],X=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,he=0|s[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,z)|0))<<13)|0;u=((o=Math.imul(f,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H);var ye=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,K)|0))<<13)|0;u=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,G)|0;var be=(u+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,Q)|0))<<13)|0;u=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,W)|0;var ve=(u+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Y)|0))<<13)|0;u=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(x,z)|0,o=Math.imul(x,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Z)|0;var we=(u+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var Ae=(u+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;u=((o=o+Math.imul(f,ne)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0;var Ce=(u+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;u=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0;var Ee=(u+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(f,ce)|0))<<13)|0;u=((o=o+Math.imul(f,ue)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(N,z)|0,o=Math.imul(N,H),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(D,K)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,Z)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,ue)|0;var xe=(u+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;u=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,G)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,de)|0,o=o+Math.imul(g,fe)|0;var Se=(u+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ge)|0)+Math.imul(f,pe)|0))<<13)|0;u=((o=o+Math.imul(f,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,n=n+Math.imul(y,de)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Ie=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((o=o+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,W))+Math.imul(F,Q)|0,o=Math.imul(F,W),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,ue)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,ue)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var ke=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,Z))+Math.imul(F,Y)|0,o=Math.imul(F,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,n=n+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,fe)|0;var _e=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ge)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,ge)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,n=n+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Te=(u+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(j,ce)|0,i=(i=i+Math.imul(j,ue)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,ue)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(u+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ge)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,ue)|0,n=n+Math.imul(j,de)|0,i=(i=i+Math.imul(j,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((o=o+Math.imul(M,ge)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,ce),i=(i=Math.imul(L,ue))+Math.imul(F,ce)|0,o=Math.imul(F,ue),n=n+Math.imul(B,de)|0,i=(i=i+Math.imul(B,fe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,fe)|0;var je=(u+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,ge)|0)+Math.imul(D,pe)|0))<<13)|0;u=((o=o+Math.imul(D,ge)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,de),i=(i=Math.imul(L,fe))+Math.imul(F,de)|0,o=Math.imul(F,fe);var De=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(N,pe)|0))<<13)|0;u=((o=o+Math.imul(N,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(u+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,ge))+Math.imul(F,pe)|0))<<13)|0;return u=((o=Math.imul(F,ge))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=Ae,c[6]=Ce,c[7]=Ee,c[8]=xe,c[9]=Se,c[10]=Ie,c[11]=ke,c[12]=_e,c[13]=Te,c[14]=Me,c[15]=Pe,c[16]=je,c[17]=De,c[18]=Oe,0!==u&&(c[19]=u,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function b(e,t,r){return y(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(m=g),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?g(this,e,t):r<1024?y(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;!(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;!(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;!(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;!(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new I(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function A(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},A.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(e,t){e.iushrn(this.n,0,t)},A.prototype.imulK=function(e){return e.imul(this.k)},i(C,A),C.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new C;else if("p224"===e)t=new E;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return w[e]=t,t},I.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){n(!(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},I.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var g=h,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var d=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,I),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},771414:(e,t,r)=>{"use strict";r.d(t,{dz:()=>o,d5:()=>c,_E:()=>a,Wj:()=>f,H5:()=>h,YW:()=>l,dg:()=>g,_v:()=>p});var n=r(308471);const i=new(r(878366).Vy)("strings/5.7.0");var o,a;function s(e,t,r,n,i){if(e===a.BAD_PREFIX||e===a.UNEXPECTED_CONTINUE){let e=0;for(let n=t+1;n>6==2;n++)e++;return e}return e===a.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(o||(o={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(a||(a={}));const c=Object.freeze({error:function(e,t,r,n,o){return i.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:s,replace:function(e,t,r,n,i){return e===a.OVERLONG?(n.push(i),0):(n.push(65533),s(e,t,r))}});function u(e,t){null==t&&(t=c.error),e=(0,n.k9)(e);const r=[];let i=0;for(;i>7)){r.push(n);continue}let o=null,s=null;if(192==(224&n))o=1,s=127;else if(224==(240&n))o=2,s=2047;else{if(240!=(248&n)){i+=t(128==(192&n)?a.UNEXPECTED_CONTINUE:a.BAD_PREFIX,i-1,e,r);continue}o=3,s=65535}if(i-1+o>=e.length){i+=t(a.OVERRUN,i-1,e,r);continue}let c=n&(1<<8-o-1)-1;for(let u=0;u1114111?i+=t(a.OUT_OF_RANGE,i-1-o,e,r,c):c>=55296&&c<=57343?i+=t(a.UTF16_SURROGATE,i-1-o,e,r,c):c<=s?i+=t(a.OVERLONG,i-1-o,e,r,c):r.push(c))}return r}function l(e,t=o.current){t!=o.current&&(i.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n>6|192),r.push(63&t|128);else if(55296==(64512&t)){n++;const i=e.charCodeAt(n);if(n>=e.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&t)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(t>>12|224),r.push(t>>6&63|128),r.push(63&t|128)}return(0,n.k9)(r)}function d(e){const t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function f(e,t){return'"'+u(e,t).map((e=>{if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?d(e):d(55296+((e-=65536)>>10&1023))+d(56320+(1023&e))})).join("")+'"'}function h(e){return e.map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")}function p(e,t){return h(u(e,t))}function g(e,t=o.current){return u(l(e,t))}},722677:(e,t,r)=>{"use strict";r.d(t,{Eh:()=>h,$2:()=>C,Kt:()=>b,qg:()=>_,x_:()=>v,lK:()=>I});var n=r(208402),i=r(937457),o=r(308471),a=r(243514),s=r(350234),c=r(639121),u=r(127196),l=r(507670),d=r(878366);const f=new d.Vy("transactions/5.7.0");var h;function p(e){return"0x"===e?null:(0,n.bv)(e)}function g(e){return"0x"===e?a.XK:i.gH.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(h||(h={}));const m=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],y={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function b(e){const t=(0,l.uN)(e);return(0,n.bv)((0,o.Ab)((0,s.S)((0,o.Ab)(t,1)),12))}function v(e,t){return b((0,l.jL)((0,o.k9)(e),t))}function w(e,t){const r=(0,o.gr)(i.gH.from(e).toHexString());return r.length>32&&f.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function A(e,t){return{address:(0,n.bv)(e),storageKeys:(t||[]).map(((t,r)=>(32!==(0,o.cm)(t)&&f.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase())))}}function C(e){if(Array.isArray(e))return e.map(((e,t)=>Array.isArray(e)?(e.length>2&&f.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),A(e[0],e[1])):A(e.address,e.storageKeys)));const t=Object.keys(e).map((t=>{const r=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return A(t,Object.keys(r).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}function E(e){return C(e).map((e=>[e.address,e.storageKeys]))}function x(e,t){if(null!=e.gasPrice){const t=i.gH.from(e.gasPrice),r=i.gH.from(e.maxFeePerGas||0);t.eq(r)||f.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}const r=[w(e.chainId||0,"chainId"),w(e.nonce||0,"nonce"),w(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),w(e.maxFeePerGas||0,"maxFeePerGas"),w(e.gasLimit||0,"gasLimit"),null!=e.to?(0,n.bv)(e.to):"0x",w(e.value||0,"value"),e.data||"0x",E(e.accessList||[])];if(t){const e=(0,o.Pc)(t);r.push(w(e.recoveryParam,"recoveryParam")),r.push((0,o.gr)(e.r)),r.push((0,o.gr)(e.s))}return(0,o.qn)(["0x02",u.encode(r)])}function S(e,t){const r=[w(e.chainId||0,"chainId"),w(e.nonce||0,"nonce"),w(e.gasPrice||0,"gasPrice"),w(e.gasLimit||0,"gasLimit"),null!=e.to?(0,n.bv)(e.to):"0x",w(e.value||0,"value"),e.data||"0x",E(e.accessList||[])];if(t){const e=(0,o.Pc)(t);r.push(w(e.recoveryParam,"recoveryParam")),r.push((0,o.gr)(e.r)),r.push((0,o.gr)(e.s))}return(0,o.qn)(["0x01",u.encode(r)])}function I(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&f.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){(0,c.qN)(e,y);const r=[];m.forEach((function(t){let n=e[t.name]||[];const i={};t.numeric&&(i.hexPad="left"),n=(0,o.k9)((0,o.c$)(n,i)),t.length&&n.length!==t.length&&n.length>0&&f.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=(0,o.gr)(n),n.length>t.maxLength&&f.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n)),r.push((0,o.c$)(n))}));let n=0;if(null!=e.chainId?(n=e.chainId,"number"!=typeof n&&f.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!(0,o.f)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push((0,o.c$)(n)),r.push("0x"),r.push("0x")),!t)return u.encode(r);const i=(0,o.Pc)(t);let a=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),a+=2*n+8,i.v>28&&i.v!==a&&f.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==a&&f.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push((0,o.c$)(a)),r.push((0,o.gr)((0,o.k9)(i.r))),r.push((0,o.gr)((0,o.k9)(i.s))),u.encode(r)}(e,t);switch(e.type){case 1:return S(e,t);case 2:return x(e,t)}return f.throwError(`unsupported transaction type: ${e.type}`,d.Vy.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function k(e,t,r){try{const r=g(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(n){f.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,o.bj)(t[1],32),e.s=(0,o.bj)(t[2],32);try{const t=(0,s.S)(r(e));e.from=v(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(n){}}function _(e){const t=(0,o.k9)(e);if(t[0]>127)return function(e){const t=u.decode(e);9!==t.length&&6!==t.length&&f.throwArgumentError("invalid raw transaction","rawTransaction",e);const r={nonce:g(t[0]).toNumber(),gasPrice:g(t[1]),gasLimit:g(t[2]),to:p(t[3]),value:g(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=i.gH.from(t[6]).toNumber()}catch(n){return r}if(r.r=(0,o.bj)(t[7],32),r.s=(0,o.bj)(t[8],32),i.gH.from(r.r).isZero()&&i.gH.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let i=r.v-27;const a=t.slice(0,6);0!==r.chainId&&(a.push((0,o.c$)(r.chainId)),a.push("0x"),a.push("0x"),i-=2*r.chainId+8);const c=(0,s.S)(u.encode(a));try{r.from=v(c,{r:(0,o.c$)(r.r),s:(0,o.c$)(r.s),recoveryParam:i})}catch(n){}r.hash=(0,s.S)(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){const t=u.decode(e.slice(1));8!==t.length&&11!==t.length&&f.throwArgumentError("invalid component count for transaction type: 1","payload",(0,o.c$)(e));const r={type:1,chainId:g(t[0]).toNumber(),nonce:g(t[1]).toNumber(),gasPrice:g(t[2]),gasLimit:g(t[3]),to:p(t[4]),value:g(t[5]),data:t[6],accessList:C(t[7])};return 8===t.length||(r.hash=(0,s.S)(e),k(r,t.slice(8),S)),r}(t);case 2:return function(e){const t=u.decode(e.slice(1));9!==t.length&&12!==t.length&&f.throwArgumentError("invalid component count for transaction type: 2","payload",(0,o.c$)(e));const r=g(t[2]),n=g(t[3]),i={type:2,chainId:g(t[0]).toNumber(),nonce:g(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:g(t[4]),to:p(t[5]),value:g(t[6]),data:t[7],accessList:C(t[8])};return 9===t.length||(i.hash=(0,s.S)(e),k(i,t.slice(9),x)),i}(t)}return f.throwError(`unsupported transaction type: ${t[0]}`,d.Vy.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},632808:(e,t,r)=>{"use strict";r.d(t,{Em:()=>p,x6:()=>g,wt:()=>m});var n=r(990531),i=r(308471),o=r(639121),a=r(771414),s=r(878366);var c=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};function u(e,t){return c(this,void 0,void 0,(function*(){null==t&&(t={});const r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};if(!0!==t.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=t.fetchOptions){const e=t.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}const n=yield fetch(e,r),o=yield n.arrayBuffer(),a={};return n.headers.forEach?n.headers.forEach(((e,t)=>{a[t.toLowerCase()]=e})):n.headers.keys().forEach((e=>{a[e.toLowerCase()]=n.headers.get(e)})),{headers:a,statusCode:n.status,statusMessage:n.statusText,body:(0,i.k9)(new Uint8Array(o))}}))}var l=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const d=new s.Vy("web/5.7.1");function f(e){return new Promise((t=>{setTimeout(t,e)}))}function h(e,t){if(null==e)return null;if("string"==typeof e)return e;if((0,i.f)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,a._v)(e)}catch(r){}return(0,i.c$)(e)}return e}function p(e,t,r){const i="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;d.assertArgument(i>0&&i%1==0,"invalid connection throttle limit","connection.throttleLimit",i);const c="object"==typeof e?e.throttleCallback:null,p="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;d.assertArgument(p>0&&p%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",p);const g="object"==typeof e&&!!e.errorPassThrough,m={};let y=null;const b={method:"GET"};let v=!1,w=12e4;if("string"==typeof e)y=e;else if("object"==typeof e){if(null!=e&&null!=e.url||d.throwArgumentError("missing URL","connection.url",e),y=e.url,"number"==typeof e.timeout&&e.timeout>0&&(w=e.timeout),e.headers)for(const t in e.headers)m[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(v=!0);if(b.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==y.substring(0,6)&&!0!==e.allowInsecureAuthentication&&d.throwError("basic authentication requires a secure https url",s.Vy.errors.INVALID_ARGUMENT,{argument:"url",url:y,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;m.authorization={key:"Authorization",value:"Basic "+(0,n.l)((0,a.YW)(t))}}null!=e.skipFetchSetup&&(b.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(b.fetchOptions=(0,o.Ic)(e.fetchOptions))}const A=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),C=y?y.match(A):null;if(C)try{const e={statusCode:200,statusMessage:"OK",headers:{"content-type":C[1]||"text/plain"},body:C[2]?(0,n.D)(C[3]):(E=C[3],(0,a.YW)(E.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16))))))};let t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(k){d.throwError("processing response error",s.Vy.errors.SERVER_ERROR,{body:h(C[1],C[2]),error:k,requestBody:null,requestMethod:"GET",url:y})}var E;t&&(b.method="POST",b.body=t,null==m["content-type"]&&(m["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==m["content-length"]&&(m["content-length"]={key:"Content-Length",value:String(t.length)}));const x={};Object.keys(m).forEach((e=>{const t=m[e];x[t.key]=t.value})),b.headers=x;const S=function(){let e=null;return{promise:new Promise((function(t,r){w&&(e=setTimeout((()=>{null!=e&&(e=null,r(d.makeError("timeout",s.Vy.errors.TIMEOUT,{requestBody:h(b.body,x["content-type"]),requestMethod:b.method,timeout:w,url:y})))}),w))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),I=function(){return l(this,void 0,void 0,(function*(){for(let e=0;e=300)&&(S.cancel(),d.throwError("bad response",s.Vy.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:h(n,t.headers?t.headers["content-type"]:null),requestBody:h(b.body,x["content-type"]),requestMethod:b.method,url:y})),r)try{const e=yield r(n,t);return S.cancel(),e}catch(k){if(k.throttleRetry&&e"content-type"===e.toLowerCase())).length||(r.headers=(0,o.Ic)(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};e=r}return p(e,n,((e,t)=>{let n=null;if(null!=e)try{n=JSON.parse((0,a._v)(e))}catch(i){d.throwError("invalid JSON",s.Vy.errors.SERVER_ERROR,{body:e,error:i})}return r&&(n=r(n,t)),n}))}function m(e,t){return t||(t={}),null==(t=(0,o.Ic)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,n){let i=null,o=!1;const a=()=>!o&&(o=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout((()=>{a()&&n(new Error("timeout"))}),t.timeout));const s=t.retryLimit;let c=0;!function i(){return e().then((function(e){if(void 0!==e)a()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!o){if(c++,c>s)return void(a()&&n(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));et.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null}),(function(e){a()&&n(e)}))}()}))}},549002:function(e,t,r){var n,i;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function i(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(n){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&r?o:void 0!==console[n]?i(console,n):void 0!==console.log?i(console,"log"):e)}function s(t,r){for(var i=0;i=0&&r<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(o=r,!1!==n&&l(r),s.call(a,r,e),typeof console===t&&r0&&(o=2048-i-16),n.padding="0".repeat(o),u({publicKey:e,data:JSON.stringify(n),version:r})},t.decrypt=l,t.decryptSafely=function({encryptedData:e,privateKey:t}){if((0,c.isNullish)(e))throw new Error("Missing encryptedData parameter");if((0,c.isNullish)(t))throw new Error("Missing privateKey parameter");return JSON.parse(l({encryptedData:e,privateKey:t})).data},t.getEncryptionPublicKey=function(e){const t=d(e),r=a.box.keyPair.fromSecretKey(t).publicKey;return s.encodeBase64(r)}},900385:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rawEncode=t.parseNumber=t.solidityPack=void 0;const i=r(968683),o=n(r(439404)),a=r(17886),s=r(54907);function c(e){return e.endsWith("]")}function u(e){const t=e.match(/(.*)\[(.*?)\]$/u);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function l(e){const t=/^\D+(\d+)$/u.exec(e);if(null===t)throw new Error(`Invalid parseTypeN input "${e}".`);return parseInt(t[1],10)}function d(e){const t=typeof e;if("string"===t)return(0,i.isHexPrefixed)(e)?new o.default((0,a.stripHexPrefix)(e),16):new o.default(e,10);if("number"===t)return new o.default(e);if(e&&Object.prototype.hasOwnProperty.call(e,"toArray")||o.default.isBN(e))return e;throw new Error("Argument is not a number")}function f(e,t,r){if(c(e)){const r=e.replace(/\[.*?\]/u,"");if(!c(r)){const r=u(e);if("dynamic"!==r&&0!==r&&null!==r&&t.length>r)throw new Error(`Elements exceed array size: ${r}`)}const n=t.map((e=>f(r,e,256)));return Buffer.concat(n)}if("bytes"===e)return t;if("string"===e)return Buffer.from(t,"utf8");if("bool"===e){r=r||8;const e=Array(r/4).join("0");return Buffer.from(t?`${e}1`:`${e}0`,"hex")}if("address"===e){let e=20;return r&&(e=r/8),(0,i.setLengthLeft)((0,i.toBuffer)(t),e)}if(e.startsWith("bytes")){const r=l(e);if(r<1||r>32)throw new Error(`Invalid bytes width: ${r}`);return"number"==typeof t&&(t=(0,s.normalize)(t)),(0,i.setLengthRight)((0,i.toBuffer)(t),r)}if(e.startsWith("uint")){const n=l(e);if(n%8||n<8||n>256)throw new Error(`Invalid uint width: ${n}`);const i=d(t);if(i.bitLength()>n)throw new Error(`Supplied uint exceeds width: ${n} vs ${i.bitLength()}`);return r=r||n,i.toArrayLike(Buffer,"be",r/8)}if(e.startsWith("int")){const n=l(e);if(n%8||n<8||n>256)throw new Error(`Invalid int width: ${n}`);const i=d(t);if(i.bitLength()>n)throw new Error(`Supplied int exceeds width: ${n} vs ${i.bitLength()}`);return r=r||n,i.toTwos(n).toArrayLike(Buffer,"be",r/8)}throw new Error(`Unsupported or invalid type: ${JSON.stringify(e)}`)}function h(e){return e.startsWith("int[")?`int256${e.slice(3)}`:"int"===e?"int256":e.startsWith("uint[")?`uint256${e.slice(4)}`:"uint"===e?"uint256":e.startsWith("fixed[")?`fixed128x128${e.slice(5)}`:"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?`ufixed128x128${e.slice(6)}`:"ufixed"===e?"ufixed128x128":e}function p(e,t){if("address"===e)return p("uint160",d(t));if("bool"===e)return p("uint8",t?1:0);if("string"===e)return p("bytes",Buffer.from(t,"utf8"));if(c(e)){if(void 0===t.length)throw new Error("Not an array?");const r=u(e);if("dynamic"!==r&&0!==r&&null!==r&&t.length>r)throw new Error(`Elements exceed array size: ${r}`);const n=[];e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t));for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.push(p(e,t[i]));if("dynamic"===r){const e=p("uint256",t.length);n.unshift(e)}return Buffer.concat(n)}if("bytes"===e){t=Buffer.from(t);let e=Buffer.concat([p("uint256",t.length),t]);return t.length%32!=0&&(e=Buffer.concat([e,(0,i.zeros)(32-t.length%32)])),e}if(e.startsWith("bytes")){const r=l(e);if(r<1||r>32)throw new Error(`Invalid bytes width: ${r}`);const n="number"==typeof t?(0,s.normalize)(t):t;return(0,i.setLengthRight)((0,i.toBuffer)(n),32)}if(e.startsWith("uint")){const r=l(e);if(r%8||r<8||r>256)throw new Error(`Invalid uint width: ${r}`);const n=d(t);if(n.bitLength()>r)throw new Error(`Supplied uint exceeds width: ${r} vs ${n.bitLength()}`);if(n.isNeg())throw new Error("Supplied uint is negative");return n.toArrayLike(Buffer,"be",32)}if(e.startsWith("int")){const r=l(e);if(r%8||r<8||r>256)throw new Error(`Invalid int width: ${r}`);const n=d(t);if(n.bitLength()>r)throw new Error(`Supplied int exceeds width: ${r} vs ${n.bitLength()}`);return n.toTwos(256).toArrayLike(Buffer,"be",32)}if(e.startsWith("ufixed")){const r=m(e),n=d(t);if(n.isNeg())throw new Error("Supplied ufixed is negative");return p("uint256",n.mul(new o.default(2).pow(new o.default(r[1]))))}if(e.startsWith("fixed")){const r=m(e);return p("int256",d(t).mul(new o.default(2).pow(new o.default(r[1]))))}throw new Error(`Unsupported or invalid type: ${JSON.stringify(e)}`)}function g(e){return"string"===e||"bytes"===e||"dynamic"===u(e)}function m(e){const t=/^\D+(\d+)x(\d+)$/u.exec(e);if(null===t||t.length<1)throw new Error(`Invalid parseTypeNxM input "${e}".`);return[parseInt(t[1],10),parseInt(t[2],10)]}t.solidityPack=function(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");const r=[];for(let n=0;n{if(c(e)){const t=u(e);i+="dynamic"!==t&&null!==t?32*t:32}else i+=32}));for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractPublicKey=t.recoverPersonalSignature=t.personalSign=void 0;const n=r(968683),i=r(54907);function o(e,t){const r=(0,n.hashPersonalMessage)((0,i.legacyToBuffer)(e));return(0,i.recoverPublicKey)(r,t)}t.personalSign=function({privateKey:e,data:t}){if((0,i.isNullish)(t))throw new Error("Missing data parameter");if((0,i.isNullish)(e))throw new Error("Missing privateKey parameter");const r=(0,i.legacyToBuffer)(t),o=(0,n.hashPersonalMessage)(r),a=(0,n.ecsign)(o,e);return(0,i.concatSig)((0,n.toBuffer)(a.v),a.r,a.s)},t.recoverPersonalSignature=function({data:e,signature:t}){if((0,i.isNullish)(e))throw new Error("Missing data parameter");if((0,i.isNullish)(t))throw new Error("Missing signature parameter");const r=o(e,t),a=(0,n.publicToAddress)(r);return(0,n.bufferToHex)(a)},t.extractPublicKey=function({data:e,signature:t}){if((0,i.isNullish)(e))throw new Error("Missing data parameter");if((0,i.isNullish)(t))throw new Error("Missing signature parameter");return`0x${o(e,t).toString("hex")}`}},910169:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedSignature=t.signTypedData=t.typedSignatureHash=t.TypedDataUtils=t.TYPED_MESSAGE_SCHEMA=t.SignTypedDataVersion=void 0;const n=r(968683),i=r(32019),o=r(17886),a=r(900385),s=r(54907);var c;function u(e,t){if(!Object.keys(c).includes(e))throw new Error(`Invalid version: '${e}'`);if(t&&!t.includes(e))throw new Error(`SignTypedDataVersion not allowed: '${e}'. Allowed versions are: ${t.join(", ")}`)}function l(e,t,r,f,h){if(u(h,[c.V3,c.V4]),void 0!==e[r])return["bytes32",h===c.V4&&null==f?"0x0000000000000000000000000000000000000000000000000000000000000000":(0,n.arrToBufArr)((0,i.keccak256)(d(r,f,e,h)))];if(void 0===f)throw new Error(`missing value for field ${t} of type ${r}`);if("bytes"===r){if("number"==typeof f)f=(0,s.numberToBuffer)(f);else if((0,o.isHexString)(f)){const e=f.length%2?"0":"";f=Buffer.from(e+f.slice(2),"hex")}else f=Buffer.from(f,"utf8");return["bytes32",(0,n.arrToBufArr)((0,i.keccak256)(f))]}if("string"===r)return f="number"==typeof f?(0,s.numberToBuffer)(f):Buffer.from(null!=f?f:"","utf8"),["bytes32",(0,n.arrToBufArr)((0,i.keccak256)(f))];if(r.endsWith("]")){if(h===c.V3)throw new Error("Arrays are unimplemented in encodeData; use V4 extension");const o=r.slice(0,r.lastIndexOf("[")),s=f.map((r=>l(e,t,o,r,h)));return["bytes32",(0,n.arrToBufArr)((0,i.keccak256)((0,a.rawEncode)(s.map((([e])=>e)),s.map((([,e])=>e)))))]}return[r,f]}function d(e,t,r,n){u(n,[c.V3,c.V4]);const i=["bytes32"],o=[g(e,r)];for(const a of r[e]){if(n===c.V3&&void 0===t[a.name])continue;const[e,s]=l(r,a.name,a.type,t[a.name],n);i.push(e),o.push(s)}return(0,a.rawEncode)(i,o)}function f(e,t){let r="";const n=h(e,t);n.delete(e);const i=[e,...Array.from(n).sort()];for(const o of i){if(!t[o])throw new Error(`No type definition specified: ${o}`);r+=`${o}(${t[o].map((({name:e,type:t})=>`${t} ${e}`)).join(",")})`}return r}function h(e,t,r=new Set){if("string"!=typeof e)throw new Error(`Invalid findTypeDependencies input ${JSON.stringify(e)}`);const n=e.match(/^\w*/u);if([e]=n,r.has(e)||void 0===t[e])return r;r.add(e);for(const i of t[e])h(i.type,t,r);return r}function p(e,t,r,o){u(o,[c.V3,c.V4]);const a=d(e,t,r,o),s=(0,i.keccak256)(a);return(0,n.arrToBufArr)(s)}function g(e,t){const r=Buffer.from(f(e,t),"utf-8");return(0,n.arrToBufArr)((0,i.keccak256)(r))}function m(e){const r={};for(const n in t.TYPED_MESSAGE_SCHEMA.properties)e[n]&&(r[n]=e[n]);return"types"in r&&(r.types=Object.assign({EIP712Domain:[]},r.types)),r}function y(e,t){u(t,[c.V3,c.V4]);const r=m(e),{domain:n}=r;return p("EIP712Domain",n,{EIP712Domain:r.types.EIP712Domain},t)}function b(e){const t=new Error("Expect argument to be non-empty array");if("object"!=typeof e||!("length"in e)||!e.length)throw t;const r=e.map((function(e){return"bytes"!==e.type?e.value:(0,s.legacyToBuffer)(e.value)})),o=e.map((function(e){return e.type})),c=e.map((function(e){if(!e.name)throw t;return`${e.type} ${e.name}`}));return(0,n.arrToBufArr)((0,i.keccak256)((0,a.solidityPack)(["bytes32","bytes32"],[(0,i.keccak256)((0,a.solidityPack)(new Array(e.length).fill("string"),c)),(0,i.keccak256)((0,a.solidityPack)(o,r))])))}!function(e){e.V1="V1",e.V3="V3",e.V4="V4"}(c=t.SignTypedDataVersion||(t.SignTypedDataVersion={})),t.TYPED_MESSAGE_SCHEMA={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},t.TypedDataUtils={encodeData:d,encodeType:f,findTypeDependencies:h,hashStruct:p,hashType:g,sanitizeData:m,eip712Hash:function(e,t){u(t,[c.V3,c.V4]);const r=m(e),o=[Buffer.from("1901","hex")];return o.push(y(e,t)),"EIP712Domain"!==r.primaryType&&o.push(p(r.primaryType,r.message,r.types,t)),(0,n.arrToBufArr)((0,i.keccak256)(Buffer.concat(o)))},eip712DomainHash:y},t.typedSignatureHash=function(e){const t=b(e);return(0,n.bufferToHex)(t)},t.signTypedData=function({privateKey:e,data:r,version:i}){if(u(i),(0,s.isNullish)(r))throw new Error("Missing data parameter");if((0,s.isNullish)(e))throw new Error("Missing private key parameter");const o=i===c.V1?b(r):t.TypedDataUtils.eip712Hash(r,i),a=(0,n.ecsign)(o,e);return(0,s.concatSig)((0,n.toBuffer)(a.v),a.r,a.s)},t.recoverTypedSignature=function({data:e,signature:r,version:i}){if(u(i),(0,s.isNullish)(e))throw new Error("Missing data parameter");if((0,s.isNullish)(r))throw new Error("Missing signature parameter");const o=i===c.V1?b(e):t.TypedDataUtils.eip712Hash(e,i),a=(0,s.recoverPublicKey)(o,r),l=(0,n.publicToAddress)(a);return(0,n.bufferToHex)(l)}},54907:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToBuffer=t.normalize=t.recoverPublicKey=t.concatSig=t.legacyToBuffer=t.isNullish=t.padWithZeroes=void 0;const n=r(968683),i=r(17886);function o(e,t){if(""!==e&&!/^[a-f0-9]+$/iu.test(e))throw new Error(`Expected an unprefixed hex string. Received: ${e}`);if(t<0)throw new Error(`Expected a non-negative integer target length. Received: ${t}`);return String.prototype.padStart.call(e,t,"0")}t.padWithZeroes=o,t.isNullish=function(e){return null==e},t.legacyToBuffer=function(e){return"string"!=typeof e||(0,i.isHexString)(e)?(0,n.toBuffer)(e):Buffer.from(e)},t.concatSig=function(e,t,r){const a=(0,n.fromSigned)(t),s=(0,n.fromSigned)(r),c=(0,n.bufferToInt)(e),u=o((0,n.toUnsigned)(a).toString("hex"),64),l=o((0,n.toUnsigned)(s).toString("hex"),64),d=(0,i.stripHexPrefix)((0,i.intToHex)(c));return(0,n.addHexPrefix)(u.concat(l,d))},t.recoverPublicKey=function(e,t){const r=(0,n.fromRpcSig)(t);return(0,n.ecrecover)(e,r.v,r.r,r.s)},t.normalize=function(e){if(e){if("number"==typeof e){if(e<0)return"0x";const t=(0,n.toBuffer)(e);e=(0,n.bufferToHex)(t)}if("string"!=typeof e){let t="eth-sig-util.normalize() requires hex string or integer input.";throw t+=` received ${typeof e}: ${e}`,new Error(t)}return(0,n.addHexPrefix)(e.toLowerCase())}},t.numberToBuffer=function(e){const t=e.toString(16),r=t.length%2?"0":"";return Buffer.from(r+t,"hex")}},218045:e=>{"use strict";e.exports=function(e,t){var r=new Array(arguments.length-1),n=0,i=2,o=!0;for(;i{"use strict";var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(var r=0;--t%4>1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),i=new Array(123),o=0;o<64;)i[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;r.encode=function(e,t,r){for(var i,o=null,a=[],s=0,c=0;t>2],i=(3&u)<<4,c=1;break;case 1:a[s++]=n[i|u>>4],i=(15&u)<<2,c=2;break;case 2:a[s++]=n[i|u>>6],a[s++]=n[63&u],c=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return c&&(a[s++]=n[i],a[s++]=61,1===c&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";r.decode=function(e,t,r){for(var n,o=r,s=0,c=0;c1)break;if(void 0===(u=i[u]))throw Error(a);switch(s){case 0:n=u,s=1;break;case 1:t[r++]=n<<2|(48&u)>>4,n=u,s=2;break;case 2:t[r++]=(15&n)<<4|(60&u)>>2,n=u,s=3;break;case 3:t[r++]=(3&n)<<6|u,s=0}}if(1===s)throw Error(a);return r-o},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},248561:e=>{"use strict";function t(e,r){"string"==typeof e&&(r=e,e=void 0);var n=[];function i(e){if("string"!=typeof e){var r=o();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var a=Object.keys(e),s=new Array(a.length+1),c=new Array(a.length),u=0;u{"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],n=0;n{"use strict";e.exports=o;var n=r(218045),i=r(384153)("fs");function o(e,t,r){return"function"==typeof t?(r=t,t={}):t||(t={}),r?!t.xhr&&i&&i.readFile?i.readFile(e,(function(n,i){return n&&"undefined"!=typeof XMLHttpRequest?o.xhr(e,t,r):n?r(n):r(null,t.binary?i:i.toString("utf8"))})):o.xhr(e,t,r):n(o,this,e,t)}o.xhr=function(e,t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4===n.readyState){if(0!==n.status&&200!==n.status)return r(Error("status "+n.status));if(t.binary){var e=n.response;if(!e){e=[];for(var i=0;i{"use strict";function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),n=128===r[3];function i(e,n,i){t[0]=e,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3]}function o(e,n,i){t[0]=e,n[i]=r[3],n[i+1]=r[2],n[i+2]=r[1],n[i+3]=r[0]}function a(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],t[0]}function s(e,n){return r[3]=e[n],r[2]=e[n+1],r[1]=e[n+2],r[0]=e[n+3],t[0]}e.writeFloatLE=n?i:o,e.writeFloatBE=n?o:i,e.readFloatLE=n?a:s,e.readFloatBE=n?s:a}():function(){function t(e,t,r,n){var i=t<0?1:0;if(i&&(t=-t),0===t)e(1/t>0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var o=Math.floor(Math.log(t)/Math.LN2);e((i<<31|o+127<<23|8388607&Math.round(t*Math.pow(2,-o)*8388608))>>>0,r,n)}}function a(e,t,r){var n=e(t,r),i=2*(n>>31)+1,o=n>>>23&255,a=8388607&n;return 255===o?a?NaN:i*(1/0):0===o?1401298464324817e-60*i*a:i*Math.pow(2,o-150)*(a+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=a.bind(null,i),e.readFloatBE=a.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function i(e,n,i){t[0]=e,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3],n[i+4]=r[4],n[i+5]=r[5],n[i+6]=r[6],n[i+7]=r[7]}function o(e,n,i){t[0]=e,n[i]=r[7],n[i+1]=r[6],n[i+2]=r[5],n[i+3]=r[4],n[i+4]=r[3],n[i+5]=r[2],n[i+6]=r[1],n[i+7]=r[0]}function a(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function s(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?i:o,e.writeDoubleBE=n?o:i,e.readDoubleLE=n?a:s,e.readDoubleBE=n?s:a}():function(){function t(e,t,r,n,i,o){var a=n<0?1:0;if(a&&(n=-n),0===n)e(0,i,o+t),e(1/n>0?0:2147483648,i,o+r);else if(isNaN(n))e(0,i,o+t),e(2146959360,i,o+r);else if(n>17976931348623157e292)e(0,i,o+t),e((a<<31|2146435072)>>>0,i,o+r);else{var s;if(n<22250738585072014e-324)e((s=n/5e-324)>>>0,i,o+t),e((a<<31|s/4294967296)>>>0,i,o+r);else{var c=Math.floor(Math.log(n)/Math.LN2);1024===c&&(c=1023),e(4503599627370496*(s=n*Math.pow(2,-c))>>>0,i,o+t),e((a<<31|c+1023<<20|1048576*s&1048575)>>>0,i,o+r)}}}function a(e,t,r,n,i){var o=e(n,i+t),a=e(n,i+r),s=2*(a>>31)+1,c=a>>>20&2047,u=4294967296*(1048575&a)+o;return 2047===c?u?NaN:s*(1/0):0===c?5e-324*s*u:s*Math.pow(2,c-1075)*(u+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=a.bind(null,i,0,4),e.readDoubleBE=a.bind(null,o,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function i(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},384153:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},579207:(e,t)=>{"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},i=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),i="";r&&(i=t.shift()+"/");for(var o=0;o0&&".."!==t[o-1]?t.splice(--o,2):r?t.splice(o,1):++o:"."===t[o]?t.splice(o,1):++o;return i+t.join("/")};r.resolve=function(e,t,r){return r||(t=i(t)),n(t)?t:(r||(e=i(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?i(e+"/"+t):t)}},199390:e=>{"use strict";e.exports=function(e,t,r){var n=r||8192,i=n>>>1,o=null,a=n;return function(r){if(r<1||r>i)return e(r);a+r>n&&(o=e(n),a=0);var s=t.call(o,a,a+=r);return 7&a&&(a=1+(7|a)),s}}},181447:(e,t)=>{"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n191&&n<224?o[a++]=(31&n)<<6|63&e[t++]:n>239&&n<365?(n=((7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[a++]=55296+(n>>10),o[a++]=56320+(1023&n)):o[a++]=(15&n)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),a=0);return i?(a&&i.push(String.fromCharCode.apply(String,o.slice(0,a))),i.join("")):String.fromCharCode.apply(String,o.slice(0,a))},r.write=function(e,t,r){for(var n,i,o=r,a=0;a>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(i=e.charCodeAt(a+1)))?(n=65536+((1023&n)<<10)+(1023&i),++a,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-o}},550355:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;const n=r(644240),i=r(131238),o=r(747334);function a(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}t.getHash=a,t.createCurve=function(e,t){const r=t=>(0,o.weierstrass)({...e,...a(t)});return Object.freeze({...r(t),create:r})}},636661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;const n=r(80184),i=r(25059),o=BigInt(0),a=BigInt(1);t.wNAF=function(e,t){const r=(e,t)=>{const r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,i=t;for(;r>o;)r&a&&(n=n.add(i)),i=i.double(),r>>=a;return n},precomputeWindow(e,t){const{windows:r,windowSize:i}=n(t),o=[];let a=e,s=a;for(let n=0;n>=h,n>c&&(n-=f,o+=a);const s=t,p=t+Math.abs(n)-1,g=e%2!=0,m=n<0;0===n?l=l.add(r(g,i[s])):u=u.add(r(m,i[p]))}return{p:u,f:l}},wNAFCached(e,t,r,n){const i=e._WINDOW_SIZE||1;let o=t.get(e);return o||(o=this.precomputeWindow(e,i),1!==i&&t.set(e,n(o))),this.wNAF(i,o,r)}}},t.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,i.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},170562:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHasher=t.isogenyMap=t.hash_to_field=t.expand_message_xof=t.expand_message_xmd=void 0;const n=r(80184),i=r(25059);const o=i.bytesToNumberBE;function a(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function s(e,t){const r=new Uint8Array(e.length);for(let n=0;n255&&(t=n((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:o,blockLen:l}=n,d=Math.ceil(r/o);if(d>255)throw new Error("Invalid xmd length");const f=(0,i.concatBytes)(t,a(t.length,1)),h=a(0,l),p=a(r,2),g=new Array(d),m=n((0,i.concatBytes)(h,e,p,a(0,1),f));g[0]=n((0,i.concatBytes)(m,a(1,1),f));for(let c=1;c<=d;c++){const e=[s(m,g[c-1]),a(c+1,1),f];g[c]=n((0,i.concatBytes)(...e))}return(0,i.concatBytes)(...g).slice(0,r)}function d(e,t,r,n,o){if(c(e),c(t),u(r),t.length>255){const e=Math.ceil(2*n/8);t=o.create({dkLen:e}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:r}).update(e).update(a(r,2)).update(t).update(a(t.length,1)).digest()}function f(e,t,r){(0,i.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:a,k:s,m:f,hash:h,expand:p,DST:g}=r;c(e),u(t);const m=function(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return(0,i.utf8ToBytes)(e);throw new Error("DST must be Uint8Array or string")}(g),y=a.toString(2).length,b=Math.ceil((y+s)/8),v=t*f*b;let w;if("xmd"===p)w=l(e,m,v,h);else if("xof"===p)w=d(e,m,v,s,h);else{if("_internal_pass"!==p)throw new Error('expand must be "xmd" or "xof"');w=e}const A=new Array(t);for(let i=0;iArray.from(e).reverse()));return(t,n)=>{const[i,o,a,s]=r.map((r=>r.reduce(((r,n)=>e.add(e.mul(r,t),n)))));return t=e.div(i,o),n=e.mul(n,e.div(a,s)),{x:t,y:n}}},t.createHasher=function(e,t,r){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(n,i){const o=f(n,2,{...r,DST:r.DST,...i}),a=e.fromAffine(t(o[0])),s=e.fromAffine(t(o[1])),c=a.add(s).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,i){const o=f(n,1,{...r,DST:r.encodeDST,...i}),a=e.fromAffine(t(o[0])).clearCofactor();return a.assertValidity(),a}}}},80184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapHashToField=t.getMinHashLength=t.getFieldBytesLength=t.hashToPrivateScalar=t.FpSqrtEven=t.FpSqrtOdd=t.Field=t.nLength=t.FpIsSquare=t.FpDiv=t.FpInvertBatch=t.FpPow=t.validateField=t.isNegativeLE=t.FpSqrt=t.tonelliShanks=t.invert=t.pow2=t.pow=t.mod=void 0;const n=r(25059),i=BigInt(0),o=BigInt(1),a=BigInt(2),s=BigInt(3),c=BigInt(4),u=BigInt(5),l=BigInt(8);BigInt(9),BigInt(16);function d(e,t){const r=e%t;return r>=i?r:t+r}function f(e,t,r){if(r<=i||t 0");if(r===o)return i;let n=o;for(;t>i;)t&o&&(n=n*e%r),e=e*e%r,t>>=o;return n}function h(e,t){if(e===i||t<=i)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=d(e,t),n=t,a=i,s=o,c=o,u=i;for(;r!==i;){const e=n/r,t=n%r,i=a-c*e,o=s-u*e;n=r,r=t,a=c,s=u,c=i,u=o}if(n!==o)throw new Error("invert: does not exist");return d(a,t)}function p(e){const t=(e-o)/a;let r,n,s;for(r=e-o,n=0;r%a===i;r/=a,n++);for(s=a;si;)n*=n,n%=r;return n},t.invert=h,t.tonelliShanks=p,t.FpSqrt=g;t.isNegativeLE=(e,t)=>(d(e,t)&o)===o;const m=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function y(e,t,r){if(r 0");if(r===i)return e.ONE;if(r===o)return t;let n=e.ONE,a=t;for(;r>i;)r&o&&(n=e.mul(n,a)),a=e.sqr(a),r>>=o;return n}function b(e,t){const r=new Array(t.length),n=t.reduce(((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n))),e.ONE),i=e.inv(n);return t.reduceRight(((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n))),i),r}function v(e,t){const r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function w(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function A(e){const t=w(e);return t+Math.ceil(t/2)}t.validateField=function(e){const t=m.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},t.FpPow=y,t.FpInvertBatch=b,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?h(r,e.ORDER):e.inv(r))},t.FpIsSquare=function(e){const t=(e.ORDER-o)/a;return r=>{const n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},t.nLength=v,t.Field=function(e,t,r=!1,a={}){if(e<=i)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:s,nByteLength:c}=v(e,t);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const u=g(e),l=Object.freeze({ORDER:e,BITS:s,BYTES:c,MASK:(0,n.bitMask)(s),ZERO:i,ONE:o,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return i<=t&&te===i,isOdd:e=>(e&o)===o,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,r)=>d(t+r,e),sub:(t,r)=>d(t-r,e),mul:(t,r)=>d(t*r,e),pow:(e,t)=>y(l,e,t),div:(t,r)=>d(t*h(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:a.sqrt||(e=>u(l,e)),invertBatch:e=>b(l,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,c):(0,n.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(l)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){const i=(e=(0,n.ensureBytes)("privateHash",e)).length,a=v(t).nByteLength+8;if(a<24||i1024)throw new Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${i}`);return d(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-o)+o},t.getFieldBytesLength=w,t.getMinHashLength=A,t.mapHashToField=function(e,t,r=!1){const i=e.length,a=w(t),s=A(t);if(i<16||i1024)throw new Error(`expected ${s}-1024 bytes of input, got ${i}`);const c=d(r?(0,n.bytesToNumberBE)(e):(0,n.bytesToNumberLE)(e),t-o)+o;return r?(0,n.numberToBytesLE)(c,a):(0,n.numberToBytesBE)(c,a)}},25059:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.createHmacDrbg=t.bitMask=t.bitSet=t.bitGet=t.bitLen=t.utf8ToBytes=t.equalBytes=t.concatBytes=t.ensureBytes=t.numberToVarBytesBE=t.numberToBytesLE=t.numberToBytesBE=t.bytesToNumberLE=t.bytesToNumberBE=t.hexToBytes=t.hexToNumber=t.numberToHexUnpadded=t.bytesToHex=void 0;const r=BigInt(0),n=BigInt(1),i=BigInt(2),o=e=>e instanceof Uint8Array,a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e){if(!o(e))throw new Error("Uint8Array expected");let t="";for(let r=0;re+t.length),0));let r=0;return e.forEach((e=>{if(!o(e))throw new Error("Uint8Array expected");t.set(e,r),r+=e.length})),t}t.bytesToHex=s,t.numberToHexUnpadded=c,t.hexToNumber=u,t.hexToBytes=l,t.bytesToNumberBE=function(e){return u(s(e))},t.bytesToNumberLE=function(e){if(!o(e))throw new Error("Uint8Array expected");return u(s(Uint8Array.from(e).reverse()))},t.numberToBytesBE=d,t.numberToBytesLE=function(e,t){return d(e,t).reverse()},t.numberToVarBytesBE=function(e){return l(c(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=l(t)}catch(a){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${a}`)}else{if(!o(t))throw new Error(`${e} must be hex string or Uint8Array`);n=Uint8Array.from(t)}const i=n.length;if("number"==typeof r&&i!==r)throw new Error(`${e} expected ${r} bytes, got ${i}`);return n},t.concatBytes=f,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;rr;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n};t.bitSet=(e,t,i)=>e|(i?n:r)<(i<new Uint8Array(e),p=e=>Uint8Array.from(e);t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=h(e),i=h(e),o=0;const a=()=>{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),c=(e=h())=>{i=s(p([0]),e),n=s(),0!==e.length&&(i=s(p([1]),e),n=s())},u=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e{let r;for(a(),c(e);!(r=t(u()));)c();return a(),r}};const g={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.validateObject=function(e,t,r={}){const n=(t,r,n)=>{const i=g[r];if("function"!=typeof i)throw new Error(`Invalid validator "${r}", expected function`);const o=e[t];if(!(n&&void 0===o||i(o,e)))throw new Error(`Invalid param ${String(t)}=${o} (${typeof o}), expected ${r}`)};for(const[i,o]of Object.entries(t))n(i,o,!1);for(const[i,o]of Object.entries(r))n(i,o,!0);return e}},747334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;const n=r(80184),i=r(25059),o=r(25059),a=r(636661);const{bytesToNumberBE:s,hexToBytes:c}=i;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){const{Err:r}=t.DER;if(e.length<2||2!==e[0])throw new r("Invalid signature integer tag");const n=e[1],i=e.subarray(2,n+2);if(!n||i.length!==n)throw new r("Invalid signature integer: wrong length");if(128&i[0])throw new r("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:s(i),l:e.subarray(n+2)}},toSig(e){const{Err:r}=t.DER,n="string"==typeof e?c(e):e;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let i=n.length;if(i<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==i-2)throw new r("Invalid signature: incorrect length");const{d:o,l:a}=t.DER._parseInt(n.subarray(2)),{d:s,l:u}=t.DER._parseInt(a);if(u.length)throw new r("Invalid signature: left bytes after parsing");return{r:o,s:s}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),i=t(r(e.r)),o=n.length/2,a=i.length/2,s=r(o),c=r(a);return`30${r(a+o+4)}02${c}${i}02${s}${n}`}};const u=BigInt(0),l=BigInt(1),d=BigInt(2),f=BigInt(3),h=BigInt(4);function p(e){const t=function(e){const t=(0,a.validateBasic)(e);i.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:o}=t;if(r){if(!n.eql(o,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,s=t.toBytes||((e,t,n)=>{const o=t.toAffine();return i.concatBytes(Uint8Array.from([4]),r.toBytes(o.x),r.toBytes(o.y))}),c=t.fromBytes||(e=>{const t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function d(e){const{a:n,b:i}=t,o=r.sqr(e),a=r.mul(o,e);return r.add(r.add(a,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),d(t.Gx)))throw new Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&ur.eql(e,r.ZERO);return i(t)&&i(n)?b.ZERO:new b(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(b.fromAffine)}static fromHex(e){const t=b.fromAffine(c((0,o.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return b.BASE.multiply(g(e))}_setWindowSize(e){this._WINDOW_SIZE=e,m.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw new Error("bad point: x or y not FE");const i=r.sqr(n),o=d(e);if(!r.eql(i,o))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){y(e);const{px:t,py:n,pz:i}=this,{px:o,py:a,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(o,i)),u=r.eql(r.mul(n,s),r.mul(a,i));return c&&u}negate(){return new b(this.px,r.neg(this.py),this.pz)}double(){const{a:e,b:n}=t,i=r.mul(n,f),{px:o,py:a,pz:s}=this;let c=r.ZERO,u=r.ZERO,l=r.ZERO,d=r.mul(o,o),h=r.mul(a,a),p=r.mul(s,s),g=r.mul(o,a);return g=r.add(g,g),l=r.mul(o,s),l=r.add(l,l),c=r.mul(e,l),u=r.mul(i,p),u=r.add(c,u),c=r.sub(h,u),u=r.add(h,u),u=r.mul(c,u),c=r.mul(g,c),l=r.mul(i,l),p=r.mul(e,p),g=r.sub(d,p),g=r.mul(e,g),g=r.add(g,l),l=r.add(d,d),d=r.add(l,d),d=r.add(d,p),d=r.mul(d,g),u=r.add(u,d),p=r.mul(a,s),p=r.add(p,p),d=r.mul(p,g),c=r.sub(c,d),l=r.mul(p,h),l=r.add(l,l),l=r.add(l,l),new b(c,u,l)}add(e){y(e);const{px:n,py:i,pz:o}=this,{px:a,py:s,pz:c}=e;let u=r.ZERO,l=r.ZERO,d=r.ZERO;const h=t.a,p=r.mul(t.b,f);let g=r.mul(n,a),m=r.mul(i,s),v=r.mul(o,c),w=r.add(n,i),A=r.add(a,s);w=r.mul(w,A),A=r.add(g,m),w=r.sub(w,A),A=r.add(n,o);let C=r.add(a,c);return A=r.mul(A,C),C=r.add(g,v),A=r.sub(A,C),C=r.add(i,o),u=r.add(s,c),C=r.mul(C,u),u=r.add(m,v),C=r.sub(C,u),d=r.mul(h,A),u=r.mul(p,v),d=r.add(u,d),u=r.sub(m,d),d=r.add(m,d),l=r.mul(u,d),m=r.add(g,g),m=r.add(m,g),v=r.mul(h,v),A=r.mul(p,A),m=r.add(m,v),v=r.sub(g,v),v=r.mul(h,v),A=r.add(A,v),g=r.mul(m,A),l=r.add(l,g),g=r.mul(C,A),u=r.mul(w,u),u=r.sub(u,g),g=r.mul(w,m),d=r.mul(C,d),d=r.add(d,g),new b(u,l,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(b.ZERO)}wNAF(e){return w.wNAFCached(this,m,e,(e=>{const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(b.fromAffine)}))}multiplyUnsafe(e){const n=b.ZERO;if(e===u)return n;if(p(e),e===l)return this;const{endo:i}=t;if(!i)return w.unsafeLadder(this,e);let{k1neg:o,k1:a,k2neg:s,k2:c}=i.splitScalar(e),d=n,f=n,h=this;for(;a>u||c>u;)a&l&&(d=d.add(h)),c&l&&(f=f.add(h)),h=h.double(),a>>=l,c>>=l;return o&&(d=d.negate()),s&&(f=f.negate()),f=new b(r.mul(f.px,i.beta),f.py,f.pz),d.add(f)}multiply(e){p(e);let n,i,o=e;const{endo:a}=t;if(a){const{k1neg:e,k1:t,k2neg:s,k2:c}=a.splitScalar(o);let{p:u,f:l}=this.wNAF(t),{p:d,f:f}=this.wNAF(c);u=w.constTimeNegate(e,u),d=w.constTimeNegate(s,d),d=new b(r.mul(d.px,a.beta),d.py,d.pz),n=u.add(d),i=l.add(f)}else{const{p:e,f:t}=this.wNAF(o);n=e,i=t}return b.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){const n=b.BASE,i=(e,t)=>t!==u&&t!==l&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?void 0:o}toAffine(e){const{px:t,py:n,pz:i}=this,o=this.is0();null==e&&(e=o?r.ONE:r.inv(i));const a=r.mul(t,e),s=r.mul(n,e),c=r.mul(i,e);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw new Error("invZ was invalid");return{x:a,y:s}}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===l)return!0;if(r)return r(b,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===l?this:r?r(b,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),s(b,this,e)}toHex(e=!0){return i.bytesToHex(this.toRawBytes(e))}}b.BASE=new b(t.Gx,t.Gy,r.ONE),b.ZERO=new b(r.ZERO,r.ONE,r.ZERO);const v=t.nBitLength,w=(0,a.wNAF)(b,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:g,weierstrassEquation:d,isWithinCurveOrder:h}}function g(e,t){const r=e.ORDER;let n=u;for(let f=r-l;f%d===u;f/=d)n+=l;const i=n,o=d<{let n=m,o=e.pow(r,p),a=e.sqr(o);a=e.mul(a,r);let s=e.mul(t,a);s=e.pow(s,c),s=e.mul(s,o),o=e.mul(s,r),a=e.mul(s,t);let u=e.mul(a,o);s=e.pow(u,g);let f=e.eql(s,e.ONE);o=e.mul(a,y),s=e.mul(u,n),a=e.cmov(o,a,f),u=e.cmov(s,u,f);for(let c=i;c>l;c--){let t=c-d;t=d<{let o=e.sqr(i);const a=e.mul(t,i);o=e.mul(o,a);let s=e.pow(o,r);s=e.mul(s,a);const c=e.mul(s,n),u=e.mul(e.sqr(s),i),l=e.eql(u,t);return{isValid:l,value:e.cmov(c,s,l)}}}return b}t.weierstrassPoints=p,t.weierstrass=function(e){const r=function(e){const t=(0,a.validateBasic)(e);return i.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:c}=r,d=s.BYTES+1,f=2*s.BYTES+1;function h(e){return n.mod(e,c)}function g(e){return n.invert(e,c)}const{ProjectivePoint:m,normPrivateKeyToScalar:y,weierstrassEquation:b,isWithinCurveOrder:v}=p({...r,toBytes(e,t,r){const n=t.toAffine(),o=s.toBytes(n.x),a=i.concatBytes;return r?a(Uint8Array.from([t.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,s.toBytes(n.y))},fromBytes(e){const t=e.length,r=e[0],n=e.subarray(1);if(t!==d||2!==r&&3!==r){if(t===f&&4===r){return{x:s.fromBytes(n.subarray(0,s.BYTES)),y:s.fromBytes(n.subarray(s.BYTES,2*s.BYTES))}}throw new Error(`Point of length ${t} was invalid. Expected ${d} compressed bytes or ${f} uncompressed bytes`)}{const e=i.bytesToNumberBE(n);if(!(u<(o=e)&&oi.bytesToHex(i.numberToBytesBE(e,r.nByteLength));function A(e){return e>c>>l}const C=(e,t,r)=>i.bytesToNumberBE(e.slice(t,r));class E{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){const t=r.nByteLength;return e=(0,o.ensureBytes)("compactSignature",e,2*t),new E(C(e,0,t),C(e,t,2*t))}static fromDER(e){const{r:r,s:n}=t.DER.toSig((0,o.ensureBytes)("DER",e));return new E(r,n)}assertValidity(){if(!v(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new E(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:n,recovery:i}=this,a=k((0,o.ensureBytes)("msgHash",e));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const c=2===i||3===i?t+r.n:t;if(c>=s.ORDER)throw new Error("recovery id 2 or 3 invalid");const u=1&i?"03":"02",l=m.fromHex(u+w(c)),d=g(c),f=h(-a*d),p=h(n*d),y=m.BASE.multiplyAndAddUnsafe(l,f,p);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return A(this.s)}normalizeS(){return this.hasHighS()?new E(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}const x={isValidPrivateKey(e){try{return y(e),!0}catch(t){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const e=n.getMinHashLength(r.n);return n.mapHashToField(r.randomBytes(e),r.n)},precompute:(e=8,t=m.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function S(e){const t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===d||n===f:r?n===2*d||n===2*f:e instanceof m}const I=r.bits2int||function(e){const t=i.bytesToNumberBE(e),n=8*e.length-r.nBitLength;return n>0?t>>BigInt(n):t},k=r.bits2int_modN||function(e){return h(I(e))},_=i.bitMask(r.nBitLength);function T(e){if("bigint"!=typeof e)throw new Error("bigint expected");if(!(u<=e&&e<_))throw new Error(`bigint expected < 2^${r.nBitLength}`);return i.numberToBytesBE(e,r.nByteLength)}function M(e,t,n=P){if(["recovered","canonical"].some((e=>e in n)))throw new Error("sign() legacy options not supported");const{hash:a,randomBytes:c}=r;let{lowS:d,prehash:f,extraEntropy:p}=n;null==d&&(d=!0),e=(0,o.ensureBytes)("msgHash",e),f&&(e=(0,o.ensureBytes)("prehashed msgHash",a(e)));const b=k(e),w=y(t),C=[T(w),T(b)];if(null!=p){const e=!0===p?c(s.BYTES):p;C.push((0,o.ensureBytes)("extraEntropy",e))}const x=i.concatBytes(...C),S=b;return{seed:x,k2sig:function(e){const t=I(e);if(!v(t))return;const r=g(t),n=m.BASE.multiply(t).toAffine(),i=h(n.x);if(i===u)return;const o=h(r*h(S+i*w));if(o===u)return;let a=(n.x===i?0:2)|Number(n.y&l),s=o;return d&&A(o)&&(s=function(e){return A(e)?h(-e):e}(o),a^=1),new E(i,s,a)}}}const P={lowS:r.lowS,prehash:!1},j={lowS:r.lowS,prehash:!1};return m.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e,t=!0){return m.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(S(e))throw new Error("first arg must be private key");if(!S(t))throw new Error("second arg must be public key");return m.fromHex(t).multiply(y(e)).toRawBytes(r)},sign:function(e,t,n=P){const{seed:o,k2sig:a}=M(e,t,n),s=r;return i.createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)(o,a)},verify:function(e,n,i,a=j){const s=e;if(n=(0,o.ensureBytes)("msgHash",n),i=(0,o.ensureBytes)("publicKey",i),"strict"in a)throw new Error("options.strict was renamed to lowS");const{lowS:c,prehash:u}=a;let l,d;try{if("string"==typeof s||s instanceof Uint8Array)try{l=E.fromDER(s)}catch(C){if(!(C instanceof t.DER.Err))throw C;l=E.fromCompact(s)}else{if("object"!=typeof s||"bigint"!=typeof s.r||"bigint"!=typeof s.s)throw new Error("PARSE");{const{r:e,s:t}=s;l=new E(e,t)}}d=m.fromHex(i)}catch(x){if("PARSE"===x.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&l.hasHighS())return!1;u&&(n=r.hash(n));const{r:f,s:p}=l,y=k(n),b=g(p),v=h(y*b),w=h(f*b),A=m.BASE.multiplyAndAddUnsafe(d,v,w)?.toAffine();return!!A&&h(A.x)===f},ProjectivePoint:m,Signature:E,utils:x}},t.SWUFpSqrtRatio=g,t.mapToCurveSimpleSWU=function(e,t){if(n.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=g(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let i,o,a,s,c,u,l,d;i=e.sqr(n),i=e.mul(i,t.Z),o=e.sqr(i),o=e.add(o,i),a=e.add(o,e.ONE),a=e.mul(a,t.B),s=e.cmov(t.Z,e.neg(o),!e.eql(o,e.ZERO)),s=e.mul(s,t.A),o=e.sqr(a),u=e.sqr(s),c=e.mul(u,t.A),o=e.add(o,c),o=e.mul(o,a),u=e.mul(u,s),c=e.mul(u,t.B),o=e.add(o,c),l=e.mul(i,a);const{isValid:f,value:h}=r(o,u);d=e.mul(i,n),d=e.mul(d,h),l=e.cmov(l,a,f),d=e.cmov(d,h,f);const p=e.isOdd(n)===e.isOdd(d);return d=e.cmov(e.neg(d),d,p),l=e.div(l,s),{x:l,y:d}}}},484183:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;const n=r(108348),i=r(131238),o=r(80184),a=r(747334),s=r(25059),c=r(170562),u=r(550355),l=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f=BigInt(1),h=BigInt(2),p=(e,t)=>(e+t/h)/t;function g(e){const t=l,r=BigInt(3),n=BigInt(6),i=BigInt(11),a=BigInt(22),s=BigInt(23),c=BigInt(44),u=BigInt(88),d=e*e*e%t,f=d*d*e%t,p=(0,o.pow2)(f,r,t)*f%t,g=(0,o.pow2)(p,r,t)*f%t,y=(0,o.pow2)(g,h,t)*d%t,b=(0,o.pow2)(y,i,t)*y%t,v=(0,o.pow2)(b,a,t)*b%t,w=(0,o.pow2)(v,c,t)*v%t,A=(0,o.pow2)(w,u,t)*w%t,C=(0,o.pow2)(A,c,t)*v%t,E=(0,o.pow2)(C,r,t)*f%t,x=(0,o.pow2)(E,s,t)*b%t,S=(0,o.pow2)(x,n,t)*d%t,I=(0,o.pow2)(S,h,t);if(!m.eql(m.sqr(I),e))throw new Error("Cannot find square root");return I}const m=(0,o.Field)(l,void 0,void 0,{sqrt:g});t.secp256k1=(0,u.createCurve)({a:BigInt(0),b:BigInt(7),Fp:m,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=d,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-f*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=r,s=BigInt("0x100000000000000000000000000000000"),c=p(a*e,t),u=p(-n*e,t);let l=(0,o.mod)(e-c*r-u*i,t),h=(0,o.mod)(-c*n-u*a,t);const g=l>s,m=h>s;if(g&&(l=t-l),m&&(h=t-h),l>s||h>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:g,k1:l,k2neg:m,k2:h}}}},n.sha256);const y=BigInt(0),b=e=>"bigint"==typeof e&&ye.charCodeAt(0))));r=(0,s.concatBytes)(t,t),v[e]=r}return(0,n.sha256)((0,s.concatBytes)(r,...t))}const A=e=>e.toRawBytes(!0).slice(1),C=e=>(0,s.numberToBytesBE)(e,32),E=e=>(0,o.mod)(e,l),x=e=>(0,o.mod)(e,d),S=t.secp256k1.ProjectivePoint;function I(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=S.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:x(-r),bytes:A(n)}}function k(e){if(!b(e))throw new Error("bad x: need 0 < x < p");const t=E(e*e);let r=g(E(t*e+BigInt(7)));r%h!==y&&(r=E(-r));const n=new S(e,r,f);return n.assertValidity(),n}function _(...e){return x((0,s.bytesToNumberBE)(w("BIP0340/challenge",...e)))}function T(e){return I(e).bytes}function M(e,t,r=(0,i.randomBytes)(32)){const n=(0,s.ensureBytes)("message",e),{bytes:o,scalar:a}=I(t),c=(0,s.ensureBytes)("auxRand",r,32),u=C(a^(0,s.bytesToNumberBE)(w("BIP0340/aux",c))),l=w("BIP0340/nonce",u,o,n),d=x((0,s.bytesToNumberBE)(l));if(d===y)throw new Error("sign failed: k is zero");const{bytes:f,scalar:h}=I(d),p=_(f,o,n),g=new Uint8Array(64);if(g.set(f,0),g.set(C(x(h+p*a)),32),!P(g,n,o))throw new Error("sign: Invalid signature produced");return g}function P(e,t,r){const n=(0,s.ensureBytes)("signature",e,64),i=(0,s.ensureBytes)("message",t),o=(0,s.ensureBytes)("publicKey",r,32);try{const e=k((0,s.bytesToNumberBE)(o)),t=(0,s.bytesToNumberBE)(n.subarray(0,32));if(!b(t))return!1;const r=(0,s.bytesToNumberBE)(n.subarray(32,64));if(!("bigint"==typeof(l=r)&&y(0,c.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))))(),D=(()=>(0,a.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))(),O=(()=>(0,c.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:r}=D(m.create(e[0]));return j(t,r)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}))();t.hashToCurve=O.hashToCurve,t.encodeToCurve=O.encodeToCurve},717280:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw new Error(`Expected boolean, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){i(e);const r=t.outputLen;if(e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const n=r(717280),i=r(131238);class o extends i.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){(0,n.exists)(this);const{view:t,buffer:r,blockLen:o}=this,a=(e=(0,i.toBytes)(e)).length;for(let n=0;no-s&&(this.process(r,0),s=0);for(let n=s;n>i&o),s=Number(r&o),c=n?4:0,u=n?0:4;e.setUint32(t+c,a,n),e.setUint32(t+u,s,n)}(r,o-8,BigInt(8*this.length),a),this.process(r,0);const c=(0,i.createView)(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=u/4,d=this.get();if(l>d.length)throw new Error("_sha2: outputLen bigger than state");for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;oBigInt(e>>>0)<>>0);t.toBig=a;const s=(e,t,r)=>e>>>r;t.shrSH=s;const c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;const u=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=u;const l=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=l;const d=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=d;const f=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=f;const h=(e,t)=>t;t.rotr32H=h;const p=(e,t)=>e;t.rotr32L=p;const g=(e,t,r)=>e<>>32-r;t.rotlSH=g;const m=(e,t,r)=>t<>>32-r;t.rotlSL=m;const y=(e,t,r)=>t<>>64-r;t.rotlBH=y;const b=(e,t,r)=>e<>>64-r;function v(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:0|i}}t.rotlBL=b,t.add=v;const w=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=w;const A=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;t.add3H=A;const C=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=C;const E=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0;t.add4H=E;const x=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0);t.add5L=x;const S=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0;t.add5H=S;const I={fromBig:i,split:o,toBig:a,shrSH:s,shrSL:c,rotrSH:u,rotrSL:l,rotrBH:d,rotrBL:f,rotr32H:h,rotr32L:p,rotlSH:g,rotlSL:m,rotlBH:y,rotlBL:b,add:v,add3L:w,add3H:A,add4L:C,add4H:E,add5H:S,add5L:x};t.default=I},864642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},644240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const n=r(717280),i=r(131238);class o extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.hash)(e);const r=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,a=new Uint8Array(o);a.set(r.length>o?e.create().update(r).digest():r);for(let n=0;nnew o(e,t).update(r).digest(),t.hmac.create=(e,t)=>new o(e,t)},788659:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const n=r(177582),i=r(131238),o=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),a=Uint8Array.from({length:16},((e,t)=>t));let s=[a],c=[a.map((e=>(9*e+5)%16))];for(let b=0;b<4;b++)for(let e of[s,c])e.push(e[b].map((e=>o[e])));const u=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((e=>new Uint8Array(e))),l=s.map(((e,t)=>e.map((e=>u[t][e])))),d=c.map(((e,t)=>e.map((e=>u[t][e])))),f=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),h=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),p=(e,t)=>e<>>32-t;function g(e,t,r,n){return 0===e?t^r^n:1===e?t&r|~t&n:2===e?(t|~r)^n:3===e?t&n|r&~n:t^(r|~n)}const m=new Uint32Array(16);class y extends n.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:r,h3:n,h4:i}=this;return[e,t,r,n,i]}set(e,t,r,n,i){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|n,this.h4=0|i}process(e,t){for(let s=0;s<16;s++,t+=4)m[s]=e.getUint32(t,!0);let r=0|this.h0,n=r,i=0|this.h1,o=i,a=0|this.h2,u=a,y=0|this.h3,b=y,v=0|this.h4,w=v;for(let A=0;A<5;A++){const e=4-A,t=f[A],C=h[A],E=s[A],x=c[A],S=l[A],I=d[A];for(let n=0;n<16;n++){const e=p(r+g(A,i,a,y)+m[E[n]]+t,S[n])+v|0;r=v,v=y,y=0|p(a,10),a=i,i=e}for(let r=0;r<16;r++){const t=p(n+g(e,o,u,b)+m[x[r]]+C,I[r])+w|0;n=w,w=b,b=0|p(u,10),u=o,o=t}}this.set(this.h1+a+b|0,this.h2+y+w|0,this.h3+v+n|0,this.h4+r+o|0,this.h0+i+u|0)}roundClean(){m.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=y,t.ripemd160=(0,i.wrapConstructor)((()=>new y))},108348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const n=r(177582),i=r(131238),o=(e,t,r)=>e&t^e&r^t&r,a=new Uint32Array([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]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class u extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let i=0;i<16;i++,t+=4)c[i]=e.getUint32(t,!1);for(let o=16;o<64;o++){const e=c[o-15],t=c[o-2],r=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,n=(0,i.rotr)(t,17)^(0,i.rotr)(t,19)^t>>>10;c[o]=n+c[o-7]+r+c[o-16]|0}let{A:r,B:n,C:s,D:u,E:l,F:d,G:f,H:h}=this;for(let g=0;g<64;g++){const e=h+((0,i.rotr)(l,6)^(0,i.rotr)(l,11)^(0,i.rotr)(l,25))+((p=l)&d^~p&f)+a[g]+c[g]|0,t=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+o(r,n,s)|0;h=f,f=d,d=l,l=u+e|0,u=s,s=n,n=r,r=e+t|0}var p;r=r+this.A|0,n=n+this.B|0,s=s+this.C|0,u=u+this.D|0,l=l+this.E|0,d=d+this.F|0,f=f+this.G|0,h=h+this.H|0,this.set(r,n,s,u,l,d,f,h)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class l extends u{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)((()=>new u)),t.sha224=(0,i.wrapConstructor)((()=>new l))},641140:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const n=r(717280),i=r(601813),o=r(131238),[a,s,c]=[[],[],[]],u=BigInt(0),l=BigInt(1),d=BigInt(2),f=BigInt(7),h=BigInt(256),p=BigInt(113);for(let E=0,x=l,S=1,I=0;E<24;E++){[S,I]=[I,(2*S+3*I)%5],a.push(2*(5*I+S)),s.push((E+1)*(E+2)/2%64);let e=u;for(let t=0;t<7;t++)x=(x<>f)*p)%h,x&d&&(e^=l<<(l<r>32?(0,i.rotlBH)(e,t,r):(0,i.rotlSH)(e,t,r),b=(e,t,r)=>r>32?(0,i.rotlBL)(e,t,r):(0,i.rotlSL)(e,t,r);function v(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let n=0;n<10;n++)r[n]=e[n]^e[n+10]^e[n+20]^e[n+30]^e[n+40];for(let n=0;n<10;n+=2){const t=(n+8)%10,i=(n+2)%10,o=r[i],a=r[i+1],s=y(o,a,1)^r[t],c=b(o,a,1)^r[t+1];for(let r=0;r<50;r+=10)e[n+r]^=s,e[n+r+1]^=c}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=s[r],o=y(t,i,n),c=b(t,i,n),u=a[r];t=e[u],i=e[u+1],e[u]=o,e[u+1]=c}for(let n=0;n<50;n+=10){for(let t=0;t<10;t++)r[t]=e[n+t];for(let t=0;t<10;t++)e[n+t]^=~r[(t+2)%10]&r[(t+4)%10]}e[0]^=g[n],e[1]^=m[n]}r.fill(0)}t.keccakP=v;class w extends o.Hash{constructor(e,t,r,i=!1,a=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,o.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);const{blockLen:t,state:r}=this,i=(e=(0,o.toBytes)(e)).length;for(let n=0;n=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new w(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}t.Keccak=w;const A=(e,t,r)=>(0,o.wrapConstructor)((()=>new w(t,e,r)));t.sha3_224=A(6,144,28),t.sha3_256=A(6,136,32),t.sha3_384=A(6,104,48),t.sha3_512=A(6,72,64),t.keccak_224=A(1,144,28),t.keccak_256=A(1,136,32),t.keccak_384=A(1,104,48),t.keccak_512=A(1,72,64);const C=(e,t,r)=>(0,o.wrapXOFConstructorWithOpts)(((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0)));t.shake128=C(31,168,16),t.shake256=C(31,136,32)},131238:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const n=r(864642),i=e=>e instanceof Uint8Array;t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const o=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));t.bytesToHex=function(e){if(!i(e))throw new Error("Uint8Array expected");let t="";for(let r=0;r{},t.asyncLoop=async function(e,r,n){let i=Date.now();for(let o=0;o=0&&ee+t.length),0));let r=0;return e.forEach((e=>{if(!i(e))throw new Error("Uint8Array expected");t.set(e,r),r+=e.length})),t};t.Hash=class{clone(){return this._cloneInto()}};const c={}.toString;t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==c.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(s(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(s(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(s(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},455288:e=>{var t;self,t=()=>{return e={7629:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(9474),a=r(1687),s=r(8652),c=r(8160),u=r(3292),l=r(6354),d=r(8901),f=r(9708),h=r(6914),p=r(2294),g=r(6133),m=r(1152),y=r(8863),b=r(2036),v={Base:class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new p.Ids,this._preferences=null,this._refs=new g.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return n("function"==typeof f.describe,"Manifest functionality disabled"),f.describe(this)}allow(...e){return c.verifyFlat(e,"allow"),this._values(e,"_valids")}alter(e){n(e&&"object"==typeof e&&!Array.isArray(e),"Invalid targets argument"),n(!this._inRuleset(),"Cannot set alterations inside a ruleset");const t=this.clone();t.$_terms.alterations=t.$_terms.alterations||[];for(const r in e){const i=e[r];n("function"==typeof i,"Alteration adjuster for",r,"must be a function"),t.$_terms.alterations.push({target:r,adjuster:i})}return t.$_temp.ruleset=!1,t}artifact(e){return n(void 0!==e,"Artifact cannot be undefined"),n(!this._cache,"Cannot set an artifact with a rule cache"),this.$_setFlag("artifact",e)}cast(e){return n(!1===e||"string"==typeof e,"Invalid to value"),n(!1===e||this._definition.cast[e],"Type",this.type,"does not support casting to",e),this.$_setFlag("cast",!1===e?void 0:e)}default(e,t){return this._default("default",e,t)}description(e){return n(e&&"string"==typeof e,"Description must be a non-empty string"),this.$_setFlag("description",e)}empty(e){const t=this.clone();return void 0!==e&&(e=t.$_compile(e,{override:!1})),t.$_setFlag("empty",e,{clone:!1})}error(e){return n(e,"Missing error"),n(e instanceof Error||"function"==typeof e,"Must provide a valid Error object or a function"),this.$_setFlag("error",e)}example(e,t={}){return n(void 0!==e,"Missing example"),c.assertOptions(t,["override"]),this._inner("examples",e,{single:!0,override:t.override})}external(e,t){return"object"==typeof e&&(n(!t,"Cannot combine options with description"),t=e.description,e=e.method),n("function"==typeof e,"Method must be a function"),n(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this._inner("externals",{method:e,description:t},{single:!0})}failover(e,t){return this._default("failover",e,t)}forbidden(){return this.presence("forbidden")}id(e){return e?(n("string"==typeof e,"id must be a non-empty string"),n(/^[^\.]+$/.test(e),"id cannot contain period character"),this.$_setFlag("id",e)):this.$_setFlag("id",void 0)}invalid(...e){return this._values(e,"_invalids")}label(e){return n(e&&"string"==typeof e,"Label name must be a non-empty string"),this.$_setFlag("label",e)}meta(e){return n(void 0!==e,"Meta cannot be undefined"),this._inner("metas",e,{single:!0})}note(...e){n(e.length,"Missing notes");for(const t of e)n(t&&"string"==typeof t,"Notes must be non-empty strings");return this._inner("notes",e)}only(e=!0){return n("boolean"==typeof e,"Invalid mode:",e),this.$_setFlag("only",e)}optional(){return this.presence("optional")}prefs(e){n(e,"Missing preferences"),n(void 0===e.context,"Cannot override context"),n(void 0===e.externals,"Cannot override externals"),n(void 0===e.warnings,"Cannot override warnings"),n(void 0===e.debug,"Cannot override debug"),c.checkPreferences(e);const t=this.clone();return t._preferences=c.preferences(t._preferences,e),t}presence(e){return n(["optional","required","forbidden"].includes(e),"Unknown presence mode",e),this.$_setFlag("presence",e)}raw(e=!0){return this.$_setFlag("result",e?"raw":void 0)}result(e){return n(["raw","strip"].includes(e),"Unknown result mode",e),this.$_setFlag("result",e)}required(){return this.presence("required")}strict(e){const t=this.clone(),r=void 0!==e&&!e;return t._preferences=c.preferences(t._preferences,{convert:r}),t}strip(e=!0){return this.$_setFlag("result",e?"strip":void 0)}tag(...e){n(e.length,"Missing tags");for(const t of e)n(t&&"string"==typeof t,"Tags must be non-empty strings");return this._inner("tags",e)}unit(e){return n(e&&"string"==typeof e,"Unit name must be a non-empty string"),this.$_setFlag("unit",e)}valid(...e){c.verifyFlat(e,"valid");const t=this.allow(...e);return t.$_setFlag("only",!!t._valids,{clone:!1}),t}when(e,t){const r=this.clone();r.$_terms.whens||(r.$_terms.whens=[]);const i=u.when(r,e,t);if(!["any","link"].includes(r.type)){const e=i.is?[i]:i.switch;for(const t of e)n(!t.then||"any"===t.then.type||t.then.type===r.type,"Cannot combine",r.type,"with",t.then&&t.then.type),n(!t.otherwise||"any"===t.otherwise.type||t.otherwise.type===r.type,"Cannot combine",r.type,"with",t.otherwise&&t.otherwise.type)}return r.$_terms.whens.push(i),r.$_mutateRebuild()}cache(e){n(!this._inRuleset(),"Cannot set caching inside a ruleset"),n(!this._cache,"Cannot override schema cache"),n(void 0===this._flags.artifact,"Cannot cache a rule with an artifact");const t=this.clone();return t._cache=e||s.provider.provision(),t.$_temp.ruleset=!1,t}clone(){const e=Object.create(Object.getPrototypeOf(this));return this._assign(e)}concat(e){n(c.isSchema(e),"Invalid schema object"),n("any"===this.type||"any"===e.type||e.type===this.type,"Cannot merge type",this.type,"with another type:",e.type),n(!this._inRuleset(),"Cannot concatenate onto a schema with open ruleset"),n(!e._inRuleset(),"Cannot concatenate a schema with open ruleset");let t=this.clone();if("any"===this.type&&"any"!==e.type){const r=e.clone();for(const e of Object.keys(t))"type"!==e&&(r[e]=t[e]);t=r}t._ids.concat(e._ids),t._refs.register(e,g.toSibling),t._preferences=t._preferences?c.preferences(t._preferences,e._preferences):e._preferences,t._valids=b.merge(t._valids,e._valids,e._invalids),t._invalids=b.merge(t._invalids,e._invalids,e._valids);for(const r of e._singleRules.keys())t._singleRules.has(r)&&(t._rules=t._rules.filter((e=>e.keep||e.name!==r)),t._singleRules.delete(r));for(const r of e._rules)e._definition.rules[r.method].multi||t._singleRules.set(r.name,r),t._rules.push(r);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.concat(e._flags.empty);const r=Object.assign({},e._flags);delete r.empty,a(t._flags,r)}else if(e._flags.empty){t._flags.empty=e._flags.empty;const r=Object.assign({},e._flags);delete r.empty,a(t._flags,r)}else a(t._flags,e._flags);for(const r in e.$_terms){const n=e.$_terms[r];n?t.$_terms[r]?t.$_terms[r]=t.$_terms[r].concat(n):t.$_terms[r]=n.slice():t.$_terms[r]||(t.$_terms[r]=n)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return n(!e.base,"Cannot extend type with another base"),d.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split("."),this._ids.reach(e)}fork(e,t){n(!this._inRuleset(),"Cannot fork inside a ruleset");let r=this;for(let n of[].concat(e))n=Array.isArray(n)?n:n.split("."),r=r._ids.fork(n,t,r);return r.$_temp.ruleset=!1,r}rule(e){const t=this._definition;c.assertOptions(e,Object.keys(t.modifiers)),n(!1!==this.$_temp.ruleset,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const r=null===this.$_temp.ruleset?this._rules.length-1:this.$_temp.ruleset;n(r>=0&&rt.tailor(e),ref:!1}),t.$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return m.location?m.location(this):this}validate(e,t){return y.entry(e,this,t)}validateAsync(e,t){return y.entryAsync(e,this,t)}$_addRule(e){"string"==typeof e&&(e={name:e}),n(e&&"object"==typeof e,"Invalid options"),n(e.name&&"string"==typeof e.name,"Invalid rule name");for(const a in e)n("_"!==a[0],"Cannot set private rule properties");const t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;const r=this._definition.rules[t.method],i=t.args;n(r,"Unknown rule",t.method);const o=this.clone();if(i){n(1===Object.keys(i).length||Object.keys(i).length===this._definition.rules[t.name].args.length,"Invalid rule definition for",this.type,t.name);for(const e in i){let a=i[e];if(r.argsByName){const s=r.argsByName.get(e);if(s.ref&&c.isResolvable(a))t._resolve.push(e),o.$_mutateRegister(a);else if(s.normalize&&(a=s.normalize(a),i[e]=a),s.assert){const t=c.validateArg(a,e,s);n(!t,t,"or reference")}}void 0!==a?i[e]=a:delete i[e]}}return r.multi||(o._ruleRemove(t.name,{clone:!1}),o._singleRules.set(t.name,t)),!1===o.$_temp.ruleset&&(o.$_temp.ruleset=null),r.priority?o._rules.unshift(t):o._rules.push(t),o}$_compile(e,t){return u.schema(this.$_root,e,t)}$_createError(e,t,r,n,i,o={}){const a=!1!==o.flags?this._flags:{},s=o.messages?h.merge(this._definition.messages,o.messages):this._definition.messages;return new l.Report(e,t,r,a,s,n,i)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split("."),this._ids.labels(e)}$_match(e,t,r,n){(r=Object.assign({},r)).abortEarly=!0,r._externals=!1,t.snapshot();const i=!y.validate(e,this,t,r,n).errors;return t.restore(),i}$_modify(e){return c.assertOptions(e,["each","once","ref","schema"]),p.schema(this,e)||this}$_mutateRebuild(){return n(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(e,{source:t,name:r,path:n,key:i})=>{const o=this._definition[t][r]&&this._definition[t][r].register;!1!==o&&this.$_mutateRegister(e,{family:o,key:i})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e,{family:t,key:r}={}){this._refs.register(e,t),this._ids.register(e,{key:r})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t,r={}){n("_"===e[0]||!this._inRuleset(),"Cannot set flag inside a ruleset");const i=this._definition.flags[e]||{};if(o(t,i.default)&&(t=void 0),o(t,this._flags[e]))return this;const a=!1!==r.clone?this.clone():this;return void 0!==t?(a._flags[e]=t,a.$_mutateRegister(t)):delete a._flags[e],"_"!==e[0]&&(a.$_temp.ruleset=!1),a}$_parent(e,...t){return this[e][c.symbols.parent].call(this,...t)}$_validate(e,t,r){return y.validate(e,this,t,r)}_assign(e){e.type=this.type,e.$_root=this.$_root,e.$_temp=Object.assign({},this.$_temp),e.$_temp.whens={},e._ids=this._ids.clone(),e._preferences=this._preferences,e._valids=this._valids&&this._valids.clone(),e._invalids=this._invalids&&this._invalids.clone(),e._rules=this._rules.slice(),e._singleRules=i(this._singleRules,{shallow:!0}),e._refs=this._refs.clone(),e._flags=Object.assign({},this._flags),e._cache=null,e.$_terms={};for(const t in this.$_terms)e.$_terms[t]=this.$_terms[t]?this.$_terms[t].slice():null;e.$_super={};for(const t in this.$_super)e.$_super[t]=this._super[t].bind(e);return e}_bare(){const e=this.clone();e._reset();const t=e._definition.terms;for(const r in t){const n=t[r];e.$_terms[r]=n.init}return e.$_mutateRebuild()}_default(e,t,r={}){return c.assertOptions(r,"literal"),n(void 0!==t,"Missing",e,"value"),n("function"==typeof t||!r.literal,"Only function value supports literal option"),"function"==typeof t&&r.literal&&(t={[c.symbols.literal]:!0,literal:t}),this.$_setFlag(e,t)}_generate(e,t,r){if(!this.$_terms.whens)return{schema:this};const n=[],i=[];for(let s=0;su)break}const o=i.join(", ");if(t.mainstay.tracer.debug(t,"rule","when",o),!o)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[o])return{schema:this.$_temp.whens[o],id:o};let a=this;this._definition.generate&&(a=this._definition.generate(this,e,t,r));for(const s of n)a=a.concat(s);return this.$_root._tracer&&this.$_root._tracer._combine(a,[this,...n]),this.$_temp.whens[o]=a,{schema:a,id:o}}_inner(e,t,r={}){n(!this._inRuleset(),`Cannot set ${e} inside a ruleset`);const i=this.clone();return i.$_terms[e]&&!r.override||(i.$_terms[e]=[]),r.single?i.$_terms[e].push(t):i.$_terms[e].push(...t),i.$_temp.ruleset=!1,i}_inRuleset(){return null!==this.$_temp.ruleset&&!1!==this.$_temp.ruleset}_ruleRemove(e,t={}){if(!this._singleRules.has(e))return this;const r=!1!==t.clone?this.clone():this;r._singleRules.delete(e);const n=[];for(let i=0;i{"use strict";const n=r(375),i=r(8571),o=r(8160),a={max:1e3,supported:new Set(["undefined","boolean","number","string"])};t.provider={provision:e=>new a.Cache(e)},a.Cache=class{constructor(e={}){o.assertOptions(e,["max"]),n(void 0===e.max||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||a.max,this._map=new Map,this._list=new a.List}get length(){return this._map.size}set(e,t){if(null!==e&&!a.supported.has(typeof e))return;let r=this._map.get(e);if(r)return r.value=t,void this._list.first(r);r=this._list.unshift({key:e,value:t}),this._map.set(e,r),this._compact()}get(e){const t=this._map.get(e);if(t)return this._list.first(t),i(t.value)}_compact(){if(this._map.size>this._max){const e=this._list.pop();this._map.delete(e.key)}}},a.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||(this.tail=e),e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){const{next:t,prev:r}=e;return t.prev=r,r&&(r.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}},8160:(e,t,r)=>{"use strict";const n=r(375),i=r(7916),o=r(5934);let a,s;const c={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};t.version=o.version,t.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},t.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},t.assertOptions=function(e,t,r="Options"){n(e&&"object"==typeof e&&!Array.isArray(e),"Options must be of type object");const i=Object.keys(e).filter((e=>!t.includes(e)));n(0===i.length,`${r} contain unknown keys: ${i}`)},t.checkPreferences=function(e){s=s||r(3378);const t=s.preferences.validate(e);if(t.error)throw new i([t.error.details[0].message])},t.compare=function(e,t,r){switch(r){case"=":return e===t;case">":return e>t;case"<":return e=":return e>=t;case"<=":return e<=t}},t.default=function(e,t){return void 0===e?t:e},t.isIsoDate=function(e){return c.isoDate.test(e)},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isResolvable=function(e){return!!e&&(e[t.symbols.ref]||e[t.symbols.template])},t.isSchema=function(e,r={}){const i=e&&e[t.symbols.any];return!!i&&(n(r.legacy||i.version===t.version,"Cannot mix different versions of joi schemas"),!0)},t.isValues=function(e){return e[t.symbols.values]},t.limit=function(e){return Number.isSafeInteger(e)&&e>=0},t.preferences=function(e,n){a=a||r(6914),e=e||{},n=n||{};const i=Object.assign({},e,n);return n.errors&&e.errors&&(i.errors=Object.assign({},e.errors,n.errors),i.errors.wrap=Object.assign({},e.errors.wrap,n.errors.wrap)),n.messages&&(i.messages=a.compile(n.messages,e.messages)),delete i[t.symbols.prefs],i},t.tryWithPath=function(e,t,r={}){try{return e()}catch(e){throw void 0!==e.path?e.path=t+"."+e.path:e.path=t,r.append&&(e.message=`${e.message} (${e.path})`),e}},t.validateArg=function(e,r,{assert:n,message:i}){if(t.isSchema(n)){const t=n.validate(e);if(!t.error)return;return t.error.message}if(!n(e))return r?`${r} ${i}`:i},t.verifyFlat=function(e,t){for(const r of e)n(!Array.isArray(r),"Method no longer accepts array arguments:",t)}},3292:(e,t,r)=>{"use strict";const n=r(375),i=r(8160),o=r(6133),a={};t.schema=function(e,t,r={}){i.assertOptions(r,["appendPath","override"]);try{return a.schema(e,t,r)}catch(e){throw r.appendPath&&void 0!==e.path&&(e.message=`${e.message} (${e.path})`),e}},a.schema=function(e,t,r){n(void 0!==t,"Invalid undefined schema"),Array.isArray(t)&&(n(t.length,"Invalid empty array schema"),1===t.length&&(t=t[0]));const o=(t,...n)=>!1!==r.override?t.valid(e.override,...n):t.valid(...n);if(a.simple(t))return o(e,t);if("function"==typeof t)return e.custom(t);if(n("object"==typeof t,"Invalid schema content:",typeof t),i.isResolvable(t))return o(e,t);if(i.isSchema(t))return t;if(Array.isArray(t)){for(const r of t)if(!a.simple(r))return e.alternatives().try(...t);return o(e,...t)}return t instanceof RegExp?e.string().regex(t):t instanceof Date?o(e.date(),t):(n(Object.getPrototypeOf(t)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),e.object().keys(t))},t.ref=function(e,t){return o.isRef(e)?e:o.create(e,t)},t.compile=function(e,r,o={}){i.assertOptions(o,["legacy"]);const s=r&&r[i.symbols.any];if(s)return n(o.legacy||s.version===i.version,"Cannot mix different versions of joi schemas:",s.version,i.version),r;if("object"!=typeof r||!o.legacy)return t.schema(e,r,{appendPath:!0});const c=a.walk(r);return c?c.compile(c.root,r):t.schema(e,r,{appendPath:!0})},a.walk=function(e){if("object"!=typeof e)return null;if(Array.isArray(e)){for(const t of e){const e=a.walk(t);if(e)return e}return null}const t=e[i.symbols.any];if(t)return{root:e[t.root],compile:t.compile};n(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const r in e){const t=a.walk(e[r]);if(t)return t}return null},a.simple=function(e){return null===e||["boolean","string","number"].includes(typeof e)},t.when=function(e,r,s){if(void 0===s&&(n(r&&"object"==typeof r,"Missing options"),s=r,r=o.create(".")),Array.isArray(s)&&(s={switch:s}),i.assertOptions(s,["is","not","then","otherwise","switch","break"]),i.isSchema(r))return n(void 0===s.is,'"is" can not be used with a schema condition'),n(void 0===s.not,'"not" can not be used with a schema condition'),n(void 0===s.switch,'"switch" can not be used with a schema condition'),a.condition(e,{is:r,then:s.then,otherwise:s.otherwise,break:s.break});if(n(o.isRef(r)||"string"==typeof r,"Invalid condition:",r),n(void 0===s.not||void 0===s.is,'Cannot combine "is" with "not"'),void 0===s.switch){let c=s;void 0!==s.not&&(c={is:s.not,then:s.otherwise,otherwise:s.then,break:s.break});let u=void 0!==c.is?e.$_compile(c.is):e.$_root.invalid(null,!1,0,"").required();return n(void 0!==c.then||void 0!==c.otherwise,'options must have at least one of "then", "otherwise", or "switch"'),n(void 0===c.break||void 0===c.then||void 0===c.otherwise,"Cannot specify then, otherwise, and break all together"),void 0===s.is||o.isRef(s.is)||i.isSchema(s.is)||(u=u.required()),a.condition(e,{ref:t.ref(r),is:u,then:c.then,otherwise:c.otherwise,break:c.break})}n(Array.isArray(s.switch),'"switch" must be an array'),n(void 0===s.is,'Cannot combine "switch" with "is"'),n(void 0===s.not,'Cannot combine "switch" with "not"'),n(void 0===s.then,'Cannot combine "switch" with "then"');const c={ref:t.ref(r),switch:[],break:s.break};for(let t=0;t{"use strict";const n=r(5688),i=r(8160),o=r(3328);t.Report=class{constructor(e,r,n,i,o,a,s){if(this.code=e,this.flags=i,this.messages=o,this.path=a.path,this.prefs=s,this.state=a,this.value=r,this.message=null,this.template=null,this.local=n||{},this.local.label=t.label(this.flags,this.state,this.prefs,this.messages),void 0===this.value||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const e=this.path[this.path.length-1];"object"!=typeof e&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&0===this.path.length){const e=this._template(this.template,"root");e&&(this.local.label=e)}}toString(){if(this.message)return this.message;const e=this.code;if(!this.prefs.errors.render)return this.code;const t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return void 0===t?`Error code "${e}" is not defined, your custom type is missing the correct messages definition`:(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(e,r){return t.template(this.value,e,r||this.code,this.state,this.prefs)}},t.path=function(e){let t="";for(const r of e)"object"!=typeof r&&("string"==typeof r?(t&&(t+="."),t+=r):t+=`[${r}]`);return t},t.template=function(e,t,r,n,a){if(!t)return;if(o.isTemplate(t))return"root"!==r?t:null;let s=a.errors.language;if(i.isResolvable(s)&&(s=s.resolve(e,n,a)),s&&t[s]){if(void 0!==t[s][r])return t[s][r];if(void 0!==t[s]["*"])return t[s]["*"]}return t[r]?t[r]:t["*"]},t.label=function(e,r,n,i){if(!n.errors.label)return"";if(e.label)return e.label;let o=r.path;return"key"===n.errors.label&&r.path.length>1&&(o=r.path.slice(-1)),t.path(o)||t.template(null,n.messages,"root",r,n)||i&&t.template(null,i,"root",r,n)||"value"},t.process=function(e,r,n){if(!e)return null;const{override:i,message:o,details:a}=t.details(e);if(i)return i;if(n.errors.stack)return new t.ValidationError(o,a,r);const s=Error.stackTraceLimit;Error.stackTraceLimit=0;const c=new t.ValidationError(o,a,r);return Error.stackTraceLimit=s,c},t.details=function(e,t={}){let r=[];const n=[];for(const i of e){if(i instanceof Error){if(!1!==t.override)return{override:i};const e=i.toString();r.push(e),n.push({message:e,type:"override",context:{error:i}});continue}const e=i.toString();r.push(e),n.push({message:e,path:i.path.filter((e=>"object"!=typeof e)),type:i.code,context:i.local})}return r.length>1&&(r=[...new Set(r)]),{message:r.join(". "),details:n}},t.ValidationError=class extends Error{constructor(e,t,r){super(e),this._original=r,this.details=t}static isError(e){return e instanceof t.ValidationError}},t.ValidationError.prototype.isJoi=!0,t.ValidationError.prototype.name="ValidationError",t.ValidationError.prototype.annotate=n.error},8901:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(8160),a=r(6914),s={};t.type=function(e,t){const r=Object.getPrototypeOf(e),c=i(r),u=e._assign(Object.create(c)),l=Object.assign({},t);delete l.base,c._definition=l;const d=r._definition||{};l.messages=a.merge(d.messages,l.messages),l.properties=Object.assign({},d.properties,l.properties),u.type=l.type,l.flags=Object.assign({},d.flags,l.flags);const f=Object.assign({},d.terms);if(l.terms)for(const i in l.terms){const e=l.terms[i];n(void 0===u.$_terms[i],"Invalid term override for",l.type,i),u.$_terms[i]=e.init,f[i]=e}l.terms=f,l.args||(l.args=d.args),l.prepare=s.prepare(l.prepare,d.prepare),l.coerce&&("function"==typeof l.coerce&&(l.coerce={method:l.coerce}),l.coerce.from&&!Array.isArray(l.coerce.from)&&(l.coerce={method:l.coerce.method,from:[].concat(l.coerce.from)})),l.coerce=s.coerce(l.coerce,d.coerce),l.validate=s.validate(l.validate,d.validate);const h=Object.assign({},d.rules);if(l.rules)for(const i in l.rules){const e=l.rules[i];n("object"==typeof e,"Invalid rule definition for",l.type,i);let t=e.method;if(void 0===t&&(t=function(){return this.$_addRule(i)}),t&&(n(!c[i],"Rule conflict in",l.type,i),c[i]=t),n(!h[i],"Rule conflict in",l.type,i),h[i]=e,e.alias){const t=[].concat(e.alias);for(const r of t)c[r]=e.method}e.args&&(e.argsByName=new Map,e.args=e.args.map((t=>("string"==typeof t&&(t={name:t}),n(!e.argsByName.has(t.name),"Duplicated argument name",t.name),o.isSchema(t.assert)&&(t.assert=t.assert.strict().label(t.name)),e.argsByName.set(t.name,t),t))))}l.rules=h;const p=Object.assign({},d.modifiers);if(l.modifiers)for(const i in l.modifiers){n(!c[i],"Rule conflict in",l.type,i);const e=l.modifiers[i];n("function"==typeof e,"Invalid modifier definition for",l.type,i);const t=function(e){return this.rule({[i]:e})};c[i]=t,p[i]=e}if(l.modifiers=p,l.overrides){c._super=r,u.$_super={};for(const e in l.overrides)n(r[e],"Cannot override missing",e),l.overrides[e][o.symbols.parent]=r[e],u.$_super[e]=r[e].bind(u);Object.assign(c,l.overrides)}l.cast=Object.assign({},d.cast,l.cast);const g=Object.assign({},d.manifest,l.manifest);return g.build=s.build(l.manifest&&l.manifest.build,d.manifest&&d.manifest.build),l.manifest=g,l.rebuild=s.rebuild(l.rebuild,d.rebuild),u},s.build=function(e,t){return e&&t?function(r,n){return t(e(r,n),n)}:e||t},s.coerce=function(e,t){return e&&t?{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(r,n){let i;if((!t.from||t.from.includes(typeof r))&&(i=t.method(r,n),i)){if(i.errors||void 0===i.value)return i;r=i.value}if(!e.from||e.from.includes(typeof r)){const t=e.method(r,n);if(t)return t}return i}}:e||t},s.prepare=function(e,t){return e&&t?function(r,n){const i=e(r,n);if(i){if(i.errors||void 0===i.value)return i;r=i.value}return t(r,n)||i}:e||t},s.rebuild=function(e,t){return e&&t?function(r){t(r),e(r)}:e||t},s.validate=function(e,t){return e&&t?function(r,n){const i=t(r,n);if(i){if(i.errors&&(!Array.isArray(i.errors)||i.errors.length))return i;r=i.value}return e(r,n)||i}:e||t}},5107:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(8652),a=r(8160),s=r(3292),c=r(6354),u=r(8901),l=r(9708),d=r(6133),f=r(3328),h=r(1152);let p;const g={types:{alternatives:r(4946),any:r(8068),array:r(546),boolean:r(4937),date:r(7500),function:r(390),link:r(8785),number:r(3832),object:r(8966),string:r(7417),symbol:r(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const e={_types:new Set(Object.keys(g.types))};for(const t of e._types)e[t]=function(...e){return n(!e.length||["alternatives","link","object"].includes(t),"The",t,"type does not allow arguments"),g.generate(this,g.types[t],e)};for(const t of["allow","custom","disallow","equal","exist","forbidden","invalid","not","only","optional","options","prefs","preferences","required","strip","valid","when"])e[t]=function(...e){return this.any()[t](...e)};Object.assign(e,g.methods);for(const t in g.aliases){const r=g.aliases[t];e[t]=e[r]}return e.x=e.expression,h.setup&&h.setup(e),e}};g.methods={ValidationError:c.ValidationError,version:a.version,cache:o.provider,assert(e,t,...r){g.assert(e,t,!0,r)},attempt:(e,t,...r)=>g.assert(e,t,!1,r),build(e){return n("function"==typeof l.build,"Manifest functionality disabled"),l.build(this,e)},checkPreferences(e){a.checkPreferences(e)},compile(e,t){return s.compile(this,e,t)},defaults(e){n("function"==typeof e,"modifier must be a function");const t=Object.assign({},this);for(const r of t._types){const i=e(t[r]());n(a.isSchema(i),"modifier must return a valid schema object"),t[r]=function(...e){return g.generate(this,i,e)}}return t},expression:(...e)=>new f(...e),extend(...e){a.verifyFlat(e,"extend"),p=p||r(3378),n(e.length,"You need to provide at least one extension"),this.assert(e,p.extensions);const t=Object.assign({},this);t._types=new Set(t._types);for(let r of e){"function"==typeof r&&(r=r(t)),this.assert(r,p.extension);const e=g.expandExtension(r,t);for(const r of e){n(void 0===t[r.type]||t._types.has(r.type),"Cannot override name",r.type);const e=r.base||this.any(),i=u.type(e,r);t._types.add(r.type),t[r.type]=function(...e){return g.generate(this,i,e)}}}return t},isError:c.ValidationError.isError,isExpression:f.isTemplate,isRef:d.isRef,isSchema:a.isSchema,in:(...e)=>d.in(...e),override:a.symbols.override,ref:(...e)=>d.create(...e),types(){const e={};for(const t of this._types)e[t]=this[t]();for(const t in g.aliases)e[t]=this[t]();return e}},g.assert=function(e,t,r,n){const o=n[0]instanceof Error||"string"==typeof n[0]?n[0]:null,s=null!==o?n[1]:n[0],u=t.validate(e,a.preferences({errors:{stack:!0}},s||{}));let l=u.error;if(!l)return u.value;if(o instanceof Error)throw o;const d=r&&"function"==typeof l.annotate?l.annotate():l.message;throw l instanceof c.ValidationError==0&&(l=i(l)),l.message=o?`${o} ${d}`:d,l},g.generate=function(e,t,r){return n(e,"Must be invoked on a Joi instance."),t.$_root=e,t._definition.args&&r.length?t._definition.args(t,...r):t},g.expandExtension=function(e,t){if("string"==typeof e.type)return[e];const r=[];for(const n of t._types)if(e.type.test(n)){const i=Object.assign({},e);i.type=n,i.base=t[n](),r.push(i)}return r},e.exports=g.root()},6914:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(3328);t.compile=function(e,t){if("string"==typeof e)return n(!t,"Cannot set single message string"),new o(e);if(o.isTemplate(e))return n(!t,"Cannot set single message template"),e;n("object"==typeof e&&!Array.isArray(e),"Invalid message options"),t=t?i(t):{};for(let r in e){const i=e[r];if("root"===r||o.isTemplate(i)){t[r]=i;continue}if("string"==typeof i){t[r]=new o(i);continue}n("object"==typeof i&&!Array.isArray(i),"Invalid message for",r);const a=r;for(r in t[a]=t[a]||{},i){const e=i[r];"root"===r||o.isTemplate(e)?t[a][r]=e:(n("string"==typeof e,"Invalid message for",r,"in",a),t[a][r]=new o(e))}}return t},t.decompile=function(e){const t={};for(let r in e){const n=e[r];if("root"===r){t.root=n;continue}if(o.isTemplate(n)){t[r]=n.describe({compact:!0});continue}const i=r;for(r in t[i]={},n){const e=n[r];"root"!==r?t[i][r]=e.describe({compact:!0}):t[i].root=e}}return t},t.merge=function(e,r){if(!e)return t.compile(r);if(!r)return e;if("string"==typeof r)return new o(r);if(o.isTemplate(r))return r;const a=i(e);for(let t in r){const e=r[t];if("root"===t||o.isTemplate(e)){a[t]=e;continue}if("string"==typeof e){a[t]=new o(e);continue}n("object"==typeof e&&!Array.isArray(e),"Invalid message for",t);const i=t;for(t in a[i]=a[i]||{},e){const r=e[t];"root"===t||o.isTemplate(r)?a[i][t]=r:(n("string"==typeof r,"Invalid message for",t,"in",i),a[i][t]=new o(r))}}return a}},2294:(e,t,r)=>{"use strict";const n=r(375),i=r(8160),o=r(6133),a={};t.Ids=a.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const e=new a.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){e._schemaChain&&(this._schemaChain=!0);for(const[t,r]of e._byId.entries())n(!this._byKey.has(t),"Schema id conflicts with existing key:",t),this._byId.set(t,r);for(const[t,r]of e._byKey.entries())n(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,r)}fork(e,t,r){const o=this._collect(e);o.push({schema:r});const s=o.shift();let c={id:s.id,schema:t(s.schema)};n(i.isSchema(c.schema),"adjuster function failed to return a joi schema type");for(const n of o)c={id:n.id,schema:a.fork(n.schema,c.id,c.schema)};return c.schema}labels(e,t=[]){const r=e[0],n=this._get(r);if(!n)return[...t,...e].join(".");const i=e.slice(1);return t=[...t,n.schema._flags.label||r],i.length?n.schema._ids.labels(i,t):t.join(".")}reach(e,t=[]){const r=e[0],i=this._get(r);n(i,"Schema does not contain path",[...t,...e].join("."));const o=e.slice(1);return o.length?i.schema._ids.reach(o,[...t,r]):i.schema}register(e,{key:t}={}){if(!e||!i.isSchema(e))return;(e.$_property("schemaChain")||e._ids._schemaChain)&&(this._schemaChain=!0);const r=e._flags.id;if(r){const t=this._byId.get(r);n(!t||t.schema===e,"Cannot add different schemas with the same id:",r),n(!this._byKey.has(r),"Schema id conflicts with existing key:",r),this._byId.set(r,{schema:e,id:r})}t&&(n(!this._byKey.has(t),"Schema already contains key:",t),n(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,{schema:e,id:t}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e,t=[],r=[]){const i=e[0],o=this._get(i);n(o,"Schema does not contain path",[...t,...e].join(".")),r=[o,...r];const a=e.slice(1);return a.length?o.schema._ids._collect(a,[...t,i],r):r}_get(e){return this._byId.get(e)||this._byKey.get(e)}},a.fork=function(e,r,n){const i=t.schema(e,{each:(e,{key:t})=>{if(r===(e._flags.id||t))return n},ref:!1});return i?i.$_mutateRebuild():e},t.schema=function(e,t){let r;for(const n in e._flags){if("_"===n[0])continue;const i=a.scan(e._flags[n],{source:"flags",name:n},t);void 0!==i&&(r=r||e.clone(),r._flags[n]=i)}for(let n=0;n{"use strict";const n=r(375),i=r(8571),o=r(9621),a=r(8160);let s;const c={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};t.create=function(e,t={}){n("string"==typeof e,"Invalid reference key:",e),a.assertOptions(t,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),n(!t.prefix||"object"==typeof t.prefix,"options.prefix must be of type object");const r=Object.assign({},c.defaults,t);delete r.prefix;const i=r.separator,o=c.context(e,i,t.prefix);if(r.type=o.type,e=o.key,"value"===r.type)if(o.root&&(n(!i||e[0]!==i,"Cannot specify relative path with root prefix"),r.ancestor="root",e||(e=null)),i&&i===e)e=null,r.ancestor=0;else if(void 0!==r.ancestor)n(!i||!e||e[0]!==i,"Cannot combine prefix with ancestor option");else{const[t,n]=c.ancestor(e,i);n&&""===(e=e.slice(n))&&(e=null),r.ancestor=t}return r.path=i?null===e?[]:e.split(i):[e],new c.Ref(r)},t.in=function(e,r={}){return t.create(e,{...r,in:!0})},t.isRef=function(e){return!!e&&!!e[a.symbols.ref]},c.Ref=class{constructor(e){n("object"==typeof e,"Invalid reference construction"),a.assertOptions(e,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),n([!1,void 0].includes(e.separator)||"string"==typeof e.separator&&1===e.separator.length,"Invalid separator"),n(!e.adjust||"function"==typeof e.adjust,"options.adjust must be a function"),n(!e.map||Array.isArray(e.map),"options.map must be an array"),n(!e.map||!e.adjust,"Cannot set both map and adjust options"),Object.assign(this,c.defaults,e),n("value"===this.type||void 0===this.ancestor,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(e,t,r,i,o={}){return n(!this.in||o.in,"Invalid in() reference usage"),"global"===this.type?this._resolve(r.context,t,o):"local"===this.type?this._resolve(i,t,o):this.ancestor?"root"===this.ancestor?this._resolve(t.ancestors[t.ancestors.length-1],t,o):(n(this.ancestor<=t.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(t.ancestors[this.ancestor-1],t,o)):this._resolve(e,t,o)}_resolve(e,t,r){let n;if("value"===this.type&&t.mainstay.shadow&&!1!==r.shadow&&(n=t.mainstay.shadow.get(this.absolute(t))),void 0===n&&(n=o(e,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(n=this.adjust(n)),this.map){const e=this.map.get(n);void 0!==e&&(n=e)}return t.mainstay&&t.mainstay.tracer.resolve(t,this,n),n}toString(){return this.display}absolute(e){return[...e.path.slice(0,-this.ancestor),...this.path]}clone(){return new c.Ref(this)}describe(){const e={path:this.path};"value"!==this.type&&(e.type=this.type),"."!==this.separator&&(e.separator=this.separator),"value"===this.type&&1!==this.ancestor&&(e.ancestor=this.ancestor),this.map&&(e.map=[...this.map]);for(const t of["adjust","iterables","render"])null!==this[t]&&void 0!==this[t]&&(e[t]=this[t]);return!1!==this.in&&(e.in=!0),{ref:e}}updateDisplay(){const e=null!==this.key?this.key:"";if("value"!==this.type)return void(this.display=`ref:${this.type}:${e}`);if(!this.separator)return void(this.display=`ref:${e}`);if(!this.ancestor)return void(this.display=`ref:${this.separator}${e}`);if("root"===this.ancestor)return void(this.display=`ref:root:${e}`);if(1===this.ancestor)return void(this.display=`ref:${e||".."}`);const t=new Array(this.ancestor+1).fill(this.separator).join("");this.display=`ref:${t}${e||""}`}},c.Ref.prototype[a.symbols.ref]=!0,t.build=function(e){return"value"===(e=Object.assign({},c.defaults,e)).type&&void 0===e.ancestor&&(e.ancestor=1),new c.Ref(e)},c.context=function(e,t,r={}){if(e=e.trim(),r){const n=void 0===r.global?"$":r.global;if(n!==t&&e.startsWith(n))return{key:e.slice(n.length),type:"global"};const i=void 0===r.local?"#":r.local;if(i!==t&&e.startsWith(i))return{key:e.slice(i.length),type:"local"};const o=void 0===r.root?"/":r.root;if(o!==t&&e.startsWith(o))return{key:e.slice(o.length),type:"value",root:!0}}return{key:e,type:"value"}},c.ancestor=function(e,t){if(!t)return[1,0];if(e[0]!==t)return[1,0];if(e[1]!==t)return[0,1];let r=2;for(;e[r]===t;)++r;return[r-1,r]},t.toSibling=0,t.toParent=1,t.Manager=class{constructor(){this.refs=[]}register(e,n){if(e)if(n=void 0===n?t.toParent:n,Array.isArray(e))for(const t of e)this.register(t,n);else if(a.isSchema(e))for(const t of e._refs.refs)t.ancestor-n>=0&&this.refs.push({ancestor:t.ancestor-n,root:t.root});else t.isRef(e)&&"value"===e.type&&e.ancestor-n>=0&&this.refs.push({ancestor:e.ancestor-n,root:e.root}),s=s||r(3328),s.isTemplate(e)&&this.register(e.refs(),n)}get length(){return this.refs.length}clone(){const e=new t.Manager;return e.refs=i(this.refs),e}reset(){this.refs=[]}roots(){return this.refs.filter((e=>!e.ancestor)).map((e=>e.root))}}},3378:(e,t,r)=>{"use strict";const n=r(5107),i={};i.wrap=n.string().min(1).max(2).allow(!1),t.preferences=n.object({allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),context:n.object(),convert:n.boolean(),dateFormat:n.valid("date","iso","string","time","utc"),debug:n.boolean(),errors:{escapeHtml:n.boolean(),label:n.valid("path","key",!1),language:[n.string(),n.object().ref()],render:n.boolean(),stack:n.boolean(),wrap:{label:i.wrap,array:i.wrap,string:i.wrap}},externals:n.boolean(),messages:n.object(),noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:n.valid("required","optional","forbidden"),skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()}).strict(),i.nameRx=/^[a-zA-Z0-9]\w*$/,i.rule=n.object({alias:n.array().items(n.string().pattern(i.nameRx)).single(),args:n.array().items(n.string(),n.object({name:n.string().pattern(i.nameRx).required(),ref:n.boolean(),assert:n.alternatives([n.function(),n.object().schema()]).conditional("ref",{is:!0,then:n.required()}),normalize:n.function(),message:n.string().when("assert",{is:n.function(),then:n.required()})})),convert:n.boolean(),manifest:n.boolean(),method:n.function().allow(!1),multi:n.boolean(),validate:n.function()}),t.extension=n.object({type:n.alternatives([n.string(),n.object().regex()]).required(),args:n.function(),cast:n.object().pattern(i.nameRx,n.object({from:n.function().maxArity(1).required(),to:n.function().minArity(1).maxArity(2).required()})),base:n.object().schema().when("type",{is:n.object().regex(),then:n.forbidden()}),coerce:[n.function().maxArity(3),n.object({method:n.function().maxArity(3).required(),from:n.array().items(n.string()).single()})],flags:n.object().pattern(i.nameRx,n.object({setter:n.string(),default:n.any()})),manifest:{build:n.function().arity(2)},messages:[n.object(),n.string()],modifiers:n.object().pattern(i.nameRx,n.function().minArity(1).maxArity(2)),overrides:n.object().pattern(i.nameRx,n.function()),prepare:n.function().maxArity(3),rebuild:n.function().arity(1),rules:n.object().pattern(i.nameRx,i.rule),terms:n.object().pattern(i.nameRx,n.object({init:n.array().allow(null).required(),manifest:n.object().pattern(/.+/,[n.valid("schema","single"),n.object({mapped:n.object({from:n.string().required(),to:n.string().required()}).required()})])})),validate:n.function().maxArity(3)}).strict(),t.extensions=n.array().items(n.object(),n.function().arity(1)).strict(),i.desc={buffer:n.object({buffer:n.string()}),func:n.object({function:n.function().required(),options:{literal:!0}}),override:n.object({override:!0}),ref:n.object({ref:n.object({type:n.valid("value","global","local"),path:n.array().required(),separator:n.string().length(1).allow(!1),ancestor:n.number().min(0).integer().allow("root"),map:n.array().items(n.array().length(2)).min(1),adjust:n.function(),iterables:n.boolean(),in:n.boolean(),render:n.boolean()}).required()}),regex:n.object({regex:n.string().min(3)}),special:n.object({special:n.valid("deep").required()}),template:n.object({template:n.string().required(),options:n.object()}),value:n.object({value:n.alternatives([n.object(),n.array()]).required()})},i.desc.entity=n.alternatives([n.array().items(n.link("...")),n.boolean(),n.function(),n.number(),n.string(),i.desc.buffer,i.desc.func,i.desc.ref,i.desc.regex,i.desc.special,i.desc.template,i.desc.value,n.link("/")]),i.desc.values=n.array().items(null,n.boolean(),n.function(),n.number().allow(1/0,-1/0),n.string().allow(""),n.symbol(),i.desc.buffer,i.desc.func,i.desc.override,i.desc.ref,i.desc.regex,i.desc.template,i.desc.value),i.desc.messages=n.object().pattern(/.+/,[n.string(),i.desc.template,n.object().pattern(/.+/,[n.string(),i.desc.template])]),t.description=n.object({type:n.string().required(),flags:n.object({cast:n.string(),default:n.any(),description:n.string(),empty:n.link("/"),failover:i.desc.entity,id:n.string(),label:n.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:n.boolean(),unit:n.string()}).unknown(),preferences:{allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),convert:n.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:n.boolean(),label:["path","key"],language:[n.string(),i.desc.ref],wrap:{label:i.wrap,array:i.wrap}},externals:n.boolean(),messages:i.desc.messages,noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:["required","optional","forbidden"],skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()},allow:i.desc.values,invalid:i.desc.values,rules:n.array().min(1).items({name:n.string().required(),args:n.object().min(1),keep:n.boolean(),message:[n.string(),i.desc.messages],warn:n.boolean()}),keys:n.object().pattern(/.*/,n.link("/")),link:i.desc.ref}).pattern(/^[a-z]\w*$/,n.any())},493:(e,t,r)=>{"use strict";const n=r(8571),i=r(9621),o=r(8160),a={value:Symbol("value")};e.exports=a.State=class{constructor(e,t,r){this.path=e,this.ancestors=t,this.mainstay=r.mainstay,this.schemas=r.schemas,this.debug=null}localize(e,t=null,r=null){const n=new a.State(e,t,this);return r&&n.schemas&&(n.schemas=[a.schemas(r),...n.schemas]),n}nest(e,t){const r=new a.State(this.path,this.ancestors,this);return r.schemas=r.schemas&&[a.schemas(e),...r.schemas],r.debug=t,r}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new a.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=n(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}commit(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.commit()}},a.schemas=function(e){return o.isSchema(e)?{schema:e}:e},a.Shadow=class{constructor(){this._values=null}set(e,t,r){if(!e.length)return;if("strip"===r&&"number"==typeof e[e.length-1])return;this._values=this._values||new Map;let n=this._values;for(let i=0;i{"use strict";const n=r(375),i=r(8571),o=r(5277),a=r(1447),s=r(8160),c=r(6354),u=r(6133),l={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join("\x01"),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};e.exports=l.Template=class{constructor(e,t){if(n("string"==typeof e,"Template source must be a string"),n(!e.includes("\0")&&!e.includes("\x01"),"Template source cannot contain reserved control characters"),this.source=e,this.rendered=e,this._template=null,t){const{functions:e,...r}=t;this._settings=Object.keys(r).length?i(r):void 0,this._functions=e,this._functions&&(n(Object.keys(this._functions).every((e=>"string"==typeof e)),"Functions keys must be strings"),n(Object.values(this._functions).every((e=>"function"==typeof e)),"Functions values must be functions"))}else this._settings=void 0,this._functions=void 0;this._parse()}_parse(){if(!this.source.includes("{"))return;const e=l.encode(this.source),t=l.split(e);let r=!1;const n=[],i=t.shift();i&&n.push(i);for(const o of t){const e="{"!==o[0],t=e?"}":"}}",i=o.indexOf(t);if(-1===i||"{"===o[1]){n.push(`{${l.decode(o)}`);continue}let a=o.slice(e?0:1,i);const s=":"===a[0];s&&(a=a.slice(1));const c=this._ref(l.decode(a),{raw:e,wrapped:s});n.push(c),"string"!=typeof c&&(r=!0);const u=o.slice(i+t.length);u&&n.push(l.decode(u))}r?this._template=n:this.rendered=n.join("")}static date(e,t){return l.dateFormat[t.dateFormat].call(e)}describe(e={}){if(!this._settings&&e.compact)return this.source;const t={template:this.source};return this._settings&&(t.options=this._settings),this._functions&&(t.functions=this._functions),t}static build(e){return new l.Template(e.template,e.options||e.functions?{...e.options,functions:e.functions}:void 0)}isDynamic(){return!!this._template}static isTemplate(e){return!!e&&!!e[s.symbols.template]}refs(){if(!this._template)return;const e=[];for(const t of this._template)"string"!=typeof t&&e.push(...t.refs);return e}resolve(e,t,r,n){return this._template&&1===this._template.length?this._part(this._template[0],e,t,r,n,{}):this.render(e,t,r,n)}_part(e,...t){return e.ref?e.ref.resolve(...t):e.formula.evaluate(t)}render(e,t,r,n,i={}){if(!this.isDynamic())return this.rendered;const a=[];for(const s of this._template)if("string"==typeof s)a.push(s);else{const c=this._part(s,e,t,r,n,i),u=l.stringify(c,e,t,r,n,i);if(void 0!==u){const e=s.raw||!1===(i.errors&&i.errors.escapeHtml)?u:o(u);a.push(l.wrap(e,s.wrapped&&r.errors.wrap.label))}}return a.join("")}_ref(e,{raw:t,wrapped:r}){const n=[],i=e=>{const t=u.create(e,this._settings);return n.push(t),e=>{const r=t.resolve(...e);return void 0!==r?r:null}};try{const t=this._functions?{...l.functions,...this._functions}:l.functions;var o=new a.Parser(e,{reference:i,functions:t,constants:l.constants})}catch(t){throw t.message=`Invalid template variable "${e}" fails due to: ${t.message}`,t}if(o.single){if("reference"===o.single.type){const e=n[0];return{ref:e,raw:t,refs:n,wrapped:r||"local"===e.type&&"label"===e.key}}return l.stringify(o.single.value)}return{formula:o,raw:t,refs:n}}toString(){return this.source}},l.Template.prototype[s.symbols.template]=!0,l.Template.prototype.isImmutable=!0,l.encode=function(e){return e.replace(/\\(\{+)/g,((e,t)=>l.opens.slice(0,t.length))).replace(/\\(\}+)/g,((e,t)=>l.closes.slice(0,t.length)))},l.decode=function(e){return e.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},l.split=function(e){const t=[];let r="";for(let n=0;n ${n.toString()}`);e=t}if(!Array.isArray(e))return e.toString();const d=[];for(const u of e)d.push(l.stringify(u,t,r,n,i,{arrayItems:!0,...o}));return l.wrap(d.join(", "),!c&&s.array)},l.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},l.functions={if:(e,t,r)=>e?t:r,length:e=>"string"==typeof e?e.length:e&&"object"==typeof e?Array.isArray(e)?e.length:Object.keys(e).length:null,msg(e){const[t,r,n,i,o]=this,a=o.messages;if(!a)return"";const s=c.template(t,a[0],e,r,n)||c.template(t,a[1],e,r,n);return s?s.render(t,r,n,i,o):""},number:e=>"number"==typeof e?e:"string"==typeof e?parseFloat(e):"boolean"==typeof e?e?1:0:e instanceof Date?e.getTime():null}},4946:(e,t,r)=>{"use strict";const n=r(375),i=r(1687),o=r(8068),a=r(8160),s=r(3292),c=r(6354),u=r(6133),l={};e.exports=o.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:u.toSibling}},args:(e,...t)=>1===t.length&&Array.isArray(t[0])?e.try(...t[0]):e.try(...t),validate(e,t){const{schema:r,error:n,state:o,prefs:a}=t;if(r._flags.match){const t=[],s=[];for(let n=0;nc.details(e,{override:!1})))})};if("one"===r._flags.match)return 1===t.length?{value:t[0]}:{errors:n("alternatives.one")};if(t.length!==r.$_terms.matches.length)return{errors:n("alternatives.all",{details:s.map((e=>c.details(e,{override:!1})))})};const u=e=>e.$_terms.matches.some((e=>"object"===e.schema.type||"alternatives"===e.schema.type&&u(e.schema)));return u(r)?{value:t.reduce(((e,t)=>i(e,t,{mergeArrays:!1})))}:{value:t[t.length-1]}}const s=[];for(let i=0;i"is"!==r.path[0]&&"string"!=typeof t._flags.label?t.label(e):void 0,ref:!1})}},rebuild(e){e.$_modify({each:t=>{a.isSchema(t)&&"array"===t.type&&e.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(e,t){if(t.matches)for(const r of t.matches){const{schema:t,ref:n,is:i,not:o,then:a,otherwise:s}=r;e=t?e.try(t):n?e.conditional(n,{is:i,then:a,not:o,otherwise:s,switch:r.switch}):e.conditional(i,{then:a,otherwise:s})}return e}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),l.errors=function(e,{error:t,state:r}){if(!e.length)return{errors:t("alternatives.any")};if(1===e.length)return{errors:e[0].reports};const n=new Set,i=[];for(const{reports:o,schema:a}of e){if(o.length>1)return l.unmatched(e,t);const s=o[0];if(s instanceof c.Report==0)return l.unmatched(e,t);if(s.state.path.length!==r.path.length){i.push({type:a.type,report:s});continue}if("any.only"===s.code){for(const e of s.local.valids)n.add(e);continue}const[u,d]=s.code.split(".");"base"!==d?i.push({type:a.type,report:s}):"object.base"===s.code?n.add(s.local.type):n.add(u)}return i.length?1===i.length?{errors:i[0].report}:l.unmatched(e,t):{errors:t("alternatives.types",{types:[...n]})}},l.unmatched=function(e,t){const r=[];for(const n of e)r.push(...n.reports);return{errors:t("alternatives.match",c.details(r,{override:!1}))}}},8068:(e,t,r)=>{"use strict";const n=r(375),i=r(7629),o=r(8160),a=r(6914);e.exports=i.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return n("function"==typeof e,"Method must be a function"),n(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:e,description:t}})},validate(e,t,{method:r}){try{return r(e,t)}catch(e){return t.error("any.custom",{error:e})}},args:["method","description"],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){n(o.isSchema(e)&&e._flags.id,"Schema must be a schema with an id");const t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return n(e&&"string"==typeof e,"Invalid warning code"),this.$_addRule({name:"warning",args:{code:e,local:t},warn:!0})},validate:(e,t,{code:r,local:n})=>t.error(r,n),args:["code","local"],multi:!0}},modifiers:{keep(e,t=!0){e.keep=t},message(e,t){e.message=a.compile(t)},warn(e,t=!0){e.warn=t}},manifest:{build(e,t){for(const r in t){const n=t[r];if(["examples","externals","metas","notes","tags"].includes(r))for(const t of n)e=e[r.slice(0,-1)](t);else if("alterations"!==r)if("whens"!==r){if("shared"===r)for(const t of n)e=e.shared(t)}else for(const t of n){const{ref:r,is:n,not:i,then:o,otherwise:a,concat:s}=t;e=s?e.concat(s):r?e.when(r,{is:n,not:i,then:o,otherwise:a,switch:t.switch,break:t.break}):e.when(n,{then:o,otherwise:a,break:t.break})}else{const t={};for(const{target:e,adjuster:r}of n)t[e]=r;e=e.alter(t)}}return e}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(e,t,r)=>{"use strict";const n=r(375),i=r(9474),o=r(9621),a=r(8068),s=r(8160),c=r(3292),u={};e.exports=a.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(e,{schema:t,state:r,prefs:n}){if(!Array.isArray(e))return;const i=t.$_getRule("sort");return i?u.sort(t,e,i.args.options,r,n):void 0}},validate(e,{schema:t,error:r}){if(!Array.isArray(e)){if(t._flags.single){const t=[e];return t[s.symbols.arraySingle]=!0,{value:t}}return{errors:r("array.base")}}if(t.$_getRule("items")||t.$_terms.externals)return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});const t=this.$_addRule({name:"has",args:{schema:e}});return t.$_mutateRegister(e),t},validate(e,{state:t,prefs:r,error:n},{schema:i}){const o=[e,...t.ancestors];for(let s=0;sthis.$_compile(e[r])),r,{append:!0});t.$_terms.items.push(n)}return t.$_mutateRebuild()},validate(e,{schema:t,error:r,state:n,prefs:i,errorsArray:o}){const a=t.$_terms._requireds.slice(),c=t.$_terms.ordered.slice(),l=[...t.$_terms._inclusions,...a],d=!e[s.symbols.arraySingle];delete e[s.symbols.arraySingle];const f=o();let h=e.length;for(let s=0;s="})}},ordered:{method(...e){s.verifyFlat(e,"ordered");const t=this.$_addRule("items");for(let r=0;rthis.$_compile(e[r])),r,{append:!0});u.validateSingle(n,t),t.$_mutateRegister(n),t.$_terms.ordered.push(n)}return t.$_mutateRebuild()}},single:{method(e){const t=void 0===e||!!e;return n(!t||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",t)}},sort:{method(e={}){s.assertOptions(e,["by","order"]);const t={order:e.order||"ascending"};return e.by&&(t.by=c.ref(e.by,{ancestor:0}),n(!t.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:t}})},validate(e,{error:t,state:r,prefs:n,schema:i},{options:o}){const{value:a,errors:s}=u.sort(i,e,o,r,n);if(s)return s;for(let c=0;cnew Set(e)}},rebuild(e){e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[];for(const t of e.$_terms.items)u.validateSingle(t,e),"required"===t._flags.presence?e.$_terms._requireds.push(t):"forbidden"===t._flags.presence?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(const t of e.$_terms.ordered)u.validateSingle(t,e)},manifest:{build:(e,t)=>(t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),u.fillMissedErrors=function(e,t,r,n,i,o){const a=[];let s=0;for(const c of r){const e=c._flags.label;e?a.push(e):++s}a.length?s?t.push(e.$_createError("array.includesRequiredBoth",n,{knownMisses:a,unknownMisses:s},i,o)):t.push(e.$_createError("array.includesRequiredKnowns",n,{knownMisses:a},i,o)):t.push(e.$_createError("array.includesRequiredUnknowns",n,{unknownMisses:s},i,o))},u.fillOrderedErrors=function(e,t,r,n,i,o){const a=[];for(const s of r)"required"===s._flags.presence&&a.push(s);a.length&&u.fillMissedErrors(e,t,a,n,i,o)},u.fillDefault=function(e,t,r,n){const i=[];let o=!0;for(let a=e.length-1;a>=0;--a){const s=e[a],c=[t,...r.ancestors],u=s.$_validate(void 0,r.localize(r.path,c,s),n).value;if(o){if(void 0===u)continue;o=!1}i.unshift(u)}i.length&&t.push(...i)},u.fastSplice=function(e,t){let r=t;for(;r{let d=u.compare(c,l,a,s);if(null!==d)return d;if(r.by&&(c=r.by.resolve(c,n,i),l=r.by.resolve(l,n,i)),d=u.compare(c,l,a,s),null!==d)return d;const f=typeof c;if(f!==typeof l)throw e.$_createError("array.sort.mismatching",t,null,n,i);if("number"!==f&&"string"!==f)throw e.$_createError("array.sort.unsupported",t,{type:f},n,i);return"number"===f?(c-l)*o:c{"use strict";const n=r(375),i=r(8068),o=r(8160),a=r(2036),s={isBool:function(e){return"boolean"==typeof e}};e.exports=i.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(e,{schema:t}){if("boolean"!=typeof e){if("string"==typeof e){const r=t._flags.sensitive?e:e.toLowerCase();e="true"===r||"false"!==r&&e}return"boolean"!=typeof e&&(e=t.$_terms.truthy&&t.$_terms.truthy.has(e,null,null,!t._flags.sensitive)||(!t.$_terms.falsy||!t.$_terms.falsy.has(e,null,null,!t._flags.sensitive))&&e),{value:e}}},validate(e,{error:t}){if("boolean"!=typeof e)return{value:e,errors:t("boolean.base")}},rules:{truthy:{method(...e){o.verifyFlat(e,"truthy");const t=this.clone();t.$_terms.truthy=t.$_terms.truthy||new a;for(let r=0;re?1:0},string:{from:s.isBool,to:(e,t)=>e?"true":"false"}},manifest:{build:(e,t)=>(t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(e,t,r)=>{"use strict";const n=r(375),i=r(8068),o=r(8160),a=r(3328),s={isDate:function(e){return e instanceof Date}};e.exports=i.extend({type:"date",coerce:{from:["number","string"],method:(e,{schema:t})=>({value:s.parse(e,t._flags.format)||e})},validate(e,{schema:t,error:r,prefs:n}){if(e instanceof Date&&!isNaN(e.getTime()))return;const i=t._flags.format;return n.convert&&i&&"string"==typeof e?{value:e,errors:r("date.format",{format:i})}:{value:e,errors:r("date.base")}},rules:{compare:{method:!1,validate(e,t,{date:r},{name:n,operator:i,args:a}){const s="now"===r?Date.now():r.getTime();return o.compare(e.getTime(),s,i)?e:t.error("date."+n,{limit:a.date,value:e})},args:[{name:"date",ref:!0,normalize:e=>"now"===e?e:s.parse(e),assert:e=>null!==e,message:"must have a valid date format"}]},format:{method(e){return n(["iso","javascript","unix"].includes(e),"Unknown date format",e),this.$_setFlag("format",e)}},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{date:e},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{date:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{date:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{date:e},operator:">="})}},timestamp:{method(e="javascript"){return n(["javascript","unix"].includes(e),'"type" must be one of "javascript, unix"'),this.format(e)}}},cast:{number:{from:s.isDate,to:(e,t)=>e.getTime()},string:{from:s.isDate,to:(e,{prefs:t})=>a.date(e,t)}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),s.parse=function(e,t){if(e instanceof Date)return e;if("string"!=typeof e&&(isNaN(e)||!isFinite(e)))return null;if(/^\s*$/.test(e))return null;if("iso"===t)return o.isIsoDate(e)?s.date(e.toString()):null;const r=e;if("string"==typeof e&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if("javascript"===t)return s.date(1*e);if("unix"===t)return s.date(1e3*e);if("string"==typeof r)return null}return s.date(e)},s.date=function(e){const t=new Date(e);return isNaN(t.getTime())?null:t}},390:(e,t,r)=>{"use strict";const n=r(375),i=r(7824);e.exports=i.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:e}})},validate:(e,t,{n:r})=>e.length===r?e:t.error("function.arity",{n:r})},class:{method(){return this.$_addRule("class")},validate:(e,t)=>/^\s*class\s/.test(e.toString())?e:t.error("function.class",{value:e})},minArity:{method(e){return n(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:e}})},validate:(e,t,{n:r})=>e.length>=r?e:t.error("function.minArity",{n:r})},maxArity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:e}})},validate:(e,t,{n:r})=>e.length<=r?e:t.error("function.maxArity",{n:r})}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(e,t,r)=>{"use strict";const n=r(978),i=r(375),o=r(8571),a=r(3652),s=r(8068),c=r(8160),u=r(3292),l=r(6354),d=r(6133),f=r(3328),h={renameDefaults:{alias:!1,multiple:!1,override:!1}};e.exports=s.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:void 0}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(e,t)=>e.keys(t),validate(e,{schema:t,error:r,state:n,prefs:i}){if(!e||typeof e!==t.$_property("typeof")||Array.isArray(e))return{value:e,errors:r("object.base",{type:t.$_property("typeof")})};if(!(t.$_terms.renames||t.$_terms.dependencies||t.$_terms.keys||t.$_terms.patterns||t.$_terms.externals))return;e=h.clone(e,i);const o=[];if(t.$_terms.renames&&!h.rename(t,e,n,i,o))return{value:e,errors:o};if(!t.$_terms.keys&&!t.$_terms.patterns&&!t.$_terms.dependencies)return{value:e,errors:o};const a=new Set(Object.keys(e));if(t.$_terms.keys){const r=[e,...n.ancestors];for(const s of t.$_terms.keys){const t=s.key,c=e[t];a.delete(t);const u=n.localize([...n.path,t],r,s),l=s.schema.$_validate(c,u,i);if(l.errors){if(i.abortEarly)return{value:e,errors:l.errors};void 0!==l.value&&(e[t]=l.value),o.push(...l.errors)}else"strip"===s.schema._flags.result||void 0===l.value&&void 0!==c?delete e[t]:void 0!==l.value&&(e[t]=l.value)}}if(a.size||t._flags._hasPatternMatch){const r=h.unknown(t,e,a,o,n,i);if(r)return r}if(t.$_terms.dependencies)for(const s of t.$_terms.dependencies){if(null!==s.key&&!1===h.isPresent(s.options)(s.key.resolve(e,n,i,null,{shadow:!1})))continue;const r=h.dependencies[s.rel](t,s,e,n,i);if(r){const a=t.$_createError(r.code,e,r.context,n,i);if(i.abortEarly)return{value:e,errors:a};o.push(a)}}return{value:e,errors:o}},rules:{and:{method(...e){return c.verifyFlat(e,"and"),h.dependency(this,"and",null,e)}},append:{method(e){return null==e||0===Object.keys(e).length?this:this.keys(e)}},assert:{method(e,t,r){f.isTemplate(e)||(e=u.ref(e)),i(void 0===r||"string"==typeof r,"Message must be a string"),t=this.$_compile(t,{appendPath:!0});const n=this.$_addRule({name:"assert",args:{subject:e,schema:t,message:r}});return n.$_mutateRegister(e),n.$_mutateRegister(t),n},validate(e,{error:t,prefs:r,state:n},{subject:i,schema:o,message:a}){const s=i.resolve(e,n,r),c=d.isRef(i)?i.absolute(n):[];return o.$_match(s,n.localize(c,[e,...n.ancestors],o),r)?e:t("object.assert",{subject:i,message:a})},args:["subject","schema","message"],multi:!0},instance:{method(e,t){return i("function"==typeof e,"constructor must be a function"),t=t||e.name,this.$_addRule({name:"instance",args:{constructor:e,name:t}})},validate:(e,t,{constructor:r,name:n})=>e instanceof r?e:t.error("object.instance",{type:n,value:e}),args:["constructor","name"]},keys:{method(e){i(void 0===e||"object"==typeof e,"Object schema must be a valid object"),i(!c.isSchema(e),"Object schema cannot be a joi schema");const t=this.clone();if(e)if(Object.keys(e).length){t.$_terms.keys=t.$_terms.keys?t.$_terms.keys.filter((t=>!e.hasOwnProperty(t.key))):new h.Keys;for(const r in e)c.tryWithPath((()=>t.$_terms.keys.push({key:r,schema:this.$_compile(e[r])})),r)}else t.$_terms.keys=new h.Keys;else t.$_terms.keys=null;return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate:(e,t,{limit:r},{name:n,operator:i,args:o})=>c.compare(Object.keys(e).length,r,i)?e:t.error("object."+n,{limit:o.limit,value:e}),args:[{name:"limit",ref:!0,assert:c.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},nand:{method(...e){return c.verifyFlat(e,"nand"),h.dependency(this,"nand",null,e)}},or:{method(...e){return c.verifyFlat(e,"or"),h.dependency(this,"or",null,e)}},oxor:{method(...e){return h.dependency(this,"oxor",null,e)}},pattern:{method(e,t,r={}){const n=e instanceof RegExp;n||(e=this.$_compile(e,{appendPath:!0})),i(void 0!==t,"Invalid rule"),c.assertOptions(r,["fallthrough","matches"]),n&&i(!e.flags.includes("g")&&!e.flags.includes("y"),"pattern should not use global or sticky mode"),t=this.$_compile(t,{appendPath:!0});const o=this.clone();o.$_terms.patterns=o.$_terms.patterns||[];const a={[n?"regex":"schema"]:e,rule:t};return r.matches&&(a.matches=this.$_compile(r.matches),"array"!==a.matches.type&&(a.matches=a.matches.$_root.array().items(a.matches)),o.$_mutateRegister(a.matches),o.$_setFlag("_hasPatternMatch",!0,{clone:!1})),r.fallthrough&&(a.fallthrough=!0),o.$_terms.patterns.push(a),o.$_mutateRegister(t),o}},ref:{method(){return this.$_addRule("ref")},validate:(e,t)=>d.isRef(e)?e:t.error("object.refType",{value:e})},regex:{method(){return this.$_addRule("regex")},validate:(e,t)=>e instanceof RegExp?e:t.error("object.regex",{value:e})},rename:{method(e,t,r={}){i("string"==typeof e||e instanceof RegExp,"Rename missing the from argument"),i("string"==typeof t||t instanceof f,"Invalid rename to argument"),i(t!==e,"Cannot rename key to same name:",e),c.assertOptions(r,["alias","ignoreUndefined","override","multiple"]);const o=this.clone();o.$_terms.renames=o.$_terms.renames||[];for(const n of o.$_terms.renames)i(n.from!==e,"Cannot rename the same key multiple times");return t instanceof f&&o.$_mutateRegister(t),o.$_terms.renames.push({from:e,to:t,options:n(h.renameDefaults,r)}),o}},schema:{method(e="any"){return this.$_addRule({name:"schema",args:{type:e}})},validate:(e,t,{type:r})=>!c.isSchema(e)||"any"!==r&&e.type!==r?t.error("object.schema",{type:r}):e},unknown:{method(e){return this.$_setFlag("unknown",!1!==e)}},with:{method(e,t,r={}){return h.dependency(this,"with",e,t,r)}},without:{method(e,t,r={}){return h.dependency(this,"without",e,t,r)}},xor:{method(...e){return c.verifyFlat(e,"xor"),h.dependency(this,"xor",null,e)}}},overrides:{default(e,t){return void 0===e&&(e=c.symbols.deepDefault),this.$_parent("default",e,t)}},rebuild(e){if(e.$_terms.keys){const t=new a.Sorter;for(const r of e.$_terms.keys)c.tryWithPath((()=>t.add(r,{after:r.schema.$_rootReferences(),group:r.key})),r.key);e.$_terms.keys=new h.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(const{rel:r,key:n=null,peers:i,options:o}of t.dependencies)e=h.dependency(e,r,n,i,o);if(t.patterns)for(const{regex:r,schema:n,rule:i,fallthrough:o,matches:a}of t.patterns)e=e.pattern(r||n,i,{fallthrough:o,matches:a});if(t.renames)for(const{from:r,to:n,options:i}of t.renames)e=e.rename(r,n,i);return e}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),h.clone=function(e,t){if("object"==typeof e){if(t.nonEnumerables)return o(e,{shallow:!0});const r=Object.create(Object.getPrototypeOf(e));return Object.assign(r,e),r}const r=function(...t){return e.apply(this,t)};return r.prototype=o(e.prototype),Object.defineProperty(r,"name",{value:e.name,writable:!1}),Object.defineProperty(r,"length",{value:e.length,writable:!1}),Object.assign(r,e),r},h.dependency=function(e,t,r,n,o){i(null===r||"string"==typeof r,t,"key must be a strings"),o||(o=n.length>1&&"object"==typeof n[n.length-1]?n.pop():{}),c.assertOptions(o,["separator","isPresent"]),n=[].concat(n);const a=c.default(o.separator,"."),s=[];for(const c of n)i("string"==typeof c,t,"peers must be strings"),s.push(u.ref(c,{separator:a,ancestor:0,prefix:!1}));null!==r&&(r=u.ref(r,{separator:a,ancestor:0,prefix:!1}));const l=e.clone();return l.$_terms.dependencies=l.$_terms.dependencies||[],l.$_terms.dependencies.push(new h.Dependency(t,r,s,n,o)),l},h.dependencies={and(e,t,r,n,i){const o=[],a=[],s=t.peers.length,c=h.isPresent(t.options);for(const u of t.peers)!1===c(u.resolve(r,n,i,null,{shadow:!1}))?o.push(u.key):a.push(u.key);if(o.length!==s&&a.length!==s)return{code:"object.and",context:{present:a,presentWithLabels:h.keysToLabels(e,a),missing:o,missingWithLabels:h.keysToLabels(e,o)}}},nand(e,t,r,n,i){const o=[],a=h.isPresent(t.options);for(const u of t.peers)a(u.resolve(r,n,i,null,{shadow:!1}))&&o.push(u.key);if(o.length!==t.peers.length)return;const s=t.paths[0],c=t.paths.slice(1);return{code:"object.nand",context:{main:s,mainWithLabel:h.keysToLabels(e,s),peers:c,peersWithLabels:h.keysToLabels(e,c)}}},or(e,t,r,n,i){const o=h.isPresent(t.options);for(const a of t.peers)if(o(a.resolve(r,n,i,null,{shadow:!1})))return;return{code:"object.missing",context:{peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)}}},oxor(e,t,r,n,i){const o=[],a=h.isPresent(t.options);for(const c of t.peers)a(c.resolve(r,n,i,null,{shadow:!1}))&&o.push(c.key);if(!o.length||1===o.length)return;const s={peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)};return s.present=o,s.presentWithLabels=h.keysToLabels(e,o),{code:"object.oxor",context:s}},with(e,t,r,n,i){const o=h.isPresent(t.options);for(const a of t.peers)if(!1===o(a.resolve(r,n,i,null,{shadow:!1})))return{code:"object.with",context:{main:t.key.key,mainWithLabel:h.keysToLabels(e,t.key.key),peer:a.key,peerWithLabel:h.keysToLabels(e,a.key)}}},without(e,t,r,n,i){const o=h.isPresent(t.options);for(const a of t.peers)if(o(a.resolve(r,n,i,null,{shadow:!1})))return{code:"object.without",context:{main:t.key.key,mainWithLabel:h.keysToLabels(e,t.key.key),peer:a.key,peerWithLabel:h.keysToLabels(e,a.key)}}},xor(e,t,r,n,i){const o=[],a=h.isPresent(t.options);for(const c of t.peers)a(c.resolve(r,n,i,null,{shadow:!1}))&&o.push(c.key);if(1===o.length)return;const s={peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)};return 0===o.length?{code:"object.missing",context:s}:(s.present=o,s.presentWithLabels=h.keysToLabels(e,o),{code:"object.xor",context:s})}},h.keysToLabels=function(e,t){return Array.isArray(t)?t.map((t=>e.$_mapLabels(t))):e.$_mapLabels(t)},h.isPresent=function(e){return"function"==typeof e.isPresent?e.isPresent:e=>void 0!==e},h.rename=function(e,t,r,n,i){const o={};for(const a of e.$_terms.renames){const s=[],c="string"!=typeof a.from;if(c)for(const e in t){if(void 0===t[e]&&a.options.ignoreUndefined)continue;if(e===a.to)continue;const r=a.from.exec(e);r&&s.push({from:e,to:a.to,match:r})}else!Object.prototype.hasOwnProperty.call(t,a.from)||void 0===t[a.from]&&a.options.ignoreUndefined||s.push(a);for(const u of s){const s=u.from;let l=u.to;if(l instanceof f&&(l=l.render(t,r,n,u.match)),s!==l){if(!a.options.multiple&&o[l]&&(i.push(e.$_createError("object.rename.multiple",t,{from:s,to:l,pattern:c},r,n)),n.abortEarly))return!1;if(Object.prototype.hasOwnProperty.call(t,l)&&!a.options.override&&!o[l]&&(i.push(e.$_createError("object.rename.override",t,{from:s,to:l,pattern:c},r,n)),n.abortEarly))return!1;void 0===t[s]?delete t[l]:t[l]=t[s],o[l]=!0,a.options.alias||delete t[s]}}}return!0},h.unknown=function(e,t,r,n,i,o){if(e.$_terms.patterns){let a=!1;const s=e.$_terms.patterns.map((e=>{if(e.matches)return a=!0,[]})),c=[t,...i.ancestors];for(const u of r){const a=t[u],l=[...i.path,u];for(let d=0;d{"use strict";const n=r(375),i=r(8068),o=r(8160),a=r(3292),s=r(6354),c={};e.exports=i.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(e,t)=>e.ref(t),validate(e,{schema:t,state:r,prefs:i}){n(t.$_terms.link,"Uninitialized link schema");const o=c.generate(t,e,r,i),a=t.$_terms.link[0].ref;return o.$_validate(e,r.nest(o,`link:${a.display}:${o.type}`),i)},generate:(e,t,r,n)=>c.generate(e,t,r,n),rules:{ref:{method(e){n(!this.$_terms.link,"Cannot reinitialize schema"),e=a.ref(e),n("value"===e.type||"local"===e.type,"Invalid reference type:",e.type),n("local"===e.type||"root"===e.ancestor||e.ancestor>0,"Link cannot reference itself");const t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(e=!0){return this.$_setFlag("relative",e)}}},overrides:{concat(e){n(this.$_terms.link,"Uninitialized link schema"),n(o.isSchema(e),"Invalid schema object"),n("link"!==e.type,"Cannot merge type link with another link");const t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build:(e,t)=>(n(t.link,"Invalid link description missing link"),e.ref(t.link))}}),c.generate=function(e,t,r,n){let i=r.mainstay.links.get(e);if(i)return i._generate(t,r,n).schema;const o=e.$_terms.link[0].ref,{perspective:a,path:s}=c.perspective(o,r);c.assert(a,"which is outside of schema boundaries",o,e,r,n);try{i=s.length?a.$_reach(s):a}catch(t){c.assert(!1,"to non-existing schema",o,e,r,n)}return c.assert("link"!==i.type,"which is another link",o,e,r,n),e._flags.relative||r.mainstay.links.set(e,i),i._generate(t,r,n).schema},c.perspective=function(e,t){if("local"===e.type){for(const{schema:r,key:n}of t.schemas){if((r._flags.id||n)===e.path[0])return{perspective:r,path:e.path.slice(1)};if(r.$_terms.shared)for(const t of r.$_terms.shared)if(t._flags.id===e.path[0])return{perspective:t,path:e.path.slice(1)}}return{perspective:null,path:null}}return"root"===e.ancestor?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},c.assert=function(e,t,r,i,o,a){e||n(!1,`"${s.label(i._flags,o,a)}" contains link reference "${r.display}" ${t}`)}},3832:(e,t,r)=>{"use strict";const n=r(375),i=r(8068),o=r(8160),a={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/,decimalPlaces(e){const t=e.toString(),r=t.indexOf("."),n=t.indexOf("e");return(r<0?0:(n<0?t.length:n)-r-1)+(n<0?0:Math.max(0,-parseInt(t.slice(n+1))))}};e.exports=i.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(e,{schema:t,error:r}){if(!e.match(a.numberRx))return;e=e.trim();const n={value:parseFloat(e)};if(0===n.value&&(n.value=0),!t._flags.unsafe)if(e.match(/e/i)){if(a.extractSignificantDigits(e)!==a.extractSignificantDigits(String(n.value)))return n.errors=r("number.unsafe"),n}else{const t=n.value.toString();if(t.match(/e/i))return n;if(t!==a.normalizeDecimal(e))return n.errors=r("number.unsafe"),n}return n}},validate(e,{schema:t,error:r,prefs:n}){if(e===1/0||e===-1/0)return{value:e,errors:r("number.infinity")};if(!o.isNumber(e))return{value:e,errors:r("number.base")};const i={value:e};if(n.convert){const e=t.$_getRule("precision");if(e){const t=Math.pow(10,e.args.limit);i.value=Math.round(i.value*t)/t}}return 0===i.value&&(i.value=0),!t._flags.unsafe&&(e>Number.MAX_SAFE_INTEGER||eo.compare(e,r,i)?e:t.error("number."+n,{limit:a.limit,value:e}),args:[{name:"limit",ref:!0,assert:o.isNumber,message:"must be a number"}]},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{limit:e},operator:">"})}},integer:{method(){return this.$_addRule("integer")},validate:(e,t)=>Math.trunc(e)-e==0?e:t.error("number.integer")},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{limit:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{limit:e},operator:">="})}},multiple:{method(e){const t="number"==typeof e?a.decimalPlaces(e):null,r=Math.pow(10,t);return this.$_addRule({name:"multiple",args:{base:e,baseDecimalPlace:t,pfactor:r}})},validate:(e,t,{base:r,baseDecimalPlace:n,pfactor:i},o)=>a.decimalPlaces(e)>n?t.error("number.multiple",{multiple:o.args.base,value:e}):Math.round(i*e)%Math.round(i*r)==0?e:t.error("number.multiple",{multiple:o.args.base,value:e}),args:[{name:"base",ref:!0,assert:e=>"number"==typeof e&&isFinite(e)&&e>0,message:"must be a positive number"},"baseDecimalPlace","pfactor"],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(e,t)=>Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(e){return n(Number.isSafeInteger(e),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:e}})},validate(e,t,{limit:r}){const n=e.toString().match(a.precisionRx);return Math.max((n[1]?n[1].length:0)-(n[2]?parseInt(n[2],10):0),0)<=r?e:t.error("number.precision",{limit:r,value:e})},convert:!0},sign:{method(e){return n(["negative","positive"].includes(e),"Invalid sign",e),this.$_addRule({name:"sign",args:{sign:e}})},validate:(e,t,{sign:r})=>"negative"===r&&e<0||"positive"===r&&e>0?e:t.error(`number.${r}`)},unsafe:{method(e=!0){return n("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("unsafe",e)}}},cast:{string:{from:e=>"number"==typeof e,to:(e,t)=>e.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),a.extractSignificantDigits=function(e){return e.replace(a.exponentialPartRegex,"").replace(a.dotRegex,"").replace(a.trailingZerosRegex,"").replace(a.leadingSignAndZerosRegex,"")},a.normalizeDecimal=function(e){return(e=e.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&e.endsWith("0")&&(e=e.replace(/0+$/,"")),"-0"===e?"0":e}},8966:(e,t,r)=>{"use strict";const n=r(7824);e.exports=n.extend({type:"object",cast:{map:{from:e=>e&&"object"==typeof e,to:(e,t)=>new Map(Object.entries(e))}}})},7417:(e,t,r)=>{"use strict";const n=r(375),i=r(5380),o=r(1745),a=r(9959),s=r(6064),c=r(9926),u=r(5752),l=r(8068),d=r(8160),f={tlds:c instanceof Set&&{tlds:{allow:c,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:{withPrefix:/^0x[0-9a-f]+$/i,withOptionalPrefix:/^(?:0x)?[0-9a-f]+$/i,withoutPrefix:/^[0-9a-f]+$/i},ipRegex:a.regex({cidr:"forbidden"}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5",uuidv6:"6",uuidv7:"7",uuidv8:"8"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};e.exports=l.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(e,{schema:t,state:r,prefs:n}){const i=t.$_getRule("normalize");i&&(e=e.normalize(i.args.form));const o=t.$_getRule("case");o&&(e="upper"===o.args.direction?e.toLocaleUpperCase():e.toLocaleLowerCase());const a=t.$_getRule("trim");if(a&&a.args.enabled&&(e=e.trim()),t.$_terms.replacements)for(const c of t.$_terms.replacements)e=e.replace(c.pattern,c.replacement);const s=t.$_getRule("hex");if(s&&s.args.options.byteAligned&&e.length%2!=0&&(e=`0${e}`),t.$_getRule("isoDate")){const t=f.isoDate(e);t&&(e=t)}if(t._flags.truncate){const i=t.$_getRule("max");if(i){let o=i.args.limit;if(d.isResolvable(o)&&(o=o.resolve(e,r,n),!d.limit(o)))return{value:e,errors:t.$_createError("any.ref",o,{ref:i.args.limit,arg:"limit",reason:"must be a positive integer"},r,n)};e=e.slice(0,o)}}return{value:e}}},validate(e,{schema:t,error:r}){if("string"!=typeof e)return{value:e,errors:r("string.base")};if(""===e){const n=t.$_getRule("min");if(n&&0===n.args.limit)return;return{value:e,errors:r("string.empty")}}},rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(e,t)=>/^[a-zA-Z0-9]+$/.test(e)?e:t.error("string.alphanum")},base64:{method(e={}){return d.assertOptions(e,["paddingRequired","urlSafe"]),e={urlSafe:!1,paddingRequired:!0,...e},n("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),n("boolean"==typeof e.urlSafe,"urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:e}})},validate:(e,t,{options:r})=>f.base64Regex[r.paddingRequired][r.urlSafe].test(e)?e:t.error("string.base64")},case:{method(e){return n(["lower","upper"].includes(e),"Invalid case:",e),this.$_addRule({name:"case",args:{direction:e}})},validate:(e,t,{direction:r})=>"lower"===r&&e===e.toLocaleLowerCase()||"upper"===r&&e===e.toLocaleUpperCase()?e:t.error(`string.${r}case`),convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(e,t){let r=e.length,n=0,i=1;for(;r--;){const t=e.charAt(r)*i;n+=t-9*(t>9),i^=3}return n>0&&n%10==0?e:t.error("string.creditCard")}},dataUri:{method(e={}){return d.assertOptions(e,["paddingRequired"]),e={paddingRequired:!0,...e},n("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:e}})},validate(e,t,{options:r}){const n=e.match(f.dataUriRegex);if(n){if(!n[2])return e;if("base64"!==n[2])return e;if(f.base64Regex[r.paddingRequired].false.test(n[3]))return e}return t.error("string.dataUri")}},domain:{method(e){e&&d.assertOptions(e,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const t=f.addressOptions(e);return this.$_addRule({name:"domain",args:{options:e},address:t})},validate:(e,t,r,{address:n})=>i.isValid(e,n)?e:t.error("string.domain")},email:{method(e={}){d.assertOptions(e,["allowFullyQualified","allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),n(void 0===e.multiple||"boolean"==typeof e.multiple,"multiple option must be an boolean");const t=f.addressOptions(e),r=new RegExp(`\\s*[${e.separator?s(e.separator):","}]\\s*`);return this.$_addRule({name:"email",args:{options:e},regex:r,address:t})},validate(e,t,{options:r},{regex:n,address:i}){const a=r.multiple?e.split(n):[e],s=[];for(const c of a)o.isValid(c,i)||s.push(c);return s.length?t.error("string.email",{value:e,invalids:s}):e}},guid:{alias:"uuid",method(e={}){d.assertOptions(e,["version","separator"]);let t="";if(e.version){const r=[].concat(e.version);n(r.length>=1,"version must have at least 1 valid version specified");const i=new Set;for(let e=0;e("optional"===r.prefix?f.hexRegex.withOptionalPrefix:!0===r.prefix?f.hexRegex.withPrefix:f.hexRegex.withoutPrefix).test(e)?r.byteAligned&&e.length%2!=0?t.error("string.hexAlign"):e:t.error("string.hex")},hostname:{method(){return this.$_addRule("hostname")},validate:(e,t)=>i.isValid(e,{minDomainSegments:1})||f.ipRegex.test(e)?e:t.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(e={}){d.assertOptions(e,["cidr","version"]);const{cidr:t,versions:r,regex:n}=a.regex(e),i=e.version?r:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:t,version:i}},regex:n})},validate:(e,t,{options:r},{regex:n})=>n.test(e)?e:r.version?t.error("string.ipVersion",{value:e,cidr:r.cidr,version:r.version}):t.error("string.ip",{value:e,cidr:r.cidr})},isoDate:{method(){return this.$_addRule("isoDate")},validate:(e,{error:t})=>f.isoDate(e)?e:t("string.isoDate")},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(e,t)=>f.isoDurationRegex.test(e)?e:t.error("string.isoDuration")},length:{method(e,t){return f.length(this,"length",e,"=",t)},validate(e,t,{limit:r,encoding:n},{name:i,operator:o,args:a}){const s=!n&&e.length;return d.compare(s,r,o)?e:t.error("string."+i,{limit:a.limit,value:e,encoding:n})},args:[{name:"limit",ref:!0,assert:d.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(e,t){return f.length(this,"max",e,"<=",t)},args:["limit","encoding"]},min:{method(e,t){return f.length(this,"min",e,">=",t)},args:["limit","encoding"]},normalize:{method(e="NFC"){return n(f.normalizationForms.includes(e),"normalization form must be one of "+f.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:e}})},validate:(e,{error:t},{form:r})=>e===e.normalize(r)?e:t("string.normalize",{value:e,form:r}),convert:!0},pattern:{alias:"regex",method(e,t={}){n(e instanceof RegExp,"regex must be a RegExp"),n(!e.flags.includes("g")&&!e.flags.includes("y"),"regex should not use global or sticky mode"),"string"==typeof t&&(t={name:t}),d.assertOptions(t,["invert","name"]);const r=["string.pattern",t.invert?".invert":"",t.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:e,options:t},errorCode:r})},validate:(e,t,{regex:r,options:n},{errorCode:i})=>r.test(e)^n.invert?e:t.error(i,{name:n.name,regex:r,value:e}),args:["regex","options"],multi:!0},replace:{method(e,t){"string"==typeof e&&(e=new RegExp(s(e),"g")),n(e instanceof RegExp,"pattern must be a RegExp"),n("string"==typeof t,"replacement must be a String");const r=this.clone();return r.$_terms.replacements||(r.$_terms.replacements=[]),r.$_terms.replacements.push({pattern:e,replacement:t}),r}},token:{method(){return this.$_addRule("token")},validate:(e,t)=>/^\w+$/.test(e)?e:t.error("string.token")},trim:{method(e=!0){return n("boolean"==typeof e,"enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:e}})},validate:(e,t,{enabled:r})=>r&&e!==e.trim()?t.error("string.trim"):e,convert:!0},truncate:{method(e=!0){return n("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("truncate",e)}},uppercase:{method(){return this.case("upper")}},uri:{method(e={}){d.assertOptions(e,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme","encodeUri"]),e.domain&&d.assertOptions(e.domain,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:t,scheme:r}=u.regex(e),n=e.domain?f.addressOptions(e.domain):null;return this.$_addRule({name:"uri",args:{options:e},regex:t,domain:n,scheme:r})},validate(e,t,{options:r},{regex:n,domain:o,scheme:a}){if(["http:/","https:/"].includes(e))return t.error("string.uri");let s=n.exec(e);if(!s&&t.prefs.convert&&r.encodeUri){const t=encodeURI(e);s=n.exec(t),s&&(e=t)}if(s){const n=s[1]||s[2];return!o||r.allowRelative&&!n||i.isValid(n,o)?e:t.error("string.domain",{value:n})}return r.relativeOnly?t.error("string.uriRelativeOnly"):r.scheme?t.error("string.uriCustomScheme",{scheme:a,value:e}):t.error("string.uri")}}},manifest:{build(e,t){if(t.replacements)for(const{pattern:r,replacement:n}of t.replacements)e=e.replace(r,n);return e}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),f.addressOptions=function(e){if(!e)return f.tlds||e;if(n(void 0===e.minDomainSegments||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,"minDomainSegments must be a positive integer"),n(void 0===e.maxDomainSegments||Number.isSafeInteger(e.maxDomainSegments)&&e.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),!1===e.tlds)return e;if(!0===e.tlds||void 0===e.tlds)return n(f.tlds,"Built-in TLD list disabled"),Object.assign({},e,f.tlds);n("object"==typeof e.tlds,"tlds must be true, false, or an object");const t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),n(e.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),n(!e.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),f.validateTlds(e.tlds.deny,"tlds.deny"),e;const r=e.tlds.allow;return r?!0===r?(n(f.tlds,"Built-in TLD list disabled"),Object.assign({},e,f.tlds)):(Array.isArray(r)&&(e=Object.assign({},e,{tlds:{allow:new Set(r)}})),n(e.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),f.validateTlds(e.tlds.allow,"tlds.allow"),e):e},f.validateTlds=function(e,t){for(const r of e)n(i.isValid(r,{minDomainSegments:1,maxDomainSegments:1}),`${t} must contain valid top level domain names`)},f.isoDate=function(e){if(!d.isIsoDate(e))return null;/.*T.*[+-]\d\d$/.test(e)&&(e+="00");const t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},f.length=function(e,t,r,i,o){return n(!o||!1,"Invalid encoding:",o),e.$_addRule({name:t,method:"length",args:{limit:r,encoding:o},operator:i})}},8826:(e,t,r)=>{"use strict";const n=r(375),i=r(8068),o={};o.Map=class extends Map{slice(){return new o.Map(this)}},e.exports=i.extend({type:"symbol",terms:{map:{init:new o.Map}},coerce:{method(e,{schema:t,error:r}){const n=t.$_terms.map.get(e);return n&&(e=n),t._flags.only&&"symbol"!=typeof e?{value:e,errors:r("symbol.map",{map:t.$_terms.map})}:{value:e}}},validate(e,{error:t}){if("symbol"!=typeof e)return{value:e,errors:t("symbol.base")}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&"object"==typeof e&&(e=Object.entries(e)),n(e&&e[Symbol.iterator],"Iterable must be an iterable or object");const t=this.clone(),r=[];for(const i of e){n(i&&i[Symbol.iterator],"Entry must be an iterable");const[e,o]=i;n("object"!=typeof e&&"function"!=typeof e&&"symbol"!=typeof e,"Key must not be of type object, function, or Symbol"),n("symbol"==typeof o,"Value must be a Symbol"),t.$_terms.map.set(e,o),r.push(o)}return t.valid(...r)}}},manifest:{build:(e,t)=>(t.map&&(e=e.map(t.map)),e)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(738),a=r(9621),s=r(8160),c=r(6354),u=r(493),l={result:Symbol("result")};t.entry=function(e,t,r){let i=s.defaults;r&&(n(void 0===r.warnings,"Cannot override warnings preference in synchronous validation"),n(void 0===r.artifacts,"Cannot override artifacts preference in synchronous validation"),i=s.preferences(s.defaults,r));const o=l.entry(e,t,i);n(!o.mainstay.externals.length,"Schema with external rules must use validateAsync()");const a={value:o.value};return o.error&&(a.error=o.error),o.mainstay.warnings.length&&(a.warning=c.details(o.mainstay.warnings)),o.mainstay.debug&&(a.debug=o.mainstay.debug),o.mainstay.artifacts&&(a.artifacts=o.mainstay.artifacts),a},t.entryAsync=async function(e,t,r){let n=s.defaults;r&&(n=s.preferences(s.defaults,r));const i=l.entry(e,t,n),o=i.mainstay;if(i.error)throw o.debug&&(i.error.debug=o.debug),i.error;if(o.externals.length){let t=i.value;const u=[];for(const i of o.externals){const d=i.state.path,f="link"===i.schema.type?o.links.get(i.schema):null;let h,p,g=t;const m=d.length?[t]:[],y=d.length?a(e,d):e;if(d.length){h=d[d.length-1];let e=t;for(const t of d.slice(0,-1))e=e[t],m.unshift(e);p=m[0],g=p[h]}try{const e=(e,t)=>(f||i.schema).$_createError(e,g,t,i.state,n),a=await i.method(g,{schema:i.schema,linked:f,state:i.state,prefs:r,original:y,error:e,errorsArray:l.errorsArray,warn:(e,t)=>o.warnings.push((f||i.schema).$_createError(e,g,t,i.state,n)),message:(e,t)=>(f||i.schema).$_createError("external",g,t,i.state,n,{messages:e})});if(void 0===a||a===g)continue;if(a instanceof c.Report){if(o.tracer.log(i.schema,i.state,"rule","external","error"),u.push(a),n.abortEarly)break;continue}if(Array.isArray(a)&&a[s.symbols.errors]){if(o.tracer.log(i.schema,i.state,"rule","external","error"),u.push(...a),n.abortEarly)break;continue}p?(o.tracer.value(i.state,"rule",g,a,"external"),p[h]=a):(o.tracer.value(i.state,"rule",t,a,"external"),t=a)}catch(e){throw n.errors.label&&(e.message+=` (${i.label})`),e}}if(i.value=t,u.length)throw i.error=c.process(u,e,n),o.debug&&(i.error.debug=o.debug),i.error}if(!n.warnings&&!n.debug&&!n.artifacts)return i.value;const u={value:i.value};return o.warnings.length&&(u.warning=c.details(o.warnings)),o.debug&&(u.debug=o.debug),o.artifacts&&(u.artifacts=o.artifacts),u},l.Mainstay=class{constructor(e,t,r){this.externals=[],this.warnings=[],this.tracer=e,this.debug=t,this.links=r,this.shadow=null,this.artifacts=null,this._snapshots=[]}snapshot(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}restore(){const e=this._snapshots.pop();this.externals=e.externals,this.warnings=e.warnings}commit(){this._snapshots.pop()}},l.entry=function(e,r,n){const{tracer:i,cleanup:o}=l.tracer(r,n),a=n.debug?[]:null,s=r._ids._schemaChain?new Map:null,d=new l.Mainstay(i,a,s),f=r._ids._schemaChain?[{schema:r}]:null,h=new u([],[],{mainstay:d,schemas:f}),p=t.validate(e,r,h,n);o&&r.$_root.untrace();const g=c.process(p.errors,e,n);return{value:p.value,error:g,mainstay:d}},l.tracer=function(e,t){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:t.debug?(n(e.$_root.trace,"Debug mode not supported"),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:l.ignore}},t.validate=function(e,t,r,n,i={}){if(t.$_terms.whens&&(t=t._generate(e,r,n).schema),t._preferences&&(n=l.prefs(t,n)),t._cache&&n.cache){const n=t._cache.get(e);if(r.mainstay.tracer.debug(r,"validate","cached",!!n),n)return n}const o=(i,o,a)=>t.$_createError(i,e,o,a||r,n),a={original:e,prefs:n,schema:t,state:r,error:o,errorsArray:l.errorsArray,warn:(e,t,n)=>r.mainstay.warnings.push(o(e,t,n)),message:(i,o)=>t.$_createError("custom",e,o,r,n,{messages:i})};r.mainstay.tracer.entry(t,r);const c=t._definition;if(c.prepare&&void 0!==e&&n.convert){const t=c.prepare(e,a);if(t){if(r.mainstay.tracer.value(r,"prepare",e,t.value),t.errors)return l.finalize(t.value,[].concat(t.errors),a);e=t.value}}if(c.coerce&&void 0!==e&&n.convert&&(!c.coerce.from||c.coerce.from.includes(typeof e))){const t=c.coerce.method(e,a);if(t){if(r.mainstay.tracer.value(r,"coerced",e,t.value),t.errors)return l.finalize(t.value,[].concat(t.errors),a);e=t.value}}const u=t._flags.empty;u&&u.$_match(l.trim(e,t),r.nest(u),s.defaults)&&(r.mainstay.tracer.value(r,"empty",e,void 0),e=void 0);const d=i.presence||t._flags.presence||(t._flags._endedSwitch?null:n.presence);if(void 0===e){if("forbidden"===d)return l.finalize(e,null,a);if("required"===d)return l.finalize(e,[t.$_createError("any.required",e,null,r,n)],a);if("optional"===d){if(t._flags.default!==s.symbols.deepDefault)return l.finalize(e,null,a);r.mainstay.tracer.value(r,"default",e,{}),e={}}}else if("forbidden"===d)return l.finalize(e,[t.$_createError("any.unknown",e,null,r,n)],a);const f=[];if(t._valids){const i=t._valids.get(e,r,n,t._flags.insensitive);if(i)return n.convert&&(r.mainstay.tracer.value(r,"valids",e,i.value),e=i.value),r.mainstay.tracer.filter(t,r,"valid",i),l.finalize(e,null,a);if(t._flags.only){const i=t.$_createError("any.only",e,{valids:t._valids.values({display:!0})},r,n);if(n.abortEarly)return l.finalize(e,[i],a);f.push(i)}}if(t._invalids){const i=t._invalids.get(e,r,n,t._flags.insensitive);if(i){r.mainstay.tracer.filter(t,r,"invalid",i);const o=t.$_createError("any.invalid",e,{invalids:t._invalids.values({display:!0})},r,n);if(n.abortEarly)return l.finalize(e,[o],a);f.push(o)}}if(c.validate){const t=c.validate(e,a);if(t&&(r.mainstay.tracer.value(r,"base",e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return f.push(t.errors),l.finalize(e,f,a);if(t.errors.length)return f.push(...t.errors),l.finalize(e,f,a)}}return t._rules.length?l.rules(e,f,a):l.finalize(e,f,a)},l.rules=function(e,t,r){const{schema:n,state:i,prefs:o}=r;for(const a of n._rules){const c=n._definition.rules[a.method];if(c.convert&&o.convert){i.mainstay.tracer.log(n,i,"rule",a.name,"full");continue}let u,d=a.args;if(a._resolve.length){d=Object.assign({},d);for(const t of a._resolve){const r=c.argsByName.get(t),a=d[t].resolve(e,i,o),l=r.normalize?r.normalize(a):a,f=s.validateArg(l,null,r);if(f){u=n.$_createError("any.ref",a,{arg:t,ref:d[t],reason:f},i,o);break}d[t]=l}}u=u||c.validate(e,r,d,a);const f=l.rule(u,a);if(f.errors){if(i.mainstay.tracer.log(n,i,"rule",a.name,"error"),a.warn){i.mainstay.warnings.push(...f.errors);continue}if(o.abortEarly)return l.finalize(e,f.errors,r);t.push(...f.errors)}else i.mainstay.tracer.log(n,i,"rule",a.name,"pass"),i.mainstay.tracer.value(i,"rule",e,f.value,a.name),e=f.value}return l.finalize(e,t,r)},l.rule=function(e,t){return e instanceof c.Report?(l.error(e,t),{errors:[e],value:null}):Array.isArray(e)&&e[s.symbols.errors]?(e.forEach((e=>l.error(e,t))),{errors:e,value:null}):{errors:null,value:e}},l.error=function(e,t){return t.message&&e._setTemplate(t.message),e},l.finalize=function(e,t,r){t=t||[];const{schema:i,state:o,prefs:a}=r;if(t.length){const n=l.default("failover",void 0,t,r);void 0!==n&&(o.mainstay.tracer.value(o,"failover",e,n),e=n,t=[])}if(t.length&&i._flags.error)if("function"==typeof i._flags.error){t=i._flags.error(t),Array.isArray(t)||(t=[t]);for(const e of t)n(e instanceof Error||e instanceof c.Report,"error() must return an Error object")}else t=[i._flags.error];if(void 0===e){const n=l.default("default",e,t,r);o.mainstay.tracer.value(o,"default",e,n),e=n}if(i._flags.cast&&void 0!==e){const t=i._definition.cast[i._flags.cast];if(t.from(e)){const n=t.to(e,r);o.mainstay.tracer.value(o,"cast",e,n,i._flags.cast),e=n}}if(i.$_terms.externals&&a.externals&&!1!==a._externals)for(const{method:n}of i.$_terms.externals)o.mainstay.externals.push({method:n,schema:i,state:o,label:c.label(i._flags,o,a)});const s={value:e,errors:t.length?t:null};return i._flags.result&&(s.value="strip"===i._flags.result?void 0:r.original,o.mainstay.tracer.value(o,i._flags.result,e,s.value),o.shadow(e,i._flags.result)),i._cache&&!1!==a.cache&&!i._refs.length&&i._cache.set(r.original,s),void 0===e||s.errors||void 0===i._flags.artifact||(o.mainstay.artifacts=o.mainstay.artifacts||new Map,o.mainstay.artifacts.has(i._flags.artifact)||o.mainstay.artifacts.set(i._flags.artifact,[]),o.mainstay.artifacts.get(i._flags.artifact).push(o.path)),s},l.prefs=function(e,t){const r=t===s.defaults;return r&&e._preferences[s.symbols.prefs]?e._preferences[s.symbols.prefs]:(t=s.preferences(t,e._preferences),r&&(e._preferences[s.symbols.prefs]=t),t)},l.default=function(e,t,r,n){const{schema:o,state:a,prefs:c}=n,u=o._flags[e];if(c.noDefaults||void 0===u)return t;if(a.mainstay.tracer.log(o,a,"rule",e,"full"),!u)return u;if("function"==typeof u){const s=u.length?[i(a.ancestors[0]),n]:[];try{return u(...s)}catch(t){return void r.push(o.$_createError(`any.${e}`,null,{error:t},a,c))}}return"object"!=typeof u?u:u[s.symbols.literal]?u.literal:s.isResolvable(u)?u.resolve(t,a,c):i(u)},l.trim=function(e,t){if("string"!=typeof e)return e;const r=t.$_getRule("trim");return r&&r.args.enabled?e.trim():e},l.ignore={active:!1,debug:o,entry:o,filter:o,log:o,resolve:o,value:o},l.errorsArray=function(){const e=[];return e[s.symbols.errors]=!0,e}},2036:(e,t,r)=>{"use strict";const n=r(375),i=r(9474),o=r(8160),a={};e.exports=a.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=a.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){o.isResolvable(e)?this._refs.has(e)||(this._refs.add(e),t&&t.register(e)):this.has(e,null,null,!1)||(this._values.add(e),"string"==typeof e&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,r){if(e=e||new a.Values,t){if(t._override)return t.clone();for(const r of[...t._values,...t._refs])e.add(r)}if(r)for(const n of[...r._values,...r._refs])e.remove(n);return e.length?e:null}remove(e){o.isResolvable(e)?this._refs.delete(e):(this._values.delete(e),"string"==typeof e&&this._lowercase.delete(e.toLowerCase()))}has(e,t,r,n){return!!this.get(e,t,r,n)}get(e,t,r,n){if(!this.length)return!1;if(this._values.has(e))return{value:e};if("string"==typeof e&&e&&n){const t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&"object"!=typeof e)return!1;if("object"==typeof e)for(const o of this._values)if(i(o,e))return{value:o};if(t)for(const o of this._refs){const a=o.resolve(e,t,r,null,{in:!0});if(void 0===a)continue;const s=o.in&&"object"==typeof a?Array.isArray(a)?a:Object.keys(a):[a];for(const t of s)if(typeof t==typeof e)if(n&&e&&"string"==typeof e){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:o}}else if(i(t,e))return{value:t,ref:o}}return!1}override(){this._override=!0}values(e){if(e&&e.display){const e=[];for(const t of[...this._values,...this._refs])void 0!==t&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){const e=new a.Values(this._values,this._refs);return e._override=this._override,e}concat(e){n(!e._override,"Cannot concat override set of values");const t=new a.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){const e=[];this._override&&e.push({override:!0});for(const t of this._values.values())e.push(t&&"object"==typeof t?{value:t}:t);for(const t of this._refs.values())e.push(t.describe());return e}},a.Values.prototype[o.symbols.values]=!0,a.Values.prototype.slice=a.Values.prototype.clone,a.lowercases=function(e){const t=new Map;if(e)for(const r of e)"string"==typeof r&&t.set(r.toLowerCase(),r);return t}},978:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(1687),a=r(9621),s={};e.exports=function(e,t,r={}){if(n(e&&"object"==typeof e,"Invalid defaults value: must be an object"),n(!t||!0===t||"object"==typeof t,"Invalid source value: must be true, falsy or an object"),n("object"==typeof r,"Invalid options: must be an object"),!t)return null;if(r.shallow)return s.applyToDefaultsWithShallow(e,t,r);const a=i(e);if(!0===t)return a;const c=void 0!==r.nullOverride&&r.nullOverride;return o(a,t,{nullOverride:c,mergeArrays:!1})},s.applyToDefaultsWithShallow=function(e,t,r){const c=r.shallow;n(Array.isArray(c),"Invalid keys");const u=new Map,l=!0===t?null:new Set;for(let n of c){n=Array.isArray(n)?n:n.split(".");const r=a(e,n);r&&"object"==typeof r?u.set(r,l&&a(t,n)||r):l&&l.add(n)}const d=i(e,{},u);if(!l)return d;for(const n of l)s.reachCopy(d,t,n);const f=void 0!==r.nullOverride&&r.nullOverride;return o(d,t,{nullOverride:f,mergeArrays:!1})},s.reachCopy=function(e,t,r){for(const o of r){if(!(o in t))return;const e=t[o];if("object"!=typeof e||null===e)return;t=e}const n=t;let i=e;for(let o=0;o{"use strict";const n=r(7916);e.exports=function(e,...t){if(!e){if(1===t.length&&t[0]instanceof Error)throw t[0];throw new n(t)}}},8571:(e,t,r)=>{"use strict";const n=r(9621),i=r(4277),o=r(7043),a={needsProtoHack:new Set([i.set,i.map,i.weakSet,i.weakMap])};e.exports=a.clone=function(e,t={},r=null){if("object"!=typeof e||null===e)return e;let n=a.clone,s=r;if(t.shallow){if(!0!==t.shallow)return a.cloneWithShallow(e,t);n=e=>e}else if(s){const t=s.get(e);if(t)return t}else s=new Map;const c=i.getInternalProto(e);if(c===i.buffer)return!1;if(c===i.date)return new Date(e.getTime());if(c===i.regex)return new RegExp(e);const u=a.base(e,c,t);if(u===e)return e;if(s&&s.set(e,u),c===i.set)for(const i of e)u.add(n(i,t,s));else if(c===i.map)for(const[i,o]of e)u.set(i,n(o,t,s));const l=o.keys(e,t);for(const o of l){if("__proto__"===o)continue;if(c===i.array&&"length"===o){u.length=e.length;continue}const r=Object.getOwnPropertyDescriptor(e,o);r?r.get||r.set?Object.defineProperty(u,o,r):r.enumerable?u[o]=n(e[o],t,s):Object.defineProperty(u,o,{enumerable:!1,writable:!0,configurable:!0,value:n(e[o],t,s)}):Object.defineProperty(u,o,{enumerable:!0,writable:!0,configurable:!0,value:n(e[o],t,s)})}return u},a.cloneWithShallow=function(e,t){const r=t.shallow;(t=Object.assign({},t)).shallow=!1;const i=new Map;for(const o of r){const t=n(e,o);"object"!=typeof t&&"function"!=typeof t||i.set(t,t)}return a.clone(e,t,i)},a.base=function(e,t,r){if(!1===r.prototype)return a.needsProtoHack.has(t)?new t.constructor:t===i.array?[]:{};const n=Object.getPrototypeOf(e);if(n&&n.isImmutable)return e;if(t===i.array){const e=[];return n!==t&&Object.setPrototypeOf(e,n),e}if(a.needsProtoHack.has(t)){const e=new n.constructor;return n!==t&&Object.setPrototypeOf(e,n),e}return Object.create(n)}},9474:(e,t,r)=>{"use strict";const n=r(4277),i={mismatched:null};e.exports=function(e,t,r){return r=Object.assign({prototype:!0},r),!!i.isDeepEqual(e,t,r,[])},i.isDeepEqual=function(e,t,r,o){if(e===t)return 0!==e||1/e==1/t;const a=typeof e;if(a!==typeof t)return!1;if(null===e||null===t)return!1;if("function"===a){if(!r.deepFunction||e.toString()!==t.toString())return!1}else if("object"!==a)return e!=e&&t!=t;const s=i.getSharedType(e,t,!!r.prototype);switch(s){case n.buffer:return!1;case n.promise:return e===t;case n.regex:return e.toString()===t.toString();case i.mismatched:return!1}for(let n=o.length-1;n>=0;--n)if(o[n].isSame(e,t))return!0;o.push(new i.SeenEntry(e,t));try{return!!i.isDeepEqualObj(s,e,t,r,o)}finally{o.pop()}},i.getSharedType=function(e,t,r){if(r)return Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?i.mismatched:n.getInternalProto(e);const o=n.getInternalProto(e);return o!==n.getInternalProto(t)?i.mismatched:o},i.valueOf=function(e){const t=e.valueOf;if(void 0===t)return e;try{return t.call(e)}catch(e){return e}},i.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},i.isSetSimpleEqual=function(e,t){for(const r of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,r))return!1;return!0},i.isDeepEqualObj=function(e,t,r,o,a){const{isDeepEqual:s,valueOf:c,hasOwnEnumerableProperty:u}=i,{keys:l,getOwnPropertySymbols:d}=Object;if(e===n.array){if(!o.part){if(t.length!==r.length)return!1;for(let e=0;e{"use strict";const n=r(8761);e.exports=class extends Error{constructor(e){super(e.filter((e=>""!==e)).map((e=>"string"==typeof e?e:e instanceof Error?e.message:n(e))).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}},5277:e=>{"use strict";const t={};e.exports=function(e){if(!e)return"";let r="";for(let n=0;n=256?"&#"+e+";":`&#x${e.toString(16).padStart(2,"0")};`)},t.isSafe=function(e){return t.safeCharCodes.has(e)},t.namedHtml=new Map([[38,"&"],[60,"<"],[62,">"],[34,"""],[160," "],[162,"¢"],[163,"£"],[164,"¤"],[169,"©"],[174,"®"]]),t.safeCharCodes=function(){const e=new Set;for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&e.add(t);return e}()},6064:e=>{"use strict";e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:e=>{"use strict";e.exports=function(){}},1687:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(7043),a={};e.exports=a.merge=function(e,t,r){if(n(e&&"object"==typeof e,"Invalid target value: must be an object"),n(null==t||"object"==typeof t,"Invalid source value: must be null, undefined, or an object"),!t)return e;if(r=Object.assign({nullOverride:!0,mergeArrays:!0},r),Array.isArray(t)){n(Array.isArray(e),"Cannot merge array onto an object"),r.mergeArrays||(e.length=0);for(let n=0;n{"use strict";const n=r(375),i={};e.exports=function(e,t,r){if(!1===t||null==t)return e;"string"==typeof(r=r||{})&&(r={separator:r});const o=Array.isArray(t);n(!o||!r.separator,"Separator option is not valid for array-based chain");const a=o?t:t.split(r.separator||".");let s=e;for(let c=0;c{"use strict";e.exports=function(...e){try{return JSON.stringify(...e)}catch(e){return"[Cannot display object: "+e.message+"]"}}},4277:(e,t)=>{"use strict";const r={};t=e.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},r.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]),t.getInternalProto=function(e){if(Array.isArray(e))return t.array;if(e instanceof Date)return t.date;if(e instanceof RegExp)return t.regex;if(e instanceof Error)return t.error;const n=Object.prototype.toString.call(e);return r.typeMap.get(n)||t.generic}},7043:(e,t)=>{"use strict";t.keys=function(e,t={}){return!1!==t.symbols?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}},3652:(e,t,r)=>{"use strict";const n=r(375),i={};t.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(e,t){const r=[].concat((t=t||{}).before||[]),i=[].concat(t.after||[]),o=t.group||"?",a=t.sort||0;n(!r.includes(o),`Item cannot come before itself: ${o}`),n(!r.includes("?"),"Item cannot come before unassociated items"),n(!i.includes(o),`Item cannot come after itself: ${o}`),n(!i.includes("?"),"Item cannot come after unassociated items"),Array.isArray(e)||(e=[e]);for(const n of e){const e={seq:this._items.length,sort:a,before:r,after:i,group:o,node:n};this._items.push(e)}if(!t.manual){const e=this._sort();n(e,"item","?"!==o?`added into group ${o}`:"","created a dependencies error")}return this.nodes}merge(e){Array.isArray(e)||(e=[e]);for(const r of e)if(r)for(const e of r._items)this._items.push(Object.assign({},e));this._items.sort(i.mergeSort);for(let r=0;re.sort===t.sort?0:e.sort{"use strict";const n=r(443),i=r(2178),o={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:n.URL||URL};t.analyze=function(e,t={}){if(!e)return i.code("DOMAIN_NON_EMPTY_STRING");if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(e.length>256)return i.code("DOMAIN_TOO_LONG");if(o.nonAsciiRx.test(e)){if(!1===t.allowUnicode)return i.code("DOMAIN_INVALID_UNICODE_CHARS");e=e.normalize("NFC")}if(o.domainControlRx.test(e))return i.code("DOMAIN_INVALID_CHARS");e=o.punycode(e),t.allowFullyQualified&&"."===e[e.length-1]&&(e=e.slice(0,-1));const r=t.minDomainSegments||o.minDomainSegments,n=e.split(".");if(n.lengtht.maxDomainSegments)return i.code("DOMAIN_SEGMENTS_COUNT_MAX");const a=t.tlds;if(a){const e=n[n.length-1].toLowerCase();if(a.deny&&a.deny.has(e)||a.allow&&!a.allow.has(e))return i.code("DOMAIN_FORBIDDEN_TLDS")}for(let s=0;s63)return i.code("DOMAIN_LONG_SEGMENT");if(s{"use strict";const n=r(9848),i=r(5380),o=r(2178),a={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(n.TextEncoder||TextEncoder)};t.analyze=function(e,t){return a.email(e,t)},t.isValid=function(e,t){return!a.email(e,t)},a.email=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid input: email must be a string");if(!e)return o.code("EMPTY_STRING");const r=!a.nonAsciiRx.test(e);if(!r){if(!1===t.allowUnicode)return o.code("FORBIDDEN_UNICODE");e=e.normalize("NFC")}const n=e.split("@");if(2!==n.length)return n.length>2?o.code("MULTIPLE_AT_CHAR"):o.code("MISSING_AT_CHAR");const[s,c]=n;if(!s)return o.code("EMPTY_LOCAL");if(!t.ignoreLength){if(e.length>254)return o.code("ADDRESS_TOO_LONG");if(a.encoder.encode(s).length>64)return o.code("LOCAL_TOO_LONG")}return a.local(s,r)||i.analyze(c,t)},a.local=function(e,t){const r=e.split(".");for(const n of r){if(!n.length)return o.code("EMPTY_LOCAL_SEGMENT");if(t){if(!a.atextRx.test(n))return o.code("INVALID_LOCAL_CHARS")}else for(const e of n){if(a.atextRx.test(e))continue;const t=a.binary(e);if(!a.atomRx.test(t))return o.code("INVALID_LOCAL_CHARS")}}},a.binary=function(e){return Array.from(a.encoder.encode(e)).map((e=>String.fromCharCode(e))).join("")},a.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,a.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:(e,t)=>{"use strict";t.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},t.code=function(e){return{code:e,error:t.codes[e]}}},9959:(e,t,r)=>{"use strict";const n=r(375),i=r(5752);t.regex=function(e={}){n(void 0===e.cidr||"string"==typeof e.cidr,"options.cidr must be a string");const t=e.cidr?e.cidr.toLowerCase():"optional";n(["required","optional","forbidden"].includes(t),"options.cidr must be one of required, optional, forbidden"),n(void 0===e.version||"string"==typeof e.version||Array.isArray(e.version),"options.version must be a string or an array of string");let r=e.version||["ipv4","ipv6","ipvfuture"];Array.isArray(r)||(r=[r]),n(r.length>=1,"options.version must have at least 1 version specified");for(let i=0;i{if("forbidden"===t)return i.ip[e];const r=`\\/${"ipv4"===e?i.ip.v4Cidr:i.ip.v6Cidr}`;return"required"===t?`${i.ip[e]}${r}`:`${i.ip[e]}(?:${r})?`})).join("|")})`,a=new RegExp(`^${o}$`);return{cidr:t,versions:r,regex:a,raw:o}}},5752:(e,t,r)=>{"use strict";const n=r(375),i=r(6064),o={generate:function(){const e={},t="\\dA-Fa-f",r="["+t+"]",n="\\w-\\.~",i="!\\$&'\\(\\)\\*\\+,;=",o="%"+t,a=n+o+i+":@",s="["+a+"]",c="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";e.ipv4address="(?:"+c+"\\.){3}"+c;const u=r+"{1,4}",l="(?:"+u+":"+u+"|"+e.ipv4address+")",d="(?:"+u+":){6}"+l,f="::(?:"+u+":){5}"+l,h="(?:"+u+")?::(?:"+u+":){4}"+l,p="(?:(?:"+u+":){0,1}"+u+")?::(?:"+u+":){3}"+l,g="(?:(?:"+u+":){0,2}"+u+")?::(?:"+u+":){2}"+l,m="(?:(?:"+u+":){0,3}"+u+")?::"+u+":"+l,y="(?:(?:"+u+":){0,4}"+u+")?::"+l,b="(?:(?:"+u+":){0,5}"+u+")?::"+u,v="(?:(?:"+u+":){0,6}"+u+")?::";e.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",e.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",e.ipv6address="(?:"+d+"|"+f+"|"+h+"|"+p+"|"+g+"|"+m+"|"+y+"|"+b+"|"+v+")",e.ipvFuture="v"+r+"+\\.["+n+i+":]+",e.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",e.schemeRegex=new RegExp(e.scheme);const w="["+n+o+i+":]*",A="["+n+o+i+"]{1,255}",C="(?:\\[(?:"+e.ipv6address+"|"+e.ipvFuture+")\\]|"+e.ipv4address+"|"+A+")",E="(?:"+w+"@)?"+C+"(?::\\d*)?",x="(?:"+w+"@)?("+C+")(?::\\d*)?",S=s+"*",I=s+"+",k="(?:\\/"+S+")*",_="\\/(?:"+I+k+")?",T=I+k,M="["+n+o+i+"@]+"+k,P="(?:\\/\\/\\/"+S+k+")";return e.hierPart="(?:(?:\\/\\/"+E+k+")|"+_+"|"+T+"|"+P+")",e.hierPartCapture="(?:(?:\\/\\/"+x+k+")|"+_+"|"+T+")",e.relativeRef="(?:(?:\\/\\/"+E+k+")|"+_+"|"+M+"|)",e.relativeRefCapture="(?:(?:\\/\\/"+x+k+")|"+_+"|"+M+"|)",e.query="["+a+"\\/\\?]*(?=#|$)",e.queryWithSquareBrackets="["+a+"\\[\\]\\/\\?]*(?=#|$)",e.fragment="["+a+"\\/\\?]*",e}};o.rfc3986=o.generate(),t.ip={v4Cidr:o.rfc3986.ipv4Cidr,v6Cidr:o.rfc3986.ipv6Cidr,ipv4:o.rfc3986.ipv4address,ipv6:o.rfc3986.ipv6address,ipvfuture:o.rfc3986.ipvFuture},o.createRegex=function(e){const t=o.rfc3986,r="(?:\\?"+(e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query)+")?(?:#"+t.fragment+")?",a=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return o.wrap(a+r);let s="";if(e.scheme){n(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.scheme),"scheme must be a RegExp, String, or Array");const r=[].concat(e.scheme);n(r.length>=1,"scheme must have at least 1 scheme specified");const o=[];for(let e=0;e{"use strict";const r={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};t.Parser=class{constructor(e,t={}){if(!t[r.settings]&&t.constants)for(const r in t.constants){const e=t.constants[r];if(null!==e&&!["boolean","number","string"].includes(typeof e))throw new Error(`Formula constant ${r} contains invalid ${typeof e} value type`)}this.settings=t[r.settings]?t:Object.assign({[r.settings]:!0,constants:{},functions:{}},t),this.single=null,this._parts=null,this._parse(e)}_parse(e){let n=[],i="",o=0,a=!1;const s=e=>{if(o)throw new Error("Formula missing closing parenthesis");const s=n.length?n[n.length-1]:null;if(a||i||e){if(s&&"reference"===s.type&&")"===e)return s.type="function",s.value=this._subFormula(i,s.value),void(i="");if(")"===e){const e=new t.Parser(i,this.settings);n.push({type:"segment",value:e})}else if(a){if("]"===a)return n.push({type:"reference",value:i}),void(i="");n.push({type:"literal",value:i})}else if(r.operatorCharacters.includes(i))s&&"operator"===s.type&&r.operators.includes(s.value+i)?s.value+=i:n.push({type:"operator",value:i});else if(i.match(r.numberRx))n.push({type:"constant",value:parseFloat(i)});else if(void 0!==this.settings.constants[i])n.push({type:"constant",value:this.settings.constants[i]});else{if(!i.match(r.tokenRx))throw new Error(`Formula contains invalid token: ${i}`);n.push({type:"reference",value:i})}i=""}};for(const t of e)a?t===a?(s(),a=!1):i+=t:o?"("===t?(i+=t,++o):")"===t?(--o,o?i+=t:s(t)):i+=t:t in r.literals?a=r.literals[t]:"("===t?(s(),++o):r.operatorCharacters.includes(t)?(s(),i=t,s()):" "!==t?i+=t:s();s(),n=n.map(((e,t)=>"operator"!==e.type||"-"!==e.value||t&&"operator"!==n[t-1].type?e:{type:"operator",value:"n"}));let c=!1;for(const t of n){if("operator"===t.type){if(r.operatorsPrefix.includes(t.value))continue;if(!c)throw new Error("Formula contains an operator in invalid position");if(!r.operators.includes(t.value))throw new Error(`Formula contains an unknown operator ${t.value}`)}else if(c)throw new Error("Formula missing expected operator");c=!c}if(!c)throw new Error("Formula contains invalid trailing operator");1===n.length&&["reference","literal","constant"].includes(n[0].type)&&(this.single={type:"reference"===n[0].type?"reference":"value",value:n[0].value}),this._parts=n.map((e=>{if("operator"===e.type)return r.operatorsPrefix.includes(e.value)?e:e.value;if("reference"!==e.type)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw new Error(`Formula contains invalid reference ${e.value}`);return this.settings.reference?this.settings.reference(e.value):r.reference(e.value)}))}_subFormula(e,n){const i=this.settings.functions[n];if("function"!=typeof i)throw new Error(`Formula contains unknown function ${n}`);let o=[];if(e){let t="",i=0,a=!1;const s=()=>{if(!t)throw new Error(`Formula contains function ${n} with invalid arguments ${e}`);o.push(t),t=""};for(let n=0;nnew t.Parser(e,this.settings))),function(e){const t=[];for(const r of o)t.push(r.evaluate(e));return i.call(e,...t)}}evaluate(e){const t=this._parts.slice();for(let n=t.length-2;n>=0;--n){const i=t[n];if(i&&"operator"===i.type){const o=t[n+1];t.splice(n+1,1);const a=r.evaluate(o,e);t[n]=r.single(i.value,a)}}return r.operatorsOrder.forEach((n=>{for(let i=1;i":return t>n;case">=":return t>=n;case"==":return t===n;case"!=":return t!==n;case"&&":return t&&n;case"||":return t||n}return null},r.exists=function(e){return null!=e}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{},5934:e=>{"use strict";e.exports=JSON.parse('{"version":"17.13.3"}')}},t={},function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}(5107);var e,t},e.exports=t()},814722:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ALCHEMY_API_KEY:()=>P4,Anchor:()=>t5,BLOCKCHAIN_NETWORK:()=>R4,BLOCKNATIVE_PROJECT_ID:()=>F4,Button:()=>o5,CHAT_THEME_OPTIONS:()=>lce,Chat:()=>rae,ChatAndNotificationWidget:()=>Dse,ChatPreview:()=>nce,ChatPreviewList:()=>hce,ChatPreviewListErrorCodes:()=>dce,ChatPreviewSearchList:()=>gce,ChatPreviewSearchListErrorCodes:()=>fce,ChatProfile:()=>Nle,ChatUIProvider:()=>Oye,ChatView:()=>Pme,ChatViewBubble:()=>zge,ChatViewComponent:()=>Pme,ChatViewList:()=>lme,ChatWidget:()=>vye,Constants:()=>M4,Container:()=>r5,CoreContractChainId:()=>D4,CoreRPC:()=>B4,CreateGroupModal:()=>Xme,ENV:()=>T4,FILE_ICON:()=>q4,FeedTabs:()=>Eye,GUEST_MODE_ACCOUNT:()=>Y4,Heading:()=>i5,Image:()=>n5,Item:()=>e5,LIVEKIT_SERVER_URL:()=>Q4,LIVEKIT_SERVER_WEBSOCKET_URL:()=>W4,LIVEKIT_TOKEN_GENERATOR_SERVER_URL:()=>J4,LOCAL_STORAGE_KEYS:()=>S5,MODAL_BACKGROUND_TYPE:()=>k5,MODAL_POSITION_TYPE:()=>_5,MessageInput:()=>bme,NETWORK_DETAILS:()=>j4,NotificationItem:()=>ete,PUBLIC_GOOGLE_TOKEN:()=>U4,PUSH_SUB_TABS:()=>x5,PUSH_TABS:()=>C5,ParseMarkdownText:()=>c4,ProfilePicture:()=>z4,PushSubTabTitle:()=>H4,SIDEBAR_PLACEHOLDER_KEYS:()=>I5,SOCKET_TYPE:()=>E5,SUBSCRIPTION_MANAGER_STEP_KEYS:()=>Vee,SpacesUI:()=>goe,SpacesUIProvider:()=>xye,SubscribedModal:()=>Mte,SubscriptionManager:()=>Kee,SupportChat:()=>rae,Text:()=>a5,UserProfile:()=>dye,WidgetErrorCodes:()=>y7,WidgetUIProvider:()=>Bye,allowedNetworks:()=>L4,chatLimit:()=>V4,darkChatTheme:()=>Mae,darkWidgetTheme:()=>v7,device:()=>c5,infuraAPIKey:()=>O4,lightChatTheme:()=>Tae,lightTheme:()=>$4,lightWidgetTheme:()=>b7,notificationBaseTheme:()=>Yee,notificationDarkTheme:()=>$ee,notificationLightTheme:()=>Zee,notificationLimit:()=>G4,pushBotAddress:()=>Z4,requestLimit:()=>K4});var n=r(474848),i=r(296540),o=r(944404),a=r(795093),s=r.n(a),c=r(686614);c.domToReact,c.htmlToDOM,c.attributesToProps,c.Element;const u=c;var l=r(308121),d=(r(146880),r(567423),r(16075)),f=r(645599);r(363064),r(470182),r(330143);let h,p=!1;const g=i.createContext(void 0);function m({children:e,web3Onboard:t}){return p=!0,h=void 0,i.createElement(g.Provider,{value:t},e)}function y(){const e=p?i.useContext(g):h;if(!e)throw new Error("Must call the provided initialization method`init` method before using hooks.");return e}var b=r(735779);const v=(e=void 0)=>{const t=y(),{select:r,get:n}=t.state,o=(0,i.useCallback)((t=>{const{unsubscribe:n}=e?r(e).subscribe(t):r().subscribe(t);return()=>n}),[e]),a=(0,i.useCallback)((()=>{const t=n();return e?t[e]:t}),[e]);return(0,b.useSyncExternalStore)(o,a,(()=>a()))},w=()=>{const e=y(),{connectWallet:t,disconnectWallet:r}=e,n=v("wallets")[0]||null,[o,a]=(0,i.useState)(!1);return[{wallet:n,connecting:o},(0,i.useCallback)((async e=>{a(!0);const r=await t(e);return a(!1),r}),[]),(0,i.useCallback)((async({label:e})=>{a(!0);const t=await r({label:e});return a(!1),t}),[]),e.state.actions.updateBalances,e.state.actions.setWalletModules,e.state.actions.setPrimaryWallet]},A=e=>{const t=y(),{setChain:r}=t,{wallets:n,chains:o}=v(),a=(()=>{const t=e?n.find((({label:t})=>t===e)):n[0];return t&&t.chains?t.chains[0]:null})(),[s,c]=(0,i.useState)(!1);return[{chains:o,connectedChain:a,settingChain:s},(0,i.useCallback)((async t=>{c(!0);const n=await r({...t,wallet:e});return c(!1),n}),[])]};var C=r(308471),E=r(724824),x=r(939549),S=r(208402),I=r(304004),k=r(86863),_=r(514086),T=r(887179),M=r(825419),P=r(644706),j=r(584192),D=r(282040),O=r(646394);function B(e){if(66!==e.length)return null;if(0!==e.indexOf("["))return null;if(65!==e.indexOf("]"))return null;const t=`0x${e.slice(1,65)}`;return(0,O.q)(t)?t:null}function N(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,j.My)(t);const r=e.split(".");for(let n=r.length-1;n>=0;n-=1){const e=B(r[n]),i=e?(0,P.ZJ)(e):(0,D.S)((0,P.Af)(r[n]),"bytes");t=(0,D.S)((0,M.xW)([t,i]),"bytes")}return(0,j.My)(t)}var R=r(413033);let L,F=256;function U(e=11){if(!L||F+e>512){L="",F=0;for(let e=0;e<256;e++)L+=(256+256*Math.random()|0).toString(16).substring(1)}return L.substring(F,F+++e)}var z=r(194823),H=r(446652),V=r(277330),K=r(969985),G=r(38583),q=r(24453),Q=r(345765),W=r(453513);function J(e,t){if(!(e instanceof Q.C))return!1;const r=e.walk((e=>e instanceof W.M));return r instanceof W.M&&("ResolverNotFound"===r.data?.errorName||("ResolverWildcardNotSupported"===r.data?.errorName||("ResolverNotContract"===r.data?.errorName||("ResolverError"===r.data?.errorName||("HttpError"===r.data?.errorName||(!!r.reason?.includes("Wildcard on non-extended resolvers is not supported")||"reverse"===t&&r.reason===q.fD[50]))))))}function Y(e){const t=new Uint8Array(32).fill(0);return e?B(e)||(0,D.S)((0,P.Af)(e)):(0,j.My)(t)}function Z(e){const t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);const r=new Uint8Array((0,P.Af)(t).byteLength+2);let n=0;const i=t.split(".");for(let o=0;o255&&(e=(0,P.Af)(`[${Y(i[o]).slice(2)}]`)),r[n]=e.length,r.set(e,n+1),n+=e.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}function $(e,t,r){const n=e[t.name];if("function"==typeof n)return n;const i=e[r];return"function"==typeof i?i:r=>t(e,r)}var X=r(137372),ee=r(176595);class te extends Q.C{constructor(e,{code:t,docsPath:r,metaMessages:n,name:i,shortMessage:o}){super(o,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages,name:i||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=i||e.name,this.code=e instanceof ee.J8?e.code:t??-1}}class re extends te{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class ne extends te{constructor(e){super(e,{code:ne.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(ne,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class ie extends te{constructor(e){super(e,{code:ie.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(ie,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class oe extends te{constructor(e,{method:t}={}){super(e,{code:oe.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(oe,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class ae extends te{constructor(e){super(e,{code:ae.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty(ae,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class se extends te{constructor(e){super(e,{code:se.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(se,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class ce extends te{constructor(e){super(e,{code:ce.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty(ce,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class ue extends te{constructor(e){super(e,{code:ue.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(ue,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class le extends te{constructor(e){super(e,{code:le.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(le,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class de extends te{constructor(e){super(e,{code:de.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(de,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class fe extends te{constructor(e,{method:t}={}){super(e,{code:fe.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not implemented.`})}}Object.defineProperty(fe,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class he extends te{constructor(e){super(e,{code:he.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(he,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class pe extends te{constructor(e){super(e,{code:pe.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(pe,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class ge extends re{constructor(e){super(e,{code:ge.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(ge,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class me extends re{constructor(e){super(e,{code:me.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(me,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class ye extends re{constructor(e,{method:t}={}){super(e,{code:ye.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(ye,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class be extends re{constructor(e){super(e,{code:be.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(be,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class ve extends re{constructor(e){super(e,{code:ve.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(ve,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class we extends re{constructor(e){super(e,{code:we.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(we,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class Ae extends te{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const Ce=3;function Ee(e,{abi:t,address:r,args:n,docsPath:i,functionName:o,sender:a}){const{code:s,data:c,message:u,shortMessage:l}=e instanceof W.$S?e:e instanceof Q.C?e.walk((e=>"data"in e))||e.walk():{},d=e instanceof X.O?new W.rR({functionName:o}):[Ce,se.code].includes(s)&&(c||u||l)?new W.M({abi:t,data:"object"==typeof c?c.data:c,functionName:o,message:l??u}):e;return new W.bG(d,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:o,sender:a})}var xe=r(428953);async function Se(e,t){const{abi:r,address:n,args:i,functionName:o,...a}=t,s=(0,V.p)({abi:r,args:i,functionName:o});try{const{data:t}=await $(e,xe.T,"call")({...a,data:s,to:n});return(0,H.e)({abi:r,args:i,functionName:o,data:t||"0x"})}catch(ys){throw Ee(ys,{abi:r,address:n,args:i,docsPath:"/docs/contract/readContract",functionName:o})}}class Ie extends Q.C{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`],name:"EnsAvatarInvalidMetadataError"})}}class ke extends Q.C{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}class _e extends Q.C{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class Te extends Q.C{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const Me=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,Pe=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?[\w\-.]+))?(?\/.*)?$/,je=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,De=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;function Oe(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function Be({uri:e,gatewayUrls:t}){const r=je.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};const n=Oe(t?.ipfs,"https://ipfs.io"),i=Oe(t?.arweave,"https://arweave.net"),o=e.match(Me),{protocol:a,subpath:s,target:c,subtarget:u=""}=o?.groups||{},l="ipns:/"===a||"ipns/"===s,d="ipfs:/"===a||"ipfs/"===s||Pe.test(e);if(e.startsWith("http")&&!l&&!d){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((l||d)&&c)return{uri:`${n}/${l?"ipns":"ipfs"}/${c}${u}`,isOnChain:!1,isEncoded:!1};if("ar:/"===a&&c)return{uri:`${i}/${c}${u||""}`,isOnChain:!1,isEncoded:!1};let f=e.replace(De,"");if(f.startsWith("{const r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e}))}}(r);if(i)return r;throw new _e({uri:t})}async function Le(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?async function(e,{gatewayUrls:t,record:r}){const n=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[r,n,i]=t.split("/"),[o,a]=r.split(":"),[s,c]=n.split(":");if(!o||"eip155"!==o.toLowerCase())throw new ke({reason:"Only EIP-155 supported"});if(!a)throw new ke({reason:"Chain ID not found"});if(!c)throw new ke({reason:"Contract address not found"});if(!i)throw new ke({reason:"Token ID not found"});if(!s)throw new ke({reason:"ERC namespace not found"});return{chainID:Number.parseInt(a),namespace:s.toLowerCase(),contractAddress:c,tokenID:i}}(r),i=await async function(e,{nft:t}){if("erc721"===t.namespace)return Se(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return Se(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new Te({namespace:t.namespace})}(e,{nft:n}),{uri:o,isOnChain:a,isEncoded:s}=Be({uri:i,gatewayUrls:t});if(a&&(o.includes("data:application/json;base64,")||o.startsWith("{"))){const e=s?atob(o.replace("data:application/json;base64,","")):o;return Re({uri:Ne(JSON.parse(e)),gatewayUrls:t})}let c=n.tokenID;"erc1155"===n.namespace&&(c=c.replace("0x","").padStart(64,"0"));return async function({gatewayUrls:e,uri:t}){try{const r=await fetch(t).then((e=>e.json()));return await Re({gatewayUrls:e,uri:Ne(r)})}catch{throw new _e({uri:t})}}({gatewayUrls:t,uri:o.replace(/(?:0x)?{id}/,c)})}(e,{gatewayUrls:t,record:r}):Re({uri:r,gatewayUrls:t})}async function Fe(e,{blockNumber:t,blockTag:r,name:n,key:i,gatewayUrls:o,strict:a,universalResolverAddress:s}){let c=s;if(!c){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");c=(0,K.M)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const a={address:c,abi:z.Ag,functionName:"resolve",args:[(0,j.nj)(Z(n)),(0,V.p)({abi:z.SJ,functionName:"text",args:[N(n),i]})],blockNumber:t,blockTag:r},s=$(e,Se,"readContract"),u=o?await s({...a,args:[...a.args,o]}):await s(a);if("0x"===u[0])return null;const l=(0,H.e)({abi:z.SJ,functionName:"text",data:u[0]});return""===l?null:l}catch(u){if(a)throw u;if(J(u,"resolve"))return null;throw u}}function Ue(e,{method:t}){const r={};return"fallback"===e.transport.type&&e.transport.onResponse?.((({method:e,response:n,status:i,transport:o})=>{"success"===i&&t===e&&(r[n]=o.request)})),t=>r[t]||e.request}class ze extends Q.C{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}var He=r(809777),Ve=r(794531),Ke=r(895167),Ge=r(284586);const qe="/docs/contract/encodeEventTopics";function Qe(e){const{abi:t,eventName:r,args:n}=e;let i=t[0];if(r){const e=(0,Ge.iY)({abi:t,name:r});if(!e)throw new X.M_(r,{docsPath:qe});i=e}if("event"!==i.type)throw new X.M_(void 0,{docsPath:qe});const o=(0,Ke.B)(i),a=(0,He.h)(o);let s=[];if(n&&"inputs"in i){const e=i.inputs?.filter((e=>"indexed"in e&&e.indexed)),t=Array.isArray(n)?n:Object.values(n).length>0?e?.map((e=>n[e.name]))??[]:[];t.length>0&&(s=e?.map(((e,r)=>Array.isArray(t[r])?t[r].map(((n,i)=>We({param:e,value:t[r][i]}))):t[r]?We({param:e,value:t[r]}):null))??[])}return[a,...s]}function We({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,D.S)((0,P.ZJ)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new ze(e.type);return(0,Ve.h)([e],[t])}async function Je(e,t){const{address:r,abi:n,args:i,eventName:o,fromBlock:a,strict:s,toBlock:c}=t,u=Ue(e,{method:"eth_newFilter"}),l=o?Qe({abi:n,args:i,eventName:o}):void 0,d=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:"bigint"==typeof a?(0,j.cK)(a):a,toBlock:"bigint"==typeof c?(0,j.cK)(c):c,topics:l}]});return{abi:n,args:i,eventName:o,id:d,request:u(d),strict:Boolean(s),type:"event"}}async function Ye(e,{address:t,args:r,event:n,events:i,fromBlock:o,strict:a,toBlock:s}={}){const c=i??(n?[n]:void 0),u=Ue(e,{method:"eth_newFilter"});let l=[];if(c){const e=c.flatMap((e=>Qe({abi:[e],eventName:e.name,args:r})));l=[e],n&&(l=l[0])}const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof o?(0,j.cK)(o):o,toBlock:"bigint"==typeof s?(0,j.cK)(s):s,...l.length?{topics:l}:{}}]});return{abi:c,args:r,eventName:n?n.name:void 0,fromBlock:o,id:d,request:u(d),strict:Boolean(a),toBlock:s,type:"event"}}async function Ze(e){const t=Ue(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}var $e=r(964569);var Xe=r(6675);function et(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw new Error("Invalid yParityOrV value")}async function tt({hash:e,signature:t}){return function(e){const t=(0,D.S)(`0x${e.substring(4)}`).substring(26);return(0,$e.o)(`0x${t}`)}(await async function({hash:e,signature:t}){const n=(0,O.q)(e)?e:(0,j.nj)(e),{secp256k1:i}=await Promise.resolve().then(r.bind(r,859705)),o=(()=>{if("object"==typeof t&&"r"in t&&"s"in t){const{r:e,s:r,v:n,yParity:o}=t,a=et(Number(o??n));return new i.Signature((0,Xe.uU)(e),(0,Xe.uU)(r)).addRecoveryBit(a)}const e=(0,O.q)(t)?t:(0,j.nj)(t),r=et((0,Xe.ME)(`0x${e.slice(130)}`));return i.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(r)})();return`0x${o.recoverPublicKey(n.substring(2)).toHex(!1)}`}({hash:e,signature:t}))}var rt=r(835834);function nt(e,t="hex"){const r=it(e),n=(0,rt.l)(new Uint8Array(r.length));return r.encode(n),"hex"===t?(0,j.My)(n.bytes):n.bytes}function it(e){return Array.isArray(e)?function(e){const t=e.reduce(((e,t)=>e+t.length),0),r=ot(t);return{length:t<=55?1+t:1+r+t,encode(n){t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t));for(const{encode:t}of e)t(n)}}}(e.map((e=>it(e)))):function(e){const t="string"==typeof e?(0,P.aT)(e):e,r=ot(t.length),n=1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length;return{length:n,encode(e){1===t.length&&t[0]<128?e.pushBytes(t):t.length<=55?(e.pushByte(128+t.length),e.pushBytes(t)):(e.pushByte(183+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function ot(e){if(e<256)return 1;if(e<65536)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new Q.C("Length is too large.")}function at(e){const{chainId:t,contractAddress:r,nonce:n,to:i}=e,o=(0,D.S)((0,M.aP)(["0x05",nt([t?(0,j.cK)(t):"0x",r,n?(0,j.cK)(n):"0x"])]));return"bytes"===i?(0,P.aT)(o):o}async function st(e){const{authorization:t,signature:r}=e;return tt({hash:at(t),signature:r??t})}var ct=r(149436),ut=r(579670),lt=r(148990);class dt extends Q.C{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:o,gasPrice:a,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:u,to:l,value:d}){const f=(0,lt.aO)({from:t?.address,to:l,value:void 0!==d&&`${(0,ct.c)(d)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:o,gasPrice:void 0!==a&&`${(0,ut.Q)(a)} gwei`,maxFeePerGas:void 0!==s&&`${(0,ut.Q)(s)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,ut.Q)(c)} gwei`,nonce:u});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",f].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var ft=r(92592),ht=r(671772);var pt=r(699789),gt=r(857671),mt=r(865547),yt=r(664055);class bt extends Q.C{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class vt extends Q.C{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class wt extends Q.C{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,ut.Q)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class At extends Q.C{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}const Ct={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Et(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,Xe.ME)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,Xe.ME)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Ct[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(t.authorizationList=e.authorizationList.map((e=>({contractAddress:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)})))),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}function xt(e){const t=(e.transactions??[]).map((e=>"string"==typeof e?e:Et(e)));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}async function St(e,{blockHash:t,blockNumber:r,blockTag:n,includeTransactions:i}={}){const o=n??"latest",a=i??!1,s=void 0!==r?(0,j.cK)(r):void 0;let c=null;if(c=t?await e.request({method:"eth_getBlockByHash",params:[t,a]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[s||o,a]},{dedupe:Boolean(s)}),!c)throw new At({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||xt)(c)}async function It(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function kt(e,t){const{block:r,chain:n=e.chain,request:i}=t||{};try{const t=n?.fees?.maxPriorityFeePerGas??n?.fees?.defaultPriorityFee;if("function"==typeof t){const n=r||await $(e,St,"getBlock")({}),o=await t({block:n,client:e,request:i});if(null===o)throw new Error;return o}if(void 0!==t)return t;const o=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,Xe.uU)(o)}catch{const[t,n]=await Promise.all([r?Promise.resolve(r):$(e,St,"getBlock")({}),$(e,It,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new vt;const i=n-t.baseFeePerGas;return i<0n?0n:i}}async function _t(e,t){const{block:r,chain:n=e.chain,request:i,type:o="eip1559"}=t||{},a=await(async()=>"function"==typeof n?.fees?.baseFeeMultiplier?n.fees.baseFeeMultiplier({block:r,client:e,request:i}):n?.fees?.baseFeeMultiplier??1.2)();if(a<1)throw new bt;const s=10**(a.toString().split(".")[1]?.length??0),c=e=>e*BigInt(Math.ceil(a*s))/BigInt(s),u=r||await $(e,St,"getBlock")({});if("function"==typeof n?.fees?.estimateFeesPerGas){const t=await n.fees.estimateFeesPerGas({block:r,client:e,multiply:c,request:i,type:o});if(null!==t)return t}if("eip1559"===o){if("bigint"!=typeof u.baseFeePerGas)throw new vt;const t="bigint"==typeof i?.maxPriorityFeePerGas?i.maxPriorityFeePerGas:await kt(e,{block:u,chain:n,request:i}),r=c(u.baseFeePerGas);return{maxFeePerGas:i?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:i?.gasPrice??c(await $(e,It,"getGasPrice")({}))}}async function Tt(e,{address:t,blockTag:r="latest",blockNumber:n}){const i=await e.request({method:"eth_getTransactionCount",params:[t,n?(0,j.cK)(n):r]},{dedupe:Boolean(n)});return(0,Xe.ME)(i)}function Mt(e){const{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),n="string"==typeof e.blobs[0]?e.blobs.map((e=>(0,P.aT)(e))):e.blobs,i=[];for(const o of n)i.push(Uint8Array.from(t.blobToKzgCommitment(o)));return"bytes"===r?i:i.map((e=>(0,j.My)(e)))}function Pt(e){const{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),n="string"==typeof e.blobs[0]?e.blobs.map((e=>(0,P.aT)(e))):e.blobs,i="string"==typeof e.commitments[0]?e.commitments.map((e=>(0,P.aT)(e))):e.commitments,o=[];for(let a=0;a(0,j.My)(e)))}var jt=r(589190),Dt=r(404976);const Ot=(e,t,r)=>e&t^~e&r,Bt=(e,t,r)=>e&t^e&r^t&r;class Nt extends Dt.Vw{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,Dt.O8)(this.buffer)}update(e){(0,jt.CC)(this);const{view:t,buffer:r,blockLen:n}=this,i=(e=(0,Dt.ZJ)(e)).length;for(let o=0;on-o&&(this.process(r,0),o=0);for(let l=o;l>i&o),s=Number(r&o),c=n?4:0,u=n?0:4;e.setUint32(t+c,a,n),e.setUint32(t+u,s,n)}(r,n-8,BigInt(8*this.length),i),this.process(r,0);const a=(0,Dt.O8)(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=s/4,u=this.get();if(c>u.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l>>3,n=(0,Dt.Ow)(t,17)^(0,Dt.Ow)(t,19)^t>>>10;Ft[l]=n+Ft[l-7]+r+Ft[l-16]|0}let{A:r,B:n,C:i,D:o,E:a,F:s,G:c,H:u}=this;for(let l=0;l<64;l++){const e=u+((0,Dt.Ow)(a,6)^(0,Dt.Ow)(a,11)^(0,Dt.Ow)(a,25))+Ot(a,s,c)+Rt[l]+Ft[l]|0,t=((0,Dt.Ow)(r,2)^(0,Dt.Ow)(r,13)^(0,Dt.Ow)(r,22))+Bt(r,n,i)|0;u=c,c=s,s=a,a=o+e|0,o=i,i=n,n=r,r=e+t|0}r=r+this.A|0,n=n+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,s=s+this.F|0,c=c+this.G|0,u=u+this.H|0,this.set(r,n,i,o,a,s,c,u)}roundClean(){Ft.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const zt=(0,Dt.ld)((()=>new Ut));function Ht(e){const{commitment:t,version:r=1}=e,n=e.to??("string"==typeof t?"hex":"bytes"),i=function(e,t){const r=t||"hex",n=zt((0,O.q)(e,{strict:!1})?(0,P.ZJ)(e):e);return"bytes"===r?n:(0,j.nj)(n)}(t,"bytes");return i.set([r],0),"bytes"===n?i:(0,j.My)(i)}const Vt=4096,Kt=131072,Gt=761855;class qt extends Q.C{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class Qt extends Q.C{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}Q.C;Q.C;var Wt=r(885182);function Jt(e){const{data:t,kzg:r,to:n}=e,i=e.blobs??function(e){const t=e.to??("string"==typeof e.data?"hex":"bytes"),r="string"==typeof e.data?(0,P.aT)(e.data):e.data,n=(0,Wt.E)(r);if(!n)throw new Qt;if(n>Gt)throw new qt({maxSize:Gt,size:n});const i=[];let o=!0,a=0;for(;o;){const e=(0,rt.l)(new Uint8Array(Kt));let t=0;for(;te.bytes)):i.map((e=>(0,j.My)(e.bytes)))}({data:t,to:n}),o=e.commitments??Mt({blobs:i,kzg:r,to:n}),a=e.proofs??Pt({blobs:i,commitments:o,kzg:r,to:n}),s=[];for(let c=0;cw.to?w.to:a&&a.length>0?await st({authorization:a[0]}).catch((()=>{throw new Q.C("`to` is required. Could not infer from `authorizationList`")})):void 0)();(0,yt.c)(t);const x=e.chain?.formatters?.transactionRequest?.format,S=(x||gt.Bv)({...(0,pt.o)(w,{format:x}),from:n?.address,accessList:o,authorizationList:a,blobs:s,blobVersionedHashes:c,data:d,gas:f,gasPrice:h,maxFeePerBlobGas:p,maxFeePerGas:g,maxPriorityFeePerGas:m,nonce:y,to:E,value:b});function I(t){const{block:r,request:n,rpcStateOverride:i}=t;return e.request({method:"eth_estimateGas",params:i?[n,r??"latest",i]:r?[n,r]:[n]})}let k=BigInt(await I({block:A,request:S,rpcStateOverride:C}));if(a){const _=await Xt(e,{address:S.from}),T=await Promise.all(a.map((async e=>{const{contractAddress:t}=e,r=await I({block:A,request:{authorizationList:void 0,data:d,from:n?.address,to:t,value:(0,j.cK)(_)},rpcStateOverride:C}).catch((()=>100000n));return 2n*BigInt(r)})));k+=T.reduce(((e,t)=>e+t),0n)}return k}catch(i){throw function(e,{docsPath:t,...r}){const n=(()=>{const t=(0,ht.l)(e,r);return t instanceof ft.RM?e:t})();return new dt(n,{docsPath:t,...r})}(i,{...t,account:n,chain:e.chain})}}async function tr(e,t){const{abi:r,address:n,args:i,functionName:o,dataSuffix:a,...s}=t,c=(0,V.p)({abi:r,args:i,functionName:o});try{return await $(e,er,"estimateGas")({data:`${c}${a?a.replace("0x",""):""}`,to:n,...s})}catch(ys){const t=s.account?(0,R.J)(s.account):void 0;throw Ee(ys,{abi:r,address:n,args:i,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:t?.address})}}const rr=new Map,nr=new Map;async function ir(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){const n=function(e){const t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,rr),n=t(e,nr);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}(t),i=n.response.get();if(i&&r>0){if((new Date).getTime()-i.created.getTime()`blockNumber.${e}`;async function ar(e,{cacheTime:t=e.cacheTime}={}){const r=await ir((()=>e.request({method:"eth_blockNumber"})),{cacheKey:or(e.uid),cacheTime:t});return BigInt(r)}async function sr(e,{address:t,blockNumber:r,blockTag:n="latest"}){const i=void 0!==r?(0,j.cK)(r):void 0,o=await e.request({method:"eth_getCode",params:[t,i||n]},{dedupe:Boolean(i)});if("0x"!==o)return o}var cr=r(732589),ur=r(858146),lr=r(541821);const dr="/docs/contract/decodeEventLog";function fr(e){const{abi:t,data:r,strict:n,topics:i}=e,o=n??!0,[a,...s]=i;if(!a)throw new X._z({docsPath:dr});const c=1===t.length?t[0]:t.find((e=>"event"===e.type&&a===(0,He.h)((0,Ke.B)(e))));if(!c||!("name"in c)||"event"!==c.type)throw new X.kE(a,{docsPath:dr});const{name:u,inputs:l}=c,d=l?.some((e=>!("name"in e&&e.name)));let f=d?[]:{};const h=l.filter((e=>"indexed"in e&&e.indexed));for(let m=0;m!("indexed"in e&&e.indexed)));if(p.length>0)if(r&&"0x"!==r)try{const e=(0,lr.n)(p,r);if(e)if(d)f=[...f,...e];else for(let t=0;t0?f:void 0}}function hr({param:e,value:t}){if("string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))return t;return((0,lr.n)([e],t)||[])[0]}function pr(e){const{abi:t,args:r,logs:n,strict:i=!0}=e,o=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return n.map((e=>{try{const n=t.find((t=>"event"===t.type&&e.topics[0]===(0,He.h)(t)));if(!n)return null;const a=fr({...e,abi:[n],strict:i});return o&&!o.includes(a.eventName)?null:function(e){const{args:t,inputs:r,matchArgs:n}=e;if(!n)return!0;if(!t)return!1;function i(e,t,r){try{return"address"===e.type?(0,cr.h)(t,r):"string"===e.type||"bytes"===e.type?(0,D.S)((0,P.ZJ)(t))===r:t===r}catch{return!1}}if(Array.isArray(t)&&Array.isArray(n))return n.every(((e,n)=>{if(null==e)return!0;const o=r[n];if(!o)return!1;return(Array.isArray(e)?e:[e]).some((e=>i(o,e,t[n])))}));return"object"==typeof t&&!Array.isArray(t)&&"object"==typeof n&&!Array.isArray(n)&&Object.entries(n).every((([e,n])=>{if(null==n)return!0;const o=r.find((t=>t.name===e));if(!o)return!1;return(Array.isArray(n)?n:[n]).some((r=>i(o,r,t[e])))}))}({args:a.args,inputs:n.inputs,matchArgs:r})?{...a,...e}:null}catch(n){let t,r;if(n instanceof X.kE)return null;if(n instanceof X.fo||n instanceof X.l3){if(i)return null;t=n.abiItem.name,r=n.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}return{...e,args:r?[]:{},eventName:t}}})).filter(Boolean)}function gr(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}async function mr(e,{address:t,blockHash:r,fromBlock:n,toBlock:i,event:o,events:a,args:s,strict:c}={}){const u=c??!1,l=a??(o?[o]:void 0);let d,f=[];if(l){const e=l.flatMap((e=>Qe({abi:[e],eventName:e.name,args:a?void 0:s})));f=[e],o&&(f=f[0])}d=r?await e.request({method:"eth_getLogs",params:[{address:t,topics:f,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:f,fromBlock:"bigint"==typeof n?(0,j.cK)(n):n,toBlock:"bigint"==typeof i?(0,j.cK)(i):i}]});const h=d.map((e=>gr(e)));return l?pr({abi:l,args:s,logs:h,strict:u}):h}async function yr(e,t){const{abi:r,address:n,args:i,blockHash:o,eventName:a,fromBlock:s,toBlock:c,strict:u}=t,l=a?(0,Ge.iY)({abi:r,name:a}):void 0,d=l?void 0:r.filter((e=>"event"===e.type));return $(e,mr,"getLogs")({address:n,args:i,blockHash:o,event:l,events:d,fromBlock:s,toBlock:c,strict:u})}class br extends Q.C{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}const vr=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];async function wr(e,{blockCount:t,blockNumber:r,blockTag:n="latest",rewardPercentiles:i}){const o=r?(0,j.cK)(r):void 0;return function(e){return{baseFeePerGas:e.baseFeePerGas.map((e=>BigInt(e))),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map((e=>e.map((e=>BigInt(e)))))}}(await e.request({method:"eth_feeHistory",params:[(0,j.cK)(t),o||n,i]},{dedupe:Boolean(o)}))}async function Ar(e,{filter:t}){const r="strict"in t&&t.strict,n=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof n[0])return n;const i=n.map((e=>gr(e)));return"abi"in t&&t.abi?pr({abi:t.abi,logs:i,strict:r}):i}async function Cr(e,{address:t,blockNumber:r,blockTag:n,storageKeys:i}){const o=n??"latest",a=void 0!==r?(0,j.cK)(r):void 0;return function(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?(0,Xe.ME)(e.nonce):void 0,storageProof:e.storageProof?(t=e.storageProof,t.map((e=>({...e,value:BigInt(e.value)})))):void 0};var t}(await e.request({method:"eth_getProof",params:[t,i,a||o]}))}async function Er(e,{blockHash:t,blockNumber:r,blockTag:n,hash:i,index:o}){const a=n||"latest",s=void 0!==r?(0,j.cK)(r):void 0;let c=null;if(i?c=await e.request({method:"eth_getTransactionByHash",params:[i]},{dedupe:!0}):t?c=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,j.cK)(o)]},{dedupe:!0}):(s||a)&&(c=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[s||a,(0,j.cK)(o)]},{dedupe:Boolean(s)})),!c)throw new lt.Kz({blockHash:t,blockNumber:r,blockTag:a,hash:i,index:o});return(e.chain?.formatters?.transaction?.format||Et)(c)}const xr={"0x0":"reverted","0x1":"success"};function Sr(e){const t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map((e=>gr(e))):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,Xe.ME)(e.transactionIndex):null,status:e.status?xr[e.status]:null,type:e.type?Ct[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}async function Ir(e,{hash:t}){const r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new lt.Kc({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||Sr)(r)}async function kr(e,t){const{abi:r,address:n,args:i,dataSuffix:o,functionName:a,...s}=t,c=s.account?(0,R.J)(s.account):e.account,u=(0,V.p)({abi:r,args:i,functionName:a});try{const{data:l}=await $(e,xe.T,"call")({batch:!1,data:`${u}${o?o.replace("0x",""):""}`,to:n,...s,account:c}),d=(0,H.e)({abi:r,args:i,functionName:a,data:l||"0x"});return{result:d,request:{abi:r.filter((e=>"name"in e&&e.name===t.functionName)),address:n,args:i,dataSuffix:o,functionName:a,...s,account:c}}}catch(ys){throw Ee(ys,{abi:r,address:n,args:i,docsPath:"/docs/contract/simulateContract",functionName:a,sender:c?.address})}}async function _r(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}function Tr(e,t){return(0,D.S)(function(e){const t="string"==typeof e?(0,j.i3)(e):"string"==typeof e.raw?e.raw:(0,j.My)(e.raw),r=(0,j.i3)(`\x19Ethereum Signed Message:\n${(0,Wt.E)(t)}`);return(0,M.xW)([r,t])}(e),t)}var Mr=r(945945),Pr=r(925842);const jr="0x6492649264926492649264926492649264926492649264926492649264926492";var Dr=r(993577);var Or=r(859705);async function Br(e,t){const{address:r,factory:n,factoryData:i,hash:o,signature:a,universalSignatureVerifierAddress:s=e.chain?.contracts?.universalSignatureVerifier?.address,...c}=t,u=(0,O.q)(a)?a:"object"==typeof a&&"r"in a&&"s"in a?function({r:e,s:t,to:r="hex",v:n,yParity:i}){const o=(()=>{if(0===i||1===i)return i;if(n&&(27n===n||28n===n||n>=35n))return n%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),a=`0x${new Or.secp256k1.Signature((0,Xe.uU)(e),(0,Xe.uU)(t)).toCompactHex()}${0===o?"1b":"1c"}`;return"hex"===r?a:(0,P.aT)(a)}(a):(0,j.My)(a),l=await(async()=>n||i?function(e){return(0,Dr.iN)(e,-32)===jr}(u)?u:function(e){const{address:t,data:r,signature:n,to:i="hex"}=e,o=(0,M.aP)([(0,Ve.h)([{type:"address"},{type:"bytes"},{type:"bytes"}],[t,r,n]),jr]);return"hex"===i?o:(0,P.aT)(o)}({address:n,data:i,signature:u}):u)();try{const t=s?{to:s,data:(0,V.p)({abi:z._,functionName:"isValidSig",args:[r,o,l]}),...c}:{data:(0,Pr.m)({abi:z._,args:[r,o,l],bytecode:Mr.nP}),...c},{data:n}=await $(e,xe.T,"call")(t);return(0,Xe.Nx)(n??"0x0")}catch(ys){try{if((0,cr.h)((0,$e.b)(r),await tt({hash:o,signature:a})))return!0}catch{}if(ys instanceof W.zX)return!1;throw ys}}var Nr=r(14306),Rr=r(218463);class Lr extends Q.C{constructor({domain:e}){super(`Invalid domain "${(0,Rr.A)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class Fr extends Q.C{constructor({primaryType:e,types:t}){super(`Invalid primary type \`${e}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class Ur extends Q.C{constructor({type:e}){super(`Struct type "${e}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}var zr=r(529873),Hr=r(158213);function Vr({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},"number"==typeof e?.chainId&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}function Kr(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new Ur({type:e})}function Gr(e){const{domain:t={},message:r,primaryType:n}=e,i={EIP712Domain:Vr({domain:t}),...e.types};!function(e){const{domain:t,message:r,primaryType:n,types:i}=e,o=(e,t)=>{for(const r of e){const{name:e,type:n}=r,a=t[e],s=n.match(Hr.Ge);if(s&&("number"==typeof a||"bigint"==typeof a)){const[e,t,r]=s;(0,j.cK)(a,{signed:"int"===t,size:Number.parseInt(r)/8})}if("address"===n&&"string"==typeof a&&!(0,zr.P)(a))throw new Nr.M({address:a});const c=n.match(Hr.BD);if(c){const[e,t]=c;if(t&&(0,Wt.E)(a)!==Number.parseInt(t))throw new X.BI({expectedSize:Number.parseInt(t),givenSize:(0,Wt.E)(a)})}const u=i[n];u&&(Kr(n),o(u,a))}};if(i.EIP712Domain&&t){if("object"!=typeof t)throw new Lr({domain:t});o(i.EIP712Domain,t)}if("EIP712Domain"!==n){if(!i[n])throw new Fr({primaryType:n,types:i});o(i[n],r)}}({domain:t,message:r,primaryType:n,types:i});const o=["0x1901"];return t&&o.push(function({domain:e,types:t}){return qr({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:i})),"EIP712Domain"!==n&&o.push(qr({data:r,primaryType:n,types:i})),(0,D.S)((0,M.xW)(o))}function qr({data:e,primaryType:t,types:r}){const n=Qr({data:e,primaryType:t,types:r});return(0,D.S)(n)}function Qr({data:e,primaryType:t,types:r}){const n=[{type:"bytes32"}],i=[Wr({primaryType:t,types:r})];for(const o of r[t]){const[t,a]=Yr({types:r,name:o.name,type:o.type,value:e[o.name]});n.push(t),i.push(a)}return(0,Ve.h)(n,i)}function Wr({primaryType:e,types:t}){const r=(0,j.nj)(function({primaryType:e,types:t}){let r="";const n=Jr({primaryType:e,types:t});n.delete(e);const i=[e,...Array.from(n).sort()];for(const o of i)r+=`${o}(${t[o].map((({name:e,type:t})=>`${t} ${e}`)).join(",")})`;return r}({primaryType:e,types:t}));return(0,D.S)(r)}function Jr({primaryType:e,types:t},r=new Set){const n=e.match(/^\w*/u),i=n?.[0];if(r.has(i)||void 0===t[i])return r;r.add(i);for(const o of t[i])Jr({primaryType:o.type,types:t},r);return r}function Yr({types:e,name:t,type:r,value:n}){if(void 0!==e[r])return[{type:"bytes32"},(0,D.S)(Qr({data:n,primaryType:r,types:e}))];if("bytes"===r){return n=`0x${(n.length%2?"0":"")+n.slice(2)}`,[{type:"bytes32"},(0,D.S)(n)]}if("string"===r)return[{type:"bytes32"},(0,D.S)((0,j.nj)(n))];if(r.lastIndexOf("]")===r.length-1){const i=r.slice(0,r.lastIndexOf("[")),o=n.map((r=>Yr({name:t,type:i,types:e,value:r})));return[{type:"bytes32"},(0,D.S)((0,Ve.h)(o.map((([e])=>e)),o.map((([,e])=>e))))]}return[{type:r},n]}const Zr=new Map,$r=new Map;let Xr=0;function en(e,t,r){const n=++Xr,i=()=>Zr.get(e)||[],o=()=>{const t=i();if(!t.some((e=>e.id===n)))return;const r=$r.get(e);1===t.length&&r&&r(),(()=>{const t=i();Zr.set(e,t.filter((e=>e.id!==n)))})()},a=i();if(Zr.set(e,[...a,{id:n,fns:t}]),a&&a.length>0)return o;const s={};for(const u in t)s[u]=(...e)=>{const t=i();if(0!==t.length)for(const r of t)r.fns[u]?.(...e)};const c=r(s);return"function"==typeof c&&$r.set(e,c),o}var tn=r(9091);async function rn(e){return new Promise((t=>setTimeout(t,e)))}function nn(e,{delay:t=100,retryCount:r=2,shouldRetry:n=()=>!0}={}){return new Promise(((i,o)=>{const a=async({count:s=0}={})=>{try{const t=await e();i(t)}catch(c){if(s{const r="function"==typeof t?t({count:s,error:e}):t;r&&await rn(r),a({count:s+1})})({error:c});o(c)}};a()}))}function on(e,{emitOnBegin:t,initialWaitTime:r,interval:n}){let i=!0;const o=()=>i=!1;return(async()=>{let a;t&&(a=await e({unpoll:o}));const s=await(r?.(a))??n;await rn(s);const c=async()=>{i&&(await e({unpoll:o}),await rn(n),c())};c()})(),o}function an(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:n,onError:i,poll:o,pollingInterval:a=e.pollingInterval}){let s;return(void 0!==o?o:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?en((0,Rr.A)(["watchBlockNumber",e.uid,t,r,a]),{onBlockNumber:n,onError:i},(n=>on((async()=>{try{const t=await $(e,ar,"getBlockNumber")({cacheTime:0});if(s){if(t===s)return;if(t-s>1&&r)for(let e=s+1n;es)&&(n.onBlockNumber(t,s),s=t)}catch(t){n.onError?.(t)}}),{emitOnBegin:t,interval:a}))):en((0,Rr.A)(["watchBlockNumber",e.uid,t,r]),{onBlockNumber:n,onError:i},(t=>{let r=!0,n=()=>r=!1;return(async()=>{try{const i=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find((e=>"webSocket"===e.config.type));return t?t.value:e.transport}return e.transport})(),{unsubscribe:o}=await i.subscribe({params:["newHeads"],onData(e){if(!r)return;const n=(0,Xe.uU)(e.result?.number);t.onBlockNumber(n,s),s=n},onError(e){t.onError?.(e)}});n=o,r||n()}catch(o){i?.(o)}})(),()=>n()}))}function sn(e,t){const{abi:r,address:n,args:i,batch:o=!0,eventName:a,fromBlock:s,onError:c,onLogs:u,poll:l,pollingInterval:d=e.pollingInterval,strict:f}=t;return(void 0!==l?l:"bigint"==typeof s||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?(()=>{const t=f??!1;return en((0,Rr.A)(["watchContractEvent",n,i,o,e.uid,a,d,t,s]),{onLogs:u,onError:c},(c=>{let u,l;void 0!==s&&(u=s-1n);let f=!1;const h=on((async()=>{if(f)try{let s;if(l)s=await $(e,Ar,"getFilterChanges")({filter:l});else{const o=await $(e,ar,"getBlockNumber")({});s=u&&u{l&&await $(e,_r,"uninstallFilter")({filter:l}),h()}}))})():(()=>{const t=f??!1,s=(0,Rr.A)(["watchContractEvent",n,i,o,e.uid,a,d,t]);let l=!0,h=()=>l=!1;return en(s,{onLogs:u,onError:c},(t=>((async()=>{try{const o=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find((e=>"webSocket"===e.config.type));return t?t.value:e.transport}return e.transport})(),s=a?Qe({abi:r,eventName:a,args:i}):[],{unsubscribe:c}=await o.subscribe({params:["logs",{address:n,topics:s}],onData(e){if(!l)return;const n=e.result;try{const{eventName:e,args:i}=fr({abi:r,data:n.data,topics:n.topics,strict:f}),o=gr(n,{args:i,eventName:e});t.onLogs([o])}catch(i){let e,r;if(i instanceof X.fo||i instanceof X.l3){if(f)return;e=i.abiItem.name,r=i.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}const o=gr(n,{args:r?[]:{},eventName:e});t.onLogs([o])}},onError(e){t.onError?.(e)}});h=c,l||h()}catch(o){c?.(o)}})(),()=>h())))})()}const cn=/^(?:(?[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?
0x[a-fA-F0-9]{40})\n\n(?:(?.*)\n\n)?/,un=/(?:URI: (?.+))\n(?:Version: (?.+))\n(?:Chain ID: (?\d+))\n(?:Nonce: (?[a-zA-Z0-9]+))\n(?:Issued At: (?.+))(?:\nExpiration Time: (?.+))?(?:\nNot Before: (?.+))?(?:\nRequest ID: (?.+))?/;async function ln(e,t){const{address:r,domain:n,message:i,nonce:o,scheme:a,signature:s,time:c=new Date,...u}=t,l=function(e){const{scheme:t,statement:r,...n}=e.match(cn)?.groups??{},{chainId:i,expirationTime:o,issuedAt:a,notBefore:s,requestId:c,...u}=e.match(un)?.groups??{},l=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...n,...u,...i?{chainId:Number(i)}:{},...o?{expirationTime:new Date(o)}:{},...a?{issuedAt:new Date(a)}:{},...s?{notBefore:new Date(s)}:{},...c?{requestId:c}:{},...l?{resources:l}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}}(i);if(!l.address)return!1;const d=function(e){const{address:t,domain:r,message:n,nonce:i,scheme:o,time:a=new Date}=e;if(r&&n.domain!==r)return!1;if(i&&n.nonce!==i)return!1;if(o&&n.scheme!==o)return!1;if(n.expirationTime&&a>=n.expirationTime)return!1;if(n.notBefore&&a(0,xe.T)(e,t),createBlockFilter:()=>async function(e){const t=Ue(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}(e),createContractEventFilter:t=>Je(e,t),createEventFilter:t=>Ye(e,t),createPendingTransactionFilter:()=>Ze(e),estimateContractGas:t=>tr(e,t),estimateGas:t=>er(e,t),getBalance:t=>Xt(e,t),getBlobBaseFee:()=>async function(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}(e),getBlock:t=>St(e,t),getBlockNumber:t=>ar(e,t),getBlockTransactionCount:t=>async function(e,{blockHash:t,blockNumber:r,blockTag:n="latest"}={}){const i=void 0!==r?(0,j.cK)(r):void 0;let o;return o=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[i||n]},{dedupe:Boolean(i)}),(0,Xe.ME)(o)}(e,t),getBytecode:t=>sr(e,t),getChainId:()=>Yt(e),getCode:t=>sr(e,t),getContractEvents:t=>yr(e,t),getEip712Domain:t=>async function(e,t){const{address:r,factory:n,factoryData:i}=t;try{const[t,o,a,s,c,u,l]=await $(e,Se,"readContract")({abi:vr,address:r,functionName:"eip712Domain",factory:n,factoryData:i});return{domain:{name:o,version:a,chainId:Number(s),verifyingContract:c,salt:u},extensions:l,fields:t}}catch($R){const t=$R;if("ContractFunctionExecutionError"===t.name&&"ContractFunctionZeroDataError"===t.cause.name)throw new br({address:r});throw t}}(e,t),getEnsAddress:t=>async function(e,{blockNumber:t,blockTag:r,coinType:n,name:i,gatewayUrls:o,strict:a,universalResolverAddress:s}){let c=s;if(!c){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");c=(0,K.M)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const a=(0,V.p)({abi:z.Rm,functionName:"addr",...null!=n?{args:[N(i),BigInt(n)]}:{args:[N(i)]}}),s={address:c,abi:z.Ag,functionName:"resolve",args:[(0,j.nj)(Z(i)),a],blockNumber:t,blockTag:r},u=$(e,Se,"readContract"),l=o?await u({...s,args:[...s.args,o]}):await u(s);if("0x"===l[0])return null;const d=(0,H.e)({abi:z.Rm,args:null!=n?[N(i),BigInt(n)]:void 0,functionName:"addr",data:l[0]});return"0x"===d||"0x00"===(0,G.B)(d)?null:d}catch(u){if(a)throw u;if(J(u,"resolve"))return null;throw u}}(e,t),getEnsAvatar:t=>async function(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:i,gatewayUrls:o,strict:a,universalResolverAddress:s}){const c=await $(e,Fe,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:i,universalResolverAddress:s,gatewayUrls:o,strict:a});if(!c)return null;try{return await Le(e,{record:c,gatewayUrls:n})}catch{return null}}(e,t),getEnsName:t=>async function(e,{address:t,blockNumber:r,blockTag:n,gatewayUrls:i,strict:o,universalResolverAddress:a}){let s=a;if(!s){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");s=(0,K.M)({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}const c=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const o={address:s,abi:z.oX,functionName:"reverse",args:[(0,j.nj)(Z(c))],blockNumber:r,blockTag:n},a=$(e,Se,"readContract"),[u,l]=i?await a({...o,args:[...o.args,i]}):await a(o);return t.toLowerCase()!==l.toLowerCase()?null:u}catch(u){if(o)throw u;if(J(u,"reverse"))return null;throw u}}(e,t),getEnsResolver:t=>async function(e,{blockNumber:t,blockTag:r,name:n,universalResolverAddress:i}){let o=i;if(!o){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");o=(0,K.M)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}const[a]=await $(e,Se,"readContract")({address:o,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,j.nj)(Z(n))],blockNumber:t,blockTag:r});return a}(e,t),getEnsText:t=>Fe(e,t),getFeeHistory:t=>wr(e,t),estimateFeesPerGas:t=>async function(e,t){return _t(e,t)}(e,t),getFilterChanges:e=>Ar(0,e),getFilterLogs:e=>async function(e,{filter:t}){const r=t.strict??!1,n=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map((e=>gr(e)));return t.abi?pr({abi:t.abi,logs:n,strict:r}):n}(0,e),getGasPrice:()=>It(e),getLogs:t=>mr(e,t),getProof:t=>Cr(e,t),estimateMaxPriorityFeePerGas:t=>async function(e,t){return kt(e,t)}(e,t),getStorageAt:t=>async function(e,{address:t,blockNumber:r,blockTag:n="latest",slot:i}){const o=void 0!==r?(0,j.cK)(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,i,o||n]})}(e,t),getTransaction:t=>Er(e,t),getTransactionConfirmations:t=>async function(e,{hash:t,transactionReceipt:r}){const[n,i]=await Promise.all([$(e,ar,"getBlockNumber")({}),t?$(e,Er,"getTransaction")({hash:t}):void 0]),o=r?.blockNumber||i?.blockNumber;return o?n-o+1n:0n}(e,t),getTransactionCount:t=>Tt(e,t),getTransactionReceipt:t=>Ir(e,t),multicall:t=>async function(e,t){const{allowFailure:r=!0,batchSize:n,blockNumber:i,blockTag:o,multicallAddress:a,stateOverride:s}=t,c=t.contracts,u=n??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024);let l=a;if(!l){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");l=(0,K.M)({blockNumber:i,chain:e.chain,contract:"multicall3"})}const d=[[]];let f=0,h=0;for(let y=0;y0&&h>u&&d[f].length>0&&(f++,h=(r.length-2)/2,d[f]=[]),d[f]=[...d[f],{allowFailure:!0,callData:r,target:t}]}catch(m){const o=Ee(m,{abi:e,address:t,args:n,docsPath:"/docs/contract/multicall",functionName:i});if(!r)throw o;d[f]=[...d[f],{allowFailure:!0,callData:"0x",target:t}]}}const p=await Promise.allSettled(d.map((t=>$(e,Se,"readContract")({abi:z.v2,address:l,args:[t],blockNumber:i,blockTag:o,functionName:"aggregate3",stateOverride:s})))),g=[];for(let y=0;y$t(e,t),readContract:t=>Se(e,t),sendRawTransaction:t=>dn(e,t),simulateContract:t=>kr(e,t),verifyMessage:t=>async function(e,{address:t,message:r,factory:n,factoryData:i,signature:o,...a}){return Br(e,{address:t,factory:n,factoryData:i,hash:Tr(r),signature:o,...a})}(e,t),verifySiweMessage:t=>ln(e,t),verifyTypedData:t=>async function(e,t){const{address:r,factory:n,factoryData:i,signature:o,message:a,primaryType:s,types:c,domain:u,...l}=t;return Br(e,{address:r,factory:n,factoryData:i,hash:Gr({message:a,primaryType:s,types:c,domain:u}),signature:o,...l})}(e,t),uninstallFilter:e=>_r(0,e),waitForTransactionReceipt:t=>async function(e,{confirmations:t=1,hash:r,onReplaced:n,pollingInterval:i=e.pollingInterval,retryCount:o=6,retryDelay:a=({count:e})=>200*(1<g(new lt.WA({hash:r}))),s):void 0,y=en(c,{onReplaced:n,resolve:p,reject:g},(n=>{const s=$(e,an,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:i,async onBlockNumber(i){const c=e=>{clearTimeout(m),s(),e(),y()};let h=i;if(!f)try{if(d){if(t>1&&(!d.blockNumber||h-d.blockNumber+1nn.resolve(d)))}if(u||(f=!0,await nn((async()=>{u=await $(e,Er,"getTransaction")({hash:r}),u.blockNumber&&(h=u.blockNumber)}),{delay:a,retryCount:o}),f=!1),d=await $(e,Ir,"getTransactionReceipt")({hash:r}),t>1&&(!d.blockNumber||h-d.blockNumber+1nn.resolve(d)))}catch(p){if(p instanceof lt.Kz||p instanceof lt.Kc){if(!u)return void(f=!1);try{l=u,f=!0;const r=await nn((()=>$(e,St,"getBlock")({blockNumber:h,includeTransactions:!0})),{delay:a,retryCount:o,shouldRetry:({error:e})=>e instanceof At});f=!1;const i=r.transactions.find((({from:e,nonce:t})=>e===l.from&&t===l.nonce));if(!i)return;if(d=await $(e,Ir,"getTransactionReceipt")({hash:i.hash}),t>1&&(!d.blockNumber||h-d.blockNumber+1n{n.onReplaced?.({reason:s,replacedTransaction:l,transaction:i,transactionReceipt:d}),n.resolve(d)}))}catch(g){c((()=>n.reject(g)))}}else c((()=>n.reject(p)))}}})}));return h}(e,t),watchBlocks:t=>function(e,{blockTag:t="latest",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:i,onError:o,includeTransactions:a,poll:s,pollingInterval:c=e.pollingInterval}){const u=void 0!==s?s:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type),l=a??!1;let d;return u?en((0,Rr.A)(["watchBlocks",e.uid,t,r,n,l,c]),{onBlock:i,onError:o},(i=>on((async()=>{try{const n=await $(e,St,"getBlock")({blockTag:t,includeTransactions:l});if(n.number&&d?.number){if(n.number===d.number)return;if(n.number-d.number>1&&r)for(let t=d?.number+1n;td.number)&&(i.onBlock(n,d),d=n)}catch(n){i.onError?.(n)}}),{emitOnBegin:n,interval:c}))):(()=>{let r=!0,a=!0,s=()=>r=!1;return(async()=>{try{n&&$(e,St,"getBlock")({blockTag:t,includeTransactions:l}).then((e=>{r&&a&&(i(e,void 0),a=!1)}));const c=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find((e=>"webSocket"===e.config.type));return t?t.value:e.transport}return e.transport})(),{unsubscribe:u}=await c.subscribe({params:["newHeads"],async onData(t){if(!r)return;const n=await $(e,St,"getBlock")({blockNumber:t.blockNumber,includeTransactions:l}).catch((()=>{}));r&&(i(n,d),a=!1,d=n)},onError(e){o?.(e)}});s=u,r||s()}catch(c){o?.(c)}})(),()=>s()})()}(e,t),watchBlockNumber:t=>an(e,t),watchContractEvent:t=>sn(e,t),watchEvent:t=>function(e,{address:t,args:r,batch:n=!0,event:i,events:o,fromBlock:a,onError:s,onLogs:c,poll:u,pollingInterval:l=e.pollingInterval,strict:d}){const f=void 0!==u?u:"bigint"==typeof a||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type),h=d??!1;return f?en((0,Rr.A)(["watchEvent",t,r,n,e.uid,i,l,a]),{onLogs:c,onError:s},(s=>{let c,u;void 0!==a&&(c=a-1n);let d=!1;const f=on((async()=>{if(d)try{let a;if(u)a=await $(e,Ar,"getFilterChanges")({filter:u});else{const n=await $(e,ar,"getBlockNumber")({});a=c&&c!==n?await $(e,mr,"getLogs")({address:t,args:r,event:i,events:o,fromBlock:c+1n,toBlock:n}):[],c=n}if(0===a.length)return;if(n)s.onLogs(a);else for(const e of a)s.onLogs([e])}catch(l){u&&l instanceof ce&&(d=!1),s.onError?.(l)}else{try{u=await $(e,Ye,"createEventFilter")({address:t,args:r,event:i,events:o,strict:h,fromBlock:a})}catch{}d=!0}}),{emitOnBegin:!0,interval:l});return async()=>{u&&await $(e,_r,"uninstallFilter")({filter:u}),f()}})):(()=>{let n=!0,a=()=>n=!1;return(async()=>{try{const u=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find((e=>"webSocket"===e.config.type));return t?t.value:e.transport}return e.transport})(),l=o??(i?[i]:void 0);let f=[];if(l){const e=l.flatMap((e=>Qe({abi:[e],eventName:e.name,args:r})));f=[e],i&&(f=f[0])}const{unsubscribe:p}=await u.subscribe({params:["logs",{address:t,topics:f}],onData(e){if(!n)return;const t=e.result;try{const{eventName:e,args:r}=fr({abi:l??[],data:t.data,topics:t.topics,strict:h}),n=gr(t,{args:r,eventName:e});c([n])}catch(r){let e,n;if(r instanceof X.fo||r instanceof X.l3){if(d)return;e=r.abiItem.name,n=r.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}const i=gr(t,{args:n?[]:{},eventName:e});c([i])}},onError(e){s?.(e)}});a=p,n||a()}catch(u){s?.(u)}})(),()=>a()})()}(e,t),watchPendingTransactions:t=>function(e,{batch:t=!0,onError:r,onTransactions:n,poll:i,pollingInterval:o=e.pollingInterval}){return(void 0!==i?i:"webSocket"!==e.transport.type)?en((0,Rr.A)(["watchPendingTransactions",e.uid,t,o]),{onTransactions:n,onError:r},(r=>{let n;const i=on((async()=>{try{if(!n)try{return void(n=await $(e,Ze,"createPendingTransactionFilter")({}))}catch(o){throw i(),o}const a=await $(e,Ar,"getFilterChanges")({filter:n});if(0===a.length)return;if(t)r.onTransactions(a);else for(const e of a)r.onTransactions([e])}catch(o){r.onError?.(o)}}),{emitOnBegin:!0,interval:o});return async()=>{n&&await $(e,_r,"uninstallFilter")({filter:n}),i()}})):(()=>{let t=!0,i=()=>t=!1;return(async()=>{try{const{unsubscribe:o}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!t)return;const r=e.result;n([r])},onError(e){r?.(e)}});i=o,t||i()}catch(o){r?.(o)}})(),()=>i()})()}(e,t)}}function hn(e){const{key:t="public",name:r="Public Client"}=e,n=function(e){const{batch:t,cacheTime:r=e.pollingInterval??4e3,ccipRead:n,key:i="base",name:o="Base Client",pollingInterval:a=4e3,type:s="base"}=e,c=e.chain,u=e.account?(0,R.J)(e.account):void 0,{config:l,request:d,value:f}=e.transport({chain:c,pollingInterval:a}),h={account:u,batch:t,cacheTime:r,ccipRead:n,chain:c,key:i,name:o,pollingInterval:a,request:d,transport:{...l,...f},type:s,uid:U()};return Object.assign(h,{extend:function e(t){return r=>{const n=r(t);for(const e in h)delete n[e];const i={...t,...n};return Object.assign(i,{extend:e(i)})}}(h)})}({...e,key:t,name:r,type:"publicClient"});return n.extend(fn)}class pn extends Q.C{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}var gn=r(552167);function mn(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const yn=mn();function bn(e,t={}){return{async request(r){const{body:n,onRequest:i=t.onRequest,onResponse:o=t.onResponse,timeout:a=t.timeout??1e4}=r,s={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:c,method:u,signal:l}=s;try{const t=await function(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:n}){return new Promise(((i,o)=>{(async()=>{let a;try{const s=new AbortController;r>0&&(a=setTimeout((()=>{n?s.abort():o(t)}),r)),i(await e({signal:s?.signal||null}))}catch(s){"AbortError"===s?.name&&o(t),o(s)}finally{clearTimeout(a)}})()}))}((async({signal:t})=>{const r={...s,body:Array.isArray(n)?(0,Rr.A)(n.map((e=>({jsonrpc:"2.0",id:e.id??yn.take(),...e})))):(0,Rr.A)({jsonrpc:"2.0",id:n.id??yn.take(),...n}),headers:{"Content-Type":"application/json",...c},method:u||"POST",signal:l||(a>0?t:null)},o=new Request(e,r),d=await(i?.(o,r))??{...r,url:e};return await fetch(d.url??e,d)}),{errorInstance:new ee.MU({body:n,url:e}),timeout:a,signal:!0});let r;if(o&&await o(t),t.headers.get("Content-Type")?.startsWith("application/json"))r=await t.json();else{r=await t.text();try{r=JSON.parse(r||"{}")}catch(d){if(t.ok)throw d;r={error:r}}}if(!t.ok)throw new ee.Ci({body:n,details:(0,Rr.A)(r.error)||t.statusText,headers:t.headers,status:t.status,url:e});return r}catch(d){if(d instanceof ee.Ci)throw d;if(d instanceof ee.MU)throw d;throw new ee.Ci({body:n,cause:d,url:e})}}}}var vn=r(676447);const wn=new vn.A(8192);function An(e,t={}){return async(r,n={})=>{const{dedupe:i=!1,retryDelay:o=150,retryCount:a=3,uid:s}={...t,...n};return function(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(wn.get(r))return wn.get(r);const n=e().finally((()=>wn.delete(r)));return wn.set(r,n),n}((()=>nn((async()=>{try{return await e(r)}catch(t){const e=t;switch(e.code){case ne.code:throw new ne(e);case ie.code:throw new ie(e);case oe.code:throw new oe(e,{method:r.method});case ae.code:throw new ae(e);case se.code:throw new se(e);case ce.code:throw new ce(e);case ue.code:throw new ue(e);case le.code:throw new le(e);case de.code:throw new de(e);case fe.code:throw new fe(e,{method:r.method});case he.code:throw new he(e);case pe.code:throw new pe(e);case ge.code:throw new ge(e);case me.code:throw new me(e);case ye.code:throw new ye(e);case be.code:throw new be(e);case ve.code:throw new ve(e);case we.code:throw new we(e);case 5e3:throw new ge(e);default:if(t instanceof Q.C)throw t;throw new Ae(e)}}}),{delay:({count:e,error:t})=>{if(t&&t instanceof ee.Ci){const e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e)}return(1<function(e){if("code"in e&&"number"==typeof e.code)return-1===e.code||(e.code===he.code||e.code===se.code);if(e instanceof ee.Ci&&e.status)return 403===e.status||(408===e.status||(413===e.status||(429===e.status||(500===e.status||(502===e.status||(503===e.status||504===e.status))))));return!0}(e)})),{enabled:i,id:i?(0,D.S)((0,j.i3)(`${s}.${(0,Rr.A)(r)}`)):void 0})}}function Cn(e,t={}){const{batch:r,fetchOptions:n,key:i="http",name:o="HTTP JSON-RPC",onFetchRequest:a,onFetchResponse:s,retryDelay:c}=t;return({chain:u,retryCount:l,timeout:d})=>{const{batchSize:f=1e3,wait:h=0}="object"==typeof r?r:{},p=t.retryCount??l,g=d??t.timeout??1e4,m=e||u?.rpcUrls.default.http[0];if(!m)throw new pn;const y=bn(m,{fetchOptions:n,onRequest:a,onResponse:s,timeout:g});return function({key:e,name:t,request:r,retryCount:n=3,retryDelay:i=150,timeout:o,type:a},s){return{config:{key:e,name:t,request:r,retryCount:n,retryDelay:i,timeout:o,type:a},request:An(r,{retryCount:n,retryDelay:i,uid:U()}),value:s}}({key:i,name:o,async request({method:e,params:t}){const n={method:e,params:t},{schedule:i}=(0,gn.u)({id:m,wait:h,shouldSplitBatch:e=>e.length>f,fn:e=>y.request({body:e}),sort:(e,t)=>e.id-t.id}),[{error:o,result:a}]=await(async e=>r?i(e):[await y.request({body:e})])(n);if(o)throw new ee.J8({body:n,error:o,url:m});return a},retryCount:p,retryDelay:c,timeout:g,type:"http"},{fetchOptions:n,url:m})}}const En=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function xn(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,o=[0,1];for(let w=1;w>--c&1}const d=2**31,f=d>>>1,h=f>>1,p=d-1;let g=0;for(let w=0;w<31;w++)g=g<<1|l();let m=[],y=0,b=d;for(;;){let e=Math.floor(((g-y+1)*i-1)/b),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e>>1|l(),a=a<<1^f,s=(s^f)<<1|f|1;y=a,b=1+s-a}let v=n-4;return m.map((t=>{switch(t-v){case 3:return v+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return v+256+(e[s++]<<8|e[s++]);case 1:return v+e[s++];default:return t-1}}))}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach(((e,r)=>t[e.charCodeAt(0)]=r));let r=e.length,n=new Uint8Array(6*r>>3);for(let i=0,o=0,a=0,s=0;i=8&&(n[o++]=s>>(a-=8));return n}(e)))}function Sn(e){return 1&e?~e>>1:e>>1}function In(e,t){let r=Array(e);for(let n=0,i=0;n{let t=kn(e);if(t.length)return t}))}function Tn(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(jn(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(Dn(r,e))}return t.flat()}function Mn(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function Pn(e,t,r){let n=Array(e).fill().map((()=>[]));for(let i=0;in[t].push(e)));return n}function jn(e,t){let r=1+t(),n=t(),i=Mn(t);return Pn(i.length,1+e,t).flatMap(((e,t)=>{let[o,...a]=e;return Array(i[t]).fill().map(((e,t)=>{let i=t*n;return[o+t*r,a.map((e=>e+i))]}))}))}function Dn(e,t){return Pn(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}function On(e){return`{${function(e){return e.toString(16).toUpperCase().padStart(2,"0")}(e)}}`}function Bn(e){let t=[];for(let r=0,n=e.length;r>24&255}function Gn(e){return 16777215&e}let qn,Qn,Wn,Jn;function Yn(e){return e>=Ln&&e<55204}function Zn(e,t){if(e>=Fn&&e<4371&&t>=Un&&t<4470)return Ln+(e-Fn)*Vn+(t-Un)*Hn;if(Yn(e)&&t>zn&&t<4547&&(e-Ln)%Hn==0)return e+(t-zn);{let r=Jn.get(e);return r&&(r=r.get(t),r)?r:-1}}function $n(e){qn||function(){let e=xn("AEUDVgHLCGMATwDUADIAdAAhADQAFAAtABQAIQAPACcADQASAAoAGAAJABIACQARAAUACwAFAAwABQAQAAMABwAEAAoABQAJAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACwANAA0AAwAKAAkABAAdAAYAZwDTAeYDMwCxCl8B8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgPi89uj00MsvBXxEPAGPCDwBnQKoEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiC+AZ4EWRJJFbEu7QDQLARtEbgECxDwAb/RyAk1AV4nD2cEQQKTAzsAGpobWgAahAGPCrysdy0OAKwAfFIcBAQFUmoA/PtZADkBIadVj2UMUgx5Il4ANQC9vAITAdQZWxDzALN9AhsZVwIcGSkCBAgXOhG7AqMZ4M7+1M0UAPDNAWsC+mcJDe8AAQA99zkEXLICyQozAo6lAobcP5JvjQLFzwKD9gU/OD8FEQCtEQL6bW+nAKUEvzjDHsuRyUvOFHcacUz5AqIFRSE2kzsBEQCuaQL5DQTlcgO6twSpTiUgCwIFCAUXBHQEqQV6swAVxUlmTmsCwjqsP/wKJQmXb793UgZBEBsnpRD3DDMBtQE7De1L2ATxBjsEyR99GRkPzZWcCKUt3QztJuMuoYBaI/UqgwXtS/Q83QtNUWgPWQtlCeM6Y4FOAyEBDSKLCt0NOQhtEPMKyWsN5RFFBzkD1UmaAKUHAQsRHTUVtSYQYqwLCTl3Bvsa9guPJq8TKXr8BdMaIQZNASka/wDPLueFsFoxXBxPXwYDCyUjxxSoUCANJUC3eEgaGwcVJakCkUNwSodRNh6TIfY8PQ1mLhNRfAf1PAUZTwuBPJ5Gq0UOEdI+jT1IIklMLAQ1fywvJ4sJzw+FDLl8cgFZCSEJsQxxEzERFzfFCDkHGS2XJCcVCCFGlWCaBPefA/MT0QMLBT8JQQcTA7UcLRMuFSkFDYEk1wLzNtUuswKPVoABFwXLDyUf3xBQR+AO6QibAmUDgyXrAC0VIQAXIpsIQ2MAX4/YUwUuywjHamwjdANnFOdhEXMHkQ5XB6ccMxW/HOFwyF4Lhggoo68JWwF1CZkBXwTjCAk1W4ygIEFnU4tYGJsgYUE/XfwCMQxlFZ9EvYd4AosPaxIbATUBcwc5DQECdxHtEWsQlQjrhgQ1tTP4OiUETyGDIBEKJwNPbM4LJyb5DPhpAaMSYgMMND137merYLYkF/0HGTLFQWAh8QuST80MnBrBGEJULhnkB78D8xrzJ+pBVwX/A6MDEzpNM+4EvQtpCIsJPwBJDqMXB9cYagpxjNABMYsBt5kDV5GDAm+PBjcHCwBnC4cFeeUAHQKnCKMABQDPA1cAOQKtB50AGQCFQQE9AycvASHlAo8DkwgxywGVLwHzKQQbwwwVAPc3bkoCw7ECgGpmogXdWAKOAkk1AU0lBAVOR1EDr3HhANsASwYT30cBFatKyxrjQwHfbysAxwD7AAU1BwVBAc0B820AtwFfCzEJorO1AU3pKQCDABVrAdcCiQDdADUAf/EBUwBNBVn5BdMCT0kBETEYK1dhAbsDHwEzAQ0AeQbLjaXJBx8EbQfTAhAbFeEC7y4HtQEDIt8TzULFAr3eVaFgAmSBAmJCW02vWzcgAqH3AmiYAmYJAp+EOBsLAmY7AmYmBG4EfwN/EwN+kjkGOXcXOYI6IyMCbB0CMjY4CgJtxwJtru+KM2dFKwFnAN4A4QBKBQeYDI0A/gvCAA21AncvAnaiPwJ5S0MCeLodXNtFrkbXAnw/AnrIAn0JAnzwBVkFIEgASH1jJAKBbQKAAAKABQJ/rklYSlsVF0rMAtEBAtDMSycDiE8Dh+ZExZEyAvKhXQMDA65LzkwtJQPPTUxNrwKLPwKK2MEbBx1DZwW3Ao43Ao5cQJeBAo7ZAo5ceFG0UzUKUtRUhQKT+wKTDADpABxVHlWvVdAGLBsplYYy4XhmRTs5ApefAu+yWCGoAFklApaPApZ8nACpWaxaCYFNADsClrUClk5cRFzRApnLAplkXMpdBxkCnJs5wjqdApwWAp+bAp64igAdDzEqDwKd8QKekgC1PWE0Ye8CntMCoG4BqQKenx8Cnk6lY8hkJyUrAievAiZ+AqD7AqBMAqLdAqHEAqYvAqXOAqf/AH0Cp/JofGixAANJahxq0QKs4wKsrgKtZwKtAgJXHQJV3AKx4dcDH05slwKyvQ0CsugXbOBtY21IXwMlzQK2XDs/bpADKUUCuF4CuUcVArkqd3A2cOECvRkCu9pwlgMyEQK+iHICAzNxAr4acyJzTwLDywLDBHOCdEs1RXTgAzynAzyaAz2/AsV8AsZHAsYQiQLIaVECyEQCyU8CyS4CZJ0C3dJ4eWF4rnklS9ADGKNnAgJh9BnzlSR7C16SXrsRAs9rAs9sL0tT0vMTnwDGrQLPcwEp6gNOEn5LBQLcJwLbigLSTwNSXANTXwEBA1WMgIk/AMsW7WBFghyC04LOg40C2scC2d6EEIRJpzwDhqUALwNkDoZxWfkAVQLfZQLeuHN3AuIv7RQB8zAnAfSbAfLShwLr8wLpcHkC6vkC6uQA+UcBuQLuiQLrnJaqlwMC7j8DheCYeXDgcaEC8wMAaQOOFpmTAvcTA5FuA5KHAveYAvnZAvhmmhyaq7s3mx4DnYMC/voBGwA5nxyfswMFjQOmagOm2QDRxQMGaqGIogUJAwxJAtQAPwMA4UEXUwER8wNrB5dnBQCTLSu3r73bAYmZFH8RBDkB+ykFIQ6dCZ8Akv0TtRQrxQL3LScApQC3BbmOkRc/xqdtQS4UJo0uAUMBgPwBtSYAdQMOBG0ALAIWDKEAAAoCPQJqA90DfgSRASBFBSF8CgAFAEQAEwA2EgJ3AQAF1QNr7wrFAgD3Cp8nv7G35QGRIUFCAekUfxE0wIkABAAbAFoCRQKEiwAGOlM6lI1tALg6jzrQAI04wTrcAKUA6ADLATqBOjs5/Dn5O3aJOls7nok6bzkYAVYBMwFsBS81XTWeNa01ZjV1NbY1xTWCNZE10jXhNZ41rTXuNf01sjXBNgI2ETXGNdU2FjYnNd417TYuNj02LjUtITY6Nj02PDbJNwgEkDxXNjg23TcgNw82yiA3iTcwCgSwPGc2JDcZN2w6jTchQtRDB0LgQwscDw8JmyhtKFFVBgDpfwDpsAD+mxQ91wLpNSMArQC9BbeOkRdLxptzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgELgEaJZkC7aMAoQCjBcGOmxdNxrsBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUHqSvAj5Gqwr7YrMUACT9AN3rlr3JG9m8w9lIAXltp/v8kfWaIaaR9OwpAES/I3ZVamDXSgB/UsOgAG6D0tq+5CIqE15FiAhV3yA2VhCQ7tj+m6xXaF53FIfGi/IAZIskMGAi2MU7MDVJNCbMzERyHZi+osdPtnFVbvq653O8rwaCy4IAf9OOok65AqJUtUriUfYsGPPVbe6jm0s9lbKlPCUKjdkHsFsEhvX4kT39ZCtAAbwQdn/h4TpO5hTByWAmr5n+Wuwhdegv6bmvX4LyOes3z2+cuHv2JFYwVMNuq2gzn8YHTjlUQd39osyWei4NKl3LAdfxlO876hh5ENp/cOvpuI9bF55guEthLLPOXjD4dktTH04P5TvZrWTM0e4+BHJxj7MLApXIFOs0sWKhNkG8iwuM5wR83my6V3wW06abhDzTXYfOr/ZpFXgXzmv4d12FFyP00/dPGbIVGV5ao8UufGzUwp/IHx6v/wDWJr9iaoCulhWwlZ7A8q/NMoD12+mBdNRgJYnThRLtMx1Bgwttn8/4Qn2CDfOSup9GVXEvA21ILgp0owHYxNOkpwLWz0G7K+WREIDjIzUzSn8I99CuJSmSpPyH0Ke6/NERYiNx+3dncSebPnOUnnWD61AhJ1n/tSLZmU5wYO5GfgzyAYJm6VL91LxZ8hL1lfximQxIDMRhIecQZBmeE5R0XlrpvwplVrJwpa8BBCdp93GPP9lyBeZ2zkRr920CR3cYbKpKHfogvm0nV7XdDz6EbjzlxADCMjSLXuXpIpyuizy39yY+I+H9rmpoIF3YwEjlH9MgGgWcCNTjHEWMqAbprn2Ox7rOHupaVE3lNyg3nt5XaZID6Y+uml5Ja+aOPu+BI+DZbiJVfaspUadakWUX6TA4dETkIqdJJHYnU4Z4yKpt5y8rVIahoMUf8A8kWtAQNCTbjp71gx3/zVdqNz1Sutkw0gFIMVm2BF4Xdv/0olw+NaDIR9Bb3DPweZA2K/cw+/b+AwyWl9ZOP67A9nexmeTNjfdzPGf9J6E6BMPKa5lJh+qNsdUz3HBUevU71eQFCqOcxiIYhacAhh/8PX0J5DdSViZ6WazDDx7cukJNpMfEkYLJ5Ao4vLoVd3d25Pg4qaVa2p2D2L3WvYPJ5Yf/A/MSxptjlgXL/KJtP2U0cRv2I09ATAiWCJYuRwiapeKFsqmi18yMMulDp3HdcIldq+7jkwsJUOHLHCzzzBw5XFvL0CAmo1ub456z7zb7shk3KPGCLZzr47oT1k/j06XNnJvG3Udv6XrP+wsqTBlZ5MaNPt9FOs/4Bt/ja/vbVhTNpBFl9Gq7MqINvGlWKOAwQzwOZy+EzSdjAqKJVV2YcskTuM94aIK+kc/AZaXiZLPREUDpkXIV947IFfj+85TrqPqLfkGcxgboMQjosf+az+odLNXdyp1mDNGsqSdK/pJ2Ca04mt/4d6s1X+lncOEYaGBBeW4pApGcjf7/XJCFbj3N3mFb+BtlIcw8ZiDKoClFX9Rf0bxCqtLpicObKJzBVVHr/6u4siH2hK75RNv7w9GfTbhJOQBYiFUZAByY4rn37tZBHT//kqKsNi3ryL9AqXJRzqiMIJMhILjoi/i8LVEsbu+Ih9bsyW16sgQqjYLO0qda6KaCPKj3DQcu6CfV5lKtjS3ZCdqLAZkOey9MR+QutJBGiz/r15GVD6rCVwJR4UUKC4GNJkfDf00OMW8aQtLSAGLXV8MIi9mbbl/qQEpxCm2L5hutFX4ekeLH4QgBWUFKs/2VVMKy46WtFE6AbwgmYm/Z0yHk5veDIrcl2HpVqb/rSE0PC9EbDzJEWqeaPhh7vF369Umq2kSiB3s5rBI6c/7N9bkRu4h2n+/h5nSwy+7n+/I+6oXQVANo2Jb5zDwtiBPf1ySCzHdT6yJShMzqSRZfnykX49CaFaxhoVF4PBhEuECJ1PrFYSpmHuyYsl14DTAV9ZxRms1XiR/kBrjhZjidOt0UNe+GSml7XNgpVw8YsUTmZXLTK+6iYnyW/wYR1W4UXwOi14xpFROHb6HcZzksgF5DbL2AFXzKNwHU2adjdAY+KCyM/cwRTBkkq/a227NI0q6DR2MkMCRu620t79bGcYUmACtqN3mk/0uNwd3JSXHqE1kzf6Yyj0W2083JNDRnIXDlgBxJ6uf58NN1f6FQiRCWB4egF8QDx74AixV8oTyw7PluIjr3/rj/WzgwPSq4xPojaF7V0xqG2u5ti2L1h6yYHv73Isrukr0kURDIEjClBsBx7kdcXUxaYMS0syT3ymLzDzslNDWQOT1Tao1YNmJHARUenhCkmV9tqCPGI5GqZaRpkiPxyjoncWjyOHYGqvbvRX+Bn1pn7EhRNXa1lqJPmoeN5VqdqIDPhEVhFsyG0d4iQEIYX0wZUbY2XbZWYlpZ/l66IrDDY0q1C1YzBDpHC4h05YqHQLqS9anyl22JQ6lEvjvdBwMHfE7z0luCXD34/rFeDa2TmSeEAykSpYO5j1G/nsgpR3qn0qaQEmLjnnLfcz+veoYqPnRqmRGwCJ6FJ3Gm/Z1/aVX5PSb03MMnjAf41ww54sD5k8FrkfBP+K0b1MrYpapWjtpZfve2HVf4ickX3LKSOhu7qI1Vd4c1kNrn2ajy1t4y93JhV4fnWCKq7OmFpcr7FjdJCXPTql0Drr14Ho3Z87+GPQ4Z/DcTiGqtvZxlRYi8cNuhXABveZIwNl/BX1huhVLaFax5OqypUrQRyb9OE3SSkPlDdy5uo5XGg2EIGEjLY1MO5cr1ibfiFWV7zspcTgkBKkwo5jPyAin04LqizZXb2tDRgwKJjGx4cVk3ngAQixwcxjYAg2Q7vmUR/hpwInMdw7OhC2qyf41vTPkudQAORS0DdLtOGQxb4fH2VYGsvJCkeWPeUwtf1/tuIhzXEThoCZzzSJqqjUtbaPI3ntHm3T5uf849hGUA0zU8ni5W+EEn3/0Y6oUhQFw9z0aGjkljBbAlFXc0y82G2wkd7VdgWa5KTgJJNjNwZMfmdnUIUn1JU5LiWX5UZEZbVlKSN76mlmjUR2ku+fucTNlO4IAAahnLjBhlvQNR9pe9swGBgq0YR7P3VCyI/seYwQ4QBzy9X+HPePgoF8WfKaJ4MBOhLCGHae6Z8xkNXwni9QAKvTNtVA56x8YJflZ/VvONRSlsSLmiSyNMnTjTaE1ko81zkzGEnVwEhjCzlwIqpxmpDAqwsEmtpdr3xpc7i/ZX3f2TzT3M0FdxIEQvO1jgmmiN+D1YpMduAzEhBtj2OBkMN/rv6p7Th4pSH6f5aH3aTvwFTl7EOSgGASI7ttyMehzpm4AVyK+bFEaFg9gnZsSUPpsbAe/0RFhrH+EXZ12Z7thf4dzN1+Sn+G8QrDA1VKaN4IFxD1rQz9Xq9Coii9S9/hPbTGjyBwFH3H1UdQuz5KsgPDEHua4/kPg2Gp/IIItsaLWBqiT9XH45MiQxSosGJ56H/0F2cjcCFd72l1665RNHURdC3lspI77esfJsl+rXXabkAy7vxDXG/XGGcKpwiKDPFfvMEgjkAHil4Za1F36RnyxxvdIAzvgfH8knukYDck07tc++DP4TdWeI7HXuq5Yl6VVFrUQtf64/dkXewlKZSHQo6YvCSpREB0GDrz+Ys2GfO8nw2SwrYwaf88AifzlPvP17bf1mI3AuccJvAjZIpBmqvharKFAebEjVKfGAwpQjWoXlm9LROsq9bCk1UeQ3CJxJqprzssS/Q04JeS1ReCCubL3J7sx86spkP4eNpp95UF+8K748icIs8vdILFklk9skQqi1So6cx3X906pvy1vz+KipTJ8fiVJxsV5MmT0XwA");qn=new Map(_n(e).flatMap(((e,t)=>e.map((e=>[e,t+1<<24]))))),Qn=new Set(kn(e)),Wn=new Map,Jn=new Map;for(let[t,r]of Tn(e)){if(!Qn.has(t)&&2==r.length){let[e,n]=r,i=Jn.get(e);i||(i=new Map,Jn.set(e,i)),i.set(n,t)}Wn.set(t,r.reverse())}}();let t=[],r=[],n=!1;function i(e){let r=qn.get(e);r&&(n=!0,e|=r),t.push(e)}for(let o of e)for(;;){if(o<128)t.push(o);else if(Yn(o)){let e=o-Ln,t=e%Vn/Hn|0,r=e%Hn;i(Fn+(e/Vn|0)),i(Un+t),r>0&&i(zn+r)}else{let e=Wn.get(o);e?r.push(...e):i(o)}if(!r.length)break;o=r.pop()}if(n&&t.length>1){let e=Kn(t[0]);for(let r=1;r0&&i>=e)0==e?(t.push(n,...r),r.length=0,n=a):r.push(a),i=e;else{let o=Zn(n,a);o>=0?n=o:0==i&&0==e?(t.push(n),n=a):(r.push(a),i=e)}}return n>=0&&t.push(n,...r),t}($n(e))}const ti=".",ri=e=>Array.from(e);function ni(e,t){return e.P.has(t)||e.Q.has(t)}class ii extends Array{get is_emoji(){return!0}}let oi,ai,si,ci,ui,li,di,fi,hi,pi,gi,mi;function yi(){if(oi)return;let e=xn("AEkU4AngDVgB0QKRAQYBOwDqATEAnwDbAIUApABsAOAAbwCRAEYAiQBPAHYAPgA+ACsANwAlAGMAHwAvACsAJQAWAC8AGwAiACIALwAUACsAEQAiAAsAGwARABcAGAA6ACkALAAsADUAFgAsABEAHQAhAA8AGwAdABUAFgAZAA0ADQAXABAAGQAUABIEqgYJAR4UFjfDBdMAsQCuPwFnAKUBA10jAK5/Ly8vLwE/pwUJ6/0HPwbkMQVXBVgAPSs5APa2EQbIwQuUCkEDyJ4zAsUKLwKOoQKG2D+Ob4kCxcsCg/IBH98JAPKtAUECLY0KP48A4wDiChUAF9S5yAwLPZ0EG3cA/QI5GL0P6wkGKekFBIFnDRsHLQCrAGmR76WcfwBbBpMjBukAGwA7DJMAWxVbqfu75wzbIM8IuykDsRQ7APcta6MAoX0YABcEJdcWAR0AuRnNBPoJIEw3CZcJiB4bVllM44NCABMADAAVAA5rVAAhAA4AR+4V2D3zOVjKleYuChAdX01YPewAEwAMABUADmsgXECXAMPrABsAOQzFABsVW6n7Adq4HB0FWwXiAtCfAsSwCkwcpGUUcxptTPUAuw1nAuEACy00iRfJkQKBewETGwC9DWcC4QALLQFIUCWRTAoDLfsFMgnXaRetAddDAEkrEncCMRYhAusnuTdrADnhAfUlAMcOy7UBG2OBALEFAAUAitNJBRvDHwcXAKgn0QGhKy0DmwBnAQoZPu03dAQYFwCqAccCIQDTKxJzOvNQsAWQOncnNUgF+icFWQVYr7gFaTtdQhI6WEGXe5NmX6H4CxMDxQcl8XcjBKNLAlNTAnUbqycBj6OlNVsDRRcEg2EJANEGqz8vIwcpAjldAGsBYR9xAIMdGQCVAUm3ACdpFwGvxQM3LSFDUwFvWQZlAmUA8UkXAykBBQBJQQCrAF0AcwArtQYH8+8ZjX8ACSEAKQCzG0cB0QHbBwsxl3iB6AAKABEANAA9ADgzd3nTwBBfEFwBTQlMbDoVCwKsD6YL5REVDNEqy9PYADSpB+sDUwfrA1MDUwfrB+sDUwfrA1MDUwNTA1McCvAa08AQXw9IBG0FjgWLBNYIgyZJEYEHKAjSVA10HhxHA0UA/CMlSRw7kzMLJUJMDE0DB/w2QmynfTgDRzGrVPWQogPLMk85bAEecRKgACoPcxw1tU5+ekdxoApLT661f0liTmcCvjqoP/gKIQmTb7t3TgY9EBcnoRDzDC8BsQE3DelL1ATtBjcExR95GRUPyZWYCKEt2QzpJt8unYBWI/EqfwXpS/A82QtJUWQPVQthCd86X4FKAx0BCSKHCtkNNQhpEO8KxWcN4RFBBzUD0UmWAKEG/QsNHTEVsSYMYqgLBTlzBvca8guLJqsTJXr4Bc8aHQZJASUa+wDLLuOFrFotXBhPWwX/CyEjwxSkUBwNIUCzeEQaFwcRJaUCjUNsSoNRMh6PIfI8OQ1iLg9ReAfxPAEZSwt9PJpGp0UKEc4+iT1EIkVMKAQxeywrJ4cJyw+BDLV8bgFVCR0JrQxtEy0REzfBCDUHFSmXICcRCB1GkWCWBPObA+8TzQMHBTsJPQcPA7EcKRMqFSUFCYEg0wLvNtEurwKLVnwBEwXHDyEf2xBMR9wO5QiXAmEDfyXnACkVHQATIpcIP18AW4/UUwEuxwjDamgjcANjFONdEW8HjQ5TB6McLxW7HN1wxF4HhgQon6sJVwFxCZUBWwTfCAU1V4ycID1nT4tUGJcgXUE7XfgCLQxhFZtEuYd0AocPZxIXATEBbwc1DP0CcxHpEWcQkQjnhgA1sTP0OiEESyF/IA0KIwNLbMoLIyb1DPRlAZ8SXgMINDl36menYLIgF/kHFTLBQVwh7QuOT8kMmBq9GD5UKhngB7sD7xrvJ+ZBUwX7A58POkkz6gS5C2UIhwk7AEUOnxMH0xhmCm2MzAEthwGzlQNTjX8Ca4sGMwcHAGMHgwV14QAZAqMInwABAMsDUwA1AqkHmQAVAIE9ATkDIysBHeECiwOPCC3HAZErAe8lBBe/DBEA8zNuRgLDrQKAZmaeBdlUAooCRTEBSSEEAUpDTQOrbd0A1wBHBg/bQwERp0bHFt8/AdtrJwDDAPcAATEHAT0ByQHvaQCzAVsLLQmer7EBSeUlAH8AEWcB0wKFANkAMQB77QFPAEkFVfUFzwJLRQENLRQnU10BtwMbAS8BCQB1BseJocUDGwRpB88CEBcV3QLvKgexAyLbE8lCwQK92lEAMhIKNAq1CrQfX/NcLwItbj1MAAofpD7DP0oFTTtPO1Q7TztUO087VDtPO1Q7TztUA5O73rveCmhfQWHnDKIN0ETEOkUT12BNYC4TxC2zFL0VyiVSGTkauCcBJeBVBQ8ALc9mLAgoNHEXuAA7KWSDPWOCHiwKRxzjU41U9C0XAK1LnjOrDagbEUQ8BUN16WImFgoKHgJkfQJiPldJq1c3HAKh8wJolAJmBQKfgDgXBwJmNwJmIgRqBHsDfw8Dfo45AjlzEzl+Oh8fAmwZAjIyOAYCbcMCbarrhi9jQScBYwDaAN0ARgEHlAyJAPoHvgAJsQJ3KwJ2njsCeUc/Ani2GVjXRapG0wJ8OwJ6xAJ9BQJ87AVVBRxH/Eh5XyAAJxFJVEpXERNKyALQ/QLQyEsjA4hLA4fiRMGRLgLynVz/AwOqS8pMKSHLTUhNqwKLOwKK1L0XAxk/YwGzAo4zAo5YPJN9Ao7VAo5YdFGwUzEGUtBUgQKT9wKTCADlABhVGlWrVcwCLBcpkYIy3XhiRTc1ApebAu+uWB2kAFUhApaLApZ4mAClWahaBX1JADcClrEClkpcQFzNApnHAplgXMZdAxUCnJc5vjqZApwSAp+XAp60hgAZCy0mCwKd7QKejgCxOWEwYesCns8CoGoBpQKemxsCnkqhY8RkIyEnAierAiZ6AqD3AqBIAqLZAqHAAqYrAqXKAqf7AHkCp+5oeGit/0VqGGrNAqzfAqyqAq1jAqz+AlcZAlXYArHd0wMfSmyTArK5CQKy5BNs3G1fbURbAyXJArZYNztujAMpQQK4WgK5QxECuSZzcDJw3QK9FQK71nCSAzINAr6Ecf4DM20CvhZzHnNLAsPHAsMAc350RzFBdNwDPKMDPJYDPbsCxXgCxkMCxgyFAshlTQLIQALJSwLJKgJkmQLdznh1XXiqeSFLzAMYn2b+AmHwGe+VIHsHXo5etw0Cz2cCz2grR0/O7w+bAMKpAs9vASXmA04OfkcBAtwjAtuGAtJLA1JYA1NbAP0DVYiAhTvHEulcQYIYgs+CyoOJAtrDAtnahAyERac4A4ahACsDZAqGbVX1AFEC32EC3rRvcwLiK+0QAfMsIwH0lwHyzoMC6+8C6Wx1Aur1AurgAPVDAbUC7oUC65iWppb/Au47A4XcmHVw3HGdAvL/AGUDjhKZjwL3DwORagOSgwL3lAL51QL4YpoYmqe3M5saA51/Av72ARcANZ8Yn68DBYkDpmYDptUAzcEDBmahhKIBBQMMRQELARsHaQZdtWMBALcEZ7sNhx6vCQATcTUAHwMvEkkDhXsBXyMdAIzrAB0A5p8Dm40IswYbn8EApwURu+kdPT4WeAVoNz5AK0IhQrRfcRFfvACWxQUyAJBMGZu5OyZgMhG6zw4vGMYYicn2BVcFWAVXBVgFYwVYBVcFWAVXBVgFVwVYBVcFWEYVCNeFZwICAgpkXukrBMkDsQYvu7sAuwSnuwDnQCkWsgVGPmk+cEI/QrZfdTdf6ABYETOrAIz+zGvL/KbnRno9JiMEKxYnNjV+bd9qwfEZwixpAWvXbjAXBV8FasnBybgIz0lbAAAACnxefYu+ADM/gQADFtEG5a0jBQCMwwsDAQ0A5WUdPSQfSkKxQrxBOCNfJ2A2JzgjCcE9CkQ/Qz54PoE+cD5xAolCvElCO1/LTk9qTQosa1QvagtuH1/gMzobCWebCmIjKzwdJkKrQrwrzAHL/F/JDh8uCQgJIn6d32o6LUoXyavJrAllwcvMCmBBXw/lEKMRAJONHUVCJRupbTnOOAozP0M+cEI/HAcKHUxHbFssLVrhvBIKfe0dK0I/HF0ISgkOM1RDQjcEO0OcLAqBGy1CPxv1CFMiIxgwMQAFj2HwXgpxZMlgC2AtI25DYBk5AhseYLMGAmsQZU5gTREBZOdgFWCVYH1gs2BLYJFoFhcGtQ7cVam8WgtDFqsBuyvNwQIfFQAcAx4BeQJsLzCVUoABigq4RxoA5CN0jgrKDaZN6gGbAoecTwVAXwD39wkANBZXDAulDCQfuq9HAE8MNAAVE58rggh6AtILS2URGwDYTgZ1BAoeWgAxALa4AZonCxZvqyQ4nxkBWwGGCfwD2e0PBqoGSga5AB3LValaCbthE4kLLT8OuwG7ASICR1ooKCggHh8hLBImBiEMjQBUAm5XkEmVAW4fD3FHAdN1D85RIBmpsE3qBxEFTF8A9/cKAHoGJGwKKwulODAtx69WDQsAX7wLAGNAlQh6AOpN7yIbvwAxALa4AZonLTsOzgKQGHtQu1jIdHKO16WbDvWZFT0b7AEpEFwSBg8bAccJOhCTBRArDDYLABEAs84BAgCkAOEAmIIABWtXLwAUAFsbxi5sdioNwRACOyQz0+EcHgsbfQJ7Ls6hHATBCqrxbAA3OS0Opge7CQAQOi7OERkAfavaHA+7GkcczaF3HgE9Kl8cAuugCAHCAULz5B9lAb4Jtwz6CDwKPgAFwAs9AksNuwi8DTwKvC7OoSoJPA67BZgBG2sKD4sa4QHDARELuxY7AKALOxC7BBige9wAO2sMPAACpgm8BRvQ9QUBvgH6bsoGewAHuwG7D00RErwBAQDqAQAAdBVbBhbLFPxvF7sYOwAuuwLrDlaouwAeuwJVICp/AAG7AALjAAg7FTwVuwAbuwG9KOClWw6/xAD0AGj7L7ZtvgNIo7vIqDsDAbuVJ0sAAlsACrsEAOfdGbsIGnsIoQUK/3AA37unuxjbGruji3lyBvupm4MAErsGGwsBvAAAhgBtuwYAC7unOwEaO7oIoZzKAbsL7QfAqTsA4XsBvwAA5QAVuwAG+wAJuwBpiwAauwAOuwIYu45pFfsAAVsADmsALkseAAa7ABe7CCEADUoBwgC3ryYBwAAAtAAOmwG+J+QAsloAHBsBv/7hCqEABcYLFRXbAAebAEK7AQIAabsAC3sAHbsACLsJoQAFygBunxnVAJEIIQAFygABOwAH2wAdmwghAAaaAAl7ABsrAG0bAOa7gAAIWwAUuwkhAAbKAOOLAAk7C6EOxPtfAAc7AG6cQEgARwADOwAJrQM3AAcbABl7Abv/Aab7AAobAAo7AAn7p+sGuwAJGwADCwAQOwAAFDsAEWsAD4sADesADbsAGQsGFhsAFTsAbpsWswG7ALoAEzsDAGkrCgDhSwACOwAEUgAXewUbAAbQABi7AAv7AF+7AGv7AOSLAbsAF3YBvAABcguhAAVKHgF7KFIAOUUA/gcNDHIAKCpwAaQFCF4BvF4jDAkHb0tsXyqJHzwUYi02A6EKtAHYABYC0QNuAXZyR1IUIQNPAhU+ASwGA3NGvHtSekAAKQAxAfsAUwrbAHuQLAErAHblDREyRgFKAFcFAAFQAQeKzAB4OwQgpQBaANYVAJVoNx+LAM1rsQDP1BYIwnVzGxhWHQnRAYiQqyJTU01IEjzCifkAfxw3QCkr4BGXTwByASksMClCGQ8DMFUE98XuAEtl3ABqAnECPxF6Osd4LjXVBgUAEBsdCggMKgQfHSlOU04IuboAChLNACYAARoAhgCJAI41AO4AtADgAJ08ALsAqwCmAKEA8gCfANMAnADrAQwBBwDAAHkAWgDLAM0BBwDXAOsAiACiATUA4wDYANUDAQcqM9TU1NS2wNzN0M5DMhcBTQFXL0cBVQFkAWMBVgFHS0NFaA0BThUHCAMyNgwHACINJCYpLDg6Oj09PT4/DkAeUVFRUVNTUlMpVFVXVlYcXWFhYGJhI2ZocG9ycnJycnJ0dHR0dHR0dHR0dHZ2d3Z1WwBA7ABFAJYAdAAuAGLyAIoAUwBTADMCc+kAh//y8gBgAI/sAJsASwBeAGD5+aoAgQCBAGUAUgCtAB4AsgB/AjwCPwD4AOMA+gD6AOQA+wDlAOUA5ADiACkCdwFNATwBOgFQAToBOgE6ATUBNAE0ATQBGAFUDwArCAAATRcKFgMVFg4AigCSAKIASwBkGAItAHAAaQCRAxIDJCoDHkE+RykAiwJLAMMCUwKgALoCkgKSApICkgKSApIChwKSApICkgKSApICkgKRApEClAKcApMCkgKSApACkAKQApACjgKRAnEB0AKTApsCkgKSApEWeQsA+gUDpwJdAjYXAVAQNQLeEQorEwFKNxNNkQF3pDwBZVkA/wM9RwEAAJMpHhiPagApYABpAC4AiQOUzIvwroRaBborDsIRAZ3VdCoLBCMxbAEzWmwBsgDdfoB/foB+gYKCfoOGhH6FiIaAh4KIgol+in6LfoyKjX6Ofo+CkH6RfpJ+k36Ug5WIloKXftoC2WzhAtdsAIJsJGygAINsbARCBD8EQQREBEIESARFBEAERgRIBEcEQwRFBEgAlmZsAKMDh2wAtGYBBWwAyVFsbADPbAIMbAD2WmwA9gEZAPYA9AD0APUA9AN8XmzUhCNlvwD2APQA9AD1APQcbGwAiVpsAPYAiQEZAPYAiQLsAPYAiQN8XmzUhCNlvxxsAPdabAEZAPYA9gD0APQA9QD0APcA9AD0APUA9AN8XmzUhCNlvxxsbACJWmwBGQD2AIkA9gCJAuwA9gCJA3xebNSEI2W/HGwCQwE2bAJKATlsAkvBbGwCV2xsA54C7AOeA54DnwOfA58DnwN8XmzUhCNlvxxsbACJWmwBGQOeAIkDngCJAuwDngCJA3xebNSEI2W/HGwEN2wAiQQ4AIkGjTFtIC9s1m4DJmwA/QDGWgJsbABVWv4UMgJsbACJAmwAVAEAuV5sAmxebGwAiV5sAmxebD3YAEls1gJsbEZFNiJ9FGVAe8xvEZKvxVfKZszAVTBzYBH2d1iyUXEHH7twNw7eZF5JJRHI5EgaRr5D20/3dfONrFLSq5qSrrgd2CEUq722WBQ/LzpA+bx1oREI5xy4BDSZNun0ZWORUJqInZSyMaioyvfSI0l5uFDzbWaQ28/zdB0hwR4OQZ0/jn9ALSLNikjFYGfqR389qtFlhD3a6KdIh97rhZYpywuLc7o8ql5/X8KCbPU3L/QlmCowhRXhsGDvg6wUNprA9bM/49uxlAj7ZVy3ouEY/BgFXBNyK0TLrSjZWeJm/T4nz6QGLT3cJNtWRZVZTvIdtaxMMJRHgig9+S11LjBh7Inr06ykoch1U097Rw0hvgmOrydQyaWcEQDg0RavuMuT0zYabUZl1e33HNSK1oNUCS03eh+9C2EvF3fq9h+XBaAMFuoWeZf+mfZgL4HzyiKDIUtfNU4oFu0aE9qt3VA3U4D3fOSrAcYVnjG3cSkp1vhXZnp3JQm4JknKdBitO2NVnGCYQwU3YMWHWB87NEd+4AHuOKI8BSIH92reW0pfs+kWCTJxDCbRjFv8Cfc4/DSBYJScJYTeAEgg9wTEvcwd/QuHRHqGzAQ4fXf5FUI1lPrO+fvEcPl4JInM1z9AtBT2bL4QYEREe7KiSnnxTwtmAFjn8lqT3mND8qTktX2F16Ae9cakqJ6/pEQsHURqyqWlRMCzKXRKfCHT7sYHWx9/T/ugYTFY6iVN3Btm58ATJR5alYZybKMWojwOw3HbFn23NFyeLl7+Er82RchyYuBoGQ3j7SAWNxiYvp5U+Fq/DEzB9cG5DlJWsqkosRze92OVlCtQEYo1S1lF72Z8xWc4ld/+fFcfTEDTFb9d8tJGQ75dpJEvcWyGmGBiTbiWDdGOcw93Dmxq5ISUrmasygONfHLvhgo83HQZenbdBtSzBkvYrCEQ/xEDMhMZsN6gqplx5jGG9mSQLhM81UEdEeJ59sdNJDAFy/gPyJoKlwPZgB/MkC/kICLiCB8va+nCdO2ry4aDfkmPFpF/H/SGQ3LJ6aAv9dtJ8DniHtLOckZix0BVb0iR5V3LAp521LBSIi6AtV7r2ZB/hQEvAw54EFNOQcFnl1xGUIc67tqK1INNwD2n/RbwgzO9h45LM6VMuN8V1ZNIQ6t+Xy3lTqyVCD5kqLy/t3/b8MLbgDg8JIWDkSZ+LrGhhr+gYpH+pr1TnCUnZPjpUdw6bSL6MWVXoDDciQDWECwU2e6VEpfrcOBbrSOijqGkEIoJPbpmeJLkcwbvA0yWIixQVjo0HnYh7fji+Dfdq1mtV1lG2Zz9R7eFMHS+FK7nybutu2fwzDpFldO2pZBshsHJWaltn3PWOoGJpCT2jE8EHOuC6FkejNWcfsWCqNqMLP9xTwcWArj2EiiI7D+EaDi7/2cqHL1gPiF6C/J7aUo7RQqogPZ11WqbyP97nsoMxPOC78wZMF7B1Y0g7JNXJV/nN1m4xx8hbqWz07KSaqr5hE4icB326DMR/vUKX9LoNjle/ZWtbUhrTAcsdgrLlG5Ne8aiR0bS/2ZhpNOVVxavWIZsEM/rd68EB4vjbbD13NkMK1qvMk74vGbSkL7ULO0sZ9R6APSCo6KH+Xn98wEdw1bCPAnDTaBsD6sidAGN58uiH4a3ovG1KyZAu2XtyGgF/vgWKGxw9R1lfAVcfuYE71DHuxtTzfGZnHaDpDGWmfEq0N4GawE7yIkaoz8jcmVmzJe1ydM8q0p08YIxFcY1YcqQc1djWBEoNETDFcgk5waRftEJasPREkrV++N/TOKkERF1fCLrXS8DFGYGRBeECMQRNEs0ES3FzUtXCcNxpYEM3Uei6XodZruXUIRnn+UXf2b/r7n1vQutoi6WoIbW7svDNWBbUWcDUc7F9SJK3bvSy9KIqhgyJHoW2Kpvv0J4ob14HFXGWWVsYXJzjwxS+SADShTgCRjhoDgjAYRGxwJ1Vonw+cpnCKhz8NQPrb0SFxHIRbmG95Q2hlC4mDxvPBRbkFa60cvWakd7f0kVBxxktzZ9agPJEWyA63RSHYVqt8cPrs2uFJ3rS3k9ETGKn5+A6F9IOrdZHfT1biEyUJKEvwzuscwshGCBJvd16TrefW03xVnJf4xvs72PdxrMidjJO8EiWyN/VWyB3fv9kc34YIuZTFtXGo9DuG3H1Uka5FgBMwDPEvRcSabi3WakNQkXFecJlFk6buLVk5YHpuKWTw6oF632FPPSVIVl5hgUAeHhj0t/sw/PEEvThLQDDFE34eCg/rLOyXT3r+L98oRKrlTO0MdALYQ3rRQqC7d822dJPGxF1K4J2TtfPSMFaCAg0n0NGk9yiaKKOJD1v2aBX9HUOIawjjfvwCmjHZJTR62R9c9x33JnBjWrN4QYEOmehy0oZMP9XM9Zyi6TYoe07PaLceRXcCWZiY/imRUWW6+mci7+wMxSdwMdbXckXtvhJH8sc4iQcTwm7yp+3f7CaesTTQB2qkgeXh+wFiSMXfMlH7Yil0OoZ2QTtRLTip2O0cLZ4SstqWHZ6H+8A2kZXhpm0kPbL9dUanTOvziqIUh6Ambwa3WrCb2eWbuCN3L1hgWUmjRC3JoL3dBhR3imSQI8xuCMfsszlji7cSShNSYdqCXPxEVwbqO9i5B6hf93YI7aeyI8jxgcVXK0I/klbvhSXjkjOIwZgPdVwmsFW7HGPLUAvDRuKm+itybRg7c8+Yqqjg824Qf+/NxsBSUNAK9KCoJpauFqK0XQULrWYj4FnxeKDuvr54iokpi+D57e6Y1zxRJJdsHnDR3JyraCUufHBRTKODWBVzthjm4k3/Hv+Q990XDVR+KW+TcJX045LW86EKhz/97aqj89A8ZvTk1//tczosU90loIPVaHuWegJU3wP//7XHcO7c0yQM2jM/IhQKrf8hiObHWiWDZManF8Uf/HzbmDfC2wT//aiZ4hGTv/xzgKwdb1sD6cGEkceow0s3b89/zg+3plyRm0HlZi886j5wUwFhdHiDTaBidZRo5cx/tMeLyguOATbzq17ydhzbrpxunuHx6lbFGiO97gsd4dk//7iCIo+Ew+hG2so5kvv+ITG4c1fzHPtu1Xn5QfUnqY3/uByVmB7gmnE/E+5zdm+6nDmoews5fr+NzThdSHzK4bBQOL9c4O8OI0xLSqjJ4lbniLJg1aFpQRLwaSMZmpkC9e/j6FOVrTQ6a/a4alGgfrl2ZL1sbHUQ3DOI7ntq9diHFfm3t1mul3rdJEJCHnlW/hlQntipMrpeMs7fUr6wK370D7VbXH0DUHzdYfRg/6Z11Ult1sffJS+heHbco15Sxy3+rDnPesqH1lajk0yu02hPUvEUqvcUXWXL7Ad0wNGMx5gOle4XJxq/r/YY0xdco2wRSEGwcT7YADlBrHc9ZbvzOL0QwyWCWWChB9Obg800v7tyBWaNvdwz+fL7Ph9i2irEeJkRgOzeEDw+JiD/V93vH9FgMEoFIJMoIuogmicZohf94SBuPn6hXaV9jP4VVVA/bu+Wg8S88GLtmEPSNRLdtlXx2XL/nuM8nKkhnlnjaropiKKLIH94pLIASci0pDBfj9Hi5BfaTSXQg5+PMjQX91Ktk4MOqK1K99l4BRPv5+vNovGZ3IxQv8ICvjV4/diThpoaM8uvd3D9d/DE477w3yAbW3IDm2i73pZ9aEj38JqS6h/s8/xgmUIVcuq2JTgefAyuoafzQxAuRASeg3NtG3ach/JEkyuX+JDt2PnDZTShUhyHHG3ttBg/6lhAchGjLJBtopj4e01MlCp2yqQRTr4sBBXru+lKaoanwYX8y2aWCJiR3KnhCOkYVFSvsO0oDRujUFOEptiNDTYrJoUbvOyvl4AhC9h3wORiTXK1MrpMfnvdnndnR/HRVSusMBgIxwrLdn3vq1VcncPiD0SquTx/kNmxeFyCT4uXVUd9AL+rSGmuq7OOCzDKeVPjiNWVaoP5KOFqYq5Xcuf/xW9S+u9eIq9GAtZWtQlgkRecjRtvG1NR4WXXpn+pwsTBTIy079Ikg8rSef1aVapIFcXCd6C2wHVjLXR+N0tw4Taw6x6H90BFRgNrtlq2up6hHKuV3inM5RJaQWZHd84e6RsKkk9po3dk9by54tpPw7cBkFas/G+GbHwuG+AwP55BZyXILTHCIVrPpXHEaUPYfL6nphJP1Rc10xG4UaCeY4IHCwuur8xmSQDgY4aVwhzWhjbtSHG8JO6P2i2nC9/0Bfx0zk6dYQq3aw7k5vIObD7SEKrxhz0fQ0+YTOfHW23CBNeZci1qNsUDhoeqmfyP6PvjoEjHk8QbrFyQVZPHVWijnb8YCM65iYNoEbvnchStZ/9cKg5Vd45j8KnB6UjzXl/bkyZx7VoD47ocUUi117WwgySSb4rXgLJ52Mv5XJbp3I+uBP81BUvOjy4Cacgi+GWWlC/8dwgqwiojjUBDnEOxyRyowwLQfytFra1OZS4XvRYr4uoamAfG3I/p2bA7G90yqKThH8Ke00Tqd+3l3dmJpaCZelBMYjGqNLVa3SM4+LQeL56gY6Bymy2LQPVOxjWfj5tq4o74swcxhyGJPynkS5xAjOXZP1/FAYcBT3u6qLoIkEfErwo4gozmyI1YCvM0oyI3ghjGPQSsof2sKUhq91WsKy9cYWN+4A2v4pG/Mxpdc6w6kI/HX7Xb0TuihmsiOy2wQIsrZbUmr3OBSUo6oDJNgQp+YqYkgTgYcWZDgawJw3DFfdzT//PhVUidgB2qa8uw/j9ToHBAS33iT8YLhhAfyXG0bQUFp7QmH7oQ3i6Flf4OTZLvJdh8pfuflmWu2ohm5pTiSg1pl3vq9uluTJwqXfh1hqy8e2iHoD+Y35gCIViTo6VOtK5dD8HYClucJucXASzwe2kPj4S4eYQtmkYHagXhAzp/F541xE8YFYqSPszDuz3soWzHy0p3E2jwZNQaIcGU9FNQwQxeDw0ZlK9dxXrj9IUHGUPTOyib8CqXmbZ7Ex54bn1rLx3qqAavu/gh6XjV0GmN1p+yyMK9HN5uYEvxgbAk43tsheREhyI+Q5WLIneKTGPmYiM/lxOp8fvqHy8YgXK0TlMiX0tliLI2JtfmWZP8eVV732sdYm+pcWzDzEmKLJZyeelyaZKkjPnnUO9keDwtgiLnmd5+t+Sr5y8brRnlvxcWEWfCqIALQYHvaXx6jTg4dAlye469uGwwOZVZCILLfGjaMg4LUCNMTtMSp1aC2y/3wR2t1v3w/iNBRQ+bNbtDqL2NAr7K4rUcyqbSpNrXZgAWXvjxBBtfYLK1uRYt3q2pfXJOAL0HtWcEwJLddOSJKV1SwvcvEuzg/4MPnA8MIUJOLqm3qI6wFyN99Ck6zYaV/zGSAzF/PGsaNa4vPLe5QnyuqVUnVQ6xELA6gbe53aGgeke+R/ycb2LJVyc7BhuzI90zA+c6wUDTb7NH//gdDSl2u/aW7lRJm8m1fLtPxcNuEM5JbkOCZKPM88HUsLRoC1pmKKlvWyeAXuxILbu0snpSxf8N+RgtLUSe5n2gdjOjoSTaN7mMZ7bF+cWk/MS8mFD4pcyl5UN7CbpFZH2a+Pm1VAnUTVfbw8qrmz1G9m5aKmRzY1SMhhPrlCn2t4uNUXNA3IFe6NOjSC1DEaAFZAfDlEkQCsbNhsZPj6NQPDSB3tLiTo0ZYoEbIeEIaKtU3Wk60rEszawTFuyHVd365LA/c/uarABN5M5rGq/dqTG3Ilye/5EKiYisisuzqNaZjmWv0z9TORc0CKbaTea214oNM9u2sXUZub/eqM3Pi/PjRSyQiOSwPWif2asTgu6hS6fb5UGosCWxdedMqdViIUUSSdIJx+qQ4KShfTT39VAWZbi+mB+iKICNwpt6cflY57Rcbs6d1kA26Iru73cuxYVlSvuJdcR5VfDYZRk8X0AXePROyw3Le6LaUdmTLzYsoNhhgQpd67xVNiHgk3pakmndeIAtTC4DCXy9oS6eU4CWxDdVmY53pKNbdAKmQsP37lrJZC6iDXMELGKcHjNuuZgcDyY8W/yv6ha3DX7OWm/35fpvhw55oitf4V+GULlcPWYyGGuVBdro19c8u0RDddDun40W7G5cSIzHLh/qZxb59R+EPY+wZ2XerkUim92hhXpKyW6WtAh6zQS97DrPyjCvKi3pCw96LeKynOpyjtsMQc2RmI/20zFOZcSa2AK++PoRcT6zeJyxlBZ7kk5mhqXGkLlM2hFKc+/T544xXP0Ua38Q6xdPTLTeG1PHnLMaOvksUQMrEFTB/lizCirmFQL8zYVU+OTeYQEFaITsBSMMYexS9HkajO2gGIf2micvntCZJsZQEwIH3/4JGJQGflBuH5rNXmnRRYXDQs3ZoEQoMtYDr1kFKUS/siiQSUxcTH9XYeBZiKDDFQoExREO9dddKQLO3BwMHvymCSTFyY+vxn3D27NDx6OlU092D5EDUwilttqVHpjJQDUceJYCLsK2swfXeNUVrBJT/w/sk+7si8rPtiMFis+oxvGdGQxirMBID700T39mULuNHzOyN+xBfcFACZcyngF1aSpv0JPkNUrAZTqfplv509cGXFUiEEm5dZb+OsP/blizqdK45/dSsIrufYTrCPY2lgJD6k6QljTfXVlHfYKSq+MsagyUcaMintyr95bD8kdTAeYNLNsMmo/Wdd8a2nStBP49ARIjqqpUHWY4q4mvO5Cq/CgCP+4/B+5zutGwX5pssgVLr1+fIM7WWLfiUQDk4c6ZdHZOWv5hG3g2dgQ5NXnpIY+BWwJpaouf25bXnjDzbHnQNofH/c6m+dEAS9Gs2h7pFRPKOBDnqswZ8KZjhId1ytHUTs533KwBoSiImoxKQUgZ7z6pA9QB3sZ8Cq0vwutJTTkfbX8AzCpm2cFXx/P22niUMHauU8IGc+78R6TsutoonoqFuoNA3l80t387YHMoL5KGAT1JO4zmx+vJ0LbLHlicHraSVYvJjnO9p++qnWgKw9OwFVVUagvZuf9qfiuum+hIicxP1q4zDnzkHsCNriLxBpxY9N+UOmqzdY1MunLMDgkMyi3uvnN3UBXJeZ8YLs5xr8QrOhimYoKuGBebZHAiBIkViv3DG8k2oNpp5OIgX6ulqaRN8V62QUPjn5tl1kPXhT9bcd8qIm8gi4or/FGbvQ6pgGSHmnayrugmf5E0upGxPRf/3xOtitGMaHLKJVm5zhglmVfI91o0yxhJZVS/5wQ8zfxK8Ylw0WmHXoGfRkoBRx9Hsnl/6sgTjAVwpmNuSeZtBwlX4qB8Bh8lxjqBDIuFGJ4I1wxN0XRlAAslzqMKwQfyA7OkuivCXfv+i+3XmhcBFM2n4jdT+NyUmBnQJPV3F2sZfKvJhUlXzSosFR4VevVVcOkFnnjdiRWc0TeSYxj41sJGYMbZTeLI3GvyZ8/gAAudQ1+4oFX+enX5V49MczGCYVBuoC4kHjp7ZVxj+clBwPr9k+v05SsezQK3enxLs1Nt/N7c7AImVUysjGou4iOohHo83Zs9/MI/OWB+OyXzOBD93NbApGHXrv8CVRHp2bwH+xB55cfNrdqFD35HSMx4iVmtzYAmSCIV8kXsHoq3DIb93riTWbubnjxbBW5zConVtbxLRStXHkIyAByaozME952Gc9aAdAbBpZSVCH88Uwb/4bPTVOVl+WoMYD7JIvK8VcMrJ8zHV4bbG0Dg7Kx17A4ej/ZcZ2Z5pVuVLUH1E/AccUTKm81SE+LQ6STTUDscUk0x2OWIbEORhg69tdoTGNkA1RfkGIRZHr5mCXOpLC55WWzCZoGPFUVtZRHwh0nq039CDdjEPo+JyaxSQAvDgR6Iqvxy0frrtEG1A385N81l05SSzN+IDm9bypF9m92EUqblnauZ5sjc37wRykOdl7w4o8WMgQsjii3EE/aJYDfHs1cH6DNBEujjcCc8qAefYFyIAURDcDnzun5UmkbBQsU4eu/W8I9nBE0qJKTdg2hwjq0+XV7a3TJ7R+alvJZCRia9lJ+grNB9dbrOmWEvUotMjvDhq4wV/kq4fvIBkzUGpDeYH74rne8uU3dgoNZdR9pUL6q9YDNRfOiF6Dyk+SYXQIghTjm9qR4tBHh0gnmF/9q3Qv22EzaLhSvDlDOxMrrCNRmLCl1jApzLrBCPn2mjn5zqK7OYK7VxOfQ5GfBfoPdyQwqFEgCVHkJ9oTnagRM3R0+rsuN5jQv9icCav/p1WqiEXSzCdLd/WEA6z6dDP7tPqPbeDYKAkVcz1lLGbFOC9b7cBd3MV0Ve8dZ89oR7OnxGS7uVpSry8banVZwpJg+nkH1jRBYa2BvBMY2xITH9ERXCjHzdZxs+ipdXP2DY7X+eWiBhtT2L0RRGTLPeazn5tpl4tu8iE2rWig731iuJDRbCHHy+g/Mb9+miAyVqfIpXT/iZeOxOxODO0hEpLM78I1+G2Z45yi3lS1K3m4WMQ559Lp4UML5vZUjYGJuxl+OPpUH5klpyBujkjprhei0TmUik10gjvNUp8mDkWlNKikmYspaVTqewbnOzJrmz8FLIpsT67EJLHIIfeDcWEfiP+DJrZ1jfxpoAb2abeMqLx+9RuZGzQoYtYVGgAWwEM9Kek2vPIeBNAKD6ao7nw6sgvfeLZPoXkbYO/tStHJdKzk+WFSFEU2NcALJAEP6S8pcnqqBBt57dwTrzQNCIdk2SocK4dLRbD/pu/VryKnm65ZYXiJCfHJk3mx9MRSl+nSK6OqEBSoGjz0/LADddwF/HqcfK3K3O+6YUGQcmj8pZL4PhZ6KrGkb8B38FmDvvLd3XQXbvS/FQmrXFTvJNkaN/FGo83KuS43BK1UfVnIqigGkCoP5fBda2MwAGTGNKX9K9t4Bx83pMFc5KSORmWKv+8VoVggWxoaBz3/9IBh6RwLd1tebwy89xvE5z6EEpXpDfrXWfRsMs6+ekUHH6idVosno55+xQ8Zqzelh0bxtJTgCcH3Z3/Cxlx9eNIS4JIFKOAVrDqbrXRszmY55a5+niJGHtkO3b6mnIDxLa1WXc7BAe33mt2KyM4Fbc3R6/WVTQN8QhlqAtave2WsQTqzWeSlKuGUVIJRqtObpv294rS0kDN1RKzdstZTXJebR2HlzsQ4P3NbMHUqFZMZw+/IKXnh4t+lY8qocp/B1oMszR03EFs3bPeND8QkItMvllObeCz3SZAjqZrobmLcrpFyQV7mwBjg3C3C8/bc5goQhv8j/IXMLGnt4mF7tybRDG5G0polxoUScQkPvmnga2/K+aapKeqSL0BTmo1Cm5g+booNOtdyKva2KoefRURaBk7113QKo3y+WTuFKtgETIK8HRluYS9DvlcciCDvnG8UaJRfZE2siZsiTHvRmN80xkUIInHeRZl5Re/+ATL6VhKFi8CZ/n/jbFV6T5pZ+Uoppvsi3qjacVFOJgWWfdlwVHKPW/TJO3na9hRM9bS2yo2rEsC6IBzRReVO6IesJU7PItzOamr+ROFfwGZmZ7ue8HNxAgLJKb7P3p8dMqk6Be5PJaT/5Rdc1deYVihWH9cjVKc9uz5EnfHqxLUkOO8iJUENBNVf5LyNy8zjLu/78k5WNTywiPfYeX3CPk7yc6CI3lum/CEZwfUaNpcI3KsPqfn2lmz3kd/acQjKA1ebkJaiuLD+epQ/Fc1llHXXMzofWzz/Kd29SNmOhcjMWw1jq1g3YfrXZ9rzXDYW4ZttfgfMi6oCUtBs0PkMVuxmq5lxEoCaSXPSqCJJ7MlKdRDidVt0AFlxk5cTdX++sBF2+E35mjwfm8ERVxH0FvuAQtsfA4V2G0TKTUxeyRGVjd/u6F1SvuAiU2/WaQjcNCU4Ep7VunXCYSbZj3U3wzu/LWM5MPlYuyQ3FOOCD/zt7K295hY2JhwF+ODDIZ676vGQFKveEQYkWj7lkK7rVmD7MhU0Y/tF8EcTTpo4/yqOufbd/zWIpMajnbDuWK2vn6OPPtz2rc9MIBNlPd8tt+yf+7SC4wqEPbozKMCwY5Bygx4JmoIEDsixWRDcdHd6S3/dZMHXOJAAv7+NIstl00crgSqHZKAEe4g3G4dzIV51EeZB01r7p8GNlfUnG/GjZgNGsqXZdYMBVtAtFNv3hJWPve4GvqZ2XxuiNkHTz5kxWgr0PjQdJlVywJ9Zf2ZvqeeTbolKtvK54re2Lq5BoyzfsRtvDfyao3kmyFzDQ88nM+qx83w74RDlkngtYiArI05Epre3GgBeSlMig0pE6RGQaFznKkGeb0SozLCyiOtxh7hgwZlbKbClzUUfC8ntMiHUOZE375RhTy9c4DA+oMLkUDkztSybZbdmP1xpaIbjUpPAHBq3cIq+CBFzbMlMMCCkUQ6d9LGV6GYCsYiEWZIy3nBnuxOYXeU4YTGDSin9e4/pCjPtQSHlg5LMEvIlF0ElthqrF129iK2RPBEWd3XWOl3SWV5uz5VUyZYp5kEFmz7QfP/B1W1BBzQ2iTGbSVT79lUHzcGXz3PJceSgz4uknETUwo0xffpr2KUvZF0i/r2sL3IFIClYx8CbIZE6Qt7MDJbOPB3xMScwaOcWG66IJfCnDkb0D2Mb+PHzX+oiCbxeTIogtyN+s2NJirNACk/OACSOTtV6vscwbzW4M168xqaI+RzR47S1nlV/rOoZnid87n/Ima2XYa3un3BuGAisNjb8eLMT9OnMtazQROFCuO1HiZXaOc0oUDbNC4eKLToOx8DzVhMgGA8XIAQ2x3b6I0uEyLssQjJX3QphcUMx4KsMgJ+72km4N2aqkBF2coKmUEt1eqIMGn+5txMT4kYVGd3ALO+y9Z4PP3d3l48JQK8s9ZZ/Qx/+NBKgBEJFlQ32psoJiihGO7FSYM5L81q72kaAYcilEFMG+ZK1BcMqELkflyCV7v8JEXLO4Rf/oZYNZHZVjJhfL6fnpP9Tio3Euue5uS7FMkfGOeRCTrBZ06Caev7tgufeTrX34Ur/Vvc+b8ksiIShNJtuF9WmYxOZ4xg8y6zTdy3KAB2y5kYkcRnXsptWwAFyKZ2I/QGySNeoQLkINUMloC+5L3WuMMx297Q1xUYLKqZ9XHavaobo6QQv4auMm+i84IhxRpPt9nUmcav9NcjCcP+TcMmxsQZ/F3mgeoA0fQgwvTsyXuuTaM3Sqtv2jaaajmaFQpK9W6uIbeqwvSDo34ZrY6elDUHwSCjHRRmlwmyy+eOra64Ssq0XSXYljMHtKY+FShcMkHsEUY/4Bw63dJ6KpwDaxmthlDdbdE+TvYF3v33cGSKqO+1H1pKYhJMvZD5ckQcHyNF8zrtiR5b0ko6NPGoRexUZTYP6VbUdn3zzxGBOi8Z0OqHjGqYxRXwN3mYi0GYEEZYq+Q3QvdKcEHILLLj8S+VFepSfErtmfZCdvxbfIifFSpEzKi+7VJsLMT+zEFeyp1OdwRC1VZrfTLIyR7xTPUcZFYPD9qI7D70uTb4hdpqPXsJIRNYbZtNwch1OI3trh3u2ScoQyM9POnInsUa+OovcwkUP1UfIzPb95n4BaF2ev57NHAej0+BVMF9/Cj9663HN2/JN3SQgslL914bKfiTTDFAz9PlQEL/dSv1H8xl3mtWxh1McFO9EJXlRDaKQDsyKO4vOJW90NFE6yw2tjbc2GeF95sbs0I9enAa6QwQVf/kJQhAD2BzUDKggOyjy1TEhED6sfk+418lQy3c/uj8aw8UEzZ6hIMCd8RohAkumMtIj9m73l2yPWoGHVTPaywkC7Yj9tBM1NxMgcrDwRtk4RO2WHT7Ql5kQCKdJj6kNuOTeyEBYBjLMhGz+O5/YGa84HEiTYEpZ6fFzy26GG2hWtTyteuYrhSyG56BjsT/wQeLRytpTY3D7sIMqZnJ9z1FDrfyjFlGl2TNw9BQysbaxOuwYYZs/7I6BANgkqCknWZC7/BBXvaeKwAmC959I+G39BUE9bExkNlbRoFRyEtNzv+NJ91FuisG3JCS6uYBeRnfv8AkAfKTeg9EYamqnsGfAV7d0f9DghHEQ5IsPGDIUhgoSj7obM4Bu5uhQ3/CYEDTHc92AsFvDK4XGrwUeGBWBHPlS+f4x+CxmmHz2sAGmSFNt65kwZC64mnaoWlu2310laYn8r62AqsR5dfjyK18MEdurdagldzfJtjFXlZs7St4QhdPiye6TPh2/ZAQLU/Fip5s7TDEM16KtRWrK9hmxnQ7bmfa/+7pa10Z8WDPK3NuJ+NN/RAbQ5vHx2uX0Lm7/w7cAEH/hvZA+mt7J7zGw7YtQYwnNN6dpgwkGjjrS3yQoeoYt1EnczmtmJfQZWzUlP3Hlg9Wzlr9IH23q3thGth+QNEANFettxKfskkGOlLk8AqoKJwDqOxAa6UzAx07plSSyNBJSGco9zjnC5gGbDoKvsMDuBR6bGRlGzJ+hFsGa/Izt78aI+WZ6dJlZKp4pGISuv9rV0sAS0MWEwCmfauO7oQZMiakHU35LBxiyJoOMddhUWgcZuC8r4Ksvn75TTcQXLJ7kWtYhGuGqPd9dZuFjBWQHNwosXY5snbHFQq72CvHXhIg+shQxycuLOuWYErwCLZeF24b7F78pO7xw4X6lIAR02hUOf5087Rl0nOaeb6CK4i/KA/EZv76ftOWZtjwxslNr0E/u8rWUmnf3amfg6UZmBAluuoj3Dd7UV+9IAJ6iYcDfSJlgmIImohjfIUMJ27z+opj50Ak9af2LCNrWrBJvMovA1OeNO+MF/MwZvnaCxTgG7Cw4QfSPF6AYCGFt21M8PySZFeV3t2Rqqs5JMzMYzGRgq4o+UaKRgBf9GHi/9X9HXA3wxkCsd/UhnHSh2zUVDiraio/6nP4y3XJqs8ABfALAtCYU7DHPMPRjgcM6Ad/HiSXDAbOdSMkvGZPAkHs8wuQTy6X2Ov/JFvcPuKfV3/r9Q28");const t=()=>kn(e),r=()=>new Set(t()),n=(e,t)=>t.forEach((t=>e.add(t)));oi=new Map(Tn(e)),ai=r(),si=t(),ci=new Set(t().map((e=>si[e]))),si=new Set(si),ui=r(),li=r();let i=_n(e),o=e();const a=()=>{let e=new Set;return t().forEach((t=>n(e,i[t]))),n(e,t()),e};di=Mn((t=>{let r=Mn(e).map((e=>e+96));if(r.length){let n=t>=o;return r[0]-=32,r=Nn(r),n&&(r=`Restricted[${r}]`),{N:r,P:a(),Q:a(),M:!e(),R:n}}})),fi=r(),hi=new Map;let s=t().concat(ri(fi)).sort(((e,t)=>e-t));s.forEach(((t,r)=>{let n=e(),i=s[r]=n?s[r-n]:{V:[],M:new Map};i.V.push(t),fi.has(t)||hi.set(t,i)}));for(let{V:l,M:d}of new Set(hi.values())){let e=[];for(let r of l){let t=di.filter((e=>ni(e,r))),i=e.find((({G:e})=>t.some((t=>e.has(t)))));i||(i={G:new Set,V:[]},e.push(i)),i.V.push(r),n(i.G,t)}let t=e.flatMap((e=>ri(e.G)));for(let{G:r,V:n}of e){let e=new Set(t.filter((e=>!r.has(e))));for(let t of n)d.set(t,e)}}pi=new Set;let c=new Set;const u=e=>pi.has(e)?c.add(e):pi.add(e);for(let l of di){for(let e of l.P)u(e);for(let e of l.Q)u(e)}for(let l of pi)hi.has(l)||c.has(l)||hi.set(l,1);n(pi,Xn(pi)),gi=function(e){let t=[],r=kn(e);return function e({S:r,B:n},i,o){if(!(4&r&&o===i[i.length-1])){2&r&&(o=i[i.length-1]),1&r&&t.push(i);for(let t of n)for(let r of t.Q)e(t,[...i,r],o)}}(function t(n){let i=e(),o=Mn((()=>{let n=kn(e).map((e=>r[e]));if(n.length)return t(n)}));return{S:i,B:o,Q:n}}([]),[]),t}(e).map((e=>ii.from(e))).sort(Rn),mi=new Map;for(let l of gi){let e=[mi];for(let t of l){let r=e.map((e=>{let r=e.get(t);return r||(r=new Map,e.set(t,r)),r}));65039===t?e.push(...r):e=r}for(let t of e)t.V=l}}function bi(e){return(Ai(e)?"":`${vi(wi([e]))} `)+On(e)}function vi(e){return`"${e}"\u200e`}function wi(e,t=1/0,r=On){let n=[];var i,o;i=e[0],yi(),(o?ci.has(i):si.has(i))&&n.push("\u25cc"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let a=0,s=e.length;for(let c=0;c{let i=Bn(e),o={input:i,offset:n};n+=i.length+1;try{let e,n=o.tokens=ki(i,t,r),a=n.length;if(!a)throw new Error("empty label");let s=o.output=n.flat();if(function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw new Error("underscore allowed only at start")}(s),!(o.emoji=a>1||n[0].is_emoji)&&s.every((e=>e<128)))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw new Error(`invalid label extension: "${Nn(e.slice(0,4))}"`)}(s),e="ASCII";else{let t=n.flatMap((e=>e.is_emoji?[]:e));if(t.length){if(si.has(s[0]))throw Ii("leading combining mark");for(let e=1;eni(e,r)));if(!e.length)throw di.some((e=>ni(e,r)))?Si(t[0],r):xi(r);if(t=e,1==e.length)break}return t}(r);!function(e,t){for(let r of t)if(!ni(e,r))throw Si(e,r);if(e.M){let e=Xn(t);for(let t=1,r=e.length;t4)throw new Error(`excessive non-spacing marks: ${vi(wi(e.slice(t-1,n)))} (${n-t}/4)`);t=n}}}(i,t),function(e,t){let r,n=[];for(let i of t){let e=hi.get(i);if(1===e)return;if(e){let t=e.M.get(i);if(r=r?r.filter((e=>t.has(e))):ri(t),!r.length)return}else n.push(i)}if(r)for(let i of r)if(n.every((e=>ni(i,e))))throw new Error(`whole-script confusable: ${e.N}/${i.N}`)}(i,r),e=i.N}else e="Emoji"}o.type=e}catch(a){o.error=a}return o}))}function Ei(e){return e.map((({input:t,error:r,output:n})=>{if(r){let n=r.message;throw new Error(1==e.length?n:`Invalid label ${vi(wi(t,63))}: ${n}`)}return Nn(n)})).join(ti)}function xi(e){return new Error(`disallowed character: ${bi(e)}`)}function Si(e,t){let r=bi(t),n=di.find((e=>e.P.has(t)));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${e.N} + ${r}`)}function Ii(e){return new Error(`illegal placement: ${e}`)}function ki(e,t,r){let n=[],i=[];for(e=e.slice().reverse();e.length;){let o=Ti(e);if(o)i.length&&(n.push(t(i)),i=[]),n.push(r(o));else{let t=e.pop();if(pi.has(t))i.push(t);else{let e=oi.get(t);if(e)i.push(...e);else if(!ai.has(t))throw xi(t)}}}return i.length&&n.push(t(i)),n}function _i(e){return e.filter((e=>65039!=e))}function Ti(e,t){let r,n=mi,i=e.length;for(;i&&(n=n.get(e[--i]),n);){let{V:o}=n;o&&(r=o,t&&t.push(...e.slice(i).reverse()),e.length=i)}return r}r(938293);class Mi extends Error{constructor(e,t={}){const r=(()=>{if(t.cause instanceof Mi){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause?.message?t.cause.message:t.details})(),n=t.cause instanceof Mi&&t.cause.docsPath||t.docsPath,i=`https://oxlib.sh${n??""}`,o=[e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||n?["",r?`Details: ${r}`:void 0,n?`See: ${i}`:void 0]:[]].filter((e=>"string"==typeof e)).join("\n");super(o,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"ox@0.1.1"}),this.cause=t.cause,this.details=r,this.docs=i,this.docsPath=n,this.shortMessage=e}walk(e){return Pi(this,e)}}function Pi(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e&&e.cause?Pi(e.cause,t):t?null:e}const ji="#__bigint";function Di(e,t,r){return JSON.stringify(e,((e,r)=>"function"==typeof t?t(e,r):"bigint"==typeof r?r.toString()+ji:r),r)}function Oi(e,t){if(Eo(e)>t)throw new ko({givenSize:Eo(e),maxSize:t})}Di.parseError=e=>e;const Bi=48,Ni=57,Ri=65,Li=70,Fi=97,Ui=102;function zi(e){return e>=Bi&&e<=Ni?e-Bi:e>=Ri&&e<=Li?e-(Ri-10):e>=Fi&&e<=Ui?e-(Fi-10):void 0}function Hi(e,t={}){const{dir:r,size:n=32}=t;if(0===n)return e;if(e.length>n)throw new _o({size:e.length,targetSize:n,type:"Bytes"});const i=new Uint8Array(n);for(let o=0;ot)throw new lo({givenSize:to(e),maxSize:t})}function Gi(e,t={}){const{dir:r,size:n=32}=t;if(0===n)return e;const i=e.replace("0x","");if(i.length>2*n)throw new fo({size:Math.ceil(i.length/2),targetSize:n,type:"Hex"});return`0x${i["right"===r?"padEnd":"padStart"](2*n,"0")}`}function qi(e,t={}){const{dir:r="left"}=t;let n=e.replace("0x",""),i=0;for(let o=0;ot.toString(16).padStart(2,"0")));function Ji(e,t={}){const{strict:r=!1}=t;if(!e)throw new so(e);if("string"!=typeof e)throw new so(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new co(e);if(!e.startsWith("0x"))throw new co(e)}function Yi(e,t={}){let r="";for(let i=0;io||i>1n?n:n-o-1n}function io(e,t={}){const{signed:r,size:n}=t;return Number(r||n?no(e,t):e)}function oo(e,t={}){const{strict:r=!1}=t;try{return Ji(e,{strict:r}),!0}catch{return!1}}Ji.parseError=e=>e,Yi.parseError=e=>e,Zi.parseError=e=>e,$i.parseError=e=>e,Xi.parseError=e=>e,eo.parseError=e=>e,to.parseError=e=>e,ro.parseError=e=>e,no.parseError=e=>e,io.parseError=e=>e,oo.parseError=e=>e;class ao extends Mi{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number \`${i}\` is not in safe${n?` ${8*n}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class so extends Mi{constructor(e){super(`Value \`${"object"==typeof e?Di(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class co extends Mi{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class uo extends Mi{constructor(e){super(`Hex value \`"${e}"\` is an odd length (${e.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}class lo extends Mi{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class fo extends Mi{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}const ho=new TextEncoder;function po(e){if(!(e instanceof Uint8Array)){if(!e)throw new Io(e);if("object"!=typeof e)throw new Io(e);if(!("BYTES_PER_ELEMENT"in e))throw new Io(e);if(1!==e.BYTES_PER_ELEMENT||"Uint8Array"!==e.constructor.name)throw new Io(e)}}function go(...e){let t=0;for(const n of e)t+=n.length;const r=new Uint8Array(t);for(let n=0,i=0;ne,go.parseError=e=>e,mo.parseError=e=>e,yo.parseError=e=>e,bo.parseError=e=>e,vo.parseError=e=>e,wo.parseError=e=>e,Ao.parseError=e=>e,Co.parseError=e=>e,Eo.parseError=e=>e,xo.parseError=e=>e,So.parseError=e=>e;class Io extends Mi{constructor(e){super(`Value \`${"object"==typeof e?Di(e):e}\` of type \`${typeof e}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}class ko extends Mi{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class _o extends Mi{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}const To=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Mo=new Uint8Array(new Array(16).fill(0).map(((e,t)=>t))),Po=Mo.map((e=>(9*e+5)%16));let jo=[Mo],Do=[Po];for(let Nye=0;Nye<4;Nye++)for(let e of[jo,Do])e.push(e[Nye].map((e=>To[e])));var Oo=r(563741);function Bo(e,t={}){const{as:r=("string"==typeof e?"Hex":"Bytes")}=t,n=(0,Oo.lY)(mo(e));return"Bytes"===r?n:Yi(n)}function No(e){return function(e){return Ei(Ci(e,ei,_i))}(e)}function Ro(e){return No(e)}function Lo(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}Bo.parseError=e=>e,No.parseError=e=>e;const Fo=Lo({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cloudflare-eth.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),Uo=Lo({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:10339206},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),zo=Lo({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.drpc.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0});class Ho extends Q.C{constructor({docsPath:e}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join("\n"),{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}class Vo extends Q.C{constructor({docsPath:e,metaMessages:t,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}}var Ko=r(398703);const Go=new vn.A(128);async function qo(e,t){const{account:r=e.account,chain:n=e.chain,accessList:i,authorizationList:o,blobs:a,data:s,gas:c,gasPrice:u,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,value:p,...g}=t;if(void 0===r)throw new Ho({docsPath:"/docs/actions/wallet/sendTransaction"});const m=r?(0,R.J)(r):null;try{(0,yt.c)(t);const r=await(async()=>t.to?t.to:o&&o.length>0?await st({authorization:o[0]}).catch((()=>{throw new Q.C("`to` is required. Could not infer from `authorizationList`.")})):void 0)();if("json-rpc"===m?.type||null===m){let t;null!==n&&(t=await $(e,Yt,"getChainId")({}),function({chain:e,currentChainId:t}){if(!e)throw new Ko.jF;if(t!==e.id)throw new Ko.EH({chain:e,currentChainId:t})}({currentChainId:t,chain:n}));const y=e.chain?.formatters?.transactionRequest?.format,b=(y||gt.Bv)({...(0,pt.o)(g,{format:y}),accessList:i,authorizationList:o,blobs:a,chainId:t,data:s,from:m?.address,gas:c,gasPrice:u,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,to:r,value:p}),v=Go.get(e.uid),w=v?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:w,params:[b]},{retryCount:0})}catch($R){if(!1===v)throw $R;const r=$R;if("InvalidInputRpcError"===r.name||"InvalidParamsRpcError"===r.name||"MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)return await e.request({method:"wallet_sendTransaction",params:[b]},{retryCount:0}).then((t=>(Go.set(e.uid,!0),t))).catch((t=>{const n=t;if("MethodNotFoundRpcError"===n.name||"MethodNotSupportedRpcError"===n.name)throw Go.set(e.uid,!1),r;throw n}));throw r}}if("local"===m?.type){const t=await $(e,$t,"prepareTransactionRequest")({account:m,accessList:i,authorizationList:o,blobs:a,chain:n,data:s,gas:c,gasPrice:u,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,nonceManager:m.nonceManager,parameters:[...Zt,"sidecars"],value:p,...g,to:r}),y=n?.serializers?.transaction,b=await m.signTransaction(t,{serializer:y});return await $(e,dn,"sendRawTransaction")({serializedTransaction:b})}if("smart"===m?.type)throw new Vo({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new Vo({docsPath:"/docs/actions/wallet/sendTransaction",type:m?.type})}catch(y){if(y instanceof Vo)throw y;throw function(e,{docsPath:t,...r}){const n=(()=>{const t=(0,ht.l)(e,r);return t instanceof ft.RM?e:t})();return new lt.$s(n,{docsPath:t,...r})}(y,{...t,account:m,chain:t.chain||void 0})}}async function Qo(e,t){const{abi:r,account:n=e.account,address:i,args:o,dataSuffix:a,functionName:s,...c}=t;if(void 0===n)throw new Ho({docsPath:"/docs/contract/writeContract"});const u=n?(0,R.J)(n):null,l=(0,V.p)({abi:r,args:o,functionName:s});try{return await $(e,qo,"sendTransaction")({data:`${l}${a?a.replace("0x",""):""}`,to:i,account:u,...c})}catch(ys){throw Ee(ys,{abi:r,address:i,args:o,docsPath:"/docs/contract/writeContract",functionName:s,sender:u?.address})}}function Wo({abi:e,address:t,client:r}){const n=r,[i,o]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],a=null!=i,s=null!=o,c={};let u=!1,l=!1,d=!1;for(const f of e)if("function"===f.type?"view"===f.stateMutability||"pure"===f.stateMutability?u=!0:l=!0:"event"===f.type&&(d=!0),u&&l&&d)break;return a&&(u&&(c.read=new Proxy({},{get:(r,n)=>(...r)=>{const{args:o,options:a}=Jo(r);return $(i,Se,"readContract")({abi:e,address:t,functionName:n,args:o,...a})}})),l&&(c.simulate=new Proxy({},{get:(r,n)=>(...r)=>{const{args:o,options:a}=Jo(r);return $(i,kr,"simulateContract")({abi:e,address:t,functionName:n,args:o,...a})}})),d&&(c.createEventFilter=new Proxy({},{get:(r,n)=>(...r)=>{const o=e.find((e=>"event"===e.type&&e.name===n)),{args:a,options:s}=Yo(r,o);return $(i,Je,"createContractEventFilter")({abi:e,address:t,eventName:n,args:a,...s})}}),c.getEvents=new Proxy({},{get:(r,n)=>(...r)=>{const o=e.find((e=>"event"===e.type&&e.name===n)),{args:a,options:s}=Yo(r,o);return $(i,yr,"getContractEvents")({abi:e,address:t,eventName:n,args:a,...s})}}),c.watchEvent=new Proxy({},{get:(r,n)=>(...r)=>{const o=e.find((e=>"event"===e.type&&e.name===n)),{args:a,options:s}=Yo(r,o);return $(i,sn,"watchContractEvent")({abi:e,address:t,eventName:n,args:a,...s})}}))),s&&l&&(c.write=new Proxy({},{get:(r,n)=>(...r)=>{const{args:i,options:a}=Jo(r);return $(o,Qo,"writeContract")({abi:e,address:t,functionName:n,args:i,...a})}})),(a||s)&&l&&(c.estimateGas=new Proxy({},{get:(r,n)=>(...r)=>{const{args:a,options:s}=Jo(r);return $(i??o,tr,"estimateContractGas")({abi:e,address:t,functionName:n,args:a,...s,account:s.account??o.account})}})),c.address=t,c.abi=e,c}function Jo(e){const t=e.length&&Array.isArray(e[0]);return{args:t?e[0]:[],options:(t?e[1]:e[0])??{}}}function Yo(e,t){let r=!1;Array.isArray(e[0])?r=!0:1===e.length?r=t.inputs.some((e=>e.indexed)):2===e.length&&(r=!0);return{args:r?e[0]:void 0,options:(r?e[1]:e[0])??{}}}var Zo=r(122599);const $o=Lo({id:97,name:"Binance Smart Chain Testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{default:{name:"BscScan",url:"https://testnet.bscscan.com",apiUrl:"https://api-testnet.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0});const Xo=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function ea(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,o=[0,1];for(let w=1;w>--c&1}const d=2**31,f=d>>>1,h=f>>1,p=d-1;let g=0;for(let w=0;w<31;w++)g=g<<1|l();let m=[],y=0,b=d;for(;;){let e=Math.floor(((g-y+1)*i-1)/b),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e>>1|l(),a=a<<1^f,s=(s^f)<<1|f|1;y=a,b=1+s-a}let v=n-4;return m.map((t=>{switch(t-v){case 3:return v+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return v+256+(e[s++]<<8|e[s++]);case 1:return v+e[s++];default:return t-1}}))}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach(((e,r)=>t[e.charCodeAt(0)]=r));let r=e.length,n=new Uint8Array(6*r>>3);for(let i=0,o=0,a=0,s=0;i=8&&(n[o++]=s>>(a-=8));return n}(e)))}function ta(e){return 1&e?~e>>1:e>>1}function ra(e,t){let r=Array(e);for(let n=0,i=0;n{let t=na(e);if(t.length)return t}))}function oa(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(ca(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(ua(r,e))}return t.flat()}function aa(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function sa(e,t,r){let n=Array(e).fill().map((()=>[]));for(let i=0;in[t].push(e)));return n}function ca(e,t){let r=1+t(),n=t(),i=aa(t);return sa(i.length,1+e,t).flatMap(((e,t)=>{let[o,...a]=e;return Array(i[t]).fill().map(((e,t)=>{let i=t*n;return[o+t*r,a.map((e=>e+i))]}))}))}function ua(e,t){return sa(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}function la(e){return`{${function(e){return e.toString(16).toUpperCase().padStart(2,"0")}(e)}}`}function da(e){let t=[];for(let r=0,n=e.length;r>24&255}function Aa(e){return 16777215&e}let Ca,Ea,xa,Sa;function Ia(e){return e>=pa&&e<55204}function ka(e,t){if(e>=ga&&e<4371&&t>=ma&&t<4470)return pa+(e-ga)*va+(t-ma)*ba;if(Ia(e)&&t>ya&&t<4547&&(e-pa)%ba==0)return e+(t-ya);{let r=Sa.get(e);return r&&(r=r.get(t),r)?r:-1}}function _a(e){Ca||function(){let e=ea("AEUDVgHLCGMATwDUADIAdAAhADQAFAAtABQAIQAPACcADQASAAoAGAAJABIACQARAAUACwAFAAwABQAQAAMABwAEAAoABQAJAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACwANAA0AAwAKAAkABAAdAAYAZwDTAeYDMwCxCl8B8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgPi89uj00MsvBXxEPAGPCDwBnQKoEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiC+AZ4EWRJJFbEu7QDQLARtEbgECxDwAb/RyAk1AV4nD2cEQQKTAzsAGpobWgAahAGPCrysdy0OAKwAfFIcBAQFUmoA/PtZADkBIadVj2UMUgx5Il4ANQC9vAITAdQZWxDzALN9AhsZVwIcGSkCBAgXOhG7AqMZ4M7+1M0UAPDNAWsC+mcJDe8AAQA99zkEXLICyQozAo6lAobcP5JvjQLFzwKD9gU/OD8FEQCtEQL6bW+nAKUEvzjDHsuRyUvOFHcacUz5AqIFRSE2kzsBEQCuaQL5DQTlcgO6twSpTiUgCwIFCAUXBHQEqQV6swAVxUlmTmsCwjqsP/wKJQmXb793UgZBEBsnpRD3DDMBtQE7De1L2ATxBjsEyR99GRkPzZWcCKUt3QztJuMuoYBaI/UqgwXtS/Q83QtNUWgPWQtlCeM6Y4FOAyEBDSKLCt0NOQhtEPMKyWsN5RFFBzkD1UmaAKUHAQsRHTUVtSYQYqwLCTl3Bvsa9guPJq8TKXr8BdMaIQZNASka/wDPLueFsFoxXBxPXwYDCyUjxxSoUCANJUC3eEgaGwcVJakCkUNwSodRNh6TIfY8PQ1mLhNRfAf1PAUZTwuBPJ5Gq0UOEdI+jT1IIklMLAQ1fywvJ4sJzw+FDLl8cgFZCSEJsQxxEzERFzfFCDkHGS2XJCcVCCFGlWCaBPefA/MT0QMLBT8JQQcTA7UcLRMuFSkFDYEk1wLzNtUuswKPVoABFwXLDyUf3xBQR+AO6QibAmUDgyXrAC0VIQAXIpsIQ2MAX4/YUwUuywjHamwjdANnFOdhEXMHkQ5XB6ccMxW/HOFwyF4Lhggoo68JWwF1CZkBXwTjCAk1W4ygIEFnU4tYGJsgYUE/XfwCMQxlFZ9EvYd4AosPaxIbATUBcwc5DQECdxHtEWsQlQjrhgQ1tTP4OiUETyGDIBEKJwNPbM4LJyb5DPhpAaMSYgMMND137merYLYkF/0HGTLFQWAh8QuST80MnBrBGEJULhnkB78D8xrzJ+pBVwX/A6MDEzpNM+4EvQtpCIsJPwBJDqMXB9cYagpxjNABMYsBt5kDV5GDAm+PBjcHCwBnC4cFeeUAHQKnCKMABQDPA1cAOQKtB50AGQCFQQE9AycvASHlAo8DkwgxywGVLwHzKQQbwwwVAPc3bkoCw7ECgGpmogXdWAKOAkk1AU0lBAVOR1EDr3HhANsASwYT30cBFatKyxrjQwHfbysAxwD7AAU1BwVBAc0B820AtwFfCzEJorO1AU3pKQCDABVrAdcCiQDdADUAf/EBUwBNBVn5BdMCT0kBETEYK1dhAbsDHwEzAQ0AeQbLjaXJBx8EbQfTAhAbFeEC7y4HtQEDIt8TzULFAr3eVaFgAmSBAmJCW02vWzcgAqH3AmiYAmYJAp+EOBsLAmY7AmYmBG4EfwN/EwN+kjkGOXcXOYI6IyMCbB0CMjY4CgJtxwJtru+KM2dFKwFnAN4A4QBKBQeYDI0A/gvCAA21AncvAnaiPwJ5S0MCeLodXNtFrkbXAnw/AnrIAn0JAnzwBVkFIEgASH1jJAKBbQKAAAKABQJ/rklYSlsVF0rMAtEBAtDMSycDiE8Dh+ZExZEyAvKhXQMDA65LzkwtJQPPTUxNrwKLPwKK2MEbBx1DZwW3Ao43Ao5cQJeBAo7ZAo5ceFG0UzUKUtRUhQKT+wKTDADpABxVHlWvVdAGLBsplYYy4XhmRTs5ApefAu+yWCGoAFklApaPApZ8nACpWaxaCYFNADsClrUClk5cRFzRApnLAplkXMpdBxkCnJs5wjqdApwWAp+bAp64igAdDzEqDwKd8QKekgC1PWE0Ye8CntMCoG4BqQKenx8Cnk6lY8hkJyUrAievAiZ+AqD7AqBMAqLdAqHEAqYvAqXOAqf/AH0Cp/JofGixAANJahxq0QKs4wKsrgKtZwKtAgJXHQJV3AKx4dcDH05slwKyvQ0CsugXbOBtY21IXwMlzQK2XDs/bpADKUUCuF4CuUcVArkqd3A2cOECvRkCu9pwlgMyEQK+iHICAzNxAr4acyJzTwLDywLDBHOCdEs1RXTgAzynAzyaAz2/AsV8AsZHAsYQiQLIaVECyEQCyU8CyS4CZJ0C3dJ4eWF4rnklS9ADGKNnAgJh9BnzlSR7C16SXrsRAs9rAs9sL0tT0vMTnwDGrQLPcwEp6gNOEn5LBQLcJwLbigLSTwNSXANTXwEBA1WMgIk/AMsW7WBFghyC04LOg40C2scC2d6EEIRJpzwDhqUALwNkDoZxWfkAVQLfZQLeuHN3AuIv7RQB8zAnAfSbAfLShwLr8wLpcHkC6vkC6uQA+UcBuQLuiQLrnJaqlwMC7j8DheCYeXDgcaEC8wMAaQOOFpmTAvcTA5FuA5KHAveYAvnZAvhmmhyaq7s3mx4DnYMC/voBGwA5nxyfswMFjQOmagOm2QDRxQMGaqGIogUJAwxJAtQAPwMA4UEXUwER8wNrB5dnBQCTLSu3r73bAYmZFH8RBDkB+ykFIQ6dCZ8Akv0TtRQrxQL3LScApQC3BbmOkRc/xqdtQS4UJo0uAUMBgPwBtSYAdQMOBG0ALAIWDKEAAAoCPQJqA90DfgSRASBFBSF8CgAFAEQAEwA2EgJ3AQAF1QNr7wrFAgD3Cp8nv7G35QGRIUFCAekUfxE0wIkABAAbAFoCRQKEiwAGOlM6lI1tALg6jzrQAI04wTrcAKUA6ADLATqBOjs5/Dn5O3aJOls7nok6bzkYAVYBMwFsBS81XTWeNa01ZjV1NbY1xTWCNZE10jXhNZ41rTXuNf01sjXBNgI2ETXGNdU2FjYnNd417TYuNj02LjUtITY6Nj02PDbJNwgEkDxXNjg23TcgNw82yiA3iTcwCgSwPGc2JDcZN2w6jTchQtRDB0LgQwscDw8JmyhtKFFVBgDpfwDpsAD+mxQ91wLpNSMArQC9BbeOkRdLxptzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgELgEaJZkC7aMAoQCjBcGOmxdNxrsBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUHqSvAj5Gqwr7YrMUACT9AN3rlr3JG9m8w9lIAXltp/v8kfWaIaaR9OwpAES/I3ZVamDXSgB/UsOgAG6D0tq+5CIqE15FiAhV3yA2VhCQ7tj+m6xXaF53FIfGi/IAZIskMGAi2MU7MDVJNCbMzERyHZi+osdPtnFVbvq653O8rwaCy4IAf9OOok65AqJUtUriUfYsGPPVbe6jm0s9lbKlPCUKjdkHsFsEhvX4kT39ZCtAAbwQdn/h4TpO5hTByWAmr5n+Wuwhdegv6bmvX4LyOes3z2+cuHv2JFYwVMNuq2gzn8YHTjlUQd39osyWei4NKl3LAdfxlO876hh5ENp/cOvpuI9bF55guEthLLPOXjD4dktTH04P5TvZrWTM0e4+BHJxj7MLApXIFOs0sWKhNkG8iwuM5wR83my6V3wW06abhDzTXYfOr/ZpFXgXzmv4d12FFyP00/dPGbIVGV5ao8UufGzUwp/IHx6v/wDWJr9iaoCulhWwlZ7A8q/NMoD12+mBdNRgJYnThRLtMx1Bgwttn8/4Qn2CDfOSup9GVXEvA21ILgp0owHYxNOkpwLWz0G7K+WREIDjIzUzSn8I99CuJSmSpPyH0Ke6/NERYiNx+3dncSebPnOUnnWD61AhJ1n/tSLZmU5wYO5GfgzyAYJm6VL91LxZ8hL1lfximQxIDMRhIecQZBmeE5R0XlrpvwplVrJwpa8BBCdp93GPP9lyBeZ2zkRr920CR3cYbKpKHfogvm0nV7XdDz6EbjzlxADCMjSLXuXpIpyuizy39yY+I+H9rmpoIF3YwEjlH9MgGgWcCNTjHEWMqAbprn2Ox7rOHupaVE3lNyg3nt5XaZID6Y+uml5Ja+aOPu+BI+DZbiJVfaspUadakWUX6TA4dETkIqdJJHYnU4Z4yKpt5y8rVIahoMUf8A8kWtAQNCTbjp71gx3/zVdqNz1Sutkw0gFIMVm2BF4Xdv/0olw+NaDIR9Bb3DPweZA2K/cw+/b+AwyWl9ZOP67A9nexmeTNjfdzPGf9J6E6BMPKa5lJh+qNsdUz3HBUevU71eQFCqOcxiIYhacAhh/8PX0J5DdSViZ6WazDDx7cukJNpMfEkYLJ5Ao4vLoVd3d25Pg4qaVa2p2D2L3WvYPJ5Yf/A/MSxptjlgXL/KJtP2U0cRv2I09ATAiWCJYuRwiapeKFsqmi18yMMulDp3HdcIldq+7jkwsJUOHLHCzzzBw5XFvL0CAmo1ub456z7zb7shk3KPGCLZzr47oT1k/j06XNnJvG3Udv6XrP+wsqTBlZ5MaNPt9FOs/4Bt/ja/vbVhTNpBFl9Gq7MqINvGlWKOAwQzwOZy+EzSdjAqKJVV2YcskTuM94aIK+kc/AZaXiZLPREUDpkXIV947IFfj+85TrqPqLfkGcxgboMQjosf+az+odLNXdyp1mDNGsqSdK/pJ2Ca04mt/4d6s1X+lncOEYaGBBeW4pApGcjf7/XJCFbj3N3mFb+BtlIcw8ZiDKoClFX9Rf0bxCqtLpicObKJzBVVHr/6u4siH2hK75RNv7w9GfTbhJOQBYiFUZAByY4rn37tZBHT//kqKsNi3ryL9AqXJRzqiMIJMhILjoi/i8LVEsbu+Ih9bsyW16sgQqjYLO0qda6KaCPKj3DQcu6CfV5lKtjS3ZCdqLAZkOey9MR+QutJBGiz/r15GVD6rCVwJR4UUKC4GNJkfDf00OMW8aQtLSAGLXV8MIi9mbbl/qQEpxCm2L5hutFX4ekeLH4QgBWUFKs/2VVMKy46WtFE6AbwgmYm/Z0yHk5veDIrcl2HpVqb/rSE0PC9EbDzJEWqeaPhh7vF369Umq2kSiB3s5rBI6c/7N9bkRu4h2n+/h5nSwy+7n+/I+6oXQVANo2Jb5zDwtiBPf1ySCzHdT6yJShMzqSRZfnykX49CaFaxhoVF4PBhEuECJ1PrFYSpmHuyYsl14DTAV9ZxRms1XiR/kBrjhZjidOt0UNe+GSml7XNgpVw8YsUTmZXLTK+6iYnyW/wYR1W4UXwOi14xpFROHb6HcZzksgF5DbL2AFXzKNwHU2adjdAY+KCyM/cwRTBkkq/a227NI0q6DR2MkMCRu620t79bGcYUmACtqN3mk/0uNwd3JSXHqE1kzf6Yyj0W2083JNDRnIXDlgBxJ6uf58NN1f6FQiRCWB4egF8QDx74AixV8oTyw7PluIjr3/rj/WzgwPSq4xPojaF7V0xqG2u5ti2L1h6yYHv73Isrukr0kURDIEjClBsBx7kdcXUxaYMS0syT3ymLzDzslNDWQOT1Tao1YNmJHARUenhCkmV9tqCPGI5GqZaRpkiPxyjoncWjyOHYGqvbvRX+Bn1pn7EhRNXa1lqJPmoeN5VqdqIDPhEVhFsyG0d4iQEIYX0wZUbY2XbZWYlpZ/l66IrDDY0q1C1YzBDpHC4h05YqHQLqS9anyl22JQ6lEvjvdBwMHfE7z0luCXD34/rFeDa2TmSeEAykSpYO5j1G/nsgpR3qn0qaQEmLjnnLfcz+veoYqPnRqmRGwCJ6FJ3Gm/Z1/aVX5PSb03MMnjAf41ww54sD5k8FrkfBP+K0b1MrYpapWjtpZfve2HVf4ickX3LKSOhu7qI1Vd4c1kNrn2ajy1t4y93JhV4fnWCKq7OmFpcr7FjdJCXPTql0Drr14Ho3Z87+GPQ4Z/DcTiGqtvZxlRYi8cNuhXABveZIwNl/BX1huhVLaFax5OqypUrQRyb9OE3SSkPlDdy5uo5XGg2EIGEjLY1MO5cr1ibfiFWV7zspcTgkBKkwo5jPyAin04LqizZXb2tDRgwKJjGx4cVk3ngAQixwcxjYAg2Q7vmUR/hpwInMdw7OhC2qyf41vTPkudQAORS0DdLtOGQxb4fH2VYGsvJCkeWPeUwtf1/tuIhzXEThoCZzzSJqqjUtbaPI3ntHm3T5uf849hGUA0zU8ni5W+EEn3/0Y6oUhQFw9z0aGjkljBbAlFXc0y82G2wkd7VdgWa5KTgJJNjNwZMfmdnUIUn1JU5LiWX5UZEZbVlKSN76mlmjUR2ku+fucTNlO4IAAahnLjBhlvQNR9pe9swGBgq0YR7P3VCyI/seYwQ4QBzy9X+HPePgoF8WfKaJ4MBOhLCGHae6Z8xkNXwni9QAKvTNtVA56x8YJflZ/VvONRSlsSLmiSyNMnTjTaE1ko81zkzGEnVwEhjCzlwIqpxmpDAqwsEmtpdr3xpc7i/ZX3f2TzT3M0FdxIEQvO1jgmmiN+D1YpMduAzEhBtj2OBkMN/rv6p7Th4pSH6f5aH3aTvwFTl7EOSgGASI7ttyMehzpm4AVyK+bFEaFg9gnZsSUPpsbAe/0RFhrH+EXZ12Z7thf4dzN1+Sn+G8QrDA1VKaN4IFxD1rQz9Xq9Coii9S9/hPbTGjyBwFH3H1UdQuz5KsgPDEHua4/kPg2Gp/IIItsaLWBqiT9XH45MiQxSosGJ56H/0F2cjcCFd72l1665RNHURdC3lspI77esfJsl+rXXabkAy7vxDXG/XGGcKpwiKDPFfvMEgjkAHil4Za1F36RnyxxvdIAzvgfH8knukYDck07tc++DP4TdWeI7HXuq5Yl6VVFrUQtf64/dkXewlKZSHQo6YvCSpREB0GDrz+Ys2GfO8nw2SwrYwaf88AifzlPvP17bf1mI3AuccJvAjZIpBmqvharKFAebEjVKfGAwpQjWoXlm9LROsq9bCk1UeQ3CJxJqprzssS/Q04JeS1ReCCubL3J7sx86spkP4eNpp95UF+8K748icIs8vdILFklk9skQqi1So6cx3X906pvy1vz+KipTJ8fiVJxsV5MmT0XwA");Ca=new Map(ia(e).flatMap(((e,t)=>e.map((e=>[e,t+1<<24]))))),Ea=new Set(na(e)),xa=new Map,Sa=new Map;for(let[t,r]of oa(e)){if(!Ea.has(t)&&2==r.length){let[e,n]=r,i=Sa.get(e);i||(i=new Map,Sa.set(e,i)),i.set(n,t)}xa.set(t,r.reverse())}}();let t=[],r=[],n=!1;function i(e){let r=Ca.get(e);r&&(n=!0,e|=r),t.push(e)}for(let o of e)for(;;){if(o<128)t.push(o);else if(Ia(o)){let e=o-pa,t=e%va/ba|0,r=e%ba;i(ga+(e/va|0)),i(ma+t),r>0&&i(ya+r)}else{let e=xa.get(o);e?r.push(...e):i(o)}if(!r.length)break;o=r.pop()}if(n&&t.length>1){let e=wa(t[0]);for(let r=1;r0&&i>=e)0==e?(t.push(n,...r),r.length=0,n=a):r.push(a),i=e;else{let o=ka(n,a);o>=0?n=o:0==i&&0==e?(t.push(n),n=a):(r.push(a),i=e)}}return n>=0&&t.push(n,...r),t}(_a(e))}const Pa=".",ja=e=>Array.from(e);function Da(e,t){return e.P.has(t)||e.Q.has(t)}class Oa extends Array{get is_emoji(){return!0}}let Ba,Na,Ra,La,Fa,Ua,za,Ha,Va,Ka,Ga,qa;function Qa(){if(Ba)return;let e=ea("AEkU4AngDVgB0QKRAQYBOwDqATEAnwDbAIUApABsAOAAbwCRAEYAiQBPAHYAPgA+ACsANwAlAGMAHwAvACsAJQAWAC8AGwAiACIALwAUACsAEQAiAAsAGwARABcAGAA6ACkALAAsADUAFgAsABEAHQAhAA8AGwAdABUAFgAZAA0ADQAXABAAGQAUABIEqgYJAR4UFjfDBdMAsQCuPwFnAKUBA10jAK5/Ly8vLwE/pwUJ6/0HPwbkMQVXBVgAPSs5APa2EQbIwQuUCkEDyJ4zAsUKLwKOoQKG2D+Ob4kCxcsCg/IBH98JAPKtAUECLY0KP48A4wDiChUAF9S5yAwLPZ0EG3cA/QI5GL0P6wkGKekFBIFnDRsHLQCrAGmR76WcfwBbBpMjBukAGwA7DJMAWxVbqfu75wzbIM8IuykDsRQ7APcta6MAoX0YABcEJdcWAR0AuRnNBPoJIEw3CZcJiB4bVllM44NCABMADAAVAA5rVAAhAA4AR+4V2D3zOVjKleYuChAdX01YPewAEwAMABUADmsgXECXAMPrABsAOQzFABsVW6n7Adq4HB0FWwXiAtCfAsSwCkwcpGUUcxptTPUAuw1nAuEACy00iRfJkQKBewETGwC9DWcC4QALLQFIUCWRTAoDLfsFMgnXaRetAddDAEkrEncCMRYhAusnuTdrADnhAfUlAMcOy7UBG2OBALEFAAUAitNJBRvDHwcXAKgn0QGhKy0DmwBnAQoZPu03dAQYFwCqAccCIQDTKxJzOvNQsAWQOncnNUgF+icFWQVYr7gFaTtdQhI6WEGXe5NmX6H4CxMDxQcl8XcjBKNLAlNTAnUbqycBj6OlNVsDRRcEg2EJANEGqz8vIwcpAjldAGsBYR9xAIMdGQCVAUm3ACdpFwGvxQM3LSFDUwFvWQZlAmUA8UkXAykBBQBJQQCrAF0AcwArtQYH8+8ZjX8ACSEAKQCzG0cB0QHbBwsxl3iB6AAKABEANAA9ADgzd3nTwBBfEFwBTQlMbDoVCwKsD6YL5REVDNEqy9PYADSpB+sDUwfrA1MDUwfrB+sDUwfrA1MDUwNTA1McCvAa08AQXw9IBG0FjgWLBNYIgyZJEYEHKAjSVA10HhxHA0UA/CMlSRw7kzMLJUJMDE0DB/w2QmynfTgDRzGrVPWQogPLMk85bAEecRKgACoPcxw1tU5+ekdxoApLT661f0liTmcCvjqoP/gKIQmTb7t3TgY9EBcnoRDzDC8BsQE3DelL1ATtBjcExR95GRUPyZWYCKEt2QzpJt8unYBWI/EqfwXpS/A82QtJUWQPVQthCd86X4FKAx0BCSKHCtkNNQhpEO8KxWcN4RFBBzUD0UmWAKEG/QsNHTEVsSYMYqgLBTlzBvca8guLJqsTJXr4Bc8aHQZJASUa+wDLLuOFrFotXBhPWwX/CyEjwxSkUBwNIUCzeEQaFwcRJaUCjUNsSoNRMh6PIfI8OQ1iLg9ReAfxPAEZSwt9PJpGp0UKEc4+iT1EIkVMKAQxeywrJ4cJyw+BDLV8bgFVCR0JrQxtEy0REzfBCDUHFSmXICcRCB1GkWCWBPObA+8TzQMHBTsJPQcPA7EcKRMqFSUFCYEg0wLvNtEurwKLVnwBEwXHDyEf2xBMR9wO5QiXAmEDfyXnACkVHQATIpcIP18AW4/UUwEuxwjDamgjcANjFONdEW8HjQ5TB6McLxW7HN1wxF4HhgQon6sJVwFxCZUBWwTfCAU1V4ycID1nT4tUGJcgXUE7XfgCLQxhFZtEuYd0AocPZxIXATEBbwc1DP0CcxHpEWcQkQjnhgA1sTP0OiEESyF/IA0KIwNLbMoLIyb1DPRlAZ8SXgMINDl36menYLIgF/kHFTLBQVwh7QuOT8kMmBq9GD5UKhngB7sD7xrvJ+ZBUwX7A58POkkz6gS5C2UIhwk7AEUOnxMH0xhmCm2MzAEthwGzlQNTjX8Ca4sGMwcHAGMHgwV14QAZAqMInwABAMsDUwA1AqkHmQAVAIE9ATkDIysBHeECiwOPCC3HAZErAe8lBBe/DBEA8zNuRgLDrQKAZmaeBdlUAooCRTEBSSEEAUpDTQOrbd0A1wBHBg/bQwERp0bHFt8/AdtrJwDDAPcAATEHAT0ByQHvaQCzAVsLLQmer7EBSeUlAH8AEWcB0wKFANkAMQB77QFPAEkFVfUFzwJLRQENLRQnU10BtwMbAS8BCQB1BseJocUDGwRpB88CEBcV3QLvKgexAyLbE8lCwQK92lEAMhIKNAq1CrQfX/NcLwItbj1MAAofpD7DP0oFTTtPO1Q7TztUO087VDtPO1Q7TztUA5O73rveCmhfQWHnDKIN0ETEOkUT12BNYC4TxC2zFL0VyiVSGTkauCcBJeBVBQ8ALc9mLAgoNHEXuAA7KWSDPWOCHiwKRxzjU41U9C0XAK1LnjOrDagbEUQ8BUN16WImFgoKHgJkfQJiPldJq1c3HAKh8wJolAJmBQKfgDgXBwJmNwJmIgRqBHsDfw8Dfo45AjlzEzl+Oh8fAmwZAjIyOAYCbcMCbarrhi9jQScBYwDaAN0ARgEHlAyJAPoHvgAJsQJ3KwJ2njsCeUc/Ani2GVjXRapG0wJ8OwJ6xAJ9BQJ87AVVBRxH/Eh5XyAAJxFJVEpXERNKyALQ/QLQyEsjA4hLA4fiRMGRLgLynVz/AwOqS8pMKSHLTUhNqwKLOwKK1L0XAxk/YwGzAo4zAo5YPJN9Ao7VAo5YdFGwUzEGUtBUgQKT9wKTCADlABhVGlWrVcwCLBcpkYIy3XhiRTc1ApebAu+uWB2kAFUhApaLApZ4mAClWahaBX1JADcClrEClkpcQFzNApnHAplgXMZdAxUCnJc5vjqZApwSAp+XAp60hgAZCy0mCwKd7QKejgCxOWEwYesCns8CoGoBpQKemxsCnkqhY8RkIyEnAierAiZ6AqD3AqBIAqLZAqHAAqYrAqXKAqf7AHkCp+5oeGit/0VqGGrNAqzfAqyqAq1jAqz+AlcZAlXYArHd0wMfSmyTArK5CQKy5BNs3G1fbURbAyXJArZYNztujAMpQQK4WgK5QxECuSZzcDJw3QK9FQK71nCSAzINAr6Ecf4DM20CvhZzHnNLAsPHAsMAc350RzFBdNwDPKMDPJYDPbsCxXgCxkMCxgyFAshlTQLIQALJSwLJKgJkmQLdznh1XXiqeSFLzAMYn2b+AmHwGe+VIHsHXo5etw0Cz2cCz2grR0/O7w+bAMKpAs9vASXmA04OfkcBAtwjAtuGAtJLA1JYA1NbAP0DVYiAhTvHEulcQYIYgs+CyoOJAtrDAtnahAyERac4A4ahACsDZAqGbVX1AFEC32EC3rRvcwLiK+0QAfMsIwH0lwHyzoMC6+8C6Wx1Aur1AurgAPVDAbUC7oUC65iWppb/Au47A4XcmHVw3HGdAvL/AGUDjhKZjwL3DwORagOSgwL3lAL51QL4YpoYmqe3M5saA51/Av72ARcANZ8Yn68DBYkDpmYDptUAzcEDBmahhKIBBQMMRQELARsHaQZdtWMBALcEZ7sNhx6vCQATcTUAHwMvEkkDhXsBXyMdAIzrAB0A5p8Dm40IswYbn8EApwURu+kdPT4WeAVoNz5AK0IhQrRfcRFfvACWxQUyAJBMGZu5OyZgMhG6zw4vGMYYicn2BVcFWAVXBVgFYwVYBVcFWAVXBVgFVwVYBVcFWEYVCNeFZwICAgpkXukrBMkDsQYvu7sAuwSnuwDnQCkWsgVGPmk+cEI/QrZfdTdf6ABYETOrAIz+zGvL/KbnRno9JiMEKxYnNjV+bd9qwfEZwixpAWvXbjAXBV8FasnBybgIz0lbAAAACnxefYu+ADM/gQADFtEG5a0jBQCMwwsDAQ0A5WUdPSQfSkKxQrxBOCNfJ2A2JzgjCcE9CkQ/Qz54PoE+cD5xAolCvElCO1/LTk9qTQosa1QvagtuH1/gMzobCWebCmIjKzwdJkKrQrwrzAHL/F/JDh8uCQgJIn6d32o6LUoXyavJrAllwcvMCmBBXw/lEKMRAJONHUVCJRupbTnOOAozP0M+cEI/HAcKHUxHbFssLVrhvBIKfe0dK0I/HF0ISgkOM1RDQjcEO0OcLAqBGy1CPxv1CFMiIxgwMQAFj2HwXgpxZMlgC2AtI25DYBk5AhseYLMGAmsQZU5gTREBZOdgFWCVYH1gs2BLYJFoFhcGtQ7cVam8WgtDFqsBuyvNwQIfFQAcAx4BeQJsLzCVUoABigq4RxoA5CN0jgrKDaZN6gGbAoecTwVAXwD39wkANBZXDAulDCQfuq9HAE8MNAAVE58rggh6AtILS2URGwDYTgZ1BAoeWgAxALa4AZonCxZvqyQ4nxkBWwGGCfwD2e0PBqoGSga5AB3LValaCbthE4kLLT8OuwG7ASICR1ooKCggHh8hLBImBiEMjQBUAm5XkEmVAW4fD3FHAdN1D85RIBmpsE3qBxEFTF8A9/cKAHoGJGwKKwulODAtx69WDQsAX7wLAGNAlQh6AOpN7yIbvwAxALa4AZonLTsOzgKQGHtQu1jIdHKO16WbDvWZFT0b7AEpEFwSBg8bAccJOhCTBRArDDYLABEAs84BAgCkAOEAmIIABWtXLwAUAFsbxi5sdioNwRACOyQz0+EcHgsbfQJ7Ls6hHATBCqrxbAA3OS0Opge7CQAQOi7OERkAfavaHA+7GkcczaF3HgE9Kl8cAuugCAHCAULz5B9lAb4Jtwz6CDwKPgAFwAs9AksNuwi8DTwKvC7OoSoJPA67BZgBG2sKD4sa4QHDARELuxY7AKALOxC7BBige9wAO2sMPAACpgm8BRvQ9QUBvgH6bsoGewAHuwG7D00RErwBAQDqAQAAdBVbBhbLFPxvF7sYOwAuuwLrDlaouwAeuwJVICp/AAG7AALjAAg7FTwVuwAbuwG9KOClWw6/xAD0AGj7L7ZtvgNIo7vIqDsDAbuVJ0sAAlsACrsEAOfdGbsIGnsIoQUK/3AA37unuxjbGruji3lyBvupm4MAErsGGwsBvAAAhgBtuwYAC7unOwEaO7oIoZzKAbsL7QfAqTsA4XsBvwAA5QAVuwAG+wAJuwBpiwAauwAOuwIYu45pFfsAAVsADmsALkseAAa7ABe7CCEADUoBwgC3ryYBwAAAtAAOmwG+J+QAsloAHBsBv/7hCqEABcYLFRXbAAebAEK7AQIAabsAC3sAHbsACLsJoQAFygBunxnVAJEIIQAFygABOwAH2wAdmwghAAaaAAl7ABsrAG0bAOa7gAAIWwAUuwkhAAbKAOOLAAk7C6EOxPtfAAc7AG6cQEgARwADOwAJrQM3AAcbABl7Abv/Aab7AAobAAo7AAn7p+sGuwAJGwADCwAQOwAAFDsAEWsAD4sADesADbsAGQsGFhsAFTsAbpsWswG7ALoAEzsDAGkrCgDhSwACOwAEUgAXewUbAAbQABi7AAv7AF+7AGv7AOSLAbsAF3YBvAABcguhAAVKHgF7KFIAOUUA/gcNDHIAKCpwAaQFCF4BvF4jDAkHb0tsXyqJHzwUYi02A6EKtAHYABYC0QNuAXZyR1IUIQNPAhU+ASwGA3NGvHtSekAAKQAxAfsAUwrbAHuQLAErAHblDREyRgFKAFcFAAFQAQeKzAB4OwQgpQBaANYVAJVoNx+LAM1rsQDP1BYIwnVzGxhWHQnRAYiQqyJTU01IEjzCifkAfxw3QCkr4BGXTwByASksMClCGQ8DMFUE98XuAEtl3ABqAnECPxF6Osd4LjXVBgUAEBsdCggMKgQfHSlOU04IuboAChLNACYAARoAhgCJAI41AO4AtADgAJ08ALsAqwCmAKEA8gCfANMAnADrAQwBBwDAAHkAWgDLAM0BBwDXAOsAiACiATUA4wDYANUDAQcqM9TU1NS2wNzN0M5DMhcBTQFXL0cBVQFkAWMBVgFHS0NFaA0BThUHCAMyNgwHACINJCYpLDg6Oj09PT4/DkAeUVFRUVNTUlMpVFVXVlYcXWFhYGJhI2ZocG9ycnJycnJ0dHR0dHR0dHR0dHZ2d3Z1WwBA7ABFAJYAdAAuAGLyAIoAUwBTADMCc+kAh//y8gBgAI/sAJsASwBeAGD5+aoAgQCBAGUAUgCtAB4AsgB/AjwCPwD4AOMA+gD6AOQA+wDlAOUA5ADiACkCdwFNATwBOgFQAToBOgE6ATUBNAE0ATQBGAFUDwArCAAATRcKFgMVFg4AigCSAKIASwBkGAItAHAAaQCRAxIDJCoDHkE+RykAiwJLAMMCUwKgALoCkgKSApICkgKSApIChwKSApICkgKSApICkgKRApEClAKcApMCkgKSApACkAKQApACjgKRAnEB0AKTApsCkgKSApEWeQsA+gUDpwJdAjYXAVAQNQLeEQorEwFKNxNNkQF3pDwBZVkA/wM9RwEAAJMpHhiPagApYABpAC4AiQOUzIvwroRaBborDsIRAZ3VdCoLBCMxbAEzWmwBsgDdfoB/foB+gYKCfoOGhH6FiIaAh4KIgol+in6LfoyKjX6Ofo+CkH6RfpJ+k36Ug5WIloKXftoC2WzhAtdsAIJsJGygAINsbARCBD8EQQREBEIESARFBEAERgRIBEcEQwRFBEgAlmZsAKMDh2wAtGYBBWwAyVFsbADPbAIMbAD2WmwA9gEZAPYA9AD0APUA9AN8XmzUhCNlvwD2APQA9AD1APQcbGwAiVpsAPYAiQEZAPYAiQLsAPYAiQN8XmzUhCNlvxxsAPdabAEZAPYA9gD0APQA9QD0APcA9AD0APUA9AN8XmzUhCNlvxxsbACJWmwBGQD2AIkA9gCJAuwA9gCJA3xebNSEI2W/HGwCQwE2bAJKATlsAkvBbGwCV2xsA54C7AOeA54DnwOfA58DnwN8XmzUhCNlvxxsbACJWmwBGQOeAIkDngCJAuwDngCJA3xebNSEI2W/HGwEN2wAiQQ4AIkGjTFtIC9s1m4DJmwA/QDGWgJsbABVWv4UMgJsbACJAmwAVAEAuV5sAmxebGwAiV5sAmxebD3YAEls1gJsbEZFNiJ9FGVAe8xvEZKvxVfKZszAVTBzYBH2d1iyUXEHH7twNw7eZF5JJRHI5EgaRr5D20/3dfONrFLSq5qSrrgd2CEUq722WBQ/LzpA+bx1oREI5xy4BDSZNun0ZWORUJqInZSyMaioyvfSI0l5uFDzbWaQ28/zdB0hwR4OQZ0/jn9ALSLNikjFYGfqR389qtFlhD3a6KdIh97rhZYpywuLc7o8ql5/X8KCbPU3L/QlmCowhRXhsGDvg6wUNprA9bM/49uxlAj7ZVy3ouEY/BgFXBNyK0TLrSjZWeJm/T4nz6QGLT3cJNtWRZVZTvIdtaxMMJRHgig9+S11LjBh7Inr06ykoch1U097Rw0hvgmOrydQyaWcEQDg0RavuMuT0zYabUZl1e33HNSK1oNUCS03eh+9C2EvF3fq9h+XBaAMFuoWeZf+mfZgL4HzyiKDIUtfNU4oFu0aE9qt3VA3U4D3fOSrAcYVnjG3cSkp1vhXZnp3JQm4JknKdBitO2NVnGCYQwU3YMWHWB87NEd+4AHuOKI8BSIH92reW0pfs+kWCTJxDCbRjFv8Cfc4/DSBYJScJYTeAEgg9wTEvcwd/QuHRHqGzAQ4fXf5FUI1lPrO+fvEcPl4JInM1z9AtBT2bL4QYEREe7KiSnnxTwtmAFjn8lqT3mND8qTktX2F16Ae9cakqJ6/pEQsHURqyqWlRMCzKXRKfCHT7sYHWx9/T/ugYTFY6iVN3Btm58ATJR5alYZybKMWojwOw3HbFn23NFyeLl7+Er82RchyYuBoGQ3j7SAWNxiYvp5U+Fq/DEzB9cG5DlJWsqkosRze92OVlCtQEYo1S1lF72Z8xWc4ld/+fFcfTEDTFb9d8tJGQ75dpJEvcWyGmGBiTbiWDdGOcw93Dmxq5ISUrmasygONfHLvhgo83HQZenbdBtSzBkvYrCEQ/xEDMhMZsN6gqplx5jGG9mSQLhM81UEdEeJ59sdNJDAFy/gPyJoKlwPZgB/MkC/kICLiCB8va+nCdO2ry4aDfkmPFpF/H/SGQ3LJ6aAv9dtJ8DniHtLOckZix0BVb0iR5V3LAp521LBSIi6AtV7r2ZB/hQEvAw54EFNOQcFnl1xGUIc67tqK1INNwD2n/RbwgzO9h45LM6VMuN8V1ZNIQ6t+Xy3lTqyVCD5kqLy/t3/b8MLbgDg8JIWDkSZ+LrGhhr+gYpH+pr1TnCUnZPjpUdw6bSL6MWVXoDDciQDWECwU2e6VEpfrcOBbrSOijqGkEIoJPbpmeJLkcwbvA0yWIixQVjo0HnYh7fji+Dfdq1mtV1lG2Zz9R7eFMHS+FK7nybutu2fwzDpFldO2pZBshsHJWaltn3PWOoGJpCT2jE8EHOuC6FkejNWcfsWCqNqMLP9xTwcWArj2EiiI7D+EaDi7/2cqHL1gPiF6C/J7aUo7RQqogPZ11WqbyP97nsoMxPOC78wZMF7B1Y0g7JNXJV/nN1m4xx8hbqWz07KSaqr5hE4icB326DMR/vUKX9LoNjle/ZWtbUhrTAcsdgrLlG5Ne8aiR0bS/2ZhpNOVVxavWIZsEM/rd68EB4vjbbD13NkMK1qvMk74vGbSkL7ULO0sZ9R6APSCo6KH+Xn98wEdw1bCPAnDTaBsD6sidAGN58uiH4a3ovG1KyZAu2XtyGgF/vgWKGxw9R1lfAVcfuYE71DHuxtTzfGZnHaDpDGWmfEq0N4GawE7yIkaoz8jcmVmzJe1ydM8q0p08YIxFcY1YcqQc1djWBEoNETDFcgk5waRftEJasPREkrV++N/TOKkERF1fCLrXS8DFGYGRBeECMQRNEs0ES3FzUtXCcNxpYEM3Uei6XodZruXUIRnn+UXf2b/r7n1vQutoi6WoIbW7svDNWBbUWcDUc7F9SJK3bvSy9KIqhgyJHoW2Kpvv0J4ob14HFXGWWVsYXJzjwxS+SADShTgCRjhoDgjAYRGxwJ1Vonw+cpnCKhz8NQPrb0SFxHIRbmG95Q2hlC4mDxvPBRbkFa60cvWakd7f0kVBxxktzZ9agPJEWyA63RSHYVqt8cPrs2uFJ3rS3k9ETGKn5+A6F9IOrdZHfT1biEyUJKEvwzuscwshGCBJvd16TrefW03xVnJf4xvs72PdxrMidjJO8EiWyN/VWyB3fv9kc34YIuZTFtXGo9DuG3H1Uka5FgBMwDPEvRcSabi3WakNQkXFecJlFk6buLVk5YHpuKWTw6oF632FPPSVIVl5hgUAeHhj0t/sw/PEEvThLQDDFE34eCg/rLOyXT3r+L98oRKrlTO0MdALYQ3rRQqC7d822dJPGxF1K4J2TtfPSMFaCAg0n0NGk9yiaKKOJD1v2aBX9HUOIawjjfvwCmjHZJTR62R9c9x33JnBjWrN4QYEOmehy0oZMP9XM9Zyi6TYoe07PaLceRXcCWZiY/imRUWW6+mci7+wMxSdwMdbXckXtvhJH8sc4iQcTwm7yp+3f7CaesTTQB2qkgeXh+wFiSMXfMlH7Yil0OoZ2QTtRLTip2O0cLZ4SstqWHZ6H+8A2kZXhpm0kPbL9dUanTOvziqIUh6Ambwa3WrCb2eWbuCN3L1hgWUmjRC3JoL3dBhR3imSQI8xuCMfsszlji7cSShNSYdqCXPxEVwbqO9i5B6hf93YI7aeyI8jxgcVXK0I/klbvhSXjkjOIwZgPdVwmsFW7HGPLUAvDRuKm+itybRg7c8+Yqqjg824Qf+/NxsBSUNAK9KCoJpauFqK0XQULrWYj4FnxeKDuvr54iokpi+D57e6Y1zxRJJdsHnDR3JyraCUufHBRTKODWBVzthjm4k3/Hv+Q990XDVR+KW+TcJX045LW86EKhz/97aqj89A8ZvTk1//tczosU90loIPVaHuWegJU3wP//7XHcO7c0yQM2jM/IhQKrf8hiObHWiWDZManF8Uf/HzbmDfC2wT//aiZ4hGTv/xzgKwdb1sD6cGEkceow0s3b89/zg+3plyRm0HlZi886j5wUwFhdHiDTaBidZRo5cx/tMeLyguOATbzq17ydhzbrpxunuHx6lbFGiO97gsd4dk//7iCIo+Ew+hG2so5kvv+ITG4c1fzHPtu1Xn5QfUnqY3/uByVmB7gmnE/E+5zdm+6nDmoews5fr+NzThdSHzK4bBQOL9c4O8OI0xLSqjJ4lbniLJg1aFpQRLwaSMZmpkC9e/j6FOVrTQ6a/a4alGgfrl2ZL1sbHUQ3DOI7ntq9diHFfm3t1mul3rdJEJCHnlW/hlQntipMrpeMs7fUr6wK370D7VbXH0DUHzdYfRg/6Z11Ult1sffJS+heHbco15Sxy3+rDnPesqH1lajk0yu02hPUvEUqvcUXWXL7Ad0wNGMx5gOle4XJxq/r/YY0xdco2wRSEGwcT7YADlBrHc9ZbvzOL0QwyWCWWChB9Obg800v7tyBWaNvdwz+fL7Ph9i2irEeJkRgOzeEDw+JiD/V93vH9FgMEoFIJMoIuogmicZohf94SBuPn6hXaV9jP4VVVA/bu+Wg8S88GLtmEPSNRLdtlXx2XL/nuM8nKkhnlnjaropiKKLIH94pLIASci0pDBfj9Hi5BfaTSXQg5+PMjQX91Ktk4MOqK1K99l4BRPv5+vNovGZ3IxQv8ICvjV4/diThpoaM8uvd3D9d/DE477w3yAbW3IDm2i73pZ9aEj38JqS6h/s8/xgmUIVcuq2JTgefAyuoafzQxAuRASeg3NtG3ach/JEkyuX+JDt2PnDZTShUhyHHG3ttBg/6lhAchGjLJBtopj4e01MlCp2yqQRTr4sBBXru+lKaoanwYX8y2aWCJiR3KnhCOkYVFSvsO0oDRujUFOEptiNDTYrJoUbvOyvl4AhC9h3wORiTXK1MrpMfnvdnndnR/HRVSusMBgIxwrLdn3vq1VcncPiD0SquTx/kNmxeFyCT4uXVUd9AL+rSGmuq7OOCzDKeVPjiNWVaoP5KOFqYq5Xcuf/xW9S+u9eIq9GAtZWtQlgkRecjRtvG1NR4WXXpn+pwsTBTIy079Ikg8rSef1aVapIFcXCd6C2wHVjLXR+N0tw4Taw6x6H90BFRgNrtlq2up6hHKuV3inM5RJaQWZHd84e6RsKkk9po3dk9by54tpPw7cBkFas/G+GbHwuG+AwP55BZyXILTHCIVrPpXHEaUPYfL6nphJP1Rc10xG4UaCeY4IHCwuur8xmSQDgY4aVwhzWhjbtSHG8JO6P2i2nC9/0Bfx0zk6dYQq3aw7k5vIObD7SEKrxhz0fQ0+YTOfHW23CBNeZci1qNsUDhoeqmfyP6PvjoEjHk8QbrFyQVZPHVWijnb8YCM65iYNoEbvnchStZ/9cKg5Vd45j8KnB6UjzXl/bkyZx7VoD47ocUUi117WwgySSb4rXgLJ52Mv5XJbp3I+uBP81BUvOjy4Cacgi+GWWlC/8dwgqwiojjUBDnEOxyRyowwLQfytFra1OZS4XvRYr4uoamAfG3I/p2bA7G90yqKThH8Ke00Tqd+3l3dmJpaCZelBMYjGqNLVa3SM4+LQeL56gY6Bymy2LQPVOxjWfj5tq4o74swcxhyGJPynkS5xAjOXZP1/FAYcBT3u6qLoIkEfErwo4gozmyI1YCvM0oyI3ghjGPQSsof2sKUhq91WsKy9cYWN+4A2v4pG/Mxpdc6w6kI/HX7Xb0TuihmsiOy2wQIsrZbUmr3OBSUo6oDJNgQp+YqYkgTgYcWZDgawJw3DFfdzT//PhVUidgB2qa8uw/j9ToHBAS33iT8YLhhAfyXG0bQUFp7QmH7oQ3i6Flf4OTZLvJdh8pfuflmWu2ohm5pTiSg1pl3vq9uluTJwqXfh1hqy8e2iHoD+Y35gCIViTo6VOtK5dD8HYClucJucXASzwe2kPj4S4eYQtmkYHagXhAzp/F541xE8YFYqSPszDuz3soWzHy0p3E2jwZNQaIcGU9FNQwQxeDw0ZlK9dxXrj9IUHGUPTOyib8CqXmbZ7Ex54bn1rLx3qqAavu/gh6XjV0GmN1p+yyMK9HN5uYEvxgbAk43tsheREhyI+Q5WLIneKTGPmYiM/lxOp8fvqHy8YgXK0TlMiX0tliLI2JtfmWZP8eVV732sdYm+pcWzDzEmKLJZyeelyaZKkjPnnUO9keDwtgiLnmd5+t+Sr5y8brRnlvxcWEWfCqIALQYHvaXx6jTg4dAlye469uGwwOZVZCILLfGjaMg4LUCNMTtMSp1aC2y/3wR2t1v3w/iNBRQ+bNbtDqL2NAr7K4rUcyqbSpNrXZgAWXvjxBBtfYLK1uRYt3q2pfXJOAL0HtWcEwJLddOSJKV1SwvcvEuzg/4MPnA8MIUJOLqm3qI6wFyN99Ck6zYaV/zGSAzF/PGsaNa4vPLe5QnyuqVUnVQ6xELA6gbe53aGgeke+R/ycb2LJVyc7BhuzI90zA+c6wUDTb7NH//gdDSl2u/aW7lRJm8m1fLtPxcNuEM5JbkOCZKPM88HUsLRoC1pmKKlvWyeAXuxILbu0snpSxf8N+RgtLUSe5n2gdjOjoSTaN7mMZ7bF+cWk/MS8mFD4pcyl5UN7CbpFZH2a+Pm1VAnUTVfbw8qrmz1G9m5aKmRzY1SMhhPrlCn2t4uNUXNA3IFe6NOjSC1DEaAFZAfDlEkQCsbNhsZPj6NQPDSB3tLiTo0ZYoEbIeEIaKtU3Wk60rEszawTFuyHVd365LA/c/uarABN5M5rGq/dqTG3Ilye/5EKiYisisuzqNaZjmWv0z9TORc0CKbaTea214oNM9u2sXUZub/eqM3Pi/PjRSyQiOSwPWif2asTgu6hS6fb5UGosCWxdedMqdViIUUSSdIJx+qQ4KShfTT39VAWZbi+mB+iKICNwpt6cflY57Rcbs6d1kA26Iru73cuxYVlSvuJdcR5VfDYZRk8X0AXePROyw3Le6LaUdmTLzYsoNhhgQpd67xVNiHgk3pakmndeIAtTC4DCXy9oS6eU4CWxDdVmY53pKNbdAKmQsP37lrJZC6iDXMELGKcHjNuuZgcDyY8W/yv6ha3DX7OWm/35fpvhw55oitf4V+GULlcPWYyGGuVBdro19c8u0RDddDun40W7G5cSIzHLh/qZxb59R+EPY+wZ2XerkUim92hhXpKyW6WtAh6zQS97DrPyjCvKi3pCw96LeKynOpyjtsMQc2RmI/20zFOZcSa2AK++PoRcT6zeJyxlBZ7kk5mhqXGkLlM2hFKc+/T544xXP0Ua38Q6xdPTLTeG1PHnLMaOvksUQMrEFTB/lizCirmFQL8zYVU+OTeYQEFaITsBSMMYexS9HkajO2gGIf2micvntCZJsZQEwIH3/4JGJQGflBuH5rNXmnRRYXDQs3ZoEQoMtYDr1kFKUS/siiQSUxcTH9XYeBZiKDDFQoExREO9dddKQLO3BwMHvymCSTFyY+vxn3D27NDx6OlU092D5EDUwilttqVHpjJQDUceJYCLsK2swfXeNUVrBJT/w/sk+7si8rPtiMFis+oxvGdGQxirMBID700T39mULuNHzOyN+xBfcFACZcyngF1aSpv0JPkNUrAZTqfplv509cGXFUiEEm5dZb+OsP/blizqdK45/dSsIrufYTrCPY2lgJD6k6QljTfXVlHfYKSq+MsagyUcaMintyr95bD8kdTAeYNLNsMmo/Wdd8a2nStBP49ARIjqqpUHWY4q4mvO5Cq/CgCP+4/B+5zutGwX5pssgVLr1+fIM7WWLfiUQDk4c6ZdHZOWv5hG3g2dgQ5NXnpIY+BWwJpaouf25bXnjDzbHnQNofH/c6m+dEAS9Gs2h7pFRPKOBDnqswZ8KZjhId1ytHUTs533KwBoSiImoxKQUgZ7z6pA9QB3sZ8Cq0vwutJTTkfbX8AzCpm2cFXx/P22niUMHauU8IGc+78R6TsutoonoqFuoNA3l80t387YHMoL5KGAT1JO4zmx+vJ0LbLHlicHraSVYvJjnO9p++qnWgKw9OwFVVUagvZuf9qfiuum+hIicxP1q4zDnzkHsCNriLxBpxY9N+UOmqzdY1MunLMDgkMyi3uvnN3UBXJeZ8YLs5xr8QrOhimYoKuGBebZHAiBIkViv3DG8k2oNpp5OIgX6ulqaRN8V62QUPjn5tl1kPXhT9bcd8qIm8gi4or/FGbvQ6pgGSHmnayrugmf5E0upGxPRf/3xOtitGMaHLKJVm5zhglmVfI91o0yxhJZVS/5wQ8zfxK8Ylw0WmHXoGfRkoBRx9Hsnl/6sgTjAVwpmNuSeZtBwlX4qB8Bh8lxjqBDIuFGJ4I1wxN0XRlAAslzqMKwQfyA7OkuivCXfv+i+3XmhcBFM2n4jdT+NyUmBnQJPV3F2sZfKvJhUlXzSosFR4VevVVcOkFnnjdiRWc0TeSYxj41sJGYMbZTeLI3GvyZ8/gAAudQ1+4oFX+enX5V49MczGCYVBuoC4kHjp7ZVxj+clBwPr9k+v05SsezQK3enxLs1Nt/N7c7AImVUysjGou4iOohHo83Zs9/MI/OWB+OyXzOBD93NbApGHXrv8CVRHp2bwH+xB55cfNrdqFD35HSMx4iVmtzYAmSCIV8kXsHoq3DIb93riTWbubnjxbBW5zConVtbxLRStXHkIyAByaozME952Gc9aAdAbBpZSVCH88Uwb/4bPTVOVl+WoMYD7JIvK8VcMrJ8zHV4bbG0Dg7Kx17A4ej/ZcZ2Z5pVuVLUH1E/AccUTKm81SE+LQ6STTUDscUk0x2OWIbEORhg69tdoTGNkA1RfkGIRZHr5mCXOpLC55WWzCZoGPFUVtZRHwh0nq039CDdjEPo+JyaxSQAvDgR6Iqvxy0frrtEG1A385N81l05SSzN+IDm9bypF9m92EUqblnauZ5sjc37wRykOdl7w4o8WMgQsjii3EE/aJYDfHs1cH6DNBEujjcCc8qAefYFyIAURDcDnzun5UmkbBQsU4eu/W8I9nBE0qJKTdg2hwjq0+XV7a3TJ7R+alvJZCRia9lJ+grNB9dbrOmWEvUotMjvDhq4wV/kq4fvIBkzUGpDeYH74rne8uU3dgoNZdR9pUL6q9YDNRfOiF6Dyk+SYXQIghTjm9qR4tBHh0gnmF/9q3Qv22EzaLhSvDlDOxMrrCNRmLCl1jApzLrBCPn2mjn5zqK7OYK7VxOfQ5GfBfoPdyQwqFEgCVHkJ9oTnagRM3R0+rsuN5jQv9icCav/p1WqiEXSzCdLd/WEA6z6dDP7tPqPbeDYKAkVcz1lLGbFOC9b7cBd3MV0Ve8dZ89oR7OnxGS7uVpSry8banVZwpJg+nkH1jRBYa2BvBMY2xITH9ERXCjHzdZxs+ipdXP2DY7X+eWiBhtT2L0RRGTLPeazn5tpl4tu8iE2rWig731iuJDRbCHHy+g/Mb9+miAyVqfIpXT/iZeOxOxODO0hEpLM78I1+G2Z45yi3lS1K3m4WMQ559Lp4UML5vZUjYGJuxl+OPpUH5klpyBujkjprhei0TmUik10gjvNUp8mDkWlNKikmYspaVTqewbnOzJrmz8FLIpsT67EJLHIIfeDcWEfiP+DJrZ1jfxpoAb2abeMqLx+9RuZGzQoYtYVGgAWwEM9Kek2vPIeBNAKD6ao7nw6sgvfeLZPoXkbYO/tStHJdKzk+WFSFEU2NcALJAEP6S8pcnqqBBt57dwTrzQNCIdk2SocK4dLRbD/pu/VryKnm65ZYXiJCfHJk3mx9MRSl+nSK6OqEBSoGjz0/LADddwF/HqcfK3K3O+6YUGQcmj8pZL4PhZ6KrGkb8B38FmDvvLd3XQXbvS/FQmrXFTvJNkaN/FGo83KuS43BK1UfVnIqigGkCoP5fBda2MwAGTGNKX9K9t4Bx83pMFc5KSORmWKv+8VoVggWxoaBz3/9IBh6RwLd1tebwy89xvE5z6EEpXpDfrXWfRsMs6+ekUHH6idVosno55+xQ8Zqzelh0bxtJTgCcH3Z3/Cxlx9eNIS4JIFKOAVrDqbrXRszmY55a5+niJGHtkO3b6mnIDxLa1WXc7BAe33mt2KyM4Fbc3R6/WVTQN8QhlqAtave2WsQTqzWeSlKuGUVIJRqtObpv294rS0kDN1RKzdstZTXJebR2HlzsQ4P3NbMHUqFZMZw+/IKXnh4t+lY8qocp/B1oMszR03EFs3bPeND8QkItMvllObeCz3SZAjqZrobmLcrpFyQV7mwBjg3C3C8/bc5goQhv8j/IXMLGnt4mF7tybRDG5G0polxoUScQkPvmnga2/K+aapKeqSL0BTmo1Cm5g+booNOtdyKva2KoefRURaBk7113QKo3y+WTuFKtgETIK8HRluYS9DvlcciCDvnG8UaJRfZE2siZsiTHvRmN80xkUIInHeRZl5Re/+ATL6VhKFi8CZ/n/jbFV6T5pZ+Uoppvsi3qjacVFOJgWWfdlwVHKPW/TJO3na9hRM9bS2yo2rEsC6IBzRReVO6IesJU7PItzOamr+ROFfwGZmZ7ue8HNxAgLJKb7P3p8dMqk6Be5PJaT/5Rdc1deYVihWH9cjVKc9uz5EnfHqxLUkOO8iJUENBNVf5LyNy8zjLu/78k5WNTywiPfYeX3CPk7yc6CI3lum/CEZwfUaNpcI3KsPqfn2lmz3kd/acQjKA1ebkJaiuLD+epQ/Fc1llHXXMzofWzz/Kd29SNmOhcjMWw1jq1g3YfrXZ9rzXDYW4ZttfgfMi6oCUtBs0PkMVuxmq5lxEoCaSXPSqCJJ7MlKdRDidVt0AFlxk5cTdX++sBF2+E35mjwfm8ERVxH0FvuAQtsfA4V2G0TKTUxeyRGVjd/u6F1SvuAiU2/WaQjcNCU4Ep7VunXCYSbZj3U3wzu/LWM5MPlYuyQ3FOOCD/zt7K295hY2JhwF+ODDIZ676vGQFKveEQYkWj7lkK7rVmD7MhU0Y/tF8EcTTpo4/yqOufbd/zWIpMajnbDuWK2vn6OPPtz2rc9MIBNlPd8tt+yf+7SC4wqEPbozKMCwY5Bygx4JmoIEDsixWRDcdHd6S3/dZMHXOJAAv7+NIstl00crgSqHZKAEe4g3G4dzIV51EeZB01r7p8GNlfUnG/GjZgNGsqXZdYMBVtAtFNv3hJWPve4GvqZ2XxuiNkHTz5kxWgr0PjQdJlVywJ9Zf2ZvqeeTbolKtvK54re2Lq5BoyzfsRtvDfyao3kmyFzDQ88nM+qx83w74RDlkngtYiArI05Epre3GgBeSlMig0pE6RGQaFznKkGeb0SozLCyiOtxh7hgwZlbKbClzUUfC8ntMiHUOZE375RhTy9c4DA+oMLkUDkztSybZbdmP1xpaIbjUpPAHBq3cIq+CBFzbMlMMCCkUQ6d9LGV6GYCsYiEWZIy3nBnuxOYXeU4YTGDSin9e4/pCjPtQSHlg5LMEvIlF0ElthqrF129iK2RPBEWd3XWOl3SWV5uz5VUyZYp5kEFmz7QfP/B1W1BBzQ2iTGbSVT79lUHzcGXz3PJceSgz4uknETUwo0xffpr2KUvZF0i/r2sL3IFIClYx8CbIZE6Qt7MDJbOPB3xMScwaOcWG66IJfCnDkb0D2Mb+PHzX+oiCbxeTIogtyN+s2NJirNACk/OACSOTtV6vscwbzW4M168xqaI+RzR47S1nlV/rOoZnid87n/Ima2XYa3un3BuGAisNjb8eLMT9OnMtazQROFCuO1HiZXaOc0oUDbNC4eKLToOx8DzVhMgGA8XIAQ2x3b6I0uEyLssQjJX3QphcUMx4KsMgJ+72km4N2aqkBF2coKmUEt1eqIMGn+5txMT4kYVGd3ALO+y9Z4PP3d3l48JQK8s9ZZ/Qx/+NBKgBEJFlQ32psoJiihGO7FSYM5L81q72kaAYcilEFMG+ZK1BcMqELkflyCV7v8JEXLO4Rf/oZYNZHZVjJhfL6fnpP9Tio3Euue5uS7FMkfGOeRCTrBZ06Caev7tgufeTrX34Ur/Vvc+b8ksiIShNJtuF9WmYxOZ4xg8y6zTdy3KAB2y5kYkcRnXsptWwAFyKZ2I/QGySNeoQLkINUMloC+5L3WuMMx297Q1xUYLKqZ9XHavaobo6QQv4auMm+i84IhxRpPt9nUmcav9NcjCcP+TcMmxsQZ/F3mgeoA0fQgwvTsyXuuTaM3Sqtv2jaaajmaFQpK9W6uIbeqwvSDo34ZrY6elDUHwSCjHRRmlwmyy+eOra64Ssq0XSXYljMHtKY+FShcMkHsEUY/4Bw63dJ6KpwDaxmthlDdbdE+TvYF3v33cGSKqO+1H1pKYhJMvZD5ckQcHyNF8zrtiR5b0ko6NPGoRexUZTYP6VbUdn3zzxGBOi8Z0OqHjGqYxRXwN3mYi0GYEEZYq+Q3QvdKcEHILLLj8S+VFepSfErtmfZCdvxbfIifFSpEzKi+7VJsLMT+zEFeyp1OdwRC1VZrfTLIyR7xTPUcZFYPD9qI7D70uTb4hdpqPXsJIRNYbZtNwch1OI3trh3u2ScoQyM9POnInsUa+OovcwkUP1UfIzPb95n4BaF2ev57NHAej0+BVMF9/Cj9663HN2/JN3SQgslL914bKfiTTDFAz9PlQEL/dSv1H8xl3mtWxh1McFO9EJXlRDaKQDsyKO4vOJW90NFE6yw2tjbc2GeF95sbs0I9enAa6QwQVf/kJQhAD2BzUDKggOyjy1TEhED6sfk+418lQy3c/uj8aw8UEzZ6hIMCd8RohAkumMtIj9m73l2yPWoGHVTPaywkC7Yj9tBM1NxMgcrDwRtk4RO2WHT7Ql5kQCKdJj6kNuOTeyEBYBjLMhGz+O5/YGa84HEiTYEpZ6fFzy26GG2hWtTyteuYrhSyG56BjsT/wQeLRytpTY3D7sIMqZnJ9z1FDrfyjFlGl2TNw9BQysbaxOuwYYZs/7I6BANgkqCknWZC7/BBXvaeKwAmC959I+G39BUE9bExkNlbRoFRyEtNzv+NJ91FuisG3JCS6uYBeRnfv8AkAfKTeg9EYamqnsGfAV7d0f9DghHEQ5IsPGDIUhgoSj7obM4Bu5uhQ3/CYEDTHc92AsFvDK4XGrwUeGBWBHPlS+f4x+CxmmHz2sAGmSFNt65kwZC64mnaoWlu2310laYn8r62AqsR5dfjyK18MEdurdagldzfJtjFXlZs7St4QhdPiye6TPh2/ZAQLU/Fip5s7TDEM16KtRWrK9hmxnQ7bmfa/+7pa10Z8WDPK3NuJ+NN/RAbQ5vHx2uX0Lm7/w7cAEH/hvZA+mt7J7zGw7YtQYwnNN6dpgwkGjjrS3yQoeoYt1EnczmtmJfQZWzUlP3Hlg9Wzlr9IH23q3thGth+QNEANFettxKfskkGOlLk8AqoKJwDqOxAa6UzAx07plSSyNBJSGco9zjnC5gGbDoKvsMDuBR6bGRlGzJ+hFsGa/Izt78aI+WZ6dJlZKp4pGISuv9rV0sAS0MWEwCmfauO7oQZMiakHU35LBxiyJoOMddhUWgcZuC8r4Ksvn75TTcQXLJ7kWtYhGuGqPd9dZuFjBWQHNwosXY5snbHFQq72CvHXhIg+shQxycuLOuWYErwCLZeF24b7F78pO7xw4X6lIAR02hUOf5087Rl0nOaeb6CK4i/KA/EZv76ftOWZtjwxslNr0E/u8rWUmnf3amfg6UZmBAluuoj3Dd7UV+9IAJ6iYcDfSJlgmIImohjfIUMJ27z+opj50Ak9af2LCNrWrBJvMovA1OeNO+MF/MwZvnaCxTgG7Cw4QfSPF6AYCGFt21M8PySZFeV3t2Rqqs5JMzMYzGRgq4o+UaKRgBf9GHi/9X9HXA3wxkCsd/UhnHSh2zUVDiraio/6nP4y3XJqs8ABfALAtCYU7DHPMPRjgcM6Ad/HiSXDAbOdSMkvGZPAkHs8wuQTy6X2Ov/JFvcPuKfV3/r9Q28");const t=()=>na(e),r=()=>new Set(t()),n=(e,t)=>t.forEach((t=>e.add(t)));Ba=new Map(oa(e)),Na=r(),Ra=t(),La=new Set(t().map((e=>Ra[e]))),Ra=new Set(Ra),Fa=r(),Ua=r();let i=ia(e),o=e();const a=()=>{let e=new Set;return t().forEach((t=>n(e,i[t]))),n(e,t()),e};za=aa((t=>{let r=aa(e).map((e=>e+96));if(r.length){let n=t>=o;return r[0]-=32,r=fa(r),n&&(r=`Restricted[${r}]`),{N:r,P:a(),Q:a(),M:!e(),R:n}}})),Ha=r(),Va=new Map;let s=t().concat(ja(Ha)).sort(((e,t)=>e-t));s.forEach(((t,r)=>{let n=e(),i=s[r]=n?s[r-n]:{V:[],M:new Map};i.V.push(t),Ha.has(t)||Va.set(t,i)}));for(let{V:l,M:d}of new Set(Va.values())){let e=[];for(let r of l){let t=za.filter((e=>Da(e,r))),i=e.find((({G:e})=>t.some((t=>e.has(t)))));i||(i={G:new Set,V:[]},e.push(i)),i.V.push(r),n(i.G,t)}let t=e.flatMap((e=>ja(e.G)));for(let{G:r,V:n}of e){let e=new Set(t.filter((e=>!r.has(e))));for(let t of n)d.set(t,e)}}Ka=new Set;let c=new Set;const u=e=>Ka.has(e)?c.add(e):Ka.add(e);for(let l of za){for(let e of l.P)u(e);for(let e of l.Q)u(e)}for(let l of Ka)Va.has(l)||c.has(l)||Va.set(l,1);n(Ka,Ta(Ka)),Ga=function(e){let t=[],r=na(e);return function e({S:r,B:n},i,o){if(!(4&r&&o===i[i.length-1])){2&r&&(o=i[i.length-1]),1&r&&t.push(i);for(let t of n)for(let r of t.Q)e(t,[...i,r],o)}}(function t(n){let i=e(),o=aa((()=>{let n=na(e).map((e=>r[e]));if(n.length)return t(n)}));return{S:i,B:o,Q:n}}([]),[]),t}(e).map((e=>Oa.from(e))).sort(ha),qa=new Map;for(let l of Ga){let e=[qa];for(let t of l){let r=e.map((e=>{let r=e.get(t);return r||(r=new Map,e.set(t,r)),r}));65039===t?e.push(...r):e=r}for(let t of e)t.V=l}}function Wa(e){return(Za(e)?"":`${Ja(Ya([e]))} `)+la(e)}function Ja(e){return`"${e}"\u200e`}function Ya(e,t=1/0,r=la){let n=[];var i,o;i=e[0],Qa(),(o?La.has(i):Ra.has(i))&&n.push("\u25cc"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let a=0,s=e.length;for(let c=0;c{let i=da(e),o={input:i,offset:n};n+=i.length+1;try{let e,n=o.tokens=is(i,t,r),a=n.length;if(!a)throw new Error("empty label");let s=o.output=n.flat();if(function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw new Error("underscore allowed only at start")}(s),!(o.emoji=a>1||n[0].is_emoji)&&s.every((e=>e<128)))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw new Error(`invalid label extension: "${fa(e.slice(0,4))}"`)}(s),e="ASCII";else{let t=n.flatMap((e=>e.is_emoji?[]:e));if(t.length){if(Ra.has(s[0]))throw ns("leading combining mark");for(let e=1;eDa(e,r)));if(!e.length)throw za.some((e=>Da(e,r)))?rs(t[0],r):ts(r);if(t=e,1==e.length)break}return t}(r);!function(e,t){for(let r of t)if(!Da(e,r))throw rs(e,r);if(e.M){let e=Ta(t);for(let t=1,r=e.length;t4)throw new Error(`excessive non-spacing marks: ${Ja(Ya(e.slice(t-1,n)))} (${n-t}/4)`);t=n}}}(i,t),function(e,t){let r,n=[];for(let i of t){let e=Va.get(i);if(1===e)return;if(e){let t=e.M.get(i);if(r=r?r.filter((e=>t.has(e))):ja(t),!r.length)return}else n.push(i)}if(r)for(let i of r)if(n.every((e=>Da(i,e))))throw new Error(`whole-script confusable: ${e.N}/${i.N}`)}(i,r),e=i.N}else e="Emoji"}o.type=e}catch(a){o.error=a}return o}))}function es(e){return e.map((({input:t,error:r,output:n})=>{if(r){let n=r.message;throw new Error(1==e.length?n:`Invalid label ${Ja(Ya(t,63))}: ${n}`)}return fa(n)})).join(Pa)}function ts(e){return new Error(`disallowed character: ${Wa(e)}`)}function rs(e,t){let r=Wa(t),n=za.find((e=>e.P.has(t)));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${e.N} + ${r}`)}function ns(e){return new Error(`illegal placement: ${e}`)}function is(e,t,r){let n=[],i=[];for(e=e.slice().reverse();e.length;){let o=as(e);if(o)i.length&&(n.push(t(i)),i=[]),n.push(r(o));else{let t=e.pop();if(Ka.has(t))i.push(t);else{let e=Ba.get(t);if(e)i.push(...e);else if(!Na.has(t))throw ts(t)}}}return i.length&&n.push(t(i)),n}function os(e){return e.filter((e=>65039!=e))}function as(e,t){let r,n=qa,i=e.length;for(;i&&(n=n.get(e[--i]),n);){let{V:o}=n;o&&(r=o,t&&t.push(...e.slice(i).reverse()),e.length=i)}return r}var ss,cs,us,ls=2147483647,ds=36,fs=/^xn--/,hs=/[\x2E\u3002\uFF0E\uFF61]/g,ps={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},gs=Math.floor,ms=String.fromCharCode;function ys(e){throw new RangeError(ps[e])}function bs(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function vs(e,t,r){var n=0;for(e=r?gs(e/700):e>>1,e+=gs(e/t);e>455;n+=ds)e=gs(e/35);return gs(n+36*e/(e+38))}function ws(e){var t,r,n,i,o,a,s,c,u,l,d,f=[],h=e.length,p=0,g=128,m=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&ys("not-basic"),f.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=h&&ys("invalid-input"),((c=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:ds)>=ds||c>gs((ls-p)/a))&&ys("overflow"),p+=c*a,!(c<(u=s<=m?1:s>=m+26?26:s-m));s+=ds)a>gs(ls/(l=ds-u))&&ys("overflow"),a*=l;m=vs(p-o,t=f.length+1,0==o),gs(p/t)>ls-g&&ys("overflow"),g+=gs(p/t),p%=t,f.splice(p++,0,g)}return bs(f,(function(e){var t="";return e>65535&&(t+=ms((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+ms(e)})).join("")}function As(e){return r=function(e){return fs.test(e)?ws(e.slice(4).toLowerCase()):e},n=(t=e).split("@"),i="",n.length>1&&(i=n[0]+"@",t=n[1]),i+bs((t=t.replace(hs,".")).split("."),r).join(".");var t,r,n,i}class Cs{constructor(e){this.hostname=e,this.labels=this.hostname.split(".").map(As),this.isTldAscii=!this.hostname.substring(this.hostname.lastIndexOf(".")).startsWith(".xn--"),this.isEthTld=".eth"===this.hostname.substring(this.hostname.lastIndexOf("."))}}!function(e){e[e.ZERO_ERROR=0]="ZERO_ERROR",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.INVALID_FORMAT_ERROR=3]="INVALID_FORMAT_ERROR",e[e.ILLEGAL_ARGUMENT_ERROR=4]="ILLEGAL_ARGUMENT_ERROR",e[e.MEMORY_ALLOCATION_ERROR=5]="MEMORY_ALLOCATION_ERROR"}(ss||(ss={})),function(e){e[e.ASCII=268435456]="ASCII",e[e.SINGLE_SCRIPT_RESTRICTIVE=536870912]="SINGLE_SCRIPT_RESTRICTIVE",e[e.HIGHLY_RESTRICTIVE=805306368]="HIGHLY_RESTRICTIVE",e[e.MODERATELY_RESTRICTIVE=1073741824]="MODERATELY_RESTRICTIVE",e[e.MINIMALLY_RESTRICTIVE=1342177280]="MINIMALLY_RESTRICTIVE",e[e.UNRESTRICTIVE=1610612736]="UNRESTRICTIVE",e[e.RESTRICTION_LEVEL_MASK=2130706432]="RESTRICTION_LEVEL_MASK",e[e.UNDEFINED_RESTRICTIVE=-1]="UNDEFINED_RESTRICTIVE"}(cs||(cs={})),function(e){e[e.SINGLE_SCRIPT_CONFUSABLE=1]="SINGLE_SCRIPT_CONFUSABLE",e[e.MIXED_SCRIPT_CONFUSABLE=2]="MIXED_SCRIPT_CONFUSABLE",e[e.WHOLE_SCRIPT_CONFUSABLE=4]="WHOLE_SCRIPT_CONFUSABLE",e[e.CONFUSABLE=7]="CONFUSABLE",e[e.RESTRICTION_LEVEL=16]="RESTRICTION_LEVEL",e[e.INVISIBLE=32]="INVISIBLE",e[e.CHAR_LIMIT=64]="CHAR_LIMIT",e[e.MIXED_NUMBERS=128]="MIXED_NUMBERS",e[e.ALL_CHECKS=65535]="ALL_CHECKS"}(us||(us={}));class Es{constructor(){this.checks=us.ALL_CHECKS,this.numerics=[],this.restrictionLevel=cs.HIGHLY_RESTRICTIVE}toCombinedBitmask(e){return 0!==e&&this.restrictionLevel!==cs.UNDEFINED_RESTRICTIVE?this.checks|this.restrictionLevel:this.checks}}var xs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function Ss(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Is(e,t){return e(t={exports:{}},t.exports),t.exports}var ks=Is((function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0}));Ss(ks);var _s,Ts,Ms=function(e){return e&&e.Math==Math&&e},Ps=Ms("object"==typeof globalThis&&globalThis)||Ms("object"==typeof window&&window)||Ms("object"==typeof self&&self)||Ms("object"==typeof xs&&xs)||function(){return this}()||Function("return this")(),js=Function.prototype,Ds=js.apply,Os=js.bind,Bs=js.call,Ns="object"==typeof Reflect&&Reflect.apply||(Os?Bs.bind(Ds):function(){return Bs.apply(Ds,arguments)}),Rs=Function.prototype,Ls=Rs.bind,Fs=Rs.call,Us=Ls&&Ls.bind(Fs),zs=Ls?function(e){return e&&Us(Fs,e)}:function(e){return e&&function(){return Fs.apply(e,arguments)}},Hs=function(e){return"function"==typeof e},Vs=function(e){try{return!!e()}catch(ys){return!0}},Ks=!Vs((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Gs=Function.prototype.call,qs=Gs.bind?Gs.bind(Gs):function(){return Gs.apply(Gs,arguments)},Qs={}.propertyIsEnumerable,Ws=Object.getOwnPropertyDescriptor,Js=Ws&&!Qs.call({1:2},1)?function(e){var t=Ws(this,e);return!!t&&t.enumerable}:Qs,Ys={f:Js},Zs=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$s=zs({}.toString),Xs=zs("".slice),ec=function(e){return Xs($s(e),8,-1)},tc=Ps.Object,rc=zs("".split),nc=Vs((function(){return!tc("z").propertyIsEnumerable(0)}))?function(e){return"String"==ec(e)?rc(e,""):tc(e)}:tc,ic=Ps.TypeError,oc=function(e){if(null==e)throw ic("Can't call method on "+e);return e},ac=function(e){return nc(oc(e))},sc=function(e){return"object"==typeof e?null!==e:Hs(e)},cc={},uc=function(e){return Hs(e)?e:void 0},lc=function(e,t){return arguments.length<2?uc(cc[e])||uc(Ps[e]):cc[e]&&cc[e][t]||Ps[e]&&Ps[e][t]},dc=zs({}.isPrototypeOf),fc=lc("navigator","userAgent")||"",hc=Ps.process,pc=Ps.Deno,gc=hc&&hc.versions||pc&&pc.version,mc=gc&&gc.v8;mc&&(Ts=(_s=mc.split("."))[0]>0&&_s[0]<4?1:+(_s[0]+_s[1])),!Ts&&fc&&(!(_s=fc.match(/Edge\/(\d+)/))||_s[1]>=74)&&(_s=fc.match(/Chrome\/(\d+)/))&&(Ts=+_s[1]);var yc=Ts,bc=!!Object.getOwnPropertySymbols&&!Vs((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yc&&yc<41})),vc=bc&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wc=Ps.Object,Ac=vc?function(e){return"symbol"==typeof e}:function(e){var t=lc("Symbol");return Hs(t)&&dc(t.prototype,wc(e))},Cc=Ps.String,Ec=function(e){try{return Cc(e)}catch(ys){return"Object"}},xc=Ps.TypeError,Sc=function(e){if(Hs(e))return e;throw xc(Ec(e)+" is not a function")},Ic=function(e,t){var r=e[t];return null==r?void 0:Sc(r)},kc=Ps.TypeError,_c=Object.defineProperty,Tc="__core-js_shared__",Mc=Ps[Tc]||function(e,t){try{_c(Ps,e,{value:t,configurable:!0,writable:!0})}catch(ys){Ps[e]=t}return t}(Tc,{}),Pc=Mc,jc=Is((function(e){(e.exports=function(e,t){return Pc[e]||(Pc[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.3",mode:"pure",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})})),Dc=Ps.Object,Oc=function(e){return Dc(oc(e))},Bc=zs({}.hasOwnProperty),Nc=Object.hasOwn||function(e,t){return Bc(Oc(e),t)},Rc=0,Lc=Math.random(),Fc=zs(1..toString),Uc=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Fc(++Rc+Lc,36)},zc=jc("wks"),Hc=Ps.Symbol,Vc=Hc&&Hc.for,Kc=vc?Hc:Hc&&Hc.withoutSetter||Uc,Gc=function(e){if(!Nc(zc,e)||!bc&&"string"!=typeof zc[e]){var t="Symbol."+e;bc&&Nc(Hc,e)?zc[e]=Hc[e]:zc[e]=vc&&Vc?Vc(t):Kc(t)}return zc[e]},qc=Ps.TypeError,Qc=Gc("toPrimitive"),Wc=function(e,t){if(!sc(e)||Ac(e))return e;var r,n=Ic(e,Qc);if(n){if(void 0===t&&(t="default"),r=qs(n,e,t),!sc(r)||Ac(r))return r;throw qc("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&Hs(r=e.toString)&&!sc(n=qs(r,e)))return n;if(Hs(r=e.valueOf)&&!sc(n=qs(r,e)))return n;if("string"!==t&&Hs(r=e.toString)&&!sc(n=qs(r,e)))return n;throw kc("Can't convert object to primitive value")}(e,t)},Jc=function(e){var t=Wc(e,"string");return Ac(t)?t:t+""},Yc=Ps.document,Zc=sc(Yc)&&sc(Yc.createElement),$c=function(e){return Zc?Yc.createElement(e):{}},Xc=!Ks&&!Vs((function(){return 7!=Object.defineProperty($c("div"),"a",{get:function(){return 7}}).a})),eu=Object.getOwnPropertyDescriptor,tu=Ks?eu:function(e,t){if(e=ac(e),t=Jc(t),Xc)try{return eu(e,t)}catch(ys){}if(Nc(e,t))return Zs(!qs(Ys.f,e,t),e[t])},ru={f:tu},nu=/#|\.prototype\./,iu=function(e,t){var r=au[ou(e)];return r==cu||r!=su&&(Hs(t)?Vs(t):!!t)},ou=iu.normalize=function(e){return String(e).replace(nu,".").toLowerCase()},au=iu.data={},su=iu.NATIVE="N",cu=iu.POLYFILL="P",uu=iu,lu=zs(zs.bind),du=function(e,t){return Sc(e),void 0===t?e:lu?lu(e,t):function(){return e.apply(t,arguments)}},fu=Ps.String,hu=Ps.TypeError,pu=function(e){if(sc(e))return e;throw hu(fu(e)+" is not an object")},gu=Ps.TypeError,mu=Object.defineProperty,yu=Ks?mu:function(e,t,r){if(pu(e),t=Jc(t),pu(r),Xc)try{return mu(e,t,r)}catch(ys){}if("get"in r||"set"in r)throw gu("Accessors not supported");return"value"in r&&(e[t]=r.value),e},bu={f:yu},vu=Ks?function(e,t,r){return bu.f(e,t,Zs(1,r))}:function(e,t,r){return e[t]=r,e},wu=ru.f,Au=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return Ns(e,this,arguments)};return t.prototype=e.prototype,t},Cu=function(e,t){var r,n,i,o,a,s,c,u,l=e.target,d=e.global,f=e.stat,h=e.proto,p=d?Ps:f?Ps[l]:(Ps[l]||{}).prototype,g=d?cc:cc[l]||vu(cc,l,{})[l],m=g.prototype;for(i in t)r=!uu(d?i:l+(f?".":"#")+i,e.forced)&&p&&Nc(p,i),a=g[i],r&&(s=e.noTargetGet?(u=wu(p,i))&&u.value:p[i]),o=r&&s?s:t[i],r&&typeof a==typeof o||(c=e.bind&&r?du(o,Ps):e.wrap&&r?Au(o):h&&Hs(o)?zs(o):o,(e.sham||o&&o.sham||a&&a.sham)&&vu(c,"sham",!0),vu(g,i,c),h&&(Nc(cc,n=l+"Prototype")||vu(cc,n,{}),vu(cc[n],i,o),e.real&&m&&!m[i]&&vu(m,i,o)))};Cu({target:"Object",stat:!0,forced:!Ks,sham:!Ks},{defineProperty:bu.f});var Eu=Is((function(e){var t=cc.Object,r=e.exports=function(e,r,n){return t.defineProperty(e,r,n)};t.defineProperty.sham&&(r.sham=!0)})),xu=Eu,Su={},Iu=zs(Function.toString);Hs(Pc.inspectSource)||(Pc.inspectSource=function(e){return Iu(e)});var ku,_u,Tu,Mu=Pc.inspectSource,Pu=Ps.WeakMap,ju=Hs(Pu)&&/native code/.test(Mu(Pu)),Du=jc("keys"),Ou=function(e){return Du[e]||(Du[e]=Uc(e))},Bu={},Nu="Object already initialized",Ru=Ps.TypeError,Lu=Ps.WeakMap;if(ju||Pc.state){var Fu=Pc.state||(Pc.state=new Lu),Uu=zs(Fu.get),zu=zs(Fu.has),Hu=zs(Fu.set);ku=function(e,t){if(zu(Fu,e))throw new Ru(Nu);return t.facade=e,Hu(Fu,e,t),t},_u=function(e){return Uu(Fu,e)||{}},Tu=function(e){return zu(Fu,e)}}else{var Vu=Ou("state");Bu[Vu]=!0,ku=function(e,t){if(Nc(e,Vu))throw new Ru(Nu);return t.facade=e,vu(e,Vu,t),t},_u=function(e){return Nc(e,Vu)?e[Vu]:{}},Tu=function(e){return Nc(e,Vu)}}var Ku,Gu={set:ku,get:_u,has:Tu,enforce:function(e){return Tu(e)?_u(e):ku(e,{})},getterFor:function(e){return function(t){var r;if(!sc(t)||(r=_u(t)).type!==e)throw Ru("Incompatible receiver, "+e+" required");return r}}},qu=Function.prototype,Qu=Ks&&Object.getOwnPropertyDescriptor,Wu=Nc(qu,"name"),Ju={EXISTS:Wu,PROPER:Wu&&"something"===function(){}.name,CONFIGURABLE:Wu&&(!Ks||Ks&&Qu(qu,"name").configurable)},Yu=Math.ceil,Zu=Math.floor,$u=function(e){var t=+e;return t!=t||0===t?0:(t>0?Zu:Yu)(t)},Xu=Math.max,el=Math.min,tl=function(e,t){var r=$u(e);return r<0?Xu(r+t,0):el(r,t)},rl=Math.min,nl=function(e){return(t=e.length)>0?rl($u(t),9007199254740991):0;var t},il=function(e){return function(t,r,n){var i,o=ac(t),a=nl(o),s=tl(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},ol={includes:il(!0),indexOf:il(!1)},al=ol.indexOf,sl=zs([].push),cl=function(e,t){var r,n=ac(e),i=0,o=[];for(r in n)!Nc(Bu,r)&&Nc(n,r)&&sl(o,r);for(;t.length>i;)Nc(n,r=t[i++])&&(~al(o,r)||sl(o,r));return o},ul=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ll=Object.keys||function(e){return cl(e,ul)},dl=Ks?Object.defineProperties:function(e,t){pu(e);for(var r,n=ac(t),i=ll(t),o=i.length,a=0;o>a;)bu.f(e,r=i[a++],n[r]);return e},fl=lc("document","documentElement"),hl="prototype",pl="script",gl=Ou("IE_PROTO"),ml=function(){},yl=function(e){return"<"+pl+">"+e+""},bl=function(e){e.write(yl("")),e.close();var t=e.parentWindow.Object;return e=null,t},vl=function(){try{Ku=new ActiveXObject("htmlfile")}catch(ys){}var e,t,r;vl="undefined"!=typeof document?document.domain&&Ku?bl(Ku):(t=$c("iframe"),r="java"+pl+":",t.style.display="none",fl.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(yl("document.F=Object")),e.close(),e.F):bl(Ku);for(var n=ul.length;n--;)delete vl[hl][ul[n]];return vl()};Bu[gl]=!0;var wl,Al,Cl,El=Object.create||function(e,t){var r;return null!==e?(ml[hl]=pu(e),r=new ml,ml[hl]=null,r[gl]=e):r=vl(),void 0===t?r:dl(r,t)},xl=!Vs((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Sl=Ou("IE_PROTO"),Il=Ps.Object,kl=Il.prototype,_l=xl?Il.getPrototypeOf:function(e){var t=Oc(e);if(Nc(t,Sl))return t[Sl];var r=t.constructor;return Hs(r)&&t instanceof r?r.prototype:t instanceof Il?kl:null},Tl=function(e,t,r,n){n&&n.enumerable?e[t]=r:vu(e,t,r)},Ml=Gc("iterator"),Pl=!1;[].keys&&("next"in(Cl=[].keys())?(Al=_l(_l(Cl)))!==Object.prototype&&(wl=Al):Pl=!0);var jl=null==wl||Vs((function(){var e={};return wl[Ml].call(e)!==e}));wl=jl?{}:El(wl),Hs(wl[Ml])||Tl(wl,Ml,(function(){return this}));var Dl={IteratorPrototype:wl,BUGGY_SAFARI_ITERATORS:Pl},Ol={};Ol[Gc("toStringTag")]="z";var Bl="[object z]"===String(Ol),Nl=Gc("toStringTag"),Rl=Ps.Object,Ll="Arguments"==ec(function(){return arguments}()),Fl=Bl?ec:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(ys){}}(t=Rl(e),Nl))?r:Ll?ec(t):"Object"==(n=ec(t))&&Hs(t.callee)?"Arguments":n},Ul=Bl?{}.toString:function(){return"[object "+Fl(this)+"]"},zl=bu.f,Hl=Gc("toStringTag"),Vl=function(e,t,r,n){if(e){var i=r?e:e.prototype;Nc(i,Hl)||zl(i,Hl,{configurable:!0,value:t}),n&&!Bl&&vu(i,"toString",Ul)}},Kl=Dl.IteratorPrototype,Gl=function(){return this},ql=Ps.String,Ql=Ps.TypeError,Wl=(Object.setPrototypeOf||"__proto__"in{}&&function(){var e,t=!1,r={};try{(e=zs(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(ys){}}(),Ju.PROPER),Jl=Dl.BUGGY_SAFARI_ITERATORS,Yl=Gc("iterator"),Zl="keys",$l="values",Xl="entries",ed=function(){return this},td=function(e,t,r,n,i,o,a){!function(e,t,r){var n=t+" Iterator";e.prototype=El(Kl,{next:Zs(1,r)}),Vl(e,n,!1,!0),Su[n]=Gl}(r,t,n);var s,c,u,l=function(e){if(e===i&&g)return g;if(!Jl&&e in h)return h[e];switch(e){case Zl:case $l:case Xl:return function(){return new r(this,e)}}return function(){return new r(this)}},d=t+" Iterator",f=!1,h=e.prototype,p=h[Yl]||h["@@iterator"]||i&&h[i],g=!Jl&&p||l(i),m="Array"==t&&h.entries||p;if(m&&(s=_l(m.call(new e)))!==Object.prototype&&s.next&&(Vl(s,d,!0,!0),Su[d]=ed),Wl&&i==$l&&p&&p.name!==$l&&(f=!0,g=function(){return qs(p,this)}),i)if(c={values:l($l),keys:o?g:l(Zl),entries:l(Xl)},a)for(u in c)(Jl||f||!(u in h))&&Tl(h,u,c[u]);else Cu({target:t,proto:!0,forced:Jl||f},c);return a&&h[Yl]!==g&&Tl(h,Yl,g,{name:i}),Su[t]=g,c},rd="Array Iterator",nd=Gu.set,id=Gu.getterFor(rd);td(Array,"Array",(function(e,t){nd(this,{type:rd,target:ac(e),index:0,kind:t})}),(function(){var e=id(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");Su.Arguments=Su.Array;var od=Ps.String,ad=function(e){if("Symbol"===Fl(e))throw TypeError("Cannot convert a Symbol value to a string");return od(e)},sd=zs("".charAt),cd=zs("".charCodeAt),ud=zs("".slice),ld=function(e){return function(t,r){var n,i,o=ad(oc(t)),a=$u(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=cd(o,a))<55296||n>56319||a+1===s||(i=cd(o,a+1))<56320||i>57343?e?sd(o,a):n:e?ud(o,a,a+2):i-56320+(n-55296<<10)+65536}},dd={codeAt:ld(!1),charAt:ld(!0)}.charAt,fd="String Iterator",hd=Gu.set,pd=Gu.getterFor(fd);td(String,"String",(function(e){hd(this,{type:fd,string:ad(e),index:0})}),(function(){var e,t=pd(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=dd(r,n),t.index+=e.length,{value:e,done:!1})}));var gd=Gc("iterator"),md=function(e){if(null!=e)return Ic(e,gd)||Ic(e,"@@iterator")||Su[Fl(e)]},yd=Ps.TypeError,bd=function(e,t){var r=arguments.length<2?md(e):t;if(Sc(r))return pu(qs(r,e));throw yd(Ec(e)+" is not iterable")},vd=bd,wd=Gc("toStringTag");for(var Ad in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Cd=Ps[Ad],Ed=Cd&&Cd.prototype;Ed&&Fl(Ed)!==wd&&vu(Ed,wd,Ad),Su[Ad]=Su.Array}var xd=vd,Sd=Array.isArray||function(e){return"Array"==ec(e)};Cu({target:"Array",stat:!0},{isArray:Sd});var Id=cc.Array.isArray,kd=Id,_d=md,Td=function(e,t,r){var n=Jc(t);n in e?bu.f(e,n,Zs(0,r)):e[n]=r},Md=function(){},Pd=[],jd=lc("Reflect","construct"),Dd=/^\s*(?:class|function)\b/,Od=zs(Dd.exec),Bd=!Dd.exec(Md),Nd=function(e){if(!Hs(e))return!1;try{return jd(Md,Pd,e),!0}catch(ys){return!1}},Rd=!jd||Vs((function(){var e;return Nd(Nd.call)||!Nd(Object)||!Nd((function(){e=!0}))||e}))?function(e){if(!Hs(e))return!1;switch(Fl(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Bd||!!Od(Dd,Mu(e))}:Nd,Ld=Gc("species"),Fd=Ps.Array,Ud=function(e,t){return new(function(e){var t;return Sd(e)&&(t=e.constructor,(Rd(t)&&(t===Fd||Sd(t.prototype))||sc(t)&&null===(t=t[Ld]))&&(t=void 0)),void 0===t?Fd:t}(e))(0===t?0:t)},zd=Gc("species"),Hd=function(e){return yc>=51||!Vs((function(){var t=[];return(t.constructor={})[zd]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Vd=Gc("isConcatSpreadable"),Kd=9007199254740991,Gd="Maximum allowed index exceeded",qd=Ps.TypeError,Qd=yc>=51||!Vs((function(){var e=[];return e[Vd]=!1,e.concat()[0]!==e})),Wd=Hd("concat"),Jd=function(e){if(!sc(e))return!1;var t=e[Vd];return void 0!==t?!!t:Sd(e)};Cu({target:"Array",proto:!0,forced:!Qd||!Wd},{concat:function(e){var t,r,n,i,o,a=Oc(this),s=Ud(a,0),c=0;for(t=-1,n=arguments.length;tKd)throw qd(Gd);for(r=0;r=Kd)throw qd(Gd);Td(s,c++,o)}return s.length=c,s}});var Yd=ul.concat("length","prototype"),Zd=Object.getOwnPropertyNames||function(e){return cl(e,Yd)},$d={f:Zd},Xd=zs([].slice),ef=$d.f,tf="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rf={f:function(e){return tf&&"Window"==ec(e)?function(e){try{return ef(e)}catch(ys){return Xd(tf)}}(e):ef(ac(e))}},nf={f:Object.getOwnPropertySymbols},of={f:Gc},af=bu.f,sf=function(e){var t=cc.Symbol||(cc.Symbol={});Nc(t,e)||af(t,e,{value:of.f(e)})},cf=zs([].push),uf=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(c,u,l,d){for(var f,h,p=Oc(c),g=nc(p),m=du(u,l),y=nl(g),b=0,v=d||Ud,w=t?v(c,y):r||a?v(c,0):void 0;y>b;b++)if((s||b in g)&&(h=m(f=g[b],b,p),e))if(t)w[b]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return b;case 2:cf(w,f)}else switch(e){case 4:return!1;case 7:cf(w,f)}return o?-1:n||i?i:w}},lf={forEach:uf(0),map:uf(1),filter:uf(2),some:uf(3),every:uf(4),find:uf(5),findIndex:uf(6),filterReject:uf(7)},df=lf.forEach,ff=Ou("hidden"),hf="Symbol",pf="prototype",gf=Gc("toPrimitive"),mf=Gu.set,yf=Gu.getterFor(hf),bf=Object[pf],vf=Ps.Symbol,wf=vf&&vf[pf],Af=Ps.TypeError,Cf=Ps.QObject,Ef=lc("JSON","stringify"),xf=ru.f,Sf=bu.f,If=rf.f,kf=Ys.f,_f=zs([].push),Tf=jc("symbols"),Mf=jc("op-symbols"),Pf=jc("string-to-symbol-registry"),jf=jc("symbol-to-string-registry"),Df=jc("wks"),Of=!Cf||!Cf[pf]||!Cf[pf].findChild,Bf=Ks&&Vs((function(){return 7!=El(Sf({},"a",{get:function(){return Sf(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=xf(bf,t);n&&delete bf[t],Sf(e,t,r),n&&e!==bf&&Sf(bf,t,n)}:Sf,Nf=function(e,t){var r=Tf[e]=El(wf);return mf(r,{type:hf,tag:e,description:t}),Ks||(r.description=t),r},Rf=function(e,t,r){e===bf&&Rf(Mf,t,r),pu(e);var n=Jc(t);return pu(r),Nc(Tf,n)?(r.enumerable?(Nc(e,ff)&&e[ff][n]&&(e[ff][n]=!1),r=El(r,{enumerable:Zs(0,!1)})):(Nc(e,ff)||Sf(e,ff,Zs(1,{})),e[ff][n]=!0),Bf(e,n,r)):Sf(e,n,r)},Lf=function(e,t){pu(e);var r=ac(t),n=ll(r).concat(Hf(r));return df(n,(function(t){Ks&&!qs(Ff,r,t)||Rf(e,t,r[t])})),e},Ff=function(e){var t=Jc(e),r=qs(kf,this,t);return!(this===bf&&Nc(Tf,t)&&!Nc(Mf,t))&&(!(r||!Nc(this,t)||!Nc(Tf,t)||Nc(this,ff)&&this[ff][t])||r)},Uf=function(e,t){var r=ac(e),n=Jc(t);if(r!==bf||!Nc(Tf,n)||Nc(Mf,n)){var i=xf(r,n);return!i||!Nc(Tf,n)||Nc(r,ff)&&r[ff][n]||(i.enumerable=!0),i}},zf=function(e){var t=If(ac(e)),r=[];return df(t,(function(e){Nc(Tf,e)||Nc(Bu,e)||_f(r,e)})),r},Hf=function(e){var t=e===bf,r=If(t?Mf:ac(e)),n=[];return df(r,(function(e){!Nc(Tf,e)||t&&!Nc(bf,e)||_f(n,Tf[e])})),n};if(bc||(wf=(vf=function(){if(dc(wf,this))throw Af("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?ad(arguments[0]):void 0,t=Uc(e),r=function(e){this===bf&&qs(r,Mf,e),Nc(this,ff)&&Nc(this[ff],t)&&(this[ff][t]=!1),Bf(this,t,Zs(1,e))};return Ks&&Of&&Bf(bf,t,{configurable:!0,set:r}),Nf(t,e)})[pf],Tl(wf,"toString",(function(){return yf(this).tag})),Tl(vf,"withoutSetter",(function(e){return Nf(Uc(e),e)})),Ys.f=Ff,bu.f=Rf,ru.f=Uf,$d.f=rf.f=zf,nf.f=Hf,of.f=function(e){return Nf(Gc(e),e)},Ks&&Sf(wf,"description",{configurable:!0,get:function(){return yf(this).description}})),Cu({global:!0,wrap:!0,forced:!bc,sham:!bc},{Symbol:vf}),df(ll(Df),(function(e){sf(e)})),Cu({target:hf,stat:!0,forced:!bc},{for:function(e){var t=ad(e);if(Nc(Pf,t))return Pf[t];var r=vf(t);return Pf[t]=r,jf[r]=t,r},keyFor:function(e){if(!Ac(e))throw Af(e+" is not a symbol");if(Nc(jf,e))return jf[e]},useSetter:function(){Of=!0},useSimple:function(){Of=!1}}),Cu({target:"Object",stat:!0,forced:!bc,sham:!Ks},{create:function(e,t){return void 0===t?El(e):Lf(El(e),t)},defineProperty:Rf,defineProperties:Lf,getOwnPropertyDescriptor:Uf}),Cu({target:"Object",stat:!0,forced:!bc},{getOwnPropertyNames:zf,getOwnPropertySymbols:Hf}),Cu({target:"Object",stat:!0,forced:Vs((function(){nf.f(1)}))},{getOwnPropertySymbols:function(e){return nf.f(Oc(e))}}),Ef){var Vf=!bc||Vs((function(){var e=vf();return"[null]"!=Ef([e])||"{}"!=Ef({a:e})||"{}"!=Ef(Object(e))}));Cu({target:"JSON",stat:!0,forced:Vf},{stringify:function(e,t,r){var n=Xd(arguments),i=t;if((sc(t)||void 0!==e)&&!Ac(e))return Sd(t)||(t=function(e,t){if(Hs(i)&&(t=qs(i,this,e,t)),!Ac(t))return t}),n[1]=t,Ns(Ef,null,n)}})}if(!wf[gf]){var Kf=wf.valueOf;Tl(wf,gf,(function(e){return qs(Kf,this)}))}Vl(vf,hf),Bu[ff]=!0,sf("asyncIterator"),sf("hasInstance"),sf("isConcatSpreadable"),sf("iterator"),sf("match"),sf("matchAll"),sf("replace"),sf("search"),sf("species"),sf("split"),sf("toPrimitive"),sf("toStringTag"),sf("unscopables"),Vl(Ps.JSON,"JSON",!0);var Gf=cc.Symbol,qf=Gf,Qf=function(e,t,r,n){try{return n?t(pu(r)[0],r[1]):t(r)}catch(ys){!function(e,r,n){var i,o;pu(e);try{if(!(i=Ic(e,"return"))){if("throw"===r)throw n;return n}i=qs(i,e)}catch(t){o=!0,i=t}if("throw"===r)throw n;if(o)throw i;pu(i)}(e,"throw",ys)}},Wf=Gc("iterator"),Jf=Array.prototype,Yf=Ps.Array,Zf=Gc("iterator"),$f=!function(e,t){if(!t)return!1;var r=!1;try{var n={};n[Zf]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(ys){}return r}((function(e){}));Cu({target:"Array",stat:!0,forced:$f},{from:function(e){var t=Oc(e),r=Rd(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=du(i,n>2?arguments[2]:void 0));var a,s,c,u,l,d,f,h=md(t),p=0;if(h&&(this!=Yf||(void 0===(f=h)||Su.Array!==f&&Jf[Wf]!==f)))for(l=(u=bd(t,h)).next,s=r?new this:[];!(c=qs(l,u)).done;p++)d=o?Qf(u,i,[c.value,p],!0):c.value,Td(s,p,d);else for(a=nl(t),s=r?new this(a):Yf(a);a>p;p++)d=o?i(t[p],p):t[p],Td(s,p,d);return s.length=p,s}});var Xf=cc.Array.from,eh=Xf,th=function(e){return cc[e+"Prototype"]},rh=th("Array").concat,nh=Array.prototype,ih=function(e){var t=e.concat;return e===nh||dc(nh,e)&&t===nh.concat?rh:t},oh=function(e,t){var r=[][e];return!!r&&Vs((function(){r.call(null,t||function(){throw 1},1)}))},ah=ol.indexOf,sh=zs([].indexOf),ch=!!sh&&1/sh([1],1,-0)<0,uh=oh("indexOf");Cu({target:"Array",proto:!0,forced:ch||!uh},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return ch?sh(this,e,t)||0:ah(this,e,t)}});var lh=th("Array").indexOf,dh=Array.prototype,fh=function(e){var t=e.indexOf;return e===dh||dc(dh,e)&&t===dh.indexOf?lh:t};Cu({target:"Object",stat:!0,sham:!Ks},{create:El});var hh=cc.Object,ph=function(e,t){return hh.create(e,t)},gh=ph,mh=Id,yh=Is((function(e){e.exports=function(e){if(mh(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0}));Ss(yh),sf("asyncDispose"),sf("dispose"),sf("matcher"),sf("metadata"),sf("observable"),sf("patternMatch"),sf("replaceAll");var bh=Gf,vh=Is((function(e){e.exports=function(e,t){var r=null==e?null:void 0!==bh&&_d(e)||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}},e.exports.default=e.exports,e.exports.__esModule=!0}));Ss(vh);var wh=Hd("slice"),Ah=Gc("species"),Ch=Ps.Array,Eh=Math.max;Cu({target:"Array",proto:!0,forced:!wh},{slice:function(e,t){var r,n,i,o=ac(this),a=nl(o),s=tl(e,a),c=tl(void 0===t?a:t,a);if(Sd(o)&&(r=o.constructor,(Rd(r)&&(r===Ch||Sd(r.prototype))||sc(r)&&null===(r=r[Ah]))&&(r=void 0),r===Ch||void 0===r))return Xd(o,s,c);for(n=new(void 0===r?Ch:r)(Eh(c-s,0)),i=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?arguments[1]:void 0)};Cu({target:"Array",proto:!0,forced:[].forEach!=Oh},{forEach:Oh});var Bh=th("Array").forEach,Nh=Array.prototype,Rh={DOMTokenList:!0,NodeList:!0},Lh=function(e){var t=e.forEach;return e===Nh||dc(Nh,e)&&t===Nh.forEach||Nc(Rh,Fl(e))?Bh:t},Fh=ol.includes;Cu({target:"Array",proto:!0},{includes:function(e){return Fh(this,e,arguments.length>1?arguments[1]:void 0)}});var Uh=th("Array").includes,zh=Gc("match"),Hh=Ps.TypeError,Vh=function(e){if(function(e){var t;return sc(e)&&(void 0!==(t=e[zh])?!!t:"RegExp"==ec(e))}(e))throw Hh("The method doesn't accept regular expressions");return e},Kh=Gc("match"),Gh=zs("".indexOf);Cu({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Kh]=!1,"/./"[e](t)}catch(n){}}return!1}("includes")},{includes:function(e){return!!~Gh(ad(oc(this)),ad(Vh(e)),arguments.length>1?arguments[1]:void 0)}});var qh=th("String").includes,Qh=Array.prototype,Wh=String.prototype,Jh=function(e){var t=e.includes;return e===Qh||dc(Qh,e)&&t===Qh.includes?Uh:"string"==typeof e||e===Wh||dc(Wh,e)&&t===Wh.includes?qh:t},Yh="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff",Zh=zs("".replace),$h="["+Yh+"]",Xh=RegExp("^"+$h+$h+"*"),ep=RegExp($h+$h+"*$"),tp=function(e){return function(t){var r=ad(oc(t));return 1&e&&(r=Zh(r,Xh,"")),2&e&&(r=Zh(r,ep,"")),r}},rp={start:tp(1),end:tp(2),trim:tp(3)}.trim,np=Ps.parseInt,ip=Ps.Symbol,op=ip&&ip.iterator,ap=/^[+-]?0x/i,sp=zs(ap.exec),cp=8!==np(Yh+"08")||22!==np(Yh+"0x16")||op&&!Vs((function(){np(Object(op))}))?function(e,t){var r=rp(ad(e));return np(r,t>>>0||(sp(ap,r)?16:10))}:np;Cu({global:!0,forced:parseInt!=cp},{parseInt:cp});var up=cc.parseInt,lp=Ih,dp=Math.floor,fp=function(e,t){var r=e.length,n=dp(r/2);return r<8?hp(e,t):pp(e,fp(Xd(e,0,n),t),fp(Xd(e,n),t),t)},hp=function(e,t){for(var r,n,i=e.length,o=1;o0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},pp=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a3)){if(bp)return!0;if(wp)return wp<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)Ap.push({k:t+n,v:r})}for(Ap.sort((function(e,t){return t.v-e.v})),n=0;nad(r)?1:-1}}(e)),r=i.length,n=0;n=e.length?{done:!0}:{done:!1,value:e[c++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,d=!0,f=!1;return{s:function(){s=(0,r.default)(e)},n:function(){var e=s.next();return d=e.done,e},e:function(e){f=!0,l=e},f:function(){try{d||null==s.return||s.return()}finally{if(f)throw l}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r|(\d\d?|[\s\S]))/g,M=void 0===A.exec.call(/()??/,"")[1],P=void 0!==(0,m.default)(/x/),j={}.toString;function D(e){var t=!0;try{if("y"===e){".."===".a".replace(new RegExp("a","gy"),".")&&(t=!1)}}catch(r){t=!1}return t}var O=D("u"),B=D("y"),N={g:!0,i:!0,m:!0,u:O,y:B};function R(e,t,r,n,i){var o;if(e[v]={captureNames:t},i)return e;if(e.__proto__)e.__proto__=Z.prototype;else for(var a in Z.prototype)e[a]=Z.prototype[a];return e[v].source=r,e[v].flags=n?(0,g.default)(o=n.split("")).call(o).join(""):n,e}function L(e){return A.replace.call(e,/([\s\S])(?=[\s\S]*\1)/g,"")}function F(e,t){var r;if(!Z.isRegExp(e))throw new TypeError("Type RegExp expected");var n=e[v]||{},i=function(e){return P?(0,m.default)(e):A.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(e))[1]}(e),o="",a="",s=null,c=null;return(t=t||{}).removeG&&(a+="g"),t.removeY&&(a+="y"),a&&(i=A.replace.call(i,new RegExp("[".concat(a,"]+"),"g"),"")),t.addG&&(o+="g"),t.addY&&(o+="y"),o&&(i=L(i+o)),t.isInternalOnly||(void 0!==n.source&&(s=n.source),null!=(0,m.default)(n)&&(c=o?L((0,m.default)(n)+o):(0,m.default)(n))),e=R(new RegExp(t.source||e.source,i),function(e){return!(!e[v]||!e[v].captureNames)}(e)?(0,p.default)(r=n.captureNames).call(r,0):null,s,c,t.isInternalOnly)}function U(e){return(0,h.default)(e,16)}function z(e,t,r){return"("===e.input[e.index-1]||")"===e.input[e.index+e[0].length]||"|"===e.input[e.index-1]||"|"===e.input[e.index+e[0].length]||e.index<1||e.index+e[0].length>=e.input.length||A.test.call(/^\(\?[:=!]/,e.input.substr(e.index-3,3))||function(e,t,r){return A.test.call((0,f.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,p.default)(e).call(e,t))}(e.input,e.index+e[0].length,r)?"":"(?:)"}function H(e){return(0,h.default)(e,10).toString(16)}function V(e,t){return j.call(e)==="[object ".concat(t,"]")}function K(e){for(;e.length<4;)e="0".concat(e);return e}function G(e){var t={};return V(e,"String")?((0,d.default)(Z).call(Z,e,/[^\s,]+/,(function(e){t[e]=!0})),t):e}function q(e){if(!/^[\w$]$/.test(e))throw new Error("Flag must be a single character A-Za-z0-9_$");N[e]=!0}function Q(e,t,r,n,i){for(var o,a,s=S.length,c=e[r],u=null;s--;)if(!((a=S[s]).leadChar&&a.leadChar!==c||a.scope!==n&&"all"!==a.scope||a.flag&&!(0,f.default)(t).call(t,a.flag))&&(o=Z.exec(e,a.regex,r,"sticky"))){u={matchLength:o[0].length,output:a.handler.call(i,o,n,t),reparse:a.reparse};break}return u}function W(e){w.astral=e}function J(e){w.namespacing=e}function Y(e){if(null==e)throw new TypeError("Cannot convert null or undefined to object");return e}function Z(e,t){if(Z.isRegExp(e)){if(void 0!==t)throw new TypeError("Cannot supply flags when copying a RegExp");return F(e)}if(e=void 0===e?"":String(e),t=void 0===t?"":String(t),Z.isInstalled("astral")&&!(0,f.default)(t).call(t,"A")&&(t+="A"),x[e]||(x[e]={}),!x[e][t]){for(var r,n={hasNamedCapture:!1,captureNames:[]},i=I,o="",a=0,s=function(e,t){if(L(t)!==t)throw new SyntaxError("Invalid duplicate regex flag ".concat(t));e=A.replace.call(e,/^\(\?([\w$]+)\)/,(function(e,r){if(A.test.call(/[gy]/,r))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(e));return t=L(t+r),""}));var r,n=y(t);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(!N[i])throw new SyntaxError("Unknown regex flag ".concat(i))}}catch(o){n.e(o)}finally{n.f()}return{pattern:e,flags:t}}(e,t),c=s.pattern,u=(0,m.default)(s);a")}else if(r)return"\\".concat(+r+n);return e}if(!V(e,"Array")||!e.length)throw new TypeError("Must provide a nonempty array of patterns to merge");var c,u=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,l=[],d=y(e);try{for(d.s();!(c=d.n()).done;){var f=c.value;Z.isRegExp(f)?(n=a,i=f[v]&&f[v].captureNames||[],l.push(A.replace.call(Z(f.source).source,u,s))):l.push(Z.escape(f))}}catch(p){d.e(p)}finally{d.f()}var h="none"===o?"":"|";return Z(l.join(h),t)},C.exec=function(e){var t=this.lastIndex,r=A.exec.apply(this,arguments);if(r){if(!M&&r.length>1&&(0,f.default)(r).call(r,"")){var n,i=F(this,{removeG:!0,isInternalOnly:!0});A.replace.call((0,p.default)(n=String(e)).call(n,r.index),i,(function(){for(var e=arguments.length,t=1;tr.index&&(this.lastIndex=r.index)}return this.global||(this.lastIndex=t),r},C.test=function(e){return!!C.exec.call(this,e)},C.match=function(e){if(Z.isRegExp(e)){if(e.global){var t=A.match.apply(this,arguments);return e.lastIndex=0,t}}else e=new RegExp(e);return C.exec.call(e,Y(this))},C.replace=function(e,t){var r,n,i,o=Z.isRegExp(e);return o?(e[v]&&(n=e[v].captureNames),r=e.lastIndex):e+="",i=V(t,"Function")?A.replace.call(String(this),e,(function(){for(var e=arguments.length,r=new Array(e),i=0;ir.length-3)throw new SyntaxError("Backreference to undefined group ".concat(e));return r[o]||""}throw new SyntaxError("Invalid token ".concat(e))}))})),o&&(e.global?e.lastIndex=0:e.lastIndex=r),i},C.split=function(e,t){if(!Z.isRegExp(e))return A.split.apply(this,arguments);var r,n=String(this),i=[],o=e.lastIndex,a=0;return t=(void 0===t?-1:t)>>>0,(0,d.default)(Z).call(Z,n,e,(function(e){e.index+e[0].length>a&&(i.push((0,p.default)(n).call(n,a,e.index)),e.length>1&&e.indext?(0,p.default)(i).call(i,0,t):i},Z.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,(function(e,t){if("B"===e[1]&&t===I)return e[0];throw new SyntaxError("Invalid escape ".concat(e[0]))}),{scope:"all",leadChar:"\\"}),Z.addToken(/\\u{([\dA-Fa-f]+)}/,(function(e,t,r){var n=U(e[1]);if(n>1114111)throw new SyntaxError("Invalid Unicode code point ".concat(e[0]));if(n<=65535)return"\\u".concat(K(H(n)));if(O&&(0,f.default)(r).call(r,"u"))return e[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u")}),{scope:"all",leadChar:"\\"}),Z.addToken(/\[(\^?)\]/,(function(e){return e[1]?"[\\s\\S]":"\\b\\B"}),{leadChar:"["}),Z.addToken(/\(\?#[^)]*\)/,z,{leadChar:"("}),Z.addToken(/\s+|#[^\n]*\n?/,z,{flag:"x"}),Z.addToken(/\./,(function(){return"[\\s\\S]"}),{flag:"s",leadChar:"."}),Z.addToken(/\\k<([\w$]+)>/,(function(e){var t,r,n=isNaN(e[1])?(0,c.default)(t=this.captureNames).call(t,e[1])+1:+e[1],i=e.index+e[0].length;if(!n||n>this.captureNames.length)throw new SyntaxError("Backreference to undefined group ".concat(e[0]));return(0,s.default)(r="\\".concat(n)).call(r,i===e.input.length||isNaN(e.input[i])?"":"(?:)")}),{leadChar:"\\"}),Z.addToken(/\\(\d+)/,(function(e,t){if(!(t===I&&/^[1-9]/.test(e[1])&&+e[1]<=this.captureNames.length)&&"0"!==e[1])throw new SyntaxError("Cannot use octal escape or backreference to undefined group ".concat(e[0]));return e[0]}),{scope:"all",leadChar:"\\"}),Z.addToken(/\(\?P?<([\w$]+)>/,(function(e){var t;if(!isNaN(e[1]))throw new SyntaxError("Cannot use integer as capture name ".concat(e[0]));if(!Z.isInstalled("namespacing")&&("length"===e[1]||"__proto__"===e[1]))throw new SyntaxError("Cannot use reserved word as capture name ".concat(e[0]));if((0,f.default)(t=this.captureNames).call(t,e[1]))throw new SyntaxError("Cannot use same name for multiple groups ".concat(e[0]));return this.captureNames.push(e[1]),this.hasNamedCapture=!0,"("}),{leadChar:"("}),Z.addToken(/\((?!\?)/,(function(e,t,r){return(0,f.default)(r).call(r,"n")?"(?:":(this.captureNames.push(null),"(")}),{optionalFlags:"n",leadChar:"("});var $=Z;t.default=$,e.exports=t.default}));Ss(Op);var Bp=lf.map,Np=Hd("map");Cu({target:"Array",proto:!0,forced:!Np},{map:function(e){return Bp(this,e,arguments.length>1?arguments[1]:void 0)}});var Rp=th("Array").map,Lp=Array.prototype,Fp=function(e){var t=e.map;return e===Lp||dc(Lp,e)&&t===Lp.map?Rp:t},Up=Ps.TypeError,zp=function(e){return function(t,r,n,i){Sc(r);var o=Oc(t),a=nc(o),s=nl(o),c=e?s-1:0,u=e?-1:1;if(n<2)for(;;){if(c in a){i=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw Up("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=u)c in a&&(i=r(i,a[c],c,o));return i}},Hp={left:zp(!1),right:zp(!0)},Vp="process"==ec(Ps.process),Kp=Hp.left,Gp=oh("reduce");Cu({target:"Array",proto:!0,forced:!Gp||!Vp&&yc>79&&yc<83},{reduce:function(e){var t=arguments.length;return Kp(this,e,t,t>1?arguments[1]:void 0)}});var qp=th("Array").reduce,Qp=Array.prototype,Wp=function(e){var t=e.reduce;return e===Qp||dc(Qp,e)&&t===Qp.reduce?qp:t},Jp=Is((function(e,t){xu(t,"__esModule",{value:!0}),t.default=void 0;var r=ks(ih),n=ks(Jh),i=ks(Fp),o=ks(Wp);t.default=function(e){var t="xregexp",a=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,s=e.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,a],"g",{conjunction:"or"});function c(e){var t=/^(?:\(\?:\))*\^/,r=/\$(?:\(\?:\))*$/;return t.test(e)&&r.test(e)&&r.test(e.replace(/\\[\s\S]/g,""))?e.replace(t,"").replace(r,""):e}function u(r,n){var i=n?"x":"";return e.isRegExp(r)?r[t]&&r[t].captureNames?r:e(r.source,i):e(r,i)}function l(t){return t instanceof RegExp?t:e.escape(t)}function d(e,t,r){return e["subpattern".concat(r)]=t,e}function f(e,t,r){return e+(t1?s-1:0),u=1;u")):c="(?:",m=b;var f=h[l].pattern.replace(a,(function(e,t,r){if(t){if(s=h[l].names[b-m],++b,s)return"(?<".concat(s,">")}else if(r)return u=+r-1,h[l].names[u]?"\\k<".concat(h[l].names[u],">"):"\\".concat(+r+m);return e}));return(0,r.default)(d="".concat(c)).call(d,f,")")}if(i){if(s=A[v],w[++v]=++b,s)return"(?<".concat(s,">")}else if(o)return A[u=+o-1]?"\\k<".concat(A[u],">"):"\\".concat(w[+o]);return e}));return e(C,l)}},e.exports=t.default}));Ss(Jp);var Yp=Is((function(e,t){xu(t,"__esModule",{value:!0}),t.default=void 0;var r=ks(lp),n=ks(ih),i=ks(Jh);t.default=function(e){function t(e,t,r,n){return{name:e,value:t,start:r,end:n}}e.matchRecursive=function(o,a,s,c,u){c=c||"",u=u||{};var l,d,f,h,p,g=(0,i.default)(c).call(c,"g"),m=(0,i.default)(c).call(c,"y"),y=c.replace(/y/g,""),b=u.escapeChar,v=u.valueNames,w=[],A=0,C=0,E=0,x=0;if(a=e(a,y),s=e(s,y),b){var S,I;if(b.length>1)throw new Error("Cannot use more than one escape character");b=e.escape(b),p=new RegExp((0,n.default)(S=(0,n.default)(I="(?:".concat(b,"[\\S\\s]|(?:(?!")).call(I,e.union([a,s],"",{conjunction:"or"}).source,")[^")).call(S,b,"])+)+"),c.replace(/[^imu]+/g,""))}for(;;){if(b&&(E+=(e.exec(o,p,E,"sticky")||[""])[0].length),f=e.exec(o,a,E),h=e.exec(o,s,E),f&&h&&(f.index<=h.index?h=null:f=null),f||h)E=(C=(f||h).index)+(f||h)[0].length;else if(!A)break;if(m&&!A&&C>x)break;if(f)A||(l=C,d=E),++A;else{if(!h||!A)throw new Error("Unbalanced delimiter found in string");if(! --A&&(v?(v[0]&&l>x&&w.push(t(v[0],(0,r.default)(o).call(o,x,l),x,l)),v[1]&&w.push(t(v[1],(0,r.default)(o).call(o,l,d),l,d)),v[2]&&w.push(t(v[2],(0,r.default)(o).call(o,d,C),d,C)),v[3]&&w.push(t(v[3],(0,r.default)(o).call(o,C,E),C,E))):w.push((0,r.default)(o).call(o,d,C)),x=E,!g))break}C===E&&++E}return g&&!m&&v&&v[0]&&o.length>x&&w.push(t(v[0],(0,r.default)(o).call(o,x),x,o.length)),w}},e.exports=t.default}));Ss(Yp);var Zp=Is((function(e,t){xu(t,"__esModule",{value:!0}),t.default=void 0;var r=ks(xd),n=ks(kd),i=ks(_d),o=ks(qf),a=ks(eh),s=ks(lp),c=ks(Jh),u=ks(ih),l=ks(Lh);function d(e,t){var c;if(void 0===o.default||null==(0,i.default)(e)){if((0,n.default)(e)||(c=function(e,t){var r;if(!e)return;if("string"==typeof e)return f(e,t);var n=(0,s.default)(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return(0,a.default)(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){c&&(e=c);var u=0,l=function(){};return{s:l,n:function(){return u>=e.length?{done:!0}:{done:!1,value:e[u++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d,h=!0,p=!1;return{s:function(){c=(0,r.default)(e)},n:function(){var e=c.next();return h=e.done,e},e:function(e){p=!0,d=e},f:function(){try{h||null==c.return||c.return()}finally{if(p)throw d}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rc+1&&(s+="\\u".concat(i(n(c+1))),t>c+2&&(s+="-\\u".concat(i(n(t-1))))),c=a(e[2]||e[1])})),c<65535&&(s+="\\u".concat(i(n(c+1))),c<65534&&(s+="-\\uFFFF")),s))}function f(e,r){var n=r?"a!":"a=";return t[e][n]||(t[e][n]=function(e,r){var n,i,o=t[e],a="";return o.bmp&&!o.isBmpLast&&(a=(0,u.default)(n="[".concat(o.bmp,"]")).call(n,o.astral?"|":"")),o.astral&&(a+=o.astral),o.isBmpLast&&o.bmp&&(a+=(0,u.default)(i="".concat(o.astral?"|":"","[")).call(i,o.bmp,"]")),r?"(?:(?!".concat(a,")(?:[\ud800-\udbff][\udc00-\udfff]|[\0-\uffff]))"):"(?:".concat(a,")")}(e,r))}e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(e,r,n){var i="P"===e[1]||!!e[2],a=(0,c.default)(n).call(n,"A"),l=o(e[4]||e[3]),d=t[l];if("P"===e[1]&&e[2])throw new SyntaxError("Invalid double negation "+e[0]);if(!t.hasOwnProperty(l))throw new SyntaxError("Unknown Unicode token "+e[0]);if(d.inverseOf){var h;if(l=o(d.inverseOf),!t.hasOwnProperty(l))throw new ReferenceError((0,u.default)(h="".concat("Unicode token missing data "+e[0]," -> ")).call(h,d.inverseOf));d=t[l],i=!i}if(!d.bmp&&!a)throw new SyntaxError("Astral mode required for Unicode token "+e[0]);if(a){if("class"===r)throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");return f(l,i)}return"class"===r?i?s(l):d.bmp:"".concat((i?"[^":"[")+d.bmp,"]")}),{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(r){var n,i=d(r);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(!a.name)throw new Error("Unicode token requires name");if(!(a.inverseOf||a.bmp||a.astral))throw new Error("Unicode token has no character data "+a.name);t[o(a.name)]=a,a.alias&&(t[o(a.alias)]=a)}}catch(s){i.e(s)}finally{i.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(e){var r=o(e);return t[r]}},e.exports=t.default}));Ss(Zp);var $p=[{name:"InAdlam",astral:"\ud83a[\udd00-\udd5f]"},{name:"InAegean_Numbers",astral:"\ud800[\udd00-\udd3f]"},{name:"InAhom",astral:"\ud805[\udf00-\udf3f]"},{name:"InAlchemical_Symbols",astral:"\ud83d[\udf00-\udf7f]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\ufb00-\ufb4f"},{name:"InAnatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude7f]"},{name:"InAncient_Greek_Musical_Notation",astral:"\ud834[\ude00-\ude4f]"},{name:"InAncient_Greek_Numbers",astral:"\ud800[\udd40-\udd8f]"},{name:"InAncient_Symbols",astral:"\ud800[\udd90-\uddcf]"},{name:"InArabic",bmp:"\u0600-\u06ff"},{name:"InArabic_Extended_A",bmp:"\u08a0-\u08ff"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\ud83b[\ude00-\udeff]"},{name:"InArabic_Presentation_Forms_A",bmp:"\ufb50-\ufdff"},{name:"InArabic_Presentation_Forms_B",bmp:"\ufe70-\ufeff"},{name:"InArabic_Supplement",bmp:"\u0750-\u077f"},{name:"InArmenian",bmp:"\u0530-\u058f"},{name:"InArrows",bmp:"\u2190-\u21ff"},{name:"InAvestan",astral:"\ud802[\udf00-\udf3f]"},{name:"InBalinese",bmp:"\u1b00-\u1b7f"},{name:"InBamum",bmp:"\ua6a0-\ua6ff"},{name:"InBamum_Supplement",astral:"\ud81a[\udc00-\ude3f]"},{name:"InBasic_Latin",bmp:"\0-\x7f"},{name:"InBassa_Vah",astral:"\ud81a[\uded0-\udeff]"},{name:"InBatak",bmp:"\u1bc0-\u1bff"},{name:"InBengali",bmp:"\u0980-\u09ff"},{name:"InBhaiksuki",astral:"\ud807[\udc00-\udc6f]"},{name:"InBlock_Elements",bmp:"\u2580-\u259f"},{name:"InBopomofo",bmp:"\u3100-\u312f"},{name:"InBopomofo_Extended",bmp:"\u31a0-\u31bf"},{name:"InBox_Drawing",bmp:"\u2500-\u257f"},{name:"InBrahmi",astral:"\ud804[\udc00-\udc7f]"},{name:"InBraille_Patterns",bmp:"\u2800-\u28ff"},{name:"InBuginese",bmp:"\u1a00-\u1a1f"},{name:"InBuhid",bmp:"\u1740-\u175f"},{name:"InByzantine_Musical_Symbols",astral:"\ud834[\udc00-\udcff]"},{name:"InCJK_Compatibility",bmp:"\u3300-\u33ff"},{name:"InCJK_Compatibility_Forms",bmp:"\ufe30-\ufe4f"},{name:"InCJK_Compatibility_Ideographs",bmp:"\uf900-\ufaff"},{name:"InCJK_Compatibility_Ideographs_Supplement",astral:"\ud87e[\udc00-\ude1f]"},{name:"InCJK_Radicals_Supplement",bmp:"\u2e80-\u2eff"},{name:"InCJK_Strokes",bmp:"\u31c0-\u31ef"},{name:"InCJK_Symbols_And_Punctuation",bmp:"\u3000-\u303f"},{name:"InCJK_Unified_Ideographs",bmp:"\u4e00-\u9fff"},{name:"InCJK_Unified_Ideographs_Extension_A",bmp:"\u3400-\u4dbf"},{name:"InCJK_Unified_Ideographs_Extension_B",astral:"[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\udedf]"},{name:"InCJK_Unified_Ideographs_Extension_C",astral:"\ud869[\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf3f]"},{name:"InCJK_Unified_Ideographs_Extension_D",astral:"\ud86d[\udf40-\udfff]|\ud86e[\udc00-\udc1f]"},{name:"InCJK_Unified_Ideographs_Extension_E",astral:"\ud86e[\udc20-\udfff]|[\ud86f-\ud872][\udc00-\udfff]|\ud873[\udc00-\udeaf]"},{name:"InCJK_Unified_Ideographs_Extension_F",astral:"\ud873[\udeb0-\udfff]|[\ud874-\ud879][\udc00-\udfff]|\ud87a[\udc00-\udfef]"},{name:"InCarian",astral:"\ud800[\udea0-\udedf]"},{name:"InCaucasian_Albanian",astral:"\ud801[\udd30-\udd6f]"},{name:"InChakma",astral:"\ud804[\udd00-\udd4f]"},{name:"InCham",bmp:"\uaa00-\uaa5f"},{name:"InCherokee",bmp:"\u13a0-\u13ff"},{name:"InCherokee_Supplement",bmp:"\uab70-\uabbf"},{name:"InChess_Symbols",astral:"\ud83e[\ude00-\ude6f]"},{name:"InCombining_Diacritical_Marks",bmp:"\u0300-\u036f"},{name:"InCombining_Diacritical_Marks_Extended",bmp:"\u1ab0-\u1aff"},{name:"InCombining_Diacritical_Marks_For_Symbols",bmp:"\u20d0-\u20ff"},{name:"InCombining_Diacritical_Marks_Supplement",bmp:"\u1dc0-\u1dff"},{name:"InCombining_Half_Marks",bmp:"\ufe20-\ufe2f"},{name:"InCommon_Indic_Number_Forms",bmp:"\ua830-\ua83f"},{name:"InControl_Pictures",bmp:"\u2400-\u243f"},{name:"InCoptic",bmp:"\u2c80-\u2cff"},{name:"InCoptic_Epact_Numbers",astral:"\ud800[\udee0-\udeff]"},{name:"InCounting_Rod_Numerals",astral:"\ud834[\udf60-\udf7f]"},{name:"InCuneiform",astral:"\ud808[\udc00-\udfff]"},{name:"InCuneiform_Numbers_And_Punctuation",astral:"\ud809[\udc00-\udc7f]"},{name:"InCurrency_Symbols",bmp:"\u20a0-\u20cf"},{name:"InCypriot_Syllabary",astral:"\ud802[\udc00-\udc3f]"},{name:"InCyrillic",bmp:"\u0400-\u04ff"},{name:"InCyrillic_Extended_A",bmp:"\u2de0-\u2dff"},{name:"InCyrillic_Extended_B",bmp:"\ua640-\ua69f"},{name:"InCyrillic_Extended_C",bmp:"\u1c80-\u1c8f"},{name:"InCyrillic_Supplement",bmp:"\u0500-\u052f"},{name:"InDeseret",astral:"\ud801[\udc00-\udc4f]"},{name:"InDevanagari",bmp:"\u0900-\u097f"},{name:"InDevanagari_Extended",bmp:"\ua8e0-\ua8ff"},{name:"InDingbats",bmp:"\u2700-\u27bf"},{name:"InDogra",astral:"\ud806[\udc00-\udc4f]"},{name:"InDomino_Tiles",astral:"\ud83c[\udc30-\udc9f]"},{name:"InDuployan",astral:"\ud82f[\udc00-\udc9f]"},{name:"InEarly_Dynastic_Cuneiform",astral:"\ud809[\udc80-\udd4f]"},{name:"InEgyptian_Hieroglyphs",astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2f]"},{name:"InElbasan",astral:"\ud801[\udd00-\udd2f]"},{name:"InEmoticons",astral:"\ud83d[\ude00-\ude4f]"},{name:"InEnclosed_Alphanumeric_Supplement",astral:"\ud83c[\udd00-\uddff]"},{name:"InEnclosed_Alphanumerics",bmp:"\u2460-\u24ff"},{name:"InEnclosed_CJK_Letters_And_Months",bmp:"\u3200-\u32ff"},{name:"InEnclosed_Ideographic_Supplement",astral:"\ud83c[\ude00-\udeff]"},{name:"InEthiopic",bmp:"\u1200-\u137f"},{name:"InEthiopic_Extended",bmp:"\u2d80-\u2ddf"},{name:"InEthiopic_Extended_A",bmp:"\uab00-\uab2f"},{name:"InEthiopic_Supplement",bmp:"\u1380-\u139f"},{name:"InGeneral_Punctuation",bmp:"\u2000-\u206f"},{name:"InGeometric_Shapes",bmp:"\u25a0-\u25ff"},{name:"InGeometric_Shapes_Extended",astral:"\ud83d[\udf80-\udfff]"},{name:"InGeorgian",bmp:"\u10a0-\u10ff"},{name:"InGeorgian_Extended",bmp:"\u1c90-\u1cbf"},{name:"InGeorgian_Supplement",bmp:"\u2d00-\u2d2f"},{name:"InGlagolitic",bmp:"\u2c00-\u2c5f"},{name:"InGlagolitic_Supplement",astral:"\ud838[\udc00-\udc2f]"},{name:"InGothic",astral:"\ud800[\udf30-\udf4f]"},{name:"InGrantha",astral:"\ud804[\udf00-\udf7f]"},{name:"InGreek_And_Coptic",bmp:"\u0370-\u03ff"},{name:"InGreek_Extended",bmp:"\u1f00-\u1fff"},{name:"InGujarati",bmp:"\u0a80-\u0aff"},{name:"InGunjala_Gondi",astral:"\ud807[\udd60-\uddaf]"},{name:"InGurmukhi",bmp:"\u0a00-\u0a7f"},{name:"InHalfwidth_And_Fullwidth_Forms",bmp:"\uff00-\uffef"},{name:"InHangul_Compatibility_Jamo",bmp:"\u3130-\u318f"},{name:"InHangul_Jamo",bmp:"\u1100-\u11ff"},{name:"InHangul_Jamo_Extended_A",bmp:"\ua960-\ua97f"},{name:"InHangul_Jamo_Extended_B",bmp:"\ud7b0-\ud7ff"},{name:"InHangul_Syllables",bmp:"\uac00-\ud7af"},{name:"InHanifi_Rohingya",astral:"\ud803[\udd00-\udd3f]"},{name:"InHanunoo",bmp:"\u1720-\u173f"},{name:"InHatran",astral:"\ud802[\udce0-\udcff]"},{name:"InHebrew",bmp:"\u0590-\u05ff"},{name:"InHigh_Private_Use_Surrogates",bmp:"\udb80-\udbff"},{name:"InHigh_Surrogates",bmp:"\ud800-\udb7f"},{name:"InHiragana",bmp:"\u3040-\u309f"},{name:"InIPA_Extensions",bmp:"\u0250-\u02af"},{name:"InIdeographic_Description_Characters",bmp:"\u2ff0-\u2fff"},{name:"InIdeographic_Symbols_And_Punctuation",astral:"\ud81b[\udfe0-\udfff]"},{name:"InImperial_Aramaic",astral:"\ud802[\udc40-\udc5f]"},{name:"InIndic_Siyaq_Numbers",astral:"\ud83b[\udc70-\udcbf]"},{name:"InInscriptional_Pahlavi",astral:"\ud802[\udf60-\udf7f]"},{name:"InInscriptional_Parthian",astral:"\ud802[\udf40-\udf5f]"},{name:"InJavanese",bmp:"\ua980-\ua9df"},{name:"InKaithi",astral:"\ud804[\udc80-\udccf]"},{name:"InKana_Extended_A",astral:"\ud82c[\udd00-\udd2f]"},{name:"InKana_Supplement",astral:"\ud82c[\udc00-\udcff]"},{name:"InKanbun",bmp:"\u3190-\u319f"},{name:"InKangxi_Radicals",bmp:"\u2f00-\u2fdf"},{name:"InKannada",bmp:"\u0c80-\u0cff"},{name:"InKatakana",bmp:"\u30a0-\u30ff"},{name:"InKatakana_Phonetic_Extensions",bmp:"\u31f0-\u31ff"},{name:"InKayah_Li",bmp:"\ua900-\ua92f"},{name:"InKharoshthi",astral:"\ud802[\ude00-\ude5f]"},{name:"InKhmer",bmp:"\u1780-\u17ff"},{name:"InKhmer_Symbols",bmp:"\u19e0-\u19ff"},{name:"InKhojki",astral:"\ud804[\ude00-\ude4f]"},{name:"InKhudawadi",astral:"\ud804[\udeb0-\udeff]"},{name:"InLao",bmp:"\u0e80-\u0eff"},{name:"InLatin_1_Supplement",bmp:"\x80-\xff"},{name:"InLatin_Extended_A",bmp:"\u0100-\u017f"},{name:"InLatin_Extended_Additional",bmp:"\u1e00-\u1eff"},{name:"InLatin_Extended_B",bmp:"\u0180-\u024f"},{name:"InLatin_Extended_C",bmp:"\u2c60-\u2c7f"},{name:"InLatin_Extended_D",bmp:"\ua720-\ua7ff"},{name:"InLatin_Extended_E",bmp:"\uab30-\uab6f"},{name:"InLepcha",bmp:"\u1c00-\u1c4f"},{name:"InLetterlike_Symbols",bmp:"\u2100-\u214f"},{name:"InLimbu",bmp:"\u1900-\u194f"},{name:"InLinear_A",astral:"\ud801[\ude00-\udf7f]"},{name:"InLinear_B_Ideograms",astral:"\ud800[\udc80-\udcff]"},{name:"InLinear_B_Syllabary",astral:"\ud800[\udc00-\udc7f]"},{name:"InLisu",bmp:"\ua4d0-\ua4ff"},{name:"InLow_Surrogates",bmp:"\udc00-\udfff"},{name:"InLycian",astral:"\ud800[\ude80-\ude9f]"},{name:"InLydian",astral:"\ud802[\udd20-\udd3f]"},{name:"InMahajani",astral:"\ud804[\udd50-\udd7f]"},{name:"InMahjong_Tiles",astral:"\ud83c[\udc00-\udc2f]"},{name:"InMakasar",astral:"\ud807[\udee0-\udeff]"},{name:"InMalayalam",bmp:"\u0d00-\u0d7f"},{name:"InMandaic",bmp:"\u0840-\u085f"},{name:"InManichaean",astral:"\ud802[\udec0-\udeff]"},{name:"InMarchen",astral:"\ud807[\udc70-\udcbf]"},{name:"InMasaram_Gondi",astral:"\ud807[\udd00-\udd5f]"},{name:"InMathematical_Alphanumeric_Symbols",astral:"\ud835[\udc00-\udfff]"},{name:"InMathematical_Operators",bmp:"\u2200-\u22ff"},{name:"InMayan_Numerals",astral:"\ud834[\udee0-\udeff]"},{name:"InMedefaidrin",astral:"\ud81b[\ude40-\ude9f]"},{name:"InMeetei_Mayek",bmp:"\uabc0-\uabff"},{name:"InMeetei_Mayek_Extensions",bmp:"\uaae0-\uaaff"},{name:"InMende_Kikakui",astral:"\ud83a[\udc00-\udcdf]"},{name:"InMeroitic_Cursive",astral:"\ud802[\udda0-\uddff]"},{name:"InMeroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"InMiao",astral:"\ud81b[\udf00-\udf9f]"},{name:"InMiscellaneous_Mathematical_Symbols_A",bmp:"\u27c0-\u27ef"},{name:"InMiscellaneous_Mathematical_Symbols_B",bmp:"\u2980-\u29ff"},{name:"InMiscellaneous_Symbols",bmp:"\u2600-\u26ff"},{name:"InMiscellaneous_Symbols_And_Arrows",bmp:"\u2b00-\u2bff"},{name:"InMiscellaneous_Symbols_And_Pictographs",astral:"\ud83c[\udf00-\udfff]|\ud83d[\udc00-\uddff]"},{name:"InMiscellaneous_Technical",bmp:"\u2300-\u23ff"},{name:"InModi",astral:"\ud805[\ude00-\ude5f]"},{name:"InModifier_Tone_Letters",bmp:"\ua700-\ua71f"},{name:"InMongolian",bmp:"\u1800-\u18af"},{name:"InMongolian_Supplement",astral:"\ud805[\ude60-\ude7f]"},{name:"InMro",astral:"\ud81a[\ude40-\ude6f]"},{name:"InMultani",astral:"\ud804[\ude80-\udeaf]"},{name:"InMusical_Symbols",astral:"\ud834[\udd00-\uddff]"},{name:"InMyanmar",bmp:"\u1000-\u109f"},{name:"InMyanmar_Extended_A",bmp:"\uaa60-\uaa7f"},{name:"InMyanmar_Extended_B",bmp:"\ua9e0-\ua9ff"},{name:"InNKo",bmp:"\u07c0-\u07ff"},{name:"InNabataean",astral:"\ud802[\udc80-\udcaf]"},{name:"InNew_Tai_Lue",bmp:"\u1980-\u19df"},{name:"InNewa",astral:"\ud805[\udc00-\udc7f]"},{name:"InNumber_Forms",bmp:"\u2150-\u218f"},{name:"InNushu",astral:"\ud82c[\udd70-\udeff]"},{name:"InOgham",bmp:"\u1680-\u169f"},{name:"InOl_Chiki",bmp:"\u1c50-\u1c7f"},{name:"InOld_Hungarian",astral:"\ud803[\udc80-\udcff]"},{name:"InOld_Italic",astral:"\ud800[\udf00-\udf2f]"},{name:"InOld_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"InOld_Permic",astral:"\ud800[\udf50-\udf7f]"},{name:"InOld_Persian",astral:"\ud800[\udfa0-\udfdf]"},{name:"InOld_Sogdian",astral:"\ud803[\udf00-\udf2f]"},{name:"InOld_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},{name:"InOld_Turkic",astral:"\ud803[\udc00-\udc4f]"},{name:"InOptical_Character_Recognition",bmp:"\u2440-\u245f"},{name:"InOriya",bmp:"\u0b00-\u0b7f"},{name:"InOrnamental_Dingbats",astral:"\ud83d[\ude50-\ude7f]"},{name:"InOsage",astral:"\ud801[\udcb0-\udcff]"},{name:"InOsmanya",astral:"\ud801[\udc80-\udcaf]"},{name:"InPahawh_Hmong",astral:"\ud81a[\udf00-\udf8f]"},{name:"InPalmyrene",astral:"\ud802[\udc60-\udc7f]"},{name:"InPau_Cin_Hau",astral:"\ud806[\udec0-\udeff]"},{name:"InPhags_Pa",bmp:"\ua840-\ua87f"},{name:"InPhaistos_Disc",astral:"\ud800[\uddd0-\uddff]"},{name:"InPhoenician",astral:"\ud802[\udd00-\udd1f]"},{name:"InPhonetic_Extensions",bmp:"\u1d00-\u1d7f"},{name:"InPhonetic_Extensions_Supplement",bmp:"\u1d80-\u1dbf"},{name:"InPlaying_Cards",astral:"\ud83c[\udca0-\udcff]"},{name:"InPrivate_Use_Area",bmp:"\ue000-\uf8ff"},{name:"InPsalter_Pahlavi",astral:"\ud802[\udf80-\udfaf]"},{name:"InRejang",bmp:"\ua930-\ua95f"},{name:"InRumi_Numeral_Symbols",astral:"\ud803[\ude60-\ude7f]"},{name:"InRunic",bmp:"\u16a0-\u16ff"},{name:"InSamaritan",bmp:"\u0800-\u083f"},{name:"InSaurashtra",bmp:"\ua880-\ua8df"},{name:"InSharada",astral:"\ud804[\udd80-\udddf]"},{name:"InShavian",astral:"\ud801[\udc50-\udc7f]"},{name:"InShorthand_Format_Controls",astral:"\ud82f[\udca0-\udcaf]"},{name:"InSiddham",astral:"\ud805[\udd80-\uddff]"},{name:"InSinhala",bmp:"\u0d80-\u0dff"},{name:"InSinhala_Archaic_Numbers",astral:"\ud804[\udde0-\uddff]"},{name:"InSmall_Form_Variants",bmp:"\ufe50-\ufe6f"},{name:"InSogdian",astral:"\ud803[\udf30-\udf6f]"},{name:"InSora_Sompeng",astral:"\ud804[\udcd0-\udcff]"},{name:"InSoyombo",astral:"\ud806[\ude50-\udeaf]"},{name:"InSpacing_Modifier_Letters",bmp:"\u02b0-\u02ff"},{name:"InSpecials",bmp:"\ufff0-\uffff"},{name:"InSundanese",bmp:"\u1b80-\u1bbf"},{name:"InSundanese_Supplement",bmp:"\u1cc0-\u1ccf"},{name:"InSuperscripts_And_Subscripts",bmp:"\u2070-\u209f"},{name:"InSupplemental_Arrows_A",bmp:"\u27f0-\u27ff"},{name:"InSupplemental_Arrows_B",bmp:"\u2900-\u297f"},{name:"InSupplemental_Arrows_C",astral:"\ud83e[\udc00-\udcff]"},{name:"InSupplemental_Mathematical_Operators",bmp:"\u2a00-\u2aff"},{name:"InSupplemental_Punctuation",bmp:"\u2e00-\u2e7f"},{name:"InSupplemental_Symbols_And_Pictographs",astral:"\ud83e[\udd00-\uddff]"},{name:"InSupplementary_Private_Use_Area_A",astral:"[\udb80-\udbbf][\udc00-\udfff]"},{name:"InSupplementary_Private_Use_Area_B",astral:"[\udbc0-\udbff][\udc00-\udfff]"},{name:"InSutton_SignWriting",astral:"\ud836[\udc00-\udeaf]"},{name:"InSyloti_Nagri",bmp:"\ua800-\ua82f"},{name:"InSyriac",bmp:"\u0700-\u074f"},{name:"InSyriac_Supplement",bmp:"\u0860-\u086f"},{name:"InTagalog",bmp:"\u1700-\u171f"},{name:"InTagbanwa",bmp:"\u1760-\u177f"},{name:"InTags",astral:"\udb40[\udc00-\udc7f]"},{name:"InTai_Le",bmp:"\u1950-\u197f"},{name:"InTai_Tham",bmp:"\u1a20-\u1aaf"},{name:"InTai_Viet",bmp:"\uaa80-\uaadf"},{name:"InTai_Xuan_Jing_Symbols",astral:"\ud834[\udf00-\udf5f]"},{name:"InTakri",astral:"\ud805[\ude80-\udecf]"},{name:"InTamil",bmp:"\u0b80-\u0bff"},{name:"InTangut",astral:"[\ud81c-\ud821][\udc00-\udfff]"},{name:"InTangut_Components",astral:"\ud822[\udc00-\udeff]"},{name:"InTelugu",bmp:"\u0c00-\u0c7f"},{name:"InThaana",bmp:"\u0780-\u07bf"},{name:"InThai",bmp:"\u0e00-\u0e7f"},{name:"InTibetan",bmp:"\u0f00-\u0fff"},{name:"InTifinagh",bmp:"\u2d30-\u2d7f"},{name:"InTirhuta",astral:"\ud805[\udc80-\udcdf]"},{name:"InTransport_And_Map_Symbols",astral:"\ud83d[\ude80-\udeff]"},{name:"InUgaritic",astral:"\ud800[\udf80-\udf9f]"},{name:"InUnified_Canadian_Aboriginal_Syllabics",bmp:"\u1400-\u167f"},{name:"InUnified_Canadian_Aboriginal_Syllabics_Extended",bmp:"\u18b0-\u18ff"},{name:"InVai",bmp:"\ua500-\ua63f"},{name:"InVariation_Selectors",bmp:"\ufe00-\ufe0f"},{name:"InVariation_Selectors_Supplement",astral:"\udb40[\udd00-\uddef]"},{name:"InVedic_Extensions",bmp:"\u1cd0-\u1cff"},{name:"InVertical_Forms",bmp:"\ufe10-\ufe1f"},{name:"InWarang_Citi",astral:"\ud806[\udca0-\udcff]"},{name:"InYi_Radicals",bmp:"\ua490-\ua4cf"},{name:"InYi_Syllables",bmp:"\ua000-\ua48f"},{name:"InYijing_Hexagram_Symbols",bmp:"\u4dc0-\u4dff"},{name:"InZanabazar_Square",astral:"\ud806[\ude00-\ude4f]"},{name:"Inundefined",astral:"\ud803[\ude80-\udebf\udfb0-\udfff]|\ud806[\udd00-\udd5f\udda0-\uddff]|\ud807[\udfb0-\udfff]|\ud80d[\udc30-\udc3f]|\ud822[\udf00-\udfff]|\ud823[\udc00-\udd8f]|\ud82c[\udd30-\udd6f]|\ud838[\udd00-\udd4f\udec0-\udeff]|\ud83b[\udd00-\udd4f]|\ud83e[\ude70-\udfff]|[\ud880-\ud883][\udc00-\udfff]|\ud884[\udc00-\udf4f]"}],Xp=Is((function(e,t){xu(t,"__esModule",{value:!0}),t.default=void 0;var r=ks($p);t.default=function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");e.addUnicodeData(r.default)},e.exports=t.default}));Ss(Xp);var eg=[{name:"C",alias:"Other",isBmpLast:!0,bmp:"\0-\x1f\x7f-\x9f\xad\u0378\u0379\u0380-\u0383\u038b\u038d\u03a2\u0530\u0557\u0558\u058b\u058c\u0590\u05c8-\u05cf\u05eb-\u05ee\u05f5-\u0605\u061c\u061d\u06dd\u070e\u070f\u074b\u074c\u07b2-\u07bf\u07fb\u07fc\u082e\u082f\u083f\u085c\u085d\u085f\u086b-\u089f\u08b5\u08c8-\u08d2\u08e2\u0984\u098d\u098e\u0991\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba\u09bb\u09c5\u09c6\u09c9\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4\u09e5\u09ff\u0a00\u0a04\u0a0b-\u0a0e\u0a11\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a\u0a3b\u0a3d\u0a43-\u0a46\u0a49\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a77-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba\u0abb\u0ac6\u0aca\u0ace\u0acf\u0ad1-\u0adf\u0ae4\u0ae5\u0af2-\u0af8\u0b00\u0b04\u0b0d\u0b0e\u0b11\u0b12\u0b29\u0b31\u0b34\u0b3a\u0b3b\u0b45\u0b46\u0b49\u0b4a\u0b4e-\u0b54\u0b58-\u0b5b\u0b5e\u0b64\u0b65\u0b78-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0bff\u0c0d\u0c11\u0c29\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5b-\u0c5f\u0c64\u0c65\u0c70-\u0c76\u0c8d\u0c91\u0ca9\u0cb4\u0cba\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4\u0ce5\u0cf0\u0cf3-\u0cff\u0d0d\u0d11\u0d45\u0d49\u0d50-\u0d53\u0d64\u0d65\u0d80\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0de5\u0df0\u0df1\u0df5-\u0e00\u0e3b-\u0e3e\u0e5c-\u0e80\u0e83\u0e85\u0e8b\u0ea4\u0ea6\u0ebe\u0ebf\u0ec5\u0ec7\u0ece\u0ecf\u0eda\u0edb\u0ee0-\u0eff\u0f48\u0f6d-\u0f70\u0f98\u0fbd\u0fcd\u0fdb-\u0fff\u10c6\u10c8-\u10cc\u10ce\u10cf\u1249\u124e\u124f\u1257\u1259\u125e\u125f\u1289\u128e\u128f\u12b1\u12b6\u12b7\u12bf\u12c1\u12c6\u12c7\u12d7\u1311\u1316\u1317\u135b\u135c\u137d-\u137f\u139a-\u139f\u13f6\u13f7\u13fe\u13ff\u169d-\u169f\u16f9-\u16ff\u170d\u1715-\u171f\u1737-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17de\u17df\u17ea-\u17ef\u17fa-\u17ff\u180e\u180f\u181a-\u181f\u1879-\u187f\u18ab-\u18af\u18f6-\u18ff\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1943\u196e\u196f\u1975-\u197f\u19ac-\u19af\u19ca-\u19cf\u19db-\u19dd\u1a1c\u1a1d\u1a5f\u1a7d\u1a7e\u1a8a-\u1a8f\u1a9a-\u1a9f\u1aae\u1aaf\u1ac1-\u1aff\u1b4c-\u1b4f\u1b7d-\u1b7f\u1bf4-\u1bfb\u1c38-\u1c3a\u1c4a-\u1c4c\u1c89-\u1c8f\u1cbb\u1cbc\u1cc8-\u1ccf\u1cfb-\u1cff\u1dfa\u1f16\u1f17\u1f1e\u1f1f\u1f46\u1f47\u1f4e\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e\u1f7f\u1fb5\u1fc5\u1fd4\u1fd5\u1fdc\u1ff0\u1ff1\u1ff5\u1fff\u200b-\u200f\u202a-\u202e\u2060-\u206f\u2072\u2073\u208f\u209d-\u209f\u20c0-\u20cf\u20f1-\u20ff\u218c-\u218f\u2427-\u243f\u244b-\u245f\u2b74\u2b75\u2b96\u2c2f\u2c5f\u2cf4-\u2cf8\u2d26\u2d28-\u2d2c\u2d2e\u2d2f\u2d68-\u2d6e\u2d71-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e53-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3040\u3097\u3098\u3100-\u3104\u3130\u318f\u31e4-\u31ef\u321f\u9ffd-\u9fff\ua48d-\ua48f\ua4c7-\ua4cf\ua62c-\ua63f\ua6f8-\ua6ff\ua7c0\ua7c1\ua7cb-\ua7f4\ua82d-\ua82f\ua83a-\ua83f\ua878-\ua87f\ua8c6-\ua8cd\ua8da-\ua8df\ua954-\ua95e\ua97d-\ua97f\ua9ce\ua9da-\ua9dd\ua9ff\uaa37-\uaa3f\uaa4e\uaa4f\uaa5a\uaa5b\uaac3-\uaada\uaaf7-\uab00\uab07\uab08\uab0f\uab10\uab17-\uab1f\uab27\uab2f\uab6c-\uab6f\uabee\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\uf8ff\ufa6e\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbc2-\ufbd2\ufd40-\ufd4f\ufd90\ufd91\ufdc8-\ufdef\ufdfe\ufdff\ufe1a-\ufe1f\ufe53\ufe67\ufe6c-\ufe6f\ufe75\ufefd-\uff00\uffbf-\uffc1\uffc8\uffc9\uffd0\uffd1\uffd8\uffd9\uffdd-\uffdf\uffe7\uffef-\ufffb\ufffe\uffff",astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9d-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2c\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude36\ude37\ude3b-\ude3e\ude49-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd28-\udd2f\udd3a-\ude5f\ude7f\udeaa\udeae\udeaf\udeb2-\udeff\udf28-\udf2f\udf5a-\udfaf\udfcc-\udfdf\udff7-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcbd\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd48-\udd4f\udd77-\udd7f\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5c\udc62-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb9-\udebf\udeca-\udeff\udf1b\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc3c-\udc9f\udcf3-\udcfe\udd07\udd08\udd0a\udd0b\udd14\udd17\udd36\udd39\udd3a\udd47-\udd4f\udd5a-\udd9f\udda8\udda9\uddd8\uddd9\udde5-\uddff\ude48-\ude4f\udea3-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udcff\udd07\udd0a\udd37-\udd39\udd3b\udd3e\udd48-\udd4f\udd5a-\udd5f\udd66\udd69\udd8f\udd92\udd99-\udd9f\uddaa-\udedf\udef9-\udfaf\udfb1-\udfbf\udff2-\udffe]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud824-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud87b-\ud87d\ud87f\ud885-\udb3f\udb41-\udbff][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\ude3f\ude9b-\udeff\udf4b-\udf4e\udf88-\udf8e\udfa0-\udfdf\udfe5-\udfef\udff2-\udfff]|\ud821[\udff8-\udfff]|\ud823[\udcd6-\udcff\udd09-\udfff]|\ud82c[\udd1f-\udd4f\udd53-\udd63\udd68-\udd6f\udefc-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca0-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udd73-\udd7a\udde9-\uddff\ude46-\udedf\udef4-\udeff\udf57-\udf5f\udf79-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udcff\udd2d-\udd2f\udd3e\udd3f\udd4a-\udd4d\udd50-\udebf\udefa-\udefe\udf00-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4c-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\udc70\udcb5-\udd00\udd3e-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\uddae-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\ude5f\ude66-\udeff]|\ud83d[\uded8-\udedf\udeed-\udeef\udefd-\udeff\udf74-\udf7f\udfd9-\udfdf\udfec-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae\udcaf\udcb2-\udcff\udd79\uddcc\ude54-\ude5f\ude6e\ude6f\ude75-\ude77\ude7b-\ude7f\ude87-\ude8f\udea9-\udeaf\udeb7-\udebf\udec3-\udecf\uded7-\udeff\udf93\udfcb-\udfef\udffa-\udfff]|\ud869[\udede-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udeaf]|\ud87a[\udfe1-\udfff]|\ud87e[\ude1e-\udfff]|\ud884[\udf4b-\udfff]|\udb40[\udc00-\udcff\uddf0-\udfff]"},{name:"Cc",alias:"Control",bmp:"\0-\x1f\x7f-\x9f"},{name:"Cf",alias:"Format",bmp:"\xad\u0600-\u0605\u061c\u06dd\u070f\u08e2\u180e\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u206f\ufeff\ufff9-\ufffb",astral:"\ud804[\udcbd\udccd]|\ud80d[\udc30-\udc38]|\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|\udb40[\udc01\udc20-\udc7f]"},{name:"Cn",alias:"Unassigned",bmp:"\u0378\u0379\u0380-\u0383\u038b\u038d\u03a2\u0530\u0557\u0558\u058b\u058c\u0590\u05c8-\u05cf\u05eb-\u05ee\u05f5-\u05ff\u061d\u070e\u074b\u074c\u07b2-\u07bf\u07fb\u07fc\u082e\u082f\u083f\u085c\u085d\u085f\u086b-\u089f\u08b5\u08c8-\u08d2\u0984\u098d\u098e\u0991\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba\u09bb\u09c5\u09c6\u09c9\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4\u09e5\u09ff\u0a00\u0a04\u0a0b-\u0a0e\u0a11\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a\u0a3b\u0a3d\u0a43-\u0a46\u0a49\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a77-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba\u0abb\u0ac6\u0aca\u0ace\u0acf\u0ad1-\u0adf\u0ae4\u0ae5\u0af2-\u0af8\u0b00\u0b04\u0b0d\u0b0e\u0b11\u0b12\u0b29\u0b31\u0b34\u0b3a\u0b3b\u0b45\u0b46\u0b49\u0b4a\u0b4e-\u0b54\u0b58-\u0b5b\u0b5e\u0b64\u0b65\u0b78-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0bff\u0c0d\u0c11\u0c29\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5b-\u0c5f\u0c64\u0c65\u0c70-\u0c76\u0c8d\u0c91\u0ca9\u0cb4\u0cba\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4\u0ce5\u0cf0\u0cf3-\u0cff\u0d0d\u0d11\u0d45\u0d49\u0d50-\u0d53\u0d64\u0d65\u0d80\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0de5\u0df0\u0df1\u0df5-\u0e00\u0e3b-\u0e3e\u0e5c-\u0e80\u0e83\u0e85\u0e8b\u0ea4\u0ea6\u0ebe\u0ebf\u0ec5\u0ec7\u0ece\u0ecf\u0eda\u0edb\u0ee0-\u0eff\u0f48\u0f6d-\u0f70\u0f98\u0fbd\u0fcd\u0fdb-\u0fff\u10c6\u10c8-\u10cc\u10ce\u10cf\u1249\u124e\u124f\u1257\u1259\u125e\u125f\u1289\u128e\u128f\u12b1\u12b6\u12b7\u12bf\u12c1\u12c6\u12c7\u12d7\u1311\u1316\u1317\u135b\u135c\u137d-\u137f\u139a-\u139f\u13f6\u13f7\u13fe\u13ff\u169d-\u169f\u16f9-\u16ff\u170d\u1715-\u171f\u1737-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17de\u17df\u17ea-\u17ef\u17fa-\u17ff\u180f\u181a-\u181f\u1879-\u187f\u18ab-\u18af\u18f6-\u18ff\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1943\u196e\u196f\u1975-\u197f\u19ac-\u19af\u19ca-\u19cf\u19db-\u19dd\u1a1c\u1a1d\u1a5f\u1a7d\u1a7e\u1a8a-\u1a8f\u1a9a-\u1a9f\u1aae\u1aaf\u1ac1-\u1aff\u1b4c-\u1b4f\u1b7d-\u1b7f\u1bf4-\u1bfb\u1c38-\u1c3a\u1c4a-\u1c4c\u1c89-\u1c8f\u1cbb\u1cbc\u1cc8-\u1ccf\u1cfb-\u1cff\u1dfa\u1f16\u1f17\u1f1e\u1f1f\u1f46\u1f47\u1f4e\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e\u1f7f\u1fb5\u1fc5\u1fd4\u1fd5\u1fdc\u1ff0\u1ff1\u1ff5\u1fff\u2065\u2072\u2073\u208f\u209d-\u209f\u20c0-\u20cf\u20f1-\u20ff\u218c-\u218f\u2427-\u243f\u244b-\u245f\u2b74\u2b75\u2b96\u2c2f\u2c5f\u2cf4-\u2cf8\u2d26\u2d28-\u2d2c\u2d2e\u2d2f\u2d68-\u2d6e\u2d71-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e53-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3040\u3097\u3098\u3100-\u3104\u3130\u318f\u31e4-\u31ef\u321f\u9ffd-\u9fff\ua48d-\ua48f\ua4c7-\ua4cf\ua62c-\ua63f\ua6f8-\ua6ff\ua7c0\ua7c1\ua7cb-\ua7f4\ua82d-\ua82f\ua83a-\ua83f\ua878-\ua87f\ua8c6-\ua8cd\ua8da-\ua8df\ua954-\ua95e\ua97d-\ua97f\ua9ce\ua9da-\ua9dd\ua9ff\uaa37-\uaa3f\uaa4e\uaa4f\uaa5a\uaa5b\uaac3-\uaada\uaaf7-\uab00\uab07\uab08\uab0f\uab10\uab17-\uab1f\uab27\uab2f\uab6c-\uab6f\uabee\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\ud7ff\ufa6e\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbc2-\ufbd2\ufd40-\ufd4f\ufd90\ufd91\ufdc8-\ufdef\ufdfe\ufdff\ufe1a-\ufe1f\ufe53\ufe67\ufe6c-\ufe6f\ufe75\ufefd\ufefe\uff00\uffbf-\uffc1\uffc8\uffc9\uffd0\uffd1\uffd8\uffd9\uffdd-\uffdf\uffe7\uffef-\ufff8\ufffe\uffff",astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9d-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2c\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude36\ude37\ude3b-\ude3e\ude49-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd28-\udd2f\udd3a-\ude5f\ude7f\udeaa\udeae\udeaf\udeb2-\udeff\udf28-\udf2f\udf5a-\udfaf\udfcc-\udfdf\udff7-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcc2-\udccc\udcce\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd48-\udd4f\udd77-\udd7f\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5c\udc62-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb9-\udebf\udeca-\udeff\udf1b\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc3c-\udc9f\udcf3-\udcfe\udd07\udd08\udd0a\udd0b\udd14\udd17\udd36\udd39\udd3a\udd47-\udd4f\udd5a-\udd9f\udda8\udda9\uddd8\uddd9\udde5-\uddff\ude48-\ude4f\udea3-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udcff\udd07\udd0a\udd37-\udd39\udd3b\udd3e\udd48-\udd4f\udd5a-\udd5f\udd66\udd69\udd8f\udd92\udd99-\udd9f\uddaa-\udedf\udef9-\udfaf\udfb1-\udfbf\udff2-\udffe]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud824-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud87b-\ud87d\ud87f\ud885-\udb3f\udb41-\udb7f][\udc00-\udfff]|\ud80d[\udc2f\udc39-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\ude3f\ude9b-\udeff\udf4b-\udf4e\udf88-\udf8e\udfa0-\udfdf\udfe5-\udfef\udff2-\udfff]|\ud821[\udff8-\udfff]|\ud823[\udcd6-\udcff\udd09-\udfff]|\ud82c[\udd1f-\udd4f\udd53-\udd63\udd68-\udd6f\udefc-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca4-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udde9-\uddff\ude46-\udedf\udef4-\udeff\udf57-\udf5f\udf79-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udcff\udd2d-\udd2f\udd3e\udd3f\udd4a-\udd4d\udd50-\udebf\udefa-\udefe\udf00-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4c-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\udc70\udcb5-\udd00\udd3e-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\uddae-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\ude5f\ude66-\udeff]|\ud83d[\uded8-\udedf\udeed-\udeef\udefd-\udeff\udf74-\udf7f\udfd9-\udfdf\udfec-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae\udcaf\udcb2-\udcff\udd79\uddcc\ude54-\ude5f\ude6e\ude6f\ude75-\ude77\ude7b-\ude7f\ude87-\ude8f\udea9-\udeaf\udeb7-\udebf\udec3-\udecf\uded7-\udeff\udf93\udfcb-\udfef\udffa-\udfff]|\ud869[\udede-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udeaf]|\ud87a[\udfe1-\udfff]|\ud87e[\ude1e-\udfff]|\ud884[\udf4b-\udfff]|\udb40[\udc00\udc02-\udc1f\udc80-\udcff\uddf0-\udfff]|[\udbbf\udbff][\udffe\udfff]"},{name:"Co",alias:"Private_Use",bmp:"\ue000-\uf8ff",astral:"[\udb80-\udbbe\udbc0-\udbfe][\udc00-\udfff]|[\udbbf\udbff][\udc00-\udffd]"},{name:"Cs",alias:"Surrogate",bmp:"\ud800-\udfff"},{name:"L",alias:"Letter",bmp:"A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08c7\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u1884\u1887-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\u9ffc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7ca\ua7f5-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\ude80-\udea9\udeb0\udeb1\udf00-\udf1c\udf27\udf30-\udf45\udfb0-\udfc4\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd47\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f-\udc61\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff-\udd06\udd09\udd0c-\udd13\udd15\udd16\udd18-\udd2f\udd3f\udd41\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67\udd68\udd6a-\udd89\udd98\udee0-\udef2\udfb0]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud822\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872\ud874-\ud879\ud880-\ud883][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0\udfe1\udfe3]|\ud821[\udc00-\udff7]|\ud823[\udc00-\udcd5\udd00-\udd08]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\udedd\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\ud884[\udc00-\udf4a]"},{name:"LC",alias:"Cased_Letter",bmp:"A-Za-z\xb5\xc0-\xd6\xd8-\xf6\xf8-\u01ba\u01bc-\u01bf\u01c4-\u0293\u0295-\u02af\u0370-\u0373\u0376\u0377\u037b-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0560-\u0588\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fd-\u10ff\u13a0-\u13f5\u13f8-\u13fd\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1d00-\u1d2b\u1d6b-\u1d77\u1d79-\u1d9a\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2134\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2c7b\u2c7e-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua640-\ua66d\ua680-\ua69b\ua722-\ua76f\ua771-\ua787\ua78b-\ua78e\ua790-\ua7bf\ua7c2-\ua7ca\ua7f5\ua7f6\ua7fa\uab30-\uab5a\uab60-\uab68\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff21-\uff3a\uff41-\uff5a",astral:"\ud801[\udc00-\udc4f\udcb0-\udcd3\udcd8-\udcfb]|\ud803[\udc80-\udcb2\udcc0-\udcf2]|\ud806[\udca0-\udcdf]|\ud81b[\ude40-\ude7f]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud83a[\udd00-\udd43]"},{name:"Ll",alias:"Lowercase_Letter",bmp:"a-z\xb5\xdf-\xf6\xf8-\xff\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0131\u0133\u0135\u0137\u0138\u013a\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u0149\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\u017a\u017c\u017e-\u0180\u0183\u0185\u0188\u018c\u018d\u0192\u0195\u0199-\u019b\u019e\u01a1\u01a3\u01a5\u01a8\u01aa\u01ab\u01ad\u01b0\u01b4\u01b6\u01b9\u01ba\u01bd-\u01bf\u01c6\u01c9\u01cc\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01dd\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f0\u01f3\u01f5\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u0221\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233-\u0239\u023c\u023f\u0240\u0242\u0247\u0249\u024b\u024d\u024f-\u0293\u0295-\u02af\u0371\u0373\u0377\u037b-\u037d\u0390\u03ac-\u03ce\u03d0\u03d1\u03d5-\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef-\u03f3\u03f5\u03f8\u03fb\u03fc\u0430-\u045f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04cf\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0560-\u0588\u10d0-\u10fa\u10fd-\u10ff\u13f8-\u13fd\u1c80-\u1c88\u1d00-\u1d2b\u1d6b-\u1d77\u1d79-\u1d9a\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95-\u1e9d\u1e9f\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff-\u1f07\u1f10-\u1f15\u1f20-\u1f27\u1f30-\u1f37\u1f40-\u1f45\u1f50-\u1f57\u1f60-\u1f67\u1f70-\u1f7d\u1f80-\u1f87\u1f90-\u1f97\u1fa0-\u1fa7\u1fb0-\u1fb4\u1fb6\u1fb7\u1fbe\u1fc2-\u1fc4\u1fc6\u1fc7\u1fd0-\u1fd3\u1fd6\u1fd7\u1fe0-\u1fe7\u1ff2-\u1ff4\u1ff6\u1ff7\u210a\u210e\u210f\u2113\u212f\u2134\u2139\u213c\u213d\u2146-\u2149\u214e\u2184\u2c30-\u2c5e\u2c61\u2c65\u2c66\u2c68\u2c6a\u2c6c\u2c71\u2c73\u2c74\u2c76-\u2c7b\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2ce4\u2cec\u2cee\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua641\ua643\ua645\ua647\ua649\ua64b\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f-\ua731\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f\ua771-\ua778\ua77a\ua77c\ua77f\ua781\ua783\ua785\ua787\ua78c\ua78e\ua791\ua793-\ua795\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\ua7af\ua7b5\ua7b7\ua7b9\ua7bb\ua7bd\ua7bf\ua7c3\ua7c8\ua7ca\ua7f6\ua7fa\uab30-\uab5a\uab60-\uab68\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff41-\uff5a",astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud81b[\ude60-\ude7f]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Lm",alias:"Modifier_Letter",bmp:"\u02b0-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0374\u037a\u0559\u0640\u06e5\u06e6\u07f4\u07f5\u07fa\u081a\u0824\u0828\u0971\u0e46\u0ec6\u10fc\u17d7\u1843\u1aa7\u1c78-\u1c7d\u1d2c-\u1d6a\u1d78\u1d9b-\u1dbf\u2071\u207f\u2090-\u209c\u2c7c\u2c7d\u2d6f\u2e2f\u3005\u3031-\u3035\u303b\u309d\u309e\u30fc-\u30fe\ua015\ua4f8-\ua4fd\ua60c\ua67f\ua69c\ua69d\ua717-\ua71f\ua770\ua788\ua7f8\ua7f9\ua9cf\ua9e6\uaa70\uaadd\uaaf3\uaaf4\uab5c-\uab5f\uab69\uff70\uff9e\uff9f",astral:"\ud81a[\udf40-\udf43]|\ud81b[\udf93-\udf9f\udfe0\udfe1\udfe3]|\ud838[\udd37-\udd3d]|\ud83a\udd4b"},{name:"Lo",alias:"Other_Letter",bmp:"\xaa\xba\u01bb\u01c0-\u01c3\u0294\u05d0-\u05ea\u05ef-\u05f2\u0620-\u063f\u0641-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u0800-\u0815\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08c7\u0904-\u0939\u093d\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e45\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u1100-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17dc\u1820-\u1842\u1844-\u1878\u1880-\u1884\u1887-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c77\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u2135-\u2138\u2d30-\u2d67\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3006\u303c\u3041-\u3096\u309f\u30a1-\u30fa\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\u9ffc\ua000-\ua014\ua016-\ua48c\ua4d0-\ua4f7\ua500-\ua60b\ua610-\ua61f\ua62a\ua62b\ua66e\ua6a0-\ua6e5\ua78f\ua7f7\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9e0-\ua9e4\ua9e7-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa6f\uaa71-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb\uaadc\uaae0-\uaaea\uaaf2\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff66-\uff6f\uff71-\uff9d\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc50-\udc9d\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udd00-\udd23\ude80-\udea9\udeb0\udeb1\udf00-\udf1c\udf27\udf30-\udf45\udfb0-\udfc4\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd47\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f-\udc61\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udcff-\udd06\udd09\udd0c-\udd13\udd15\udd16\udd18-\udd2f\udd3f\udd41\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67\udd68\udd6a-\udd89\udd98\udee0-\udef2\udfb0]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud822\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872\ud874-\ud879\ud880-\ud883][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf4a\udf50]|\ud821[\udc00-\udff7]|\ud823[\udc00-\udcd5\udd00-\udd08]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud838[\udd00-\udd2c\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\udedd\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\ud884[\udc00-\udf4a]"},{name:"Lt",alias:"Titlecase_Letter",bmp:"\u01c5\u01c8\u01cb\u01f2\u1f88-\u1f8f\u1f98-\u1f9f\u1fa8-\u1faf\u1fbc\u1fcc\u1ffc"},{name:"Lu",alias:"Uppercase_Letter",bmp:"A-Z\xc0-\xd6\xd8-\xde\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018e-\u0191\u0193\u0194\u0196-\u0198\u019c\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01bc\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u023a\u023b\u023d\u023e\u0241\u0243-\u0246\u0248\u024a\u024c\u024e\u0370\u0372\u0376\u037f\u0386\u0388-\u038a\u038c\u038e\u038f\u0391-\u03a1\u03a3-\u03ab\u03cf\u03d2-\u03d4\u03d8\u03da\u03dc\u03de\u03e0\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03f9\u03fa\u03fd-\u042f\u0460\u0462\u0464\u0466\u0468\u046a\u046c\u046e\u0470\u0472\u0474\u0476\u0478\u047a\u047c\u047e\u0480\u048a\u048c\u048e\u0490\u0492\u0494\u0496\u0498\u049a\u049c\u049e\u04a0\u04a2\u04a4\u04a6\u04a8\u04aa\u04ac\u04ae\u04b0\u04b2\u04b4\u04b6\u04b8\u04ba\u04bc\u04be\u04c0\u04c1\u04c3\u04c5\u04c7\u04c9\u04cb\u04cd\u04d0\u04d2\u04d4\u04d6\u04d8\u04da\u04dc\u04de\u04e0\u04e2\u04e4\u04e6\u04e8\u04ea\u04ec\u04ee\u04f0\u04f2\u04f4\u04f6\u04f8\u04fa\u04fc\u04fe\u0500\u0502\u0504\u0506\u0508\u050a\u050c\u050e\u0510\u0512\u0514\u0516\u0518\u051a\u051c\u051e\u0520\u0522\u0524\u0526\u0528\u052a\u052c\u052e\u0531-\u0556\u10a0-\u10c5\u10c7\u10cd\u13a0-\u13f5\u1c90-\u1cba\u1cbd-\u1cbf\u1e00\u1e02\u1e04\u1e06\u1e08\u1e0a\u1e0c\u1e0e\u1e10\u1e12\u1e14\u1e16\u1e18\u1e1a\u1e1c\u1e1e\u1e20\u1e22\u1e24\u1e26\u1e28\u1e2a\u1e2c\u1e2e\u1e30\u1e32\u1e34\u1e36\u1e38\u1e3a\u1e3c\u1e3e\u1e40\u1e42\u1e44\u1e46\u1e48\u1e4a\u1e4c\u1e4e\u1e50\u1e52\u1e54\u1e56\u1e58\u1e5a\u1e5c\u1e5e\u1e60\u1e62\u1e64\u1e66\u1e68\u1e6a\u1e6c\u1e6e\u1e70\u1e72\u1e74\u1e76\u1e78\u1e7a\u1e7c\u1e7e\u1e80\u1e82\u1e84\u1e86\u1e88\u1e8a\u1e8c\u1e8e\u1e90\u1e92\u1e94\u1e9e\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ec8\u1eca\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u1ef2\u1ef4\u1ef6\u1ef8\u1efa\u1efc\u1efe\u1f08-\u1f0f\u1f18-\u1f1d\u1f28-\u1f2f\u1f38-\u1f3f\u1f48-\u1f4d\u1f59\u1f5b\u1f5d\u1f5f\u1f68-\u1f6f\u1fb8-\u1fbb\u1fc8-\u1fcb\u1fd8-\u1fdb\u1fe8-\u1fec\u1ff8-\u1ffb\u2102\u2107\u210b-\u210d\u2110-\u2112\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u2130-\u2133\u213e\u213f\u2145\u2183\u2c00-\u2c2e\u2c60\u2c62-\u2c64\u2c67\u2c69\u2c6b\u2c6d-\u2c70\u2c72\u2c75\u2c7e-\u2c80\u2c82\u2c84\u2c86\u2c88\u2c8a\u2c8c\u2c8e\u2c90\u2c92\u2c94\u2c96\u2c98\u2c9a\u2c9c\u2c9e\u2ca0\u2ca2\u2ca4\u2ca6\u2ca8\u2caa\u2cac\u2cae\u2cb0\u2cb2\u2cb4\u2cb6\u2cb8\u2cba\u2cbc\u2cbe\u2cc0\u2cc2\u2cc4\u2cc6\u2cc8\u2cca\u2ccc\u2cce\u2cd0\u2cd2\u2cd4\u2cd6\u2cd8\u2cda\u2cdc\u2cde\u2ce0\u2ce2\u2ceb\u2ced\u2cf2\ua640\ua642\ua644\ua646\ua648\ua64a\ua64c\ua64e\ua650\ua652\ua654\ua656\ua658\ua65a\ua65c\ua65e\ua660\ua662\ua664\ua666\ua668\ua66a\ua66c\ua680\ua682\ua684\ua686\ua688\ua68a\ua68c\ua68e\ua690\ua692\ua694\ua696\ua698\ua69a\ua722\ua724\ua726\ua728\ua72a\ua72c\ua72e\ua732\ua734\ua736\ua738\ua73a\ua73c\ua73e\ua740\ua742\ua744\ua746\ua748\ua74a\ua74c\ua74e\ua750\ua752\ua754\ua756\ua758\ua75a\ua75c\ua75e\ua760\ua762\ua764\ua766\ua768\ua76a\ua76c\ua76e\ua779\ua77b\ua77d\ua77e\ua780\ua782\ua784\ua786\ua78b\ua78d\ua790\ua792\ua796\ua798\ua79a\ua79c\ua79e\ua7a0\ua7a2\ua7a4\ua7a6\ua7a8\ua7aa-\ua7ae\ua7b0-\ua7b4\ua7b6\ua7b8\ua7ba\ua7bc\ua7be\ua7c2\ua7c4-\ua7c7\ua7c9\ua7f5\uff21-\uff3a",astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud81b[\ude40-\ude5f]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]"},{name:"M",alias:"Mark",bmp:"\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d3-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c04\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u1885\u1886\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1ac0\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1df9\u1dfb-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8e0-\ua8f1\ua8ff\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f",astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud803[\udd24-\udd27\udeab\udeac\udf46-\udf50]|\ud804[\udc00-\udc02\udc38-\udc46\udc7f-\udc82\udcb0-\udcba\udd00-\udd02\udd27-\udd34\udd45\udd46\udd73\udd80-\udd82\uddb3-\uddc0\uddc9-\uddcc\uddce\uddcf\ude2c-\ude37\ude3e\udedf-\udeea\udf00-\udf03\udf3b\udf3c\udf3e-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc35-\udc46\udc5e\udcb0-\udcc3\uddaf-\uddb5\uddb8-\uddc0\udddc\udddd\ude30-\ude40\udeab-\udeb7\udf1d-\udf2b]|\ud806[\udc2c-\udc3a\udd30-\udd35\udd37\udd38\udd3b-\udd3e\udd40\udd42\udd43\uddd1-\uddd7\uddda-\udde0\udde4\ude01-\ude0a\ude33-\ude39\ude3b-\ude3e\ude47\ude51-\ude5b\ude8a-\ude99]|\ud807[\udc2f-\udc36\udc38-\udc3f\udc92-\udca7\udca9-\udcb6\udd31-\udd36\udd3a\udd3c\udd3d\udd3f-\udd45\udd47\udd8a-\udd8e\udd90\udd91\udd93-\udd97\udef3-\udef6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf4f\udf51-\udf87\udf8f-\udf92\udfe4\udff0\udff1]|\ud82f[\udc9d\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a\udd30-\udd36\udeec-\udeef]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},{name:"Mc",alias:"Spacing_Mark",bmp:"\u0903\u093b\u093e-\u0940\u0949-\u094c\u094e\u094f\u0982\u0983\u09be-\u09c0\u09c7\u09c8\u09cb\u09cc\u09d7\u0a03\u0a3e-\u0a40\u0a83\u0abe-\u0ac0\u0ac9\u0acb\u0acc\u0b02\u0b03\u0b3e\u0b40\u0b47\u0b48\u0b4b\u0b4c\u0b57\u0bbe\u0bbf\u0bc1\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd7\u0c01-\u0c03\u0c41-\u0c44\u0c82\u0c83\u0cbe\u0cc0-\u0cc4\u0cc7\u0cc8\u0cca\u0ccb\u0cd5\u0cd6\u0d02\u0d03\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d57\u0d82\u0d83\u0dcf-\u0dd1\u0dd8-\u0ddf\u0df2\u0df3\u0f3e\u0f3f\u0f7f\u102b\u102c\u1031\u1038\u103b\u103c\u1056\u1057\u1062-\u1064\u1067-\u106d\u1083\u1084\u1087-\u108c\u108f\u109a-\u109c\u17b6\u17be-\u17c5\u17c7\u17c8\u1923-\u1926\u1929-\u192b\u1930\u1931\u1933-\u1938\u1a19\u1a1a\u1a55\u1a57\u1a61\u1a63\u1a64\u1a6d-\u1a72\u1b04\u1b35\u1b3b\u1b3d-\u1b41\u1b43\u1b44\u1b82\u1ba1\u1ba6\u1ba7\u1baa\u1be7\u1bea-\u1bec\u1bee\u1bf2\u1bf3\u1c24-\u1c2b\u1c34\u1c35\u1ce1\u1cf7\u302e\u302f\ua823\ua824\ua827\ua880\ua881\ua8b4-\ua8c3\ua952\ua953\ua983\ua9b4\ua9b5\ua9ba\ua9bb\ua9be-\ua9c0\uaa2f\uaa30\uaa33\uaa34\uaa4d\uaa7b\uaa7d\uaaeb\uaaee\uaaef\uaaf5\uabe3\uabe4\uabe6\uabe7\uabe9\uabea\uabec",astral:"\ud804[\udc00\udc02\udc82\udcb0-\udcb2\udcb7\udcb8\udd2c\udd45\udd46\udd82\uddb3-\uddb5\uddbf\uddc0\uddce\ude2c-\ude2e\ude32\ude33\ude35\udee0-\udee2\udf02\udf03\udf3e\udf3f\udf41-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63]|\ud805[\udc35-\udc37\udc40\udc41\udc45\udcb0-\udcb2\udcb9\udcbb-\udcbe\udcc1\uddaf-\uddb1\uddb8-\uddbb\uddbe\ude30-\ude32\ude3b\ude3c\ude3e\udeac\udeae\udeaf\udeb6\udf20\udf21\udf26]|\ud806[\udc2c-\udc2e\udc38\udd30-\udd35\udd37\udd38\udd3d\udd40\udd42\uddd1-\uddd3\udddc-\udddf\udde4\ude39\ude57\ude58\ude97]|\ud807[\udc2f\udc3e\udca9\udcb1\udcb4\udd8a-\udd8e\udd93\udd94\udd96\udef5\udef6]|\ud81b[\udf51-\udf87\udff0\udff1]|\ud834[\udd65\udd66\udd6d-\udd72]"},{name:"Me",alias:"Enclosing_Mark",bmp:"\u0488\u0489\u1abe\u20dd-\u20e0\u20e2-\u20e4\ua670-\ua672"},{name:"Mn",alias:"Nonspacing_Mark",bmp:"\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d3-\u08e1\u08e3-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962\u0963\u0981\u09bc\u09c1-\u09c4\u09cd\u09e2\u09e3\u09fe\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0afa-\u0aff\u0b01\u0b3c\u0b3f\u0b41-\u0b44\u0b4d\u0b55\u0b56\u0b62\u0b63\u0b82\u0bc0\u0bcd\u0c00\u0c04\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81\u0cbc\u0cbf\u0cc6\u0ccc\u0ccd\u0ce2\u0ce3\u0d00\u0d01\u0d3b\u0d3c\u0d41-\u0d44\u0d4d\u0d62\u0d63\u0d81\u0dca\u0dd2-\u0dd4\u0dd6\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u1885\u1886\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a1b\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1ab0-\u1abd\u1abf\u1ac0\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1bab-\u1bad\u1be6\u1be8\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8\u1cf9\u1dc0-\u1df9\u1dfb-\u1dff\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u3099\u309a\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua82c\ua8c4\ua8c5\ua8e0-\ua8f1\ua8ff\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\ua9bd\ua9e5\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaa7c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaec\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f",astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud803[\udd24-\udd27\udeab\udeac\udf46-\udf50]|\ud804[\udc01\udc38-\udc46\udc7f-\udc81\udcb3-\udcb6\udcb9\udcba\udd00-\udd02\udd27-\udd2b\udd2d-\udd34\udd73\udd80\udd81\uddb6-\uddbe\uddc9-\uddcc\uddcf\ude2f-\ude31\ude34\ude36\ude37\ude3e\udedf\udee3-\udeea\udf00\udf01\udf3b\udf3c\udf40\udf66-\udf6c\udf70-\udf74]|\ud805[\udc38-\udc3f\udc42-\udc44\udc46\udc5e\udcb3-\udcb8\udcba\udcbf\udcc0\udcc2\udcc3\uddb2-\uddb5\uddbc\uddbd\uddbf\uddc0\udddc\udddd\ude33-\ude3a\ude3d\ude3f\ude40\udeab\udead\udeb0-\udeb5\udeb7\udf1d-\udf1f\udf22-\udf25\udf27-\udf2b]|\ud806[\udc2f-\udc37\udc39\udc3a\udd3b\udd3c\udd3e\udd43\uddd4-\uddd7\uddda\udddb\udde0\ude01-\ude0a\ude33-\ude38\ude3b-\ude3e\ude47\ude51-\ude56\ude59-\ude5b\ude8a-\ude96\ude98\ude99]|\ud807[\udc30-\udc36\udc38-\udc3d\udc3f\udc92-\udca7\udcaa-\udcb0\udcb2\udcb3\udcb5\udcb6\udd31-\udd36\udd3a\udd3c\udd3d\udd3f-\udd45\udd47\udd90\udd91\udd95\udd97\udef3\udef4]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf4f\udf8f-\udf92\udfe4]|\ud82f[\udc9d\udc9e]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a\udd30-\udd36\udeec-\udeef]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},{name:"N",alias:"Number",bmp:"0-9\xb2\xb3\xb9\xbc-\xbe\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u09f4-\u09f9\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0b72-\u0b77\u0be6-\u0bf2\u0c66-\u0c6f\u0c78-\u0c7e\u0ce6-\u0cef\u0d58-\u0d5e\u0d66-\u0d78\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f33\u1040-\u1049\u1090-\u1099\u1369-\u137c\u16ee-\u16f0\u17e0-\u17e9\u17f0-\u17f9\u1810-\u1819\u1946-\u194f\u19d0-\u19da\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249b\u24ea-\u24ff\u2776-\u2793\u2cfd\u3007\u3021-\u3029\u3038-\u303a\u3192-\u3195\u3220-\u3229\u3248-\u324f\u3251-\u325f\u3280-\u3289\u32b1-\u32bf\ua620-\ua629\ua6e6-\ua6ef\ua830-\ua835\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19",astral:"\ud800[\udd07-\udd33\udd40-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23\udf41\udf4a\udfd1-\udfd5]|\ud801[\udca0-\udca9]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude48\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\udd30-\udd39\ude60-\ude7e\udf1d-\udf26\udf51-\udf54\udfc5-\udfcb]|\ud804[\udc52-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udde1-\uddf4\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf3b]|\ud806[\udce0-\udcf2\udd50-\udd59]|\ud807[\udc50-\udc6c\udd50-\udd59\udda0-\udda9\udfc0-\udfd4]|\ud809[\udc00-\udc6e]|\ud81a[\ude60-\ude69\udf50-\udf59\udf5b-\udf61]|\ud81b[\ude80-\ude96]|\ud834[\udee0-\udef3\udf60-\udf78]|\ud835[\udfce-\udfff]|\ud838[\udd40-\udd49\udef0-\udef9]|\ud83a[\udcc7-\udccf\udd50-\udd59]|\ud83b[\udc71-\udcab\udcad-\udcaf\udcb1-\udcb4\udd01-\udd2d\udd2f-\udd3d]|\ud83c[\udd00-\udd0c]|\ud83e[\udff0-\udff9]"},{name:"Nd",alias:"Decimal_Number",bmp:"0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19",astral:"\ud801[\udca0-\udca9]|\ud803[\udd30-\udd39]|\ud804[\udc66-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf39]|\ud806[\udce0-\udce9\udd50-\udd59]|\ud807[\udc50-\udc59\udd50-\udd59\udda0-\udda9]|\ud81a[\ude60-\ude69\udf50-\udf59]|\ud835[\udfce-\udfff]|\ud838[\udd40-\udd49\udef0-\udef9]|\ud83a[\udd50-\udd59]|\ud83e[\udff0-\udff9]"},{name:"Nl",alias:"Letter_Number",bmp:"\u16ee-\u16f0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303a\ua6e6-\ua6ef",astral:"\ud800[\udd40-\udd74\udf41\udf4a\udfd1-\udfd5]|\ud809[\udc00-\udc6e]"},{name:"No",alias:"Other_Number",bmp:"\xb2\xb3\xb9\xbc-\xbe\u09f4-\u09f9\u0b72-\u0b77\u0bf0-\u0bf2\u0c78-\u0c7e\u0d58-\u0d5e\u0d70-\u0d78\u0f2a-\u0f33\u1369-\u137c\u17f0-\u17f9\u19da\u2070\u2074-\u2079\u2080-\u2089\u2150-\u215f\u2189\u2460-\u249b\u24ea-\u24ff\u2776-\u2793\u2cfd\u3192-\u3195\u3220-\u3229\u3248-\u324f\u3251-\u325f\u3280-\u3289\u32b1-\u32bf\ua830-\ua835",astral:"\ud800[\udd07-\udd33\udd75-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude48\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e\udf1d-\udf26\udf51-\udf54\udfc5-\udfcb]|\ud804[\udc52-\udc65\udde1-\uddf4]|\ud805[\udf3a\udf3b]|\ud806[\udcea-\udcf2]|\ud807[\udc5a-\udc6c\udfc0-\udfd4]|\ud81a[\udf5b-\udf61]|\ud81b[\ude80-\ude96]|\ud834[\udee0-\udef3\udf60-\udf78]|\ud83a[\udcc7-\udccf]|\ud83b[\udc71-\udcab\udcad-\udcaf\udcb1-\udcb4\udd01-\udd2d\udd2f-\udd3d]|\ud83c[\udd00-\udd0c]"},{name:"P",alias:"Punctuation",bmp:"!-#%-\\*,-\\/:;\\?@\\[-\\]_\\{\\}\xa1\xa7\xab\xb6\xb7\xbb\xbf\u037e\u0387\u055a-\u055f\u0589\u058a\u05be\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u09fd\u0a76\u0af0\u0c77\u0c84\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f14\u0f3a-\u0f3d\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1360-\u1368\u1400\u166e\u169b\u169c\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cc0-\u1cc7\u1cd3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205e\u207d\u207e\u208d\u208e\u2308-\u230b\u2329\u232a\u2768-\u2775\u27c5\u27c6\u27e6-\u27ef\u2983-\u2998\u29d8-\u29db\u29fc\u29fd\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00-\u2e2e\u2e30-\u2e4f\u2e52\u3001-\u3003\u3008-\u3011\u3014-\u301f\u3030\u303d\u30a0\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua8fc\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uaaf0\uaaf1\uabeb\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe61\ufe63\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff0a\uff0c-\uff0f\uff1a\uff1b\uff1f\uff20\uff3b-\uff3d\uff3f\uff5b\uff5d\uff5f-\uff65",astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801\udd6f|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud803[\udead\udf55-\udf59]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc8\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5a\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud806[\udc3b\udd44-\udd46\udde2\ude3f-\ude46\ude9a-\ude9c\ude9e-\udea2]|\ud807[\udc41-\udc45\udc70\udc71\udef7\udef8\udfff]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|\ud81b[\ude97-\ude9a\udfe2]|\ud82f\udc9f|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},{name:"Pc",alias:"Connector_Punctuation",bmp:"_\u203f\u2040\u2054\ufe33\ufe34\ufe4d-\ufe4f\uff3f"},{name:"Pd",alias:"Dash_Punctuation",bmp:"\\-\u058a\u05be\u1400\u1806\u2010-\u2015\u2e17\u2e1a\u2e3a\u2e3b\u2e40\u301c\u3030\u30a0\ufe31\ufe32\ufe58\ufe63\uff0d",astral:"\ud803\udead"},{name:"Pe",alias:"Close_Punctuation",bmp:"\\)\\]\\}\u0f3b\u0f3d\u169c\u2046\u207e\u208e\u2309\u230b\u232a\u2769\u276b\u276d\u276f\u2771\u2773\u2775\u27c6\u27e7\u27e9\u27eb\u27ed\u27ef\u2984\u2986\u2988\u298a\u298c\u298e\u2990\u2992\u2994\u2996\u2998\u29d9\u29db\u29fd\u2e23\u2e25\u2e27\u2e29\u3009\u300b\u300d\u300f\u3011\u3015\u3017\u3019\u301b\u301e\u301f\ufd3e\ufe18\ufe36\ufe38\ufe3a\ufe3c\ufe3e\ufe40\ufe42\ufe44\ufe48\ufe5a\ufe5c\ufe5e\uff09\uff3d\uff5d\uff60\uff63"},{name:"Pf",alias:"Final_Punctuation",bmp:"\xbb\u2019\u201d\u203a\u2e03\u2e05\u2e0a\u2e0d\u2e1d\u2e21"},{name:"Pi",alias:"Initial_Punctuation",bmp:"\xab\u2018\u201b\u201c\u201f\u2039\u2e02\u2e04\u2e09\u2e0c\u2e1c\u2e20"},{name:"Po",alias:"Other_Punctuation",bmp:"!-#%-'\\*,\\.\\/:;\\?@\\\xa1\xa7\xb6\xb7\xbf\u037e\u0387\u055a-\u055f\u0589\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u09fd\u0a76\u0af0\u0c77\u0c84\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f14\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1360-\u1368\u166e\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u1805\u1807-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cc0-\u1cc7\u1cd3\u2016\u2017\u2020-\u2027\u2030-\u2038\u203b-\u203e\u2041-\u2043\u2047-\u2051\u2053\u2055-\u205e\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00\u2e01\u2e06-\u2e08\u2e0b\u2e0e-\u2e16\u2e18\u2e19\u2e1b\u2e1e\u2e1f\u2e2a-\u2e2e\u2e30-\u2e39\u2e3c-\u2e3f\u2e41\u2e43-\u2e4f\u2e52\u3001-\u3003\u303d\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua8fc\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uaaf0\uaaf1\uabeb\ufe10-\ufe16\ufe19\ufe30\ufe45\ufe46\ufe49-\ufe4c\ufe50-\ufe52\ufe54-\ufe57\ufe5f-\ufe61\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff07\uff0a\uff0c\uff0e\uff0f\uff1a\uff1b\uff1f\uff20\uff3c\uff61\uff64\uff65",astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801\udd6f|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud803[\udf55-\udf59]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc8\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5a\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud806[\udc3b\udd44-\udd46\udde2\ude3f-\ude46\ude9a-\ude9c\ude9e-\udea2]|\ud807[\udc41-\udc45\udc70\udc71\udef7\udef8\udfff]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|\ud81b[\ude97-\ude9a\udfe2]|\ud82f\udc9f|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},{name:"Ps",alias:"Open_Punctuation",bmp:"\\(\\[\\{\u0f3a\u0f3c\u169b\u201a\u201e\u2045\u207d\u208d\u2308\u230a\u2329\u2768\u276a\u276c\u276e\u2770\u2772\u2774\u27c5\u27e6\u27e8\u27ea\u27ec\u27ee\u2983\u2985\u2987\u2989\u298b\u298d\u298f\u2991\u2993\u2995\u2997\u29d8\u29da\u29fc\u2e22\u2e24\u2e26\u2e28\u2e42\u3008\u300a\u300c\u300e\u3010\u3014\u3016\u3018\u301a\u301d\ufd3f\ufe17\ufe35\ufe37\ufe39\ufe3b\ufe3d\ufe3f\ufe41\ufe43\ufe47\ufe59\ufe5b\ufe5d\uff08\uff3b\uff5b\uff5f\uff62"},{name:"S",alias:"Symbol",bmp:"\\$\\+<->\\^`\\|~\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd",astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9c\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|\ud805\udf3f|\ud807[\udfd5-\udff1]|\ud81a[\udf3c-\udf3f\udf45]|\ud82f\udc9c|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud838[\udd4f\udeff]|\ud83b[\udcac\udcb0\udd2e\udef0\udef1]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd0d-\uddad\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\ude60-\ude65\udf00-\udfff]|\ud83d[\udc00-\uded7\udee0-\udeec\udef0-\udefc\udf00-\udf73\udf80-\udfd8\udfe0-\udfeb]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udcb0\udcb1\udd00-\udd78\udd7a-\uddcb\uddcd-\ude53\ude60-\ude6d\ude70-\ude74\ude78-\ude7a\ude80-\ude86\ude90-\udea8\udeb0-\udeb6\udec0-\udec2\uded0-\uded6\udf00-\udf92\udf94-\udfca]"},{name:"Sc",alias:"Currency_Symbol",bmp:"\\$\xa2-\xa5\u058f\u060b\u07fe\u07ff\u09f2\u09f3\u09fb\u0af1\u0bf9\u0e3f\u17db\u20a0-\u20bf\ua838\ufdfc\ufe69\uff04\uffe0\uffe1\uffe5\uffe6",astral:"\ud807[\udfdd-\udfe0]|\ud838\udeff|\ud83b\udcb0"},{name:"Sk",alias:"Modifier_Symbol",bmp:"\\^`\xa8\xaf\xb4\xb8\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u309b\u309c\ua700-\ua716\ua720\ua721\ua789\ua78a\uab5b\uab6a\uab6b\ufbb2-\ufbc1\uff3e\uff40\uffe3",astral:"\ud83c[\udffb-\udfff]"},{name:"Sm",alias:"Math_Symbol",bmp:"\\+<->\\|~\xac\xb1\xd7\xf7\u03f6\u0606-\u0608\u2044\u2052\u207a-\u207c\u208a-\u208c\u2118\u2140-\u2144\u214b\u2190-\u2194\u219a\u219b\u21a0\u21a3\u21a6\u21ae\u21ce\u21cf\u21d2\u21d4\u21f4-\u22ff\u2320\u2321\u237c\u239b-\u23b3\u23dc-\u23e1\u25b7\u25c1\u25f8-\u25ff\u266f\u27c0-\u27c4\u27c7-\u27e5\u27f0-\u27ff\u2900-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2aff\u2b30-\u2b44\u2b47-\u2b4c\ufb29\ufe62\ufe64-\ufe66\uff0b\uff1c-\uff1e\uff5c\uff5e\uffe2\uffe9-\uffec",astral:"\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud83b[\udef0\udef1]"},{name:"So",alias:"Other_Symbol",bmp:"\xa6\xa9\xae\xb0\u0482\u058d\u058e\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u09fa\u0b70\u0bf3-\u0bf8\u0bfa\u0c7f\u0d4f\u0d79\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116\u2117\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u214a\u214c\u214d\u214f\u218a\u218b\u2195-\u2199\u219c-\u219f\u21a1\u21a2\u21a4\u21a5\u21a7-\u21ad\u21af-\u21cd\u21d0\u21d1\u21d3\u21d5-\u21f3\u2300-\u2307\u230c-\u231f\u2322-\u2328\u232b-\u237b\u237d-\u239a\u23b4-\u23db\u23e2-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u25b6\u25b8-\u25c0\u25c2-\u25f7\u2600-\u266e\u2670-\u2767\u2794-\u27bf\u2800-\u28ff\u2b00-\u2b2f\u2b45\u2b46\u2b4d-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua828-\ua82b\ua836\ua837\ua839\uaa77-\uaa79\ufdfd\uffe4\uffe8\uffed\uffee\ufffc\ufffd",astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9c\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|\ud805\udf3f|\ud807[\udfd5-\udfdc\udfe1-\udff1]|\ud81a[\udf3c-\udf3f\udf45]|\ud82f\udc9c|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud838\udd4f|\ud83b[\udcac\udd2e]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd0d-\uddad\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\ude60-\ude65\udf00-\udffa]|\ud83d[\udc00-\uded7\udee0-\udeec\udef0-\udefc\udf00-\udf73\udf80-\udfd8\udfe0-\udfeb]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udcb0\udcb1\udd00-\udd78\udd7a-\uddcb\uddcd-\ude53\ude60-\ude6d\ude70-\ude74\ude78-\ude7a\ude80-\ude86\ude90-\udea8\udeb0-\udeb6\udec0-\udec2\uded0-\uded6\udf00-\udf92\udf94-\udfca]"},{name:"Z",alias:"Separator",bmp:" \xa0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000"},{name:"Zl",alias:"Line_Separator",bmp:"\u2028"},{name:"Zp",alias:"Paragraph_Separator",bmp:"\u2029"},{name:"Zs",alias:"Space_Separator",bmp:" \xa0\u1680\u2000-\u200a\u202f\u205f\u3000"}],tg=Is((function(e,t){xu(t,"__esModule",{value:!0}),t.default=void 0;var r=ks(eg);t.default=function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");e.addUnicodeData(r.default)},e.exports=t.default}));Ss(tg);var rg=[{name:"ASCII",bmp:"\0-\x7f"},{name:"Alphabetic",bmp:"A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0345\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05b0-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0657\u0659-\u065f\u066e-\u06d3\u06d5-\u06dc\u06e1-\u06e8\u06ed-\u06ef\u06fa-\u06fc\u06ff\u0710-\u073f\u074d-\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0817\u081a-\u082c\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08c7\u08d4-\u08df\u08e3-\u08e9\u08f0-\u093b\u093d-\u094c\u094e-\u0950\u0955-\u0963\u0971-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd-\u09c4\u09c7\u09c8\u09cb\u09cc\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09f0\u09f1\u09fc\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3e-\u0a42\u0a47\u0a48\u0a4b\u0a4c\u0a51\u0a59-\u0a5c\u0a5e\u0a70-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd-\u0ac5\u0ac7-\u0ac9\u0acb\u0acc\u0ad0\u0ae0-\u0ae3\u0af9-\u0afc\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d-\u0b44\u0b47\u0b48\u0b4b\u0b4c\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b71\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0c00-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4c\u0c55\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccc\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0cf1\u0cf2\u0d00-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d7a-\u0d7f\u0d81-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e01-\u0e3a\u0e40-\u0e46\u0e4d\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ecd\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f71-\u0f81\u0f88-\u0f97\u0f99-\u0fbc\u1000-\u1036\u1038\u103b-\u103f\u1050-\u108f\u109a-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1713\u1720-\u1733\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772\u1773\u1780-\u17b3\u17b6-\u17c8\u17d7\u17dc\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u1938\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a1b\u1a20-\u1a5e\u1a61-\u1a74\u1aa7\u1abf\u1ac0\u1b00-\u1b33\u1b35-\u1b43\u1b45-\u1b4b\u1b80-\u1ba9\u1bac-\u1baf\u1bba-\u1be5\u1be7-\u1bf1\u1c00-\u1c36\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1de7-\u1df4\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u24b6-\u24e9\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\u9ffc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua674-\ua67b\ua67f-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7ca\ua7f5-\ua805\ua807-\ua827\ua840-\ua873\ua880-\ua8c3\ua8c5\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8ff\ua90a-\ua92a\ua930-\ua952\ua960-\ua97c\ua980-\ua9b2\ua9b4-\ua9bf\ua9cf\ua9e0-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa60-\uaa76\uaa7a-\uaabe\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabea\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\ude80-\udea9\udeab\udeac\udeb0\udeb1\udf00-\udf1c\udf27\udf30-\udf45\udfb0-\udfc4\udfe0-\udff6]|\ud804[\udc00-\udc45\udc82-\udcb8\udcd0-\udce8\udd00-\udd32\udd44-\udd47\udd50-\udd72\udd76\udd80-\uddbf\uddc1-\uddc4\uddce\uddcf\uddda\udddc\ude00-\ude11\ude13-\ude34\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udee8\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d-\udf44\udf47\udf48\udf4b\udf4c\udf50\udf57\udf5d-\udf63]|\ud805[\udc00-\udc41\udc43-\udc45\udc47-\udc4a\udc5f-\udc61\udc80-\udcc1\udcc4\udcc5\udcc7\udd80-\uddb5\uddb8-\uddbe\uddd8-\udddd\ude00-\ude3e\ude40\ude44\ude80-\udeb5\udeb8\udf00-\udf1a\udf1d-\udf2a]|\ud806[\udc00-\udc38\udca0-\udcdf\udcff-\udd06\udd09\udd0c-\udd13\udd15\udd16\udd18-\udd35\udd37\udd38\udd3b\udd3c\udd3f-\udd42\udda0-\udda7\uddaa-\uddd7\uddda-\udddf\udde1\udde3\udde4\ude00-\ude32\ude35-\ude3e\ude50-\ude97\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc3e\udc40\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08\udd09\udd0b-\udd36\udd3a\udd3c\udd3d\udd3f-\udd41\udd43\udd46\udd47\udd60-\udd65\udd67\udd68\udd6a-\udd8e\udd90\udd91\udd93-\udd96\udd98\udee0-\udef6\udfb0]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud822\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872\ud874-\ud879\ud880-\ud883][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0\udfe1\udfe3\udff0\udff1]|\ud821[\udc00-\udff7]|\ud823[\udc00-\udcd5\udd00-\udd08]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9e]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd47\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]|\ud869[\udc00-\udedd\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\ud884[\udc00-\udf4a]"},{name:"Any",isBmpLast:!0,bmp:"\0-\uffff",astral:"[\ud800-\udbff][\udc00-\udfff]"},{name:"Default_Ignorable_Code_Point",bmp:"\xad\u034f\u061c\u115f\u1160\u17b4\u17b5\u180b-\u180e\u200b-\u200f\u202a-\u202e\u2060-\u206f\u3164\ufe00-\ufe0f\ufeff\uffa0\ufff0-\ufff8",astral:"\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|[\udb40-\udb43][\udc00-\udfff]"},{name:"Lowercase",bmp:"a-z\xaa\xb5\xba\xdf-\xf6\xf8-\xff\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0131\u0133\u0135\u0137\u0138\u013a\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u0149\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\u017a\u017c\u017e-\u0180\u0183\u0185\u0188\u018c\u018d\u0192\u0195\u0199-\u019b\u019e\u01a1\u01a3\u01a5\u01a8\u01aa\u01ab\u01ad\u01b0\u01b4\u01b6\u01b9\u01ba\u01bd-\u01bf\u01c6\u01c9\u01cc\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01dd\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f0\u01f3\u01f5\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u0221\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233-\u0239\u023c\u023f\u0240\u0242\u0247\u0249\u024b\u024d\u024f-\u0293\u0295-\u02b8\u02c0\u02c1\u02e0-\u02e4\u0345\u0371\u0373\u0377\u037a-\u037d\u0390\u03ac-\u03ce\u03d0\u03d1\u03d5-\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef-\u03f3\u03f5\u03f8\u03fb\u03fc\u0430-\u045f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04cf\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0560-\u0588\u10d0-\u10fa\u10fd-\u10ff\u13f8-\u13fd\u1c80-\u1c88\u1d00-\u1dbf\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95-\u1e9d\u1e9f\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff-\u1f07\u1f10-\u1f15\u1f20-\u1f27\u1f30-\u1f37\u1f40-\u1f45\u1f50-\u1f57\u1f60-\u1f67\u1f70-\u1f7d\u1f80-\u1f87\u1f90-\u1f97\u1fa0-\u1fa7\u1fb0-\u1fb4\u1fb6\u1fb7\u1fbe\u1fc2-\u1fc4\u1fc6\u1fc7\u1fd0-\u1fd3\u1fd6\u1fd7\u1fe0-\u1fe7\u1ff2-\u1ff4\u1ff6\u1ff7\u2071\u207f\u2090-\u209c\u210a\u210e\u210f\u2113\u212f\u2134\u2139\u213c\u213d\u2146-\u2149\u214e\u2170-\u217f\u2184\u24d0-\u24e9\u2c30-\u2c5e\u2c61\u2c65\u2c66\u2c68\u2c6a\u2c6c\u2c71\u2c73\u2c74\u2c76-\u2c7d\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2ce4\u2cec\u2cee\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua641\ua643\ua645\ua647\ua649\ua64b\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b-\ua69d\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f-\ua731\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f-\ua778\ua77a\ua77c\ua77f\ua781\ua783\ua785\ua787\ua78c\ua78e\ua791\ua793-\ua795\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\ua7af\ua7b5\ua7b7\ua7b9\ua7bb\ua7bd\ua7bf\ua7c3\ua7c8\ua7ca\ua7f6\ua7f8-\ua7fa\uab30-\uab5a\uab5c-\uab68\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff41-\uff5a",astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud81b[\ude60-\ude7f]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Noncharacter_Code_Point",bmp:"\ufdd0-\ufdef\ufffe\uffff",astral:"[\ud83f\ud87f\ud8bf\ud8ff\ud93f\ud97f\ud9bf\ud9ff\uda3f\uda7f\udabf\udaff\udb3f\udb7f\udbbf\udbff][\udffe\udfff]"},{name:"Uppercase",bmp:"A-Z\xc0-\xd6\xd8-\xde\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018e-\u0191\u0193\u0194\u0196-\u0198\u019c\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01bc\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u023a\u023b\u023d\u023e\u0241\u0243-\u0246\u0248\u024a\u024c\u024e\u0370\u0372\u0376\u037f\u0386\u0388-\u038a\u038c\u038e\u038f\u0391-\u03a1\u03a3-\u03ab\u03cf\u03d2-\u03d4\u03d8\u03da\u03dc\u03de\u03e0\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03f9\u03fa\u03fd-\u042f\u0460\u0462\u0464\u0466\u0468\u046a\u046c\u046e\u0470\u0472\u0474\u0476\u0478\u047a\u047c\u047e\u0480\u048a\u048c\u048e\u0490\u0492\u0494\u0496\u0498\u049a\u049c\u049e\u04a0\u04a2\u04a4\u04a6\u04a8\u04aa\u04ac\u04ae\u04b0\u04b2\u04b4\u04b6\u04b8\u04ba\u04bc\u04be\u04c0\u04c1\u04c3\u04c5\u04c7\u04c9\u04cb\u04cd\u04d0\u04d2\u04d4\u04d6\u04d8\u04da\u04dc\u04de\u04e0\u04e2\u04e4\u04e6\u04e8\u04ea\u04ec\u04ee\u04f0\u04f2\u04f4\u04f6\u04f8\u04fa\u04fc\u04fe\u0500\u0502\u0504\u0506\u0508\u050a\u050c\u050e\u0510\u0512\u0514\u0516\u0518\u051a\u051c\u051e\u0520\u0522\u0524\u0526\u0528\u052a\u052c\u052e\u0531-\u0556\u10a0-\u10c5\u10c7\u10cd\u13a0-\u13f5\u1c90-\u1cba\u1cbd-\u1cbf\u1e00\u1e02\u1e04\u1e06\u1e08\u1e0a\u1e0c\u1e0e\u1e10\u1e12\u1e14\u1e16\u1e18\u1e1a\u1e1c\u1e1e\u1e20\u1e22\u1e24\u1e26\u1e28\u1e2a\u1e2c\u1e2e\u1e30\u1e32\u1e34\u1e36\u1e38\u1e3a\u1e3c\u1e3e\u1e40\u1e42\u1e44\u1e46\u1e48\u1e4a\u1e4c\u1e4e\u1e50\u1e52\u1e54\u1e56\u1e58\u1e5a\u1e5c\u1e5e\u1e60\u1e62\u1e64\u1e66\u1e68\u1e6a\u1e6c\u1e6e\u1e70\u1e72\u1e74\u1e76\u1e78\u1e7a\u1e7c\u1e7e\u1e80\u1e82\u1e84\u1e86\u1e88\u1e8a\u1e8c\u1e8e\u1e90\u1e92\u1e94\u1e9e\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ec8\u1eca\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u1ef2\u1ef4\u1ef6\u1ef8\u1efa\u1efc\u1efe\u1f08-\u1f0f\u1f18-\u1f1d\u1f28-\u1f2f\u1f38-\u1f3f\u1f48-\u1f4d\u1f59\u1f5b\u1f5d\u1f5f\u1f68-\u1f6f\u1fb8-\u1fbb\u1fc8-\u1fcb\u1fd8-\u1fdb\u1fe8-\u1fec\u1ff8-\u1ffb\u2102\u2107\u210b-\u210d\u2110-\u2112\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u2130-\u2133\u213e\u213f\u2145\u2160-\u216f\u2183\u24b6-\u24cf\u2c00-\u2c2e\u2c60\u2c62-\u2c64\u2c67\u2c69\u2c6b\u2c6d-\u2c70\u2c72\u2c75\u2c7e-\u2c80\u2c82\u2c84\u2c86\u2c88\u2c8a\u2c8c\u2c8e\u2c90\u2c92\u2c94\u2c96\u2c98\u2c9a\u2c9c\u2c9e\u2ca0\u2ca2\u2ca4\u2ca6\u2ca8\u2caa\u2cac\u2cae\u2cb0\u2cb2\u2cb4\u2cb6\u2cb8\u2cba\u2cbc\u2cbe\u2cc0\u2cc2\u2cc4\u2cc6\u2cc8\u2cca\u2ccc\u2cce\u2cd0\u2cd2\u2cd4\u2cd6\u2cd8\u2cda\u2cdc\u2cde\u2ce0\u2ce2\u2ceb\u2ced\u2cf2\ua640\ua642\ua644\ua646\ua648\ua64a\ua64c\ua64e\ua650\ua652\ua654\ua656\ua658\ua65a\ua65c\ua65e\ua660\ua662\ua664\ua666\ua668\ua66a\ua66c\ua680\ua682\ua684\ua686\ua688\ua68a\ua68c\ua68e\ua690\ua692\ua694\ua696\ua698\ua69a\ua722\ua724\ua726\ua728\ua72a\ua72c\ua72e\ua732\ua734\ua736\ua738\ua73a\ua73c\ua73e\ua740\ua742\ua744\ua746\ua748\ua74a\ua74c\ua74e\ua750\ua752\ua754\ua756\ua758\ua75a\ua75c\ua75e\ua760\ua762\ua764\ua766\ua768\ua76a\ua76c\ua76e\ua779\ua77b\ua77d\ua77e\ua780\ua782\ua784\ua786\ua78b\ua78d\ua790\ua792\ua796\ua798\ua79a\ua79c\ua79e\ua7a0\ua7a2\ua7a4\ua7a6\ua7a8\ua7aa-\ua7ae\ua7b0-\ua7b4\ua7b6\ua7b8\ua7ba\ua7bc\ua7be\ua7c2\ua7c4-\ua7c7\ua7c9\ua7f5\uff21-\uff3a",astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud81b[\ude40-\ude5f]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]"},{name:"White_Space",bmp:"\t-\r \x85\xa0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000"}],ng=Is((function(e,t){xu(t,"__esModule",{value:!0}),t.default=void 0;var r=ks(rg);t.default=function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var t=r.default;t.push({name:"Assigned",inverseOf:"Cn"}),e.addUnicodeData(t)},e.exports=t.default}));Ss(ng);var ig=[{name:"Adlam",astral:"\ud83a[\udd00-\udd4b\udd50-\udd59\udd5e\udd5f]"},{name:"Ahom",astral:"\ud805[\udf00-\udf1a\udf1d-\udf2b\udf30-\udf3f]"},{name:"Anatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude46]"},{name:"Arabic",bmp:"\u0600-\u0604\u0606-\u060b\u060d-\u061a\u061c\u061e\u0620-\u063f\u0641-\u064a\u0656-\u066f\u0671-\u06dc\u06de-\u06ff\u0750-\u077f\u08a0-\u08b4\u08b6-\u08c7\u08d3-\u08e1\u08e3-\u08ff\ufb50-\ufbc1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfd\ufe70-\ufe74\ufe76-\ufefc",astral:"\ud803[\ude60-\ude7e]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb\udef0\udef1]"},{name:"Armenian",bmp:"\u0531-\u0556\u0559-\u058a\u058d-\u058f\ufb13-\ufb17"},{name:"Avestan",astral:"\ud802[\udf00-\udf35\udf39-\udf3f]"},{name:"Balinese",bmp:"\u1b00-\u1b4b\u1b50-\u1b7c"},{name:"Bamum",bmp:"\ua6a0-\ua6f7",astral:"\ud81a[\udc00-\ude38]"},{name:"Bassa_Vah",astral:"\ud81a[\uded0-\udeed\udef0-\udef5]"},{name:"Batak",bmp:"\u1bc0-\u1bf3\u1bfc-\u1bff"},{name:"Bengali",bmp:"\u0980-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7\u09c8\u09cb-\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09e6-\u09fe"},{name:"Bhaiksuki",astral:"\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc45\udc50-\udc6c]"},{name:"Bopomofo",bmp:"\u02ea\u02eb\u3105-\u312f\u31a0-\u31bf"},{name:"Brahmi",astral:"\ud804[\udc00-\udc4d\udc52-\udc6f\udc7f]"},{name:"Braille",bmp:"\u2800-\u28ff"},{name:"Buginese",bmp:"\u1a00-\u1a1b\u1a1e\u1a1f"},{name:"Buhid",bmp:"\u1740-\u1753"},{name:"Canadian_Aboriginal",bmp:"\u1400-\u167f\u18b0-\u18f5"},{name:"Carian",astral:"\ud800[\udea0-\uded0]"},{name:"Caucasian_Albanian",astral:"\ud801[\udd30-\udd63\udd6f]"},{name:"Chakma",astral:"\ud804[\udd00-\udd34\udd36-\udd47]"},{name:"Cham",bmp:"\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa5c-\uaa5f"},{name:"Cherokee",bmp:"\u13a0-\u13f5\u13f8-\u13fd\uab70-\uabbf"},{name:"Chorasmian",astral:"\ud803[\udfb0-\udfcb]"},{name:"Common",bmp:"\0-@\\[-`\\{-\xa9\xab-\xb9\xbb-\xbf\xd7\xf7\u02b9-\u02df\u02e5-\u02e9\u02ec-\u02ff\u0374\u037e\u0385\u0387\u0605\u060c\u061b\u061f\u0640\u06dd\u08e2\u0964\u0965\u0e3f\u0fd5-\u0fd8\u10fb\u16eb-\u16ed\u1735\u1736\u1802\u1803\u1805\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf7\u1cfa\u2000-\u200b\u200e-\u2064\u2066-\u2070\u2074-\u207e\u2080-\u208e\u20a0-\u20bf\u2100-\u2125\u2127-\u2129\u212c-\u2131\u2133-\u214d\u214f-\u215f\u2189-\u218b\u2190-\u2426\u2440-\u244a\u2460-\u27ff\u2900-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2e00-\u2e52\u2ff0-\u2ffb\u3000-\u3004\u3006\u3008-\u3020\u3030-\u3037\u303c-\u303f\u309b\u309c\u30a0\u30fb\u30fc\u3190-\u319f\u31c0-\u31e3\u3220-\u325f\u327f-\u32cf\u32ff\u3358-\u33ff\u4dc0-\u4dff\ua700-\ua721\ua788-\ua78a\ua830-\ua839\ua92e\ua9cf\uab5b\uab6a\uab6b\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe66\ufe68-\ufe6b\ufeff\uff01-\uff20\uff3b-\uff40\uff5b-\uff65\uff70\uff9e\uff9f\uffe0-\uffe6\uffe8-\uffee\ufff9-\ufffd",astral:"\ud800[\udd00-\udd02\udd07-\udd33\udd37-\udd3f\udd90-\udd9c\uddd0-\uddfc\udee1-\udefb]|\ud81b[\udfe2\udfe3]|\ud82f[\udca0-\udca3]|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd66\udd6a-\udd7a\udd83\udd84\udd8c-\udda9\uddae-\udde8\udee0-\udef3\udf00-\udf56\udf60-\udf78]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udfcb\udfce-\udfff]|\ud83b[\udc71-\udcb4\udd01-\udd3d]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd00-\uddad\udde6-\uddff\ude01\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\ude60-\ude65\udf00-\udfff]|\ud83d[\udc00-\uded7\udee0-\udeec\udef0-\udefc\udf00-\udf73\udf80-\udfd8\udfe0-\udfeb]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udcb0\udcb1\udd00-\udd78\udd7a-\uddcb\uddcd-\ude53\ude60-\ude6d\ude70-\ude74\ude78-\ude7a\ude80-\ude86\ude90-\udea8\udeb0-\udeb6\udec0-\udec2\uded0-\uded6\udf00-\udf92\udf94-\udfca\udff0-\udff9]|\udb40[\udc01\udc20-\udc7f]"},{name:"Coptic",bmp:"\u03e2-\u03ef\u2c80-\u2cf3\u2cf9-\u2cff"},{name:"Cuneiform",astral:"\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc70-\udc74\udc80-\udd43]"},{name:"Cypriot",astral:"\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f]"},{name:"Cyrillic",bmp:"\u0400-\u0484\u0487-\u052f\u1c80-\u1c88\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f"},{name:"Deseret",astral:"\ud801[\udc00-\udc4f]"},{name:"Devanagari",bmp:"\u0900-\u0950\u0955-\u0963\u0966-\u097f\ua8e0-\ua8ff"},{name:"Dives_Akuru",astral:"\ud806[\udd00-\udd06\udd09\udd0c-\udd13\udd15\udd16\udd18-\udd35\udd37\udd38\udd3b-\udd46\udd50-\udd59]"},{name:"Dogra",astral:"\ud806[\udc00-\udc3b]"},{name:"Duployan",astral:"\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9c-\udc9f]"},{name:"Egyptian_Hieroglyphs",astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e\udc30-\udc38]"},{name:"Elbasan",astral:"\ud801[\udd00-\udd27]"},{name:"Elymaic",astral:"\ud803[\udfe0-\udff6]"},{name:"Ethiopic",bmp:"\u1200-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u137c\u1380-\u1399\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e"},{name:"Georgian",bmp:"\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u10ff\u1c90-\u1cba\u1cbd-\u1cbf\u2d00-\u2d25\u2d27\u2d2d"},{name:"Glagolitic",bmp:"\u2c00-\u2c2e\u2c30-\u2c5e",astral:"\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]"},{name:"Gothic",astral:"\ud800[\udf30-\udf4a]"},{name:"Grantha",astral:"\ud804[\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3c-\udf44\udf47\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]"},{name:"Greek",bmp:"\u0370-\u0373\u0375-\u0377\u037a-\u037d\u037f\u0384\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03e1\u03f0-\u03ff\u1d26-\u1d2a\u1d5d-\u1d61\u1d66-\u1d6a\u1dbf\u1f00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fc4\u1fc6-\u1fd3\u1fd6-\u1fdb\u1fdd-\u1fef\u1ff2-\u1ff4\u1ff6-\u1ffe\u2126\uab65",astral:"\ud800[\udd40-\udd8e\udda0]|\ud834[\ude00-\ude45]"},{name:"Gujarati",bmp:"\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0af1\u0af9-\u0aff"},{name:"Gunjala_Gondi",astral:"\ud807[\udd60-\udd65\udd67\udd68\udd6a-\udd8e\udd90\udd91\udd93-\udd98\udda0-\udda9]"},{name:"Gurmukhi",bmp:"\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a76"},{name:"Han",bmp:"\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u3005\u3007\u3021-\u3029\u3038-\u303b\u3400-\u4dbf\u4e00-\u9ffc\uf900-\ufa6d\ufa70-\ufad9",astral:"\ud81b[\udff0\udff1]|[\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872\ud874-\ud879\ud880-\ud883][\udc00-\udfff]|\ud869[\udc00-\udedd\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\ud884[\udc00-\udf4a]"},{name:"Hangul",bmp:"\u1100-\u11ff\u302e\u302f\u3131-\u318e\u3200-\u321e\u3260-\u327e\ua960-\ua97c\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"},{name:"Hanifi_Rohingya",astral:"\ud803[\udd00-\udd27\udd30-\udd39]"},{name:"Hanunoo",bmp:"\u1720-\u1734"},{name:"Hatran",astral:"\ud802[\udce0-\udcf2\udcf4\udcf5\udcfb-\udcff]"},{name:"Hebrew",bmp:"\u0591-\u05c7\u05d0-\u05ea\u05ef-\u05f4\ufb1d-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufb4f"},{name:"Hiragana",bmp:"\u3041-\u3096\u309d-\u309f",astral:"\ud82c[\udc01-\udd1e\udd50-\udd52]|\ud83c\ude00"},{name:"Imperial_Aramaic",astral:"\ud802[\udc40-\udc55\udc57-\udc5f]"},{name:"Inherited",bmp:"\u0300-\u036f\u0485\u0486\u064b-\u0655\u0670\u0951-\u0954\u1ab0-\u1ac0\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8\u1cf9\u1dc0-\u1df9\u1dfb-\u1dff\u200c\u200d\u20d0-\u20f0\u302a-\u302d\u3099\u309a\ufe00-\ufe0f\ufe20-\ufe2d",astral:"\ud800[\uddfd\udee0]|\ud804\udf3b|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad]|\udb40[\udd00-\uddef]"},{name:"Inscriptional_Pahlavi",astral:"\ud802[\udf60-\udf72\udf78-\udf7f]"},{name:"Inscriptional_Parthian",astral:"\ud802[\udf40-\udf55\udf58-\udf5f]"},{name:"Javanese",bmp:"\ua980-\ua9cd\ua9d0-\ua9d9\ua9de\ua9df"},{name:"Kaithi",astral:"\ud804[\udc80-\udcc1\udccd]"},{name:"Kannada",bmp:"\u0c80-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1\u0cf2"},{name:"Katakana",bmp:"\u30a1-\u30fa\u30fd-\u30ff\u31f0-\u31ff\u32d0-\u32fe\u3300-\u3357\uff66-\uff6f\uff71-\uff9d",astral:"\ud82c[\udc00\udd64-\udd67]"},{name:"Kayah_Li",bmp:"\ua900-\ua92d\ua92f"},{name:"Kharoshthi",astral:"\ud802[\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f-\ude48\ude50-\ude58]"},{name:"Khitan_Small_Script",astral:"\ud81b\udfe4|\ud822[\udf00-\udfff]|\ud823[\udc00-\udcd5]"},{name:"Khmer",bmp:"\u1780-\u17dd\u17e0-\u17e9\u17f0-\u17f9\u19e0-\u19ff"},{name:"Khojki",astral:"\ud804[\ude00-\ude11\ude13-\ude3e]"},{name:"Khudawadi",astral:"\ud804[\udeb0-\udeea\udef0-\udef9]"},{name:"Lao",bmp:"\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf"},{name:"Latin",bmp:"A-Za-z\xaa\xba\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u02e0-\u02e4\u1d00-\u1d25\u1d2c-\u1d5c\u1d62-\u1d65\u1d6b-\u1d77\u1d79-\u1dbe\u1e00-\u1eff\u2071\u207f\u2090-\u209c\u212a\u212b\u2132\u214e\u2160-\u2188\u2c60-\u2c7f\ua722-\ua787\ua78b-\ua7bf\ua7c2-\ua7ca\ua7f5-\ua7ff\uab30-\uab5a\uab5c-\uab64\uab66-\uab69\ufb00-\ufb06\uff21-\uff3a\uff41-\uff5a"},{name:"Lepcha",bmp:"\u1c00-\u1c37\u1c3b-\u1c49\u1c4d-\u1c4f"},{name:"Limbu",bmp:"\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1940\u1944-\u194f"},{name:"Linear_A",astral:"\ud801[\ude00-\udf36\udf40-\udf55\udf60-\udf67]"},{name:"Linear_B",astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa]"},{name:"Lisu",bmp:"\ua4d0-\ua4ff",astral:"\ud807\udfb0"},{name:"Lycian",astral:"\ud800[\ude80-\ude9c]"},{name:"Lydian",astral:"\ud802[\udd20-\udd39\udd3f]"},{name:"Mahajani",astral:"\ud804[\udd50-\udd76]"},{name:"Makasar",astral:"\ud807[\udee0-\udef8]"},{name:"Malayalam",bmp:"\u0d00-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4f\u0d54-\u0d63\u0d66-\u0d7f"},{name:"Mandaic",bmp:"\u0840-\u085b\u085e"},{name:"Manichaean",astral:"\ud802[\udec0-\udee6\udeeb-\udef6]"},{name:"Marchen",astral:"\ud807[\udc70-\udc8f\udc92-\udca7\udca9-\udcb6]"},{name:"Masaram_Gondi",astral:"\ud807[\udd00-\udd06\udd08\udd09\udd0b-\udd36\udd3a\udd3c\udd3d\udd3f-\udd47\udd50-\udd59]"},{name:"Medefaidrin",astral:"\ud81b[\ude40-\ude9a]"},{name:"Meetei_Mayek",bmp:"\uaae0-\uaaf6\uabc0-\uabed\uabf0-\uabf9"},{name:"Mende_Kikakui",astral:"\ud83a[\udc00-\udcc4\udcc7-\udcd6]"},{name:"Meroitic_Cursive",astral:"\ud802[\udda0-\uddb7\uddbc-\uddcf\uddd2-\uddff]"},{name:"Meroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"Miao",astral:"\ud81b[\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f]"},{name:"Modi",astral:"\ud805[\ude00-\ude44\ude50-\ude59]"},{name:"Mongolian",bmp:"\u1800\u1801\u1804\u1806-\u180e\u1810-\u1819\u1820-\u1878\u1880-\u18aa",astral:"\ud805[\ude60-\ude6c]"},{name:"Mro",astral:"\ud81a[\ude40-\ude5e\ude60-\ude69\ude6e\ude6f]"},{name:"Multani",astral:"\ud804[\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea9]"},{name:"Myanmar",bmp:"\u1000-\u109f\ua9e0-\ua9fe\uaa60-\uaa7f"},{name:"Nabataean",astral:"\ud802[\udc80-\udc9e\udca7-\udcaf]"},{name:"Nandinagari",astral:"\ud806[\udda0-\udda7\uddaa-\uddd7\uddda-\udde4]"},{name:"New_Tai_Lue",bmp:"\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u19de\u19df"},{name:"Newa",astral:"\ud805[\udc00-\udc5b\udc5d-\udc61]"},{name:"Nko",bmp:"\u07c0-\u07fa\u07fd-\u07ff"},{name:"Nushu",astral:"\ud81b\udfe1|\ud82c[\udd70-\udefb]"},{name:"Nyiakeng_Puachue_Hmong",astral:"\ud838[\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udd4f]"},{name:"Ogham",bmp:"\u1680-\u169c"},{name:"Ol_Chiki",bmp:"\u1c50-\u1c7f"},{name:"Old_Hungarian",astral:"\ud803[\udc80-\udcb2\udcc0-\udcf2\udcfa-\udcff]"},{name:"Old_Italic",astral:"\ud800[\udf00-\udf23\udf2d-\udf2f]"},{name:"Old_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"Old_Permic",astral:"\ud800[\udf50-\udf7a]"},{name:"Old_Persian",astral:"\ud800[\udfa0-\udfc3\udfc8-\udfd5]"},{name:"Old_Sogdian",astral:"\ud803[\udf00-\udf27]"},{name:"Old_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},{name:"Old_Turkic",astral:"\ud803[\udc00-\udc48]"},{name:"Oriya",bmp:"\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b66-\u0b77"},{name:"Osage",astral:"\ud801[\udcb0-\udcd3\udcd8-\udcfb]"},{name:"Osmanya",astral:"\ud801[\udc80-\udc9d\udca0-\udca9]"},{name:"Pahawh_Hmong",astral:"\ud81a[\udf00-\udf45\udf50-\udf59\udf5b-\udf61\udf63-\udf77\udf7d-\udf8f]"},{name:"Palmyrene",astral:"\ud802[\udc60-\udc7f]"},{name:"Pau_Cin_Hau",astral:"\ud806[\udec0-\udef8]"},{name:"Phags_Pa",bmp:"\ua840-\ua877"},{name:"Phoenician",astral:"\ud802[\udd00-\udd1b\udd1f]"},{name:"Psalter_Pahlavi",astral:"\ud802[\udf80-\udf91\udf99-\udf9c\udfa9-\udfaf]"},{name:"Rejang",bmp:"\ua930-\ua953\ua95f"},{name:"Runic",bmp:"\u16a0-\u16ea\u16ee-\u16f8"},{name:"Samaritan",bmp:"\u0800-\u082d\u0830-\u083e"},{name:"Saurashtra",bmp:"\ua880-\ua8c5\ua8ce-\ua8d9"},{name:"Sharada",astral:"\ud804[\udd80-\udddf]"},{name:"Shavian",astral:"\ud801[\udc50-\udc7f]"},{name:"Siddham",astral:"\ud805[\udd80-\uddb5\uddb8-\udddd]"},{name:"SignWriting",astral:"\ud836[\udc00-\ude8b\ude9b-\ude9f\udea1-\udeaf]"},{name:"Sinhala",bmp:"\u0d81-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df4",astral:"\ud804[\udde1-\uddf4]"},{name:"Sogdian",astral:"\ud803[\udf30-\udf59]"},{name:"Sora_Sompeng",astral:"\ud804[\udcd0-\udce8\udcf0-\udcf9]"},{name:"Soyombo",astral:"\ud806[\ude50-\udea2]"},{name:"Sundanese",bmp:"\u1b80-\u1bbf\u1cc0-\u1cc7"},{name:"Syloti_Nagri",bmp:"\ua800-\ua82c"},{name:"Syriac",bmp:"\u0700-\u070d\u070f-\u074a\u074d-\u074f\u0860-\u086a"},{name:"Tagalog",bmp:"\u1700-\u170c\u170e-\u1714"},{name:"Tagbanwa",bmp:"\u1760-\u176c\u176e-\u1770\u1772\u1773"},{name:"Tai_Le",bmp:"\u1950-\u196d\u1970-\u1974"},{name:"Tai_Tham",bmp:"\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa0-\u1aad"},{name:"Tai_Viet",bmp:"\uaa80-\uaac2\uaadb-\uaadf"},{name:"Takri",astral:"\ud805[\ude80-\udeb8\udec0-\udec9]"},{name:"Tamil",bmp:"\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bfa",astral:"\ud807[\udfc0-\udff1\udfff]"},{name:"Tangut",astral:"\ud81b\udfe0|[\ud81c-\ud820][\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udeff]|\ud823[\udd00-\udd08]"},{name:"Telugu",bmp:"\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c77-\u0c7f"},{name:"Thaana",bmp:"\u0780-\u07b1"},{name:"Thai",bmp:"\u0e01-\u0e3a\u0e40-\u0e5b"},{name:"Tibetan",bmp:"\u0f00-\u0f47\u0f49-\u0f6c\u0f71-\u0f97\u0f99-\u0fbc\u0fbe-\u0fcc\u0fce-\u0fd4\u0fd9\u0fda"},{name:"Tifinagh",bmp:"\u2d30-\u2d67\u2d6f\u2d70\u2d7f"},{name:"Tirhuta",astral:"\ud805[\udc80-\udcc7\udcd0-\udcd9]"},{name:"Ugaritic",astral:"\ud800[\udf80-\udf9d\udf9f]"},{name:"Vai",bmp:"\ua500-\ua62b"},{name:"Wancho",astral:"\ud838[\udec0-\udef9\udeff]"},{name:"Warang_Citi",astral:"\ud806[\udca0-\udcf2\udcff]"},{name:"Yezidi",astral:"\ud803[\ude80-\udea9\udeab-\udead\udeb0\udeb1]"},{name:"Yi",bmp:"\ua000-\ua48c\ua490-\ua4c6"},{name:"Zanabazar_Square",astral:"\ud806[\ude00-\ude47]"}],og=Is((function(e,t){xu(t,"__esModule",{value:!0}),t.default=void 0;var r=ks(ig);t.default=function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");e.addUnicodeData(r.default)},e.exports=t.default}));Ss(og);var ag=Is((function(e,t){xu(t,"__esModule",{value:!0}),t.default=void 0;var r=ks(Op),n=ks(Jp),i=ks(Yp),o=ks(Zp),a=ks(Xp),s=ks(tg),c=ks(ng),u=ks(og);(0,n.default)(r.default),(0,i.default)(r.default),(0,o.default)(r.default),(0,a.default)(r.default),(0,s.default)(r.default),(0,c.default)(r.default),(0,u.default)(r.default);var l=r.default;t.default=l,e.exports=t.default})),sg=Ss(ag);ag.OuterXRegExp;const cg=[/([^\\p{scx=kana}\\p{scx=hira}\\p{scx=hani}])/,/([\u30ce\u30f3\u30bd\u30be])/,/([^\\p{scx=kana}\\p{scx=hira}\\p{scx=hani}]|)/,/([^\\p{scx=kana}\\p{scx=hira}]\u30fc|^\u30fc|)/,/([^\\p{scx=kana}][\u30fd\u30fe]|^[\u30fd\u30fe]|)/,/(^[\\p{scx=kana}]+[\u3078-\u307a][\\p{scx=kana}]+$|)/,/(^[\\p{scx=hira}]+[\u30d8-\u30da][\\p{scx=hira}]+$|)/,/([a-z]\u30fb|\u30fb[a-z]|)/,/([^\\p{scx=latn}\\p{scx=grek}\\p{scx=cyrl}][\u0300-\u0339]|)/,/(\u0131[\u0300-\u0339]|)/,/([ijl]\u0307)/],ug=/[\u00df\u03c2\u200c\u200d]/,lg=/[\u0080\u2013\u024f]/,dg=/[\u3078-\u307a\u30d8-\u30da\u30fb-\u30fe]/,fg=/[\u0300-\u0339]/,hg=/[\u0430\u0441\u0501\u0435\u04bb\u0456\u0458\u04cf\u043e\u0440\u051b\u0455\u051d\u0445\u0443\u044a\u042c\u04bd\u043f\u0433\u0475\u0461]/,pg=sg("([\\p{Latin}][\\p{Greek}][\\p{Cyrillic}][0-9._-][\u0300-\u0339])"),gg=sg("[0-9A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u0131\\u0134-\\u013E\\u0141-\\u0148\\u014A-\\u017E\\u018F\\u01A0\\u01A1\\u01AF\\u01B0\\u01CD-\\u01DC\\u01DE-\\u01E3\\u01E6-\\u01F0\\u01F4\\u01F5\\u01F8-\\u021B\\u021E\\u021F\\u0226-\\u0233\\u0259\\u02BB\\u02BC\\u02EC\\u0300-\\u0304\\u0306-\\u030C\\u030F-\\u0311\\u0313\\u0314\\u031B\\u0323-\\u0328\\u032D\\u032E\\u0330\\u0331\\u0335\\u0338\\u0339\\u0342\\u0345\\u037B-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03CE\\u03FC-\\u045F\\u048A-\\u0529\\u052E\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0586\\u05B4\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u063F\\u0641-\\u0655\\u0660-\\u0669\\u0670-\\u0672\\u0674\\u0679-\\u068D\\u068F-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE-\\u06FC\\u06FF\\u0750-\\u07B1\\u08A0-\\u08AC\\u08B2\\u08B6-\\u08BD\\u0901-\\u094D\\u094F\\u0950\\u0956\\u0957\\u0960-\\u0963\\u0966-\\u096F\\u0971-\\u0977\\u0979-\\u097F\\u0981-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09E0-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A35\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A5C\\u0A66-\\u0A74\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B43\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5F-\\u0B61\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C01-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C60\\u0C61\\u0C66-\\u0C6F\\u0C80\\u0C82\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D02\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D43\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D54-\\u0D57\\u0D60\\u0D61\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D8E\\u0D91-\\u0D96\\u0D9A-\\u0DA5\\u0DA7-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDE\\u0DF2\\u0E01-\\u0E32\\u0E34-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB2\\u0EB4-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDE\\u0EDF\\u0F00\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F3E-\\u0F42\\u0F44-\\u0F47\\u0F49-\\u0F4C\\u0F4E-\\u0F51\\u0F53-\\u0F56\\u0F58-\\u0F5B\\u0F5D-\\u0F68\\u0F6A-\\u0F6C\\u0F71\\u0F72\\u0F74\\u0F7A-\\u0F80\\u0F82-\\u0F84\\u0F86-\\u0F92\\u0F94-\\u0F97\\u0F99-\\u0F9C\\u0F9E-\\u0FA1\\u0FA3-\\u0FA6\\u0FA8-\\u0FAB\\u0FAD-\\u0FB8\\u0FBA-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10C7\\u10CD\\u10D0-\\u10F0\\u10F7-\\u10FA\\u10FD-\\u10FF\\u1200-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u1780-\\u17A2\\u17A5-\\u17A7\\u17A9-\\u17B3\\u17B6-\\u17CA\\u17D2\\u17D7\\u17DC\\u17E0-\\u17E9\\u1C80-\\u1C88\\u1E00-\\u1E99\\u1E9E\\u1EA0-\\u1EF9\\u1F00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F70\\u1F72\\u1F74\\u1F76\\u1F78\\u1F7A\\u1F7C\\u1F80-\\u1FB4\\u1FB6-\\u1FBA\\u1FBC\\u1FC2-\\u1FC4\\u1FC6-\\u1FC8\\u1FCA\\u1FCC\\u1FD0-\\u1FD2\\u1FD6-\\u1FDA\\u1FE0-\\u1FE2\\u1FE4-\\u1FEA\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FF8\\u1FFA\\u1FFC\\u2D27\\u2D2D\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u3005-\\u3007\\u3041-\\u3096\\u3099\\u309A\\u309D\\u309E\\u30A1-\\u30FA\\u30FC-\\u30FE\\u3105-\\u312D\\u31A0-\\u31BA\\u3400-\\u4DB5\\u4E00-\\u9FD5\\uA660\\uA661\\uA674-\\uA67B\\uA67F\\uA69F\\uA717-\\uA71F\\uA788\\uA78D\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7AE\\uA7FA\\uA9E7-\\uA9FE\\uAA60-\\uAA76\\uAA7A-\\uAA7F\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAC00-\\uD7A3\\uFA0E\\uFA0F\\uFA11\\uFA13\\uFA14\\uFA1F\\uFA21\\uFA23\\uFA24\\uFA27-\\uFA29\\u20000-\\u2A6D6\\u2A700-\\u2B734\\u2B740-\\u2B81D\\u2B820-\\u2CEA1]"),mg=sg("['\\-.\\:\\u00B7\\u0375\\u058A\\u05F3\\u05F4\\u06FD\\u06FE\\u0F0B\\u200C\\u200D\\u2010\\u2019\\u2027\\u30A0\\u30FB]"),yg=sg.union([mg,gg],"i"),bg=sg("[\\u0338\\u058a\\u2010\\u2019\\u2027\\u30a0\\u02bb\\u02bc\\u0620\\u0F8C\\u0F8D\\u0F8E\\u0F8F\\u01CD-\\u01DC\\u1C80-\\u1C8F\\u1E00-\\u1E9B\\u1F00-\\u1FFF\\uA640-\\uA69F\\uA720-\\uA7FF]");sg("\\p{InBasic_Latin}"),sg("\\p{InLatin-1_Supplement}"),sg("\\p{InLatin_Extended-A}"),sg("\\p{InLatin_Extended-B}"),sg("\\p{InIPA_Extensions}"),sg("\\p{InSpacing_Modifier_Letters}"),sg("\\p{InCombining_Diacritical_Marks}"),sg("\\p{InGreek_and_Coptic}"),sg("\\p{InCyrillic}"),sg("\\p{InArmenian}"),sg("\\p{InHebrew}"),sg("\\p{InArabic}"),sg("\\p{InSyriac}"),sg("\\p{InThaana}"),sg("\\p{InDevanagari}"),sg("\\p{InBengali}"),sg("\\p{InGurmukhi}"),sg("\\p{InGujarati}"),sg("\\p{InOriya}"),sg("\\p{InTamil}"),sg("\\p{InTelugu}"),sg("\\p{InKannada}"),sg("\\p{InMalayalam}"),sg("\\p{InSinhala}"),sg("\\p{InThai}"),sg("\\p{InLao}"),sg("\\p{InTibetan}"),sg("\\p{InMyanmar}"),sg("\\p{InGeorgian}"),sg("\\p{InHangul_Jamo}"),sg("\\p{InEthiopic}"),sg("\\p{InCherokee}"),sg("\\p{InUnified_Canadian_Aboriginal_Syllabics}"),sg("\\p{InOgham}"),sg("\\p{InRunic}"),sg("\\p{InTagalog}"),sg("\\p{InHanunoo}"),sg("\\p{InBuhid}"),sg("\\p{InTagbanwa}"),sg("\\p{InKhmer}"),sg("\\p{InMongolian}"),sg("\\p{InLimbu}"),sg("\\p{InTai_Le}"),sg("\\p{InKhmer_Symbols}"),sg("\\p{InPhonetic_Extensions}"),sg("\\p{InLatin_Extended_Additional}"),sg("\\p{InGreek_Extended}"),sg("\\p{InGeneral_Punctuation}"),sg("\\p{InSuperscripts_and_Subscripts}"),sg("\\p{InCurrency_Symbols}"),sg("\\p{InCombining_Diacritical_Marks_for_Symbols}"),sg("\\p{InLetterlike_Symbols}"),sg("\\p{InNumber_Forms}"),sg("\\p{InArrows}"),sg("\\p{InMathematical_Operators}"),sg("\\p{InMiscellaneous_Technical}"),sg("\\p{InControl_Pictures}"),sg("\\p{InOptical_Character_Recognition}"),sg("\\p{InEnclosed_Alphanumerics}"),sg("\\p{InBox_Drawing}"),sg("\\p{InBlock_Elements}"),sg("\\p{InGeometric_Shapes}"),sg("\\p{InMiscellaneous_Symbols}"),sg("\\p{InDingbats}"),sg("\\p{InMiscellaneous_Mathematical_Symbols-A}"),sg("\\p{InSupplemental_Arrows-A}"),sg("\\p{InBraille_Patterns}"),sg("\\p{InSupplemental_Arrows-B}"),sg("\\p{InMiscellaneous_Mathematical_Symbols-B}"),sg("\\p{InSupplemental_Mathematical_Operators}"),sg("\\p{InMiscellaneous_Symbols_and_Arrows}"),sg("\\p{InCJK_Radicals_Supplement}"),sg("\\p{InKangxi_Radicals}"),sg("\\p{InIdeographic_Description_Characters}"),sg("\\p{InCJK_Symbols_and_Punctuation}"),sg("\\p{InHiragana}"),sg("\\p{InKatakana}"),sg("\\p{InBopomofo}"),sg("\\p{InHangul_Compatibility_Jamo}"),sg("\\p{InKanbun}"),sg("\\p{InBopomofo_Extended}"),sg("\\p{InKatakana_Phonetic_Extensions}"),sg("\\p{InEnclosed_CJK_Letters_and_Months}"),sg("\\p{InCJK_Compatibility}"),sg("\\p{InCJK_Unified_Ideographs_Extension_A}"),sg("\\p{InYijing_Hexagram_Symbols}"),sg("\\p{InCJK_Unified_Ideographs}"),sg("\\p{InYi_Syllables}"),sg("\\p{InYi_Radicals}"),sg("\\p{InHangul_Syllables}"),sg("\\p{InHigh_Surrogates}"),sg("\\p{InHigh_Private_Use_Surrogates}"),sg("\\p{InLow_Surrogates}"),sg("\\p{InPrivate_Use_Area}"),sg("\\p{InCJK_Compatibility_Ideographs}"),sg("\\p{InAlphabetic_Presentation_Forms}"),sg("\\p{InArabic_Presentation_Forms-A}"),sg("\\p{InVariation_Selectors}"),sg("\\p{InCombining_Half_Marks}"),sg("\\p{InCJK_Compatibility_Forms}"),sg("\\p{InSmall_Form_Variants}"),sg("\\p{InArabic_Presentation_Forms-B}"),sg("\\p{InHalfwidth_and_Fullwidth_Forms}"),sg("\\p{InSpecials}");sg("\\p{Letter}"),sg("\\p{Lowercase_Letter}"),sg("\\p{Uppercase_Letter}"),sg("\\p{Titlecase_Letter}"),sg("\\p{Cased_Letter}"),sg("\\p{Modifier_Letter}"),sg("\\p{Other_Letter}"),sg("\\p{Mark}");const vg=sg("\\p{Non_Spacing_Mark}"),wg=(sg("\\p{Enclosing_Mark}"),sg("\\p{Separator}"),sg("\\p{Space_Separator}"),sg("\\p{Line_Separator}"),sg("\\p{Paragraph_Separator}"),sg("\\p{Symbol}"),sg("\\p{Math_Symbol}"),sg("\\p{Currency_Symbol}"),sg("\\p{Modifier_Symbol}"),sg("\\p{Other_Symbol}"),sg("\\p{Number}"),sg("\\p{Nd}")),Ag=(sg("\\p{Letter_Number}"),sg("\\p{Other_Number}"),sg("\\p{Punctuation}"),sg("\\p{Dash_Punctuation}"),sg("\\p{Open_Punctuation}"),sg("\\p{Close_Punctuation}"),sg("\\p{Initial_Punctuation}"),sg("\\p{Final_Punctuation}"),sg("\\p{Connector_Punctuation}"),sg("\\p{Other_Punctuation}"),sg("\\p{Other}"),sg("\\p{Control}"),sg("\\p{Format}"),sg("\\p{Private_Use}"),sg("\\p{Surrogate}"),sg("\\p{Unassigned}"),sg(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764(?:\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?|\u200D(?:\uD83D\uDC8B\u200D)?)\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])|\uD83E\uDEF1\uD83C\uDFFF\u200D\uD83E\uDEF2)(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764(?:\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?|\u200D(?:\uD83D\uDC8B\u200D)?)\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])|\uD83E\uDEF1\uD83C\uDFFE\u200D\uD83E\uDEF2)(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764(?:\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?|\u200D(?:\uD83D\uDC8B\u200D)?)\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])|\uD83E\uDEF1\uD83C\uDFFD\u200D\uD83E\uDEF2)(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764(?:\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?|\u200D(?:\uD83D\uDC8B\u200D)?)\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])|\uD83E\uDEF1\uD83C\uDFFC\u200D\uD83E\uDEF2)(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764(?:\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?|\u200D(?:\uD83D\uDC8B\u200D)?)\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])|\uD83E\uDEF1\uD83C\uDFFB\u200D\uD83E\uDEF2)(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764(?:\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|[\u2695\u2696\u2708]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764(?:\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])))|\u200D(?:\u2764(?:\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?|\u200D(?:\uD83D\uDC8B\u200D)?)\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\u200D[\u2695\u2696\u2708])?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764(?:\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764(?:\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764(?:\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F?\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F?\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83D\uDC41\uFE0F?\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83C\uDFF3\uFE0F?\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F?\u200D\u26A7|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDEF1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764(?:\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\u200D(?:\uD83D\uDD25|\uD83E\uDE79))|\uD83D\uDC41\uFE0F?|\uD83C\uDFF3\uFE0F?|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F?\u20E3|\uD83E\uDD3C(?:\uD83C[\uDFFB-\uDFFF])|\u2764\uFE0F?|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF6])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD3C\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF6]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDDDE\uDDDF]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B50]|\uD83C[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDD-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC2\uDED0-\uDED9\uDEE0-\uDEE7]/g)),Cg=sg("\\p{Common}"),Eg=sg("\\p{Arabic}"),xg=sg("\\p{Armenian}"),Sg=sg("\\p{Bengali}"),Ig=sg("\\p{Bopomofo}"),kg=sg("\\p{Braille}"),_g=sg("\\p{Buhid}"),Tg=sg("\\p{Canadian_Aboriginal}"),Mg=sg("\\p{Cherokee}"),Pg=sg("\\p{Cyrillic}"),jg=sg("\\p{Devanagari}"),Dg=sg("\\p{Ethiopic}"),Og=sg("\\p{Georgian}"),Bg=sg("\\p{Greek}"),Ng=sg("\\p{Gujarati}"),Rg=sg("\\p{Gurmukhi}"),Lg=sg("\\p{Han}"),Fg=sg("\\p{Hangul}"),Ug=sg("\\p{Hanunoo}"),zg=sg("\\p{Hebrew}"),Hg=sg("\\p{Hiragana}"),Vg=sg("\\p{Inherited}"),Kg=sg("\\p{Kannada}"),Gg=sg("\\p{Katakana}"),qg=sg("\\p{Khmer}"),Qg=sg("\\p{Lao}"),Wg=sg("\\p{Latin}"),Jg=sg("\\p{Limbu}"),Yg=sg("\\p{Malayalam}"),Zg=sg("\\p{Mongolian}"),$g=sg("\\p{Myanmar}"),Xg=sg("\\p{Ogham}"),em=sg("\\p{Oriya}"),tm=sg("\\p{Runic}"),rm=sg("\\p{Sinhala}"),nm=sg("\\p{Syriac}"),im=sg("\\p{Tagalog}"),om=sg("\\p{Tagbanwa}"),am=sg("\\p{TaiLe}"),sm=sg("\\p{Tamil}"),cm=sg("\\p{Telugu}"),um=sg("\\p{Thaana}"),lm=sg("\\p{Thai}"),dm=sg("\\p{Tibetan}"),fm=sg("\\p{Yi}");var hm=Object.freeze({common:Cg,arabic:Eg,armenian:xg,bengali:Sg,bopomofo:Ig,braille:kg,buhid:_g,canadianAboriginal:Tg,cherokee:Mg,cyrillic:Pg,devanagari:jg,ethiopic:Dg,georgian:Og,greek:Bg,gujarati:Ng,gurmukhi:Rg,han:Lg,hangul:Fg,hanunoo:Ug,hebrew:zg,hiragana:Hg,inherited:Vg,kannada:Kg,katakana:Gg,khmer:qg,lao:Qg,latin:Wg,limbu:Jg,malayalam:Yg,mongolian:Zg,myanmar:$g,ogham:Xg,oriya:em,runic:tm,sinhala:rm,syriac:nm,tagalog:im,tagbanwa:om,taile:am,tamil:sm,telugu:cm,thaana:um,thai:lm,tibetan:dm,yi:fm});class pm{constructor(e){this.resolvedScripts=Object.entries(hm).filter((t=>t[1].test(e))).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t[0]]:!0})),{})}singleScript(){if(1===Object.keys(this.resolvedScripts).length)return!0;return[["common","bopomofo"],["common","han"],["common","bopomofo","han"],["bopomofo","han"],["common","katakana"],["common","hiragana"],["common","katakana","hiragana"],["katakana","hiragana"],["common","han"],["common","katakana","han"],["katakana","han"],["common","hiragana","han"],["common","katakana","hiragana","han"],["katakana","hiragana","han"],["hiragana","han"],["common","han"],["common","hangul"],["common","han","hangul"],["han","hangul"]].some((e=>e.every((e=>this.resolvedScripts.hasOwnProperty(e)))))}}class gm{constructor(){this.status=ss.ZERO_ERROR,this.checks=us.ALL_CHECKS,this.restrictionLevel=cs.HIGHLY_RESTRICTIVE}safeToDisplayAsUnicode(e,t){this.status=ss.ZERO_ERROR,e=e.replace(Ag,"a");let r=this.check(e);return!(this.status>ss.ZERO_ERROR||r&us.ALL_CHECKS)&&(r&=cs.RESTRICTION_LEVEL_MASK,!ug.test(e)&&(r===cs.ASCII||(r!==cs.SINGLE_SCRIPT_RESTRICTIVE||dg.test(e)||fg.test(e)?!(lg.test(e)&&!pg.test(e))&&!cg.some((t=>t.test(e))):!t||!this.isMadeOfLatinAlikeCyrillic(e))))}check(e){let t=0;const r=new Es;if(this.checks&us.RESTRICTION_LEVEL){const n=this.getRestrictionLevel(e);n>this.restrictionLevel&&(t|=us.RESTRICTION_LEVEL),r.restrictionLevel=n}if(this.checks&us.MIXED_NUMBERS){const n=this.getNumerics(e);n.length>1&&(t|=us.MIXED_NUMBERS),r.numerics=n}if(this.checks&us.CHAR_LIMIT)for(let n=0;n-1){t|=us.INVISIBLE;break}c.push(o)}else a=o;else a=0,s&&(c=[],s=!1)}return r.checks=t,r.toCombinedBitmask(this.checks)}getRestrictionLevel(e){if(!Array.from(e).every((e=>yg.test(e)&&!bg.test(e))))return cs.UNRESTRICTIVE;let t=!0;for(let r=0;r127){t=!1;break}if(t)return cs.ASCII;return new pm(e).singleScript()?cs.SINGLE_SCRIPT_RESTRICTIVE:cs.HIGHLY_RESTRICTIVE}getNumerics(e){const t=[];let r;for(let n=0;nPg.test(e)));return t.length>0&&t.every((e=>hg.test(e)))}}const mm=Lo({id:137,name:"Polygon",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}});function ym(e,t){return hn({chain:{id:Number(e.chainId),rpcUrls:{default:{http:[t||e.defaultRpc]},public:{http:[t||e.defaultRpc]}},name:"",network:"",nativeCurrency:{decimals:18,name:"",symbol:""}},transport:Cn()})}var bm=new Set(["bnb","arb","eth"]);function vm(e){return bm.has(e)}function wm(e){return new Set([Fo.id,Uo.id,zo.id]).has(e)}function Am(e){switch(e){case 1:default:return Fo;case 5:return Uo;case 11155111:return zo}}var Cm=[{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"uint256",name:"identifier",type:"uint256"}],name:"tldName",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"string",name:"key",type:"string"}],name:"text",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"uint256",name:"contentTypes",type:"uint256"}],name:"ABI",outputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"addr",outputs:[{internalType:"address payable",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"uint256",name:"coinType",type:"uint256"}],name:"addr",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"contenthash",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"}],Em=[{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],xm=[{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"}],name:"tldBase",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],Sm=[{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"resolver",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],Im=[{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],km=[{inputs:[{internalType:"uint256",name:"chainId",type:"uint256"}],name:"getChainInfo",outputs:[{components:[{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"string",name:"defaultRpc",type:"string"},{internalType:"address",name:"registry",type:"address"},{internalType:"address",name:"sann",type:"address"}],internalType:"struct VerifiedTldHub.chainInfo",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"chainId",type:"uint256"}],name:"getChainTlds",outputs:[{internalType:"string[]",name:"",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string[]",name:"tlds",type:"string[]"}],name:"getTldInfo",outputs:[{components:[{internalType:"string",name:"tld",type:"string"},{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"string",name:"defaultRpc",type:"string"},{internalType:"address",name:"registry",type:"address"},{internalType:"address",name:"sann",type:"address"}],internalType:"struct VerifiedTldHub.completeTldInfo[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getTlds",outputs:[{internalType:"string[]",name:"",type:"string[]"}],stateMutability:"view",type:"function"}],_m="0x754D6827A57334143eD5fB58C5b1A4aAe4396ba5",Tm="0x123c784946a9b649FB1268D589E41bc7BF658725",Mm=class{constructor(e,t){this.isDev=e,this.rpcUrl=t??"https://rpc.ankr.com/eth"}getVerifiedTldHubContract(){const e=hn({chain:this.isDev?$o:Fo,transport:Cn(this.isDev?void 0:this.rpcUrl)});return Wo({address:this.isDev?Tm:_m,abi:km,client:{public:e}})}async getTldInfo(e){const t=this.getVerifiedTldHubContract();return(await t.read.getTldInfo([e])).filter((e=>!!e.tld))}async getResolverContractByTld(e,t,r){const n=ym(t,r),i=Wo({address:t.registry,abi:Sm,client:{public:n}}),o=await i.read.resolver([e]);if(!(0,Xe.ME)(o))throw"resolver address is null";return Wo({address:o,abi:Cm,client:{public:n}})}async getReverseResolverContract(e,t,r){if(!t.defaultRpc)return;const n=ym(t,r),i=Wo({address:t.registry,abi:Sm,client:{public:n}});return Wo({address:await i.read.resolver([e])??"",abi:Em,client:{public:n}})}async getTldMetadata(e,t,r){const n=(0,Xe.uU)((0,D.S)(Buffer.from(e.split(".")[0]))),i=ym(t,r),o=Wo({address:t.sann,abi:xm,client:{public:i}}),a=t.identifier===BigInt(0)?function(e){switch(e){case 1:case 11155111:default:return"0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85";case 56:return"0xE3b1D32e43Ce8d658368e2CBFF95D57Ef39Be8a6";case 97:return"0x888A2BA9787381000Cd93CA4bd23bB113f03C5Af";case 42161:return"0x5d482d501b369f5ba034dec5c5fb7a50d2d6ca20"}}(Number(t.chainId)):await o.read.tldBase([BigInt(`${t.identifier}`)]);if(t.chainId===BigInt(Fo.id))return`https://metadata.ens.domains/mainnet/${a}/${n}`;const s=Wo({address:a,abi:Im,client:{public:i}});return await s.read.tokenURI([n])}async getContenthash(e,t,r){const n=await this.getResolverContractByTld(e,t,r);if(!await this.resolverFunctionExists(n.address,"contenthash(bytes32)",t,r))return;return await n.read.contenthash([e])}async getABI(e,t,r){const n=await this.getResolverContractByTld(e,t,r);if(!await this.resolverFunctionExists(n.address,"ABI(bytes32, uint256)",t,r))return;return await n.read.ABI([e,BigInt(1)])}async containsTldNameFunction(e,t,r){const n=ym(t,r),i=await n.getBytecode({address:e}),o=(0,Zo.V)("tldName(bytes32, uint256)");return i?.includes(o.slice(2))??!1}async resolverFunctionExists(e,t,r,n){const i=ym(r,n),o=await i.getBytecode({address:e}),a=(0,Zo.V)(t);return o?.includes(a.slice(2))??!1}};var Pm=e=>e?$a(e):e;function jm(e,t){if(!t)return N(e);return N(`${e}.[${(0,j.nj)(t,{size:32}).slice(2)}]`)}var Dm=["cz.bnb","id.bnb","sm.bnb","yg.bnb","cz.eth.bnb","id.eth.bnb","sm.eth.bnb","yg.eth.bnb","go.arb"];function Om(e){if(!e)throw new Error("Invalid name");const t=e.split(".");let r=e,n="";t.length>1&&(r=t.slice(0,t.length-1).join("."),n=t[t.length-1]),3===t.length&&"bnb"===n.toLowerCase()&&"eth"===t[1].toLowerCase()&&(r=t[0]);const i=t.filter((e=>e.length<1)).length>0;if(i)throw new Error("Domain cannot have empty labels");if(!function(e,t=!1){if(!e)return!1;const r=function(e){const t=$a(e),r=/[\u0000-\uffff]|\p{L}|\p{Emoji}(?!\p{M})/gu,n=t.match(r);return n?n.length:0}(e);if(r>512||!t&&r<3)return!1;let n;try{n=Pm(e)}catch($R){n=e}if(n.length>512||!t&&r<3)return!1;return!0}(r,!vm(n))&&!Dm.includes(e.toLowerCase()))throw new Error("Invalid name");if(!function(e){const t=/[\u0000-\u002c\u002e-\u002f\u003a-\u005e\u0060\u007b-\u007f\u200b\u200c\u200d\ufeff]/g;return/^[^*|\\":<>[\]{}`\\\\()';@&$]+$/u.test(e)&&!t.test(e)&&function(e){try{const t=new Cs(e),r=new gm;return t.labels.every((e=>r.safeToDisplayAsUnicode(e,t.isTldAscii)))}catch($R){return!1}}(e)}(r))throw new Error("Invalid name");const o=t.map((e=>{return(t=e).startsWith("[")&&t.endsWith("]")&&66===t.length?e:Pm(e);var t}));try{return o.join(".")}catch($R){throw $R}}var Bm=[{inputs:[{internalType:"string[]",name:"keys",type:"string[]"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getMany",outputs:[{internalType:"string[]",name:"values",type:"string[]"}],stateMutability:"view",type:"function"}],Nm=[{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"reverseNameOf",outputs:[{internalType:"string",name:"reverseUri",type:"string"}],stateMutability:"view",type:"function"}],Rm=class{constructor(){this.proxyReaderAddress="0x423F2531bd5d3C3D4EF7C318c2D1d9BEDE67c680",this.unsRegistryAddress="0xa9a6A3626993D487d2Dbda3173cf58cA1a9D9e9f"}async getAddress(e){const t=hn({chain:mm,transport:Cn()}),r=Wo({address:this.proxyReaderAddress,abi:Bm,publicClient:t});return(await r.read.getMany([["crypto.ETH.address"],BigInt(N(e))])).at(0)||null}async getName(e){const t=hn({chain:mm,transport:Cn()}),r=Wo({address:this.unsRegistryAddress,abi:Nm,publicClient:t}),n=await r.read.reverseNameOf([e]);return n.endsWith(".crypto")?n:null}},Lm="https://api.lens.dev/",Fm=class{static async getDomainName(e){return(await fetch(Lm,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:"\n query Profile($ethereumAddress: EthereumAddress!) {\n defaultProfile(request: { ethereumAddress: $ethereumAddress }) {\n id\n handle\n }\n }\n ",variables:{ethereumAddress:e}})}).then((e=>e.json()))).data.defaultProfile.handle}static async getAddress(e){return(await fetch(Lm,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:"\n query Profile ($handle: Handle!) {\n profile(request: { handle: $handle }) {\n id\n ownedBy\n }\n }\n ",variables:{handle:e}})}).then((e=>e.json()))).data.profile.ownedBy}},Um=class{constructor({isDev:e=!1,rpcUrl:t}={}){this.contractReader=new Mm(e,t)}async getTldInfoList({queryTldList:e,queryChainIdList:t}){const r=this.contractReader.getVerifiedTldHubContract(),n=[];for await(const a of t??[]){const e=await r.read.getChainTlds([BigInt(a)]);if(wm(a)){const t=e.filter((e=>"eth"!==e)).at(0);t&&n.push(t),n.push("eth")}else{const t=e.at(0);t&&n.push(t)}}const i=e??[];if(0===i.length){const e=await r.read.getTlds();i.push(...e)}const o=t?.length?n:i;return await this.contractReader.getTldInfo(o)}async getDomainNameByTld(e,t,r,n,i){let o=null;try{if("eth"===r.tld){const e=await this.contractReader.getReverseResolverContract(t,r,i);o=await(e?.read.name([t]))??""}else{const e=await this.contractReader.getResolverContractByTld(t,r,i);if(n)if(vm(r.tld)){o=await this.contractReader.containsTldNameFunction(e.address,r,i)?await e.read.tldName([t,r.identifier]):await e.read.name([t])}else o=await e.read.tldName([t,r.identifier]);else o=await e.read.name([t])}}catch(ys){}if(o){const t=await this.getAddress(o,{rpcUrl:i});return t?.toLowerCase()===e.toLowerCase()?o:null}return o}async getDomainName({address:e,queryChainIdList:t,queryTldList:r,rpcUrl:n}){t?.length&&r?.length&&console.warn("queryChainIdList and queryTldList cannot be used together, queryTldList will be ignored");try{const i=N(`${Ro(e).slice(2)}.addr.reverse`),o=await this.getTldInfoList({queryChainIdList:t,queryTldList:r,rpcUrl:n}),a=[];for await(const t of o){if(!t.tld)continue;const o=!!r?.length;let s=await this.getDomainNameByTld(e,i,t,o,n);if(s){a.push(s);break}}if(r?.includes("lens")){const t=await Fm.getDomainName(e);t&&a.push(t)}else if(r?.includes("crypto")){const t=new Rm,r=await t.getName(e);r&&a.push(r)}return a.at(0)??null}catch($R){return console.log(`Error getting name for reverse record of ${e}`,$R),null}}async batchGetDomainName({addressList:e,queryChainIdList:t,queryTldList:r,rpcUrl:n}){if(t?.length&&r?.length&&console.warn("queryChainIdList and queryTldList cannot be used together, queryTldList will be ignored"),!e.length)return[];let i=e[0];try{const o=await this.getTldInfoList({queryChainIdList:t,queryTldList:r,rpcUrl:n}),a=[],s=r?.includes("lens"),c=r?.includes("crypto");for await(const t of e){i=t;const e=N(`${Ro(t).slice(2)}.addr.reverse`);let u=null;for await(const i of o){if(!i.tld)continue;const o=!!r?.length;if(u=await this.getDomainNameByTld(t,e,i,o,n),u)break}if(!u&&s&&(u=await Fm.getDomainName(t)),!u&&c){const e=new Rm;u=await e.getName(t)}a.push({address:t,domain:u})}return a}catch($R){return console.log(`Error getting name for reverse record of ${i}`,$R),null}}async getAddress(e,{coinType:t,rpcUrl:r}={}){const n=e.split(".").pop()?.toLowerCase();if(!n)return null;const i="lens"===n?e:Ro(e);"eth"!==n&&"lens"!==n&&"crypto"!==n&&Om(i);try{if("eth"===n){const e=await this.contractReader.getTldInfo([n]),t=hn({chain:Am(Number(e[0].chainId)),transport:Cn()});return await t.getEnsAddress({name:i})}if("lens"===n)return await Fm.getAddress(e);if("crypto"===n){const t=new Rm;return await t.getAddress(e)}const o=(await this.contractReader.getTldInfo([n])).at(0);if(!o)throw"TLD not found";const a=jm(i,vm(n)?void 0:o.identifier),s=await this.contractReader.getResolverContractByTld(a,o,r);return void 0!==t?await s.read.addr([a,BigInt(t)]):await s.read.addr([a])}catch(ys){return console.error(`Error getting address for ${e}`,ys),null}}async getDomainNames({address:e,queryChainIdList:t,queryTldList:r,rpcUrl:n}){t?.length&&r?.length&&console.warn("queryChainIdList and queryTldList cannot be used together, queryTldList will be ignored");const i=new Set([]);try{const o=N(`${e.toLowerCase().slice(2)}.addr.reverse`),a=this.contractReader.getVerifiedTldHubContract(),s=[];for(const e of t??[]){const t=await a.read.getChainTlds([BigInt(e)]);if(wm(e)){const e=t.filter((e=>"eth"!==e)).at(0);e&&s.push(e),s.push("eth")}else{const e=t.at(0);e&&s.push(e)}}const c=r??[];if(0===c.length){const e=await a.read.getTlds();c.push(...e)}const u=t?.length?s:c,l=await this.contractReader.getTldInfo(u);for(const t of l){if(!t.tld)continue;let a="";try{if("eth"===t.tld){const e=await this.contractReader.getReverseResolverContract(o,t,n);a=await(e?.read.name([o]))??""}else{const e=await this.contractReader.getResolverContractByTld(o,t);if(r?.length){if(vm(t.tld)){if(!await this.contractReader.containsTldNameFunction(e.address,t))throw"TLD name is not supported for this TLD"}a=await e.read.tldName([o,t.identifier])}else a=await e.read.name([o])}}catch(ys){continue}if(a){await this.getAddress(a,{rpcUrl:n})===e&&i.add(a)}}if(r?.includes("lens")){const t=await Fm.getDomainName(e);t&&i.add(t)}else if(r?.includes("crypto")){const t=new Rm,r=await t.getName(e);r&&i.add(r)}return Array.from(i)}catch($R){return console.log(`Error getting name for reverse record of ${e}`,$R),[]}}async getDomainRecord({name:e,key:t,rpcUrl:r}){const n=e.split(".").pop()?.toLowerCase();if(!n)return null;try{const i="lens"===n?e:Ro(e),o=(await this.contractReader.getTldInfo([n]))[0];if(!o)throw"TLD not found";const a=jm(i,vm(n)?void 0:o.identifier),s=await this.contractReader.getResolverContractByTld(a,o,r);return await s.read.text([a,t])}catch(ys){return console.error(`Error getting address for ${e}`,ys),null}}async getMetadata({name:e,rpcUrl:t}){const r=e.split(".").pop()?.toLowerCase();if(!r)return null;try{const n=await this.contractReader.getTldInfo([r]);if(!n||!n.at(0)?.sann)return null;const i=await this.contractReader.getTldMetadata(e,n[0],t);return await fetch(i).then((e=>e.json()))}catch(ys){console.error(`Error getting metadata for ${e}`,ys)}}async getDomainAvatar({name:e,rpcUrl:t}){const r=await this.getMetadata({name:e,rpcUrl:t});return r?.image}async getContentHash({name:e,rpcUrl:t}){const r=e.split(".").pop()?.toLowerCase();if(r)try{const n=(await this.contractReader.getTldInfo([r])).at(0);if(!n)throw"TLD not found";const i=jm(Ro(e),vm(r)?void 0:n.identifier),o=await this.contractReader.getContenthash(i,n,t);if(!o||"0x"===o)return;return o}catch(ys){console.error(`Error getting content hash for ${e}`,ys)}}};function zm({isDev:e=!1,rpcUrl:t}={}){return new Um({isDev:e,rpcUrl:t})}var Hm=r(696827),Vm=r.n(Hm),Km=r(815604),Gm=r(952549),qm=r(272505),Qm=r.n(qm),Wm=r(320053);const Jm=e=>"number"==typeof e&&!isNaN(e),Ym=e=>"string"==typeof e,Zm=e=>"function"==typeof e,$m=e=>Ym(e)||Zm(e)?e:null,Xm=e=>(0,i.isValidElement)(e)||Ym(e)||Zm(e)||Jm(e);function ey(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(e){let{children:s,position:c,preventExitTransition:u,done:l,nodeRef:d,isIn:f}=e;const h=n?`${t}--${c}`:t,p=n?`${r}--${c}`:r,g=(0,i.useRef)(0);return(0,i.useLayoutEffect)((()=>{const e=d.current,t=h.split(" "),r=n=>{n.target===d.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===g.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)}),[]),(0,i.useEffect)((()=>{const e=d.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,r){void 0===r&&(r=300);const{scrollHeight:n,style:i}=e;requestAnimationFrame((()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${r}ms`,requestAnimationFrame((()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)}))}))}(e,l,a):l()};f||(u?t():(g.current=1,e.className+=` ${p}`,e.addEventListener("animationend",t)))}),[f]),i.createElement(i.Fragment,null,s)}}function ty(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const ry={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const r=this.list.get(e).filter((e=>e!==t));return this.list.set(e,r),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const r=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(r)}))}},ny=e=>{let{theme:t,type:r,...n}=e;return i.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${r})`,...n})},iy={info:function(e){return i.createElement(ny,{...e},i.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return i.createElement(ny,{...e},i.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return i.createElement(ny,{...e},i.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return i.createElement(ny,{...e},i.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return i.createElement("div",{className:"Toastify__spinner"})}};function oy(e){const[,t]=(0,i.useReducer)((e=>e+1),0),[r,n]=(0,i.useState)([]),o=(0,i.useRef)(null),a=(0,i.useRef)(new Map).current,s=e=>-1!==r.indexOf(e),c=(0,i.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:s,getToast:e=>a.get(e)}).current;function u(e){let{containerId:t}=e;const{limit:r}=c.props;!r||t&&c.containerId!==t||(c.count-=c.queue.length,c.queue=[])}function l(e){n((t=>null==e?[]:t.filter((t=>t!==e))))}function d(){const{toastContent:e,toastProps:t,staleId:r}=c.queue.shift();h(e,t,r)}function f(e,r){let{delay:n,staleId:s,...u}=r;if(!Xm(e)||function(e){return!o.current||c.props.enableMultiContainer&&e.containerId!==c.props.containerId||a.has(e.toastId)&&null==e.updateId}(u))return;const{toastId:f,updateId:p,data:g}=u,{props:m}=c,y=()=>l(f),b=null==p;b&&c.count++;const v={...m,style:m.toastStyle,key:c.toastKey++,...Object.fromEntries(Object.entries(u).filter((e=>{let[t,r]=e;return null!=r}))),toastId:f,updateId:p,data:g,closeToast:y,isIn:!1,className:$m(u.className||m.toastClassName),bodyClassName:$m(u.bodyClassName||m.bodyClassName),progressClassName:$m(u.progressClassName||m.progressClassName),autoClose:!u.isLoading&&(w=u.autoClose,A=m.autoClose,!1===w||Jm(w)&&w>0?w:A),deleteToast(){const e=ty(a.get(f),"removed");a.delete(f),ry.emit(4,e);const r=c.queue.length;if(c.count=null==f?c.count-c.displayedToast:c.count-1,c.count<0&&(c.count=0),r>0){const e=null==f?c.props.limit:1;if(1===r||1===e)c.displayedToast++,d();else{const t=e>r?r:e;c.displayedToast=t;for(let e=0;ee in iy)(r)&&(a=iy[r](s))),a}(v),Zm(u.onOpen)&&(v.onOpen=u.onOpen),Zm(u.onClose)&&(v.onClose=u.onClose),v.closeButton=m.closeButton,!1===u.closeButton||Xm(u.closeButton)?v.closeButton=u.closeButton:!0===u.closeButton&&(v.closeButton=!Xm(m.closeButton)||m.closeButton);let C=e;(0,i.isValidElement)(e)&&!Ym(e.type)?C=(0,i.cloneElement)(e,{closeToast:y,toastProps:v,data:g}):Zm(e)&&(C=e({closeToast:y,toastProps:v,data:g})),m.limit&&m.limit>0&&c.count>m.limit&&b?c.queue.push({toastContent:C,toastProps:v,staleId:s}):Jm(n)?setTimeout((()=>{h(C,v,s)}),n):h(C,v,s)}function h(e,t,r){const{toastId:i}=t;r&&a.delete(r);const o={content:e,props:t};a.set(i,o),n((e=>[...e,i].filter((e=>e!==r)))),ry.emit(4,ty(o,null==o.props.updateId?"added":"updated"))}return(0,i.useEffect)((()=>(c.containerId=e.containerId,ry.cancelEmit(3).on(0,f).on(1,(e=>o.current&&l(e))).on(5,u).emit(2,c),()=>{a.clear(),ry.emit(3,c)})),[]),(0,i.useEffect)((()=>{c.props=e,c.isToastActive=s,c.displayedToast=r.length})),{getToastToRender:function(t){const r=new Map,n=Array.from(a.values());return e.newestOnTop&&n.reverse(),n.forEach((e=>{const{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)})),Array.from(r,(e=>t(e[0],e[1])))},containerRef:o,isToastActive:s}}function ay(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function sy(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function cy(e){const[t,r]=(0,i.useState)(!1),[n,o]=(0,i.useState)(!1),a=(0,i.useRef)(null),s=(0,i.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,i.useRef)(e),{autoClose:u,pauseOnHover:l,closeToast:d,onClick:f,closeOnClick:h}=e;function p(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),document.addEventListener("touchmove",b),document.addEventListener("touchend",v);const r=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=r.getBoundingClientRect(),r.style.transition="",s.x=ay(t.nativeEvent),s.y=sy(t.nativeEvent),"x"===e.draggableDirection?(s.start=s.x,s.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function g(t){if(s.boundingRect){const{top:r,bottom:n,left:i,right:o}=s.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&s.x>=i&&s.x<=o&&s.y>=r&&s.y<=n?y():m()}}function m(){r(!0)}function y(){r(!1)}function b(r){const n=a.current;s.canDrag&&n&&(s.didMove=!0,t&&y(),s.x=ay(r),s.y=sy(r),s.delta="x"===e.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),n.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,n.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function v(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",v);const t=a.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,i.useEffect)((()=>{c.current=e})),(0,i.useEffect)((()=>(a.current&&a.current.addEventListener("d",m,{once:!0}),Zm(e.onOpen)&&e.onOpen((0,i.isValidElement)(e.children)&&e.children.props),()=>{const e=c.current;Zm(e.onClose)&&e.onClose((0,i.isValidElement)(e.children)&&e.children.props)})),[]),(0,i.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||y(),window.addEventListener("focus",m),window.addEventListener("blur",y)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",m),window.removeEventListener("blur",y))})),[e.pauseOnFocusLoss]);const w={onMouseDown:p,onTouchStart:p,onMouseUp:g,onTouchEnd:g};return u&&l&&(w.onMouseEnter=y,w.onMouseLeave=m),h&&(w.onClick=e=>{f&&f(e),s.canCloseOnClick&&d()}),{playToast:m,pauseToast:y,isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:w}}function uy(e){let{closeToast:t,theme:r,ariaLabel:n="close"}=e;return i.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":n},i.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},i.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function ly(e){let{delay:t,isRunning:r,closeToast:n,type:o="default",hide:a,className:s,style:c,controlledProgress:u,progress:l,rtl:d,isIn:f,theme:h}=e;const p=a||u&&0===l,g={...c,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:p?0:1};u&&(g.transform=`scaleX(${l})`);const m=(0,Wm.default)("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":d}),y=Zm(s)?s({rtl:d,type:o,defaultClassName:m}):(0,Wm.default)(m,s);return i.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:y,style:g,[u&&l>=1?"onTransitionEnd":"onAnimationEnd"]:u&&l<1?null:()=>{f&&n()}})}const dy=e=>{const{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:o}=cy(e),{closeButton:a,children:s,autoClose:c,onClick:u,type:l,hideProgressBar:d,closeToast:f,transition:h,position:p,className:g,style:m,bodyClassName:y,bodyStyle:b,progressClassName:v,progressStyle:w,updateId:A,role:C,progress:E,rtl:x,toastId:S,deleteToast:I,isIn:k,isLoading:_,iconOut:T,closeOnClick:M,theme:P}=e,j=(0,Wm.default)("Toastify__toast",`Toastify__toast-theme--${P}`,`Toastify__toast--${l}`,{"Toastify__toast--rtl":x},{"Toastify__toast--close-on-click":M}),D=Zm(g)?g({rtl:x,position:p,type:l,defaultClassName:j}):(0,Wm.default)(j,g),O=!!E||!c,B={closeToast:f,type:l,theme:P};let N=null;return!1===a||(N=Zm(a)?a(B):(0,i.isValidElement)(a)?(0,i.cloneElement)(a,B):uy(B)),i.createElement(h,{isIn:k,done:I,position:p,preventExitTransition:r,nodeRef:n},i.createElement("div",{id:S,onClick:u,className:D,...o,style:m,ref:n},i.createElement("div",{...k&&{role:C},className:Zm(y)?y({type:l}):(0,Wm.default)("Toastify__toast-body",y),style:b},null!=T&&i.createElement("div",{className:(0,Wm.default)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!_})},T),i.createElement("div",null,s)),N,i.createElement(ly,{...A&&!O?{key:`pb-${A}`}:{},rtl:x,theme:P,delay:c,isRunning:t,isIn:k,closeToast:f,hide:d,type:l,style:w,className:v,controlledProgress:O,progress:E||0})))},fy=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},hy=ey(fy("bounce",!0)),py=(ey(fy("slide",!0)),ey(fy("zoom")),ey(fy("flip")),(0,i.forwardRef)(((e,t)=>{const{getToastToRender:r,containerRef:n,isToastActive:o}=oy(e),{className:a,style:s,rtl:c,containerId:u}=e;function l(e){const t=(0,Wm.default)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":c});return Zm(a)?a({position:e,rtl:c,defaultClassName:t}):(0,Wm.default)(t,$m(a))}return(0,i.useEffect)((()=>{t&&(t.current=n.current)}),[]),i.createElement("div",{ref:n,className:"Toastify",id:u},r(((e,t)=>{const r=t.length?{...s}:{...s,pointerEvents:"none"};return i.createElement("div",{className:l(e),style:r,key:`container-${e}`},t.map(((e,r)=>{let{content:n,props:a}=e;return i.createElement(dy,{...a,isIn:o(a.toastId),style:{...a.style,"--nth":r+1,"--len":t.length},key:`toast-${a.key}`},n)})))})))})));py.displayName="ToastContainer",py.defaultProps={position:"top-right",transition:hy,autoClose:5e3,closeButton:uy,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let gy,my=new Map,yy=[],by=1;function vy(){return""+by++}function wy(e){return e&&(Ym(e.toastId)||Jm(e.toastId))?e.toastId:vy()}function Ay(e,t){return my.size>0?ry.emit(0,e,t):yy.push({content:e,options:t}),t.toastId}function Cy(e,t){return{...t,type:t&&t.type||e,toastId:wy(t)}}function Ey(e){return(t,r)=>Ay(t,Cy(e,r))}function xy(e,t){return Ay(e,Cy("default",t))}xy.loading=(e,t)=>Ay(e,Cy("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),xy.promise=function(e,t,r){let n,{pending:i,error:o,success:a}=t;i&&(n=Ym(i)?xy.loading(i,r):xy.loading(i.render,{...r,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,i)=>{if(null==t)return void xy.dismiss(n);const o={type:e,...s,...r,data:i},a=Ym(t)?{render:t}:t;return n?xy.update(n,{...o,...a}):xy(a.render,{...o,...a}),i},u=Zm(e)?e():e;return u.then((e=>c("success",a,e))).catch((e=>c("error",o,e))),u},xy.success=Ey("success"),xy.info=Ey("info"),xy.error=Ey("error"),xy.warning=Ey("warning"),xy.warn=xy.warning,xy.dark=(e,t)=>Ay(e,Cy("default",{theme:"dark",...t})),xy.dismiss=e=>{my.size>0?ry.emit(1,e):yy=yy.filter((t=>null!=e&&t.options.toastId!==e))},xy.clearWaitingQueue=function(e){return void 0===e&&(e={}),ry.emit(5,e)},xy.isActive=e=>{let t=!1;return my.forEach((r=>{r.isToastActive&&r.isToastActive(e)&&(t=!0)})),t},xy.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const r=function(e,t){let{containerId:r}=t;const n=my.get(r||gy);return n&&n.getToast(e)}(e,t);if(r){const{props:n,content:i}=r,o={delay:100,...n,...t,toastId:t.toastId||e,updateId:vy()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,Ay(a,o)}}),0)},xy.done=e=>{xy.update(e,{progress:1})},xy.onChange=e=>(ry.on(4,e),()=>{ry.off(4,e)}),xy.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},xy.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},ry.on(2,(e=>{gy=e.containerId||e,my.set(gy,e),yy.forEach((e=>{ry.emit(0,e.content,e.options)})),yy=[]})).on(3,(e=>{my.delete(e.containerId||e),0===my.size&&ry.off(0).off(1).off(5)}));var Sy=r(910383);function Iy(e){return(0,Sy.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}}]})(e)}function ky(e){return(0,Sy.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)}function _y(e){return(0,Sy.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}}]})(e)}function Ty(e){return(0,Sy.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}}]})(e)}function My(e){return(0,Sy.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}}]})(e)}function Py(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t=0&&r<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(o=r,!1!==i&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&u){try{return void(window.localStorage[u]=r)}catch(i){}try{window.document.cookie=encodeURIComponent(u)+"="+r+";"}catch(i){}}}(r),a.call(s,r,e),typeof console===t&&r2147483647||e<-2147483648)throw new Error("invalid int 32: "+e)}function Qy(e){if("number"!=typeof e)throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw new Error("invalid uint 32: "+e)}function Wy(e){if("number"!=typeof e)throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw new Error("invalid float 32: "+e)}const Jy=Symbol("@bufbuild/protobuf/enum-type");function Yy(e){const t=e[Jy];return Gy(t,"missing enum type on enum object"),t}function Zy(e,t,r,n){e[Jy]=$y(t,r.map((t=>({no:t.no,name:t.name,localName:e[t.no]}))))}function $y(e,t,r){const n=Object.create(null),i=Object.create(null),o=[];for(const a of t){const e=eb(a);o.push(e),n[a.name]=e,i[a.no]=e}return{typeName:e,values:o,findName:e=>n[e],findNumber:e=>i[e]}}function Xy(e,t,r){const n={};for(const i of t){const e=eb(i);n[e.localName]=e.no,n[e.no]=e.localName}return Zy(n,e,t),n}function eb(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}class tb{equals(e){return this.getType().runtime.util.equals(this.getType(),this,e)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(e,t){const r=this.getType().runtime.bin,n=r.makeReadOptions(t);return r.readMessage(this,n.readerFactory(e),e.byteLength,n),this}fromJson(e,t){const r=this.getType(),n=r.runtime.json,i=n.makeReadOptions(t);return n.readMessage(r,e,i,this),this}fromJsonString(e,t){let r;try{r=JSON.parse(e)}catch($R){throw new Error("cannot decode ".concat(this.getType().typeName," from JSON: ").concat($R instanceof Error?$R.message:String($R)))}return this.fromJson(r,t)}toBinary(e){const t=this.getType().runtime.bin,r=t.makeWriteOptions(e),n=r.writerFactory();return t.writeMessage(this,n,r),n.finish()}toJson(e){const t=this.getType().runtime.json,r=t.makeWriteOptions(e);return t.writeMessage(this,r)}toJsonString(e){var t;const r=this.toJson(e);return JSON.stringify(r,null,null!==(t=null==e?void 0:e.prettySpaces)&&void 0!==t?t:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}var rb,nb;function ib(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(127&r)<>4,!(128&r))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(127&r)<>>o,i=!(n>>>7==0&&0==t),a=255&(i?128|n:n);if(r.push(a),!i)return}const n=e>>>28&15|(7&t)<<4,i=!!(t>>3);if(r.push(255&(i?128|n:n)),i){for(let e=3;e<31;e+=7){const n=t>>>e,i=!(n>>>7==0),o=255&(i?128|n:n);if(r.push(o),!i)return}r.push(t>>>31&1)}}!function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"}(rb||(rb={})),function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"}(nb||(nb={}));const ab=4294967296;function sb(e){const t="-"===e[0];t&&(e=e.slice(1));const r=1e6;let n=0,i=0;function o(t,o){const a=Number(e.slice(t,o));i*=r,n=n*r+a,n>=ab&&(i+=n/ab|0,n%=ab)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),t?lb(n,i):ub(n,i)}function cb(e,t){if(({lo:e,hi:t}=function(e,t){return{lo:e>>>0,hi:t>>>0}}(e,t)),t<=2097151)return String(ab*t+e);const r=16777215&(e>>>24|t<<8),n=t>>16&65535;let i=(16777215&e)+6777216*r+6710656*n,o=r+8147497*n,a=2*n;const s=1e7;return i>=s&&(o+=Math.floor(i/s),i%=s),o>=s&&(a+=Math.floor(o/s),o%=s),a.toString()+db(o)+db(i)}function ub(e,t){return{lo:0|e,hi:0|t}}function lb(e,t){return t=~t,e?e=1+~e:t+=1,ub(e,t)}const db=e=>{const t=String(e);return"0000000".slice(t.length)+t};function fb(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7;t.push(e)}else{for(let r=0;r<9;r++)t.push(127&e|128),e>>=7;t.push(1)}}function hb(){let e=this.buf[this.pos++],t=127&e;if(!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<7,!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<14,!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<21,!(128&e))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(15&e)<<28;for(let r=5;128&e&&r<10;r++)e=this.buf[this.pos++];if(128&e)throw new Error("invalid varint");return this.assertBounds(),t>>>0}const pb=function(){const e=new DataView(new ArrayBuffer(8));if("function"==typeof BigInt&&"function"==typeof e.getBigInt64&&"function"==typeof e.getBigUint64&&"function"==typeof e.setBigInt64&&"function"==typeof e.setBigUint64&&("object"!=typeof process||"object"!=typeof process.env||"1"!==process.env.BUF_BIGINT_DISABLE)){const t=BigInt("-9223372036854775808"),r=BigInt("9223372036854775807"),n=BigInt("0"),i=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(e){const n="bigint"==typeof e?e:BigInt(e);if(n>r||ni||t(e.setInt32(0,t,!0),e.setInt32(4,r,!0),e.getBigInt64(0,!0)),uDec:(t,r)=>(e.setInt32(0,t,!0),e.setInt32(4,r,!0),e.getBigUint64(0,!0))}}const t=e=>Gy(/^-?[0-9]+$/.test(e),"int64 invalid: ".concat(e)),r=e=>Gy(/^[0-9]+$/.test(e),"uint64 invalid: ".concat(e));return{zero:"0",supported:!1,parse:e=>("string"!=typeof e&&(e=e.toString()),t(e),e),uParse:e=>("string"!=typeof e&&(e=e.toString()),r(e),e),enc:e=>("string"!=typeof e&&(e=e.toString()),t(e),sb(e)),uEnc:e=>("string"!=typeof e&&(e=e.toString()),r(e),sb(e)),dec:(e,t)=>function(e,t){let r=ub(e,t);const n=2147483648&r.hi;n&&(r=lb(r.lo,r.hi));const i=cb(r.lo,r.hi);return n?"-"+i:i}(e,t),uDec:(e,t)=>cb(e,t)}}();var gb;!function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"}(gb||(gb={}));class mb{constructor(e){this.stack=[],this.textEncoder=null!=e?e:new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let n=0;n>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(Qy(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return qy(e),fb(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){Wy(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){Qy(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){qy(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return qy(e),fb(e=(e<<1^e>>31)>>>0,this.buf),this}sfixed64(e){let t=new Uint8Array(8),r=new DataView(t.buffer),n=pb.enc(e);return r.setInt32(0,n.lo,!0),r.setInt32(4,n.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),r=new DataView(t.buffer),n=pb.uEnc(e);return r.setInt32(0,n.lo,!0),r.setInt32(4,n.hi,!0),this.raw(t)}int64(e){let t=pb.enc(e);return ob(t.lo,t.hi,this.buf),this}sint64(e){let t=pb.enc(e),r=t.hi>>31;return ob(t.lo<<1^r,(t.hi<<1|t.lo>>>31)^r,this.buf),this}uint64(e){let t=pb.uEnc(e);return ob(t.lo,t.hi,this.buf),this}}class yb{constructor(e,t){this.varint64=ib,this.uint32=hb,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=null!=t?t:new TextDecoder}tag(){let e=this.uint32(),t=e>>>3,r=7&e;if(t<=0||r<0||r>5)throw new Error("illegal tag: field no "+t+" wire type "+r);return[t,r]}skip(e){let t=this.pos;switch(e){case gb.Varint:for(;128&this.buf[this.pos++];);break;case gb.Bit64:this.pos+=4;case gb.Bit32:this.pos+=4;break;case gb.LengthDelimited:let t=this.uint32();this.pos+=t;break;case gb.StartGroup:let r;for(;(r=this.tag()[1])!==gb.EndGroup;)this.skip(r);break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return 0|this.uint32()}sint32(){let e=this.uint32();return e>>>1^-(1&e)}int64(){return pb.dec(...this.varint64())}uint64(){return pb.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),r=-(1&e);return e=(e>>>1|(1&t)<<31)^r,t=t>>>1^r,pb.dec(e,t)}bool(){let[e,t]=this.varint64();return 0!==e||0!==t}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return pb.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return pb.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}function bb(e,t){return t instanceof tb||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}function vb(e,t,r){if(t===r)return!0;if(e==rb.BYTES){if(!(t instanceof Uint8Array&&r instanceof Uint8Array))return!1;if(t.length!==r.length)return!1;for(let e=0;enew yb(e)},xb={writeUnknownFields:!0,writerFactory:()=>new mb};function Sb(e){return e?Object.assign(Object.assign({},Eb),e):Eb}function Ib(e){return e?Object.assign(Object.assign({},xb),e):xb}function kb(e,t,r){return t.getType().runtime.bin.readMessage(t,e,e.uint32(),r),t}function _b(e,t,r){const n=t.uint32(),i=t.pos+n;let o,a;for(;t.pos>4,a=r,o=2;break;case 2:n[i++]=(15&a)<<4|(60&r)>>2,a=r,o=3;break;case 3:n[i++]=(3&a)<<6|r,o=0}}if(1==o)throw Error("invalid base64 string.");return n.subarray(0,i)},enc(e){let t,r="",n=0,i=0;for(let o=0;o>2],i=(3&t)<<4,n=1;break;case 1:r+=Bb[i|t>>4],i=(15&t)<<2,n=2;break;case 2:r+=Bb[i|t>>6],r+=Bb[63&t],n=0}return n&&(r+=Bb[i],r+="=",1==n&&(r+="=")),r}},Lb={ignoreUnknownFields:!1},Fb={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Ub(e){return e?Object.assign(Object.assign({},Lb),e):Lb}function zb(e){return e?Object.assign(Object.assign({},Fb),e):Fb}function Hb(e){if(null===e)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":'"'.concat(e.split('"').join('\\"'),'"');default:return String(e)}}function Vb(e,t,r){switch(e){case rb.DOUBLE:case rb.FLOAT:if(null===t)return 0;if("NaN"===t)return Number.NaN;if("Infinity"===t)return Number.POSITIVE_INFINITY;if("-Infinity"===t)return Number.NEGATIVE_INFINITY;if(""===t)break;if("string"==typeof t&&t.trim().length!==t.length)break;if("string"!=typeof t&&"number"!=typeof t)break;const n=Number(t);if(Number.isNaN(n))break;if(!Number.isFinite(n))break;return e==rb.FLOAT&&Wy(n),n;case rb.INT32:case rb.FIXED32:case rb.SFIXED32:case rb.SINT32:case rb.UINT32:if(null===t)return 0;let i;if("number"==typeof t?i=t:"string"==typeof t&&t.length>0&&t.trim().length===t.length&&(i=Number(t)),void 0===i)break;return e==rb.UINT32?Qy(i):qy(i),i;case rb.INT64:case rb.SFIXED64:case rb.SINT64:if(null===t)return pb.zero;if("number"!=typeof t&&"string"!=typeof t)break;const o=pb.parse(t);return r?o.toString():o;case rb.FIXED64:case rb.UINT64:if(null===t)return pb.zero;if("number"!=typeof t&&"string"!=typeof t)break;const a=pb.uParse(t);return r?a.toString():a;case rb.BOOL:if(null===t)return!1;if("boolean"!=typeof t)break;return t;case rb.STRING:if(null===t)return"";if("string"!=typeof t)break;try{encodeURIComponent(t)}catch($R){throw new Error("invalid UTF8")}return t;case rb.BYTES:if(null===t||""===t)return new Uint8Array(0);if("string"!=typeof t)break;return Rb.dec(t)}throw new Error}function Kb(e,t,r){if(null===t)return 0;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const n=e.findName(t);if(n||r)return null==n?void 0:n.no}throw new Error("cannot decode enum ".concat(e.typeName," from JSON: ").concat(Hb(t)))}function Gb(e,t,r,n){var i;if(void 0===t)return t;if(0===t&&!r)return;if(n)return t;if("google.protobuf.NullValue"==e.typeName)return null;const o=e.findNumber(t);return null!==(i=null==o?void 0:o.name)&&void 0!==i?i:t}function qb(e,t,r){if(void 0!==t)switch(e){case rb.INT32:case rb.SFIXED32:case rb.SINT32:case rb.FIXED32:case rb.UINT32:return Gy("number"==typeof t),0!=t||r?t:void 0;case rb.FLOAT:case rb.DOUBLE:return Gy("number"==typeof t),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":0!==t||r?t:void 0;case rb.STRING:return Gy("string"==typeof t),t.length>0||r?t:void 0;case rb.BOOL:return Gy("boolean"==typeof t),t||r?t:void 0;case rb.UINT64:case rb.FIXED64:case rb.INT64:case rb.SFIXED64:case rb.SINT64:return Gy("bigint"==typeof t||"string"==typeof t||"number"==typeof t),r||0!=t?t.toString(10):void 0;case rb.BYTES:return Gy(t instanceof Uint8Array),r||t.byteLength>0?Rb.enc(t):void 0}}function Qb(e){if(void 0===e)return e;if(e instanceof tb)return e.clone();if(e instanceof Uint8Array){const t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Wb(e){return e instanceof Uint8Array?e:new Uint8Array(e)}class Jb{constructor(e,t){this._fields=e,this._normalizer=t}findJsonName(e){if(!this.jsonNames){const e={};for(const t of this.list())e[t.jsonName]=e[t.name]=t;this.jsonNames=e}return this.jsonNames[e]}find(e){if(!this.numbers){const e={};for(const t of this.list())e[t.no]=t;this.numbers=e}return this.numbers[e]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort(((e,t)=>e.no-t.no))),this.numbersAsc}byMember(){if(!this.members){this.members=[];const e=this.members;let t;for(const r of this.list())r.oneof?r.oneof!==t&&(t=r.oneof,e.push(t)):e.push(r)}return this.members}}function Yb(e,t){const r=$b(e);return t?r:nv(rv(r))}const Zb=$b;function $b(e){let t=!1;const r=[];for(let n=0;n"".concat(e,"$"),rv=e=>ev.has(e)?tv(e):e,nv=e=>Xb.has(e)?tv(e):e;class iv{constructor(e){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=e,this.localName=Yb(e,!1)}addField(e){Gy(e.oneof===this,"field ".concat(e.name," not one of ").concat(this.name)),this.fields.push(e)}findField(e){if(!this._lookup){this._lookup=Object.create(null);for(let e=0;e0&&(n+=": ".concat($R.message)),new Error(n)}}n.push(o)}}else if("map"==t.kind){if(null===a)continue;if(Array.isArray(a)||"object"!=typeof a)throw new Error("cannot decode field ".concat(e.typeName,".").concat(t.name," from JSON: ").concat(this.debug(a)));const n=c[s];for(const[i,o]of Object.entries(a)){if(null===o)throw new Error("cannot decode field ".concat(e.typeName,".").concat(t.name," from JSON: map value null"));let s;switch(t.V.kind){case"message":s=t.V.T.fromJson(o,r);break;case"enum":if(s=Kb(t.V.T,o,r.ignoreUnknownFields),void 0===s)continue;break;case"scalar":try{s=Vb(t.V.T,o,nb.BIGINT)}catch($R){let n="cannot decode map value for field ".concat(e.typeName,".").concat(t.name," from JSON: ").concat(this.debug(a));throw $R instanceof Error&&$R.message.length>0&&(n+=": ".concat($R.message)),new Error(n)}}try{n[Vb(t.K,t.K==rb.BOOL?"true"==i||"false"!=i&&i:i,nb.BIGINT).toString()]=s}catch($R){let n="cannot decode map key for field ".concat(e.typeName,".").concat(t.name," from JSON: ").concat(this.debug(a));throw $R instanceof Error&&$R.message.length>0&&(n+=": ".concat($R.message)),new Error(n)}}}else switch(t.kind){case"message":const n=t.T;if(null===a&&"google.protobuf.Value"!=n.typeName){if(t.oneof)throw new Error("cannot decode field ".concat(e.typeName,".").concat(t.name,' from JSON: null is invalid for oneof field "').concat(o,'"'));continue}c[s]instanceof tb?c[s].fromJson(a,r):(c[s]=n.fromJson(a,r),n.fieldWrapper&&!t.oneof&&(c[s]=n.fieldWrapper.unwrapField(c[s])));break;case"enum":const i=Kb(t.T,a,r.ignoreUnknownFields);void 0!==i&&(c[s]=i);break;case"scalar":try{c[s]=Vb(t.T,a,t.L)}catch($R){let n="cannot decode field ".concat(e.typeName,".").concat(t.name," from JSON: ").concat(this.debug(a));throw $R instanceof Error&&$R.message.length>0&&(n+=": ".concat($R.message)),new Error(n)}}}return n},writeMessage(e,r){const n=e.getType(),i={};let o;try{for(const a of n.fields.byMember()){let n;if("oneof"==a.kind){const i=e[a.localName];if(void 0===i.value)continue;if(o=a.findField(i.case),!o)throw"oneof case not found: "+i.case;n=t(o,i.value,r)}else o=a,n=t(o,e[o.localName],r);void 0!==n&&(i[r.useProtoFieldName?o.name:o.jsonName]=n)}}catch($R){const t=o?"cannot encode field ".concat(n.typeName,".").concat(o.name," to JSON"):"cannot encode message ".concat(n.typeName," to JSON"),r=$R instanceof Error?$R.message:String($R);throw new Error(t+(r.length>0?": ".concat(r):""))}return i},readScalar:Vb,writeScalar:qb,debug:Hb}}(((e,t)=>function(r,n,i){if("map"==r.kind){const o={};switch(r.V.kind){case"scalar":for(const[e,i]of Object.entries(n)){const n=t(r.V.T,i,!0);Gy(void 0!==n),o[e.toString()]=n}break;case"message":for(const[e,t]of Object.entries(n))o[e.toString()]=t.toJson(i);break;case"enum":const a=r.V.T;for(const[t,r]of Object.entries(n)){Gy(void 0===r||"number"==typeof r);const n=e(a,r,!0,i.enumAsInteger);Gy(void 0!==n),o[t.toString()]=n}}return i.emitDefaultValues||Object.keys(o).length>0?o:void 0}if(r.repeated){const o=[];switch(r.kind){case"scalar":for(let e=0;e0?o:void 0}switch(r.kind){case"scalar":return t(r.T,n,!!r.oneof||r.opt||i.emitDefaultValues);case"enum":return e(r.T,n,!!r.oneof||r.opt||i.emitDefaultValues,i.enumAsInteger);case"message":return void 0!==n?bb(r.T,n).toJson(i):void 0}})),cv=Object.assign(Object.assign({},{makeReadOptions:Sb,makeWriteOptions:Ib,listUnknownFields(e){var t;return null!==(t=e[Cb])&&void 0!==t?t:[]},discardUnknownFields(e){delete e[Cb]},writeUnknownFields(e,t){const r=e[Cb];if(r)for(const n of r)t.tag(n.no,n.wireType).raw(n.data)},onUnknownField(e,t,r,n){const i=e;Array.isArray(i[Cb])||(i[Cb]=[]),i[Cb].push({no:t,wireType:r,data:n})},readMessage(e,t,r,n){const i=e.getType(),o=void 0===r?t.len:t.pos+r;for(;t.pos0&&(r=Tb),c){let n=s[u];if(o==gb.LengthDelimited&&e!=rb.STRING&&e!=rb.BYTES){let i=t.uint32()+t.pos;for(;t.pose instanceof c?e:new c(e)));else if(void 0!==o[r]){const e=o[r];c.fieldWrapper?"google.protobuf.BytesValue"===c.typeName?i[r]=Wb(e):i[r]=e:i[r]=e instanceof c?e:new c(e)}}}},equals:(e,t,r)=>t===r||!(!t||!r)&&e.fields.byMember().every((e=>{const n=t[e.localName],i=r[e.localName];if(e.repeated){if(n.length!==i.length)return!1;switch(e.kind){case"message":return n.every(((t,r)=>e.T.equals(t,i[r])));case"scalar":return n.every(((t,r)=>vb(e.T,t,i[r])));case"enum":return n.every(((e,t)=>vb(rb.INT32,e,i[t])))}throw new Error("repeated cannot contain ".concat(e.kind))}switch(e.kind){case"message":return e.T.equals(n,i);case"enum":return vb(rb.INT32,n,i);case"scalar":return vb(e.T,n,i);case"oneof":if(n.case!==i.case)return!1;const t=e.findField(n.case);if(void 0===t)return!0;switch(t.kind){case"message":return t.T.equals(n.value,i.value);case"enum":return vb(rb.INT32,n.value,i.value);case"scalar":return vb(t.T,n.value,i.value)}throw new Error("oneof cannot contain ".concat(t.kind));case"map":const r=Object.keys(n).concat(Object.keys(i));switch(e.V.kind){case"message":const t=e.V.T;return r.every((e=>t.equals(n[e],i[e])));case"enum":return r.every((e=>vb(rb.INT32,n[e],i[e])));case"scalar":const o=e.V.T;return r.every((e=>vb(o,n[e],i[e])))}}})),clone(e){const t=e.getType(),r=new t,n=r;for(const i of t.fields.byMember()){const t=e[i.localName];let r;if(i.repeated)r=t.map(Qb);else if("map"==i.kind){r=n[i.localName];for(const[e,n]of Object.entries(t))r[e]=Qb(n)}else r="oneof"==i.kind?i.findField(t.case)?{case:t.case,value:Qb(t.value)}:{case:void 0}:Qb(t);n[i.localName]=r}return r}}),{newFieldList:e=>new Jb(e,Av),initFields(e){for(const t of e.getType().fields.byMember()){if(t.opt)continue;const r=t.localName,n=e;if(t.repeated)n[r]=[];else switch(t.kind){case"oneof":n[r]={case:void 0};break;case"enum":n[r]=0;break;case"map":n[r]={};break;case"scalar":n[r]=wb(t.T,t.L)}}}}),{syntax:av,json:sv,bin:cv,util:uv,makeMessageType(e,t,r){return function(e,t,r,n){var i;const o=null!==(i=null==n?void 0:n.localName)&&void 0!==i?i:t.substring(t.lastIndexOf(".")+1),a={[o]:function(t){e.util.initFields(this),e.util.initPartial(t,this)}}[o];return Object.setPrototypeOf(a.prototype,new tb),Object.assign(a,{runtime:e,typeName:t,fields:e.util.newFieldList(r),fromBinary:(e,t)=>(new a).fromBinary(e,t),fromJson:(e,t)=>(new a).fromJson(e,t),fromJsonString:(e,t)=>(new a).fromJsonString(e,t),equals:(t,r)=>e.util.equals(a,t,r)}),a}(this,e,t,r)},makeEnum:Xy,makeEnumType:$y,getEnumType:Yy});var av,sv,cv,uv,lv,dv,fv,hv,pv,gv,mv,yv,bv,vv,wv;function Av(e){var t,r,n,i;const o=[];let a;for(const s of"function"==typeof e?e():e){const e=s;if(e.localName=Yb(s.name,void 0!==s.oneof),e.jsonName=null!==(t=s.jsonName)&&void 0!==t?t:Zb(s.name),e.repeated=null!==(r=s.repeated)&&void 0!==r&&r,"scalar"==s.kind&&(e.L=null!==(n=s.L)&&void 0!==n?n:nb.BIGINT),e.packed=null!==(i=s.packed)&&void 0!==i?i:"enum"==s.kind||"scalar"==s.kind&&s.T!=rb.BYTES&&s.T!=rb.STRING,void 0!==s.oneof){const t="string"==typeof s.oneof?s.oneof:s.oneof.name;a&&a.name==t||(a=new iv(t)),e.oneof=a,a.addField(e)}o.push(e)}return o}class Cv extends tb{constructor(e){super(),this.seconds=pb.zero,this.nanos=0,ov.util.initPartial(e,this)}fromJson(e,t){if("string"!=typeof e)throw new Error("cannot decode google.protobuf.Timestamp from JSON: ".concat(ov.json.debug(e)));const r=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!r)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const n=Date.parse(r[1]+"-"+r[2]+"-"+r[3]+"T"+r[4]+":"+r[5]+":"+r[6]+(r[8]?r[8]:"Z"));if(Number.isNaN(n))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(nDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=pb.parse(n/1e3),this.nanos=0,r[7]&&(this.nanos=parseInt("1"+r[7]+"0".repeat(9-r[7].length))-1e9),this}toJson(e){const t=1e3*Number(this.seconds);if(tDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let r="Z";if(this.nanos>0){const e=(this.nanos+1e9).toString().substring(1);r="000000"===e.substring(3)?"."+e.substring(0,3)+"Z":"000"===e.substring(6)?"."+e.substring(0,6)+"Z":"."+e+"Z"}return new Date(t).toISOString().replace(".000Z",r)}toDate(){return new Date(1e3*Number(this.seconds)+Math.ceil(this.nanos/1e6))}static now(){return Cv.fromDate(new Date)}static fromDate(e){const t=e.getTime();return new Cv({seconds:pb.parse(Math.floor(t/1e3)),nanos:t%1e3*1e6})}static fromBinary(e,t){return(new Cv).fromBinary(e,t)}static fromJson(e,t){return(new Cv).fromJson(e,t)}static fromJsonString(e,t){return(new Cv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Cv,e,t)}}Cv.runtime=ov,Cv.typeName="google.protobuf.Timestamp",Cv.fields=ov.util.newFieldList((()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])),function(e){e[e.DEFAULT_AC=0]="DEFAULT_AC",e[e.OPUS=1]="OPUS",e[e.AAC=2]="AAC"}(lv||(lv={})),ov.util.setEnumType(lv,"livekit.AudioCodec",[{no:0,name:"DEFAULT_AC"},{no:1,name:"OPUS"},{no:2,name:"AAC"}]),function(e){e[e.DEFAULT_VC=0]="DEFAULT_VC",e[e.H264_BASELINE=1]="H264_BASELINE",e[e.H264_MAIN=2]="H264_MAIN",e[e.H264_HIGH=3]="H264_HIGH",e[e.VP8=4]="VP8"}(dv||(dv={})),ov.util.setEnumType(dv,"livekit.VideoCodec",[{no:0,name:"DEFAULT_VC"},{no:1,name:"H264_BASELINE"},{no:2,name:"H264_MAIN"},{no:3,name:"H264_HIGH"},{no:4,name:"VP8"}]),function(e){e[e.IC_DEFAULT=0]="IC_DEFAULT",e[e.IC_JPEG=1]="IC_JPEG"}(fv||(fv={})),ov.util.setEnumType(fv,"livekit.ImageCodec",[{no:0,name:"IC_DEFAULT"},{no:1,name:"IC_JPEG"}]),function(e){e[e.AUDIO=0]="AUDIO",e[e.VIDEO=1]="VIDEO",e[e.DATA=2]="DATA"}(hv||(hv={})),ov.util.setEnumType(hv,"livekit.TrackType",[{no:0,name:"AUDIO"},{no:1,name:"VIDEO"},{no:2,name:"DATA"}]),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.CAMERA=1]="CAMERA",e[e.MICROPHONE=2]="MICROPHONE",e[e.SCREEN_SHARE=3]="SCREEN_SHARE",e[e.SCREEN_SHARE_AUDIO=4]="SCREEN_SHARE_AUDIO"}(pv||(pv={})),ov.util.setEnumType(pv,"livekit.TrackSource",[{no:0,name:"UNKNOWN"},{no:1,name:"CAMERA"},{no:2,name:"MICROPHONE"},{no:3,name:"SCREEN_SHARE"},{no:4,name:"SCREEN_SHARE_AUDIO"}]),function(e){e[e.LOW=0]="LOW",e[e.MEDIUM=1]="MEDIUM",e[e.HIGH=2]="HIGH",e[e.OFF=3]="OFF"}(gv||(gv={})),ov.util.setEnumType(gv,"livekit.VideoQuality",[{no:0,name:"LOW"},{no:1,name:"MEDIUM"},{no:2,name:"HIGH"},{no:3,name:"OFF"}]),function(e){e[e.POOR=0]="POOR",e[e.GOOD=1]="GOOD",e[e.EXCELLENT=2]="EXCELLENT",e[e.LOST=3]="LOST"}(mv||(mv={})),ov.util.setEnumType(mv,"livekit.ConnectionQuality",[{no:0,name:"POOR"},{no:1,name:"GOOD"},{no:2,name:"EXCELLENT"},{no:3,name:"LOST"}]),function(e){e[e.UNSET=0]="UNSET",e[e.DISABLED=1]="DISABLED",e[e.ENABLED=2]="ENABLED"}(yv||(yv={})),ov.util.setEnumType(yv,"livekit.ClientConfigSetting",[{no:0,name:"UNSET"},{no:1,name:"DISABLED"},{no:2,name:"ENABLED"}]),function(e){e[e.UNKNOWN_REASON=0]="UNKNOWN_REASON",e[e.CLIENT_INITIATED=1]="CLIENT_INITIATED",e[e.DUPLICATE_IDENTITY=2]="DUPLICATE_IDENTITY",e[e.SERVER_SHUTDOWN=3]="SERVER_SHUTDOWN",e[e.PARTICIPANT_REMOVED=4]="PARTICIPANT_REMOVED",e[e.ROOM_DELETED=5]="ROOM_DELETED",e[e.STATE_MISMATCH=6]="STATE_MISMATCH",e[e.JOIN_FAILURE=7]="JOIN_FAILURE"}(bv||(bv={})),ov.util.setEnumType(bv,"livekit.DisconnectReason",[{no:0,name:"UNKNOWN_REASON"},{no:1,name:"CLIENT_INITIATED"},{no:2,name:"DUPLICATE_IDENTITY"},{no:3,name:"SERVER_SHUTDOWN"},{no:4,name:"PARTICIPANT_REMOVED"},{no:5,name:"ROOM_DELETED"},{no:6,name:"STATE_MISMATCH"},{no:7,name:"JOIN_FAILURE"}]),function(e){e[e.RR_UNKNOWN=0]="RR_UNKNOWN",e[e.RR_SIGNAL_DISCONNECTED=1]="RR_SIGNAL_DISCONNECTED",e[e.RR_PUBLISHER_FAILED=2]="RR_PUBLISHER_FAILED",e[e.RR_SUBSCRIBER_FAILED=3]="RR_SUBSCRIBER_FAILED",e[e.RR_SWITCH_CANDIDATE=4]="RR_SWITCH_CANDIDATE"}(vv||(vv={})),ov.util.setEnumType(vv,"livekit.ReconnectReason",[{no:0,name:"RR_UNKNOWN"},{no:1,name:"RR_SIGNAL_DISCONNECTED"},{no:2,name:"RR_PUBLISHER_FAILED"},{no:3,name:"RR_SUBSCRIBER_FAILED"},{no:4,name:"RR_SWITCH_CANDIDATE"}]),function(e){e[e.SE_UNKNOWN=0]="SE_UNKNOWN",e[e.SE_CODEC_UNSUPPORTED=1]="SE_CODEC_UNSUPPORTED",e[e.SE_TRACK_NOTFOUND=2]="SE_TRACK_NOTFOUND"}(wv||(wv={})),ov.util.setEnumType(wv,"livekit.SubscriptionError",[{no:0,name:"SE_UNKNOWN"},{no:1,name:"SE_CODEC_UNSUPPORTED"},{no:2,name:"SE_TRACK_NOTFOUND"}]);let Ev=class e extends tb{constructor(e){super(),this.sid="",this.name="",this.emptyTimeout=0,this.maxParticipants=0,this.creationTime=pb.zero,this.turnPassword="",this.enabledCodecs=[],this.metadata="",this.numParticipants=0,this.numPublishers=0,this.activeRecording=!1,ov.util.initPartial(e,this)}static fromBinary(t,r){return(new e).fromBinary(t,r)}static fromJson(t,r){return(new e).fromJson(t,r)}static fromJsonString(t,r){return(new e).fromJsonString(t,r)}static equals(t,r){return ov.util.equals(e,t,r)}};Ev.runtime=ov,Ev.typeName="livekit.Room",Ev.fields=ov.util.newFieldList((()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"empty_timeout",kind:"scalar",T:13},{no:4,name:"max_participants",kind:"scalar",T:13},{no:5,name:"creation_time",kind:"scalar",T:3},{no:6,name:"turn_password",kind:"scalar",T:9},{no:7,name:"enabled_codecs",kind:"message",T:xv,repeated:!0},{no:8,name:"metadata",kind:"scalar",T:9},{no:9,name:"num_participants",kind:"scalar",T:13},{no:11,name:"num_publishers",kind:"scalar",T:13},{no:10,name:"active_recording",kind:"scalar",T:8}]));class xv extends tb{constructor(e){super(),this.mime="",this.fmtpLine="",ov.util.initPartial(e,this)}static fromBinary(e,t){return(new xv).fromBinary(e,t)}static fromJson(e,t){return(new xv).fromJson(e,t)}static fromJsonString(e,t){return(new xv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(xv,e,t)}}xv.runtime=ov,xv.typeName="livekit.Codec",xv.fields=ov.util.newFieldList((()=>[{no:1,name:"mime",kind:"scalar",T:9},{no:2,name:"fmtp_line",kind:"scalar",T:9}]));class Sv extends tb{constructor(e){super(),this.enabled=!1,this.min=0,this.max=0,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Sv).fromBinary(e,t)}static fromJson(e,t){return(new Sv).fromJson(e,t)}static fromJsonString(e,t){return(new Sv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Sv,e,t)}}Sv.runtime=ov,Sv.typeName="livekit.PlayoutDelay",Sv.fields=ov.util.newFieldList((()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"min",kind:"scalar",T:13},{no:3,name:"max",kind:"scalar",T:13}]));class Iv extends tb{constructor(e){super(),this.canSubscribe=!1,this.canPublish=!1,this.canPublishData=!1,this.canPublishSources=[],this.hidden=!1,this.recorder=!1,this.canUpdateMetadata=!1,this.agent=!1,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Iv).fromBinary(e,t)}static fromJson(e,t){return(new Iv).fromJson(e,t)}static fromJsonString(e,t){return(new Iv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Iv,e,t)}}Iv.runtime=ov,Iv.typeName="livekit.ParticipantPermission",Iv.fields=ov.util.newFieldList((()=>[{no:1,name:"can_subscribe",kind:"scalar",T:8},{no:2,name:"can_publish",kind:"scalar",T:8},{no:3,name:"can_publish_data",kind:"scalar",T:8},{no:9,name:"can_publish_sources",kind:"enum",T:ov.getEnumType(pv),repeated:!0},{no:7,name:"hidden",kind:"scalar",T:8},{no:8,name:"recorder",kind:"scalar",T:8},{no:10,name:"can_update_metadata",kind:"scalar",T:8},{no:11,name:"agent",kind:"scalar",T:8}]));class kv extends tb{constructor(e){super(),this.sid="",this.identity="",this.state=_v.JOINING,this.tracks=[],this.metadata="",this.joinedAt=pb.zero,this.name="",this.version=0,this.region="",this.isPublisher=!1,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new kv).fromBinary(e,t)}static fromJson(e,t){return(new kv).fromJson(e,t)}static fromJsonString(e,t){return(new kv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(kv,e,t)}}var _v,Tv,Mv,Pv,jv;kv.runtime=ov,kv.typeName="livekit.ParticipantInfo",kv.fields=ov.util.newFieldList((()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"identity",kind:"scalar",T:9},{no:3,name:"state",kind:"enum",T:ov.getEnumType(_v)},{no:4,name:"tracks",kind:"message",T:Bv,repeated:!0},{no:5,name:"metadata",kind:"scalar",T:9},{no:6,name:"joined_at",kind:"scalar",T:3},{no:9,name:"name",kind:"scalar",T:9},{no:10,name:"version",kind:"scalar",T:13},{no:11,name:"permission",kind:"message",T:Iv},{no:12,name:"region",kind:"scalar",T:9},{no:13,name:"is_publisher",kind:"scalar",T:8}])),function(e){e[e.JOINING=0]="JOINING",e[e.JOINED=1]="JOINED",e[e.ACTIVE=2]="ACTIVE",e[e.DISCONNECTED=3]="DISCONNECTED"}(_v||(_v={})),ov.util.setEnumType(_v,"livekit.ParticipantInfo.State",[{no:0,name:"JOINING"},{no:1,name:"JOINED"},{no:2,name:"ACTIVE"},{no:3,name:"DISCONNECTED"}]);class Dv extends tb{constructor(e){super(),ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Dv).fromBinary(e,t)}static fromJson(e,t){return(new Dv).fromJson(e,t)}static fromJsonString(e,t){return(new Dv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Dv,e,t)}}Dv.runtime=ov,Dv.typeName="livekit.Encryption",Dv.fields=ov.util.newFieldList((()=>[])),function(e){e[e.NONE=0]="NONE",e[e.GCM=1]="GCM",e[e.CUSTOM=2]="CUSTOM"}(Tv||(Tv={})),ov.util.setEnumType(Tv,"livekit.Encryption.Type",[{no:0,name:"NONE"},{no:1,name:"GCM"},{no:2,name:"CUSTOM"}]);class Ov extends tb{constructor(e){super(),this.mimeType="",this.mid="",this.cid="",this.layers=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Ov).fromBinary(e,t)}static fromJson(e,t){return(new Ov).fromJson(e,t)}static fromJsonString(e,t){return(new Ov).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Ov,e,t)}}Ov.runtime=ov,Ov.typeName="livekit.SimulcastCodecInfo",Ov.fields=ov.util.newFieldList((()=>[{no:1,name:"mime_type",kind:"scalar",T:9},{no:2,name:"mid",kind:"scalar",T:9},{no:3,name:"cid",kind:"scalar",T:9},{no:4,name:"layers",kind:"message",T:Nv,repeated:!0}]));class Bv extends tb{constructor(e){super(),this.sid="",this.type=hv.AUDIO,this.name="",this.muted=!1,this.width=0,this.height=0,this.simulcast=!1,this.disableDtx=!1,this.source=pv.UNKNOWN,this.layers=[],this.mimeType="",this.mid="",this.codecs=[],this.stereo=!1,this.disableRed=!1,this.encryption=Tv.NONE,this.stream="",ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Bv).fromBinary(e,t)}static fromJson(e,t){return(new Bv).fromJson(e,t)}static fromJsonString(e,t){return(new Bv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Bv,e,t)}}Bv.runtime=ov,Bv.typeName="livekit.TrackInfo",Bv.fields=ov.util.newFieldList((()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:ov.getEnumType(hv)},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"muted",kind:"scalar",T:8},{no:5,name:"width",kind:"scalar",T:13},{no:6,name:"height",kind:"scalar",T:13},{no:7,name:"simulcast",kind:"scalar",T:8},{no:8,name:"disable_dtx",kind:"scalar",T:8},{no:9,name:"source",kind:"enum",T:ov.getEnumType(pv)},{no:10,name:"layers",kind:"message",T:Nv,repeated:!0},{no:11,name:"mime_type",kind:"scalar",T:9},{no:12,name:"mid",kind:"scalar",T:9},{no:13,name:"codecs",kind:"message",T:Ov,repeated:!0},{no:14,name:"stereo",kind:"scalar",T:8},{no:15,name:"disable_red",kind:"scalar",T:8},{no:16,name:"encryption",kind:"enum",T:ov.getEnumType(Tv)},{no:17,name:"stream",kind:"scalar",T:9}]));class Nv extends tb{constructor(e){super(),this.quality=gv.LOW,this.width=0,this.height=0,this.bitrate=0,this.ssrc=0,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Nv).fromBinary(e,t)}static fromJson(e,t){return(new Nv).fromJson(e,t)}static fromJsonString(e,t){return(new Nv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Nv,e,t)}}Nv.runtime=ov,Nv.typeName="livekit.VideoLayer",Nv.fields=ov.util.newFieldList((()=>[{no:1,name:"quality",kind:"enum",T:ov.getEnumType(gv)},{no:2,name:"width",kind:"scalar",T:13},{no:3,name:"height",kind:"scalar",T:13},{no:4,name:"bitrate",kind:"scalar",T:13},{no:5,name:"ssrc",kind:"scalar",T:13}]));class Rv extends tb{constructor(e){super(),this.kind=Mv.RELIABLE,this.value={case:void 0},ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Rv).fromBinary(e,t)}static fromJson(e,t){return(new Rv).fromJson(e,t)}static fromJsonString(e,t){return(new Rv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Rv,e,t)}}Rv.runtime=ov,Rv.typeName="livekit.DataPacket",Rv.fields=ov.util.newFieldList((()=>[{no:1,name:"kind",kind:"enum",T:ov.getEnumType(Mv)},{no:2,name:"user",kind:"message",T:Uv,oneof:"value"},{no:3,name:"speaker",kind:"message",T:Lv,oneof:"value"}])),function(e){e[e.RELIABLE=0]="RELIABLE",e[e.LOSSY=1]="LOSSY"}(Mv||(Mv={})),ov.util.setEnumType(Mv,"livekit.DataPacket.Kind",[{no:0,name:"RELIABLE"},{no:1,name:"LOSSY"}]);class Lv extends tb{constructor(e){super(),this.speakers=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Lv).fromBinary(e,t)}static fromJson(e,t){return(new Lv).fromJson(e,t)}static fromJsonString(e,t){return(new Lv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Lv,e,t)}}Lv.runtime=ov,Lv.typeName="livekit.ActiveSpeakerUpdate",Lv.fields=ov.util.newFieldList((()=>[{no:1,name:"speakers",kind:"message",T:Fv,repeated:!0}]));class Fv extends tb{constructor(e){super(),this.sid="",this.level=0,this.active=!1,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Fv).fromBinary(e,t)}static fromJson(e,t){return(new Fv).fromJson(e,t)}static fromJsonString(e,t){return(new Fv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Fv,e,t)}}Fv.runtime=ov,Fv.typeName="livekit.SpeakerInfo",Fv.fields=ov.util.newFieldList((()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"level",kind:"scalar",T:2},{no:3,name:"active",kind:"scalar",T:8}]));class Uv extends tb{constructor(e){super(),this.participantSid="",this.participantIdentity="",this.payload=new Uint8Array(0),this.destinationSids=[],this.destinationIdentities=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Uv).fromBinary(e,t)}static fromJson(e,t){return(new Uv).fromJson(e,t)}static fromJsonString(e,t){return(new Uv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Uv,e,t)}}Uv.runtime=ov,Uv.typeName="livekit.UserPacket",Uv.fields=ov.util.newFieldList((()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:5,name:"participant_identity",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12},{no:3,name:"destination_sids",kind:"scalar",T:9,repeated:!0},{no:6,name:"destination_identities",kind:"scalar",T:9,repeated:!0},{no:4,name:"topic",kind:"scalar",T:9,opt:!0}]));class zv extends tb{constructor(e){super(),this.participantSid="",this.trackSids=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new zv).fromBinary(e,t)}static fromJson(e,t){return(new zv).fromJson(e,t)}static fromJsonString(e,t){return(new zv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(zv,e,t)}}zv.runtime=ov,zv.typeName="livekit.ParticipantTracks",zv.fields=ov.util.newFieldList((()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"track_sids",kind:"scalar",T:9,repeated:!0}]));class Hv extends tb{constructor(e){super(),this.edition=Pv.Standard,this.version="",this.protocol=0,this.region="",this.nodeId="",this.debugInfo="",ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Hv).fromBinary(e,t)}static fromJson(e,t){return(new Hv).fromJson(e,t)}static fromJsonString(e,t){return(new Hv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Hv,e,t)}}Hv.runtime=ov,Hv.typeName="livekit.ServerInfo",Hv.fields=ov.util.newFieldList((()=>[{no:1,name:"edition",kind:"enum",T:ov.getEnumType(Pv)},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"protocol",kind:"scalar",T:5},{no:4,name:"region",kind:"scalar",T:9},{no:5,name:"node_id",kind:"scalar",T:9},{no:6,name:"debug_info",kind:"scalar",T:9}])),function(e){e[e.Standard=0]="Standard",e[e.Cloud=1]="Cloud"}(Pv||(Pv={})),ov.util.setEnumType(Pv,"livekit.ServerInfo.Edition",[{no:0,name:"Standard"},{no:1,name:"Cloud"}]);class Vv extends tb{constructor(e){super(),this.sdk=jv.UNKNOWN,this.version="",this.protocol=0,this.os="",this.osVersion="",this.deviceModel="",this.browser="",this.browserVersion="",this.address="",this.network="",ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Vv).fromBinary(e,t)}static fromJson(e,t){return(new Vv).fromJson(e,t)}static fromJsonString(e,t){return(new Vv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Vv,e,t)}}Vv.runtime=ov,Vv.typeName="livekit.ClientInfo",Vv.fields=ov.util.newFieldList((()=>[{no:1,name:"sdk",kind:"enum",T:ov.getEnumType(jv)},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"protocol",kind:"scalar",T:5},{no:4,name:"os",kind:"scalar",T:9},{no:5,name:"os_version",kind:"scalar",T:9},{no:6,name:"device_model",kind:"scalar",T:9},{no:7,name:"browser",kind:"scalar",T:9},{no:8,name:"browser_version",kind:"scalar",T:9},{no:9,name:"address",kind:"scalar",T:9},{no:10,name:"network",kind:"scalar",T:9}])),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.JS=1]="JS",e[e.SWIFT=2]="SWIFT",e[e.ANDROID=3]="ANDROID",e[e.FLUTTER=4]="FLUTTER",e[e.GO=5]="GO",e[e.UNITY=6]="UNITY",e[e.REACT_NATIVE=7]="REACT_NATIVE",e[e.RUST=8]="RUST",e[e.PYTHON=9]="PYTHON",e[e.CPP=10]="CPP"}(jv||(jv={})),ov.util.setEnumType(jv,"livekit.ClientInfo.SDK",[{no:0,name:"UNKNOWN"},{no:1,name:"JS"},{no:2,name:"SWIFT"},{no:3,name:"ANDROID"},{no:4,name:"FLUTTER"},{no:5,name:"GO"},{no:6,name:"UNITY"},{no:7,name:"REACT_NATIVE"},{no:8,name:"RUST"},{no:9,name:"PYTHON"},{no:10,name:"CPP"}]);class Kv extends tb{constructor(e){super(),this.resumeConnection=yv.UNSET,this.forceRelay=yv.UNSET,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Kv).fromBinary(e,t)}static fromJson(e,t){return(new Kv).fromJson(e,t)}static fromJsonString(e,t){return(new Kv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Kv,e,t)}}Kv.runtime=ov,Kv.typeName="livekit.ClientConfiguration",Kv.fields=ov.util.newFieldList((()=>[{no:1,name:"video",kind:"message",T:Gv},{no:2,name:"screen",kind:"message",T:Gv},{no:3,name:"resume_connection",kind:"enum",T:ov.getEnumType(yv)},{no:4,name:"disabled_codecs",kind:"message",T:qv},{no:5,name:"force_relay",kind:"enum",T:ov.getEnumType(yv)}]));class Gv extends tb{constructor(e){super(),this.hardwareEncoder=yv.UNSET,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Gv).fromBinary(e,t)}static fromJson(e,t){return(new Gv).fromJson(e,t)}static fromJsonString(e,t){return(new Gv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Gv,e,t)}}Gv.runtime=ov,Gv.typeName="livekit.VideoConfiguration",Gv.fields=ov.util.newFieldList((()=>[{no:1,name:"hardware_encoder",kind:"enum",T:ov.getEnumType(yv)}]));class qv extends tb{constructor(e){super(),this.codecs=[],this.publish=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new qv).fromBinary(e,t)}static fromJson(e,t){return(new qv).fromJson(e,t)}static fromJsonString(e,t){return(new qv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(qv,e,t)}}qv.runtime=ov,qv.typeName="livekit.DisabledCodecs",qv.fields=ov.util.newFieldList((()=>[{no:1,name:"codecs",kind:"message",T:xv,repeated:!0},{no:2,name:"publish",kind:"message",T:xv,repeated:!0}]));class Qv extends tb{constructor(e){super(),this.duration=0,this.startTimestamp=pb.zero,this.endTimestamp=pb.zero,this.rtpClockTicks=pb.zero,this.driftSamples=pb.zero,this.driftMs=0,this.clockRate=0,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Qv).fromBinary(e,t)}static fromJson(e,t){return(new Qv).fromJson(e,t)}static fromJsonString(e,t){return(new Qv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Qv,e,t)}}Qv.runtime=ov,Qv.typeName="livekit.RTPDrift",Qv.fields=ov.util.newFieldList((()=>[{no:1,name:"start_time",kind:"message",T:Cv},{no:2,name:"end_time",kind:"message",T:Cv},{no:3,name:"duration",kind:"scalar",T:1},{no:4,name:"start_timestamp",kind:"scalar",T:4},{no:5,name:"end_timestamp",kind:"scalar",T:4},{no:6,name:"rtp_clock_ticks",kind:"scalar",T:4},{no:7,name:"drift_samples",kind:"scalar",T:3},{no:8,name:"drift_ms",kind:"scalar",T:1},{no:9,name:"clock_rate",kind:"scalar",T:1}]));class Wv extends tb{constructor(e){super(),this.duration=0,this.packets=0,this.packetRate=0,this.bytes=pb.zero,this.headerBytes=pb.zero,this.bitrate=0,this.packetsLost=0,this.packetLossRate=0,this.packetLossPercentage=0,this.packetsDuplicate=0,this.packetDuplicateRate=0,this.bytesDuplicate=pb.zero,this.headerBytesDuplicate=pb.zero,this.bitrateDuplicate=0,this.packetsPadding=0,this.packetPaddingRate=0,this.bytesPadding=pb.zero,this.headerBytesPadding=pb.zero,this.bitratePadding=0,this.packetsOutOfOrder=0,this.frames=0,this.frameRate=0,this.jitterCurrent=0,this.jitterMax=0,this.gapHistogram={},this.nacks=0,this.nackAcks=0,this.nackMisses=0,this.nackRepeated=0,this.plis=0,this.firs=0,this.rttCurrent=0,this.rttMax=0,this.keyFrames=0,this.layerLockPlis=0,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Wv).fromBinary(e,t)}static fromJson(e,t){return(new Wv).fromJson(e,t)}static fromJsonString(e,t){return(new Wv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Wv,e,t)}}Wv.runtime=ov,Wv.typeName="livekit.RTPStats",Wv.fields=ov.util.newFieldList((()=>[{no:1,name:"start_time",kind:"message",T:Cv},{no:2,name:"end_time",kind:"message",T:Cv},{no:3,name:"duration",kind:"scalar",T:1},{no:4,name:"packets",kind:"scalar",T:13},{no:5,name:"packet_rate",kind:"scalar",T:1},{no:6,name:"bytes",kind:"scalar",T:4},{no:39,name:"header_bytes",kind:"scalar",T:4},{no:7,name:"bitrate",kind:"scalar",T:1},{no:8,name:"packets_lost",kind:"scalar",T:13},{no:9,name:"packet_loss_rate",kind:"scalar",T:1},{no:10,name:"packet_loss_percentage",kind:"scalar",T:2},{no:11,name:"packets_duplicate",kind:"scalar",T:13},{no:12,name:"packet_duplicate_rate",kind:"scalar",T:1},{no:13,name:"bytes_duplicate",kind:"scalar",T:4},{no:40,name:"header_bytes_duplicate",kind:"scalar",T:4},{no:14,name:"bitrate_duplicate",kind:"scalar",T:1},{no:15,name:"packets_padding",kind:"scalar",T:13},{no:16,name:"packet_padding_rate",kind:"scalar",T:1},{no:17,name:"bytes_padding",kind:"scalar",T:4},{no:41,name:"header_bytes_padding",kind:"scalar",T:4},{no:18,name:"bitrate_padding",kind:"scalar",T:1},{no:19,name:"packets_out_of_order",kind:"scalar",T:13},{no:20,name:"frames",kind:"scalar",T:13},{no:21,name:"frame_rate",kind:"scalar",T:1},{no:22,name:"jitter_current",kind:"scalar",T:1},{no:23,name:"jitter_max",kind:"scalar",T:1},{no:24,name:"gap_histogram",kind:"map",K:5,V:{kind:"scalar",T:13}},{no:25,name:"nacks",kind:"scalar",T:13},{no:37,name:"nack_acks",kind:"scalar",T:13},{no:26,name:"nack_misses",kind:"scalar",T:13},{no:38,name:"nack_repeated",kind:"scalar",T:13},{no:27,name:"plis",kind:"scalar",T:13},{no:28,name:"last_pli",kind:"message",T:Cv},{no:29,name:"firs",kind:"scalar",T:13},{no:30,name:"last_fir",kind:"message",T:Cv},{no:31,name:"rtt_current",kind:"scalar",T:13},{no:32,name:"rtt_max",kind:"scalar",T:13},{no:33,name:"key_frames",kind:"scalar",T:13},{no:34,name:"last_key_frame",kind:"message",T:Cv},{no:35,name:"layer_lock_plis",kind:"scalar",T:13},{no:36,name:"last_layer_lock_pli",kind:"message",T:Cv},{no:44,name:"packet_drift",kind:"message",T:Qv},{no:45,name:"report_drift",kind:"message",T:Qv}]));class Jv extends tb{constructor(e){super(),this.unixMicro=pb.zero,this.ticks=0,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new Jv).fromBinary(e,t)}static fromJson(e,t){return(new Jv).fromJson(e,t)}static fromJsonString(e,t){return(new Jv).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(Jv,e,t)}}Jv.runtime=ov,Jv.typeName="livekit.TimedVersion",Jv.fields=ov.util.newFieldList((()=>[{no:1,name:"unix_micro",kind:"scalar",T:3},{no:2,name:"ticks",kind:"scalar",T:5}]));const Yv=7e3,Zv=[0,300,1200,2700,4800,Yv,Yv,Yv,Yv,Yv];function $v(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch($R){o($R)}}function s(e){try{c(n.throw(e))}catch($R){o($R)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function Xv(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ew(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=Xv(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var tw,rw={exports:{}},nw="object"==typeof Reflect?Reflect:null,iw=nw&&"function"==typeof nw.apply?nw.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};tw=nw&&"function"==typeof nw.ownKeys?nw.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var ow=Number.isNaN||function(e){return e!=e};function aw(){aw.init.call(this)}rw.exports=aw,rw.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}mw(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&mw(e,"error",t,r)}(e,i,{once:!0})}))},aw.EventEmitter=aw,aw.prototype._events=void 0,aw.prototype._eventsCount=0,aw.prototype._maxListeners=void 0;var sw=10;function cw(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function uw(e){return void 0===e._maxListeners?aw.defaultMaxListeners:e._maxListeners}function lw(e,t,r,n){var i,o,a,s;if(cw(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=uw(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function dw(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function fw(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=dw.bind(n);return i.listener=r,n.wrapFn=i,i}function hw(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)iw(s,this,t);else{var c=s.length,u=gw(s,c);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},aw.prototype.listeners=function(e){return hw(this,e,!0)},aw.prototype.rawListeners=function(e){return hw(this,e,!1)},aw.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):pw.call(e,t)},aw.prototype.listenerCount=pw,aw.prototype.eventNames=function(){return this._eventsCount>0?tw(this._events):[]};var yw=rw.exports;let bw=!0,vw=!0;function ww(e,t,r){const n=e.match(t);return n&&n.length>=r&&parseInt(n[r],10)}function Aw(e,t,r){if(!e.RTCPeerConnection)return;const n=e.RTCPeerConnection.prototype,i=n.addEventListener;n.addEventListener=function(e,n){if(e!==t)return i.apply(this,arguments);const o=e=>{const t=r(e);t&&(n.handleEvent?n.handleEvent(t):n(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(n,o),i.apply(this,[e,o])};const o=n.removeEventListener;n.removeEventListener=function(e,r){if(e!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(r))return o.apply(this,arguments);const n=this._eventMap[t].get(r);return this._eventMap[t].delete(r),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,n])},Object.defineProperty(n,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function Cw(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(bw=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function Ew(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(vw=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function xw(){if("object"==typeof window){if(bw)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function Sw(e,t){vw&&console.warn(e+" is deprecated, please use "+t+" instead.")}function Iw(e){return"[object Object]"===Object.prototype.toString.call(e)}function kw(e){return Iw(e)?Object.keys(e).reduce((function(t,r){const n=Iw(e[r]),i=n?kw(e[r]):e[r],o=n&&!Object.keys(i).length;return void 0===i||o?t:Object.assign(t,{[r]:i})}),{}):e}function _w(e,t,r){t&&!r.has(t.id)&&(r.set(t.id,t),Object.keys(t).forEach((n=>{n.endsWith("Id")?_w(e,e.get(t[n]),r):n.endsWith("Ids")&&t[n].forEach((t=>{_w(e,e.get(t),r)}))})))}function Tw(e,t,r){const n=r?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;const o=[];return e.forEach((e=>{"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)})),o.forEach((t=>{e.forEach((r=>{r.type===n&&r.trackId===t.id&&_w(e,r,i)}))})),i}const Mw=xw;function Pw(e,t){const r=e&&e.navigator;if(!r.mediaDevices)return;const n=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach((r=>{if("require"===r||"advanced"===r||"mediaSource"===r)return;const n="object"==typeof e[r]?e[r]:{ideal:e[r]};void 0!==n.exact&&"number"==typeof n.exact&&(n.min=n.max=n.exact);const i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==n.ideal){t.optional=t.optional||[];let e={};"number"==typeof n.ideal?(e[i("min",r)]=n.ideal,t.optional.push(e),e={},e[i("max",r)]=n.ideal,t.optional.push(e)):(e[i("",r)]=n.ideal,t.optional.push(e))}void 0!==n.exact&&"number"!=typeof n.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",r)]=n.exact):["min","max"].forEach((e=>{void 0!==n[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,r)]=n[e])}))})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(t.version>=61)return i(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){const t=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=n(e.audio)}if(e&&"object"==typeof e.video){let o=e.video.facingMode;o=o&&("object"==typeof o?o:{ideal:o});const a=t.version<66;if(o&&("user"===o.exact||"environment"===o.exact||"user"===o.ideal||"environment"===o.ideal)&&(!r.mediaDevices.getSupportedConstraints||!r.mediaDevices.getSupportedConstraints().facingMode||a)){let t;if(delete e.video.facingMode,"environment"===o.exact||"environment"===o.ideal?t=["back","rear"]:"user"!==o.exact&&"user"!==o.ideal||(t=["front"]),t)return r.mediaDevices.enumerateDevices().then((r=>{r=r.filter((e=>"videoinput"===e.kind));let a=r.find((e=>t.some((t=>e.label.toLowerCase().includes(t)))));return!a&&r.length&&t.includes("back")&&(a=r[r.length-1]),a&&(e.video.deviceId=o.exact?{exact:a.deviceId}:{ideal:a.deviceId}),e.video=n(e.video),Mw("chrome: "+JSON.stringify(e)),i(e)}))}e.video=n(e.video)}return Mw("chrome: "+JSON.stringify(e)),i(e)},o=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(r.getUserMedia=function(e,t,n){i(e,(e=>{r.webkitGetUserMedia(e,t,(e=>{n&&n(o(e))}))}))}.bind(r),r.mediaDevices.getUserMedia){const e=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(t){return i(t,(t=>e(t).then((e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach((e=>{e.stop()})),new DOMException("","NotFoundError");return e}),(e=>Promise.reject(o(e))))))}}}function jw(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function Dw(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",(r=>{let n;n=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===r.track.id)):{track:r.track};const i=new Event("track");i.track=r.track,i.receiver=n,i.transceiver={receiver:n},i.streams=[t.stream],this.dispatchEvent(i)})),t.stream.getTracks().forEach((r=>{let n;n=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===r.id)):{track:r};const i=new Event("track");i.track=r,i.receiver=n,i.transceiver={receiver:n},i.streams=[t.stream],this.dispatchEvent(i)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else Aw(e,"track",(e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e)))}function Ow(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const r=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){let i=r.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};const n=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){n.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach((e=>{this._senders.push(t(this,e))}))};const n=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach((e=>{const t=this._senders.find((t=>t.track===e));t&&this._senders.splice(this._senders.indexOf(t),1)}))}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function Bw(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,r,n]=arguments;if(arguments.length>0&&"function"==typeof e)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof e))return t.apply(this,[]);const i=function(e){const t={};return e.result().forEach((e=>{const r={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((t=>{r[t]=e.stat(t)})),t[r.id]=r})),t},o=function(e){return new Map(Object.keys(e).map((t=>[t,e[t]])))};if(arguments.length>=2){const n=function(e){r(o(i(e)))};return t.apply(this,[n,e])}return new Promise(((e,r)=>{t.apply(this,[function(t){e(o(i(t)))},r])})).then(r,n)}}function Nw(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=r.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>Tw(t,e.track,!0)))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),Aw(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>Tw(t,e.track,!1)))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,r,n;return this.getSenders().forEach((r=>{r.track===e&&(t?n=!0:t=r)})),this.getReceivers().forEach((t=>(t.track===e&&(r?n=!0:r=t),t.track===e))),n||t&&r?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():r?r.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function Rw(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((e=>this._shimmedLocalStreams[e][0]))};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){if(!r)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const n=t.apply(this,arguments);return this._shimmedLocalStreams[r.id]?-1===this._shimmedLocalStreams[r.id].indexOf(n)&&this._shimmedLocalStreams[r.id].push(n):this._shimmedLocalStreams[r.id]=[r,n],n};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((e=>{const t=this.getSenders().find((t=>t.track===e));if(t)throw new DOMException("Track already exists.","InvalidAccessError")}));const t=this.getSenders();r.apply(this,arguments);const n=this.getSenders().filter((e=>-1===t.indexOf(e)));this._shimmedLocalStreams[e.id]=[e].concat(n)};const n=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],n.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((t=>{const r=this._shimmedLocalStreams[t].indexOf(e);-1!==r&&this._shimmedLocalStreams[t].splice(r,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]})),i.apply(this,arguments)}}function Lw(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Rw(e);const r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=r.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map((e=>this._reverseStreams[e.id]))};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((e=>{const t=this.getSenders().find((t=>t.track===e));if(t)throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){const r=new e.MediaStream(t.getTracks());this._streams[t.id]=r,this._reverseStreams[r.id]=t,t=r}n.apply(this,[t])};const i=e.RTCPeerConnection.prototype.removeStream;function o(e,t){let r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const n=e._reverseStreams[t],i=e._streams[n.id];r=r.replace(new RegExp(i.id,"g"),n.id)})),new RTCSessionDescription({type:t.type,sdp:r})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,r){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const n=[].slice.call(arguments,1);if(1!==n.length||!n[0].getTracks().find((e=>e===t)))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");const i=this.getSenders().find((e=>e.track===t));if(i)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const o=this._streams[r.id];if(o)o.addTrack(t),Promise.resolve().then((()=>{this.dispatchEvent(new Event("negotiationneeded"))}));else{const n=new e.MediaStream([t]);this._streams[r.id]=n,this._reverseStreams[n.id]=r,this.addStream(n)}return this.getSenders().find((e=>e.track===t))},["createOffer","createAnswer"].forEach((function(t){const r=e.RTCPeerConnection.prototype[t],n={[t](){const e=arguments;return arguments.length&&"function"==typeof arguments[0]?r.apply(this,[t=>{const r=o(this,t);e[0].apply(null,[r])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):r.apply(this,arguments).then((e=>o(this,e)))}};e.RTCPeerConnection.prototype[t]=n[t]}));const a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function(e,t){let r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const n=e._reverseStreams[t],i=e._streams[n.id];r=r.replace(new RegExp(n.id,"g"),i.id)})),new RTCSessionDescription({type:t.type,sdp:r})}(this,arguments[0]),a.apply(this,arguments)):a.apply(this,arguments)};const s=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=s.get.apply(this);return""===e.type?e:o(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(e._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let t;this._streams=this._streams||{},Object.keys(this._streams).forEach((r=>{this._streams[r].getTracks().find((t=>e.track===t))&&(t=this._streams[r])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function Fw(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const r=e.RTCPeerConnection.prototype[t],n={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=n[t]}))}function Uw(e,t){Aw(e,"negotiationneeded",(e=>{const r=e.target;if(!(t.version<72||r.getConfiguration&&"plan-b"===r.getConfiguration().sdpSemantics)||"stable"===r.signalingState)return e}))}var zw=Object.freeze({__proto__:null,fixNegotiationNeeded:Uw,shimAddTrackRemoveTrack:Lw,shimAddTrackRemoveTrackWithNative:Rw,shimGetDisplayMedia:function(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(r){return t(r).then((t=>{const n=r.video&&r.video.width,i=r.video&&r.video.height,o=r.video&&r.video.frameRate;return r.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:o||3}},n&&(r.video.mandatory.maxWidth=n),i&&(r.video.mandatory.maxHeight=i),e.navigator.mediaDevices.getUserMedia(r)}))}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))},shimGetSendersWithDtmf:Ow,shimGetStats:Bw,shimGetUserMedia:Pw,shimMediaStream:jw,shimOnTrack:Dw,shimPeerConnection:Fw,shimSenderReceiverGetStats:Nw});function Hw(e,t){const r=e&&e.navigator,n=e&&e.MediaStreamTrack;if(r.getUserMedia=function(e,t,n){Sw("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(e).then(t,n)},!(t.version>55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){const e=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])},t=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(r){return"object"==typeof r&&"object"==typeof r.audio&&(r=JSON.parse(JSON.stringify(r)),e(r.audio,"autoGainControl","mozAutoGainControl"),e(r.audio,"noiseSuppression","mozNoiseSuppression")),t(r)},n&&n.prototype.getSettings){const t=n.prototype.getSettings;n.prototype.getSettings=function(){const r=t.apply(this,arguments);return e(r,"mozAutoGainControl","autoGainControl"),e(r,"mozNoiseSuppression","noiseSuppression"),r}}if(n&&n.prototype.applyConstraints){const t=n.prototype.applyConstraints;n.prototype.applyConstraints=function(r){return"audio"===this.kind&&"object"==typeof r&&(r=JSON.parse(JSON.stringify(r)),e(r,"autoGainControl","mozAutoGainControl"),e(r,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[r])}}}}function Vw(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Kw(e,t){if("object"!=typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const r=e.RTCPeerConnection.prototype[t],n={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=n[t]}));const r={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},n=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,i,o]=arguments;return n.apply(this,[e||null]).then((e=>{if(t.version<53&&!i)try{e.forEach((e=>{e.type=r[e.type]||e.type}))}catch($R){if("TypeError"!==$R.name)throw $R;e.forEach(((t,n)=>{e.set(n,Object.assign({},t,{type:r[t.type]||t.type}))}))}return e})).then(i,o)}}function Gw(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=r.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function qw(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),Aw(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function Qw(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){Sw("removeStream","removeTrack"),this.getSenders().forEach((t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)}))})}function Ww(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function Jw(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let e=arguments[1]&&arguments[1].sendEncodings;void 0===e&&(e=[]),e=[...e];const r=e.length>0;r&&e.forEach((e=>{if("rid"in e){if(!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.")}if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));const n=t.apply(this,arguments);if(r){const{sender:t}=n,r=t.getParameters();(!("encodings"in r)||1===r.encodings.length&&0===Object.keys(r.encodings[0]).length)&&(r.encodings=e,t.sendEncodings=e,this.setParametersPromises.push(t.setParameters(r).then((()=>{delete t.sendEncodings})).catch((()=>{delete t.sendEncodings}))))}return n})}function Yw(e){if("object"!=typeof e||!e.RTCRtpSender)return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function Zw(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function $w(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}var Xw=Object.freeze({__proto__:null,shimAddTransceiver:Jw,shimCreateAnswer:$w,shimCreateOffer:Zw,shimGetDisplayMedia:function(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!r||!r.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===r.video?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})},shimGetParameters:Yw,shimGetUserMedia:Hw,shimOnTrack:Vw,shimPeerConnection:Kw,shimRTCDataChannel:Ww,shimReceiverGetStats:qw,shimRemoveStream:Qw,shimSenderGetStats:Gw});function eA(e){if("object"==typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((r=>t.call(this,r,e))),e.getVideoTracks().forEach((r=>t.call(this,r,e)))},e.RTCPeerConnection.prototype.addTrack=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const r=e.getTracks();this.getSenders().forEach((e=>{r.includes(e.track)&&this.removeTrack(e)}))})}}function tA(e){if("object"==typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach((e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)}))})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const r=new Event("addstream");r.stream=t,e.dispatchEvent(r)}))}),t.apply(e,arguments)}}}function rA(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,r=t.createOffer,n=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){const r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i};let s=function(e,t,r){const n=i.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n};t.setLocalDescription=s,s=function(e,t,r){const n=o.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n},t.setRemoteDescription=s,s=function(e,t,r){const n=a.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n},t.addIceCandidate=s}function nA(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,r=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>r(iA(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,r,n){t.mediaDevices.getUserMedia(e).then(r,n)}.bind(t))}function iA(e){return e&&void 0!==e.video?Object.assign({},e,{video:kw(e.video)}):e}function oA(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,r){if(e&&e.iceServers){const t=[];for(let r=0;rt.generateCertificate})}function aA(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function sA(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find((e=>"audio"===e.receiver.track.kind));!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio",{direction:"recvonly"}),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const r=this.getTransceivers().find((e=>"video"===e.receiver.track.kind));!1===e.offerToReceiveVideo&&r?"sendrecv"===r.direction?r.setDirection?r.setDirection("sendonly"):r.direction="sendonly":"recvonly"===r.direction&&(r.setDirection?r.setDirection("inactive"):r.direction="inactive"):!0!==e.offerToReceiveVideo||r||this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function cA(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var uA=Object.freeze({__proto__:null,shimAudioContext:cA,shimCallbacksAPI:rA,shimConstraints:iA,shimCreateOfferLegacy:sA,shimGetUserMedia:nA,shimLocalStreamsAPI:eA,shimRTCIceServerUrls:oA,shimRemoteStreamsAPI:tA,shimTrackEventTransceiver:aA}),lA={exports:{}};!function(e){const t={generateIdentifier:function(){return Math.random().toString(36).substring(2,12)}};t.localCName=t.generateIdentifier(),t.splitLines=function(e){return e.trim().split("\n").map((e=>e.trim()))},t.splitSections=function(e){return e.split("\nm=").map(((e,t)=>(t>0?"m="+e:e).trim()+"\r\n"))},t.getDescription=function(e){const r=t.splitSections(e);return r&&r[0]},t.getMediaSections=function(e){const r=t.splitSections(e);return r.shift(),r},t.matchPrefix=function(e,r){return t.splitLines(e).filter((e=>0===e.indexOf(r)))},t.parseCandidate=function(e){let t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");const r={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let n=8;n0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},t.parseFmtp=function(e){const t={};let r;const n=e.substring(e.indexOf(" ")+1).split(";");for(let i=0;i{void 0!==e.parameters[t]?n.push(t+"="+e.parameters[t]):n.push(t)})),t+="a=fmtp:"+r+" "+n.join(";")+"\r\n"}return t},t.parseRtcpFb=function(e){const t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},t.writeRtcpFb=function(e){let t="",r=e.payloadType;return void 0!==e.preferredPayloadType&&(r=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach((e=>{t+="a=rtcp-fb:"+r+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"})),t},t.parseSsrcMedia=function(e){const t=e.indexOf(" "),r={ssrc:parseInt(e.substring(7,t),10)},n=e.indexOf(":",t);return n>-1?(r.attribute=e.substring(t+1,n),r.value=e.substring(n+1)):r.attribute=e.substring(t+1),r},t.parseSsrcGroup=function(e){const t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((e=>parseInt(e,10)))}},t.getMid=function(e){const r=t.matchPrefix(e,"a=mid:")[0];if(r)return r.substring(6)},t.parseFingerprint=function(e){const t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},t.getDtlsParameters=function(e,r){return{role:"auto",fingerprints:t.matchPrefix(e+r,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(e,t){let r="a=setup:"+t+"\r\n";return e.fingerprints.forEach((e=>{r+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),r},t.parseCryptoLine=function(e){const t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},t.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?t.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},t.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;const t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},t.getCryptoParameters=function(e,r){return t.matchPrefix(e+r,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(e,r){const n=t.matchPrefix(e+r,"a=ice-ufrag:")[0],i=t.matchPrefix(e+r,"a=ice-pwd:")[0];return n&&i?{usernameFragment:n.substring(12),password:i.substring(10)}:null},t.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},t.parseRtpParameters=function(e){const r={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=t.splitLines(e)[0].split(" ");r.profile=n[2];for(let o=3;o{r.headerExtensions.push(t.parseExtmap(e))}));const i=t.matchPrefix(e,"a=rtcp-fb:* ").map(t.parseRtcpFb);return r.codecs.forEach((e=>{i.forEach((t=>{e.rtcpFeedback.find((e=>e.type===t.type&&e.parameter===t.parameter))||e.rtcpFeedback.push(t)}))})),r},t.writeRtpDescription=function(e,r){let n="";n+="m="+e+" ",n+=r.codecs.length>0?"9":"0",n+=" "+(r.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=r.codecs.map((e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType)).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",r.codecs.forEach((e=>{n+=t.writeRtpMap(e),n+=t.writeFmtp(e),n+=t.writeRtcpFb(e)}));let i=0;return r.codecs.forEach((e=>{e.maxptime>i&&(i=e.maxptime)})),i>0&&(n+="a=maxptime:"+i+"\r\n"),r.headerExtensions&&r.headerExtensions.forEach((e=>{n+=t.writeExtmap(e)})),n},t.parseRtpEncodingParameters=function(e){const r=[],n=t.parseRtpParameters(e),i=-1!==n.fecMechanisms.indexOf("RED"),o=-1!==n.fecMechanisms.indexOf("ULPFEC"),a=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"cname"===e.attribute)),s=a.length>0&&a[0].ssrc;let c;const u=t.matchPrefix(e,"a=ssrc-group:FID").map((e=>e.substring(17).split(" ").map((e=>parseInt(e,10)))));u.length>0&&u[0].length>1&&u[0][0]===s&&(c=u[0][1]),n.codecs.forEach((e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let t={ssrc:s,codecPayloadType:parseInt(e.parameters.apt,10)};s&&c&&(t.rtx={ssrc:c}),r.push(t),i&&(t=JSON.parse(JSON.stringify(t)),t.fec={ssrc:s,mechanism:o?"red+ulpfec":"red"},r.push(t))}})),0===r.length&&s&&r.push({ssrc:s});let l=t.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substring(7),10):0===l[0].indexOf("b=AS:")?1e3*parseInt(l[0].substring(5),10)*.95-16e3:void 0,r.forEach((e=>{e.maxBitrate=l}))),r},t.parseRtcpParameters=function(e){const r={},n=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"cname"===e.attribute))[0];n&&(r.cname=n.value,r.ssrc=n.ssrc);const i=t.matchPrefix(e,"a=rtcp-rsize");r.reducedSize=i.length>0,r.compound=0===i.length;const o=t.matchPrefix(e,"a=rtcp-mux");return r.mux=o.length>0,r},t.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},t.parseMsid=function(e){let r;const n=t.matchPrefix(e,"a=msid:");if(1===n.length)return r=n[0].substring(7).split(" "),{stream:r[0],track:r[1]};const i=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"msid"===e.attribute));return i.length>0?(r=i[0].value.split(" "),{stream:r[0],track:r[1]}):void 0},t.parseSctpDescription=function(e){const r=t.parseMLine(e),n=t.matchPrefix(e,"a=max-message-size:");let i;n.length>0&&(i=parseInt(n[0].substring(19),10)),isNaN(i)&&(i=65536);const o=t.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substring(12),10),protocol:r.fmt,maxMessageSize:i};const a=t.matchPrefix(e,"a=sctpmap:");if(a.length>0){const e=a[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:i}}},t.writeSctpDescription=function(e,t){let r=[];return r="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&r.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),r.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(e,r,n){let i;const o=void 0!==r?r:2;i=e||t.generateSessionId();return"v=0\r\no="+(n||"thisisadapterortc")+" "+i+" "+o+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.getDirection=function(e,r){const n=t.splitLines(e);for(let t=0;t(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t)))}function gA(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||Aw(e,"icecandidate",(e=>{if(e.candidate){const t=fA.parseCandidate(e.candidate.candidate);"relay"===t.type&&(e.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[t.priority>>24])}return e}))}function mA(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});const r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(function(e){if(!e||!e.sdp)return!1;const t=fA.splitSections(e.sdp);return t.shift(),t.some((e=>{const t=fA.parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")}))}(arguments[0])){const e=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const r=parseInt(t[1],10);return r!=r?-1:r}(arguments[0]),r=function(e){let r=65536;return"firefox"===t.browser&&(r=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),r}(e),n=function(e,r){let n=65536;"firefox"===t.browser&&57===t.version&&(n=65535);const i=fA.matchPrefix(e.sdp,"a=max-message-size:");return i.length>0?n=parseInt(i[0].substring(19),10):"firefox"===t.browser&&-1!==r&&(n=2147483637),n}(arguments[0],e);let i;i=0===r&&0===n?Number.POSITIVE_INFINITY:0===r||0===n?Math.max(r,n):Math.min(r,n);const o={};Object.defineProperty(o,"maxMessageSize",{get:()=>i}),this._sctp=o}return r.apply(this,arguments)}}function yA(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const r=e.send;e.send=function(){const n=arguments[0],i=n.length||n.size||n.byteLength;if("open"===e.readyState&&t.sctp&&i>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return r.apply(e,arguments)}}const r=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=r.apply(this,arguments);return t(e,this),e},Aw(e,"datachannel",(e=>(t(e.channel,e.target),e)))}function bA(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((e=>{const r=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const r=new Event("connectionstatechange",e);t.dispatchEvent(r)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}}))}function vA(e,t){if(!e.RTCPeerConnection)return;if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t.version>=605)return;const r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){const r=t.sdp.split("\n").filter((e=>"a=extmap-allow-mixed"!==e.trim())).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:r}):t.sdp=r}return r.apply(this,arguments)}}function wA(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const r=e.RTCPeerConnection.prototype.addIceCandidate;r&&0!==r.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():r.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function AA(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const r=e.RTCPeerConnection.prototype.setLocalDescription;r&&0!==r.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){let e=arguments[0]||{};if("object"!=typeof e||e.type&&e.sdp)return r.apply(this,arguments);if(e={type:e.type,sdp:e.sdp},!e.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":e.type="offer";break;default:e.type="answer"}if(e.sdp||"offer"!==e.type&&"answer"!==e.type)return r.apply(this,[e]);return("offer"===e.type?this.createOffer:this.createAnswer).apply(this).then((e=>r.apply(this,[e])))})}var CA=Object.freeze({__proto__:null,removeExtmapAllowMixed:vA,shimAddIceCandidateNullOrEmpty:wA,shimConnectionState:bA,shimMaxMessageSize:mA,shimParameterlessSetLocalDescription:AA,shimRTCIceCandidate:pA,shimRTCIceCandidateRelayProtocol:gA,shimSendThrowTypeError:yA});!function(){let{window:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimSafari:!0};const r=xw,n=function(e){const t={browser:null,version:null};if(void 0===e||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:r}=e;if(r.mozGetUserMedia)t.browser="firefox",t.version=ww(r.userAgent,/Firefox\/(\d+)\./,1);else if(r.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=ww(r.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else{if(!e.RTCPeerConnection||!r.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=ww(r.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}(e),i={browserDetails:n,commonShim:CA,extractVersion:ww,disableLog:Cw,disableWarnings:Ew,sdp:hA};switch(n.browser){case"chrome":if(!zw||!Fw||!t.shimChrome)return r("Chrome shim is not included in this adapter release."),i;if(null===n.version)return r("Chrome shim can not determine version, not shimming."),i;r("adapter.js shimming chrome."),i.browserShim=zw,wA(e,n),AA(e),Pw(e,n),jw(e),Fw(e,n),Dw(e),Lw(e,n),Ow(e),Bw(e),Nw(e),Uw(e,n),pA(e),gA(e),bA(e),mA(e,n),yA(e),vA(e,n);break;case"firefox":if(!Xw||!Kw||!t.shimFirefox)return r("Firefox shim is not included in this adapter release."),i;r("adapter.js shimming firefox."),i.browserShim=Xw,wA(e,n),AA(e),Hw(e,n),Kw(e,n),Vw(e),Qw(e),Gw(e),qw(e),Ww(e),Jw(e),Yw(e),Zw(e),$w(e),pA(e),bA(e),mA(e,n),yA(e);break;case"safari":if(!uA||!t.shimSafari)return r("Safari shim is not included in this adapter release."),i;r("adapter.js shimming safari."),i.browserShim=uA,wA(e,n),AA(e),oA(e),sA(e),rA(e),eA(e),tA(e),aA(e),nA(e),cA(e),pA(e),gA(e),mA(e,n),yA(e),vA(e,n);break;default:r("Unsupported browser!")}}({window:"undefined"==typeof window?void 0:window});const EA="lk_e2ee";var xA,SA,IA,kA;function _A(){return void 0!==window.RTCRtpSender&&void 0!==window.RTCRtpSender.prototype.createEncodedStreams||TA()}function TA(){return void 0!==window.RTCRtpScriptTransform}!function(e){e.SetKey="setKey",e.RatchetRequest="ratchetRequest",e.KeyRatcheted="keyRatcheted"}(xA||(xA={})),function(e){e.KeyRatcheted="keyRatcheted"}(SA||(SA={})),function(e){e.ParticipantEncryptionStatusChanged="participantEncryptionStatusChanged",e.EncryptionError="encryptionError"}(IA||(IA={})),function(e){e.Error="cryptorError"}(kA||(kA={}));yw.EventEmitter;class MA extends Error{constructor(e,t){super(t||"an error has occured"),this.code=e}}class PA extends MA{constructor(e,t,r){super(1,e),this.status=r,this.reason=t}}class jA extends MA{constructor(e){super(21,null!=e?e:"device is unsupported")}}class DA extends MA{constructor(e){super(20,null!=e?e:"track is invalid")}}class OA extends MA{constructor(e){super(10,null!=e?e:"unsupported server")}}class BA extends MA{constructor(e){super(12,null!=e?e:"unexpected connection state")}}class NA extends MA{constructor(e){super(13,null!=e?e:"unable to negotiate")}}var RA,LA,FA,UA,zA;function HA(e,t,r){var n,i,o;void 0===t&&(t=50),void 0===r&&(r={});var a=null!=(n=r.isImmediate)&&n,s=null!=(i=r.callback)&&i,c=r.maxWait,u=Date.now(),l=[];function d(){if(void 0!==c){var e=Date.now()-u;if(e+t>=c)return c-e}return t}var f=function(){var t=[].slice.call(arguments),r=this;return new Promise((function(n,i){var c=a&&void 0===o;if(void 0!==o&&clearTimeout(o),o=setTimeout((function(){if(o=void 0,u=Date.now(),!a){var n=e.apply(r,t);s&&s(n),l.forEach((function(e){return(0,e.resolve)(n)})),l=[]}}),d()),c){var f=e.apply(r,t);return s&&s(f),n(f)}l.push({resolve:n,reject:i})}))};return f.cancel=function(e){void 0!==o&&clearTimeout(o),l.forEach((function(t){return(0,t.reject)(e)})),l=[]},f}!function(e){e.PermissionDenied="PermissionDenied",e.NotFound="NotFound",e.DeviceInUse="DeviceInUse",e.Other="Other"}(RA||(RA={})),function(e){e.getFailure=function(t){if(t&&"name"in t)return"NotFoundError"===t.name||"DevicesNotFoundError"===t.name?e.NotFound:"NotAllowedError"===t.name||"PermissionDeniedError"===t.name?e.PermissionDenied:"NotReadableError"===t.name||"TrackStartError"===t.name?e.DeviceInUse:e.Other}}(RA||(RA={})),function(e){e.Connected="connected",e.Reconnecting="reconnecting",e.Reconnected="reconnected",e.Disconnected="disconnected",e.ConnectionStateChanged="connectionStateChanged",e.StateChanged="connectionStateChanged",e.MediaDevicesChanged="mediaDevicesChanged",e.ParticipantConnected="participantConnected",e.ParticipantDisconnected="participantDisconnected",e.TrackPublished="trackPublished",e.TrackSubscribed="trackSubscribed",e.TrackSubscriptionFailed="trackSubscriptionFailed",e.TrackUnpublished="trackUnpublished",e.TrackUnsubscribed="trackUnsubscribed",e.TrackMuted="trackMuted",e.TrackUnmuted="trackUnmuted",e.LocalTrackPublished="localTrackPublished",e.LocalTrackUnpublished="localTrackUnpublished",e.LocalAudioSilenceDetected="localAudioSilenceDetected",e.ActiveSpeakersChanged="activeSpeakersChanged",e.ParticipantMetadataChanged="participantMetadataChanged",e.ParticipantNameChanged="participantNameChanged",e.RoomMetadataChanged="roomMetadataChanged",e.DataReceived="dataReceived",e.ConnectionQualityChanged="connectionQualityChanged",e.TrackStreamStateChanged="trackStreamStateChanged",e.TrackSubscriptionPermissionChanged="trackSubscriptionPermissionChanged",e.TrackSubscriptionStatusChanged="trackSubscriptionStatusChanged",e.AudioPlaybackStatusChanged="audioPlaybackChanged",e.VideoPlaybackStatusChanged="videoPlaybackChanged",e.MediaDevicesError="mediaDevicesError",e.ParticipantPermissionsChanged="participantPermissionsChanged",e.SignalConnected="signalConnected",e.RecordingStatusChanged="recordingStatusChanged",e.ParticipantEncryptionStatusChanged="participantEncryptionStatusChanged",e.EncryptionError="encryptionError",e.DCBufferStatusChanged="dcBufferStatusChanged",e.ActiveDeviceChanged="activeDeviceChanged"}(LA||(LA={})),function(e){e.TrackPublished="trackPublished",e.TrackSubscribed="trackSubscribed",e.TrackSubscriptionFailed="trackSubscriptionFailed",e.TrackUnpublished="trackUnpublished",e.TrackUnsubscribed="trackUnsubscribed",e.TrackMuted="trackMuted",e.TrackUnmuted="trackUnmuted",e.LocalTrackPublished="localTrackPublished",e.LocalTrackUnpublished="localTrackUnpublished",e.ParticipantMetadataChanged="participantMetadataChanged",e.ParticipantNameChanged="participantNameChanged",e.DataReceived="dataReceived",e.IsSpeakingChanged="isSpeakingChanged",e.ConnectionQualityChanged="connectionQualityChanged",e.TrackStreamStateChanged="trackStreamStateChanged",e.TrackSubscriptionPermissionChanged="trackSubscriptionPermissionChanged",e.TrackSubscriptionStatusChanged="trackSubscriptionStatusChanged",e.MediaDevicesError="mediaDevicesError",e.AudioStreamAcquired="audioStreamAcquired",e.ParticipantPermissionsChanged="participantPermissionsChanged",e.PCTrackAdded="pcTrackAdded"}(FA||(FA={})),function(e){e.TransportsCreated="transportsCreated",e.Connected="connected",e.Disconnected="disconnected",e.Resuming="resuming",e.Resumed="resumed",e.Restarting="restarting",e.Restarted="restarted",e.SignalResumed="signalResumed",e.SignalRestarted="signalRestarted",e.Closing="closing",e.MediaTrackAdded="mediaTrackAdded",e.ActiveSpeakersUpdate="activeSpeakersUpdate",e.DataPacketReceived="dataPacketReceived",e.RTPVideoMapUpdate="rtpVideoMapUpdate",e.DCBufferStatusChanged="dcBufferStatusChanged",e.ParticipantUpdate="participantUpdate",e.RoomUpdate="roomUpdate",e.SpeakersChanged="speakersChanged",e.StreamStateChanged="streamStateChanged",e.ConnectionQualityUpdate="connectionQualityUpdate",e.SubscriptionError="subscriptionError",e.SubscriptionPermissionUpdate="subscriptionPermissionUpdate",e.RemoteMute="remoteMute",e.SubscribedQualityUpdate="subscribedQualityUpdate",e.LocalTrackUnpublished="localTrackUnpublished"}(UA||(UA={})),function(e){e.Message="message",e.Muted="muted",e.Unmuted="unmuted",e.Restarted="restarted",e.Ended="ended",e.Subscribed="subscribed",e.Unsubscribed="unsubscribed",e.UpdateSettings="updateSettings",e.UpdateSubscription="updateSubscription",e.AudioPlaybackStarted="audioPlaybackStarted",e.AudioPlaybackFailed="audioPlaybackFailed",e.AudioSilenceDetected="audioSilenceDetected",e.VisibilityChanged="visibilityChanged",e.VideoDimensionsChanged="videoDimensionsChanged",e.VideoPlaybackStarted="videoPlaybackStarted",e.VideoPlaybackFailed="videoPlaybackFailed",e.ElementAttached="elementAttached",e.ElementDetached="elementDetached",e.UpstreamPaused="upstreamPaused",e.UpstreamResumed="upstreamResumed",e.SubscriptionPermissionChanged="subscriptionPermissionChanged",e.SubscriptionStatusChanged="subscriptionStatusChanged",e.SubscriptionFailed="subscriptionFailed"}(zA||(zA={}));const VA=/version\/(\d+(\.?_?\d+)+)/i;let KA;function GA(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===e&&"undefined"==typeof navigator)return;const r=(null!=e?e:navigator.userAgent).toLowerCase();if(void 0===KA||t){const e=qA.find((e=>{let{test:t}=e;return t.test(r)}));KA=null==e?void 0:e.describe(r)}return KA}const qA=[{test:/firefox|iceweasel|fxios/i,describe:e=>({name:"Firefox",version:QA(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e),os:e.toLowerCase().includes("fxios")?"iOS":void 0})},{test:/chrom|crios|crmo/i,describe:e=>({name:"Chrome",version:QA(/(?:chrome|chromium|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e),os:e.toLowerCase().includes("crios")?"iOS":void 0})},{test:/safari|applewebkit/i,describe:e=>({name:"Safari",version:QA(VA,e),os:e.includes("mobile/")?"iOS":"macOS"})}];function QA(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const n=t.match(e);return n&&n.length>=r&&n[r]||""}class WA{}WA.setTimeout=function(){return setTimeout(...arguments)},WA.setInterval=function(){return setInterval(...arguments)},WA.clearTimeout=function(){return clearTimeout(...arguments)},WA.clearInterval=function(){return clearInterval(...arguments)};class JA{constructor(e,t,r,n,i){this.width=e,this.height=t,this.encoding={maxBitrate:r,maxFramerate:n,priority:i}}get resolution(){return{width:this.width,height:this.height,frameRate:this.encoding.maxFramerate,aspectRatio:this.width/this.height}}}const YA=["vp8","h264"],ZA=["vp8","h264","vp9","av1"];function $A(e){return!!YA.find((t=>t===e))}var XA;!function(e){e.telephone={maxBitrate:12e3},e.speech={maxBitrate:2e4},e.music={maxBitrate:32e3},e.musicStereo={maxBitrate:48e3},e.musicHighQuality={maxBitrate:64e3},e.musicHighQualityStereo={maxBitrate:96e3}}(XA||(XA={}));const eC={h90:new JA(160,90,9e4,20),h180:new JA(320,180,16e4,20),h216:new JA(384,216,18e4,20),h360:new JA(640,360,45e4,20),h540:new JA(960,540,8e5,25),h720:new JA(1280,720,17e5,30),h1080:new JA(1920,1080,3e6,30),h1440:new JA(2560,1440,5e6,30),h2160:new JA(3840,2160,8e6,30)},tC={h120:new JA(160,120,7e4,20),h180:new JA(240,180,125e3,20),h240:new JA(320,240,14e4,20),h360:new JA(480,360,33e4,20),h480:new JA(640,480,5e5,20),h540:new JA(720,540,6e5,25),h720:new JA(960,720,13e5,30),h1080:new JA(1440,1080,23e5,30),h1440:new JA(1920,1440,38e5,30)},rC={h360fps3:new JA(640,360,2e5,3,"medium"),h360fps15:new JA(640,360,4e5,15,"medium"),h720fps5:new JA(1280,720,8e5,5,"medium"),h720fps15:new JA(1280,720,15e5,15,"medium"),h720fps30:new JA(1280,720,2e6,30,"medium"),h1080fps15:new JA(1920,1080,25e5,15,"medium"),h1080fps30:new JA(1920,1080,5e6,30,"medium"),original:new JA(0,0,7e6,30,"medium")};var nC,iC,oC;!function(e){e[e.PUBLISHER=0]="PUBLISHER",e[e.SUBSCRIBER=1]="SUBSCRIBER"}(nC||(nC={})),ov.util.setEnumType(nC,"livekit.SignalTarget",[{no:0,name:"PUBLISHER"},{no:1,name:"SUBSCRIBER"}]),function(e){e[e.ACTIVE=0]="ACTIVE",e[e.PAUSED=1]="PAUSED"}(iC||(iC={})),ov.util.setEnumType(iC,"livekit.StreamState",[{no:0,name:"ACTIVE"},{no:1,name:"PAUSED"}]),function(e){e[e.UDP=0]="UDP",e[e.TCP=1]="TCP",e[e.TLS=2]="TLS"}(oC||(oC={})),ov.util.setEnumType(oC,"livekit.CandidateProtocol",[{no:0,name:"UDP"},{no:1,name:"TCP"},{no:2,name:"TLS"}]);class aC extends tb{constructor(e){super(),this.message={case:void 0},ov.util.initPartial(e,this)}static fromBinary(e,t){return(new aC).fromBinary(e,t)}static fromJson(e,t){return(new aC).fromJson(e,t)}static fromJsonString(e,t){return(new aC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(aC,e,t)}}aC.runtime=ov,aC.typeName="livekit.SignalRequest",aC.fields=ov.util.newFieldList((()=>[{no:1,name:"offer",kind:"message",T:mC,oneof:"message"},{no:2,name:"answer",kind:"message",T:mC,oneof:"message"},{no:3,name:"trickle",kind:"message",T:lC,oneof:"message"},{no:4,name:"add_track",kind:"message",T:uC,oneof:"message"},{no:5,name:"mute",kind:"message",T:dC,oneof:"message"},{no:6,name:"subscription",kind:"message",T:bC,oneof:"message"},{no:7,name:"track_setting",kind:"message",T:vC,oneof:"message"},{no:8,name:"leave",kind:"message",T:wC,oneof:"message"},{no:10,name:"update_layers",kind:"message",T:AC,oneof:"message"},{no:11,name:"subscription_permission",kind:"message",T:OC,oneof:"message"},{no:12,name:"sync_state",kind:"message",T:NC,oneof:"message"},{no:13,name:"simulate",kind:"message",T:LC,oneof:"message"},{no:14,name:"ping",kind:"scalar",T:3,oneof:"message"},{no:15,name:"update_metadata",kind:"message",T:CC,oneof:"message"},{no:16,name:"ping_req",kind:"message",T:FC,oneof:"message"}]));class sC extends tb{constructor(e){super(),this.message={case:void 0},ov.util.initPartial(e,this)}static fromBinary(e,t){return(new sC).fromBinary(e,t)}static fromJson(e,t){return(new sC).fromJson(e,t)}static fromJsonString(e,t){return(new sC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(sC,e,t)}}sC.runtime=ov,sC.typeName="livekit.SignalResponse",sC.fields=ov.util.newFieldList((()=>[{no:1,name:"join",kind:"message",T:fC,oneof:"message"},{no:2,name:"answer",kind:"message",T:mC,oneof:"message"},{no:3,name:"offer",kind:"message",T:mC,oneof:"message"},{no:4,name:"trickle",kind:"message",T:lC,oneof:"message"},{no:5,name:"update",kind:"message",T:yC,oneof:"message"},{no:6,name:"track_published",kind:"message",T:pC,oneof:"message"},{no:8,name:"leave",kind:"message",T:wC,oneof:"message"},{no:9,name:"mute",kind:"message",T:dC,oneof:"message"},{no:10,name:"speakers_changed",kind:"message",T:xC,oneof:"message"},{no:11,name:"room_update",kind:"message",T:SC,oneof:"message"},{no:12,name:"connection_quality",kind:"message",T:kC,oneof:"message"},{no:13,name:"stream_state_update",kind:"message",T:TC,oneof:"message"},{no:14,name:"subscribed_quality_update",kind:"message",T:jC,oneof:"message"},{no:15,name:"subscription_permission_update",kind:"message",T:BC,oneof:"message"},{no:16,name:"refresh_token",kind:"scalar",T:9,oneof:"message"},{no:17,name:"track_unpublished",kind:"message",T:gC,oneof:"message"},{no:18,name:"pong",kind:"scalar",T:3,oneof:"message"},{no:19,name:"reconnect",kind:"message",T:hC,oneof:"message"},{no:20,name:"pong_resp",kind:"message",T:UC,oneof:"message"},{no:21,name:"subscription_response",kind:"message",T:VC,oneof:"message"}]));class cC extends tb{constructor(e){super(),this.codec="",this.cid="",ov.util.initPartial(e,this)}static fromBinary(e,t){return(new cC).fromBinary(e,t)}static fromJson(e,t){return(new cC).fromJson(e,t)}static fromJsonString(e,t){return(new cC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(cC,e,t)}}cC.runtime=ov,cC.typeName="livekit.SimulcastCodec",cC.fields=ov.util.newFieldList((()=>[{no:1,name:"codec",kind:"scalar",T:9},{no:2,name:"cid",kind:"scalar",T:9}]));class uC extends tb{constructor(e){super(),this.cid="",this.name="",this.type=hv.AUDIO,this.width=0,this.height=0,this.muted=!1,this.disableDtx=!1,this.source=pv.UNKNOWN,this.layers=[],this.simulcastCodecs=[],this.sid="",this.stereo=!1,this.disableRed=!1,this.encryption=Tv.NONE,this.stream="",ov.util.initPartial(e,this)}static fromBinary(e,t){return(new uC).fromBinary(e,t)}static fromJson(e,t){return(new uC).fromJson(e,t)}static fromJsonString(e,t){return(new uC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(uC,e,t)}}uC.runtime=ov,uC.typeName="livekit.AddTrackRequest",uC.fields=ov.util.newFieldList((()=>[{no:1,name:"cid",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"type",kind:"enum",T:ov.getEnumType(hv)},{no:4,name:"width",kind:"scalar",T:13},{no:5,name:"height",kind:"scalar",T:13},{no:6,name:"muted",kind:"scalar",T:8},{no:7,name:"disable_dtx",kind:"scalar",T:8},{no:8,name:"source",kind:"enum",T:ov.getEnumType(pv)},{no:9,name:"layers",kind:"message",T:Nv,repeated:!0},{no:10,name:"simulcast_codecs",kind:"message",T:cC,repeated:!0},{no:11,name:"sid",kind:"scalar",T:9},{no:12,name:"stereo",kind:"scalar",T:8},{no:13,name:"disable_red",kind:"scalar",T:8},{no:14,name:"encryption",kind:"enum",T:ov.getEnumType(Tv)},{no:15,name:"stream",kind:"scalar",T:9}]));class lC extends tb{constructor(e){super(),this.candidateInit="",this.target=nC.PUBLISHER,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new lC).fromBinary(e,t)}static fromJson(e,t){return(new lC).fromJson(e,t)}static fromJsonString(e,t){return(new lC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(lC,e,t)}}lC.runtime=ov,lC.typeName="livekit.TrickleRequest",lC.fields=ov.util.newFieldList((()=>[{no:1,name:"candidateInit",kind:"scalar",T:9},{no:2,name:"target",kind:"enum",T:ov.getEnumType(nC)}]));class dC extends tb{constructor(e){super(),this.sid="",this.muted=!1,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new dC).fromBinary(e,t)}static fromJson(e,t){return(new dC).fromJson(e,t)}static fromJsonString(e,t){return(new dC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(dC,e,t)}}dC.runtime=ov,dC.typeName="livekit.MuteTrackRequest",dC.fields=ov.util.newFieldList((()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"muted",kind:"scalar",T:8}]));class fC extends tb{constructor(e){super(),this.otherParticipants=[],this.serverVersion="",this.iceServers=[],this.subscriberPrimary=!1,this.alternativeUrl="",this.serverRegion="",this.pingTimeout=0,this.pingInterval=0,this.sifTrailer=new Uint8Array(0),ov.util.initPartial(e,this)}static fromBinary(e,t){return(new fC).fromBinary(e,t)}static fromJson(e,t){return(new fC).fromJson(e,t)}static fromJsonString(e,t){return(new fC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(fC,e,t)}}fC.runtime=ov,fC.typeName="livekit.JoinResponse",fC.fields=ov.util.newFieldList((()=>[{no:1,name:"room",kind:"message",T:Ev},{no:2,name:"participant",kind:"message",T:kv},{no:3,name:"other_participants",kind:"message",T:kv,repeated:!0},{no:4,name:"server_version",kind:"scalar",T:9},{no:5,name:"ice_servers",kind:"message",T:EC,repeated:!0},{no:6,name:"subscriber_primary",kind:"scalar",T:8},{no:7,name:"alternative_url",kind:"scalar",T:9},{no:8,name:"client_configuration",kind:"message",T:Kv},{no:9,name:"server_region",kind:"scalar",T:9},{no:10,name:"ping_timeout",kind:"scalar",T:5},{no:11,name:"ping_interval",kind:"scalar",T:5},{no:12,name:"server_info",kind:"message",T:Hv},{no:13,name:"sif_trailer",kind:"scalar",T:12}]));class hC extends tb{constructor(e){super(),this.iceServers=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new hC).fromBinary(e,t)}static fromJson(e,t){return(new hC).fromJson(e,t)}static fromJsonString(e,t){return(new hC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(hC,e,t)}}hC.runtime=ov,hC.typeName="livekit.ReconnectResponse",hC.fields=ov.util.newFieldList((()=>[{no:1,name:"ice_servers",kind:"message",T:EC,repeated:!0},{no:2,name:"client_configuration",kind:"message",T:Kv}]));class pC extends tb{constructor(e){super(),this.cid="",ov.util.initPartial(e,this)}static fromBinary(e,t){return(new pC).fromBinary(e,t)}static fromJson(e,t){return(new pC).fromJson(e,t)}static fromJsonString(e,t){return(new pC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(pC,e,t)}}pC.runtime=ov,pC.typeName="livekit.TrackPublishedResponse",pC.fields=ov.util.newFieldList((()=>[{no:1,name:"cid",kind:"scalar",T:9},{no:2,name:"track",kind:"message",T:Bv}]));class gC extends tb{constructor(e){super(),this.trackSid="",ov.util.initPartial(e,this)}static fromBinary(e,t){return(new gC).fromBinary(e,t)}static fromJson(e,t){return(new gC).fromJson(e,t)}static fromJsonString(e,t){return(new gC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(gC,e,t)}}gC.runtime=ov,gC.typeName="livekit.TrackUnpublishedResponse",gC.fields=ov.util.newFieldList((()=>[{no:1,name:"track_sid",kind:"scalar",T:9}]));class mC extends tb{constructor(e){super(),this.type="",this.sdp="",ov.util.initPartial(e,this)}static fromBinary(e,t){return(new mC).fromBinary(e,t)}static fromJson(e,t){return(new mC).fromJson(e,t)}static fromJsonString(e,t){return(new mC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(mC,e,t)}}mC.runtime=ov,mC.typeName="livekit.SessionDescription",mC.fields=ov.util.newFieldList((()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"sdp",kind:"scalar",T:9}]));class yC extends tb{constructor(e){super(),this.participants=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new yC).fromBinary(e,t)}static fromJson(e,t){return(new yC).fromJson(e,t)}static fromJsonString(e,t){return(new yC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(yC,e,t)}}yC.runtime=ov,yC.typeName="livekit.ParticipantUpdate",yC.fields=ov.util.newFieldList((()=>[{no:1,name:"participants",kind:"message",T:kv,repeated:!0}]));class bC extends tb{constructor(e){super(),this.trackSids=[],this.subscribe=!1,this.participantTracks=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new bC).fromBinary(e,t)}static fromJson(e,t){return(new bC).fromJson(e,t)}static fromJsonString(e,t){return(new bC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(bC,e,t)}}bC.runtime=ov,bC.typeName="livekit.UpdateSubscription",bC.fields=ov.util.newFieldList((()=>[{no:1,name:"track_sids",kind:"scalar",T:9,repeated:!0},{no:2,name:"subscribe",kind:"scalar",T:8},{no:3,name:"participant_tracks",kind:"message",T:zv,repeated:!0}]));class vC extends tb{constructor(e){super(),this.trackSids=[],this.disabled=!1,this.quality=gv.LOW,this.width=0,this.height=0,this.fps=0,this.priority=0,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new vC).fromBinary(e,t)}static fromJson(e,t){return(new vC).fromJson(e,t)}static fromJsonString(e,t){return(new vC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(vC,e,t)}}vC.runtime=ov,vC.typeName="livekit.UpdateTrackSettings",vC.fields=ov.util.newFieldList((()=>[{no:1,name:"track_sids",kind:"scalar",T:9,repeated:!0},{no:3,name:"disabled",kind:"scalar",T:8},{no:4,name:"quality",kind:"enum",T:ov.getEnumType(gv)},{no:5,name:"width",kind:"scalar",T:13},{no:6,name:"height",kind:"scalar",T:13},{no:7,name:"fps",kind:"scalar",T:13},{no:8,name:"priority",kind:"scalar",T:13}]));class wC extends tb{constructor(e){super(),this.canReconnect=!1,this.reason=bv.UNKNOWN_REASON,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new wC).fromBinary(e,t)}static fromJson(e,t){return(new wC).fromJson(e,t)}static fromJsonString(e,t){return(new wC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(wC,e,t)}}wC.runtime=ov,wC.typeName="livekit.LeaveRequest",wC.fields=ov.util.newFieldList((()=>[{no:1,name:"can_reconnect",kind:"scalar",T:8},{no:2,name:"reason",kind:"enum",T:ov.getEnumType(bv)}]));class AC extends tb{constructor(e){super(),this.trackSid="",this.layers=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new AC).fromBinary(e,t)}static fromJson(e,t){return(new AC).fromJson(e,t)}static fromJsonString(e,t){return(new AC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(AC,e,t)}}AC.runtime=ov,AC.typeName="livekit.UpdateVideoLayers",AC.fields=ov.util.newFieldList((()=>[{no:1,name:"track_sid",kind:"scalar",T:9},{no:2,name:"layers",kind:"message",T:Nv,repeated:!0}]));class CC extends tb{constructor(e){super(),this.metadata="",this.name="",ov.util.initPartial(e,this)}static fromBinary(e,t){return(new CC).fromBinary(e,t)}static fromJson(e,t){return(new CC).fromJson(e,t)}static fromJsonString(e,t){return(new CC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(CC,e,t)}}CC.runtime=ov,CC.typeName="livekit.UpdateParticipantMetadata",CC.fields=ov.util.newFieldList((()=>[{no:1,name:"metadata",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]));class EC extends tb{constructor(e){super(),this.urls=[],this.username="",this.credential="",ov.util.initPartial(e,this)}static fromBinary(e,t){return(new EC).fromBinary(e,t)}static fromJson(e,t){return(new EC).fromJson(e,t)}static fromJsonString(e,t){return(new EC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(EC,e,t)}}EC.runtime=ov,EC.typeName="livekit.ICEServer",EC.fields=ov.util.newFieldList((()=>[{no:1,name:"urls",kind:"scalar",T:9,repeated:!0},{no:2,name:"username",kind:"scalar",T:9},{no:3,name:"credential",kind:"scalar",T:9}]));class xC extends tb{constructor(e){super(),this.speakers=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new xC).fromBinary(e,t)}static fromJson(e,t){return(new xC).fromJson(e,t)}static fromJsonString(e,t){return(new xC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(xC,e,t)}}xC.runtime=ov,xC.typeName="livekit.SpeakersChanged",xC.fields=ov.util.newFieldList((()=>[{no:1,name:"speakers",kind:"message",T:Fv,repeated:!0}]));class SC extends tb{constructor(e){super(),ov.util.initPartial(e,this)}static fromBinary(e,t){return(new SC).fromBinary(e,t)}static fromJson(e,t){return(new SC).fromJson(e,t)}static fromJsonString(e,t){return(new SC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(SC,e,t)}}SC.runtime=ov,SC.typeName="livekit.RoomUpdate",SC.fields=ov.util.newFieldList((()=>[{no:1,name:"room",kind:"message",T:Ev}]));class IC extends tb{constructor(e){super(),this.participantSid="",this.quality=mv.POOR,this.score=0,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new IC).fromBinary(e,t)}static fromJson(e,t){return(new IC).fromJson(e,t)}static fromJsonString(e,t){return(new IC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(IC,e,t)}}IC.runtime=ov,IC.typeName="livekit.ConnectionQualityInfo",IC.fields=ov.util.newFieldList((()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"quality",kind:"enum",T:ov.getEnumType(mv)},{no:3,name:"score",kind:"scalar",T:2}]));class kC extends tb{constructor(e){super(),this.updates=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new kC).fromBinary(e,t)}static fromJson(e,t){return(new kC).fromJson(e,t)}static fromJsonString(e,t){return(new kC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(kC,e,t)}}kC.runtime=ov,kC.typeName="livekit.ConnectionQualityUpdate",kC.fields=ov.util.newFieldList((()=>[{no:1,name:"updates",kind:"message",T:IC,repeated:!0}]));class _C extends tb{constructor(e){super(),this.participantSid="",this.trackSid="",this.state=iC.ACTIVE,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new _C).fromBinary(e,t)}static fromJson(e,t){return(new _C).fromJson(e,t)}static fromJsonString(e,t){return(new _C).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(_C,e,t)}}_C.runtime=ov,_C.typeName="livekit.StreamStateInfo",_C.fields=ov.util.newFieldList((()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"track_sid",kind:"scalar",T:9},{no:3,name:"state",kind:"enum",T:ov.getEnumType(iC)}]));class TC extends tb{constructor(e){super(),this.streamStates=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new TC).fromBinary(e,t)}static fromJson(e,t){return(new TC).fromJson(e,t)}static fromJsonString(e,t){return(new TC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(TC,e,t)}}TC.runtime=ov,TC.typeName="livekit.StreamStateUpdate",TC.fields=ov.util.newFieldList((()=>[{no:1,name:"stream_states",kind:"message",T:_C,repeated:!0}]));class MC extends tb{constructor(e){super(),this.quality=gv.LOW,this.enabled=!1,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new MC).fromBinary(e,t)}static fromJson(e,t){return(new MC).fromJson(e,t)}static fromJsonString(e,t){return(new MC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(MC,e,t)}}MC.runtime=ov,MC.typeName="livekit.SubscribedQuality",MC.fields=ov.util.newFieldList((()=>[{no:1,name:"quality",kind:"enum",T:ov.getEnumType(gv)},{no:2,name:"enabled",kind:"scalar",T:8}]));class PC extends tb{constructor(e){super(),this.codec="",this.qualities=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new PC).fromBinary(e,t)}static fromJson(e,t){return(new PC).fromJson(e,t)}static fromJsonString(e,t){return(new PC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(PC,e,t)}}PC.runtime=ov,PC.typeName="livekit.SubscribedCodec",PC.fields=ov.util.newFieldList((()=>[{no:1,name:"codec",kind:"scalar",T:9},{no:2,name:"qualities",kind:"message",T:MC,repeated:!0}]));class jC extends tb{constructor(e){super(),this.trackSid="",this.subscribedQualities=[],this.subscribedCodecs=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new jC).fromBinary(e,t)}static fromJson(e,t){return(new jC).fromJson(e,t)}static fromJsonString(e,t){return(new jC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(jC,e,t)}}jC.runtime=ov,jC.typeName="livekit.SubscribedQualityUpdate",jC.fields=ov.util.newFieldList((()=>[{no:1,name:"track_sid",kind:"scalar",T:9},{no:2,name:"subscribed_qualities",kind:"message",T:MC,repeated:!0},{no:3,name:"subscribed_codecs",kind:"message",T:PC,repeated:!0}]));class DC extends tb{constructor(e){super(),this.participantSid="",this.allTracks=!1,this.trackSids=[],this.participantIdentity="",ov.util.initPartial(e,this)}static fromBinary(e,t){return(new DC).fromBinary(e,t)}static fromJson(e,t){return(new DC).fromJson(e,t)}static fromJsonString(e,t){return(new DC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(DC,e,t)}}DC.runtime=ov,DC.typeName="livekit.TrackPermission",DC.fields=ov.util.newFieldList((()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"all_tracks",kind:"scalar",T:8},{no:3,name:"track_sids",kind:"scalar",T:9,repeated:!0},{no:4,name:"participant_identity",kind:"scalar",T:9}]));class OC extends tb{constructor(e){super(),this.allParticipants=!1,this.trackPermissions=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new OC).fromBinary(e,t)}static fromJson(e,t){return(new OC).fromJson(e,t)}static fromJsonString(e,t){return(new OC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(OC,e,t)}}OC.runtime=ov,OC.typeName="livekit.SubscriptionPermission",OC.fields=ov.util.newFieldList((()=>[{no:1,name:"all_participants",kind:"scalar",T:8},{no:2,name:"track_permissions",kind:"message",T:DC,repeated:!0}]));class BC extends tb{constructor(e){super(),this.participantSid="",this.trackSid="",this.allowed=!1,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new BC).fromBinary(e,t)}static fromJson(e,t){return(new BC).fromJson(e,t)}static fromJsonString(e,t){return(new BC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(BC,e,t)}}BC.runtime=ov,BC.typeName="livekit.SubscriptionPermissionUpdate",BC.fields=ov.util.newFieldList((()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"track_sid",kind:"scalar",T:9},{no:3,name:"allowed",kind:"scalar",T:8}]));class NC extends tb{constructor(e){super(),this.publishTracks=[],this.dataChannels=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new NC).fromBinary(e,t)}static fromJson(e,t){return(new NC).fromJson(e,t)}static fromJsonString(e,t){return(new NC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(NC,e,t)}}NC.runtime=ov,NC.typeName="livekit.SyncState",NC.fields=ov.util.newFieldList((()=>[{no:1,name:"answer",kind:"message",T:mC},{no:2,name:"subscription",kind:"message",T:bC},{no:3,name:"publish_tracks",kind:"message",T:pC,repeated:!0},{no:4,name:"data_channels",kind:"message",T:RC,repeated:!0},{no:5,name:"offer",kind:"message",T:mC}]));class RC extends tb{constructor(e){super(),this.label="",this.id=0,this.target=nC.PUBLISHER,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new RC).fromBinary(e,t)}static fromJson(e,t){return(new RC).fromJson(e,t)}static fromJsonString(e,t){return(new RC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(RC,e,t)}}RC.runtime=ov,RC.typeName="livekit.DataChannelInfo",RC.fields=ov.util.newFieldList((()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"id",kind:"scalar",T:13},{no:3,name:"target",kind:"enum",T:ov.getEnumType(nC)}]));class LC extends tb{constructor(e){super(),this.scenario={case:void 0},ov.util.initPartial(e,this)}static fromBinary(e,t){return(new LC).fromBinary(e,t)}static fromJson(e,t){return(new LC).fromJson(e,t)}static fromJsonString(e,t){return(new LC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(LC,e,t)}}LC.runtime=ov,LC.typeName="livekit.SimulateScenario",LC.fields=ov.util.newFieldList((()=>[{no:1,name:"speaker_update",kind:"scalar",T:5,oneof:"scenario"},{no:2,name:"node_failure",kind:"scalar",T:8,oneof:"scenario"},{no:3,name:"migration",kind:"scalar",T:8,oneof:"scenario"},{no:4,name:"server_leave",kind:"scalar",T:8,oneof:"scenario"},{no:5,name:"switch_candidate_protocol",kind:"enum",T:ov.getEnumType(oC),oneof:"scenario"},{no:6,name:"subscriber_bandwidth",kind:"scalar",T:3,oneof:"scenario"},{no:7,name:"disconnect_signal_on_resume",kind:"scalar",T:8,oneof:"scenario"},{no:8,name:"disconnect_signal_on_resume_no_messages",kind:"scalar",T:8,oneof:"scenario"}]));class FC extends tb{constructor(e){super(),this.timestamp=pb.zero,this.rtt=pb.zero,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new FC).fromBinary(e,t)}static fromJson(e,t){return(new FC).fromJson(e,t)}static fromJsonString(e,t){return(new FC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(FC,e,t)}}FC.runtime=ov,FC.typeName="livekit.Ping",FC.fields=ov.util.newFieldList((()=>[{no:1,name:"timestamp",kind:"scalar",T:3},{no:2,name:"rtt",kind:"scalar",T:3}]));class UC extends tb{constructor(e){super(),this.lastPingTimestamp=pb.zero,this.timestamp=pb.zero,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new UC).fromBinary(e,t)}static fromJson(e,t){return(new UC).fromJson(e,t)}static fromJsonString(e,t){return(new UC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(UC,e,t)}}UC.runtime=ov,UC.typeName="livekit.Pong",UC.fields=ov.util.newFieldList((()=>[{no:1,name:"last_ping_timestamp",kind:"scalar",T:3},{no:2,name:"timestamp",kind:"scalar",T:3}]));class zC extends tb{constructor(e){super(),this.regions=[],ov.util.initPartial(e,this)}static fromBinary(e,t){return(new zC).fromBinary(e,t)}static fromJson(e,t){return(new zC).fromJson(e,t)}static fromJsonString(e,t){return(new zC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(zC,e,t)}}zC.runtime=ov,zC.typeName="livekit.RegionSettings",zC.fields=ov.util.newFieldList((()=>[{no:1,name:"regions",kind:"message",T:HC,repeated:!0}]));class HC extends tb{constructor(e){super(),this.region="",this.url="",this.distance=pb.zero,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new HC).fromBinary(e,t)}static fromJson(e,t){return(new HC).fromJson(e,t)}static fromJsonString(e,t){return(new HC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(HC,e,t)}}HC.runtime=ov,HC.typeName="livekit.RegionInfo",HC.fields=ov.util.newFieldList((()=>[{no:1,name:"region",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"distance",kind:"scalar",T:3}]));class VC extends tb{constructor(e){super(),this.trackSid="",this.err=wv.SE_UNKNOWN,ov.util.initPartial(e,this)}static fromBinary(e,t){return(new VC).fromBinary(e,t)}static fromJson(e,t){return(new VC).fromJson(e,t)}static fromJsonString(e,t){return(new VC).fromJsonString(e,t)}static equals(e,t){return ov.util.equals(VC,e,t)}}VC.runtime=ov,VC.typeName="livekit.SubscriptionResponse",VC.fields=ov.util.newFieldList((()=>[{no:1,name:"track_sid",kind:"scalar",T:9},{no:2,name:"err",kind:"enum",T:ov.getEnumType(wv)}]));const KC=[];class GC extends yw.EventEmitter{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n;super(),this.attachedElements=[],this.isMuted=!1,this.streamState=GC.StreamState.Active,this.isInBackground=!1,this._currentBitrate=0,this.log=Vy,this.appVisibilityChangedListener=()=>{this.backgroundTimeout&&clearTimeout(this.backgroundTimeout),"hidden"===document.visibilityState?this.backgroundTimeout=setTimeout((()=>this.handleAppVisibilityChanged()),5e3):this.handleAppVisibilityChanged()},this.log=Ky(null!==(n=r.loggerName)&&void 0!==n?n:zy.Track),this.loggerContextCb=r.loggerContextCb,this.setMaxListeners(100),this.kind=t,this._mediaStreamTrack=e,this._mediaStreamID=e.id,this.source=GC.Source.Unknown}get logContext(){var e;return Object.assign(Object.assign({},null===(e=this.loggerContextCb)||void 0===e?void 0:e.call(this)),tE(this))}get currentBitrate(){return this._currentBitrate}get mediaStreamTrack(){return this._mediaStreamTrack}get mediaStreamID(){return this._mediaStreamID}attach(e){let t="audio";this.kind===GC.Kind.Video&&(t="video"),0===this.attachedElements.length&&GC.Kind.Video&&this.addAppVisibilityListener(),e||("audio"===t&&(KC.forEach((t=>{null!==t.parentElement||e||(e=t)})),e&&KC.splice(KC.indexOf(e),1)),e||(e=document.createElement(t))),this.attachedElements.includes(e)||this.attachedElements.push(e),qC(this.mediaStreamTrack,e);const r=e.srcObject.getTracks(),n=r.some((e=>"audio"===e.kind));return e.play().then((()=>{this.emit(n?zA.AudioPlaybackStarted:zA.VideoPlaybackStarted)})).catch((t=>{"NotAllowedError"===t.name?this.emit(n?zA.AudioPlaybackFailed:zA.VideoPlaybackFailed,t):"AbortError"===t.name?Vy.debug("".concat(n?"audio":"video"," playback aborted, likely due to new play request")):Vy.warn("could not playback ".concat(n?"audio":"video"),t),n&&e&&r.some((e=>"video"===e.kind))&&"NotAllowedError"===t.name&&(e.muted=!0,e.play().catch((()=>{})))})),this.emit(zA.ElementAttached,e),e}detach(e){try{if(e){QC(this.mediaStreamTrack,e);const t=this.attachedElements.indexOf(e);return t>=0&&(this.attachedElements.splice(t,1),this.recycleElement(e),this.emit(zA.ElementDetached,e)),e}const t=[];return this.attachedElements.forEach((e=>{QC(this.mediaStreamTrack,e),t.push(e),this.recycleElement(e),this.emit(zA.ElementDetached,e)})),this.attachedElements=[],t}finally{0===this.attachedElements.length&&this.removeAppVisibilityListener()}}stop(){this.stopMonitor(),this._mediaStreamTrack.stop()}enable(){this._mediaStreamTrack.enabled=!0}disable(){this._mediaStreamTrack.enabled=!1}stopMonitor(){this.monitorInterval&&clearInterval(this.monitorInterval)}updateLoggerOptions(e){e.loggerName&&(this.log=Ky(e.loggerName)),e.loggerContextCb&&(this.loggerContextCb=e.loggerContextCb)}recycleElement(e){if(e instanceof HTMLAudioElement){let t=!0;e.pause(),KC.forEach((e=>{e.parentElement||(t=!1)})),t&&KC.push(e)}}handleAppVisibilityChanged(){return $v(this,void 0,void 0,(function*(){this.isInBackground="hidden"===document.visibilityState}))}addAppVisibilityListener(){hE()?(this.isInBackground="hidden"===document.visibilityState,document.addEventListener("visibilitychange",this.appVisibilityChangedListener)):this.isInBackground=!1}removeAppVisibilityListener(){hE()&&document.removeEventListener("visibilitychange",this.appVisibilityChangedListener)}}function qC(e,t){let r,n;r=t.srcObject instanceof MediaStream?t.srcObject:new MediaStream,n="audio"===e.kind?r.getAudioTracks():r.getVideoTracks(),n.includes(e)||(n.forEach((e=>{r.removeTrack(e)})),r.addTrack(e)),lE()&&t instanceof HTMLVideoElement||(t.autoplay=!0),t.muted=0===r.getAudioTracks().length,t instanceof HTMLVideoElement&&(t.playsInline=!0),t.srcObject!==r&&(t.srcObject=r,(lE()||uE())&&t instanceof HTMLVideoElement&&setTimeout((()=>{t.srcObject=r,t.play().catch((()=>{}))}),0))}function QC(e,t){if(t.srcObject instanceof MediaStream){const r=t.srcObject;r.removeTrack(e),r.getTracks().length>0?t.srcObject=r:t.srcObject=null}}function WC(e,t,r){var n;const i=null!==(n=function(e){if(void 0!==e)return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}(e))&&void 0!==n?n:{};return!0===i.audio&&(i.audio={}),!0===i.video&&(i.video={}),i.audio&&JC(i.audio,t),i.video&&JC(i.video,r),i}function JC(e,t){return Object.keys(t).forEach((r=>{void 0===e[r]&&(e[r]=t[r])})),e}function YC(e){const t={};if(e.video)if("object"==typeof e.video){const r={},n=r,i=e.video;Object.keys(i).forEach((e=>{if("resolution"===e)JC(n,i.resolution);else n[e]=i[e]})),t.video=r}else t.video=e.video;else t.video=!1;return e.audio?"object"==typeof e.audio?t.audio=e.audio:t.audio=!0:t.audio=!1,t}function ZC(){const e="undefined"!=typeof window&&(window.AudioContext||window.webkitAudioContext);if(e)return new e({latencyHint:"interactive"})}function $C(e){var t,r;let n=null===(t=e.video)||void 0===t||t;return e.resolution&&e.resolution.width>0&&e.resolution.height>0&&(n="boolean"==typeof n?{}:n,n=lE()?Object.assign(Object.assign({},n),{width:{max:e.resolution.width},height:{max:e.resolution.height},frameRate:e.resolution.frameRate}):Object.assign(Object.assign({},n),{width:{ideal:e.resolution.width},height:{ideal:e.resolution.height},frameRate:e.resolution.frameRate})),{audio:null!==(r=e.audio)&&void 0!==r&&r,video:n,controller:e.controller,selfBrowserSurface:e.selfBrowserSurface,surfaceSwitching:e.surfaceSwitching,systemAudio:e.systemAudio}}function XC(e){const t=e.split("/")[1].toLowerCase();if(!ZA.includes(t))throw Error("Video codec not supported: ".concat(t));return t}function eE(e){const t=[];return e.forEach((e=>{void 0!==e.track&&t.push(new pC({cid:e.track.mediaStreamID,track:e.trackInfo}))})),t}function tE(e){return e instanceof GC?{trackSid:e.sid,trackSource:e.source,trackMuted:e.isMuted,trackEnabled:e.mediaStreamTrack.enabled,trackKind:e.kind}:{trackSid:e.trackSid,trackName:e.trackName,track:e.track?tE(e.track):void 0,trackEnabled:e.isEnabled,trackEncrypted:e.isEncrypted,trackMimeType:e.mimeType}}!function(e){let t,r,n;!function(e){e.Audio="audio",e.Video="video",e.Unknown="unknown"}(t=e.Kind||(e.Kind={})),function(e){e.Camera="camera",e.Microphone="microphone",e.ScreenShare="screen_share",e.ScreenShareAudio="screen_share_audio",e.Unknown="unknown"}(r=e.Source||(e.Source={})),function(e){e.Active="active",e.Paused="paused",e.Unknown="unknown"}(n=e.StreamState||(e.StreamState={})),e.kindToProto=function(e){switch(e){case t.Audio:return hv.AUDIO;case t.Video:return hv.VIDEO;default:return hv.DATA}},e.kindFromProto=function(e){switch(e){case hv.AUDIO:return t.Audio;case hv.VIDEO:return t.Video;default:return t.Unknown}},e.sourceToProto=function(e){switch(e){case r.Camera:return pv.CAMERA;case r.Microphone:return pv.MICROPHONE;case r.ScreenShare:return pv.SCREEN_SHARE;case r.ScreenShareAudio:return pv.SCREEN_SHARE_AUDIO;default:return pv.UNKNOWN}},e.sourceFromProto=function(e){switch(e){case pv.CAMERA:return r.Camera;case pv.MICROPHONE:return r.Microphone;case pv.SCREEN_SHARE:return r.ScreenShare;case pv.SCREEN_SHARE_AUDIO:return r.ScreenShareAudio;default:return r.Unknown}},e.streamStateFromProto=function(e){switch(e){case iC.ACTIVE:return n.Active;case iC.PAUSED:return n.Paused;default:return n.Unknown}}}(GC||(GC={}));const rE="https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extension";function nE(e){return $v(this,void 0,void 0,(function*(){return new Promise((t=>WA.setTimeout(t,e)))}))}function iE(){return"addTransceiver"in RTCPeerConnection.prototype}function oE(){return"addTrack"in RTCPeerConnection.prototype}function aE(e){return"av1"===e||"vp9"===e}function sE(e){return!!document&&(e||(e=document.createElement("audio")),"setSinkId"in e)}const cE={Chrome:"100",Safari:"15",Firefox:"100"};function uE(){var e;return"Firefox"===(null===(e=GA())||void 0===e?void 0:e.name)}function lE(){var e;return"Safari"===(null===(e=GA())||void 0===e?void 0:e.name)}function dE(){const e=GA();return"Safari"===(null==e?void 0:e.name)&&e.version.startsWith("17.")}function fE(){return!!hE()&&/Tablet|iPad|Mobile|Android|BlackBerry/.test(navigator.userAgent)}function hE(){return"undefined"!=typeof document}function pE(){return"ReactNative"==navigator.product}function gE(e){return e.hostname.endsWith(".livekit.cloud")||e.hostname.endsWith(".livekit.run")}function mE(){if(global&&global.LiveKitReactNativeGlobal)return global.LiveKitReactNativeGlobal}function yE(){if(!pE())return;let e=mE();return e?e.platform:void 0}function bE(){if(hE())return window.devicePixelRatio;if(pE()){let e=mE();if(e)return e.devicePixelRatio}return 1}function vE(e,t){const r=e.split("."),n=t.split("."),i=Math.min(r.length,n.length);for(let o=0;ot)return 1;if(e(CE||(CE=new ResizeObserver(wE)),CE);let xE=null;const SE=()=>(xE||(xE=new IntersectionObserver(AE,{root:null,rootMargin:"0px"})),xE);let IE;function kE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=document.createElement("canvas");i.width=e,i.height=t;const o=i.getContext("2d");null==o||o.fillRect(0,0,i.width,i.height),n&&o&&(o.beginPath(),o.arc(e/2,t/2,50,0,2*Math.PI,!0),o.closePath(),o.fillStyle="grey",o.fill());const a=i.captureStream(),[s]=a.getTracks();if(!s)throw Error("Could not get empty media stream video track");return s.enabled=r,s}function _E(){if(!IE){const e=new AudioContext,t=e.createOscillator(),r=e.createGain();r.gain.setValueAtTime(0,0);const n=e.createMediaStreamDestination();if(t.connect(r),r.connect(n),t.start(),[IE]=n.stream.getAudioTracks(),!IE)throw Error("Could not get empty media stream audio track");IE.enabled=!1}return IE.clone()}class TE{constructor(e,t){this.onFinally=t,this.promise=new Promise(((t,r)=>$v(this,void 0,void 0,(function*(){this.resolve=t,this.reject=r,e&&(yield e(t,r))})))).finally((()=>{var e;return null===(e=this.onFinally)||void 0===e?void 0:e.call(this)}))}}class ME{constructor(){this._locking=Promise.resolve(),this._locks=0}isLocked(){return this._locks>0}lock(){let e;this._locks+=1;const t=new Promise((t=>e=()=>{this._locks-=1,t()})),r=this._locking.then((()=>e));return this._locking=this._locking.then((()=>t)),r}}function PE(e){if("string"==typeof e)return e;if(Array.isArray(e))return e[0];if(e.exact)return Array.isArray(e.exact)?e.exact[0]:e.exact;if(e.ideal)return Array.isArray(e.ideal)?e.ideal[0]:e.ideal;throw Error("could not unwrap constraint")}function jE(e){return e.startsWith("ws")?e.replace(/^(ws)/,"http"):e}const DE="default";class OE{static getInstance(){return void 0===this.instance&&(this.instance=new OE),this.instance}getDevices(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var r;return $v(this,void 0,void 0,(function*(){if((null===(r=OE.userMediaPromiseMap)||void 0===r?void 0:r.size)>0){Vy.debug("awaiting getUserMedia promise");try{e?yield OE.userMediaPromiseMap.get(e):yield Promise.all(OE.userMediaPromiseMap.values())}catch($R){Vy.warn("error waiting for media permissons")}}let n=yield navigator.mediaDevices.enumerateDevices();if(t&&(!lE()||!this.hasDeviceInUse(e))){const t=0===n.length||n.some((t=>{const r=""===t.label,n=!e||t.kind===e;return r&&n}));if(t){const t={video:"audioinput"!==e&&"audiooutput"!==e,audio:"videoinput"!==e},r=yield navigator.mediaDevices.getUserMedia(t);n=yield navigator.mediaDevices.enumerateDevices(),r.getTracks().forEach((e=>{e.stop()}))}}return e&&(n=n.filter((t=>t.kind===e))),n}))}normalizeDeviceId(e,t,r){return $v(this,void 0,void 0,(function*(){if(t!==DE)return t;const n=(yield this.getDevices(e)).find((e=>e.groupId===r&&e.deviceId!==DE));return null==n?void 0:n.deviceId}))}hasDeviceInUse(e){return e?OE.userMediaPromiseMap.has(e):OE.userMediaPromiseMap.size>0}}OE.mediaDeviceKinds=["audioinput","audiooutput","videoinput"],OE.userMediaPromiseMap=new Map;class BE extends GC{get constraints(){return this._constraints}constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];super(e,t,arguments.length>4?arguments[4]:void 0),this._isUpstreamPaused=!1,this.handleTrackMuteEvent=()=>this.debouncedTrackMuteHandler().catch((()=>this.log.debug("track mute bounce got cancelled by an unmute event",this.logContext))),this.debouncedTrackMuteHandler=HA((()=>$v(this,void 0,void 0,(function*(){yield this.pauseUpstream()}))),5e3),this.handleTrackUnmuteEvent=()=>$v(this,void 0,void 0,(function*(){this.debouncedTrackMuteHandler.cancel("unmute"),yield this.resumeUpstream()})),this.handleEnded=()=>{this.isInBackground&&(this.reacquireTrack=!0),this._mediaStreamTrack.removeEventListener("mute",this.handleTrackMuteEvent),this._mediaStreamTrack.removeEventListener("unmute",this.handleTrackUnmuteEvent),this.emit(zA.Ended,this)},this.reacquireTrack=!1,this.providedByUser=n,this.muteLock=new ME,this.pauseUpstreamLock=new ME,this.processorLock=new ME,this.setMediaStreamTrack(e,!0),this._constraints=e.getConstraints(),r&&(this._constraints=r)}get id(){return this._mediaStreamTrack.id}get dimensions(){if(this.kind!==GC.Kind.Video)return;const{width:e,height:t}=this._mediaStreamTrack.getSettings();return e&&t?{width:e,height:t}:void 0}get isUpstreamPaused(){return this._isUpstreamPaused}get isUserProvided(){return this.providedByUser}get mediaStreamTrack(){var e,t;return null!==(t=null===(e=this.processor)||void 0===e?void 0:e.processedTrack)&&void 0!==t?t:this._mediaStreamTrack}setMediaStreamTrack(e,t){return $v(this,void 0,void 0,(function*(){if(e===this._mediaStreamTrack&&!t)return;let r;if(this._mediaStreamTrack&&(this.attachedElements.forEach((e=>{QC(this._mediaStreamTrack,e)})),this.debouncedTrackMuteHandler.cancel("new-track"),this._mediaStreamTrack.removeEventListener("ended",this.handleEnded),this._mediaStreamTrack.removeEventListener("mute",this.handleTrackMuteEvent),this._mediaStreamTrack.removeEventListener("unmute",this.handleTrackUnmuteEvent)),this.mediaStream=new MediaStream([e]),e&&(e.addEventListener("ended",this.handleEnded),e.addEventListener("mute",this.handleTrackMuteEvent),e.addEventListener("unmute",this.handleTrackUnmuteEvent),this._constraints=e.getConstraints()),this.processor&&e&&this.processorElement){if(this.log.debug("restarting processor",this.logContext),"unknown"===this.kind)throw TypeError("cannot set processor on track of unknown kind");qC(e,this.processorElement),this.processorElement.muted=!0,yield this.processor.restart({track:e,kind:this.kind,element:this.processorElement}),r=this.processor.processedTrack}this.sender&&(yield this.sender.replaceTrack(null!=r?r:e)),this.providedByUser||this._mediaStreamTrack===e||this._mediaStreamTrack.stop(),this._mediaStreamTrack=e,e&&(this._mediaStreamTrack.enabled=!this.isMuted,yield this.resumeUpstream(),this.attachedElements.forEach((t=>{qC(null!=r?r:e,t)})))}))}waitForDimensions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;var t;return $v(this,void 0,void 0,(function*(){if(this.kind===GC.Kind.Audio)throw new Error("cannot get dimensions for audio tracks");"iOS"===(null===(t=GA())||void 0===t?void 0:t.os)&&(yield nE(10));const r=Date.now();for(;Date.now()-r1&&void 0!==arguments[1])||arguments[1];return $v(this,void 0,void 0,(function*(){if(!this.sender)throw new DA("unable to replace an unpublished track");return this.log.debug("replace MediaStreamTrack",this.logContext),yield this.setMediaStreamTrack(e),this.providedByUser=t,this.processor&&(yield this.stopProcessor()),this}))}restart(e){return $v(this,void 0,void 0,(function*(){e||(e=this._constraints),this.log.debug("restarting track with constraints",Object.assign(Object.assign({},this.logContext),{constraints:e}));const t={audio:!1,video:!1};this.kind===GC.Kind.Video?t.video=e:t.audio=e,this.attachedElements.forEach((e=>{QC(this.mediaStreamTrack,e)})),this._mediaStreamTrack.removeEventListener("ended",this.handleEnded),this._mediaStreamTrack.stop();const r=(yield navigator.mediaDevices.getUserMedia(t)).getTracks()[0];return r.addEventListener("ended",this.handleEnded),this.log.debug("re-acquired MediaStreamTrack",this.logContext),yield this.setMediaStreamTrack(r),this._constraints=e,this.emit(zA.Restarted,this),this}))}setTrackMuted(e){this.log.debug("setting ".concat(this.kind," track ").concat(e?"muted":"unmuted"),this.logContext),this.isMuted===e&&this._mediaStreamTrack.enabled!==e||(this.isMuted=e,this._mediaStreamTrack.enabled=!e,this.emit(e?zA.Muted:zA.Unmuted,this))}get needsReAcquisition(){return"live"!==this._mediaStreamTrack.readyState||this._mediaStreamTrack.muted||!this._mediaStreamTrack.enabled||this.reacquireTrack}handleAppVisibilityChanged(){const e=Object.create(null,{handleAppVisibilityChanged:{get:()=>super.handleAppVisibilityChanged}});return $v(this,void 0,void 0,(function*(){yield e.handleAppVisibilityChanged.call(this),fE()&&(this.log.debug("visibility changed, is in Background: ".concat(this.isInBackground),this.logContext),this.isInBackground||!this.needsReAcquisition||this.isUserProvided||this.isMuted||(this.log.debug("track needs to be reacquired, restarting ".concat(this.source),this.logContext),yield this.restart(),this.reacquireTrack=!1))}))}stop(){var e;super.stop(),this._mediaStreamTrack.removeEventListener("ended",this.handleEnded),this._mediaStreamTrack.removeEventListener("mute",this.handleTrackMuteEvent),this._mediaStreamTrack.removeEventListener("unmute",this.handleTrackUnmuteEvent),null===(e=this.processor)||void 0===e||e.destroy(),this.processor=void 0}pauseUpstream(){return $v(this,void 0,void 0,(function*(){const e=yield this.pauseUpstreamLock.lock();try{if(!0===this._isUpstreamPaused)return;if(!this.sender)return void this.log.warn("unable to pause upstream for an unpublished track",this.logContext);this._isUpstreamPaused=!0,this.emit(zA.UpstreamPaused,this);const e=GA();if("Safari"===(null==e?void 0:e.name)&&vE(e.version,"12.0")<0)throw new jA("pauseUpstream is not supported on Safari < 12.");yield this.sender.replaceTrack(null)}finally{e()}}))}resumeUpstream(){return $v(this,void 0,void 0,(function*(){const e=yield this.pauseUpstreamLock.lock();try{if(!1===this._isUpstreamPaused)return;if(!this.sender)return void this.log.warn("unable to resume upstream for an unpublished track",this.logContext);this._isUpstreamPaused=!1,this.emit(zA.UpstreamResumed,this),yield this.sender.replaceTrack(this._mediaStreamTrack)}finally{e()}}))}getRTCStatsReport(){var e;return $v(this,void 0,void 0,(function*(){if(!(null===(e=this.sender)||void 0===e?void 0:e.getStats))return;return yield this.sender.getStats()}))}setProcessor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var r,n;return $v(this,void 0,void 0,(function*(){const i=yield this.processorLock.lock();try{if(this.log.debug("setting up processor",this.logContext),this.processor&&(yield this.stopProcessor()),"unknown"===this.kind)throw TypeError("cannot set processor on track of unknown kind");this.processorElement=null!==(r=this.processorElement)&&void 0!==r?r:document.createElement(this.kind),qC(this._mediaStreamTrack,this.processorElement),this.processorElement.muted=!0,this.processorElement.play().catch((e=>this.log.error("failed to play processor element",Object.assign(Object.assign({},this.logContext),{error:e}))));const i={kind:this.kind,track:this._mediaStreamTrack,element:this.processorElement};if(yield e.init(i),this.processor=e,this.processor.processedTrack){for(const e of this.attachedElements)e!==this.processorElement&&t&&(QC(this._mediaStreamTrack,e),qC(this.processor.processedTrack,e));yield null===(n=this.sender)||void 0===n?void 0:n.replaceTrack(this.processor.processedTrack)}}finally{i()}}))}getProcessor(){return this.processor}stopProcessor(){var e,t;return $v(this,void 0,void 0,(function*(){this.processor&&(this.log.debug("stopping processor",this.logContext),null===(e=this.processor.processedTrack)||void 0===e||e.stop(),yield this.processor.destroy(),this.processor=void 0,null===(t=this.processorElement)||void 0===t||t.remove(),this.processorElement=void 0,yield this.restart())}))}}class NE extends yw.EventEmitter{constructor(e){super(),this.onWorkerMessage=e=>{var t,r;const{kind:n,data:i}=e.data;switch(n){case"error":Vy.error(i.error.message),this.emit(IA.EncryptionError,i.error);break;case"initAck":i.enabled&&this.keyProvider.getKeys().forEach((e=>{this.postKey(e)}));break;case"enable":if(this.encryptionEnabled!==i.enabled&&i.participantIdentity===(null===(t=this.room)||void 0===t?void 0:t.localParticipant.identity))this.emit(IA.ParticipantEncryptionStatusChanged,i.enabled,this.room.localParticipant),this.encryptionEnabled=i.enabled;else if(i.participantIdentity){const e=null===(r=this.room)||void 0===r?void 0:r.getParticipantByIdentity(i.participantIdentity);if(!e)throw TypeError("couldn't set encryption status, participant not found".concat(i.participantIdentity));this.emit(IA.ParticipantEncryptionStatusChanged,i.enabled,e)}this.encryptionEnabled&&this.keyProvider.getKeys().forEach((e=>{this.postKey(e)}));break;case"ratchetKey":this.keyProvider.emit(xA.KeyRatcheted,i.material,i.keyIndex)}},this.onWorkerError=e=>{Vy.error("e2ee worker encountered an error:",{error:e.error}),this.emit(IA.EncryptionError,e.error)},this.keyProvider=e.keyProvider,this.worker=e.worker,this.encryptionEnabled=!1}setup(e){if(!_A())throw new jA("tried to setup end-to-end encryption on an unsupported browser");if(Vy.info("setting up e2ee"),e!==this.room){this.room=e,this.setupEventListeners(e,this.keyProvider);const t={kind:"init",data:{keyProviderOptions:this.keyProvider.getOptions()}};this.worker&&(Vy.info("initializing worker",{worker:this.worker}),this.worker.onmessage=this.onWorkerMessage,this.worker.onerror=this.onWorkerError,this.worker.postMessage(t))}}setParticipantCryptorEnabled(e,t){Vy.debug("set e2ee to ".concat(e," for participant ").concat(t)),this.postEnable(e,t)}setSifTrailer(e){e&&0!==e.length?this.postSifTrailer(e):Vy.warn("ignoring server sent trailer as it's empty")}setupEngine(e){e.on(UA.RTPVideoMapUpdate,(e=>{this.postRTPMap(e)}))}setupEventListeners(e,t){e.on(LA.TrackPublished,((e,t)=>this.setParticipantCryptorEnabled(e.trackInfo.encryption!==Tv.NONE,t.identity))),e.on(LA.ConnectionStateChanged,(t=>{t===Zx.Connected&&e.participants.forEach((e=>{e.tracks.forEach((t=>{this.setParticipantCryptorEnabled(t.trackInfo.encryption!==Tv.NONE,e.identity)}))}))})).on(LA.TrackUnsubscribed,((e,t,r)=>{var n;const i={kind:"removeTransform",data:{participantIdentity:r.identity,trackId:e.mediaStreamID}};null===(n=this.worker)||void 0===n||n.postMessage(i)})).on(LA.TrackSubscribed,((e,t,r)=>{this.setupE2EEReceiver(e,r.identity,t.trackInfo)})).on(LA.SignalConnected,(()=>{if(!this.room)throw new TypeError("expected room to be present on signal connect");this.setParticipantCryptorEnabled(this.room.localParticipant.isE2EEEnabled,this.room.localParticipant.identity),t.getKeys().forEach((e=>{this.postKey(e)}))})),e.localParticipant.on(FA.LocalTrackPublished,(e=>$v(this,void 0,void 0,(function*(){this.setupE2EESender(e.track,e.track.sender)})))),t.on(xA.SetKey,(e=>this.postKey(e))).on(xA.RatchetRequest,((e,t)=>this.postRatchetRequest(e,t)))}postRatchetRequest(e,t){if(!this.worker)throw Error("could not ratchet key, worker is missing");const r={kind:"ratchetRequest",data:{participantIdentity:e,keyIndex:t}};this.worker.postMessage(r)}postKey(e){let{key:t,participantIdentity:r,keyIndex:n}=e;var i;if(!this.worker)throw Error("could not set key, worker is missing");const o={kind:"setKey",data:{participantIdentity:r,isPublisher:r===(null===(i=this.room)||void 0===i?void 0:i.localParticipant.identity),key:t,keyIndex:n}};this.worker.postMessage(o)}postEnable(e,t){if(!this.worker)throw new ReferenceError("failed to enable e2ee, worker is not ready");{const r={kind:"enable",data:{enabled:e,participantIdentity:t}};this.worker.postMessage(r)}}postRTPMap(e){var t;if(!this.worker)throw TypeError("could not post rtp map, worker is missing");if(!(null===(t=this.room)||void 0===t?void 0:t.localParticipant.identity))throw TypeError("could not post rtp map, local participant identity is missing");const r={kind:"setRTPMap",data:{map:e,participantIdentity:this.room.localParticipant.identity}};this.worker.postMessage(r)}postSifTrailer(e){if(!this.worker)throw Error("could not post SIF trailer, worker is missing");const t={kind:"setSifTrailer",data:{trailer:e}};this.worker.postMessage(t)}setupE2EEReceiver(e,t,r){if(e.receiver){if(!(null==r?void 0:r.mimeType)||""===r.mimeType)throw new TypeError("MimeType missing from trackInfo, cannot set up E2EE cryptor");this.handleReceiver(e.receiver,e.mediaStreamID,t,"video"===e.kind?XC(r.mimeType):void 0)}}setupE2EESender(e,t){e instanceof BE&&t?this.handleSender(t,e.mediaStreamID,void 0):t||Vy.warn("early return because sender is not ready")}handleReceiver(e,t,r,n){return $v(this,void 0,void 0,(function*(){if(this.worker){if(TA()){const i={kind:"decode",participantIdentity:r,trackId:t,codec:n};e.transform=new RTCRtpScriptTransform(this.worker,i)}else{if(EA in e&&n){const e={kind:"updateCodec",data:{trackId:t,codec:n,participantIdentity:r}};return void this.worker.postMessage(e)}let i=e.writableStream,o=e.readableStream;if(!i||!o){const t=e.createEncodedStreams();e.writableStream=t.writable,i=t.writable,e.readableStream=t.readable,o=t.readable}const a={kind:"decode",data:{readableStream:o,writableStream:i,trackId:t,codec:n,participantIdentity:r}};this.worker.postMessage(a,[o,i])}e[EA]=!0}}))}handleSender(e,t,r){var n;if(!(EA in e)&&this.worker){if(!(null===(n=this.room)||void 0===n?void 0:n.localParticipant.identity)||""===this.room.localParticipant.identity)throw TypeError("local identity needs to be known in order to set up encrypted sender");if(TA()){Vy.info("initialize script transform");const n={kind:"encode",participantIdentity:this.room.localParticipant.identity,trackId:t,codec:r};e.transform=new RTCRtpScriptTransform(this.worker,n)}else{Vy.info("initialize encoded streams");const n=e.createEncodedStreams(),i={kind:"encode",data:{readableStream:n.readable,writableStream:n.writable,codec:r,trackId:t,participantIdentity:this.room.localParticipant.identity}};this.worker.postMessage(i,[n.readable,n.writable])}e[EA]=!0}}}var RE;!function(e){e[e.WAITING=0]="WAITING",e[e.RUNNING=1]="RUNNING",e[e.COMPLETED=2]="COMPLETED"}(RE||(RE={}));class LE{constructor(){this.pendingTasks=new Map,this.taskMutex=new ME,this.nextTaskIndex=0}run(e){return $v(this,void 0,void 0,(function*(){const t={id:this.nextTaskIndex++,enqueuedAt:Date.now(),status:RE.WAITING};this.pendingTasks.set(t.id,t);const r=yield this.taskMutex.lock();try{return t.executedAt=Date.now(),t.status=RE.RUNNING,yield e()}finally{t.status=RE.COMPLETED,this.pendingTasks.delete(t.id),r()}}))}flush(){return $v(this,void 0,void 0,(function*(){return this.run((()=>$v(this,void 0,void 0,(function*(){}))))}))}snapshot(){return Array.from(this.pendingTasks.values())}}const FE=["syncState","trickle","offer","answer","simulate","leave"];var UE;!function(e){e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTING=2]="RECONNECTING",e[e.DISCONNECTING=3]="DISCONNECTING",e[e.DISCONNECTED=4]="DISCONNECTED"}(UE||(UE={}));class zE{get currentState(){return this.state}get isDisconnected(){return this.state===UE.DISCONNECTING||this.state===UE.DISCONNECTED}get isEstablishingConnection(){return this.state===UE.CONNECTING||this.state===UE.RECONNECTING}constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r;this.rtt=0,this.state=UE.DISCONNECTED,this.log=Vy,this.resetCallbacks=()=>{this.onAnswer=void 0,this.onLeave=void 0,this.onLocalTrackPublished=void 0,this.onLocalTrackUnpublished=void 0,this.onNegotiateRequested=void 0,this.onOffer=void 0,this.onRemoteMuteChanged=void 0,this.onSubscribedQualityUpdate=void 0,this.onTokenRefresh=void 0,this.onTrickle=void 0,this.onClose=void 0},this.log=Ky(null!==(r=t.loggerName)&&void 0!==r?r:zy.Signal),this.loggerContextCb=t.loggerContextCb,this.useJSON=e,this.requestQueue=new LE,this.queuedRequests=[],this.closingLock=new ME,this.connectionLock=new ME,this.state=UE.DISCONNECTED}get logContext(){var e,t;return null!==(t=null===(e=this.loggerContextCb)||void 0===e?void 0:e.call(this))&&void 0!==t?t:{}}join(e,t,r,n){return $v(this,void 0,void 0,(function*(){this.state=UE.CONNECTING,this.options=r;return yield this.connect(e,t,r,n)}))}reconnect(e,t,r,n){return $v(this,void 0,void 0,(function*(){if(!this.options)return void this.log.warn("attempted to reconnect without signal options being set, ignoring",this.logContext);this.state=UE.RECONNECTING,this.clearPingInterval();return yield this.connect(e,t,Object.assign(Object.assign({},this.options),{reconnect:!0,sid:r,reconnectReason:n}))}))}connect(e,t,r,n){this.connectOptions=r,e=(e=function(e){return e.startsWith("http")?e.replace(/^(http)/,"ws"):e}(e)).replace(/\/$/,""),e+="/rtc";const i=function(e,t,r){var n;const i=new URLSearchParams;i.set("access_token",e),r.reconnect&&(i.set("reconnect","1"),r.sid&&i.set("sid",r.sid));i.set("auto_subscribe",r.autoSubscribe?"1":"0"),i.set("sdk",pE()?"reactnative":"js"),i.set("version",t.version),i.set("protocol",t.protocol.toString()),t.deviceModel&&i.set("device_model",t.deviceModel);t.os&&i.set("os",t.os);t.osVersion&&i.set("os_version",t.osVersion);t.browser&&i.set("browser",t.browser);t.browserVersion&&i.set("browser_version",t.browserVersion);void 0!==r.publishOnly&&i.set("publish",r.publishOnly);r.adaptiveStream&&i.set("adaptive_stream","1");r.reconnectReason&&i.set("reconnect_reason",r.reconnectReason.toString());(null===(n=navigator.connection)||void 0===n?void 0:n.type)&&i.set("network",navigator.connection.type);return"?".concat(i.toString())}(t,function(){var e;const t=new Vv({sdk:jv.JS,protocol:11,version:"1.15.13"});return pE()&&(t.os=null!==(e=yE())&&void 0!==e?e:""),t}(),r);return new Promise(((t,o)=>$v(this,void 0,void 0,(function*(){const a=yield this.connectionLock.lock();try{const a=()=>$v(this,void 0,void 0,(function*(){this.close(),clearTimeout(s),o(new PA("room connection has been cancelled (signal)"))})),s=setTimeout((()=>{this.close(),o(new PA("room connection has timed out (signal)"))}),r.websocketTimeout);(null==n?void 0:n.aborted)&&a(),null==n||n.addEventListener("abort",a),this.log.debug("connecting to ".concat(e+i),this.logContext),this.ws&&(yield this.close(!1)),this.ws=new WebSocket(e+i),this.ws.binaryType="arraybuffer",this.ws.onopen=()=>{clearTimeout(s)},this.ws.onerror=t=>$v(this,void 0,void 0,(function*(){if(this.state===UE.CONNECTED)this.handleWSError(t);else{clearTimeout(s);try{const t=yield fetch("http".concat(e.substring(2),"/validate").concat(i));if(t.status.toFixed(0).startsWith("4")){const e=yield t.text();o(new PA(e,0,t.status))}else o(new PA("Internal error",2,t.status))}catch($R){o(new PA("server was not reachable",1))}}})),this.ws.onmessage=e=>$v(this,void 0,void 0,(function*(){var i,s,c,u;let l;if("string"==typeof e.data){const t=JSON.parse(e.data);l=sC.fromJson(t)}else{if(!(e.data instanceof ArrayBuffer))return void this.log.error("could not decode websocket message: ".concat(typeof e.data),this.logContext);l=sC.fromBinary(new Uint8Array(e.data))}if(this.state!==UE.CONNECTED){let e=!1;if("join"===(null===(i=l.message)||void 0===i?void 0:i.case)?(this.state=UE.CONNECTED,null==n||n.removeEventListener("abort",a),this.pingTimeoutDuration=l.message.value.pingTimeout,this.pingIntervalDuration=l.message.value.pingInterval,this.pingTimeoutDuration&&this.pingTimeoutDuration>0&&(this.log.debug("ping config",Object.assign(Object.assign({},this.logContext),{timeout:this.pingTimeoutDuration,interval:this.pingIntervalDuration})),this.startPingInterval()),t(l.message.value)):this.state===UE.RECONNECTING&&"leave"!==l.message.case?(this.state=UE.CONNECTED,null==n||n.removeEventListener("abort",a),this.startPingInterval(),"reconnect"===(null===(s=l.message)||void 0===s?void 0:s.case)?t(null===(c=l.message)||void 0===c?void 0:c.value):(t(),e=!0)):this.isEstablishingConnection&&"leave"===l.message.case?o(new PA("Received leave request while trying to (re)connect",4)):r.reconnect||o(new PA("did not receive join response, got ".concat(null===(u=l.message)||void 0===u?void 0:u.case," instead"))),!e)return}this.signalLatency&&(yield nE(this.signalLatency)),this.handleSignalResponse(l)})),this.ws.onclose=e=>{this.isEstablishingConnection&&o(new PA("Websocket got closed during a (re)connection attempt")),this.log.warn("websocket closed",Object.assign(Object.assign({},this.logContext),{reason:e.reason,state:this.state})),this.handleOnClose(e.reason)}}finally{a()}}))))}close(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return $v(this,void 0,void 0,(function*(){const t=yield this.closingLock.lock();try{if(e&&(this.state=UE.DISCONNECTING),this.ws){this.ws.onmessage=null,this.ws.onopen=null,this.ws.onclose=null;const e=new Promise((e=>{this.ws?this.ws.onclose=()=>{e()}:e()}));this.ws.readyState1&&void 0!==arguments[1]&&arguments[1];return $v(this,void 0,void 0,(function*(){const r=!t&&!function(e){const t=FE.indexOf(e.case)>=0;return Vy.trace("request allowed to bypass queue:",{canPass:t,req:e}),t}(e);if(r&&this.state===UE.RECONNECTING)return void this.queuedRequests.push((()=>$v(this,void 0,void 0,(function*(){yield this.sendRequest(e,!0)}))));if(t||(yield this.requestQueue.flush()),this.signalLatency&&(yield nE(this.signalLatency)),!this.ws||this.ws.readyState!==this.ws.OPEN)return void this.log.error("cannot send signal request before connected, type: ".concat(null==e?void 0:e.case),this.logContext);const n=new aC({message:e});try{this.useJSON?this.ws.send(n.toJsonString()):this.ws.send(n.toBinary())}catch($R){this.log.error("error sending signal message",Object.assign(Object.assign({},this.logContext),{error:$R}))}}))}handleSignalResponse(e){var t,r;const n=e.message;if(null==n)return void this.log.debug("received unsupported message",this.logContext);let i=!1;if("answer"===n.case){const e=HE(n.value);this.onAnswer&&this.onAnswer(e)}else if("offer"===n.case){const e=HE(n.value);this.onOffer&&this.onOffer(e)}else if("trickle"===n.case){const e=JSON.parse(n.value.candidateInit);this.onTrickle&&this.onTrickle(e,n.value.target)}else"update"===n.case?this.onParticipantUpdate&&this.onParticipantUpdate(null!==(t=n.value.participants)&&void 0!==t?t:[]):"trackPublished"===n.case?this.onLocalTrackPublished&&this.onLocalTrackPublished(n.value):"speakersChanged"===n.case?this.onSpeakersChanged&&this.onSpeakersChanged(null!==(r=n.value.speakers)&&void 0!==r?r:[]):"leave"===n.case?this.onLeave&&this.onLeave(n.value):"mute"===n.case?this.onRemoteMuteChanged&&this.onRemoteMuteChanged(n.value.sid,n.value.muted):"roomUpdate"===n.case?this.onRoomUpdate&&n.value.room&&this.onRoomUpdate(n.value.room):"connectionQuality"===n.case?this.onConnectionQuality&&this.onConnectionQuality(n.value):"streamStateUpdate"===n.case?this.onStreamStateUpdate&&this.onStreamStateUpdate(n.value):"subscribedQualityUpdate"===n.case?this.onSubscribedQualityUpdate&&this.onSubscribedQualityUpdate(n.value):"subscriptionPermissionUpdate"===n.case?this.onSubscriptionPermissionUpdate&&this.onSubscriptionPermissionUpdate(n.value):"refreshToken"===n.case?this.onTokenRefresh&&this.onTokenRefresh(n.value):"trackUnpublished"===n.case?this.onLocalTrackUnpublished&&this.onLocalTrackUnpublished(n.value):"subscriptionResponse"===n.case?this.onSubscriptionError&&this.onSubscriptionError(n.value):"pong"===n.case||("pongResp"===n.case?(this.rtt=Date.now()-Number.parseInt(n.value.lastPingTimestamp.toString()),this.resetPingTimeout(),i=!0):this.log.debug("unsupported message",Object.assign(Object.assign({},this.logContext),{msgCase:n.case})));i||this.resetPingTimeout()}setReconnected(){for(;this.queuedRequests.length>0;){const e=this.queuedRequests.shift();e&&this.requestQueue.run(e)}}handleOnClose(e){return $v(this,void 0,void 0,(function*(){if(this.state===UE.DISCONNECTED)return;const t=this.onClose;yield this.close(),this.log.debug("websocket connection closed: ".concat(e),Object.assign(Object.assign({},this.logContext),{reason:e})),t&&t(e)}))}handleWSError(e){this.log.error("websocket error",Object.assign(Object.assign({},this.logContext),{error:e}))}resetPingTimeout(){this.clearPingTimeout(),this.pingTimeoutDuration?this.pingTimeout=WA.setTimeout((()=>{this.log.warn("ping timeout triggered. last pong received at: ".concat(new Date(Date.now()-1e3*this.pingTimeoutDuration).toUTCString()),this.logContext),this.handleOnClose("ping timeout")}),1e3*this.pingTimeoutDuration):this.log.warn("ping timeout duration not set",this.logContext)}clearPingTimeout(){this.pingTimeout&&WA.clearTimeout(this.pingTimeout)}startPingInterval(){this.clearPingInterval(),this.resetPingTimeout(),this.pingIntervalDuration?(this.log.debug("start ping interval",this.logContext),this.pingInterval=WA.setInterval((()=>{this.sendPing()}),1e3*this.pingIntervalDuration)):this.log.warn("ping interval duration not set",this.logContext)}clearPingInterval(){this.log.debug("clearing ping interval",this.logContext),this.clearPingTimeout(),this.pingInterval&&WA.clearInterval(this.pingInterval)}}function HE(e){const t={type:"offer",sdp:e.sdp};switch(e.type){case"answer":case"offer":case"pranswer":case"rollback":t.type=e.type}return t}function VE(e){return new mC({sdp:e.sdp,type:e.type})}var KE={},GE={exports:{}},qE=GE.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+=null!=e["network-cost"]?" network-cost %d":"%v"}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+=null!=e.rateDenominator?"/%s":""}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(qE).forEach((function(e){qE[e].forEach((function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}));var QE=GE.exports;!function(e){var t=function(e){return String(Number(e))===e?Number(e):e},r=function(e,r,n){var i=e.name&&e.names;e.push&&!r[e.push]?r[e.push]=[]:i&&!r[e.name]&&(r[e.name]={});var o=e.push?{}:i?r[e.name]:r;!function(e,r,n,i){if(i&&!n)r[i]=t(e[1]);else for(var o=0;o1&&(e[n[0]]=void 0),e};e.parseParams=function(e){return e.split(/;\s?/).reduce(o,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){return e.toString().split(" ").map(Number)},e.parseRemoteCandidates=function(e){for(var r=[],n=e.split(" ").map(t),i=0;i=n)return e;var i=r[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(i);case"%d":return Number(i);case"%v":return""}}))},ZE=function(e,t,r){var n=[e+"="+(t.format instanceof Function?t.format(t.push?r:r[t.name]):t.format)];if(t.names)for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n;super(),this.log=Vy,this.pendingCandidates=[],this.restartingIce=!1,this.renegotiate=!1,this.trackBitrates=[],this.remoteStereoMids=[],this.remoteNackMids=[],this.negotiate=HA((e=>$v(this,void 0,void 0,(function*(){this.emit(ix);try{yield this.createAndSendOffer()}catch($R){if(!e)throw $R;e($R)}}))),100),this.close=()=>{this._pc&&(this._pc.close(),this._pc.onconnectionstatechange=null,this._pc.oniceconnectionstatechange=null,this._pc.onicegatheringstatechange=null,this._pc.ondatachannel=null,this._pc.onnegotiationneeded=null,this._pc.onsignalingstatechange=null,this._pc.onicecandidate=null,this._pc.ondatachannel=null,this._pc.ontrack=null,this._pc.onconnectionstatechange=null,this._pc.oniceconnectionstatechange=null,this._pc=null)},this.log=Ky(null!==(n=r.loggerName)&&void 0!==n?n:zy.PCTransport),this.loggerOptions=r,this.config=e,this.mediaConstraints=t,this._pc=this.createPC()}createPC(){const e="Chrome"===(null===(t=GA())||void 0===t?void 0:t.name)?new RTCPeerConnection(this.config,this.mediaConstraints):new RTCPeerConnection(this.config);var t;return e.onicecandidate=e=>{var t;e.candidate&&(null===(t=this.onIceCandidate)||void 0===t||t.call(this,e.candidate))},e.onicecandidateerror=e=>{var t;null===(t=this.onIceCandidateError)||void 0===t||t.call(this,e)},e.oniceconnectionstatechange=()=>{var t;null===(t=this.onIceConnectionStateChange)||void 0===t||t.call(this,e.iceConnectionState)},e.onsignalingstatechange=()=>{var t;null===(t=this.onSignalingStatechange)||void 0===t||t.call(this,e.signalingState)},e.onconnectionstatechange=()=>{var t;null===(t=this.onConnectionStateChange)||void 0===t||t.call(this,e.connectionState)},e.ondatachannel=e=>{var t;null===(t=this.onDataChannel)||void 0===t||t.call(this,e)},e.ontrack=e=>{var t;null===(t=this.onTrack)||void 0===t||t.call(this,e)},e}get logContext(){var e,t;return Object.assign({},null===(t=(e=this.loggerOptions).loggerContextCb)||void 0===t?void 0:t.call(e))}get isICEConnected(){return null!==this._pc&&("connected"===this.pc.iceConnectionState||"completed"===this.pc.iceConnectionState)}addIceCandidate(e){return $v(this,void 0,void 0,(function*(){if(this.pc.remoteDescription&&!this.restartingIce)return this.pc.addIceCandidate(e);this.pendingCandidates.push(e)}))}setRemoteDescription(e){var t;return $v(this,void 0,void 0,(function*(){let r;if("offer"===e.type){let{stereoMids:t,nackMids:r}=function(e){var t;const r=[],n=[],i=nx(null!==(t=e.sdp)&&void 0!==t?t:"");let o=0;return i.media.forEach((e=>{var t;"audio"===e.type&&(e.rtp.some((e=>"opus"===e.codec&&(o=e.payload,!0))),(null===(t=e.rtcpFb)||void 0===t?void 0:t.some((e=>e.payload===o&&"nack"===e.type)))&&n.push(e.mid),e.fmtp.some((t=>t.payload===o&&(t.config.includes("sprop-stereo=1")&&r.push(e.mid),!0))))})),{stereoMids:r,nackMids:n}}(e);this.remoteStereoMids=t,this.remoteNackMids=r}else if("answer"===e.type){const n=nx(null!==(t=e.sdp)&&void 0!==t?t:"");n.media.forEach((e=>{"audio"===e.type&&this.trackBitrates.some((t=>{if(!t.transceiver||e.mid!=t.transceiver.mid)return!1;let r=0;if(e.rtp.some((e=>e.codec.toUpperCase()===t.codec.toUpperCase()&&(r=e.payload,!0))),0===r)return!0;let n=!1;for(const i of e.fmtp)if(i.payload===r){i.config=i.config.split(";").filter((e=>!e.includes("maxaveragebitrate"))).join(";"),t.maxbr>0&&(i.config+=";maxaveragebitrate=".concat(1e3*t.maxbr)),n=!0;break}return n||t.maxbr>0&&e.fmtp.push({payload:r,config:"maxaveragebitrate=".concat(1e3*t.maxbr)}),!0}))})),r=rx(n)}if(yield this.setMungedSDP(e,r,!0),this.pendingCandidates.forEach((e=>{this.pc.addIceCandidate(e)})),this.pendingCandidates=[],this.restartingIce=!1,this.renegotiate)this.renegotiate=!1,yield this.createAndSendOffer();else if("answer"===e.type&&(this.emit(ox),e.sdp)){nx(e.sdp).media.forEach((e=>{"video"===e.type&&this.emit(ax,e.rtp)}))}}))}createAndSendOffer(e){var t;return $v(this,void 0,void 0,(function*(){if(void 0===this.onOffer)return;if((null==e?void 0:e.iceRestart)&&(this.log.debug("restarting ICE",this.logContext),this.restartingIce=!0),this._pc&&"have-local-offer"===this._pc.signalingState){const t=this._pc.remoteDescription;if(!(null==e?void 0:e.iceRestart)||!t)return void(this.renegotiate=!0);yield this._pc.setRemoteDescription(t)}else if(!this._pc||"closed"===this._pc.signalingState)return void this.log.warn("could not createOffer with closed peer connection",this.logContext);this.log.debug("starting to negotiate",this.logContext);const r=yield this.pc.createOffer(e),n=nx(null!==(t=r.sdp)&&void 0!==t?t:"");n.media.forEach((e=>{"audio"===e.type?cx(e,[],[]):"video"===e.type&&(!function(e){var t,r,n,i;const o=null===(r=null===(t=e.rtp[0])||void 0===t?void 0:t.codec)||void 0===r?void 0:r.toLowerCase();if(!aE(o))return;let a=0;const s=null===(n=e.ext)||void 0===n?void 0:n.some((e=>e.uri===rE||(e.value>a&&(a=e.value),!1)));s||null===(i=e.ext)||void 0===i||i.push({value:a+1,uri:rE})}(e),this.trackBitrates.some((t=>{if(!e.msid||!t.cid||!e.msid.includes(t.cid))return!1;let r=0;if(e.rtp.some((e=>e.codec.toUpperCase()===t.codec.toUpperCase()&&(r=e.payload,!0))),0===r)return!0;let n=!1;for(const i of e.fmtp)if(i.payload===r){i.config.includes("x-google-start-bitrate")||(i.config+=";x-google-start-bitrate=".concat(Math.round(.7*t.maxbr))),i.config.includes("x-google-max-bitrate")||(i.config+=";x-google-max-bitrate=".concat(t.maxbr)),n=!0;break}return n||e.fmtp.push({payload:r,config:"x-google-start-bitrate=".concat(Math.round(.7*t.maxbr),";x-google-max-bitrate=").concat(t.maxbr)}),!0})))})),yield this.setMungedSDP(r,rx(n)),this.onOffer(r)}))}createAndSetAnswer(){var e;return $v(this,void 0,void 0,(function*(){const t=yield this.pc.createAnswer(),r=nx(null!==(e=t.sdp)&&void 0!==e?e:"");return r.media.forEach((e=>{"audio"===e.type&&cx(e,this.remoteStereoMids,this.remoteNackMids)})),yield this.setMungedSDP(t,rx(r)),t}))}createDataChannel(e,t){return this.pc.createDataChannel(e,t)}addTransceiver(e,t){return this.pc.addTransceiver(e,t)}addTrack(e){if(!this._pc)throw new BA("PC closed, cannot add track");return this._pc.addTrack(e)}setTrackCodecBitrate(e){this.trackBitrates.push(e)}setConfiguration(e){var t;if(!this._pc)throw new BA("PC closed, cannot configure");return null===(t=this._pc)||void 0===t?void 0:t.setConfiguration(e)}canRemoveTrack(){var e;return!!(null===(e=this._pc)||void 0===e?void 0:e.removeTrack)}removeTrack(e){var t;return null===(t=this._pc)||void 0===t?void 0:t.removeTrack(e)}getConnectionState(){var e,t;return null!==(t=null===(e=this._pc)||void 0===e?void 0:e.connectionState)&&void 0!==t?t:"closed"}getICEConnectionState(){var e,t;return null!==(t=null===(e=this._pc)||void 0===e?void 0:e.iceConnectionState)&&void 0!==t?t:"closed"}getSignallingState(){var e,t;return null!==(t=null===(e=this._pc)||void 0===e?void 0:e.signalingState)&&void 0!==t?t:"closed"}getTransceivers(){var e,t;return null!==(t=null===(e=this._pc)||void 0===e?void 0:e.getTransceivers())&&void 0!==t?t:[]}getSenders(){var e,t;return null!==(t=null===(e=this._pc)||void 0===e?void 0:e.getSenders())&&void 0!==t?t:[]}getLocalDescription(){var e;return null===(e=this._pc)||void 0===e?void 0:e.localDescription}getRemoteDescription(){var e;return null===(e=this.pc)||void 0===e?void 0:e.remoteDescription}getStats(){return this.pc.getStats()}getConnectedAddress(){var e;return $v(this,void 0,void 0,(function*(){if(!this._pc)return;let t="";const r=new Map,n=new Map;if((yield this._pc.getStats()).forEach((e=>{switch(e.type){case"transport":t=e.selectedCandidatePairId;break;case"candidate-pair":""===t&&e.selected&&(t=e.id),r.set(e.id,e);break;case"remote-candidate":n.set(e.id,"".concat(e.address,":").concat(e.port))}})),""===t)return;const i=null===(e=r.get(t))||void 0===e?void 0:e.remoteCandidateId;return void 0!==i?n.get(i):void 0}))}setMungedSDP(e,t,r){return $v(this,void 0,void 0,(function*(){if(t){const n=e.sdp;e.sdp=t;try{return this.log.debug("setting munged ".concat(r?"remote":"local"," description"),this.logContext),void(r?yield this.pc.setRemoteDescription(e):yield this.pc.setLocalDescription(e))}catch($R){this.log.warn("not able to set ".concat(e.type,", falling back to unmodified sdp"),Object.assign(Object.assign({},this.logContext),{error:$R,sdp:t})),e.sdp=n}}try{r?yield this.pc.setRemoteDescription(e):yield this.pc.setLocalDescription(e)}catch($R){let n="unknown error";$R instanceof Error?n=$R.message:"string"==typeof $R&&(n=$R);const i={error:n,sdp:e.sdp};throw!r&&this.pc.remoteDescription&&(i.remoteSdp=this.pc.remoteDescription),this.log.error("unable to set ".concat(e.type),Object.assign(Object.assign({},this.logContext),{fields:i})),new NA(n)}}))}}function cx(e,t,r){let n=0;e.rtp.some((e=>"opus"===e.codec&&(n=e.payload,!0))),n>0&&(e.rtcpFb||(e.rtcpFb=[]),r.includes(e.mid)&&!e.rtcpFb.some((e=>e.payload===n&&"nack"===e.type))&&e.rtcpFb.push({payload:n,type:"nack"}),t.includes(e.mid)&&e.fmtp.some((e=>e.payload===n&&(e.config.includes("stereo=1")||(e.config+=";stereo=1"),!0))))}const ux="vp8",lx={audioBitrate:XA.music.maxBitrate,audioPreset:XA.music,dtx:!0,red:!0,forceStereo:!1,simulcast:!0,screenShareEncoding:rC.h1080fps15.encoding,stopMicTrackOnMute:!1,videoCodec:ux,backupCodec:!0},dx={autoGainControl:!0,echoCancellation:!0,noiseSuppression:!0},fx={resolution:eC.h720.resolution},hx={adaptiveStream:!1,dynacast:!1,stopLocalTrackOnUnpublish:!0,reconnectPolicy:new class{constructor(e){this._retryDelays=void 0!==e?[...e]:Zv}nextRetryDelayInMs(e){if(e.retryCount>=this._retryDelays.length)return null;const t=this._retryDelays[e.retryCount];return e.retryCount<=1?t:t+1e3*Math.random()}},disconnectOnPageLeave:!0,expWebAudioMix:!1},px={autoSubscribe:!0,maxRetries:1,peerConnectionTimeout:15e3,websocketTimeout:15e3};var gx;!function(e){e[e.NEW=0]="NEW",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.FAILED=3]="FAILED",e[e.CLOSING=4]="CLOSING",e[e.CLOSED=5]="CLOSED"}(gx||(gx={}));class mx{get needsPublisher(){return this.isPublisherConnectionRequired}get needsSubscriber(){return this.isSubscriberConnectionRequired}get currentState(){return this.state}constructor(e,t,r){var n;this.peerConnectionTimeout=px.peerConnectionTimeout,this.log=Vy,this.updateState=()=>{var e;const t=this.state,r=this.requiredTransports.map((e=>e.getConnectionState()));r.every((e=>"connected"===e))?this.state=gx.CONNECTED:r.some((e=>"failed"===e))?this.state=gx.FAILED:r.some((e=>"connecting"===e))?this.state=gx.CONNECTING:r.every((e=>"closed"===e))?this.state=gx.CLOSED:r.some((e=>"closed"===e))?this.state=gx.CLOSING:r.every((e=>"new"===e))&&(this.state=gx.NEW),t!==this.state&&(this.log.debug("pc state change: from ".concat(gx[t]," to ").concat(gx[this.state]),this.logContext),null===(e=this.onStateChange)||void 0===e||e.call(this,this.state,this.publisher.getConnectionState(),this.subscriber.getConnectionState()))},this.log=Ky(null!==(n=r.loggerName)&&void 0!==n?n:zy.PCManager),this.loggerOptions=r,this.isPublisherConnectionRequired=!t,this.isSubscriberConnectionRequired=t;this.publisher=new sx(e,{optional:[{googDscp:!0}]},r),this.subscriber=new sx(e,void 0,r),this.publisher.onConnectionStateChange=this.updateState,this.subscriber.onConnectionStateChange=this.updateState,this.publisher.onIceConnectionStateChange=this.updateState,this.subscriber.onIceConnectionStateChange=this.updateState,this.publisher.onSignalingStatechange=this.updateState,this.subscriber.onSignalingStatechange=this.updateState,this.publisher.onIceCandidate=e=>{var t;null===(t=this.onIceCandidate)||void 0===t||t.call(this,e,nC.PUBLISHER)},this.subscriber.onIceCandidate=e=>{var t;null===(t=this.onIceCandidate)||void 0===t||t.call(this,e,nC.SUBSCRIBER)},this.subscriber.onDataChannel=e=>{var t;null===(t=this.onDataChannel)||void 0===t||t.call(this,e)},this.subscriber.onTrack=e=>{var t;null===(t=this.onTrack)||void 0===t||t.call(this,e)},this.publisher.onOffer=e=>{var t;null===(t=this.onPublisherOffer)||void 0===t||t.call(this,e)},this.state=gx.NEW,this.connectionLock=new ME}get logContext(){var e,t;return Object.assign({},null===(t=(e=this.loggerOptions).loggerContextCb)||void 0===t?void 0:t.call(e))}requirePublisher(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isPublisherConnectionRequired=e,this.updateState()}requireSubscriber(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isSubscriberConnectionRequired=e,this.updateState()}createAndSendPublisherOffer(e){return this.publisher.createAndSendOffer(e)}setPublisherAnswer(e){return this.publisher.setRemoteDescription(e)}removeTrack(e){return this.publisher.removeTrack(e)}close(){return $v(this,void 0,void 0,(function*(){if(this.publisher&&"closed"!==this.publisher.getSignallingState()){const e=this.publisher;for(const t of e.getSenders())try{e.canRemoveTrack()&&e.removeTrack(t)}catch($R){this.log.warn("could not removeTrack",Object.assign(Object.assign({},this.logContext),{error:$R}))}}yield Promise.all([this.publisher.close(),this.subscriber.close()]),this.updateState()}))}triggerIceRestart(){return $v(this,void 0,void 0,(function*(){this.subscriber.restartingIce=!0,this.needsPublisher&&(yield this.createAndSendPublisherOffer({iceRestart:!0}))}))}addIceCandidate(e,t){return $v(this,void 0,void 0,(function*(){t===nC.PUBLISHER?yield this.publisher.addIceCandidate(e):yield this.subscriber.addIceCandidate(e)}))}createSubscriberAnswerFromOffer(e){return $v(this,void 0,void 0,(function*(){this.log.debug("received server offer",Object.assign(Object.assign({},this.logContext),{RTCSdpType:e.type,sdp:e.sdp,signalingState:this.subscriber.getSignallingState().toString()})),yield this.subscriber.setRemoteDescription(e);return yield this.subscriber.createAndSetAnswer()}))}updateConfiguration(e,t){this.publisher.setConfiguration(e),this.subscriber.setConfiguration(e),t&&this.triggerIceRestart()}ensurePCTransportConnection(e,t){var r;return $v(this,void 0,void 0,(function*(){const n=yield this.connectionLock.lock();try{this.isPublisherConnectionRequired&&"connected"!==this.publisher.getConnectionState()&&"connecting"!==this.publisher.getConnectionState()&&(this.log.debug("negotiation required, start negotiating",this.logContext),this.publisher.negotiate()),yield Promise.all(null===(r=this.requiredTransports)||void 0===r?void 0:r.map((r=>this.ensureTransportConnected(r,e,t))))}finally{n()}}))}negotiate(e){return $v(this,void 0,void 0,(function*(){return new Promise(((t,r)=>$v(this,void 0,void 0,(function*(){const n=setTimeout((()=>{r("negotiation timed out")}),this.peerConnectionTimeout);e.signal.addEventListener("abort",(()=>{clearTimeout(n),r("negotiation aborted")})),this.publisher.once(ix,(()=>{e.signal.aborted||this.publisher.once(ox,(()=>{clearTimeout(n),t()}))})),yield this.publisher.negotiate((e=>{clearTimeout(n),r(e)}))}))))}))}addPublisherTransceiver(e,t){return this.publisher.addTransceiver(e,t)}addPublisherTrack(e){return this.publisher.addTrack(e)}createPublisherDataChannel(e,t){return this.publisher.createDataChannel(e,t)}getConnectedAddress(e){return e===nC.PUBLISHER||e===nC.SUBSCRIBER?this.publisher.getConnectedAddress():this.requiredTransports[0].getConnectedAddress()}get requiredTransports(){const e=[];return this.isPublisherConnectionRequired&&e.push(this.publisher),this.isSubscriberConnectionRequired&&e.push(this.subscriber),e}ensureTransportConnected(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.peerConnectionTimeout;return $v(this,void 0,void 0,(function*(){if("connected"!==e.getConnectionState())return new Promise(((e,n)=>$v(this,void 0,void 0,(function*(){const i=()=>{this.log.warn("abort transport connection",this.logContext),WA.clearTimeout(o),n(new PA("room connection has been cancelled",3))};(null==t?void 0:t.signal.aborted)&&i(),null==t||t.signal.addEventListener("abort",i);const o=WA.setTimeout((()=>{null==t||t.signal.removeEventListener("abort",i),n(new PA("could not establish pc connection"))}),r);for(;this.state!==gx.CONNECTED;)if(yield nE(50),null==t?void 0:t.signal.aborted)return void n(new PA("room connection has been cancelled",3));WA.clearTimeout(o),null==t||t.signal.removeEventListener("abort",i),e()}))))}))}}const yx="_lossy",bx="_reliable",vx="leave-reconnect";var wx;!function(e){e[e.New=0]="New",e[e.Connected=1]="Connected",e[e.Disconnected=2]="Disconnected",e[e.Reconnecting=3]="Reconnecting",e[e.Closed=4]="Closed"}(wx||(wx={}));class Ax extends yw.EventEmitter{get isClosed(){return this._isClosed}constructor(e){var t;super(),this.options=e,this.rtcConfig={},this.peerConnectionTimeout=px.peerConnectionTimeout,this.fullReconnectOnNext=!1,this.subscriberPrimary=!1,this.pcState=wx.New,this._isClosed=!0,this.pendingTrackResolvers={},this.reconnectAttempts=0,this.reconnectStart=0,this.attemptingReconnect=!1,this.joinAttempts=0,this.maxJoinAttempts=1,this.shouldFailNext=!1,this.log=Vy,this.handleDataChannel=e=>{let{channel:t}=e;return $v(this,void 0,void 0,(function*(){if(t){if(t.label===bx)this.reliableDCSub=t;else{if(t.label!==yx)return;this.lossyDCSub=t}this.log.debug("on data channel ".concat(t.id,", ").concat(t.label),this.logContext),t.onmessage=this.handleDataMessage}}))},this.handleDataMessage=e=>$v(this,void 0,void 0,(function*(){var t,r;const n=yield this.dataProcessLock.lock();try{let n;if(e.data instanceof ArrayBuffer)n=e.data;else{if(!(e.data instanceof Blob))return void this.log.error("unsupported data type",Object.assign(Object.assign({},this.logContext),{data:e.data}));n=yield e.data.arrayBuffer()}const i=Rv.fromBinary(new Uint8Array(n));"speaker"===(null===(t=i.value)||void 0===t?void 0:t.case)?this.emit(UA.ActiveSpeakersUpdate,i.value.value.speakers):"user"===(null===(r=i.value)||void 0===r?void 0:r.case)&&this.emit(UA.DataPacketReceived,i.value.value,i.kind)}finally{n()}})),this.handleDataError=e=>{const t=0===e.currentTarget.maxRetransmits?"lossy":"reliable";if(e instanceof ErrorEvent&&e.error){const{error:r}=e.error;this.log.error("DataChannel error on ".concat(t,": ").concat(e.message),Object.assign(Object.assign({},this.logContext),{error:r}))}else this.log.error("Unknown DataChannel error on ".concat(t),Object.assign(Object.assign({},this.logContext),{event:e}))},this.handleBufferedAmountLow=e=>{const t=0===e.currentTarget.maxRetransmits?Mv.LOSSY:Mv.RELIABLE;this.updateAndEmitDCBufferStatus(t)},this.handleDisconnect=(e,t)=>{if(this._isClosed)return;this.log.warn("".concat(e," disconnected"),this.logContext),0===this.reconnectAttempts&&(this.reconnectStart=Date.now());const r=e=>{this.log.warn("could not recover connection after ".concat(this.reconnectAttempts," attempts, ").concat(e,"ms. giving up"),this.logContext),this.emit(UA.Disconnected),this.close()},n=Date.now()-this.reconnectStart;let i=this.getNextRetryDelay({elapsedMs:n,retryCount:this.reconnectAttempts});null!==i?(e===vx&&(i=0),this.log.debug("reconnecting in ".concat(i,"ms"),this.logContext),this.clearReconnectTimeout(),this.token&&this.regionUrlProvider&&this.regionUrlProvider.updateToken(this.token),this.reconnectTimeout=WA.setTimeout((()=>this.attemptReconnect(t)),i)):r(n)},this.waitForRestarted=()=>new Promise(((e,t)=>{this.pcState===wx.Connected&&e();const r=()=>{this.off(UA.Disconnected,n),e()},n=()=>{this.off(UA.Restarted,r),t()};this.once(UA.Restarted,r),this.once(UA.Disconnected,n)})),this.updateAndEmitDCBufferStatus=e=>{const t=this.isBufferStatusLow(e);void 0!==t&&t!==this.dcBufferStatus.get(e)&&(this.dcBufferStatus.set(e,t),this.emit(UA.DCBufferStatusChanged,t,e))},this.isBufferStatusLow=e=>{const t=this.dataChannelForKind(e);if(t)return t.bufferedAmount<=t.bufferedAmountLowThreshold},this.handleBrowserOnLine=()=>{this.client.currentState===UE.RECONNECTING&&(this.clearReconnectTimeout(),this.attemptReconnect(vv.RR_SIGNAL_DISCONNECTED))},this.log=Ky(null!==(t=e.loggerName)&&void 0!==t?t:zy.Engine),this.loggerOptions={loggerName:e.loggerName,loggerContextCb:()=>this.logContext},this.client=new zE(void 0,this.loggerOptions),this.client.signalLatency=this.options.expSignalLatency,this.reconnectPolicy=this.options.reconnectPolicy,this.registerOnLineListener(),this.closingLock=new ME,this.dataProcessLock=new ME,this.dcBufferStatus=new Map([[Mv.LOSSY,!0],[Mv.RELIABLE,!0]]),this.client.onParticipantUpdate=e=>this.emit(UA.ParticipantUpdate,e),this.client.onConnectionQuality=e=>this.emit(UA.ConnectionQualityUpdate,e),this.client.onRoomUpdate=e=>this.emit(UA.RoomUpdate,e),this.client.onSubscriptionError=e=>this.emit(UA.SubscriptionError,e),this.client.onSubscriptionPermissionUpdate=e=>this.emit(UA.SubscriptionPermissionUpdate,e),this.client.onSpeakersChanged=e=>this.emit(UA.SpeakersChanged,e),this.client.onStreamStateUpdate=e=>this.emit(UA.StreamStateChanged,e)}get logContext(){var e,t,r,n,i,o;return{room:null===(t=null===(e=this.latestJoinResponse)||void 0===e?void 0:e.room)||void 0===t?void 0:t.name,roomSid:null===(n=null===(r=this.latestJoinResponse)||void 0===r?void 0:r.room)||void 0===n?void 0:n.sid,identity:null===(o=null===(i=this.latestJoinResponse)||void 0===i?void 0:i.participant)||void 0===o?void 0:o.identity}}join(e,t,r,n){return $v(this,void 0,void 0,(function*(){this.url=e,this.token=t,this.signalOpts=r,this.maxJoinAttempts=r.maxRetries;try{this.joinAttempts+=1,this.setupSignalClientCallbacks();const i=yield this.client.join(e,t,r,n);return this._isClosed=!1,this.latestJoinResponse=i,this.subscriberPrimary=i.subscriberPrimary,this.pcManager||(yield this.configure(i)),this.subscriberPrimary||this.negotiate(),this.clientConfiguration=i.clientConfiguration,i}catch($R){if($R instanceof PA&&1===$R.reason&&(this.log.warn("Couldn't connect to server, attempt ".concat(this.joinAttempts," of ").concat(this.maxJoinAttempts),this.logContext),this.joinAttempts{e&&(e.close(),e.onbufferedamountlow=null,e.onclose=null,e.onclosing=null,e.onerror=null,e.onmessage=null,e.onopen=null)};t(this.lossyDC),t(this.lossyDCSub),t(this.reliableDC),t(this.reliableDCSub),this.lossyDC=void 0,this.lossyDCSub=void 0,this.reliableDC=void 0,this.reliableDCSub=void 0}))}cleanupClient(){return $v(this,void 0,void 0,(function*(){yield this.client.close(),this.client.resetCallbacks()}))}addTrack(e){if(this.pendingTrackResolvers[e.cid])throw new DA("a track with the same ID has already been published");return new Promise(((t,r)=>{const n=setTimeout((()=>{delete this.pendingTrackResolvers[e.cid],r(new PA("publication of local track timed out, no response from server"))}),1e4);this.pendingTrackResolvers[e.cid]={resolve:e=>{clearTimeout(n),t(e)},reject:()=>{clearTimeout(n),r(new Error("Cancelled publication by calling unpublish"))}},this.client.sendAddTrack(e)}))}removeTrack(e){if(e.track&&this.pendingTrackResolvers[e.track.id]){const{reject:t}=this.pendingTrackResolvers[e.track.id];t&&t(),delete this.pendingTrackResolvers[e.track.id]}try{return this.pcManager.removeTrack(e),!0}catch($R){this.log.warn("failed to remove track",Object.assign(Object.assign({},this.logContext),{error:$R}))}return!1}updateMuteStatus(e,t){this.client.sendMuteTrack(e,t)}get dataSubscriberReadyState(){var e;return null===(e=this.reliableDCSub)||void 0===e?void 0:e.readyState}getConnectedServerAddress(){var e;return $v(this,void 0,void 0,(function*(){return null===(e=this.pcManager)||void 0===e?void 0:e.getConnectedAddress()}))}setRegionUrlProvider(e){this.regionUrlProvider=e}configure(e){var t;return $v(this,void 0,void 0,(function*(){if(this.pcManager&&this.pcManager.currentState!==gx.NEW)return;this.participantSid=null===(t=e.participant)||void 0===t?void 0:t.sid;const r=this.makeRTCConfiguration(e);this.pcManager=new mx(r,e.subscriberPrimary,this.loggerOptions),this.emit(UA.TransportsCreated,this.pcManager.publisher,this.pcManager.subscriber),this.pcManager.onIceCandidate=(e,t)=>{this.client.sendIceCandidate(e,t)},this.pcManager.onPublisherOffer=e=>{this.client.sendOffer(e)},this.pcManager.onDataChannel=this.handleDataChannel,this.pcManager.onStateChange=(t,r,n)=>$v(this,void 0,void 0,(function*(){if(this.log.debug("primary PC state changed ".concat(t),this.logContext),t===gx.CONNECTED){const t=this.pcState===wx.New;this.pcState=wx.Connected,t&&this.emit(UA.Connected,e)}else t===gx.FAILED&&this.pcState===wx.Connected&&(this.pcState=wx.Disconnected,this.handleDisconnect("peerconnection failed","failed"===n?vv.RR_SUBSCRIBER_FAILED:vv.RR_PUBLISHER_FAILED))})),this.pcManager.onTrack=e=>{this.emit(UA.MediaTrackAdded,e.track,e.streams[0],e.receiver)},this.createDataChannels()}))}setupSignalClientCallbacks(){this.client.onAnswer=e=>$v(this,void 0,void 0,(function*(){this.pcManager&&(this.log.debug("received server answer",Object.assign(Object.assign({},this.logContext),{RTCSdpType:e.type})),yield this.pcManager.setPublisherAnswer(e))})),this.client.onTrickle=(e,t)=>{this.pcManager&&(this.log.trace("got ICE candidate from peer",Object.assign(Object.assign({},this.logContext),{candidate:e,target:t})),this.pcManager.addIceCandidate(e,t))},this.client.onOffer=e=>$v(this,void 0,void 0,(function*(){if(!this.pcManager)return;const t=yield this.pcManager.createSubscriberAnswerFromOffer(e);this.client.sendAnswer(t)})),this.client.onLocalTrackPublished=e=>{var t;if(this.log.debug("received trackPublishedResponse",Object.assign(Object.assign({},this.logContext),{cid:e.cid,track:null===(t=e.track)||void 0===t?void 0:t.sid})),!this.pendingTrackResolvers[e.cid])return void this.log.error("missing track resolver for ".concat(e.cid),Object.assign(Object.assign({},this.logContext),{cid:e.cid}));const{resolve:r}=this.pendingTrackResolvers[e.cid];delete this.pendingTrackResolvers[e.cid],r(e.track)},this.client.onLocalTrackUnpublished=e=>{this.emit(UA.LocalTrackUnpublished,e)},this.client.onTokenRefresh=e=>{this.token=e},this.client.onRemoteMuteChanged=(e,t)=>{this.emit(UA.RemoteMute,e,t)},this.client.onSubscribedQualityUpdate=e=>{this.emit(UA.SubscribedQualityUpdate,e)},this.client.onClose=()=>{this.handleDisconnect("signal",vv.RR_SIGNAL_DISCONNECTED)},this.client.onLeave=e=>{(null==e?void 0:e.canReconnect)?(this.fullReconnectOnNext=!0,this.handleDisconnect(vx)):(this.emit(UA.Disconnected,null==e?void 0:e.reason),this.close()),this.log.debug("client leave request",Object.assign(Object.assign({},this.logContext),{reason:null==e?void 0:e.reason}))}}makeRTCConfiguration(e){var t;const r=Object.assign({},this.rtcConfig);if((null===(t=this.signalOpts)||void 0===t?void 0:t.e2eeEnabled)&&(this.log.debug("E2EE - setting up transports with insertable streams",this.logContext),r.encodedInsertableStreams=!0),e.iceServers&&!r.iceServers){const t=[];e.iceServers.forEach((e=>{const r={urls:e.urls};e.username&&(r.username=e.username),e.credential&&(r.credential=e.credential),t.push(r)})),r.iceServers=t}return e.clientConfiguration&&e.clientConfiguration.forceRelay===yv.ENABLED&&(r.iceTransportPolicy="relay"),r.sdpSemantics="unified-plan",r.continualGatheringPolicy="gather_continually",r}createDataChannels(){this.pcManager&&(this.lossyDC&&(this.lossyDC.onmessage=null,this.lossyDC.onerror=null),this.reliableDC&&(this.reliableDC.onmessage=null,this.reliableDC.onerror=null),this.lossyDC=this.pcManager.createPublisherDataChannel(yx,{ordered:!0,maxRetransmits:0}),this.reliableDC=this.pcManager.createPublisherDataChannel(bx,{ordered:!0}),this.lossyDC.onmessage=this.handleDataMessage,this.reliableDC.onmessage=this.handleDataMessage,this.lossyDC.onerror=this.handleDataError,this.reliableDC.onerror=this.handleDataError,this.lossyDC.bufferedAmountLowThreshold=65535,this.reliableDC.bufferedAmountLowThreshold=65535,this.lossyDC.onbufferedamountlow=this.handleBufferedAmountLow,this.reliableDC.onbufferedamountlow=this.handleBufferedAmountLow)}setPreferredCodec(e,t,r){if(!("getCapabilities"in RTCRtpReceiver))return;const n=RTCRtpReceiver.getCapabilities(t);if(!n)return;this.log.debug("get receiver capabilities",Object.assign(Object.assign({},this.logContext),{cap:n}));const i=[],o=[],a=[];n.codecs.forEach((e=>{const t=e.mimeType.toLowerCase();if("audio/opus"===t)return void i.push(e);t==="video/".concat(r)?"h264"!==r||e.sdpFmtpLine&&e.sdpFmtpLine.includes("profile-level-id=42e01f")?i.push(e):o.push(e):a.push(e)})),function(e){if(!hE())return!1;if(!("setCodecPreferences"in e))return!1;const t=GA();if(!(null==t?void 0:t.name)||!t.version)return!1;const r=cE[t.name];return!!r&&vE(t.version,r)>=0}(e)&&e.setCodecPreferences(i.concat(o,a))}createSender(e,t,r){return $v(this,void 0,void 0,(function*(){if(iE()){return yield this.createTransceiverRTCRtpSender(e,t,r)}if(oE()){this.log.warn("using add-track fallback",this.logContext);return yield this.createRTCRtpSender(e.mediaStreamTrack)}throw new BA("Required webRTC APIs not supported on this device")}))}createSimulcastSender(e,t,r,n){return $v(this,void 0,void 0,(function*(){if(iE())return this.createSimulcastTransceiverSender(e,t,r,n);if(oE())return this.log.debug("using add-track fallback",this.logContext),this.createRTCRtpSender(e.mediaStreamTrack);throw new BA("Cannot stream on this device")}))}createTransceiverRTCRtpSender(e,t,r){return $v(this,void 0,void 0,(function*(){if(!this.pcManager)throw new BA("publisher is closed");const n=[];e.mediaStream&&n.push(e.mediaStream);const i={direction:"sendonly",streams:n};r&&(i.sendEncodings=r);const o=yield this.pcManager.addPublisherTransceiver(e.mediaStreamTrack,i);return e.kind===GC.Kind.Video&&t.videoCodec&&(this.setPreferredCodec(o,e.kind,t.videoCodec),e.codec=t.videoCodec),o.sender}))}createSimulcastTransceiverSender(e,t,r,n){return $v(this,void 0,void 0,(function*(){if(!this.pcManager)throw new BA("publisher is closed");const i={direction:"sendonly"};n&&(i.sendEncodings=n);const o=yield this.pcManager.addPublisherTransceiver(t.mediaStreamTrack,i);if(r.videoCodec)return this.setPreferredCodec(o,e.kind,r.videoCodec),e.setSimulcastTrackSender(r.videoCodec,o.sender),o.sender}))}createRTCRtpSender(e){return $v(this,void 0,void 0,(function*(){if(!this.pcManager)throw new BA("publisher is closed");return this.pcManager.addPublisherTrack(e)}))}attemptReconnect(e){var t,r,n;return $v(this,void 0,void 0,(function*(){if(!this._isClosed)if(this.attemptingReconnect)Vy.warn("already attempting reconnect, returning early",this.logContext);else{(null===(t=this.clientConfiguration)||void 0===t?void 0:t.resumeConnection)!==yv.DISABLED&&(null!==(n=null===(r=this.pcManager)||void 0===r?void 0:r.currentState)&&void 0!==n?n:gx.NEW)!==gx.NEW||(this.fullReconnectOnNext=!0);try{this.attemptingReconnect=!0,this.fullReconnectOnNext?yield this.restartConnection():yield this.resumeConnection(e),this.clearPendingReconnect(),this.fullReconnectOnNext=!1}catch($R){this.reconnectAttempts+=1;let t=!0;$R instanceof BA?(this.log.debug("received unrecoverable error",Object.assign(Object.assign({},this.logContext),{error:$R})),t=!1):$R instanceof Cx||(this.fullReconnectOnNext=!0),t?this.handleDisconnect("reconnect",vv.RR_UNKNOWN):(this.log.info("could not recover connection after ".concat(this.reconnectAttempts," attempts, ").concat(Date.now()-this.reconnectStart,"ms. giving up"),this.logContext),this.emit(UA.Disconnected),yield this.close())}finally{this.attemptingReconnect=!1}}}))}getNextRetryDelay(e){try{return this.reconnectPolicy.nextRetryDelayInMs(e)}catch($R){this.log.warn("encountered error in reconnect policy",Object.assign(Object.assign({},this.logContext),{error:$R}))}return null}restartConnection(e){var t,r,n;return $v(this,void 0,void 0,(function*(){try{if(!this.url||!this.token)throw new BA("could not reconnect, url or token not saved");let r;this.log.info("reconnecting, attempt: ".concat(this.reconnectAttempts),this.logContext),this.emit(UA.Restarting),this.client.isDisconnected||(yield this.client.sendLeave()),yield this.cleanupPeerConnections(),yield this.cleanupClient();try{if(!this.signalOpts)throw this.log.warn("attempted connection restart, without signal options present",this.logContext),new Cx;r=yield this.join(null!=e?e:this.url,this.token,this.signalOpts)}catch($R){if($R instanceof PA&&0===$R.reason)throw new BA("could not reconnect, token might be expired");throw new Cx}if(this.shouldFailNext)throw this.shouldFailNext=!1,new Error("simulated failure");if(this.client.setReconnected(),this.emit(UA.SignalRestarted,r),yield this.waitForPCReconnected(),this.client.currentState!==UE.CONNECTED)throw new Cx("Signal connection got severed during reconnect");null===(t=this.regionUrlProvider)||void 0===t||t.resetAttempts(),this.emit(UA.Restarted)}catch(ys){const t=yield null===(r=this.regionUrlProvider)||void 0===r?void 0:r.getNextBestRegionUrl();if(t)return void(yield this.restartConnection(t));throw null===(n=this.regionUrlProvider)||void 0===n||n.resetAttempts(),ys}}))}resumeConnection(e){var t;return $v(this,void 0,void 0,(function*(){if(!this.url||!this.token)throw new BA("could not reconnect, url or token not saved");if(!this.pcManager)throw new BA("publisher and subscriber connections unset");this.log.info("resuming signal connection, attempt ".concat(this.reconnectAttempts),this.logContext),this.emit(UA.Resuming);try{this.setupSignalClientCallbacks();const t=yield this.client.reconnect(this.url,this.token,this.participantSid,e);if(t){const e=this.makeRTCConfiguration(t);this.pcManager.updateConfiguration(e)}}catch(ys){let t="";if(ys instanceof Error&&(t=ys.message,this.log.error(ys.message,Object.assign(Object.assign({},this.logContext),{error:ys}))),ys instanceof PA&&0===ys.reason)throw new BA("could not reconnect, token might be expired");if(ys instanceof PA&&4===ys.reason)throw ys;throw new Cx(t)}if(this.emit(UA.SignalResumed),this.shouldFailNext)throw this.shouldFailNext=!1,new Error("simulated failure");if(yield this.pcManager.triggerIceRestart(),yield this.waitForPCReconnected(),this.client.currentState!==UE.CONNECTED)throw new Cx("Signal connection got severed during reconnect");this.client.setReconnected(),"open"===(null===(t=this.reliableDC)||void 0===t?void 0:t.readyState)&&null===this.reliableDC.id&&this.createDataChannels(),this.emit(UA.Resumed)}))}waitForPCInitialConnection(e,t){return $v(this,void 0,void 0,(function*(){if(!this.pcManager)throw new BA("PC manager is closed");yield this.pcManager.ensurePCTransportConnection(t,e)}))}waitForPCReconnected(){return $v(this,void 0,void 0,(function*(){this.pcState=wx.Reconnecting,this.log.debug("waiting for peer connection to reconnect",this.logContext);try{if(yield nE(2e3),!this.pcManager)throw new BA("PC manager is closed");yield this.pcManager.ensurePCTransportConnection(void 0,this.peerConnectionTimeout),this.pcState=wx.Connected}catch($R){throw this.pcState=wx.Disconnected,new PA("could not establish PC connection, ".concat($R.message))}}))}sendDataPacket(e,t){return $v(this,void 0,void 0,(function*(){const r=e.toBinary();yield this.ensurePublisherConnected(t);const n=this.dataChannelForKind(t);n&&n.send(r),this.updateAndEmitDCBufferStatus(t)}))}ensureDataTransportConnected(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.subscriberPrimary;var r;return $v(this,void 0,void 0,(function*(){if(!this.pcManager)throw new BA("PC manager is closed");const n=t?this.pcManager.subscriber:this.pcManager.publisher,i=t?"Subscriber":"Publisher";if(!n)throw new PA("".concat(i," connection not set"));t||this.pcManager.publisher.isICEConnected||"checking"===this.pcManager.publisher.getICEConnectionState()||this.negotiate();const o=this.dataChannelForKind(e,t);if("open"===(null==o?void 0:o.readyState))return;const a=(new Date).getTime()+this.peerConnectionTimeout;for(;(new Date).getTime()$v(this,void 0,void 0,(function*(){if(!this.pcManager)return void t(new NA("PC manager is closed"));this.pcManager.requirePublisher();const r=new AbortController,n=()=>{r.abort(),this.log.debug("engine disconnected while negotiation was ongoing",this.logContext),e()};this.isClosed&&t("cannot negotiate on closed engine"),this.on(UA.Closing,n),this.pcManager.publisher.once(ax,(e=>{const t=new Map;e.forEach((e=>{const r=e.codec.toLowerCase();var n;n=r,ZA.includes(n)&&t.set(e.payload,r)})),this.emit(UA.RTPVideoMapUpdate,t)}));try{yield this.pcManager.negotiate(r),e()}catch($R){$R instanceof NA&&(this.fullReconnectOnNext=!0),this.handleDisconnect("negotiation",vv.RR_UNKNOWN),t($R)}finally{this.off(UA.Closing,n)}}))))}))}dataChannelForKind(e,t){if(t){if(e===Mv.LOSSY)return this.lossyDCSub;if(e===Mv.RELIABLE)return this.reliableDCSub}else{if(e===Mv.LOSSY)return this.lossyDC;if(e===Mv.RELIABLE)return this.reliableDC}}sendSyncState(e,t){var r,n;if(!this.pcManager)return void this.log.warn("sync state cannot be sent without peer connection setup",this.logContext);const i=this.pcManager.subscriber.getLocalDescription(),o=this.pcManager.subscriber.getRemoteDescription(),a=null===(n=null===(r=this.signalOpts)||void 0===r?void 0:r.autoSubscribe)||void 0===n||n,s=new Array;e.forEach((e=>{e.isDesired!==a&&s.push(e.trackSid)})),this.client.sendSyncState(new NC({answer:i?VE({sdp:i.sdp,type:i.type}):void 0,offer:o?VE({sdp:o.sdp,type:o.type}):void 0,subscription:new bC({trackSids:s,subscribe:!a,participantTracks:[]}),publishTracks:eE(t),dataChannels:this.dataChannelsInfo()}))}failNext(){this.shouldFailNext=!0}dataChannelsInfo(){const e=[],t=(t,r)=>{void 0!==(null==t?void 0:t.id)&&null!==t.id&&e.push(new RC({label:t.label,id:t.id,target:r}))};return t(this.dataChannelForKind(Mv.LOSSY),nC.PUBLISHER),t(this.dataChannelForKind(Mv.RELIABLE),nC.PUBLISHER),t(this.dataChannelForKind(Mv.LOSSY,!0),nC.SUBSCRIBER),t(this.dataChannelForKind(Mv.RELIABLE,!0),nC.SUBSCRIBER),e}clearReconnectTimeout(){this.reconnectTimeout&&WA.clearTimeout(this.reconnectTimeout)}clearPendingReconnect(){this.clearReconnectTimeout(),this.reconnectAttempts=0}registerOnLineListener(){hE()&&window.addEventListener("online",this.handleBrowserOnLine)}deregisterOnLineListener(){hE()&&window.removeEventListener("online",this.handleBrowserOnLine)}}class Cx extends Error{}class Ex{constructor(e,t){this.lastUpdateAt=0,this.settingsCacheTime=3e3,this.attemptedRegions=[],this.serverUrl=new URL(e),this.token=t}updateToken(e){this.token=e}isCloud(){return gE(this.serverUrl)}getServerUrl(){return this.serverUrl}getNextBestRegionUrl(e){return $v(this,void 0,void 0,(function*(){if(!this.isCloud())throw Error("region availability is only supported for LiveKit Cloud domains");(!this.regionSettings||Date.now()-this.lastUpdateAt>this.settingsCacheTime)&&(this.regionSettings=yield this.fetchRegionSettings(e));const t=this.regionSettings.regions.filter((e=>!this.attemptedRegions.find((t=>t.url===e.url))));if(t.length>0){const e=t[0];return this.attemptedRegions.push(e),Vy.debug("next region: ".concat(e.region)),e.url}return null}))}resetAttempts(){this.attemptedRegions=[]}fetchRegionSettings(e){return $v(this,void 0,void 0,(function*(){const t=yield fetch("".concat((r=this.serverUrl,"".concat(r.protocol.replace("ws","http"),"//").concat(r.host,"/settings")),"/regions"),{headers:{authorization:"Bearer ".concat(this.token)},signal:e});var r;if(t.ok){const e=yield t.json();return this.lastUpdateAt=Date.now(),e}throw new PA("Could not fetch region settings: ".concat(t.statusText),401===t.status?0:void 0,t.status)}))}}const xx=2e3;function Sx(e,t){if(!t)return 0;let r,n;return"bytesReceived"in e?(r=e.bytesReceived,n=t.bytesReceived):"bytesSent"in e&&(r=e.bytesSent,n=t.bytesSent),void 0===r||void 0===n||void 0===e.timestamp||void 0===t.timestamp?0:8*(r-n)*1e3/(e.timestamp-t.timestamp)}class Ix extends BE{constructor(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;super(e,GC.Kind.Audio,t,r,i),this.stopOnMute=!1,this.monitorSender=()=>$v(this,void 0,void 0,(function*(){if(!this.sender)return void(this._currentBitrate=0);let e;try{e=yield this.getSenderStats()}catch($R){return void this.log.error("could not get audio sender stats",Object.assign(Object.assign({},this.logContext),{error:$R}))}e&&this.prevStats&&(this._currentBitrate=Sx(e,this.prevStats)),this.prevStats=e})),this.audioContext=n,this.checkForSilence()}setDeviceId(e){return $v(this,void 0,void 0,(function*(){return this._constraints.deviceId===e||(this._constraints.deviceId=e,this.isMuted||(yield this.restartTrack()),this.isMuted||PE(e)===this.mediaStreamTrack.getSettings().deviceId)}))}mute(){const e=Object.create(null,{mute:{get:()=>super.mute}});return $v(this,void 0,void 0,(function*(){const t=yield this.muteLock.lock();try{return this.source===GC.Source.Microphone&&this.stopOnMute&&!this.isUserProvided&&(this.log.debug("stopping mic track",this.logContext),this._mediaStreamTrack.stop()),yield e.mute.call(this),this}finally{t()}}))}unmute(){const e=Object.create(null,{unmute:{get:()=>super.unmute}});return $v(this,void 0,void 0,(function*(){const t=yield this.muteLock.lock();try{const t=this._constraints.deviceId&&this._mediaStreamTrack.getSettings().deviceId!==PE(this._constraints.deviceId);return this.source!==GC.Source.Microphone||!this.stopOnMute&&"ended"!==this._mediaStreamTrack.readyState&&!t||this.isUserProvided||(this.log.debug("reacquiring mic track",this.logContext),yield this.restartTrack()),yield e.unmute.call(this),this}finally{t()}}))}restartTrack(e){return $v(this,void 0,void 0,(function*(){let t;if(e){const r=YC({audio:e});"boolean"!=typeof r.audio&&(t=r.audio)}yield this.restart(t)}))}restart(e){const t=Object.create(null,{restart:{get:()=>super.restart}});return $v(this,void 0,void 0,(function*(){const r=yield t.restart.call(this,e);return this.checkForSilence(),r}))}startMonitor(){hE()&&(this.monitorInterval||(this.monitorInterval=setInterval((()=>{this.monitorSender()}),xx)))}setProcessor(e){var t;return $v(this,void 0,void 0,(function*(){const r=yield this.processorLock.lock();try{if(!this.audioContext)throw Error("Audio context needs to be set on LocalAudioTrack in order to enable processors");if(this.processor&&(yield this.stopProcessor()),"unknown"===this.kind)throw TypeError("cannot set processor on track of unknown kind");const r={kind:this.kind,track:this._mediaStreamTrack,audioContext:this.audioContext};this.log.debug("setting up audio processor ".concat(e.name),this.logContext),yield e.init(r),this.processor=e,this.processor.processedTrack&&(yield null===(t=this.sender)||void 0===t?void 0:t.replaceTrack(this.processor.processedTrack))}finally{r()}}))}setAudioContext(e){this.audioContext=e}getSenderStats(){var e;return $v(this,void 0,void 0,(function*(){if(!(null===(e=this.sender)||void 0===e?void 0:e.getStats))return;let t;return(yield this.sender.getStats()).forEach((e=>{"outbound-rtp"===e.type&&(t={type:"audio",streamId:e.id,packetsSent:e.packetsSent,packetsLost:e.packetsLost,bytesSent:e.bytesSent,timestamp:e.timestamp,roundTripTime:e.roundTripTime,jitter:e.jitter})})),t}))}checkForSilence(){return $v(this,void 0,void 0,(function*(){const e=yield function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return $v(this,void 0,void 0,(function*(){const r=ZC();if(r){const n=r.createAnalyser();n.fftSize=2048;const i=n.frequencyBinCount,o=new Uint8Array(i);r.createMediaStreamSource(new MediaStream([e.mediaStreamTrack])).connect(n),yield nE(t),n.getByteTimeDomainData(o);const a=o.some((e=>128!==e&&0!==e));return r.close(),!a}return!1}))}(this);return e&&(this.isMuted||this.log.warn("silence detected on local audio track",this.logContext),this.emit(zA.AudioSilenceDetected)),e}))}}function kx(e,t,r){switch(e.kind){case"audio":return new Ix(e,t,!1,void 0,r);case"video":return new Fx(e,t,!1,r);default:throw new DA("unsupported track type: ".concat(e.kind))}}const _x=Object.values(eC),Tx=Object.values(tC),Mx=Object.values(rC),Px=[eC.h180,eC.h360],jx=[tC.h180,tC.h360],Dx=["q","h","f"];function Ox(e,t,r,n){var i,o;let a=null==n?void 0:n.videoEncoding;e&&(a=null==n?void 0:n.screenShareEncoding);const s=null==n?void 0:n.simulcast,c=null==n?void 0:n.scalabilityMode,u=null==n?void 0:n.videoCodec;if(!a&&!s&&!c||!t||!r)return[{}];a||(a=function(e,t,r,n){const i=function(e,t,r){if(e)return Mx;const n=t>r?t/r:r/t;if(Math.abs(n-16/9)=a)break}if(n)switch(n){case"av1":o=Object.assign({},o),o.maxBitrate=.7*o.maxBitrate;break;case"vp9":o=Object.assign({},o),o.maxBitrate=.85*o.maxBitrate}return o}(e,t,r,u),Vy.debug("using video encoding",a));const l=new JA(t,r,a.maxBitrate,a.maxFramerate,a.priority);if(c&&aE(u)){Vy.debug("using svc with scalabilityMode ".concat(c));const e=new Lx(c),t=[];if(e.spatial>3)throw new Error("unsupported scalabilityMode: ".concat(c));for(let r=0;r0){const e=f[0];f.length>1&&([,d]=f);const n=Math.max(t,r);if(n>=960&&d)return Nx(t,r,[e,d,l]);if(n>=480)return Nx(t,r,[e,l])}return Nx(t,r,[l])}function Bx(e,t){if(e)return[{scaleResolutionDownBy:2,fps:(r=t).encoding.maxFramerate}].map((e=>{var t,n;return new JA(Math.floor(r.width/e.scaleResolutionDownBy),Math.floor(r.height/e.scaleResolutionDownBy),Math.max(15e4,Math.floor(r.encoding.maxBitrate/(Math.pow(e.scaleResolutionDownBy,2)*((null!==(t=r.encoding.maxFramerate)&&void 0!==t?t:30)/(null!==(n=e.fps)&&void 0!==n?n:30))))),e.fps,r.encoding.priority)}));var r;const{width:n,height:i}=t,o=n>i?n/i:i/n;return Math.abs(o-16/9){if(i>=Dx.length)return;const o=Math.min(e,t),a={rid:Dx[i],scaleResolutionDownBy:Math.max(1,o/Math.min(r.width,r.height)),maxBitrate:r.encoding.maxBitrate};r.encoding.maxFramerate&&(a.maxFramerate=r.encoding.maxFramerate);const s=uE()||0===i;r.encoding.priority&&s&&(a.priority=r.encoding.priority,a.networkPriority=r.encoding.priority),n.push(a)})),pE()&&"ios"===yE()){let e;n.forEach((t=>{e?t.maxFramerate&&t.maxFramerate>e&&(e=t.maxFramerate):e=t.maxFramerate}));let t=!0;n.forEach((r=>{var n;r.maxFramerate!=e&&(t&&(t=!1,Vy.info("Simulcast on iOS React-Native requires all encodings to share the same framerate.")),Vy.info('Setting framerate of encoding "'.concat(null!==(n=r.rid)&&void 0!==n?n:"",'" to ').concat(e)),r.maxFramerate=e)}))}return n}function Rx(e){if(e)return e.sort(((e,t)=>{const{encoding:r}=e,{encoding:n}=t;return r.maxBitrate>n.maxBitrate?1:r.maxBitraten.maxFramerate?1:-1:0}))}class Lx{constructor(e){const t=e.match(/^L(\d)T(\d)(h|_KEY|_KEY_SHIFT){0,1}$/);if(!t)throw new Error("invalid scalability mode");if(this.spatial=parseInt(t[1]),this.temporal=parseInt(t[2]),t.length>3)switch(t[3]){case"h":case"_KEY":case"_KEY_SHIFT":this.suffix=t[3]}}toString(){var e;return"L".concat(this.spatial,"T").concat(this.temporal).concat(null!==(e=this.suffix)&&void 0!==e?e:"")}}class Fx extends BE{constructor(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3?arguments[3]:void 0;super(e,GC.Kind.Video,t,r,n),this.simulcastCodecs=new Map,this.monitorSender=()=>$v(this,void 0,void 0,(function*(){if(!this.sender)return void(this._currentBitrate=0);let e;try{e=yield this.getSenderStats()}catch($R){return void this.log.error("could not get audio sender stats",Object.assign(Object.assign({},this.logContext),{error:$R}))}const t=new Map(e.map((e=>[e.rid,e])));if(this.prevStats){let e=0;t.forEach(((t,r)=>{var n;const i=null===(n=this.prevStats)||void 0===n?void 0:n.get(r);e+=Sx(t,i)})),this._currentBitrate=e}this.prevStats=t})),this.senderLock=new ME}get isSimulcast(){return!!(this.sender&&this.sender.getParameters().encodings.length>1)}startMonitor(e){var t;if(this.signalClient=e,!hE())return;const r=null===(t=this.sender)||void 0===t?void 0:t.getParameters();r&&(this.encodings=r.encodings),this.monitorInterval||(this.monitorInterval=setInterval((()=>{this.monitorSender()}),xx))}stop(){this._mediaStreamTrack.getConstraints(),this.simulcastCodecs.forEach((e=>{e.mediaStreamTrack.stop()})),super.stop()}pauseUpstream(){const e=Object.create(null,{pauseUpstream:{get:()=>super.pauseUpstream}});var t,r,n,i,o;return $v(this,void 0,void 0,(function*(){yield e.pauseUpstream.call(this);try{for(var a,s=!0,c=ew(this.simulcastCodecs.values());a=yield c.next(),!(t=a.done);s=!0){i=a.value,s=!1;const e=i;yield null===(o=e.sender)||void 0===o?void 0:o.replaceTrack(null)}}catch(u){r={error:u}}finally{try{s||t||!(n=c.return)||(yield n.call(c))}finally{if(r)throw r.error}}}))}resumeUpstream(){const e=Object.create(null,{resumeUpstream:{get:()=>super.resumeUpstream}});var t,r,n,i,o;return $v(this,void 0,void 0,(function*(){yield e.resumeUpstream.call(this);try{for(var a,s=!0,c=ew(this.simulcastCodecs.values());a=yield c.next(),!(t=a.done);s=!0){i=a.value,s=!1;const e=i;yield null===(o=e.sender)||void 0===o?void 0:o.replaceTrack(e.mediaStreamTrack)}}catch(u){r={error:u}}finally{try{s||t||!(n=c.return)||(yield n.call(c))}finally{if(r)throw r.error}}}))}mute(){const e=Object.create(null,{mute:{get:()=>super.mute}});return $v(this,void 0,void 0,(function*(){const t=yield this.muteLock.lock();try{return this.source!==GC.Source.Camera||this.isUserProvided||(this.log.debug("stopping camera track",this.logContext),this._mediaStreamTrack.stop()),yield e.mute.call(this),this}finally{t()}}))}unmute(){const e=Object.create(null,{unmute:{get:()=>super.unmute}});return $v(this,void 0,void 0,(function*(){const t=yield this.muteLock.lock();try{return this.source!==GC.Source.Camera||this.isUserProvided||(this.log.debug("reacquiring camera track",this.logContext),yield this.restartTrack()),yield e.unmute.call(this),this}finally{t()}}))}setTrackMuted(e){super.setTrackMuted(e);for(const t of this.simulcastCodecs.values())t.mediaStreamTrack.enabled=!e}getSenderStats(){var e;return $v(this,void 0,void 0,(function*(){if(!(null===(e=this.sender)||void 0===e?void 0:e.getStats))return[];const t=[],r=yield this.sender.getStats();return r.forEach((e=>{var n;if("outbound-rtp"===e.type){const i={type:"video",streamId:e.id,frameHeight:e.frameHeight,frameWidth:e.frameWidth,firCount:e.firCount,pliCount:e.pliCount,nackCount:e.nackCount,packetsSent:e.packetsSent,bytesSent:e.bytesSent,framesSent:e.framesSent,timestamp:e.timestamp,rid:null!==(n=e.rid)&&void 0!==n?n:e.id,retransmittedPacketsSent:e.retransmittedPacketsSent,qualityLimitationReason:e.qualityLimitationReason,qualityLimitationResolutionChanges:e.qualityLimitationResolutionChanges},o=r.get(e.remoteId);o&&(i.jitter=o.jitter,i.packetsLost=o.packetsLost,i.roundTripTime=o.roundTripTime),t.push(i)}})),t}))}setPublishingQuality(e){const t=[];for(let r=gv.LOW;r<=gv.HIGH;r+=1)t.push(new MC({quality:r,enabled:r<=e}));this.log.debug("setting publishing quality. max quality ".concat(e),this.logContext),this.setPublishingLayers(t)}setDeviceId(e){return $v(this,void 0,void 0,(function*(){return this._constraints.deviceId===e&&this._mediaStreamTrack.getSettings().deviceId===PE(e)||(this._constraints.deviceId=e,this.isMuted||(yield this.restartTrack()),this.isMuted||PE(e)===this._mediaStreamTrack.getSettings().deviceId)}))}restartTrack(e){var t,r,n,i;return $v(this,void 0,void 0,(function*(){let o;if(e){const t=YC({video:e});"boolean"!=typeof t.video&&(o=t.video)}yield this.restart(o);try{for(var a,s=!0,c=ew(this.simulcastCodecs.values());a=yield c.next(),!(t=a.done);s=!0){i=a.value,s=!1;const e=i;e.sender&&(e.mediaStreamTrack=this.mediaStreamTrack.clone(),yield e.sender.replaceTrack(e.mediaStreamTrack))}}catch(u){r={error:u}}finally{try{s||t||!(n=c.return)||(yield n.call(c))}finally{if(r)throw r.error}}}))}setProcessor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=Object.create(null,{setProcessor:{get:()=>super.setProcessor}});var n,i,o,a,s,c;return $v(this,void 0,void 0,(function*(){if(yield r.setProcessor.call(this,e,t),null===(s=this.processor)||void 0===s?void 0:s.processedTrack)try{for(var u,l=!0,d=ew(this.simulcastCodecs.values());u=yield d.next(),!(n=u.done);l=!0){a=u.value,l=!1;const e=a;yield null===(c=e.sender)||void 0===c?void 0:c.replaceTrack(this.processor.processedTrack)}}catch(f){i={error:f}}finally{try{l||n||!(o=d.return)||(yield o.call(d))}finally{if(i)throw i.error}}}))}addSimulcastTrack(e,t){if(this.simulcastCodecs.has(e))throw new Error("".concat(e," already added"));const r={codec:e,mediaStreamTrack:this.mediaStreamTrack.clone(),sender:void 0,encodings:t};return this.simulcastCodecs.set(e,r),r}setSimulcastTrackSender(e,t){const r=this.simulcastCodecs.get(e);r&&(r.sender=t,setTimeout((()=>{this.subscribedCodecs&&this.setPublishingCodecs(this.subscribedCodecs)}),5e3))}setPublishingCodecs(e){var t,r,n,i,o,a,s;return $v(this,void 0,void 0,(function*(){if(this.log.debug("setting publishing codecs",Object.assign(Object.assign({},this.logContext),{codecs:e,currentCodec:this.codec})),!this.codec&&e.length>0)return yield this.setPublishingLayers(e[0].qualities),[];this.subscribedCodecs=e;const c=[];try{for(t=!0,r=ew(e);n=yield r.next(),!(i=n.done);t=!0){s=n.value,t=!1;const e=s;if(this.codec&&this.codec!==e.codec){const t=this.simulcastCodecs.get(e.codec);if(this.log.debug("try setPublishingCodec for ".concat(e.codec),Object.assign(Object.assign({},this.logContext),{simulcastCodecInfo:t})),t&&t.sender)t.encodings&&(this.log.debug("try setPublishingLayersForSender ".concat(e.codec),this.logContext),yield Ux(t.sender,t.encodings,e.qualities,this.senderLock,this.log,this.logContext));else for(const r of e.qualities)if(r.enabled){c.push(e.codec);break}}else yield this.setPublishingLayers(e.qualities)}}catch(u){o={error:u}}finally{try{t||i||!(a=r.return)||(yield a.call(r))}finally{if(o)throw o.error}}return c}))}setPublishingLayers(e){return $v(this,void 0,void 0,(function*(){this.log.debug("setting publishing layers",Object.assign(Object.assign({},this.logContext),{qualities:e})),this.sender&&this.encodings&&(yield Ux(this.sender,this.encodings,e,this.senderLock,this.log,this.logContext))}))}handleAppVisibilityChanged(){const e=Object.create(null,{handleAppVisibilityChanged:{get:()=>super.handleAppVisibilityChanged}});return $v(this,void 0,void 0,(function*(){yield e.handleAppVisibilityChanged.call(this),fE()&&this.isInBackground&&this.source===GC.Source.Camera&&(this._mediaStreamTrack.enabled=!1)}))}}function Ux(e,t,r,n,i,o){return $v(this,void 0,void 0,(function*(){const a=yield n.lock();i.debug("setPublishingLayersForSender",Object.assign(Object.assign({},o),{sender:e,qualities:r,senderEncodings:t}));try{const n=e.getParameters(),{encodings:a}=n;if(!a)return;if(a.length!==t.length)return void i.warn("cannot set publishing layers, encodings mismatch");let s=!1;!1&&a[0].scalabilityMode||a.forEach(((e,n)=>{var a;let c=null!==(a=e.rid)&&void 0!==a?a:"";""===c&&(c="q");const u=zx(c),l=r.find((e=>e.quality===u));l&&e.active!==l.enabled&&(s=!0,e.active=l.enabled,i.debug("setting layer ".concat(l.quality," to ").concat(e.active?"enabled":"disabled"),o),uE()&&(l.enabled?(e.scaleResolutionDownBy=t[n].scaleResolutionDownBy,e.maxBitrate=t[n].maxBitrate,e.maxFrameRate=t[n].maxFrameRate):(e.scaleResolutionDownBy=4,e.maxBitrate=10,e.maxFrameRate=2)))})),s&&(n.encodings=a,i.debug("setting encodings",Object.assign(Object.assign({},o),{encodings:n.encodings})),yield e.setParameters(n))}finally{a()}}))}function zx(e){switch(e){case"f":default:return gv.HIGH;case"h":return gv.MEDIUM;case"q":return gv.LOW}}function Hx(e,t,r,n){if(!r)return[new Nv({quality:gv.HIGH,width:e,height:t,bitrate:0,ssrc:0})];if(n){const n=r[0].scalabilityMode,i=new Lx(n),o=[];for(let a=0;a{var n,i,o;const a=null!==(n=r.scaleResolutionDownBy)&&void 0!==n?n:1;let s=zx(null!==(i=r.rid)&&void 0!==i?i:"");return new Nv({quality:s,width:Math.ceil(e/a),height:Math.ceil(t/a),bitrate:null!==(o=r.maxBitrate)&&void 0!==o?o:0,ssrc:0})}))}class Vx extends GC{constructor(e,t,r,n,i){super(e,r,i),this.sid=t,this.receiver=n}setMuted(e){this.isMuted!==e&&(this.isMuted=e,this._mediaStreamTrack.enabled=!e,this.emit(e?zA.Muted:zA.Unmuted,this))}setMediaStream(e){this.mediaStream=e;const t=r=>{r.track===this._mediaStreamTrack&&(e.removeEventListener("removetrack",t),this.receiver=void 0,this._currentBitrate=0,this.emit(zA.Ended,this))};e.addEventListener("removetrack",t)}start(){this.startMonitor(),super.enable()}stop(){this.stopMonitor(),super.disable()}getRTCStatsReport(){var e;return $v(this,void 0,void 0,(function*(){if(!(null===(e=this.receiver)||void 0===e?void 0:e.getStats))return;return yield this.receiver.getStats()}))}startMonitor(){this.monitorInterval||(this.monitorInterval=setInterval((()=>this.monitorReceiver()),xx))}}class Kx extends Vx{constructor(e,t,r,n,i,o){super(e,t,GC.Kind.Audio,r,o),this.monitorReceiver=()=>$v(this,void 0,void 0,(function*(){if(!this.receiver)return void(this._currentBitrate=0);const e=yield this.getReceiverStats();e&&this.prevStats&&this.receiver&&(this._currentBitrate=Sx(e,this.prevStats)),this.prevStats=e})),this.audioContext=n,this.webAudioPluginNodes=[],i&&(this.sinkId=i.deviceId)}setVolume(e){var t;for(const r of this.attachedElements)this.audioContext?null===(t=this.gainNode)||void 0===t||t.gain.setTargetAtTime(e,0,.1):r.volume=e;pE()&&this._mediaStreamTrack._setVolume(e),this.elementVolume=e}getVolume(){if(this.elementVolume)return this.elementVolume;if(pE())return 1;let e=0;return this.attachedElements.forEach((t=>{t.volume>e&&(e=t.volume)})),e}setSinkId(e){return $v(this,void 0,void 0,(function*(){this.sinkId=e,yield Promise.all(this.attachedElements.map((t=>{if(sE(t))return t.setSinkId(e)})))}))}attach(e){const t=0===this.attachedElements.length;return e?super.attach(e):e=super.attach(),this.sinkId&&sE(e)&&e.setSinkId(this.sinkId),this.audioContext&&t&&(this.log.debug("using audio context mapping",this.logContext),this.connectWebAudio(this.audioContext,e),e.volume=0,e.muted=!0),this.elementVolume&&this.setVolume(this.elementVolume),e}detach(e){let t;return e?(t=super.detach(e),this.audioContext&&(this.attachedElements.length>0?this.connectWebAudio(this.audioContext,this.attachedElements[0]):this.disconnectWebAudio())):(t=super.detach(),this.disconnectWebAudio()),t}setAudioContext(e){this.audioContext=e,e&&this.attachedElements.length>0?this.connectWebAudio(e,this.attachedElements[0]):e||this.disconnectWebAudio()}setWebAudioPlugins(e){this.webAudioPluginNodes=e,this.attachedElements.length>0&&this.audioContext&&this.connectWebAudio(this.audioContext,this.attachedElements[0])}connectWebAudio(e,t){this.disconnectWebAudio(),this.sourceNode=e.createMediaStreamSource(t.srcObject);let r=this.sourceNode;this.webAudioPluginNodes.forEach((e=>{r.connect(e),r=e})),this.gainNode=e.createGain(),r.connect(this.gainNode),this.gainNode.connect(e.destination),this.elementVolume&&this.gainNode.gain.setTargetAtTime(this.elementVolume,0,.1),"running"!==e.state&&e.resume().then((()=>{"running"!==e.state&&this.emit(zA.AudioPlaybackFailed,new Error("Audio Context couldn't be started automatically"))})).catch((e=>{this.emit(zA.AudioPlaybackFailed,e)}))}disconnectWebAudio(){var e,t;null===(e=this.gainNode)||void 0===e||e.disconnect(),null===(t=this.sourceNode)||void 0===t||t.disconnect(),this.gainNode=void 0,this.sourceNode=void 0}getReceiverStats(){return $v(this,void 0,void 0,(function*(){if(!this.receiver||!this.receiver.getStats)return;let e;return(yield this.receiver.getStats()).forEach((t=>{"inbound-rtp"===t.type&&(e={type:"audio",timestamp:t.timestamp,jitter:t.jitter,bytesReceived:t.bytesReceived,concealedSamples:t.concealedSamples,concealmentEvents:t.concealmentEvents,silentConcealedSamples:t.silentConcealedSamples,silentConcealmentEvents:t.silentConcealmentEvents,totalAudioEnergy:t.totalAudioEnergy,totalSamplesDuration:t.totalSamplesDuration})})),e}))}}class Gx extends Vx{constructor(e,t,r,n,i){super(e,t,GC.Kind.Video,r,i),this.elementInfos=[],this.monitorReceiver=()=>$v(this,void 0,void 0,(function*(){if(!this.receiver)return void(this._currentBitrate=0);const e=yield this.getReceiverStats();e&&this.prevStats&&this.receiver&&(this._currentBitrate=Sx(e,this.prevStats)),this.prevStats=e})),this.debouncedHandleResize=HA((()=>{this.updateDimensions()}),100),this.adaptiveStreamSettings=n}get isAdaptiveStream(){return void 0!==this.adaptiveStreamSettings}get mediaStreamTrack(){return this._mediaStreamTrack}setMuted(e){super.setMuted(e),this.attachedElements.forEach((t=>{e?QC(this._mediaStreamTrack,t):qC(this._mediaStreamTrack,t)}))}attach(e){if(e?super.attach(e):e=super.attach(),this.adaptiveStreamSettings&&void 0===this.elementInfos.find((t=>t.element===e))){const t=new qx(e);this.observeElementInfo(t)}return e}observeElementInfo(e){this.adaptiveStreamSettings&&void 0===this.elementInfos.find((t=>t===e))?(e.handleResize=()=>{this.debouncedHandleResize()},e.handleVisibilityChanged=()=>{this.updateVisibility()},this.elementInfos.push(e),e.observe(),this.debouncedHandleResize(),this.updateVisibility()):this.log.warn("visibility resize observer not triggered",this.logContext)}stopObservingElementInfo(e){if(!this.isAdaptiveStream)return void this.log.warn("stopObservingElementInfo ignored",this.logContext);const t=this.elementInfos.filter((t=>t===e));for(const r of t)r.stopObserving();this.elementInfos=this.elementInfos.filter((t=>t!==e)),this.updateVisibility(),this.debouncedHandleResize()}detach(e){let t=[];if(e)return this.stopObservingElement(e),super.detach(e);t=super.detach();for(const r of t)this.stopObservingElement(r);return t}getDecoderImplementation(){var e;return null===(e=this.prevStats)||void 0===e?void 0:e.decoderImplementation}getReceiverStats(){return $v(this,void 0,void 0,(function*(){if(!this.receiver||!this.receiver.getStats)return;const e=yield this.receiver.getStats();let t,r="",n=new Map;return e.forEach((e=>{"inbound-rtp"===e.type?(r=e.codecId,t={type:"video",framesDecoded:e.framesDecoded,framesDropped:e.framesDropped,framesReceived:e.framesReceived,packetsReceived:e.packetsReceived,packetsLost:e.packetsLost,frameWidth:e.frameWidth,frameHeight:e.frameHeight,pliCount:e.pliCount,firCount:e.firCount,nackCount:e.nackCount,jitter:e.jitter,timestamp:e.timestamp,bytesReceived:e.bytesReceived,decoderImplementation:e.decoderImplementation}):"codec"===e.type&&n.set(e.id,e)})),t&&""!==r&&n.get(r)&&(t.mimeType=n.get(r).mimeType),t}))}stopObservingElement(e){const t=this.elementInfos.filter((t=>t.element===e));for(const r of t)this.stopObservingElementInfo(r)}handleAppVisibilityChanged(){const e=Object.create(null,{handleAppVisibilityChanged:{get:()=>super.handleAppVisibilityChanged}});return $v(this,void 0,void 0,(function*(){yield e.handleAppVisibilityChanged.call(this),this.isAdaptiveStream&&this.updateVisibility()}))}updateVisibility(){var e,t;const r=this.elementInfos.reduce(((e,t)=>Math.max(e,t.visibilityChangedAt||0)),0),n=!(null!==(t=null===(e=this.adaptiveStreamSettings)||void 0===e?void 0:e.pauseVideoInBackground)&&void 0!==t&&!t)&&this.isInBackground,i=this.elementInfos.some((e=>e.pictureInPicture)),o=this.elementInfos.some((e=>e.visible))&&!n||i;this.lastVisible!==o&&(!o&&Date.now()-r<100?WA.setTimeout((()=>{this.updateVisibility()}),100):(this.lastVisible=o,this.emit(zA.VisibilityChanged,o,this)))}updateDimensions(){var e,t;let r=0,n=0;const i=this.getPixelDensity();for(const o of this.elementInfos){const e=o.width()*i,t=o.height()*i;e+t>r+n&&(r=e,n=t)}(null===(e=this.lastDimensions)||void 0===e?void 0:e.width)===r&&(null===(t=this.lastDimensions)||void 0===t?void 0:t.height)===n||(this.lastDimensions={width:r,height:n},this.emit(zA.VideoDimensionsChanged,this.lastDimensions,this))}getPixelDensity(){var e;const t=null===(e=this.adaptiveStreamSettings)||void 0===e?void 0:e.pixelDensity;if("screen"===t)return bE();if(!t){return bE()>2?2:1}return t}}class qx{get visible(){return this.isPiP||this.isIntersecting}get pictureInPicture(){return this.isPiP}constructor(e,t){this.onVisibilityChanged=e=>{var t;const{target:r,isIntersecting:n}=e;r===this.element&&(this.isIntersecting=n,this.visibilityChangedAt=Date.now(),null===(t=this.handleVisibilityChanged)||void 0===t||t.call(this))},this.onEnterPiP=()=>{var e;this.isPiP=!0,null===(e=this.handleVisibilityChanged)||void 0===e||e.call(this)},this.onLeavePiP=()=>{var e;this.isPiP=!1,null===(e=this.handleVisibilityChanged)||void 0===e||e.call(this)},this.element=e,this.isIntersecting=null!=t?t:Qx(e),this.isPiP=hE()&&document.pictureInPictureElement===e,this.visibilityChangedAt=0}width(){return this.element.clientWidth}height(){return this.element.clientHeight}observe(){this.isIntersecting=Qx(this.element),this.isPiP=document.pictureInPictureElement===this.element,this.element.handleResize=()=>{var e;null===(e=this.handleResize)||void 0===e||e.call(this)},this.element.handleVisibilityChanged=this.onVisibilityChanged,SE().observe(this.element),EE().observe(this.element),this.element.addEventListener("enterpictureinpicture",this.onEnterPiP),this.element.addEventListener("leavepictureinpicture",this.onLeavePiP)}stopObserving(){var e,t;null===(e=SE())||void 0===e||e.unobserve(this.element),null===(t=EE())||void 0===t||t.unobserve(this.element),this.element.removeEventListener("enterpictureinpicture",this.onEnterPiP),this.element.removeEventListener("leavepictureinpicture",this.onLeavePiP)}}function Qx(e){let t=e.offsetTop,r=e.offsetLeft;const n=e.offsetWidth,i=e.offsetHeight,{hidden:o}=e,{opacity:a,display:s}=getComputedStyle(e);for(;e.offsetParent;)t+=(e=e.offsetParent).offsetTop,r+=e.offsetLeft;return twindow.pageYOffset&&r+n>window.pageXOffset&&!o&&(""===a||parseFloat(a)>0)&&"none"!==s}class Wx extends yw.EventEmitter{constructor(e,t,r,n){var i;super(),this.metadataMuted=!1,this.encryption=Tv.NONE,this.log=Vy,this.handleMuted=()=>{this.emit(zA.Muted)},this.handleUnmuted=()=>{this.emit(zA.Unmuted)},this.log=Ky(null!==(i=null==n?void 0:n.loggerName)&&void 0!==i?i:zy.Publication),this.loggerContextCb=this.loggerContextCb,this.setMaxListeners(100),this.kind=e,this.trackSid=t,this.trackName=r,this.source=GC.Source.Unknown}setTrack(e){this.track&&(this.track.off(zA.Muted,this.handleMuted),this.track.off(zA.Unmuted,this.handleUnmuted)),this.track=e,e&&(e.on(zA.Muted,this.handleMuted),e.on(zA.Unmuted,this.handleUnmuted))}get logContext(){var e;return Object.assign(Object.assign({},null===(e=this.loggerContextCb)||void 0===e?void 0:e.call(this)),tE(this))}get isMuted(){return this.metadataMuted}get isEnabled(){return!0}get isSubscribed(){return void 0!==this.track}get isEncrypted(){return this.encryption!==Tv.NONE}get audioTrack(){if(this.track instanceof Ix||this.track instanceof Kx)return this.track}get videoTrack(){if(this.track instanceof Fx||this.track instanceof Gx)return this.track}updateInfo(e){this.trackSid=e.sid,this.trackName=e.name,this.source=GC.sourceFromProto(e.source),this.mimeType=e.mimeType,this.kind===GC.Kind.Video&&e.width>0&&(this.dimensions={width:e.width,height:e.height},this.simulcasted=e.simulcast),this.encryption=e.encryption,this.trackInfo=e,this.log.debug("update publication info",Object.assign(Object.assign({},this.logContext),{info:e}))}}!function(e){var t,r;(t=e.SubscriptionStatus||(e.SubscriptionStatus={})).Desired="desired",t.Subscribed="subscribed",t.Unsubscribed="unsubscribed",(r=e.PermissionStatus||(e.PermissionStatus={})).Allowed="allowed",r.NotAllowed="not_allowed"}(Wx||(Wx={}));class Jx extends Wx{get isUpstreamPaused(){var e;return null===(e=this.track)||void 0===e?void 0:e.isUpstreamPaused}constructor(e,t,r,n){super(e,t.sid,t.name,n),this.track=void 0,this.handleTrackEnded=()=>{this.emit(zA.Ended)},this.updateInfo(t),this.setTrack(r)}setTrack(e){this.track&&this.track.off(zA.Ended,this.handleTrackEnded),super.setTrack(e),e&&e.on(zA.Ended,this.handleTrackEnded)}get isMuted(){return this.track?this.track.isMuted:super.isMuted}get audioTrack(){return super.audioTrack}get videoTrack(){return super.videoTrack}mute(){var e;return $v(this,void 0,void 0,(function*(){return null===(e=this.track)||void 0===e?void 0:e.mute()}))}unmute(){var e;return $v(this,void 0,void 0,(function*(){return null===(e=this.track)||void 0===e?void 0:e.unmute()}))}pauseUpstream(){var e;return $v(this,void 0,void 0,(function*(){yield null===(e=this.track)||void 0===e?void 0:e.pauseUpstream()}))}resumeUpstream(){var e;return $v(this,void 0,void 0,(function*(){yield null===(e=this.track)||void 0===e?void 0:e.resumeUpstream()}))}}var Yx,Zx;!function(e){e.Excellent="excellent",e.Good="good",e.Poor="poor",e.Lost="lost",e.Unknown="unknown"}(Yx||(Yx={}));class $x extends yw.EventEmitter{get logContext(){var e,t;return Object.assign(Object.assign({},null===(t=null===(e=this.loggerOptions)||void 0===e?void 0:e.loggerContextCb)||void 0===t?void 0:t.call(e)),{participantSid:this.sid,participantId:this.identity})}get isEncrypted(){return this.tracks.size>0&&Array.from(this.tracks.values()).every((e=>e.isEncrypted))}get isAgent(){var e,t;return null!==(t=null===(e=this.permissions)||void 0===e?void 0:e.agent)&&void 0!==t&&t}constructor(e,t,r,n,i){var o;super(),this.audioLevel=0,this.isSpeaking=!1,this._connectionQuality=Yx.Unknown,this.log=Vy,this.log=Ky(null!==(o=null==i?void 0:i.loggerName)&&void 0!==o?o:zy.Participant),this.loggerOptions=i,this.setMaxListeners(100),this.sid=e,this.identity=t,this.name=r,this.metadata=n,this.audioTracks=new Map,this.videoTracks=new Map,this.tracks=new Map}getTracks(){return Array.from(this.tracks.values())}getTrack(e){for(const[,t]of this.tracks)if(t.source===e)return t}getTrackByName(e){for(const[,t]of this.tracks)if(t.trackName===e)return t}get connectionQuality(){return this._connectionQuality}get isCameraEnabled(){var e;const t=this.getTrack(GC.Source.Camera);return!(null===(e=null==t?void 0:t.isMuted)||void 0===e||e)}get isMicrophoneEnabled(){var e;const t=this.getTrack(GC.Source.Microphone);return!(null===(e=null==t?void 0:t.isMuted)||void 0===e||e)}get isScreenShareEnabled(){return!!this.getTrack(GC.Source.ScreenShare)}get isLocal(){return!1}get joinedAt(){return this.participantInfo?new Date(1e3*Number.parseInt(this.participantInfo.joinedAt.toString())):new Date}updateInfo(e){return!(this.participantInfo&&this.participantInfo.sid===e.sid&&this.participantInfo.version>e.version)&&(this.identity=e.identity,this.sid=e.sid,this._setName(e.name),this._setMetadata(e.metadata),e.permission&&this.setPermissions(e.permission),this.participantInfo=e,this.log.trace("update participant info",Object.assign(Object.assign({},this.logContext),{info:e})),!0)}_setMetadata(e){const t=this.metadata!==e,r=this.metadata;this.metadata=e,t&&this.emit(FA.ParticipantMetadataChanged,r)}_setName(e){const t=this.name!==e;this.name=e,t&&this.emit(FA.ParticipantNameChanged,e)}setPermissions(e){var t,r,n,i,o;const a=this.permissions,s=e.canPublish!==(null===(t=this.permissions)||void 0===t?void 0:t.canPublish)||e.canSubscribe!==(null===(r=this.permissions)||void 0===r?void 0:r.canSubscribe)||e.canPublishData!==(null===(n=this.permissions)||void 0===n?void 0:n.canPublishData)||e.hidden!==(null===(i=this.permissions)||void 0===i?void 0:i.hidden)||e.recorder!==(null===(o=this.permissions)||void 0===o?void 0:o.recorder)||e.canPublishSources.length!==this.permissions.canPublishSources.length||e.canPublishSources.some(((e,t)=>{var r;return e!==(null===(r=this.permissions)||void 0===r?void 0:r.canPublishSources[t])}));return this.permissions=e,s&&this.emit(FA.ParticipantPermissionsChanged,a),s}setIsSpeaking(e){e!==this.isSpeaking&&(this.isSpeaking=e,e&&(this.lastSpokeAt=new Date),this.emit(FA.IsSpeakingChanged,e))}setConnectionQuality(e){const t=this._connectionQuality;this._connectionQuality=function(e){switch(e){case mv.EXCELLENT:return Yx.Excellent;case mv.GOOD:return Yx.Good;case mv.POOR:return Yx.Poor;case mv.LOST:return Yx.Lost;default:return Yx.Unknown}}(e),t!==this._connectionQuality&&this.emit(FA.ConnectionQualityChanged,this._connectionQuality)}setAudioContext(e){this.audioContext=e,this.audioTracks.forEach((t=>(t.track instanceof Kx||t.track instanceof Ix)&&t.track.setAudioContext(e)))}addTrackPublication(e){e.on(zA.Muted,(()=>{this.emit(FA.TrackMuted,e)})),e.on(zA.Unmuted,(()=>{this.emit(FA.TrackUnmuted,e)}));const t=e;switch(t.track&&(t.track.sid=e.trackSid),this.tracks.set(e.trackSid,e),e.kind){case GC.Kind.Audio:this.audioTracks.set(e.trackSid,e);break;case GC.Kind.Video:this.videoTracks.set(e.trackSid,e)}}}class Xx extends Wx{constructor(e,t,r,n){super(e,t.sid,t.name,n),this.track=void 0,this.allowed=!0,this.disabled=!1,this.currentVideoQuality=gv.HIGH,this.handleEnded=e=>{this.setTrack(void 0),this.emit(zA.Ended,e)},this.handleVisibilityChange=e=>{this.log.debug("adaptivestream video visibility ".concat(this.trackSid,", visible=").concat(e),this.logContext),this.disabled=!e,this.emitTrackUpdate()},this.handleVideoDimensionsChange=e=>{this.log.debug("adaptivestream video dimensions ".concat(e.width,"x").concat(e.height),this.logContext),this.videoDimensions=e,this.emitTrackUpdate()},this.subscribed=r,this.updateInfo(t)}setSubscribed(e){const t=this.subscriptionStatus,r=this.permissionStatus;this.subscribed=e,e&&(this.allowed=!0);const n=new bC({trackSids:[this.trackSid],subscribe:this.subscribed,participantTracks:[new zv({participantSid:"",trackSids:[this.trackSid]})]});this.emit(zA.UpdateSubscription,n),this.emitSubscriptionUpdateIfChanged(t),this.emitPermissionUpdateIfChanged(r)}get subscriptionStatus(){return!1===this.subscribed?Wx.SubscriptionStatus.Unsubscribed:super.isSubscribed?Wx.SubscriptionStatus.Subscribed:Wx.SubscriptionStatus.Desired}get permissionStatus(){return this.allowed?Wx.PermissionStatus.Allowed:Wx.PermissionStatus.NotAllowed}get isSubscribed(){return!1!==this.subscribed&&super.isSubscribed}get isDesired(){return!1!==this.subscribed}get isEnabled(){return!this.disabled}setEnabled(e){this.isManualOperationAllowed()&&this.disabled!==!e&&(this.disabled=!e,this.emitTrackUpdate())}setVideoQuality(e){this.isManualOperationAllowed()&&this.currentVideoQuality!==e&&(this.currentVideoQuality=e,this.videoDimensions=void 0,this.emitTrackUpdate())}setVideoDimensions(e){var t,r;this.isManualOperationAllowed()&&((null===(t=this.videoDimensions)||void 0===t?void 0:t.width)===e.width&&(null===(r=this.videoDimensions)||void 0===r?void 0:r.height)===e.height||(this.track instanceof Gx&&(this.videoDimensions=e),this.currentVideoQuality=void 0,this.emitTrackUpdate()))}setVideoFPS(e){this.isManualOperationAllowed()&&this.track instanceof Gx&&this.fps!==e&&(this.fps=e,this.emitTrackUpdate())}get videoQuality(){return this.currentVideoQuality}setTrack(e){const t=this.subscriptionStatus,r=this.permissionStatus,n=this.track;n!==e&&(n&&(n.off(zA.VideoDimensionsChanged,this.handleVideoDimensionsChange),n.off(zA.VisibilityChanged,this.handleVisibilityChange),n.off(zA.Ended,this.handleEnded),n.detach(),n.stopMonitor(),this.emit(zA.Unsubscribed,n)),super.setTrack(e),e&&(e.sid=this.trackSid,e.on(zA.VideoDimensionsChanged,this.handleVideoDimensionsChange),e.on(zA.VisibilityChanged,this.handleVisibilityChange),e.on(zA.Ended,this.handleEnded),this.emit(zA.Subscribed,e)),this.emitPermissionUpdateIfChanged(r),this.emitSubscriptionUpdateIfChanged(t))}setAllowed(e){const t=this.subscriptionStatus,r=this.permissionStatus;this.allowed=e,this.emitPermissionUpdateIfChanged(r),this.emitSubscriptionUpdateIfChanged(t)}setSubscriptionError(e){this.emit(zA.SubscriptionFailed,e)}updateInfo(e){super.updateInfo(e);const t=this.metadataMuted;this.metadataMuted=e.muted,this.track?this.track.setMuted(e.muted):t!==e.muted&&this.emit(e.muted?zA.Muted:zA.Unmuted)}emitSubscriptionUpdateIfChanged(e){const t=this.subscriptionStatus;e!==t&&this.emit(zA.SubscriptionStatusChanged,t,e)}emitPermissionUpdateIfChanged(e){this.permissionStatus!==e&&this.emit(zA.SubscriptionPermissionChanged,this.permissionStatus,e)}isManualOperationAllowed(){return this.kind===GC.Kind.Video&&this.isAdaptiveStream?(this.log.warn("adaptive stream is enabled, cannot change video track settings",this.logContext),!1):!!this.isDesired||(this.log.warn("cannot update track settings when not subscribed",this.logContext),!1)}get isAdaptiveStream(){return this.track instanceof Gx&&this.track.isAdaptiveStream}emitTrackUpdate(){const e=new vC({trackSids:[this.trackSid],disabled:this.disabled,fps:this.fps});this.videoDimensions?(e.width=Math.ceil(this.videoDimensions.width),e.height=Math.ceil(this.videoDimensions.height)):void 0!==this.currentVideoQuality?e.quality=this.currentVideoQuality:e.quality=gv.HIGH,this.emit(zA.UpdateSettings,e)}}class eS extends $x{static fromParticipantInfo(e,t){return new eS(e,t.sid,t.identity,t.name,t.metadata)}constructor(e,t,r,n,i,o){super(t,r||"",n,i,o),this.signalClient=e,this.tracks=new Map,this.audioTracks=new Map,this.videoTracks=new Map,this.volumeMap=new Map}addTrackPublication(e){super.addTrackPublication(e),e.on(zA.UpdateSettings,(t=>{this.log.debug("send update settings",Object.assign(Object.assign({},this.logContext),tE(e))),this.signalClient.sendUpdateTrackSettings(t)})),e.on(zA.UpdateSubscription,(e=>{e.participantTracks.forEach((e=>{e.participantSid=this.sid})),this.signalClient.sendUpdateSubscription(e)})),e.on(zA.SubscriptionPermissionChanged,(t=>{this.emit(FA.TrackSubscriptionPermissionChanged,e,t)})),e.on(zA.SubscriptionStatusChanged,(t=>{this.emit(FA.TrackSubscriptionStatusChanged,e,t)})),e.on(zA.Subscribed,(t=>{this.emit(FA.TrackSubscribed,t,e)})),e.on(zA.Unsubscribed,(t=>{this.emit(FA.TrackUnsubscribed,t,e)})),e.on(zA.SubscriptionFailed,(t=>{this.emit(FA.TrackSubscriptionFailed,e.trackSid,t)}))}getTrack(e){const t=super.getTrack(e);if(t)return t}getTrackByName(e){const t=super.getTrackByName(e);if(t)return t}setVolume(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:GC.Source.Microphone;this.volumeMap.set(t,e);const r=this.getTrack(t);r&&r.track&&r.track.setVolume(e)}getVolume(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:GC.Source.Microphone;const t=this.getTrack(e);return t&&t.track?t.track.getVolume():this.volumeMap.get(e)}addSubscribedMediaTrack(e,t,r,n,i,o){let a=this.getTrackPublication(t);if(a||t.startsWith("TR")||this.tracks.forEach((t=>{a||e.kind!==t.kind.toString()||(a=t)})),!a)return 0===o?(this.log.error("could not find published track",Object.assign(Object.assign({},this.logContext),{trackSid:t})),void this.emit(FA.TrackSubscriptionFailed,t)):(void 0===o&&(o=20),void setTimeout((()=>{this.addSubscribedMediaTrack(e,t,r,n,i,o-1)}),150));if("ended"===e.readyState)return this.log.error("unable to subscribe because MediaStreamTrack is ended. Do not call MediaStreamTrack.stop()",Object.assign(Object.assign({},this.logContext),tE(a))),void this.emit(FA.TrackSubscriptionFailed,t);let s;return s="video"===e.kind?new Gx(e,t,n,i):new Kx(e,t,n,this.audioContext,this.audioOutput),s.source=a.source,s.isMuted=a.isMuted,s.setMediaStream(r),s.start(),a.setTrack(s),this.volumeMap.has(a.source)&&s instanceof Kx&&s.setVolume(this.volumeMap.get(a.source)),a}get hasMetadata(){return!!this.participantInfo}getTrackPublication(e){return this.tracks.get(e)}updateInfo(e){if(!super.updateInfo(e))return!1;const t=new Map,r=new Map;return e.tracks.forEach((e=>{var n,i;let o=this.getTrackPublication(e.sid);if(o)o.updateInfo(e);else{const t=GC.kindFromProto(e.type);if(!t)return;o=new Xx(t,e,null===(n=this.signalClient.connectOptions)||void 0===n?void 0:n.autoSubscribe,{loggerContextCb:()=>this.logContext,loggerName:null===(i=this.loggerOptions)||void 0===i?void 0:i.loggerName}),o.updateInfo(e),r.set(e.sid,o);const a=Array.from(this.tracks.values()).find((e=>e.source===(null==o?void 0:o.source)));a&&o.source!==GC.Source.Unknown&&this.log.debug("received a second track publication for ".concat(this.identity," with the same source: ").concat(o.source),Object.assign(Object.assign({},this.logContext),{oldTrack:tE(a),newTrack:tE(o)})),this.addTrackPublication(o)}t.set(e.sid,o)})),this.tracks.forEach((e=>{t.has(e.trackSid)||(this.log.trace("detected removed track on remote participant, unpublishing",Object.assign(Object.assign({},this.logContext),tE(e))),this.unpublishTrack(e.trackSid,!0))})),r.forEach((e=>{this.emit(FA.TrackPublished,e)})),!0}unpublishTrack(e,t){const r=this.tracks.get(e);if(!r)return;const{track:n}=r;switch(n&&(n.stop(),r.setTrack(void 0)),this.tracks.delete(e),r.kind){case GC.Kind.Audio:this.audioTracks.delete(e);break;case GC.Kind.Video:this.videoTracks.delete(e)}t&&this.emit(FA.TrackUnpublished,r)}setAudioOutput(e){return $v(this,void 0,void 0,(function*(){this.audioOutput=e;const t=[];this.audioTracks.forEach((r=>{var n;r.track instanceof Kx&&t.push(r.track.setSinkId(null!==(n=e.deviceId)&&void 0!==n?n:"default"))})),yield Promise.all(t)}))}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;nthis.engine.logContext}),this.pendingPublishing=new Set,this.pendingPublishPromises=new Map,this.participantTrackPermissions=[],this.allParticipantsAllowedToSubscribe=!0,this.encryptionType=Tv.NONE,this.handleReconnecting=()=>{this.reconnectFuture||(this.reconnectFuture=new TE)},this.handleReconnected=()=>{var e,t;null===(t=null===(e=this.reconnectFuture)||void 0===e?void 0:e.resolve)||void 0===t||t.call(e),this.reconnectFuture=void 0,this.updateTrackSubscriptionPermissions()},this.handleDisconnected=()=>{var e,t;this.reconnectFuture&&(this.reconnectFuture.promise.catch((e=>this.log.warn(e.message,this.logContext))),null===(t=null===(e=this.reconnectFuture)||void 0===e?void 0:e.reject)||void 0===t||t.call(e,"Got disconnected during reconnection attempt"),this.reconnectFuture=void 0)},this.updateTrackSubscriptionPermissions=()=>{this.log.debug("updating track subscription permissions",Object.assign(Object.assign({},this.logContext),{allParticipantsAllowed:this.allParticipantsAllowedToSubscribe,participantTrackPermissions:this.participantTrackPermissions})),this.engine.client.sendUpdateSubscriptionPermissions(this.allParticipantsAllowedToSubscribe,this.participantTrackPermissions.map((e=>function(e){var t,r,n;if(!e.participantSid&&!e.participantIdentity)throw new Error("Invalid track permission, must provide at least one of participantIdentity and participantSid");return new DC({participantIdentity:null!==(t=e.participantIdentity)&&void 0!==t?t:"",participantSid:null!==(r=e.participantSid)&&void 0!==r?r:"",allTracks:null!==(n=e.allowAll)&&void 0!==n&&n,trackSids:e.allowedTrackSids||[]})}(e))))},this.onTrackUnmuted=e=>{this.onTrackMuted(e,e.isUpstreamPaused)},this.onTrackMuted=(e,t)=>{void 0===t&&(t=!0),e.sid?this.engine.updateMuteStatus(e.sid,t):this.log.error("could not update mute status for unpublished track",Object.assign(Object.assign({},this.logContext),tE(e)))},this.onTrackUpstreamPaused=e=>{this.log.debug("upstream paused",Object.assign(Object.assign({},this.logContext),tE(e))),this.onTrackMuted(e,!0)},this.onTrackUpstreamResumed=e=>{this.log.debug("upstream resumed",Object.assign(Object.assign({},this.logContext),tE(e))),this.onTrackMuted(e,e.isMuted)},this.handleSubscribedQualityUpdate=e=>$v(this,void 0,void 0,(function*(){var t,r,n,i,o,a;if(!(null===(o=this.roomOptions)||void 0===o?void 0:o.dynacast))return;const s=this.videoTracks.get(e.trackSid);if(s)if(e.subscribedCodecs.length>0){if(!s.videoTrack)return;const o=yield s.videoTrack.setPublishingCodecs(e.subscribedCodecs);try{for(var c,u=!0,l=ew(o);!(t=(c=yield l.next()).done);u=!0){i=c.value,u=!1;const e=i;$A(e)&&(this.log.debug("publish ".concat(e," for ").concat(s.videoTrack.sid),Object.assign(Object.assign({},this.logContext),tE(s))),yield this.publishAdditionalCodecForTrack(s.videoTrack,e,s.options))}}catch(d){r={error:d}}finally{try{u||t||!(n=l.return)||(yield n.call(l))}finally{if(r)throw r.error}}}else e.subscribedQualities.length>0&&(yield null===(a=s.videoTrack)||void 0===a?void 0:a.setPublishingLayers(e.subscribedQualities));else this.log.warn("received subscribed quality update for unknown track",Object.assign(Object.assign({},this.logContext),{trackSid:e.trackSid}))})),this.handleLocalTrackUnpublished=e=>{const t=this.tracks.get(e.trackSid);t?this.unpublishTrack(t.track):this.log.warn("received unpublished event for unknown track",Object.assign(Object.assign({},this.logContext),{trackSid:e.trackSid}))},this.handleTrackEnded=e=>$v(this,void 0,void 0,(function*(){if(e.source===GC.Source.ScreenShare||e.source===GC.Source.ScreenShareAudio)this.log.debug("unpublishing local track due to TrackEnded",Object.assign(Object.assign({},this.logContext),tE(e))),this.unpublishTrack(e);else if(e.isUserProvided)yield e.mute();else if(e instanceof Ix||e instanceof Fx)try{if(hE())try{const t=yield null===navigator||void 0===navigator?void 0:navigator.permissions.query({name:e.source===GC.Source.Camera?"camera":"microphone"});if(t&&"denied"===t.state)throw this.log.warn("user has revoked access to ".concat(e.source),Object.assign(Object.assign({},this.logContext),tE(e))),t.onchange=()=>{"denied"!==t.state&&(e.isMuted||e.restartTrack(),t.onchange=null)},new Error("GetUserMedia Permission denied")}catch($R){}e.isMuted||(this.log.debug("track ended, attempting to use a different device",Object.assign(Object.assign({},this.logContext),tE(e))),yield e.restartTrack())}catch($R){this.log.warn("could not restart track, muting instead",Object.assign(Object.assign({},this.logContext),tE(e))),yield e.mute()}})),this.audioTracks=new Map,this.videoTracks=new Map,this.tracks=new Map,this.engine=r,this.roomOptions=n,this.setupEngine(r),this.activeDeviceMap=new Map}get lastCameraError(){return this.cameraError}get lastMicrophoneError(){return this.microphoneError}get isE2EEEnabled(){return this.encryptionType!==Tv.NONE}getTrack(e){const t=super.getTrack(e);if(t)return t}getTrackByName(e){const t=super.getTrackByName(e);if(t)return t}setupEngine(e){this.engine=e,this.engine.on(UA.RemoteMute,((e,t)=>{const r=this.tracks.get(e);r&&r.track&&(t?r.mute():r.unmute())})),this.engine.on(UA.Connected,this.handleReconnected).on(UA.SignalRestarted,this.handleReconnected).on(UA.SignalResumed,this.handleReconnected).on(UA.Restarting,this.handleReconnecting).on(UA.Resuming,this.handleReconnecting).on(UA.LocalTrackUnpublished,this.handleLocalTrackUnpublished).on(UA.SubscribedQualityUpdate,this.handleSubscribedQualityUpdate).on(UA.Disconnected,this.handleDisconnected)}setMetadata(e){var t;this.engine.client.sendUpdateLocalMetadata(e,null!==(t=this.name)&&void 0!==t?t:"")}setName(e){var t;this.engine.client.sendUpdateLocalMetadata(null!==(t=this.metadata)&&void 0!==t?t:"",e)}setCameraEnabled(e,t,r){return this.setTrackEnabled(GC.Source.Camera,e,t,r)}setMicrophoneEnabled(e,t,r){return this.setTrackEnabled(GC.Source.Microphone,e,t,r)}setScreenShareEnabled(e,t,r){return this.setTrackEnabled(GC.Source.ScreenShare,e,t,r)}setPermissions(e){const t=this.permissions,r=super.setPermissions(e);return r&&t&&this.emit(FA.ParticipantPermissionsChanged,t),r}setE2EEEnabled(e){return $v(this,void 0,void 0,(function*(){this.encryptionType=e?Tv.GCM:Tv.NONE,yield this.republishAllTracks(void 0,!1)}))}setTrackEnabled(e,t,r,n){var i,o;return $v(this,void 0,void 0,(function*(){this.log.debug("setTrackEnabled",Object.assign(Object.assign({},this.logContext),{source:e,enabled:t}));let a=this.getTrack(e);if(t)if(a)yield a.unmute();else{let t;if(this.pendingPublishing.has(e))return void this.log.info("skipping duplicate published source",Object.assign(Object.assign({},this.logContext),{source:e}));this.pendingPublishing.add(e);try{switch(e){case GC.Source.Camera:t=yield this.createTracks({video:null===(i=r)||void 0===i||i});break;case GC.Source.Microphone:t=yield this.createTracks({audio:null===(o=r)||void 0===o||o});break;case GC.Source.ScreenShare:t=yield this.createScreenTracks(Object.assign({},r));break;default:throw new DA(e)}const s=[];for(const e of t)this.log.info("publishing track",Object.assign(Object.assign({},this.logContext),tE(e))),s.push(this.publishTrack(e,n));const c=yield Promise.all(s);[a]=c}catch($R){throw null==t||t.forEach((e=>{e.stop()})),$R instanceof Error&&!($R instanceof DA)&&this.emit(FA.MediaDevicesError,$R),$R}finally{this.pendingPublishing.delete(e)}}else if(a&&a.track)if(e===GC.Source.ScreenShare){a=yield this.unpublishTrack(a.track);const e=this.getTrack(GC.Source.ScreenShareAudio);e&&e.track&&this.unpublishTrack(e.track)}else yield a.mute();return a}))}enableCameraAndMicrophone(){return $v(this,void 0,void 0,(function*(){if(!this.pendingPublishing.has(GC.Source.Camera)&&!this.pendingPublishing.has(GC.Source.Microphone)){this.pendingPublishing.add(GC.Source.Camera),this.pendingPublishing.add(GC.Source.Microphone);try{const e=yield this.createTracks({audio:!0,video:!0});yield Promise.all(e.map((e=>this.publishTrack(e))))}finally{this.pendingPublishing.delete(GC.Source.Camera),this.pendingPublishing.delete(GC.Source.Microphone)}}}))}createTracks(e){var t,r;return $v(this,void 0,void 0,(function*(){const n=YC(WC(e,null===(t=this.roomOptions)||void 0===t?void 0:t.audioCaptureDefaults,null===(r=this.roomOptions)||void 0===r?void 0:r.videoCaptureDefaults));let i;try{i=yield navigator.mediaDevices.getUserMedia(n)}catch(o){throw o instanceof Error&&(n.audio&&(this.microphoneError=o),n.video&&(this.cameraError=o)),o}return n.audio&&(this.microphoneError=void 0,this.emit(FA.AudioStreamAcquired)),n.video&&(this.cameraError=void 0),i.getTracks().map((t=>{const r="audio"===t.kind;let o;r?e.audio:e.video;const a=r?n.audio:n.video;"boolean"!=typeof a&&(o=a);const s=kx(t,o,{loggerName:this.roomOptions.loggerName,loggerContextCb:()=>this.logContext});return s.kind===GC.Kind.Video?s.source=GC.Source.Camera:s.kind===GC.Kind.Audio&&(s.source=GC.Source.Microphone),s.mediaStream=i,s}))}))}createScreenTracks(e){return $v(this,void 0,void 0,(function*(){if(void 0===e&&(e={}),void 0===navigator.mediaDevices.getDisplayMedia)throw new jA("getDisplayMedia not supported");void 0!==e.resolution||dE()||(e.resolution=rC.h1080fps30.resolution);const t=$C(e),r=yield navigator.mediaDevices.getDisplayMedia(t),n=r.getVideoTracks();if(0===n.length)throw new DA("no video track found");const i=new Fx(n[0],void 0,!1,{loggerName:this.roomOptions.loggerName,loggerContextCb:()=>this.logContext});i.source=GC.Source.ScreenShare,e.contentHint&&(i.mediaStreamTrack.contentHint=e.contentHint);const o=[i];if(r.getAudioTracks().length>0){this.emit(FA.AudioStreamAcquired);const e=new Ix(r.getAudioTracks()[0],void 0,!1,this.audioContext,{loggerName:this.roomOptions.loggerName,loggerContextCb:()=>this.logContext});e.source=GC.Source.ScreenShareAudio,o.push(e)}return o}))}publishTrack(e,t){var r,n,i,o;return $v(this,void 0,void 0,(function*(){let a,s;if(yield null===(r=this.reconnectFuture)||void 0===r?void 0:r.promise,e instanceof BE&&this.pendingPublishPromises.has(e)&&(yield this.pendingPublishPromises.get(e)),e instanceof MediaStreamTrack)a=e.getConstraints();else{let t;switch(a=e.constraints,e.source){case GC.Source.Microphone:t="audioinput";break;case GC.Source.Camera:t="videoinput"}t&&this.activeDeviceMap.has(t)&&(a=Object.assign(Object.assign({},a),{deviceId:this.activeDeviceMap.get(t)}))}if(e instanceof MediaStreamTrack)switch(e.kind){case"audio":e=new Ix(e,a,!0,this.audioContext,{loggerName:this.roomOptions.loggerName,loggerContextCb:()=>this.logContext});break;case"video":e=new Fx(e,a,!0,{loggerName:this.roomOptions.loggerName,loggerContextCb:()=>this.logContext});break;default:throw new DA("unsupported MediaStreamTrack kind ".concat(e.kind))}else e.updateLoggerOptions({loggerName:this.roomOptions.loggerName,loggerContextCb:()=>this.logContext});if(e instanceof Ix&&e.setAudioContext(this.audioContext),this.tracks.forEach((t=>{t.track&&t.track===e&&(s=t)})),s)return this.log.warn("track has already been published, skipping",Object.assign(Object.assign({},this.logContext),tE(s))),s;const c="channelCount"in e.mediaStreamTrack.getSettings()&&2===e.mediaStreamTrack.getSettings().channelCount||2===e.mediaStreamTrack.getConstraints().channelCount,u=null!==(n=null==t?void 0:t.forceStereo)&&void 0!==n?n:c;u&&(t||(t={}),void 0===t.dtx&&this.log.info("Opus DTX will be disabled for stereo tracks by default. Enable them explicitly to make it work.",Object.assign(Object.assign({},this.logContext),tE(e))),void 0===t.red&&this.log.info("Opus RED will be disabled for stereo tracks by default. Enable them explicitly to make it work."),null!==(i=t.dtx)&&void 0!==i||(t.dtx=!1),null!==(o=t.red)&&void 0!==o||(t.red=!1));const l=Object.assign(Object.assign({},this.roomOptions.publishDefaults),t);lE()&&this.roomOptions.e2ee&&(this.log.info("End-to-end encryption is set up, simulcast publishing will be disabled on Safari",Object.assign({},this.logContext)),l.simulcast=!1),l.source&&(e.source=l.source);const d=this.publish(e,l,u);this.pendingPublishPromises.set(e,d);try{return yield d}catch($R){throw $R}finally{this.pendingPublishPromises.delete(e)}}))}publish(e,t,r){var n,i,o,a,s,c,u,l,d,f,h,p,g;return $v(this,void 0,void 0,(function*(){Array.from(this.tracks.values()).find((t=>e instanceof BE&&t.source===e.source))&&e.source!==GC.Source.Unknown&&this.log.info("publishing a second track with the same source: ".concat(e.source),Object.assign(Object.assign({},this.logContext),tE(e))),t.stopMicTrackOnMute&&e instanceof Ix&&(e.stopOnMute=!0),e.source===GC.Source.ScreenShare&&uE()&&(t.simulcast=!1),"av1"!==t.videoCodec||function(){if(!("getCapabilities"in RTCRtpSender))return!1;if(lE())return!1;const e=RTCRtpSender.getCapabilities("video");let t=!1;if(e)for(const r of e.codecs)if("video/AV1"===r.mimeType){t=!0;break}return t}()||(t.videoCodec=void 0),"vp9"!==t.videoCodec||function(){if(!("getCapabilities"in RTCRtpSender))return!1;if(uE())return!1;if(lE()){const e=GA();if((null==e?void 0:e.version)&&vE(e.version,"16")<0)return!1}const e=RTCRtpSender.getCapabilities("video");let t=!1;if(e)for(const r of e.codecs)if("video/VP9"===r.mimeType){t=!0;break}return t}()||(t.videoCodec=void 0),void 0===t.videoCodec&&(t.videoCodec=ux);const m=t.videoCodec;e.on(zA.Muted,this.onTrackMuted),e.on(zA.Unmuted,this.onTrackUnmuted),e.on(zA.Ended,this.handleTrackEnded),e.on(zA.UpstreamPaused,this.onTrackUpstreamPaused),e.on(zA.UpstreamResumed,this.onTrackUpstreamResumed);const y=new uC({cid:e.mediaStreamTrack.id,name:t.name,type:GC.kindToProto(e.kind),muted:e.isMuted,source:GC.sourceToProto(e.source),disableDtx:!(null===(n=t.dtx)||void 0===n||n),encryption:this.encryptionType,stereo:r,disableRed:this.isE2EEEnabled||!(null===(i=t.red)||void 0===i||i),stream:null==t?void 0:t.stream});let b;if(e.kind===GC.Kind.Video){let r={width:0,height:0};try{r=yield e.waitForDimensions()}catch($R){const n=null!==(a=null===(o=this.roomOptions.videoCaptureDefaults)||void 0===o?void 0:o.resolution)&&void 0!==a?a:eC.h720.resolution;r={width:n.width,height:n.height},this.log.error("could not determine track dimensions, using defaults",Object.assign(Object.assign(Object.assign({},this.logContext),tE(e)),{dims:r}))}y.width=r.width,y.height=r.height,e instanceof Fx&&(aE(m)&&(e.source===GC.Source.ScreenShare&&"vp9"===m&&(t.scalabilityMode="L1T3"),t.scalabilityMode=null!==(s=t.scalabilityMode)&&void 0!==s?s:"L3T3_KEY"),y.simulcastCodecs=[new cC({codec:m,cid:e.mediaStreamTrack.id})],!0===t.backupCodec&&(t.backupCodec={codec:ux}),t.backupCodec&&m!==t.backupCodec.codec&&y.encryption===Tv.NONE&&(this.roomOptions.dynacast||(this.roomOptions.dynacast=!0),y.simulcastCodecs.push(new cC({codec:t.backupCodec.codec,cid:""})))),b=Ox(e.source===GC.Source.ScreenShare,y.width,y.height,t),y.layers=Hx(y.width,y.height,b,aE(t.videoCodec))}else e.kind===GC.Kind.Audio&&(b=[{maxBitrate:null!==(u=null===(c=t.audioPreset)||void 0===c?void 0:c.maxBitrate)&&void 0!==u?u:t.audioBitrate,priority:null!==(d=null===(l=t.audioPreset)||void 0===l?void 0:l.priority)&&void 0!==d?d:"high",networkPriority:null!==(h=null===(f=t.audioPreset)||void 0===f?void 0:f.priority)&&void 0!==h?h:"high"}]);if(!this.engine||this.engine.isClosed)throw new BA("cannot publish track when not connected");const v=yield this.engine.addTrack(y);let w;if(v.codecs.forEach((e=>{void 0===w&&(w=e.mimeType)})),w&&e.kind===GC.Kind.Video){const r=XC(w);r!==m&&(this.log.debug("falling back to server selected codec",Object.assign(Object.assign(Object.assign({},this.logContext),tE(e)),{codec:r})),t.videoCodec=r,b=Ox(e.source===GC.Source.ScreenShare,y.width,y.height,t))}const A=new Jx(e.kind,v,e,{loggerName:this.roomOptions.loggerName,loggerContextCb:()=>this.logContext});if(A.options=t,e.sid=v.sid,!this.engine.pcManager)throw new BA("pcManager is not ready");if(this.log.debug("publishing ".concat(e.kind," with encodings"),Object.assign(Object.assign({},this.logContext),{encodings:b,trackInfo:v})),e.sender=yield this.engine.createSender(e,t,b),b)if(uE()&&e.kind===GC.Kind.Audio){let t;for(const r of this.engine.pcManager.publisher.getTransceivers())if(r.sender===e.sender){t=r;break}t&&this.engine.pcManager.publisher.setTrackCodecBitrate({transceiver:t,codec:"opus",maxbr:(null===(p=b[0])||void 0===p?void 0:p.maxBitrate)?b[0].maxBitrate/1e3:0})}else e.codec&&aE(e.codec)&&(null===(g=b[0])||void 0===g?void 0:g.maxBitrate)&&this.engine.pcManager.publisher.setTrackCodecBitrate({cid:y.cid,codec:e.codec,maxbr:b[0].maxBitrate/1e3});return yield this.engine.negotiate(),e instanceof Fx?e.startMonitor(this.engine.client):e instanceof Ix&&e.startMonitor(),this.addTrackPublication(A),this.emit(FA.LocalTrackPublished,A),A}))}get isLocal(){return!0}publishAdditionalCodecForTrack(e,t,r){var n;return $v(this,void 0,void 0,(function*(){if(this.encryptionType!==Tv.NONE)return;let i;if(this.tracks.forEach((t=>{t.track&&t.track===e&&(i=t)})),!i)throw new DA("track is not published");if(!(e instanceof Fx))throw new DA("track is not a video track");const o=Object.assign(Object.assign({},null===(n=this.roomOptions)||void 0===n?void 0:n.publishDefaults),r),a=function(e,t,r){var n,i,o,a;if(!r.backupCodec||!0===r.backupCodec||r.backupCodec.codec===r.videoCodec)return;t!==r.backupCodec.codec&&Vy.warn("requested a different codec than specified as backup",{serverRequested:t,backup:r.backupCodec.codec}),r.videoCodec=t,r.videoEncoding=r.backupCodec.encoding;const s=e.mediaStreamTrack.getSettings(),c=null!==(n=s.width)&&void 0!==n?n:null===(i=e.dimensions)||void 0===i?void 0:i.width,u=null!==(o=s.height)&&void 0!==o?o:null===(a=e.dimensions)||void 0===a?void 0:a.height;return Ox(e.source===GC.Source.ScreenShare,c,u,r)}(e,t,o);if(!a)return void this.log.info("backup codec has been disabled, ignoring request to add additional codec for track",Object.assign(Object.assign({},this.logContext),tE(e)));const s=e.addSimulcastTrack(t,a),c=new uC({cid:s.mediaStreamTrack.id,type:GC.kindToProto(e.kind),muted:e.isMuted,source:GC.sourceToProto(e.source),sid:e.sid,simulcastCodecs:[{codec:o.videoCodec,cid:s.mediaStreamTrack.id}]});if(c.layers=Hx(c.width,c.height,a),!this.engine||this.engine.isClosed)throw new BA("cannot publish track when not connected");const u=yield this.engine.addTrack(c);yield this.engine.createSimulcastSender(e,s,o,a),yield this.engine.negotiate(),this.log.debug("published ".concat(t," for track ").concat(e.sid),Object.assign(Object.assign({},this.logContext),{encodings:a,trackInfo:u}))}))}unpublishTrack(e,t){var r,n;return $v(this,void 0,void 0,(function*(){const i=this.getPublicationForTrack(e),o=i?tE(i):void 0;if(this.log.debug("unpublishing track",Object.assign(Object.assign({},this.logContext),o)),!i||!i.track)return void this.log.warn("track was not unpublished because no publication was found",Object.assign(Object.assign({},this.logContext),o));(e=i.track).off(zA.Muted,this.onTrackMuted),e.off(zA.Unmuted,this.onTrackUnmuted),e.off(zA.Ended,this.handleTrackEnded),e.off(zA.UpstreamPaused,this.onTrackUpstreamPaused),e.off(zA.UpstreamResumed,this.onTrackUpstreamResumed),void 0===t&&(t=null===(n=null===(r=this.roomOptions)||void 0===r?void 0:r.stopLocalTrackOnUnpublish)||void 0===n||n),t&&e.stop();let a=!1;const s=e.sender;if(e.sender=void 0,this.engine.pcManager&&this.engine.pcManager.currentStatethis.unpublishTrack(e))))).filter((e=>e instanceof Jx))}))}republishAllTracks(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return $v(this,void 0,void 0,(function*(){const r=[];this.tracks.forEach((t=>{t.track&&(e&&(t.options=Object.assign(Object.assign({},t.options),e)),r.push(t))})),yield Promise.all(r.map((e=>$v(this,void 0,void 0,(function*(){const r=e.track;yield this.unpublishTrack(r,!1),t&&!r.isMuted&&r.source!==GC.Source.ScreenShare&&r.source!==GC.Source.ScreenShareAudio&&(r instanceof Ix||r instanceof Fx)&&!r.isUserProvided&&(this.log.debug("restarting existing track",Object.assign(Object.assign({},this.logContext),{track:e.trackSid})),yield r.restartTrack()),yield this.publishTrack(r,e.options)})))))}))}publishData(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return $v(this,void 0,void 0,(function*(){const n=Array.isArray(r)?r:null==r?void 0:r.destination,i=[],o=Array.isArray(r)?void 0:r.topic;void 0!==n&&n.forEach((e=>{e instanceof eS?i.push(e.sid):i.push(e)}));const a=new Rv({kind:t,value:{case:"user",value:new Uv({participantSid:this.sid,payload:e,destinationSids:i,topic:o})}});yield this.engine.sendDataPacket(a,t)}))}setTrackSubscriptionPermissions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.participantTrackPermissions=t,this.allParticipantsAllowedToSubscribe=e,this.engine.client.isDisconnected||this.updateTrackSubscriptionPermissions()}updateInfo(e){return e.sid===this.sid&&(!!super.updateInfo(e)&&(e.tracks.forEach((e=>{var t,r;const n=this.tracks.get(e.sid);if(n){const i=n.isMuted||null!==(r=null===(t=n.track)||void 0===t?void 0:t.isUpstreamPaused)&&void 0!==r&&r;i!==e.muted&&(this.log.debug("updating server mute state after reconcile",Object.assign(Object.assign(Object.assign({},this.logContext),tE(n)),{mutedOnServer:i})),this.engine.client.sendMuteTrack(e.sid,i))}})),!0))}getPublicationForTrack(e){let t;return this.tracks.forEach((r=>{const n=r.track;n&&(e instanceof MediaStreamTrack?(n instanceof Ix||n instanceof Fx)&&n.mediaStreamTrack===e&&(t=r):e===n&&(t=r))})),t}}!function(e){e.Disconnected="disconnected",e.Connecting="connecting",e.Connected="connected",e.Reconnecting="reconnecting"}(Zx||(Zx={}));class rS extends yw.EventEmitter{constructor(e){var t,r,n;super(),t=this,this.state=Zx.Disconnected,this.activeSpeakers=[],this.isE2EEEnabled=!1,this.audioEnabled=!0,this.isVideoPlaybackBlocked=!1,this.log=Vy,this.bufferedEvents=[],this.connect=(e,t,r)=>$v(this,void 0,void 0,(function*(){var n;const i=yield this.disconnectLock.lock();if(this.state===Zx.Connected)return this.log.info("already connected to room ".concat(this.name),this.logContext),i(),Promise.resolve();if(this.connectFuture)return i(),this.connectFuture.promise;this.setAndEmitConnectionState(Zx.Connecting),(null===(n=this.regionUrlProvider)||void 0===n?void 0:n.getServerUrl().toString())!==e&&(this.regionUrl=void 0,this.regionUrlProvider=void 0),gE(new URL(e))&&(void 0===this.regionUrlProvider?this.regionUrlProvider=new Ex(e,t):this.regionUrlProvider.updateToken(t),this.regionUrlProvider.fetchRegionSettings().catch((e=>{this.log.warn("could not fetch region settings",Object.assign(Object.assign({},this.logContext),{error:e}))})));const o=(n,a,s)=>$v(this,void 0,void 0,(function*(){var c;this.abortController&&this.abortController.abort();const u=new AbortController;this.abortController=u,null==i||i();try{yield this.attemptConnection(null!=s?s:e,t,r,u),this.abortController=void 0,n()}catch($R){if(this.regionUrlProvider&&$R instanceof PA&&3!==$R.reason&&0!==$R.reason){let t=null;try{t=yield this.regionUrlProvider.getNextBestRegionUrl(null===(c=this.abortController)||void 0===c?void 0:c.signal)}catch(ys){if(ys instanceof PA&&(401===ys.status||3===ys.reason))return this.handleDisconnect(this.options.stopLocalTrackOnUnpublish),void a(ys)}t?(this.log.info("Initial connection failed with ConnectionError: ".concat($R.message,". Retrying with another region: ").concat(t),this.logContext),yield o(n,a,t)):(this.handleDisconnect(this.options.stopLocalTrackOnUnpublish),a($R))}else this.handleDisconnect(this.options.stopLocalTrackOnUnpublish),a($R)}})),a=this.regionUrl;return this.regionUrl=void 0,this.connectFuture=new TE(((e,t)=>{o(e,t,a)}),(()=>{this.clearConnectionFutures()})),this.connectFuture.promise})),this.connectSignal=(e,t,r,n,i,o)=>$v(this,void 0,void 0,(function*(){var a,s,c;const u=yield r.join(e,t,{autoSubscribe:n.autoSubscribe,publishOnly:n.publishOnly,adaptiveStream:"object"==typeof i.adaptiveStream||i.adaptiveStream,maxRetries:n.maxRetries,e2eeEnabled:!!this.e2eeManager,websocketTimeout:n.websocketTimeout},o.signal);let l=u.serverInfo;if(l||(l={version:u.serverVersion,region:u.serverRegion}),this.log.debug("connected to Livekit Server ".concat(Object.entries(l).map((e=>{let[t,r]=e;return"".concat(t,": ").concat(r)})).join(", ")),{room:null===(a=u.room)||void 0===a?void 0:a.name,roomSid:null===(s=u.room)||void 0===s?void 0:s.sid,identity:null===(c=u.participant)||void 0===c?void 0:c.identity}),!u.serverVersion)throw new OA("unknown server version");return"0.15.1"===u.serverVersion&&this.options.dynacast&&(this.log.debug("disabling dynacast due to server version",this.logContext),i.dynacast=!1),u})),this.applyJoinResponse=e=>{const t=e.participant;this.localParticipant.sid=t.sid,this.localParticipant.identity=t.identity,this.handleParticipantUpdates([t,...e.otherParticipants]),e.room&&this.handleRoomUpdate(e.room),this.options.e2ee&&this.e2eeManager&&this.e2eeManager.setSifTrailer(e.sifTrailer)},this.attemptConnection=(e,t,r,n)=>$v(this,void 0,void 0,(function*(){var i,o;this.state===Zx.Reconnecting?(this.log.info("Reconnection attempt replaced by new connection attempt",this.logContext),this.recreateEngine()):this.maybeCreateEngine(),(null===(i=this.regionUrlProvider)||void 0===i?void 0:i.isCloud())&&this.engine.setRegionUrlProvider(this.regionUrlProvider),this.acquireAudioContext(),this.connOptions=Object.assign(Object.assign({},px),r),this.connOptions.rtcConfig&&(this.engine.rtcConfig=this.connOptions.rtcConfig),this.connOptions.peerConnectionTimeout&&(this.engine.peerConnectionTimeout=this.connOptions.peerConnectionTimeout);try{const r=yield this.connectSignal(e,t,this.engine,this.connOptions,this.options,n);this.applyJoinResponse(r),this.setupLocalParticipantEvents(),this.emit(LA.SignalConnected)}catch(a){yield this.engine.close(),this.recreateEngine();const e=new PA("could not establish signal connection");throw a instanceof Error&&(e.message="".concat(e.message,": ").concat(a.message)),a instanceof PA&&(e.reason=a.reason,e.status=a.status),this.log.debug("error trying to establish signal connection",Object.assign(Object.assign({},this.logContext),{error:a})),e}if(n.signal.aborted)throw yield this.engine.close(),this.recreateEngine(),new PA("Connection attempt aborted");try{yield this.engine.waitForPCInitialConnection(this.connOptions.peerConnectionTimeout,n)}catch($R){throw yield this.engine.close(),this.recreateEngine(),$R}hE()&&this.options.disconnectOnPageLeave&&(window.addEventListener("pagehide",this.onPageLeave),window.addEventListener("beforeunload",this.onPageLeave)),hE()&&(document.addEventListener("freeze",this.onPageLeave),null===(o=navigator.mediaDevices)||void 0===o||o.addEventListener("devicechange",this.handleDeviceChange)),this.setAndEmitConnectionState(Zx.Connected),this.emit(LA.Connected),this.registerConnectionReconcile()})),this.disconnect=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return $v(t,void 0,void 0,(function*(){var t,r,n,i;const o=yield this.disconnectLock.lock();try{if(this.state===Zx.Disconnected)return void this.log.debug("already disconnected",this.logContext);this.log.info("disconnect from room",Object.assign({},this.logContext)),this.state!==Zx.Connecting&&this.state!==Zx.Reconnecting||(this.log.warn("abort connection attempt",this.logContext),null===(t=this.abortController)||void 0===t||t.abort(),null===(n=null===(r=this.connectFuture)||void 0===r?void 0:r.reject)||void 0===n||n.call(r,new PA("Client initiated disconnect")),this.connectFuture=void 0),(null===(i=this.engine)||void 0===i?void 0:i.client.isDisconnected)||(yield this.engine.client.sendLeave()),this.engine&&(yield this.engine.close()),this.handleDisconnect(e,bv.CLIENT_INITIATED),this.engine=void 0}finally{o()}}))},this.onPageLeave=()=>$v(this,void 0,void 0,(function*(){yield this.disconnect()})),this.startAudio=()=>$v(this,void 0,void 0,(function*(){const e=[],t=GA();if(t&&"iOS"===t.os){const t="livekit-dummy-audio-el";let r=document.getElementById(t);if(!r){r=document.createElement("audio"),r.id=t,r.autoplay=!0,r.hidden=!0;const e=_E();e.enabled=!0;const n=new MediaStream([e]);r.srcObject=n,document.addEventListener("visibilitychange",(()=>{r&&(r.srcObject=document.hidden?null:n,document.hidden||(this.log.debug("page visible again, triggering startAudio to resume playback and update playback status",this.logContext),this.startAudio()))})),document.body.append(r),this.once(LA.Disconnected,(()=>{null==r||r.remove(),r=null}))}e.push(r)}this.participants.forEach((t=>{t.audioTracks.forEach((t=>{t.track&&t.track.attachedElements.forEach((t=>{e.push(t)}))}))}));try{yield Promise.all([this.acquireAudioContext(),...e.map((e=>(e.muted=!1,e.play())))]),this.handleAudioPlaybackStarted()}catch(r){throw this.handleAudioPlaybackFailed(r),r}})),this.startVideo=()=>$v(this,void 0,void 0,(function*(){const e=[];for(const t of this.participants.values())t.videoTracks.forEach((t=>{var r;null===(r=t.track)||void 0===r||r.attachedElements.forEach((t=>{e.includes(t)||e.push(t)}))}));yield Promise.all(e.map((e=>e.play()))).then((()=>{this.handleVideoPlaybackStarted()})).catch((e=>{"NotAllowedError"===e.name?this.handleVideoPlaybackFailed():this.log.warn("Resuming video playback failed, make sure you call `startVideo` directly in a user gesture handler",this.logContext)}))})),this.handleRestarting=()=>{this.clearConnectionReconcile();for(const e of this.participants.values())this.handleParticipantDisconnected(e.sid,e);this.setAndEmitConnectionState(Zx.Reconnecting)&&this.emit(LA.Reconnecting)},this.handleSignalRestarted=e=>$v(this,void 0,void 0,(function*(){this.log.debug("signal reconnected to server, region ".concat(e.serverRegion),Object.assign(Object.assign({},this.logContext),{region:e.serverRegion})),this.bufferedEvents=[],this.applyJoinResponse(e);try{yield this.localParticipant.republishAllTracks(void 0,!0)}catch(ys){this.log.error("error trying to re-publish tracks after reconnection",Object.assign(Object.assign({},this.logContext),{error:ys}))}try{yield this.engine.waitForRestarted(),this.log.debug("fully reconnected to server",Object.assign(Object.assign({},this.logContext),{region:e.serverRegion}))}catch(t){return}this.setAndEmitConnectionState(Zx.Connected),this.emit(LA.Reconnected),this.registerConnectionReconcile(),this.emitBufferedEvents()})),this.handleParticipantUpdates=e=>{e.forEach((e=>{if(e.identity===this.localParticipant.identity)return void this.localParticipant.updateInfo(e);const t=this.identityToSid.get(e.identity);t&&t!==e.sid&&this.handleParticipantDisconnected(t,this.participants.get(t));let r=this.participants.get(e.sid);const n=!r;e.state===_v.DISCONNECTED?this.handleParticipantDisconnected(e.sid,r):(r=this.getOrCreateParticipant(e.sid,e),n||r.updateInfo(e))}))},this.handleActiveSpeakersUpdate=e=>{const t=[],r={};e.forEach((e=>{if(r[e.sid]=!0,e.sid===this.localParticipant.sid)this.localParticipant.audioLevel=e.level,this.localParticipant.setIsSpeaking(!0),t.push(this.localParticipant);else{const r=this.participants.get(e.sid);r&&(r.audioLevel=e.level,r.setIsSpeaking(!0),t.push(r))}})),r[this.localParticipant.sid]||(this.localParticipant.audioLevel=0,this.localParticipant.setIsSpeaking(!1)),this.participants.forEach((e=>{r[e.sid]||(e.audioLevel=0,e.setIsSpeaking(!1))})),this.activeSpeakers=t,this.emitWhenConnected(LA.ActiveSpeakersChanged,t)},this.handleSpeakersChanged=e=>{const t=new Map;this.activeSpeakers.forEach((e=>{t.set(e.sid,e)})),e.forEach((e=>{let r=this.participants.get(e.sid);e.sid===this.localParticipant.sid&&(r=this.localParticipant),r&&(r.audioLevel=e.level,r.setIsSpeaking(e.active),e.active?t.set(e.sid,r):t.delete(e.sid))}));const r=Array.from(t.values());r.sort(((e,t)=>t.audioLevel-e.audioLevel)),this.activeSpeakers=r,this.emitWhenConnected(LA.ActiveSpeakersChanged,r)},this.handleStreamStateUpdate=e=>{e.streamStates.forEach((e=>{const t=this.participants.get(e.participantSid);if(!t)return;const r=t.getTrackPublication(e.trackSid);r&&r.track&&(r.track.streamState=GC.streamStateFromProto(e.state),t.emit(FA.TrackStreamStateChanged,r,r.track.streamState),this.emitWhenConnected(LA.TrackStreamStateChanged,r,r.track.streamState,t))}))},this.handleSubscriptionPermissionUpdate=e=>{const t=this.participants.get(e.participantSid);if(!t)return;const r=t.getTrackPublication(e.trackSid);r&&r.setAllowed(e.allowed)},this.handleSubscriptionError=e=>{const t=Array.from(this.participants.values()).find((t=>t.tracks.has(e.trackSid)));if(!t)return;const r=t.getTrackPublication(e.trackSid);r&&r.setSubscriptionError(e.err)},this.handleDataPacket=(e,t)=>{const r=this.participants.get(e.participantSid);this.emit(LA.DataReceived,e.payload,r,t,e.topic),null==r||r.emit(FA.DataReceived,e.payload,t)},this.handleAudioPlaybackStarted=()=>{this.canPlaybackAudio||(this.audioEnabled=!0,this.emit(LA.AudioPlaybackStatusChanged,!0))},this.handleAudioPlaybackFailed=e=>{this.log.warn("could not playback audio",Object.assign(Object.assign({},this.logContext),{error:e})),this.canPlaybackAudio&&(this.audioEnabled=!1,this.emit(LA.AudioPlaybackStatusChanged,!1))},this.handleVideoPlaybackStarted=()=>{this.isVideoPlaybackBlocked&&(this.isVideoPlaybackBlocked=!1,this.emit(LA.VideoPlaybackStatusChanged,!0))},this.handleVideoPlaybackFailed=()=>{this.isVideoPlaybackBlocked||(this.isVideoPlaybackBlocked=!0,this.emit(LA.VideoPlaybackStatusChanged,!1))},this.handleDeviceChange=()=>$v(this,void 0,void 0,(function*(){this.emit(LA.MediaDevicesChanged)})),this.handleRoomUpdate=e=>{const t=this.roomInfo;this.roomInfo=e,t&&t.metadata!==e.metadata&&this.emitWhenConnected(LA.RoomMetadataChanged,e.metadata),(null==t?void 0:t.activeRecording)!==e.activeRecording&&this.emitWhenConnected(LA.RecordingStatusChanged,e.activeRecording)},this.handleConnectionQualityUpdate=e=>{e.updates.forEach((e=>{if(e.participantSid===this.localParticipant.sid)return void this.localParticipant.setConnectionQuality(e.quality);const t=this.participants.get(e.participantSid);t&&t.setConnectionQuality(e.quality)}))},this.onLocalParticipantMetadataChanged=e=>{this.emit(LA.ParticipantMetadataChanged,e,this.localParticipant)},this.onLocalParticipantNameChanged=e=>{this.emit(LA.ParticipantNameChanged,e,this.localParticipant)},this.onLocalTrackMuted=e=>{this.emit(LA.TrackMuted,e,this.localParticipant)},this.onLocalTrackUnmuted=e=>{this.emit(LA.TrackUnmuted,e,this.localParticipant)},this.onLocalTrackPublished=e=>$v(this,void 0,void 0,(function*(){var t;if(this.emit(LA.LocalTrackPublished,e,this.localParticipant),e.track instanceof Ix){(yield e.track.checkForSilence())&&this.emit(LA.LocalAudioSilenceDetected,e)}const r=yield null===(t=e.track)||void 0===t?void 0:t.getDeviceId(),n=(i=e.source)===GC.Source.Microphone?"audioinput":i===GC.Source.Camera?"videoinput":void 0;var i;n&&r&&r!==this.localParticipant.activeDeviceMap.get(n)&&(this.localParticipant.activeDeviceMap.set(n,r),this.emit(LA.ActiveDeviceChanged,n,r))})),this.onLocalTrackUnpublished=e=>{this.emit(LA.LocalTrackUnpublished,e,this.localParticipant)},this.onLocalConnectionQualityChanged=e=>{this.emit(LA.ConnectionQualityChanged,e,this.localParticipant)},this.onMediaDevicesError=e=>{this.emit(LA.MediaDevicesError,e)},this.onLocalParticipantPermissionsChanged=e=>{this.emit(LA.ParticipantPermissionsChanged,e,this.localParticipant)},this.setMaxListeners(100),this.participants=new Map,this.identityToSid=new Map,this.options=Object.assign(Object.assign({},hx),e),this.log=Ky(null!==(r=this.options.loggerName)&&void 0!==r?r:zy.Room),this.options.audioCaptureDefaults=Object.assign(Object.assign({},dx),null==e?void 0:e.audioCaptureDefaults),this.options.videoCaptureDefaults=Object.assign(Object.assign({},fx),null==e?void 0:e.videoCaptureDefaults),this.options.publishDefaults=Object.assign(Object.assign({},lx),null==e?void 0:e.publishDefaults),this.maybeCreateEngine(),this.disconnectLock=new ME,this.localParticipant=new tS("","",this.engine,this.options),this.options.videoCaptureDefaults.deviceId&&this.localParticipant.activeDeviceMap.set("videoinput",PE(this.options.videoCaptureDefaults.deviceId)),this.options.audioCaptureDefaults.deviceId&&this.localParticipant.activeDeviceMap.set("audioinput",PE(this.options.audioCaptureDefaults.deviceId)),(null===(n=this.options.audioOutput)||void 0===n?void 0:n.deviceId)&&this.switchActiveDevice("audiooutput",PE(this.options.audioOutput.deviceId)).catch((e=>this.log.warn("Could not set audio output: ".concat(e.message),this.logContext))),this.options.e2ee&&this.setupE2EE()}setE2EEEnabled(e){return $v(this,void 0,void 0,(function*(){if(!this.e2eeManager)throw Error("e2ee not configured, please set e2ee settings within the room options");yield Promise.all([this.localParticipant.setE2EEEnabled(e)]),""!==this.localParticipant.identity&&this.e2eeManager.setParticipantCryptorEnabled(e,this.localParticipant.identity)}))}setupE2EE(){var e;this.options.e2ee&&(this.e2eeManager=new NE(this.options.e2ee),this.e2eeManager.on(IA.ParticipantEncryptionStatusChanged,((e,t)=>{t instanceof tS&&(this.isE2EEEnabled=e),this.emit(LA.ParticipantEncryptionStatusChanged,e,t)})),this.e2eeManager.on(IA.EncryptionError,(e=>this.emit(LA.EncryptionError,e))),null===(e=this.e2eeManager)||void 0===e||e.setup(this))}get logContext(){return{room:this.name,roomSid:this.sid,identity:this.localParticipant.identity}}get isRecording(){var e,t;return null!==(t=null===(e=this.roomInfo)||void 0===e?void 0:e.activeRecording)&&void 0!==t&&t}get sid(){var e,t;return null!==(t=null===(e=this.roomInfo)||void 0===e?void 0:e.sid)&&void 0!==t?t:""}get name(){var e,t;return null!==(t=null===(e=this.roomInfo)||void 0===e?void 0:e.name)&&void 0!==t?t:""}get metadata(){var e;return null===(e=this.roomInfo)||void 0===e?void 0:e.metadata}get numParticipants(){var e,t;return null!==(t=null===(e=this.roomInfo)||void 0===e?void 0:e.numParticipants)&&void 0!==t?t:0}get numPublishers(){var e,t;return null!==(t=null===(e=this.roomInfo)||void 0===e?void 0:e.numPublishers)&&void 0!==t?t:0}maybeCreateEngine(){this.engine&&!this.engine.isClosed||(this.engine=new Ax(this.options),this.engine.on(UA.ParticipantUpdate,this.handleParticipantUpdates).on(UA.RoomUpdate,this.handleRoomUpdate).on(UA.SpeakersChanged,this.handleSpeakersChanged).on(UA.StreamStateChanged,this.handleStreamStateUpdate).on(UA.ConnectionQualityUpdate,this.handleConnectionQualityUpdate).on(UA.SubscriptionError,this.handleSubscriptionError).on(UA.SubscriptionPermissionUpdate,this.handleSubscriptionPermissionUpdate).on(UA.MediaTrackAdded,((e,t,r)=>{this.onTrackAdded(e,t,r)})).on(UA.Disconnected,(e=>{this.handleDisconnect(this.options.stopLocalTrackOnUnpublish,e)})).on(UA.ActiveSpeakersUpdate,this.handleActiveSpeakersUpdate).on(UA.DataPacketReceived,this.handleDataPacket).on(UA.Resuming,(()=>{this.clearConnectionReconcile(),this.setAndEmitConnectionState(Zx.Reconnecting)&&this.emit(LA.Reconnecting)})).on(UA.Resumed,(()=>{this.setAndEmitConnectionState(Zx.Connected),this.emit(LA.Reconnected),this.registerConnectionReconcile(),this.updateSubscriptions(),this.emitBufferedEvents()})).on(UA.SignalResumed,(()=>{this.bufferedEvents=[],this.state===Zx.Reconnecting&&this.sendSyncState()})).on(UA.Restarting,this.handleRestarting).on(UA.SignalRestarted,this.handleSignalRestarted).on(UA.DCBufferStatusChanged,((e,t)=>{this.emit(LA.DCBufferStatusChanged,e,t)})),this.localParticipant&&this.localParticipant.setupEngine(this.engine),this.e2eeManager&&this.e2eeManager.setupEngine(this.engine))}static getLocalDevices(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return OE.getInstance().getDevices(e,t)}prepareConnection(e,t){return $v(this,void 0,void 0,(function*(){if(this.state===Zx.Disconnected){this.log.debug("prepareConnection to ".concat(e),this.logContext);try{if(gE(new URL(e))&&t){this.regionUrlProvider=new Ex(e,t);const r=yield this.regionUrlProvider.getNextBestRegionUrl();r&&this.state===Zx.Disconnected&&(this.regionUrl=r,yield fetch(jE(r),{method:"HEAD"}),this.log.debug("prepared connection to ".concat(r),this.logContext))}else yield fetch(jE(e),{method:"HEAD"})}catch($R){this.log.warn("could not prepare connection",Object.assign(Object.assign({},this.logContext),{error:$R}))}}}))}getParticipantByIdentity(e){if(this.localParticipant.identity===e)return this.localParticipant;const t=this.identityToSid.get(e);return t?this.participants.get(t):void 0}clearConnectionFutures(){this.connectFuture=void 0}simulateScenario(e,t){return $v(this,void 0,void 0,(function*(){let r,n=()=>{};switch(e){case"signal-reconnect":yield this.engine.client.handleOnClose("simulate disconnect");break;case"speaker":r=new LC({scenario:{case:"speakerUpdate",value:3}});break;case"node-failure":r=new LC({scenario:{case:"nodeFailure",value:!0}});break;case"server-leave":r=new LC({scenario:{case:"serverLeave",value:!0}});break;case"migration":r=new LC({scenario:{case:"migration",value:!0}});break;case"resume-reconnect":this.engine.failNext(),yield this.engine.client.handleOnClose("simulate resume-disconnect");break;case"disconnect-signal-on-resume":n=()=>$v(this,void 0,void 0,(function*(){yield this.engine.client.handleOnClose("simulate resume-disconnect")})),r=new LC({scenario:{case:"disconnectSignalOnResume",value:!0}});break;case"disconnect-signal-on-resume-no-messages":n=()=>$v(this,void 0,void 0,(function*(){yield this.engine.client.handleOnClose("simulate resume-disconnect")})),r=new LC({scenario:{case:"disconnectSignalOnResumeNoMessages",value:!0}});break;case"full-reconnect":this.engine.fullReconnectOnNext=!0,yield this.engine.client.handleOnClose("simulate full-reconnect");break;case"force-tcp":case"force-tls":r=new LC({scenario:{case:"switchCandidateProtocol",value:"force-tls"===e?2:1}}),n=()=>$v(this,void 0,void 0,(function*(){const e=this.engine.client.onLeave;e&&e(new wC({reason:bv.CLIENT_INITIATED,canReconnect:!0}))}));break;case"subscriber-bandwidth":if(void 0===t||"number"!=typeof t)throw new Error("subscriber-bandwidth requires a number as argument");r=new LC({scenario:{case:"subscriberBandwidth",value:BigInt(t)}})}r&&(yield this.engine.client.sendSimulateScenario(r),yield n())}))}get canPlaybackAudio(){return this.audioEnabled}get canPlaybackVideo(){return!this.isVideoPlaybackBlocked}getActiveAudioOutputDevice(){var e,t;return null!==(t=null===(e=this.options.audioOutput)||void 0===e?void 0:e.deviceId)&&void 0!==t?t:""}getActiveDevice(e){return this.localParticipant.activeDeviceMap.get(e)}switchActiveDevice(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n,i,o;return $v(this,void 0,void 0,(function*(){let a=!1,s=!0;const c=r?{exact:t}:t;if("audioinput"===e){const e=this.options.audioCaptureDefaults.deviceId;this.options.audioCaptureDefaults.deviceId=c,a=e!==c;const t=Array.from(this.localParticipant.audioTracks.values()).filter((e=>e.source===GC.Source.Microphone));try{s=(yield Promise.all(t.map((e=>{var t;return null===(t=e.audioTrack)||void 0===t?void 0:t.setDeviceId(c)})))).every((e=>!0===e))}catch($R){throw this.options.audioCaptureDefaults.deviceId=e,$R}}else if("videoinput"===e){const e=this.options.videoCaptureDefaults.deviceId;this.options.videoCaptureDefaults.deviceId=c,a=e!==c;const t=Array.from(this.localParticipant.videoTracks.values()).filter((e=>e.source===GC.Source.Camera));try{s=(yield Promise.all(t.map((e=>{var t;return null===(t=e.videoTrack)||void 0===t?void 0:t.setDeviceId(c)})))).every((e=>!0===e))}catch($R){throw this.options.videoCaptureDefaults.deviceId=e,$R}}else if("audiooutput"===e){if(!sE()&&!this.options.expWebAudioMix||this.options.expWebAudioMix&&this.audioContext&&!("setSinkId"in this.audioContext))throw new Error("cannot switch audio output, setSinkId not supported");null!==(n=(o=this.options).audioOutput)&&void 0!==n||(o.audioOutput={});const e=this.options.audioOutput.deviceId;this.options.audioOutput.deviceId=t,a=e!==c;try{this.options.expWebAudioMix?null===(i=this.audioContext)||void 0===i||i.setSinkId(t):yield Promise.all(Array.from(this.participants.values()).map((e=>e.setAudioOutput({deviceId:t}))))}catch($R){throw this.options.audioOutput.deviceId=e,$R}}return a&&s&&(this.localParticipant.activeDeviceMap.set(e,t),this.emit(LA.ActiveDeviceChanged,e,t)),s}))}setupLocalParticipantEvents(){this.localParticipant.on(FA.ParticipantMetadataChanged,this.onLocalParticipantMetadataChanged).on(FA.ParticipantNameChanged,this.onLocalParticipantNameChanged).on(FA.TrackMuted,this.onLocalTrackMuted).on(FA.TrackUnmuted,this.onLocalTrackUnmuted).on(FA.LocalTrackPublished,this.onLocalTrackPublished).on(FA.LocalTrackUnpublished,this.onLocalTrackUnpublished).on(FA.ConnectionQualityChanged,this.onLocalConnectionQualityChanged).on(FA.MediaDevicesError,this.onMediaDevicesError).on(FA.AudioStreamAcquired,this.startAudio).on(FA.ParticipantPermissionsChanged,this.onLocalParticipantPermissionsChanged)}recreateEngine(){var e;null===(e=this.engine)||void 0===e||e.close(),this.engine=void 0,this.participants.clear(),this.bufferedEvents=[],this.maybeCreateEngine()}onTrackAdded(e,t,r){if(this.state===Zx.Connecting||this.state===Zx.Reconnecting){const n=()=>{this.onTrackAdded(e,t,r),i()},i=()=>{this.off(LA.Reconnected,n),this.off(LA.Connected,n),this.off(LA.Disconnected,i)};return this.once(LA.Reconnected,n),this.once(LA.Connected,n),void this.once(LA.Disconnected,i)}if(this.state===Zx.Disconnected)return void this.log.warn("skipping incoming track after Room disconnected",this.logContext);const n=function(e){const t=e.split("|");return t.length>1?[t[0],e.substr(t[0].length+1)]:[e,""]}(t.id),i=n[0];let o=n[1],a=e.id;if(o&&o.startsWith("TR")&&(a=o),i===this.localParticipant.sid)return void this.log.warn("tried to create RemoteParticipant for local participant",this.logContext);const s=this.participants.get(i);if(!s)return void this.log.error("Tried to add a track for a participant, that's not present. Sid: ".concat(i),this.logContext);let c;this.options.adaptiveStream&&(c="object"==typeof this.options.adaptiveStream?this.options.adaptiveStream:{}),s.addSubscribedMediaTrack(e,a,t,r,c)}handleDisconnect(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;var r;if(this.clearConnectionReconcile(),this.bufferedEvents=[],this.state!==Zx.Disconnected){this.regionUrl=void 0;try{this.participants.forEach((e=>{e.tracks.forEach((t=>{e.unpublishTrack(t.trackSid)}))})),this.localParticipant.tracks.forEach((t=>{var r,n;t.track&&this.localParticipant.unpublishTrack(t.track,e),e&&(null===(r=t.track)||void 0===r||r.detach(),null===(n=t.track)||void 0===n||n.stop())})),this.localParticipant.off(FA.ParticipantMetadataChanged,this.onLocalParticipantMetadataChanged).off(FA.ParticipantNameChanged,this.onLocalParticipantNameChanged).off(FA.TrackMuted,this.onLocalTrackMuted).off(FA.TrackUnmuted,this.onLocalTrackUnmuted).off(FA.LocalTrackPublished,this.onLocalTrackPublished).off(FA.LocalTrackUnpublished,this.onLocalTrackUnpublished).off(FA.ConnectionQualityChanged,this.onLocalConnectionQualityChanged).off(FA.MediaDevicesError,this.onMediaDevicesError).off(FA.AudioStreamAcquired,this.startAudio).off(FA.ParticipantPermissionsChanged,this.onLocalParticipantPermissionsChanged),this.localParticipant.tracks.clear(),this.localParticipant.videoTracks.clear(),this.localParticipant.audioTracks.clear(),this.participants.clear(),this.activeSpeakers=[],this.audioContext&&"boolean"==typeof this.options.expWebAudioMix&&(this.audioContext.close(),this.audioContext=void 0),hE()&&(window.removeEventListener("beforeunload",this.onPageLeave),window.removeEventListener("pagehide",this.onPageLeave),window.removeEventListener("freeze",this.onPageLeave),null===(r=navigator.mediaDevices)||void 0===r||r.removeEventListener("devicechange",this.handleDeviceChange))}finally{this.setAndEmitConnectionState(Zx.Disconnected),this.emit(LA.Disconnected,t)}}}handleParticipantDisconnected(e,t){this.participants.delete(e),t&&(this.identityToSid.delete(t.identity),t.tracks.forEach((e=>{t.unpublishTrack(e.trackSid,!0)})),this.emit(LA.ParticipantDisconnected,t))}acquireAudioContext(){var e,t;return $v(this,void 0,void 0,(function*(){if("boolean"!=typeof this.options.expWebAudioMix&&this.options.expWebAudioMix.audioContext?this.audioContext=this.options.expWebAudioMix.audioContext:this.audioContext&&"closed"!==this.audioContext.state||(this.audioContext=null!==(e=ZC())&&void 0!==e?e:void 0),this.audioContext&&"suspended"===this.audioContext.state)try{yield this.audioContext.resume()}catch($R){this.log.warn("Could not resume audio context",Object.assign(Object.assign({},this.logContext),{error:$R}))}this.options.expWebAudioMix&&this.participants.forEach((e=>e.setAudioContext(this.audioContext))),this.localParticipant.setAudioContext(this.audioContext);const r="running"===(null===(t=this.audioContext)||void 0===t?void 0:t.state);r!==this.canPlaybackAudio&&(this.audioEnabled=r,this.emit(LA.AudioPlaybackStatusChanged,r))}))}createParticipant(e,t){var r;let n;return n=t?eS.fromParticipantInfo(this.engine.client,t):new eS(this.engine.client,e,"",void 0,void 0,{loggerContextCb:()=>this.logContext,loggerName:this.options.loggerName}),this.options.expWebAudioMix&&n.setAudioContext(this.audioContext),(null===(r=this.options.audioOutput)||void 0===r?void 0:r.deviceId)&&n.setAudioOutput(this.options.audioOutput).catch((e=>this.log.warn("Could not set audio output: ".concat(e.message),this.logContext))),n}getOrCreateParticipant(e,t){if(this.participants.has(e))return this.participants.get(e);const r=this.createParticipant(e,t);return this.participants.set(e,r),this.identityToSid.set(t.identity,t.sid),this.emitWhenConnected(LA.ParticipantConnected,r),r.on(FA.TrackPublished,(e=>{this.emitWhenConnected(LA.TrackPublished,e,r)})).on(FA.TrackSubscribed,((e,t)=>{e.kind===GC.Kind.Audio?(e.on(zA.AudioPlaybackStarted,this.handleAudioPlaybackStarted),e.on(zA.AudioPlaybackFailed,this.handleAudioPlaybackFailed)):e.kind===GC.Kind.Video&&(e.on(zA.VideoPlaybackFailed,this.handleVideoPlaybackFailed),e.on(zA.VideoPlaybackStarted,this.handleVideoPlaybackStarted)),this.emit(LA.TrackSubscribed,e,t,r)})).on(FA.TrackUnpublished,(e=>{this.emit(LA.TrackUnpublished,e,r)})).on(FA.TrackUnsubscribed,((e,t)=>{this.emit(LA.TrackUnsubscribed,e,t,r)})).on(FA.TrackSubscriptionFailed,(e=>{this.emit(LA.TrackSubscriptionFailed,e,r)})).on(FA.TrackMuted,(e=>{this.emitWhenConnected(LA.TrackMuted,e,r)})).on(FA.TrackUnmuted,(e=>{this.emitWhenConnected(LA.TrackUnmuted,e,r)})).on(FA.ParticipantMetadataChanged,(e=>{this.emitWhenConnected(LA.ParticipantMetadataChanged,e,r)})).on(FA.ParticipantNameChanged,(e=>{this.emitWhenConnected(LA.ParticipantNameChanged,e,r)})).on(FA.ConnectionQualityChanged,(e=>{this.emitWhenConnected(LA.ConnectionQualityChanged,e,r)})).on(FA.ParticipantPermissionsChanged,(e=>{this.emitWhenConnected(LA.ParticipantPermissionsChanged,e,r)})).on(FA.TrackSubscriptionStatusChanged,((e,t)=>{this.emitWhenConnected(LA.TrackSubscriptionStatusChanged,e,t,r)})).on(FA.TrackSubscriptionFailed,((e,t)=>{this.emit(LA.TrackSubscriptionFailed,e,r,t)})).on(FA.TrackSubscriptionPermissionChanged,((e,t)=>{this.emitWhenConnected(LA.TrackSubscriptionPermissionChanged,e,t,r)})),t&&r.updateInfo(t),r}sendSyncState(){const e=Array.from(this.participants.values()).reduce(((e,t)=>(e.push(...t.getTracks()),e)),[]),t=this.localParticipant.getTracks();this.engine.sendSyncState(e,t)}updateSubscriptions(){for(const e of this.participants.values())for(const t of e.videoTracks.values())t.isSubscribed&&t instanceof Xx&&t.emitTrackUpdate()}registerConnectionReconcile(){this.clearConnectionReconcile();let e=0;this.connectionReconcileInterval=WA.setInterval((()=>{this.engine&&!this.engine.isClosed&&this.engine.verifyTransport()?e=0:(e++,this.log.warn("detected connection state mismatch",Object.assign(Object.assign({},this.logContext),{numFailures:e,engine:{closed:this.engine.isClosed,transportsConnected:this.engine.verifyTransport()}})),e>=3&&(this.recreateEngine(),this.handleDisconnect(this.options.stopLocalTrackOnUnpublish,bv.STATE_MISMATCH)))}),2e3)}clearConnectionReconcile(){this.connectionReconcileInterval&&WA.clearInterval(this.connectionReconcileInterval)}setAndEmitConnectionState(e){return e!==this.state&&(this.state=e,this.emit(LA.ConnectionStateChanged,this.state),!0)}emitBufferedEvents(){this.bufferedEvents.forEach((e=>{let[t,r]=e;this.emit(t,...r)})),this.bufferedEvents=[]}emitWhenConnected(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;nthis.logContext}),{loggerName:this.options.loggerName,loggerContextCb:()=>this.logContext});this.localParticipant.addTrackPublication(e),this.localParticipant.emit(FA.LocalTrackPublished,e)}if(n.audio){const e=new Jx(GC.Kind.Audio,new Bv({source:pv.MICROPHONE,sid:Math.floor(1e4*Math.random()).toString(),type:hv.AUDIO}),new Ix(n.useRealTracks?(yield navigator.mediaDevices.getUserMedia({audio:!0})).getAudioTracks()[0]:_E(),void 0,!1,this.audioContext,{loggerName:this.options.loggerName,loggerContextCb:()=>this.logContext}),{loggerName:this.options.loggerName,loggerContextCb:()=>this.logContext});this.localParticipant.addTrackPublication(e),this.localParticipant.emit(FA.LocalTrackPublished,e)}for(let e=0;e1?t-1:0),n=1;nvoid 0!==e));this.log.debug("room event ".concat(e),Object.assign(Object.assign({},this.logContext),{event:e,args:t}))}return super.emit(e,...r)}}function nS(e){return e.map((e=>{if(e)return Array.isArray(e)?nS(e):"object"==typeof e?"logContext"in e&&e.logContext:e}))}var iS;!function(e){e[e.IDLE=0]="IDLE",e[e.RUNNING=1]="RUNNING",e[e.SKIPPED=2]="SKIPPED",e[e.SUCCESS=3]="SUCCESS",e[e.FAILED=4]="FAILED"}(iS||(iS={}));yw.EventEmitter;yw.EventEmitter;new Map([["obs virtual camera",{facingMode:"environment",confidence:"medium"}]]),new Map([["iphone",{facingMode:"environment",confidence:"medium"}],["ipad",{facingMode:"environment",confidence:"medium"}]]);var oS=r(549002),aS=r(681160),sS=r(1576),cS=r(95768),uS=r(652994),lS=(Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,(e,t,r)=>new Promise(((n,i)=>{var o=e=>{try{s(r.next(e))}catch($R){i($R)}},a=e=>{try{s(r.throw(e))}catch($R){i($R)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(e,t)).next())})));function dS(e){return void 0!==e&&(function(e){var t;if(!e)return!1;return e.hasOwnProperty("participant")&&e.hasOwnProperty("source")&&e.hasOwnProperty("track")&&void 0!==(null==(t=e.publication)?void 0:t.track)}(e)||function(e){if(!e)return!1;return e.hasOwnProperty("participant")&&e.hasOwnProperty("source")&&e.hasOwnProperty("publication")&&void 0!==e.publication}(e))}function fS(e){return!!e&&(e.hasOwnProperty("participant")&&e.hasOwnProperty("source")&&void 0===e.publication)}function hS(e){if("string"==typeof e||"number"==typeof e)return`${e}`;if(fS(e))return`${e.participant.identity}_${e.source}_placeholder`;if(dS(e))return`${e.participant.identity}_${e.publication.source}_${e.publication.trackSid}`;throw new Error(`Can't generate a id for the given track reference: ${e}`)}function pS(e){return e instanceof tS}var gS=[...[LA.ConnectionStateChanged,LA.RoomMetadataChanged,LA.ActiveSpeakersChanged,LA.ConnectionQualityChanged,LA.ParticipantConnected,LA.ParticipantDisconnected,LA.ParticipantPermissionsChanged,LA.ParticipantMetadataChanged,LA.TrackMuted,LA.TrackUnmuted,LA.TrackPublished,LA.TrackUnpublished,LA.TrackStreamStateChanged,LA.TrackSubscriptionFailed,LA.TrackSubscriptionPermissionChanged,LA.TrackSubscriptionStatusChanged],LA.LocalTrackPublished,LA.LocalTrackUnpublished],mS=(FA.ConnectionQualityChanged,FA.IsSpeakingChanged,FA.ParticipantMetadataChanged,FA.ParticipantPermissionsChanged,FA.TrackMuted,FA.TrackUnmuted,FA.TrackPublished,FA.TrackUnpublished,FA.TrackStreamStateChanged,FA.TrackSubscriptionFailed,FA.TrackSubscriptionPermissionChanged,FA.TrackSubscriptionStatusChanged,FA.LocalTrackPublished,FA.LocalTrackUnpublished,oS.getLogger("lk-components-js"));mS.setDefaultLevel("WARN");function yS(e){return"object"==typeof e}function bS(e){return Array.isArray(e)&&e.filter(yS).length>0}function vS(e,...t){return new uS.c((r=>{const n=()=>{r.next(e)};t.forEach((t=>{e.on(t,n)}));return()=>{t.forEach((t=>{e.off(t,n)}))}})).pipe((0,sS.Z)(e))}function wS(e){return`lk-${e}`}function AS(e){if(dS(e))return e.publication;{const{source:t,name:r,participant:n}=e;if(t&&r)return n.getTracks().find((e=>e.source===t&&e.trackName===r));if(r)return n.getTrackByName(r);if(t)return n.getTrack(t);throw new Error("At least one of source and name needs to be defined")}}function CS(e,...t){return new uS.c((r=>{const n=()=>{r.next(e)};t.forEach((t=>{e.on(t,n)}));return()=>{t.forEach((t=>{e.off(t,n)}))}})).pipe((0,sS.Z)(e))}function ES(e){const t=CS(e,FA.TrackMuted,FA.TrackUnmuted,FA.ParticipantPermissionsChanged,FA.TrackPublished,FA.TrackUnpublished,FA.LocalTrackPublished,FA.LocalTrackUnpublished,FA.MediaDevicesError,FA.TrackSubscriptionStatusChanged).pipe((0,aS.T)((e=>{const{isMicrophoneEnabled:t,isCameraEnabled:r,isScreenShareEnabled:n}=e,i=e.getTrack(GC.Source.Microphone);return{isCameraEnabled:r,isMicrophoneEnabled:t,isScreenShareEnabled:n,cameraTrack:e.getTrack(GC.Source.Camera),microphoneTrack:i,participant:e}})));return t}new TextEncoder,new TextDecoder;function xS(e,t,r=!0){const n=[e.localParticipant,...Array.from(e.participants.values())],i=[];return n.forEach((e=>{t.forEach((t=>{const n=Array.from(e.tracks.values()).filter((e=>e.source===t&&(!r||e.track))).map((t=>({participant:e,publication:t,source:t.source})));i.push(...n)}))})),{trackReferences:i,participants:n}}var{load:SS,save:IS}=function(e){return{load:()=>function(e){if("undefined"!=typeof localStorage)try{const t=localStorage.getItem(e);return t?JSON.parse(t):void mS.warn(`Item with key ${e} does not exist in local storage.`)}catch(ys){return void mS.error(`Error getting item from local storage: ${ys}`)}else mS.error("Local storage is not available.")}(e),save:t=>function(e,t){if("undefined"!=typeof localStorage)try{localStorage.setItem(e,JSON.stringify(t))}catch(ys){mS.error(`Error setting item to local storage: ${ys}`)}else mS.error("Local storage is not available.")}(e,t)}}("lk-user-choices");"undefined"!=typeof window?i.useLayoutEffect:i.useEffect;var kS=Object.defineProperty,_S=Object.defineProperties,TS=Object.getOwnPropertyDescriptors,MS=Object.getOwnPropertySymbols,PS=Object.prototype.hasOwnProperty,jS=Object.prototype.propertyIsEnumerable,DS=(e,t,r)=>t in e?kS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,OS=(e,t)=>{for(var r in t||(t={}))PS.call(t,r)&&DS(e,r,t[r]);if(MS)for(var r of MS(t))jS.call(t,r)&&DS(e,r,t[r]);return e},BS=(e,t)=>_S(e,TS(t)),NS=(e,t)=>{var r={};for(var n in e)PS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&MS)for(var n of MS(e))t.indexOf(n)<0&&jS.call(e,n)&&(r[n]=e[n]);return r};function RS(e,t){const[r,n]=i.useState(t);return i.useEffect((()=>{if("undefined"==typeof window||!e)return;const t=e.subscribe(n);return()=>t.unsubscribe()}),[e]),r}i.createContext(void 0);var LS=i.createContext(void 0);function FS(){return i.useContext(LS)}var US=i.createContext(void 0);function zS(){return i.useContext(US)}function HS(e){var t;const r=zS(),n=FS(),i=null!=(t=null!=e?e:r)?t:null==n?void 0:n.participant;if(!i)throw new Error("No participant provided, make sure you are inside a participant context or pass the participant explicitly");return i}var VS=i.createContext(void 0);function KS(){return i.useContext(VS)}function GS(e){const t=KS(),r=null!=e?e:t;if(!r)throw new Error("No room provided, make sure you are inside a Room context or pass the room explicitly");return r}var qS=i.createContext(void 0);function QS(...e){return(...t)=>{for(const r of e)"function"==typeof r&&r(...t)}}function WS(...e){const t=OS({},e[0]);for(let r=1;r=65&&e.charCodeAt(2)<=90?t[e]=QS(r,i):t[e]="className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof i?void 0!==i?i:r:jy(r,i)}}return t}var JS={connect:!0,audio:!1,video:!1};function YS(e){return void 0!==e}function ZS(...e){return WS(...e.filter(YS))}function $S(e,t={}){var r;const[n,o]=i.useState(AS(e)),[a,s]=i.useState(null==n?void 0:n.isMuted),[c,u]=i.useState(null==n?void 0:n.isSubscribed),[l,d]=i.useState(null==n?void 0:n.track),[f,h]=i.useState("landscape"),p=i.useRef(),{className:g,trackObserver:m}=i.useMemo((()=>function(e){const t=AS(e),r=ES(e.participant).pipe((0,aS.T)((()=>AS(e))),(0,sS.Z)(t));return{className:wS(e.source===GC.Source.Camera||e.source===GC.Source.ScreenShare?"participant-media-video":"participant-media-audio"),trackObserver:r}}(e)),[null!=(r=e.participant.sid)?r:e.participant.identity,e.source,dS(e)&&e.publication.trackSid]);return i.useEffect((()=>{const e=m.subscribe((e=>{mS.debug("update track",e),o(e),s(null==e?void 0:e.isMuted),u(null==e?void 0:e.isSubscribed),d(null==e?void 0:e.track)}));return()=>null==e?void 0:e.unsubscribe()}),[m]),i.useEffect((()=>{var r,n;return l&&(p.current&&l.detach(p.current),!(null==(r=t.element)?void 0:r.current)||pS(e.participant)&&"audio"===(null==l?void 0:l.kind)||l.attach(t.element.current)),p.current=null==(n=t.element)?void 0:n.current,()=>{p.current&&(null==l||l.detach(p.current))}}),[l,t.element]),i.useEffect((()=>{var e,t;if("number"==typeof(null==(e=null==n?void 0:n.dimensions)?void 0:e.width)&&"number"==typeof(null==(t=null==n?void 0:n.dimensions)?void 0:t.height)){const e=n.dimensions.width>n.dimensions.height?"landscape":"portrait";h(e)}}),[n]),{publication:n,isMuted:a,isSubscribed:c,track:l,elementProps:ZS(t.props,OS({className:g,"data-lk-local-participant":e.participant.isLocal,"data-lk-source":null==n?void 0:n.source},"video"===(null==n?void 0:n.kind)&&{"data-lk-orientation":f}))}}function XS(e){var t,r=e,{source:n,onChange:o,initialState:a,captureOptions:s}=r,c=NS(r,["source","onChange","initialState","captureOptions"]);const u=KS(),l=null==(t=null==u?void 0:u.localParticipant)?void 0:t.getTrack(n),d=i.useRef(!1),{toggle:f,className:h,pendingObserver:p,enabledObserver:g}=i.useMemo((()=>u?function(e,t,r){const{localParticipant:n}=t,i=(e,t)=>{let r=!1;switch(e){case GC.Source.Camera:r=t.isCameraEnabled;break;case GC.Source.Microphone:r=t.isMicrophoneEnabled;break;case GC.Source.ScreenShare:r=t.isScreenShareEnabled}return r},o=ES(n).pipe((0,aS.T)((t=>i(e,t.participant))),(0,sS.Z)(i(e,n))),a=new cS.B;return{className:wS("button"),toggle:(t,i)=>lS(this,null,(function*(){try{switch(null!=i||(i=r),a.next(!0),e){case GC.Source.Camera:yield n.setCameraEnabled(null!=t?t:!n.isCameraEnabled,i);break;case GC.Source.Microphone:yield n.setMicrophoneEnabled(null!=t?t:!n.isMicrophoneEnabled,i);break;case GC.Source.ScreenShare:yield n.setScreenShareEnabled(null!=t?t:!n.isScreenShareEnabled,i)}}finally{a.next(!1)}})),enabledObserver:o,pendingObserver:a.asObservable()}}(n,u,s):function(){let e=!1;const t=new cS.B,r=new cS.B;return{className:wS("button"),toggle:n=>lS(this,null,(function*(){r.next(!0),e=null!=n?n:!e,t.next(e),r.next(!1)})),enabledObserver:t.asObservable(),pendingObserver:r.asObservable()}}()),[u,n,JSON.stringify(s)]),m=RS(p,!1),y=RS(g,null!=a?a:!!(null==l?void 0:l.isEnabled));i.useEffect((()=>{null==o||o(y,d.current),d.current=!1}),[y,o]),i.useEffect((()=>{void 0!==a&&(mS.debug("forcing initial toggle state",n,a),f(a))}),[]);const b=i.useMemo((()=>WS(c,{className:h})),[c,h]),v=i.useCallback((e=>{var t;d.current=!0,f().finally((()=>d.current=!1)),null==(t=c.onClick)||t.call(c,e)}),[c,f]);return{toggle:f,enabled:y,pending:m,track:l,buttonProps:BS(OS({},b),{"aria-pressed":y,"data-lk-source":n,"data-lk-enabled":y,disabled:m,onClick:v})}}function eI(e=[GC.Source.Camera,GC.Source.Microphone,GC.Source.ScreenShare,GC.Source.ScreenShareAudio,GC.Source.Unknown],t={}){const r=GS(t.room),[n,o]=i.useState([]),[a,s]=i.useState([]),c=i.useMemo((()=>e.map((e=>yS(e)?e.source:e))),[JSON.stringify(e)]);i.useEffect((()=>{const e=function(e,t,r){var n,i;const o=null!=(n=r.additionalRoomEvents)?n:gS,a=null==(i=r.onlySubscribed)||i,s=vS(e,...Array.from(new Set([LA.ParticipantConnected,LA.ParticipantDisconnected,LA.ConnectionStateChanged,LA.LocalTrackPublished,LA.LocalTrackUnpublished,LA.TrackPublished,LA.TrackUnpublished,LA.TrackSubscriptionStatusChanged,...o]).values())).pipe((0,aS.T)((e=>{const r=xS(e,t,a);return mS.debug(`TrackReference[] was updated. (length ${r.trackReferences.length})`,r),r})),(0,sS.Z)(xS(e,t,a)));return s}(r,c,{additionalRoomEvents:t.updateOnlyOn,onlySubscribed:t.onlySubscribed}).subscribe((({trackReferences:e,participants:t})=>{mS.debug("setting track bundles",e,t),o(e),s(t)}));return()=>e.unsubscribe()}),[r,JSON.stringify(t.updateOnlyOn),JSON.stringify(e)]);const u=i.useMemo((()=>{if(bS(e)){const t=function(e,t){const r=new Map;if(bS(e)){const n=e.filter((e=>e.withPlaceholder)).map((e=>e.source));t.forEach((e=>{const t=e.getTracks().map((e=>{var t;return null==(t=e.track)?void 0:t.source})).filter((e=>void 0!==e)),i=Array.from(function(e,t){const r=new Set(e);for(const n of t)r.delete(n);return r}(new Set(n),new Set(t)));i.length>0&&r.set(e.identity,i)}))}return r}(e,a),r=Array.from(n);return a.forEach((e=>{var i;if(t.has(e.identity)){(null!=(i=t.get(e.identity))?i:[]).forEach((t=>{if(n.find((({participant:r,publication:n})=>e.identity===r.identity&&n.source===t)))return;mS.debug(`Add ${t} placeholder for participant ${e.identity}.`);const i={participant:e,source:t};r.push(i)}))}})),r}return n}),[n,a,e]);return u}var tI=e=>i.createElement("svg",OS({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),i.createElement("path",{d:"M1.354.646a.5.5 0 1 0-.708.708l14 14a.5.5 0 0 0 .708-.708L11 10.293V4.5A1.5 1.5 0 0 0 9.5 3H3.707zM0 4.5a1.5 1.5 0 0 1 .943-1.393l9.532 9.533c-.262.224-.603.36-.975.36h-8A1.5 1.5 0 0 1 0 11.5z"}),i.createElement("path",{d:"m15.2 3.6-2.8 2.1a1 1 0 0 0-.4.8v3a1 1 0 0 0 .4.8l2.8 2.1a.5.5 0 0 0 .8-.4V4a.5.5 0 0 0-.8-.4z"})),rI=e=>i.createElement("svg",OS({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),i.createElement("path",{d:"M0 4.5A1.5 1.5 0 0 1 1.5 3h8A1.5 1.5 0 0 1 11 4.5v7A1.5 1.5 0 0 1 9.5 13h-8A1.5 1.5 0 0 1 0 11.5zM15.2 3.6l-2.8 2.1a1 1 0 0 0-.4.8v3a1 1 0 0 0 .4.8l2.8 2.1a.5.5 0 0 0 .8-.4V4a.5.5 0 0 0-.8-.4z"})),nI=e=>i.createElement("svg",OS({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),i.createElement("path",{d:"M12.227 11.52a5.477 5.477 0 0 0 1.246-2.97.5.5 0 0 0-.995-.1 4.478 4.478 0 0 1-.962 2.359l-1.07-1.07C10.794 9.247 11 8.647 11 8V3a3 3 0 0 0-6 0v1.293L1.354.646a.5.5 0 1 0-.708.708l14 14a.5.5 0 0 0 .708-.708zM8 12.5c.683 0 1.33-.152 1.911-.425l.743.743c-.649.359-1.378.59-2.154.66V15h2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1h2v-1.522a5.502 5.502 0 0 1-4.973-4.929.5.5 0 0 1 .995-.098A4.5 4.5 0 0 0 8 12.5z"}),i.createElement("path",{d:"M8.743 10.907 5 7.164V8a3 3 0 0 0 3.743 2.907z"})),iI=e=>i.createElement("svg",OS({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),i.createElement("path",{fillRule:"evenodd",d:"M2.975 8.002a.5.5 0 0 1 .547.449 4.5 4.5 0 0 0 8.956 0 .5.5 0 1 1 .995.098A5.502 5.502 0 0 1 8.5 13.478V15h2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1h2v-1.522a5.502 5.502 0 0 1-4.973-4.929.5.5 0 0 1 .448-.547z",clipRule:"evenodd"}),i.createElement("path",{d:"M5 3a3 3 0 1 1 6 0v5a3 3 0 0 1-6 0z"})),oI=e=>i.createElement("svg",OS({xmlns:"http://www.w3.org/2000/svg",width:20,height:16,fill:"none"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 2.75A2.75 2.75 0 0 1 2.75 0h14.5A2.75 2.75 0 0 1 20 2.75v10.5A2.75 2.75 0 0 1 17.25 16H2.75A2.75 2.75 0 0 1 0 13.25V2.75ZM2.75 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h14.5c.69 0 1.25-.56 1.25-1.25V2.75c0-.69-.56-1.25-1.25-1.25H2.75Z",clipRule:"evenodd"}),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.47 4.22a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1-1.06 1.06l-.97-.97v4.69a.75.75 0 0 1-1.5 0V6.56l-.97.97a.75.75 0 0 1-1.06-1.06l2.25-2.25Z",clipRule:"evenodd"})),aI=e=>i.createElement("svg",OS({xmlns:"http://www.w3.org/2000/svg",width:20,height:16,fill:"none"},e),i.createElement("g",{fill:"currentColor"},i.createElement("path",{d:"M7.28 4.22a.75.75 0 0 0-1.06 1.06L8.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L10 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L11.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L10 6.94z"}),i.createElement("path",{fillRule:"evenodd",d:"M2.75 0A2.75 2.75 0 0 0 0 2.75v10.5A2.75 2.75 0 0 0 2.75 16h14.5A2.75 2.75 0 0 0 20 13.25V2.75A2.75 2.75 0 0 0 17.25 0zM1.5 2.75c0-.69.56-1.25 1.25-1.25h14.5c.69 0 1.25.56 1.25 1.25v10.5c0 .69-.56 1.25-1.25 1.25H2.75c-.69 0-1.25-.56-1.25-1.25z",clipRule:"evenodd"})));function sI(e,t){switch(e){case GC.Source.Microphone:return t?i.createElement(iI,null):i.createElement(nI,null);case GC.Source.Camera:return t?i.createElement(rI,null):i.createElement(tI,null);case GC.Source.ScreenShare:return t?i.createElement(aI,null):i.createElement(oI,null);default:return}}function cI(e){var t=e,{showIcon:r}=t,n=NS(t,["showIcon"]);const{buttonProps:o,enabled:a}=XS(n);return i.createElement("button",OS({},o),(null==r||r)&&sI(n.source,a),n.children)}function uI(e){var t,r,n,o,a,s,c,u,l,d,f=e,{trackRef:h,onSubscriptionStatusChanged:p,volume:g,source:m,name:y,publication:b,participant:v}=f,w=NS(f,["trackRef","onSubscriptionStatusChanged","volume","source","name","publication","participant"]);const A=FS(),C=null!=(o=null!=(n=null==(t=null==h?void 0:h.publication)?void 0:t.trackName)?n:null==(r=null==A?void 0:A.publication)?void 0:r.trackName)?o:y,E=null!=(s=null!=(a=null==h?void 0:h.source)?a:null==A?void 0:A.source)?s:m,x=null!=(u=null!=(c=null==h?void 0:h.publication)?c:null==A?void 0:A.publication)?u:b,S=null!=(d=null!=(l=null==h?void 0:h.participant)?l:null==A?void 0:A.participant)?d:v;if(void 0===E)throw new Error("The AudioTrack component expects a trackRef or source property.");const I=i.useRef(null),k=HS(S),{elementProps:_,isSubscribed:T,track:M,publication:P}=$S({source:E,name:C,participant:k,publication:x},{element:I,props:w});return i.useEffect((()=>{null==p||p(!!T)}),[T,p]),i.useEffect((()=>{void 0!==M&&void 0!==g&&(M instanceof Kx?M.setVolume(g):mS.warn("Volume can only be set on remote audio tracks."))}),[g,M]),i.useEffect((()=>{void 0!==P&&void 0!==w.muted&&(P instanceof Xx?P.setEnabled(!w.muted):mS.warn("Can only call setEnabled on remote track publications."))}),[w.muted,P,M]),i.createElement("audio",OS({ref:I},_))}function lI(e){const{room:t,htmlProps:r}=function(e){const t=OS(OS({},JS),e),{token:r,serverUrl:n,options:o,room:a,connectOptions:s,connect:c,audio:u,video:l,screen:d,onConnected:f,onDisconnected:h,onError:p,onMediaDeviceFailure:g,onEncryptionError:m,simulateParticipants:y}=t,b=NS(t,["token","serverUrl","options","room","connectOptions","connect","audio","video","screen","onConnected","onDisconnected","onError","onMediaDeviceFailure","onEncryptionError","simulateParticipants"]);o&&a&&mS.warn("when using a manually created room, the options object will be ignored. set the desired options directly when creating the room instead.");const[v,w]=i.useState();i.useEffect((()=>{w(null!=a?a:new rS(o))}),[a]);const A=i.useMemo((()=>{const{className:e}={className:"lk-room-container"};return WS(b,{className:e})}),[b]);return i.useEffect((()=>{if(!v)return;const e=()=>{const e=v.localParticipant;mS.debug("trying to publish local tracks"),Promise.all([e.setMicrophoneEnabled(!!u,"boolean"!=typeof u?u:void 0),e.setCameraEnabled(!!l,"boolean"!=typeof l?l:void 0),e.setScreenShareEnabled(!!d,"boolean"!=typeof d?d:void 0)]).catch((e=>{mS.warn(e),null==p||p(e)}))},t=e=>{const t=RA.getFailure(e);null==g||g(t)},r=e=>{null==m||m(e)};return v.on(LA.SignalConnected,e).on(LA.MediaDevicesError,t).on(LA.EncryptionError,r),()=>{v.off(LA.SignalConnected,e).off(LA.MediaDevicesError,t).off(LA.EncryptionError,r)}}),[v,u,l,d,p,m,g]),i.useEffect((()=>{if(v)if(y)v.simulateParticipants({participants:{count:y},publish:{audio:!0,useRealTracks:!0}});else{if(r)return n?void(c?(mS.debug("connecting"),v.connect(n,r,s).catch((e=>{mS.warn(e),null==p||p(e)}))):(mS.debug("disconnecting because connect is false"),v.disconnect())):(mS.warn("no livekit url provided"),void(null==p||p(Error("no livekit url provided"))));mS.debug("no token yet")}}),[c,r,JSON.stringify(s),v,p,n,y]),i.useEffect((()=>{if(!v)return;const e=e=>{switch(e){case Zx.Disconnected:h&&h();break;case Zx.Connected:f&&f()}};return v.on(LA.ConnectionStateChanged,e),()=>{v.off(LA.ConnectionStateChanged,e)}}),[r,f,h,v]),i.useEffect((()=>{if(v)return()=>{mS.info("disconnecting on onmount"),v.disconnect()}}),[v]),{room:v,htmlProps:A}}(e);return i.createElement("div",OS({},r),t&&i.createElement(VS.Provider,{value:t},i.createElement(qS.Provider,{value:e.featureFlags},e.children)))}function dI({volume:e,muted:t}){const r=eI([GC.Source.Microphone,GC.Source.ScreenShareAudio,GC.Source.Unknown],{updateOnlyOn:[],onlySubscribed:!1}).filter((e=>!pS(e.participant)&&e.publication.kind===GC.Kind.Audio));return i.useEffect((()=>{for(const e of r)e.publication.setSubscribed(!0)}),[r]),i.createElement("div",{style:{display:"none"}},r.map((r=>i.createElement(uI,{key:hS(r),trackRef:r,volume:e,muted:t}))))}function fI(e){return(0,Sy.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Image_On"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M18.435,3.06H5.565a2.5,2.5,0,0,0-2.5,2.5V18.44a2.507,2.507,0,0,0,2.5,2.5h12.87a2.507,2.507,0,0,0,2.5-2.5V5.56A2.5,2.5,0,0,0,18.435,3.06ZM4.065,5.56a1.5,1.5,0,0,1,1.5-1.5h12.87a1.5,1.5,0,0,1,1.5,1.5v8.66l-3.88-3.88a1.509,1.509,0,0,0-2.12,0l-4.56,4.57a.513.513,0,0,1-.71,0l-.56-.56a1.522,1.522,0,0,0-2.12,0l-1.92,1.92Zm15.87,12.88a1.5,1.5,0,0,1-1.5,1.5H5.565a1.5,1.5,0,0,1-1.5-1.5v-.75L6.7,15.06a.5.5,0,0,1,.35-.14.524.524,0,0,1,.36.14l.55.56a1.509,1.509,0,0,0,2.12,0l4.57-4.57a.5.5,0,0,1,.71,0l4.58,4.58Z"}},{tag:"path",attr:{d:"M8.062,10.565a2.5,2.5,0,1,1,2.5-2.5A2.5,2.5,0,0,1,8.062,10.565Zm0-4a1.5,1.5,0,1,0,1.5,1.5A1.5,1.5,0,0,0,8.062,6.565Z"}}]}]}]})(e)}var hI=r(801612),pI=r(440961),gI=r(17554),mI=r.n(gI),yI=r(246942),bI=r.n(yI),vI=r(493146),wI=r.n(vI),AI=r(154263),CI=function(e,t){return CI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},CI(e,t)};var EI=function(){return EI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0})).join(" ").trim()}var NI=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.imageRef=i.createRef(),r.videoRef=i.createRef(),r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.gestureZoomStart=0,r.gestureRotationStart=0,r.isTouching=!1,r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.currentDoc="undefined"!=typeof document?document:null,r.currentWindow="undefined"!=typeof window?window:null,r.resizeObserver=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&r.containerRef){var e=!0;r.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:r.computeSizes()})),r.resizeObserver.observe(r.containerRef)}},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){r.currentDoc&&(r.currentDoc.removeEventListener("mousemove",r.onMouseMove),r.currentDoc.removeEventListener("mouseup",r.onDragStopped),r.currentDoc.removeEventListener("touchmove",r.onTouchMove),r.currentDoc.removeEventListener("touchend",r.onDragStopped),r.currentDoc.removeEventListener("gesturemove",r.onGestureMove),r.currentDoc.removeEventListener("gestureend",r.onGestureEnd))},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){var e=r.computeSizes();e&&(r.emitCropData(),r.setInitialCrop(e)),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(e){if(r.props.initialCroppedAreaPercentages){var t=function(e,t,r,n,i,o){var a=DI(t.width,t.height,r),s=OI(n.width/a.width*(100/e.width),i,o);return{crop:{x:s*a.width/2-n.width/2-a.width*s*(e.x/100),y:s*a.height/2-n.height/2-a.height*s*(e.y/100)},zoom:s}}(r.props.initialCroppedAreaPercentages,r.mediaSize,r.props.rotation,e,r.props.minZoom,r.props.maxZoom),n=t.crop,i=t.zoom;r.props.onCropChange(n),r.props.onZoomChange&&r.props.onZoomChange(i)}else if(r.props.initialCroppedAreaPixels){var o=function(e,t,r,n,i,o){void 0===r&&(r=0);var a=DI(t.naturalWidth,t.naturalHeight,r),s=OI(function(e,t,r){var n=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return r.height>r.width?r.height/(e.height*n):r.width/(e.width*n)}(e,t,n),i,o),c=n.height>n.width?n.height/e.height:n.width/e.width;return{crop:{x:((a.width-e.width)/2-e.x)*c,y:((a.height-e.height)/2-e.y)*c},zoom:s}}(r.props.initialCroppedAreaPixels,r.mediaSize,r.props.rotation,e,r.props.minZoom,r.props.maxZoom);n=o.crop,i=o.zoom;r.props.onCropChange(n),r.props.onZoomChange&&r.props.onZoomChange(i)}},r.computeSizes=function(){var e,t,n,i,o,a,s=r.imageRef.current||r.videoRef.current;if(s&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect();var c=r.containerRect.width/r.containerRect.height,u=(null===(e=r.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,l=(null===(n=r.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(i=r.videoRef.current)||void 0===i?void 0:i.videoHeight)||0,d=u/l,f=void 0;if(s.offsetWidthd?{width:r.containerRect.height*d,height:r.containerRect.height}:{width:r.containerRect.width,height:r.containerRect.width/d};break;case"horizontal-cover":f={width:r.containerRect.width,height:r.containerRect.width/d};break;case"vertical-cover":f={width:r.containerRect.height*d,height:r.containerRect.height};break;case"auto-cover":f=u>l?{width:r.containerRect.width,height:r.containerRect.width/d}:{width:r.containerRect.height*d,height:r.containerRect.height}}else f={width:s.offsetWidth,height:s.offsetHeight};r.mediaSize=EI(EI({},f),{naturalWidth:u,naturalHeight:l}),r.props.setMediaSize&&r.props.setMediaSize(r.mediaSize);var h=r.props.cropSize?r.props.cropSize:function(e,t,r,n,i,o){void 0===o&&(o=0);var a=DI(e,t,o),s=a.width,c=a.height,u=Math.min(s,r),l=Math.min(c,n);return u>l*i?{width:l*i,height:l}:{width:u,height:u/i}}(r.mediaSize.width,r.mediaSize.height,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);return(null===(o=r.state.cropSize)||void 0===o?void 0:o.height)===h.height&&(null===(a=r.state.cropSize)||void 0===a?void 0:a.width)===h.width||r.props.onCropSizeChange&&r.props.onCropSizeChange(h),r.setState({cropSize:h},r.recomputeCropPosition),r.props.setCropSize&&r.props.setCropSize(h),h}},r.onMouseDown=function(e){r.currentDoc&&(e.preventDefault(),r.currentDoc.addEventListener("mousemove",r.onMouseMove),r.currentDoc.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(e)))},r.onMouseMove=function(e){return r.onDrag(t.getMousePoint(e))},r.onTouchStart=function(e){r.currentDoc&&(r.isTouching=!0,r.props.onTouchRequest&&!r.props.onTouchRequest(e)||(r.currentDoc.addEventListener("touchmove",r.onTouchMove,{passive:!1}),r.currentDoc.addEventListener("touchend",r.onDragStopped),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(t.getTouchPoint(e.touches[0]))))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(t.getTouchPoint(e.touches[0]))},r.onGestureStart=function(e){r.currentDoc&&(e.preventDefault(),r.currentDoc.addEventListener("gesturechange",r.onGestureMove),r.currentDoc.addEventListener("gestureend",r.onGestureEnd),r.gestureZoomStart=r.props.zoom,r.gestureRotationStart=r.props.rotation)},r.onGestureMove=function(e){if(e.preventDefault(),!r.isTouching){var n=t.getMousePoint(e),i=r.gestureZoomStart-1+e.scale;if(r.setNewZoom(i,n,{shouldUpdatePosition:!0}),r.props.onRotationChange){var o=r.gestureRotationStart+e.rotation;r.props.onRotationChange(o)}}},r.onGestureEnd=function(e){r.cleanEvents()},r.onDragStart=function(e){var t,n,i=e.x,o=e.y;r.dragStartPosition={x:i,y:o},r.dragStartCrop=EI({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,n=e.y;r.currentWindow&&(r.rafDragTimeout&&r.currentWindow.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=r.currentWindow.requestAnimationFrame((function(){if(r.state.cropSize&&void 0!==t&&void 0!==n){var e=t-r.dragStartPosition.x,i=n-r.dragStartPosition.y,o={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+i},a=r.props.restrictPosition?II(o,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):o;r.props.onCropChange(a)}})))},r.onDragStopped=function(){var e,t;r.isTouching=!1,r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){if(r.currentWindow&&(!r.props.onWheelRequest||r.props.onWheelRequest(e))){e.preventDefault();var n=t.getMousePoint(e),i=SI()(e).pixelY,o=r.props.zoom-i*r.props.zoomSpeed/200;r.setNewZoom(o,n,{shouldUpdatePosition:!0}),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=r.currentWindow.setTimeout((function(){return r.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},r.getPointOnContainer=function(e){var t=e.x,n=e.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(t-r.containerRect.left),y:r.containerRect.height/2-(n-r.containerRect.top)}},r.getPointOnMedia=function(e){var t=e.x,n=e.y,i=r.props,o=i.crop,a=i.zoom;return{x:(t+o.x)/a,y:(n+o.y)/a}},r.setNewZoom=function(e,t,n){var i=(void 0===n?{}:n).shouldUpdatePosition,o=void 0===i||i;if(r.state.cropSize&&r.props.onZoomChange){var a=OI(e,r.props.minZoom,r.props.maxZoom);if(o){var s=r.getPointOnContainer(t),c=r.getPointOnMedia(s),u={x:c.x*a-s.x,y:c.y*a-s.y},l=r.props.restrictPosition?II(u,r.mediaSize,r.state.cropSize,a,r.props.rotation):u;r.props.onCropChange(l)}r.props.onZoomChange(a)}},r.getCropData=function(){return r.state.cropSize?function(e,t,r,n,i,o,a){void 0===o&&(o=0),void 0===a&&(a=!0);var s=a?MI:PI,c=DI(t.width,t.height,o),u=DI(t.naturalWidth,t.naturalHeight,o),l={x:s(100,((c.width-r.width/i)/2-e.x/i)/c.width*100),y:s(100,((c.height-r.height/i)/2-e.y/i)/c.height*100),width:s(100,r.width/c.width*100/i),height:s(100,r.height/c.height*100/i)},d=Math.round(s(u.width,l.width*u.width/100)),f=Math.round(s(u.height,l.height*u.height/100)),h=u.width>=u.height*n?{width:Math.round(f*n),height:f}:{width:d,height:Math.round(d/n)};return{croppedAreaPercentages:l,croppedAreaPixels:EI(EI({},h),{x:Math.round(s(u.width-h.width,l.x*u.width/100)),y:Math.round(s(u.height-h.height,l.y*u.height/100))})}}(r.props.restrictPosition?II(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition):null},r.emitCropData=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n),r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.emitCropAreaChange=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e=r.props.restrictPosition?II(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(e),r.emitCropData()}},r}return function(e,t){function r(){this.constructor=e}CI(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,r,n,i,o,a,s,c,u;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.height)||(null===(n=e.cropSize)||void 0===n?void 0:n.width)!==(null===(i=this.props.cropSize)||void 0===i?void 0:i.width)?this.computeSizes():(null===(o=e.crop)||void 0===o?void 0:o.x)===(null===(a=this.props.crop)||void 0===a?void 0:a.x)&&(null===(s=e.crop)||void 0===s?void 0:s.y)===(null===(c=this.props.crop)||void 0===c?void 0:c.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(u=this.videoRef.current)||void 0===u||u.load())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,r=e.aspect;return t?t.width/t.height:r},t.prototype.onPinchStart=function(e){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=_I(r,n),this.lastPinchRotation=TI(r,n),this.onDragStart(jI(r,n))},t.prototype.onPinchMove=function(e){var r=this;if(this.currentDoc&&this.currentWindow){var n=t.getTouchPoint(e.touches[0]),i=t.getTouchPoint(e.touches[1]),o=jI(n,i);this.onDrag(o),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=_I(n,i),t=r.props.zoom*(e/r.lastPinchDistance);r.setNewZoom(t,o,{shouldUpdatePosition:!1}),r.lastPinchDistance=e;var a=TI(n,i),s=r.props.rotation+(a-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(s),r.lastPinchRotation=a}))}},t.prototype.render=function(){var e=this,t=this.props,r=t.image,n=t.video,o=t.mediaProps,a=t.transform,s=t.crop,c=s.x,u=s.y,l=t.rotation,d=t.zoom,f=t.cropShape,h=t.showGrid,p=t.style,g=p.containerStyle,m=p.cropAreaStyle,y=p.mediaStyle,b=t.classes,v=b.containerClassName,w=b.cropAreaClassName,A=b.mediaClassName,C=t.objectFit;return i.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:g,className:BI("reactEasyCrop_Container",v)},r?i.createElement("img",EI({alt:"",className:BI("reactEasyCrop_Image","contain"===C&&"reactEasyCrop_Contain","horizontal-cover"===C&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===C&&"reactEasyCrop_Cover_Vertical","auto-cover"===C&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),A)},o,{src:r,ref:this.imageRef,style:EI(EI({},y),{transform:a||"translate(".concat(c,"px, ").concat(u,"px) rotate(").concat(l,"deg) scale(").concat(d,")")}),onLoad:this.onMediaLoad})):n&&i.createElement("video",EI({autoPlay:!0,loop:!0,muted:!0,className:BI("reactEasyCrop_Video","contain"===C&&"reactEasyCrop_Contain","horizontal-cover"===C&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===C&&"reactEasyCrop_Cover_Vertical","auto-cover"===C&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),A)},o,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:EI(EI({},y),{transform:a||"translate(".concat(c,"px, ").concat(u,"px) rotate(").concat(l,"deg) scale(").concat(d,")")}),controls:!1}),(Array.isArray(n)?n:[{src:n}]).map((function(e){return i.createElement("source",EI({key:e.src},e))}))),this.state.cropSize&&i.createElement("div",{style:EI(EI({},m),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:BI("reactEasyCrop_CropArea","round"===f&&"reactEasyCrop_CropAreaRound",h&&"reactEasyCrop_CropAreaGrid",w)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(i.Component),RI=r(571301),LI=r.n(RI);function FI(e){return[].concat(e)}function UI(e){return e.startsWith(":")}function zI(e){return GI(e)&&("*"===e||e.length>1&&":>~.+*".includes(e.slice(0,1))||qI(e))}function HI(e,t){return(GI(t)||"number"==typeof t)&&!KI(e)&&!UI(e)&&!VI(e)}function VI(e){return e.startsWith("@media")}function KI(e){return"--"===e}function GI(e){return e+""===e}function qI(e){return GI(e)&&(e.startsWith("&")||UI(e))}function QI(e,t=""){return e.filter(Boolean).join(t)}function WI(e,t){let r=0;if(0===t.length)return r.toString();for(let n=0;nUI(t)?e+t:qI(t)?e+t.slice(1):QI([e,t]," ")),t);return QI([n,(i=r,i?`.${i}`:"")]," ");var i}var $I,XI=class e{constructor(e,t=null,{preconditions:r,postconditions:n}={}){this.sheet=e,this.preconditions=[],this.scopeClassName=null,this.scopeName=null,this.postconditions=[],this.preconditions=r?FI(r):[],this.postconditions=n?FI(n):[],this.setScope(t)}setScope(e){return e?(this.scopeClassName||(this.scopeName=e,this.scopeClassName=WI(this.sheet.name,e+this.sheet.count)),this):this}get hasConditions(){return this.preconditions.length>0||this.postconditions.length>0}addScope(t){return new e(this.sheet,t,{preconditions:this.preconditions,postconditions:this.postconditions})}addPrecondition(t){return new e(this.sheet,this.scopeClassName,{postconditions:this.postconditions,preconditions:this.preconditions.concat(t)})}addPostcondition(t){return new e(this.sheet,this.scopeClassName,{preconditions:this.preconditions,postconditions:this.postconditions.concat(t)})}createRule(e,t){return new YI(this.sheet,e,t,this)}},ek=class{constructor(e,t){this.name=e,this.rootNode=t,this.storedStyles={},this.storedClasses={},this.style="",this.count=0,this.id=`flairup-${e}`,this.styleTag=this.createStyleTag()}getStyle(){return this.style}append(e){this.style=function(e,t){return e?`${e}\n${t}`:t}(this.style,e)}apply(){this.count++,this.styleTag&&(this.styleTag.innerHTML=this.style)}isApplied(){return!!this.styleTag}createStyleTag(){if("undefined"==typeof document||this.isApplied()||null===this.rootNode)return this.styleTag;const e=document.createElement("style");return e.type="text/css",e.id=this.id,(this.rootNode??document.head).appendChild(e),e}addRule(e){const t=this.storedClasses[e.key];return GI(t)?t:(this.storedClasses[e.key]=e.hash,this.storedStyles[e.hash]=[e.property,e.value],this.append(e.toString()),e.hash)}};function tk(e,t){for(const r in e)t(r.trim(),e[r])}function rk(...e){const t=e.reduce(((e,t)=>(t instanceof Set?e.push(...t):"string"==typeof t?e.push(t):Array.isArray(t)?e.push(rk(...t)):"object"==typeof t&&Object.entries(t).forEach((([t,r])=>{r&&e.push(t)})),e)),[]);return QI(t," ").trim()}function nk(e,t){const r=new ek(e,t);return{create:function(e){const t={};return ik(r,e,new XI(r)).forEach((([e,n,i])=>{ok(r,n,i).forEach((r=>{!function(e,r){t[e]=t[e]??new Set,t[e].add(r)}(e,r)}))})),r.apply(),t},getStyle:r.getStyle.bind(r),isApplied:r.isApplied.bind(r)}}function ik(e,t,r){const n=[];return tk(t,((i,o)=>{if(zI(i))return ik(e,o,r.addPrecondition(i)).forEach((e=>n.push(e)));n.push([i,t[i],r.addScope(i)])})),n}function ok(e,t,r){const n=new Set;return tk(t,((t,i)=>{let o=[];if(zI(t))o=ok(e,i,r.addPostcondition(t));else if(function(e){return"."===e}(t))o=FI(i);else if(VI(t))o=function(e,t,r,n){e.append(r+" {");const i=ok(e,t,n);return e.append("}"),i}(e,i,t,r);else if(KI(t))o=function(e,t,r){const n=new Set,i=[];if(tk(t,((t,o)=>{if(HI(t,o))return void i.push(YI.genRule(t,o));ak(ok(e,o??{},r),n)})),!r.scopeClassName)return n;if(i.length){const t=i.join(" ");e.append(`${ZI(r.preconditions,{right:r.scopeClassName})} {${t}}`)}return n.add(r.scopeClassName),n}(e,i,r);else if(HI(t,i)){const o=r.createRule(t,i);e.addRule(o),n.add(o.hash)}return ak(o,n)})),n}function ak(e,t){return e.forEach((e=>t.add(e))),t}function sk(){return sk=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}function lk(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fk(){for(var e=arguments.length,t=new Array(e),r=0;r0}function Yk(e){if(e){if(Xk[e])return Xk[e];var t=Kk(e);return Xk[t]}}setTimeout((function(){Zk.reduce((function(e,t){return zk(t),e}),Uk)}));var Zk=Object.values(Nk).flat();function $k(e){Nk[xk.CUSTOM].length=0,e.forEach((function(e){var t=function(e){var t;return(t={})[Bk.name]=e.names.map((function(e){return e.toLowerCase()})),t[Bk.unified]=e.id.toLowerCase(),t[Bk.added_in]="0",t[Bk.imgUrl]=e.imgUrl,t}(e);Nk[xk.CUSTOM].push(t),Xk[t[Bk.unified]]||(Zk.push(t),Xk[t[Bk.unified]]=t,zk(t))}))}var Xk={};setTimeout((function(){Zk.reduce((function(e,t){return e[Gk(t)]=t,Jk(t)&&Wk(t).forEach((function(r){e[r]=t})),e}),Xk)}));var e_=["2640-fe0f","2642-fe0f","2695-fe0f"],t_="Search",r_=" found. Use up and down arrow keys to navigate.",n_="1 result"+r_,i_="%n results"+r_;function o_(e){var t,r;void 0===e&&(e={});var n=a_(),i=Object.assign(n.previewConfig,null!=(t=e.previewConfig)?t:{}),o=Object.assign(n,e),a=function(e,t){var r;void 0===e&&(e=[]),void 0===t&&(t={});var n={};t.suggestionMode===wk.RECENT&&(n[xk.SUGGESTED]=Tk);var i=Pk(n);return null!=(r=e)&&r.length?e.map((function(e){return"string"==typeof e?Ok(e,n[e]):sk({},Ok(e.category,n[e.category]),e)})):i}(e.categories,{suggestionMode:o.suggestedEmojisMode});o.hiddenEmojis.forEach((function(e){o.unicodeToHide.add(e)})),$k(null!=(r=o.customEmojis)?r:[]);var s=o.searchDisabled?Sk.PREVIEW:o.skinTonePickerLocation;return sk({},o,{categories:a,previewConfig:i,skinTonePickerLocation:s})}function a_(){return{autoFocusSearch:!0,categories:Pk(),className:"",customEmojis:[],defaultSkinTone:Ek.NEUTRAL,emojiStyle:Ak.APPLE,emojiVersion:null,getEmojiUrl:Qk,height:450,lazyLoadEmojis:!1,previewConfig:sk({},s_),searchDisabled:!1,searchPlaceHolder:t_,searchPlaceholder:t_,skinTonePickerLocation:Sk.SEARCH,skinTonesDisabled:!1,style:{},suggestedEmojisMode:wk.FREQUENT,theme:Ck.LIGHT,unicodeToHide:new Set(e_),width:350,reactionsDefaultOpen:!1,reactions:kk,open:!0,allowExpandReactions:!0,hiddenEmojis:[]}}var s_={defaultEmoji:"1f60a",defaultCaption:"What's your mood?",showPreview:!0},c_=["children"],u_=(0,i.createContext)(a_());function l_(e){var t=e.children,r=function(e){var t,r=(0,i.useState)((function(){return o_(e)})),n=r[0],o=r[1];return(0,i.useEffect)((function(){vk(n,e)||o(o_(e))}),[null==(t=e.customEmojis)?void 0:t.length,e.open,e.emojiVersion,e.reactionsDefaultOpen,e.searchPlaceHolder,e.searchPlaceholder,e.defaultSkinTone,e.skinTonesDisabled,e.autoFocusSearch,e.emojiStyle,e.theme,e.suggestedEmojisMode,e.lazyLoadEmojis,e.className,e.height,e.width,e.searchDisabled,e.skinTonePickerLocation,e.allowExpandReactions]),n}(uk(e,c_));return(0,i.createElement)(u_.Provider,{value:r},t)}function d_(){return(0,i.useContext)(u_)}var f_,h_=i.createContext({});function p_(){return i.useContext(h_)}function g_(){}function m_(){return d_().allowExpandReactions}function y_(){return d_().skinTonesDisabled}function b_(){return d_().emojiStyle}function v_(){return d_().categories}function w_(){return d_().previewConfig}function A_(){return d_().searchDisabled}function C_(){return d_().skinTonePickerLocation}function E_(){return d_().getEmojiUrl}function x_(e){return"number"==typeof e?e+"px":e}function S_(e,t){void 0===t&&(t=0);var r=(0,i.useState)(e),n=r[0],o=r[1],a=(0,i.useRef)(null);return[n,function(e){return new Promise((function(r){var n;a.current&&clearTimeout(a.current),a.current=null==(n=window)?void 0:n.setTimeout((function(){o(e),r(e)}),t)}))}]}function I_(){var e=d_().unicodeToHide;return function(t){return e.has(t)}}function k_(){var e=(0,i.useRef)({}),t=d_().emojiVersion;return(0,i.useMemo)((function(){var r=parseFloat(""+t);return!t||Number.isNaN(r)?e.current:Zk.reduce((function(e,t){return function(e,t){return function(e){return parseFloat(e[Bk.added_in])}(e)>t}(t,r)&&(e[Gk(t)]=!0),e}),e.current)}),[t])}function __(e){var t,r=e.children,n=k_(),o=d_().defaultSkinTone,a=d_().reactionsDefaultOpen,s=(0,i.useRef)(Uk),c=(0,i.useRef)(!1),u=(0,i.useRef)(!1),l=(0,i.useRef)(n),d=S_(Date.now(),200),f=S_("",100),h=(0,i.useState)(!1),p=(0,i.useState)(o),g=(0,i.useState)(null),m=(0,i.useState)(new Set),y=(0,i.useState)(null),b=(0,i.useState)(a),v=(0,i.useState)(!1),w=v[0],A=v[1];return t=A,(0,i.useEffect)((function(){t(!0)}),[t]),(0,i.createElement)(T_.Provider,{value:{activeCategoryState:g,activeSkinTone:p,disallowClickRef:c,disallowMouseRef:u,disallowedEmojisRef:l,emojiVariationPickerState:y,emojisThatFailedToLoadState:m,filterRef:s,isPastInitialLoad:w,searchTerm:f,skinToneFanOpenState:h,suggestedUpdateState:d,reactionsModeState:b}},r)}!function(e){e.REACTIONS="reactions",e.PICKER="picker"}(f_||(f_={}));var T_=(0,i.createContext)({activeCategoryState:[null,function(){}],activeSkinTone:[Ek.NEUTRAL,function(){}],disallowClickRef:{current:!1},disallowMouseRef:{current:!1},disallowedEmojisRef:{current:{}},emojiVariationPickerState:[null,function(){}],emojisThatFailedToLoadState:[new Set,function(){}],filterRef:{current:{}},isPastInitialLoad:!0,searchTerm:["",function(){return new Promise((function(){}))}],skinToneFanOpenState:[!1,function(){}],suggestedUpdateState:[Date.now(),function(){}],reactionsModeState:[!1,function(){}]});function M_(){return(0,i.useContext)(T_).filterRef}function P_(){return(0,i.useContext)(T_).disallowMouseRef}function j_(){return(0,i.useContext)(T_).reactionsModeState}function D_(){return(0,i.useContext)(T_).searchTerm}function O_(){return(0,i.useContext)(T_).activeSkinTone}function B_(){return(0,i.useContext)(T_).emojisThatFailedToLoadState}function N_(){return(0,i.useContext)(T_).emojiVariationPickerState}function R_(){return(0,i.useContext)(T_).skinToneFanOpenState}function L_(){var e=(0,i.useContext)(T_).suggestedUpdateState,t=e[0],r=e[1];return[t,function(){r(Date.now())}]}function F_(){return!!D_()[0]}function U_(e){e&&requestAnimationFrame((function(){e.focus()}))}function z_(e){e&&U_(e.previousElementSibling)}function H_(e){e&&U_(e.nextElementSibling)}function V_(e){e&&U_(e.firstElementChild)}function K_(){return document.activeElement}function G_(e){var t=e.children,r=(0,i.useRef)(null),n=(0,i.useRef)(null),o=(0,i.useRef)(null),a=(0,i.useRef)(null),s=(0,i.useRef)(null),c=(0,i.useRef)(null),u=(0,i.useRef)(null),l=(0,i.useRef)(null);return(0,i.createElement)(Q_.Provider,{value:{AnchoredEmojiRef:n,BodyRef:o,CategoryNavigationRef:c,PickerMainRef:r,SearchInputRef:a,SkinTonePickerRef:s,VariationPickerRef:u,ReactionsRef:l}},t)}var q_,Q_=(0,i.createContext)({AnchoredEmojiRef:(0,i.createRef)(),BodyRef:(0,i.createRef)(),CategoryNavigationRef:(0,i.createRef)(),PickerMainRef:(0,i.createRef)(),SearchInputRef:(0,i.createRef)(),SkinTonePickerRef:(0,i.createRef)(),VariationPickerRef:(0,i.createRef)(),ReactionsRef:(0,i.createRef)()});function W_(){return(0,i.useContext)(Q_)}function J_(){return W_().PickerMainRef}function Y_(){return W_().AnchoredEmojiRef}function Z_(){var e=Y_();return function(t){null===t&&null!==e.current&&U_(e.current),e.current=t}}function $_(){return W_().BodyRef}function X_(){return W_().SearchInputRef}function eT(){return W_().SkinTonePickerRef}function tT(){return W_().CategoryNavigationRef}function rT(e,t){void 0===t&&(t=0);var r=JT(e);r&&requestAnimationFrame((function(){r.scrollTop=t}))}function nT(e){if(e&&function(e){if(!e)return!1;return YT(e)e.length)return[];return FT(e,n,r)}(e,t,r);return i[n]||i[i.length-1]||null}(oM(t),i,o,n)}(e);return U_(t)}}function uT(){var e=N_(),t=e[0],r=e[1],n=R_(),o=n[0],a=n[1];return(0,i.useCallback)((function(){t&&r(null),o&&a(!1)}),[t,o,r,a])}function lT(){var e=N_()[0],t=R_()[0];return function(){return!!e||t}}function dT(){var e=P_();return function(){e.current=!1}}function fT(){var e=P_();return function(){return e.current}}function hT(){var e=X_();return(0,i.useCallback)((function(){U_(e.current)}),[e])}function pT(){var e=tT();return(0,i.useCallback)((function(){e.current&&V_(e.current)}),[e])}function gT(){var e=yT(),t=X_(),r=hT();return function(){t.current&&(t.current.value=""),e(""),r()}}function mT(){var e=X_(),t=M_(),r=function(){var e=M_();return function t(r){if("function"==typeof r)return t(r(e.current));e.current=r}}(),n=yT(),i=D_()[0],o=function(e,t){var r;if(null==e||!e[t])return"";var n=(null==(r=Object.entries(null==e?void 0:e[t]))?void 0:r.length)||0;return function(e){return e>0?e>1?i_.replace("%n",e.toString()):n_:"No results found"}(n)}(t.current,i);return{onChange:function(e){var i=t.current,o=e.toLowerCase();if(null!=i&&i[o]||o.length<=1)return n(o);var a=function(e,t){if(!t)return null;if(t[e])return t[e];var r=Object.keys(t).sort((function(e,t){return t.length-e.length})).find((function(t){return e.includes(t)}));if(r)return t[r];return null}(o,i);if(!a)return n(o);r((function(e){var t;return Object.assign(e,((t={})[o]=function(e,t){var r={};for(var n in e){var i=e[n];bT(i,t)&&(r[n]=i)}return r}(a,o),t))})),n(o)},searchTerm:i,SearchInputRef:e,statusSearchResults:o}}function yT(){var e=D_()[1],t=J_();return function(r){requestAnimationFrame((function(){e(r?null==r?void 0:r.toLowerCase():r).then((function(){rT(t.current,0)}))}))}}function bT(e,t){return Hk(e).some((function(e){return e.includes(t)}))}function vT(e){return e&&"string"==typeof e?e.trim().toLowerCase():""}function wT(){var e=Z_(),t=N_()[1];return function(r){var n=GT(r)[0];n&&(e(r),t(n))}}function AT(){return C_()===Sk.SEARCH}function CT(){return C_()===Sk.PREVIEW}function ET(){var e,t,r,n,o,a,s,c,u;!function(){var e=J_(),t=gT(),r=(d=$_(),(0,i.useCallback)((function(e){requestAnimationFrame((function(){d.current&&(d.current.scrollTop=e)}))}),[d])),n=X_(),o=hT(),a=lT(),s=(l=P_(),function(){l.current=!0}),c=uT(),u=(0,i.useMemo)((function(){return function(e){var n=e.key;if(s(),n===q_.Escape){if(e.preventDefault(),a())return void c();t(),r(0),o()}}}),[r,t,c,o,a,s]);var l;var d;(0,i.useEffect)((function(){var t=e.current;if(t)return t.addEventListener("keydown",u),function(){t.removeEventListener("keydown",u)}}),[e,n,r,u])}(),u=eT(),e=(0,i.useCallback)((function(){u.current&&V_(u.current)}),[u]),t=J_(),r=$_(),n=X_(),o=R_()[1],a=xT(),s=AT(),c=(0,i.useMemo)((function(){return function(t){var n,i;switch(t.key){case q_.ArrowRight:if(!s)return;t.preventDefault(),o(!0),e();break;case q_.ArrowDown:t.preventDefault(),a();break;case q_.Enter:t.preventDefault(),n=r.current,U_(i=uM(n)),null==i||i.click()}}}),[e,a,o,r,s]),(0,i.useEffect)((function(){var e=n.current;if(e)return e.addEventListener("keydown",c),function(){e.removeEventListener("keydown",c)}}),[t,n,c]),function(){var e=eT(),t=hT(),r=X_(),n=xT(),o=R_(),a=o[0],s=o[1],c=CT(),u=AT(),l=kT(),d=(0,i.useMemo)((function(){return function(e){var r=e.key;if(u)switch(r){case q_.ArrowLeft:if(e.preventDefault(),!a)return t();ST(t);break;case q_.ArrowRight:if(e.preventDefault(),!a)return t();IT();break;case q_.ArrowDown:e.preventDefault(),a&&s(!1),n();break;default:l(e)}if(c)switch(r){case q_.ArrowUp:if(e.preventDefault(),!a)return t();ST(t);break;case q_.ArrowDown:if(e.preventDefault(),!a)return t();IT();break;default:l(e)}}}),[a,t,s,n,l,c,u]);(0,i.useEffect)((function(){var t=e.current;if(t)return t.addEventListener("keydown",d),function(){t.removeEventListener("keydown",d)}}),[e,r,a,d])}(),function(){var e=hT(),t=tT(),r=$_(),n=kT(),o=(0,i.useMemo)((function(){return function(t){switch(t.key){case q_.ArrowUp:t.preventDefault(),e();break;case q_.ArrowRight:t.preventDefault(),H_(K_());break;case q_.ArrowLeft:t.preventDefault(),z_(K_());break;case q_.ArrowDown:t.preventDefault(),iT(r.current);break;default:n(t)}}}),[r,e,n]);(0,i.useEffect)((function(){var e=t.current;if(e)return e.addEventListener("keydown",o),function(){e.removeEventListener("keydown",o)}}),[t,r,o])}(),function(){var e=$_(),t=(c=hT(),u=pT(),l=F_(),(0,i.useCallback)((function(){return l?c():u()}),[c,l,u])),r=wT(),n=lT(),o=uT(),a=kT(),s=(0,i.useMemo)((function(){return function(e){var i=e.key,s=KT(K_());switch(i){case q_.ArrowRight:e.preventDefault(),oT(s);break;case q_.ArrowLeft:e.preventDefault(),aT(s);break;case q_.ArrowDown:if(e.preventDefault(),n()){o();break}cT(s);break;case q_.ArrowUp:if(e.preventDefault(),n()){o();break}sT(s,t);break;case q_.Space:e.preventDefault(),r(e.target);break;default:a(e)}}}),[t,a,r,n,o]);var c,u,l;(0,i.useEffect)((function(){var t=e.current;if(t)return t.addEventListener("keydown",s),function(){t.removeEventListener("keydown",s)}}),[e,s])}()}function xT(){var e=pT(),t=F_(),r=$_();return(0,i.useCallback)((function(){return t?iT(r.current):e()}),[r,e,t])}function ST(e){var t=K_();t&&(t.nextElementSibling||e(),H_(t))}function IT(){var e=K_();e&&z_(e)}function kT(){var e,t,r=(e=X_(),t=yT(),function(r){e.current?(e.current.value=""+e.current.value+r,t(vT(e.current.value))):t(vT(r))}),n=hT(),i=A_(),o=uT();return function(e){var t=e.key;(function(e){var t=e.metaKey,r=e.ctrlKey,n=e.altKey;return t||r||n})(e)||i||t.match(/(^[a-zA-Z0-9]$){1}/)&&(e.preventDefault(),o(),n(),r(t))}}function _T(e,t,r){if(t&&r!==Ak.NATIVE){var n=Gk(t);TT.has(n)||(Wk(t).forEach((function(t){var n,i=e(t,r);n=i,(new Image).src=n})),TT.add(n))}}!function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.Escape="Escape",e.Enter="Enter",e.Space=" "}(q_||(q_={}));var TT=new Set;var MT=["width","height"],PT=40;function jT(e){var t=e.children;return(0,i.createElement)(__,null,(0,i.createElement)(DT,null,t))}function DT(e){var t,r,n,o,a=e.children,s=j_()[0],c=d_().theme,u=F_(),l=J_(),d=d_().className,f=function(){var e=d_(),t=e.height,r=e.width,n=e.style;return sk({height:x_(t),width:x_(r)},n)}();ET(),r=$_(),n=b_(),o=E_(),(0,i.useEffect)((function(){if(n!==Ak.NATIVE){var e=r.current;return null==e||e.addEventListener("focusin",t),function(){null==e||e.removeEventListener("focusin",t)}}function t(e){var t=KT(e.target);if(t){var r=GT(t)[0];r&&Jk(r)&&_T(o,r,n)}}}),[r,n,o]);var h=f||{},p=h.width,g=h.height,m=uk(h,MT);return(0,i.createElement)("aside",{className:rk(BT.main,BT.baseVariables,c===Ck.DARK&&BT.darkTheme,c===Ck.AUTO&&BT.autoThemeDark,(t={},t[$I.searchActive]=u,t),s&&BT.reactionsMenu,d),ref:l,style:sk({},m,!s&&{height:g,width:p})},a)}var OT={"--epr-emoji-variation-picker-bg-color":"var(--epr-dark-emoji-variation-picker-bg-color)","--epr-hover-bg-color-reduced-opacity":"var(--epr-dark-hover-bg-color-reduced-opacity)","--epr-highlight-color":"var(--epr-dark-highlight-color)","--epr-text-color":"var(--epr-dark-text-color)","--epr-hover-bg-color":"var(--epr-dark-hover-bg-color)","--epr-focus-bg-color":"var(--epr-dark-focus-bg-color)","--epr-search-input-bg-color":"var(--epr-dark-search-input-bg-color)","--epr-category-label-bg-color":"var(--epr-dark-category-label-bg-color)","--epr-picker-border-color":"var(--epr-dark-picker-border-color)","--epr-bg-color":"var(--epr-dark-bg-color)","--epr-reactions-bg-color":"var(--epr-dark-reactions-bg-color)","--epr-search-input-bg-color-active":"var(--epr-dark-search-input-bg-color-active)","--epr-emoji-variation-indicator-color":"var(--epr-dark-emoji-variation-indicator-color)","--epr-category-icon-active-color":"var(--epr-dark-category-icon-active-color)","--epr-skin-tone-picker-menu-color":"var(--epr-dark-skin-tone-picker-menu-color)"},BT=hk.create({main:{".":["epr-main",$I.emojiPicker],position:"relative",display:"flex",flexDirection:"column",borderWidth:"1px",borderStyle:"solid",borderRadius:"var(--epr-picker-border-radius)",borderColor:"var(--epr-picker-border-color)",backgroundColor:"var(--epr-bg-color)",overflow:"hidden",transition:"all 0.3s ease-in-out, background-color 0.1s ease-in-out","*":{boxSizing:"border-box",fontFamily:"sans-serif"}},baseVariables:{"--":{"--epr-highlight-color":"#007aeb","--epr-hover-bg-color":"#f1f8ff","--epr-hover-bg-color-reduced-opacity":"#f1f8ff80","--epr-focus-bg-color":"#e0f0ff","--epr-text-color":"#858585","--epr-search-input-bg-color":"#f6f6f6","--epr-picker-border-color":"#e7e7e7","--epr-bg-color":"#fff","--epr-reactions-bg-color":"#ffffff90","--epr-category-icon-active-color":"#6aa8de","--epr-skin-tone-picker-menu-color":"#ffffff95","--epr-horizontal-padding":"10px","--epr-picker-border-radius":"8px","--epr-search-border-color":"var(--epr-highlight-color)","--epr-header-padding":"15px var(--epr-horizontal-padding)","--epr-active-skin-tone-indicator-border-color":"var(--epr-highlight-color)","--epr-active-skin-hover-color":"var(--epr-hover-bg-color)","--epr-search-input-bg-color-active":"var(--epr-search-input-bg-color)","--epr-search-input-padding":"0 30px","--epr-search-input-border-radius":"8px","--epr-search-input-height":"40px","--epr-search-input-text-color":"var(--epr-text-color)","--epr-search-input-placeholder-color":"var(--epr-text-color)","--epr-search-bar-inner-padding":"var(--epr-horizontal-padding)","--epr-category-navigation-button-size":"30px","--epr-emoji-variation-picker-height":"45px","--epr-emoji-variation-picker-bg-color":"var(--epr-bg-color)","--epr-preview-height":"70px","--epr-preview-text-size":"14px","--epr-preview-text-padding":"0 var(--epr-horizontal-padding)","--epr-preview-border-color":"var(--epr-picker-border-color)","--epr-preview-text-color":"var(--epr-text-color)","--epr-category-padding":"0 var(--epr-horizontal-padding)","--epr-category-label-bg-color":"#ffffffe6","--epr-category-label-text-color":"var(--epr-text-color)","--epr-category-label-padding":"0 var(--epr-horizontal-padding)","--epr-category-label-height":PT+"px","--epr-emoji-size":"30px","--epr-emoji-padding":"5px","--epr-emoji-fullsize":"calc(var(--epr-emoji-size) + var(--epr-emoji-padding) * 2)","--epr-emoji-hover-color":"var(--epr-hover-bg-color)","--epr-emoji-variation-indicator-color":"var(--epr-picker-border-color)","--epr-emoji-variation-indicator-color-hover":"var(--epr-text-color)","--epr-header-overlay-z-index":"3","--epr-emoji-variations-indictator-z-index":"1","--epr-category-label-z-index":"2","--epr-skin-variation-picker-z-index":"5","--epr-preview-z-index":"6","--epr-dark":"#000","--epr-dark-emoji-variation-picker-bg-color":"var(--epr-dark)","--epr-dark-highlight-color":"#c0c0c0","--epr-dark-text-color":"var(--epr-highlight-color)","--epr-dark-hover-bg-color":"#363636f6","--epr-dark-hover-bg-color-reduced-opacity":"#36363680","--epr-dark-focus-bg-color":"#474747","--epr-dark-search-input-bg-color":"#333333","--epr-dark-category-label-bg-color":"#222222e6","--epr-dark-picker-border-color":"#151617","--epr-dark-bg-color":"#222222","--epr-dark-reactions-bg-color":"#22222290","--epr-dark-search-input-bg-color-active":"var(--epr-dark)","--epr-dark-emoji-variation-indicator-color":"#444","--epr-dark-category-icon-active-color":"#3271b7","--epr-dark-skin-tone-picker-menu-color":"#22222295"}},autoThemeDark:{".":$I.autoTheme,"@media (prefers-color-scheme: dark)":{"--":OT}},darkTheme:{".":$I.darkTheme,"--":OT},reactionsMenu:{".":"epr-reactions",height:"50px",display:"inline-flex",backgroundColor:"var(--epr-reactions-bg-color)",backdropFilter:"blur(8px)","--":{"--epr-picker-border-radius":"50px"}}});function NT(e,t){if(!e||!t)return 0;var r=e.getBoundingClientRect().width,n=t.getBoundingClientRect().width;return Math.floor(r/n)}function RT(e,t){if(!e||!t)return 0;var r=t.getBoundingClientRect().width,n=t.getBoundingClientRect().left,i=e.getBoundingClientRect().left;return Math.floor((n-i)/r)}function LT(e,t){if(!e||!t)return 0;var r=t.getBoundingClientRect().height,n=t.getBoundingClientRect().top,i=e.getBoundingClientRect().top;return Math.round((n-i)/r)}function FT(e,t,r){if(-1===t){var n=Math.floor((e.length-1)/r)*r,i=e.length-1;return e.slice(n,i+1)}return e.slice(t*r,(t+1)*r)}function UT(e,t,r,n){var i=FT(e,t,r);return i[n]||i[i.length-1]||null}function zT(e,t,r){if(void 0===r&&(r=0),!e||!t.length)return null;var n=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom,o=n+function(e){for(var t=Array.from(e.querySelectorAll(fk($I.label))),r=0,n=t;r0)return i}return PT}(e);return t.find((function(e){var t=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,s=e.clientHeight*r,c=t+s,u=a-s;return!(c=n&&c<=i||u>=n&&u<=i)}))||null}var HT="button"+fk($I.emoji),VT=[HT,fk($I.visible),":not("+fk($I.hidden)+")"].join("");function KT(e){var t;return null!=(t=null==e?void 0:e.closest(HT))?t:null}function GT(e){var t=tM(e),r=eM(e);if(!t)return[];var n=Yk(null!=r?r:t);return n?[n,r]:[]}function qT(e){var t;return null!=(t=null==e?void 0:e.clientHeight)?t:0}function QT(e){if(!e)return 0;var t=KT(e),r=fM(t),n=WT(r);return $T(t)+$T(r)+n}function WT(e){var t,r;if(!e)return 0;var n=e.querySelector(fk($I.categoryContent));return(null!=(t=null==e?void 0:e.clientHeight)?t:0)-(null!=(r=null==n?void 0:n.clientHeight)?r:0)}function JT(e){return e?e.matches(fk($I.scrollBody))?e:e.querySelector(fk($I.scrollBody)):null}function YT(e){var t,r;return e?QT(e)-(null!=(t=null==(r=ZT(e))?void 0:r.scrollTop)?t:0):0}function ZT(e){var t;return e&&null!=(t=e.closest(fk($I.scrollBody)))?t:null}function $T(e){var t;return null!=(t=null==e?void 0:e.offsetTop)?t:0}function XT(e){var t;return null!=(t=null==e?void 0:e.offsetLeft)?t:0}function eM(e){var t;return null!=(t=function(e,t){var r;return null!=(r=function(e){var t;return null!=(t=null==e?void 0:e.dataset)?t:{}}(e)[t])?r:null}(KT(e),"unified"))?t:null}function tM(e){var t=eM(e);return t?Kk(t):null}function rM(e){return e?{unified:eM(e),originalUnified:tM(e)}:{unified:null,originalUnified:null}}function nM(e){return e.classList.contains($I.visible)}function iM(e){return!e||e.classList.contains($I.hidden)}function oM(e){return e?Array.from(e.querySelectorAll(VT)):[]}function aM(e){if(!e)return null;var t=oM(e).slice(-1)[0];return t?nM(t)?t:cM(t):null}function sM(e){var t=e.nextElementSibling;return t?nM(t)?t:sM(t):uM(dM(e))}function cM(e){var t=e.previousElementSibling;return t?nM(t)?t:cM(t):aM(lM(e))}function uM(e){return e?zT(e,oM(e),.1):null}function lM(e){var t=fM(e);if(!t)return null;var r=t.previousElementSibling;return r?iM(r)?lM(r):r:null}function dM(e){var t=fM(e);if(!t)return null;var r=t.nextElementSibling;return r?iM(r)?dM(r):r:null}function fM(e){return e?e.closest(fk($I.category)):null}function hM(e){return e?e.closest(fk($I.categoryContent)):null}function pM(e){return e.split("-").map((function(e){return String.fromCodePoint(parseInt(e,16))})).join("")}var gM="epr_suggested";function mM(e){try{var t,r,n;if(null==(t=window)||!t.localStorage)return[];var i=JSON.parse(null!=(r=null==(n=window)?void 0:n.localStorage.getItem(gM))?r:"[]");return e===wk.FREQUENT?i.sort((function(e,t){return t.count-e.count})):i}catch(o){return[]}}function yM(e){return void 0!==e.imgUrl}function bM(e,t){var r=(0,i.useRef)(),n=wT(),o=(0,i.useContext)(T_).disallowClickRef,a=N_()[1],s=uT(),c=O_()[0],u=function(e){var t,r=p_().current;return(null!=(t=e===f_.REACTIONS?r.onReactionClick:r.onEmojiClick)?t:r.onEmojiClick)||function(){}}(t),l=L_()[1],d=E_(),f=b_(),h=(0,i.useCallback)((function(e){if(!o.current){s();var t=vM(e),r=t[0],n=t[1];if(r&&n){var i=function(e){var t=e.split("-")[1];return Rk.includes(t)?t:null}(n)||c;l(),function(e,t){var r,n=mM(),i=Gk(e,t),o=Gk(e),a=n.find((function(e){return e.unified===i}));r=a?[a].concat(n.filter((function(e){return e!==a}))):[a={unified:i,original:o,count:0}].concat(n),a.count++,r.length=Math.min(r.length,14);try{var s;null==(s=window)||s.localStorage.setItem(gM,JSON.stringify(r))}catch(c){}}(r,i),u(function(e,t,r,n){var i=Hk(e);if(yM(e)){var o=Gk(e);return{activeSkinTone:t,emoji:o,getImageUrl:function(){return e.imgUrl},imageUrl:e.imgUrl,isCustom:!0,names:i,unified:o,unifiedWithoutSkinTone:o}}var a=Gk(e,t);return{activeSkinTone:t,emoji:pM(a),getImageUrl:function(e){return void 0===e&&(e=null!=r?r:Ak.APPLE),n(a,e)},imageUrl:n(a,null!=r?r:Ak.APPLE),isCustom:!1,names:i,unified:a,unifiedWithoutSkinTone:Gk(e)}}(r,i,f,d),e)}}}),[c,s,o,u,l,d,f]),p=(0,i.useCallback)((function(e){var t;r.current&&clearTimeout(r.current);var i=vM(e)[0];i&&Jk(i)&&(r.current=null==(t=window)?void 0:t.setTimeout((function(){o.current=!0,r.current=void 0,s(),n(e.target),a(i)}),500))}),[o,s,n,a]),g=(0,i.useCallback)((function(){r.current?(clearTimeout(r.current),r.current=void 0):o.current&&requestAnimationFrame((function(){o.current=!1}))}),[o]);(0,i.useEffect)((function(){if(e.current){var t=e.current;return t.addEventListener("click",h,{passive:!0}),t.addEventListener("mousedown",p,{passive:!0}),t.addEventListener("mouseup",g,{passive:!0}),function(){null==t||t.removeEventListener("click",h),null==t||t.removeEventListener("mousedown",p),null==t||t.removeEventListener("mouseup",g)}}}),[e,h,p,g])}function vM(e){var t,r,n=null==e?void 0:e.target;return t=n,Boolean((null==t?void 0:t.matches(HT))||(null==t||null==(r=t.parentElement)?void 0:r.matches(HT)))?GT(n):[]}function wM(e){return(0,i.createElement)("button",Object.assign({type:"button"},e,{className:rk(AM.button,e.className)}),e.children)}var AM=hk.create({button:{".":"epr-btn",cursor:"pointer",border:"0",background:"none",outline:"none"}});function CM(e){var t,r=e.emojiNames,n=e.unified,o=e.hidden,a=e.hiddenOnSearch,s=e.showVariations,c=void 0===s||s,u=e.hasVariations,l=e.children,d=e.className,f=e.noBackground,h=void 0!==f&&f;return(0,i.createElement)(wM,{className:rk(xM.emoji,o&&gk.hidden,a&&yk.hiddenOnSearch,(t={},t[$I.visible]=!o&&!a,t),!(!u||!c)&&xM.hasVariations,h&&xM.noBackground,d),"data-unified":n,"aria-label":EM(r),"data-full-name":r},l)}function EM(e){var t;return e[0].match("flag-")&&null!=(t=e[1])?t:e[0]}var xM=hk.create({emoji:{".":$I.emoji,position:"relative",width:"var(--epr-emoji-fullsize)",height:"var(--epr-emoji-fullsize)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",maxWidth:"var(--epr-emoji-fullsize)",maxHeight:"var(--epr-emoji-fullsize)",borderRadius:"8px",overflow:"hidden",transition:"background-color 0.2s",":hover":{backgroundColor:"var(--epr-emoji-hover-color)"},":focus":{backgroundColor:"var(--epr-focus-bg-color)"}},noBackground:{background:"none",":hover":{backgroundColor:"transparent",background:"none"},":focus":{backgroundColor:"transparent",background:"none"}},hasVariations:{".":$I.emojiHasVariations,":after":{content:"",display:"block",width:"0",height:"0",right:"0px",bottom:"1px",position:"absolute",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",transform:"rotate(135deg)",borderBottom:"4px solid var(--epr-emoji-variation-indicator-color)",zIndex:"var(--epr-emoji-variations-indictator-z-index)"},":hover:after":{borderBottom:"4px solid var(--epr-emoji-variation-indicator-color-hover)"}}}),SM=hk.create({external:{".":$I.external,fontSize:"0"},common:{alignSelf:"center",justifySelf:"center",display:"block"}});function IM(e){var t=e.emojiName,r=e.style,n=e.lazyLoad,o=void 0!==n&&n,a=e.imgUrl,s=e.onError,c=e.className;return(0,i.createElement)("img",{src:a,alt:t,className:rk(kM.emojiImag,SM.external,SM.common,c),loading:o?"lazy":"eager",onError:s,style:r})}var kM=hk.create({emojiImag:{".":"epr-emoji-img",maxWidth:"var(--epr-emoji-fullsize)",maxHeight:"var(--epr-emoji-fullsize)",minWidth:"var(--epr-emoji-fullsize)",minHeight:"var(--epr-emoji-fullsize)",padding:"var(--epr-emoji-padding)"}});function _M(e){var t=e.unified,r=e.style,n=e.className;return(0,i.createElement)("span",{className:rk(TM.nativeEmoji,SM.common,SM.external,n),"data-unified":t,style:r},pM(t))}var TM=hk.create({nativeEmoji:{".":"epr-emoji-native",fontFamily:'"Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "EmojiOne Color", "Android Emoji"!important',position:"relative",lineHeight:"100%",fontSize:"var(--epr-emoji-size)",textAlign:"center",alignSelf:"center",justifySelf:"center",letterSpacing:"0",padding:"var(--epr-emoji-padding)"}});function MM(e){var t=e.emoji,r=e.unified,n=e.emojiStyle,o=e.size,a=e.lazyLoad,s=e.getEmojiUrl,c=void 0===s?Qk:s,u=e.className,l=B_()[1],d={};o&&(d.width=d.height=d.fontSize=o+"px");var f=t||Yk(r);return f?yM(f)?(0,i.createElement)(IM,{style:d,emojiName:r,emojiStyle:Ak.NATIVE,lazyLoad:a,imgUrl:f.imgUrl,onError:h,className:u}):(0,i.createElement)(i.Fragment,null,n===Ak.NATIVE?(0,i.createElement)(_M,{unified:r,style:d,className:u}):(0,i.createElement)(IM,{style:d,emojiName:Vk(f),emojiStyle:n,lazyLoad:a,imgUrl:c(r,n),onError:h,className:u})):null;function h(){l((function(e){return new Set(e).add(r)}))}}function PM(e){var t=e.emoji,r=e.unified,n=e.hidden,o=e.hiddenOnSearch,a=e.emojiStyle,s=e.showVariations,c=void 0===s||s,u=e.size,l=e.lazyLoad,d=e.getEmojiUrl,f=e.className,h=e.noBackground,p=void 0!==h&&h,g=Jk(t);return(0,i.createElement)(CM,{hasVariations:g,showVariations:c,hidden:n,hiddenOnSearch:o,emojiNames:Hk(t),unified:r,noBackground:p},(0,i.createElement)(MM,{unified:r,emoji:t,size:u,emojiStyle:a,lazyLoad:l,getEmojiUrl:d,className:f}))}function jM(){var e=j_()[1];return(0,i.createElement)(wM,{"aria-label":"Show all Emojis",title:"Show all Emojis",tabIndex:0,className:rk(DM.plusSign),onClick:function(){return e(!1)}})}var DM=hk.create(sk({plusSign:{fontSize:"20px",padding:"17px",color:"var(--epr-text-color)",borderRadius:"50%",textAlign:"center",lineHeight:"100%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",transition:"background-color 0.2s ease-in-out",":after":{content:"",minWidth:"20px",minHeight:"20px",backgroundImage:"url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjgwcHgiIHZpZXdCb3g9IjAgMCAyMCA4MCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjAgODAiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsPSIjODY4Njg2IiBkPSJNNS43LDEwLjRjMCwwLjEsMC4xLDAuMywwLjIsMC40QzYsMTAuOSw2LjEsMTEsNi4zLDExaDMuNHYzLjRjMCwwLjEsMC4xLDAuMywwLjIsMC40CgljMC4xLDAuMSwwLjIsMC4yLDAuNCwwLjJjMC4zLDAsMC41LTAuMiwwLjUtMC41di0zLjRoMy40YzAuMywwLDAuNS0wLjIsMC41LTAuNXMtMC4yLTAuNS0wLjUtMC41aC0zLjRWNi43YzAtMC4zLTAuMi0wLjUtMC41LTAuNQoJQzkuOCw2LDkuNiw2LjIsOS42LDYuNXYzLjRINi4yQzUuOSw5LjksNS43LDEwLjEsNS43LDEwLjRMNS43LDEwLjR6Ii8+CjxwYXRoIGZpbGw9IiMzMzcxQjciIGQ9Ik01LjcsMzAuNGMwLDAuMSwwLjEsMC4zLDAuMiwwLjRTNi4xLDMxLDYuMywzMWgzLjR2My40YzAsMC4xLDAuMSwwLjMsMC4yLDAuNGMwLjEsMC4xLDAuMiwwLjIsMC40LDAuMgoJYzAuMywwLDAuNS0wLjIsMC41LTAuNXYtMy40aDMuNGMwLjMsMCwwLjUtMC4yLDAuNS0wLjVzLTAuMi0wLjUtMC41LTAuNWgtMy40di0zLjRjMC0wLjMtMC4yLTAuNS0wLjUtMC41cy0wLjUsMC4yLTAuNSwwLjV2My40SDYuMgoJQzUuOSwyOS45LDUuNywzMC4xLDUuNywzMC40TDUuNywzMC40eiIvPgo8cGF0aCBmaWxsPSIjQzBDMEJGIiBkPSJNNS43LDUwLjRjMCwwLjEsMC4xLDAuMywwLjIsMC40QzYsNTAuOSw2LjEsNTEsNi4zLDUxaDMuNHYzLjRjMCwwLjEsMC4xLDAuMywwLjIsMC40CgljMC4xLDAuMSwwLjIsMC4yLDAuNCwwLjJjMC4zLDAsMC41LTAuMiwwLjUtMC41di0zLjRoMy40YzAuMywwLDAuNS0wLjIsMC41LTAuNXMtMC4yLTAuNS0wLjUtMC41aC0zLjR2LTMuNGMwLTAuMy0wLjItMC41LTAuNS0wLjUKCXMtMC41LDAuMi0wLjUsMC41djMuNEg2LjJDNS45LDQ5LjksNS43LDUwLjEsNS43LDUwLjRMNS43LDUwLjR6Ii8+CjxwYXRoIGZpbGw9IiM2QUE5REQiIGQ9Ik01LjcsNzAuNGMwLDAuMSwwLjEsMC4zLDAuMiwwLjRTNi4xLDcxLDYuMyw3MWgzLjR2My40YzAsMC4xLDAuMSwwLjMsMC4yLDAuNGMwLjEsMC4xLDAuMiwwLjIsMC40LDAuMgoJYzAuMywwLDAuNS0wLjIsMC41LTAuNXYtMy40aDMuNGMwLjMsMCwwLjUtMC4yLDAuNS0wLjVzLTAuMi0wLjUtMC41LTAuNWgtMy40di0zLjRjMC0wLjMtMC4yLTAuNS0wLjUtMC41cy0wLjUsMC4yLTAuNSwwLjV2My40SDYuNAoJQzUuOSw2OS45LDUuNyw3MC4xLDUuNyw3MC40TDUuNyw3MC40eiIvPgo8L3N2Zz4=)",backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundSize:"20px",backgroundPositionY:"0"},":hover":{color:"var(--epr-highlight-color)",backgroundColor:"var(--epr-hover-bg-color-reduced-opacity)",":after":{backgroundPositionY:"-20px"}},":focus":{color:"var(--epr-highlight-color)",backgroundColor:"var(--epr-hover-bg-color-reduced-opacity)",":after":{backgroundPositionY:"-40px"}}}},bk("plusSign",{":after":{backgroundPositionY:"-40px"},":hover:after":{backgroundPositionY:"-60px"}})));function OM(){var e=j_()[0],t=W_().ReactionsRef,r=d_().reactions;bM(t,f_.REACTIONS);var n=b_(),o=m_(),a=E_();return e?(0,i.createElement)("ul",{className:rk(BM.list,!e&&gk.hidden),ref:t},r.map((function(e){return(0,i.createElement)("li",{key:e},(0,i.createElement)(PM,{emoji:Yk(e),emojiStyle:n,unified:e,showVariations:!1,className:rk(BM.emojiButton),noBackground:!0,getEmojiUrl:a}))})),o?(0,i.createElement)("li",null,(0,i.createElement)(jM,null)):null):null}var BM=hk.create({list:{listStyle:"none",margin:"0",padding:"0 5px",display:"flex",justifyContent:"space-between",alignItems:"center",height:"100%"},emojiButton:{":hover":{transform:"scale(1.2)"},":focus":{transform:"scale(1.2)"},":active":{transform:"scale(1.1)"},transition:"transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.5)"}});function NM(){var e=B_()[0],t=function(){var e=M_().current,t=D_()[0];return function(r){return function(e,t,r){var n;return!(!t||!r)&&!(null!=(n=t[r])&&n[e])}(r,e,t)}}();return function(r){var n=Gk(r),i=e.has(n),o=t(n);return{failedToLoad:i,filteredOut:o,hidden:i||o}}}function RM(e){var t=e.categoryConfig,r=e.children,n=e.hidden,o=e.hiddenOnSearch,a=jk(t),s=Dk(t);return(0,i.createElement)("li",{className:rk(LM.category,n&&gk.hidden,o&&yk.hiddenOnSearch),"data-name":a,"aria-label":s},(0,i.createElement)("h2",{className:rk(LM.label)},s),(0,i.createElement)("div",{className:rk(LM.categoryContent)},r))}var LM=hk.create({category:{".":$I.category,":not(:has(.epr-visible))":{display:"none"}},categoryContent:{".":$I.categoryContent,display:"grid",gridGap:"0",gridTemplateColumns:"repeat(auto-fill, var(--epr-emoji-fullsize))",justifyContent:"space-between",margin:"var(--epr-category-padding)",position:"relative"},label:{".":$I.label,alignItems:"center",backdropFilter:"blur(3px)",backgroundColor:"var(--epr-category-label-bg-color)",color:"var(--epr-category-label-text-color)",display:"flex",fontSize:"16px",fontWeight:"bold",height:"var(--epr-category-label-height)",margin:"0",padding:"var(--epr-category-label-padding)",position:"sticky",textTransform:"capitalize",top:"0",width:"100%",zIndex:"var(--epr-category-label-z-index)"}}),FM=!1;function UM(e){var t=e.categoryConfig,r=L_()[0],n=function(){var e=(0,i.useState)(FM),t=e[0],r=e[1];return(0,i.useEffect)((function(){r(!0),FM=!0}),[]),t||FM}(),o=d_().suggestedEmojisMode,a=E_(),s=(0,i.useMemo)((function(){var e;return null!=(e=mM(o))?e:[]}),[r,o]),c=b_();return n?(0,i.createElement)(RM,{categoryConfig:t,hiddenOnSearch:!0,hidden:0===s.length},s.map((function(e){var t=Yk(e.original);return t?(0,i.createElement)(PM,{showVariations:!1,unified:e.unified,emojiStyle:c,emoji:t,key:e.unified,getEmojiUrl:a}):null}))):null}function zM(){var e=v_(),t=(0,i.useRef)(0);return(0,i.createElement)("ul",{className:rk(KM.emojiList)},e.map((function(e){var r=jk(e);return r===xk.SUGGESTED?(0,i.createElement)(UM,{key:r,categoryConfig:e}):(0,i.createElement)(i.Suspense,{key:r},(0,i.createElement)(HM,{category:r,categoryConfig:e,renderdCategoriesCountRef:t}))})))}function HM(e){var t,r,n=e.category,o=e.categoryConfig,a=e.renderdCategoriesCountRef,s=NM(),c=d_().lazyLoadEmojis,u=b_(),l=(0,i.useContext)(T_).isPastInitialLoad,d=O_()[0],f=(t=k_(),r=I_(),function(e){var n=Kk(Gk(e));return Boolean(t[n]||r(n))}),h=E_(),p=!y_(),g=!l&&a.current>0?[]:qk(n);g.length>0&&a.current++;var m=0,y=g.map((function(e){var t=Gk(e,d),r=s(e),n=r.failedToLoad,o=r.filteredOut,a=r.hidden,l=f(e);return(a||l)&&m++,l?null:(0,i.createElement)(PM,{showVariations:p,key:t,emoji:e,unified:t,hidden:n,hiddenOnSearch:o,emojiStyle:u,lazyLoad:c,getEmojiUrl:h})}));return(0,i.createElement)(RM,{categoryConfig:o,hidden:m===y.length},y)}var VM,KM=hk.create({emojiList:{".":$I.emojiList,listStyle:"none",margin:"0",padding:"0"}});function GM(){var e,t,r=Y_(),n=W_().VariationPickerRef,o=N_()[0],a=b_(),s=function(e){var t=Y_(),r=$_(),n=VM.Up;return{getMenuDirection:i,getTop:o};function i(){return n}function o(){n=VM.Up;var i=0;if(!e.current)return 0;var o=qT(e.current);if(t.current){var a,s=r.current,c=KT(t.current),u=qT(c);i=QT(c),(null!=(a=null==s?void 0:s.scrollTop)?a:0)>i-o&&(n=VM.Down,i+=u+o)}return i-o}}(n),c=s.getTop,u=s.getMenuDirection,l=Z_(),d=function(e){var t=Y_();return function(){var r={};if(!e.current)return r;if(t.current){var n=KT(t.current),i=function(e){var t=KT(e),r=fM(t);return XT(t)+XT(r)}(n);if(!n)return r;r.left=i+(null==n?void 0:n.clientWidth)/2}return r}}(n),f=E_(),h=KT(r.current),p=Boolean(o&&h&&Jk(o)&&h.classList.contains($I.emojiHasVariations));return(0,i.useEffect)((function(){p&&iT(n.current)}),[n,p,r]),!p&&r.current?l(null):(e=c(),t=d()),(0,i.createElement)("div",{ref:n,className:rk(qM.variationPicker,u()===VM.Down&&qM.pointingUp,p&&qM.visible),style:{top:e}},p&&o?[Gk(o)].concat(Wk(o)).slice(0,6).map((function(e){return(0,i.createElement)(PM,{key:e,emoji:o,unified:e,emojiStyle:a,showVariations:!1,getEmojiUrl:f})})):null,(0,i.createElement)("div",{className:rk(qM.pointer),style:t}))}!function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(VM||(VM={}));var qM=hk.create(sk({variationPicker:{".":$I.variationPicker,position:"absolute",right:"15px",left:"15px",padding:"5px",boxShadow:"0px 2px 5px rgba(0, 0, 0, 0.2)",borderRadius:"3px",display:"flex",alignItems:"center",justifyContent:"space-around",opacity:"0",visibility:"hidden",pointerEvents:"none",top:"-100%",border:"1px solid var(--epr-picker-border-color)",height:"var(--epr-emoji-variation-picker-height)",zIndex:"var(--epr-skin-variation-picker-z-index)",background:"var(--epr-emoji-variation-picker-bg-color)",transform:"scale(0.9)",transition:"transform 0.1s ease-out, opacity 0.2s ease-out"},visible:{opacity:"1",visibility:"visible",pointerEvents:"all",transform:"scale(1)"},pointingUp:{".":"pointing-up",transformOrigin:"center 0%",transform:"scale(0.9)"},".pointing-up":{pointer:{top:"0",transform:"rotate(180deg) translateY(100%) translateX(18px)"}},pointer:{".":"epr-emoji-pointer",content:"",position:"absolute",width:"25px",height:"15px",backgroundRepeat:"no-repeat",backgroundPosition:"0 0",backgroundSize:"50px 15px",top:"100%",transform:"translateX(-18px)",backgroundImage:"url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI1MHB4IgoJIGhlaWdodD0iMTVweCIgdmlld0JveD0iMCAwIDUwIDE1IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MCAxNSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnIGlkPSJMYXllcl8xIj4KPC9nPgo8ZyBpZD0iTGF5ZXJfMiI+Cgk8cGF0aCBmaWxsPSIjRkZGRkZGIiBzdHJva2U9IiNFOEU3RTciIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTEuODYtMC40M2w5LjgzLDExLjUzYzAuNTksMC42OSwxLjU2LDAuNjksMi4xNCwwbDkuODMtMTEuNTMiLz4KCTxwYXRoIGZpbGw9IiMwMTAyMDIiIHN0cm9rZT0iIzE1MTYxNyIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMjYuODYtMC40M2w5LjgzLDExLjUzYzAuNTksMC42OSwxLjU2LDAuNjksMi4xNCwwbDkuODMtMTEuNTMiLz4KPC9nPgo8L3N2Zz4=)"}},bk("pointer",{backgroundPosition:"-25px 0"})));function QM(){var e=$_();return function(e){var t=uT();(0,i.useEffect)((function(){var r=e.current;if(r)return r.addEventListener("scroll",n,{passive:!0}),function(){null==r||r.removeEventListener("scroll",n)};function n(){t()}}),[e,t])}(e),bM(e,f_.PICKER),function(){var e=$_(),t=dT(),r=fT();(0,i.useEffect)((function(){var n=e.current;function i(){r()&&t()}return null==n||n.addEventListener("mousemove",i,{passive:!0}),function(){null==n||n.removeEventListener("mousemove",i)}}),[e,t,r])}(),(0,i.createElement)("div",{className:rk(YM.body,yk.hiddenOnReactions),ref:e},(0,i.createElement)(GM,null),(0,i.createElement)(zM,null))}var WM,JM,YM=hk.create({body:{".":$I.scrollBody,flex:"1",overflowY:"scroll",overflowX:"hidden",position:"relative"}});function ZM(e,t){var r=$_(),n=fT(),o=dT();(0,i.useEffect)((function(){if(e){var i=r.current;return null==i||i.addEventListener("keydown",s,{passive:!0}),null==i||i.addEventListener("mouseover",c,!0),null==i||i.addEventListener("focus",o,!0),null==i||i.addEventListener("mouseout",a,{passive:!0}),null==i||i.addEventListener("blur",a,!0),function(){null==i||i.removeEventListener("mouseover",c),null==i||i.removeEventListener("mouseout",a),null==i||i.removeEventListener("focus",o,!0),null==i||i.removeEventListener("blur",a,!0),null==i||i.removeEventListener("keydown",s)}}function o(e){var r=KT(e.target);if(!r)return a();var n=rM(r),i=n.unified,o=n.originalUnified;if(!i||!o)return a();t({unified:i,originalUnified:o})}function a(e){if(e&&!KT(e.relatedTarget))return t(null);t(null)}function s(e){"Escape"===e.key&&t(null)}function c(e){if(!n()){var r=KT(e.target);if(r){var o=function(e,t){if(!e||!t)return 0;var r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return n.height-(r.y-n.y)}(r,i);if(o button":{width:"var(--epr-skin-tone-size)",display:"block",cursor:"pointer",borderRadius:"4px",height:"var(--epr-skin-tone-size)",position:"absolute",right:"0",transition:"transform 0.3s ease-in-out, opacity 0.35s ease-in-out",zIndex:"0",boxShadow:"0 0 0 0px var(--epr-active-skin-hover-color)"}}});function uP(){var e=w_(),t=CT();return e.showPreview?(0,i.createElement)($M,{className:rk(dP.preview,yk.hiddenOnReactions)},(0,i.createElement)(lP,null),(0,i.createElement)(eP,null),t?(0,i.createElement)(aP,null):null):null}function lP(){var e,t=w_(),r=(0,i.useState)(null),n=r[0],o=r[1],a=b_(),s=N_()[0],c=E_();ZM(t.showPreview,o);var u=Yk(null!=(e=null==n?void 0:n.unified)?e:null==n?void 0:n.originalUnified),l=null!=u&&null!=n;return(0,i.createElement)((function(){var e=null!=s?s:Yk(t.defaultEmoji);if(!e)return null;var r=s?Vk(s):t.defaultCaption;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",null,l?(0,i.createElement)(MM,{unified:null==n?void 0:n.unified,emoji:u,emojiStyle:a,size:45,getEmojiUrl:c,className:rk(dP.emoji)}):e?(0,i.createElement)(MM,{unified:Gk(e),emoji:e,emojiStyle:a,size:45,getEmojiUrl:c,className:rk(dP.emoji)}):null),(0,i.createElement)("div",{className:rk(dP.label)},l?Vk(u):r))}),null)}var dP=hk.create({preview:{alignItems:"center",borderTop:"1px solid var(--epr-preview-border-color)",height:"var(--epr-preview-height)",padding:"0 var(--epr-horizontal-padding)",position:"relative",zIndex:"var(--epr-preview-z-index)"},label:{color:"var(--epr-preview-text-color)",fontSize:"var(--epr-preview-text-size)",padding:"var(--epr-preview-text-padding)",textTransform:"capitalize"},emoji:{padding:"0"}});function fP(){var e=d_().customEmojis;return!!e&&0===e.length}function hP(e){var t,r=e.isActiveCategory,n=e.category,o=e.allowNavigation,a=e.categoryConfig,s=e.onClick;return(0,i.createElement)(wM,{tabIndex:o?0:-1,className:rk(yP.catBtn,yk.categoryBtn,"epr-icn-"+n,(t={},t[$I.active]=r,t)),onClick:s,"aria-label":Dk(a),"aria-selected":r,role:"tab","aria-controls":"epr-category-nav-id"})}var pP={backgroundPositionY:"calc(var(--epr-category-navigation-button-size) * 3)"},gP={backgroundPositionY:"calc(var(--epr-category-navigation-button-size) * 2)"},mP={":not(.epr-search-active)":{catBtn:{":hover":pP,"&.epr-active":pP}}},yP=hk.create(sk({catBtn:{".":"epr-cat-btn",display:"inline-block",transition:"opacity 0.2s ease-in-out",position:"relative",height:"var(--epr-category-navigation-button-size)",width:"var(--epr-category-navigation-button-size)",backgroundSize:"calc(var(--epr-category-navigation-button-size) * 10)",outline:"none",backgroundPosition:"0 0",backgroundImage:"url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIyMDBweCIgaGVpZ2h0PSI4MHB4IiB2aWV3Qm94PSIwIDAgMjAwIDgwIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyMDAgODAiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8ZyBpZD0iTGF5ZXJfMTEiPgoJPGc+CgkJPHBhdGggZmlsbD0iIzMzNzFCNyIgc3Ryb2tlPSIjMzM3MUI3IiBzdHJva2Utd2lkdGg9IjAuMSIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTIuOCwyOS41YzAuNiwwLDEuMS0wLjUsMS4xLTEuMQoJCQljMC0wLjYtMC41LTEuMi0xLjEtMS4yYy0wLjYsMC0xLjIsMC41LTEuMiwxLjJDMTEuNiwyOSwxMi4yLDI5LjUsMTIuOCwyOS41eiBNMTIuOCwyOGMwLjIsMCwwLjQsMC4yLDAuNCwwLjQKCQkJYzAsMC4yLTAuMiwwLjQtMC40LDAuNGMtMC4yLDAtMC40LTAuMi0wLjQtMC40QzEyLjQsMjguMSwxMi42LDI4LDEyLjgsMjh6Ii8+CgkJPHBhdGggZmlsbD0iIzMzNzFCNyIgc3Ryb2tlPSIjMzM3MUI3IiBzdHJva2Utd2lkdGg9IjAuMSIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTAsMjNjLTMuOCwwLTcsMy4xLTcsN2MwLDMuOCwzLjEsNyw3LDcKCQkJczctMy4xLDctN0MxNywyNi4yLDEzLjgsMjMsMTAsMjN6IE0xMCwzNi4yYy0zLjQsMC02LjItMi44LTYuMi02LjJjMC0zLjQsMi44LTYuMiw2LjItNi4yczYuMiwyLjgsNi4yLDYuMgoJCQlDMTYuMiwzMy40LDEzLjQsMzYuMiwxMCwzNi4yeiIvPgoJCTxwYXRoIGZpbGw9IiMzMzcxQjciIHN0cm9rZT0iIzMzNzFCNyIgc3Ryb2tlLXdpZHRoPSIwLjEiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjYsMzEuMmMtMC4xLTAuMS0wLjItMC4yLTAuMy0wLjJINS43CgkJCWMtMC4xLDAtMC4yLDAuMS0wLjMsMC4yYy0wLjEsMC4xLTAuMSwwLjIsMCwwLjRjMC43LDIsMi41LDMuMyw0LjYsMy4zczMuOS0xLjMsNC42LTMuM0MxNC43LDMxLjUsMTQuNywzMS4zLDE0LjYsMzEuMnogTTEwLDM0LjEKCQkJYy0xLjYsMC0zLTAuOS0zLjctMi4yaDcuM0MxMywzMy4yLDExLjYsMzQuMSwxMCwzNC4xeiIvPgoJCTxwYXRoIGZpbGw9IiMzMzcxQjciIHN0cm9rZT0iIzMzNzFCNyIgc3Ryb2tlLXdpZHRoPSIwLjEiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTcuMiwyOS41YzAuNiwwLDEuMi0wLjUsMS4yLTEuMQoJCQljMC0wLjYtMC41LTEuMi0xLjItMS4yYy0wLjYsMC0xLjEsMC41LTEuMSwxLjJDNi4xLDI5LDYuNiwyOS41LDcuMiwyOS41eiBNNy4yLDI4YzAuMiwwLDAuNCwwLjIsMC40LDAuNGMwLDAuMi0wLjIsMC40LTAuNCwwLjQKCQkJYy0wLjIsMC0wLjQtMC4yLTAuNC0wLjRDNi44LDI4LjEsNywyOCw3LjIsMjh6Ii8+Cgk8L2c+Cgk8Zz4KCQk8Zz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzM3MUI3IiBkPSJNNjQuMSwzMy40bDIuMywwYzAuMiwwLDAuNCwwLjIsMC40LDAuNHYyLjFjMCwwLjItMC4yLDAuNC0wLjQsMC40aC0yLjMKCQkJCWMtMC4yLDAtMC40LTAuMi0wLjQtMC40di0yLjFDNjMuNywzMy42LDYzLjgsMzMuNCw2NC4xLDMzLjR6Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzNzFCNyIgZD0iTTczLjUsMzMuNWgyLjRjMC4yLDAsMC40LDAuMiwwLjQsMC40djJjMCwwLjItMC4yLDAuNC0wLjQsMC40aC0yLjQKCQkJCWMtMC4yLDAtMC40LTAuMi0wLjQtMC40bDAtMkM3My4xLDMzLjYsNzMuMywzMy41LDczLjUsMzMuNXoiLz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzM3MUI3IiBkPSJNNjMuNywyOC40aDEyLjZ2NUg2My43VjI4LjR6Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzNzFCNyIgZD0iTTY1LjUsMjMuNmg4LjljMSwwLDEuOSwwLjgsMS45LDEuOXYzLjFINjMuN3YtMy4xQzYzLjcsMjQuNSw2NC41LDIzLjYsNjUuNSwyMy42eiIvPgoJCQk8ZWxsaXBzZSBmaWxsPSIjMzM3MUI3IiBjeD0iNjYuMiIgY3k9IjMwLjkiIHJ4PSIwLjkiIHJ5PSIxIi8+CgkJCTxlbGxpcHNlIGZpbGw9IiMzMzcxQjciIGN4PSI3My44IiBjeT0iMzAuOSIgcng9IjAuOSIgcnk9IjEiLz4KCQk8L2c+Cgk8L2c+Cgk8Zz4KCQk8Zz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzM3MUI3IiBkPSJNOTYuNCwzMGMwLDMuNi0yLjksNi41LTYuNCw2LjVzLTYuNC0yLjktNi40LTYuNXMyLjktNi41LDYuNC02LjVTOTYuNCwyNi40LDk2LjQsMzB6Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzNzFCNyIgZD0iTTk2LjMsMjguNmMwLDAsMCwwLjEsMCwwLjFjLTAuOSwwLjEtMi45LDAuMS00LjYtMS4xYy0xLjEtMC44LTItMS43LTIuNi0yLjUKCQkJCWMtMC4zLTAuNC0wLjYtMC44LTAuNy0xYy0wLjEtMC4xLTAuMS0wLjEtMC4xLTAuMmMwLjUtMC4xLDEuMi0wLjIsMi0wLjFjMS4yLDAsMi41LDAuMywzLjUsMS4xYzEsMC44LDEuNywxLjgsMi4xLDIuOAoJCQkJQzk2LjEsMjcuOSw5Ni4yLDI4LjMsOTYuMywyOC42eiIvPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMzMzcxQjciIGQ9Ik04NCwzMi4yYzAsMCwwLTAuMSwwLTAuMWMwLjktMC4yLDIuOS0wLjQsNC43LDAuNmMxLjEsMC43LDEuOSwxLjUsMi40LDIuMwoJCQkJYzAuNCwwLjUsMC42LDEsMC43LDEuM2MtMC40LDAuMS0xLDAuMi0xLjcsMC4zYy0xLDAtMi4xLTAuMS0zLjItMC44cy0xLjktMS42LTIuNC0yLjVDODQuMiwzMi44LDg0LjEsMzIuNSw4NCwzMi4yeiIvPgoJCTwvZz4KCTwvZz4KCTxnPgoJCTxnPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMzMzcxQjciIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgZD0iTTExNi4zLDI2LjhsLTEuNCwybC0wLjgtMC44bC0wLjYtMC42bDAsMC45bC0wLjEsOC4yaC02LjgKCQkJCWwtMC4xLTguMmwwLTAuOWwtMC42LDAuNmwtMC44LDAuOGwtMS40LTJsMi42LTIuOWMwLjEtMC4xLDAuMi0wLjEsMC4zLTAuMWgxLjNsMC40LDAuN2MwLjcsMS4zLDIuNiwxLjMsMy4zLTAuMWwwLjMtMC42aDEuMgoJCQkJYzAuMSwwLDAuMiwwLDAuMywwLjFsMC4zLTAuM2wtMC4zLDAuM0wxMTYuMywyNi44eiIvPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMzMzcxQjciIGQ9Ik0xMTAuMSwyNy43aDJ2MC45YzAsMC40LTAuNCwwLjctMSwwLjdjLTAuNiwwLTEtMC4zLTEtMC43TDExMC4xLDI3LjdMMTEwLjEsMjcuN3oiLz4KCQk8L2c+Cgk8L2c+Cgk8Zz4KCQk8Zz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzM3MUI3IiBkPSJNMTI2LjgsMzQuM2MwLDEuMi0xLDIuMi0yLjIsMi4ycy0yLjItMS0yLjItMi4yczEtMi4yLDIuMi0yLjJTMTI2LjgsMzMuMSwxMjYuOCwzNC4zeiIvPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMzMzcxQjciIGQ9Ik0xMzcuNiwzNC4zYzAsMS4yLTEsMi4yLTIuMiwyLjJjLTEuMiwwLTIuMi0xLTIuMi0yLjJzMS0yLjIsMi4yLTIuMgoJCQkJQzEzNi42LDMyLjEsMTM3LjYsMzMuMSwxMzcuNiwzNC4zeiIvPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMzMzcxQjciIGQ9Ik0xMjYuOCwyNC40djkuOSIvPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMzMzcxQjciIGQ9Ik0xMzcuNywyNC40djkuOSIvPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMzMzcxQjciIGQ9Ik0xMjYuOCwyMy41aDEwLjh2Mi43aC0xMC44QzEyNi44LDI2LjIsMTI2LjgsMjMuNSwxMjYuOCwyMy41eiIvPgoJCTwvZz4KCTwvZz4KCTxnPgoJCTxnPgoJCQk8cGF0aCBmaWxsPSIjMzM3MUI3IiBkPSJNMTcwLjgsMjMuMUwxNzAuOCwyMy4xYy0wLjMsMC0wLjUsMC0wLjgsMGMtMi4xLDAtNCwxLTUuMywyLjVsLTAuMSwwbC0wLjEtMC4xbC0xLTEuMmwtMC4zLDMuNGwzLjQsMC4zCgkJCQlsLTEuMS0xLjNsLTAuMS0wLjFsMC4xLTAuMWMxLjEtMS41LDMtMi4zLDUtMi4xbDAsMGMzLjIsMC4zLDUuNSwzLjEsNS4yLDYuM2MtMC4zLDMtMy4xLDUuMy02LjEsNS4xYy0zLjEtMC4yLTUuNC0yLjktNS4zLTYKCQkJCWwtMS4zLTAuMWMtMC4yLDMuOCwyLjYsNy4xLDYuMyw3LjRjMy45LDAuMyw3LjMtMi42LDcuNi02LjVDMTc3LjIsMjYuOCwxNzQuNCwyMy41LDE3MC44LDIzLjF6Ii8+CgkJCTxwYXRoIGZpbGw9IiMzMzcxQjciIGQ9Ik0xNzAuMywyNy40YzAtMC4zLTAuMy0wLjYtMC42LTAuNnMtMC42LDAuMy0wLjYsMC42djMuMmMwLDAuMiwwLjEsMC4zLDAuMiwwLjRjMC4xLDAuMSwwLjMsMC4yLDAuNCwwLjIKCQkJCWgyLjRjMC40LDAsMC42LTAuMywwLjYtMC42YzAtMC40LTAuMy0wLjYtMC42LTAuNmgtMS42aC0wLjJ2LTAuMkwxNzAuMywyNy40TDE3MC4zLDI3LjR6Ii8+CgkJPC9nPgoJPC9nPgoJPGc+CgkJPGc+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzNzFCNyIgZD0iTTE4Ni4yLDIzLjRoNy43YzEuNSwwLDIuNywxLjIsMi43LDIuN3Y3LjdjMCwxLjUtMS4yLDIuNy0yLjcsMi43aC03LjcKCQkJCWMtMS41LDAtMi43LTEuMi0yLjctMi43di03LjdDMTgzLjQsMjQuNiwxODQuNywyMy40LDE4Ni4yLDIzLjR6Ii8+CgkJCTxlbGxpcHNlIGZpbGw9IiMzMzcxQjciIGN4PSIxODYiIGN5PSIyOC45IiByeD0iMC43IiByeT0iMC43Ii8+CgkJCTxlbGxpcHNlIGZpbGw9IiMzMzcxQjciIGN4PSIxOTQiIGN5PSIyNi43IiByeD0iMC43IiByeT0iMC43Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzNzFCNyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNMTg2LDMzLjNsMC40LTAuM2MwLjQtMC4zLDEtMC4zLDEuNS0wLjFsMSwwLjQKCQkJCWMwLjUsMC4yLDEsMC4yLDEuNS0wLjFsMC44LTAuNWMwLjQtMC4zLDEtMC4zLDEuNS0wLjFsMS44LDAuOCIvPgoJCTwvZz4KCTwvZz4KCTxwYXRoIGZpbGw9IiMzMzcxQjciIHN0cm9rZT0iIzMzNzFCNyIgc3Ryb2tlLXdpZHRoPSIwLjI1IiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xNTYsMjQuM2MtMC4yLTAuMS0wLjQtMC4xLTAuNSwwCgkJYzAsMC0wLjIsMC4xLTAuOSwwLjJjLTAuNywwLTIuNC0wLjEtMy44LTAuNmMtMC44LTAuMy0xLjctMC41LTIuNS0wLjVjLTAuMiwwLTAuNCwwLTAuNSwwYy0xLjMsMC0yLjUsMC4zLTMuNiwxCgkJYy0wLjIsMC4xLTAuMiwwLjItMC4yLDAuNHYxMS42YzAsMC4zLDAuMSwwLjUsMC4zLDAuNWMwLjYsMCwwLjUtMC40LDAuNS0wLjZ2LTUuN2MwLjctMC4zLDMuMi0xLjEsNS44LTAuMQoJCWMxLjYsMC42LDMuNSwwLjcsNC4zLDAuN2MwLjgsMCwxLjMtMC4zLDEuMy0wLjNjMC4yLTAuMSwwLjMtMC4yLDAuMy0wLjR2LTUuN0MxNTYuMiwyNC42LDE1Ni4xLDI0LjQsMTU2LDI0LjN6IE0xNTUuNiwzMC4yCgkJYy0wLjEsMC0wLjcsMC4xLTEsMC4xYy0wLjcsMC0yLjQtMC4xLTMuOC0wLjZjLTIuNS0xLTUtMC41LTYuMi0wLjF2LTQuOWMwLjktMC41LDIuMi0wLjcsMy4yLTAuN2MwLjEsMCwwLjMsMCwwLjQsMAoJCWMwLjcsMCwxLjUsMC4yLDIuMiwwLjRjMS42LDAuNiwzLjUsMC43LDQuMywwLjdjMC4yLDAsMC44LDAsMS0wLjFWMzAuMnoiLz4KCTxnPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzNzFCNyIgZD0iTTQ4LjEsMjMuNWgzLjdjMi41LDAsNC41LDIsNC41LDQuNWMwLDAuNS0wLjQsMC45LTAuOSwwLjlINDQuNWMtMC41LDAtMC45LTAuNC0wLjktMC45CgkJCUM0My42LDI1LjUsNDUuNiwyMy41LDQ4LjEsMjMuNXoiLz4KCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMzMzcxQjciIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgZD0iTTQzLjUsMjguOGMtMC4yLDAuMS0wLjUsMS4yLDAsMS41YzEuNCwxLDguNSwwLjgsMTEuMywwLjYKCQkJYzAuOC0wLjEsMS42LTAuNCwxLjctMS4yYzAtMC4zLTAuMS0wLjYtMC42LTAuOSIvPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzNzFCNyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNNDMuNSwzMC42TDQzLjMsMzFjLTAuMiwwLjUsMC4yLDEsMC43LDAuOWMwLjMtMC4xLDAuNSwwLDAuNywwLjMKCQkJbDAuMSwwLjJjMC4zLDAuNSwxLDAuNiwxLjUsMC4ybDAsMGMwLjMtMC4yLDAuNy0wLjMsMS0wLjJsMC44LDAuM2MwLjQsMC4yLDAuOCwwLjEsMS4yLDBsMC41LTAuMmMwLjQtMC4yLDAuOS0wLjIsMS4zLDBsMC41LDAuMgoJCQljMC40LDAuMiwwLjgsMC4yLDEuMiwwbDAuMi0wLjFjMC4zLTAuMiwwLjgtMC4yLDEuMSwwLjFsMC4yLDAuMmMwLjMsMC4zLDAuOCwwLjIsMS0wLjJsMC4xLTAuMmMwLjEtMC4yLDAtMC4zLDAuMi0wLjMKCQkJYzAuNSwwLDEuMi0wLjMsMS4xLTAuN2wtMC40LTEuMSIvPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzNzFCNyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNNDMuNSwzMi4yYy0wLjEsMC4yLTAuMywwLjgsMCwxLjFjMC4zLDAuNCwzLDEuMSw2LjQsMS4xCgkJCWMyLjIsMCw0LjYtMC4zLDYtMC42YzAuNS0wLjEsMC45LTAuNSwwLjgtMC45YzAtMC4yLTAuMi0wLjUtMC40LTAuNyIvPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzNzFCNyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNNDMuNSwzMy4zYzAsMC41LDAuNiwyLjMsMS4zLDIuN2MxLjgsMC44LDUuNywwLjcsOC4xLDAuNQoJCQljMS4zLTAuMSwyLjUtMC43LDMuMi0xLjhjMC4zLTAuNSwwLjUtMSwwLjUtMS40Ii8+CgkJPGVsbGlwc2UgZmlsbD0iIzMzNzFCNyIgY3g9IjUxLjYiIGN5PSIyNi41IiByeD0iMC4zIiByeT0iMC40Ii8+CgkJPGVsbGlwc2UgZmlsbD0iIzMzNzFCNyIgY3g9IjUzIiBjeT0iMjUiIHJ4PSIwLjMiIHJ5PSIwLjQiLz4KCQk8ZWxsaXBzZSBmaWxsPSIjMzM3MUI3IiBjeD0iNTMiIGN5PSIyNy4yIiByeD0iMC4zIiByeT0iMC40Ii8+CgkJPGVsbGlwc2UgZmlsbD0iIzMzNzFCNyIgY3g9IjU0LjMiIGN5PSIyNi41IiByeD0iMC4zIiByeT0iMC40Ii8+CgkJPGVsbGlwc2UgZmlsbD0iIzMzNzFCNyIgY3g9IjUwLjkiIGN5PSIyNSIgcng9IjAuMyIgcnk9IjAuNCIvPgoJPC9nPgoJPGc+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzM3MUI3IiBkPSJNMjQuMiwzMXYtNy42YzAuMSwwLjEsMC44LDAuOSwyLjgsMy4xYzIuNS0xLjYsNS42LTAuNyw2LjksMGwyLjQtMy4xdjcuMQoJCQljMCwxLjItMC4xLDIuNS0wLjksMy40Yy0xLDEuMi0yLjcsMi41LTUuMywyLjVjLTIuOSwwLTQuNS0xLjUtNS4zLTIuOUMyNC4yLDMyLjksMjQuMiwzMiwyNC4yLDMxeiIvPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzNzFCNyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNMjEuMiwzMGw1LjQsMS4yIi8+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzM3MUI3IiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik0yMS4yLDM0LjFsNS40LTEuMiIvPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzNzFCNyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNMzguOCwzMGwtNS40LDEuMiIvPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzNzFCNyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNMzguOCwzNC4xbC01LjQtMS4yIi8+CgkJPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiMzMzcxQjciIGQ9Ik0yOS41LDMyLjRMMjksMzEuN2MtMC4yLTAuMywwLTAuNiwwLjMtMC42aDEuNAoJCQljMC4zLDAsMC41LDAuNCwwLjMsMC42bC0wLjcsMWwwLDBjLTAuNywxLjItMi42LDEuMS0zLjEtMC4zbC0wLjEtMC4yYy0wLjEtMC4yLDAtMC40LDAuMi0wLjVzMC40LDAsMC41LDAuMmwwLjEsMC4yCgkJCUMyOC4zLDMyLjgsMjkuMSwzMi45LDI5LjUsMzIuNHoiLz4KCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMzMzcxQjciIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgZD0iTTMyLjQsMzIuMWwtMC4xLDAuMmMtMC40LDEtMS44LDEuMS0yLjMsMC4yIi8+CgkJPGVsbGlwc2UgZmlsbD0iIzMzNzFCNyIgY3g9IjI3LjYiIGN5PSIyOS43IiByeD0iMC43IiByeT0iMC43Ii8+CgkJPGVsbGlwc2UgZmlsbD0iIzMzNzFCNyIgY3g9IjMyLjQiIGN5PSIyOS43IiByeD0iMC43IiByeT0iMC43Ii8+Cgk8L2c+Cgk8Zz4KCQk8cGF0aCBmaWxsPSIjQzBDMEJGIiBzdHJva2U9IiNDMEMwQkYiIHN0cm9rZS13aWR0aD0iMC4xIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xMi44LDQ5LjVjMC42LDAsMS4xLTAuNSwxLjEtMS4xCgkJCWMwLTAuNi0wLjUtMS4yLTEuMS0xLjJjLTAuNiwwLTEuMiwwLjUtMS4yLDEuMkMxMS42LDQ5LDEyLjIsNDkuNSwxMi44LDQ5LjV6IE0xMi44LDQ4YzAuMiwwLDAuNCwwLjIsMC40LDAuNAoJCQljMCwwLjItMC4yLDAuNC0wLjQsMC40Yy0wLjIsMC0wLjQtMC4yLTAuNC0wLjRDMTIuNCw0OC4xLDEyLjYsNDgsMTIuOCw0OHoiLz4KCQk8cGF0aCBmaWxsPSIjQzBDMEJGIiBzdHJva2U9IiNDMEMwQkYiIHN0cm9rZS13aWR0aD0iMC4xIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xNC42LDUxLjJjLTAuMS0wLjEtMC4yLTAuMi0wLjMtMC4ySDUuNwoJCQljLTAuMSwwLTAuMiwwLjEtMC4zLDAuMmMtMC4xLDAuMS0wLjEsMC4yLDAsMC40YzAuNywyLDIuNSwzLjMsNC42LDMuM3MzLjktMS4zLDQuNi0zLjNDMTQuNyw1MS41LDE0LjcsNTEuMywxNC42LDUxLjJ6IE0xMCw1NC4xCgkJCWMtMS42LDAtMy0wLjktMy43LTIuMmg3LjNDMTMsNTMuMiwxMS42LDU0LjEsMTAsNTQuMXoiLz4KCQk8cGF0aCBmaWxsPSIjQzBDMEJGIiBzdHJva2U9IiNDMEMwQkYiIHN0cm9rZS13aWR0aD0iMC4xIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik03LjIsNDkuNWMwLjYsMCwxLjItMC41LDEuMi0xLjEKCQkJYzAtMC42LTAuNS0xLjItMS4yLTEuMmMtMC42LDAtMS4xLDAuNS0xLjEsMS4yQzYuMSw0OSw2LjYsNDkuNSw3LjIsNDkuNXogTTcuMiw0OGMwLjIsMCwwLjQsMC4yLDAuNCwwLjRjMCwwLjItMC4yLDAuNC0wLjQsMC40CgkJCWMtMC4yLDAtMC40LTAuMi0wLjQtMC40QzYuOCw0OC4xLDcsNDgsNy4yLDQ4eiIvPgoJCTxwYXRoIGZpbGw9IiNDMEMwQkYiIHN0cm9rZT0iI0MwQzBCRiIgc3Ryb2tlLXdpZHRoPSIwLjEiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTEwLDQzYy0zLjgsMC03LDMuMS03LDdjMCwzLjgsMy4xLDcsNyw3CgkJCXM3LTMuMSw3LTdDMTcsNDYuMiwxMy44LDQzLDEwLDQzeiBNMTAsNTYuMmMtMy40LDAtNi4yLTIuOC02LjItNi4yYzAtMy40LDIuOC02LjIsNi4yLTYuMnM2LjIsMi44LDYuMiw2LjIKCQkJQzE2LjIsNTMuNCwxMy40LDU2LjIsMTAsNTYuMnoiLz4KCTwvZz4KCTxnPgoJCTxnPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiNDMEMwQkYiIGQ9Ik02NC4xLDUzLjRsMi4zLDBjMC4yLDAsMC40LDAuMiwwLjQsMC40djIuMWMwLDAuMi0wLjIsMC40LTAuNCwwLjRoLTIuMwoJCQkJYy0wLjIsMC0wLjQtMC4yLTAuNC0wLjR2LTIuMUM2My43LDUzLjYsNjMuOCw1My40LDY0LjEsNTMuNHoiLz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjQzBDMEJGIiBkPSJNNzMuNSw1My41aDIuNGMwLjIsMCwwLjQsMC4yLDAuNCwwLjR2MmMwLDAuMi0wLjIsMC40LTAuNCwwLjRoLTIuNAoJCQkJYy0wLjIsMC0wLjQtMC4yLTAuNC0wLjRsMC0yQzczLjEsNTMuNiw3My4zLDUzLjUsNzMuNSw1My41eiIvPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiNDMEMwQkYiIGQ9Ik02My43LDQ4LjRoMTIuNnY1SDYzLjdWNDguNHoiLz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjQzBDMEJGIiBkPSJNNjUuNSw0My42aDguOWMxLDAsMS45LDAuOCwxLjksMS45djMuMUg2My43di0zLjFDNjMuNyw0NC41LDY0LjUsNDMuNiw2NS41LDQzLjZ6Ii8+CgkJCTxlbGxpcHNlIGZpbGw9IiNDMEMwQkYiIGN4PSI2Ni4yIiBjeT0iNTAuOSIgcng9IjAuOSIgcnk9IjEiLz4KCQkJPGVsbGlwc2UgZmlsbD0iI0MwQzBCRiIgY3g9IjczLjgiIGN5PSI1MC45IiByeD0iMC45IiByeT0iMSIvPgoJCTwvZz4KCTwvZz4KCTxnPgoJCTxnPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiNDMEMwQkYiIGQ9Ik05Ni40LDUwYzAsMy42LTIuOSw2LjUtNi40LDYuNXMtNi40LTIuOS02LjQtNi41czIuOS02LjUsNi40LTYuNVM5Ni40LDQ2LjQsOTYuNCw1MHoiLz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjQzBDMEJGIiBkPSJNOTYuMyw0OC42YzAsMCwwLDAuMSwwLDAuMWMtMC45LDAuMS0yLjksMC4xLTQuNi0xLjJjLTEuMS0wLjgtMi0xLjctMi42LTIuNQoJCQkJYy0wLjMtMC40LTAuNi0wLjgtMC43LTFjLTAuMS0wLjEtMC4xLTAuMi0wLjEtMC4yYzAuNS0wLjEsMS4yLTAuMiwyLTAuMmMxLjIsMCwyLjUsMC4zLDMuNSwxLjFjMSwwLjgsMS43LDEuOCwyLjEsMi44CgkJCQlDOTYuMSw0Ny45LDk2LjIsNDguMyw5Ni4zLDQ4LjZ6Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0MwQzBCRiIgZD0iTTg0LDUyLjJjMCwwLDAtMC4xLDAtMC4xYzAuOS0wLjIsMi45LTAuNCw0LjcsMC42YzEuMSwwLjcsMS45LDEuNSwyLjQsMi4zCgkJCQljMC40LDAuNSwwLjYsMSwwLjcsMS4zYy0wLjQsMC4xLTEsMC4yLTEuNywwLjNjLTEsMC0yLjEtMC4xLTMuMi0wLjhzLTEuOS0xLjYtMi40LTIuNUM4NC4yLDUyLjgsODQuMSw1Mi41LDg0LDUyLjJ6Ii8+CgkJPC9nPgoJPC9nPgoJPGc+CgkJPGc+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0MwQzBCRiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNMTE2LjMsNDYuOGwtMS40LDJsLTAuOC0wLjhsLTAuNi0wLjdsMCwwLjlsLTAuMSw4LjJoLTYuOAoJCQkJbC0wLjEtOC4ybDAtMC45bC0wLjYsMC43bC0wLjgsMC44bC0xLjQtMmwyLjYtMi45YzAuMS0wLjEsMC4yLTAuMSwwLjMtMC4xaDEuM2wwLjQsMC43YzAuNywxLjMsMi42LDEuMywzLjMtMC4xbDAuMy0wLjZoMS4yCgkJCQljMC4xLDAsMC4yLDAsMC4zLDAuMWwwLjMtMC4zbC0wLjMsMC4zTDExNi4zLDQ2Ljh6Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0MwQzBCRiIgZD0iTTExMC4xLDQ3LjdoMnYwLjljMCwwLjQtMC40LDAuNy0xLDAuN2MtMC42LDAtMS0wLjMtMS0wLjdMMTEwLjEsNDcuN0wxMTAuMSw0Ny43eiIvPgoJCTwvZz4KCTwvZz4KCTxnPgoJCTxnPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiNDMEMwQkYiIGQ9Ik0xMjYuOCw1NC4zYzAsMS4yLTEsMi4yLTIuMiwyLjJzLTIuMi0xLTIuMi0yLjJzMS0yLjIsMi4yLTIuMlMxMjYuOCw1My4xLDEyNi44LDU0LjN6Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0MwQzBCRiIgZD0iTTEzNy42LDU0LjNjMCwxLjItMSwyLjItMi4yLDIuMmMtMS4yLDAtMi4yLTEtMi4yLTIuMnMxLTIuMiwyLjItMi4yCgkJCQlDMTM2LjYsNTIuMSwxMzcuNiw1My4xLDEzNy42LDU0LjN6Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0MwQzBCRiIgZD0iTTEyNi44LDQ0LjR2OS45Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0MwQzBCRiIgZD0iTTEzNy43LDQ0LjR2OS45Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0MwQzBCRiIgZD0iTTEyNi44LDQzLjVoMTAuOHYyLjdoLTEwLjhDMTI2LjgsNDYuMiwxMjYuOCw0My41LDEyNi44LDQzLjV6Ii8+CgkJPC9nPgoJPC9nPgoJPGc+CgkJPGc+CgkJCTxwYXRoIGZpbGw9IiNDMEMwQkYiIGQ9Ik0xNzAuOCw0My4xTDE3MC44LDQzLjFjLTAuMywwLTAuNSwwLTAuOCwwYy0yLjEsMC00LDEtNS4zLDIuNWwtMC4xLDBsLTAuMS0wLjFsLTEtMS4ybC0wLjMsMy40bDMuNCwwLjMKCQkJCWwtMS4xLTEuM2wtMC4xLTAuMWwwLjEtMC4xYzEuMS0xLjUsMy0yLjMsNS0yLjFsMCwwYzMuMiwwLjMsNS41LDMuMSw1LjIsNi4zYy0wLjMsMy0zLjEsNS4zLTYuMSw1LjFjLTMuMS0wLjItNS40LTIuOS01LjMtNgoJCQkJbC0xLjMtMC4xYy0wLjIsMy44LDIuNiw3LjEsNi4zLDcuNGMzLjksMC4zLDcuMy0yLjYsNy42LTYuNUMxNzcuMiw0Ni44LDE3NC40LDQzLjUsMTcwLjgsNDMuMXoiLz4KCQkJPHBhdGggZmlsbD0iI0MwQzBCRiIgZD0iTTE3MC4zLDQ3LjRjMC0wLjMtMC4zLTAuNi0wLjYtMC42cy0wLjYsMC4zLTAuNiwwLjZ2My4yYzAsMC4yLDAuMSwwLjMsMC4yLDAuNGMwLjEsMC4xLDAuMywwLjIsMC40LDAuMgoJCQkJaDIuNGMwLjQsMCwwLjYtMC4zLDAuNi0wLjZjMC0wLjMtMC4zLTAuNi0wLjYtMC42aC0xLjZoLTAuMnYtMC4yTDE3MC4zLDQ3LjRMMTcwLjMsNDcuNHoiLz4KCQk8L2c+Cgk8L2c+Cgk8Zz4KCQk8Zz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjQzBDMEJGIiBkPSJNMTg2LjIsNDMuNGg3LjdjMS41LDAsMi43LDEuMiwyLjcsMi43djcuN2MwLDEuNS0xLjIsMi43LTIuNywyLjdoLTcuNwoJCQkJYy0xLjUsMC0yLjctMS4yLTIuNy0yLjd2LTcuN0MxODMuNCw0NC43LDE4NC43LDQzLjQsMTg2LjIsNDMuNHoiLz4KCQkJPGVsbGlwc2UgZmlsbD0iI0MwQzBCRiIgY3g9IjE4NiIgY3k9IjQ4LjkiIHJ4PSIwLjciIHJ5PSIwLjciLz4KCQkJPGVsbGlwc2UgZmlsbD0iI0MwQzBCRiIgY3g9IjE5NCIgY3k9IjQ2LjciIHJ4PSIwLjciIHJ5PSIwLjciLz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjQzBDMEJGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik0xODYsNTMuM2wwLjQtMC4zYzAuNC0wLjMsMS0wLjMsMS41LTAuMWwxLDAuNAoJCQkJYzAuNSwwLjIsMSwwLjIsMS41LTAuMWwwLjgtMC41YzAuNC0wLjMsMS0wLjMsMS41LTAuMWwxLjgsMC44Ii8+CgkJPC9nPgoJPC9nPgoJPHBhdGggZmlsbD0iI0MwQzBCRiIgc3Ryb2tlPSIjQzBDMEJGIiBzdHJva2Utd2lkdGg9IjAuMjUiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE1Niw0NC4zYy0wLjItMC4xLTAuNC0wLjEtMC41LDAKCQljMCwwLTAuMiwwLjEtMC45LDAuMmMtMC43LDAtMi40LTAuMS0zLjgtMC42Yy0wLjgtMC4zLTEuNy0wLjUtMi41LTAuNWMtMC4yLDAtMC40LDAtMC41LDBjLTEuMywwLTIuNSwwLjMtMy42LDEKCQljLTAuMiwwLjEtMC4yLDAuMi0wLjIsMC40djExLjZjMCwwLjMsMC4xLDAuNSwwLjMsMC41YzAuNiwwLDAuNS0wLjQsMC41LTAuNnYtNS43YzAuNy0wLjMsMy4yLTEuMSw1LjgtMC4xCgkJYzEuNiwwLjYsMy41LDAuNyw0LjMsMC43YzAuOCwwLDEuMy0wLjMsMS4zLTAuM2MwLjItMC4xLDAuMy0wLjIsMC4zLTAuNHYtNS43QzE1Ni4yLDQ0LjYsMTU2LjEsNDQuNCwxNTYsNDQuM3ogTTE1NS42LDUwLjIKCQljLTAuMSwwLTAuNywwLjEtMSwwLjFjLTAuNywwLTIuNC0wLjEtMy44LTAuNmMtMi41LTEtNS0wLjUtNi4yLTAuMXYtNC45YzAuOS0wLjUsMi4yLTAuNywzLjItMC43YzAuMSwwLDAuMywwLDAuNCwwCgkJYzAuNywwLDEuNSwwLjIsMi4yLDAuNGMxLjYsMC42LDMuNSwwLjcsNC4zLDAuN2MwLjIsMCwwLjgsMCwxLTAuMVY1MC4yeiIvPgoJPGc+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjQzBDMEJGIiBkPSJNNDguMSw0My41aDMuN2MyLjUsMCw0LjUsMiw0LjUsNC41YzAsMC41LTAuNCwwLjktMC45LDAuOUg0NC41Yy0wLjUsMC0wLjktMC40LTAuOS0wLjkKCQkJQzQzLjYsNDUuNSw0NS42LDQzLjUsNDguMSw0My41eiIvPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0MwQzBCRiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNNDMuNSw0OC44Yy0wLjIsMC4xLTAuNSwxLjIsMCwxLjVjMS40LDEsOC41LDAuOCwxMS4zLDAuNgoJCQljMC44LTAuMSwxLjYtMC40LDEuNy0xLjJjMC0wLjMtMC4xLTAuNi0wLjYtMC45Ii8+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjQzBDMEJGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik00My41LDUwLjZMNDMuMyw1MWMtMC4yLDAuNSwwLjIsMSwwLjcsMC45YzAuMy0wLjEsMC41LDAsMC43LDAuMwoJCQlsMC4xLDAuMmMwLjMsMC41LDEsMC42LDEuNSwwLjJsMCwwYzAuMy0wLjIsMC43LTAuMywxLTAuMmwwLjgsMC4zYzAuNCwwLjIsMC44LDAuMSwxLjIsMGwwLjUtMC4yYzAuNC0wLjIsMC45LTAuMiwxLjMsMGwwLjUsMC4yCgkJCWMwLjQsMC4yLDAuOCwwLjIsMS4yLDBsMC4yLTAuMWMwLjMtMC4yLDAuOC0wLjIsMS4xLDAuMWwwLjIsMC4yYzAuMywwLjMsMC44LDAuMiwxLTAuMmwwLjEtMC4yYzAuMS0wLjIsMC0wLjMsMC4yLTAuMwoJCQljMC41LDAsMS4yLTAuMywxLjEtMC43bC0wLjQtMS4xIi8+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjQzBDMEJGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik00My41LDUyLjJjLTAuMSwwLjItMC4zLDAuOCwwLDEuMWMwLjMsMC40LDMsMS4xLDYuNCwxLjEKCQkJYzIuMiwwLDQuNi0wLjMsNi0wLjZjMC41LTAuMSwwLjktMC41LDAuOC0wLjljMC0wLjItMC4yLTAuNS0wLjQtMC43Ii8+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjQzBDMEJGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik00My41LDUzLjNjMCwwLjUsMC42LDIuMywxLjMsMi43YzEuOCwwLjgsNS43LDAuNyw4LjEsMC41CgkJCWMxLjMtMC4xLDIuNS0wLjcsMy4yLTEuOGMwLjMtMC41LDAuNS0xLDAuNS0xLjQiLz4KCQk8ZWxsaXBzZSBmaWxsPSIjQzBDMEJGIiBjeD0iNTEuNiIgY3k9IjQ2LjUiIHJ4PSIwLjMiIHJ5PSIwLjQiLz4KCQk8ZWxsaXBzZSBmaWxsPSIjQzBDMEJGIiBjeD0iNTMiIGN5PSI0NSIgcng9IjAuMyIgcnk9IjAuNCIvPgoJCTxlbGxpcHNlIGZpbGw9IiNDMEMwQkYiIGN4PSI1MyIgY3k9IjQ3LjIiIHJ4PSIwLjMiIHJ5PSIwLjQiLz4KCQk8ZWxsaXBzZSBmaWxsPSIjQzBDMEJGIiBjeD0iNTQuMyIgY3k9IjQ2LjUiIHJ4PSIwLjMiIHJ5PSIwLjQiLz4KCQk8ZWxsaXBzZSBmaWxsPSIjQzBDMEJGIiBjeD0iNTAuOSIgY3k9IjQ1IiByeD0iMC4zIiByeT0iMC40Ii8+Cgk8L2c+Cgk8Zz4KCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiNDMEMwQkYiIGQ9Ik0yNC4yLDUxdi03LjZjMC4xLDAuMSwwLjgsMC45LDIuOCwzLjFjMi41LTEuNyw1LjYtMC43LDYuOSwwbDIuNC0zLjF2Ny4xCgkJCWMwLDEuMi0wLjEsMi41LTAuOSwzLjRjLTEsMS4yLTIuNywyLjUtNS4zLDIuNWMtMi45LDAtNC41LTEuNS01LjMtMi45QzI0LjIsNTIuOSwyNC4yLDUyLDI0LjIsNTF6Ii8+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjQzBDMEJGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik0yMS4yLDUwbDUuNCwxLjIiLz4KCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiNDMEMwQkYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgZD0iTTIxLjIsNTQuMWw1LjQtMS4yIi8+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjQzBDMEJGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik0zOC44LDUwbC01LjQsMS4yIi8+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjQzBDMEJGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik0zOC44LDU0LjFsLTUuNC0xLjIiLz4KCQk8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI0MwQzBCRiIgZD0iTTI5LjUsNTIuNEwyOSw1MS43Yy0wLjItMC4zLDAtMC42LDAuMy0wLjZoMS40CgkJCWMwLjMsMCwwLjUsMC40LDAuMywwLjZsLTAuNywxbDAsMGMtMC43LDEuMi0yLjYsMS4xLTMuMS0wLjNsLTAuMS0wLjJjLTAuMS0wLjIsMC0wLjQsMC4yLTAuNXMwLjQsMCwwLjUsMC4ybDAuMSwwLjIKCQkJQzI4LjMsNTIuOCwyOS4xLDUyLjksMjkuNSw1Mi40eiIvPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0MwQzBCRiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNMzIuNCw1Mi4xbC0wLjEsMC4yYy0wLjQsMS0xLjgsMS4xLTIuMywwLjIiLz4KCQk8ZWxsaXBzZSBmaWxsPSIjQzBDMEJGIiBjeD0iMjcuNiIgY3k9IjQ5LjciIHJ4PSIwLjciIHJ5PSIwLjciLz4KCQk8ZWxsaXBzZSBmaWxsPSIjQzBDMEJGIiBjeD0iMzIuNCIgY3k9IjQ5LjciIHJ4PSIwLjciIHJ5PSIwLjciLz4KCTwvZz4KCTxnPgoJCTxwYXRoIGZpbGw9IiM2QUE5REQiIHN0cm9rZT0iIzZBQTlERCIgc3Ryb2tlLXdpZHRoPSIwLjEiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjYsNzEuMmMtMC4xLTAuMS0wLjItMC4yLTAuMy0wLjJINS43CgkJCWMtMC4xLDAtMC4yLDAuMS0wLjMsMC4yYy0wLjEsMC4xLTAuMSwwLjIsMCwwLjRjMC43LDIsMi41LDMuMyw0LjYsMy4zczMuOS0xLjMsNC42LTMuM0MxNC43LDcxLjUsMTQuNyw3MS4zLDE0LjYsNzEuMnogTTEwLDc0LjEKCQkJYy0xLjYsMC0zLTAuOS0zLjctMi4yaDcuM0MxMyw3My4yLDExLjYsNzQuMSwxMCw3NC4xeiIvPgoJCTxwYXRoIGZpbGw9IiM2QUE5REQiIHN0cm9rZT0iIzZBQTlERCIgc3Ryb2tlLXdpZHRoPSIwLjEiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTEyLjgsNjkuNWMwLjYsMCwxLjEtMC41LDEuMS0xLjEKCQkJYzAtMC42LTAuNS0xLjItMS4xLTEuMmMtMC42LDAtMS4yLDAuNS0xLjIsMS4yQzExLjYsNjksMTIuMiw2OS41LDEyLjgsNjkuNXogTTEyLjgsNjhjMC4yLDAsMC40LDAuMiwwLjQsMC40CgkJCWMwLDAuMi0wLjIsMC40LTAuNCwwLjRjLTAuMiwwLTAuNC0wLjItMC40LTAuNEMxMi40LDY4LjEsMTIuNiw2OCwxMi44LDY4eiIvPgoJCTxwYXRoIGZpbGw9IiM2QUE5REQiIHN0cm9rZT0iIzZBQTlERCIgc3Ryb2tlLXdpZHRoPSIwLjEiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTcuMiw2OS41YzAuNiwwLDEuMi0wLjUsMS4yLTEuMQoJCQljMC0wLjYtMC41LTEuMi0xLjItMS4yYy0wLjYsMC0xLjEsMC41LTEuMSwxLjJDNi4xLDY5LDYuNiw2OS41LDcuMiw2OS41eiBNNy4yLDY4YzAuMiwwLDAuNCwwLjIsMC40LDAuNGMwLDAuMi0wLjIsMC40LTAuNCwwLjQKCQkJYy0wLjIsMC0wLjQtMC4yLTAuNC0wLjRDNi44LDY4LjEsNyw2OCw3LjIsNjh6Ii8+CgkJPHBhdGggZmlsbD0iIzZBQTlERCIgc3Ryb2tlPSIjNkFBOUREIiBzdHJva2Utd2lkdGg9IjAuMSIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTAsNjNjLTMuOCwwLTcsMy4xLTcsN2MwLDMuOCwzLjEsNyw3LDcKCQkJczctMy4xLDctN0MxNyw2Ni4yLDEzLjgsNjMsMTAsNjN6IE0xMCw3Ni4yYy0zLjQsMC02LjItMi44LTYuMi02LjJjMC0zLjQsMi44LTYuMiw2LjItNi4yczYuMiwyLjgsNi4yLDYuMgoJCQlDMTYuMiw3My40LDEzLjQsNzYuMiwxMCw3Ni4yeiIvPgoJPC9nPgoJPGc+CgkJPGc+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzZBQTlERCIgZD0iTTY0LjEsNzMuNGwyLjMsMGMwLjIsMCwwLjQsMC4yLDAuNCwwLjR2Mi4xYzAsMC4yLTAuMiwwLjQtMC40LDAuNGgtMi4zCgkJCQljLTAuMiwwLTAuNC0wLjItMC40LTAuNHYtMi4xQzYzLjcsNzMuNiw2My44LDczLjQsNjQuMSw3My40eiIvPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM2QUE5REQiIGQ9Ik03My41LDczLjVoMi40YzAuMiwwLDAuNCwwLjIsMC40LDAuNHYyLjFjMCwwLjItMC4yLDAuNC0wLjQsMC40aC0yLjQKCQkJCWMtMC4yLDAtMC40LTAuMi0wLjQtMC40bDAtMi4xQzczLjEsNzMuNiw3My4zLDczLjUsNzMuNSw3My41eiIvPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM2QUE5REQiIGQ9Ik02My43LDY4LjRoMTIuNnY1SDYzLjdWNjguNHoiLz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNkFBOUREIiBkPSJNNjUuNSw2My42aDguOWMxLDAsMS45LDAuOCwxLjksMS45djMuMUg2My43di0zLjFDNjMuNyw2NC41LDY0LjUsNjMuNiw2NS41LDYzLjZ6Ii8+CgkJCTxlbGxpcHNlIGZpbGw9IiM2QUE5REQiIGN4PSI2Ni4yIiBjeT0iNzAuOSIgcng9IjAuOSIgcnk9IjAuOSIvPgoJCQk8ZWxsaXBzZSBmaWxsPSIjNkFBOUREIiBjeD0iNzMuOCIgY3k9IjcwLjkiIHJ4PSIwLjkiIHJ5PSIwLjkiLz4KCQk8L2c+Cgk8L2c+Cgk8Zz4KCQk8Zz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNkFBOUREIiBkPSJNOTYuNCw3MGMwLDMuNi0yLjksNi41LTYuNCw2LjVzLTYuNC0yLjktNi40LTYuNXMyLjktNi41LDYuNC02LjVTOTYuNCw2Ni40LDk2LjQsNzB6Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzZBQTlERCIgZD0iTTk2LjMsNjguNmMwLDAsMCwwLjEsMCwwLjFjLTAuOSwwLjEtMi45LDAuMS00LjYtMS4yYy0xLjEtMC44LTItMS43LTIuNi0yLjUKCQkJCWMtMC4zLTAuNC0wLjYtMC44LTAuNy0xLjFjLTAuMS0wLjEtMC4xLTAuMi0wLjEtMC4yYzAuNS0wLjEsMS4yLTAuMiwyLTAuMmMxLjIsMCwyLjUsMC4zLDMuNSwxLjFjMSwwLjgsMS43LDEuOCwyLjEsMi44CgkJCQlDOTYuMSw2Ny45LDk2LjIsNjguMyw5Ni4zLDY4LjZ6Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzZBQTlERCIgZD0iTTg0LDcyLjJjMCwwLDAtMC4xLDAtMC4xYzAuOS0wLjIsMi45LTAuNCw0LjcsMC42YzEuMSwwLjcsMS45LDEuNSwyLjQsMi4zCgkJCQljMC40LDAuNSwwLjYsMSwwLjcsMS4zYy0wLjQsMC4xLTEsMC4yLTEuNywwLjNjLTEsMC0yLjEtMC4xLTMuMi0wLjhzLTEuOS0xLjYtMi40LTIuNUM4NC4yLDcyLjgsODQuMSw3Mi40LDg0LDcyLjJ6Ii8+CgkJPC9nPgoJPC9nPgoJPGc+CgkJPGc+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzZBQTlERCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNMTE2LjMsNjYuOGwtMS40LDJsLTAuOC0wLjhsLTAuNi0wLjdsMCwwLjlsLTAuMSw4LjJoLTYuOAoJCQkJbC0wLjEtOC4ybDAtMC45bC0wLjYsMC43bC0wLjgsMC44bC0xLjQtMmwyLjYtMi45YzAuMS0wLjEsMC4yLTAuMSwwLjMtMC4xaDEuM2wwLjQsMC43YzAuNywxLjMsMi42LDEuMywzLjMtMC4xbDAuMy0wLjZoMS4yCgkJCQljMC4xLDAsMC4yLDAsMC4zLDAuMWwwLjMtMC4zbC0wLjMsMC4zTDExNi4zLDY2Ljh6Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzZBQTlERCIgZD0iTTExMC4xLDY3LjdoMnYwLjljMCwwLjQtMC40LDAuNy0xLDAuN2MtMC42LDAtMS0wLjMtMS0wLjdMMTEwLjEsNjcuN0wxMTAuMSw2Ny43eiIvPgoJCTwvZz4KCTwvZz4KCTxnPgoJCTxnPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM2QUE5REQiIGQ9Ik0xMjYuOCw3NC4zYzAsMS4yLTEsMi4yLTIuMiwyLjJzLTIuMi0xLTIuMi0yLjJzMS0yLjIsMi4yLTIuMlMxMjYuOCw3My4xLDEyNi44LDc0LjN6Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzZBQTlERCIgZD0iTTEzNy42LDc0LjNjMCwxLjItMSwyLjItMi4yLDIuMmMtMS4yLDAtMi4yLTEtMi4yLTIuMnMxLTIuMiwyLjItMi4yCgkJCQlDMTM2LjYsNzIuMSwxMzcuNiw3My4xLDEzNy42LDc0LjN6Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzZBQTlERCIgZD0iTTEyNi44LDY0LjR2OS45Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzZBQTlERCIgZD0iTTEzNy43LDY0LjR2OS45Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzZBQTlERCIgZD0iTTEyNi44LDYzLjVoMTAuOHYyLjdoLTEwLjhDMTI2LjgsNjYuMiwxMjYuOCw2My41LDEyNi44LDYzLjV6Ii8+CgkJPC9nPgoJPC9nPgoJPGc+CgkJPGc+CgkJCTxwYXRoIGZpbGw9IiM2QUE5REQiIGQ9Ik0xNzAuOCw2My4xTDE3MC44LDYzLjFjLTAuMywwLTAuNSwwLTAuOCwwYy0yLjEsMC00LDEtNS4zLDIuNWwtMC4xLDBsLTAuMS0wLjFsLTEtMS4ybC0wLjMsMy40bDMuNCwwLjMKCQkJCWwtMS4xLTEuM2wtMC4xLTAuMWwwLjEtMC4xYzEuMS0xLjQsMy0yLjMsNS0yLjFsMCwwYzMuMiwwLjMsNS41LDMuMSw1LjIsNi4zYy0wLjMsMy0zLjEsNS4zLTYuMSw1LjFjLTMuMS0wLjItNS40LTIuOS01LjMtNgoJCQkJbC0xLjMtMC4xYy0wLjIsMy44LDIuNiw3LjEsNi4zLDcuNGMzLjksMC4zLDcuMy0yLjYsNy42LTYuNUMxNzcuMiw2Ni44LDE3NC40LDYzLjUsMTcwLjgsNjMuMXoiLz4KCQkJPHBhdGggZmlsbD0iIzZBQTlERCIgZD0iTTE3MC4zLDY3LjRjMC0wLjMtMC4zLTAuNi0wLjYtMC42cy0wLjYsMC4zLTAuNiwwLjZ2My4yYzAsMC4yLDAuMSwwLjMsMC4yLDAuNGMwLjEsMC4xLDAuMywwLjIsMC40LDAuMgoJCQkJaDIuNGMwLjQsMCwwLjYtMC4zLDAuNi0wLjZTMTcyLjQsNzAsMTcyLDcwaC0xLjZoLTAuMnYtMC4yTDE3MC4zLDY3LjRMMTcwLjMsNjcuNHoiLz4KCQk8L2c+Cgk8L2c+Cgk8Zz4KCQk8Zz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNkFBOUREIiBkPSJNMTg2LjIsNjMuNGg3LjdjMS41LDAsMi43LDEuMiwyLjcsMi43djcuN2MwLDEuNS0xLjIsMi43LTIuNywyLjdoLTcuNwoJCQkJYy0xLjUsMC0yLjctMS4yLTIuNy0yLjd2LTcuN0MxODMuNCw2NC43LDE4NC43LDYzLjQsMTg2LjIsNjMuNHoiLz4KCQkJPGVsbGlwc2UgZmlsbD0iIzZBQTlERCIgY3g9IjE4NiIgY3k9IjY4LjkiIHJ4PSIwLjciIHJ5PSIwLjciLz4KCQkJPGVsbGlwc2UgZmlsbD0iIzZBQTlERCIgY3g9IjE5NCIgY3k9IjY2LjciIHJ4PSIwLjciIHJ5PSIwLjciLz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNkFBOUREIiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik0xODYsNzMuM2wwLjQtMC4zYzAuNC0wLjMsMS0wLjMsMS41LTAuMWwxLDAuNAoJCQkJYzAuNSwwLjIsMSwwLjIsMS41LTAuMWwwLjgtMC41YzAuNC0wLjMsMS0wLjMsMS41LTAuMWwxLjgsMC44Ii8+CgkJPC9nPgoJPC9nPgoJPHBhdGggZmlsbD0iIzZBQTlERCIgc3Ryb2tlPSIjNkFBOUREIiBzdHJva2Utd2lkdGg9IjAuMjUiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE1Niw2NC4zYy0wLjItMC4xLTAuNC0wLjEtMC41LDAKCQljMCwwLTAuMiwwLjEtMC45LDAuMmMtMC43LDAtMi40LTAuMS0zLjgtMC42Yy0wLjgtMC4zLTEuNy0wLjUtMi41LTAuNWMtMC4yLDAtMC40LDAtMC41LDBjLTEuMywwLTIuNSwwLjMtMy42LDEKCQljLTAuMiwwLjEtMC4yLDAuMi0wLjIsMC40djExLjZjMCwwLjMsMC4xLDAuNSwwLjMsMC41YzAuNiwwLDAuNS0wLjQsMC41LTAuNnYtNS43YzAuNy0wLjMsMy4yLTEuMSw1LjgtMC4xCgkJYzEuNiwwLjYsMy41LDAuNyw0LjMsMC43YzAuOCwwLDEuMy0wLjMsMS4zLTAuM2MwLjItMC4xLDAuMy0wLjIsMC4zLTAuNHYtNS43QzE1Ni4yLDY0LjYsMTU2LjEsNjQuNCwxNTYsNjQuM3ogTTE1NS42LDcwLjIKCQljLTAuMSwwLTAuNywwLjEtMSwwLjFjLTAuNywwLTIuNC0wLjEtMy44LTAuNmMtMi41LTEtNS0wLjUtNi4yLTAuMXYtNC45YzAuOS0wLjUsMi4yLTAuNywzLjItMC43YzAuMSwwLDAuMywwLDAuNCwwCgkJYzAuNywwLDEuNSwwLjIsMi4yLDAuNGMxLjYsMC42LDMuNSwwLjcsNC4zLDAuN2MwLjIsMCwwLjgsMCwxLTAuMVY3MC4yeiIvPgoJPGc+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNkFBOUREIiBkPSJNNDguMSw2My41aDMuN2MyLjUsMCw0LjUsMiw0LjUsNC41YzAsMC41LTAuNCwwLjktMC45LDAuOUg0NC41Yy0wLjUsMC0wLjktMC40LTAuOS0wLjkKCQkJQzQzLjYsNjUuNSw0NS42LDYzLjUsNDguMSw2My41eiIvPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzZBQTlERCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNNDMuNSw2OC44Yy0wLjIsMC4xLTAuNSwxLjIsMCwxLjVjMS40LDAuOSw4LjUsMC44LDExLjMsMC42CgkJCWMwLjgtMC4xLDEuNi0wLjQsMS43LTEuMmMwLTAuMy0wLjEtMC42LTAuNi0wLjkiLz4KCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM2QUE5REQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgZD0iTTQzLjUsNzAuNkw0My4zLDcxYy0wLjIsMC41LDAuMiwxLDAuNywwLjljMC4zLTAuMSwwLjUsMC4xLDAuNywwLjMKCQkJbDAuMSwwLjJjMC4zLDAuNSwxLDAuNiwxLjUsMC4ybDAsMGMwLjMtMC4yLDAuNy0wLjMsMS0wLjJsMC44LDAuM2MwLjQsMC4yLDAuOCwwLjEsMS4yLDBsMC41LTAuMmMwLjQtMC4yLDAuOS0wLjIsMS4zLDBsMC41LDAuMgoJCQljMC40LDAuMiwwLjgsMC4yLDEuMi0wLjFsMC4yLTAuMWMwLjMtMC4yLDAuOC0wLjIsMS4xLDAuMWwwLjIsMC4yYzAuMywwLjMsMC44LDAuMiwxLTAuMmwwLjEtMC4yYzAuMS0wLjIsMC0wLjMsMC4yLTAuMwoJCQljMC41LDAsMS4yLTAuMywxLjEtMC43bC0wLjQtMS4xIi8+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNkFBOUREIiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik00My41LDcyLjJjLTAuMSwwLjItMC4zLDAuOCwwLDEuMWMwLjMsMC40LDMsMS4xLDYuNCwxLjEKCQkJYzIuMiwwLDQuNi0wLjMsNi0wLjZjMC41LTAuMSwwLjktMC40LDAuOC0wLjljMC0wLjItMC4yLTAuNS0wLjQtMC43Ii8+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNkFBOUREIiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik00My41LDczLjNjMCwwLjUsMC42LDIuMywxLjMsMi43YzEuOCwwLjgsNS43LDAuNyw4LjEsMC41CgkJCWMxLjMtMC4xLDIuNS0wLjcsMy4yLTEuOGMwLjMtMC41LDAuNS0xLDAuNS0xLjQiLz4KCQk8ZWxsaXBzZSBmaWxsPSIjNkFBOUREIiBjeD0iNTEuNiIgY3k9IjY2LjUiIHJ4PSIwLjMiIHJ5PSIwLjQiLz4KCQk8ZWxsaXBzZSBmaWxsPSIjNkFBOUREIiBjeD0iNTMiIGN5PSI2NSIgcng9IjAuMyIgcnk9IjAuNCIvPgoJCTxlbGxpcHNlIGZpbGw9IiM2QUE5REQiIGN4PSI1MyIgY3k9IjY3LjIiIHJ4PSIwLjMiIHJ5PSIwLjQiLz4KCQk8ZWxsaXBzZSBmaWxsPSIjNkFBOUREIiBjeD0iNTQuMyIgY3k9IjY2LjUiIHJ4PSIwLjMiIHJ5PSIwLjQiLz4KCQk8ZWxsaXBzZSBmaWxsPSIjNkFBOUREIiBjeD0iNTAuOSIgY3k9IjY1IiByeD0iMC4zIiByeT0iMC40Ii8+Cgk8L2c+Cgk8Zz4KCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM2QUE5REQiIGQ9Ik0yNC4yLDcxdi03LjZjMC4xLDAuMSwwLjgsMC45LDIuOCwzLjFjMi41LTEuNyw1LjYtMC43LDYuOSwwbDIuNC0zLjF2Ny4xCgkJCWMwLDEuMi0wLjEsMi41LTAuOSwzLjRjLTEsMS4yLTIuNywyLjUtNS4zLDIuNWMtMi45LDAtNC41LTEuNS01LjMtMi45QzI0LjIsNzIuOSwyNC4yLDcyLDI0LjIsNzF6Ii8+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNkFBOUREIiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik0yMS4yLDcwLjFsNS40LDEuMiIvPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzZBQTlERCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNMjEuMiw3NC4xbDUuNC0xLjIiLz4KCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM2QUE5REQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgZD0iTTM4LjgsNzAuMWwtNS40LDEuMiIvPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzZBQTlERCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNMzguOCw3NC4xbC01LjQtMS4yIi8+CgkJPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiM2QUE5REQiIGQ9Ik0yOS41LDcyLjRMMjksNzEuN2MtMC4yLTAuMywwLTAuNiwwLjMtMC42aDEuNAoJCQljMC4zLDAsMC41LDAuNCwwLjMsMC42bC0wLjcsMWwwLDBjLTAuNywxLjItMi42LDEuMS0zLjEtMC4zbC0wLjEtMC4yYy0wLjEtMC4yLDAtMC40LDAuMi0wLjVjMC4yLTAuMSwwLjQsMCwwLjUsMC4ybDAuMSwwLjIKCQkJQzI4LjMsNzIuOCwyOS4xLDcyLjksMjkuNSw3Mi40eiIvPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzZBQTlERCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNMzIuNCw3Mi4xbC0wLjEsMC4yYy0wLjQsMS0xLjgsMS4xLTIuMywwLjIiLz4KCQk8ZWxsaXBzZSBmaWxsPSIjNkFBOUREIiBjeD0iMjcuNiIgY3k9IjY5LjciIHJ4PSIwLjciIHJ5PSIwLjciLz4KCQk8ZWxsaXBzZSBmaWxsPSIjNkFBOUREIiBjeD0iMzIuNCIgY3k9IjY5LjciIHJ4PSIwLjciIHJ5PSIwLjciLz4KCTwvZz4KPC9nPgo8Zz4KCTxwYXRoIGZpbGw9IiM4Njg2ODYiIHN0cm9rZT0iIzg2ODY4NiIgc3Ryb2tlLXdpZHRoPSIwLjEiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTEyLjgsOS41YzAuNiwwLDEuMS0wLjUsMS4xLTEuMgoJCWMwLTAuNi0wLjUtMS4xLTEuMS0xLjFjLTAuNiwwLTEuMiwwLjUtMS4yLDEuMVMxMi4yLDkuNSwxMi44LDkuNXogTTEyLjgsNy45YzAuMiwwLDAuNCwwLjIsMC40LDAuNGMwLDAuMi0wLjIsMC40LTAuNCwwLjQKCQljLTAuMiwwLTAuNC0wLjItMC40LTAuNEMxMi40LDguMSwxMi42LDcuOSwxMi44LDcuOXoiLz4KCTxwYXRoIGZpbGw9IiM4Njg2ODYiIHN0cm9rZT0iIzg2ODY4NiIgc3Ryb2tlLXdpZHRoPSIwLjEiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTcuMiw5LjVjMC42LDAsMS4yLTAuNSwxLjItMS4yCgkJYzAtMC42LTAuNS0xLjEtMS4yLTEuMWMtMC42LDAtMS4xLDAuNS0xLjEsMS4xUzYuNiw5LjUsNy4yLDkuNXogTTcuMiw3LjljMC4yLDAsMC40LDAuMiwwLjQsMC40YzAsMC4yLTAuMiwwLjQtMC40LDAuNAoJCUM3LDguNyw2LjgsOC41LDYuOCw4LjNDNi44LDguMSw3LDcuOSw3LjIsNy45eiIvPgoJPHBhdGggZmlsbD0iIzg2ODY4NiIgc3Ryb2tlPSIjODY4Njg2IiBzdHJva2Utd2lkdGg9IjAuMSIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTQuNiwxMS4yYy0wLjEtMC4xLTAuMi0wLjItMC4zLTAuMkg1LjcKCQljLTAuMSwwLTAuMiwwLjEtMC4zLDAuMmMtMC4xLDAuMS0wLjEsMC4yLDAsMC40YzAuNywyLDIuNSwzLjMsNC42LDMuM3MzLjktMS4zLDQuNi0zLjNDMTQuNywxMS40LDE0LjcsMTEuMywxNC42LDExLjJ6IE0xMCwxNC4xCgkJYy0xLjYsMC0zLTAuOS0zLjctMi4yaDcuM0MxMywxMy4yLDExLjYsMTQuMSwxMCwxNC4xeiIvPgoJPHBhdGggZmlsbD0iIzg2ODY4NiIgc3Ryb2tlPSIjODY4Njg2IiBzdHJva2Utd2lkdGg9IjAuMSIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTAsM2MtMy44LDAtNywzLjEtNyw3czMuMSw3LDcsN3M3LTMuMSw3LTcKCQlTMTMuOCwzLDEwLDN6IE0xMCwxNi4yYy0zLjQsMC02LjItMi44LTYuMi02LjJTNi42LDMuOCwxMCwzLjhzNi4yLDIuOCw2LjIsNi4yUzEzLjQsMTYuMiwxMCwxNi4yeiIvPgo8L2c+CjxnIGlkPSJDYXJfMDAwMDAwMTg5MzUzOTUwODU0MTM0MTM3NTAwMDAwMDA4MjUyNzM4Nzc4NDI3NzU3MTVfIj4KCTxnPgoJCTxnPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM4Njg2ODYiIGQ9Ik02NC4xLDEzLjRsMi4zLDBjMC4yLDAsMC40LDAuMiwwLjQsMC40djIuMWMwLDAuMi0wLjIsMC40LTAuNCwwLjRoLTIuMwoJCQkJYy0wLjIsMC0wLjQtMC4yLTAuNC0wLjR2LTIuMUM2My43LDEzLjYsNjMuOCwxMy40LDY0LjEsMTMuNHoiLz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODY4Njg2IiBkPSJNNzMuNSwxMy40aDIuNGMwLjIsMCwwLjQsMC4yLDAuNCwwLjR2Mi4xYzAsMC4yLTAuMiwwLjQtMC40LDAuNGgtMi40CgkJCQljLTAuMiwwLTAuNC0wLjItMC40LTAuNGwwLTIuMUM3My4xLDEzLjYsNzMuMywxMy40LDczLjUsMTMuNHoiLz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODY4Njg2IiBkPSJNNjMuNyw4LjRoMTIuNnY1SDYzLjdWOC40eiIvPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM4Njg2ODYiIGQ9Ik02NS41LDMuNmg4LjljMSwwLDEuOSwwLjgsMS45LDEuOXYzLjFINjMuN1Y1LjVDNjMuNyw0LjQsNjQuNSwzLjYsNjUuNSwzLjZ6Ii8+CgkJCTxlbGxpcHNlIGZpbGw9IiM4Njg2ODYiIGN4PSI2Ni4yIiBjeT0iMTAuOSIgcng9IjAuOSIgcnk9IjAuOSIvPgoJCQk8ZWxsaXBzZSBmaWxsPSIjODY4Njg2IiBjeD0iNzMuOCIgY3k9IjEwLjkiIHJ4PSIwLjkiIHJ5PSIwLjkiLz4KCQk8L2c+Cgk8L2c+CjwvZz4KPGcgaWQ9IkFjdGl2aXRpZXMiPgoJPGc+CgkJPGc+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzg2ODY4NiIgZD0iTTk2LjQsMTBjMCwzLjYtMi45LDYuNS02LjQsNi41cy02LjQtMi45LTYuNC02LjVzMi45LTYuNSw2LjQtNi41Uzk2LjQsNi40LDk2LjQsMTB6Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzg2ODY4NiIgZD0iTTk2LjMsOC42YzAsMCwwLDAuMSwwLDAuMWMtMC45LDAuMS0yLjksMC4xLTQuNi0xLjJjLTEuMS0wLjgtMi0xLjctMi42LTIuNQoJCQkJYy0wLjMtMC40LTAuNi0wLjgtMC43LTEuMWMtMC4xLTAuMS0wLjEtMC4yLTAuMS0wLjJjMC41LTAuMSwxLjItMC4yLDItMC4yYzEuMiwwLDIuNSwwLjMsMy41LDEuMWMxLDAuOCwxLjcsMS44LDIuMSwyLjgKCQkJCUM5Ni4xLDcuOSw5Ni4yLDguMyw5Ni4zLDguNnoiLz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODY4Njg2IiBkPSJNODQsMTIuMWMwLDAsMC0wLjEsMC0wLjFjMC45LTAuMiwyLjktMC40LDQuNywwLjZjMS4xLDAuNiwxLjksMS41LDIuNCwyLjMKCQkJCWMwLjQsMC41LDAuNiwxLDAuNywxLjNjLTAuNCwwLjEtMSwwLjItMS43LDAuM2MtMSwwLTIuMS0wLjEtMy4yLTAuOGMtMS4xLTAuNi0xLjktMS42LTIuNC0yLjVDODQuMiwxMi44LDg0LjEsMTIuNCw4NCwxMi4xeiIvPgoJCTwvZz4KCTwvZz4KPC9nPgo8ZyBpZD0iT2JqZWN0c18wMDAwMDA2NDMxMjM3MTczOTEzMDMxNTI1MDAwMDAxMDIyNTg4OTAzMjIyODYzMjk3NV8iPgoJPGc+CgkJPGc+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzg2ODY4NiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNMTE2LjMsNi44bC0xLjQsMkwxMTQuMSw4bC0wLjYtMC43bDAsMC45bC0wLjEsOC4yaC02LjhsLTAuMS04LjIKCQkJCWwwLTAuOUwxMDUuOSw4bC0wLjgsMC44bC0xLjQtMmwyLjYtMi45YzAuMS0wLjEsMC4yLTAuMSwwLjMtMC4xaDEuM2wwLjQsMC43YzAuNywxLjMsMi42LDEuMywzLjMtMC4xbDAuMy0wLjZoMS4yCgkJCQljMC4xLDAsMC4yLDAsMC4zLDAuMWwwLjMtMC4zbC0wLjMsMC4zTDExNi4zLDYuOHoiLz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODY4Njg2IiBkPSJNMTEwLjEsNy43aDJ2MC45YzAsMC40LTAuNCwwLjctMSwwLjdjLTAuNiwwLTEtMC4zLTEtMC43TDExMC4xLDcuN0wxMTAuMSw3Ljd6Ii8+CgkJPC9nPgoJPC9nPgo8L2c+CjxnIGlkPSJTeW1ib2xzXzAwMDAwMDk2NzQ2OTA3ODY5OTI5OTIxMTgwMDAwMDA2NDg0ODEyODMwMjgyNTgyNDE2XyI+Cgk8Zz4KCQk8Zz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODY4Njg2IiBkPSJNMTI2LjgsMTQuM2MwLDEuMi0xLDIuMi0yLjIsMi4ycy0yLjItMS0yLjItMi4yczEtMi4yLDIuMi0yLjJTMTI2LjgsMTMuMSwxMjYuOCwxNC4zeiIvPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM4Njg2ODYiIGQ9Ik0xMzcuNiwxNC4zYzAsMS4yLTEsMi4yLTIuMiwyLjJjLTEuMiwwLTIuMi0xLTIuMi0yLjJzMS0yLjIsMi4yLTIuMgoJCQkJQzEzNi42LDEyLjEsMTM3LjYsMTMuMSwxMzcuNiwxNC4zeiIvPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM4Njg2ODYiIGQ9Ik0xMjYuOCw0LjR2OS45Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzg2ODY4NiIgZD0iTTEzNy43LDQuNHY5LjkiLz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODY4Njg2IiBkPSJNMTI2LjgsMy41aDEwLjh2Mi43aC0xMC44QzEyNi44LDYuMiwxMjYuOCwzLjUsMTI2LjgsMy41eiIvPgoJCTwvZz4KCTwvZz4KPC9nPgo8ZyBpZD0iUmVjZW50cyI+Cgk8Zz4KCQk8Zz4KCQkJPHBhdGggZmlsbD0iIzg2ODY4NiIgZD0iTTE3MC44LDMuMUwxNzAuOCwzLjFjLTAuMywwLTAuNSwwLTAuOCwwYy0yLjEsMC00LDEtNS4zLDIuNWwtMC4xLDBsLTAuMS0wLjFsLTEtMS4ybC0wLjMsMy40bDMuNCwwLjMKCQkJCWwtMS4xLTEuM2wtMC4xLTAuMWwwLjEtMC4xYzEuMS0xLjQsMy0yLjMsNS0yLjFsMCwwYzMuMiwwLjMsNS41LDMuMSw1LjIsNi4zYy0wLjMsMy0zLjEsNS4zLTYuMSw1LjFjLTMuMS0wLjItNS40LTIuOS01LjMtNgoJCQkJTDE2Myw5LjVjLTAuMiwzLjgsMi42LDcuMSw2LjMsNy40YzMuOSwwLjQsNy4zLTIuNiw3LjYtNi41QzE3Ny4yLDYuOCwxNzQuNCwzLjUsMTcwLjgsMy4xeiIvPgoJCQk8cGF0aCBmaWxsPSIjODY4Njg2IiBkPSJNMTcwLjMsNy40YzAtMC4zLTAuMy0wLjYtMC42LTAuNlMxNjksNy4xLDE2OSw3LjR2My4yYzAsMC4yLDAuMSwwLjMsMC4yLDAuNGMwLjEsMC4xLDAuMywwLjIsMC40LDAuMgoJCQkJaDIuNGMwLjQsMCwwLjYtMC4zLDAuNi0wLjZzLTAuMy0wLjYtMC42LTAuNmgtMS42aC0wLjJWOS44TDE3MC4zLDcuNEwxNzAuMyw3LjR6Ii8+CgkJPC9nPgoJPC9nPgo8L2c+CjxnIGlkPSJDdXN0b21fMDAwMDAxODEwODcyMjk0MzQzMDIzMzY3ODAwMDAwMDUxNTIyNzc5NDU5NDA2NzQ0ODhfIj4KCTxnPgoJCTxnPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM4Njg2ODYiIGQ9Ik0xODYuMiwzLjRoNy43YzEuNSwwLDIuNywxLjIsMi43LDIuN3Y3LjdjMCwxLjUtMS4yLDIuNy0yLjcsMi43aC03LjcKCQkJCWMtMS41LDAtMi43LTEuMi0yLjctMi43VjYuMUMxODMuNCw0LjYsMTg0LjcsMy40LDE4Ni4yLDMuNHoiLz4KCQkJPGVsbGlwc2UgZmlsbD0iIzg2ODY4NiIgY3g9IjE4NiIgY3k9IjguOSIgcng9IjAuNyIgcnk9IjAuNyIvPgoJCQk8ZWxsaXBzZSBmaWxsPSIjODY4Njg2IiBjeD0iMTk0IiBjeT0iNi43IiByeD0iMC43IiByeT0iMC43Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzg2ODY4NiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNMTg2LDEzLjNsMC40LTAuM2MwLjQtMC4zLDEtMC4zLDEuNS0wLjFsMSwwLjQKCQkJCWMwLjUsMC4yLDEsMC4yLDEuNS0wLjFsMC44LTAuNWMwLjQtMC4zLDEtMC4zLDEuNS0wLjFsMS44LDAuOCIvPgoJCTwvZz4KCTwvZz4KPC9nPgo8cGF0aCBmaWxsPSIjODY4Njg2IiBzdHJva2U9IiM4Njg2ODYiIHN0cm9rZS13aWR0aD0iMC4yNSIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTU2LDQuM2MtMC4yLTAuMS0wLjQtMC4xLTAuNSwwCgljMCwwLTAuMiwwLjEtMC45LDAuMWMtMC43LDAtMi40LTAuMS0zLjgtMC42Yy0wLjgtMC4zLTEuNy0wLjUtMi41LTAuNWMtMC4yLDAtMC40LDAtMC41LDBjLTEuMywwLTIuNSwwLjMtMy42LDEKCWMtMC4yLDAuMS0wLjIsMC4yLTAuMiwwLjR2MTEuNmMwLDAuMywwLjEsMC41LDAuMywwLjVjMC42LDAsMC41LTAuNCwwLjUtMC42di01LjdjMC43LTAuMywzLjItMS4xLDUuOC0wLjFjMS42LDAuNiwzLjUsMC43LDQuMywwLjcKCWMwLjgsMCwxLjMtMC4zLDEuMy0wLjNjMC4yLTAuMSwwLjMtMC4yLDAuMy0wLjRWNC43QzE1Ni4yLDQuNSwxNTYuMSw0LjQsMTU2LDQuM3ogTTE1NS42LDEwLjJjLTAuMSwwLTAuNywwLjEtMSwwLjEKCWMtMC43LDAtMi40LTAuMS0zLjgtMC42Yy0yLjUtMS01LTAuNS02LjItMC4xVjQuN2MwLjktMC41LDIuMi0wLjcsMy4yLTAuN2MwLjEsMCwwLjMsMCwwLjQsMGMwLjcsMCwxLjUsMC4yLDIuMiwwLjQKCWMxLjYsMC42LDMuNSwwLjcsNC4zLDAuN2MwLjIsMCwwLjgsMCwxLTAuMVYxMC4yeiIvPgo8ZyBpZD0iRm9vZCI+Cgk8ZyBpZD0iTGF5ZXJfMTIiPgoJCTxnPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM4Njg2ODYiIGQ9Ik00OC4xLDMuNWgzLjdjMi41LDAsNC41LDIsNC41LDQuNWMwLDAuNS0wLjQsMC45LTAuOSwwLjlINDQuNWMtMC41LDAtMC45LTAuNC0wLjktMC45CgkJCQlDNDMuNiw1LjUsNDUuNiwzLjUsNDguMSwzLjV6Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzg2ODY4NiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNNDMuNSw4LjdjLTAuMiwwLjEtMC41LDEuMiwwLDEuNWMxLjQsMC45LDguNSwwLjgsMTEuMywwLjYKCQkJCWMwLjgtMC4xLDEuNi0wLjQsMS43LTEuMmMwLTAuMy0wLjEtMC42LTAuNi0wLjkiLz4KCQkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODY4Njg2IiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik00My41LDEwLjZMNDMuMywxMWMtMC4yLDAuNSwwLjIsMSwwLjcsMC45CgkJCQljMC4zLTAuMSwwLjUsMC4xLDAuNywwLjNsMC4xLDAuMmMwLjMsMC41LDEsMC42LDEuNSwwLjJsMCwwYzAuMy0wLjIsMC43LTAuMywxLTAuMmwwLjgsMC4zYzAuNCwwLjEsMC44LDAuMSwxLjIsMGwwLjUtMC4yCgkJCQljMC40LTAuMiwwLjktMC4yLDEuMywwbDAuNSwwLjJjMC40LDAuMiwwLjgsMC4xLDEuMi0wLjFsMC4yLTAuMWMwLjMtMC4yLDAuOC0wLjEsMS4xLDAuMWwwLjIsMC4yYzAuMywwLjMsMC44LDAuMiwxLTAuMmwwLjEtMC4yCgkJCQljMC4xLTAuMiwwLTAuMywwLjItMC40YzAuNSwwLDEuMi0wLjMsMS4xLTAuN2wtMC40LTEuMSIvPgoJCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM4Njg2ODYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgZD0iTTQzLjUsMTIuMWMtMC4xLDAuMi0wLjMsMC44LDAsMS4xYzAuMywwLjQsMywxLjEsNi40LDEuMQoJCQkJYzIuMiwwLDQuNi0wLjMsNi0wLjZjMC41LTAuMSwwLjktMC40LDAuOC0wLjljMC0wLjItMC4yLTAuNS0wLjQtMC43Ii8+CgkJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzg2ODY4NiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNNDMuNSwxMy4zYzAsMC41LDAuNiwyLjQsMS4zLDIuNmMxLjgsMC44LDUuNywwLjcsOC4xLDAuNQoJCQkJYzEuMy0wLjEsMi41LTAuNywzLjItMS44YzAuMy0wLjUsMC41LTEsMC41LTEuNCIvPgoJCQk8ZWxsaXBzZSBmaWxsPSIjODY4Njg2IiBjeD0iNTEuNiIgY3k9IjYuNSIgcng9IjAuMyIgcnk9IjAuNCIvPgoJCQk8ZWxsaXBzZSBmaWxsPSIjODY4Njg2IiBjeD0iNTMiIGN5PSI0LjkiIHJ4PSIwLjMiIHJ5PSIwLjQiLz4KCQkJPGVsbGlwc2UgZmlsbD0iIzg2ODY4NiIgY3g9IjUzIiBjeT0iNy4yIiByeD0iMC4zIiByeT0iMC40Ii8+CgkJCTxlbGxpcHNlIGZpbGw9IiM4Njg2ODYiIGN4PSI1NC4zIiBjeT0iNi41IiByeD0iMC4zIiByeT0iMC40Ii8+CgkJCTxlbGxpcHNlIGZpbGw9IiM4Njg2ODYiIGN4PSI1MC45IiBjeT0iNC45IiByeD0iMC4zIiByeT0iMC40Ii8+CgkJPC9nPgoJPC9nPgo8L2c+CjxnIGlkPSJBbmltYWxzIj4KCTxnPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzg2ODY4NiIgZD0iTTI0LjIsMTFWMy41YzAuMSwwLjEsMC44LDAuOSwyLjgsMy4xYzIuNS0xLjcsNS42LTAuNyw2LjksMGwyLjQtMy4xdjcuMQoJCQljMCwxLjItMC4xLDIuNS0wLjksMy40Yy0xLDEuMi0yLjcsMi41LTUuMywyLjVjLTIuOSwwLTQuNS0xLjUtNS4zLTIuOUMyNC4yLDEyLjksMjQuMiwxMS45LDI0LjIsMTF6Ii8+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODY4Njg2IiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik0yMS4yLDEwbDUuNCwxLjIiLz4KCQk8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM4Njg2ODYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgZD0iTTIxLjIsMTQuMWw1LjQtMS4yIi8+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODY4Njg2IiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik0zOC44LDEwbC01LjQsMS4yIi8+CgkJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODY4Njg2IiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik0zOC44LDE0LjFsLTUuNC0xLjIiLz4KCQk8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iIzg2ODY4NiIgZD0iTTI5LjUsMTIuNEwyOSwxMS43Yy0wLjItMC4zLDAtMC42LDAuMy0wLjZoMS40CgkJCWMwLjMsMCwwLjUsMC40LDAuMywwLjZsLTAuNywxbDAsMGMtMC43LDEuMi0yLjYsMS4xLTMuMS0wLjNsLTAuMS0wLjJjLTAuMS0wLjIsMC0wLjQsMC4yLTAuNXMwLjQsMCwwLjUsMC4ybDAuMSwwLjIKCQkJQzI4LjMsMTIuNywyOS4xLDEyLjksMjkuNSwxMi40eiIvPgoJCTxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzg2ODY4NiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBkPSJNMzIuNCwxMi4xbC0wLjEsMC4yYy0wLjQsMS0xLjgsMS4xLTIuMywwLjIiLz4KCQk8ZWxsaXBzZSBmaWxsPSIjODY4Njg2IiBjeD0iMjcuNiIgY3k9IjkuNyIgcng9IjAuNyIgcnk9IjAuNyIvPgoJCTxlbGxpcHNlIGZpbGw9IiM4Njg2ODYiIGN4PSIzMi40IiBjeT0iOS43IiByeD0iMC43IiByeT0iMC43Ii8+Cgk8L2c+CjwvZz4KPC9zdmc+)",":focus:before":{content:"",position:"absolute",top:"-2px",left:"-2px",right:"-2px",bottom:"-2px",border:"2px solid var(--epr-category-icon-active-color)",borderRadius:"50%"},"&.epr-icn-suggested":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -8)"},"&.epr-icn-custom":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -9)"},"&.epr-icn-activities":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -4)"},"&.epr-icn-animals_nature":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -1)"},"&.epr-icn-flags":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -7)"},"&.epr-icn-food_drink":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -2)"},"&.epr-icn-objects":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -5)"},"&.epr-icn-smileys_people":{backgroundPositionX:"0px"},"&.epr-icn-symbols":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -6)"},"&.epr-icn-travel_places":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -3)"}}},bk("catBtn",gP),{".epr-dark-theme":sk({},mP),".epr-auto-theme":sk({},mP)}));function bP(){var e,t,r=(0,i.useState)(null),n=r[0],o=r[1],a=(e=$_(),t=J_(),function(r){var n;if(e.current){var i=null==(n=e.current)?void 0:n.querySelector('[data-name="'+r+'"]');if(i){var o=i.offsetTop||0;rT(t.current,o)}}});!function(e){var t=$_();(0,i.useEffect)((function(){var r=new Map,n=t.current,i=new IntersectionObserver((function(t){if(n){for(var i,o=dk(t);!(i=o()).done;){var a=i.value,s=(u=void 0,null!=(u=null==(c=a.target)?void 0:c.getAttribute("data-name"))?u:null);r.set(s,a.intersectionRatio)}var c,u,l=Array.from(r),d=l[l.length-1];if(1==d[1])return e(d[0]);for(var f=0,h=l;f .epr-icn-clear-search":{backgroundPositionY:"-60px"}}},EP=hk.create(sk({btnClearSearch:{".":"epr-btn-clear-search",position:"absolute",right:"var(--epr-search-bar-inner-padding)",height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center",top:"50%",transform:"translateY(-50%)",padding:"0",borderRadius:"50%",":hover":{background:"var(--epr-hover-bg-color)"},":focus":{background:"var(--epr-hover-bg-color)"}},icnClearnSearch:{".":"epr-icn-clear-search",backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundSize:"20px",height:"20px",width:"20px",backgroundImage:"url("+wP+")",":hover":{backgroundPositionY:"-20px"},":focus":{backgroundPositionY:"-20px"}}},bk("icnClearnSearch",{backgroundPositionY:"-40px"}),bk("btnClearSearch",CP))),xP=fk($I.emojiPicker)+" "+fk($I.emojiList),SP=["button",fk($I.emoji)].join(""),IP=fk($I.category);function kP(e){var t=e.value;if(!t)return null;var r=function(e){return[SP,'[data-full-name*="',vT(e),'"]'].join("")}(t);return(0,i.createElement)("style",null,"\n "+xP+" "+SP+" {\n display: none;\n }\n\n\n "+xP+" "+r+" {\n display: flex;\n }\n\n "+xP+" "+IP+":not(:has("+r+")) {\n display: none;\n }\n ")}function _P(){return(0,i.createElement)("div",{className:rk(TP.icnSearch)})}var TP=hk.create(sk({icnSearch:{".":"epr-icn-search",content:"",position:"absolute",top:"50%",left:"var(--epr-search-bar-inner-padding)",transform:"translateY(-50%)",width:"20px",height:"20px",backgroundRepeat:"no-repeat",backgroundPosition:"0 0",backgroundSize:"20px",backgroundImage:"url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjQwcHgiIHZpZXdCb3g9IjAgMCAyMCA0MCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iIzg2ODY4NiIgZD0iTTEyLDguODFjMCwyLjA4LTEuNjgsMy43Ni0zLjc2LDMuNzZjLTIuMDgsMC0zLjc2LTEuNjgtMy43Ni0zLjc2CgljMC0yLjA4LDEuNjgtMy43NiwzLjc2LTMuNzZDMTAuMzIsNS4wNSwxMiw2LjczLDEyLDguODF6IE0xMS4yMywxMi43MmMtMC44MywwLjY0LTEuODcsMS4wMS0yLjk5LDEuMDFjLTIuNzIsMC00LjkyLTIuMi00LjkyLTQuOTIKCWMwLTIuNzIsMi4yLTQuOTIsNC45Mi00LjkyYzIuNzIsMCw0LjkyLDIuMiw0LjkyLDQuOTJjMCwxLjEzLTAuMzgsMi4xNi0xLjAxLDIuOTlsMy45NCwzLjkzYzAuMjUsMC4yNSwwLjI1LDAuNjYsMCwwLjkyCgljLTAuMjUsMC4yNS0wLjY2LDAuMjUtMC45MiwwTDExLjIzLDEyLjcyeiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI0MwQzBCRiIgZD0iTTEyLDI4LjgxYzAsMi4wOC0xLjY4LDMuNzYtMy43NiwzLjc2Yy0yLjA4LDAtMy43Ni0xLjY4LTMuNzYtMy43NgoJYzAtMi4wOCwxLjY4LTMuNzYsMy43Ni0zLjc2QzEwLjMyLDI1LjA1LDEyLDI2LjczLDEyLDI4LjgxeiBNMTEuMjMsMzIuNzJjLTAuODMsMC42NC0xLjg3LDEuMDEtMi45OSwxLjAxCgljLTIuNzIsMC00LjkyLTIuMi00LjkyLTQuOTJjMC0yLjcyLDIuMi00LjkyLDQuOTItNC45MmMyLjcyLDAsNC45MiwyLjIsNC45Miw0LjkyYzAsMS4xMy0wLjM4LDIuMTYtMS4wMSwyLjk5bDMuOTQsMy45MwoJYzAuMjUsMC4yNSwwLjI1LDAuNjYsMCwwLjkyYy0wLjI1LDAuMjUtMC42NiwwLjI1LTAuOTIsMEwxMS4yMywzMi43MnoiLz4KPC9zdmc+)"}},bk("icnSearch",{backgroundPositionY:"-20px"})));function MP(){var e=A_(),t=AT();return e?null:(0,i.createElement)($M,{className:rk(jP.overlay)},(0,i.createElement)(PP,null),t?(0,i.createElement)(sP,null):null)}function PP(){var e,t,r=(0,i.useState)(0),n=r[0],o=r[1],a=uT(),s=X_(),c=(t=d_(),null!=(e=[t.searchPlaceHolder,t.searchPlaceholder].find((function(e){return e!==t_})))?e:t_),u=d_().autoFocusSearch,l=mT(),d=l.statusSearchResults,f=l.searchTerm,h=l.onChange,p=null==s?void 0:s.current,g=null==p?void 0:p.value;return(0,i.createElement)(rP,{className:rk(jP.searchContainer)},(0,i.createElement)(kP,{value:g}),(0,i.createElement)("input",{autoFocus:u,"aria-label":"Type to search for an emoji",onFocus:a,className:rk(jP.search),type:"text","aria-controls":"epr-search-id",placeholder:c,onChange:function(e){o(n+1),setTimeout((function(){var t,r;h(null!=(t=null==e||null==(r=e.target)?void 0:r.value)?t:g)}))},ref:s}),f?(0,i.createElement)("div",{role:"status",className:rk("epr-status-search-results",jP.visuallyHidden),"aria-live":"polite",id:"epr-search-id","aria-atomic":"true"},d):null,(0,i.createElement)(_P,null),(0,i.createElement)(AP,null))}var jP=hk.create(sk({overlay:{padding:"var(--epr-header-padding)",zIndex:"var(--epr-header-overlay-z-index)"},searchContainer:{".":"epr-search-container",flex:"1",display:"block",minWidth:"0"},visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"},search:{outline:"none",transition:"all 0.2s ease-in-out",color:"var(--epr-search-input-text-color)",borderRadius:"var(--epr-search-input-border-radius)",padding:"var(--epr-search-input-padding)",height:"var(--epr-search-input-height)",backgroundColor:"var(--epr-search-input-bg-color)",border:"1px solid var(--epr-search-input-bg-color)",width:"100%",":focus":{backgroundColor:"var(--epr-search-input-bg-color-active)",border:"1px solid var(--epr-search-border-color)"},"::placeholder":{color:"var(--epr-search-input-placeholder-color)"}},btnClearSearch:{".":"epr-btn-clear-search",position:"absolute",right:"var(--epr-search-bar-inner-padding)",height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center",top:"50%",transform:"translateY(-50%)",padding:"0",borderRadius:"50%",":hover":{background:"var(--epr-hover-bg-color)"},":focus":{background:"var(--epr-hover-bg-color)"}},icnClearnSearch:{".":"epr-icn-clear-search",backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundSize:"20px",height:"20px",width:"20px",backgroundImage:"url("+wP+")",":hover":{backgroundPositionY:"-20px"},":focus":{backgroundPositionY:"-20px"}}},bk("icnClearnSearch",{backgroundPositionY:"-40px"}),bk("btnClearSearch",{":hover > .epr-icn-clear-search":{backgroundPositionY:"-60px"}})));function DP(){return(0,i.createElement)(rP,{className:rk("epr-header",yk.hiddenOnReactions)},(0,i.createElement)(MP,null),(0,i.createElement)(bP,null))}function OP(e){return(0,i.createElement)(G_,null,(0,i.createElement)(mk,null),(0,i.createElement)(l_,Object.assign({},e),(0,i.createElement)(BP,null)))}function BP(){var e=j_()[0],t=m_(),r=(0,i.useState)(!e),n=r[0],o=r[1],a=d_().open;return(0,i.useEffect)((function(){e&&!t||n||o(!0)}),[n,t,e]),a?(0,i.createElement)(jT,null,(0,i.createElement)(OM,null),(0,i.createElement)(NP,{renderAll:n})):null}function NP(e){return e.renderAll?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(DP,null),(0,i.createElement)(QM,null),(0,i.createElement)(uP,null)):null}var RP=(0,i.memo)(OP,vk),LP=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).state={hasError:!1},r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,ck(t,r),n.getDerivedStateFromError=function(){return{hasError:!0}};var i=n.prototype;return i.componentDidCatch=function(e,t){console.error("Emoji Picker React failed to render:",e,t)},i.render=function(){return this.state.hasError?null:this.props.children},n}(i.Component);const FP=function(e){var t=function(e){var t=i.useRef({onEmojiClick:e.onEmojiClick||g_,onReactionClick:e.onReactionClick||e.onEmojiClick,onSkinToneChange:e.onSkinToneChange||g_});return i.useEffect((function(){t.current.onEmojiClick=e.onEmojiClick||g_,t.current.onReactionClick=e.onReactionClick||e.onEmojiClick}),[e.onEmojiClick,e.onReactionClick]),i.useEffect((function(){t.current.onSkinToneChange=e.onSkinToneChange||g_}),[e.onSkinToneChange]),t}({onEmojiClick:e.onEmojiClick,onReactionClick:e.onReactionClick,onSkinToneChange:e.onSkinToneChange});return(0,i.createElement)(LP,null,(0,i.createElement)(h_.Provider,{value:t},(0,i.createElement)(RP,Object.assign({},e))))};var UP=class extends i.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("GIF Picker React failed to render:",e,t)}render(){return this.state.hasError?null:this.props.children}},zP=i.createContext(null),HP=i.createContext(null);function VP(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}VP(".GifPickerReact .gpr-body{display:flex;flex:1;min-height:0}\n");var KP=i.createContext(null);VP(".GifPickerReact .gpr-category-placeholder{border-radius:var(--gpr-category-border-radius);position:relative}\n"),VP(".GifPickerReact .gpr-placeholder{background-color:var(--gpr-placeholder-color);transition:opacity .2s ease-in-out}\n");var GP=function(e){return i.createElement("div",{...e,className:`gpr-placeholder ${e.className||""}`,style:{width:e.width,height:e.height,...e.style}})};var qP=function(){let e=(0,i.useContext)(KP);return i.createElement(GP,{className:"gpr-category-placeholder",height:e.categoryHeight,width:"100%"})};VP(".GifPickerReact .gpr-category-list{display:grid;grid-gap:var(--gpr-category-list-padding);flex:1;grid-auto-rows:min-content;overflow-y:scroll;padding:var(--gpr-body-padding)}\n"),VP(".GifPickerReact .gpr-category{border-radius:var(--gpr-category-border-radius);cursor:pointer;position:relative;transition:box-shadow .15s ease-in-out}.GifPickerReact .gpr-category img{background-color:#d3d3d3;border-radius:var(--gpr-category-border-radius);height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.GifPickerReact .gpr-category-overlay{align-items:center;background-color:rgba(0,0,0,var(--gpr-category-background-opacity));border-radius:var(--gpr-category-border-radius);display:flex;height:100%;justify-content:center;left:0;overflow:hidden;position:absolute;top:0;transition:background-color .15s ease-in-out;width:100%}.GifPickerReact .gpr-category-overlay .gpr-category-name{color:var(--gpr-category-font-color);font-size:var(--gpr-category-font-size);font-weight:var(--gpr-category-font-weight);text-shadow:0 1px 1px rgba(0,0,0,var(--gpr-category-shadow-opacity))}.GifPickerReact .gpr-category:hover{box-shadow:0 0 0 2px var(--gpr-category-border-color-hover)}.GifPickerReact .gpr-category:hover .gpr-category-overlay{background-color:rgba(0,0,0,var(--gpr-category-shadow-opacity-hover))}\n");var QP=function({image:e,text:t,onClick:r}){let n=(0,i.useContext)(KP);return i.createElement("button",{type:"button",className:"gpr-btn gpr-category",style:{height:n.categoryHeight},"data-testid":"gpr-category",onClick:r},i.createElement("img",{src:e,loading:"lazy"}),i.createElement("div",{className:"gpr-category-overlay"},i.createElement("div",{className:"gpr-category-name"},t)))};var WP=function({image:e,name:t}){let[r,n]=(0,i.useContext)(zP);return i.createElement(QP,{image:e,text:t,onClick:function(){let e=Object.assign({},r);e.searchTerm=t,n(e)}})};VP(".GifPickerReact .gpr-icn-trending{background-color:transparent;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath fill='%23fff' d='M6.3 37 4 34.7l15-15 8 8.05L41.9 11l2.1 2.05-17 19.2-8-7.95Z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:20px;height:20px;width:20px}.GifPickerReact .gpr-category .gpr-text-trending-category{align-items:center;display:flex;gap:4px}\n");var JP=function({image:e}){let[t,r]=(0,i.useContext)(zP);return i.createElement(QP,{image:e,onClick:function(){let e=Object.assign({},t);e.showTrending=!0,r(e)},text:i.createElement("div",{className:"gpr-text-trending-category"},i.createElement("div",{className:"gpr-icn-trending"}),i.createElement("span",null,"Trending GIFs"))})};var YP=function({categories:e,trending:t,columnsCount:r}){var n;return i.createElement("div",{className:"gpr-category-list",style:{gridTemplateColumns:`repeat(${r}, 1fr)`}},e&&t?i.createElement(i.Fragment,null,i.createElement(JP,{image:t.url}),null==(n=function(){if(!e)return;let t=(e.length+1)%r;return 0==t?e:null==e?void 0:e.slice(0,-t)}())?void 0:n.map(((e,t)=>i.createElement(WP,{key:t,image:e.image,name:e.name})))):i.createElement(i.Fragment,null,[...Array(10*r)].map(((e,t)=>i.createElement(qP,{key:t})))))};VP(".GifPickerReact .gpr-gif-list{display:flex;flex:1;flex-direction:row;gap:var(--gpr-category-list-padding);overflow-y:scroll;padding:var(--gpr-body-padding)}.GifPickerReact .gpr-gif-list-column{display:grid;flex:1;grid-gap:var(--gpr-category-list-padding);grid-auto-rows:min-content;grid-template-columns:1fr;grid-template-rows:auto 1fr}.GifPickerReact .gpr-gif-list-no-result{align-items:center;display:flex;flex:1;justify-content:center;padding-bottom:30%}\n"),VP(".GifPickerReact .gpr-result-placeholder{border-radius:var(--gpr-category-border-radius)}\n");var ZP=function({height:e,showDelay:t}){let[r,n]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{if(r)return;let e=setTimeout((function(){n(!0)}),t);return()=>clearTimeout(e)}),[]),i.createElement(GP,{className:"gpr-result-placeholder",height:e,width:"100%",style:{opacity:r?1:0}})},$P=[[120,100,130,175,154,110],[150,115,135,154,145,170],[140,125,120,150,100,125],[130,145,175,120,135,100]];var XP=function({columnsCount:e,showDelay:t=70}){return i.createElement("div",{className:"gpr-gif-list"},[...Array(e)].map(((r,n)=>i.createElement("div",{className:"gpr-gif-list-column",key:n},$P[n%$P.length].map(((r,o)=>i.createElement(ZP,{key:o,height:r,showDelay:(o+1)*t*e+t*n})))))))};VP(".GifPickerReact .gpr-result-image{border-radius:var(--gpr-category-border-radius);cursor:pointer;transition:box-shadow .15s ease-in-out}.GifPickerReact .gpr-result-image img{background-color:var(--gpr-placeholder-color);border-radius:var(--gpr-category-border-radius);height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.GifPickerReact .gpr-result-image:hover{box-shadow:0 0 0 2px var(--gpr-category-border-color-hover)}\n");var ej=function({image:e,searchTerm:t}){let r=(0,i.useContext)(KP),n=(0,i.useContext)(HP);return i.createElement("button",{type:"button",className:"gpr-btn gpr-result-image",onClick:function(){let i=r.onGifClick;i&&i(e),n.registerShare(e,t)}},i.createElement("img",{src:e.preview.url,height:e.preview.height,width:e.preview.width,loading:"lazy"}))};var tj=function({isLoading:e,result:t,searchTerm:r,columnsCount:n}){let o=(0,i.useMemo)((()=>function(e,t=2){if(!e)return[];let r=new Array(t).fill(null).map((()=>[])),n=new Array(t).fill(0);for(let i of e.images){let e=i.preview.height/i.preview.width,t=n.indexOf(Math.min(...n));r[t].push(i),n[t]+=e}return r}(t,n)),[t,n]),a=!t||t.images.length<=0;return e?i.createElement(XP,{columnsCount:n}):a?i.createElement("div",{className:"gpr-gif-list-no-result"},i.createElement("span",null,"No GIFs found!")):i.createElement("div",{className:"gpr-gif-list"},o.map(((e,t)=>i.createElement("div",{className:"gpr-gif-list-column",key:t},e.map((e=>i.createElement(ej,{key:e.id,image:e,searchTerm:r})))))))};var rj=function({searchTerm:e,columnsCount:t}){let[r,n]=(0,i.useState)(null),[o,a]=(0,i.useState)(!0),s=(0,i.useContext)(HP);return(0,i.useEffect)((()=>{a(!0);let t=setTimeout((()=>async function(){let t=await s.search(e);n(t),a(!1)}()),800);return()=>clearTimeout(t)}),[e]),i.createElement(tj,{isLoading:o,columnsCount:t,result:r,searchTerm:e})};var nj=function({columnsCount:e}){let[t,r]=(0,i.useState)(null),[n,o]=(0,i.useState)(!0),a=(0,i.useContext)(HP);return(0,i.useEffect)((()=>{o(!0),(async()=>{let e=await a.trending();r(e),o(!1)})()}),[]),i.createElement(tj,{columnsCount:e,isLoading:n,result:t})};var ij=function({width:e}){let[t,r]=(0,i.useState)(void 0),[n,o]=(0,i.useState)(void 0),[a]=(0,i.useContext)(zP),[s,c]=(0,i.useState)(1),u=(0,i.useContext)(HP),l=(0,i.useRef)(null);return(0,i.useEffect)((()=>{(async()=>{let e=await u.categories();r(e);let t=await u.trending(1);o(t.images[0])})()}),[]),(0,i.useEffect)((()=>{let e=l.current?l.current.offsetWidth:0,t=Math.floor(e/170);t<1&&(t=1),c(t)}),[l.current,e]),i.createElement("div",{className:"gpr-body",ref:l},a.showTrending?i.createElement(nj,{columnsCount:s}):a.searchTerm?i.createElement(rj,{columnsCount:s,searchTerm:a.searchTerm}):i.createElement(YP,{columnsCount:s,categories:t,trending:n}))};VP(".GifPickerReact .gpr-header{border-bottom:1px solid var(--gpr-picker-border-color);min-height:0;padding:var(--gpr-header-padding)}\n");var oj=function(e){return i.createElement("button",{type:"button",...e,className:"gpr-btn "+e.className},e.children)};VP(".GifPickerReact button.gpr-btn-clear-search{align-items:center;border-radius:50%;display:flex;height:20px;justify-content:end;padding:0;position:absolute;right:var(--gpr-search-bar-inner-padding);top:50%;transform:translateY(-50%);width:20px}.GifPickerReact .gpr-icn-clear-search{background-color:transparent;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' width='20' height='80'%3E%3Cpath fill='%23868686' d='M6.98 13.59a.53.53 0 0 0 .74 0l2.42-2.42 2.43 2.43a.53.53 0 0 0 .74 0c.21-.21.21-.54 0-.75l-2.43-2.43L13.32 8c.21-.21.21-.54 0-.75a.525.525 0 0 0-.75 0l-2.42 2.42-2.41-2.4a.525.525 0 0 0-.75 0c-.21.21-.21.54 0 .75l2.41 2.41-2.42 2.42c-.21.2-.21.54 0 .74'/%3E%3Cpath fill='%23868686' d='M10.15 18.43c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8m0-14.94c3.83 0 6.94 3.11 6.94 6.94s-3.11 6.94-6.94 6.94-6.94-3.11-6.94-6.94 3.12-6.94 6.94-6.94'/%3E%3Cpath fill='%233371B7' d='M6.98 33.59a.53.53 0 0 0 .74 0l2.42-2.42 2.43 2.43a.53.53 0 0 0 .74 0c.21-.21.21-.54 0-.75l-2.43-2.43L13.32 28c.21-.21.21-.54 0-.75a.525.525 0 0 0-.75 0l-2.42 2.42-2.41-2.41a.525.525 0 0 0-.75 0c-.21.21-.21.54 0 .75l2.41 2.41-2.42 2.42c-.21.21-.21.55 0 .75'/%3E%3Cpath fill='%233371B7' d='M10.15 38.43c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8m0-14.94c3.83 0 6.94 3.11 6.94 6.94s-3.11 6.94-6.94 6.94-6.94-3.11-6.94-6.94 3.12-6.94 6.94-6.94'/%3E%3Cpath fill='%23C0C0BF' d='M6.98 53.59a.53.53 0 0 0 .74 0l2.42-2.42 2.43 2.43a.53.53 0 0 0 .74 0c.21-.21.21-.54 0-.75l-2.43-2.43L13.32 48c.21-.21.21-.54 0-.75a.525.525 0 0 0-.75 0l-2.42 2.42-2.41-2.41a.525.525 0 0 0-.75 0c-.21.21-.21.54 0 .75l2.41 2.41-2.42 2.42c-.21.21-.21.55 0 .75'/%3E%3Cpath fill='%23C0C0BF' d='M10.15 58.43c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8m0-14.94c3.83 0 6.94 3.11 6.94 6.94s-3.11 6.94-6.94 6.94-6.94-3.11-6.94-6.94 3.12-6.94 6.94-6.94'/%3E%3Cpath fill='%236AA9DD' d='M6.98 73.59a.53.53 0 0 0 .74 0l2.42-2.42 2.43 2.43a.53.53 0 0 0 .74 0c.21-.21.21-.54 0-.75l-2.43-2.43L13.32 68c.21-.21.21-.54 0-.75a.525.525 0 0 0-.75 0l-2.42 2.42-2.41-2.41a.525.525 0 0 0-.75 0c-.21.21-.21.54 0 .75l2.41 2.41-2.42 2.42c-.21.21-.21.55 0 .75'/%3E%3Cpath fill='%236AA9DD' d='M10.15 78.43c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8m0-14.94c3.83 0 6.94 3.11 6.94 6.94s-3.11 6.94-6.94 6.94-6.94-3.11-6.94-6.94 3.12-6.94 6.94-6.94'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:20px;height:20px;width:20px}.GifPickerReact .gpr-search-container button.gpr-btn-clear-search:focus .gpr-icn-clear-search,.GifPickerReact button.gpr-btn-clear-search:hover .gpr-icn-clear-search{background-position-y:-20px}.GifPickerReact button.gpr-btn-clear-search:focus,.GifPickerReact button.gpr-btn-clear-search:hover{background:var(--gpr-hover-bg-color)}.GifPickerReact.gpr-dark-theme button.gpr-btn-clear-search .gpr-icn-clear-search{background-position-y:-40px}.GifPickerReact.gpr-dark-theme button.gpr-btn-clear-search:hover .gpr-icn-clear-search{background-position-y:-60px}\n");var aj=function({onClick:e}){return i.createElement(oj,{className:"gpr-btn-clear-search",onClick:e},i.createElement("div",{className:"gpr-icn-clear-search"}))};VP(".GifPickerReact .gpr-search-container{display:block;flex:1;min-width:0;position:relative}.GifPickerReact .gpr-search-container input.gpr-search{background-color:var(--gpr-search-input-bg-color);border:1px solid var(--gpr-search-input-bg-color);border-radius:var(--gpr-search-input-border-radius);color:var(--gpr-search-input-text-color);height:var(--gpr-search-input-height);outline:none;padding:var(--gpr-search-input-padding);transition:all .2s ease-in-out;width:100%}.GifPickerReact .gpr-search-container .gpr-icn-search{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' width='20' height='40'%3E%3Cpath fill='%23868686' fill-rule='evenodd' d='M12 8.81c0 2.08-1.68 3.76-3.76 3.76s-3.76-1.68-3.76-3.76 1.68-3.76 3.76-3.76S12 6.73 12 8.81m-.77 3.91c-.83.64-1.87 1.01-2.99 1.01-2.72 0-4.92-2.2-4.92-4.92s2.2-4.92 4.92-4.92 4.92 2.2 4.92 4.92c0 1.13-.38 2.16-1.01 2.99l3.94 3.93c.25.25.25.66 0 .92-.25.25-.66.25-.92 0z' clip-rule='evenodd'/%3E%3Cpath fill='%23C0C0BF' fill-rule='evenodd' d='M12 28.81c0 2.08-1.68 3.76-3.76 3.76s-3.76-1.68-3.76-3.76 1.68-3.76 3.76-3.76S12 26.73 12 28.81m-.77 3.91c-.83.64-1.87 1.01-2.99 1.01-2.72 0-4.92-2.2-4.92-4.92s2.2-4.92 4.92-4.92 4.92 2.2 4.92 4.92c0 1.13-.38 2.16-1.01 2.99l3.94 3.93c.25.25.25.66 0 .92-.25.25-.66.25-.92 0z' clip-rule='evenodd'/%3E%3C/svg%3E\");background-position:0 0;background-repeat:no-repeat;background-size:20px;content:\"\";height:20px;left:var(--gpr-search-bar-inner-padding);position:absolute;top:50%;transform:translateY(-50%);width:20px}.GifPickerReact.gpr-dark-theme .gpr-search-container .gpr-icn-search{background-position-y:-20px}.GifPickerReact .gpr-search-container input.gpr-search::-moz-placeholder{color:var(--gpr-search-input-placeholder-color)}.GifPickerReact .gpr-search-container input.gpr-search::placeholder{color:var(--gpr-search-input-placeholder-color)}.GifPickerReact .gpr-search-container input.gpr-search:focus{background-color:var(--gpr-search-input-bg-color-active);border:1px solid var(--gpr-search-border-color-active)}\n");var sj=function(){let[e,t]=(0,i.useContext)(zP),r=(0,i.useContext)(KP);return i.createElement("div",{className:"gpr-search-container"},i.createElement("input",{autoFocus:r.autoFocusSearch,"aria-label":"Search Tenor",placeholder:"Search Tenor",className:"gpr-search","data-testid":"gpr-search-input",type:"text",dir:"auto",maxLength:500,value:e.searchTerm,onChange:function(r){let n=Object.assign({},e);n.searchTerm=r.target.value,t(n)}}),i.createElement("div",{className:"gpr-icn-search"}),e.searchTerm.length>0&&i.createElement(aj,{onClick:function(){let r=Object.assign({},e);r.searchTerm="",t(r)}}))};VP(".GifPickerReact .gpr-title-container{display:block;flex:1;min-width:0;position:relative}.GifPickerReact .gpr-title-container .gpr-title{align-items:center;background-color:var(--gpr-search-input-bg-color);border-radius:var(--gpr-search-input-border-radius);color:var(--gpr-search-input-text-color);display:flex;height:var(--gpr-search-input-height);padding:var(--gpr-horizontal-padding);width:100%}\n");var cj=function({children:e}){let[t,r]=(0,i.useContext)(zP);return i.createElement("div",{className:"gpr-title-container"},i.createElement("div",{className:"gpr-title"},e),i.createElement(oj,{className:"gpr-btn-clear-search",onClick:function(){let e=Object.assign({},t);e.showTrending=!1,r(e)}},i.createElement("div",{className:"gpr-icn-clear-search"})))};var uj=function(){let[e]=(0,i.useContext)(zP);return i.createElement("div",{className:"gpr-header"},e.showTrending?i.createElement(cj,null,"Trending GIFs"):i.createElement(sj,null))},lj=(e=>(e.HIGH="high",e.MEDIUM="medium",e.LOW="low",e.OFF="off",e))(lj||{}),dj=(e=>(e.LIGHT="light",e.DARK="dark",e.AUTO="auto",e))(dj||{});var fj=function({children:e}){let t=(0,i.useContext)(KP),r={height:t.height,width:t.width};return i.createElement("aside",{className:"GifPickerReact gpr-main "+("dark"===t.theme?" gpr-dark-theme":""),style:r},e)};VP(".GifPickerReact{color-scheme:light;--gpr-highlight-color:#007aeb;--gpr-hover-bg-color:#f1f8ff;--gpr-focus-bg-color:#e0f0ff;--gpr-text-color:#858585;--gpr-search-input-bg-color:#f6f6f6;--gpr-picker-border-color:#e7e7e7;--gpr-bg-color:#fff;--gpr-horizontal-padding:10px;--gpr-picker-border-radius:8px;--gpr-header-padding:15px var(--gpr-horizontal-padding);--gpr-search-input-bg-color-active:var(--gpr-search-input-bg-color);--gpr-search-input-padding:0 32px;--gpr-search-input-border-radius:8px;--gpr-search-input-height:40px;--gpr-search-input-text-color:var(--gpr-text-color);--gpr-search-input-placeholder-color:var(--gpr-text-color);--gpr-search-bar-inner-padding:var(--gpr-horizontal-padding);--gpr-search-border-color-active:var(--gpr-highlight-color);--gpr-body-padding:var(--gpr-header-padding) 0px;--gpr-category-list-padding:var(--gpr-horizontal-padding);--gpr-category-border-radius:4px;--gpr-category-background-opacity:40%;--gpr-category-font-color:var(--gpr-picker-border-color);--gpr-category-font-size:16px;--gpr-category-font-weight:600;--gpr-category-shadow-opacity:60%;--gpr-category-shadow-opacity-hover:65%;--gpr-category-border-color-hover:var(--gpr-highlight-color);--gpr-placeholder-color:#d3d3d3}.GifPickerReact.gpr-dark-theme{color-scheme:dark;--gpr-dark:#000;--gpr-hover-bg-color:#363636f6;--gpr-focus-bg-color:#474747;--gpr-text-color:silver;--gpr-search-input-bg-color:#3b3b3b;--gpr-picker-border-color:#2b2b2b;--gpr-bg-color:#222;--gpr-category-font-color:#e7e7e7;--gpr-search-input-bg-color-active:var(--gpr-dark);--gpr-placeholder-color:var(--gpr-search-input-bg-color)}.GifPickerReact *{box-sizing:border-box}.GifPickerReact.gpr-main{background-color:var(--gpr-bg-color);border-color:var(--gpr-picker-border-color);border-radius:var(--gpr-picker-border-radius);border-style:solid;border-width:1px;color:var(--gpr-text-color);display:flex;flex-direction:column;position:relative}.GifPickerReact button.gpr-btn{background:none;border:0;cursor:pointer;outline:none;padding:0}\n");var hj=function(e){let t={searchTerm:e,showTrending:!1},[r,n]=(0,i.useState)(t);return[r,n]};function pj(e){if("number"==typeof e)return`${e}px`;if("string"==typeof e)return e;throw new TypeError("Invalid dimension provided")}function gj(e){return"auto"===e?typeof window>"u"||!window.matchMedia("(prefers-color-scheme: dark)").matches?"light":"dark":e??"light"}var mj=function(e){if(!e.tenorApiKey)throw new Error("tenorApiKey is a required prop that is missing");return{tenorApiKey:e.tenorApiKey,onGifClick:e.onGifClick??void 0,autoFocusSearch:e.autoFocusSearch??!0,clientKey:e.clientKey??"gif-picker-react",country:e.country??"US",locale:e.locale??"en_US",contentFilter:e.contentFilter??"off",height:pj(e.height??450),width:pj(e.width??350),categoryHeight:pj(e.categoryHeight??100),theme:gj(e.theme),initialSearchTerm:e.initialSearchTerm??""}},yj=class{apiKey;clientKey;country;locale;contentFilter;constructor(e,t,r,n,i){this.apiKey=e,this.clientKey=t,this.country=r,this.locale=n,this.contentFilter=i}async callApi(e,t){let r=new URLSearchParams({key:this.apiKey,client_key:this.clientKey,contentfilter:this.contentFilter,media_filter:"gif,tinygif",locale:this.locale,country:this.country,...t});return fetch("https://tenor.googleapis.com/v2/"+e+"?"+r).then((e=>(e.ok||(console.error(e),console.error("[gif-picker-react] Failed to fetch data from Tenor API")),e))).then((e=>e.json())).catch((e=>{console.error(e),console.error("[gif-picker-react] Failed to fetch data from Tenor API")}))}praseResult(e){let t=e.media_formats.tinygif,r=e.media_formats.gif;return{id:e.id,tenorUrl:e.itemurl,shortTenorUrl:e.url,description:e.content_description,createdAt:new Date(1e3*e.created),tags:e.tags,url:r.url,width:r.dims[0],height:r.dims[1],preview:{url:t.url,width:t.dims[0],height:t.dims[1]}}}async categories(){return this.callApi("categories",{type:"featured"}).then((e=>e.tags.map((e=>({name:e.searchterm,image:e.image})))))}async search(e,t=50){return this.callApi("search",{q:e,ar_range:"all",limit:t}).then((e=>{let t=e.results.map(this.praseResult);return{next:e.next,images:t}}))}async trending(e=50){return this.callApi("featured",{ar_range:"all",limit:e}).then((e=>{let t=e.results.map(this.praseResult);return{next:e.next,images:t}}))}async registerShare(e,t){let r={id:e.id};t&&(r.q=t),await this.callApi("registershare",r)}};var bj=function(e){let t=mj(e),r=hj(t.initialSearchTerm),n=(0,i.useMemo)((()=>new yj(t.tenorApiKey,t.clientKey,t.country,t.locale,t.contentFilter)),[]);return i.createElement(KP.Provider,{value:t},i.createElement(zP.Provider,{value:r},i.createElement(HP.Provider,{value:n},i.createElement(fj,null,i.createElement(uj,null),i.createElement(ij,{width:e.width})))))};var vj=function(e){return i.createElement(UP,null,i.createElement(bj,{...e}))},wj=r(282284);function Aj(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Cj(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Aj(o,n,i,a,s,"next",e)}function s(e){Aj(o,n,i,a,s,"throw",e)}a(void 0)}))}}var Ej=r(58168),xj=r(23029),Sj=r(92901);function Ij(e,t){if(t&&("object"==(0,wj.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function kj(e){return kj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kj(e)}var _j=r(885501),Tj=r(798406);function Mj(e,t,r){return(t=(0,Tj.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pj=r(198587);function jj(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=function(e){if(0===e.length||1===e.length)return e;var t,r,n=e.join(".");return Nj[n]||(Nj[n]=0===(r=(t=e).length)||1===r?t:2===r?[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])]:3===r?[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])]:r>=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0),Nj[n]}(e.filter((function(e){return"token"!==e})));return n.reduce((function(e,t){return Bj(Bj({},e),r[t])}),t)}function Lj(e){return e.join(" ")}function Fj(e){var t=e.node,r=e.stylesheet,n=e.style,o=void 0===n?{}:n,a=e.useInlineStyles,s=e.key,c=t.properties,u=t.type,l=t.tagName,d=t.value;if("text"===u)return d;if(l){var f,h=function(e,t){var r=0;return function(n){return r+=1,n.map((function(n,i){return Fj({node:n,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(i)})}))}}(r,a);if(a){var p=Object.keys(r).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),g=c.className&&c.className.includes("token")?["token"]:[],m=c.className&&g.concat(c.className.filter((function(e){return!p.includes(e)})));f=Bj(Bj({},c),{},{className:Lj(m)||void 0,style:Rj(c.className,Object.assign({},c.style,o),r)})}else f=Bj(Bj({},c),{},{className:Lj(c.className)});var y=h(t.children);return i.createElement(l,(0,Ej.A)({key:s},f),y)}}var Uj=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function zj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hj(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=0;n2&&void 0!==arguments[2]?arguments[2]:[];return t||u.length>0?function(e,o){return Qj({children:e,lineNumber:o,lineNumberStyle:s,largestLineNumber:a,showInlineLineNumbers:i,lineProps:r,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:n,wrapLongLines:c,wrapLines:t})}(e,o,u):function(e,t){if(n&&t&&i){var r=qj(s,t,a);e.unshift(Gj(t,r))}return e}(e,o)}for(var g=function(){var e=l[h],t=e.children[0].value;if(t.match(Vj)){var r=t.split("\n");r.forEach((function(t,i){var a=n&&d.length+o,s={type:"text",value:"".concat(t,"\n")};if(0===i){var c=p(l.slice(f+1,h).concat(Qj({children:[s],className:e.properties.className})),a);d.push(c)}else if(i===r.length-1){var u=l[h+1]&&l[h+1].children&&l[h+1].children[0],g={type:"text",value:"".concat(t)};if(u){var m=Qj({children:[g],className:e.properties.className});l.splice(h+1,0,m)}else{var y=p([g],a,e.properties.className);d.push(y)}}else{var b=p([s],a,e.properties.className);d.push(b)}})),f=h}h++};h=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function eD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eD=function(){return!!e})()}function tD(){tD=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new M(n||[]);return i(a,"_invoke",{value:I(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",h="suspendedYield",p="executing",g="completed",m={};function y(){}function b(){}function v(){}var w={};u(w,a,(function(){return this}));var A=Object.getPrototypeOf,C=A&&A(A(P([])));C&&C!==r&&n.call(C,a)&&(w=C);var E=v.prototype=y.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(i,o,a,s){var c=d(e[i],e,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==(0,wj.A)(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function I(t,r,n){var i=f;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=k(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:h,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}const rD=function(e,t){return function(){var r=Cj(tD().mark((function r(n){var i;return tD().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t();case 2:i=r.sent,n(e,i.default||i);case 4:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()},nD={abap:rD("abap",(function(){return r.e(2078).then(r.t.bind(r,637702,23))})),abnf:rD("abnf",(function(){return r.e(18497).then(r.t.bind(r,175695,23))})),actionscript:rD("actionscript",(function(){return r.e(95611).then(r.t.bind(r,741241,23))})),ada:rD("ada",(function(){return r.e(38300).then(r.t.bind(r,414502,23))})),agda:rD("agda",(function(){return r.e(43657).then(r.t.bind(r,380003,23))})),al:rD("al",(function(){return r.e(29887).then(r.t.bind(r,504977,23))})),antlr4:rD("antlr4",(function(){return r.e(65747).then(r.t.bind(r,52681,23))})),apacheconf:rD("apacheconf",(function(){return r.e(70904).then(r.t.bind(r,854196,23))})),apex:rD("apex",(function(){return r.e(91060).then(r.t.bind(r,250940,23))})),apl:rD("apl",(function(){return r.e(64789).then(r.t.bind(r,687341,23))})),applescript:rD("applescript",(function(){return r.e(15873).then(r.t.bind(r,310793,23))})),aql:rD("aql",(function(){return r.e(42258).then(r.t.bind(r,878672,23))})),arduino:rD("arduino",(function(){return r.e(85256).then(r.t.bind(r,444778,23))})),arff:rD("arff",(function(){return r.e(21353).then(r.t.bind(r,396583,23))})),asciidoc:rD("asciidoc",(function(){return r.e(63189).then(r.t.bind(r,425355,23))})),asm6502:rD("asm6502",(function(){return r.e(21740).then(r.t.bind(r,528382,23))})),asmatmel:rD("asmatmel",(function(){return r.e(37228).then(r.t.bind(r,194912,23))})),aspnet:rD("aspnet",(function(){return r.e(10953).then(r.t.bind(r,277223,23))})),autohotkey:rD("autohotkey",(function(){return r.e(74447).then(r.t.bind(r,5445,23))})),autoit:rD("autoit",(function(){return r.e(92038).then(r.t.bind(r,77142,23))})),avisynth:rD("avisynth",(function(){return r.e(36268).then(r.t.bind(r,37376,23))})),avroIdl:rD("avroIdl",(function(){return r.e(63257).then(r.t.bind(r,195757,23))})),bash:rD("bash",(function(){return r.e(96514).then(r.t.bind(r,943622,23))})),basic:rD("basic",(function(){return r.e(39322).then(r.t.bind(r,807264,23))})),batch:rD("batch",(function(){return r.e(34336).then(r.t.bind(r,867478,23))})),bbcode:rD("bbcode",(function(){return r.e(68755).then(r.t.bind(r,960101,23))})),bicep:rD("bicep",(function(){return r.e(73565).then(r.t.bind(r,203877,23))})),birb:rD("birb",(function(){return r.e(46783).then(r.t.bind(r,543285,23))})),bison:rD("bison",(function(){return r.e(49841).then(r.t.bind(r,87917,23))})),bnf:rD("bnf",(function(){return r.e(81126).then(r.t.bind(r,588800,23))})),brainfuck:rD("brainfuck",(function(){return r.e(99101).then(r.t.bind(r,959657,23))})),brightscript:rD("brightscript",(function(){return r.e(66333).then(r.t.bind(r,276599,23))})),bro:rD("bro",(function(){return r.e(58435).then(r.t.bind(r,992091,23))})),bsl:rD("bsl",(function(){return r.e(89907).then(r.t.bind(r,533611,23))})),c:rD("c",(function(){return r.e(33539).then(r.t.bind(r,431687,23))})),cfscript:rD("cfscript",(function(){return r.e(93134).then(r.t.bind(r,702370,23))})),chaiscript:rD("chaiscript",(function(){return r.e(81374).then(r.t.bind(r,924286,23))})),cil:rD("cil",(function(){return r.e(99812).then(r.t.bind(r,440214,23))})),clike:rD("clike",(function(){return r.e(27705).then(r.t.bind(r,893248,23))})),clojure:rD("clojure",(function(){return r.e(94804).then(r.t.bind(r,914054,23))})),cmake:rD("cmake",(function(){return r.e(96593).then(r.t.bind(r,745477,23))})),cobol:rD("cobol",(function(){return r.e(23281).then(r.t.bind(r,80025,23))})),coffeescript:rD("coffeescript",(function(){return r.e(61626).then(r.t.bind(r,881687,23))})),concurnas:rD("concurnas",(function(){return r.e(32928).then(r.t.bind(r,830454,23))})),coq:rD("coq",(function(){return r.e(15203).then(r.t.bind(r,632939,23))})),cpp:rD("cpp",(function(){return r.e(50267).then(r.t.bind(r,824519,23))})),crystal:rD("crystal",(function(){return r.e(32270).then(r.t.bind(r,175548,23))})),csharp:rD("csharp",(function(){return r.e(16305).then(r.t.bind(r,326523,23))})),cshtml:rD("cshtml",(function(){return r.e(47681).then(r.t.bind(r,207211,23))})),csp:rD("csp",(function(){return r.e(34118).then(r.t.bind(r,651160,23))})),cssExtras:rD("cssExtras",(function(){return r.e(44928).then(r.t.bind(r,711149,23))})),css:rD("css",(function(){return r.e(53533).then(r.t.bind(r,349137,23))})),csv:rD("csv",(function(){return r.e(37904).then(r.t.bind(r,833934,23))})),cypher:rD("cypher",(function(){return r.e(59493).then(r.t.bind(r,73183,23))})),d:rD("d",(function(){return r.e(62700).then(r.t.bind(r,360422,23))})),dart:rD("dart",(function(){return r.e(42875).then(r.t.bind(r,684125,23))})),dataweave:rD("dataweave",(function(){return r.e(12490).then(r.t.bind(r,767012,23))})),dax:rD("dax",(function(){return r.e(13151).then(r.t.bind(r,789155,23))})),dhall:rD("dhall",(function(){return r.e(30893).then(r.t.bind(r,558245,23))})),diff:rD("diff",(function(){return r.e(19117).then(r.t.bind(r,412551,23))})),django:rD("django",(function(){return r.e(5529).then(r.t.bind(r,963507,23))})),dnsZoneFile:rD("dnsZoneFile",(function(){return r.e(21385).then(r.t.bind(r,823507,23))})),docker:rD("docker",(function(){return r.e(20724).then(r.t.bind(r,376064,23))})),dot:rD("dot",(function(){return r.e(26285).then(r.t.bind(r,956489,23))})),ebnf:rD("ebnf",(function(){return r.e(16829).then(r.t.bind(r,884771,23))})),editorconfig:rD("editorconfig",(function(){return r.e(48217).then(r.t.bind(r,821711,23))})),eiffel:rD("eiffel",(function(){return r.e(37581).then(r.t.bind(r,353231,23))})),ejs:rD("ejs",(function(){return r.e(47508).then(r.t.bind(r,179962,23))})),elixir:rD("elixir",(function(){return r.e(72961).then(r.t.bind(r,251371,23))})),elm:rD("elm",(function(){return r.e(64972).then(r.t.bind(r,53558,23))})),erb:rD("erb",(function(){return r.e(11749).then(r.t.bind(r,603057,23))})),erlang:rD("erlang",(function(){return r.e(40269).then(r.t.bind(r,22339,23))})),etlua:rD("etlua",(function(){return r.e(24903).then(r.t.bind(r,47603,23))})),excelFormula:rD("excelFormula",(function(){return r.e(68665).then(r.t.bind(r,642986,23))})),factor:rD("factor",(function(){return r.e(18369).then(r.t.bind(r,390027,23))})),falselang:rD("falselang",(function(){return r.e(20345).then(r.t.bind(r,430325,23))})),firestoreSecurityRules:rD("firestoreSecurityRules",(function(){return r.e(26878).then(r.t.bind(r,879584,23))})),flow:rD("flow",(function(){return r.e(72688).then(r.t.bind(r,69820,23))})),fortran:rD("fortran",(function(){return r.e(28494).then(r.t.bind(r,67224,23))})),fsharp:rD("fsharp",(function(){return r.e(24830).then(r.t.bind(r,4302,23))})),ftl:rD("ftl",(function(){return r.e(12102).then(r.t.bind(r,314692,23))})),gap:rD("gap",(function(){return r.e(46148).then(r.t.bind(r,916678,23))})),gcode:rD("gcode",(function(){return r.e(91156).then(r.t.bind(r,66842,23))})),gdscript:rD("gdscript",(function(){return r.e(9060).then(r.t.bind(r,267656,23))})),gedcom:rD("gedcom",(function(){return r.e(1451).then(r.t.bind(r,881369,23))})),gherkin:rD("gherkin",(function(){return r.e(2690).then(r.t.bind(r,996268,23))})),git:rD("git",(function(){return r.e(19688).then(r.t.bind(r,724274,23))})),glsl:rD("glsl",(function(){return r.e(62703).then(r.t.bind(r,831284,23))})),gml:rD("gml",(function(){return r.e(39964).then(r.t.bind(r,544014,23))})),gn:rD("gn",(function(){return r.e(5963).then(r.t.bind(r,115137,23))})),goModule:rD("goModule",(function(){return r.e(32742).then(r.t.bind(r,445259,23))})),go:rD("go",(function(){return r.e(93154).then(r.t.bind(r,707858,23))})),graphql:rD("graphql",(function(){return r.e(20451).then(r.t.bind(r,288355,23))})),groovy:rD("groovy",(function(){return r.e(10622).then(r.t.bind(r,172922,23))})),haml:rD("haml",(function(){return r.e(86118).then(r.t.bind(r,909322,23))})),handlebars:rD("handlebars",(function(){return r.e(6804).then(r.t.bind(r,204416,23))})),haskell:rD("haskell",(function(){return r.e(58524).then(r.t.bind(r,278130,23))})),haxe:rD("haxe",(function(){return r.e(11220).then(r.t.bind(r,642188,23))})),hcl:rD("hcl",(function(){return r.e(10365).then(r.t.bind(r,778137,23))})),hlsl:rD("hlsl",(function(){return r.e(82465).then(r.t.bind(r,900911,23))})),hoon:rD("hoon",(function(){return r.e(5208).then(r.t.bind(r,573776,23))})),hpkp:rD("hpkp",(function(){return r.e(92281).then(r.t.bind(r,618359,23))})),hsts:rD("hsts",(function(){return r.e(70452).then(r.t.bind(r,20116,23))})),http:rD("http",(function(){return r.e(19048).then(r.t.bind(r,412760,23))})),ichigojam:rD("ichigojam",(function(){return r.e(88813).then(r.t.bind(r,973,23))})),icon:rD("icon",(function(){return r.e(54779).then(r.t.bind(r,83365,23))})),icuMessageFormat:rD("icuMessageFormat",(function(){return r.e(80535).then(r.t.bind(r,648559,23))})),idris:rD("idris",(function(){return r.e(23887).then(r.t.bind(r,296387,23))})),iecst:rD("iecst",(function(){return r.e(86100).then(r.t.bind(r,733298,23))})),ignore:rD("ignore",(function(){return r.e(83294).then(r.t.bind(r,801970,23))})),inform7:rD("inform7",(function(){return r.e(7818).then(r.t.bind(r,495160,23))})),ini:rD("ini",(function(){return r.e(72638).then(r.t.bind(r,597888,23))})),io:rD("io",(function(){return r.e(17148).then(r.t.bind(r,835136,23))})),j:rD("j",(function(){return r.e(47474).then(r.t.bind(r,232728,23))})),java:rD("java",(function(){return r.e(32168).then(r.t.bind(r,438072,23))})),javadoc:rD("javadoc",(function(){return r.e(50546).then(r.t.bind(r,646716,23))})),javadoclike:rD("javadoclike",(function(){return r.e(45655).then(r.t.bind(r,722995,23))})),javascript:rD("javascript",(function(){return r.e(42129).then(r.t.bind(r,519283,23))})),javastacktrace:rD("javastacktrace",(function(){return r.e(20891).then(r.t.bind(r,152289,23))})),jexl:rD("jexl",(function(){return r.e(93943).then(r.t.bind(r,272169,23))})),jolie:rD("jolie",(function(){return r.e(78857).then(r.t.bind(r,808685,23))})),jq:rD("jq",(function(){return r.e(74415).then(r.t.bind(r,253481,23))})),jsExtras:rD("jsExtras",(function(){return r.e(92224).then(r.t.bind(r,723935,23))})),jsTemplates:rD("jsTemplates",(function(){return r.e(84814).then(r.t.bind(r,814085,23))})),jsdoc:rD("jsdoc",(function(){return r.e(58625).then(r.t.bind(r,481401,23))})),json:rD("json",(function(){return r.e(53950).then(r.t.bind(r,746506,23))})),json5:rD("json5",(function(){return r.e(87351).then(r.t.bind(r,263219,23))})),jsonp:rD("jsonp",(function(){return r.e(49706).then(r.t.bind(r,480064,23))})),jsstacktrace:rD("jsstacktrace",(function(){return r.e(50902).then(r.t.bind(r,412906,23))})),jsx:rD("jsx",(function(){return r.e(11695).then(r.t.bind(r,848535,23))})),julia:rD("julia",(function(){return r.e(59259).then(r.t.bind(r,710599,23))})),keepalived:rD("keepalived",(function(){return r.e(78030).then(r.t.bind(r,448846,23))})),keyman:rD("keyman",(function(){return r.e(9771).then(r.t.bind(r,293641,23))})),kotlin:rD("kotlin",(function(){return r.e(84380).then(r.t.bind(r,584737,23))})),kumir:rD("kumir",(function(){return r.e(62996).then(r.t.bind(r,235310,23))})),kusto:rD("kusto",(function(){return r.e(53244).then(r.t.bind(r,454502,23))})),latex:rD("latex",(function(){return r.e(98156).then(r.t.bind(r,81526,23))})),latte:rD("latte",(function(){return r.e(87394).then(r.t.bind(r,601720,23))})),less:rD("less",(function(){return r.e(39059).then(r.t.bind(r,514081,23))})),lilypond:rD("lilypond",(function(){return r.e(3733).then(r.t.bind(r,205887,23))})),liquid:rD("liquid",(function(){return r.e(27912).then(r.t.bind(r,958776,23))})),lisp:rD("lisp",(function(){return r.e(64916).then(r.t.bind(r,135100,23))})),livescript:rD("livescript",(function(){return r.e(2419).then(r.t.bind(r,915673,23))})),llvm:rD("llvm",(function(){return r.e(31239).then(r.t.bind(r,157377,23))})),log:rD("log",(function(){return r.e(16942).then(r.t.bind(r,291800,23))})),lolcode:rD("lolcode",(function(){return r.e(60397).then(r.t.bind(r,108736,23))})),lua:rD("lua",(function(){return r.e(45578).then(r.t.bind(r,172728,23))})),magma:rD("magma",(function(){return r.e(34967).then(r.t.bind(r,859739,23))})),makefile:rD("makefile",(function(){return r.e(29084).then(r.t.bind(r,80460,23))})),markdown:rD("markdown",(function(){return r.e(29627).then(r.t.bind(r,652177,23))})),markupTemplating:rD("markupTemplating",(function(){return r.e(16403).then(r.t.bind(r,956876,23))})),markup:rD("markup",(function(){return r.e(86916).then(r.t.bind(r,649264,23))})),matlab:rD("matlab",(function(){return r.e(25507).then(r.t.bind(r,206593,23))})),maxscript:rD("maxscript",(function(){return r.e(74559).then(r.t.bind(r,45867,23))})),mel:rD("mel",(function(){return r.e(95570).then(r.t.bind(r,16136,23))})),mermaid:rD("mermaid",(function(){return r.e(68169).then(r.t.bind(r,313217,23))})),mizar:rD("mizar",(function(){return r.e(67233).then(r.t.bind(r,72281,23))})),mongodb:rD("mongodb",(function(){return r.e(67046).then(r.t.bind(r,177396,23))})),monkey:rD("monkey",(function(){return r.e(47747).then(r.t.bind(r,264365,23))})),moonscript:rD("moonscript",(function(){return r.e(3874).then(r.t.bind(r,37250,23))})),n1ql:rD("n1ql",(function(){return r.e(48628).then(r.t.bind(r,548236,23))})),n4js:rD("n4js",(function(){return r.e(56659).then(r.t.bind(r,937033,23))})),nand2tetrisHdl:rD("nand2tetrisHdl",(function(){return r.e(41550).then(r.t.bind(r,624489,23))})),naniscript:rD("naniscript",(function(){return r.e(28141).then(r.t.bind(r,42455,23))})),nasm:rD("nasm",(function(){return r.e(94715).then(r.t.bind(r,33853,23))})),neon:rD("neon",(function(){return r.e(17696).then(r.t.bind(r,792972,23))})),nevod:rD("nevod",(function(){return r.e(49558).then(r.t.bind(r,95152,23))})),nginx:rD("nginx",(function(){return r.e(29548).then(r.t.bind(r,840550,23))})),nim:rD("nim",(function(){return r.e(26060).then(r.t.bind(r,982574,23))})),nix:rD("nix",(function(){return r.e(8417).then(r.t.bind(r,335233,23))})),nsis:rD("nsis",(function(){return r.e(48658).then(r.t.bind(r,685747,23))})),objectivec:rD("objectivec",(function(){return r.e(23224).then(r.t.bind(r,30940,23))})),ocaml:rD("ocaml",(function(){return r.e(20096).then(r.t.bind(r,994334,23))})),opencl:rD("opencl",(function(){return r.e(82957).then(r.t.bind(r,301719,23))})),openqasm:rD("openqasm",(function(){return r.e(27202).then(r.t.bind(r,483226,23))})),oz:rD("oz",(function(){return r.e(84983).then(r.t.bind(r,541365,23))})),parigp:rD("parigp",(function(){return r.e(49099).then(r.t.bind(r,13917,23))})),parser:rD("parser",(function(){return r.e(50269).then(r.t.bind(r,416203,23))})),pascal:rD("pascal",(function(){return r.e(10204).then(r.t.bind(r,101384,23))})),pascaligo:rD("pascaligo",(function(){return r.e(17735).then(r.t.bind(r,979531,23))})),pcaxis:rD("pcaxis",(function(){return r.e(45424).then(r.t.bind(r,854056,23))})),peoplecode:rD("peoplecode",(function(){return r.e(92310).then(r.t.bind(r,430662,23))})),perl:rD("perl",(function(){return r.e(82795).then(r.t.bind(r,141565,23))})),phpExtras:rD("phpExtras",(function(){return r.e(17645).then(r.t.bind(r,864216,23))})),php:rD("php",(function(){return r.e(92208).then(r.t.bind(r,687642,23))})),phpdoc:rD("phpdoc",(function(){return r.e(58874).then(r.t.bind(r,165546,23))})),plsql:rD("plsql",(function(){return r.e(38584).then(r.t.bind(r,713978,23))})),powerquery:rD("powerquery",(function(){return r.e(4469).then(r.t.bind(r,148839,23))})),powershell:rD("powershell",(function(){return r.e(1719).then(r.t.bind(r,136849,23))})),processing:rD("processing",(function(){return r.e(94753).then(r.t.bind(r,294559,23))})),prolog:rD("prolog",(function(){return r.e(64649).then(r.t.bind(r,658031,23))})),promql:rD("promql",(function(){return r.e(3909).then(r.t.bind(r,844359,23))})),properties:rD("properties",(function(){return r.e(25559).then(r.t.bind(r,925549,23))})),protobuf:rD("protobuf",(function(){return r.e(7261).then(r.t.bind(r,995239,23))})),psl:rD("psl",(function(){return r.e(68565).then(r.t.bind(r,524321,23))})),pug:rD("pug",(function(){return r.e(2272).then(r.t.bind(r,966554,23))})),puppet:rD("puppet",(function(){return r.e(86314).then(r.t.bind(r,387726,23))})),pure:rD("pure",(function(){return r.e(53146).then(r.t.bind(r,788134,23))})),purebasic:rD("purebasic",(function(){return r.e(18884).then(r.t.bind(r,664806,23))})),purescript:rD("purescript",(function(){return r.e(48407).then(r.t.bind(r,405605,23))})),python:rD("python",(function(){return r.e(74150).then(r.t.bind(r,773870,23))})),q:rD("q",(function(){return r.e(96641).then(r.t.bind(r,854809,23))})),qml:rD("qml",(function(){return r.e(66814).then(r.t.bind(r,191724,23))})),qore:rD("qore",(function(){return r.e(66503).then(r.t.bind(r,525549,23))})),qsharp:rD("qsharp",(function(){return r.e(40587).then(r.t.bind(r,535865,23))})),r:rD("r",(function(){return r.e(9450).then(r.t.bind(r,943808,23))})),racket:rD("racket",(function(){return r.e(55254).then(r.t.bind(r,295518,23))})),reason:rD("reason",(function(){return r.e(76959).then(r.t.bind(r,92684,23))})),regex:rD("regex",(function(){return r.e(84165).then(r.t.bind(r,623605,23))})),rego:rD("rego",(function(){return r.e(7765).then(r.t.bind(r,400983,23))})),renpy:rD("renpy",(function(){return r.e(11406).then(r.t.bind(r,423588,23))})),rest:rD("rest",(function(){return r.e(81845).then(r.t.bind(r,756278,23))})),rip:rD("rip",(function(){return r.e(22269).then(r.t.bind(r,44853,23))})),roboconf:rD("roboconf",(function(){return r.e(83750).then(r.t.bind(r,552746,23))})),robotframework:rD("robotframework",(function(){return r.e(2824).then(r.t.bind(r,507068,23))})),ruby:rD("ruby",(function(){return r.e(13440).then(r.t.bind(r,854264,23))})),rust:rD("rust",(function(){return r.e(42674).then(r.t.bind(r,541318,23))})),sas:rD("sas",(function(){return r.e(72331).then(r.t.bind(r,165175,23))})),sass:rD("sass",(function(){return r.e(16458).then(r.t.bind(r,316354,23))})),scala:rD("scala",(function(){return r.e(62266).then(r.t.bind(r,567604,23))})),scheme:rD("scheme",(function(){return r.e(20925).then(r.t.bind(r,245087,23))})),scss:rD("scss",(function(){return r.e(19196).then(r.t.bind(r,772388,23))})),shellSession:rD("shellSession",(function(){return r.e(63514).then(r.t.bind(r,729813,23))})),smali:rD("smali",(function(){return r.e(89536).then(r.t.bind(r,574394,23))})),smalltalk:rD("smalltalk",(function(){return r.e(71191).then(r.t.bind(r,951315,23))})),smarty:rD("smarty",(function(){return r.e(22336).then(r.t.bind(r,365868,23))})),sml:rD("sml",(function(){return r.e(67880).then(r.t.bind(r,542770,23))})),solidity:rD("solidity",(function(){return r.e(5779).then(r.t.bind(r,990969,23))})),solutionFile:rD("solutionFile",(function(){return r.e(17419).then(r.t.bind(r,330230,23))})),soy:rD("soy",(function(){return r.e(63563).then(r.t.bind(r,478035,23))})),sparql:rD("sparql",(function(){return r.e(89523).then(r.t.bind(r,717553,23))})),splunkSpl:rD("splunkSpl",(function(){return r.e(73764).then(r.t.bind(r,573243,23))})),sqf:rD("sqf",(function(){return r.e(48358).then(r.t.bind(r,564364,23))})),sql:rD("sql",(function(){return r.e(44572).then(r.t.bind(r,495422,23))})),squirrel:rD("squirrel",(function(){return r.e(50429).then(r.t.bind(r,530007,23))})),stan:rD("stan",(function(){return r.e(22628).then(r.t.bind(r,117280,23))})),stylus:rD("stylus",(function(){return r.e(70158).then(r.t.bind(r,781758,23))})),swift:rD("swift",(function(){return r.e(99510).then(r.t.bind(r,390657,23))})),systemd:rD("systemd",(function(){return r.e(56309).then(r.t.bind(r,621573,23))})),t4Cs:rD("t4Cs",(function(){return r.e(74970).then(r.t.bind(r,170759,23))})),t4Templating:rD("t4Templating",(function(){return r.e(92279).then(r.t.bind(r,83940,23))})),t4Vb:rD("t4Vb",(function(){return r.e(73792).then(r.t.bind(r,223037,23))})),tap:rD("tap",(function(){return r.e(17495).then(r.t.bind(r,189275,23))})),tcl:rD("tcl",(function(){return r.e(5281).then(r.t.bind(r,230949,23))})),textile:rD("textile",(function(){return r.e(18615).then(r.t.bind(r,377299,23))})),toml:rD("toml",(function(){return r.e(48296).then(r.t.bind(r,784508,23))})),tremor:rD("tremor",(function(){return r.e(43311).then(r.t.bind(r,326329,23))})),tsx:rD("tsx",(function(){return r.e(82757).then(r.t.bind(r,808553,23))})),tt2:rD("tt2",(function(){return r.e(64930).then(r.t.bind(r,971456,23))})),turtle:rD("turtle",(function(){return r.e(70206).then(r.t.bind(r,736322,23))})),twig:rD("twig",(function(){return r.e(3375).then(r.t.bind(r,58145,23))})),typescript:rD("typescript",(function(){return r.e(22585).then(r.t.bind(r,650715,23))})),typoscript:rD("typoscript",(function(){return r.e(74743).then(r.t.bind(r,312777,23))})),unrealscript:rD("unrealscript",(function(){return r.e(67824).then(r.t.bind(r,199296,23))})),uorazor:rD("uorazor",(function(){return r.e(46684).then(r.t.bind(r,207246,23))})),uri:rD("uri",(function(){return r.e(47702).then(r.t.bind(r,712384,23))})),v:rD("v",(function(){return r.e(28462).then(r.t.bind(r,237612,23))})),vala:rD("vala",(function(){return r.e(42374).then(r.t.bind(r,149314,23))})),vbnet:rD("vbnet",(function(){return r.e(95593).then(r.t.bind(r,876357,23))})),velocity:rD("velocity",(function(){return r.e(86817).then(r.t.bind(r,952499,23))})),verilog:rD("verilog",(function(){return r.e(71114).then(r.t.bind(r,120468,23))})),vhdl:rD("vhdl",(function(){return r.e(8330).then(r.t.bind(r,85558,23))})),vim:rD("vim",(function(){return r.e(86660).then(r.t.bind(r,260470,23))})),visualBasic:rD("visualBasic",(function(){return r.e(59638).then(r.t.bind(r,831675,23))})),warpscript:rD("warpscript",(function(){return r.e(37743).then(r.t.bind(r,368549,23))})),wasm:rD("wasm",(function(){return r.e(59416).then(r.t.bind(r,369592,23))})),webIdl:rD("webIdl",(function(){return r.e(58967).then(r.t.bind(r,115250,23))})),wiki:rD("wiki",(function(){return r.e(83660).then(r.t.bind(r,947940,23))})),wolfram:rD("wolfram",(function(){return r.e(53411).then(r.t.bind(r,459058,23))})),wren:rD("wren",(function(){return r.e(73702).then(r.t.bind(r,999210,23))})),xeora:rD("xeora",(function(){return r.e(84911).then(r.t.bind(r,877767,23))})),xmlDoc:rD("xmlDoc",(function(){return r.e(59400).then(r.t.bind(r,845232,23))})),xojo:rD("xojo",(function(){return r.e(98490).then(r.t.bind(r,94254,23))})),xquery:rD("xquery",(function(){return r.e(45852).then(r.t.bind(r,376036,23))})),yaml:rD("yaml",(function(){return r.e(17029).then(r.t.bind(r,982171,23))})),yang:rD("yang",(function(){return r.e(37495).then(r.t.bind(r,688029,23))})),zig:rD("zig",(function(){return r.e(59802).then(r.t.bind(r,31944,23))}))},iD=(oD={loader:function(){return r.e(86943).then(r.t.bind(r,847054,23)).then((function(e){return e.default||e}))},isLanguageRegistered:function(e,t){return e.registered(t)},languageLoaders:nD,registerLanguage:function(e,t,r){return e.register(r)}},sD=oD.loader,cD=oD.isLanguageRegistered,uD=oD.registerLanguage,lD=oD.languageLoaders,dD=oD.noAsyncLoadingLanguages,fD=function(e){function t(){return(0,xj.A)(this,t),function(e,t,r){return t=kj(t),Ij(e,eD()?Reflect.construct(t,r||[],kj(e).constructor):t.apply(e,r))}(this,t,arguments)}return(0,_j.A)(t,e),(0,Sj.A)(t,[{key:"componentDidUpdate",value:function(){!t.isRegistered(this.props.language)&&lD&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var e=this;t.astGeneratorPromise||t.loadAstGenerator(),t.astGenerator||t.astGeneratorPromise.then((function(){e.forceUpdate()})),!t.isRegistered(this.props.language)&&lD&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var e=this,r=this.props.language;"text"!==r&&t.loadLanguage(r).then((function(){return e.forceUpdate()})).catch((function(){}))}},{key:"normalizeLanguage",value:function(e){return t.isSupportedLanguage(e)?e:"text"}},{key:"render",value:function(){return i.createElement(t.highlightInstance,(0,Ej.A)({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:t.astGenerator}))}}],[{key:"preload",value:function(){return t.loadAstGenerator()}},{key:"loadLanguage",value:(r=Cj(Xj().mark((function e(r){var n;return Xj().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(n=lD[r])){e.next=5;break}return e.abrupt("return",n(t.registerLanguage));case 5:throw new Error("Language ".concat(r," not supported"));case 6:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"isSupportedLanguage",value:function(e){return t.isRegistered(e)||"function"==typeof lD[e]}},{key:"loadAstGenerator",value:function(){return t.astGeneratorPromise=sD().then((function(e){t.astGenerator=e,uD&&t.languages.forEach((function(t,r){return uD(e,r,t)}))})),t.astGeneratorPromise}}]);var r}(i.PureComponent),aD=fD,Mj(fD,"astGenerator",null),Mj(fD,"highlightInstance",$j(null,{})),Mj(fD,"astGeneratorPromise",null),Mj(fD,"languages",new Map),Mj(fD,"supportedLanguages",oD.supportedLanguages||Object.keys(lD||{})),Mj(fD,"isRegistered",(function(e){if(dD)return!0;if(!uD)throw new Error("Current syntax highlighter doesn't support registration of languages");return aD.astGenerator?cD(aD.astGenerator,e):aD.languages.has(e)})),Mj(fD,"registerLanguage",(function(e,t){if(!uD)throw new Error("Current syntax highlighter doesn't support registration of languages");if(aD.astGenerator)return uD(aD.astGenerator,e,t);aD.languages.set(e,t)})),fD);var oD,aD,sD,cD,uD,lD,dD,fD;function hD(e){var t=e;return function(e){var r=function(e){return{mode:"light",...null==e?void 0:e.theme}}(e);let n=r.mode;return t[n]}}const pD=e=>{const t={theme:e};return{lineNumberColor:hD({light:"#383a42",dark:"#abb2bf"})(t),lineNumberBgColor:hD({light:"#fafafa",dark:"#282c34"})(t),backgroundColor:hD({light:"#fafafa",dark:"#282c34"})(t),textColor:hD({light:"#383a42",dark:"#abb2bf"})(t),substringColor:hD({light:"#e45649",dark:"#e06c75"})(t),keywordColor:hD({light:"#a626a4",dark:"#c678dd"})(t),attributeColor:hD({light:"#50a14f",dark:"#98c379"})(t),selectorAttributeColor:hD({light:"#e45649",dark:"#e06c75"})(t),docTagColor:hD({light:"#a626a4",dark:"#c678dd"})(t),nameColor:hD({light:"#e45649",dark:"#e06c75"})(t),builtInColor:hD({light:"#c18401",dark:"#e6c07b"})(t),literalColor:hD({light:"#0184bb",dark:"#56b6c2"})(t),bulletColor:hD({light:"#4078f2",dark:"#61aeee"})(t),codeColor:hD({light:"#383a42",dark:"#abb2bf"})(t),additionColor:hD({light:"#50a14f",dark:"#98c379"})(t),regexpColor:hD({light:"#50a14f",dark:"#98c379"})(t),symbolColor:hD({light:"#4078f2",dark:"#61aeee"})(t),variableColor:hD({light:"#986801",dark:"#d19a66"})(t),templateVariableColor:hD({light:"#986801",dark:"#d19a66"})(t),linkColor:hD({light:"#4078f2",dark:"#61aeee"})(t),selectorClassColor:hD({light:"#986801",dark:"#d19a66"})(t),typeColor:hD({light:"#986801",dark:"#d19a66"})(t),stringColor:hD({light:"#50a14f",dark:"#98c379"})(t),selectorIdColor:hD({light:"#4078f2",dark:"#61aeee"})(t),quoteColor:hD({light:"#a0a1a7",dark:"#5c6370"})(t),templateTagColor:hD({light:"#383a42",dark:"#abb2bf"})(t),deletionColor:hD({light:"#e45649",dark:"#e06c75"})(t),titleColor:hD({light:"#4078f2",dark:"#61aeee"})(t),sectionColor:hD({light:"#e45649",dark:"#e06c75"})(t),commentColor:hD({light:"#a0a1a7",dark:"#5c6370"})(t),metaKeywordColor:hD({light:"#383a42",dark:"#abb2bf"})(t),metaColor:hD({light:"#4078f2",dark:"#61aeee"})(t),functionColor:hD({light:"#383a42",dark:"#abb2bf"})(t),numberColor:hD({light:"#986801",dark:"#d19a66"})(t)}},gD="inherit",mD="inherit",yD={fontSize:mD,fontFamily:gD,lineHeight:20/12,padding:8},bD=e=>({fontSize:mD,lineHeight:20/14,color:e.lineNumberColor,backgroundColor:e.lineNumberBgColor,flexShrink:0,padding:8,textAlign:"right",userSelect:"none"}),vD=e=>({key:{color:e.keywordColor,fontWeight:"bolder"},keyword:{color:e.keywordColor,fontWeight:"bolder"},"attr-name":{color:e.attributeColor},selector:{color:e.selectorTagColor},comment:{color:e.commentColor,fontFamily:gD,fontStyle:"italic"},"block-comment":{color:e.commentColor,fontFamily:gD,fontStyle:"italic"},"function-name":{color:e.sectionColor},"class-name":{color:e.sectionColor},doctype:{color:e.docTagColor},substr:{color:e.substringColor},namespace:{color:e.nameColor},builtin:{color:e.builtInColor},entity:{color:e.literalColor},bullet:{color:e.bulletColor},code:{color:e.codeColor},addition:{color:e.additionColor},regex:{color:e.regexpColor},symbol:{color:e.symbolColor},variable:{color:e.variableColor},url:{color:e.linkColor},"selector-attr":{color:e.selectorAttributeColor},"selector-pseudo":{color:e.selectorPseudoColor},type:{color:e.typeColor},string:{color:e.stringColor},quote:{color:e.quoteColor},tag:{color:e.templateTagColor},deletion:{color:e.deletionColor},title:{color:e.titleColor},section:{color:e.sectionColor},"meta-keyword":{color:e.metaKeywordColor},meta:{color:e.metaColor},italic:{fontStyle:"italic"},bold:{fontWeight:"bolder"},function:{color:e.functionColor},number:{color:e.numberColor}}),wD=e=>({fontSize:mD,fontFamily:gD,background:e.backgroundColor,color:e.textColor,borderRadius:3,display:"flex",lineHeight:20/14,overflowX:"auto",whiteSpace:"pre"}),AD=e=>({'pre[class*="language-"]':wD(e),...vD(e)}),CD=e=>({'pre[class*="language-"]':{...wD(e),padding:"2px 4px",display:"inline",whiteSpace:"pre-wrap"},...vD(e)});function ED(e={mode:"light"}){const t={...pD(e),...e};return{lineNumberContainerStyle:bD(t),codeBlockStyle:AD(t),inlineCodeStyle:CD(t),codeContainerStyle:yD}}const xD=Object.freeze([{name:"PHP",alias:["php","php3","php4","php5"],value:"php"},{name:"Java",alias:["java"],value:"java"},{name:"CSharp",alias:["csharp","c#","cs"],value:"csharp"},{name:"Python",alias:["python","py"],value:"python"},{name:"JavaScript",alias:["javascript","js"],value:"javascript"},{name:"XML",alias:["xml"],value:"xml"},{name:"HTML",alias:["html","htm"],value:"markup"},{name:"C++",alias:["c++","cpp","clike"],value:"cpp"},{name:"Ruby",alias:["ruby","rb","duby"],value:"ruby"},{name:"Objective-C",alias:["objective-c","objectivec","obj-c","objc"],value:"objectivec"},{name:"C",alias:["c"],value:"cpp"},{name:"Swift",alias:["swift"],value:"swift"},{name:"TeX",alias:["tex","latex"],value:"tex"},{name:"Shell",alias:["shell","sh","ksh","zsh"],value:"bash"},{name:"Scala",alias:["scala"],value:"scala"},{name:"Go",alias:["go"],value:"go"},{name:"ActionScript",alias:["actionscript","actionscript3","as"],value:"actionscript"},{name:"ColdFusion",alias:["coldfusion"],value:"xml"},{name:"JavaFX",alias:["javafx","jfx"],value:"java"},{name:"VbNet",alias:["vbnet","vb.net"],value:"vbnet"},{name:"JSON",alias:["json"],value:"json"},{name:"MATLAB",alias:["matlab"],value:"matlab"},{name:"Groovy",alias:["groovy"],value:"groovy"},{name:"SQL",alias:["sql","postgresql","postgres","plpgsql","psql","postgresql-console","postgres-console","tsql","t-sql","mysql","sqlite"],value:"sql"},{name:"R",alias:["r"],value:"r"},{name:"Perl",alias:["perl","pl"],value:"perl"},{name:"Lua",alias:["lua"],value:"lua"},{name:"Delphi",alias:["delphi","pas","pascal","objectpascal"],value:"delphi"},{name:"XML",alias:["xml"],value:"xml"},{name:"TypeScript",alias:["typescript","ts","tsx"],value:"typescript"},{name:"CoffeeScript",alias:["coffeescript","coffee-script","coffee"],value:"coffeescript"},{name:"Haskell",alias:["haskell","hs"],value:"haskell"},{name:"Puppet",alias:["puppet"],value:"puppet"},{name:"Arduino",alias:["arduino"],value:"arduino"},{name:"Fortran",alias:["fortran"],value:"fortran"},{name:"Erlang",alias:["erlang","erl"],value:"erlang"},{name:"PowerShell",alias:["powershell","posh","ps1","psm1"],value:"powershell"},{name:"Haxe",alias:["haxe","hx","hxsl"],value:"haxe"},{name:"Elixir",alias:["elixir","ex","exs"],value:"elixir"},{name:"Verilog",alias:["verilog","v"],value:"verilog"},{name:"Rust",alias:["rust"],value:"rust"},{name:"VHDL",alias:["vhdl"],value:"vhdl"},{name:"Sass",alias:["sass"],value:"less"},{name:"OCaml",alias:["ocaml"],value:"ocaml"},{name:"Dart",alias:["dart"],value:"dart"},{name:"CSS",alias:["css"],value:"css"},{name:"reStructuredText",alias:["restructuredtext","rst","rest"],value:"rest"},{name:"ObjectPascal",alias:["objectpascal"],value:"delphi"},{name:"Kotlin",alias:["kotlin"],value:"kotlin"},{name:"D",alias:["d"],value:"d"},{name:"Octave",alias:["octave"],value:"matlab"},{name:"QML",alias:["qbs","qml"],value:"qml"},{name:"Prolog",alias:["prolog"],value:"prolog"},{name:"FoxPro",alias:["foxpro","vfp","clipper","xbase"],value:"vbnet"},{name:"Scheme",alias:["scheme","scm"],value:"scheme"},{name:"CUDA",alias:["cuda","cu"],value:"cpp"},{name:"Julia",alias:["julia","jl"],value:"julia"},{name:"Racket",alias:["racket","rkt"],value:"lisp"},{name:"Ada",alias:["ada","ada95","ada2005"],value:"ada"},{name:"Tcl",alias:["tcl"],value:"tcl"},{name:"Mathematica",alias:["mathematica","mma","nb"],value:"mathematica"},{name:"Autoit",alias:["autoit"],value:"autoit"},{name:"StandardML",alias:["standardmL","sml","standardml"],value:"sml"},{name:"Objective-J",alias:["objective-j","objectivej","obj-j","objj"],value:"objectivec"},{name:"Smalltalk",alias:["smalltalk","squeak","st"],value:"smalltalk"},{name:"Vala",alias:["vala","vapi"],value:"vala"},{name:"ABAP",alias:["abap"],value:"sql"},{name:"LiveScript",alias:["livescript","live-script"],value:"livescript"},{name:"XQuery",alias:["xquery","xqy","xq","xql","xqm"],value:"xquery"},{name:"PlainText",alias:["text","plaintext"],value:"text"},{name:"Yaml",alias:["yaml","yml"],value:"yaml"},{name:"GraphQL",alias:["graphql","gql"],value:"graphql"}]);class SD extends i.PureComponent{constructor(){super(...arguments),this._isMounted=!1}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}getLineOpacity(e){if(!this.props.highlight)return 1;const t=this.props.highlight.split(",").map((e=>{if(e.indexOf("-")>0){const[t,r]=e.split("-").map(Number).sort();return Array(r+1).fill(void 0).map(((e,t)=>t)).slice(t,r+1)}return Number(e)})).reduce(((e,t)=>e.concat(t)),[]);return 0===t.length||t.includes(e)?1:.3}render(){const{inlineCodeStyle:e}=ED(this.props.theme),t=(e=>{if(!e)return"";const t=xD.find((t=>t.name===e||t.alias.includes(e)));return t?t.value:e||"text"})(this.props.language),r={language:t,PreTag:this.props.preTag,style:this.props.codeStyle||e,showLineNumbers:this.props.showLineNumbers,startingLineNumber:this.props.startingLineNumber,codeTagProps:this.props.codeTagProps,wrapLongLines:this.props.wrapLongLines};return i.createElement(iD,Object.assign({},r,{wrapLines:!!this.props.highlight,customStyle:this.props.customStyle,lineProps:e=>({style:{opacity:this.getLineOpacity(e),...this.props.lineNumberContainerStyle}})}),this.props.text)}}SD.defaultProps={theme:{},showLineNumbers:!1,wrapLongLines:!1,startingLineNumber:1,lineNumberContainerStyle:{},codeTagProps:{},preTag:"span",highlight:"",customStyle:{}};const ID="text";class kD extends i.PureComponent{constructor(){super(...arguments),this._isMounted=!1,this.handleCopy=e=>{const t=e.nativeEvent.clipboardData;if(t){e.preventDefault();const r=window.getSelection();if(null===r)return;const n=r.toString(),i=`
${n}
`;t.clearData(),t.setData("text/html",i),t.setData("text/plain",n)}}}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}render(){var e,t,r,n;const{lineNumberContainerStyle:o,codeBlockStyle:a,codeContainerStyle:s}=ED(this.props.theme),c={language:this.props.language||ID,codeStyle:{...a,...null===(e=this.props)||void 0===e?void 0:e.codeBlockStyle},customStyle:null===(t=this.props)||void 0===t?void 0:t.customStyle,showLineNumbers:this.props.showLineNumbers,startingLineNumber:this.props.startingLineNumber,codeTagProps:{style:{...s,...null===(r=this.props)||void 0===r?void 0:r.codeContainerStyle}},lineNumberContainerStyle:{...o,...null===(n=this.props)||void 0===n?void 0:n.lineNumberContainerStyle},text:this.props.text.toString(),highlight:this.props.highlight,wrapLongLines:this.props.wrapLongLines};return i.createElement(SD,Object.assign({},c))}}kD.displayName="CodeBlock",kD.defaultProps={text:"",showLineNumbers:!0,wrapLongLines:!1,startingLineNumber:1,language:ID,theme:{},highlight:"",lineNumberContainerStyle:{},customStyle:{},codeBlockStyle:{}};const _D=({size:e,color:t,...r})=>i.createElement("svg",Object.assign({},r,{viewBox:"0 0 384 512",width:e,height:e,fill:t}),i.createElement("path",{d:"M280 240H168c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zm0 96H168c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zM112 232c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 48c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm144 408c0 4.4-3.6 8-8 8H56c-4.4 0-8-3.6-8-8V120c0-4.4 3.6-8 8-8h40v32c0 8.8 7.2 16 16 16h160c8.8 0 16-7.2 16-16v-32h40c4.4 0 8 3.6 8 8v336z"}));_D.displayName="ClipboardListIcon",_D.defaultProps={size:"16pt",color:"currentcolor"};const TD=({size:e,color:t,...r})=>i.createElement("svg",Object.assign({},r,{viewBox:"0 0 384 512",width:e,height:e,fill:t}),i.createElement("path",{d:"M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm121.2 231.8l-143 141.8c-4.7 4.7-12.3 4.6-17-.1l-82.6-83.3c-4.7-4.7-4.6-12.3.1-17L99.1 285c4.7-4.7 12.3-4.6 17 .1l46 46.4 106-105.2c4.7-4.7 12.3-4.6 17 .1l28.2 28.4c4.7 4.8 4.6 12.3-.1 17z"}));function MD({size:e,color:t,copied:r,...n}){return r?i.createElement(TD,Object.assign({},{color:t,size:e},n)):i.createElement(_D,Object.assign({},{color:t,size:e},n))}TD.displayName="ClipboardCheckIcon",TD.defaultProps={size:"16pt",color:"currentcolor"};const PD=()=>{const[e,t]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{t(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))}),[]),{isBrowser:e,isServer:!e}},jD=e=>{const t=document.createElement("div");return t.setAttribute("id",e),t},DD=(e=(()=>Math.random().toString(32).slice(2,10))())=>{const t=`zeit-ui-${e}`,{isBrowser:r}=PD(),[n,o]=(0,i.useState)(r?jD(t):null);return(0,i.useEffect)((()=>{const e=document.querySelector(`#${t}`),r=e||jD(t);e||document.body.appendChild(r),o(r)}),[]),n},OD={},BD={onError:()=>((e,t)=>{const r=`[Zeit UI]${t?` [${t}]`:" "}: ${e}`;"undefined"!=typeof console&&(OD[r]||(OD[r]=!0,console.warn(r)))})("Failed to copy.","use-clipboard")},ND=(e=BD)=>{const t=DD("clipboard"),r=(0,i.useCallback)((r=>{((t,r)=>{if(!t||!r)return;const n=window.getSelection();if(!n)return;t.style.whiteSpace="pre",t.textContent=r;const i=window.document.createRange();n.removeAllRanges(),i.selectNode(t),n.addRange(i);try{window.document.execCommand("copy")}catch($R){e.onError&&e.onError()}n.removeAllRanges(),t&&(t.textContent="")})(t,r)}),[t]);return{copy:r}},RD=o.Ay.button` position: absolute; top: 0.5em; @@ -76,4 +76,4 @@ .copy:hover { opacity: 0.7; } -`;var zD={lineNumberColor:"#6272a4",lineNumberBgColor:"#282a36",backgroundColor:"#282a36",textColor:"#f8f8f2",substringColor:"#f1fa8c",keywordColor:"#ff79c6",attributeColor:"#50fa7b",selectorTagColor:"#8be9fd",docTagColor:"#f1fa8c",nameColor:"#66d9ef",builtInColor:"#50fa7b",literalColor:"#FF79C6",bulletColor:"#8BE9FD",codeColor:"#50FA7B",additionColor:"#f1fa8c",regexpColor:"#F1FA8C",symbolColor:"#F1FA8C",variableColor:"#F8F8F2",templateVariableColor:"#FF79C6",linkColor:"#00bcd4",selectorAttributeColor:"#FF79C6",selectorPseudoColor:"#FF79C6",typeColor:"#8BE9FD",stringColor:"#F1FA8C",selectorIdColor:"#50FA7B",selectorClassColor:"#50FA7B",quoteColor:"#E9F284",templateTagColor:"#FF79C6",deletionColor:"#FF79C6",titleColor:"#ff555580",sectionColor:"#F8F8F2",commentColor:"#6272A4",metaKeywordColor:"#50FA7B",metaColor:"#50FA7B",functionColor:"#50FA7B",numberColor:"#bd93f9"},HD="https://platform.twitter.com/widgets.js",VD="createTweet",KD=function(e){var t=i.useRef(null),n=i.useState(!0),o=n[0],a=n[1];return i.useEffect((function(){var n=!0;return r(62491)(HD,"twitter-embed",(function(){if(window.twttr){if(n){if(!window.twttr.widgets[VD])return void console.error("Method "+VD+" is not present anymore in twttr.widget api");window.twttr.widgets[VD](e.tweetId,null==t?void 0:t.current,e.options).then((function(t){a(!1),e.onLoad&&e.onLoad(t)}))}}else console.error("Failure to load window.twttr, aborting load")})),function(){n=!1}}),[]),i.createElement(i.Fragment,null,o&&i.createElement(i.Fragment,null,e.placeholder),i.createElement("div",{ref:t}))},GD=r(796710),qD=r(498957),QD=r.n(qD);const WD={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let JD;const YD=new Uint8Array(16);function ZD(){if(!JD&&(JD="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!JD))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return JD(YD)}var $D=r(338823);const XD=function(e,t,r){if(WD.randomUUID&&!t&&!e)return WD.randomUUID();const n=(e=e||{}).random||(e.rng||ZD)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return(0,$D.k)(n)};function eO(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function tO(e,t,r){return(t=eO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}r(369085);const nO=e=>(t,r,n)=>{const i=n.subscribe;n.subscribe=(e,t,r)=>{let o=e;if(t){const i=(null==r?void 0:r.equalityFn)||Object.is;let a=e(n.getState());o=r=>{const n=e(r);if(!i(a,n)){const e=a;t(a=n,e)}},(null==r?void 0:r.fireImmediately)&&t(a,a)}return i(o)};return e(t,r,n)};function iO(e,t){let r;try{r=e()}catch(i){return}const n={getItem:e=>{var n;const i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(n=r.getItem(e))?n:null;return o instanceof Promise?o.then(i):i(o)},setItem:(e,n)=>r.setItem(e,JSON.stringify(n,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)};return n}const oO=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then:e=>oO(e)(r),catch(e){return this}}}catch($R){return{then(e){return this},catch:t=>oO(t)($R)}}},aO=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(r,n,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,c=new Set;let u;try{u=o.getStorage()}catch(m){}if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...e)}),n,i);const l=oO(o.serialize),d=()=>{const e=o.partialize({...n()});let t;const r=l({state:e,version:o.version}).then((e=>u.setItem(o.name,e))).catch((e=>{t=e}));if(t)throw t;return r},f=i.setState;i.setState=(e,t)=>{f(e,t),d()};const h=e(((...e)=>{r(...e),d()}),n,i);let p;const g=()=>{var e;if(!u)return;a=!1,s.forEach((e=>e(n())));const t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,n()))||void 0;return oO(u.getItem.bind(u))(o.name).then((e=>{if(e)return o.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return p=o.merge(e,null!=(t=n())?t:h),r(p,!0),d()})).then((()=>{null==t||t(p,void 0),a=!0,c.forEach((e=>e(p)))})).catch((e=>{null==t||t(void 0,e)}))};return i.persist={setOptions:e=>{o={...o,...e},e.getStorage&&(u=e.getStorage())},clearStorage:()=>{null==u||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>g(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},g(),p||h})(e,t)):((e,t)=>(r,n,i)=>{let o={storage:iO((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,c=new Set;let u=o.storage;if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...e)}),n,i);const l=()=>{const e=o.partialize({...n()});return u.setItem(o.name,{state:e,version:o.version})},d=i.setState;i.setState=(e,t)=>{d(e,t),l()};const f=e(((...e)=>{r(...e),l()}),n,i);let h;i.getInitialState=()=>f;const p=()=>{var e,t;if(!u)return;a=!1,s.forEach((e=>{var t;return e(null!=(t=n())?t:f)}));const i=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=n())?e:f))||void 0;return oO(u.getItem.bind(u))(o.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return[!1,e.state];if(o.migrate)return[!0,o.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]})).then((e=>{var t;const[i,a]=e;if(h=o.merge(a,null!=(t=n())?t:f),r(h,!0),i)return l()})).then((()=>{null==i||i(h,void 0),h=n(),a=!0,c.forEach((e=>e(h)))})).catch((e=>{null==i||i(void 0,e)}))};return i.persist={setOptions:e=>{o={...o,...e},e.storage&&(u=e.storage)},clearStorage:()=>{null==u||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>p(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},o.skipHydration||p(),h||f})(e,t),sO=e=>{let t;const r=new Set,n=(e,n)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach((r=>r(t,e)))}},i=()=>t,o={setState:n,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},a=t=e(n,i,o);return o},cO=e=>e?sO(e):sO;const uO={getItem:e=>"",setItem:(e,t)=>{},removeItem:e=>{}};function lO({storage:e=uO,key:t="livepeer"}){return{getItem:async(r,n=null)=>{try{const i=await e.getItem(`${t}.${r}`);return i?JSON.parse(i):n}catch(ys){return console.warn(ys),n}},setItem:async(r,n)=>{if(null===n)await e.removeItem(`${t}.${r}`);else try{await e.setItem(`${t}.${r}`,JSON.stringify(n))}catch(i){console.error(i)}},removeItem:async r=>e.removeItem(`${t}.${r}`)}}class dO{constructor({provider:e,storage:t=lO({})}){this.store=cO(nO(aO((()=>({provider:e()})),{name:"livepeer-store",storage:iO((()=>t)),partialize:e=>({}),version:1}))),this.config={provider:e,storage:t},this.storage=t}get error(){return this.store.getState().error}get provider(){return this.store.getState().provider}get subscribe(){return this.store.subscribe}setState(e){const t="function"==typeof e?e(this.store.getState()):e;this.store.setState(t,!0)}clearState(){this.setState((e=>({...e,data:void 0,error:void 0})))}async destroy(){this.clearState(),this.store.destroy()}}let fO=null;function hO(e){const t=new dO(e);return fO=t,t}const pO=()=>{};function gO(e,{interval:t=1e3,onError:r=pO}={}){if("function"!=typeof e)throw new Error("argument is not function.");let n,i=!1,o=0,a=null;const s=async()=>{if(a){const t=a;a=null;try{i=!0,await e(...t)}catch(ys){r(ys)}finally{o=Date.now(),i=!1}}},c=async()=>{clearTimeout(n),n=setTimeout((()=>{i?c():s()}),t)};return(...e)=>{a=e;const r=Date.now()-oTO(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t))}function SO(e,t){return IO(e,t)}function IO(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((r=>!IO(e[r],t[r]))))}function kO(e,t){if(e===t)return e;const r=_O(e)&&_O(t);if(r||TO(e)&&TO(t)){const n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),o=i.length,a=r?[]:{};let s=0;for(let c=0;c{setTimeout(t,e)}))}function DO(e){jO(0).then(e)}function OO(e,t,r){return null!=r.isDataEqual&&r.isDataEqual(e,t)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?kO(e,t):t}const BO=console;const NO=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()};const i=n=>{t?e.push(n):DO((()=>{r(n)}))},o=()=>{const t=e;e=[],t.length&&DO((()=>{n((()=>{t.forEach((e=>{r(e)}))}))}))};return{batch:e=>{let r;t++;try{r=e()}finally{t--,t||o()}return r},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e}}}();class RO{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const LO=new class extends RO{constructor(){super(),this.setup=e=>{if(!yO&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},FO=["online","offline"];const UO=new class extends RO{constructor(){super(),this.setup=e=>{if(!yO&&window.addEventListener){const t=()=>e();return FO.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{FO.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function zO(e){return Math.min(1e3*2**e,3e4)}function HO(e){return"online"!==(null!=e?e:"online")||UO.isOnline()}class VO{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function KO(e){return e instanceof VO}function GO(e){let t,r,n,i=!1,o=0,a=!1;const s=new Promise(((e,t)=>{r=e,n=t})),c=()=>!LO.isFocused()||"always"!==e.networkMode&&!UO.isOnline(),u=n=>{a||(a=!0,null==e.onSuccess||e.onSuccess(n),null==t||t(),r(n))},l=r=>{a||(a=!0,null==e.onError||e.onError(r),null==t||t(),n(r))},d=()=>new Promise((r=>{t=e=>{const t=a||!c();return t&&r(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,a||null==e.onContinue||e.onContinue()})),f=()=>{if(a)return;let t;try{t=e.fn()}catch(ys){t=Promise.reject(ys)}Promise.resolve(t).then(u).catch((t=>{var r,n;if(a)return;const s=null!=(r=e.retry)?r:3,u=null!=(n=e.retryDelay)?n:zO,h="function"==typeof u?u(o,t):u,p=!0===s||"number"==typeof s&&o{if(c())return d()})).then((()=>{i?l(t):f()}))):l(t)}))};return HO(e.networkMode)?f():d().then(f),{promise:s,cancel:t=>{a||(l(new VO(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}class qO{destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.cacheTime)&&e>=0&&e!==1/0&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:yO?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class QO extends qO{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||BO,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const r=OO(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(bO).catch(bO):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,n;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);const o=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};s(a);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(s(c),null==(r=this.options.behavior)||r.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(n=c.fetchOptions)?void 0:n.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,r,n,i;(KO(e)&&e.silent||this.dispatch({type:"error",error:e}),KO(e))||(null==(t=(r=this.cache.config).onError)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=GO({fn:c.fetchFn,abort:null==o?void 0:o.abort.bind(o),onSuccess:e=>{var t,r,n,i;void 0!==e?(this.setData(e),null==(t=(r=this.cache.config).onSuccess)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):l(new Error(this.queryHash+" data is undefined"))},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var r,n;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:HO(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(n=e.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return KO(i)&&i.revert&&this.revertState?{...this.revertState}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),NO.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class WO extends RO{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var n;const i=t.queryKey,o=null!=(n=t.queryHash)?n:EO(i,t);let a=this.get(o);return a||(a=new QO({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){NO.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[r]=wO(e,t);return void 0===r.exact&&(r.exact=!0),this.queries.find((e=>AO(r,e)))}findAll(e,t){const[r]=wO(e,t);return Object.keys(r).length>0?this.queries.filter((e=>AO(r,e))):this.queries}notify(e){NO.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){NO.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){NO.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class JO extends qO{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||BO,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=GO({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var r,n,i,o,a,s,c,u;if(!t){var l,d,f,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(d=this.mutationCache.config).onMutate)?void 0:l.call(d,this.state.variables,this));const e=await(null==(f=(h=this.options).onMutate)?void 0:f.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const p=await e();return await(null==(r=(n=this.mutationCache.config).onSuccess)?void 0:r.call(n,p,this.state.variables,this.state.context,this)),await(null==(i=(o=this.options).onSuccess)?void 0:i.call(o,p,this.state.variables,this.state.context)),await(null==(a=(s=this.mutationCache.config).onSettled)?void 0:a.call(s,p,null,this.state.variables,this.state.context,this)),await(null==(c=(u=this.options).onSettled)?void 0:c.call(u,p,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:p}),p}catch(ys){try{var p,g,m,y,b,v,w,A;throw await(null==(p=(g=this.mutationCache.config).onError)?void 0:p.call(g,ys,this.state.variables,this.state.context,this)),await(null==(m=(y=this.options).onError)?void 0:m.call(y,ys,this.state.variables,this.state.context)),await(null==(b=(v=this.mutationCache.config).onSettled)?void 0:b.call(v,void 0,ys,this.state.variables,this.state.context,this)),await(null==(w=(A=this.options).onSettled)?void 0:w.call(A,void 0,ys,this.state.variables,this.state.context)),ys}finally{this.dispatch({type:"error",error:ys})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!HO(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),NO.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}class YO extends RO{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){const n=new JO({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){NO.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>CO(e,t)))}findAll(e){return this.mutations.filter((t=>CO(e,t)))}notify(e){NO.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return NO.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(bO)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function ZO(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,i,o,a;const s=null==(t=e.fetchOptions)||null==(r=t.meta)?void 0:r.refetchPage,c=null==(n=e.fetchOptions)||null==(i=n.meta)?void 0:i.fetchMore,u=null==c?void 0:c.pageParam,l="forward"===(null==c?void 0:c.direction),d="backward"===(null==c?void 0:c.direction),f=(null==(o=e.state.data)?void 0:o.pages)||[],h=(null==(a=e.state.data)?void 0:a.pageParams)||[];let p=h,g=!1;const m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,r,n)=>(p=n?[t,...p]:[...p,t],n?[r,...e]:[...e,r]),b=(t,r,n,i)=>{if(g)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:n,meta:e.options.meta};var a;a=o,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>{var t,r;return null!=(t=e.signal)&&t.aborted?g=!0:null==(r=e.signal)||r.addEventListener("abort",(()=>{g=!0})),e.signal}});const s=m(o),c=Promise.resolve(s).then((e=>y(t,n,e,i)));return c};let v;if(f.length)if(l){const t=void 0!==u,r=t?u:$O(e.options,f);v=b(f,t,r)}else if(d){const t=void 0!==u,r=t?u:XO(e.options,f);v=b(f,t,r,!0)}else{p=[];const t=void 0===e.options.getNextPageParam;v=!s||!f[0]||s(f[0],0,f)?b([],t,h[0]):Promise.resolve(y([],h[0],f[0]));for(let r=1;r{if(!s||!f[r]||s(f[r],r,f)){const i=t?h[r]:$O(e.options,n);return b(n,t,i)}return Promise.resolve(y(n,h[r],f[r]))}))}else v=b([]);return v.then((e=>({pages:e,pageParams:p})))}}}}function $O(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function XO(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}class eB{constructor(e={}){this.queryCache=e.queryCache||new WO,this.mutationCache=e.mutationCache||new YO,this.logger=e.logger||BO,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=LO.subscribe((()=>{LO.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=UO.subscribe((()=>{UO.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[r]=wO(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data}ensureQueryData(e,t,r){const n=vO(e,t,r),i=this.getQueryData(n.queryKey);return i?Promise.resolve(i):this.fetchQuery(n)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,r){const n=this.queryCache.find(e),i=function(e,t){return"function"==typeof e?e(t):e}(t,null==n?void 0:n.state.data);if(void 0===i)return;const o=vO(e),a=this.defaultQueryOptions(o);return this.queryCache.build(this,a).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return NO.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,r)]))))}getQueryState(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state}removeQueries(e,t){const[r]=wO(e,t),n=this.queryCache;NO.batch((()=>{n.findAll(r).forEach((e=>{n.remove(e)}))}))}resetQueries(e,t,r){const[n,i]=wO(e,t,r),o=this.queryCache,a={type:"active",...n};return NO.batch((()=>(o.findAll(n).forEach((e=>{e.reset()})),this.refetchQueries(a,i))))}cancelQueries(e,t,r){const[n,i={}]=wO(e,t,r);void 0===i.revert&&(i.revert=!0);const o=NO.batch((()=>this.queryCache.findAll(n).map((e=>e.cancel(i)))));return Promise.all(o).then(bO).catch(bO)}invalidateQueries(e,t,r){const[n,i]=wO(e,t,r);return NO.batch((()=>{var e,t;if(this.queryCache.findAll(n).forEach((e=>{e.invalidate()})),"none"===n.refetchType)return Promise.resolve();const r={...n,type:null!=(e=null!=(t=n.refetchType)?t:n.type)?e:"active"};return this.refetchQueries(r,i)}))}refetchQueries(e,t,r){const[n,i]=wO(e,t,r),o=NO.batch((()=>this.queryCache.findAll(n).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:n.refetchPage}})}))));let a=Promise.all(o).then(bO);return null!=i&&i.throwOnError||(a=a.catch(bO)),a}fetchQuery(e,t,r){const n=vO(e,t,r),i=this.defaultQueryOptions(n);void 0===i.retry&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(bO).catch(bO)}fetchInfiniteQuery(e,t,r){const n=vO(e,t,r);return n.behavior=ZO(),this.fetchQuery(n)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(bO).catch(bO)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const r=this.queryDefaults.find((t=>xO(e)===xO(t.queryKey)));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>SO(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const r=this.mutationDefaults.find((t=>xO(e)===xO(t.mutationKey)));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>SO(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=EO(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}function tB(e){return e.state.isPaused}function rB(e){return"success"===e.state.status}function nB(e,t={}){const r=[],n=[];if(!1!==t.dehydrateMutations){const n=t.shouldDehydrateMutation||tB;e.getMutationCache().getAll().forEach((e=>{n(e)&&r.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))}))}if(!1!==t.dehydrateQueries){const r=t.shouldDehydrateQuery||rB;e.getQueryCache().getAll().forEach((e=>{r(e)&&n.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))}))}return{mutations:r,queries:n}}function iB(e,t,r){if("object"!=typeof t||null===t)return;const n=e.getMutationCache(),i=e.getQueryCache(),o=t.mutations||[],a=t.queries||[];o.forEach((t=>{var i;n.build(e,{...null==r||null==(i=r.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)})),a.forEach((t=>{var n;const o=i.get(t.queryHash),a={...t.state,fetchStatus:"idle"};o?o.state.dataUpdatedAtr,s=o.buster!==n;a||s?t.removeClient():iB(e,o.clientState,i)}else t.removeClient()}catch(o){t.removeClient()}}(e).then((()=>{r||(t=function(e){const t=e.queryClient.getQueryCache().subscribe((t=>{aB(t.type)&&sB(e)})),r=e.queryClient.getMutationCache().subscribe((t=>{aB(t.type)&&sB(e)}));return()=>{t(),r()}}(e))}));return[()=>{r=!0,null==t||t()},n]}function uB(e){try{return JSON.parse(e)}catch($R){return{}}}function lB(e,t){return e.slice(0,t).join(".")||"."}function dB(e,t){const{length:r}=e;for(let n=0;nnew eB({defaultOptions:{queries:{cacheTime:864e5,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}});function pB({queryClient:e=hB(),...t}){const r=hO(t),n=t?.storage?(({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:r=1e3,serialize:n=JSON.stringify,deserialize:i=JSON.parse,retry:o})=>{if(e){const a=async r=>{try{return void await e.setItem(t,n(r))}catch(ys){return ys}};return{persistClient:gO((async e=>{let t=e,r=await a(t),n=0;for(;r&&t;)n++,t=await(null==o?void 0:o({persistedClient:t,error:r,errorCount:n})),t&&(r=await a(t))}),{interval:r}),restoreClient:async()=>{const r=await e.getItem(t);if(r)return i(r)},removeClient:()=>e.removeItem(t)}}return{persistClient:mO,restoreClient:()=>Promise.resolve(void 0),removeClient:mO}})({key:"livepeer.cache",storage:t.storage,serialize:fB,deserialize:uB}):void 0;return n&&cB({queryClient:e,persister:n,dehydrateOptions:{shouldDehydrateQuery:e=>0!==e.cacheTime}}),Object.assign(r,{queryClient:e})}function gB(e){var t=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return pB(function(e){for(var t=1;t{let t={};return e.forEach(((e,r)=>t[e]=r)),t})(bB),wB=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,AB=String.fromCharCode.bind(String),CB=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_"))),EB=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),xB=e=>{let t,r,n,i,o="";const a=e.length%3;for(let s=0;s255||(n=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,o+=bB[t>>18&63]+bB[t>>12&63]+bB[t>>6&63]+bB[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},SB="function"==typeof btoa?e=>btoa(e):mB?e=>Buffer.from(e,"binary").toString("base64"):xB,IB=mB?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?AB(192|t>>>6)+AB(128|63&t):AB(224|t>>>12&15)+AB(128|t>>>6&63)+AB(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return AB(240|t>>>18&7)+AB(128|t>>>12&63)+AB(128|t>>>6&63)+AB(128|63&t)},_B=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,TB=e=>e.replace(_B,kB),MB=mB?e=>Buffer.from(e,"utf8").toString("base64"):yB?e=>IB(yB.encode(e)):e=>SB(TB(e)),PB=(e,t=!1)=>t?CB(MB(e)):MB(e),jB=e=>{if(e=e.replace(/\s+/g,""),!wB.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,n,i="";for(let o=0;o>16&255):64===n?AB(t>>16&255,t>>8&255):AB(t>>16&255,t>>8&255,255&t);return i},DB=PB;var OB=r(961160),BB=r.n(OB);function NB(e){return NB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NB(e)}function RB(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).originalRequest=n,t.originalResponse=a,t.causingError=r,null!=r&&(e+=", caused by ".concat(r.toString())),null!=n){var s=n.getHeader("X-Request-ID")||"n/a",c=n.getMethod(),u=n.getURL(),l=a?a.getStatus():"n/a",d=a?a.getBody()||"":"n/a";e+=", originated from request (method: ".concat(c,", url: ").concat(u,", response code: ").concat(l,", response text: ").concat(d,", request id: ").concat(s,")")}return t.message=e,t}return t=o,r&&RB(t.prototype,r),n&&RB(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(UB(Error));const qB=GB;var QB=!1;function WB(e){QB&&console.log(e)}function JB(){JB=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new M(n||[]);return i(a,"_invoke",{value:I(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",h="suspendedYield",p="executing",g="completed",m={};function y(){}function b(){}function v(){}var w={};u(w,a,(function(){return this}));var A=Object.getPrototypeOf,C=A&&A(A(P([])));C&&C!==r&&n.call(C,a)&&(w=C);var E=v.prototype=y.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(i,o,a,s){var c=d(e[i],e,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==XB(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function I(t,r,n){var i=f;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=k(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:h,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function YB(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(ys){return void r(ys)}s.done?t(c):Promise.resolve(c).then(n,i)}function ZB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $B(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $B(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $B(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1)for(var n=0,i=["uploadUrl","uploadSize","uploadLengthDeferred"];n1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()})).catch((function(t){e._emitError(t)}))}else this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t,r=this,n=this._size,i=0;this._parallelUploads=[];var o=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,a=null!==(t=this.options.parallelUploadBoundaries)&&void 0!==t?t:function(e,t){for(var r=Math.floor(e/t),n=[],i=0;ithis._offsetBeforeRetry&&(this._retryAttempt=0),fN(e,this._retryAttempt,this.options))){var r=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout((function(){t.start()}),r))}if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,r){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,r)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length",1):t.setHeader("Upload-Length",this._size);var r,n=sN(this.options.metadata);""!==n&&t.setHeader("Upload-Metadata",n),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,r=this._addChunkToRequest(t)):r=this._sendRequest(t,null),r.then((function(r){if(cN(r.getStatus(),200)){var n=r.getHeader("Location");if(null!=n){if(e.url=pN(e.options.endpoint,n),WB("Created upload at ".concat(e.url)),"function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),0===e._size)return e._emitSuccess(),void e._source.close();e._saveUploadInUrlStorage().then((function(){e.options.uploadDataDuringCreation?e._handleUploadResponse(t,r):(e._offset=0,e._performUpload())}))}else e._emitHttpError(t,r,"tus: invalid or missing Location header")}else e._emitHttpError(t,r,"tus: unexpected response while creating upload")})).catch((function(r){e._emitHttpError(t,null,"tus: failed to create upload",r)}))}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then((function(r){var n=r.getStatus();if(!cN(n,200))return 423===n?void e._emitHttpError(t,r,"tus: upload is currently locked; retry later"):(cN(n,400)&&e._removeFromUrlStorage(),e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,r,"tus: unable to resume upload (new upload cannot be created without an endpoint)"));var i=parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(i))e._emitHttpError(t,r,"tus: invalid or missing offset value");else{var o=parseInt(r.getHeader("Upload-Length"),10);!Number.isNaN(o)||e.options.uploadLengthDeferred?("function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),e._saveUploadInUrlStorage().then((function(){if(i===o)return e._emitProgress(o,o),void e._emitSuccess();e._offset=i,e._performUpload()}))):e._emitHttpError(t,r,"tus: invalid or missing length value")}})).catch((function(r){e._emitHttpError(t,null,"tus: failed to resume upload",r)}))}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(e).then((function(r){cN(r.getStatus(),200)?t._handleUploadResponse(e,r):t._emitHttpError(e,r,"tus: unexpected response while uploading chunk")})).catch((function(r){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),r)})))}},{key:"_addChunkToRequest",value:function(e){var t=this,r=this._offset,n=this._offset+this.options.chunkSize;return e.setProgressHandler((function(e){t._emitProgress(r+e,t._size)})),e.setHeader("Content-Type","application/offset+octet-stream"),(n===1/0||n>this._size)&&!this.options.uploadLengthDeferred&&(n=this._size),this._source.slice(r,n).then((function(r){var n=r.value,i=r.done,o=n&&n.size?n.size:0;t.options.uploadLengthDeferred&&i&&(t._size=t._offset+o,e.setHeader("Upload-Length",t._size));var a=t._offset+o;return!t.options.uploadLengthDeferred&&i&&a!==t._size?Promise.reject(new Error("upload was configured with a size of ".concat(t._size," bytes, but the source is done after ").concat(a," bytes"))):null===n?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,n))}))}},{key:"_handleUploadResponse",value:function(e,t){var r=parseInt(t.getHeader("Upload-Offset"),10);if(Number.isNaN(r))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(r,this._size),this._emitChunkComplete(r-this._offset,r,this._size),this._offset=r,r===this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var r=uN(e,t,this.options);return this._req=r,r}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch((function(t){e._emitError(t)})),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||null!==this._urlStorageKey)return Promise.resolve();var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};return this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then((function(t){e._urlStorageKey=t}))}},{key:"_sendRequest",value:function(e){return lN(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],n=[{key:"terminate",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=uN("DELETE",t,r);return lN(n,null,r).then((function(e){if(204!==e.getStatus())throw new qB("tus: unexpected response while terminating upload",null,n,e)})).catch((function(i){if(i instanceof qB||(i=new qB("tus: failed to terminate upload",i,n,null)),!fN(i,0,r))throw i;var o=r.retryDelays[0],a=r.retryDelays.slice(1),s=tN(tN({},r),{},{retryDelays:a});return new Promise((function(e){return setTimeout(e,o)})).then((function(){return e.terminate(t,s)}))}))}}],r&&nN(t.prototype,r),n&&nN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function sN(e){return Object.entries(e).map((function(e){var t=ZB(e,2),r=t[0],n=t[1];return"".concat(r," ").concat(DB(String(n)))})).join(",")}function cN(e,t){return e>=t&&e=r.retryDelays.length||null==e.originalRequest)&&(r&&"function"==typeof r.onShouldRetry?r.onShouldRetry(e,t,r):hN(e))}function hN(e){var t,r=e.originalResponse?e.originalResponse.getStatus():0;return(!cN(r,400)||409===r||423===r)&&(t=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(t=!1),t)}function pN(e,t){return new(BB())(t,e).toString()}aN.defaultOptions=oN;const gN=aN;function mN(e){return mN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mN(e)}function yN(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null;return new Promise((function(r,n){e._xhr.onload=function(){r(new BN(e._xhr))},e._xhr.onerror=function(e){n(e)},e._xhr.send(t)}))}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),BN=function(){function e(t){TN(this,e),this._xhr=t}return PN(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}();const NN=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};function RN(e){return new Promise((function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var e=n.response;t(e)},n.onerror=function(e){r(e)},n.open("GET",e),n.send()}))}const LN=function(){return"undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)};function FN(e){return FN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},FN(e)}function UN(e,t){for(var r=0;r=this.size;return Promise.resolve({value:r,done:n})}},{key:"close",value:function(){}}],r&&UN(t.prototype,r),n&&UN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function VN(e){return VN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VN(e)}function KN(e,t){for(var r=0;rthis._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var r=0===qN(this._buffer);return this._done&&r?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}],r&&KN(t.prototype,r),n&&KN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function WN(e){return WN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WN(e)}function JN(){JN=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new M(n||[]);return i(a,"_invoke",{value:I(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",h="suspendedYield",p="executing",g="completed",m={};function y(){}function b(){}function v(){}var w={};u(w,a,(function(){return this}));var A=Object.getPrototypeOf,C=A&&A(A(P([])));C&&C!==r&&n.call(C,a)&&(w=C);var E=v.prototype=y.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(i,o,a,s){var c=d(e[i],e,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==WN(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function I(t,r,n){var i=f;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=k(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:h,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function YN(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(ys){return void r(ys)}s.done?t(c):Promise.resolve(c).then(n,i)}function ZN(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=aR(aR({},uR),t),i.call(this,e,t)}return t=o,n=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=aR(aR({},uR),t),gN.terminate(e,t)}}],(r=null)&&tR(t.prototype,r),n&&tR(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(gN),dR=window,fR=dR.XMLHttpRequest,hR=dR.Blob,pR=(fR&&hR&&hR.prototype.slice,r(574945)),gR=r.n(pR);class mR extends Error{constructor(e,t,r,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw new Error('"message" must be a nonempty string.');super(t),this.code=e,this.data=n,this.internal=r}}const yR={core:"@livepeer/core@1.9.2",react:"@livepeer/react@2.9.2",reactNative:"@livepeer/react-native@1.9.2"},bR={name:"Livepeer Studio",baseUrl:"https://livepeer.studio/api",webrtcIngestBaseUrl:"https://webrtc.livepeer.studio/webrtc"};class vR{constructor(e){this._config=e}getConfig(){return this._config}async _get(e,t){const r=await gR()(`${this._config.baseUrl}${e}`,{method:"GET",...t,headers:{...t?.headers,"x-core-sdk-version":yR.core,"x-react-sdk-version":yR.react,"x-react-native-sdk-version":yR.reactNative}});if(!r.ok)throw new mR(r.status,`Provider failed to get object from ${this._config.baseUrl}${e}, status code was ${r.status}`,await r.json());return r.json()}async _create(e,t){const r=await gR()(`${this._config.baseUrl}${e}`,{method:"POST",...t,...t?.json?{body:JSON.stringify(t.json)}:{},headers:{...t?.json?{"content-type":"application/json"}:{},...t?.headers,"x-core-sdk-version":yR.core,"x-react-sdk-version":yR.react,"x-react-native-sdk-version":yR.reactNative}});if(!r.ok)throw new mR(r.status,"Provider failed to create object",await r.json());return r.json()}async _update(e,t){const r=await gR()(`${this._config.baseUrl}${e}`,{method:"PATCH",...t,...t?.json?{body:JSON.stringify(t.json)}:{},headers:{...t?.json?{"content-type":"application/json"}:{},...t?.headers,"x-core-sdk-version":yR.core,"x-react-sdk-version":yR.react,"x-react-native-sdk-version":yR.reactNative}});if(!r.ok)throw new mR(r.status,"Provider failed to update object",await r.json())}}class wR extends vR{constructor(e){super(e),this._defaultHeaders={...e.apiKey?{Authorization:`Bearer ${e.apiKey}`}:{},...e.origin?{Origin:e.origin}:{}}}async createStream(e){const t=this._getPlaybackPolicyMapped(e.playbackPolicy),r=await this._create("/stream",{json:{...e,...t?{playbackPolicy:t}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders});return this._mapToStream(r)}async updateStream(e){const t="string"==typeof e?e:e.streamId,r=this._getPlaybackPolicyMapped(e.playbackPolicy);return await this._update(`/stream/${t}`,{json:{...void 0!==e?.record?{record:Boolean(e.record)}:{},...void 0!==e?.suspend?{suspended:Boolean(e.suspend)}:{},...void 0!==e?.multistream?.targets?{multistream:{targets:e.multistream.targets.map((e=>void 0===e.id||"url"in(e.spec??{})?{...e,id:void 0}:{...e,spec:void 0}))}}:{},...r?{playbackPolicy:r}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders}),this.getStream(t)}async getStream(e){const t=await this._get(`/stream/${"string"==typeof e?e:e.streamId}`,{headers:this._defaultHeaders});return this._mapToStream(t)}async getStreamSession(e){return await this._get(`/session/${"string"==typeof e?e:e.streamSessionId}`,{headers:this._defaultHeaders})}async getStreamSessions(e){return await this._get(`/stream/${"string"==typeof e?e:e.streamId}/sessions`,{headers:this._defaultHeaders})}async createClip(e){return(await this._create("/clip",{json:{playbackId:e.playbackId,startTime:e.startTime,endTime:e.endTime,...e.name?{name:e.name}:{},...e.sessionId?{sessionId:e.sessionId}:{}},headers:this._defaultHeaders})).asset}async createAsset(e){const{sources:t,onProgress:r,noWait:n,chunkSize:i}=e;let o=t.map((e=>({name:e.name,progress:0,assetId:null,phase:e?.url?"waiting":"uploading"})));const a=await Promise.allSettled(t.map((async(e,t)=>{const n=this._getPlaybackPolicyMapped(e.playbackPolicy);if(e.url){const t=await this._create("/asset/upload/url",{json:{name:e.name,url:e.url,storage:e?.storage?.ipfs?{ipfs:{spec:{nftMetadata:e?.storage?.metadata??{},...e?.storage?.metadataTemplate?{nftMetadataTemplate:e.storage.metadataTemplate}:{}}}}:void 0,...n?{playbackPolicy:n}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders});return t?.asset?.id}{const a=await this._create("/asset/request-upload",{json:{name:e.name,storage:e?.storage?.ipfs?{ipfs:{spec:{nftMetadata:e?.storage?.metadata??{},...e?.storage?.metadataTemplate?{nftMetadataTemplate:e.storage.metadataTemplate}:{}}}}:void 0,...n?{playbackPolicy:n}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders}),{tusEndpoint:s,asset:{id:c}}=a;return await new Promise(((n,a)=>{const u=new lR(e.file,{endpoint:s,metadata:{id:c},...i?{chunkSize:i}:"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()?null:{chunkSize:104857600},onError:e=>{console.log("Failed because: ",e)},onProgress(n,i){const a=n/i,s={name:e.name,assetId:c,progress:a,phase:"uploading"},u=[...o];u[t]=s,o=u,r?.(o)},onSuccess(){n()}});u.findPreviousUploads().then((e=>{e?.length>0&&e[0]&&u.resumeFromPreviousUpload(e[0]),u.start()})).catch(a)})),c}})));if(n)return Promise.all(a.map((async e=>{if("rejected"===e.status)throw e.reason;return this.getAsset(e.value)})));const s=await Promise.allSettled(a.map((async(e,t)=>{if("rejected"===e.status)throw e.reason;let n=null,i=0;for(;"ready"!==n?.status?.phase&&"failed"!==n?.status?.phase;)try{if(await new Promise((e=>setTimeout(e,1e3*Math.random()+4e3))),n=await this.getAsset(e.value),void 0===n.status?.phase)throw new Error("Asset phase was undefined.");{const e={name:n.name,assetId:n.id,progress:n.status.progress??0,phase:n.status.phase},i=[...o];i[t]=e,o=i,r?.(o)}}catch($R){if(i>5)throw $R;i+=1}const a={name:n.name,assetId:n.id,progress:1,phase:n.status.phase},s=[...o];return s[t]=a,o=s,r?.(o),n})));return[...s.map((e=>{if("fulfilled"===e.status)return e.value;throw e.reason}))]}async getAsset(e){return await this._get(`/asset/${"string"==typeof e?e:e.assetId}`,{headers:this._defaultHeaders})}async updateAsset(e){const{assetId:t,name:r,storage:n}=e,i=this._getPlaybackPolicyMapped(e.playbackPolicy);return await this._update(`/asset/${t}`,{json:{name:void 0!==r?String(r):void 0,storage:n?.ipfs?{ipfs:{spec:{nftMetadata:n?.metadata??{},...n?.metadataTemplate?{nftMetadataTemplate:n.metadataTemplate}:{}}}}:void 0,...i?{playbackPolicy:i}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders}),this.getAsset({assetId:t})}_getRtmpIngestUrl(e){return`rtmp://rtmp.livepeer.com/live/${e}`}async getPlaybackInfo(e){const t="string"==typeof e?e:e.playbackId,r=encodeURIComponent(t),n=await this._get(`/playback/${r}?recordings=true`,{headers:this._defaultHeaders});return this._mapToPlaybackInfo(n)}_getPlaybackUrl(e){return`https://livepeercdn.com/hls/${e}/index.m3u8`}async getAssetMetrics(e){const t="string"==typeof e?e:e.assetId,r=await this._get(`/data/views/${t}/total`,{headers:this._defaultHeaders});return this._mapToViewsMetrics(r)}async _mapToStream(e){return{...e,multistream:await this._mapToMultistream(e.multistream)}}async _mapToMultistream(e){if(!e?.targets)return;const t=e.targets.map((async e=>{const{name:t}=await this._get(`/multistream/target/${e.id}`,{headers:this._defaultHeaders});return{...e,spec:{name:t}}}));return{targets:await Promise.all(t)}}_mapToPlaybackInfo(e){return{type:e?.type,meta:{...e?.meta,live:Boolean(e?.meta?.live),source:e?.meta?.source?.map((e=>({...e}))),attestation:e?.meta?.attestation}}}_mapToViewsMetrics(e){return{type:"ViewsMetrics",metrics:e}}_getPlaybackPolicyMapped(e){return e&&void 0!==e?.type?"webhook"===e.type?{type:e.type,webhookId:e.webhookId,webhookContext:e.webhookContext}:{type:e.type}:null}}const AR=i.createContext(void 0),CR=i.createContext(!1);function ER(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=AR),window.ReactQueryClientContext):AR)}const xR=({client:e,children:t,context:r,contextSharing:n=!1})=>{i.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]);const o=ER(r,n);return i.createElement(CR.Provider,{value:!r&&n},i.createElement(o.Provider,{value:e},t))};function SR(e,t={}){const r=(({context:e}={})=>{const t=i.useContext(ER(e,i.useContext(CR)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t})({context:t.context}),n=i.useRef(t);n.current=t,i.useMemo((()=>{e&&iB(r,e,n.current)}),[r,e])}const IR=({children:e,options:t,state:r})=>(SR(r,t),e),kR=i.createContext(void 0),_R=i.createContext(void 0);function TR({children:e,client:t,dehydratedState:r}){return(0,n.jsx)(kR.Provider,{value:t,children:(0,n.jsx)(xR,{context:_R,client:t.queryClient,children:(0,n.jsx)(IR,{options:{context:_R},state:r??void 0,children:e})})})}r(754070);new Set;const MR=e=>{for(const t of Object.keys(PR))if(PR[t]?.some((t=>t===e)))return t;return null},PR={"application/mp4":["mp4s","m4p"],"application/ogg":["ogx"],"application/vnd.apple.mpegurl":["m3u8"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.dts":["dts"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"audio/xm":["xm"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/vp8":["vp8"],"video/webm":["webm"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"]},jR=/\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,DR=/\.(mp4|ogv|webm|mov|m4v|avi|m3u8)($|\?)/i,OR=/data:video/i,BR=/\.(m3u8)($|\?)/i,NR=/(webrtc|sdp)/i,RR=/data:(.+?);base64/,LR=e=>{const t=e.match(RR);return NR.test(e)?{type:"webrtc",src:e,mime:"video/h264"}:BR.test(e)?{type:"hls",src:e,mime:MR(BR.exec(e)?.[1]??"")}:DR.test(e)?{type:"video",src:e,mime:MR(DR.exec(e)?.[1]??"")}:jR.test(e)?{type:"audio",src:e,mime:MR(jR.exec(e)?.[1]??"")}:OR.test(e)?{type:"video",src:e,mime:t?t[1]:"video/mp4"}:null},FR=e=>{const t=new URL(e).pathname.split("/"),r=t.includes("hls"),n=t.includes("webrtc"),i=t.includes("recordings");return n?t?.[(t?.length??0)-1]:i||r?t?.[(t?.length??0)-2]??null:null},UR=e=>e&&!isNaN(e)&&isFinite(e)?e:0,zR=(e,t)=>Math.min(Math.max(0,UR(e)),UR(t)?UR(t)-.01:0),HR=e=>Math.min(Math.max(0,UR(e)),1);(()=>{try{return Math.random().toString(16).substring(2)}catch($R){}})(),Date.now();const VR=[{key:"16to9",value:"16 / 9",numeric:16/9},{key:"1to1",value:"1 / 1",numeric:1},{key:"9to16",value:"9 / 16",numeric:9/16},{key:"4to5",value:"4 / 5",numeric:.8},{key:"21to9",value:"21 / 9",numeric:21/9}];r(327495),r(426099),r(703362),r(874423),r(21699);function KR(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function GR(e,t,r){return(t=KR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qR=function(){return"undefined"!=typeof window},QR=function(){var e,t,r;return qR()?null===(e=window)||void 0===e||null===(t=e.navigator)||void 0===t||null===(r=t.userAgent)||void 0===r?void 0:r.toLowerCase():""},WR=function(){return/iphone|ipad|ipod|ios|CriOS|FxiOS/.test(QR())},JR=function(){return/android/.test(QR())},YR=function(){return qR()&&(WR()||JR())};r(272712);var ZR=function(e){return{version:e,isAndroid:JR(),isIos:WR(),isMobile:YR(),userAgent:"undefined"!=typeof navigator?navigator.userAgent:"Node.js or unknown"}};var $R,XR,eL="colors",tL="sizes",rL="space",nL={gap:rL,gridGap:rL,columnGap:rL,gridColumnGap:rL,rowGap:rL,gridRowGap:rL,inset:rL,insetBlock:rL,insetBlockEnd:rL,insetBlockStart:rL,insetInline:rL,insetInlineEnd:rL,insetInlineStart:rL,margin:rL,marginTop:rL,marginRight:rL,marginBottom:rL,marginLeft:rL,marginBlock:rL,marginBlockEnd:rL,marginBlockStart:rL,marginInline:rL,marginInlineEnd:rL,marginInlineStart:rL,padding:rL,paddingTop:rL,paddingRight:rL,paddingBottom:rL,paddingLeft:rL,paddingBlock:rL,paddingBlockEnd:rL,paddingBlockStart:rL,paddingInline:rL,paddingInlineEnd:rL,paddingInlineStart:rL,top:rL,right:rL,bottom:rL,left:rL,scrollMargin:rL,scrollMarginTop:rL,scrollMarginRight:rL,scrollMarginBottom:rL,scrollMarginLeft:rL,scrollMarginX:rL,scrollMarginY:rL,scrollMarginBlock:rL,scrollMarginBlockEnd:rL,scrollMarginBlockStart:rL,scrollMarginInline:rL,scrollMarginInlineEnd:rL,scrollMarginInlineStart:rL,scrollPadding:rL,scrollPaddingTop:rL,scrollPaddingRight:rL,scrollPaddingBottom:rL,scrollPaddingLeft:rL,scrollPaddingX:rL,scrollPaddingY:rL,scrollPaddingBlock:rL,scrollPaddingBlockEnd:rL,scrollPaddingBlockStart:rL,scrollPaddingInline:rL,scrollPaddingInlineEnd:rL,scrollPaddingInlineStart:rL,fontSize:"fontSizes",background:eL,backgroundColor:eL,backgroundImage:eL,borderImage:eL,border:eL,borderBlock:eL,borderBlockEnd:eL,borderBlockStart:eL,borderBottom:eL,borderBottomColor:eL,borderColor:eL,borderInline:eL,borderInlineEnd:eL,borderInlineStart:eL,borderLeft:eL,borderLeftColor:eL,borderRight:eL,borderRightColor:eL,borderTop:eL,borderTopColor:eL,caretColor:eL,color:eL,columnRuleColor:eL,fill:eL,outline:eL,outlineColor:eL,stroke:eL,textDecorationColor:eL,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:tL,minBlockSize:tL,maxBlockSize:tL,inlineSize:tL,minInlineSize:tL,maxInlineSize:tL,width:tL,minWidth:tL,maxWidth:tL,height:tL,minHeight:tL,maxHeight:tL,flexBasis:tL,gridTemplateColumns:tL,gridTemplateRows:tL,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},iL=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,oL=()=>{const e=Object.create(null);return(t,r,...n)=>{const i=(e=>JSON.stringify(e,iL))(t);return i in e?e[i]:e[i]=r(t,...n)}},aL=Symbol.for("sxs.internal"),sL=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),cL=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:uL}=Object.prototype,lL=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),dL=/\s+(?![^()]*\))/,fL=e=>t=>e(..."string"==typeof t?String(t).split(dL):[t]),hL={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:fL(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:fL(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:fL(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:fL(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:fL(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:fL(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},pL=/([\d.]+)([^]*)/,gL=(e,t)=>e.length?e.reduce(((e,r)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(e)?`:is(${r})`:r):r+" "+e))),e)),[]):t,mL=(e,t)=>e in yL&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,r,n,i)=>r+("stretch"===n?`-moz-available${i};${lL(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${lL(e)}:${r}fit-content`)+i)):String(t),yL={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},bL=e=>e?e+"-":"",vL=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,n,i,o,a)=>"$"==o==!!i?e:(n||"--"==o?"calc(":"")+"var(--"+("$"===o?bL(t)+(a.includes("$")?"":bL(r))+a.replace(/\$/g,"-"):a)+")"+(n||"--"==o?"*"+(n||"")+(i||"1")+")":""))),wL=/\s*,\s*(?![^()]*\))/,AL=Object.prototype.toString,CL=(e,t,r,n,i)=>{let o,a,s;const c=(e,t,r)=>{let u,l;const d=e=>{for(u in e){const p=64===u.charCodeAt(0),g=p&&Array.isArray(e[u])?e[u]:[e[u]];for(l of g){const e=/[A-Z]/.test(h=u)?h:h.replace(/-[^]/g,(e=>e[1].toUpperCase())),g="object"==typeof l&&l&&l.toString===AL&&(!n.utils[e]||!t.length);if(e in n.utils&&!g){const t=n.utils[e];if(t!==a){a=t,d(t(l)),a=null;continue}}else if(e in hL){const t=hL[e];if(t!==s){s=t,d(t(l)),s=null;continue}}if(p&&(f=u.slice(1)in n.media?"@media "+n.media[u.slice(1)]:u,u=f.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,r,n,i,o)=>{const a=pL.test(t),s=.0625*(a?-1:1),[c,u]=a?[n,t]:[t,n];return"("+("="===r[0]?"":">"===r[0]===a?"max-":"min-")+c+":"+("="!==r[0]&&1===r.length?u.replace(pL,((e,t,n)=>Number(t)+s*(">"===r?1:-1)+n)):u)+(i?") and ("+(">"===i[0]?"min-":"max-")+c+":"+(1===i.length?o.replace(pL,((e,t,r)=>Number(t)+s*(">"===i?-1:1)+r)):o):"")+")"}))),g){const e=p?r.concat(u):[...r],n=p?[...t]:gL(t,u.split(wL));void 0!==o&&i(EL(...o)),o=void 0,c(l,n,e)}else void 0===o&&(o=[[],t,r]),u=p||36!==u.charCodeAt(0)?u:`--${bL(n.prefix)}${u.slice(1).replace(/\$/g,"-")}`,l=g?l:"number"==typeof l?l&&e in xL?String(l)+"px":String(l):vL(mL(e,null==l?"":l),n.prefix,n.themeMap[e]),o[0].push(`${p?`${u} `:`${lL(u)}:`}${l}`)}}var f,h};d(e),void 0!==o&&i(EL(...o)),o=void 0};c(e,t,r)},EL=(e,t,r)=>`${r.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,xL={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},SL=e=>String.fromCharCode(e+(e>25?39:97)),IL=e=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=SL(t%52)+r;return SL(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(e))>>>0),kL=["themed","global","styled","onevar","resonevar","allvar","inline"],_L=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},TL=e=>{let t;const r=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((r,n)=>{const{cssText:i}=r;let o="";if(i.startsWith("--sxs"))return"";if(e[n-1]&&(o=e[n-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===r)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${i}`;return r.cssRules.length?`${o}${i}`:""}return i})).join("")},n=()=>{if(t){const{rules:e,sheet:r}=t;if(!r.deleteRule){for(;3===Object(Object(r.cssRules)[0]).type;)r.cssRules.splice(0,1);r.cssRules=[]}for(const t in e)delete e[t]}const i=Object(e).styleSheets||[];for(const e of i)if(_L(e)){for(let i=0,o=e.cssRules;o[i];++i){const a=Object(o[i]);if(1!==a.type)continue;const s=Object(o[i+1]);if(4!==s.type)continue;++i;const{cssText:c}=a;if(!c.startsWith("--sxs"))continue;const u=c.slice(14,-3).trim().split(/\s+/),l=kL[u[0]];l&&(t||(t={sheet:e,reset:n,rules:{},toString:r}),t.rules[l]={group:s,index:i,cache:new Set(u)})}if(t)break}if(!t){const i=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,i(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:i("","text/css"),rules:{},reset:n,toString:r}}const{sheet:o,rules:a}=t;for(let e=kL.length-1;e>=0;--e){const t=kL[e];if(!a[t]){const r=kL[e+1],n=a[r]?a[r].index:o.cssRules.length;o.insertRule("@media{}",n),o.insertRule(`--sxs{--sxs:${e}}`,n),a[t]={group:o.cssRules[n+1],index:n,cache:new Set([e])}}ML(a[t])}};return n(),t},ML=e=>{const t=e.group;let r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},PL=Symbol(),jL=oL(),DL=(e,t)=>jL(e,(()=>(...r)=>{let n={type:null,composers:new Set};for(const t of r)if(null!=t)if(t[aL]){null==n.type&&(n.type=t[aL].type);for(const e of t[aL].composers)n.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==n.type&&(n.type=t):n.composers.add(OL(t,e));return null==n.type&&(n.type="span"),n.composers.size||n.composers.add(["PJLV",{},[],[],{},[]]),BL(e,n,t)})),OL=({variants:e,compoundVariants:t,defaultVariants:r,...n},i)=>{const o=`${bL(i.prefix)}c-${IL(n)}`,a=[],s=[],c=Object.create(null),u=[];for(const f in r)c[f]=String(r[f]);if("object"==typeof e&&e)for(const f in e){l=c,d=f,uL.call(l,d)||(c[f]="undefined");const t=e[f];for(const e in t){const r={[f]:String(e)};"undefined"===String(e)&&u.push(f);const n=t[e],i=[r,n,!cL(n)];a.push(i)}}var l,d;if("object"==typeof t&&t)for(const f of t){let{css:e,...t}=f;e="object"==typeof e&&e||{};for(const n in t)t[n]=String(t[n]);const r=[t,e,!cL(e)];s.push(r)}return[o,n,a,s,c,u]},BL=(e,t,r)=>{const[n,i,o,a]=NL(t.composers),s="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;rt.rules[e]={apply:r=>t[PL].push([e,r])})),t})(r):null,c=(s||r).rules,u=`.${n}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,l=l=>{l="object"==typeof l&&l||LL;const{css:d,...f}=l,h={};for(const e in o)if(delete f[e],e in l){let t=l[e];"object"==typeof t&&t?h[e]={"@initial":o[e],...t}:(t=String(t),h[e]="undefined"!==t||a.has(e)?t:o[e])}else h[e]=o[e];const p=new Set([...i]);for(const[n,i,o,a]of t.composers){r.rules.styled.cache.has(n)||(r.rules.styled.cache.add(n),CL(i,[`.${n}`],[],e,(e=>{c.styled.apply(e)})));const t=RL(o,h,e.media),s=RL(a,h,e.media,!0);for(const i of t)if(void 0!==i)for(const[t,o,a]of i){const i=`${n}-${IL(o)}-${t}`;p.add(i);const s=(a?r.rules.resonevar:r.rules.onevar).cache,u=a?c.resonevar:c.onevar;s.has(i)||(s.add(i),CL(o,[`.${i}`],[],e,(e=>{u.apply(e)})))}for(const i of s)if(void 0!==i)for(const[t,o]of i){const i=`${n}-${IL(o)}-${t}`;p.add(i),r.rules.allvar.cache.has(i)||(r.rules.allvar.cache.add(i),CL(o,[`.${i}`],[],e,(e=>{c.allvar.apply(e)})))}}if("object"==typeof d&&d){const t=`${n}-i${IL(d)}-css`;p.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),CL(d,[`.${t}`],[],e,(e=>{c.inline.apply(e)})))}for(const e of String(l.className||"").trim().split(/\s+/))e&&p.add(e);const g=f.className=[...p].join(" ");return{type:t.type,className:g,selector:u,props:f,toString:()=>g,deferredInjector:s}};return sL(l,{className:n,selector:u,[aL]:t,toString:()=>(r.rules.styled.cache.has(n)||l(),n)})},NL=e=>{let t="";const r=[],n={},i=[];for(const[o,,,,a,s]of e){""===t&&(t=o),r.push(o),i.push(...s);for(const e in a){const t=a[e];(void 0===n[e]||"undefined"!==t||s.includes(t))&&(n[e]=t)}}return[t,r,n,new Set(i)]},RL=(e,t,r,n)=>{const i=[];e:for(let[o,a,s]of e){if(s)continue;let e,c=0,u=!1;for(e in o){const n=o[e];let i=t[e];if(i!==n){if("object"!=typeof i||!i)continue e;{let e,t,o=0;for(const a in i){if(n===String(i[a])){if("@initial"!==a){const e=a.slice(1);(t=t||[]).push(e in r?r[e]:a.replace(/^@media ?/,"")),u=!0}c+=o,e=!0}++o}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue e}}}(i[c]=i[c]||[]).push([n?"cv":`${e}-${o[e]}`,a,u])}return i},LL={},FL=oL(),UL=(e,t)=>FL(e,(()=>(...r)=>{const n=()=>{for(let n of r){n="object"==typeof n&&n||{};let r=IL(n);if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in n){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let r of[].concat(n["@import"]))r=r.includes('"')||r.includes("'")?r:`"${r}"`,t.sheet.insertRule(`@import ${r};`,e++);delete n["@import"]}CL(n,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return sL(n,{toString:n})})),zL=oL(),HL=(e,t)=>zL(e,(()=>r=>{const n=`${bL(e.prefix)}k-${IL(r)}`,i=()=>{if(!t.rules.global.cache.has(n)){t.rules.global.cache.add(n);const i=[];CL(r,[],[],e,(e=>i.push(e)));const o=`@keyframes ${n}{${i.join("")}}`;t.rules.global.apply(o)}return n};return sL(i,{get name(){return i()},toString:i})})),VL=class{constructor(e,t,r,n){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==r?"":String(r),this.prefix=null==n?"":String(n)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+bL(this.prefix)+bL(this.scale)+this.token}toString(){return this.computedValue}},KL=oL(),GL=(e,t)=>KL(e,(()=>(r,n)=>{n="object"==typeof r&&r||Object(n);const i=`.${r=(r="string"==typeof r?r:"")||`${bL(e.prefix)}t-${IL(n)}`}`,o={},a=[];for(const t in n){o[t]={};for(const r in n[t]){const i=`--${bL(e.prefix)}${t}-${r}`,s=vL(String(n[t][r]),e.prefix,t);o[t][r]=new VL(r,s,t,e.prefix),a.push(`${i}:${s}`)}}const s=()=>{if(a.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);const i=`${n===e.theme?":root,":""}.${r}{${a.join(";")}}`;t.rules.themed.apply(i)}return r};return{...o,get className(){return s()},selector:i,toString:s}})),qL=oL(),QL=e=>{let t=!1;const r=qL(e,(e=>{t=!0;const r="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",n="object"==typeof e.media&&e.media||{},i="object"==typeof e.root?e.root||null:globalThis.document||null,o="object"==typeof e.theme&&e.theme||{},a={prefix:r,media:n,theme:o,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...nL},utils:"object"==typeof e.utils&&e.utils||{}},s=TL(i),c={css:DL(a,s),globalCss:UL(a,s),keyframes:HL(a,s),createTheme:GL(a,s),reset(){s.reset(),c.theme.toString()},theme:{},sheet:s,config:a,prefix:r,getCssText:s.toString,toString:s.toString};return String(c.theme=c.createTheme(o)),c}));return t||r.reset(),r},WL=()=>$R||($R=QL()),JL=(...e)=>WL().keyframes(...e),YL="#00a55f",ZL="rgba(255,255,255,1)",$L=QL({media:{sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)"},theme:{borderStyles:{containerBorderStyle:"solid"},borderWidths:{containerBorderWidth:0,loadingWidth:"3px"},colors:{accent:YL,background:"#000000",containerBorderColor:"transparent",icon:ZL,iconHover:"rgba(255,255,255,0.8)",liveIndicator:"#e5484d",loading:YL,progressLeft:YL,progressMiddle:YL,progressRight:YL,progressThumb:ZL,volumeLeft:YL,volumeMiddle:YL,volumeRight:YL,volumeThumb:ZL,errorText:"#B7B7B7"},fonts:{display:"ui-sans-serif"},fontSizes:{timeFontSize:"1.0rem",timeFontSizeMd:"0.95rem",timeFontSizeSm:"0.85rem",titleFontSize:"1.1rem",titleFontSizeMd:"1rem",titleFontSizeSm:"0.9rem",errorTitleFontSize:"2.5rem",errorTitleFontSizeMd:"2.0rem",errorTitleFontSizeSm:"1.3rem",errorTextFontSize:"0.95rem",errorTextFontSizeMd:"0.85rem",errorTextFontSizeSm:"0.75rem"},fontWeights:{titleFontWeight:"400",errorTitleFontWeight:"700"},sizes:{iconButtonSize:"42px",iconButtonSizeSm:"36px",liveIndicatorSize:"5px",loading:"64px",thumb:"10px",thumbActive:"12px",trackActive:"5px",trackContainerHeight:"15px",trackContainerHeightSm:"20px",trackInactive:"3px"},space:{controlsBottomMarginX:"10px",controlsBottomMarginY:"5px",controlsTopMarginX:"15px",controlsTopMarginY:"10px",timeMarginX:"8px"},radii:{containerBorderRadius:"0px",slider:"3px"}}}),XL=$L.css,eF=($L.createTheme,$L.theme,$L.getCssText,JL({"0%":{transform:"scale(1)"},"100%":{transform:"scale(1.1)"}})),tF=(XL("button",{background:"none",border:"none",cursor:"pointer",outline:"inherit",padding:0,height:"$iconButtonSizeSm",width:"$iconButtonSizeSm",minHeight:"$iconButtonSizeSm",minWidth:"$iconButtonSizeSm","@lg":{height:"$iconButtonSize",width:"$iconButtonSize",minHeight:"$iconButtonSize",minWidth:"$iconButtonSize"},color:"$icon","&:hover":{color:"$iconHover",animation:YR()?void 0:"".concat(eF," 200ms")}}),XL("div",{variants:{aspectRatio:(XR={},GR(XR,VR[0].key,GR({aspectRatio:VR[0].value},"@supports not (aspect-ratio: ".concat(VR[0].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(VR[0].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),GR(XR,VR[1].key,GR({aspectRatio:VR[1].value},"@supports not (aspect-ratio: ".concat(VR[1].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(VR[1].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),GR(XR,VR[2].key,GR({aspectRatio:VR[2].value},"@supports not (aspect-ratio: ".concat(VR[2].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(VR[2].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),GR(XR,VR[3].key,GR({aspectRatio:VR[3].value},"@supports not (aspect-ratio: ".concat(VR[3].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(VR[3].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),GR(XR,VR[4].key,GR({aspectRatio:VR[4].value},"@supports not (aspect-ratio: ".concat(VR[4].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(VR[4].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),XR)}})),rF=(XL(tF,{fontFamily:"$display, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",backgroundColor:"$background",overflow:"hidden",maxWidth:"100%",maxHeight:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flex:1,svg:{pointerEvents:"none"},variants:{size:{fullscreen:{zIndex:2147483647},default:{boxShadow:"rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px",borderStyle:"$containerBorderStyle",borderColor:"$containerBorderColor",borderRadius:"$containerBorderRadius",borderWidth:"$containerBorderWidth",zIndex:1}}},defaultVariants:{size:"default"}}),XL("span",{color:"$icon",userSelect:"none"})),nF={background:XL("div",{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"220px",marginTop:"1rem","@md":{maxWidth:"340px"},maxHeight:"100%"}),title:XL(rF,{fontWeight:"$errorTitleFontWeight",margin:"0.5rem 0 0.5rem 0",fontSize:"$errorTitleFontSizeSm","@md":{fontSize:"$errorTitleFontSizeMd",margin:"2rem 0 0.5rem 0"},"@lg":{fontSize:"$errorTitleFontSize"}}),text:XL(rF,{fontWeight:"$titleFontWeight",color:"$errorText",textAlign:"center",width:"90%",fontSize:"$errorTextFontSizeSm",marginBottom:"1rem","@md":{fontSize:"$errorTextFontSizeMd"},"@lg":{fontSize:"$errorTextFontSize"}})},iF=JL({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),oF=XL("div",{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%","&:after":{content:" ",display:"block",width:"$loading",height:"$loading",maxWidth:"100%",maxHeight:"100%",borderRadius:"50%",borderWidth:"$loadingWidth",borderStyle:"solid",borderColor:"$loading transparent $loading transparent",animation:"".concat(iF," 1.4s ease-in-out infinite")}}),aF=JL({"0%":{opacity:1},"100%":{opacity:0}}),sF=JL({"0%":{opacity:0},"100%":{opacity:1}}),cF=XL("div",{variants:{display:{shown:{opacity:1,animation:YR()?void 0:"".concat(sF," 0.2s")},hidden:{opacity:0,animation:YR()?void 0:"".concat(aF," 0.2s")}}},defaultVariants:{display:"shown"}}),uF=XL(cF,{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",bottom:0,left:0,right:0,top:0,height:"100%",backgroundColor:"#000000"}),lF=XL(cF,{position:"absolute",bottom:0,left:0,right:0,height:233,marginBottom:-1,maxWidth:"100%",maxHeight:"100%",overflow:"hidden",backgroundImage:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADpCAYAAADlAl1mAAAAAXNSR0IArs4c6QAAAexJREFUOE9V0ftrzXEcx/H3x+43l9lmGGaz65ld2YUZG2YYKUlJUpKSpNZSkpSkJClJSVKSkj9Sj8/3nJ12fnie5/v9en/en+/3nIjik6rfNOU6YwfJqNGp0ctWGylSLavTqzNe72S9YYgGaYOysYJodKxJ2uSeZseaC4uUWpQt0lbWWlhEtFnVZv1O5RbSLkHGbifKiBR7XJnR7kS7dG+BSNlSh7TDvZ02d5rL6DLXxfYZriCiW69bbz+rIKUDyoyDW+hxB0RPpJQOCTIOb8cRZUavB+r1QCyOVpD6WJ97s/Wb67f5GINsMaA3YG6QDbIh7zZUWEQaNjesHHHRiB7EqLlRx0qsZKQkHdMb0zturopx5bhgwqoJJaRJNmnBlGBKj8W0YNq+GTbjFzrBqjipzJh1bNYxFnNsjs1bMF9YpFhgC3qnCkQkiNMMYlGwqDzDyoiIJc+35O85a66MFHFOmbHsjmVnM1Y884rgvLKClC4oIS5ux6pg1ZZLgow1v9pa2SIus4wrBVKkbFedhVhn67Zku2bBdcENr3CT3ZLe9oJ32F12T3DfCz7QewiP9B7b8kT5VPmMbVi6yZ7DCwtemnvFXrvoDXtr7p3gPXxQfhR8suqz8gv7Kv3mZb5Lf+j91PvFfsMf+Av//gMAXDGpZ05jKQAAAABJRU5ErkJggg==")'}),dF=XL(cF,{top:0,marginTop:"$controlsTopMarginY",marginBottom:"$controlsTopMarginY",marginLeft:"$controlsTopMarginX",marginRight:"$controlsTopMarginX",display:"inline-flex",alignItems:"center",justifyContent:"space-between",position:"absolute",left:0,right:0}),fF=XL(cF,{justifyContent:"center",bottom:0,marginTop:"$controlsBottomMarginY",marginBottom:"$controlsBottomMarginY",marginLeft:"$controlsBottomMarginX",marginRight:"$controlsBottomMarginX",display:"inline-flex",alignItems:"center",position:"absolute",flexDirection:"column",left:0,right:0}),hF=XL("div",{width:"100%",display:"inline-flex",alignItems:"center",justifyContent:"space-between"}),pF=XL(hF,{width:"auto"}),gF=XL(hF,{width:"auto"}),mF=(XL(cF,{top:0,userSelect:"none",color:"$icon",marginTop:"$controlsTopMarginY",marginBottom:"$controlsTopMarginY",marginLeft:"$controlsTopMarginX",marginRight:"$controlsTopMarginX",display:"inline-flex",alignItems:"flex-start",justifyContent:"flex-start",position:"absolute",fontSize:"$timeFontSizeSm","@md":{fontSize:"$timeFontSizeMd"},"@lg":{fontSize:"$timeFontSize"},left:0,right:0,bottom:0}),XL("img",{maxWidth:"100%",width:"100%",maxHeight:"100%",height:"100%",pointerEvents:"none",userSelect:"none",objectPosition:"center",objectFit:"cover",variants:{size:{fullscreen:{width:"100% !important",height:"100% !important"},default:{}}},defaultVariants:{size:"default"}})),yF=XL("video",{width:"100% !important",height:"100% !important",objectPosition:"center",variants:{size:{fullscreen:{objectFit:"contain","&::-webkit-media-overlay-enclosure":{display:"none !important"},"&::-webkit-media-controls-enclosure":{display:"none !important"}},contain:{objectFit:"contain"},cover:{objectFit:"cover"}}},defaultVariants:{size:"cover"}}),bF=(XL("audio",yF),JL({"0%":{opacity:0},"100%":{opacity:1}})),vF=JL({"0%":{opacity:0,transform:"translate(-50%, -48%) scale(.96)"},"100%":{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),wF=XL("div",{backgroundColor:"hsla(0, 0%, 0%, 0.439)",position:"fixed",inset:0,animation:"".concat(bF," 150ms cubic-bezier(0.16, 1, 0.3, 1)")}),AF=XL("div",{fontFamily:"$display, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",backgroundColor:"white",color:"black",borderRadius:6,display:"inline-flex",flexDirection:"column",gap:12,boxShadow:"hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"350px",maxWidth:"85%",maxHeight:"85vh",padding:25,animation:"".concat(vF," 150ms cubic-bezier(0.16, 1, 0.3, 1)"),"&:focus":{outline:"none"}}),CF=XL("span",{margin:0,fontWeight:600,color:"black",fontSize:20,marginBottom:12}),EF=XL("button",{all:"unset",fontFamily:"inherit",borderRadius:"100%",height:20,width:20,display:"inline-flex",alignItems:"center",justifyContent:"center",position:"absolute",top:10,right:10,cursor:"pointer"}),xF=XL("div",{display:"inline-flex",flexDirection:"column",gap:8}),SF=XL("button",{all:"unset",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:4,padding:"0 15px",fontSize:13,lineHeight:1,height:35,gap:5,backgroundColor:"white",color:"black",borderStyle:"solid",borderWidth:1,borderColor:"black",boxShadow:"0 2px 10px hsla(0, 0%, 0%, 0.141)","&:hover":{backgroundColor:"hsl(294, 5.5%, 95.3%)"},"&:focus":{boxShadow:"0 0 0 2px black"},"&[data-placeholder]":{color:"hsl(0, 0%, 9.0%)"}}),IF=XL("span",{fontSize:16,fontWeight:600}),kF=XL("span",{}),_F=XL("div",{overflow:"hidden",backgroundColor:"white",display:"flex",flexDirection:"column",borderRadius:6,borderStyle:"solid",borderWidth:1,borderColor:"black",boxShadow:"0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2)"}),TF=XL("div",{padding:5}),MF=(XL("div",{fontFamily:"$display, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",fontSize:13,lineHeight:1,borderRadius:3,display:"flex",alignItems:"center",height:25,padding:"10px 35px 10px 30px",position:"relative",userSelect:"none",color:"black","&[data-disabled]":{pointerEvents:"none"},"&[data-highlighted]":{outline:"none",backgroundColor:"#fafafa"}}),XL("div",{position:"absolute",left:4,width:30,display:"inline-flex",alignItems:"center",justifyContent:"center"}),JL({"0%":{height:"$trackInactive"},"100%":{height:"$trackActive"}})),PF=JL({"0%":{height:"$trackActive"},"100%":{height:"$trackInactive"}}),jF=XL("div",{minHeight:"$trackContainerHeightSm","@lg":{minHeight:"$trackContainerHeight"},"@media (hover: none)":{minHeight:"$trackContainerHeightSm"},position:"relative",display:"flex",alignItems:"center",minWidth:80,touchAction:"none",cursor:"pointer",height:"100%",width:"100%"}),DF=XL("div",{variants:{size:{default:{height:"$trackInactive",animation:"".concat(PF," 0.1s")},active:{height:"$trackActive",animation:"".concat(MF," 0.1s")}},rounded:{full:{borderRadius:"$slider"},left:{borderTopLeftRadius:"$slider",borderBottomLeftRadius:"$slider"},right:{borderTopRightRadius:"$slider",borderBottomRightRadius:"$slider"},none:{}}},defaultVariants:{size:"default",rounded:"none"}}),OF=XL(DF,{backgroundColor:"$accent",opacity:.95}),BF=XL(DF,{backgroundColor:"$accent",opacity:.55}),NF=XL(DF,{backgroundColor:"$accent",opacity:.2}),RF=(XL("div",{variants:{size:{default:{width:"$thumb",height:"$thumb"},active:{width:"$thumbActive",height:"$thumbActive"}}},defaultVariants:{size:"default"},backgroundColor:"$icon",borderRadius:"100%"}),JL({"0%, 100%":{opacity:1},"50%":{opacity:.5}})),LF=XL("div",{marginLeft:"$timeMarginX",marginRight:"$timeMarginX",display:"flex",alignItems:"center"}),FF=XL("div",{backgroundColor:"$liveIndicator",borderRadius:"100%",width:"$liveIndicatorSize",height:"$liveIndicatorSize",animation:"".concat(RF," 2s cubic-bezier(0.4, 0, 0.6, 1) infinite")}),UF=(XL(rF,{marginLeft:"$timeMarginX",marginRight:"$timeMarginX",fontVariant:"tabular-nums",fontSize:"$timeFontSizeSm","@md":{fontSize:"$timeFontSizeMd"},"@lg":{fontSize:"$timeFontSize"}}),XL(rF,{fontWeight:"$titleFontWeight",fontSize:"$titleFontSizeSm","@md":{fontSize:"$titleFontSizeMd"},"@lg":{fontSize:"$titleFontSize"}}),XL("div",{display:"inline-flex",alignItems:"center",justifyContent:"center"}),i.createContext(null)),zF=((({element:e,device:t,storage:r,mediaProps:n,opts:i})=>{const o=cO(nO(aO(((r,a)=>({_element:e??null,canPlay:!1,hidden:!1,live:!1,ingestUrl:n.ingestUrl??null,playbackId:n.playbackId??null,src:null,autoplay:Boolean(n.autoPlay),muted:Boolean(n.muted),priority:Boolean(n.priority),preload:n.priority?"full":"none",viewerId:n.viewerId??"",creatorId:n.creatorId??"",clipLength:n.clipLength,onClipCreated:n.onClipCreated,onClipError:n.onClipError,onClipStarted:n.onClipStarted,playbackOffsetMs:0,deviceIds:null,hasPlayed:!1,playing:!1,fullscreen:!1,pictureInPicture:!1,waiting:!1,stalled:!1,loading:!1,playbackRate:1,_mediaStream:null,video:null,device:t,progress:0,duration:0,buffered:0,volume:HR(i?.defaultVolume??1),isVolumeChangeSupported:!1,_lastInteraction:Date.now(),_requestedRangeToSeekTo:0,_requestedClipLastTime:Date.now(),_requestedFullscreenLastTime:Date.now(),_requestedPictureInPictureLastTime:Date.now(),_requestedPlayPauseLastTime:0,_playLastTime:0,_updateMediaStream:(e,t)=>r((({deviceIds:r})=>({_mediaStream:e,...t?.video?{video:!0}:{},deviceIds:{...r,...t?.audio?{audio:t.audio}:{},...t?.video?{video:t.video}:{}}}))),setHidden:e=>r((({playing:t})=>({hidden:!!t&&e}))),_updateLastInteraction:()=>r((()=>({_lastInteraction:Date.now(),hidden:!1}))),_updateSource:e=>r((({playbackId:t})=>({src:LR(e),...t?{}:{playbackId:FR(e)}}))),_updatePlaybackOffsetMs:e=>r((()=>({playbackOffsetMs:e}))),onCanPlay:()=>r((()=>({canPlay:!0,loading:!1}))),onPlay:()=>r((()=>({playing:!0,hasPlayed:!0,stalled:!1,waiting:!1,_playLastTime:Date.now()}))),onPause:()=>r((()=>({playing:!1,hidden:!1,stalled:!1,waiting:!1}))),togglePlay:e=>{const{hidden:t,setHidden:n,device:i}=o.getState();!e&&t&&i.isMobile?n(!1):r((()=>({_requestedPlayPauseLastTime:Date.now(),_lastInteraction:Date.now()})))},toggleVideo:()=>r((({video:e})=>({video:!e}))),onProgress:e=>r((()=>({progress:UR(e),waiting:!1,stalled:!1}))),requestSeek:e=>r((({duration:t})=>({_requestedRangeToSeekTo:zR(e,t),progress:zR(e,t)}))),onDurationChange:e=>r((({live:t})=>({duration:e,live:e===Number.POSITIVE_INFINITY||t}))),setWebsocketMetadata:e=>r((()=>({metadata:e}))),_updateBuffered:e=>r((()=>({buffered:e}))),_requestSeekDiff:e=>r((({progress:t,duration:r})=>({_requestedRangeToSeekTo:zR(UR(t)+e/1e3,r)}))),requestSeekBack:(e=5e3)=>a()._requestSeekDiff(-e),requestSeekForward:(e=5e3)=>a()._requestSeekDiff(e),setSize:e=>r((()=>({size:e}))),setWaiting:e=>r((()=>({waiting:e}))),setError:e=>r((()=>({error:e}))),setStalled:e=>r((()=>({stalled:e}))),setLoading:e=>r((()=>({loading:e}))),setFullscreen:e=>r((()=>({fullscreen:e}))),requestToggleFullscreen:()=>r((()=>({_requestedFullscreenLastTime:Date.now()}))),requestClip:()=>r((()=>({_requestedClipLastTime:Date.now()}))),setPictureInPicture:e=>r((()=>({pictureInPicture:e}))),requestTogglePictureInPicture:()=>r((()=>({_requestedPictureInPictureLastTime:Date.now()}))),setLive:e=>r((()=>({live:e}))),requestVolume:e=>r((({volume:t})=>({volume:0===e?t:HR(e),muted:0===e}))),_setVolume:e=>r((()=>({volume:HR(e)}))),requestToggleMute:()=>r((({muted:e})=>({muted:!e}))),setIsVolumeChangeSupported:e=>r((()=>({isVolumeChangeSupported:e})))})),{name:"livepeer-player",version:1,partialize:({volume:e,playbackRate:t})=>({volume:e,playbackRate:t}),storage:iO((()=>r))})))})({element:void 0,device:ZR(yR.react),storage:lO({}),mediaProps:{},opts:{}}),function(e){var t=e.theme,r=e.children;return(0,n.jsx)(UF.Provider,{value:null!=t?t:null,children:r})});function HF(e){var t=e.children,r=e.client,i=e.theme,o=e.dehydratedState;return(0,n.jsx)(TR,{client:r,dehydratedState:o,children:(0,n.jsx)(zF,{theme:i,children:t})})}const VF=function({supportedWalletType:e="all",darkMode:t=!1,enableMobileWalletLink:n=!1,reloadOnDisconnect:i=!0}={}){return()=>({label:"Coinbase Wallet",getIcon:async()=>(await r.e(92306).then(r.bind(r,692306))).default,getInterface:async({chains:o,appMetadata:a})=>{(n||i||t)&&console.warn("darkMode, enableMobileWalletLink and reloadOnDisconnect init props are deprecated after version 2.2.7 of @web3-onboard/coinbase");const{name:s,icon:c}=a||{},{default:u}=await r.e(39229).then(r.t.bind(r,939229,19)),l=u.default?u.default:u,{isHex:d,toHex:f,createEIP1193Provider:h,fromHex:p}=await Promise.resolve().then(r.bind(r,645599)),g=`data:image/svg+xml;base64,${window.btoa(c||"")}`,m=o.map((({id:e})=>p(e,"number"))),y=new l({appName:s||"",appLogoUrl:g,appChainIds:m}),b=y.makeWeb3Provider({options:e}),v=b.on.bind(b);b.on=(e,t)=>(v(e,(r=>{if("chainChanged"===e){let e;return e=d(r)?r:f(r),void t(e)}t(r)})),b);const w=h(b);return w.removeListener=(e,t)=>{},{provider:w,instance:y}}})};var KF,GF,qF,QF,WF=r(187234);!function(e){e.AlphaWallet="isAlphaWallet",e.ApexWallet="isApexWallet",e.AToken="isAToken",e.BifrostWallet="isBifrost",e.Binance="bbcSignTx",e.Bitpie="isBitpie",e.BlockWallet="isBlockWallet",e.Coinbase="isToshi",e.CoinbaseExtension="isCoinbaseWallet",e.Detected="request",e.Dcent="isDcentWallet",e.Exodus="isExodus",e.Frontier="isFrontier",e.Frame="isFrame",e.HuobiWallet="isHbWallet",e.HyperPay="isHyperPay",e.ImToken="isImToken",e.InfinityWallet="isInfinityWallet",e.Liquality="isLiquality",e.MeetOne="wallet",e.MetaMask="isMetaMask",e.MyKey="isMYKEY",e.OwnBit="isOwnbit",e.Status="isStatus",e.Trust="isTrust",e.TokenPocket="isTokenPocket",e.TP="isTp",e.WalletIo="isWalletIO",e.XDEFI="isXDEFI",e.OneInch="isOneInchIOSWallet",e.Tokenary="isTokenary",e.Tally="isTally",e.BraveWallet="isBraveWallet",e.Rabby="isRabby",e.MathWallet="isMathWallet",e.Bitget="isBitKeep",e.Sequence="isSequence",e.Core="isAvalanche",e.Opera="isOpera",e.Bitski="isBitski",e.Enkrypt="isEnkrypt",e.Phantom="isPhantom",e.OKXWallet="isOkxWallet",e.Zeal="isZeal",e.Zerion="isZerion",e.Rainbow="isRainbow",e.SafePal="isSafePal",e.DeFiWallet="isDeficonnectProvider",e.Safeheron="isSafeheron",e.Talisman="isTalisman",e.OneKey="isOneKey",e.Fordefi="isFordefi",e.Coin98Wallet="isCoin98",e.SubWallet="isSubWallet",e.Kayros="isKayros",e.FoxWallet="isFoxWallet",e.Lif3Wallet="isLif3Wallet",e.ZodiacPilot="isZodiacPilot",e.StableWallet="isStableWallet",e.Echooo="isEchooo",e.Keplr="keplr"}(KF||(KF={})),function(e){e.Binance="https://www.bnbchain.org/ru/blog/binance-extension-wallet/",e.Bitget="https://web3.bitget.com/en/wallet-download",e.Coinbase="https://www.coinbase.com/wallet/downloads",e.MetaMask="https://metamask.io/download/",e.OKXWallet="https://okx.com/download",e.Phantom="https://phantom.app/ul/v1/connect",e.Talisman="https://www.talisman.xyz/",e.Trust="https://link.trustwallet.com",e.OneKey="https://onekey.so/download/",e.RoninWallet="https://wallet.skymavis.com/",e.Coin98Wallet="https://coin98.com/wallet/",e.SubWallet="https://www.subwallet.app/",e.Kayros="https://www.kayros.games/wallet/",e.XDEFI="https://xdefi.io/",e.FoxWallet="https://foxwallet.com/download",e.Lif3Wallet="https://lif3.com",e.Rabby="https://rabby.io",e.ZodiacPilot="https://pilot.gnosisguild.org/",e.Echooo="https://www.echooo.xyz",e.Keplr="https://www.keplr.app/download"}(GF||(GF={})),function(e){e.AlphaWallet="AlphaWallet",e.ApexWallet="Apex Wallet",e.AToken="AToken",e.BifrostWallet="Bifrost Wallet",e.Binance="Binance Smart Wallet",e.Bitpie="Bitpie",e.Bitski="Bitski",e.BlockWallet="BlockWallet",e.Brave="Brave Wallet",e.Coinbase="Coinbase Wallet",e.Dcent="D'CENT",e.Detected="Detected Wallet",e.Exodus="Exodus",e.Frame="Frame",e.Frontier="Frontier",e.HuobiWallet="Huobi Wallet",e.HyperPay="HyperPay",e.ImToken="imToken",e.InfinityWallet="Infinity Wallet",e.Liquality="Liquality",e.MeetOne="MeetOne",e.MetaMask="MetaMask",e.MyKey="MyKey",e.Opera="Opera Wallet",e.OwnBit="OwnBit",e.Status="Status Wallet",e.Trust="Trust Wallet",e.TokenPocket="TokenPocket",e.TP="TP Wallet",e.WalletIo="Wallet.io",e.XDEFI="XDEFI Wallet",e.OneInch="1inch Wallet",e.Tokenary="Tokenary Wallet",e.Tally="Taho",e.Rabby="Rabby Wallet",e.MathWallet="MathWallet",e.Bitget="Bitget Wallet",e.Sequence="Sequence",e.Core="Core",e.Enkrypt="Enkrypt",e.Zeal="Zeal",e.Phantom="Phantom",e.OKXWallet="OKX Wallet",e.Zerion="Zerion",e.Rainbow="Rainbow",e.SafePal="SafePal",e.DeFiWallet="DeFi Wallet",e.Safeheron="Safeheron",e.Talisman="Talisman",e.OneKey="OneKey",e.Fordefi="Fordefi",e.RoninWallet="Ronin Wallet",e.Coin98Wallet="Coin98 Wallet",e.SubWallet="SubWallet",e.Kayros="Kayros",e.FoxWallet="FoxWallet",e.Lif3Wallet="Lif3 Wallet",e.ZodiacPilot="Zodiac Pilot",e.StableWallet="StableWallet",e.Echooo="Echooo",e.Keplr="Keplr"}(qF||(qF={})),function(e){e.Ethereum="ethereum",e.Binance="BinanceChain",e.Tally="tally",e.Web3="web3",e.Arbitrum="arbitrum",e.XFI="xfi",e.Bitget="bitkeep",e.Avalanche="avalanche",e.Bitski="Bitski",e.Enkrypt="enkrypt",e.Zeal="zeal",e.Phantom="phantom",e.OKXWallet="okxwallet",e.Trust="trustwallet",e.Frontier="frontier",e.DeFiConnectProvider="deficonnectProvider",e.Safeheron="safeheron",e.Talisman="talismanEth",e.OneKey="$onekey",e.RoninWallet="ronin",e.Coin98Wallet="coin98",e.SubWallet="SubWallet",e.Kayros="kayros",e.FoxWallet="foxwallet",e.Echooo="echooo"}(QF||(QF={}));Event;const JF=null;function YF(e,t){return async()=>({provider:window.ethereum.providers&&Array.isArray(window.ethereum.providers)?ZF(e,t):window.ethereum})}function ZF(e,t){return window.ethereum.providers.find((r=>t?!!r[e]&&!$F(e,r):!!r[e]))}function $F(e,t){const r=Object.values(KF).filter((t=>t!==e&&t!==KF.Detected));return r.some((e=>!!t[e]))}const XF={label:qF.MetaMask,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.MetaMask]&&!$F(KF.MetaMask,e),getIcon:async()=>(await r.e(65114).then(r.bind(r,865114))).default,getInterface:YF(KF.MetaMask,!0),platforms:["all"],externalUrl:GF.MetaMask},eU={label:qF.InfinityWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.InfinityWallet],getIcon:async()=>(await r.e(86890).then(r.bind(r,286890))).default,getInterface:YF(KF.InfinityWallet),platforms:["desktop"]},tU={label:qF.Exodus,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Exodus],getIcon:async()=>(await r.e(37705).then(r.bind(r,737705))).default,getInterface:YF(KF.Exodus),platforms:["all"]},rU={label:qF.Frontier,injectedNamespace:QF.Frontier,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum&&!!e.ethereum[KF.Frontier],getIcon:async()=>(await r.e(50974).then(r.bind(r,250974))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.frontier.ethereum)}),platforms:["all"]},nU={label:qF.Brave,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.BraveWallet],getIcon:async()=>(await r.e(88437).then(r.bind(r,288437))).default,getInterface:YF(KF.BraveWallet),platforms:["all"]},iU={label:qF.Binance,injectedNamespace:QF.Binance,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Binance],getIcon:async()=>(await r.e(9469).then(r.bind(r,209469))).default,getInterface:async()=>{let e={...window.BinanceChain};window.BinanceChain=e;const t=window.BinanceChain.on.bind(window.BinanceChain);window.BinanceChain.on=(e,r)=>{t(e,"chainChanged"===e?e=>{r(`0x${parseInt(e).toString(16)}`)}:r)};const r=(0,f.createEIP1193Provider)(window.BinanceChain,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then((e=>`0x${parseInt(e).toString(16)}`)),eth_selectAccounts:JF,wallet_switchEthereumChain:JF});return r.removeListener=(e,t)=>{},{provider:r}},platforms:["desktop"],externalUrl:GF.Binance},oU={label:qF.Coinbase,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Coinbase]||!!e&&!!e[KF.CoinbaseExtension],getIcon:async()=>(await r.e(93135).then(r.bind(r,793135))).default,getInterface:async()=>{const{provider:e}=await YF(KF.CoinbaseExtension)(),t=e.on.bind(e);return e.on=(e,r)=>{t(e,"chainChanged"===e?e=>{r(`0x${parseInt(e).toString(16)}`)}:r)},{provider:e}},platforms:["all"],externalUrl:GF.Coinbase},aU={label:qF.Detected,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Detected],getIcon:async()=>(await r.e(67641).then(r.bind(r,867641))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["all"]},sU={label:qF.Trust,injectedNamespace:QF.Trust,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Trust],getIcon:async()=>(await r.e(73045).then(r.bind(r,173045))).default,getInterface:async()=>{let e;return e=window.hasOwnProperty(QF.Ethereum)&&window[QF.Ethereum].isTrust?window[QF.Ethereum]:window[QF.Trust],{provider:e}},platforms:["all"],externalUrl:GF.Trust},cU={label:qF.Opera,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Opera],getIcon:async()=>(await r.e(74676).then(r.bind(r,874676))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{eth_requestAccounts:async({baseRequest:e})=>e({method:"eth_accounts"}),eth_selectAccounts:JF})}),platforms:["all"]},uU={label:qF.Status,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Status],getIcon:async()=>(await r.e(99573).then(r.bind(r,799573))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},lU={label:qF.AlphaWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.AlphaWallet],getIcon:async()=>(await r.e(60778).then(r.bind(r,960778))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:JF,eth_selectAccounts:JF})}),platforms:["mobile"]},dU={label:qF.ApexWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.ApexWallet],getIcon:async()=>(await r.e(31234).then(r.bind(r,331234))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},fU={label:qF.AToken,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.AToken],getIcon:async()=>(await r.e(73431).then(r.bind(r,73431))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},hU={label:qF.BifrostWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.BifrostWallet],getIcon:async()=>(await r.e(37107).then(r.bind(r,737107))).default,getInterface:YF(KF.BifrostWallet),platforms:["all"]},pU={label:qF.Bitpie,injectedNamespace:QF.Ethereum,checkProviderIdentity:()=>!!window.Bitpie,getIcon:async()=>(await r.e(58044).then(r.bind(r,258044))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:JF,eth_selectAccounts:JF})}),platforms:["mobile"]},gU={label:qF.BlockWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.BlockWallet],getIcon:async()=>(await r.e(50439).then(r.bind(r,250439))).default,getInterface:YF(KF.BlockWallet),platforms:["desktop"]},mU={label:qF.Frame,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Frame],getIcon:async()=>(await r.e(46902).then(r.bind(r,446902))).default,getInterface:async()=>{const e=window.ethereum;if(!e||!e.connected)throw new Error("Frame App must be open with a hot wallet connected. If not installed first download the Frame App.");return{provider:e}},platforms:["desktop"]},yU={label:qF.HuobiWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.HuobiWallet],getIcon:async()=>(await r.e(45131).then(r.bind(r,445131))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:JF,eth_selectAccounts:JF})}),platforms:["mobile"]},bU={label:qF.HyperPay,injectedNamespace:QF.Ethereum,checkProviderIdentity:()=>!!window.hiWallet,getIcon:async()=>(await r.e(41355).then(r.bind(r,741355))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:JF,eth_selectAccounts:JF})}),platforms:["mobile"]},vU={label:qF.ImToken,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.ImToken],getIcon:async()=>(await r.e(28172).then(r.bind(r,528172))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{eth_selectAccounts:JF})}),platforms:["mobile"]},wU={label:qF.Liquality,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Liquality],getIcon:async()=>(await r.e(579).then(r.bind(r,200579))).default,getInterface:async()=>{const e=(0,f.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:JF,eth_selectAccounts:JF});return e.removeListener=(e,t)=>{},{provider:e}},platforms:["desktop"]},AU={label:qF.MeetOne,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&"MEETONE"===e[KF.MeetOne],getIcon:async()=>(await r.e(80750).then(r.bind(r,980750))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},CU={label:qF.MyKey,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.MyKey],getIcon:async()=>(await r.e(54922).then(r.bind(r,154922))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},EU={label:qF.OwnBit,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.OwnBit],getIcon:async()=>(await r.e(6955).then(r.bind(r,629336))).default,getInterface:async()=>{const e=(0,f.createEIP1193Provider)(window.ethereum,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then((e=>`0x${parseInt(e).toString(16)}`)),wallet_switchEthereumChain:JF,eth_selectAccounts:JF});return e.removeListener=(e,t)=>{},e.on=(e,t)=>{},{provider:e}},platforms:["mobile"]},xU={label:qF.TokenPocket,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.TokenPocket]&&!e[KF.TP],getIcon:async()=>(await r.e(71452).then(r.bind(r,171452))).default,getInterface:YF(KF.TokenPocket),platforms:["all"]},SU={label:qF.TP,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.TP],getIcon:async()=>(await r.e(6347).then(r.bind(r,6347))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:JF,eth_selectAccounts:JF})}),platforms:["mobile"]},IU={label:qF.XDEFI,injectedNamespace:QF.XFI,checkProviderIdentity:({provider:e})=>e&&e.ethereum&&e.ethereum[KF.XDEFI],getIcon:async()=>(await r.e(81837).then(r.bind(r,381837))).default,getInterface:async()=>({provider:window.xfi&&window.xfi.ethereum}),platforms:["all"],externalUrl:GF.XDEFI},kU={label:qF.OneInch,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.OneInch],getIcon:async()=>(await r.e(62687).then(r.bind(r,162687))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum)}),platforms:["mobile"]},_U={label:qF.Tokenary,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Tokenary],getIcon:async()=>(await r.e(67546).then(r.bind(r,467546))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum)}),platforms:["all"]},TU={label:qF.Tally,injectedNamespace:QF.Tally,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Tally],getIcon:async()=>(await r.e(20712).then(r.bind(r,220712))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.tally)}),platforms:["desktop"]},MU={label:qF.Zeal,injectedNamespace:QF.Zeal,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Zeal],getIcon:async()=>(await r.e(74051).then(r.bind(r,874051))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.zeal)}),platforms:["desktop"]},PU={label:qF.Rabby,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Rabby],getIcon:async()=>(await r.e(75307).then(r.bind(r,975307))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum)}),platforms:["desktop","mobile"]},jU={label:qF.MathWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.MathWallet],getIcon:async()=>(await r.e(31948).then(r.bind(r,131948))).default,getInterface:YF(KF.MathWallet),platforms:["all"]},DU={label:qF.Bitget,injectedNamespace:QF.Bitget,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum[KF.Bitget],getIcon:async()=>(await r.e(79262).then(r.bind(r,979262))).default,getInterface:async()=>({provider:window.bitkeep&&window.bitkeep.ethereum}),platforms:["all"],externalUrl:GF.Bitget},OU={label:qF.Sequence,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Sequence],getIcon:async()=>(await r.e(52526).then(r.bind(r,152526))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["all"]},BU={label:qF.Core,injectedNamespace:QF.Avalanche,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Core],getIcon:async()=>(await r.e(83940).then(r.bind(r,483940))).default,getInterface:YF(KF.Core),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},NU={label:qF.Bitski,injectedNamespace:QF.Bitski,checkProviderIdentity:({provider:e})=>!!e&&!!e.getProvider&&!!e.getProvider().isBitski,getIcon:async()=>(await r.e(14351).then(r.bind(r,414351))).default,getInterface:async()=>({provider:window.Bitski&&window.Bitski.getProvider&&window.Bitski.getProvider()}),platforms:["all"]},RU={label:qF.Zerion,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Zerion],getIcon:async()=>(await r.e(1330).then(r.bind(r,901330))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum)}),platforms:["all"]},LU={label:qF.Enkrypt,injectedNamespace:QF.Enkrypt,checkProviderIdentity:({provider:e})=>!!e&&!!e.providers&&!!e.providers.ethereum,getIcon:async()=>(await r.e(68786).then(r.bind(r,868786))).default,getInterface:async()=>{const e=window.enkrypt.providers.ethereum.on.bind(window.enkrypt.providers.ethereum);window.enkrypt.providers.ethereum.on=(t,r)=>{e(t,"chainChanged"===t?e=>{r(`0x${parseInt(e).toString(16)}`)}:r)};const t=(0,f.createEIP1193Provider)(window.enkrypt.providers.ethereum,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then((e=>`0x${parseInt(e).toString(16)}`))});return t.removeListener=(e,t)=>{},{provider:t}},platforms:["all"]},FU={label:qF.Phantom,injectedNamespace:QF.Phantom,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum&&!!e.ethereum[KF.Phantom],getIcon:async()=>(await r.e(35238).then(r.bind(r,335238))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.phantom.ethereum)}),platforms:["all"],externalUrl:GF.Phantom},UU={label:qF.SafePal,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.SafePal],getIcon:async()=>(await r.e(43253).then(r.bind(r,243253))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum)}),platforms:["all"]},zU={label:qF.Rainbow,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Rainbow],getIcon:async()=>(await r.e(55485).then(r.bind(r,955485))).default,getInterface:YF(KF.Rainbow),platforms:["all"]},HU={label:qF.OKXWallet,injectedNamespace:QF.OKXWallet,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.OKXWallet],getIcon:async()=>(await r.e(96172).then(r.bind(r,896172))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.okxwallet)}),platforms:["all"],externalUrl:GF.OKXWallet},VU={label:qF.DeFiWallet,injectedNamespace:QF.DeFiConnectProvider,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.DeFiWallet],getIcon:async()=>(await r.e(7984).then(r.bind(r,107984))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.deficonnectProvider)}),platforms:["all"]},KU={label:qF.Safeheron,injectedNamespace:QF.Safeheron,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Safeheron],getIcon:async()=>(await r.e(59382).then(r.bind(r,259382))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.safeheron)}),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},GU={label:qF.Talisman,injectedNamespace:QF.Talisman,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Talisman],getIcon:async()=>(await r.e(52848).then(r.bind(r,352848))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.talismanEth)}),platforms:["desktop"],externalUrl:GF.Talisman},qU={label:qF.RoninWallet,injectedNamespace:QF.RoninWallet,checkProviderIdentity:({provider:e})=>!!e,getIcon:async()=>(await r.e(4954).then(r.bind(r,304954))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ronin.provider)}),platforms:["all"],externalUrl:GF.RoninWallet},QU=[MU,tU,rU,XF,hU,iU,oU,aU,sU,cU,uU,lU,dU,fU,DU,pU,gU,nU,mU,yU,bU,vU,wU,AU,CU,EU,xU,SU,IU,kU,_U,TU,PU,jU,OU,BU,NU,LU,FU,HU,RU,zU,UU,VU,eU,KU,GU,{label:qF.OneKey,injectedNamespace:QF.OneKey,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum&&!!e.ethereum[KF.OneKey],getIcon:async()=>(await r.e(14752).then(r.bind(r,892371))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.$onekey.ethereum)}),platforms:["all"],externalUrl:GF.OneKey},{label:qF.Fordefi,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Fordefi],getIcon:async()=>(await r.e(58206).then(r.bind(r,958206))).default,getInterface:YF(KF.Fordefi,!0),platforms:["desktop"]},qU,{label:qF.Coin98Wallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Coin98Wallet],getIcon:async()=>(await r.e(1538).then(r.bind(r,101538))).default,getInterface:async()=>{let e;return e=window.hasOwnProperty(QF.Ethereum)&&window[QF.Ethereum].isCoin98?window[QF.Ethereum]:window[QF.Coin98Wallet].provider,{provider:e}},platforms:["all"],externalUrl:GF.Coin98Wallet},{label:qF.SubWallet,injectedNamespace:QF.SubWallet,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.SubWallet],getIcon:async()=>(await r.e(33824).then(r.bind(r,333824))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.SubWallet)}),platforms:["all"],externalUrl:GF.SubWallet},{label:qF.Kayros,injectedNamespace:QF.Kayros,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Kayros],getIcon:async()=>(await r.e(98766).then(r.bind(r,198766))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.kayros)}),platforms:["desktop"]},{label:qF.FoxWallet,injectedNamespace:QF.FoxWallet,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.FoxWallet],getIcon:async()=>(await r.e(42131).then(r.bind(r,242131))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.foxwallet)}),platforms:["mobile"]},{label:qF.Lif3Wallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Lif3Wallet],getIcon:async()=>(await r.e(99318).then(r.bind(r,699318))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:JF,eth_selectAccounts:JF})}),platforms:["mobile"]},{label:qF.ZodiacPilot,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.ZodiacPilot],getIcon:async()=>(await r.e(54029).then(r.bind(r,654029))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum)}),platforms:["desktop"],externalUrl:GF.ZodiacPilot},{label:qF.StableWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.StableWallet],getIcon:async()=>(await r.e(97913).then(r.bind(r,597913))).default,getInterface:YF(KF.StableWallet),platforms:["mobile"]},{label:qF.Echooo,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Echooo],getIcon:async()=>(await r.e(13876).then(r.bind(r,613876))).default,getInterface:YF(KF.Echooo),platforms:["all"],externalUrl:GF.Echooo},{label:qF.Keplr,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Keplr],getIcon:async()=>(await r.e(26169).then(r.bind(r,226169))).default,getInterface:YF(KF.Keplr),platforms:["all"],externalUrl:GF.Keplr}],WU=d.object({label:d.string().required(),getIcon:d.function().arity(0).required(),getInterface:d.function().maxArity(1).required(),injectedNamespace:d.string().required(),checkProviderIdentity:d.function().arity(1).required(),platforms:d.array().items(d.string()),externalUrl:d.string()}),JU=d.array().items(WU),YU=d.object().pattern(/\w+/,d.any().allow(d.boolean(),d.array().items(d.string()))),ZU=d.object({custom:JU,filter:YU,displayUnavailable:[d.boolean(),d.array().items(d.string())],walletUnavailableMessage:d.function(),sort:d.function(),externalUrl:d.string(),disable6963Support:d.boolean()}),$U=d.object({uuid:d.string().required(),name:d.string().required(),icon:d.string().required(),rdns:d.string().required()}),XU=d.object({info:$U.required(),provider:d.object().required()});Error;const ez=[];function tz(){window.addEventListener("eip6963:announceProvider",(e=>{const t=e,{detail:r}=t;if(!r)return;if(t){const e=(e=>(0,f.tf)(XU,e))(r);if(e&&e.error)throw e.error}const{info:n,provider:i}=r,{name:o,icon:a}=n;var s;(s=a)&&(/)<[^<]*)*<\/script>/gi.test(s)||/\bon[a-z]+\s*=\s*["']?(?:javascript:)?/gi.test(s)||/\b(href|xlink:href)\s*=\s*["']?javascript:/gi.test(s))?console.error(`The icon for injected wallet: ${o} contains executable JavaScript and has been blocked.`):ez.push({label:o,getIcon:async()=>a,getInterface:async()=>({provider:i}),platforms:["all"],eip6963Provider:i,checkProviderIdentity:({provider:e})=>!!e})})),window.dispatchEvent(new CustomEvent("eip6963:requestProvider"))}const rz=function(e){if("undefined"==typeof window)return()=>null;if(e){const t=(e=>(0,f.tf)(ZU,e))(e);if(t&&t.error)throw t.error}return!e?.disable6963Support&&tz(),t=>{const{device:r}=t,{custom:n=[],filter:i={},displayUnavailable:o,sort:a,walletUnavailableMessage:s}=e||{},c=WF([...n,...ez,...QU],(({label:e})=>e)).reduce(((e,t)=>{const{label:n,platforms:a,injectedNamespace:c,checkProviderIdentity:u,eip6963Provider:l}=t,d=i[n],f=!1===d,h=((e,t,r)=>!(!e||!t({provider:e,device:r})&&!e.providers?.some((e=>t({provider:e,device:r})))))(l||window[c],u,r);let p=!1;Array.isArray(d)&&(d.includes(r.type)||r.os&&d.includes(r.os.name))&&(p=!0),"unavailable"!==d||h||(p=!0);const g=!a.includes("all")&&null!==r.type&&!a.includes(r.type)&&!a.includes(r.os.name);return!f&&!p&&!g&&(h||!0===o||Array.isArray(o)&&o.length&&o.includes(t.label))&&e.push((!0===o||Array.isArray(o)&&o.length&&o.includes(t.label))&&!h?{...t,getInterface:async()=>{throw new Error(s?s(t):(({label:e,externalUrl:t})=>t?`Please install or switch to ${e} to continue`:`Please install or enable ${e} to continue`)(t))}}:t),e}),[]);if(c.length){const e=c.length>1,t=c.filter((t=>{const{label:r}=t;return!(r===qF.Detected&&e)})).map((({label:e,getIcon:t,getInterface:r})=>({label:e,getIcon:t,getInterface:r}))).sort(((e,t)=>e.labelt.label?1:0));return a?a(t):t}return[]}},nz=d.object({handleUri:d.func().optional(),version:d.number().optional().custom(((e,t)=>{if(1===e)console.warn("Version 1 of WalletConnect has been fully deprecated. This version of @web3-onboard/walletconnect only supports version 2");else if(2!==e&&void 0!==e)return t.error("any.invalid",{message:"Invalid version number. This version of @web3-onboard/walletconnect only supports version 2"});return e}),"Custom version validation"),projectId:d.string().messages({"any.required":"WalletConnect version 2 requires a projectId. Please visit https://cloud.walletconnect.com to get one."}),dappUrl:d.string().optional().custom(((e,t)=>e||t.message({message:"It is strongly recommended to supply a dappUrl as it is required by some wallets (i.e. MetaMask) to allow connection.",type:"any.custom"})),"Custom dappUrl validation"),requiredChains:d.array().items(d.number()).optional(),optionalChains:d.array().items(d.number()).optional(),qrModalOptions:d.object().optional(),additionalRequiredMethods:d.array().items(d.string()).optional(),additionalOptionalMethods:d.array().items(d.string()).optional()}),iz=["eth_sendTransaction","eth_signTransaction","personal_sign","eth_sign","eth_signTypedData","eth_signTypedData_v4","wallet_addEthereumChain","wallet_switchEthereumChain"];const oz=function(e){if(!e.projectId)throw new Error("WalletConnect requires a projectId. Please visit https://cloud.walletconnect.com to get one.");e.dappUrl||console.warn("It is strongly recommended to supply a dappUrl to the WalletConnect init object as it is required by some wallets (i.e. MetaMask) to allow connection.");const{projectId:t,handleUri:n,requiredChains:i,optionalChains:o,qrModalOptions:a,additionalRequiredMethods:s,additionalOptionalMethods:c,dappUrl:u}=e;let l;return()=>({label:"WalletConnect",getIcon:async()=>(await r.e(69995).then(r.bind(r,869995))).default,getInterface:async({chains:d,EventEmitter:f,appMetadata:h})=>{const{ProviderRpcError:p,ProviderRpcErrorCode:g}=await Promise.resolve().then(r.bind(r,645599)),{default:m,REQUIRED_METHODS:y}=await Promise.all([r.e(14485),r.e(99432)]).then(r.bind(r,314485)),{Subject:b,fromEvent:v}=await r.e(3540).then(r.bind(r,303540)),{takeUntil:w,take:A}=await r.e(47402).then(r.bind(r,647402)),C=Array.isArray(i)&&i.length&&i.every((e=>!isNaN(e)))?i.map((e=>parseInt(e))):[],E=Array.isArray(o)&&o.length&&o.every((e=>!isNaN(e)))?o.map((e=>parseInt(e))):d.map((({id:e})=>parseInt(e,16))),x=new Set(s&&Array.isArray(s)?[...s,...y]:y),S=Array.from(x),I=c&&Array.isArray(c)?[...c,...iz]:iz,k=await m.init({projectId:t,chains:C,methods:S,optionalChains:E,optionalMethods:I,showQrModal:!0,rpcMap:d.map((({id:e,rpcUrl:t})=>({id:e,rpcUrl:t}))).reduce(((e,{id:t,rpcUrl:r})=>(e[parseInt(t,16)]=r||"",e)),{}),metadata:(()=>{if(!h)return;const e=u||h.explore||"";!e&&!e.length&&console.warn("It is strongly recommended to supply a dappUrl as it is required by some wallets (i.e. MetaMask) to allow connection.");const t={name:h.name,description:h.description||"",url:e,icons:[]};return void 0!==h.icon&&h.icon.length&&(t.icons=[h.icon]),void 0!==h.logo&&h.logo.length&&(t.icons=t.icons.length?[...t.icons,h.logo]:[h.logo]),t})(),qrModalOptions:a}),_=new f;return{provider:new class{constructor({connector:t,chains:r}){this.emit=_.emit.bind(_),this.on=_.on.bind(_),this.removeListener=_.removeListener.bind(_),this.connector=t,this.chains=r,this.disconnected$=new b,v(this.connector,"accountsChanged",(e=>e)).pipe(w(this.disconnected$)).subscribe({next:e=>{const t=Array.isArray(e)?e:[e];this.emit("accountsChanged",t)},error:console.warn}),v(this.connector,"chainChanged",(e=>e)).pipe(w(this.disconnected$)).subscribe({next:e=>{const t=az(e)?e:`0x${e.toString(16)}`;this.emit("chainChanged",t)},error:console.warn}),v(this.connector,"session_delete",(e=>e)).pipe(w(this.disconnected$)).subscribe({next:()=>{this.emit("accountsChanged",[]),this.disconnected$.next(!0),"undefined"!=typeof localStorage&&localStorage.removeItem("walletconnect")},error:console.warn}),this.disconnect=()=>{this.connector.session&&(this.connector.disconnect(),l=null)},e&&n&&v(this.connector,"display_uri",(e=>e)).pipe(w(this.disconnected$)).subscribe((async e=>{try{n&&await n(e)}catch(ys){throw`An error occurred when handling the URI. Error: ${ys}`}}));(()=>{const e=this.connector.session;l=e,e&&(this.emit("accountsChanged",this.connector.accounts),this.emit("chainChanged",this.connector.chainId))})(),this.request=async({method:e,params:t})=>{if("eth_chainId"===e)return az(this.connector.chainId)?this.connector.chainId:`0x${this.connector.chainId.toString(16)}`;if("eth_requestAccounts"===e)return new Promise((async(e,t)=>{if(v(this.connector,"connect",(e=>e)).pipe(A(1)).subscribe({next:({chainId:t})=>{this.emit("accountsChanged",this.connector.accounts);const r=az(t)?t:`0x${t.toString(16)}`;this.emit("chainChanged",r),e(this.connector.accounts)},error:t}),this.connector.session){const t=this.connector.accounts,r=this.connector.chainId;l=this.connector.session;const n=`0x${r.toString(16)}`;return this.emit("chainChanged",n),e(t)}await this.connector.connect().catch((e=>{console.error("err creating new session: ",e),t(new p({code:4001,message:"User rejected the request."}))}))}));if("eth_selectAccounts"===e)throw new p({code:g.UNSUPPORTED_METHOD,message:`The Provider does not support the requested method: ${e}`});if("wallet_switchEthereumChain"==e){if(!t)throw new p({code:g.INVALID_PARAMS,message:"The Provider requires a chainId to be passed in as an argument"});const e=t[0];if(!e.hasOwnProperty("chainId")||void 0===e.chainId)throw new p({code:g.INVALID_PARAMS,message:"The Provider requires a chainId to be passed in as an argument"});return this.connector.request({method:"wallet_switchEthereumChain",params:[{chainId:e.chainId}]})}return this.connector.request({method:e,params:t})}}}({chains:d,connector:k}),instance:l}}})},az=e=>!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/));const sz=function(e){if(!e)throw new Error("WalletConnect requires an initialization object to be passed - see the official docs for an example: https://onboard.blocknative.com/docs/wallets/walletconnect");if(e){const t=(e=>((e,t)=>{const r=e.validate(t);return r.error?r:null})(nz,e))(e);if(t)throw t}return oz(e)};var cz="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},uz=function(e){try{return!!e()}catch(ys){return!0}},lz=!uz((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),dz=lz,fz=Function.prototype,hz=fz.call,pz=dz&&fz.bind.bind(hz,hz),gz=dz?pz:function(e){return function(){return hz.apply(e,arguments)}},mz=gz,yz=mz({}.toString),bz=mz("".slice),vz=function(e){return bz(yz(e),8,-1)},wz=uz,Az=vz,Cz=Object,Ez=gz("".split),xz=wz((function(){return!Cz("z").propertyIsEnumerable(0)}))?function(e){return"String"===Az(e)?Ez(e,""):Cz(e)}:Cz,Sz=function(e){return null==e},Iz=Sz,kz=TypeError,_z=function(e){if(Iz(e))throw new kz("Can't call method on "+e);return e},Tz=xz,Mz=_z,Pz=function(e){return Tz(Mz(e))},jz=function(e){return e&&e.Math===Math&&e},Dz=jz("object"==typeof globalThis&&globalThis)||jz("object"==typeof window&&window)||jz("object"==typeof self&&self)||jz("object"==typeof cz&&cz)||jz("object"==typeof cz&&cz)||function(){return this}()||Function("return this")(),Oz={exports:{}},Bz=Dz,Nz=Object.defineProperty,Rz=function(e,t){try{Nz(Bz,e,{value:t,configurable:!0,writable:!0})}catch(ys){Bz[e]=t}return t},Lz=Dz,Fz=Rz,Uz="__core-js_shared__",zz=Oz.exports=Lz[Uz]||Fz(Uz,{});(zz.versions||(zz.versions=[])).push({version:"3.38.1",mode:"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Hz,Vz,Kz=Oz.exports,Gz=function(e,t){return Kz[e]||(Kz[e]=t||{})},qz=_z,Qz=Object,Wz=function(e){return Qz(qz(e))},Jz=Wz,Yz=gz({}.hasOwnProperty),Zz=Object.hasOwn||function(e,t){return Yz(Jz(e),t)},$z=gz,Xz=0,eH=Math.random(),tH=$z(1..toString),rH=function(e){return"Symbol("+(void 0===e?"":e)+")_"+tH(++Xz+eH,36)},nH=Dz.navigator,iH=nH&&nH.userAgent,oH=iH?String(iH):"",aH=Dz,sH=oH,cH=aH.process,uH=aH.Deno,lH=cH&&cH.versions||uH&&uH.version,dH=lH&&lH.v8;dH&&(Vz=(Hz=dH.split("."))[0]>0&&Hz[0]<4?1:+(Hz[0]+Hz[1])),!Vz&&sH&&(!(Hz=sH.match(/Edge\/(\d+)/))||Hz[1]>=74)&&(Hz=sH.match(/Chrome\/(\d+)/))&&(Vz=+Hz[1]);var fH=Vz,hH=fH,pH=uz,gH=Dz.String,mH=!!Object.getOwnPropertySymbols&&!pH((function(){var e=Symbol("symbol detection");return!gH(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&hH&&hH<41})),yH=mH&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bH=Gz,vH=Zz,wH=rH,AH=mH,CH=yH,EH=Dz.Symbol,xH=bH("wks"),SH=CH?EH.for||EH:EH&&EH.withoutSetter||wH,IH=function(e){return vH(xH,e)||(xH[e]=AH&&vH(EH,e)?EH[e]:SH("Symbol."+e)),xH[e]},kH="object"==typeof document&&document.all,_H=void 0===kH&&void 0!==kH?function(e){return"function"==typeof e||e===kH}:function(e){return"function"==typeof e},TH=_H,MH=function(e){return"object"==typeof e?null!==e:TH(e)},PH=MH,jH=String,DH=TypeError,OH=function(e){if(PH(e))return e;throw new DH(jH(e)+" is not an object")},BH={},NH=!uz((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),RH=NH&&uz((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),LH={},FH=MH,UH=Dz.document,zH=FH(UH)&&FH(UH.createElement),HH=function(e){return zH?UH.createElement(e):{}},VH=HH,KH=!NH&&!uz((function(){return 7!==Object.defineProperty(VH("div"),"a",{get:function(){return 7}}).a})),GH=lz,qH=Function.prototype.call,QH=GH?qH.bind(qH):function(){return qH.apply(qH,arguments)},WH=Dz,JH=_H,YH=function(e,t){return arguments.length<2?(r=WH[e],JH(r)?r:void 0):WH[e]&&WH[e][t];var r},ZH=gz({}.isPrototypeOf),$H=YH,XH=_H,eV=ZH,tV=Object,rV=yH?function(e){return"symbol"==typeof e}:function(e){var t=$H("Symbol");return XH(t)&&eV(t.prototype,tV(e))},nV=String,iV=function(e){try{return nV(e)}catch(ys){return"Object"}},oV=_H,aV=iV,sV=TypeError,cV=function(e){if(oV(e))return e;throw new sV(aV(e)+" is not a function")},uV=cV,lV=Sz,dV=function(e,t){var r=e[t];return lV(r)?void 0:uV(r)},fV=QH,hV=_H,pV=MH,gV=TypeError,mV=QH,yV=MH,bV=rV,vV=dV,wV=function(e,t){var r,n;if("string"===t&&hV(r=e.toString)&&!pV(n=fV(r,e)))return n;if(hV(r=e.valueOf)&&!pV(n=fV(r,e)))return n;if("string"!==t&&hV(r=e.toString)&&!pV(n=fV(r,e)))return n;throw new gV("Can't convert object to primitive value")},AV=TypeError,CV=IH("toPrimitive"),EV=function(e,t){if(!yV(e)||bV(e))return e;var r,n=vV(e,CV);if(n){if(void 0===t&&(t="default"),r=mV(n,e,t),!yV(r)||bV(r))return r;throw new AV("Can't convert object to primitive value")}return void 0===t&&(t="number"),wV(e,t)},xV=rV,SV=function(e){var t=EV(e,"string");return xV(t)?t:t+""},IV=NH,kV=KH,_V=RH,TV=OH,MV=SV,PV=TypeError,jV=Object.defineProperty,DV=Object.getOwnPropertyDescriptor,OV="enumerable",BV="configurable",NV="writable";LH.f=IV?_V?function(e,t,r){if(TV(e),t=MV(t),TV(r),"function"==typeof e&&"prototype"===t&&"value"in r&&NV in r&&!r[NV]){var n=DV(e,t);n&&n[NV]&&(e[t]=r.value,r={configurable:BV in r?r[BV]:n[BV],enumerable:OV in r?r[OV]:n[OV],writable:!1})}return jV(e,t,r)}:jV:function(e,t,r){if(TV(e),t=MV(t),TV(r),kV)try{return jV(e,t,r)}catch(ys){}if("get"in r||"set"in r)throw new PV("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var RV=Math.ceil,LV=Math.floor,FV=Math.trunc||function(e){var t=+e;return(t>0?LV:RV)(t)},UV=FV,zV=function(e){var t=+e;return t!=t||0===t?0:UV(t)},HV=zV,VV=Math.max,KV=Math.min,GV=function(e,t){var r=HV(e);return r<0?VV(r+t,0):KV(r,t)},qV=zV,QV=Math.min,WV=function(e){var t=qV(e);return t>0?QV(t,9007199254740991):0},JV=WV,YV=function(e){return JV(e.length)},ZV=Pz,$V=GV,XV=YV,eK=function(e){return function(t,r,n){var i=ZV(t),o=XV(i);if(0===o)return!e&&-1;var a,s=$V(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},tK={includes:eK(!0),indexOf:eK(!1)},rK={},nK=Zz,iK=Pz,oK=tK.indexOf,aK=rK,sK=gz([].push),cK=function(e,t){var r,n=iK(e),i=0,o=[];for(r in n)!nK(aK,r)&&nK(n,r)&&sK(o,r);for(;t.length>i;)nK(n,r=t[i++])&&(~oK(o,r)||sK(o,r));return o},uK=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lK=cK,dK=uK,fK=Object.keys||function(e){return lK(e,dK)},hK=NH,pK=RH,gK=LH,mK=OH,yK=Pz,bK=fK;BH.f=hK&&!pK?Object.defineProperties:function(e,t){mK(e);for(var r,n=yK(t),i=bK(t),o=i.length,a=0;o>a;)gK.f(e,r=i[a++],n[r]);return e};var vK,wK=YH("document","documentElement"),AK=rH,CK=Gz("keys"),EK=function(e){return CK[e]||(CK[e]=AK(e))},xK=OH,SK=BH,IK=uK,kK=rK,_K=wK,TK=HH,MK="prototype",PK="script",jK=EK("IE_PROTO"),DK=function(){},OK=function(e){return"<"+PK+">"+e+""},BK=function(e){e.write(OK("")),e.close();var t=e.parentWindow.Object;return e=null,t},NK=function(){try{vK=new ActiveXObject("htmlfile")}catch(ys){}var e,t,r;NK="undefined"!=typeof document?document.domain&&vK?BK(vK):(t=TK("iframe"),r="java"+PK+":",t.style.display="none",_K.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(OK("document.F=Object")),e.close(),e.F):BK(vK);for(var n=IK.length;n--;)delete NK[MK][IK[n]];return NK()};kK[jK]=!0;var RK=Object.create||function(e,t){var r;return null!==e?(DK[MK]=xK(e),r=new DK,DK[MK]=null,r[jK]=e):r=NK(),void 0===t?r:SK.f(r,t)},LK=IH,FK=RK,UK=LH.f,zK=LK("unscopables"),HK=Array.prototype;void 0===HK[zK]&&UK(HK,zK,{configurable:!0,value:FK(null)});var VK,KK,GK,qK=function(e){HK[zK][e]=!0},QK={},WK=_H,JK=Dz.WeakMap,YK=WK(JK)&&/native code/.test(String(JK)),ZK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$K=LH,XK=ZK,eG=NH?function(e,t,r){return $K.f(e,t,XK(1,r))}:function(e,t,r){return e[t]=r,e},tG=YK,rG=Dz,nG=MH,iG=eG,oG=Zz,aG=Oz.exports,sG=EK,cG=rK,uG="Object already initialized",lG=rG.TypeError,dG=rG.WeakMap;if(tG||aG.state){var fG=aG.state||(aG.state=new dG);fG.get=fG.get,fG.has=fG.has,fG.set=fG.set,VK=function(e,t){if(fG.has(e))throw new lG(uG);return t.facade=e,fG.set(e,t),t},KK=function(e){return fG.get(e)||{}},GK=function(e){return fG.has(e)}}else{var hG=sG("state");cG[hG]=!0,VK=function(e,t){if(oG(e,hG))throw new lG(uG);return t.facade=e,iG(e,hG,t),t},KK=function(e){return oG(e,hG)?e[hG]:{}},GK=function(e){return oG(e,hG)}}var pG={set:VK,get:KK,has:GK,enforce:function(e){return GK(e)?KK(e):VK(e,{})},getterFor:function(e){return function(t){var r;if(!nG(t)||(r=KK(t)).type!==e)throw new lG("Incompatible receiver, "+e+" required");return r}}},gG={},mG={},yG={}.propertyIsEnumerable,bG=Object.getOwnPropertyDescriptor,vG=bG&&!yG.call({1:2},1);mG.f=vG?function(e){var t=bG(this,e);return!!t&&t.enumerable}:yG;var wG=NH,AG=QH,CG=mG,EG=ZK,xG=Pz,SG=SV,IG=Zz,kG=KH,_G=Object.getOwnPropertyDescriptor;gG.f=wG?_G:function(e,t){if(e=xG(e),t=SG(t),kG)try{return _G(e,t)}catch(ys){}if(IG(e,t))return EG(!AG(CG.f,e,t),e[t])};var TG={exports:{}},MG=NH,PG=Zz,jG=Function.prototype,DG=MG&&Object.getOwnPropertyDescriptor,OG=PG(jG,"name"),BG={EXISTS:OG,PROPER:OG&&"something"===function(){}.name,CONFIGURABLE:OG&&(!MG||MG&&DG(jG,"name").configurable)},NG=gz,RG=_H,LG=Oz.exports,FG=NG(Function.toString);RG(LG.inspectSource)||(LG.inspectSource=function(e){return FG(e)});var UG=LG.inspectSource,zG=gz,HG=uz,VG=_H,KG=Zz,GG=NH,qG=BG.CONFIGURABLE,QG=UG,WG=pG.enforce,JG=pG.get,YG=String,ZG=Object.defineProperty,$G=zG("".slice),XG=zG("".replace),eq=zG([].join),tq=GG&&!HG((function(){return 8!==ZG((function(){}),"length",{value:8}).length})),rq=String(String).split("String"),nq=TG.exports=function(e,t,r){"Symbol("===$G(YG(t),0,7)&&(t="["+XG(YG(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!KG(e,"name")||qG&&e.name!==t)&&(GG?ZG(e,"name",{value:t,configurable:!0}):e.name=t),tq&&r&&KG(r,"arity")&&e.length!==r.arity&&ZG(e,"length",{value:r.arity});try{r&&KG(r,"constructor")&&r.constructor?GG&&ZG(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(ys){}var n=WG(e);return KG(n,"source")||(n.source=eq(rq,"string"==typeof t?t:"")),e};Function.prototype.toString=nq((function(){return VG(this)&&JG(this).source||QG(this)}),"toString");var iq=_H,oq=LH,aq=TG.exports,sq=Rz,cq=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;if(iq(r)&&aq(r,o,n),n.global)i?e[t]=r:sq(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(ys){}i?e[t]=r:oq.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},uq={},lq=cK,dq=uK.concat("length","prototype");uq.f=Object.getOwnPropertyNames||function(e){return lq(e,dq)};var fq={};fq.f=Object.getOwnPropertySymbols;var hq,pq,gq,mq=YH,yq=uq,bq=fq,vq=OH,wq=gz([].concat),Aq=mq("Reflect","ownKeys")||function(e){var t=yq.f(vq(e)),r=bq.f;return r?wq(t,r(e)):t},Cq=Zz,Eq=Aq,xq=gG,Sq=LH,Iq=function(e,t,r){for(var n=Eq(t),i=Sq.f,o=xq.f,a=0;a=t.length)return e.target=null,nW(void 0,!0);switch(e.kind){case"keys":return nW(r,!1);case"values":return nW(t[r],!1)}return nW([r,t[r]],!1)}),"values"),uW=XQ.Arguments=XQ.Array;if($Q("keys"),$Q("values"),$Q("entries"),iW&&"values"!==uW.name)try{tW(uW,"name",{value:"values"})}catch(ys){}var lW=NH,dW=gz,fW=QH,hW=uz,pW=fK,gW=fq,mW=mG,yW=Wz,bW=xz,vW=Object.assign,wW=Object.defineProperty,AW=dW([].concat),CW=!vW||hW((function(){if(lW&&1!==vW({b:1},vW(wW({},"a",{enumerable:!0,get:function(){wW(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!==vW({},e)[r]||pW(vW({},t)).join("")!==n}))?function(e,t){for(var r=yW(e),n=arguments.length,i=1,o=gW.f,a=mW.f;n>i;)for(var s,c=bW(arguments[i++]),u=o?AW(pW(c),o(c)):pW(c),l=u.length,d=0;l>d;)s=u[d++],lW&&!fW(a,c,s)||(r[s]=c[s]);return r}:vW,EW=CW;Vq({target:"Object",stat:!0,arity:2,forced:Object.assign!==EW},{assign:EW});var xW={};xW[IH("toStringTag")]="z";var SW="[object z]"===String(xW),IW=_H,kW=vz,_W=IH("toStringTag"),TW=Object,MW="Arguments"===kW(function(){return arguments}()),PW=SW?kW:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(ys){}}(t=TW(e),_W))?r:MW?kW(t):"Object"===(n=kW(t))&&IW(t.callee)?"Arguments":n},jW=PW,DW=String,OW=function(e){if("Symbol"===jW(e))throw new TypeError("Cannot convert a Symbol value to a string");return DW(e)},BW=OH,NW=function(){var e=BW(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},RW=QH,LW=Zz,FW=ZH,UW=NW,zW=RegExp.prototype,HW=function(e){var t=e.flags;return void 0!==t||"flags"in zW||LW(e,"flags")||!FW(zW,e)?t:RW(UW,e)},VW=BG.PROPER,KW=cq,GW=OH,qW=OW,QW=uz,WW=HW,JW="toString",YW=RegExp.prototype,ZW=YW[JW],$W=QW((function(){return"/a/b"!==ZW.call({source:"a",flags:"b"})})),XW=VW&&ZW.name!==JW;($W||XW)&&KW(YW,JW,(function(){var e=GW(this);return"/"+qW(e.source)+"/"+qW(WW(e))}),{unsafe:!0});var eJ=HH("span").classList,tJ=eJ&&eJ.constructor&&eJ.constructor.prototype,rJ=tJ===Object.prototype?void 0:tJ,nJ=Dz,iJ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},oJ=rJ,aJ=cW,sJ=eG,cJ=dQ,uJ=IH("iterator"),lJ=aJ.values,dJ=function(e,t){if(e){if(e[uJ]!==lJ)try{sJ(e,uJ,lJ)}catch(ys){e[uJ]=lJ}if(cJ(e,t,!0),iJ[t])for(var r in aJ)if(e[r]!==aJ[r])try{sJ(e,r,aJ[r])}catch(ys){e[r]=aJ[r]}}};for(var fJ in iJ)dJ(nJ[fJ]&&nJ[fJ].prototype,fJ);function hJ(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);ib)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")})),aY=QH,sY=gz,cY=OW,uY=NW,lY=XJ,dY=RK,fY=pG.get,hY=rY,pY=oY,gY=Gz("native-string-replace",String.prototype.replace),mY=RegExp.prototype.exec,yY=mY,bY=sY("".charAt),vY=sY("".indexOf),wY=sY("".replace),AY=sY("".slice),CY=function(){var e=/a/,t=/b*/g;return aY(mY,e,"a"),aY(mY,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),EY=lY.BROKEN_CARET,xY=void 0!==/()??/.exec("")[1];(CY||xY||EY||hY||pY)&&(yY=function(e){var t,r,n,i,o,a,s,c=this,u=fY(c),l=cY(e),d=u.raw;if(d)return d.lastIndex=c.lastIndex,t=aY(yY,d,l),c.lastIndex=d.lastIndex,t;var f=u.groups,h=EY&&c.sticky,p=aY(uY,c),g=c.source,m=0,y=l;if(h&&(p=wY(p,"y",""),-1===vY(p,"g")&&(p+="g"),y=AY(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==bY(l,c.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,m++),r=new RegExp("^(?:"+g+")",p)),xY&&(r=new RegExp("^"+g+"$(?!\\s)",p)),CY&&(n=c.lastIndex),i=aY(mY,h?r:c,y),h?i?(i.input=AY(i.input,m),i[0]=AY(i[0],m),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:CY&&i&&(c.lastIndex=c.global?i.index+i[0].length:n),xY&&i&&i.length>1&&aY(gY,i[0],r,(function(){for(o=1;o=s?e?"":void 0:(n=UY(o,a))<55296||n>56319||a+1===s||(i=UY(o,a+1))<56320||i>57343?e?FY(o,a):n:e?zY(o,a,a+2):i-56320+(n-55296<<10)+65536}},VY={codeAt:HY(!1),charAt:HY(!0)},KY=VY.charAt,GY=function(e,t,r){return t+(r?KY(e,t).length:1)},qY=QH,QY=OH,WY=_H,JY=vz,YY=SY,ZY=TypeError,$Y=function(e,t){var r=e.exec;if(WY(r)){var n=qY(r,e,t);return null!==n&&QY(n),n}if("RegExp"===JY(e))return qY(YY,e,t);throw new ZY("RegExp#exec called on incompatible receiver")},XY=QH,eZ=OH,tZ=Sz,rZ=WV,nZ=OW,iZ=_z,oZ=dV,aZ=GY,sZ=$Y;function cZ(e){const t=e.match(/(https?:\/\/[^\s]+)/);return t?t[0]:null}OY("match",(function(e,t,r){return[function(t){var r=iZ(this),n=tZ(t)?void 0:oZ(t,e);return n?XY(n,t,r):new RegExp(t)[e](nZ(r))},function(e){var n=eZ(this),i=nZ(e),o=r(t,n,i);if(o.done)return o.value;if(!n.global)return sZ(n,i);var a=n.unicode;n.lastIndex=0;for(var s,c=[],u=0;null!==(s=sZ(n,i));){var l=nZ(s[0]);c[u]=l,""===l&&(n.lastIndex=aZ(i,rZ(n.lastIndex),a)),u++}return 0===u?null:c}]}));var uZ=lz,lZ=Function.prototype,dZ=lZ.apply,fZ=lZ.call,hZ="object"==typeof Reflect&&Reflect.apply||(uZ?fZ.bind(dZ):function(){return fZ.apply(dZ,arguments)}),pZ=gz,gZ=Wz,mZ=Math.floor,yZ=pZ("".charAt),bZ=pZ("".replace),vZ=pZ("".slice),wZ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,AZ=/\$([$&'`]|\d{1,2})/g,CZ=hZ,EZ=QH,xZ=gz,SZ=OY,IZ=uz,kZ=OH,_Z=_H,TZ=Sz,MZ=zV,PZ=WV,jZ=OW,DZ=_z,OZ=GY,BZ=dV,NZ=function(e,t,r,n,i,o){var a=r+e.length,s=n.length,c=AZ;return void 0!==i&&(i=gZ(i),c=wZ),bZ(o,c,(function(o,c){var u;switch(yZ(c,0)){case"$":return"$";case"&":return e;case"`":return vZ(t,0,r);case"'":return vZ(t,a);case"<":u=i[vZ(c,1,-1)];break;default:var l=+c;if(0===l)return o;if(l>s){var d=mZ(l/10);return 0===d?o:d<=s?void 0===n[d-1]?yZ(c,1):n[d-1]+yZ(c,1):o}u=n[l-1]}return void 0===u?"":u}))},RZ=$Y,LZ=IH("replace"),FZ=Math.max,UZ=Math.min,zZ=xZ([].concat),HZ=xZ([].push),VZ=xZ("".indexOf),KZ=xZ("".slice),GZ="$0"==="a".replace(/./,"$0"),qZ=!!/./[LZ]&&""===/./[LZ]("a","$0"),QZ=!IZ((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));SZ("replace",(function(e,t,r){var n=qZ?"$":"$0";return[function(e,r){var n=DZ(this),i=TZ(e)?void 0:BZ(e,LZ);return i?EZ(i,e,n,r):EZ(t,jZ(n),e,r)},function(e,i){var o=kZ(this),a=jZ(e);if("string"==typeof i&&-1===VZ(i,n)&&-1===VZ(i,"$<")){var s=r(t,o,a,i);if(s.done)return s.value}var c=_Z(i);c||(i=jZ(i));var u,l=o.global;l&&(u=o.unicode,o.lastIndex=0);for(var d,f=[];null!==(d=RZ(o,a))&&(HZ(f,d),l);){""===jZ(d[0])&&(o.lastIndex=OZ(a,PZ(o.lastIndex),u))}for(var h,p="",g=0,m=0;m=g&&(p+=KZ(a,g,v)+y,g=v+b.length)}return p+KZ(a,g)}]}),!QZ||!GZ||qZ);const WZ=e=>e.replace(/\n/g,"
").replace(/^\\/g,"");var JZ=tK.includes,YZ=qK;Vq({target:"Array",proto:!0,forced:uz((function(){return!Array(1).includes()}))},{includes:function(e){return JZ(this,e,arguments.length>1?arguments[1]:void 0)}}),YZ("includes");var ZZ=iV,$Z=TypeError,XZ=gz([].slice),e$=XZ,t$=Math.floor,r$=function(e,t){var r=e.length;if(r<8)for(var n,i,o=1;o0;)e[i]=e[--i];i!==o++&&(e[i]=n)}else for(var a=t$(r/2),s=r$(e$(e,0,a),t),c=r$(e$(e,a),t),u=s.length,l=c.length,d=0,f=0;d3)){if(C$)return!0;if(x$)return x$<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)S$.push({k:t+n,v:r})}for(S$.sort((function(e,t){return t.v-e.v})),n=0;ny$(r)?1:-1}}(e)),r=g$(i),n=0;n>>0||(Z$(Y$,r)?16:10))}:Q$;Vq({global:!0,forced:parseInt!==$$},{parseInt:$$});var X$,eX=vz,tX=gz,rX=function(e){if("Function"===eX(e))return tX(e)},nX=MH,iX=vz,oX=IH("match"),aX=function(e){var t;return nX(e)&&(void 0!==(t=e[oX])?!!t:"RegExp"===iX(e))},sX=aX,cX=TypeError,uX=function(e){if(sX(e))throw new cX("The method doesn't accept regular expressions");return e},lX=IH("match"),dX=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[lX]=!1,"/./"[e](t)}catch(n){}}return!1},fX=Vq,hX=rX,pX=gG.f,gX=WV,mX=OW,yX=uX,bX=_z,vX=dX,wX=hX("".slice),AX=Math.min,CX=vX("startsWith");function EX(e,t){let r;const n={version:null,image:null,ogTitle:null,ogDescription:null,ogType:null,siteURL:e,postURL:null,buttons:[],inputText:null,ogImage:null,state:null,ofProtocolIdentifier:null},i=(new DOMParser).parseFromString(t,"text/html").head.querySelectorAll("meta"),o=[],a=[],s=[];if(i.forEach((e=>{var t;const r=null!==(t=e.getAttribute("name"))&&void 0!==t?t:e.getAttribute("property");switch(r){case"fc:frame":case"fc:frame:image":o.push(r);break;case"of:version":case"of:accepts:push":case"of:image":a.push(r);break;case"og:image":s.push(r),a.some((e=>"og:image"===e))||a.push(r),o.some((e=>"og:image"===e))||o.push(r);break;case"og:title":case"og:description":s.push(r)}})),a.includes("of:version")&&a.includes("of:image")&&a.includes("of:accepts:push"))r="of",i.forEach((e=>{const t=e.getAttribute("name")||e.getAttribute("property"),r=e.getAttribute("content");if("og:image"===t&&(n.ogImage=r),t&&r&&t.startsWith("of:")){const e=t.split(":")[2];switch(t){case"og:title":n.ogTitle=r;break;case"og:description":n.ogDescription=r;break;case"og:type":n.ogType=r;break;case"of:version":n.version=r;break;case"of:image":n.image=r;break;case"of:post_url":n.postURL=r;break;case"of:input:text":n.inputText=r;break;case"of:state":n.state=r;break;case`of:button:${e}`:case`of:button:${e}:action`:case`of:button:${e}:target`:{let i=t.split(":").pop();const o=n.buttons.findIndex((t=>t.index===e));-1!==o?(i===e&&(i="content"),n.buttons[o][i]=r):(n.buttons.push({index:e,content:"",action:"",target:void 0}),i===e&&(i="content"),n.buttons[n.buttons.length-1][i]=r);break}}}}));else if(o.includes("fc:frame")&&o.includes("fc:frame:image"))r="fc",i.forEach((e=>{const t=e.getAttribute("name")||e.getAttribute("property"),r=e.getAttribute("content");if("og:image"===t&&(n.ogImage=r),t&&r&&t.startsWith("fc:frame")){const e=t.split(":")[3];switch(t){case"og:title":n.ogTitle=r;break;case"og:description":n.ogDescription=r;break;case"og:type":n.ogType=r;break;case"fc:frame":n.version=r;break;case"fc:frame:image":n.image=r;break;case"fc:frame:post_url":n.postURL=r;break;case"fc:frame:input:text":n.inputText=r;break;case"fc:frame:state":n.state=r;break;case`fc:frame:button:${e}`:case`fc:frame:button:${e}:action`:case`fc:frame:button:${e}:target`:case`fc:frame:button:${e}:post_url`:{let i=t.split(":").pop();const o=n.buttons.findIndex((t=>t.index===e));-1!==o?(i===e&&(i="content"),n.buttons[o][i]=r):(n.buttons.push({index:e,content:"",action:"",target:void 0,post_url:void 0}),i===e&&(i="content"),n.buttons[n.buttons.length-1][i]=r);break}}}}));else{if(!s.includes("og:image"))return r="unsupported",{isValidFrame:!1,frameType:r,message:"Not a valid Frame"};r="og",i.forEach((e=>{const t=e.getAttribute("name")||e.getAttribute("property"),r=e.getAttribute("content");if(t&&r&&t.startsWith("og:"))switch(t){case"og:image":n.ogImage=r;break;case"og:title":n.ogTitle=r;break;case"og:description":n.ogDescription=r;break;case"og:type":n.ogType=r}}))}return n.buttons.sort(((e,t)=>parseInt(e.index)-parseInt(t.index))),{isValidFrame:!0,frameType:r,frameDetails:n}}function xX(e){return!!e.match(/(https?:\/\/[^\s]+)/)}fX({target:"String",proto:!0,forced:!!(CX||(X$=pX(String.prototype,"startsWith"),!X$||X$.writable))&&!CX},{startsWith:function(e){var t=mX(bX(this));yX(e);var r=gX(AX(arguments.length>1?arguments[1]:void 0,t.length)),n=mX(e);return wX(t,r,r+n.length)===n}});var SX=Dz,IX=oH,kX=vz,_X=function(e){return IX.slice(0,e.length)===e},TX=_X("Bun/")?"BUN":_X("Cloudflare-Workers")?"CLOUDFLARE":_X("Deno/")?"DENO":_X("Node.js/")?"NODE":SX.Bun&&"string"==typeof Bun.version?"BUN":SX.Deno&&"object"==typeof Deno.version?"DENO":"process"===kX(SX.process)?"NODE":SX.window&&SX.document?"BROWSER":"REST",MX="NODE"===TX,PX=TG.exports,jX=LH,DX=function(e,t,r){return r.get&&PX(r.get,t,{getter:!0}),r.set&&PX(r.set,t,{setter:!0}),jX.f(e,t,r)},OX=YH,BX=DX,NX=NH,RX=IH("species"),LX=function(e){var t=OX(e);NX&&t&&!t[RX]&&BX(t,RX,{configurable:!0,get:function(){return this}})},FX=ZH,UX=TypeError,zX=function(e,t){if(FX(t,e))return e;throw new UX("Incorrect invocation")},HX=gz,VX=uz,KX=_H,GX=PW,qX=UG,QX=function(){},WX=YH("Reflect","construct"),JX=/^\s*(?:class|function)\b/,YX=HX(JX.exec),ZX=!JX.test(QX),$X=function(e){if(!KX(e))return!1;try{return WX(QX,[],e),!0}catch(ys){return!1}},XX=function(e){if(!KX(e))return!1;switch(GX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ZX||!!YX(JX,qX(e))}catch(ys){return!0}};XX.sham=!0;var e0,t0,r0,n0,i0=!WX||VX((function(){var e;return $X($X.call)||!$X(Object)||!$X((function(){e=!0}))||e}))?XX:$X,o0=i0,a0=iV,s0=TypeError,c0=OH,u0=function(e){if(o0(e))return e;throw new s0(a0(e)+" is not a constructor")},l0=Sz,d0=IH("species"),f0=function(e,t){var r,n=c0(e).constructor;return void 0===n||l0(r=c0(n)[d0])?t:u0(r)},h0=cV,p0=lz,g0=rX(rX.bind),m0=function(e,t){return h0(e),void 0===t?e:p0?g0(e,t):function(){return e.apply(t,arguments)}},y0=TypeError,b0=function(e,t){if(eo;o++)if((s=y(e[o]))&&d3(y3,s))return s;return new m3(!1)}n=f3(e,i)}for(c=f?e.next:n.next;!(u=a3(c,n)).done;){try{s=y(u.value)}catch(ys){p3(n,"throw",ys)}if("object"==typeof s&&s&&d3(y3,s))return s}return new m3(!1)},v3=IH("iterator"),w3=!1;try{var A3=0,C3={next:function(){return{done:!!A3++}},return:function(){w3=!0}};C3[v3]=function(){return this},Array.from(C3,(function(){throw 2}))}catch(ys){}var E3=x1,x3=function(e,t){try{if(!t&&!w3)return!1}catch(ys){return!1}var r=!1;try{var n={};n[v3]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(ys){}return r},S3=R1.CONSTRUCTOR||!x3((function(e){E3.all(e).then(void 0,(function(){}))})),I3=QH,k3=cV,_3=L1,T3=E1,M3=b3;Vq({target:"Promise",stat:!0,forced:S3},{all:function(e){var t=this,r=_3.f(t),n=r.resolve,i=r.reject,o=T3((function(){var r=k3(t.resolve),o=[],a=0,s=1;M3(e,(function(e){var c=a++,u=!1;s++,I3(r,t,e).then((function(e){u||(u=!0,o[c]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var P3=Vq,j3=R1.CONSTRUCTOR,D3=x1,O3=YH,B3=_H,N3=cq,R3=D3&&D3.prototype;if(P3({target:"Promise",proto:!0,forced:j3,real:!0},{catch:function(e){return this.then(void 0,e)}}),B3(D3)){var L3=O3("Promise").prototype.catch;R3.catch!==L3&&N3(R3,"catch",L3,{unsafe:!0})}var F3=QH,U3=cV,z3=L1,H3=E1,V3=b3;Vq({target:"Promise",stat:!0,forced:S3},{race:function(e){var t=this,r=z3.f(t),n=r.reject,i=H3((function(){var i=U3(t.resolve);V3(e,(function(e){F3(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var K3=L1;Vq({target:"Promise",stat:!0,forced:R1.CONSTRUCTOR},{reject:function(e){var t=K3.f(this);return(0,t.reject)(e),t.promise}});var G3=OH,q3=MH,Q3=L1,W3=function(e,t){if(G3(e),q3(t)&&t.constructor===e)return t;var r=Q3.f(e);return(0,r.resolve)(t),r.promise},J3=Vq,Y3=R1.CONSTRUCTOR,Z3=W3;YH("Promise"),J3({target:"Promise",stat:!0,forced:Y3},{resolve:function(e){return Z3(this,e)}});var $3=Vq,X3=uX,e6=_z,t6=OW,r6=dX,n6=gz("".indexOf);$3({target:"String",proto:!0,forced:!r6("includes")},{includes:function(e){return!!~n6(t6(e6(this)),t6(X3(e)),arguments.length>1?arguments[1]:void 0)}});var i6=_H,o6=MH,a6=TQ,s6=LH.f,c6=NH,u6=Dz,l6=gz,d6=Bq,f6=function(e,t,r){var n,i;return a6&&i6(n=t.constructor)&&n!==r&&o6(i=n.prototype)&&i!==r.prototype&&a6(e,i),e},h6=eG,p6=RK,g6=uq.f,m6=ZH,y6=aX,b6=OW,v6=HW,w6=XJ,A6=function(e,t,r){r in e||s6(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},C6=cq,E6=uz,x6=Zz,S6=pG.enforce,I6=LX,k6=rY,_6=oY,T6=IH("match"),M6=u6.RegExp,P6=M6.prototype,j6=u6.SyntaxError,D6=l6(P6.exec),O6=l6("".charAt),B6=l6("".replace),N6=l6("".indexOf),R6=l6("".slice),L6=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,F6=/a/g,U6=/a/g,z6=new M6(F6)!==F6,H6=w6.MISSED_STICKY,V6=w6.UNSUPPORTED_Y,K6=c6&&(!z6||H6||k6||_6||E6((function(){return U6[T6]=!1,M6(F6)!==F6||M6(U6)===U6||"/a/i"!==String(M6(F6,"i"))})));if(d6("RegExp",K6)){for(var G6=function(e,t){var r,n,i,o,a,s,c=m6(P6,this),u=y6(e),l=void 0===t,d=[],f=e;if(!c&&u&&l&&e.constructor===G6)return e;if((u||m6(P6,e))&&(e=e.source,l&&(t=v6(f))),e=void 0===e?"":b6(e),t=void 0===t?"":b6(t),f=e,k6&&"dotAll"in F6&&(n=!!t&&N6(t,"s")>-1)&&(t=B6(t,/s/g,"")),r=t,H6&&"sticky"in F6&&(i=!!t&&N6(t,"y")>-1)&&V6&&(t=B6(t,/y/g,"")),_6&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],a=p6(null),s=!1,c=!1,u=0,l="";n<=r;n++){if("\\"===(t=O6(e,n)))t+=O6(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:if(i+=t,"?:"===R6(e,n+1,n+3))continue;D6(L6,R6(e,n+1))&&(n+=2,c=!0),u++;continue;case">"===t&&c:if(""===l||x6(a,l))throw new j6("Invalid capture group name");a[l]=!0,o[o.length]=[l,u],c=!1,l="";continue}c?l+=t:i+=t}return[i,o]}(e),e=o[0],d=o[1]),a=f6(M6(e,t),c?this:P6,G6),(n||i||d.length)&&(s=S6(a),n&&(s.dotAll=!0,s.raw=G6(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=O6(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+O6(e,++n);return i}(e),r)),i&&(s.sticky=!0),d.length&&(s.groups=d)),e!==f)try{h6(a,"source",""===f?"(?:)":f)}catch(ys){}return a},q6=g6(M6),Q6=0;q6.length>Q6;)A6(G6,M6,q6[Q6++]);P6.constructor=G6,G6.prototype=P6,C6(u6,"RegExp",G6,{constructor:!0})}I6("RegExp");const W6={validURL:function(e){if(!e)return!1;return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\S*)?$","i").test(e)},getSaveFileName:function(e,t){return(e=(e=e.replace(/(^\w+:|^)\/\//,"")).replace(/[`~!@#$%^&*()_|+\-=?;:'",<>\{\}\[\]\\\/]/gi,"")).length>250&&(e=e.substr(-250)),t?e+".temp":e},isMediaSupportedVideo:function(e){if(!e)return;const t=W6.isMediaExternalEmbed(e);return t||"mp4"===e.split(".").pop()},isMediaExternalEmbed:function(e){return W6.isMediaYoutube(e)},isMediaYoutube:function(e){if(void 0!==e||""!==e){const t=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=|\?v=)([^#\&\?]*).*/,r=e.match(t);if(r&&11===r[2].length){return"https://www.youtube.com/embed/"+r[2]+"?autoplay=0&enablejsapi=1"}}return""},getYoutubeID:function(e){if(void 0!==e||""!==e){const t=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=|\?v=)([^#\&\?]*).*/,r=e.match(t);if(r&&11===r[2].length)return r[2]}return""}};function J6(e){const t=s().unix(Number(e));return s()().isSame(t,"day")?`Today | ${t.format("hh:mm A")}`:s()().subtract(1,"days").isSame(t,"day")?`Yesterday | ${t.format("hh:mm A")}`:s()().add(1,"days").isSame(t,"day")?`Tomorrow | ${t.format("hh:mm A")}`:t.format("DD MMM YYYY | hh:mm A")}const Y6=o.Ay.div.withConfig({displayName:"loader__StyledCircularLoader2",componentId:"sc-1p4z6sw-0"})(["width:20px;height:20px;.lds-ring{display:inline-block;position:relative;width:20px;height:20px;}.lds-ring div{box-sizing:border-box;display:block;position:absolute;width:20px;height:20px;margin:0px;border:2px solid ",";border-radius:50%;animation:lds-ring 1.2s cubic-bezier(0.5,0,0.5,1) infinite;border-color:"," transparent transparent transparent;}.lds-ring div:nth-child(1){animation-delay:-0.45s;}.lds-ring div:nth-child(2){animation-delay:-0.3s;}.lds-ring div:nth-child(3){animation-delay:-0.15s;}@keyframes lds-ring{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"],(({color:e})=>e),(({color:e})=>e)),Z6=({color:e="#fff"})=>(0,n.jsx)(Y6,Object.assign({color:e},{children:(0,n.jsxs)("div",Object.assign({className:"lds-ring"},{children:[(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{})]}))}));var $6=i.memo(Z6);const X6=({imageOverlay:e,setImageOverlay:t})=>(0,n.jsx)(e4,Object.assign({onClick:()=>{t("")},visible:Boolean(e)},{children:(0,n.jsx)("img",{src:e,alt:"overlay full-screen"})})),e4=o.Ay.div.withConfig({displayName:"overlay__ImageWrapper",componentId:"sc-1e2lr8x-0"})(["height:100vh;width:100vw;background:rgba(0,0,0,0.75);position:fixed;top:0;left:0;justify-content:center;align-items:center;display:",";z-index:2;img{max-width:80vw;height:auto;border-radius:10px;}"],(e=>e.visible?"flex":"none"));class t4{constructor(e,t){this.text=e,this.patterns=t||[]}parse(){let e=[{children:this.text}];return this.patterns.forEach((t=>{let r=[];const n=t.nonExhaustiveModeMaxMatchCount||0,i=Math.min(Math.max(Number.isInteger(n)?n:0,0)||Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);let o=0;e.forEach((e=>{if(e._matched)return void r.push(e);const n=[];let a,s=e.children,c=0;for(t.pattern.lastIndex=0;s&&(a=t.pattern.exec(s));){const e=s.substr(0,a.index);if(c=a.index,++o>i)break;n.push({children:e}),n.push(this.getMatchedPart(t,a[0],a,c)),s=s.substr(a.index+a[0].length),c+=a[0].length-1,t.pattern.lastIndex=0}n.push({children:s}),r=r.concat(n)})),e=r})),e.forEach((e=>delete e._matched)),e.filter((e=>!!e.children))}getMatchedPart(e,t,r,n){const i={};Object.keys(e).forEach((r=>{"pattern"!==r&&"renderText"!==r&&"nonExhaustiveModeMaxMatchCount"!==r&&("function"==typeof e[r]?i[r]=()=>e[r](t,n):i[r]=e[r])}));let o=t;return e.renderText&&"function"==typeof e.renderText&&(o=e.renderText(t,r)),Object.assign(Object.assign({},i),{children:o,_matched:!0})}}function r4(e){const t=e.match(/\[([^:]+):([^\]]+)\]/i);return`${t?t[2]:""}`}function n4(e){const t=e.match(/(.*?)<\/PUSHText>/i),r=e.match(/\[([^\]]+)]\((https?:\/\/[^)]+)/);if(t){const e=t[1].toLowerCase();let r;switch(e){case"primary":r=i4.PRIMARY;break;case"secondary":r=i4.GRADIENT_SECONDARY;break;case"tertiary":r=i4.GRADIENT_THIRD;break;case"white":r=i4.WHITE;break;default:r=e}const n=t[2];let i;return i=t[3].includes("\\n")?t[3].replace("\\n","
"):t[3],`
${i}`}if(r){const e=r[1];return`${e}`}return e}const i4={PRIMARY:"rgba(27.0, 150.0, 227.0, 1.0)",LINKS:"rgba(20.0, 126.0, 251.0, 1.0)",GRADIENT_PRIMARY:"rgba(226.0, 8.0, 128.0, 1.0)",GRADIENT_SECONDARY:"rgba(53.0, 197.0, 243.0, 1.0)",GRADIENT_THIRD:"rgba(103.0, 76.0, 159.0, 1.0)",TRANSPARENT:"transparent",WHITE:"rgba(255.0, 255.0, 255.0, 1.0)",DARK_WHITE:"rgba(255.0, 255.0, 255.0, 0.75)",MID_WHITE:"rgba(255.0, 255.0, 255.0, 0.5)",LIGHT_WHITE:"rgba(255.0, 255.0, 255.0, 0.25)",SLIGHTER_GRAY:"rgba(250.0, 250.0, 250.0, 1)",SLIGHT_GRAY:"rgba(231.0, 231.0, 231.0, 1)",LIGHT_GRAY:"rgba(225.0, 225.0, 225.0, 1)",MID_GRAY:"rgba(200.0, 200.0, 200.0, 1)",DARK_GRAY:"rgba(160.0, 160.0, 160.0, 1)",DARKER_GRAY:"rgba(100.0, 100.0, 100.0, 1)",LIGHT_BLACK_TRANS:"rgba(0.0, 0.0, 0.0, 0.1)",SEMI_MID_BLACK_TRANS:"rgba(0.0, 0.0, 0.0, 0.25)",MID_BLACK_TRANS:"rgba(0.0, 0.0, 0.0, 0.5)",DARK_BLACK_TRANS:"rgba(0.0, 0.0, 0.0, 0.75)",BLACK:"rgba(0.0, 0.0, 0.0, 1.0)",CONFIRM:"rgba(34.0, 139.0, 34.0, 1.0)",WARNING:"rgba(255.0, 153.0, 0.0, 1.0)",SUBLIME_RED:"rgba(237.0, 59.0, 72.0, 1.0)",BADGE_RED:"rgba(208.0, 44.0, 30.0, 1.0)",LIGHT_MAROON:"rgba(159.0, 0.0, 0.0, 1.0)",LIGHTER_MAROON:"rgba(129.0, 0.0, 0.0, 1.0)"},o4={container:{},name:{color:i4.SUBLIME_RED},username:{color:i4.GRADIENT_SECONDARY},text:{color:i4.BLACK},primary:{color:i4.GRADIENT_PRIMARY},secondary:{color:i4.GRADIENT_SECONDARY},third:{color:i4.GRADIENT_THIRD},error:{color:i4.SUBLIME_RED},white:{color:i4.WHITE},midgray:{color:i4.MID_GRAY},darkgray:{color:i4.DARK_GRAY},darkergray:{color:i4.DARKER_GRAY},link:{color:i4.GRADIENT_PRIMARY},underline:{textDecorationLine:"underline"},bold:{fontWeight:"bold"},italics:{fontStyle:"italic"},pointer:{cursor:"pointer"}},a4=[{pattern:/\[([^\]]+)]\((https?:\/\/[^)]+)\)/g,style:{},renderText:n4},{pattern:/\[(u):([^\]]+)\]/i,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},o4.primary),o4.bold),o4.italics),o4.underline),o4.pointer),renderText:r4},{pattern:/\[(ub):([^\]]+)\]/i,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},o4.secondary),o4.bold),o4.italics),o4.underline),o4.pointer),renderText:r4},{pattern:/\[(ut):([^\]]+)\]/i,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},o4.third),o4.bold),o4.italics),o4.underline),o4.pointer),renderText:r4},{pattern:/(.*?)<\/span>/gi,style:{},renderText:function(e){const t=e.match(/(.*?)<\/span>/i);if(t){const e=t[1].toLowerCase();let r;switch(e){case"primary":r=i4.PRIMARY;break;case"secondary":r=i4.GRADIENT_SECONDARY;break;case"white":r=i4.WHITE;break;default:r=e}let n=t[2];return n.includes("\\n")&&(n=t[2].replace("\\n","
")),`${n}`}return e}},{pattern:/(.*?)<\/PUSHText>/gi,style:{},renderText:n4},{pattern:/\[(up):([^\]]+)\]/i,style:Object.assign(Object.assign(Object.assign(Object.assign({},o4.primary),o4.italics),o4.underline),o4.pointer),renderText:r4},{pattern:/\[(d):([^\]]+)\]/i,style:Object.assign(Object.assign({},o4.primary),o4.bold),renderText:r4},{pattern:/\[(s):([^\]]+)\]/i,style:Object.assign(Object.assign({},o4.secondary),o4.bold),renderText:r4},{pattern:/\[(t):([^\]]+)\]/i,style:Object.assign(Object.assign({},o4.third),o4.bold),renderText:r4},{pattern:/\[(e):([^\]]+)\]/i,style:Object.assign(Object.assign({},o4.error),o4.bold),renderText:r4},{pattern:/\[(b):([^\]]+)\]/i,style:o4.bold,renderText:r4},{pattern:/\*\*\*(.*?)\*\*\*/g,style:Object.assign(Object.assign({},o4.bold),o4.italics),renderText:e=>e.replace(/\*\*\*(.*?)\*\*\*/g,"$1")},{pattern:/\*\*(.*?)\*\*/g,style:o4.bold,renderText:e=>e.replace(/\*\*(.*?)\*\*/g,"$1")},{pattern:/\\n/g,style:{},renderText:function(e){const t=e.match(/\\n/g);if(null==t?void 0:t.includes("\\n")){return`
${e.replace("\\n","
")}
`}return`
${e}
`}},{pattern:/\*(.*?)\*/g,style:Object.assign({},o4.italics),renderText:e=>e.replace(/\*(.*?)\*/g,"$1")},{pattern:/\[(bi):([^\]]+)\]/i,style:Object.assign(Object.assign({},o4.bold),o4.italics),renderText:r4},{pattern:/\[ts: (\d+)\]/g,style:{},renderText:function(e){const t=e.match(/\[ts: (\d+)\]/);if(t){const e=parseInt(t[1],10);return new Date(1e3*e).toLocaleString()}return e}},{pattern:/\[(w):([^\]]+)\]/i,style:o4.white,renderText:r4},{pattern:/\[(wb):([^\]]+)\]/i,style:Object.assign(Object.assign({},o4.white),o4.bold),renderText:r4},{pattern:/\[(mg):([^\]]+)\]/i,style:o4.midgray,renderText:r4},{pattern:/\[(dg):([^\]]+)\]/i,style:o4.darkgray,renderText:r4},{pattern:/\[(ddg):([^\]]+)\]/i,style:o4.darkergray,renderText:r4}],s4=e=>{const t=Object.assign({},e),{patterns:r}=t,i=hJ(t,["patterns"]);return(0,n.jsx)("div",Object.assign({},i,{children:e.patterns?"string"!=typeof e.children?e.children:new t4(e.children,a4.concat(r)).parse().map(((e,t)=>{const{style:r,children:i}=e;return(0,n.jsx)("span",Object.assign({style:Object.assign({},r)},e.childrenProps,{children:u(WZ(i))}),`parsedText-${t}`)})):e.children}))};s4.propTypes={patterns:gJ.exports.array.isRequired};const c4=e=>{const{text:t,patterns:r}=e,i=r||[];return(0,n.jsx)("div",Object.assign({style:{wordBreak:"break-all"}},{children:(0,n.jsx)(s4,Object.assign({patterns:i},{children:t}))}))},u4=({children:e,tooltipContent:t})=>{let r;const[o,a]=i.useState(!1);return(0,n.jsxs)(l4,Object.assign({onMouseEnter:()=>{r=setTimeout((()=>{a(!0)}),400)},onMouseLeave:()=>{clearInterval(r),a(!1)}},{children:[e,o&&(0,n.jsx)(d4,{children:t})]}))},l4=o.Ay.div.withConfig({displayName:"tooltip__Wrapper",componentId:"sc-6msbcv-0"})(["display:inline-block;position:relative;"]),d4=o.Ay.div.withConfig({displayName:"tooltip__Content",componentId:"sc-6msbcv-1"})(["position:absolute;border-radius:12px 2px 12px 12px;bottom:-28px;transform:translateX(-95%);padding:0.5rem 1rem;color:#fff;background:#131313;font-family:'Strawford';font-style:normal;font-weight:400;font-size:0.9rem;line-height:1;z-index:2;white-space:nowrap;&::before{bottom:100%;border-bottom-color:#131313;}"]),f4=()=>(0,n.jsxs)("svg",Object.assign({id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 1080 1218.5",xmlSpace:"preserve"},{children:[(0,n.jsx)("style",{children:".st0{fill:#1b4add}"}),(0,n.jsx)("path",{className:"st0",d:"M541.8 76.4c2.9 0 5.8.8 8.4 2.3l446.1 259.5c5.2 3 8.4 8.6 8.3 14.5l-1.7 516.1c0 6-3.2 11.5-8.4 14.5l-447.8 256.6c-2.5 1.5-5.5 2.2-8.4 2.2-2.9 0-5.8-.8-8.4-2.3L83.8 880.3c-5.2-3-8.4-8.6-8.3-14.5l1.7-516.1c0-6 3.2-11.5 8.4-14.5L533.4 78.6c2.5-1.5 5.4-2.2 8.4-2.2M542 1c-15.9-.1-31.8 4-46.1 12.2L48.1 269.7c-28.6 16.4-46.2 46.7-46.4 79.7L0 865.5c-.1 32.9 17.4 63.4 45.8 80L491.9 1205c14.2 8.3 30.1 12.4 46.1 12.5 15.9.1 31.8-4 46.1-12.2l447.8-256.6c28.6-16.4 46.2-46.7 46.4-79.7l1.7-516c.1-32.9-17.4-63.4-45.8-80L588.1 13.5C573.8 5.2 557.9 1 542 1z"}),(0,n.jsx)("path",{className:"st0",d:"M632.4 282.3H567c-4.9 0-9.3 3.1-11 7.7L345.8 866.4c-1.4 3.8 1.4 7.8 5.5 7.8h65.4c4.9 0 9.3-3.1 11-7.7L638 290c1.2-3.7-1.6-7.7-5.6-7.7zm-114.4 0h-65.4c-4.9 0-9.3 3.1-11 7.7L231.4 866.4c-1.4 3.8 1.4 7.8 5.5 7.8h65.4c4.9 0 9.3-3.1 11-7.7L523.6 290c1.3-3.7-1.5-7.7-5.6-7.7zm84.7 223.5c-1.9-5.1-9.1-5.1-11 0l-34 93.2c-.9 2.6-.9 5.4 0 8l94.7 259.6c1.7 4.6 6.1 7.7 11 7.7h65.4c4.1 0 6.9-4 5.5-7.8L602.7 505.8zm245.9 360.6L659.9 349.1c-1.9-5.1-9.1-5.1-11 0l-34 93.2c-.9 2.6-.9 5.4 0 8l151.9 416.3c1.7 4.6 6.1 7.7 11 7.7h65.4c3.9-.1 6.8-4.1 5.4-7.9z"})]})),h4=()=>(0,n.jsxs)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"#1D1D1D"}),(0,n.jsx)("path",{d:"M8.16193 12L6.58295 13.579L5 12L6.57898 10.421L8.16193 12ZM12 8.16193L14.7085 10.8705L16.2875 9.29148L12 5L7.70852 9.29148L9.2875 10.8705L12 8.16193ZM17.417 10.421L15.8381 12L17.417 13.579L18.996 12L17.417 10.421ZM12 15.8381L9.29148 13.1295L7.7125 14.7085L12 19L16.2875 14.7085L14.7085 13.1295L12 15.8381ZM12 13.579L13.579 12L12 10.421L10.417 12L12 13.579Z",fill:"#F0B90B"})]})),p4=()=>(0,n.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"100%",x:"0",y:"0",version:"1.1",viewBox:"0 0 315 315",xmlSpace:"preserve"},{children:[(0,n.jsx)("path",{fill:"#FEFEFE",d:"M145 316H1V1h315v315H145M84.363 116.53c-.85.43-1.7.86-2.516 1.368 0 0 .068-.051-.674.022-.994-.013-1.987-.026-3.219-.673-4.257-2.495-8.247-5.775-12.823-7.332-11.763-4.004-22.549 2.473-24.779 14.598-1.454 8.6 1.413 15.964 6.687 23.398.29.386.58.773.612 1.89-2.273 3.811-4.402 7.718-6.847 11.415-7.934 11.994-7.202 26.743 2.109 38.737 1.646 1.547 3.132 3.322 4.965 4.602 7.865 5.49 16.99 4.903 26.715 5.436 2.441.374 4.882.747 7.542 1.654.59.472 1.179.944 2.076 2.067 5.36 3.016 10.358 2.722 14.806-1.647 0 0 .058.086.825.036 2.453-.82 4.905-1.639 8.2-2.416 3.97-.16 7.95-.195 11.91-.503 11.735-.912 19.64-6.893 23.98-18.586 2.843-7.565 3.971-15.155.283-23.532-1.71-2.432-3.422-4.863-5.16-7.999-1.681-4.176-6.968-7.39-2.941-13.325 1.066-2.128 2.132-4.256 3.726-6.942.61-2.059 1.388-4.084 1.804-6.182 2.913-14.676-9.118-26.793-23.48-23.1-4.575 1.177-8.586 4.553-13.51 7.253-1.179.244-2.359.49-3.957.341-.566-.032-1.131-.065-2.172-.39-.537.001-1.074.002-2.439-.322-2.367-.008-4.735-.015-7.916-.164-1.075.179-2.15.358-3.807.296m90.006 24.629c-.26.508-.52 1.015-1.339 1.919-.966 2.655-1.933 5.31-3.114 8.767.12 5.69.239 11.381.587 17.86 1.546 7.038 5.417 12.033 12.511 15.084.021 1.736.042 3.472-.51 5.68.506 2.185-3.37 5.274 1.442 7.017 0 0 .052.435-.566.587a15.03 15.03 0 01-2.948 1.024c-7.45 3.369-8.75 10.81-11.155 17.357-1.165 3.172 1.703 5.544 5.444 4.791l4.107.772c0-2.201 0-3.647.14-5.725l2.613-7.545 1.424.289c.648 3.542.458 7.62 5.583 7.913 5.608.32 5.486-4.248 6.321-7.734 1.914 1.55 3.508 2.84 5.01 5.043l-1.505 7.382h11.089c-2.671-9.09-4.152-18.174-14.188-23.096-.156-4.863-.313-9.726.192-14.834 3.264-3.122 6.53-6.244 10.331-9.83a537.88 537.88 0 012.232-7.6c.375-1.773.75-3.546 1.433-5.926-.506-2.45-1.012-4.902-1.484-8.124-1.537-5.581-3.353-11.17-8.492-14.433-3.386-2.15-7.06-3.49-4.218-8.546.237-.421-.707-1.506-1.27-3.133-.938-3.95.805-5.91 4.206-8.116 2.958-1.92 4.58-5.897 7.437-9.265.749-3.856 1.498-7.711 1.344-11.647h-8.89c0 2.994 0 5.436-.713 8.202-.993.348-1.985.695-3.149.37-1.522-3.55-4.292-4.308-7.618-3.061-2.882 1.08-4.615 3.053-4.002 6.62-.884-1.2-1.57-2.647-2.694-3.553-2.566-2.07.395-8.487-6.327-8.063-1.317.695-3.607 1.239-3.743 2.117-.26 1.67.712 3.533 1.193 5.815.047.16.095.32-.363.75.414.583.829 1.166 1.22 2.427.036.447.072.894.046 2.05 3.67 3.099 7.338 6.197 10.93 10.217.08 4.375.159 8.75-.085 13.665-.994.73-1.989 1.46-3.397 2.25 0 0-.363.207-1.008.337-1.176 1.227-2.352 2.455-4.057 3.926m85.943-31.226c-2.738-2.093-5.476-4.185-8.318-7.098l-.411-5.866c-2.782.755-5.181 1.406-8.254 1.837l-2.738-1.989c-.24 2.45-.421 4.306-1.289 6.307-7.376 3.242-11.546 8.827-12.9 17.35a441.308 441.308 0 00-.331 4.553c-.107 6.106-.702 12.318 3.736 17.998l1.539 4.665c.558-.262 1.117-.523 2.29-.407 6.598 6.115 8.413 12.816 4.633 19.767-4.332 1.998-7.791 4.724-9.052 9.966-4.21 8.192-3.763 16.75-1.898 25.387.066.306 1.1.402 1.641 1.28-.642 4.001.299 6.943 5.171 8.07l7.824 9.306c.037-.133.296-1.067.83-1.415 1.797.699 3.593 1.397 6.193 2.217 5.52.137 1.972-3.964 3.268-6.57 5.926-1.497 9.032-5.717 11.382-11.709.788-3.528 1.576-7.057 2.71-11.15-.817-3.785-1.634-7.57-2.415-11.93-.543-.748-1.087-1.496-1.62-3.044-1.52-4.7-4.672-7.818-9.788-10.052-.178-2.136-.356-4.273-.495-6.899 0 0-.012-.49.494-.988-.157-2.484-.313-4.968.183-7.694 5.342-2.747 9.548-6.417 11.092-13.171.742-3.218 1.483-6.435 2.575-10.221-1.369-5.116-2.737-10.233-4.1-15.7-.23-.258-.46-.516-.897-1.312-.233-.3-.467-.601-1.055-1.488z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7E542D",d:"M99 117.013c.566.032 1.131.065 1.873.67.157.825.137 1.076.158 1.68 4.02 3.107 8 5.861 11.975 8.625-.004.01.016 0 .05.373 7.278 17.106 2.974 29.288-14.414 34.683-4.675 3.133-9.124 3.184-13.85.934-1.427-.68-3.181-.673-4.988-1.256-3.43-1.945-6.943-3.237-9.801-5.395-2.658-2.008-6.178-4.7-6.61-7.508-1.733-11.247-1.516-17.81 9.573-25.227 3.1-2.073 5.972-4.487 8.949-6.745 0 0-.068.051.255.042.775.014 1.228.04 2.068.078 1.84-.52 3.292-1.056 4.745-1.591 2.368.007 4.736.014 7.61.408 1.14.333 1.774.281 2.407.229m14 23.622c.816-6.204-4.521-8.55-7.88-11.828-7.703-7.52-17.867-7.663-26.444-1.007-1.569 1.217-3.135 2.438-4.727 3.626-8.827 6.583-8.13 20.876 1.429 26.088 2.421 1.32 5.418 1.543 7.959 2.693 13.403 6.068 29.043-3.748 29.662-19.572z",opacity:"1"}),(0,n.jsx)("path",{fill:"#704A25",d:"M81.544 117.884c-2.606 2.22-5.478 4.635-8.578 6.708-11.089 7.417-11.306 13.98-9.574 25.227.433 2.808 3.953 5.5 6.61 7.508 2.859 2.158 6.372 3.45 9.956 5.703 6.085 4.984 6.16 5.033 2.252 11.154-2.22 3.476-3.025 6.337 1.809 8.16-1.541 1.482-3.008 2.568-4.239 3.876-1.715 1.821-3.254 3.809-5.185 5.757-.738.085-1.159.138-1.696-.133.81-1.935 1.385-3.99 2.738-5.067 2.96-2.356 4.124-4.621 1.36-8.189.198-4.263.389-8.124.562-11.621-3.247-2.477-6.219-4.278-9.915-.919-2.635.126-4.984.699-7.087.21-12.591-2.92-18.042 6.266-16.878 15.52.696 5.538 5.324 7.25 6.953 11.22a108.743 108.743 0 01-9.642-8.351c-.336-1.448-.669-2.545-.72-3.893.413-1.214.77-2.208.645-3.137-1.363-10.11 8.394-18.392 18.184-15.517 2.107.619 4.412.562 6.626.817l.527-1.557c-1.664-1.963-3.57-3.772-4.93-5.927-1.678-2.662-2.9-5.61-4.319-8.768 0-.776 0-1.22.28-1.918 1.35-4.99 1.468-9.879 5.729-13.608 2.637-2.307 4.03-6.036 6.22-9.137.24-.01.718-.014 1.077-.014 1.14-.653 1.922-1.307 3.024-1.995.832-.397 1.343-.76 2.13-1.287 1.095-.385 1.912-.605 2.73-.825.993.013 1.986.026 3.35.003z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M100.99 119.01c.02-.25.04-.502.093-1.13 1.212-.622 2.392-.867 4.21-.852 1.298.45 1.956.642 2.674 1.151 1.06.496 2.062.673 3.18 1.114.697.745 1.276 1.226 2 1.99 1.333 1.143 2.522 2.001 3.914 3.131 3.187 3.56 6.17 6.847 8.992 10.52-2.015 8.216-3.668 16.094-8.339 22.94-.7 1.026-.856 3.59-.204 4.108 1.074.853 3.155 1.134 4.564.749 5.24-1.432 10.368-3.34 16.031-1.514.311.494.575.681 1.144.948.408.722.573 1.277.573 1.922-.052.366.061.64.176.914.002-.001 0 .002.042.322.679.775 1.315 1.229 1.952 1.933 0 .25.005.75.006 1.213-.334 6.149-.668 11.834-1.006 17.77-.007.419-.01.586-.33.781-1.101.346-1.886.664-2.66.562.34-3.52.994-6.629.923-9.72-.117-5.09-4.521-10.427-8.448-10.86-5.874-.647-11.746-1.315-17.969-2.012-4.038-1.948-6.049.185-7.312 3.174-.757 1.793-.818 3.878-1.548 5.794-4.029-3.745-1.31-11.527 4.532-12.702 4.105-.826 6.516-3.105 8.24-6.398 3.638-6.946 3.979-14.461 3.345-22.095-.356-4.289-2.921-5.407-6.743-4.774 0 0-.02.01-.018-.387-.362-1.393-.44-2.917-1.139-3.299-3.536-1.927-7.234-3.558-10.875-5.292z",opacity:"1"}),(0,n.jsx)("path",{fill:"#BE9E6C",d:"M83.903 213.061c-.59-.472-1.179-.944-1.765-1.99-2.694-1.41-5.39-2.245-8.325-3.173-.43-.369-.622-.645-.703-1.178.373-.752.636-1.246 1.302-1.728 4.513 1.322 8.479 1.861 11.937-1.928 4.477 5.269 7.375.949 10.618-.867 1.46 3.46 3.863 4.372 6.95 3.302 2.998-1.038 4.826-2.826 5.21-6.42.618-5.806-3.243-5.648-7.128-6.327-1.781-1.43-3.383-2.57-5.028-4.088-.662-2.842-1.283-5.307-1.598-7.627 4.32 3.18 8.337 6.213 12.484 9.427.33.407.57.574 1.065.97 1.344 2.43 2.477 4.57 3.49 7.092-.563 2.41-1.006 4.437-1.63 6.737-1.414 1.094-2.647 1.915-4.262 2.722-2.736 1.378-5.09 2.772-7.445 4.166 0 0-.058-.086-.418-.106-5.158.325-9.956.67-14.754 1.016z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593C21",d:"M39.989 181.004c.332 1.098.665 2.195.74 3.853 1.917 3.754 4.093 6.947 6.27 10.142.001.001.004.003.037.296 2.337 1.26 5.037 1.754 6.864 3.288 4.628 3.887 9.683 3.426 15.013 2.76.1.752.143 1.184-.128 1.84-6.18 3.813-11.684.297-17.25-.8-2.99-.59-5.808-2.045-8.704-3.11-9.229-11.314-9.961-26.063-2.027-38.057 2.445-3.697 4.574-7.604 7.265-11.597.589 2.338.76 4.858.632 7.4-.767.345-1.235.668-1.984 1.118-1.093 1.04-1.906 1.95-2.717 2.862l-.301.151c-1.1 1.718-1.898 3.285-2.737 5.218-3.446 4.92-3.925 9.666-.973 14.636z",opacity:"1"}),(0,n.jsx)("path",{fill:"#906E4F",d:"M107.908 117.86c-.659-.19-1.317-.382-2.287-.997 3.957-2.794 7.968-6.17 12.544-7.347 14.361-3.693 26.392 8.424 23.48 23.1-.417 2.098-1.194 4.123-2.291 6.142-.818-1.609-1.546-3.212-1.412-4.74.523-5.97 1.533-11.974-4.748-16.35-3.159-1.84-6.09-3.384-9.154-5.251-1.833-.137-3.535.048-5.621.29-3.76 1.755-7.135 3.454-10.511 5.154z",opacity:"1"}),(0,n.jsx)("path",{fill:"#3A3A3B",d:"M200.01 213.346l-5.1-4.131c-.836 3.486-.714 8.054-6.322 7.734-5.125-.293-4.935-4.371-5.583-7.913l-1.424-.29c-.871 2.516-1.742 5.031-3 7.82-1.29-.978-2.195-2.227-3.102-3.81.918-1.791 1.838-3.249 3.112-4.719 1.006-.778 1.66-1.543 2.508-2.502.75-.645 1.304-1.096 2.173-1.557.795-.369 1.273-.728 1.986-1.051.235.036.703.118.748.415.707.099 1.37-.099 2.239-.432.448-.366.617-.643 1.041-.942.771.044 1.212.064 1.679.31.027.226.086.679.066 1.107-.716 2.243-1.555 4.018-2.06 5.884-.387 1.432-.353 2.979-.506 4.475l1.805.22c1.244-2.98 2.488-5.958 3.973-9.023.69-.325 1.137-.564 1.769-.511 1.455 3.166 2.727 6.041 3.999 8.916z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M251.98 160.997c.179 2.136.357 4.273.795 6.988.244 1.014.228 1.447-.153 1.902-.852.05-1.34.078-2.15.057-.99-.896-1.657-1.742-2.563-2.888l-2.202 2.995c-1.99 0-3.442 0-5.189-.14-.711-1.067-1.129-1.994-1.546-2.92 3.077-6.892 1.262-13.593-5.517-20.21 1.462-1.867 3.105-3.231 5.054-4.622.714-.065 1.122-.104 1.784-.041.927.346 1.6.59 2.378 1.287.105 6.516.105 12.58.105 18.644.802-.07 1.95-.173 3.493-.223 2.167-.242 3.94-.536 5.711-.83z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7A522B",d:"M133.422 117.96c6.053 4.084 5.043 10.089 4.52 16.058-.134 1.528.594 3.131 1.148 5.02-.844 2.446-1.91 4.574-3.627 6.85-1.898-.224-3.146-.598-4.405-1.352-.04-1.397-.068-2.415.178-3.644a81.102 81.102 0 003.683-7.28c.035-.752.047-1.183.33-1.84.9-5.748-1.98-9.082-6.571-11.48-5.4-2.82-10.617-3.248-15.675.708-.58-.48-1.16-.962-1.639-1.996 3.184-1.37 6.27-2.85 9.353-2.843 4.236.01 8.47 1.146 12.705 1.8m3.058 22.421l.166-.648c-.134.138-.268.277-.166.648z",opacity:"1"}),(0,n.jsx)("path",{fill:"#906E4F",d:"M78.073 117.564c-.698.537-1.515.757-2.93 1.008-8.766-7.283-15.88-8.004-26.442-2.522-.756.705-1.18 1.38-1.636 2.367-.06.729-.087 1.146-.092 1.575.022.013.004-.035-.235.058-.467.346-.695.599-1.222 1.06-1.026 3.16-2.116 6.08-2.369 9.07-.216 2.565.527 5.21.566 7.557-1.17-4.797-2.06-9.332-2.95-13.868 1.82-11.481 12.605-17.958 24.368-13.954 4.576 1.557 8.566 4.837 12.942 7.649z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A7B0B9",d:"M199.965 213.802c-1.226-3.33-2.498-6.206-3.916-9.801-.113-2.148-.082-3.576-.05-5.004 9.352 4.469 10.833 13.552 13.504 22.643h-11.09c.505-2.472 1.005-4.927 1.552-7.838z",opacity:"1"}),(0,n.jsx)("path",{fill:"#422B19",d:"M106.902 208c1.233-.822 2.466-1.643 4.261-2.696 8.64.732 16.219-.55 22.9-5.445 1.47-1.076 2.633-2.568 4.156-3.974.491-.303.675-.563.775-.886.005.001 0-.011.317-.176 1.591-1.351 2.866-2.538 4.141-3.725-3.86 11.191-11.765 17.172-23.5 18.084-3.96.308-7.94.343-12.327.2-.518-.662-.62-1.022-.723-1.383zM42.872 199.613c2.855.725 5.673 2.18 8.663 2.77 5.566 1.097 11.07 4.613 17.517.972 1.703 1.172 2.825 2.397 3.947 3.622.192.276.384.552.765 1.2.14.743.094 1.113.047 1.484-8.944-.203-18.068.385-25.933-5.106-1.833-1.28-3.32-3.055-5.006-4.942z",opacity:"1"}),(0,n.jsx)("path",{fill:"#624123",d:"M49 156.997c-.171-2.52-.342-5.04-.802-7.743-.578-.57-.869-.957-1.112-1.984.308-2.19.568-3.738 1.203-5.285 1.486-.997 2.597-1.994 3.864-3.289 2.045-2.786 3.936-5.274 5.828-7.377-1.452 4.735-4.663 8.955-.978 13.683 0 .443 0 .887-.317 1.832-2.607 3.848-2.243 9.22-7.686 10.163z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A7B0B9",d:"M183.154 134.106c-.08-4.375-.158-8.75-.204-13.612.033-.488.086-.5.478-.48.83 2.668 1.269 5.318 1.658 8.37.162 1.782.373 3.162.583 4.542l1.537.088c.514-1.703 1.028-3.406 1.617-5.561-.595-6.165-1.265-11.877-1.859-17.923 2.97-3.174 3.089.19 4.088 1.842.522 1.502 1.092 2.642 1.694 4.2-.095 3.723-.222 7.03-.476 10.77-.57 2.668-1.011 4.904-1.696 7-.717.065-1.192.273-1.949.638-2.012.147-3.742.136-5.471.126z",opacity:"1"}),(0,n.jsx)("path",{fill:"#D8DDE0",d:"M178.237 208.05c-.92 1.457-1.84 2.915-3.176 4.808-.625 2.98-.836 5.524-1.047 8.069-3.034 1.071-5.902-1.3-4.737-4.473 2.404-6.547 3.706-13.988 11.624-17.043.997 1.735 1.526 3.156 2.055 4.577-.553.45-1.107.902-2.191 1.56-1.197.97-1.862 1.736-2.528 2.502z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A7B0B9",d:"M174.03 98.184c6.325-1.003 3.364 5.414 5.93 7.484 1.123.906 1.81 2.352 3.286 3.584.914.881 1.236 1.73 1.577 2.972-.635 1.526-1.288 2.661-2.278 3.824-1.762-1.134-3.188-2.296-4.592-3.795-.483-.462-.988-.587-1.823-.82-1.58-.532-2.83-.955-4.081-1.378a21.372 21.372 0 01-.076-1.97c-.228-1.11-.488-1.59-.748-2.069-.047-.16-.095-.32.187-.7 1.47 1 2.608 2.22 4.12 3.84-.563-4.105-1.032-7.538-1.502-10.972z",opacity:"1"}),(0,n.jsx)("path",{fill:"#E3E7EB",d:"M238.62 167.02c.77.897 1.187 1.824 1.842 3.224-2.218 3.263-4.673 6.052-7.504 8.943-.864 2.657-1.353 5.213-1.934 8.176-.406 4.116-.72 7.826-1.369 11.351-.757-2.07-1.65-3.993-1.513-5.837.396-5.315 1.209-10.6 1.858-15.895.478-5.208 3.937-7.934 8.62-9.962z",opacity:"1"}),(0,n.jsx)("path",{fill:"#ABB0B6",d:"M183.998 197.921s-.052-.435-.023-.998c.27-1.476.512-2.388.752-3.3 4.197 1.478 3.596-2.552 3.833-4.081.622-4.02.596-8.191.288-12.261-.064-.839-2.47-1.5-3.813-2.616 1.647-3.75 3.481-3.62 5.089-.433 1.09 2.163 1.8 4.518 2.71 7.039.032 1.072.033 1.892-.22 3.005-.254 3.942-.254 7.592-.254 12.073l-1.973-2.845c-1.87 1.937-3.652 3.784-5.66 5.488-.395-.453-.562-.762-.73-1.07z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M184.953 199.135l5.434-5.631 1.973 2.845c0-4.48 0-8.13.585-12.087 1.023-.306 1.462-.306 1.9-.307.157 4.863.314 9.726.812 14.816.31 1.654.279 3.082.21 4.938-.487.668-.935.907-1.767.943-1.272-.7-2.16-1.197-3.049-1.695 0 0-.06-.453-.067-1.03-.354-1.197-.701-1.819-1.048-2.44l-.98 2.457c-.094.323-.263.6-1.058.95-1.013.13-1.475.14-1.937.151 0 0-.468-.082-.698-.492-.257-1.412-.283-2.415-.31-3.418z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M192.398 125.909c.126-3.307.253-6.614.454-10.715.087-1.57.099-2.347.146-3.43.342-1.06.65-1.813 1.344-2.36 1.011-.298 1.637-.803 2.581-1.25-.125 1.633-.569 3.21-1.013 4.785l.808.897c2.133-1.92 4.266-3.84 6.688-5.759.737.32 1.184.64 1.63.96-2.211 3.068-3.833 7.045-6.79 8.965-3.402 2.207-5.145 4.166-4.373 8.45-.603.042-1.039-.25-1.475-.543z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M192.27 126.342c.564-.14 1 .152 1.687.536.645.867 1.589 1.952 1.352 2.373-2.842 5.055.832 6.396 4.218 8.546 5.14 3.263 6.955 8.852 8.107 14.823-1.121.384-1.857.378-2.665.15-.072-.221-.198-.67-.054-.966-.005-5.813-3.208-9.56-7.328-12.598-.637-.469-2.262.404-3.803.695-1.115.036-1.856.033-2.642-.203-.043-.234-.156-.696-.136-.967.014-.453.008-.634.004-1.193-.063-1.604-.128-2.83-.192-4.056.44-2.236.882-4.472 1.452-7.14z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M229.99 198.898c.315-3.71.628-7.419 1.38-11.52 1.128-.357 1.818-.32 2.534.025.029.72.032 1.133-.25 1.598-.096.719.093 1.385.291 2.37.004.74 0 1.164-.342 1.664-1.179 2.478.07 6.743 2.313 9.225.12.767.172 1.208-.14 1.682-4.589.354-.95 3.18-1.781 5.002-.008 1.001-.047 1.573-.086 2.145-4.65-.463-5.591-3.405-4.91-8.103.357-1.827.674-2.958.992-4.088z",opacity:"1"}),(0,n.jsx)("path",{fill:"#E3E7EB",d:"M185.051 175.038c1.327.743 3.733 1.404 3.797 2.243.308 4.07.334 8.241-.288 12.26-.237 1.53.364 5.56-3.833 4.082-.24.912-.481 1.824-.792 3.084-4.8-.964-.925-4.053-.82-6.368 1.038-.403 1.845-.687 1.838-.947-.12-4.24-.342-8.475-.562-12.792-.022-.08-.083-.235.023-.468.283-.52.46-.807.637-1.094z",opacity:"1"}),(0,n.jsx)("path",{fill:"#555E67",d:"M193.956 109.198c-.308.753-.616 1.507-1.187 2.423-.733-.095-1.201-.353-1.67-.61-1.046-1.29-1.166-4.655-4.467-1.435-.881 1.005-1.355 1.63-1.828 2.256-.322-.85-.644-1.699-1.226-2.672-1.537-3.506.196-5.48 3.078-6.559 3.326-1.247 6.096-.489 7.628 3.607-.04.852.005 1.145.014 1.663a8.932 8.932 0 00-.342 1.327z",opacity:"1"}),(0,n.jsx)("path",{fill:"#C8CACD",d:"M248.174 221.74c-1.796-.699-3.592-1.397-5.583-2.763-.083-1.149.028-1.63.412-1.958.626.902.978 1.648 1.331 2.395l1.273-.79v-8.687c-1.23.504-2.092.858-3.154.828-.186-1.822-.174-3.259.09-4.88 1.6-.952 2.95-1.72 4.343-2.107 1.391 6.176 3.206 11.937 1.288 17.962z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9CA5AC",d:"M262.293 178.257c.543.749 1.087 1.497 1.335 2.823-.4 2.384-.71 4.206-.57 5.993.272 3.473-1.367 4.445-4.4 3.446-.901-5.75-1.872-11.083-2.468-16.415 2.285 1.385 4.194 2.769 6.103 4.153z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M263.096 139.014c-.851 6.394-5.057 10.064-10.964 12.867-.564.055-1.057.086-1.124-.226-.149-.728-.23-1.145-.19-1.927.477-1.823.833-3.28 1.568-4.65 3.068-2.009 5.757-4.108 8.82-6.152.88.065 1.385.077 1.89.088z",opacity:"1"}),(0,n.jsx)("path",{fill:"#868485",d:"M244.002 99.026l7.58-2.057c.148 2.105.28 3.986.405 6.639-.95 1.293-1.895 1.813-3.126 2.036-2.791-.383-5.294-.468-7.822-.773-.025-.22-.055-.66.215-.875 1.096-1.8 1.922-3.385 2.748-4.97z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593C21",d:"M143.692 190.847c-1.515 1.438-2.79 2.625-4.379 3.602-.31-.958-.306-1.706-.04-2.67.745-1.738 1.226-3.262 1.707-4.786.002-.168.005-.335.367-.81 1.412-2.868 3.084-5.362 3.357-8 .343-3.31-.46-6.74-.691-10.188.078-.071.237-.21.237-.21 3.653 7.656 2.525 15.246-.558 23.062z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M248.576 221.8c1.516-6.085-.299-11.846-1.289-18.13 1.46-.563 2.562-.634 3.79-.416.181.707.236 1.124.222 1.868.514.849 1.097 1.372 1.786 2.268a17.616 17.616 0 01-.075 2.657c-.014-.03.05-.046-.132.051-.408.256-.622.43-.954.95-.132 1.821-.133 3.31-.134 4.798-.84 2.05 2.707 6.152-3.214 5.955z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M242.29 206.069c-.011 1.437-.023 2.874.09 5.1.2 2.423.275 4.06.35 5.696a9.83 9.83 0 00-.277 1.819 21.436 21.436 0 01-.498 2.375c-2.639-3.138-5.231-6.222-7.935-9.638-.072-.904-.033-1.476.27-2.306.888-.035 1.513.189 2.258.728 1.047.675 1.973 1.034 2.899 1.393l.444-.966c-.898-.493-1.796-.986-2.71-1.622-.015-.143.003-.431.314-.501.715-.705 1.118-1.34 1.767-2.017.246-.043.737-.13 1.119-.12.89.025 1.4.042 1.91.059z",opacity:"1"}),(0,n.jsx)("path",{fill:"#D8DDE0",d:"M194.432 107.63c-.143-.277-.189-.57-.063-1.086 1.069-.557 2.061-.904 3.805-1.435 1.342-1.882 1.931-3.582 2.718-5.85.79.183 1.958.454 3.09 1.132-.313 2.834-.59 5.26-.865 7.686l-6.4 5.759c-.268-.3-.538-.598-.807-.897.444-1.576.888-3.152.47-4.907a686.272 686.272 0 00-1.948-.403z",opacity:"1"}),(0,n.jsx)("path",{fill:"#898D90",d:"M240.984 104.21s.03.442.043 1.048c-.056 1.905-.125 3.204-.491 4.56-.703.085-1.108.11-1.529-.12-.167-.475-.318-.693-.469-.912-.127.468-.254.936-.793 1.34-.628-.236-.845-.41-1.027-.903-1.057-.152-2.835-.332-3.127.243-1.728 3.405-3.112 6.984-4.946 10.555-.781.03-1.23.007-1.678-.014.789-8.056 4.959-13.64 12.808-16.724.718.416.964.672 1.209.928z",opacity:"1"}),(0,n.jsx)("path",{fill:"#484748",d:"M182.993 183.92c-7.073-2.182-10.944-7.177-12.163-14.568.624-.366.92-.378 1.45-.211.697.53 1.16.88 1.54 1.603.912 1.433 1.908 2.495 2.953 3.517.05-.04-.067-.09-.241.167-.093.447-.012.638.077 1.16.797 1.037 1.585 1.744 2.58 2.693 1.214.494 2.223.747 3.284 1.176.052.175.167.522.178.92.12 1.446.232 2.495.342 3.543z",opacity:"1"}),(0,n.jsx)("path",{fill:"#C8CACD",d:"M238.203 142.185c-1.643 1.365-3.286 2.73-5.055 4.407-.685.575-1.244.836-1.802 1.098-.513-1.555-1.026-3.11-1.25-5.205.143-1.84-.002-3.138.142-4.67.431-.95.572-1.668.598-2.602-.114-.217.079-.668.321-.452.995.6 1.746.983 2.57 1.706.788 1.376 1.503 2.414 2.278 3.804.773.873 1.486 1.393 2.198 1.914z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M252.018 215.569c-.227-1.211-.226-2.7.173-4.477.556-.557.713-.824.87-1.091 0 0-.065.015.313.15 2.48-2.286 4.581-4.704 7.025-7.13 1.117.35 1.892.706 2.667 1.062-1.788 5.491-4.894 9.71-11.048 11.486z",opacity:"1"}),(0,n.jsx)("path",{fill:"#8B5E35",d:"M47.915 141.984c-.26 1.548-.521 3.097-.929 4.936-5.22-6.443-8.088-13.807-6.429-22.729 1.096 4.214 1.987 8.749 3.489 13.592 1.697 1.606 2.783 2.903 3.869 4.201z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M229.655 198.714c.018 1.314-.299 2.445-.635 3.93-.6.16-1.635.065-1.7-.24-1.866-8.639-2.313-17.196 2.289-25.405-.258 5.279-1.07 10.563-1.467 15.878-.138 1.844.756 3.766 1.513 5.837z",opacity:"1"}),(0,n.jsx)("path",{fill:"#484748",d:"M195.176 183.832c-.77.124-1.208.124-1.977.138-.332-.807-.333-1.627-.04-2.828 1.146-1.325 1.997-2.27 3.197-3.162 2.254-1.786 4.159-3.623 6.476-5.313 1.097.657 1.783 1.167 2.469 1.677-3.265 3.122-6.53 6.244-10.125 9.488z",opacity:"1"}),(0,n.jsx)("path",{fill:"#624123",d:"M131.068 144.916c1.249.374 2.497.748 4.14 1.16-3.121 5.599 2.166 8.813 3.838 13.712-.02 1.219-.03 1.714-.041 2.21-.325-.1-.589-.287-1.036-1.094-3.528-5.227-8.52-9.185-6.9-15.988z",opacity:"1"}),(0,n.jsx)("path",{fill:"#868485",d:"M229.948 138.047c.146 1.3.29 2.599.189 4.143-4.768-4.845-4.173-11.057-3.698-17.7.836-.546 1.303-.554 1.758-.124.406 3.09.826 5.741 1.325 8.677.539.684.997 1.083 1.439 1.486a.49.49 0 00-.046.016s-.193.45-.41.683c-.33 1.095-.443 1.957-.557 2.82z",opacity:"1"}),(0,n.jsx)("path",{fill:"#3A3A3B",d:"M172.017 110.41c1.282.068 2.533.491 4.279 1.305.875.552 1.255.713 1.635.875a389.789 389.789 0 014.674 3.854c.408 1.428.42 2.488.431 3.55 0 0-.053.012-.048.04-3.664-3.073-7.333-6.171-10.97-9.625z",opacity:"1"}),(0,n.jsx)("path",{fill:"#898D90",d:"M258.586 190.937c3.105.58 4.744-.391 4.473-3.864-.14-1.787.169-3.61.552-5.705 1.093 3.494 1.91 7.28 2.128 11.343-2.147 1.095-3.696 1.912-5.523 2.553a23.699 23.699 0 01-2.205-3.697c.137-.419.32-.568.575-.63zM262.258 113.084c1.369 5.116 2.737 10.233 3.542 15.63-1.34.253-2.116.225-2.865-.134-.51-1.143-1.046-1.955-1.617-3.049.013-.655.062-1.029.454-1.533.39-3.725.438-7.32.486-10.914z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M260.493 195.44c1.55-.817 3.1-1.634 5.074-2.447-.363 3.532-1.15 7.06-2.22 10.84-1.056-.106-1.831-.462-2.948-1.203-.196-2.653-.05-4.922.094-7.19z",opacity:"1"}),(0,n.jsx)("path",{fill:"#CDD4D8",d:"M173.832 97.895c.668 3.723 1.137 7.156 1.7 11.262-1.512-1.62-2.65-2.842-4.13-4.091-.8-1.811-1.772-3.673-1.512-5.344.136-.878 2.426-1.422 3.942-1.827z",opacity:"1"}),(0,n.jsx)("path",{fill:"#898D90",d:"M203.406 108.077c-.013-2.426.263-4.852.93-7.711 1.458-1.355 2.526-2.275 3.593-3.195-.75 3.855-1.498 7.71-2.57 11.716-.77-.17-1.216-.49-1.953-.81z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A7B0B9",d:"M250.696 150.093c.081.417.163.834.016 1.772.049 3.111-4.25 6.614 1.296 8.151 0 0 .012.491-.008.736-1.792.538-3.564.832-5.685.686a58.813 58.813 0 012.649-11.477l1.732.132z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M262.908 128.911c.776.028 1.552.056 2.717.087-.353 3.221-1.094 6.438-2.182 9.836-.852.169-1.357.157-2.1-.232.246-1.805.73-3.23 1.216-4.656-2.17-.672-4.338-1.343-6.483-2.241.023-.226.13-.669.439-.814 1.739-.689 3.169-1.233 4.898-1.81l1.495-.17z",opacity:"1"}),(0,n.jsx)("path",{fill:"#868485",d:"M262.298 177.858c-1.914-.985-3.823-2.37-6.077-3.783-.344-.03-.263-.004-.27-.348-.992-1.516-1.978-2.688-2.964-3.86.016-.435.032-.868.054-1.628 4.59 1.401 7.742 4.52 9.257 9.619z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A7B0B9",d:"M262.26 112.908c-.05 3.77-.097 7.365-.643 10.749-1.473-1.67-2.447-3.13-3.482-4.962-.098-1.125-.136-1.878-.047-2.919.702-1.372 1.279-2.458 2.264-3.6.68-.111.95-.164 1.221-.216.23.257.46.515.688.948z",opacity:"1"}),(0,n.jsx)("path",{fill:"#898D90",d:"M172.045 168.961c-.296.013-.591.025-1.329-.003-.561-5.732-.68-11.422-.478-17.39.569-.044.742.235.831 1.013.32 5.762.648 11.071.976 16.38z",opacity:"1"}),(0,n.jsx)("path",{fill:"#555E67",d:"M207.477 97.13c-.615.961-1.683 1.881-3.104 2.828a49.109 49.109 0 01-3.48-.699c-.788 2.268-1.377 3.968-2.362 5.688-.395-2.421-.395-4.863-.395-7.857 3.07 0 5.98 0 9.341.04z",opacity:"1"}),(0,n.jsx)("path",{fill:"#868485",d:"M205.04 152.991c.737.007 1.473.013 2.577.015.874 2.446 1.38 4.897 1.296 7.654-2.033.316-3.475.326-4.773.037.397-2.769.649-5.237.9-7.706z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M249.148 105.942c.944-.52 1.888-1.041 2.891-1.924 2.797 1.73 5.535 3.822 8.258 6.329-.016.414-.357.707-.688.63-2.302-1.556-4.274-3.034-7.117-5.165.281 2.623.415 3.871.292 5.188-.433.085-.61.1-.899-.196-.988-1.83-1.862-3.346-2.737-4.862z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9D896C",d:"M84.057 213.386c4.644-.67 9.442-1.016 14.652-1.336-4.14 4.384-9.137 4.678-14.652 1.336z",opacity:"1"}),(0,n.jsx)("path",{fill:"#ABB0B6",d:"M183.004 184.355c-.121-1.483-.232-2.532-.114-4.046-.004-.652-.237-.84-.47-1.028-1.008-.253-2.017-.506-3.198-1.298 1.615-.794 3.403-1.049 5.19-1.303.2 4.237.421 8.473.54 12.712.008.26-.799.544-1.55.711-.346-1.842-.367-3.578-.398-5.748z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M174.368 221.086c-.143-2.704.068-5.248.695-7.895 1.323 1.148 2.228 2.397 3.45 3.69.315 1.489.315 2.935.315 5.136-1.575-.296-2.84-.534-4.46-.93zM182.992 134.376c1.891-.26 3.621-.25 5.67-.013.311.99.305 1.753.059 2.707-.413.764-.584 1.337-1.017 2.024-1.73.382-3.201.651-4.727.581-.814-.896-1.573-1.453-2.53-2.217l-.6-.621c.995-.73 1.99-1.461 3.145-2.461z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M205.57 174.112c-.955-.278-1.64-.788-2.683-1.794.146-2.098.648-3.7 1.528-5.302l3.397.006c-.658 2.286-1.316 4.572-2.242 7.09z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M207.941 166.651c-1.136.37-2.142.367-3.59.01-.496-1.313-.55-2.27-.523-3.631.11-.947.14-1.491.17-2.033.002.003-.003 0-.003 0 1.443-.011 2.885-.021 4.763-.033.061 1.77-.313 3.543-.817 5.687z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M252.261 159.767c-5.8-1.288-1.5-4.79-1.482-7.59.296-.21.79-.241 1.027-.175.395 2.55.551 5.033.455 7.765z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M241.254 103.996c-.515-.041-.76-.297-1.136-.785.052-2.088.234-3.945.473-6.394 1.139.827 1.939 1.408 3.075 2.1-.49 1.694-1.316 3.279-2.412 5.079z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593C21",d:"M139.249 162.165c-.233-.663-.222-1.158-.19-2.025 1.734 2.06 3.445 4.492 5.174 7.285.017.36-.142.499-.543.55-.831.044-1.262.037-1.693.03 0 0-.004-.5-.043-1.07-.677-1.025-1.317-1.478-1.956-1.932 0 0 .002-.003-.001-.254l-.01-.753c-.165-.554-.33-1.109-.738-1.83z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9D896C",d:"M106.52 207.985c.484.375.587.735.684 1.376-2.457 1.101-4.91 1.92-7.746 2.765 1.971-1.369 4.326-2.763 7.062-4.141zM74.202 209.826c-.344-.536-.297-.906-.2-1.556a38.955 38.955 0 018.026 2.535c-2.553-.067-4.994-.44-7.826-.98z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M171.077 152.128c-.097-.325-.27-.604-.732-.96a44.782 44.782 0 013.078-8.203c.393-.113.616.066.565.435-1.003 3.155-1.957 5.941-2.91 8.728z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M184.726 198.992c.254 1.146.28 2.15.302 3.526-.483.732-.961 1.091-1.756 1.46-.845-1.411-1.374-2.832-2.015-4.58.632-.659 1.377-.992 2.432-1.401.476.233.643.542 1.037.995z",opacity:"1"}),(0,n.jsx)("path",{fill:"#C8CACD",d:"M228.21 123.927c-.468.009-.935.017-1.746.108-.25-1.132-.156-2.347.22-3.795.731-.212 1.18-.19 1.982.135.084 1.387-.186 2.47-.456 3.552z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M174.898 140.915c1.176-1.227 2.352-2.455 3.96-3.532.658.391.926.567 1.034.945-1.761 1.075-3.319 1.88-4.906 2.661l-.088-.074z",opacity:"1"}),(0,n.jsx)("path",{fill:"#704A25",d:"M88.576 116.305c-1.046.606-2.498 1.141-4.23 1.49.013-.467.306-.746.598-1.025 1.075-.178 2.15-.357 3.632-.465z",opacity:"1"}),(0,n.jsx)("path",{fill:"#906E4F",d:"M84.654 116.65c-.002.4-.295.678-.695 1.13-.56.148-1.014.123-1.807.07.51-.46 1.36-.89 2.502-1.2z",opacity:"1"}),(0,n.jsx)("path",{fill:"#CDD4D8",d:"M170.973 106.152c.512.344.772.823 1.011 1.593-.435-.292-.85-.875-1.011-1.593z",opacity:"1"}),(0,n.jsx)("path",{fill:"#906E4F",d:"M98.763 116.867c-.396.198-1.03.25-1.756.079.444-.224.981-.225 1.756-.08z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M173.702 142.767c.146-.593.407-1.1.931-1.73.265-.122.324-.073.425.262-.273.8-.646 1.266-1.02 1.732 0 0-.222-.179-.336-.264z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M180.094 138.06c-.31-.11-.578-.286-.913-.742-.11-.215.253-.422.46-.451.34.108.472.246.672.696.066.312-.219.497-.219.497zM261.47 111.69c-.167.322-.438.375-1.12.19-.412-.434-.411-.63-.41-.826 0 0 .341-.293.534-.414.426.18.66.48.996 1.05z",opacity:"1"}),(0,n.jsx)("path",{fill:"#8B5E35",d:"M113 141.067c-.62 15.392-16.26 25.208-29.663 19.14-2.541-1.15-5.538-1.373-7.96-2.693-9.558-5.212-10.255-19.505-1.428-26.088 1.592-1.188 3.158-2.409 4.727-3.626 8.577-6.656 18.74-6.512 26.445 1.007 3.358 3.277 8.695 5.624 7.878 12.26m-16.092-12.848c-3.167-3.229-8.562-2.883-12.583.77-.44.005-.88.01-1.963.092-.457.638-.913 1.275-1.863 1.918 0 0-.493.008-1.207.073-5.752 1.789-7.846 6.397-8.196 11.721-.37 5.638 2.465 9.936 7.637 12.22 6.93 3.06 13.987 6.651 21.109.228.414-.373 1.32-.14 1.928-.368 4.286-1.613 8.75-8.887 8.175-13.25-.842-6.394-6.318-12.184-12.435-12.63 0 0-.493-.008-.602-.774z",opacity:"1"}),(0,n.jsx)("path",{fill:"#704A25",d:"M107.727 190.284c-4.017-3.034-8.033-6.067-12.423-9.544-.503-.829-.631-1.215-.343-1.637 5.221.247 4.348-3.189 2.784-4.967-3.464-3.94-2.406-6.761.95-9.726.29-.257.217-.927.312-1.404 17.023-5.357 21.327-17.54 14.048-34.645 3.789-1.005 6.354.113 6.71 4.402.634 7.634.293 15.149-3.345 22.095-1.724 3.293-4.135 5.572-8.24 6.398-5.842 1.175-8.56 8.957-4.517 13.074.392 1.153.411 1.897.178 2.803.24 1.064.732 1.964 1.268 3.068.043.204.082.62-.195.842-.538 3.159-.21 5.8 3.1 7.285.006.776 0 1.22-.075 1.736l-.212.22z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7A522B",d:"M98.642 163.044c.27.44.343 1.109.052 1.366-3.355 2.965-4.413 5.786-.949 9.726 1.564 1.778 2.437 5.214-2.952 4.864-.786-.26-.914-.49-.797-1.089 2.4-2.945 2.328-4.515-1.598-4.94-4.967-.537-5.92 2.078-5.358 6.453-.095.638-.15 1.002-.499 1.425-.975.439-1.66.818-2.343 1.198-5.013-1.526-4.208-4.387-1.988-7.863 3.908-6.121 3.833-6.17-2.05-10.878 1.45 0 3.205-.008 4.632.672 4.726 2.25 9.175 2.199 13.85-.934z",opacity:"1"}),(0,n.jsx)("path",{fill:"#704A25",d:"M101.031 119.364c3.6 1.381 7.298 3.012 10.834 4.94.7.38.777 1.905 1.143 3.288-3.977-2.368-7.956-5.122-11.977-8.228z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M48.701 157.02c5.742-.966 5.378-6.338 7.985-9.854 1.736 2.657 2.958 5.605 4.636 8.267 1.36 2.155 3.266 3.964 4.93 5.927l-.527 1.557c-2.214-.255-4.52-.198-6.626-.817-9.79-2.875-19.547 5.407-18.184 15.517.126.929-.232 1.923-.646 3.137-3.232-4.72-2.753-9.466 1.041-14.442 1.156-2.051 1.922-3.682 2.689-5.313 0 0 .001.001.372-.007 1.123-1 1.875-1.991 2.627-2.983.468-.322.936-.645 1.703-.99z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7A522B",d:"M50.997 193.002c-1.994-3.974-6.622-5.686-7.318-11.224-1.164-9.254 4.287-18.44 16.878-15.52 2.103.489 4.452-.084 6.95.14-.378 3.093-1.02 5.877-1.875 8.643-.213-.018-.64-.039-.693-.387-1.228-1.17-2.404-1.994-3.58-2.817-4.639-3.248-11.395-3.027-13.875.454-2.89 4.054-1.664 11.163 2.524 14.7-.008.009.012-.007.152.303.932 1.15 1.571 2.396 2.541 2.76 4.03 1.508 7.135 6.013 12.546 3.94a30.4 30.4 0 001.042-.022c.77-.335 1.24-.655 2.03-.985.746-.035 1.172-.06 1.63.16.033.247.068.743-.188.927-.443.776-.629 1.37-1.045 2.1-.376.46-.523.782-.643 1.28.027.174-.007.526-.352.526-.803.007-1.262.014-1.967-.257-5.082-1.76-9.919-3.24-14.755-4.722h-.002z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7E542D",d:"M48.29 141.985c-1.46-1.299-2.547-2.596-3.965-3.94-.651-2.655-1.394-5.3-1.178-7.865.253-2.99 1.343-5.91 2.542-8.892.744-.464 1.016-.898 1.288-1.33 0 0 .018.047.325.011.772-.68 1.236-1.323 2.09-2.005 1.78-.494 3.142-1.207 4.564-1.361 5.54-.6 11.287-2.252 16.058 2.764a453.356 453.356 0 01-.064 2.621s-.479.005-.97.015c-.661.003-.83-.004-1.226-.316-5.074-3.13-10.096-1.999-14.581.046-3.729 1.7-6.911 4.64-6.264 9.745.44 3.468.986 6.633 5.089 7.516-1.112.997-2.223 1.994-3.709 2.991z",opacity:"1"}),(0,n.jsx)("path",{fill:"#261A11",d:"M65.845 175.06a511.36 511.36 0 012.063-8.704c3.432-3.667 6.404-1.866 9.65.61-.172 3.498-.363 7.36-.639 11.935-1.665 2.13-3.244 3.546-5.2 4.947-1.123-.014-1.872-.015-2.72-.322-1.118-1.709-2.136-3.11-3.1-4.807.018-1.418-.018-2.539-.054-3.66m3.146 2.453l2.678 3.386c.768-.91 2.111-1.79 2.162-2.739.067-1.242-.888-2.54-1.403-3.813-1.133.79-2.266 1.581-3.437 3.166z",opacity:"1"}),(0,n.jsx)("path",{fill:"#DAB886",d:"M86.035 202.935c-3.144 3.918-7.11 3.38-11.785 1.743-3.542-3.396-2.956-7.063-2.206-11.044.267-.702.421-1.099.671-1.44.095.055.3-.027.3-.027.421-.052.842-.105 1.983-.165 2.061.006 3.402.02 4.753.42 2.1 3.763 4.192 7.138 6.284 10.513z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M66 198.001c.46-.007.918-.014 1.85.278.649 1.114.826 1.93 1.003 2.744-5.27.986-10.325 1.447-14.953-2.44-1.827-1.534-4.527-2.028-6.726-3.343.011-.312-.082-.277-.176-.242-2.176-3.194-4.352-6.387-6.266-9.79 3.352 2.455 6.443 5.12 9.9 7.79.365.004.368.002.41.365 3.66 4.416 10.32 6.324 14.958 4.638z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593515",d:"M70.018 118.993c-4.775-4.642-10.521-2.99-16.062-2.39-1.422.154-2.784.867-4.565 1.36-.391.037-.393.035-.392-.295.013-.77.023-1.21.034-1.649 10.23-5.45 17.344-4.73 25.834 2.719-.191.496-.702.858-1.854 1.222-1.425-.321-2.21-.644-2.995-.967z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M67.982 121.993c.168.006.337.013.758.02-1.698 3.09-3.091 6.819-5.728 9.126-4.26 3.73-4.38 8.618-5.73 13.608-3.964-4.473-.753-8.693.851-13.722 3.384-3.464 6.616-6.248 9.849-9.032z",opacity:"1"}),(0,n.jsx)("path",{fill:"#BE9E6C",d:"M79.742 192.035a351.996 351.996 0 01-4.427-.065c1.211-1.941 2.75-3.929 4.465-5.75 1.231-1.308 2.698-2.394 4.239-3.876.863-.677 1.547-1.056 2.58-1.115-.795 2.347-1.996 4.345-3.023 6.428-.16.325.472 1.04.491 1.806-1.606 1.011-2.966 1.792-4.325 2.572z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7A542D",d:"M72.899 191.844c.116.323-.089.405-.631.31-1.139-.132-1.734-.168-2.282-.58a399.912 399.912 0 012.11-7.712c1.579-1.415 3.158-2.83 4.816-4.56 2.849 2.854 1.685 5.12-1.275 7.475-1.353 1.077-1.927 3.132-2.738 5.067z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M70.014 119.367c.79-.051 1.574.272 2.679.628-.462.686-1.244 1.34-2.384 1.993-.339-.749-.319-1.497-.295-2.62z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7A522B",d:"M112.532 198.144c-1.133-2.14-2.266-4.28-3.276-6.76.346-.357.57-.375 1.149-.349 2.87 2.302 5.2 5.265 9.16 3.826 3.524-1.28 7.054-2.68 10.315-4.503 4.462-2.495 6.841-10.707 4.698-14.97-1.956-3.89-7.512-5.134-13.172-3.174-1.669.578-3.547.55-5.387.435-1.093-2.784-2.127-5.202-3.16-7.621 5.872.66 11.744 1.327 17.618 1.974 3.927.433 8.33 5.77 8.448 10.86.071 3.091-.584 6.2-.929 9.961-.015.66-.017 1.142-.365 1.189-2.25 1.327-4.149 2.617-6.059 3.888-5.325 3.543-10.62 7.195-17.577 5.107.005-.006-.007.003-.085-.166-.323-.049-.567.072-.951.23-.14.036-.427.073-.427.073z",opacity:"1"}),(0,n.jsx)("path",{fill:"#62401E",d:"M131.058 144.536c-1.608 7.183 3.383 11.14 6.801 16.148-5.417-1.293-10.544.615-15.785 2.047-1.409.385-3.49.104-4.564-.75-.652-.518-.496-3.08.204-4.107 4.671-6.846 6.324-14.724 8.57-22.727 1.105.553 1.819 1.28 2.619 2.319.744 1.421 1.4 2.53 2.058 3.637l.097 3.433z",opacity:"1"}),(0,n.jsx)("path",{fill:"#2A201B",d:"M112.508 164.99c1.384 2.457 2.418 4.875 3.485 8.001.068 1.165.104 1.62.08 2.452-.447 4.303-1.956 7.392-6.44 8.422-.727-.15-1.142-.236-1.715-.548a76.861 76.861 0 00-2.727-2.497l-.089-.954a23.616 23.616 0 00-1.008-2.895 434.32 434.32 0 00-.074-2.603c.358-2.326.42-4.411 1.176-6.204 1.263-2.99 3.274-5.122 7.312-3.174m-1.07 10.572l-3.282 3.392 2.46 1.902c.415-1.554.829-3.108.821-5.294z",opacity:"1"}),(0,n.jsx)("path",{fill:"#B88363",d:"M128.817 137.152a273.343 273.343 0 00-2.371-2.39c-3.214-3.5-6.198-6.789-9.316-10.712.642-1.334 1.396-2.609 2.197-2.64 4.623-.176 13.832 6.206 15.65 10.589-.011.43-.023.86-.401 1.677-2.165 1.416-3.962 2.446-5.76 3.476z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A16F49",d:"M135.25 131.772c-2.091-4.156-11.3-10.538-15.923-10.361-.801.03-1.555 1.305-2.4 2.369-1.258-.496-2.447-1.354-3.78-2.496 4.914-4.24 10.131-3.811 15.531-.991 4.591 2.397 7.471 5.731 6.571 11.48z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593515",d:"M133.194 117.667c-4.007-.36-8.24-1.496-12.477-1.506-3.082-.007-6.169 1.473-9.47 2.58-1.218.111-2.22-.066-3.28-.562 3.317-2.018 6.692-3.717 10.893-5.365 2.32.009 3.815-.033 5.311-.076 2.932 1.546 5.864 3.09 9.023 4.93z",opacity:"1"}),(0,n.jsx)("path",{fill:"#624123",d:"M141.998 168.47c.43-.458.86-.451 1.614-.425.631 3.398 1.435 6.827 1.092 10.137-.273 2.64-1.945 5.133-3.352 7.75-.022-5.629.312-11.314.646-17.463zM137.979 188.965s.002-.482.007-.722c.79-.56 1.575-.877 2.677-1.223-.164 1.497-.645 3.021-1.643 4.758-.685.213-.854.212-1.022-.166-.006-1.134-.013-1.89-.02-2.647zM140.04 165.323c.597.134 1.237.587 1.914 1.362-.599-.133-1.235-.587-1.914-1.362zM139.822 164.087c.167.077.17.244.173.663-.112-.023-.225-.297-.173-.663z",opacity:"1"}),(0,n.jsx)("path",{fill:"#261A11",d:"M79.75 192.423c1.351-1.168 2.711-1.949 4.756-3.003 4.626-.308 8.567-.344 12.507-.379 1.603 1.141 3.205 2.282 4.91 4.064-1.603 3.334-3.31 6.026-5.015 8.719-3.184 2.189-6.082 6.509-10.56 1.24a132.127 132.127 0 01-6.598-10.641m3.68.27c.68 1.357 1.193 3.743 2.071 3.886 2.985.486 6.163.547 9.138.03 1.628-.284 2.999-2.055 4.485-3.156l-.654-1.129c-4.803 0-9.607 0-15.04.369z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593515",d:"M137.998 191.99c.168 0 .337 0 .76.003.249.75.245 1.498.239 2.62-.002.375.002.387-.219.494-.49.306-.677.564-.778.883-1.304 1.3-2.468 2.793-3.936 3.869-6.682 4.895-14.26 6.177-22.719 5.172.061-2.068.504-4.095 1.066-6.505.12-.382.408-.42.77-.464.361-.046.807-.052.807-.052s.012-.01.051.364c1.419 1.425 2.857 3.42 4.166 3.339 3-.186 6.203-.888 8.839-2.29 3.873-2.061 7.323-4.917 10.954-7.433z",opacity:"1"}),(0,n.jsx)("path",{fill:"#DAB886",d:"M96.971 188.664c-3.898.412-7.839.448-12.218.525-.705-.492-1.337-1.207-1.177-1.532 1.027-2.083 2.228-4.081 3.314-6.487 0-.744.055-1.108.46-1.917 2.209-2.583 4.231-2.992 6.475-1.015.054.272.182.503.55.797.298.49.426.876.624 1.56.69 2.762 1.31 5.227 1.972 8.07zM96.967 202.197c1.647-3.066 3.353-5.758 5.135-8.804 3.782.038 7.643-.12 7.024 5.686-.383 3.594-2.211 5.382-5.209 6.42-3.087 1.07-5.49.158-6.95-3.302z",opacity:"1"}),(0,n.jsx)("path",{fill:"#B88363",d:"M68.913 201.343a46.121 46.121 0 00-.72-3.064c-.127-.299-.093-.65.095-.987.345-.643.501-.95.658-1.256.186-.593.372-1.186 1.132-1.917 1-.152 1.427-.166 1.854-.18-.638 3.676-1.224 7.343 1.914 10.727-.1.808-.363 1.302-.736 2.054-1.233-.968-2.355-2.193-3.745-3.59-.31-.603-.351-1.035-.452-1.787z",opacity:"1"}),(0,n.jsx)("path",{fill:"#704A25",d:"M110.049 190.991c-.224.018-.447.036-1.004.104-.617-.057-.858-.224-1.188-.631-.13-.18.011-.326.385-.387.85.264 1.329.59 1.807.914z",opacity:"1"}),(0,n.jsx)("path",{fill:"#624123",d:"M43.699 161.15c-.467 1.48-1.233 3.11-2.348 4.797.45-1.512 1.249-3.079 2.348-4.797zM46.717 158.137c-.471.864-1.223 1.856-2.347 2.855.441-.904 1.254-1.815 2.347-2.855z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7A522B",d:"M124.04 112.417c-1.365.364-2.86.406-4.797.34 1.262-.292 2.964-.477 4.797-.34z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M191.031 203.385c.909.07 1.797.567 2.828 1.354-1.101 3.267-2.345 6.246-3.589 9.225l-1.805-.22c.153-1.496.119-3.043.506-4.475.505-1.866 1.344-3.64 2.06-5.884zM189.286 201.968c-.004-.843.323-1.662.65-2.481.347.621.694 1.243 1.022 2.214-.46.33-.9.31-1.672.267zM178.59 208.037c.313-.753.978-1.518 1.979-2.296-.319.753-.972 1.518-1.978 2.296zM186.006 203.342c.417-.307.879-.318 1.688-.313-.317.214-.98.412-1.688.313z",opacity:"1"}),(0,n.jsx)("path",{fill:"#F3F4F4",d:"M256.206 131.036s-.107.443-.186 1.08c.355 4.504-.94 7.406-4.783 8.53-.049-3.503-1.11-6.248-4.47-6.336-1.928-.05-4.336 1.135-5.709 2.556-1.022 1.058-.727 3.387-1.02 5.15-.407.039-.815.078-1.529.143-1.018-.495-1.731-1.015-2.436-2.317-.03-7.472-.068-14.163-.002-21.196.952-2.113 1.8-3.885 3.007-6.404.842 2.817.876 4.973 1.971 6.038 1.147 1.115 3.301 1.475 5.04 1.548.62.026 1.314-1.76 2.254-2.5 1.028.275 2.314.59 2.433.342.59-1.226.873-2.6 1.574-3.728 3.16 3.73 4.493 7.571 2.406 12.268.285 1.759.868 3.292 1.45 4.826z",opacity:"1"}),(0,n.jsx)("path",{fill:"#484748",d:"M258.657 190.52c-.325.479-.51.628-.976 1.112-1.128-.379-1.902-1.006-2.614-2.01 1.565-4.815.432-8.438-1.822-10.76-2.962 2.352-5.602 5.936-7.465 5.57-2.62-.516-4.664-3.963-7.223-6.414-3.973 3.98-2.938 10.212-3.764 15.87-.435-.39-.644-.66-.853-.93.005-.423.009-.847.06-1.937.012-1.135-.024-1.604-.06-2.072-.004-.413-.007-.825.02-1.976-.188-3.12-.407-5.504-.626-7.887 2.455-2.79 4.91-5.58 7.422-8.702 1.509-.333 2.961-.333 4.951-.333l2.202-2.995c.906 1.146 1.573 1.992 2.62 3.247 2.063 1.53 3.746 2.649 5.43 3.768 0 0-.082-.025-.113.003.94 5.362 1.91 10.695 2.811 16.445m-8.063-16.02s-.123.078 0 0z",opacity:"1"}),(0,n.jsx)("path",{fill:"#E3E7EB",d:"M248.612 149.933c-.882 3.689-1.764 7.377-2.692 11.453-1.194.49-2.342.592-3.144.663 0-6.063 0-12.128.116-18.897.371-1.074.625-1.443 1.093-1.722.213.089.5-.269.5-.269s-.314-.336.3-.481c1.034-.113 1.454-.08 1.778.327.619 3.225 1.334 6.076 2.05 8.926z",opacity:"1"}),(0,n.jsx)("path",{fill:"#555E67",d:"M243.772 141.34c-.255.37-.509.738-.985 1.36-.894.009-1.567-.236-2.494-.582.038-1.865-.257-4.194.765-5.252 1.373-1.421 3.78-2.607 5.71-2.556 3.36.088 4.42 2.833 4.393 6.248 0 .31-.218.395-.585.419a91.698 91.698 0 01-3.917-.344c-.42-.033-.84-.066-1.963.108-.703.207-.924.6-.924.6z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9CA5AC",d:"M255.952 173.727c-1.677-.775-3.36-1.894-5.1-3.373.43-.389.918-.417 1.77-.467 1.351 1.152 2.337 2.324 3.33 3.84z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A16F49",d:"M128.903 137.466c1.71-1.344 3.508-2.374 5.649-3.468-.785 2.185-1.913 4.434-3.316 6.894-.932-.897-1.59-2.005-2.333-3.426z",opacity:"1"}),(0,n.jsx)("path",{fill:"#906E4F",d:"M136.363 140.266c.015-.255.15-.394.283-.532-.055.216-.11.432-.283.532z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593515",d:"M49.001 118.001c-.463.645-.927 1.289-1.72 1.956-.303-.394-.276-.811.099-1.566.771-.357 1.195-.375 1.618-.393L49 118z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7E542D",d:"M49 117.668c-.425.348-.849.366-1.587.41.108-.648.532-1.323 1.288-2.028.321.409.31.848.298 1.618z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593515",d:"M46.738 120.05c-.033.34-.305.774-.75 1.03.055-.431.283-.684.75-1.03z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593C21",d:"M138.219 195.885c-.118-.214.068-.472.554-.778.121.215-.063.475-.554.778z",opacity:"1"}),(0,n.jsx)("path",{fill:"#B88363",d:"M67.754 121.687c-3.005 3.09-6.237 5.874-9.621 8.953-2.044 2.782-3.935 5.27-5.98 8.056-4.258-.585-4.805-3.75-5.244-7.218-.647-5.104 2.535-8.046 6.264-9.745 4.485-2.045 9.507-3.176 14.581-.046z",opacity:"1"}),(0,n.jsx)("path",{fill:"#F1F1F2",d:"M183.428 120.013c-.403-1.08-.415-2.141-.486-3.598.593-1.53 1.246-2.665 1.88-4.191.455-1.017.929-1.643 1.734-2.314a144.7 144.7 0 012.009 17.603c-1.365.498-2.398.483-3.43.468-.438-2.65-.876-5.299-1.707-7.968z",opacity:"1"}),(0,n.jsx)("path",{fill:"#D8DDE0",d:"M185.086 128.383c1.081-.387 2.114-.372 3.404-.418-.256 1.643-.77 3.346-1.284 5.049l-1.537-.088c-.21-1.38-.42-2.76-.583-4.543z",opacity:"1"}),(0,n.jsx)("path",{fill:"#555E67",d:"M188.961 136.879c.006-.763.012-1.527-.017-2.674.438-.59.913-.798 1.63-.864.308 1.367.373 2.593.164 4.107-.775.003-1.276-.283-1.777-.569z",opacity:"1"}),(0,n.jsx)("path",{fill:"#868485",d:"M191.052 111.372c.516-.104.984.154 1.682.555.217.92.205 1.696.086 2.85-.676-.763-1.246-1.903-1.768-3.405z",opacity:"1"}),(0,n.jsx)("path",{fill:"#CDD4D8",d:"M177.953 112.253c-.402.175-.782.014-1.328-.43.34-.157.845-.032 1.328.43z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M232.958 179.187c.595 2.282.814 4.665.976 7.478-.746.393-1.436.356-2.472.305.143-2.57.632-5.126 1.496-7.783z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M196.007 177.927c-.851.945-1.702 1.89-2.879 2.964-1.204-2.14-1.913-4.496-3.004-6.66-1.608-3.185-3.442-3.316-5.089.434-.16.66-.338.948-.97 1.334-1.321-.6-2.189-1.297-2.67-2.04.958-1.244 1.28-2.69 2.16-3.59 1.573-1.613 3.445-3.955 5.262-4.02 1.775-.063 3.77 2.196 5.398 3.725.669.629.627 2.015 1.202 4.146 1.549-2.627 2.587-4.388 3.958-6.037-.175 1.96-.562 3.856-1.23 5.646-.535 1.433-1.413 2.737-2.138 4.098z",opacity:"1"}),(0,n.jsx)("path",{fill:"#FEFEFE",d:"M194.298 107.87c.496-.166.858-.092 1.763.104-.082.627-.708 1.132-1.72 1.43-.316-.568-.246-.93-.043-1.533z",opacity:"1"}),(0,n.jsx)("path",{fill:"#3A3A3B",d:"M183.033 140.014c1.47-.269 2.94-.538 5.05-.91 1.394-.103 2.148-.103 2.903-.102 0 0 .113.462.089 1.036-.046 1.035-.067 1.496-.425 1.988-1.186 1.672-2.034 3.312-2.843 5.253.566.456 1.092.611 1.876.946.947-.967 1.636-2.114 2.582-3.435 1.386-1.02 2.516-1.864 3.974-2.606a65.247 65.247 0 014.963 8.305c-.613 2.748-1.178 5.088-1.866 7.014-.418-4.426-.07-8.677-2.989-10.769-2.951 2.343-5.596 5.99-7.693 5.7-2.427-.338-4.372-4.141-6.94-6.88-1.111 1.8-2.31 3.74-3.84 5.485-.145-2.095.041-3.994.496-6.103 1.734-1.78 3.198-3.35 4.663-4.922z",opacity:"1"}),(0,n.jsx)("path",{fill:"#CDD4D8",d:"M199.458 157.916c.566-2.34 1.131-4.679 2.041-7.376 1.32.282 2.296.921 3.272 1.56 0 0 .126.449.198.67a102.31 102.31 0 01-.829 7.927c-.145.3-.14.303-.441.351-.185.827-.068 1.606.05 2.385.053.957.106 1.915.224 3.227-.438 1.958-.94 3.56-1.498 5.51-1.96 2.187-3.865 4.024-6.12 5.81.377-1.414 1.255-2.718 1.79-4.15.668-1.79 1.055-3.686 1.224-6.035-.667-2.61-1.188-4.718-1.237-6.837-.023-1.003.856-2.027 1.326-3.042z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A7B0B9",d:"M204.915 151.804c-1.12-.343-2.096-.982-3.369-1.673-1.858-2.648-3.418-5.245-5.383-8.226-.938-.937-1.472-1.49-2.006-2.043 1.168-.252 2.793-1.125 3.43-.656 4.12 3.037 7.323 6.785 7.328 12.598z",opacity:"1"}),(0,n.jsx)("path",{fill:"#555E67",d:"M193.784 139.9c.907.515 1.44 1.068 2.05 1.9a12.042 12.042 0 01-3.57 2.655c-.598-.928-.938-1.694-1.278-2.46.022-.461.043-.922.132-1.723.81-.338 1.551-.335 2.666-.371z",opacity:"1"}),(0,n.jsx)("path",{fill:"#484748",d:"M191.006 138.73c-.775.271-1.53.271-2.662.26-.207-.583-.036-1.156.377-1.92.741.095 1.242.381 2.015.756.278.271.284.452.27.905z",opacity:"1"}),(0,n.jsx)("path",{fill:"#F1F1F2",d:"M235.018 194.01c.601-5.78-.434-12.013 3.54-15.992 2.558 2.45 4.602 5.898 7.222 6.413 1.863.367 4.503-3.217 7.465-5.57 2.254 2.323 3.387 5.946 1.544 10.971-.468 1.22-.922 2.06-.673 2.454 2.535 3.993 1.24 7.927-.23 11.965-.49.258-.713.479-1.164.72-.633-.075-.994-.125-1.354-.175-.055-.418-.11-.835-.258-1.918-1.627-2.256-3.031-4.928-4.734-5.134-1.722-.208-3.74 2.024-5.774 3.403-.143.387-.142.56-.258 1.06-.194 1.482-.27 2.638-.345 3.794 0 0-.49.086-.86-.165-1.27-.805-2.17-1.36-3.05-1.904.02.009.051-.023.051-.023-.052-.441-.104-.882-.154-2.052-.32-3.101-.644-5.474-.968-7.847z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M234.793 193.888c.549 2.495.872 4.868 1.125 7.643-2.245-1.753-3.494-6.018-2.315-8.496.546.193.755.462 1.19.853z",opacity:"1"}),(0,n.jsx)("path",{fill:"#ABB0B6",d:"M236.427 209.527c-.624-.223-1.25-.447-2.168-.841.567-1.564-3.072-4.39 1.516-4.744.365-.033.334-.001.194.268.312 1.515.763 2.761 1.215 4.007 0 0-.018.288-.198.612-.306.448-.433.573-.559.698z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M233.654 189c.322.417.358.886.338 1.704-.245-.318-.434-.984-.338-1.703z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9CA5AC",d:"M181.009 174.005c.867.697 1.735 1.395 2.95 2.226.349.134.41.289.432.369-1.766.334-3.554.589-5.376 1.141-.82-.409-1.609-1.116-2.173-2.265.341-.558.458-.675.576-.791l-.712-.514s.118.05.166-.355c.071-1.867.093-3.328.46-4.798.804-.003 1.264.002 1.765.354.666 1.776 1.289 3.204 1.912 4.633z",opacity:"1"}),(0,n.jsx)("path",{fill:"#555E67",d:"M240.38 206.01c-.305-1.165-.23-2.321.202-3.828.49-.43.624-.512.758-.592l-.593-.658c1.889-1.164 3.907-3.396 5.63-3.188 1.702.206 3.106 2.878 4.607 4.844-1.135.448-2.236.52-3.74.7-1.75.877-3.1 1.645-4.702 2.597-.76.167-1.27.15-2.161.124z",opacity:"1"}),(0,n.jsx)("path",{fill:"#FEFEFE",d:"M243.003 217.02c-.348-1.791-.423-3.428-.424-5.468.936-.757 1.798-1.11 3.028-1.615v8.688l-1.273.79c-.353-.748-.705-1.494-1.33-2.396z",opacity:"1"}),(0,n.jsx)("path",{fill:"#C8CACD",d:"M251.236 140.956c3.844-1.434 5.14-4.336 4.76-8.614 2.225.26 4.394.932 6.563 1.604-.485 1.426-.97 2.851-1.591 4.601-2.825 2.423-5.514 4.522-8.59 6.18-.737-1.552-1.086-2.663-1.435-3.774 0 0 .217-.085.293.003z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M250.576 140.977c.716 1.087 1.065 2.198 1.423 3.66-.348 1.81-.704 3.268-1.181 5.09-.582.331-1.042.296-1.854.234-1.067-2.878-1.782-5.729-2.401-8.954 1.28-.252 2.462-.13 4.013-.03z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M252.04 113.748c-.39 1.322-.673 2.696-1.264 3.922-.12.247-1.405-.067-2.526-.684-2.721-2.783-5.069-5.005-7.416-7.226.068-1.298.137-2.597.217-4.282 2.516-.302 5.019-.217 7.81.166 1.162 1.814 2.036 3.33 3.033 5.487.13 1.299.138 1.958.146 2.617z",opacity:"1"}),(0,n.jsx)("path",{fill:"#C8CACD",d:"M254.108 204.167c1.248-3.954 2.543-7.888.008-11.88-.25-.394.205-1.235.61-2.078 1.053.417 1.827 1.044 2.931 1.606.981 1.047 1.632 2.16 2.56 3.449.131 2.444-.014 4.713-.16 7.373-2.102 2.81-4.204 5.228-6.67 7.543-.307-.875-.25-1.646-.291-2.799-.097-.38-.077-.4.263-.342.477-.919.613-1.895.75-2.872z",opacity:"1"}),(0,n.jsx)("path",{fill:"#C8CACD",d:"M251.3 205.122c.428-.276.789-.226 1.404.181.275.797.295 1.238.315 1.679l-.03.027c-.593-.515-1.176-1.038-1.69-1.887zM252.878 210.098c.026.17-.131.437-.555.662-.067-.233.147-.406.555-.662z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M237.495 208.147c-.763-1.176-1.214-2.422-1.545-3.946 1.02.276 1.919.83 2.943 1.678-.28.928-.683 1.563-1.398 2.268z",opacity:"1"}),(0,n.jsx)("path",{fill:"#ABB0B6",d:"M237.001 208.972c1.094.312 1.992.805 2.89 1.298l-.444.966c-.926-.36-1.852-.718-2.899-1.393.005-.44.132-.566.453-.871z",opacity:"1"}),(0,n.jsx)("path",{fill:"#2E2E30",d:"M240.536 109.818c2.645 2.163 4.993 4.385 7.433 6.948-.566 1.301-1.26 3.088-1.88 3.062-1.739-.073-3.893-.433-5.04-1.548-1.095-1.065-1.13-3.221-1.971-6.038-1.206 2.52-2.055 4.29-3.33 6.245-1.112-.422-1.799-1.025-2.425-2.004 1.16-2.564 2.26-4.752 3.36-6.94.217.173.434.347 1.288.56.637.039 1.052-.148 1.052-.148.405-.026.81-.052 1.513-.137z",opacity:"1"}),(0,n.jsx)("path",{fill:"#E3E7EB",d:"M236.718 109.223c-1.135 2.508-2.235 4.696-3.666 7.38-.55 1.468-.77 2.44-1.275 3.628-.483 4.05-.68 7.882-1.269 11.87-.616.322-.841.49-1.066.657-.42-2.65-.839-5.302-1.245-8.392.283-1.522.553-2.604.802-4.041 1.48-3.875 2.864-7.454 4.592-10.859.292-.575 2.07-.395 3.127-.243z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M239.007 109.699c.016.256-.4.443-.625.467-.098-.444.03-.912.156-1.38.151.219.302.437.47.913z",opacity:"1"}),(0,n.jsx)("path",{fill:"#E3E7EB",d:"M182.977 139.675c-1.409 1.91-2.873 3.481-4.97 5.33-1.552 3.395-2.47 6.513-3.7 9.79-.329 3.538-2.57 7.121.638 10.563.4 1.45.77 2.546.79 3.68-.844.47-1.339.902-1.833 1.334-.463-.35-.925-.701-1.622-1.231-.563-5.489-.89-10.798-1.21-16.56.961-3.24 1.915-6.026 2.918-9.181.424-.835.797-1.301 1.099-2.076 1.486-1.116 3.044-1.921 4.805-2.996.202-.268.487-.453.62-.558.892.452 1.65 1.009 2.465 1.905z",opacity:"1"}),(0,n.jsx)("path",{fill:"#ABB0B6",d:"M173.82 170.744c.576-.804 1.071-1.236 2.141-1.713.576-.046 1.027-.005 1.027-.005-.023 1.462-.045 2.923-.166 4.83-1.094-.617-2.09-1.679-3.003-3.112z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9CA5AC",d:"M182.473 179.457c.18.012.413.2.406.455-.239.067-.354-.28-.406-.455z",opacity:"1"}),(0,n.jsx)("path",{fill:"#ABB0B6",d:"M176.532 174.428c.41-.086.648.086.886.257a3.064 3.064 0 01-.585.46c-.313-.08-.394-.27-.301-.717z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9CA5AC",d:"M230.9 131.946c.197-3.833.394-7.666 1.169-11.471.914 5.235 1.25 10.444 1.586 15.653-.752-.384-1.503-.767-2.498-1.367-.242-.216-.213-.228-.185-.663a35.391 35.391 0 00-.073-2.152z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M233.727 136.467c-.408-5.548-.744-10.757-1.372-16.209-.072-1.215.147-2.187.637-3.28.957.484 1.644 1.087 2.653 1.85.36 6.851.397 13.542.368 20.662-.783-.609-1.498-1.647-2.286-3.023z",opacity:"1"}),(0,n.jsx)("path",{fill:"#E3E7EB",d:"M230.238 137.815c-.176-.63-.062-1.492.382-2.37.19.702.05 1.42-.382 2.37z",opacity:"1"}),(0,n.jsx)("path",{fill:"#C8CACD",d:"M230.508 132.1c.425.418.459.99.48 1.994-.47.032-.927-.367-1.466-1.05.145-.453.37-.62.986-.943z",opacity:"1"}),(0,n.jsx)("path",{fill:"#D8DDE0",d:"M256.515 130.891c-.891-1.389-1.474-2.922-1.374-4.697 1.474-2.536 2.265-4.831 3.055-7.127.974 1.46 1.948 2.92 3.077 4.72.107.715.058 1.09-.067 2.15-.082 1.517-.087 2.347-.092 3.177-1.43.544-2.86 1.088-4.6 1.777z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A7B0B9",d:"M261.413 129.08c-.294-.796-.289-1.626-.172-2.862.648.407 1.184 1.219 1.694 2.362-.425.377-.824.422-1.522.5z",opacity:"1"}),(0,n.jsx)("path",{fill:"#3A3A3B",d:"M258.135 118.695c-.73 2.668-1.52 4.963-2.696 7.275 1.404-4.457.07-8.298-3.09-12.028-.317-.853-.325-1.512-.342-2.498.168-.343.344-.36 1.123-.401 2.011 1.656 3.421 3.338 4.831 5.02.038.754.076 1.507.174 2.632z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9CA5AC",d:"M258.088 115.776c-1.537-1.395-2.947-3.077-4.702-4.801-.479-1.292-.613-2.54-.894-5.163 2.843 2.131 4.815 3.609 7.117 5.164.33.274.329.47.33.961-.572 1.381-1.149 2.467-1.851 3.84z",opacity:"1"}),(0,n.jsx)("path",{fill:"#868485",d:"M203.828 163.03c-.197-.376-.314-1.155-.131-1.984.27.493.24 1.037.131 1.984z",opacity:"1"}),(0,n.jsx)("path",{fill:"#986840",d:"M98.002 128.997c5.624.442 11.1 6.232 11.942 12.625.574 4.364-3.889 11.638-8.175 13.25-.609.23-1.514-.004-1.928.369-7.122 6.423-14.18 2.831-21.11-.229-5.171-2.283-8.005-6.58-7.636-12.219.35-5.324 2.444-9.932 8.516-11.402-.212 1.136-.644 2.044-1.292 2.756-5.25 5.77-4.68 13.363 1.446 18.03 5.895 4.492 12.013 2.97 18.234.72 4.703-1.7 7.887-5.867 7.716-12.069-.12-4.372-1.88-8.33-6.815-10.092-.367-.754-.632-1.247-.898-1.74z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A16F49",d:"M99.001 130.998c4.833 1.5 6.594 5.458 6.714 9.83.171 6.202-3.013 10.369-7.716 12.07-6.22 2.25-12.339 3.771-18.234-.72-6.126-4.668-6.697-12.26-1.446-18.03.648-.713 1.08-1.621 1.649-2.79.037-.35.53-.359 1.1-.4 1.023-.679 1.48-1.316 1.935-1.954.44-.005.88-.01 2.053-.011 1.804.005 2.875.008 3.884.36-.866.802-1.63 1.347-2.478 1.692-4.413 1.799-8.684 7.427-8.458 11.224.332 5.59 5.02 10.333 10.6 10.722 5.974.416 13.774-4.489 14.175-9.486.197-2.452-1.079-5.053-1.837-7.54-.516-1.694-1.29-3.308-1.946-4.96a.096.096 0 00.005-.007z",opacity:"1"}),(0,n.jsx)("path",{fill:"#986840",d:"M89.002 129.003a912.693 912.693 0 01-3.616-.013c2.959-3.654 8.354-4 11.198-.383-1.079.392-1.833.396-3.004.397h-4.578z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A16F49",d:"M93.996 129.006c.755-.003 1.51-.007 2.642-.016.378-.005.87.003 1.117.005.513.494.778.987 1.145 1.741.101.262.099.265-.3.267-1.8-.665-3.202-1.33-4.604-1.997z",opacity:"1"}),(0,n.jsx)("path",{fill:"#986840",d:"M82.682 129.043c-.135.599-.59 1.236-1.368 1.912.134-.599.59-1.236 1.368-1.912z",opacity:"1"}),(0,n.jsx)("path",{fill:"#8B5E35",d:"M110.405 191.035c-.834-.369-1.312-.694-2.093-1.032-.297-.455-.292-.899-.299-2.114.013-1.963.038-3.155.063-4.346.415.086.83.171 1.759.593 1.277 1.032 2.539 1.62 2.72 2.444 1.024 4.65 3.071 6.537 7.299 5.16 3.532-1.15 7.056-2.96 9.936-5.282 2.46-1.982 4.586-4.908 1.697-8.52-3.34-4.177-5.555-4.508-9.99-2.196-1.314.685-3.55-.4-5.365-.674a22.692 22.692 0 01-.08-1.712c1.807-.592 3.685-.564 5.354-1.142 5.66-1.96 11.216-.716 13.172 3.174 2.143 4.263-.236 12.475-4.698 14.97-3.26 1.823-6.791 3.223-10.314 4.503-3.962 1.439-6.29-1.524-9.161-3.826z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7A542D",d:"M107.918 183.317c.133 1.417.108 2.609.084 4.24-3.298-.715-3.626-3.355-3.088-6.514 1.133.535 1.99 1.292 3.004 2.274z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M103.84 177.133c.574.623.893 1.408 1.22 2.529-.487-.565-.98-1.465-1.22-2.529z",opacity:"1"}),(0,n.jsx)("path",{fill:"#8B5E35",d:"M93.996 177.911c-2.415-1.65-4.437-1.24-6.608 1.068-.91-3.93.043-6.545 5.01-6.008 3.926.425 3.999 1.995 1.598 4.94z",opacity:"1"}),(0,n.jsx)("path",{fill:"#986840",d:"M71.72 183.848c-.312 2.46-.999 4.905-1.74 7.964-.055.614-.063 1.089-.063 1.089-.426.025-.852.05-1.768-.144-1.047.263-1.603.746-2.16 1.229 0 0-.495.006-.964-.266a1611.03 1611.03 0 00-15.005-6.736s-.02.016-.015-.415c-.19-1.551-.638-2.696-.53-3.785.267-2.727-.095-6.918 1.404-7.805 2.494-1.477 6.245-.98 9.47-1.01 1.544-.014 3.094.667 4.642 1.033 0 0 .428.021.64.04.25 1.138.286 2.26-.135 3.673-2.16-.172-3.857-.656-5.566-1.097-2.878-.743-5.633-1.744-7.735 1.81-2.05 3.464-.401 5.058 2.345 6.654 1.264.734 2.212 2.518 3.451 2.679 2.501.323 5.3.39 7.594-.462 1.515-.564 2.366-2.915 3.514-4.466.748 0 1.497.001 2.62.015z",opacity:"1"}),(0,n.jsx)("path",{fill:"#8B5E35",d:"M64.94 174.654c-1.497-.018-3.047-.7-4.592-.685-3.224.03-6.975-.467-9.47 1.01-1.498.887-1.136 5.078-1.404 7.805-.107 1.09.34 2.234.539 3.775-4.193-3.105-5.419-10.214-2.53-14.268 2.481-3.48 9.237-3.702 13.876-.454 1.176.823 2.352 1.646 3.58 2.817z",opacity:"1"}),(0,n.jsx)("path",{fill:"#704A25",d:"M65.754 197.723c-4.391 1.964-11.052.056-14.713-4.359 4.794 1.119 9.63 2.6 14.713 4.359z",opacity:"1"}),(0,n.jsx)("path",{fill:"#8B5E35",d:"M50.16 187.294c4.705 1.845 9.55 4 14.618 6.428-4.942 2.345-8.047-2.16-12.077-3.669-.97-.363-1.61-1.609-2.54-2.76zM66.29 193.972c.256-.47.812-.952 1.54-1.205-.3.55-.77.87-1.54 1.205z",opacity:"1"}),(0,n.jsx)("path",{fill:"#704A25",d:"M69.95 193.147c-.033-.246-.025-.721-.018-.96.602-.2 1.197-.165 2.24-.089.293.437.139.834-.128 1.536-.539.319-.965.333-1.71.302-.317-.046-.352-.542-.384-.789z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M68.716 196.174c.073.169-.083.475-.455.943-.068-.16.079-.483.455-.943z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A16F49",d:"M68.999 183.526c-1.048 1.858-1.899 4.21-3.414 4.773-2.294.853-5.093.785-7.594.462-1.24-.16-2.187-1.945-3.45-2.68-2.747-1.595-4.396-3.19-2.346-6.653 2.102-3.554 4.857-2.553 7.735-1.81 1.709.44 3.406.925 5.512 1.393 1.42 1.405 2.439 2.806 3.557 4.515z",opacity:"1"}),(0,n.jsx)("path",{fill:"#3A3A3B",d:"M69.01 177.115c1.152-1.188 2.285-1.978 3.418-2.77.515 1.274 1.47 2.572 1.403 3.814-.05.949-1.394 1.828-2.162 2.739-.893-1.129-1.785-2.257-2.66-3.783z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593C21",d:"M46.999 194.999c.093-.036.186-.071.142-.052-.138.055-.141.053-.142.052z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M137.998 191.612c-3.63 2.894-7.081 5.75-10.954 7.81-2.636 1.403-5.838 2.105-8.839 2.29-1.31.082-2.747-1.913-4.17-3.331 6.917 1.714 12.212-1.938 17.537-5.48 1.91-1.272 3.808-2.562 6.06-3.89.353.71.36 1.467.366 2.601zM113.91 197.84c.078.17-.368.176-.59.185.023-.112.267-.233.59-.184z",opacity:"1"}),(0,n.jsx)("path",{fill:"#986840",d:"M116.072 175.443c1.874-.101 4.111.984 5.426.299 4.434-2.312 6.65-1.98 9.989 2.195 2.889 3.613.763 6.539-1.697 8.521-2.88 2.322-6.404 4.133-9.936 5.283-4.228 1.376-6.275-.512-7.299-5.16-.181-.826-1.443-1.413-2.409-2.38 3.971-1.366 5.48-4.455 5.926-8.758m12.31 3.931c-3.68-2.513-10.208-.145-11.295 4.099-.855 3.335 1.993 6.669 4.857 5.25 3.458-1.713 7.25-3.743 6.439-9.349z",opacity:"1"}),(0,n.jsx)("path",{fill:"#3A3A3B",d:"M111.648 175.878c-.203 1.87-.617 3.424-1.031 4.978l-2.46-1.902c1.093-1.13 2.187-2.262 3.49-3.076z",opacity:"1"}),(0,n.jsx)("path",{fill:"#2E2E30",d:"M83.745 192.508c5.118-.184 9.922-.184 14.725-.184l.654 1.129c-1.486 1.1-2.857 2.873-4.485 3.156-2.975.517-6.153.456-9.138-.03-.878-.143-1.391-2.529-1.756-4.07z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M250.533 174.538c-.062.039.061-.039 0 0z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M243.985 141.43c-.213-.09.008-.482.097-.543.089-.062.404.274.404.274s-.288.358-.501.269z",opacity:"1"}),(0,n.jsx)("path",{fill:"#F3F4F4",d:"M181.394 173.96c-1.008-1.384-1.631-2.812-2.281-5.057-.32-6.434-.614-12.052-.908-17.67l3.51-5.678c2.567 2.738 4.512 6.54 6.94 6.878 2.096.292 4.74-3.356 7.692-5.699 2.92 2.092 2.571 6.343 2.99 10.769-.349 1.428-1.228 2.452-1.205 3.455.05 2.119.57 4.226.904 6.726-1.032 2.148-2.07 3.91-3.619 6.536-.575-2.131-.533-3.517-1.202-4.146-1.627-1.53-3.623-3.788-5.398-3.725-1.817.065-3.689 2.407-5.262 4.02-.88.9-1.202 2.346-2.16 3.59z",opacity:"1"}),(0,n.jsx)("path",{fill:"#868485",d:"M177.874 151.039c.625 5.812.918 11.43 1.196 17.516-.474.465-.934.46-1.738.463-.344.008-.795-.033-1.022-.026-.596-1.088-.966-2.184-.978-3.703 3.728-4.223.5-7.333-.713-10.654.918-3.117 1.836-6.235 3.119-9.422.177 1.832-.009 3.731.136 5.826z",opacity:"1"}),(0,n.jsx)("path",{fill:"#484748",d:"M190.65 142.026c.676.735 1.016 1.501 1.357 2.603-.688 1.482-1.377 2.629-2.565 3.36-.891-.613-1.283-.812-1.675-1.01.849-1.641 1.697-3.281 2.883-4.953z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M187.807 147.28c.352-.103.744.096 1.377.53-.285.08-.81-.075-1.377-.53z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M253.36 207.04c-.361-.5-.381-.94-.383-1.712.196-.598.419-.82.91-1.077a5.005 5.005 0 01-.528 2.788z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M240.602 201.147c.343.004.54.223.738.443-.134.08-.267.161-.64.266-.24-.149-.241-.322-.098-.71z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9CA5AC",d:"M174.307 154.794c1.525 3.162 4.753 6.272.995 10.14-3.566-3.018-1.324-6.601-.995-10.14z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A87550",d:"M93.58 129.004c1.818.668 3.22 1.334 5.018 2.002 1.053 1.65 1.828 3.265 2.344 4.958.758 2.488 2.034 5.089 1.837 7.54-.4 4.998-8.201 9.903-14.175 9.487-5.58-.389-10.268-5.131-10.6-10.722-.226-3.797 4.045-9.425 8.458-11.224.847-.345 1.612-.89 2.478-1.692 1.45-.35 2.836-.35 4.64-.349m-3.87 6.03c-3.6 1.68-7.703 3.085-6.547 8.343.526 2.395 6.68 3.169 10.776 1.819 3.9-1.285 3.959-3.894 2.022-6.472-1.253-1.668-3.611-2.506-6.251-3.69z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A16F49",d:"M128.589 179.68c.605 5.3-3.187 7.33-6.645 9.043-2.864 1.419-5.712-1.915-4.857-5.25 1.087-4.244 7.616-6.612 11.502-3.792z",opacity:"1"}),(0,n.jsx)("path",{fill:"#B88363",d:"M90.098 135.021c2.252 1.197 4.61 2.035 5.863 3.703 1.937 2.578 1.878 5.187-2.022 6.472-4.097 1.35-10.25.576-10.776-1.819-1.156-5.258 2.946-6.663 6.935-8.356z",opacity:"1"})]})),g4=()=>(0,n.jsxs)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#627EEA"}),(0,n.jsx)("path",{d:"M12.3735 3V9.6525L17.9963 12.165L12.3735 3Z",fill:"white","fill-opacity":"0.602"}),(0,n.jsx)("path",{d:"M12.3735 3L6.75 12.165L12.3735 9.6525V3Z",fill:"white"}),(0,n.jsx)("path",{d:"M12.3735 16.476V20.9963L18 13.212L12.3735 16.476Z",fill:"white","fill-opacity":"0.602"}),(0,n.jsx)("path",{d:"M12.3735 20.9963V16.4753L6.75 13.212L12.3735 20.9963Z",fill:"white"}),(0,n.jsx)("path",{d:"M12.3735 15.4298L17.9963 12.1651L12.3735 9.65405V15.4298Z",fill:"white","fill-opacity":"0.2"}),(0,n.jsx)("path",{d:"M6.75 12.1651L12.3735 15.4298V9.65405L6.75 12.1651Z",fill:"white","fill-opacity":"0.602"})]})),m4=e=>(0,n.jsxs)("svg",Object.assign({width:363,height:149,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,n.jsx)("rect",{y:.576,width:363,height:148,rx:8,fill:"#F3F3F3"}),(0,n.jsx)("path",{d:"m170.743 48.236 10.315-5.957a.955.955 0 0 1 .952 0l27.185 15.696c.294.17.475.483.478.822l.036 10.795a.95.95 0 0 1-.477.828l-10.301 5.948a.953.953 0 0 1-1.429-.822l-.034-9.688a.953.953 0 0 0-.477-.822l-26.248-15.15a.952.952 0 0 1 0-1.65ZM164.08 97.133l-10.312-5.954a.947.947 0 0 1-.478-.824V58.963c0-.339.181-.652.475-.824l9.332-5.432a.947.947 0 0 1 .955 0l10.301 5.948a.954.954 0 0 1 .002 1.65l-8.371 4.872a.95.95 0 0 0-.475.825v30.31a.952.952 0 0 1-1.429.824v-.003ZM209.71 78.444v11.908a.947.947 0 0 1-.478.825l-27.185 15.695a.947.947 0 0 1-.949 0l-9.369-5.366a.954.954 0 0 1-.48-.828V88.784c0-.731.79-1.189 1.426-.827l8.406 4.816c.293.17.655.166.949 0l26.247-15.156a.953.953 0 0 1 1.43.824l.003.003Z",fill:"#000"})]})),y4=()=>(0,n.jsxs)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsxs)("g",Object.assign({"clip-path":"url(#clip0_9390_20606)"},{children:[(0,n.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#FF0420"}),(0,n.jsx)("path",{d:"M8.50098 15.1872C7.78578 15.1872 7.20018 15.0192 6.74418 14.6832C6.29298 14.3424 6.06738 13.8528 6.06738 13.224C6.06738 13.0896 6.08178 12.9312 6.11058 12.7392C6.18738 12.3072 6.29778 11.7888 6.44178 11.1792C6.84978 9.52799 7.90578 8.70239 9.60498 8.70239C10.0658 8.70239 10.4834 8.77919 10.8482 8.93759C11.213 9.08639 11.501 9.31679 11.7122 9.62399C11.9234 9.92639 12.029 10.2864 12.029 10.704C12.029 10.8288 12.0146 10.9872 11.9858 11.1792C11.8946 11.712 11.789 12.2352 11.6594 12.7392C11.4482 13.56 11.0882 14.1792 10.5698 14.5872C10.0562 14.9904 9.36498 15.1872 8.50098 15.1872ZM8.63058 13.8912C8.96658 13.8912 9.24978 13.7904 9.48498 13.5936C9.72498 13.3968 9.89778 13.0944 9.99858 12.6816C10.1378 12.1152 10.2434 11.6256 10.3154 11.2032C10.3394 11.0784 10.3538 10.9488 10.3538 10.8144C10.3538 10.2672 10.0706 9.99359 9.49938 9.99359C9.16338 9.99359 8.87538 10.0944 8.63538 10.2912C8.40018 10.488 8.23218 10.7904 8.13138 11.2032C8.02098 11.6064 7.91538 12.096 7.80498 12.6816C7.78098 12.8016 7.76658 12.9264 7.76658 13.0608C7.76178 13.6176 8.05458 13.8912 8.63058 13.8912Z",fill:"white"}),(0,n.jsx)("path",{d:"M12.4463 15.1009C12.3791 15.1009 12.3311 15.0817 12.2927 15.0385C12.2639 14.9905 12.2543 14.9377 12.2639 14.8753L13.5071 9.0193C13.5167 8.9521 13.5503 8.8993 13.6079 8.8561C13.6607 8.8129 13.7183 8.7937 13.7807 8.7937H16.1759C16.8431 8.7937 17.3759 8.9329 17.7791 9.2065C18.1871 9.4849 18.3935 9.8833 18.3935 10.4065C18.3935 10.5553 18.3743 10.7137 18.3407 10.8769C18.1919 11.5681 17.8895 12.0769 17.4287 12.4081C16.9775 12.7393 16.3583 12.9025 15.5711 12.9025H14.3567L13.9439 14.8753C13.9295 14.9425 13.9007 14.9953 13.8431 15.0385C13.7903 15.0817 13.7327 15.1009 13.6703 15.1009H12.4463ZM15.6335 11.6593C15.8879 11.6593 16.1039 11.5921 16.2911 11.4529C16.4831 11.3137 16.6079 11.1169 16.6703 10.8577C16.6895 10.7569 16.6991 10.6657 16.6991 10.5889C16.6991 10.4161 16.6463 10.2817 16.5455 10.1905C16.4447 10.0945 16.2671 10.0465 16.0223 10.0465H14.9423L14.6015 11.6593H15.6335Z",fill:"white"})]})),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",Object.assign({id:"clip0_9390_20606"},{children:(0,n.jsx)("rect",{width:"24",height:"24",fill:"white"})}))})]})),b4=()=>(0,n.jsxs)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsxs)("g",Object.assign({"clip-path":"url(#clip0_5284_6348)"},{children:[(0,n.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#7B3FE4"}),(0,n.jsx)("path",{d:"M20 12.2801V15.9003C19.9987 16.1261 19.9391 16.3476 19.8269 16.5433C19.7147 16.739 19.5538 16.9021 19.36 17.0168L16.235 18.8231C16.0415 18.9389 15.8203 19 15.595 19C15.3697 19 15.1485 18.9389 14.955 18.8231L11.83 17.0168C11.6362 16.9021 11.4753 16.739 11.3631 16.5433C11.251 16.3476 11.1913 16.1261 11.19 15.9003V14.8842L12.79 13.9522V15.7184L15.59 17.3492L18.39 15.7184V12.4645L15.59 10.8337L9.03001 14.6472C8.83465 14.7576 8.61421 14.8157 8.38999 14.8157C8.16577 14.8157 7.94536 14.7576 7.75 14.6472L4.62499 12.8333C4.43416 12.7169 4.27639 12.5532 4.16692 12.3579C4.05745 12.1625 3.99997 11.9422 4 11.7181V8.09786C4.00129 7.87211 4.06096 7.65056 4.17313 7.45487C4.28533 7.25918 4.44619 7.09604 4.63999 6.98144L7.765 5.17508C7.95895 5.06045 8.17993 5 8.40499 5C8.63008 5 8.85106 5.06045 9.04501 5.17508L12.17 6.98144C12.3638 7.09604 12.5247 7.25918 12.6369 7.45487C12.7491 7.65056 12.8087 7.87211 12.81 8.09786V9.11393L11.2 10.0397V8.28353L8.40001 6.65279L5.59999 8.28353V11.5337L8.40001 13.1644L14.96 9.35102C15.1553 9.24056 15.3758 9.18254 15.6 9.18254C15.8242 9.18254 16.0446 9.24056 16.24 9.35102L19.365 11.1649C19.5577 11.28 19.7175 11.4433 19.8287 11.6386C19.94 11.8341 19.999 12.055 20 12.2801Z",fill:"white"})]})),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",Object.assign({id:"clip0_5284_6348"},{children:(0,n.jsx)("rect",{width:"24",height:"24",fill:"white"})}))})]})),v4=()=>(0,n.jsxs)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsxs)("g",Object.assign({"clip-path":"url(#clip0_10279_32011)"},{children:[(0,n.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#7B3FE4"}),(0,n.jsx)("path",{d:"M18.4908 6.848L13.2428 3.81333C12.8641 3.6 12.4428 3.48267 12.0054 3.48267C11.5681 3.48267 11.1468 3.6 10.7734 3.81333L5.52542 6.848C5.15209 7.06667 4.83742 7.376 4.61875 7.75467C4.40009 8.128 4.28809 8.55467 4.28809 8.992V15.072C4.29342 15.504 4.40542 15.9253 4.62409 16.2987C4.84275 16.672 5.15209 16.9813 5.52542 17.1947L10.7734 20.2293C11.1468 20.448 11.5734 20.56 12.0108 20.56C12.4481 20.56 12.8694 20.448 13.2481 20.2293L18.4961 17.1947C18.8694 16.976 19.1841 16.6667 19.4028 16.288C19.6214 15.9147 19.7334 15.488 19.7334 15.0507V8.97067C19.7281 8.53867 19.6161 8.11733 19.3974 7.744C19.1734 7.37067 18.8641 7.06133 18.4908 6.848ZM5.52009 8.98667C5.52009 8.768 5.57875 8.55467 5.68542 8.368C5.79209 8.18133 5.95209 8.02133 6.13875 7.91467L11.3868 4.88533C11.5734 4.77867 11.7868 4.72 12.0054 4.72C12.2241 4.72 12.4374 4.77867 12.6241 4.88533L17.8774 7.91467C18.0641 8.02133 18.2188 8.176 18.3254 8.35733C18.4321 8.544 18.4908 8.752 18.4961 8.96533V9.584C18.4961 10.064 18.3041 10.528 17.9628 10.864C17.6214 11.2053 17.1628 11.3973 16.6828 11.3973H7.33875C6.68275 11.3973 6.04809 11.6053 5.52009 12V8.98667ZM18.4908 15.0507C18.4908 15.2693 18.4321 15.4827 18.3254 15.6693C18.2188 15.856 18.0588 16.016 17.8721 16.1227L12.6188 19.152C12.4321 19.2587 12.2188 19.3173 12.0001 19.3173C11.7814 19.3173 11.5681 19.2587 11.3814 19.152L6.13342 16.1227C5.94675 16.016 5.79209 15.8613 5.68542 15.68C5.57875 15.4933 5.52009 15.2853 5.51475 15.072V14.4533C5.51475 13.9733 5.70675 13.5093 6.04809 13.1733C6.38942 12.832 6.84809 12.64 7.32809 12.64H16.6668C17.3228 12.64 17.9574 12.432 18.4854 12.0373V15.0507H18.4908Z",fill:"white"}),(0,n.jsx)("path",{d:"M9.13577 8.67727H10.3358V10.4693H11.5731V8.67727C11.5731 8.35194 11.4451 8.03727 11.2104 7.80261C10.9811 7.57327 10.6664 7.43994 10.3358 7.43994H9.13577C8.81044 7.43994 8.49577 7.56794 8.2611 7.80261C8.03177 8.03194 7.89844 8.34661 7.89844 8.67727V10.4693H9.13577V8.67727Z",fill:"white"}),(0,n.jsx)("path",{d:"M10.3309 15.3601H9.13089V13.5681H7.89355V15.3601C7.89355 15.6854 8.02155 16.0001 8.25622 16.2348C8.48555 16.4641 8.80022 16.5974 9.13089 16.5974H10.3309C10.6562 16.5974 10.9709 16.4694 11.2056 16.2348C11.4349 16.0054 11.5682 15.6908 11.5682 15.3601V13.5681H10.3309V15.3601Z",fill:"white"}),(0,n.jsx)("path",{d:"M14 8.67727H15.2V10.4693H16.4374V8.67727C16.4374 8.35194 16.3094 8.03727 16.0747 7.80261C15.8454 7.57327 15.5307 7.43994 15.2 7.43994H14C13.6747 7.43994 13.36 7.56794 13.1254 7.80261C12.896 8.03194 12.7627 8.34661 12.7627 8.67727V10.4693H14V8.67727Z",fill:"white"}),(0,n.jsx)("path",{d:"M15.2054 15.3601H14.0054V13.5681H12.7681V15.3601C12.7681 15.6854 12.8961 16.0001 13.1307 16.2348C13.3601 16.4641 13.6747 16.5974 14.0054 16.5974H15.2054C15.5307 16.5974 15.8454 16.4694 16.0801 16.2348C16.3094 16.0054 16.4427 15.6908 16.4427 15.3601V13.5681H15.2054V15.3601Z",fill:"white"})]})),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",Object.assign({id:"clip0_10279_32011"},{children:(0,n.jsx)("rect",{width:"24",height:"24",fill:"white"})}))})]})),w4=e=>(0,n.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:25,viewBox:"0 0 24 24"},e,{children:[(0,n.jsxs)("defs",{children:[(0,n.jsx)("clipPath",Object.assign({id:"a"},{children:(0,n.jsx)("path",{d:"M5.965 7H16v11H5.965Zm0 0"})})),(0,n.jsx)("clipPath",Object.assign({id:"b"},{children:(0,n.jsx)("path",{d:"M13 6h4.91v4H13Zm0 0"})}))]}),(0,n.jsx)("path",{style:{stroke:"none",fillRule:"nonzero",fill:"#61dfff",fillOpacity:1},d:"M0 0h23.93v23.957H0Zm0 0"}),(0,n.jsx)("g",Object.assign({clipPath:"url(#a)"},{children:(0,n.jsx)("path",{style:{stroke:"none",fillRule:"nonzero",fill:"#121212",fillOpacity:1},d:"M15.883 18H5.965V7.95h2.27v8.1h7.648Zm0 0"})})),(0,n.jsx)("g",Object.assign({clipPath:"url(#b)"},{children:(0,n.jsx)("path",{style:{stroke:"none",fillRule:"nonzero",fill:"#121212",fillOpacity:1},d:"M15.883 9.895c1.12 0 2.027-.872 2.027-1.946C17.91 6.875 17.004 6 15.883 6c-1.117 0-2.024.875-2.024 1.95 0 1.073.907 1.945 2.024 1.945Zm0 0"})}))]})),A4=e=>(0,n.jsxs)("svg",Object.assign({"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e,{children:[(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",Object.assign({id:"a"},{children:(0,n.jsx)("path",{style:{fill:"none",strokeWidth:0},d:"M.4.5h23.2v23.1H.4z"})}))}),(0,n.jsxs)("g",Object.assign({style:{clipPath:"url(#a)"}},{children:[(0,n.jsx)("path",{d:"M12 7.9c2.3 0 4.1 1.8 4.1 4.1s-1.9 4.1-4.1 4.1-4.1-1.8-4.1-4.1S9.8 7.9 12 7.9Zm0-7.4c-1.6 0-3.1.3-4.5.9-1.4.6-2.6 1.4-3.7 2.5S1.9 6.2 1.3 7.6C.7 9 .4 10.5.4 12.1s.3 3.1.9 4.5c.6 1.4 1.4 2.6 2.5 3.7s2.3 1.9 3.7 2.5c1.4.6 2.9.9 4.5.9s3.1-.3 4.5-.9c1.4-.6 2.6-1.4 3.7-2.5s1.9-2.3 2.5-3.7c.6-1.4.9-2.9.9-4.5s-.3-3.1-.9-4.5c-.6-1.4-1.4-2.6-2.5-3.7S17.9 2 16.5 1.4C15.1.8 13.6.5 12 .5Z",style:{fill:"#b7f7b0",strokeWidth:0}}),(0,n.jsx)("path",{d:"M12 7.9c2.3 0 4.1 1.8 4.1 4.1s-1.9 4.1-4.1 4.1-4.1-1.8-4.1-4.1S9.8 7.9 12 7.9Zm0-5C7 2.9 2.9 7 2.9 12S7 21.1 12 21.1s9.1-4.1 9.1-9.1S17 2.9 12 2.9Z",style:{fill:"#07dc10",strokeWidth:0}}),(0,n.jsx)("path",{d:"M12 7.9c2.3 0 4.1 1.8 4.1 4.1s-1.9 4.1-4.1 4.1-4.1-1.8-4.1-4.1S9.8 7.9 12 7.9Zm0-2.5c-3.6 0-6.6 3-6.6 6.6s3 6.6 6.6 6.6 6.6-3 6.6-6.6-3-6.6-6.6-6.6Z",style:{fill:"#0c9b00",strokeWidth:0}}),(0,n.jsx)("path",{d:"M12 7.9c2.3 0 4.1 1.8 4.1 4.1s-1.9 4.1-4.1 4.1-4.1-1.8-4.1-4.1S9.8 7.9 12 7.9Z",style:{strokeWidth:0,fill:"#eaeaea"}})]}))]})),C4=e=>(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e,{children:(0,n.jsx)("path",{style:{stroke:"none",fillRule:"nonzero",fill:"#0052ff",fillOpacity:1},d:"M11.875 23.793c6.582 0 11.918-5.328 11.918-11.898C23.793 5.325 18.457 0 11.875 0 5.633 0 .508 4.793 0 10.895h15.75v2H0c.508 6.101 5.633 10.898 11.875 10.898Zm0 0"})})),E4=(e,t)=>(0,n.jsx)(u4,Object.assign({tooltipContent:`Delivered by ${t}`},{children:e}));var x4={ETH_TEST_SEPOLIA:{label:"ETHEREUM SEPOLIA",icon:E4((0,n.jsx)(g4,{}),"Ethereum Sepolia")},ETH_MAINNET:{label:"ETHEREUM MAINNET",icon:E4((0,n.jsx)(g4,{}),"Ethereum Mainnet")},POLYGON_MAINNET:{label:"POLYGON MAINNET",icon:E4((0,n.jsx)(b4,{}),"Polygon Mainnet")},POLYGON_TEST_AMOY:{label:"POLYGON AMOY",icon:E4((0,n.jsx)(b4,{}),"Polygon Amoy")},BSC_TESTNET:{label:"BSC TESTNET",icon:E4((0,n.jsx)(h4,{}),"Bsc Testnet")},BSC_MAINNET:{label:"BSC MAINNET",icon:E4((0,n.jsx)(h4,{}),"Bsc Mainnet")},OPTIMISM_TESTNET:{label:"OPTIMISM TESTNET",icon:E4((0,n.jsx)(y4,{}),"Optimism Testnet")},OPTIMISM_MAINNET:{label:"OPTIMISM MAINNET",icon:E4((0,n.jsx)(y4,{}),"Optimism Mainnet")},POLYGON_ZK_EVM_TESTNET:{label:"POLYGON ZK EVM TESTNET",icon:E4((0,n.jsx)(v4,{}),"Polygon ZK EVM Testnet")},POLYGON_ZK_EVM_MAINNET:{label:"POLYGON ZK EVM MAINNET",icon:E4((0,n.jsx)(v4,{}),"Polygon ZK EVM Mainnet")},ARBITRUMONE_MAINNET:{label:"ARBITRUMONE MAINNET",icon:E4((0,n.jsx)(f4,{}),"Arbitrum Mainnet")},ARBITRUM_TESTNET:{label:"ARBITRUM TESTNET",icon:E4((0,n.jsx)(f4,{}),"Arbitrum Testnet")},FUSE_MAINNET:{label:"FUSE MAINNNET",icon:E4((0,n.jsx)(m4,{}),"Fuse Mainnet")},FUSE_TESTNET:{label:"FUSE TESTNET",icon:E4((0,n.jsx)(m4,{}),"Fuse Testnet")},THE_GRAPH:{label:"THE GRAPH",icon:E4((0,n.jsx)((()=>(0,n.jsxs)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsxs)("g",Object.assign({"clip-path":"url(#clip0_6814_10094)"},{children:[(0,n.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#6747ED"}),(0,n.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6606 12.7677C9.93715 12.7677 8.55353 11.3841 8.55353 9.6606C8.55353 7.93715 9.93715 6.55353 11.6606 6.55353C13.3841 6.55353 14.7677 7.93715 14.7677 9.6606C14.7677 11.3841 13.3841 12.7677 11.6606 12.7677ZM11.6606 5C14.2336 5 16.3212 7.08756 16.3212 9.6606C16.3212 12.2336 14.2336 14.3212 11.6606 14.3212C9.08756 14.3212 7 12.2336 7 9.6606C7 7.08756 9.08756 5 11.6606 5ZM16.1027 14.5639C16.4183 14.8795 16.4183 15.365 16.1027 15.6563L12.9957 18.7633C12.6801 19.0789 12.1946 19.0789 11.9033 18.7633C11.5878 18.4478 11.5878 17.9623 11.9033 17.671L15.0104 14.5639C15.3017 14.2484 15.8114 14.2484 16.1027 14.5639ZM17.899 5.77677C17.899 6.2137 17.5592 6.55353 17.1222 6.55353C16.6853 6.55353 16.3455 6.2137 16.3455 5.77677C16.3455 5.33984 16.6853 5 17.1222 5C17.5349 5 17.899 5.33984 17.899 5.77677Z",fill:"white"})]})),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",Object.assign({id:"clip0_6814_10094"},{children:(0,n.jsx)("rect",{width:"24",height:"24",fill:"white"})}))})]}))),{}),"The Graph")},BERACHAIN_TESTNET:{label:"BERACHAIN TESTNET",icon:E4((0,n.jsx)(p4,{}),"Berachain Testnet")},CYBER_CONNECT_TESTNET:{label:"CYBER CONNECT TESTNET",icon:E4((0,n.jsx)(A4,{}),"CyberConnect Testnet")},LINEA_TESTNET:{label:"LINEA TESTNET",icon:E4((0,n.jsx)(w4,{}),"Linea Testnet")},LINEA_MAINNET:{label:"LINEA MAINNET",icon:E4((0,n.jsx)(w4,{}),"Linea Mainnet")},CYBER_CONNECT_MAINNET:{label:"CYBER CONNECT MAINNET",icon:E4((0,n.jsx)(A4,{}),"CyberConnect Mainnet")},BASE_TESTNET:{label:"BASE TESTNET",icon:E4((0,n.jsx)(C4,{}),"Base Testnet")},BASE_MAINNET:{label:"BASE MAINNET",icon:E4((0,n.jsx)(C4,{}),"Base Mainnet")}};const S4=o.Ay.button.withConfig({displayName:"ActionButton",componentId:"sc-18nzz3z-0"})(["all:unset;background:",";color:",";padding:10px 20px;font-weight:500;border-radius:3px;cursor:",";opacity:",";transition:300ms;margin-left:auto;&:hover{opacity:",";}@media (max-width:600px){padding:8px 20px;}"],(e=>e.bgColor||"rgb(226, 8, 128)"),(e=>e.color||"#fff"),(e=>e.disabled?"default":"pointer"),(e=>e.disabled?"0.5":"1"),(e=>e.disabled?"0.5":"0.9")),I4="decrypted",k4="decrypt",_4=({decryptFn:e,isSecretRevealed:t})=>{const[r,o]=i.useState(!1),a=t?I4:k4;return(0,n.jsx)(S4,Object.assign({disabled:t,onClick:r=>pJ(void 0,void 0,void 0,(function*(){if(r.preventDefault(),r.stopPropagation(),e&&!t)try{o(!0),yield e()}finally{o(!1)}})),bgColor:"#674C9F"},{children:r?(0,n.jsx)($6,{}):a}))};var T4;!function(e){e.PROD="prod",e.STAGING="staging",e.DEV="dev",e.LOCAL="local"}(T4||(T4={}));const M4={ENV:T4,DEFAULT_TITLE:"Chat with us!",DEFAULT_GREETING_MSG:"Hi there!",DEFAULT_PROFILE_PICTURE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAvklEQVR4AcXBsW2FMBiF0Y8r3GQb6jeBxRauYRpo4yGQkMd4A7kg7Z/GUfSKe8703fKDkTATZsJsrr0RlZSJ9r4RLayMvLmJjnQS1d6IhJkwE2bT13U/DBzp5BN73xgRZsJMmM1HOolqb/yWiWpvjJSUiRZWopIykTATZsJs5g+1N6KSMiO1N/5DmAkzYTa9Lh6MhJkwE2ZzSZlo7xvRwson3txERzqJhJkwE2bT6+JhoKTMJ2pvjAgzYSbMfgDlXixqjH6gRgAAAABJRU5ErkJggg=="},P4="rtkd-a4JWpnViQBZdNCiFBGTJdp5e0R2",j4={11155111:{network:"sepolia"},80002:{network:"polygon-amoy"},1:{network:"mainnet"},137:{network:"polygon-mainnet"},97:{},11155420:{},80085:{}},D4={prod:1,dev:11155111,staging:11155111,local:11155111},O4="100cce93cd9d4626b9cedf707d4dbabc",B4=e=>`${{prod:"https://mainnet.infura.io/v3/",dev:"https://sepolia.infura.io/v3/",staging:"https://sepolia.infura.io/v3/",local:"https://sepolia.infura.io/v3/"}[e]}${O4}`,N4={ETHEREUM:"eip155:11155111",POLYGON:"eip155:80002",BSC:"eip155:97",OPTIMISM:"eip155:11155420",POLYGON_ZK_EVM:"eip155:2442",ARBITRUM:"eip155:421614",FUSE:"eip155:123",BERACHAIN:"eip155:80085",CYBER_CONNECT:"eip155:111557560",BASE:"eip155:84532",LINEA:"eip155:59141"},R4={prod:{ETHEREUM:"eip155:1",POLYGON:"eip155:137",BSC:"eip155:56",OPTIMISM:"eip155:10",POLYGON_ZK_EVM:"eip155:1101",ARBITRUM:"eip155:42161",FUSE:"eip155:122",CYBER_CONNECT:"eip155:7560",BASE:"eip155:8453",LINEA:"eip155:59144"},dev:N4,staging:N4,local:N4},L4={prod:[1,137,56,10,42161,122,59144,7569,8453],dev:[11155111,80002,97,11155420,421614,123,80085,59141,2442,111557560,84532],staging:[11155111,80002,97,11155420,421614,123,80085,59141,2442,111557560,84532],local:[11155111,80002,97,11155420,421614,123,80085,59141,2442,111557560,84532]},F4="64a44a0fb537407bfe97d24330e4109c",U4="AIzaSyBhUBnCia6zpxY7KcqjghRS1IphinAvKXs",z4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAvklEQVR4AcXBsW2FMBiF0Y8r3GQb6jeBxRauYRpo4yGQkMd4A7kg7Z/GUfSKe8703fKDkTATZsJsrr0RlZSJ9r4RLayMvLmJjnQS1d6IhJkwE2bT13U/DBzp5BN73xgRZsJMmM1HOolqb/yWiWpvjJSUiRZWopIykTATZsJs5g+1N6KSMiO1N/5DmAkzYTa9Lh6MhJkwE2ZzSZlo7xvRwson3txERzqJhJkwE2bT6+JhoKTMJ2pvjAgzYSbMfgDlXixqjH6gRgAAAABJRU5ErkJggg==",H4={REQUESTS:{title:"Chat request"},SPAM:{title:"Spam"}},V4=10,K4=10,G4=5,q4=e=>`https://cdn.jsdelivr.net/gh/napthedev/file-icons/file/${e}.svg`,Q4="https://spacev2-demo-17wvllxz.livekit.cloud",W4="wss://spacev2-demo-17wvllxz.livekit.cloud",J4="https://ms-lk-server.onrender.com",Y4="0x0000000000000000000000000000000000000001",Z4="eip155:0x99A08ac6254dcf7ccc37CeC662aeba8eFA666666",$4={bgColorPrimary:"#fff",bgColorSecondary:"#D53A94",textColorPrimary:"#1e1e1e",textColorSecondary:"#fff",btnColorPrimary:"#D53A94",btnColorSecondary:"#494D5F",border:"1px solid #E4E8EF",borderRadius:"24px",moduleColor:"#fff"},X4=(0,o.AH)(["display:",";position:",";background:",";color:",";cursor:",";flex:",";flex-direction:",";flex-wrap:",";gap:",";grid-template-columns:",";grid-template-rows:",";align-self:",";align-items:",";align-content:",";justify-content:",";padding:",";margin:",";margin-top:",";margin-left:",";margin-right:",";margin-bottom:",";min-width:",";max-width:",";overflow-y:",";overflow-x:",";font-size:",";font-weight:",";text-align:",";filter:",";box-shadow:",";top:",";bottom:",";left:",";right:",";width:",";height:",";border:",";border-radius:",";overflow:",";z-index:",";"],(e=>e.display),(e=>e.position),(e=>e.background),(e=>e.color),(e=>e.cursor),(e=>e.flex),(e=>e.flexDirection),(e=>e.flexWrap),(e=>e.gap),(e=>e.gridTemplateColumns),(e=>e.gridTemplateRows),(e=>e.alignSelf),(e=>e.alignItems),(e=>e.alignContent),(e=>e.justifyContent),(e=>e.padding),(e=>e.margin),(e=>e.marginTop),(e=>e.marginLeft),(e=>e.marginRight),(e=>e.marginBottom),(e=>e.minWidth),(e=>e.maxWidth),(e=>e.overflowY),(e=>e.overflowX),(e=>e.fontSize),(e=>e.fontWeight),(e=>e.textAlign),(e=>e.filter),(e=>e.boxShadow),(e=>e.top),(e=>e.bottom),(e=>e.left),(e=>e.right),(e=>e.width),(e=>e.height),(e=>e.border),(e=>e.borderRadius),(e=>e.overflow),(e=>e.zIndex)),e5=o.Ay.div.withConfig({displayName:"styles__Item",componentId:"sc-1il8o4s-0"})(["",""],X4),t5=o.Ay.a.withConfig({displayName:"styles__Anchor",componentId:"sc-1il8o4s-1"})(["",""],X4),r5=o.Ay.div.withConfig({displayName:"styles__Container",componentId:"sc-1il8o4s-2"})(["",""],X4),n5=o.Ay.img.withConfig({displayName:"styles__Image",componentId:"sc-1il8o4s-3"})(["",""],X4),i5=o.Ay.h1.withConfig({displayName:"styles__Heading",componentId:"sc-1il8o4s-4"})(["",""],X4),o5=o.Ay.button.withConfig({displayName:"styles__Button",componentId:"sc-1il8o4s-5"})(["",""],X4),a5=o.Ay.span.withConfig({displayName:"styles__Text",componentId:"sc-1il8o4s-6"})(["",""],X4),s5="2560px",c5={mobileS:`(max-width: ${"320px"})`,mobileM:`(max-width: ${"375px"})`,mobileL:`(max-width: ${"425px"})`,tablet:`(max-width: ${"768px"})`,laptop:`(max-width: ${"1024px"})`,laptopL:`(max-width: ${"1440px"})`,desktop:`(max-width: ${s5})`,desktopL:`(max-width: ${s5})`},u5={account:"",setAccount:()=>{},signer:void 0,setSigner:()=>{},pgpPrivateKey:"",setPgpPrivateKey:()=>{},env:T4.DEV,setEnv:()=>{},chainId:1,setChainId:()=>{},trendingListData:null,setTrendingListData:()=>{},selectedFeedTab:"Popular",setSelectedFeedTab:()=>{},spaceInfo:{},setSpaceInfo:()=>{},getSpaceInfo:()=>{},spaceWidgetId:"",setSpaceWidgetId:()=>{},mySpaces:{apiData:[],currentPage:1,lastPage:2},setMySpaces:()=>{},popularSpaces:{apiData:[],currentPage:1,lastPage:2},setPopularSpaces:()=>{},spaceRequests:{apiData:[],currentPage:1,lastPage:2},setSpaceRequests:()=>{},pushSpaceSocket:null,setPushSpaceSocket:()=>{},isPushSDKSocketConnected:!1,setIsPushSDKSocketConnected:()=>{},spaceObjectData:{},setSpaceObjectData:()=>{},initSpaceObject:()=>pJ(void 0,void 0,void 0,(function*(){})),spacesObjectRef:{current:null},isJoined:!1,isSpeaker:!1,isListener:!1,speakerData:{},setSpeakerData:()=>{},acceptSpaceRequest:()=>pJ(void 0,void 0,void 0,(function*(){})),connectSpaceRequest:()=>pJ(void 0,void 0,void 0,(function*(){})),broadcastRaisedHand:()=>pJ(void 0,void 0,void 0,(function*(){})),customSearch:void 0,raisedHandInfo:{}},l5=(0,i.createContext)(u5),d5={account:null,setAccount:()=>{},signer:void 0,setSigner:()=>{},pgpPrivateKey:"",setPgpPrivateKey:()=>{},env:M4.ENV.PROD,setEnv:()=>{},pushChatSocket:null,setPushChatSocket:()=>{},isPushChatSocketConnected:!1,setIsPushChatSocketConnected:()=>{},connectedProfile:void 0,setConnectedProfile:()=>{},preInitializeUser:()=>{},user:void 0,setUser:()=>{},pushChatStream:null,setPushChatStream:()=>{},isPushChatStreamConnected:!1,setIsPushChatStreamConnected:()=>{},toast:null,uiConfig:{suppressToast:!1},infuraAPIKey:null,chatStream:{},chatAcceptStream:{},chatRejectStream:{},chatRequestStream:{},groupCreateStream:{},groupUpdateStream:{},participantJoinStream:{},participantLeaveStream:{},participantRemoveStream:{},participantRoleChangeStream:{}},f5=(0,i.createContext)(d5),h5={account:null,setAccount:()=>{},signer:void 0,setSigner:()=>{},env:M4.ENV.PROD,setEnv:()=>{},user:void 0,setUser:()=>{}},p5=(0,i.createContext)(h5),g5=(0,i.createContext)({}),m5=(0,i.createContext)({}),y5=(0,i.createContext)({}),b5=({children:e})=>{const[t,r]=(0,i.useState)({}),[o,a]=(0,i.useState)(void 0),[s,c]=(0,i.useState)({}),[u,l]=(0,i.useState)({}),[d,f]=(0,i.useState)(new Map),[h,p]=(0,i.useState)(null),[g,m]=(0,i.useState)(null),[y,b]=(0,i.useState)(!1),[v,w]=(0,i.useState)(!1);return(0,n.jsx)(y5.Provider,Object.assign({value:{chatsFeed:s,requestsFeed:u,setRequestFeed:(e,t)=>{l((r=>Object.assign({[e]:t},r)))},setChatsFeed:c,setRequestsFeed:l,setChatFeed:(e,t)=>{c((r=>Object.assign({[e]:t},r)))},searchedChats:g,connectedProfile:o,setConnectedProfile:a,setSearchedChats:m,chats:d,setChats:f,setChat:(e,t)=>{const r=new Map(d);r.set(e,t),f(r)},selectedChatId:h,setSelectedChatId:p,web3NameList:t,setWeb3NameList:r,setWeb3Name:(e,t)=>{r((r=>Object.assign(Object.assign({},r),{[e]:t})))},finishedFetchingChats:y,finishedFetchingRequests:v,setFinishedFetchingChats:b,setFinishedFetchingRequests:w}},{children:e}))},v5=(0,i.createContext)({}),w5=(0,i.createContext)({}),A5=({children:e})=>{const[t,r]=(0,i.useState)({}),[o,a]=(0,i.useState)({}),[s,c]=(0,i.useState)({}),[u,l]=(0,i.useState)(new Map),[d,f]=(0,i.useState)(null),[h,p]=(0,i.useState)(!1),[g,m]=(0,i.useState)(!1);return(0,n.jsx)(w5.Provider,Object.assign({value:{inboxNotifsFeed:t,setInboxNotifFeed:(e,t)=>{r((r=>Object.assign({[e]:t},r)))},setInboxNotifsFeed:r,spamNotifsFeed:s,allInboxNotifFeed:o,setAllInboxNotifsFeed:a,setSpamNotifFeed:(e,t)=>{c((r=>Object.assign({[e]:t},r)))},setSpamNotifsFeed:c,searchedNotifications:d,setSearchedNotifications:f,subscriptionStatus:u,setChannelSubscriptionStatus:(e,t)=>{const r=new Map(u);r.set(e,t),l(r)},setSubscriptionStatus:l,finishedFetchingInbox:h,finishedFetchingSpam:g,setFinishedFetchingInbox:p,setFinishedFetchingSpam:m}},{children:e}))},C5={CHATS:"CHATS",APP_NOTIFICATIONS:"APP_NOTIFICATIONS"},E5={CHAT:"chat",NOTIFICATION:"notification"},x5={REQUESTS:"REQUESTS",SPAM:"SPAM"},S5={CHATS:"CHATS"},I5={CHAT:"CHAT",SEARCH:"SEARCH",NOTIFICATION:"NOTIFICATION",NEW_CHAT:"NEW_CHAT"},k5={OVERLAY:"OVERLAY",BLUR:"BLUR",TRANSPARENT:"TRANSPARENT"},_5={RELATIVE:"RELATIVE",GLOBAL:"GLOBAL"},T5=(0,i.createContext)({}),M5=({children:e})=>{const[t,r]=(0,i.useState)(C5.CHATS),[o,a]=(0,i.useState)(null),[s,c]=(0,i.useState)(!1);return(0,n.jsx)(T5.Provider,Object.assign({value:{newChat:s,setNewChat:c,activeTab:t,setActiveTab:e=>{c(!1),a(null),r(e)},setActiveSubTab:e=>{c(!1),a(e)},activeSubTab:o}},{children:e}))},P5=()=>{const e=(0,i.useContext)(f5);if(!e)throw new Error("useChatData must be used within a ChatDataProvider");return e},j5=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),[o,a]=(0,i.useState)(!1),[s,c]=(0,i.useState)(!1),{user:u}=P5(),l=(0,i.useCallback)((({type:r,page:n,limit:i,overrideAccount:o})=>pJ(void 0,void 0,void 0,(function*(){c(!0);try{console.debug(u);return yield null==u?void 0:u.chat.list(r,{overrideAccount:o,page:n,limit:i})}catch(e){return c(!1),t(e.message),void console.log(e)}finally{c(!1)}}))),[u]),d=(0,i.useCallback)((({chatId:r})=>pJ(void 0,void 0,void 0,(function*(){a(!0);try{return yield null==u?void 0:u.chat.latest(r)}catch(e){return a(!1),t(e.message),void console.log(e)}finally{a(!1)}}))),[u]),f=(0,i.useCallback)((({chatId:r,reference:i=null,limit:o=10})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{const e=yield null==u?void 0:u.chat.history(r,{limit:o,reference:i});return console.debug(e,"chatHistory"),e}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[u]);return{historyMessages:f,error:e,historyLoading:r,latestLoading:o,fetchLatestMessage:d,fetchChatList:l,chatListLoading:s}},D5=({env:e})=>{const[{wallet:t,connecting:r},n,o,a,s,c]=w(),[{chains:u,connectedChain:l,settingChain:d},f]=A(),h=(0,i.useMemo)((()=>t?new E.j(t.provider,"any"):new x.F(B4(e))),[t]);return{wallet:t,connecting:r,connect:n,disconnect:o,updateBalances:a,setWalletModules:s,setPrimaryWallet:c,provider:h,account:t&&t.accounts.length>0?S.bv(t.accounts[0].address):Y4,chainId:l?Number(l.id):D4[e],isActive:()=>!!(t&&t.accounts.length>0),setChain:f,switchChain:e=>pJ(void 0,void 0,void 0,(function*(){f({chainId:C.Fh(e)})})),settingChain:d,chains:u}},O5=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{user:o}=P5(),a=(0,i.useCallback)((({chatId:r})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{return yield null==o?void 0:o.chat.info(r)}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[o]);return{fetchChat:a,error:e,loading:r}},B5=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),[o,a]=(0,i.useState)(!1),[s,c]=(0,i.useState)(!1),{user:u}=P5(),l=(0,i.useCallback)((({role:r,memberList:i,chatId:o})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{const e=yield null==u?void 0:u.chat.group.add(o,{role:r,accounts:i});return n(!1),e}catch(e){return console.log("err",e),n(!1),t(e.message),e.message}}))),[u]),d=(0,i.useCallback)((({role:r,memberList:n,chatId:i})=>pJ(void 0,void 0,void 0,(function*(){a(!0);try{const e=yield null==u?void 0:u.chat.group.remove(i,{role:r,accounts:n});return a(!1),e}catch(e){return console.log("err",e),a(!1),t(e.message),e.message}}))),[u]),f=(0,i.useCallback)((({role:r,memberList:n,chatId:i})=>pJ(void 0,void 0,void 0,(function*(){c(!0);try{const e=yield null==u?void 0:u.chat.group.modify(i,{role:r,accounts:n});return c(!1),e}catch(e){return console.log("err",e),c(!1),t(e.message),e.message}}))),[u]);return{error:e,addLoading:r,removeLoading:o,modifyLoading:s,addMember:l,removeMember:d,modifyParticipant:f}},N5=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(),[o,a]=(0,i.useState)(!1),[s,c]=(0,i.useState)(!1),{user:u}=P5(),l=(0,i.useCallback)((({chatId:r,page:n,limit:i=10,pending:o=!1})=>pJ(void 0,void 0,void 0,(function*(){a(!0);try{const e=yield null==u?void 0:u.chat.group.participants.list(r,{page:n,limit:i,filter:{pending:o}});return a(!1),e}catch(e){return a(!1),console.log("err",e),t(e.message),e.message}}))),[u]),d=(0,i.useCallback)((({chatId:r,accountId:n})=>pJ(void 0,void 0,void 0,(function*(){a(!0);try{const e=yield null==u?void 0:u.chat.group.participants.status(r,{overrideAccount:n});return console.debug(e),a(!1),e}catch(e){return a(!1),console.log("err",e),t(e.message),e.message}}))),[u]),f=(0,i.useCallback)((({chatId:r})=>pJ(void 0,void 0,void 0,(function*(){a(!0);try{const e=yield null==u?void 0:u.chat.group.participants.count(r);return a(!1),e}catch(e){return a(!1),console.log("err",e),t(e.message),e.message}}))),[u]),h=(0,i.useCallback)((({chatId:t})=>pJ(void 0,void 0,void 0,(function*(){c(!0);try{const e=yield null==u?void 0:u.chat.group.join(t);return c(!1),e}catch(e){return console.log("err",e),c(!1),n(e.message),e.message}}))),[u]);return{error:e,loading:o,fetchMembers:l,fetchMemberStatus:d,fetchMembersCount:f,joinGroup:h,joinLoading:s,joinError:r}};var R5=Vq,L5=NH,F5=gz,U5=Zz,z5=_H,H5=ZH,V5=OW,K5=DX,G5=Iq,q5=Dz.Symbol,Q5=q5&&q5.prototype;if(L5&&z5(q5)&&(!("description"in Q5)||void 0!==q5().description)){var W5={},J5=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:V5(arguments[0]),t=H5(Q5,this)?new q5(e):void 0===e?q5():q5(e);return""===e&&(W5[t]=!0),t};G5(J5,q5),J5.prototype=Q5,Q5.constructor=J5;var Y5="Symbol(description detection)"===String(q5("description detection")),Z5=F5(Q5.valueOf),$5=F5(Q5.toString),X5=/^Symbol\((.*)\)[^)]+$/,e8=F5("".replace),t8=F5("".slice);K5(Q5,"description",{configurable:!0,get:function(){var e=Z5(this);if(U5(W5,e))return"";var t=$5(e),r=Y5?t8(t,7,-1):e8(t,X5,"$1");return""===r?void 0:r}}),R5({global:!0,constructor:!0,forced:!0},{Symbol:J5})}const r8=()=>{const{user:e}=P5(),[t,r]=(0,i.useState)(!1),n=(0,i.useCallback)((({recipient:t})=>pJ(void 0,void 0,void 0,(function*(){try{return yield null==e?void 0:e.profile.info({overrideAccount:t})}catch(ys){return void console.log(ys)}}))),[e]),o=(0,i.useCallback)((()=>pJ(void 0,void 0,void 0,(function*(){try{return yield null==e?void 0:e.encryption.info()}catch(ys){return void console.log(ys)}}))),[e]),a=(0,i.useCallback)((({userProfileDetails:t})=>pJ(void 0,void 0,void 0,(function*(){try{r(!0);const n=yield null==e?void 0:e.profile.update({name:t.name,desc:t.description,picture:t.picture});return r(!1),n}catch(ys){return r(!1),console.log(ys),ys.message}}))),[e]);return{fetchEncryptionInfo:o,updateUserProfile:a,fetchProfileInfo:n,updateProfileLoading:t}};var n8=vz,i8=Vq,o8=Array.isArray||function(e){return"Array"===n8(e)},a8=gz([].reverse),s8=[1,2];i8({target:"Array",proto:!0,forced:String(s8)===String(s8.reverse())},{reverse:function(){return o8(this)&&(this.length=this.length),a8(this)}});const c8=e=>{try{const t=L4[e].includes(1)?1:5,r=L4[e].includes(137)?137:80002;return Vm().fromEthersProvider({uns:{locations:{Layer1:{network:"mainnet",provider:new I.p(t,O4)},Layer2:{network:j4[r].network,provider:new I.p(r,O4)}}}})}catch($R){return void console.debug("Errored:UIWeb::helpers::getUdResolverClient::UD doesnot provide support for the network")}},u8=e=>e?(e=>{try{const t=e.split(":");return(5===t.length||6===t.length)&&"nft"===t[0].toLowerCase()&&!isNaN(Number(t[4]))&&Number(t[4])>0&&!isNaN(Number(t[2]))&&Number(t[2])>0&&S.PW(t[3])&&"eip155"===t[1]}catch(t){return!1}})(e)||e.includes("eip155:")?e:"eip155:"+e:e,l8=e=>{var t;return e&&(e=null!==(t=e.split(":").pop())&&void 0!==t?t:""),e},d8=(e,t)=>pJ(void 0,void 0,void 0,(function*(){const r=t||_.CONSTANTS.ENV.PROD,n=l8(e).toLowerCase(),i=S.bv(n),o=zm();let a=null;try{if(a=yield o.getDomainName({address:i,queryChainIdList:L4[r]}),!a){const e=c8(r);if(!e)throw new Error("UIWeb::helpers::address::resolveWeb3Name::Error in UD resolver");const t=yield e.reverse(i);t&&(a=t)}}catch(s){console.error("UIWeb::helpers::address::resolveWeb3Name::Error in resolving via ENS",s)}return a})),f8=e=>null==e?void 0:e.startsWith("eip155:"),h8=e=>pJ(void 0,void 0,void 0,(function*(){var t;return"getAddress"in e?yield e.getAddress():null!==(t=e.account.address)&&void 0!==t?t:void 0})),p8="data:image/jpeg;base64,/9j/4QffRXhpZgAATU0AKgAAAAgADAEAAAMAAAABAVQAAAEBAAMAAAABAVQAAAECAAMAAAADAAAAngEGAAMAAAABAAIAAAESAAMAAAABAAEAAAEVAAMAAAABAAMAAAEaAAUAAAABAAAApAEbAAUAAAABAAAArAEoAAMAAAABAAIAAAExAAIAAAAhAAAAtAEyAAIAAAAUAAAA1YdpAAQAAAABAAAA7AAAASQACAAIAAgACvyAAAAnEAAK/IAAACcQQWRvYmUgUGhvdG9zaG9wIDI1LjUgKE1hY2ludG9zaCkAMjAyNDowNDoyMiAwNjoyNjoyOQAAAAAABJAAAAcAAAAEMDIzMaABAAMAAAAB//8AAKACAAQAAAABAAAAgKADAAQAAAABAAAAgAAAAAAAAAAGAQMAAwAAAAEABgAAARoABQAAAAEAAAFyARsABQAAAAEAAAF6ASgAAwAAAAEAAgAAAgEABAAAAAEAAAGCAgIABAAAAAEAAAZVAAAAAAAAAEgAAAABAAAASAAAAAH/2P/tAAxBZG9iZV9DTQAC/+4ADkFkb2JlAGSAAAAAAf/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQRDAwMDAwREQwMDAwMDBEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAgACAAwEiAAIRAQMRAf/dAAQACP/EAT8AAAEFAQEBAQEBAAAAAAAAAAMAAQIEBQYHCAkKCwEAAQUBAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAABBAEDAgQCBQcGCAUDDDMBAAIRAwQhEjEFQVFhEyJxgTIGFJGhsUIjJBVSwWIzNHKC0UMHJZJT8OHxY3M1FqKygyZEk1RkRcKjdDYX0lXiZfKzhMPTdePzRieUpIW0lcTU5PSltcXV5fVWZnaGlqa2xtbm9jdHV2d3h5ent8fX5/cRAAICAQIEBAMEBQYHBwYFNQEAAhEDITESBEFRYXEiEwUygZEUobFCI8FS0fAzJGLhcoKSQ1MVY3M08SUGFqKygwcmNcLSRJNUoxdkRVU2dGXi8rOEw9N14/NGlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vYnN0dXZ3eHl6e3x//aAAwDAQACEQMRAD8A9VSSSSUpJM5zWgucYA5JVG/Nc/21+1vj3P8A5FJTatyaqtHGXfujUqq/PsP0AGjxOpVZJJTN19zvpPd98fkUJJ5JKSSSlSexIU233N+i8/fP5VBJJTZZn2D6YDh4jQq1Vk1W6NMO/dOhWYkkp2ElQozXM9tnub49x/5JXmua4BzTIPBCSl0kkklP/9D1VM5wa0ucYA1JTqhm373ek36LfpeZ/wDMUlI8jIdc7wYPot/78UJJJJSkkkklKSSThj3fRaT8AUlLJJyx7fpNI+IKZJSkkkklKRcfIdS7xYfpN/i1CSSU67XBzQ5pkHUFOqGFfsd6Tvou+j5H/wAyV9JT/9H1DJt9KouH0jo34lZis575sazs0SfiVWSUpJJJJSlOml9zobwOXHgKLGOe8Mby4wFqVVtqYGN4H4lJTCrFqr1jc794oySSSlINuLVZrG137wRkklOVdS+l213B4cOCoLVtrbawsdwfwKy3scx5Y7lpgpKWSSSSUpaeNb6tQcfpDR3xCzFZwHxYWdnCR8Qkp//S9Avduue7zP4aKCR1JPiUklKSSSSU2sBkvc/90QPmryqdP+g/4j8itpKUkkkkpSSSSSlKjnsh7X/vCD8leVTqH0GfE/kSU0kkkklKU6HbbmO8x+OigkOQfApKf//T708keBSU727bnt8z+OqgkpSSSSSmzgPixzD+cJHxCvrIa4tcHN0IMhadNzbmBzfmPApKSJJJJKUkkkkpSoZ75sawfmiT8Srd1zaWFzvkPErMc4ucXO1LjJSUskkkkpSQ5A8Skp0N3XMb5j8NUlP/1PRs9kWB/Zwg/EKstPJq9WotH0hq34hZiSlJJJJKUpV2PqduYYPcdj8VEamBqfAKYpuPFbvuSU3as2p+j/Y7z4+9HBBEgyPJZfoX/wCjd9yXoXjitw+SSnUJA1JgeaBbm1M0Z73eXH3ql6F55rcfiEvQv/0bvuSUtZY+1255k9h2CipGm4c1u+5R4MHQ+CSlJJJJKUrOAybHP7NED4lVlp41XpVBp+kdXfEpKf/V9VVDNo2O9Vo9rvpeR/8AMlfTOaHNLXCQdCElOQrGPiGwB7/azsO5TWUCi1psBdTPP8HLQa5rmhzTIPBCSlmVsrEMaGjyUkkklKSSSSUpJJJJSlB9Vdgh7QVNJJTnZGIavez3M7+IQFruLWtJcQGjmVn1Y4vtJZIpB5P/AFISUywqN7vVd9Fv0fM/+Yq+ma0NaGtEAaAJ0lP/1vVUkkklLOa1zS1wkHkFVDTdjEuo99Z5YVcSSUhpyqrdJ2u/dPKMhW41NurhDv3hoUL0cur+asD2/uuSU2klV+1Xt/nKD8W6p/t9Xdrh8klNlJVvt9XZrj8k32q9383Qfi7RJTaQbsqqrSdzv3Ryh+jl2/ztgY391qLVjU1atEu/eOpSUhFN2SQ6/wBlY4YFaa1rQGtEAcAJ0klKSSSSU//Z/+0PyFBob3Rvc2hvcCAzLjAAOEJJTQQEAAAAAAAPHAFaAAMbJUccAgAAAvQMADhCSU0EJQAAAAAAEHlEJN99tpz6r/WlELMfELU4QklNBDoAAAAAAQUAAAAQAAAAAQAAAAAAC3ByaW50T3V0cHV0AAAABQAAAABQc3RTYm9vbAEAAAAASW50ZWVudW0AAAAASW50ZQAAAABDbHJtAAAAD3ByaW50U2l4dGVlbkJpdGJvb2wAAAAAC3ByaW50ZXJOYW1lVEVYVAAAABEARgBvAGwAbABvAHcATQBlACAAUAByAGkAbgB0AGUAcgAAAAAAD3ByaW50UHJvb2ZTZXR1cE9iamMAAAAMAFAAcgBvAG8AZgAgAFMAZQB0AHUAcAAAAAAACnByb29mU2V0dXAAAAABAAAAAEJsdG5lbnVtAAAADGJ1aWx0aW5Qcm9vZgAAAAlwcm9vZkNNWUsAOEJJTQQ7AAAAAAItAAAAEAAAAAEAAAAAABJwcmludE91dHB1dE9wdGlvbnMAAAAXAAAAAENwdG5ib29sAAAAAABDbGJyYm9vbAAAAAAAUmdzTWJvb2wAAAAAAENybkNib29sAAAAAABDbnRDYm9vbAAAAAAATGJsc2Jvb2wAAAAAAE5ndHZib29sAAAAAABFbWxEYm9vbAAAAAAASW50cmJvb2wAAAAAAEJja2dPYmpjAAAAAQAAAAAAAFJHQkMAAAADAAAAAFJkICBkb3ViQG/gAAAAAAAAAAAAR3JuIGRvdWJAb+AAAAAAAAAAAABCbCAgZG91YkBv4AAAAAAAAAAAAEJyZFRVbnRGI1JsdAAAAAAAAAAAAAAAAEJsZCBVbnRGI1JsdAAAAAAAAAAAAAAAAFJzbHRVbnRGI1B4bEBSAAAAAAAAAAAACnZlY3RvckRhdGFib29sAQAAAABQZ1BzZW51bQAAAABQZ1BzAAAAAFBnUEMAAAAATGVmdFVudEYjUmx0AAAAAAAAAAAAAAAAVG9wIFVudEYjUmx0AAAAAAAAAAAAAAAAU2NsIFVudEYjUHJjQFkAAAAAAAAAAAAQY3JvcFdoZW5QcmludGluZ2Jvb2wAAAAADmNyb3BSZWN0Qm90dG9tbG9uZwAAAAAAAAAMY3JvcFJlY3RMZWZ0bG9uZwAAAAAAAAANY3JvcFJlY3RSaWdodGxvbmcAAAAAAAAAC2Nyb3BSZWN0VG9wbG9uZwAAAAAAOEJJTQPtAAAAAAAQAEgAAAABAAIASAAAAAEAAjhCSU0EJgAAAAAADgAAAAAAAAAAAAA/gAAAOEJJTQPyAAAAAAAKAAD///////8AADhCSU0EDQAAAAAABAAAAB44QklNBBkAAAAAAAQAAAAeOEJJTQPzAAAAAAAJAAAAAAAAAAABADhCSU0nEAAAAAAACgABAAAAAAAAAAE4QklNA/UAAAAAAEgAL2ZmAAEAbGZmAAYAAAAAAAEAL2ZmAAEAoZmaAAYAAAAAAAEAMgAAAAEAWgAAAAYAAAAAAAEANQAAAAEALQAAAAYAAAAAAAE4QklNA/gAAAAAAHAAAP////////////////////////////8D6AAAAAD/////////////////////////////A+gAAAAA/////////////////////////////wPoAAAAAP////////////////////////////8D6AAAOEJJTQQIAAAAAAAQAAAAAQAAAkAAAAJAAAAAADhCSU0ERAAAAAAAEAAAAAIAAAJAAAACQAAAAAA4QklNBB4AAAAAAAQAAAAAOEJJTQQaAAAAAANLAAAABgAAAAAAAAAAAAAAgAAAAIAAAAALAEQAZQBmAGEAdQBsAHQAXwBwAGYAcAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAgAAAAIAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAQAAAAAAAG51bGwAAAACAAAABmJvdW5kc09iamMAAAABAAAAAAAAUmN0MQAAAAQAAAAAVG9wIGxvbmcAAAAAAAAAAExlZnRsb25nAAAAAAAAAABCdG9tbG9uZwAAAIAAAAAAUmdodGxvbmcAAACAAAAABnNsaWNlc1ZsTHMAAAABT2JqYwAAAAEAAAAAAAVzbGljZQAAABIAAAAHc2xpY2VJRGxvbmcAAAAAAAAAB2dyb3VwSURsb25nAAAAAAAAAAZvcmlnaW5lbnVtAAAADEVTbGljZU9yaWdpbgAAAA1hdXRvR2VuZXJhdGVkAAAAAFR5cGVlbnVtAAAACkVTbGljZVR5cGUAAAAASW1nIAAAAAZib3VuZHNPYmpjAAAAAQAAAAAAAFJjdDEAAAAEAAAAAFRvcCBsb25nAAAAAAAAAABMZWZ0bG9uZwAAAAAAAAAAQnRvbWxvbmcAAACAAAAAAFJnaHRsb25nAAAAgAAAAAN1cmxURVhUAAAAAQAAAAAAAG51bGxURVhUAAAAAQAAAAAAAE1zZ2VURVhUAAAAAQAAAAAABmFsdFRhZ1RFWFQAAAABAAAAAAAOY2VsbFRleHRJc0hUTUxib29sAQAAAAhjZWxsVGV4dFRFWFQAAAABAAAAAAAJaG9yekFsaWduZW51bQAAAA9FU2xpY2VIb3J6QWxpZ24AAAAHZGVmYXVsdAAAAAl2ZXJ0QWxpZ25lbnVtAAAAD0VTbGljZVZlcnRBbGlnbgAAAAdkZWZhdWx0AAAAC2JnQ29sb3JUeXBlZW51bQAAABFFU2xpY2VCR0NvbG9yVHlwZQAAAABOb25lAAAACXRvcE91dHNldGxvbmcAAAAAAAAACmxlZnRPdXRzZXRsb25nAAAAAAAAAAxib3R0b21PdXRzZXRsb25nAAAAAAAAAAtyaWdodE91dHNldGxvbmcAAAAAADhCSU0EKAAAAAAADAAAAAI/8AAAAAAAADhCSU0EEQAAAAAAAQEAOEJJTQQUAAAAAAAEAAAAAThCSU0EDAAAAAAGcQAAAAEAAACAAAAAgAAAAYAAAMAAAAAGVQAYAAH/2P/tAAxBZG9iZV9DTQAC/+4ADkFkb2JlAGSAAAAAAf/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQRDAwMDAwREQwMDAwMDBEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAgACAAwEiAAIRAQMRAf/dAAQACP/EAT8AAAEFAQEBAQEBAAAAAAAAAAMAAQIEBQYHCAkKCwEAAQUBAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAABBAEDAgQCBQcGCAUDDDMBAAIRAwQhEjEFQVFhEyJxgTIGFJGhsUIjJBVSwWIzNHKC0UMHJZJT8OHxY3M1FqKygyZEk1RkRcKjdDYX0lXiZfKzhMPTdePzRieUpIW0lcTU5PSltcXV5fVWZnaGlqa2xtbm9jdHV2d3h5ent8fX5/cRAAICAQIEBAMEBQYHBwYFNQEAAhEDITESBEFRYXEiEwUygZEUobFCI8FS0fAzJGLhcoKSQ1MVY3M08SUGFqKygwcmNcLSRJNUoxdkRVU2dGXi8rOEw9N14/NGlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vYnN0dXZ3eHl6e3x//aAAwDAQACEQMRAD8A9VSSSSUpJM5zWgucYA5JVG/Nc/21+1vj3P8A5FJTatyaqtHGXfujUqq/PsP0AGjxOpVZJJTN19zvpPd98fkUJJ5JKSSSlSexIU233N+i8/fP5VBJJTZZn2D6YDh4jQq1Vk1W6NMO/dOhWYkkp2ElQozXM9tnub49x/5JXmua4BzTIPBCSl0kkklP/9D1VM5wa0ucYA1JTqhm373ek36LfpeZ/wDMUlI8jIdc7wYPot/78UJJJJSkkkklKSSThj3fRaT8AUlLJJyx7fpNI+IKZJSkkkklKRcfIdS7xYfpN/i1CSSU67XBzQ5pkHUFOqGFfsd6Tvou+j5H/wAyV9JT/9H1DJt9KouH0jo34lZis575sazs0SfiVWSUpJJJJSlOml9zobwOXHgKLGOe8Mby4wFqVVtqYGN4H4lJTCrFqr1jc794oySSSlINuLVZrG137wRkklOVdS+l213B4cOCoLVtrbawsdwfwKy3scx5Y7lpgpKWSSSSUpaeNb6tQcfpDR3xCzFZwHxYWdnCR8Qkp//S9Avduue7zP4aKCR1JPiUklKSSSSU2sBkvc/90QPmryqdP+g/4j8itpKUkkkkpSSSSSlKjnsh7X/vCD8leVTqH0GfE/kSU0kkkklKU6HbbmO8x+OigkOQfApKf//T708keBSU727bnt8z+OqgkpSSSSSmzgPixzD+cJHxCvrIa4tcHN0IMhadNzbmBzfmPApKSJJJJKUkkkkpSoZ75sawfmiT8Srd1zaWFzvkPErMc4ucXO1LjJSUskkkkpSQ5A8Skp0N3XMb5j8NUlP/1PRs9kWB/Zwg/EKstPJq9WotH0hq34hZiSlJJJJKUpV2PqduYYPcdj8VEamBqfAKYpuPFbvuSU3as2p+j/Y7z4+9HBBEgyPJZfoX/wCjd9yXoXjitw+SSnUJA1JgeaBbm1M0Z73eXH3ql6F55rcfiEvQv/0bvuSUtZY+1255k9h2CipGm4c1u+5R4MHQ+CSlJJJJKUrOAybHP7NED4lVlp41XpVBp+kdXfEpKf/V9VVDNo2O9Vo9rvpeR/8AMlfTOaHNLXCQdCElOQrGPiGwB7/azsO5TWUCi1psBdTPP8HLQa5rmhzTIPBCSlmVsrEMaGjyUkkklKSSSSUpJJJJSlB9Vdgh7QVNJJTnZGIavez3M7+IQFruLWtJcQGjmVn1Y4vtJZIpB5P/AFISUywqN7vVd9Fv0fM/+Yq+ma0NaGtEAaAJ0lP/1vVUkkklLOa1zS1wkHkFVDTdjEuo99Z5YVcSSUhpyqrdJ2u/dPKMhW41NurhDv3hoUL0cur+asD2/uuSU2klV+1Xt/nKD8W6p/t9Xdrh8klNlJVvt9XZrj8k32q9383Qfi7RJTaQbsqqrSdzv3Ryh+jl2/ztgY391qLVjU1atEu/eOpSUhFN2SQ6/wBlY4YFaa1rQGtEAcAJ0klKSSSSU//ZADhCSU0EIQAAAAAAVwAAAAEBAAAADwBBAGQAbwBiAGUAIABQAGgAbwB0AG8AcwBoAG8AcAAAABQAQQBkAG8AYgBlACAAUABoAG8AdABvAHMAaABvAHAAIAAyADAAMgA0AAAAAQA4QklNBAYAAAAAAAcACAAAAAEBAP/hEYtodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDkuMS1jMDAyIDc5LmYzNTRlZmM3MCwgMjAyMy8xMS8wOS0xMjowNTo1MyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE1IChNYWNpbnRvc2gpIiB4bXA6Q3JlYXRlRGF0ZT0iMjAxOC0xMS0xOVQxMDoyMTozNy0wODowMCIgeG1wOk1vZGlmeURhdGU9IjIwMjQtMDQtMjJUMDY6MjY6MjkrMDQ6MDAiIHhtcDpNZXRhZGF0YURhdGU9IjIwMjQtMDQtMjJUMDY6MjY6MjkrMDQ6MDAiIGRjOmZvcm1hdD0iaW1hZ2UvanBlZyIgcGhvdG9zaG9wOkxlZ2FjeUlQVENEaWdlc3Q9Ijc5NDQyNERGN0RCNjlDRkFBRkY1QTUxMEIzMUYxMEI1IiBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjU0OWFjZGRiLWM4MTAtNDNhMC04OTAxLTllOWYzYmVhODU4YSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOmY5ZDg3YjM1LTJkMjAtMTE3Yy1iN2VkLWI2ZjMyM2M4N2EzNSIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmEyNWFhZjUwLWM3NWMtNDRjMC1iYjAwLTE3MDJhYjNhMjEyMiI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YTI1YWFmNTAtYzc1Yy00NGMwLWJiMDAtMTcwMmFiM2EyMTIyIiBzdEV2dDp3aGVuPSIyMDE4LTExLTE5VDEwOjIxOjM3LTA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YjUwYzJiOWQtMjBjZS00MDdkLTkxNzEtYzU5NzlkNTYyYjUwIiBzdEV2dDp3aGVuPSIyMDE4LTExLTIwVDE2OjQ0OjIzLTA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY29udmVydGVkIiBzdEV2dDpwYXJhbWV0ZXJzPSJmcm9tIGltYWdlL3BuZyB0byBpbWFnZS9qcGVnIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJkZXJpdmVkIiBzdEV2dDpwYXJhbWV0ZXJzPSJjb252ZXJ0ZWQgZnJvbSBpbWFnZS9wbmcgdG8gaW1hZ2UvanBlZyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NzhmOTg1YmMtOTk4NS00M2M1LWE5MmYtNTQ4ZGIyOGVmYjMzIiBzdEV2dDp3aGVuPSIyMDE4LTExLTIwVDE2OjQ0OjIzLTA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NTQ5YWNkZGItYzgxMC00M2EwLTg5MDEtOWU5ZjNiZWE4NThhIiBzdEV2dDp3aGVuPSIyMDI0LTA0LTIyVDA2OjI2OjI5KzA0OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjUuNSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YjUwYzJiOWQtMjBjZS00MDdkLTkxNzEtYzU5NzlkNTYyYjUwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOmEyNWFhZjUwLWM3NWMtNDRjMC1iYjAwLTE3MDJhYjNhMjEyMiIgc3RSZWY6b3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmEyNWFhZjUwLWM3NWMtNDRjMC1iYjAwLTE3MDJhYjNhMjEyMiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8P3hwYWNrZXQgZW5kPSJ3Ij8+/+4ADkFkb2JlAGRAAAAAAf/bAIQAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQICAgICAgICAgICAwMDAwMDAwMDAwEBAQEBAQEBAQEBAgIBAgIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMD/8AAEQgAgACAAwERAAIRAQMRAf/dAAQAEP/EAaIAAAAGAgMBAAAAAAAAAAAAAAcIBgUECQMKAgEACwEAAAYDAQEBAAAAAAAAAAAABgUEAwcCCAEJAAoLEAACAQMEAQMDAgMDAwIGCXUBAgMEEQUSBiEHEyIACDEUQTIjFQlRQhZhJDMXUnGBGGKRJUOhsfAmNHIKGcHRNSfhUzaC8ZKiRFRzRUY3R2MoVVZXGrLC0uLyZIN0k4Rlo7PD0+MpOGbzdSo5OkhJSlhZWmdoaWp2d3h5eoWGh4iJipSVlpeYmZqkpaanqKmqtLW2t7i5usTFxsfIycrU1dbX2Nna5OXm5+jp6vT19vf4+foRAAIBAwIEBAMFBAQEBgYFbQECAxEEIRIFMQYAIhNBUQcyYRRxCEKBI5EVUqFiFjMJsSTB0UNy8BfhgjQlklMYY0TxorImNRlUNkVkJwpzg5NGdMLS4vJVZXVWN4SFo7PD0+PzKRqUpLTE1OT0laW1xdXl9ShHV2Y4doaWprbG1ub2Z3eHl6e3x9fn90hYaHiImKi4yNjo+DlJWWl5iZmpucnZ6fkqOkpaanqKmqq6ytrq+v/aAAwDAQACEQMRAD8A3+Pfuvde9+691737r3XvfuvdITdHY+1Npl4MhX/c5FRcYrHKKuvueB5URhFSgn8zOnH0v7917oCs33tuOsLx4LHUOFgNtE9XfJ11vobp+zRRE/W2mW39T7917oNa/em8MoX++3PmpVc6jFDVtQwA8/phoBTIByf6+/de6TrzTym81RUzn8mepnnJv9bmaRz+ffuvddJLPGdUVRUwt/qoKmeBuPp6opEPv3XulHQb13hjCpodz5mJUNxFNWNWwE/4w14qUI/2A9+690JWF733HRlUzuNoc1ACdc1H/uMrrHgWQ+ailI+trRX/AKj37r3Q67X7H2puwrBj6/7bIlbnFZFRSV/9D4kdjFVi/wCYXfj629+690u/fuvde9+691737r3Xvfuvdf/Q3+Pfuvde9+691Er6+jxdHUZDIVMNHRUkTTVNTUOI4oY1+rOx/qTYD6kkAXJ9+690VXfHcuUzTTY7a7T4fEeqOTI28WXyABsWgJ5xlMwHFv32H1KXt7917oEwACx5LMxZ2Ylnd2N2eR2JZ3Y/Ukkn37r3Xfv3Xuve/de697917r3v3Xuve/de697917rogEqeQyMHRlJV43XlXjdSGR1P0III9+690Nux+5MphWhxu6GnzGIGmOPIgGXL49SeGnP1ydMgPN/31HN3tb37r3RqaGvo8nR0+Qx9TDWUVXEs1NU07iSGaNvoyOvHBFiPqCCDyPfuvdS/fuvde9+691//0d/j37r3USvrqPGUdTkMhURUlFRwvUVNTM2mOGGMandjyTx9ALkngAn37r3RKewN/wBdviv0r5aTb1HKWxmMY6WnZbquSyKg2erkXmOM3WnU2F3LN7917pAe/de697917r3v3Xuve/de697917r3v3Xuve/de697917r3v3Xuve/de6X/X+/6/Y9fpbzVm3qyYNk8Yp1NAzWVsljUJASrQcyRghZ1FjZwre/de6OtQV1Hk6OmyGPqIquirIUqKaphbVHNDINSOp4I4+oNiDwQD7917qX7917r//S3+PfuvdFL7l3u2ayb7Vx03+4jDzj+JvGxC5DLxc/bsR+ulxbfUfRqi97+Me/de6BP37r3Xvfuvde9+691737r3XFmVBd2VR9LsQoufoLmw59+69050mHzOQXVQYXMVqfh6bGVssZ/ppkWDQwP+B9+6916sw+Zx666/DZeiQfV6rGVsMY/wAWkaAIo/1z7917psVlYXVlYf1Ugj/bjj37r3XL37r3Xvfuvde9+691737r3Q2dNb3bC5RdrZGb/cRmJz/DHkY6cdlpST9ul76KbKNwB9FqLW/zh9+690bT37r3X//T3vuxt0HaW1a/IwsBkKjTjsUD/wA7CsDJHLbm60kYeY/1Edvz7917ojABA5ZmYkszsdTu7Es8jseWd3JJP1JPv3Xuu/fuvde9+691737r3Sq2js7M70yDUWKjWOnp9ByOUqFb7PHo/Kq2mzVFXKvMcKkMR6mKrz7917o2O1urtp7YSOVKFMrk1A15XKJHU1GuwuaaFlNNRJqFwI1DD8sfr7917oRQAAABYDgAcAAfQAe/de68QCCCLg8EHkEH6gj37r3Qc7p6u2puhJZXokxWUYHx5XFpHTVGuxsamFVFNWpqPIkUsfww+vv3Xuinbu2dmdl5BaHKxrJBUa2x2Upw32eQROWVdV2p6uJf85CxLAepSy8+/de6S3v3Xuve/de697917ro3t6WZGBDK6HS6OpDJIjDlXjcAg/gi/v3Xujz9c7oO7dqUGRmYHI0+rHZUDj/chSBUklt+Fq4ysw/FpLfj37r3X//U3SO982azcWNwMbnwYWh+9nT8GvydwhP9TDRQi1/p5T7917oD/fuvde9+691737r3ThicVWZzKY/DY9Q1bk6lKaAsCUiBBeapm0gkQ0sCNI/+C2+p9+690fLbW3cdtXDUmFxkemCmS8kzAeesqnsaitqWH+cqKh+SfwLKLKAB7r3T97917r3v3Xuve/de697917ph3Lt3Hbpw1XhcnHqgqUvFMoHno6pLmnraVz/m6infkH8i6m6kg+690Q3LYusweUyGGyCha3GVL005UERygAPDUw3APhqoHWRP8Gt9R7917pv9+691737r3XvfuvdDj0RmzR7iyWBkY+DM0P3kC/gV2MID2ueDNRTG9vr4h7917r//1dv7etecpvDc9drLrLmauGIn6iChYUEK/wCsEpf959+690mffuvde9+691737r3Q8dCYhKnN5vNyKrfwuip6ClJ+sdRkXeWodf8AahTUqrf8Bz/X37r3RqPfuvde9+691737r3Xvfuvde9+691737r3RV++8QlNm8JnI1Vf4pRT0FUR9ZKjHOktO7f4/b1TLf8hB/T37r3QD+/de697917r3v3XulNsqvOL3htiu1FFizNJDKR9TBXMaCZf9YpVf7x7917r/1ttuVzLPUSty09TUzsb3u088kpN/zcv7917rh7917r3v3Xuve/de6M58fSv8K3OONYzFIT9L6DjotF/zbUG9+690YT37r3Xvfuvde9+691737r3Xvfuvde9+690Xz5BFf4VtgG3k/jFWV/roGOmD/wCNtTL7917osXv3Xuve/de697917rJC5jnp5QbGGppp1P8ARoJ45lP4/Ke/de6//9fbcmQxz1MRFjDU1MDD+jQTyRMP9unv3Xusfv3Xuve/de697917ocOiMylHuLKYSVwq5qhjqaYceusxbSGSO/8Aqno6hmH+EZ9+690bD37r3Xvfuvde9+691737r3Xvfuvde9+690U/vfNJW7jxeEiYMuFoJKmpA/sVmUaMxpf/AFSUdOrH+gkHv3XugP8Afuvde9+691737r3WSFDJPTxAXM1TTQKP6tPPHCo/P5f37r3X/9Db+3rQHF7x3PQlSix5mrmhB+pgrmFfC3+IKVPH+t7917pM+/de697917r3v3XupVBXVeLr6LJ0EvgrsfUxVdJKRqVZojcLIv8AailUlHH5RiPfuvdHs2duzHbywsGVoWCS2EOQoWYNPjq5VBmppbfVQTeN7WkjIYfWw917pVe/de697917r3v3Xuve/de6Su8d247ZuFnyteweSxhx9CrAT5CuZSYaaEH6KSLyP9I4wWP0sfde6InXV1XlK6tyeQl81dkamWsq5ALKZpmuVjX+zDEoCIP7KKB+PfuvdRffuvde9+691737r3Sm2VQHKbw2xQ6S6y5mkmlA+ogoWNfMx/oAlKffuvdf/9HdJ73wjUe4sbno1tBmqH7OdvwK/GElAbfQzUUwtf6+I+/de6A737r3Xvfuvde9+691737r3T5t3cmY2pklyuFqRBPZY6mCVTJR5CBW1fb1sAZPInJ0uCJIybqRyD7r3RpNsdz7WzSRQZeT+7mTbSrRV7g4+WQ8XpckAsOknm0oiYf0P19+690LNPVUtZGJqSpgqomAIlp5o54yD9CHiZlIP+v7917rqoq6WjjM1XU09LEou0tRNHBGAPqS8rKoA/1/fuvdBPufufa2FSWDESjceTXUixUD2x8Ug4vVZIq0OhTzaLysf6D6+/de6K3uLcmY3VknymaqfPPZo6aCMGOjx9OzBvtqKEs3jS4GpyTJIRdieAPde6Y/fuvde9+691737r3XvfuvdDh0RhDWbjyWekS8GFofs4H/AOm/JkFwP6mKihN/8JR7917r/9Le+7G2ud27Ur8dAoORp9ORxRPH+5CjDPHESPotXEzwn+gkv+PfuvdEYF7cqyMCVZHGl0dSVeN1PKujghh+CLe/de679+691737r3XcaPPKIIIpqidrWgpoZaic3+hEMKSSW/xt7917pQx7O3hMgki2puJ0b6MMVUqD/rB0Rv8AePfuvdZP7k70/wCeQ3F/57Jv+Ke/de69Hsne0X+Z2puaD/lhQ1UH+x/aZOffuvdek2Tvab/P7U3NPze9RQ1U5v8A1BmZ7H37r3Xv7k70/wCeQ3F/57Jv+Ke/de6xy7P3fAhkm2puKNB9XOKq2A/1xHG7f7x7917pOuGikMMySQzrfVBPG8Ey2+paGVUkA/2Hv3Xuve/de697917rokgcKzsSFVEGp3diFSNF+rO7EAD8k+/de6PP1ztc7S2pQY6dQMjUasjlSOf9yFYFeSK/5WkiCQj8ER3/AD7917r/09/j37r3RS+5dkNhco26cdD/ALiMxOP4mkanTj8vKbfcMBwlNlG5J+i1F728g9+690Cf05PAHJJ4AA5JJPAAHv3Xuhm696lqdzxQZrPtUY7AyASUdLEfDkMvGeVmLka6HHv9VNvLKvK6VIY+690aLD7fwm36daXC4uixsIXSRTQqkknN7zTEGadifqzsxP8AX37r3Tx7917r3v3Xuve/de697917r3v3Xuve/de6Y83tvBbjpzTZvF0mQjIsrTRDzxH8NBUppqIHB+hRlPv3Xuirdh9VVm0Uky+Iknye3V5qPKA9fhwTYNUsoH3dDyP3rB4/7YI9fv3Xugk9+690NnTWyGzWUTdWRh/3EYac/wAMSRTpyGXj4+4UH9dNi25B+jVFrX8Z9+690bT37r3X/9Tf49+691Er6GjydHU4/IU8VXRVkL09VTTLqimhkGl0YfXkfQixB5Fj7917ooOf2LSdf7qxdTuCnrctsOXIK6VcCrLKo9TwY3LJb1mCUKWtb7uFSF9epPfuvdG9x9dQ5Kipa7G1EFXQVMKyUtRTOrwSREWUxleAFtYjgqRYgEW9+691M9+691737r3Xvfuvde9+691737r3Xvfuvde9+691737r3UHJVePocfWVeVmpqfGwU8jVstWUFMtOV0yCYSXVkcNp02Oom1iTb37r3RP9s7Cpd97myUuBirsfsKnyDn76pXxVDQXDtisaGu3kZyQrNc00BXX+5ZffuvdHDoKGjxlHTY/H08VJRUcKU9NTQrpjhhjGlEUck8fUm5J5JJ9+691L9+691//V3+Pfuvde9+691Er6CiylHUY/I00NZRVcTQ1NNUIJIZo2+qsrf0IBB+oIBFiPfuvdAJU7S3l1hVz5XYTy5/bMztPX7Vq3eWogvYM9Ja8s7KPpJH+/YWdJQL+/de6EDaXaO1t2aKaOq/hWYuUlw2UZKerWZdIeOndiIqvSxtZT5Bb1Iv09+690I3v3Xuve/de697917r3v3Xuve/de697917oOd3dobX2mGppKn+K5i4SLDYxlqKoytcIlQ66oqTUwtZj5Df0o309+690H9LtPeXZ9XBld+vLgNswuJ8ftakd4aie3CPWBrSQMw+skg89jZEhBv7917oe6Cgo8XR0+Px9NDR0VJEsNNTU6COKGNfoqKP6k3J+pJJNyffuvdS/fuvde9+691//W3+Pfuvde9+691737r3XvfuvdILdXW2093apsjjxT5EgacrjyKSvDLyrSuqmOq0n/AI6q9vxb37r3SDTaHa+0bLtXdlNuTGx6Vjxe4ltOsYudEc8rOAB9PTNEP8B7917rMOzN9YkMu5esctZG0tVYSVqunP15VVjqU5t/x19+691mTvXbSj/LcJuqhkt6kmxcXpPNxdquMm1vrb37r3Xn7220wtRYTdVdJb0xxYuH1E/QXWrkIv8A1t7917rCezN9ZYKu2usctZ2KrV5uRqSnH+LKY6ZOL/8AHX37r3WFtodr7uGndW66bbeNk1LLi9vLed0POiSeJowQfp6ppR/h7917pe7V622ntHTNjceJ8gAdWVyDCrrixsWaN2URU2o/8clT6839+690vPfuvde9+691737r3Xvfuvdf/9k=",g8=({chatId:e,value:t})=>{localStorage.setItem(e,JSON.stringify(t))},m8=e=>{const t=localStorage.getItem(e);return t?JSON.parse(t):null},y8=({user:e,recipient:t})=>pJ(void 0,void 0,void 0,(function*(){const r=(null==e?void 0:e.account)?v8(t,864e5):p8;return null===r?pJ(void 0,void 0,void 0,(function*(){try{const r=yield null==e?void 0:e.profile.info({overrideAccount:t}),n=r.picture?r.picture:p8;return b8({account:t,image:n}),n}catch(r){return console.error(`UIWeb::helpers::getPfp::Error: ${r}`),p8}})):r})),b8=({account:e,image:t})=>{const r={value:t,timestamp:(new Date).getTime()};localStorage.setItem(e,JSON.stringify(r))},v8=(e,t)=>{const r=localStorage.getItem(e);if(!r)return null;try{const n=JSON.parse(r);return(new Date).getTime()>n.timestamp+t?(localStorage.removeItem(e),null):n.value}catch($R){console.debug(`UIWeb::getCacheData::error - ${(new Date).toISOString()}`,$R)}},w8=(e,t)=>{if(t)localStorage.removeItem(e);else{const t=(new Date).getTime();localStorage.setItem(e,JSON.stringify(t))}},A8=({isModalOpen:e,setIsModalOpen:t})=>{t(!e)},C8=e=>{if(navigator&&navigator.clipboard)navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}},E8=({user:e,groupInformation:t})=>({msg:{messageContent:"",timestamp:0,messageType:"",signature:"",sigType:"",link:null,encType:"",encryptedSecret:"",fromDID:"",fromCAIP10:"",toDID:"",toCAIP10:""},wallets:t?null:e.wallets,did:t?null:e.did,threadhash:null,profilePicture:t?t.groupImage:null==e?void 0:e.profile.picture,name:null,about:t?null:e.about,intent:null,intentSentBy:null,intentTimestamp:new Date,publicKey:t?null:e.publicKey,combinedDID:"",cid:"",groupInformation:null!=t?t:void 0}),x8=(e,t)=>{const r=m8(e);return!!(r&&(null==r?void 0:r.msg)&&r.msg.timestamp{const n={};return(r?[...t,...e]:[...e,...t]).filter((e=>!(e.cid in n)&&(n[e.cid]=!0,!0)))};var I8=cV,k8=Wz,_8=xz,T8=YV,M8=TypeError,P8="Reduce of empty array with no initial value",j8=function(e){return function(t,r,n,i){var o=k8(t),a=_8(o),s=T8(o);if(I8(r),0===s&&n<2)throw new M8(P8);var c=e?s-1:0,u=e?-1:1;if(n<2)for(;;){if(c in a){i=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw new M8(P8)}for(;e?c>=0:s>c;c+=u)c in a&&(i=r(i,a[c],c,o));return i}},D8={left:j8(!1),right:j8(!0)}.left;Vq({target:"Array",proto:!0,forced:!MX&&fH>79&&fH<83||!o$("reduce")},{reduce:function(e){var t=arguments.length;return D8(this,e,t,t>1?arguments[1]:void 0)}});const O8=(e,t)=>pJ(void 0,void 0,void 0,(function*(){return(null==e?void 0:e.startsWith("chatid:"))?e=e.replace("chatid:",""):e.includes("eip155:")?e=e.replace("eip155:",""):N8(e)&&(e=yield L8(e,t?t.env:_.CONSTANTS.ENV.PROD)),e}));function B8(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array)return e.reduce(((e,t,r)=>(e[r]=B8(t),e)),[]);if(e instanceof Object)return Object.keys(e).reduce(((t,r)=>(t[r]=B8(e[r]),t)),{});throw new Error("Unable to copy obj! Its type isn't supported.")}const N8=e=>e.includes(".")?e:null,R8=({searchText:e,fetchChatProfile:t,env:r,user:n})=>pJ(void 0,void 0,void 0,(function*(){let i,o=null;if(o=yield L8(e,r),o)return i=yield t({profileId:o,env:r,user:n}),i||(i=(({caip10:e})=>({did:e,wallets:e,publicKey:"",profilePicture:z4,encryptedPrivateKey:"",encryptionType:"",signature:"",sigType:"",encryptedPassword:null,about:null,name:null,numMsg:1,allowedNumMsg:100,nftOwner:null,linkedListHash:null,msgSent:0,maxMsgPersisted:0,profile:{name:null,desc:null,picture:z4,profileVerificationProof:null,blockedUsersList:null},verificationProof:""}))({caip10:u8(o)})),i})),L8=(e,t)=>pJ(void 0,void 0,void 0,(function*(){const r=c8(t),n=zm();let i=null;if(N8(e)){try{if(i=yield n.getAddress(e),!i){if(!r)throw new Error("No udResolverClient available for the network");i=yield null==r?void 0:r.owner(e)}}catch(o){console.debug(o)}return i||null}return(yield S.PW(l8(e)))?e:null})),F8=e=>s()(e).calendar(null,{lastWeek:" dddd",lastDay:"[Yesterday]",sameDay:"[Today]",nextWeek:"dddd",sameElse:"LL"});var U8=gz(1..valueOf),z8=zV,H8=OW,V8=_z,K8=RangeError,G8=Vq,q8=gz,Q8=zV,W8=U8,J8=function(e){var t=H8(V8(this)),r="",n=z8(e);if(n<0||n===1/0)throw new K8("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r},Y8=uz,Z8=RangeError,$8=String,X8=Math.floor,e9=q8(J8),t9=q8("".slice),r9=q8(1..toFixed),n9=function(e,t,r){return 0===t?r:t%2==1?n9(e,t-1,r*e):n9(e*e,t/2,r)},i9=function(e,t,r){for(var n=-1,i=r;++n<6;)i+=t*e[n],e[n]=i%1e7,i=X8(i/1e7)},o9=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=X8(n/t),n=n%t*1e7},a9=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=$8(e[t]);r=""===r?n:r+e9("0",7-n.length)+n}return r};G8({target:"Number",proto:!0,forced:Y8((function(){return"0.000"!==r9(8e-5,3)||"1"!==r9(.9,0)||"1.25"!==r9(1.255,2)||"1000000000000000128"!==r9(0xde0b6b3a7640080,0)}))||!Y8((function(){r9({})}))},{toFixed:function(e){var t,r,n,i,o=W8(this),a=Q8(e),s=[0,0,0,0,0,0],c="",u="0";if(a<0||a>20)throw new Z8("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return $8(o);if(o<0&&(c="-",o=-o),o>1e-21)if(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(o*n9(2,69,1))-69,r=t<0?o*n9(2,-t,1):o/n9(2,t,1),r*=4503599627370496,(t=52-t)>0){for(i9(s,0,r),n=a;n>=7;)i9(s,1e7,0),n-=7;for(i9(s,n9(10,n,1),0),n=t-1;n>=23;)o9(s,1<<23),n-=23;o9(s,1<0?c+((i=u.length)<=a?"0."+e9("0",a-i)+u:t9(u,0,i-a)+"."+t9(u,i-a)):c+u}});const s9=(e,t,r=!1)=>(null==e?void 0:e.length)>t+t+1?`${e.substring(0,t)}...${r?e.substring(e.length-t):""}`:e,c9=(e,t)=>e>=t?`${t}+`:e,u9=e=>{const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(1)} ${["B","KB","MB","GB","TB"][t]}`},l9=e=>s()(e).format("Do MMM [at] h:mm A");var d9=BG.PROPER,f9=uz,h9=j$,p9=U$.trim;Vq({target:"String",proto:!0,forced:function(e){return f9((function(){return!!h9[e]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[e]()||d9&&h9[e].name!==e}))}("trim")},{trim:function(){return p9(this)}});const g9=(e,t)=>`eip155:${t}:${e}`,m9=e=>{const t=_.utils.parseApiResponse(e),r=new Map,n=new Map;return e.forEach((e=>{r.set(e.payload.data.sid,e.epoch),n.set(e.payload.data.sid,e.sender)})),t.forEach((e=>{e.date=r.get(e.sid),e.epoch=new Date(e.date).getTime()/1e3,e.channel=n.get(e.sid)})),t},y9=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{account:o,env:a,decryptedPgpPvtKey:s}=(0,i.useContext)(v5),c=(0,i.useCallback)((({recipientAddress:r})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{return yield _.chat.chat({account:o,toDecrypt:!!s,pgpPrivateKey:String(s),recipient:r,env:a})}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[s,a]);return{fetchChat:c,error:e,loading:r}},b9=()=>{const e=(0,i.useCallback)((({profileId:e=Y4,env:t,user:r})=>pJ(void 0,void 0,void 0,(function*(){try{return yield _.user.get({env:t,account:e})}catch(ys){return void console.log(ys)}}))),[]);return{fetchChatProfile:e}},v9=({socketType:e=E5.NOTIFICATION})=>{const[t,r]=(0,i.useState)(!1),[n,o]=(0,i.useState)(""),[a,s]=(0,i.useState)(""),[c,u]=(0,i.useState)(""),{fetchChat:l}=y9(),{account:d,env:f,decryptedPgpPvtKey:h,signer:p}=(0,i.useContext)(v5),{chats:g,setChat:m,chatsFeed:y,connectedProfile:b,setChatFeed:v,setRequestFeed:w,requestsFeed:A,selectedChatId:C}=(0,i.useContext)(y5),{fetchChatProfile:E}=b9(),{subscriptionStatus:x,setInboxNotifFeed:S,setSpamNotifFeed:I}=(0,i.useContext)(w5),[k,M]=(0,i.useState)(null),P=(0,i.useCallback)((()=>{null==k||k.on(T.EVENTS.CONNECT,(()=>{r(!0)})),null==k||k.on(T.EVENTS.DISCONNECT,(e=>{console.log(e),r(!1)})),null==k||k.on(T.EVENTS.USER_FEEDS,(e=>{const t=m9([e]);x.get(t[0].channel)?S(`notif${t[0].sid}`,t[0]):I(`notif${t[0].sid}`,t[0]),u(e)})),null==k||k.on(T.EVENTS.CHAT_RECEIVED_MESSAGE,(e=>pJ(void 0,void 0,void 0,(function*(){var t,r,n,i,a,s,c,u,p;if(!b||!h)return;const x=(({msg:e,account:t})=>l8(e.fromCAIP10).toLowerCase()===t.toLowerCase()?e.toCAIP10:f8(e.toCAIP10)?e.fromCAIP10:e.toCAIP10)({msg:e,account:d}).toLowerCase();if(!f8(x))return;if("Request"===e.messageCategory&&null===e.messageContent&&null===e.messageType){if("other"===e.messageOrigin){const e=yield E({profileId:x,env:f});if(e||Object.keys(e||{}).length){let t={};t=y[x],t.publicKey=e.publicKey,v(x,t)}}return}const S=yield _.chat.decryptConversation({messages:[e],connectedUser:b,pgpPrivateKey:h,env:f});if(S&&S.length){const e=S[0];let o={};if(y[x])o=y[x],m(x,{messages:Array.isArray(null===(t=g.get(x))||void 0===t?void 0:t.messages)?[...g.get(x).messages,e]:[e],lastThreadHash:null!==(n=null===(r=g.get(x))||void 0===r?void 0:r.lastThreadHash)&&void 0!==n?n:e.link}),o.msg=e,v(x,o);else if(A[x])o=A[x],m(x,{messages:Array.isArray(null===(i=g.get(x))||void 0===i?void 0:i.messages)?[...g.get(x).messages,e]:[e],lastThreadHash:null!==(s=null===(a=g.get(x))||void 0===a?void 0:a.lastThreadHash)&&void 0!==s?s:e.link}),o.msg=e,w(x,o);else{const t=yield l({recipientAddress:x});console.log(x),Object.keys(t||{}).length&&(({chat:e,account:t})=>!(!(t&&Object.keys(e||{}).length&&e.combinedDID.toLowerCase().includes(u8(t).toLowerCase()))||e.intent&&e.intent.toLowerCase().includes(u8(t).toLowerCase())))({chat:t,account:d})?w(x,t):v(x,t),console.log("in here"),console.log(e),m(x,{messages:Array.isArray(null===(c=g.get(x))||void 0===c?void 0:c.messages)?[...g.get(x).messages,e]:[e],lastThreadHash:null!==(p=null===(u=g.get(x))||void 0===u?void 0:u.lastThreadHash)&&void 0!==p?p:e.link})}C===x&&g8({chatId:x,value:o})}o(e)})))),null==k||k.on(T.EVENTS.CHAT_GROUPS,(e=>{s(e)}))}),[k,h,y,A,m,g,v,w,l]),j=(0,i.useCallback)((()=>{null==k||k.off(T.EVENTS.CONNECT),null==k||k.off(T.EVENTS.DISCONNECT),null==k||k.off(T.EVENTS.CHAT_GROUPS),null==k||k.off(T.EVENTS.CHAT_RECEIVED_MESSAGE)}),[k]);return(0,i.useEffect)((()=>(k&&P(),()=>{k&&j()})),[P,k,j]),(0,i.useEffect)((()=>{if(h){k&&(null==k||k.disconnect());let t=1;pJ(void 0,void 0,void 0,(function*(){t=yield null==p?void 0:p.getChainId()}));const r=(0,T.createSocketConnection)({user:e===E5.CHAT?d:g9(d,t),socketType:e,env:f});M(r)}}),[h,f]),{pushChatNotificationSocket:k,isSDKSocketConnected:t,messagesSinceLastConnection:n,groupInformationSinceLastConnection:a,notificationFeedSinceLastConnection:c}},w9=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{account:o,env:a,decryptedPgpPvtKey:s}=(0,i.useContext)(v5),c=(0,i.useCallback)((({page:r,chatLimit:i})=>pJ(void 0,void 0,void 0,(function*(){var c,u,l;n(!0);try{const e=yield _.chat.chats({account:o,toDecrypt:!!s,pgpPrivateKey:String(s),page:r,limit:i,env:a}),t={};for(const r of e)(null==r?void 0:r.groupInformation)||(t[null!==(c=r.did.toLowerCase())&&void 0!==c?c:r.chatId]=r,m8(null!==(u=r.did.toLowerCase())&&void 0!==u?u:r.chatId)||g8({chatId:null!==(l=r.did.toLowerCase())&&void 0!==l?l:r.chatId,value:r}));return t}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[s,a]);return{fetchChats:c,error:e,loading:r}},A9=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1);(0,i.useContext)(y5);const{account:o,env:a,decryptedPgpPvtKey:s}=(0,i.useContext)(v5),c=(0,i.useCallback)((({page:r,requestLimit:i})=>pJ(void 0,void 0,void 0,(function*(){var c;n(!0);try{const e=yield _.chat.requests({account:o,toDecrypt:!!s,pgpPrivateKey:String(s),page:r,limit:i,env:a}),t={};for(const r of e)(null==r?void 0:r.groupInformation)||(t[null!==(c=r.did.toLowerCase())&&void 0!==c?c:r.chatId]=r);return t}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[s,a]);return{fetchRequests:c,error:e,loading:r}};function C9(e,t){const[r,n]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{const r=new IntersectionObserver((([e])=>{n(e.isIntersecting)}),{rootMargin:t});return e.current&&r.observe(e.current),()=>r.disconnect()}),[]),r}var E9=NH,x9=LH,S9=ZK,I9=function(e,t,r){E9?x9.f(e,t,S9(0,r)):e[t]=r},k9=b3,_9=I9;Vq({target:"Object",stat:!0},{fromEntries:function(e){var t={};return k9(e,(function(e,r){_9(t,e,r)}),{AS_ENTRIES:!0}),t}});const T9=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{account:o,env:a}=(0,i.useContext)(v5),s=(0,i.useCallback)((({page:r,limit:i,spam:s=!1})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{const e=yield _.user.getFeeds({user:o,raw:!0,env:a,page:r,spam:s,limit:i}),t=m9(e),n=Object.fromEntries(t.map((e=>[`notif${e.sid}`,e])));return n}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[o,a]);return{fetchNotification:s,error:e,loading:r}},M9=()=>{const e=(0,i.useContext)(l5);if(!e)throw new Error("useSpaceData must be used within a SpaceDataProvider");return e},P9=()=>{const{popularSpaces:e,setPopularSpaces:t,env:r}=M9(),[n,o]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){o(!0);try{const n=yield _.space.trending({page:e.currentPage,limit:10,env:r});if(0===n.length)return t({lastPage:-1}),void o(!1);n.length>0&&t({apiData:n})}catch(ys){console.error("Error while fetching popular spaces:",ys)}o(!1)}))}),[e.currentPage]),{loading:n}},j9=e=>{const{mySpaces:t,setMySpaces:r,env:n}=M9(),[o,a]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(e){a(!0);try{const i=yield _.space.spaces({account:e,page:t.currentPage,limit:10,toDecrypt:!1,env:n});if(0===i.length)return r({lastPage:-1}),void a(!1);i.length>0&&r({apiData:i})}catch(ys){console.error("Error while fetching Spaces For You:",ys)}a(!1)}}))}),[t.currentPage]),{loading:o}},D9=e=>{const{spaceRequests:t,setSpaceRequests:r,env:n}=M9(),[o,a]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(e){a(!0);try{const i=yield _.space.requests({account:e,page:t.currentPage,limit:10,toDecrypt:!1,env:n});if(0===i.length)return r({lastPage:-1}),void a(!1);i.length>0&&r({apiData:i})}catch(ys){console.error("Error while fetching spaces requests:",ys)}a(!1)}}))}),[t.currentPage]),{loading:o}},O9=e=>{const t=i.useRef(null);return i.useEffect((()=>{t.current&&(t.current.scrollTop=0)}),[]),t},B9="nft",N9=e=>e&&e.split(":")[0]===B9,R9=(e,t)=>e&&N9(e)?Number(e.split(":")[2]):t===T4.PROD?1:5,L9=(e,t)=>!(!e||!t)&&(N9(t)?t.toUpperCase().includes(e.toUpperCase()):e.toUpperCase()===t.toUpperCase()),F9=["mousedown","touchstart"];function U9(e,...t){e&&e.addEventListener&&e.addEventListener(...t)}function z9(e,...t){e&&e.removeEventListener&&e.removeEventListener(...t)}const H9=(e,t,r=F9)=>{const n=(0,i.useRef)(t);(0,i.useEffect)((()=>{n.current=t}),[t]),(0,i.useEffect)((()=>{const t=t=>{const{current:r}=e;r&&!r.contains(t.target)&&n.current(t)};for(const e of r)U9(document,e,t);return()=>{for(const e of r)z9(document,e,t)}}),[r,e])};function V9(e){const[t,r]=(0,i.useState)(window.outerWidth);function n(){r(window.outerWidth)}return(0,i.useEffect)((()=>{function e(){r(window.outerWidth)}return window.addEventListener("resize",n),window.addEventListener("load",e),()=>{window.removeEventListener("resize",n),window.removeEventListener("load",e)}}),[e]),t<=e}function K9(e){const t=e=>"undefined"!=typeof window&&window.matchMedia(e).matches,[r,n]=(0,i.useState)(t(e));function o(){n(t(e))}return(0,i.useEffect)((()=>{const t=window.matchMedia(e);return o(),t.addListener?t.addListener(o):t.addEventListener("change",o),()=>{t.removeListener?t.removeListener(o):t.removeEventListener("change",o)}}),[e]),r}const G9=()=>{const e=(0,i.useCallback)((({signer:e,account:t,pgpPrivateKey:r,env:n})=>pJ(void 0,void 0,void 0,(function*(){try{return yield _.PushAPI.initialize(null!=e?e:void 0,{env:n,account:t,decryptedPGPPrivateKey:r,alpha:{feature:["SCALABILITY_V2"]}})}catch(ys){return void console.error(`UIWeb::hooks::usePushUser::initializeUser::error: ${ys}`)}}))),[]),t=(0,i.useCallback)((({profileId:e,user:t})=>pJ(void 0,void 0,void 0,(function*(){try{let r;return r=e&&t?yield t.info({overrideAccount:e}):yield t.info(),r}catch(ys){return void console.error(`UIWeb::hooks::usePushUser::fetchUserProfile::error: ${ys}`)}}))),[]);return{initializeUser:e,fetchUserProfile:t}},q9=({account:e,env:t,user:r,supportAddress:n,signer:o})=>{const[a,s]=(0,i.useState)(""),[c,u]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{if(!r)return;return pJ(void 0,void 0,void 0,(function*(){var e;if(!r.stream){const e=yield null==r?void 0:r.initStream([_.CONSTANTS.STREAM.CHAT,_.CONSTANTS.STREAM.CONNECT,_.CONSTANTS.STREAM.DISCONNECT],{connection:{retries:3},raw:!0});yield(e=>pJ(void 0,void 0,void 0,(function*(){console.warn("\n--\x3e addChatSocketEvents"),e.on(_.CONSTANTS.STREAM.CONNECT,(e=>{console.log("CONNECTED to the stream"),u(!0)})),e.on(_.CONSTANTS.STREAM.DISCONNECT,(e=>{console.log("DIS-CONNECTED to the stream "),u(!1)})),console.log("\t--\x3ewill attach eachMessage event now"),e.on(_.CONSTANTS.STREAM.CHAT,(e=>{s(e)}))})))(e)}r.stream.connected()||(yield null===(e=r.stream)||void 0===e?void 0:e.connect(),console.debug("Connect stream: ",r))})),()=>{var e;r&&r.stream&&(null===(e=r.stream)||void 0===e||e.disconnect(),console.debug("Disconnect stream: ",r))}}),[r,t,e,n,o]),{messagesSinceLastConnection:a,isSupportChatStreamConnected:c}},Q9={ADMIN:"ADMIN",MEMBER:"MEMBER"},W9="PUSH",J9="GUILD",Y9="ERC20",Z9="ERC721",$9="ERC1155",X9="INVITE",e7="CustomEndpoint",t7="ROLES",r7="holder",n7="GET",i7="DEFAULT",o7={">":"more than",">=":"equal or more than","<":"less than","<=":"equal or less than","==":"equal to","!=":"not equal to"},a7={ERC20:"Token",ERC721:"NFT",ERC1155:"Token",INVITE:"Invite",CustomEndpoint:"URL",ROLES:"Guild ID"},s7=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],c7=[{constant:!0,inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"}],u7=["function uri(uint256 _id) external view returns (string memory)","function supportsInterface(bytes4 interfaceID) external view returns (bool)"],l7=(e,t)=>((e,t)=>`https://${e}.infura.io/v3/${t}`)(e,t),d7=e=>{const t=O4;switch(e){case 1:default:return l7("mainnet",t);case 137:return l7("polygon-mainnet",t);case 10:return l7("optimism-mainnet",t);case 56:return"https://bsc-dataseed.binance.org/";case 11155111:return l7("sepolia",t);case 11155420:return l7("optimism-sepolia",t);case 80002:return l7("polygon-amoy",t);case 97:return"https://data-seed-prebsc-1-s1.binance.org:8545"}},f7=(e,t)=>pJ(void 0,void 0,void 0,(function*(){try{const r=d7(t),n=new x.F(r),i=new k.NZ(e,c7,n),[o,a]=yield Promise.all([i.symbol(),i.decimals()]);return[!1,{symbol:o,decimals:a}]}catch(r){return[!0,{symbol:"",decimals:0}]}})),h7=(e,t)=>pJ(void 0,void 0,void 0,(function*(){try{const r=d7(t),n=new x.F(r),i=new k.NZ(e,s7,n);return[!1,yield i.name()]}catch(r){return[!0,""]}})),p7=(e,t,r)=>pJ(void 0,void 0,void 0,(function*(){var n;try{const i=d7(t),o=new x.F(i),a=new k.NZ(e,u7,o),s="0xd9b67a26",c=yield a.supportsInterface(s);if(c&&void 0!==r)try{const e=yield a.uri(r),t=null==e?void 0:e.toString().replace("{id}",r.toString()),i=yield Qm().get(null!=t?t:"");return[!1,(null===(n=i.data)||void 0===n?void 0:n.name)||"ERC1155"]}catch(ys){return[!1,"ERC1155"]}return[!c,"ERC1155"]}catch(i){return[!0,"ERC1155"]}})),g7=e=>!("PUSH"!==e.type||e.category!==Y9&&e.category!==Z9&&e.category!==$9||!e.data),m7=()=>{const e=(0,i.useContext)(p5);if(!e)throw new Error("useWidgetData must be used within a WidgetDataProvider");return e};var y7;!function(e){e.NOTIFICATION_WIDGET_SUBSCRIBE_ERROR="NW-001",e.NOTIFICATION_WIDGET_UNSUBSCRIBE_ERROR="NW-002",e.NOTIFICATION_WIDGET_PREFERENCE_UPDATION_ERROR="NW-003",e.NOTIFICATION_WIDGET_CHANNEL_INFO_ERROR="NW-004"}(y7||(y7={}));const b7={borderRadius:{modal:"12px",modalInnerComponents:"8px"},backgroundColor:{buttonBackground:"#CE4DE4",modalBackground:"#fff",buttonDisableBackground:"#C6C7CC",toastSuccessBackground:"linear-gradient(90.15deg, #30CC8B -125.65%, #30CC8B -125.63%, #F3FFF9 42.81%)",toastErrorBackground:"linear-gradient(90.15deg, #FF2070 -125.65%, #FF2D79 -125.63%, #FFF9FB 42.81%)",toastShadowBackground:"#ccc",sliderActiveBackground:"#CE4DE4",sliderInActiveBackground:"#BAC4D6",sliderThumbBackground:"#fff",imageBackgroundColor:"#fff"},fontFamily:"inherit",border:{modal:"1px solid rgba(0, 0, 0, 0.1)",modalInnerComponents:"1px solid rgb(194, 203, 219)",sliderThumb:"1px solid #D4DCEA",divider:"1px solid #D4DCEA",image:"1px solid #BAC4D6"},textColor:{buttonText:"#fff",buttonDisableText:"rgba(0, 0, 0, 0.20)",modalHeaderText:"#000",modalHighlightedText:"#CE4DE4",modalTitleText:"#000",modalSubTitleText:"#575D73"},spinnerColor:"#CE4DE4",scrollbarColor:"#CE4DE4"},v7={borderRadius:{modal:"12px",modalInnerComponents:"8px"},backgroundColor:{buttonBackground:"#CE4DE4",modalBackground:"rgb(47, 49, 55)",buttonDisableBackground:"#414556",toastSuccessBackground:"linear-gradient(90.15deg, #30CC8B -125.65%, #30CC8B -125.63%, #2F3137 42.81%)",toastErrorBackground:"linear-gradient(89.96deg, #FF2070 -101.85%, #2F3137 51.33%)",toastShadowBackground:"#00000010",sliderActiveBackground:"#CE4DE4",sliderInActiveBackground:"#4A4F67",sliderThumbBackground:"#fff",imageBackgroundColor:"#40434A"},fontFamily:"inherit",border:{modal:"none",modalInnerComponents:"1px solid rgb(74, 79, 103)",sliderThumb:"rgba(0, 0, 0, 0.10)",divider:"1px solid #4A4F67",image:"1px solid #4A4F67"},textColor:{buttonText:"#fff",modalHeaderText:"#fff",modalHighlightedText:"#CE4DE4",modalTitleText:"#fff",modalSubTitleText:"#B6BCD6",buttonDisableText:"rgba(255, 255, 255, 0.20)"},spinnerColor:"#CE4DE4",scrollbarColor:"#CE4DE4"},w7=(0,i.createContext)(b7),A7=e=>{var t,r;const a=(0,i.useContext)(w7);return(0,n.jsx)(o.NP,Object.assign({theme:a},{children:(0,n.jsxs)(C7,{children:[(0,n.jsxs)(E7,{children:[(0,n.jsx)(x7,Object.assign({textColor:null===(t=null==a?void 0:a.textColor)||void 0===t?void 0:t.modalTitleText},{children:e.labelHeading})),(0,n.jsx)(x7,Object.assign({textColor:null===(r=null==a?void 0:a.textColor)||void 0===r?void 0:r.modalSubTitleText,fontSize:"12px",fontWeight:"400"},{children:e.labelSubHeading}))]}),(0,n.jsxs)(S7,Object.assign({htmlFor:`checkbox-${e.id}`},{children:[(0,n.jsx)("input",{type:"checkbox",id:`checkbox-${e.id}`,checked:e.checked,onChange:()=>e.onToggle()}),(0,n.jsx)("div",{className:"slider round"})]}))]})}))},C7=o.Ay.div.withConfig({displayName:"ToggleInput__ToggleContainer",componentId:"sc-1xnbxny-0"})(["display:flex;justify-content:space-between;width:100%;gap:10px;font-family:inherit;align-items:center;"]),E7=o.Ay.div.withConfig({displayName:"ToggleInput__LabelContainer",componentId:"sc-1xnbxny-1"})(["display:flex;flex-direction:column;gap:4px;width:73%;"]),x7=o.Ay.label.withConfig({displayName:"ToggleInput__Label",componentId:"sc-1xnbxny-2"})(["font-size:",";font-weight:",";color:",";"],(e=>{var t;return null!==(t=e.fontSize)&&void 0!==t?t:"13px"}),(e=>{var t;return null!==(t=e.fontWeight)&&void 0!==t?t:"500"}),(e=>{var t;return null!==(t=e.textColor)&&void 0!==t?t:"#000"})),S7=o.Ay.label.withConfig({displayName:"ToggleInput__ToggleLabel",componentId:"sc-1xnbxny-3"})(["display:inline-block;height:16px;position:relative;width:32px;padding:2px;input{display:none;}.slider{background-color:#A0A3B1;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:0.4s;}.slider:before{background-color:#fff;bottom:3px;content:'';height:15px;left:2px;position:absolute;transition:0.4s;width:15px;}input:checked + .slider{background-color:",";}input:checked + .slider:before{transform:translateX(17px);}.slider.round{border-radius:34px;}.slider.round:before{border-radius:50%;}"],(e=>e.theme.backgroundColor.buttonBackground)),I7=({color:e})=>(0,n.jsxs)("svg",Object.assign({viewBox:"0 0 42 42",color:null!=e?e:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M20.7588 5.1897V10.3793",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M31.7706 9.74683L28.1055 13.412",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M36.3273 20.7585H31.1377",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M31.7706 31.7704L28.1055 28.1052",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M20.7588 36.3273V31.1377",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M9.74707 31.7704L13.4123 28.1052",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M5.18945 20.7585H10.3791",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M9.74707 9.74683L13.4123 13.412",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})),k7=({size:e=42,color:t="#000"})=>(0,n.jsx)(T7,Object.assign({width:`${e}px`},{children:(0,n.jsx)(I7,{color:t})})),_7=(0,o.i7)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),T7=o.Ay.div.withConfig({displayName:"Spinner__SpinLoader",componentId:"sc-skkbw8-0"})(["display:flex;flex:initial;align-self:center;width:",";animation-name:",";animation-duration:2500ms;animation-iteration-count:infinite;animation-timing-function:linear;"],(e=>e.width),_7),M7=({children:e,content:t,direction:r,delay:o})=>{let a;const[s,c]=(0,i.useState)(!1);return(0,n.jsxs)(P7,Object.assign({onMouseEnter:()=>{a=setTimeout((()=>{c(!0)}),o||400)},onMouseLeave:()=>{clearInterval(a),c(!1)},id:"tooltip-span"},{children:[e,s&&t&&(0,n.jsx)(j7,Object.assign({className:`${r||"top"}`},{children:t}))]}))},P7=o.Ay.div.withConfig({displayName:"Tooltip__TooltipWrapper",componentId:"sc-ksqm3c-0"})(["display:flex;position:relative;z-index:1;"]),j7=o.Ay.div.withConfig({displayName:"Tooltip__TooltipContent",componentId:"sc-ksqm3c-1"})(["position:absolute;border-radius:8px 8px 8px 4px;left:50%;transform:translateX(-50%);padding:7px;color:#fff;background:#000;font-size:12px;font-weigth:400;font-family:sans-serif;line-height:1;z-index:100;white-space:nowrap;&.top{top:calc(30px * -1);&::before{top:100%;border-top-color:#000;}}&.right{left:calc(100% + 10px);top:50%;transform:translateX(0) translateY(-50%);&::before{left:calc(6px * -1);top:50%;transform:translateX(0) translateY(-50%);border-right-color:#000;}}&.bottom{bottom:calc(30px * -1);&::before{bottom:100%;border-bottom-color:#000;}}&.bottom-right{bottom:calc(30px * -1);transform:translateX(-32%) translateY(5%);&::before{bottom:100%;border-bottom-color:#000;left:10%;}}&.left{left:auto;right:calc(100% + 10px);top:50%;transform:translateX(0);&::before{left:auto;right:calc(6px * -2);top:50%;transform:translateX(0) translateY(-50%);border-left-color:#000;}}"]),D7=o.Ay.div.withConfig({displayName:"sharedStyling__Section",componentId:"sc-lhr0ta-0"})(["display:flex;cursor:",";flex:",";flex-direction:",";gap:",";align-items:",";justify-content:",";align-self:",";margin:",";min-height:",";max-height:",";max-width:",";min-width:",";height:",";width:",";line-height:",";overflow:",";padding:",";position:",";background:",";right:",";top:",";bottom:",";left:",";border-radius:",";border-width:",";border-color:",";border-style:",";z-index:",";white-space:",";border:",";font-size:",";&.skeleton{> *{visibility:",";}&:after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;animation:",";border-radius:8px;}}"],(e=>e.cursor||"default"),(e=>e.flex||"default"),(e=>e.flexDirection||"row"),(e=>e.gap||"0px"),(e=>e.alignItems||"center"),(e=>e.justifyContent||"center"),(e=>e.alignSelf||"stretch"),(e=>e.margin||"0px"),(e=>e.minHeight||"auto"),(e=>e.maxHeight||"auto"),(e=>e.maxWidth||"auto"),(e=>e.minWidth||"auto"),(e=>e.height||"auto"),(e=>e.width||"auto"),(e=>e.lineHeight||"initial"),(e=>e.overflow||"default"),(e=>e.padding||"0px"),(e=>e.position||"relative"),(e=>e.gradient?e.gradient:e.background?e.background:"transparent"),(e=>e.right||"auto"),(e=>e.top||"auto"),(e=>e.bottom||"auto"),(e=>e.left||"auto"),(e=>e.borderRadius||"0px"),(e=>e.borderWidth||"initial"),(e=>e.borderColor||"initial"),(e=>e.borderStyle||"initial"),(e=>e.zIndex||"0"),(e=>e.whiteSpace||"normal"),(e=>e.border||"initial"),(e=>e.fontSize||"initial"),(e=>e.visibility||e.animation?"hidden":"visible"),(e=>e.animation)),O7=o.Ay.div.withConfig({displayName:"sharedStyling__Div",componentId:"sc-lhr0ta-1"})(["height:",";width:",";margin:",";cursor:",";line-height:",";overflow:",";border-radius:",";align-self:",";text-align:",";&.skeleton{> *{visibility:",";}&:after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;opacity:1;z-index:1;animation:",";border-radius:8px;}}"],(e=>e.height||"auto"),(e=>e.width||"100%"),(e=>e.margin||"0px"),(e=>e.cursor||"default"),(e=>e.lineHeight||"initial"),(e=>e.overflow||"default"),(e=>e.borderRadius||"0px"),(e=>e.alignSelf||"center"),(e=>e.textAlign||"default"),(e=>e.visibility||e.animation?"hidden":"visible"),(e=>e.animation)),B7=o.Ay.span.withConfig({displayName:"sharedStyling__Span",componentId:"sc-lhr0ta-2"})(["align-self:",";background:",";border-radius:",";border:",";bottom:",";color:",";flex:",";font-size:",";font-weight:",";left:",";letter-spacing:",";line-height:",";cursor:",";margin:",";padding:",";position:",";right:",";text-align:",";text-transform:",";top:",";width:",";z-index:",";max-width:",";white-space:",";text-wrap:",";&.skeleton{> *{visibility:",";}&:after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;opacity:1;z-index:1;animation:",";border-radius:8px;}}"],(e=>e.alignSelf||"auto"),(e=>e.background||"transparent"),(e=>e.borderRadius||"initial"),(e=>e.border||"initial"),(e=>e.bottom||"auto"),(e=>e.color||"inherit"),(e=>e.flex||"initial"),(e=>e.fontSize||"inherit"),(e=>e.fontWeight||"300"),(e=>e.left||"auto"),(e=>e.letterSpacing||"normal"),(e=>e.lineHeight||"initial"),(e=>e.cursor||"default"),(e=>e.margin||"0px"),(e=>e.padding||"0px"),(e=>e.position||"relative"),(e=>e.right||"auto"),(e=>e.textAlign||"center"),(e=>e.textTransform||"inherit"),(e=>e.top||"auto"),(e=>e.width||"auto"),(e=>e.zIndex||"auto"),(e=>e.maxWidth||"initial"),(e=>e.whiteSpace||"normal"),(e=>e.textWrap||"normal"),(e=>e.visibility||e.animation?"hidden":"visible"),(e=>e.animation)),N7=o.Ay.a.withConfig({displayName:"sharedStyling__Anchor",componentId:"sc-lhr0ta-3"})(["align-self:",";background:",";border-radius:",";border:",";bottom:",";color:",";flex:",";font-size:",";font-weight:",";left:",";letter-spacing:",";line-height:",";cursor:",";margin:",";padding:",";position:",";right:",";text-align:",";text-decoration:",";text-transform:",";top:",";width:",";z-index:",";max-width:",";"],(e=>e.alignSelf||"auto"),(e=>e.background||"transparent"),(e=>e.borderRadius||"initial"),(e=>e.border||"initial"),(e=>e.bottom||"auto"),(e=>e.color||"inherit"),(e=>e.flex||"initial"),(e=>e.fontSize||"inherit"),(e=>e.fontWeight||"300"),(e=>e.left||"auto"),(e=>e.letterSpacing||"normal"),(e=>e.lineHeight||"initial"),(e=>e.cursor||"pointer"),(e=>e.margin||"0px"),(e=>e.padding||"0px"),(e=>e.position||"relative"),(e=>e.right||"auto"),(e=>e.textAlign||"center"),(e=>e.textDecoration||"center"),(e=>e.textTransform||"inherit"),(e=>e.top||"auto"),(e=>e.width||"auto"),(e=>e.zIndex||"auto"),(e=>e.maxWidth||"initial")),R7=o.Ay.img.withConfig({displayName:"sharedStyling__Image",componentId:"sc-lhr0ta-4"})(["display:",";height:",";max-height:",";padding:",";width:",";margin:",";vertical-align:",";border-radius:",";overflow:",";cursor:",";filter:",";alt:",";object-fit:",";"],(e=>e.display||"flex"),(e=>e.height||"auto"),(e=>e.maxHeight||"initial"),(e=>e.padding||"0px"),(e=>e.width||"100%"),(e=>e.margin||"0px"),(e=>e.verticalAlign||"auto"),(e=>e.borderRadius||"initial"),(e=>e.overflow||"hidden"),(e=>e.cursor||"default"),(e=>e.filter||"none"),(e=>e.alt||"Image"),(e=>e.objectFit||"fill")),L7=o.Ay.button.withConfig({displayName:"sharedStyling__Button",componentId:"sc-lhr0ta-5"})(["display:",";line-height:",";flex:",";flex-direction:",";align-self:",";align-items:",";justify-content:",";font-weight:",";font-size:",";color:",";background:",";margin:",";height:",";min-height:",";padding:",";border:",";border-radius:",";position:",";text-decoration:",";width:",";overflow:",";z-index:",";cursor:",";font-family:",";&:before{background:",";bottom:0;content:'';display:none;left:0;position:absolute;right:0;top:0;z-index:-1;}&:after{background:",";bottom:0;content:'';left:0;opacity:0;position:absolute;right:0;top:0;z-index:-1;}&:hover{border:",";& svg > path{stroke:",";}}&:hover:before{display:block;}&:hover:after{opacity:",";}&:active:after{opacity:",";}& > div{display:flex;}"],(e=>e.display||"flex"),(e=>e.lineHeight||"normal"),(e=>e.flex||"initial"),(e=>e.flexDirection||"row"),(e=>e.alignSelf||"auto"),(e=>e.alignItems||"center"),(e=>e.justifyContent||"center"),(e=>e.fontWeight||400),(e=>e.fontSize||"inherit"),(e=>e.color||"inherit"),(e=>e.background||"inherit"),(e=>e.margin||"initial"),(e=>e.height||"initial"),(e=>e.minHeight||"auto"),(e=>e.padding||"initial"),(e=>e.border||"none"),(e=>e.borderRadius||"inherit"),(e=>e.position||"relative"),(e=>e.textDecoration||"none"),(e=>e.width||"initial"),(e=>e.overflow||"hidden"),(e=>e.zIndex||"3"),(e=>e.cursor||"pointer"),(e=>e.fontFamily||"inherit"),(e=>e.hover||(e.background?e.background:"transparent")),(e=>e.hoverBackground||"#000"),(e=>e.hoverBorder||"none"),(e=>e.hoverSVGPathStroke||"auto"),(e=>e.hoverBackground?1:.08),(e=>e.hoverBackground?1:.15)),F7=(0,o.DU)([":root{--onboard-modal-z-index:9999999999999 !important;--wcm-z-index:9999999999999 !important;}"]);const U7=({link:e,text:t,customStyle:r})=>{var a,s,c,u,l,d;const f=(0,i.useContext)(w7);return(0,n.jsx)(o.NP,Object.assign({theme:f},{children:(0,n.jsx)(z7,Object.assign({justifyContent:"start"},{children:(0,n.jsxs)(N7,Object.assign({href:e,target:"_blank",fontSize:null!==(a=null==r?void 0:r.fontSize)&&void 0!==a?a:"12px",fontWeight:null!==(s=null==r?void 0:r.fontWeight)&&void 0!==s?s:"400",textDecoration:null!==(c=null==r?void 0:r.textDecoration)&&void 0!==c?c:"underline",color:null!==(u=null==r?void 0:r.color)&&void 0!==u?u:null===(l=f.textColor)||void 0===l?void 0:l.modalHighlightedText},{children:[t,(0,n.jsx)(o5,Object.assign({border:"none",background:null===(d=null==f?void 0:f.backgroundColor)||void 0===d?void 0:d.modalBackground,verticalAlign:"text-bottom"},{children:(0,n.jsx)(R7,{src:"data:image/svg+xml,%3csvg width='11' height='11' viewBox='0 0 11 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg id='Group 4369'%3e%3cpath id='Vector' d='M4.5 2.14689H2.16667C1.85725 2.14689 1.5605 2.26981 1.34171 2.4886C1.12292 2.70739 1 3.00414 1 3.31356V9.14689C1 9.45631 1.12292 9.75306 1.34171 9.97185C1.5605 10.1906 1.85725 10.3136 2.16667 10.3136H8C8.30942 10.3136 8.60616 10.1906 8.82496 9.97185C9.04375 9.75306 9.16667 9.45631 9.16667 9.14689V6.81356M6.83333 0.980225H10.3333M10.3333 0.980225V4.48022M10.3333 0.980225L4.5 6.81356' stroke='%23787E99' stroke-width='0.813957' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e"})}))]}))}))}))},z7=(0,o.Ay)(D7).withConfig({displayName:"Hyperlink__HyperlinkContainer",componentId:"sc-18t5rfl-0"})(["display:flex;width:100%;font-family:inherit;"]),H7=()=>(0,n.jsxs)("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M27 16H5",stroke:"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M14 7L5 16L14 25",stroke:"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}));var V7="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M15.625 4.375L4.375 15.625' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M15.0799 15.4442L4.375 4.375' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const K7=({children:e,clickawayClose:t,width:r})=>{const o=(0,i.useRef)(null);return(0,i.useContext)(w7),H9(o,(()=>{t&&t()})),(0,n.jsx)(Q7,Object.assign({ref:o,width:r},{children:e}))},G7=({clickawayClose:e,children:t,width:r,modalBackground:o=k5.OVERLAY,modalPositionType:a=_5.GLOBAL})=>((0,i.useContext)(w7),(0,n.jsx)(q7,Object.assign({id:"widget-modal-overlay",modalBackground:o,modalPositionType:a},{children:e?(0,n.jsx)(K7,Object.assign({clickawayClose:e,width:r},{children:t})):(0,n.jsx)(Q7,Object.assign({width:r},{children:t}))}))),q7=o.Ay.div.withConfig({displayName:"Modal__ModalOverlay",componentId:"sc-1r90nx0-0"})(["position:",";top:0;left:0;right:0;bottom:0;width:100%;height:100%;backdrop-filter:",";background-color:",";display:flex;color:",";justify-content:center;align-items:center;z-index:2000;max-height:100vh;overflow-y:auto;margin:auto !important;"],(e=>e.modalPositionType===_5.GLOBAL?"fixed":"absolute"),(e=>e.modalBackground===k5.BLUR?"blur(3px)":"none"),(e=>e.modalBackground===k5.OVERLAY?"rgba(0, 0, 0, 0.5)":" transparent"),(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalTitleText)&&void 0!==r?r:"#000"})),Q7=o.Ay.div.withConfig({displayName:"Modal__ModalParent",componentId:"sc-1r90nx0-1"})(["display:flex;flex-direction:column;align-items:center;padding:24px 20px;max-height:75vh;background:",";border-radius:",";width:",";margin:auto !important;@media (max-width:425px){min-width:300px;}"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.modalBackground}),(e=>{var t;return null===(t=e.theme.borderRadius)||void 0===t?void 0:t.modal}),(e=>e.width?e.width:"auto")),W7=({fill:e})=>(0,n.jsx)("svg",Object.assign({width:"94",height:"14",viewBox:"0 0 94 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsxs)("g",Object.assign({id:"Group"},{children:[(0,n.jsxs)("g",Object.assign({id:"Group_2"},{children:[(0,n.jsxs)("g",Object.assign({id:"Group_3"},{children:[(0,n.jsx)("path",{id:"Vector",d:"M63.5992 13.4696C64.3369 13.4696 64.9712 13.028 65.2533 12.3937C65.3216 12.2395 65.2077 12.066 65.0395 12.066H62.1623C61.9941 12.066 61.8785 12.2395 61.9486 12.3937C62.2307 13.028 62.8632 13.4696 63.6027 13.4696",fill:"#CA59D3"}),(0,n.jsx)("path",{id:"Vector_2",d:"M68.0147 10.3225C67.5468 10.3225 67.1666 9.94402 67.1666 9.47442V6.39577C67.1666 4.72766 66.0207 3.32588 64.4752 2.93513C64.4191 2.49533 64.0442 2.1554 63.5886 2.1554C63.133 2.1554 62.7545 2.49883 62.7002 2.94039C61.3124 3.30135 60.2523 4.47534 60.0614 5.92442C60.0578 5.94545 60.0561 5.96648 60.0526 5.9875C60.0491 6.01554 60.0456 6.04533 60.0438 6.07336C60.0421 6.1014 60.0386 6.13119 60.0368 6.15922C60.0368 6.18375 60.0333 6.20653 60.0316 6.23106C60.0298 6.28012 60.0281 6.32919 60.0281 6.37825V9.47092C60.0281 9.93701 59.6531 10.3155 59.187 10.319C58.9645 10.319 58.7822 10.4925 58.7822 10.715V10.7185C58.7822 10.9393 58.961 11.118 59.1817 11.118H68.0129C68.2337 11.118 68.4124 10.9393 68.4124 10.7185C68.4124 10.4995 68.2355 10.3207 68.0147 10.3207V10.3225Z",fill:"#CA59D3"}),(0,n.jsxs)("g",Object.assign({id:"Group_4"},{children:[(0,n.jsx)("path",{id:"Vector_3",d:"M66.1571 2.32904C67.1507 2.54105 67.9094 3.39614 68.0022 4.40892C68.0127 4.52107 68.1109 4.60517 68.2248 4.59466C68.2791 4.5894 68.3281 4.56312 68.3632 4.52107C68.3982 4.47901 68.414 4.42645 68.4087 4.37213C68.3544 3.78163 68.1161 3.23493 67.7201 2.79162C67.3276 2.35181 66.816 2.05394 66.2412 1.93128C66.2272 1.92778 66.2132 1.92603 66.1992 1.92603C66.1046 1.92603 66.0187 1.99261 65.9994 2.08723C65.9749 2.19762 66.0468 2.30626 66.1571 2.33079V2.32904Z",fill:"#CA59D3"}),(0,n.jsx)("path",{id:"Vector_4",d:"M66.3867 1.01312C67.9322 1.34429 69.1132 2.67598 69.2586 4.24947C69.2691 4.36161 69.3672 4.44572 69.4811 4.43521C69.5355 4.42995 69.5845 4.40367 69.6196 4.36161C69.6546 4.31956 69.6704 4.26699 69.6651 4.21267C69.5845 3.34182 69.2341 2.53755 68.6488 1.88397C68.0688 1.23565 67.3171 0.795843 66.4708 0.615365C66.4568 0.61186 66.4428 0.610107 66.4288 0.610107C66.3342 0.610107 66.2483 0.676692 66.229 0.771312C66.2045 0.881702 66.2746 0.99034 66.385 1.01487L66.3867 1.01312Z",fill:"#CA59D3"}),(0,n.jsx)("path",{id:"Vector_5",d:"M61.0426 2.32896C61.153 2.30443 61.223 2.19579 61.2003 2.0854C61.1792 1.98903 61.0951 1.92419 61.0005 1.92419C60.9865 1.92419 60.9725 1.92419 60.9585 1.92945C60.3837 2.05211 59.8738 2.34998 59.4796 2.78979C59.0836 3.2331 58.8453 3.7798 58.791 4.3703C58.7857 4.42461 58.8032 4.47718 58.8365 4.51923C58.8698 4.56129 58.9206 4.58757 58.9749 4.59283C59.0906 4.60334 59.187 4.51923 59.1975 4.40709C59.2903 3.39606 60.0508 2.54098 61.0426 2.32896Z",fill:"#CA59D3"}),(0,n.jsx)("path",{id:"Vector_6",d:"M60.813 1.01304C60.9234 0.988509 60.9935 0.87987 60.9707 0.76948C60.9497 0.673108 60.8656 0.608276 60.771 0.608276C60.7569 0.608276 60.7429 0.608276 60.7289 0.613533C59.8826 0.795764 59.1309 1.23382 58.5509 1.88214C57.9674 2.53572 57.617 3.34174 57.5346 4.21084C57.5294 4.26516 57.5469 4.31773 57.5802 4.35978C57.6152 4.40183 57.6643 4.42812 57.7186 4.43338C57.8325 4.44389 57.9306 4.35978 57.9411 4.24764C58.0866 2.67414 59.2676 1.34421 60.813 1.01304Z",fill:"#CA59D3"})]}))]})),(0,n.jsxs)("g",Object.assign({id:"Group_5"},{children:[(0,n.jsx)("path",{id:"Vector_7",d:"M92.0029 5.63185C92.0029 5.63185 91.9941 5.63185 91.9906 5.63185C91.4685 5.63185 90.9778 5.82109 90.6011 6.16803V3.18225C90.6011 3.15246 90.5766 3.12793 90.545 3.12793H89.4131C89.3833 3.12793 89.357 3.15246 89.357 3.18225V10.878C89.3553 10.9078 89.3798 10.9323 89.4096 10.9323H90.5415C90.5713 10.9323 90.5976 10.9078 90.5976 10.878V7.74328C90.5993 7.16855 91.0532 6.6972 91.6314 6.66917C92.0922 6.64639 92.5128 6.90572 92.6722 7.34202C92.7791 7.63639 92.7739 7.94654 92.7739 8.25493V8.88573C92.7739 9.4517 92.7721 10.0194 92.7721 10.5854C92.7721 10.6818 92.7721 10.7799 92.7721 10.8763C92.7721 10.906 92.7966 10.9306 92.8282 10.9306H93.9443C93.9741 10.9306 94.0004 10.906 94.0004 10.8763V7.61011C94.0022 6.52549 93.1068 5.63711 92.0046 5.63185H92.0029Z",fill:e}),(0,n.jsx)("path",{id:"Vector_8",d:"M83.1383 5.44617H82.0116C81.9818 5.44617 81.9555 5.4707 81.9555 5.50049V8.72457C81.9555 8.99617 81.8452 9.25199 81.6437 9.44298C81.4334 9.64274 81.146 9.74962 80.8499 9.7356C80.2892 9.70932 79.8494 9.25199 79.8494 8.69479V5.50049C79.8494 5.4707 79.8248 5.44617 79.7933 5.44617H78.6684C78.6386 5.44617 78.6123 5.4707 78.6123 5.50049V8.67901C78.6123 9.88454 79.6093 10.8938 80.8341 10.9289C80.8569 10.9289 80.8814 10.9289 80.9042 10.9289C81.5192 10.9289 82.094 10.6976 82.5285 10.2753C82.9561 9.86001 83.1926 9.30806 83.1926 8.72457V5.50049C83.1926 5.4707 83.1663 5.44792 83.1365 5.44792L83.1383 5.44617Z",fill:e}),(0,n.jsx)("path",{id:"Vector_9",d:"M86.4374 7.61369C85.7926 7.51031 85.5157 7.31932 85.5157 6.97413C85.5157 6.65348 85.8206 6.43795 86.2744 6.43795C86.6845 6.43795 87.0314 6.65523 87.1558 6.9899C87.1593 7.00217 87.1698 7.01093 87.1821 7.01619C87.1944 7.02144 87.2049 7.02144 87.2171 7.01619L88.1423 6.62544C88.1633 6.61668 88.1756 6.5904 88.1668 6.56937C87.8812 5.87198 87.1698 5.45496 86.2639 5.45496C84.9813 5.45496 84.3102 6.22418 84.3102 6.9864C84.3102 7.88529 84.9287 8.42672 86.1991 8.64225C86.8632 8.76841 87.1453 8.96816 87.1453 9.30634C87.1453 9.6708 86.8019 9.88983 86.2271 9.88983C85.7873 9.88983 85.3843 9.65153 85.2003 9.28356C85.1933 9.26779 85.1776 9.25903 85.16 9.25903C85.1548 9.25903 85.1478 9.25903 85.1425 9.26253L84.1665 9.67956C84.156 9.68307 84.1472 9.69183 84.142 9.70234C84.1367 9.71286 84.1385 9.72512 84.142 9.73563C84.3593 10.186 84.9147 10.9412 86.2131 10.9412C87.6972 10.9412 88.3631 10.1089 88.3631 9.28531C88.3631 8.38117 87.734 7.83623 86.4374 7.6172V7.61369Z",fill:e}),(0,n.jsx)("path",{id:"Vector_10",d:"M75.3497 3.13871H72.5304C72.5058 3.13871 72.4813 3.14923 72.4638 3.16675C72.4463 3.18427 72.4375 3.20705 72.4375 3.22983V10.8397C72.4375 10.8888 72.4796 10.9291 72.5304 10.9291H73.5782C73.629 10.9291 73.6711 10.8888 73.6711 10.8397L73.6781 7.86095C73.6781 7.83116 73.7044 7.80488 73.7341 7.80488H75.3497C76.6691 7.80488 77.7012 6.77983 77.7012 5.47092C77.7012 4.83662 77.4594 4.24787 77.0196 3.81157C76.5815 3.37702 75.9875 3.13696 75.3497 3.13696V3.13871ZM76.2153 6.22262C76.0068 6.46443 75.7071 6.60286 75.3707 6.61337H74.6435C74.3264 6.61512 74.053 6.81488 73.9619 7.10925L73.9269 7.22314C73.9216 7.24066 73.9059 7.25118 73.8866 7.25118H73.7131C73.6903 7.25118 73.6711 7.23366 73.6711 7.21088V4.45814C73.6711 4.38454 73.7324 4.32672 73.8077 4.32672H75.2866C75.8981 4.32672 76.4098 4.76653 76.4764 5.34827C76.5132 5.67418 76.4221 5.98607 76.2153 6.22262Z",fill:e})]}))]})),(0,n.jsxs)("g",Object.assign({id:"Group_6"},{children:[(0,n.jsx)("path",{id:"Vector_11",d:"M2.9004 4.58923C3.7695 4.58923 4.45813 5.08511 4.45813 5.97699C4.45813 6.86887 3.7695 7.37351 2.9004 7.37351H1.60551V9.31147H0.79248V4.58923H2.9004ZM1.60551 6.76374H2.7427C3.28764 6.76374 3.65386 6.49215 3.65386 5.984C3.65386 5.47586 3.28589 5.20426 2.7427 5.20426H1.60551V6.76549V6.76374Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_12",d:"M8.21295 4.51038C9.60947 4.51038 10.5206 5.43555 10.5206 6.94947C10.5206 8.46339 9.60947 9.38856 8.21295 9.38856C6.81643 9.38856 5.90527 8.46339 5.90527 6.94947C5.90527 5.43555 6.81643 4.51038 8.21295 4.51038ZM8.21295 8.76302C9.13462 8.76302 9.7111 8.08491 9.7111 6.94947C9.7111 5.81403 9.13462 5.13592 8.21295 5.13592C7.29128 5.13592 6.7148 5.81403 6.7148 6.94947C6.7148 8.08491 7.29128 8.76302 8.21295 8.76302Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_13",d:"M12.6374 4.58923L13.4575 8.29518H13.5223L14.5053 4.58923H15.2885L16.2715 8.29518H16.3364L17.1564 4.58923H17.9361V4.68736L16.848 9.31147H15.8668L14.9223 5.786H14.8575L13.9165 9.31147H12.9353L11.8472 4.68736V4.58923H12.6339H12.6374Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_14",d:"M22.9562 4.58923V5.20251H20.398V6.58677H22.6286V7.19654H20.398V8.69819H23.0211V9.31147H19.585V4.58923H22.9562Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_15",d:"M25.5498 7.39279V9.31147H24.7368V4.58923H26.9008C27.8032 4.58923 28.5006 5.00626 28.5006 5.88763C28.5006 6.54997 28.1239 6.91443 27.6122 7.03884V7.10367C28.1098 7.23509 28.271 7.52596 28.3306 8.05863L28.3832 8.55977C28.42 8.86816 28.4655 9.03812 28.5829 9.21159V9.30972H27.7541C27.6595 9.12573 27.6105 8.95226 27.5842 8.61409L27.5474 8.1883C27.5018 7.62759 27.2618 7.39104 26.5346 7.39104H25.5516L25.5498 7.39279ZM25.5498 6.78301H26.8114C27.3494 6.78301 27.7103 6.52369 27.7103 5.99276C27.7103 5.46184 27.3494 5.20251 26.8114 5.20251H25.5498V6.78301Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_16",d:"M33.6325 4.58923V5.20251H31.0743V6.58677H33.3048V7.19654H31.0743V8.69819H33.6973V9.31147H30.2612V4.58923H33.6325Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_17",d:"M37.1422 4.58915C38.558 4.58915 39.4499 5.50031 39.4499 6.9494C39.4499 8.39848 38.558 9.30964 37.1422 9.30964H35.4146V4.5874H37.1422V4.58915ZM36.2276 8.69811H37.13C38.0779 8.69811 38.6386 8.03227 38.6386 6.95115C38.6386 5.87003 38.0779 5.20419 37.13 5.20419H36.2276V8.69987V8.69811Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_18",d:"M46.0872 4.58915C46.9458 4.58915 47.5731 4.99567 47.5731 5.78242C47.5731 6.56916 47.0579 6.76892 46.7934 6.8355V6.90033C47.1123 6.96341 47.7185 7.21223 47.7185 8.01825C47.7185 8.82427 47.0667 9.30964 46.1643 9.30964H43.9478V4.5874H46.089L46.0872 4.58915ZM44.759 6.60947H45.933C46.4184 6.60947 46.7863 6.39219 46.7793 5.90157C46.7793 5.4127 46.4114 5.19367 45.933 5.19367H44.759V6.60947ZM44.759 8.70863H46.0189C46.5305 8.70863 46.9213 8.47909 46.9213 7.96393C46.9213 7.44878 46.5305 7.21223 46.0189 7.21223H44.759V8.70688V8.70863Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_19",d:"M49.7111 4.58923L50.9797 6.69365H51.0445L52.3132 4.58923H53.1717V4.68736L51.4143 7.49442V9.31147H50.6012V7.49442L48.8438 4.68736V4.58923H49.7093H49.7111Z",fill:"#657795"})]}))]}))})),J7=()=>{var e;const t=(0,i.useContext)(w7);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsx)(Y7,Object.assign({alignSelf:"end"},{children:(0,n.jsx)(W7,{fill:null===(e=t.textColor)||void 0===e?void 0:e.modalTitleText})}))}))},Y7=(0,o.Ay)(D7).withConfig({displayName:"PoweredByPush__Container",componentId:"sc-h2hlwu-0"})(["display:flex;width:93.208px;height:12.861px;font-family:inherit;align-items:center;"]),Z7=({size:e=42,color:t})=>{const{theme:r}=(0,i.useContext)(g5);return(0,n.jsx)(X7,Object.assign({width:`${e}px`},{children:(0,n.jsx)(I7,{color:null!=t?t:r.btnColorPrimary})}))},$7=(0,o.i7)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),X7=o.Ay.div.withConfig({displayName:"Spinner__SpinLoader",componentId:"sc-rmciqr-0"})(["display:flex;flex:initial;align-self:center;width:",";animation-name:",";animation-duration:2500ms;animation-iteration-count:infinite;animation-timing-function:linear;"],(e=>e.width),$7),eee=({msg:e,loaderColor:t,textColor:r})=>(0,n.jsxs)(nee,{children:[(0,n.jsx)(Z7,{color:t,size:"35px"}),(0,n.jsx)(iee,Object.assign({style:{color:r}},{children:e}))]}),tee=({closeToast:e})=>(0,n.jsx)(lee,Object.assign({onClick:e},{children:(0,n.jsx)(My,{color:"#657795",size:"100%"})})),ree=(e=3e3,t="top-right")=>{const r=(0,i.useRef)(null),a=(0,i.useContext)(w7),s=K9(c5.tablet);let c=!1;return{showLoaderToast:({loaderMessage:e})=>{var i,s,u;return c=!0,r.current=xy((0,n.jsx)(o.NP,Object.assign({theme:a},{children:(0,n.jsx)(eee,{msg:e,loaderColor:a.spinnerColor,textColor:a.textColor.modalTitleText})})),{position:t,autoClose:!1,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,closeButton:!1,style:{background:null===(i=a.backgroundColor)||void 0===i?void 0:i.modalBackground,border:null===(s=a.border)||void 0===s?void 0:s.modalInnerComponents,boxShadow:`8px 8px 8px ${null===(u=a.backgroundColor)||void 0===u?void 0:u.toastShadowBackground}`,borderRadius:"20px"}})},showMessageToast:({toastTitle:i,toastMessage:o,toastType:u,getToastIcon:l})=>{var d,f,h,p,g;const m=(0,n.jsxs)(oee,{children:[(0,n.jsx)(aee,{children:l?l(30):""}),(0,n.jsxs)(see,{children:[(0,n.jsx)(cee,Object.assign({style:{color:null===(d=a.textColor)||void 0===d?void 0:d.modalTitleText}},{children:i})),(0,n.jsx)(uee,Object.assign({style:{color:null===(f=a.textColor)||void 0===f?void 0:f.modalSubTitleText}},{children:o}))]})]}),y={position:t,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,type:xy.TYPE.DEFAULT,closeButton:tee,autoClose:e,style:{background:"SUCCESS"===u?null===(h=a.backgroundColor)||void 0===h?void 0:h.toastSuccessBackground:null===(p=a.backgroundColor)||void 0===p?void 0:p.toastErrorBackground,boxShadow:`10px 10px 10px ${null===(g=a.backgroundColor)||void 0===g?void 0:g.toastShadowBackground}`,borderRadius:"20px",margin:s?"20px":"0px"}};c||(r.current=xy(m,Object.assign({},y))),xy.update(r.current,Object.assign({render:m},y))}}},nee=o.Ay.div.withConfig({displayName:"NewToast__LoaderNotification",componentId:"sc-1mnojtp-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:center;margin:1% 3%;"]),iee=o.Ay.div.withConfig({displayName:"NewToast__LoaderMessage",componentId:"sc-1mnojtp-1"})(["margin-left:3%;font-size:1rem;font-weight:600;line-height:1.3rem;letter-spacing:0em;text-align:left;"]),oee=o.Ay.div.withConfig({displayName:"NewToast__Toast",componentId:"sc-1mnojtp-2"})(["display:flex;flex-direction:row;align-items:flex-start;margin:1.5% 1%;"]),aee=o.Ay.div.withConfig({displayName:"NewToast__ToastIcon",componentId:"sc-1mnojtp-3"})(["width:15%;margin-right:4%;"]),see=o.Ay.div.withConfig({displayName:"NewToast__ToastContent",componentId:"sc-1mnojtp-4"})(["display:flex;flex-direction:column;align-items:flex-start;"]),cee=o.Ay.div.withConfig({displayName:"NewToast__ToastTitle",componentId:"sc-1mnojtp-5"})(["font-weight:500;font-size:1.125rem;letter-spacing:-0.019em;line-height:1.4rem;letter-spacing:0em;text-align:left;margin-bottom:1%;"]),uee=o.Ay.div.withConfig({displayName:"NewToast__ToastMessage",componentId:"sc-1mnojtp-6"})(["font-weight:400;font-size:0.9375rem;line-height:1.3rem;text-align:left;"]),lee=o.Ay.button.withConfig({displayName:"NewToast__Button",componentId:"sc-1mnojtp-7"})(["cursor:pointer;background:none;margin:0;padding:0;width:1.3rem;height:1.3rem;border:none;"]),dee=e=>{const t=(0,i.useContext)(w7),{onClick:r,width:a,height:s,customStyle:c}=e;return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsx)(fee,Object.assign({onClick:r,width:a,height:s,theme:t,customStyle:c},{children:e.children}))}))},fee=o.Ay.button.withConfig({displayName:"Button__WidgetButton",componentId:"sc-160qbvf-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;gap:'2px';padding:",";background:",";color:",";border-radius:",";border:",";font-size:14px;font-weight:",";font-family:",";flex:none;order:0;flex-grow:0;transition:150ms ease-in-out;&:hover{cursor:pointer;}width:",";height:",";"],(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.padding)?e.customStyle.padding:"12px"}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.background)?e.customStyle.background:e.theme.backgroundColor.buttonBackground}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.color)?e.customStyle.color:e.theme.textColor.buttonText}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.borderRadius)?e.customStyle.borderRadius:e.theme.borderRadius.modalInnerComponents}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.border)?e.customStyle.border:e.theme.border.modal}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.fontWeight)?e.customStyle.fontWeight:"500"}),(e=>e.theme.fontFamily),(e=>e.width?e.width:"100%"),(e=>e.height?e.height:"100%")),hee=({autoconnect:e=!1,setAccount:t,setSigner:r,signer:o})=>{const{env:a}=m7(),{wallet:s,connecting:c,connect:u,disconnect:l,provider:d,account:f}=D5({env:a}),[h,p]=(0,i.useState)(!1),g=(0,i.useContext)(w7);(0,i.useEffect)((()=>{s&&!e&&l(s),s?pJ(void 0,void 0,void 0,(function*(){const e=null==d?void 0:d.getSigner(f),n=yield h8(e);t(f||n),r(e)})):s||(t(Y4),r(void 0)),m("zIndex","2000")}),[s]);const m=(e,t)=>{const r=document.getElementById("widget-modal-overlay");r&&(r.style[e]=t)};return o?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(pee,Object.assign({theme:g},{children:(0,n.jsx)("button",Object.assign({onClick:()=>s?l(s):(m("zIndex","unset"),p(!0),void u())},{children:c?"connecting":s?"disconnect":"Connect Wallet"}))}))},pee=o.Ay.div.withConfig({displayName:"ConnectButton__ConnectButtonDiv",componentId:"sc-kkzefp-0"})(["width:100%;button{background:",";color:",";text-align:center;font-size:1em;cursor:pointer;border-radius:10px;padding:10px 20px;outline:none;border:none;cursor:pointer;width:100%;font-weight:600;}button:hover{scale:1.05;transition:0.3s;}@media ","{font-size:12px;}body.modal-open{overflow-y:hidden;}body.svelte-baitaa{z-index:99999;}"],(e=>{var t;return`${null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.buttonBackground}!important`}),(e=>{var t;return`${null===(t=e.theme.textColor)||void 0===t?void 0:t.buttonText}!important`}),c5.mobileL),gee=e=>{var{disabled:t,val:r,min:a,max:s,step:c,defaultVal:u,onChange:l,onDragStart:d,onDragEnd:f,preview:h=!1}=e,p=hJ(e,["disabled","val","min","max","step","defaultVal","onChange","onDragStart","onDragEnd","preview"]);const g=(0,i.useRef)(null),m=(0,i.useRef)(null),y=(0,i.useRef)(null),b=(0,i.useRef)(null),v=(0,i.useRef)(null),w=(0,i.useContext)(w7),A=e=>{t||(d&&d(e),document.addEventListener("mousemove",C),document.addEventListener("mouseup",E),document.addEventListener("touchmove",C),document.addEventListener("touchend",E))},C=e=>{if(t)return;if(!b.current)return;const{left:r,width:n}=b.current.getBoundingClientRect(),{clientX:i}=e instanceof MouseEvent?e:e.touches[0];let o=(i-r)/n;const d=u-Math.floor((u-a)/c)*c,f=u+Math.floor((s-u)/c)*c;if(o<=0)o=d;else if(o>=1)o=f;else{const e=Math.floor((o*(s-a)+a-u)/c);o=u+e*c,of&&(o=f)}const h=(c.toString().split(".")[1]||"").length;l({x:Number(o.toFixed(h))})},E=e=>{t||(f&&f(e),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E))};return(0,i.useEffect)((()=>{var e;if(g.current&&m.current&&y.current){const t=Math.min(s,Math.max(a,r));g.current.style.left=(t-a)/(s-a)*98+"%",m.current.style.width=(t-a)/(s-a)*100+"%",y.current.style.width=(s-t)/(s-a)*100+"%",null===(e=v.current)||void 0===e||e.style.setProperty("left",(Number(t)-Number(a))/(Number(s)-Number(a))*90+"%")}}),[g,m,y,r,a,s]),(0,n.jsx)(o.NP,Object.assign({theme:w},{children:(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start"},{children:[h&&!Number.isNaN(Number(r))&&(0,n.jsx)(wee,Object.assign({theme:w,ref:v},{children:"< "+r})),(0,n.jsxs)(vee,Object.assign({ref:b},p,{children:[(0,n.jsx)(yee,{ref:m,theme:w}),(0,n.jsx)(mee,{ref:g,onTouchStart:A,onMouseDown:A,onTouchEnd:E,onMouseUp:E,theme:w}),(0,n.jsx)(bee,{ref:y,theme:w})]}))]}))}))},mee=o.Ay.div.withConfig({displayName:"InputSlider__Thumb",componentId:"sc-mzybdg-0"})(["width:16px;height:16px;background-color:",";border:",";border-radius:50%;user-select:none;cursor:pointer;z-index:1;position:absolute;"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.sliderThumbBackground}),(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.sliderThumb})),yee=o.Ay.div.withConfig({displayName:"InputSlider__Active",componentId:"sc-mzybdg-1"})(["width:100%;height:4px;background-color:",";border-top-left-radius:8px;border-bottom-left-radius:8px;"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.sliderActiveBackground})),bee=o.Ay.div.withConfig({displayName:"InputSlider__Inactive",componentId:"sc-mzybdg-2"})(["width:100%;height:4px;background-color:",";border-top-right-radius:8px;border-bottom-right-radius:8px;"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.sliderInActiveBackground})),vee=o.Ay.div.withConfig({displayName:"InputSlider__Container",componentId:"sc-mzybdg-3"})(["height:24px;display:flex;flex-direction:row;align-items:center;justify-content:center;position:relative;flex:1;width:100%;"]),wee=o.Ay.div.withConfig({displayName:"InputSlider__PreviewContainer",componentId:"sc-mzybdg-4"})(["display:flex;border-radius:4px;background-color:",";color:",";width:max-content;padding:8px 8px 10px 8px;justify-content:center;align-items:center;gap:10px;font-size:14px;font-weight:500;"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.modalBackground}),(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.modalTitleText})),Aee=e=>{const t=(0,i.useContext)(w7),{settings:r=[],setSettings:o}=e||{};return(0,n.jsx)(Eee,Object.assign({theme:t,flexDirection:"column",gap:"15px",width:"100%",maxHeight:"200px",justifyContent:"start",overflow:"hidden scroll"},{children:r&&(null==r?void 0:r.length)&&(null==r?void 0:r.map(((e,i)=>{var a,s,c,u,l,d,f;return(0,n.jsxs)(Cee,Object.assign({theme:t,flexDirection:"column",divider:2==e.type||1==e.type},{children:[(2==e.type||1==e.type)&&(0,n.jsx)(A7,{id:`toggle${e.type}${i}`,labelHeading:`${(null==e?void 0:e.description)||(1==e.type?"Boolean Setting":"Range Setting")} `,checked:(null===(a=null==e?void 0:e.userPreferance)||void 0===a?void 0:a.enabled)||!1,onToggle:()=>{(e=>{var t;const n=[...r];(null===(t=n[e])||void 0===t?void 0:t.userPreferance)&&(n[e].userPreferance.enabled=!n[e].userPreferance.enabled),o(n)})(i)}}),2==e.type&&(null===(s=null==e?void 0:e.userPreferance)||void 0===s?void 0:s.enabled)&&(0,n.jsx)(gee,{val:null===(c=null==e?void 0:e.userPreferance)||void 0===c?void 0:c.value,max:(null===(u=null==e?void 0:e.data)||void 0===u?void 0:u.upper)||0,min:(null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.lower)||0,step:(null===(d=null==e?void 0:e.data)||void 0===d?void 0:d.ticker)||1,preview:!0,defaultVal:null===(f=null==e?void 0:e.userPreferance)||void 0===f?void 0:f.value,onChange:({x:e})=>((e,t)=>{const n=[...r];n[e].userPreferance.value=t,o(n)})(i,e)})]}),i)})))}))},Cee=(0,o.Ay)(D7).withConfig({displayName:"SettingsComponents__SettingsSection",componentId:"sc-83r12-0"})(["border-bottom:",";padding-bottom:15px;"],(e=>{var t;return e.divider?null===(t=e.theme.border)||void 0===t?void 0:t.divider:"none"})),Eee=(0,o.Ay)(D7).withConfig({displayName:"SettingsComponents__ScrollSection",componentId:"sc-83r12-1"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar-button{height:40px;}&::-webkit-scrollbar{width:4px;}"],(e=>e.theme.scrollbarColor));function xee(e){return(0,zr.P)(e)}const See={eip155:({address:e})=>xee(e)};function Iee(e,t,r){if(function(e){const[t,r,n]=e.split(":");return!!t&&(!!r&&(!!n&&(0,See[t])({address:n})))}(t))return t;if(xee(t))return function(e,t){let r=1;return e!==T4.DEV&&e!==T4.STAGING||(r=11155111),`eip155:${r}:${t}`}(e,t);throw Error(`Invalid Address! ${r}`)}const kee=e=>1===e.type,_ee=({settings:e})=>{const t=[];return e&&e.length&&e.forEach((e=>{var r,n,i;return kee(e)?t.push({enabled:(null===(r=null==e?void 0:e.userPreferance)||void 0===r?void 0:r.enabled)||!1}):t.push({value:null===(n=null==e?void 0:e.userPreferance)||void 0===n?void 0:n.value,enabled:(null===(i=null==e?void 0:e.userPreferance)||void 0===i?void 0:i.enabled)||!1})})),t},Tee=({settings:e})=>{const t=[];return e&&e.length&&e.forEach((e=>{var r,n;return kee(e)?t.push(Object.assign(Object.assign({},e),{userPreferance:null!==(r=null==e?void 0:e.userPreferance)&&void 0!==r?r:{value:0,enabled:!1}})):t.push(Object.assign(Object.assign({},e),{userPreferance:null!==(n=null==e?void 0:e.userPreferance)&&void 0!==n?n:{value:e.default||0,enabled:!1}}))})),t},Mee=e=>{var t,r;const o=(0,i.useContext)(w7),{channelInfo:a}=e||{};return(0,n.jsxs)(D7,Object.assign({justifyContent:"start",gap:"7px",width:"100%",margin:" 0 0 10px 0"},{children:[(0,n.jsx)(R7,{src:a.icon,borderRadius:"8px",alt:"channel icon",width:"31.86px",height:"31.86px"}),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"13px",fontWeight:"700",color:null===(t=null==o?void 0:o.textColor)||void 0===t?void 0:t.modalTitleText},{children:a.name})),(0,n.jsxs)(Pee,Object.assign({fontSize:"11px",fontWeight:"400",width:"286px",color:null===(r=null==o?void 0:o.textColor)||void 0===r?void 0:r.modalSubTitleText},{children:[a.info," ",a.info," ",a.info," ",a.info," ",a.info]}))]}))]}))},Pee=(0,o.Ay)(B7).withConfig({displayName:"ChannelDetailsComponent__InfoSpan",componentId:"sc-10fagav-0"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),jee="Subscribe and receive notifications from your favorite protocol.",Dee=e=>{var t,r;const{channelInfo:o,handleNext:a,channelAddress:s,autoconnect:c=!1}=e||{},{subscribeToChannel:u,subscribeError:l,subscribeLoading:d,setSubscribeError:f}=qee(),h=(0,i.useContext)(w7),{signer:p,setAccount:g,setSigner:m,user:y,account:b}=m7(),v=ree(),[w,A]=(0,i.useState)((0,i.useMemo)((()=>o&&(null==o?void 0:o.channel_settings)?(({settings:e})=>{const t=[];return e&&e.length&&e.forEach((e=>kee(e)?t.push(Object.assign(Object.assign({},e),{userPreferance:{value:void 0,enabled:e.default}})):t.push(Object.assign(Object.assign({},e),{userPreferance:{value:e.default,enabled:e.enabled},data:{upper:e.upperLimit,lower:e.lowerLimit,ticker:e.ticker}})))),t})({settings:JSON.parse(null==o?void 0:o.channel_settings)}):[]),[o]));return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"10px",margin:"14px 10px 0px 10px"},{children:[(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start",gap:"5px",margin:"0 0 10px 0"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"21px",fontWeight:"700",color:null===(t=null==h?void 0:h.textColor)||void 0===t?void 0:t.modalHeaderText},{children:"Subscribe to get Notified"})),(0,n.jsx)(B7,Object.assign({fontSize:"12px",textAlign:"left",fontWeight:"400",width:"90%",color:null===(r=null==h?void 0:h.textColor)||void 0===r?void 0:r.modalSubTitleText},{children:jee}))]})),(0,n.jsx)(Mee,{channelInfo:o}),o&&(null==o?void 0:o.channel_settings)&&(0,n.jsx)(D7,Object.assign({margin:" 0",width:"100%"},{children:(0,n.jsx)(Aee,{settings:w,setSettings:A})})),y&&(null==y?void 0:y.readmode)?(0,n.jsxs)(n.Fragment,{children:[(null==y?void 0:y.readmode())&&(0,n.jsx)(hee,{autoconnect:c,setAccount:g,setSigner:m,signer:p}),!(null==y?void 0:y.readmode())&&(0,n.jsx)(dee,Object.assign({onClick:()=>pJ(void 0,void 0,void 0,(function*(){try{const e=yield u({channelAddress:s,channelSettings:_ee({settings:w})});e&&204===(null==e?void 0:e.status)&&(a(),v.showMessageToast({toastTitle:"Notifications Enabled",toastMessage:`You have successfully enabled notifications from ${null==o?void 0:o.name}`,toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"green"})}))}catch($R){console.debug($R),f(y7.NOTIFICATION_WIDGET_SUBSCRIBE_ERROR)}l&&v.showMessageToast({toastTitle:"Error while Enabling Notifications",toastMessage:"We encountered an error while enabling notifications. Please try again.",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})}))},{children:d?(0,n.jsx)(k7,{color:"#fff",size:"24"}):"Subscribe"}))]}):null,(0,n.jsx)(J7,{})]}))};var Oee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABLAAAASwCAYAAADrIbPPAAAKq2lDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU9kWhs+96SGhJYQiJfQmSCeAlBBaAKVXUQlJgFBCDAQROzI4AooiIoINdEBEwVEpMhZEFAuDgr0OyKCgjIMFUVGZCyzCzHvrvbfeXmuv82Vnn//sc9Y9d+0LAFmeIxKlwPIApAozxMHe7vTIqGg6bghAAAOIwBgocbjpImZgoD9AbHb8p328h2QjdttsSuvf//+vpsDjp3MBgAIRjuOlc1MRPo34K65InAEA6iAS112ZIZriDoSpYqRAhB9MccIMj0xx3DSjwXROaDALYSoAeBKHI04AgERH4vRMbgKiQ3JD2ELIEwgRFiHskpqaxkP4BMJGSA4SI03pM+L+ppPwD804qSaHkyDlmb1MG95DkC5K4az6P4/jf1tqimR2DQPESYlin2BkVETO7EFymp+UhXGLA2ZZwJvOn+ZEiU/YLHPTWdGzzON4+Ennpiz2n+V4gRdbqpPBDp1lfrpnyCyL04Kla8WLWcxZ5ojn1pUkh0njiXy2VD87MTRiljMF4YtnOT05xG8uhyWNiyXB0vr5Qm/3uXW9pHtPTf/bfgVs6dyMxFAf6d45c/Xzhcw5zfRIaW08vofnXE6YNF+U4S5dS5QSKM3np3hL4+mZIdK5GcgDOTc3UHqGSRzfwFkGLJAGUhAXAzrwR355AJDBz8qY2ggrTbRKLEhIzKAzkRvGp7OFXPP5dCsLKxsApu7rzOPwnjZ9DyHa9blYzlYAnG0mJyfPzsX85QA4jdRAHJiLGTkCIJsFwNVtXIk4cyY2fZem3gJygApUgSbQBUbADFgBO+AE3IAn8AUBIBREgWWACxJBKlL5SrAGbAR5oABsB7tAOTgADoEj4Dg4CZrBWXARXAE3wC1wFzwGfWAQvAaj4COYgCAIB5EhCqQKaUH6kClkBTEgF8gT8oeCoSgoFkqAhJAEWgNtggqgYqgcqoRqoZ+hM9BF6BrUAz2E+qFh6B30BUbBJJgKa8AG8AKYATNhPzgUXgonwCvgbDgX3gaXwVXwMbgJvgjfgO/CffBreAwFUDIoGkobZYZioFioAFQ0Kh4lRq1D5aNKUVWoelQrqhN1G9WHGkF9RmPRFDQdbYZ2Qvugw9Bc9Ar0OnQhuhx9BN2E7kDfRvejR9HfMWSMOsYU44hhYyIxCZiVmDxMKaYa04i5jLmLGcR8xGKxNKwh1h7rg43CJmFXYwux+7AN2DZsD3YAO4bD4VRxpjhnXACOg8vA5eH24I7hLuB6cYO4T3gZvBbeCu+Fj8YL8Tn4UvxR/Hl8L/4lfoIgT9AnOBICCDzCKkIR4TChlXCTMEiYICoQDYnOxFBiEnEjsYxYT7xMfEJ8LyMjoyPjIBMkI5DZIFMmc0Lmqky/zGeSIsmExCLFkCSkbaQaUhvpIek9mUw2ILuRo8kZ5G3kWvIl8jPyJ1mKrLksW5Ynu162QrZJtlf2jRxBTl+OKbdMLluuVO6U3E25EXmCvIE8S54jv06+Qv6M/H35MQWKgqVCgEKqQqHCUYVrCkOKOEUDRU9FnmKu4iHFS4oDFBRFl8KicCmbKIcplymDVCzVkMqmJlELqMep3dRRJUUlG6VwpSylCqVzSn00FM2Axqal0IpoJ2n3aF+UNZSZynzlLcr1yr3K4yrzVNxU+Cr5Kg0qd1W+qNJVPVWTVXeoNqs+VUOrmagFqa1U2692WW1kHnWe0zzuvPx5J+c9UofVTdSD1VerH1LvUh/T0NTw1hBp7NG4pDGiSdN000zSLNE8rzmsRdFy0RJolWhd0HpFV6Iz6Sn0MnoHfVRbXdtHW6Jdqd2tPaFjqBOmk6PToPNUl6jL0I3XLdFt1x3V09JbpLdGr07vkT5Bn6GfqL9bv1N/3MDQIMJgs0GzwZChiiHbMNuwzvCJEdnI1WiFUZXRHWOsMcM42Xif8S0T2MTWJNGkwuSmKWxqZyow3WfaMx8z32G+cH7V/PtmJDOmWaZZnVm/Oc3c3zzHvNn8zQK9BdELdizoXPDdwtYixeKwxWNLRUtfyxzLVst3ViZWXKsKqzvWZGsv6/XWLdZvbUxt+Db7bR7YUmwX2W62bbf9ZmdvJ7artxu217OPtd9rf59BZQQyChlXHTAO7g7rHc46fHa0c8xwPOn4p5OZU7LTUaehhYYL+QsPLxxw1nHmOFc697nQXWJdDrr0uWq7clyrXJ+76brx3KrdXjKNmUnMY8w37hbuYvdG93GWI2stq80D5eHtke/R7anoGeZZ7vnMS8crwavOa9Tb1nu1d5sPxsfPZ4fPfbYGm8uuZY/62vuu9e3wI/mF+JX7Pfc38Rf7ty6CF/ku2rnoyWL9xcLFzQEggB2wM+BpoGHgisBfgrBBgUEVQS+CLYPXBHeGUEKWhxwN+RjqHloU+jjMKEwS1h4uFx4TXhs+HuERURzRF7kgcm3kjSi1KEFUSzQuOjy6OnpsieeSXUsGY2xj8mLuLTVcmrX02jK1ZSnLzi2XW85ZfioWExsRezT2KyeAU8UZi2PH7Y0b5bK4u7mveW68Et4w35lfzH8Z7xxfHD+U4JywM2E40TWxNHFEwBKUC94m+SQdSBpPDkiuSZ5MiUhpSMWnxqaeESoKk4UdaZppWWk9IlNRnqhvheOKXStGxX7i6nQofWl6SwYVaYy6JEaSHyT9mS6ZFZmfVoavPJWlkCXM6lplsmrLqpfZXtk/rUav5q5uX6O9ZuOa/rXMtZXroHVx69rX667PXT+4wXvDkY3Ejckbf82xyCnO+bApYlNrrkbuhtyBH7x/qMuTzRPn3d/stPnAj+gfBT92b7HesmfL93xe/vUCi4LSgq+F3MLrWy23lm2d3Ba/rbvIrmj/dux24fZ7O1x3HClWKM4uHti5aGdTCb0kv+TDruW7rpXalB7YTdwt2d1X5l/Wskdvz/Y9X8sTy+9WuFc07FXfu2Xv+D7evt79bvvrD2gcKDjw5aDg4INK78qmKoOq0kPYQ5mHXhwOP9z5E+On2mq16oLqbzXCmr4jwUc6au1ra4+qHy2qg+skdcPHYo7dOu5xvKXerL6ygdZQcAKckJx49XPsz/dO+p1sP8U4VX9a//TeRkpjfhPUtKpptDmxua8lqqXnjO+Z9lan1sZfzH+pOat9tuKc0rmi88TzuecnL2RfGGsTtY1cTLg40L68/fGlyEt3OoI6ui/7Xb56xevKpU5m54WrzlfPXnO8duY643rzDbsbTV22XY2/2v7a2G3X3XTT/mbLLYdbrT0Le873uvZevO1x+8od9p0bdxff7bkXdu/B/Zj7fQ94D4Yepjx8+yjz0cTjDU8wT/Kfyj8tfab+rOo3498a+uz6zvV79Hc9D3n+eIA78Pr39N+/Dua+IL8ofan1snbIaujssNfwrVdLXg2+Fr2eGMn7Q+GPvW+M3pz+0+3PrtHI0cG34reT7wrfq76v+WDzoX0scOzZx9SPE+P5n1Q/HfnM+Nz5JeLLy4mVX3Ffy74Zf2v97vf9yWTq5KSII+ZMtwIoxOH4eADe1QBAjgKAcgvpH5bM9NPTBs18A0wT+E8803NPmx0A9cgw1Rax2gA4gbgB4uQNAEy1RKFuALa2lvps7zvdp08ZFvliOWgzRb20zFlNqc308H+r+19HMKU6Pf0f419GOwXHff9GHQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAEsKADAAQAAAABAAAEsAAAAABjrKBcAABAAElEQVR4AezdeZAc1Z3o+19mVbfUkkCA9tYKSMIzzHhj7HcNCBuMWXzt61V4wAbssQf/5RvjmUFibsSL6PfiXRstDt8b817cO/LYxsggQAKzmUVsQkJmWIQtQKB9bbXUrV1q9VqZ+X6npZa7q6u6q2vJyjz5zQiFuqoyzzm/z6ktT53fSRE2BBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAoHwCT/xg4qRHbpv86fKVSEkIIIAAAggggAACCCCAAAL5BB6Zf/mYB26Zck2DiJtvH+5HoJoCTjUrp24Ecgk8fMvE77zX4tzf5QXOzAuck5+blfrZqJG1yy5esvtgrv25DwEEEEAAAQQQQAABBBBAoDiBxn+e+pktR7171u/1v9TaKe6EMc6xmWOaJ9+yUrqKK5GjEKiMAANYlXGl1BIEfv7FSbsOnApm9RZx3giRG+ekvfrznOckkN+0d9Q9Oedft3f2Ps7/CCCAAAIIIIAAAggggAAChQs0Lpg6zRO5PQjkzg37/cve2ueJ3+fwyy50F3z/yYNL+tzFnwhUXYABrKp3AQ3oK9DwuQlj2n05GgROTd/7XX2mfma6K5+cmhL985gOZD2k+/xm+tLGN/rux98IIIAAAggggAACCCCAAAIDBfb9eFqd1MrXApE7JQiub+sO3NXbPGk8ofdkbTUpefS/r2n5Ztbd3ESgqgIMYFWVn8qzBRbOm/S3gQQrsu/vvT3zAldumJ2Suj8Pb30YOM79Orl1+fSfN+7v3Y//EUAAAQQQQAABBBBAAIGkC+jQlLP37vordRbAdx1x5qvHWGOyTwetVm/LSHt3biEdKDhZlxo1qWHN7o7ce3AvAuELMIAVvjk1DiKw4OqJj+qb69cH2UVG1zpy0xxXpp7fb21BM+P1dX1/vj/tdz8weWnz6cHK4DEEEEAAAQQQQAABBBBAwFYBnW011a+R7zgSfF9jnNMbp68jWm82eqJpgzoJq/fe3P/rgNdXF61rfiL3o9yLQPgCDGCFb06NeQRM+mCb57Tow3V5djl3txm6+pSmFH5qWmrAJTJ0RtZJJwiecPzg/vqlTS/pk3yIt+ZzxfIHAggggAACCCCAAAIIIBBLgV0Ns0a6p7u/rMuv3KEnQDdrEKm+gbR26ayrrZ40nSr49OiBxetavtO3DP5GoJoCDGBVU5+6+wncffWkWx0neLDfnUPcmDpWZ2NpSqGZlZVn26u/OqzIuOllM+/duzPPPtyNAAIIIIAAAggggAACCMRSYM89U65wffcuTUm5Vc+KzssVRP6UQTOYlfdc6lR3pnbSz19vbM9VJvchELZA3mdq2A2hPgQWXjPxMZ3G+rXhSpj1sG64NCUzL+yXUphdjEkxfEX//SbtZx4jxTCbh9sIIIAAAggggAACCCAQF4EzVxF0vq0/1v9A2zw7X7tNyuDb+z15q3HolMFcZejxX1/6Wsvvcj3GfQiELcAAVtji1JdT4J9vmDTabQ9M+uConDsMcad5In90SkrmzXTEdYZ8WrfrjwxPO16wjBTDIWB5GAEEEEAAAQQQQAABBCIh0NKgV2xvq/2GE8h39Xzms9qoQU98TnWKPK8LtR8sPGUwV5wrNI3wtlwPcB8CYQsM+oQPuzHUl1yBoa4+WKjMpDGaUjg3LWNHFHqE7NNfLR70Xfffp9/buL3go9gRAQQQQAABBBBAAAEEEKiwQNAg7t72+ivdwLl9sBTB7GbsPBrISzs86cyYFMGStlZNI5xIGmFJhhxcJgEGsMoESTGlCRRy9cFCa6hNOXL9pa7MHjdoSmGO4pwNeueyEdKxYsLiw6dy7MBdCCCAAAIIIIAAAggggEDFBfb/Y/30TNq9TX9s/3ut7NJCK/R0vGr9Hl/eO+CV70pWjnxj8dqWxwptA/shUCkBBrAqJUu5BQs0XFE/qm1UxqQPji74oCF2NE/snpTCGa64wx3HEunQybhP6YfF8vqdTc84K8UbojoeRgABBBBAAAEEEEAAAQRKEtj2o4vOrx1Z91XHldt19OnzWtiwztePtwfy3DZPDp8uedZVVhzBQ4vXHbo1605uIhC6wLBeEKG3jgoTIXD3NZO+5QTBQ6UEa96icz2ZJ2pK4c1zUjJ2ZNaj+Q7IboQj+7Vtv/UD95fTlzRuy36Y2wgggAACCCCAAAIIIIBAsQJ9UwT1FMWsNTWmmLK2H/Xlle2+dJopWOXf2vw6Z+LS1c2ny180JSJQuEDWWX3hB7InAuUSWDhv4ip9m/1GucrLLmdESuTaS9Iyd3ypT3dng14lcbmTDn477af7j2TXw20EEEAAAQQQQAABBBBAoBCBpoX1M7oD91Y9Q/mhSHBxIcfk2sfThbHW7/XlXU0ZrOwWzNdZWKsqWwelIzC4QKln9IOXzqMIDCFQifTBfFV+ZIIr112ckrQOaJW4/TnFsK7pWadBMiWWx+EIIIAAAggggAACCCBguUCpKYLZPD0pg1s1ZbCtIrOu+lcXOI8sfq35W/3v5BYC4QowgBWuN7VlCZQjfTCryJ6b5i0815N7XJ3ITZelZVxdrkf7lJSvgD67nP2zSdfKWhU4zq+mLdq/ceDD3IMAAggggAACCCCAAAJJFchKEfy2OpRl3d/NLb68usuTbp2BFdJGGmFI0FSTX2CIs/j8B/IIAuUQqHT6YK421ugMLDMT6zKdkVXe7UyKYcr3H6j/WdPh8pZNaQgggAACCCCAAAIIIBAXgf0L6i/LiEkRDO7UNs8qV7u7NVNwzU5PthwOb+Sqt+1BENyy5LVDK3tv8z8CYQswgBW2OPWdEwgzffBcpX3+MCmF116Skppyj2OJdGo1L+iVQ+4/eGLy43+zbEN3n2r5EwEEEEAAAQQQQAABBCwU2LHwkrFpv/MrxV5FcCiSo5oqaK4yaP6vxuY4zspFa5tvqUbd1ImAEWAAi+dB1QQWXjPhliBwHq5aA7TiCzWV8Oa5KRk/qmIvhQP6q8tKceW+qfc2/bGasVI3AggggAACCCCAAAIIlFegJ0Wwtf4613Xu0GElc2GqUeWt4UxpJmVwzW5PMpVeq33wxpNGOLgPj1ZYoGJn7RVuN8VbILBg3kQz/fSb1Q4lpTOwrpqZko9PLv9UrL6x6TpZH5hZWTV+968nL21u6fsYfyOAAAIIIIAAAggggEB8BHb9S/1HXM/9W1eC7+rA1cxKtbxLB6xe2ZmRbYerM+vK1Np30MBxgm8tWnvokUrFS7kIDCbQ97k42H48hkBZBaqdPpgrmNkXufL52a6MSFX8ZdGl9a8mxTBXL3AfAggggAACCCCAAALRFNj1D7MucGszt2iGxR3awqsq3cqWVl+e3+bLiY7qDF7liW/V4nUt8/M8xt0IVFSg4mfqFW09hcdW4O6rJ8zXHOpzI/fZI/vVCuz8EXqVwrlpmTwmtJfGUY11lev6y+rvPbChWnFTLwIIIIAAAggggAACCAwUCOZLau/M+mvPpgia7BG9rnllN3Nu9O5BX9bv8cQPf632oYJrG5UKJjWsOdQ61I48jkC5BUI7Sy93wykv3gILr5n0iF7FIpIj92YC1lWzUvIxTSkM8wXSm2JYm+66b9JPWprj3cO0HgEEEEAAAQQQQACB+Ars+afJf+mmXLOu1Z2aRDc5rEg6MiIvbs/I7mNmGCuamyPOrYvWNT8UzdbRKpsFwjw/t9mR2IYhEMX0wVzNv+QiR66/NC0j07kereh9no6cvSK+LDsx+oInLm/YZFIO2RBAAAEEEEAAAQQQQKCCAnvumXGhTnmaH1aKYHYoza2BPL81IyfNNc2jvAXy2OLXWsyC9WwIhCrAAFao3FRmBKKaPqhrUvVfoVBvnqcphTfOSUv9eVV7qRzXZjziOsHy+kVNr+nfbAgggAACCCCAAAIIIFAmgXMpginnriCQr2ixtWUquuBizGlIT8rgbl98bUQMto72rsykf33j6MkYtJUmWiRQtbNyiwwJZZgCUU4fzBWKq6+ST01z5dNTU+JU9xXzYSDOIynH/5UOZu3N1VbuQwABBBBAAAEEEEAAgaEF9iyccbkbZG7X79ff1b0nDX1EZfZo7zYpg57sOR69xa4GizgInNuWvNa8YrB9eAyBcgtU93S83NFQXuQF4pI+mAtyxlhHbpiTklE1VX/Z+Jpi+LKmGC53Rwer6hua2nK1l/sQQAABBBBAAAEEEEDgzwL7fjztIr9Gvqkpgj/Uez/550eq81fjyUBe2ObJ6a5YzLrqh6Q/7P9u0dqWr/e7kxsIVFig6mfiFY6P4iMmsGDeBL1yh7MyYs0quDmjakQHsdJiBrMisp3Qdjzp+MH99UubXtJWxe/TLyKQNAMBBBBAAAEEEEDAPoFNDZfXjmk/dqNenul2zc77qkao3+iru5m5Vm83evL2Pk0ZrG5TSqmdNMJS9Di2KIHInIUX1XoOip3AgqsnPSxOcEvsGt6nwa7+/anprqYVpsT8HaFti06BfijtZu6bcu/B3RFqF01BAAEEEEAAAQQQQCBUgd4UQU1d+J6e9E4csnLzM3AIZ8dtenmmF/Qqg/tOxP93Z8dxvr1obfODQ9qyAwJlEgjhJVqmllJM7AXOpg82ayBjYh+MBjDtfEcXeE/J6NrIvYzMDzmv6yfw/Wm/+4HJS5tP2+BNDAgggAACCCCAAAIIDCaw6+5Zk13JfEsvgHSnDg99YrB9q/GYGbQyKYNt3dmDVyGNnpU/6McXr2v5WvmLpUQEcgtE7sw7dzO51waBu+dN/IY+4VbZEEtvDHUmpXB2SmZeELG5WGcbGDjOSScIniDFsLfH+B8BBBBAAAEEEEDAJoFtP5o9onZU2w1RShHM9vV1fOrt/Z681ehLPC4ymB1B3tudzojuSYtePGaWNWFDoOICDGBVnJgKegV0/auHdFbQt3pv2/K/eRF9dEpK5s10xK3yZQqHMN2rC1auyLjpZTPv3btziH15GAEEEEAAAQQQQACByAr0pgjqEhp/p42cMGRDqzTJ6ZQu0L56qycHTmXPuhqyxbHYQc+Fbl+0ruW3sWgsjYy9AANYse/CeATw489Mq6tJd7Voa61IH8ylPnmMIzfNTcv5I3I9Gqn7zqUY1o7qfHBiw6HWSLWOxiCAAAIIIIAAAgggkENg93+bOcXp9m5xnOB7+vDHcuwSqbt2HQ3kpR0Z6chEqlnlbsyTmkb4lXIXSnkI5BJgACuXCveVXcDG9MFcSCPTIl+YnZaLL4zNS6tdF6t82vGCZVzFMFePch8CCCCAAAIIIIBANQWyUgTNekv6jTvam6eTrdbv8eW9A14SLhFOGmG0n45WtS42Z9lWqScwGFvTB3N1pXlR9aQUznDFjebSWLmabe7bpymGD3pB6hczluzbkW8n7kcAAQQQQAABBBBAoNICe+6ZcoXrO3doiuBtWtf4StdXrvJPdYo8vy0jBy1NGczpFMgdi19rWZ7zMe5EoIwCDGCVEZOicgs0fG7WyDavzaQPnpd7j3jfmy+dfuIYV26e48rYkXF8mTkbtFeWjZCOFRMWHz4V7x6i9QgggAACCCCAAAJxENi7YHp9EATzNUXQrGv10Ti0uW8bdxz15eXtvnSaKVgJ2gIneGrJ2kP/JUEhE2qVBOJ4Zl0lKqotVmDBNRO/rnNnHy32+DgfNyIlcu2laZk7LrYvtQ5NMXxKZ2Ytr9/Z9IyzUrw49wdtRwABBBBAAAEEEIiWwK6GWSPd091fdh3R2VZyk7Yu8imC2YKerjC7fq8v72rKYEK3LjfonHzvayeOJTR+wg5JILZn1SH5UE0ZBDR9cIVeffBvy1BUbIv4yARXrrs4JWkd0Irclm8KWXZDHdnvBMFv/cD95fQljduyH+Y2AggggAACCCCAAAKFCvRJEfy2HjOu0OOitt/x9kCe06sMHm5L1qyr7H4IArlzyWst92ffz20EyinAAFY5NSlrgIBJH2z32pr17fz8AQ9aeke+8aCLRjnyxTkpMf/Hf3M26IfUcicd/HbaT/cfiX88RIAAAggggAACCCBQaYF9P5421a+R7+js/u9rXXMKqS/fd+tCjq30PptbfHl1lyfd5hrfid+CpxevO/TlxDMAUFEBG86kKwpE4aUJ/PPVE7+m04EfK60Ue46uNSmFl6TksvHxWt19kB74c4phXdOzToPYfZHgQSB4CAEEEEAAAQQQQGCgQFaK4M26RxRzEgY2fJB7MjpgtW63J5uaGbnqw9Tdnamd/PPXG4/2uY8/ESirAANYZeWksGyBBfMmPqj33Zp9f9Jvm5RCM5BVE4dxrMJ/9mrSX9NW+b6mGC5tfDfpfUz8CCCAAAIIIIBAkgXOpAi6d+kQz6160nmeLRZH2/Uqg1syckRTB9n6CwQSfG/JukP39b+XWwiUT4ABrPJZUlKWQBLTB7MIBr15YZ2mFM5NyTgrUgqzQz2TYpjy/Qfqf9Z0OPtRbiOAAAIIIIAAAgjYJ9C4YOo0T5xv64+aP9DoZtsWoUkZXKMzrzKJXat9qB51nlm8rvk/D7UXjyNQrAADWMXKcdyQAjr76qu60++G3DHBO6R0BtZVM1Py8clxmIpVVEd16lEv6FUo7z94YvLjf7NsQ3dRpXAQAggggAACCCCAQCQFdF2rOj8dfMlx5S79zvd5baR155hdOmC1ZmdGth5m1tWAJ2H/bA3SCAcAcUc5BWJ3idJyBk9ZlRXQRb7nO9Z9fJXXzFxyd60u/Nh0MpDrL3WlNmUd2AgV+5J+jfnS5AsOHti/oH6luHLf1Hub/lheSUpDAAEEEEAAAQQQCEsgaBB3b3v9lW7g3K5pY7fpN9gxOnhl5XaoVa8yuM2TEx2WBlhqr/U/fampSXV+RYv8danFcjwCuQT6P91y7cF9CBQhQPrg8NEu0JTCm/UqhRNG2/+yDBznAzMrq8bv/vXkpc0tw9fiCAQQQAABBBBAAIGwBfb/Y/30TNrVAavg77XuS8OuP8z6zHDVuwd8Wb/XE5+12gund+TZxWtbvlj4AeyJQOEC9p8pF27BnmUUIH2wOEwzAeuqWVanFGbDdOkdq0kxzGbhNgIIIIAAAgggEA2BbT+66PzakXVf1RTB221NEcyW7vICeXmHL9uPMHKVbVPA7e5Ubc2Un760/0gB+7ILAsMSIIVwWFzsXKgA6YOFSvXfTz8re1IK95/wNaUwJSPS1o8x16pAb4rhUV34c5Xr+svq7z2wob8MtxBAAAEEEEAAAQTCEuifIii3ab3WpghmmzZryuDzWzNy0qzkylaMQE2ms8ukEf6qmIM5BoHBBKw/Ox4seB6rjMCPbp49YlTryRYdizm/MjUko9TzdPWom+akZcp5yXuZ9qYY1qa77pv0k5bmZPQ4USKAAAIIIIAAAtUVaFpYP6M7cG/Vb58/FAkurm5rwq29J2XwoKYM7vbF11/j2UoSeG7xupabSyqBgxHIIZC8M+McCNxVXoGF8yZ9RRdzfLy8pdpemvmQHPhydPWuT01z5dNTU5LQBfH1Sszyiviy7MToC564vGGTSTlkQwABBBBAAAEEECiTwI6Fl4xN+51fSVKKYDZdu14n+8Udnuw5Rspgtk2RtzMpcet/uu7goSKP5zAEcgqQQpiThTtLEdDBq/mlHJ/MYwcOXhkHX8e13tjnywG9SuENs9MyyiTcJWtL6VoL1+sg1vVj244f0xTDla4TLK9f1PRashiIFgEEEEAAAQQQKJ9AvxTBoPPb+l1rtH7nSuS2/0Qgq7d7croroQCV6fV0RgKTRvjvlSmeUpMqkPusOakaxF2ygEkfrGs9aVK+xpZcGAX0ExhT68iNc1MyNYEphf0gztz4MBDnN5kg/ZuLl+w+mONx7kIAAQQQQAABBBDIEti/oP6yjJgUweBOfWhW1sOJummyBP/Y5Ml/7NWUwURFHk6wOtCwetG6lhvDqY1akiLAAFZSejqkOBdcM+m/SBA8EVJ1iavG1Yg/NT3RKYXZfe7rL4Yv67eO5e7oYFV9Q1Nb9g7cRgABBBBAAAEEkixAiuDA3m8zKYPbMrJXZ1+xVUyANMKK0Sa3YAawktv3FYn87nkTl+uT6jsVKZxCzwlMO9/RBd5TmlLIS/gcishx/fspxw/ur1/a9JLK8I2kDw5/IoAAAggggEByBHpSBFvrr3Nd5w79QvQNjXxUcqIfPNJGkzK4zZO2br4qDi5V+qOOOHctWtf8i9JLogQEzghw9sszoWwCpA+WjbKggkbViK6LlZIZF5h5WWz9BALZrFcyfDjtZu6bcu/B3f0e4wYCCCCAAAIIIGCpwO4FU/7CkdS3XAm+q8MzMy0Ns6iwzNqyb+/35K1GXxNGiiqCg4YrEMgLi19ruWG4h7E/AvkEGMDKJ8P9wxYgfXDYZCUfYF7AH52SknkzHXETepnCIRDNkgav6xUe70/73Q9MXtp8eoj9eRgBBBBAAAEEEIiVwK5/mHWBW5u5Rde1ukMbflWsGh9SY0/qAu0v6Kwrc2EktlAFPN9z6pf+obkl1FqpzFoBrkJobdeGH1gQBPMZEQ3X3XwEbzzgyaHTrqYUumIWemfrJ2Cmp+kXueCqjJterFcxfJIUw34+3EAAAQQQQACBGAroNb9Te2fWX3smRbD7mxpCXQzDCKXJu44F8tL2jHRkQqmOSvoLpFLp4Gt617/1v5tbCBQnwNlucW4clSVA+mAWSBVu1ulw9Bc0pXDWhaQUFsC/V3+lXKGDWstm3rt3ZwH7swsCCCCAAAIIIFB1gT3/NPkv3ZRr1rW6U2eYT656gyLcAJMy+B/7fPmjpg2aH33Zqibw0uJ1LddXrXYqtkqAASyrurN6wSy8etKXAyd4snotoGYjYF7QPSmFM1xxGccq5ElxLsWwdlTngxMbDrUWchD7IIAAAggggAACYQnsuWfGheL7mulAimCh5qc6RZ7XqwwePMXQVaFmFdyPNMIK4iataFIIk9bjFYpXB6/mV6hoih2GgPmINimFB0758kW9SuH5IxmjHoLvXIphV1vt/2hcOPVpxwuWcRXDIdR4GAEEEEAAAQQqKnAuRTDl3BX43le0stqKVmhR4TuO+vLyDl86MwxeRaRbU24q+Lq25X9HpD00I8YCnN3GuPOi0vSGyy+vbbvo8EFdZ+jCqLSJdoiMSIlcd2lK5oxjKlYRz4d9+ivng16Q+sWMJft2FHE8hyCAAAIIIIAAAsMW2LNwxuVukLk9EOe7evCkYReQ4AM8nVe/fq8v7+qPuWzREtChxJeXrGv5fLRaRWviKMAAVhx7LWJtvvvqSV9ynOCpiDWL5pwV+MgEV667JCVpxrGKfE44G/TAZSOkY8WExYdPFVkIhyGAAAIIIIAAAjkF9v142kV+jXxTfzz7oe7wyZw7ceegAsfaA00Z9OTwaWZdDQpVvQf9tPjTfrLu8IHqNYGabRAghdCGXqx2DK5Ocuazotq90FO/6YbsUenNh3w52hbITXNTcgEphUX0U3CFHvRvnTLif2qK4VP65XJ5/c6mZ5yVws97RWhyCAIIIIAAAgiIbGq4vHZM+7EbXXFu1yt5f1W/v9XgUpzA5hZfXt3tSTffzIoDDOco1xP3q1rV/wqnOmqxVSD7XNfWOImrQgKkD1YItgLF1pqUQp2JNXc8U7Hy8uYaAcy9c6MOZD3gB+4vpy9p3JZ7F+5FAAEEEEAAAQT6C/SmCPrifE9PxCb2fzTHrcK/m+Q42O67Mpoy+AdSBuPTyUHwyuLXDl0XnwbT0igKMIAVxV6JUZtIH4xRZ51tqkkpvFYHsmoYxypT5zkbgkCWO+ngt9N+uv9ImQqlGAQQQAABBBCwRGDX3bMmu5L5lusEd+p41CcsCauqYRxrF3luS0aOaOogW2wEfL2a5vTF6w83xabFNDRyAqQQRq5LYtYg0gcj3WG5frQzKYUtrb7cPDct40Yxhl16BwZXOI5coQmF955LMaxretZpkEzpZVMCAggggAACCMRRYNuPZo+oHdV2w5kUwW6TOlXDUEt5etKkDK7RlMEMKYPlAQ2vFNdJOV/T6v6/8KqkJtsEOHu1rUdDjOeuK6TmglGTmrn6YIjoZazKLOp+5cyUfFx/E2QrUCDXiGDuQ5s0xXCV72uK4dLGd3Pvwr0IIIAAAgggYJtAb4qgXkXw7zS2CUPGV/h3iyGLsn2HLh2wWrMzI1sPMxQY3752Xl28rvlz8W0/La+2AANY1e6BGNe/cN74/xyI+3SMQ6DpKtCTUnixphTqGllslRA4k2KY8v0H6n/WdLgSNVAmAggggAACCFRPYO+C6fW6EPt8vSr397QVH6teS+yt+ZBeXfC5rZ6c6GDwKua9TBphzDuw2s0nhbDaPRDj+nXwan6Mm0/TzwqYlMLmVr1K4ZyUTBjNmHb5nxhnUgz9lLOoccHUF/SKnfcfPDH58b9ZtqG7/HVRIgIIIIAAAgiEIdA/RdD/mi4nwHlVheA3HfRlraYMeoxdVUg41GJdcZ2va43/b6i1Upk1ApytWtOV4QZyJn1w4kGt9aJwa6a2SgmkNJPwKlIKK8WbXe4BTTFcGQTOr6ct2f+n7Ae5jQACCCCAAALRFNhzz5QrXN+5Q1MEb9MWjo9mK+1oVZeOWL28w5ftR/Ryg2w2CaxdvK7lszYFRCzhCTCAFZ61VTXdfc2ELzqB83urgiKYHoFLL3Ll+ktdGZHm7SGMp0TgOB+YWVnpVOZXU3568FAYdVIHAggggAACCBQu0CdF0Kxr9dHCj2TPYgVaNDvguW2enCRlsFjCKB/nd2e8GT9//cj+KDeStkVTgDPUaPZL5Fu1cN7EX+ss3u9GvqE0sCiB80eI3KhXKZwyhreIogCLO6hLD1tNimFxeByFAAIIIIBAOQV2Ncwa6Z7u/rLriM62kpu0bFIEywmcpyyTJfjuAV/W7/XEZ+JVHqX43x1I8F+XrDv0r/GPhAjCFuDsNGxxC+ojfdCCTuwXgvmqMPCtQL+wyaemufLpqSnRdR3YwhU4qtWtcoPg3+qXNL0TbtXUhgACCCCAQHIF+qQIflsVxiVXIvzI2zMiL+msq93HGbkKXz/kGgNZt/i1lmtCrpXqLBDgtNSCTgw7BNIHwxavbn0XX+TIFy5Ny0h+d6xKR/SmGNamu+6b9JOW5qo0gkoRQAABBBCwWGDfj6dN9WvkO7o+5fc1zDmFhJr7579CjmSfXAL7T/rywjZfWruMLFsCBEgjTEAnVyJEBrAqoWp5maQPWt7BOcI7r1ZTCuekpf583jJy8IR1l6cT5V4RX5adGH3BE5c3bDIph2wIIIAAAgggUIRAVorgzVpEqohiOKREgZ6UQb3K4PrdvvgBg1clcsbqcP2R9h+WrG3+n7FqNI2tugBno1Xvgng1gPTBePVXUa3N85MiKYVFaVbqoGNa8ErXCZbXL2p6rVKVUC4CCCCAAAK2CZxJEXTv0iS1W/VE6Dzb4otTPG3dIi9u92QvKYNx6rZytnW9Xo3w6nIWSFn2CzCAZX8flzXChVdNuDlwnWfKWiiFxUpg2lhHbpqdklG1vH1EpOM+1Et5/yYTpH9z8ZLdByPSJpqBAAIIIIBAZAQaF0ydptOYv60pgj/QRs2OTMMS3JD9JwJ5Xgev2kgZTPCzQAInSM9a9FrT3iQjEPvwBDgDHZ5X4vdeMG/Sr0SC7yUeIuEAo2pEvqAphTN1MIstMgK+phi+rCmGy93Rwar6hqa2yLSMhiCAAAIIIBCygK5rVeengy85rtylV/j9vFbPl5aQ+yBXdb7O9H97vydvNfqSM2MwTyZArrK4zwYB58eL1zX/DxsiIYZwBHgjD8fZilpIH7SiG8sWhHnz+KReofAzM1xxy1YqBZVJ4LiW84hJMZyyqGm99hWLSpQJlmIQQAABBKIrEDSIu7e9/ko3cG7XD77btKVjotva5LXMLND+vF5l8MBJvpYkr/fzRvwHTSO8Ku+jPIBAlgADWFkg3MwvcPfVE25yHOfZ/HvwSBIFpp7v6gLvrowhpTCa3R/IZl0k8+G0m7lvyr0Hd0ezkbQKAQQQQACB4gX2/2P99EzavU1TBO/SUi4pviSOrJTA7qOBvLgjIx2ZStVAuTEVCDwvdfHP/nBgT0zbT7NDFmAAK2TwOFe38JpJvwyC4O/iHANtr4xAXdqkFKZk1gXMxaqMcFlKPZdimA4yj05e2ny6LKVSCAIIIIAAAlUQ2Paji86vHVn3VU0RvJ0UwSp0QIFVDpkyWGA57GavgK7l+o9L1jX/3N4IiaycAgxglVPT4rLOpg8e0BDHWRwmoZUgYN5MPjolJfNmOuI6vLWUQBnGoSe0kicdP7i/fmnTS9pbzOUPQ506EEAAAQRKEiBFsCS+0A8+1SmyemtGDrTyNSN0/HhV+LqmEV4ZrybT2moJcJZZLfmY1Uv6YMw6rIrNnTjGkZvnpmXsiCo2gqqHI7BXUy5WpHzv33RW1q7hHMi+CCCAAAIIhCHQ+C9T53qeoymCcof+5nJxGHVSR2kCOzVl8KUdnnRmGLwqTTIRR5NGmIhuLk+QDGCVx9H6UkgftL6LyxpgbcqRz1/qypxxpBSWFbayhfla/Ot6kab7a0d1Pjix4VBrZaujdAQQQAABBPIL7Fh4ydi03/kVUgTzG0XxEU/Hq9bv8eXdA14Um0eboirgyD8vXtvys6g2j3ZFR4ABrOj0RWRb0vA5Sbd5E0364PjINpKGRVLgrya58tmLU6LjWWzxEmjXi40/7XjBMlIM49VxtBYBBBCIs0BWiuC3NZbRcY4naW0/3n7mKoOHTjPrKml9X2q8eqrwxqJ1Lf+p1HI43n4BTivt7+OSI1w4b+KN+jH0XMkFUYDVAuarSq43lImjTUphSsaOzPWo1SS2BLdPUwwf9ILUL2Ys2bfDlqCIAwEEEEAgOgL7F9RflhH3Vv28uVNbNSs6LaMlhQrsOOJryqAvXWYKFhsCwxcI3JR7yb1ruGL28OmSdQRnlMnq76KiXXD1hH8Xx/l+UQdzEAIqUJsSufaStFw2nreceD8hnA3a/mUjpGPFhMWHT8U7FlqPAAIIIFBNAVIEq6lfvrozugDBH/aSMlg+0eSWpNeAunvR2palyRUg8kIEOJssRCnB+5xNH2xSggkJZiD0Mgl8ZIIr12lKYVoHtNhiLdCh0+2e0l/Kl9fvbHrGWSksdBHr7qTxCCCAQDgCPSmCrfXXua5zh87T+YbWOiqcmqmlEgLH2jVFQ68yeKSNWVeV8E1gmW/q1Qj/jwTGTcjDEGAAaxhYSdz17msm3uBoOnsSYyfm0gTMV5lcbzDj6kRuuiwt4+pyPVpanRxdRoF8HTiwikYdyHrAD9xfTl/SuG3gw9yDAAIIIJB0gd0LpvyFI6lvuRJ8Vz9eZibdw4b4N7f48uouT7rNJWDYECiTQODJ7CV/aGHJijJ52lgMZ5A29moZY1owb8IvdBjiB2UskqIQkLRenPCaWSkxi7yz2STgbAgCWe6kg99O++n+IzZFRiwIIIAAAsMT2PUPsy5wazO36I8cd+iRVw3vaPaOqkCXzrl+dacnWw4zchXVPop5uxboLKwlMY+B5ldQgAGsCuLGvWjSB+Peg9Fvv0kpvFZTCmtIKYx+Zw2vhX9OMaxretZpkMzwDmdvBBBAAIE4CgTzJbV3Zv21Z1MEv6kx6LxrNlsEDuvVBZ/b6snxDjNNmw2B8gsEEry1ZN2hT5e/ZEq0RYABLFt6sgJxkD5YAVSKHCBwoaYS3jwnJeP1aoVsMRIoPMWwSX99X+X7mmK4tPHdGEVIUxFAAAEEChTY80+T/1KvIGbWtbpTZ+5PLvAwdouRgEkZXKMpg2bRdjYEKilAGmEldeNfNmeM8e/DikVA+mDFaCk4SyClmYRXzUzJxyeTUphFY9nNMymGKd9/oP5nTYctC45wEEAAgUQJ7LlnxoXi+/NJEbS7203K4Cs7MrLtCLOu7O7pCEUXBPcsfu3Qogi1iKZESIABrAh1RpSaQvpglHojOW259CJXrp/tyogUb02W93qnxveCBHL/wROTH/+bZRu6LY+X8BBAAAErBM6lCKacu3TNw69oULVWBEYQOQVaWn15fpsvJ0gZzOnDnZUScDYsXtf8N5UqnXLjLcBZYrz7r2KtX/DZiV8QX1ZXrAIKRiCPwPkj9CqFc9Iy+TzenvIQ2Xb3Af31fmUQOL+etmT/n2wLjngQQAABGwT2LJxxuRtkbvfF+Z5+Ok+0ISZiyC9g5lq9e8CX9Xs9nWSXfz8eQaBSAm4qmHPvmkPbK1U+5cZXgDPE+PZdRVu+YN7EZVrB31e0EgpHII+A6zjymemOfHJqSniTyoNk4d2B43xgZmWlU5lfTfnpwUMWhkhICCCAQGwE9v142kV+jXxTf2T4oTb6k7FpOA0tSaBdL7vy4nZP9hxj5KokSA4uScBxgn9ZtPbQvSUVwsFWCnBuaGW3lhbUfL2CzMUHJzZpKfzCVholR5cocMmFjqYUpmVkusSCODxuAl3a4NWkGMat22gvAgjEXWBTw+W1Y9qP3eiKc7umCH5V46mJe0y0v3CBg62BPL81I6dMoj8bAtUVeGfxupYrqtsEao+iAANYUeyVKrfpn6+edL3rBC9UuRlUn0QBM2c9613pPF1d48a5aaknpTCJzwgT81H9t8oNgn+rX9L0TlIRiBsBBBCopMCwUwRzfF5Xsn2UXVmBcymDe3zxdeSSDYEoCAROMHfJ2kPbotAW2hAdAeY1RKcvItMS19UlOvnsikx/JKohWYNXJvZTOhfnsU0Z+dQ0Vz5tUgpz7JMoo+QFe5GGfJfvOHftWzitJ8WwNt1136SftDQnj4KIEUAAgfIJ7P5vM6c43d4t+qPlnUHgfSLQX5AK/ogteMfytZeSKiPQrpdR6UkZPE7KYGWEKbVogcCdr8f+pOjjOdBKAT5+rOzW4oMifbB4O46svMD0sY7cOCclo2p466q8dqRr8PQs6xW90MSyE6MveOLyhk0m5ZANAQQQQGAIgW0/mj2idlTbDaQIDgGVkIcbTwayepsnbV1Zv1ybm3zVSsizIMJhOvKnxWtbPhHhFtK0Kgjw1lQF9ChXuWDepM+LBC9GuY20LdkCo3Q1jhv0KoUzdDCLDQEVOKb/VuoMguX1i5peQwQBBBBAYKDAnnumXOH6zh06y+o2fXT8wD2y7mEAIwvErptmrtXbjZ68vU9TBu0KjWgsE0ilvL/46Zojmy0Li3BKECCFsAQ8Gw8NgmA+KVo29qw9MbXpVPcnP9CUwumuphWmxLUnNCIpTuBCPewuP/hzimEmSP/m4iW7DxZXHEchgAACdgjsXTC9/sz3uuB7Okrxsaw5NoMHyW9Eg/vE+NFWnW21eqsnTaeG9YyIccQ0Pc4CXib9DW3/f49zDLS9vAJ8PJXXM9alkT4Y6+5LZOOn6iysm2anZHQtb2WJfALkD7o3xXC5OzpYVd/Q1JZ/Vx5BAAEE7BHIShH8mkbGj9X2dG/Jkew7YVIGM2LWveq/MeWuvwe3IiSwUa9G+PEItYemVFmAs74qd0CUqid9MEq9QVsKFagzKYWXpmTmhczFKtQsYfsd13gfMSmGUxY1rdcPPX5yTtgTgHARSILAsFMEk4BCjOcEfP3ke3u/J281+sJFBs+x8EdMBEgjjElHhdRMBrBCgo5DNXdfPfF/a/rgD3vbym8xvRL8H3UB80b20SkpmTfTEZcc2Kh3V/XaF8jmwHEeTruZ+6bce3B39RpCzQgggEDpAvt+PG2qn5ZvOk7wd1raR0svkRJsFDjVKfK8zro6SMqgjd2biJj0u9v/uWRt8/+TiGAJckgBBrCGJErGDqQPJqOfbY9y0hhNKZyblrEjbI+U+EoU8PXqSi/rmjDL00Hm0clLm0+XWB6HI4AAAqEI7GqYNdI93f1l1xFdkF1u0kpJEQxFPp6V7DoayIs7POnMMPk4nj1Iq88KvKtphB9DAwEjwAAWz4MegXuumXSdHwQvwYFA3AVqU45cf6krs8eRUhj3vgyp/Se0nicdP7i/fmnTS/qhyLf8kOCpBgEEChfokyL4HT3qosKPZM8kCnj6SbZ+jy/vHfD4UEviE8DGmJ3UXy5ee+BDG0MjpuEJ8KvN8Lys3VsHr+ZbGxyBJUqgS7+1PatX1/noFJF5M1xxGcdKVP8XEexYPeb2wHVu379g6tZ94qyo8bt/o7OydhVRFocggAACZRPoSRGske84EnxfZ4zOKWR03ezDr9Nl64JYFtSTMrhVUwZbC3nGxDJEGp1AgSDwzLnq/53A0Ak5S4DPuCyQJN7sSR88MHG/fuOZlMT4iTn+Avm+sE/UlMKb56Rk7Eje6uLfy6FG4Gttr+tp4P21ozofnNhwqDXU2qkMAQQSK5CVInizQqQSi0HgwxbYftSXV7b70mmmYLEhYJNAIO8vfq3lr20KiViKE+Csrjg3q45a8NnJ14rvv2xVUASDwFmBEfrV/9pL0jJ3PG93PCmKEmjXwf2nHS9YRophUX4chAACBQicSRF079LR81v10+q8Ag5hFwTOCXj6xFm/15d3NWWQDQFbBTxxL//ZuoMf2BofcRUmQAphYU5W7xX4/nxO7a3u4kQH16nf5Z7Tq+/sPu7KdRenJM1v2Yl+PhQRfJ0uIDJfUwzna4rhvv0SPOgFqV/MWLJvRxFlcQgCCCBwTmD/P9ZPz6Td2zRF8AeaIjg732zicwfwBwI5BI63B/KcLp1wuI1ZVzl4uMsigVTgmzTC/8uikAilCAHGLYpAs+mQBhG3bd7ERo1JVwxiQ8AOgXwnAePqRG7WqxReNIq3Pjt6uppROBu09mUjpGPFhMWHT1WzJdSNAALxEdB1rer8dPAlx5W7dHD889pyPpDi032Ra+nmFl9e3eVJt0l8Z0PAcoEgcDYvea35LywPk/CGEOBDcwgg2x8mfdD2Hia+bIEanYFlZmJdNoHV3bNtuF2UQIeefj6lMyiW1+9sesZZKeRvFMXIQQjYKxA0iLu3vf5KN3Bu1x9YbtNIx9gbLZGFIdCtnzRrdOBqyyFGrsLwpo7oCDi++1eL1h/cFJ0W0ZKwBUghDFs8YvWRPhixDqE5FRcwX/qe3+7JnhOBro2VkhrGsSpuHvsK8k3pOxPYyJ4UQ9EUw4unNu5fEDzgB+4vpy9p3Bb7uAkAAQRKEmhaWD+jO3Bv3dcW3KW/GF9CgldJnBx8VuCopgo+t80T8z8bAkkTCFI9aYQMYCWt4/vEywysPhhJ+7OB9MGkdTnxZglcWKdXKZybkvGkFGbJcLN0AWdDEMjy2pT71Iixcqz08igBAQTiINDWmTkv6Ehd7wX+raQIxqHH4tVGkzK4ZrcnGeb6xqvjaG3ZBEgjLBtlbAtiACu2XVd6w++5evLnfMd/pfSSKAGB+AqkdAbWVTNT8vHJTMWKby9Gr+UmVXXMaF3chk/Z6HUOLUKg0gI6Maa9S+R0R6UrovykCHTpgNUrOzOy7TCzrpLS58SZX8BPOX+9dE3z+/n34BGbBThjs7l3h4jNd3umYA6xFw8jYLeAufT0Wl1H4pktnnR6fDG0u7fDi27kSAavwtOmJgQiJqAD13UjRMwPJGwIlCrQ0urLw+8yeFWqI8fbI5DyAnM1QraECvDRmtCOb9D0QZ3a/rWEhk/YCAwQ2H7UlxUbM3KwlUGsATjcMWwBTR9kQwCBBAuY9wCf94EEPwNKD908fTYe8GXVJk9OdPBkKl2UEmwR0FfDt2yJhTiGL8AA1vDNrDji9Lzx8zSQKVYEQxAIlEngZKfIo+9n5E8HfR3fZUOgeIGu7uKP5UgEEIi/QHdGhIHs+PdjtSLo0hnhz231ZJ2ud+VzocFqdQP1RlfgsoXXTPrr6DaPllVSgAGsSupGuezAZepllPuHtlVNwGQRmpTC32/JSIeegLAhY1or7gAAQABJREFUUIxAtw5gcfJajBzHIGCHQCeD2HZ0ZBWiaNaZ4A/pjPAdRxi5qgI/VcZEIAhII4xJV5W9mQxglZ00+gU2aPqgLixM+mD0u4oWVlFg59FAVrzbLQdOMRerit0Q26rNs4ZZWLHtPhqOQEkCZvC6ix9ASjJM4sHmc8OkDD76vidmRjgbAgj0FRjwfZw0wr48CfqbAawEdXZvqGfTB+t7b/M/AgjkFjhlUgo3ZeSNRo/ZNLmJuHcQgU69ChkbAggkT8DMvmIGZvL6vZSI2/U58/TmsymDPHlKoeRYawUGXNZ57sKrJ37M2nAJLK8AA1h5aSx+gPRBizuX0MotYBbhfWOfL098mJE2BiTKzWt1eRnN/jBXuWRDAIFkCXTwWZGsDi8x2v0nNGVQrzK45xgfGCVScnjCBAKXNMKEdXlPuAxgJazXG0gfTFiPE265BPaaL5jvZaTpJF8wy2VqfTkmjYh1cKzvZgJEoK+AGbQ2g9dsCAwlYJ4mb+7z5IkPMnK6a0B61FCH8zgCCRTIep0EDms6J/BZwABWwjq9/ZoJV2vIpA8mrN8JtzwCrfoF8zG9nLVJKeT8pDymtpfSZWZiZH3fsj1m4kMgyQI9i7fzmk/yU6Cg2Nv1s+EpHbh6s9Hn+0RBYuyEgBEYmEZ495UTPo5NsgQYwEpWf+uaDFx9MGFdTrhlFjADVyal8HFdG4tfTMuMa2FxPbMxPAsDIyQEEBgooANXrH03kIV7+gvs0xndKzRl0Pzff8u+3f9RbiGAwEABNyXMwhrIYvU9DGBZ3b39g2vQ9EGdCvD1/vdyCwEEihFoPBnIg2bNiuPMxSrGL0nH9MzISFLAxIpAQgW69OOAde8S2vkFhG3W1HxTZ3A/adbU7M41WDVgdkkBpbILAkkT6P/aCcT526QJJD1eBrAS9Aw4/dkJV2m4pA8mqM8JtbIC5qpBT37oyau7NQWAqwZVFjvGpZt1sHh6xLgDaToCBQp06ZVr2RDIJXBKlyD4nc7cflNncPN5kEuI+xAoVGDAQO8l91wz4ROFHs1+8RdgACv+fVhwBK5P+mDBWOyIQIEC5negjQc8WfW+Jyc5eSlQLVm7mZOV7kyyYiZaBJImYF7nzLZMWq8XFu+uo4E8vDEjB071nzlS2NHshQACQwn4LJEzFJFVjzOAZVV35g+mwaQPOqQP5hfiEQRKEzjYai6D3S27jvEFtTRJO4/mxNbOfiUqBHoFzGucd/9eDf43Ap4+IdbqDO1ntmSkgx8xeFIgUEGB4Fta+ICpWRWskKKrKMAAVhXxw6zapA/qr4NTw6yTuhBImoD5gvr05syZlEKWxkpa9w8ab4Y0wkF9eBCBuAv0XHE07kHQ/rIJnNIZ2SZl8F2doc3AZtlYKQiBfAKX3HP1+E/me5D77RJgAMuu/swbDemDeWl4AIGSBLK/mJrbJqXwkU2enOjIfrSkqjg4xgLmmWDWwmJDAAH7BHz9wcIs4M6GgBHYcdSXhzRl8CApgzwhEAhNwHdTXI0wNO3qVsQAVnX9Q6m9gfTBUJypJJkC+eYrt7TqF1i9SuHWIwxiJfOZMTDqzq6B93EPAgjEX6DDDE7zVh//jiwxAnMFSpMy+OwWTzpN/iAbAgiEJxAEt2hl+b6Wh9cOaqq4AANYFSeufgXtV0+4kvTB6vcDLUieQKcn8tzWjKze7kmGX+eT9wTIijijzwdzgsOGAAJ2CZA+aFd/FhPNsfZAVr5/JmWwmOM5BgEESha4eMFV468ouRQKiLwAA1iR76LSGxi4XH2wdEVKQKAwgVy/uW4+5Pd8sT1OSmFhiBbvxYmuxZ1LaIkUMAPT/ECRyK4/F/TmFl8eeS8jh0/n+gZwbjf+QACBCgtwzlth4IgUzwBWRDqigs1wJPC/VsHyKRoBBPoI5Ju7fEi/2JqUwi2HmYLThytxf/ZcjZBznMT1OwHbK9BBarC9nTtEZGbg8pWdnry4w5NuHchkQwCB6grod3DSCKvbBaHUnu9cK5TKqaTyAnfPm3iVdvJrla+JGhBAoFCBj0xw5dpLUlLDTwiFklm13/mjRdJpq0IiGAQSKWDGoo+e1OWvGJROXP8fbRd5fktGjmjqIBsCCERHwHXdT9/76sG3otMiWlJuAU6fyi0asfLcIOCKDBHrE5qDgEkpNLOxjrTxxTeJz4aeWVhJDJyYEbBMwFxZlMEryzq1gHDOpAx2M3hVgBW7IBC2gO/7nPuGjR5yfQxghQwecnVO4DikD4aMTnUIFCJgFnx9SNfM+NNBUgoL8bJpH056bepNYkmyAFcWTVbvd2ma4OptmZ6UQbP2GRsCCERRIPhbbRVZZlHsmjK1ic4tE2QUiyF9MIq9QpsQGCgwe5wr11/qSm2Kt+SBOnbeM2aUSG2NnbERFQJJEPB1Au2xU8zASkJfmxgPtQby3DZPTnAxlqR0OXHGWMAPnP+09LXmN2IcAk0fRIAZWIPgxP0h0gfj3oO0PykC249oSuF7npiF3tmSIcDMjWT0M1FaJJD19mxSgUkftKh/84Riun2jzpReuSnD4FUeI+5GIGoCrrCETtT6pJztYQCrnJrRKov0wWj1B61BYFCB45pSaC7DTUrhoEzWPNid4eTXms4kkGQIZE2QZRDa/m7v8gJ5fqsn63Z54pPtb3+HE6E9Ak7A1Qjt6c0BkWR9HA94nDtiKrDwmolX6i+D62PafJqNQKIFLr3I0ZTClIxI8xZt8xNhVJ3IyFqbIyQ2BOwU8HQww6QPstkr0GJSBrdm5GSnvTESGQJWC/jOZxavb/4Pq2NMaHDMwLK04wOuPmhpzxJWEgR2HA3kQb1K4QH9As1mr0BXl72xERkCNgt08Nq1tnt7UgYP+LLqfY/BK2t7mcASIeCSRmhrPzOAZWfPmmkb37AzNKJCIBkCp/RX30d1zY0/6hdphrHs7HNzFSuPK1nZ2blEZa+AviGTPmhn97bpumZPfagpg7s1ZZAFzuzsZKJKkEDPABapDBb2OJ1qYaf++DPjptakU40WhkZICCRS4GJNKfzCpWkZmU5k+FYHXTdCpG6k1SESHAJWCZj1606ctiokglGBxpOBvKBXGTzdxU9GPCEQsEWgO1M77uevNx61JR7iOCPAAJadzwRnwbyJhzW0i+wMj6gQSJ7AebpW0o1z0lJ/Pm/bNvW+q/OgLxijEdGtNnUrsVgscKpNZ2DpTB02OwTM2uxv7/Pk7UZfcq7TbsazeH+2o7OJImkCRxevaxmvQTMqbVnPk0JoWYeeDSfQz9q37QyNqBBIpsApXXPlsQ8y8kajx6XbLXoKmCtbdZNGaFGPEorNAr6eBnXpDCw2OwRMyuDT+rn6Zr7BKxMmg1d2dDZRJFHgLQ2awSsLe54BLAs7tSekIHjT1tCIC4GkCpiTpzf2+fK7DzPSRpqDNU+DLmZzWNOXBGK3QLe+VlkayY4+bjwRyEMbM7JX/2dDAAH7BJwgMANYbBYKMIBlYaeakALX5UVrad8SFgLmi7e5SuHe4zkTHgCKmYAZwOIUKmadRnMTKdDBYHPs+938EPSmzmR+wvwQ1M07b+w7lAAQyCPAuXAeGAvuZgDLgk7MFULg+szAygXDfQhYImBSH57QqyW9ulvX7WBKQKx71XSfmdnBhgAC0RXwSPeNbucU2LJTOnP5dyZlUGcy87FZIBq7IRBTgXTgMZkjpn03VLPJ7B5KKMaP60Lu+7T502IcAk1HAIECBOrPd+WmOa6MqeUtvQCuSO5So1eYPG90JJtGoxBAQAXaOvVfBxRxFdh1LJCXtmekgzXM4tqFtBuB4Qg06gLu04dzAPvGR4AZWPHpq2G31HGEkedhq3EAAvETaDrpywpdy2P3MVIK49d7Z1psFnI3C7qzIYBABAV0lmSnXkiDLX4CJmXwD3t9eWYzg1fx6z1ajECRAoGQiVQkXRwOYwArDr1UZBsDFq8rUo7DEIifQLv+qvzU5rMphQyExK8D9SRrwNXN9D42BBCovoAZYDYphGzxEjils+Ye25SRd/br1Xvj1XRaiwACJQg4Lgu4l8AX+UM1aYHNVgE/cN9yHT6ybe1f4kIgW8C82jce8OTAKV++OCcl548kpTDbKMq3zQyPkbV9Wkj39cHgTwSqJ9DJGnXVwy+y5h1HfXl5hy+dGb4HF0nIYQjEViDQc+DYNp6GDynADKwhieK7Q2pkl3nx8pthfLuQliNQlEBLayAr9CqF247w8i8KsEoHeczyqJI81SKQX8As9s0AVn6fqD1iZsqt1YubPLvFY/Aqap1DexAIRyDoSnVuCKcqaqmGAL/vVkM9xDp1IfctWt3cEKukKgQQiJDAX01y5bMXpyTFu32EeiV/U0aOEBk1Mv/jPIIAAuEKmMGrU23h1kltxQkcaw9k9TZPDp1m1lVxghyFgBUCW3QB949YEQlB5BRgBlZOFnvu1I9wFrGzpzuJBIFBBXJ9ZX+/2ZeV72XkREeuRwctjgerINBlUpXoqirIUyUCuQWYfZXbJWr3bjnkyyP6WcfgVdR6hvYgEK6AfoUifTBc8tBrYwArdPJwK3RYyD1ccGpDoIoC+SZZteiv0SalcOthUgqr2D0FVW2uRGgWjGZDAIHqC5jX44CLK1S/WbSgj0DmbMrgC9s93jv7uPAnAkkV4NzX/p5nEXfL+9hPOW+5nLNa3suEh8DQAl06KPKcplbsPh7IdZpSmE4NfQx7VEfAzMKq4dO5OvjUikAfgQ5mRPbRiN6fx9r1c21rRo60MW01er1DixCokkDgkn1UJfqwquUrcljSVapnjDPqj23SZr6C1VSpCVSLAAJVEjBf6bNnZW3WNIuWVl9unpuWcaOyH61SQ6m2n4AZwBpVN7Dv+u3EDQQQqLgA6YMVJy66gs0tvqzZ7UmGGatFG3IgAhYKdHf7NRstjIuQ+ghw9tIHw9Y/dSH3dzS2T9gaH3EhgMDwBdKaQH7lzJR8fDKZ5MPXq/wRo3UAa0Rt5euhBgQQyC1gBkaOt+Z+jHurJ2BmE6/Z6ZESX70uoGYEoizwji7gfkWUG0jbShfgzKV0w+iX4LCYXfQ7iRYiEK5Az7ohuzxZzboh4cIXWFvPYu4F7stuCCBQfoGOrvKXSYmlCZgF2h9mPcfSEDkaAYsFgoBzXou791xoDGCdo7D3jyBwuBqDvd1LZAiUJGBSCh/iyk0lGVbi4O6MiFlAmg0BBMIX0JMgIX0wfPfBatykV9RdxRV1ByPiMQQSL+C4nPMm4UnAAFYCejmQgMXsEtDPhIhAsQLH2gN55P2M/OkgIybFGlbiOGZhVUKVMhEYWsAMIJtBLLbqC3R5gS7U7skrmjaof7IhgAACeQX8IGDSRl4dex5gAMuevswbyZ7JLZv0wdN5d+ABBBBIvIBnLkWuKYW/3+JJZ4azhCg8ITpJYYpCN9CGBAr0XH0wgXFHLeSW1kAeeteT7Uf4cSVqfUN7EIigQNuYVMsHEWwXTSqzAANYZQaNYnErV4q5Rssfo9g22oQAAtES2HHUlxW6xsgBPXFgq66AGVT0uMJWdTuB2hMnYGZemRlYbNUTMJ8+G3VG8KpNGTnZwWdR9XqCmhGIlcA7DWuEd+9YdVlxjWUAqzi32B2ll5tkSmXseo0GIxCGwMCTg5OdIo9qSuEbjZ4MfDSMNlFHrwCzsHol+B+BcATM2lekD4ZjnauWdj39/P2HnqzTGcGsA5hLiPsQQCCPAEvm5IGx7e60bQERT24BXxdydxxORXPrcC8CSRbQ4e0cm69vF2/s8+WQzsS6fnZaRvJpkUOp8neZk+lRdZWvhxoQQOCMAFcfrN4zoemkL6u3+dLaxffV6vUCNSMQTwFHWMA9nj03/FYzA2v4ZrE8IpX2mYEVy56j0QhUV2DnsUBWbOyWppOcUFSjJ3rSmXQQiw0BBCovkNG03Qxpu5WHzqrBfLpsPODL4x8weJVFw00EEChQwPdYwL1Aqtjvlvun99iHRQA5BJwF8yYe0vvH5XiMuxBAAIEzAuZMIscng6v3fWqaK5+emhInx+PwVU5gRI3I6FGVK5+SEUDgjEBbh0ibplCzhSfQpgP0L273ZO9xFmoPT52aELBO4OjidS3jNSp+bbWuawcGxAysgSa23hPoOecGW4MjLgQQKJNAnsGp3pTCxz/MSFs33w/KpF1QMV26Jgxr8hRExU4IlCTA1QdL4hv2wftPmKsMZhi8GrYcByCAQJaAyTTiy2kWiq03GcCytWdzxRUELG6Xy4X7EECgYIF9esLx4MaM7NH/2cIRMINXXaQRhoNNLYkVMK8xFg0Pp/vNDyJv7vOk5weRXOtd8fESTkdQCwKWCDgB6YOWdGVBYTCAVRCTHTsFrss6WHZ0JVEgUFUBk/Lx5AcZWb/XF5I+wukKBrDCcaaW5AqYCyawVV7ALND++KaMvNno559ZmmcmcOVbRw0IIBBHAc5x49hrxbeZ60oVbxe7IwPXf9Px+FYQu46jwQhEUMD8QL5hvycHTwVy0xxXRtfy3lLJburWhaXN7BCXn50qyUzZCRUw72cMEle+83cfDeTFHRnp0LRoNgQQQKBcAunAY5JGuTBjUA5nHDHopHI2URdy36flTStnmZSFAALJFqjTn0K+MCclsy5gdKWSz4S6kSJ1IypZA2UjkEyBji6R1vZkxh5G1CZl8G39weOtwWZdhdEQ6kAAARsFGnUB9+k2BkZMuQU428jtYu29evUwRqit7V0CQ6A6Au36a/pTH3ry6m5NKWS18Yp1QpeeZLMhgED5BUgfLL9pb4mn9KqOv3tfUwb3DZIy2Lsz/yOAAALDFQiENZ6Haxbz/RnAinkHDrf5AYvcDZeM/RFAoAABk4Kz8YAnj7zvyQkuQ1+A2PB38TSFMKOphGwIIFA+AfO66ialrXygfUraqSmD5iqDB1rNJwQbAgggUH4Bx2UB9/KrRrtEBrCi3T9lb50fsJB72VEpEAEEzgm06InKCr1K4bYjLO9+DqWMfzALq4yYFIWACnQys7HszwNPx6vW6ozcZ7ZkpDPD4FXZgSkQAQTOCQSc256zSMofDGAlpafPxpka2WVSCDmzTFi/Ey4CYQp06dnLs1s9eXmnJ+ZEhq18AibViSzN8nlSEgKkD5b3OXC8PZBV72XkXZ2Ry4YAAghUWCDoSnVuqHAdFB8xARZxj1iHhNEcXch9i9YzN4y6qAMBBJIhYMapcn2gTBztyM1zUzJ2ZK5Hk2FT7ijPGyVSU1PuUikPgeQJmNTBE6eTF3elIt6hM29f2uGL+RGDDQEEEAhBYIsu4P6REOqhiggJMAMrQp0RVlP0awWL3YWFTT0IJEQg3/BUy+kza6BsOcwJTbmeCswYKZck5SRdoENnNLKVLmDWETMpg2bmLYNXpXtSAgIIFCag3yy5OFlhVFbtxQCWVd1ZWDAOC7kXBsVeCCBQFoFOzSR5fltGVm/3WIS8DKLdpBGWQZEiki5ghtS7GMAq+WlwTFMGHyFlsGRHCkAAgeELcE47fDMbjkjbEAQxDE/ATzlvuayCNTw09kYAgWEJmJPD7FlZmw/5cqjVl5suS8u4uuxHh1V8onfuPfEeUZtoBoJHoCQBM3jFenIlEcrmFl9e3eVJN98pS4PkaAQQKE4gcMkqKk4u1kcxAyvW3Vdc48c4o/6oR/K7Y3F8HIUAAgUI5BueOtIu8rBeVn1TM2c8BTDm3YWrEeal4QEEChLo4OqDBTnl2qlLZ9W+sM2TF3cweJXLh/sQQCAUge5uv2ZjKDVRSaQEGMCKVHeE05iGNbs7tKb3w6mNWhBAAIH+Ahkdu3pJr1BoUgq7uVBVf5wCb5kZD2bdGTYEEBi+gK/TGM0C7mzDFzis6xo+oj9CbDnMG9Dw9TgCAQTKKPDez19v1J9F2ZImwABW0nq8N16HRe96KfgfAQSqI2BSCh/StVPMCRHbMAWUjPV7hmnG7gicFehk9lVRzwWTMrjq/Ywc7+A9uyhADkIAgbIJaAo4C7iXTTNeBTGAFa/+Kltrg8DhRV82TQpCAIFiBcwCwA/rCdGfDvJr/nANe9IIOY8cLhv7IyBcfXB4TwKTMvj81kxPyqCZQcuGAAIIVFvAcTmXrXYfVKt+FnGvlnyV6w0keDPfGjVVbhrVI4BAwgR6LsGuCwHvPxHI9bNdGZHi3amQp4BxMyeT6VQhe7MPAggYgYwOxnikLhf8ZGjRC288v82XE8y6KtiMHRFAoPICfhAwGaPyzJGsgRlYkeyWyjdqz+SWTVrL6crXRA0IIIBAYQI7jvqyYmNGDp5iWlFhYiKkQhUqxX4InBHgNVPYM8G8C2/UmbGrNnkMXhVGxl4IIBCeQNuYVMsH4VVHTVESYAArSr0RYltWrhTz+6O5GiEbAgggEBmBk53Sc8K0Yb8nDGMN3S1mHSxdB4INAQQKFOhk8fYhpdrV6OnNnqzTmbE+KYNDerEDAgiELvBOwxrh3Tx09mhUyABWNPqhKq3QJB2mXlZFnkoRQGAwAZ0WLuv3+vL7zRnp4OvJYFQ9g1cZjAY14kEEegW69LXCgEyvRu7/D7aaqwx2y55jjFzlFuJeBBCIgMCbEWgDTaiSAANYVYKPQrU+C7lHoRtoAwII9ApkzSTaeSzQlMJuaSKlsFco5/+dOguLDQEEhhYgfTC/UW/K4GPve3JKZ8KyIYAAAlEVcIQF3KPaN2G0iwGsMJQjWkcq7TMDK6J9Q7MQSKRAjrXbT+nl7h/blJE3GjWlMGuAK5FGOYLuJo0whwp3IdBfwLx/mBlYbAMF2vU95OkPz6YM8kY7EIh7EEAgUgK+xwLukeqQkBuT43Qh5BZQXTUFnAXzJh7SBoyrZiOoGwEEEChEYMZYR26Yk5JRNXx0ZXuNrhMZUZt9L7cRQKBXoEMHw1vbe2/xf69A48lAVm/zpK0r6xcCc5O32l4m/kcAgegIHF28rmW8NifrTSs6DaQllRVgBlZlfaNeeqDfTTZEvZG0DwEEEDACe08E8qBepdD8z9ZfgNSo/h7cQiBbwAxgsf1ZwKxw9eY+T57UGa4DBq/Mbgxe/RmLvxBAIEoCJoOIL4JR6pGQ28IAVsjgkasuCFgEL3KdQoMQQCCfQJumujz5wZmUQpYY/rNSRq8r6wHyZxD+QqCPgHltZHh9nBNp1dlWj2/y5M1GX2A5x8IfCCAQAwEnIH0wBt1U0SamK1o6hUdeIHDdt1hYJvLdRAMRQKCPgDnhemOfLyb15abZKRldy1QBw9OlM0zqRvaB4k8EEOgR6LnQAb/X91js0xmsq7dlxKx71X8zQLyX9jfhFgIIRE2g59w1ao2iPaEKMAMrVO7oVRa4PjOwotcttAgBBAoQ2G9SCt/NcLn3s1acpBfwpGGX5AnouAwptiK+OvSkDH6Ya/DKPC0YvErei4OIEYifQDrwuAhZ/LqtrC3m06qsnPEsTBdy36ctnxbP1tNqBBBIuoD5IPvolJTMm+mI6yT7Y+380SJp5lYn/SVB/H0EujS99mRrnzsS+OepTpHnddbVwVNMQ0tg9xMyAjYJNOoC7tNtCohYhi/ADKzhm1l3hJ7vMZJtXa8SEALJETCnZBsPeLLyfU9O6IlakreeWVhJBiB2BLIEuhL+nrDraCAPv9vN4FXW84KbCCAQQ4FAyByKYbeVu8kMYJVbNIblBSyGF8Neo8kIIJAt0NwayAq9SuH2I8ldlrhL17UJmGSR/dTgdkIFzGshqYO6nsa+drcvz2zJSEcmoU8AwkYAAasEHJcF3K3q0CKDYQCrSDibDvMDXcidDQEEELBAoEvP2p7d6smreuLmJ3Acy5ywd3OyasEzmRDKIWAGr5I4nmtSBn/3fkbe1ZmpSYy/HM8dykAAgegJBJyzRq9TqtAiVsqoAnrUqkyN7Hor6Kwxp3oMaEatc2gPAggMKWBO0PqufGVum5TCA6d8uXlOSsaO7PvokMXFfgdz0l5bE/swCACBkgXMlTmTtm0/6ssr233pNFOw2BBAAAF7BIKuVOcGe8IhkmIFkvWtvlilBBynC7lv0TDnJiBUQkQAgQQJjEiJXHtJWuaOT87HnVnH/oLzdFAvOSEn6BlNqIUKmBmYR83i7QkZx/E03vV7/Z5ZV4UasR8CCCAQI4EtuoD7R2LUXppaIQFm3FQINm7F6vc7FsWLW6fRXgQQGFKgU69A9pxefWv1dk8y+ncSNpNGaNbCYkMgyQIdZvZVQgavjrcHsvK9MymDSe5zYkcAAXsF9O2cJW/s7d5hRcYA1rC47N3ZYSF3ezuXyBBImECuc9bNh3x5SNeEOdqW61H7gDoTmDplXy8SUSkCSRnE3dzi61UGM3I4Ie9tpTwnOBYBBOIrwLlqfPuu3C1nAKvcojEtz085jGrHtO9oNgII9BfIlzlnBq8e1kGsLTqYZftmZpuZlCI2BJIoYJ7/Gcuf/90a4ws6s/TFHZ50Wx5rEp/DxIwAAlkCgUu2UBZJUm8ygJXUns+Ke4wz6o96F0knWS7cRAABuwTMSd/zetJnUgptP+lL4gLWdj1biaZYgZ70wWIPjsFxR9pFViZkMD4G3UETEUCg8gLd3X7NxspXQw1xEMj3Q3Uc2k4byyygC7m/o0V+oszFUhwCCCAQSYEL6xy5eW5Kxo+y86PQ1Z+ozGLubAgkScAkCR89qctfWZotbFIG1+xOzpp+SXruEisCCOQVeEcXcL8i76M8kCgBZmAlqruHCNZhcbwhhHgYAQQsEjimCx8/rAsf/+mgnfk35ips3RmLOoxQEChAwKx9ZePgVZeZPaoXpDApgyZFkg0BBBBIioC+p7PUTVI6u4A4GcAqACkpuwQB62Alpa+JEwEEzgiYdaLW7vLkmS2edHr2TdlIykLWPJ8R6BWw8QIGh1p1sF0Xat922L73qN5+438EEEAgn4Djco6azyaJ9zOAlcRezxNzIAGL4+Wx4W4EELBbYPtRX1ZszMhBPVG0aeuZjWJTQMSCwCACvr58zTp3tmzm3WijzhBduSkjJzrsem+ypY+IAwEEKi/gBwEzsCrPHJsaGMCKTVdVvqF7Jrds0lpOV74makAAAQSiJ3CyU+RRXRjZpBTacqpoUqm6uTxH9J5stKgiAp0WpQ926YzQ57Z6sk5niJp0YDYEEEAgoQJtY1ItHyQ0dsLOIcAAVg6UpN61cqWY3y3N1QjZEEAAgUQKmCxCk1L4+y0Z6bBk/SgbU6oS+eQk6CEFbHmuN+tM0Id0RuiOI4xcDdnp7IAAArYLvNOwRiz5RmZ7V4UTHwNY4TjHpha9FhdTNGPTWzQUAQQqJbDzaCAr3u2WA6fiPxfLLOTODI5KPVMoNyoCZj27uC9ubt5tTMrgo+97YmaEsiGAAAIICEvc8CToJ8AAVj8Obvgs5M6TAAEEEOgROGVSCnXtmTcavdhf1ayL3y55Vlsu0NEV7wDbNf3x6c1nUwZtvIxivLuH1iOAQJUEHGEB9yrRR7badGRbRsOqIpBK+2/5ns7DYkMAAQQQELMo9Bv7fDlwMpAbZqdlVG08UUxq1ciYtj2e4rQ6VAF9ncY5fXD/iUBWb/fkdFf8Z3yG2u9UhgAC1gv4Hgu4W9/JwwyQkYphgiVgd2fBvImHNM5xCYiVEBFAAIGCBcbUOnLj3JRMPS+eH51jx4ikUgWHy44IxEbApMmeiOElaMwKV2/rDM+3dZCc1a5i83SjoQggEJ7A0cXrWsZrdYzuh2ce+ZpIIYx8F4XewEBPzTaEXisVIoAAAhEXaNXZEb/TqxSalMI4nmx2cTXCiD/DaF6xAnFMH2zXWZFPfZCRNxm8KrbbOQ4BBOwXMGszM3hlfz8PK0IGsIbFlZCdg4DF8hLS1YT5/7P3JmByXVeh7j6nqudJktXdki3JmiVbGAOGOLYGi8QZHBLHduIAgZAL9yP3u7wH7zFY9oUH6IMQbDm5cOHxweVyeVy4kDiGQGIgiQlB1pTEiROcxI7lQZOl2N2S1epu9VxV561d3W31UN1dwxn2Pvvfn+WuOsPea/3rVNXZ66y1NgQgUBkB7bjSKYX/ILWxhi1L9xnTDixuAyszOEcbT0Cn+dpW4+2spAx+/Js59bL8nd3mvp+9l3cQgAAEXCLgBaQPumTvcnXFgVUuKYeOC3yflQgdsjeqQgAClRM4KzWx/lomoKcv2ROLpVcinMhXritnQMBkAhPimLWl5rl2tj35cl59+jviAJ8o5ayyMz3Z5OsD2SAAAXsJMCe113ZRSo4DK0q6lvYd+AUisCy1HWJDAALxEdCrhn3mO3n1xCmpX2PJDJo0wviuD0aKh8CoJamxgzoFWSI3nzxbsMbhFo8FGQUCEIBAaQLZIE9QRWk0Tm/lUY/T5l9YeSnk/rLsXbPwEeyBAAQgAIFpAqtaPfX2rVnV3jC9xcy/nvzqL2tXih9/M+2DVJURyEtUYd9lOadUMFNlXUV69Mm+QP3rizk1KsXmaRCAAAQgUBaBs1LAfW1ZR3KQUwSIwHLK3OUrK5McPN7l4+JICEDAcQKvXg7UI9+cUKf6zE4p1IFiRGE5frGmSH3T67rpyMxjZwrqn5/DeZWiyw5VIACBOAgEioygODhbOAYOLAuNFofIAUXz4sDMGBCAQIoIjEh0xWPPTaUUGuzHGpfVz2gQsJ6AOGPHDL6WB8eU+tQzefX1c3nTA8SsvxRQAAIQSB8Bz6eAe/qsGo5G2XC6oZe0ESgE/ld9z/CY/LRBRx8IQMB6Avpb8+lX8uqVwUDdscVXHY3mJetNiKNNF3T3eYRl/fXmsgJ6QQKdQmhie+liQX3xxYIay3MfZaJ9kAkCEDCfQCBzUfOlRMIkCHD7mgR1C8bMNI7rLw1Dbw0tAIiIEICA0wR6LxfUJ2SVwudfM3MCSxqh05dnKpQvpg8apol2qB2SRR0+ezyP88ow2yAOBCBgFYFgPDP2lFUSI2xsBMx7NByb6gy0FAEp5H5cjtm61HHshwAEIACBhQls7/TVmzZmVNagR0aZjFIdrQvLzB4ImExA13K7OCi12w3yD/eNBOrzL+TVhSGDhDLZiMgGAQhAYGECx6WA+/aFd7PHZQKkELps/SV0l1uwJ8XDiQNrCU7shgAEIDBNQE9d5z4Zeu58Qb02LCmFWzNqmSEphXmdfiX/tCOLBgHbCIxLGqxJzqvnegvqiVN5pdMaaRCAAAQgUBsBuZcifbA2hKk+26DnwanmbKVyHoXcrbQbQkMAAskRmOu8mpbkvERl6JTC4xfMycw2uQD2NDf+QqAUAVPSB3Pycf63E3n1hZdwXpWyE9sgAAEIVEOAOWg11Nw5BweWO7auWNNCxsP7XTE1ToAABCBQmsC4RGfoFKPHX5TJrgF+rGIdLLKdShuLrcYS0AsQ6AispNvFEaUeFaf0Mz0GfJiThsH4EIAABMIkEPhPhtkdfaWLACmE6bJnqNq0es3fGFbDE9JpXagd0xkEIAABhwnolEJd5P2OrVl1VfNCMVvRAyqI80qvSFjHN3z0sBkhNAKj+q4kYcerThk8KCmDOVIGQ7MrHUEAAhCYIjAxUah7GhoQWIhAcnfOC0nEdqMISCH3r4tA32+UUAgDAQhAIAUEdFH3W6/NqO9blVwwdIM4r1qaUwATFZwh0CfF2/Vqf0k0HUV58ISsLnohYQ9aEsozJgQgAIF4CHxdCrjfFM9QjGIjgeTumm2k5aLMHkX0XDQ7OkMAAtET0PVzDp3Mq39+Pq/G88lMiHUaoUnFsKOnzgg2E9ART0k5r3qljt0jkjKI88rmKwjZIQAB0wnIPQklbEw3UsLy4cBK2ACmDx8E1MEy3UbIBwEI2E3gxdcK6hPfyitd6D3upkcs1sKKe2DGg0AVBEbHqzgphFN0nau/+1ZO9Y/G/xkNQXy6gAAEIGANAc9n7mmNsRISFAdWQuBtGTZQAUX0bDEWckIAAtYSuDQSqE/KBPnfX40/NwoHlrWXjVOC60jBuFcf1JGRn5MISb3SYEJBkk7ZGGUhAAEIFIKACCwug0UJ4MBaFA87T6/qfUYoDEECAhCAAASiJaAnyDql8J+O59RYLr5ID13IXa/sRoOAyQT0dRpnumvv5UB94umc0hGSNAhAAAIQiIXAcGum99lYRmIQawngwLLWdPEI/uijSq+x8414RmMUCEAAAhB46WKg/kZq7bwiE+i4WtyRLXHpxTjpIVBcfTAGdfSn7mmJhPzbb+fVwFgMAzIEBCAAAQhME/j6/oNKHlfQILAwARxYC7NhzxQBWaqSUE6uBghAAAKREZjvqBqUifPffTunvnI2H0vUCWmEkRmXjkMgoCOvdARW1G1Exvin7+TVYYmElDSWqIejfwhAAAIQmE2A0jWzefCuBIFsiW1sgsAsAgUp5O553MjNgsIbCEAAAqERkMcEJVpBvna/8nJB6dXP3rIpqxoj/MXO69Xd5F8mU0IQNkEgYQI6QjBqf9K5gYJ6/IWCGhrnfidhczM8BCDgKAFPUcDdUdNXpDYRWBXhcvPgTLZABJabpkdrCEDAAAIndUqh1OI5NxjtxHosoRXeDECMCIYTiHL1Qf2p+vq5vPr0M3mcV4ZfB4gHAQikm0AhTwH3dFs4HO1KP/YNp296SQ8Bb9/urvOizlXpUQlNIAABCNhFwJdf7B9a46s3XJNRXgS/3rrPZW0qkr7tIo20JhHISQ31S4PRSDQskV1feCGnzvRH6xyORnp6hQAEIJAqAhcPHO5dKRrxhZwqs4avDBFY4TNNY4+BzGueSqNi6AQBCEDAFgLTKYV//52cGo4gzUmnaOViqDNkC2/kNIPAeESRgefEaaVXGcR5ZYadkQICEHCegM74wXnl/GWwNAAcWEsz4ghNIAgoqseVAAEIQMAAAmdl4q1XKTxzSUJTQm6sRhgyULqrmUDYqw9qR/CTsjjCP2hH8ARzpZoNRAcQgAAEQiDgBaQPhoDRiS5wYDlh5tqVDHyfOli1Y6QHCEAAAqEQ0KlPn5bV0p44VQh1tbSJGIplhwKATpwgoFfHLITopx2UyMW/fzannpTFEaIuCu+EgVASAhCAQEgEmGuGBNKBbiJc08gBeg6pGPiFJ718BEVXHGKIqhCAAATCJKBjR55+Ja8uDPnqbVt81Vpf+3e07lM7DRrqw5SUviBQHYEwIwJPyWIIX3gpp0ZJk63OGJwFAQhAIEIC2SBPsESEfNPUde13u2migS6LEpBC7i/LAWsWPYidEIAABCAQO4EmeRz1li0ZtX5Z7YHVdRml2lpjV4EBITCLgHamXuyvvSCKThn8mqQMfvUcUVezAPMGAhCAgDkEzkoB97XmiIMkJhOo/U7XZO2QLVQCskIVnvFQidIZBCAAgXAIjEhUyWPTKYU1plxNyPlhpm2FoyG9uEZgTIq3aydWLW1wTKm//7akDJ7FeVULR86FAAQgECmBQFFrOVLA6eocB1a67BmpNgHF9SLlS+cQgAAEaiGgJ/s6pfCTz+TUwGgNU385NczUrVp04lx3CdR6Db50saA+IYsdvHK5hs+Cu/jRHAIQgEBsBDyfAu6xwU7BQDiwUmDEuFQoBBRyj4s140AAAhColkCvTNj/5pt59cJr1YdijUv0Cw0CSRHIy6U7UWWtKn3uoZMF9dnjeTWWw3mVlA0ZFwIQgEC5BALmmOWi4jghgAOLy6BsApnGcZ1CWP2MqOyROBACEIAABGohMJ4P1Gefz6svnsgreVlx006AXL7i0zgBAqEQ0OmD1bS+kUD9raQMfvNVLt5q+HEOBCAAgQQIBOOZsacSGJchLSVAEXdLDZeU2FLI/biMvTWp8RkXAhCAAARKE9B+qlI/6l0tnrpja0Z1NJbaW7ovvVWvRNjStPB+9kAgKgJ9g0ppJ2ol7fj5gjp4Mq8m8F1Vgo1jIQABCCRN4LgUcN+etBCMbw8BIrDssZURksoEiSJ7RlgCISAAAQjMJrCQe6p3KFAfl1pAz1+ozCMwPlF7Ee3ZEvIOAksT0KmDlTivcnJZHzpVUP/yIs6rpelyBAQgAAGzCMjckkXCzDKJ8dLgwDLeRGYJ6FHI3SyDIA0EIACBMgiMS1TK517Iq8dlkl9uamAgd5U5cWLRIBAngdEKrrm+EaUe/ZakDMriBTQIQAACELCPAHNL+2yWtMTZpAVgfLsIFDLeV/3KHuLbpSDSQgACEEgJgVIphc9JmlXv5YK6Y1tWXdW0UMzWFQB6Jbi6uivveQWBKAnoa1ZH/pXTnuuVlMFT5Ttky+mTYyAAAQhAIGYCgU92T8zIbR+OCCzbLRiz/K1e8zdkyDJvL2MWjuEgAAEIQOB1Agu5py5K1MojklL4768u/TRiQr7tdSQWDQJxECimrS5xvelowsclmvALL+G8isMmjAEBCEAgQgITE4W6pyPsn65TSAAHVgqNGqVK+w+eGpX+vx3lGPQNAQhAAALREijWDZKC1zqlcLGi15VExEQrMb27QGB0idUHz0s9t09WUc/NBXboCAEIQMBCAt/6vS+dlcdqNAiUTwAHVvmsOHKagEexvWkU/IUABCBgMwGdUvgJqSF0QRwDC7WxJZwKC53HdghUQqAgl6Au4L5Q0ymDf/ftnLo0uvC1utC5bIcABCAAAfMISIQ3BdzNM4vxEuHAMt5E5gkYBB5fNuaZBYkgAAEIVEWgbyRQj4hjYKGUQh2tVcmqcFUJwUnOE1jIUVpcgOD5qZTBpbNenecIAAhAAAK2EPB85pS22MokOSnibpI1LJElUMGTC9VWsUQFxIQABCAAgRkEtIPqkKQUnusP1O2bfNWQnfEtLwEv4xKF1dQ44wReQiBkAqVWH+y9HBRXzxwg6ipk2nQHAQhAIHkCBVa3T94IFkpABJaFRkta5NOrep8RGYaSloPxIQABCEAgXAIvXSyoj0uNoVcHZ6dpFVeGm70p3IHpzWkCOSnMnpd/001fak/LIgN/+0xO4byapsJfCEAAAqkiMNya6X02VRqhTCwEcGDFgjldgzz6qNK3mXo1QhoEIAABCFhNYL5XamBMFR0HT53Lq+m9OkJLOxloEIiCwMz0wRGpg/WPz+XVYYkILJAyGAVu+oQABCBgAoGv7z+oFql8aIKIyGAiARxYJlrFApkkuYQ6WBbYCREhAAEILE5gRqrgjAN1Qe2jZwrqn57LqdGp28uxiRkH8BICIRIYm7rGvjtQUI88nVOn+/BchYiXriAAAQiYSOBJE4VCJvMJ4MAy30ZGSligkLuRdkEoCEAAAmESONEXqI8/PaG+OxAonUYoKwbRIBAqgXFxXukIP50y+A/PFtTlcS6yUAHTGQQgAAEDCXiKAu4GmsUKkXBgWWEm84TMZAtEYJlnFiSCAAQgUBuBEr6DQSng/qlnc+rLL+fVBMH+tfHl7HkEBkaUeuw7UymDeEjn8WEDBCAAgTQSKOQD5pJpNGwMOpXOHYhhYIawnoC3b3fXedHiKus1QQEIQAACECiLwK4Nvrp9W6asYzkIAksR0JFXv38opwZZZXApVOyHAAQgkCYCFw8c7l0pCpV4bJYmNdElCgJEYEVB1Y0+A/F+PuWGqmgJAQhAAAKawJdOF9QItbC4GEIi8I1zhdLOK6Y0IRGmGwhAAAJGEtDRV3zTG2ka84XCgWW+jcyVMAgovmeudZAMAhCAQOgEdMTMt1+hwHboYB3t8N/FgVWykR9QEgsbIQABCKSBgBeQPpgGOyalAw6spMinYNzA98ldToEdUQECEIBAJQSe/u4CTodKOuFY5wm8Nhyoc/08gHf+QgAABCDgHAHmkM6ZPFSFcWCFitOtzrJBHgeWWyZHWwhAAALq7KVAXRjC8cClUBuBpyX6iprttTHkbAhAAAI2EmAOaaPVzJEZB5Y5trBOko8cvvCKCH3WOsERGAIQgAAEaiLwLaKwauLn+snacUUkn+tXAfpDAAKOEjg7NYd0VH3UrpUADqxaCTp+vucporAcvwZQHwIQcI+AjsKiQaBaAoNjgeofqfZszoMABCAAAVsJMHe01XLmyI0DyxxbWClJQBE+K+2G0BCAAARqITCSq+VsznWdwBjXj+uXAPpDAAKOEmDu6KjhQ1QbB1aIMF3sqhBQyN1Fu6MzBCDgNoGxCbf1R/vaCODAqo0fZ0MAAhCwl4DPKvb2Gs8IyXFgGWEGe4XINI7rFEKWpLLXhEgOAQhAoGICzXUVn8IJEHidQFu9UtnM6295AQEIQAACbhAIxjNjT7mhKlpGRQAHVlRkHen3oS/09YuqLzqiLmpCAAIQcIzA/FpX1y731Y9syzrGAXXDJNBU56l7d2SVdmTRIAABCEDAGQLP//7BS5ec0RZFIyGAAysSrG51KtMbQkHdMjnaQgACzhDwZml64+qMunNbRtVL9IxeSY4GgWoI6Guns8VT77shq7paZ19jV/rjArvCglcQgAAE7Ccg3+os/mW/GRPXAAdW4iawXwCPQu72GxENIAABCCxCwBcfw94NGXXbel/JCkLFhnthEWDsWpTAtPOzpd5T77k+qzauKOXEKrVt0W7ZCQEIQAACBhNgzmiwcSwSDQeWRcYyVdRCxsObbqpxkAsCEIBAjQQasp6667qs+t5Vs28Zpp0QNXbP6Q4SmHnt1Ek0n05JvXnt7OvLQSyoDAEIQCDdBAIKuKfbwPFox91CPJxTPUqr1/wNUZA1qVJtZZSDAARcJNDRKGle35NRazrmR8PMdEK4yAadqycw99rRV9fNazLqzZsyyp8O8au+e86EAAQgAAHzCExMFOqeNk8sJLKNAA4s2yxmoLz7D54aFbG+baBoiAQBCEAAAlUSuLpNO6+yannTfOeV7nKuE6LKYTjNQQILpZ/u6PLVu6/LKB31R4MABCAAgVQR+NbvfensSKo0QplECODASgR7Cgf1KMqXQquiEgQg4CiB68WRcI/UJmqqWxgADqyF2bBnDoE5HqvFrp21Eu33YzdkFnSczumZtxCAAAQgYAEB+d6n5IwFdrJBRBxYNljJAhmDgDpYFpgJESEAAQgsSqCYyiW1iG7XqVxL3CEs5oRYdBB2ukdgTkBVUFgcgU5dvVei/64pkbq6+JnshQAEIAABEwl4PnNFE+1io0xL3J7aqBIyJ0EgUMGTSYzLmBCAAAQgEA6BOrkjeMe2TLEWUTk94sAqhxLHlCIwJyCr1CGqMavU3duz6vpOblVLAmIjBCAAAYsIFFi13iJrmS0qdwVm28ca6U6v6n1GhB2yRmAEhQAEIACB1wk013vqPTsyatOK8m8LynFCvD4ALyAwg0C5zk8dBXj75ozasyGjqO0+AyAvIQABCNhFYLg10/usXSIjrakEyr9TNVUD5DKCwKOPqrwIolcjpEEAAhCAgEUEVjZ76kclXaurtbJbgsISaWAWIUDUmAkUKvR+ft8qX92xNaOymZgFZTgIQAACEAiDwNf3H1S5MDqiDwhUdrcKLwgsQkBKXFCcbxE+7IIABCCQLIH5XoNrl/vqveK8amuoQrL53VXRCac4SaCKa2ezRAfeu0Ou1XoniaE0BCAAAZsJUGrGZusZJjsOLMMMYrM4BQq522w+ZIcABFJPYHYl7RtXZ9SdUvOqvsqoFgKwUn/BRKKg9l1V4b8qytLZ4qn33aCjBWdfy1cErbbnKz3wCgIQgAAEwiXgKQq4h0vU7d5wYLlt/1C1z2QLRGCFSpTOIAABCIRPwJe5/w9LTaHb1vs11RVaaiW58CWnx1QQqNHH1FKs15ZVG1eUcmKV2pYKaigBAQhAwFoChXzAHNFa65knOL/05tnEZom8fbu7zosCV9msBLJDAAIQSCuBhqynfkSirta01/7zn5FHYB1taSWFXlERyEvoXv9g7b1rP9iTZ/PqKy8TC1g7TXqAAAQgEBmBiwcO966U3mt8fBGZfHRsGQEisCwzmOHiBjIlespwGREPAhCAgJMEOhol/ep7wnFeaYDciTp5GdWudEgXjnbB3rwmo968Kat8liis3S70AAEIQCAaAjr6KqRv/mgEpFe7CODAsste5ksbBBTpM99KSAgBCDhG4Oo27bzKquVNtUdeTaMLuB2dRsHfCghUugLhUl3v6PLUPddnVFN2qSPZDwEIQAACcRPwAtIH42ae9vFwYKXdwjHrF/g+Oc4xM2c4CEAAAosR2NHlywQ/q5rqFjuq8n1F/xVOrMrBuX5GBNfM1ZISq4u7h+mgdd1M6A8BCEAgDALMDcOgSB8zCeDAmkmD1zUTCPwCEVg1U6QDCEAAArUTKKZYrfUlxSqj/Ch+7cUREYEvonbF6cFoAmFHYE0rq1Nk75Uow2s6wosynO6bvxCAAAQgUB2BbJAnuKE6dJy1AAF+5RcAw+bqCUgh95fl7DXV98CZEIAABCBQC4E6cVi9dUtWbSq5UlstPc8+d5kUcY/EOTZ7GN6liMDomFLDo9EpVJCa7l88kVfPnqe4e3SU6RkCEIBAWQTOSgH3tWUdyUEQKJNAFM9kyxyaw9JKQGqp4mlPq3HRCwIQMJ5AS72n3rMjE7nzSoOgDpbxl4NxAkZ9zWiH6u2bM2rPhoyitrtx5kcgCEDAJQKBIjPHJXvHpCsOrJhAuzRMQLE+l8yNrhCAgEEEulo89aM3ZFRXazw/78S4GGR8S0SJK+30+1b56o6tGZXNWAIGMSEAAQikjYAXfC1tKqFP8gTiucNNXk8kiInA/r1K1gHy1sU0HMNAAAIQgMAUgU0rfPUeqQHUKhFYsbW4vBGxKcRAUROIOgJrpvyb5TPxXlmhUEcl0iAAAQhAIF4CQeBds18qDcQ7KqOlnQC/6Gm3cIz67du7Yo3KZ/9ahtwT47AMBQEIQMB5Ajdd46tb18afMtXSpFRDvfP4AVABgcvDSo1PVHBCCIdeHg/UY8/l1fkhPK4h4KQLCEAAAmUTEGfDF/J57yc+eqynt+yTOBACixAgsHoROOwqn8D9u1f+iAoyn5Mzriv/LI6EAAQgAIFaCOh6P2/amFE3XR2/80rLXVenSNGqxYAOnjs2rpQutB5nq894avtKX10cDlRfhAXk49SJsSAAAQhYQmCj56ufvPXapq8dOzN82hKZEdNgAjiwDDaODaLplME3rOv6DUkb/BORt8UGmZERAhCAQBoINErC9ru2Z5VOk0qq6fpCdSIHDQLlEhiT6Ku4HVhatox8TLaIE0sXdj83QCRWufbiOAhAAAIhEGjzlPeBnetb/LecHjp0UNaACaFPunCUACmEjho+DLXv33X1usDLfVz6ujWM/ugDAhCAAATKI9DR6Kk7t2fU8qZkf8YbJX2wWdIIaRAol0D/ZaXy+XKPjua4Z3oD9W8n8qoQZ0GuaFShVwhAAAJWERDP1RfrxtX7P/KV3h6rBEdYYwgQgWWMKewS5Fd2dd3tecFnReqtdkmOtBCAAATsJnC1PMe8+/qsamtI1nmlKWbkLqJe0ghpECiXwOiYPHpP+Nm7Xq1zTbunTvYVVC7mdMZyOXEcBCAAgTQSkDuXDYWM+rFd65q/evTM8Jk06ohO0RJI/u43Wv3oPWQC+/eubxwujDwkd5+/EHLXdAcBCEAAAksQ2NHlqx/ekFG69pUJTTuvWptNkAQZbCHQN5C8A2uaVf9ooD4jxd37RhL2qE0LxF8IQAAC7hDIKU/9TvOh3t/aL5nl7qiNprUSIAKrVoIOnb9v58ptE17uc5K1/G6H1EZVCEAAAokT0E+bbl7rq93rkynWvhAA7UhjFcKF6LB9HgHxE41IBJYprTHrqW1SF6vncqAGDJLLFD7IAQEIQCBCAvpR3N6Ja5tvesM1Kz7/5bMDIxGORdcpIoADK0XGjFKVfbu6PqB879Myxroox6FvCEAAAhCYTaBObvHevjWrbug2JOxqhni+eNZwYM0AwstFCeg4J51CaFLLysdKO7Euy+qI52WVQhoEIAABCMRJwNua8XPv37W+9StHTw+9HOfIjGUnARxYdtotNql/8ZY1TXs2NiN/SbUAAEAASURBVH1MBnxQ/km5XhoEIAABCMRFoKXeU3ddl1FrO8xzXmkGekW3xoa4aDCO7QR07atRcRSZ1vR1vFFW82yo89SZfpxYptkHeSAAgbQT8DpEww/uXNc8LnWxjqVdW/SrjYDOSqBBoCSBX9696vpMUHhE8pO/p+QBbIQABCAAgcgIrJRC0++SlQbbxIllatMT/+XtpkqHXKYRyEuVk/5B06SaLc9LFwvq8y/mVS7hlRJnS8U7CEAAAs4Q+IwfjP2HB4/09zmjMYpWRIAIrIpwuXPwfbu6fsr3gk+L8+oad7RGUwhAAAJJENARH7OdVJskGuTO67KqSWr0mNy0dE2NJkuIbCYRKIgDa8zACKyZjFY0eWrDMl+dkhUKx3FizUTDawhAAAJxENgWeNkf37m29ctHXx46G8eAjGEXAbPvjO1imQppf/7mFe1N9dk/EWV+PBUKoQQEIAABywjcuDqj9lzrF9PzbBB9uQT+czNhg6WSl3FiQqnB4eTlKEeCofFAPXY8r3qlwDsNAhCAAARiJzAWeN79Dx/q+W+xj8yARhPgntNo88Qr3AO7Vt5U8PxPyKib4x2Z0SAAAQhAQBdEv21Dxshi7YtZZ5mkEGrZaRBYisC4OLAuW+LA0rpMSMTY4y/k1EsXcWItZVv2QwACEIiIwD+MZ8Z/+vcPXroUUf90axkBUggtM1hU4u7b3fl/Bp7/Sem/M6ox6BcCEIAABEoTaMwqSRnMqM1XmVmsvbTUk1v1KoQ4sBYjxL5pArqu1ERu+p35fzPimN0in8mcOLJeGcSJZb7FkBACEEghge2ZIPOeWza2/tuxU0O9KdQPlSokYN+dcoUKcvjSBPbdtuqHJQHkD+VIVhlcGhdHQAACEAiVwDKpufO+G7LqmnY7f5L1ynI0CJRDwMZrRS9UsOvajHrzpow4agk1LMfOHAMBCEAgZAJb/HzwWMh90p2lBOy8W7YUtrFiB/l1xsqGYBCAAARSTGBNu6d+9HsyalmjvRPjQKJTaBAoh4DNvs4dXb66S6IkGwxfWKEcO3AMBCAAAQsJXL1/r5J4dZrrBHBguX4FaP3zwaekWvDXQAEBCEAAAvERKE6Ir7d/QmyzUyI+azOSJmC7s3NNh/0OZ65ECEAAAhYSCFQQ/Mb+g8qiJHQLKVsiMjWwLDFUlGIefXl4/AeuX/2XdRPjUopX3RzlWPQNAQhAwHUCOtbq5rW+2r0+I88O7I28mrZjnTwPzXI3MY2Dv4sQGJepR17qYNncGus8ta3TVz2yOuHAmM2aIDsEIAAB8wnIXdJAEAQ/9fCR839qvrRIGAcB+++c46Dk0Bj37+76SXma/ieicotDaqMqBCAAgVgI1Enc81u3ZNWmFen5+W1uVKqxIRZ8DGIbAR2eN+NSH5QVCCdkJcI0tILo9sTJvPpWDzm0abAnOkAAAgYS8NS/+35w74MHz79ooHSIlBABnpkmBN7UYY+eGfrmno2NnwoK/l656ewyVU7kggAEIGAbgZZ6T2roZNVaSUNKU8tKBJaOwqJBYB6BOZf6uEQsacdPGpoOntyw3FcNEpF1pj8lSqXBMOgAAQikhcBfNQ9n7/nwl3p60qIQeoRDYM6tRTid0ov9BPbv7Wwdzns6VPPH7dcGDSAAAQgkS2Bli6fetT2j2sSJlbbWIOvXtjSlTSv0iYJA/2X7UwhLcXnpYkE9/kJeTRCMVQoP2yAAAQhUQmAkUN4vPHy4588qOYlj3SGQvjtpd2wXi6b37er6KXnKqFMKmZ7EQpxBIAABuwnMyZkSZTat8NXbNmdSWyeqoU4cWM12Ww3p4yHQPygOrJQ6eS4MBeqx53JqcDwelowCAQhAIIUEjktt0HsfOtTzrRTqhkohESCFMCSQae3m2Jmhp2+9tumznvLeIjouT6ue6AUBCEAgHAKznwvduDqjbt+UUZkUr/nri246CosGgaUIjKS46HmzRFduXemrc+KkGxonpXCpa4H9EIAABGYSkICJv/caJt750L9dODNzO68hMJfA7DvtuXt5D4EpAj9/84r25vrsn8st2XuAAgEIQAACixPw5df1tg0ZdUN3ij1XUwj0CoTtrYvzYC8ENIG+ASUroaebhU4jfPyFnHrpYsoVTbcZ0Q4CEIiPwFjgefc/fKjnv8U3JCPZTIAILJutF6PsT54bGZMC74/eur61T+Zlb5ahuXZi5M9QEICAPQQapaD5u6RY+5ar0u+80lbxRM1GIrDsuUATklQ7rtIcgTWNNSM3SVskEksXeT83gBNrmgt/IQABCJQgcEYVvHc+fKTn70rsYxMEShLACVESCxsXInDs9NBXbt3QfNALvLfJMW0LHcd2CEAAAi4S6Gj01D3XZ1V3q8xeHWl6ot7Y4IiyqFkTgdEUpxDOBKM//WvafdXa4KnTskJh2qPOZurOawhAAALlEQj+cSLX8PaPHXvlhfKO5ygITBLAgcWVUDGBY6eHz+y5tu2vJBHgRjl5U8UdcAIEIACBFBK4ut1Td4vzqk0mra61JhxYrpm8Yn0LEow05liB8y5ZfXRNh69O9hVULqXF6yu+EDgBAhBwnUBeeeq3mw+f/88Pnh0Ydh0G+ldOAAdW5cw4QwgcOXN5+Oqbhz6+fKhFx8fvkX/uzdi4EiAAAQhMEdjR5at3bM2oep0/5FoTlXFguWb0yvUNxIHjmgNLU9IO7c2yEukZicQazVXOjTMgAAEIpIhAbyHw7nn4cO+fH5RIiBTphSoxEnDwTjtGuo4M9cCe7jcVCsHfiAur2xGVURMCEIBAkYD+EX3DWl/dvMbt50HL2+UpBncUfCoWITAhzpvBoUUOSPku7bz65+M5dZa6WCm3NOpBwG0C2itV+nbAeyKr8j/+kcMXXnGbENrXSsDtO+5a6XF+kcCR00Mnd25s+IQK/DfKhrVggQAEIOACgTopXv72rVknVhpcyp66iDsOrKUoub2/kFdqfMJdBln5vtjW6asRcWT1XibwwN0rAc0hkG4CJZxXgdwgHDi5queD//2zw7IWLQ0CtRHAgVUbP86eInD01MjAWzYO/eWElCyVTTvlX4nvL3BBAAIQSAeBlnpP3SUrDa7t4KtOW7RBHFi+G4supuMCTkCLnDiwdBSWy007eTcs91VDnVdMKXSZBbpDAAJOEHjNKwTvPXCk90+efZaUQScsHoOS3HnHANm1Ie7f3f1uWXPnL0TvZa7pjr4QgED6CayUwszv2p5RbeLEok0SaGtVqo5HYlwOixDQKxAOjy5ygGO7Tl0qqM89n1fj4tijQQACEEgdAc/7mpQ+fN9HD/WcTJ1uKJQoAW43E8WfzsGPnhk6fuv65k95ytPF3VelU0u0ggAEXCSwSYoxv3t7VjVJBAXtCoGGrFIZ7iiuAOHVPAI6+kpHYdEmCSxr9NT6Zb7SjiycWFwVEIBAqgh46k+bX+t870e+dvK1VOmFMkYQ4A7cCDOkU4j9e9c3DhdGHlJB8Avp1BCtIAABlwjcuDqj9lzrU+uphNFbmibTCEvsYhMEigR09JWOwqLNJjA0HqjHjhekLpbEKtAgAAEI2E1gMPC8n334UM8jdquB9CYTwIFlsnVSItu+XV0fkIpYfyzqtKREJdSAAAQcIqBrO71pY0ZdLwWYaaUJNDcq1agrINIgsACBoRGlxsYX2On45gnxXT3+Qk69dJHi7o5fCqgPAYsJBN/Jq8x7P3b41WctVgLRLSBAwL8FRrJdREkp/ObO9e1/r1SwV3Tpsl0f5IcABNwh0CipcXduyyqdOkhbmEBW7ibqhBUNAgsR0CsQ5gkyKoknI4+Tt6ycjO48N4ATqyQkNkIAAiYT+Kvm4bo7f/fLr3zXZCGRLR0EiMBKhx2t0GLfzpVtysv8mfKC91khMEJCAAJOE1je5Kk7pVh7h9SqoS1OoFFWIWyWNEIaBBYiMDjEKoQLsZm5/Znegvq3k3lVwNk3EwuvIQABMwkMy8Jd/8fDh8//hZniIVUaCRCBlUarGqrT0ZeHxyUa629vvbb5ohR4f7OIyfVnqK0QCwKuE1jb4am7rsuoFlYaLOtS0AXc6+vKOpSDHCWg0wcLBBctaf0uWeX0mjZfnewrqBxOrCV5cQAEIJAYgec9z3vrgcO9jycmAQM7SYCcCCfNnqzSuVzhUyLB8WSlYHQIQAACpQns6JaVBsV51ZAl8qo0oflbAxwT86GwZRYBLpFZOBZ9c4040N93Q1YtkyhQGgQgAAETCUgwwudPdPdQ78pE46RcJiJgUm5g09S7f0/nHt/zvyBF3TeaJhvyQAACbhPwZK64a31G7VyXkZUGmThWcjXoQvcNkkZIg8BCBPQKhDg6F6Izf3ujONC3SV2sV4cCNcjqjfMBsQUCEEiawM3LB5t337Km7bPHXh6SJHEaBOIhgAMrHs6MIgT27er+kPz5hDiv2gECAQhAwCQCdeKAuWNrVl3fRWByNXbxxd+HA6sacu6cM4ITpmJjZ+XraLs4sUZySvVeJoatYoCcAAEIREvA8zb4GfX+W9e1fOXYmaGXox2M3iEwSQAHFldC5AT2713fePPa+v8hjqtfl8G45iInzgAQgEAlBHSdq7uuy6o1krZDq46ADlhrbKjuXM5ygID4XnBgVWdn/dnasNxXDXWeOtOPE6s6ipwFAQhESKBdvqZ+aue6Zql1PHw0wnHoGgJFAtytcyFESuCBvZ2bC3lP17y6IdKB6BwCEIBAFQQ6pWDyO2WlwTaKtVdB78opepK9nNjaK0B4NYuATh3sG5i1iTdVEDgthd0/+0JejeerOJlTIAABCERP4B+8hon/8NAX+vqjH4oRXCVANIyrlo9B7/v2dL5DFfzPylDXxjAcQ0AAAhCoiMCmFb66c3tWNUlkA602AtqB1UQEVm0QU3y2dmCNyiqEtNoI6KLu6yUa69SlAk6s2lByNgQgEA2B7SqfufuWja0Hj50a6o1mCHp1nQAOLNevgGj09/bt6rxfVqf4n9J9czRD0CsEIACB6gncuDqjbt+UURlKXlUPcc6ZjY1KMsVpEJhPoCAOrDEcWPPBVLGlWRzuW6/y1blBpYbGBSwNAhCAgFkEVnqB+qlb17eeOHZ66BmzREOaNBDgXjMNVjRIh5+/eUV7U332f4lIdxkkFqJAAAIQKBLQq+W9aWNGXd+J5yrsS2JZm1KaLw0CcwnkJOVt4PLcrbyvhcBEQanHJZ3wpYvyggYBCEDARAKe+tPm1zp/fv8zz/AIw0T7WCoTEViWGs5EsX9ld9f31mf8L4pst5ooHzJBAALuENBxCXOf0DRmlbpzW1bp1EFa+AQaJIVQr0ZIg8BcAnnxsYxPzN3K+1oIZOSztkVWKNTpu+cGiMSqhSXnQgACkRG4abxp6O23rOl4/EsvX6YuVmSY3eoYB5Zb9o5M2/t2df+4TFw+LQN0RzYIHUMAAhAok8BcP0pHo6fuuT6rulrn7imzQw5bkkBDHRFYS0Jy9IC8RGDhwArf+PrbbE27r9oaPHVKVijUtcZoEIAABEwiICVlrvH94Cd2bmj596Onh06YJBuy2EkAB5addjNG6v17VfYN67o/4qng90SoemMEQxAIQAACUwTWdnjq7uszqlUmebToCNSLAyvDXUV0gC3uWacQTuQsVsBw0fVqqms6fHVSVinMkVFouLUQDwJOEmhRgXr/zvUt/ltODx06qOQdDQJVEuBuvkpwnKbUf9m9qjOnCp+Qi+hN8IAABCBgIoEdXZ76Yal55es8G1qkBFplyQ7txKJBYC6B0TGlhkfnbuV92AT6RwP1mefyqm+EuWHYbOkPAhAIh0DgBY9lCuMffPBIf184PdKLawR4VuqaxUPS977dXTslWP1fZUr4vSF1STcQgAAEQiOg3VU3r/XV7vVZqRGD8yo0sIt0VCc1xrLcVSxCyN1dExKBlSMCK/ILoDHrqe0rPdUzFKgBcRrSIAABCJhGQFIKtwVe9j23XNvyxLEzQz2myYc85hPgVtN8Gxkn4b5d3R+S+eAjItgy44RDIAhAwHkCdVKj/Y6tWXVDN8Xa47wYsuLA0k4sGgTmEtDpgzqNkBY9gawUJN0mxd1HhXnPZSKxoifOCBCAQBUEVsijxZ/eub71VamL9Y0qzucUhwnwWNph41eq+v696xtHCiN/FATBz1R6LsdDAAIQiINAS72n3rUtQ7H2OGDPGaNJViFsapyzkbcQEAJDI0qNsYh67NfCv79aUIdP5SnuHjt5BoQABCog8FcTufr/9HtfOiu/FDQILE2ACKylGXGEEPilPSvW5gq5z8nLdwIEAhCAgIkEdCHju3dk1Iomns0kYR9dwJ0aWEmQN3BMHfgz42M4NqFUgeLisRtqlay6ukq+F0/1BSpPMFbs/BkQAhAoi8CNGT9/xy3rW//l2OmhS2WdwUFOE8CB5bT5y1N+321db/ED/wuSs7y5vDM4CgIQgEC8BDZf5as7t2VVU92MWXO8Ijg/WlYyNnFgOX8ZTAKY8zEcl3pMBRwoiVwcy8Shf+0yv+jEGieNMxEbMCgEILAkgdXys/GTt6xr/brUxTqx5NEc4DSBObcYTrNA+RIE9u1cebXy/ZdkF4khJfiwCQIQSJ7AD13jqzeuy8wM+EheKAcl0PWv2locVByVlyTQf1mpPM6TJTlFecDQeKAeO55XvSXrYs0JmYtSEPqGAAQgsDCBUQnX3XTg6IXvLnwIe1wnQIVb16+AJfQvZP1r5RCcV0twYjcEIBA/gYw8gnnL5oy6BedV/PBLjEiATQkobJokwMWR+JWg6wO+Z0dWbVpR6taf59mJGwgBIAABTaBxau4JDQgsSKDUr9iCB7PDPQKnu3qflPvOL7qnORpDAAImE2iSaJ+7ZDJ2XSc/Y6bYKcBJYYopjJOD9EEzTKJXaH3H1oy66RoqiJhhEaSAAARmEtBzTj33nLmN1xCYS4BfsLlEeD+LwLPPquCmHasfqRsf2y47rp+1kzcQgAAEEiDQ0SjF2q/Pqi4pTkwzh4An5miUlQhpEJhLYFRqYNHMIKA/p+s6PNXWIMXd+wNWKDTDLEgBAecJBF7wWC7XcM///PwAa9Y6fzUsDgAH1uJ82CsEnnzxYv7qm4c+tfxyy2p5exNQIAABCCRFYK1MvPRKg62SDkMzj0ATDizzjJKwRDoybwQHVsJWmD+8XrV1TYevTvYVVI4VIucDYgsEIBAbgcBTf9nin/+JB4/gvIoNusUDMQOw2HgJiO7t29P1mypQv5nA2AwJAQg4TmBHl69+eKOvfB1CQDOPgJhlRbt5YiFRsgS0A6tvIFkZGH1hAv2jUtz9uZy6OLLwMeyBAAQgEA4B+UGYu+SO5/3BgUM9/7fs0DtpEFiSABFYSyLigJkEjp4eOnjrtc0XPeW9TbYzi5wJh9cQgEAkBPQXzc1rfbV7vaw0iPMqEsZhdapTCDFRWDTT0Y+ufzVGQoixxmzMemrbSl/1DAVqgEg5Y+2EYBBIB4FZU0ftsLr/wOHeX0+HbmgRFwEcWHGRTtE4x84MP7lzfctLotK75B/XUIpsiyoQMI1AnXzD3LE1q27opli7abYpJU9DvZIIuVJ72OYqgUDS03BgmW39rHxotRNrNKdUz2WCIMy2FtJBIBUEckEQfOjhI+f/KBXaoESsBHA+xIo7PYNJJNa3blnX+iV50n63aEXVk/SYFk0gYAwBXefqruuyUqcFj4gxRllCkEbtwMLXuAQlt3bnxR8yTgSW8UbXkZPrl/uqoc5TZ6S4Ow0CEIBARASGpWD7PQ8fPv/JiPqn25QTwIGVcgNHqd6xM0Mndm9o+4J40LUTqznKsegbAhBwi4AuMHyPFGtf3oTzyibL19dJWC4OLJtMFrmshbw4sCYiH4YBQiKwqtVTq+T791RfoLTzkQYBCEAgPAKefLOod4jz6ovh9UlPrhFgZuCaxSPQd9+e1depIPd5qXyyNoLu6RICEHCMwOYVvnrr5ozK8ojFOsu3yaOMOnFi0SAwTUCnDw5RIHwahzV/LwxPFncfpC6WNTZDUAgYTuAVySh/+0cP937TcDkRz3ACPCc13EA2iHfg0CvfUYXgjSLrt+bKy8O7uUR4DwEILEbgxtUZqXmF82oxRibv0wW7aRCYSUCvQkizj8DKZk/96PdkVZdEZNEgAAEI1EIgCLznvCD7RpxXtVDk3GkCPN+eJsHfmggcfXl4cPe67CcCL7tbOno9EovbnpqwcjIEnCGg6ybdvimjfvAan1XsLLZ6XVaprPyjQWCawIQUBs9JGiHNPgJ1GU9d1+nL6oSBem3YPvmRGAIQSJ5AoIKvZj3/LQ8eeeWV5KVBgjQQwIGVBisaosORM2Ojt2xvfcTLq+8XkbYYIhZiQAACBhHQwRhzHduN4vC4c1tWbZTUQZrdBLTzSjuxaBCYJoADa5qEnX/1qqKbrpp8sHBugHA6O62I1BBIjMC/eoXgHQ8d6e1LTAIGTh0BHFipM2myCh17aWjiLRuGHpkIWnUUlnZk0SAAAQi8TmCu82pZoyxlej1pKq8DsvyFrluGA8tyI4Ysvi7gnicCK2Sq8Xanv7fXtPuyqIavTl4qKNJC4+XPaBCwkYB8T/xN/0jvvX/wlWGqINpoQINlxoFlsHFsFe3gKVU4emboM7de2yLr2KhbbdUDuSEAgWgJrOvw1F2y0mBr/Vy3VrTj0nt0BDJyV6FXIqRBYJpA0YEllXtp9hO4SupirekQJ1ZfQeWwqf0GRQMIREbA+39bjvR+6GOvKB5fRMbY3Y5xYLlr+8g1P3Zm6F92rmselYI2b5bBmKFGTpwBIGAPgR1dvnq7FGuv0/kptNQQyEgWKA6s1JgzFEX0KoQFnB2hsDShk7YGT+mVYl/uL6gRqW9GgwAEIDCLgOc9dOBwzy8fVIqc41lgeBMWARxYYZGkn5IEjp4ZPrpzffMp8V+9Uw6gwE1JSmyEgDsE9JfAret8tfPajPi2cV6lzfK6GH9Dfdq0Qp9aCBQdWExjakFo3LmNWU9tW+mrnqFACrwbJx4CQQACyRDIy23dzx041PtQMsMzqisEcGC5YukE9Tx6evjpnetbnxYR7pJ/JJckaAuGhkCSBOrkF+eOrVm1oxtfdpJ2iHJs7ZNsxIEVJWLr+h4VBwc1k6wz25ICZyV6VjuxRiUKq+cyHsolgXEABNJNYCwIgp84cPj8X6ZbTbQzgQAOLBOs4IAMR08PHb/12qYjnvLuFnUbHVAZFSEAgRkEdJ2ru6RY+xqpe0VLLwGdEdrYkF790KxyAqOSQogDq3JuNpyhHdbrl/uqoc5TZ/pxYtlgM2SEQAQELkuOzV0PHz7/WAR90yUE5hHAgTUPCRuiInDszPDpWza2/qPEXrxbxmiPahz6hQAEzCLQKcs53CPF2pc34bwyyzLRSNOEAysasJb2OkKKmaWWK1/sVa2eWiXf86f6ApXHj1U+OI6EgO0EAtXj+8HtDx06f9R2VZDfHgLMJuyxVWok/ZU93Rv8IPi8KLQlNUqhCAQgUJKALvb71s0ZleVxSUk+aduoIzKW83gibWatSZ+L/TWdzskWEbgwHKjHnsupQZyWFlkNUSFQNYGTgRe87eFD51+ougdOhEAVBJhSVAGNU2ojcOz00KXbVrd8spBRb5aeVtfWG2dDAAKmErhxdUbdvimj9Mp0NHcI6BRC7ciiQUCnDuoaWDQ3CDRLKuG2q3x1djBQQ5I6SoMABFJKIFDfnsjn3/yxoxdOpVRD1DKYAA4sg42TZtEOnxsaesvG5r+eKHg/pDy1Kc26ohsEXCOgV6LTjqsfvMbHkeGa8UVfXcQdB5aDhi+hctGBhSOjBJn0bqrLeOq6Tl9WJwzUa8Pp1RPNIOAuAe8Jr3HirR89dPG8uwzQPEkCOLCSpO/42AdPDY//wI7Vn6yfGN8mKHY4jgP1IWAdAV3qZG6gTWNWqTu3Z9RGSR2kuUmgQRxY2olJg0ChoNQYDiznLgS9mMMmicTSjuxzAxTFcu4CQOHUEpBP86dzufq7P3qo93JqlUQx4wngwDLeROkW8MkXL+avfsPQp5YNtnTLjc4PpltbtINAugjMdV4ta5Ri7bLSYFcr3ot0WboybRrqcGBVRiy9RxdktoMDK732XUwz/fuwpt2XxTt8dfJSgZUoF4PFPghYQEA+03/RnOn9wINHBngsYYG90izi3PlHmnVFN8MJ7NvVeb88rnvQcDERDwIQKEFgXYen7tiWUQ2SPkJzm0Bbi1J1EolHg8BETqnBITi4TuAVqYn1T8dzanjCdRLoDwFLCXjeQwcO9fwXkZ6QSktNmCaxicBKkzUt1+XomeGjt17bfNFT3ttEFWbBltsT8d0hcEO3r962JavqdN4IzXkC9RKBleHuwvnrQAPI55Uax2nh/LXQ1iDFTiWt/Ex/oEbFqUmDAASsISCBtMH/9fDh3o9YIzGCpp4At5ipN7FdCh47M/zkznUt7eK+utUuyZEWAu4R0ImCu9dn1C3rMhTtds/8C2qso6+y3F0syMelHTlxYOkoLBoEGrOe2r7SU71DgRR4hwcEIGAFgUD914ePnP+wFbIipDMEuMV0xtTmK/qhm1Td7Zs7f1tmwveJtIRymG8yJHSYQL38etyxLVtcbcphDKhegkBWHFikEJYA4+CmnDivcGA5aPgFVM5KlO42cWINSVTeeXFk0SAAAcMJeOqNu65tbtjROXz4qVeULMtBg0DyBHASJG8DJBACD+zq3hh4wd/I7czNAIEABMwm0Nag1Lu2Z9XKZn5CzLZUMtI1yfXR1JjM2IxqFoERibQZGTVLJqQxg8A3vltQR0/nmRGbYQ6kgMCiBORu7yte4L3/wSM9JxY9kJ0QiIEAEVgxQGaIxQnct6vzXom3+kc5avPsI/XTOSbIs5nwDgLJEuhs8dTdstKgXnGQBoFSBHT9K10HiwYBHX2l0whpEJhLYHWbp7rl36m+QOUJxpqLh/cQMI3AmsBTP7NzXetrR88MPWWacMjjFgFmIG7Z2yht9+1c2aZ8/49EqA8YJRjCQAACJQlsvspXb92Uob5RSTpsnCbQIM6rlubpd/x1mcDQiFJjLLju8iWwpO6vDQfqsedy1MVakhQHQMAMAp7nPeoVRv/Tg0f6+8yQCClcI0AElmsWN0TffTu736h8719EnL2GiIQYEHCegF5E8Jpl+qm4r/pHZd2Zqafi+knHG67x1d6NGZXRldtpEFiEgC93FtqJRXOQwJzAab0CYZ6qKQ5eCOWr3Fznqa3ycOTsYKCGZjg7OyQNecNVnsrJ9cPKheXz5EgIxEBgR+Bl7925tvXJoy8PnY1hPIaAwCwCRGDNwsGbqAnce6/KbHil+wHlBftlLCn1S4MABJIk0CSOhs1SVHdLl6+2rPSVfq/bixcC9b+/llMZ+ZV4s0Rdbe/EczVJhv8vRUAXcW9vWeoo9rtAYPCyFHEnhdAFU9eso041ffylvHrxtYJaKanqP3tLVjVM3SX2Xg7U870F9cJ5pV6+VFAFUg5r5k0HEAiBQE4F3v6Tq3sefPRRxTd9CEDpojwCOLDK48RRIRDYt3fFmiCf+StPeXtD6I4uIACBKgl0t8sTb3FWben01BqJuNKRV6Xa7z8xoW7fmFVXy/E0CJRLQEfpdbSVezTHpZlAvziw8kxr0mziUHXTfqkvnSmojDiu7riu9EOT0YlAnFxKnFni0BKn1rBE+dEgAIHkCEi8/kEvk//AgYMXzyYnBSO7RIBZiUvWTlDXfXu67lGB+h8iwopZYsxJN5i1jzcQgEAoBOokpUunYmyTKKrN4rTqKKMAe4+kc4wMSyRNGceGIiSdpIaAL/POZTiwUmPPWhTpHySFsBZ+rp57uj9QN65d+OHKNBed5n5Ojn1enFnPnw+U/t2aTn2fPoa/EIBAyARKz90uyrpbP3vgUO+nQh6N7iAwjwAOrHlI2BAmgf03Xd083JL7PXFefahkv6W/BEseykYIQKB8AsubJS1QUgO3isNqvdQXyZZ+mF2yQ52e0ScTT09/PmkQqJCAvrFY3lHhSRyeSgJ9AwqHQiotG71SXiZQy1srm6YMSu3GFyT9/QVxZr10oaDGif6L3lCM4B6BxeZunvrT5qHsL+5/6rvyCJQGgWgIVPbLEI0M9JpSAvfvXLUj8AsfF/VuSKmKqAUBYwhkJA9w3TIlaYG+2trlFWuIVCvcyKhSI2PVns15zhOQO4sV7c5TAIAQ6OsXBxYkIFAFAU++R3QtvUyVy03p4u+n+8SZVaydFSi92iENAhCInkAQeM9l/ML7Hzx0/hvRj8YILhLAgeWi1aPX2btvT/cveEHwkAzVEP1wjAABNwk0S8H1DRJdpaOstnV7qjFb+1e6rlczIHVruNV385oKS+vl4sDSE1CauwR0KpeOwKJBoFoC2nmlnVhhfJf0iQPrxGuBOi7phickSks7uGgQgEBkBCYkpfAjzYd6f2u/UnzaIsPsZsfcXrpp98i0/uW9V6/MFHJ/KbPfOyIbhI4h4DCBTkmp2CYrBmqn1VopwB7Gjf1MnBRdnkmD19US0EXcdTF3mrsEcGC5a/swNW9qVKop5EehemXMM5cmo7Oe7QnUgKQe0iAAgQgIeOqzeT/7Ux87+N0LEfROl44SmFqg1lHtUTt0ApncxCdlRv3DoXdMhxBwlEC9PIFeP1WAXa8aGGVRdZ02yIphjl5oYavNfDBsotb1p2vp0SBQK4FR+V2ql2jjMB3iemGTTfK7uumqjHr7dUr1StTx8715dVIitE5eDBTXbq1W43wITBGQgIbi3FCpN8EEAmERwIEVFkn6mSTgeTeCAgIQqI2ALsC+ccpptUkKsYd5476QZHkJ8B6V2lc0CIRBQE8AqyxdE8bw9GECARxYJljBehl0JN/QiKQSNosqEeWNdLUq1dWaUbs2Sv3HCSWphpOrGh7vDdToBBey9RcRCiRLgLlhsvxTODoOrBQaNUmVPBX8SaC8X01SBsaGgG0E9AqB1y73pJ6VrmWVUZ1S8yPuNiTrxXCbHjf19I7HUvbptW25mlH0pFxSHLcUgVxOHrCMK9UYciphqXGbJNprxypf/knhHvlR7BnQdbMma2e9Kq/5bitFjW0QWISAF/zxInvZBYGKCUT0LKNiOTghJQT2K+UP7+76O1HnrpSohBoQiIRAS71Sm/WKgZIWuGmlLwXYIxmmrE516qBeeZAGgbAItDTJCh5yjdPcJTAhkSyDLKTu7gUQsubFVQklUiqOiOSFRL8kkWAvXZAi8JJq+KL8HRPHGg0CEFiMgPdPJ1f1vPvRR5VUnqNBIBwCOLDC4UgvMwj84i1rmuqy4wdl0xtmbOYlBJwm4Mu3bXe7RFiJ02qbOK1WyeuwC7BXA1inDg4MEn1VDTvOWZhAsziwGnFgLQzIgT1jEjGjU79oEAiLQFYe9ESZSliJnHoVw9N9UjNLnFnP9RTUhSFimCvhx7EuEPCeKjSp2z76eM+QC9qiY3wEcGDFx9qpkX5198rVOeV9RQoWrHVKcZSFwAwCOhVh41X+ZD2rLk+1Npj3lTsgtxU6PYMGgTAJRLFyWJjy0Vf0BHTK1zAOrOhBOzZCs6xKGEcqYaVY+4YD9fx5qZ0ldbNOiWNLPxyiQcBVAvKA9tz4RP7m3/vSa+dcZYDe0REwbzYVna70HDOBB/Z0fn8h8A7JsBL0TYOAGwR0AXYdYbWly1frl+t0B3O/ZvXqTsOkDrpxYcaspZ5g6okmzV0COi1ZpyfTIBAmARNSCZfSZ1ySpU5JZNZx7dCS+lmDo0RnLcWM/akiMCj+210fPdz7zVRphTLGEDB3ZmUMIgSphcB9ezrf4QXeZ6QPFqSqBSTnGktAL8e9bpmntkqE1fZuX3U02vG1WkwdlKXDKUhr7KVltWC6/pWug0Vzl4COvtJRWDQIhE3ApFTCpXTTv7G6+PtLUysbvnyJQvBLMWO/1QRygad+5OFDvY9brQXCG03AjpmW0QgRbikC9+/q+iX5MvvYUsexHwK2EFguE/ONUnhd17PauNJTehVB2xqpg7ZZzC556yV9tlUve09zloCuf6XrYNEgEAUBU1MJl9J1WD4TJy9ORmY91xNIIXiis5Zixn57CIhj4eceOtz7x/ZIjKQ2EsCBZaPVLJR5356uP1KB+jkLRUdkCCidBbhGR1npFQOlptXqDru/OqlNw0UdNQEdmdhG8njUmI3u/7KsQDguKxHSIBAFgWIqYYuE91sc318Q39VZicjSaYY6QuuVfpxZUVwr9BkTAc976MChngdiGo1hHCaQ4MLtDlN3UPWT3b2/sOHVznVS1P2dDqqPyhYSaJYUqA0r/KLTanu3pxqydjutpk1QkMIEIxRWnsbB34gIUL84IrAWdctU3CJjWSiqTs3TUX7t4sRSlv4864dj65Z7xX+3K1/pQvAnpmpnnbgQKL3SIQ0CNhCQS/nvmg71/KoNsiKj/QQs/cq3H7yLGuzbubJN+f5R0f0GF/VHZ/MJdLZKAXYpvq4jrdZKxJV+wpu2NiirDk6w6mDazGqcPhlJq+1oM04sBIqRwIDU2MtJMWsaBKIkYGsq4VJMJuSzc0ais17oLajv9BRUPwuuLIWM/UkR8LyvNQ9lbtv/1Hcl7pYGgegJpHB6Fj00RqiewAN7V60v5Apflqdl3dX3wpkQCIdAvaQerL9Krxo46bRqs6QAe7Xa63o0+ok1DQJRE9DO3+XtUY9C/yYT6B9USi8WQYNAlATSkEpYDp9ecQg/35tXJyVC61Sf/mwR41gON44Jm4C+7ma5D05lx9UbP/KV3p6wR6I/CCxEYNYVuNBBbIdAmAQkEusHJRLrCemTEr9hgqWvsggsb9YOK09tkUir9RK6ryNFXGg6dbCfVQddMLUxOq7oMEYUBEmAwCVxYOnvHRoEoiZg06qEYbAYkdpyJ6Rmlk43fE6is4ZYLCEMrPRRIQFxIgxIqsKuhw71fKvCUzkcAjURwIFVEz5OrpbAvt2d7xUP/iNyviPug2pJcV6tBPQKgdeKo2qDRFpt7/bVyhYHv/bkgdmgRF5NUFC51suJ8ysgoCOw0piGWwECpw/tG1BK1ymiQSAOAs2yOnCj1K50relArJ6BQB2XQvDHzxfUq/Kaz51rV0Ei+k7IDO5HDjzR+y+JjM6gThNwcCbntL2NUn7fru5fU17wYaOEQphUEGiRm9jNU2mBm1f6UoA9FWpVrQSpg1Wj48QaCCyTGlg+jyhqIGj3qRf77ZYf6e0ioCc07fKd40pU9ULWGRpT6sULheLKhvrvGDUvF0LF9toI/OcDh3v/pLYuOBsC1RHAgVUdN84KicC+PV3/XQXqQyF1RzeOEtAr+XS3T9ay0umBq+Q1kR+TFwOpg45+KAxQu6PV7iXuDUBorQg6AkRHYNEgECcB11IJl2KrVzE83RcU62bpVMMLQ4RELsWM/UsT8FTwkYcOn/+1pY/kCAhEQwAHVjRc6bVMAh+6SdV1NHd9Ti7EN5V5CodBoEigqU6pjVdNFl/f1uWpxjq+zkpdGoOyJgypg6XIsC1qAu3iwMrKQgk09whox7mugUWDQNwE0roqYRgc+4YDicyS6KxeXQg+YJGFMKA61ofneY82Her5sf1S4tAx1VHXIALM+Awyhqui/OIta1bUZce/JPpvdZUBepdHoLNVoqyk+LquZ7Vhhad05BVtYQKkDi7Mhj3RE2hrUarO8fTd6CmbOUI+P7lohJnSIVWaCejbAlIJl7bwuHxGT0kReF0363mpnzU4SnTW0tTcPkKqq321Zbhu7/6nviuPRmkQSI4A07/k2DPyDAIP7OreWPCCL8umzhmbeek4gTqJ3li3zFNbJcJKF2DvaOQrq9xLgtTBcklxXFQEWmWd2XqJlKS5RyAndXcGhtzTG43NIEAqYeV26JVVip/vzRedWS9fohB85QRTf8bJQt5740eP9fSmXlMUNJ4As0HjTeSOgPfd1rnbK3h6NYsGd7RG07kEljd7kho4Wc9q40pP6VUEaZUTGJTJ4wTFWysHxxmhEWiRVcEaHFwVLDSAFnekv3v0dxANAkkRcHVVwjB4D48rdfLiZGTW8Z5AjeaIzgqDq8V99Bcy3q6PHuz5tsU6IHqKCODASpEx06DKvj2dH1SB9xdp0AUdyiOg0wDX6CgrKb6+SWpare7ga6k8cgsfRergwmzYEx+BpkalmngcER9wg0Yan1DqMkkmBlnEPVH0nQSphLXbvSC+q7MSkaXTDF96raBe6ceZVTtVq3qQb3PvjgOHe/7VKqkRNtUEmCmm2rx2KidOrA+LE4vVLew0X1lSN0tUxpbOyQLsmyXKqiHLV1FZ4EodpO8lZ+DTN5v9UjxZrwJGg0CSBLTzSjuxaO4RwInuns1N1FgvIqEXk6CFR6BvRKkTFwrF2lknLgRKr3RISy2BQHnBTx84dP5/pVZDFLOSwIxpj5XyI3Q6CXj37er6356n3p9O9dzTSmypVrVPRljpSKu1EnGlt9HCJ6CjHnT0Aw0CSRPQ6YM6jZDmHoHRMaWGR93TG43NI0AqYXQ2mZBC8GckOuuF3oL6Tk9B9fOZjw52Aj3LbfpvPXS49zcTGJohIbAoAaaQi+JhZ1IE9u9d3zicH/6ijH9LUjIwbm0E6uXJ5/qpWlbbpAh7awNfN7URXfrsMXFcDZG2szQojoiFgC7grgu509wjMCIT2RFxYtEgkDQBfedBKmE8Vugb1qmGUjurN1Cn+pTK65Bwmp0EAu+TB470/JgIjxHttGCqpWZGmWrz2q3cL++9emUmn9MrE26yWxN3pNcF2LdJhNWWLl+tX+6pDAXYYzO+Thm8ROpgbLwZaGkCdeLAasOBtTSoFB6ho690FBYNAiYQIJUwfiuMyAO1E1Iz68RrgTouDq3LY/hB4rdC1SMeGWltv/0PP/si3+JVI+TEKAngwIqSLn3XTGDfntXXqSB/TDpaVnNndBA6gTqJslon6YAbJNJqe7evVrbwlRI65DI7JHWwTFAcFhsBJo2xoTZuIB0JqiNCaRAwhUCz1ONrZFGJRMyhA7F6BsSRJYXgj0uE1qvymjqdiZhi/qDarzj71v1ERvlv/N3Dr56ffzBbIGAGgdmXrBkyIQUEZhG4b0/XW71A/ZNszM7awZtECCyTmjabVvpqozitNsvfBqySiB1mDsqKXzNp8NoUAjoCs6PNFGmQI04Cg+LAmsCBFSdyxlqCgJ7wkEq4BKSYdg+NK/WiTjXUKxtKQfjRXEwDM8xSBC5mgsItv3vkwvNLHch+CCRJAAdWkvQZu2wC+/Z0/0d5XPNnZZ/AgaER8OVbolsKsG+TVQN1eqAuxk4B9tDw1twRqYM1I6SDiAj44sBahgMrIrpmdzs4JA4sJqVmG8lB6bLywK29xUHFDVZZr2J4ui9QJ3WqYU9enZfvDloiBMaV77/9wBOv/lsiozMoBCoggAOrAlgcmiyB+3d3/VeJdP3FZKVwY/QmqV2z8Spf6RUDdQH2xjq+Kky1PKmDploGufS3xvIOOLhIoP+yFHCWFcpoEDCNgF4ZVa+QSjOTgC4EX6ybJRFaL10IpBC8mXKmTCrJ6VQfPHCk969SphfqpJQAs9KUGjaNau1Xyh/a3fUpuWjfnUb9ktaps1U7q/xiPasNKzylI69oZhPQKTo6VYcGAVMJrMCBZappIpWrXxaUYOIZKWI6r5KAvrUhlbBKeDGfNi5O8FM6MkucWS9IuuHAqC7YRAubgFD9zYcP9/5W2P3SHwSiIsAUNSqy9BsJgf03Xd083JzT4a1viGQAhzqdLsC+VSKsrpMC7O2NfB3YZH6dOqijHAo8nbTJbM7Jurxd6sPy1eKc3fsGZO115prO2d0WhUkltMVSs+XslXue53vzxdpZL1+iEPxsOtW+Cz5x4PD598vZfGNXi5DzYifAbWXsyBmwVgK/unvl6pzyviLTorW19uXa+cubvWLxdV3PauNKT2WlRg3NTgKs8mWn3VyTWhdx18XcaW4RwIHllr1t1JZUQhutdkXmYYlAP/naZCH44z2BFILH/3KFTpmvAnV4pK39LX/42RfHyjyDwyBgBAEcWEaYASEqJfDAns7vLwTeITmvtdJzXTpepwGuWeYVa1lt7cqoLmilwvykDqbCjE4o0SHfOZmME6qi5BQBPY3s6wcHBMwmoCdApBKabaNypSvIl85ZicgqrmooTq1X+nFmzWOnkcye9b+Uz2Tf+LGD370w71g2QMBwArMvZcOFRTwIzCRw357Od3iB9xnZxvRoBpgWKU66WSKsdAH2zRJl1ZDlYz4Dj/UvSR203oROKdAmDiydrkxzh4D+jtIRWDQImE5Afze16VUJuU0y3VQVyXdpREkB+EKxGPwLUj9L19KizSLwWuAFtzx86PwLs7byBgKWEOAr2xJDIWZpAvfv6vqlwFMfK73Xja26vsyqdk9tmlo1cK1EXFFzJr22H5Ibs7Hx9OqHZuki0NqsVL2sakpzh4Au3q6LuNMgYAMBUgltsFL1Mk6I8+qMRGe90FtQ35F//XIP5XgblTnCmx861HvMcQ6obzEBHFgWGw/RJwns29P1R1J68Odc4lEvTw3XXyWrBkqk1TYpwt7awEfZBftP5KZWHSQ63gVzp0JHJoepMGNFSuRkwjggxZZpELCBgH7g165TnanVZ4O5apaxb1inGkrtrN5AnerTq6U6dUMVSLThBw4c6v3rmkHSAQQSJMCsN0H4DB0OgXvvVZkNr3b+g8SAvzOcHs3sRRdg3yZpgVu6fLV+ub7Z4uNrpqWikYrUwWi40mu0BJqblGqUtGaaOwR0xMMgDix3DJ4CTeuykkoo0aKkEqbAmBWoMCKF4E9IzawTrwXquDi0Lo+l25kl3qtfe/hwz0cqQMShEDCSADNgI82CUJUS2LdzZZvy/aNy3g2Vnmvq8bo2wzpdgF0irLZLAfYOmQjS3CVA6qC7trdZ86ZGpZoabNYA2SslMC6TwsvDlZ7F8RBIlgDRosnyT3p0/ZDw1QFxZJ3X/wrF13pbepr3/x043PMz6dEHTVwmgAPLZeunTPcH9q5aX8gVvixP0LptVW2ZOKk2rfTVRkkP3CLpgTpVkAaBYkTDkHBI1c0UdnWBgI6+0lFYNHcI6Bp92uFOg4BNBEgltMla0cs6JN9jL+pUQ3Fo6YLwo1LCwd7mPdF8ceVb9z/zDBVU7TUiks8ggANrBgxe2k9AIrF+UCKxnhBNdDC48U1nAXZLAfZiLStJD1zdwUfSeKPFLKB+AqjryejCyDQI2EagQRxYOrKB5g6BUZkiDePAcsfgKdKUVMIUGTNEVXSZrLNSCF47s4735NV5/UDRmhZ8xw/Gdz54pF8qftEgkA4CzJbTYUe0mEFg3+7O90ohg0dkk5ElOZtlRa4NUysGbuv2VGOWj+EM8/FyDgFSB+cA4a1VBPQKhHolwtebjiLkK+91HGl8MTKm1MhoGjVDJxcIkErogpVr01EXgi/WzZIIrRMXApUz9wHjBT8T3PLgwfMv1qYxZ0PALALcRpplD6QJicB9e7r/Hy8Ifjuk7mruprNVoqyk+PpWibJaK3WtdKg6DQJLEWDVwaUIsd90ArqWX5us8EVzh4COvtJRWDQI2EiAVEIbrZaczLrEw0ldBF6cWS9IhNbAqDG1HkYLvnrTR5/o/VJydBgZAtEQYBodDVd6NYDAvt1dfypi/GwSouhJ2wapY6VTA7eI06q9kY9aEnaweUx9CzQwSOqgzTZEdlktVb4LO3BgOXUpEDXqlLlTqWzR8d4iqnHrlkr7RqlUr5R8eL43X3RqnbwYKJ1+mEALgsD7iYeP9Hw8gbEZEgKRE+CrOXLEDJAUgQ/dpOo6mrs+Jxf5m+KQYXmzVyy+rp1WG1d6KmtkAmMcJBgjDAJMAsOgSB9JE8jI92BHW9JSMH6cBPQKhHolQhoEbCZAKqHN1jND9mH5Hjz52mQh+OM9gRSCj8ebJfOe+x863HvADApIAYHwCeDACp8pPRpE4BdvWbOiLjuuw2e3hi2WLsC+RtIBdVrgtu6M6tRP62gQCIFATkLSdeF2GgRsJ6DTcZa3264F8ldCYFAcWBM4sCpBxrEGEiCV0ECjWCySjsTqGdCphpPphq/Ka71IT9jN87w/f+hQz38Mu1/6g4BJBHBgmWQNZImEwAO7ujcWvODL0nlnrQO0yIpamyXCSjutNq30pQB7rT1yPgRmE9D3M6QOzmbCO7sJrNAOLO427DbiYtLrL60Z9h2QFbpyVi85v5iy7HOJAKmELlk7Xl0vSa3Aly5IEXipn/WC1M8alweXtTZxiR1sudj1tv3PPEMVwlphcr7RBGbcchgtJ8JBoCYC993WudsreP8inTRU0pF+AreqfbKW1TZxWunXehsNAlERoAByVGTpNykCOgKL782k6Mc/bj+1++KHzoiRESCVMDK0dDxFQBeCP3NJHFm9BfWc/NPOrUqbTE2eHcuM7/z9g5cuVXoux0PANgJMxW2zGPJWTWDfns4PqsD7i6U6aJJl3zdeJXWsdBH2Lk+1NvAxWYoZ+8MhUEwdlOgFFUFYeTgS0gsEKiewTGpg+dQErBycpWdcEgdWwdxl5S2lithJEdDOd70QBd9hSVnAvXH7hgP1vERlPd8bqFN9ejGfJW8KX83nM2/82LFXTrtHC41dJMDM3EWrO6yzOLE+LE6sX5uLQBdg1xFWW7p8tX65rJylC1zRIBAjAV0LQafe5EMII49RbIaCwJIEdBF3Xcyd5gaBvgHxwS8533KDBVqmg0CdlItoaxZduDVMh0Et0kKnFp6SNMPj4tA6Lg6ty2PzvlyHfd/f++ATr37VIrUQFQI1EeCruCZ8nGwhAW/fru5PKC94n14l8E1bM2rHKk91NPJRsNCWqRJ5eFSp0bFUqYQyECgSaJfohWwGGK4QuNjviqbo6RIBUgldsraZuupArHP94swSR9aRE8WnnQXZ9t6PHun9ezMlRioIREOAZ6LRcKVXcwkEzdmmD4p4X9qzKaNuXe/jvDLXVs5IplMHRym56Yy9XVM0IJ3MGZMTeeWMqZ1TVD9kIjXWObMbpbBODlkrq5/fvtVXna3yxlP7cF4ZZSKEiYkADqyYQDOMOQT2Hzw1mh1Xd994tcc6SeaYxVlJ9IRvSBfsnBcV7iwSFE8ZAS7tlBl0EXVwYC0Ch11WE+C32mrzpU74nRv8rx441Pux1CmGQhAog4BkddMg4B6BX72zbrV4b7n+3TO9cRrryCvqXhlnFgQKkQBOjRBhGt4VtjbcQIhXE4EJeew5NiHLWdfX1A0nQ6BmAjde7TfW3AkdQMBSAkRgWWo4xK6NgBeo99TWA2dDoHYC2nFF3avaOdKD2QSWXkDJbPmRrnwCOLDKZ8WRdhIgldBOu6VNalkd84bR3756W9r0Qh8IlEMAB1Y5lDgmfQQ87570KYVGNhHQaVWXh1mtyyabIWuVBMghrBKcfafhwLLPZkhcGQF9jZP2Xxkzjo6GQJDx746mZ3qFgNkEcGCZbR+ki4DA6Eeu2eqp4PoIuqZLCJRNYFQKwuYpbl02Lw60lwARWPbarlLJ8VVWSozjbSQwnUpoo+zInB4CQVAgmyQ95kSTCgjgwKoAFoemg4DcYL83HZqgha0EiqmDrDpoq/mQu0ICROVUCMziw7G1xcZD9IoIkEpYES4OjoSA94Mjv929IZKu6RQCBhPAgWWwcRAtGgJBQPpgNGTptVwCl2XVQSZ65dLiONsJcK3bbsHy5cfW5bPiSLsJ6GudVEK7bZgG6QM/e1ca9EAHCFRCAAdWJbQ41noCIx9efa24Dn7AekVQwFoCIzp1UIq30yDgCoF5Tg3yzFJr+nm2Tq2mKAYBpUgl5CowgABphAYYARHiJYADK17ejJYwgcDzdfF2L2ExGN5RArrm1Sipg45a31215/mr+AbDhv7IAABAAElEQVRO7cUwz9ap1RTFIDBJgFRCroSECdwy9NDaqxOWgeEhECsBHFix4maw5Al4rNiRvBGclWCIVQedtb3LihOV4471AxamcMfYaFokQCohF0LsBGY/KfDVRJ40wtiNwIBJEsCBlSR9xo6VwOXf6eqW9MFbYx2UwSAwRUCnDuZIHeR6cJAADix3jM6Kk+7YGk2vECCV8AoLXsVAYE4Us+d7pBHGgJ0hzCGAA8scWyBJxAQ8r04/ochEPAzdQ2AegWLq4Ni8zWyAgBMEtAMLJ5YTpkZJCDhLgFRCZ02fvOKBum1wf3dX8oIgAQTiIYADKx7OjGICgQKrD5pgBhdl0CsVzY74dpECOkMAAmknQARW2i2MfgsRKKYSSqQ1DQIJEMj4dXV3JjAuQ0IgEQI4sBLBzqBxE+jbv36Z5wV74x6X8SAwKpFXuRwcIOA2ARwbjtgfT70jhkbNUgQmJpQaY6GWUmjYFjEBPyiQRhgxY7o3hwAOLHNsgSQREmism9BPJuojHIKuITCPgE4dHCF1cB4XNjhIAMeGE0bHUemEmVFyEQKkEi4Ch12REQg8782Xfnfd8sgGoGMIGEQAB5ZBxkCU6AgEitUHo6NLzwsRKKYOMnFfCA/bHSLA4nQOGRtVIeAwgWIqoZQNoEEgZgJ1DUH+nTGPyXAQSIQADqxEsDNonASC/Vc3SwWit8Y5JmNBgNRBrgEIXCEQ4MG6AiOlr7SvnmL9KTUualVEoLgqIamEFTHj4NoJBAGrEdZOkR5sIIADywYrIWNNBEbqvXdIB+LEokEgHgIFnTpIMdd4YDOKFQRwbFhhptqEJNq0Nn6cnSoCpBKmypyWKBO8LXhoZZslwiImBKomgAOranScaA8BVh+0x1bpkJRVB9NhR7QIjwAOrPBYmtoT9a9MtQxyJUGAVMIkqDs/ZuNIruEO5ykAIPUEcGCl3sRuKxj8weYGuYn4EbcpoH2cBHTqoE4foEEAAlcI4MC6wiKtr7BxWi2LXtUSIJWwWnKcVwMBViOsAR6n2kEAB5YddkLKKgkMD47c7qmgvcrTOQ0CFREgdbAiXBzsEAGcG+k3NhmE6bcxGlZOgFTCyplxRk0E3jlZ+7emPjgZAkYTwIFltHkQrmYCAasP1syQDsojILM3UgfLQ8VR7hHAuZF+m1OoP/02RsPKCWjn/RA1MSsHxxnVEmgerlcsXFUtPc6zggAOLCvMhJDVEAg+qTKeF9xZzbmcA4FKCYxNkDpYKTOOd4fAvAgsPFqpM/48G6dOQxSCQHUEJuT+QN8j0CAQBwGP1QjjwMwYCRLAgZUgfIaOlsDo8WtukxE6ox2F3iGglE4d1GkCNAhAoDSBec4Nr/RxbLWXAD5Je22H5NETGB6ZvFeYNRIfmlk4eBMOAfl5fVewf0d9OL3RCwTMI4ADyzybIFFIBIIM6YMhoaSbxQjIDWgxdZAb0cUosc9xAqxQl/4LYJ6TMv0qoyEEyiagPx/zUglx5JfNjwPLJyCXWsdwXf+byz+DIyFgFwEcWHbZC2nLJCA3ClK7PXh3mYdzGASqJkDqYNXoONElAjh4U29tamCl3sQoWCMBUglrBMjp5RMIFKsRlk+LIy0jgAPLMoMhbnkERn7nmpvlyLXlHc1REKiOAKmD1XHjLPcIEIGVfpvjo0y/jdGwdgIlUwlr75YeIDCLgNQAvivYr7KzNvIGAikhgAMrJYZEjbkESB+cS4T34RMgdTB8pvSYTgLF9DI8HOk07pRWpBCm2rwoFxKBYiqh1MOiQSBiAleN1hVrAUc8DN1DIH4COLDiZ86IcRCQJw9xDMMY7hIYG2fVQXetj+bVEAio91INNmvOwT9pjakQNGECEzlWJUzYBK4MTxqhK5Z2TE8cWI4Z3AV1Lz94zY2i51YXdEXHZAjodChWHUyGPaPaS4AaSfbarqTkczxWRGCVpMRGCJQkQCphSSxsDJGAfEXfE3xSZULskq4gYAQBHFhGmAEhwiTg5UkfDJMnfc0nMHhZqVwuULoGFpO2+XzYAoFSBOb4O0odwjabCMyJqMNBaZPxkDUpAvqeQT8E0/cQA0N8KyZlB0fG7R59/upbHNEVNR0iQHE3h4ztiqqy/ODdruiKnvET6L9cUN/tyc8b2PM8Jf8V//l6Yqdf6z96uzwq0K/19uljvOJBU+/ldfFYfYw+Vh+nz506Rl7SIGA9gaKDg8dm1ttxIQWYii9Ehu02EgjEy6Sv6aLDST+smnodyIbigyvZMP1a7ys+0Jo+ZupcfZJ2VunjJ//pI2c338uq9lb9i0+DQPgEAt/TaYRHwu+ZHiGQHAEcWMmxZ+QICIz+7prNhULwvRF0TZcQKN6AXuovDWL6Rlbvne3emn/DWrqHBbZqZ5Z4tHwvmHSGFd9rB9cVh5l2eGmv1+xjppxi4jAo+gymz5Pj9PHFcxYYks0QiIJAcdIXRcf0aQQB7GuEGZwSougUEo21s0k7i7TLqSDF9rSzXL+edBrJa3mht8umye1T0dOvH6MdTrKvIL+rxb5ipHjxUqDaWiZ/l2MclqFcIRBIGmGgfknu+eQKp0EgHQRwYKXDjmgxRaAQFO7RU3saBKIgoJ0+KzrqVD4fqLFxuQOOo+kbbrn7mHSKzbz/mPm6OkGmHWPam6V105+c4t/piDDZUIwIm9pePE5HiMl7HRymj9XvZkaN6R3FzXoXDQIzCMT0iZkxIi/jJFD7N1Kc0jJWnAQWi2YqOpWmfuf0NVR0JBUdUJOvpx1Kxe3F46a26w2htyj6XFjIhnpfXbW8Tn5LZz/2WvgM9kCgYgLrRn5nzQ8pdfbJis/kBAgYSgAHlqGGQawqCQTFUNkqT+Y0CCxNoLk5r5ZNNKhLg2OznVj6vtcyz03RMVa8X5970z73/dJcZh1RdG6JY0tmJjoNcto5pl9MOr4mo8lef6/RFR1j+sQ5aZR605RTbNJhNmsk3thEoMbLyiZVXZO16EvAvlabfdKGOlJJ1JB/U0FN86KZtIcpPy+aSccyXXE46b50NJM+ttiv1WRCEl4DEiTTraEuozra61VzI86raSb8jYiApx/uKxxYEeGl2/gJ4MCKnzkjRkRg+MNrrpG7JXnKQINAdAQy4miprw/UsrY5TqwZN6bRjW5Jz3Kj/nrUWHE2NC23voOfbjNfT29b+m/RiSX/07iLKZMznFs6oqzoAHv974y0Szl+uh6ZHiWjO9CHF/9NOtn0dlp0BGZdCtENQ88JEMBJER/0ImvtGJIhdarcXEfTtPOp6DySYwoFyR16/fgrDiUptyCH6n26D/lfdV/JiygeeoeLjGXBLv2bM9Xq6/yi86qhrqAyGThNc+FvVAT890nPD0TVO/1CIG4COLDiJs54URLQhQpn3CJEORR9u0ygqSmvxieyk06sgXE1NsET1LiuBz3Pen1ipgeVdM4rbebrK1vLfTXTmaXLRfg6XExacfvrjjKdMqmnfZM7iofIG+1Sm1WsfyrVkpRKDWqq1Wae6V74ayABTDvfKEWfkPxv8jvryldVsT6T3i6nTB8zXZ9p2pFUdDjJAcVjxNFUrOukjw/dC4zl5lsu2i3aebWsvaH4e9HUBP9oadP7JIFgw+UHr7mx9YFzT0MEAmkggAMrDVZEh0kCvqw+yL0AV0MMBHQUVoNEYY2Ne2pZR726pJ1Y4zixYkAf6RDTk8nXBwnJOaYdYNoLNvVH/objHLNtlcrQ596vG4oXSRMorjCZtBBVjD/pXJpyJhHNVAVBTqmEwOvOK/kxKEZfycMQGgQiIaAvLX3TMdWkzJp+yI8DaxoIf60mgAPLavMh/DSBgf1Xr5Q54a7p9/yFQNQEGqVuxdj45FdoR5t2Yo1JVBZlqqPmbmP/MyfJr8sfgXMsrJRKXZR/1p3v60LX9qLIobYuONtQAlHbVvc/HZWkH1RNf3yIZjL0gkCseQTqptIGJyN9lWps5H5hHiQ2hEdghvNqstNijeDfCG8AeoJAcgRwYCXHnpFDJJCp9yX6KuB6DpEpXS1OYDIKqyBOLL+YYqZTAnBiLc6MveETmOkcK06Hpmf2xaFqe7o/OdGarA8WRtSYrsVDSycBfaXNvBZDq80USdhebZ+LdFoQraIkoJ1Xy6Rgu18Mx5U6mnWB0vcQNAjERUB+w68f++3V1zX8+ivfiWtMxoFAVASY8EdFln5jJeAHwd3cksaKnMGEQFNjoMbHJ+uU6PtSnFhcFmkiMB318rpONTrHmho91d4647ZDf2nj03odr80vhkcKqvdCmGnU/KLbfD0g+xUCdVlfLRfnVXGREdmsv/KaiL66AohXsREo+L5ejfB3YhuQgSAQEQH8/xGBpdv4CAT7V7TLre6b4huRkSAwSUAX865vuJIGoJ1YellsXeeCBgEIzCFQDNGZsQ3n1QwYdr/0JvNO7VYC6SEQMoGi80rqZE47r3T3DQ26BiIO2pBR010ZBOQnWNfBokHAegLMsqw3IQqM1jW/Uyg0QAICSRBoEgfWzHm4ThHQTiydMkCDAARmEPAzM97wMk0EJJE6TeqgCwRqJpCVyKtlHbLa4FTaoO5Qf0oaG8KMVKxZTDpwiYCnvn/0d9dtdElldE0nAWZY6bSrU1rJ+kE6JJYGgUQI6MAD/UR1ZtNOLF3vQj99pUEAApMEMjMmcjCBAAQg8P+z9yZQspzVnecXEblWVdby9lV6SICEBAYkbBYBEosAGYQWwHNmfDynZ7p7+rS39vhM2213e06NQRvYxt1uHx+758yZ6Rl7elC3ASEJxGphs9mA3RiMhBaepLfobfVerVlVucTcG1X5Kisrl1i+iPiW/6fzVFmZEd937+9+FRnfjXvvZyqBQsERM+S8cnv8umVKHUSwoqlW10OvdruJKCw9TAUphxDA6moIHHykPgF/9tAYSfke9SWFhCYT4CeqPfepQbHWGUodgBPLZMtDtygEPFq5bXf1Rjkbx6pMwBF0O9l7EVRZYMgGAikRKFB19hna1KXXecV/HtWeh10piYBuQWAIgWA3wiGf4yMQUJ8AHFjq2wgSDiFQL7nsvBofcgg+AoHUCWxEYW3VwuoMyKkD7MTip7FoIGA7Af474N3p0MwjwI7JgofrnHmWhUZRCHjsvJqm3QZ7vVfUSYWirxwHLvwoPHFsKgR+qn7/oStS6RmdgkBGBODAygg0hkmJAO0+mFLP6BYEIhHgXYX63ZyyE2sXpRIgEisSThxsGgHybXBkgo8wHdMsG+jTpnU52xcNBGwl4JEDdxc9sOISAr2N36p0bfjS+zl+B4EMCTh+070zw/EwFAhIJ4C7DelI0WFWBPw/vrFIY703q/EwDggMI7Bxg9r/6WoQiYWaWMPw4TPDCQTODVrE9W5EaLja1qjHdi3CgWWNvaHodgIeRVwFNa/6RF7xkey86uPX2t4JfgOBrAg4bdTByoo1xkmFABxYqWBFp1kQWJ478w4aZyaLsTAGCIQhMOwm1aEbWy7sjnTCMCRxjGkEOvMeKYSmWXZDH7/tiEJxZ+SJmdpCKxDYIsCRV+y8YidWvzbs4Va/4/EeCKRPwHnz8j1XHkx/HIwAAukQgAMrHa7oNQMCXquN3Qcz4IwhwhMYlSbAdTG4uKuHmljhoeJIIwh00ss41QzNLAJsUv7XsbFZ2kEbEBhMoBN5xU6sQW1QeYFBx+N9EMiAAOXzN+/IYBwMAQKpEIADKxWs6DRtAv6scOmG+fa0x0H/IBCVwKhCrezE2kVOLBQ8jkoWx+tMoFMDDimEOluxv+ydqDq+tvUrXt3/LLwLAnoTCB5IDYm8Yu0GbfCit+aQ3ggCrkAaoRGGtFMJOLDstLv2Wq+WjryFCgoc0F4RKGAcAX4Oy06sYY1vfKfpxhdOrGGU8JlJBDpz3fcHRyqYpK9NunQH1XXsbJP+0NU+AhuRVyUxLPKKqVS59pV9eKCxBgRoQ8xbFmYP7dFAVIgIAjsIwIG1Awne0IGAj90HdTCTtTJWSrTX2ojtsvkGeMOJhcuwtRPFEsV5V65OZA4isMwzOte/6jSkEXZI4KepBLYeQA3/7nYpT6BUGv4wy1RG0EsLAoViCZksWlgKQu4gMPzqu+NwvAEC+ROgBRDfLd+VvySQAAT6E+BaWNVKd1xC/+PCPsXtfzbeBQE9CBSKW7cacGDpYbMoUnZH1XWK9Uc5H8eCgC4EOjWvwkQaVsv8IEsXzSCnlQR8B2mEVhpef6W37ir11wUaWEJg5f6jryNVr7BEXaipKYEypQ5w/YtRbaOOxuhUhFH94HMQUJVAt1MDRdxVtVJ8ubpt2ql1Fr83nAkCahLYirwa7ZXy6Luf7wHQQEBlAvSY9Z1z9181pbKMkA0E+hEIsbzqdxreA4H8CDitFnYfzA8/Rg5JgG9xefehMM0jT1ewOyGlFaKBgGkEirya6zTUwOqQMOZnp4g7K+SRrXEVM8a0UGSTgEOhVNOTpdB1KyvVFtiBgA4EytXW+nt1EBQygkA3ga67yu638RoEFCbgOEgfVNg8EG2LQKnIUVijUwn5DC4GO8M7Gg3ZjnurZ7wCAX0IFApbtxrtrnpJ+mgASYcR6E4L5ZQpdmKhgYApBNh5tWuqJMJGFwbRV8Vw3/umMIIe+hLwhY80Qn3NZ63kuMuw1vR6Kr54z9FXkuTX6Ck9pLaNAC/muA5G2AYnVlhSOE4nAt1O2fB/DTppaLesvXGmYeoD2U0M2utCYMN5RTsGdznhR8leRfTVKET4XC0C7/E/tn9cLZEgDQgMJwAH1nA++FQxAgUH6YOKmQTijCBQpl2IvJBRWNxVUCR2snx517YR3eNjEFCaAEctdKeUdaebKS04hAtNoHsXQj4pymI/9CA4EAQyJsC7p85Q5FV3Db9RInD0VQnRV6Mw4XO1CIzVG4Xb1BIJ0oDAcAJwYA3ng08VI0C7HSF9UDGbQJwRBGj1XglZC6vTE0escMoCF41FAwGdCfQ6MzgCC1FYOlt0p+zdKYT8aa/Nd56Bd0BAbQIcPT09VQydNtjRZgzRVx0U+KkTAV8gjVAne0FWAQcWJoE2BOof3v8SEvY12ggMQUFgk0CZnshGicLi07iOTODE4jtpNBDQlEDf6AUUctfUmv3F7t6FkI9ACmF/TnhXDwKB84qioIsFL5LAhYKgc+CejwQNB6tC4H3+7LGKKsJADhAYRQAOrFGE8LkyBHzX+6AywkAQEIhCgHxQYXck7O6WnVgz0xSJBSdWNxa81ohAsc+mBO3eokka6QNRdxLojcDiCFKuHYQGAroR6DivSsXoy6NqhXYexLTXzeSQd4PAxEph/VbAAAFdCES/QuuiGeQ0kADSBw00qjUqcV0Mz4v+dLbQcWIhndCauWKSop63M4qh1+Fhkr426tJbA4sZFAtYyds4F3TWOXBe1cpUwyr60qhA3+2IvtLZ+pCdvK9II8Q00IZA9Ku0NqpBUJMILH302AHS5/Um6QRdLCNA67mxSnQHFlMKnFiTHIllGTOoqzUBjsRx+9xlwIGltVm3Cc9XtH5XNdTB2oYJv6hOgL5bp+g7tlTqc8EKIXu1irDSEJhwiMIEyIF7hz97fUlhESEaCFwmEO9Kffl0vACBbAg4jXV+MoD5mg1ujJISgWKxTQWO+y33Rg/IC8KZKd6dcPSxOAIEVCAwqBaSjzwbFcwjRYZBu0oOsr2UQdEJCMgkQM6raYq8Khd3RouGGaZI0dWIvgpDCscoTmB6rXzxFsVlhHggEBDAUggTQQsCVFEDuw9qYSkIOYpAtRz/SW3gxKLisojEGkUZn6tAYFAUDiKwVLCOHBkGueM5ahQNBNQn4Gw4r2JGXrF+Sb7T1ecDCW0iQOngSCO0yeAa64o7DI2NZ4voC/ce3k263myLvtDTbAJJn9ayU2B6Gk4ss2eJGdoNcmKgiLsZ9mUt+tW/4vc91MBiDGgKE+CM/KlaUZQTOK+SRFUrjAaiWUqAHkjc7c8K2k8TDQTUJgAHltr2gXREoOj7d9APXFAxG4whEGdHwm7lixTdME3phA5Csbqx4LViBAYV8kYElmKGSiCO7/cvzMc7p3INNDQQUJEAz8zJWklUyvHSBgOdqJO4dS1VZAKZQIAI7Fn1jrwZJEBAdQJwYKluIcgn6AYZ6YOYB0YR4DpYSWtmFLkmFt2A80IRDQRUI8DT0huQRjYo7Uw1HSDPaALtIcbkaxQaCKhGQIrzipQqFdqxdhZWjQfkAYFuAr4nkEbYDQSvlSSAuwslzQKhOgT82b0TVO/3nZ3f8RMETCEgY9eiIm33PR3sTggnlinzwhQ9BqUPsn6D0s5M0d0mPQYVcWcGKORu00zQR9fJiYSRV6wqfeVWq0O8t/rggKQgsJ1Au/1BSiOEf2A7FfymGAFMUMUMAnG2E6gXi++jdyrb38VvIKA/gYJHUVi0e1HSxk4s3v4bkVhJSeJ8mQQKQ2ogIYVQJul8+xpmy0FF/POVGKPbTCBwXlUSpA1uwivTjsKem/z722ZbQHdFCTjOgXrp8OsVlQ5igUBAAA4sTAS1CTjO3WoLCOlAID6BMd6RUELwVGnTiYVswvi2wJlyCQyLwBqWdiZXCvSWNoFhe6oiAitt+ug/CoHJiaKoSnBe8fdspTJs5keRCseCgIIEfKQRKmgViNRFAA6sLhh4qRYBf/ZYRfjiPWpJBWlAQB4BL6iFJedGmJ1Y05NU2F2CQ0yehujJVgLDom+GRe3YyktXvYelg3INNFyPdLWsWXLXxtl5JWcvoFKJo6/M4gNtQKCHwAfoexp3kz1Q8Ks6BHAJVscWkKSHwEph/d30Vq3nbfwKAkYRGJP4JBdOLKOmhtbKIIVQa/OFFn6UM3JYJF7oQXAgCCQgwM6rsaoc5xU7ZKtlpA4mMAdO1YPAsZX7D96gh6iQ0kYCcGDZaHVtdMbug9qYCoLGJuBROY6ShFpYHQGCdMIaIrE6PPAzewKe5wytyYYHu9nbJK0RR6WDDnNkpiUT+gWBDoEJic4r7rNc8oWL2lcdvPhpMoG2i90ITbav5rrBgaW5AU0V3//jG4v0pOt2U/WDXiDQTaAqMQqL+y2XNgq7I32nmzJeZ0VgZNQNBTCMitzJSlaMk4zAKDsWkWuVDDDOjk1gYrwgxiVFXrEQ/H1aKbdiy4MTQUAnAjTdP6iTvJDVLgJwYNllb220XTt/+hYSdpc2AkNQEEhAwKMdCfnJrsxWLnpiulaS2SX6AoFQBIbVv+p0MCpyp3McfqpNwPeHl0lBBJba9jNVuomxIjmvilLVqwTRV1K7RGcgoDKBly3ec/SVKgsI2ewlAAeWvbZXWnNKMcHug0pbCMLJJlCpyH+yWyp5YmYKTizZtkJ/wwmE2X1uVOTO8BHwqQoE2OU+yo5hnJkq6AIZzCEwTmmD42Nyal51qLCbFjsPdmjgpy0ECqKFNEJbjK2ZnnBgaWYwG8T1ZwVXGLjDBl2hIwh0CHCmTbksZ0fCTp/8s8SRWJPsxBoeKdF9Dl6DQBICRdoRc1QbFbkz6nx8nj8BP8TlyqG8K8/FtSd/a9khwQQ5riYkpg12qLHzynHkRkl3+sZPEFCWgOPAgaWscewWbPRdpt18oH0OBFYLh95Ewx7MYWgMCQK5EuDdjdKoW1WmSKzpGqdTYCGZq4EtGNwN6bAI4/ywAJfWKoZdzo+siaY1BQivCgGudzVOqYOy20btqxDeWtkDoz8QyJkARdi+avXDh67JWQwMDwI7CMCBtQMJ3sibgO9i98G8bYDx8yHAuxuVSuncKJfLG04suLDysa0to4ateYQILP1nhN8OdzUphIjI058GNMiTwBg5r3jHwTRahSKj03iwlIas6BMEZBOgNRlKusiGiv4SE4ADKzFCdCCdgC/ulN4nOgQBTQhUU7xZZifWJBV2D7fs1AQYxFSKQNhoGxRxV8pssYQJ64QMUxMtlgA4CQSIwFilIGopOa82oq/CxhrCHCBgHgHKC0AaoXlm1V4jOLC0N6FZCizfc+gG0ugqs7SCNiAQnoBLV+VySlFYLEWFnVhUEwtOrPA2wZHhCYQt2o0lYXimqh4Z1glZ5AJ/aCCQAoHAeTWRTuQVi1tF7asUrIYu9SLg37h63xVYl+llNOOlxV2F8SbWTUGEqupmMcgrn0C1Qs+85Hd7uccK1cSqpXjTf3kgvLCOQOgUwpDpZ9YB1EjhsHXM3IKDFCyN7KqLqNVKut9jwcOkFDZW0YUv5ASBDoF2q4XMmA4M/FSCABxYSpgBQnQRQK51Fwy8tJMA73ZUoYLuabYqpV1MBoXd0xwFfdtGIGwKIRWHRdOcQFgbsjO+wN4ANBCQRCD4/prg3XXTa0H0VXrdo2cQ0IeAI5BGqI+1rJAUdxRWmFkPJVfvPfxyutF9hR7SQkoQSJdApdJKfdvuapmcWIjESteQqfSupvfHo1SxsMWOwzo/UsGHTqUQiLLdBAq5S0GOTohAFt9bwYYqxSgzHKYBAaMJvHHlgcNHjNYQymlFAA4srcxltrC0oPmQ2RpCOxAITyCr4rEbkVjpPskOrzWODEcgzQTTcBL0O6pIqWJhG5aGYUmpe1zYXQhZA88LPzfU1RiS5U2AazjWMogcDtL4MWXzNjfGV4eA4zf9O9QRB5LYTgAOLNtngEL6U0wB0gcVsgdEyZ9AVtt3V7mwe8rpGPnT1FeC5ZYnaCN35RUIW8A9UAQ1sJS35ygBo0TRFQt63G4uNguj1MbnOREINiDZsYuu/GhU3nMgzY1UcsKHYUEgEQGqZIg0wkQEcbJMAnrcUcjUGH0pSaB+34FjJNhrlRQOQoFATgQ2orCyiVVJuyBuTgi1HvZioygePHtA/OKT14tvzU8rr0vY+lesSNgd7JRX2mIBo9iwoEEE1lrbFb/y1CvE//rsy8R3FiaFfNeIxZMloepl2nhkcofzijuV79ivVFsJpcXpIGAkgbcuzu7fZ6RmUEo7AnjUpJ3JzBTYb3l3032I/DsRM3FBK4sIVGgb79U1R/h++n8evCU5t8WlhkWE1VP1eL0qHrmwT/zVpRnR2rT7J8/uF2+Yuqj0RbIQ4Y4iSvSOehaCREwgig1d1xH8rx3F65Ux5scu7BUcgfVEc0I8sTwhrqzUxbt3nxM3z8yJIm2sgZYPgTJFCE9nkDbI2gXRV0XYOh9LY1TFCXhuqchphP9BcTkhngUEItxuWkADKuZHwBF35Tc4RgYBdQmw24rrcazU03dgMYXAiUX374vLcGJlPSueXBkXn6KIq+8u7oz+OL5aFd+j919dW8harFDjORQu6EXcaY4dIGGLvocSAgdlSiCqU71I3oG1tprRLQ1KaX2EHFjd7Tn6m/uTk1eIT5w5KG7ddV7ctue8mPCa3YfgdcoESkV2XmVXo7GK6KuULYrudSbg+m1OI4QDS2cjGiJ7NisiQ2BBjXQILN2zb78riiepdy+dEdArCOhNgJ8Hzy8UKHohOz1W6k04sTLA3aQIq6/Pz4hPn9svXlitDB3xuvFFMXvV00OPyevDUtEVM1PlSMNPT7YoKgfRDpGgKXIwW+3ipWjPQJfIKb5M1xUV2+cv7BH/+6mjQ0WruC3xdorGet/eM2JPEQ7+obAkfFiitMGZyeycV57ni6kJcrBiZSTBeujCUAKNRsM5MDV7Ys5Q/aCWJgSi3X1oohTE1IuA4xfvohuGLecV3xnjBkIvI0LaVAnwn0Ol3KIorK0/k1QHpM7HqoWgBgwvOtHkE1hte+Irc7vFQ+f3iguNcIu0f1iuCY7SumZsWb5ACXssRNiBsDOUzw5ZVOLs4NDqZ2C7iBJHKvIfse8kh/MGCQ9Tyu6oxn+zj1KU1mNze8RPTl4S7997Vry0ujLqNHweg0CZIq+mMoy8YhHHKF0f954xjIVTbCJQLBX995HC/9EmpaGregTgwFLPJvZJ5PTsPgjnlX1zABqPJFAu+VQLy6corOz+QMbJicUNTqyR5gl9ABdm/+LF3eLR8/sE7y4YtXGk1q9d+WzU01I/PkoB944w7L+KTqBzNn7mSSBO3Jyqhdy51tyLa+GjB7ku3TcpapL/XTu+JO7Yc0bcMLkA34ekCcnRnFMUeZVlejHX7ysW4sxqSUqjGxDQhAD9lXAaIRxYmtjLVDHhwDLVsprodXH22LQjGjdrIi7EBIHcCPDNfLXsUwpOdg4sVjZwYlGxoqUVNVN/cjNIxIH7FWaP2EVw+HcWpoJUw6OV1Tinp3ZOnOiaKEXAUxMcHcciEMeRvjFH+PqljqOAJWGncNzGxd63FXyfpoLvSIuNi1Ow82p6spyp84qFrVaQOhjbaDjRNgLv9md3TTqzc2oW5LTNGpbqi+B9Sw2vitqVUoN3tAiXP6OK0JADBHIiUCq1g12Ssh5+fKwoxsfwvCMOd075e+D41eLXn75WPH5x1+VdBeP0xeckXXDHHXfYeeySiBOBBQfWMKqKfxZzV9SCYiF3f70wPbL2XBhLdAq+/8KT14sHzxwQSy1cL8Nw6z4mL+dVgSKvEH3VbQm8BoGhBMr1YuWnhx6BD0EgZQL4hk0ZMLofToB2MaLdB9V5GjtcWnwKAvkS4CisCtXpWF7J/tnDBDmx+E9V1SLM+Vpm++icYvQ3tDD+9Ll94pn62PYPJfz2V5S69DMHTot9xXUJvSXvwqX6V3HSfTZ2scP1P7kFsu+hHdNsHIXVbKmzE+Gnz8aPvupH/VKzKB48e1B8hlKEueD77VTwfTcKvvdDte29Yg5pgx0Bqlz7Cg0EQCACAYfTCP9ThBNwKAhIJZBtLopU0dGZ7gT82b0T9WLpLOlR1V0XyA8CmRGgheP8kidarXwu35xKuLyCwu797B2nMHu/fsK8957d58T/eOhEmENTP6ZSjldwuVpui2oVi8fUDZTCAKurrlihf1Hbcr1BNfXUSEf+3mJNfOT4S6OqEOl4z/FR8H0EMXZeTVPNKzeOF3xE36M+LhZ9URtXx6E6Sl58DgKKEFiplpr7nH95Rr0dZRQBBDHSJYAIrHT5ovchBOqF0m30MZxXQxjhIxDYQYCjsGjhv7ySTy7OBKUS+vTfCmpiXTYNR118gXYUjFuY/XJHEV58iXZCu3vfGTFdyN+ZGKf+FasaN4onAiYcmhKBuOmfcVJNU1JB/Pm5A2l1fblfFHy/jKLvi6LnihnabdDJwXnFArETHQ0EQCAygbH6WvFddNYnI5+JE0BAAgE4sCRARBcxCfTuPhizG5wGArYR6OxImFcUVo3SCSmwwPp0wufqVfHwhX2CdzHjhWqWrUHjffb8XvHfHjiV5bB9xyp68XSPmYXWVwa8mS2BuMv+IqUQqtCeXhkT/0AF2LNsnYLvxyp18b69Z8VNUxcFR2jZ2tjxPT2VfcH2Du9isS24/hUaCIBADAJum9MI4cCKgQ6nJCcQ764z+bjowXIC/r97aXllcfWsI/xJy1FAfRCIRWC94VAqTj5RWB2BF5cbYqWuRjpQR6YsfnJh9k+dPSC+uziZawW/qtsSf3TtD8SYl28KzN5dFeG60W8nuHBybSJf2bOYLyaOwdcevgbFaefm6qId1wMWZ8A+5/DGCt+hv988G0dP3rrrvPjpPefEeM5/w1lzYOfVDO026Oblz6SpO0XXHs+DAytr22M8YwgsVhvFfc7scbW2RDYGLxQZRgARWMPo4LPUCKws1W+l+4d87x5T0w4dg0D6BEq0+C/QFbyZo/+oNk6F3anZ4MTqFGZ/iAqzP51CYfY4M6be9ih1cY+4gwpF59XYcRXHecXyxk1Dy0tXjLtFIIntOI1wPUcPFkdOsvM572ZrwfcCbfowQ5FXMXze0kxWougrOK+k4URHdhKorZSabyfVH7VTfWidJwE4sPKkb/PY2H3QZutDdxkEyANcLbfEYjPfKKzAiUUPsVdWc/SkyeA5oI8sC7MPEGHo2w9TGuFtFMFRcvIJaSnETB9kpZI4QYZCwYepE0hSvyxwYDXyma8M5pNU+0qluBu+xjx6Ya94jJzRb56+KG7fc1ZcQWmGJja2/UxQsD1H7fi7s6LSDMiRBYYGgSQEfMFphHBgJWGIc2MRoMs4GghkS8D/hPDqTx0+TaPuzXZkjAYC5hFYWPRoW/r8L+ULSw1RN8iJ1SnMznWmllpqP+v5J4deEO/afT6XyT1eLYiJzUi8qAJw3eaZKTMdn1FZ6Hb8pQWP0gDjXXfqqy2xsLSei8pn1sviXzz5CtEW8WTPSuhrx5fEHXvOiBsmFxSXNDwRj5xXu6bz2W2wW8pyqS3Gx/JzoHbLgtcgoDmBC9XGyQPOrMAXueaG1E18te/KdaMJeUMRWH3y8M3ChfMqFCwcBAIjCPCT5MXl/BdjkxOcTuiTE0vvmkacXvTY3F7x+MVdggul69AeOr9fvHPXBUrJyT6qIMmuckEEFousB2YdpkJmMvoJ/jY4hSyv9slz+5V3XjEb0wq+exSpuWsqf+cVO80rFTiv8vr7w7jGEdi95h26RYhTXzROMyikNAE4sJQ2j5nC+a5zNy900UAABJIT4J2UirQgbDTzWxR2tJicKNFf9rpY1dCJpUph9g7LKD/PrpfE1+eng/SjKOfJODapM8In7xVt5iFDFPSREQG2VpL0T3Z68tUqa6tfaJTEV8kxrVM7vloV//6FK8WfvnhIvHNGz4LvHhW7Cmpe5Vn0atPoQe2rvArH6zTxICsIhCRAazpOI4QDKyQvHCaHAC7jcjiil5AE6KaX7lv9O0IejsNAAARCEKhW1XmizE6sSjnfulwhkAWHcGH2b87PiN98+hrxW8+8PNiVLOtFdVhZRx33aYosyVx2uponicBinZI4QkYxwefpEPATXm44CobTybJun6ENGJoJIseylrd7vIuNonjw7EHx809cL/7PU0cEO+N0aBx5xc4rdmLl3XjeofZV3lbA+KYRoPuOu7g0jGl6QR+1CSACS237GCdd/b7DbyCljhinGBQCgRwJFGgr8CLtSqhCFBYvUyZrvLiiSKw1NdMJO4XZP3N+nzhPC0MT2nMUqfF3i1PitbX5zNQJnFcJ16VwYGVmLmkDyXCUcuReM8PLw1LLE1++tFsag7w64p1HueD756ng+01U8P39VCfraEXNXeyDyKtJcl4l2OhBJudyyacdU2XMXplSoS8Q0J7A/tWnD75JiNN/qb0mUEAbAnBgaWMqQwTF7oOGGBJq5E6A78O7nAfVSks0lumSrsD9uapOLJ0Ks8eZX//57P6MHVhdEzCOwHQO72aHR7cx4eV0Wtzi7d3iegWKwMrQwf0w1YlbbWUf9dWts8zXHEnGdfr4n4oF393NtEFVnFdB7SvatRcNBEBAPgHfdzmNEA4s+WjR4wACcGANAIO30yLgU/0rNBAAgcQEenwHBbqaB1FYjZ4PEg8UrwOWYqpWDFLE1tbzXTg8T9FJn6OoBZ0Ks8eh/tTKeFD8mRe0WbQCOyGStiClSwGva1I9bDpfQhpeMcOoHI5aeuzCHmMt1Fvw/c1TF3PZ0KEDmJ1XXLBdFecVy1UJoq86EuInCICAZAIfoGjq/5kcxfgylwwW3fUnoMZKp79seNcwAkv3H3612xJ/Z5haUAcElCHQajlifoniWZS6hfDFpYWGyMOJpXNh9riT6obJefGvrnw27umRzuPaNqViMicWb2fP29qj6UNgbd0VyyvJ7N6i0Lvzc9mkvn3q3AHxZy8e1AdwQkn3ltbFrbvOB//GvWwfHmxEXpUS18ZLiGDb6Q7tzjo92RIchYUGAiCQEgHHecPYb574Vkq9o1sQ2EYAEVjbcOCXNAk4Tdp9MIdt3tPUCX2DgEoEPKqFVaJaWOuKRGFtsHHENNXEurS4Rk6s9B0VbYoO+dvFmvgv5w6Kp1fGVDJPJrJ8d2FKHK+PiWPVldTHK8iIolHK2Zo6MkMGSG40ro/kkkehnXIRtAZdDz5rcPRVvwl1jnYl/TPatfCTlFL8tpk5cfves2J3cb3foVLfCyKvFKp51VGuUqbdg+C86uDATxBIh4AvOI0QDqx06KLXHgLJHqH1dIZfQWAYAddB+uAwPvgMBGQQqFazfeIeSmZaPEzXyhRpk95XDte3+SwVZf/FJ68XDzx3tZXOq44tHiIOaTderPI/NAsJJPdfBdC4kHva7YuUOsw7+NnYOgXff+nJ68QfnrhSvLBaSQ1DEHnFzqsMbBpFCXZcVcrpPziJIhOOBQFDCXzQUL2gloIE0r97UFBpiJQ9gdUPH3lZ2/V/lP3IGBEE7COwROk965Tmk2/jVW7PVwy9dWlhXaw15DnZ5puFYEcudl7xTmNoQriUQ/r7L/+hOFBeSw1HqeiJGapzk7SNj7XIsSnJI5JUGJwfisDaukMphMn/1haXGmJltRlqzDgHtSj66pd/dJ3giCS0DQKdgu83Ti5IQ+KQl4ivBUUZNfGkSbXRUbXaFlU4sCRTRXcg0J8AuYpfO/GvT6JUTH88eFciAaQQSoSJrgYT8D0KLcUaZTAgfAICEglUK20FHFg9zivWj96apoVO4MRKWNjdlsLscaZFm0A/fGGf+CeHXohzeqhzVFyshhIcB0kg0OdvO0avaUfrPH5pF5xXPXaRXfCdnVdcsF3Khg49sib9NYi+gnM8KUacDwKhCVCVGE4jhAMrNDEcGJdA3o/o48qN8zQj4PtIH9TMZBBXYwIeXdlVjmqZoppYpZjphFyY/YHjV4t/+dS14otzuwXXuEHbSeArF3enmjolLf0LDzZ2Gk/1dyTZrMAXqpQa18J76Fz6qbQpiZ96t8dpZ9Z//8KV4pcpvfBT5/aLlRjRq53IKxWdVwyQH+RwAXc0EACBbAiQ0/hD2YyEUWwngDt/22dABvqvPHD4iGiK52kozLcMeGMIEGAC7TbtSLjgKRv4yLWbLy2sUcH50fVJbC/MHndG37n3jPjvDpyKe/rQ83bPVGinseSXdKQQDsWs5IcydiFkxbiA+7kL6exE+I35GfHx548pyU9Foaq0RXSUgu9cgJ+jaVWNxHTJNzo12cRNp4qTDTIZTcBrt68r/9bpHxqtJJTLnQBSCHM3gQUCNB0KKUWYhAWWhooKEXBd2pGQdl9aW0vuZEhDLV5g7N1N6YTzDbFc718Ta7XtiS/N7RKPnN8vzltaiDkJ+8do97U7yIk17vXnG7dvTs3xJDiv4o6P83ImICmohZ0gvBthqy2pw00s3NsnEX0VaZJ0Cr5/4eIe8ZZp2rlw9xlxuNK/hl6Byp/t2V2kWntsu0jDZHZwEH2V2WgYCARAoEOg7bmcRviRzu/4CQJpEIADKw2q6LOHgH9Xzxv4FQRAIAMCXLx2fZ2isOSuDxNLzmkdU7U27WLni8kJKjjfcMXiclss078VCsiYWy+Iz9LuYV+Y2yOWY6S2JBbQkA54Ufp5YngXObFkNk79kuYWDZ5tKDZBZcIysS9pxhdB7aRWwnp4vYj/bnFKHK+P9b6N30MQaFDk7pcpNfsr9O+G2oK4fe9Zcd34IqV8O2JijP+5Yox+OkFsb4uu265o0PVbpRY8vCkq6llTCRRkAYEUCND9JhxYKXBFl9sJqPWts102/GYAgYXZQ3tIjZsMUAUqgIB2BFS9kS/QoxOWrdNKtMv97mlXXHG4II5dWRTLU5PCHyuLcmHrmM6x+BmNwKO0O+O6L/erXtWaN9HI4Oi4BKimZdxTd5xXTCGSD9FXOzBHfqPo+aJcdUV9fFxMHxoTV19REPv3eGI8cF5tdVcuypsLW70me1Wt+FT7KlkfOBsEQCA2gdes3nfkpbHPxokgEIIAIrBCQMIh8Ql4JfcuCv/APIuPEGeCQCICnR0JlVpmDBGmQk6rWw8tBP+49tUTlyriG+fGxVdfrIm/nRtXLposkXEyOHm+WQiiKd69+5y00aQW38ZCU5pddOxItjP0h8sTgnfaQ4tOYKbcFG/ZvyRuPrAo3rRvUUyEiGIacimPLoCEMzx6MFIuIfpKAkp0AQKxCbT99t108kdjd4ATQWAEATgWRgDCx8kIuO323T4ehSWDiLNBIAEBrjVVplTC1TW5UTgJRAp9qkuphtfN1IN///jl58W5ekF89Uwt+PeNsxOi3tRPp9DKSzzwM1QP6NZd5wXzlNGKuHOQgVHjPuR5Hb2CvL4Y6CfP7teYa7ai8/Xg+plVcfP+RfFWclpdO1XXPnKpQjsPooEACORMwOfax3Bg5WwFo4eXe+dgNCooF5XA3P1XTVVaa2fpvFLUc3E8CICAPAKc8XOJdyRUZC8FTiGcnGgmUnC95Yhvnx8Xj5+ZDKKzTixTHiLaQAK/dPS5oDjzwAMifLBvV0U4VHxbRhuvtgMHq4y+0Ec2BNgZvlKX5zw+e6EuJbLy+GpV/PpT1yq782o21hk+So2iqji6ih1WHG3FUVdJmuy5kEQWKs0X7DyYpA+cCwIgIIWA73j+seq/OvW8lN7QCQj0EMBz1B4g+FUegWpr/XZaN8N5JQ8pegKBWAQ4CLJS8kVdkR0JZZTQKVGNljfRAoz//cZPCMEOrMdfnBSPn66Jb18YF1yMGG2LwJ+fOyBumrqYOAqLdx+U5bwKpIOZtoxk6SueU81m8ujAPz97AM6rPnPoyHhD3HJgQbz14KJ43e5lUeyqP9jn8EhvybiWRxpwyMHVqtzdVocMhY9AAASGE3D8FpWQEeLfDj8Mn4JAPAJwYMXjhrNCEPAFdh8MgQmHgEAmBDi1YnXdlRLpkFjg5GvVHSLwIu1nr74Q/OPUwr+mull/wQ4tSjnk1EPb28nVsvjbpZq4kXYWS9IKKRTdTiIPztWfQJFCZ5rNZM6Hk2sV8dcLU/rDkKBBmRxUN5Cj6vX7lsTbyGl1VW1NQq8DukjhWj5gpKFve/RAo4RNP4YywocgkDEBTiOEAytj6LYMh2eftlg6Yz392UNj9aLD6YPjGQ+N4UAABAYQqK/SrlL0L+/GdbmmJ5OlroTVAYXgt0i9dGxF3Hv1k1tvxHg1PlYQE2Py0jWRQhjDCDmfskrXkBWJ15GV1aZYXGok0uoPT1wpHr+4K1EfOp+8m1IBb9oswM4/xwvJHIJhWazUPaqvmP9SojbeEkUFd0QMyxHHgYCBBNq+KBwZ/9fPnTZQN6iUMwE8ls7ZAKYOXy+576FQDzivTDUw9NKSQKXs02JD5B6FlWXaSW8h+Lm1gvjamQmKzqqJr9PPpaanpS3jCP30ypj4h+WauG58Mc7pwTkcLYNmOQHJ/oqku1peaBTF1y7NWGUUjwqwXzNNBdipltUtVIT9FdP5FGD3g4u55AkR0ZJcU7GI6KuI1HA4CKROwBVO804a5Y9SHwkDWEcADizrTJ6VwryFar43NVlpinFAQBcCDi16OJWwLrEAsy66d+TcRZEKt19xKfjXoqL235urBrWzvkK1s55dLHcOM/bnp87uE9e9JL4DqyB51zh8TWg41SSnjRUKyZyinzq3XzQV2aAiTWtOFVtBWuAbKTXwFnJc7alkE8U6TKcsH0YMkqNaoWgz3G4OwoP3QSA3AnTLyWmEcGDlZgFzB8Yl31zb5qaZ/8c3FuvnXzxDAtj1SDQ34hgYBMIT4AVH7jsS0jfPLk4hVOwbyJZC8Pe/9ElxVXUl/KTZPJI3A9i3uxr5vGEnjI/RLoSl9rBD8JliBNJIRT43tyralHAStc03C+IXnrherPvJnGBRx83q+O4C7D+5e0kk9PVJF3tx2RONRn4X8gJFXk1OZJMuKR0eOgQB8wm0Wk7rYO03XzxnvqrQMEsCiMDKkrYlY62cP/NOup2B88oSe0NNvQiwE6Ja8cVKPb9FB28VxgETOUrQ12gDC8FTuuG5VXO+Lh+iiJVfueLHfRkMezNppEy/vjdSkPp9gveUJZDCH26RPDNr69EdEQ+f32eU86ritcVrd62Im6n4+tsPLoiDY8lqg6U+h6L7HKWKVKWIYjQQAAFlCXgF372dpPs/lJUQgmlJwJw7ci3xmym067fv8nmVjAYCIKAkgXKZdiRccyniIUfxeOGj8GWiWmgHi0heSJpWCP6b81Pi9HpZHCxF250saa2iHGcbhpZJIAWnBc+tNRHNgbXS8sQX5vbI1CyXvg6PrYs37lumf0vizVTPaoyuPbq0PFMIuWg7al/pMlMgp7UEfIfTCOHAsnYCpKO4wsuHdBRGr+kS8D8hvPrTh09RhMW+dEdC7yAAAkkIrK27Ynklv7Qb3oWQdyPUsZlQCP4dMxfEPzvyfCT8tYmiGKvIfe41Vm0J3lwATR8CaaQQrq61xPzieiQI//nsAfGJMwcjnaPCwaoUYJfBYn7RE5QjJKOryH1M1lqi4OHaERkcTgCBbAk01l1v//RvPH8x22ExmskE5N6JmkwKuoUisPrkkbcI14fzKhQtHAQC+REoUd2h+qpDUVj5LD50XnZ0F4JfI37fvTAuvnV2QuhUCP6r87vEz+w/LWaK4VOUsANhfn+vpo8cNT11re2Kz13Yqw2WqRIVYN+7UXyddw6cpN9NaHlFYJUo+grOKxNmEHSwgECx3Gr/NOn5pxboChUzIgAHVkagbRnG99p3BcVtbFEYeoKApgTYbVWlVMLlupePBjp7sLqIlV1fvJEWpvzvV65/UehSCL5BjjeuH/RzB092aTP8pSd7B8Lhw+FTiwh4XjRHOqcOLlABd5Xb1bU1cQulIL+eUgN/as+y4Mgr05qf0+6PqH1l2kyCPiYT8J02pxHCgWWykTPWLdodQ8bCYTi9CNCTOKd+7+HjJPUVekkOaUHATgL89HxhsSBaOZRcmZxoioLa68/Ek6LedMVfnxsXf/HipHhcwULwZbct/uja74sJb3Q0CDsY9sxUEjPp7WCs2qYUwhwmYK8g+D00gTRSCHnwC5fWRLPZby6w42frdpWdr7/05HVirlkKLXMWB1apAPtrNguwv/PQgthfDR/dmIV8aYxxcb4gso7CKhXbYmK83zxJQ0P0CQIgIIFAvdpY3+fMnluS0Be6AAFh+PIBFs6SQP2eIz8pHP+KLMfEWCAAAvEJ8F4LlUqLamFlH4VF/m4S3LyIhG5r9CsE/xdnaoEz64eXqpkv/Lpl49echvXY+b3iA/tf7P1ox+9RU7x2dIA3QGAEgQI5SZvNfgdtOa/408cv7VLGedUpwH7LgYWgCHvJsppMmV/BaSrwLrpoIAACWhGo1gul20jiB7WSGsIqSwAOLGVNo6NglD7Y9ZRURw0gMwjYRqBMtURWKQ2ulVMtLFt4u5Q+dN1MPfj389eeFd2F4L92ZkIsN7N3IjL7Ry7sE+/dc1ZUKHpkWMMOhMPo4DMZBAInKRVzH9badI/xmXP7hx2S6mecBvhqirJ6K9WxeuPe5eDvOdUBFe48SB/M2JdUpugrzzInocJTAKKBQHgCruA0QjiwwhPDkUMIwIE1BA4+ikjAcciBhQYCIKAVgc0n2ksr26McUtchqJ2S8eondaXCDzCoEPyXT9XEj5fK4TtKeORSyxNfubhH3EZOrGGNo2PQQCBNAoUQNda+dmlanF7P7u+D9Z0pN8VPUg2rW8hp9baDC2KCnChoFD+bce7gRsQw2GPugYCWBHzxXv/3jlSdXz1R11J+CK0UATiwlDKHvsIs/faRV9HtzDX6agDJQcBeAlxThGscZbkdur2uq53zbFgh+L+5MCH6lgXa2U3sdx6iNMJbd58ThSFFpotFN3b/OBEEwhAYtcslXzM+nVH0VacA+82UGvjqXXXBEZRo2wlkTST4nsJlaLsR8BsI6ENgYmW1fSuJ+5A+IkNSVQnAgaWqZTSTy/Pad2/UtNFMcIgLAiAQZP7yrk5Ly9mlsWX88F4rKx8Zb4ifvfpC8G9h3RPfPDchvnF2gorB18T5Vflf2xcaJfG1SzPi5pm5vpxcCn3wXERg9YWDN6URcGmO8b92u79r5NsLU+L51aq08bo74np1vFMg17J668Elsa9ifgH2bv1jvc5wB0K++qD2cbaUxQAAQABJREFUVSwr4SQQUIeA73AaIRxY6lhEW0nk3wlriwKCJyFAtRDuQvmrJARxLgjkS6BU8EWBaos0Wxk5KvqvUfOFoODok6WWeNfh+eDfb9GC8YlLFZFGIfhPUWTLW6Yv9o00CZPapSA6iKQhAU5VXR/gwHpIcvQVO4rfsHcpcFq9af+SKFItQLTwBLJ8CFGmnUpd2Ce8cXAkCChIgO4u3+/PXl9yZn+wrqB4EEkjAnBgaWQsVUWtf3j/S2hd9WpV5YNcIAACIQjQnQVHYS1mFIWV5eInhPZaHNJbCP7CWkF8nQrAc2RW0kLwJ9cq4tuLU+KnJi/tYJFqAXf4DHbwVv6NFG3GhdzXGzvrHP39ck08uTKeCE13Afa3HVwUV9XWEvVn+8kpToNtaLn2FaKvtiHBLyCgK4Hp5fL820n4z+mqAORWgwAcWGrYQWspfNf7oNYKQHgQAIGAQJF2JCxQJFazmX4UVlaLH5NNu5uKS99+xaXg3xrtIvndC+PiW5RqGLcQ/KfO7u/vwCKnAhoIbBFI7/owKNrvU2fi7TzImyW8maKrbqYC7BxlNVEYvsvhlo54NZJARimEFYq+clCDbKQ5cAAI6EDAa7c5jRAOLB2MpbCMcGApbBx9RHPu1kdWSAoCIDCMQBCFtZRdLaxhsuCz8ARkFIJ/uj4mvr80IV45sbRt4EFOhW0Hxf0lPV9IXIlw3ggCfuBMSMdwHIHV255eGRMcgRWmcZTitdOr4o17l8lptSBes2uFnB9hzsQxUQm0RfqPIdh0lXL640TVHceDAAjEI0D1ku/0Z8U/d2ZFM14POAsEhIADC7MgEYGVjxw5TLsPvj5RJzgZBEBAGQJFisDif42Uo7CQQpiuybsLwc83vCAyK0wh+E+dO0AOrKe3CYcUwm048EuK/oSNnQjZbbE1yCdpTg5r3QXYb6bUwL0VrIuG8ZL22ZaJpHXZ21GF0toRfdVLBb+DgNYE9qwWD79FiJNf0VoLCJ8rATiwcsVvwuDtu2gLMzzfNMGU0AEENglwFFYj5SgsOLCym25Txa1C8P+G0n6eHFII/ntLNfEMRWJdXV0JBGTnFa7w2dkKIwnh0Z1pa9MHdYJqs31ncXIHFnbQbuwYuChet3sZBdh3EEr/Ddq8J9VB+LrD6YNoIAACZhGgKCxOI4QDyyyzZqoNHFiZ4jZwMJd2H8zgKZyB5KASCChLgOtgFYvkxGrsTOdRVmgIFooAF7K+bqYe/Pv5a8+KfoXgP027vf3qFT8O+uNd4dJsG+loaY6AvnUjwFFYreZGrao/P3tAtMlRwimyN5Cj6vX7lsTbDy2Kl0ygAHvedk37IcRG9FXeWmJ8EAAB6QT89gcojfCXKY0QHmrpcO3oEA4sO+ycipYL9x7eTc6rt6bSOToFARDIlUAQhdUkB1ZKDmp6Aperfhh8g0C/QvB/Sbsanm+XxR53jYr6w4mJuZItgY7T9GK7KHZT8NXvvvwFcRMVYB9HAfZsDZHjaEH0VSmlL58c9cLQIAACRMBxDtQLh94gxKmvgwcIxCEAB1YcajgnIFAU/p20CMUcwnwAAQMJFKiOe1ALq5GOoyntp/cGmiR1lboLwfNg640C1UITot2inSlbjkjFZkEaEhaqqRtXhwHoUuN5vpiedsXeXQVxbVmINzkndZDcShnbKcZO8AMU1L6yclpBaVsIuEEaIRxYtthbsp54tCoZqFXd+ZQ+iAYCIGAsgbFqilvOw2eh/LwpFR0xXhWiNtESU7WW8CiNCw0E6PG5dAglSlmemWyKKZprtTFfVCoOaq9Jp6xHhy6tTMqlFL1jemCAlCBgNgFffIgeisn/MjGbGrTbJAAHFqZCLAL+A3tqtJR5R6yTcRIIgIAWBKgUjSgV03FapNOrFli1FNIl5xXXpJHecPsqHamOHRYpXQybBehluVQiMglBlQq3Yy7oNRcgLQjEIHB05Z6jN8Y4D6eAgIADC5MgFoF6o/Q+OrES62ScBAIgoA2BakpRWGktfrQBq6GghTQSxuHJ1HAmyBcZpdbkM027xzSCJ9hRXsLOg2mbDv2DgBIEHNHi3QjRQCAyATiwIiPDCQEB3n0QDQRAwHgCHIVVTqOYLhwX2s0d3sEQkRHamU26wL5k7zMH4XHtKzTNCKRgsmolDbeYZlwhLgjYQsAJ6mDZoi30lEgADiyJMG3pyp89VqGdyd5ji77QEwRsJ1CpyK+FlcLax3Yzpa8/eRpQByt9zMqPIDnt0yvgaqC8zfsIKNvVxNcW1L7qAxpvgYC5BF629NtHXmWuetAsLQJwYKVF1uB+V0rr7LyqGawiVAMBEOgisBGFJbf+keQgji5p8TJNAnA2pElXk74l+5t4x1M0/Qj4bbkToVqV259+RCExCNhHwPEE0gjtM3tijeHASozQwg6w+6CFRofKthNAaoftM2BDf9QqwjyQvW+U58l1jsNC2RCQ6W7a2DAE8yAby2EUEFCHgCt8OLDUMYc2ksCBpY2p1BDU/+MbaWN1wQXc0UAABCwiIL+4ruQ8JItskaeqBdQqyhO/kWNjTulpVt+Xdw1Pa7MQPclCahCwhwA5wl+5du+ha+3RGJrKIAAHlgyKFvWxNnf6baTuLotUhqogAAKbBGRub44UQj2nlUv1ilDIXU/bSZNaouOC55KHFEJppsm0I0khWFzAv4Q6aJmaDoOBgEoE2sK5WyV5IIv6BODAUt9GSknot3GRUcogEAYEMiTg0jeGzB0JJa1/MiSAoTjmwkUUlt0TQV7gDTYF0HUm0cVb1vV7rEKpgxLnlK5IITcI2EqAHmgijdBW48fUGw6smOBsPM2fFbRHjHi/jbpDZxAAgQ0ClXJL3lpDYiQH7JMdAaR8ZcdayZFkeS5IOWwKoKSFRwolawdCvpYUixIn1EjJcQAIgICCBG5Yve+KqxSUCyIpSgAOLEUNo6JYq6WDN5FcB1WUDTKBAAhkQyCIwirLKbaLNMJsbCZ7FBRyl01Us/4ceQ4HzCXNbL8pri/p4l2tyvku0ZMipAYBEOgQaLdbd3Ve4ycIjCIAB9YoQvj8MgHfd3FxuUwDL0DAXgJVSvlwJCxiJa2B7DVETppzzRo0iwlINH8BtY+0nEgypgDbvgj7a2l/CA0CKRBAGmEKUE3tEg4sUy2bil7Onal0i05BAAS0IsCFlytlGUsYrdSGsJsEgrQv1KzBfEhIgKcQ6qklhJjX6RLSv/lBCBoIgAAIbBJ4w8pHDh0FDRAIQwAOrDCUcIxYvu/gjVSy8yVAAQIgAAJMoEJphEl3o4MLTM+5xI4HT0IEnp7aQ2pZBHj3QfhBZdHMtp+k126ue4Xoq2xthtFAQHEC/HVwh+IyQjxFCMCBpYghlBej5WKLU+WNBAFBIDsCG1FYyZ6gI4UwO3vJHqlAzgc0WwnIcTshFVXf+UM7UicSHtFXifDhZBAwk4DrII3QTMtK1woOLOlIzeyQFqtwYJlpWmgFArEJVJLWwkr6GD+25DgxKQHsHpeUIM7Hbpb6zgFfxL94lyj6CrbX1/aQHARSI+CLty599NiB1PpHx8YQgAPLGFOmp8javQeuo96vTW8E9AwCIKAjAX4Gz06suC3+EijuiDhPFgFEz8giaW8/nhf/2mEvNTU0TxI9i+grNWwIKUBAQQKu02i+X0G5IJJiBODAUswgKorTFh6ir1Q0DGQCAQUIVEp+7B0JkyyCFFDdahGCCIpkWURW89NaeUmeZ6+gNQW7hY9ZxL1UpDtK7GJq99yB9iAwjIAvkEY4jA8+CwjAgYWJMJIALTLvGnkQDgABELCSANfCqlZirmhjnmYlaMWUZru7KOSumFUyEkeC45KdGBK6yUhhDNNLINalO8l3Ra8A+B0EQMBIAo7jv21+9sguI5WDUtIIwIElDaWZHdXvO3CMNHutmdpBKxAAARkEyrQjoRvj2yTWIkiGwOhDCgEUcpeCUbtOfAmhkztqIOFioNU8iDMFyoi+0srGEBYEciJQLJX823MaG8NqQiDGkkMTzSCmFAJ+2+NQTjwolUITnYCAmQT4AlElJ1bUhjVrVGJqHY9UILXsoZM0hd70Qdxl6GQ+ISKmEAa71iaol6gXHEgLAiCQhAA5yJFGmASgBefCgWWBkROqiPTBhABxOgjYQKBU4iisiC6piIsgGzjqpOOOKBqdhIes8QmwNyJh86JeKxKOh9PlEmhH3IWQvx88rDjkGgG9gYC5BN7lz+6aNFc9aJaUAL5OkhI0+Pyle/btJ/XeaLCKUA0EQEASgaAWVjmaAyva0ZIERTfSCOyIopHWMzpSmkDSP1zyfyF6T2kLjxYuwhyIG6E7WggcAQIgYCiBcr1Qea+hukEtCQTgwJIA0dQuHKfIuw9ijphqYOgFApIJlIOn7BFWNojAkmyBbLujYquxap9tkzLCdNl2Hn7RloBHHg0JQVza6m+C4H6Ea3fcGokmcIIOIAACMQk4DtIIY6Kz4TQ4J2ywclwdsftgXHI4DwTsJEAL00qEOidxCgHbCVYhrXscToikUcg2mohSKPRMIk3khphbBMJaMIjMjbtL7dZweAUCIGAfgdv8j+0ft09taByGABxYYShZeMzF2WPTtBa92ULVoTIIgEACAuWSj1onCfgpfyrnA3W1xHWwevrr6hovDSUAp6cBhg3pwarQ5h4cqYkGAiAAAhEJjNUbxXdHPAeHW0IADixLDB1VzUqxcSedU4p6Ho4HARAAgWq1FQoCIrBCYVL6IDgjlDaPksJhzihplkhChUkhZMcVO7DQQAAEQCAWAb+NNMJY4Mw/CQ4s820cS0N6XobdB2ORw0kgAAIlShEKs0jFc3n950rBS6hDhFo6CUfC6XEJ9Pyh+hF3oNs2LEXcJY7a29YhfsmDQJg5UKFNPVDrLA/rYEwQMIWAc7s/e6xiijbQQx4BOLDksTSmJ3927wQpc6sxCkEREACBbAnQInUsTN2TnoVxtkJiNBkEXIqywCJVBkmF+9iR5rnjjdDCey7mS2hYCh84KnqWrwmIvlLYgBANBPQgUFspNt6hh6iQMksCcGBlSVuTserF0k+TqFVNxIWYIAACChIoFttiVLHmUYsgBdWCSL0EaKGaJKLGR32cXqJG/84OLDT9CYxKIdyofaW/ntAABEAgZwK+QBphziZQcXg4sFS0St4yOeLuvEXA+CAAAvoTqI6of4KlrP42Zg3CpIsO1BSTYCAaEz8oFEzUCjp1E9iofYU/7G4meA0CIBCPAEVz3uXPXo+azPHwGXsWHFjGmjaeYv6/e2mZnqzdFu9snAUCIAACWwSKRV8UqR4WmtkEPNjYbANL1C6Rs1OiHOgqGYFh0bNVSh/HzoPJ+OJsEACBywSm14oXb778G16AABGAAwvTYBuBlYWVdznCn9z2Jn4BARAAgZgEqpXBu1ANWwTFHA6n5UAgcSH3HGTGkDkQSJhumoPEGLIPgWHXbZdWFeXS4Gt+n+7wFgiAAAgMJUAucaQRDiVk34dwYNln8xEaO9h9cAQhfAwCIBCeANfBGhSFNaqOSvhRcGSeBILC3HkKgLG1IOCRAwsF/7Uw1VAhhzmw+IEFbDwUHz4EARCISIDi+O/0PyGS7nkccVQcrjIBOLBUtk7GsvHFgW48bs94WAwHAiBgOIFqFU/kDTdxsjpYpsMxTb+YWcFIHzRjIgwyv0sF+kuIvjLDyNACBNQisH/1R0dvUkskSJMnATiw8qSv2NirTx2+hUTao5hYEAcEQEBzArxLHdfD6m073+k9Ar/rQgB1sHSxlAQ5Y+4ciTkigb0KXfgUStenBbWv+ryPt0AABEAgKQHfbSGNMClEg86HA8sgYyZVhRaT2H0wKUScDwIg0JfAGO9I2LvuoYsOnFh9cWn3ZgF3E9rZLLbAAxwYo/pjRzaa/gT6pRByGjFqX+lvW2gAAsoS8J0P0LWn9y5SWXEhWLoEcMuZLl9tet+8KLxfG4EhKAiAgFYEOPqiWOiTSog1rVZ2HCQsnBODyOD9DgEU+++Q0Ptnv0t2tdrvXb31hPQgAAJKEThcv+fw65WSCMLkRgAOrNzQqzVw/Z5DbySJjqglFaQBARAwicBYnx0J+z3NN0lnW3RxyUGJ4s22WDu6nlwfyYmZehh9NJyRJoHea7ZHK4lSsc/DiTSFQN8gAAIWEsBuhBYava/KcGD1xWLjmy52H7TR7NAZBDIk4NEeMqVS75N6RIRnaILUhmIrukgRS42v7h2jgLvuFtySv9eBVa22tj7EKxAAARBIi4Djf3AzYyitEdCvJgTgwNLEUKmL6fhwYKUOGQOAAAhUuRZWV+tdDHV9hJeaEUAaoWYGy1BcpA9mCDv1obYeOnBqeIn+oYEACIBABgSOrdx/6DUZjIMhFCcAB5biBspCvKV7DvPF4OosxsIYIAACdhPgSIxydxQW1j7GTIh4hdy3FsPGgIAiOwjAubkDibZvdD906Ls5h7aaQXAQAAHlCbSRRqi8jTIQEA6sDCCrPgQtH7D7oOpGgnwgYBCBSqV1uV5SzA3NDKJhjiocjYEGAv0IIIWwHxU93+s4sNgpWSzib15PK0JqENCTAK1ZP6Sn5JBaJgE4sGTS1LQv1/HhwNLUdhAbBHQkEBT9LW2kEnYWQzrqAZm3EwicFAio2g7FwN+iuiy4eLuLu01jZkLH/tXq9nRwYxSEIiAAAioTePnavQeuU1lAyJY+AdxSpM9Y6RFWP3zkZb7vXK+0kBAOBEDAOALV8uaudZ3VkHEa2qcQ+6487DRnvuEj/s0WCuYjsUlDn/xWBYq2LCLi0iazQ1cQUIZAW7gfVEYYCJILATiwcsGuzqC+6+MioI45IAkIWEPAdan4L229jggss0wOZ4VZ9uyrTcQoO9S/6ktR6zerFURfaW1ACA8CGhOgwIsPaCw+RJdAAA4sCRB17sIXSB/U2X6QHQR0JhAsgpyIq2GdFbZAdo8ck1GaDw9mFFxqHBvNxAI7EKphNllSuJ5A9JUsmOgHBEAgDoGfWP3woWvinIhzzCAAB5YZdoylxcoDh48I4dwY62ScBAIgAAIJCXBdHKrBl7AXnK4SARRyV8kaKckS0eeMAu4p2SGnbjlyFg0EQAAE8iTQdt078xwfY+dLAA6sfPnnO3pDcPpgxFvRfEXG6CAAAmYRQHqRgfaM8q0S5VizUFmhDQdYcrowmjkEeBMONBAAARDIl4CPNMJ8DZDr6PgayhV/zoM7/l05S4DhQQAEbCcAB4ZRMyBwWCCqziib7lAmgj8KDuod9PAGCIAACIBAcgKvq3/k4JXJu0EPOhKAA0tHq0mQeXF2/z4KvrpJQlfoAgRAAARAAAQuE4hU8yiCM+TyAHiRL4EIdevgwMrXVBgdBEAABAwlQI/KXARiGGrcUWrBgTWKkKGfu8Ui5w5TKU40EAABEAABEJBHIFLNI0TgyQOfVU8RnI6oiZaVUTAOCIAACFhGwBFII7TM5B114cDqkLDsp9Nu/5xlKkNdEAABEACBDAhEirqJ4AzJQHQMIZlAJGem5LHRHQiAAAiAgNEEblq+58qDRmsI5foSgAOrLxaz31y+Z89B33XebLaW0A4EQAAEQCAPAoVCHqNizKwI+CKc15EzDT1E2GVlFowDAiAAArYRcNbXGx+xTWnoS5vDAIJ9BJr14qtxT2mf3aExCIAACGRBwOHKFGHvLvBllIVJ5I4R0mZBJF7IY+UKiN5AAARAAARsIOA4zits0BM6bicQ9hZz+1n4TWsCkz9x+guNprOmtRIQHgRAAARAQB0CPUE5SB1TxzTSJemx9aD+MQcGkcH7IAACIAACSQn49F3UaIr/K2k/OF8/Agj0189miSV2fka0Tvya/wnPFT8n8HQ0MU90kC2B9XVfLK20tg3K09jtncv0Rr/0lX6RIfS3QJtybu+A++NIku7m0HFuz3H8N9Q7Nvfk9hm8z1sbkSrbhw766+2T39zxXrdweA0CeRLomcMcfdNo9LzZTz4/xDH9zsN7yhOAA0t5E0HALgKtNn3n84q4q7XpV/7X3fgQn47tbnwZa/e8x5+3Wj0n03v9juMx/J6B2tRpjzh0kC9Yzt7Wr8/guJ4OgnF6Tp4Y80SphOtwDxb8qgEBmvd1p+r/3xqIChElE4ADSzJQXbqjhfmjrbaDQu66GAxyXibgkRfIpxu7tbU+d3GXj+IXO28ct31swC98y+n0eMX4BpwZ9bbAcdfzNjvjiOa2Q/s56YJxeuJ12Y/n9vGoee72/rhzPm6H34/664hTKrqiXN76fZtA+EVLAnBeaGk2qUIXsM+xVJ55d8bOj5W6Tw6YjWt8P6cJv+f3Ok34W6b36zqKI4aH63Hu9HkrGKNn6ECWVh8neaDDhhp5Y811/HKZHvTR/UJr+zPBXGXC4CAQgcCXD8+eWolwPA41hAAcWIYYMqoaTafwmOe3mnQe5kBUeDg+dwKTNU9caLT7PsnMXbgMBeD7b7/PE95Wz83+YJEG3cEPen9wT8k+aYkyPQE+fKBAP5P1hLPVIBDaedHxYqohNqQIRWC00fgIODFDwdTioPmFtnjxXKvXj6SF7DY8zIpjCH7+VJvAEiAOO5yjCAFHPKKIJBAjYwI9z9QzHh3D5Ubgyvufv+gL5xu5CYCBQSABAdx4JYCn6KlrlBr63ImGWEV1PkUtFE0sl9Jve6PuovWAo5UlEMK/XSiEOEhZBSFYhwBHNC0uC3HqrK7Oq44m+NlLoEYPAoPyCb0f4HcQ0ISA22w/qomoEFMyATiwJAPVrDt4rjUzGMTdIlCh0PdyGZewLSL6v+KaHUuUorKyymko+utjtQb0dD/YhW4UBNh5FCH1Pu+pDdhPQERf9aOi13ucDrhIyTn8cAHNLAKcOljB/ZNZRrVPm+8d+t3Tz9mnNjRmAlj9WTwP/LYDB5bF9jdBdU4l7FeU3QTdrNSBnB5cl4ujsJZo4dSvxoqVXDRVGk4MTQ03SuwQ/gzYfhREtT9vUE2k+SUhmlRoIqh1SNdmNDMIIILdDDtCC6QP2jwH4MCy2PpX/M4L3yf1j1uMAKprTgA3YpobsEd8jw262WhrZLFAqStNFJftINHupxcmjSxENI92ikNggRRCTScBOSfr9ACB0wa7o2C7r82aagaxNwkgdRBTwQQCtGERgjBMMGRMHeDAignOmNN88VljdIEiVhJAKqE5Zu+txxGksNBCanXdHB1t0iR0IXeboJig65afua82/HHv33LfA/GmUgTYYbVUJwcWpXD3bE5LBfmVEhXCxCSA1MGY4HCaagTmDh0/9U3VhII82RGAAys71mqO5CIEU03DQKooBJBKGIWWusfydt69jRdVK7SoWqaUwhCZS72n4/ccCXguFXIfNT6MOoqQep+PsFmoyDv1tLJaIq4/uEApg+uN/hg4tRtNbwKIWNfbfpC+i4AvHnUeFIjP70Ji20s4sGyzeI++/rrzZXqLloZoIKAvgY0bMzwi1teCG5IPi9pYo4UVL7B4oYWmDwE4M/SxVXhJhzszUP8qPEkVjgxzbUUElgqWSiYDUgeT8cPZ6hBwXKQPqmONfCSBAysf7sqMevTjJyi2QfyFMgJBEBCISYB31MGuOjHhKXKa2ycCq1u0Fj1vGxYl0H0sXqtBAM4MNeyQpRRIHc2SdrKxOF0wiG4dFVXXVZ8w2Yg4Ow8CSB3MgzrGTIlAy3edL6TUN7rVhAAcWJoYKk0xHQFPdpp80Xd2BPCEMTvWaYw0yoHFY26r05KGEOhTKoEC7jKk8tShs4I3whuigxKGy8j1BflhABdsD9MQgRWGkprHIHVQTbtAqngEaM36tSP3nbwQ72ycZQoB3FqaYskEelBpg4cTnI5TQUAZArhRU8YUsQQZEYC11Setj/vtlLV1AF6pQgC70aliCXly+EOq0XGpJJdqn6GpS6DBkawRd3h1h+V3q6sqJCMCeLCHaWAUAQe1m42yZ0xl4MCKCc6k0w49cOp58mj/wCSdoIu9BBAqr6/t+xVxH6ZNoynEPEURNFHKcximXD9zKRpneMWkXMXD4JIJcKQO6n1LhiqxuzXa0XWJnFccgRWlwX8VhZY6x6K0gjq2gCRyCDRF4RE5PaEXnQnAgaWz9STK3vZdXBAk8kRX+RLAE8d8+ccZ3aVvozgLX16ILZITixdmaOoRYOeVW0BEjnqWSUciz4voGUlHDPTaQ4D/Apdou55lqnrKadhRWxBZB090VGy5Hs8R6RMT2NwmVyNgcNkEnr/ygecRcCGbqob9wYGlodHSEJkK4sGBlQZY9JkLAaQS5oI90aBRo6+6B+P1GC/MwhQj7j4Pr7MhMLwmElbF2Vghm1GG2zobGTDKdgK8c+vCohDrtJNrkpbkGp1kXJwbjwAe5MXjhrPUJUDx3A+pKx0ky5IAHFhZ0lZ4rKPPvvA1Em9OYREhGghEIoBUwki4cjh4exiAGyf8qkfqYDv45ejpMT3d4FfJBFDIXTLQ3Lsb7HTErpO5G2ebAJxmzcXa2YmVtKGQe1KC2Z2P1MHsWGOkDAn4qH+VIW2lh4IDS2nzZCec86DgKjLYljQ75BgpAwJ4ApkB5NhDbF8Ey1octehKxnWxGgmjDWKrhRN3EPCQQriDiYlvsA9a1t+xiXyy1qm+SunVlDYYJ2Wwn6wu53mjKU9gIwIdqYPKGwoCRiWwIpri8agn4XgzCeDbyEy7xtUKaYRxyeE8JQkglVBJs/QVymNjSWq8YFuklEJewKHlTyCIypFn3vwVggR9CfDugzBzXzSZvhlc/ygSlXdqHbJhZGSZXPhEIjPL44TJmkc7geYxMsYEgVQJfPHox0/QnR0aCFBtVUAAgQ4Bt+V/ll5jP68OEPw0ggBSCfUwo/TIDXJi8QJOZgSCHiTVk5KdGp6zPWVUPSkhUVICO+pfweRJkUY+n3dkDSJQKXVQdsNOhLKJyu+vUnZEuYylnXyy6DF/AqjVnL8N1JEAVzl1bJG7JId+99R5EuJvchcEAoCAZAJIJZQMNIXuXC+d2A1OJZRVAyYFta3pslAYoCqcHAPAqPu2PyAnrdAboZPOn7S6YHKWjHdi5R1ZeWfWNBqKuKdBVV6fiDiXxxI9KUeA7hT8R5WTCgLlRgAOrNzQKzowCuQpahiIlYQAbuyS0MvmXFdiCmGvxJ1duHiBh5YPAY/Sy9DMJoAC7vnYl/+ygl1YKbkmzb8yRGDlY9+woyJ1MCwpHKchgf965KMnT2goN0ROiQAcWCmB1bVbx/NRB0tX40HuoQQ2UgkREjAUUpYf9qy00l4cZbXIyxKhTmMNLOSOP0mdzDhYVrIjHFiD8aT1SZbOeX7IIGGz2LRQWN1vpYLUQasngOnKO+Jh01WEftEIwIEVjZfxRx+6/9TfURXWk8YrCgWtJFCrFUTajhIrwcZRustxkWVqStppNnFQ2HBOUB+py+Y26GyujjsNyddVODeytXge6dFpRspmS8+c0YII8/FBOdrm6AlNLCaA7CCLjd9fdTiw+nOx9l26LfUdPyjmbi0DKG4uAaQSqmlb6QXcR6iZZqHjEUNb+zE7N9w+hdwH1VOyFpSmiu8o4K6pHlqITeGkeW1QkfW1Wgt75CwkUgdzNgCGT5vAucM/Pon6zGlT1qx/OLA0M1gW4tI6A2mEWYDGGLkQQCphLtiHDuqlWP9q0MBpbTU/aDy8L8SOIt8MZWcwD1BpSMDzUqocriGLNEUOrltU66q+muYog/vO41o9WBp8gtRBzAHjCfjis86DgvZXRQOBLQJwYG2xwKtNAm679QV6SRvQo4GAmQRqE0glVMmyeT7V54Xg4gqFnvbU5FKJjymyoEaSKZbcqUdf5+TOw/BOAgItWsLN0y6DnDqYV8vzWp2XzqqO69IKrobUQVXNA7lkEXARVCELpUn9wIFlkjUl6XLgd84sU1dfldQdugEB5QgEN35UDwtNDQJ511VpNIVYoIUhF0RGS49A3zQzOA7TA55hz3BspAuba/ct0J1ZO+drlMtfnmhKEEDqoBJmgBDpEmg21oqfT3cI9K4jAXwT6Wi1DGT2fQdphBlwxhD5ESiXHMHh92j5E1AhLaWzm9d6jtEN+VsiXQkK8BmnCziz3rd7HT3XpwLu29/LTBTDB2Kqy5QyyP9UiBKFo1KNCVcp066DJSzh1LAGpEiRwF++5PePX0qxf3StKQFc/TQ1XNpitz33M2mPgf5BIG8CHH6fd/RP3gxUGF+VRREvFpconVCVxaIKtpEpAzs5dgRwYOs6mYhz6Qupoelg52irRYoM5egrVZqHZz65myKIIKcyCGggYAEBBFNYYOQ4KsKBFYeaBedcef/zz5KaP7JAVahoMQG+EeQwfLR8CajmROQF45IC6Tr5WkXS6D2BOXB2SOKaZzf+di8G6l/JNwanNXO9K94xVaXmwoOVuzmQOpi7CSBARgRcz4cDKyPWug0DB5ZuFstSXgeF87LEjbHyIYBUwjy4b3k1PPoWUjEIp0ELR645o9oCMg9rJRpzu6+DdiLcsn3Qb8+vicbCydkQ6LGpV4ARpYEnlHXaQmeRrj0qpAz26sXX6h1RlL0H4ffUCCB1MDW06Fg9As8euu/UE+qJBYlUIAAHlgpWUFUGHw4sVU0DueQSQCqhXJ6je9taATsKP9HnFB4u7s4LSjQ5BBCBJYdjrr10+6voT3mHUzJX4fQdnB1WS1TrindGVbmhkHs+1kHqYD7cMWo+BBzhP5zPyBhVBwJwYOlgpZxkfPHSga/S0PM5DY9hQSAzAkglzAz1joFUKOC+Q6ieN3hBuUy1sVSMiOgRVflfkW6mvIlGC7jlfxbsf1YxgnK0Emod0eKIT3KW67CJBEfNomVPAKmD2TPHiPkRoJKZSB/MD7/yI+NrSHkT5Sfg6/7kO7wf15fykwAjg0B2BIJUQtrZBy1bAqoUcB+l9RpdDXmBybsVosUn4NJdKRwe8fmpdiYi6pJbRLdriy7X7OSWUaeHSsXFroPqmAOSpE9geXl17PH0h8EIuhKAA0tXy2Ukt+OjgF5GqDGMAgRqtLOPagXFFcCSqgg6RGB1ALDzSpcoiY7Myv0kHzFSzpSzSjSBulII4cCKhq77aI7oXOlEd3Z/oPhrT+G0b8XRxRIvSB0cx2YzseDhJC0J0I7Fn3/ZHzyN4g1aWi8boeHAyoaztqOsi9KjJHzX7aq2qkBwEBhJIEglnMCN4khQEg/Q7Wn+tjo1uDLGmglwesTCps5JXYGqSAmNZxaur8eF2lc1XKIhhTCezeOeNUn3JHxvggYC1hBA+qA1po6rKC6JcclZct5LPnb8Rapw8V1L1IWaICDKlEbI4fpo2RBwdcwnI8eVyjuFZWO5+KNg17r47FQ4s7sWXAE7EEY2SaNJxUUpHVnXHU51e+gQ2UAKnVApU+og/UMDAYsI+O2G+zmL9IWqMQjgqhgDmm2n+A4K6dlmc9v1rVG4PlIJs5kFOqejNKjwcrAQpQUpWngCBdx5hIel4pGbEViuy/XMEIYY2kSEanWddhrUfEMI7EIY2uKJDgxSBxERnoghTtaRgPPdox8/cVJHySFzdgRwG5kda31HQiinvraD5LEIIJUwFrbIJ3Hwle6pEUEqEC1IeWGKFo4ApxB2stB8ZKiHg6bSUZs+K6SChjdKJ/V4pa7/bqZ8zdYxcDa8tdQ4EqmDatgBUmRLgL5eHs52RIymIwE4sHS0WsYyHxk78W0a8kzGw2I4EMiVAFIJ08evUwH3YTSCYsy0MF3mxemwA/HZZQID0wgB8DIjZV9seh9R/yqchYLNH6je1Trv62xIc1HIPVVLInUwVbzoXGECvus8orB4EE0RAnBgKWIIlcVwZgVvHI98ZJWNBNlSITA54SKVMBWyG52aVgx4jaKweJdCjspCG04A0TvD+Sj96aaTEbtJjrYSO634mtCidGOTGtKA07Mmly+o1bCZTHqE0bPCBM4erbzwHYXlg2iKEIADSxFDKC8G0giVNxEElE/AoTwJDuNHS4eAiU/xeaHKdbEaBkVbpGH9gQvgTm5hGoOiz+QEuiLk4IQcjrO+qn+9q0Ea7kj97poXg87B++EIBA/OcB0MBwtHmUbgkc2gCdP0gj6SCcCBJRmoqd1VV+uPkW5YkplqYOg1kECQSohdgAbySfKBiQ4s5sEphYuUTsgLWLT+BLZ2r8NKrT8hRd/dNBc7MHY4MRQVOWuxgr9/cmLzTqWmNrc3fBZ/xlJMzTsgY9dBKSjRiYYEfB/pgxqaLReR4cDKBbt+g+7+g7kFKu7yNf0kh8QgkJzAZA2phMkp7uyhdw208wiN3yEnFi9gFzXfcSwtC7hdhdzTGgP9pkBgM9IG0Vf92TY5AnORnvYZljLYq62HwOReJIl/D1IHEfGdmCM60JZAY90tfVFb6SF4pgTgwMoUt96DOa6Pwnp6mxDSxyQQpBKiJkVMeoNP8ywoBMyphJxSyAtbtC0CHLDhFpB3tEVEk1ebkTaof7XTXlwDb5GKtbctmNYetiHcOQESvhM8KEMkW0KKOF1jAl+9+oFn5zWWH6JnSAAOrAxh6z6U48OBpbsNIX98AuWSIzi8H00eAaMjsLowcVH3RXJi8QIXbYtAwbVgpb+lrhGvOD2OG3Yg3ODA/2ckSxRpGexCasmURgTWlv1lvApSB0u4v5DBEn1oSgC1ljU1XD5i42qZD3ctRz300dM/JMGf0VJ4CA0CEghgV0IJELu6sCECq6Mur2t5gRsscjtvWv6zULAcgMbqI4Vww3gtck7zLoO826BNzaZrd9p2Repg2oTRvw4EfOE8rIOckFENAnBgqWEHbaSgC8xntREWgoKAZAJIJZQHlG/abWwchcULXo7Ksr3BCaLhDKA/W84ecxE9JxrNjb9l3nnUxmbrNVy2rZE6KJso+tOQwDNHP3biKQ3lhsg5EYADKyfw2g6LEE9tTQfB5RBAKqEcjjanoPCCl+ti8QLY5ubBCaKf+SmU0Pr6V8Qg2KCB6l11Uir1M2RyiW1JAU9OanAPSB0czAafWETAEQ9ZpC1UlUAADiwJEG3qYnW18hXSl5ZeaCBgLwGkEia3vWdpBFaHHC98eYdCXgjb2oJIHodAoOlDgKKvChYX37/8d7uqj8nSkhRphMnIInUwGT+cbRABBEcYZMxsVIEDKxvOxozysj94eo0qlrITCw0ErCWAVMLkprc5AusyPfLd1GkhzDuX2RrJgXlweTbo8YLmrK2pn4ic3D5FEYG1nUfU35A6GJUYjjeRgO84C/Nj039pom7QKT0CcGClx9bcnl3xiLnKQTMQCEcAqYThOA06CoufLTI219KxPBBvaxLo8oojsDxdhJUnJ2rX7WTpWjgPdlKI906l7Ioydh2MBw9nGUXAEf4Xrp/9AfZoNsqq6SsDB1b6jM0bYSPUE3kf5lkWGkUkgFTCiMC6DnddfP104RC27mbmWpyO1m1/bV77jnAtSvvkGx3sHtp/duIa3p/LqHeD1MEavH+jOOFzOwg4vo+gCDtMLVVLrCCk4rSjsyMfPXmCNP17O7SFliAwmMBGKiEuo4MJDf4ET+93suHF8hLVxeIFsy0phSjkvnMeqPwOPS2nbQhVllCebLxT6CJV/OToK7SdBJD+u5NJmHdqEx45gcMciWNAwHgC7XW/hN3tjTezfAWx8pLP1JYe4TG3xdLQcygBTgPgdAC0aARQAHgwL14wc12stgVxrljHDZ4HSn5iicEajY2dQpu0YyhafwK2b8TRn8rwd6sVvl+w5I9oOAp8CgJM4Nsv+djxF4ECBKISwKorKjEcHxBAyCcmAghsEQiKseKR6haQEa82dp8bcZDlH/PCeX5RiAYW0JbPBMXUN92pSvrxzqC8Q6gtUZBxZxhngfO1HC0cAU4dnKDoKzQQAIENAlhLYibEJQAHVlxylp936PipbxKCC5ZjgPogEBBAKmG0iYAC7uF48QKaU5h4QY0GAkoQMNhhEfy9Ufou7wyKFo4AruXhOPFRSB0MzwpH2kHA8VD/yg5Ly9cSDiz5TK3o0XlQtMhz/pgVykJJEAhBAKmEISBtHuJi1RMeFh3JC2qujYWIkEjYcDAIhCbQ4ohHchZz6iBaeAK4lodjhdTBcJxwlFUETh+8//R3rdIYykojAAeWNJT2ddR2XdTBss/s0HgIAaQSDoHT9RH8V10wQr5cp4X1Ai2weaGNBgIgII8A15zjvy0u2o4WjQAKuY/mFew6OI7l1mhSOMImArQhyCMU0Gt6UrpNJs1UV1xRM8Vt2GDr4nOkUdMwraAOCMQmgFTCcOhQwD0cp96jWrTAXqDi7uzMQgMBEEhGgCMaVyi6Mdj1M1lX1p6NQu6jTc+pgw5qZI4GhSOsIkDOKwRBWGVxucrCgSWXp1W9Hf34iTlS+FtWKQ1lQWAEAU4l5HQBtMEEEIE1mM2oT3jRvUR1enjhrXVKIZ67jjI1Pk+RAEdbcaH2VdSXS0QZ1/Lh+Kq0QzF2HRzOCJ9aSWCtKNa/ZKXmUFoKAayypGC0uhN40K02P5TvR6A24Qrc2Pcjs/Ee0k4Gswn1CTl/eOHNdbG0TXsyuBh4KBvioNwI8M6eXO+qifjxxDbAtXwwwiB1kO4F0EAABLYT8B3n8b0fPU/7LKOBQDwCuLLG44azNgn4bQcOLMwGEOghwKmEtRq2y+7BcvlXl/dfR0tMoEELcE4pbKIuVmKW6MACAuT45R09F+lvRuvoRYVMhSLug40xidTBwXDwid0EfKQP2j0BkmuPVURyhlb3cPR3TnyPADxnNQQoDwJ9CASphJQ+gLadAAfeeB7yx7ZTif9bkApFC/JVKkSNBgIg0J9AJ/WWd/RE2eD+jOK867m+QDDlTnJcRqBcBpmdZPAOCBABVzwKDiCQhABWV0no4dwNAn5QzB00QAAEegjUakgl7EGyWcwWN/a9XJL8zovzFaqLtUwphXANJiGJc00kEGx+QCmD2PwgDes6KFDegxW7DvYAwa8g0E3AF08cvf/E091v4TUIRCUAB1ZUYjh+BwHH9ZFGuIMK3gABITZSCQtA0UUANVO6YEh+uUa7Ey7QQp0X7GggAAJC4G8i/VmAeo/bGU/SgyvsOridCX4DgQ4Bitl8uPMaP0EgLgE4sOKSw3mXCbTX3S/SL/T8Hw0EQKCXQLnkCN6JCG2DABY76c6EFtXDYicWok3S5Yze1SfA6YJBVCLCElM1lodnNJf5BqmDtBMxGgiAwAACHupfDSCDtyMQwFU2Aiwc2p/A0Y+fqDvCf7z/p3gXBEAAqYRbcwBFf7dYpPVqW72ftAZBvyCgKAGuC8dOXC7YjpY+Ac9FSjhTRupg+nMNI2hPYP7M3P6vaa8FFMidABxYuZvAGAGQRmiMKaGIbAJIJdwiigisLRapvqKoE+y4liphdK4ggQZHINKmBtiZMzvjsOMGTYgppA5iGoDAKAKPve5PvkPFDtBAIBkBOLCS8cPZmwS8dgsOLMwGEBhCIEglpJ2JbG+eh8VOlnOg0RRinqJRsKDPkjrGyoPAGu3EuUTOK47AQsuOACKwhODUwRJSB7ObdBhJTwI+0gf1NJx6UmM1pZ5NtJTowO+c+TEJ/kMthYfQIJARgdoEdiVEBFZGk61rGF7QL9LCnhf4aCCQhEBbwXpSQcos7cC5TJU4+TVatgRs35gDqYPZzjeMpi2BdsFvfk5b6SG4UgTgwFLKHHoL4/sOorD0NiGkT5kApxJOTtpd8db2xU7KU2xg97yw5wW+SkWt1yjd68/+Hh6HgUZT8INTi774wrPq2Ix33MSmBflOFNsfSiB1MN/5h9G1IfAtCnY4q420EFRpAnBgKW0ezYTDzhKaGQzi5kGgVKRdCS1NJeRSKezEQ8uPwBpVn+BorLzTrL53pi3e+6cN8f/8PXmx0LQhsECF0f/pZ5ri17/YFEs5R/TxTpsLi0KwEwstPwIOXdhtLYOF1MH85h1G1o4Aghy0M5m6AsOBpa5ttJPsSOXEX5HQl7QTHAKDQMYEbE0lRLHfjCfagOG4HhbXxeL6WFm3Jjkbfv9bbfGBB9vi6YuUd37eF599Gh6IrO0QZzyOmPvDv9mw1f/3A1/cRg7Ib53Mx3YrFE24xCmDcRTBOdIJOBbWNkTqoPRphA5NJoD6VyZbN3Pd8Cg8c+RmD3ji1w9/gu4oP2S2ltAOBJITWG/44uKlHDwIyUWP3UOZitxOT3mxz8eJkgnQHUC1xAWIJfc7oLun53zxq59vie+d2el22D/hiDKmxgByarw9V/d3RF1x5M0/fq0r/pc3eZnYr1PvKg/nqxpWUFOKS/MtqrGXjzMzLyIz9F2Gwu150ce4mhE4dfijJ4/Q18XOL3/NFIG4ahCwuxiLGjYwS4oNDzscWGZZFdqkQKCTSlhfteemH/WvUphISbqkW8k6pYRxVNREldM7k3Q2+Fx2OvynH7TFh7/aEisDNtA+s4T72sEE1f2Ei7r/h++2xV8cb4vfe1dBvGp/SpOIEDTJ389RV3mnv6prjfwkcy3L56hWHDiv8ptuGFk/Ag/DeaWf0VSW2LKvHJVNYYZsntd6lDSxZ0VuhtmgRU4EJiY8YZNTx7ZFTk7TKvKwDa4lRCmFadQSOkU1in72z5viN7402HkVWWCckDsBv2e7v6fmhLjrE03xwNfaotGS74zkHTRVqN2WO3hFBfAsSiHcSB1EuKiiUxFiKUjAET7qXyloF51FggNLZ+spKPvB+148R2J9W0HRIBIIKEeA028ma/YEwnq2VvpVbubtFCjYzY2cTewokNUeeaod1En6+gn5Dg1ZMqKfeAT6bcbAkXx/9O2W+OCDLfHMRTk2516C3TNR7yqeoTI6y6YHMdh1MKNJhWFMIbBWHGt82RRloIcaBODAUsMORknh+PC0G2VQKJMqgY1UwvTSblIVPmLnrkVP6SOiUeJwWc6COXI2/LOHW+IXHm2JeUpRRLOLwH+lGmfv/bNm4MziFMO4LQ2nalxZcN5wArZs0IFdB4fPA3wKAn0IfHnf7DmK8UYDAXkE4MCSxxI9bRJwPDiwMBlAIAqBiYmCFamEiMCKMivyOzZI16LbzTi1hrgW0m3kvHjsGWSS52fB/EdepXpVnE7433+yKU4tRvdipZnWmj8d8ySwIYUwSB2cwLLJvNkLjdIk4DhYE6bJ19a+cSW21fIp6n3w/tPfpe5PpTgEugYBowjYkErIMWYuyoZoM2+bLSHmyYkVdre3RUo95DpX/+jTLYGC7NqYOXVB/+oFX7z7T1vi//1+SIcm+bp4Y4HFFdquKrrfK3V9MEB/Alzf0PQ44iB1MK2dLvpjxbsgoD0BrxXURtZeDyigFgE4sNSyhxHS0E2M7zvO54xQBkqAQEYETE8ltGGBk9FUyWwYdiBw4Wx2KAzb/Po7p33xPoq6Cu2kyEwDDKQCgcU1P3Bu/vNHWuLi6mCJgvlG6af1IccMPhuf5EnA9AcUSB3Mc3ZhbF0JUPH2Hxz4nTM/1lV+yK0uATiw1LWN3pL5AjtO6G1BSJ8DAZNTCW1IMclhymQyJDsUlvoU0V6jKC1OE/vQg03x3DzCZTIxhsaDfPbptnjnf2yILzy7c65cjvijHTHR9CRgaoo4Ugf1nI+QWgkCDyshBYQwjgAcWMaZVA2FymNrnydJUL5XDXNACk0IBKmEVA/LxGZLkV8Tbcc6rZNjYYF2KeTC2tzYefWBTyQv1L3RG/5vC4EL5Aj9p59pit9+nCbQZgtqrlGkX5yaa50+8DN/AqZu0oHUwfznFiTQkwA29dLTbjpIDQeWDlbSUMbNHSf+SkPRITII5EqgVHIEpyuY1hCBpb9FW05RzO16i1iZeaX4+vNt8f2z2yNpfBQt0t/IGWnwX57whe8WxaWDt4qFsZeh3lVG3NMcxsQIrGrVFaWSed/Hac4D9A0CmwQuHhw//Q3QAIE0CJj5qD8NUugzOgFOI3TEO6KfiDNAwG4CExMeRby0RWsrSEF7IB4KuGtrQ98ri+YVN4m1q94t/MqUoPra4okf/An9/1vbdHJQ4HgbD/wymMD8qi+eeekviuK+a4S4Wghv7hlReuYxUTj396jePhib0p9wnUOTWpA6OG6YUiYZCLooTcAXzuecWUH70aKBgHwCcGDJZ4oeOwQK5MBqid/r/IqfIAAC4Qh0Ugkvzpvz3W/a4iacJfU+yi9WRePKW8T6S94h/NLENmVeaOze9jt+AYGoBF5YHRdXbZ7U2nW1qO/6eeFeOi7KTz0KR1ZUmAocb9pDCqQOKjCpIILOBFALWWfrKS47Hi0obiCdxTty38kfkfxP6awDZAeBvAgEqYSUvmBKQwqhPpb0i2Ni/eXvE8tvu0esXXPHDucVa3Lm3Hl9FIKkShI4c25uh1zt6WOi/pM/L1be/JuieeAGIRDVt4ORqm+YlEKIXQdVnWWQSxMCLa/VfkwTWSGmhgQQgaWh0bQS2RGP0vbr/0IrmSEsCChCYGKcUgnXzUglRBF3RSbVEDE4yqpxjCKujlHEFUVfDWvnLlwc9jE+A4GRBF4c4gRtTR4V9Rv/J+EtnhZFTi089TfC8Q3KqR5JR78DTCnijl0H9Zt7kFg5At889Lun8JRLObOYIxAcWObYUklNeAcKyoOGA0tJ60Ao1QmYkkrokCKsC5qaBPxSjRxXN4dyXHU0OHN+Z/RM5zP8BIEwBM6cvzDysFbtoGi95h8JlyICS8e/LIrPfZW2KzQntXokAI0O4Gs818HTfTMHpA5qNOkgqqoEkD6oqmUMkQsOLEMMqaoal8ZmHp9auUSbr4uaqjJCLhBQmUAnlbBeb6ss5lDZPHMyIYfqqduH7dKkaFz1DnJevU34Xim0+O22Ly5cmg99PA4EgX4Ezpwb7cDqnNce2yNWr/sZqsf2TlH68RdF8fm/FKLV6HyMn4oQ4Gt9U+NAOaQOKjKRIIbWBHzHeVhrBSC88gSwrFDeRHoLeP3sD9YpAutLemsB6UEgXwI1SiXUuYaUacV9850NyUdvV3eL1ev/G7H8jnvE+tW0s2AE5xWPPkfOq2YTUTDJLWF3D6fPRs8waVd3BY6spbfdG2vu2k08fe11vtaz8413AEYDARBIROCFIw+c+H6iHnAyCIwggAisEYDwsQQCPu1G6Ig7JfSELkDASgJcx3iSbqx13ZXQpOK+Ok9AjmLhHQUbV7xFCDf+1/+5C0gf1HkeqCL7ixEisHpl9ss1sXbtXWL9KorIeu5xUXqWnpM1672H4feMCWw8aPEzHlXOcJM1D6nuclCiF5sJ+OJhumXV8yJgs9000z3+HaxmikLc/Ai0it4jhWaTL2aogpOfGTCy5gSCVMKKK+qr+qUSooB7vpPPH9sr1q5+l2gefZPwneQRBqh/la89TRn90sKiWFtviHKpGFslrt+29rL3Uf22t1GNrK+I4o+/LJzGSuz+cGIyArqmi1dpx99SCUkpyayPs0GACLgUtIAGAikTwNU6ZcDoXohj9z53mjj8HViAAAgkI1CjKCwdUwkRgZXM7nHPbtcOidXX/A9i6Zb/LYi6kuG8YlmwA2Fci+C8bgJc7DtKHazuc3tf+8XxwJG1/PZ7g/RYvzzZewh+z4CAq6EHK0gdpDR9NBAAgcQE6m7V/0riXtABCIwggAisEYDwsSQCDnnkffFaSb2hGxCwkoCuqYQevmkyna/tySNi7aW3ieaBG3hbMOljn7kQvvi29MHRoVEEeCfCKw4fkKaTX6gEmxJwtGHhha+L8jOfE84qNhyQBnhERxr6rwRSB0cYFR+DQHgCXz40ewohsOF54ciYBLCsiAkOp0UkwHWwhPg3Ec/C4SAAAj0EdNyVUMdFTQ92LX5tzVxFha3JcbXvlak4rjoQEIHVIYGfSQmwAyuN5nvlwJHF9d6KJ74hyk89So6si2kMhT67COhWxB27DnYZDy9BICkBDlZAA4EMCMCBlQFkDCHE4ZqhkUkAAEAASURBVLGTf31y5fBZYrEPPEAABJIR4F0J12l/z1ZLhzqZjnBc+VFAyQiadXZr5qXBjmzN/a/KRDHUwMoEsxWDvBhjJ8JIYGizAnZiNY68SRRPf1uUnnpEuMt8K4KWBoGNaz1f79X/bgpSB7HrYBrTAH1aSsBtth+1VHWonTEBOLAyBm7rcM6saJ/4NfEY6f9ztjKA3iAgi4BOqYSe62P3BlmG7+kncFy9/H2iuefank/S/RW7EKbL16bek+xEGImT64nG4deLxsHXbTiynn5UuEtnInWBg0cTYNeV5/HDldHH5n0EUgfztgDGN4zA9w797unnDNMJ6ihKAA4sRQ1joliO7z/iOw4cWCYaFzplTkCXVEIdi/pmbsyIAzb3vEKsX/N+0Zp+ScQzkx/ebDbFxUsLyTtCDyBABGQVcQ8Ns+PIOvRTonD2+6L0o4eEt/BC6NNx4GgCruuSA0vt3XKROjjajjgCBCISQPpgRGA4PD4BOLDis8OZEQmsupXPlf21Bp0Wf8/siGPicBAwmYAOqYSofyVpBlLYXXPvq8Tay98r2lNXSuo0ejcXLs2LVlvtxWl0rXBGXgROnzufz9D890Qpt1wvjh1Z5aceFu48ggdkGIPrYDX4Tk/RhtRBRQ0DsbQmwEEKWisA4bUiAAeWVubSW9irH3h2/uSvHfoGJRS9VW9NID0IqEFAh1RC3Yr6qmHZLik2HVfrlCrYmrqi64N8XqL+VT7cTR117uK84Ki+QiGn29GOI4ucWYXzPxSlJyki69KPTcWdiV6qP7SoTRYEyjJmMhUwiD0E5g4dP/VNe9SFpnkTyOmOIW+1MX5uBHiHCl/AgZWbATCwaQSCVMKKK+qrakbFeB5XRUGLTIAX1gduEGvX3C7a4wcin57WCdiBMC2ydvbL0Xzn5i6Jg/v25A6AU3P5nzf3DBV7/ww5tJ7IXSYdBfAU9g6NVV1RLuI7Scd5BZkVJuCLR50HhQaV7xRmCNEiEYADKxIuHJyUAD1nfcQTrQeS9oPzQQAEtgjUaCel9YaauxKq/jT+/2/vPuDjqO+E//9mtqjbuCNLNpgSLiHJURNCAFvGgYRAEmzjS3WwHUIueXL3T8FA7rnn0eXuiG1S7gl3978QsPkDubu/IU7BFIODbUhIOSDlQkihuKhZcpFtSattM8/3t7Zc5JW0u5qdnfKZ10v2anbmV96/1c7Od3/lmKJHHuk5ehovVqmz3yOBqxkeKdSxYnTv2XvsFx4h4IDAbnlNeSGANVSV7OQzVeLt/8/hQNarm2SI4W+GnuL/AgS82utWl6tOVvBlQwABZwUMk+GDzoqS2lgC5lgH8DwCTgqctnrnS5LedifTJC0Ewi6QG0rY4M0P5kziXuCrMze59CWqb26rGjzvRk8Gr3RNevb2FlghDkOgMIGu7grNgzVG8XKBrIs/rQYu/xuVabxQKf1GyzamgFff8xsaGDo4ZuNxAALFC2Rt03iq+NM4A4HSBeiBVbodZ5Yu8Jic+unST+dMBBAYLhCXYRF6ZSWvDSWkB9bwlhr2uxlV6eZ3qOTZ1yi7etKwJ7336+699MDyXqv4u0RdPd5+TWUnzFKJC25S5sF2FX/tKRXr+IVStjeHbHvhleDF93yGDnrhlUEZgihgKPsnTV/p8PabeBDhQ14nAlghfwFUovq2bTxqGDYBrErgk2egBbw2lFBWU6fTwgivODtSpTKz36mSZ16t7KqJIxzlvd3MgeW9NvF7iXZ7PIA15GtNaMr1jkzJ32xcDy3s+C9l2Ez7MuQz9L/uqKanwbLsoT2V/Z+hg5X1J/eAC+i5jdkQcFmAAJbL4GQnAhm1RcXUgDyqxQMBBJwTGBpKuL8341yi40jJy5P5jqNa4zrVjlarzKxLVeqsdysrPmFcaVXiZObAqoR6sPPs6vHmEMKR1K2Gxlwgy5CVQaskkBVre06iNQSyjvcyZfEOK+ONCBZDB49vGR4j4KyAntvY2RRJDYGxBZgDa2wjjnBYYNY32hKS5BaHkyU5BBAQAT2UUA+X8MLm1cl8K2Fjx2qU7rnRP/8ONfimJb4MXqUzGdV7sK8SfOQZYIHdPft8WTu7dqoafMtHVP+8L6v0nPnS7Sjmy3qUo9Beee9n6GA5Wpc0ETgqsPPI3MZHd/AAATcE6IHlhjJ5nCygu5za6r0nP8EeBBAYr0C9rLSUTFV+VUJTjyEM+WbH61X69HkqOedKpaI1vtbo3rtP2bY3elX4GpLCnyCg51WzZLyZqced+XCzaqbkgtK6V2XstR+p2PYtysimfFgT54p8+L2/sr3SGDroXHuSEgL5BGxl/DDffvYhUG4BAljlFib9vAJG2t5oR41/zfskOxFAYFwCXhlKGOb4lV3VoFJzFkjwqkXZkfi42tMrJzP/lVdaIljlyGSyam9vr5o22fuLGIwmr4cEJ//sepU6Y4GK79gmE77/SKZM0B3Ow7d5oQdWQz2rDobvlUeNXRWwmf/KVW8yOyrA1+NHKXjgpkDT1zt2SX6/dTNP8kIgTAJeGErohZsYt9vcqpmkBs/9C9XXckduyGBQglfasXuPP4d6uf0aIL/iBfwykXshNbPjDbKq6LWqb/4/qJTMk6WHD4dtc38lwhN7huaGDsb92aMvbK8V6utbgf5MXXSrb0tPwX0tQA8sXzefvwsvS68+Kt1P3+zvWlB6BLwrUOmhhBGZyDcsmx5GpHtepGdfFti5cPQQQjYEyiHQJSsRvvmcs8qRdMXStGN1uUCW7okZy/XIelIZqf6KlcfNjN1fwOPYtYahg262NHmFWOBHc1q3D4a4/lS9ggIEsCqIH/asDVsCWIZxa9gdqD8C5RLIDSWsj6j9ByqzKqH738KXS3LkdPVEzkmZnF2vLGgbkZEPDMAz9MAKQCN6tApd3f5aibAYRr3yqF7AQc+FF931nKp65QllJA8Uk4Tvjq1k71uGDvru5UKBfSlgsPqgL9stGIUmgBWMdvRlLRq3dz7XPqdprxR+ii8rQKER8IFAXIZR6OEUAwnL3dLKF+J+nZS5ECiroVFuSt+tMjMvCnzgasije+/+oYf8j4CjArv36I8Cwd7sSFVuTrz07MtVrO2nqupPjyljMJh/U+699+uhg8d6XzF0MNh/Q9TOMwLyh2c/5pnSUJDQCRDACl2Te6fCxkMq27ZSPSUl+qB3SkVJEAieQCWGEro/hMSddrMamiRwdZVKz7xY7pvCNY1kdwiCDO68ishluMDunhANTzWjMtT4cpVuvlTFOp9X8T9uVOZAz3AS3/+uh5BnsyfOTeV8pY4Frxg66LwuKSIwgsCvmte0t43wHLsRKLsAAayyE5PBaAIyhPBRGUpIAGs0JJ5DYJwClRhKWMkhJOPkynt6dsIslTpLelydeoEEro7dNOU9OKA76YEV0Ib1QLW6eoI7hHBEXjOi0k1vV+nGiw4HsqRHltm/e8TD/faEHkKezbpXaoYOumdNTiEXMFh9MOSvgIpXnwBWxZsg5AVIqcdUTOmPOMGePCbkzUz1Ky/g9lDCSECCPNlJZx4eKjhd1psISJ1KeTUOJpPqUF84JqAuxYdzxiegA1i2Lcu6hPFvbCiQNfNtKtr1oqrSPbL6OscH6oGzc4t4pMvVA4uhgx5oYooQVgGbAFZYm94r9SaA5ZWWCGk5Zn2jbV/byqZfSPXfEVICqo2AawJuDiX0ew+s7KSzchMvZ2a8xbX28XJGu/eEaIiXlxsioGVLptLqwKE+dcqEhoDWsIBqSfAu03hhrpdntPu3Kv6njSpyYEcBJ3rzkPIu4nGsF6zOR1/b2BBAwBWBnqbX2//LlZzIBIERBAhgjQDDblcF9EoWBLBcJSezMArozg0TGmRVwt7yr0polvfupWzNpwNXyXOuU9kp55QtDz8m3MME7n5sNl+Vuatnb7gDWEOtpQNZEjjXP9E9L8scWT9Ukf2vDz3rm/9NmQPLjW3ihEiYO8e6QUweCBwTsNXjeg7jYzt4hID7AgSw3Dcnx+ECuiuqof5h+G5+RwAB5wXiMXdWJTR9Nr95ZuobVeoN71PZSXOcRw9AimFYJS4AzeTrKnR171F/dubpvq6D04XX70v6J7LvVRlaKIGsvX9wOouypVeeANaJQwdraiIqFvPZxaZs4iSMgAsCJsMHXVAmizEECGCNAcTT5RdourP91+0rm9okp+by50YOCCDgxlBCXwwh1D0dpr1FJd/wXmVNPI0XxigC9MAaBYenHBEgSDoyY3bymWrgks/lAlnxVzepaPdvRj7YI8+UpwPWsV5dupNvQx3BK480N8UIh0AmnYw9GY6qUksvCxDA8nLrhKRs8nHEblf24zJ9600hqTLVRKCiAm4MJYyYx240KlrZfJkfCVyl9FBBWV2QbWwBggtjG3HE+AR29zDP2liCOpCVmPxpGVL4qoq/IoGsnv+WT1C6V5L3ttwk7mUsFkMHy4hL0gjkF3h2zj9t783/FHsRcE+AAJZ71uQ0moBektVWBLBGM+I5BBwUKOdQQj18UAfJPLfpwNWpF+TmuLLqTvVc8bxcIHpgebl1glG2zu6eYFTEhVro1VETF39amQfbVPy1zSrW8XPPBbL0NUBfCyzLCRCGDjqhSBoIjFNAz1nMhkDFBQhgVbwJKIAWiGSzmzNmdFAeViOCAALuCJRrKKHptQmw9DL1jRer1NnXKKtuuju4Aculm1UIA9ai3qsOvfyKbxNrQrMaPO9GWTH1KhV/9UkJZMmizrYjEaPiC5PnDN0Ly7Kc6CF27BsRhg7mgWYXAi4ImBGbAJYLzmQxtgCDx8c24ggXBE796u5+2zCecSErskAAgSMC+htyvSqh05tn5r/SgavZl6v+ef+Qu8kjeFV6S/fs21/6yZyJQAECehVCttIErIaZufe4vnlfzr3n2Ybz7+ullMw8qSvu+INZDB0spSU4B4FxC7w28ysdvx93KiSAgAMC9MByAJEkHBLQqxEqdZVDqZEMAggUIKCHEuqVnBIJ51ZF1t+QV3KzI1UqM/udKnnGVcquPqWSRQlE3n0DA2ogoTvIsiFQPoH+gYTq6x9Q9XW15csk4CnbtVPV4Fs+osyz3q3ir/9IxXY8K2P40hWr9clfZhzrSVVKoWpZdbAUNs5BYPwChnpk/ImQAgLOCBDAcsaRVBwQsExzY8TK/h8HkiIJBBAoQkCv5JRKWSqbHf+34zrbck/eO1LVjgauzrxa2VUTRzqM/UUKMP9VkWAcXrKA7oV1FgGskv2GTrRqpqjBNy1RqTkLJJAlc2TtlEBW1v1AlpOLeegvRupZdXCoifkfAVcFDJvhg66Ck9moAhX+nnzUsvFkyAROW7XzNanyH0JWbaqLQMUF9CiPiQ4OJTz5W/fyVtGOVsscMFer/vl35G7aCF45672b+a+cBSW1EQWYB2tEmpKesGom594T+1ruUKk3XKvsWE1J6ZR6kpPXAoYOltoKnIfAuAWkg2wt07yMm5EEnBKgB5ZTkqTjlIAeRniOU4mRDgIIFCYQk6GEenjGgANDCSMnzXtSWBmKPcqO1an0nBaVOv1K12/Mii2rn4/v2bvPz8Wn7D4S6Ore46PSerWoJ67Yp0tpVzWo5NnXqtRp81R8x1YVk+GFRjpR9gqYMom7E1ttjaliMb5zd8KSNBAoVsAw7CfPvuuVZLHncTwC5RIggFUuWdItTcCUebAs9fnSTuYsBBAYj4AenpF0YCihUzctI9XFjjeo9OlzVXLOlUpF3e1RMFKZgryfFQiD3Lreqhu9/Zxoj5GDRna8/nAgS4L+sZ3PqPhrTyoj1e9EpnnTMM2Ry5L3hDw7Dw8d9Mak9HmKxy4Egi9weI7i4NeTGvpGgACWb5oqHAXt2nfqs6ee0nVAassENuFocmrpIYGhoYT7ejMll0qnYZbpi3Ldi0DP6ZI+vUXZkXjJZeTE4gS697ICYXFiHF2qQFcPPbBKtSvmPD2UUA+7Tp8+T0V3PaeqXnlcGcmDxSRR0LE6+KSvCfbQ9Iondw4bMx2GDo5JxAEIlFPAttLmE+XMgLQRKFaAAFaxYhxfVoGL7n4h3bay6UeSycKyZkTiCCCQV2C8QwnL0ftKz+OSOuNdKj3rMpkhPpa33Owsn0D3nr3lS5yUEThOYLdM4s7mnoBe+EJ/IZCZdenhQNarm5Qx2OtoAXQvrKMLhBTZIYuhg442BYkhUIKA8eKsb7S1l3AipyBQNgECWGWjJeFSBfRKF7ZhEMAqFZDzEBinwHiGEjo05UmuBnolrdQZ0uNq9uXSrWu0y1UJX+uP0yhMp9MDK0ytXdm66lUI2dwXGApkpWdfoWJtz6n4K48pM+FMz0s9kXs2W3ydGDpYvBlnIOC0gHy62uh0mqSHwHgFRrsjGG/anI9ASQIpFX8sptLckZakx0kIjF9gaCjhfhlKqP8QR92G/aU6seqUXTtVJWV4i+4VYBuFzH1S5Nf6o1aIJ4cL9Oxz5kZ2eLr8jsBwgd6Dh9RgMqmqq6qGP8XvbgiYkdwXBunmS1Ws83kV/5MEsvp3jyvnSG4erDGvJCflwdDBk0jYgYDrArZp6MW12BDwlAABLE81B4XRAnPu3N7VtrL5RZk14UJEEECgMgJ6KGGNrPw0kLBGL8Cw2JE5jgmwrIZGmZfl3So982KZOKVME2mNXhueHSZw4FCfSiZTw/byKwLlE9ATuZ/W1Fi+DEh5bAEdyGp6u7wXv01Fu15UVX94RAJZXWOfl+eIUr7UYOhgHkh2IeC+QPes6l0vuJ8tOSIwugABrNF9eLZCArahHjVsRQCrQv5ki4AWqK+LyKqE9rH5SwpgKeVmxZrQJEMFryJwVYCv24ewAqHb4uSnJ3IngOWR14F0x800Xqgyp16got2/lR5Zj6jIgZ1FFa7YlQgjMg5dX3vYEECg4gKPGq2yNjwbAh4TIIDlsQahOEcEDi/Z+r/wQACBygnkhhJOiKj9+wsYSnikmIeHixRW5uyEWSp11rtzN0e5paoKO42jXBTo3rvPxdzICgGlurqZB8tzrwMdyJrxFpWZ/uZcIKvqTxuVeWBHQcUs5pqgE5zYYHI5KEiWgxAor4BtM3ywvMKkXqoAAaxS5TivrALNtW3Ptw806YkXZpQ1IxJHAIFRBWLRAocSHkmlkB5Y2clnSo8rCVzJDRGbtwXogeXt9gli6Xaz6qV3m3UokCXv3dE9L6v4H6VH1v7XRi1vIdeEoQQYOjgkwf8IVFwgnTLjmyteCgqAQB4BAlh5UNhVeQHdZbVtpXpCSvLxypeGEiAQboFihhKONlwkO+ksmeNKJmcncOWbFxQrEPqmqQJT0K7uPYGpS5Arkpn6RqV/IvteVfFXN0nPrN/kra4eEljIxtDBQpQ4BgHXBJ45c/VrB1zLjYwQKEKAAFYRWBzqsoAeRmgQwHJZnewQOEmg0KGEOniljx2+6Zuc1BuuU9lJZwx/it89LtBNbxiPt1DwiqcncWfzj4DuUZuY/Oljgaye/5Y1eE5cdTAia3Jkj86kM2zp2iNVZeigf9qckoZA4PBULiGoKFX0owABLD+2WkjKXDOY2JSoqUlLdWMhqTLVRMCzAoUMJdQ3KUc3PdRk2ltU8uxrlHXK6Ud388BfAvTA8ld7BaG0ehJ3Nv8JHA1kHdyl4q88kVu9cCiQpb/cyFpDQa2Tv+Vg6KD/2psSB1vAVsbGYNeQ2vlZgACWn1sv4GWfcte+g223NP1EemHNC3hVqR4CvhDIDSVMy6qEmaEbkROLnRsqciRwlXrDe1V24mknHsBvvhOgB5bvmsz3Bd7Xe0ClMxkVi/IR1Y+NqRfnSFxwkzIPtcvQwqdUrOMXytTDCEe5brDqoB9bmjIHWODVWXe2/SnA9aNqPhc4/vtyn1eF4gdRwDDtR4NYL+qEgB8FckMJGyISU86/GQ0zVP8V/0slLv40wav8RL7aa0mPiT37e31VZgrrfwH9umP1ywC0Y0OTGjzvRjVw+d8qY2LjiBWaoK8pI11URjyLJxBAoGwChvph2dImYQQcECCA5QAiSZRPwLAJYJVPl5QRKF5gaCjhCWcakdyvmTPmKat+5BuVE87hF88L7D9wQGUyWc+XkwIGT2B3997gVSqkNco2NCrr9MsP1/7ItWKIorbWVPEY0ashD/5HwBMCzH/liWagECML0D97ZBue8YDAzDWdL7etbNJrNJ/hgeJQBAQQEIGhoYTp+Ckq8bblyqqbomJdL6nIhOn4BEiA+a8C1Jg+q0on82D5rMVGL252QqMavPAjKn3qucrs36tqfrFWxVK9qr728Jcfo5/Nswgg4JaAbRgHD9ZMfFapdreyJB8EihagB1bRZJzgtoBh0AvLbXPyQ2A0AT3cY0J9RKVPf6f0uJqmlGGqdONbVG/1DLX/4AGVSuu1F9j8LtDNanB+b0Lfln93Dz2wfNt4xxVcXwv0NUFfG/Q1Ql8r9DVDXzv0NYShg8dh8RABDwgYyn7q3NaXUh4oCkVAYEQBAlgj0vCEVwQsy3zMK2WhHAggcFhAD/uIxU/uxJtKpdT+A71qX2+vSqaScPlYoGfffh+XnqL7WWA3wVM/N1/uvV9fA/S1QF8Thm/62sHQweEq/I5A5QWYuqXybUAJxhY4+e5j7HM4AgFXBTJ10a2xgXS/ZFrnasZkhgACowo0dm1Su2qnq+Tkk0f4pjNp1XswraKRqKqtqVE11VWSFnOdjArqsSfpgeWxBglRcboYQujD1rZVYjCpBhIJlclmRix/1b7XlL52sCGAgOcErJQdf9xzpaJACAwToAfWMBB+9Z7AnNbtg8pWT3uvZJQIgdAK6Hnp7jas9PtObX+wJhIx/9qwlZVPQ9/IHOw7pPbs25e7sbHtfEexz4sCPXv3ebFYlCkEAl3de0JQy4BUUd7TB5ODsmLp/tx7/SjBKztqmF++pP0fYqaVvlyGKq2WLzVeEAWuCgF5KVAN3ws8P+fO7V2+rwUVCLwAPbAC38QBqaCpHpWPONcFpDZUAwG/CeyRzlNblG1slnuNx5rXtLedWIEbv/n0w2v/YNr2/y+Tmkw88bnDv2UtSx3q71P9iQHpjVWt6mpq5VB6ZOWz8so+hnF5pSXCV46efb0qm82qSIRJvr3a+rZ8G5EYHJQvJgaUfn8fY+uTgNVHLlt44w8PH9fxY/lf/6jO20+dls1E5sk1ZoH8vFc+6zUdPoZ/EUDATQGGD7qpTV7jESCANR49znVP4PCSrvpbOu543VMnp/AKyPgP49fyB7cxYmYfaazu/KXRmr+H1RDR/MXLN21Zf89FRsTQNyhvHNo//H9LbnT6BwZyvbFqqiSQVVujTJOb1OFOXvi9Zy9zYHmhHcJYBh282rv/gJo+dXIYq+/pOlu2lXv/1kMFdRCrgO0Vw8i+b+7Cm17Od2zjV7p6ZP9DR37Ujttmn2FmresM075WglmXy349/pwNAQTKLGBEWDSrzMQk75AAwQCHIEmm/AJtK5t+Lbm8tfw5kQMCoRTQwwI3yw3D5prBxKYpd+07WIrCj39wb0MmYzwo576vkPMNiUlXVcVlOfU6elsUAubSMbpHxbs+/KlcLxiXsiQbBE4QuOvLt6q3vvENJ+zjl8oJWFn58kF6Ww3IcEGJXBVUELnJ2GSZxgdbrl/WW9AJww7qaJ1Za/epS5WpFtjKXCAZXyCHcO8yzIlfEXBAoLNpTXuT/HEV9sftQIYkgUCpAvTAKlWO8yoh8KhkSgCrEvLkGUSBPqnUVrkXeCRiZp5sXNW13YlKXvb+FYfWr1+/cFqk7x/lg9CtY6Vpy2elwWRSDcpKVdVxCWTVSCArSo+ssdzK/fzeI0O4yp0P6SMwkkBXz14JYI30LPvdEshYWZUYSOSGC+r36yK2u63JOz/T0tI68ozuYyQ2s7VjQA6Roeu5H/X6LaefGlPpyyWEpaeUeK/80EVPENgQGK+ADPF9lODVeBU53y0BAlhuSZPPuAX02GzbMG4fd0IkgEA4BbISrPqVoazNMhhwc+fBxm0X3f1CuhwUS5YskbzUbVs2rPuV/N2ulcc1Y+Yj3+jnAlkSzKqSQFad9MiKRblEjelWpgO6mcC9TLIkW6iADmCxVU5AT8auh3sn5T25qLCVUkkJdH2qZdGK+5wu/ZEJpnPDDe0bVKTzzMbzslZkgWHYC6SQV0h+cafzJD0EwiAgwSvdSYANAV8IcHfgi2aikFpg5vaOn7XPadKfaKcgggACYwvYynhdvlV7Sj7Yb85GIptPW7XzuEmNOsZOYJxHtCxc9p8yufvrpqE2SFIzC00uKb2x9E88HlN11XW5/ws9l+OcEWD+K2ccSaV0ga4eViIsXa/0M1OptOof7Ff6/xK2DstWC+cvXvHzEs4t6hTjISVflHS+ICfpn9VdX5xRJ9P+v+PwcENDD2Gn/15RohwcYoFkTKV+FOL6U3WfCRDA8lmDhbm4+sNK+y32JumF9eEwO1B3BEYRGJChFc/ZslqgTL6+eeaq3If7UQ4v/1MyufvPZV6si7MZY4N8i//2YnLUN1CpVK+KRqK5yd6rZNJ3+ZaQzQUBViB0AZksRhXYTQ+sUX2cflJ/adA/0K/SmZJH/P0ymo1+4LIlS3c6XbZC0jv1q7v75bih4Ya36cngI5YlKxvmemddJc/lXSG3kLQ5BoEgC8h91bZpq/ccCnIdqVuwBAhgBas9A18byzQflSFJBLAC39JUsEABWbvc+OXQsMCBZO2zZ9/1SrLAc107TObF6tiybt08Y4J1t5T3Y8VmrIeyHDh0SEVlHpa6mhpVXSWLUhmEsop1LOb4HoYQFsPFsWUQIIhaBtThSR4Zut0vKwrq99nSN/sB+6D5ycuWLZUZ3r2xSY9jvTCJXHPU3XmGG86T/dwDCQIbAtJLn+GDvAx8JcCbt6+ai8KqlHpCxZT+lMVrl5dDWAV2SzekZ5T0srKUsXH2ml3lHwvogHTLsmX6xmbplg1rf2PYapU8Lnqm9lwgq++Q6pN5WWolkFVbXU0gy4G2yZdE997jRpvKAbbc6BoEDfNRsa9MAroHFq+7MuHK3/PA4KAakMBVViZpH8eWtQ11W8vCFV8dRxplP3X4cMO225umyCfJ+XItXSCZv1t+Zpe9EGSAgFcFTPWYV4tGuRDIJ8BX2PlU2OdpgbaVTT+WAr7T04WkcAg4J5CQD9k/GRoW2Liq80V54y5yTl3nCuNESlu/d+97lGX8u6R1ynjSM2VyrdqaWglk1RBcGQ9knnNvvu3v1e9f3Z7nGXYh4J7Ahru/pqZMGtfbhHuF9UFOOiA4MJiQwNWAsmSyqnFuvcq0Pzzv+hWPjzOdip8+bLihDmg1FFUoTckdVVFkHOwZgZeb17S/yTOloSAIFCBAL5YCkDjEcwK6qysBLM81CwVyUEAPfdisJ1+P16Uen97a0+dg2hVPSt/wbFl/z8VGxPyhFKbkiXb1DVhff39upawamR+rtrZWRUyz4vULQgEYvhWEVvR/Hbr37COA5UAzWpZ1JHCVyPVqcyDJVwwj+76519/0sgNpVTyJ44cbvt56enW8L3XZ4cngTemhZV8gBRw9PDX6sxWvHwVAYCQB+XKU4YMj4bDfswIEsDzbNBRsJAHbMh41TPuOkZ5nPwI+FNgjH4+36GGBRsZ6vOnrHbt8WIeiityy5BOvbPneuksNy/oPuTfQ33iXvA31KkgkB1UukCXDCyORokcolpx/0E7MZLK5OccKqdfbz3+zapw+tZBDOQaBnMAvf/t7taO9qyCNLhlG+MazzyjoWA46WSCbzeaGCer3Rv0+6cxmP2Gb5ofmXX9TrzPpeSuVOa3b9XD3ocnglaxuOD1jROfKNVomhFfvlS+WmrxVYkqDwDgEIsx/NQ49Tq2QAN8ZVAiebMcnIMMIt0sKp40vFc5GoGICMo+b8Ws9+bpMK7SxsabjOaNVyYTs4dvWr18fmRbp+0e5GN3qWO0lsapYXFYurFOxKN/TFOva2b1HffAzYzfH+6+aqz5y/XuKTZ7jQy4wkBhUX//2d9RvXv7TmBKf+uhi9aH38xobE2rYAXq+wH6ZK3AwmZJnnApc5TK525688zMtLa16LtJQbjtunX2uaVvXGodXN7xcEGRVETYEfClwoKv31GkX3f1C2pelp9ChFeCTfWib3ucVt2Uyd0Pd7PNaUPxwCRwdFpg0q548c/VrB8JV/fy1XbJkiZ5B+LatD6/9tfxN3yuPa/IfWcReuV/TS8Lrn6q4DmTVSiArVkQC4T60e8/eMQH+4rqr1KJr5o95HAcgMFygtqZa3faZG9Xd39mgtv70heFPn/C77oHFVrhAJiOBK5nfajAli9E6GrdSSVvZn2pZtOK+wksTzCNPW73zJamZ/lnd0Tqz1u5Tlx433PDCYNaaWgVUYBPBq4C2bMCrRQAr4A0c1OrJEMJHZdw2AaygNnAw6tUnAZmfyZDXjdFI5geNq7q2B6Na5anFvMXL/2Pbw/f83jbM70sOjq0INRTIiseiMuF7XS6gVZ4aBCfV0ea/0isRfnThNeq6BbrjARsCpQlEZYjvp5feoGbOmKb+/ftPjJjIaK/FEU8K4ROpTFoNSI8r/X7n/GZ0WrZ9/fzFK37ufNr+TnFma8eA1ODocMPXbzn91JhKXyUBrWslgHilPDfZ3zWk9IEWsBk+GOj2DXDlCGAFuHGDXDUrZW42YnZC6jj+3hpBhqJubgpITyLjV3pYoAwG3Nx5sHEb32wVxz938Sd++eMf3PuObMbYIJ0H3l7c2aMfnUpnVCp9IDeksFbmyKqSSd8ZQ5/fTE+cnW/TwauPL75WXTOfNTTy+bCveIEPXD1PnTKhIdcbKyPzNQ3fumQ4K9sIArqnaTqVGyqYlgBWmbZfRrORD1y2ZOnOMqUfqGTn3LldT+52v/6xb1CRzjMbz8takQVHhhvOlf10BQ5Ui/u6MlbUzoz87YGvq0bhgy7A5/egt3CA69e+cubj9jgnfw4wD1VzR6BTstGrBT6SjUQ2y0pG+93JNti5bFm3rtqYYN0tAcGPlaum0WhE1VbX5iZ9J5J1ovI37nlQfX/TlhN2mrK6419+bLGae4lekIsNAWcFfvXSH3LzYh2es+lY2jXVVeqJB/712A4e5YYG6knZBwYHlF5woXyb/YB90Pxky7JlelJztnEKdLdOq0/3xS6R3lnXWcq8zlD2nHEmyekIjEfgp81r2i8dTwKci0ClBOiBVSl58nVCQC/9Oq7Vy5woBGmESmBAgh3PyfDVzREzu3nmqs7RJ3AJFY1zlT1yw7R0y4a1vzFstUpSdnxJQX3jd7DvkOob6Fd1NRLIqpYeWdLDiE2pzu6eExj0cK/PLvsL9Y4L33rCfn5BwCmB8849R7V+/ma1+l/vU/sPHDqabGIwqQ4e6lMTGuqP7gvrA72KYGJwMDfHlWWVdc2PrG2o21oWrvhqWK3LUe/prT19ku7QcMO/3nHb7DMiliUrG9oL5Euwq+S5ieXIlzQRGEFA30OxIeBLAT6t+7LZKLQWkKWN52TMqJ4Ymw2BsgnYhvE7WXHoET0scCBZ++zZd70is+OyuSWw9Xv3vkdZxr9LfqeUM0/TMGWOrGrplVWjDOltFObtjn++R23a9tMcgV7F8Quf/Ki64C1/FmYS6u6SQM/e/eqOf16r2rsOB1FrJbD8vXu+rqqrqlwqgfeysSVYNTCYUHr1Rssua+BKV75XmfaH512/4nHvSQS3RCcMN1T2dVLTd8hPuC9EwW1ub9TMVuc339n+K28UhlIgUJwAAazivDjaYwJtK5t+J0V6o8eKRXH8LdAtvay2KellZSlj4+w1uzr8XR3/l/7p9feeY0aNH8i31OeUuza6F5a+aa6VXll62FwYt50dHbk5iXoPHlKL33uleuNZjHQJ4+ugUnXu6x9QD254THX17FML39OirrxMRl1JgDlsm+5lNSArCg5Iryvd+6rsm6H+YGXs989fsuIPZc+LDEYV6PjCzKmWabTIZ5EFcuB75GfWqCfwJALFCXQ0rWlvliCAC28sxRWMoxEoRIAAViFKHONZgV23NN8pk2N+0bMFpGB+EBiUD4k/HhoW2Liq80Uu6t5rNpncvSGTMb4jJdPfTpd/kxdBdbxKhhfWKT1fVpi23oMHZTUzOhqGqc29XNfpU6fKW3R4Pq5mZTL7gURCJZIJCVy50zKiu0kCJh9suX5Zrzs5kksxAsOGG+qpMxqKOT8XpgjPn1BRNKE82Fbfkt5Xnwpl3al0IAR4OwtEM4a3Ertua55nWPaJsw2Hl4OaFy6gh57qydc3VxnJJ6at2XNs0pXC0+BIlwXWr18fmRbp+0e5cN3qWtaSWVUsrupqa2UFw3AsIHXg0EE1mCSA5dprjIxGFpC/vxlTpo38fICeyWQzuRUFD09k71Lk6rDf3fbknZ9paWnNBIgzsFXZ9bnmGjNivVMGGC6wlSk9tGy9sgb3c4FtcecrJl/8v69pdccjzqdMigi4I8AbnjvO5FImAbtVRdsHmvRkGWWdH6dMxSdZ9wT2yMe7LXpYoJGxHm/6escu97ImJ6cFtj689kPSnvdKujVOpz1aevFYVHpk1at4PNiBLAJYo70KeM5VARnSO2PKVFezdDuzVDojPa76pddjyu2sk7ayP9WyaMV9bmdMfs4JyHyw0zNGdK5cE/Vww2vlZ6ZzqZNSAAWS8drU1COLCgSwelQpDAIEsMLQygGvY9utTeulJ80NAa8m1StOQNYWN35lKGuz3P9sbKzpeM5olWnY2QIjsO3he863DfP7UqHZbldKB7JqZWhhVTzudtau5HdAVmcclHl32BCotIBeUGH65CmVLkZZ8k9l0mpgYKASgSupj9Fp2fb18xcv/3lZKkeiFRPYcevsc2XhmWull41e3fByKUh4V0CoWCt4OuPHm9e0X+PpElI4BMYQIIA1BhBPe19AJnL/uJTyPu+XlBKWWeDosMCkWfXkmatfO1Dm/Ei+wgIyL9bMbMbYIINt3l6Joui5sepksvfDK6QF53J6qK8vt+pZJUzJE4HjBfRCCtOCFMCSN6tkOiVDBftVOlOxEXu/jGajH7hsydKdx1vzOHgCHa0za+0+delxww0vDF4tqVExAhLY/B8yfPBfijmHYxHwmkBwPnF7TZbyuCbQefup07LZSJdkGL5lilxT9mRG/dJl/qe2ZWyM2ekfnvrV3a97spQUqqwCjz32zaraRMO/yTwgN5Y1o1ESj0QisnJhjaqRH+nx5/uNAJbvmzAwFdB/W1MnTfZ/fSRwNZgazM1xlZFJ2l3ZJE+5Rg7b7P+MZxuWX7pkSWLYE/waAoHtXzqtMZrOvEs+LV8rvbP0kMNJIag2VTxOIGplzuDz8nEgPPSlwEmXNl/WgkKHXkB6Yelu8G8LPUSwAY4OC5TBgJt76yc9c27rS65PGhJsYv/Wbtt3135S7tf0t4rRStXCNExVU1MtwwtrlH7s1+1Qf7/MyTPg1+JT7gAJ6F6OU07xbwDLlmUEEzIcV68qmLVcClzlb/+sYRh/M3fhstX5n2Zv2ATsG1Sk88zG87JWZMGR4YZzxSDYEzyGrZGH1ddQ9ktNazrePGw3vyLgO4GKfdD3nRQF9rSAYduP2oZBAMvTrVR84eRi22Ur4yn5pvARO2P8aNY32vYdS6Xj2EMehV5g7qLldz/98NodpqH+UzBOXtQhb28EZ9ks28r1sNA3qzVV1bmVC/UQKL9tQehF5jdzyptfwDi5C1H+Az22V+aXygWBE/JeoB9XeDsk19KPzl24/IcVLgfZe0jAeEhJRLXzBSmS/lnd3TqtPt0Xu0R6Z10nn7veJ/tOlx+2YAlsDFZ1qE1YBeiBFdaWD1i9O25rvNCyzOcDVq0wVmdA7lees2W1wIiZ3TxzVe7DVRgdqHOJAlvW33OWETH1jdobT0zChQjWiRnKcELDl4GsPpmfp18ml2ZDoNICesGESRP9M8pJB7F1ADuRGJTAlSfWDXnFMLLvm7vwppcr3Zbk7y+BHbfNPiNiWQvU4cngr5LST/RXDSjtcAGZ3P+KmXd2Pjt8P78j4DcBAlh+azHKm1dAbk2N9pVNbfIkywfnFfL0ztfk2+GNMizwkYFk7bNn3/VK0tOlpXCeF9jyvXWnGJb1H/K28G5PFFautNXSI6teJnzXc/p4fdPBKx3EYkOg0gLxeExNmnByh8pKl2t4/lmZ16pPht0OJmX1zop3uBoqnf2EbZofarl+We/QHv5HoBQBu1VFOwcb/1yGG14nl7Nr5UV+vqTjv+7FpVQ+OOfsb6ptny4rclds9YjgUFKTSgsQwKp0C5C/YwK7bm2+V4YSLncsQRIql0C39LLapqSXlZ1Wj8qwwPZyZUS64RVYv359ZIbZt8o21Bc9o6ADWbGq3NDCaNS7I/j1/Fd6Hiw2BCotUBWvUqdMmFDpYoyYf0ZWEtQB38G0fO/iduBqlE6lhq2+utuqv23JkiUVnXhrRDie8LVAxxdmTrVMo0U+yy2QirxHfmb5ukIhKLwMC/2PWWvaPhyCqlLFEAgQwApBI4elirtWNi+UnjzfDUt9fVRP/W3Pz+Xi+YgeFti4qvNFeeNx+6O+j7goqpMCWx9e+yH5kH2vpFnjZLqjpzXKneWRE/XQqNqaOlUVj4+eVAWe1UOgDvX3VSBnskTgRIHqqio1scF7AaxUJq0GJHCVTHluHZGkrexPtSxacd+JkvyGQPkEjg43VPZ1kosOalWXLzdSLkVAPoN/VAJY3ynlXM5BwGsCBLC81iKUp2QBPQFlaiC+RxKoKjkRTnRK4DVJaLOEqTZXGcknpq3Zc8iphEkHgWIFtjx870WGaTwor8dzij233MfHYjFVJ0MLvRTISgwm1ME+AljlbnvSH1tAD72d2NAw9oEuHaEDVv3SQzGdTruUY1HZ/N4yzY/Ov/5GPSk3GwIVEdj1ueYaM2K9UwYYLrCVKcEs+wIpCPebFWmNo5lmVUTNaP5K+96je3iAgI8FeEPxceNR9JMF2lY2bZa9V578DHsKFhi780i+pPbKx5On9bBA07CemLm6Y2e+g9iHQKUEnlu/viYZ6fvfctG7Rcrgubk7opGoDC2skbmydPy9spdmAliVepWS73CBmupqNaG+wgEsuSYm0xK4knnh0jJk0IObvmp/O9kf/fzVS5cy9teDDRTmIu3+0vQZ6XTsCrms6Z5Z18lPY5g9KlT3nzSvab+sQnmTLQKOC1T2U7Lj1SHBsAu03dL0OblIfj3sDi7UX+bVMH5lKGuzTL6+eWZ9x1YmhnRBnSzGLbB1w7p3KdteJwk1jTuxYhMoIDgcMU0ZWliraqprZBXDYjNw5viETER98BCdJp3RJJXxCNTK30FDff14kij9XPl7HUwNyoIGA0pP0p53K+BvOu95zu3sspT1ifmLPvGoc0mSEgLlEZDJ4E2ZDP58mQx+gXF4dcPLJSdGTZSH+/hUvyQBrK8cv4PHCPhZoEIfj/1MRtm9LNB2e9MbVFb9wctl9HHZjg4LlG/TnprzT9tZ2cjHjRnmoutVCiXw+s8yZ95HvOpgmkYuiKWHFxouR7L0SmoHCGB59aURqnLV1daq+to6V+ts27ZKDA4qvZhB1rJczbvIzB7KGJG/XLDw4wwLKhKOw70h0NE6s9buU5ceN9zwQm+ULFilsA3jrbNWt/13sGpFbcIsQAArzK0f0LrLMMI/StXODmj13KxWv/Rm+6ktwwKj2cwjjV/r+p2bmZMXAuUWkN5YN0hvrH+TfCafkFfle1UcLY4OXtXIPEB6eKFpRo7uL+eDwWRSAlgHy5kFaSNQkECdBK/qJYjlxmbZlgStEmpAgle2twNXB6QH9GfnLVr2gBsu5IGAWwJdX5wxJ2PG3qUO987SQw4nuZV3gPPZ1bSm/TS54defbNgQCIQAAaxANCOVOF6g7damf5K36b8+fh+PCxKQr5qNXw4NC+ytn/TMua0veW6JpYJqwkEIFCjw4/X3z85EMvfJ4S0FnlKRwwyJJlfLfED10iPLjJR3Cq9kMqV6D8k9MhsCFRaor6vLLXJQzmJYEqzqzwWuEnKLN9I9nmei2k/ZKru8ZdFNbeU0IW0EKi1g36AinWc2nnfccMO5UqZYpcvlu/xt9f8239n+ad+VmwIjMIoAAaxRcHjKnwLtK2e+S5aLfdKfpXe31DKEqku6Fj8rw6k22hlj46xvtO1ztwTkhkDlBWTIkPHMhnU3yS3qN6Q07nT3KLXa0iOrOh6XQFadikTL0yMrmUqq3oP0wCq1iTjPOYGGunqZE67GuQSPSyljZVViIJEbLmh7v3NCQnpj/t0Vv9lxp9Ha6ulxjccR8xABxwT0SuPpRKxFLtfXSqJXy89pjiUe5IQMdW3z6nbmyAtyG4ewbgSwQtjoQa/yS63nxicO9O6RelZ46SJPSg9IR47n9LDAiJnd3Liq80V5E9BfLbMhEHqBZ9avfZMVUXpYjl7229ub/OFWxeK53imxmLNfSqfSabX/AFPcefsFEI7S6RUI9UqETm6ZbEZWFBxQSRkq65mLny7IiJ/IjV9YWWvp/CUrmN/TyRcCaflaYMdts8+IWNYCPdxQvrS+2rDtCb6uUHkKnzBr7akzWzsGypM8qSJQGYERL5eVKQ65IuCMwK6Vzd+T3kUfcCY136fymlhslF5Wjwwka589+65Xkr6vERVAoEwCz3/rW7FDU6N/I0P2/qdkUZ4uTg6XPR6LSi+VOlUlPbOc2AhgOaFIGk4IOBnASmXSakAHrlK+GRmfkbjW1xr2pP/2optvTjvhSRoIBFFAVjeMyuqGfy7DDa+TG1vpoWWfL/Us71h7f0BulNUHr/NHUSklAoULEMAq3IojfSSw65bmT8gSvd/2UZGdLGqPfJO7VUkvKzutHpVhge1OJk5aCIRBYMt3110igV/dG+ssv9Q3Go1Kj6waVSWTvo/n4p6WHlj76IHll2YPdDknNkxQ1VVV46qjDljpHldpCWD5aPu9DG3+WMviFc/7qMwUFQFPCHTefuq0bCYyTy6EeiL4a+Sn2RMFc78QfykBLL1QDRsCgRIYz2fcQEFQmWAJbP/SaY3RTEYHbsLwGs9IPX8uXagfYVhgsF7H1KayAj/+wb0NmYzxVSnFJytbkuJyj0QiuUCWXr1QyZxZxW7pTEbt691f7Gkcj4DjAqdMmCA9C0sIYEnXpcF0UgJX/SqTyTperjImqAcTfjvZH/381UuX9pcxH5JGIDQCR4cbKlv3RtJBLWfHJXtU0sxap8/8WucOjxaPYiFQskDxn2xLzooTEXBXoG1l04uSo+5GHMTtNanUZpnAY3PNYGLTlLv2MeNyEFuZOnlCYOv37n2Pssx7ZVhCoycKpAsx6pw5h0sZMSO5CbBr9RxCRQSyCGB5ppVDX5BTJk7MzfVWKISejF3PbdUnPa6yWV8FrnQVuwzbWDF38bLHCq0vxyGAQHECuz7XXGNGrHfKAEOZO8uUYJat57wM4v3wb6T31Z8Xp8PRCPhDIOqPYlJKBEoQMNSj8lnWewGsAm4889R2r1xen9bDAs1sdhPfqOQRYhcCZRKYd/2Kx3+y4f7zMlbmbttQ7y9TNsUlW8DH7ayssnaov0/1JwZyE2HX1dRKHGvsE81AfpYvjpejvSEw9qv1cDlluF1uNUH9WrcsXy7S91A8a33q0iWfYCVgb7z0KEVABWRajYRUbfORH7X7S9NnpNOxK+Syp3tm6R5a3vmiSgozjo2VB8eBx6neFij0s4G3a0HpEMgjID2wLpHdP83zlB92yVfHxq8MZW2Wydc3dx5s3HbR3S/4agIPPyBTRgSKFdi24d6lsornv8h59cWeW+njdfBKDyusq61Vpjny/La658qe/dxHV7q9yF+pyadMUjGZ222kTQerBgYTaiCRUDqI5cOtV4r92ZbFyx/0YdkpMgKBEpDJ4E2ZDP58mQx+gcyju0C+BL9CKujM6iguS8mqjJc13dnxE5ezJTsEXBEggOUKM5lUQkBfiNoHmjol7+mVyL+EPI8OC5Rvg56a80/bWce+BEROQaDcAlu+t+50w1L/nww90B9ufbfJCosy0Xtc1dfWKT1f1vBN99zas48A1nAXfndfYMqkSSoaOTmApV+jAwMSuEoOyp+hLwNXGvOpbDay7MolH2ehFfdfWuSIwJgCXV+cUZdVkXccN9zwwjFP8sYB+5peb59uPKR8N47aG3yUwusCBLC83kKUb1wC0gvrfkngY+NKpHwn98t95E+lN8fmaDbzSOPXun5XvqxIGQEEnBRYv359ZEa0/4vS6+PLkq4vv6HVIwWrY1XSI6tORaPHAlmWBAd6CGA5+XIhrRIFpkyaLAGsY69N3TuwX3pbJfwduEpIb8i/u+I3O+40Wlt9Od6xxObkNAR8LXB0MvjDvbPeJZU5xZMVstWDzXe2e/Xex5NkFMpfAgSw/NVelLZIgfZbZv6FbRj/WeRp5TpcPqgavxwaFthbP+mZc1tfSpUrM9JFAIHyC2z7/rq32FlLhv8Yby1/buXLoSoezw0tjEVjyrIt1bN3b/kyI2UEChSYOnmKishw14ysjKnnt9ITtHu+v9Wo81wav7Cy1tL5S1b8oUACDkMAAQ8K2DeoSOeZjecdN9xwrhQz5oWiyvDHDzWt7vDKvY8XSChDwAQIYAWsQanOiQKv3nrGxCo72SN7K3VR2S29HJ6Reaw22hljo0weybicE5uI3xDwvcBz69fXpMy+VfK3/lmpTJ7r6qh3tJ6qfzwWl5ULq1XvQRY29VTDhLQwE+ob1KAErVJp33/Xk5Z3gS+ryTtXtbS0ZkLanFQbgcAKdLdOq08nYi0yquJaqeTV8nNahSorox7VjOavtPMtVIUagGzLL5Dng3b5MyUHBNwUaF85c5utDLfmqknI7etP9LDAiJnd3Liq80X5I9N3r2wIIBBwgacfuu9K07Tuk2o2B7yqVA8BBAoXeFmGGi9tWbzi+cJP4UgEEPCzwPHDDeUe5GqZVH2CG/UxlP1M05qOuW7kRR4IVEqAAFal5MnXNYH2W2eulIDS6jJm+JqkvVm67G5M1cSfmtO6XWaVZUMAgTAKPLvxO5OyycF/lY5YH/RN/XWInU8DvmmuUBfUX69V+eihvlmVqb/90iVLEqFuNyqPQIgFZFGpaGdi5iWy3sS1tjIXyPfaFwhHWa66ci9yqwwfXBNibqoeAoGy/PGEwI0q+khgx62zz43Y2d86WOQeuexsVdLLSi5CjzWvaW9zMG2SQgCBAAhsfXjth+R94l+kKpNOqI6/bsBPKDq/IIBAwQK7LMtcNv+GG39U8BkciAACoRDovP3UadlMZJ58RpBglrpGfhzrtR3JZs9lUahQvIxCXUkCWKFu/vBUXlYjfF1qe3qJNU7KeT+WbzWetC3jyaY7238tfzj6NpQNAQQQGFFgy3e/3WyoyDo5QH9IZUMAgTAIGOpBWTzmsy3XL+sNQ3WpIwIIlC4gNxNG+y1Nf26Y9lXSZfMqSeky+akqMcXt8qX6nBLP5TQEfCNAAMs3TUVBxyMgASzdE+LTRaSRGxYoYarNNYOJTVPu2seMxkXgcSgCCBwWkLlvjGe+e99f2Yb9FdlTgwsCCARWYK8yjL+ct3DZQ4GtIRVDAIGyCuz6XHONGbHeqUy1oNjhhjLX1j/PWtOmF5NhQyDQAgSwAt28VG5IYNctzddID6pHh37P8/8+6cr7I93Dysxam5q+3rErzzHsQgABBEoS2Lbh229UduQB+bb1wpIS4CQEEPCugGE8mc2Yy69c8vF27xaSkiGAgN8E2j8/c5YVMa/WPbTkS/UrpfyTR6qD9Py8ZtbqtsdHep79CARFgABWUFqSeowq8KfPnlVVU5P4nRx0xpEDM/L/z+QnNyyweUfb88ZDKnvkOf5DAAEEHBfYsqU1au4/7QvSK+tayvYKAAAYK0lEQVTvJfGY4xmQIAIIuC2QMGzj9isW3fhNQ74lcztz8kMAgfAI2DeoSNtpzRflgllK6eGGl8hP9IjAa4lEzZvOvusVPe0JGwKBFiCAFejmpXLHC+z+0vQZmWx0sexrG1TVW89c/dqB45/nMQIIIOCGwNMPr327aagHJK+z3ciPPBBAoEQBHZIa8ZOy8YuIYX7s8oUf/2OJqXMaAgggULLAq7eeMbFaDc6TBJqjkczDM+7o3l1yYpyIgI8ERrws+6gOFBUBBBBAAAFfCTy3fn1NyuxbJTfHer4KrsW+aj0KG3KBjMS1vtawJ/23F918czrkFlQfAQQQQAABVwX40OwqN5khgAACCCBwTEB6Y10tvbHWyp6Zx/byCAEEPCrwsmWaH5t//Y0veLR8FAsBBBBAAIFAC5iBrh2VQwABBBBAwMMC8xcv32Rm1XlK2d/3cDEpGgJhF9CDCe+uj6cvIngV9pcC9UcAAQQQqKQAPbAqqU/eCCCAAAIIHBHYumHdDcq275ZfTwEFAQQ8I7DTMNSyuQuXP+2ZElEQBBBAAAEEQipAD6yQNjzVRgABBBDwlsC8hcseyirrPPlmaZu3SkZpEAitwEPxrHU+wavQtj8VRwABBBDwmAA9sDzWIBQHAQQQQCDcArZtG898976/sg17tUhUhVuD2iNQEYFew7D/x9yFK75TkdzJFAEEEEAAAQTyChDAysvCTgQQQAABBCorsGXDPW82LPMBWaNQ5shiQwABVwQM48lsxlx+5ZKPt7uSH5kggAACCCCAQMECBLAKpuJABBBAAAEE3BXYsm5dtZpgt8rF+hbJmWH/7vKTW7gEEoZt3H7Fohu/aUj3q3BVndoigAACCCDgDwECWP5oJ0qJAAIIIBBigW0Prb3UNtUDQnBGiBmoOgKlC+iQ1AifemX3z00jsvTyhR//Y+kZcCYCCCCAAAIIlFuAb3PLLUz6CCCAAAIIjFNg7g3Ln6tOxM+XZPQqhWwIIFCsQP7gVUbiWqvr9qQvJ3hVLCjHI4AAAggg4L5A/su5++UgRwQQQAABBBAoQGDLd9culov3v8mhUwo4nEMQQCCfgKF+Zxnm0vnX3/hCvqfZhwACCCCAAALeE6AHlvfahBIhgAACCCAwokDLouUPZ6LZc5WtNo54EE8ggMBIAnow4d31sfTFBK9GImI/AggggAAC3hSgB5Y324VSIYAAAgggMKqAbdvGMxvW3SR341+XA+tGPZgnEUBAC+xUyr5x3qIVW+BAAAEEEEAAAf8JEMDyX5tRYgQQQAABBI4KPPvdtWdYyr7fVsY7j+7kAQIIDBd4KFJVdfPl135k//An+B0BBBBAAAEE/CFAAMsf7UQpEUAAAQQQGFFgy5bWqLn/tC9Ir6y/l4NiIx7IEwiET6DXUMZn5i5a9u/hqzo1RgABBBBAIFgCBLCC1Z7UBgEEEEAgxALPfO+et1m2eb/Mj3VOiBmoOgI5AfmQuykStZdf9v4VHZAggAACCCCAgP8FCGD5vw2pAQIIIIAAAkcFnlu/viZl9q1Shvqs7OQ6f1SGByESSBi2cfsVi278pmEYetJ2NgQQQAABBBAIgAAfbAPQiFQBAQQQQACB4QLbHrr3Kts01sr+puHP8TsCvhbQIamRP8H+TIJXS+cuXvYnX9eRwiOAAAIIIIDASQLmSXvYgQACCCCAAAK+F5h7w4onJYD1ZqkIc//4vjWpwAkC+YNXGVvZf9edrb+M4NUJWvyCAAIIIIBAYATyfwQITPWoCAIIIIAAAghs3bDuBmXb3xKJSWggEDgBQ/3OtNXHrli0/MXA1Y0KIYAAAggggMBRAQJYRyl4gAACCCCAQHAFfrz+/tmZSOY+qWFLcGtJzYIrkHfcoN757fp4+nMXXXfzQHDrTs0QQAABBBBAQAsQwOJ1gAACCCCAQEgEbNs2nvnufX9lG/ZqqXJVSKpNNYMpsFMp+8Z5i1ZsCWb1qBUCCCCAAAIIDBcggDVchN8RQAABBBAIuMDTD993rmlYD0g1zw94ValeMAUeilRV3Xz5tR/ZH8zqUSsEEEAAAQQQyCdAACufCvsQQAABBBAIuMDz3/pW7NDU6N8YyvifUtVIwKtL9YIh0GMYxqfmLly2IRjVoRYIIIAAAgggUIwAAaxitDgWAQQQQACBgAls3XDvO5Rt3C/VOitgVaM6ARKQD6ybIlF7+WXvX9ERoGpRFQQQQAABBBAoQoAAVhFYHIoAAggggEAQBX724IMTBmtSd0rdPhnE+lEnXwsMGLbxpSsW3fhN6X2lJ21nQwABBBBAAIGQChDACmnDU20EEEAAAQSGC2zbsG6hTPT+Ldk/dfhz/I5ABQR+JsGrpXMXL/tTBfImSwQQQAABBBDwmIDpsfJQHAQQQAABBBCokICeWyhmRM+V7H9YoSKQLQJaIG0r+++6s/WXEbziBYEAAggggAACQwL0wBqS4H8EEEAAAQQQOCqwbcO9S23b+BfZUX90Jw8QKLeAoX5n2upjVyxa/mK5syJ9BBBAAAEEEPCXAD2w/NVelBYBBBBAAAFXBOYuXHG/DN+6QDL7Wf4MmY4ovwt7SxSwZIarrw5U911A8KpEQU5DAAEEEEAg4AL0wAp4A1M9BBBAAAEExiOwZUtr1Nx/2hdkbqwvSzrx8aTFuQiMILBDKXvZvEUrtozwPLsRQAABBBBAAAFFAIsXAQIIIIAAAgiMKbDl4XsvklXgHpAD/2zMgzkAgYIFjPuqE7G/vuSjHz1Y8CkciAACCCCAAAKhFCCAFcpmp9IIIIAAAggUL/Dc+vU16Uj/HTLB9k1ydl3xKXAGAkcFXpU51r7YsnjZ94/u4QECCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAQMgF/i+j5ZIwysbjZQAAAABJRU5ErkJggg==",Bee="data:image/svg+xml,%3csvg width='16' height='18' viewBox='0 0 16 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg id='Group'%3e%3cpath id='Vector' d='M7.99913 17.3172C8.9364 17.3172 9.74232 16.7562 10.1007 15.9503C10.1876 15.7543 10.0429 15.5339 9.82914 15.5339H6.17357C5.95985 15.5339 5.81291 15.7543 5.90196 15.9503C6.26039 16.7562 7.06409 17.3172 8.00358 17.3172' fill='%23D548EC'/%3e%3cpath id='Vector_2' d='M13.6092 13.3188C13.0148 13.3188 12.5317 12.8379 12.5317 12.2412V8.32964C12.5317 6.21021 11.0757 4.42918 9.11213 3.93272C9.04089 3.37392 8.56446 2.94202 7.98563 2.94202C7.40679 2.94202 6.92591 3.37837 6.85689 3.9394C5.09367 4.39801 3.74677 5.88962 3.5041 7.73077C3.49965 7.75748 3.49742 7.7842 3.49297 7.81091C3.48851 7.84653 3.48406 7.88438 3.48184 7.92C3.47961 7.95562 3.47516 7.99347 3.47293 8.02909C3.47293 8.06026 3.46848 8.0892 3.46625 8.12037C3.46403 8.1827 3.4618 8.24504 3.4618 8.30738V12.2368C3.4618 12.829 2.98537 13.3099 2.39318 13.3143C2.11044 13.3143 1.87891 13.5347 1.87891 13.8174V13.8219C1.87891 14.1024 2.10599 14.3295 2.3865 14.3295H13.607C13.8875 14.3295 14.1146 14.1024 14.1146 13.8219C14.1146 13.5436 13.8897 13.3165 13.6092 13.3165V13.3188Z' fill='%23D548EC'/%3e%3cg id='Group_2'%3e%3cpath id='Vector_3' d='M11.2495 3.16268C12.5118 3.43206 13.4757 4.51849 13.5937 5.80529C13.6071 5.94777 13.7318 6.05463 13.8765 6.04127C13.9455 6.0346 14.0078 6.0012 14.0523 5.94777C14.0969 5.89434 14.1169 5.82755 14.1102 5.75854C14.0412 5.00828 13.7384 4.31367 13.2353 3.75042C12.7366 3.19162 12.0865 2.81315 11.3563 2.65731C11.3385 2.65286 11.3207 2.65063 11.3029 2.65063C11.1827 2.65063 11.0736 2.73523 11.0491 2.85545C11.0179 2.99571 11.1092 3.13374 11.2495 3.16491V3.16268Z' fill='%23D548EC'/%3e%3cpath id='Vector_4' d='M11.5406 1.49069C13.5042 1.91145 15.0047 3.60343 15.1895 5.60264C15.2028 5.74513 15.3275 5.85199 15.4722 5.83863C15.5412 5.83195 15.6036 5.79856 15.6481 5.74513C15.6926 5.69169 15.7126 5.62491 15.706 5.55589C15.6036 4.44942 15.1583 3.42756 14.4147 2.59715C13.6778 1.77342 12.7227 1.21463 11.6474 0.985317C11.6296 0.980865 11.6118 0.978638 11.594 0.978638C11.4738 0.978638 11.3647 1.06324 11.3402 1.18346C11.309 1.32371 11.3981 1.46174 11.5383 1.49291L11.5406 1.49069Z' fill='%23D548EC'/%3e%3cpath id='Vector_5' d='M4.75063 3.16259C4.89088 3.13142 4.97993 2.99339 4.95099 2.85313C4.92428 2.73069 4.81741 2.64832 4.69719 2.64832C4.67938 2.64832 4.66157 2.64832 4.64376 2.65499C3.91354 2.81084 3.26569 3.1893 2.76477 3.7481C2.26163 4.31135 1.95886 5.00596 1.88984 5.75622C1.88316 5.82523 1.90542 5.89202 1.94772 5.94545C1.99002 5.99888 2.05458 6.03228 2.1236 6.03896C2.27054 6.05231 2.39299 5.94545 2.40634 5.80297C2.52434 4.5184 3.49055 3.43197 4.75063 3.16259Z' fill='%23D548EC'/%3e%3cpath id='Vector_6' d='M4.45904 1.49059C4.5993 1.45942 4.68835 1.32139 4.65941 1.18114C4.63269 1.05869 4.52583 0.976318 4.40561 0.976318C4.3878 0.976318 4.36999 0.976318 4.35218 0.982997C3.27688 1.21453 2.32181 1.7711 1.5849 2.59483C0.843548 3.42524 0.398286 4.44933 0.29365 5.55357C0.286972 5.62259 0.309237 5.68937 0.351536 5.74281C0.396062 5.79624 0.4584 5.82963 0.527415 5.83631C0.672124 5.84967 0.796794 5.74281 0.810151 5.60032C0.994933 3.60111 2.49546 1.91136 4.45904 1.49059Z' fill='%23D548EC'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";const Nee=({title:e,icon:t,link:r,linkText:a})=>{var s,c;const u=(0,i.useContext)(w7);return(0,n.jsx)(o.NP,Object.assign({theme:u},{children:(0,n.jsxs)(D7,Object.assign({gap:"10px",width:"100%",justifyContent:"start"},{children:[(0,n.jsx)(Ree,Object.assign({padding:"4px",borderRadius:"8px",alignItems:"start",height:"fit-content",background:null===(s=null==u?void 0:u.backgroundColor)||void 0===s?void 0:s.imageBackgroundColor},{children:(0,n.jsx)(R7,{src:t,width:"20px",height:"20px"})})),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"3px"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"12px",fontWeight:"400",textAlign:"left",color:null===(c=null==u?void 0:u.textColor)||void 0===c?void 0:c.modalTitleText},{children:e})),(0,n.jsx)(U7,{text:a,link:r})]}))]}))}))},Ree=(0,o.Ay)(D7).withConfig({displayName:"CtaHyperlink__CtaHyperlinkImage",componentId:"sc-809mq9-0"})(["border:",";"],(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.image})),Lee=e=>{var t,r,o,a,s,c;const u=(0,i.useContext)(w7);return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"20px",margin:"12px 12px 0px 12px",alignItems:"start"},{children:[(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"10px",alignItems:"start"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"21px",fontWeight:"700",color:null===(t=null==u?void 0:u.textColor)||void 0===t?void 0:t.modalHeaderText},{children:"Thanks for subscribing!"})),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start",gap:"8px",margin:"0 0 10px 0"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"16px",fontWeight:"500",color:null===(r=u.textColor)||void 0===r?void 0:r.modalTitleText},{children:"Getting Started"})),(0,n.jsx)(B7,Object.assign({fontSize:"12px",textAlign:"left",fontWeight:"400",width:"100%",color:null===(o=u.textColor)||void 0===o?void 0:o.modalSubTitleText},{children:"Install Push Snap to get notifications in MetaMask."}))]}))]})),(0,n.jsx)(dee,Object.assign({customStyle:{background:`${null===(a=u.backgroundColor)||void 0===a?void 0:a.modalBackground}`,padding:"8px",border:`1px solid ${null===(s=u.backgroundColor)||void 0===s?void 0:s.buttonBackground}`},onClick:()=>window.open("https://app.push.org/")},{children:(0,n.jsxs)(D7,Object.assign({gap:"2px"},{children:[(0,n.jsx)(R7,{src:Oee,width:"20px",height:"19px"}),(0,n.jsx)(B7,Object.assign({fontSize:"14px",fontWeight:"500",color:null===(c=null==u?void 0:u.textColor)||void 0===c?void 0:c.modalTitleText},{children:"Install Snap"}))]}))})),(0,n.jsx)(Nee,{title:"Explore more ways to get notified",link:"https://app.push.org/",linkText:"Explore Options",icon:Bee}),(0,n.jsx)(J7,{})]}))},Fee=e=>{var t,r,o;const{userSettings:a,channelAddress:s,channelInfo:c,handleNext:u,autoconnect:l=!1}=e||{},[d,f]=(0,i.useState)([...a]),{unsubscribeError:h,unsubscribeLoading:p,setUnsubscribeError:g,unsubscribeToChannel:m,subscribeToChannel:y,subscribeError:b,subscribeLoading:v,setSubscribeError:w}=qee(),A=(0,i.useContext)(w7),C=K9(c5.tablet),E=ree(),{signer:x,setAccount:S,setSigner:I,user:k,account:_}=m7(),T=(e,t)=>{E.showMessageToast({toastTitle:e,toastMessage:t,toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})},M=(e,t)=>{E.showMessageToast({toastTitle:e,toastMessage:t,toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"green"})})},P=()=>a&&a.length?C?"column":"row":"column-reverse";return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",margin:"14px 10px 0px 10px"},{children:[(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start",gap:"5px",margin:"0 0 10px 0"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"21px",fontWeight:"700",color:null===(t=null==A?void 0:A.textColor)||void 0===t?void 0:t.modalHeaderText},{children:"Manage Notifications"})),(0,n.jsx)(B7,Object.assign({fontSize:"12px",textAlign:"left",fontWeight:"400",width:"90%",color:null===(r=null==A?void 0:A.textColor)||void 0===r?void 0:r.modalSubTitleText},{children:"Update your notification preferences below"}))]})),(0,n.jsxs)(D7,Object.assign({gap:"25px",margin:"15px 0 0 0",flexDirection:P()},{children:[(0,n.jsxs)(D7,Object.assign({flexDirection:"column",width:"100%",justifyContent:"start",gap:"20px",flex:"1"},{children:[(0,n.jsx)(Mee,{channelInfo:c}),!!a&&!!a.length&&(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsx)(Aee,{settings:a,setSettings:f}),(null==k?void 0:k.readmode())&&(0,n.jsx)(hee,{autoconnect:l,setAccount:S,setSigner:I,signer:x}),!(null==k?void 0:k.readmode())&&(0,n.jsx)(dee,Object.assign({height:"auto",width:"100%",onClick:()=>pJ(void 0,void 0,void 0,(function*(){try{const e=yield y({channelAddress:s,channelSettings:_ee({settings:d})});e&&204===(null==e?void 0:e.status)&&M("Notification Preferences Updated","Your notification settings were updated successfully.")}catch($R){console.debug($R),w(y7.NOTIFICATION_WIDGET_SUBSCRIBE_ERROR)}b&&T("Preferences were not updated","We encountered an error while updating your notification settings. Please try again.")}))},{children:"Update Preferences"}))]}),(0,n.jsxs)(Hee,Object.assign({color:null===(o=A.textColor)||void 0===o?void 0:o.modalSubTitleText,fontSize:"12px",fontWeight:"400"},{children:[(0,n.jsxs)(N7,Object.assign({onClick:()=>pJ(void 0,void 0,void 0,(function*(){try{const e=yield m({channelAddress:s});e&&204===(null==e?void 0:e.status)&&(M("Notification Disabled",`You have successfully disabled notifications from ${null==c?void 0:c.name}`),u())}catch($R){console.debug($R),g(y7.NOTIFICATION_WIDGET_SUBSCRIBE_ERROR)}h&&T("Error while Enabling Notifications","We encountered an error while disabling notifications. Please try again.")})),textDecoration:"underline"},{children:[" ",p?(0,n.jsx)(k7,{color:"#fff",size:"20"}):"Unsubscribe"," "]})),"to stop receiving notifications"]}))]})),(0,n.jsx)(Uee,{divider:P()})]})),(0,n.jsx)(J7,{})]}))},Uee=({divider:e})=>{var t,r;const o=(0,i.useContext)(w7);return(0,n.jsxs)(zee,Object.assign({gap:"20px",width:"100%",flex:"1",justifyContent:"start",alignItems:"start",flexDirection:"column",theme:o,divider:e},{children:[(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"5px",alignItems:"start"},{children:[(0,n.jsx)(B7,Object.assign({color:null===(t=null==o?void 0:o.textColor)||void 0===t?void 0:t.modalTitleText,fontSize:"14px",fontWeight:"500",textAlign:"left"},{children:"Getting Started"})),(0,n.jsx)(B7,Object.assign({textAlign:"left",width:"80%",color:null===(r=o.textColor)||void 0===r?void 0:r.modalSubTitleText,fontSize:"12px",fontWeight:"400"},{children:"Subscribe, Install Push Snap to receive your favorite notifications."}))]})),(0,n.jsx)(Nee,{title:"Get Notifications in MetaMask",link:"https://app.push.org/",linkText:"Install Push Snap",icon:Oee}),(0,n.jsx)(Nee,{title:"Explore more ways to get notified",link:"https://app.push.org/",linkText:"Explore Options",icon:Bee})]}))},zee=(0,o.Ay)(D7).withConfig({displayName:"ManageNotificationComponent__RightSection",componentId:"sc-1c91ns3-0"})(["",""],(({divider:e,theme:t})=>{var r,n,i;return"column"==e?`\n border-top: ${null===(r=t.border)||void 0===r?void 0:r.divider};\n padding:25px 0 0 0;\n\n\n`:"column-reverse"==e?`\nborder-bottom: ${null===(n=t.border)||void 0===n?void 0:n.divider};\npadding:0 0 25px 0;\n\n`:`border-left: ${null===(i=t.border)||void 0===i?void 0:i.divider};\n padding:0 0 0 20px;\n`})),Hee=(0,o.Ay)(B7).withConfig({displayName:"ManageNotificationComponent__UnsubscribeSpan",componentId:"sc-1c91ns3-1"})(["display:flex;gap:5px;align-items:center;"]),Vee={SUBSCRIBE:1,INSTALL_SNAP:2,MANAGE_NOTIFICATIONS:3},Kee=e=>{var t,r,o;const{env:a,user:s,account:c}=m7(),u=(0,i.useContext)(w7),{channelAddress:l,modalBackground:d,modalPositionType:f,onClose:h,autoconnect:p=!1}=e||{},g=Iee(a,l),[m,y]=(0,i.useState)(),[b,v]=(0,i.useState)([]),[w,A]=(0,i.useState)(Vee.SUBSCRIBE),{fetchChannelInfo:C,channelInfoError:E,channelInfoLoading:x,setChannelInfoError:S}=Qee(),{fetchUserSubscriptions:I,userSubscriptionLoading:k,setUserSubscriptionLoading:_}=qee();console.debug(b);const T=()=>{w===Vee.MANAGE_NOTIFICATIONS?A(Vee.SUBSCRIBE):A(Vee.INSTALL_SNAP)};(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){try{const e=yield C({channelAddress:g}),t=yield I({channelAddress:g});t?v(t):_(!1),e&&y(e)}catch($R){console.debug($R),S(y7.NOTIFICATION_WIDGET_CHANNEL_INFO_ERROR)}}))}),[l,s,c,a]),(0,i.useEffect)((()=>{b&&b.length?A(Vee.MANAGE_NOTIFICATIONS):A(Vee.SUBSCRIBE)}),[b]);return(0,n.jsxs)(G7,Object.assign({clickawayClose:h,modalBackground:d,modalPositionType:f},{children:[(0,n.jsxs)(Gee,Object.assign({theme:u,flexDirection:"column",alignItems:"center",gap:"10px",minHeight:"154px",minWidth:"374px",overflow:"hidden auto",justifyContent:x||k?"center":"start",background:null===(t=u.backgroundColor)||void 0===t?void 0:t.modalBackground,borderRadius:null===(r=u.borderRadius)||void 0===r?void 0:r.modal,padding:"15px 20px"},{children:[(0,n.jsx)(D7,Object.assign({position:"absolute",top:"10px",right:"10px"},{children:(0,n.jsx)(R7,{src:V7,height:"20px",maxHeight:"20px",width:"auto",onClick:h,cursor:"pointer"})})),E?(0,n.jsx)(B7,Object.assign({margin:"20px",color:null===(o=u.textColor)||void 0===o?void 0:o.modalTitleText},{children:"Error in fetching details"})):x||k?(0,n.jsx)(B7,Object.assign({margin:"20px"},{children:(0,n.jsx)(k7,{color:null==u?void 0:u.spinnerColor,size:"35"})})):m?(()=>{var e;switch(w){case Vee.SUBSCRIBE:return(0,n.jsx)(Dee,{handleNext:T,autoconnect:p,channelAddress:g,channelInfo:m});case Vee.INSTALL_SNAP:return(0,n.jsx)(Lee,{handleNext:T});case Vee.MANAGE_NOTIFICATIONS:return(0,n.jsx)(Fee,{autoconnect:p,channelInfo:m,channelAddress:g,userSettings:Tee({settings:null===(e=b[0])||void 0===e?void 0:e.user_settings}),handleNext:T});default:return(0,n.jsx)(Dee,{handleNext:T,channelAddress:g,channelInfo:m})}})():null]})),(0,n.jsx)(py,{})]}))},Gee=(0,o.Ay)(D7).withConfig({displayName:"SubscriptionManager__Container",componentId:"sc-gl5ihq-0"})(["border:",";"],(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.modal})),qee=()=>{const[e,t]=(0,i.useState)(!1),[r,n]=(0,i.useState)(!1),[o,a]=(0,i.useState)(),[s,c]=(0,i.useState)(!1),[u,l]=(0,i.useState)(),{user:d,env:f,account:h}=m7(),p=(0,i.useCallback)((({channelAddress:e})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{if(d&&h){const t=yield d.notification.subscriptions({raw:!1,channel:e});return n(!1),t}return}catch(ys){return n(!1),ys.message}}))),[h,f,d]),g=(0,i.useCallback)((({channelAddress:e,channelSettings:r=[]})=>pJ(void 0,void 0,void 0,(function*(){t(!0);try{if(d){return yield d.notification.subscribe(e,{settings:r,onSuccess:()=>{t(!1)},onError:()=>{t(!1),a(y7.NOTIFICATION_WIDGET_SUBSCRIBE_ERROR)}})}return}catch(ys){return t(!1),a(y7.NOTIFICATION_WIDGET_SUBSCRIBE_ERROR),ys.message}}))),[h,f,d]),m=(0,i.useCallback)((({channelAddress:e,channelSettings:t=[]})=>pJ(void 0,void 0,void 0,(function*(){c(!0);try{if(d){return yield d.notification.unsubscribe(e,{settings:t,onSuccess:()=>{c(!1)},onError:()=>{c(!1),l(y7.NOTIFICATION_WIDGET_UNSUBSCRIBE_ERROR)}})}return}catch(ys){return c(!1),l(y7.NOTIFICATION_WIDGET_UNSUBSCRIBE_ERROR),ys.message}}))),[h,f,d]);return{subscribeToChannel:g,subscribeError:o,subscribeLoading:e,unsubscribeError:u,unsubscribeLoading:s,unsubscribeToChannel:m,setSubscribeError:a,setUnsubscribeError:l,fetchUserSubscriptions:p,userSubscriptionLoading:r,setUserSubscriptionLoading:n}},Qee=()=>{const[e,t]=(0,i.useState)(!1),[r,n]=(0,i.useState)(),{user:o,env:a,account:s}=m7(),c=(0,i.useCallback)((({channelAddress:e})=>pJ(void 0,void 0,void 0,(function*(){t(!0);try{if(o){const r=yield o.channel.info(e);return t(!1),r}return}catch(ys){return t(!1),n(y7.NOTIFICATION_WIDGET_CHANNEL_INFO_ERROR),ys.message}}))),[s,a,o]);return{channelInfoError:r,channelInfoLoading:e,fetchChannelInfo:c,setChannelInfoError:n}},Wee=(e,t)=>{const[r,n]=(0,i.useState)(null),o=(0,i.useCallback)((()=>pJ(void 0,void 0,void 0,(function*(){const r=yield d8(e,t);r&&n(r)}))),[e,t]);return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){yield o()}))}),[e,t]),r},Jee=()=>(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",style:{width:"inherit",height:"inherit"},viewBox:"0 0 18 16",fill:"none"},{children:(0,n.jsx)("path",{d:"M7.89219 12.9084L6.94656 13.8156C5.4873 15.2156 3.1694 15.1676 1.76939 13.7084C0.36937 12.2491 0.417393 9.93122 1.87665 8.5312L4.65793 5.86283C6.11718 4.46281 8.43508 4.51083 9.8351 5.97009C10.5743 6.74056 10.9098 7.7504 10.8471 8.73813M7.11786 7.18824C7.01647 8.21605 7.34626 9.27741 8.11433 10.078C9.51434 11.5372 11.8404 11.5774 13.3097 10.1678L16.1102 7.48098C17.5795 6.07131 17.6357 3.74558 16.2357 2.28633C14.8356 0.827073 12.5096 0.786878 11.0403 2.19655L10.1129 3.08631",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})})),Yee={borderRadius:{modal:"16px",optInButton:"3px"},fontWeight:{channelNameText:500,notificationTitleText:500,notificationContentText:400,timestamp:500,optInButtonText:500},fontSize:{channelNameText:"14px",notificationTitleText:"16px",notificationContentText:"14px",timestamp:"10px",optInButtonText:"12px"},fontFamily:"inherit"},Zee=Object.assign(Object.assign({},Yee),{color:{contentHoverBackground:"#e8eaf680",accentBackground:"#fff",channelNameText:"#17181B",notificationTitleText:"#17181B",notificationContentText:"#313338",timestamp:"#8C93A0",optInButtonText:"#fff",optInButtonBackground:"#D548EC",modalBorder:"#C4CBD5"},modalDivider:"1px solid #D9D9D9"}),$ee=Object.assign(Object.assign({},Yee),{color:{contentHoverBackground:"#404650",accentBackground:"#202124",channelNameText:"#F5F6F8",notificationTitleText:"#F5F6F8",notificationContentText:"#C4CBD5",timestamp:"#757D8D",optInButtonText:"#fff",optInButtonBackground:"#D548EC",modalBorder:"#484D58"},modalDivider:"1px solid #4A4F67"}),Xee=()=>(0,n.jsxs)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M15.625 4.375L4.375 15.625",stroke:"#82828A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M15.0799 15.4442L4.375 4.375",stroke:"#82828A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})),ete=({notificationTitle:e,notificationBody:t,cta:r,app:o,icon:a,image:s,isToast:c=!1,url:u,isSpam:l,isSubscribedFn:d,subscribeFn:f,theme:h,chainName:p,customTheme:g,isSecret:m,decryptFn:y,onClose:b})=>{var v,w,A,C,E,x,S;const{notificationBody:I,timeStamp:k}=function(e){const t={notificationBody:WZ(e),timeStamp:"",originalBody:e},r=e.match(/\[timestamp:(.*?)\]/);if(r){t.timeStamp=r[1];const n=e.replace(/ *\[timestamp:[^)]*\] */g,"");t.notificationBody=WZ(n),t.originalBody=n}return t}(t||""),_=((e,t)=>Object.assign({},"dark"===e?$ee:Zee,t))(h,g),{notifTitle:T,notifBody:M,notifCta:P,notifImage:j,setDecryptedValues:D,isSecretRevealed:O}=function(e,t){const[r,n]=i.useState({notifTitle:e.notificationTitle||"",notifBody:e.parsedBody||"",notifCta:e.cta||"",notifImage:e.image||"",isSecretRevealed:!1}),o=!!t&&!(null==r?void 0:r.isSecretRevealed);return{notifTitle:r.notifTitle,notifBody:r.notifBody,notifCta:o?"":r.notifCta,notifImage:o?"":r.notifImage,isSecretRevealed:r.isSecretRevealed,setDecryptedValues:({title:e,body:t,cta:r,image:i})=>{n({notifTitle:e||"",notifBody:t||"",notifCta:r||"",notifImage:i||"",isSecretRevealed:!0})}}}({notificationTitle:e,parsedBody:I,cta:r,image:s},m),B=W6.validURL(P)&&!c,N=W6.validURL(u),[R,L]=i.useState(""),[F,U]=i.useState(!1),[z,H]=i.useState(!0),[V,K]=(()=>{const e=(0,i.useRef)(null),[t,r]=(0,i.useState)(0);return(0,i.useEffect)((()=>{const t=()=>{e.current&&r(e.current.offsetWidth)},n=setTimeout((()=>{t()}),0);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),clearTimeout(n)}}),[]),[e,t]})();return i.useEffect((()=>{l&&d&&d().then((e=>{H(Boolean(e))}))}),[d,l]),z&&l?null:(0,n.jsxs)(ute,Object.assign({timestamp:k,offsetWidth:K,ref:V,cta:B,themeObject:_},{children:[(0,n.jsxs)(lte,Object.assign({themeObject:_},{children:[(0,n.jsxs)(fte,Object.assign({themeObject:_},{children:[(0,n.jsx)(ste,Object.assign({offsetWidth:K,theme:h},{children:(0,n.jsx)("img",{style:{width:"100%",borderRadius:"8px"},src:a,title:`Channel icon for ${o}`,alt:""})})),(0,n.jsx)(dte,Object.assign({fontSize:`calc(${null===(v=null==_?void 0:_.fontSize)||void 0===v?void 0:v.channelNameText} - ${c?"2px":"0px"})`,themeObject:_,onClick:e=>{e.stopPropagation(),N&&window.open(u,"_blank")}},{children:o})),(0,n.jsx)(ite,{background:"dark"===h?"#757D8D":"#c4cbd5"}),k?(0,n.jsx)(xte,Object.assign({themeObject:_},{children:J6(k)})):null]})),(0,n.jsxs)(wte,{children:[p&&x4[p]?(0,n.jsx)(nte,{children:(0,n.jsx)(ote,Object.assign({offsetWidth:K},{children:x4[p].icon}))}):null,c&&b&&(0,n.jsx)(vte,Object.assign({onClick:b},{children:(0,n.jsx)(Xee,{})}))]})]})),(0,n.jsxs)(rte,Object.assign({isToast:c&&!!j,themeObject:_,offsetWidth:K},{children:[j&&(W6.isMediaSupportedVideo(j)?W6.isMediaYoutube(j)?(0,n.jsx)(ate,Object.assign({offsetWidth:K,size:c?"56px":"90px"},{children:(0,n.jsx)("iframe",{id:"ytplayer",width:"640",allow:"fullscreen;",height:"360",src:W6.isMediaExternalEmbed(j),title:"Youtube"})})):(0,n.jsx)(ate,Object.assign({offsetWidth:K,size:c?"56px":"90px"},{children:(0,n.jsxs)("video",Object.assign({width:"360",height:"100%",controls:!0},{children:[(0,n.jsx)("source",{src:j,type:"video/mp4"}),"Your browser does not support the video tag."]}))})):(0,n.jsx)(ate,Object.assign({theme:h,size:c?"56px":"90px",offsetWidth:K,style:{cursor:"pointer"},onClick:()=>L(j||"")},{children:(0,n.jsx)("img",{src:j,alt:""})}))),(0,n.jsxs)(cte,{children:[(0,n.jsxs)(hte,Object.assign({offsetWidth:K,themeObject:_},{children:[(0,n.jsxs)(pte,Object.assign({cta:B,onClick:B?e=>{e.stopPropagation(),B&&window.open(P,"_blank")}:void 0},{children:[(0,n.jsx)(gte,Object.assign({fontSize:`calc(${null===(w=null==_?void 0:_.fontSize)||void 0===w?void 0:w.notificationTitleText} - ${c?"2px":"0px"})`,themeObject:_},{children:T})),B?(0,n.jsx)("span",Object.assign({style:{width:`calc(16px - ${c?"2px":"0px"})`,height:`calc(16px - ${c?"2px":"0px"})`}},{children:(0,n.jsx)(Jee,{})})):""]})),(0,n.jsx)(mte,Object.assign({themeObject:_,fontSize:`calc(${null===(A=null==_?void 0:_.fontSize)||void 0===A?void 0:A.notificationContentText} - ${c?"2px":"0px"})`},{children:(0,n.jsx)(yte,Object.assign({themeObject:_,cta:B},{children:(0,n.jsx)(c4,{text:M})}))}))]})),l&&(0,n.jsx)(L7,Object.assign({height:"32px",onClick:e=>pJ(void 0,void 0,void 0,(function*(){if(e.preventDefault(),e.stopPropagation(),f)try{U(!0),yield f(),H(!0)}finally{U(!1)}})),width:"fit-content",color:null===(C=_.color)||void 0===C?void 0:C.optInButtonText,fontWeight:((null===(E=_.fontWeight)||void 0===E?void 0:E.optInButtonText)||500).toString(),fontSize:null===(x=_.fontSize)||void 0===x?void 0:x.optInButtonText,borderRadius:"8px",padding:"12px 16px",background:null===(S=_.color)||void 0===S?void 0:S.optInButtonBackground},{children:F?(0,n.jsx)($6,{}):"Subscribe"}))]}),m&&(0,n.jsx)(kte,{children:(0,n.jsx)(_te,{children:m?(0,n.jsx)(_4,{decryptFn:()=>pJ(void 0,void 0,void 0,(function*(){if(y)try{const e=yield y();e&&D(e)}catch($R){console.error($R)}})),isSecretRevealed:O}):null})})]})),m&&(0,n.jsxs)(bte,Object.assign({hidden:!m,hasLeft:!1},{children:[(0,n.jsx)(Cte,{hidden:!0}),(0,n.jsx)(Ete,Object.assign({hidden:!m},{children:m?(0,n.jsx)(Ste,{children:(0,n.jsx)(Ite,{})}):null}))]})),(0,n.jsx)(X6,{imageOverlay:R,setImageOverlay:L})]}))};ete.propTypes={notificationBody:gJ.exports.string,notificationTitle:gJ.exports.string,cta:gJ.exports.string,image:gJ.exports.string,app:gJ.exports.string,url:gJ.exports.string,isSpam:gJ.exports.bool,subscribeFn:gJ.exports.func,isSubscribedFn:gJ.exports.func,theme:gJ.exports.string,customTheme:gJ.exports.object},ete.defaultProps={notificationTitle:"",notificationBody:"",cta:"",app:"",image:"",url:"",isSpam:!1,theme:"light"};const tte="900px",rte=o.Ay.div.withConfig({displayName:"notification__ContentSection",componentId:"sc-v9nuxx-0"})(["display:flex;gap:12px;justify-content:",";flex-direction:",";align-items:flex-start;"],(e=>(null==e?void 0:e.isToast)?"space-between":"start"),(e=>(null==e?void 0:e.isToast)?"row-reverse":"row")),nte=o.Ay.div.withConfig({displayName:"notification__BlockchainContainer",componentId:"sc-v9nuxx-1"})(["display:flex;align-items:center;justify-content:center;font-weight:700;"]),ite=o.Ay.div.withConfig({displayName:"notification__Ellipse",componentId:"sc-v9nuxx-2"})(["width:4px;height:4px;background:",";border-radius:100%;"],(e=>null==e?void 0:e.background)),ote=o.Ay.div.withConfig({displayName:"notification__ChainIconSVG",componentId:"sc-v9nuxx-3"})(["width:18px;height:18px;svg,svg image,img{width:100%;height:100%;}@media (max-width:","){width:18px;height:18px;}"],tte),ate=o.Ay.div.withConfig({displayName:"notification__MobileImage",componentId:"sc-v9nuxx-4"})(["overflow:hidden;flex-shrink:0;width:",";height:",";img,iframe,video{max-width:100% !important;width:100%;height:100% !important;object-fit:fill;border-radius:100%;border:0;}"],(e=>null==e?void 0:e.size),(e=>null==e?void 0:e.size)),ste=o.Ay.div.withConfig({displayName:"notification__ImageContainer",componentId:"sc-v9nuxx-5"})(["border:1px solid #eaebf2;overflow:hidden;border-radius:8px;width:24px;height:24px;"]),cte=o.Ay.div.withConfig({displayName:"notification__NotificationDetialsWrapper",componentId:"sc-v9nuxx-6"})(["display:flex;flex-direction:column;gap:16px;"]),ute=o.Ay.div.withConfig({displayName:"notification__Container",componentId:"sc-v9nuxx-7"})(["position:relative;padding:16px;overflow:hidden;flex-direction:column;font-family:",";flex:1;display:flex;gap:8px;flex-wrap:wrap;border:",";background:",";border-radius:",";",";"],(e=>{var t;return null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.fontFamily}),(e=>{var t,r;return`1px solid ${null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.modalBorder}`}),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.accentBackground}),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.borderRadius)||void 0===r?void 0:r.modal}),(e=>{var t,r;return e.cta&&(0,o.AH)(["&:hover{background:",";}"],null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.contentHoverBackground)})),lte=o.Ay.div.withConfig({displayName:"notification__MobileHeader",componentId:"sc-v9nuxx-8"})(["display:flex;justify-content:space-between;"]),dte=o.Ay.div.withConfig({displayName:"notification__ChannelName",componentId:"sc-v9nuxx-9"})(["cursor:pointer;font-size:",";font-weight:",";color:",";"],(e=>e.fontSize),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.fontWeight)||void 0===r?void 0:r.channelNameText}),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.channelNameText})),fte=o.Ay.div.withConfig({displayName:"notification__HeaderButton",componentId:"sc-v9nuxx-10"})(["display:flex;gap:8px;align-items:center;"]),hte=o.Ay.div.withConfig({displayName:"notification__NotificationDetails",componentId:"sc-v9nuxx-11"})(["display:flex;flex-direction:column;gap:4px;@media (max-width:","){color:",";}",";",";"],"50050px",(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.notificationTitleText}),(e=>e.offsetWidth>461&&(0,o.AH)(["@media (max-width:","){margin-bottom:6px;}"],tte)),(e=>e.offsetWidth<=461&&(0,o.AH)(["margin-bottom:6px;"]))),pte=o.Ay.div.withConfig({displayName:"notification__ChannelTitleWrapper",componentId:"sc-v9nuxx-12"})(["",";cursor:pointer;align-items:center;display:flex;gap:8px;"],(e=>e.cta&&(0,o.AH)(["&:hover{color:#c742dd;span{color:#c742dd;}}"]))),gte=o.Ay.span.withConfig({displayName:"notification__ChannelTitleText",componentId:"sc-v9nuxx-13"})(["cursor:pointer;font-size:",";font-weight:",";color:",";"],(e=>null==e?void 0:e.fontSize),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.fontWeight)||void 0===r?void 0:r.notificationTitleText}),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.notificationTitleText})),mte=o.Ay.div.withConfig({displayName:"notification__ChannelDesc",componentId:"sc-v9nuxx-14"})(["line-height:20px;flex:1;display:flex;font-size:",";color:",";font-weight:",";flex-direction:column;"],(e=>null==e?void 0:e.fontSize),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.notificationContentText}),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.fontWeight)||void 0===r?void 0:r.notificationContentText})),yte=o.Ay.label.withConfig({displayName:"notification__ChannelDescLabel",componentId:"sc-v9nuxx-15"})(["cursor:",";color:",";flex:1;margin:0px;text-align:left;"],(e=>e.cta?"pointer":"default"),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.notificationContentText})),bte=o.Ay.div.withConfig({displayName:"notification__ChannelMetaInfo",componentId:"sc-v9nuxx-16"})(["display:",";flex-direction:row;justify-content:",";"],(e=>e.hidden?"none":"flex"),(e=>e.hasLeft?"space-between":"end")),vte=o.Ay.div.withConfig({displayName:"notification__CloseContainer",componentId:"sc-v9nuxx-17"})(["cursor:pointer;display:flex;"]),wte=o.Ay.div.withConfig({displayName:"notification__ChainCloseContainer",componentId:"sc-v9nuxx-18"})(["display:flex;gap:6px;align-items:center;"]),Ate=o.Ay.div.withConfig({displayName:"notification__ChannelMetaSection",componentId:"sc-v9nuxx-19"})(["display:",";align-items:center;"],(e=>e.hidden?"none":"flex")),Cte=(0,o.Ay)(Ate).withConfig({displayName:"notification__ChannelMetaInfoLeft",componentId:"sc-v9nuxx-20"})(["justify-content:start;"]),Ete=(0,o.Ay)(Ate).withConfig({displayName:"notification__ChannelMetaInfoRight",componentId:"sc-v9nuxx-21"})(["justify-content:end;"]),xte=o.Ay.label.withConfig({displayName:"notification__TimestampLabel",componentId:"sc-v9nuxx-22"})(["color:",";line-height:14px;font-weight:",";font-size:",";"],(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.timestamp}),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.fontWeight)||void 0===r?void 0:r.timestamp}),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.fontSize)||void 0===r?void 0:r.timestamp})),Ste=o.Ay.div.withConfig({displayName:"notification__SecretIconContainer",componentId:"sc-v9nuxx-23"})(["margin:6px;"]),Ite=o.Ay.div.withConfig({displayName:"notification__SecretIcon",componentId:"sc-v9nuxx-24"})(["width:12px;height:12px;border-radius:50%;background:linear-gradient(135deg,#e20880 12.5%,#674c9f 49.89%,#35c5f3 87.5%);"]),kte=o.Ay.div.withConfig({displayName:"notification__ButtonGroupContainer",componentId:"sc-v9nuxx-25"})(["display:flex;align-items:center;justify-content:flex-end;"]),_te=o.Ay.div.withConfig({displayName:"notification__ButtonGroup",componentId:"sc-v9nuxx-26"})(["display:flex;gap:20px;"]),Tte=[{text:"Push Browser Extension",link:"https://chrome.google.com/webstore/detail/epns-protocol-alpha/lbdcbpaldalgiieffakjhiccoeebchmg",img:"https://backend-kovan.epns.io/assets/googlechromeicon.png"},{text:"Push App (iOS)",link:"https://apps.apple.com/app/ethereum-push-service-epns/id1528614910",img:"https://backend-kovan.epns.io/assets/apple.png"},{text:"Push App (Android)",link:"https://play.google.com/store/apps/details?id=io.epns.epns",img:"https://backend-kovan.epns.io/assets/playstorecolor@3x.png"},{text:"Visit our dApp",link:"https://app.push.org/",img:"https://backend-kovan.epns.io/assets/dappcolor@3x.png"}],Mte=({onClose:e})=>{const t=i.useRef(null);return H9(t,e),(0,n.jsx)(Lte,Object.assign({className:"overlay"},{children:(0,n.jsxs)(Fte,Object.assign({className:"modal",ref:t},{children:[(0,n.jsx)(Pte,{onClick:e}),(0,n.jsxs)(Ote,Object.assign({className:"modal__heading"},{children:[(0,n.jsxs)(Dte,{children:[(0,n.jsx)(Bte,{children:"Receive"}),(0,n.jsx)(Nte,{children:"Notifications"})]}),(0,n.jsxs)(Rte,{children:["Receive notifications from ",(0,n.jsx)("b",{children:"Push"})," via the following platforms."]})]})),(0,n.jsx)(Ote,Object.assign({className:"modal__content"},{children:Tte.map((e=>(0,n.jsxs)(jte,Object.assign({onClick:()=>{var t;(t=e.link)&&window.open(t,"_blank")}},{children:[(0,n.jsx)("img",{src:e.img,alt:""}),e.text]}),e.link)))}))]}))}))},Pte=o.Ay.a.withConfig({displayName:"subscribemodal__CloseButton",componentId:"sc-1gg76ik-0"})(['position:absolute;right:10px;top:37px;width:40px;height:40px;opacity:0.3;cursor:pointer;&:hover{opacity:1;}&:before,&:after{position:absolute;content:" ";height:33px;width:2px;background-color:#333;}&:before{transform:rotate(45deg);}&:after{transform:rotate(-45deg);}']),jte=o.Ay.div.withConfig({displayName:"subscribemodal__ItemLink",componentId:"sc-1gg76ik-1"})(["width:260px;height:62px;padding-left:22px;background:#fafafa;border:0.2px solid rgba(0,0,0,0.16);box-sizing:border-box;border-radius:5px;font-size:0.75em;text-transform:uppercase;display:flex;align-items:center;gap:1.3125em;cursor:pointer;transition:300ms;&:hover{box-shadow:0px 4px 4px rgba(0,0,0,0.25);}"]),Dte=o.Ay.h2.withConfig({displayName:"subscribemodal__CustomHeaderTwo",componentId:"sc-1gg76ik-2"})(["margin-top:0;margin-bottom:1em;color:rgb(0,0,0);font-weight:600;font-size:1.5625em;letter-spacing:0.1em;text-transform:uppercase;padding:0px;font-family:inherit;text-align:inherit;@media (max-width:1000px){font-size:1.2625em;}"]),Ote=o.Ay.div.withConfig({displayName:"subscribemodal__Item",componentId:"sc-1gg76ik-3"})(["display:flex;flex-direction:column;text-transform:capitalise;&.modal__heading{margin-bottom:3.3125rem;}&.modal__content{display:grid;grid-template-columns:50% 50%;grid-row-gap:3.3125em;}"]),Bte=o.Ay.span.withConfig({displayName:"subscribemodal__CustomSpan",componentId:"sc-1gg76ik-4"})(["flex:initial;align-self:auto;color:rgb(0,0,0);background:transparent;font-weight:400;font-size:inherit;text-transform:inherit;margin:0px;padding:0px;letter-spacing:inherit;text-align:initial;position:initial;inset:auto;z-index:auto;margin-right:10px;@media (max-width:600px){display:block;margin-bottom:7px;}"]),Nte=(0,o.Ay)(Bte).withConfig({displayName:"subscribemodal__StyledSpan",componentId:"sc-1gg76ik-5"})(["background:rgb(226,8,128);color:#fff;font-weight:600;padding:3px 8px;@media (max-width:600px){display:inline;}"]),Rte=o.Ay.h3.withConfig({displayName:"subscribemodal__H3",componentId:"sc-1gg76ik-6"})(['color:rgb(0 0 0 / 0.5);font-weight:300;font-size:1em;text-transform:uppercase;margin:-15px 0px 20px 0px;padding:0px;letter-spacing:0.1em;font-family:"Source Sans Pro",Helvetica,sans-serif;text-align:inherit;max-width:initial;@media (max-width:600px){margin-top:0;margin-bottom:-7px;}@media (max-width:1000px){width:90%;}']),Lte=o.Ay.div.withConfig({displayName:"subscribemodal__Overlay",componentId:"sc-1gg76ik-7"})(["top:0;left:0;right:0;background:rgba(0,0,0,0.85);height:100%;width:100%;z-index:1000;position:fixed;display:flex;justify-content:center;align-items:center;overflow-y:scroll;"]),Fte=o.Ay.div.withConfig({displayName:"subscribemodal__Modal",componentId:"sc-1gg76ik-8"})(["padding:3.875em;background:white;text-align:left;border:1px solid rgba(0,0,0,0.16);box-sizing:border-box;box-shadow:0px 4px 4px rgba(0,0,0,0.25);border-radius:15px;position:relative;& > img{position:absolute;right:40px;top:40px;cursor:pointer;}@media (max-width:1000px){width:max(70vw,350px);padding:2em;.modal__content{display:flex !important;flex-direction:column !important;align-items:center !important;gap:10px !important;}}"]),Ute={titleBg:"linear-gradient(87.17deg, #EA4EE4 0%, #D23CDF 0.01%, #8B5CF6 100%)",titleTextColor:"#fff",bgColorPrimary:"#fff",bgColorSecondary:"#EDE9FE",textColorPrimary:"#000",textColorSecondary:"#71717A",textGradient:"linear-gradient(45deg, #B6A0F5, #F46EF6, #FFDED3, #FFCFC5)",btnColorPrimary:"#8B5CF6",btnOutline:"#8B5CF6",borderColor:"#DCDCDF",borderRadius:"17px",containerBorderRadius:"12px",statusColorError:"#E93636",statusColorSuccess:"#30CC8B",iconColorPrimary:"#82828A"},zte=(0,i.createContext)(Ute),Hte=()=>{const e=i.useContext(zte);return(0,n.jsx)(o.NP,Object.assign({theme:e},{children:(0,n.jsxs)(Vte,{children:[(0,n.jsxs)(Kte,{children:[(0,n.jsx)(Gte,{}),(0,n.jsxs)(qte,{children:[(0,n.jsx)(Wte,{}),(0,n.jsx)(Jte,{})]})]}),(0,n.jsx)(Yte,{}),(0,n.jsxs)(Zte,{children:[(0,n.jsx)($te,{}),(0,n.jsxs)(Xte,{children:[(0,n.jsx)(ere,{}),(0,n.jsx)(ere,{}),(0,n.jsx)(ere,{})]})]})]})}))},Vte=o.Ay.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonContainer",componentId:"sc-qo65s5-0"})(["display:flex;flex-direction:column;gap:24px;padding:16px;background-color:",";border-radius:17px;border:1px solid ",";;position:relative;width:inherit;&:after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:17px;background-color:",";opacity:0.5;transition:opacity 0.8s ease-in-out infinite alternate;}&:hover:after{opacity:0.3;}"],(e=>e.theme.bgColorPrimary),(e=>e.theme.borderColor),(e=>e.theme.bgColorPrimary)),Kte=o.Ay.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonContent",componentId:"sc-qo65s5-1"})(["display:flex;align-items:center;gap:10px;"]),Gte=o.Ay.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonProfilePic",componentId:"sc-qo65s5-2"})(["width:48px;height:48px;border-radius:50%;border:1px solid ",";background-color:",";transition:opacity 0.8s ease-in-out infinite alternate;&:hover{opacity:0.5;}"],(e=>e.theme.borderColor),(e=>e.theme.iconColorPrimary)),qte=o.Ay.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonProfileInfo",componentId:"sc-qo65s5-3"})(["display:flex;flex-direction:column;gap:5px;width:100%;"]),Qte=o.Ay.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonText",componentId:"sc-qo65s5-4"})(["width:100%;height:18px;background-color:",";border-radius:8px;border:1px solid ",";transition:opacity 0.8s ease-in-out infinite alternate;&:hover{opacity:0.5;}"],(e=>e.theme.iconColorPrimary),(e=>e.theme.borderColor)),Wte=(0,o.Ay)(Qte).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonName",componentId:"sc-qo65s5-5"})(["width:30%;"]),Jte=(0,o.Ay)(Qte).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonHandle",componentId:"sc-qo65s5-6"})(["width:40%;"]),Yte=(0,o.Ay)(Qte).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonSpaceInfo",componentId:"sc-qo65s5-7"})(["width:100%;height:30px;"]),Zte=o.Ay.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonLine",componentId:"sc-qo65s5-8"})(["display:flex;align-items:center;width:100%;"]),$te=(0,o.Ay)(Qte).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonLeftSquare",componentId:"sc-qo65s5-9"})(["width:10%;height:32px;"]),Xte=o.Ay.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonOverlap",componentId:"sc-qo65s5-10"})(["display:flex;align-items:flex-start;justify-content:right;width:100%;margin-top:8px;"]),ere=(0,o.Ay)(Gte).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonOverlapProfilePic",componentId:"sc-qo65s5-11"})(["height:48px;border:1px solid ",";margin-left:-24px;transition:opacity 0.8s ease-in-out infinite alternate;&:nth-child(2){margin-left:-24px;}&:nth-child(3){margin-left:-24px;}"],(e=>e.theme.borderColor));function tre(e){const t=new Date(e),r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()],n=t.getDate(),i=["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()],o=t.getHours()>=12?"PM":"AM";return`${r}, ${n} ${i} at ${"PM"===o?t.getHours()%12:t.getHours()}:${t.getMinutes()} ${o}`}const rre=({participants:e,orientation:t,imageHeight:r})=>(0,n.jsxs)(nre,{children:[(0,n.jsx)(ire,Object.assign({orientation:t},{children:"pill"===t?e&&e.map(((e,t)=>t<2&&(0,n.jsx)(ore,{src:null==e?void 0:e.image,alt:"avatar",className:`index${t}`}))):e&&e.map(((e,t)=>t<3&&(0,n.jsx)(ore,{src:null==e?void 0:e.image,alt:"avatar",className:`index${t}`})))})),(0,n.jsx)(are,{children:e&&e.length-3>0?"+"+(e.length-3):null})]}),nre=o.Ay.div.withConfig({displayName:"ParticipantContainer__Participants",componentId:"sc-1fgkl2u-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;}"]),ire=o.Ay.div.withConfig({displayName:"ParticipantContainer__ParticipantsIconContainer",componentId:"sc-1fgkl2u-1"})(["display:grid;grid-template-columns:repeat(5,1fr);width:",";padding:0 4px;}"],(e=>"pill"===e.orientation?"46.5px":"62px")),ore=o.Ay.img.withConfig({displayName:"ParticipantContainer__ParticipantsIcon",componentId:"sc-1fgkl2u-2"})(["height:",";border-radius:50%;&.index0{position:relative;top:0;left:0;}&.index1{position:relative;top:0;left:-50%;}&.index2{position:relative;top:0;left:-100%;}}"],(e=>e.imageHeight?e.imageHeight:"31px")),are=o.Ay.div.withConfig({displayName:"ParticipantContainer__ParticipantsText",componentId:"sc-1fgkl2u-3"})(["display:flex;justify-content:center;align-items:center;width:auto;}"]),sre=({name:e="Host Name",handle:t="Host Handle",imageUrl:r="",statusTheme:a,imageHeight:s})=>{const c=i.useContext(zte);return(0,n.jsx)(o.NP,Object.assign({theme:c},{children:(0,n.jsxs)(cre,Object.assign({theme:c},{children:[(0,n.jsx)(ure,Object.assign({theme:c},{children:(0,n.jsx)(lre,{src:r,alt:"host pfp",imageHeight:s,theme:c})})),(0,n.jsxs)(dre,Object.assign({theme:c},{children:[(0,n.jsxs)(fre,Object.assign({theme:c},{children:[(0,n.jsx)(hre,Object.assign({theme:c},{children:e})),(0,n.jsx)(pre,Object.assign({statusTheme:a,theme:c},{children:"Host"}))]})),t&&(0,n.jsxs)(gre,Object.assign({statusTheme:a,theme:c},{children:["@",t]}))]}))]}))}))},cre=o.Ay.div.withConfig({displayName:"HostPfpContainer__ProfileContainer",componentId:"sc-vviclm-0"})(["display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center;"]),ure=o.Ay.div.withConfig({displayName:"HostPfpContainer__PfpContainer",componentId:"sc-vviclm-1"})(["display:flex;"]),lre=o.Ay.img.withConfig({displayName:"HostPfpContainer__Pfp",componentId:"sc-vviclm-2"})(["height:",";width:",";border-radius:50%;"],(e=>{var t;return null!==(t=e.imageHeight)&&void 0!==t?t:"32px"}),(e=>{var t;return null!==(t=e.imageHeight)&&void 0!==t?t:"32px"})),dre=o.Ay.div.withConfig({displayName:"HostPfpContainer__HostContainer",componentId:"sc-vviclm-3"})(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-left:8px;width:100%;overflow:hidden;text-overflow:ellipsis;"]),fre=o.Ay.div.withConfig({displayName:"HostPfpContainer__HostName",componentId:"sc-vviclm-4"})(["display:flex;flex-direction:row;font-weight:600;font-size:15px;width:100%;"]),hre=o.Ay.span.withConfig({displayName:"HostPfpContainer__Name",componentId:"sc-vviclm-5"})(["text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:color:",";"],(e=>"Live"===e.statusTheme?`${e.theme.titleTextColor}`:`${e.theme.textColorPrimary}`)),pre=o.Ay.div.withConfig({displayName:"HostPfpContainer__Host",componentId:"sc-vviclm-6"})(["display:flex;flex-direction:row;align-items:center;padding:2px 8px;margin-left:8px;line-height:18px;width:max-content;height:19px;background:",";color:",";border-radius:6px;font-weight:500;font-size:10px;"],(e=>(e.statusTheme,`${e.theme.btnOutline}`)),(e=>"Live"===e.statusTheme?"inherit":`${e.theme.bgColorSecondary}`)),gre=o.Ay.div.withConfig({displayName:"HostPfpContainer__HostHandle",componentId:"sc-vviclm-7"})(["color:",";padding:0;font-weight:450;font-size:14px;line-height:130%;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;"],(e=>"Live"===e.statusTheme?`${e.theme.titleTextColor}`:`${e.theme.textColorSecondary}`));var mre="data:image/svg+xml,%3csvg width='23' height='23' viewBox='0 0 23 23' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_11578_40259)'%3e%3cpath d='M6.5 9.08984V13.0898' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.5 4.08984V18.0898' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M14.5 6.58984L14.5 15.5898' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M18.5 9.08984L18.5 13.0898' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_11578_40259'%3e%3crect width='22' height='23' fill='white' transform='translate(0.5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";const yre=({color:e})=>(0,n.jsxs)("svg",Object.assign({width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M16.25 3.625H3.75C3.40482 3.625 3.125 3.90482 3.125 4.25V16.75C3.125 17.0952 3.40482 17.375 3.75 17.375H16.25C16.5952 17.375 16.875 17.0952 16.875 16.75V4.25C16.875 3.90482 16.5952 3.625 16.25 3.625Z",stroke:null!=e?e:"#8B5CF6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M13.75 2.375V4.875",stroke:null!=e?e:"#8B5CF6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M6.25 2.375V4.875",stroke:null!=e?e:"#8B5CF6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M3.125 7.375H16.875",stroke:null!=e?e:"#8B5CF6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})),bre=({spaceId:e,orientation:t,isInvite:r,onBannerClick:a,actionCallback:s})=>{const c=i.useContext(zte),u=(e=>{const{getSpaceInfo:t,setSpaceInfo:r,env:n}=(0,i.useContext)(l5),[o,a]=(0,i.useState)(t(e));return(0,i.useEffect)((()=>{e&&(t(e)?a(t(e)):pJ(void 0,void 0,void 0,(function*(){try{const t=yield _.space.get({spaceId:e,env:n});r(e,t),a(t)}catch(ys){console.error(ys)}})))}),[e]),o})(e),{spacesObjectRef:l,spaceObjectData:d,initSpaceObject:f,setSpaceWidgetId:h,isSpeaker:p,isListener:g,account:m,env:y}=M9(),b="ACTIVE"===(v=null==u?void 0:u.status)?"Live":"PENDING"===v?"Scheduled":"Ended";var v;return u?(0,n.jsx)(o.NP,Object.assign({theme:c},{children:(0,n.jsxs)(vre,Object.assign({orientation:t,status:b,theme:c,onClick:()=>{a&&a((null==u?void 0:u.spaceId)||"")},clickable:Boolean(a)},{children:["maximized"===t&&(0,n.jsx)(sre,{name:null==u?void 0:u.members[0].wallet.slice(7),statusTheme:b,imageHeight:"48px",imageUrl:null==u?void 0:u.members[0].image,handle:null==u?void 0:u.members[0].wallet.slice(7)}),"maximized"===t?null:"Live"===b?(0,n.jsx)(Ere,{src:mre,alt:"status"}):(0,n.jsx)(yre,{color:c.btnOutline}),(0,n.jsx)(wre,Object.assign({orientation:t,theme:c,status:b},{children:"pill"===t?`${null==u?void 0:u.spaceName.slice(0,20)}...`:null==u?void 0:u.spaceName})),(0,n.jsxs)(Are,Object.assign({orientation:t,theme:c},{children:[(0,n.jsxs)(Cre,Object.assign({orientation:t},{children:["Live"===b?(0,n.jsx)(Ere,{src:mre,alt:"status"}):(0,n.jsx)(yre,{color:c.btnOutline}),(0,n.jsx)(xre,Object.assign({status:b},{children:"Live"===b?"Live":"Scheduled"===b?`${tre(null==u?void 0:u.scheduleAt)}`:"Ended"}))]})),(0,n.jsx)(rre,{participants:null==u?void 0:u.pendingMembers,orientation:t})]})),!0===r&&"Live"===b?(0,n.jsx)(Sre,Object.assign({status:"Live",onClick:()=>pJ(void 0,void 0,void 0,(function*(){yield f(null==u?void 0:u.spaceId),s(),h(null==u?void 0:u.spaceId)}))},{children:"Join this space"})):!0===r&&"Scheduled"===b?(0,n.jsx)(n.Fragment,{}):null]}))})):(0,n.jsx)(Hte,{})},vre=o.Ay.div.withConfig({displayName:"SpaceBanner__Container",componentId:"sc-qqsw1n-0"})(["display:flex;flex-direction:",";justify-content:",";align-items:",";padding:",";gap:",";width:",";height:",";background:",";border-radius:",";color:",";min-width:0;text-overflow:ellipsis;overflow:hidden;cursor:",";"],(e=>"maximized"===e.orientation?"column":"row"),(e=>(e.orientation,"space-between")),(e=>"maximized"===e.orientation?"flex-start":"center"),(e=>"maximized"===e.orientation?"16px":"minimized"===e.orientation?"0 20px":"0 11px"),(e=>"maximized"===e.orientation?"16px":"8px"),(e=>"maximized"===e.orientation||"minimized"===e.orientation?"inherit":"fit-content"),(e=>"maximized"===e.orientation?"auto":"minimized"===e.orientation?"40px":"63px"),(e=>"Live"===e.status?e.theme.titleBg:e.theme.bgColorSecondary),(e=>"maximized"===e.orientation?"17px":"minimized"===e.orientation?"12px":"24px"),(e=>"Live"===e.status?`${e.theme.titleTextColor}`:`${e.theme.textColorPrimary}`),(e=>e.clickable&&"pointer")),wre=o.Ay.div.withConfig({displayName:"SpaceBanner__Title",componentId:"sc-qqsw1n-1"})(["display:flex;flex-direction:row;justify-content:flex-start;align-items:center;font-family:Strawford;font-weight:",";font-size:",";line-height:130%;color:",";width:90%;line-clamp:",";@media (max-width:425px){width:95%;}"],(e=>"maximized"===e.orientation?"700":"500"),(e=>"maximized"===e.orientation?"20px":"minimized"===e.orientation?"16px":"12px"),(e=>"Live"===e.status?e.theme.titleTextColor:e.theme.textColorPrimary),(e=>"maximized"===e.orientation?"3":"2")),Are=o.Ay.div.withConfig({displayName:"SpaceBanner__Status",componentId:"sc-qqsw1n-2"})(["display:flex;flex-direction:row;width:",";justify-content:space-between;align-items:center;"],(e=>"maximized"===e.orientation?"100%":"fit-content")),Cre=o.Ay.div.withConfig({displayName:"SpaceBanner__Time",componentId:"sc-qqsw1n-3"})(["display:",";flex-direction:row;justify-content:center;align-items:center;"],(e=>"maximized"===e.orientation?"flex":"none")),Ere=o.Ay.img.withConfig({displayName:"SpaceBanner__Icon",componentId:"sc-qqsw1n-4"})(["height:24px;width:24px;padding:0 11px 0 0;align-self:center;"]),xre=o.Ay.div.withConfig({displayName:"SpaceBanner__TimeText",componentId:"sc-qqsw1n-5"})(["font-weight:500;font-size:14px;line-height:150%;color:",";"],(e=>"Live"===e.status?`${e.theme.titleTextColor}`:`${e.theme.textColorSecondary}`)),Sre=o.Ay.button.withConfig({displayName:"SpaceBanner__InviteButton",componentId:"sc-qqsw1n-6"})(["display:flex;justify-content:center;align-items:center;height:36px;width:100%;color:",";border-radius:8px;border:",";background:transparent;cursor:pointer;"],(e=>"Live"===e.status?`${e.theme.titleTextColor}`:`${e.theme.btnColorPrimary}`),(e=>"Live"===e.status?`1px solid ${e.theme.titleTextColor}`:`1px solid ${e.theme.btnColorPrimary}`)),Ire=({videoCallData:e})=>{const t=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(!(null==t?void 0:t.current))return;const r=t.current;r.srcObject=e,r.play()}),[null==t?void 0:t.current,e]),(0,n.jsx)(kre,{ref:t})},kre=o.Ay.video.withConfig({displayName:"VideoPlayer__Video",componentId:"sc-h46doi-0"})(["height:0;width:0;"]);var _re="data:image/svg+xml,%3csvg width='13' height='12' viewBox='0 0 13 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_11746_42664)'%3e%3cpath d='M8.3758 3.5625C8.3758 3.31386 8.47457 3.0754 8.65039 2.89959C8.8262 2.72377 9.06466 2.625 9.3133 2.625C9.56194 2.625 9.8004 2.72377 9.97621 2.89959C10.152 3.0754 10.2508 3.31386 10.2508 3.5625V7.125C10.2508 7.61746 10.1538 8.10509 9.96535 8.56006C9.77689 9.01503 9.50067 9.42843 9.15245 9.77665C8.80423 10.1249 8.39083 10.4011 7.93586 10.5895C7.48089 10.778 6.99326 10.875 6.5008 10.875C4.42986 10.875 3.65314 9.8775 2.12642 6.65625C2.00406 6.44104 1.9718 6.18617 2.03666 5.94725C2.10152 5.70834 2.25825 5.50478 2.47265 5.38099C2.68704 5.25721 2.9417 5.22325 3.18103 5.28653C3.42037 5.3498 3.62497 5.50518 3.75017 5.71875L4.6258 7.125V2.8125C4.6258 2.56386 4.72457 2.3254 4.90039 2.14959C5.0762 1.97377 5.31466 1.875 5.5633 1.875C5.81194 1.875 6.0504 1.97377 6.22621 2.14959C6.40203 2.3254 6.5008 2.56386 6.5008 2.8125' stroke='%238B5CF6' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6.5 5.625V2.0625C6.5 1.81386 6.59877 1.5754 6.77459 1.39959C6.9504 1.22377 7.18886 1.125 7.4375 1.125C7.68614 1.125 7.9246 1.22377 8.10041 1.39959C8.27623 1.5754 8.375 1.81386 8.375 2.0625V5.625' stroke='%238B5CF6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_11746_42664'%3e%3crect width='12' height='12' fill='white' transform='translate(0.5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Tre="data:image/svg+xml,%3csvg width='16' height='22' viewBox='0 0 16 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 4.75C12 2.67893 10.3211 1 8.25 1C6.17893 1 4.5 2.67893 4.5 4.75V10.75C4.5 12.8211 6.17893 14.5 8.25 14.5C10.3211 14.5 12 12.8211 12 10.75V4.75Z' stroke='%238B5CF6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8.25 17.5V20.5' stroke='%238B5CF6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M15 10.75C15 12.5402 14.2888 14.2571 13.023 15.523C11.7571 16.7888 10.0402 17.5 8.25 17.5C6.45979 17.5 4.7429 16.7888 3.47703 15.523C2.21116 14.2571 1.5 12.5402 1.5 10.75' stroke='%238B5CF6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Mre=e=>{const t=i.useContext(zte),{wallet:r,isHost:a,isSpeaker:s,image:c,requested:u=!1,mic:l=null,stream:d}=e||{},[f,h]=(0,i.useState)(!1),p=(0,i.useRef)(null);return(0,i.useEffect)((()=>{const e=e=>{p.current&&!p.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(e5,Object.assign({display:"flex",flexDirection:"column",alignItems:"center",width:"118px"},{children:[(0,n.jsx)(n5,{src:c,alt:"Profile pic",height:"56px",width:"56px",borderRadius:"50%",cursor:"pointer",onClick:()=>{h(!f)}}),(0,n.jsxs)(a5,Object.assign({fontSize:"16px",marginTop:"12px",fontWeight:600,color:`${t.textColorPrimary}`},{children:[r.replace("eip155:","").slice(0,-36)+"...",d&&(0,n.jsx)(Ire,{videoCallData:d})]})),u?(0,n.jsxs)(e5,Object.assign({display:"flex",marginTop:"5px",fontWeight:600,gap:"4px",alignItems:"center"},{children:[(0,n.jsx)(a5,Object.assign({fontSize:"12px",color:`${t.btnColorPrimary}`},{children:"Requested"})),(0,n.jsx)(n5,{src:_re,alt:"Hand Icon",height:"15px",width:"15px"})]})):(0,n.jsxs)(e5,Object.assign({display:"flex",marginTop:"5px",fontWeight:600,gap:"4px",alignItems:"center"},{children:[(0,n.jsx)(a5,Object.assign({fontSize:"14px",color:`${t.textColorSecondary}`},{children:a?"Host":s?"Speaker":"Listener"})),!1===l&&(0,n.jsx)(n5,{src:"data:image/svg+xml,%3csvg width='12' height='14' viewBox='0 0 12 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.3701 12.1637L1.37013 1.16369C1.32622 1.1142 1.27292 1.07391 1.21333 1.04516C1.15373 1.01642 1.08902 0.999783 1.02295 0.996229C0.956884 0.992675 0.890766 1.00227 0.828431 1.02446C0.766097 1.04664 0.708786 1.08098 0.65982 1.12548C0.610854 1.16998 0.571207 1.22376 0.543177 1.28369C0.515147 1.34363 0.499292 1.40853 0.49653 1.47463C0.493768 1.54074 0.504154 1.60674 0.527087 1.66881C0.550019 1.73087 0.585042 1.78776 0.630126 1.83619L3.00013 4.44307V6.99994C3.0002 7.53837 3.14517 8.06686 3.41985 8.52996C3.69452 8.99306 4.08877 9.3737 4.56122 9.63195C5.03368 9.8902 5.56693 10.0165 6.10503 9.99771C6.64313 9.97888 7.16625 9.81558 7.6195 9.52494L8.2995 10.2749C7.70016 10.696 6.99672 10.9444 6.26589 10.9931C5.53505 11.0417 4.80489 10.8888 4.15501 10.5509C3.50514 10.213 2.96051 9.70323 2.58052 9.07706C2.20053 8.45088 1.99977 7.7324 2.00013 6.99994C2.00013 6.86734 1.94745 6.74016 1.85368 6.64639C1.75991 6.55262 1.63273 6.49994 1.50013 6.49994C1.36752 6.49994 1.24034 6.55262 1.14657 6.64639C1.0528 6.74016 1.00013 6.86734 1.00013 6.99994C1.00165 8.23903 1.46258 9.43354 2.29378 10.3525C3.12498 11.2714 4.2674 11.8495 5.50013 11.9749V13.4999C5.50013 13.6326 5.5528 13.7597 5.64657 13.8535C5.74034 13.9473 5.86752 13.9999 6.00013 13.9999C6.13273 13.9999 6.25991 13.9473 6.35368 13.8535C6.44745 13.7597 6.50013 13.6326 6.50013 13.4999V11.9743C7.39687 11.8851 8.25265 11.5544 8.97638 11.0174L10.6301 12.8362C10.674 12.8857 10.7273 12.926 10.7869 12.9547C10.8465 12.9835 10.9112 13.0001 10.9773 13.0037C11.0434 13.0072 11.1095 12.9976 11.1718 12.9754C11.2342 12.9532 11.2915 12.9189 11.3404 12.8744C11.3894 12.8299 11.429 12.7761 11.4571 12.7162C11.4851 12.6563 11.501 12.5914 11.5037 12.5253C11.5065 12.4591 11.4961 12.3931 11.4732 12.3311C11.4502 12.269 11.4152 12.2121 11.3701 12.1637ZM6.00013 8.99994C5.46969 8.99994 4.96099 8.78923 4.58591 8.41416C4.21084 8.03908 4.00013 7.53038 4.00013 6.99994V5.54307L6.93263 8.76932C6.64514 8.92081 6.32508 8.99996 6.00013 8.99994ZM3.44763 1.42369C3.79063 0.868277 4.30543 0.439895 4.91393 0.203542C5.52243 -0.0328107 6.19142 -0.0642356 6.8194 0.114035C7.44737 0.292306 8.00007 0.670544 8.39362 1.19136C8.78718 1.71218 9.00011 2.34715 9.00013 2.99994V6.77682C9.00013 6.90943 8.94745 7.0366 8.85368 7.13037C8.75991 7.22414 8.63273 7.27682 8.50013 7.27682C8.36752 7.27682 8.24034 7.22414 8.14657 7.13037C8.0528 7.0366 8.00013 6.90943 8.00013 6.77682V2.99994C8.00037 2.56452 7.8585 2.14091 7.59607 1.79345C7.33364 1.44599 6.96498 1.19367 6.54609 1.0748C6.1272 0.955937 5.68097 0.977024 5.27515 1.13486C4.86934 1.2927 4.52612 1.57866 4.29763 1.94932C4.26433 2.00761 4.21964 2.0586 4.16622 2.09925C4.1128 2.1399 4.05174 2.16938 3.98668 2.18593C3.92162 2.20247 3.85389 2.20575 3.78754 2.19555C3.72119 2.18536 3.65757 2.16192 3.60047 2.12661C3.54338 2.0913 3.49398 2.04486 3.45522 1.99005C3.41646 1.93524 3.38913 1.87319 3.37486 1.80759C3.3606 1.74199 3.35969 1.6742 3.37219 1.60824C3.38469 1.54228 3.41035 1.47952 3.44763 1.42369ZM9.72763 8.45432C9.90853 7.99081 10.001 7.4975 10.0001 6.99994C10.0001 6.86734 10.0528 6.74016 10.1466 6.64639C10.2403 6.55262 10.3675 6.49994 10.5001 6.49994C10.6327 6.49994 10.7599 6.55262 10.8537 6.64639C10.9474 6.74016 11.0001 6.86734 11.0001 6.99994C11.001 7.62199 10.8853 8.23868 10.6589 8.81807C10.636 8.88057 10.6009 8.93788 10.5555 8.98663C10.5102 9.03538 10.4556 9.07459 10.3949 9.10196C10.3343 9.12932 10.2687 9.1443 10.2022 9.14601C10.1356 9.14772 10.0694 9.13613 10.0074 9.11191C9.94543 9.08769 9.88889 9.05134 9.84113 9.00498C9.79336 8.95862 9.75533 8.90319 9.72927 8.84194C9.70321 8.78069 9.68964 8.71486 9.68936 8.6483C9.68907 8.58173 9.70208 8.51579 9.72763 8.45432Z' fill='%23E93636'/%3e%3c/svg%3e",alt:"Mic Off Icon",height:"15px",width:"15px"}),l&&(0,n.jsx)(n5,{src:Tre,alt:"Mic On Icon",height:"15px",width:"15px"})]}))]}))}))},Pre=({children:e,clickawayClose:t,width:r})=>{const o=(0,i.useRef)(null),a=(0,i.useContext)(zte);return H9(o,(()=>{t&&t()})),(0,n.jsx)(Ore,Object.assign({ref:o,width:r,theme:a},{children:e}))},jre=({clickawayClose:e,children:t,width:r})=>{const o=(0,i.useContext)(zte);return(0,n.jsx)(Dre,Object.assign({theme:o},{children:e?(0,n.jsx)(Pre,Object.assign({clickawayClose:e,width:r},{children:t})):(0,n.jsx)(Ore,Object.assign({width:r,theme:o},{children:t}))}))},Dre=o.Ay.div.withConfig({displayName:"Modal__ModalOverlay",componentId:"sc-1q8t9j6-0"})(["position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.4);display:flex;color:",";justify-content:center;align-items:center;z-index:10;"],(e=>{var t;return null!==(t=e.theme.textColorPrimary)&&void 0!==t?t:"#000"})),Ore=o.Ay.div.withConfig({displayName:"Modal__ModalParent",componentId:"sc-1q8t9j6-1"})(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;padding:24px 20px;background:",";border-radius:12px;width:",";"],(e=>e.theme.bgColorPrimary),(e=>e.width?e.width:"auto")),Bre=({stroke:e,height:t,width:r})=>(0,n.jsxs)("svg",Object.assign({width:r||"18.6",height:t||"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer"},{children:[(0,n.jsx)("path",{d:"M14.1906 4.15625L3.97363 14.8438",stroke:e||"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M14.1906 14.8438L3.97363 4.15625",stroke:e||"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})),Nre=()=>(0,n.jsxs)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M16.875 10H3.125",stroke:"#82828A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M8.75 4.375L3.125 10L8.75 15.625",stroke:"#82828A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})),Rre=e=>{const t=(0,i.useContext)(zte);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(Lre,{children:[e.backCallback?(0,n.jsx)(Fre,Object.assign({onClick:e.backCallback},{children:(0,n.jsx)(Nre,{})})):null,(0,n.jsxs)(zre,{children:[e.heading,e.headingBadgeNumber&&(0,n.jsx)(Hre,Object.assign({theme:t},{children:e.headingBadgeNumber}))]}),e.closeCallback?(0,n.jsx)(Ure,Object.assign({onClick:e.closeCallback},{children:(0,n.jsx)(Bre,{})})):null]})}))},Lre=o.Ay.div.withConfig({displayName:"ModalHeader__Header",componentId:"sc-1ibnxvs-0"})(["display:flex;align-items:center;width:100%;margin-bottom:24px;color:",";"],(e=>e.theme.textColorPrimary)),Fre=o.Ay.button.withConfig({displayName:"ModalHeader__BackBtn",componentId:"sc-1ibnxvs-1"})(["position:absolute;top:0;left:0;margin:1.5rem;border:none;background:transparent;&:hover{cursor:pointer;}"]),Ure=o.Ay.button.withConfig({displayName:"ModalHeader__CloseBtn",componentId:"sc-1ibnxvs-2"})(["position:absolute;top:0;right:0;margin:1.5rem;border:none;background:transparent;&:hover{cursor:pointer;}"]),zre=o.Ay.div.withConfig({displayName:"ModalHeader__CenterText",componentId:"sc-1ibnxvs-3"})(["position:absolute;top:0;left:50%;transform:translateX(-50%);margin:1.5rem 0;display:flex;flex-direction:row;align-items:center;font-weight:500;"]),Hre=o.Ay.div.withConfig({displayName:"ModalHeader__NumberBadge",componentId:"sc-1ibnxvs-4"})(["display:flex;justify-content:center;align-items:center;background:",";color:#fff;border-radius:8px;margin-left:8px;padding:4px 8px;font-size:13px;font-weight:500;}"],(e=>e.theme.btnColorPrimary)),Vre=({name:e="Host Name",handle:t="Host Handle",imageUrl:r="",tag:a,imageHeight:s,border:c=!1,contBtn:u,btnCallback:l,removeCallback:d,promoteCallback:f})=>{const h=(0,i.useContext)(zte),p=(0,i.useRef)(null),[g,m]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{const e=e=>{p.current&&!p.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,n.jsx)(o.NP,Object.assign({theme:h},{children:(0,n.jsxs)(Kre,Object.assign({border:c},{children:[(0,n.jsx)(Gre,{children:(0,n.jsx)(qre,{src:r,alt:"host pfp",imageHeight:s})}),(0,n.jsxs)(Qre,{children:[(0,n.jsxs)(Wre,{children:[(0,n.jsx)(Jre,{children:(0,n.jsx)(Yre,{children:e})}),t&&(0,n.jsxs)($re,Object.assign({theme:h},{children:["@",t]}))]}),a?(0,n.jsx)(Zre,{children:a}):null,u?(0,n.jsx)("div",Object.assign({onClick:null!=l?l:()=>{m(!g)}},{children:u})):null]}),g&&(d||f)?(0,n.jsxs)(Xre,Object.assign({theme:h,ref:p,isDDOpen:g},{children:[d?(0,n.jsx)(ene,Object.assign({onClick:d},{children:"Remove"})):null,f?(0,n.jsx)(ene,Object.assign({onClick:f},{children:"Make Admin"})):null]})):null]}))}))},Kre=o.Ay.div.withConfig({displayName:"ProfileContainer__ParentContainer",componentId:"sc-ia68b0-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;position:relative;padding:8px 16px;border:",";color:",";border-radius:16px;"],(e=>e.border?"1px solid #E4E4E7":"none"),(e=>{var t;return null!==(t=e.theme.textColorPrimary)&&void 0!==t?t:"#000"})),Gre=o.Ay.div.withConfig({displayName:"ProfileContainer__PfpContainer",componentId:"sc-ia68b0-1"})(["display:flex;"]),qre=o.Ay.img.withConfig({displayName:"ProfileContainer__Pfp",componentId:"sc-ia68b0-2"})(["height:",";width:",";;border-radius:50%;"],(e=>{var t;return null!==(t=e.imageHeight)&&void 0!==t?t:"32px"}),(e=>{var t;return null!==(t=e.imageHeight)&&void 0!==t?t:"32px"})),Qre=o.Ay.div.withConfig({displayName:"ProfileContainer__HostContainer",componentId:"sc-ia68b0-3"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-left:8px;width:100%;overflow:hidden;text-overflow:ellipsis;"]),Wre=o.Ay.div.withConfig({displayName:"ProfileContainer__ProfileDetails",componentId:"sc-ia68b0-4"})(["display:flex;flex-direction:column;flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:200px;"]),Jre=o.Ay.div.withConfig({displayName:"ProfileContainer__HostName",componentId:"sc-ia68b0-5"})(["display:flex;flex-direction:row;font-weight:600;font-size:15px;width:100%;"]),Yre=o.Ay.span.withConfig({displayName:"ProfileContainer__Name",componentId:"sc-ia68b0-6"})(["text-overflow:ellipsis;white-space:nowrap;overflow:hidden;"]),Zre=o.Ay.div.withConfig({displayName:"ProfileContainer__Host",componentId:"sc-ia68b0-7"})(["display:flex;flex-direction:row;align-items:center;margin-left:8px;line-height:18px;width:max-content;background:rgba(139,92,246,0.2);color:",";border-radius:6px;font-weight:500;font-size:12px;padding:6px 10px;border-radius:8px;"],(e=>e.theme.btnColorPrimary)),$re=o.Ay.div.withConfig({displayName:"ProfileContainer__HostHandle",componentId:"sc-ia68b0-8"})(["background:",";-webkit-background-clip:text;-webkit-text-fill-color:transparent;padding:0;font-weight:450;font-size:14px;line-height:130%;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;"],(e=>e.theme.textGradient)),Xre=o.Ay.div.withConfig({displayName:"ProfileContainer__DropDown",componentId:"sc-ia68b0-9"})(["position:absolute;top:0px;right:0px;display:flex;flex-direction:column;gap:12px;justify-content:center;align-items:start;animation:"," 0.2s ease-in-out;padding:16px;background:",";color:",";border-radius:16px;border:1px solid ",";"],(({isDDOpen:e})=>e?tne:rne),(e=>e.theme.bgColorPrimary),(e=>e.theme.textColorPrimary),(e=>e.theme.borderColor)),ene=o.Ay.div.withConfig({displayName:"ProfileContainer__DDItem",componentId:"sc-ia68b0-10"})(["cursor:pointer;"]),tne=(0,o.i7)(["from{opacity:0;}to{opacity:1;}"]),rne=(0,o.i7)(["from{opacity:1;}to{opacity:0;visibility:hidden;}"]),nne=new Array(4);function ine(){const e=nne[0]^nne[0]<<11;return nne[0]=nne[1],nne[1]=nne[2],nne[2]=nne[3],nne[3]=nne[3]^nne[3]>>19^e^e>>8,(nne[3]>>>0)/(1<<31>>>0)}function one(){return`hsl(${Math.floor(360*ine())},${`${Math.floor(60*ine())+40}%`},${`${Math.floor(25*(ine()+ine()+ine()+ine()))}%`})`}function ane(e){const t={};return t.seed=e.seed||Math.floor(Math.random()*Math.pow(10,16)).toString(16),function(e){nne.fill(0);for(let t=0;t(0,n.jsx)("svg",Object.assign({width:t||"48",height:e||"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M24 4.5C20.1433 4.5 16.3731 5.64366 13.1664 7.78634C9.95963 9.92903 7.46027 12.9745 5.98436 16.5377C4.50845 20.1008 4.12228 24.0216 4.8747 27.8043C5.62711 31.5869 7.4843 35.0615 10.2114 37.7886C12.9386 40.5157 16.4131 42.3729 20.1957 43.1253C23.9784 43.8777 27.8992 43.4916 31.4623 42.0156C35.0255 40.5397 38.071 38.0404 40.2137 34.8336C42.3564 31.6269 43.5 27.8567 43.5 24C43.4901 18.8313 41.4325 13.8772 37.7776 10.2224C34.1228 6.56755 29.1687 4.50991 24 4.5ZM33.2813 20.5875L22.2938 31.0875C22.0097 31.3547 21.6337 31.5024 21.2438 31.5C21.0531 31.5027 20.8639 31.4677 20.6869 31.3969C20.5099 31.3261 20.3487 31.2209 20.2125 31.0875L14.7188 25.8375C14.5664 25.7046 14.4425 25.5422 14.3544 25.3601C14.2664 25.1781 14.2161 24.9801 14.2066 24.7781C14.197 24.5761 14.2284 24.3743 14.2988 24.1847C14.3693 23.9952 14.4773 23.8218 14.6164 23.6751C14.7556 23.5283 14.923 23.4113 15.1085 23.3309C15.2941 23.2505 15.494 23.2084 15.6962 23.2072C15.8984 23.2061 16.0988 23.2458 16.2852 23.324C16.4717 23.4023 16.6404 23.5174 16.7813 23.6625L21.2438 27.9187L31.2188 18.4125C31.5104 18.158 31.8891 18.0262 32.2758 18.0445C32.6624 18.0628 33.027 18.2298 33.2933 18.5107C33.5597 18.7915 33.7071 19.1644 33.7049 19.5515C33.7026 19.9386 33.5508 20.3098 33.2813 20.5875Z",fill:"#30CC8B"})})),dne=({height:e,width:t,color:r})=>(0,n.jsxs)("svg",Object.assign({width:t||"48",height:e||"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C14.0589 6 6 14.0589 6 24C6 33.9411 14.0589 42 24 42Z",stroke:"#E93636","stroke-width":"2","stroke-miterlimit":"10"}),(0,n.jsx)("path",{d:"M30 18L18 30",stroke:"#E93636","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M30 30L18 18",stroke:"#E93636","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})),fne=e=>{const{members:t,acceptCallback:r,rejectCallback:i,isHost:o}=e;return(0,n.jsx)(mne,{children:t.map((e=>{var t,a;return(0,n.jsx)(Vre,{handle:e.address,name:e.address,imageUrl:null===(a=null===(t=null==une?void 0:une(e.address))||void 0===t?void 0:t.toDataURL())||void 0===a?void 0:a.toString(),imageHeight:"48px",contBtn:o?(0,n.jsxs)(wne,{children:[(0,n.jsx)(wne,Object.assign({onClick:()=>{i(e.address)}},{children:(0,n.jsx)(dne,{})})),(0,n.jsx)(wne,Object.assign({onClick:()=>{r(e.address)}},{children:(0,n.jsx)(lne,{})}))]}):null,border:!0})}))})},hne=e=>{const{members:t,theme:r}=e;return(0,n.jsx)(mne,{children:t.map((e=>{var t,r;return(0,n.jsx)(Vre,{handle:e.address,name:e.address,imageUrl:null===(r=null===(t=null==une?void 0:une(e.address))||void 0===t?void 0:t.toDataURL())||void 0===r?void 0:r.toString(),imageHeight:"48px",border:!0})}))})};var pne;!function(e){e.Speakers="Speakers",e.Requests="Requests",e.Listeners="Listeners"}(pne||(pne={}));const gne=({onClose:e,spaceData:t,acceptCallback:r,rejectCallback:o,isHost:a})=>{var s,c;const[u,l]=(0,i.useState)(pne.Speakers),d=(0,i.useContext)(zte),f=t.liveSpaceData.host,h=t.liveSpaceData.speakers,p=t.liveSpaceData.listeners,g=t.liveSpaceData.listeners.filter((e=>e.handRaised));return(0,n.jsxs)(jre,Object.assign({clickawayClose:e,width:"380px"},{children:[(0,n.jsx)(Rre,{heading:"Members",closeCallback:e}),(0,n.jsxs)(yne,{children:[(0,n.jsx)(Vre,{imageUrl:null===(c=null===(s=null==une?void 0:une(f.address))||void 0===s?void 0:s.toDataURL())||void 0===c?void 0:c.toString(),name:f.address,handle:f.address,imageHeight:"48px",tag:"Host"}),(0,n.jsx)(bne,{children:Object.values(pne).map((e=>(0,n.jsx)(vne,Object.assign({active:u===e,onClick:()=>(e=>{l(e)})(e)},{children:e}),e)))}),u===pne.Speakers&&(0,n.jsx)(hne,{members:h,theme:d}),u===pne.Requests&&(0,n.jsx)(fne,{isHost:a,members:g,theme:d,acceptCallback:r,rejectCallback:o}),u===pne.Listeners&&(0,n.jsx)(hne,{members:p,theme:d})]})]}))},mne=o.Ay.div.withConfig({displayName:"SpaceMembersSectionModal__MembersContainer",componentId:"sc-1qevf22-0"})(["display:flex;flex-direction:column;gap:8px;"]),yne=o.Ay.div.withConfig({displayName:"SpaceMembersSectionModal__SpacesMembersContainer",componentId:"sc-1qevf22-1"})(["color:black;display:flex;flex-direction:column;margin-top:28px;gap:16px;width:100%;"]),bne=o.Ay.div.withConfig({displayName:"SpaceMembersSectionModal__TabContainer",componentId:"sc-1qevf22-4"})(["display:flex;padding:0px 10px;"]),vne=o.Ay.div.withConfig({displayName:"SpaceMembersSectionModal__Tab",componentId:"sc-1qevf22-5"})(["flex:1;padding:10px;text-align:center;border-bottom:",";cursor:pointer;color:",";"],(e=>e.active?"1px solid #8B5CF6":"1px solid #82828A26"),(e=>e.active?"#8B5CF6":"#82828A")),wne=o.Ay.div.withConfig({displayName:"SpaceMembersSectionModal__SettingsCont",componentId:"sc-1qevf22-6"})(["display:flex;justify-content:center;align-items:center;cursor:pointer;"]),Ane=({size:e=42})=>{const t=(0,i.useContext)(zte);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsx)(Ene,Object.assign({width:`${e}px`},{children:(0,n.jsx)(I7,{color:`${t.btnOutline}`})}))}))},Cne=(0,o.i7)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),Ene=o.Ay.div.withConfig({displayName:"Spinner__SpinLoader",componentId:"sc-104wwvk-0"})(["display:flex;flex:initial;align-self:center;width:",";animation-name:",";animation-duration:2500ms;animation-iteration-count:infinite;animation-timing-function:linear;"],(e=>e.width),Cne);const xne=({userType:e,roomId:t,userId:r})=>pJ(void 0,void 0,void 0,(function*(){if(console.log("\ud83d\ude80 ~ file: getToken.js:5 ~ getToken ~ roomId:",t),console.log("\ud83d\ude80 ~ file: getToken.js:5 ~ getToken ~ userId:",r),"sender"!==e&&"receiver"!==e)throw new Error("Invalid userType. Use 'sender' or 'receiver'.");const n=XD(),i=`${J4}/token?userType=${e}&userName=${r||n}&roomId=${t}`;return yield Qm().get(i)})),Sne=({roomId:e,userId:t,canPublish:r})=>pJ(void 0,void 0,void 0,(function*(){const n=`${J4}/execute?roomName=${e}&identity=${t}&canPublish=${r}`;return yield Qm().get(n)}));function Ine(e){var t=hJ(e,["showIcon"]);const{enabled:r}=XS(t),a=(0,i.useContext)(zte);return(0,n.jsx)(o.NP,Object.assign({theme:a},{children:(0,n.jsxs)(e5,Object.assign({cursor:"pointer",display:"flex",alignItems:"center",gap:"8px",padding:"10px"},{children:[(0,n.jsx)(n5,{width:"14px",height:"20px",src:r?"data:image/svg+xml,%3csvg width='15' height='20' viewBox='0 0 15 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2.85714 10V4.28571C2.85714 3.14907 3.30867 2.05898 4.1124 1.25526C4.91613 0.451529 6.00622 0 7.14286 0C8.2795 0 9.36959 0.451529 10.1733 1.25526C10.977 2.05898 11.4286 3.14907 11.4286 4.28571V10C11.4286 11.1366 10.977 12.2267 10.1733 13.0305C9.36959 13.8342 8.2795 14.2857 7.14286 14.2857C6.00622 14.2857 4.91613 13.8342 4.1124 13.0305C3.30867 12.2267 2.85714 11.1366 2.85714 10ZM14.2857 10C14.2857 9.81056 14.2105 9.62888 14.0765 9.49492C13.9426 9.36097 13.7609 9.28571 13.5714 9.28571C13.382 9.28571 13.2003 9.36097 13.0664 9.49492C12.9324 9.62888 12.8571 9.81056 12.8571 10C12.8571 11.5155 12.2551 12.969 11.1835 14.0406C10.1118 15.1122 8.65838 15.7143 7.14286 15.7143C5.62733 15.7143 4.17388 15.1122 3.10225 14.0406C2.03061 12.969 1.42857 11.5155 1.42857 10C1.42857 9.81056 1.35332 9.62888 1.21936 9.49492C1.08541 9.36097 0.903726 9.28571 0.714286 9.28571C0.524845 9.28571 0.343164 9.36097 0.20921 9.49492C0.075255 9.62888 0 9.81056 0 10C0.0021751 11.7701 0.660644 13.4766 1.84807 14.7893C3.0355 16.1021 4.66754 16.9279 6.42857 17.1071V19.2857C6.42857 19.4752 6.50383 19.6568 6.63778 19.7908C6.77174 19.9247 6.95342 20 7.14286 20C7.3323 20 7.51398 19.9247 7.64793 19.7908C7.78189 19.6568 7.85714 19.4752 7.85714 19.2857V17.1071C9.61818 16.9279 11.2502 16.1021 12.4376 14.7893C13.6251 13.4766 14.2835 11.7701 14.2857 10Z' fill='%238B5CF6'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='16' height='20' viewBox='0 0 16 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M15.4862 18.3857C15.346 18.5131 15.1609 18.5796 14.9717 18.5705C14.7825 18.5615 14.6047 18.4777 14.4772 18.3375L12.1147 15.7393C11.0808 16.5064 9.8583 16.9788 8.57722 17.1062V19.2857C8.57722 19.4752 8.50197 19.6568 8.36801 19.7908C8.23406 19.9247 8.05238 20 7.86293 20C7.67349 20 7.49181 19.9247 7.35786 19.7908C7.2239 19.6568 7.14865 19.4752 7.14865 19.2857V17.1071C5.3876 16.9279 3.75557 16.1021 2.56813 14.7893C1.3807 13.4765 0.722224 11.7701 0.720048 9.99996C0.720048 9.81052 0.795304 9.62884 0.929259 9.49488C1.06321 9.36093 1.2449 9.28567 1.43434 9.28567C1.62378 9.28567 1.80546 9.36093 1.93942 9.49488C2.07337 9.62884 2.14863 9.81052 2.14863 9.99996C2.14877 11.046 2.43605 12.072 2.97916 12.966C3.52227 13.86 4.30036 14.5878 5.22863 15.07C6.15691 15.5523 7.19975 15.7705 8.24349 15.7008C9.28722 15.6311 10.2918 15.2763 11.1478 14.675L10.1763 13.6035C9.52909 14.0186 8.7821 14.2519 8.01369 14.2789C7.24528 14.306 6.48375 14.1258 5.80892 13.7573C5.13409 13.3888 4.57083 12.8455 4.17817 12.1844C3.78552 11.5234 3.57794 10.7688 3.5772 9.99996V6.34727L0.191475 2.62314C0.12707 2.55396 0.077037 2.47268 0.0442759 2.38402C0.0115148 2.29535 -0.00332312 2.20107 0.000622646 2.10663C0.00456841 2.01219 0.0272194 1.91947 0.0672623 1.83385C0.107305 1.74823 0.163943 1.67141 0.233895 1.60784C0.303847 1.54426 0.38572 1.49521 0.47477 1.46351C0.56382 1.43182 0.658275 1.41811 0.752661 1.42319C0.847046 1.42827 0.939486 1.45203 1.02462 1.4931C1.10976 1.53416 1.18589 1.59172 1.24862 1.66243L15.5344 17.3768C15.6618 17.517 15.7283 17.702 15.7192 17.8912C15.7102 18.0804 15.6264 18.2583 15.4862 18.3857ZM10.9058 10.1616C11.0028 10.2683 11.1298 10.3431 11.2701 10.3763C11.4104 10.4094 11.5574 10.3994 11.6919 10.3474C11.8264 10.2954 11.942 10.204 12.0235 10.0851C12.105 9.96617 12.1487 9.82538 12.1487 9.68121V4.28565C12.1486 3.35309 11.8445 2.44598 11.2822 1.70195C10.72 0.957923 9.93044 0.417582 9.03333 0.162908C8.13621 -0.0917655 7.18051 -0.0468726 6.31122 0.290776C5.44193 0.628425 4.70649 1.2404 4.21649 2.03386C4.13436 2.16538 4.09725 2.32006 4.11079 2.47453C4.12432 2.629 4.18774 2.77487 4.29149 2.89011L10.9058 10.1616ZM13.5933 13.0035C13.6807 13.0376 13.774 13.0541 13.8678 13.0522C13.9616 13.0502 14.0541 13.0298 14.14 12.992C14.2259 12.9543 14.3035 12.9 14.3684 12.8323C14.4333 12.7646 14.4843 12.6847 14.5183 12.5973C14.8417 11.7696 15.0071 10.8886 15.0058 9.99996C15.0058 9.81052 14.9306 9.62884 14.7966 9.49488C14.6627 9.36093 14.481 9.28567 14.2915 9.28567C14.1021 9.28567 13.9204 9.36093 13.7865 9.49488C13.6525 9.62884 13.5772 9.81052 13.5772 9.99996C13.5784 10.7108 13.4464 11.4155 13.188 12.0776C13.1537 12.1651 13.137 12.2583 13.1389 12.3522C13.1407 12.4461 13.1611 12.5386 13.1987 12.6246C13.2364 12.7106 13.2906 12.7883 13.3583 12.8534C13.426 12.9184 13.5059 12.9694 13.5933 13.0035Z' fill='%238B5CF6'/%3e%3c/svg%3e",alt:"Mic Icon"}),(0,n.jsx)(a5,Object.assign({color:`${a.btnOutline}`,fontSize:"14px",fontWeight:600},{children:r?"Speaking":"Muted"}))]}))}))}const kne=({spaceData:e,isHost:t,setSpaceStatusState:r,account:a})=>{var s,c,u,l,d,f,h,p,g,m,y,b,v,w,A,C,E,x,S,I;const[k,T]=(0,i.useState)(!1),[M,P]=(0,i.useState)(""),[j,D]=(0,i.useState)(!1),[O,B]=(0,i.useState)(!1),[N,R]=(0,i.useState)(""),[L,F]=(0,i.useState)(null),U=(0,i.useContext)(zte),{spacesObjectRef:z,spaceObjectData:H,setSpaceObjectData:V,isSpeaker:K,isListener:G,isJoined:q,initSpaceObject:Q,raisedHandInfo:W}=M9();console.log("\ud83d\ude80 ~ file: LiveWidgetContent.tsx:66 ~ spaceObjectData:",H),console.log("\ud83d\ude80 ~ file: LiveWidgetContent.tsx:66 ~ raisedHandInfo:",W),null===(c=null===(s=null==H?void 0:H.connectionData)||void 0===s?void 0:s.local)||void 0===c||c.audio;const J=H.liveSpaceData.listeners.filter((e=>e.handRaised)).length;(0,i.useEffect)((()=>{!function(){pJ(this,void 0,void 0,(function*(){const r=a.substring(7);if((t||K)&&(null==e?void 0:e.spaceId)){const t=yield xne({userType:"sender",roomId:null==e?void 0:e.spaceId,userId:r});F(t.data)}else if(G&&(null==e?void 0:e.spaceId)){const t=yield xne({userType:"receiver",roomId:null==e?void 0:e.spaceId,userId:r});F(t.data)}}))}()}),[G,t,e]),(0,i.useEffect)((()=>{if(!O)return;pJ(void 0,void 0,void 0,(function*(){var e,t;yield null===(t=null===(e=null==z?void 0:z.current)||void 0===e?void 0:e.requestToBePromoted)||void 0===t?void 0:t.call(e,{role:"SPEAKER",promotorAddress:l8(null==H?void 0:H.spaceCreator)})}))}),[O]);(0,i.useEffect)((()=>{if(0===N.length||0===Object.keys(W).length)return;const e={promoteeAddress:l8(W[N].senderAddress),spaceId:W[N].chatId,role:"SPEAKER"};pJ(void 0,void 0,void 0,(function*(){var t,r;yield null===(r=null===(t=null==z?void 0:z.current)||void 0===t?void 0:t.acceptPromotionRequest)||void 0===r?void 0:r.call(t,e)}))}),[N]);(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var e,r;console.log("isListner",G),G&&!t&&(console.log("joining as a listener"),yield null===(r=null===(e=null==z?void 0:z.current)||void 0===e?void 0:e.join)||void 0===r?void 0:r.call(e),D(!j),console.log("space joined"))}))}),[G]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var e,t,r,n;console.log("isSpeaker",K),K&&!(null===(t=null===(e=null==H?void 0:H.connectionData)||void 0===e?void 0:e.local)||void 0===t?void 0:t.stream)&&(console.log("creating audio stream"),yield null===(n=null===(r=null==z?void 0:z.current)||void 0===r?void 0:r.createAudioStream)||void 0===n?void 0:n.call(r))}))}),[K]),(0,i.useEffect)((()=>{var e,t,r;if(!K||(null!==(r=null===(t=null===(e=null==H?void 0:H.connectionData)||void 0===e?void 0:e.incoming)||void 0===t?void 0:t.length)&&void 0!==r?r:0)>1)return;pJ(void 0,void 0,void 0,(function*(){var e,t;console.log("joining as a speaker"),yield null===(t=null===(e=null==z?void 0:z.current)||void 0===e?void 0:e.join)||void 0===t?void 0:t.call(e),D(!j),console.log("space joined")}))}),[null===(l=null===(u=null==H?void 0:H.connectionData)||void 0===u?void 0:u.local)||void 0===l?void 0:l.stream]),(0,i.useEffect)((()=>{(null==H?void 0:H.meta)&&P(null==H?void 0:H.meta)}),[null==H?void 0:H.meta]);const Y=(0,i.useMemo)((()=>new rS),[]);return(0,n.jsxs)(o.NP,Object.assign({theme:U},{children:[(0,n.jsx)(e5,Object.assign({flex:"1",display:"grid",gridTemplateColumns:"repeat(auto-fill, 120px)",padding:"16px 10px",margin:"0 auto",flexWrap:"wrap",justifyContent:"center",gap:"24px 12px",overflowY:"auto",overflowX:"hidden",alignContent:"flex-start",width:"100%"},{children:q?(0,n.jsxs)(n.Fragment,{children:[(K||t)&&(0,n.jsx)("div",Object.assign({style:{position:"relative"}},{children:(0,n.jsx)(Mre,{isHost:t,isSpeaker:K,wallet:null===(f=null===(d=null==H?void 0:H.connectionData)||void 0===d?void 0:d.local)||void 0===f?void 0:f.address,mic:null===(p=null===(h=null==H?void 0:H.connectionData)||void 0===h?void 0:h.local)||void 0===p?void 0:p.audio,image:null===(b=null===(y=null==une?void 0:une(null===(m=null===(g=null==H?void 0:H.connectionData)||void 0===g?void 0:g.local)||void 0===m?void 0:m.address))||void 0===y?void 0:y.toDataURL())||void 0===b?void 0:b.toString()})})),(K||t)&&(null===(w=null===(v=null==H?void 0:H.connectionData)||void 0===v?void 0:v.incoming)||void 0===w?void 0:w.slice(1).map((e=>{var t,r;return(0,n.jsx)("div",Object.assign({style:{position:"relative"}},{children:(0,n.jsx)(Mre,{isHost:(null==e?void 0:e.address)===l8(null==H?void 0:H.spaceCreator),isSpeaker:(null==e?void 0:e.address)!==l8(null==H?void 0:H.spaceCreator),mic:null==e?void 0:e.audio,wallet:null==e?void 0:e.address,image:null===(r=null===(t=null==une?void 0:une(null==e?void 0:e.address))||void 0===t?void 0:t.toDataURL())||void 0===r?void 0:r.toString(),stream:null==e?void 0:e.stream})}))}))),t&&(null==H?void 0:H.liveSpaceData.speakers.map((e=>{var t,r;return(0,n.jsx)("div",Object.assign({style:{position:"relative"}},{children:(0,n.jsx)(Mre,{isHost:!1,isSpeaker:!0,wallet:null==e?void 0:e.address,mic:null==e?void 0:e.audio,image:null===(r=null===(t=null==une?void 0:une(null==e?void 0:e.address))||void 0===t?void 0:t.toDataURL())||void 0===r?void 0:r.toString()})}))}))),G&&!t&&(0,n.jsx)("div",Object.assign({style:{position:"relative"}},{children:(0,n.jsx)(Mre,{isHost:!0,isSpeaker:!1,wallet:null===(A=null==H?void 0:H.liveSpaceData.host)||void 0===A?void 0:A.address,mic:null===(C=null==H?void 0:H.liveSpaceData.host)||void 0===C?void 0:C.audio,image:null===(I=null===(S=null==une?void 0:une(null===(x=null===(E=null==H?void 0:H.liveSpaceData)||void 0===E?void 0:E.host)||void 0===x?void 0:x.address))||void 0===S?void 0:S.toDataURL())||void 0===I?void 0:I.toString()})})),G&&!t&&(null==H?void 0:H.liveSpaceData.speakers.map((e=>{var t,r;return(0,n.jsx)("div",Object.assign({style:{position:"relative"}},{children:(0,n.jsx)(Mre,{isHost:!1,isSpeaker:!0,wallet:null==e?void 0:e.address,mic:null==e?void 0:e.audio,image:null===(r=null===(t=null==une?void 0:une(null==e?void 0:e.address))||void 0===t?void 0:t.toDataURL())||void 0===r?void 0:r.toString()})}))}))),null==H?void 0:H.liveSpaceData.listeners.map((e=>{var t,r;return(0,n.jsx)("div",Object.assign({style:{position:"relative"}},{children:(0,n.jsx)(Mre,{isHost:!1,isSpeaker:!1,requested:e.handRaised,wallet:null==e?void 0:e.address,image:null===(r=null===(t=null==une?void 0:une(null==e?void 0:e.address))||void 0===t?void 0:t.toDataURL())||void 0===r?void 0:r.toString()})}))}))]}):null==e?void 0:e.members.map((t=>{var r,i;return(0,n.jsx)("div",Object.assign({style:{position:"relative"}},{children:(0,n.jsx)(Mre,{wallet:null==t?void 0:t.wallet,isHost:(null==t?void 0:t.wallet)===e.spaceCreator,isSpeaker:null==t?void 0:t.isSpeaker,image:(null==t?void 0:t.image)||(null===(i=null===(r=null==une?void 0:une(null==t?void 0:t.wallet))||void 0===r?void 0:r.toDataURL())||void 0===i?void 0:i.toString())})}))}))})),(0,n.jsxs)(e5,Object.assign({padding:"28px 10px",width:"90%"},{children:[q?(0,n.jsxs)(e5,Object.assign({borderRadius:"8px",background:`${U.bgColorSecondary}`,display:"flex",justifyContent:"space-between",padding:"6px 8px"},{children:[L?(0,n.jsxs)(lI,Object.assign({serverUrl:Q4,token:L,room:Y},{children:[(0,n.jsx)(dI,{}),t||K?(0,n.jsx)(Mne,Object.assign({showIcon:!1,source:GC.Source.Microphone},{children:(0,n.jsx)(Ine,{source:GC.Source.Microphone})})):(0,n.jsxs)(e5,Object.assign({cursor:"pointer",display:"flex",alignItems:"center",gap:"8px",padding:"10px",onClick:()=>pJ(void 0,void 0,void 0,(function*(){var e,t;yield null===(t=null===(e=null==z?void 0:z.current)||void 0===e?void 0:e.createAudioStream)||void 0===t?void 0:t.call(e),B(!0)}))},{children:[(0,n.jsx)(n5,{width:"14px",height:"20px",src:O?_re:Tre,alt:"Mic Icon"}),(0,n.jsx)(a5,Object.assign({color:`${U.btnOutline}`,fontSize:"14px",fontWeight:600},{children:O?"Requested":"Request"}))]}))]})):(0,n.jsxs)(e5,Object.assign({cursor:"pointer",display:"flex",alignItems:"center",gap:"8px",padding:"10px"},{children:[(0,n.jsx)(Ane,{size:"20"}),(0,n.jsx)(a5,Object.assign({color:`${U.btnOutline}`,fontSize:"14px",fontWeight:600},{children:"Connecting"}))]})),(0,n.jsxs)(e5,Object.assign({display:"flex",alignItems:"center",gap:"16px"},{children:[(0,n.jsxs)(_ne,{children:[t&&J?(0,n.jsx)(Tne,{children:J}):null,(0,n.jsx)(n5,{width:"21px",height:"24px",src:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 27.5.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 23 18' style='enable-background:new 0 0 23 18%3b' xml:space='preserve'%3e%3cstyle type='text/css'%3e .st0%7bfill:%238B5CF6%3b%7d%3c/style%3e%3cpath class='st0' d='M21.1%2c10.8c-0.3-0.3-0.7-0.5-1-0.7c-0.4-0.2-0.8-0.4-1.2-0.5c1-0.7%2c1.6-1.8%2c1.6-3.1c0-2.1-1.7-3.8-3.8-3.8 c-0.4%2c0-0.8%2c0.1-1.1%2c0.2C14.1%2c3.4%2c13%2c4.8%2c13%2c6.5c0%2c1.2%2c0.6%2c2.3%2c1.5%2c3c-0.4%2c0.1-0.8%2c0.3-1.2%2c0.5c-0.3-0.2-0.6-0.4-0.9-0.5 c-0.6-0.3-1.2-0.5-1.8-0.7c1.2-0.8%2c2-2.2%2c2-3.7c0-2.5-2-4.5-4.5-4.5S3.6%2c2.5%2c3.6%2c5c0%2c1.6%2c0.8%2c3%2c2.1%2c3.8C5.2%2c9%2c4.6%2c9.2%2c4.1%2c9.4 c-0.4%2c0.2-0.9%2c0.5-1.2%2c0.8c-1.6%2c1.2-2.1%2c3.2-2.1%2c5c0%2c1.3%2c1%2c2.3%2c2.3%2c2.3h9.7c0%2c0%2c0%2c0%2c0%2c0h7.9c1.2%2c0%2c2.2-1%2c2.2-2.2 C22.9%2c13.7%2c22.5%2c11.9%2c21.1%2c10.8z M16.1%2c4.3c0.2-0.1%2c0.4-0.1%2c0.7-0.1c1.3%2c0%2c2.3%2c1%2c2.3%2c2.3s-1%2c2.3-2.3%2c2.3c-0.2%2c0-0.5%2c0-0.7-0.1 c-0.9-0.3-1.6-1.1-1.6-2.2S15.2%2c4.6%2c16.1%2c4.3z M8.1%2c2c1.7%2c0%2c3%2c1.4%2c3%2c3c0%2c1.7-1.4%2c3-3%2c3c-1.7%2c0-3-1.4-3-3C5.1%2c3.4%2c6.5%2c2%2c8.1%2c2z M2.2%2c15.2c0-1.6%2c0.4-3%2c1.5-3.8c0.3-0.2%2c0.7-0.4%2c1-0.6c1.1-0.5%2c2.3-0.8%2c3.5-0.8c1.2%2c0%2c2.4%2c0.3%2c3.5%2c0.8c0.4%2c0.2%2c0.7%2c0.4%2c1%2c0.6 c1.1%2c0.8%2c1.5%2c2.2%2c1.5%2c3.8c0%2c0.5-0.4%2c0.8-0.8%2c0.8H3.1C2.6%2c16%2c2.2%2c15.6%2c2.2%2c15.2z M20.7%2c16h-5c0.1-0.3%2c0.2-0.5%2c0.2-0.8 c0-1.4-0.3-2.9-1.2-4.1c0.6-0.2%2c1.3-0.3%2c2-0.3c1%2c0%2c2%2c0.2%2c2.8%2c0.7c0.3%2c0.2%2c0.6%2c0.3%2c0.8%2c0.5c0.9%2c0.7%2c1.2%2c1.9%2c1.2%2c3.3 C21.4%2c15.7%2c21.1%2c16%2c20.7%2c16z'/%3e%3c/svg%3e",cursor:"pointer",onClick:()=>T(!0),alt:"Members Icon"})]}),(0,n.jsx)(o5,Object.assign({color:`${U.btnColorPrimary}`,fontSize:"14px",fontWeight:600,width:"100px",height:"100%",cursor:"pointer",border:`1px solid ${U.btnOutline}`,borderRadius:"12px",onClick:t?()=>pJ(void 0,void 0,void 0,(function*(){var e,t;(null==z?void 0:z.current)&&(yield null===(t=null===(e=null==z?void 0:z.current)||void 0===e?void 0:e.stop)||void 0===t?void 0:t.call(e),z.current=null,null==V||V(_.space.initSpaceData),null==r||r(Lne.Ended),D(!1))})):()=>pJ(void 0,void 0,void 0,(function*(){var e,r;(null==z?void 0:z.current)&&((t||K)&&(yield null===(r=null===(e=null==z?void 0:z.current)||void 0===e?void 0:e.leave)||void 0===r?void 0:r.call(e),z.current=null,null==V||V(_.space.initSpaceData),console.log("Space left")),G&&(z.current=null,null==V||V(_.space.initSpaceData)),D(!1))}))},{children:t?"End space":"Leave"}))]}))]})):(0,n.jsx)(o5,Object.assign({height:"36px",width:"100%",border:"none",borderRadius:"8px",cursor:"pointer",background:`${U.titleBg}`,onClick:()=>pJ(void 0,void 0,void 0,(function*(){e&&(D(!j),yield Q(null==e?void 0:e.spaceId))}))},{children:(0,n.jsx)(a5,Object.assign({color:`${U.titleTextColor}`,fontSize:"16px",fontWeight:"600",display:"flex",justifyContent:"center"},{children:j?(0,n.jsx)($6,{}):"Join this Space"}))})),k?(0,n.jsx)(gne,{onClose:()=>T(!1),spaceData:H,acceptCallback:t=>pJ(void 0,void 0,void 0,(function*(){yield Sne({roomId:null==e?void 0:e.spaceId,userId:t,canPublish:!0}),R(t),yield Sne({roomId:null==e?void 0:e.spaceId,userId:t,canPublish:!0})})),rejectCallback:t=>pJ(void 0,void 0,void 0,(function*(){var r,n;yield null===(n=null===(r=null==z?void 0:z.current)||void 0===r?void 0:r.rejectPromotionRequest)||void 0===n?void 0:n.call(r,{promoteeAddress:l8(t)}),yield Sne({roomId:null==e?void 0:e.spaceId,userId:t,canPublish:!1})})),isHost:t}):null]}))]}))},_ne=o.Ay.div.withConfig({displayName:"LiveWidgetContent__MembersContainer",componentId:"sc-fmttby-1"})(["position:relative;display:flex;align-items:center;justify-content:center;"]),Tne=o.Ay.div.withConfig({displayName:"LiveWidgetContent__RequestsCount",componentId:"sc-fmttby-2"})(["position:absolute;top:-8px;right:-6px;background-color:",";padding:2px 4px;border-radius:4px;font-size:12px;"],(e=>e.theme.btnColorPrimary)),Mne=(0,o.Ay)(cI).withConfig({displayName:"LiveWidgetContent__TrackToggleComp",componentId:"sc-fmttby-4"})(["background-color:transparent;border:none;"]);var Pne="data:image/svg+xml,%3csvg width='42' height='42' viewBox='0 0 42 42' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0.5 14.85V37.7145C0.5 39.1502 2.21425 39.8929 3.26166 38.9109L11.1047 31.5581C11.3158 31.3602 11.5944 31.25 11.8838 31.25H26.125C34.6164 31.25 41.5 24.3664 41.5 15.875C41.5 7.38362 34.6164 0.5 26.125 0.5H14.85C6.92471 0.5 0.5 6.92471 0.5 14.85Z' fill='%238B5CF6'/%3e%3cpath d='M0.5 14.85V37.7145C0.5 39.1502 2.21425 39.8929 3.26166 38.9109L11.1047 31.5581C11.3158 31.3602 11.5944 31.25 11.8838 31.25H26.125C34.6164 31.25 41.5 24.3664 41.5 15.875C41.5 7.38362 34.6164 0.5 26.125 0.5H14.85C6.92471 0.5 0.5 6.92471 0.5 14.85Z' fill='url(%23paint0_linear_13878_66774)'/%3e%3cg clip-path='url(%23clip0_13878_66774)'%3e%3cpath d='M11.9805 13.6191V18.5391' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M18.541 7.05859V25.0986' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M25.0996 10.3379L25.0996 21.8179' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M31.6602 13.6191L31.6602 18.5391' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear_13878_66774' x1='0.500001' y1='41.5' x2='43.42' y2='39.3805' gradientUnits='userSpaceOnUse'%3e%3cstop offset='0.0001' stop-color='%23EA4EE4'/%3e%3cstop offset='1' stop-color='%238B5CF6'/%3e%3c/linearGradient%3e%3cclipPath id='clip0_13878_66774'%3e%3crect width='36.08' height='36.08' fill='white' transform='translate(2.96094 0.5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";var jne;!function(e){e.Twitter="Twitter",e.Lenster="Lenster",e.CopyShareUrl="Copy Link"}(jne||(jne={}));const Dne=({spaceData:e,share:t,isHost:r,isMember:a,spaceStatusState:s,setSpaceStatusState:c})=>{const u=i.useContext(zte),{spacesObjectRef:l,initSpaceObject:d,spaceObjectData:f}=M9(),[h,p]=(0,i.useState)(!1),[g,m]=(0,i.useState)(!1),{shareUrl:y,shareOptions:b=["Twitter","Lenster","CopyShareUrl"]}=t||{},v=()=>{if(!y)return;const e=(({text:e,url:t})=>`https://lenster.xyz/?text=${encodeURIComponent(e)}&url=${encodeURIComponent(t)}`)({text:"Join this space",url:y});window.open(e,"_blank")},w=e=>{switch(e){case jne.Twitter:(()=>{if(!y)return;const e=y,t=`https://twitter.com/intent/tweet?text=${encodeURIComponent("Join this Space:")}&url=${encodeURIComponent(e)}`;window.open(t,"_blank")})();break;case jne.Lenster:v();break;default:pJ(void 0,void 0,void 0,(function*(){try{if(!y)return;const e=y;yield navigator.clipboard.writeText(e),console.log("URL copied to clipboard:",e)}catch(ys){console.error("Failed to copy URL:",ys)}}))}};return(0,i.useEffect)((()=>{!function(){var e,t;pJ(this,void 0,void 0,(function*(){s!==Lne.Live&&h&&(yield null===(t=null===(e=null==l?void 0:l.current)||void 0===e?void 0:e.start)||void 0===t?void 0:t.call(e),console.log("SPACE STARTED"),p(!1),c&&c(Lne.Live),console.log(s))}))}()}),[h]),(0,n.jsx)(o.NP,Object.assign({theme:u},{children:(0,n.jsxs)(r5,Object.assign({display:"flex",height:"100%",alignItems:"center",flexDirection:"column",justifyContent:"center",gap:"15px",padding:"0 24px"},{children:[(0,n.jsx)(n5,{width:"41px",height:"41px",src:Pne,alt:"Spaces Icon"}),r?(0,n.jsx)(One,{children:"It\u2019s time to start your space"}):(0,n.jsxs)(One,{children:["This space will go live on"," ",l9((null==e?void 0:e.scheduleAt)||new Date)]}),r&&(0,n.jsx)(o5,Object.assign({padding:"9px 34px",borderRadius:"8px",background:`${u.btnColorPrimary}`,border:`1px solid ${u.btnOutline}`,cursor:"pointer",onClick:()=>pJ(void 0,void 0,void 0,(function*(){m(!g),console.log(s),yield null==d?void 0:d(null==e?void 0:e.spaceId),m(!g),p(!0),console.log(s)}))},{children:(0,n.jsx)(a5,Object.assign({fontSize:"14px",fontWeight:600,color:"#fff"},{children:g?(0,n.jsx)($6,{}):"Start this Space"}))})),!r&&a&&(0,n.jsx)(o5,Object.assign({padding:"9px 12px",borderRadius:"8px",background:`${u.bgColorPrimary}`,border:`1px solid ${u.borderColor}`,cursor:"pointer"},{children:(0,n.jsx)(a5,Object.assign({fontSize:"14px",fontWeight:600,color:`${u.textColorPrimary}`},{children:"Remove Reminder"}))})),(!r||r&&!1)&&y&&(0,n.jsx)(e5,Object.assign({display:"flex",gap:"13px"},{children:b.map((e=>{const{icon:t,alt:r}=(e=>{let t="",r="";switch(e){case jne.Twitter:t="data:image/svg+xml,%3csvg width='28' height='24' viewBox='0 0 28 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.5 17.0004C7.5 17.0004 0.60625 13.0004 1.5975 2.00037C1.5975 2.00037 6.555 7.00037 12.5 8.00037V6.00037C12.5 3.25037 14.75 0.966619 17.5 1.00037C18.4705 1.01164 19.4175 1.30001 20.2296 1.83151C21.0417 2.36301 21.685 3.1155 22.0837 4.00037H26.5L22.5 8.00037C21.9675 16.3554 14.99 23.0004 6.5 23.0004C2.5 23.0004 1.5 21.5004 1.5 21.5004C1.5 21.5004 5.5 20.0004 7.5 17.0004Z' stroke='%2382828A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",r="Twitter Icon";break;case jne.Lenster:t="data:image/svg+xml,%3csvg width='27' height='27' viewBox='0 0 27 27' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg id='Group 4331'%3e%3cpath id='Vector' d='M11.9144 12.5657C11.6065 13.086 6.79798 13.1734 4.17427 11.6979C1.55125 10.2223 2.82539 5.71108 5.48612 4.52667C8.14686 3.34225 12.2223 12.0454 11.9137 12.5657H11.9144Z' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_2' d='M11.8771 14.3718C12.1857 14.8921 9.85894 18.9925 7.23592 20.4673C4.61221 21.9429 1.23897 18.6126 1.51602 15.7751C1.79307 12.9383 11.5685 13.8515 11.8764 14.3718H11.8771Z' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_3' d='M13.4616 15.3057C14.0781 15.3057 16.5598 19.3186 16.5598 22.2697C16.5598 25.2208 11.9125 26.4011 9.52877 24.7487C7.14508 23.0963 12.8451 15.3064 13.4616 15.3064V15.3057Z' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_4' d='M15.0868 14.4341C15.3947 13.9138 20.2032 13.8264 22.8269 15.302C25.4499 16.7775 24.1758 21.2887 21.5151 22.4732C18.8543 23.6576 14.7789 14.9544 15.0868 14.4341Z' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_5' d='M15.1213 12.6283C14.8127 12.108 17.1395 8.00759 19.7625 6.53274C22.3856 5.05721 25.7588 8.38817 25.4818 11.225C25.2047 14.0618 15.4292 13.1486 15.1213 12.6283Z' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_6' d='M13.5357 11.6939C12.9193 11.6939 10.4375 7.6809 10.4375 4.73052C10.4375 1.78014 15.0849 0.599166 17.4679 2.25157C19.8516 3.90397 14.1516 11.6939 13.5351 11.6939H13.5357Z' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e",r="Lenster Icon";break;default:t="data:image/svg+xml,%3csvg fill='none' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3e%3cg stroke='%2382828a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3e%3cpath d='m12.4856 19.9999-1.2425 1.2425c-1.1283 1.1101-2.64955 1.7294-4.23237 1.7229-1.58283-.0064-3.09898-.638-4.21821-1.7573-1.11924-1.1192-1.75087-2.6354-1.75731-4.2182-.00645-1.5828.61281-3.104 1.7229-4.2324l3.01375-3.00745c1.08102-1.08322 2.53509-1.71243 4.06473-1.7589 1.52961-.04647 3.01921.4933 4.16401 1.5089'/%3e%3cpath d='m11.515 4.00061 1.2425-1.2425c1.1283-1.11009 2.6496-1.72935 4.2324-1.7229 1.5828.00644 3.099.63807 4.2182 1.75731 1.1192 1.11923 1.7509 2.63538 1.7573 4.21821.0064 1.58282-.6128 3.10407-1.7229 4.23237l-3.0137 3.0138c-1.0819 1.0823-2.5364 1.7104-4.066 1.7557-1.5297.0453-3.0188-.4956-4.1628-1.512'/%3e%3c/g%3e%3c/svg%3e",r="Copy Icon"}return{icon:t,alt:r}})(e);return(0,n.jsxs)(Bne,{children:[(0,n.jsx)(Nne,Object.assign({onClick:()=>w(e)},{children:(0,n.jsx)(n5,{src:t,alt:r,width:"25px",height:"22px"})})),(0,n.jsx)(a5,Object.assign({fontSize:"12px",fontWeight:600},{children:jne[e]}))]},e)}))}))]}))}))},One=o.Ay.span.withConfig({displayName:"ScheduledWidgetContent__SpaceInfoText",componentId:"sc-13slgtw-0"})(["font-size:18px;font-weight:600;text-align:center;color:",";"],(({theme:e})=>e.textColorPrimary)),Bne=o.Ay.div.withConfig({displayName:"ScheduledWidgetContent__ShareLinkItem",componentId:"sc-13slgtw-1"})(["display:flex;flex-direction:column;gap:8px;align-items:center;"]),Nne=o.Ay.button.withConfig({displayName:"ScheduledWidgetContent__ShareLinkButton",componentId:"sc-13slgtw-2"})(["background:",";border-radius:14px;padding:16px;border:none;cursor:pointer;"],(({theme:e})=>e.bgColorSecondary));const Rne=({onClose:e,toggleWidgetVisibility:t})=>{const r=i.useContext(zte);return(0,n.jsx)(o.NP,Object.assign({theme:r},{children:(0,n.jsxs)(r5,Object.assign({display:"flex",height:"100%",alignItems:"center",flexDirection:"column",justifyContent:"center",gap:"15px",padding:"0 24px"},{children:[(0,n.jsx)(n5,{width:"41px",height:"41px",src:"data:image/svg+xml,%3csvg width='42' height='41' viewBox='0 0 42 41' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0.5 14.35V37.2145C0.5 38.6502 2.21425 39.3929 3.26166 38.4109L11.1047 31.0581C11.3158 30.8602 11.5944 30.75 11.8838 30.75H26.125C34.6164 30.75 41.5 23.8664 41.5 15.375C41.5 6.88362 34.6164 0 26.125 0H14.85C6.92471 0 0.5 6.42471 0.5 14.35Z' fill='%238B5CF6'/%3e%3cpath d='M0.5 14.35V37.2145C0.5 38.6502 2.21425 39.3929 3.26166 38.4109L11.1047 31.0581C11.3158 30.8602 11.5944 30.75 11.8838 30.75H26.125C34.6164 30.75 41.5 23.8664 41.5 15.375C41.5 6.88362 34.6164 0 26.125 0H14.85C6.92471 0 0.5 6.42471 0.5 14.35Z' fill='url(%23paint0_linear_15620_46454)'/%3e%3cg clip-path='url(%23clip0_15620_46454)'%3e%3cpath d='M11.9805 13.1191V18.0391' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M18.5391 6.55859V24.5986' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M25.1016 9.83789L25.1016 21.3179' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M31.6602 13.1191L31.6602 18.0391' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear_15620_46454' x1='0.500001' y1='41' x2='43.42' y2='38.8805' gradientUnits='userSpaceOnUse'%3e%3cstop offset='0.0001' stop-color='%23C2C2C2'/%3e%3cstop offset='1' stop-color='%23A3A3A3'/%3e%3c/linearGradient%3e%3cclipPath id='clip0_15620_46454'%3e%3crect width='36.08' height='36.08' fill='white' transform='translate(2.96094)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",alt:"End Icon"}),(0,n.jsx)(One,{children:"This Space has ended"}),(0,n.jsx)(e5,Object.assign({padding:"9px 34px",borderRadius:"8px",background:`${r.btnColorPrimary}`,border:`1px solid ${r.borderColor}`,cursor:"pointer",onClick:r=>{t(),e(r)}},{children:(0,n.jsx)(a5,Object.assign({fontSize:"14px",fontWeight:600,color:`${r.textColorPrimary}`},{children:"Close"}))}))]}))}))};var Lne;!function(e){e.Live="ACTIVE",e.Scheduled="PENDING",e.Ended="ENDED"}(Lne||(Lne={}));const Fne=({account:e,spaceData:t,share:r,isHost:o,isTimeToStartSpace:a,isMember:s,isMinimized:c,spaceStatus:u,onClose:l,toggleWidgetVisibility:d})=>{const[f,h]=(0,i.useState)(Lne.Scheduled);return(0,i.useEffect)((()=>{u===Lne.Live&&h(Lne.Live),u===Lne.Scheduled&&h(Lne.Scheduled),u===Lne.Ended&&h(Lne.Ended)}),[u]),(0,n.jsx)(Une,Object.assign({isMinimized:c,height:f===Lne.Live?"485px":"350px"},{children:f===Lne.Live?(0,n.jsx)(kne,{spaceData:t,isHost:o,setSpaceStatusState:h,account:e}):f===Lne.Scheduled?(0,n.jsx)(Dne,{spaceData:t,share:r,isHost:o,isMember:s,isTimeToStartSpace:a,spaceStatusState:f,setSpaceStatusState:h}):(0,n.jsx)(Rne,{onClose:l,toggleWidgetVisibility:d})}))},Une=o.Ay.div.withConfig({displayName:"WidgetContent__Container",componentId:"sc-13gsred-0"})(["display:flex;flex-direction:column;border-bottom:",";height:",";transition:height 300ms ease-out;overflow:hidden;align-items:center;justify-content:space-between;"],(e=>e.theme.borderColor),(e=>e.isMinimized?"0":e.height));var zne="data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M26.5 10C27.6046 10 28.5 9.10457 28.5 8C28.5 6.89543 27.6046 6 26.5 6C25.3954 6 24.5 6.89543 24.5 8C24.5 9.10457 25.3954 10 26.5 10Z' fill='white'/%3e%3cpath d='M26.5 18C27.6046 18 28.5 17.1046 28.5 16C28.5 14.8954 27.6046 14 26.5 14C25.3954 14 24.5 14.8954 24.5 16C24.5 17.1046 25.3954 18 26.5 18Z' fill='white'/%3e%3cpath d='M26.5 26C27.6046 26 28.5 25.1046 28.5 24C28.5 22.8954 27.6046 22 26.5 22C25.3954 22 24.5 22.8954 24.5 24C24.5 25.1046 25.3954 26 26.5 26Z' fill='white'/%3e%3c/svg%3e",Hne="data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M25.5113 13.272L25.5114 13.2721L25.5173 13.2656C25.6713 13.0939 25.7538 12.8686 25.7499 12.6375C25.7459 12.4064 25.6558 12.1841 25.4959 12.0179C25.3356 11.8515 25.1174 11.7544 24.8867 11.7501C24.6559 11.7459 24.4344 11.835 24.2683 11.9957L24.2682 11.9956L24.2621 12.0019L16.5 20.0625L8.73789 12.0019L8.738 12.0018L8.73166 11.9957C8.56563 11.835 8.34408 11.7459 8.11332 11.7501C7.88259 11.7544 7.6644 11.8515 7.50414 12.0179C7.34416 12.1841 7.25406 12.4064 7.25013 12.6375C7.24621 12.8686 7.32869 13.0939 7.48273 13.2656L7.48262 13.2657L7.48873 13.272L15.8754 21.9823L15.8755 21.9825C16.0395 22.1526 16.2639 22.25 16.5 22.25C16.7361 22.25 16.9605 22.1526 17.1245 21.9825L17.1246 21.9823L25.5113 13.272Z' fill='white' stroke='white' stroke-width='0.5'/%3e%3c/svg%3e",Vne="data:image/svg+xml,%3csvg width='16' height='9' viewBox='0 0 16 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6.9906 8.60023L0.418792 2.32688C-0.139597 1.79385 -0.139597 0.932801 0.418792 0.399772C0.977181 -0.133258 1.87919 -0.133258 2.43758 0.399772L8.00716 5.70273L13.5624 0.399772C14.1208 -0.133258 15.0228 -0.133258 15.5812 0.399772C16.1396 0.932801 16.1396 1.79385 15.5812 2.32688L9.0094 8.60023C8.46532 9.13326 7.54899 9.13326 6.9906 8.60023Z' fill='%23B4B4B4'/%3e%3c/svg%3e";const Kne=e=>{const t=(0,i.useContext)(zte),{onClick:r,width:o,height:a,customStyle:s}=e;return(0,n.jsx)(Gne,Object.assign({onClick:r,width:o,height:a,theme:t,customStyle:s},{children:e.children}))},Gne=o.Ay.button.withConfig({displayName:"Button__SpacesButton",componentId:"sc-1honbhg-0"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;padding:",";margin-top:12px;background:",";border:2px solid ",";color:",";border-radius:8px;font-size:14px;font-weight:",";font-family:'Strawford';flex:none;order:0;flex-grow:0;transition:150ms ease-in-out;&:hover{cursor:pointer;}width:",";height:",";"],(e=>e.customStyle?e.customStyle.padding:"10px 16px"),(e=>e.customStyle?e.customStyle.background:e.theme.btnColorPrimary),(e=>e.customStyle?e.customStyle.borderColor:e.theme.btnOutline),(e=>e.customStyle?e.customStyle.color:e.theme.titleTextColor),(e=>e.customStyle?e.customStyle.fontWeight:"700"),(e=>e.width?e.width:"100%"),(e=>e.height?e.height:"100%"));const qne=({title:e,items:t,children:r})=>{const o=(0,i.useContext)(zte),[a,s]=(0,i.useState)(!1);return(0,n.jsxs)(Qne,{children:[(0,n.jsxs)(Jne,Object.assign({onClick:()=>{s((e=>!e))}},{children:[(0,n.jsxs)(Yne,{children:[(0,n.jsx)("div",{children:e}),t?(0,n.jsx)(Zne,Object.assign({theme:o},{children:t})):null]}),(0,n.jsx)($ne,{src:a?"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg' transform='rotate(180)'%3e%3cpath d='M25.5113 13.272L25.5114 13.2721L25.5173 13.2656C25.6713 13.0939 25.7538 12.8686 25.7499 12.6375C25.7459 12.4064 25.6558 12.1841 25.4959 12.0179C25.3356 11.8515 25.1174 11.7544 24.8867 11.7501C24.6559 11.7459 24.4344 11.835 24.2683 11.9957L24.2682 11.9956L24.2621 12.0019L16.5 20.0625L8.73789 12.0019L8.738 12.0018L8.73166 11.9957C8.56563 11.835 8.34408 11.7459 8.11332 11.7501C7.88259 11.7544 7.6644 11.8515 7.50414 12.0179C7.34416 12.1841 7.25406 12.4064 7.25013 12.6375C7.24621 12.8686 7.32869 13.0939 7.48273 13.2656L7.48262 13.2657L7.48873 13.272L15.8754 21.9823L15.8755 21.9825C16.0395 22.1526 16.2639 22.25 16.5 22.25C16.7361 22.25 16.9605 22.1526 17.1245 21.9825L17.1246 21.9823L25.5113 13.272Z' fill='%2382828A' stroke='%2382828A' stroke-width='0.5'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M25.5113 13.272L25.5114 13.2721L25.5173 13.2656C25.6713 13.0939 25.7538 12.8686 25.7499 12.6375C25.7459 12.4064 25.6558 12.1841 25.4959 12.0179C25.3356 11.8515 25.1174 11.7544 24.8867 11.7501C24.6559 11.7459 24.4344 11.835 24.2683 11.9957L24.2682 11.9956L24.2621 12.0019L16.5 20.0625L8.73789 12.0019L8.738 12.0018L8.73166 11.9957C8.56563 11.835 8.34408 11.7459 8.11332 11.7501C7.88259 11.7544 7.6644 11.8515 7.50414 12.0179C7.34416 12.1841 7.25406 12.4064 7.25013 12.6375C7.24621 12.8686 7.32869 13.0939 7.48273 13.2656L7.48262 13.2657L7.48873 13.272L15.8754 21.9823L15.8755 21.9825C16.0395 22.1526 16.2639 22.25 16.5 22.25C16.7361 22.25 16.9605 22.1526 17.1245 21.9825L17.1246 21.9823L25.5113 13.272Z' fill='%2382828A' stroke='%2382828A' stroke-width='0.5'/%3e%3c/svg%3e",alt:"Maximize/Minimize icon"})]})),(0,n.jsx)(Wne,Object.assign({isOpen:a},{children:r}))]})},Qne=o.Ay.div.withConfig({displayName:"Accordion__AccordionParent",componentId:"sc-13astz2-0"})(["border:1px solid #E4E4E7;border-radius:8px;padding:6.5px 0;margin:16px 0;"]),Wne=o.Ay.div.withConfig({displayName:"Accordion__AccordionBody",componentId:"sc-13astz2-1"})(["overflow-y:scroll;max-height:",";transition:max-height 200ms ease-out;"],(({isOpen:e})=>e?"200px":"0")),Jne=o.Ay.div.withConfig({displayName:"Accordion__AccordionTitle",componentId:"sc-13astz2-2"})(["display:flex;justify-content:space-between;align-items:center;padding:8px 16px;cursor:pointer;"]),Yne=o.Ay.div.withConfig({displayName:"Accordion__Title",componentId:"sc-13astz2-3"})(["display:flex;align-items:center;"]),Zne=o.Ay.div.withConfig({displayName:"Accordion__PendingCount",componentId:"sc-13astz2-4"})(["background:",";border-radius:8px;padding:4px 10px;margin-left:6px;font-size:13px;color:",";"],(e=>e.theme.btnColorPrimary),(e=>e.theme.titleTextColor)),$ne=o.Ay.img.withConfig({displayName:"Accordion__Image",componentId:"sc-13astz2-5"})(["display:flex;max-height:initial;vertical-align:middle;overflow:initial;cursor:pointer;height:",";width:",";align-self:center;"],(e=>e.height||"24px"),(e=>e.width||"20px")),Xne=e=>{const t=(0,i.useContext)(zte);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(eie,{children:[(0,n.jsx)(tie,{children:(0,n.jsx)("label",{children:e.labelName})}),(0,n.jsxs)(nie,{children:[(0,n.jsx)(rie,{theme:t,value:e.inputValue,onChange:t=>{e.onInputChange(t)},placeholder:"Search..."}),(0,n.jsx)(iie,Object.assign({onClick:e.clearInput},{children:(0,n.jsx)(Bre,{})}))]})]})}))},eie=o.Ay.div.withConfig({displayName:"SearchInput__InputContainer",componentId:"sc-1f35nbe-0"})(["display:flex;flex-direction:column;margin:16px 0;font-family:'Strawford';"]),tie=o.Ay.div.withConfig({displayName:"SearchInput__LabelContainer",componentId:"sc-1f35nbe-1"})(["display:flex;justify-content:space-between;font-weight:500;color:",""],(e=>{var t;return null!==(t=e.theme.textColorPrimary)&&void 0!==t?t:"#000"})),rie=o.Ay.input.withConfig({displayName:"SearchInput__Input",componentId:"sc-1f35nbe-2"})(["padding:16px;margin-top:12px;width:330px;background:#FFFFFF;border:2px solid ",";border-radius:12px;"],(e=>e.theme.btnOutline)),nie=o.Ay.div.withConfig({displayName:"SearchInput__InputWrapper",componentId:"sc-1f35nbe-3"})(["position:relative;"]),iie=o.Ay.div.withConfig({displayName:"SearchInput__CloseBtn",componentId:"sc-1f35nbe-4"})(["position:absolute;right:0;top:0;padding:1.75rem 0.75rem;"]),oie=({height:e,width:t,color:r})=>(0,n.jsxs)("svg",Object.assign({width:null!=t?t:"36",height:null!=e?e:"40",viewBox:"0 0 36 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M16 12C16 13.1046 16.8954 14 18 14C19.1046 14 20 13.1046 20 12C20 10.8954 19.1046 10 18 10C16.8954 10 16 10.8954 16 12Z",fill:null!=r?r:"black"}),(0,n.jsx)("path",{d:"M16 20C16 21.1046 16.8954 22 18 22C19.1046 22 20 21.1046 20 20C20 18.8954 19.1046 18 18 18C16.8954 18 16 18.8954 16 20Z",fill:null!=r?r:"black"}),(0,n.jsx)("path",{d:"M16 28C16 29.1046 16.8954 30 18 30C19.1046 30 20 29.1046 20 28C20 26.8954 19.1046 26 18 26C16.8954 26 16 26.8954 16 28Z",fill:null!=r?r:"black"})]})),aie=e=>{var t;const{closeInviteModal:r,makeScheduleVisible:a,createSpace:s,isLoading:c,invitedMembersList:u,setInvitedMembersList:l,invitedAddressList:d,setInvitedAddressList:f,adminsList:h,setAdminsList:p,adminsAddressList:g,setAdminsAddressList:m,onClose:y,btnString:b}=e,v=(0,i.useContext)(zte),{env:w,account:A,customSearch:C}=M9(),[E,x]=(0,i.useState)(""),[S,I]=(0,i.useState)(!1),[k,T]=(0,i.useState)({}),[M,P]=(0,i.useState)(""),j=()=>{x(""),T({}),P("")},D=e=>{P(e),setTimeout((()=>{P("")}),2e3)},O=e=>{0===d.length||0===g.length||!d.includes(e.did.substring(7))&&!g.includes(e.did.substring(7))?(e.did?(f([...d,e.did.substring(7)]),l([...u,e])):(f([...d,e.handle]),l([...u,e])),j()):D("Already Invited")},B=e=>{e.did?(p([...h,e]),m([...g,e.did.substring(7)])):(p([...h,e]),m([...g,e.handle]));const t=u.filter((t=>t!==e));if(l(t),e.did){const t=d.filter((t=>t!==e.did.substring(7)));f(t)}else{const t=d.filter((t=>t!==e.handle));f(t)}j()},N=e=>{const t=u.filter((t=>t!==e));if(l(t),e.did){const t=d.filter((t=>t!==e.did.substring(7)));f(t)}else{const t=d.filter((t=>t!==e.handle));f(t)}},R=e=>{const t=h.filter((t=>t!==e));if(p(t),e.did){const t=g.filter((t=>t!==e.did.substring(7)));m(t)}else{const t=g.filter((t=>t!==e.handle));m(t)}};return(0,n.jsx)(o.NP,Object.assign({theme:v},{children:(0,n.jsxs)(jre,Object.assign({clickawayClose:y},{children:[(0,n.jsx)(Rre,{heading:"Invite members",backCallback:a,closeCallback:r}),(0,n.jsx)(Xne,{labelName:"Add users",inputValue:E,onInputChange:e=>pJ(void 0,void 0,void 0,(function*(){if(x(e.target.value),e.target.value!==A)if(C){const t=C(e.target.value),r=(e,t)=>{const r=Object.keys(e);return r.length<4&&r[0]===t};if(r(t,"account")){const e=cne({seed:t.account,size:10,scale:3}),r={handle:t.account,name:t.account,image:e.toDataURL()};T(r)}else T(t)}else try{I(!0);const t=yield _.user.get({account:e.target.value,env:w});if(null===t){const t=cne({seed:e.target.value,size:10,scale:3}),r={handle:e.target.value,name:e.target.value,image:t.toDataURL()};T(r)}else T(t);P("")}catch($R){console.error($R.message),T({}),P($R.message)}finally{I(!1)}else D("Cannot add Host to members")})),clearInput:j}),(0,n.jsx)(hie,{children:M}),(0,n.jsxs)(sie,{children:[S&&(0,n.jsx)(Ane,{}),0===Object.keys(k).length?null:k.hasOwnProperty("handle")?(0,n.jsx)(Vre,{imageHeight:"48px",handle:k.handle,name:k.name,imageUrl:k.image,contBtn:(0,n.jsx)(fie,{children:"Add +"}),btnCallback:()=>O(k),border:!0}):(0,n.jsx)(Vre,{imageHeight:"48px",handle:k.did.substring(7),name:null!==(t=k.profile.name)&&void 0!==t?t:k.did.substring(7),imageUrl:k.profile.picture,contBtn:(0,n.jsx)(fie,{children:"Add +"}),btnCallback:()=>O(k),border:!0})]}),u.length?(0,n.jsxs)(cie,{children:[(0,n.jsxs)(uie,{children:["Invited Members ",(0,n.jsx)(lie,Object.assign({theme:v},{children:u.length}))]}),u.map((e=>{var t;return e.hasOwnProperty("handle")?(0,n.jsx)(Vre,{imageHeight:"48px",handle:e.handle,name:e.name,imageUrl:e.image,contBtn:(0,n.jsx)(die,{children:(0,n.jsx)(oie,{color:v.textColorPrimary})}),removeCallback:()=>N(e),promoteCallback:()=>B(e),border:!0}):(0,n.jsx)(Vre,{imageHeight:"48px",handle:e.did.substring(7),name:null!==(t=e.profile.name)&&void 0!==t?t:e.did.substring(7),imageUrl:e.profile.picture,contBtn:(0,n.jsx)(die,{children:(0,n.jsx)(oie,{color:v.textColorPrimary})}),removeCallback:()=>N(e),promoteCallback:()=>B(e),border:!0})}))]}):null,h.length?(0,n.jsxs)(cie,{children:[(0,n.jsxs)(uie,{children:["Speakers ",(0,n.jsx)(lie,Object.assign({theme:v},{children:h.length}))]}),h.map((e=>{var t;return e.hasOwnProperty("handle")?(0,n.jsx)(Vre,{imageHeight:"48px",handle:e.handle,name:e.name,imageUrl:e.image,contBtn:(0,n.jsx)(die,{children:(0,n.jsx)(oie,{color:v.textColorPrimary})}),removeCallback:()=>R(e),border:!0}):(0,n.jsx)(Vre,{imageHeight:"48px",handle:e.did.substring(7),name:null!==(t=e.profile.name)&&void 0!==t?t:e.did.substring(7),imageUrl:e.profile.picture,contBtn:(0,n.jsx)(die,{children:(0,n.jsx)(oie,{color:v.textColorPrimary})}),removeCallback:()=>R(e),border:!0})}))]}):null,(0,n.jsx)(Kne,Object.assign({onClick:s,width:"max-content"},{children:c?(0,n.jsx)($6,{}):null!=b?b:"Create Space"}))]}))}))},sie=o.Ay.div.withConfig({displayName:"SCWInviteModal__MembersList",componentId:"sc-1kkr9mx-0"})(["width:100%;display:flex;flex-direction:column;gap:8px;"]),cie=o.Ay.div.withConfig({displayName:"SCWInviteModal__InvitedList",componentId:"sc-1kkr9mx-1"})(["width:100%;display:flex;flex-direction:column;gap:8px;margin-top:28px;"]),uie=o.Ay.div.withConfig({displayName:"SCWInviteModal__Heading",componentId:"sc-1kkr9mx-2"})(["display:flex;align-items:center;"]),lie=o.Ay.div.withConfig({displayName:"SCWInviteModal__PendingCount",componentId:"sc-1kkr9mx-3"})(["background:",";border-radius:8px;padding:4px 10px;margin-left:6px;font-size:13px;color:",";"],(e=>e.theme.btnColorPrimary),(e=>e.theme.titleTextColor)),die=o.Ay.div.withConfig({displayName:"SCWInviteModal__SettingsCont",componentId:"sc-1kkr9mx-4"})(["display:flex;justify-content:center;align-items:center;cursor:pointer;"]),fie=o.Ay.button.withConfig({displayName:"SCWInviteModal__ContBtn",componentId:"sc-1kkr9mx-5"})(["display:flex;flex-direction:row;align-items:center;margin-left:8px;line-height:18px;width:max-content;background:transparent;color:",";border-radius:6px;font-weight:500;font-size:12px;padding:4px 8px;border-radius:8px;border:1px solid ",";cursor:pointer;"],(e=>e.theme.btnColorPrimary),(e=>e.theme.btnOutline)),hie=o.Ay.div.withConfig({displayName:"SCWInviteModal__ErrorMessage",componentId:"sc-1kkr9mx-6"})(["color:#E93636;font-size:14px;margin-bottom:8px;"]),pie=e=>{var t,r,o,a,s,c,u,l;const{spaceData:d}=e,f=(0,i.useContext)(zte),[h,p]=(0,i.useState)(!1),[g,m]=(0,i.useState)([]),[y,b]=(0,i.useState)([]),[v,w]=(0,i.useState)([]),[A,C]=(0,i.useState)([]),[E,x]=(0,i.useState)(!1),{signer:S,env:I,pgpPrivateKey:k}=M9(),T={color:null==f?void 0:f.textColorPrimary,background:null==f?void 0:f.bgColorPrimary,borderColor:null==f?void 0:f.borderColor,fontWeight:"500",padding:"14px"},M=()=>{p(!h)},P=null===(t=null==d?void 0:d.members)||void 0===t?void 0:t.filter((e=>e.isSpeaker));return(0,n.jsx)(jre,Object.assign({width:"400px"},{children:(0,n.jsxs)(gie,Object.assign({theme:f},{children:[(0,n.jsx)(Rre,{heading:"Spaces Info",closeCallback:e.closeSpacesInfo}),(0,n.jsx)(Vre,{imageUrl:null===(r=null==d?void 0:d.members[0])||void 0===r?void 0:r.image,name:null===(a=null===(o=null==d?void 0:d.members[0])||void 0===o?void 0:o.wallet)||void 0===a?void 0:a.substring(7),handle:null===(c=null===(s=null==d?void 0:d.members[0])||void 0===s?void 0:s.wallet)||void 0===c?void 0:c.substring(7),imageHeight:"48px",tag:"Host"}),(0,n.jsxs)(mie,{children:[(0,n.jsx)(yie,{children:null==d?void 0:d.spaceName}),(0,n.jsx)(bie,Object.assign({theme:f},{children:null==d?void 0:d.spaceDescription}))]}),(0,n.jsx)(Kne,Object.assign({customStyle:T,onClick:M},{children:"Invite Members"})),(null===(u=null==d?void 0:d.pendingMembers)||void 0===u?void 0:u.length)?(0,n.jsx)(qne,Object.assign({title:"Pending Invites",items:null===(l=null==d?void 0:d.pendingMembers)||void 0===l?void 0:l.length},{children:(null==d?void 0:d.pendingMembers)&&d.pendingMembers.map((e=>{var t,r;return(0,n.jsx)(Vre,{tag:(null==e?void 0:e.isSpeaker)?"Co-Host":void 0,imageHeight:"48px",handle:null===(t=null==e?void 0:e.wallet)||void 0===t?void 0:t.substring(7),name:null===(r=null==e?void 0:e.wallet)||void 0===r?void 0:r.substring(7),imageUrl:null==e?void 0:e.image})}))})):null,(0,n.jsx)(vie,{children:P&&P.slice(1).map((e=>{var t,r;return(0,n.jsx)(Vre,{border:!0,tag:"Co-Host",imageHeight:"48px",handle:null===(t=null==e?void 0:e.wallet)||void 0===t?void 0:t.substring(7),name:null===(r=null==e?void 0:e.wallet)||void 0===r?void 0:r.substring(7),imageUrl:null==e?void 0:e.image})}))}),h?(0,n.jsx)(aie,{closeInviteModal:M,makeScheduleVisible:M,createSpace:()=>pJ(void 0,void 0,void 0,(function*(){const e=Object.assign({spaceName:null==d?void 0:d.spaceName,spaceDescription:"Push Space",listeners:y,spaceImage:"asd",speakers:A,isPublic:!0,scheduleAt:new Date(Date.now()+12e4),signer:S,env:I,spaceId:null==d?void 0:d.spaceId,status:null==d?void 0:d.status},k&&""!==k&&{pgpPrivateKey:k});try{x(!0);const t=yield _.space.update(e);console.log(t)}catch($R){console.error($R.message)}finally{x(!1),p(!1)}})),isLoading:E,invitedMembersList:g,setInvitedMembersList:m,invitedAddressList:y,setInvitedAddressList:b,adminsList:v,setAdminsList:w,adminsAddressList:A,setAdminsAddressList:C,onClose:M,btnString:"Update Space"}):null]}))}))},gie=o.Ay.div.withConfig({displayName:"SpacesInfo__SpacesInfoContainer",componentId:"sc-12pbtz1-0"})(["color:",";width:100%;"],(e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.textColorPrimary})),mie=o.Ay.div.withConfig({displayName:"SpacesInfo__SpacesDetailsContainer",componentId:"sc-12pbtz1-1"})(["padding:0 16px;margin:24px 0;"]),yie=o.Ay.div.withConfig({displayName:"SpacesInfo__Title",componentId:"sc-12pbtz1-2"})(["font-weight:500;"]),bie=o.Ay.div.withConfig({displayName:"SpacesInfo__Description",componentId:"sc-12pbtz1-3"})(["color:",";"],(e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.textColorSecondary})),vie=o.Ay.div.withConfig({displayName:"SpacesInfo__AdminsList",componentId:"sc-12pbtz1-4"})(["display:flex;flex-direction:column;gap:8px;margin-top:8px;"]),wie=({onClose:e,isMinimized:t,isHost:r,setIsMinimized:a,toggleWidgetVisibility:s,spaceData:c,spaceStatus:u})=>{var l,d,f,h,p;const g=(0,i.useContext)(zte),{isJoined:m}=M9(),[y,b]=(0,i.useState)(!1),[v,w]=(0,i.useState)(Lne.Scheduled),A=t=>{s(),e(t)},C=()=>{b(!y),console.log(y)};return(0,i.useEffect)((()=>{u===Lne.Live&&w(Lne.Live),u===Lne.Scheduled&&w(Lne.Scheduled),u===Lne.Ended&&w(Lne.Ended)}),[u]),(0,n.jsx)(o.NP,Object.assign({theme:g},{children:(0,n.jsxs)(Aie,Object.assign({theme:g},{children:[(v===Lne.Scheduled||v===Lne.Ended)&&(0,n.jsxs)(Eie,{children:[(0,n.jsx)(e5,Object.assign({marginBottom:"12px"},{children:(0,n.jsx)(sre,{statusTheme:"Live",imageUrl:(null===(l=null==c?void 0:c.members[0])||void 0===l?void 0:l.image)||"https://imgv3.fotor.com/images/blog-richtext-image/10-profile-picture-ideas-to-make-you-stand-out.jpg",name:`${null===(d=null==c?void 0:c.spaceCreator)||void 0===d?void 0:d.slice(7,12)}...${null===(f=null==c?void 0:c.spaceCreator)||void 0===f?void 0:f.slice(-6,-1)}`||"Host",handle:`${null===(h=null==c?void 0:c.spaceCreator)||void 0===h?void 0:h.slice(7,12)}...${null===(p=null==c?void 0:c.spaceCreator)||void 0===p?void 0:p.slice(-6,-1)}`||"Host"})})),(0,n.jsxs)(e5,Object.assign({display:"flex",alignSelf:"flex-start",alignItems:"center"},{children:[(0,n.jsx)(e5,Object.assign({marginLeft:"8px",display:"flex",onClick:C},{children:(0,n.jsx)(Cie,{alt:"Settings icon",src:zne})})),(0,n.jsx)(e5,Object.assign({marginLeft:"8px",display:"flex"},{children:(0,n.jsx)(Cie,{onClick:()=>a(!t),src:t?Vne:Hne,alt:"Maximize/Minimize icon"})})),!m&&(0,n.jsx)(e5,Object.assign({marginLeft:"8px",display:"flex",onClick:A},{children:(0,n.jsx)(Bre,{stroke:"white",height:"15",width:"15"})}))]}))]}),(0,n.jsxs)(Eie,{children:[(0,n.jsx)(a5,Object.assign({fontSize:"16px",fontWeight:700},{children:(null==c?void 0:c.spaceName)||"Test Space"})),v===Lne.Live&&(0,n.jsxs)(e5,Object.assign({display:"flex",alignSelf:"flex-start",alignItems:"center",marginLeft:"24px"},{children:[(0,n.jsx)(e5,Object.assign({marginLeft:"8px",display:"flex",onClick:C},{children:(0,n.jsx)(Cie,{alt:"Settings icon",src:zne})})),(0,n.jsx)(e5,Object.assign({marginLeft:"8px",display:"flex"},{children:(0,n.jsx)(Cie,{onClick:()=>a(!t),src:t?Vne:Hne,alt:"Maximize/Minimize icon"})})),!m&&(0,n.jsx)(e5,Object.assign({marginLeft:"8px",display:"flex",onClick:A},{children:(0,n.jsx)(Bre,{stroke:"white",height:"15",width:"15"})}))]}))]}),v===Lne.Scheduled&&(0,n.jsxs)(e5,Object.assign({display:"flex",marginTop:"12px",alignItems:"center"},{children:[(0,n.jsx)(Cie,{src:"data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M16.25 3.125H3.75C3.40482 3.125 3.125 3.40482 3.125 3.75V16.25C3.125 16.5952 3.40482 16.875 3.75 16.875H16.25C16.5952 16.875 16.875 16.5952 16.875 16.25V3.75C16.875 3.40482 16.5952 3.125 16.25 3.125Z' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M13.75 1.875V4.375' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6.25 1.875V4.375' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M3.125 6.875H16.875' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",alt:"Calendar Icon"}),(0,n.jsx)(e5,Object.assign({marginLeft:"4px",fontSize:"14px",fontWeight:600},{children:l9((null==c?void 0:c.scheduleAt)||new Date)}))]})),v===Lne.Live&&(0,n.jsxs)(Eie,Object.assign({marginTop:"12px"},{children:[(0,n.jsxs)(e5,Object.assign({display:"flex",alignItems:"center"},{children:[(0,n.jsx)(Cie,{src:mre,alt:"Calendar Icon"}),(0,n.jsx)(a5,Object.assign({fontSize:"14px",fontWeight:600,marginLeft:"4px"},{children:"Live"}))]})),(0,n.jsx)(e5,Object.assign({display:"flex",alignItems:"center"},{children:(0,n.jsx)(e5,{children:(0,n.jsx)(rre,{participants:null==c?void 0:c.members,orientation:"maximized"})})}))]})),y?(0,n.jsx)(pie,{closeSpacesInfo:()=>{b(!1)},spaceData:c}):null]}))}))},Aie=o.Ay.div.withConfig({displayName:"WidgetHeader__Container",componentId:"sc-1va1891-0"})(["display:flex;flex-direction:column;color:",";padding:16px 24px;background:",";"],(e=>e.theme.titleTextColor),(e=>e.theme.titleBg)),Cie=o.Ay.img.withConfig({displayName:"WidgetHeader__Image",componentId:"sc-1va1891-1"})(["display:flex;max-height:initial;vertical-align:middle;overflow:initial;cursor:pointer;height:",";width:",";align-self:center;"],(e=>e.height||"24px"),(e=>e.width||"20px")),Eie=o.Ay.div.withConfig({displayName:"WidgetHeader__Section",componentId:"sc-1va1891-2"})(["display:flex;justify-content:space-between;margin-top:",";"],(e=>e.marginTop)),xie=16,Sie=e=>{const{bottomOffset:t=xie,rightOffset:r=xie,width:a,zIndex:s=1e3,spaceId:c,share:u,onClose:l=()=>{},isTimeToStartSpace:d}=e||{},f=(0,i.useRef)(),[h,p]=(0,i.useState)(!c),[g,m]=(0,i.useState)(!1),[y,b]=(0,i.useState)(),{getSpaceInfo:v,setSpaceInfo:w,account:A,env:C,spaceInfo:E}=M9();(0,i.useEffect)((()=>{if(!c)return;p(!c);pJ(void 0,void 0,void 0,(function*(){try{if(v(c))return void b(v(c));const e=yield _.space.get({spaceId:c,env:C});w(c,e),b(e)}catch(ys){console.error(ys)}}))}),[C,v,w,c]),(0,i.useEffect)((()=>{c&&E[c]&&(f.current=E[c].status)}),[c,E]);const x=((e,t)=>L9(e,null==t?void 0:t.spaceCreator))(A,y),S=((e,t)=>{const r=null==t?void 0:t.members.filter((t=>L9(e,t.wallet)));return(null==r?void 0:r.length)>0})(A,y),I=()=>{p(!h)};return(0,n.jsx)(o.NP,Object.assign({theme:i.useContext(zte)},{children:(0,n.jsxs)(Iie,Object.assign({bottomOffset:t,rightOffset:r,hidden:h,width:a,zIndex:s},{children:[(0,n.jsx)(wie,{onClose:l,isMinimized:g,setIsMinimized:m,toggleWidgetVisibility:I,isHost:x,spaceStatus:f.current,spaceData:y}),(0,n.jsx)(Fne,{onClose:l,account:A,spaceData:y,share:u,isHost:x,spaceStatus:f.current,isMember:S,isTimeToStartSpace:d,isMinimized:g,toggleWidgetVisibility:I})]}))}))},Iie=o.Ay.div.withConfig({displayName:"SpaceWidget__Container",componentId:"sc-1nlioj1-0"})(["font-family:'Strawford';border-radius:12px;border:1px solid ",";display:flex;flex-direction:column;width:",";max-width:",";min-width:320px;background:",";justify-content:flex-start;position:fixed;bottom:","px;right:","px;visibility:",";opacity:",";transition:opacity 0.3s ease;z-index:",";overflow:hidden;"],(e=>e.theme.borderColor),(e=>e.width?`${e.width}px`:"415px"),(e=>e.width?`${e.width}px`:"415px"),(e=>e.theme.bgColorPrimary),(e=>e.bottomOffset),(e=>e.rightOffset),(e=>e.hidden?"hidden":"visible"),(e=>e.hidden?0:1),(e=>{var t;return null!==(t=e.zIndex)&&void 0!==t?t:"1000"}));var kie,_ie,Tie;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(kie||(kie={})),function(e){e.ForYou="For You",e.Popular="Popular",e.HostedByYou="Hosted by you"}(_ie||(_ie={})),function(e){e.All="All",e.Live="Live",e.Scheduled="Scheduled"}(Tie||(Tie={}));const Mie=({orientation:e=kie.Vertical,height:t,width:r,sortingOrder:a=["Popular","ForYou","HostedByYou"],showTabs:s=!0,filter:c=Tie.All,showFilter:u=!0,onBannerClickHandler:l})=>{var d,f,h;const p=(0,i.useContext)(zte),[g,m]=(0,i.useState)(c),{selectedFeedTab:y,setSelectedFeedTab:b}=M9(),{account:v,mySpaces:w,setMySpaces:A,popularSpaces:C,setPopularSpaces:E,spaceRequests:x,setSpaceRequests:S}=M9(),I=O9(null===(d=w.apiData)||void 0===d||d.length),k=e=>g===Tie.All?e:g===Tie.Live?e.filter((e=>{var t;return"ACTIVE"===(null===(t=e.spaceInformation)||void 0===t?void 0:t.status)})):g===Tie.Scheduled?e.filter((e=>{var t;return"PENDING"===(null===(t=e.spaceInformation)||void 0===t?void 0:t.status)})):e,_=e=>y===_ie.HostedByYou?e.filter((e=>{var t;return L9(v,null===(t=e.spaceInformation)||void 0===t?void 0:t.spaceCreator)})):y===_ie.ForYou?e.filter((e=>{var t;return!L9(v,null===(t=e.spaceInformation)||void 0===t?void 0:t.spaceCreator)})):k(e),T=e=>{if(l)return l(e||"")},M=e=>pJ(void 0,void 0,void 0,(function*(){!1===O&&e.currentPage&&e.lastPage&&e.currentPage(0,n.jsx)(bre,{spaceId:e.spaceId,orientation:"pill",onBannerClick:l?T:void 0})))):w&&(null===(h=w.apiData)||void 0===h?void 0:h.map((e=>(0,n.jsx)(bre,{spaceId:e.spaceId,orientation:"maximized",onBannerClick:l?T:void 0}))))})):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Die,Object.assign({showTabs:s,width:r,showFilter:u},{children:(0,n.jsx)(Oie,{children:a.map((e=>(0,n.jsx)(Bie,Object.assign({active:y===_ie[e],onClick:()=>b(_ie[e])},{children:_ie[e]}))))})})),(0,n.jsxs)(Lie,Object.assign({showFilter:u},{children:[(0,n.jsx)(Fie,Object.assign({active:g===Tie.All,onClick:()=>m(Tie.All)},{children:"All"})),(0,n.jsx)(Fie,Object.assign({active:g===Tie.Live,onClick:()=>m(Tie.Live)},{children:"Live"})),(0,n.jsx)(Fie,Object.assign({active:g===Tie.Scheduled,onClick:()=>m(Tie.Scheduled)},{children:"Scheduled"}))]})),(0,n.jsx)(Pie,Object.assign({width:r,height:t,ref:I,onScroll:()=>{if(I.current){const{scrollTop:e}=I.current,{offsetHeight:t}=I.current,{scrollHeight:r}=I.current;e+t+1>=r&&pJ(void 0,void 0,void 0,(function*(){y===_ie.ForYou&&M(w),y===_ie.Popular&&M(C),y===_ie.HostedByYou&&M(x)}))}}},{children:(0,n.jsxs)(jie,{children:[y===_ie.ForYou?(0,n.jsx)(Nie,Object.assign({orientation:e},{children:w.apiData&&(0===k(_(w.apiData)).length?(0,n.jsxs)(Uie,{children:[(0,n.jsx)(zie,{src:Pne}),(0,n.jsx)(Hie,{children:"Join a space"}),(0,n.jsx)(Vie,{children:"Get started by joining a space"})]}):k(_(w.apiData)).map((e=>(0,n.jsx)(bre,{spaceId:e.spaceId,orientation:"maximized",onBannerClick:l?T:void 0}))))})):y===_ie.Popular?(0,n.jsx)(Rie,{children:C.apiData&&k(C.apiData).map((e=>(0,n.jsx)(bre,{spaceId:e.spaceId,orientation:"maximized",onBannerClick:l?T:void 0})))}):(0,n.jsx)(Nie,Object.assign({orientation:e},{children:w.apiData&&(0===k(_(w.apiData)).length?(0,n.jsxs)(Uie,{children:[(0,n.jsx)(zie,{src:Pne}),(0,n.jsx)(Hie,{children:"Create a space"}),(0,n.jsx)(Vie,{children:"Get started by creating a space"})]}):k(_(w.apiData)).map((e=>(0,n.jsx)(bre,{spaceId:e.spaceId,orientation:"maximized",onBannerClick:l?T:void 0}))))})),O&&(0,n.jsx)(Ane,{size:"40"})]})}))]})}))}))},Pie=o.Ay.div.withConfig({displayName:"SpaceFeed__ScrollContainer",componentId:"sc-tm8f47-0"})(["width:",";height:",";overflow-y:auto;"],(e=>e.width?`${e.width}px`:"inherit"),(e=>e.height?`${e.height}px`:"auto")),jie=o.Ay.div.withConfig({displayName:"SpaceFeed__Container",componentId:"sc-tm8f47-1"})(["display:flex;flex-direction:column;align-items:center;background:",";border:1px solid ",";border-radius:12px;padding:24px 32px;"],(e=>e.theme.bgColorPrimary),(e=>e.theme.borderColor)),Die=o.Ay.div.withConfig({displayName:"SpaceFeed__Navigation",componentId:"sc-tm8f47-2"})(["display:",";flex-direction:row;justify-content:space-between;align-items:center;width:",";border-bottom:1px solid ",";margin-bottom:",";background:",";}"],(e=>e.showTabs?"flex":"none"),(e=>e.width?`${e.width}px`:"inherit"),(e=>e.theme.borderColor),(e=>e.showFilter?"0":"27px"),(e=>e.theme.bgColorPrimary)),Oie=o.Ay.div.withConfig({displayName:"SpaceFeed__NavButtonWrapper",componentId:"sc-tm8f47-3"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;"]),Bie=o.Ay.button.withConfig({displayName:"SpaceFeed__NavButton",componentId:"sc-tm8f47-4"})(["padding:10px 30px;font-weight:450;font-size:14px;border:none;border-bottom:",";background:none;color:",";&:hover{cursor:pointer;}"],(e=>e.active?`2px solid ${e.theme.btnColorPrimary}`:"none"),(e=>e.active?`${e.theme.textColorPrimary}`:`${e.theme.textColorSecondary}`)),Nie=o.Ay.div.withConfig({displayName:"SpaceFeed__Spaces",componentId:"sc-tm8f47-5"})(["display:flex;flex-direction:",";justify-content:flex-start;align-items:center;background:",";width:",";height:auto;gap:16px;"],(e=>"horizontal"===e.orientation?"row":"column"),(e=>e.theme.bgColorPrimary),(e=>"horizontal"===e.orientation?"inherit":"100%")),Rie=o.Ay.div.withConfig({displayName:"SpaceFeed__PopularSpaces",componentId:"sc-tm8f47-6"})(["display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:",";width:100%;height:auto;gap:16px;"],(e=>e.theme.bgColorPrimary)),Lie=o.Ay.div.withConfig({displayName:"SpaceFeed__Filter",componentId:"sc-tm8f47-8"})(["display:",";flex-direction:row;justify-content:flex-start;align-items:center;background:",";width:100%;margin:22px 0;"],(e=>e.showFilter?"flex":"none"),(e=>e.theme.bgColorPrimary)),Fie=o.Ay.button.withConfig({displayName:"SpaceFeed__FilterButton",componentId:"sc-tm8f47-9"})(["display:inline-flex;height:30px;padding:0px 16px;justify-content:center;align-items:center;border-radius:99px;border:1px solid ",";background:",";color:",";margin-right:8px;font-size:14px;&:hover{cursor:pointer;}"],(e=>e.theme.borderColor),(e=>e.active?`${e.theme.btnColorPrimary}`:`${e.theme.bgColorSecondary}`),(e=>e.active?`${e.theme.titleTextColor}`:`${e.theme.textColorPrimary}`)),Uie=o.Ay.div.withConfig({displayName:"SpaceFeed__NoSpaces",componentId:"sc-tm8f47-10"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;margin:130px 0;"]),zie=o.Ay.img.withConfig({displayName:"SpaceFeed__SpacesIcon",componentId:"sc-tm8f47-11"})(["width:36px;height:36px;"]),Hie=o.Ay.div.withConfig({displayName:"SpaceFeed__NoSpacesTextV1",componentId:"sc-tm8f47-12"})(["font-family:'Strawford';font-weight:450;font-size:16px;color:","};}"],(e=>e.theme.textColorPrimary)),Vie=o.Ay.div.withConfig({displayName:"SpaceFeed__NoSpacesTextV2",componentId:"sc-tm8f47-13"})(["font-family:'Strawford';font-weight:450;color:","};font-size:14px;"],(e=>e.theme.textColorSecondary)),Kie=({children:e,actionCallback:t,onBannerClickHandler:r})=>{var a,s,c;const u=(0,i.useContext)(zte),[l,d]=(0,i.useState)(!1),{spaceRequests:f,setSpaceRequests:h}=M9(),p=O9(null===(a=f.apiData)||void 0===a||a.length),{account:g}=M9(),m=()=>{d(!0)},y=()=>{d(!1)},b=()=>{t&&t(),d(!1)},v=e=>{if(r)return r(e||"")},{loading:w}=D9(g);return(0,n.jsxs)(o.NP,Object.assign({theme:u},{children:[!e&&(0,n.jsx)(Gie,Object.assign({onClick:m},{children:"Space Invites"})),e&&(0,n.jsx)("div",Object.assign({onClick:m},{children:e})),l&&(0,n.jsxs)(jre,Object.assign({clickawayClose:y,width:"450px"},{children:[(0,n.jsx)(Rre,{heading:"Spaces Invites",headingBadgeNumber:(null===(s=f.apiData)||void 0===s?void 0:s.length)>0?null===(c=f.apiData)||void 0===c?void 0:c.length:void 0,closeCallback:y}),(0,n.jsx)(qie,Object.assign({ref:p,onScroll:()=>{if(p.current){const{scrollTop:e,scrollHeight:t,clientHeight:r}=p.current;e+r>=t&&!1===w&&f.currentPage&&f.lastPage&&f.currentPage(0,n.jsx)(bre,{spaceId:e.spaceId,orientation:"maximized",isInvite:!0,actionCallback:b,onBannerClick:r?v:void 0}))):null,w?(0,n.jsx)(Ane,{size:"40"}):null]})}))]}))]}))},Gie=o.Ay.button.withConfig({displayName:"SpaceInvites__Button",componentId:"sc-hjjf1x-0"})(["padding:8px 16px;background-color:",";color:",";border:none;border-radius:4px;cursor:pointer;"],(e=>e.theme.btnColorPrimary),(e=>e.theme.textColorPrimary)),qie=o.Ay.div.withConfig({displayName:"SpaceInvites__ScrollContainer",componentId:"sc-hjjf1x-1"})(["max-height:400px;width:inherit;margin-top:24px;overflow-y:scroll;&::-webkit-scrollbar{margin-left:10px;width:8px;height:8px;}&::-webkit-scrollbar-thumb{-webkit-appearance:none;width:4px;height:auto;background:",";border-radius:99px;}"],(e=>e.theme.btnColorPrimary)),Qie=o.Ay.div.withConfig({displayName:"SpaceInvites__InviteContainer",componentId:"sc-hjjf1x-2"})(["display:flex;flex-direction:column;gap:16px;margin:0 10px;"]),Wie=e=>{const t=(0,i.useContext)(zte);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(Jie,{children:[(0,n.jsxs)(Yie,{children:[(0,n.jsx)("label",{children:e.labelName}),(0,n.jsxs)($ie,Object.assign({theme:t},{children:[e.inputValue.length," / ",e.charCount]}))]}),(0,n.jsx)(Zie,{theme:t,value:e.inputValue,onChange:t=>{t.target.value.length<=e.charCount&&e.onInputChange(t)}})]})}))},Jie=o.Ay.div.withConfig({displayName:"TextInput__InputContainer",componentId:"sc-qbpum2-0"})(["display:flex;flex-direction:column;margin:16px 0;font-family:'Strawford';"]),Yie=o.Ay.div.withConfig({displayName:"TextInput__LabelContainer",componentId:"sc-qbpum2-1"})(["display:flex;justify-content:space-between;font-weight:500;color:",""],(e=>{var t;return null!==(t=e.theme.textColorPrimary)&&void 0!==t?t:"#000"})),Zie=o.Ay.input.withConfig({displayName:"TextInput__Input",componentId:"sc-qbpum2-2"})(["padding:16px;margin-top:12px;width:330px;background:#FFFFFF;border:2px solid ",";border-radius:12px;font-family:'Strawford';font-size:14px;"],(e=>e.theme.btnOutline)),$ie=o.Ay.div.withConfig({displayName:"TextInput__CharCounter",componentId:"sc-qbpum2-3"})(["color:",";"],(e=>e.theme.textColorSecondary)),Xie=({height:e,width:t,color:r})=>(0,n.jsxs)("svg",Object.assign({width:t||"15",height:e||"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M5.72237 11.7409H3.94459C3.31593 11.7409 2.71301 11.4912 2.26848 11.0466C1.82395 10.6021 1.57422 9.99918 1.57422 9.37052V4.03718C1.57422 3.40852 1.82395 2.80561 2.26848 2.36108C2.71301 1.91655 3.31593 1.66681 3.94459 1.66681H10.4631C11.0918 1.66681 11.6947 1.91655 12.1392 2.36108C12.5837 2.80561 12.8335 3.40852 12.8335 4.03718V5.81496M5.12977 1.07422V2.2594M9.27792 1.07422V2.2594M1.57422 4.62977H12.8335M11.352 9.15896L10.4631 10.0478",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.18519","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M10.463 12.9259C12.0994 12.9259 13.4259 11.5994 13.4259 9.96296C13.4259 8.32656 12.0994 7 10.463 7C8.82656 7 7.5 8.32656 7.5 9.96296C7.5 11.5994 8.82656 12.9259 10.463 12.9259Z",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.18519","stroke-linecap":"round","stroke-linejoin":"round"})]})),eoe=e=>{const t=(0,i.useContext)(zte),{isInviteVisible:r,closeCreateModal:a,handleNameChange:s,handleDescriptionChange:c,nameValue:u,descriptionValue:l,isDescriptionEnabled:d,isScheduleVisible:f,onClose:h}=e,p={background:"transparent",borderColor:t.btnOutline};return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(jre,Object.assign({clickawayClose:h},{children:[(0,n.jsx)(Rre,{heading:"Create your space",closeCallback:a}),(0,n.jsx)(Wie,{labelName:"Name",inputValue:u,onInputChange:s,charCount:50}),d?(0,n.jsx)(Wie,{labelName:"Description",inputValue:l,onInputChange:c,charCount:120}):null,(0,n.jsxs)(toe,{children:[(0,n.jsx)(Kne,Object.assign({onClick:r,width:"85%"},{children:"Create Space"})),(0,n.jsx)("div",Object.assign({title:"Schedule your Space"},{children:(0,n.jsx)(Kne,Object.assign({width:"40px",height:"41px",customStyle:p,onClick:f},{children:(0,n.jsx)(Xie,{height:"20",width:"20",color:t.btnColorPrimary})}))}))]})]}))}))},toe=o.Ay.div.withConfig({displayName:"SCWCreateModal__ButtonContainer",componentId:"sc-gl8ef6-0"})(["display:flex;justify-content:space-between;width:100%;"]),roe=e=>{const{propsDate:t,onDateChange:r,onTimeChange:o}=e,a=(0,i.useContext)(zte),[s,c]=(0,i.useState)("0"),[u,l]=(0,i.useState)("0"),[d,f]=(0,i.useState)("AM"),[h,p]=(0,i.useState)(0);console.log("\ud83d\ude80 ~ file: DateTimePicker.tsx:24 ~ timeHumanReadable:",h);return(0,i.useEffect)((()=>{const e=((e,t,r,n)=>{let i=60*e+t;"PM"===r&&12!==e?i+=720:"AM"===r&&12===e&&(i-=720);const o=new Date(n);return o.setHours(0,0,0,0),o.setMinutes(i),o.getTime()})(parseInt(s,10),parseInt(u,10),d,t);p(e),o(e)}),[s,u,d,t]),(0,n.jsxs)(noe,{children:[(0,n.jsx)("div",{children:"Select date and time"}),(0,n.jsx)(ioe,{theme:a,type:"date",value:t.toISOString().split("T")[0],onChange:e=>{const t=new Date(e.target.value);r(t)}}),(0,n.jsxs)(ooe,{children:[(0,n.jsxs)(aoe,Object.assign({theme:a,value:s,onChange:e=>c(e.target.value),placeholder:"Hours"},{children:[(0,n.jsx)("option",Object.assign({value:"00"},{children:"12"})),(0,n.jsx)("option",Object.assign({value:"01"},{children:"01"})),(0,n.jsx)("option",Object.assign({value:"02"},{children:"02"})),(0,n.jsx)("option",Object.assign({value:"03"},{children:"03"})),(0,n.jsx)("option",Object.assign({value:"04"},{children:"04"})),(0,n.jsx)("option",Object.assign({value:"05"},{children:"05"})),(0,n.jsx)("option",Object.assign({value:"06"},{children:"06"})),(0,n.jsx)("option",Object.assign({value:"07"},{children:"07"})),(0,n.jsx)("option",Object.assign({value:"08"},{children:"08"})),(0,n.jsx)("option",Object.assign({value:"09"},{children:"09"})),(0,n.jsx)("option",Object.assign({value:"10"},{children:"10"})),(0,n.jsx)("option",Object.assign({value:"11"},{children:"11"}))]})),(0,n.jsxs)(aoe,Object.assign({theme:a,value:u,onChange:e=>l(e.target.value),placeholder:"Minutes"},{children:[(0,n.jsx)("option",Object.assign({value:"00"},{children:"00"})),(0,n.jsx)("option",Object.assign({value:"15"},{children:"15"})),(0,n.jsx)("option",Object.assign({value:"30"},{children:"30"})),(0,n.jsx)("option",Object.assign({value:"45"},{children:"45"}))]})),(0,n.jsxs)(aoe,Object.assign({theme:a,value:d,onChange:e=>f(e.target.value),placeholder:"AM/PM"},{children:[(0,n.jsx)("option",Object.assign({value:"AM"},{children:"AM"})),(0,n.jsx)("option",Object.assign({value:"PM"},{children:"PM"}))]}))]})]})},noe=o.Ay.div.withConfig({displayName:"DateTimePicker__DateTimeCont",componentId:"sc-a5tvc-0"})(["display:flex;flex-direction:column;margin-top:24px;"]),ioe=o.Ay.input.withConfig({displayName:"DateTimePicker__Input",componentId:"sc-a5tvc-1"})(["padding:16px;margin-top:12px;width:330px;background:#FFFFFF;border:2px solid ",";border-radius:12px;font-size:16px;font-family:'Strawford';"],(e=>e.theme.btnOutline)),ooe=o.Ay.div.withConfig({displayName:"DateTimePicker__TimeContainer",componentId:"sc-a5tvc-2"})(["display:flex;width:100%;gap:12px;"]),aoe=o.Ay.select.withConfig({displayName:"DateTimePicker__Select",componentId:"sc-a5tvc-3"})(["padding:16px;margin-top:12px;background:#FFFFFF;border:2px solid ",";border-radius:12px;font-size:16px;font-family:'Strawford';width:",";"],(e=>e.theme.btnOutline),(e=>e.width?e.width:"100%")),soe=e=>{const{closeScheduleModal:t,makeCreateVisible:r,makeInviteVisible:i,dateValue:o,timeValue:a,onDateChange:s,onTimeChange:c,onClose:u}=e;return(0,n.jsxs)(jre,Object.assign({clickawayClose:u},{children:[(0,n.jsx)(Rre,{heading:"Schedule your space",backCallback:r,closeCallback:t}),(0,n.jsx)(roe,{onDateChange:s,onTimeChange:c,propsDate:o,propsTime:a}),(0,n.jsx)(coe,{children:(0,n.jsx)(Kne,Object.assign({onClick:i},{children:"Schedule Space"}))})]}))},coe=o.Ay.div.withConfig({displayName:"SCWScheduleModal__ButtonContainer",componentId:"sc-1kbpgt-0"})(["display:flex;justify-content:space-between;width:100%;"]),uoe=({height:e,width:t,color:r})=>(0,n.jsxs)("svg",Object.assign({width:t||"16",height:e||"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M0 5.6V14.5227C0 15.083 0.668977 15.3728 1.07772 14.9896L4.13843 12.1202C4.22082 12.043 4.32952 12 4.44245 12H10C13.3137 12 16 9.31371 16 6C16 2.68629 13.3137 0 10 0H5.6C2.50721 0 0 2.50721 0 5.6Z",fill:"white"}),(0,n.jsxs)("g",Object.assign({"clip-path":"url(#clip0_13894_56259)"},{children:[(0,n.jsx)("path",{d:"M4.48022 5.12109V7.04109",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.28","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M7.04028 2.56055V9.60055",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.28","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M9.60034 3.83984L9.60034 8.31984",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.28","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M12.1602 5.12109L12.1602 7.04109",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.28","stroke-linecap":"round","stroke-linejoin":"round"})]})),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",Object.assign({id:"clip0_13894_56259"},{children:(0,n.jsx)("rect",{width:"14.08",height:"14.08",fill:"white",transform:"translate(0.960449)"})}))})]})),loe=e=>{const{btnText:t,customStyle:r,onCreate:o}=e,a=(0,i.useContext)(zte);return(0,n.jsx)("div",{children:(0,n.jsxs)(doe,Object.assign({customStyle:r,theme:a,onClick:o},{children:[(0,n.jsx)(uoe,{color:a.btnColorPrimary}),(0,n.jsx)(foe,{children:t})]}))})},doe=o.Ay.button.withConfig({displayName:"SCWButton__CreateButton",componentId:"sc-npo33l-0"})(["padding:",";border-radius:",";border:",";font-size:",";background:",";color:",";display:flex;align-items:center;font-family:'Strawford';cursor:pointer;"],(e=>e.customStyle.padding),(e=>e.customStyle.borderRadius),(e=>e.customStyle.border),(e=>e.customStyle.fontSize),(e=>e.theme.btnColorPrimary),(e=>e.theme.titleTextColor)),foe=o.Ay.div.withConfig({displayName:"SCWButton__BtnText",componentId:"sc-npo33l-1"})(["margin-left:6px;"]);loe.defaultProps={btnText:"Create your Space",customStyle:{padding:"14px 20px",borderRadius:"12px",border:"0px solid transparent",fontSize:"1rem"}};const hoe=e=>{const{children:t}=e,[r,o]=(0,i.useState)(!1),[a,s]=(0,i.useState)(!1),[c,u]=(0,i.useState)(!1),[l,d]=(0,i.useState)([]),[f,h]=(0,i.useState)([]),[p,g]=(0,i.useState)([]),[m,y]=(0,i.useState)([]),[b,v]=(0,i.useState)(!1),[w,A]=(0,i.useState)({spaceName:"",spaceDescription:"",date:new Date,time:Date.now()}),{signer:C,env:E,account:x,pgpPrivateKey:S}=M9(),I=()=>{o(!r),s(!1),u(!1)},k=()=>{u(!c),s(!1),o(!1)},T=()=>{o(!1)},M=()=>{s(!1)},P=()=>{u(!1)};return(0,n.jsx)("div",{children:(0,n.jsxs)(poe,{children:[!t&&(0,n.jsx)(loe,{onCreate:I}),t&&(0,n.jsx)("div",Object.assign({onClick:I},{children:t})),r&&(0,n.jsx)(eoe,{isInviteVisible:k,closeCreateModal:T,nameValue:w.spaceName,descriptionValue:w.spaceDescription,handleNameChange:e=>{A((t=>Object.assign(Object.assign({},t),{spaceName:e.target.value})))},handleDescriptionChange:e=>{A((t=>Object.assign(Object.assign({},t),{spaceDescription:e.target.value})))},isDescriptionEnabled:!1,isScheduleVisible:()=>{s(!a),o(!1),u(!1)},onClose:T}),a&&(0,n.jsx)(soe,{closeScheduleModal:M,makeCreateVisible:I,makeInviteVisible:k,dateValue:w.date,timeValue:w.time,onDateChange:e=>{A((t=>Object.assign(Object.assign({},t),{date:e})))},onTimeChange:e=>{A((t=>Object.assign(Object.assign({},t),{time:e})))},onClose:M}),c&&(0,n.jsx)(aie,{closeInviteModal:P,makeScheduleVisible:I,createSpace:()=>pJ(void 0,void 0,void 0,(function*(){const e=Object.assign({spaceName:0===w.spaceName.length?`${x}'s Space`:w.spaceName,spaceDescription:"Push Space",listeners:f,spaceImage:"asd",speakers:m,isPublic:!0,scheduleAt:w.time>Date.now()?new Date(w.time):new Date(Date.now()+12e4),signer:C,env:E},S&&""!==S&&{pgpPrivateKey:S});try{v(!0);const t=yield _.space.create(e);console.log(t)}catch($R){console.error($R.message)}finally{v(!1),P(),o(!1),s(!1),u(!1),d([]),h([]),g([]),y([]),v(!1),A({spaceName:"",spaceDescription:"",date:new Date,time:Date.now()})}})),isLoading:b,invitedMembersList:l,setInvitedMembersList:d,invitedAddressList:f,setInvitedAddressList:h,adminsList:p,setAdminsList:g,adminsAddressList:m,setAdminsAddressList:y,onClose:P})]})})},poe=o.Ay.div.withConfig({displayName:"SpaceCreationWidget__SCWContainer",componentId:"sc-rt5fqp-0"})(["font-family:'Strawford';"]);class goe{constructor(e){this.SpaceBanner=e=>(M9(),(0,n.jsx)(bre,Object.assign({},e))),this.SpaceWidget=e=>{const{spaceId:t}=e,{spaceWidgetId:r}=M9(),[o,a]=(0,i.useState)(t);return(0,i.useEffect)((()=>{a(t)}),[t,a]),(0,i.useEffect)((()=>{r&&a(r)}),[r]),(0,n.jsx)(Sie,Object.assign({},e,{spaceId:o}))},this.SpaceFeed=e=>(0,n.jsx)(Mie,Object.assign({},e)),this.SpaceInvites=e=>(0,n.jsx)(Kie,Object.assign({},e)),this.SpaceCreationButtonWidget=e=>(0,n.jsx)(hoe,Object.assign({},e)),this.connectToSockets=()=>{M9()},this.init=()=>{this.connectToSockets()},this.account=e.account,this.signer=e.signer,this.pgpPrivateKey=e.pgpPrivateKey,this.env=e.env,this.customSearch=e.customSearch}}const moe=()=>(0,n.jsx)("svg",Object.assign({width:"29",height:"28",viewBox:"0 0 29 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M0.625 10.3438V26.3168C0.625 27.1922 1.67028 27.6451 2.30894 27.0463L7.89958 21.8051C8.0444 21.6693 8.23548 21.5938 8.434 21.5938H18.2031C24.028 21.5938 28.75 16.8718 28.75 11.0469C28.75 5.222 24.028 0.5 18.2031 0.5H10.4688C5.0322 0.5 0.625 4.9072 0.625 10.3438Z",fill:"white"})})),yoe=({fill:e})=>(0,n.jsx)("svg",Object.assign({width:"28",height:"28",viewBox:"0 0 28 28",fill:null!=e?e:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{fill:"current",d:"M27.4625 3.24124L20.9125 26.4787C20.8033 26.8722 20.5755 27.2225 20.2602 27.4819C19.9448 27.7414 19.5572 27.8974 19.15 27.9287H18.975C18.5983 27.9279 18.2295 27.8207 17.9111 27.6194C17.5926 27.4182 17.3375 27.1311 17.175 26.7912L12.7125 17.3662C12.6687 17.2716 12.6548 17.1659 12.6727 17.0631C12.6906 16.9604 12.7394 16.8655 12.8125 16.7912L19.225 10.3787C19.3254 10.2878 19.4063 10.1774 19.4627 10.0542C19.5191 9.93107 19.55 9.79773 19.5533 9.6623C19.5566 9.52688 19.5324 9.39219 19.4821 9.26641C19.4318 9.14063 19.3565 9.02637 19.2607 8.93058C19.1649 8.8348 19.0507 8.75947 18.9249 8.70917C18.7991 8.65888 18.6644 8.63466 18.529 8.638C18.3936 8.64133 18.2602 8.67214 18.1371 8.72857C18.0139 8.785 17.9035 8.86585 17.8125 8.96624L11.4 15.3912C11.3258 15.4644 11.2309 15.5132 11.1282 15.5311C11.0254 15.549 10.9197 15.5351 10.825 15.4912L1.45004 11.0537C1.08311 10.8804 0.775053 10.6033 0.563988 10.2567C0.352924 9.91016 0.248118 9.50928 0.262542 9.10374C0.284668 8.68619 0.437922 8.28625 0.700498 7.96083C0.963074 7.63542 1.32159 7.40111 1.72504 7.29124L25.0125 0.728741C25.4198 0.612421 25.8536 0.628425 26.2512 0.774446C26.6488 0.920467 26.9898 1.18896 27.225 1.54124C27.3829 1.79158 27.4857 2.07261 27.5266 2.3657C27.5676 2.65879 27.5457 2.95723 27.4625 3.24124Z"})})),boe=()=>{(0,i.useState)(!1),(0,i.useRef)(null);const[e,t]=(0,i.useState)(!1),[r,o]=(0,i.useState)(!1),{account:a,env:s,supportAddress:c,apiKey:u,theme:l,user:d}=(0,i.useContext)(g5),{messageBeingSent:f,message:h,setMessage:p,setToastMessage:g,socketData:m,setToastType:y,connectedUser:b,chats:v,setChatsSorted:w}=(0,i.useContext)(m5),A=e=>pJ(void 0,void 0,void 0,(function*(){if(e.preventDefault(),o(!0),""!==h.trim()&&b){const e=yield d.chat.send(c,{type:"Text",content:h});e||(g(e),y("error"),o(!1)),"string"!=typeof e?(p(""),o(!1)):(g(e),y("error"),o(!1))}}));return(0,n.jsx)(voe,Object.assign({theme:l},{children:f?(0,n.jsx)(Aoe,{children:"Loading..."}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(woe,{placeholder:"Type your message...",onKeyDown:e=>{13===e.keyCode&&A(e)},onChange:e=>{f||p(e.target.value)},value:h}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("label",{}),e||r?(0,n.jsx)(Z7,{size:"35"}):(0,n.jsx)("div",Object.assign({onClick:A},{children:(0,n.jsx)(yoe,{fill:l.btnColorPrimary})}))]})]})}))},voe=o.Ay.div.withConfig({displayName:"ChatInput__Container",componentId:"sc-1ksvjax-3"})(["padding:8px 10px 8px 8px;display:flex;align-items:center;justify-content:space-between;background:",";border:",";margin:10px 0;border-radius:16px;"],(e=>e.theme.bgColorPrimary||"#fff"),(e=>e.theme.border)),woe=o.Ay.textarea.withConfig({displayName:"ChatInput__TextInput",componentId:"sc-1ksvjax-5"})(["font-family:'Strawford';font-size:16px;width:100%;height:25px;outline:none;padding-top:4px;border:none;resize:none;background:transparent;color:black;&&::-webkit-scrollbar{width:0;height:0;}::placeholder{color:#494d5f;}"]),Aoe=o.Ay.div.withConfig({displayName:"ChatInput__ItemHV2",componentId:"sc-1ksvjax-8"})(["position:absolute;top:0;right:10px;bottom:0;justifycontent:flex-end;background:transparent;"]),Coe=()=>(0,n.jsx)("svg",Object.assign({width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M6 14L0 8L1.4 6.6L6 11.175L10.6 6.6L12 8L6 14ZM6 8L0 2L1.4 0.6L6 5.175L10.6 0.6L12 2L6 8Z",fill:"#62626A"})})),Eoe=()=>{const{modalTitle:e,theme:t}=(0,i.useContext)(g5),{isModalOpen:r,setIsModalOpen:o}=(0,i.useContext)(m5);return(0,n.jsxs)(xoe,Object.assign({theme:t},{children:[(0,n.jsx)(koe,Object.assign({theme:t},{children:e})),(0,n.jsx)(Soe,Object.assign({onClick:()=>A8({isModalOpen:r,setIsModalOpen:o})},{children:(0,n.jsx)(Ioe,{children:(0,n.jsx)(Coe,{})})}))]}))},xoe=o.Ay.div.withConfig({displayName:"ModalHeader__Container",componentId:"sc-yjqrej-0"})(["display:flex;border-bottom:",";align-items:center;justify-content:space-between;padding:17px;"],(e=>e.theme.border)),Soe=o.Ay.div.withConfig({displayName:"ModalHeader__Section",componentId:"sc-yjqrej-1"})(["padding:10px 5px;cursor:pointer;"]),Ioe=o.Ay.div.withConfig({displayName:"ModalHeader__Div",componentId:"sc-yjqrej-2"})(["display:flex;max-height:initial;vertical-align:middle;overflow:initial;cursor:pointer;justify-content:flex-end;"]),koe=o.Ay.span.withConfig({displayName:"ModalHeader__Span",componentId:"sc-yjqrej-3"})(["font-weight:500;font-size:20px;line-height:28px;display:flex;align-items:center;text-align:center;color:",";margin-left:27%;flex:none;order:0;flex-grow:0;"],(e=>e.theme.textColorPrimary||"#000")),_oe=({stroke:e,fill:t})=>(0,n.jsxs)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:null!=t?t:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer",stroke:e},{children:[(0,n.jsx)("path",{d:"M17.1865 13.7498V2.81226H6.24902",stroke:"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M14.0635 5.9375H3.12598V16.875H14.0635V5.9375Z",stroke:"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})),Toe=()=>{var e,t;const{supportAddress:r,env:o,theme:a,user:s}=(0,i.useContext)(g5),[c,u]=(0,i.useState)(""),[l,d]=(0,i.useState)({}),[f,h]=(0,i.useState)(!1),p=l8(r),g=(null===(e=L4[o])||void 0===e?void 0:e.includes(1))?1:5;return new I.p(g,O4),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(s){const e=yield s.info(),t=yield d8(r,null==s?void 0:s.env);u(t),d(e)}}))}),[r,s]),(0,n.jsxs)(Moe,Object.assign({theme:a},{children:[(0,n.jsxs)(Poe,{children:[(0,n.jsx)(joe,{children:(0,n.jsx)(Doe,{src:(null===(t=null==l?void 0:l.profile)||void 0===t?void 0:t.picture)?null==l?void 0:l.profile.picture:M4.DEFAULT_PROFILE_PICTURE,alt:"address profile"})}),(0,n.jsxs)(Ooe,Object.assign({theme:a},{children:[c&&`${c}`,!c&&`${p.substring(0,8)}...${p.substring(p.length-8)}`]}))]}),!f&&(0,n.jsx)("div",Object.assign({onClick:()=>{C8(p),h(!0)}},{children:(0,n.jsx)(_oe,{stroke:null==a?void 0:a.btnColorSecondary})})),f&&(0,n.jsx)("div",Object.assign({onMouseLeave:()=>h(!1)},{children:(0,n.jsx)(_oe,{stroke:null==a?void 0:a.btnColorSecondary,fill:null==a?void 0:a.btnColorSecondary})}))]}))},Moe=o.Ay.div.withConfig({displayName:"AddressInfo__Container",componentId:"sc-f3zheg-0"})(["display:flex;align-items:center;justify-content:space-between;flex-direction:row;box-sizing:border-box;background:",";border:",";padding:5px 20px 5px 5px;margin:13px 0;border-radius:29px;"],(e=>e.theme.bgColorPrimary||"#fff"),(e=>e.theme.border)),Poe=o.Ay.div.withConfig({displayName:"AddressInfo__Section",componentId:"sc-f3zheg-1"})(["display:flex;"]),joe=o.Ay.span.withConfig({displayName:"AddressInfo__ImgSpan",componentId:"sc-f3zheg-2"})(["display:flex;max-height:initial;vertical-align:middle;overflow:hidden;height:48px;width:47.5px;border-radius:99px;"]),Doe=o.Ay.img.withConfig({displayName:"AddressInfo__Image",componentId:"sc-f3zheg-3"})(["width:100%;height:100%;"]),Ooe=o.Ay.span.withConfig({displayName:"AddressInfo__Span",componentId:"sc-f3zheg-4"})(["font-weight:500;font-size:17px;display:flex;flex-wrap:wrap;margin:0 10px;align-items:center;line-height:25px;letter-spacing:-0.019em;color:",";"],(e=>e.theme.textColorPrimary||"#000")),Boe=({color:e})=>(0,n.jsxs)("svg",Object.assign({width:"145",height:"18",viewBox:"0 0 145 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M1.592 12V10.056H2.728C3.808 10.056 4.616 9.216 4.616 8.2C4.616 7.2 3.768 6.4 2.728 6.4H0.752V12H1.592ZM1.592 7.16H2.592C3.248 7.16 3.728 7.608 3.728 8.2C3.728 8.816 3.248 9.28 2.592 9.28H1.592V7.16ZM9.69231 12.08C11.3243 12.08 12.6043 10.816 12.6043 9.2C12.6043 7.584 11.3243 6.32 9.69231 6.32C8.05231 6.32 6.78031 7.584 6.78031 9.2C6.78031 10.816 8.05231 12.08 9.69231 12.08ZM9.69231 11.264C8.52431 11.264 7.67631 10.352 7.67631 9.2C7.67631 8.048 8.52431 7.136 9.69231 7.136C10.8603 7.136 11.7163 8.048 11.7163 9.2C11.7163 10.352 10.8603 11.264 9.69231 11.264ZM17.1454 12.08L18.5854 7.816L20.0894 12.08H20.5614L22.3614 6.4H21.4654L20.2974 10.288L18.9614 6.4H18.2094L16.9374 10.288L15.7454 6.4H14.8494L16.6734 12.08H17.1454ZM28.2831 12V11.232H25.5871V9.488H28.0511V8.736H25.5871V7.168H28.2831V6.4H24.7551V12H28.2831ZM33.008 9.84H33.104C34.272 9.84 34.968 9.016 34.968 8.104C34.968 7.192 34.232 6.4 33.104 6.4H31.152V12H31.992V9.856L34.112 12H35.24L33.008 9.84ZM33.008 7.168C33.688 7.168 34.088 7.56 34.088 8.104C34.088 8.664 33.688 9.072 33.008 9.072H31.992V7.168H33.008ZM41.2566 12V11.232H38.5606V9.488H41.0246V8.736H38.5606V7.168H41.2566V6.4H37.7286V12H41.2566ZM46.1494 12C47.7174 12 48.9574 10.744 48.9574 9.192C48.9574 7.656 47.7174 6.4 46.1494 6.4H44.1254V12H46.1494ZM44.9654 7.176H46.0134C47.1654 7.176 48.0694 7.96 48.0694 9.192C48.0694 10.432 47.1654 11.224 46.0134 11.224H44.9654V7.176ZM57.5403 12C58.5163 12 59.2683 11.352 59.2683 10.384C59.2683 9.688 58.9003 9.248 58.5003 9.064C58.7323 8.92 59.0843 8.528 59.0843 7.944C59.0843 7.064 58.3723 6.4 57.4123 6.4H55.3723V12H57.5403ZM56.1963 7.144H57.3163C57.8363 7.144 58.2283 7.448 58.2283 7.96C58.2283 8.528 57.8363 8.8 57.3163 8.8H56.1963V7.144ZM56.1963 9.52H57.4523C58.0523 9.52 58.4123 9.896 58.4043 10.384C58.4043 10.872 58.0683 11.272 57.4523 11.272H56.1963V9.52ZM64.0884 12V9.96L66.1764 6.4H65.2004L63.6484 9.136L62.0964 6.4H61.1124L63.2324 9.976V12H64.0884Z",fill:"#494D5F"}),(0,n.jsx)("path",{d:"M94.388 13V10.084H96.092C97.712 10.084 98.924 8.824 98.924 7.3C98.924 5.8 97.652 4.6 96.092 4.6H93.128V13H94.388ZM94.388 5.74H95.888C96.872 5.74 97.592 6.412 97.592 7.3C97.592 8.224 96.872 8.92 95.888 8.92H94.388V5.74ZM102.098 13.132C103.718 13.132 104.51 12.004 104.51 10.636V7.552H103.37V10.66C103.37 11.5 102.878 12.04 102.098 12.04C101.306 12.04 100.826 11.5 100.826 10.66V7.552H99.6865V10.636C99.6865 12.004 100.466 13.132 102.098 13.132ZM107.386 13.132C108.766 13.132 109.474 12.328 109.474 11.416C109.474 10.6 109.006 9.94 107.602 9.688C107.038 9.592 106.678 9.412 106.678 8.992C106.678 8.668 106.954 8.404 107.446 8.404C107.842 8.404 108.226 8.632 108.346 9.04L109.294 8.608C109.042 7.912 108.394 7.42 107.434 7.42C106.246 7.42 105.538 8.164 105.538 9.004C105.538 10.144 106.45 10.552 107.374 10.72C107.962 10.84 108.322 11.032 108.322 11.44C108.322 11.836 107.986 12.076 107.398 12.076C106.942 12.076 106.534 11.812 106.354 11.392L105.358 11.848C105.658 12.544 106.294 13.132 107.386 13.132ZM111.636 13V9.928C111.636 9.064 112.2 8.488 112.956 8.488C113.724 8.488 114.204 9.028 114.204 9.808V13H115.344V9.568C115.344 8.356 114.468 7.42 113.184 7.42C112.416 7.42 111.888 7.768 111.636 8.08V4.6H110.496V13H111.636ZM123.704 13.12C125.288 13.12 126.62 12.352 127.352 11.164L126.272 10.516C125.768 11.332 124.844 11.896 123.704 11.896C122 11.896 120.692 10.54 120.692 8.8C120.692 7.06 122 5.704 123.704 5.704C124.844 5.704 125.768 6.256 126.272 7.084L127.352 6.424C126.608 5.248 125.324 4.48 123.704 4.48C121.268 4.48 119.36 6.376 119.36 8.8C119.36 11.224 121.268 13.12 123.704 13.12ZM129.666 13V9.928C129.666 9.064 130.23 8.488 130.986 8.488C131.754 8.488 132.234 9.028 132.234 9.808V13H133.374V9.568C133.374 8.356 132.498 7.42 131.214 7.42C130.446 7.42 129.918 7.768 129.666 8.08V4.6H128.526V13H129.666ZM136.625 13.132C137.477 13.132 138.053 12.712 138.257 12.4V13H139.313V9.556C139.313 8.452 138.473 7.42 136.937 7.42C135.797 7.42 135.053 8.032 134.705 8.812L135.557 9.364C135.773 8.848 136.205 8.452 136.937 8.452C137.765 8.452 138.161 8.92 138.161 9.28C138.161 9.58 137.945 9.784 137.597 9.784H136.349C135.293 9.784 134.525 10.396 134.525 11.356C134.525 12.34 135.341 13.132 136.625 13.132ZM136.721 12.148C136.073 12.148 135.713 11.8 135.713 11.368C135.713 10.972 136.025 10.672 136.481 10.672H138.185V10.744C138.185 11.56 137.633 12.148 136.721 12.148ZM143.918 13.072V12.016H143.27C142.754 12.016 142.274 11.752 142.274 11.02V8.548H143.918V7.552H142.274V6.232H141.434V6.256C141.434 7.228 140.846 7.72 140.21 7.72H140.174V8.548H141.134V11.128C141.134 12.436 141.926 13.072 143.126 13.072H143.918Z",fill:null!=e?e:"black"}),(0,n.jsx)("path",{d:"M81.4773 16.2944C81.9092 16.2941 82.3317 16.1728 82.6935 15.9452C83.0553 15.7176 83.3408 15.3935 83.5151 15.0123C83.5353 14.97 83.544 14.9234 83.5404 14.877C83.5368 14.8306 83.5211 14.7858 83.4947 14.7469C83.4683 14.7079 83.432 14.6761 83.3894 14.6543C83.3467 14.6326 83.299 14.6216 83.2508 14.6225H79.7038C79.6556 14.6217 79.608 14.6328 79.5654 14.6546C79.5229 14.6764 79.4867 14.7082 79.4604 14.7472C79.4341 14.7861 79.4184 14.8308 79.4148 14.8772C79.4113 14.9236 79.42 14.97 79.4401 15.0123C79.6145 15.3934 79.8998 15.7174 80.2614 15.945C80.6231 16.1726 81.0455 16.294 81.4773 16.2944V16.2944Z",fill:"url(#paint0_linear_3808_9309)"}),(0,n.jsx)("path",{d:"M86.9221 12.5533C86.6451 12.5533 86.3794 12.4471 86.1835 12.2581C85.9876 12.0691 85.8775 11.8128 85.8775 11.5455V7.88416C85.8773 6.94002 85.5509 6.02288 84.95 5.27774C84.349 4.53261 83.5077 4.00199 82.5592 3.76978C82.5244 3.5131 82.3938 3.27746 82.1919 3.10698C81.99 2.9365 81.7306 2.84287 81.4623 2.84363C81.194 2.84439 80.9351 2.93948 80.7342 3.1111C80.5334 3.28272 80.4042 3.51909 80.371 3.77596C79.525 3.9893 78.7641 4.44078 78.185 5.07287C77.606 5.70497 77.2351 6.48907 77.1196 7.32526C77.1196 7.35069 77.1125 7.37544 77.1097 7.40088C77.1068 7.42631 77.1018 7.46962 77.099 7.504C77.0961 7.53837 77.0933 7.57274 77.0904 7.60643C77.0876 7.64011 77.0869 7.66348 77.0854 7.69236C77.0854 7.75079 77.0812 7.80854 77.0805 7.86766V11.5448C77.0805 11.8108 76.9715 12.066 76.7773 12.2548C76.5831 12.4436 76.3194 12.5506 76.0437 12.5526C75.9789 12.5519 75.9147 12.5635 75.8546 12.5867C75.7945 12.61 75.7397 12.6444 75.6934 12.6881C75.647 12.7317 75.6101 12.7838 75.5846 12.8412C75.5592 12.8986 75.5457 12.9604 75.5449 13.0228V13.027C75.5449 13.1528 75.5967 13.2734 75.6889 13.3624C75.7811 13.4513 75.9062 13.5013 76.0366 13.5013H86.9221C87.0492 13.4966 87.1694 13.4446 87.2576 13.3563C87.3458 13.2679 87.395 13.15 87.395 13.0273C87.395 12.9046 87.3458 12.7867 87.2576 12.6983C87.1694 12.61 87.0492 12.558 86.9221 12.5533V12.5533Z",fill:"url(#paint1_linear_3808_9309)"}),(0,n.jsx)("path",{d:"M84.6296 3.05068C85.2306 3.17935 85.7742 3.48793 86.1826 3.93237C86.5911 4.37681 86.8436 4.93438 86.904 5.52549C86.9069 5.55738 86.9163 5.58841 86.9316 5.61677C86.947 5.64514 86.9681 5.67028 86.9936 5.69074C87.0191 5.7112 87.0486 5.72657 87.0803 5.73597C87.112 5.74536 87.1453 5.7486 87.1784 5.74548C87.2449 5.73934 87.3063 5.70824 87.3494 5.65886C87.3706 5.63427 87.3865 5.60588 87.3963 5.57532C87.4061 5.54477 87.4095 5.51265 87.4064 5.48081C87.3405 4.78434 87.0458 4.12637 86.5653 3.60271C86.0848 3.07906 85.4436 2.71707 84.735 2.56946C84.7177 2.56597 84.7 2.56413 84.6823 2.56396C84.6201 2.56411 84.5602 2.58642 84.514 2.62661C84.4678 2.66681 84.4386 2.72205 84.4321 2.78174C84.4255 2.84142 84.4421 2.90133 84.4785 2.94995C84.515 2.99858 84.5688 3.03249 84.6296 3.04518V3.05068Z",fill:"url(#paint2_linear_3808_9309)"}),(0,n.jsx)("path",{d:"M84.9128 1.48117C85.8483 1.68062 86.6944 2.16038 87.3302 2.85182C87.9661 3.54327 88.3589 4.41099 88.4527 5.33088C88.4557 5.36273 88.4651 5.39371 88.4805 5.42203C88.4959 5.45035 88.517 5.47546 88.5425 5.4959C88.568 5.51635 88.5974 5.53172 88.6291 5.54116C88.6607 5.55059 88.694 5.55389 88.727 5.55086C88.7936 5.54473 88.855 5.51362 88.898 5.46424C88.9192 5.43965 88.9352 5.41126 88.945 5.38071C88.9547 5.35015 88.9582 5.31803 88.955 5.28619C88.855 4.26214 88.4196 3.29542 87.7119 2.52612C87.0042 1.75683 86.061 1.22493 85.019 1.00751C85.0016 1.00402 84.9839 1.00218 84.9662 1.00201C84.904 1.00199 84.8439 1.02418 84.7976 1.06432C84.7512 1.10446 84.7219 1.15971 84.7153 1.21945C84.7087 1.27918 84.7252 1.33916 84.7616 1.38786C84.7981 1.43656 84.8519 1.47053 84.9128 1.48323V1.48117Z",fill:"url(#paint3_linear_3808_9309)"}),(0,n.jsx)("path",{d:"M78.3258 3.05061C78.3866 3.03792 78.4404 3.00401 78.4768 2.95539C78.5133 2.90676 78.5298 2.84685 78.5233 2.78717C78.5167 2.72749 78.4876 2.67224 78.4414 2.63205C78.3952 2.59185 78.3352 2.56954 78.273 2.5694C78.2553 2.56957 78.2376 2.57141 78.2203 2.5749C77.5129 2.72209 76.8726 3.08297 76.3922 3.60513C75.9118 4.12729 75.6165 4.78356 75.549 5.47868C75.5458 5.51052 75.5493 5.54264 75.5591 5.57319C75.5688 5.60375 75.5848 5.63214 75.606 5.65673C75.627 5.68147 75.653 5.70188 75.6824 5.71676C75.7118 5.73164 75.7439 5.74068 75.777 5.74335C75.81 5.74647 75.8433 5.74323 75.8751 5.73384C75.9068 5.72444 75.9362 5.70907 75.9618 5.68861C75.9873 5.66815 76.0083 5.64301 76.0237 5.61464C76.0391 5.58628 76.0485 5.55525 76.0513 5.52336C76.1122 4.93262 76.3649 4.37551 76.7733 3.93148C77.1817 3.48745 77.725 3.17917 78.3258 3.05061V3.05061Z",fill:"url(#paint4_linear_3808_9309)"}),(0,n.jsx)("path",{d:"M78.0427 1.48121C78.1035 1.46853 78.1573 1.43461 78.1937 1.38599C78.2302 1.33736 78.2467 1.27745 78.2402 1.21777C78.2337 1.15809 78.2045 1.10284 78.1583 1.06265C78.1121 1.02245 78.0521 1.00014 77.9899 1C77.9722 1.00013 77.9546 1.00197 77.9372 1.0055C76.8952 1.22292 75.9519 1.75482 75.2443 2.52411C74.5366 3.2934 74.1011 4.26013 74.0011 5.28418C73.998 5.31601 74.0014 5.34813 74.0112 5.37869C74.021 5.40925 74.0369 5.43764 74.0581 5.46223C74.0792 5.48697 74.1052 5.50738 74.1345 5.52226C74.1639 5.53714 74.1961 5.54618 74.2291 5.54884C74.2621 5.55187 74.2954 5.54857 74.3271 5.53914C74.3588 5.52971 74.3882 5.51433 74.4137 5.49389C74.4392 5.47344 74.4603 5.44834 74.4757 5.42002C74.4911 5.3917 74.5005 5.36072 74.5035 5.32886C74.5977 4.40947 74.9907 3.54234 75.6263 2.85133C76.262 2.16031 77.1077 1.68078 78.0427 1.48121V1.48121Z",fill:"url(#paint5_linear_3808_9309)"}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",Object.assign({id:"paint0_linear_3808_9309",x1:"83.8614",y1:"11.0044",x2:"81.1098",y2:"15.8527",gradientUnits:"userSpaceOnUse"},{children:[(0,n.jsx)("stop",{"stop-color":"#FF94A6"}),(0,n.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,n.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]})),(0,n.jsxs)("linearGradient",Object.assign({id:"paint1_linear_3808_9309",x1:"85.2526",y1:"5.7345",x2:"79.4177",y2:"14.3293",gradientUnits:"userSpaceOnUse"},{children:[(0,n.jsx)("stop",{"stop-color":"#FF94A6"}),(0,n.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,n.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]})),(0,n.jsxs)("linearGradient",Object.assign({id:"paint2_linear_3808_9309",x1:"90.186",y1:"1.42074",x2:"75.6444",y2:"11.4259",gradientUnits:"userSpaceOnUse"},{children:[(0,n.jsx)("stop",{"stop-color":"#FF94A6"}),(0,n.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,n.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]})),(0,n.jsxs)("linearGradient",Object.assign({id:"paint3_linear_3808_9309",x1:"90.0467",y1:"1.21856",x2:"75.5051",y2:"11.223",gradientUnits:"userSpaceOnUse"},{children:[(0,n.jsx)("stop",{"stop-color":"#FF94A6"}),(0,n.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,n.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]})),(0,n.jsxs)("linearGradient",Object.assign({id:"paint4_linear_3808_9309",x1:"87.4086",y1:"-2.61534",x2:"72.8677",y2:"7.38912",gradientUnits:"userSpaceOnUse"},{children:[(0,n.jsx)("stop",{"stop-color":"#FF94A6"}),(0,n.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,n.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]})),(0,n.jsxs)("linearGradient",Object.assign({id:"paint5_linear_3808_9309",x1:"86.678",y1:"-3.67671",x2:"72.1427",y2:"6.32344",gradientUnits:"userSpaceOnUse"},{children:[(0,n.jsx)("stop",{"stop-color":"#FF94A6"}),(0,n.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,n.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]}))]})]})),Noe=({fill:e})=>(0,n.jsx)("svg",Object.assign({width:"25",height:"25",viewBox:"0 0 25 25",fill:null!=e?e:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{fill:"current",d:"M21.5035 10.1562L19.5504 6.76758C19.318 6.37006 18.9893 6.03742 18.5945 5.8003C18.1998 5.56318 17.7517 5.42921 17.2916 5.41073C16.8315 5.39225 16.3742 5.48985 15.9617 5.69454C15.5492 5.89923 15.1948 6.20444 14.9313 6.58203L13.2418 3.65234C12.8782 3.02407 12.2805 2.56547 11.5794 2.37695C10.8784 2.18843 10.1313 2.28535 9.50159 2.64648C9.10956 2.87792 8.77818 3.19925 8.53479 3.58398C8.21364 3.29612 7.82874 3.08861 7.41175 2.97852C7.06616 2.88129 6.7044 2.85539 6.34848 2.9024C5.99256 2.9494 5.64993 3.06833 5.34143 3.25195C5.02972 3.43014 4.75629 3.66818 4.53688 3.9524C4.31746 4.23661 4.15639 4.56139 4.06291 4.90806C3.96944 5.25473 3.94541 5.61646 3.9922 5.97246C4.03899 6.32845 4.15569 6.67168 4.33558 6.98242L4.66761 7.54883C4.26168 7.58348 3.8683 7.70682 3.51526 7.91016C2.89128 8.27535 2.43664 8.87204 2.25012 9.57056C2.0636 10.2691 2.16029 11.013 2.51917 11.6406L6.62073 18.75C7.17614 19.7442 7.92361 20.6181 8.8197 21.3209C9.71579 22.0237 10.7426 22.5413 11.8405 22.8438C12.9384 23.1463 14.0855 23.2275 15.2151 23.0828C16.3447 22.9381 17.4342 22.5704 18.4204 22.0009C19.4066 21.4314 20.2698 20.6716 20.9598 19.7657C21.6498 18.8597 22.1529 17.8256 22.4398 16.7235C22.7266 15.6214 22.7916 14.4733 22.6309 13.3459C22.4701 12.2185 22.0869 11.1343 21.5035 10.1562ZM20.8492 16.2695C20.6146 17.1624 20.2044 17.9997 19.6427 18.7324C19.0811 19.4651 18.3791 20.0786 17.5778 20.5371C15.9624 21.4687 14.0435 21.7215 12.242 21.24C10.4405 20.7585 8.90353 19.5821 7.96839 17.9688L3.86683 10.8594C3.71143 10.59 3.66939 10.27 3.74998 9.9696C3.83056 9.66925 4.02715 9.41321 4.29651 9.25781C4.56587 9.10241 4.88593 9.06038 5.18629 9.14096C5.48664 9.22154 5.74268 9.41814 5.89808 9.6875L8.04651 13.4082C8.09781 13.4973 8.16616 13.5755 8.24766 13.6382C8.32916 13.7009 8.42222 13.747 8.52152 13.7737C8.62081 13.8005 8.72441 13.8074 8.82638 13.7941C8.92836 13.7808 9.02672 13.7476 9.11585 13.6963C9.20498 13.645 9.28313 13.5766 9.34585 13.4951C9.40856 13.4136 9.45461 13.3206 9.48136 13.2213C9.50811 13.122 9.51504 13.0184 9.50176 12.9164C9.48847 12.8144 9.45523 12.7161 9.40393 12.627L7.2555 8.90625L5.693 6.20117C5.53771 5.93218 5.49556 5.61255 5.57581 5.3125C5.61458 5.16311 5.68296 5.02302 5.7769 4.90056C5.87085 4.7781 5.98843 4.67576 6.12268 4.59961C6.39167 4.44432 6.71131 4.40217 7.01136 4.48242C7.30987 4.56745 7.56479 4.763 7.72425 5.0293L8.49573 6.38672H8.5055L11.0446 10.7812C11.1105 10.9017 11.2082 11.0017 11.327 11.0706C11.4457 11.1395 11.5811 11.1745 11.7184 11.1719C11.8562 11.1746 11.9919 11.1373 12.109 11.0645C12.2872 10.9604 12.4171 10.7901 12.4701 10.5906C12.5232 10.3912 12.4952 10.1789 12.3922 10L9.85315 5.60547C9.69775 5.33611 9.65572 5.01605 9.7363 4.7157C9.81688 4.41535 10.0135 4.15931 10.2828 4.00391C10.5522 3.84851 10.8723 3.80647 11.1726 3.88706C11.473 3.96764 11.729 4.16423 11.8844 4.43359L14.8141 9.50195L15.4293 10.5762C14.5783 11.2844 14.0048 12.2705 13.81 13.3604C13.6153 14.4504 13.8118 15.5741 14.3649 16.5332C14.4765 16.6951 14.645 16.809 14.8369 16.8521C15.0288 16.8952 15.2298 16.8643 15.3999 16.7657C15.5701 16.6671 15.6967 16.5079 15.7547 16.32C15.8126 16.1321 15.7976 15.9293 15.7125 15.752C15.2984 15.0345 15.1862 14.1819 15.4004 13.3816C15.6147 12.5814 16.1379 11.899 16.8551 11.4844C16.9454 11.4329 17.0246 11.3641 17.0883 11.282C17.1519 11.1999 17.1988 11.1061 17.2262 11.0059C17.2739 10.8076 17.246 10.5987 17.1481 10.4199L16.1715 8.7207C16.0584 8.52014 16.007 8.2907 16.0235 8.06105C16.04 7.8314 16.1238 7.61171 16.2645 7.42941C16.4051 7.2471 16.5963 7.11027 16.8143 7.03598C17.0322 6.9617 17.2672 6.95326 17.4899 7.01172C17.6367 7.05051 17.7744 7.11792 17.895 7.2101C18.0157 7.30228 18.117 7.41739 18.193 7.54883L20.1461 10.9375C20.613 11.7344 20.9158 12.6167 21.0366 13.5325C21.1573 14.4482 21.0936 15.3788 20.8492 16.2695ZM8.56409 23.8867C8.49035 23.9889 8.39355 24.0722 8.28155 24.1299C8.16956 24.1875 8.04554 24.218 7.91956 24.2188C7.75987 24.2168 7.60404 24.1694 7.47034 24.082C6.04995 23.1006 4.86846 21.8123 4.01331 20.3125C3.95217 20.2238 3.91003 20.1234 3.88955 20.0176C3.86907 19.9119 3.87068 19.803 3.8943 19.6979C3.91791 19.5928 3.96301 19.4937 4.02675 19.4068C4.0905 19.32 4.17153 19.2473 4.26473 19.1932C4.35794 19.1392 4.46131 19.105 4.56836 19.0929C4.6754 19.0807 4.78381 19.0908 4.88676 19.1225C4.98971 19.1543 5.08498 19.207 5.16659 19.2773C5.2482 19.3477 5.31437 19.4341 5.36097 19.5312C6.10722 20.8296 7.13502 21.9442 8.36878 22.793C8.53855 22.913 8.65424 23.0951 8.69079 23.2998C8.72734 23.5045 8.68182 23.7153 8.56409 23.8867ZM16.4059 3.02734C16.4059 2.82014 16.4882 2.62143 16.6347 2.47492C16.7812 2.3284 16.9799 2.24609 17.1871 2.24609C18.2159 2.24741 19.2263 2.51867 20.1174 3.03277C21.0086 3.54688 21.7492 4.28582 22.2653 5.17578C22.3172 5.2646 22.3508 5.3629 22.3641 5.4649C22.3775 5.5669 22.3703 5.67053 22.343 5.76971C22.3157 5.86889 22.2688 5.96161 22.2052 6.04242C22.1415 6.12322 22.0623 6.19048 21.9723 6.24023C21.8557 6.31413 21.7197 6.35154 21.5817 6.34766C21.445 6.34717 21.3108 6.31085 21.1926 6.2423C21.0744 6.17376 20.9762 6.07539 20.9078 5.95703C20.5308 5.3039 19.9884 4.76152 19.3353 4.38439C18.6822 4.00727 17.9413 3.80868 17.1871 3.80859C16.9799 3.80859 16.7812 3.72628 16.6347 3.57977C16.4882 3.43326 16.4059 3.23454 16.4059 3.02734Z"})})),Roe=({msg:e,caip10:t,messageBeingSent:r})=>{var o,a,s;const{theme:c}=(0,i.useContext)(g5);(0,i.useContext)(m5),(0,i.useState)(!1),(0,i.useState)("");const u=(e=>{let t,r;r="string"==typeof e?parseInt(e):e;const n=new Date(r);if(!isNaN(n.getTime())){const e=n.toLocaleTimeString("en-US");t=e.slice(0,-6)+e.slice(-2)}return t})(e.timestamp);return(0,n.jsx)(Loe,{children:(0,n.jsx)(n.Fragment,{children:"Text"===e.messageType||(null===(o=e.message)||void 0===o?void 0:o.type)?(0,n.jsx)(n.Fragment,{children:e.fromCAIP10===t||e.from===t?(0,n.jsx)(zoe,Object.assign({align:"row-reverse"},{children:(0,n.jsxs)(Voe,Object.assign({theme:c},{children:[(0,n.jsx)(Foe,{children:e.messageContent||(null===(a=e.message)||void 0===a?void 0:a.content)}),void 0!==e.timestamp&&(0,n.jsx)(Uoe,{children:u})]}))})):(0,n.jsx)(zoe,Object.assign({align:"row"},{children:(0,n.jsxs)(Hoe,Object.assign({theme:c},{children:[(null==e?void 0:e.icon)&&e.icon,(0,n.jsx)(Foe,{children:(null===(s=e.message)||void 0===s?void 0:s.content)||e.messageContent}),void 0!==e.timestamp&&(0,n.jsx)(Uoe,{children:u})]}))}))}):null})})},Loe=o.Ay.div.withConfig({displayName:"Chats__Container",componentId:"sc-bx8urd-0"})(["display:flex;flex-direction:column;"]),Foe=o.Ay.p.withConfig({displayName:"Chats__TextMessage",componentId:"sc-bx8urd-3"})(["word-wrap:break-word;word-break:break-word;padding:0 45px 6px 4px;text-align:left;font-weight:400;font-size:15px;line-height:130%;margin:0px;"]),Uoe=o.Ay.span.withConfig({displayName:"Chats__TimeStamp",componentId:"sc-bx8urd-4"})(["min-width:44px;font-weight:400;font-size:13px;line-height:130%;display:flex;justify-content:flex-end;align-items:flex-end;position:absolute;right:10px;bottom:5px;"]),zoe=o.Ay.div.withConfig({displayName:"Chats__MessageWrapper",componentId:"sc-bx8urd-5"})(["width:100%;min-height:",";padding:0;margin-bottom:10px;display:flex;flex-direction:",";"],(e=>e.height||"48px"),(e=>e.align||"row")),Hoe=o.Ay.div.withConfig({displayName:"Chats__ReceivedMessage",componentId:"sc-bx8urd-6"})(["box-sizing:border-box;position:relative;max-width:250px;word-wrap:break-word;word-break:break-word;padding:",";background:",";text-align:left;border:",";border-radius:2px 16px 16px 16px;display:flex;justify-content:space-between;align-items:center;color:",";"],(e=>e.padding||"12px 15px 12px 11px"),(e=>e.theme.bgColorPrimary||"#ffffff"),(e=>e.theme.border),(e=>e.theme.textColorPrimary||"#000")),Voe=o.Ay.div.withConfig({displayName:"Chats__SenderMessage",componentId:"sc-bx8urd-7"})(["box-sizing:border-box;position:relative;max-width:250px;text-align:left;word-wrap:break-word;word-break:break-word;padding:",";background:",";border:",";border-radius:16px 2px 16px 16px;display:flex;justify-content:flex-strt;align-items:center;color:",";"],(e=>e.padding||"12px 15px 12px 11px"),(e=>e.theme.bgColorSecondary||"#ca599b"),(e=>e.theme.border),(e=>e.theme.textColorSecondary||"#ffffff")),Koe=()=>(0,n.jsx)("svg",Object.assign({width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M13 0C10.4288 0 7.91543 0.762437 5.77759 2.1909C3.63975 3.61935 1.97351 5.64968 0.989572 8.02512C0.0056327 10.4006 -0.251811 13.0144 0.249797 15.5362C0.751405 18.0579 1.98953 20.3743 3.80762 22.1924C5.6257 24.0105 7.94208 25.2486 10.4638 25.7502C12.9856 26.2518 15.5995 25.9944 17.9749 25.0104C20.3503 24.0265 22.3807 22.3603 23.8091 20.2224C25.2376 18.0846 26 15.5712 26 13C25.9934 9.55422 24.6216 6.25145 22.1851 3.81491C19.7486 1.37837 16.4458 0.00660747 13 0ZM12 7C12 6.73478 12.1054 6.48043 12.2929 6.29289C12.4804 6.10536 12.7348 6 13 6C13.2652 6 13.5196 6.10536 13.7071 6.29289C13.8946 6.48043 14 6.73478 14 7V14C14 14.2652 13.8946 14.5196 13.7071 14.7071C13.5196 14.8946 13.2652 15 13 15C12.7348 15 12.4804 14.8946 12.2929 14.7071C12.1054 14.5196 12 14.2652 12 14V7ZM13 20C12.7033 20 12.4133 19.912 12.1667 19.7472C11.92 19.5824 11.7277 19.3481 11.6142 19.074C11.5007 18.7999 11.471 18.4983 11.5288 18.2074C11.5867 17.9164 11.7296 17.6491 11.9393 17.4393C12.1491 17.2296 12.4164 17.0867 12.7074 17.0288C12.9983 16.9709 13.2999 17.0007 13.574 17.1142C13.8481 17.2277 14.0824 17.42 14.2472 17.6666C14.412 17.9133 14.5 18.2033 14.5 18.5C14.5 18.8978 14.342 19.2794 14.0607 19.5607C13.7794 19.842 13.3978 20 13 20Z",fill:"#E93636"})})),Goe=({message:e,type:t})=>{const{theme:r}=(0,i.useContext)(g5),{setToastMessage:o}=(0,i.useContext)(m5);(0,i.useEffect)((()=>{const e=setInterval((()=>{a()}),5e3);return()=>clearInterval(e)}),[]);const a=()=>{o("")};return(0,n.jsxs)(qoe,Object.assign({theme:r,type:t},{children:["error"===t&&(0,n.jsx)(Koe,{}),(0,n.jsx)(Qoe,{children:e}),(0,n.jsx)("div",Object.assign({onClick:()=>a()},{children:(0,n.jsx)(Bre,{})}))]}))},qoe=o.Ay.div.withConfig({displayName:"Toaster__Container",componentId:"sc-1vzs537-0"})(["display:flex;box-sizing:border-box;justify-content:space-between;"," box-shadow:0px 0px 10px rgba(0,0,0,0.1);border-radius:16px;padding:13px;margin-bottom:6px;"],(e=>"error"===e.type&&(0,o.AH)(["background:linear-gradient( 90.15deg,#ff2070 -125.65%,#ff2d79 -125.63%,#fff9fb 42.81% );"]))),Qoe=o.Ay.span.withConfig({displayName:"Toaster__Span",componentId:"sc-1vzs537-1"})(["font-family:'Strawford';font-style:normal;font-weight:400;font-size:15px;line-height:140%;display:flex;align-items:center;color:#657795;padding:0 20px 0 5px;"]),Woe=()=>{const[e,t]=(0,i.useState)(!1),[r,o]=(0,i.useState)(null),[a,s]=(0,i.useState)(!0),{supportAddress:c,user:u,env:l,account:d,signer:f,greetingMsg:h,theme:p}=(0,i.useContext)(g5),{chats:g,setChatsSorted:m,connectedUser:y,setConnectedUser:b,toastMessage:v,toastType:w,setToastMessage:A,setToastType:C,socketData:E}=(0,i.useContext)(m5),x=(e=>{const t=i.useRef(null);return i.useEffect((()=>{t.current&&(t.current.scrollTop=0)}),[e]),t})(0),S={fromDID:u8(c),toDID:u8(d),fromCAIP10:u8(c),toCAIP10:u8(d),messageContent:h,messageType:"Text",signature:"",encType:"",encryptedSecret:"",sigType:"",link:null,timestamp:void 0,icon:(0,n.jsx)(Noe,{fill:p.btnColorPrimary})},I=()=>{setTimeout((()=>{x.current&&(x.current.scrollTop=x.current.scrollHeight)}),0)},k=()=>pJ(void 0,void 0,void 0,(function*(){if(!y)return;if(!a&&!r)return;t(!0);const{chatsResponse:e,lastThreadHash:n,lastListPresent:i}=yield(e=>pJ(void 0,void 0,void 0,(function*(){var t;const{account:r,pgpPrivateKey:n,supportAddress:i,user:o,threadHash:a,limit:s=10,env:c=M4.ENV.PROD}=e||{},u=yield null==o?void 0:o.chat.history(i,{limit:s,reference:a});return{chatsResponse:u,lastThreadHash:null===(t=u[u.length-1])||void 0===t?void 0:t.link,lastListPresent:!(u.lengthpJ(void 0,void 0,void 0,(function*(){var e,r;t(!0);try{(null===(e=E.epnsSDKSocket)||void 0===e?void 0:e.connected)||null===(r=E.epnsSDKSocket)||void 0===r||r.connect();const n=yield(e=>pJ(void 0,void 0,void 0,(function*(){const{user:t}=e||{};let r;if(Object.keys(t||{}).length)return r=yield t.info(),Object.assign(Object.assign({},r),{privateKey:r.encryptedPrivateKey})})))({account:d,signer:f,env:l,user:u});b(n),t(!1)}catch(n){t(!1),A(null==n?void 0:n.message),C("error")}}));(0,i.useEffect)((()=>{if(E.messagesSinceLastConnection){const e=E.messagesSinceLastConnection,t=T();e&&(m([...g,e]),t&&I())}}),[E.messagesSinceLastConnection]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){yield k(),I()}))}),[y,l,d,f,c,u]);const T=()=>{if(!x.current)return!1;const{scrollTop:e,scrollHeight:t,clientHeight:r}=x.current;return e+r>=t};return(0,i.useEffect)((()=>{I()}),[y,l,d]),(0,n.jsxs)(Joe,Object.assign({theme:p},{children:[(0,n.jsxs)(Xoe,{children:[(0,n.jsx)(Eoe,{}),(0,n.jsx)(Toe,{})]}),!y&&(0,n.jsx)(Roe,{msg:S,caip10:u8(d),messageBeingSent:!0}),e&&(0,n.jsx)(Z7,{size:"40"}),(0,n.jsx)(Yoe,Object.assign({ref:x,onScroll:()=>pJ(void 0,void 0,void 0,(function*(){if(a&&x.current){const{scrollTop:e}=x.current;if(0===e){const e=x.current;e.scrollTop;const t=e.scrollHeight-e.clientHeight;yield k();const r=e.scrollHeight-e.clientHeight;e.scrollTop=r-t+20}}})),theme:p},{children:y&&g.length?g.map(((e,t)=>(0,n.jsx)(Roe,{msg:e,caip10:u8(d),messageBeingSent:!0},t))):(0,n.jsx)(n.Fragment,{})})),!y&&!e&&(0,n.jsxs)(Zoe,{children:[(0,n.jsx)($oe,Object.assign({onClick:()=>_(),theme:p},{children:"Connect"})),(0,n.jsx)(tae,{children:"Connect your wallet to continue"})]}),v&&(0,n.jsx)(Goe,{message:v,type:w}),(0,n.jsxs)(eae,{children:[y&&(0,n.jsx)(boe,{}),(0,n.jsx)(O7,Object.assign({height:"18px",width:"145px"},{children:(0,n.jsx)(Boe,{})}))]})]}))},Joe=o.Ay.div.withConfig({displayName:"Modal__Container",componentId:"sc-s2d07d-0"})(["display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box;background:",";border:",";box-shadow:0px 0px 5px rgba(0,0,0,0.07);border-radius:",";height:585px;max-height:585px;width:350px;max-width:350px;padding:0 15px 9px 15px;"],(e=>e.theme.moduleColor),(e=>e.theme.border),(e=>e.theme.borderRadius)),Yoe=o.Ay.div.withConfig({displayName:"Modal__ChatSection",componentId:"sc-s2d07d-1"})(["height:350px;overflow:auto;padding:0 5px;&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{border-radius:20px;margin:0 0 0 4px;}&::-webkit-scrollbar-thumb{background:",";border-radius:20px;}scroll-behavior:smooth;"],(e=>e.theme.bgColorSecondary)),Zoe=o.Ay.div.withConfig({displayName:"Modal__ConnectSection",componentId:"sc-s2d07d-2"})(["display:flex;flex-direction:column;margin-bottom:30%;"]),$oe=o.Ay.button.withConfig({displayName:"Modal__Button",componentId:"sc-s2d07d-3"})(["background:",";border-radius:15px;align-self:center;padding:11px 36px;border:none;font-weight:500;font-size:17px;line-height:150%;display:flex;align-items:center;text-align:center;letter-spacing:-0.019em;color:",";margin-bottom:10px;cursor:pointer;"],(e=>e.theme.btnColorPrimary),(e=>e.theme.textColorSecondary)),Xoe=o.Ay.div.withConfig({displayName:"Modal__HeaderSection",componentId:"sc-s2d07d-4"})([""]),eae=o.Ay.div.withConfig({displayName:"Modal__InputSection",componentId:"sc-s2d07d-5"})(["display:flex;flex-direction:column;"]),tae=o.Ay.span.withConfig({displayName:"Modal__Span",componentId:"sc-s2d07d-7"})(["font-weight:400;font-size:15px;line-height:140%;display:flex;text-align:center;justify-content:center;margin-bottom:30%;color:#657795;"]),rae=({account:e=null,signer:t=null,supportAddress:r,greetingMsg:o=M4.DEFAULT_GREETING_MSG,modalTitle:a=M4.DEFAULT_TITLE,theme:s=Object.assign({},$4),apiKey:c="",env:u=M4.ENV.PROD})=>{const[l,d]=(0,i.useState)(!1),[f,h]=(0,i.useState)(null),[p,g]=(0,i.useState)(!1),[m,y]=(0,i.useState)(""),[b,v]=(0,i.useState)(""),[w,A]=(0,i.useState)(),[C,E]=(0,i.useState)([]),[x,S]=(0,i.useState)(e),[I,k]=(0,i.useState)(null),[T,M]=(0,i.useState)(""),P=q9({account:x,env:u,user:I,supportAddress:T,signer:t}),j={account:x,signer:t,user:I,supportAddress:T,greetingMsg:o,modalTitle:a,theme:Object.assign(Object.assign({},$4),s),apiKey:c,env:u};(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(r.includes(".")){const e=yield L8(r,u);M(e)}else M(r)}))}),[r,I,u]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(t)if(e)S(e);else{const e=yield h8(t);S(e)}}))}),[t]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(Object.keys(t||{}).length&&x){const e=yield _.PushAPI.initialize(t,{env:u,account:x});k(e)}}))}),[t,x]),(0,i.useEffect)((()=>{E([]),h(null)}),[e,r]);const D={isModalOpen:l,socketData:P,setIsModalOpen:d,connectedUser:f,setConnectedUser:h,messageBeingSent:p,setMessageBeingSent:g,setToastMessage:v,setToastType:A,message:m,setMessage:y,chats:C,setChatsSorted:e=>{const t=e.map((e=>Object.assign(Object.assign({},e),{timestamp:"string"==typeof e.timestamp?parseInt(e.timestamp):e.timestamp}))),r=[...new Map(t.map((e=>[e.timestamp,e]))).values()];r.sort(((e,t)=>e.timestamp>t.timestamp?1:-1)),E(r)},toastMessage:b,toastType:w};return(0,n.jsx)(nae,{children:(0,n.jsx)(g5.Provider,Object.assign({value:j},{children:(0,n.jsxs)(m5.Provider,Object.assign({value:D},{children:[!l&&(0,n.jsx)(iae,Object.assign({bgColor:s.btnColorPrimary,onClick:()=>A8({isModalOpen:l,setIsModalOpen:d})},{children:(0,n.jsx)(O7,Object.assign({cursor:"pointer"},{children:(0,n.jsx)(moe,{})}))})),l&&(0,n.jsx)(Woe,{})]}))}))})},nae=o.Ay.div.withConfig({displayName:"Chat__Container",componentId:"sc-7lciwu-0"})(["font-family:'Strawford';flex:1;display:flex;position:fixed;bottom:0;right:0;width:fit-content;z-index:999999;margin:0 3rem 2rem 0;align-items:center;justify-content:center;"]),iae=o.Ay.button.withConfig({displayName:"Chat__Button",componentId:"sc-7lciwu-1"})(["background:",";border:none;cursor:pointer;border-radius:18px;padding:16.5px 16.5px 13px 18.5px;"],(e=>e.bgColor)),oae=()=>(0,n.jsx)("svg",Object.assign({width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M1.4 13.4L0 12L6 6L12 12L10.6 13.4L6 8.825L1.4 13.4ZM1.4 7.4L0 6L6 0L12 6L10.6 7.4L6 2.825L1.4 7.4Z",fill:"#62626A"})})),aae=({stroke:e,fill:t})=>(0,n.jsx)("svg",Object.assign({width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M0 17V2C0 1.45 0.195833 0.979167 0.5875 0.5875C0.979167 0.195833 1.45 0 2 0H14C14.55 0 15.0208 0.195833 15.4125 0.5875C15.8042 0.979167 16 1.45 16 2V7.075C15.8333 7.04167 15.6667 7.02083 15.5 7.0125C15.3333 7.00417 15.1667 7 15 7C14.8333 7 14.6667 7.00417 14.5 7.0125C14.3333 7.02083 14.1667 7.04167 14 7.075V2H2V12H9.075C9.04167 12.1667 9.02083 12.3333 9.0125 12.5C9.00417 12.6667 9 12.8333 9 13C9 13.1667 9.00417 13.3333 9.0125 13.5C9.02083 13.6667 9.04167 13.8333 9.075 14H3L0 17ZM4 6H12V4H4V6ZM4 10H9V8H4V10ZM14 17V14H11V12H14V9H16V12H19V14H16V17H14Z",fill:"#62626A"})})),sae=({messageContent:e,messageType:t})=>{const r=V9(425)?27:48;return"Text"===t?(0,n.jsx)(B7,Object.assign({textAlign:"left",fontWeight:"400",fontSize:"16px",color:"#62626A",cursor:"pointer"},{children:s9(e,r)})):"Image"===t?(0,n.jsxs)(B7,Object.assign({textAlign:"left",fontWeight:"400",fontSize:"16px",color:"#62626A",cursor:"pointer"},{children:[(0,n.jsx)("i",{className:"fa fa-picture-o","aria-hidden":"true"})," ","Image"]})):"File"===t?(0,n.jsxs)(B7,Object.assign({textAlign:"left",fontWeight:"400",fontSize:"16px",color:"#62626A",cursor:"pointer"},{children:[(0,n.jsx)("i",{className:"fa fa-file","aria-hidden":"true"})," ","File"]})):"GIF"===t||"MediaEmbed"===t?(0,n.jsxs)(B7,Object.assign({textAlign:"left",fontWeight:"400",fontSize:"16px",color:"#62626A",cursor:"pointer"},{children:[(0,n.jsx)("i",{className:"fa fa-picture-o","aria-hidden":"true"})," ","Media"]})):null},cae=({chat:e,id:t,modalOpen:r})=>{var o,a,s,c,u;const{setSelectedChatId:l}=(0,i.useContext)(y5),{env:d}=(0,i.useContext)(v5),f=Wee(null==e?void 0:e.did,d),h=V9(425),p=(null==e?void 0:e.name)?h?15:30:h?6:8,g=void 0===r||r;return(0,n.jsxs)(uae,Object.assign({justifyContent:"flex-start",padding:g?"15px 15px":" 0px ",onClick:()=>(l(t),void g8({chatId:t,value:e})),active:g,gap:"18px",cursor:"pointer"},{children:[(0,n.jsx)(R7,{src:e.profilePicture,alt:"profile picture",width:"36px",height:"36px",borderRadius:"100%",cursor:"pointer"}),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",flex:"2"},{children:[(0,n.jsxs)(D7,Object.assign({gap:g?"8px":" 2px ",justifyContent:"space-between",cursor:"pointer"},{children:[(0,n.jsx)(lae,Object.assign({fontWeight:"700",color:"#000",cursor:"pointer"},{children:(null==e?void 0:e.name)?s9(null==e?void 0:e.name,p,!1):null!=f?f:s9(null===(o=null==e?void 0:e.did)||void 0===o?void 0:o.split(":")[1],p,!0)})),g&&(0,n.jsx)(B7,Object.assign({fontWeight:"400",fontSize:"12px",color:"#62626A",cursor:"pointer"},{children:(null===(a=null==e?void 0:e.msg)||void 0===a?void 0:a.timestamp)?F8(null===(s=null==e?void 0:e.msg)||void 0===s?void 0:s.timestamp):""}))]})),(0,n.jsxs)(D7,Object.assign({gap:"12px",cursor:"pointer",justifyContent:"space-between"},{children:[(0,n.jsx)(sae,{messageContent:null===(c=null==e?void 0:e.msg)||void 0===c?void 0:c.messageContent,messageType:null===(u=null==e?void 0:e.msg)||void 0===u?void 0:u.messageType}),g&&x8(t,e)&&(0,n.jsx)(dae,{})]}))]}))]}))},uae=(0,o.Ay)(D7).withConfig({displayName:"ChatSnap__Container",componentId:"sc-r4kigr-0"})(["border-bottom:",";cursor:",";",";"],(e=>e.active&&"1px dashed #ededee"),(e=>e.active&&"pointer"),(e=>e.active&&(0,o.AH)(["&:hover{background:#f4f5fa;border-radius:10px;}"]))),lae=(0,o.Ay)(B7).withConfig({displayName:"ChatSnap__NameSpan",componentId:"sc-r4kigr-1"})(["font-size:16px;@media ","{font-size:14px;}"],c5.mobileL),dae=({background:e,color:t})=>(0,n.jsx)(B7,{fontWeight:"600",fontSize:"12px",color:null!=t?t:"#fff",background:null!=e?e:"#0D67FE",padding:"8px",borderRadius:"100%"}),fae=()=>{var e;const{activeTab:t,setActiveTab:r,setActiveSubTab:o,activeSubTab:a}=(0,i.useContext)(T5),{selectedChatId:s,chatsFeed:c,requestsFeed:u,searchedChats:l,setSearchedChats:d,setSelectedChatId:f}=(0,i.useContext)(y5),{env:h}=(0,i.useContext)(v5),{spamNotifsFeed:p}=(0,i.useContext)(w5),g=c[s]||u[s]||(Object.keys(l||{}).length?l[s]:null),m=Wee(null==g?void 0:g.did,h);return g?(0,n.jsxs)(D7,Object.assign({gap:"12px",padding:"23px 2px"},{children:[(0,n.jsx)(O7,Object.assign({width:"16px",height:"16px",cursor:"pointer",onClick:()=>(a&&(a===x5.REQUESTS&&Object.keys(u||{}).length||a===x5.SPAM&&Object.keys(p||{}).length)?o(x5[a]):r(C5[t]),void(a!==x5.REQUESTS&&a||(f(null),d(null))))},{children:(0,n.jsx)(H7,{})})),(0,n.jsxs)(D7,Object.assign({gap:"8px"},{children:[(0,n.jsx)(R7,{src:g.profilePicture,alt:"profile picture",width:"24px",height:"24px",borderRadius:"100%"}),(0,n.jsx)(M7,Object.assign({content:l8(null==g?void 0:g.did),direction:"bottom-right"},{children:(0,n.jsxs)(B7,Object.assign({fontWeight:"700",fontSize:"16px",cursor:"pointer"},{children:[" ",(null==g?void 0:g.name)?s9(null==g?void 0:g.name,30):null!=m?m:s9(null===(e=null==g?void 0:g.did)||void 0===e?void 0:e.split(":")[1],20)]}))}))]}))]})):null},hae=()=>{const{activeTab:e,setActiveTab:t,activeSubTab:r}=(0,i.useContext)(T5),{setSearchedChats:o,setSelectedChatId:a}=(0,i.useContext)(y5),{setSearchedNotifications:s}=(0,i.useContext)(w5);return(0,n.jsxs)(D7,Object.assign({gap:"12px",padding:"23px 2px"},{children:[(0,n.jsx)(O7,Object.assign({width:"16px",height:"16px",cursor:"pointer",onClick:()=>{t(e),r===x5.REQUESTS&&(o(null),a(null)),r===x5.SPAM&&s(null)}},{children:(0,n.jsx)(H7,{})})),(0,n.jsx)(B7,Object.assign({fontWeight:"700",fontSize:"16px"},{children:H4[r].title}))]}))},pae=({onMaximizeMinimizeToggle:e,modalOpen:t})=>{const{newChat:r,setNewChat:o,setActiveTab:a,activeSubTab:s}=(0,i.useContext)(T5),{selectedChatId:c,chatsFeed:u,requestsFeed:l,setSearchedChats:d,setSelectedChatId:f,searchedChats:h}=(0,i.useContext)(y5),p=c&&t||!c&&t&&s,g=c&&!t;return(0,n.jsxs)(gae,Object.assign({justifyContent:"space-between",alignItems:"center",padding:(g?"12px":"0")+" 0 ",borderWidth:`0 0 ${p?"1px":"0"} 0 `,borderStyle:`none none ${p?"dashed":"none"} none `,borderColor:`transparent transparent ${p?"#ededee":"transparent"} transparent`},{children:[c&&!!(Object.keys(u||{}).length||Object.keys(l||{}).length||Object.keys(h||{}).length)&&t&&(0,n.jsx)(fae,{}),c&&!t&&(0,n.jsx)((()=>{const e=u[c]||l[c]||(Object.keys(h||{}).length?h[c]:null);return(0,n.jsx)(cae,{chat:e,id:c,modalOpen:t})}),{}),!c&&t&&s&&(0,n.jsx)(hae,{}),(!c&&t&&!s||!t&&!c)&&(0,n.jsx)(D7,Object.assign({gap:"4px"},{children:(0,n.jsx)(B7,Object.assign({fontWeight:"700",fontSize:"18px",padding:"24px 2px",cursor:t?"pointer":"default",onClick:()=>{a(C5.CHATS),d(null),f(null)}},{children:r?"New Message":"Messages"}))})),(0,n.jsxs)(D7,Object.assign({gap:"20px"},{children:[(!c&&t&&!s&&!r||!t&&!c)&&(0,n.jsx)(O7,Object.assign({width:"20px",height:"20px",cursor:"pointer",onClick:()=>{t&&o(!0)}},{children:(0,n.jsx)(aae,{})})),(0,n.jsx)(O7,Object.assign({width:"12px",height:"13.4px",cursor:"pointer",margin:"0 0 10px 0",alignSelf:"center",onClick:e},{children:t?(0,n.jsx)(Coe,{}):(0,n.jsx)(oae,{})}))]}))]}))},gae=(0,o.Ay)(D7).withConfig({displayName:"MinimisedModalHeader__Container",componentId:"sc-1nzg6zv-0"})(["box-sizing:border-box;"]);var mae;!function(e){e.DEFAULT="#787E99"}(mae||(mae={}));const yae=e=>("string"==typeof e&&(e=parseInt(e)),null==e?"100%":"number"==typeof e?e.toString():e.width?e.width.toString():"100%"),bae=e=>("string"==typeof e&&(e=parseInt(e)),null==e?"100%":"number"==typeof e?e.toString():e.height?e.height.toString():"100%"),vae=(e,t=1)=>("string"==typeof e&&(e=parseInt(e)),null==e&&(e=20),"number"==typeof e?`0 0 ${e*t} ${e*t}`:e.width&&e.height?`0 0 ${e.width*t} ${e.height*t}`:e.width?`0 0 ${e.width*t} ${e.width*t}`:e.height?`0 0 ${e.height*t} ${e.height*t}`:"0 0 20 20"),wae=({size:e,color:t=mae.DEFAULT})=>(0,n.jsx)("svg",Object.assign({width:yae(e),height:bae(e),viewBox:vae(e),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("g",Object.assign({id:"copy (1) 1"},{children:(0,n.jsxs)("g",Object.assign({id:"Group"},{children:[(0,n.jsx)("path",{fill:t,id:"Vector",d:"M10.6673 8.60004V11.4C10.6673 13.7334 9.73398 14.6667 7.40065 14.6667H4.60065C2.26732 14.6667 1.33398 13.7334 1.33398 11.4V8.60004C1.33398 6.26671 2.26732 5.33337 4.60065 5.33337H7.40065C9.73398 5.33337 10.6673 6.26671 10.6673 8.60004Z"}),(0,n.jsx)("path",{fill:t,id:"Vector_2",d:"M11.401 1.33337H8.60102C6.54561 1.33337 5.58165 2.06277 5.38083 3.82605C5.33881 4.19494 5.64433 4.50004 6.0156 4.50004H7.40102C10.201 4.50004 11.501 5.80004 11.501 8.60004V9.98544C11.501 10.3567 11.8061 10.6622 12.175 10.6202C13.9383 10.4194 14.6677 9.45544 14.6677 7.40004V4.60004C14.6677 2.26671 13.7344 1.33337 11.401 1.33337Z"})]}))}))})),Aae=({size:e,color:t})=>(0,n.jsx)("svg",Object.assign({width:yae(e),height:bae(e),viewBox:vae(20),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{fill:t,d:"M9.75 0.25C7.82164 0.25 5.93657 0.821828 4.33319 1.89317C2.72982 2.96452 1.48013 4.48726 0.742179 6.26884C0.00422448 8.05042 -0.188858 10.0108 0.187348 11.9021C0.563554 13.7934 1.49215 15.5307 2.85571 16.8943C4.21927 18.2579 5.95656 19.1865 7.84787 19.5627C9.73919 19.9389 11.6996 19.7458 13.4812 19.0078C15.2627 18.2699 16.7855 17.0202 17.8568 15.4168C18.9282 13.8134 19.5 11.9284 19.5 10C19.4973 7.41498 18.4692 4.93661 16.6413 3.10872C14.8134 1.28084 12.335 0.25273 9.75 0.25ZM15.7613 12.7319C15.9318 12.8343 16.0547 13.0003 16.1029 13.1934C16.1511 13.3864 16.1206 13.5907 16.0181 13.7612C15.9157 13.9318 15.7497 14.0547 15.5566 14.1029C15.3636 14.1511 15.1593 14.1206 14.9888 14.0181L10.5 11.3247V16.1875C10.5 16.3864 10.421 16.5772 10.2803 16.7178C10.1397 16.8585 9.94892 16.9375 9.75 16.9375C9.55109 16.9375 9.36033 16.8585 9.21967 16.7178C9.07902 16.5772 9 16.3864 9 16.1875V11.3247L4.51125 14.0181C4.34069 14.1206 4.13641 14.1511 3.94337 14.1029C3.75032 14.0547 3.58432 13.9318 3.48188 13.7612C3.37944 13.5907 3.34895 13.3864 3.39713 13.1934C3.4453 13.0003 3.56819 12.8343 3.73875 12.7319L8.29219 10L3.73875 7.26813C3.56819 7.16569 3.4453 6.99968 3.39713 6.80664C3.34895 6.61359 3.37944 6.40932 3.48188 6.23875C3.58432 6.06818 3.75032 5.9453 3.94337 5.89712C4.13641 5.84895 4.34069 5.87944 4.51125 5.98187L9 8.67531V3.8125C9 3.61359 9.07902 3.42282 9.21967 3.28217C9.36033 3.14152 9.55109 3.0625 9.75 3.0625C9.94892 3.0625 10.1397 3.14152 10.2803 3.28217C10.421 3.42282 10.5 3.61359 10.5 3.8125V8.67531L14.9888 5.98187C15.0732 5.93115 15.1668 5.89756 15.2643 5.88302C15.3617 5.86848 15.4611 5.87327 15.5566 5.89712C15.6522 5.92098 15.7422 5.96342 15.8214 6.02204C15.9005 6.08065 15.9674 6.15429 16.0181 6.23875C16.0689 6.32321 16.1024 6.41683 16.117 6.51427C16.1315 6.6117 16.1267 6.71105 16.1029 6.80664C16.079 6.90222 16.0366 6.99218 15.978 7.07136C15.9193 7.15054 15.8457 7.2174 15.7613 7.26813L11.2078 10L15.7613 12.7319Z"})})),Cae=({size:e,color:t})=>(0,n.jsx)("svg",Object.assign({width:yae(e),height:bae(e),viewBox:vae(30),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{fill:t,d:"M30.9137 15.595C30.87 15.4963 29.8112 13.1475 27.4575 10.7937C24.3212 7.6575 20.36 6 16 6C11.64 6 7.67874 7.6575 4.54249 10.7937C2.18874 13.1475 1.12499 15.5 1.08624 15.595C1.02938 15.7229 1 15.8613 1 16.0012C1 16.1412 1.02938 16.2796 1.08624 16.4075C1.12999 16.5062 2.18874 18.8538 4.54249 21.2075C7.67874 24.3425 11.64 26 16 26C20.36 26 24.3212 24.3425 27.4575 21.2075C29.8112 18.8538 30.87 16.5062 30.9137 16.4075C30.9706 16.2796 31 16.1412 31 16.0012C31 15.8613 30.9706 15.7229 30.9137 15.595ZM16 24C12.1525 24 8.79124 22.6012 6.00874 19.8438C4.86704 18.7084 3.89572 17.4137 3.12499 16C3.89551 14.5862 4.86686 13.2915 6.00874 12.1562C8.79124 9.39875 12.1525 8 16 8C19.8475 8 23.2087 9.39875 25.9912 12.1562C27.1352 13.2912 28.1086 14.5859 28.8812 16C27.98 17.6825 24.0537 24 16 24ZM16 10C14.8133 10 13.6533 10.3519 12.6666 11.0112C11.6799 11.6705 10.9108 12.6075 10.4567 13.7039C10.0026 14.8003 9.88377 16.0067 10.1153 17.1705C10.3468 18.3344 10.9182 19.4035 11.7573 20.2426C12.5965 21.0818 13.6656 21.6532 14.8294 21.8847C15.9933 22.1162 17.1997 21.9974 18.2961 21.5433C19.3924 21.0892 20.3295 20.3201 20.9888 19.3334C21.6481 18.3467 22 17.1867 22 16C21.9983 14.4092 21.3657 12.884 20.2408 11.7592C19.1159 10.6343 17.5908 10.0017 16 10ZM16 20C15.2089 20 14.4355 19.7654 13.7777 19.3259C13.1199 18.8864 12.6072 18.2616 12.3045 17.5307C12.0017 16.7998 11.9225 15.9956 12.0768 15.2196C12.2312 14.4437 12.6122 13.731 13.1716 13.1716C13.731 12.6122 14.4437 12.2312 15.2196 12.0769C15.9956 11.9225 16.7998 12.0017 17.5307 12.3045C18.2616 12.6072 18.8863 13.1199 19.3259 13.7777C19.7654 14.4355 20 15.2089 20 16C20 17.0609 19.5786 18.0783 18.8284 18.8284C18.0783 19.5786 17.0609 20 16 20Z"})})),Eae=({size:e,color:t})=>(0,n.jsx)("svg",Object.assign({width:yae(e),height:bae(e),viewBox:vae(40),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M20 0.5C16.1433 0.5 12.3731 1.64366 9.16639 3.78634C5.95963 5.92903 3.46027 8.97451 1.98436 12.5377C0.508449 16.1008 0.122284 20.0216 0.874696 23.8043C1.62711 27.5869 3.4843 31.0615 6.21143 33.7886C8.93855 36.5157 12.4131 38.3729 16.1957 39.1253C19.9784 39.8777 23.8992 39.4916 27.4623 38.0156C31.0255 36.5397 34.071 34.0404 36.2137 30.8336C38.3564 27.6269 39.5 23.8567 39.5 20C39.4901 14.8313 37.4325 9.87718 33.7776 6.22237C30.1228 2.56755 25.1687 0.509911 20 0.5ZM29.2813 16.5875L18.2938 27.0875C18.0097 27.3547 17.6337 27.5024 17.2438 27.5C17.0531 27.5027 16.8639 27.4677 16.6869 27.3969C16.5099 27.3261 16.3487 27.2209 16.2125 27.0875L10.7188 21.8375C10.5664 21.7046 10.4425 21.5422 10.3544 21.3601C10.2664 21.1781 10.2161 20.9801 10.2066 20.7781C10.197 20.5761 10.2284 20.3743 10.2988 20.1847C10.3693 19.9952 10.4773 19.8218 10.6164 19.6751C10.7556 19.5283 10.923 19.4113 11.1085 19.3309C11.2941 19.2505 11.494 19.2084 11.6962 19.2072C11.8984 19.2061 12.0988 19.2458 12.2852 19.324C12.4717 19.4023 12.6404 19.5174 12.7813 19.6625L17.2438 23.9187L27.2188 14.4125C27.5104 14.158 27.8891 14.0262 28.2758 14.0445C28.6624 14.0628 29.027 14.2298 29.2933 14.5107C29.5597 14.7915 29.7071 15.1644 29.7049 15.5515C29.7026 15.9386 29.5508 16.3098 29.2813 16.5875Z",fill:t})})),xae=({size:e,color:t})=>(0,n.jsxs)("svg",Object.assign({width:yae(e),height:bae(e),viewBox:vae(38),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M19 37C28.9411 37 37 28.9411 37 19C37 9.05887 28.9411 1 19 1C9.05887 1 1 9.05887 1 19C1 28.9411 9.05887 37 19 37Z",stroke:t,"stroke-width":"2","stroke-miterlimit":"10"}),(0,n.jsx)("path",{d:"M25 13L13 25",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M25 25L13 13",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})),Sae=({size:e,color:t})=>(0,n.jsxs)("svg",Object.assign({width:yae(e),height:bae(e),viewBox:vae(24),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12Z",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M8.04746 10.9393C8.77509 10.9393 9.36494 10.3494 9.36494 9.6218C9.36494 8.89418 8.77509 8.30432 8.04746 8.30432C7.31984 8.30432 6.72998 8.89418 6.72998 9.6218C6.72998 10.3494 7.31984 10.9393 8.04746 10.9393Z",fill:t}),(0,n.jsx)("path",{d:"M15.9525 10.9393C16.6801 10.9393 17.27 10.3494 17.27 9.6218C17.27 8.89418 16.6801 8.30432 15.9525 8.30432C15.2249 8.30432 14.635 8.89418 14.635 9.6218C14.635 10.3494 15.2249 10.9393 15.9525 10.9393Z",fill:t}),(0,n.jsx)("path",{d:"M16.3916 14.4525C15.4803 16.028 13.951 17.0875 12 17.0875C10.049 17.0875 8.51966 16.028 7.6084 14.4525",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})),Iae=({size:e,color:t})=>(0,n.jsxs)("svg",Object.assign({width:yae(e),height:bae(e),viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fill:"none"},{children:[(0,n.jsx)("rect",{width:"48",height:"48",fill:"none"}),(0,n.jsxs)("g",Object.assign({stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4"},{children:[(0,n.jsx)("path",{d:"M12.364 8L6 14.364 12.364 20.728"}),(0,n.jsx)("path",{d:"M6 14.364H28.672c6.885 0 12.54 5.439 12.808 12.318.284 7.27-5.533 13.318-12.808 13.318H12"})]}))]})),kae=(0,o.i7)(["0%{background-color:hsl(200,20%,80%);}100%{background-color:hsl(200,20%,95%);}"]),_ae=(0,o.i7)(["0%{background-color:#575D73;}100%{background-color:#6E748B;}"]),Tae={borderRadius:{chatViewComponent:"24px",chatProfile:"32px",messageInput:"13px",searchInput:"99px",modal:"16px",modalInnerComponents:"12px",chatPreview:"24px",userProfile:"0px",chatWidget:"24px",chatBubbleBorderRadius:"12px",chatBubbleContentBorderRadius:"8px",chatBubbleReplyBorderRadius:"12px",reactionsPickerBorderRadius:"12px",reactionsBorderRadius:"24px"},padding:{chatPreviewListPadding:"0px 6px 0px 0px",chatPreviewPadding:"10px 5px",chatProfilePadding:"0px",chatViewPadding:"0px",chatViewListPadding:"0px 6px 0px 0px",messageInputPadding:"0px",chatBubbleSenderPadding:"0px",chatBubbleReceiverPadding:"0px",chatBubbleContentPadding:"8px 16px",chatBubbleInnerContentPadding:"8px 12px",reactionsPickerPadding:"4px",reactionsPadding:"4px 8px"},margin:{chatPreviewListMargin:"0px",chatPreviewMargin:"2px 0px",chatProfileMargin:"10px 10px 2px 10px",chatViewMargin:"0px",chatViewListMargin:"0px 0px 0px 10px",messageInputMargin:"2px 10px 10px 10px",chatBubbleSenderMargin:"16px 8px",chatBubbleReceiverMargin:"16px 8px",chatBubbleContentMargin:"8px",chatBubbleReplyMargin:"8px 8px 0px 8px"},backgroundColor:{inputBackground:"#fff",inputHoverBackground:"linear-gradient(rgb(244, 245, 250), rgb(244, 245, 250)), linear-gradient(to right, rgb(182, 160, 245), rgb(244, 110, 246), rgb(255, 222, 211), rgba(161 159 161, 1))",chatViewComponentBackground:"linear-gradient(179.97deg, #EEF5FF 0.02%, #ECE9FA 123.25%)",chatProfileBackground:"#fff",messageInputBackground:"#fff",chatSentBubbleBackground:"rgb(202, 89, 155)",chatReceivedBubbleBackground:"#fff",chatPreviewSentBubbleBackground:"rgba(255, 255, 255, 0.1)",chatPreviewSentBorderBubbleBackground:"rgba(255, 255, 255, 0.5)",chatPreviewRecievedBubbleBackground:"rgba(0, 0, 0, 0.1)",chatPreviewRecievedBorderBubbleBackground:"rgba(0, 0, 0, 0.5)",chatActivePreviewBubbleBackground:"#22222210",chatActivePreviewBorderBubbleBackground:"#22222299",chatPreviewTagBackground:"rgba(0, 0, 0, 0.25)",chatFrameBackground:"#f5f5f5",encryptionMessageBackground:"#fff",buttonBackground:"rgb(202, 89, 155)",buttonHotBackground:"#D53A94",searchInputBackground:"rgb(244, 245, 250)",modalBackground:"#fff",modalInputBackground:"transparent",modalHoverBackground:"rgb(244, 245, 250)",buttonDisableBackground:"#DFDEE9",toastSuccessBackground:"linear-gradient(90.15deg, #30CC8B -125.65%, #30CC8B -125.63%, #F3FFF9 42.81%)",toastErrorBackground:"linear-gradient(90.15deg, #FF2070 -125.65%, #FF2D79 -125.63%, #FFF9FB 42.81%)",toastWarningBackground:"linear-gradient(90.15deg, #FFB800 -125.65%, #FFB800 -125.63%, #FFF9FB 42.81%)",toastShadowBackground:"#ccc",criteriaLabelBackground:"#657795",chatPreviewBackground:"#fff",chatPreviewSelectedBackground:"#f5f5f5",chatPreviewBadgeBackground:"rgb(226,8,128)",chatPreviewHoverBackground:"#f5f5f5",userProfileBackground:"#fff",chatWidgetModalBackground:"#fff"},fontSize:{chatProfileText:"17px",messageInputText:"16px",chatSentBubbleText:"14px",chatReceivedBubbleText:"14px",timestamp:"12px",encryptionMessageText:"13px",chatReceivedBubbleAddressText:"12px",chatReceivedBubbleTimestampText:"10px",chatSentBubbleTimestampText:"10px",searchInputText:"16px",searchPlaceholderText:"16px",chatPreviewParticipantText:"14px",chatPreviewMessageText:"14px",chatPreviewDateText:"12px",chatPreviewBadgeText:"12px",userProfileText:"16px",chatFrameTitleText:"16px",chatFrameDescriptionText:"14px"},fontWeight:{chatProfileText:"500",messageInputText:"400",chatSentBubbleText:"400",chatReceivedBubbleText:"400",timestamp:"400",encryptionMessageText:"400",chatReceivedBubbleAddressText:"500",chatReceivedBubbleTimestampText:"400",chatSentBubbleTimestampText:"400",searchInputText:"400",searchPlaceholderText:"400",chatPreviewParticipantText:"500",chatPreviewMessageText:"400",chatPreviewDateText:"400",chatPreviewBadgeText:"600",userProfileText:"500",chatFrameTitleText:"500"},fontFamily:"inherit",border:{chatViewComponent:"none",chatProfile:"none",messageInput:"none",searchInput:"1px solid transparent",modal:"none",modalInnerComponents:"1px solid rgb(194, 203, 219)",chatPreview:"none",userProfile:"none",chatWidget:"1px solid #E4E8EF",chatReceivedBubble:"none",chatSentBubble:"none",reactionsBorder:"1px solid transparent",reactionsHoverBorder:"1px solid #DFDFDF"},iconColor:{emoji:"rgb(101, 119, 149)",attachment:"rgb(101, 119, 149)",sendButton:"rgb(101, 119, 149)",groupSettings:"rgb(101, 119, 149)",userProfileSettings:"rgb(101, 119, 149)",approveRequest:"#30CC8B",rejectRequest:"#657795",primaryColor:"#D53A94",subtleColor:"#787E99"},textColor:{chatProfileText:"#000",messageInputText:"#000",chatSentBubbleText:"#fff",chatReceivedBubbleText:"#000",chatFrameTitleText:"#000",chatFrameDescriptionText:"rgba(0, 0, 0, 0.5)",chatFrameURLText:"#000",timestamp:"400",encryptionMessageText:"#000",buttonText:"#fff",buttonDisableText:"#AFB3BF",chatReceivedBubbleAddressText:"#000",chatReceivedBubbleTimestampText:"#000",chatSentBubbleTimestampText:"#fff",searchInputText:"#000",searchPlaceholderText:"rgb(101, 119, 149)",modalHeadingText:"#000",modalSubHeadingText:"rgb(101, 119, 149)",chatPreviewParticipantText:"#000",chatPreviewMessageText:"#888",chatPreviewDateText:"#888",chatPreviewBadgeText:"#fff",userProfileText:"#000",chatWidgetModalHeadingText:"#000"},backdropFilter:"none",spinnerColor:"rgb(202, 89, 155)",scrollbarColor:"rgb(202, 89, 155)",skeletonBG:()=>(0,o.AH)([""," 1s linear infinite alternate;"],kae)},Mae={borderRadius:{chatViewComponent:"24px",chatProfile:"32px",messageInput:"13px",searchInput:"99px",modal:"16px",modalInnerComponents:"12px",chatPreview:"24px",userProfile:"0px",chatWidget:"24px",chatBubbleBorderRadius:"12px",chatBubbleContentBorderRadius:"8px",chatBubbleReplyBorderRadius:"8px",reactionsPickerBorderRadius:"12px",reactionsBorderRadius:"24px"},padding:{chatPreviewListPadding:"0px 6px 0px 0px",chatPreviewPadding:"10px 5px",chatProfilePadding:"0px",chatViewPadding:"0px",chatViewListPadding:"0px 6px 0px 0px",messageInputPadding:"0px",chatBubbleSenderPadding:"0px",chatBubbleReceiverPadding:"0px",chatBubbleContentPadding:"8px 16px",chatBubbleInnerContentPadding:"8px 12px",reactionsPickerPadding:"4px",reactionsPadding:"4px 8px"},margin:{chatPreviewListMargin:"0px",chatPreviewMargin:"2px 0px",chatProfileMargin:"10px 10px 2px 10px",chatViewMargin:"0px",chatViewListMargin:"0px 0px 0px 10px",messageInputMargin:"2px 10px 10px 10px",chatBubbleSenderMargin:"16px 8px",chatBubbleReceiverMargin:"16px 8px",chatBubbleContentMargin:"8px",chatBubbleReplyMargin:"8px"},backgroundColor:{inputBackground:"rgb(64, 70, 80)",inputHoverBackground:"linear-gradient(#404650, #404650), linear-gradient(to right, rgba(182, 160, 245, 1), rgba(244, 110, 246, 1), rgba(255, 222, 211, 1), rgba(161 159 161, 1))",chatViewComponentBackground:"rgb(40, 42, 46)",chatProfileBackground:"rgb(64, 70, 80)",messageInputBackground:"rgb(64, 70, 80)",chatSentBubbleBackground:"rgb(202, 89, 155)",chatReceivedBubbleBackground:"rgb(64, 70, 80)",chatPreviewSentBubbleBackground:"rgba(255, 255, 255, 0.1)",chatPreviewSentBorderBubbleBackground:"rgba(255, 255, 255, 0.5)",chatPreviewRecievedBubbleBackground:"rgba(0, 0, 0, 0.1)",chatPreviewRecievedBorderBubbleBackground:"rgba(0, 0, 0, 0.5)",chatActivePreviewBubbleBackground:"#ffffff10",chatActivePreviewBorderBubbleBackground:"#ffffff99",chatPreviewTagBackground:"rgba(255, 255, 255, 0.25)",chatFrameBackground:"#343536",encryptionMessageBackground:"rgb(64, 70, 80)",buttonBackground:"rgb(202, 89, 155)",buttonHotBackground:"#D53A94",searchInputBackground:"rgb(64,70,80)",modalBackground:"#202124",criteriaLabelBackground:"#202124",modalInputBackground:"transparent",modalHoverBackground:"rgb(64, 70, 80)",buttonDisableBackground:"#787E99",toastSuccessBackground:"linear-gradient(90.15deg, #30CC8B -125.65%, #30CC8B -125.63%, #2F3137 42.81%)",toastErrorBackground:"linear-gradient(89.96deg, #FF2070 -101.85%, #2F3137 51.33%)",toastWarningBackground:"linear-gradient(90.15deg, #FFB800 -125.65%, #FFB800 -125.63%, #FFF9FB 42.81%)",toastShadowBackground:"#00000010",chatPreviewBackground:"#202124",chatPreviewSelectedBackground:"rgb(64, 70, 80)",chatPreviewBadgeBackground:"rgb(226,8,128)",chatPreviewHoverBackground:"rgb(64, 70, 80)",userProfileBackground:"#202124",chatWidgetModalBackground:"#202124"},fontSize:{chatProfileText:"17px",messageInputText:"16px",chatSentBubbleText:"14px",chatReceivedBubbleText:"14px",timestamp:"12px",encryptionMessageText:"13px",chatReceivedBubbleAddressText:"12px",chatReceivedBubbleTimestampText:"10px",chatSentBubbleTimestampText:"10px",searchInputText:"16px",searchPlaceholderText:"16px",chatPreviewParticipantText:"14px",chatPreviewMessageText:"14px",chatPreviewDateText:"12px",chatPreviewBadgeText:"12px",userProfileText:"16px",chatFrameTitleText:"16px",chatFrameDescriptionText:"14px"},fontWeight:{chatProfileText:"500",messageInputText:"400",chatSentBubbleText:"400",chatReceivedBubbleText:"400",timestamp:"400",encryptionMessageText:"400",chatReceivedBubbleAddressText:"500",chatReceivedBubbleTimestampText:"400",chatSentBubbleTimestampText:"400",searchInputText:"400",searchPlaceholderText:"400",chatPreviewParticipantText:"500",chatPreviewMessageText:"400",chatPreviewDateText:"400",chatPreviewBadgeText:"600",userProfileText:"500",chatFrameTitleText:"500"},fontFamily:"inherit",border:{chatViewComponent:"none",chatProfile:"none",messageInput:"none",searchInput:"1px solid transparent",modal:"none",modalInnerComponents:"1px solid rgb(74, 79, 103)",chatPreview:"none",userProfile:"none",chatReceivedBubble:"none",chatSentBubble:"none",reactionsBorder:"1px solid transparent",reactionsHoverBorder:"1px solid #282A2E"},iconColor:{emoji:"rgba(120, 126, 153, 1)",attachment:"rgba(120, 126, 153, 1)",sendButton:"rgba(120, 126, 153, 1)",groupSettings:"rgba(120, 126, 153, 1)",userProfileSettings:"rgba(120, 126, 153, 1)",approveRequest:"#30CC8B",rejectRequest:"#657795",primaryColor:"#D53A94",subtleColor:"#787E99"},textColor:{chatProfileText:"rgb(182, 188, 214)",messageInputText:"rgb(182, 188, 214)",chatSentBubbleText:"#fff",chatReceivedBubbleText:"rgb(182, 188, 214)",chatFrameTitleText:"rgb(182, 188, 214)",chatFrameDescriptionText:"rgba(182, 188, 214, 0.5)",chatFrameURLText:"rgb(182, 188, 214)",timestamp:"rgb(182, 188, 214)",encryptionMessageText:"rgb(182, 188, 214)",buttonText:"#fff",chatReceivedBubbleAddressText:"rgb(182, 188, 214)",chatReceivedBubbleTimestampText:"rgb(182, 188, 214)",chatSentBubbleTimestampText:"#fff",searchInputText:"#fff",searchPlaceholderText:"rgb(101, 119, 149)",modalHeadingText:"#fff",modalSubHeadingText:"rgb(182, 188, 214)",buttonDisableText:"#B6BCD6",chatPreviewParticipantText:"#fff",chatPreviewMessageText:"#888",chatPreviewDateText:"#888",chatPreviewBadgeText:"#fff",userProfileText:"rgb(182, 188, 214)",chatWidgetModalHeadingText:"#fff"},backdropFilter:"none",spinnerColor:"rgb(202, 89, 155)",scrollbarColor:"rgb(202, 89, 155)",skeletonBG:()=>(0,o.AH)([""," 1s linear infinite alternate;"],_ae)},Pae=(0,i.createContext)(Tae),jae=()=>(0,n.jsx)("svg",Object.assign({width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M0 16.5V0.5L19 8.5L0 16.5ZM2 13.5L13.85 8.5L2 3.5V7L8 8.5L2 10V13.5ZM2 13.5V3.5V10V13.5Z",fill:"#0D67FE"})})),Dae=()=>(0,n.jsxs)("svg",Object.assign({width:"36",height:"24",viewBox:"0 0 36 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("rect",{y:"0.800049",width:"35.2",height:"22.4",rx:"8",fill:"#F5F2FF"}),(0,n.jsx)("path",{d:"M12.5055 15.944C12.0703 15.944 11.6559 15.8672 11.2623 15.7136C10.8687 15.5568 10.5199 15.3264 10.2159 15.0224C9.91507 14.7184 9.67667 14.3424 9.50067 13.8944C9.32787 13.4464 9.24147 12.9296 9.24147 12.344C9.24147 11.5792 9.38707 10.9296 9.67827 10.3952C9.97267 9.85765 10.3663 9.44805 10.8591 9.16645C11.3551 8.88485 11.9039 8.74405 12.5055 8.74405C13.3951 8.74405 14.0943 8.95045 14.6031 9.36325C15.1119 9.77605 15.4527 10.36 15.6255 11.1152L14.2911 11.3072C14.1663 10.904 13.9615 10.5824 13.6767 10.3424C13.3951 10.0992 13.0335 9.97605 12.5919 9.97285C12.1535 9.96645 11.7887 10.0608 11.4975 10.256C11.2063 10.4512 10.9871 10.728 10.8399 11.0864C10.6959 11.4448 10.6239 11.864 10.6239 12.344C10.6239 12.824 10.6959 13.24 10.8399 13.592C10.9871 13.944 11.2063 14.2176 11.4975 14.4128C11.7887 14.608 12.1535 14.7088 12.5919 14.7152C12.8895 14.7216 13.1583 14.6704 13.3983 14.5616C13.6415 14.4528 13.8463 14.2816 14.0127 14.048C14.1791 13.8144 14.2975 13.5152 14.3679 13.1504H13.2735V12.1424H15.7599C15.7663 12.184 15.7711 12.2576 15.7743 12.3632C15.7775 12.4688 15.7791 12.5296 15.7791 12.5456C15.7791 13.208 15.6447 13.7952 15.3759 14.3072C15.1071 14.8192 14.7279 15.2208 14.2383 15.512C13.7487 15.8 13.1711 15.944 12.5055 15.944ZM17.5091 15.8V8.88805H18.8147V15.8H17.5091ZM20.9257 15.8V8.88805H25.1497V10.1936H22.2313V11.6912H24.5737V12.9968H22.2313V15.8H20.9257Z",fill:"#494D5F"})]})),Oae=({color:e="#494D5F"})=>(0,n.jsx)("svg",Object.assign({width:"23",height:"27",viewBox:"0 0 23 27",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M15.9927 7.38877L5.58023 18.1723C5.23551 18.5598 5.0503 19.0675 5.06293 19.5902C5.07557 20.113 5.28509 20.6108 5.64811 20.9805C6.01114 21.3503 6.49986 21.5637 7.0131 21.5765C7.52634 21.5894 8.02478 21.4008 8.40523 21.0497L20.8177 8.22905C21.5072 7.45406 21.8776 6.43872 21.8523 5.39323C21.8271 4.34775 21.408 3.3522 20.682 2.6127C19.9559 1.87321 18.9785 1.44641 17.952 1.42067C16.9255 1.39493 15.9286 1.77222 15.1677 2.47442L2.75523 15.295C1.63138 16.4397 1 17.9922 1 19.611C1 21.2298 1.63138 22.7823 2.75523 23.927C3.87908 25.0716 5.40336 25.7147 6.99273 25.7147C8.5821 25.7147 10.1064 25.0716 11.2302 23.927L21.4927 13.4999",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})})),Bae=({scrollToBottom:e})=>{var t;const r=(0,i.useContext)(Pae),[o,a]=(0,i.useState)(""),[s,c]=(0,i.useState)(!1),[u,l]=(0,i.useState)(!1),d=(0,i.useRef)(null),f=i.useRef(null),{selectedChatId:h,chatsFeed:p,setSearchedChats:g,requestsFeed:m}=(0,i.useContext)(y5),{newChat:y,setNewChat:b}=(0,i.useContext)(T5),{sendMessage:v,loading:w}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{setChatFeed:o,setChat:a,chatsFeed:s,chats:c,selectedChatId:u}=(0,i.useContext)(y5),{account:l,env:d,decryptedPgpPvtKey:f}=(0,i.useContext)(v5);y9();const h=(0,i.useCallback)((r=>pJ(void 0,void 0,void 0,(function*(){const{receiver:i,message:o,messageType:a}=r||{};n(!0);try{const e=yield _.chat.send({messageContent:o,messageType:a,receiverAddress:i,account:l,pgpPrivateKey:f,env:d});return n(!1),!!e&&void 0}catch(e){return n(!1),t(e.message),void console.log(e)}}))),[f,a,u,c]);return{sendMessage:h,error:e,loading:r}})(),[A,C]=(0,i.useState)(!1),{fetchRequests:E}=A9(),x=V9(425);H9(d,(()=>{l(!1),c(!1)}));const S=(t,r)=>pJ(void 0,void 0,void 0,(function*(){try{yield v({message:t,receiver:h,messageType:r}),e(),(p[h]||m[h])&&g(null),y&&b(!1),p[h]||E({page:1,requestLimit:30})}catch(ys){console.log(ys)}})),I=()=>pJ(void 0,void 0,void 0,(function*(){""!==o.trim()&&(yield S(o,"Text"),a(""))})),k=(0,i.useRef)(null);return(0,i.useEffect)((()=>{var e,t;if(null===(e=null==k?void 0:k.current)||void 0===e?void 0:e.style){k.current.style.height="25px";const e=null===(t=k.current)||void 0===t?void 0:t.scrollHeight;k.current.style.height=e+"px"}}),[k,o]),(0,n.jsx)(Nae,{children:(0,n.jsxs)(Rae,Object.assign({borderColor:"#DDDDDF",borderStyle:"solid",borderWidth:"1px",borderRadius:"8px",padding:"12px 17px 15px 17px",background:"#fff",alignItems:"center",justifyContent:"space-between"},{children:[(0,n.jsxs)(D7,Object.assign({gap:"8px",flex:"1"},{children:[(0,n.jsx)(O7,Object.assign({width:"20px",cursor:"pointer",height:"20px",alignSelf:"end",onClick:()=>c(!s)},{children:(0,n.jsx)(Sae,{color:null===(t=r.iconColor)||void 0===t?void 0:t.emoji,size:22})})),s&&(0,n.jsx)(D7,Object.assign({ref:d,position:"absolute",bottom:"3.5rem",left:"3.5rem"},{children:(0,n.jsx)(FP,{onEmojiClick:(e,t)=>{a(o+e.emoji),c(!1)},width:x?260:320,height:370})})),(0,n.jsx)(Fae,{onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),I())},placeholder:"Type your message...",onChange:e=>{var t;""!==(t=e.target.value).trim()&&a(t)},value:o,ref:k,rows:1})]})),(0,n.jsxs)(Lae,{children:[(0,n.jsx)(D7,Object.assign({width:"34px",height:"24px",cursor:"pointer",alignSelf:"end",onClick:()=>l(!u)},{children:(0,n.jsx)(Dae,{})})),u&&(0,n.jsx)(D7,Object.assign({position:"absolute",bottom:"3.5rem",right:x?"5rem":"8rem",ref:d},{children:(0,n.jsx)(vj,{onGifClick:e=>pJ(void 0,void 0,void 0,(function*(){S(e.url,"GIF"),l(!1)})),width:x?260:320,height:370,tenorApiKey:String(U4)})})),(0,n.jsx)(D7,Object.assign({onClick:()=>{f.current&&f.current.click()}},{children:!A&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D7,Object.assign({width:"17px",height:"24px",cursor:"pointer",alignSelf:"end",onClick:()=>b(!0)},{children:(0,n.jsx)(Oae,{})})),(0,n.jsx)(Uae,{type:"file",ref:f,onChange:e=>(e=>pJ(void 0,void 0,void 0,(function*(){if(e.target instanceof HTMLInputElement&&e.target.files&&e.target&&e.target.files&&e.target.files.length){const r=e.target.files[0];if(r)try{const e=2097152;if(r.size>e)throw console.log("Files larger than 2mb is now allowed"),new Error("Files larger than 2mb is now allowed");C(!0);const t=r.type.startsWith("image")?"Image":"File",n=new FileReader;let i;n.readAsDataURL(r),n.onloadend=e=>pJ(void 0,void 0,void 0,(function*(){i={content:e.target.result,name:r.name,type:r.type,size:r.size},S(JSON.stringify(i),t)}))}catch(t){console.log(t)}finally{C(!1)}}})))(e)})]})})),!(w||A)&&(0,n.jsx)(D7,Object.assign({cursor:"pointer",alignSelf:"end",height:"24px",onClick:()=>I()},{children:(0,n.jsx)(jae,{})})),(w||A)&&(0,n.jsx)(D7,Object.assign({alignSelf:"end",height:"24px"},{children:(0,n.jsx)(k7,{size:"22"})}))]})]}))})},Nae=o.Ay.div.withConfig({displayName:"Typebar__Container",componentId:"sc-cu9bt3-0"})(["width:100%;border-top:1px solid #dddddf;overflow:hidden;padding:15px 0px;"]),Rae=(0,o.Ay)(D7).withConfig({displayName:"Typebar__TypebarSection",componentId:"sc-cu9bt3-1"})(["gap:10px;@media ","{gap:0px;}"],c5.mobileL),Lae=(0,o.Ay)(D7).withConfig({displayName:"Typebar__SendSection",componentId:"sc-cu9bt3-2"})(["gap:11.5px;@media ","{gap:7.5px;}"],c5.mobileL),Fae=o.Ay.textarea.withConfig({displayName:"Typebar__MultiLineInput",componentId:"sc-cu9bt3-3"})(["font-family:inherit;font-weight:400;transform:translateY(3px);font-size:16px;outline:none;overflow-y:auto;box-sizing:border-box;border:none;color:#000;resize:none;flex:1;padding-right:5px;align-self:end;@media ","{font-size:14px;}&&::-webkit-scrollbar{width:4px;padding-right:0px;}::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;height:50px;}::placeholder{color:#000;transform:translateY(1px);@media ","{font-size:14px;}}min-height:25px;max-height:80px;word-break:break-word;"],c5.mobileL,c5.mobileL),Uae=o.Ay.input.withConfig({displayName:"Typebar__FileInput",componentId:"sc-cu9bt3-4"})(["display:none;"]),zae=({size:e})=>(0,n.jsx)("svg",Object.assign({width:null!=e?e:"25",height:null!=e?e:"25",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("g",Object.assign({id:"lock_FILL0_wght500_GRAD0_opsz48 1"},{children:(0,n.jsx)("path",{id:"Vector",d:"M4.62836 18.4476C4.23803 18.4476 3.90388 18.3086 3.62592 18.0307C3.34796 17.7527 3.20898 17.4186 3.20898 17.0283V8.07625C3.20898 7.68455 3.34796 7.34923 3.62592 7.07029C3.90388 6.79135 4.23803 6.65188 4.62836 6.65188H5.98707V4.76148C5.98707 3.64529 6.3778 2.69489 7.15926 1.91029C7.94073 1.1257 8.88805 0.733398 10.0012 0.733398C11.1144 0.733398 12.0613 1.1257 12.8421 1.91029C13.6229 2.69489 14.0133 3.64529 14.0133 4.76148V6.65188H15.372C15.7637 6.65188 16.099 6.79135 16.378 7.07029C16.6569 7.34923 16.7964 7.68455 16.7964 8.07625V17.0283C16.7964 17.4186 16.6569 17.7527 16.378 18.0307C16.099 18.3086 15.7637 18.4476 15.372 18.4476H4.62836ZM4.62836 17.0283H15.372V8.07625H4.62836V17.0283ZM10.0037 14.1564C10.4458 14.1564 10.8231 14.0034 11.1356 13.6974C11.4481 13.3914 11.6044 13.0236 11.6044 12.5939C11.6044 12.1773 11.4469 11.7988 11.1321 11.4585C10.8173 11.1182 10.4388 10.9481 9.99669 10.9481C9.55458 10.9481 9.17728 11.1182 8.86478 11.4585C8.55228 11.7988 8.39603 12.1807 8.39603 12.6043C8.39603 13.0279 8.55344 13.3925 8.86828 13.6981C9.18311 14.0036 9.56158 14.1564 10.0037 14.1564ZM7.40644 6.65188H12.5939V4.76263C12.5939 4.03502 12.3429 3.41897 11.8408 2.91448C11.3387 2.41001 10.7263 2.15777 10.0038 2.15777C9.28129 2.15777 8.66776 2.41001 8.16323 2.91448C7.65871 3.41897 7.40644 4.03502 7.40644 4.76263V6.65188Z",fill:"#62626A"})}))})),Hae=({size:e})=>(0,n.jsx)("svg",Object.assign({width:null!=e?e:"21",height:null!=e?e:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("g",Object.assign({id:"no_encryption"},{children:(0,n.jsx)("path",{id:"Vector",d:"M17.1668 14.2913L15.5002 12.6247V8.33301H11.2085L9.54183 6.66634H13.0002V4.99967C13.0002 4.30523 12.7606 3.71495 12.2814 3.22884C11.8022 2.74273 11.2154 2.49967 10.521 2.49967C9.82655 2.49967 9.24322 2.73926 8.771 3.21842C8.29877 3.69759 8.06266 4.29134 8.06266 4.99967V5.18717L6.54183 3.66634C6.84738 2.81912 7.36822 2.13509 8.10433 1.61426C8.84044 1.09342 9.646 0.833008 10.521 0.833008C11.6738 0.833008 12.6529 1.23926 13.4585 2.05176C14.2641 2.86426 14.6668 3.8469 14.6668 4.99967V6.66634H15.5002C15.9585 6.66634 16.3509 6.82954 16.6772 7.15592C17.0036 7.48231 17.1668 7.87467 17.1668 8.33301V14.2913ZM17.5835 19.4163L16.2918 18.1247C16.1391 18.1941 16.0002 18.2462 15.8752 18.2809C15.7502 18.3156 15.6252 18.333 15.5002 18.333H5.50016C5.04183 18.333 4.64947 18.1698 4.32308 17.8434C3.99669 17.517 3.8335 17.1247 3.8335 16.6663V8.33301C3.8335 7.98579 3.93419 7.66634 4.13558 7.37467C4.33697 7.08301 4.59738 6.87467 4.91683 6.74967L1.0835 2.91634L2.25016 1.74967L18.7502 18.2497L17.5835 19.4163ZM14.7918 16.6663L11.7293 13.5622C11.5766 13.715 11.3995 13.833 11.1981 13.9163C10.9967 13.9997 10.7779 14.0413 10.5418 14.0413C10.0835 14.0413 9.69113 13.8781 9.36475 13.5518C9.03836 13.2254 8.87516 12.833 8.87516 12.3747C8.87516 12.1386 8.91683 11.9198 9.00016 11.7184C9.0835 11.517 9.20155 11.34 9.35433 11.1872L6.4585 8.33301H5.50016V16.6663H14.7918Z",fill:"#62626A"})}))})),Vae={ENCRYPTED:{IconComponent:(0,n.jsx)(zae,{}),text:"Messages are end-to-end encrypted. Only users in this chat can view or listen to them."},NO_ENCRYPTED:{IconComponent:(0,n.jsx)(Hae,{}),text:"Messages are not encrypted until chat request is accepted."}},Kae=({id:e})=>(0,n.jsxs)(D7,Object.assign({padding:"12px",gap:"8px",borderRadius:"12px",borderStyle:"solid",borderWidth:"1px",borderColor:"var(--neutral-neutral-100, #EDEDEE)",background:"var(--neutral-neutral-050, #F5F5F5)",margin:"10px 10px 0px"},{children:[Vae[e].IconComponent,(0,n.jsx)(B7,Object.assign({fontSize:"13px",color:"var(--neutral-neutral-600, #62626A)",fontWeight:"600",textAlign:"left"},{children:Vae[e].text}))]})),Gae=({chat:e,position:t})=>{const r=JSON.parse(e.messageContent),i=r.name,o=r.content,a=r.size;return(0,n.jsxs)(D7,Object.assign({alignSelf:t?"end":"start",maxWidth:"80%",margin:"5px 0",background:"#343536",borderRadius:"8px",justifyContent:"space-around",padding:"10px 13px",gap:"15px"},{children:[(0,n.jsx)(R7,{src:q4(i.split(".").slice(-1)[0]),alt:"extension icon",width:"20px",height:"20px"}),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"5px"},{children:[(0,n.jsx)(B7,Object.assign({color:"#fff",fontSize:"15px"},{children:s9(i,11)})),(0,n.jsx)(B7,Object.assign({color:"#fff",fontSize:"12px"},{children:u9(a)}))]})),(0,n.jsx)(ese,Object.assign({href:o,target:"_blank",rel:"noopener noreferrer",download:!0},{children:(0,n.jsx)(Xae,{className:"fa fa-download","aria-hidden":"true"})}))]}))},qae=({chat:e,position:t})=>(0,n.jsx)(D7,Object.assign({alignSelf:t?"end":"start",maxWidth:"65%",margin:"5px 0"},{children:(0,n.jsx)(R7,{src:JSON.parse(e.messageContent).content,alt:"",width:"100%",borderRadius:t?"12px 12px 0px 12px":"12px 12px 12px 0px"})})),Qae=({chat:e,position:t})=>(0,n.jsx)(D7,Object.assign({alignSelf:t?"end":"start",maxWidth:"65%",margin:"5px 0"},{children:(0,n.jsx)(R7,{src:e.messageContent,alt:"",width:"100%",borderRadius:t?"12px 12px 0px 12px":"12px 12px 12px 0px"})})),Wae=({chat:e,position:t})=>{const r=s()(e.timestamp).format("hh:mm a");return(0,n.jsxs)(D7,Object.assign({gap:"5px",background:t?"#0D67FE":"#EDEDEE",padding:"8px 12px",borderRadius:t?"12px 12px 0px 12px":"12px 12px 12px 0px",margin:"5px 0",alignSelf:t?"end":"start",justifyContent:"start",maxWidth:"80%",minWidth:"71px",position:"relative"},{children:[" ",(0,n.jsx)(D7,Object.assign({flexDirection:"column",padding:"5px 0 15px 0"},{children:e.messageContent.split("\n").map((e=>(0,n.jsx)(B7,Object.assign({alignSelf:"start",textAlign:"left",fontSize:"16px",fontWeight:"400",color:t?"#fff":"#000"},{children:e}),Math.random().toString())))})),(0,n.jsx)(B7,Object.assign({position:"absolute",fontSize:"12px",fontWeight:"400",color:t?"#A9C8FF":"#62626A",bottom:"6px",right:"10px"},{children:r}))]}))},Jae=({chat:e})=>{const{account:t}=(0,i.useContext)(v5),r=l8(e.fromDID).toLowerCase()!==t.toLowerCase()?0:1;return"GIF"===e.messageType?(0,n.jsx)(Qae,{chat:e,position:r}):"Image"===e.messageType?(0,n.jsx)(qae,{chat:e,position:r}):"File"===e.messageType?(0,n.jsx)(Gae,{chat:e,position:r}):(0,n.jsx)(Wae,{chat:e,position:r})},Yae=()=>{(0,i.useContext)(T5);const{selectedChatId:e,chatsFeed:t,requestsFeed:r,chats:o,setRequestsFeed:a,setChatFeed:c,setSearchedChats:u,searchedChats:l,setSelectedChatId:d}=(0,i.useContext)(y5),{account:f,env:h,decryptedPgpPvtKey:p}=(0,i.useContext)(v5),g=t[e]||r[e]||(l?l[e]:null),m=Object.keys(r),y=o.get(e),b=new Set,v=(0,i.useRef)(null),w=(0,i.useRef)(null),{historyMessages:A,loading:C}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{chats:o,setChat:a,selectedChatId:s}=(0,i.useContext)(y5),{account:c,env:u,decryptedPgpPvtKey:l}=(0,i.useContext)(v5),d=(0,i.useCallback)((({threadHash:r,limit:i=10})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{const e=yield _.chat.history({threadhash:r,account:c,toDecrypt:!!l,pgpPrivateKey:String(l),limit:i,env:u});if(e.reverse(),o.get(s)){const t={},r=Object.values([...e,...o.get(s).messages].reduce(((e,t)=>(t.timestamp&&!e[t.timestamp]&&(e[t.timestamp]=t),e)),t));a(s,{messages:r,lastThreadHash:e[0].link})}else a(s,{messages:e,lastThreadHash:e[0].link})}catch(e){n(!1),t(e.message),console.log(e)}finally{n(!1)}}))),[o]);return{historyMessages:d,error:e,loading:r}})(),{approveChatRequest:E,loading:x}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{account:o,env:a,decryptedPgpPvtKey:s}=(0,i.useContext)(v5),c=(0,i.useCallback)((r=>pJ(void 0,void 0,void 0,(function*(){const{senderAddress:i}=r||{};n(!0);try{return yield _.chat.approve({status:"Approved",account:o,senderAddress:i,pgpPrivateKey:s,env:a})}catch(e){return n(!1),t(e.message),void console.log(e)}}))),[]);return{approveChatRequest:c,error:e,loading:r}})(),S=({chat:e,dateNum:t})=>{const r=F8(e.timestamp);return b.add(t),(0,n.jsx)(B7,Object.assign({margin:"15px 0",fontSize:"14px",fontWeight:"600",color:"#AFAFB6",textAlign:"center"},{children:r}))},I=e=>{var t;null===(t=null==w?void 0:w.current)||void 0===t||t.scrollIntoView(!e||{behavior:"smooth"})};(0,i.useEffect)((()=>{I()}),[e]),(0,i.useEffect)((()=>{e&&y&&(null==y?void 0:y.messages.length)&&I(null)}),[o.get(e)]);const k=()=>pJ(void 0,void 0,void 0,(function*(){let e=null;!y&&(null==g?void 0:g.threadhash)?e=null==g?void 0:g.threadhash:o.size&&(null==y?void 0:y.lastThreadHash)&&(e=null==y?void 0:y.lastThreadHash),e&&(yield A({limit:15,threadHash:e}))}));(0,i.useEffect)((()=>{!function(){pJ(this,void 0,void 0,(function*(){yield k()}))}()}),[e]);return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",justifyContent:"start",alignItems:"start",width:"100%",overflow:"hidden",height:"100%"},{children:[(0,n.jsx)($ae,Object.assign({width:"100%",height:m.includes(e)?"97%":"85%",justifyContent:"start",flexDirection:"column",alignItems:"start",borderWidth:"0 0 1px 0",borderStyle:"none none none none",overflow:"hidden scroll",ref:v,onScroll:()=>pJ(void 0,void 0,void 0,(function*(){if(v.current){const{scrollTop:e}=v.current;if(0===e){const e=v.current,t=e.scrollTop,r=e.scrollHeight-e.clientHeight;yield k();const n=e.scrollHeight-e.clientHeight;e.scrollTop=t+(n-r)}}})),borderColor:"transparent transparent #dddddf transparent"},{children:(0,n.jsxs)(n.Fragment,{children:[g&&!g.publicKey?(0,n.jsx)(Kae,{id:"NO_ENCRYPTED"}):(0,n.jsx)(Kae,{id:"ENCRYPTED"}),C?(0,n.jsx)(k7,{}):"",y?(0,n.jsxs)(Zae,Object.assign({flexDirection:"column",justifyContent:"start",padding:"0 2px 15px 2px"},{children:[null==y?void 0:y.messages.map(((e,t)=>{const r=s()(e.timestamp).format("L");return(0,n.jsxs)(n.Fragment,{children:[b.has(r)?null:S({chat:e,dateNum:r}),(0,n.jsx)(Jae,{chat:e},t)]})})),m.includes(e)&&(0,n.jsxs)(D7,Object.assign({gap:"5px",background:"#EDEDEE",padding:"8px 12px",margin:"5px 0",borderRadius:"12px 12px 12px 0px",alignSelf:"start",justifyContent:"start",maxWidth:"68%",minWidth:"15%",position:"relative",flexDirection:"column"},{children:[(0,n.jsx)(B7,Object.assign({alignSelf:"center",textAlign:"left",fontSize:"16px",fontWeight:"400",color:"#000",lineHeight:"24px"},{children:"Please accept the Push Chat request to continue the conversation"})),(0,n.jsx)(tse,Object.assign({onClick:()=>x?null:pJ(void 0,void 0,void 0,(function*(){if(e)try{if(!p)return;if(yield E({senderAddress:e})){const t=Object.assign({},r),n=t[e];delete t[e],c(e,n),u(null),a(t)}}catch(t){console.log(t.message)}}))},{children:x?(0,n.jsx)(k7,{color:"#fff",size:"24"}):"Accept"}))]})),(0,n.jsx)("div",{ref:w})]})):null]})})),!m.includes(e)&&(0,n.jsx)(Bae,{scrollToBottom:I})]}))},Zae=(0,o.Ay)(D7).withConfig({displayName:"MessageBox__MessageListCard",componentId:"sc-7co3u0-0"})([""]),$ae=(0,o.Ay)(D7).withConfig({displayName:"MessageBox__Container",componentId:"sc-7co3u0-1"})(["&::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;}&::-webkit-scrollbar{width:5px;}"]),Xae=o.Ay.i.withConfig({displayName:"MessageBox__FileDownloadIcon",componentId:"sc-7co3u0-2"})(["color:#575757;"]),ese=o.Ay.a.withConfig({displayName:"MessageBox__FileDownloadIconAnchor",componentId:"sc-7co3u0-3"})(["font-size:20px;"]),tse=o.Ay.button.withConfig({displayName:"MessageBox__Button",componentId:"sc-7co3u0-4"})(["border:none;cursor:pointer;border-radius:8px;margin:15px 0px 8px 0px;background:#0D67FE;color:white;width:100%;font-size:16px;font-weight:600;line-height:24px;max-height:48px;min-height:48px;padding:0px 24px;display:flex;justify-content:center;align-items:center;"]),rse=({chatsFeed:e})=>((0,i.useContext)(T5),(0,n.jsx)(n.Fragment,{children:!!Object.keys(e||{}).length&&Object.keys(e).map((t=>(0,n.jsx)(cae,{chat:e[t],id:t},t)))})),nse=()=>{const{requestsFeed:e,setRequestsFeed:t,finishedFetchingRequests:r,setFinishedFetchingRequests:o}=(0,i.useContext)(y5),a=(0,i.useRef)(null),[s,c]=(0,i.useState)(1),[u,l]=(0,i.useState)(!1),d=C9(a,"1px"),{decryptedPgpPvtKey:f,env:h}=(0,i.useContext)(v5),{fetchRequests:p,loading:g}=A9();(0,i.useEffect)((()=>{Object.keys(e).length||f&&pJ(void 0,void 0,void 0,(function*(){const e=yield p({page:s,requestLimit:K4}),r=Object.assign({},e);t(r)}))}),[p,f,h,s]),(0,i.useEffect)((()=>{if(!d||g||r)return;const e=s+1;c(e),m(e)}),[d]);const m=r=>pJ(void 0,void 0,void 0,(function*(){if(f)try{l(!0);const n=yield p({page:r,requestLimit:K4});Object.keys(n||{}).length||o(!0);const i=Object.assign(Object.assign({},e),n);t(i)}catch(ys){console.log(ys),l(!1)}finally{l(!1)}}));return(0,n.jsxs)(ise,Object.assign({overflow:"hidden auto",justifyContent:"start",width:"100%",flexDirection:"column"},{children:[g&&!u||!Object.keys(e||{}).length?!u&&g&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})})):(0,n.jsx)(rse,{chatsFeed:e}),!g&&0===Object.keys(e).length&&(0,n.jsx)(B7,Object.assign({margin:"20px 0 0 0"},{children:"No Requests yet"})),(0,n.jsx)("div",{ref:a,style:{padding:"1px"}}),u&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})}))]}))},ise=(0,o.Ay)(D7).withConfig({displayName:"RequestsFeedList__ChatListCard",componentId:"sc-50sva4-0"})(["&::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;}&::-webkit-scrollbar{width:5px;}"]),ose=Object.assign(Object.assign({},Zee),{borderRadius:Object.assign(Object.assign({},Zee.borderRadius),{modal:"12px"}),color:Object.assign(Object.assign({},Zee.color),{channelNameText:"#62626A",notificationTitleText:"#000",notificationContentText:"#62626A",modalBorder:"#C8C8CB",timestamp:"#62626A"}),fontWeight:Object.assign(Object.assign({},Zee.fontWeight),{channelNameText:600,notificationTitleText:600,notificationContentText:500,timestamp:400}),fontSize:Object.assign(Object.assign({},Zee.fontSize),{channelNameText:"16px",notificationTitleText:"16px",notificationContentText:"16px",timestamp:"12px"}),modalDivider:"none"}),ase=({notificationFeeds:e})=>{const{subscriptionStatus:t}=(0,i.useContext)(w5),{onSubscribeToChannel:r}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),[o,a]=(0,i.useState)(!1),{setChannelSubscriptionStatus:s}=(0,i.useContext)(w5),{account:c,env:u,signer:l}=(0,i.useContext)(v5),d=(0,i.useCallback)((({channelAddress:r})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{if(!r)return;if(!r)return;console.log(l);const e=yield null==l?void 0:l.getChainId();yield _.channels.subscribe({signer:l,channelAddress:g9(r,e),userAddress:g9(c,e),onSuccess:()=>{s(r,!0),a(!0)},onError:e=>{t(e.message)},env:u})}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[c,u]);return{onSubscribeToChannel:d,error:e,loading:r,success:o}})(),{signer:o}=(0,i.useContext)(v5);return(0,n.jsx)(n.Fragment,{children:!!Object.keys(e||{}).length&&Object.keys(e).map((i=>(0,n.jsx)(ete,{notificationTitle:e[i].title,notificationBody:e[i].message,cta:e[i].cta,app:e[i].app,icon:e[i].icon,image:e[i].image,customTheme:ose,isSpam:!!o&&!t.get(e[i].channel),subscribeFn:o&&!t.get(e[i].channel)?()=>r({channelAddress:e[i].channel}):void 0,isSubscribedFn:o&&!t.get(e[i].channel)?()=>pJ(void 0,void 0,void 0,(function*(){return(e=>!!t.get(e))(e[i].channel)})):void 0,chainName:e[i].blockchain,url:e[i].url},i)))})},sse=()=>{const{spamNotifsFeed:e,setSpamNotifsFeed:t,finishedFetchingSpam:r,setFinishedFetchingSpam:o}=(0,i.useContext)(w5),a=(0,i.useRef)(null),{account:s,env:c}=(0,i.useContext)(v5),[u,l]=(0,i.useState)(1),[d,f]=(0,i.useState)(!1),h=C9(a,"1px"),{fetchNotification:p,loading:g}=T9();(0,i.useEffect)((()=>{Object.keys(e).length||pJ(void 0,void 0,void 0,(function*(){const e=yield p({page:1,limit:G4,spam:!0});if(e){const r=Object.assign({},e);t(r)}}))}),[c,s]),(0,i.useEffect)((()=>{if(!h||g||r||Object.keys(e).lengthpJ(void 0,void 0,void 0,(function*(){if(s)try{f(!0);const n=yield p({page:r,limit:G4,spam:!0});Object.keys(n||{}).length||o(!0);const i=Object.assign(Object.assign({},e),n);t(i)}catch(ys){console.log(ys),f(!1)}finally{f(!1)}}));return(0,n.jsxs)(cse,Object.assign({overflow:"hidden auto",justifyContent:"start",flexDirection:"column",width:"100%",padding:"0 3px"},{children:[g&&!d||!Object.keys(e||{}).length?!d&&g&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})})):(0,n.jsx)(O7,{children:(0,n.jsx)(ase,{notificationFeeds:e})}),!g&&0===Object.keys(e).length&&(0,n.jsx)(B7,Object.assign({margin:"20px 0 0 0"},{children:"No messages from apps yet"})),(0,n.jsx)("div",{ref:a,style:{padding:"1px"}}),d&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})}))]}))},cse=(0,o.Ay)(D7).withConfig({displayName:"SpamNotificationFeedList__SpamNotifListCard",componentId:"sc-78wpz2-0"})(["&::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;}&::-webkit-scrollbar{width:5px;}"]),use=({height:e,width:t})=>(0,n.jsx)("svg",Object.assign({width:t||"18",height:e||"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M12.5 11H11.71L11.43 10.73C12.41 9.59 13 8.11 13 6.5C13 2.91 10.09 0 6.5 0C2.91 0 0 2.91 0 6.5C0 10.09 2.91 13 6.5 13C8.11 13 9.59 12.41 10.73 11.43L11 11.71V12.5L16 17.49L17.49 16L12.5 11ZM6.5 11C4.01 11 2 8.99 2 6.5C2 4.01 4.01 2 6.5 2C8.99 2 11 4.01 11 6.5C11 8.99 8.99 11 6.5 11Z",fill:"#7A7A85"})})),lse=({feed:e,handleSearch:t,onSearchReset:r,placeholder:o})=>{const[a,s]=(0,i.useState)(""),[c,u]=(0,i.useState)(!1),{setSearchedChats:l}=(0,i.useContext)(y5),{newChat:d,setActiveTab:f}=(0,i.useContext)(T5);i.useEffect((()=>{u(!0);const e=setTimeout((()=>{h(),u(!1)}),2e3);return()=>clearTimeout(e)}),[a]);const h=()=>{""!==a.trim()?t({searchedText:a,feed:e}):r()};return(0,n.jsxs)(dse,Object.assign({justifyContent:"space-between",margin:"4px 0",gap:"15px",alignItems:"center"},{children:[d&&(0,n.jsx)(D7,Object.assign({width:"auto",cursor:"pointer",onClick:()=>{l(null),f(C5.CHATS)}},{children:(0,n.jsx)(H7,{})})),(0,n.jsxs)(D7,Object.assign({width:"100%",background:"#ededee",padding:"8px 12px",borderRadius:"4px"},{children:[(0,n.jsx)(fse,{type:"text",value:a,onChange:e=>{return t=e.target.value,void s(t);var t},placeholder:o,onKeyDown:e=>{"Enter"===e.key&&h()}}),(0,n.jsxs)(B7,{children:[!c&&!a&&(0,n.jsx)(O7,Object.assign({cursor:"pointer",width:"17.49px",height:"17.49px",onClick:()=>h()},{children:(0,n.jsx)(use,{})})),!c&&a&&(0,n.jsx)(O7,Object.assign({cursor:"pointer",onClick:()=>{s(""),r()},width:"17.49px",height:"17.49px"},{children:(0,n.jsx)(Xee,{})})),c&&(0,n.jsx)(k7,{size:"17.49"})]})]}))]}))},dse=(0,o.Ay)(D7).withConfig({displayName:"Search__Container",componentId:"sc-4t27cf-0"})(["border-radius:4px;"]),fse=o.Ay.input.withConfig({displayName:"Search__Input",componentId:"sc-4t27cf-1"})(["border:none;background:#ededee;width:100%;flex:1;margin-left:10px;font-style:normal;font-weight:400;font-size:16px;line-height:24px;&:focus{outline:none;background-origin:border;background-clip:padding-box,border-box;}&::placeholder{color:#62626a;}"]),hse=({stroke:e,fill:t})=>(0,n.jsx)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M0 30V2C0 1.43333 0.191667 0.958333 0.575 0.575C0.958333 0.191667 1.43333 0 2 0H28C28.5667 0 29.0417 0.191667 29.425 0.575C29.8083 0.958333 30 1.43333 30 2V20C30 20.5667 29.8083 21.0417 29.425 21.425C29.0417 21.8083 28.5667 22 28 22H8L0 30ZM10 32C9.43333 32 8.95833 31.8083 8.575 31.425C8.19167 31.0417 8 30.5667 8 30V26H34V8H38C38.5667 8 39.0417 8.19167 39.425 8.575C39.8083 8.95833 40 9.43333 40 10V40L32 32H10ZM26 4H4V20.35L6.35 18H26V4Z",fill:"#62626A"})})),pse={SEARCH:{title:"No Results",subTitle:"",IconComponent:(0,n.jsx)(use,{height:"40",width:"40"})},NEW_CHAT:{title:"Start a new chat",subTitle:"Start by searching for a domain or wallet address.",IconComponent:(0,n.jsx)(hse,{})},NOTIFICATION:{title:"No message from apps yest",subTitle:"Keep an eye out for upcoming messages from the apps you connect with.",IconComponent:(0,n.jsx)(hse,{})},CHAT:{title:"Start your first chat",subTitle:"Get started by messaging a friend.",IconComponent:(0,n.jsx)(hse,{})}},gse=({id:e})=>(0,n.jsxs)(D7,Object.assign({flexDirection:"column",margin:"77px 0 0 0 ",gap:"15px"},{children:[pse[e].IconComponent,(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"7px"},{children:[(0,n.jsx)(B7,Object.assign({textAlign:"center",fontSize:"18px",fontWeight:"700",lineHeight:"24px",color:"#62626A"},{children:pse[e].title})),(0,n.jsx)(B7,Object.assign({textAlign:"center",fontSize:"14px",fontWeight:"400",lineHeight:"20px",color:"#62626A",padding:"0px 100px"},{children:pse[e].subTitle}))]}))]})),mse=()=>{const{chatsFeed:e,setChatsFeed:t,finishedFetchingChats:r,setFinishedFetchingChats:o}=(0,i.useContext)(y5),a=(0,i.useRef)(null),[s,c]=(0,i.useState)(1),[u,l]=(0,i.useState)(!1),d=C9(a,"1px"),{decryptedPgpPvtKey:f,account:h,env:p}=(0,i.useContext)(v5),{fetchChats:g,loading:m}=w9();(0,i.useEffect)((()=>{Object.keys(e).length||f&&pJ(void 0,void 0,void 0,(function*(){const e=yield g({page:s,chatLimit:V4}),r=Object.assign({},e);t(r)}))}),[g,p,s,h]),(0,i.useEffect)((()=>{if(!d||m||r)return;const e=s+1;c(e),y(e)}),[d]);const y=r=>pJ(void 0,void 0,void 0,(function*(){if(f)try{l(!0);const n=yield g({page:r,chatLimit:V4});Object.keys(n||{}).length||o(!0);const i=Object.assign(Object.assign({},e),n);t(i)}catch(ys){console.log(ys),l(!1)}finally{l(!1)}}));return(0,n.jsxs)(yse,Object.assign({overflow:"hidden auto",justifyContent:"start",flexDirection:"column"},{children:[m&&!u||!Object.keys(e||{}).length?!u&&m&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})})):(0,n.jsx)(rse,{chatsFeed:e}),!m&&0===Object.keys(e).length&&(0,n.jsx)(gse,{id:I5.CHAT}),(0,n.jsx)("div",{ref:a,style:{padding:"1px"}}),u&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})}))]}))},yse=(0,o.Ay)(D7).withConfig({displayName:"ChatsFeedList__ChatListCard",componentId:"sc-77y3ob-0"})(["padding:0px 3px 0px 0px;&::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;}&::-webkit-scrollbar{width:5px;}"]),bse=()=>(0,n.jsx)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M0 15V5H2V11.6L13.6 0L15 1.4L3.4 13H10V15H0Z",fill:"black"})})),vse=({fill:e})=>(0,n.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M9 5H11V7H9V5ZM9 9H11V15H9V9ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18Z",fill:"black"})})),wse=()=>{const{inboxNotifsFeed:e,setInboxNotifsFeed:t,allInboxNotifFeed:r,setAllInboxNotifsFeed:o,setSpamNotifsFeed:a,spamNotifsFeed:s,finishedFetchingInbox:c,setFinishedFetchingInbox:u}=(0,i.useContext)(w5),l=(0,i.useRef)(null),{account:d,env:f}=(0,i.useContext)(v5),[h,p]=(0,i.useState)(1),[g,m]=(0,i.useState)(!1),y=C9(l,"1px"),{fetchNotification:b,loading:v}=T9();(0,i.useEffect)((()=>{Object.keys(s).length||pJ(void 0,void 0,void 0,(function*(){const e=yield b({page:1,limit:G4,spam:!0});if(e){const t=Object.assign({},e);a(t)}}))}),[f,d]);(0,i.useEffect)((()=>{Object.keys(e).length||d&&pJ(void 0,void 0,void 0,(function*(){const e=yield b({page:1,limit:G4});if(e){const r=Object.assign({},e);t(r)}}))}),[b,f,h,d]),(0,i.useEffect)((()=>{Object.keys(r).length||d&&pJ(void 0,void 0,void 0,(function*(){const e=yield b({page:h,limit:1e4});o(Object.assign({},e))}))}),[b,f,h,d]),(0,i.useEffect)((()=>{if(!y||v||c||Object.keys(e).lengthpJ(void 0,void 0,void 0,(function*(){if(d)try{m(!0);const n=yield b({page:r,limit:G4});Object.keys(n||{}).length||u(!0);const i=Object.assign(Object.assign({},e),n);t(i)}catch(ys){console.log(ys),m(!1)}finally{m(!1)}}));return(0,n.jsxs)(Ase,Object.assign({overflow:"hidden auto",justifyContent:"start",flexDirection:"column",padding:"0 3px"},{children:[v&&!g||!Object.keys(e||{}).length?!g&&v&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})})):(0,n.jsx)(O7,{children:(0,n.jsx)(ase,{notificationFeeds:e})}),!v&&0===Object.keys(e).length&&(0,n.jsx)(gse,{id:I5.NOTIFICATION}),(0,n.jsx)("div",{ref:l,style:{padding:"1px"}}),g&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})}))]}))},Ase=(0,o.Ay)(D7).withConfig({displayName:"InboxNotificationFeedList__InboxNotifListCard",componentId:"sc-rvetgw-0"})(["&::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;}&::-webkit-scrollbar{width:5px;}"]),Cse=({tabName:e,tabValue:t})=>{const{activeTab:r,setActiveTab:o}=(0,i.useContext)(T5),{setSearchedChats:a,setSelectedChatId:s}=(0,i.useContext)(y5),{setSearchedNotifications:c}=(0,i.useContext)(w5);return(0,n.jsx)(D7,Object.assign({gap:"10px",flex:"1",cursor:"pointer",onClick:()=>{o(t),r===C5.CHATS?(a(null),s(null)):r===C5.APP_NOTIFICATIONS&&c(null)},borderColor:r===t?"#0D67FE":"#C8C8CB",borderStyle:r===t?" solid ":t===C5.CHATS?"solid none solid solid":"solid solid solid none",borderWidth:"2px",borderRadius:r===t?"8px":t===C5.CHATS?"8px 0px 0px 8px":"0px 8px 8px 0px",position:"relative",background:r===t?"#F0F5FF;":"#FFF",left:t===C5.APP_NOTIFICATIONS?"-2.2px":"auto",right:t===C5.CHATS?"-2.6px":"auto",padding:"8px 0",zIndex:r===t?"10":"0"},{children:(0,n.jsx)(Tse,Object.assign({color:r===t?"#0D67FE":"#62626A",fontSize:"16px",fontWeight:"600",cursor:"pointer"},{children:e}))}))},Ese=()=>(0,n.jsxs)(D7,Object.assign({margin:" 0 0 5px 0"},{children:[(0,n.jsx)(Cse,{tabName:"Chat",tabValue:C5.CHATS}),(0,n.jsx)(Cse,{tabName:"App Notifications",tabValue:C5.APP_NOTIFICATIONS})]})),xse=({subTab:e,tabValue:t,isClickable:r=!1})=>{const{setActiveSubTab:o,activeSubTab:a}=(0,i.useContext)(T5),{setSearchedChats:s,setSelectedChatId:c}=(0,i.useContext)(y5),{setSearchedNotifications:u}=(0,i.useContext)(w5);return(0,n.jsxs)(Ise,Object.assign({justifyContent:"start",gap:"15px",padding:"15px 8px",cursor:r?"pointer":"default",onClick:()=>{r&&(o(t),a===x5.REQUESTS?(s(null),c(null)):a===x5.SPAM&&u(null))}},{children:[(0,n.jsx)(B7,Object.assign({padding:t===x5.REQUESTS?"16px 17px 15px 18px":"15px 15px 11px 16px",borderRadius:"100%",border:"1px solid #DDDDDF",cursor:r?"pointer":"default"},{children:e.icon})),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start",gap:"5px",cursor:r?"pointer":"default"},{children:[(0,n.jsx)(B7,Object.assign({fontWeight:"700",fontSize:"16px",color:"#000"},{children:e.title})),(0,n.jsx)(B7,Object.assign({cursor:r?"pointer ":"default",textAlign:"left",fontWeight:"400",fontSize:"16px",color:r?"#0D67FE ":"#62626A"},{children:e.subTitle}))]}))]}))},Sse=()=>{const{loading:e}=w9(),{fetchChat:t}=y9(),{newChat:r,setNewChat:o,activeTab:a,activeSubTab:s}=(0,i.useContext)(T5),{chatsFeed:c,requestsFeed:u,searchedChats:l,web3NameList:d,selectedChatId:f,setSearchedChats:h}=(0,i.useContext)(y5),{env:p}=(0,i.useContext)(v5),{spamNotifsFeed:g,allInboxNotifFeed:m,setSearchedNotifications:y,searchedNotifications:b}=(0,i.useContext)(w5),{fetchChatProfile:v}=b9(),w={REQUESTS:{title:H4.REQUESTS.title,subTitle:` ${c9(Object.keys(u||{}).length,10)} requests from people you may know`,icon:(0,n.jsx)(bse,{})},SPAM:{title:H4.SPAM.title,subTitle:`${c9(Object.keys(g||{}).length,5)} messages in your spam box`,icon:(0,n.jsx)(vse,{})}};return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",width:"100%",height:"100%",justifyContent:"start"},{children:[!r&&(0,n.jsx)(Ese,{}),s!==x5.REQUESTS&&(a===C5.CHATS||r)&&(0,n.jsx)(lse,{feed:c,handleSearch:({searchedText:e,feed:r})=>pJ(void 0,void 0,void 0,(function*(){const n=((e,t,r)=>{const n={};return t&&Object.keys(e).forEach((i=>{var o;i.toLowerCase().includes(t.toLowerCase())?n[i]=e[i]:e[i].name?(null===(o=e[i].name)||void 0===o?void 0:o.toLowerCase()).includes(t.toLowerCase())&&(n[i]=e[i]):Object.keys(r).forEach((i=>{r[i].toLowerCase().includes(t.toLowerCase())&&e[u8(i)]&&(n[u8(i)]=e[u8(i)])}))})),n})(r,e,d);if(Object.keys(n||{}).length)h(n);else{let r;const n=yield R8({searchText:e,fetchChatProfile:v,env:p});n?(r=yield t({recipientAddress:n.did}),Object.keys(r||{}).length?h({[r.did.toLowerCase()]:r}):(r=E8({user:n}),h({[r.did.toLowerCase()]:r}),o(!0))):Object.keys(r||{}).length||h({})}})),onSearchReset:()=>{h(null)},placeholder:"Search name or domain"}),s!==x5.SPAM&&a===C5.APP_NOTIFICATIONS&&!r&&(0,n.jsx)(lse,{feed:m,handleSearch:({searchedText:e,feed:t})=>pJ(void 0,void 0,void 0,(function*(){const r=((e,t)=>{const r={};return e&&Object.keys(t).forEach((n=>{(t[n].app.toLowerCase().includes(e.toLowerCase())||t[n].title.toLowerCase().includes(e.toLowerCase()))&&(r[n]=t[n])})),r})(e,t);y(r)})),onSearchReset:()=>y(null),placeholder:"Search Notification"}),!l&&r&&(0,n.jsx)(gse,{id:I5.NEW_CHAT}),!r&&!e&&!l&&a===C5.CHATS&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(xse,{subTab:w.REQUESTS,tabValue:"REQUESTS",isClickable:!!Object.keys(u).length}),s!==x5.REQUESTS&&(0,n.jsx)(mse,{})]}),!r&&!b&&a===C5.APP_NOTIFICATIONS&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(xse,{subTab:w.SPAM,tabValue:"SPAM",isClickable:!!Object.keys(g).length}),s!==x5.SPAM&&(0,n.jsx)(wse,{})]}),(a===C5.CHATS||r)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(kse,Object.assign({overflow:"hidden auto",justifyContent:"start",gap:"2.5px",width:"100%",flexDirection:"column"},{children:l&&!!Object.keys(l).length&&(0,n.jsx)(rse,{chatsFeed:l})})),l&&!Object.keys(l).length&&(0,n.jsx)(gse,{id:I5.SEARCH})]}),a===C5.APP_NOTIFICATIONS&&!r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_se,{children:b&&!!Object.keys(b).length&&(0,n.jsx)(ase,{notificationFeeds:b})}),b&&!Object.keys(b).length&&(0,n.jsx)(gse,{id:I5.SEARCH})]})]}))},Ise=(0,o.Ay)(D7).withConfig({displayName:"Sidebar__SubContainer",componentId:"sc-nibeu-0"})(["border-bottom:1px dashed #ededee;cursor:pointer;&:hover{background:#f4f5fa;}"]),kse=(0,o.Ay)(D7).withConfig({displayName:"Sidebar__ChatListCard",componentId:"sc-nibeu-1"})(["&::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;}&::-webkit-scrollbar{width:5px;}"]),_se=(0,o.Ay)(O7).withConfig({displayName:"Sidebar__NotificationListCard",componentId:"sc-nibeu-2"})(["overflow:hidden auto;padding:0 1px;&::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;}&::-webkit-scrollbar{width:5px;}"]),Tse=(0,o.Ay)(B7).withConfig({displayName:"Sidebar__TabTitleSpan",componentId:"sc-nibeu-3"})(["@media ","{font-size:14px;}"],c5.mobileL),Mse=()=>{const{activeSubTab:e}=(0,i.useContext)(T5),{selectedChatId:t,chatsFeed:r,requestsFeed:o,searchedChats:a}=(0,i.useContext)(y5);return(0,n.jsxs)(D7,Object.assign({height:"550px",width:"100%",maxHeight:"550px",overflow:"hidden"},{children:[!t&&!e&&(0,n.jsx)(Sse,{}),!t&&e===x5.REQUESTS&&(0,n.jsx)(nse,{}),e===x5.SPAM&&(0,n.jsx)(sse,{}),t&&(Object.keys(r||{}).length||Object.keys(o||{}).length||Object.keys(a||{}).length?(0,n.jsx)(Yae,{}):(0,n.jsx)(k7,{}))]}))},Pse=()=>{const{setNewChat:e,setActiveTab:t,setActiveSubTab:r}=(0,i.useContext)(T5),{setChatsFeed:o,setRequestsFeed:a,setSelectedChatId:s,setSearchedChats:c,chats:u,setConnectedProfile:l,requestsFeed:d,chatsFeed:f,selectedChatId:h,setFinishedFetchingChats:p,setFinishedFetchingRequests:g,setChats:m}=(0,i.useContext)(y5),{setInboxNotifsFeed:y,setSpamNotifsFeed:b,setFinishedFetchingInbox:v,setFinishedFetchingSpam:w}=(0,i.useContext)(w5),{decryptedPgpPvtKey:A,account:C,env:E,activeChosenTab:x,activeChat:S,onClose:I}=(0,i.useContext)(v5),[k,T]=(0,i.useState)(!1),{fetchChatProfile:M}=b9(),{fetchRequests:P}=A9(),{fetchChats:j}=w9(),{fetchChat:D}=y9(),O=(0,i.useRef)(null),{fetchUserSubscriptions:B}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{account:o,env:a,signer:s}=(0,i.useContext)(v5),{setSubscriptionStatus:c}=(0,i.useContext)(w5),u=(0,i.useCallback)((()=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{const e=yield null==s?void 0:s.getChainId(),t=yield _.user.getSubscriptions({user:g9(o,e),env:a}),r=new Map;t.forEach((e=>r.set(e.channel,!0))),c(r)}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[o,a]);return{fetchUserSubscriptions:u,error:e,loading:r}})();v9({}),v9({socketType:E5.CHAT}),(0,i.useEffect)((()=>{o({}),a({}),y({}),b({}),v(!1),w(!1),p(!1),g(!1),x?(t(x),T(!0)):t(C5.CHATS),r(null),m(new Map),e(!1)}),[C,E,x]);(0,i.useEffect)((()=>{Object.keys(d).length||A&&pJ(void 0,void 0,void 0,(function*(){const e=yield P({page:1,requestLimit:K4}),t=Object.assign({},e);a(t)}))}),[P,A,E]);(0,i.useEffect)((()=>{Object.keys(f).length||A&&pJ(void 0,void 0,void 0,(function*(){const e=yield j({page:1,chatLimit:V4}),t=Object.assign({},e);o(t)}))}),[j,E,C]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){let e;C&&(e=yield M({profileId:C,env:E}),e&&l(e))}))}),[C]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){B()}))}),[E,C]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var e;if(S){const t=yield L8(S,E);if(t){T(!0),s(u8(t).toLowerCase());let r=f[u8(t).toLowerCase()]||d[u8(t).toLowerCase()];if(!r&&(r=yield D({recipientAddress:u8(t)}),!Object.keys(r||{}).length)){const e=yield R8({searchText:t,fetchChatProfile:M,env:E});e&&(r=E8({user:e}))}c({[null!==(e=r.did.toLowerCase())&&void 0!==e?e:r.chatId]:r})}else c(null),s(null)}else s(null),c(null)}))}),[S,E,C]);return(0,i.useEffect)((()=>{const e=O.current;if(!e)return;const t=t=>{const{scrollTop:r,scrollHeight:n,clientHeight:i}=e;r+i>=n&&t.deltaY>0&&t.stopPropagation()};return e.addEventListener("wheel",t),()=>{e.removeEventListener("wheel",t)}}),[]),(0,n.jsxs)(jse,Object.assign({width:"470px",flexDirection:"column",maxHeight:"600px",position:"fixed",background:"#fff",right:"12px",bottom:"18px",className:"modal",overflow:"hidden",ref:O},{children:[(0,n.jsx)(pae,{onMaximizeMinimizeToggle:null!=I?I:()=>{T(!k)},modalOpen:k}),k&&(0,n.jsx)(Mse,{})]}))},jse=(0,o.Ay)(D7).withConfig({displayName:"ChatAndNotification__Container",componentId:"sc-1521ie2-0"})(["border:1px solid #dddddf;padding:0 20px 0 21px;box-shadow:0px 0px 4px rgba(0,0,0,0.08),0px 0px 96px rgba(0,0,0,0.12);backdrop-filter:blur(5px);border-radius:8px;@media ","{width:330px;padding:0px 12px 0 12px;}"],c5.mobileL),Dse=({account:e,decryptedPgpPvtKey:t=null,activeTab:r=null,activeChat:i=null,onClose:o=null,signer:a=null,env:s=M4.ENV.PROD})=>{const c={account:l8(e),decryptedPgpPvtKey:t,activeChosenTab:r,activeChat:i,onClose:o,signer:a,env:s};return(0,n.jsx)(v5.Provider,Object.assign({value:c},{children:(0,n.jsx)(M5,{children:(0,n.jsx)(b5,{children:(0,n.jsx)(A5,{children:(0,n.jsx)(Pse,{})})})})}))},Ose=new Array(4);function Bse(){const e=Ose[0]^Ose[0]<<11;return Ose[0]=Ose[1],Ose[1]=Ose[2],Ose[2]=Ose[3],Ose[3]=Ose[3]^Ose[3]>>19^e^e>>8,(Ose[3]>>>0)/(1<<31>>>0)}function Nse(){return`hsl(${Math.floor(360*Bse())},${`${Math.floor(60*Bse())+40}%`},${`${Math.floor(25*(Bse()+Bse()+Bse()+Bse()))}%`})`}function Rse(e){const t={};return t.seed=e.seed||Math.floor(Math.random()*Math.pow(10,16)).toString(16),function(e){Ose.fill(0);for(let t=0;t(null==e?void 0:e.role)===Q9.ADMIN.toLowerCase(),zse=({dropdownCategoryValues:e,dropdownTypeValues:t,selectedTypeValue:r})=>{var n;return e[null===(n=t[r])||void 0===n?void 0:n.value]},Hse=({dropdownCategoryValues:e,dropdownTypeValues:t,selectedCategoryValue:r,selectedTypeValue:n})=>{const i=zse({dropdownCategoryValues:e,dropdownTypeValues:t,selectedTypeValue:n});return Array.isArray(i)?i[r].value:i.value},Vse=({dropdownCategoryValues:e,dropdownTypeValues:t,selectedCategoryValue:r,selectedTypeValue:n})=>{const i=Hse({dropdownCategoryValues:e,dropdownTypeValues:t,selectedTypeValue:n,selectedCategoryValue:r});return i===Y9||i===Z9||i===$9},Kse=({dropdownCategoryValues:e,dropdownTypeValues:t,selectedCategoryValue:r,selectedTypeValue:n})=>Hse({dropdownCategoryValues:e,dropdownTypeValues:t,selectedTypeValue:n,selectedCategoryValue:r})===$9,Gse=({dropdownCategoryValues:e,dropdownTypeValues:t,selectedCategoryValue:r,selectedTypeValue:n})=>Hse({dropdownCategoryValues:e,selectedTypeValue:n,dropdownTypeValues:t,selectedCategoryValue:r})===e7,qse=({dropdownCategoryValues:e,dropdownTypeValues:t,selectedCategoryValue:r,selectedTypeValue:n})=>{if(t[n].value===W9){if(Hse({dropdownCategoryValues:e,selectedTypeValue:n,dropdownTypeValues:t,selectedCategoryValue:r})===X9)return!0}return!1},Qse=(e,t)=>e[t].value===J9,Wse=({dropdownCategoryValues:e,dropdownTypeValues:t,selectedCategoryValue:r,dropdownSubCategoryValues:n,selectedTypeValue:i})=>{const o=zse({dropdownCategoryValues:e,dropdownTypeValues:t,selectedCategoryValue:r,selectedTypeValue:i});return Array.isArray(o)?n[o[r].value]:n[o.value]},Jse=({setValidationErrors:e,selectedCategoryValue:t,selectedTypeValue:r,dropdownCategoryValues:n,dropdownTypeValues:i,contract:o,setUnit:a,setDecimals:s,selectedChainValue:c,dropdownChainsValues:u,tokenId:l})=>pJ(void 0,void 0,void 0,(function*(){e((e=>Object.assign(Object.assign({},e),{tokenError:void 0})));const d=(({dropdownTypeValues:e,selectedTypeValue:t})=>e[t].value||"PUSH")({selectedTypeValue:r,dropdownTypeValues:i}),f=(({dropdownCategoryValues:e,selectedCategoryValue:t})=>e.PUSH[t].value||Y9)({dropdownCategoryValues:n,selectedCategoryValue:t}),h=((e,t)=>e[t].value||"eip155:1")(u,c);yield((e,t,r,n,i,o,a)=>pJ(void 0,void 0,void 0,(function*(){const s=S.PW(e);if("GUILD"===t)return[!1,""];if(!s)return i(r===Y9||r===$9?"TOKEN":"NFT"),[!0,`${e} is invalid invalid contract address`];const c=parseInt(n.split(":")[1]);if(r===Y9){const[t,r]=yield f7(e,c);if(t){const t=`${e} is invalid ERC20 on chain ${c}`;return i("TOKEN"),o(18),[!0,t]}return i(r.symbol),o(r.decimals),[!1,""]}if(r===Z9){const[t,r]=yield h7(e,c);if(t){const t=`${e} is invalid ERC721 on chain ${c}`;return i("NFT"),o(18),[!0,t]}return i(r),[!1,""]}{const[t,r]=yield p7(e,c,a);if(t){const t=`${e} is invalid ERC1155 on chain ${c}`;return i("TOKEN"),o(18),[!0,t]}return i(r),o(18),[!1,""]}})))(o,d,f,h,a,s,l)})),Yse=({type:e,category:t,contract:r,quantity:n,decimals:i,unit:o,url:a,inviteCheckboxes:s,guildComparison:c,specificRoleId:u,guildId:l,dropdownQuantityRangeValues:d,selectedChainValue:f,dropdownChainsValues:h,tokenId:p})=>{if("PUSH"===e){if(t===Y9||t===Z9||t===$9){return{contract:`${h[f].value||"eip155:1"}:${r}`,amount:n.value,comparison:d[n.range].value,decimals:t===Y9||t===$9?i:void 0,token:o,tokenId:p}}if(t===X9){const e=[];return s.admin&&e.push("ADMIN"),s.owner&&e.push("OWNER"),{inviterRoles:e}}return{url:a}}return{id:l,comparison:"specific"===c?"":c,role:"specific"===c?u:"*"}},Zse=(e,t,r)=>{let n=!1;return e&&t.map((t=>{t[r]==e[r]&&(n=!0)})),n},$se=e=>{let t;if(e.chatTimestamp){const r=s()(),n=s()(e.chatTimestamp);if(n.isSame(r,"day"))t=n.format("HH:mm");else if(n.isSame(r.subtract(1,"day"),"day"))t="Yesterday";else{r.year(),n.year();t=n.format("L")}}return null!=t?t:""},Xse=()=>{let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let r=0;r<32;r++)e+=t.charAt(Math.floor(62*Math.random()));return e},ece=e=>{let t="",r="";const n=e;"Reply"===n.message.type?(n.message.type,t=n.message.content.messageType,r=n.message.content.messageObj.content):(n.message.type,t=n.message.type,r=n.message.content);return{chatId:e.chatId,chatPic:null,chatParticipant:e.meta.group?null:"chat.request"===(null==e?void 0:e.event)?"self"===(null==e?void 0:e.origin)?e.to[0]:e.from:e.to[0],chatGroup:e.meta.group,chatTimestamp:Number(e.timestamp),chatMsg:{messageMeta:t,messageType:t,messageContent:r}}},tce=(e,t)=>{var r;return e&&null!==(r=N8(t))&&void 0!==r?r:e},rce=e=>pJ(void 0,void 0,void 0,(function*(){return e.type===J9?(e=>pJ(void 0,void 0,void 0,(function*(){const{data:t}=e,r={};if(!t.id)return Object.assign(Object.assign({},r),{guildId:"Guild ID is missing"});try{const e=yield Qm().get(`https://api.guild.xyz/v2/guilds/guild-page/${t.id}`);if(200!==e.status)return Object.assign(Object.assign({},r),{guildId:"Guild ID is missing"});if("*"===t.role){if("all"!==t.comparison&&"any"!==t.comparison)return Object.assign(Object.assign({},r),{guildComparison:"Invalid comparison value"})}else{if(!t.role)return Object.assign(Object.assign({},r),{guildRole:"Invalid role value"});if(!e.data.roles.some((e=>e.id.toString()===t.role)))return Object.assign(Object.assign({},r),{guildRole:"Invalid Guild Role ID"});if(t.comparison)return Object.assign(Object.assign({},r),{guildComparison:"Comparison should be empty for specific role"})}}catch(ys){return Object.assign(Object.assign({},r),{guildId:"Error validating Guild ID"})}return{}})))(e):e.category===X9?{}:e.category===e7?(e=>pJ(void 0,void 0,void 0,(function*(){const{data:t,type:r,subcategory:n}=e;if(!t.url)return{url:"URL is missing"};if(!(null==t?void 0:t.url.startsWith("http://"))&&!t.url.startsWith("https://"))return{url:'Invalid URL protocol. Only "http://" and "https://" are allowed.'};if((null==t?void 0:t.url.length)>2083)return{url:"URL is too long."};if("GET"===n){if(!(null==t?void 0:t.url.includes("{{user_address}}")))return{url:"GET request URL should have the '{{user_address}}' template."};if(((null==t?void 0:t.url.match(/{{user_address}}/g))||[]).length>1)return{url:"GET request URL should not have multiple '{{user_address}}' templates."}}return{}})))(e):(e=>pJ(void 0,void 0,void 0,(function*(){var t,r,n,i;const o=e.data,a=(o.contract||"").split(":");if(3!==a.length)return{tokenError:"Invalid contract address"};const[s,c]=[parseInt(a[1]),a[2]];if(!S.PW(c))return{tokenError:"Invalid contract address"};let u;if(u=e.category===$9?null===(r=yield p7(c,s,null!==(t=o.tokenId)&&void 0!==t?t:0))||void 0===r?void 0:r[0]:e.category===Z9?null===(n=yield h7(c,s))||void 0===n?void 0:n[0]:null===(i=yield f7(c,s))||void 0===i?void 0:i[0],u)return{tokenError:`Invalid ${e.category} contract`};if(!o.amount)return{tokenAmount:"Amount cannot be 0"};if(o.amount<0)return{tokenAmount:"Amount cannot be in negative"};if(e.category===$9){if(void 0===o.tokenId||Number.isNaN(o.tokenId))return{tokenId:"Invalid Token ID"};if(o.tokenId<0)return{tokenId:"Token ID cannot be in negative"}}return{}})))(e)})),nce=e=>{var t,r,o,a,s,c,u,l,d,f,h,p,g,m,y,b,v,w,A,C,E,x,S,I,k,T,M,P,j,D,O,B;const{user:N}=P5(),R=(0,i.useContext)(Pae),[L,F]=(0,i.useState)(""),[U,z]=(0,i.useState)(null);(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var t;const r=yield(n=e.chatPreviewPayload,(null==N?void 0:N.env)||_.CONSTANTS.ENV.PROD,pJ(void 0,void 0,void 0,(function*(){let e=null==n?void 0:n.chatParticipant;return(null==n?void 0:n.chatGroup)||e.includes("eip155:")&&(e=e.replace("eip155:","")),e})));var n;if(F(r),!(null===(t=e.chatPreviewPayload)||void 0===t?void 0:t.chatGroup))try{const e=yield d8(r,null==N?void 0:N.env);e&&z(e)}catch($R){}}))}),[]);const H=!!(null===(t=null==e?void 0:e.badge)||void 0===t?void 0:t.count),V=null==e?void 0:e.selected,K="PushBot"===(null===(r=null==e?void 0:e.chatPreviewPayload)||void 0===r?void 0:r.chatParticipant)||(null===(o=null==e?void 0:e.chatPreviewPayload)||void 0===o?void 0:o.chatParticipant)===Z4,G=(0,i.useRef)(null);(0,i.useEffect)((()=>{var t,r,n,i;if(G.current&&!(null===(t=e.chatPreviewPayload)||void 0===t?void 0:t.chatPic)&&(null===(r=e.chatPreviewPayload)||void 0===r?void 0:r.chatParticipant)){const t=Fse(l8(null!==(i=null===(n=e.chatPreviewPayload)||void 0===n?void 0:n.chatParticipant)&&void 0!==i?i:"")||"",{size:8,scale:6});G.current.innerHTML="",G.current.appendChild(t)}}),[null===(a=e.chatPreviewPayload)||void 0===a?void 0:a.chatParticipant]);const q=[];let Q=!1;return"Reply"===(null===(c=null===(s=null==e?void 0:e.chatPreviewPayload)||void 0===s?void 0:s.chatMsg)||void 0===c?void 0:c.messageMeta)&&(q.push((0,n.jsx)(Iae,{color:null===(u=R.iconColor)||void 0===u?void 0:u.emoji,size:null===(l=R.fontSize)||void 0===l?void 0:l.chatPreviewMessageText})),Q=!0),"Image"!==(null===(f=null===(d=null==e?void 0:e.chatPreviewPayload)||void 0===d?void 0:d.chatMsg)||void 0===f?void 0:f.messageType)&&"GIF"!==(null===(p=null===(h=null==e?void 0:e.chatPreviewPayload)||void 0===h?void 0:h.chatMsg)||void 0===p?void 0:p.messageType)&&"MediaEmbed"!==(null===(m=null===(g=null==e?void 0:e.chatPreviewPayload)||void 0===g?void 0:g.chatMsg)||void 0===m?void 0:m.messageType)||(q.push((0,n.jsx)(fI,{})),q.push((0,n.jsx)(sce,Object.assign({theme:R},{children:"Media"})))),"File"===(null===(b=null===(y=null==e?void 0:e.chatPreviewPayload)||void 0===y?void 0:y.chatMsg)||void 0===b?void 0:b.messageType)&&(q.push((0,n.jsx)(hI.Gp9,{})),q.push((0,n.jsx)(sce,Object.assign({theme:R},{children:"File"})))),(Q||"Text"===(null===(w=null===(v=null==e?void 0:e.chatPreviewPayload)||void 0===v?void 0:v.chatMsg)||void 0===w?void 0:w.messageType)||"Reaction"===(null===(C=null===(A=null==e?void 0:e.chatPreviewPayload)||void 0===A?void 0:A.chatMsg)||void 0===C?void 0:C.messageType))&&q.push((0,n.jsx)(sce,Object.assign({theme:R},{children:null===(x=null===(E=null==e?void 0:e.chatPreviewPayload)||void 0===E?void 0:E.chatMsg)||void 0===x?void 0:x.messageContent}))),(0,n.jsx)(ice,Object.assign({margin:null===(S=R.margin)||void 0===S?void 0:S.chatPreviewMargin,cursor:"pointer"},{children:(0,n.jsxs)(L7,Object.assign({display:"flex",width:"100%",height:"70px",minHeight:"70px",cursor:"pointer",borderRadius:null===(I=R.borderRadius)||void 0===I?void 0:I.chatPreview,padding:null===(k=R.padding)||void 0===k?void 0:k.chatPreviewPadding,border:null===(T=R.border)||void 0===T?void 0:T.chatPreview,flexDirection:"row",background:e.selected?null===(M=R.backgroundColor)||void 0===M?void 0:M.chatPreviewSelectedBackground:null===(P=R.backgroundColor)||void 0===P?void 0:P.chatPreviewBackground,hoverBackground:null===(j=R.backgroundColor)||void 0===j?void 0:j.chatPreviewHoverBackground,onClick:()=>{var t,r;(null==e?void 0:e.setSelected)&&e.setSelected((null===(t=null==e?void 0:e.chatPreviewPayload)||void 0===t?void 0:t.chatId)||"",null===(r=null==e?void 0:e.chatPreviewPayload)||void 0===r?void 0:r.chatParticipant)}},{children:[(0,n.jsx)(D7,Object.assign({justifyContent:"start",flexDirection:"row",alignItems:"center",alignSelf:"center",borderRadius:"50%",overflow:"hidden",width:"48px",height:"48px",cursor:"pointer"},{children:(null===(D=e.chatPreviewPayload)||void 0===D?void 0:D.chatPic)?(0,n.jsx)(R7,{src:(null===(O=e.chatPreviewPayload)||void 0===O?void 0:O.chatPic)||void 0,height:"48px",width:"48px"}):(0,n.jsx)(O7,{ref:G,height:"48px",width:"48px",borderRadius:"50%",overflow:"hidden"})})),(0,n.jsxs)(D7,Object.assign({justifyContent:"center",gap:"6px",cursor:"pointer",flexDirection:"column",alignItems:"center",alignSelf:"stretch",overflow:"hidden",margin:"0 5px 0 10px",flex:"1"},{children:[(0,n.jsxs)(D7,Object.assign({flex:"initial",justifyContent:"flex-start",flexDirection:"row",alignItems:"flex-start",alignSelf:"stretch",overflow:"hidden",cursor:"pointer"},{children:[(0,n.jsx)(oce,Object.assign({theme:R},{children:(t=>{var r;return(null===(r=e.chatPreviewPayload)||void 0===r?void 0:r.chatGroup)?t:U||t})(L)})),(0,n.jsx)(ace,Object.assign({theme:R},{children:$se(e.chatPreviewPayload)}))]})),(0,n.jsxs)(D7,Object.assign({justifyContent:"flex-start",flexDirection:"row",alignItems:"flex-start",alignSelf:"stretch",overflow:"hidden",flex:"initial",cursor:"pointer",className:e.readmode?"skeleton":"",animation:R.skeletonBG},{children:[(0,n.jsx)(sce,Object.assign({theme:R},{children:(0,n.jsx)(D7,Object.assign({justifyContent:"flex-start",flexDirection:"row",alignItems:"center",alignSelf:"stretch",overflow:"hidden",flex:"1",gap:"4px"},{children:q}))})),H&&!(K||V&&H)&&(0,n.jsx)(cce,Object.assign({theme:R},{children:null===(B=e.badge)||void 0===B?void 0:B.count}))]}))]}))]}))}))},ice=(0,o.Ay)(D7).withConfig({displayName:"ChatPreview__ChatPreviewContainer",componentId:"sc-15lhvtd-0"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar{width:5px;}"," overscroll-behavior:contain;scroll-behavior:smooth;"],(e=>e.theme.scrollbarColor),(({blur:e})=>e&&"\n filter: blur(12px);\n ")),oce=o.Ay.div.withConfig({displayName:"ChatPreview__Account",componentId:"sc-15lhvtd-1"})(["font-weight:",";font-size:",";color:",";flex:1;align-self:stretch;text-align:start;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-right:10px;"],(e=>{var t;return null===(t=e.theme.fontWeight)||void 0===t?void 0:t.chatPreviewParticipantText}),(e=>{var t;return null===(t=e.theme.fontSize)||void 0===t?void 0:t.chatPreviewParticipantText}),(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.chatPreviewParticipantText})),ace=o.Ay.div.withConfig({displayName:"ChatPreview__Dated",componentId:"sc-15lhvtd-2"})(["font-weight:",";font-size:",";color:",";"],(e=>{var t;return null===(t=e.theme.fontWeight)||void 0===t?void 0:t.chatPreviewDateText}),(e=>{var t;return null===(t=e.theme.fontSize)||void 0===t?void 0:t.chatPreviewDateText}),(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.chatPreviewDateText})),sce=o.Ay.div.withConfig({displayName:"ChatPreview__Message",componentId:"sc-15lhvtd-3"})(["font-weight:",";font-size:",";color:",";flex:1;align-self:stretch;text-align:start;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-right:10px;"],(e=>{var t;return null===(t=e.theme.fontWeight)||void 0===t?void 0:t.chatPreviewMessageText}),(e=>{var t;return null===(t=e.theme.fontSize)||void 0===t?void 0:t.chatPreviewMessageText}),(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.chatPreviewMessageText})),cce=o.Ay.div.withConfig({displayName:"ChatPreview__Badge",componentId:"sc-15lhvtd-4"})(["background:",";font-weight:",";font-size:",";color:",";padding:0px 8px;text-overflow:ellipsis;border-radius:24px;align-self:center;"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.chatPreviewBadgeBackground}),(e=>{var t;return null===(t=e.theme.fontWeight)||void 0===t?void 0:t.chatPreviewBadgeText}),(e=>{var t;return null===(t=e.theme.fontSize)||void 0===t?void 0:t.chatPreviewBadgeText}),(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.chatPreviewBadgeText})),uce=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{user:o}=P5(),a=(0,i.useCallback)((({groupId:t})=>pJ(void 0,void 0,void 0,(function*(){let r;n(!0);try{r=yield null==o?void 0:o.chat.group.info(t)}catch(e){return void console.log(e)}return r}))),[o]);return{getGroupByIDnew:a,error:e,loading:r}},lce={LIGHT:"light",DARK:"dark"};var dce,fce;!function(e){e.CHAT_PREVIEW_LIST_PRELOAD_ERROR="CPL-001",e.CHAT_PREVIEW_LIST_LOAD_ERROR="CPL-002",e.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR="CPL-003",e.CHAT_PREVIEW_LIST_INSUFFICIENT_INPUT="CPL-004"}(dce||(dce={})),function(e){e.CHAT_PREVIEW_LIST_LOAD_ERROR="CPSL-001",e.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR="CPSL-002",e.CHAT_PREVIEW_LIST_INSUFFICIENT_INPUT="CPSL-003"}(fce||(fce={}));const hce=e=>{var t,r,o,a,s;const{user:c}=P5();G9(),uce();const{fetchLatestMessage:u,fetchChatList:l}=j5(),[d,f]=(0,i.useState)({nonce:"INITIAL_NONCE",items:[],page:0,loading:!1,loaded:!1,reset:!1,resume:!1,errored:!1,error:null}),[h,p]=(0,i.useState)({selectedChatId:void 0,badges:{}}),g=(0,i.useContext)(Pae);O5();const m=(0,i.useRef)(null),{chatStream:y,chatAcceptStream:b,chatRequestStream:v,chatRejectStream:w,groupCreateStream:A}=P5();(0,i.useEffect)((()=>{c&&((null==e?void 0:e.prefillChatPreviewList)||(console.debug("UIWeb::ChatPreviewList::loadMoreChats:: Resetting state",c,null==e?void 0:e.prefillChatPreviewList,null==e?void 0:e.searchParamter,e.listType,e.overrideAccount),f({nonce:Xse(),items:[],page:0,loading:!0,loaded:!1,reset:!0,resume:!1,errored:!1,error:null})))}),[c,null==e?void 0:e.prefillChatPreviewList,null==e?void 0:e.searchParamter,e.listType,e.overrideAccount]),(0,i.useEffect)((()=>{c&&(e.prefillChatPreviewList||(d.reset?(C(!0),P()):(d.loading||d.resume)&&C(!1)))}),[d.loading,d.resume,d.reset,d.nonce]);const C=(t=!1)=>pJ(void 0,void 0,void 0,(function*(){const{type:r,overrideAccount:n}=k(),i=t?1:d.page+1,o=d.nonce;if(r===_.CONSTANTS.CHAT.LIST_TYPE.CHATS||r===_.CONSTANTS.CHAT.LIST_TYPE.REQUESTS){const a=yield l({type:r,page:i,limit:10,overrideAccount:n});if(console.debug(`UIWeb::ChatPreviewList::loadMoreChats:: Fetched type - ${r} - nextpage - ${i} - currentNonce - ${o} - chatList - ${a}`),a){const r=(e=>{const t=e.map((e=>{let t="",r="";const n=e;return"Reply"===n.msg.messageType?"object"!=typeof n.msg.messageObj||Array.isArray(n.msg.messageObj)||(t=n.msg.messageObj.content.messageType,n.msg.messageObj.content.messageObj&&(r=n.msg.messageObj.content.messageObj.content)):"object"!=typeof n.msg.messageObj||Array.isArray(n.msg.messageObj)||(t=n.msg.messageType,n.msg.messageObj&&(r=n.msg.messageObj.content)),{chatId:e.chatId,chatPic:e.groupInformation?e.groupInformation.groupImage:e.profilePicture,chatParticipant:e.groupInformation?e.groupInformation.groupName:e.did,chatGroup:!!e.groupInformation,chatTimestamp:e.msg.timestamp,chatMsg:{messageMeta:e.msg.messageType,messageType:t,messageContent:r}}})).filter(((e,t,r)=>t===r.findIndex((t=>t.chatId===e.chatId))));return t})(a);if(o!==d.nonce||d.page+1!==i)return;f((e=>({nonce:Xse(),items:t?r:[...e.items,...r].filter(((e,t,r)=>t===r.findIndex((t=>t.chatId===e.chatId)))),page:i,loading:!1,loaded:r.length<10,reset:!1,resume:!1,errored:!1,error:null}))),(null==e?void 0:e.onPaging)&&e.onPaging([...d.items,...r])}else{if(o!==d.nonce||d.page+1!==i)return;const e=t?{code:dce.CHAT_PREVIEW_LIST_PRELOAD_ERROR,message:"No chats found"}:{code:dce.CHAT_PREVIEW_LIST_LOAD_ERROR,message:"Unable to load more chats"};f((t=>Object.assign(Object.assign({},t),{nonce:Xse(),reset:!1,resume:!1,errored:!0,error:e})))}}})),E=(e,t)=>{const r=[...e,...d.items].filter(((e,t,r)=>t===r.findIndex((t=>t.chatId===e.chatId))));f((e=>Object.assign(Object.assign({},e),{items:[...r]}))),t&&e.forEach((e=>{h.selectedChatId!==e.chatId&&(console.debug("UIWeb::ChatPreviewList::incrementing badge",e),M(e.chatId,h.badges[e.chatId]?h.badges[e.chatId]+1:1))}))},x=e=>{const t=[...d.items].filter((t=>!e.includes(t.chatId)));f((e=>Object.assign(Object.assign({},e),{items:t}))),e.forEach((e=>{M(e,0)}))},S=e=>pJ(void 0,void 0,void 0,(function*(){const t={chatId:null==e?void 0:e.chatId,chatPic:null==e?void 0:e.meta.image,chatParticipant:null==e?void 0:e.meta.name,chatGroup:!0,chatTimestamp:void 0,chatMsg:{messageMeta:"",messageType:"",messageContent:""}};E([t],!1)})),I=e=>pJ(void 0,void 0,void 0,(function*(){if(!c)return;const t=ece(e),r=d.items.find((e=>e.chatId===t.chatId));if(r)t.chatPic=r.chatPic,t.chatParticipant=r.chatParticipant;else if(t.chatGroup){const e=yield c.chat.group.info(t.chatId);t.chatPic=e.groupImage,t.chatParticipant=e.groupName}else{const e=yield c.profile.info({overrideAccount:t.chatParticipant});t.chatPic=e.picture}E([t],!0)})),k=()=>({type:e.listType?e.listType:_.CONSTANTS.CHAT.LIST_TYPE.CHATS,overrideAccount:e.overrideAccount?e.overrideAccount:void 0}),T=(t,r)=>{p((e=>({selectedChatId:t,badges:Object.assign(Object.assign({},e.badges),{[t]:0})}))),(null==e?void 0:e.onChatSelected)&&e.onChatSelected(t,r)},M=(e,t)=>{p((r=>Object.assign(Object.assign({},r),{badges:Object.assign(Object.assign({},r.badges),{[e]:r.badges?t:0})})))},P=()=>{p({selectedChatId:void 0,badges:{}})};(0,i.useEffect)((()=>{(null==e?void 0:e.prefillChatPreviewList)&&(null==e?void 0:e.prefillChatPreviewList.length)&&f({nonce:Xse(),items:null==e?void 0:e.prefillChatPreviewList.map((e=>e.chatPreviewPayload)),page:1,loading:!1,loaded:!1,reset:!1,resume:!1,errored:!1,error:null})}),[null==e?void 0:e.prefillChatPreviewList]),(0,i.useEffect)((()=>{(null==e?void 0:e.onLoading)&&(null==e||e.onLoading({preload:0===d.page,loading:d.loading,finished:d.loaded,paging:d.page>0}))}),[d.loading,d.loaded,d.page]),(0,i.useEffect)((()=>{var e;if(0!==d.page&&m&&(null==m?void 0:m.current)&&(null===(e=null==m?void 0:m.current)||void 0===e?void 0:e.parentElement)&&!d.loading){if(console.debug("UIWeb::ChatPreviewList::useEffect[chatPreviewList.items]::Checking if we need to load more chats::",d,m.current.clientHeight,25,m.current.parentElement.clientHeight,m.current.clientHeight+25Object.assign(Object.assign({},e),{nonce:Xse(),loading:!0})))}}),[d.items]),(0,i.useEffect)((()=>{const t=Object.values(h.badges).reduce(((e,t)=>e>0?1+t:t),0);(null==e?void 0:e.onUnreadCountChange)&&e.onUnreadCountChange(t)}),[h.badges]),(0,i.useEffect)((()=>{(null==e?void 0:e.onChatsCountChange)&&e.onChatsCountChange(d.items.length)}),[d.items]),(0,i.useEffect)((()=>{Object.keys(y||{}).length>0&&y.constructor===Object&&e.listType===_.CONSTANTS.CHAT.LIST_TYPE.CHATS&&I(y)}),[y]),(0,i.useEffect)((()=>{Object.keys(A).length>0&&A.constructor===Object&&(e.listType===_.CONSTANTS.CHAT.LIST_TYPE.CHATS&&"self"===A.origin||e.listType===_.CONSTANTS.CHAT.LIST_TYPE.REQUESTS&&"other"===A.origin)&&S(A)}),[A]),(0,i.useEffect)((()=>{Object.keys(v||{}).length>0&&v.constructor===Object&&(e.listType===_.CONSTANTS.CHAT.LIST_TYPE.CHATS&&"self"===v.origin||e.listType===_.CONSTANTS.CHAT.LIST_TYPE.REQUESTS&&"other"===v.origin)&&I(v)}),[v]),(0,i.useEffect)((()=>{var t;Object.keys(b||{}).length>0&&b.constructor===Object&&(t=b,pJ(void 0,void 0,void 0,(function*(){c&&(e.listType===_.CONSTANTS.CHAT.LIST_TYPE.REQUESTS?x([t.chatId]):I(t))})))}),[b]),(0,i.useEffect)((()=>{Object.keys(w||{}).length>0&&w.constructor===Object&&x([w.chatId])}),[w]);return(0,n.jsxs)(pce,Object.assign({padding:null===(t=g.padding)||void 0===t?void 0:t.chatPreviewListPadding,margin:null===(r=g.margin)||void 0===r?void 0:r.chatPreviewListMargin,blur:!1,ref:m,theme:g,onScroll:(null==e?void 0:e.prefillChatPreviewList)?void 0:()=>pJ(void 0,void 0,void 0,(function*(){const e=m.current;if(e){const t=e.clientHeight;!(e.scrollHeight-e.scrollTop-t<=25)||d.loading||d.loaded||d.reset||d.errored||f((e=>Object.assign(Object.assign({},e),{nonce:Xse(),loading:!0})))}}))},{children:[d.items.map(((t,r)=>(0,n.jsx)(nce,{chatPreviewPayload:t,badge:(null==e?void 0:e.prefillChatPreviewList)&&(null==e?void 0:e.prefillChatPreviewList[r].badge)?null==e?void 0:e.prefillChatPreviewList[r].badge:h.badges?{count:h.badges[t.chatId]}:{count:0},selected:(null==e?void 0:e.prefillChatPreviewList)&&(null==e?void 0:e.prefillChatPreviewList[r].selected)?null==e?void 0:e.prefillChatPreviewList[r].selected:h.selectedChatId===t.chatId,setSelected:(null==e?void 0:e.prefillChatPreviewList)&&(null==e?void 0:e.prefillChatPreviewList[r].setSelected)?null==e?void 0:e.prefillChatPreviewList[r].setSelected:T,readmode:null==c?void 0:c.readmode()},`${null==c?void 0:c.uid}-${t.chatId}`))),d.errored&&(0,n.jsxs)(D7,Object.assign({padding:"10px",flexDirection:"column"},{children:[(0,n.jsx)(B7,Object.assign({margin:"0 0 10px 0"},{children:null===(o=d.error)||void 0===o?void 0:o.message})),!((null===(a=d.error)||void 0===a?void 0:a.code)===dce.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR||(null===(s=d.error)||void 0===s?void 0:s.code)===dce.CHAT_PREVIEW_LIST_INSUFFICIENT_INPUT)&&(0,n.jsx)(L7,Object.assign({onClick:()=>{const e=d.error?d.error.code:dce.CHAT_PREVIEW_LIST_PRELOAD_ERROR;f((t=>Object.assign(Object.assign({},t),{items:e===dce.CHAT_PREVIEW_LIST_PRELOAD_ERROR?[]:t.items,page:e===dce.CHAT_PREVIEW_LIST_PRELOAD_ERROR?0:t.page,loading:e===dce.CHAT_PREVIEW_LIST_LOAD_ERROR,reset:e===dce.CHAT_PREVIEW_LIST_PRELOAD_ERROR,resume:e===dce.CHAT_PREVIEW_LIST_LOAD_ERROR,errored:!1})))},background:"rgb(226,8,128)",color:"#fff",borderRadius:"16px",padding:"4px 12px"},{children:"Refresh"}))]})),d.loading&&!d.errored&&(0,n.jsx)(D7,Object.assign({padding:"10px",flexDirection:"column"},{children:(0,n.jsx)(k7,{color:g.spinnerColor})}))]}),null==c?void 0:c.uid)},pce=(0,o.Ay)(D7).withConfig({displayName:"ChatPreviewList__ChatPreviewListContainer",componentId:"sc-b5umdu-0"})(["height:auto;overflow:hidden auto;flex-direction:column;width:100%;justify-content:start;box-sizing:border-box;&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar{width:5px;}overscroll-behavior:contain;scroll-behavior:smooth;"],(e=>e.theme.scrollbarColor)),gce=e=>{var t,r,o,a;const{user:s}=P5(),{getGroupByIDnew:c}=uce(),[u,l]=(0,i.useState)({nonce:"INITIAL_NONCE",items:[],page:0,loading:!1,loaded:!1,reset:!1,resume:!1,errored:!1,error:null}),[d,f]=(0,i.useState)({selectedChatId:void 0,badges:{}}),h=(0,i.useContext)(Pae),{fetchChat:p}=O5(),g=(0,i.useRef)(null),{chatStream:m,chatAcceptStream:y,chatRequestStream:b,chatRejectStream:v,groupCreateStream:w}=P5();(0,i.useEffect)((()=>{s&&l({nonce:Xse(),items:[],page:0,loading:!0,loaded:!1,reset:!0,resume:!1,errored:!1,error:null})}),[s,null==e?void 0:e.searchParamter]),(0,i.useEffect)((()=>{if(!s)return;let e;return u.reset&&(e=setTimeout((()=>{A(!0),S()}),500)),()=>clearTimeout(e)}),[u.reset,u.nonce]);const A=(t=!1)=>pJ(void 0,void 0,void 0,(function*(){var r,n;t||u.page;const i=u.nonce;let o={code:fce.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR,message:"Invalid search"},a=!1,d={chatId:void 0,chatPic:null,chatParticipant:"",chatGroup:!1,chatTimestamp:void 0,chatMsg:{messageMeta:"",messageType:"",messageContent:""}};if((null==e?void 0:e.searchParamter)&&(null==e?void 0:e.searchParamter.length)>3){console.debug("UIWeb::components::ChatPreviewSearchList::loadMoreChats::starting search",e.searchParamter,u.nonce);const t=null==e?void 0:e.searchParamter;let i=t;N8(t)&&(i=yield O8(t,s));try{const e=yield p({chatId:i});if(e)if(console.debug("UIWeb::components::ChatPreviewSearchList::loadMoreChats::chatInfo",e,u.nonce),null===(r=null==e?void 0:e.meta)||void 0===r?void 0:r.group){const t=yield c({groupId:i});t&&(d=Object.assign(Object.assign({},d),{chatId:i,chatParticipant:null==t?void 0:t.groupName,chatGroup:!0,chatPic:(null==t?void 0:t.groupImage)||null,chatMsg:{messageMeta:"Text",messageType:"Text",messageContent:"CHATS"===(null==e?void 0:e.list)?"Resume Conversation!":"Join Group!"}}),a=!0)}else{const r=yield null==s?void 0:s.info({overrideAccount:e.recipient});console.debug("UIWeb::components::ChatPreviewSearchList::loadMoreChats::userProfile",r),d=Object.assign(Object.assign({},d),{chatId:i,chatParticipant:tce(i,t),chatGroup:!1,chatPic:(null===(n=null==r?void 0:r.profile)||void 0===n?void 0:n.picture)||null,chatMsg:{messageMeta:"Text",messageType:"Text",messageContent:"CHATS"===(null==e?void 0:e.list)?"Resume Chat!":"Start Chat!"}}),a=!0}else o={code:fce.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR,message:"Invalid search"}}catch($R){o={code:fce.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR,message:"Invalid search"}}}else(null==e?void 0:e.searchParamter)?o={code:fce.CHAT_PREVIEW_LIST_INSUFFICIENT_INPUT,message:"Enter at least 4 characters to search"}:a=!0;i===u.nonce?(console.debug("UIWeb::components::ChatPreviewSearchList::loadMoreChats::Resolved search result",u.nonce,d,a),l((e=>Object.assign(Object.assign({},e),{items:a?[d]:[],page:1,loading:!1,loaded:!1,reset:!1,resume:!1,errored:!a,error:a?null:o})))):console.debug("UIWeb::components::ChatPreviewSearchList::loadMoreChats::Resolved search but nonce mismatch",u.nonce,d,a)})),C=e=>pJ(void 0,void 0,void 0,(function*(){if(!s)return;const t=ece(e),r=u.items.find((e=>{var r,n;return e.chatId===t.chatId||l8(null!==(r=e.chatId)&&void 0!==r?r:"")===l8(null!==(n=t.chatParticipant)&&void 0!==n?n:"")}));r&&(t.chatId=r.chatId,t.chatPic=r.chatPic,t.chatParticipant=r.chatParticipant,((e,t)=>{const r=[...e,...u.items].filter(((e,t,r)=>t===r.findIndex((t=>t.chatId===e.chatId))));l((e=>Object.assign(Object.assign({},e),{items:[...r]}))),t&&e.forEach((e=>{d.selectedChatId!==e.chatId&&(console.debug("UIWeb::components::ChatPreviewSearchList::incrementing badge",e),x(e.chatId,d.badges[e.chatId]?d.badges[e.chatId]+1:1))}))})([t],!0))})),E=(t,r)=>{f((e=>({selectedChatId:t,badges:Object.assign(Object.assign({},e.badges),{[t]:0})}))),(null==e?void 0:e.onChatSelected)&&e.onChatSelected(t,r)},x=(e,t)=>{f((r=>Object.assign(Object.assign({},r),{badges:Object.assign(Object.assign({},r.badges),{[e]:r.badges?t:0})})))},S=()=>{f({selectedChatId:void 0,badges:{}})};(0,i.useEffect)((()=>{(null==e?void 0:e.onLoading)&&(null==e||e.onLoading({preload:0===u.page,loading:u.loading,finished:u.loaded,paging:u.page>0}))}),[u.loading,u.loaded,u.page]),(0,i.useEffect)((()=>{const t=Object.values(d.badges).reduce(((e,t)=>e>0?1+t:t),0);(null==e?void 0:e.onUnreadCountChange)&&e.onUnreadCountChange(t)}),[d.badges]),(0,i.useEffect)((()=>{(null==e?void 0:e.onChatsCountChange)&&e.onChatsCountChange(u.items.length)}),[u.items]),(0,i.useEffect)((()=>{Object.keys(m||{}).length>0&&m.constructor===Object&&C(m)}),[m]),(0,i.useEffect)((()=>{var e;Object.keys(y||{}).length>0&&y.constructor===Object&&(e=y,pJ(void 0,void 0,void 0,(function*(){s&&C(e)})))}),[y]),(0,i.useEffect)((()=>{Object.keys(b||{}).length>0&&b.constructor===Object&&C(b)}),[b]);return(0,n.jsxs)(mce,Object.assign({padding:null===(t=h.padding)||void 0===t?void 0:t.chatPreviewListPadding,margin:null===(r=h.margin)||void 0===r?void 0:r.chatPreviewListMargin,blur:!1,ref:g,theme:h,onScroll:(null==e?void 0:e.prefillChatPreviewList)?void 0:()=>pJ(void 0,void 0,void 0,(function*(){const e=g.current;if(e){const t=e.clientHeight;!(e.scrollHeight-e.scrollTop-t<=25)||u.loading||u.loaded||u.reset||u.errored||l((e=>Object.assign(Object.assign({},e),{nonce:Xse(),loading:!0})))}}))},{children:[u.items.map(((t,r)=>(0,n.jsx)(nce,{chatPreviewPayload:t,badge:(null==e?void 0:e.prefillChatPreviewList)&&(null==e?void 0:e.prefillChatPreviewList[r].badge)?null==e?void 0:e.prefillChatPreviewList[r].badge:d.badges?{count:d.badges[t.chatId]}:{count:0},selected:(null==e?void 0:e.prefillChatPreviewList)&&(null==e?void 0:e.prefillChatPreviewList[r].selected)?null==e?void 0:e.prefillChatPreviewList[r].selected:d.selectedChatId===t.chatId,setSelected:(null==e?void 0:e.prefillChatPreviewList)&&(null==e?void 0:e.prefillChatPreviewList[r].setSelected)?null==e?void 0:e.prefillChatPreviewList[r].setSelected:E,readmode:null==s?void 0:s.readmode()},`${null==s?void 0:s.uid}-${t.chatId}`))),u.errored&&(0,n.jsxs)(D7,Object.assign({padding:"10px",flexDirection:"column"},{children:[(0,n.jsx)(yce,Object.assign({theme:h},{children:null===(o=u.error)||void 0===o?void 0:o.message})),!((null===(a=u.error)||void 0===a?void 0:a.code)===fce.CHAT_PREVIEW_LIST_INSUFFICIENT_INPUT)&&(0,n.jsx)(L7,Object.assign({onClick:()=>{const e=u.error?u.error.code:fce.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR;l((t=>Object.assign(Object.assign({},t),{items:[],page:0,loading:e===fce.CHAT_PREVIEW_LIST_LOAD_ERROR,reset:e===fce.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR,resume:e===fce.CHAT_PREVIEW_LIST_LOAD_ERROR,errored:!1})))},background:"rgb(226,8,128)",color:"#fff",borderRadius:"16px",padding:"4px 12px"},{children:"Refresh"}))]})),u.loading&&!u.errored&&(0,n.jsx)(D7,Object.assign({padding:"10px",flexDirection:"column"},{children:(0,n.jsx)(k7,{color:h.spinnerColor})}))]}),null==s?void 0:s.uid)},mce=(0,o.Ay)(D7).withConfig({displayName:"ChatPreviewSearchList__ChatPreviewListContainer",componentId:"sc-hg7ctt-0"})(["height:auto;overflow:hidden auto;flex-direction:column;width:100%;justify-content:start;box-sizing:border-box;&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar{width:5px;}overscroll-behavior:contain;scroll-behavior:smooth;"],(e=>e.theme.scrollbarColor)),yce=(0,o.Ay)(B7).withConfig({displayName:"ChatPreviewSearchList__SearchError",componentId:"sc-hg7ctt-1"})(["margin:10px 10px 20px 10px;background:",";color:",";border-radius:20px;justify-content:center;align-self:center;padding:12px 18px;text-transform:uppercase;letter-spacing:normal;font-size:10px;font-weight:500;"],(e=>{var t;return(null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.searchInputBackground)||"transparent"}),(e=>{var t;return(null===(t=e.theme.textColor)||void 0===t?void 0:t.searchInputText)||"transparent"})),bce=({handleSearch:e,clearInput:t,customStyle:r=null,placeholder:o})=>{var a,s;const c=(0,i.useContext)(Pae),[u,l]=(0,i.useState)(""),[d,f]=(0,i.useState)(!1);i.useEffect((()=>{f(!0);const e=setTimeout((()=>{h(),f(!1)}),2e3);return()=>clearTimeout(e)}),[u]);const h=()=>{""!==u.trim()?e({searchedText:u}):t()};return(0,n.jsx)(vce,Object.assign({justifyContent:"space-between",margin:"4px 0",gap:"15px",width:"100%",alignItems:"center"},{children:(0,n.jsxs)(wce,Object.assign({theme:c,width:"100%",background:(null==r?void 0:r.background)?r.background:null===(a=c.backgroundColor)||void 0===a?void 0:a.searchInputBackground,padding:"8px 12px",borderRadius:(null==r?void 0:r.borderRadius)?r.borderRadius:null===(s=c.borderRadius)||void 0===s?void 0:s.searchInput,customStyle:r},{children:[(0,n.jsx)(Ace,{theme:c,customStyle:r,type:"text",value:u,onChange:e=>{return t=e.target.value,void l(t);var t},placeholder:o,onKeyDown:e=>{"Enter"===e.key&&h()}}),(0,n.jsxs)(B7,{children:[!d&&!u&&(0,n.jsx)(O7,Object.assign({cursor:"pointer",width:"17.49px",height:"17.49px",onClick:()=>h()},{children:(0,n.jsx)(use,{})})),!d&&u&&(0,n.jsx)(O7,Object.assign({cursor:"pointer",onClick:()=>{l(""),t()},width:"17.49px",height:"17.49px"},{children:(0,n.jsx)(Xee,{})})),d&&(0,n.jsx)(k7,{size:"17.49",color:c.spinnerColor})]})]}))}))},vce=(0,o.Ay)(D7).withConfig({displayName:"ChatSearchInput__Container",componentId:"sc-i2ykdd-0"})(["border-radius:4px;"]),wce=(0,o.Ay)(D7).withConfig({displayName:"ChatSearchInput__InputSection",componentId:"sc-i2ykdd-1"})(["border:",";"],(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.border)?e.customStyle.border:null===(r=e.theme.border)||void 0===r?void 0:r.searchInput})),Ace=o.Ay.input.withConfig({displayName:"ChatSearchInput__Input",componentId:"sc-i2ykdd-2"})(["border:none;background:",";width:100%;flex:1;margin-left:10px;font-style:normal;color:",";font-weight:",";font-size:",";line-height:24px;&:focus{outline:none;background-origin:border;background-clip:padding-box,border-box;}&::placeholder{color:",";font-weight:",";font-size:",";}"],(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.background)?e.customStyle.background:null===(r=e.theme.backgroundColor)||void 0===r?void 0:r.searchInputBackground}),(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.color)?e.customStyle.color:null===(r=e.theme.textColor)||void 0===r?void 0:r.searchInputText}),(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.fontWeight)?e.customStyle.fontWeight:null===(r=e.theme.fontWeight)||void 0===r?void 0:r.searchInputText}),(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.fontSize)?e.customStyle.fontSize:null===(r=e.theme.fontSize)||void 0===r?void 0:r.searchInputText}),(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.placeholderColor)?e.customStyle.placeholderColor:null===(r=e.theme.textColor)||void 0===r?void 0:r.searchPlaceholderText}),(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.fontWeight)?e.customStyle.fontWeight:null===(r=e.theme.fontWeight)||void 0===r?void 0:r.searchInputText}),(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.fontSize)?e.customStyle.fontSize:null===(r=e.theme.fontSize)||void 0===r?void 0:r.searchInputText}));function Cce({dropdownValues:e,textColor:t,iconFilter:r,hoverBGColor:o}){const a=(0,i.useContext)(Pae),s=e=>{var r;return e.textColor?e.textColor:t||(null===(r=a.textColor)||void 0===r?void 0:r.modalSubHeadingText)},c=e=>{if(navigator&&navigator.clipboard)navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}};return(0,n.jsx)(n.Fragment,{children:e.map((e=>{var t;return"walletAddress"===(null==e?void 0:e.id)?(0,n.jsxs)(D7,Object.assign({background:"linear-gradient(87.17deg, #B6A0F5 0%, #F46EF7 57.29%, #FF95D5 100%)",borderRadius:"17px",padding:"2px 12px",margin:"0px 0 8px 0",width:"100%",style:{cursor:"pointer"},onClick:()=>{null==e||e.function()}},{children:[(0,n.jsxs)(B7,Object.assign({margin:"11px 22px 11px 2px",fontWeight:"400",fontSize:"14px",textTransform:"uppercase",color:"#fff",textAlign:"start",letterSpacing:"1px",width:"100%"},{children:[(0,n.jsx)(Sce,{children:null==e?void 0:e.title}),(0,n.jsx)(xce,{children:s9(null==e?void 0:e.title,6)})]})),(null==e?void 0:e.invertedIcon)&&(0,n.jsx)(R7,{src:e.invertedIcon,alt:"icon",width:"auto",cursor:"pointer",filter:"brightness(0) invert(1)",onClick:()=>{c((null==e?void 0:e.value)||"")}}),(null==e?void 0:e.icon)&&(0,n.jsx)(R7,{src:e.icon,alt:"icon",width:"auto",cursor:"pointer",onClick:()=>{c((null==e?void 0:e.value)||"")}})]})):(0,n.jsxs)(Ice,Object.assign({hoverBGColor:o,onClick:()=>null==e?void 0:e.function()},{children:[(null==e?void 0:e.invertedIcon)&&(0,n.jsx)(R7,{src:e.invertedIcon,alt:"icon",width:"100%",filter:r||(null===(t=a.textColor)||void 0===t?void 0:t.modalSubHeadingText)}),(null==e?void 0:e.icon)&&(0,n.jsx)(R7,{src:e.icon,alt:"icon",width:"24px",cursor:"pointer"}),!(null==e?void 0:e.link)&&(0,n.jsx)(B7,Object.assign({color:s(e),textAlign:"start",margin:"8px 10px",fontWeight:"400",fontSize:"15px",cursor:"pointer"},{children:e.title})),(null==e?void 0:e.link)&&(0,n.jsx)(kce,Object.assign({href:null==e?void 0:e.link,target:"_blank",rel:"nofollow",color:s(e)},{children:e.title}))]}))}))})}const Ece=(0,o.Ay)(B7).withConfig({displayName:"DropDown__SpanAddress",componentId:"sc-1x3mmiu-0"})(["margin:11px 22px 11px 2px;font-weight:400;size:14px;text-transform:uppercase;color:#fff;spacing:1px;width:100%;"]),xce=(0,o.Ay)(Ece).withConfig({displayName:"DropDown__MobileAddress",componentId:"sc-1x3mmiu-1"})(["@media (min-width:993px){display:none;}"]),Sce=(0,o.Ay)(Ece).withConfig({displayName:"DropDown__DesktopAddress",componentId:"sc-1x3mmiu-2"})(["@media (max-width:992px){display:none;}"]),Ice=(0,o.Ay)(D7).withConfig({displayName:"DropDown__DropdownItemContainer",componentId:"sc-1x3mmiu-3"})(["justify-content:flex-start;flex-wrap:nowrap;white-space:nowrap;margin:1px 0;padding:2px 8px;border-radius:12px;cursor:pointer;text-align:left;span{text-wrap:nowrap;}&:hover{background-color:",";}"],(e=>e.hoverBGColor||"none")),kce=o.Ay.a.withConfig({displayName:"DropDown__A",componentId:"sc-1x3mmiu-4"})(["margin:8px 10px;font-weight:400;font-size:16px;width:max-content;background:",";z-index:11;&:hover{background:transparent !important;}"],(e=>e.color)),_ce=({theme:e,member:t,copy:r,customStyle:o,loading:a})=>{var s,c,u,l,d,f,h,p,g,m,y,b,v,w,A,C;const[E,x]=(0,i.useState)(),S=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(S.current&&!(null==t?void 0:t.icon)){const e=Fse(l8((null==t?void 0:t.recipient)||""),{size:8,scale:6});S.current.innerHTML="",S.current.appendChild(e)}}),[null==t?void 0:t.recipient,null==t?void 0:t.icon]),(0,n.jsxs)(D7,Object.assign({justifyContent:"flex-start"},{children:[(0,n.jsxs)(D7,Object.assign({height:null!==(s=null==o?void 0:o.imgHeight)&&void 0!==s?s:"48px",width:null!==(c=null==o?void 0:o.imgHeight)&&void 0!==c?c:"48px",margin:"0px 12px 0px 0px",position:"relative",flex:"none",borderRadius:"100%",overflow:"hidden",className:a?"skeleton":"",animation:e.skeletonBG},{children:[(null==t?void 0:t.icon)&&(0,n.jsx)(R7,{height:null!==(u=null==o?void 0:o.imgHeight)&&void 0!==u?u:"48px",maxHeight:null!==(l=null==o?void 0:o.imgMaxHeight)&&void 0!==l?l:"48px",width:"auto",cursor:"pointer",src:null==t?void 0:t.icon}),!(null==t?void 0:t.icon)&&(0,n.jsx)(O7,{ref:S,height:null!==(d=null==o?void 0:o.imgHeight)&&void 0!==d?d:"48px",width:null!==(f=null==o?void 0:o.imgHeight)&&void 0!==f?f:"48px",cursor:"pointer"})]})),(0,n.jsx)(D7,Object.assign({flexDirection:"column",alignItems:"start",whiteSpace:"nowrap",minWidth:"150px",cursor:"pointer"},{children:(0,n.jsxs)(n.Fragment,{children:[(null==t?void 0:t.name)||(null==t?void 0:t.web3Name)?(0,n.jsx)(B7,Object.assign({fontSize:null!==(h=null==o?void 0:o.fontSize)&&void 0!==h?h:"16px",fontWeight:null!==(p=null==o?void 0:o.fontWeight)&&void 0!==p?p:"400",color:null!==(g=null==o?void 0:o.textColor)&&void 0!==g?g:null===(m=e.textColor)||void 0===m?void 0:m.modalSubHeadingText,position:"relative",textAlign:"left"},{children:t.name&&t.web3Name?t.name:t.name||t.web3Name})):null,(0,n.jsx)(M7,Object.assign({content:E},{children:(0,n.jsxs)(D7,Object.assign({justifyContent:"flex-start",gap:"5px",cursor:"pointer",minHeight:"22px",minWidth:"140px",onMouseEnter:()=>{const e=t.chatId===t.recipient?"Copy Chat ID":"Copy Wallet";x(e)},onMouseLeave:()=>x(""),onClick:()=>{C8(l8((null==t?void 0:t.recipient)||"")),x("Copied")},className:a?"skeleton":"",animation:e.skeletonBG},{children:[(0,n.jsx)(Tce,Object.assign({fontSize:(null==t?void 0:t.name)||(null==t?void 0:t.web3Name)?"14px":null!==(y=null==o?void 0:o.fontSize)&&void 0!==y?y:"16px",fontWeight:(null==t?void 0:t.name)||(null==t?void 0:t.web3Name)?"500":null!==(b=null==o?void 0:o.fontWeight)&&void 0!==b?b:"400",color:(null==t?void 0:t.name)||(null==t?void 0:t.web3Name)?null===(v=e.textColor)||void 0===v?void 0:v.modalSubHeadingText:null!==(w=null==o?void 0:o.textColor)&&void 0!==w?w:null===(A=e.textColor)||void 0===A?void 0:A.modalSubHeadingText,position:"relative",whiteSpace:"nowrap",cursor:"pointer",textAlign:"left"},{children:(null==t?void 0:t.name)&&(null==t?void 0:t.web3Name)?`${null==t?void 0:t.web3Name} | ${t.abbrRecipient}`:t.abbrRecipient})),r&&E&&(0,n.jsx)(O7,Object.assign({cursor:"pointer"},{children:(0,n.jsx)(wae,{size:16,color:null===(C=null==e?void 0:e.iconColor)||void 0===C?void 0:C.primaryColor})}))]}))}))]})}))]}))},Tce=(0,o.Ay)(B7).withConfig({displayName:"ProfileContainer__RecipientSpan",componentId:"sc-i68m4z-0"})(["text-wrap:nowrap;@media ","{text-wrap:pretty;}"],c5.mobileL),Mce=({children:e,onClose:t,width:r,closeonClickAway:o})=>{const a=(0,i.useRef)(null),s=(0,i.useContext)(Pae);return H9(a,(()=>{t&&o&&t()})),(0,n.jsx)(Oce,Object.assign({ref:a,width:r,theme:s},{children:e}))},Pce=({onClose:e,closeonClickAway:t,children:r,width:o,modalBackground:a=k5.OVERLAY,modalPositionType:s=_5.GLOBAL})=>{const c=(0,i.useContext)(Pae);return(0,n.jsx)(Dce,Object.assign({theme:c,modalBackground:a,modalPositionType:s},{children:t?(0,n.jsx)(Mce,Object.assign({onClose:e,width:o,closeonClickAway:t},{children:r})):(0,n.jsx)(Oce,Object.assign({width:o,theme:c},{children:r}))}))},jce=({handlePrevious:e,handleClose:t,title:r})=>{var o;const a=(0,i.useContext)(Pae);return(0,n.jsxs)(D7,Object.assign({justifyContent:"center",alignItems:"center",width:"100%"},{children:[e&&(0,n.jsx)(B7,Object.assign({onClick:()=>e(),cursor:"pointer"},{children:(0,n.jsx)(H7,{})})),(0,n.jsx)(B7,Object.assign({fontWeight:"500",fontSize:"24px",color:null===(o=a.textColor)||void 0===o?void 0:o.modalHeadingText,flex:"1"},{children:r})),t&&(0,n.jsx)(R7,{src:V7,height:"24px",maxHeight:"24px",width:"auto",onClick:()=>t(),cursor:"pointer"})," "]}))},Dce=o.Ay.div.withConfig({displayName:"Modal__ModalOverlay",componentId:"sc-fq4i0y-0"})(["position:",";top:0;left:0;right:0;bottom:0;width:100%;height:100%;backdrop-filter:",";background-color:",";display:flex;color:",";justify-content:center;align-items:center;z-index:9999999999999;max-height:100vh;overflow-y:auto;margin:auto !important;"],(e=>e.modalPositionType===_5.GLOBAL?"fixed":"absolute"),(e=>e.modalBackground===k5.BLUR?"blur(3px)":"none"),(e=>e.modalBackground===k5.OVERLAY?"rgba(0, 0, 0, 0.5)":" transparent"),(e=>{var t;return null!==(t=e.theme.textColor.modalHeadingText)&&void 0!==t?t:"#000"})),Oce=o.Ay.div.withConfig({displayName:"Modal__ModalParent",componentId:"sc-fq4i0y-1"})(["display:flex;flex-direction:column;align-items:center;padding:24px 20px;max-height:75vh;background:",";border-radius:",";width:",";margin:auto !important;@media (max-width:425px){min-width:300px;}"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.modalBackground}),(e=>{var t;return null===(t=e.theme.borderRadius)||void 0===t?void 0:t.modal}),(e=>e.width?e.width:"auto")),Bce=({msg:e,loaderColor:t,textColor:r})=>(0,n.jsxs)(Lce,{children:[(0,n.jsx)(Z7,{color:t,size:"35px"}),(0,n.jsx)(Fce,Object.assign({style:{color:r}},{children:e}))]}),Nce=({closeToast:e})=>(0,n.jsx)(Gce,Object.assign({onClick:e},{children:(0,n.jsx)(My,{color:"#657795",size:"100%"})})),Rce=(e=3e3,t="top-right")=>{const{uiConfig:r}=P5(),a=(0,i.useRef)(null),s=(0,i.useContext)(Pae),c=K9(c5.tablet);return{showLoaderToast:({loaderMessage:e})=>{var i,c,u,l;a.current?xy.update(a.current,{render:(0,n.jsx)(o.NP,Object.assign({theme:s},{children:(0,n.jsx)(Bce,{msg:e,loaderColor:s.spinnerColor,textColor:s.textColor.modalHeadingText})})),position:t,autoClose:!1,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,closeButton:!1,style:{background:null===(i=s.backgroundColor)||void 0===i?void 0:i.modalBackground,border:null===(c=s.border)||void 0===c?void 0:c.modalInnerComponents,borderRadius:"20px"}}):r.suppressToast?console.debug("UIWeb::reusables::NewToast::useToast::showLoaderToast::Toast suppressed"):a.current=xy((0,n.jsx)(o.NP,Object.assign({theme:s},{children:(0,n.jsx)(Bce,{msg:e,loaderColor:s.spinnerColor,textColor:s.textColor.modalHeadingText})})),{position:t,autoClose:!1,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,closeButton:!1,style:{background:null===(u=s.backgroundColor)||void 0===u?void 0:u.modalBackground,border:null===(l=s.border)||void 0===l?void 0:l.modalInnerComponents,borderRadius:"20px"}})},showMessageToast:({toastTitle:i,toastMessage:o,toastType:u,getToastIcon:l})=>{var d,f,h,p,g;const m=(0,n.jsxs)(Uce,{children:[(0,n.jsx)(zce,{children:l?l(30):""}),(0,n.jsxs)(Hce,{children:[(0,n.jsx)(Vce,Object.assign({style:{color:null===(d=s.textColor)||void 0===d?void 0:d.modalHeadingText}},{children:i})),(0,n.jsx)(Kce,Object.assign({style:{color:null===(f=s.textColor)||void 0===f?void 0:f.modalSubHeadingText}},{children:o}))]})]}),y={position:t,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,type:xy.TYPE.DEFAULT,closeButton:Nce,autoClose:e,style:{background:"SUCCESS"===u?null===(h=s.backgroundColor)||void 0===h?void 0:h.toastSuccessBackground:"ERROR"===u?null===(p=s.backgroundColor)||void 0===p?void 0:p.toastErrorBackground:null===(g=s.backgroundColor)||void 0===g?void 0:g.toastWarningBackground,borderRadius:"20px",margin:c?"20px":"0px"}};xy.isActive(a.current)||(r.suppressToast?console.debug("UIWeb::reusables::NewToast::useToast::showMessageToast::Toast suppressed"):a.current?xy.update(a.current,Object.assign({render:m},y)):a.current=xy(m,Object.assign({},y)))}}},Lce=o.Ay.div.withConfig({displayName:"NewToast__LoaderNotification",componentId:"sc-1y55fqo-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:center;margin:1% 3%;"]),Fce=o.Ay.div.withConfig({displayName:"NewToast__LoaderMessage",componentId:"sc-1y55fqo-1"})(["margin-left:3%;font-size:1rem;font-weight:600;line-height:1.3rem;letter-spacing:normal;text-align:left;"]),Uce=o.Ay.div.withConfig({displayName:"NewToast__Toast",componentId:"sc-1y55fqo-2"})(["display:flex;flex-direction:row;align-items:flex-start;margin:1.5% 1%;"]),zce=o.Ay.div.withConfig({displayName:"NewToast__ToastIcon",componentId:"sc-1y55fqo-3"})(["width:15%;margin-right:4%;"]),Hce=o.Ay.div.withConfig({displayName:"NewToast__ToastContent",componentId:"sc-1y55fqo-4"})(["display:flex;flex-direction:column;align-items:flex-start;"]),Vce=o.Ay.div.withConfig({displayName:"NewToast__ToastTitle",componentId:"sc-1y55fqo-5"})(["font-weight:500;font-size:1.125rem;letter-spacing:normal;line-height:1.4rem;letter-spacing:normal;text-align:left;margin-bottom:1%;"]),Kce=o.Ay.div.withConfig({displayName:"NewToast__ToastMessage",componentId:"sc-1y55fqo-6"})(["font-weight:400;font-size:0.9375rem;line-height:1.3rem;text-align:left;"]),Gce=o.Ay.button.withConfig({displayName:"NewToast__Button",componentId:"sc-1y55fqo-7"})(["cursor:pointer;background:none;margin:0;padding:0;width:1.3rem;height:1.3rem;border:none;"]),qce=e=>{const t=(0,i.useContext)(Pae);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(Qce,{children:[(0,n.jsxs)(Wce,{children:[(0,n.jsx)("label",{children:e.labelName}),e.charCount&&(0,n.jsxs)(Yce,Object.assign({theme:t},{children:[e.inputValue.length," / ",e.charCount]}))]}),(0,n.jsx)(Jce,{customStyle:e.customStyle,disabled:!!e.disabled,theme:t,error:e.error||!1,value:e.inputValue,onChange:t=>{if(e.charCount){t.target.value.length<=e.charCount&&e.onInputChange(t)}else e.onInputChange(t)},placeholder:e.placeholder})]})}))},Qce=o.Ay.div.withConfig({displayName:"TextInput__InputContainer",componentId:"sc-dumje7-0"})(["display:flex;flex-direction:column;width:100%;font-family:",";"],(e=>e.theme.fontFamily)),Wce=o.Ay.div.withConfig({displayName:"TextInput__LabelContainer",componentId:"sc-dumje7-1"})(["display:flex;justify-content:space-between;font-weight:500;font-size:14px;color:",";"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"})),Jce=o.Ay.input.withConfig({displayName:"TextInput__Input",componentId:"sc-dumje7-2"})(["padding:16px;margin-top:8px;color:",";background:",";border:",";border-radius:",";font-family:",";font-size:16px;font-weight:500;[readonly='readonly']{pointer-events:none;}&:focus{border:1px solid #ffdbf0;}"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.background)?e.customStyle.background:e.theme.backgroundColor.modalInputBackground}),(e=>e.error?" 1px solid #ED5858":e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.fontFamily)),Yce=o.Ay.div.withConfig({displayName:"TextInput__CharCounter",componentId:"sc-dumje7-3"})(["color:",";font-size:14px;font-weight:400;"],(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.modalSubHeadingText})),Zce=e=>{var t,r;const a=(0,i.useContext)(Pae);return(0,n.jsx)(o.NP,Object.assign({theme:a},{children:(0,n.jsxs)($ce,{children:[(0,n.jsxs)(Xce,{children:[(0,n.jsx)(eue,Object.assign({textColor:null===(t=a.textColor)||void 0===t?void 0:t.modalHeadingText},{children:e.labelHeading})),(0,n.jsx)(eue,Object.assign({textColor:null===(r=a.textColor)||void 0===r?void 0:r.modalSubHeadingText,fontSize:"12px",fontWeight:"400"},{children:e.labelSubHeading}))]}),(0,n.jsxs)(tue,Object.assign({htmlFor:"checkbox"},{children:[(0,n.jsx)("input",{type:"checkbox",id:"checkbox",checked:e.checked,onChange:()=>e.onToggle()}),(0,n.jsx)("div",{className:"slider round"})]}))]})}))},$ce=o.Ay.div.withConfig({displayName:"ToggleInput__ToggleContainer",componentId:"sc-dj907w-0"})(["display:flex;justify-content:space-between;width:100%;gap:10px;font-family:",";align-items:center;"],(e=>e.theme.fontFamily)),Xce=o.Ay.div.withConfig({displayName:"ToggleInput__LabelContainer",componentId:"sc-dj907w-1"})(["display:flex;flex-direction:column;gap:4px;width:73%;"]),eue=o.Ay.label.withConfig({displayName:"ToggleInput__Label",componentId:"sc-dj907w-2"})(["font-size:",";font-weight:",";color:",";"],(e=>{var t;return null!==(t=e.fontSize)&&void 0!==t?t:"16px"}),(e=>{var t;return null!==(t=e.fontWeight)&&void 0!==t?t:"500"}),(e=>{var t;return null!==(t=e.textColor)&&void 0!==t?t:"#000"})),tue=o.Ay.label.withConfig({displayName:"ToggleInput__ToggleLabel",componentId:"sc-dj907w-3"})(["display:inline-block;height:24px;position:relative;width:44px;padding:2px;input{display:none;}.slider{background-color:#ccc;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:0.4s;}.slider:before{background-color:#fff;bottom:4px;content:'';height:20px;left:4px;position:absolute;transition:0.4s;width:20px;}input:checked + .slider{background-color:",";}input:checked + .slider:before{transform:translateX(20px);}.slider.round{border-radius:34px;}.slider.round:before{border-radius:50%;}"],(e=>e.theme.backgroundColor.buttonBackground)),rue=e=>{var t;const r=(0,i.useContext)(Pae),[a,s]=(0,i.useState)(!1),c=(0,i.useRef)(null),{selectedValue:u,dropdownValues:l,labelName:d,error:f}=e,h=()=>{s(!a)};return(0,n.jsx)(o.NP,Object.assign({theme:r},{children:(0,n.jsxs)(nue,{children:[(0,n.jsx)(iue,{children:(0,n.jsx)("label",{children:e.labelName})}),(0,n.jsxs)(oue,Object.assign({ref:c,onClick:h,error:f||!1},{children:[(0,n.jsxs)(B7,Object.assign({margin:"0 7px 0 0"},{children:[l[u].title," "]})),(0,n.jsx)(aue,{src:Vne,width:"auto",setPosition:!a,borderRadius:"100%"})]})),a&&(0,n.jsx)(sue,Object.assign({theme:r,onClick:h},{children:(0,n.jsx)(Cce,{dropdownValues:l,hoverBGColor:null===(t=r.backgroundColor)||void 0===t?void 0:t.modalHoverBackground})}))]})}))},nue=(0,o.Ay)(D7).withConfig({displayName:"DropDownInput__DropdownContainer",componentId:"sc-10t42zf-0"})(["display:flex;flex-direction:column;width:100%;z-index:unset;align-items:flex-start;font-family:",";gap:8px;"],(e=>e.theme.fontFamily)),iue=o.Ay.div.withConfig({displayName:"DropDownInput__LabelContainer",componentId:"sc-10t42zf-1"})(["font-weight:400;font-size:16px;color:",";"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"})),oue=(0,o.Ay)(D7).withConfig({displayName:"DropDownInput__DropdownDiv",componentId:"sc-10t42zf-2"})(["padding:16px;display:flex;justify-content:space-between;align-items:center;background:",";border:",";border-radius:",";font-family:",";font-size:16px;span{white-space:nowrap;}font-weight:500;"],(e=>e.theme.backgroundColor.modalInputBackground),(e=>e.error?" 1px solid #ED5858":e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.fontFamily)),aue=(0,o.Ay)(R7).withConfig({displayName:"DropDownInput__ArrowImage",componentId:"sc-10t42zf-3"})(["margin-left:auto;transform:",";"],(e=>(null==e?void 0:e.setPosition)?"rotate(0)":"rotate(180deg)")),sue=(0,o.Ay)(D7).withConfig({displayName:"DropDownInput__DropdownListContainer",componentId:"sc-10t42zf-4"})(["position:absolute;width:96%;top:30%;right:0;border-radius:",";padding:8px;z-index:100;display:flex;flex-direction:column !important;background:",";border:",";"],(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modalInnerComponents)),cue=e=>{const t=(0,i.useContext)(Pae);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(uue,{children:[(0,n.jsxs)(lue,{children:[(0,n.jsx)("label",{children:e.labelName}),(0,n.jsxs)(fue,Object.assign({theme:t},{children:[e.inputValue.length," / ",e.charCount]}))]}),(0,n.jsx)(due,{error:e.error||!1,theme:t,value:e.inputValue,onChange:t=>{t.target.value.length<=e.charCount&&e.onInputChange(t)}})]})}))},uue=o.Ay.div.withConfig({displayName:"TextArea__InputContainer",componentId:"sc-1ku7ybj-0"})(["display:flex;flex-direction:column;width:100%;font-family:",";"],(e=>e.theme.fontFamily)),lue=o.Ay.div.withConfig({displayName:"TextArea__LabelContainer",componentId:"sc-1ku7ybj-1"})(["display:flex;justify-content:space-between;font-weight:500;color:",";"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"})),due=o.Ay.textarea.withConfig({displayName:"TextArea__Input",componentId:"sc-1ku7ybj-2"})(["padding:16px;margin-top:8px;height:100px;color:",";background:",";border:",";border-radius:",";font-family:",";font-size:14px;&:focus{border:1px solid #ffdbf0;}"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"}),(e=>e.theme.backgroundColor.modalInputBackground),(e=>e.error?" 1px solid #ED5858":e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.fontFamily)),fue=o.Ay.div.withConfig({displayName:"TextArea__CharCounter",componentId:"sc-1ku7ybj-3"})(["color:",";font-size:14px;font-weight:400;"],(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.modalSubHeadingText})),hue=({heading:e,subHeading:t,value:r})=>{var o,a;const s=(0,i.useContext)(Pae);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(B7,Object.assign({color:null===(o=s.textColor)||void 0===o?void 0:o.modalHeadingText,fontSize:"18px",fontWeight:"500"},{children:e})),(0,n.jsx)(B7,Object.assign({color:null===(a=s.textColor)||void 0===a?void 0:a.modalSubHeadingText,fontWeight:"400",fontSize:"12px",width:"132px",lineHeight:"130%"},{children:t}))]})},pue=({options:e,selectedValue:t,handleClick:r,totalWidth:a="400px",error:s})=>{const c=(0,i.useContext)(Pae),u=t=>0===t?"1px 1px 1px 1px":(t>0&&e.length,"1px 1px 1px 0px"),l=t=>0===t?"12px 0px 0px 12px":t>0&&t{var d;return(0,n.jsx)(mue,Object.assign({totalWidth:a,noOfOptions:e.length,borderRadius:l(o),error:s||!1,borderColor:c.border.modalInnerComponents,borderWidth:u(o),background:t===i.value?null===(d=c.backgroundColor)||void 0===d?void 0:d.modalHoverBackground:"none",onClick:()=>{r(i.value)}},{children:(0,n.jsx)(hue,Object.assign({},i))}))}))})}))},gue=o.Ay.div.withConfig({displayName:"OptionButtons__ButtonContainer",componentId:"sc-3jtp97-0"})(["display:flex;"]),mue=(0,o.Ay)(D7).withConfig({displayName:"OptionButtons__ButtonSection",componentId:"sc-3jtp97-1"})(["cursor:pointer;justify-content:center;align-items:center;gap:3px;width:",";@media ","{width:",";}padding:10px;border:",";border:",";border-width:",";border-style:solid;border-radius:",";flex-direction:column;&:hover{background:",";}"],(e=>`calc((${e.totalWidth} - 80px) / ${e.noOfOptions})`),c5.mobileL,(e=>`calc(((${e.totalWidth} - 80px) / ${e.noOfOptions}) - 30px)`),(e=>e.borderColor),(e=>e.error?" #ED5858":e.borderColor),(e=>e.borderWidth),(e=>e.borderRadius),(e=>e.theme.backgroundColor.modalHoverBackground)),yue=e=>{const t=(0,i.useContext)(Pae),{onClick:r,width:a,height:s,customStyle:c}=e;return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsx)(bue,Object.assign({onClick:r,width:a,height:s,theme:t,customStyle:c},{children:e.children}))}))},bue=o.Ay.button.withConfig({displayName:"Button__ChatButton",componentId:"sc-17z3e9-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;gap:'2px';padding:",";margin-top:12px;background:",";color:",";border-radius:",";border:",";font-size:16px;font-weight:",";font-family:",";flex:none;order:0;flex-grow:0;transition:150ms ease-in-out;&:hover{cursor:pointer;}width:",";height:",";"],(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.padding)?e.customStyle.padding:"16px"}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.background)?e.customStyle.background:e.theme.backgroundColor.buttonBackground}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.color)?e.customStyle.color:e.theme.textColor.buttonText}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.borderRadius)?e.customStyle.borderRadius:e.theme.borderRadius.modalInnerComponents}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.border)?e.customStyle.border:e.theme.border.modal}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.fontWeight)?e.customStyle.fontWeight:"500"}),(e=>e.theme.fontFamily),(e=>e.width?e.width:"100%"),(e=>e.height?e.height:"100%")),vue=e=>{var t;const r=(0,i.useContext)(Pae);return(0,n.jsx)(o.NP,Object.assign({theme:r},{children:(0,n.jsxs)(wue,{children:[(0,n.jsx)(Aue,{children:(0,n.jsx)("label",{children:e.labelName})}),(0,n.jsxs)(D7,Object.assign({gap:"4px",alignItems:"center"},{children:[(0,n.jsx)(D7,Object.assign({zIndex:"500"},{children:(0,n.jsx)(rue,{selectedValue:e.inputValue.range,dropdownValues:e.dropDownValues})})),(0,n.jsxs)(D7,Object.assign({alignItems:"baseline",width:"fit-content"},{children:[(0,n.jsx)(Cue,{type:"number",error:e.error||!1,theme:r,value:e.inputValue.value,onChange:t=>{e.onInputChange(t)},placeholder:e.placeholder}),(0,n.jsx)(Eue,Object.assign({alignSelf:"auto",background:null===(t=r.backgroundColor)||void 0===t?void 0:t.modalHoverBackground,width:"40%",height:"fit-content",error:e.error||!1},{children:s9(e.unit,15)}))]}))]}))]})}))},wue=o.Ay.div.withConfig({displayName:"QuantityInput__QuantityInputContainer",componentId:"sc-1br3sg4-0"})(["display:flex;flex-direction:column;width:100%;font-family:",";"],(e=>e.theme.fontFamily)),Aue=o.Ay.div.withConfig({displayName:"QuantityInput__LabelContainer",componentId:"sc-1br3sg4-1"})(["display:flex;justify-content:space-between;font-weight:500;font-size:16px;color:",";"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"})),Cue=o.Ay.input.withConfig({displayName:"QuantityInput__Input",componentId:"sc-1br3sg4-2"})(["padding:16px;margin-top:8px;color:",";background:",";border:",";border-width:1px 0px 1px 1px;border-radius:12px 0 0 12px;font-family:",";font-size:16px;width:60%;font-weight:500;"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"}),(e=>e.theme.backgroundColor.modalInputBackground),(e=>e.error?" 1px solid #ED5858":e.theme.border.modalInnerComponents),(e=>e.theme.fontFamily)),Eue=(0,o.Ay)(D7).withConfig({displayName:"QuantityInput__Unit",componentId:"sc-1br3sg4-3"})(["font-size:14px;font-weight:600;white-space:nowrap;border-radius:0 12px 12px 0;padding:18px 17.2px 16.5px 17.2px;border:",";@media ","{padding:21px 17.2px 17.5px 17.2px;font-size:10px;font-weight:400}"],(e=>e.error?" 1px solid #ED5858":e.theme.border.modalInnerComponents),c5.mobileL),xue=e=>{const t=(0,i.useContext)(Pae);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(Sue,{children:[(0,n.jsx)("input",{type:"checkbox",id:"checkbox",checked:e.checked,onChange:()=>e.onToggle()}),(0,n.jsx)(Iue,{children:(0,n.jsx)("label",{children:e.labelName})})]})}))},Sue=o.Ay.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-tq23cv-0"})(["display:flex;width:100%;gap:5px;align-items:center;font-family:",";input{width:18px;height:18px}"],(e=>e.theme.fontFamily)),Iue=o.Ay.div.withConfig({displayName:"Checkbox__LabelContainer",componentId:"sc-tq23cv-1"})(["display:flex;font-weight:400;font-size:16px;color:",";"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"})),kue=({color:e})=>(0,n.jsxs)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M8.15234 6.10618C8.15234 5.63757 8.53222 5.25769 9.00083 5.25769C9.46943 5.25769 9.84931 5.63757 9.84931 6.10618C9.84931 6.57478 9.46943 6.95466 9.00083 6.95466C8.53222 6.95466 8.15234 6.57478 8.15234 6.10618ZM8.15234 9.50011C8.15234 9.03151 8.53222 8.65163 9.00083 8.65163C9.46943 8.65163 9.84931 9.03151 9.84931 9.50011V12.8941C9.84931 13.3627 9.46943 13.7425 9.00083 13.7425C8.53222 13.7425 8.15234 13.3627 8.15234 12.8941V9.50011Z",fill:e||"#575D73"}),(0,n.jsx)("circle",{cx:"9",cy:"9.5",r:"8",stroke:e||"#575D73","stroke-width":"1.5"})]})),_ue=({label:e,cta:t})=>{var r;const o=(0,i.useContext)(Pae);return(0,n.jsx)(D7,Object.assign({cursor:"pointer"},{children:(0,n.jsxs)(Tue,Object.assign({href:t,target:t?"_target":""},{children:[(0,n.jsx)(kue,{}),e&&(0,n.jsx)(B7,Object.assign({color:null===(r=o.textColor)||void 0===r?void 0:r.modalSubHeadingText,fontSize:"15px",cursor:"pointer"},{children:e}))]}))}))},Tue=o.Ay.a.withConfig({displayName:"InfoContainer__Link",componentId:"sc-2gglnx-0"})(["text-decoration:none;display:flex;align-items:center;justify-content:center;gap:6px;"]),Mue=()=>(0,n.jsxs)("svg",Object.assign({width:"49",height:"21",viewBox:"0 0 49 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer"},{children:[(0,n.jsx)("rect",{width:"49",height:"21",rx:"6",fill:"#282A2E"}),(0,n.jsx)("path",{d:"M13.86 14L10.656 5.6H9.348L6.084 14H7.428L8.076 12.26H11.868L12.516 14H13.86ZM9.972 7.208L11.424 11.096H8.52L9.972 7.208ZM19.0121 9.056C18.5201 8.648 17.8841 8.42 17.2361 8.42C15.6281 8.42 14.3561 9.68 14.3561 11.276C14.3561 12.884 15.6281 14.132 17.2361 14.132C17.8841 14.132 18.5201 13.904 19.0121 13.496V14H20.1521V5.6H19.0121V9.056ZM17.2841 13.028C16.2881 13.028 15.5561 12.284 15.5561 11.276C15.5561 10.268 16.2881 9.524 17.2841 9.512C18.2681 9.524 19.0121 10.268 19.0121 11.276C19.0121 12.284 18.2681 13.028 17.2841 13.028ZM26.1371 9.056C25.6451 8.648 25.0091 8.42 24.3611 8.42C22.7531 8.42 21.4811 9.68 21.4811 11.276C21.4811 12.884 22.7531 14.132 24.3611 14.132C25.0091 14.132 25.6451 13.904 26.1371 13.496V14H27.2771V5.6H26.1371V9.056ZM24.4091 13.028C23.4131 13.028 22.6811 12.284 22.6811 11.276C22.6811 10.268 23.4131 9.524 24.4091 9.512C25.3931 9.524 26.1371 10.268 26.1371 11.276C26.1371 12.284 25.3931 13.028 24.4091 13.028Z",fill:"white"}),(0,n.jsx)("path",{d:"M41.9062 10.5C41.9062 10.6243 41.8569 10.7435 41.769 10.8315C41.681 10.9194 41.5618 10.9688 41.4375 10.9688H38.4688V13.9375C38.4688 14.0618 38.4194 14.181 38.3315 14.269C38.2435 14.3569 38.1243 14.4062 38 14.4062C37.8757 14.4062 37.7565 14.3569 37.6685 14.269C37.5806 14.181 37.5312 14.0618 37.5312 13.9375V10.9688H34.5625C34.4382 10.9688 34.319 10.9194 34.231 10.8315C34.1431 10.7435 34.0938 10.6243 34.0938 10.5C34.0938 10.3757 34.1431 10.2565 34.231 10.1685C34.319 10.0806 34.4382 10.0312 34.5625 10.0312H37.5312V7.0625C37.5312 6.93818 37.5806 6.81895 37.6685 6.73104C37.7565 6.64314 37.8757 6.59375 38 6.59375C38.1243 6.59375 38.2435 6.64314 38.3315 6.73104C38.4194 6.81895 38.4688 6.93818 38.4688 7.0625V10.0312H41.4375C41.5618 10.0312 41.681 10.0806 41.769 10.1685C41.8569 10.2565 41.9062 10.3757 41.9062 10.5Z",fill:"white"})]})),Pue=({color:e,width:t,height:r})=>(0,n.jsxs)("svg",Object.assign({width:null!=t?t:"32",height:null!=r?r:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer"},{children:[(0,n.jsx)("path",{d:"M16 10C17.1046 10 18 9.10457 18 8C18 6.89543 17.1046 6 16 6C14.8954 6 14 6.89543 14 8C14 9.10457 14.8954 10 16 10Z",fill:null!=e?e:"#787E99"}),(0,n.jsx)("path",{d:"M16 18C17.1046 18 18 17.1046 18 16C18 14.8954 17.1046 14 16 14C14.8954 14 14 14.8954 14 16C14 17.1046 14.8954 18 16 18Z",fill:null!=e?e:"#787E99"}),(0,n.jsx)("path",{d:"M16 26C17.1046 26 18 25.1046 18 24C18 22.8954 17.1046 22 16 22C14.8954 22 14 22.8954 14 24C14 25.1046 14.8954 26 16 26Z",fill:null!=e?e:"#787E99"})]}));var jue="data:image/svg+xml,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 9.3375V2C1 1.73478 1.10536 1.48043 1.29289 1.29289C1.48043 1.10536 1.73478 1 2 1H22C22.2652 1 22.5196 1.10536 22.7071 1.29289C22.8946 1.48043 23 1.73478 23 2V9.3375C23 19.8375 14.0875 23.3125 12.3125 23.9C12.1109 23.9747 11.8891 23.9747 11.6875 23.9C9.9125 23.3125 1 19.8375 1 9.3375Z' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Due="data:image/svg+xml,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.1875 3L27.8125 29' stroke='%23787E99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M23.4375 24.1875C20.75 27.2625 17.3375 28.5625 16.3125 28.9C16.1109 28.9747 15.8891 28.9747 15.6875 28.9C13.9125 28.3125 5 24.8375 5 14.3375V7C5 6.73478 5.10536 6.48043 5.29289 6.29289C5.48043 6.10536 5.73478 6 6 6H6.9125' stroke='%23787E99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M12.3125 6H26C26.2652 6 26.5196 6.10536 26.7071 6.29289C26.8946 6.48043 27 6.73478 27 7V14.3375C27 16.85 26.4875 18.95 25.6875 20.7125' stroke='%23787E99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Oue="data:image/svg+xml,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M16 28C22.6274 28 28 22.6274 28 16C28 9.37258 22.6274 4 16 4C9.37258 4 4 9.37258 4 16C4 22.6274 9.37258 28 16 28Z' stroke='%23E93636' stroke-width='2' stroke-miterlimit='10'/%3e%3cpath d='M11 16H21' stroke='%23E93636' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Bue=({key:e,memberData:t,handleMembers:r,handleMemberList:o,darkIcon:a,memberList:s})=>{var c,u,l,d,f,h,p,g;const m=(0,i.useContext)(Pae),[y,b]=(0,i.useState)(null),[v,w]=(0,i.useState)(0),A=(0,i.useRef)(null);H9(A,(()=>b(null)));const C={id:"dismiss_admin",title:"Dismiss as admin",icon:Due,function:()=>S()},E={id:"dismiss_admin",title:"Make group admin",icon:jue,function:()=>I()},x={id:"remove_user",title:"Remove",icon:Oue,function:()=>k()},S=()=>{const e=s.map((e=>{var r,n;return(null===(r=null==e?void 0:e.wallets)||void 0===r?void 0:r.toLowerCase())==(null===(n=null==t?void 0:t.wallets)||void 0===n?void 0:n.toLowerCase())?Object.assign(Object.assign({},e),{isAdmin:!1}):e}));null==r||r(e),b(null)},I=()=>{const e=s.map((e=>{var r,n;return(null===(r=null==e?void 0:e.wallets)||void 0===r?void 0:r.toLowerCase())==(null===(n=null==t?void 0:t.wallets)||void 0===n?void 0:n.toLowerCase())?Object.assign(Object.assign({},e),{isAdmin:!0}):e}));null==r||r(e),b(null)},k=()=>{o(t),b(null)};return(0,n.jsxs)(Nue,Object.assign({id:null==t?void 0:t.wallets,background:s?"transparent":null===(c=m.backgroundColor)||void 0===c?void 0:c.modalHoverBackground,border:s?null===(u=m.border)||void 0===u?void 0:u.modalInnerComponents:"none",borderRadius:null===(l=m.borderRadius)||void 0===l?void 0:l.modalInnerComponents},{children:[(0,n.jsx)(_ce,{theme:m,member:{name:null,icon:(null===(d=t.profile)||void 0===d?void 0:d.picture)||"",chatId:null,recipient:null===(f=t.wallets)||void 0===f?void 0:f.split(":")[1],abbrRecipient:s9(null===(h=t.wallets)||void 0===h?void 0:h.split(":")[1],6,!0),web3Name:null,desc:null}}),(0,n.jsxs)(D7,Object.assign({justifyContent:"flex-end"},{children:[(null==t?void 0:t.isAdmin)&&(0,n.jsx)(B7,Object.assign({background:"#F4DCEA",color:"#D53A94",borderRadius:"8px",padding:"6px",fontWeight:"500",fontSize:"10px"},{children:"Admin"})),(0,n.jsx)(D7,Object.assign({maxWidth:"fit-content",onClick:()=>{(e=>{var t;const r=null===(t=document.getElementById(e))||void 0===t?void 0:t.getBoundingClientRect();w(null==r?void 0:r.top)})(null==t?void 0:t.wallets),b(null),s&&Zse(t,s,"wallets")?b(null==t?void 0:t.wallets):o(t)}},{children:a}))]})),(null==y?void 0:y.toLowerCase())==(null===(p=null==t?void 0:t.wallets)||void 0===p?void 0:p.toLowerCase())&&(0,n.jsx)(Rue,Object.assign({style:{top:v>500?"30%":"45%"},ref:A,theme:m},{children:(0,n.jsx)(Cce,{dropdownValues:(null==t?void 0:t.isAdmin)?[C,x]:[E,x],hoverBGColor:null===(g=m.backgroundColor)||void 0===g?void 0:g.modalHoverBackground})}))]}))},Nue=(0,o.Ay)(D7).withConfig({displayName:"MemberListContainer__WalletProfileContainer",componentId:"sc-1x4rfc4-0"})(["justify-content:space-between;padding:8px 16px;border:",";position:relative;box-sizing:border-box;width:100%;max-height:64px;align-self:stretch;display:flex;height:auto;z-index:auto;flex:1;@media (max-width:480px){max-width:100%;}"],(e=>e.border)),Rue=o.Ay.div.withConfig({displayName:"MemberListContainer__DropdownContainer",componentId:"sc-1x4rfc4-1"})(["position:absolute;left:48%;top:69%;border-radius:",";padding:14px 8px;z-index:999999999999 !important;display:flex;flex-direction:column !important;background:",";border:",";@media ","{left:27%;}@media (min-width:426px) and (max-width:1150px){left:48%;}@media (max-width:480px){left:25%;}"],(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modalInnerComponents),c5.mobileL),Lue=({onSubmit:e,handlePrevious:t,onClose:r,memberList:o,handleMemberList:a,groupMembers:s,totalAllowedMembers:c,isLoading:u,title:l,addMemberToList:d,submitButtonTitle:f})=>{var h,p,g,m,y;const b=(0,i.useContext)(Pae),[v,w]=(0,i.useState)(null),{user:A,toast:C}=P5(),E=A?A.env:_.CONSTANTS.ENV.PROD,x=K9(c5.mobileL),{fetchUserProfile:S}=G9(),I={background:null===(h=b.backgroundColor)||void 0===h?void 0:h.modalInputBackground,border:null===(p=b.border)||void 0===p?void 0:p.modalInnerComponents,placeholderColor:null===(g=b.textColor)||void 0===g?void 0:g.modalSubHeadingText,fontSize:"15px",fontWeight:"400"},k=()=>{w(null)},T=e=>{const t=null==o?void 0:o.filter((t=>t.wallets.toLowerCase()!==e.wallets.toLowerCase()));a(t)};return(0,n.jsxs)(D7,Object.assign({margin:"auto",width:x?"100%":"410px",flexDirection:"column",padding:x?"0px auto":"0px 10px"},{children:[(0,n.jsx)(jce,{title:l,handleClose:r,handlePrevious:t}),(0,n.jsxs)(D7,Object.assign({margin:"50px 0 10px 0",flex:"1",flexDirection:"row",justifyContent:"space-between"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"18px",color:null===(m=b.textColor)||void 0===m?void 0:m.modalSubHeadingText},{children:"Add Wallets"})),(0,n.jsx)(B7,Object.assign({fontSize:"14px",color:null===(y=b.textColor)||void 0===y?void 0:y.modalSubHeadingText},{children:s?`${(null==o?void 0:o.length)+(null==s?void 0:s.length)} / ${c} Members`:`${null==o?void 0:o.length} / ${c} Members`}))]})),(0,n.jsx)(D7,Object.assign({flex:"1"},{children:(0,n.jsx)(bce,{handleSearch:({searchedText:e})=>pJ(void 0,void 0,void 0,(function*(){const t=yield R8({searchText:e,fetchChatProfile:S,env:E,user:A});t?w(t):C.showMessageToast({toastTitle:"Error",toastMessage:"Invalid Address",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})})),clearInput:k,placeholder:"Search Web3 domain or 0x123...",customStyle:I})})),v&&(0,n.jsx)(Fue,{children:(0,n.jsx)(Bue,{memberData:v,handleMemberList:e=>{d(e),k(),w("")},darkIcon:(0,n.jsx)(Mue,{})})}),(0,n.jsx)(Uue,Object.assign({flexDirection:"column",gap:"5px",justifyContent:"start"},{children:null==o?void 0:o.map(((e,t)=>(0,n.jsx)(Bue,{memberList:o,memberData:e,handleMembers:a,handleMemberList:T,darkIcon:(0,n.jsx)(Pue,{})},t)))})),(0,n.jsx)(D7,Object.assign({flex:"1",alignSelf:"center"},{children:(0,n.jsxs)(zue,Object.assign({onClick:()=>e(),isLoading:u,theme:b},{children:[u?"":f," ",u&&(0,n.jsx)(Z7,{size:"30",color:"#fff"})]}))}))]}))},Fue=o.Ay.div.withConfig({displayName:"AddWallets__MemberList",componentId:"sc-fkss2h-0"})(["flex:1;width:100%;margin-bottom:40px;"]),Uue=(0,o.Ay)(D7).withConfig({displayName:"AddWallets__MultipleMemberList",componentId:"sc-fkss2h-1"})(["height:fit-content;max-height:216px;overflow:hidden scroll;padding:0px 2px;width:100%;&::-webkit-scrollbar-track{background-color:",";}&::-webkit-scrollbar{background-color:",";width:6px;}@media (max-width:768px){padding:0px 0px 0px 0px;max-height:35vh;&::-webkit-scrollbar-track{background-color:none;border-radius:9px;}&::-webkit-scrollbar{background-color:none;width:4px;}}&::-webkit-scrollbar-thumb{border-radius:10px;background-image:-webkit-gradient( linear,left top,left bottom,color-stop(0.44,#cf1c84),color-stop(0.72,#cf1c84),color-stop(0.86,#cf1c84) );}"],(e=>e.theme.scrollbarColor),(e=>e.theme.scrollbarColor)),zue=o.Ay.button.withConfig({displayName:"AddWallets__ModalConfirmButton",componentId:"sc-fkss2h-2"})(["margin:60px 0 0 0;width:197px;background:",";color:",";border:",";min-width:50%;box-sizing:border-box;cursor:pointer;border-radius:12px;padding:16px;font-size:16px;font-weight:500;display:flex;align-items:center;justify-content:center;box-shadow:none;height:48px;"],(e=>e.theme.backgroundColor.buttonBackground),(e=>e.theme.textColor.buttonText),(e=>"none")),Hue=e=>{const{imageSrc:t,onImageCropped:r,width:o,height:a}=e,[s,c]=(0,i.useState)({x:0,y:0}),[u,l]=(0,i.useState)(1),[d,f]=(0,i.useState)(null),[h,p]=(0,i.useState)(""),g=(0,i.useCallback)(((e,t)=>{f(t)}),[]);i.useEffect((()=>{!function(){pJ(this,void 0,void 0,(function*(){try{if(t){const e=yield function(e,t){return pJ(this,void 0,void 0,(function*(){const r=yield y(e),n=document.createElement("canvas");n.width=null==t?void 0:t.width,n.height=null==t?void 0:t.height;const i=n.getContext("2d"),o="none.jpg";return i.drawImage(r,t.x,t.y,t.width,t.height,0,0,t.width,t.height),new Promise(((e,t)=>{n.toBlob((t=>{e(new File([t],o,{type:"image/jpeg",lastModified:Date.now()}))}),"image/jpeg")}))}))}(t,d),n=yield m(e);return void r(n)}return}catch($R){return void console.error($R)}}))}()}),[s]);const m=e=>new Promise((t=>{LI().imageFileResizer(e,128,128,"JPEG",80,0,(e=>{t(e),p(e)}),"base64")})),y=e=>new Promise(((t,r)=>{const n=new Image;n.addEventListener("load",(()=>t(n))),n.addEventListener("error",(e=>r(e))),n.setAttribute("crossOrigin","anonymous"),n.src=e}));return(0,n.jsx)(Vue,{children:(0,n.jsx)(NI,{image:t,crop:s,zoom:u,aspect:1,onCropChange:c,onCropComplete:g,onZoomChange:e=>{l(e)},style:{containerStyle:{width:o||"0.1px",height:a||"0.1px",position:"relative",borderRadius:"16px"}}})})},Vue=o.Ay.div.withConfig({displayName:"AutoImageClipper__Container",componentId:"sc-famnlk-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;"]);const Kue=(e,t)=>(0,n.jsx)(u4,Object.assign({tooltipContent:`${t}`},{children:e})),Gue={11155111:{label:"ETHEREUM SEPOLIA",icon:Kue((0,n.jsx)(g4,{}),"Ethereum Sepolia")},1:{label:"ETHEREUM MAINNET",icon:Kue((0,n.jsx)(g4,{}),"Ethereum Mainnet")},80002:{label:"POLYGON AMOY",icon:Kue((0,n.jsx)(b4,{}),"Polygon Amoy")},137:{label:"POLYGON MAINNET",icon:Kue((0,n.jsx)(b4,{}),"Polygon Mainnet")},97:{label:"BSC TESTNET",icon:Kue((0,n.jsx)(h4,{}),"Bsc Testnet")},56:{label:"BSC MAINNET",icon:Kue((0,n.jsx)(h4,{}),"Bsc Mainnet")},11155420:{label:"OPTIMISM TESTNET",icon:Kue((0,n.jsx)(y4,{}),"Optimism Testnet")},10:{label:"OPTIMISM MAINNET",icon:Kue((0,n.jsx)(y4,{}),"Optimism Mainnet")},1442:{label:"POLYGON ZK EVM TESTNET",icon:Kue((0,n.jsx)(v4,{}),"Polygon ZK EVM Testnet")},1101:{label:"POLYGON ZK EVM MAINNET",icon:Kue((0,n.jsx)(v4,{}),"Polygon ZK EVM Mainnet")},42161:{label:"ARBITRUMONE MAINNET",icon:Kue((0,n.jsx)(f4,{}),"Arbitrum Mainnet")},421614:{label:"ARBITRUM TESTNET",icon:Kue((0,n.jsx)(f4,{}),"Arbitrum Testnet")},123:{label:"FUSE TESTNET",icon:Kue((0,n.jsx)(m4,{}),"Fuse Testnet")},122:{label:"FUSE MAINNET",icon:Kue((0,n.jsx)(m4,{}),"Fuse Mainnet")},80085:{label:"BERACHAIN TESTNET",icon:Kue((0,n.jsx)(p4,{}),"Berachain Testnet")},59141:{label:"LINEA TESTNET",icon:Kue((0,n.jsx)(w4,{}),"Linea Testnet")},59144:{label:"LIENA MAINNET",icon:Kue((0,n.jsx)(w4,{}),"Linea Mainnet")},111557560:{label:"CYBER CONNECT TESTNET",icon:Kue((0,n.jsx)(A4,{}),"CyberConnect Testnet")},7560:{label:"CYBER CONNECT MAINNET",icon:Kue((0,n.jsx)(A4,{}),"CyberConnect Mainnet")},84532:{label:"BASE TESTNET",icon:Kue((0,n.jsx)(C4,{}),"Base Testnet")},8453:{label:"BASE MAINNET",icon:Kue((0,n.jsx)(C4,{}),"Base Testnet")}},que={owner:"Only Owner can invite",admin:"Only Admin can invite"},Que=[{heading:"ALL",value:"all"},{heading:"ANY",value:"any"},{heading:"SPECIFIC",value:"specific"}],Wue=[{heading:"Any",value:"any"},{heading:"All",value:"all"}],Jue={any:{head:"Any one",tail:"of the following criteria must be true"},all:{head:"All",tail:"of the following criteria must be true"}},Yue={ENTRY:{heading:"Conditions to Join",subHeading:"Add a condition to join or remove all conditions for no rules"},CHAT:{heading:"Conditions to Chat",subHeading:"Add a condition to chat or leave it empty for no rules"}},Zue=({handleMoreOptionsClick:e,setSelectedIndex:t,selectedIndex:r,row:o,col:a,dropDownValues:s})=>{var c,u;const l=(0,i.useContext)(Pae),d=(0,i.useRef)(null);return H9(d,(()=>t(null))),(0,n.jsxs)(D7,Object.assign({onClick:()=>e(o,a),position:"static"},{children:[(0,n.jsx)(Pue,{color:null===(c=l.iconColor)||void 0===c?void 0:c.groupSettings,width:"24",height:"24"}),(null==r?void 0:r.length)&&r[0]===o&&(0,n.jsx)(ele,Object.assign({ref:d,theme:l},{children:(0,n.jsx)(Cce,{dropdownValues:s,hoverBGColor:null===(u=l.backgroundColor)||void 0===u?void 0:u.modalHoverBackground})}))]}))},$ue=({criteria:e})=>{var t,r,o,a,s,c,u,l,d,f,h,p,g,m,y,b,v;const w=(0,i.useContext)(Pae),A=()=>{var t;return o7[null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.comparison]},[C]=(e=>{const t=g7(e),[r,n]=(0,i.useState)("...."),[o,a]=(0,i.useState)(!0),s=e=>{n(e),a(!1)};return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var r;if(t){const t=e.data,n=t.contract,i=e.category;if(i&&n){if(t.token)return void s(t.token);const e=n.split(":"),[o,a]=[e[2],parseInt(e[1])];if(i===Y9){const[e,t]=yield f7(o,a);e||s(t.symbol)}else if(i===Z9){const[e,t]=yield h7(o,a);e||s(t)}else if(i===$9){const[e,n]=yield p7(o,a,null!==(r=t.tokenId)&&void 0!==r?r:0);e||s(n)}}}}))}),[]),[r,o]})(e);return(0,n.jsxs)(D7,Object.assign({gap:"8px",width:"100%",justifyContent:"start"},{children:[(0,n.jsx)(B7,Object.assign({alignSelf:"center",background:null===(t=w.backgroundColor)||void 0===t?void 0:t.criteriaLabelBackground,borderRadius:"4px",fontSize:"10px",color:null===(r=w.textColor)||void 0===r?void 0:r.buttonText,padding:"4px 8px 4px 8px"},{children:a7[e.category]})),((null==e?void 0:e.category)===Z9||(null==e?void 0:e.category)===Y9||(null==e?void 0:e.category)===$9)&&(0,n.jsxs)(D7,Object.assign({width:"100%",justifyContent:"space-between",alignItems:"center"},{children:[(null==e?void 0:e.category)===$9?(0,n.jsxs)(D7,{children:[(0,n.jsxs)(B7,Object.assign({fontWeight:"500",color:null===(o=w.textColor)||void 0===o?void 0:o.modalSubHeadingText},{children:[A()," "]})),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start",margin:"0px 0px 0px 8px"},{children:[(0,n.jsxs)(B7,Object.assign({color:null===(a=w.textColor)||void 0===a?void 0:a.modalSubHeadingText,fontSize:"10px"},{children:[null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.amount," ",C]})),(0,n.jsxs)(B7,Object.assign({color:null===(c=w.textColor)||void 0===c?void 0:c.modalHeadingText,textAlign:"flex-start"},{children:["ID: ",null===(u=null==e?void 0:e.data)||void 0===u?void 0:u.tokenId]}))]}))]}):(0,n.jsxs)(B7,Object.assign({fontWeight:"700",color:null===(l=w.textColor)||void 0===l?void 0:l.modalHeadingText},{children:[(0,n.jsxs)(B7,Object.assign({fontWeight:"500",color:null===(d=w.textColor)||void 0===d?void 0:d.modalSubHeadingText},{children:[A()," "]})),null===(f=null==e?void 0:e.data)||void 0===f?void 0:f.amount," ",C]})),(0,n.jsx)(nle,Object.assign({padding:"3px 6px 0 0"},{children:Gue[null===(h=null==e?void 0:e.data)||void 0===h?void 0:h.contract.split(":")[1]].icon}))]})),e.category===X9&&(0,n.jsx)(B7,Object.assign({fontWeight:"500",color:null===(p=w.textColor)||void 0===p?void 0:p.modalSubHeadingText},{children:"Owner and Admin can invite"})),e.category===e7&&(0,n.jsx)(B7,Object.assign({fontWeight:"500",fontSize:"14px",color:null===(g=w.textColor)||void 0===g?void 0:g.modalSubHeadingText},{children:s9(null===(m=e.data)||void 0===m?void 0:m.url,30)})),e.category===t7&&(0,n.jsxs)(B7,Object.assign({fontWeight:"700",color:null===(y=w.textColor)||void 0===y?void 0:y.modalHeadingText},{children:[null===(b=null==e?void 0:e.data)||void 0===b?void 0:b.id," ",(0,n.jsxs)(B7,Object.assign({fontWeight:"500",color:null===(v=w.textColor)||void 0===v?void 0:v.modalSubHeadingText},{children:["with"," "]})),(()=>{var t,r;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.comparison)?null===(r=Que.find((t=>{var r;return t.value===(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.comparison)})))||void 0===r?void 0:r.heading:"SPECIFIC"})()," role"]}))]}))},Xue=({conditionData:e,deleteFunction:t,updateFunction:r,moreOptions:o=!0})=>{const[a,s]=(0,i.useState)(null),c=(0,i.useRef)(null),u=[{id:0,value:"Edit",title:"Edit",icon:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.00899 15H1.60869C1.44726 15 1.29243 14.9359 1.17828 14.8217C1.06413 14.7076 1 14.5527 1 14.3913V10.991C1.00007 10.8298 1.06411 10.6752 1.17804 10.5611L10.561 1.17814C10.6752 1.06407 10.8299 1 10.9913 1C11.1527 1 11.3074 1.06407 11.4216 1.17814L14.8219 4.57616C14.9359 4.6903 15 4.84506 15 5.00643C15 5.16779 14.9359 5.32256 14.8219 5.4367L5.43888 14.822C5.32482 14.9359 5.17021 14.9999 5.00899 15Z' stroke='rgba(120%2c 126%2c 153%2c 1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8.30469 3.43481L12.5655 7.69565' stroke='rgba(120%2c 126%2c 153%2c 1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",function:()=>{r&&a&&(r(a[0]),s(null))}},{id:1,value:"Remove",title:"Remove",icon:"data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 9H12' stroke='rgba(120%2c 126%2c 153%2c 1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17Z' stroke='rgba(120%2c 126%2c 153%2c 1)' stroke-width='2' stroke-miterlimit='10'/%3e%3c/svg%3e",function:()=>{t&&a&&(t(a[0]),s(null))}}],l=(0,i.useContext)(Pae);H9(c,(()=>s(null)));const d=(e,t)=>{s([e,t])};return(0,n.jsx)(D7,Object.assign({flexDirection:"column",width:"100%",height:"100%"},{children:e&&e.slice(1).map(((t,r)=>{var i,c,f;return(0,n.jsxs)(D7,Object.assign({flexDirection:"column"},{children:[t.length<=2&&t.length>=1&&t.map(((e,t)=>{var i,c;return(0,n.jsx)(n.Fragment,{children:e.type&&(0,n.jsxs)(D7,Object.assign({borderRadius:null===(i=l.borderRadius)||void 0===i?void 0:i.modalInnerComponents,background:null===(c=l.backgroundColor)||void 0===c?void 0:c.modalHoverBackground,padding:"15px 4px 15px 12px",justifyContent:"space-between"},{children:[(0,n.jsx)($ue,{criteria:e}),o&&(0,n.jsx)(Zue,{handleMoreOptionsClick:d,row:r,col:t,dropDownValues:u,setSelectedIndex:s,selectedIndex:a})]}))})})),(null===(i=t[0])||void 0===i?void 0:i.operator)&&t.length>2&&(0,n.jsxs)(rle,Object.assign({theme:l,flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderRadius:null===(c=l.borderRadius)||void 0===c?void 0:c.modalInnerComponents,padding:"8px 0px 8px 8px",gap:"25px"},{children:[(0,n.jsx)(D7,Object.assign({flexDirection:"column",gap:"8px",width:"100%"},{children:t.map(((e,t)=>{var r,i;return(0,n.jsx)(n.Fragment,{children:e.type&&(0,n.jsx)(D7,Object.assign({borderRadius:null===(r=l.borderRadius)||void 0===r?void 0:r.modalInnerComponents,background:null===(i=l.backgroundColor)||void 0===i?void 0:i.modalHoverBackground,padding:"15px 4px 15px 12px",justifyContent:"space-between",width:"100%"},{children:(0,n.jsx)($ue,{criteria:e})}))})}))})),(0,n.jsxs)(D7,{children:[t.map((e=>(0,n.jsx)(n.Fragment,{children:t.length>2&&e.operator&&!e.type&&(0,n.jsx)(tle,Object.assign({theme:l},{children:e.operator}))}))),o&&(0,n.jsx)(Zue,{handleMoreOptionsClick:d,row:r,col:0,dropDownValues:u,setSelectedIndex:s,selectedIndex:a})]})]})),e&&re.theme.borderRadius.modalInnerComponents),(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modalInnerComponents)),tle=(0,o.Ay)(B7).withConfig({displayName:"ConditionsComponent__OperatorSpan",componentId:"sc-v7lmqz-1"})(["padding:4px 8px;margin:8px 0;border-radius:",";background:",";color:",";"],(e=>{var t;return null===(t=e.theme.borderRadius)||void 0===t?void 0:t.modalInnerComponents}),(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.modalHoverBackground}),(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.modalSubHeadingText})),rle=(0,o.Ay)(D7).withConfig({displayName:"ConditionsComponent__CriteriaGroup",componentId:"sc-v7lmqz-2"})(["border:",";"],(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.modalInnerComponents})),nle=(0,o.Ay)(D7).withConfig({displayName:"ConditionsComponent__ChainIconSVG",componentId:"sc-v7lmqz-3"})(["width:20px;height:20px;svg,svg image,img{width:100%;height:100%;}"]),ile=({onSubmit:e,handlePrevious:t,onClose:r,memberList:i,handleMemberList:o,groupMembers:a,isLoading:s=!1,groupInfo:c})=>{const{fetchMemberStatus:u}=N5(),{toast:l}=P5();return(0,n.jsx)(Lue,{title:"Add More Wallets",submitButtonTitle:"Add To Group",addMemberToList:e=>pJ(void 0,void 0,void 0,(function*(){let t="";const r=yield u({chatId:c.chatId,accountId:e.wallets});t=((e,t,r,n,i)=>{let o="";return(null==n?void 0:n.participant)&&(o="This Member is Already present in the group"),Zse(e,t,"wallets")&&(o="Address is already added"),(null==t?void 0:t.length)+(null==r?void 0:r.length)>=i&&(o="No More Addresses can be added"),(null==t?void 0:t.length)>=i&&(o="No More Addresses can be added"),o})(e,i,a,r,(null==c?void 0:c.isPublic)?25e3:5e3),t?l.showMessageToast({toastTitle:"Error",toastMessage:t,toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})}):o((t=>[...t,Object.assign(Object.assign({},e),{isAdmin:!1})]))})),onClose:r,onSubmit:e,isLoading:s,handlePrevious:t,memberList:i,totalAllowedMembers:(null==c?void 0:c.isPublic)?25e3:5e3,handleMemberList:o,groupMembers:a})},ole=({fill:e})=>(0,n.jsxs)("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer"},{children:[(0,n.jsx)("path",{d:"M16 10C17.1046 10 18 9.10457 18 8C18 6.89543 17.1046 6 16 6C14.8954 6 14 6.89543 14 8C14 9.10457 14.8954 10 16 10Z",fill:e}),(0,n.jsx)("path",{d:"M16 18C17.1046 18 18 17.1046 18 16C18 14.8954 17.1046 14 16 14C14.8954 14 14 14.8954 14 16C14 17.1046 14.8954 18 16 18Z",fill:e}),(0,n.jsx)("path",{d:"M16 26C17.1046 26 18 25.1046 18 24C18 22.8954 17.1046 22 16 22C14.8954 22 14 22.8954 14 24C14 25.1046 14.8954 26 16 26Z",fill:e})]})),ale=({key:e,member:t,dropdownValues:r,selectedMemberAddress:o,setSelectedMemberAddress:a,dropdownRef:s})=>{var c,u,l,d,f,h,p;const g=(0,i.useContext)(Pae),{user:m}=P5(),[y,b]=(0,i.useState)(0);return(0,n.jsxs)(sle,Object.assign({background:(null===(c=t.address)||void 0===c?void 0:c.toLowerCase())===(null==o?void 0:o.toLowerCase())?null===(u=g.backgroundColor)||void 0===u?void 0:u.modalHoverBackground:"",id:null==t?void 0:t.address,theme:g},{children:[(0,n.jsx)(_ce,{theme:g,member:{name:null,icon:null===(d=null===(l=null==t?void 0:t.userInfo)||void 0===l?void 0:l.profile)||void 0===d?void 0:d.picture,chatId:null,recipient:t.address,abbrRecipient:s9(l8(null==t?void 0:t.address),6,!0),web3Name:null,desc:null}}),(0,n.jsxs)(D7,Object.assign({justifyContent:"flex-end",position:"relative",zIndex:"2"},{children:[Use(t)&&(0,n.jsx)(B7,Object.assign({background:"#F4DCEA",color:"#D53A94",borderRadius:"8px",padding:"6px",fontWeight:"500",fontSize:"10px"},{children:"Admin"})),l8(null==t?void 0:t.address).toLowerCase()!==l8(m.account.toLowerCase())&&r.length>0&&(0,n.jsx)(D7,Object.assign({maxWidth:"fit-content",padding:"0 0px 0 0",position:"relative",zIndex:"2",onClick:()=>{(e=>{var t;const r=null===(t=document.getElementById(e))||void 0===t?void 0:t.getBoundingClientRect();b(null==r?void 0:r.top)})(t.address),a(null==t?void 0:t.address)},style:{cursor:"pointer"}},{children:(0,n.jsx)(ole,{fill:null===(f=g.iconColor)||void 0===f?void 0:f.groupSettings})}))]})),(null==o?void 0:o.toLowerCase())==(null===(h=null==t?void 0:t.address)||void 0===h?void 0:h.toLowerCase())&&(0,n.jsx)(cle,Object.assign({style:{top:y>570?"30%":"40%"},theme:g,ref:s},{children:(0,n.jsx)(Cce,{dropdownValues:r,hoverBGColor:null===(p=g.backgroundColor)||void 0===p?void 0:p.modalHoverBackground})}))]}),e)},sle=(0,o.Ay)(D7).withConfig({displayName:"MemberProfileCard__ProfileCardItem",componentId:"sc-g1t8d9-0"})(["justify-content:space-between;padding:8px 8px;border-bottom:",";position:relative;box-sizing:border-box;width:100%;max-height:64px;align-self:stretch;display:flex;height:auto;z-index:auto;flex:1;@media (max-width:480px){max-width:100%;}"],(e=>e.theme.border.modalInnerComponents)),cle=(0,o.Ay)(D7).withConfig({displayName:"MemberProfileCard__DropdownContainer",componentId:"sc-g1t8d9-1"})(["position:absolute;left:48%;top:69%;border-radius:",";padding:14px 8px;z-index:999999999999 !important;display:flex;flex-direction:column !important;background:",";border:",";@media ","{left:27%;}@media (min-width:426px) and (max-width:1150px){left:48%;}@media (max-width:480px){left:25%;}"],(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modal),c5.mobileL),ule="REMOVE_MEMBER",lle="REMOVE_ADMIN",dle="ADD_ADMIN",fle={REMOVE_MEMBER:"Removed Member successfully",ADD_MEMBER:"Group Invitation sent",REMOVE_ADMIN:"Admin removed successfully",ADD_ADMIN:"Admin added successfully"},hle=({pendingMembers:e,setShowPendingRequests:t,setPendingMemberPaginationData:r,showPendingRequests:o,pendingMemberPaginationData:a,count:s,theme:c})=>{var u;const l=(0,i.useRef)(null),d=C9(l,"1px");return(0,i.useEffect)((()=>{if(!d||a.loading||a.finishedFetching)return;const e=a.page+1;r((t=>Object.assign(Object.assign({},t),{page:e})))}),[d]),e&&e.length?(0,n.jsxs)(mle,Object.assign({theme:c},{children:[(0,n.jsxs)(yle,Object.assign({onClick:()=>t(!o)},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"18px",color:null===(u=c.textColor)||void 0===u?void 0:u.modalSubHeadingText},{children:"Pending Requests"})),(0,n.jsx)(vle,{children:s}),(0,n.jsx)(ble,{src:Vne,width:"auto",setPosition:!o,borderRadius:"100%"})]})),(0,n.jsxs)(wle,Object.assign({flexDirection:"column",flex:"1",justifyContent:"start",borderRadius:"12px",theme:c,padding:"10px 0 0 0"},{children:[o&&e&&(null==e?void 0:e.length)>0&&e.map((e=>{var t,r,i,o;return(0,n.jsx)(gle,Object.assign({theme:c},{children:(0,n.jsx)(_ce,{theme:c,member:{name:null,icon:(null===(r=null===(t=null==e?void 0:e.userInfo)||void 0===t?void 0:t.profile)||void 0===r?void 0:r.picture)||null,chatId:null,web3Name:null,recipient:l8(null===(i=e.address)||void 0===i?void 0:i.split(":")[1]),abbrRecipient:s9(l8(null===(o=e.address)||void 0===o?void 0:o.split(":")[1]),6,!0),desc:null},customStyle:{imgHeight:"36px",imgMaxHeight:"36px",fontSize:"inherit",fontWeight:"300"}})}))})),a.loading&&(0,n.jsx)(D7,{children:(0,n.jsx)(k7,{size:"20",color:c.spinnerColor})}),(0,n.jsx)("div",{ref:l,style:{padding:"1px"}})]}))]})):null},ple=({acceptedMembers:e,setAcceptedMemberPaginationData:t,acceptedMemberPaginationData:r,accountStatus:o,chatId:a,theme:s})=>{const{toast:c}=P5(),u=(0,i.useRef)(null),[l,d]=(0,i.useState)(null),f=(0,i.useRef)(null),{addMember:h,removeMember:p,modifyLoading:g,addLoading:m,removeLoading:y,modifyParticipant:b}=B5(),v=C9(u,"1px");(0,i.useEffect)((()=>{if(!v||r.loading||r.finishedFetching)return;const e=r.page+1;t((t=>Object.assign(Object.assign({},t),{page:e})))}),[v]);const w=e=>pJ(void 0,void 0,void 0,(function*(){try{const t=yield b({memberList:[l],chatId:a,role:e});e===Q9.ADMIN&&A(t,fle[dle]),e===Q9.MEMBER&&A(t,fle[lle])}catch(ys){c.showMessageToast({toastTitle:"Error",toastMessage:"Please, try again",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})}finally{d(null)}})),A=(e,t)=>{"string"!=typeof e?c.showMessageToast({toastTitle:"Success",toastMessage:t,toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"green"})}):c.showMessageToast({toastTitle:"Error",toastMessage:"Error",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})},C={id:"dismiss_admin",title:"Dismiss as admin",icon:Due,function:()=>w(Q9.MEMBER)},E={id:"add_admin",title:"Make group admin",icon:jue,function:()=>w(Q9.ADMIN)},x={id:"remove_member",title:"Remove",icon:Oue,function:()=>{return e=Q9.MEMBER,pJ(void 0,void 0,void 0,(function*(){try{const t=yield p({memberList:[l],chatId:a,role:e});e===Q9.ADMIN&&A(t,fle[lle]),e===Q9.MEMBER&&A(t,fle[ule])}catch(ys){c.showMessageToast({toastTitle:"Error",toastMessage:"Please, try again",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})}finally{d(null)}}));var e},textColor:"#ED5858"};return H9(f,(()=>d(null))),e&&e.length?(0,n.jsxs)(wle,Object.assign({flexDirection:"column",zIndex:"2",justifyContent:"start",theme:s,padding:"10px 0 0 0"},{children:[e.map(((e,t)=>(0,n.jsx)(ale,{member:e,dropdownValues:Use(e)&&(null==o?void 0:o.role)===Q9.ADMIN.toLowerCase()?[C,x]:(null==o?void 0:o.role)===Q9.ADMIN.toLowerCase()?[E,x]:[],selectedMemberAddress:l,setSelectedMemberAddress:d,dropdownRef:f},t))),(0,n.jsx)("div",{ref:u,style:{padding:"1px"}}),r.loading&&(0,n.jsx)(D7,{children:(0,n.jsx)(k7,{size:"20",color:s.spinnerColor})})]})):null},gle=o.Ay.div.withConfig({displayName:"PendingMembers__GroupPendingMembers",componentId:"sc-1u055nf-0"})(["margin-top:3px;display:flex;flex-direction:row;width:100%;align-items:center;background:",";padding:10px 15px;box-sizing:border-box;&:last-child{border-radius:0px 0px 16px 16px;}"],(e=>e.theme.backgroundColor.modalHoverBackground)),mle=o.Ay.div.withConfig({displayName:"PendingMembers__PendingRequestWrapper",componentId:"sc-1u055nf-1"})(["width:100%;border:",";border-radius:",";padding:0px 0px;box-sizing:border-box;"],(e=>e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents)),yle=o.Ay.div.withConfig({displayName:"PendingMembers__PendingSection",componentId:"sc-1u055nf-2"})(["width:100%;display:flex;flex-direction:row;align-items:center;flex:1;cursor:pointer;padding:15px 20px 5px 20px;box-sizing:border-box;"]),ble=(0,o.Ay)(R7).withConfig({displayName:"PendingMembers__ArrowImage",componentId:"sc-1u055nf-3"})(["margin-left:auto;transform:",";"],(e=>(null==e?void 0:e.setPosition)?"rotate(0)":"rotate(180deg)")),vle=o.Ay.div.withConfig({displayName:"PendingMembers__Badge",componentId:"sc-1u055nf-4"})(["margin:0 0 0 5px;font-size:13px;background:rgb(207,28,132);padding:4px 8px;border-radius:7px;color:white;font-weight:700;"]),wle=(0,o.Ay)(D7).withConfig({displayName:"PendingMembers__ProfileSection",componentId:"sc-1u055nf-5"})(["height:fit-content;&::-webkit-scrollbar-thumb{background:transparent;border-radius:10px;}&::-webkit-scrollbar-button{height:20px;}&::-webkit-scrollbar{width:0px;}"]);const Ale=e=>{const t=e=>Object.keys(e)[0];if(!e)return[];const r=[],n=Array.isArray(e.conditions)?e.conditions[0]:e.conditions,i=t(n);if(r.push([{operator:i}]),0===n[i].length)return[];const o=n[i];for(const a of o){const e=t(a);"type"===e?r.push([a]):r.push([{operator:e},...a[e].map((e=>Object.assign({},e)))])}return r},Cle=({color:e})=>(0,n.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M9.75 0.25C7.82164 0.25 5.93657 0.821828 4.33319 1.89317C2.72982 2.96452 1.48013 4.48726 0.742179 6.26884C0.00422448 8.05042 -0.188858 10.0108 0.187348 11.9021C0.563554 13.7934 1.49215 15.5307 2.85571 16.8943C4.21927 18.2579 5.95656 19.1865 7.84787 19.5627C9.73919 19.9389 11.6996 19.7458 13.4812 19.0078C15.2627 18.2699 16.7855 17.0202 17.8568 15.4168C18.9282 13.8134 19.5 11.9284 19.5 10C19.4973 7.41498 18.4692 4.93661 16.6413 3.10872C14.8134 1.28084 12.335 0.25273 9.75 0.25ZM15.7613 12.7319C15.9318 12.8343 16.0547 13.0003 16.1029 13.1934C16.1511 13.3864 16.1206 13.5907 16.0181 13.7612C15.9157 13.9318 15.7497 14.0547 15.5566 14.1029C15.3636 14.1511 15.1593 14.1206 14.9888 14.0181L10.5 11.3247V16.1875C10.5 16.3864 10.421 16.5772 10.2803 16.7178C10.1397 16.8585 9.94892 16.9375 9.75 16.9375C9.55109 16.9375 9.36033 16.8585 9.21967 16.7178C9.07902 16.5772 9 16.3864 9 16.1875V11.3247L4.51125 14.0181C4.34069 14.1206 4.13641 14.1511 3.94337 14.1029C3.75032 14.0547 3.58432 13.9318 3.48188 13.7612C3.37944 13.5907 3.34895 13.3864 3.39713 13.1934C3.4453 13.0003 3.56819 12.8343 3.73875 12.7319L8.29219 10L3.73875 7.26813C3.56819 7.16569 3.4453 6.99968 3.39713 6.80664C3.34895 6.61359 3.37944 6.40932 3.48188 6.23875C3.58432 6.06818 3.75032 5.9453 3.94337 5.89712C4.13641 5.84895 4.34069 5.87944 4.51125 5.98187L9 8.67531V3.8125C9 3.61359 9.07902 3.42282 9.21967 3.28217C9.36033 3.14152 9.55109 3.0625 9.75 3.0625C9.94892 3.0625 10.1397 3.14152 10.2803 3.28217C10.421 3.42282 10.5 3.61359 10.5 3.8125V8.67531L14.9888 5.98187C15.0732 5.93115 15.1668 5.89756 15.2643 5.88302C15.3617 5.86848 15.4611 5.87327 15.5566 5.89712C15.6522 5.92098 15.7422 5.96342 15.8214 6.02204C15.9005 6.08065 15.9674 6.15429 16.0181 6.23875C16.0689 6.32321 16.1024 6.41683 16.117 6.51427C16.1315 6.6117 16.1267 6.71105 16.1029 6.80664C16.079 6.90222 16.0366 6.99218 15.978 7.07136C15.9193 7.15054 15.8457 7.2174 15.7613 7.26813L11.2078 10L15.7613 12.7319Z",fill:null!=e?e:"#657795"})})),Ele=({theme:e,groupInfo:t,alert:r,header:i,subheader:o})=>{const a=(e=>{if(!e)return{CHAT:[],ENTRY:[]};const[t,r]=[Ale(e.chat),Ale(e.entry)];return{CHAT:t,ENTRY:r}})(null==t?void 0:t.rules),s=K9(c5.mobileL),c=e=>{var t;return a[e].length?null===(t=a[e][0][0])||void 0===t?void 0:t.operator:null};return(0,n.jsxs)(D7,Object.assign({margin:"5px 0px 0px 0px",gap:"16px",flexDirection:"column",width:"100%"},{children:[!!Object.keys((null==t?void 0:t.rules)||{}).length&&(0,n.jsx)(xle,{theme:e,icon:(0,n.jsx)(Cle,{color:r?"#E93636":void 0}),header:null!=i?i:"Gated group",subheader:null!=o?o:"Conditions must be true to join and chat",alert:r}),(0,n.jsx)(Dle,Object.assign({overflow:"hidden auto",maxHeight:s?"46vh":"49vh",justifyContent:"start",flexDirection:"column",padding:"0 2px 0 0",theme:e},{children:Object.keys(Yue).map(((t,r)=>{var i,o,s,u,l,d;return(0,n.jsx)(n.Fragment,{children:c(t)?(0,n.jsxs)(D7,Object.assign({flexDirection:"column"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"16px",fontWeight:"500",alignSelf:"start",margin:"5px 0"},{children:null===(i=Yue[t])||void 0===i?void 0:i.heading})),(0,n.jsxs)(B7,Object.assign({fontSize:"14px",margin:"15px 0"},{children:[null===(s=Jue[null===(o=a[t][0][0])||void 0===o?void 0:o.operator])||void 0===s?void 0:s.head,(0,n.jsxs)(B7,Object.assign({color:null===(u=e.textColor)||void 0===u?void 0:u.modalSubHeadingText},{children:[" ",null===(d=Jue[null===(l=a[t][0][0])||void 0===l?void 0:l.operator])||void 0===d?void 0:d.tail]}))]})),(0,n.jsx)(D7,Object.assign({width:"100%",justifyContent:"start",flexDirection:"column"},{children:(0,n.jsx)(Xue,{moreOptions:!1,conditionData:a[t]})}))]}),r):null})}))}))]}))},xle=({theme:e,icon:t,header:r,subheader:i,handleNextInformation:o,cursor:a,alert:s})=>{var c,u;return(0,n.jsxs)(Ple,Object.assign({onClick:o,theme:e,alert:s,cursor:"pointer",justifyContent:"start"},{children:[t,(0,n.jsxs)(D7,Object.assign({cursor:a,flexDirection:"column",alignItems:"flex-start",gap:"5px"},{children:[(0,n.jsx)(B7,Object.assign({cursor:a,fontSize:"18px",textAlign:"left",color:null===(c=e.textColor)||void 0===c?void 0:c.modalHeadingText},{children:r})),(0,n.jsx)(B7,Object.assign({cursor:a,textAlign:"left",fontSize:"12px",color:null===(u=e.textColor)||void 0===u?void 0:u.modalSubHeadingText},{children:i}))]}))]}))},Sle=1,Ile=2,kle=({theme:e,groupInfo:t,chatProfileInfo:r,handleNextInformation:o,pendingMemberPaginationData:a,setPendingMemberPaginationData:s,acceptedMemberPaginationData:c,setAcceptedMemberPaginationData:u,groupMembers:l,setShowAddMoreWalletModal:d,membersCount:f})=>{var h,p,g,m,y,b,v,w,A,C;const{user:E,toast:x}=P5(),[S,I]=(0,i.useState)(null),[k,_]=(0,i.useState)(!1),[T,M]=(0,i.useState)("");K9(c5.mobileL);const{fetchMemberStatus:P}=N5();return(0,i.useEffect)((()=>{(null==E?void 0:E.account)&&(null==r?void 0:r.isGroup)&&(null==r?void 0:r.chatId)&&pJ(void 0,void 0,void 0,(function*(){var e;const t=yield P({chatId:null!==(e=null==r?void 0:r.chatId)&&void 0!==e?e:"",accountId:null==E?void 0:E.account});t&&"string"!=typeof t?I(t):x.showMessageToast({toastTitle:"Error",toastMessage:"Error in fetching member details",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})}))}),[]),(0,n.jsxs)(Ole,Object.assign({margin:"auto",width:"100%",flexDirection:"column",gap:"16px",maxHeight:(null==r?void 0:r.isGroup)?"60vh":"auto",height:(null==r?void 0:r.isGroup)?"60vh":"auto",overflow:"hidden auto",justifyContent:"start",padding:"0 2px 0 0",theme:e},{children:[(null==r?void 0:r.chatId)&&(0,n.jsxs)(Mle,{children:[(0,n.jsx)(B7,Object.assign({fontSize:"18px",color:null===(h=e.textColor)||void 0===h?void 0:h.modalHeadingText},{children:"Chat ID"})),(0,n.jsxs)(D7,Object.assign({gap:"5px",alignSelf:"start",onClick:()=>{var e;C8(null!==(e=null==r?void 0:r.chatId)&&void 0!==e?e:""),M("copied")},onMouseEnter:()=>{M("click to copy")},onMouseLeave:()=>{M("")}},{children:[(0,n.jsx)(B7,Object.assign({textAlign:"start",fontSize:"16px",fontWeight:"400",color:null===(p=e.textColor)||void 0===p?void 0:p.modalSubHeadingText},{children:s9(null!==(g=null==r?void 0:r.chatId)&&void 0!==g?g:"",8,!0)})),!!T&&(0,n.jsx)(B7,Object.assign({cursor:"pointer",position:"relative",padding:"2px 10px",color:null===(m=e.textColor)||void 0===m?void 0:m.modalSubHeadingText,fontSize:"14px",fontWeight:"400",background:null===(y=e.backgroundColor)||void 0===y?void 0:y.modalHoverBackground,borderRadius:"16px"},{children:T}))]}))]}),(null==r?void 0:r.isGroup)||(null==r?void 0:r.desc)&&(0,n.jsxs)(Mle,{children:[(0,n.jsx)(B7,Object.assign({fontSize:"18px",color:null===(b=e.textColor)||void 0===b?void 0:b.modalHeadingText},{children:(null==r?void 0:r.isGroup)?"Group Description":"Profile Description"})),(0,n.jsx)(B7,Object.assign({textAlign:"start",fontSize:"16px",fontWeight:"400",color:null===(v=e.textColor)||void 0===v?void 0:v.modalSubHeadingText},{children:null==r?void 0:r.desc}))]}),(null==r?void 0:r.isGroup)&&(0,n.jsx)(xle,{theme:e,icon:(0,n.jsx)(R7,{cursor:"default",src:(null==t?void 0:t.isPublic)?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAABACAYAAABcIPRGAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALISURBVHgB7Zp/bhJBFMffmy1o/3KP0BsUT1A4gXgCMdKmtpq2iWLjP8A/hqBJSUwLAZLiCSwnKJ7AvYF4AvuPbmS785xpU9M/dvYXS6ck80kgG97M7PvO8N78yCBkxPZ+d+0y75cttNY58CIB2QhoS5t4vhDPU/khTmPPYpNR6+UUMgBhTl7UTsoMYU+4WYRE4AQ4fRl83B3BHKQWUH3TLaLld0QT6zAfU0L+fNh6PYEUMEjB1ruTI7T4eQbOS9aQ2PlWrVuHFCQagUrj1M65vycZOR6E463OSqPGwUXcCrEF3IHzNyQSsQIxybnu1zjOkwxO9L8RBwcZXDkhnkVGYgVA3MDoYC/k3AfiXVCCGMQagWrtuI4IjYhiIwtZsxeRHrcPRbrlfgMRn4WVQ8KDfnunAxFECqiIF+aI/whpYMpTZJHq4eciI3ZKIoiVhSx4PPiw64S1E5mFVkRvqWzSeYaslCYFyjqyrmxDWcjHI4ggdATCev/G+d6cM6r8S/nEv4tHO8gu5ojQDgodgbDeJ4RmL4PlgGyDiJoqu5gjymH1QwWIQNsI/F30/qA13xLgNsP2q87V0iKY0GBXCth8e1wARYDJ3oeMIeJjhcnefN8vqOopBRCq87X3cHYGGXM580Yqm+95aQTgmsLkJJnq4zLqiDYJAlOmxSC5ADGR2ArTT1gQIpgVbbNHqjopVqPsFywKZIlHNtVy+j5hBOjGCNCNEaCbpRfwfz8gz3mA8eItwxPxFTSFO0QwhsU4E++dnE+Gn673CHh92iA37ElP1nSDE2/171OWd9368jkvoWL+T36fiYPXCiwpYl+yJ4PYhuXFNmlUN0aAbowA3RgBujECdGME6MYI0I0RoBsjQDdGgG6MAN0YAboxAnRjBOjGCNANC7lotAw4jNDP/PLSXYGETSYv1MmLdaS4q3MfkZdrpc/99s7ZPz9F/3IJqyPbAAAAAElFTkSuQmCC":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAABACAYAAAC3F09FAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAATrSURBVHgB1ZpNTxtHGMefGYMlQKr8DereequpequqmFt7qBQ+QRYFoxYaYUutIb3EuVTErYQjYlIBUZxPEPfQ9mgiJccEfwTnliMHwovBM3meta3geGY9ux6v1z8JIXaNvT/Py/7nmWVgEafwNDF1cp5iMXET/7yBPwn8SV57SZ0BawgpXlzxWLWy9XMDLMLAAiQRPz1fF6yVxYtNmP8nOwQhn+3/uVYBCwwts5J/fM+/RB+NS8YXhm2pwDLO5uPktGxV8S2+AkswyXJ7xdUSBCQGAWiLiBp+/JdgEwbff/Ptj/D61b8vIAC+ZT6K9AxsDfIYr/CdBFbvdIHBXZHJdFAh390ss/Go7t215LFk8iFr8SoO7Pr1M1mcKE7OT1IgmMMYuwUeCMkWnxRXq+ADXzKZjfI6/vLq0w/nZmYLpcLSMQzgJ2xhnKJrUt/Cx5czzS8qhdzA9+piLDOwezFY2t/yP8Uu5x9VdK2EM2Rp78FqDgzhpi+cEoI+MKk6J6XMBREhDoq/OHjRyu4kQWadwrbxlG8swxg4mlMVvKDA0ynRvLhYwi7SUJ2Ln8azYIiRzPKvO2lQtApdQIzx+zAklVIOJw1Qvg8evwWGmLUM52nVYRy8h39byledbqoa7EmaLMAAMxkpU8rDTDwDiwgA5fs1WyINBhjJ4Gzzuer4wdadQ7CIFFBXHefMLPcZyUgu/lEcboBluBQN9RlpTwZboIBdauiBPmqmaC0yfXb2HO3TQN92DBb3/1jra24SymyWGzjqn0JE4VOn70sdESIJLahlfi8rBzzNOBhBFkE964wdrogSCRQ6Wrm7q5zfnxTvVHHaWcAWegsRg7tLVwVSyAqtIlXnKA3Pzc7ehIjBY4xpowQO+oJOyCQZhw2nOzjH9XcQoajhTs1dIRwHypuWK7Sxuw0Rp2c942S3E9PxeA2PptQvZtXmzMWSbsHUrpudpCAonKVwQlJ9aRXZ+hidDv5SJ4++xdlyvnwP434B9NRxBbigE7q9sVPiwNdhtCjvhz0ymd/KDnY8k5uiZ51reXOnwCQf9TjrW1b3xhnOTNcO7hLa0UTzkOJPgr+P99wejFeaCqIg1MMwMgQJHeniDwlRoQNCYlgZguJP7XZ+V5kI3BWkgHkIIc/ZkCESnMnnK/ldZfHBLQZinmMjWANdx5aMC1Yyt73ynFfSsIFVGcIr/gyKTsNiXYYwEdJFp2EYiQxBQlibVt6ASeiy2bQuNDKZDg4KHalKrFT42y+uzWNp11q5atQyRGr6LK6/uWKt2dbNNQwZIhVGWghLhhh5/AlThnCFvOIPbY9AQMKWITzLWe72SDvP+Y4/45AhPMtZnTy3AD6FxiXj0i5n6fMc7v3M+0kLY5UhvPKc3/gzdhnCVp6LhAzhVc4ioeZFc35Q/ImMDEG7y5TndPGH8pxuZ5qIlEwHx40/GqG9B6uLujwXRRmC8tyR3zwXVRliYPz5bG62p8tFWYbwFPp0JyLqMoRnnrvOJMgQSa9yVpdJkSHa5SxNniMmScbFa3ty4mQIXfzpkZGyFehBz3GgEuqRuWpelUZdQrXJp3lO+VhjZhM3nSS/ARGCgUjrnufsbk9aeXw+LDyf55RwP9BD2uPizav/ql9/9wNuubJ030nGGxMlQ7x5+f+hSmjiWqZLV4gDS7qrIAl3sdRb+QDqbV31OTmBWAAAAABJRU5ErkJggg==",height:"24px",maxHeight:"24px",width:"auto"}),header:(null==t?void 0:t.isPublic)?"Open":"Encrypted",subheader:(null==t?void 0:t.isPublic)?"Chats are not encrypted":"Chats are end-to-end encrypted"}),(null==r?void 0:r.isGroup)&&!!Object.keys((null==t?void 0:t.rules)||{}).length&&(0,n.jsx)(xle,{cursor:"pointer",handleNextInformation:o,theme:e,icon:(0,n.jsx)(Cle,{}),header:"Gated group",subheader:"Conditions must be true to join"}),(null==r?void 0:r.isGroup)&&(null==S?void 0:S.role)===Q9.ADMIN.toLowerCase()&&(null==l?void 0:l.accepted)&&(null===(w=null==l?void 0:l.accepted)||void 0===w?void 0:w.length)<((null==t?void 0:t.isPublic)?25e3:5e3)&&(0,n.jsxs)(jle,Object.assign({theme:e,onClick:()=>d(!0)},{children:[(0,n.jsx)(R7,{cursor:"pointer",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.5 12H20.5' stroke='%23787E99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M12.5 4V20' stroke='%23787E99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",height:"18px",maxHeight:"18px",width:"auto"}),(0,n.jsx)(B7,Object.assign({cursor:"pointer",color:null===(A=e.textColor)||void 0===A?void 0:A.modalSubHeadingText,margin:"0px 14px",fontSize:"16px",fontWeight:"400"},{children:"Add more wallets"}))]})),(null==r?void 0:r.isGroup)&&(0,n.jsx)(D7,Object.assign({borderRadius:"16px",flexDirection:"column"},{children:l.loading?(0,n.jsx)(k7,{size:"40",color:e.spinnerColor}):(0,n.jsxs)(n.Fragment,{children:[l&&(null==l?void 0:l.pending)&&(null===(C=null==l?void 0:l.pending)||void 0===C?void 0:C.length)>0&&(0,n.jsx)(hle,{pendingMemberPaginationData:a,setPendingMemberPaginationData:s,pendingMembers:null==l?void 0:l.pending,setShowPendingRequests:_,showPendingRequests:k,theme:e,count:f.pending}),(0,n.jsx)(ple,{theme:e,accountStatus:S,acceptedMemberPaginationData:c,setAcceptedMemberPaginationData:u,acceptedMembers:null==l?void 0:l.accepted,chatId:t.chatId})]})}))]}))},_le=({theme:e,setModal:t,closeModalOnClickAway:r,setGroupInfo:o,groupInfo:a,chatProfileInfo:s,groupInfoModalBackground:c=k5.OVERLAY,groupInfoModalPositionType:u=_5.GLOBAL})=>{var l,d;const[f,h]=(0,i.useState)(Sle),[p,g]=(0,i.useState)([]),[m,y]=(0,i.useState)(!1),[b,v]=(0,i.useState)({participants:0,pending:0}),[w,A]=(0,i.useState)(!1);(0,i.useState)(!1);const[C,E]=(0,i.useState)({page:1,finishedFetching:!1,loading:!1,reset:!1}),[x,S]=(0,i.useState)({page:1,finishedFetching:!1,loading:!1,reset:!1}),I=K9(c5.mobileL),[k,_]=(0,i.useState)({accepted:[],pending:[],loading:!1}),{fetchMembers:T,loading:M}=N5(),{user:P,toast:j}=P5(),{addMember:D}=B5(),{fetchMembersCount:O}=N5(),{fetchUserProfile:B}=G9(),{chatAcceptStream:N,chatRejectStream:R,participantRemoveStream:L,participantLeaveStream:F,participantJoinStream:U,participantRoleChangeStream:z,groupUpdateStream:H}=P5();(0,i.useEffect)((()=>{(null==s?void 0:s.isGroup)&&Object.keys(N||{}).length>0&&N.constructor===Object&&J(N)}),[N]),(0,i.useEffect)((()=>{(null==s?void 0:s.isGroup)&&Object.keys(R||{}).length>0&&R.constructor===Object&&Y(R)}),[R]),(0,i.useEffect)((()=>{(null==s?void 0:s.isGroup)&&Object.keys(L||{}).length>0&&L.constructor===Object&&Z(L)}),[L]),(0,i.useEffect)((()=>{(null==s?void 0:s.isGroup)&&Object.keys(F||{}).length>0&&F.constructor===Object&&$(F)}),[F]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){(null==s?void 0:s.isGroup)&&Object.keys(U||{}).length>0&&U.constructor===Object&&(yield X(U))}))}),[U]),(0,i.useEffect)((()=>{(null==s?void 0:s.isGroup)&&Object.keys(H||{}).length>0&&H.constructor===Object&&te(H)}),[H]),(0,i.useEffect)((()=>{(null==s?void 0:s.isGroup)&&Object.keys(z||{}).length>0&&z.constructor===Object&&ee(z)}),[z]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(null==s?void 0:s.isGroup){const e=yield O({chatId:s.chatId});e&&v(e)}}))}),[P]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){(null==s?void 0:s.isGroup)&&Object.keys(a||{}).length&&(_((e=>Object.assign(Object.assign({},e),{loading:!0}))),yield G("pending",V),yield G("accepted",K),_((e=>Object.assign(Object.assign({},e),{loading:!1}))))}))}),[a]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){(null==s?void 0:s.isGroup)&&(null==C?void 0:C.page)>1&&(yield re(null==C?void 0:C.page,E,V))}))}),[null==C?void 0:C.page]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){(null==s?void 0:s.isGroup)&&(null==x?void 0:x.page)>1&&(yield re(null==x?void 0:x.page,S,K))}))}),[null==x?void 0:x.page]);const V=e=>pJ(void 0,void 0,void 0,(function*(){const t=yield T({chatId:a.chatId,page:e,limit:5,pending:!0});(null==t?void 0:t.members.length)||E((e=>Object.assign(Object.assign({},e),{finishedFetching:!0}))),_((e=>Object.assign(Object.assign({},e),{pending:[...e.pending,...(null==t?void 0:t.members)||[]].slice().filter(((e,t,r)=>t===r.findIndex((t=>t.address===e.address))))})))})),K=e=>pJ(void 0,void 0,void 0,(function*(){const t=yield T({chatId:a.chatId,page:e,limit:5});(null==t?void 0:t.members.length)||S((e=>Object.assign(Object.assign({},e),{finishedFetching:!0}))),_((e=>Object.assign(Object.assign({},e),{accepted:[...e.accepted,...(null==t?void 0:t.members)||[]].slice().filter(((e,t,r)=>t===r.findIndex((t=>t.address===e.address))))})))})),G=(e,t)=>pJ(void 0,void 0,void 0,(function*(){k[e].length||(yield t(1))})),q=e=>{_((t=>Object.assign(Object.assign({},t),{pending:[...k.pending].filter((t=>!e.includes(t.address))).slice().filter(((e,t,r)=>t===r.findIndex((t=>t.address===e.address))))})))},Q=e=>{_((t=>Object.assign(Object.assign({},t),{accepted:[...k.accepted].filter((t=>!e.includes(t.address))).slice().filter(((e,t,r)=>t===r.findIndex((t=>t.address===e.address))))})))},W=e=>{_((t=>Object.assign(Object.assign({},t),{accepted:[...e,...k.accepted].slice().filter(((e,t,r)=>t===r.findIndex((t=>t.address===e.address))))})))},J=e=>{var t,r;if((null===(t=null==e?void 0:e.meta)||void 0===t?void 0:t.group)&&(null==a?void 0:a.chatId)===(null==e?void 0:e.chatId)){const t=null===(r=null==k?void 0:k.pending)||void 0===r?void 0:r.find((t=>(null==t?void 0:t.address)===(null==e?void 0:e.from)));t&&(W([t]),q([null==t?void 0:t.address]))}},Y=e=>{var t;(null===(t=null==e?void 0:e.meta)||void 0===t?void 0:t.group)&&(null==a?void 0:a.chatId)===(null==e?void 0:e.chatId)&&q([null==e?void 0:e.from])},Z=e=>{(null==a?void 0:a.chatId)===(null==e?void 0:e.chatId)&&(Q(null==e?void 0:e.to),q(null==e?void 0:e.to))},$=e=>{(null==a?void 0:a.chatId)===(null==e?void 0:e.chatId)&&(Q([null==e?void 0:e.from]),q([null==e?void 0:e.from]))},X=e=>pJ(void 0,void 0,void 0,(function*(){if((null==a?void 0:a.chatId)===(null==e?void 0:e.chatId)){const t=((e,t)=>({address:e.wallets,intent:t,role:Q9.MEMBER,userInfo:{msgSent:e.msgSent,maxMsgPersisted:e.maxMsgPersisted,did:e.did,wallets:e.wallets,profile:e.profile,encryptedPrivateKey:e.encryptedPrivateKey,publicKey:e.publicKey,verificationProof:e.verificationProof,origin:e.origin}}))(yield B({profileId:null==e?void 0:e.from,user:P}),!0);W([t])}})),ee=e=>{(null==a?void 0:a.chatId)===(null==e?void 0:e.chatId)&&(e=>{const t=null==k?void 0:k.accepted.map((t=>t.address==e.to[0]?Object.assign(Object.assign({},t),{role:e.newRole}):t));_((e=>Object.assign(Object.assign({},e),{accepted:t})))})(e)},te=e=>{var t,r,n,i,s,c;if((null==a?void 0:a.chatId)===(null==e?void 0:e.chatId)){const u=a;u&&(u.groupName=null===(t=null==e?void 0:e.meta)||void 0===t?void 0:t.name,u.groupDescription=null===(r=null==e?void 0:e.meta)||void 0===r?void 0:r.description,u.groupImage=null===(n=null==e?void 0:e.meta)||void 0===n?void 0:n.image,u.groupCreator=null===(i=null==e?void 0:e.meta)||void 0===i?void 0:i.owner,u.isPublic=!(null===(s=null==e?void 0:e.meta)||void 0===s?void 0:s.private),u.rules=null===(c=null==e?void 0:e.meta)||void 0===c?void 0:c.rules,o(u))}},re=(e,t,r)=>pJ(void 0,void 0,void 0,(function*(){try{t((e=>Object.assign(Object.assign({},e),{loading:!0}))),yield r(e)}catch(ys){console.log(ys),t((e=>Object.assign(Object.assign({},e),{loading:!1})))}finally{t((e=>Object.assign(Object.assign({},e),{loading:!1})))}})),ne=()=>{h(f+1)},ie=()=>{h(f-1)},oe=()=>pJ(void 0,void 0,void 0,(function*(){try{y(!0);let e={},t={};const r=p.filter((e=>e.isAdmin)).map((e=>e.wallets)),i=p.filter((e=>!e.isAdmin)).map((e=>e.wallets));r.length&&(e=yield D({memberList:p.filter((e=>e.isAdmin)).map((e=>e.wallets)),chatId:a.chatId,role:Q9.ADMIN})),i.length&&(t=yield D({memberList:p.filter((e=>!e.isAdmin)).map((e=>e.wallets)),chatId:a.chatId,role:Q9.MEMBER})),"string"!=typeof e&&"string"!=typeof t?j.showMessageToast({toastTitle:"Success",toastMessage:"Group Invitation sent",toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"green"})}):j.showMessageToast({toastTitle:"Error",toastMessage:"Error in adding member",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})}catch(ys){console.error("Error",ys),j.showMessageToast({toastTitle:"Error",toastMessage:"Please, try again",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})}finally{y(!1),ce()}})),ae=()=>{switch(f){case Sle:return(0,n.jsx)(kle,{handleNextInformation:ne,theme:e,setModal:t,groupInfo:a,chatProfileInfo:s,setGroupInfo:o,groupMembers:k,pendingMemberPaginationData:C,setPendingMemberPaginationData:E,acceptedMemberPaginationData:x,setAcceptedMemberPaginationData:S,setShowAddMoreWalletModal:A,membersCount:b});case Ile:return(0,n.jsx)(Ele,{groupInfo:a,theme:e});default:return(0,n.jsx)(kle,{handleNextInformation:ne,theme:e,setModal:t,groupInfo:a,chatProfileInfo:s,setGroupInfo:o,groupMembers:k,pendingMemberPaginationData:C,setPendingMemberPaginationData:E,acceptedMemberPaginationData:x,setAcceptedMemberPaginationData:S,setShowAddMoreWalletModal:A,membersCount:b})}},se=()=>{A(!1)},ce=()=>{t(!1)};return s?(0,n.jsxs)(Pce,Object.assign({onClose:ce,closeonClickAway:r,modalBackground:c,modalPositionType:u},{children:[!w&&(0,n.jsxs)(D7,Object.assign({margin:"auto",width:I?"100%":"410px",flexDirection:"column",gap:"16px",padding:I?"0px auto":"0px 10px"},{children:[(0,n.jsx)(jce,{handlePrevious:2===f?ie:void 0,title:(null==s?void 0:s.isGroup)?"Group Info":"Profile Info",handleClose:ce}),(0,n.jsxs)(Tle,{children:[(0,n.jsx)(R7,{src:null!==(l=null==s?void 0:s.icon)&&void 0!==l?l:"",height:"64px",maxHeight:"64px",width:"auto",borderRadius:"16px"}),(0,n.jsx)(D7,Object.assign({flexDirection:"column",alignItems:"flex-start",gap:"5px"},{children:(0,n.jsx)(B7,Object.assign({fontSize:"20px",fontWeight:"500",color:null===(d=e.textColor)||void 0===d?void 0:d.modalHeadingText},{children:null==s?void 0:s.name}))}))]}),ae()]})),(null==s?void 0:s.isGroup)&&w&&(0,n.jsx)(ile,{onSubmit:oe,handlePrevious:se,onClose:ce,memberList:p,handleMemberList:g,groupMembers:[...k.pending,...k.accepted],isLoading:m,groupInfo:a})]})):null},Tle=o.Ay.div.withConfig({displayName:"ChatProfileInfoModal__GroupHeader",componentId:"sc-8cj9z1-0"})(["display:flex;flex-direction:row;width:100%;gap:19px;"]),Mle=o.Ay.div.withConfig({displayName:"ChatProfileInfoModal__GroupDescription",componentId:"sc-8cj9z1-1"})(["display:flex;flex-direction:column;width:100%;align-items:flex-start;gap:5px;"]),Ple=(0,o.Ay)(D7).withConfig({displayName:"ChatProfileInfoModal__PublicEncrypted",componentId:"sc-8cj9z1-2"})(["display:flex;flex-direction:row;width:100%;gap:12px;align-items:center;border:",";border-radius:",";padding:12px 16px;box-sizing:border-box;background:",";"],(e=>(null==e?void 0:e.alert)?"1px solid #E93636":e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.backgroundColor.modalHoverBackground)),jle=o.Ay.div.withConfig({displayName:"ChatProfileInfoModal__AddWalletContainer",componentId:"sc-8cj9z1-3"})(["border:",";border-radius:",";width:100%;padding:20px 16px;box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;cursor:pointer;align-items:center;"],(e=>e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents)),Dle=(0,o.Ay)(D7).withConfig({displayName:"ChatProfileInfoModal__ConditionSection",componentId:"sc-8cj9z1-4"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar-button{height:20px;}&::-webkit-scrollbar{width:4px;}"],(e=>e.theme.scrollbarColor)),Ole=(0,o.Ay)(D7).withConfig({displayName:"ChatProfileInfoModal__ScrollSection",componentId:"sc-8cj9z1-5"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar-button{height:40px;}&::-webkit-scrollbar{width:4px;}"],(e=>e.theme.scrollbarColor));var Ble="data:image/svg+xml,%3csvg width='20' height='22' viewBox='0 0 20 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 2.5C8 2.10444 8.1173 1.71776 8.33706 1.38886C8.55682 1.05996 8.86918 0.803617 9.23463 0.652242C9.60009 0.500867 10.0022 0.46126 10.3902 0.53843C10.7781 0.615601 11.1345 0.806082 11.4142 1.08579C11.6939 1.36549 11.8844 1.72186 11.9616 2.10982C12.0387 2.49778 11.9991 2.89992 11.8478 3.26537C11.6964 3.63082 11.44 3.94318 11.1111 4.16294C10.7822 4.3827 10.3956 4.5 10 4.5C9.46957 4.5 8.96086 4.28929 8.58579 3.91421C8.21072 3.53914 8 3.03043 8 2.5ZM10 9C9.60444 9 9.21776 9.1173 8.88886 9.33706C8.55996 9.55682 8.30362 9.86918 8.15224 10.2346C8.00087 10.6001 7.96126 11.0022 8.03843 11.3902C8.1156 11.7781 8.30608 12.1345 8.58579 12.4142C8.86549 12.6939 9.22186 12.8844 9.60982 12.9616C9.99778 13.0387 10.3999 12.9991 10.7654 12.8478C11.1308 12.6964 11.4432 12.44 11.6629 12.1111C11.8827 11.7822 12 11.3956 12 11C12 10.4696 11.7893 9.96086 11.4142 9.58579C11.0391 9.21072 10.5304 9 10 9ZM10 17.5C9.60444 17.5 9.21776 17.6173 8.88886 17.8371C8.55996 18.0568 8.30362 18.3692 8.15224 18.7346C8.00087 19.1001 7.96126 19.5022 8.03843 19.8902C8.1156 20.2781 8.30608 20.6345 8.58579 20.9142C8.86549 21.1939 9.22186 21.3844 9.60982 21.4616C9.99778 21.5387 10.3999 21.4991 10.7654 21.3478C11.1308 21.1964 11.4432 20.94 11.6629 20.6111C11.8827 20.2822 12 19.8956 12 19.5C12 18.9696 11.7893 18.4609 11.4142 18.0858C11.0391 17.7107 10.5304 17.5 10 17.5Z' fill='%23787E99'/%3e%3c/svg%3e";const Nle=({chatId:e,closeChatProfileInfoModalOnClickAway:t,groupInfoModalBackground:r=k5.OVERLAY,groupInfoModalPositionType:o=_5.GLOBAL,chatProfileRightHelperComponent:a=null,chatProfileLeftHelperComponent:s=null})=>{var c,u,l,d,f,h;const p=(0,i.useContext)(Pae),{user:g}=P5(),[m,y]=(0,i.useState)(!1),{fetchChat:b}=O5(),{getGroupByIDnew:v}=uce(),{fetchProfileInfo:w}=r8(),[A,C]=(0,i.useState)({loading:!1,profile:{name:null,icon:null,chatId:null,recipient:null,abbrRecipient:null,web3Name:null,desc:null,isGroup:null},groupInfo:null}),E=(0,i.useRef)(null),[x,S]=(0,i.useState)(!1);H9(E,(()=>{y(!1)}));const I=e=>{if(e.length<=15)return e;return`${e.slice(0,6)}...${e.slice(-6)}`};return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var t;if(g&&e&&""!==e&&!A.loading){C((e=>Object.assign(Object.assign({},e),{loading:!0})));try{const r=yield O8(e,g),n=yield b({chatId:r});if(n){let i,o={};if(n.meta&&n.meta.group)i=yield v({groupId:r}),i&&(o.name=i.groupName,o.icon=i.groupImage,o.chatId=n.chatId,o.recipient=r,o.abbrRecipient=I(r),o.desc=i.groupDescription,o.isGroup=!0);else{const i=yield O8(n.recipient,g);console.debug("UIWeb::ChatProfile::user.chat.info fetched",n,i);try{const r=yield w({recipient:i});if(!r)throw new Error("UIWeb::ChatProfile::user.profile.info fetch error, possible push user does not exist.");console.debug("UIWeb::ChatProfile::user.profile.info fetched",r),o.name=r.name,o.icon=r.picture,o.chatId=n.chatId,o.recipient=i,o.abbrRecipient=I(i),o.desc=null===(t=r.profile)||void 0===t?void 0:t.desc,o.isGroup=!1,o.web3Name=N8(e)}catch(ys){console.warn("UIWeb::ChatProfile::user.profile.info fetch error, possible push user does not exist.",ys),o.name="",o.icon=null,o.chatId=r,o.recipient=i,o.web3Name=N8(e),o.abbrRecipient=I(i),o.desc="",o.isGroup=!1}o.recipient&&!o.web3Name&&(e=>{pJ(void 0,void 0,void 0,(function*(){console.debug("UIWeb::ChatProfile::setupWeb3Name sending address for resolution",e);const t=yield d8(e,null==g?void 0:g.env);console.debug("UIWeb::ChatProfile::setupWeb3Name got result as ",e,t),C((e=>Object.assign(Object.assign({},e),{profile:Object.assign(Object.assign({},e.profile),{web3Name:t})})))}))})(o.recipient)}C({loading:!1,profile:o,groupInfo:i})}else console.error("UIWeb::ChatProfile::ChatInfo is null")}catch(ys){console.error("UIWeb::ChatProfile::Error",ys)}}}))}),[e,g]),e?(0,n.jsxs)(Rle,Object.assign({theme:p},{children:[(0,n.jsxs)(Lle,{children:[s&&(0,n.jsx)(D7,Object.assign({cursor:"pointer",flex:"none",maxHeight:"1.75rem",overflow:"hidden",justifyContent:"center",alignSelf:"center"},{children:s})),(0,n.jsx)(_ce,{theme:p,member:{icon:A.profile.icon,name:A.profile.name,chatId:A.profile.chatId,recipient:A.profile.recipient,abbrRecipient:A.profile.abbrRecipient,web3Name:A.profile.web3Name,desc:A.profile.desc},copy:!!A.profile.recipient,customStyle:{fontSize:null===(c=null==p?void 0:p.fontWeight)||void 0===c?void 0:c.chatProfileText,textColor:null===(u=null==p?void 0:p.textColor)||void 0===u?void 0:u.chatProfileText},loading:A.loading||""===A.profile.recipient||""===A.profile.icon})]}),(0,n.jsxs)(Lle,Object.assign({zIndex:"unset",flexDirection:"row",gap:"10px",margin:"0 10px 0 auto",alignSelf:"center"},{children:[a&&!A.groupInfo&&(0,n.jsx)(D7,Object.assign({cursor:"pointer",maxHeight:"1.75rem",overflow:"hidden",flex:"none"},{children:a})),!!Object.keys((null===(l=A.groupInfo)||void 0===l?void 0:l.rules)||{}).length&&(0,n.jsx)(M7,Object.assign({content:"Token Gated Group"},{children:(0,n.jsx)(Aae,{size:20,color:null===(d=null==p?void 0:p.iconColor)||void 0===d?void 0:d.subtleColor})})),!!(null===(f=A.groupInfo)||void 0===f?void 0:f.isPublic)&&(0,n.jsx)(M7,Object.assign({content:"Public Group"},{children:(0,n.jsx)(Cae,{size:{height:20},color:null===(h=null==p?void 0:p.iconColor)||void 0===h?void 0:h.subtleColor})})),!A.loading&&(0,n.jsxs)(Fle,Object.assign({onClick:()=>y(!0)},{children:[(0,n.jsx)(R7,{src:Ble,height:"21px",maxHeight:"32px",width:"auto",cursor:"pointer"}),m&&(0,n.jsx)(Ule,Object.assign({theme:p,ref:E},{children:(0,n.jsxs)(zle,Object.assign({cursor:"pointer",onClick:()=>S(!0)},{children:[(0,n.jsx)(R7,{src:"data:image/svg+xml,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M16 28C22.6274 28 28 22.6274 28 16C28 9.37258 22.6274 4 16 4C9.37258 4 4 9.37258 4 16C4 22.6274 9.37258 28 16 28Z' stroke='%23787E99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M16 15V22' stroke='%23787E99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M15.75 12C16.5784 12 17.25 11.3284 17.25 10.5C17.25 9.67157 16.5784 9 15.75 9C14.9216 9 14.25 9.67157 14.25 10.5C14.25 11.3284 14.9216 12 15.75 12Z' fill='%23787E99'/%3e%3c/svg%3e",height:"21px",maxHeight:"21px",width:"auto",cursor:"pointer"}),(0,n.jsx)(Hle,Object.assign({cursor:"pointer"},{children:A.groupInfo?"Group Info":"User Info"}))]}))}))]}))]})),x&&(0,pI.createPortal)((0,n.jsx)(_le,{theme:p,setModal:S,closeModalOnClickAway:t,groupInfo:A.groupInfo,chatProfileInfo:A.profile,setGroupInfo:e=>C((t=>Object.assign(Object.assign({},t),{mutatedGroupInfo:e}))),groupInfoModalBackground:r,groupInfoModalPositionType:o}),document.body)]})):null},Rle=(0,o.Ay)(D7).withConfig({displayName:"ChatProfile__Container",componentId:"sc-1z0n7or-0"})(["width:auto;max-width:100%;background:",";border:",";border-radius:",";display:flex;flex-direction:row;flex:1;align-items:center;padding:6px;box-sizing:border-box;align-self:stretch;"],(e=>e.theme.backgroundColor.chatProfileBackground),(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.chatProfile}),(e=>{var t;return null===(t=e.theme.borderRadius)||void 0===t?void 0:t.chatProfile})),Lle=(0,o.Ay)(D7).withConfig({displayName:"ChatProfile__AddonComponentSection",componentId:"sc-1z0n7or-1"})(["gap:10px;@media ","{gap:5px;}"],c5.mobileL),Fle=o.Ay.div.withConfig({displayName:"ChatProfile__ImageItem",componentId:"sc-1z0n7or-2"})(["position:relative;"]),Ule=o.Ay.div.withConfig({displayName:"ChatProfile__DropDownBar",componentId:"sc-1z0n7or-3"})(["position:absolute;top:30px;left:-130px;cursor:pointer;display:block;min-width:140px;color:rgb(101,119,149);background:",";border:",";z-index:10;border-radius:",";"],(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents)),zle=(0,o.Ay)(B7).withConfig({displayName:"ChatProfile__DropDownItem",componentId:"sc-1z0n7or-5"})(["display:flex;flex-direction:row;align-items:center;gap:8px;padding:10px 16px;border-radius:16px;z-index:3000000;width:100%;"]),Hle=(0,o.Ay)(B7).withConfig({displayName:"ChatProfile__TextItem",componentId:"sc-1z0n7or-6"})(["white-space:nowrap;overflow:hidden;"]),Vle=({chat:e,background:t,color:r,previewMode:o,activeMode:a})=>{var s,c,u,l,d,f;const h=(0,i.useContext)(Pae),p=(e=>{try{return JSON.parse(e)}catch(ys){return console.error("UIWeb::components::ChatViewBubble::FileCard::error while parsing image",ys),{name:"Unable to load file",content:"",size:0,type:""}}})("object"==typeof e.messageObj?null!==(c=null===(s=e.messageObj)||void 0===s?void 0:s.content)&&void 0!==c?c:"":e.messageObj);return(0,n.jsxs)(D7,Object.assign({alignSelf:"start",maxWidth:o?"auto":"512px",background:t,borderRadius:null===(u=h.borderRadius)||void 0===u?void 0:u.chatBubbleContentBorderRadius,justifyContent:"space-between",padding:null===(l=h.padding)||void 0===l?void 0:l.chatBubbleContentPadding,margin:null===(d=h.margin)||void 0===d?void 0:d.chatBubbleContentMargin,gap:"15px",width:o?"fill-available":"-webkit-fit-content"},{children:[(0,n.jsx)(R7,{src:q4(null===(f=p.name)||void 0===f?void 0:f.split(".").slice(-1)[0]),alt:"extension icon",width:"20px",height:"20px"}),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",flex:o?"1":"auto",alignItems:o?"flex-start":"center",gap:"5px"},{children:[(0,n.jsx)(B7,Object.assign({color:r,fontSize:"15px"},{children:s9(p.name,11)})),(0,n.jsx)(B7,Object.assign({color:r,fontSize:"12px"},{children:u9(p.size)}))]})),(0,n.jsx)(Kle,Object.assign({href:p.content,target:"_blank",rel:"noopener noreferrer",download:!0},{children:(0,n.jsx)(Ty,{color:r})}))]}))},Kle=o.Ay.a.withConfig({displayName:"FileCard__FileDownloadIconAnchor",componentId:"sc-10s9z11-0"})(["font-size:20px;"]),Gle=({type:e})=>{var t,r;const o=(0,i.useContext)(Pae);return(0,n.jsx)(B7,Object.assign({width:"auto",alignSelf:"start",textAlign:"left",lineHeight:"1.4em",fontSize:"10px",fontWeight:"500",padding:"4px 8px",borderRadius:"8px",textTransform:"uppercase",letterSpacing:"1.2px",color:null===(t=o.textColor)||void 0===t?void 0:t.chatSentBubbleText,background:null===(r=o.backgroundColor)||void 0===r?void 0:r.chatPreviewTagBackground},{children:e}))},qle=({chat:e,background:t="transparent",color:r="inherit",previewMode:o=!1,activeMode:a=!1})=>{var s,c,u;const l=(0,i.useContext)(Pae),d="object"==typeof e.messageObj?null!==(c=null===(s=e.messageObj)||void 0===s?void 0:s.content)&&void 0!==c?c:"":e.messageObj;return(0,n.jsxs)(D7,Object.assign({maxWidth:o?"auto":"512px",width:"fill-available",justifyContent:"flex-start",background:o?"transparent":t,color:r,gap:"0px"},{children:[(0,n.jsx)(D7,Object.assign({background:"white",borderRadius:"12px",overflow:"hidden",margin:null===(u=l.margin)||void 0===u?void 0:u.chatBubbleContentMargin,maxWidth:o?"64px":"auto",maxHeight:o?"64px":"auto"},{children:(0,n.jsx)(R7,{src:d,alt:"",width:"100%"})})),o&&(0,n.jsx)(D7,Object.assign({margin:"8px 0px 0px 0px"},{children:(0,n.jsx)(Gle,{type:"Image"})}))]}))},Qle=e=>{var t,r;return null!==(r=null===(t=(e=>{try{return JSON.parse(e)}catch(ys){return console.error("UIWeb::components::ChatViewBubble::ImageCard::error while parsing image",ys),null}})(e))||void 0===t?void 0:t.content)&&void 0!==r?r:""},Wle=({chat:e,background:t="transparent",color:r="inherit",previewMode:o=!1,activeMode:a=!1})=>{var s,c,u;const l=(0,i.useContext)(Pae),d="object"==typeof e.messageObj?null!==(c=null===(s=e.messageObj)||void 0===s?void 0:s.content)&&void 0!==c?c:"":e.messageObj;return(0,n.jsxs)(D7,Object.assign({maxWidth:o?"auto":"512px",width:"fill-available",justifyContent:"space-between",background:o?"transparent":t,color:r,gap:"0px"},{children:[o&&(0,n.jsx)(D7,Object.assign({margin:"8px",alignSelf:"center"},{children:(0,n.jsx)(Gle,{type:"Image"})})),(0,n.jsx)(D7,Object.assign({background:"white",borderRadius:"12px",overflow:"hidden",margin:null===(u=l.margin)||void 0===u?void 0:u.chatBubbleContentMargin,maxWidth:o?"64px":"auto",maxHeight:o?"64px":"auto"},{children:(0,n.jsx)(R7,{src:Qle(d),alt:"",width:"100%"})}))]}))};var Jle=VY.charAt,Yle=OW,Zle=pG,$le=JQ,Xle=YQ,ede="String Iterator",tde=Zle.set,rde=Zle.getterFor(ede);$le(String,"String",(function(e){tde(this,{type:ede,string:Yle(e),index:0})}),(function(){var e,t=rde(this),r=t.string,n=t.index;return n>=r.length?Xle(void 0,!0):(e=Jle(r,n),t.index+=e.length,Xle(e,!1))}));var nde=uz,ide=NH,ode=IH("iterator"),ade=!nde((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),!t.size&&!ide||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[ode]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("https://a#\u0431").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})),sde=OH,cde=i3,ude=m0,lde=QH,dde=Wz,fde=function(e,t,r,n){try{return n?t(sde(r)[0],r[1]):t(r)}catch(ys){cde(e,"throw",ys)}},hde=z2,pde=i0,gde=YV,mde=I9,yde=e3,bde=Q2,vde=Array,wde=gz,Ade=2147483647,Cde=/[^\0-\u007E]/,Ede=/[.\u3002\uFF0E\uFF61]/g,xde="Overflow: input needs wider integers to process",Sde=RangeError,Ide=wde(Ede.exec),kde=Math.floor,_de=String.fromCharCode,Tde=wde("".charCodeAt),Mde=wde([].join),Pde=wde([].push),jde=wde("".replace),Dde=wde("".split),Ode=wde("".toLowerCase),Bde=function(e){return e+22+75*(e<26)},Nde=function(e,t,r){var n=0;for(e=r?kde(e/700):e>>1,e+=kde(e/t);e>455;)e=kde(e/35),n+=36;return kde(n+36*e/(e+38))},Rde=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r=55296&&i<=56319&&r=o&&nkde((Ade-a)/d))throw new Sde(xde);for(a+=(l-o)*d,o=l,r=0;rAde)throw new Sde(xde);if(n===o){for(var f=a,h=36;;){var p=h<=s?1:h>=s+26?26:h-s;if(fi;){if(t=+arguments[i++],Ude(t,1114111)!==t)throw new zde(t+" is not a valid code point");r[i]=t<65536?Hde(t):Hde(55296+((t-=65536)>>10),t%1024+56320)}return Kde(r,"")}});var Gde=cq,qde=Vq,Qde=Dz,Wde=Y0,Jde=YH,Yde=QH,Zde=gz,$de=NH,Xde=ade,efe=cq,tfe=DX,rfe=function(e,t,r){for(var n in t)Gde(e,n,t[n],r);return e},nfe=dQ,ife=bQ,ofe=pG,afe=zX,sfe=_H,cfe=Zz,ufe=m0,lfe=PW,dfe=OH,ffe=MH,hfe=OW,pfe=RK,gfe=ZK,mfe=e3,yfe=Q2,bfe=YQ,vfe=b0,wfe=n$,Afe=IH("iterator"),Cfe="URLSearchParams",Efe=Cfe+"Iterator",xfe=ofe.set,Sfe=ofe.getterFor(Cfe),Ife=ofe.getterFor(Efe),kfe=Wde("fetch"),_fe=Wde("Request"),Tfe=Wde("Headers"),Mfe=_fe&&_fe.prototype,Pfe=Tfe&&Tfe.prototype,jfe=Qde.TypeError,Dfe=Qde.encodeURIComponent,Ofe=String.fromCharCode,Bfe=Jde("String","fromCodePoint"),Nfe=parseInt,Rfe=Zde("".charAt),Lfe=Zde([].join),Ffe=Zde([].push),Ufe=Zde("".replace),zfe=Zde([].shift),Hfe=Zde([].splice),Vfe=Zde("".split),Kfe=Zde("".slice),Gfe=Zde(/./.exec),qfe=/\+/g,Qfe=/^[0-9a-f]+$/i,Wfe=function(e,t){var r=Kfe(e,t,t+2);return Gfe(Qfe,r)?Nfe(r,16):NaN},Jfe=function(e){for(var t=0,r=128;r>0&&e&r;r>>=1)t++;return t},Yfe=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},Zfe=function(e){for(var t=(e=Ufe(e,qfe," ")).length,r="",n=0;nt){r+="%",n++;continue}var o=Wfe(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var a=Jfe(o);if(0===a)i=Ofe(o);else{if(1===a||a>4){r+="\ufffd",n++;continue}for(var s=[o],c=1;ct||"%"!==Rfe(e,n));){var u=Wfe(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;Ffe(s,u),n+=2,c++}if(s.length!==a){r+="\ufffd";continue}var l=Yfe(s);null===l?r+="\ufffd":i=Bfe(l)}}r+=i,n++}return r},$fe=/[!'()~]|%20/g,Xfe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ehe=function(e){return Xfe[e]},the=function(e){return Ufe(Dfe(e),$fe,ehe)},rhe=ife((function(e,t){xfe(this,{type:Efe,target:Sfe(e).entries,index:0,kind:t})}),Cfe,(function(){var e=Ife(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,bfe(void 0,!0);var n=t[r];switch(e.kind){case"keys":return bfe(n.key,!1);case"values":return bfe(n.value,!1)}return bfe([n.key,n.value],!1)}),!0),nhe=function(e){this.entries=[],this.url=null,void 0!==e&&(ffe(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Rfe(e,0)?Kfe(e,1):e:hfe(e)))};nhe.prototype={type:Cfe,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,c=this.entries,u=yfe(e);if(u)for(r=(t=mfe(e,u)).next;!(n=Yde(r,t)).done;){if(o=(i=mfe(dfe(n.value))).next,(a=Yde(o,i)).done||(s=Yde(o,i)).done||!Yde(o,i).done)throw new jfe("Expected sequence with length 2");Ffe(c,{key:hfe(a.value),value:hfe(s.value)})}else for(var l in e)cfe(e,l)&&Ffe(c,{key:l,value:hfe(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=Vfe(e,"&"),o=0;o0?arguments[0]:void 0));$de||(this.size=e.entries.length)},ohe=ihe.prototype;if(rfe(ohe,{append:function(e,t){var r=Sfe(this);vfe(arguments.length,2),Ffe(r.entries,{key:hfe(e),value:hfe(t)}),$de||this.length++,r.updateURL()},delete:function(e){for(var t=Sfe(this),r=vfe(arguments.length,1),n=t.entries,i=hfe(e),o=r<2?void 0:arguments[1],a=void 0===o?o:hfe(o),s=0;st.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Sfe(this).entries,n=ufe(e,arguments.length>1?arguments[1]:void 0),i=0;i1?che(arguments[1]):{})}}),sfe(_fe)){var uhe=function(e){return afe(this,Mfe),new _fe(e,arguments.length>1?che(arguments[1]):{})};Mfe.constructor=uhe,uhe.prototype=Mfe,qde({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:uhe})}}var lhe,dhe=Vq,fhe=NH,hhe=ade,phe=Dz,ghe=m0,mhe=gz,yhe=cq,bhe=DX,vhe=zX,whe=Zz,Ahe=CW,Che=function(e){var t=dde(e),r=pde(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=ude(i,n>2?arguments[2]:void 0));var a,s,c,u,l,d,f=bde(t),h=0;if(!f||this===vde&&hde(f))for(a=gde(t),s=r?new this(a):vde(a);a>h;h++)d=o?i(t[h],h):t[h],mde(s,h,d);else for(s=r?new this:[],l=(u=yde(t,f)).next;!(c=lde(l,u)).done;h++)d=o?fde(u,i,[c.value,h],!0):c.value,mde(s,h,d);return s.length=h,s},Ehe=XZ,xhe=VY.codeAt,She=function(e){var t,r,n=[],i=Dde(jde(Ode(e),Ede,"."),".");for(t=0;t?@[\\\]^|]/,upe=/[\0\t\n\r #/:<>?@[\\\]^|]/,lpe=/^[\u0000-\u0020]+/,dpe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,fpe=/[\t\n\r]/g,hpe=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)Zhe(t,e%256),e=Lhe(e/256);return Hhe(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=Vhe(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ppe={},gpe=Ahe({},ppe,{" ":1,'"':1,"<":1,">":1,"`":1}),mpe=Ahe({},gpe,{"#":1,"?":1,"{":1,"}":1}),ype=Ahe({},mpe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),bpe=function(e,t){var r=xhe(e,0);return r>32&&r<127&&!whe(t,e)?e:encodeURIComponent(e)},vpe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},wpe=function(e,t){var r;return 2===e.length&&zhe(tpe,Uhe(e,0))&&(":"===(r=Uhe(e,1))||!t&&"|"===r)},Ape=function(e){var t;return e.length>1&&wpe(Jhe(e,0,2))&&(2===e.length||"/"===(t=Uhe(e,2))||"\\"===t||"?"===t||"#"===t)},Cpe=function(e){return"."===e||"%2e"===Yhe(e)},Epe={},xpe={},Spe={},Ipe={},kpe={},_pe={},Tpe={},Mpe={},Ppe={},jpe={},Dpe={},Ope={},Bpe={},Npe={},Rpe={},Lpe={},Fpe={},Upe={},zpe={},Hpe={},Vpe={},Kpe=function(e,t,r){var n,i,o,a=Ihe(e);if(t){if(i=this.parse(a))throw new Nhe(i);this.searchParams=null}else{if(void 0!==r&&(n=new Kpe(r,!0)),i=this.parse(a,null,n))throw new Nhe(i);(o=Ohe(new Dhe)).bindURL(this),this.searchParams=o}};Kpe.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,c=this,u=t||Epe,l=0,d="",f=!1,h=!1,p=!1;for(e=Ihe(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=qhe(e,lpe,""),e=qhe(e,dpe,"$1")),e=qhe(e,fpe,""),n=Che(e);l<=n.length;){switch(i=n[l],u){case Epe:if(!i||!zhe(tpe,i)){if(t)return $he;u=Spe;continue}d+=Yhe(i),u=xpe;break;case xpe:if(i&&(zhe(rpe,i)||"+"===i||"-"===i||"."===i))d+=Yhe(i);else{if(":"!==i){if(t)return $he;d="",u=Spe,l=0;continue}if(t&&(c.isSpecial()!==whe(vpe,d)||"file"===d&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&vpe[c.scheme]===c.port&&(c.port=null));d="","file"===c.scheme?u=Npe:c.isSpecial()&&r&&r.scheme===c.scheme?u=Ipe:c.isSpecial()?u=Mpe:"/"===n[l+1]?(u=kpe,l++):(c.cannotBeABaseURL=!0,Ghe(c.path,""),u=zpe)}break;case Spe:if(!r||r.cannotBeABaseURL&&"#"!==i)return $he;if(r.cannotBeABaseURL&&"#"===i){c.scheme=r.scheme,c.path=Ehe(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,u=Vpe;break}u="file"===r.scheme?Npe:_pe;continue;case Ipe:if("/"!==i||"/"!==n[l+1]){u=_pe;continue}u=Ppe,l++;break;case kpe:if("/"===i){u=jpe;break}u=Upe;continue;case _pe:if(c.scheme=r.scheme,i===lhe)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Ehe(r.path),c.query=r.query;else if("/"===i||"\\"===i&&c.isSpecial())u=Tpe;else if("?"===i)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Ehe(r.path),c.query="",u=Hpe;else{if("#"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Ehe(r.path),c.path.length--,u=Upe;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Ehe(r.path),c.query=r.query,c.fragment="",u=Vpe}break;case Tpe:if(!c.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,u=Upe;continue}u=jpe}else u=Ppe;break;case Mpe:if(u=Ppe,"/"!==i||"/"!==Uhe(d,l+1))continue;l++;break;case Ppe:if("/"!==i&&"\\"!==i){u=jpe;continue}break;case jpe:if("@"===i){f&&(d="%40"+d),f=!0,o=Che(d);for(var g=0;g65535)return epe;c.port=c.isSpecial()&&b===vpe[c.scheme]?null:b,d=""}if(t)return;u=Fpe;continue}return epe}d+=i;break;case Npe:if(c.scheme="file","/"===i||"\\"===i)u=Rpe;else{if(!r||"file"!==r.scheme){u=Upe;continue}switch(i){case lhe:c.host=r.host,c.path=Ehe(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=Ehe(r.path),c.query="",u=Hpe;break;case"#":c.host=r.host,c.path=Ehe(r.path),c.query=r.query,c.fragment="",u=Vpe;break;default:Ape(Hhe(Ehe(n,l),""))||(c.host=r.host,c.path=Ehe(r.path),c.shortenPath()),u=Upe;continue}}break;case Rpe:if("/"===i||"\\"===i){u=Lpe;break}r&&"file"===r.scheme&&!Ape(Hhe(Ehe(n,l),""))&&(wpe(r.path[0],!0)?Ghe(c.path,r.path[0]):c.host=r.host),u=Upe;continue;case Lpe:if(i===lhe||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&wpe(d))u=Upe;else if(""===d){if(c.host="",t)return;u=Fpe}else{if(a=c.parseHost(d))return a;if("localhost"===c.host&&(c.host=""),t)return;d="",u=Fpe}continue}d+=i;break;case Fpe:if(c.isSpecial()){if(u=Upe,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==lhe&&(u=Upe,"/"!==i))continue}else c.fragment="",u=Vpe;else c.query="",u=Hpe;break;case Upe:if(i===lhe||"/"===i||"\\"===i&&c.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(s=Yhe(s=d))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"===i||"\\"===i&&c.isSpecial()||Ghe(c.path,"")):Cpe(d)?"/"===i||"\\"===i&&c.isSpecial()||Ghe(c.path,""):("file"===c.scheme&&!c.path.length&&wpe(d)&&(c.host&&(c.host=""),d=Uhe(d,0)+":"),Ghe(c.path,d)),d="","file"===c.scheme&&(i===lhe||"?"===i||"#"===i))for(;c.path.length>1&&""===c.path[0];)Qhe(c.path);"?"===i?(c.query="",u=Hpe):"#"===i&&(c.fragment="",u=Vpe)}else d+=bpe(i,mpe);break;case zpe:"?"===i?(c.query="",u=Hpe):"#"===i?(c.fragment="",u=Vpe):i!==lhe&&(c.path[0]+=bpe(i,ppe));break;case Hpe:t||"#"!==i?i!==lhe&&("'"===i&&c.isSpecial()?c.query+="%27":c.query+="#"===i?"%23":bpe(i,ppe)):(c.fragment="",u=Vpe);break;case Vpe:i!==lhe&&(c.fragment+=bpe(i,gpe))}l++}},parseHost:function(e){var t,r,n;if("["===Uhe(e,0)){if("]"!==Uhe(e,e.length-1))return Xhe;if(t=function(e){var t,r,n,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,d=0,f=function(){return Uhe(e,d)};if(":"===f()){if(":"!==Uhe(e,1))return;d+=2,l=++u}for(;f();){if(8===u)return;if(":"!==f()){for(t=r=0;r<4&&zhe(spe,f());)t=16*t+Rhe(f(),16),d++,r++;if("."===f()){if(0===r)return;if(d-=r,u>6)return;for(n=0;f();){if(i=null,n>0){if(!("."===f()&&n<4))return;d++}if(!zhe(npe,f()))return;for(;zhe(npe,f());){if(o=Rhe(f(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}c[u]=256*c[u]+i,2!=++n&&4!==n||u++}if(4!==n)return;break}if(":"===f()){if(d++,!f())return}else if(f())return;c[u++]=t}else{if(null!==l)return;d++,l=++u}}if(null!==l)for(a=u-l,u=7;0!==u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!==u)return;return c}(Jhe(e,1,-1)),!t)return Xhe;this.host=t}else if(this.isSpecial()){if(e=She(e),zhe(cpe,e))return Xhe;if(t=function(e){var t,r,n,i,o,a,s,c=Whe(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n1&&"0"===Uhe(i,0)&&(o=zhe(ipe,i)?16:8,i=Jhe(i,8===o?1:2)),""===i)a=0;else{if(!zhe(10===o?ape:8===o?ope:spe,i))return e;a=Rhe(i,o)}Ghe(r,a)}for(n=0;n=Fhe(256,5-t))return null}else if(a>255)return null;for(s=Khe(r),n=0;n1?arguments[1]:void 0,n=Phe(t,new Kpe(e,!1,r));fhe||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},qpe=Gpe.prototype,Qpe=function(e,t){return{get:function(){return jhe(this)[e]()},set:t&&function(e){return jhe(this)[t](e)},configurable:!0,enumerable:!0}};if(fhe&&(bhe(qpe,"href",Qpe("serialize","setHref")),bhe(qpe,"origin",Qpe("getOrigin")),bhe(qpe,"protocol",Qpe("getProtocol","setProtocol")),bhe(qpe,"username",Qpe("getUsername","setUsername")),bhe(qpe,"password",Qpe("getPassword","setPassword")),bhe(qpe,"host",Qpe("getHost","setHost")),bhe(qpe,"hostname",Qpe("getHostname","setHostname")),bhe(qpe,"port",Qpe("getPort","setPort")),bhe(qpe,"pathname",Qpe("getPathname","setPathname")),bhe(qpe,"search",Qpe("getSearch","setSearch")),bhe(qpe,"searchParams",Qpe("getSearchParams")),bhe(qpe,"hash",Qpe("getHash","setHash"))),yhe(qpe,"toJSON",(function(){return jhe(this).serialize()}),{enumerable:!0}),yhe(qpe,"toString",(function(){return jhe(this).serialize()}),{enumerable:!0}),Bhe){var Wpe=Bhe.createObjectURL,Jpe=Bhe.revokeObjectURL;Wpe&&yhe(Gpe,"createObjectURL",ghe(Wpe,Bhe)),Jpe&&yhe(Gpe,"revokeObjectURL",ghe(Jpe,Bhe))}khe(Gpe,"URL"),dhe({global:!0,constructor:!0,forced:!hhe,sham:!fhe},{URL:Gpe});var Ype=QH;Vq({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Ype(URL.prototype.toString,this)}});const Zpe=({url:e,account:t,messageId:r,frameData:o,proxyServer:a})=>{var s,c,u,l,d,f,h,p,g,m;const{env:y,user:b,pgpPrivateKey:v}=P5(),[{wallet:C}]=w(),[{connectedChain:x},S]=A(),I=Rce(),[k,_]=(0,i.useState)(o),[T,M]=(0,i.useState)(""),[P,D]=(0,i.useState)(!1),O=(0,i.useContext)(Pae),B=e=>{var t;switch(e.action){case"link":return(0,n.jsxs)(ege,{children:[(0,n.jsx)(hI.AnD,{})," ",e.content]});case"post_redirect":return(0,n.jsxs)(ege,{children:[(0,n.jsx)(ky,{})," ",e.content]});case"tx":return(0,n.jsxs)(ege,{children:[(0,n.jsx)(GD.Yfs,{})," ",e.content]});case(null===(t=null==e?void 0:e.action)||void 0===t?void 0:t.includes("subscribe"))&&"subscribe":return(0,n.jsxs)(ege,{children:[(0,n.jsx)(hI.jNV,{})," ",e.content]});default:return(0,n.jsx)(ege,Object.assign({style:{}},{children:e.content}))}},N=e=>pJ(void 0,void 0,void 0,(function*(){const t=Number(e.split(":")[1]);if((null==x?void 0:x.id)!==(0,j.nj)(t)){if(!L4[y].some((e=>e===t)))return I.showMessageToast({toastTitle:"Error",toastMessage:"Chain not supported",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})}),{status:"failure",message:"Chain not supported"};yield S({chainId:(0,j.nj)(t)})}return{status:"success",message:"Chain switch not required"}})),R=i=>pJ(void 0,void 0,void 0,(function*(){var o,s,c,u,l,d,f,h,p,g,m,w,A,x,S,P,j,D,O,B,R;if(!k.isValidFrame)return;if("mint"===i.action)return void I.showMessageToast({toastTitle:"Error",toastMessage:"Mint Action is not supported",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})});let L;const F=yield(e=>pJ(void 0,void 0,void 0,(function*(){const t=Gm.parse('\n syntax = "proto3";\n\n message ChatMessage {\n string url = 1;\n string unixTimestamp = 2;\n int32 buttonIndex = 3;\n string inputText = 4;\n string state = 5;\n string transactionId = 6;\n string address = 7;\n string messageId = 8;\n string chatId = 9;\n string clientProtocol = 10;\n string env = 11;\n }\n ').root.lookupType("ChatMessage"),r=t.create(e),n=t.encode(r).finish();return Buffer.from(n).toString("hex")})))({url:e,unixTimestamp:Date.now().toString(),buttonIndex:Number(i.index),inputText:(null===(o=k.frameDetails)||void 0===o?void 0:o.inputText)?T:"undefined",state:null!==(c=null===(s=k.frameDetails)||void 0===s?void 0:s.state)&&void 0!==c?c:"",transactionId:null!=L?L:"",address:t,messageId:r,chatId:null!==(u=window.location.href.split("/").pop())&&void 0!==u?u:"null",clientProtocol:"push",env:y}),U=yield(({message:e,signingKey:t})=>pJ(void 0,void 0,void 0,(function*(){const r=yield Km.createMessage({text:e}),n=yield Km.readPrivateKey({armoredKey:t});return yield Km.sign({message:r,signingKeys:n,detached:!0})})))({message:F,signingKey:null!==(l=null==b?void 0:b.decryptedPgpPvtKey)&&void 0!==l?l:v});if("post_redirect"===i.action||"link"===i.action)return void window.open(i.target,"_blank");if(null===(d=i.action)||void 0===d?void 0:d.includes("subscribe")){const e=yield(e=>pJ(void 0,void 0,void 0,(function*(){var t,r,i;if(!b)return console.log("User not initialized"),{status:"failure",message:"User not initialized"};const{status:o,message:a}=yield N(e.action);if("failure"===o)return console.log("Chain switch failed"),{status:"failure",message:a};try{const o=(0,$e.b)(e.target),a=null===(t=e.action)||void 0===t?void 0:t.split(":")[1],s=yield b.notification.subscribe(`eip155:${a}:${o}`);return 204===s.status?(I.showMessageToast({toastTitle:"Success",toastMessage:"Subscribed Successfully",toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(hI.U2A,{size:e,color:"green"})}),{status:"success",message:"Subscribed"}):(I.showMessageToast({toastTitle:"Error",toastMessage:null!==(r=JSON.stringify(s.message))&&void 0!==r?r:"Subscription failed",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})}),{status:"failure",message:null!==(i=JSON.stringify(s.message))&&void 0!==i?i:"Subscription failed"})}catch(ys){return I.showMessageToast({toastTitle:"Error",toastMessage:"Something went wrong",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})}),{status:"failure",message:"Something went wrong"}}})))(i);if("failure"===e.status)return}if("tx"===i.action&&i.target){const o=yield fetch(`${a}/${i.target}`,{method:"POST",headers:{"Content-Type":"application/json",Origin:window.location.origin},body:JSON.stringify({clientProtocol:"push",untrustedData:{url:e,unixTimestamp:Date.now().toString(),buttonIndex:Number(i.index),inputText:(null===(f=k.frameDetails)||void 0===f?void 0:f.inputText)?T:"undefined",state:null!==(p=null===(h=k.frameDetails)||void 0===h?void 0:h.state)&&void 0!==p?p:"",transactionId:null!=L?L:"",address:t,messageId:r,chatId:null!==(g=window.location.href.split("/").pop())&&void 0!==g?g:"null",clientProtocol:"push",env:y},trustedData:{messageBytes:F,pgpSignature:U}})});if(!o.ok)return;const s=yield o.json(),{hash:c,status:u}=yield(e=>pJ(void 0,void 0,void 0,(function*(){var r,i,o,a,s,c;if(!e||!e.params||!e.chainId)return{status:"failure",message:"Invalid data"};const{status:u,message:l}=yield N(e.chainId);if("failure"===u)return console.log("Chain switch failed"),{status:"failure",message:l};if(!C)return console.log("wallet not connected"),{status:"failure",message:"Wallet not connected"};let d;try{const r=new E.j(C.provider,"any").getSigner();return d=(yield r.sendTransaction({from:t,to:e.params.to,value:e.params.value,data:e.params.data,chainId:Number(e.chainId.slice(7))})).hash,{hash:d,status:"success",message:"Transaction sent"}}catch(ys){return I.showMessageToast({toastTitle:"Error",toastMessage:null!==(o=null!==(i=null===(r=null==ys?void 0:ys.data)||void 0===r?void 0:r.message)&&void 0!==i?i:null==ys?void 0:ys.message)&&void 0!==o?o:"Failed",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})}),{hash:"Failed",status:"failure",message:null!==(c=null!==(s=null===(a=null==ys?void 0:ys.data)||void 0===a?void 0:a.message)&&void 0!==s?s:null==ys?void 0:ys.message)&&void 0!==c?c:"Failed"}}})))(s);if(L=c,!c||"failure"===u)return}let z=null!==(A=null!==(m=i.post_url)&&void 0!==m?m:null===(w=k.frameDetails)||void 0===w?void 0:w.postURL)&&void 0!==A?A:e;if("post"===i.action&&(z=null!==(j=null!==(S=null!==(x=i.target)&&void 0!==x?x:i.post_url)&&void 0!==S?S:null===(P=k.frameDetails)||void 0===P?void 0:P.postURL)&&void 0!==j?j:e),!z)return;const H=yield fetch(`${a}/${z}`,{method:"POST",headers:{"Content-Type":"application/json",Origin:window.location.origin},body:JSON.stringify({clientProtocol:"push",untrustedData:{url:e,unixTimestamp:Date.now().toString(),buttonIndex:Number(i.index),inputText:(null===(D=k.frameDetails)||void 0===D?void 0:D.inputText)?T:"undefined",state:null!==(B=null===(O=k.frameDetails)||void 0===O?void 0:O.state)&&void 0!==B?B:"",transactionId:null!=L?L:"",address:t,messageId:r,chatId:null!==(R=window.location.href.split("/").pop())&&void 0!==R?R:"null",clientProtocol:"push",env:y},trustedData:{messageBytes:F,pgpSignature:U}})}),V=yield H.text(),K=EX(e,V);M(""),_(K)}));return(0,n.jsx)(D7,Object.assign({flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",minWidth:"inherit",maxWidth:"inherit",background:null===(s=O.backgroundColor)||void 0===s?void 0:s.chatFrameBackground},{children:k.isValidFrame&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D7,Object.assign({padding:"0px 0px 8px 0px"},{children:(0,n.jsxs)(N7,Object.assign({href:e,target:"blank"},{children:[!P&&(0,n.jsx)(R7,{src:null!==(d=null!==(u=null===(c=k.frameDetails)||void 0===c?void 0:c.image)&&void 0!==u?u:null===(l=k.frameDetails)||void 0===l?void 0:l.ogImage)&&void 0!==d?d:"",alt:"Frame Fallback",style:{width:"100%"},onError:()=>{D(!0)}}),P&&(0,n.jsx)(D7,Object.assign({width:"100%",padding:"16px",background:null===(f=O.backgroundColor)||void 0===f?void 0:f.chatFrameBackground,color:null===(h=O.textColor)||void 0===h?void 0:h.chatReceivedBubbleText},{children:"Image cannot be loaded"}))]}))})),(null===(p=k.frameDetails)||void 0===p?void 0:p.inputText)&&(0,n.jsx)(D7,Object.assign({padding:"8px 12px"},{children:(0,n.jsx)(tge,{theme:O,onChange:e=>M(e.target.value),value:T,placeholder:null===(g=k.frameDetails)||void 0===g?void 0:g.inputText})})),k.frameDetails&&k.frameDetails.buttons.length>0&&(0,n.jsx)($pe,Object.assign({padding:"8px 12px",gap:"8px",justifyContent:"space-between"},{children:k.frameDetails.buttons.map((e=>(0,n.jsx)(Xpe,Object.assign({theme:O,onClick:t=>{t.preventDefault(),R(e)}},{children:B(e)}))))})),(0,n.jsx)(D7,Object.assign({padding:"8px 12px",justifyContent:"flex-end"},{children:(0,n.jsx)(rge,Object.assign({href:e,target:"_blank",rel:"noreferrer",color:null===(m=O.textColor)||void 0===m?void 0:m.chatFrameURLText},{children:new URL(e).hostname}))}))]})}))},$pe=(0,o.Ay)(D7).withConfig({displayName:"FrameRenderer__FrameButtonSection",componentId:"sc-8m3j5w-0"})(["flex-wrap:wrap;"]),Xpe=(0,o.Ay)(L7).withConfig({displayName:"FrameRenderer__FrameButton",componentId:"sc-8m3j5w-1"})(["flex:1;flex-wrap:wrap;padding:12px 8px;background:",";color:",";border-radius:",";border:",";min-width:120px;cursor:pointer;"],(e=>e.theme.backgroundColor.buttonHotBackground?e.theme.backgroundColor.buttonHotBackground:"initial"),(e=>e.theme.textColor.buttonText?e.theme.textColor.buttonText:"initial"),(e=>{var t,r;return(null===(t=e.theme)||void 0===t?void 0:t.borderRadius.modalInnerComponents)?null===(r=e.theme)||void 0===r?void 0:r.borderRadius.modalInnerComponents:"0"}),(e=>e.theme.border.modal?e.theme.border.modal:"initial")),ege=(0,o.Ay)(B7).withConfig({displayName:"FrameRenderer__FrameSpan",componentId:"sc-8m3j5w-2"})(["display:flex;flex-direction:row;justify-content:center;gap:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;"]),tge=o.Ay.input.withConfig({displayName:"FrameRenderer__FrameInput",componentId:"sc-8m3j5w-3"})(["width:100%;padding:16px;margin-top:8px;color:",";background:",";border:1px solid transparent;border-radius:",";font-family:",";font-size:16px;font-weight:500;[readonly='readonly']{pointer-events:none;}&:focus,&:focus-visible{outline:none;background-image:",";background-clip:padding-box,border-box;border:1px solid transparent !important;}"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.chatReceivedBubbleText)&&void 0!==r?r:"inherit"}),(e=>{var t,r;return null!==(r=null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.inputBackground)&&void 0!==r?r:"inherit"}),(e=>{var t,r;return null!==(r=null===(t=e.theme.borderRadius)||void 0===t?void 0:t.chatViewComponent)&&void 0!==r?r:"inherit"}),(e=>e.theme.fontFamily),(e=>{var t,r;return null!==(r=null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.inputHoverBackground)&&void 0!==r?r:"initial"})),rge=(0,o.Ay)(N7).withConfig({displayName:"FrameRenderer__PreviewAnchor",componentId:"sc-8m3j5w-4"})(["text-decoration:none;align-self:flex-end;"]),nge=({url:e,frameData:t})=>{var r,o,a,s,c,u,l,d,f,h,p,g,m,y,b,v,w;const[A,C]=(0,i.useState)(-1),E=(0,i.useContext)(Pae);return(0,n.jsx)(D7,Object.assign({flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",minWidth:"inherit",maxWidth:"inherit",background:null===(r=E.backgroundColor)||void 0===r?void 0:r.chatFrameBackground},{children:t.isValidFrame&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D7,Object.assign({padding:"0px 0px 8px 0px"},{children:(0,n.jsxs)(ige,{children:[1!==A&&(0,n.jsx)(age,{src:null!==(c=null!==(a=null===(o=t.frameDetails)||void 0===o?void 0:o.image)&&void 0!==a?a:null===(s=t.frameDetails)||void 0===s?void 0:s.ogImage)&&void 0!==c?c:"",className:0===A?"loading":"",alt:"React Player Fallback"}),(0,n.jsx)(QD(),{url:e,light:null!==(f=null!==(l=null===(u=t.frameDetails)||void 0===u?void 0:u.image)&&void 0!==l?l:null===(d=t.frameDetails)||void 0===d?void 0:d.ogImage)&&void 0!==f?f:"",playing:!0,style:{position:"absolute",top:0,left:0},width:"100%",height:"100%",onClickPreview:()=>{C(0)},onReady:()=>C(1)})]})})),(0,n.jsxs)(D7,Object.assign({padding:"8px 12px",justifyContent:"flex-end",flexDirection:"column",gap:"4px"},{children:[(null===(h=t.frameDetails)||void 0===h?void 0:h.ogTitle)&&(0,n.jsx)(sge,Object.assign({fontSize:null===(p=E.fontSize)||void 0===p?void 0:p.chatFrameTitleText,fontWeight:null===(g=E.fontWeight)||void 0===g?void 0:g.chatFrameTitleText,color:null===(m=E.textColor)||void 0===m?void 0:m.chatFrameTitleText},{children:t.frameDetails.ogTitle})),(null===(y=t.frameDetails)||void 0===y?void 0:y.ogDescription)&&(0,n.jsx)(cge,Object.assign({fontSize:null===(b=E.fontSize)||void 0===b?void 0:b.chatFrameDescriptionText,color:null===(v=E.textColor)||void 0===v?void 0:v.chatFrameDescriptionText},{children:t.frameDetails.ogDescription})),(0,n.jsx)(uge,Object.assign({href:e,target:"_blank",rel:"noreferrer",color:null===(w=E.textColor)||void 0===w?void 0:w.chatFrameURLText},{children:new URL(e).hostname}))]}))]})}))},ige=(0,o.Ay)(D7).withConfig({displayName:"VideoRenderer__ReactPlayerSection",componentId:"sc-1lku2a6-0"})(["padding-top:56.25%;width:100%;overflow:hidden;"]),oge=(0,o.i7)(["0%{opacity:0.5;}50%{opacity:1;}100%{opacity:0.5;}"]),age=(0,o.Ay)(R7).withConfig({displayName:"VideoRenderer__ReactPlayerImage",componentId:"sc-1lku2a6-1"})(["position:absolute;top:0;left:0;bottom:0;right:0;margin:auto;z-index:-1;&.loading{animation:"," 1.5s ease-in infinite;}"],oge),sge=(0,o.Ay)(B7).withConfig({displayName:"VideoRenderer__FrameTitleSpan",componentId:"sc-1lku2a6-2"})(["text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%;text-align:start;"]),cge=(0,o.Ay)(B7).withConfig({displayName:"VideoRenderer__FrameDescriptionSpan",componentId:"sc-1lku2a6-3"})(["text-align:start;width:100%;"]),uge=(0,o.Ay)(N7).withConfig({displayName:"VideoRenderer__PreviewAnchor",componentId:"sc-1lku2a6-4"})(["align-self:flex-end;text-decoration:none;"]),lge="https://proxy.push.org",dge=({message:e,account:t,messageId:r,previewCallback:o,previewMode:a=!1})=>{const[s,c]=(0,i.useState)({loading:!0,frameData:{},url:null,urlType:"other",error:null});return(0,i.useEffect)((()=>{if(e&&xX(e)&&!a){const t=(e=>{let t="",r=!1;const n=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/)?([\w#!:.?+=&%@!-]+)/,i="string"==typeof e?e.split(" "):[];return null==i||i.forEach((e=>{if(r)return;const i=e.toLowerCase();if(n.test(e)&&(i.includes("twitter")||i.includes("x"))){const n=e.split("?")[0].split("/");n.length>=6?(t=n[n.length-1],r=!0):r=!1}})),{tweetId:t,isTweet:r}})(e);if(t.isTweet)c((e=>Object.assign(Object.assign({},e),{loading:!1,error:null,url:`${t.tweetId}`,urlType:"twitter"})));else{const t=cZ(e);(e=>{pJ(void 0,void 0,void 0,(function*(){try{const r=yield fetch(`${lge}/${e}`,{method:"GET",headers:{"Content-Type":"application/json",Origin:window.location.origin}}),n=yield r.text(),i=EX(e,n);if(!i.isValidFrame)throw new Error("Invalid frame");const o=(t=e,["youtube.com","youtu.be","vimeo.com","facebook.com","soundcloud.com","mux.com","wistia.com","mixcloud.com","dailymotion.com"].some((e=>t.includes(e))));c((t=>({error:null,loading:!1,frameData:i,url:e,urlType:o?"video":"frame"})))}catch(r){c((e=>Object.assign(Object.assign({},e),{loading:!1,error:r,urlType:"other"})))}var t}))})(null!=t?t:"")}}else c((e=>Object.assign(Object.assign({},e),{loading:!1,error:null,urlType:"other"})))}),[e]),(0,i.useEffect)((()=>{!s.loading&&o&&o({loading:s.loading,error:s.error,urlType:s.urlType})}),[s]),s.loading||s.error||!s.url||"frame"!==s.urlType?s.loading||s.error||!s.url||"video"!==s.urlType?s.loading||s.error||!s.url||"twitter"!==s.urlType?null:(0,n.jsx)(fge,{children:(0,n.jsx)(KD,{tweetId:s.url})}):(0,n.jsx)(nge,{url:s.url,frameData:s.frameData}):(0,n.jsx)(Zpe,{url:s.url,account:t,messageId:r,frameData:s.frameData,proxyServer:lge})},fge=o.Ay.div.withConfig({displayName:"PreviewRenderer__TwitterEmbedWrapper",componentId:"sc-5o8t1g-0"})(["width:100%;max-width:550px;margin:0 auto;overflow:hidden;padding:0 10px;> div{max-width:100% !important;}iframe{max-width:100% !important;}@media (max-width:","){max-width:100%;iframe{width:100% !important;}}"],c5.mobileL),hge=({chat:e,position:t,account:r,color:o="inherit",previewMode:a=!1,activeMode:c=!1})=>{var u,l,d,f,h,p,g,m,y,b,v;const w=(0,i.useContext)(Pae),A=s()(e.timestamp).format("hh:mm a"),C="object"==typeof e.messageObj?null!==(l=null===(u=e.messageObj)||void 0===u?void 0:u.content)&&void 0!==l?l:"":e.messageObj,[E,x]=(0,i.useState)({loading:!0,additionalClasses:""}),S=a?[{msg:(e=>e.slice(0,100).split("\n").slice(0,3).join(" "))(C),type:"text"}]:(e=>{const t=[{msg:e.msg,type:e.type}];return t.forEach(((e,r)=>{t.splice(r,1,...(e=>{const t=/(```[\s\S]*?```)/g,r=[];let n=0;return"string"==typeof e.msg?(e.msg.replace(t,((t,i,o)=>(o>n&&r.push({msg:e.msg.substring(n,o),type:e.type}),r.push({msg:i,type:"code"}),n=o+i.length,t))),n{x(Object.assign(Object.assign({},E),{loading:e.loading,additionalClasses:e.error?"":e.urlType}))},previewMode:a})})),(0,n.jsxs)(gge,Object.assign({gap:"5px",border:t?`${null===(h=w.border)||void 0===h?void 0:h.chatSentBubble}`:`${null===(p=w.border)||void 0===p?void 0:p.chatReceivedBubble}`,padding:null===(g=w.padding)||void 0===g?void 0:g.chatBubbleInnerContentPadding,justifyContent:"start",flexDirection:"column",maxWidth:"inherit",minWidth:"72px",position:"relative"},{children:[(0,n.jsx)(D7,Object.assign({flexDirection:"column",maxWidth:"inherit"},{children:S.map(((e,r)=>"text"===e.type?((e,r)=>e.split("\n").map(((e,a)=>{var s,c,u,l;return(0,n.jsx)(B7,Object.assign({alignSelf:"start",textAlign:"left",lineHeight:"1.4em",fontSize:t?`${null===(s=w.fontSize)||void 0===s?void 0:s.chatSentBubbleText}`:`${null===(c=w.fontSize)||void 0===c?void 0:c.chatReceivedBubbleText}`,fontWeight:t?`${null===(u=w.fontWeight)||void 0===u?void 0:u.chatSentBubbleText}`:`${null===(l=w.fontWeight)||void 0===l?void 0:l.chatReceivedBubbleText}`,color:o},{children:e.split(" ").map(((e,t)=>{const o=xX(e)?cZ(e):"";return(0,n.jsxs)(i.Fragment,{children:[o?(0,n.jsx)(wge,Object.assign({href:o,target:"_blank",rel:"noopener noreferrer",className:E.loading?"loading":""},{children:e})):e," "]},`${r}-${a}-${t}`)}))}),`${r}-${a}`)})))(e.msg,r):"code"===e.type?((e,t)=>{const r=e.match(/```(\S*)\s*([\s\S]*?)```/),i=(null==r?void 0:r[1])||"plaintext",o=e.split("\n").slice(1,-1).join("\n").trim();return(0,n.jsx)(yge,{children:(0,n.jsx)(bge,{text:o,language:i,theme:zD},t)})})(e.msg,r):null))})),!a&&(0,n.jsx)(B7,Object.assign({fontSize:t?`${null===(m=w.fontSize)||void 0===m?void 0:m.chatSentBubbleTimestampText}`:`${null===(y=w.fontSize)||void 0===y?void 0:y.chatReceivedBubbleTimestampText}`,fontWeight:t?`${null===(b=w.fontWeight)||void 0===b?void 0:b.chatSentBubbleTimestampText}`:`${null===(v=w.fontWeight)||void 0===v?void 0:v.chatReceivedBubbleTimestampText}`,color:o,right:"0px",width:"auto",alignSelf:"flex-end"},{children:A}))]}))]}))},pge=(0,o.Ay)(D7).withConfig({displayName:"MessageCard__MessagePreviewSection",componentId:"sc-i82mx9-0"})(["overflow:hidden;max-width:100%;"]),gge=(0,o.Ay)(D7).withConfig({displayName:"MessageCard__MessageSection",componentId:"sc-i82mx9-1"})(["box-sizing:border-box;max-width:100%;"]),mge=(0,o.Ay)(D7).withConfig({displayName:"MessageCard__MessageCardSection",componentId:"sc-i82mx9-2"})(["display:grid;align-self:flex-start;flex-direction:column;max-width:100%;&.video,&.frame{max-width:512px;min-width:200px;& > ","{width:100%;box-sizing:border-box;margin-top:0px;border-top-right-radius:0;border-top-left-radius:0;}}&.video{}&.frame{}"],gge),yge=(0,o.Ay)(D7).withConfig({displayName:"MessageCard__CodeSection",componentId:"sc-i82mx9-3"})(["margin:16px 0;border-radius:12px;align-self:stretch;max-width:inherit;div:first-of-type{max-width:inherit;width:100%;padding:20px;font-weight:300;font-family:monospace;overflow:scroll;justify-content:flex-start;}"]),bge=(0,o.Ay)(UD).withConfig({displayName:"MessageCard__StyledCopyBlock",componentId:"sc-i82mx9-4"})([""]),vge=(0,o.i7)(["0%{opacity:0.5;}50%{opacity:1;}100%{opacity:0.5;}"]),wge=(0,o.Ay)(N7).withConfig({displayName:"MessageCard__MessageAnchor",componentId:"sc-i82mx9-5"})(["&:first-child.loading{animation:"," 1.5s ease-in infinite;}"],vge),Age=({chat:e,position:t,previewMode:r=!1,activeMode:o=!1})=>{var a,s,c,u,l,d,f,h,p,g,m,y;const b=(0,i.useContext)(Pae),{user:v}=P5();(e=>!!e&&e.startsWith("U2FsdGVkX1"))("object"==typeof e.messageObj?null!==(c="string"==typeof(null===(a=e.messageObj)||void 0===a?void 0:a.content)?null===(s=e.messageObj)||void 0===s?void 0:s.content:"")&&void 0!==c?c:"":e.messageObj)&&(e.messageType="Text");const w=null!==(u=null==v?void 0:v.account)&&void 0!==u?u:"",A=t&&!o?null===(l=b.textColor)||void 0===l?void 0:l.chatSentBubbleText:null===(d=b.textColor)||void 0===d?void 0:d.chatReceivedBubbleText;return(0,n.jsxs)(n.Fragment,{children:[e&&"Text"===e.messageType&&(0,n.jsx)(hge,{chat:e,position:t,account:w,color:A,previewMode:r,activeMode:o}),"Image"===e.messageType&&(0,n.jsx)(Wle,{chat:e,background:!t||o||r?null===(h=b.backgroundColor)||void 0===h?void 0:h.chatReceivedBubbleBackground:null===(f=b.backgroundColor)||void 0===f?void 0:f.chatSentBubbleBackground,color:A,previewMode:r,activeMode:o}),"File"===e.messageType&&(0,n.jsx)(Vle,{chat:e,background:t&&!o?null===(p=b.backgroundColor)||void 0===p?void 0:p.chatPreviewSentBubbleBackground:null===(g=b.backgroundColor)||void 0===g?void 0:g.chatPreviewRecievedBubbleBackground,color:A,previewMode:r,activeMode:o}),"GIF"===e.messageType&&(0,n.jsx)(qle,{chat:e,background:!t||o||r?null===(y=b.backgroundColor)||void 0===y?void 0:y.chatReceivedBubbleBackground:null===(m=b.backgroundColor)||void 0===m?void 0:m.chatSentBubbleBackground,color:A,previewMode:r,activeMode:o}),"Reaction"===e.messageType&&(0,n.jsx)(hge,{chat:e,position:t,account:w,color:A,previewMode:r,activeMode:o})]})},Cge=({reference:e,chatId:t,position:r})=>{var o,a,s,c,u,l,d,f,h,p,g,m,y,b,v,w,A,C,E,x,S,I,k,_,T,M;const P=(0,i.useContext)(Pae),{user:j}=P5(),[D,O]=(0,i.useState)({payload:null,loaded:!1,err:null});return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var r,n,i,o;if(!D.loaded)if(e&&t)try{const a=yield null==j?void 0:j.chat.history(t,{reference:e,limit:1}),s=a?a[0]:null;"Reply"===(null==s?void 0:s.messageType)&&(s.messageType=null===(n=null===(r=null==s?void 0:s.messageObj)||void 0===r?void 0:r.content)||void 0===n?void 0:n.messageType,s.messageObj=null===(o=null===(i=null==s?void 0:s.messageObj)||void 0===i?void 0:i.content)||void 0===o?void 0:o.messageObj),O(Object.assign(Object.assign({},D),{payload:s,loaded:!0}))}catch(a){O(Object.assign(Object.assign({},D),{payload:null,loaded:!0,err:"Unable to load Preview"}))}else O(Object.assign(Object.assign({},D),{payload:null,loaded:!0,err:"Reply reference not found"}))}))}),[D,e,null==j?void 0:j.chat,t]),(0,n.jsxs)(Ege,Object.assign({maxWidth:"512px",minWidth:"200px",width:"fill-available",background:r?null===(o=P.backgroundColor)||void 0===o?void 0:o.chatPreviewSentBubbleBackground:null===(a=P.backgroundColor)||void 0===a?void 0:a.chatPreviewRecievedBubbleBackground,margin:null===(s=P.margin)||void 0===s?void 0:s.chatBubbleReplyMargin,borderRadius:null===(c=P.borderRadius)||void 0===c?void 0:c.chatBubbleReplyBorderRadius,borderBG:r?null===(u=P.backgroundColor)||void 0===u?void 0:u.chatPreviewSentBorderBubbleBackground:null===(l=P.backgroundColor)||void 0===l?void 0:l.chatPreviewRecievedBorderBubbleBackground},{children:[!D.loaded&&(0,n.jsx)(B7,Object.assign({alignSelf:"start",textAlign:"left",lineHeight:"1.4em",width:"inherit",fontSize:r?`${null===(d=P.fontSize)||void 0===d?void 0:d.chatSentBubbleText}`:`${null===(f=P.fontSize)||void 0===f?void 0:f.chatReceivedBubbleText}`,fontWeight:r?`${null===(h=P.fontWeight)||void 0===h?void 0:h.chatSentBubbleText}`:`${null===(p=P.fontWeight)||void 0===p?void 0:p.chatReceivedBubbleText}`,padding:null===(g=P.padding)||void 0===g?void 0:g.chatBubbleInnerContentPadding,color:r?`${null===(m=P.textColor)||void 0===m?void 0:m.chatSentBubbleText}`:`${null===(y=P.textColor)||void 0===y?void 0:y.chatReceivedBubbleText}`},{children:"Loading Preview..."})),D.loaded&&D.err&&(0,n.jsx)(B7,Object.assign({alignSelf:"start",textAlign:"left",lineHeight:"1.4em",width:"inherit",fontSize:r?`${null===(b=P.fontSize)||void 0===b?void 0:b.chatSentBubbleText}`:`${null===(v=P.fontSize)||void 0===v?void 0:v.chatReceivedBubbleText}`,fontWeight:r?`${null===(w=P.fontWeight)||void 0===w?void 0:w.chatSentBubbleText}`:`${null===(A=P.fontWeight)||void 0===A?void 0:A.chatReceivedBubbleText}`,padding:null===(C=P.padding)||void 0===C?void 0:C.chatBubbleInnerContentPadding,color:r?`${null===(E=P.textColor)||void 0===E?void 0:E.chatSentBubbleText}`:`${null===(x=P.textColor)||void 0===x?void 0:x.chatReceivedBubbleText}`},{children:D.err})),D.loaded&&D.payload&&(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"flex-start",overflow:"hidden",width:"fill-available"},{children:[(0,n.jsx)(B7,Object.assign({padding:"8px 12px 0px",fontSize:"10px",color:r?`${null===(S=P.textColor)||void 0===S?void 0:S.chatSentBubbleText}`:`${null===(I=P.textColor)||void 0===I?void 0:I.chatReceivedBubbleText}`},{children:(0,n.jsx)(B7,Object.assign({fontWeight:"500",padding:"0px"},{children:s9(l8(D.payload.fromDID),6,!0)}))})),(0,n.jsx)(Age,{chat:D.payload,position:null!=r?r:0,previewMode:!0},`card-render-${null!==(_=null===(k=D.payload)||void 0===k?void 0:k.link)&&void 0!==_?_:"null"}`)]}))]}),`card-reply-${null!==(M=null===(T=D.payload)||void 0===T?void 0:T.link)&&void 0!==M?M:"null"}`)},Ege=(0,o.Ay)(D7).withConfig({displayName:"ReplyCard__ReplySection",componentId:"sc-1kbgpk6-0"})(["border-left:4px solid ",";"],(({borderBG:e})=>e||"transparent")),xge=({chat:e,chatId:t,previewMode:r=!1,activeMode:o=!1})=>{var a,s;const c=(0,i.useContext)(Pae),{user:u}=P5();return((e,i)=>{var a,s,u,l,d,f,h,p,g,m,y,b,v;const w=[],A=B8(e);let C="";e&&"Reply"===e.messageType&&(C=null!==(s=null===(a=e.messageObj)||void 0===a?void 0:a.reference)&&void 0!==s?s:null,A.messageType=null===(l=null===(u=null==A?void 0:A.messageObj)||void 0===u?void 0:u.content)||void 0===l?void 0:l.messageType,A.messageObj=null===(f=null===(d=null==A?void 0:A.messageObj)||void 0===d?void 0:d.content)||void 0===f?void 0:f.messageObj),""===C||o||w.push((0,n.jsx)(Cge,{reference:C,chatId:t,position:i},"reply")),A&&w.push((0,n.jsx)(Age,{chat:A,position:i,previewMode:r,activeMode:o},"card"));const E=o?null===(h=c.backgroundColor)||void 0===h?void 0:h.chatActivePreviewBubbleBackground:i?r?null===(p=c.backgroundColor)||void 0===p?void 0:p.chatPreviewSentBubbleBackground:null===(g=c.backgroundColor)||void 0===g?void 0:g.chatSentBubbleBackground:r?null===(m=c.backgroundColor)||void 0===m?void 0:m.chatPreviewRecievedBubbleBackground:null===(y=c.backgroundColor)||void 0===y?void 0:y.chatReceivedBubbleBackground;return(0,n.jsx)(Sge,Object.assign({flexDirection:"column",background:E,borderBG:o?null===(b=c.backgroundColor)||void 0===b?void 0:b.chatActivePreviewBorderBubbleBackground:"transparent",borderRadius:o?null===(v=c.borderRadius)||void 0===v?void 0:v.chatBubbleReplyBorderRadius:"0px",previewMode:r},{children:w}))})(e,l8(e.fromDID).toLowerCase()!==(null===(s=l8(null!==(a=null==u?void 0:u.account)&&void 0!==a?a:""))||void 0===s?void 0:s.toLowerCase())?0:1)},Sge=(0,o.Ay)(D7).withConfig({displayName:"ChatViewBubbleCore__ChatViewBubbleCoreSection",componentId:"sc-1pgl00h-0"})(["border-left:",";"],(({borderBG:e,previewMode:t})=>t?`4px solid ${e||"transparent"}`:"none"));var Ige=Vq,kge=x1,_ge=uz,Tge=YH,Mge=_H,Pge=f0,jge=W3,Dge=cq,Oge=kge&&kge.prototype;if(Ige({target:"Promise",proto:!0,real:!0,forced:!!kge&&_ge((function(){Oge.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Pge(this,Tge("Promise")),r=Mge(e);return this.then(r?function(r){return jge(t,e()).then((function(){return r}))}:e,r?function(r){return jge(t,e()).then((function(){throw r}))}:e)}}),Mge(kge)){var Bge=Tge("Promise").prototype.finally;Oge.finally!==Bge&&Dge(Oge,"finally",Bge,{unsafe:!0})}const Nge=({chat:e,chatId:t,userSelectingReaction:r,setUserSelectingReaction:o,actionId:a,singularActionId:s,setSingularActionId:c,chatSidebarRef:u})=>{var l,d,f,h,p,g,m,y,b,v,w,A,C,E,x,S,I,k,_,T,M,P,j,D,O,B,N;const R=(0,i.useContext)(Pae),L=(0,i.useRef)(null),F=()=>{};(0,i.useEffect)((()=>(window.addEventListener("resize",F),()=>window.removeEventListener("resize",F))),[]);const{user:U}=P5(),[z,H]=(0,i.useState)(null),V=e=>{o(!r),H(e)};(0,i.useEffect)((()=>{var r;z&&(r=z,pJ(void 0,void 0,void 0,(function*(){null==U||U.chat.send(t,{type:"Reaction",content:r,reference:e.cid}).then((e=>{console.debug("UIWeb::components::ChatViewBubble::ReactionPicker::sendReaction success with response:",e)})).catch((e=>{console.error("UIWeb::components::ChatViewBubble::ReactionPicker::sendReaction error:",e)})).finally((()=>{H("")}))})))}),[z]);const K=l8(e.fromDID).toLowerCase()!==(null===(d=l8(null!==(l=null==U?void 0:U.account)&&void 0!==l?l:""))||void 0===d?void 0:d.toLowerCase())?0:1;return(0,n.jsxs)(D7,Object.assign({justifyContent:K?"flex-end":"flex-start"},{children:[(0,n.jsx)(L7,Object.assign({borderRadius:null===(f=R.borderRadius)||void 0===f?void 0:f.reactionsPickerBorderRadius,background:r?null===(h=R.backgroundColor)||void 0===h?void 0:h.chatReceivedBubbleBackground:"transparent",hoverBackground:null===(p=R.backgroundColor)||void 0===p?void 0:p.chatReceivedBubbleBackground,padding:null===(g=R.padding)||void 0===g?void 0:g.reactionsPickerPadding,border:null===(m=R.border)||void 0===m?void 0:m.reactionsBorder,hoverBorder:null===(y=R.border)||void 0===y?void 0:y.reactionsHoverBorder,onClick:e=>{e.stopPropagation(),o(!r),c&&c(a)}},{children:(0,n.jsx)(Sae,{color:null===(b=R.iconColor)||void 0===b?void 0:b.emoji,size:20})})),r&&a===s&&(0,n.jsxs)(D7,Object.assign({ref:L,position:"absolute",top:"100%",bottom:"-70px",gap:null===(v=R.padding)||void 0===v?void 0:v.reactionsPickerPadding,fontSize:"x-large",alignSelf:"center",padding:null===(w=R.padding)||void 0===w?void 0:w.reactionsPickerPadding,border:null===(A=R.border)||void 0===A?void 0:A.reactionsHoverBorder,borderRadius:null===(C=R.borderRadius)||void 0===C?void 0:C.reactionsPickerBorderRadius,background:null===(E=R.backgroundColor)||void 0===E?void 0:E.chatReceivedBubbleBackground},{children:[z&&(0,n.jsx)(D7,Object.assign({padding:null===(x=R.padding)||void 0===x?void 0:x.reactionsPickerPadding},{children:(0,n.jsx)(k7,{color:R.spinnerColor,size:"20"})})),!z&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L7,Object.assign({borderRadius:null===(S=R.borderRadius)||void 0===S?void 0:S.reactionsPickerBorderRadius,padding:null===(I=R.padding)||void 0===I?void 0:I.reactionsPickerPadding,onClick:()=>V("\ud83d\udc4d")},{children:(0,n.jsx)("span",Object.assign({role:"img","aria-label":"thumbs up"},{children:"\ud83d\udc4d"}))})),(0,n.jsx)(L7,Object.assign({borderRadius:null===(k=R.borderRadius)||void 0===k?void 0:k.reactionsPickerBorderRadius,padding:null===(_=R.padding)||void 0===_?void 0:_.reactionsPickerPadding,onClick:()=>V("\u2764\ufe0f")},{children:(0,n.jsx)("span",Object.assign({role:"img","aria-label":"heart"},{children:"\u2764\ufe0f"}))})),(0,n.jsx)(L7,Object.assign({borderRadius:null===(T=R.borderRadius)||void 0===T?void 0:T.reactionsPickerBorderRadius,padding:null===(M=R.padding)||void 0===M?void 0:M.reactionsPickerPadding,onClick:()=>V("\ud83d\udd25")},{children:(0,n.jsx)("span",Object.assign({role:"img","aria-label":"fire"},{children:"\ud83d\udd25"}))})),(0,n.jsx)(L7,Object.assign({borderRadius:null===(P=R.borderRadius)||void 0===P?void 0:P.reactionsPickerBorderRadius,padding:null===(j=R.padding)||void 0===j?void 0:j.reactionsPickerPadding,onClick:()=>V("\ud83d\ude32")},{children:(0,n.jsx)("span",Object.assign({role:"img","aria-label":"surprised"},{children:"\ud83d\ude32"}))})),(0,n.jsx)(L7,Object.assign({borderRadius:null===(D=R.borderRadius)||void 0===D?void 0:D.reactionsPickerBorderRadius,padding:null===(O=R.padding)||void 0===O?void 0:O.reactionsPickerPadding,onClick:()=>V("\ud83d\ude02")},{children:(0,n.jsx)("span",Object.assign({role:"img","aria-label":"laugh"},{children:"\ud83d\ude02"}))})),(0,n.jsx)(L7,Object.assign({borderRadius:null===(B=R.borderRadius)||void 0===B?void 0:B.reactionsPickerBorderRadius,padding:null===(N=R.padding)||void 0===N?void 0:N.reactionsPickerPadding,onClick:()=>V("\ud83d\ude22")},{children:(0,n.jsx)("span",Object.assign({role:"img","aria-label":"sad"},{children:"\ud83d\ude22"}))}))]})]}))]}))},Rge=({chatReactions:e})=>{var t,r,o,a,s;const c=(0,i.useContext)(Pae),u=e.reduce(((e,t)=>{var r;const n=(null===(r=t.messageObj)||void 0===r?void 0:r.content)||"";return e[n]||(e[n]=[]),e[n].includes(t.fromCAIP10)||e[n].push(t.fromCAIP10),e}),{}),l=e.map((e=>e.reference)).join("-");return console.debug("UIWeb::components::ChatViewBubble::Reactions::uniqueReactions",u),(0,n.jsx)(n.Fragment,{children:Object.keys(u).length>2?(0,n.jsxs)(D7,Object.assign({borderRadius:null===(t=c.borderRadius)||void 0===t?void 0:t.reactionsBorderRadius,background:null===(r=c.backgroundColor)||void 0===r?void 0:r.chatReceivedBubbleBackground,padding:null===(o=c.padding)||void 0===o?void 0:o.reactionsPadding,border:null===(a=c.border)||void 0===a?void 0:a.reactionsHoverBorder,gap:"4px"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"medium",whiteSpace:"nowrap"},{children:Object.keys(u).join(" ")})),(0,n.jsx)(B7,Object.assign({fontSize:"medium",fontWeight:"500",padding:"0 4px",color:null===(s=c.textColor)||void 0===s?void 0:s.chatReceivedBubbleText},{children:Object.values(u).reduce(((e,t)=>e+t.length),0)}))]}),`reactions-${l}`):Object.entries(u).map((([e,t])=>{var r,i,o,a,s;return(0,n.jsxs)(D7,Object.assign({borderRadius:null===(r=c.borderRadius)||void 0===r?void 0:r.reactionsBorderRadius,background:null===(i=c.backgroundColor)||void 0===i?void 0:i.chatReceivedBubbleBackground,padding:null===(o=c.padding)||void 0===o?void 0:o.reactionsPadding,border:null===(a=c.border)||void 0===a?void 0:a.reactionsHoverBorder,gap:"4px"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"medium",whiteSpace:"nowrap"},{children:e})),(0,n.jsx)(B7,Object.assign({fontSize:"medium",fontWeight:"500",padding:"0 4px",color:null===(s=c.textColor)||void 0===s?void 0:s.chatReceivedBubbleText,whiteSpace:"nowrap"},{children:t.length}))]}),`reactions-${e}-${l}`)}))})},Lge=({chat:e})=>{var t,r,o,a,s;const{user:c}=(0,i.useContext)(f5),u=(0,i.useContext)(Pae);return e.fromCAIP10!==(null==c?void 0:c.account)?(0,n.jsxs)(B7,Object.assign({theme:u,alignSelf:"start",textAlign:"start",fontSize:null===(t=u.fontSize)||void 0===t?void 0:t.chatReceivedBubbleAddressText,fontWeight:null===(r=u.fontWeight)||void 0===r?void 0:r.chatReceivedBubbleAddressText,color:null===(o=u.textColor)||void 0===o?void 0:o.chatReceivedBubbleAddressText},{children:[null===(a=e.fromDID)||void 0===a?void 0:a.split(":")[1].slice(0,6),"...",null===(s=e.fromDID)||void 0===s?void 0:s.split(":")[1].slice(-6)]})):null},Fge=({chat:e})=>{var t;const{user:r}=(0,i.useContext)(f5),[o,a]=(0,i.useState)({pfpsrc:null,blockie:null}),s=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(s.current&&o.blockie&&null===o.pfpsrc){const e=Fse(o.blockie||"",{size:8,scale:5});s.current.innerHTML="",s.current.appendChild(e)}}),[o.blockie]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var t,n,i;try{const i=yield y8({user:r,recipient:null===(t=e.fromCAIP10)||void 0===t?void 0:t.split(":")[1]});a(i?{pfpsrc:i,blockie:null}:{pfpsrc:null,blockie:null===(n=e.fromCAIP10)||void 0===n?void 0:n.split(":")[1]})}catch(ys){console.error("UIWeb::components::chat::ChatViewBubble::SenderMessageProfilePicture::getUserPfp error",ys),a({pfpsrc:null,blockie:null===(i=e.fromCAIP10)||void 0===i?void 0:i.split(":")[1]})}}))}),[e.fromCAIP10]),(0,n.jsx)(D7,Object.assign({justifyContent:"start",alignItems:"start"},{children:(null===(t=e.fromCAIP10)||void 0===t?void 0:t.split(":")[1])!==(null==r?void 0:r.account)&&(0,n.jsxs)(D7,Object.assign({alignItems:"flex-start",alignSelf:"flex-start"},{children:[o.pfpsrc&&(0,n.jsx)(R7,{src:o.pfpsrc,alt:"profile picture",width:"40px",height:"40px",borderRadius:"50%"}),!o.pfpsrc&&o.blockie&&(0,n.jsx)(O7,{ref:s,height:"40px",width:"40px",borderRadius:"50%",overflow:"hidden"})]}))}))},Uge=({chatPayload:e,showChatMeta:t,children:r})=>{var o,a;const{user:s}=P5(),c=(0,i.useContext)(Pae);return(0,n.jsxs)(Hge,Object.assign({theme:c,flexDirection:"row",justifyContent:"start",gap:"6px",width:"100%",maxWidth:"100%"},{children:[t&&l8(null==e?void 0:e.fromCAIP10)!==l8(null!==(o=null==s?void 0:s.account)&&void 0!==o?o:"")&&(0,n.jsx)(Fge,{chat:e}),(0,n.jsxs)(D7,Object.assign({justifyContent:"start",flexDirection:"column",maxWidth:"100%",width:"100%"},{children:[t&&l8(null==e?void 0:e.fromCAIP10)!==l8(null!==(a=null==s?void 0:s.account)&&void 0!==a?a:"")&&(0,n.jsx)(Lge,{chat:e}),r]}))]}))},zge=({decryptedMessagePayload:e,chatPayload:t,chatReactions:r,setReplyPayload:o,showChatMeta:a=!1,chatId:s,actionId:c,singularActionId:u,setSingularActionId:l})=>{var d,f,h,p,g,m,y,b,v,w,A,C,E,x;const S=(0,i.useContext)(Pae),I=null!=t?t:e,[k,_]=(0,i.useState)(!1),[T,M]=(0,i.useState)(!1),{user:P}=P5(),j=l8(I.fromDID).toLowerCase()!==(null===(f=l8(null!==(d=null==P?void 0:P.account)&&void 0!==d?d:""))||void 0===f?void 0:f.toLowerCase())?0:1,D=(0,i.useRef)(null);return(0,n.jsx)(Uge,Object.assign({chatPayload:I,showChatMeta:a},{children:(0,n.jsxs)(Vge,Object.assign({flexDirection:j?"row-reverse":"row",alignSelf:j?"start":"end",justifyContent:"start",gap:"10px",maxWidth:"100%",width:"100%",onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1)},{children:[(0,n.jsxs)(Kge,Object.assign({margin:"6px 0px 0px 0px",flexDirection:"column",alignSelf:"flex-start"},{children:[(0,n.jsx)(D7,Object.assign({alignSelf:j?"flex-end":"flex-start",borderRadius:j?`${null===(h=S.borderRadius)||void 0===h?void 0:h.chatBubbleBorderRadius} 0px ${null===(p=S.borderRadius)||void 0===p?void 0:p.chatBubbleBorderRadius} ${null===(g=S.borderRadius)||void 0===g?void 0:g.chatBubbleBorderRadius}`:`0px ${null===(m=S.borderRadius)||void 0===m?void 0:m.chatBubbleBorderRadius} ${null===(y=S.borderRadius)||void 0===y?void 0:y.chatBubbleBorderRadius} ${null===(b=S.borderRadius)||void 0===b?void 0:b.chatBubbleBorderRadius}`,overflow:"hidden"},{children:(0,n.jsx)(xge,{chat:I,chatId:s})})),r&&!!r.length&&(0,n.jsx)(D7,Object.assign({gap:"4px",margin:"-5px 0px 0px 0px",left:"10px",justifyContent:"flex-start"},{children:(0,n.jsx)(Rge,{chatReactions:r})}))]})),(0,n.jsx)(Gge,Object.assign({ref:D,flexDirection:"column",alignItems:j?"flex-end":"flex-start",justifyContent:"flex-end",margin:r&&r.length?"0px 0px 41px 0px":"0px 0px 15px 0px",gap:"2px",width:"auto",flex:"1 0 auto",style:{visibility:k||T&&c===u?"visible":"hidden"}},{children:P&&!P.readmode()&&s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L7,Object.assign({borderRadius:null===(v=S.borderRadius)||void 0===v?void 0:v.reactionsPickerBorderRadius,background:"transparent",hoverBackground:null===(w=S.backgroundColor)||void 0===w?void 0:w.chatReceivedBubbleBackground,padding:null===(A=S.padding)||void 0===A?void 0:A.reactionsPickerPadding,border:null===(C=S.border)||void 0===C?void 0:C.reactionsBorder,hoverBorder:null===(E=S.border)||void 0===E?void 0:E.reactionsHoverBorder,onClick:e=>{e.stopPropagation(),null==o||o(I)}},{children:(0,n.jsx)(Iae,{color:null===(x=S.iconColor)||void 0===x?void 0:x.emoji,size:20})})),(0,n.jsx)(Nge,{chatId:s,chat:I,userSelectingReaction:T&&c===u,setUserSelectingReaction:M,actionId:c,singularActionId:u,setSingularActionId:l,chatSidebarRef:D})]})}))]}))}))},Hge=(0,o.Ay)(D7).withConfig({displayName:"ChatViewBubble__MessageSection",componentId:"sc-15kn8zb-0"})([""]),Vge=(0,o.Ay)(D7).withConfig({displayName:"ChatViewBubble__ChatWrapperSection",componentId:"sc-15kn8zb-1"})([""]),Kge=(0,o.Ay)(D7).withConfig({displayName:"ChatViewBubble__ChatBubbleSection",componentId:"sc-15kn8zb-2"})(["max-width:70%;@media ","{max-width:90%;}@media ","{max-width:90%;}"],c5.tablet,c5.mobileL),Gge=(0,o.Ay)(D7).withConfig({displayName:"ChatViewBubble__ChatBubbleSidebarSection",componentId:"sc-15kn8zb-3"})(["width:auto;position:relative;"]),qge=()=>{};class Qge extends i.Component{constructor(){super(...arguments),this._progress=0,this._particles=[],this._canvas=null,this._wrapper=null,this._ctx=null,this._raf=null,this.state={status:this.props.hidden?"hidden":"normal",progress:0},this._rect={width:0,height:0},this._canvasRef=e=>{this._canvas=e},this._wrapperRef=e=>{this._wrapper=e},this._startAnimation=()=>{if(!this._canvas||!this._wrapper)return;const{duration:e,easing:t,canvasPadding:r=150,onBegin:n}=this.props,{status:i}=this.state;this._progress="hiding"===i?0:1,this._particles=[],this._rect=this._wrapper.getBoundingClientRect(),this._canvas.width=this._rect.width+2*r,this._canvas.height=this._rect.height+2*r,this._ctx=this._canvas.getContext("2d"),mI()({targets:{value:"hiding"===i?0:100},value:"hiding"===i?100:0,duration:e,easing:t,begin:n,update:t=>{const r=t.animatables[0].target.value;setTimeout((()=>{this.setState({progress:r})})),e&&this._addParticles(r/100)}})},this._loop=()=>{this._updateParticles(),this._renderParticles(),this._particles.length?this._raf=wI()(this._loop):(this._raf=null,this._cycleStatus(),this.props.onComplete&&this.props.onComplete())}}componentWillReceiveProps(e){if(e.hidden!==this.props.hidden){const{status:t}=this.state;"normal"===t&&e.hidden?this.setState({status:"hiding"},this._startAnimation):"hidden"!==t||e.hidden?("hiding"!==t||e.hidden)&&"showing"===t&&e.hidden:this.setState({status:"showing"},this._startAnimation)}}render(){const{children:e,className:t,direction:r}=this.props,{status:i,progress:o}=this.state,a={},s={},c={};if("hiding"===i||"showing"===i){const e=this._isHorizontal()?"translateX":"translateY",t=this._isHorizontal()?this._rect.width:this._rect.height,n="left"===r||"top"===r?o:-o,i=Math.ceil(t*n/100);a.transform=`${e}(${i}px)`,s.transform=`${e}(${-i}px)`}else"hidden"===i?(a.visibility="hidden",c.visibility="hidden"):"normal"===i&&(c.visibility="hidden");return(0,n.jsxs)(Jge,Object.assign({className:bI()(t)},{children:[(0,n.jsx)(Yge,Object.assign({className:"",style:a,ref:this._wrapperRef},{children:"hidden"!==i&&(0,n.jsx)(Zge,Object.assign({className:"",style:s},{children:e}))})),(0,n.jsx)($ge,{ref:this._canvasRef,style:c})]}))}_cycleStatus(){const{status:e}=this.state;"normal"===e?this.setState({status:"hiding"}):"hidden"===e?this.setState({status:"showing"}):"hiding"===e?this.setState({status:"hidden"}):"showing"===e&&this.setState({status:"normal"})}_addParticles(e){const{canvasPadding:t,direction:r,particlesAmountCoefficient:n=1}=this.props,{status:i}=this.state,{width:o,height:a}=this._rect,s="hiding"===i?e-this._progress:this._progress-e,c=this._isHorizontal(),u=(c?o:a)*e+s*("hiding"===i?100:220);this._progress=e;let l=null!=t?t:150,d=null!=t?t:150;c?l+="left"===r?u:o-u:d+="top"===r?u:a-u;let f=Math.floor(n*(100*s+1));if(f>0)for(;f--;)this._addParticle({x:l+(c?0:o*Math.random()),y:d+(c?a*Math.random():0)});this._raf||(this._raf=wI()(this._loop))}_addParticle(e){const{duration:t,size:r,speed:n}=this.props,{status:i}=this.state,o=60*(t||1e3)/1e3,a="function"==typeof n?n():n||1,s="function"==typeof r?r():r;this._particles.push({startX:e.x,startY:e.y,x:"hiding"===i?0:a*-o,y:0,angle:Wge(360),counter:"hiding"===i?0:o,increase:2*Math.PI/100,life:0,death:"hiding"===i?o-20+40*Math.random():o,speed:a,size:s})}_updateParticles(){const{oscillationCoefficient:e=1}=this.props,{status:t}=this.state;for(let r=0;rn.death?this._particles.splice(r,1):(n.x+=n.speed,n.y=e*Math.sin(n.counter*n.increase),n.life++,n.counter+="hiding"===t?1:-1)}}_renderParticles(){const{color:e,type:t,style:r}=this.props,{status:n}=this.state;if(this._ctx&&this._canvas){this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._ctx.fillStyle=this._ctx.strokeStyle=e||"#000";for(let e=0;eMath.floor(3*Math.random()+1),speed:()=>Wge(4),color:"#000",particlesAmountCoefficient:3,oscillationCoefficient:20,onBegin:qge,onComplete:qge};const Jge=o.Ay.div.withConfig({displayName:"ParticleEffectButton__Particles",componentId:"sc-1jg18hj-0"})(["position:relative;display:inline-block;"]),Yge=o.Ay.div.withConfig({displayName:"ParticleEffectButton__Wrapper",componentId:"sc-1jg18hj-1"})(["position:relative;display:inline-block;overflow:hidden;"]),Zge=o.Ay.div.withConfig({displayName:"ParticleEffectButton__Content",componentId:"sc-1jg18hj-2"})(["&:focus,& > *:focus{outline:none;}"]),$ge=o.Ay.canvas.withConfig({displayName:"ParticleEffectButton__Canvas",componentId:"sc-1jg18hj-3"})(["position:absolute;top:50%;left:50%;transform:translate3d(-50%,-50%,0);pointer-events:none;"]),Xge={GROUP:"You were invited to this group. Please accept to continue messaging in this group.",W2W:"This wallet wants to chat with you! Please accept to continue or reject to decline."},eme=({chatInfo:e=null})=>{var t,r,o,a,s,c,u,l,d,f;const{user:h,toast:p}=P5(),g=(0,i.useContext)(Pae),{approveChatRequest:m,loading:y}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{user:o}=P5(),a=(0,i.useCallback)((r=>pJ(void 0,void 0,void 0,(function*(){const{chatId:i}=r||{};n(!0);try{const e=yield null==o?void 0:o.chat.accept(i);return n(!1),e}catch(e){return n(!1),t(e.message),void console.log(e)}}))),[o]);return{approveChatRequest:a,error:e,loading:r}})(),{rejectChatRequest:b,loading:v}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{user:o}=P5(),a=(0,i.useCallback)((r=>pJ(void 0,void 0,void 0,(function*(){const{chatId:i}=r||{};n(!0);try{const e=yield null==o?void 0:o.chat.reject(i);return n(!1),e}catch(e){return n(!1),t(e.message),void console.log(e)}}))),[o]);return{rejectChatRequest:a,error:e,loading:r}})(),[w,A]=(0,i.useState)(!1),[C,E]=(0,i.useState)(!1);return(0,n.jsx)(D7,Object.assign({justifyContent:"start"},{children:(0,n.jsx)(Qge,Object.assign({color:null===(t=g.iconColor)||void 0===t?void 0:t.approveRequest,hidden:w},{children:(0,n.jsx)(Qge,Object.assign({color:null===(r=g.iconColor)||void 0===r?void 0:r.rejectRequest,hidden:C,type:"triangle",direction:"right"},{children:(0,n.jsxs)(D7,Object.assign({color:null===(o=g.textColor)||void 0===o?void 0:o.chatReceivedBubbleText,gap:"10px",background:null===(a=g.backgroundColor)||void 0===a?void 0:a.chatReceivedBubbleBackground,padding:"16px 24px",margin:"7px 0",borderRadius:" 0px 12px 12px 12px",alignSelf:"start",justifyContent:"start",maxWidth:"600px",minWidth:"150px",position:"relative",flexDirection:"row"},{children:[(0,n.jsx)(B7,Object.assign({alignSelf:"center",textAlign:"left",fontSize:null===(s=g.fontSize)||void 0===s?void 0:s.chatReceivedBubbleText,fontWeight:null===(c=g.fontWeight)||void 0===c?void 0:c.chatReceivedBubbleText,color:null===(u=g.textColor)||void 0===u?void 0:u.chatReceivedBubbleText,lineHeight:"24px",maxWidth:"250px"},{children:(null===(l=null==e?void 0:e.meta)||void 0===l?void 0:l.group)?Xge.GROUP:Xge.W2W})),(0,n.jsx)(tme,Object.assign({theme:g,onClick:()=>y||v?null:pJ(void 0,void 0,void 0,(function*(){try{if(!h||h.readmode())return;(null==e?void 0:e.recipient)?(yield b({chatId:null==e?void 0:e.recipient}),E(!0),p.showMessageToast({toastTitle:"Invitation Declined",toastMessage:"This conversation has been removed from your request list.",toastType:"WARNING",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"grey"})})):p.showMessageToast({toastTitle:"Error",toastMessage:"Invalid Chat ID",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"red"})})}catch(t){console.error("UIWeb::ActionRequestBubble::handleRejectChatRequest::error",t)}})),className:C||w?"disabled":v?"active secondary":y?"disabled secondary":""},{children:v?(0,n.jsx)(k7,{color:"#fff",size:"24"}):(0,n.jsx)(xae,{size:40,color:null===(d=g.iconColor)||void 0===d?void 0:d.rejectRequest})})),(0,n.jsx)(tme,Object.assign({theme:g,onClick:()=>y||v?null:pJ(void 0,void 0,void 0,(function*(){try{if(!h||h.readmode())return;(null==e?void 0:e.recipient)?(yield m({chatId:null==e?void 0:e.recipient}),A(!0)):p.showMessageToast({toastTitle:"Error",toastMessage:"Invalid Chat",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"red"})})}catch(t){console.error("UIWeb::ActionRequestBubble::handleApproveChatRequest::error",t)}})),className:C||w?"disabled":y?"active primary":v?"disabled primary":""},{children:y?(0,n.jsx)(k7,{color:"#fff",size:"24"}):(0,n.jsx)(Eae,{size:40,color:null===(f=g.iconColor)||void 0===f?void 0:f.approveRequest})}))]}))}))}))}))},tme=o.Ay.button.withConfig({displayName:"ActionRequestBubble__Button",componentId:"sc-gg4j4g-0"})(["border:none;cursor:pointer;border-radius:100%;background:transparent;padding:0px;border:none;height:40px;width:40px;display:flex;justify-content:center;align-items:center;&.disabled{cursor:not-allowed;opacity:0.5;}&.primary.active{background:",";}&.secondary.active{background:",";}"],(e=>{var t;return null===(t=e.theme.iconColor)||void 0===t?void 0:t.approveRequest}),(e=>{var t;return null===(t=e.theme.iconColor)||void 0===t?void 0:t.rejectRequest})),rme="ENCRYPTED",nme="NO_ENCRYPTED",ime="NO_ENCRYPTED_GROUP",ome="PREVIEW",ame="LOADING",sme=({id:e,className:t})=>{var r,o,a;const s=(0,i.useContext)(Pae),c=V9(771),u={ENCRYPTED:{IconComponent:(0,n.jsx)(zae,{size:"15"}),text:"Messages are end-to-end encrypted. Only users in this chat can view or listen to them."},NO_ENCRYPTED:{IconComponent:(0,n.jsx)(Hae,{size:"15"}),text:"Messages are not encrypted"},NO_ENCRYPTED_GROUP:{IconComponent:(0,n.jsx)(Hae,{size:"15"}),text:"Messages in this group are not encrypted"},PREVIEW:{IconComponent:(0,n.jsx)(Cae,{size:15,color:null===(r=null==s?void 0:s.iconColor)||void 0===r?void 0:r.subtleColor}),text:"Chat in preview mode. Only public groups messages are visible."},LOADING:{IconComponent:null,text:"Please wait while Push Chat loads the status of this chat..."}};return(0,n.jsx)(D7,Object.assign({padding:"10px",alignSelf:"center",borderRadius:"12px",background:null===(o=s.backgroundColor)||void 0===o?void 0:o.encryptionMessageBackground,margin:"10px 10px 0px",width:c?"80%":"fit-content"},{children:(0,n.jsxs)(cme,Object.assign({textAlign:"center"},{children:[u[e].IconComponent?u[e].IconComponent:null,(0,n.jsx)(B7,Object.assign({fontSize:"13px",margin:"0 0 0 5px",color:null===(a=s.textColor)||void 0===a?void 0:a.encryptionMessageText,fontWeight:"400",textAlign:"left",className:t,animation:s.skeletonBG},{children:u[e].text}))]}))}))},cme=(0,o.Ay)(O7).withConfig({displayName:"MessageEncryption__EncryptionMessageDiv",componentId:"sc-dk1cef-0"})(["display:flex;text-align:center;svg{vertical-align:middle;}"]),ume="Invalid chatId",lme=e=>{var t,r,o,a,c,u,l;const[d,f]=(0,i.useState)({loading:!0,chatInfo:null,isHidden:!1,invalidChat:!1}),{chatId:h,limit:p=V4,chatFilterList:g=[],setReplyPayload:m}=e||{},{user:y,toast:b}=P5(),[v,w]=(0,i.useState)([]),[A,C]=(0,i.useState)({}),{historyMessages:E,historyLoading:x}=j5(),S=(0,i.useRef)(null),[I,k]=(0,i.useState)(!1);O5();const[_,T]=(0,i.useState)(null),{chatStream:M,chatAcceptStream:P,chatRequestStream:j,participantJoinStream:D,participantLeaveStream:O,participantRemoveStream:B}=P5(),N=(0,i.useContext)(Pae),R=new Set;(0,i.useEffect)((()=>(pJ(void 0,void 0,void 0,(function*(){var e,t,r,n;if(y&&h){const i=yield y.chat.info(h);console.debug("UIWeb::components::ChatViewList::useEffect::fetchChat",i);let o=!1;o=y&&y.readmode()?null===(r=!(null===(t=null===(e=null==i?void 0:i.meta)||void 0===e?void 0:e.groupInfo)||void 0===t?void 0:t.public))||void 0===r||r:y&&(null==i?void 0:i.meta)?!(null===(n=null==i?void 0:i.meta)||void 0===n?void 0:n.visibility):!!(null==i?void 0:i.meta),f({loading:!1,chatInfo:Object.keys(i||{}).length?i:null,isHidden:o,invalidChat:void 0===i})}})),()=>{f({loading:!0,chatInfo:null,isHidden:!1,invalidChat:!1})})),[h,y]),(0,i.useEffect)((()=>{d.loading||function(){pJ(this,void 0,void 0,(function*(){yield U()}))}()}),[d.loading]),(0,i.useEffect)((()=>{if(S.current){const e=S.current,t=parseInt(e.getAttribute("data-old-scroll-height")||"0",10),r=e.scrollHeight-t;e.scrollTop+=r}pJ(void 0,void 0,void 0,(function*(){var e;!d.loading&&S&&(null==S?void 0:S.current)&&(null===(e=null==S?void 0:S.current)||void 0===e?void 0:e.parentElement)&&!x&&!I&&(console.debug("UIWeb::ChatViewList::useEffect[messages, reactions]::Checking if we need to load more chats::",v,A,S.current.clientHeight,25,S.current.parentElement.clientHeight,S.current.clientHeight+25{const e=new ResizeObserver((e=>{var t,r;for(const n of e){const{height:e}=n.contentRect;if(S.current&&0!==e){const n="true"===S.current.getAttribute("data-scroll-locked");0!==e&&n&&(S.current.setAttribute("data-programmable-scroll","true"),null===(t=S.current)||void 0===t||t.scrollTo(0,null===(r=S.current)||void 0===r?void 0:r.scrollHeight),setTimeout((()=>{S.current&&S.current.setAttribute("data-programmable-scroll","false")}),1e3))}}}));return L.current&&e.observe(L.current),()=>e.disconnect()}),[L.current]),(0,i.useEffect)((()=>{if(Object.keys(P||{}).length>0&&P.constructor===Object||Object.keys(D||{}).length>0&&D.constructor===Object){const e=Object.assign({},d.chatInfo);e&&(e.list="CHATS",(null==e?void 0:e.meta)&&(e.meta.visibility=!0));const t=setTimeout((()=>{f(Object.assign(Object.assign({},d),{chatInfo:e,isHidden:!1}))}),1e3);return()=>clearTimeout(t)}return()=>{}}),[P,D]),(0,i.useEffect)((()=>{if(Object.keys(B||{}).length>0&&B.constructor===Object||Object.keys(O||{}).length>0&&O.constructor===Object){const e=Object.assign({},d.chatInfo);e&&(e.list="UNINITIALIZED",(null==e?void 0:e.meta)&&(e.meta.visibility=!1)),f(Object.assign(Object.assign({},d),{chatInfo:e,isHidden:!0}))}}),[B,O]),(0,i.useEffect)((()=>{Object.keys(M||{}).length>0&&M.constructor===Object&&F(M)}),[M]),(0,i.useEffect)((()=>{Object.keys(j||{}).length>0&&j.constructor===Object&&F(j)}),[j]);const F=e=>{var t;if(y&&d.chatInfo&&((null==e?void 0:e.chatId)===(null===(t=d.chatInfo)||void 0===t?void 0:t.chatId)||((e,t)=>"self"===(null==e?void 0:e.origin)?u8(t)===u8(null==e?void 0:e.to[0]):"other"===(null==e?void 0:e.origin)&&u8(t)===u8(null==e?void 0:e.from))(e,h))){const t=(e=>{var t,r,n,i,o,a,s,c,u;return{fromCAIP10:null==e?void 0:e.from,toCAIP10:null==e?void 0:e.to[0],fromDID:null==e?void 0:e.from,toDID:null==e?void 0:e.to[0],messageType:null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.type,messageObj:{content:null===(r=null==e?void 0:e.message)||void 0===r?void 0:r.content,reference:null===(n=null==e?void 0:e.message)||void 0===n?void 0:n.reference},sigType:(null===(i=null==e?void 0:e.raw)||void 0===i?void 0:i.sigType)||"",link:`previous:v2${null==e?void 0:e.reference}`,timestamp:parseInt(null==e?void 0:e.timestamp),encType:(null===(o=null==e?void 0:e.raw)||void 0===o?void 0:o.encType)||"",encryptedSecret:(null===(a=null==e?void 0:e.raw)||void 0===a?void 0:a.encryptedSecret)||"",cid:null==e?void 0:e.reference,messageContent:null===(s=null==e?void 0:e.message)||void 0===s?void 0:s.content,signature:(null===(c=null==e?void 0:e.raw)||void 0===c?void 0:c.signature)||"",verificationProof:(null===(u=null==e?void 0:e.raw)||void 0===u?void 0:u.verificationProof)||""}})(e);if(v&&v.length){const e=S8(v,[t],!1);z(e)}else z([t])}},U=()=>pJ(void 0,void 0,void 0,(function*(){var e,t,r,n;if(y&&!I&&!x){const i=v&&(null==v?void 0:v.length)?v[0].link:null,o=yield E({limit:p,chatId:h,reference:i});if(o&&(null==o?void 0:o.length)){const e=null==o?void 0:o.reverse();if(v&&(null==v?void 0:v.length)){const t=S8(v,e,!0);z(t)}else z(e)}(y&&y.readmode()&&!1===(null===(t=null===(e=d.chatInfo)||void 0===e?void 0:e.meta)||void 0===t?void 0:t.visibility)||!1===(null===(n=null===(r=d.chatInfo)||void 0===r?void 0:r.meta)||void 0===n?void 0:n.group))&&k(!0),(!o||(null==o?void 0:o.length){const t=e.filter((e=>!g.includes(e.cid))),r=(e=>{var t,r;const n=A;for(const i of e)if("Reaction"===i.messageType){const e=i,o=null!==(r=null===(t=e.messageObj)||void 0===t?void 0:t.reference)&&void 0!==r?r:"";n[o]||(n[o]=[]),n[o].push(e)}return n})(t);console.debug(`UIWeb::ChatViewList::filterChatMessages::uniqueMessageList::${(new Date).toISOString()}`,t),console.debug(`UIWeb::ChatViewList::filterChatMessages::reactionMessages::${(new Date).toISOString()}`,r),t&&t.length&&w([...t]),r&&r.length&&C(JSON.parse(JSON.stringify(r)))},H=({chat:e,dateNum:t,uid:r})=>{var i,o,a;const s=F8(e.timestamp);return R.add(t),(0,n.jsx)(B7,Object.assign({margin:"15px 0",fontSize:null===(i=N.fontSize)||void 0===i?void 0:i.timestamp,fontWeight:null===(o=N.fontWeight)||void 0===o?void 0:o.timestamp,color:null===(a=N.textColor)||void 0===a?void 0:a.timestamp,textAlign:"center",zIndex:r},{children:s}),r)};return(0,n.jsxs)(dme,Object.assign({"data-scroll-locked":"true","data-programmable-scroll":"false",blur:!1,overflow:"auto",flexDirection:"column",ref:S,width:"100%",height:"auto",justifyContent:"start",padding:"0 2px",theme:N,onScroll:e=>{e.stopPropagation(),I||pJ(void 0,void 0,void 0,(function*(){if(S.current){const{scrollTop:e,scrollHeight:t,clientHeight:r}=S.current;let n="true"===S.current.getAttribute("data-scroll-locked");const i="true"===S.current.getAttribute("data-programmable-scroll");if(S.current.getAttribute("data-programmable-scroll-top"),!1===i&&(n=!1),e+r>=t-10&&(n=!0),S.current.setAttribute("data-scroll-locked",n.toString()),0===e){const e=S.current.scrollHeight;S.current.setAttribute("data-old-scroll-height",e.toString()),yield U()}}}))},onClick:()=>{T(null)}},{children:[(0,n.jsxs)(D7,Object.assign({margin:"5px 0 10px 0",minWidth:"150px",minHeight:"20px"},{children:[d.loading&&(0,n.jsx)(sme,{id:ame,className:"skeleton"}),!d.loading&&((null===(r=null===(t=d.chatInfo)||void 0===t?void 0:t.meta)||void 0===r?void 0:r.encrypted)?(0,n.jsx)(sme,{id:rme}):y&&y.readmode()?(0,n.jsx)(sme,{id:ome}):(0,n.jsx)(sme,{id:(null===(a=null===(o=d.chatInfo)||void 0===o?void 0:o.meta)||void 0===a?void 0:a.group)?ime:nme}))]})),d.loading?(0,n.jsx)(k7,{color:N.spinnerColor}):"",!d.loading&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(D7,Object.assign({margin:"10px 0 0 0",flexDirection:"column"},{children:[d.invalidChat&&(0,n.jsx)(B7,Object.assign({fontSize:"13px",color:null===(c=N.textColor)||void 0===c?void 0:c.encryptionMessageText,fontWeight:"400"},{children:ume})),x?(0,n.jsx)(k7,{color:N.spinnerColor}):""]})),(0,n.jsxs)(fme,Object.assign({flexDirection:"column",justifyContent:"start",width:"100%",ref:L,blur:d.isHidden&&"REQUESTS"!==(null===(u=null==d?void 0:d.chatInfo)||void 0===u?void 0:u.list)},{children:[v&&(null==v?void 0:v.map(((e,t)=>{var r,i,o,a,c,u,l,f;if("Reaction"===(null==e?void 0:e.messageType))return null;const p=s()(e.timestamp).format("L"),g=(null===(r=l8(e.fromDID))||void 0===r?void 0:r.toLowerCase())!==(null===(o=l8(null!==(i=null==y?void 0:y.account)&&void 0!==i?i:""))||void 0===o?void 0:o.toLowerCase())?0:1,b=""+(999999999-t);return(0,n.jsxs)(n.Fragment,{children:[R.has(p)?null:H({chat:e,dateNum:p,uid:b}),(0,n.jsx)(D7,Object.assign({justifyContent:g?"end":"start",zIndex:b,margin:g?null===(a=N.margin)||void 0===a?void 0:a.chatBubbleSenderMargin:null===(c=N.margin)||void 0===c?void 0:c.chatBubbleReceiverMargin},{children:(0,n.jsx)(zge,{decryptedMessagePayload:e,chatPayload:e,chatReactions:A[e.cid]||[],setReplyPayload:m,showChatMeta:null!==(f=null===(l=null===(u=d.chatInfo)||void 0===u?void 0:u.meta)||void 0===l?void 0:l.group)&&void 0!==f&&f,chatId:h,actionId:e.cid,singularActionId:_,setSingularActionId:T},`chatbubble-${null==y?void 0:y.uid}-${b}-${t}`)}),`section-${null==y?void 0:y.uid}-${b}-${t}`)]})}))),d.chatInfo&&"REQUESTS"===(null===(l=d.chatInfo)||void 0===l?void 0:l.list)&&(0,n.jsx)(eme,{chatInfo:d.chatInfo})]}),`section-chatview-${null==y?void 0:y.uid}`)]})]}),null==y?void 0:y.uid)},dme=(0,o.Ay)(D7).withConfig({displayName:"ChatViewList__ChatViewListCard",componentId:"sc-1e83dab-0"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar{width:5px;}overscroll-behavior:contain;"],(e=>e.theme.scrollbarColor)),fme=(0,o.Ay)(D7).withConfig({displayName:"ChatViewList__ChatViewListCardInner",componentId:"sc-1e83dab-1"})(["filter:",";"],(e=>e.blur?"blur(12px)":"none")),hme=({height:e="8",width:t="8"})=>(0,n.jsx)("svg",Object.assign({width:t,height:e,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M0.130244 7.24089L6.48282 0.888862H1.77797C1.6601 0.888862 1.54706 0.842038 1.46371 0.758691C1.38036 0.675344 1.33354 0.562301 1.33354 0.444431C1.33354 0.32656 1.38036 0.213518 1.46371 0.130171C1.54706 0.0468235 1.6601 4.76837e-07 1.77797 4.76837e-07H7.55557C7.67344 4.76837e-07 7.78648 0.0468235 7.86983 0.130171C7.95318 0.213518 8 0.32656 8 0.444431V6.22203C8 6.3399 7.95318 6.45294 7.86983 6.53629C7.78648 6.61964 7.67344 6.66646 7.55557 6.66646C7.4377 6.66646 7.32466 6.61964 7.24131 6.53629C7.15796 6.45294 7.11114 6.3399 7.11114 6.22203V1.51718L0.759113 7.86976C0.717821 7.91105 0.6688 7.9438 0.61485 7.96615C0.560899 7.9885 0.503074 8 0.444678 8C0.386282 8 0.328458 7.9885 0.274508 7.96615C0.220557 7.9438 0.171535 7.91105 0.130244 7.86976C0.0889516 7.82846 0.0561972 7.77944 0.0338502 7.72549C0.0115027 7.67154 4.76837e-07 7.61372 4.76837e-07 7.55532C4.76837e-07 7.49693 0.0115027 7.4391 0.0338502 7.38515C0.0561972 7.3312 0.0889516 7.28218 0.130244 7.24089Z",fill:"#D53A94"})})),pme=()=>(0,n.jsx)("svg",Object.assign({width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M27.4625 3.24124L20.9125 26.4787C20.8033 26.8722 20.5755 27.2225 20.2602 27.4819C19.9448 27.7414 19.5572 27.8974 19.15 27.9287H18.975C18.5983 27.9279 18.2295 27.8207 17.9111 27.6194C17.5926 27.4182 17.3375 27.1311 17.175 26.7912L12.7125 17.3662C12.6687 17.2716 12.6548 17.1659 12.6727 17.0631C12.6906 16.9604 12.7394 16.8655 12.8125 16.7912L19.225 10.3787C19.3254 10.2878 19.4063 10.1774 19.4627 10.0542C19.5191 9.93107 19.55 9.79773 19.5533 9.6623C19.5566 9.52688 19.5324 9.39219 19.4821 9.26641C19.4318 9.14063 19.3565 9.02637 19.2607 8.93058C19.1649 8.8348 19.0507 8.75947 18.9249 8.70917C18.7991 8.65888 18.6644 8.63466 18.529 8.638C18.3936 8.64133 18.2602 8.67214 18.1371 8.72857C18.0139 8.785 17.9035 8.86585 17.8125 8.96624L11.4 15.3912C11.3258 15.4644 11.2309 15.5132 11.1282 15.5311C11.0254 15.549 10.9197 15.5351 10.825 15.4912L1.45004 11.0537C1.08311 10.8804 0.775053 10.6033 0.563988 10.2567C0.352924 9.91016 0.248118 9.50928 0.262542 9.10374C0.284668 8.68619 0.437922 8.28625 0.700498 7.96083C0.963074 7.63542 1.32159 7.40111 1.72504 7.29124L25.0125 0.728741C25.4198 0.612421 25.8536 0.628425 26.2512 0.774446C26.6488 0.920467 26.9898 1.18896 27.225 1.54124C27.3829 1.79158 27.4857 2.07261 27.5266 2.3657C27.5676 2.65879 27.5457 2.95723 27.4625 3.24124Z",fill:"#D53A94"})})),gme=({autoConnect:e=!1})=>{const{user:t,preInitializeUser:r}=P5(),{wallet:o,connecting:a,connect:s,disconnect:c}=D5({env:t?t.env:_.CONSTANTS.ENV.PROD}),{signer:u,setAccount:l,setSigner:d}=P5(),f=(0,i.useContext)(Pae);return(0,i.useEffect)((()=>{o&&!e&&c(o),o?pJ(void 0,void 0,void 0,(function*(){const e=new E.j(o.provider,"any").getSigner(),t=yield h8(e);r(t,e)})):o||(l(""),d(void 0))}),[o]),u?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(mme,Object.assign({theme:f},{children:(0,n.jsx)("button",Object.assign({onClick:()=>o?c(o):s()},{children:a?"connecting":o?"disconnect":"Connect Wallet"}))}))},mme=o.Ay.div.withConfig({displayName:"ConnectButton__ConnectButtonDiv",componentId:"sc-c9327r-0"})(["width:fit-content;button{background:",";color:",";text-align:center;font-size:1em;cursor:pointer;border-radius:10px;padding:10px 20px;outline:none;border:none;cursor:pointer;font-weight:600;}button:hover{scale:1.05;transition:0.3s;}@media ","{font-size:12px;}body.modal-open{overflow-y:hidden;}"],(e=>{var t;return`${null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.buttonBackground}!important`}),(e=>{var t;return`${null===(t=e.theme.textColor)||void 0===t?void 0:t.buttonText}!important`}),c5.mobileL),yme=({autoConnect:e})=>{const{user:t,toast:r}=P5();return(0,n.jsxs)(D7,Object.assign({width:"100%",justifyContent:"space-between",alignItems:"center",padding:"8px"},{children:[!(t&&!(null==t?void 0:t.readmode())&&(null==t?void 0:t.account))&&(0,n.jsx)(B7,Object.assign({padding:"8px 8px 8px 16px",color:"#B6BCD6",fontSize:"15px",fontWeight:"400",textAlign:"start"},{children:"You need to connect your wallet to get started"})),(0,n.jsx)(gme,{autoConnect:e})]}))},bme=({chatId:e,emoji:t=!0,gif:r=!0,file:o=!0,replyPayload:a=null,setReplyPayload:s,isConnected:c=!0,autoConnect:u=!1,verificationFailModalBackground:l=k5.OVERLAY,verificationFailModalPosition:d=_5.GLOBAL,onVerificationFail:f})=>{var h,p,g,m,y,b,v,w,A,C,E,x,S;const[I,k]=(0,i.useState)(""),[_,T]=(0,i.useState)(!1),[M,P]=(0,i.useState)(!1),j=(0,i.useRef)(null),D=(0,i.useRef)(null),[O,B]=(0,i.useState)(!1),[N,R]=(0,i.useState)(!1),[L,F]=(0,i.useState)(!1),[U,z]=(0,i.useState)(""),{getGroupByIDnew:H}=uce(),[V,K]=(0,i.useState)(null),[G,q]=(0,i.useState)(null),Q=(0,i.useContext)(Pae),W=V9(425),{sendMessage:J,loading:Y}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{user:o}=P5(),a=(0,i.useCallback)((r=>pJ(void 0,void 0,void 0,(function*(){const{chatId:i,message:a,messageType:s,replyRef:c}=r||{};n(!0);const u={type:s,content:a};void 0!==c&&(u.type="Reply",u.content={type:s,content:a},u.reference=c),console.log(u);try{const e=yield null==o?void 0:o.chat.send(i,u);return n(!1),e||!1}catch(e){return n(!1),t(e.message),console.log(e),e.message}}))),[o]);return{sendMessage:a,error:e,loading:r}})(),{verifyAccessControl:Z,setVerificationSuccessfull:$,verificationSuccessfull:X,verified:ee,setVerified:te,loading:re}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),[o,a]=(0,i.useState)(!0),[s,c]=(0,i.useState)(!1),{user:u}=P5(),l=(0,i.useCallback)((r=>pJ(void 0,void 0,void 0,(function*(){const{chatId:i,did:o}=r||{};n(!0);try{const e=yield null==u?void 0:u.chat.group.permissions(i);return n(!1),!1===(null==e?void 0:e.chat)||!1===(null==e?void 0:e.entry)?a(!1):!0===(null==e?void 0:e.chat)&&(c(!0),w8(i,!1)),!!e&&void 0}catch(e){return n(!1),a(!1),t(e.message),void console.log(e)}}))),[u]);return{verifyAccessControl:l,error:e,loading:r,verificationSuccessfull:o,setVerificationSuccessfull:a,verified:s,setVerified:c}})(),{fetchMemberStatus:ne,joinGroup:ie,joinLoading:oe,joinError:ae}=N5();G9();const{user:se,toast:ce}=P5();O5();const ue=(0,i.useRef)(null),{chatAcceptStream:le,participantRemoveStream:de,participantLeaveStream:fe,participantJoinStream:he,groupUpdateStream:pe}=P5();H9(j,(()=>{T(!1),P(!1)})),(0,i.useEffect)((()=>{var e,t;if(null===(e=null==ue?void 0:ue.current)||void 0===e?void 0:e.style){ue.current.style.height="25px";const e=null===(t=ue.current)||void 0===t?void 0:t.scrollHeight;ue.current.style.height=e+"px"}}),[ue,I]),(0,i.useEffect)((()=>{!Y&&ue.current&&ue.current.focus()}),[Y,ue]),(0,i.useEffect)((()=>{if(V){const t=localStorage.getItem(e);if(t){const e=JSON.parse(t),r=(new Date).getTime(),n=864e5;Math.abs(r-e){pJ(void 0,void 0,void 0,(function*(){if(se&&e){let t=e;N8(t)&&(t=yield O8(e,se)),z(t);try{const e=yield se.chat.info(t);q(e)}catch(ys){console.error("UIWeb::MessageInput::useEffect[chatId, user]::error while fetching chat info",ys)}}}))}),[e,se]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var e;let t;G&&(null===(e=null==G?void 0:G.meta)||void 0===e?void 0:e.group)&&(t=yield H({groupId:U}),t&&K(t))}))}),[G]),(0,i.useEffect)((()=>{Object.keys(pe||{}).length>0&&pe.constructor===Object&&ge(pe)}),[pe]),(0,i.useEffect)((()=>{se&&se&&V&&pJ(void 0,void 0,void 0,(function*(){const e=yield ne({chatId:V.chatId,accountId:null==se?void 0:se.account});e&&"string"!=typeof e?F(null==e?void 0:e.participant):me("Error","Error in fetching member details")}))}),[se,V,G,le,he,fe,de]),(0,i.useEffect)((()=>{se&&se&&e&&V&&R((e=>{var t,r;let n=!1;return e&&e.rules&&((null===(t=e.rules)||void 0===t?void 0:t.entry)||(null===(r=e.rules)||void 0===r?void 0:r.chat))&&(n=!0),n})(V))}),[e,V,se]),(0,i.useEffect)((()=>{G&&G.chatId===le.chatId&&"REQUESTS"===(null==G?void 0:G.list)&&q((e=>{var t,r,n,i,o,a;return e?Object.assign(Object.assign({},e),{list:"CHATS",chatId:e.chatId,meta:{group:null!==(r=null===(t=e.meta)||void 0===t?void 0:t.group)&&void 0!==r&&r,encrypted:null!==(i=null===(n=e.meta)||void 0===n?void 0:n.encrypted)&&void 0!==i&&i,visibility:null===(a=null===(o=e.meta)||void 0===o?void 0:o.visibility)||void 0===a||a}}):null}))}),[le]);const ge=e=>{var t,r,n,i,o,a;if((null==V?void 0:V.chatId)===(null==e?void 0:e.chatId)){const s=V;s&&(s.groupName=null===(t=null==e?void 0:e.meta)||void 0===t?void 0:t.name,s.groupDescription=null===(r=null==e?void 0:e.meta)||void 0===r?void 0:r.description,s.groupImage=null===(n=null==e?void 0:e.meta)||void 0===n?void 0:n.image,s.groupCreator=null===(i=null==e?void 0:e.meta)||void 0===i?void 0:i.owner,s.isPublic=!(null===(o=null==e?void 0:e.meta)||void 0===o?void 0:o.private),s.rules=null===(a=null==e?void 0:e.meta)||void 0===a?void 0:a.rules,K(s))}},me=(e,t)=>{ce.showMessageToast({toastTitle:e,toastMessage:t,toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})},ye=(e,t)=>{ce.showMessageToast({toastTitle:e,toastMessage:t,toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"green"})})},be=()=>se&&!(null==se?void 0:se.readmode())&&!L,ve=()=>se&&!(null==se?void 0:se.readmode())&&!ee&&L&&N,we=(t,r)=>pJ(void 0,void 0,void 0,(function*(){try{const n=yield J({chatId:U,message:t,messageType:r,replyRef:(null==a?void 0:a.cid)||void 0});n&&"string"==typeof n&&n.includes("403")&&(w8(e,!0),te(!1),$(!1))}catch(ys){console.log(ys)}finally{null==s||s(null)}})),Ae=()=>pJ(void 0,void 0,void 0,(function*(){""!==I.trim()&&(yield we(I,"Text"),k(""))}));return(0,i.useEffect)((()=>{var e;a&&(null===(e=ue.current)||void 0===e||e.focus())}),[a]),se&&!(null==se?void 0:se.readmode())||!c?Object.keys(G||{}).length?(0,n.jsx)(wme,Object.assign({width:"100%",justifyContent:"space-between",alignItems:"center",className:"REQUESTS"===(null==G?void 0:G.list)?"hide":""},{children:(0,n.jsxs)(vme,Object.assign({width:"100%",borderRadius:null===(p=Q.borderRadius)||void 0===p?void 0:p.messageInput,position:"static",border:null===(g=Q.border)||void 0===g?void 0:g.messageInput,padding:" "+(se&&!(null==se?void 0:se.readmode())?"14px 16px":""),background:`${null===(m=Q.backgroundColor)||void 0===m?void 0:m.messageInputBackground}`,alignItems:"center",justifyContent:"space-between"},{children:[Object.keys(G||{}).length&&V?(0,n.jsxs)(n.Fragment,{children:[(be()||ve())&&(0,n.jsxs)(D7,Object.assign({width:"100%",justifyContent:"space-between",alignItems:"center"},{children:[(0,n.jsxs)(B7,Object.assign({padding:"8px 8px 8px 0px",color:null===(y=Q.textColor)||void 0===y?void 0:y.chatReceivedBubbleText,fontSize:"15px",fontWeight:"500",textAlign:"start"},{children:[be()&&"Click on the button to join the group",ve()&&(0,n.jsxs)(n.Fragment,{children:["Sending messages requires to staisfy the group rules."," ",(0,n.jsxs)(Mme,Object.assign({href:"https://push.org/docs/chat/build/conditional-rules-for-group/",target:"_blank",color:null===(b=Q.backgroundColor)||void 0===b?void 0:b.chatSentBubbleBackground},{children:["Learn More ",(0,n.jsx)(hme,{})]}))]})]})),(0,n.jsx)(xme,{children:(0,n.jsxs)(Ime,Object.assign({onClick:()=>pJ(void 0,void 0,void 0,(function*(){return be()?yield pJ(void 0,void 0,void 0,(function*(){G&&V?"string"!=typeof(yield ie({chatId:U}))?ye("Success","Successfully joined group"):ae&&me("Error","Unable to join group"):(yield J({message:`Hello, please let me join this group, my wallet address is ${l8((null==se?void 0:se.account)||"")}`,chatId:(null==V?void 0:V.groupCreator)||"",messageType:"Text"}))?ye("Success","Request sent successfully"):me("Error","Unable to send request")})):yield void((null==se?void 0:se.account)?Z({chatId:e,did:se.account}):console.error("UIWeb::MessageInput::checkVerification::User's account is not available"))}))},{children:[be()&&(0,n.jsx)(n.Fragment,{children:oe?(0,n.jsx)(k7,{color:"#fff",size:"24"}):" Join Group "}),ve()&&(0,n.jsx)(n.Fragment,{children:re?(0,n.jsx)(k7,{color:"#fff",size:"24"}):"Verify Access"})]}))})]})),!!se&&!(null==se?void 0:se.readmode())&&!X&&(0,pI.createPortal)((0,n.jsx)(Pce,Object.assign({width:"550px",modalBackground:l,modalPositionType:d},{children:(0,n.jsxs)(D7,Object.assign({margin:"5px 0px 0px 0px",gap:"16px",flexDirection:"column",width:"100%"},{children:[(0,n.jsx)(jce,{title:"Access Failed"}),(0,n.jsx)(Ele,{theme:Q,groupInfo:V,subheader:"Please make sure the following conditions\n are met to pariticpate and send messages.",alert:!0}),(0,n.jsx)(kme,Object.assign({onClick:()=>{f&&f(),$(!0)}},{children:(0,n.jsx)(Tme,{children:"Cancel"})})),(0,n.jsx)(_ue,{cta:"https://push.org/docs/chat/build/conditional-rules-for-group/",label:"Learn more about access gating rules"})]}))})),document.body)]}):null,se&&!(null==se?void 0:se.readmode())&&((!N||ee)&&L||G&&!V)&&(0,n.jsxs)(D7,Object.assign({flexDirection:"column",flex:"1",gap:"12px"},{children:[a&&(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"flex-start",overflow:"hidden",gap:"8px"},{children:[(0,n.jsxs)(D7,Object.assign({flexDirection:"row",justifyContent:"space-between",alignItems:"center",overflow:"hidden",gap:"8px"},{children:[(0,n.jsxs)(B7,Object.assign({padding:"0px",fontSize:"10px",color:null===(v=Q.iconColor)||void 0===v?void 0:v.emoji},{children:["Reply to ",(0,n.jsx)(B7,Object.assign({fontWeight:"500",padding:"0px"},{children:`${null===(w=a.fromDID)||void 0===w?void 0:w.split(":")[1].slice(0,6)}...${null===(A=a.fromDID)||void 0===A?void 0:A.split(":")[1].slice(-6)}`}))]})),(0,n.jsx)(L7,Object.assign({onClick:e=>{e.stopPropagation(),s&&s(null)}},{children:(0,n.jsx)(xae,{size:14,color:null===(C=Q.textColor)||void 0===C?void 0:C.messageInputText})}))]})),(0,n.jsx)(xge,{chat:a,chatId:e,previewMode:!0,activeMode:!0})]})),(0,n.jsxs)(Ame,Object.assign({flex:"1"},{children:[t&&(0,n.jsx)(O7,Object.assign({width:"25px",cursor:"pointer",height:"25px",alignSelf:"end",onClick:()=>T(!_)},{children:(0,n.jsx)(Sae,{color:null===(E=Q.iconColor)||void 0===E?void 0:E.emoji,size:22})})),_&&(0,n.jsx)(D7,Object.assign({ref:j,position:"absolute",bottom:"50px",left:"-12px",zIndex:"700"},{children:(0,n.jsx)(FP,{width:W?260:320,height:370,onEmojiClick:(e,t)=>{k(I+e.emoji),T(!1)}})})),(0,n.jsx)(Cme,{ref:ue,disabled:!!Y,theme:Q,onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),Ae())},placeholder:"Type your message...",onChange:e=>{return t=e.target.value,void k(t);var t},value:I,rows:1}),r&&(0,n.jsx)(D7,Object.assign({width:"30px",height:"24px",cursor:"pointer",alignSelf:"end",onClick:()=>P(!M)},{children:(0,n.jsx)(Dae,{})})),M&&(0,n.jsx)(D7,Object.assign({position:"absolute",bottom:"50px",right:"-18px",zIndex:"1",ref:j},{children:(0,n.jsx)(vj,{onGifClick:e=>pJ(void 0,void 0,void 0,(function*(){we(e.url,"GIF"),P(!1)})),width:W?260:320,height:370,tenorApiKey:String(U4)})})),(0,n.jsx)(D7,Object.assign({onClick:()=>{D.current&&D.current.click()}},{children:!O&&o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D7,Object.assign({width:"18px",height:"24px",cursor:"pointer",alignSelf:"end"},{children:(0,n.jsx)(Oae,{color:null===(x=Q.iconColor)||void 0===x?void 0:x.attachment})})),(0,n.jsx)(Eme,{type:"file",ref:D,onChange:e=>(e=>pJ(void 0,void 0,void 0,(function*(){if(e.target instanceof HTMLInputElement&&e.target.files&&e.target&&e.target.files&&e.target.files.length){const r=e.target.files[0];if(r)try{const e=2097152;if(r.size>e)throw console.log("Files larger than 2mb is not allowed"),new Error("Files larger than 2mb is not allowed");B(!0);const t=r.type.startsWith("image")?"Image":"File",n=new FileReader;let i;n.readAsDataURL(r),n.onloadend=e=>pJ(void 0,void 0,void 0,(function*(){i={content:e.target.result,name:r.name,type:r.type,size:r.size},we(JSON.stringify(i),t)}))}catch(t){console.log(t)}finally{B(!1)}}})))(e)})]})})),!(Y||O)&&(0,n.jsx)(D7,Object.assign({cursor:"pointer",alignSelf:"end",height:"20px",width:"22px",onClick:()=>Ae()},{children:(0,n.jsx)(pme,{color:null===(S=Q.iconColor)||void 0===S?void 0:S.sendButton})})),(Y||O)&&(0,n.jsx)(D7,Object.assign({alignSelf:"end",height:"24px"},{children:(0,n.jsx)(k7,{color:Q.spinnerColor,size:"22"})}))]}))]}))]}))})):(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(vme,Object.assign({width:"100%",overflow:"hidden",borderRadius:"13px",position:"static",padding:" "+(se&&!(null==se?void 0:se.readmode())?"14px 16px":""),background:`${null===(h=Q.backgroundColor)||void 0===h?void 0:h.messageInputBackground}`,alignItems:"center",justifyContent:"space-between"},{children:(0,n.jsx)(yme,{autoConnect:u})}))},vme=(0,o.Ay)(D7).withConfig({displayName:"MessageInput__TypebarSection",componentId:"sc-xbdscc-0"})(["border:",";@media ","{gap:0px;}"],(e=>e.border||"none"),c5.mobileL),wme=(0,o.Ay)(D7).withConfig({displayName:"MessageInput__MessageInputContainer",componentId:"sc-xbdscc-1"})(["transition:transform 0.3s ease-in-out;transform:translateY(0);&.hide{transform:translateY(calc(100% + 20px));}"]),Ame=(0,o.Ay)(D7).withConfig({displayName:"MessageInput__SendSection",componentId:"sc-xbdscc-2"})(["gap:12px;@media ","{gap:8px;}"],c5.mobileL),Cme=o.Ay.textarea.withConfig({displayName:"MessageInput__MultiLineInput",componentId:"sc-xbdscc-3"})(["font-family:inherit;font-weight:400;transform:translateY(3px);font-size:15px;outline:none;overflow-y:auto;box-sizing:border-box;background:",";border:none;color:",";resize:none;flex:1;padding-right:5px;align-self:end;@media ","{font-size:16px;width:100%;}&&::-webkit-scrollbar{width:4px;padding-right:0px;}::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;height:50px;}::placeholder{color:",";transform:translateY(0px);@media ","{font-size:14px;}}min-height:25px;max-height:80px;word-break:break-word;"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.messageInputBackground}),(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.messageInputText}),c5.mobileL,(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.messageInputText}),c5.mobileL),Eme=o.Ay.input.withConfig({displayName:"MessageInput__FileInput",componentId:"sc-xbdscc-4"})(["display:none;"]),xme=o.Ay.div.withConfig({displayName:"MessageInput__ConnectWrapper",componentId:"sc-xbdscc-5"})(["display:flex;align-items:center;flex-direction:column;cursor:pointer;"]),Sme=o.Ay.button.withConfig({displayName:"MessageInput__StyledButton",componentId:"sc-xbdscc-6"})(["border:0px;outline:0px;padding:24px 9px;font-weight:500;border-radius:12px;font-size:17px;cursor:pointer;width:147px;height:44px;text-align:start;align-items:center;display:flex;justify-content:center;"]),Ime=(0,o.Ay)(Sme).withConfig({displayName:"MessageInput__Connect",componentId:"sc-xbdscc-7"})(["color:rgb(255,255,255);background:#d53a94;"]),kme=o.Ay.div.withConfig({displayName:"MessageInput__ConnectWrapperClose",componentId:"sc-xbdscc-8"})(["display:flex;align-items:center;flex-direction:column;"]),_me=o.Ay.button.withConfig({displayName:"MessageInput__StyledButtonClose",componentId:"sc-xbdscc-9"})(["border:0px;outline:0px;padding:24px 9px;font-weight:500;border-radius:12px;font-size:17px;cursor:pointer;width:147px;height:44px;text-align:start;align-items:center;display:flex;justify-content:center;"]),Tme=(0,o.Ay)(_me).withConfig({displayName:"MessageInput__ConnectClose",componentId:"sc-xbdscc-10"})(["color:rgb(255,255,255);background:#d53a94;gap:8px;"]),Mme=o.Ay.a.withConfig({displayName:"MessageInput__Link",componentId:"sc-xbdscc-14"})(["color:#d53a94;link-decoration:none;text-decoration:none;"]),Pme=e=>{var t,r,o,a,s,c,u,l,d,f;const{chatId:h=null,chatFilterList:p=[],messageInput:g=!0,chatViewList:m=!0,chatProfile:y=!0,limit:b=V4,emoji:v=!0,file:w=!0,gif:A=!0,handleReply:C=!0,isConnected:E=!0,autoConnect:x=!1,onVerificationFail:S,groupInfoModalBackground:I=k5.OVERLAY,groupInfoModalPositionType:k=_5.GLOBAL,verificationFailModalBackground:_=k5.OVERLAY,verificationFailModalPosition:T=_5.GLOBAL,chatProfileRightHelperComponent:M=null,chatProfileLeftHelperComponent:P=null,welcomeComponent:j=null,closeChatProfileInfoModalOnClickAway:D=!1}=e||{},{user:O}=P5(),B=(0,i.useContext)(Pae);K9(c5.mobileL),O||console.warn("Chat::ChatView::You need to pass either push user, or a signer, or account and pgpPrivateKey in ChatViewComponent to send messages.");const[N,R]=(0,i.useState)({loading:!0,derivedChatId:""}),[L,F]=(0,i.useState)(null);return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(R((e=>Object.assign(Object.assign({},e),{loading:!0}))),h){const e=yield O8(h,O);R({loading:!1,derivedChatId:e})}else R({loading:!1,derivedChatId:""})}))}),[h,O]),(0,n.jsxs)(jme,Object.assign({width:"100%",height:"inherit",flexDirection:"column",justifyContent:"space-between",overflow:"hidden",background:null===(t=B.backgroundColor)||void 0===t?void 0:t.chatViewComponentBackground,borderRadius:null===(r=B.borderRadius)||void 0===r?void 0:r.chatViewComponent,padding:null===(o=B.padding)||void 0===o?void 0:o.chatViewPadding,margin:null===(a=B.margin)||void 0===a?void 0:a.chatViewMargin,theme:B},{children:[N.loading&&(0,n.jsx)(D7,Object.assign({padding:"20px"},{children:(0,n.jsx)(k7,{color:B.spinnerColor})})),!N.loading&&h?(0,n.jsxs)(n.Fragment,{children:[y&&(0,n.jsx)(D7,Object.assign({margin:null===(s=B.margin)||void 0===s?void 0:s.chatProfileMargin,padding:null===(c=B.padding)||void 0===c?void 0:c.chatProfilePadding,zIndex:"2"},{children:(0,n.jsx)(Nle,{closeChatProfileInfoModalOnClickAway:D,chatProfileRightHelperComponent:M,chatProfileLeftHelperComponent:P,chatId:N.derivedChatId,groupInfoModalBackground:I,groupInfoModalPositionType:k},h)})),(0,n.jsx)(Dme,Object.assign({flex:"1 1 auto",overflow:"hidden",padding:null===(u=B.padding)||void 0===u?void 0:u.chatViewListPadding,margin:null===(l=B.margin)||void 0===l?void 0:l.chatViewListMargin,flexDirection:"column",justifyContent:"start",zIndex:"1"},{children:m&&(0,n.jsx)(lme,{chatFilterList:p,limit:b,chatId:N.derivedChatId,setReplyPayload:F},h)})),g&&O&&(0,n.jsx)(D7,Object.assign({flex:"0 1 auto",zIndex:"2",padding:null===(d=B.padding)||void 0===d?void 0:d.messageInputPadding,margin:null===(f=B.margin)||void 0===f?void 0:f.messageInputMargin},{children:(0,n.jsx)(bme,{onVerificationFail:S,chatId:N.derivedChatId,file:w,emoji:v,gif:A,replyPayload:C?L:null,setReplyPayload:F,isConnected:E,verificationFailModalBackground:_,verificationFailModalPosition:T,autoConnect:x},h)}))]}):(0,n.jsx)(D7,Object.assign({overflow:"auto"},{children:j}))]}))},jme=(0,o.Ay)(D7).withConfig({displayName:"ChatViewComponent__Conatiner",componentId:"sc-mq9e0g-0"})(["border:",";box-sizing:border-box;"],(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.chatViewComponent})),Dme=(0,o.Ay)(D7).withConfig({displayName:"ChatViewComponent__ChatViewSection",componentId:"sc-mq9e0g-1"})(["@media (","){margin:0;}"],c5.mobileL),Ome=({operator:e,setOperator:t})=>{var r,o,a;const s=(0,i.useContext)(Pae);return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"12px"},{children:[(0,n.jsx)(pue,{options:Wue,selectedValue:e,handleClick:e=>{t(e)}}),(0,n.jsxs)(B7,Object.assign({fontSize:"14px"},{children:[null===(r=Jue[e])||void 0===r?void 0:r.head,(0,n.jsxs)(B7,Object.assign({color:null===(o=s.textColor)||void 0===o?void 0:o.modalSubHeadingText},{children:[" ",null===(a=Jue[e])||void 0===a?void 0:a.tail]}))]}))]}))},Bme=(e,t)=>{var r,n;const[o,a]=(0,i.useState)(null===(r=Wue[1])||void 0===r?void 0:r.value),[s,c]=(0,i.useState)(null===(n=Wue[1])||void 0===n?void 0:n.value),[u,l]=(0,i.useState)(t),[d,f]=(0,i.useState)(e),[h,p]=(0,i.useState)(-1),[g,m]=(0,i.useState)([]),[y,b]=(0,i.useState)(-1),[v,w]=(0,i.useState)(-1);return{entryRootCondition:o,setEntryRootCondition:a,entryRuleTypeCondition:s,setEntryRuleTypeCondition:c,entryOptionTypeArray:u,setEntryOptionTypeArray:l,entryOptionsDataArray:d,setEntryOptionsDataArray:f,selectedCriteria:h,setSelectedCriteria:p,addNewCondtion:()=>{g.length>0&&(l((e=>[...e,s])),f((e=>[...e,[...g]]))),m([])},selectedRules:g,addNewRule:e=>{if((e=>{const t=JSON.stringify(e);for(let r=0;r[...t,e]));return!0},deleteRule:e=>{const t=[...g];t.splice(e,1),m(t)},deleteEntryOptionsDataArray:e=>{const t=[...d];t.splice(e,1),f(t)},selectEntryOptionsDataArrayForUpdate:e=>{b(e)},entryOptionsDataArrayUpdate:y,isCondtionUpdateEnabled:()=>-1!==y,updateCondition:()=>{const e=[...u];e[y]=s;const t=[...d];t[y]=[...g],l(e),f(t),m([])},setSelectedRule:m,updateCriteriaIdx:v,setUpdateCriteriaIdx:w,isUpdateCriteriaEnabled:()=>-1!==v}};var Nme;!function(e){e[e.ENTRY=0]="ENTRY",e[e.CHAT=1]="CHAT"}(Nme||(Nme={}));const Rme=[{heading:"Public",subHeading:"Anyone can view chats, even without joining",value:"open"},{heading:"Private",subHeading:"Encrypted Chats, Users must join group to view",value:"encrypted"}],Lme=({heading:e,subHeading:t,handleNext:r,criteriaState:o})=>{var a,s,c,u;const l=(0,i.useContext)(Pae);return(0,n.jsxs)(D7,Object.assign({alignItems:"start",flexDirection:"column",gap:"0px"},{children:[(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start",gap:"5px",margin:"0 0 5px 0"},{children:[(0,n.jsx)(B7,Object.assign({color:null===(a=l.textColor)||void 0===a?void 0:a.modalHeadingText,fontSize:"16px",fontWeight:"500"},{children:e})),(0,n.jsx)(B7,Object.assign({color:null===(s=l.textColor)||void 0===s?void 0:s.modalSubHeadingText,fontWeight:"400",fontSize:"12px"},{children:t}))]})),o.entryOptionsDataArray.length>1&&(0,n.jsx)(D7,Object.assign({margin:"10px"},{children:(0,n.jsx)(Ome,{operator:o.entryRootCondition,setOperator:e=>{o.setEntryRootCondition(e)}})})),(0,n.jsx)(Xue,{conditionData:[[{operator:o.entryRootCondition}],...o.entryOptionsDataArray.map(((e,t)=>[{operator:o.entryOptionTypeArray[t]},...e.map((e=>e))]))],deleteFunction:e=>{o.deleteEntryOptionsDataArray(e)},updateFunction:e=>{o.selectEntryOptionsDataArrayForUpdate(e),r&&r()}}),(0,n.jsx)(yue,Object.assign({onClick:()=>{r&&(o.setSelectedRule([]),o.setSelectedCriteria(-1),r())},customStyle:{color:`${null===(c=l.backgroundColor)||void 0===c?void 0:c.buttonBackground}`,fontSize:"15px",fontWeight:"500",border:`${null===(u=l.border)||void 0===u?void 0:u.modalInnerComponents}`,background:"transparent"}},{children:"+ Add conditions"}))]}))},Fme=({onClose:e,handlePrevious:t,handleNext:r,criteriaStateManager:o,checked:a=!1,setChecked:s,handleAddWallets:c,setGroupInputDetails:u,groupInputDetails:l})=>{const d=(0,i.useContext)(Pae);return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"16px"},{children:[(0,n.jsx)(jce,{title:"Create Group",handleClose:e,handlePrevious:t}),(0,n.jsx)(Ume,Object.assign({width:"100%",overflow:"hidden auto",maxHeight:"53vh",theme:d,padding:"5px 4px 5px 0"},{children:(0,n.jsxs)(D7,Object.assign({gap:"20px",flexDirection:"column",height:"100%"},{children:[(0,n.jsx)(pue,{options:Rme,selectedValue:l.groupEncryptionType,handleClick:e=>{u&&u((t=>Object.assign(Object.assign({},t),{groupEncryptionType:e}))),console.debug(e)}}),(0,n.jsx)(Zce,{labelHeading:"Gated Group",labelSubHeading:"Enable gating including invite and access rules",checked:a,onToggle:()=>s?s(!a):null}),a&&(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"20px"},{children:[(0,n.jsx)(Lme,Object.assign({criteriaState:o.entryCriteria,handleNext:()=>{r&&(o.setSelectedCriteria(Nme.ENTRY),r())}},Yue.ENTRY)),(0,n.jsx)(Lme,Object.assign({handleNext:()=>{r&&(o.setSelectedCriteria(Nme.CHAT),r())},criteriaState:o.chatCriteria},Yue.CHAT))]}))]}))})),(0,n.jsxs)(D7,Object.assign({gap:"16px",flexDirection:"column"},{children:[(0,n.jsx)(yue,Object.assign({width:"197px",onClick:c},{children:"Next"})),(0,n.jsx)(_ue,{label:"Learn more about access gating rules",cta:"https://push.org/docs/chat/build/conditional-rules-for-group/"})]}))]}))},Ume=(0,o.Ay)(D7).withConfig({displayName:"CreateGroupType__ScrollSection",componentId:"sc-lwmsdd-0"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar-button{height:40px;}&::-webkit-scrollbar{width:4px;}"],(e=>e.theme.scrollbarColor)),zme=({title:e,handleNext:t})=>{var r,o;const a=(0,i.useContext)(Pae);return(0,n.jsx)(yue,Object.assign({customStyle:{color:`${null===(r=a.backgroundColor)||void 0===r?void 0:r.buttonBackground}`,fontSize:"15px",fontWeight:"500",border:`${null===(o=a.border)||void 0===o?void 0:o.modalInnerComponents}`,background:"transparent"},onClick:t},{children:e}))},Hme=({onClose:e,handlePrevious:t,handleNext:r,criteriaStateManager:o})=>{var a,s,c,u,l;const d=(0,i.useContext)(Pae),f=K9(c5.mobileL),h=o.getSelectedCriteria();h.selectedRules.length<1?null===(a=d.backgroundColor)||void 0===a||a.buttonDisableBackground:null===(s=d.backgroundColor)||void 0===s||s.buttonBackground,h.selectedRules.length<1?null===(c=d.textColor)||void 0===c||c.buttonDisableText:null===(u=d.textColor)||void 0===u||u.buttonText;return(0,i.useEffect)((()=>{h.isCondtionUpdateEnabled()&&(h.setEntryRuleTypeCondition(h.entryOptionTypeArray[h.entryOptionsDataArrayUpdate]),0===h.selectedRules.length&&h.setSelectedRule([...h.entryOptionsDataArray[h.entryOptionsDataArrayUpdate]]))}),[]),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"16px",width:f?"300px":"400px"},{children:[(0,n.jsx)(jce,{title:h.isCondtionUpdateEnabled()?"Update Condition":"Define Condition",handleClose:e,handlePrevious:()=>{((e,t)=>{e.isCondtionUpdateEnabled()?e.updateCondition():e.addNewCondtion(),t&&t()})(h,t)}}),(0,n.jsxs)(D7,Object.assign({flexDirection:"column"},{children:[h.selectedRules.length>1&&(0,n.jsx)(D7,Object.assign({margin:"5px 0 16px 0"},{children:(0,n.jsx)(Ome,{operator:h.entryRuleTypeCondition,setOperator:e=>{h.setEntryRuleTypeCondition(e)}})})),h.selectedRules.length>0&&(0,n.jsx)(Vme,Object.assign({width:"100%",overflow:"hidden auto",maxHeight:"15vh",theme:d,padding:"5px 4px 5px 0"},{children:(0,n.jsx)(Xue,{conditionData:[[{operator:h.entryRuleTypeCondition}],...h.selectedRules.map((e=>[e]))],deleteFunction:e=>{h.deleteRule(e)},updateFunction:e=>{h.setUpdateCriteriaIdx(e),r&&r()}})})),(0,n.jsx)(zme,{handleNext:r,title:"+ Add criteria"})]})),!h.selectedRules.length&&(0,n.jsx)(B7,Object.assign({fontSize:"15px",fontWeight:"400",color:null===(l=d.textColor)||void 0===l?void 0:l.modalSubHeadingText},{children:"You must add at least 1 criteria to enable gating"})),(0,n.jsx)(_ue,{label:"Learn more about access gating rules",cta:"https://push.org/docs/chat/build/conditional-rules-for-group/"})]}))},Vme=(0,o.Ay)(D7).withConfig({displayName:"DefineCondition__ConditionSection",componentId:"sc-aqetzr-0"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar-button{height:40px;}&::-webkit-scrollbar{width:4px;}"],(e=>e.theme.scrollbarColor));const Kme=({handlePrevious:e,onClose:t,criteriaStateManager:r})=>{var o,a,s,c;const[u,l]=(0,i.useState)(0),[d,f]=(0,i.useState)({}),[h,p]=(0,i.useState)(0),[g,m]=(0,i.useState)(0),[y,b]=(0,i.useState)(!1),[v,w]=(0,i.useState)(""),[A,C]=(0,i.useState)(0),[E,x]=(0,i.useState)(""),[S,I]=(0,i.useState)(""),[k,T]=(0,i.useState)({admin:!0,owner:!0}),[M,P]=(0,i.useState)(""),[j,D]=(0,i.useState)(""),[O,B]=(0,i.useState)(""),[N,R]=(0,i.useState)("TOKEN"),[L,F]=(0,i.useState)(18),[U,z]=(0,i.useState)({value:0,range:0}),{user:H,toast:V}=P5(),K=H?H.env:_.CONSTANTS.ENV.PROD,G=(0,i.useContext)(Pae),q=K9(c5.mobileL),Q=[{id:0,title:"Greater than",value:">",function:()=>z(Object.assign(Object.assign({},U),{range:0}))},{id:1,title:"Greater or equal to",value:">=",function:()=>z(Object.assign(Object.assign({},U),{range:1}))},{id:2,title:"Less than",value:"<",function:()=>z(Object.assign(Object.assign({},U),{range:2}))},{id:3,title:"Less or equal to",value:"<=",function:()=>z(Object.assign(Object.assign({},U),{range:3}))},{id:4,title:"Equal to",value:"==",function:()=>z(Object.assign(Object.assign({},U),{range:4}))},{id:5,title:"Not equal to",value:"!=",function:()=>z(Object.assign(Object.assign({},U),{range:5}))}],W=[{id:0,title:"Push protocol",value:W9,function:()=>l(0)},{id:1,title:"Guild",value:J9,function:()=>l(1)}],J={PUSH:[{id:0,value:Y9,title:"Token ERC20",function:()=>p(0)},{id:1,value:Z9,title:"NFT ERC721",function:()=>p(1)},{id:2,value:X9,title:"Invite",function:()=>p(2)},{id:3,value:e7,title:"Custom Endpoint",function:()=>p(3)},{id:4,value:$9,title:"Token ERC1155",function:()=>p(4)}],GUILD:{value:t7,title:"Roles"}},Y={ERC20:{value:r7,title:"Holder"},ERC721:{value:r7,title:"Holder"},ERC1155:{value:r7,title:"Holder"},INVITE:{value:i7,title:"Default"},CustomEndpoint:[{id:0,value:n7,title:"Get",function:()=>m(0)}],ROLES:{value:i7,title:"Default"}},Z=[{id:0,value:R4[K].ETHEREUM,title:"Ethereum",icon:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z' fill='%23627EEA'/%3e %3cpath d='M12.3735 3V9.6525L17.9963 12.165L12.3735 3Z' fill='white' fill-opacity='0.602'/%3e %3cpath d='M12.3735 3L6.75 12.165L12.3735 9.6525V3Z' fill='white'/%3e %3cpath d='M12.3735 16.476V20.9963L18 13.212L12.3735 16.476Z' fill='white' fill-opacity='0.602'/%3e %3cpath d='M12.3735 20.9963V16.4753L6.75 13.212L12.3735 20.9963Z' fill='white'/%3e %3cpath d='M12.3735 15.4298L17.9963 12.1651L12.3735 9.65405V15.4298Z' fill='white' fill-opacity='0.2'/%3e %3cpath d='M6.75 12.1651L12.3735 15.4298V9.65405L6.75 12.1651Z' fill='white' fill-opacity='0.602'/%3e %3c/svg%3e",function:()=>C(0)},{id:1,value:R4[K].POLYGON,title:"Polygon",icon:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cg clip-path='url(%23clip0_5284_6348)'%3e %3cpath d='M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z' fill='%237B3FE4'/%3e %3cpath d='M20 12.2801V15.9003C19.9987 16.1261 19.9391 16.3476 19.8269 16.5433C19.7147 16.739 19.5538 16.9021 19.36 17.0168L16.235 18.8231C16.0415 18.9389 15.8203 19 15.595 19C15.3697 19 15.1485 18.9389 14.955 18.8231L11.83 17.0168C11.6362 16.9021 11.4753 16.739 11.3631 16.5433C11.251 16.3476 11.1913 16.1261 11.19 15.9003V14.8842L12.79 13.9522V15.7184L15.59 17.3492L18.39 15.7184V12.4645L15.59 10.8337L9.03001 14.6472C8.83465 14.7576 8.61421 14.8157 8.38999 14.8157C8.16577 14.8157 7.94536 14.7576 7.75 14.6472L4.62499 12.8333C4.43416 12.7169 4.27639 12.5532 4.16692 12.3579C4.05745 12.1625 3.99997 11.9422 4 11.7181V8.09786C4.00129 7.87211 4.06096 7.65056 4.17313 7.45487C4.28533 7.25918 4.44619 7.09604 4.63999 6.98144L7.765 5.17508C7.95895 5.06045 8.17993 5 8.40499 5C8.63008 5 8.85106 5.06045 9.04501 5.17508L12.17 6.98144C12.3638 7.09604 12.5247 7.25918 12.6369 7.45487C12.7491 7.65056 12.8087 7.87211 12.81 8.09786V9.11393L11.2 10.0397V8.28353L8.40001 6.65279L5.59999 8.28353V11.5337L8.40001 13.1644L14.96 9.35102C15.1553 9.24056 15.3758 9.18254 15.6 9.18254C15.8242 9.18254 16.0446 9.24056 16.24 9.35102L19.365 11.1649C19.5577 11.28 19.7175 11.4433 19.8287 11.6386C19.94 11.8341 19.999 12.055 20 12.2801Z' fill='white'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_5284_6348'%3e %3crect width='24' height='24' fill='white'/%3e %3c/clipPath%3e %3c/defs%3e %3c/svg%3e",function:()=>C(1)},{id:2,value:R4[K].BSC,title:"BSC",icon:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='12' cy='12' r='12' fill='%231D1D1D'/%3e %3cpath d='M8.16193 12L6.58295 13.579L5 12L6.57898 10.421L8.16193 12ZM12 8.16193L14.7085 10.8705L16.2875 9.29148L12 5L7.70852 9.29148L9.2875 10.8705L12 8.16193ZM17.417 10.421L15.8381 12L17.417 13.579L18.996 12L17.417 10.421ZM12 15.8381L9.29148 13.1295L7.7125 14.7085L12 19L16.2875 14.7085L14.7085 13.1295L12 15.8381ZM12 13.579L13.579 12L12 10.421L10.417 12L12 13.579Z' fill='%23F0B90B'/%3e %3c/svg%3e",function:()=>C(2)},{id:3,value:R4[K].OPTIMISM,title:"Optimism",icon:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cg clip-path='url(%23clip0_9390_20606)'%3e %3cpath d='M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z' fill='%23FF0420'/%3e %3cpath d='M8.50098 15.1872C7.78578 15.1872 7.20018 15.0192 6.74418 14.6832C6.29298 14.3424 6.06738 13.8528 6.06738 13.224C6.06738 13.0896 6.08178 12.9312 6.11058 12.7392C6.18738 12.3072 6.29778 11.7888 6.44178 11.1792C6.84978 9.52799 7.90578 8.70239 9.60498 8.70239C10.0658 8.70239 10.4834 8.77919 10.8482 8.93759C11.213 9.08639 11.501 9.31679 11.7122 9.62399C11.9234 9.92639 12.029 10.2864 12.029 10.704C12.029 10.8288 12.0146 10.9872 11.9858 11.1792C11.8946 11.712 11.789 12.2352 11.6594 12.7392C11.4482 13.56 11.0882 14.1792 10.5698 14.5872C10.0562 14.9904 9.36498 15.1872 8.50098 15.1872ZM8.63058 13.8912C8.96658 13.8912 9.24978 13.7904 9.48498 13.5936C9.72498 13.3968 9.89778 13.0944 9.99858 12.6816C10.1378 12.1152 10.2434 11.6256 10.3154 11.2032C10.3394 11.0784 10.3538 10.9488 10.3538 10.8144C10.3538 10.2672 10.0706 9.99359 9.49938 9.99359C9.16338 9.99359 8.87538 10.0944 8.63538 10.2912C8.40018 10.488 8.23218 10.7904 8.13138 11.2032C8.02098 11.6064 7.91538 12.096 7.80498 12.6816C7.78098 12.8016 7.76658 12.9264 7.76658 13.0608C7.76178 13.6176 8.05458 13.8912 8.63058 13.8912Z' fill='white'/%3e %3cpath d='M12.4463 15.1009C12.3791 15.1009 12.3311 15.0817 12.2927 15.0385C12.2639 14.9905 12.2543 14.9377 12.2639 14.8753L13.5071 9.0193C13.5167 8.9521 13.5503 8.8993 13.6079 8.8561C13.6607 8.8129 13.7183 8.7937 13.7807 8.7937H16.1759C16.8431 8.7937 17.3759 8.9329 17.7791 9.2065C18.1871 9.4849 18.3935 9.8833 18.3935 10.4065C18.3935 10.5553 18.3743 10.7137 18.3407 10.8769C18.1919 11.5681 17.8895 12.0769 17.4287 12.4081C16.9775 12.7393 16.3583 12.9025 15.5711 12.9025H14.3567L13.9439 14.8753C13.9295 14.9425 13.9007 14.9953 13.8431 15.0385C13.7903 15.0817 13.7327 15.1009 13.6703 15.1009H12.4463ZM15.6335 11.6593C15.8879 11.6593 16.1039 11.5921 16.2911 11.4529C16.4831 11.3137 16.6079 11.1169 16.6703 10.8577C16.6895 10.7569 16.6991 10.6657 16.6991 10.5889C16.6991 10.4161 16.6463 10.2817 16.5455 10.1905C16.4447 10.0945 16.2671 10.0465 16.0223 10.0465H14.9423L14.6015 11.6593H15.6335Z' fill='white'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_9390_20606'%3e %3crect width='24' height='24' fill='white'/%3e %3c/clipPath%3e %3c/defs%3e %3c/svg%3e",function:()=>C(3)},{id:4,value:R4[K].ARBITRUM,title:"Arbitrum",icon:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg id='c' data-name='Layer 3' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1500 1500'%3e %3cdefs%3e %3cstyle%3e .d %7b fill: white%3b %7d .e %7b fill: %239dcced%3b %7d .f %7b fill: %23213147%3b %7d .g %7b fill: %2312aaff%3b %7d %3c/style%3e %3c/defs%3e %3cpath class='f' d='m299.47%2c534.35v431.21c0%2c27.53%2c14.71%2c52.99%2c38.54%2c66.71l373.44%2c215.65c23.83%2c13.72%2c53.17%2c13.72%2c77%2c0l373.44-215.65c23.83-13.72%2c38.54-39.18%2c38.54-66.71v-431.21c0-27.53-14.71-52.99-38.54-66.71l-373.44-215.65c-23.83-13.72-53.17-13.72-77%2c0l-373.53%2c215.65c-23.83%2c13.72-38.45%2c39.18-38.45%2c66.71Z'/%3e %3cg%3e %3cpath class='g' d='m831.42%2c833.59l-53.26%2c146.05c-1.44%2c4.06-1.44%2c8.49%2c0%2c12.55l91.62%2c251.3%2c105.97-61.2-127.19-348.7c-2.89-8.03-14.26-8.03-17.15%2c0Z'/%3e %3cpath class='g' d='m938.21%2c587.97c-2.89-8.03-14.26-8.03-17.15%2c0l-53.26%2c146.05c-1.44%2c4.06-1.44%2c8.49%2c0%2c12.55l150.11%2c411.44%2c105.97-61.2-185.68-508.84Z'/%3e %3c/g%3e %3cpath class='e' d='m749.91%2c268.15c2.62%2c0%2c5.24.72%2c7.58%2c1.99l404.13%2c233.34c4.69%2c2.71%2c7.58%2c7.76%2c7.58%2c13.09v466.59c0%2c5.42-2.89%2c10.38-7.58%2c13.09l-404.13%2c233.34c-2.26%2c1.35-4.96%2c1.99-7.58%2c1.99s-5.24-.72-7.58-1.99l-404.13-233.16c-4.69-2.71-7.58-7.76-7.58-13.09v-466.68c0-5.42%2c2.89-10.38%2c7.58-13.09l404.13-233.34c2.35-1.35%2c4.96-2.08%2c7.58-2.08m0-68.15c-14.35%2c0-28.8%2c3.7-41.7%2c11.19l-404.04%2c233.25c-25.82%2c14.89-41.7%2c42.43-41.7%2c72.21v466.59c0%2c29.79%2c15.89%2c57.32%2c41.7%2c72.21l404.13%2c233.34c12.91%2c7.4%2c27.26%2c11.19%2c41.7%2c11.19s28.8-3.7%2c41.7-11.19l404.13-233.34c25.82-14.89%2c41.7-42.43%2c41.7-72.21v-466.59c0-29.79-15.89-57.32-41.7-72.21l-404.22-233.25c-12.91-7.49-27.35-11.19-41.7-11.19h0Z'/%3e %3cpolygon class='f' points='482.63 1158.55 519.82 1056.73 594.65 1118.92 524.69 1182.83 482.63 1158.55'/%3e %3cg%3e %3cpath class='d' d='m715.88%2c483.26h-102.45c-7.67%2c0-14.53%2c4.78-17.15%2c12.01l-219.62%2c602.08%2c105.97%2c61.2%2c241.83-663.01c2.26-5.96-2.17-12.28-8.58-12.28Z'/%3e %3cpath class='d' d='m895.15%2c483.26h-102.45c-7.67%2c0-14.53%2c4.78-17.15%2c12.01l-250.76%2c687.48%2c105.97%2c61.2%2c272.97-748.41c2.17-5.96-2.26-12.28-8.58-12.28Z'/%3e %3c/g%3e%3c/svg%3e",function:()=>C(4)},{id:5,value:R4[K].FUSE,title:"Fuse",icon:"data:image/svg+xml,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='32' height='32' rx='16' fill='%23B4F9BA'/%3e%3cpath d='M12.9317 8.48676L15.8738 6.78758C15.9575 6.73926 16.0617 6.73926 16.1454 6.78758L23.8999 11.2647C23.9836 11.3131 24.0354 11.4025 24.0361 11.4992L24.0465 14.5785C24.0465 14.6759 23.9951 14.7662 23.9104 14.8145L20.9722 16.5113C20.7919 16.616 20.5652 16.4855 20.5645 16.2768L20.5548 13.5133C20.5548 13.4167 20.5024 13.3273 20.4187 13.2789L12.9317 8.95727C12.7503 8.85253 12.7503 8.5915 12.9317 8.48676Z' fill='%23010101'/%3e%3cpath d='M11.0309 22.4345L8.0895 20.7361C8.00473 20.6878 7.95337 20.5983 7.95337 20.5008V11.5466C7.95337 11.4499 8.00473 11.3605 8.08878 11.3113L10.7507 9.76201C10.8352 9.71287 10.939 9.71287 11.023 9.76201L13.9612 11.4588C14.1415 11.5635 14.1426 11.8237 13.9619 11.9293L11.574 13.3191C11.4903 13.3674 11.4386 13.4568 11.4386 13.5543V22.2C11.4386 22.4095 11.2123 22.54 11.0309 22.4353V22.4345Z' fill='%23010101'/%3e%3cpath d='M24.0466 17.1034V20.5001C24.0466 20.5976 23.9948 20.687 23.9104 20.7354L16.1559 25.2123C16.0722 25.2608 15.9687 25.2608 15.885 25.2123L13.2127 23.6817C13.1279 23.6334 13.0758 23.5431 13.0758 23.4456V20.053C13.0758 19.8443 13.3014 19.7137 13.4824 19.8169L15.8804 21.1906C15.9641 21.2389 16.0671 21.2381 16.1508 21.1906L23.6382 16.8673C23.8192 16.7626 24.0458 16.8931 24.0458 17.1026L24.0466 17.1034Z' fill='%23010101'/%3e%3c/svg%3e",function:()=>C(5)},{id:6,value:R4[K].CYBER_CONNECT,title:"Cyber",icon:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 24 24'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: %23eaeaea%3b %7d .cls-1%2c .cls-2%2c .cls-3%2c .cls-4%2c .cls-5 %7b stroke-width: 0px%3b %7d .cls-2 %7b fill: %230c9b00%3b %7d .cls-3 %7b fill: %2307dc10%3b %7d .cls-4 %7b fill: %23b7f7b0%3b %7d .cls-5 %7b fill: none%3b %7d .cls-6 %7b clip-path: url(%23clippath)%3b %7d %3c/style%3e %3cclipPath id='clippath'%3e %3crect class='cls-5' x='.4' y='.5' width='23.2' height='23.1'/%3e %3c/clipPath%3e %3c/defs%3e %3cg class='cls-6'%3e %3cg%3e %3cpath class='cls-4' d='M12%2c7.9c2.3%2c0%2c4.1%2c1.8%2c4.1%2c4.1s-1.9%2c4.1-4.1%2c4.1-4.1-1.8-4.1-4.1%2c1.9-4.1%2c4.1-4.1ZM12%2c.5c-1.6%2c0-3.1.3-4.5.9-1.4.6-2.6%2c1.4-3.7%2c2.5-1.1%2c1.1-1.9%2c2.3-2.5%2c3.7-.6%2c1.4-.9%2c2.9-.9%2c4.5s.3%2c3.1.9%2c4.5c.6%2c1.4%2c1.4%2c2.6%2c2.5%2c3.7%2c1.1%2c1.1%2c2.3%2c1.9%2c3.7%2c2.5%2c1.4.6%2c2.9.9%2c4.5.9s3.1-.3%2c4.5-.9c1.4-.6%2c2.6-1.4%2c3.7-2.5%2c1.1-1.1%2c1.9-2.3%2c2.5-3.7.6-1.4.9-2.9.9-4.5s-.3-3.1-.9-4.5c-.6-1.4-1.4-2.6-2.5-3.7-1.1-1.1-2.3-1.9-3.7-2.5-1.4-.6-2.9-.9-4.5-.9Z'/%3e %3cpath class='cls-3' d='M12%2c7.9c2.3%2c0%2c4.1%2c1.8%2c4.1%2c4.1s-1.9%2c4.1-4.1%2c4.1-4.1-1.8-4.1-4.1%2c1.9-4.1%2c4.1-4.1ZM12%2c2.9C7%2c2.9%2c2.9%2c7%2c2.9%2c12s4.1%2c9.1%2c9.1%2c9.1%2c9.1-4.1%2c9.1-9.1S17%2c2.9%2c12%2c2.9Z'/%3e %3cpath class='cls-2' d='M12%2c7.9c2.3%2c0%2c4.1%2c1.8%2c4.1%2c4.1s-1.9%2c4.1-4.1%2c4.1-4.1-1.8-4.1-4.1%2c1.9-4.1%2c4.1-4.1ZM12%2c5.4c-3.6%2c0-6.6%2c3-6.6%2c6.6s3%2c6.6%2c6.6%2c6.6%2c6.6-3%2c6.6-6.6-3-6.6-6.6-6.6Z'/%3e %3cpath class='cls-1' d='M12%2c7.9c2.3%2c0%2c4.1%2c1.8%2c4.1%2c4.1s-1.9%2c4.1-4.1%2c4.1-4.1-1.8-4.1-4.1%2c1.9-4.1%2c4.1-4.1Z'/%3e %3c/g%3e %3c/g%3e%3c/svg%3e",function:()=>C(6)},{id:7,value:R4[K].BASE,title:"Base",icon:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24px' height='24px' viewBox='0 0 24 24' version='1.1'%3e%3cg id='surface1'%3e%3cpath style=' stroke:none%3bfill-rule:nonzero%3bfill:rgb(0%25%2c32.156863%25%2c100%25)%3bfill-opacity:1%3b' d='M 11.875 23.792969 C 18.457031 23.792969 23.792969 18.464844 23.792969 11.894531 C 23.792969 5.324219 18.457031 0 11.875 0 C 5.632812 0 0.507812 4.792969 0 10.894531 L 15.75 10.894531 L 15.75 12.894531 L 0 12.894531 C 0.507812 18.996094 5.632812 23.792969 11.875 23.792969 Z M 11.875 23.792969 '/%3e%3c/g%3e%3c/svg%3e",function:()=>C(7)},{id:8,value:R4[K].LINEA,title:"Linea",icon:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24px' height='25px' viewBox='0 0 24 24' version='1.1'%3e%3cdefs%3e%3cclipPath id='clip1'%3e %3cpath d='M 5.964844 7 L 16 7 L 16 18 L 5.964844 18 Z M 5.964844 7 '/%3e%3c/clipPath%3e%3cclipPath id='clip2'%3e %3cpath d='M 13 6 L 17.910156 6 L 17.910156 10 L 13 10 Z M 13 6 '/%3e%3c/clipPath%3e%3c/defs%3e%3cg id='surface1'%3e%3cpath style=' stroke:none%3bfill-rule:nonzero%3bfill:rgb(38.039216%25%2c87.45098%25%2c100%25)%3bfill-opacity:1%3b' d='M 0 0 L 23.929688 0 L 23.929688 23.957031 L 0 23.957031 Z M 0 0 '/%3e%3cg clip-path='url(%23clip1)' clip-rule='nonzero'%3e%3cpath style=' stroke:none%3bfill-rule:nonzero%3bfill:rgb(7.058824%25%2c7.058824%25%2c7.058824%25)%3bfill-opacity:1%3b' d='M 15.882812 18 L 5.964844 18 L 5.964844 7.949219 L 8.234375 7.949219 L 8.234375 16.050781 L 15.882812 16.050781 Z M 15.882812 18 '/%3e%3c/g%3e%3cg clip-path='url(%23clip2)' clip-rule='nonzero'%3e%3cpath style=' stroke:none%3bfill-rule:nonzero%3bfill:rgb(7.058824%25%2c7.058824%25%2c7.058824%25)%3bfill-opacity:1%3b' d='M 15.882812 9.894531 C 17.003906 9.894531 17.910156 9.023438 17.910156 7.949219 C 17.910156 6.875 17.003906 6 15.882812 6 C 14.765625 6 13.859375 6.875 13.859375 7.949219 C 13.859375 9.023438 14.765625 9.894531 15.882812 9.894531 Z M 15.882812 9.894531 '/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",function:()=>C(8)}];K!==T4.PROD&&Z.push({id:9,value:R4[K].BERACHAIN,title:"Berachain",icon:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%25' x='0' y='0' version='1.1' viewBox='0 0 315 315' xmlSpace='preserve' %3e %3cpath fill='%23FEFEFE' d='M145 316H1V1h315v315H145M84.363 116.53c-.85.43-1.7.86-2.516 1.368 0 0 .068-.051-.674.022-.994-.013-1.987-.026-3.219-.673-4.257-2.495-8.247-5.775-12.823-7.332-11.763-4.004-22.549 2.473-24.779 14.598-1.454 8.6 1.413 15.964 6.687 23.398.29.386.58.773.612 1.89-2.273 3.811-4.402 7.718-6.847 11.415-7.934 11.994-7.202 26.743 2.109 38.737 1.646 1.547 3.132 3.322 4.965 4.602 7.865 5.49 16.99 4.903 26.715 5.436 2.441.374 4.882.747 7.542 1.654.59.472 1.179.944 2.076 2.067 5.36 3.016 10.358 2.722 14.806-1.647 0 0 .058.086.825.036 2.453-.82 4.905-1.639 8.2-2.416 3.97-.16 7.95-.195 11.91-.503 11.735-.912 19.64-6.893 23.98-18.586 2.843-7.565 3.971-15.155.283-23.532-1.71-2.432-3.422-4.863-5.16-7.999-1.681-4.176-6.968-7.39-2.941-13.325 1.066-2.128 2.132-4.256 3.726-6.942.61-2.059 1.388-4.084 1.804-6.182 2.913-14.676-9.118-26.793-23.48-23.1-4.575 1.177-8.586 4.553-13.51 7.253-1.179.244-2.359.49-3.957.341-.566-.032-1.131-.065-2.172-.39-.537.001-1.074.002-2.439-.322-2.367-.008-4.735-.015-7.916-.164-1.075.179-2.15.358-3.807.296m90.006 24.629c-.26.508-.52 1.015-1.339 1.919-.966 2.655-1.933 5.31-3.114 8.767.12 5.69.239 11.381.587 17.86 1.546 7.038 5.417 12.033 12.511 15.084.021 1.736.042 3.472-.51 5.68.506 2.185-3.37 5.274 1.442 7.017 0 0 .052.435-.566.587a15.03 15.03 0 01-2.948 1.024c-7.45 3.369-8.75 10.81-11.155 17.357-1.165 3.172 1.703 5.544 5.444 4.791l4.107.772c0-2.201 0-3.647.14-5.725l2.613-7.545 1.424.289c.648 3.542.458 7.62 5.583 7.913 5.608.32 5.486-4.248 6.321-7.734 1.914 1.55 3.508 2.84 5.01 5.043l-1.505 7.382h11.089c-2.671-9.09-4.152-18.174-14.188-23.096-.156-4.863-.313-9.726.192-14.834 3.264-3.122 6.53-6.244 10.331-9.83a537.88 537.88 0 012.232-7.6c.375-1.773.75-3.546 1.433-5.926-.506-2.45-1.012-4.902-1.484-8.124-1.537-5.581-3.353-11.17-8.492-14.433-3.386-2.15-7.06-3.49-4.218-8.546.237-.421-.707-1.506-1.27-3.133-.938-3.95.805-5.91 4.206-8.116 2.958-1.92 4.58-5.897 7.437-9.265.749-3.856 1.498-7.711 1.344-11.647h-8.89c0 2.994 0 5.436-.713 8.202-.993.348-1.985.695-3.149.37-1.522-3.55-4.292-4.308-7.618-3.061-2.882 1.08-4.615 3.053-4.002 6.62-.884-1.2-1.57-2.647-2.694-3.553-2.566-2.07.395-8.487-6.327-8.063-1.317.695-3.607 1.239-3.743 2.117-.26 1.67.712 3.533 1.193 5.815.047.16.095.32-.363.75.414.583.829 1.166 1.22 2.427.036.447.072.894.046 2.05 3.67 3.099 7.338 6.197 10.93 10.217.08 4.375.159 8.75-.085 13.665-.994.73-1.989 1.46-3.397 2.25 0 0-.363.207-1.008.337-1.176 1.227-2.352 2.455-4.057 3.926m85.943-31.226c-2.738-2.093-5.476-4.185-8.318-7.098l-.411-5.866c-2.782.755-5.181 1.406-8.254 1.837l-2.738-1.989c-.24 2.45-.421 4.306-1.289 6.307-7.376 3.242-11.546 8.827-12.9 17.35a441.308 441.308 0 00-.331 4.553c-.107 6.106-.702 12.318 3.736 17.998l1.539 4.665c.558-.262 1.117-.523 2.29-.407 6.598 6.115 8.413 12.816 4.633 19.767-4.332 1.998-7.791 4.724-9.052 9.966-4.21 8.192-3.763 16.75-1.898 25.387.066.306 1.1.402 1.641 1.28-.642 4.001.299 6.943 5.171 8.07l7.824 9.306c.037-.133.296-1.067.83-1.415 1.797.699 3.593 1.397 6.193 2.217 5.52.137 1.972-3.964 3.268-6.57 5.926-1.497 9.032-5.717 11.382-11.709.788-3.528 1.576-7.057 2.71-11.15-.817-3.785-1.634-7.57-2.415-11.93-.543-.748-1.087-1.496-1.62-3.044-1.52-4.7-4.672-7.818-9.788-10.052-.178-2.136-.356-4.273-.495-6.899 0 0-.012-.49.494-.988-.157-2.484-.313-4.968.183-7.694 5.342-2.747 9.548-6.417 11.092-13.171.742-3.218 1.483-6.435 2.575-10.221-1.369-5.116-2.737-10.233-4.1-15.7-.23-.258-.46-.516-.897-1.312-.233-.3-.467-.601-1.055-1.488z' opacity='1' %3e%3c/path%3e %3cpath fill='%237E542D' d='M99 117.013c.566.032 1.131.065 1.873.67.157.825.137 1.076.158 1.68 4.02 3.107 8 5.861 11.975 8.625-.004.01.016 0 .05.373 7.278 17.106 2.974 29.288-14.414 34.683-4.675 3.133-9.124 3.184-13.85.934-1.427-.68-3.181-.673-4.988-1.256-3.43-1.945-6.943-3.237-9.801-5.395-2.658-2.008-6.178-4.7-6.61-7.508-1.733-11.247-1.516-17.81 9.573-25.227 3.1-2.073 5.972-4.487 8.949-6.745 0 0-.068.051.255.042.775.014 1.228.04 2.068.078 1.84-.52 3.292-1.056 4.745-1.591 2.368.007 4.736.014 7.61.408 1.14.333 1.774.281 2.407.229m14 23.622c.816-6.204-4.521-8.55-7.88-11.828-7.703-7.52-17.867-7.663-26.444-1.007-1.569 1.217-3.135 2.438-4.727 3.626-8.827 6.583-8.13 20.876 1.429 26.088 2.421 1.32 5.418 1.543 7.959 2.693 13.403 6.068 29.043-3.748 29.662-19.572z' opacity='1' %3e%3c/path%3e %3cpath fill='%23704A25' d='M81.544 117.884c-2.606 2.22-5.478 4.635-8.578 6.708-11.089 7.417-11.306 13.98-9.574 25.227.433 2.808 3.953 5.5 6.61 7.508 2.859 2.158 6.372 3.45 9.956 5.703 6.085 4.984 6.16 5.033 2.252 11.154-2.22 3.476-3.025 6.337 1.809 8.16-1.541 1.482-3.008 2.568-4.239 3.876-1.715 1.821-3.254 3.809-5.185 5.757-.738.085-1.159.138-1.696-.133.81-1.935 1.385-3.99 2.738-5.067 2.96-2.356 4.124-4.621 1.36-8.189.198-4.263.389-8.124.562-11.621-3.247-2.477-6.219-4.278-9.915-.919-2.635.126-4.984.699-7.087.21-12.591-2.92-18.042 6.266-16.878 15.52.696 5.538 5.324 7.25 6.953 11.22a108.743 108.743 0 01-9.642-8.351c-.336-1.448-.669-2.545-.72-3.893.413-1.214.77-2.208.645-3.137-1.363-10.11 8.394-18.392 18.184-15.517 2.107.619 4.412.562 6.626.817l.527-1.557c-1.664-1.963-3.57-3.772-4.93-5.927-1.678-2.662-2.9-5.61-4.319-8.768 0-.776 0-1.22.28-1.918 1.35-4.99 1.468-9.879 5.729-13.608 2.637-2.307 4.03-6.036 6.22-9.137.24-.01.718-.014 1.077-.014 1.14-.653 1.922-1.307 3.024-1.995.832-.397 1.343-.76 2.13-1.287 1.095-.385 1.912-.605 2.73-.825.993.013 1.986.026 3.35.003z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M100.99 119.01c.02-.25.04-.502.093-1.13 1.212-.622 2.392-.867 4.21-.852 1.298.45 1.956.642 2.674 1.151 1.06.496 2.062.673 3.18 1.114.697.745 1.276 1.226 2 1.99 1.333 1.143 2.522 2.001 3.914 3.131 3.187 3.56 6.17 6.847 8.992 10.52-2.015 8.216-3.668 16.094-8.339 22.94-.7 1.026-.856 3.59-.204 4.108 1.074.853 3.155 1.134 4.564.749 5.24-1.432 10.368-3.34 16.031-1.514.311.494.575.681 1.144.948.408.722.573 1.277.573 1.922-.052.366.061.64.176.914.002-.001 0 .002.042.322.679.775 1.315 1.229 1.952 1.933 0 .25.005.75.006 1.213-.334 6.149-.668 11.834-1.006 17.77-.007.419-.01.586-.33.781-1.101.346-1.886.664-2.66.562.34-3.52.994-6.629.923-9.72-.117-5.09-4.521-10.427-8.448-10.86-5.874-.647-11.746-1.315-17.969-2.012-4.038-1.948-6.049.185-7.312 3.174-.757 1.793-.818 3.878-1.548 5.794-4.029-3.745-1.31-11.527 4.532-12.702 4.105-.826 6.516-3.105 8.24-6.398 3.638-6.946 3.979-14.461 3.345-22.095-.356-4.289-2.921-5.407-6.743-4.774 0 0-.02.01-.018-.387-.362-1.393-.44-2.917-1.139-3.299-3.536-1.927-7.234-3.558-10.875-5.292z' opacity='1' %3e%3c/path%3e %3cpath fill='%23BE9E6C' d='M83.903 213.061c-.59-.472-1.179-.944-1.765-1.99-2.694-1.41-5.39-2.245-8.325-3.173-.43-.369-.622-.645-.703-1.178.373-.752.636-1.246 1.302-1.728 4.513 1.322 8.479 1.861 11.937-1.928 4.477 5.269 7.375.949 10.618-.867 1.46 3.46 3.863 4.372 6.95 3.302 2.998-1.038 4.826-2.826 5.21-6.42.618-5.806-3.243-5.648-7.128-6.327-1.781-1.43-3.383-2.57-5.028-4.088-.662-2.842-1.283-5.307-1.598-7.627 4.32 3.18 8.337 6.213 12.484 9.427.33.407.57.574 1.065.97 1.344 2.43 2.477 4.57 3.49 7.092-.563 2.41-1.006 4.437-1.63 6.737-1.414 1.094-2.647 1.915-4.262 2.722-2.736 1.378-5.09 2.772-7.445 4.166 0 0-.058-.086-.418-.106-5.158.325-9.956.67-14.754 1.016z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593C21' d='M39.989 181.004c.332 1.098.665 2.195.74 3.853 1.917 3.754 4.093 6.947 6.27 10.142.001.001.004.003.037.296 2.337 1.26 5.037 1.754 6.864 3.288 4.628 3.887 9.683 3.426 15.013 2.76.1.752.143 1.184-.128 1.84-6.18 3.813-11.684.297-17.25-.8-2.99-.59-5.808-2.045-8.704-3.11-9.229-11.314-9.961-26.063-2.027-38.057 2.445-3.697 4.574-7.604 7.265-11.597.589 2.338.76 4.858.632 7.4-.767.345-1.235.668-1.984 1.118-1.093 1.04-1.906 1.95-2.717 2.862l-.301.151c-1.1 1.718-1.898 3.285-2.737 5.218-3.446 4.92-3.925 9.666-.973 14.636z' opacity='1' %3e%3c/path%3e %3cpath fill='%23906E4F' d='M107.908 117.86c-.659-.19-1.317-.382-2.287-.997 3.957-2.794 7.968-6.17 12.544-7.347 14.361-3.693 26.392 8.424 23.48 23.1-.417 2.098-1.194 4.123-2.291 6.142-.818-1.609-1.546-3.212-1.412-4.74.523-5.97 1.533-11.974-4.748-16.35-3.159-1.84-6.09-3.384-9.154-5.251-1.833-.137-3.535.048-5.621.29-3.76 1.755-7.135 3.454-10.511 5.154z' opacity='1' %3e%3c/path%3e %3cpath fill='%233A3A3B' d='M200.01 213.346l-5.1-4.131c-.836 3.486-.714 8.054-6.322 7.734-5.125-.293-4.935-4.371-5.583-7.913l-1.424-.29c-.871 2.516-1.742 5.031-3 7.82-1.29-.978-2.195-2.227-3.102-3.81.918-1.791 1.838-3.249 3.112-4.719 1.006-.778 1.66-1.543 2.508-2.502.75-.645 1.304-1.096 2.173-1.557.795-.369 1.273-.728 1.986-1.051.235.036.703.118.748.415.707.099 1.37-.099 2.239-.432.448-.366.617-.643 1.041-.942.771.044 1.212.064 1.679.31.027.226.086.679.066 1.107-.716 2.243-1.555 4.018-2.06 5.884-.387 1.432-.353 2.979-.506 4.475l1.805.22c1.244-2.98 2.488-5.958 3.973-9.023.69-.325 1.137-.564 1.769-.511 1.455 3.166 2.727 6.041 3.999 8.916z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M251.98 160.997c.179 2.136.357 4.273.795 6.988.244 1.014.228 1.447-.153 1.902-.852.05-1.34.078-2.15.057-.99-.896-1.657-1.742-2.563-2.888l-2.202 2.995c-1.99 0-3.442 0-5.189-.14-.711-1.067-1.129-1.994-1.546-2.92 3.077-6.892 1.262-13.593-5.517-20.21 1.462-1.867 3.105-3.231 5.054-4.622.714-.065 1.122-.104 1.784-.041.927.346 1.6.59 2.378 1.287.105 6.516.105 12.58.105 18.644.802-.07 1.95-.173 3.493-.223 2.167-.242 3.94-.536 5.711-.83z' opacity='1' %3e%3c/path%3e %3cpath fill='%237A522B' d='M133.422 117.96c6.053 4.084 5.043 10.089 4.52 16.058-.134 1.528.594 3.131 1.148 5.02-.844 2.446-1.91 4.574-3.627 6.85-1.898-.224-3.146-.598-4.405-1.352-.04-1.397-.068-2.415.178-3.644a81.102 81.102 0 003.683-7.28c.035-.752.047-1.183.33-1.84.9-5.748-1.98-9.082-6.571-11.48-5.4-2.82-10.617-3.248-15.675.708-.58-.48-1.16-.962-1.639-1.996 3.184-1.37 6.27-2.85 9.353-2.843 4.236.01 8.47 1.146 12.705 1.8m3.058 22.421l.166-.648c-.134.138-.268.277-.166.648z' opacity='1' %3e%3c/path%3e %3cpath fill='%23906E4F' d='M78.073 117.564c-.698.537-1.515.757-2.93 1.008-8.766-7.283-15.88-8.004-26.442-2.522-.756.705-1.18 1.38-1.636 2.367-.06.729-.087 1.146-.092 1.575.022.013.004-.035-.235.058-.467.346-.695.599-1.222 1.06-1.026 3.16-2.116 6.08-2.369 9.07-.216 2.565.527 5.21.566 7.557-1.17-4.797-2.06-9.332-2.95-13.868 1.82-11.481 12.605-17.958 24.368-13.954 4.576 1.557 8.566 4.837 12.942 7.649z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A7B0B9' d='M199.965 213.802c-1.226-3.33-2.498-6.206-3.916-9.801-.113-2.148-.082-3.576-.05-5.004 9.352 4.469 10.833 13.552 13.504 22.643h-11.09c.505-2.472 1.005-4.927 1.552-7.838z' opacity='1' %3e%3c/path%3e %3cpath fill='%23422B19' d='M106.902 208c1.233-.822 2.466-1.643 4.261-2.696 8.64.732 16.219-.55 22.9-5.445 1.47-1.076 2.633-2.568 4.156-3.974.491-.303.675-.563.775-.886.005.001 0-.011.317-.176 1.591-1.351 2.866-2.538 4.141-3.725-3.86 11.191-11.765 17.172-23.5 18.084-3.96.308-7.94.343-12.327.2-.518-.662-.62-1.022-.723-1.383zM42.872 199.613c2.855.725 5.673 2.18 8.663 2.77 5.566 1.097 11.07 4.613 17.517.972 1.703 1.172 2.825 2.397 3.947 3.622.192.276.384.552.765 1.2.14.743.094 1.113.047 1.484-8.944-.203-18.068.385-25.933-5.106-1.833-1.28-3.32-3.055-5.006-4.942z' opacity='1' %3e%3c/path%3e %3cpath fill='%23624123' d='M49 156.997c-.171-2.52-.342-5.04-.802-7.743-.578-.57-.869-.957-1.112-1.984.308-2.19.568-3.738 1.203-5.285 1.486-.997 2.597-1.994 3.864-3.289 2.045-2.786 3.936-5.274 5.828-7.377-1.452 4.735-4.663 8.955-.978 13.683 0 .443 0 .887-.317 1.832-2.607 3.848-2.243 9.22-7.686 10.163z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A7B0B9' d='M183.154 134.106c-.08-4.375-.158-8.75-.204-13.612.033-.488.086-.5.478-.48.83 2.668 1.269 5.318 1.658 8.37.162 1.782.373 3.162.583 4.542l1.537.088c.514-1.703 1.028-3.406 1.617-5.561-.595-6.165-1.265-11.877-1.859-17.923 2.97-3.174 3.089.19 4.088 1.842.522 1.502 1.092 2.642 1.694 4.2-.095 3.723-.222 7.03-.476 10.77-.57 2.668-1.011 4.904-1.696 7-.717.065-1.192.273-1.949.638-2.012.147-3.742.136-5.471.126z' opacity='1' %3e%3c/path%3e %3cpath fill='%23D8DDE0' d='M178.237 208.05c-.92 1.457-1.84 2.915-3.176 4.808-.625 2.98-.836 5.524-1.047 8.069-3.034 1.071-5.902-1.3-4.737-4.473 2.404-6.547 3.706-13.988 11.624-17.043.997 1.735 1.526 3.156 2.055 4.577-.553.45-1.107.902-2.191 1.56-1.197.97-1.862 1.736-2.528 2.502z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A7B0B9' d='M174.03 98.184c6.325-1.003 3.364 5.414 5.93 7.484 1.123.906 1.81 2.352 3.286 3.584.914.881 1.236 1.73 1.577 2.972-.635 1.526-1.288 2.661-2.278 3.824-1.762-1.134-3.188-2.296-4.592-3.795-.483-.462-.988-.587-1.823-.82-1.58-.532-2.83-.955-4.081-1.378a21.372 21.372 0 01-.076-1.97c-.228-1.11-.488-1.59-.748-2.069-.047-.16-.095-.32.187-.7 1.47 1 2.608 2.22 4.12 3.84-.563-4.105-1.032-7.538-1.502-10.972z' opacity='1' %3e%3c/path%3e %3cpath fill='%23E3E7EB' d='M238.62 167.02c.77.897 1.187 1.824 1.842 3.224-2.218 3.263-4.673 6.052-7.504 8.943-.864 2.657-1.353 5.213-1.934 8.176-.406 4.116-.72 7.826-1.369 11.351-.757-2.07-1.65-3.993-1.513-5.837.396-5.315 1.209-10.6 1.858-15.895.478-5.208 3.937-7.934 8.62-9.962z' opacity='1' %3e%3c/path%3e %3cpath fill='%23ABB0B6' d='M183.998 197.921s-.052-.435-.023-.998c.27-1.476.512-2.388.752-3.3 4.197 1.478 3.596-2.552 3.833-4.081.622-4.02.596-8.191.288-12.261-.064-.839-2.47-1.5-3.813-2.616 1.647-3.75 3.481-3.62 5.089-.433 1.09 2.163 1.8 4.518 2.71 7.039.032 1.072.033 1.892-.22 3.005-.254 3.942-.254 7.592-.254 12.073l-1.973-2.845c-1.87 1.937-3.652 3.784-5.66 5.488-.395-.453-.562-.762-.73-1.07z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M184.953 199.135l5.434-5.631 1.973 2.845c0-4.48 0-8.13.585-12.087 1.023-.306 1.462-.306 1.9-.307.157 4.863.314 9.726.812 14.816.31 1.654.279 3.082.21 4.938-.487.668-.935.907-1.767.943-1.272-.7-2.16-1.197-3.049-1.695 0 0-.06-.453-.067-1.03-.354-1.197-.701-1.819-1.048-2.44l-.98 2.457c-.094.323-.263.6-1.058.95-1.013.13-1.475.14-1.937.151 0 0-.468-.082-.698-.492-.257-1.412-.283-2.415-.31-3.418z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M192.398 125.909c.126-3.307.253-6.614.454-10.715.087-1.57.099-2.347.146-3.43.342-1.06.65-1.813 1.344-2.36 1.011-.298 1.637-.803 2.581-1.25-.125 1.633-.569 3.21-1.013 4.785l.808.897c2.133-1.92 4.266-3.84 6.688-5.759.737.32 1.184.64 1.63.96-2.211 3.068-3.833 7.045-6.79 8.965-3.402 2.207-5.145 4.166-4.373 8.45-.603.042-1.039-.25-1.475-.543z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M192.27 126.342c.564-.14 1 .152 1.687.536.645.867 1.589 1.952 1.352 2.373-2.842 5.055.832 6.396 4.218 8.546 5.14 3.263 6.955 8.852 8.107 14.823-1.121.384-1.857.378-2.665.15-.072-.221-.198-.67-.054-.966-.005-5.813-3.208-9.56-7.328-12.598-.637-.469-2.262.404-3.803.695-1.115.036-1.856.033-2.642-.203-.043-.234-.156-.696-.136-.967.014-.453.008-.634.004-1.193-.063-1.604-.128-2.83-.192-4.056.44-2.236.882-4.472 1.452-7.14z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M229.99 198.898c.315-3.71.628-7.419 1.38-11.52 1.128-.357 1.818-.32 2.534.025.029.72.032 1.133-.25 1.598-.096.719.093 1.385.291 2.37.004.74 0 1.164-.342 1.664-1.179 2.478.07 6.743 2.313 9.225.12.767.172 1.208-.14 1.682-4.589.354-.95 3.18-1.781 5.002-.008 1.001-.047 1.573-.086 2.145-4.65-.463-5.591-3.405-4.91-8.103.357-1.827.674-2.958.992-4.088z' opacity='1' %3e%3c/path%3e %3cpath fill='%23E3E7EB' d='M185.051 175.038c1.327.743 3.733 1.404 3.797 2.243.308 4.07.334 8.241-.288 12.26-.237 1.53.364 5.56-3.833 4.082-.24.912-.481 1.824-.792 3.084-4.8-.964-.925-4.053-.82-6.368 1.038-.403 1.845-.687 1.838-.947-.12-4.24-.342-8.475-.562-12.792-.022-.08-.083-.235.023-.468.283-.52.46-.807.637-1.094z' opacity='1' %3e%3c/path%3e %3cpath fill='%23555E67' d='M193.956 109.198c-.308.753-.616 1.507-1.187 2.423-.733-.095-1.201-.353-1.67-.61-1.046-1.29-1.166-4.655-4.467-1.435-.881 1.005-1.355 1.63-1.828 2.256-.322-.85-.644-1.699-1.226-2.672-1.537-3.506.196-5.48 3.078-6.559 3.326-1.247 6.096-.489 7.628 3.607-.04.852.005 1.145.014 1.663a8.932 8.932 0 00-.342 1.327z' opacity='1' %3e%3c/path%3e %3cpath fill='%23C8CACD' d='M248.174 221.74c-1.796-.699-3.592-1.397-5.583-2.763-.083-1.149.028-1.63.412-1.958.626.902.978 1.648 1.331 2.395l1.273-.79v-8.687c-1.23.504-2.092.858-3.154.828-.186-1.822-.174-3.259.09-4.88 1.6-.952 2.95-1.72 4.343-2.107 1.391 6.176 3.206 11.937 1.288 17.962z' opacity='1' %3e%3c/path%3e %3cpath fill='%239CA5AC' d='M262.293 178.257c.543.749 1.087 1.497 1.335 2.823-.4 2.384-.71 4.206-.57 5.993.272 3.473-1.367 4.445-4.4 3.446-.901-5.75-1.872-11.083-2.468-16.415 2.285 1.385 4.194 2.769 6.103 4.153z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M263.096 139.014c-.851 6.394-5.057 10.064-10.964 12.867-.564.055-1.057.086-1.124-.226-.149-.728-.23-1.145-.19-1.927.477-1.823.833-3.28 1.568-4.65 3.068-2.009 5.757-4.108 8.82-6.152.88.065 1.385.077 1.89.088z' opacity='1' %3e%3c/path%3e %3cpath fill='%23868485' d='M244.002 99.026l7.58-2.057c.148 2.105.28 3.986.405 6.639-.95 1.293-1.895 1.813-3.126 2.036-2.791-.383-5.294-.468-7.822-.773-.025-.22-.055-.66.215-.875 1.096-1.8 1.922-3.385 2.748-4.97z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593C21' d='M143.692 190.847c-1.515 1.438-2.79 2.625-4.379 3.602-.31-.958-.306-1.706-.04-2.67.745-1.738 1.226-3.262 1.707-4.786.002-.168.005-.335.367-.81 1.412-2.868 3.084-5.362 3.357-8 .343-3.31-.46-6.74-.691-10.188.078-.071.237-.21.237-.21 3.653 7.656 2.525 15.246-.558 23.062z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M248.576 221.8c1.516-6.085-.299-11.846-1.289-18.13 1.46-.563 2.562-.634 3.79-.416.181.707.236 1.124.222 1.868.514.849 1.097 1.372 1.786 2.268a17.616 17.616 0 01-.075 2.657c-.014-.03.05-.046-.132.051-.408.256-.622.43-.954.95-.132 1.821-.133 3.31-.134 4.798-.84 2.05 2.707 6.152-3.214 5.955z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M242.29 206.069c-.011 1.437-.023 2.874.09 5.1.2 2.423.275 4.06.35 5.696a9.83 9.83 0 00-.277 1.819 21.436 21.436 0 01-.498 2.375c-2.639-3.138-5.231-6.222-7.935-9.638-.072-.904-.033-1.476.27-2.306.888-.035 1.513.189 2.258.728 1.047.675 1.973 1.034 2.899 1.393l.444-.966c-.898-.493-1.796-.986-2.71-1.622-.015-.143.003-.431.314-.501.715-.705 1.118-1.34 1.767-2.017.246-.043.737-.13 1.119-.12.89.025 1.4.042 1.91.059z' opacity='1' %3e%3c/path%3e %3cpath fill='%23D8DDE0' d='M194.432 107.63c-.143-.277-.189-.57-.063-1.086 1.069-.557 2.061-.904 3.805-1.435 1.342-1.882 1.931-3.582 2.718-5.85.79.183 1.958.454 3.09 1.132-.313 2.834-.59 5.26-.865 7.686l-6.4 5.759c-.268-.3-.538-.598-.807-.897.444-1.576.888-3.152.47-4.907a686.272 686.272 0 00-1.948-.403z' opacity='1' %3e%3c/path%3e %3cpath fill='%23898D90' d='M240.984 104.21s.03.442.043 1.048c-.056 1.905-.125 3.204-.491 4.56-.703.085-1.108.11-1.529-.12-.167-.475-.318-.693-.469-.912-.127.468-.254.936-.793 1.34-.628-.236-.845-.41-1.027-.903-1.057-.152-2.835-.332-3.127.243-1.728 3.405-3.112 6.984-4.946 10.555-.781.03-1.23.007-1.678-.014.789-8.056 4.959-13.64 12.808-16.724.718.416.964.672 1.209.928z' opacity='1' %3e%3c/path%3e %3cpath fill='%23484748' d='M182.993 183.92c-7.073-2.182-10.944-7.177-12.163-14.568.624-.366.92-.378 1.45-.211.697.53 1.16.88 1.54 1.603.912 1.433 1.908 2.495 2.953 3.517.05-.04-.067-.09-.241.167-.093.447-.012.638.077 1.16.797 1.037 1.585 1.744 2.58 2.693 1.214.494 2.223.747 3.284 1.176.052.175.167.522.178.92.12 1.446.232 2.495.342 3.543z' opacity='1' %3e%3c/path%3e %3cpath fill='%23C8CACD' d='M238.203 142.185c-1.643 1.365-3.286 2.73-5.055 4.407-.685.575-1.244.836-1.802 1.098-.513-1.555-1.026-3.11-1.25-5.205.143-1.84-.002-3.138.142-4.67.431-.95.572-1.668.598-2.602-.114-.217.079-.668.321-.452.995.6 1.746.983 2.57 1.706.788 1.376 1.503 2.414 2.278 3.804.773.873 1.486 1.393 2.198 1.914z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M252.018 215.569c-.227-1.211-.226-2.7.173-4.477.556-.557.713-.824.87-1.091 0 0-.065.015.313.15 2.48-2.286 4.581-4.704 7.025-7.13 1.117.35 1.892.706 2.667 1.062-1.788 5.491-4.894 9.71-11.048 11.486z' opacity='1' %3e%3c/path%3e %3cpath fill='%238B5E35' d='M47.915 141.984c-.26 1.548-.521 3.097-.929 4.936-5.22-6.443-8.088-13.807-6.429-22.729 1.096 4.214 1.987 8.749 3.489 13.592 1.697 1.606 2.783 2.903 3.869 4.201z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M229.655 198.714c.018 1.314-.299 2.445-.635 3.93-.6.16-1.635.065-1.7-.24-1.866-8.639-2.313-17.196 2.289-25.405-.258 5.279-1.07 10.563-1.467 15.878-.138 1.844.756 3.766 1.513 5.837z' opacity='1' %3e%3c/path%3e %3cpath fill='%23484748' d='M195.176 183.832c-.77.124-1.208.124-1.977.138-.332-.807-.333-1.627-.04-2.828 1.146-1.325 1.997-2.27 3.197-3.162 2.254-1.786 4.159-3.623 6.476-5.313 1.097.657 1.783 1.167 2.469 1.677-3.265 3.122-6.53 6.244-10.125 9.488z' opacity='1' %3e%3c/path%3e %3cpath fill='%23624123' d='M131.068 144.916c1.249.374 2.497.748 4.14 1.16-3.121 5.599 2.166 8.813 3.838 13.712-.02 1.219-.03 1.714-.041 2.21-.325-.1-.589-.287-1.036-1.094-3.528-5.227-8.52-9.185-6.9-15.988z' opacity='1' %3e%3c/path%3e %3cpath fill='%23868485' d='M229.948 138.047c.146 1.3.29 2.599.189 4.143-4.768-4.845-4.173-11.057-3.698-17.7.836-.546 1.303-.554 1.758-.124.406 3.09.826 5.741 1.325 8.677.539.684.997 1.083 1.439 1.486a.49.49 0 00-.046.016s-.193.45-.41.683c-.33 1.095-.443 1.957-.557 2.82z' opacity='1' %3e%3c/path%3e %3cpath fill='%233A3A3B' d='M172.017 110.41c1.282.068 2.533.491 4.279 1.305.875.552 1.255.713 1.635.875a389.789 389.789 0 014.674 3.854c.408 1.428.42 2.488.431 3.55 0 0-.053.012-.048.04-3.664-3.073-7.333-6.171-10.97-9.625z' opacity='1' %3e%3c/path%3e %3cpath fill='%23898D90' d='M258.586 190.937c3.105.58 4.744-.391 4.473-3.864-.14-1.787.169-3.61.552-5.705 1.093 3.494 1.91 7.28 2.128 11.343-2.147 1.095-3.696 1.912-5.523 2.553a23.699 23.699 0 01-2.205-3.697c.137-.419.32-.568.575-.63zM262.258 113.084c1.369 5.116 2.737 10.233 3.542 15.63-1.34.253-2.116.225-2.865-.134-.51-1.143-1.046-1.955-1.617-3.049.013-.655.062-1.029.454-1.533.39-3.725.438-7.32.486-10.914z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M260.493 195.44c1.55-.817 3.1-1.634 5.074-2.447-.363 3.532-1.15 7.06-2.22 10.84-1.056-.106-1.831-.462-2.948-1.203-.196-2.653-.05-4.922.094-7.19z' opacity='1' %3e%3c/path%3e %3cpath fill='%23CDD4D8' d='M173.832 97.895c.668 3.723 1.137 7.156 1.7 11.262-1.512-1.62-2.65-2.842-4.13-4.091-.8-1.811-1.772-3.673-1.512-5.344.136-.878 2.426-1.422 3.942-1.827z' opacity='1' %3e%3c/path%3e %3cpath fill='%23898D90' d='M203.406 108.077c-.013-2.426.263-4.852.93-7.711 1.458-1.355 2.526-2.275 3.593-3.195-.75 3.855-1.498 7.71-2.57 11.716-.77-.17-1.216-.49-1.953-.81z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A7B0B9' d='M250.696 150.093c.081.417.163.834.016 1.772.049 3.111-4.25 6.614 1.296 8.151 0 0 .012.491-.008.736-1.792.538-3.564.832-5.685.686a58.813 58.813 0 012.649-11.477l1.732.132z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M262.908 128.911c.776.028 1.552.056 2.717.087-.353 3.221-1.094 6.438-2.182 9.836-.852.169-1.357.157-2.1-.232.246-1.805.73-3.23 1.216-4.656-2.17-.672-4.338-1.343-6.483-2.241.023-.226.13-.669.439-.814 1.739-.689 3.169-1.233 4.898-1.81l1.495-.17z' opacity='1' %3e%3c/path%3e %3cpath fill='%23868485' d='M262.298 177.858c-1.914-.985-3.823-2.37-6.077-3.783-.344-.03-.263-.004-.27-.348-.992-1.516-1.978-2.688-2.964-3.86.016-.435.032-.868.054-1.628 4.59 1.401 7.742 4.52 9.257 9.619z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A7B0B9' d='M262.26 112.908c-.05 3.77-.097 7.365-.643 10.749-1.473-1.67-2.447-3.13-3.482-4.962-.098-1.125-.136-1.878-.047-2.919.702-1.372 1.279-2.458 2.264-3.6.68-.111.95-.164 1.221-.216.23.257.46.515.688.948z' opacity='1' %3e%3c/path%3e %3cpath fill='%23898D90' d='M172.045 168.961c-.296.013-.591.025-1.329-.003-.561-5.732-.68-11.422-.478-17.39.569-.044.742.235.831 1.013.32 5.762.648 11.071.976 16.38z' opacity='1' %3e%3c/path%3e %3cpath fill='%23555E67' d='M207.477 97.13c-.615.961-1.683 1.881-3.104 2.828a49.109 49.109 0 01-3.48-.699c-.788 2.268-1.377 3.968-2.362 5.688-.395-2.421-.395-4.863-.395-7.857 3.07 0 5.98 0 9.341.04z' opacity='1' %3e%3c/path%3e %3cpath fill='%23868485' d='M205.04 152.991c.737.007 1.473.013 2.577.015.874 2.446 1.38 4.897 1.296 7.654-2.033.316-3.475.326-4.773.037.397-2.769.649-5.237.9-7.706z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M249.148 105.942c.944-.52 1.888-1.041 2.891-1.924 2.797 1.73 5.535 3.822 8.258 6.329-.016.414-.357.707-.688.63-2.302-1.556-4.274-3.034-7.117-5.165.281 2.623.415 3.871.292 5.188-.433.085-.61.1-.899-.196-.988-1.83-1.862-3.346-2.737-4.862z' opacity='1' %3e%3c/path%3e %3cpath fill='%239D896C' d='M84.057 213.386c4.644-.67 9.442-1.016 14.652-1.336-4.14 4.384-9.137 4.678-14.652 1.336z' opacity='1' %3e%3c/path%3e %3cpath fill='%23ABB0B6' d='M183.004 184.355c-.121-1.483-.232-2.532-.114-4.046-.004-.652-.237-.84-.47-1.028-1.008-.253-2.017-.506-3.198-1.298 1.615-.794 3.403-1.049 5.19-1.303.2 4.237.421 8.473.54 12.712.008.26-.799.544-1.55.711-.346-1.842-.367-3.578-.398-5.748z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M174.368 221.086c-.143-2.704.068-5.248.695-7.895 1.323 1.148 2.228 2.397 3.45 3.69.315 1.489.315 2.935.315 5.136-1.575-.296-2.84-.534-4.46-.93zM182.992 134.376c1.891-.26 3.621-.25 5.67-.013.311.99.305 1.753.059 2.707-.413.764-.584 1.337-1.017 2.024-1.73.382-3.201.651-4.727.581-.814-.896-1.573-1.453-2.53-2.217l-.6-.621c.995-.73 1.99-1.461 3.145-2.461z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M205.57 174.112c-.955-.278-1.64-.788-2.683-1.794.146-2.098.648-3.7 1.528-5.302l3.397.006c-.658 2.286-1.316 4.572-2.242 7.09z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M207.941 166.651c-1.136.37-2.142.367-3.59.01-.496-1.313-.55-2.27-.523-3.631.11-.947.14-1.491.17-2.033.002.003-.003 0-.003 0 1.443-.011 2.885-.021 4.763-.033.061 1.77-.313 3.543-.817 5.687z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M252.261 159.767c-5.8-1.288-1.5-4.79-1.482-7.59.296-.21.79-.241 1.027-.175.395 2.55.551 5.033.455 7.765z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M241.254 103.996c-.515-.041-.76-.297-1.136-.785.052-2.088.234-3.945.473-6.394 1.139.827 1.939 1.408 3.075 2.1-.49 1.694-1.316 3.279-2.412 5.079z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593C21' d='M139.249 162.165c-.233-.663-.222-1.158-.19-2.025 1.734 2.06 3.445 4.492 5.174 7.285.017.36-.142.499-.543.55-.831.044-1.262.037-1.693.03 0 0-.004-.5-.043-1.07-.677-1.025-1.317-1.478-1.956-1.932 0 0 .002-.003-.001-.254l-.01-.753c-.165-.554-.33-1.109-.738-1.83z' opacity='1' %3e%3c/path%3e %3cpath fill='%239D896C' d='M106.52 207.985c.484.375.587.735.684 1.376-2.457 1.101-4.91 1.92-7.746 2.765 1.971-1.369 4.326-2.763 7.062-4.141zM74.202 209.826c-.344-.536-.297-.906-.2-1.556a38.955 38.955 0 018.026 2.535c-2.553-.067-4.994-.44-7.826-.98z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M171.077 152.128c-.097-.325-.27-.604-.732-.96a44.782 44.782 0 013.078-8.203c.393-.113.616.066.565.435-1.003 3.155-1.957 5.941-2.91 8.728z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M184.726 198.992c.254 1.146.28 2.15.302 3.526-.483.732-.961 1.091-1.756 1.46-.845-1.411-1.374-2.832-2.015-4.58.632-.659 1.377-.992 2.432-1.401.476.233.643.542 1.037.995z' opacity='1' %3e%3c/path%3e %3cpath fill='%23C8CACD' d='M228.21 123.927c-.468.009-.935.017-1.746.108-.25-1.132-.156-2.347.22-3.795.731-.212 1.18-.19 1.982.135.084 1.387-.186 2.47-.456 3.552z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M174.898 140.915c1.176-1.227 2.352-2.455 3.96-3.532.658.391.926.567 1.034.945-1.761 1.075-3.319 1.88-4.906 2.661l-.088-.074z' opacity='1' %3e%3c/path%3e %3cpath fill='%23704A25' d='M88.576 116.305c-1.046.606-2.498 1.141-4.23 1.49.013-.467.306-.746.598-1.025 1.075-.178 2.15-.357 3.632-.465z' opacity='1' %3e%3c/path%3e %3cpath fill='%23906E4F' d='M84.654 116.65c-.002.4-.295.678-.695 1.13-.56.148-1.014.123-1.807.07.51-.46 1.36-.89 2.502-1.2z' opacity='1' %3e%3c/path%3e %3cpath fill='%23CDD4D8' d='M170.973 106.152c.512.344.772.823 1.011 1.593-.435-.292-.85-.875-1.011-1.593z' opacity='1' %3e%3c/path%3e %3cpath fill='%23906E4F' d='M98.763 116.867c-.396.198-1.03.25-1.756.079.444-.224.981-.225 1.756-.08z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M173.702 142.767c.146-.593.407-1.1.931-1.73.265-.122.324-.073.425.262-.273.8-.646 1.266-1.02 1.732 0 0-.222-.179-.336-.264z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M180.094 138.06c-.31-.11-.578-.286-.913-.742-.11-.215.253-.422.46-.451.34.108.472.246.672.696.066.312-.219.497-.219.497zM261.47 111.69c-.167.322-.438.375-1.12.19-.412-.434-.411-.63-.41-.826 0 0 .341-.293.534-.414.426.18.66.48.996 1.05z' opacity='1' %3e%3c/path%3e %3cpath fill='%238B5E35' d='M113 141.067c-.62 15.392-16.26 25.208-29.663 19.14-2.541-1.15-5.538-1.373-7.96-2.693-9.558-5.212-10.255-19.505-1.428-26.088 1.592-1.188 3.158-2.409 4.727-3.626 8.577-6.656 18.74-6.512 26.445 1.007 3.358 3.277 8.695 5.624 7.878 12.26m-16.092-12.848c-3.167-3.229-8.562-2.883-12.583.77-.44.005-.88.01-1.963.092-.457.638-.913 1.275-1.863 1.918 0 0-.493.008-1.207.073-5.752 1.789-7.846 6.397-8.196 11.721-.37 5.638 2.465 9.936 7.637 12.22 6.93 3.06 13.987 6.651 21.109.228.414-.373 1.32-.14 1.928-.368 4.286-1.613 8.75-8.887 8.175-13.25-.842-6.394-6.318-12.184-12.435-12.63 0 0-.493-.008-.602-.774z' opacity='1' %3e%3c/path%3e %3cpath fill='%23704A25' d='M107.727 190.284c-4.017-3.034-8.033-6.067-12.423-9.544-.503-.829-.631-1.215-.343-1.637 5.221.247 4.348-3.189 2.784-4.967-3.464-3.94-2.406-6.761.95-9.726.29-.257.217-.927.312-1.404 17.023-5.357 21.327-17.54 14.048-34.645 3.789-1.005 6.354.113 6.71 4.402.634 7.634.293 15.149-3.345 22.095-1.724 3.293-4.135 5.572-8.24 6.398-5.842 1.175-8.56 8.957-4.517 13.074.392 1.153.411 1.897.178 2.803.24 1.064.732 1.964 1.268 3.068.043.204.082.62-.195.842-.538 3.159-.21 5.8 3.1 7.285.006.776 0 1.22-.075 1.736l-.212.22z' opacity='1' %3e%3c/path%3e %3cpath fill='%237A522B' d='M98.642 163.044c.27.44.343 1.109.052 1.366-3.355 2.965-4.413 5.786-.949 9.726 1.564 1.778 2.437 5.214-2.952 4.864-.786-.26-.914-.49-.797-1.089 2.4-2.945 2.328-4.515-1.598-4.94-4.967-.537-5.92 2.078-5.358 6.453-.095.638-.15 1.002-.499 1.425-.975.439-1.66.818-2.343 1.198-5.013-1.526-4.208-4.387-1.988-7.863 3.908-6.121 3.833-6.17-2.05-10.878 1.45 0 3.205-.008 4.632.672 4.726 2.25 9.175 2.199 13.85-.934z' opacity='1' %3e%3c/path%3e %3cpath fill='%23704A25' d='M101.031 119.364c3.6 1.381 7.298 3.012 10.834 4.94.7.38.777 1.905 1.143 3.288-3.977-2.368-7.956-5.122-11.977-8.228z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M48.701 157.02c5.742-.966 5.378-6.338 7.985-9.854 1.736 2.657 2.958 5.605 4.636 8.267 1.36 2.155 3.266 3.964 4.93 5.927l-.527 1.557c-2.214-.255-4.52-.198-6.626-.817-9.79-2.875-19.547 5.407-18.184 15.517.126.929-.232 1.923-.646 3.137-3.232-4.72-2.753-9.466 1.041-14.442 1.156-2.051 1.922-3.682 2.689-5.313 0 0 .001.001.372-.007 1.123-1 1.875-1.991 2.627-2.983.468-.322.936-.645 1.703-.99z' opacity='1' %3e%3c/path%3e %3cpath fill='%237A522B' d='M50.997 193.002c-1.994-3.974-6.622-5.686-7.318-11.224-1.164-9.254 4.287-18.44 16.878-15.52 2.103.489 4.452-.084 6.95.14-.378 3.093-1.02 5.877-1.875 8.643-.213-.018-.64-.039-.693-.387-1.228-1.17-2.404-1.994-3.58-2.817-4.639-3.248-11.395-3.027-13.875.454-2.89 4.054-1.664 11.163 2.524 14.7-.008.009.012-.007.152.303.932 1.15 1.571 2.396 2.541 2.76 4.03 1.508 7.135 6.013 12.546 3.94a30.4 30.4 0 001.042-.022c.77-.335 1.24-.655 2.03-.985.746-.035 1.172-.06 1.63.16.033.247.068.743-.188.927-.443.776-.629 1.37-1.045 2.1-.376.46-.523.782-.643 1.28.027.174-.007.526-.352.526-.803.007-1.262.014-1.967-.257-5.082-1.76-9.919-3.24-14.755-4.722h-.002z' opacity='1' %3e%3c/path%3e %3cpath fill='%237E542D' d='M48.29 141.985c-1.46-1.299-2.547-2.596-3.965-3.94-.651-2.655-1.394-5.3-1.178-7.865.253-2.99 1.343-5.91 2.542-8.892.744-.464 1.016-.898 1.288-1.33 0 0 .018.047.325.011.772-.68 1.236-1.323 2.09-2.005 1.78-.494 3.142-1.207 4.564-1.361 5.54-.6 11.287-2.252 16.058 2.764a453.356 453.356 0 01-.064 2.621s-.479.005-.97.015c-.661.003-.83-.004-1.226-.316-5.074-3.13-10.096-1.999-14.581.046-3.729 1.7-6.911 4.64-6.264 9.745.44 3.468.986 6.633 5.089 7.516-1.112.997-2.223 1.994-3.709 2.991z' opacity='1' %3e%3c/path%3e %3cpath fill='%23261A11' d='M65.845 175.06a511.36 511.36 0 012.063-8.704c3.432-3.667 6.404-1.866 9.65.61-.172 3.498-.363 7.36-.639 11.935-1.665 2.13-3.244 3.546-5.2 4.947-1.123-.014-1.872-.015-2.72-.322-1.118-1.709-2.136-3.11-3.1-4.807.018-1.418-.018-2.539-.054-3.66m3.146 2.453l2.678 3.386c.768-.91 2.111-1.79 2.162-2.739.067-1.242-.888-2.54-1.403-3.813-1.133.79-2.266 1.581-3.437 3.166z' opacity='1' %3e%3c/path%3e %3cpath fill='%23DAB886' d='M86.035 202.935c-3.144 3.918-7.11 3.38-11.785 1.743-3.542-3.396-2.956-7.063-2.206-11.044.267-.702.421-1.099.671-1.44.095.055.3-.027.3-.027.421-.052.842-.105 1.983-.165 2.061.006 3.402.02 4.753.42 2.1 3.763 4.192 7.138 6.284 10.513z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M66 198.001c.46-.007.918-.014 1.85.278.649 1.114.826 1.93 1.003 2.744-5.27.986-10.325 1.447-14.953-2.44-1.827-1.534-4.527-2.028-6.726-3.343.011-.312-.082-.277-.176-.242-2.176-3.194-4.352-6.387-6.266-9.79 3.352 2.455 6.443 5.12 9.9 7.79.365.004.368.002.41.365 3.66 4.416 10.32 6.324 14.958 4.638z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593515' d='M70.018 118.993c-4.775-4.642-10.521-2.99-16.062-2.39-1.422.154-2.784.867-4.565 1.36-.391.037-.393.035-.392-.295.013-.77.023-1.21.034-1.649 10.23-5.45 17.344-4.73 25.834 2.719-.191.496-.702.858-1.854 1.222-1.425-.321-2.21-.644-2.995-.967z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M67.982 121.993c.168.006.337.013.758.02-1.698 3.09-3.091 6.819-5.728 9.126-4.26 3.73-4.38 8.618-5.73 13.608-3.964-4.473-.753-8.693.851-13.722 3.384-3.464 6.616-6.248 9.849-9.032z' opacity='1' %3e%3c/path%3e %3cpath fill='%23BE9E6C' d='M79.742 192.035a351.996 351.996 0 01-4.427-.065c1.211-1.941 2.75-3.929 4.465-5.75 1.231-1.308 2.698-2.394 4.239-3.876.863-.677 1.547-1.056 2.58-1.115-.795 2.347-1.996 4.345-3.023 6.428-.16.325.472 1.04.491 1.806-1.606 1.011-2.966 1.792-4.325 2.572z' opacity='1' %3e%3c/path%3e %3cpath fill='%237A542D' d='M72.899 191.844c.116.323-.089.405-.631.31-1.139-.132-1.734-.168-2.282-.58a399.912 399.912 0 012.11-7.712c1.579-1.415 3.158-2.83 4.816-4.56 2.849 2.854 1.685 5.12-1.275 7.475-1.353 1.077-1.927 3.132-2.738 5.067z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M70.014 119.367c.79-.051 1.574.272 2.679.628-.462.686-1.244 1.34-2.384 1.993-.339-.749-.319-1.497-.295-2.62z' opacity='1' %3e%3c/path%3e %3cpath fill='%237A522B' d='M112.532 198.144c-1.133-2.14-2.266-4.28-3.276-6.76.346-.357.57-.375 1.149-.349 2.87 2.302 5.2 5.265 9.16 3.826 3.524-1.28 7.054-2.68 10.315-4.503 4.462-2.495 6.841-10.707 4.698-14.97-1.956-3.89-7.512-5.134-13.172-3.174-1.669.578-3.547.55-5.387.435-1.093-2.784-2.127-5.202-3.16-7.621 5.872.66 11.744 1.327 17.618 1.974 3.927.433 8.33 5.77 8.448 10.86.071 3.091-.584 6.2-.929 9.961-.015.66-.017 1.142-.365 1.189-2.25 1.327-4.149 2.617-6.059 3.888-5.325 3.543-10.62 7.195-17.577 5.107.005-.006-.007.003-.085-.166-.323-.049-.567.072-.951.23-.14.036-.427.073-.427.073z' opacity='1' %3e%3c/path%3e %3cpath fill='%2362401E' d='M131.058 144.536c-1.608 7.183 3.383 11.14 6.801 16.148-5.417-1.293-10.544.615-15.785 2.047-1.409.385-3.49.104-4.564-.75-.652-.518-.496-3.08.204-4.107 4.671-6.846 6.324-14.724 8.57-22.727 1.105.553 1.819 1.28 2.619 2.319.744 1.421 1.4 2.53 2.058 3.637l.097 3.433z' opacity='1' %3e%3c/path%3e %3cpath fill='%232A201B' d='M112.508 164.99c1.384 2.457 2.418 4.875 3.485 8.001.068 1.165.104 1.62.08 2.452-.447 4.303-1.956 7.392-6.44 8.422-.727-.15-1.142-.236-1.715-.548a76.861 76.861 0 00-2.727-2.497l-.089-.954a23.616 23.616 0 00-1.008-2.895 434.32 434.32 0 00-.074-2.603c.358-2.326.42-4.411 1.176-6.204 1.263-2.99 3.274-5.122 7.312-3.174m-1.07 10.572l-3.282 3.392 2.46 1.902c.415-1.554.829-3.108.821-5.294z' opacity='1' %3e%3c/path%3e %3cpath fill='%23B88363' d='M128.817 137.152a273.343 273.343 0 00-2.371-2.39c-3.214-3.5-6.198-6.789-9.316-10.712.642-1.334 1.396-2.609 2.197-2.64 4.623-.176 13.832 6.206 15.65 10.589-.011.43-.023.86-.401 1.677-2.165 1.416-3.962 2.446-5.76 3.476z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A16F49' d='M135.25 131.772c-2.091-4.156-11.3-10.538-15.923-10.361-.801.03-1.555 1.305-2.4 2.369-1.258-.496-2.447-1.354-3.78-2.496 4.914-4.24 10.131-3.811 15.531-.991 4.591 2.397 7.471 5.731 6.571 11.48z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593515' d='M133.194 117.667c-4.007-.36-8.24-1.496-12.477-1.506-3.082-.007-6.169 1.473-9.47 2.58-1.218.111-2.22-.066-3.28-.562 3.317-2.018 6.692-3.717 10.893-5.365 2.32.009 3.815-.033 5.311-.076 2.932 1.546 5.864 3.09 9.023 4.93z' opacity='1' %3e%3c/path%3e %3cpath fill='%23624123' d='M141.998 168.47c.43-.458.86-.451 1.614-.425.631 3.398 1.435 6.827 1.092 10.137-.273 2.64-1.945 5.133-3.352 7.75-.022-5.629.312-11.314.646-17.463zM137.979 188.965s.002-.482.007-.722c.79-.56 1.575-.877 2.677-1.223-.164 1.497-.645 3.021-1.643 4.758-.685.213-.854.212-1.022-.166-.006-1.134-.013-1.89-.02-2.647zM140.04 165.323c.597.134 1.237.587 1.914 1.362-.599-.133-1.235-.587-1.914-1.362zM139.822 164.087c.167.077.17.244.173.663-.112-.023-.225-.297-.173-.663z' opacity='1' %3e%3c/path%3e %3cpath fill='%23261A11' d='M79.75 192.423c1.351-1.168 2.711-1.949 4.756-3.003 4.626-.308 8.567-.344 12.507-.379 1.603 1.141 3.205 2.282 4.91 4.064-1.603 3.334-3.31 6.026-5.015 8.719-3.184 2.189-6.082 6.509-10.56 1.24a132.127 132.127 0 01-6.598-10.641m3.68.27c.68 1.357 1.193 3.743 2.071 3.886 2.985.486 6.163.547 9.138.03 1.628-.284 2.999-2.055 4.485-3.156l-.654-1.129c-4.803 0-9.607 0-15.04.369z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593515' d='M137.998 191.99c.168 0 .337 0 .76.003.249.75.245 1.498.239 2.62-.002.375.002.387-.219.494-.49.306-.677.564-.778.883-1.304 1.3-2.468 2.793-3.936 3.869-6.682 4.895-14.26 6.177-22.719 5.172.061-2.068.504-4.095 1.066-6.505.12-.382.408-.42.77-.464.361-.046.807-.052.807-.052s.012-.01.051.364c1.419 1.425 2.857 3.42 4.166 3.339 3-.186 6.203-.888 8.839-2.29 3.873-2.061 7.323-4.917 10.954-7.433z' opacity='1' %3e%3c/path%3e %3cpath fill='%23DAB886' d='M96.971 188.664c-3.898.412-7.839.448-12.218.525-.705-.492-1.337-1.207-1.177-1.532 1.027-2.083 2.228-4.081 3.314-6.487 0-.744.055-1.108.46-1.917 2.209-2.583 4.231-2.992 6.475-1.015.054.272.182.503.55.797.298.49.426.876.624 1.56.69 2.762 1.31 5.227 1.972 8.07zM96.967 202.197c1.647-3.066 3.353-5.758 5.135-8.804 3.782.038 7.643-.12 7.024 5.686-.383 3.594-2.211 5.382-5.209 6.42-3.087 1.07-5.49.158-6.95-3.302z' opacity='1' %3e%3c/path%3e %3cpath fill='%23B88363' d='M68.913 201.343a46.121 46.121 0 00-.72-3.064c-.127-.299-.093-.65.095-.987.345-.643.501-.95.658-1.256.186-.593.372-1.186 1.132-1.917 1-.152 1.427-.166 1.854-.18-.638 3.676-1.224 7.343 1.914 10.727-.1.808-.363 1.302-.736 2.054-1.233-.968-2.355-2.193-3.745-3.59-.31-.603-.351-1.035-.452-1.787z' opacity='1' %3e%3c/path%3e %3cpath fill='%23704A25' d='M110.049 190.991c-.224.018-.447.036-1.004.104-.617-.057-.858-.224-1.188-.631-.13-.18.011-.326.385-.387.85.264 1.329.59 1.807.914z' opacity='1' %3e%3c/path%3e %3cpath fill='%23624123' d='M43.699 161.15c-.467 1.48-1.233 3.11-2.348 4.797.45-1.512 1.249-3.079 2.348-4.797zM46.717 158.137c-.471.864-1.223 1.856-2.347 2.855.441-.904 1.254-1.815 2.347-2.855z' opacity='1' %3e%3c/path%3e %3cpath fill='%237A522B' d='M124.04 112.417c-1.365.364-2.86.406-4.797.34 1.262-.292 2.964-.477 4.797-.34z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M191.031 203.385c.909.07 1.797.567 2.828 1.354-1.101 3.267-2.345 6.246-3.589 9.225l-1.805-.22c.153-1.496.119-3.043.506-4.475.505-1.866 1.344-3.64 2.06-5.884zM189.286 201.968c-.004-.843.323-1.662.65-2.481.347.621.694 1.243 1.022 2.214-.46.33-.9.31-1.672.267zM178.59 208.037c.313-.753.978-1.518 1.979-2.296-.319.753-.972 1.518-1.978 2.296zM186.006 203.342c.417-.307.879-.318 1.688-.313-.317.214-.98.412-1.688.313z' opacity='1' %3e%3c/path%3e %3cpath fill='%23F3F4F4' d='M256.206 131.036s-.107.443-.186 1.08c.355 4.504-.94 7.406-4.783 8.53-.049-3.503-1.11-6.248-4.47-6.336-1.928-.05-4.336 1.135-5.709 2.556-1.022 1.058-.727 3.387-1.02 5.15-.407.039-.815.078-1.529.143-1.018-.495-1.731-1.015-2.436-2.317-.03-7.472-.068-14.163-.002-21.196.952-2.113 1.8-3.885 3.007-6.404.842 2.817.876 4.973 1.971 6.038 1.147 1.115 3.301 1.475 5.04 1.548.62.026 1.314-1.76 2.254-2.5 1.028.275 2.314.59 2.433.342.59-1.226.873-2.6 1.574-3.728 3.16 3.73 4.493 7.571 2.406 12.268.285 1.759.868 3.292 1.45 4.826z' opacity='1' %3e%3c/path%3e %3cpath fill='%23484748' d='M258.657 190.52c-.325.479-.51.628-.976 1.112-1.128-.379-1.902-1.006-2.614-2.01 1.565-4.815.432-8.438-1.822-10.76-2.962 2.352-5.602 5.936-7.465 5.57-2.62-.516-4.664-3.963-7.223-6.414-3.973 3.98-2.938 10.212-3.764 15.87-.435-.39-.644-.66-.853-.93.005-.423.009-.847.06-1.937.012-1.135-.024-1.604-.06-2.072-.004-.413-.007-.825.02-1.976-.188-3.12-.407-5.504-.626-7.887 2.455-2.79 4.91-5.58 7.422-8.702 1.509-.333 2.961-.333 4.951-.333l2.202-2.995c.906 1.146 1.573 1.992 2.62 3.247 2.063 1.53 3.746 2.649 5.43 3.768 0 0-.082-.025-.113.003.94 5.362 1.91 10.695 2.811 16.445m-8.063-16.02s-.123.078 0 0z' opacity='1' %3e%3c/path%3e %3cpath fill='%23E3E7EB' d='M248.612 149.933c-.882 3.689-1.764 7.377-2.692 11.453-1.194.49-2.342.592-3.144.663 0-6.063 0-12.128.116-18.897.371-1.074.625-1.443 1.093-1.722.213.089.5-.269.5-.269s-.314-.336.3-.481c1.034-.113 1.454-.08 1.778.327.619 3.225 1.334 6.076 2.05 8.926z' opacity='1' %3e%3c/path%3e %3cpath fill='%23555E67' d='M243.772 141.34c-.255.37-.509.738-.985 1.36-.894.009-1.567-.236-2.494-.582.038-1.865-.257-4.194.765-5.252 1.373-1.421 3.78-2.607 5.71-2.556 3.36.088 4.42 2.833 4.393 6.248 0 .31-.218.395-.585.419a91.698 91.698 0 01-3.917-.344c-.42-.033-.84-.066-1.963.108-.703.207-.924.6-.924.6z' opacity='1' %3e%3c/path%3e %3cpath fill='%239CA5AC' d='M255.952 173.727c-1.677-.775-3.36-1.894-5.1-3.373.43-.389.918-.417 1.77-.467 1.351 1.152 2.337 2.324 3.33 3.84z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A16F49' d='M128.903 137.466c1.71-1.344 3.508-2.374 5.649-3.468-.785 2.185-1.913 4.434-3.316 6.894-.932-.897-1.59-2.005-2.333-3.426z' opacity='1' %3e%3c/path%3e %3cpath fill='%23906E4F' d='M136.363 140.266c.015-.255.15-.394.283-.532-.055.216-.11.432-.283.532z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593515' d='M49.001 118.001c-.463.645-.927 1.289-1.72 1.956-.303-.394-.276-.811.099-1.566.771-.357 1.195-.375 1.618-.393L49 118z' opacity='1' %3e%3c/path%3e %3cpath fill='%237E542D' d='M49 117.668c-.425.348-.849.366-1.587.41.108-.648.532-1.323 1.288-2.028.321.409.31.848.298 1.618z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593515' d='M46.738 120.05c-.033.34-.305.774-.75 1.03.055-.431.283-.684.75-1.03z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593C21' d='M138.219 195.885c-.118-.214.068-.472.554-.778.121.215-.063.475-.554.778z' opacity='1' %3e%3c/path%3e %3cpath fill='%23B88363' d='M67.754 121.687c-3.005 3.09-6.237 5.874-9.621 8.953-2.044 2.782-3.935 5.27-5.98 8.056-4.258-.585-4.805-3.75-5.244-7.218-.647-5.104 2.535-8.046 6.264-9.745 4.485-2.045 9.507-3.176 14.581-.046z' opacity='1' %3e%3c/path%3e %3cpath fill='%23F1F1F2' d='M183.428 120.013c-.403-1.08-.415-2.141-.486-3.598.593-1.53 1.246-2.665 1.88-4.191.455-1.017.929-1.643 1.734-2.314a144.7 144.7 0 012.009 17.603c-1.365.498-2.398.483-3.43.468-.438-2.65-.876-5.299-1.707-7.968z' opacity='1' %3e%3c/path%3e %3cpath fill='%23D8DDE0' d='M185.086 128.383c1.081-.387 2.114-.372 3.404-.418-.256 1.643-.77 3.346-1.284 5.049l-1.537-.088c-.21-1.38-.42-2.76-.583-4.543z' opacity='1' %3e%3c/path%3e %3cpath fill='%23555E67' d='M188.961 136.879c.006-.763.012-1.527-.017-2.674.438-.59.913-.798 1.63-.864.308 1.367.373 2.593.164 4.107-.775.003-1.276-.283-1.777-.569z' opacity='1' %3e%3c/path%3e %3cpath fill='%23868485' d='M191.052 111.372c.516-.104.984.154 1.682.555.217.92.205 1.696.086 2.85-.676-.763-1.246-1.903-1.768-3.405z' opacity='1' %3e%3c/path%3e %3cpath fill='%23CDD4D8' d='M177.953 112.253c-.402.175-.782.014-1.328-.43.34-.157.845-.032 1.328.43z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M232.958 179.187c.595 2.282.814 4.665.976 7.478-.746.393-1.436.356-2.472.305.143-2.57.632-5.126 1.496-7.783z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M196.007 177.927c-.851.945-1.702 1.89-2.879 2.964-1.204-2.14-1.913-4.496-3.004-6.66-1.608-3.185-3.442-3.316-5.089.434-.16.66-.338.948-.97 1.334-1.321-.6-2.189-1.297-2.67-2.04.958-1.244 1.28-2.69 2.16-3.59 1.573-1.613 3.445-3.955 5.262-4.02 1.775-.063 3.77 2.196 5.398 3.725.669.629.627 2.015 1.202 4.146 1.549-2.627 2.587-4.388 3.958-6.037-.175 1.96-.562 3.856-1.23 5.646-.535 1.433-1.413 2.737-2.138 4.098z' opacity='1' %3e%3c/path%3e %3cpath fill='%23FEFEFE' d='M194.298 107.87c.496-.166.858-.092 1.763.104-.082.627-.708 1.132-1.72 1.43-.316-.568-.246-.93-.043-1.533z' opacity='1' %3e%3c/path%3e %3cpath fill='%233A3A3B' d='M183.033 140.014c1.47-.269 2.94-.538 5.05-.91 1.394-.103 2.148-.103 2.903-.102 0 0 .113.462.089 1.036-.046 1.035-.067 1.496-.425 1.988-1.186 1.672-2.034 3.312-2.843 5.253.566.456 1.092.611 1.876.946.947-.967 1.636-2.114 2.582-3.435 1.386-1.02 2.516-1.864 3.974-2.606a65.247 65.247 0 014.963 8.305c-.613 2.748-1.178 5.088-1.866 7.014-.418-4.426-.07-8.677-2.989-10.769-2.951 2.343-5.596 5.99-7.693 5.7-2.427-.338-4.372-4.141-6.94-6.88-1.111 1.8-2.31 3.74-3.84 5.485-.145-2.095.041-3.994.496-6.103 1.734-1.78 3.198-3.35 4.663-4.922z' opacity='1' %3e%3c/path%3e %3cpath fill='%23CDD4D8' d='M199.458 157.916c.566-2.34 1.131-4.679 2.041-7.376 1.32.282 2.296.921 3.272 1.56 0 0 .126.449.198.67a102.31 102.31 0 01-.829 7.927c-.145.3-.14.303-.441.351-.185.827-.068 1.606.05 2.385.053.957.106 1.915.224 3.227-.438 1.958-.94 3.56-1.498 5.51-1.96 2.187-3.865 4.024-6.12 5.81.377-1.414 1.255-2.718 1.79-4.15.668-1.79 1.055-3.686 1.224-6.035-.667-2.61-1.188-4.718-1.237-6.837-.023-1.003.856-2.027 1.326-3.042z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A7B0B9' d='M204.915 151.804c-1.12-.343-2.096-.982-3.369-1.673-1.858-2.648-3.418-5.245-5.383-8.226-.938-.937-1.472-1.49-2.006-2.043 1.168-.252 2.793-1.125 3.43-.656 4.12 3.037 7.323 6.785 7.328 12.598z' opacity='1' %3e%3c/path%3e %3cpath fill='%23555E67' d='M193.784 139.9c.907.515 1.44 1.068 2.05 1.9a12.042 12.042 0 01-3.57 2.655c-.598-.928-.938-1.694-1.278-2.46.022-.461.043-.922.132-1.723.81-.338 1.551-.335 2.666-.371z' opacity='1' %3e%3c/path%3e %3cpath fill='%23484748' d='M191.006 138.73c-.775.271-1.53.271-2.662.26-.207-.583-.036-1.156.377-1.92.741.095 1.242.381 2.015.756.278.271.284.452.27.905z' opacity='1' %3e%3c/path%3e %3cpath fill='%23F1F1F2' d='M235.018 194.01c.601-5.78-.434-12.013 3.54-15.992 2.558 2.45 4.602 5.898 7.222 6.413 1.863.367 4.503-3.217 7.465-5.57 2.254 2.323 3.387 5.946 1.544 10.971-.468 1.22-.922 2.06-.673 2.454 2.535 3.993 1.24 7.927-.23 11.965-.49.258-.713.479-1.164.72-.633-.075-.994-.125-1.354-.175-.055-.418-.11-.835-.258-1.918-1.627-2.256-3.031-4.928-4.734-5.134-1.722-.208-3.74 2.024-5.774 3.403-.143.387-.142.56-.258 1.06-.194 1.482-.27 2.638-.345 3.794 0 0-.49.086-.86-.165-1.27-.805-2.17-1.36-3.05-1.904.02.009.051-.023.051-.023-.052-.441-.104-.882-.154-2.052-.32-3.101-.644-5.474-.968-7.847z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M234.793 193.888c.549 2.495.872 4.868 1.125 7.643-2.245-1.753-3.494-6.018-2.315-8.496.546.193.755.462 1.19.853z' opacity='1' %3e%3c/path%3e %3cpath fill='%23ABB0B6' d='M236.427 209.527c-.624-.223-1.25-.447-2.168-.841.567-1.564-3.072-4.39 1.516-4.744.365-.033.334-.001.194.268.312 1.515.763 2.761 1.215 4.007 0 0-.018.288-.198.612-.306.448-.433.573-.559.698z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M233.654 189c.322.417.358.886.338 1.704-.245-.318-.434-.984-.338-1.703z' opacity='1' %3e%3c/path%3e %3cpath fill='%239CA5AC' d='M181.009 174.005c.867.697 1.735 1.395 2.95 2.226.349.134.41.289.432.369-1.766.334-3.554.589-5.376 1.141-.82-.409-1.609-1.116-2.173-2.265.341-.558.458-.675.576-.791l-.712-.514s.118.05.166-.355c.071-1.867.093-3.328.46-4.798.804-.003 1.264.002 1.765.354.666 1.776 1.289 3.204 1.912 4.633z' opacity='1' %3e%3c/path%3e %3cpath fill='%23555E67' d='M240.38 206.01c-.305-1.165-.23-2.321.202-3.828.49-.43.624-.512.758-.592l-.593-.658c1.889-1.164 3.907-3.396 5.63-3.188 1.702.206 3.106 2.878 4.607 4.844-1.135.448-2.236.52-3.74.7-1.75.877-3.1 1.645-4.702 2.597-.76.167-1.27.15-2.161.124z' opacity='1' %3e%3c/path%3e %3cpath fill='%23FEFEFE' d='M243.003 217.02c-.348-1.791-.423-3.428-.424-5.468.936-.757 1.798-1.11 3.028-1.615v8.688l-1.273.79c-.353-.748-.705-1.494-1.33-2.396z' opacity='1' %3e%3c/path%3e %3cpath fill='%23C8CACD' d='M251.236 140.956c3.844-1.434 5.14-4.336 4.76-8.614 2.225.26 4.394.932 6.563 1.604-.485 1.426-.97 2.851-1.591 4.601-2.825 2.423-5.514 4.522-8.59 6.18-.737-1.552-1.086-2.663-1.435-3.774 0 0 .217-.085.293.003z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M250.576 140.977c.716 1.087 1.065 2.198 1.423 3.66-.348 1.81-.704 3.268-1.181 5.09-.582.331-1.042.296-1.854.234-1.067-2.878-1.782-5.729-2.401-8.954 1.28-.252 2.462-.13 4.013-.03z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M252.04 113.748c-.39 1.322-.673 2.696-1.264 3.922-.12.247-1.405-.067-2.526-.684-2.721-2.783-5.069-5.005-7.416-7.226.068-1.298.137-2.597.217-4.282 2.516-.302 5.019-.217 7.81.166 1.162 1.814 2.036 3.33 3.033 5.487.13 1.299.138 1.958.146 2.617z' opacity='1' %3e%3c/path%3e %3cpath fill='%23C8CACD' d='M254.108 204.167c1.248-3.954 2.543-7.888.008-11.88-.25-.394.205-1.235.61-2.078 1.053.417 1.827 1.044 2.931 1.606.981 1.047 1.632 2.16 2.56 3.449.131 2.444-.014 4.713-.16 7.373-2.102 2.81-4.204 5.228-6.67 7.543-.307-.875-.25-1.646-.291-2.799-.097-.38-.077-.4.263-.342.477-.919.613-1.895.75-2.872z' opacity='1' %3e%3c/path%3e %3cpath fill='%23C8CACD' d='M251.3 205.122c.428-.276.789-.226 1.404.181.275.797.295 1.238.315 1.679l-.03.027c-.593-.515-1.176-1.038-1.69-1.887zM252.878 210.098c.026.17-.131.437-.555.662-.067-.233.147-.406.555-.662z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M237.495 208.147c-.763-1.176-1.214-2.422-1.545-3.946 1.02.276 1.919.83 2.943 1.678-.28.928-.683 1.563-1.398 2.268z' opacity='1' %3e%3c/path%3e %3cpath fill='%23ABB0B6' d='M237.001 208.972c1.094.312 1.992.805 2.89 1.298l-.444.966c-.926-.36-1.852-.718-2.899-1.393.005-.44.132-.566.453-.871z' opacity='1' %3e%3c/path%3e %3cpath fill='%232E2E30' d='M240.536 109.818c2.645 2.163 4.993 4.385 7.433 6.948-.566 1.301-1.26 3.088-1.88 3.062-1.739-.073-3.893-.433-5.04-1.548-1.095-1.065-1.13-3.221-1.971-6.038-1.206 2.52-2.055 4.29-3.33 6.245-1.112-.422-1.799-1.025-2.425-2.004 1.16-2.564 2.26-4.752 3.36-6.94.217.173.434.347 1.288.56.637.039 1.052-.148 1.052-.148.405-.026.81-.052 1.513-.137z' opacity='1' %3e%3c/path%3e %3cpath fill='%23E3E7EB' d='M236.718 109.223c-1.135 2.508-2.235 4.696-3.666 7.38-.55 1.468-.77 2.44-1.275 3.628-.483 4.05-.68 7.882-1.269 11.87-.616.322-.841.49-1.066.657-.42-2.65-.839-5.302-1.245-8.392.283-1.522.553-2.604.802-4.041 1.48-3.875 2.864-7.454 4.592-10.859.292-.575 2.07-.395 3.127-.243z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M239.007 109.699c.016.256-.4.443-.625.467-.098-.444.03-.912.156-1.38.151.219.302.437.47.913z' opacity='1' %3e%3c/path%3e %3cpath fill='%23E3E7EB' d='M182.977 139.675c-1.409 1.91-2.873 3.481-4.97 5.33-1.552 3.395-2.47 6.513-3.7 9.79-.329 3.538-2.57 7.121.638 10.563.4 1.45.77 2.546.79 3.68-.844.47-1.339.902-1.833 1.334-.463-.35-.925-.701-1.622-1.231-.563-5.489-.89-10.798-1.21-16.56.961-3.24 1.915-6.026 2.918-9.181.424-.835.797-1.301 1.099-2.076 1.486-1.116 3.044-1.921 4.805-2.996.202-.268.487-.453.62-.558.892.452 1.65 1.009 2.465 1.905z' opacity='1' %3e%3c/path%3e %3cpath fill='%23ABB0B6' d='M173.82 170.744c.576-.804 1.071-1.236 2.141-1.713.576-.046 1.027-.005 1.027-.005-.023 1.462-.045 2.923-.166 4.83-1.094-.617-2.09-1.679-3.003-3.112z' opacity='1' %3e%3c/path%3e %3cpath fill='%239CA5AC' d='M182.473 179.457c.18.012.413.2.406.455-.239.067-.354-.28-.406-.455z' opacity='1' %3e%3c/path%3e %3cpath fill='%23ABB0B6' d='M176.532 174.428c.41-.086.648.086.886.257a3.064 3.064 0 01-.585.46c-.313-.08-.394-.27-.301-.717z' opacity='1' %3e%3c/path%3e %3cpath fill='%239CA5AC' d='M230.9 131.946c.197-3.833.394-7.666 1.169-11.471.914 5.235 1.25 10.444 1.586 15.653-.752-.384-1.503-.767-2.498-1.367-.242-.216-.213-.228-.185-.663a35.391 35.391 0 00-.073-2.152z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M233.727 136.467c-.408-5.548-.744-10.757-1.372-16.209-.072-1.215.147-2.187.637-3.28.957.484 1.644 1.087 2.653 1.85.36 6.851.397 13.542.368 20.662-.783-.609-1.498-1.647-2.286-3.023z' opacity='1' %3e%3c/path%3e %3cpath fill='%23E3E7EB' d='M230.238 137.815c-.176-.63-.062-1.492.382-2.37.19.702.05 1.42-.382 2.37z' opacity='1' %3e%3c/path%3e %3cpath fill='%23C8CACD' d='M230.508 132.1c.425.418.459.99.48 1.994-.47.032-.927-.367-1.466-1.05.145-.453.37-.62.986-.943z' opacity='1' %3e%3c/path%3e %3cpath fill='%23D8DDE0' d='M256.515 130.891c-.891-1.389-1.474-2.922-1.374-4.697 1.474-2.536 2.265-4.831 3.055-7.127.974 1.46 1.948 2.92 3.077 4.72.107.715.058 1.09-.067 2.15-.082 1.517-.087 2.347-.092 3.177-1.43.544-2.86 1.088-4.6 1.777z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A7B0B9' d='M261.413 129.08c-.294-.796-.289-1.626-.172-2.862.648.407 1.184 1.219 1.694 2.362-.425.377-.824.422-1.522.5z' opacity='1' %3e%3c/path%3e %3cpath fill='%233A3A3B' d='M258.135 118.695c-.73 2.668-1.52 4.963-2.696 7.275 1.404-4.457.07-8.298-3.09-12.028-.317-.853-.325-1.512-.342-2.498.168-.343.344-.36 1.123-.401 2.011 1.656 3.421 3.338 4.831 5.02.038.754.076 1.507.174 2.632z' opacity='1' %3e%3c/path%3e %3cpath fill='%239CA5AC' d='M258.088 115.776c-1.537-1.395-2.947-3.077-4.702-4.801-.479-1.292-.613-2.54-.894-5.163 2.843 2.131 4.815 3.609 7.117 5.164.33.274.329.47.33.961-.572 1.381-1.149 2.467-1.851 3.84z' opacity='1' %3e%3c/path%3e %3cpath fill='%23868485' d='M203.828 163.03c-.197-.376-.314-1.155-.131-1.984.27.493.24 1.037.131 1.984z' opacity='1' %3e%3c/path%3e %3cpath fill='%23986840' d='M98.002 128.997c5.624.442 11.1 6.232 11.942 12.625.574 4.364-3.889 11.638-8.175 13.25-.609.23-1.514-.004-1.928.369-7.122 6.423-14.18 2.831-21.11-.229-5.171-2.283-8.005-6.58-7.636-12.219.35-5.324 2.444-9.932 8.516-11.402-.212 1.136-.644 2.044-1.292 2.756-5.25 5.77-4.68 13.363 1.446 18.03 5.895 4.492 12.013 2.97 18.234.72 4.703-1.7 7.887-5.867 7.716-12.069-.12-4.372-1.88-8.33-6.815-10.092-.367-.754-.632-1.247-.898-1.74z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A16F49' d='M99.001 130.998c4.833 1.5 6.594 5.458 6.714 9.83.171 6.202-3.013 10.369-7.716 12.07-6.22 2.25-12.339 3.771-18.234-.72-6.126-4.668-6.697-12.26-1.446-18.03.648-.713 1.08-1.621 1.649-2.79.037-.35.53-.359 1.1-.4 1.023-.679 1.48-1.316 1.935-1.954.44-.005.88-.01 2.053-.011 1.804.005 2.875.008 3.884.36-.866.802-1.63 1.347-2.478 1.692-4.413 1.799-8.684 7.427-8.458 11.224.332 5.59 5.02 10.333 10.6 10.722 5.974.416 13.774-4.489 14.175-9.486.197-2.452-1.079-5.053-1.837-7.54-.516-1.694-1.29-3.308-1.946-4.96a.096.096 0 00.005-.007z' opacity='1' %3e%3c/path%3e %3cpath fill='%23986840' d='M89.002 129.003a912.693 912.693 0 01-3.616-.013c2.959-3.654 8.354-4 11.198-.383-1.079.392-1.833.396-3.004.397h-4.578z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A16F49' d='M93.996 129.006c.755-.003 1.51-.007 2.642-.016.378-.005.87.003 1.117.005.513.494.778.987 1.145 1.741.101.262.099.265-.3.267-1.8-.665-3.202-1.33-4.604-1.997z' opacity='1' %3e%3c/path%3e %3cpath fill='%23986840' d='M82.682 129.043c-.135.599-.59 1.236-1.368 1.912.134-.599.59-1.236 1.368-1.912z' opacity='1' %3e%3c/path%3e %3cpath fill='%238B5E35' d='M110.405 191.035c-.834-.369-1.312-.694-2.093-1.032-.297-.455-.292-.899-.299-2.114.013-1.963.038-3.155.063-4.346.415.086.83.171 1.759.593 1.277 1.032 2.539 1.62 2.72 2.444 1.024 4.65 3.071 6.537 7.299 5.16 3.532-1.15 7.056-2.96 9.936-5.282 2.46-1.982 4.586-4.908 1.697-8.52-3.34-4.177-5.555-4.508-9.99-2.196-1.314.685-3.55-.4-5.365-.674a22.692 22.692 0 01-.08-1.712c1.807-.592 3.685-.564 5.354-1.142 5.66-1.96 11.216-.716 13.172 3.174 2.143 4.263-.236 12.475-4.698 14.97-3.26 1.823-6.791 3.223-10.314 4.503-3.962 1.439-6.29-1.524-9.161-3.826z' opacity='1' %3e%3c/path%3e %3cpath fill='%237A542D' d='M107.918 183.317c.133 1.417.108 2.609.084 4.24-3.298-.715-3.626-3.355-3.088-6.514 1.133.535 1.99 1.292 3.004 2.274z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M103.84 177.133c.574.623.893 1.408 1.22 2.529-.487-.565-.98-1.465-1.22-2.529z' opacity='1' %3e%3c/path%3e %3cpath fill='%238B5E35' d='M93.996 177.911c-2.415-1.65-4.437-1.24-6.608 1.068-.91-3.93.043-6.545 5.01-6.008 3.926.425 3.999 1.995 1.598 4.94z' opacity='1' %3e%3c/path%3e %3cpath fill='%23986840' d='M71.72 183.848c-.312 2.46-.999 4.905-1.74 7.964-.055.614-.063 1.089-.063 1.089-.426.025-.852.05-1.768-.144-1.047.263-1.603.746-2.16 1.229 0 0-.495.006-.964-.266a1611.03 1611.03 0 00-15.005-6.736s-.02.016-.015-.415c-.19-1.551-.638-2.696-.53-3.785.267-2.727-.095-6.918 1.404-7.805 2.494-1.477 6.245-.98 9.47-1.01 1.544-.014 3.094.667 4.642 1.033 0 0 .428.021.64.04.25 1.138.286 2.26-.135 3.673-2.16-.172-3.857-.656-5.566-1.097-2.878-.743-5.633-1.744-7.735 1.81-2.05 3.464-.401 5.058 2.345 6.654 1.264.734 2.212 2.518 3.451 2.679 2.501.323 5.3.39 7.594-.462 1.515-.564 2.366-2.915 3.514-4.466.748 0 1.497.001 2.62.015z' opacity='1' %3e%3c/path%3e %3cpath fill='%238B5E35' d='M64.94 174.654c-1.497-.018-3.047-.7-4.592-.685-3.224.03-6.975-.467-9.47 1.01-1.498.887-1.136 5.078-1.404 7.805-.107 1.09.34 2.234.539 3.775-4.193-3.105-5.419-10.214-2.53-14.268 2.481-3.48 9.237-3.702 13.876-.454 1.176.823 2.352 1.646 3.58 2.817z' opacity='1' %3e%3c/path%3e %3cpath fill='%23704A25' d='M65.754 197.723c-4.391 1.964-11.052.056-14.713-4.359 4.794 1.119 9.63 2.6 14.713 4.359z' opacity='1' %3e%3c/path%3e %3cpath fill='%238B5E35' d='M50.16 187.294c4.705 1.845 9.55 4 14.618 6.428-4.942 2.345-8.047-2.16-12.077-3.669-.97-.363-1.61-1.609-2.54-2.76zM66.29 193.972c.256-.47.812-.952 1.54-1.205-.3.55-.77.87-1.54 1.205z' opacity='1' %3e%3c/path%3e %3cpath fill='%23704A25' d='M69.95 193.147c-.033-.246-.025-.721-.018-.96.602-.2 1.197-.165 2.24-.089.293.437.139.834-.128 1.536-.539.319-.965.333-1.71.302-.317-.046-.352-.542-.384-.789z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M68.716 196.174c.073.169-.083.475-.455.943-.068-.16.079-.483.455-.943z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A16F49' d='M68.999 183.526c-1.048 1.858-1.899 4.21-3.414 4.773-2.294.853-5.093.785-7.594.462-1.24-.16-2.187-1.945-3.45-2.68-2.747-1.595-4.396-3.19-2.346-6.653 2.102-3.554 4.857-2.553 7.735-1.81 1.709.44 3.406.925 5.512 1.393 1.42 1.405 2.439 2.806 3.557 4.515z' opacity='1' %3e%3c/path%3e %3cpath fill='%233A3A3B' d='M69.01 177.115c1.152-1.188 2.285-1.978 3.418-2.77.515 1.274 1.47 2.572 1.403 3.814-.05.949-1.394 1.828-2.162 2.739-.893-1.129-1.785-2.257-2.66-3.783z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593C21' d='M46.999 194.999c.093-.036.186-.071.142-.052-.138.055-.141.053-.142.052z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M137.998 191.612c-3.63 2.894-7.081 5.75-10.954 7.81-2.636 1.403-5.838 2.105-8.839 2.29-1.31.082-2.747-1.913-4.17-3.331 6.917 1.714 12.212-1.938 17.537-5.48 1.91-1.272 3.808-2.562 6.06-3.89.353.71.36 1.467.366 2.601zM113.91 197.84c.078.17-.368.176-.59.185.023-.112.267-.233.59-.184z' opacity='1' %3e%3c/path%3e %3cpath fill='%23986840' d='M116.072 175.443c1.874-.101 4.111.984 5.426.299 4.434-2.312 6.65-1.98 9.989 2.195 2.889 3.613.763 6.539-1.697 8.521-2.88 2.322-6.404 4.133-9.936 5.283-4.228 1.376-6.275-.512-7.299-5.16-.181-.826-1.443-1.413-2.409-2.38 3.971-1.366 5.48-4.455 5.926-8.758m12.31 3.931c-3.68-2.513-10.208-.145-11.295 4.099-.855 3.335 1.993 6.669 4.857 5.25 3.458-1.713 7.25-3.743 6.439-9.349z' opacity='1' %3e%3c/path%3e %3cpath fill='%233A3A3B' d='M111.648 175.878c-.203 1.87-.617 3.424-1.031 4.978l-2.46-1.902c1.093-1.13 2.187-2.262 3.49-3.076z' opacity='1' %3e%3c/path%3e %3cpath fill='%232E2E30' d='M83.745 192.508c5.118-.184 9.922-.184 14.725-.184l.654 1.129c-1.486 1.1-2.857 2.873-4.485 3.156-2.975.517-6.153.456-9.138-.03-.878-.143-1.391-2.529-1.756-4.07z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M250.533 174.538c-.062.039.061-.039 0 0z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M243.985 141.43c-.213-.09.008-.482.097-.543.089-.062.404.274.404.274s-.288.358-.501.269z' opacity='1' %3e%3c/path%3e %3cpath fill='%23F3F4F4' d='M181.394 173.96c-1.008-1.384-1.631-2.812-2.281-5.057-.32-6.434-.614-12.052-.908-17.67l3.51-5.678c2.567 2.738 4.512 6.54 6.94 6.878 2.096.292 4.74-3.356 7.692-5.699 2.92 2.092 2.571 6.343 2.99 10.769-.349 1.428-1.228 2.452-1.205 3.455.05 2.119.57 4.226.904 6.726-1.032 2.148-2.07 3.91-3.619 6.536-.575-2.131-.533-3.517-1.202-4.146-1.627-1.53-3.623-3.788-5.398-3.725-1.817.065-3.689 2.407-5.262 4.02-.88.9-1.202 2.346-2.16 3.59z' opacity='1' %3e%3c/path%3e %3cpath fill='%23868485' d='M177.874 151.039c.625 5.812.918 11.43 1.196 17.516-.474.465-.934.46-1.738.463-.344.008-.795-.033-1.022-.026-.596-1.088-.966-2.184-.978-3.703 3.728-4.223.5-7.333-.713-10.654.918-3.117 1.836-6.235 3.119-9.422.177 1.832-.009 3.731.136 5.826z' opacity='1' %3e%3c/path%3e %3cpath fill='%23484748' d='M190.65 142.026c.676.735 1.016 1.501 1.357 2.603-.688 1.482-1.377 2.629-2.565 3.36-.891-.613-1.283-.812-1.675-1.01.849-1.641 1.697-3.281 2.883-4.953z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M187.807 147.28c.352-.103.744.096 1.377.53-.285.08-.81-.075-1.377-.53z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M253.36 207.04c-.361-.5-.381-.94-.383-1.712.196-.598.419-.82.91-1.077a5.005 5.005 0 01-.528 2.788z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M240.602 201.147c.343.004.54.223.738.443-.134.08-.267.161-.64.266-.24-.149-.241-.322-.098-.71z' opacity='1' %3e%3c/path%3e %3cpath fill='%239CA5AC' d='M174.307 154.794c1.525 3.162 4.753 6.272.995 10.14-3.566-3.018-1.324-6.601-.995-10.14z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A87550' d='M93.58 129.004c1.818.668 3.22 1.334 5.018 2.002 1.053 1.65 1.828 3.265 2.344 4.958.758 2.488 2.034 5.089 1.837 7.54-.4 4.998-8.201 9.903-14.175 9.487-5.58-.389-10.268-5.131-10.6-10.722-.226-3.797 4.045-9.425 8.458-11.224.847-.345 1.612-.89 2.478-1.692 1.45-.35 2.836-.35 4.64-.349m-3.87 6.03c-3.6 1.68-7.703 3.085-6.547 8.343.526 2.395 6.68 3.169 10.776 1.819 3.9-1.285 3.959-3.894 2.022-6.472-1.253-1.668-3.611-2.506-6.251-3.69z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A16F49' d='M128.589 179.68c.605 5.3-3.187 7.33-6.645 9.043-2.864 1.419-5.712-1.915-4.857-5.25 1.087-4.244 7.616-6.612 11.502-3.792z' opacity='1' %3e%3c/path%3e %3cpath fill='%23B88363' d='M90.098 135.021c2.252 1.197 4.61 2.035 5.863 3.703 1.937 2.578 1.878 5.187-2.022 6.472-4.097 1.35-10.25.576-10.776-1.819-1.156-5.258 2.946-6.663 6.935-8.356z' opacity='1' %3e%3c/path%3e %3c/svg%3e",function:()=>C(9)}),console.debug(Z);const $=r.getSelectedCriteria();(0,i.useEffect)((()=>{var e;if($.isUpdateCriteriaEnabled()){const t=$.selectedRules[$.updateCriteriaIdx];if("PUSH"===t.type){p(J.PUSH.findIndex((e=>e.value===t.category)));const r=t.data;if(t.category===Y9||t.category===Z9||t.category===$9){r.token&&R(r.token),r.decimals&&F(L);const t=(r.contract||"eip155:1:0x").split(":");C(Z.findIndex((e=>e.value===t[0]+":"+t[1]))),x(3===t.length?t[2]:""),I((null===(e=r.tokenId)||void 0===e?void 0:e.toString())||""),z({value:r.amount||0,range:Q.findIndex((e=>e.value===r.comparison))})}else t.category===X9?T({admin:!0,owner:!0}):P(r.url||"")}else D(t.data.id),B(t.data.role),w(t.data.comparison||Que[2].value);l(W.findIndex((e=>e.value===t.type)))}}),[]),(0,i.useEffect)((()=>{const e=setTimeout((()=>pJ(void 0,void 0,void 0,(function*(){yield Jse({setValidationErrors:f,selectedCategoryValue:h,selectedTypeValue:u,dropdownCategoryValues:J,dropdownTypeValues:W,contract:E,setUnit:R,setDecimals:F,selectedChainValue:A,dropdownChainsValues:Z,tokenId:Number(S)})}))),2e3);return()=>clearTimeout(e)}),[E,h,A]);const X=e=>{V.showMessageToast({toastTitle:"Error",toastMessage:e,toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})};return(0,n.jsxs)(qme,Object.assign({theme:G,flexDirection:"column",gap:"12px",overflow:"hidden scroll",justifyContent:"start",padding:"0 2px 0 10px",width:q?"300px":"400px"},{children:[(0,n.jsx)(D7,Object.assign({margin:"0 0 5px 0"},{children:(0,n.jsx)(jce,{handleClose:t,handlePrevious:e,title:$.isUpdateCriteriaEnabled()?"Update Criteria":"Add Criteria"})})),(0,n.jsx)(rue,{labelName:"Type",selectedValue:u,dropdownValues:W}),(0,n.jsxs)(D7,Object.assign({zIndex:"unset",justifyContent:"space-between",alignItems:"center"},{children:[(0,n.jsx)(D7,Object.assign({width:"48%",zIndex:"unset"},{children:Array.isArray(zse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedTypeValue:u}))?(0,n.jsx)(rue,{labelName:"Gating Category",selectedValue:h,dropdownValues:zse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,selectedTypeValue:u})}):(0,n.jsx)(qce,{labelName:"Gating category",inputValue:null===(o=zse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,selectedTypeValue:u}))||void 0===o?void 0:o.title,disabled:!0,customStyle:{background:null===(a=G.backgroundColor)||void 0===a?void 0:a.modalHoverBackground}})})),(0,n.jsx)(D7,Object.assign({width:"48%"},{children:Array.isArray(Wse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,dropdownSubCategoryValues:Y,selectedTypeValue:u}))?(0,n.jsx)(rue,{labelName:"Sub-Category",selectedValue:g,dropdownValues:Wse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,dropdownSubCategoryValues:Y,selectedTypeValue:u})}):(0,n.jsx)(qce,{labelName:"Sub-category",inputValue:null===(s=Wse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,dropdownSubCategoryValues:Y,selectedTypeValue:u}))||void 0===s?void 0:s.title,disabled:!0,customStyle:{background:null===(c=G.backgroundColor)||void 0===c?void 0:c.modalHoverBackground}})}))]})),Vse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,selectedTypeValue:u})&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(rue,{labelName:"Blockchain",selectedValue:A,dropdownValues:Z}),(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(qce,{labelName:"Contract",inputValue:E,onInputChange:e=>x(e.target.value),placeholder:"e.g. 0x123...",error:!!(null==d?void 0:d.tokenError)}),!!(null==d?void 0:d.tokenError)&&(0,n.jsx)(Gme,{children:null==d?void 0:d.tokenError})]})),Kse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,selectedTypeValue:u})&&(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(qce,{labelName:"Token Id",inputValue:S,onInputChange:e=>I(e.target.value),placeholder:"e.g. 2",error:!!(null==d?void 0:d.tokenId)}),!!(null==d?void 0:d.tokenId)&&(0,n.jsx)(Gme,{children:null==d?void 0:d.tokenId})]})),(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(vue,{dropDownValues:Q,labelName:"Quantity",inputValue:U,error:!!(null==d?void 0:d.tokenAmount),onInputChange:e=>{z(Object.assign(Object.assign({},U),{value:e.target.value}))},placeholder:"e.g. 1.45678",unit:N}),!!(null==d?void 0:d.tokenAmount)&&(0,n.jsx)(Gme,{children:null==d?void 0:d.tokenAmount})]}))]}),Gse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,selectedTypeValue:u})&&(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(qce,{labelName:"URL",inputValue:M,onInputChange:e=>P(e.target.value),placeholder:"e.g. abc.com",error:!!(null==d?void 0:d.url)}),!!(null==d?void 0:d.url)&&(0,n.jsx)(Gme,{children:null==d?void 0:d.url})]})),qse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,selectedTypeValue:u})&&(0,n.jsx)(D7,Object.assign({flexDirection:"column",gap:"10px"},{children:Object.keys(que).map((e=>(0,n.jsx)(xue,{labelName:que[e],onToggle:()=>T({admin:!0,owner:!0}),checked:k[e]})))})),Qse(W,u)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(qce,{labelName:"ID",inputValue:j,onInputChange:e=>D(e.target.value),placeholder:"e.g. 4687",error:!!(null==d?void 0:d.guildId)}),!!(null==d?void 0:d.guildId)&&(0,n.jsx)(Gme,{children:null==d?void 0:d.guildId})]})),(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(pue,{options:Que,totalWidth:q?"400px":"410px",selectedValue:v,error:!!(null==d?void 0:d.guildComparison),handleClick:e=>{w(e)}}),!!(null==d?void 0:d.guildComparison)&&(0,n.jsx)(Gme,{children:null==d?void 0:d.guildComparison})]})),"specific"===v&&(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(qce,{labelName:"Specific Role",inputValue:O,onInputChange:e=>B(e.target.value),placeholder:"e.g. 4687",error:!!(null==d?void 0:d.guildRole)}),!!(null==d?void 0:d.guildRole)&&(0,n.jsx)(Gme,{children:null==d?void 0:d.guildRole})]}))]}),(0,n.jsxs)(yue,Object.assign({width:"197px",onClick:()=>pJ(void 0,void 0,void 0,(function*(){b(!0);const t=W[u].value,r="PUSH"===t?J[t][h].value||Y9:"ROLES";let n="DEFAULT";"PUSH"===t&&(r===Y9||r===Z9||r===$9?n=r7:r===e7&&(n="GET")),console.debug(A);const i={type:t,category:r,subcategory:n,data:Yse({type:t,category:r,contract:E,quantity:U,decimals:L,unit:N,url:M,inviteCheckboxes:k,guildComparison:v,specificRoleId:O,guildId:j,dropdownQuantityRangeValues:Q,selectedChainValue:A,dropdownChainsValues:Z,tokenId:Number(S)})},o=yield rce(i);if(b(!1),Object.keys(o).length)f(o);else{if(!$.addNewRule(i))return void X("Selected Criteria was already added");e&&e()}}))},{children:[!y&&($.isUpdateCriteriaEnabled()?"Update":"Add"),y&&(0,n.jsx)(k7,{size:"20",color:"#fff"})]})),(0,n.jsx)(_ue,{label:"Learn more about access gating rules",cta:"https://push.org/docs/chat/build/conditional-rules-for-group/"})]}))},Gme=(0,o.Ay)(B7).withConfig({displayName:"AddCriteria__ErrorSpan",componentId:"sc-l617j0-0"})(["font-size:12px;font-weight:500;color:#ed5858;"]),qme=(0,o.Ay)(D7).withConfig({displayName:"AddCriteria__ScrollSection",componentId:"sc-l617j0-1"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar-button{height:40px;}&::-webkit-scrollbar{width:4px;}"],(e=>e.theme.scrollbarColor)),Qme=({onSubmit:e,handlePrevious:t,onClose:r,memberList:i,handleMemberList:o,isLoading:a=!1,isPublic:s})=>{const{user:c,toast:u}=P5();return(0,n.jsx)(Lue,{title:"Create Group",submitButtonTitle:"Create Group",addMemberToList:e=>pJ(void 0,void 0,void 0,(function*(){var t;let r="";if(l8(e.wallets.toLowerCase())===l8((null!==(t=null==c?void 0:c.account)&&void 0!==t?t:"").toLowerCase())&&(r="Group Creator cannot be added as member"),Zse(e,i,"wallets")&&(r="Address is already added"),r)u.showMessageToast({toastTitle:"Error",toastMessage:r,toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})});else{const t=i;t.push(Object.assign(Object.assign({},e),{isAdmin:!1})),o(t)}})),onClose:r,onSubmit:e,isLoading:a,handlePrevious:t,memberList:i,totalAllowedMembers:s?25e3:5e3,handleMemberList:o})},Wme=1,Jme=2,Yme=3,Zme=4,$me=5,Xme=({onClose:e,closeModalOnClickAway:t=!1,modalBackground:r=k5.OVERLAY,modalPositionType:o=_5.GLOBAL,onSuccess:a})=>{const[s,c]=(0,i.useState)(Wme),{createGatedGroup:u,loading:l}=(()=>{const[e,t]=(0,i.useState)(!1),[r,n]=(0,i.useState)(),{user:o}=P5(),a=(0,i.useCallback)(((e,i)=>pJ(void 0,void 0,void 0,(function*(){t(!0),console.debug("user in create group ",o);try{const r={description:e.groupDescription,image:e.groupImage,private:!e.isPublic,members:e.members,admins:e.admins,rules:i},n=yield null==o?void 0:o.chat.group.create(e.groupName,r);return t(!1),n?{success:!0,data:n}:{success:!1,data:"Something went wrong"}}catch(r){return t(!1),n(r.message),r.message}}))),[o]);return{createGatedGroup:a,error:r,loading:e}})(),{toast:d,user:f}=P5(),h=()=>{c(s+1)},p=()=>{c(s+3)},g=()=>{c(s-3)},m=()=>{c(s-1)},y=(()=>{const[e,t]=(0,i.useState)(Nme.CHAT),r=Bme([[{type:"PUSH",category:"INVITE",subcategory:"DEFAULT",data:{inviterRoles:["ADMIN","OWNER"]}}]],["all"]),n=Bme([],[]),o=(e,t)=>(console.debug("generate",e),0===e.length?[]:(console.log(`Generating for ${JSON.stringify(e)}`),console.log("condition type",t),t.map(((t,r)=>{var n,i;return{[t]:null!==(i=null===(n=e[r])||void 0===n?void 0:n.map((e=>e)))&&void 0!==i?i:[]}}))));return{entryCriteria:r,chatCriteria:n,seletedCriteria:e,setSelectedCriteria:t,getSelectedCriteria:()=>e===Nme.CHAT?n:r,resetRules:()=>{r.selectEntryOptionsDataArrayForUpdate(-1),r.setSelectedRule([]),n.selectEntryOptionsDataArrayForUpdate(-1),n.setSelectedRule([])},resetCriteriaIdx:()=>{r.setUpdateCriteriaIdx(-1),console.debug(r,n),n.setUpdateCriteriaIdx(-1)},generateRule:()=>({entry:{conditions:{[r.entryRootCondition]:o(r.entryOptionsDataArray,r.entryOptionTypeArray)}},chat:{conditions:{[n.entryRootCondition]:o(n.entryOptionsDataArray,n.entryOptionTypeArray)}}})}})();(0,i.useEffect)((()=>{2===s?y.resetRules():3===s&&y.resetCriteriaIdx()}),[s]);const[b,v]=(0,i.useState)(!0),[w,A]=(0,i.useState)({groupName:"",groupDescription:"",groupImage:"",groupMembers:[],groupEncryptionType:Rme[0].value}),[C,E]=(0,i.useState)(!1),x=e=>{d.showMessageToast({toastTitle:"Error",toastMessage:e,toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})},S=()=>"encrypted"!==w.groupEncryptionType,I=()=>pJ(void 0,void 0,void 0,(function*(){""!==w.groupEncryptionType.trim()?yield pJ(void 0,void 0,void 0,(function*(){if(f)if(f.readmode())console.error("UIWeb::CreateGroupModal::createGroupService::User is in read mode.Switch to write mode"),d.showMessageToast({toastTitle:"Error",toastMessage:"Unable to create group in readMode. Switch to write mode",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})});else{const t={groupName:w.groupName,groupDescription:w.groupDescription,groupImage:w.groupImage||z4,isPublic:S(),members:w.groupMembers.filter((e=>!e.isAdmin)).map((e=>e.wallets)),admins:w.groupMembers.filter((e=>e.isAdmin)).map((e=>e.wallets))},r=b?y.generateRule():{},{success:i,data:o}=yield u(t,r);!0===i?(a&&a(o),d.showMessageToast({toastTitle:"Success",toastMessage:"Group created successfully",toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"green"})}),e()):x("Group creation failed")}})):x("Group encryption type is not selected")}));return(0,n.jsx)(Pce,Object.assign({onClose:e,closeonClickAway:t,modalBackground:r,modalPositionType:o},{children:(()=>{switch(s){case Wme:return(0,n.jsx)(eye,{checked:b,setChecked:v,criteriaStateManager:y,handleNext:h,onClose:e,groupInputDetails:w,setGroupInputDetails:A,isImageUploaded:C,setIsImageUploaded:E});case Jme:return(0,n.jsx)(Fme,{checked:b,setChecked:v,criteriaStateManager:y,groupInputDetails:w,setGroupInputDetails:A,handleNext:h,onClose:e,handlePrevious:m,handleAddWallets:p});case Yme:return(0,n.jsx)(Hme,{criteriaStateManager:y,handleNext:h,handlePrevious:m,onClose:e});case Zme:return(0,n.jsx)(Kme,{criteriaStateManager:y,handlePrevious:m,onClose:e});case $me:return(0,n.jsx)(Qme,{onSubmit:I,onClose:e,handlePrevious:g,memberList:w.groupMembers,handleMemberList:e=>{A((t=>Object.assign(Object.assign({},t),{groupMembers:e})))},isLoading:l,isPublic:S()});default:return(0,n.jsx)(eye,{criteriaStateManager:y,handlePrevious:m,onClose:e,groupInputDetails:w,setGroupInputDetails:A,isImageUploaded:C,setIsImageUploaded:E})}})()}))},eye=({handleNext:e,onClose:t,groupInputDetails:r,setGroupInputDetails:o,isImageUploaded:a,setIsImageUploaded:s})=>{const{groupName:c,groupDescription:u,groupImage:l}=r,d=(0,i.useContext)(Pae),[f,h]=(0,i.useState)({}),p=(0,i.useRef)(null),g=K9(c5.mobileL),[m,y]=(0,i.useState)();return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"center",gap:"16px",overflow:"hidden auto",justifyContent:"start",width:g?"300px":"400px"},{children:[(0,n.jsx)(jce,{title:"Create Group",handleClose:t}),(0,n.jsxs)(tye,Object.assign({onClick:()=>{p.current&&p.current.click()}},{children:[a?l?(0,n.jsx)(nye,{children:(0,n.jsx)(n5,{src:l,objectFit:"contain",alt:"group image",width:"100%",height:"100%"})}):(0,n.jsx)(Hue,{imageSrc:m,onImageCropped:e=>o((t=>Object.assign(Object.assign({},t),{groupImage:e}))),width:void 0,height:void 0}):(0,n.jsx)(rye,Object.assign({theme:d},{children:(0,n.jsx)(AI.YVi,{fontSize:40,color:"rgba(87, 93, 115, 1)"})})),(0,n.jsx)(iye,{type:"file",accept:"image/*",className:"hidden",ref:p,onChange:e=>(e=>{if(e.target instanceof HTMLInputElement&&e.target.files&&e.target.files&&e.target.files.length&&s){s(!0),o((e=>Object.assign(Object.assign({},e),{groupImage:""})));const t=new FileReader;t.readAsDataURL(e.target.files[0]),t.onloadend=function(){y(t.result)}}})(e)})]})),(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(qce,{labelName:"Group Name",charCount:100,inputValue:c,onInputChange:e=>o((t=>Object.assign(Object.assign({},t),{groupName:e.target.value}))),error:!!(null==f?void 0:f.groupName)}),!!(null==f?void 0:f.groupName)&&(0,n.jsx)(oye,{children:null==f?void 0:f.groupName})]})),(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(cue,{labelName:"Group Description",charCount:150,inputValue:u,onInputChange:e=>o((t=>Object.assign(Object.assign({},t),{groupDescription:e.target.value}))),error:!!(null==f?void 0:f.groupDescription)}),!!(null==f?void 0:f.groupDescription)&&(0,n.jsx)(oye,{children:null==f?void 0:f.groupDescription})]})),(0,n.jsx)(yue,Object.assign({width:"197px",onClick:()=>{0!==c.trim().length?c.trim().length<3?h({groupName:"Group name should have minimum 3 character"}):0!==u.trim().length?u.trim().length<3?h({groupDescription:"Group Description should have minimum 3 character"}):e&&e():h({groupDescription:"Group Description is empty"}):h({groupName:"Group name cannot be empty"})}},{children:"Next"}))]}))},tye=o.Ay.div.withConfig({displayName:"CreateGroupModal__UploadContainer",componentId:"sc-2039dd-0"})(["width:fit-content;min-width:128px;min-height:128px;cursor:pointer;align-self:center;"]),rye=o.Ay.div.withConfig({displayName:"CreateGroupModal__ImageContainer",componentId:"sc-2039dd-1"})(["margin-top:10px;cursor:pointer;border-radius:32px;background:",";width:128px;cursor:pointer;height:128px;max-height:128px;display:flex;align-items:center;justify-content:center;"],(e=>e.theme.backgroundColor.modalHoverBackground)),nye=o.Ay.div.withConfig({displayName:"CreateGroupModal__UpdatedImageContainer",componentId:"sc-2039dd-2"})(["margin-top:10px;width:128px;cursor:pointer;height:128px;overflow:hidden;max-height:128px;border-radius:32px;"]),iye=o.Ay.input.withConfig({displayName:"CreateGroupModal__FileInput",componentId:"sc-2039dd-3"})(["display:none;"]),oye=(0,o.Ay)(B7).withConfig({displayName:"CreateGroupModal__ErrorSpan",componentId:"sc-2039dd-4"})(["font-size:12px;font-weight:500;color:#ed5858;"]),aye=({theme:e,setModal:t,closeUserProfileModalOnClickAway:r,userProfile:o,setUserProfile:a,updateUserProfileModalBackground:s=k5.OVERLAY,updateUserProfileModalPositionType:c=_5.GLOBAL})=>{var u,l,d,f,h,p,g,m,y,b;const{toast:v,user:w}=P5(),[A,C]=(0,i.useState)({name:o&&null!==(l=null===(u=null==o?void 0:o.profile)||void 0===u?void 0:u.name)&&void 0!==l?l:"",description:o&&null!==(f=null===(d=null==o?void 0:o.profile)||void 0===d?void 0:d.desc)&&void 0!==f?f:"",picture:o&&null!==(p=null===(h=null==o?void 0:o.profile)||void 0===h?void 0:h.picture)&&void 0!==p?p:""}),[E,x]=(0,i.useState)(),[S,I]=(0,i.useState)(!!A.picture),{updateProfileLoading:k,updateUserProfile:_}=r8(),T=K9(c5.mobileL),M=(0,i.useRef)(null),P=()=>{t(!1)},j=()=>pJ(void 0,void 0,void 0,(function*(){if(w)if(w.readmode())console.error("UIWeb::UserProfile::onUpdate::User is in read mode.Switch to write mode"),v.showMessageToast({toastTitle:"Error",toastMessage:"Unable to edit in readMode. Switch to write mode",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})});else{"string"!=typeof(yield _({userProfileDetails:A}))?(v.showMessageToast({toastTitle:"Success",toastMessage:"User profile updated successfully",toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"green"})}),a((e=>Object.assign(Object.assign({},e),{profile:Object.assign(Object.assign({},e.profile),{name:A.name,desc:A.description,picture:A.picture})}))),P()):D("User profile updation failed")}})),D=e=>{v.showMessageToast({toastTitle:"Error",toastMessage:e,toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})},O=()=>{M.current&&M.current.click()};return(0,n.jsx)(Pce,Object.assign({onClose:P,closeonClickAway:r,modalBackground:s,modalPositionType:c},{children:(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"center",gap:"16px",overflow:"hidden auto",justifyContent:"start",padding:"5px",width:T?"300px":"400px"},{children:[(0,n.jsx)(jce,{title:"Edit Profile",handleClose:P}),(0,n.jsxs)(D7,Object.assign({alignItems:"center",gap:"20px",justifyContent:"start"},{children:[(0,n.jsxs)(sye,Object.assign({onClick:O},{children:[S?A.picture?(0,n.jsx)(uye,{children:(0,n.jsx)(R7,{src:A.picture,objectFit:"contain",alt:"group image",width:"100%",height:"100%"})}):(0,n.jsx)(Hue,{imageSrc:E,onImageCropped:e=>C((t=>Object.assign(Object.assign({},t),{picture:e}))),width:void 0,height:void 0}):(0,n.jsx)(cye,Object.assign({theme:e},{children:(0,n.jsx)(AI.YVi,{fontSize:40,color:"rgba(87, 93, 115, 1)"})})),(0,n.jsx)(lye,{type:"file",accept:"image/*",className:"hidden",ref:M,onChange:e=>(e=>{if(e.target instanceof HTMLInputElement&&e.target.files&&e.target.files&&e.target.files.length&&I){I(!0),C((e=>Object.assign(Object.assign({},e),{picture:""})));const t=new FileReader;t.readAsDataURL(e.target.files[0]),t.onloadend=function(){x(t.result)}}})(e)})]})),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"20px",alignItems:"center"},{children:[(0,n.jsx)(yue,Object.assign({width:"auto",height:"auto",customStyle:{background:null===(g=null==e?void 0:e.backgroundColor)||void 0===g?void 0:g.modalBackground,fontSize:"14px",border:`1px solid ${null===(m=null==e?void 0:e.backgroundColor)||void 0===m?void 0:m.buttonBackground}\n `,color:null===(y=null==e?void 0:e.backgroundColor)||void 0===y?void 0:y.buttonBackground,padding:"10px 15px"},onClick:O},{children:"Upload Photo"})),(0,n.jsx)(B7,Object.assign({cursor:"pointer",color:null===(b=null==e?void 0:e.textColor)||void 0===b?void 0:b.modalSubHeadingText,fontSize:"14px",fontWeight:"400",onClick:()=>{I(!1),C((e=>Object.assign(Object.assign({},e),{picture:""}))),x(null)}},{children:"Remove"}))]}))]})),(0,n.jsx)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:(0,n.jsx)(qce,{labelName:"Display Name",charCount:50,inputValue:A.name,onInputChange:e=>C((t=>Object.assign(Object.assign({},t),{name:e.target.value})))})})),(0,n.jsx)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:(0,n.jsx)(cue,{labelName:"Bio",charCount:150,inputValue:A.description,onInputChange:e=>C((t=>Object.assign(Object.assign({},t),{description:e.target.value})))})})),(0,n.jsx)(yue,Object.assign({width:"197px",onClick:()=>j()},{children:k?(0,n.jsx)(k7,{size:"20",color:"#fff"}):"Save Changes"}))]}))}))},sye=(0,o.Ay)(D7).withConfig({displayName:"UpdateUserProfileModal__UploadContainer",componentId:"sc-1hptyrp-0"})(["width:fit-content;min-width:128px;min-height:128px;cursor:pointer;align-self:center;"]),cye=o.Ay.div.withConfig({displayName:"UpdateUserProfileModal__ImageContainer",componentId:"sc-1hptyrp-1"})(["margin-top:10px;cursor:pointer;border-radius:32px;background:",";width:128px;cursor:pointer;height:128px;max-height:128px;display:flex;align-items:center;justify-content:center;"],(e=>e.theme.backgroundColor.modalHoverBackground)),uye=o.Ay.div.withConfig({displayName:"UpdateUserProfileModal__UpdatedImageContainer",componentId:"sc-1hptyrp-2"})(["margin-top:10px;width:128px;cursor:pointer;height:128px;overflow:hidden;max-height:128px;border-radius:32px;"]),lye=o.Ay.input.withConfig({displayName:"UpdateUserProfileModal__FileInput",componentId:"sc-1hptyrp-3"})(["display:none;"]);const dye=({updateUserProfileModalBackground:e=k5.OVERLAY,updateUserProfileModalPositionType:t=_5.GLOBAL,onUserProfileUpdateModalOpen:r,closeUserProfileModalOnClickAway:o=!1})=>{var a,s,c,u,l,d,f;const{user:h}=P5(),[p,g]=(0,i.useState)(),[m,y]=(0,i.useState)(null),[b,v]=(0,i.useState)(),[w,A]=(0,i.useState)(!1),C=(0,i.useRef)(null),E=(0,i.useContext)(Pae),{fetchChatProfile:x}=(()=>{const{user:e}=P5(),t=(0,i.useCallback)((({profileId:t,user:r=e,env:n})=>pJ(void 0,void 0,void 0,(function*(){try{let e;return r&&(e=t?yield r.info({overrideAccount:t}):yield r.info()),e}catch(ys){return void console.log(ys)}}))),[]);return{fetchChatProfile:t}})();return K9(c5.mobileL),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){const e=yield x({user:h});if(e){const t=yield d8(null==e?void 0:e.wallets,null==h?void 0:h.env);y(t),g(e)}}))}),[h]),H9(C,(()=>{v(!1)})),(0,i.useEffect)((()=>{r&&r(w)}),[w]),(0,n.jsxs)(fye,Object.assign({height:"inherit",justifyContent:"space-between",overflow:"hidden",width:"100%",padding:"14px 10px",borderRadius:null===(a=null==E?void 0:E.borderRadius)||void 0===a?void 0:a.userProfile,background:null===(s=null==E?void 0:E.backgroundColor)||void 0===s?void 0:s.userProfileBackground,theme:E},{children:[(0,n.jsx)(_ce,{theme:E,member:{web3Name:m,abbrRecipient:s9(l8((null==h?void 0:h.account)||""),8,!0),recipient:h.account,icon:(null===(c=null==p?void 0:p.profile)||void 0===c?void 0:c.picture)||null},copy:!0,customStyle:{fontSize:null===(u=null==E?void 0:E.fontSize)||void 0===u?void 0:u.userProfileText,fontWeight:null===(l=null==E?void 0:E.fontWeight)||void 0===l?void 0:l.userProfileText,textColor:null===(d=null==E?void 0:E.textColor)||void 0===d?void 0:d.userProfileText},loading:!p}),p&&(0,n.jsx)(D7,{children:(0,n.jsx)(R7,{src:Ble,height:"21px",maxHeight:"21px",color:null===(f=null==E?void 0:E.iconColor)||void 0===f?void 0:f.userProfileSettings,width:"auto",cursor:"pointer",onClick:()=>v(!0)})}),b&&(0,n.jsx)(hye,Object.assign({theme:E,ref:C,onClick:()=>A(!0)},{children:(0,n.jsxs)(pye,Object.assign({cursor:"pointer"},{children:[(0,n.jsx)(R7,{src:"data:image/svg+xml,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg id='UserCircleGear' clip-path='url(%23clip0_22685_36438)'%3e%3cpath id='Vector' d='M25 9C26.1046 9 27 8.10457 27 7C27 5.89543 26.1046 5 25 5C23.8954 5 23 5.89543 23 7C23 8.10457 23.8954 9 25 9Z' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_2' d='M25 5V3.5' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_3' d='M23.2675 6L21.9688 5.25' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_4' d='M23.2675 8L21.9688 8.75' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_5' d='M25 9V10.5' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_6' d='M26.7324 8L28.0312 8.75' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_7' d='M26.7324 6L28.0312 5.25' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_8' d='M16 20C18.7614 20 21 17.7614 21 15C21 12.2386 18.7614 10 16 10C13.2386 10 11 12.2386 11 15C11 17.7614 13.2386 20 16 20Z' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_9' d='M7.97461 24.9212C8.727 23.4393 9.87506 22.1946 11.2915 21.3251C12.708 20.4557 14.3376 19.9955 15.9996 19.9955C17.6616 19.9955 19.2912 20.4557 20.7077 21.3251C22.1242 22.1946 23.2722 23.4393 24.0246 24.9212' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_10' d='M27.8342 14C28.2561 16.5067 27.8704 19.0826 26.7328 21.3558C25.5953 23.6289 23.7647 25.4818 21.5054 26.6467C19.2461 27.8116 16.6751 28.2284 14.1635 27.8368C11.6519 27.4452 9.32973 26.2656 7.53231 24.4682C5.73489 22.6707 4.55522 20.3486 4.16364 17.837C3.77206 15.3254 4.18883 12.7543 5.35377 10.4951C6.51871 8.23579 8.37154 6.4052 10.6447 5.26763C12.9179 4.13005 15.4938 3.74436 18.0005 4.16624' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_22685_36438'%3e%3crect width='32' height='32' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",height:"32px",maxHeight:"32px",width:"auto",cursor:"pointer"}),(0,n.jsx)(gye,Object.assign({cursor:"pointer"},{children:"Edit Profile"}))]}))})),w&&(0,pI.createPortal)((0,n.jsx)(aye,{theme:E,setModal:A,closeUserProfileModalOnClickAway:o,userProfile:p,setUserProfile:g,updateUserProfileModalBackground:e,updateUserProfileModalPositionType:t}),document.body)]}))},fye=(0,o.Ay)(D7).withConfig({displayName:"UserProfile__Conatiner",componentId:"sc-1iihn7f-0"})(["border:",";box-sizing:border-box;"],(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.userProfile})),hye=o.Ay.div.withConfig({displayName:"UserProfile__DropDownBar",componentId:"sc-1iihn7f-1"})(["position:absolute;bottom:13px;right:29px;cursor:pointer;display:block;min-width:170px;color:rgb(101,119,149);background:",";border:",";z-index:10;border-radius:",";"],(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents)),pye=(0,o.Ay)(B7).withConfig({displayName:"UserProfile__DropDownItem",componentId:"sc-1iihn7f-2"})(["display:flex;flex-direction:row;align-items:center;gap:8px;padding:8px;border-radius:16px;z-index:3000000;width:100%;"]),gye=(0,o.Ay)(B7).withConfig({displayName:"UserProfile__TextItem",componentId:"sc-1iihn7f-3"})(["white-space:nowrap;overflow:hidden;"]),mye=({chatId:e,isModalOpen:t,setIsModalOpen:r,modalTitle:o,welcomeComponent:a})=>{var s,c;const{user:u}=P5(),l=(0,i.useContext)(Pae),[d,f]=(0,i.useState)({loading:!0,derivedChatId:""});return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(f((e=>Object.assign(Object.assign({},e),{loading:!0}))),e){const t=yield O8(e,u);f({loading:!1,derivedChatId:t})}else f({loading:!1,derivedChatId:""})}))}),[e,u]),(0,n.jsxs)(yye,Object.assign({theme:l},{children:[(0,n.jsxs)(bye,Object.assign({theme:l,position:"relative"},{children:[(0,n.jsx)(B7,Object.assign({textAlign:"center",fontSize:"20px",fontWeight:"500",color:null===(s=null==l?void 0:l.textColor)||void 0===s?void 0:s.chatWidgetModalHeadingText},{children:o})),(0,n.jsx)(D7,Object.assign({position:"absolute",right:"5px",onClick:()=>r(!t)},{children:(0,n.jsx)(Coe,{})}))]})),!d.loading&&e?(0,n.jsxs)(D7,Object.assign({flexDirection:"column",height:"82%"},{children:[(0,n.jsx)(D7,Object.assign({flex:"0 1 auto"},{children:(0,n.jsx)(Nle,{chatId:d.derivedChatId})})),(0,n.jsx)(D7,Object.assign({flex:"1 1 auto",overflow:"hidden",padding:"0 2px",flexDirection:"column",justifyContent:"start"},{children:!u||u&&(null==u?void 0:u.readmode())?(0,n.jsx)(n.Fragment,{children:a}):(0,n.jsx)(lme,{chatId:d.derivedChatId})})),(0,n.jsx)(D7,Object.assign({flex:"0 1 auto",position:"static"},{children:(0,n.jsx)(bme,{chatId:d.derivedChatId,autoConnect:!1})}))]})):null,(0,n.jsx)(O7,Object.assign({width:"100%",textAlign:"center"},{children:(0,n.jsx)(Boe,{color:null===(c=null==l?void 0:l.textColor)||void 0===c?void 0:c.chatWidgetModalHeadingText})}))]}))},yye=o.Ay.div.withConfig({displayName:"Modal__Container",componentId:"sc-1dsqqzn-0"})(["display:flex;gap:10px;flex-direction:column;box-sizing:border-box;background:",";border:",";box-shadow:0px 0px 5px rgba(0,0,0,0.07);border-radius:",";height:585px;max-height:585px;width:350px;max-width:350px;padding:0 15px;"],(e=>{var t,r;return null===(r=null===(t=e.theme)||void 0===t?void 0:t.backgroundColor)||void 0===r?void 0:r.chatWidgetModalBackground}),(e=>{var t,r;return null===(r=null===(t=e.theme)||void 0===t?void 0:t.border)||void 0===r?void 0:r.chatWidget}),(e=>{var t,r;return null===(r=null===(t=e.theme)||void 0===t?void 0:t.borderRadius)||void 0===r?void 0:r.chatWidget})),bye=(0,o.Ay)(D7).withConfig({displayName:"Modal__HeaderSection",componentId:"sc-1dsqqzn-1"})(["border-bottom:",";align-items:center;justify-content:center;padding:17px;"],(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.chatWidget})),vye=({chatId:e,modalTitle:t=M4.DEFAULT_TITLE,welcomeComponent:r=null})=>{const[o,a]=(0,i.useState)(!1),s=(0,i.useContext)(Pae);return(0,n.jsxs)(wye,{children:[!o&&(0,n.jsx)(Aye,Object.assign({theme:s,onClick:()=>a(!o)},{children:(0,n.jsx)(O7,Object.assign({cursor:"pointer"},{children:(0,n.jsx)(moe,{})}))})),o&&(0,n.jsx)(mye,{chatId:e,isModalOpen:o,setIsModalOpen:a,modalTitle:t,welcomeComponent:r})]})},wye=o.Ay.div.withConfig({displayName:"ChatWidget__Container",componentId:"sc-1jxlr0m-0"})(["font-family:'Strawford';flex:1;display:flex;position:fixed;bottom:0;right:0;width:fit-content;z-index:9999999999;margin:0 3rem 2rem 0;align-items:center;justify-content:center;"]),Aye=o.Ay.button.withConfig({displayName:"ChatWidget__Button",componentId:"sc-1jxlr0m-1"})(["background:",";border:none;cursor:pointer;border-radius:18px;padding:16.5px 16.5px 13px 18.5px;"],(e=>{var t,r;return null===(r=null===(t=e.theme)||void 0===t?void 0:t.backgroundColor)||void 0===r?void 0:r.buttonBackground})),Cye=({children:e})=>{const{account:t,env:r,acceptSpaceRequest:o,connectSpaceRequest:a,broadcastRaisedHand:s}=M9();return(({account:e,acceptSpaceRequest:t,connectSpaceRequest:r,broadcastRaisedHand:n,env:o=T4.PROD})=>{const[a,s]=(0,i.useState)(null),[c,u]=(0,i.useState)(!1),l=(0,i.useCallback)((()=>{null==a||a.on(T.EVENTS.CONNECT,(()=>{u(!0)})),null==a||a.on(T.EVENTS.DISCONNECT,(()=>{u(!1)})),null==a||a.on(T.EVENTS.USER_FEEDS,(e=>{var i,o,a,s;const{payload:c}=e;if(console.log("USER FEEDS NOTIFICATION RECEIVED",null===(o=null===(i=null==c?void 0:c.data)||void 0===i?void 0:i.additionalMeta)||void 0===o?void 0:o.type,`${_.payloads.ADDITIONAL_META_TYPE.PUSH_SPACE}+1`),(null===(s=null===(a=null==c?void 0:c.data)||void 0===a?void 0:a.additionalMeta)||void 0===s?void 0:s.type)===`${_.payloads.ADDITIONAL_META_TYPE.PUSH_SPACE}+1`){const e=JSON.parse(c.data.additionalMeta.data),{callDetails:i,status:o}=e;console.log("RECEIVED ADDITIONAL META DATA",e),o===_.VideoCallStatus.INITIALIZED&&((null==i?void 0:i.type)===_.payloads.SPACE_REQUEST_TYPE.JOIN_SPEAKER&&(console.log("ON HOST, ACCEPTING REQUEST OF AN ADDED SPEAKER TO JOIN"),t(e)),(null==i?void 0:i.type)===_.payloads.SPACE_REQUEST_TYPE.ESTABLISH_MESH&&t(e),(null==i?void 0:i.type)===_.payloads.SPACE_REQUEST_TYPE.REQUEST_TO_PROMOTE&&n(e)),o===_.VideoCallStatus.RECEIVED&&r(e),o===_.VideoCallStatus.DISCONNECTED&&(null==i||i.type,_.payloads.SPACE_DISCONNECT_TYPE.LEAVE,null==i||i.type,_.payloads.SPACE_DISCONNECT_TYPE.STOP)}}))}),[t,r,a]),d=(0,i.useCallback)((()=>{null==a||a.off(T.EVENTS.CONNECT),null==a||a.off(T.EVENTS.DISCONNECT),null==a||a.off(T.EVENTS.USER_FEEDS)}),[a]);(0,i.useEffect)((()=>(a&&l(),()=>{a&&d()})),[l,a,d]),(0,i.useEffect)((()=>{e&&(a&&(null==a||a.disconnect()),pJ(void 0,void 0,void 0,(function*(){const t=(0,T.createSocketConnection)({user:l8(e),env:o,socketType:"notification",socketOptions:{autoConnect:!0,reconnectionAttempts:3}});console.warn("new connection object: ",t),s(t)})).catch((e=>console.error(e))))}),[e,o])})({account:t,env:r,acceptSpaceRequest:o,connectSpaceRequest:a,broadcastRaisedHand:s}),(({account:e,env:t=T4.PROD})=>{const{spaceRequests:r,setSpaceRequests:n,popularSpaces:o,setPopularSpaces:a,mySpaces:s,setMySpaces:c,setSpaceInfo:u,pushSpaceSocket:l,setPushSpaceSocket:d,isPushSDKSocketConnected:f,setIsPushSDKSocketConnected:h,spacesObjectRef:p}=M9(),g=(0,i.useCallback)((()=>{console.log("addSocketEvents"),null==l||l.on(T.EVENTS.CONNECT,(()=>{h(!0)})),null==l||l.on(T.EVENTS.DISCONNECT,(e=>{h(!1)})),null==l||l.on("SPACES_MESSAGES",(e=>pJ(void 0,void 0,void 0,(function*(){var t,r,n,i;console.log("SPACES_MESSAGES RECEIVED",e),"Request"!==(null==e?void 0:e.messageCategory)&&"Approve"!==(null==e?void 0:e.messageCategory)||(yield null===(r=null===(t=null==p?void 0:p.current)||void 0===t?void 0:t.onJoinListener)||void 0===r?void 0:r.call(t,{receivedAddress:null==e?void 0:e.fromCAIP10})),"Chat"===(null==e?void 0:e.messageCategory)&&"Meta"===(null==e?void 0:e.messageType)&&(null===(i=null===(n=null==p?void 0:p.current)||void 0===n?void 0:n.onReceiveMetaMessage)||void 0===i||i.call(n,{receivedMetaMessage:e}))})))),null==l||l.on("SPACES",(i=>pJ(void 0,void 0,void 0,(function*(){var l,d,f,h,p,g,m,y;if(console.log("SPACES EVENT RECEIVED",i),u(i.spaceId,i),null===(l=null==i?void 0:i.pendingMembers)||void 0===l?void 0:l.some((t=>L9(e,t.wallet))))if(null!==(f=null===(d=null==r?void 0:r.apiData)||void 0===d?void 0:d.some((e=>e.spaceId===i.spaceId)))&&void 0!==f&&f){const e=null===(h=null==r?void 0:r.apiData)||void 0===h?void 0:h.map((e=>e.spaceId===i.spaceId?Object.assign(Object.assign({},e),{spaceInformation:i}):e));n({apiData:e})}else{const o=[yield _.space.space({account:e,env:t,recipient:i.spaceId,toDecrypt:!1}),...(null==r?void 0:r.apiData)||[]];n({apiData:o})}else if(null!==(g=null===(p=null==s?void 0:s.apiData)||void 0===p?void 0:p.some((e=>e.spaceId===i.spaceId)))&&void 0!==g&&g){const e=null===(m=null==s?void 0:s.apiData)||void 0===m?void 0:m.map((e=>e.spaceId===i.spaceId?Object.assign(Object.assign({},e),{spaceInformation:i}):e));c({apiData:e})}else{const r=[yield _.space.space({account:e,env:t,recipient:i.spaceId,toDecrypt:!1}),...(null==s?void 0:s.apiData)||[]];c({apiData:r})}const b=null===(y=null==o?void 0:o.apiData)||void 0===y?void 0:y.map((e=>e.spaceId===i.spaceId?Object.assign(Object.assign({},e),{spaceInformation:i}):e));a({apiData:b})}))))}),[l,r,o,s,u,a,e,n,t,c]),m=(0,i.useCallback)((()=>{null==l||l.off(T.EVENTS.CONNECT),null==l||l.off(T.EVENTS.DISCONNECT),null==l||l.off(T.EVENTS.CHAT_GROUPS),null==l||l.off(T.EVENTS.CHAT_RECEIVED_MESSAGE)}),[l]);(0,i.useEffect)((()=>(l&&g(),()=>{l&&m()})),[l]),(0,i.useEffect)((()=>{e&&(l&&(null==l||l.disconnect()),pJ(void 0,void 0,void 0,(function*(){const r=(0,T.createSocketConnection)({user:e,env:t,socketType:"chat",socketOptions:{autoConnect:!0,reconnectionAttempts:3}});console.warn("new connection object: ",r),d(r)})).catch((e=>console.error(e))))}),[e,t]),(0,i.useEffect)((()=>{console.log("isPushSDKSocketConnected",f)}),[f])})({account:t,env:r}),(0,n.jsx)(n.Fragment,{children:e})};var Eye;!function(e){e.ForYou="For You",e.Popular="Popular",e.HostedByYou="Hosted by you"}(Eye||(Eye={}));const xye=({spaceUI:e,theme:t,children:r})=>{var o,a,s,c,u,l,d;const f=(0,i.useRef)({}),[h,p]=(0,i.useState)(u8(e.account)),[g,m]=(0,i.useState)(e.signer),[y,b]=(0,i.useState)(e.pgpPrivateKey),[v,w]=(0,i.useState)(e.env),[A,C]=(0,i.useState)(R9(e.account,e.env)),[E,x]=(0,i.useState)(""),[S,I]=(0,i.useState)(Eye.Popular),[k,T]=(0,i.useState)({}),[M,P]=(0,i.useState)(null),[j,D]=(0,i.useState)({}),[O,B]=(0,i.useState)(_.space.initSpaceData),[N,R]=(0,i.useState)({}),[L,F]=(0,i.useState)({apiData:[],currentPage:1,lastPage:2}),[U,z]=(0,i.useState)({apiData:[],currentPage:1,lastPage:2}),[H,V]=(0,i.useState)({apiData:[],currentPage:1,lastPage:2}),[K,G]=(0,i.useState)(null),[q,Q]=(0,i.useState)(!1),W=Boolean((null===(s=null===(a=null===(o=null==O?void 0:O.connectionData)||void 0===o?void 0:o.meta)||void 0===a?void 0:a.broadcast)||void 0===s?void 0:s.livepeerInfo)||(null==O?void 0:O.spaceDescription)),J=gB({provider:(Y={apiKey:"ac9d3e33-56c2-4a22-a328-a08a46fd9356"},()=>new wR({...bR,...Y}))});var Y;const Z=Boolean((null===(c=null==O?void 0:O.members)||void 0===c?void 0:c.find((e=>{if(L9(h,null==O?void 0:O.spaceCreator))return!1;const t=e.wallet;return L9(h,t)&&e.isSpeaker})))||(null===(u=null==O?void 0:O.pendingMembers)||void 0===u?void 0:u.find((e=>{const t=e.wallet;return L9(h,t)&&e.isSpeaker})))||(null===(d=null===(l=null==O?void 0:O.liveSpaceData)||void 0===l?void 0:l.speakers)||void 0===d?void 0:d.find((e=>e.address===l8(h))))),$=!!O.spaceId&&!Z,X={account:h,setAccount:p,signer:g,setSigner:m,pgpPrivateKey:y,setPgpPrivateKey:b,env:v,setEnv:w,chainId:A,setChainId:C,trendingListData:M,setTrendingListData:P,spaceInfo:j,setSpaceInfo:(e,t)=>{D((r=>Object.assign(Object.assign({},r),{[e]:t})))},getSpaceInfo:e=>j[e],spaceWidgetId:E,setSpaceWidgetId:x,selectedFeedTab:S,setSelectedFeedTab:I,mySpaces:L,setMySpaces:e=>{const{apiData:t,currentPage:r,lastPage:n}=e;F((e=>{var i;if(t){const r=new Set(null===(i=e.apiData)||void 0===i?void 0:i.map((e=>e.spaceId))),n=null==t?void 0:t.filter((e=>!r.has(e.spaceId)));let o=[];return e.apiData?(o=[...e.apiData,...n],o.sort(((e,t)=>new Date(t.intentTimestamp).getTime()-new Date(e.intentTimestamp).getTime()))):o=n,Object.assign(Object.assign({},e),o.length>0&&{apiData:o})}return Object.assign(Object.assign(Object.assign({},e),r&&{currentPage:r}),n&&{lastPage:n})}))},popularSpaces:U,setPopularSpaces:e=>{const{apiData:t,currentPage:r,lastPage:n}=e;z((e=>{var i;if(t){const r=new Set(null===(i=e.apiData)||void 0===i?void 0:i.map((e=>e.spaceId))),n=null==t?void 0:t.filter((e=>!r.has(e.spaceId)));let o=[];return e.apiData?(o=[...e.apiData,...n],o.sort(((e,t)=>new Date(t.intentTimestamp).getTime()-new Date(e.intentTimestamp).getTime()))):o=n,Object.assign(Object.assign({},e),o.length>0&&{apiData:o})}return Object.assign(Object.assign(Object.assign({},e),r&&{currentPage:r}),n&&{lastPage:n})}))},spaceRequests:H,setSpaceRequests:e=>{const{apiData:t,currentPage:r,lastPage:n}=e;V((e=>{var i;if(t){const r=new Set(null===(i=e.apiData)||void 0===i?void 0:i.map((e=>e.spaceId))),n=null==t?void 0:t.filter((e=>!r.has(e.spaceId)));let o=[];return e.apiData?(o=[...e.apiData,...n],o.sort(((e,t)=>new Date(t.intentTimestamp).getTime()-new Date(e.intentTimestamp).getTime()))):o=n,Object.assign(Object.assign({},e),o.length>0&&{apiData:o})}return Object.assign(Object.assign(Object.assign({},e),r&&{currentPage:r}),n&&{lastPage:n})}))},pushSpaceSocket:K,setPushSpaceSocket:G,isPushSDKSocketConnected:q,setIsPushSDKSocketConnected:Q,spaceObjectData:O,setSpaceObjectData:B,initSpaceObject:e=>pJ(void 0,void 0,void 0,(function*(){g&&(f.current=new _.space.Space({signer:g,pgpPrivateKey:y,address:h,chainId:A,env:v,setSpaceData:B}),yield f.current.initialize({spaceId:e}))})),spacesObjectRef:f,isJoined:W,isSpeaker:Z,isListener:$,speakerData:k,setSpeakerData:(e,t)=>{T((r=>Object.assign(Object.assign({},r),{[e]:t})))},acceptSpaceRequest:({senderAddress:e,recipientAddress:t,chatId:r,signalData:n})=>pJ(void 0,void 0,void 0,(function*(){var i;console.log("INSIDE WRAPPER ACCEPT REQUEST","spacesObjectRef?.current",null==f?void 0:f.current),yield null===(i=f.current)||void 0===i?void 0:i.acceptRequest({recipientAddress:e,senderAddress:t,chatId:r,signalData:n})})),connectSpaceRequest:({senderAddress:e,signalData:t})=>pJ(void 0,void 0,void 0,(function*(){console.log("INSIDE WRAPPER CONNECT","spacesObjectRef?.current",null==f?void 0:f.current),yield f.current.connect({peerAddress:e,signalData:t})})),broadcastRaisedHand:e=>pJ(void 0,void 0,void 0,(function*(){yield f.current.broadcastRaisedHand({promoteeAddress:l8(e.senderAddress)}),R((t=>Object.assign(Object.assign({},t),{[e.senderAddress]:e})))})),customSearch:undefined,raisedHandInfo:N};(0,i.useEffect)((()=>{T({}),B(_.space.initSpaceData),V({apiData:[],currentPage:1,lastPage:2}),F({apiData:[],currentPage:1,lastPage:2}),p(u8(e.account)),w(e.env),C(R9(e.account,e.env))}),[e.account,e.env]),(0,i.useEffect)((()=>{m(e.signer),b(e.pgpPrivateKey)}),[e.pgpPrivateKey,e.signer]);const ee=Object.assign({},Ute,t);return e.init(),(0,n.jsx)(HF,Object.assign({client:J},{children:(0,n.jsx)(zte.Provider,Object.assign({value:ee},{children:(0,n.jsx)(l5.Provider,Object.assign({value:X},{children:(0,n.jsx)(Cye,{children:r})}))}))}))};var Sye="data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg id='a' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 329.62 452.94'%3e%3cdefs%3e%3cstyle%3e.h%7bfill:url(%23e)%3b%7d.i%7bfill:url(%23d)%3b%7d.j%7bfill:url(%23g)%3b%7d.k%7bfill:url(%23f)%3b%7d.l%7bfill:url(%23c)%3b%7d.m%7bfill:url(%23b)%3b%7d%3c/style%3e%3clinearGradient id='b' x1='188.38' y1='180.56' x2='147.63' y2='111.29' gradientTransform='translate(0 438.53) scale(1 -1)' gradientUnits='userSpaceOnUse'%3e%3cstop offset='0' stop-color='%23ff94a6'/%3e%3cstop offset='.32' stop-color='%23e03dc1'/%3e%3cstop offset='1' stop-color='%238247e5'/%3e%3c/linearGradient%3e%3clinearGradient id='c' x1='207.9' y1='181.3' x2='121.94' y2='303.46' gradientTransform='matrix(1%2c 0%2c 0%2c 1%2c 0%2c 0)' xlink:href='%23b'/%3e%3clinearGradient id='d' x1='277.12' y1='319.97' x2='68.41' y2='181.43' xlink:href='%23b'/%3e%3clinearGradient id='e' x1='275.17' y1='322.92' x2='66.45' y2='184.38' xlink:href='%23b'/%3e%3clinearGradient id='f' x1='238.15' y1='378.69' x2='29.43' y2='240.15' xlink:href='%23b'/%3e%3clinearGradient id='g' x1='227.9' y1='394.13' x2='19.27' y2='255.65' xlink:href='%23b'/%3e%3c/defs%3e%3cpath class='m' d='M154.92%2c334.91c12.77%2c0%2c23.73-7.65%2c28.6-18.61%2c1.18-2.67-.79-5.67-3.71-5.67h-49.78c-2.92%2c0-4.9%2c3-3.71%2c5.67%2c4.87%2c10.96%2c15.83%2c18.61%2c28.6%2c18.61Z'/%3e%3cpath class='l' d='M231.3%2c280.49c-8.1%2c0-14.66-6.56-14.66-14.66v-53.26c0-28.86-19.81-53.09-46.57-59.85-.98-7.61-7.47-13.5-15.35-13.5s-14.42%2c5.94-15.36%2c13.59c-24.02%2c6.23-42.34%2c26.56-45.64%2c51.63-.05%2c.37-.1%2c.73-.14%2c1.1-.06%2c.5-.11%2c.99-.15%2c1.49-.04%2c.5-.08%2c1-.11%2c1.5-.03%2c.42-.06%2c.83-.08%2c1.25-.04%2c.84-.06%2c1.69-.06%2c2.55%2c0%2c.08%2c0%2c.16%2c0%2c.24v53.25c0%2c8.06-6.5%2c14.6-14.55%2c14.66-3.84%2c.03-7.01%2c2.99-7.01%2c6.84v.06c0%2c3.81%2c3.09%2c6.9%2c6.9%2c6.9H231.28c3.81%2c0%2c6.9-3.09%2c6.9-6.9%2c.02-3.8-3.07-6.89-6.88-6.89Z'/%3e%3cg%3e%3cpath class='i' d='M199.15%2c142.21c17.18%2c3.68%2c30.3%2c18.47%2c31.92%2c35.97%2c.18%2c1.94%2c1.87%2c3.39%2c3.85%2c3.2%2c.94-.09%2c1.79-.54%2c2.4-1.26%2c.6-.73%2c.89-1.65%2c.8-2.59-.95-10.22-5.07-19.67-11.92-27.35-6.8-7.61-15.64-12.76-25.57-14.89-.25-.05-.5-.08-.74-.08-1.63%2c0-3.11%2c1.14-3.46%2c2.8-.41%2c1.91%2c.81%2c3.79%2c2.72%2c4.2Z'/%3e%3cpath class='h' d='M203.12%2c119.43c26.73%2c5.73%2c47.16%2c28.75%2c49.68%2c55.97%2c.18%2c1.94%2c1.87%2c3.38%2c3.85%2c3.2%2c.94-.09%2c1.79-.54%2c2.4-1.26%2c.6-.73%2c.89-1.65%2c.8-2.59-1.39-15.05-7.47-28.99-17.57-40.29-10.02-11.22-23.05-18.81-37.67-21.95-.25-.05-.5-.08-.74-.08-1.63%2c0-3.11%2c1.14-3.46%2c2.8-.42%2c1.91%2c.8%2c3.79%2c2.71%2c4.2Z'/%3e%3cpath class='k' d='M110.68%2c142.21c1.91-.41%2c3.13-2.3%2c2.72-4.21-.36-1.66-1.83-2.8-3.46-2.8-.24%2c0-.49%2c.03-.74%2c.08-9.93%2c2.13-18.77%2c7.28-25.57%2c14.89-6.85%2c7.67-10.98%2c17.13-11.92%2c27.35-.09%2c.94%2c.2%2c1.86%2c.8%2c2.59s1.46%2c1.18%2c2.4%2c1.26c1.99%2c.18%2c3.67-1.26%2c3.85-3.2%2c1.62-17.48%2c14.75-32.27%2c31.92-35.96Z'/%3e%3cpath class='j' d='M106.71%2c119.43c1.91-.41%2c3.13-2.3%2c2.72-4.21-.36-1.66-1.83-2.8-3.46-2.8-.25%2c0-.49%2c.03-.74%2c.08-14.63%2c3.14-27.65%2c10.73-37.67%2c21.95-10.1%2c11.31-16.17%2c25.24-17.57%2c40.29-.09%2c.94%2c.2%2c1.86%2c.8%2c2.59s1.46%2c1.18%2c2.4%2c1.26c1.98%2c.18%2c3.67-1.26%2c3.85-3.2%2c2.52-27.21%2c22.95-50.22%2c49.67-55.96Z'/%3e%3c/g%3e%3c/svg%3e";const Iye={name:"Push Protocol",logo:Sye,icon:Sye,description:"Example showcasing how to connect a wallet.",recommendedInjectedWallets:[{name:"MetaMask",url:"https://metamask.io"}]},kye=sz({projectId:F4,requiredChains:[1,56]}),_ye=VF({darkMode:!0}),Tye=[{id:"0x1",token:"ETH",label:"Ethereum Mainnet",rpcUrl:`https://mainnet.infura.io/v3/${O4}`},{id:"0xAA36A7",token:"ETH",label:"Sepolia",rpcUrl:`https://sepolia.infura.io/v3/${O4}`},{id:"0x13882",token:"MATIC",label:"Polygon - Amoy",rpcUrl:"https://rpc-amoy.polygon.technology"},{id:"0x38",token:"BNB",label:"Binance",rpcUrl:"https://bsc-dataseed.binance.org/"},{id:"0xA",token:"OETH",label:"Optimism",rpcUrl:"https://mainnet.optimism.io"},{id:"0xA4B1",token:"ARB-ETH",label:"Arbitrum",rpcUrl:"https://rpc.ankr.com/arbitrum"}],Mye=[rz(),kye,_ye],Pye=(0,l.aB)({wallets:Mye,chains:Tye,appMetadata:Iye,accountCenter:{desktop:{enabled:!1},mobile:{enabled:!1}},connect:{autoConnectLastWallet:!0}}),jye=({children:e})=>(0,n.jsx)(m,Object.assign({web3Onboard:Pye},{children:e})),Dye={log:console.log,debug:console.debug,warn:console.warn,error:console.error},Oye=({children:e,user:t,account:r,signer:o,env:a=M4.ENV.PROD,pgpPrivateKey:s=null,theme:c,debug:u=!1,uiConfig:l={},infuraAPIKey:d=O4})=>{const{initializeUser:f}=G9(),[h,p]=(0,i.useState)(t),[g,m]=(0,i.useState)(l8(r)),[y,b]=(0,i.useState)(null),[v,w]=(0,i.useState)(o),[A,C]=(0,i.useState)(null),[E,x]=(0,i.useState)(s),[S,I]=(0,i.useState)(a),[k,T]=(0,i.useState)(void 0),[M,P]=(0,i.useState)(!1);r8(),G9();const[j,D]=(0,i.useState)(!1),[O,B]=(0,i.useState)(null),[N,R]=(0,i.useState)({}),[L,F]=(0,i.useState)({}),[U,z]=(0,i.useState)({}),[H,V]=(0,i.useState)({}),[K,G]=(0,i.useState)({}),[q,Q]=(0,i.useState)({}),[W,J]=(0,i.useState)({}),[Y,Z]=(0,i.useState)({}),[$,X]=(0,i.useState)({}),[ee,te]=(0,i.useState)({}),re=e=>pJ(void 0,void 0,void 0,(function*(){e&&h&&!ne(e)||(console.debug(`UIWeb::ChatDataProvider::user changed - ${(new Date).toISOString()}`,e),(null==e?void 0:e.readmode())||(yield le(e)),ue(),p(e))})),ne=e=>!(h&&(null==e?void 0:e.account)===(null==h?void 0:h.account)&&(null==e?void 0:e.env)===(null==h?void 0:h.env)&&(null==e?void 0:e.signer)===(null==h?void 0:h.signer)&&(null==e?void 0:e.readmode())===(null==h?void 0:h.readmode())),{showLoaderToast:ie,showMessageToast:oe}=Rce();(0,i.useEffect)((()=>{ie&&oe&&(console.debug("UIWeb::useToast::initialize::UIWeb::ChatDataProvider::Toastify initialized"),B({showLoaderToast:ie,showMessageToast:oe}))}),[]);const ae=(e,r)=>{t?re(t):pJ(void 0,void 0,void 0,s&&e||a&&r?function*(){const t=yield f({signer:r,account:e,pgpPrivateKey:s,env:a});re(t)}:function*(){const t=yield f({signer:r,account:e||Y4,pgpPrivateKey:s,env:a});re(t)})};(0,i.useEffect)((()=>{ae(r,o)}),[o,r,a,s,t]),(0,i.useEffect)((()=>{u?(console.debug("UIWeb::ChatDataProvider::Debug mode enabled, console logs are enabled"),ce()):(console.warn("UIWeb::ChatDataProvider::Debug mode is turned off, console logs are suppressed"),se())}),[u]);const se=()=>{console.log=()=>{},console.debug=()=>{},console.warn=()=>{},console.error=()=>{}},ce=()=>{console.log=Dye.log,console.debug=Dye.debug,console.warn=Dye.warn,console.error=Dye.error},ue=()=>{b(null),P(!1),C(null),D(!1)},le=e=>pJ(void 0,void 0,void 0,(function*(){var t,r;let n=0;if(e.stream){if(e.stream&&!(null==e?void 0:e.readmode())){const r=yield e.stream.info(),i=[_.CONSTANTS.STREAM.CHAT,_.CONSTANTS.STREAM.CHAT_OPS,_.CONSTANTS.STREAM.CONNECT,_.CONSTANTS.STREAM.DISCONNECT],o=i.filter((e=>{var t;return!(null===(t=r.listen)||void 0===t?void 0:t.includes(e))}));o.length&&(yield null===(t=e.stream)||void 0===t?void 0:t.reinit(i,{connection:{retries:3}}),n=2)}}else yield null==e?void 0:e.initStream([_.CONSTANTS.STREAM.CHAT,_.CONSTANTS.STREAM.CHAT_OPS,_.CONSTANTS.STREAM.CONNECT,_.CONSTANTS.STREAM.DISCONNECT],{connection:{retries:3},raw:!0}),n=1;yield de(e),console.debug(`UIWeb::ChatDataProvider::initStream with ${2===n?"reinit":1===n?"new init":"no change"} - ${(new Date).toISOString()} | ${null==e?void 0:e.uid} | ${null===(r=null==e?void 0:e.stream)||void 0===r?void 0:r.uid}`)})),de=e=>pJ(void 0,void 0,void 0,(function*(){var t,r,n,i,o,a,s,c;null===(t=null==e?void 0:e.stream)||void 0===t||t.on(_.CONSTANTS.STREAM.CONNECT,(t=>{var r;console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::CONNECT",null==e?void 0:e.uid,null===(r=null==e?void 0:e.stream)||void 0===r?void 0:r.uid,null==e?void 0:e.stream),D(!0)})),null===(r=null==e?void 0:e.stream)||void 0===r||r.on(_.CONSTANTS.STREAM.DISCONNECT,(e=>{console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::DISCONNECT",e),D(!1)})),null===(n=null==e?void 0:e.stream)||void 0===n||n.on(_.CONSTANTS.STREAM.CHAT,(e=>{console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::CHAT Payload received",e),"chat.request"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.request",e),V(e)):"chat.accept"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.accept",e),F(e)):"chat.reject"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.reject",e),z(e)):"chat.group.participant.remove"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.group.participant.remove",e),Q(e)):"chat.group.participant.leave"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.group.participant.leave",e),J(e)):"chat.group.participant.join"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.group.participant.join",e),Z(e)):"chat.group.participant.role"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.group.participant.role",e),G(e)):"chat.message"===e.event&&(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.message",e),R(e))})),null===(i=null==e?void 0:e.stream)||void 0===i||i.on(_.CONSTANTS.STREAM.CHAT_OPS,(e=>{"chat.group.update"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.group.update",e),te(e)):"chat.group.create"===e.event&&(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.group.create",e),X(e))})),(null===(o=e.stream)||void 0===o?void 0:o.connected())?console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::Stream listeners attached",null===(c=null==e?void 0:e.stream)||void 0===c?void 0:c.uid):(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::Stream not connected",e),yield null===(a=e.stream)||void 0===a?void 0:a.connect(),console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::Stream listeners attached and stream connected",null===(s=null==e?void 0:e.stream)||void 0===s?void 0:s.uid))})),fe={account:g,signer:v,setSigner:w,setAccount:m,pgpPrivateKey:E,setPgpPrivateKey:x,env:S,setEnv:I,pushChatSocket:y,setPushChatSocket:b,isPushChatSocketConnected:M,setIsPushChatSocketConnected:P,connectedProfile:k,setConnectedProfile:T,preInitializeUser:ae,pushChatStream:A,setPushChatStream:C,isPushChatStreamConnected:j,setIsPushChatStreamConnected:D,user:h,setUser:p,infuraAPIKey:d,toast:O,uiConfig:l,chatStream:N,chatRequestStream:H,chatAcceptStream:L,groupUpdateStream:ee,chatRejectStream:U,participantRemoveStream:q,participantLeaveStream:W,participantJoinStream:Y,participantRoleChangeStream:K,groupCreateStream:$},he=Object.assign({},Tae,c);return(0,n.jsx)(Pae.Provider,Object.assign({value:he},{children:(0,n.jsxs)(jye,{children:[(0,n.jsx)(F7,{}),(0,n.jsx)(f5.Provider,Object.assign({value:fe},{children:e}))]})}))},Bye=({children:e,account:t,user:r,theme:o,signer:a,env:s=M4.ENV.PROD})=>{const[c,u]=(0,i.useState)(l8(t)),[l,d]=(0,i.useState)(a),[f,h]=(0,i.useState)(r),[p,g]=(0,i.useState)(s),{initializeUser:m,fetchUserProfile:y}=G9();(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){g(s);let e=null;if(Object.keys(a||{}).length&&!r)e=yield h8(a);else if(!a&&r){const t=yield y({user:r});t&&(e=l8(null==t?void 0:t.wallets))}console.debug(t),u(e||Y4),d(a),h(r)}))}),[s,t,a,r]),console.debug(c,p,l),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(c&&p){const e=yield m({signer:l,account:c,env:p});h(e)}}))}),[c,p,l]);const b={account:c,signer:l,setSigner:d,setAccount:u,env:p,setEnv:g,user:f,setUser:h},v=Object.assign({},b7,o);return(0,n.jsx)(w7.Provider,Object.assign({value:v},{children:(0,n.jsx)(jye,{children:(0,n.jsx)(p5.Provider,Object.assign({value:b},{children:e}))})}))}},586798:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NamingService=void 0;var r=function(){};t.NamingService=r},231285:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{inputs:[{internalType:"contract IUNSRegistry",name:"unsRegistry",type:"address"},{internalType:"contract ICNSRegistry",name:"cnsRegistry",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"label",type:"string"}],name:"childIdOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"exists",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"key",type:"string"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"get",outputs:[{internalType:"string",name:"value",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"keyHash",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getByHash",outputs:[{internalType:"string",name:"key",type:"string"},{internalType:"string",name:"value",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string[]",name:"keys",type:"string[]"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getData",outputs:[{internalType:"address",name:"resolver",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"string[]",name:"values",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256[]",name:"keyHashes",type:"uint256[]"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getDataByHash",outputs:[{internalType:"address",name:"resolver",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"string[]",name:"keys",type:"string[]"},{internalType:"string[]",name:"values",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256[]",name:"keyHashes",type:"uint256[]"},{internalType:"uint256[]",name:"tokenIds",type:"uint256[]"}],name:"getDataByHashForMany",outputs:[{internalType:"address[]",name:"resolvers",type:"address[]"},{internalType:"address[]",name:"owners",type:"address[]"},{internalType:"string[][]",name:"keys",type:"string[][]"},{internalType:"string[][]",name:"values",type:"string[][]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string[]",name:"keys",type:"string[]"},{internalType:"uint256[]",name:"tokenIds",type:"uint256[]"}],name:"getDataForMany",outputs:[{internalType:"address[]",name:"resolvers",type:"address[]"},{internalType:"address[]",name:"owners",type:"address[]"},{internalType:"string[][]",name:"values",type:"string[][]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string[]",name:"keys",type:"string[]"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getMany",outputs:[{internalType:"string[]",name:"values",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256[]",name:"keyHashes",type:"uint256[]"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getManyByHash",outputs:[{internalType:"string[]",name:"keys",type:"string[]"},{internalType:"string[]",name:"values",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"isApprovedOrOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256[]",name:"tokenIds",type:"uint256[]"}],name:"ownerOfForMany",outputs:[{internalType:"address[]",name:"owners",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"registryOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"resolverOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"reverseOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]},940707:function(e,t){"use strict";var r,n,i,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationError=t.ConfigurationErrorCode=void 0,function(e){e.IncorrectProvider="IncorrectProvider",e.UnsupportedNetwork="UnsupportedNetwork",e.UnspecifiedUrl="UnspecifiedUrl",e.NetworkConfigMissing="NetworkConfigMissing",e.CustomNetworkConfigMissing="CustomNetworkConfigMissing",e.InvalidConfigurationField="InvalidProxyReader"}(i=t.ConfigurationErrorCode||(t.ConfigurationErrorCode={}));var a=((n={})[i.IncorrectProvider]=function(){return"Provider doesn't implement sendAsync or send method"},n[i.UnsupportedNetwork]=function(e){return"Unsupported network in Resolution ".concat(e.method||""," configuration")},n[i.UnspecifiedUrl]=function(e){return"Unspecified url in Resolution ".concat(e.method," configuration")},n[i.NetworkConfigMissing]=function(e){return"Missing configuration in Resolution ".concat(e.method,". Please specify ").concat(e.config)},n[i.CustomNetworkConfigMissing]=function(e){return"Missing configuration in Resolution ".concat(e.method,". Please specify ").concat(e.config," when using a custom network")},n[i.InvalidConfigurationField]=function(e){return"Invalid '".concat(e.field,"' in Resolution ").concat(e.method)},n),s=function(e){function t(r,n){void 0===n&&(n={});var i=this,o=a[r];return(i=e.call(this,o(n))||this).code=r,i.method=n.method,i.name="ConfigurationError",Object.setPrototypeOf(i,t.prototype),i}return o(t,e),t}(Error);t.ConfigurationError=s,t.default=s},126660:function(e,t){"use strict";var r,n,i,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DnsRecordsError=t.DnsRecordsErrorCode=void 0,function(e){e.InconsistentTtl="InconsistentTtl",e.DnsRecordCorrupted="DnsRecordCorrupted"}(i=t.DnsRecordsErrorCode||(t.DnsRecordsErrorCode={}));var a=((n={})[i.InconsistentTtl]=function(e){return"ttl for record ".concat(e.recordType," is different for other records of the same type")},n[i.DnsRecordCorrupted]=function(e){return"dns record ".concat(e.recordType," is invalid json-string")},n),s=function(e){function t(r,n){void 0===n&&(n={});var i=this,o=a[r];return(i=e.call(this,o(n))||this).code=r,i.name="DnsRecordsError",Object.setPrototypeOf(i,t.prototype),i}return o(t,e),t}(Error);t.DnsRecordsError=s,t.default=s},377043:function(e,t){"use strict";var r,n,i,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ResolutionError=t.ResolutionErrorCode=void 0,function(e){e.UnregisteredDomain="UnregisteredDomain",e.UnspecifiedResolver="UnspecifiedResolver",e.UnsupportedDomain="UnsupportedDomain",e.UnsupportedService="UnsupportedService",e.UnsupportedMethod="UnsupportedMethod",e.UnspecifiedCurrency="UnspecifiedCurrency",e.UnsupportedCurrency="UnsupportedCurrency",e.IncorrectResolverInterface="IncorrectResolverInterface",e.RecordNotFound="RecordNotFound",e.MetadataEndpointError="MetadataEndpointError",e.ServiceProviderError="ServiceProviderError",e.InvalidTwitterVerification="InvalidTwitterVerification",e.InconsistentDomainArray="InconsistentDomainArray",e.InvalidDomainAddress="InvalidDomainAddress"}(i=t.ResolutionErrorCode||(t.ResolutionErrorCode={}));var a=((n={})[i.UnregisteredDomain]=function(e){return"Domain ".concat(e.domain," is not registered")},n[i.UnspecifiedResolver]=function(e){return"".concat(e.location?"".concat(e.location,": "):"","Domain ").concat(e.domain," is not configured")},n[i.UnsupportedDomain]=function(e){return"Domain ".concat(e.domain," is not supported")},n[i.UnsupportedMethod]=function(e){var t,r=(null===(t=e.domain)||void 0===t?void 0:t.endsWith(".zil"))?" (if this method was called via the Resolution class with both UNS and ZNS providers configured not in the API mode, this error also means that the domain doesn't exist in UNS)":"";return"Method ".concat(e.methodName," is not supported for ").concat(e.domain).concat(r)},n[i.InvalidTwitterVerification]=function(e){return"".concat(e.location?"".concat(e.location,": "):"","Domain ").concat(e.domain," has invalid Twitter signature verification")},n[i.UnsupportedCurrency]=function(e){return"".concat(e.currencyTicker," is not supported")},n[i.IncorrectResolverInterface]=function(e){return"Domain resolver is configured incorrectly for ".concat(e.method)},n[i.RecordNotFound]=function(e){return"".concat(e.location?"".concat(e.location,": "):"","No ").concat(e.recordName," record found for ").concat(e.domain)},n[i.ServiceProviderError]=function(e){return"< ".concat(e.providerMessage," >")},n[i.MetadataEndpointError]=function(e){return"Failed to query tokenUri ".concat(e.tokenUri,". Error: ").concat(e.errorMessage)},n[i.UnsupportedService]=function(e){return"Naming service ".concat(e.namingService," is not supported")},n[i.InvalidDomainAddress]=function(e){return"Domain address ".concat(e.domain," is invalid")},n),s=function(e){function t(r,n){void 0===n&&(n={});var i=this,o=a[r],s=n.domain,c=n.method,u=n.currencyTicker,l=o(n);return(i=e.call(this,l)||this).code=r,i.domain=s,i.method=c,i.currencyTicker=u,i.name="ResolutionError",Object.setPrototypeOf(i,t.prototype),i}return o(t,e),t}(Error);t.ResolutionError=s,t.default=s},696827:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderFactories=t.Eip1193Factories=t.Eip1993Factories=t.DnsRecordsErrorCode=t.DnsRecordsError=t.ConfigurationErrorCode=t.ConfigurationError=t.ResolutionErrorCode=t.ResolutionError=t.DnsUtils=t.default=t.Resolution=void 0;var a=r(231285);Object.defineProperty(t,"Resolution",{enumerable:!0,get:function(){return a.Resolution}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.Resolution}}),i(r(209503),t);var s=r(821821);Object.defineProperty(t,"DnsUtils",{enumerable:!0,get:function(){return o(s).default}});var c=r(377043);Object.defineProperty(t,"ResolutionError",{enumerable:!0,get:function(){return c.ResolutionError}}),Object.defineProperty(t,"ResolutionErrorCode",{enumerable:!0,get:function(){return c.ResolutionErrorCode}});var u=r(940707);Object.defineProperty(t,"ConfigurationError",{enumerable:!0,get:function(){return u.ConfigurationError}}),Object.defineProperty(t,"ConfigurationErrorCode",{enumerable:!0,get:function(){return u.ConfigurationErrorCode}});var l=r(126660);Object.defineProperty(t,"DnsRecordsError",{enumerable:!0,get:function(){return l.DnsRecordsError}}),Object.defineProperty(t,"DnsRecordsErrorCode",{enumerable:!0,get:function(){return l.DnsRecordsErrorCode}});var d=r(18159);Object.defineProperty(t,"Eip1993Factories",{enumerable:!0,get:function(){return d.Eip1993Factories}});var f=r(18159);Object.defineProperty(t,"Eip1193Factories",{enumerable:!0,get:function(){return f.Eip1993Factories}});var h=r(18159);Object.defineProperty(t,"ProviderFactories",{enumerable:!0,get:function(){return h.Eip1993Factories}})},282201:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasProvider=t.ZnsSupportedNetwork=t.UnsSupportedNetwork=t.NullAddresses=t.NullAddress=void 0,t.NullAddress="0x0000000000000000000000000000000000000000",function(e){e[e["0x"]=0]="0x",e[e["0x0000000000000000000000000000000000000000"]=1]="0x0000000000000000000000000000000000000000",e[e["0x0000000000000000000000000000000000000000000000000000000000000000"]=2]="0x0000000000000000000000000000000000000000000000000000000000000000"}(t.NullAddresses||(t.NullAddresses={}));var r=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockchainType=t.DnsRecordType=t.NamehashOptionsDefault=t.UDApiDefaultUrl=t.UnclaimedDomainResponse=t.NamingServiceName=t.UnsLocation=void 0,function(e){e.Layer1="UNSLayer1",e.Layer2="UNSLayer2"}(t.UnsLocation||(t.UnsLocation={})),function(e){e.UNS="UNS",e.ZNS="ZNS"}(t.NamingServiceName||(t.NamingServiceName={})),t.UnclaimedDomainResponse={addresses:{},meta:{domain:"",namehash:"",resolver:"",owner:null,type:"",ttl:0,blockchain:null},records:{}},t.UDApiDefaultUrl="https://unstoppabledomains.com/api/v1",t.NamehashOptionsDefault={format:"hex",prefix:!0,zns:!1},function(e){e.A="A",e.AAAA="AAAA",e.AFSDB="AFSDB",e.APL="APL",e.CAA="CAA",e.CDNSKEY="CDNSKEY",e.CDS="CDS",e.CERT="CERT",e.CNAME="CNAME",e.CSYNC="CSYNC",e.DHCID="DHCID",e.DLV="DLV",e.DNAME="DNAME",e.DNSKEY="DNSKEY",e.DS="DS",e.EUI48="EUI48",e.EUI64="EUI64",e.HINFO="HINFO",e.HIP="HIP",e.HTTPS="HTTPS",e.IPSECKEY="IPSECKEY",e.KEY="KEY",e.KX="KX",e.LOC="LOC",e.MX="MX",e.NAPTR="NAPTR",e.NS="NS",e.NSEC="NSEC",e.NSEC3="NSEC3",e.NSEC3PARAM="NSEC3PARAM",e.OPENPGPKEY="OPENPGPKEY",e.PTR="PTR",e.RP="RP",e.RRSIG="RRSIG",e.SIG="SIG",e.SMIMEA="SMIMEA",e.SOA="SOA",e.SRV="SRV",e.SSHFP="SSHFP",e.SVCB="SVCB",e.TA="TA",e.TKEY="TKEY",e.TLSA="TLSA",e.TSIG="TSIG",e.TXT="TXT",e.URI="URI",e.ZONEMD="ZONEMD"}(t.DnsRecordType||(t.DnsRecordType={})),function(e){e.ETH="ETH",e.MATIC="MATIC",e.ZIL="ZIL"}(t.BlockchainType||(t.BlockchainType={}))},821821:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(126660)),s=r(209503),c=function(){function e(){}return e.prototype.toList=function(e){var t,r=this,n=this.getAllDnsTypes(e);return(t=[]).concat.apply(t,n.map((function(t){return r.constructDnsRecords(e,t)})))},e.prototype.toCrypto=function(e){for(var t={},r=0,n=e;r0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidTwitterSignature=void 0;var n=r(925525),i=r(131176),o=r(725415),a=r(888074);t.isValidTwitterSignature=function(e){var t=e.tokenId,r=e.owner,s=e.twitterHandle,c=e.validationSignature,u=[(0,a.fromHexStringToDecimals)(t),r,"social.twitter.username",s].map((function(e){return"0x"+(0,i.keccak256)(e.startsWith("0x")?(0,n.hexToBytes)(e):e)})).reduce((function(e,t){return e+t}),"");return"0x12cfb13522F13a78b650a8bCbFCf50b7CB899d82"===(0,o.recover)(u,c)}},925525:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unwrapResult=t.wrapResult=t.EthereumNetworksInverted=t.EthereumNetworks=t.findNamingServiceName=t.domainExtensionToNamingServiceName=t.constructRecords=t.isNullAddress=t.hexToBytes=t.signedLink=void 0;var n=r(209503),i=r(282201),o={infura:{mainnet:"https://mainnet.infura.io/v3/",rinkeby:"https://rinkeby.infura.io/v3/",goerli:"https://goerli.infura.io/v3/","polygon-mainnet":"https://polygon-mainnet.infura.io/v3/","polygon-mumbai":"https://polygon-mumbai.infura.io/v3/"},alchemy:{mainnet:"https://eth-mainnet.alchemyapi.io/v2/",rinkeby:"https://eth-rinkeby.alchemyapi.io/v2/",goerli:"https://eth-goerli.alchemyapi.io/v2/","polygon-mainnet":"https://polygon-mainnet.g.alchemy.com/v2/","polygon-mumbai":"https://polygon-mumbai.g.alchemy.com/v2/"}};t.signedLink=function(e,t,r){void 0===t&&(t="mainnet"),void 0===r&&(r="alchemy");var n=o[r][t];return"".concat(n).concat(e)},t.hexToBytes=function(e){for(var t=e.replace(/^0x/i,""),r=[],n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recover=t.hashMessage=void 0;var n=r(131176),i=r(925525),o=new(r(86729).ec)("secp256k1"),a=function(e,t,r){return"0x"+r.slice(2*e+2,2*t+2)},s=function(e){return parseInt(e.slice(2),16)};t.hashMessage=function(e){var t=(0,i.hexToBytes)(Buffer.from(e,"utf8").toString("hex")),r=Buffer.from(t),o="\x19Ethereum Signed Message:\n"+t.length,a=Buffer.from(o),s=Buffer.concat([a,r]);return"0x"+(0,n.keccak256)(s.toString())};t.recover=function(e,r){var c,u,l=(0,t.hashMessage)(e),d=[a(64,(u=c=r,(u.length-2)/2),c),a(0,32,c),a(32,64,c)],f={v:s(d[0]),r:d[1].slice(2),s:d[2].slice(2)},h="0x"+o.recoverPubKey(Buffer.from(l.slice(2),"hex"),f,f.v<2?f.v:1-f.v%2).encode("hex",!1).slice(2);return function(e){for(var t=(0,n.keccak256)(e.slice(2)),r="0x",i=0;i<40;i++)r+=parseInt(t[i+2],16)>7?e[i+2].toUpperCase():e[i+2];return r}("0x"+("0x"+(0,n.keccak256)((0,i.hexToBytes)(h))).slice(-40))}},923943:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fromBech32Address=t.toBech32Address=t.toChecksumAddress=void 0;var i=n(r(439404)),o=n(r(463009)),a=n(r(369956)),s="qpzry9x8gf2tvdw0s3jn54khce6mua7l",c=[996825010,642813549,513874426,1027748829,705979059],u="tzil";function l(e){return t=40,!!e.replace("0x","").match("^[0-9a-fA-F]{".concat(t,"}$"));var t}function d(e,t,r,n){void 0===n&&(n=!0);for(var i=0,o=0,a=[],s=(1<>t)return null;for(i=i<=r;)o-=r,a.push(i>>o&s)}if(n)o>0&&a.push(i<=t||i<>5);for(r.push(0),t=0;t>25;t=(33554431&t)<<5^e[r];for(var i=0;i<5;++i)n>>i&1&&(t^=c[i])}return t}function p(e,t){for(var r=1^h(Buffer.concat([Buffer.from(f(e)),t,Buffer.from([0,0,0,0,0,0])])),n=[],i=0;i<6;++i)n.push(r>>5*(5-i)&31);return Buffer.from(n)}function g(e){var t,r=!1,n=!1;for(t=0;t126)return null;e.charCodeAt(t)>=97&&e.charCodeAt(t)<=122&&(r=!0),e.charCodeAt(t)>=65&&e.charCodeAt(t)<=90&&(n=!0)}if(r&&n)return null;var i=(e=e.toLowerCase()).lastIndexOf("1");if(i<1||i+7>e.length||e.length>90)return null;var o=e.substring(0,i),a=[];for(t=i+1;t-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function g(e){var t=new FileReader,r=p(t);return t.readAsArrayBuffer(e),r}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,r,n=h(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=p(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function A(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},y.call(v.prototype),y.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:0,statusText:""});return e.type="error",e};var C=[301,302,303,307,308];A.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new A(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(x){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,r){return new Promise((function(n,o){var a=new v(e,r);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;n(new A(i,r))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=f,e.Request=v,e.Response=A),t.Headers=f,t.Request=v,t.Response=A,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},330143:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||e,a),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i{"use strict";var n=r(296540);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(n){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return s((function(){i.value=r,i.getSnapshot=t,u(i)&&l({inst:i})}),[e,r,t]),a((function(){return u(i)&&l({inst:i}),e((function(){u(i)&&l({inst:i})}))}),[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},735779:(e,t,r)=>{"use strict";e.exports=r(708690)},33836:function(e){"use strict";!function(){function t(e){return parseInt(e)===e}function r(e){if(!t(e.length))return!1;for(var r=0;r255)return!1;return!0}function n(e,n){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return n&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(t(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function i(e){return new Uint8Array(e)}function o(e,t,r,n,i){null==n&&null==i||(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var a,s={toBytes:function(e){var t=[],r=0;for(e=encodeURI(e);r191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},c=(a="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+a[15&n])}return t.join("")}}),u={16:10,24:12,32:14},l=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],f=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],h=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],g=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],y=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],b=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],v=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],A=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],C=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],E=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],x=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function S(e){for(var t=[],r=0;r>2,this._Ke[r][t%4]=o[t],this._Kd[e-r][t%4]=o[t];for(var a,s=0,c=i;c>16&255]<<24^d[a>>8&255]<<16^d[255&a]<<8^d[a>>24&255]^l[s]<<24,s+=1,8!=i)for(t=1;t>8&255]<<8^d[a>>16&255]<<16^d[a>>24&255]<<24;for(t=i/2+1;t>2,h=c%4,this._Ke[f][h]=o[t],this._Kd[e-f][h]=o[t++],c++}for(var f=1;f>24&255]^C[a>>16&255]^E[a>>8&255]^x[255&a]},I.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=S(e),o=0;o<4;o++)n[o]^=this._Ke[0][o];for(var a=1;a>24&255]^p[n[(o+1)%4]>>16&255]^g[n[(o+2)%4]>>8&255]^m[255&n[(o+3)%4]]^this._Ke[a][o];n=r.slice()}var s,c=i(16);for(o=0;o<4;o++)s=this._Ke[t][o],c[4*o]=255&(d[n[o]>>24&255]^s>>24),c[4*o+1]=255&(d[n[(o+1)%4]>>16&255]^s>>16),c[4*o+2]=255&(d[n[(o+2)%4]>>8&255]^s>>8),c[4*o+3]=255&(d[255&n[(o+3)%4]]^s);return c},I.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=S(e),o=0;o<4;o++)n[o]^=this._Kd[0][o];for(var a=1;a>24&255]^b[n[(o+3)%4]>>16&255]^v[n[(o+2)%4]>>8&255]^w[255&n[(o+1)%4]]^this._Kd[a][o];n=r.slice()}var s,c=i(16);for(o=0;o<4;o++)s=this._Kd[t][o],c[4*o]=255&(f[n[o]>>24&255]^s>>24),c[4*o+1]=255&(f[n[(o+3)%4]>>16&255]^s>>16),c[4*o+2]=255&(f[n[(o+2)%4]>>8&255]^s>>8),c[4*o+3]=255&(f[255&n[(o+1)%4]]^s);return c};var k=function(e){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new I(e)};k.prototype.encrypt=function(e){if((e=n(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),r=i(16),a=0;a=0;--t)this._counter[t]=e%256,e>>=8},P.prototype.setBytes=function(e){if(16!=(e=n(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},P.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var j=function(e,t){if(!(this instanceof j))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof P||(t=new P(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new I(e)};j.prototype.encrypt=function(e){for(var t=n(e,!0),r=0;r16)throw new Error("PKCS#7 padding byte out of range");for(var r=e.length-t,a=0;ar&&(r+=1),1r?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var r=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e);e=parseInt(r[1])/360;var n=parseInt(r[2])/100,i=parseInt(r[3])/100;if(r=r[4]||1,0==n)i=n=e=i;else{var o=.5>i?i*(1+n):i+n-i*n,a=2*i-o;i=t(a,o,e+1/3),n=t(a,o,e),e=t(a,o,e-1/3)}return"rgba("+255*i+","+255*n+","+255*e+","+r+")"}function d(e){if(e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e))return e[2]}function f(e){return-1=h.currentTime)for(var w=0;w=p||!t)&&(h.began||(h.began=!0,o("begin")),o("run")),y>s&&y=t&&g!==t||!t)&&(i(t),m||a())),o("update"),e>=t&&(h.remaining?(u=c,"alternate"===h.direction&&(h.reversed=!h.reversed)):(h.pause(),h.completed||(h.completed=!0,o("complete"),"Promise"in window&&(d(),f=r()))),l=0)}e=void 0===e?{}:e;var c,u,l=0,d=null,f=r(),h=j(e);return h.reset=function(){var e=h.direction,t=h.loop;for(h.currentTime=0,h.progress=0,h.paused=!0,h.began=!1,h.completed=!1,h.reversed="reverse"===e,h.remaining="alternate"===e&&1===t?2:t,i(0),e=h.children.length;e--;)h.children[e].reset()},h.tick=function(e){c=e,u||(u=c),s((l+c-u)*D.speed)},h.seek=function(e){s(n(e))},h.pause=function(){var e=H.indexOf(h);-1=t&&0<=n&&1>=n){var o=new Float32Array(11);if(t!==r||n!==i)for(var a=0;11>a;++a)o[a]=e(.1*a,t,n);return function(a){if(t===r&&n===i)return a;if(0===a)return 0;if(1===a)return 1;for(var s=0,c=1;10!==c&&o[c]<=a;++c)s+=.1;--c,c=s+(a-o[c])/(o[c+1]-o[c])*.1;var u=3*(1-3*n+3*t)*c*c+2*(3*n-6*t)*c+3*t;if(.001<=u){for(s=0;4>s&&0!=(u=3*(1-3*n+3*t)*c*c+2*(3*n-6*t)*c+3*t);++s){var l=e(c,t,n)-a;c-=l/u}a=c}else if(0===u)a=c;else{c=s,s+=.1;var d=0;do{0<(u=e(l=c+(s-c)/2,t,n)-a)?s=l:c=l}while(1e-7++d);a=l}return e(a,r,i)}}}}(),U=function(){function e(e,t){return 0===e||1===e?e:-Math.pow(2,10*(e-1))*Math.sin(2*(e-1-t/(2*Math.PI)*Math.asin(1))*Math.PI/t)}var t,r="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),n={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],e],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(t,r){return 1-e(1-t,r)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(t,r){return.5>t?e(2*t,r)/2:1-e(-2*t+2,r)/2}]},i={linear:F(.25,.25,.75,.75)},o={};for(t in n)o.type=t,n[o.type].forEach(function(e){return function(t,n){i["ease"+e.type+r[n]]=L.fnc(t)?t:F.apply(s,t)}}(o)),o={type:o.type};return i}(),z={css:function(e,t,r){return e.style[t]=r},attribute:function(e,t,r){return e.setAttribute(t,r)},object:function(e,t,r){return e[t]=r},transform:function(e,t,r,n,i){n[i]||(n[i]=[]),n[i].push(t+"("+r+")")}},H=[],V=0,K=function(){function e(){V=requestAnimationFrame(t)}function t(t){var r=H.length;if(r){for(var n=0;nr&&(t.duration=n.duration),t.children.push(n)})),t.seek(0),t.reset(),t.autoplay&&t.restart(),t},t},D.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},D},void 0===(o="function"==typeof n?n.apply(t,i):n)||(e.exports=o)},794148:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}var v="",w="",A="",C="",E={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function S(e){return m(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function I(e,t,r){var n="",i="",o=0,a="",s=!1,c=S(e),u=c.split("\n"),l=S(t).split("\n"),d=0,f="";if("strictEqual"===r&&"object"===g(e)&&"object"===g(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===u.length&&1===l.length&&u[0]!==l[0]){var h=u[0].length+l[0].length;if(h<=10){if(!("object"===g(e)&&null!==e||"object"===g(t)&&null!==t||0===e&&0===t))return"".concat(E[r],"\n\n")+"".concat(u[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r){if(h<(process.stderr&&process.stderr.isTTY?process.stderr.columns:80)){for(;u[0][d]===l[0][d];)d++;d>2&&(f="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",d),"^"),d=0)}}}for(var p=u[u.length-1],m=l[l.length-1];p===m&&(d++<2?a="\n ".concat(p).concat(a):n=p,u.pop(),l.pop(),0!==u.length&&0!==l.length);)p=u[u.length-1],m=l[l.length-1];var y=Math.max(u.length,l.length);if(0===y){var x=c.split("\n");if(x.length>30)for(x[26]="".concat(v,"...").concat(C);x.length>27;)x.pop();return"".concat(E.notIdentical,"\n\n").concat(x.join("\n"),"\n")}d>3&&(a="\n".concat(v,"...").concat(C).concat(a),s=!0),""!==n&&(a="\n ".concat(n).concat(a),n="");var I=0,k=E[r]+"\n".concat(w,"+ actual").concat(C," ").concat(A,"- expected").concat(C),_=" ".concat(v,"...").concat(C," Lines skipped");for(d=0;d1&&d>2&&(T>4?(i+="\n".concat(v,"...").concat(C),s=!0):T>3&&(i+="\n ".concat(l[d-2]),I++),i+="\n ".concat(l[d-1]),I++),o=d,n+="\n".concat(A,"-").concat(C," ").concat(l[d]),I++;else if(l.length1&&d>2&&(T>4?(i+="\n".concat(v,"...").concat(C),s=!0):T>3&&(i+="\n ".concat(u[d-2]),I++),i+="\n ".concat(u[d-1]),I++),o=d,i+="\n".concat(w,"+").concat(C," ").concat(u[d]),I++;else{var M=l[d],P=u[d],j=P!==M&&(!b(P,",")||P.slice(0,-1)!==M);j&&b(M,",")&&M.slice(0,-1)===P&&(j=!1,P+=","),j?(T>1&&d>2&&(T>4?(i+="\n".concat(v,"...").concat(C),s=!0):T>3&&(i+="\n ".concat(u[d-2]),I++),i+="\n ".concat(u[d-1]),I++),o=d,i+="\n".concat(w,"+").concat(C," ").concat(P),n+="\n".concat(A,"-").concat(C," ").concat(M),I+=2):(i+=n,n="",1!==T&&0!==d||(i+="\n ".concat(P),I++))}if(I>20&&d30)for(f[26]="".concat(v,"...").concat(C);f.length>27;)f.pop();t=1===f.length?d.call(this,"".concat(l," ").concat(f[0])):d.call(this,"".concat(l,"\n\n").concat(f.join("\n"),"\n"))}else{var h=S(o),p="",m=E[n];"notDeepEqual"===n||"notEqual"===n?(h="".concat(E[n],"\n\n").concat(h)).length>1024&&(h="".concat(h.slice(0,1021),"...")):(p="".concat(S(a)),h.length>512&&(h="".concat(h.slice(0,509),"...")),p.length>512&&(p="".concat(p.slice(0,509),"...")),"deepEqual"===n||"equal"===n?h="".concat(m,"\n\n").concat(h,"\n\nshould equal\n\n"):p=" ".concat(n," ").concat(p)),t=d.call(this,"".concat(h).concat(p))}return Error.stackTraceLimit=s,t.generatedMessage=!r,Object.defineProperty(u(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=o,t.expected=a,t.operator=n,Error.captureStackTrace&&Error.captureStackTrace(u(t),i),t.stack,t.name="AssertionError",c(t)}return o=b,(s=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return m(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&a(o.prototype,s),l&&a(o,l),Object.defineProperty(o,"prototype",{writable:!1}),b}(l(Error),m.custom);e.exports=k},469597:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}d("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),d("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,a,s,u;if(void 0===c&&(c=r(794148)),c("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!s||s<0?0:+s,a.length)===a)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))u="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";u='The "'.concat(e,'" ').concat(l," ").concat(o," ").concat(f(t,"type"))}return u+=". Received type ".concat(n(i))}),TypeError),d("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=r(694591));var i=u.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),d("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),d("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=l},482299:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function D(e){return Object.keys(e).filter(j).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function O(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},512078:(e,t,r)=>{"use strict";var n=r(147244),i=r(848184),o=r(625767),a=r(135680);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(c)var p=s(BigInt.prototype.valueOf);if(u)var g=s(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(r){return!1}}function y(e){return"[object Map]"===l(e)}function b(e){return"[object Set]"===l(e)}function v(e){return"[object WeakMap]"===l(e)}function w(e){return"[object WeakSet]"===l(e)}function A(e){return"[object ArrayBuffer]"===l(e)}function C(e){return"undefined"!=typeof ArrayBuffer&&(A.working?A(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===l(e)}function x(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||x(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},A.working="undefined"!=typeof ArrayBuffer&&A(new ArrayBuffer),t.isArrayBuffer=C,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=x;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function I(e){return"[object SharedArrayBuffer]"===l(e)}function k(e){return void 0!==S&&(void 0===I.working&&(I.working=I(new S)),I.working?I(e):e instanceof S)}function _(e){return m(e,d)}function T(e){return m(e,f)}function M(e){return m(e,h)}function P(e){return c&&m(e,p)}function j(e){return u&&m(e,g)}t.isSharedArrayBuffer=k,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=_,t.isStringObject=T,t.isBooleanObject=M,t.isBigIntObject=P,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return _(e)||T(e)||M(e)||P(e)||j(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(C(e)||k(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},694591:(e,t,r)=>{var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}})),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),d(n,e,n.depth)}function u(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function l(e,t){return e}function d(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return b(i)||(i=d(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(y(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),E(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(r);if(0===a.length){if(x(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(C(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return f(r)}var u,l="",A=!1,S=["{","}"];(p(r)&&(A=!0,S=["[","]"]),x(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(l=" "+RegExp.prototype.toString.call(r)),C(r)&&(l=" "+Date.prototype.toUTCString.call(r)),E(r)&&(l=" "+f(r)),0!==a.length||A&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=A?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,l,S)):S[0]+l+S[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),_(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=m(r)?d(e,c.value,null):d(e,c.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function v(e){return void 0===e}function w(e){return A(e)&&"[object RegExp]"===S(e)}function A(e){return"object"==typeof e&&null!==e}function C(e){return A(e)&&"[object Date]"===S(e)}function E(e){return A(e)&&("[object Error]"===S(e)||e instanceof Error)}function x(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function I(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(a.test(e)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(512078),t.isArray=p,t.isBoolean=g,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=w,t.types.isRegExp=w,t.isObject=A,t.isDate=C,t.types.isDate=C,t.isError=E,t.types.isNativeError=E,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(933845);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[I(e.getHours()),I(e.getMinutes()),I(e.getSeconds())].join(":"),[e.getDate(),k[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(256698),t._extend=function(e,t){if(!t||!A(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function M(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!=typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o{"use strict";r.d(t,{A:()=>o});r(296540);var n=r(992303),i=r(474848);function o(e){let{children:t,fallback:r}=e;return(0,n.A)()?(0,i.jsx)(i.Fragment,{children:null==t?void 0:t()}):null!=r?r:null}},867526:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),a=o[0],c=o[1],u=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,c)),l=0,d=c>0?a-4:a;for(r=0;r>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[l++]=255&t);1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,u=n-i;su?u:s+a));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},169674:e=>{"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<32;n++){var i=t.charAt(n);if(void 0!==r[i])throw new TypeError(i+" is ambiguous");r[i]=n}function o(e){var t=e>>25;return(33554431&e)<<5^996825010&-(1&t)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function a(e){for(var t=1,r=0;r126)return"Invalid prefix ("+e+")";t=o(t)^n>>5}for(t=o(t),r=0;rt)return"Exceeds length limit";var n=e.toLowerCase(),i=e.toUpperCase();if(e!==n&&e!==i)return"Mixed-case string "+e;var s=(e=n).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var c=e.slice(0,s),u=e.slice(s+1);if(u.length<6)return"Data too short";var l=a(c);if("string"==typeof l)return l;for(var d=[],f=0;f=u.length||d.push(p)}return 1!==l?"Invalid checksum for "+e:{prefix:c,words:d}}function c(e,t,r,n){for(var i=0,o=0,a=(1<=r;)o-=r,s.push(i>>o&a);if(n)o>0&&s.push(i<=t)return"Excess padding";if(i<n)throw new TypeError("Exceeds length limit");var i=a(e=e.toLowerCase());if("string"==typeof i)throw new Error(i);for(var s=e+"1",c=0;c>5)throw new Error("Non 5-bit word");i=o(i)^u,s+=t.charAt(u)}for(c=0;c<6;++c)i=o(i);for(i^=1,c=0;c<6;++c){s+=t.charAt(i>>5*(5-c)&31)}return s},toWordsUnsafe:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},439404:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(847790).Buffer}catch(S){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?l[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],h=f[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?g+r:l[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,u=new e(o),l=this.clone();if(c){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,g=h>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],w=8191&v,A=v>>>13,C=0|a[4],E=8191&C,x=C>>>13,S=0|a[5],I=8191&S,k=S>>>13,_=0|a[6],T=8191&_,M=_>>>13,P=0|a[7],j=8191&P,D=P>>>13,O=0|a[8],B=8191&O,N=O>>>13,R=0|a[9],L=8191&R,F=R>>>13,U=0|s[0],z=8191&U,H=U>>>13,V=0|s[1],K=8191&V,G=V>>>13,q=0|s[2],Q=8191&q,W=q>>>13,J=0|s[3],Y=8191&J,Z=J>>>13,$=0|s[4],X=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,he=0|s[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,z)|0))<<13)|0;u=((o=Math.imul(f,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H);var ye=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,K)|0))<<13)|0;u=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,G)|0;var be=(u+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,Q)|0))<<13)|0;u=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,W)|0;var ve=(u+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Y)|0))<<13)|0;u=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(x,z)|0,o=Math.imul(x,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Z)|0;var we=(u+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var Ae=(u+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;u=((o=o+Math.imul(f,ne)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0;var Ce=(u+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;u=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0;var Ee=(u+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(f,ce)|0))<<13)|0;u=((o=o+Math.imul(f,ue)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(N,z)|0,o=Math.imul(N,H),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(D,K)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,Z)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,ue)|0;var xe=(u+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;u=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,G)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,de)|0,o=o+Math.imul(g,fe)|0;var Se=(u+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ge)|0)+Math.imul(f,pe)|0))<<13)|0;u=((o=o+Math.imul(f,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,n=n+Math.imul(y,de)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Ie=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((o=o+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,W))+Math.imul(F,Q)|0,o=Math.imul(F,W),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,ue)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,ue)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var ke=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,Z))+Math.imul(F,Y)|0,o=Math.imul(F,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,n=n+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,fe)|0;var _e=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ge)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,ge)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,n=n+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Te=(u+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(j,ce)|0,i=(i=i+Math.imul(j,ue)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,ue)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(u+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ge)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,ue)|0,n=n+Math.imul(j,de)|0,i=(i=i+Math.imul(j,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((o=o+Math.imul(M,ge)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,ce),i=(i=Math.imul(L,ue))+Math.imul(F,ce)|0,o=Math.imul(F,ue),n=n+Math.imul(B,de)|0,i=(i=i+Math.imul(B,fe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,fe)|0;var je=(u+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,ge)|0)+Math.imul(D,pe)|0))<<13)|0;u=((o=o+Math.imul(D,ge)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,de),i=(i=Math.imul(L,fe))+Math.imul(F,de)|0,o=Math.imul(F,fe);var De=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(N,pe)|0))<<13)|0;u=((o=o+Math.imul(N,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(u+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,ge))+Math.imul(F,pe)|0))<<13)|0;return u=((o=Math.imul(F,ge))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=Ae,c[6]=Ce,c[7]=Ee,c[8]=xe,c[9]=Se,c[10]=Ie,c[11]=ke,c[12]=_e,c[13]=Te,c[14]=Me,c[15]=Pe,c[16]=je,c[17]=De,c[18]=Oe,0!==u&&(c[19]=u,r.length++),r};function g(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):g(this,e,t),r},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},m.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;!(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;!(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;!(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;!(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(v,b),v.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new C}return y[e]=t,t},E.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){n(!(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var g=h,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var d=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},i(x,E),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},146880:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),a=Math.max(i,o),s=0,c=e.map([t,r],(function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]1?i-1:0),a=1;a0){var a=Object.keys(r),c=s.default.find(a,(function(e){return t.isOS(e)}));if(c){var u=this.satisfies(r[c]);if(void 0!==u)return u}var l=s.default.find(a,(function(e){return t.isPlatform(e)}));if(l){var d=this.satisfies(r[l]);if(void 0!==d)return d}}if(o>0){var f=Object.keys(i),h=s.default.find(f,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(s.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})},415037:(e,t,r)=>{var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r{var n=r(192861).Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i>>24]^l[p>>>16&255]^d[g>>>8&255]^f[255&m]^t[y++],a=u[p>>>24]^l[g>>>16&255]^d[m>>>8&255]^f[255&h]^t[y++],s=u[g>>>24]^l[m>>>16&255]^d[h>>>8&255]^f[255&p]^t[y++],c=u[m>>>24]^l[h>>>16&255]^d[p>>>8&255]^f[255&g]^t[y++],h=o,p=a,g=s,m=c;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[g>>>8&255]<<8|n[255&m])^t[y++],a=(n[p>>>24]<<24|n[g>>>16&255]<<16|n[m>>>8&255]<<8|n[255&h])^t[y++],s=(n[g>>>24]<<24|n[m>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[y++],c=(n[m>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&g])^t[y++],[o>>>=0,a>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,n[u]=a;var l=e[a],d=e[l],f=e[d],h=257*e[u]^16843008*u;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*f^65537*d^257*l^16843008*a,o[0][u]=h<<24|h>>>8,o[1][u]=h<<16|h>>>16,o[2][u]=h<<8|h>>>24,o[3][u]=h,0===a?a=s=1:(a=l^e[e[e[f^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function u(e){this._key=i(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o>>24,a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a]),i[o]=i[o-t]^a}for(var u=[],l=0;l>>24]]^c.INV_SUB_MIX[1][c.SBOX[f>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[f>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&f]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=u},592356:(e,t,r)=>{var n=r(50462),i=r(192861).Buffer,o=r(556168),a=r(256698),s=r(525892),c=r(130295),u=r(645122);function l(e,t,r,a){o.call(this);var c=i.alloc(4,0);this._cipher=new n.AES(t);var l=this._cipher.encryptBlock(c);this._ghash=new s(l),r=function(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new s(r),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var c=8*o,l=i.alloc(8);l.writeUIntBE(c,0,8),n.update(l),e._finID=n.state;var d=i.from(e._finID);return u(d),d}(this,r,l),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(l,o),l.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i{var n=r(125799),i=r(136171),o=r(603219);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},136171:(e,t,r)=>{var n=r(592356),i=r(192861).Buffer,o=r(700530),a=r(650650),s=r(556168),c=r(50462),u=r(168078);function l(e,t,r){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function f(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new l(s.module,t,r)}r(256698)(l,s),l.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=u(t,!1,r.key,r.iv);return f(e,n.key,n.iv)},t.createDecipheriv=f},125799:(e,t,r)=>{var n=r(700530),i=r(592356),o=r(192861).Buffer,a=r(650650),s=r(556168),c=r(50462),u=r(168078);function l(e,t,r){s.call(this),this._cache=new f,this._cipher=new c.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(256698)(l,s),l.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var d=o.alloc(16,16);function f(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var s=n[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new l(s.module,t,r)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=o.concat([this.cache,e])},f.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r{var n=r(192861).Buffer,i=n.alloc(16,0);function o(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},645122:e=>{e.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},192884:(e,t,r)=>{var n=r(130295);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},246383:(e,t,r)=>{var n=r(192861).Buffer,i=r(130295);function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){a=n.concat([a,o(e,t,r)]);break}i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i)}return a}},555264:(e,t,r)=>{var n=r(192861).Buffer;function i(e,t,r){for(var n,i,a=-1,s=0;++a<8;)n=t&1<<7-a?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>a%8,e._prev=o(e._prev,r?n:i);return s}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s{var n=r(192861).Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s{var n=r(130295),i=r(192861).Buffer,o=r(645122);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var s=0;s{t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},700530:(e,t,r)=>{var n={ECB:r(52632),CBC:r(192884),CFB:r(246383),CFB8:r(886975),CFB1:r(555264),OFB:r(246843),CTR:r(163053),GCM:r(163053)},i=r(603219);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},246843:(e,t,r)=>{var n=r(130295);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length{var n=r(50462),i=r(192861).Buffer,o=r(556168);function a(e,t,r,a){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}r(256698)(a,o),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},330125:(e,t,r)=>{var n=r(884050),i=r(201241),o=r(700530),a=r(732438),s=r(168078);function c(e,t,r){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function u(e,t,r){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return c(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=c,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return u(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=u,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},884050:(e,t,r)=>{var n=r(556168),i=r(429560),o=r(256698),a=r(192861).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function c(e){n.call(this);var t,r=e.mode.toLowerCase(),i=s[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=a.concat([o,o.slice(0,8)]));var c=e.iv;a.isBuffer(c)||(c=a.from(c)),this._des=i.create({key:o,iv:c,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=c,o(c,n),c.prototype._update=function(e){return a.from(this._des.update(e))},c.prototype._final=function(){return a.from(this._des.final())}},732438:(e,t)=>{t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},567332:(e,t,r)=>{"use strict";var n=r(178893),i=r(553209),o=r(192861).Buffer;function a(e){var t,r=e.modulus.byteLength();do{t=new n(i(r))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function s(e,t){var r=function(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),i=t.modulus.byteLength(),s=new n(e).mul(r.blinder).umod(t.modulus),c=s.toRed(n.mont(t.prime1)),u=s.toRed(n.mont(t.prime2)),l=t.coefficient,d=t.prime1,f=t.prime2,h=c.redPow(t.exponent1).fromRed(),p=u.redPow(t.exponent2).fromRed(),g=h.isub(p).imul(l).umod(d).imul(f);return p.iadd(g).imul(r.unblinder).umod(t.modulus).toArrayLike(o,"be",i)}s.getr=a,e.exports=s},178893:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(698285).Buffer}catch(_){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(_){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?""}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?f[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=h[e],l=p[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modrn(l).toString(e);r=(d=d.idivn(l)).isZero()?g+r:f[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,g=h>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],w=8191&v,A=v>>>13,C=0|a[4],E=8191&C,x=C>>>13,S=0|a[5],I=8191&S,k=S>>>13,_=0|a[6],T=8191&_,M=_>>>13,P=0|a[7],j=8191&P,D=P>>>13,O=0|a[8],B=8191&O,N=O>>>13,R=0|a[9],L=8191&R,F=R>>>13,U=0|s[0],z=8191&U,H=U>>>13,V=0|s[1],K=8191&V,G=V>>>13,q=0|s[2],Q=8191&q,W=q>>>13,J=0|s[3],Y=8191&J,Z=J>>>13,$=0|s[4],X=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,he=0|s[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,z)|0))<<13)|0;u=((o=Math.imul(f,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H);var ye=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,K)|0))<<13)|0;u=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,G)|0;var be=(u+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,Q)|0))<<13)|0;u=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,W)|0;var ve=(u+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Y)|0))<<13)|0;u=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(x,z)|0,o=Math.imul(x,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Z)|0;var we=(u+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var Ae=(u+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;u=((o=o+Math.imul(f,ne)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0;var Ce=(u+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;u=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0;var Ee=(u+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(f,ce)|0))<<13)|0;u=((o=o+Math.imul(f,ue)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(N,z)|0,o=Math.imul(N,H),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(D,K)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,Z)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,ue)|0;var xe=(u+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;u=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,G)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,de)|0,o=o+Math.imul(g,fe)|0;var Se=(u+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ge)|0)+Math.imul(f,pe)|0))<<13)|0;u=((o=o+Math.imul(f,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,n=n+Math.imul(y,de)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Ie=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((o=o+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,W))+Math.imul(F,Q)|0,o=Math.imul(F,W),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,ue)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,ue)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var ke=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,Z))+Math.imul(F,Y)|0,o=Math.imul(F,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,n=n+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,fe)|0;var _e=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ge)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,ge)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,n=n+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Te=(u+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(j,ce)|0,i=(i=i+Math.imul(j,ue)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,ue)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(u+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ge)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,ue)|0,n=n+Math.imul(j,de)|0,i=(i=i+Math.imul(j,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((o=o+Math.imul(M,ge)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,ce),i=(i=Math.imul(L,ue))+Math.imul(F,ce)|0,o=Math.imul(F,ue),n=n+Math.imul(B,de)|0,i=(i=i+Math.imul(B,fe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,fe)|0;var je=(u+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,ge)|0)+Math.imul(D,pe)|0))<<13)|0;u=((o=o+Math.imul(D,ge)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,de),i=(i=Math.imul(L,fe))+Math.imul(F,de)|0,o=Math.imul(F,fe);var De=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(N,pe)|0))<<13)|0;u=((o=o+Math.imul(N,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(u+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,ge))+Math.imul(F,pe)|0))<<13)|0;return u=((o=Math.imul(F,ge))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=Ae,c[6]=Ce,c[7]=Ee,c[8]=xe,c[9]=Se,c[10]=Ie,c[11]=ke,c[12]=_e,c[13]=Te,c[14]=Me,c[15]=Pe,c[16]=je,c[17]=De,c[18]=Oe,0!==u&&(c[19]=u,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function b(e,t,r){return y(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(m=g),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?g(this,e,t):r<1024?y(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;!(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;!(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;!(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;!(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new I(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function A(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},A.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(e,t){e.iushrn(this.n,0,t)},A.prototype.imulK=function(e){return e.imul(this.k)},i(C,A),C.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new C;else if("p224"===e)t=new E;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return w[e]=t,t},I.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){n(!(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},I.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var g=h,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var d=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,I),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},655715:(e,t,r)=>{"use strict";e.exports=r(62951)},900020:(e,t,r)=>{"use strict";var n=r(192861).Buffer,i=r(747108),o=r(46737),a=r(256698),s=r(835359),c=r(74847),u=r(62951);function l(e){o.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){o.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new l(e)}function h(e){return new d(e)}Object.keys(u).forEach((function(e){u[e].id=n.from(u[e].id,"hex"),u[e.toLowerCase()]=u[e]})),a(l,o.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return this._hash.update("string"==typeof e?n.from(e,t):e),this},l.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=s(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},a(d,o.Writable),d.prototype._write=function(e,t,r){this._hash.update(e),r()},d.prototype.update=function(e,t){return this._hash.update("string"==typeof e?n.from(e,t):e),this},d.prototype.verify=function(e,t,r){var i="string"==typeof t?n.from(t,r):t;this.end();var o=this._hash.digest();return c(i,o,e,this._signType,this._tag)},e.exports={Sign:f,Verify:h,createSign:f,createVerify:h}},835359:(e,t,r)=>{"use strict";var n=r(192861).Buffer,i=r(383507),o=r(567332),a=r(86729).ec,s=r(726162),c=r(778170),u=r(264589);function l(e,t,r,o){if((e=n.from(e.toArray())).length0&&r.ishrn(n),r}function f(e,t,r){var o,a;do{for(o=n.alloc(0);8*o.length{"use strict";var n=r(192861).Buffer,i=r(726162),o=r(86729).ec,a=r(778170),s=r(264589);function c(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=0)throw new Error("invalid sig")}e.exports=function(e,t,r,u,l){var d=a(r);if("ec"===d.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(t,e,a)}(e,t,d)}if("dsa"===d.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,o=r.data.q,s=r.data.g,u=r.data.pub_key,l=a.signature.decode(e,"der"),d=l.s,f=l.r;c(d,o),c(f,o);var h=i.mont(n),p=d.invm(o),g=s.toRed(h).redPow(new i(t).mul(p).mod(o)).fromRed().mul(u.toRed(h).redPow(f.mul(p).mod(o)).fromRed()).mod(n).mod(o);return 0===g.cmp(f)}(e,t,d)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");t=n.concat([l,t]);for(var f=d.modulus.byteLength(),h=[1],p=0;t.length+h.length+2=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(_){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?""}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?f[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=h[e],l=p[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modrn(l).toString(e);r=(d=d.idivn(l)).isZero()?g+r:f[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,g=h>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],w=8191&v,A=v>>>13,C=0|a[4],E=8191&C,x=C>>>13,S=0|a[5],I=8191&S,k=S>>>13,_=0|a[6],T=8191&_,M=_>>>13,P=0|a[7],j=8191&P,D=P>>>13,O=0|a[8],B=8191&O,N=O>>>13,R=0|a[9],L=8191&R,F=R>>>13,U=0|s[0],z=8191&U,H=U>>>13,V=0|s[1],K=8191&V,G=V>>>13,q=0|s[2],Q=8191&q,W=q>>>13,J=0|s[3],Y=8191&J,Z=J>>>13,$=0|s[4],X=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,he=0|s[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,z)|0))<<13)|0;u=((o=Math.imul(f,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H);var ye=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,K)|0))<<13)|0;u=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,G)|0;var be=(u+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,Q)|0))<<13)|0;u=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,W)|0;var ve=(u+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Y)|0))<<13)|0;u=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(x,z)|0,o=Math.imul(x,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Z)|0;var we=(u+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var Ae=(u+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;u=((o=o+Math.imul(f,ne)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0;var Ce=(u+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;u=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0;var Ee=(u+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(f,ce)|0))<<13)|0;u=((o=o+Math.imul(f,ue)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(N,z)|0,o=Math.imul(N,H),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(D,K)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,Z)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,ue)|0;var xe=(u+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;u=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,G)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,de)|0,o=o+Math.imul(g,fe)|0;var Se=(u+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ge)|0)+Math.imul(f,pe)|0))<<13)|0;u=((o=o+Math.imul(f,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,n=n+Math.imul(y,de)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Ie=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((o=o+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,W))+Math.imul(F,Q)|0,o=Math.imul(F,W),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,ue)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,ue)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var ke=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,Z))+Math.imul(F,Y)|0,o=Math.imul(F,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,n=n+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,fe)|0;var _e=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ge)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,ge)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,n=n+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Te=(u+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(j,ce)|0,i=(i=i+Math.imul(j,ue)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,ue)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(u+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ge)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,ue)|0,n=n+Math.imul(j,de)|0,i=(i=i+Math.imul(j,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((o=o+Math.imul(M,ge)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,ce),i=(i=Math.imul(L,ue))+Math.imul(F,ce)|0,o=Math.imul(F,ue),n=n+Math.imul(B,de)|0,i=(i=i+Math.imul(B,fe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,fe)|0;var je=(u+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,ge)|0)+Math.imul(D,pe)|0))<<13)|0;u=((o=o+Math.imul(D,ge)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,de),i=(i=Math.imul(L,fe))+Math.imul(F,de)|0,o=Math.imul(F,fe);var De=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(N,pe)|0))<<13)|0;u=((o=o+Math.imul(N,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(u+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,ge))+Math.imul(F,pe)|0))<<13)|0;return u=((o=Math.imul(F,ge))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=Ae,c[6]=Ce,c[7]=Ee,c[8]=xe,c[9]=Se,c[10]=Ie,c[11]=ke,c[12]=_e,c[13]=Te,c[14]=Me,c[15]=Pe,c[16]=je,c[17]=De,c[18]=Oe,0!==u&&(c[19]=u,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function b(e,t,r){return y(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(m=g),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?g(this,e,t):r<1024?y(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;!(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;!(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;!(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;!(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new I(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function A(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},A.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(e,t){e.iushrn(this.n,0,t)},A.prototype.imulK=function(e){return e.imul(this.k)},i(C,A),C.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new C;else if("p224"===e)t=new E;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return w[e]=t,t},I.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){n(!(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},I.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var g=h,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var d=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,I),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},232240:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},826248:(e,t,r)=>{"use strict";var n=r(633225),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=d;var o=Object.create(r(515622));o.inherits=r(256698);var a=r(130206),s=r(407314);o.inherits(d,a);for(var c=i(s.prototype),u=0;u{"use strict";e.exports=o;var n=r(181816),i=Object.create(r(515622));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(256698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},130206:(e,t,r)=>{"use strict";var n=r(633225);e.exports=b;var i,o=r(232240);b.ReadableState=y;r(137007).EventEmitter;var a=function(e,t){return e.listeners(t).length},s=r(805567),c=r(724116).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l=Object.create(r(515622));l.inherits=r(256698);var d=r(192668),f=void 0;f=d&&d.debuglog?d.debuglog("stream"):function(){};var h,p=r(520672),g=r(836278);l.inherits(b,s);var m=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var n=t instanceof(i=i||r(826248));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=r(506427).I),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||r(826248),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function v(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,E(e)}(e,a)):(i||(o=function(e,t){var r;n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):S(e,a)):w(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(x,e):x(e))}function x(e){f("emit readable"),e.emit("readable"),T(e)}function S(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(I,e,t))}function I(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(j,t,e))}function j(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function D(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):E(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&P(this),null;var n,i=t.needReadable;return f("need readable",i),(0===t.length||t.length-e0?M(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,t);var s=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?u:b;function c(t,n){f("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,f("cleanup"),e.removeListener("close",m),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",g),e.removeListener("unpipe",c),r.removeListener("end",u),r.removeListener("end",b),r.removeListener("data",p),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){f("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",c);var l=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",l);var d=!1;var h=!1;function p(t){f("ondata"),h=!1,!1!==e.write(t)||h||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==D(i.pipes,e))&&!d&&(f("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function g(t){f("onerror",t),b(),e.removeListener("error",g),0===a(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",y),b()}function y(){f("onfinish"),e.removeListener("close",m),b()}function b(){f("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",m),e.once("finish",y),e.emit("pipe",r),i.flowing||(f("pipe resume"),r.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o{"use strict";e.exports=a;var n=r(826248),i=Object.create(r(515622));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";var n=r(633225);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=m;var o,a=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;m.WritableState=g;var s=Object.create(r(515622));s.inherits=r(256698);var c={deprecate:r(594643)},u=r(805567),l=r(724116).Buffer,d=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f,h=r(836278);function p(){}function g(e,t){o=o||r(826248),e=e||{};var s=t instanceof o;this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:s&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(C,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),C(e,t))}(e,r,i,t,o);else{var s=w(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||v(e,r),i?a(b,e,r,s,o):b(e,r,s,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function m(e){if(o=o||r(826248),!(f.call(m,this)||this instanceof o))return new m(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function y(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function b(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),C(e,t)}function v(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,y(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,d=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,l,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function A(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),C(e,t)}))}function C(e,t){var r=w(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(A,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}s.inherits(m,u),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!f.call(this,e)||this===m&&(e&&e._writableState instanceof g)}})):f=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,l.isBuffer(i)||i instanceof d);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=p),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),n.nextTick(i,a),o=!1),o}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,C(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=h.destroy,m.prototype._undestroy=h.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}},520672:(e,t,r)=>{"use strict";var n=r(724116).Buffer,i=r(321638);function o(e,t,r){e.copy(t,r)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t=n.allocUnsafe(e>>>0),r=this.head,i=0;r;)o(r.data,t,i),i+=r.data.length,r=r.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},836278:(e,t,r)=>{"use strict";var n=r(633225);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},805567:(e,t,r)=>{e.exports=r(137007).EventEmitter},724116:(e,t,r)=>{var n=r(348287),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},46737:(e,t,r)=>{(t=e.exports=r(130206)).Stream=t,t.Readable=t,t.Writable=r(407314),t.Duplex=r(826248),t.Transform=r(181816),t.PassThrough=r(775242)},506427:(e,t,r)=>{"use strict";var n=r(388393).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},388393:(e,t,r)=>{var n=r(348287),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},805974:(e,t,r)=>{"use strict";var n=r(794148),i=r(644442),o=r(958411),a=r(171447),s=r(519681);for(var c in s)t[c]=s[c];t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7;function u(e){if("number"!=typeof e||et.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}u.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,n(this.init_done,"close before init"),n(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?o.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||a.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},u.prototype.write=function(e,t,r,n,i,o,a){return this._write(!0,e,t,r,n,i,o,a)},u.prototype.writeSync=function(e,t,r,n,i,o,a){return this._write(!1,e,t,r,n,i,o,a)},u.prototype._write=function(e,r,i,o,a,s,c,u){if(n.equal(arguments.length,8),n(this.init_done,"write before init"),n(this.mode!==t.NONE,"already finalized"),n.equal(!1,this.write_in_progress,"write already in progress"),n.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,n.equal(!1,void 0===r,"must provide flush value"),this.write_in_progress=!0,r!==t.Z_NO_FLUSH&&r!==t.Z_PARTIAL_FLUSH&&r!==t.Z_SYNC_FLUSH&&r!==t.Z_FULL_FLUSH&&r!==t.Z_FINISH&&r!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==i&&(i=Buffer.alloc(0),a=0,o=0),this.strm.avail_in=a,this.strm.input=i,this.strm.next_in=o,this.strm.avail_out=u,this.strm.output=s,this.strm.next_out=c,this.flush=r,!e)return this._process(),this._checkError()?this._afterSync():void 0;var l=this;return process.nextTick((function(){l._process(),l._after()})),this},u.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},u.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=o.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},u.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},u.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},u.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},u.prototype.init=function(e,r,i,o,a){n(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),n(e>=8&&e<=15,"invalid windowBits"),n(r>=-1&&r<=9,"invalid compression level"),n(i>=1&&i<=9,"invalid memlevel"),n(o===t.Z_FILTERED||o===t.Z_HUFFMAN_ONLY||o===t.Z_RLE||o===t.Z_FIXED||o===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,e,i,o,a),this._setDictionary()},u.prototype.params=function(){throw new Error("deflateParams Not supported")},u.prototype.reset=function(){this._reset(),this._setDictionary()},u.prototype._init=function(e,r,n,s,c){switch(this.level=e,this.windowBits=r,this.memLevel=n,this.strategy=s,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new i,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=o.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=c,this.write_in_progress=!1,this.init_done=!0},u.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=o.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},u.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=o.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=a.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=u},178559:(e,t,r)=>{"use strict";var n=r(348287).Buffer,i=r(688310).Transform,o=r(805974),a=r(440537),s=r(794148).ok,c=r(348287).kMaxLength,u="Cannot create final Buffer. It would be larger than 0x"+c.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var l=Object.keys(o),d=0;d=c?a=new RangeError(u):t=n.concat(i,o),i=[],e.close(),r(a,t)}e.on("error",(function(t){e.removeListener("end",s),e.removeListener("readable",a),r(t)})),e.on("end",s),e.end(t),a()}function b(e,t){if("string"==typeof t&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function v(e){if(!(this instanceof v))return new v(e);k.call(this,e,o.DEFLATE)}function w(e){if(!(this instanceof w))return new w(e);k.call(this,e,o.INFLATE)}function A(e){if(!(this instanceof A))return new A(e);k.call(this,e,o.GZIP)}function C(e){if(!(this instanceof C))return new C(e);k.call(this,e,o.GUNZIP)}function E(e){if(!(this instanceof E))return new E(e);k.call(this,e,o.DEFLATERAW)}function x(e){if(!(this instanceof x))return new x(e);k.call(this,e,o.INFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);k.call(this,e,o.UNZIP)}function I(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function k(e,r){var a=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,i.call(this,e),e.flush&&!I(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!I(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSizet.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBitst.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.levelt.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevelt.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!n.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(r);var s=this;this._hadError=!1,this._handle.onerror=function(e,r){_(s),s._hadError=!0;var n=new Error(e);n.errno=r,n.code=t.codes[r],s.emit("error",n)};var c=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(c=e.level);var u=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(u=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,c,e.memLevel||t.Z_DEFAULT_MEMLEVEL,u,e.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=c,this._strategy=u,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function _(e,t){t&&process.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function T(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),t.Deflate=v,t.Inflate=w,t.Gzip=A,t.Gunzip=C,t.DeflateRaw=E,t.InflateRaw=x,t.Unzip=S,t.createDeflate=function(e){return new v(e)},t.createInflate=function(e){return new w(e)},t.createDeflateRaw=function(e){return new E(e)},t.createInflateRaw=function(e){return new x(e)},t.createGzip=function(e){return new A(e)},t.createGunzip=function(e){return new C(e)},t.createUnzip=function(e){return new S(e)},t.deflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new v(t),e,r)},t.deflateSync=function(e,t){return b(new v(t),e)},t.gzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new A(t),e,r)},t.gzipSync=function(e,t){return b(new A(t),e)},t.deflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new E(t),e,r)},t.deflateRawSync=function(e,t){return b(new E(t),e)},t.unzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new S(t),e,r)},t.unzipSync=function(e,t){return b(new S(t),e)},t.inflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new w(t),e,r)},t.inflateSync=function(e,t){return b(new w(t),e)},t.gunzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new C(t),e,r)},t.gunzipSync=function(e,t){return b(new C(t),e)},t.inflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new x(t),e,r)},t.inflateRawSync=function(e,t){return b(new x(t),e)},a.inherits(k,i),k.prototype.params=function(e,r,n){if(et.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(r!=t.Z_FILTERED&&r!=t.Z_HUFFMAN_ONLY&&r!=t.Z_RLE&&r!=t.Z_FIXED&&r!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==e||this._strategy!==r){var i=this;this.flush(o.Z_SYNC_FLUSH,(function(){s(i._handle,"zlib binding closed"),i._handle.params(e,r),i._hadError||(i._level=e,i._strategy=r,n&&n())}))}else process.nextTick(n)},k.prototype.reset=function(){return s(this._handle,"zlib binding closed"),this._handle.reset()},k.prototype._flush=function(e){this._transform(n.alloc(0),"",e)},k.prototype.flush=function(e,t){var r=this,i=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=o.Z_FULL_FLUSH),i.ended?t&&process.nextTick(t):i.ending?t&&this.once("end",t):i.needDrain?t&&this.once("drain",(function(){return r.flush(e,t)})):(this._flushFlag=e,this.write(n.alloc(0),"",t))},k.prototype.close=function(e){_(this,e),process.nextTick(T,this)},k.prototype._transform=function(e,t,r){var i,a=this._writableState,s=(a.ending||a.ended)&&(!e||a.length===e.length);return null===e||n.isBuffer(e)?this._handle?(s?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,i,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},k.prototype._processChunk=function(e,t,r){var i=e&&e.length,o=this._chunkSize-this._offset,a=0,l=this,d="function"==typeof r;if(!d){var f,h=[],p=0;this.on("error",(function(e){f=e})),s(this._handle,"zlib binding closed");do{var g=this._handle.writeSync(t,e,a,i,this._buffer,this._offset,o)}while(!this._hadError&&b(g[0],g[1]));if(this._hadError)throw f;if(p>=c)throw _(this),new RangeError(u);var m=n.concat(h,p);return _(this),m}s(this._handle,"zlib binding closed");var y=this._handle.write(t,e,a,i,this._buffer,this._offset,o);function b(c,u){if(this&&(this.buffer=null,this.callback=null),!l._hadError){var f=o-u;if(s(f>=0,"have should not go down"),f>0){var g=l._buffer.slice(l._offset,l._offset+f);l._offset+=f,d?l.push(g):(h.push(g),p+=g.length)}if((0===u||l._offset>=l._chunkSize)&&(o=l._chunkSize,l._offset=0,l._buffer=n.allocUnsafe(l._chunkSize)),0===u){if(a+=i-c,i=c,!d)return!0;var m=l._handle.write(t,e,a,i,l._buffer,l._offset,l._chunkSize);return m.callback=b,void(m.buffer=e)}if(!d)return!1;r()}}y.buffer=e,y.callback=b},a.inherits(v,k),a.inherits(w,k),a.inherits(A,k),a.inherits(C,k),a.inherits(E,k),a.inherits(x,k),a.inherits(S,k)},130295:e=>{e.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new Buffer(r),i=0;i{"use strict";const n=r(867526),i=r(300251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let n=s(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return h(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const i=function(e){if(c.isBuffer(e)){const t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Y(e.length)?s(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return l(e),s(e<0?0:0|p(e))}function f(e){const t=e.length<0?0:0|p(e.length),r=s(t);for(let n=0;n=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(i)return n?-1:q(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return _(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){let o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;os&&(r=s-c),o=r;o>=0;o--){let r=!0;for(let n=0;ni&&(n=i):n=i;const o=t.length;let a;for(n>o/2&&(n=o/2),a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function I(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(o=c));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(c=(15&t)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){const t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(o,a),u=this.slice(n,i),l=e.slice(t,r);for(let c=0;c>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":case"latin1":case"binary":return C(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const k=4096;function _(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;in)&&(r=n);let i="";for(let o=t;or)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function O(e,t,r,n,i){H(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function B(e,t,r,n,i){H(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function N(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function R(e,t,r,n,o){return t=+t,r>>>=0,o||N(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,o){return t=+t,r>>>=0,o||N(e,0,r,8),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=$((function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=$((function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||j(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){D(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){D(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=$((function(e,t=0){return O(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=$((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);D(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i>>=0,!n){const n=Math.pow(2,8*r-1);D(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=$((function(e,t=0){return O(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=$((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function H(e,t,r,n,i,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||K(t,e.length-(r+1))}(n,i,o)}function V(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function K(e,t,r){if(Math.floor(e)!==e)throw V(e,r),new F.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=z(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function q(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let a=0;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Q(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function $(e){return"undefined"==typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}},286866:e=>{e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},713144:(e,t,r)=>{"use strict";var n=r(566743),i=r(611002),o=r(610076),a=r(647119);e.exports=a||n.call(o,i)},312205:(e,t,r)=>{"use strict";var n=r(566743),i=r(611002),o=r(713144);e.exports=function(){return o(n,i,arguments)}},611002:e=>{"use strict";e.exports=Function.prototype.apply},610076:e=>{"use strict";e.exports=Function.prototype.call},373126:(e,t,r)=>{"use strict";var n=r(566743),i=r(769675),o=r(610076),a=r(713144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},647119:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},438075:(e,t,r)=>{"use strict";var n=r(570453),i=r(10487),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},10487:(e,t,r)=>{"use strict";var n=r(996897),i=r(730655),o=r(373126),a=r(312205);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},136556:(e,t,r)=>{"use strict";var n=r(570453),i=r(10487),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},556168:(e,t,r)=>{"use strict";var n=r(192861).Buffer,i=r(688310).Transform,o=r(183141).I;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(256698)(a,i);var s="undefined"!=typeof Uint8Array,c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&ArrayBuffer.isView&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);a.prototype.update=function(e,t,r){var i=function(e,t){if(e instanceof n)return e;if("string"==typeof e)return n.from(e,t);if(c&&ArrayBuffer.isView(e)){if(0===e.byteLength)return n.alloc(0);var r=n.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(s&&e instanceof Uint8Array)return n.from(e);if(n.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return n.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(e,t),o=this._update(i);return this.hashMode?this:(r&&(o=this._toString(o,r)),o)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){n=i}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can\u2019t switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},515622:(e,t,r)=>{function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(348287).Buffer.isBuffer},461324:(e,t,r)=>{var n=r(86729),i=r(439404);e.exports=function(e){return new a(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new Buffer(e);if(r&&n.length{"use strict";var n=r(256698),i=r(988276),o=r(566011),a=r(662802),s=r(556168);function c(e){s.call(this,"digest"),this._hash=e}n(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new c(a(e))}},820320:(e,t,r)=>{var n=r(988276);e.exports=function(e){return(new n).update(e).digest()}},383507:(e,t,r)=>{"use strict";var n=r(256698),i=r(941800),o=r(556168),a=r(192861).Buffer,s=r(820320),c=r(566011),u=r(662802),l=a.alloc(128);function d(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new c:u(e)).update(t).digest():t.length{"use strict";var n=r(256698),i=r(192861).Buffer,o=r(556168),a=i.alloc(128),s=64;function c(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length{"use strict";r(553209),r(747108),r(383507);var n=r(655715),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);var a=r(278396);a.pbkdf2,a.pbkdf2Sync;var s=r(330125);s.Cipher,s.createCipher,s.Cipheriv,s.createCipheriv,s.Decipher,s.createDecipher,s.Decipheriv,s.createDecipheriv,s.getCiphers,s.listCiphers;var c=r(515380);c.DiffieHellmanGroup,c.createDiffieHellmanGroup,c.getDiffieHellman,c.createDiffieHellman,c.DiffieHellman;var u=r(900020);u.createSign,u.Sign,u.createVerify,u.Verify,r(461324);var l=r(297168);l.publicEncrypt,l.privateEncrypt,l.publicDecrypt,l.privateDecrypt;var d=r(476983);d.randomFill,d.randomFillSync},740955:function(e,t,r){var n;e.exports=(n=r(319021),r(780754),r(484636),r(139506),r(57165),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],c=[],u=[],l=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var g=e[r],m=e[g],y=e[m],b=257*e[p]^16843008*p;a[r]=b<<24|b>>>8,s[r]=b<<16|b>>>16,c[r]=b<<8|b>>>24,u[r]=b,b=16843009*y^65537*m^257*g^16843008*r,l[p]=b<<24|b>>>8,d[p]=b<<16|b>>>16,f[p]=b<<8|b>>>24,h[p]=b,r?(r=g^e[e[e[y^g]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=i[(u=u<<8|u>>>24)>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=p[a/r|0]<<24),o[a]=o[a-r]^u);for(var s=this._invKeySchedule=[],c=0;c>>24]]^d[i[u>>>16&255]]^f[i[u>>>8&255]]^h[i[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,u,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,l,d,f,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p>>24]^i[l>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],m=n[l>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&u]^r[h++],y=n[d>>>24]^i[f>>>16&255]^o[u>>>8&255]^a[255&l]^r[h++],b=n[f>>>24]^i[u>>>16&255]^o[l>>>8&255]^a[255&d]^r[h++];u=g,l=m,d=y,f=b}g=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],m=(s[l>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&u])^r[h++],y=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[h++],b=(s[f>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&d])^r[h++],e[t]=g,e[t+1]=m,e[t+2]=y,e[t+3]=b},keySize:8});e.AES=t._createHelper(g)}(),n.AES)},943128:function(e,t,r){var n;e.exports=(n=r(319021),r(780754),r(484636),r(139506),r(57165),function(){var e=n,t=e.lib.BlockCipher,r=e.algo;const i=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[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 s={pbox:[],sbox:[]};function c(e,t){let r=t>>24&255,n=t>>16&255,i=t>>8&255,o=255&t,a=e.sbox[0][r]+e.sbox[1][n];return a^=e.sbox[2][i],a+=e.sbox[3][o],a}function u(e,t,r){let n,o=t,a=r;for(let s=0;s1;--s)o^=e.pbox[s],a=c(e,o)^a,n=o,o=a,a=n;return n=o,o=a,a=n,a^=e.pbox[1],o^=e.pbox[0],{left:o,right:a}}function d(e,t,r){for(let i=0;i<4;i++){e.sbox[i]=[];for(let t=0;t<256;t++)e.sbox[i][t]=a[i][t]}let n=0;for(let a=0;a=r&&(n=0);let s=0,c=0,l=0;for(let o=0;o>>2];e.sigBytes-=t}},g=(r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:h,padding:p}),reset:function(){var e;l.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(t):t).toString(c)},parse:function(e){var t,r=c.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),g.create({ciphertext:r,salt:t})}},y=r.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return g.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(t.kdf={}).OpenSSL={execute:function(e,t,r,n,i){if(n||(n=o.random(8)),i)a=u.create({keySize:t+r,hasher:i}).compute(e,n);else var a=u.create({keySize:t+r}).compute(e,n);var s=o.create(a.words.slice(t),4*r);return a.sigBytes=4*t,g.create({key:a,iv:s,salt:n})}},v=r.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:b}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=y.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,y.decrypt.call(this,e,t,i.key,n)}})}()))},319021:function(e,t,r){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(650477)}catch(m){}var i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),a={},s=a.lib={},c=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=s.WordArray=c.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},f=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},h=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*c,o);if(c){for(var d=0;d>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,c=0;c<4&&a+.75*c>>6*(3-c)&63));var u=i.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,i=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},139506:function(e,t,r){var n,i,o,a,s,c,u,l;e.exports=(l=r(319021),r(445471),r(651025),i=(n=l).lib,o=i.Base,a=i.WordArray,s=n.algo,c=s.MD5,u=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,i=n.hasher.create(),o=a.create(),s=o.words,c=n.keySize,u=n.iterations;s.lengthn&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),s=i.words,c=o.words,u=0;u>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)},484636:function(e,t,r){var n;e.exports=(n=r(319021),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],h=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],b=e[t+7],v=e[t+8],w=e[t+9],A=e[t+10],C=e[t+11],E=e[t+12],x=e[t+13],S=e[t+14],I=e[t+15],k=o[0],_=o[1],T=o[2],M=o[3];k=u(k,_,T,M,a,7,s[0]),M=u(M,k,_,T,c,12,s[1]),T=u(T,M,k,_,h,17,s[2]),_=u(_,T,M,k,p,22,s[3]),k=u(k,_,T,M,g,7,s[4]),M=u(M,k,_,T,m,12,s[5]),T=u(T,M,k,_,y,17,s[6]),_=u(_,T,M,k,b,22,s[7]),k=u(k,_,T,M,v,7,s[8]),M=u(M,k,_,T,w,12,s[9]),T=u(T,M,k,_,A,17,s[10]),_=u(_,T,M,k,C,22,s[11]),k=u(k,_,T,M,E,7,s[12]),M=u(M,k,_,T,x,12,s[13]),T=u(T,M,k,_,S,17,s[14]),k=l(k,_=u(_,T,M,k,I,22,s[15]),T,M,c,5,s[16]),M=l(M,k,_,T,y,9,s[17]),T=l(T,M,k,_,C,14,s[18]),_=l(_,T,M,k,a,20,s[19]),k=l(k,_,T,M,m,5,s[20]),M=l(M,k,_,T,A,9,s[21]),T=l(T,M,k,_,I,14,s[22]),_=l(_,T,M,k,g,20,s[23]),k=l(k,_,T,M,w,5,s[24]),M=l(M,k,_,T,S,9,s[25]),T=l(T,M,k,_,p,14,s[26]),_=l(_,T,M,k,v,20,s[27]),k=l(k,_,T,M,x,5,s[28]),M=l(M,k,_,T,h,9,s[29]),T=l(T,M,k,_,b,14,s[30]),k=d(k,_=l(_,T,M,k,E,20,s[31]),T,M,m,4,s[32]),M=d(M,k,_,T,v,11,s[33]),T=d(T,M,k,_,C,16,s[34]),_=d(_,T,M,k,S,23,s[35]),k=d(k,_,T,M,c,4,s[36]),M=d(M,k,_,T,g,11,s[37]),T=d(T,M,k,_,b,16,s[38]),_=d(_,T,M,k,A,23,s[39]),k=d(k,_,T,M,x,4,s[40]),M=d(M,k,_,T,a,11,s[41]),T=d(T,M,k,_,p,16,s[42]),_=d(_,T,M,k,y,23,s[43]),k=d(k,_,T,M,w,4,s[44]),M=d(M,k,_,T,E,11,s[45]),T=d(T,M,k,_,I,16,s[46]),k=f(k,_=d(_,T,M,k,h,23,s[47]),T,M,a,6,s[48]),M=f(M,k,_,T,b,10,s[49]),T=f(T,M,k,_,S,15,s[50]),_=f(_,T,M,k,m,21,s[51]),k=f(k,_,T,M,E,6,s[52]),M=f(M,k,_,T,p,10,s[53]),T=f(T,M,k,_,A,15,s[54]),_=f(_,T,M,k,c,21,s[55]),k=f(k,_,T,M,v,6,s[56]),M=f(M,k,_,T,I,10,s[57]),T=f(T,M,k,_,y,15,s[58]),_=f(_,T,M,k,x,21,s[59]),k=f(k,_,T,M,g,6,s[60]),M=f(M,k,_,T,C,10,s[61]),T=f(T,M,k,_,h,15,s[62]),_=f(_,T,M,k,w,21,s[63]),o[0]=o[0]+k|0,o[1]=o[1]+_|0,o[2]=o[2]+T|0,o[3]=o[3]+M|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<>>32-o)+t}function l(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)},182169:function(e,t,r){var n;e.exports=(n=r(319021),r(57165),n.mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;a>24))e+=1<<24;else{var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}return e}function r(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var i=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),r(a);var s=a.slice(0);n.encryptBlock(s,0);for(var c=0;c>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},354905:function(e,t,r){var n;e.exports=(n=r(319021),r(57165),n.pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},610482:function(e,t,r){var n;e.exports=(n=r(319021),r(57165),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},358124:function(e,t,r){var n;e.exports=(n=r(319021),r(57165),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},652155:function(e,t,r){var n;e.exports=(n=r(319021),r(57165),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},n.pad.ZeroPadding)},670019:function(e,t,r){var n,i,o,a,s,c,u,l,d;e.exports=(d=r(319021),r(463009),r(651025),i=(n=d).lib,o=i.Base,a=i.WordArray,s=n.algo,c=s.SHA256,u=s.HMAC,l=s.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=u.create(r.hasher,e),i=a.create(),o=a.create([1]),s=i.words,c=o.words,l=r.keySize,d=r.iterations;s.length>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&l,f=l<<16|65535&u;for(n[0]^=u,n[1]^=d,n[2]^=l,n[3]^=f,n[4]^=u,n[5]^=d,n[6]^=l,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),n.RabbitLegacy)},296298:function(e,t,r){var n;e.exports=(n=r(319021),r(780754),r(484636),r(139506),r(57165),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&l,f=l<<16|65535&u;for(i[0]^=u,i[1]^=d,i[2]^=l,i[3]^=f,i[4]^=u,i[5]^=d,i[6]^=l,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),n.Rabbit)},77193:function(e,t,r){var n;e.exports=(n=r(319021),r(780754),r(484636),r(139506),r(57165),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)},578056:function(e,t,r){var n;e.exports=(n=r(319021),function(){var e=n,t=e.lib,r=t.WordArray,i=t.Hasher,o=e.algo,a=r.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]),s=r.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]),c=r.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]),u=r.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]),l=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,v,w,A,C,E,x,S,I,k,_=this._hash.words,T=l.words,M=d.words,P=a.words,j=s.words,D=c.words,O=u.words;for(C=o=_[0],E=f=_[1],x=v=_[2],S=w=_[3],I=A=_[4],r=0;r<80;r+=1)k=o+e[t+P[r]]|0,k+=r<16?h(f,v,w)+T[0]:r<32?p(f,v,w)+T[1]:r<48?g(f,v,w)+T[2]:r<64?m(f,v,w)+T[3]:y(f,v,w)+T[4],k=(k=b(k|=0,D[r]))+A|0,o=A,A=w,w=b(v,10),v=f,f=k,k=C+e[t+j[r]]|0,k+=r<16?y(E,x,S)+M[0]:r<32?m(E,x,S)+M[1]:r<48?g(E,x,S)+M[2]:r<64?p(E,x,S)+M[3]:h(E,x,S)+M[4],k=(k=b(k|=0,O[r]))+I|0,C=I,I=S,S=b(x,10),x=E,E=k;k=_[1]+v+S|0,_[1]=_[2]+w+I|0,_[2]=_[3]+A+C|0,_[3]=_[4]+o+E|0,_[4]=_[0]+f+x|0,_[0]=k},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function m(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function b(e,t){return e<>>32-t}e.RIPEMD160=i._createHelper(f),e.HmacRIPEMD160=i._createHmacHelper(f)}(Math),n.RIPEMD160)},445471:function(e,t,r){var n,i,o,a,s,c,u,l;e.exports=(l=r(319021),i=(n=l).lib,o=i.WordArray,a=i.Hasher,s=n.algo,c=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=0;u<80;u++){if(u<16)c[u]=0|e[t+u];else{var l=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=l<<1|l>>>31}var d=(n<<5|n>>>27)+s+c[u];d+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=d}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=a._createHelper(u),n.HmacSHA1=a._createHmacHelper(u),l.SHA1)},236308:function(e,t,r){var n,i,o,a,s,c;e.exports=(c=r(319021),r(463009),i=(n=c).lib.WordArray,o=n.algo,a=o.SHA256,s=o.SHA224=a.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=a._createHelper(s),n.HmacSHA224=a._createHmacHelper(s),c.SHA224)},463009:function(e,t,r){var n;e.exports=(n=r(319021),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),c[i]=r(e.pow(n,1/3)),i++),n++}();var u=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],d=r[6],f=r[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var p=u[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=u[h-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[h]=g+u[h-7]+y+u[h-16]}var b=n&i^n&o^i&o,v=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&d)+c[h]+u[h];f=d,d=l,l=s,s=a+w|0,a=o,o=i,i=n,n=w+(v+b)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+l|0,r[6]=r[6]+d|0,r[7]=r[7]+f|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),n.SHA256)},645953:function(e,t,r){var n;e.exports=(n=r(319021),r(643240),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,c=[],u=[],l=[];!function(){for(var e=1,t=0,r=0;r<24;r++){c[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,d=0,f=0;f<7;f++){if(1&i){var h=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(_=r[i]).high^=a,_.low^=o}for(var s=0;s<24;s++){for(var f=0;f<5;f++){for(var h=0,p=0,g=0;g<5;g++)h^=(_=r[f+5*g]).high,p^=_.low;var m=d[f];m.high=h,m.low=p}for(f=0;f<5;f++){var y=d[(f+4)%5],b=d[(f+1)%5],v=b.high,w=b.low;for(h=y.high^(v<<1|w>>>31),p=y.low^(w<<1|v>>>31),g=0;g<5;g++)(_=r[f+5*g]).high^=h,_.low^=p}for(var A=1;A<25;A++){var C=(_=r[A]).high,E=_.low,x=c[A];x<32?(h=C<>>32-x,p=E<>>32-x):(h=E<>>64-x,p=C<>>64-x);var S=d[u[A]];S.high=h,S.low=p}var I=d[0],k=r[0];for(I.high=k.high,I.low=k.low,f=0;f<5;f++)for(g=0;g<5;g++){var _=r[A=f+5*g],T=d[A],M=d[(f+1)%5+5*g],P=d[(f+2)%5+5*g];_.high=T.high^~M.high&P.high,_.low=T.low^~M.low&P.low}_=r[0];var j=l[s];_.high^=j.high,_.low^=j.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,u=[],l=0;l>>24)|4278255360&(f<<24|f>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),u.push(h),u.push(f)}return new i.init(u,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(f),t.HmacSHA3=o._createHmacHelper(f)}(Math),n.SHA3)},89557:function(e,t,r){var n,i,o,a,s,c,u,l;e.exports=(l=r(319021),r(643240),r(281380),i=(n=l).x64,o=i.Word,a=i.WordArray,s=n.algo,c=s.SHA512,u=s.SHA384=c.extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=c._createHelper(u),n.HmacSHA384=c._createHmacHelper(u),l.SHA384)},281380:function(e,t,r){var n;e.exports=(n=r(319021),r(643240),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var l=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],d=r[6],f=r[7],h=n.high,p=n.low,g=i.high,m=i.low,y=o.high,b=o.low,v=a.high,w=a.low,A=s.high,C=s.low,E=l.high,x=l.low,S=d.high,I=d.low,k=f.high,_=f.low,T=h,M=p,P=g,j=m,D=y,O=b,B=v,N=w,R=A,L=C,F=E,U=x,z=S,H=I,V=k,K=_,G=0;G<80;G++){var q,Q,W=u[G];if(G<16)Q=W.high=0|e[t+2*G],q=W.low=0|e[t+2*G+1];else{var J=u[G-15],Y=J.high,Z=J.low,$=(Y>>>1|Z<<31)^(Y>>>8|Z<<24)^Y>>>7,X=(Z>>>1|Y<<31)^(Z>>>8|Y<<24)^(Z>>>7|Y<<25),ee=u[G-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=u[G-7],ae=oe.high,se=oe.low,ce=u[G-16],ue=ce.high,le=ce.low;Q=(Q=(Q=$+ae+((q=X+se)>>>0>>0?1:0))+ne+((q+=ie)>>>0>>0?1:0))+ue+((q+=le)>>>0>>0?1:0),W.high=Q,W.low=q}var de,fe=R&F^~R&z,he=L&U^~L&H,pe=T&P^T&D^P&D,ge=M&j^M&O^j&O,me=(T>>>28|M<<4)^(T<<30|M>>>2)^(T<<25|M>>>7),ye=(M>>>28|T<<4)^(M<<30|T>>>2)^(M<<25|T>>>7),be=(R>>>14|L<<18)^(R>>>18|L<<14)^(R<<23|L>>>9),ve=(L>>>14|R<<18)^(L>>>18|R<<14)^(L<<23|R>>>9),we=c[G],Ae=we.high,Ce=we.low,Ee=V+be+((de=K+ve)>>>0>>0?1:0),xe=ye+ge;V=z,K=H,z=F,H=U,F=R,U=L,R=B+(Ee=(Ee=(Ee=Ee+fe+((de+=he)>>>0>>0?1:0))+Ae+((de+=Ce)>>>0>>0?1:0))+Q+((de+=q)>>>0>>0?1:0))+((L=N+de|0)>>>0>>0?1:0)|0,B=D,N=O,D=P,O=j,P=T,j=M,T=Ee+(me+pe+(xe>>>0>>0?1:0))+((M=de+xe|0)>>>0>>0?1:0)|0}p=n.low=p+M,n.high=h+T+(p>>>0>>0?1:0),m=i.low=m+j,i.high=g+P+(m>>>0>>0?1:0),b=o.low=b+O,o.high=y+D+(b>>>0>>0?1:0),w=a.low=w+N,a.high=v+B+(w>>>0>>0?1:0),C=s.low=C+L,s.high=A+R+(C>>>0>>0?1:0),x=l.low=x+U,l.high=E+F+(x>>>0>>0?1:0),I=d.low=I+H,d.high=S+z+(I>>>0>>0?1:0),_=f.low=_+K,f.high=k+V+(_>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(l),e.HmacSHA512=t._createHmacHelper(l)}(),n.SHA512)},907628:function(e,t,r){var n;e.exports=(n=r(319021),r(780754),r(484636),r(139506),r(57165),function(){var e=n,t=e.lib,r=t.WordArray,i=t.BlockCipher,o=e.algo,a=[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],s=[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],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{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}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var u=i[o]=[],l=c[o];for(r=0;r<24;r++)u[r/6|0]|=t[(s[r]-1+l)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(s[r+24]-1+l)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var d=this._invSubKeys=[];for(r=0;r<16;r++)d[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),f.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,c=0;c<8;c++)s|=u[c][((a^i[c])&l[c])>>>0];this._lBlock=a,this._rBlock=o^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,f.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(r.create(t)),this._des2=d.createEncryptor(r.create(n)),this._des3=d.createEncryptor(r.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(p)}(),n.TripleDES)},643240:function(e,t,r){var n;e.exports=(n=r(319021),function(e){var t=n,r=t.lib,i=r.Base,o=r.WordArray,a=t.x64={};a.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:8*t.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(r){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(r){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(740736)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},740736:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;const n=s,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e,t){let r=0,n=0,i=-1,o=0;for(;r"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const n of r)"-"===n[0]?t.skips.push(n.slice(1)):t.names.push(n)},t.enabled=function(e){for(const r of t.skips)if(i(e,r))return!1;for(const r of t.names)if(i(e,r))return!0;return!1},t.humanize=r(206585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(r){return!1}}function s(e,t,r){var i={};return r.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=n(e[t],r)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&r.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(o,r)(e[o],t[o],r):i[o]=n(t[o],r))})),i}function c(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(e)?a?o.arrayMerge(e,r,o):s(e,r,o):n(r,o)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var u=c;e.exports=u},430041:(e,t,r)=>{"use strict";var n=r(730655),i=r(358068),o=r(769675),a=r(675795);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&d?d.configurable:!u,enumerable:null===s&&d?d.enumerable:!s,value:r,writable:null===c&&d?d.writable:!c});else{if(!l&&(s||c||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},238452:(e,t,r)=>{"use strict";var n=r(101189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(430041),c=r(530592)(),u=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;c?s(e,t,r,!0):s(e,t,r)},l=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s{"use strict";t.utils=r(787626),t.Cipher=r(282808),t.DES=r(682211),t.CBC=r(403389),t.EDE=r(165279)},403389:(e,t,r)=>{"use strict";var n=r(443349),i=r(256698),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t{"use strict";var n=r(443349);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t{"use strict";var n=r(443349),i=r(256698),o=r(787626),a=r(282808);function s(){this.tmp=new Array(2),this.keys=null}function c(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(c,a),e.exports=c,c.create=function(e){return new c(e)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var a=0;a>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},c.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},c.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var r=e.length-t,n=t;n>>0,a=f}o.rip(s,a,n,i)},c.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];o.expand(a,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var d=o.substitute(u,l),f=a;a=(s^o.permute(d))>>>0,s=f}o.rip(a,s,n,i)}},165279:(e,t,r)=>{"use strict";var n=r(443349),i=r(256698),o=r(282808),a=r(682211);function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function c(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(c,o),e.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},c.prototype._pad=a.prototype._pad,c.prototype._unpad=a.prototype._unpad},787626:(e,t)=>{"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,c=0;c>>r[c]&1;for(c=s;c>>r[c]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,i=0;i<4;i++){r<<=4,r|=n[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){r<<=4,r|=n[256+64*i+(t>>>18-6*i&63)]}return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r>>i[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length{var n=r(204934),i=r(323241),o=r(914910);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){var t=new Buffer(i[e].prime,"hex"),r=new Buffer(i[e].gen,"hex");return new o(t,r)},t.createDiffieHellman=t.DiffieHellman=function e(t,r,i,s){return Buffer.isBuffer(r)||void 0===a[r]?e(t,"binary",r,i):(r=r||"binary",s=s||"binary",i=i||new Buffer([2]),Buffer.isBuffer(i)||(i=new Buffer(i,s)),"number"==typeof t?new o(n(t,i),i,!0):(Buffer.isBuffer(t)||(t=new Buffer(t,r)),new o(t,i,!0)))}},914910:(e,t,r)=>{var n=r(439404),i=new(r(352244)),o=new n(24),a=new n(11),s=new n(10),c=new n(3),u=new n(7),l=r(204934),d=r(553209);function f(e,t){return t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t)),this._pub=new n(e),this}function h(e,t){return t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t)),this._priv=new n(e),this}e.exports=g;var p={};function g(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=f,this.setPrivateKey=h):this._primeCode=8}function m(e,t){var r=new Buffer(e.toArray());return t?r.toString(t):r}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var d,f=0;if(e.isEven()||!l.simpleSieve||!l.fermatTest(e)||!i.test(e))return f+=1,f+="02"===r||"05"===r?8:4,p[n]=f,f;switch(i.test(e.shrn(1))||(f+=2),r){case"02":e.mod(o).cmp(a)&&(f+=8);break;case"05":(d=e.mod(s)).cmp(c)&&d.cmp(u)&&(f+=8);break;default:f+=4}return p[n]=f,f}(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new n(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(e){var t=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new Buffer(t.toArray()),i=this.getPrime();if(r.length{var n=r(553209);e.exports=b,b.simpleSieve=m,b.fermatTest=y;var i=r(439404),o=new i(24),a=new(r(352244)),s=new i(1),c=new i(2),u=new i(5),l=(new i(16),new i(8),new i(10)),d=new i(3),f=(new i(7),new i(11)),h=new i(4),p=(new i(12),null);function g(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;ie;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(u))for(;r.mod(l).cmp(d);)r.iadd(h)}else for(;r.mod(o).cmp(f);)r.iadd(h);if(m(p=r.shrn(1))&&m(r)&&y(p)&&y(r)&&a.test(p)&&a.test(r))return r}}},345413:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},641141:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=r(345413),a=r(336957);i(r(336957),t);var s=/\s+/g,c={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,r){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=c),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:c,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?o.ElementType.Tag:void 0,n=new a.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,r=this.lastNode;if(r&&r.type===o.ElementType.Text)t?r.data=(r.data+e).replace(s," "):r.data+=e,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{t&&(e=e.replace(s," "));var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new a.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=u,t.default=u},336957:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(c);t.NodeWithChildren=h;var p=function(e){function t(t){return e.call(this,a.ElementType.Root,t)||this}return i(t,e),t}(h);t.Document=p;var g=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,i,n)||this;return o.name=t,o.attribs=r,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(h);function m(e){return(0,a.isTag)(e)}function y(e){return e.type===a.ElementType.CDATA}function b(e){return e.type===a.ElementType.Text}function v(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function A(e){return e.type===a.ElementType.Root}function C(e,t){var r;if(void 0===t&&(t=!1),b(e))r=new l(e.data);else if(v(e))r=new d(e.data);else if(m(e)){var n=t?E(e.children):[],i=new g(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(y(e)){n=t?E(e.children):[];var s=new h(a.ElementType.CDATA,n);n.forEach((function(e){return e.parent=s})),r=s}else if(A(e)){n=t?E(e.children):[];var c=new p(n);n.forEach((function(e){return e.parent=c})),e["x-mode"]&&(c["x-mode"]=e["x-mode"]),r=c}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var u=new f(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),r=u}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function E(e){for(var t=e.map((function(e){return C(e,!0)})),r=1;r{"use strict";var n=r(373126),i=r(675795),o=[].__proto__===Array.prototype&&i&&i(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;e.exports=o&&"function"==typeof o.get?n([o.get]):"function"==typeof s&&function(e){return s(null==e?e:a(e))}},86729:(e,t,r)=>{"use strict";var n=t;n.version=r(1636).rE,n.utils=r(247011),n.rand=r(415037),n.curve=r(500894),n.curves=r(260480),n.ec=r(257447),n.eddsa=r(108650)},536677:(e,t,r)=>{"use strict";var n=r(439404),i=r(247011),o=i.getNAF,a=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<=a;l--)c=(c<<1)+n[l];u.push(c)}for(var d=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=i;h>0;h--){for(a=0;a=0;u--){for(var l=0;u>=0&&0===a[u];u--)l++;if(u>=0&&l++,c=c.dblp(l),u<0)break;var d=a[u];s(0!==d),c="affine"===e.type?d>0?c.mixedAdd(i[d-1>>1]):c.mixedAdd(i[-d-1>>1].neg()):d>0?c.add(i[d-1>>1]):c.add(i[-d-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){var s,c,u,l=this._wnafT1,d=this._wnafT2,f=this._wnafT3,h=0;for(s=0;s=1;s-=2){var g=s-1,m=s;if(1===l[g]&&1===l[m]){var y=[t[g],null,null,t[m]];0===t[g].y.cmp(t[m].y)?(y[1]=t[g].add(t[m]),y[2]=t[g].toJ().mixedAdd(t[m].neg())):0===t[g].y.cmp(t[m].y.redNeg())?(y[1]=t[g].toJ().mixedAdd(t[m]),y[2]=t[g].add(t[m].neg())):(y[1]=t[g].toJ().mixedAdd(t[m]),y[2]=t[g].toJ().mixedAdd(t[m].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[g],r[m]);for(h=Math.max(v[0].length,h),f[g]=new Array(h),f[m]=new Array(h),c=0;c=0;s--){for(var x=0;s>=0;){var S=!0;for(c=0;c=0&&x++,C=C.dblp(x),s<0)break;for(c=0;c0?u=d[c][I-1>>1]:I<0&&(u=d[c][-I-1>>1].neg()),C="affine"===u.type?C.mixedAdd(u):C.add(u))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i{"use strict";var n=r(247011),i=r(439404),o=r(256698),a=r(536677),s=n.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function u(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(c,a),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(u,a.BasePoint),c.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new u(this,e,t,r,n)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),c=i.redMul(a),u=o.redMul(s),l=i.redMul(s),d=a.redMul(o);return this.curve.point(c,u,d,l)},u.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var u=(n=this.curve._mulA(s)).redAdd(c);this.zOne?(e=a.redSub(s).redSub(c).redMul(u.redSub(this.curve.two)),t=u.redMul(n.redSub(c)),r=u.redSqr().redSub(u).redSub(u)):(i=this.z.redSqr(),o=u.redSub(i).redISub(i),e=a.redSub(s).redISub(c).redMul(o),t=u.redMul(n.redSub(c)),r=u.redMul(o))}else n=s.redAdd(c),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(c)),r=n.redMul(o);return this.curve.point(e,t,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),u=o.redMul(a),l=s.redMul(c),d=o.redMul(c),f=a.redMul(s);return this.curve.point(u,l,f,d)},u.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),u=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=n.redMul(c).redMul(l);return this.curve.twisted?(t=n.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=c.redMul(u)):(t=n.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(c).redMul(u)),this.curve.point(d,t,r)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},u.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},500894:(e,t,r)=>{"use strict";var n=t;n.base=r(536677),n.short=r(339188),n.mont=r(630370),n.edwards=r(531298)},630370:(e,t,r)=>{"use strict";var n=r(439404),i=r(256698),o=r(536677),a=r(247011);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},339188:(e,t,r)=>{"use strict";var n=r(247011),i=r(439404),o=r(256698),a=r(536677),s=n.assert;function c(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(c,a),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,c,u,l,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,h=this.n.clone(),p=new i(1),g=new i(0),m=new i(0),y=new i(1),b=0;0!==f.cmpn(0);){var v=h.div(f);u=h.sub(v.mul(f)),l=m.sub(v.mul(p));var w=y.sub(v.mul(g));if(!n&&u.cmp(d)<0)t=c.neg(),r=p,n=u.neg(),o=l;else if(n&&2==++b)break;c=u,h=f,f=u,m=p,p=l,y=g,g=w}a=u.neg(),s=l;var A=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(A)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(u).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},u.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,a.BasePoint),c.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),d=n.redMul(u),f=c.redSqr().redIAdd(l).redISub(d).redISub(d),h=c.redMul(d.redISub(f)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),l=r.redMul(c),d=s.redSqr().redIAdd(u).redISub(l).redISub(l),f=s.redMul(l.redISub(d)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},l.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},260480:(e,t,r)=>{"use strict";var n,i=t,o=r(277952),a=r(500894),s=r(247011).assert;function c(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(574011)}catch(l){n=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},257447:(e,t,r)=>{"use strict";var n=r(439404),i=r(932723),o=r(247011),a=r(260480),s=r(415037),c=o.assert,u=r(561200),l=r(928545);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new u(this,e)},d.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t,r){var i;if(n.isBN(e)||"number"==typeof e)i=(e=new n(e,16)).byteLength();else if("object"==typeof e)i=e.length,e=new n(e,16);else{var o=e.toString();i=o.length+1>>>1,e=new n(o,16)}"number"!=typeof r&&(r=8*i);var a=r-this.n.bitLength();return a>0&&(e=e.ushrn(a)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,r,o){if("object"==typeof r&&(o=r,r=null),o||(o={}),"string"!=typeof e&&"number"!=typeof e&&!n.isBN(e)){c("object"==typeof e&&e&&"number"==typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),c(e.length>>>0===e.length);for(var a=0;a=0)){var m=this.g.mul(g);if(!m.isInfinity()){var y=m.getX(),b=y.umod(this.n);if(0!==b.cmpn(0)){var v=g.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var w=(m.getY().isOdd()?1:0)|(0!==y.cmp(b)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),w^=1),new l({r:b,s:v,recoveryParam:w})}}}}}},d.prototype.verify=function(e,t,r,n,i){i||(i={}),e=this._truncateToN(e,!1,i.msgBitLength),r=this.keyFromPublic(r,n);var o=(t=new l(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),u=c.mul(e).umod(this.n),d=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),d)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(u,r.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},d.prototype.recoverPubKey=function(e,t,r,i){c((3&r)===r,"The recovery param is more than two bits"),t=new l(t,i);var o=this.n,a=new n(e),s=t.r,u=t.s,d=1&r,f=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),g=u.mul(h).umod(o);return this.g.mulAdd(p,s,g)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},561200:(e,t,r)=>{"use strict";var n=r(439404),i=r(247011).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t,r){return this.ec.verify(e,t,this,void 0,r)},o.prototype.inspect=function(){return""}},928545:(e,t,r)=>{"use strict";var n=r(439404),i=r(247011),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;if(0===e[t.place])return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function u(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=c(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=c(e,r);if(!1===a)return!1;if(128&e[r.place])return!1;var u=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var l=c(e,r);if(!1===l)return!1;if(e.length!==l+r.place)return!1;if(128&e[r.place])return!1;var d=e.slice(r.place,l+r.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(u),this.s=new n(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var o=n.concat(r),a=[48];return l(a,o.length),a=a.concat(o),i.encode(a,e)}},108650:(e,t,r)=>{"use strict";var n=r(277952),i=r(260480),o=r(247011),a=o.assert,s=o.parseBytes,c=r(446661),u=r(90220);function l(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=l,l.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),c=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},l.prototype.verify=function(e,t,r){if(e=s(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";var n=r(247011),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},90220:(e,t,r)=>{"use strict";var n=r(439404),i=r(247011),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(o(t.length===2*e.encodingLength,"Signature has invalid size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},574011:e=>{e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},247011:(e,t,r)=>{"use strict";var n=t,i=r(439404),o=r(443349),a=r(764367);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n,i=new Array(Math.max(e.bitLength(),r)+1);for(n=0;n(o>>1)-1?(o>>1)-c:c,a.isubn(s)):s=0,i[n]=s,a.iushrn(1)}return i},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,c=e.andln(3)+i&3,u=t.andln(3)+o&3;3===c&&(c=-1),3===u&&(u=-1),a=1&c?3!==(n=e.andln(7)+i&7)&&5!==n||2!==u?c:-c:0,r[0].push(a),s=1&u?3!==(n=t.andln(7)+o&7)&&5!==n||2!==c?u:-u:0,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},456617:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(r){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(r){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(559040)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},559040:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;const n=s,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{"use strict";function t(e,t){for(const r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!0,configurable:!0});return e}e.exports=function(e,r,n){if(!e||"string"==typeof e)throw new TypeError("Please pass an Error to err-code");n||(n={}),"object"==typeof r&&(n=r,r=""),r&&(n.code=r);try{return t(e,n)}catch(i){n.message=e.message,n.stack=e.stack;const r=function(){};r.prototype=Object.create(Object.getPrototypeOf(e));return t(new r,n)}}},730655:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(r){t=!1}e.exports=t},341237:e=>{"use strict";e.exports=EvalError},269383:e=>{"use strict";e.exports=Error},179290:e=>{"use strict";e.exports=RangeError},479538:e=>{"use strict";e.exports=ReferenceError},358068:e=>{"use strict";e.exports=SyntaxError},769675:e=>{"use strict";e.exports=TypeError},35345:e=>{"use strict";e.exports=URIError},679612:e=>{"use strict";e.exports=Object},32019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak512=t.keccak384=t.keccak256=t.keccak224=void 0;const n=r(427563),i=r(382672);t.keccak224=(0,i.wrapHash)(n.keccak_224),t.keccak256=(()=>{const e=(0,i.wrapHash)(n.keccak_256);return e.create=n.keccak_256.create,e})(),t.keccak384=(0,i.wrapHash)(n.keccak_384),t.keccak512=(0,i.wrapHash)(n.keccak_512)},440714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=a,t.createCurve=function(e,t){const r=t=>(0,o.weierstrass)({...e,...a(t)});return Object.freeze({...r(t),create:r})};const n=r(462031),i=r(795031),o=r(420489);function a(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}},859206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=function(e,t){const r=(e,t)=>{const r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,i=t;for(;r>o;)r&a&&(n=n.add(i)),i=i.double(),r>>=a;return n},precomputeWindow(e,t){const{windows:r,windowSize:i}=n(t),o=[];let a=e,s=a;for(let n=0;n>=h,n>c&&(n-=f,o+=a);const s=t,p=t+Math.abs(n)-1,g=e%2!=0,m=n<0;0===n?l=l.add(r(g,i[s])):u=u.add(r(m,i[p]))}return{p:u,f:l}},wNAFCached(e,t,r,n){const i=e._WINDOW_SIZE||1;let o=t.get(e);return o||(o=this.precomputeWindow(e,i),1!==i&&t.set(e,n(o))),this.wNAF(i,o,r)}}},t.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,i.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};const n=r(389015),i=r(119372),o=BigInt(0),a=BigInt(1)},181761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand_message_xmd=u,t.expand_message_xof=l,t.hash_to_field=d,t.isogenyMap=function(e,t){const r=t.map((e=>Array.from(e).reverse()));return(t,n)=>{const[i,o,a,s]=r.map((r=>r.reduce(((r,n)=>e.add(e.mul(r,t),n)))));return t=e.div(i,o),n=e.mul(n,e.div(a,s)),{x:t,y:n}}},t.createHasher=function(e,t,r){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(n,i){const o=d(n,2,{...r,DST:r.DST,...i}),a=e.fromAffine(t(o[0])),s=e.fromAffine(t(o[1])),c=a.add(s).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,i){const o=d(n,1,{...r,DST:r.encodeDST,...i}),a=e.fromAffine(t(o[0])).clearCofactor();return a.assertValidity(),a},mapToCurve(r){if(!Array.isArray(r))throw new Error("mapToCurve: expected array of bigints");for(const e of r)if("bigint"!=typeof e)throw new Error(`mapToCurve: expected array of bigints, got ${e} in array`);const n=e.fromAffine(t(r)).clearCofactor();return n.assertValidity(),n}}};const n=r(389015),i=r(119372),o=i.bytesToNumberBE;function a(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function s(e,t){const r=new Uint8Array(e.length);for(let n=0;n255&&(t=n((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:o,blockLen:u}=n,l=Math.ceil(r/o);if(l>255)throw new Error("Invalid xmd length");const d=(0,i.concatBytes)(t,a(t.length,1)),f=a(0,u),h=a(r,2),p=new Array(l),g=n((0,i.concatBytes)(f,e,h,a(0,1),d));p[0]=n((0,i.concatBytes)(g,a(1,1),d));for(let c=1;c<=l;c++){const e=[s(g,p[c-1]),a(c+1,1),d];p[c]=n((0,i.concatBytes)(...e))}return(0,i.concatBytes)(...p).slice(0,r)}function l(e,t,r,n,o){if((0,i.abytes)(e),(0,i.abytes)(t),c(r),t.length>255){const e=Math.ceil(2*n/8);t=o.create({dkLen:e}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:r}).update(e).update(a(r,2)).update(t).update(a(t.length,1)).digest()}function d(e,t,r){(0,i.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:a,k:s,m:d,hash:f,expand:h,DST:p}=r;(0,i.abytes)(e),c(t);const g="string"==typeof p?(0,i.utf8ToBytes)(p):p,m=a.toString(2).length,y=Math.ceil((m+s)/8),b=t*d*y;let v;if("xmd"===h)v=u(e,g,b,f);else if("xof"===h)v=l(e,g,b,s,f);else{if("_internal_pass"!==h)throw new Error('expand must be "xmd" or "xof"');v=e}const w=new Array(t);for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=d,t.pow=f,t.pow2=function(e,t,r){let n=e;for(;t-- >i;)n*=n,n%=r;return n},t.invert=h,t.tonelliShanks=p,t.FpSqrt=g,t.validateField=function(e){const t=m.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},t.FpPow=y,t.FpInvertBatch=b,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?h(r,e.ORDER):e.inv(r))},t.FpIsSquare=function(e){const t=(e.ORDER-o)/a;return r=>{const n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},t.nLength=v,t.Field=function(e,t,r=!1,a={}){if(e<=i)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:s,nByteLength:c}=v(e,t);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const u=g(e),l=Object.freeze({ORDER:e,BITS:s,BYTES:c,MASK:(0,n.bitMask)(s),ZERO:i,ONE:o,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return i<=t&&te===i,isOdd:e=>(e&o)===o,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,r)=>d(t+r,e),sub:(t,r)=>d(t-r,e),mul:(t,r)=>d(t*r,e),pow:(e,t)=>y(l,e,t),div:(t,r)=>d(t*h(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:a.sqrt||(e=>u(l,e)),invertBatch:e=>b(l,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,c):(0,n.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(l)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){const i=(e=(0,n.ensureBytes)("privateHash",e)).length,a=v(t).nByteLength+8;if(a<24||i1024)throw new Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${i}`);return d(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-o)+o},t.getFieldBytesLength=w,t.getMinHashLength=A,t.mapHashToField=function(e,t,r=!1){const i=e.length,a=w(t),s=A(t);if(i<16||i1024)throw new Error(`expected ${s}-1024 bytes of input, got ${i}`);const c=d(r?(0,n.bytesToNumberBE)(e):(0,n.bytesToNumberLE)(e),t-o)+o;return r?(0,n.numberToBytesLE)(c,a):(0,n.numberToBytesBE)(c,a)};const n=r(119372),i=BigInt(0),o=BigInt(1),a=BigInt(2),s=BigInt(3),c=BigInt(4),u=BigInt(5),l=BigInt(8);BigInt(9),BigInt(16);function d(e,t){const r=e%t;return r>=i?r:t+r}function f(e,t,r){if(r<=i||t 0");if(r===o)return i;let n=o;for(;t>i;)t&o&&(n=n*e%r),e=e*e%r,t>>=o;return n}function h(e,t){if(e===i||t<=i)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=d(e,t),n=t,a=i,s=o,c=o,u=i;for(;r!==i;){const e=n/r,t=n%r,i=a-c*e,o=s-u*e;n=r,r=t,a=c,s=u,c=i,u=o}if(n!==o)throw new Error("invert: does not exist");return d(a,t)}function p(e){const t=(e-o)/a;let r,n,s;for(r=e-o,n=0;r%a===i;r/=a,n++);for(s=a;s(d(e,t)&o)===o;const m=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function y(e,t,r){if(r 0");if(r===i)return e.ONE;if(r===o)return t;let n=e.ONE,a=t;for(;r>i;)r&o&&(n=e.mul(n,a)),a=e.sqr(a),r>>=o;return n}function b(e,t){const r=new Array(t.length),n=t.reduce(((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n))),e.ONE),i=e.inv(n);return t.reduceRight(((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n))),i),r}function v(e,t){const r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function w(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function A(e){const t=w(e);return t+Math.ceil(t/2)}},119372:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitMask=void 0,t.isBytes=o,t.abytes=a,t.bytesToHex=c,t.numberToHexUnpadded=u,t.hexToNumber=l,t.hexToBytes=h,t.bytesToNumberBE=function(e){return l(c(e))},t.bytesToNumberLE=function(e){return a(e),l(c(Uint8Array.from(e).reverse()))},t.numberToBytesBE=p,t.numberToBytesLE=function(e,t){return p(e,t).reverse()},t.numberToVarBytesBE=function(e){return h(u(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=h(t)}catch(a){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${a}`)}else{if(!o(t))throw new Error(`${e} must be hex string or Uint8Array`);n=Uint8Array.from(t)}const i=n.length;if("number"==typeof r&&i!==r)throw new Error(`${e} expected ${r} bytes, got ${i}`);return n},t.concatBytes=g,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;nr;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n},t.bitSet=function(e,t,i){return e|(i?n:r)<{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),c=(e=m())=>{i=s(y([0]),e),n=s(),0!==e.length&&(i=s(y([1]),e),n=s())},u=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e{let r;for(a(),c(e);!(r=t(u()));)c();return a(),r}},t.validateObject=function(e,t,r={}){const n=(t,r,n)=>{const i=b[r];if("function"!=typeof i)throw new Error(`Invalid validator "${r}", expected function`);const o=e[t];if(!(n&&void 0===o||i(o,e)))throw new Error(`Invalid param ${String(t)}=${o} (${typeof o}), expected ${r}`)};for(const[i,o]of Object.entries(t))n(i,o,!1);for(const[i,o]of Object.entries(r))n(i,o,!0);return e};const r=BigInt(0),n=BigInt(1),i=BigInt(2);function o(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function a(e){if(!o(e))throw new Error("Uint8Array expected")}const s=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function c(e){a(e);let t="";for(let r=0;r=d._0&&e<=d._9?e-d._0:e>=d._A&&e<=d._F?e-(d._A-10):e>=d._a&&e<=d._f?e-(d._a-10):void 0}function h(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let i=0,o=0;i(i<new Uint8Array(e),y=e=>Uint8Array.from(e);const b={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||o(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)}},420489:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DER=void 0,t.weierstrassPoints=p,t.weierstrass=function(e){const r=function(e){const t=(0,n.validateBasic)(e);return o.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:c}=r,d=s.BYTES+1,f=2*s.BYTES+1;function h(e){return i.mod(e,c)}function g(e){return i.invert(e,c)}const{ProjectivePoint:m,normPrivateKeyToScalar:y,weierstrassEquation:b,isWithinCurveOrder:v}=p({...r,toBytes(e,t,r){const n=t.toAffine(),i=s.toBytes(n.x),a=o.concatBytes;return r?a(Uint8Array.from([t.hasEvenY()?2:3]),i):a(Uint8Array.from([4]),i,s.toBytes(n.y))},fromBytes(e){const t=e.length,r=e[0],n=e.subarray(1);if(t!==d||2!==r&&3!==r){if(t===f&&4===r){return{x:s.fromBytes(n.subarray(0,s.BYTES)),y:s.fromBytes(n.subarray(s.BYTES,2*s.BYTES))}}throw new Error(`Point of length ${t} was invalid. Expected ${d} compressed bytes or ${f} uncompressed bytes`)}{const e=o.bytesToNumberBE(n);if(!(u<(i=e)&&io.bytesToHex(o.numberToBytesBE(e,r.nByteLength));function A(e){return e>c>>l}const C=(e,t,r)=>o.bytesToNumberBE(e.slice(t,r));class E{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){const t=r.nByteLength;return e=(0,a.ensureBytes)("compactSignature",e,2*t),new E(C(e,0,t),C(e,t,2*t))}static fromDER(e){const{r:r,s:n}=t.DER.toSig((0,a.ensureBytes)("DER",e));return new E(r,n)}assertValidity(){if(!v(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new E(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:n,recovery:i}=this,o=k((0,a.ensureBytes)("msgHash",e));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const c=2===i||3===i?t+r.n:t;if(c>=s.ORDER)throw new Error("recovery id 2 or 3 invalid");const u=1&i?"03":"02",l=m.fromHex(u+w(c)),d=g(c),f=h(-o*d),p=h(n*d),y=m.BASE.multiplyAndAddUnsafe(l,f,p);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return A(this.s)}normalizeS(){return this.hasHighS()?new E(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return o.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return o.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}const x={isValidPrivateKey(e){try{return y(e),!0}catch(t){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const e=i.getMinHashLength(r.n);return i.mapHashToField(r.randomBytes(e),r.n)},precompute:(e=8,t=m.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function S(e){const t=o.isBytes(e),r="string"==typeof e,n=(t||r)&&e.length;return t?n===d||n===f:r?n===2*d||n===2*f:e instanceof m}const I=r.bits2int||function(e){const t=o.bytesToNumberBE(e),n=8*e.length-r.nBitLength;return n>0?t>>BigInt(n):t},k=r.bits2int_modN||function(e){return h(I(e))},_=o.bitMask(r.nBitLength);function T(e){if("bigint"!=typeof e)throw new Error("bigint expected");if(!(u<=e&&e<_))throw new Error(`bigint expected < 2^${r.nBitLength}`);return o.numberToBytesBE(e,r.nByteLength)}function M(e,t,n=P){if(["recovered","canonical"].some((e=>e in n)))throw new Error("sign() legacy options not supported");const{hash:i,randomBytes:c}=r;let{lowS:d,prehash:f,extraEntropy:p}=n;null==d&&(d=!0),e=(0,a.ensureBytes)("msgHash",e),f&&(e=(0,a.ensureBytes)("prehashed msgHash",i(e)));const b=k(e),w=y(t),C=[T(w),T(b)];if(null!=p&&!1!==p){const e=!0===p?c(s.BYTES):p;C.push((0,a.ensureBytes)("extraEntropy",e))}const x=o.concatBytes(...C),S=b;return{seed:x,k2sig:function(e){const t=I(e);if(!v(t))return;const r=g(t),n=m.BASE.multiply(t).toAffine(),i=h(n.x);if(i===u)return;const o=h(r*h(S+i*w));if(o===u)return;let a=(n.x===i?0:2)|Number(n.y&l),s=o;return d&&A(o)&&(s=function(e){return A(e)?h(-e):e}(o),a^=1),new E(i,s,a)}}}const P={lowS:r.lowS,prehash:!1},j={lowS:r.lowS,prehash:!1};return m.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e,t=!0){return m.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(S(e))throw new Error("first arg must be private key");if(!S(t))throw new Error("second arg must be public key");return m.fromHex(t).multiply(y(e)).toRawBytes(r)},sign:function(e,t,n=P){const{seed:i,k2sig:a}=M(e,t,n),s=r;return o.createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)(i,a)},verify:function(e,n,i,s=j){const c=e;if(n=(0,a.ensureBytes)("msgHash",n),i=(0,a.ensureBytes)("publicKey",i),"strict"in s)throw new Error("options.strict was renamed to lowS");const{lowS:u,prehash:l}=s;let d,f;try{if("string"==typeof c||o.isBytes(c))try{d=E.fromDER(c)}catch(x){if(!(x instanceof t.DER.Err))throw x;d=E.fromCompact(c)}else{if("object"!=typeof c||"bigint"!=typeof c.r||"bigint"!=typeof c.s)throw new Error("PARSE");{const{r:e,s:t}=c;d=new E(e,t)}}f=m.fromHex(i)}catch(S){if("PARSE"===S.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(u&&d.hasHighS())return!1;l&&(n=r.hash(n));const{r:p,s:y}=d,b=k(n),v=g(y),w=h(b*v),A=h(p*v),C=m.BASE.multiplyAndAddUnsafe(f,w,A)?.toAffine();if(!C)return!1;return h(C.x)===p},ProjectivePoint:m,Signature:E,utils:x}},t.SWUFpSqrtRatio=g,t.mapToCurveSimpleSWU=function(e,t){if(i.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=g(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let i,o,a,s,c,u,l,d;i=e.sqr(n),i=e.mul(i,t.Z),o=e.sqr(i),o=e.add(o,i),a=e.add(o,e.ONE),a=e.mul(a,t.B),s=e.cmov(t.Z,e.neg(o),!e.eql(o,e.ZERO)),s=e.mul(s,t.A),o=e.sqr(a),u=e.sqr(s),c=e.mul(u,t.A),o=e.add(o,c),o=e.mul(o,a),u=e.mul(u,s),c=e.mul(u,t.B),o=e.add(o,c),l=e.mul(i,a);const{isValid:f,value:h}=r(o,u);d=e.mul(i,n),d=e.mul(d,h),l=e.cmov(l,a,f),d=e.cmov(d,h,f);const p=e.isOdd(n)===e.isOdd(d);return d=e.cmov(e.neg(d),d,p),l=e.div(l,s),{x:l,y:d}}};const n=r(859206),i=r(389015),o=r(119372),a=r(119372);const{bytesToNumberBE:s,hexToBytes:c}=o;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){const{Err:r}=t.DER;if(e.length<2||2!==e[0])throw new r("Invalid signature integer tag");const n=e[1],i=e.subarray(2,n+2);if(!n||i.length!==n)throw new r("Invalid signature integer: wrong length");if(128&i[0])throw new r("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:s(i),l:e.subarray(n+2)}},toSig(e){const{Err:r}=t.DER,n="string"==typeof e?c(e):e;o.abytes(n);let i=n.length;if(i<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==i-2)throw new r("Invalid signature: incorrect length");const{d:a,l:s}=t.DER._parseInt(n.subarray(2)),{d:u,l:l}=t.DER._parseInt(s);if(l.length)throw new r("Invalid signature: left bytes after parsing");return{r:a,s:u}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),i=t(r(e.r)),o=n.length/2,a=i.length/2,s=r(o),c=r(a);return`30${r(a+o+4)}02${c}${i}02${s}${n}`}};const u=BigInt(0),l=BigInt(1),d=BigInt(2),f=BigInt(3),h=BigInt(4);function p(e){const t=function(e){const t=(0,n.validateBasic)(e);o.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:i,a:a}=t;if(r){if(!i.eql(a,i.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,s=t.toBytes||((e,t,n)=>{const i=t.toAffine();return o.concatBytes(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),c=t.fromBytes||(e=>{const t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function d(e){const{a:n,b:i}=t,o=r.sqr(e),a=r.mul(o,e);return r.add(r.add(a,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),d(t.Gx)))throw new Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&ur.eql(e,r.ZERO);return i(t)&&i(n)?b.ZERO:new b(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(b.fromAffine)}static fromHex(e){const t=b.fromAffine(c((0,a.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return b.BASE.multiply(g(e))}_setWindowSize(e){this._WINDOW_SIZE=e,m.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw new Error("bad point: x or y not FE");const i=r.sqr(n),o=d(e);if(!r.eql(i,o))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){y(e);const{px:t,py:n,pz:i}=this,{px:o,py:a,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(o,i)),u=r.eql(r.mul(n,s),r.mul(a,i));return c&&u}negate(){return new b(this.px,r.neg(this.py),this.pz)}double(){const{a:e,b:n}=t,i=r.mul(n,f),{px:o,py:a,pz:s}=this;let c=r.ZERO,u=r.ZERO,l=r.ZERO,d=r.mul(o,o),h=r.mul(a,a),p=r.mul(s,s),g=r.mul(o,a);return g=r.add(g,g),l=r.mul(o,s),l=r.add(l,l),c=r.mul(e,l),u=r.mul(i,p),u=r.add(c,u),c=r.sub(h,u),u=r.add(h,u),u=r.mul(c,u),c=r.mul(g,c),l=r.mul(i,l),p=r.mul(e,p),g=r.sub(d,p),g=r.mul(e,g),g=r.add(g,l),l=r.add(d,d),d=r.add(l,d),d=r.add(d,p),d=r.mul(d,g),u=r.add(u,d),p=r.mul(a,s),p=r.add(p,p),d=r.mul(p,g),c=r.sub(c,d),l=r.mul(p,h),l=r.add(l,l),l=r.add(l,l),new b(c,u,l)}add(e){y(e);const{px:n,py:i,pz:o}=this,{px:a,py:s,pz:c}=e;let u=r.ZERO,l=r.ZERO,d=r.ZERO;const h=t.a,p=r.mul(t.b,f);let g=r.mul(n,a),m=r.mul(i,s),v=r.mul(o,c),w=r.add(n,i),A=r.add(a,s);w=r.mul(w,A),A=r.add(g,m),w=r.sub(w,A),A=r.add(n,o);let C=r.add(a,c);return A=r.mul(A,C),C=r.add(g,v),A=r.sub(A,C),C=r.add(i,o),u=r.add(s,c),C=r.mul(C,u),u=r.add(m,v),C=r.sub(C,u),d=r.mul(h,A),u=r.mul(p,v),d=r.add(u,d),u=r.sub(m,d),d=r.add(m,d),l=r.mul(u,d),m=r.add(g,g),m=r.add(m,g),v=r.mul(h,v),A=r.mul(p,A),m=r.add(m,v),v=r.sub(g,v),v=r.mul(h,v),A=r.add(A,v),g=r.mul(m,A),l=r.add(l,g),g=r.mul(C,A),u=r.mul(w,u),u=r.sub(u,g),g=r.mul(w,m),d=r.mul(C,d),d=r.add(d,g),new b(u,l,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(b.ZERO)}wNAF(e){return w.wNAFCached(this,m,e,(e=>{const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(b.fromAffine)}))}multiplyUnsafe(e){const n=b.ZERO;if(e===u)return n;if(p(e),e===l)return this;const{endo:i}=t;if(!i)return w.unsafeLadder(this,e);let{k1neg:o,k1:a,k2neg:s,k2:c}=i.splitScalar(e),d=n,f=n,h=this;for(;a>u||c>u;)a&l&&(d=d.add(h)),c&l&&(f=f.add(h)),h=h.double(),a>>=l,c>>=l;return o&&(d=d.negate()),s&&(f=f.negate()),f=new b(r.mul(f.px,i.beta),f.py,f.pz),d.add(f)}multiply(e){p(e);let n,i,o=e;const{endo:a}=t;if(a){const{k1neg:e,k1:t,k2neg:s,k2:c}=a.splitScalar(o);let{p:u,f:l}=this.wNAF(t),{p:d,f:f}=this.wNAF(c);u=w.constTimeNegate(e,u),d=w.constTimeNegate(s,d),d=new b(r.mul(d.px,a.beta),d.py,d.pz),n=u.add(d),i=l.add(f)}else{const{p:e,f:t}=this.wNAF(o);n=e,i=t}return b.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){const n=b.BASE,i=(e,t)=>t!==u&&t!==l&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?void 0:o}toAffine(e){const{px:t,py:n,pz:i}=this,o=this.is0();null==e&&(e=o?r.ONE:r.inv(i));const a=r.mul(t,e),s=r.mul(n,e),c=r.mul(i,e);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw new Error("invZ was invalid");return{x:a,y:s}}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===l)return!0;if(r)return r(b,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===l?this:r?r(b,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),s(b,this,e)}toHex(e=!0){return o.bytesToHex(this.toRawBytes(e))}}b.BASE=new b(t.Gx,t.Gy,r.ONE),b.ZERO=new b(r.ZERO,r.ONE,r.ZERO);const v=t.nBitLength,w=(0,n.wNAF)(b,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:g,weierstrassEquation:d,isWithinCurveOrder:h}}function g(e,t){const r=e.ORDER;let n=u;for(let f=r-l;f%d===u;f/=d)n+=l;const i=n,o=d<{let n=m,o=e.pow(r,p),a=e.sqr(o);a=e.mul(a,r);let s=e.mul(t,a);s=e.pow(s,c),s=e.mul(s,o),o=e.mul(s,r),a=e.mul(s,t);let u=e.mul(a,o);s=e.pow(u,g);let f=e.eql(s,e.ONE);o=e.mul(a,y),s=e.mul(u,n),a=e.cmov(o,a,f),u=e.cmov(s,u,f);for(let c=i;c>l;c--){let t=c-d;t=d<{let o=e.sqr(i);const a=e.mul(t,i);o=e.mul(o,a);let s=e.pow(o,r);s=e.mul(s,a);const c=e.mul(s,n),u=e.mul(e.sqr(s),i),l=e.eql(u,t);return{isValid:l,value:e.cmov(c,s,l)}}}return b}},467694:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;const n=r(143),i=r(795031),o=r(440714),a=r(181761),s=r(389015),c=r(119372),u=r(420489),l=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f=BigInt(1),h=BigInt(2),p=(e,t)=>(e+t/h)/t;function g(e){const t=l,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),a=BigInt(23),c=BigInt(44),u=BigInt(88),d=e*e*e%t,f=d*d*e%t,p=(0,s.pow2)(f,r,t)*f%t,g=(0,s.pow2)(p,r,t)*f%t,y=(0,s.pow2)(g,h,t)*d%t,b=(0,s.pow2)(y,i,t)*y%t,v=(0,s.pow2)(b,o,t)*b%t,w=(0,s.pow2)(v,c,t)*v%t,A=(0,s.pow2)(w,u,t)*w%t,C=(0,s.pow2)(A,c,t)*v%t,E=(0,s.pow2)(C,r,t)*f%t,x=(0,s.pow2)(E,a,t)*b%t,S=(0,s.pow2)(x,n,t)*d%t,I=(0,s.pow2)(S,h,t);if(!m.eql(m.sqr(I),e))throw new Error("Cannot find square root");return I}const m=(0,s.Field)(l,void 0,void 0,{sqrt:g});t.secp256k1=(0,o.createCurve)({a:BigInt(0),b:BigInt(7),Fp:m,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=d,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-f*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),c=p(o*e,t),u=p(-n*e,t);let l=(0,s.mod)(e-c*r-u*i,t),h=(0,s.mod)(-c*n-u*o,t);const g=l>a,m=h>a;if(g&&(l=t-l),m&&(h=t-h),l>a||h>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:g,k1:l,k2neg:m,k2:h}}}},n.sha256);const y=BigInt(0),b=e=>"bigint"==typeof e&&ye.charCodeAt(0))));r=(0,c.concatBytes)(t,t),v[e]=r}return(0,n.sha256)((0,c.concatBytes)(r,...t))}const A=e=>e.toRawBytes(!0).slice(1),C=e=>(0,c.numberToBytesBE)(e,32),E=e=>(0,s.mod)(e,l),x=e=>(0,s.mod)(e,d),S=t.secp256k1.ProjectivePoint;function I(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=S.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:x(-r),bytes:A(n)}}function k(e){if(!b(e))throw new Error("bad x: need 0 < x < p");const t=E(e*e);let r=g(E(t*e+BigInt(7)));r%h!==y&&(r=E(-r));const n=new S(e,r,f);return n.assertValidity(),n}function _(...e){return x((0,c.bytesToNumberBE)(w("BIP0340/challenge",...e)))}function T(e){return I(e).bytes}function M(e,t,r=(0,i.randomBytes)(32)){const n=(0,c.ensureBytes)("message",e),{bytes:o,scalar:a}=I(t),s=(0,c.ensureBytes)("auxRand",r,32),u=C(a^(0,c.bytesToNumberBE)(w("BIP0340/aux",s))),l=w("BIP0340/nonce",u,o,n),d=x((0,c.bytesToNumberBE)(l));if(d===y)throw new Error("sign failed: k is zero");const{bytes:f,scalar:h}=I(d),p=_(f,o,n),g=new Uint8Array(64);if(g.set(f,0),g.set(C(x(h+p*a)),32),!P(g,n,o))throw new Error("sign: Invalid signature produced");return g}function P(e,t,r){const n=(0,c.ensureBytes)("signature",e,64),i=(0,c.ensureBytes)("message",t),o=(0,c.ensureBytes)("publicKey",r,32);try{const e=k((0,c.bytesToNumberBE)(o)),t=(0,c.bytesToNumberBE)(n.subarray(0,32));if(!b(t))return!1;const r=(0,c.bytesToNumberBE)(n.subarray(32,64));if(!("bigint"==typeof(l=r)&&y(0,a.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))))(),D=(()=>(0,u.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))(),O=(()=>(0,a.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:r}=D(m.create(e[0]));return j(t,r)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}))();t.hashToCurve=O.hashToCurve,t.encodeToCurve=O.encodeToCurve},328021:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function n(e){if("boolean"!=typeof e)throw new Error(`boolean expected, not ${e}`)}function i(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function o(e,...t){if(!i(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function a(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function s(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function c(e,t){o(e);const r=t.outputLen;if(e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashMD=t.Maj=t.Chi=void 0;const n=r(328021),i=r(795031);t.Chi=(e,t,r)=>e&t^~e&r;t.Maj=(e,t,r)=>e&t^e&r^t&r;class o extends i.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){(0,n.exists)(this);const{view:t,buffer:r,blockLen:o}=this,a=(e=(0,i.toBytes)(e)).length;for(let n=0;no-s&&(this.process(r,0),s=0);for(let n=s;n>i&o),s=Number(r&o),c=n?4:0,u=n?0:4;e.setUint32(t+c,a,n),e.setUint32(t+u,s,n)}(r,o-8,BigInt(8*this.length),a),this.process(r,0);const c=(0,i.createView)(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=u/4,d=this.get();if(l>d.length)throw new Error("_sha2: outputLen bigger than state");for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;oBigInt(e>>>0)<>>0);t.toBig=a;const s=(e,t,r)=>e>>>r;t.shrSH=s;const c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;const u=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=u;const l=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=l;const d=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=d;const f=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=f;const h=(e,t)=>t;t.rotr32H=h;const p=(e,t)=>e;t.rotr32L=p;const g=(e,t,r)=>e<>>32-r;t.rotlSH=g;const m=(e,t,r)=>t<>>32-r;t.rotlSL=m;const y=(e,t,r)=>t<>>64-r;t.rotlBH=y;const b=(e,t,r)=>e<>>64-r;function v(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:0|i}}t.rotlBL=b,t.add=v;const w=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=w;const A=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;t.add3H=A;const C=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=C;const E=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0;t.add4H=E;const x=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0);t.add5L=x;const S=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0;t.add5H=S;const I={fromBig:i,split:o,toBig:a,shrSH:s,shrSL:c,rotrSH:u,rotrSL:l,rotrBH:d,rotrBL:f,rotr32H:h,rotr32L:p,rotlSH:g,rotlSL:m,rotlBH:y,rotlBL:b,add:v,add3L:w,add3H:A,add4L:C,add4H:E,add5H:S,add5L:x};t.default=I},100457:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},462031:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const n=r(328021),i=r(795031);class o extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.hash)(e);const r=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,a=new Uint8Array(o);a.set(r.length>o?e.create().update(r).digest():r);for(let n=0;nnew o(e,t).update(r).digest(),t.hmac.create=(e,t)=>new o(e,t)},143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const n=r(554050),i=r(795031),o=new Uint32Array([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]),a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint32Array(64);class c extends n.HashMD{constructor(){super(64,32,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let n=0;n<16;n++,t+=4)s[n]=e.getUint32(t,!1);for(let n=16;n<64;n++){const e=s[n-15],t=s[n-2],r=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,o=(0,i.rotr)(t,17)^(0,i.rotr)(t,19)^t>>>10;s[n]=o+s[n-7]+r+s[n-16]|0}let{A:r,B:a,C:c,D:u,E:l,F:d,G:f,H:h}=this;for(let p=0;p<64;p++){const e=h+((0,i.rotr)(l,6)^(0,i.rotr)(l,11)^(0,i.rotr)(l,25))+(0,n.Chi)(l,d,f)+o[p]+s[p]|0,t=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+(0,n.Maj)(r,a,c)|0;h=f,f=d,d=l,l=u+e|0,u=c,c=a,a=r,r=e+t|0}r=r+this.A|0,a=a+this.B|0,c=c+this.C|0,u=u+this.D|0,l=l+this.E|0,d=d+this.F|0,f=f+this.G|0,h=h+this.H|0,this.set(r,a,c,u,l,d,f,h)}roundClean(){s.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)((()=>new c)),t.sha224=(0,i.wrapConstructor)((()=>new u))},427563:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const n=r(328021),i=r(996286),o=r(795031),a=[],s=[],c=[],u=BigInt(0),l=BigInt(1),d=BigInt(2),f=BigInt(7),h=BigInt(256),p=BigInt(113);for(let E=0,x=l,S=1,I=0;E<24;E++){[S,I]=[I,(2*S+3*I)%5],a.push(2*(5*I+S)),s.push((E+1)*(E+2)/2%64);let e=u;for(let t=0;t<7;t++)x=(x<>f)*p)%h,x&d&&(e^=l<<(l<r>32?(0,i.rotlBH)(e,t,r):(0,i.rotlSH)(e,t,r),b=(e,t,r)=>r>32?(0,i.rotlBL)(e,t,r):(0,i.rotlSL)(e,t,r);function v(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let n=0;n<10;n++)r[n]=e[n]^e[n+10]^e[n+20]^e[n+30]^e[n+40];for(let n=0;n<10;n+=2){const t=(n+8)%10,i=(n+2)%10,o=r[i],a=r[i+1],s=y(o,a,1)^r[t],c=b(o,a,1)^r[t+1];for(let r=0;r<50;r+=10)e[n+r]^=s,e[n+r+1]^=c}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=s[r],o=y(t,i,n),c=b(t,i,n),u=a[r];t=e[u],i=e[u+1],e[u]=o,e[u+1]=c}for(let n=0;n<50;n+=10){for(let t=0;t<10;t++)r[t]=e[n+t];for(let t=0;t<10;t++)e[n+t]^=~r[(t+2)%10]&r[(t+4)%10]}e[0]^=g[n],e[1]^=m[n]}r.fill(0)}t.keccakP=v;class w extends o.Hash{constructor(e,t,r,i=!1,a=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,o.u32)(this.state)}keccak(){o.isLE||(0,o.byteSwap32)(this.state32),v(this.state32,this.rounds),o.isLE||(0,o.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);const{blockLen:t,state:r}=this,i=(e=(0,o.toBytes)(e)).length;for(let n=0;n=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new w(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}t.Keccak=w;const A=(e,t,r)=>(0,o.wrapConstructor)((()=>new w(t,e,r)));t.sha3_224=A(6,144,28),t.sha3_256=A(6,136,32),t.sha3_384=A(6,104,48),t.sha3_512=A(6,72,64),t.keccak_224=A(1,144,28),t.keccak_256=A(1,136,32),t.keccak_384=A(1,104,48),t.keccak_512=A(1,72,64);const C=(e,t,r)=>(0,o.wrapXOFConstructorWithOpts)(((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0)));t.shake128=C(31,168,16),t.shake256=C(31,136,32)},795031:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.byteSwap32=t.byteSwapIfBE=t.byteSwap=t.isLE=t.rotl=t.rotr=t.createView=t.u32=t.u8=t.isBytes=void 0;const n=r(100457),i=r(328021);t.isBytes=function(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name};t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);t.rotr=(e,t)=>e<<32-t|e>>>t;t.rotl=(e,t)=>e<>>32-t>>>0,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];t.byteSwap=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255,t.byteSwapIfBE=t.isLE?e=>e:e=>(0,t.byteSwap)(e),t.byteSwap32=function(e){for(let r=0;rt.toString(16).padStart(2,"0")));t.bytesToHex=function(e){(0,i.bytes)(e);let t="";for(let r=0;r=a&&e<=s?e-a:e>=c&&e<=u?e-(c-10):e>=l&&e<=d?e-(l-10):void 0}t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let i=0,o=0;i{},t.asyncLoop=async function(e,r,n){let i=Date.now();for(let o=0;o=0&&ee().update(p(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(p(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(p(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},626513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1=void 0;var n=r(467694);Object.defineProperty(t,"secp256k1",{enumerable:!0,get:function(){return n.secp256k1}})},382672:function(e,t,r){"use strict";e=r.nmd(e);var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=t.utf8ToBytes=t.createView=t.concatBytes=t.toHex=t.bytesToHex=t.assertBytes=t.assertBool=void 0,t.bytesToUtf8=function(e){if(!(e instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof e);return(new TextDecoder).decode(e)},t.hexToBytes=function(e){const t=e.startsWith("0x")?e.substring(2):e;return(0,o.hexToBytes)(t)},t.equalsBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r(i.default.bytes(t),e(t))};const i=n(r(328021)),o=r(795031),a=i.default.bool;t.assertBool=a;const s=i.default.bytes;t.assertBytes=s;var c=r(795031);Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(t,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}}),t.crypto=(()=>{const t="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,r="function"==typeof e.require&&e.require.bind(e);return{node:r&&!t?r("crypto"):void 0,web:t}})()},802890:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseContract:()=>c.Uq,BigNumber:()=>u.gH,Contract:()=>c.NZ,ContractFactory:()=>c.PM,FixedNumber:()=>E,Signer:()=>I.l,VoidSigner:()=>I.J,Wallet:()=>ze,Wordlist:()=>z,constants:()=>n,errors:()=>d.O4,ethers:()=>s,getDefaultProvider:()=>Qt,logger:()=>Pr,providers:()=>i,utils:()=>a,version:()=>Mr,wordlists:()=>G});var n={};r.r(n),r.d(n,{AddressZero:()=>Ke.L,EtherSymbol:()=>Qe,HashZero:()=>qe.j,MaxInt256:()=>Ge.fw,MaxUint256:()=>Ge.Is,MinInt256:()=>Ge.LV,NegativeOne:()=>Ge.eR,One:()=>Ge.pD,Two:()=>Ge.d0,WeiPerEther:()=>Ge.lQ,Zero:()=>Ge.XK});var i={};r.r(i),r.d(i,{AlchemyProvider:()=>nt,AlchemyWebSocketProvider:()=>rt,AnkrProvider:()=>st,BaseProvider:()=>Je.DJ,CloudflareProvider:()=>lt,EtherscanProvider:()=>vt,FallbackProvider:()=>Bt,Formatter:()=>Ye.ZA,InfuraProvider:()=>Rt.p,InfuraWebSocketProvider:()=>Rt.g,IpcProvider:()=>Nt,JsonRpcBatchProvider:()=>Ft,JsonRpcProvider:()=>Lt.F,JsonRpcSigner:()=>Lt.c,NodesmithProvider:()=>zt,PocketProvider:()=>Kt,Provider:()=>_.Kq,Resolver:()=>Je.xR,StaticJsonRpcProvider:()=>Xe.B,UrlJsonRpcProvider:()=>Xe.M,Web3Provider:()=>Gt.j,WebSocketProvider:()=>Ze.f,getDefaultProvider:()=>Qt,getNetwork:()=>We.N,isCommunityResourcable:()=>Ye.fw,isCommunityResource:()=>Ye.ws,showThrottleMessage:()=>Ye.Zd});var o={};r.r(o),r.d(o,{decode:()=>$t.D,encode:()=>$t.l});var a={};r.r(a),r.d(a,{AbiCoder:()=>Wt.y,ConstructorFragment:()=>Jt.Pw,ErrorFragment:()=>Jt.bp,EventFragment:()=>Jt.Zp,FormatTypes:()=>Jt.$o,Fragment:()=>Jt.FK,FunctionFragment:()=>Jt.hc,HDNode:()=>re,Indexed:()=>Zt.wu,Interface:()=>Zt.KA,LogDescription:()=>Zt.FW,Logger:()=>d.Vy,ParamType:()=>Jt.aX,RLP:()=>ur,SigningKey:()=>N.hR,SupportedAlgorithm:()=>R.q,TransactionDescription:()=>Zt.dJ,TransactionTypes:()=>L.Eh,UnicodeNormalizationForm:()=>j.dz,Utf8ErrorFuncs:()=>j.d5,Utf8ErrorReason:()=>j._E,_TypedDataEncoder:()=>M.z,_fetchData:()=>dt.Em,_toEscapedUtf8String:()=>j.Wj,accessListify:()=>L.$2,arrayify:()=>l.k9,base58:()=>P.zn,base64:()=>o,checkProperties:()=>B.qN,checkResultErrors:()=>Yt.$v,commify:()=>Sr,computeAddress:()=>L.Kt,computeHmac:()=>D.L5,computePublicKey:()=>N.uN,concat:()=>l.xW,deepCopy:()=>B.A4,defaultAbiCoder:()=>Wt.D,defaultPath:()=>te,defineReadOnly:()=>B.yY,dnsEncode:()=>Xt.Wh,entropyToMnemonic:()=>oe,fetchJson:()=>dt.x6,formatBytes32String:()=>Ar,formatEther:()=>_r,formatUnits:()=>Ir,getAccountPath:()=>se,getAddress:()=>k.bv,getContractAddress:()=>k.RZ,getCreate2Address:()=>k.Nm,getIcapAddress:()=>k.OD,getJsonWalletAddress:()=>Ne,getStatic:()=>B.$J,hashMessage:()=>T.A,hexConcat:()=>l.qn,hexDataLength:()=>l.cm,hexDataSlice:()=>l.Ab,hexStripZeros:()=>l.hP,hexValue:()=>l.Fh,hexZeroPad:()=>l.bj,hexlify:()=>l.c$,id:()=>F.id,isAddress:()=>k.PW,isBytes:()=>l.aY,isBytesLike:()=>l.f,isHexString:()=>l.Lo,isValidMnemonic:()=>ae,isValidName:()=>Xt.uV,joinSignature:()=>l.FU,keccak256:()=>ce.S,mnemonicToEntropy:()=>ie,mnemonicToSeed:()=>ne,namehash:()=>Xt.kM,nameprep:()=>wr,parseBytes32String:()=>Cr,parseEther:()=>Tr,parseTransaction:()=>L.qg,parseUnits:()=>kr,poll:()=>dt.wt,randomBytes:()=>fe,recoverAddress:()=>L.x_,recoverPublicKey:()=>N.jL,resolveProperties:()=>B.k_,ripemd160:()=>D.HE,serializeTransaction:()=>L.lK,sha256:()=>D.sc,sha512:()=>D.Zf,shallowCopy:()=>B.Ic,shuffled:()=>wt,solidityKeccak256:()=>sr,solidityPack:()=>ar,soliditySha256:()=>cr,splitSignature:()=>l.Pc,stripZeros:()=>l.gr,toUtf8Bytes:()=>j.YW,toUtf8CodePoints:()=>j.dg,toUtf8String:()=>j._v,verifyMessage:()=>He,verifyTypedData:()=>Ve,zeroPad:()=>l.e8});var s={};r.r(s),r.d(s,{BaseContract:()=>c.Uq,BigNumber:()=>u.gH,Contract:()=>c.NZ,ContractFactory:()=>c.PM,FixedNumber:()=>E,Signer:()=>I.l,VoidSigner:()=>I.J,Wallet:()=>ze,Wordlist:()=>z,constants:()=>n,errors:()=>d.O4,getDefaultProvider:()=>Qt,logger:()=>Pr,providers:()=>i,utils:()=>a,version:()=>Mr,wordlists:()=>G});var c=r(86863),u=r(937457),l=r(308471),d=r(878366),f=r(356667);const h=new d.Vy(f.r),p={},g=u.gH.from(0),m=u.gH.from(-1);function y(e,t,r,n){const i={fault:t,operation:r};return void 0!==n&&(i.value=n),h.throwError(e,d.Vy.errors.NUMERIC_FAULT,i)}let b="0";for(;b.length<256;)b+=b;function v(e){if("number"!=typeof e)try{e=u.gH.from(e).toNumber()}catch(t){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+b.substring(0,e):h.throwArgumentError("invalid decimal size","decimals",e)}function w(e,t){null==t&&(t=0);const r=v(t),n=(e=u.gH.from(e)).lt(g);n&&(e=e.mul(m));let i=e.mod(r).toString();for(;i.length2&&h.throwArgumentError("too many decimal points","value",e);let o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>r.length-1&&y("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.lengthnull==e[t]?n:(typeof e[t]!==r&&h.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&h.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&h.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new C(p,t,r,n)}}class E{constructor(e,t,r,n){e!==p&&h.throwError("cannot use FixedNumber constructor; use FixedNumber.from",d.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&h.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=A(this._value,this.format.decimals),r=A(e._value,e.format.decimals);return E.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=A(this._value,this.format.decimals),r=A(e._value,e.format.decimals);return E.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=A(this._value,this.format.decimals),r=A(e._value,e.format.decimals);return E.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=A(this._value,this.format.decimals),r=A(e._value,e.format.decimals);return E.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=E.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(x.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=E.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(x.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&h.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const r=E.from("1"+b.substring(0,e),this.format),n=S.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&h.throwArgumentError("invalid byte width","width",e);const t=u.gH.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,l.bj)(t,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return E.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||(0,u.YR)(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),E.fromString(w(e,t),C.from(r))}static fromString(e,t){null==t&&(t="fixed");const r=C.from(t),n=A(e,r.decimals);!r.signed&&n.lt(g)&&y("unsigned value cannot be negative","overflow","value",e);let i=null;r.signed?i=n.toTwos(r.width).toHexString():(i=n.toHexString(),i=(0,l.bj)(i,r.width/8));const o=w(n,r.decimals);return new E(p,i,o,r)}static fromBytes(e,t){null==t&&(t="fixed");const r=C.from(t);if((0,l.k9)(e).length>r.width/8)throw new Error("overflow");let n=u.gH.from(e);r.signed&&(n=n.fromTwos(r.width));const i=n.toTwos((r.signed?0:1)+r.width).toHexString(),o=w(n,r.decimals);return new E(p,i,o,r)}static from(e,t){if("string"==typeof e)return E.fromString(e,t);if((0,l.aY)(e))return E.fromBytes(e,t);try{return E.fromValue(e,0,t)}catch(r){if(r.code!==d.Vy.errors.INVALID_ARGUMENT)throw r}return h.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const x=E.from(1),S=E.from("0.5");var I=r(279099),k=r(208402),_=r(485610),T=r(611390),M=r(872218),P=r(141730),j=r(771414),D=r(577010);function O(e,t,r,n,i){let o;e=(0,l.k9)(e),t=(0,l.k9)(t);let a=1;const s=new Uint8Array(n),c=new Uint8Array(t.length+4);let u,d;c.set(t);for(let f=1;f<=a;f++){c[t.length]=f>>24&255,c[t.length+1]=f>>16&255,c[t.length+2]=f>>8&255,c[t.length+3]=255&f;let h=(0,l.k9)((0,D.L5)(i,e,c));o||(o=h.length,d=new Uint8Array(o),a=Math.ceil(n/o),u=n-(a-1)*o),d.set(h);for(let t=1;t=256)throw new Error("Depth too large!");return $((0,l.xW)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,l.c$)(this.depth),this.parentFingerprint,(0,l.bj)((0,l.c$)(this.index),4),this.chainCode,null!=this.privateKey?(0,l.xW)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new re(ee,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let t=this.path;t&&(t+="/"+(e&~J));const r=new Uint8Array(37);if(e&J){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set((0,l.k9)(this.privateKey),1),t&&(t+="'")}else r.set((0,l.k9)(this.publicKey));for(let u=24;u>=0;u-=8)r[33+(u>>3)]=e>>24-u&255;const n=(0,l.k9)((0,D.L5)(R.q.sha512,this.chainCode,r)),i=n.slice(0,32),o=n.slice(32);let a=null,s=null;if(this.privateKey)a=Z(u.gH.from(i).add(this.privateKey).mod(Q));else{s=new N.hR((0,l.c$)(i))._addPoint(this.publicKey)}let c=t;const d=this.mnemonic;return d&&(c=Object.freeze({phrase:d.phrase,path:t,locale:d.locale||"en"})),new re(ee,a,s,this.fingerprint,Z(o),e,this.depth+1,c)}derivePath(e){const t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();let r=this;for(let n=0;n=J)throw new Error("invalid path index - "+e);r=r._derive(J+t)}else{if(!e.match(/^[0-9]+$/))throw new Error("invalid path component - "+e);{const t=parseInt(e);if(t>=J)throw new Error("invalid path index - "+e);r=r._derive(t)}}}return r}static _fromSeed(e,t){const r=(0,l.k9)(e);if(r.length<16||r.length>64)throw new Error("invalid seed");const n=(0,l.k9)((0,D.L5)(R.q.sha512,W,r));return new re(ee,Z(n.slice(0,32)),null,"0x00000000",Z(n.slice(32)),0,0,t)}static fromMnemonic(e,t,r){return e=oe(ie(e,r=X(r)),r),re._fromSeed(ne(e,t),{phrase:e,path:"m",locale:r.locale})}static fromSeed(e){return re._fromSeed(e,null)}static fromExtendedKey(e){const t=P.zn.decode(e);82===t.length&&$(t.slice(0,78))===e||q.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const r=t[4],n=(0,l.c$)(t.slice(5,9)),i=parseInt((0,l.c$)(t.slice(9,13)).substring(2),16),o=(0,l.c$)(t.slice(13,45)),a=t.slice(45,78);switch((0,l.c$)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new re(ee,null,(0,l.c$)(a),n,o,i,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==a[0])break;return new re(ee,(0,l.c$)(a.slice(1)),null,n,o,i,r,null)}return q.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function ne(e,t){t||(t="");const r=(0,j.YW)("mnemonic"+t,j.dz.NFKD);return O((0,j.YW)(e,j.dz.NFKD),r,2048,64,"sha512")}function ie(e,t){t=X(t),q.checkNormalize();const r=t.split(e);if(r.length%3!=0)throw new Error("invalid mnemonic");const n=(0,l.k9)(new Uint8Array(Math.ceil(11*r.length/8)));let i=0;for(let s=0;s>3]|=1<<7-i%8),i++}const o=32*r.length/3,a=Y(r.length/3);if(((0,l.k9)((0,D.sc)(n.slice(0,o/8)))[0]&a)!==(n[n.length-1]&a))throw new Error("invalid checksum");return(0,l.c$)(n.slice(0,o/8))}function oe(e,t){if(t=X(t),(e=(0,l.k9)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let a=0;a8?(r[r.length-1]<<=8,r[r.length-1]|=e[a],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[a]>>8-n,r.push(e[a]&(1<<8-n)-1),n+=3);const i=e.length/4,o=(0,l.k9)((0,D.sc)(e))[0]&Y(i);return r[r.length-1]<<=i,r[r.length-1]|=o>>8-i,t.join(r.map((e=>t.getWord(e))))}function ae(e,t){try{return ie(e,t),!0}catch(r){}return!1}function se(e){return("number"!=typeof e||e<0||e>=J||e%1)&&q.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}var ce=r(350234);const ue=new d.Vy("random/5.7.0");const le=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}();let de=le.crypto||le.msCrypto;function fe(e){(e<=0||e>1024||e%1||e!=e)&&ue.throwArgumentError("invalid length","length",e);const t=new Uint8Array(e);return de.getRandomValues(t),(0,l.k9)(t)}de&&de.getRandomValues||(ue.warn("WARNING: Missing strong random number source"),de={getRandomValues:function(e){return ue.throwError("no secure random source avaialble",d.Vy.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});var he=r(33836),pe=r.n(he),ge=r(409983),me=r.n(ge);function ye(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),(0,l.k9)(e)}function be(e,t){for(e=String(e);e.lengtht)),(0,B.yY)(this,"address",(0,L.Kt)(this.publicKey)),this.address!==(0,k.bv)(e.address)&&Ue.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){const t=e.mnemonic;return t&&t.phrase}(e)){const t=e.mnemonic;(0,B.yY)(this,"_mnemonic",(()=>({phrase:t.phrase,path:t.path||te,locale:t.locale||"en"})));const r=this.mnemonic,n=re.fromMnemonic(r.phrase,null,r.locale).derivePath(r.path);(0,L.Kt)(n.privateKey)!==this.address&&Ue.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,B.yY)(this,"_mnemonic",(()=>null))}else{if(N.hR.isSigningKey(e))"secp256k1"!==e.curve&&Ue.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,B.yY)(this,"_signingKey",(()=>e));else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);const t=new N.hR(e);(0,B.yY)(this,"_signingKey",(()=>t))}(0,B.yY)(this,"_mnemonic",(()=>null)),(0,B.yY)(this,"address",(0,L.Kt)(this.publicKey))}var r;t&&!_.Kq.isProvider(t)&&Ue.throwArgumentError("invalid provider","provider",t),(0,B.yY)(this,"provider",t||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new ze(this,e)}signTransaction(e){return(0,B.k_)(e).then((t=>{null!=t.from&&((0,k.bv)(t.from)!==this.address&&Ue.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);const r=this._signingKey().signDigest((0,ce.S)((0,L.lK)(t)));return(0,L.lK)(t,r)}))}signMessage(e){return Fe(this,void 0,void 0,(function*(){return(0,l.FU)(this._signingKey().signDigest((0,T.A)(e)))}))}_signTypedData(e,t,r){return Fe(this,void 0,void 0,(function*(){const n=yield M.z.resolveNames(e,t,r,(e=>(null==this.provider&&Ue.throwError("cannot resolve ENS names without a provider",d.Vy.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e))));return(0,l.FU)(this._signingKey().signDigest(M.z.hash(n.domain,t,n.value)))}))}encrypt(e,t,r){if("function"!=typeof t||r||(r=t,t={}),r&&"function"!=typeof r)throw new Error("invalid callback");return t||(t={}),function(e,t,r,n){try{if((0,k.bv)(e.address)!==(0,L.Kt)(e.privateKey))throw new Error("address/privateKey mismatch");if(Se(e)){const t=e.mnemonic;if(re.fromMnemonic(t.phrase,null,t.locale).derivePath(t.path||te).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(y){return Promise.reject(y)}"function"!=typeof r||n||(n=r,r={}),r||(r={});const i=(0,l.k9)(e.privateKey),o=ve(t);let a=null,s=null,c=null;if(Se(e)){const t=e.mnemonic;a=(0,l.k9)(ie(t.phrase,t.locale||"en")),s=t.path||te,c=t.locale||"en"}let u=r.client;u||(u="ethers.js");let d=null;d=r.salt?(0,l.k9)(r.salt):fe(32);let f=null;if(r.iv){if(f=(0,l.k9)(r.iv),16!==f.length)throw new Error("invalid iv")}else f=fe(16);let h=null;if(r.uuid){if(h=(0,l.k9)(r.uuid),16!==h.length)throw new Error("invalid uuid")}else h=fe(16);let p=1<<17,g=8,m=1;return r.scrypt&&(r.scrypt.N&&(p=r.scrypt.N),r.scrypt.r&&(g=r.scrypt.r),r.scrypt.p&&(m=r.scrypt.p)),me().scrypt(o,d,p,g,m,64,n).then((t=>{const r=(t=(0,l.k9)(t)).slice(0,16),n=t.slice(16,32),o=t.slice(32,64),y=new(pe().Counter)(f),b=new(pe().ModeOfOperation.ctr)(r,y),v=(0,l.k9)(b.encrypt(i)),w=(0,ce.S)((0,l.xW)([n,v])),A={address:e.address.substring(2).toLowerCase(),id:Ae(h),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,l.c$)(f).substring(2)},ciphertext:(0,l.c$)(v).substring(2),kdf:"scrypt",kdfparams:{salt:(0,l.c$)(d).substring(2),n:p,dklen:32,p:m,r:g},mac:w.substring(2)}};if(a){const e=fe(16),t=new(pe().Counter)(e),r=new(pe().ModeOfOperation.ctr)(o,t),n=(0,l.k9)(r.encrypt(a)),i=new Date,d=i.getUTCFullYear()+"-"+be(i.getUTCMonth()+1,2)+"-"+be(i.getUTCDate(),2)+"T"+be(i.getUTCHours(),2)+"-"+be(i.getUTCMinutes(),2)+"-"+be(i.getUTCSeconds(),2)+".0Z";A["x-ethers"]={client:u,gethFilename:"UTC--"+d+"--"+A.address,mnemonicCounter:(0,l.c$)(e).substring(2),mnemonicCiphertext:(0,l.c$)(n).substring(2),path:s,locale:c,version:"0.1"}}return JSON.stringify(A)}))}(this,e,t,r)}static createRandom(e){let t=fe(16);e||(e={}),e.extraEntropy&&(t=(0,l.k9)((0,l.Ab)((0,ce.S)((0,l.xW)([t,e.extraEntropy])),0,16)));const r=oe(t,e.locale);return ze.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,t,r){return Re(e,t,r).then((e=>new ze(e)))}static fromEncryptedJsonSync(e,t){return new ze(Le(e,t))}static fromMnemonic(e,t,r){return t||(t=te),new ze(re.fromMnemonic(e,null,r).derivePath(t))}}function He(e,t){return(0,L.x_)((0,T.A)(e),t)}function Ve(e,t,r,n){return(0,L.x_)(M.z.hash(e,t,r),n)}var Ke=r(148892),Ge=r(243514),qe=r(818930);const Qe="\u039e";var We=r(83699),Je=r(571998),Ye=r(941577),Ze=r(570953),$e=r(788004),Xe=r(817689);const et=new d.Vy($e.r),tt="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class rt extends Ze.f{constructor(e,t){const r=new nt(e,t);super(r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),r.network),(0,B.yY)(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===tt}}class nt extends Xe.M{static getWebSocketProvider(e,t){return new rt(e,t)}static getApiKey(e){return null==e?tt:(e&&"string"!=typeof e&&et.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,t){let r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.g.alchemy.com/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;default:et.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:(e,r)=>(t===tt&&(0,Ye.Zd)(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===tt}}const it=new d.Vy($e.r),ot="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function at(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return it.throwArgumentError("unsupported network","name",e)}class st extends Xe.M{isCommunityResource(){return this.apiKey===ot}static getApiKey(e){return null==e?ot:e}static getUrl(e,t){null==t&&(t=ot);const r={allowGzip:!0,url:"https://"+at(e.name)+t,throttleCallback:(e,r)=>(t.apiKey===ot&&(0,Ye.Zd)(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}var ct=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const ut=new d.Vy($e.r);class lt extends Xe.M{static getApiKey(e){return null!=e&&ut.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let r=null;if("homestead"===e.name)r="https://cloudflare-eth.com/";else ut.throwArgumentError("unsupported network","network",arguments[0]);return r}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return ct(this,void 0,void 0,(function*(){if("getBlockNumber"===e){return(yield r.perform.call(this,"getBlock",{blockTag:"latest"})).number}return r.perform.call(this,e,t)}))}}var dt=r(632808),ft=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const ht=new d.Vy($e.r);function pt(e){const t={};for(let r in e){if(null==e[r])continue;let n=e[r];"type"===r&&0===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?(0,l.Fh)((0,l.c$)(n)):"accessList"===r?"["+(0,L.$2)(n).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]":(0,l.c$)(n),t[r]=n)}return t}function gt(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!=typeof e.message||!e.message.match(/^OK/)){const t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function mt(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){const t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){const t=new Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){const t=new Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function yt(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function bt(e,t,r){if("call"===e&&t.code===d.Vy.errors.SERVER_ERROR){const e=t.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let r=e.data;if(r&&(r="0x"+r.replace(/^.*0x/i,"")),(0,l.Lo)(r))return r;ht.throwError("missing revert data in call exception",d.Vy.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let n=t.message;throw t.code===d.Vy.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?n=t.error.message:"string"==typeof t.body?n=t.body:"string"==typeof t.responseText&&(n=t.responseText)),n=(n||"").toLowerCase(),n.match(/insufficient funds/)&&ht.throwError("insufficient funds for intrinsic transaction cost",d.Vy.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&ht.throwError("nonce has already been used",d.Vy.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),n.match(/another transaction with same nonce/)&&ht.throwError("replacement fee too low",d.Vy.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&ht.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",d.Vy.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}class vt extends Je.DJ{constructor(e,t){super(e),(0,B.yY)(this,"baseUrl",this.getBaseUrl()),(0,B.yY)(this,"apiKey",t||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return ht.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){const r=Object.keys(t).reduce(((e,r)=>{const n=t[r];return null!=n&&(e+=`&${r}=${n}`),e}),""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${r}${n}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}fetch(e,t,r){return ft(this,void 0,void 0,(function*(){const n=r?this.getPostUrl():this.getUrl(e,t),i=r?this.getPostData(e,t):null,o="proxy"===e?mt:gt;this.emit("debug",{action:"request",request:n,provider:this});const a={url:n,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&(0,Ye.Zd)(),Promise.resolve(!0))};let s=null;i&&(a.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},s=Object.keys(i).map((e=>`${e}=${i[e]}`)).join("&"));const c=yield(0,dt.x6)(a,s,o||mt);return this.emit("debug",{action:"response",request:n,response:(0,B.A4)(c),provider:this}),c}))}detectNetwork(){return ft(this,void 0,void 0,(function*(){return this.network}))}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return ft(this,void 0,void 0,(function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((e=>bt("sendTransaction",e,t.signedTransaction)));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const e=pt(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(n){return bt("call",n,t.transaction)}}case"estimateGas":{const e=pt(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(n){return bt("estimateGas",n,t.transaction)}}case"getLogs":{const e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=yt(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=yt(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&ht.throwError("unsupported topic count",d.Vy.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){const r=t.filter.topics[0];"string"==typeof r&&66===r.length||ht.throwError("unsupported topic format",d.Vy.errors.UNSUPPORTED_OPERATION,{topic0:r}),e.topic0=r}const r=yield this.fetch("logs",e);let n={};for(let t=0;t{["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);const t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t}))}))}isCommunityResource(){return null==this.apiKey}}function wt(e){for(let t=(e=e.slice()).length-1;t>0;t--){const r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}var At=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const Ct=new d.Vy($e.r);function Et(){return(new Date).getTime()}function xt(e){let t=null;for(let r=0;rt?null:(n+i)/2}function It(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(u.gH.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((e=>It(e))));if("object"==typeof e){const t=Object.keys(e);return t.sort(),"{"+t.map((t=>{let r=e[t];return r="function"==typeof r?"[function]":It(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}let kt=1;function _t(e){let t=null,r=null,n=new Promise((n=>{t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return n},wait:e=>(n=n.then(e),n)}}const Tt=[d.Vy.errors.CALL_EXCEPTION,d.Vy.errors.INSUFFICIENT_FUNDS,d.Vy.errors.NONCE_EXPIRED,d.Vy.errors.REPLACEMENT_UNDERPRICED,d.Vy.errors.UNPREDICTABLE_GAS_LIMIT],Mt=["address","args","errorArgs","errorSignature","method","transaction"];function Pt(e,t){const r={weight:e.weight};return Object.defineProperty(r,"provider",{get:()=>e.provider}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function jt(e,t,r){let n=It;switch(t){case"getBlockNumber":return function(t){const r=t.map((e=>e.result));let n=St(t.map((e=>e.result)),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber};case"getGasPrice":return function(e){const t=e.map((e=>e.result));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return St(e.map((e=>e.result)))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=(0,B.Ic)(e)).confirmations=-1,It(e))};break;case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=(0,B.Ic)(e)).transactions=e.transactions.map((e=>((e=(0,B.Ic)(e)).confirmations=-1,e))),It(e))}:function(e){return null==e?null:It(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(r){const n={};r.forEach((t=>{const r=e(t.result);n[r]||(n[r]={count:0,result:t.result}),n[r].count++}));const i=Object.keys(n);for(let e=0;e=t)return r.result}}}(n,e.quorum)}function Dt(e,t){return At(this,void 0,void 0,(function*(){const r=e.provider;return null!=r.blockNumber&&r.blockNumber>=t||-1===t?r:(0,dt.wt)((()=>new Promise(((n,i)=>{setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)}),0)}))),{oncePoll:r})}))}function Ot(e,t,r,n){return At(this,void 0,void 0,(function*(){let i=e.provider;switch(r){case"getBlockNumber":case"getGasPrice":return i[r]();case"getEtherPrice":if(i.getEtherPrice)return i.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&(0,l.Lo)(n.blockTag)&&(i=yield Dt(e,t)),i[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&(0,l.Lo)(n.blockTag)&&(i=yield Dt(e,t)),i.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&(0,l.Lo)(n.blockTag)&&(i=yield Dt(e,t)),i[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":return n.blockTag&&(0,l.Lo)(n.blockTag)&&(i=yield Dt(e,t)),"call"===r&&n.blockTag?i[r](n.transaction,n.blockTag):i[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return i[r](n.transactionHash);case"getLogs":{let r=n.filter;return(r.fromBlock&&(0,l.Lo)(r.fromBlock)||r.toBlock&&(0,l.Lo)(r.toBlock))&&(i=yield Dt(e,t)),i.getLogs(r)}}return Ct.throwError("unknown method error",d.Vy.errors.UNKNOWN_ERROR,{method:r,params:n})}))}class Bt extends Je.DJ{constructor(e,t){0===e.length&&Ct.throwArgumentError("missing providers","providers",e);const r=e.map(((e,t)=>{if(_.Kq.isProvider(e)){const t=(0,Ye.ws)(e)?2e3:750,r=1;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:r})}const r=(0,B.Ic)(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=(0,Ye.ws)(e)?2e3:750),null==r.weight&&(r.weight=1);const n=r.weight;return(n%1||n>512||n<1)&&Ct.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${t}].weight`,n),Object.freeze(r)})),n=r.reduce(((e,t)=>e+t.weight),0);null==t?t=n/2:t>n&&Ct.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let i=xt(r.map((e=>e.provider.network)));null==i&&(i=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then(e,t)}),0)}))),super(i),(0,B.yY)(this,"providerConfigs",Object.freeze(r)),(0,B.yY)(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return At(this,void 0,void 0,(function*(){return xt(yield Promise.all(this.providerConfigs.map((e=>e.provider.getNetwork()))))}))}perform(e,t){return At(this,void 0,void 0,(function*(){if("sendTransaction"===e){const e=yield Promise.all(this.providerConfigs.map((e=>e.provider.sendTransaction(t.signedTransaction).then((e=>e.hash),(e=>e)))));for(let t=0;te.priority-t.priority));const i=this._highestBlockNumber;let o=0,a=!0;for(;;){const s=Et();let c=n.filter((e=>e.runner&&s-e.starte+t.weight),0);for(;c{r.staller=null})),r.runner=Ot(r,i,e,t).then((n=>{r.done=!0,r.result=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:a,backend:Pt(r,Et()),request:{method:e,params:(0,B.A4)(t)},provider:this})}),(n=>{r.done=!0,r.error=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:a,backend:Pt(r,Et()),request:{method:e,params:(0,B.A4)(t)},provider:this})})),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:a,backend:Pt(r,null),request:{method:e,params:(0,B.A4)(t)},provider:this}),c+=r.weight}const u=[];n.forEach((e=>{!e.done&&e.runner&&(u.push(e.runner),e.staller&&u.push(e.staller.getPromise()))})),u.length&&(yield Promise.race(u));const l=n.filter((e=>e.done&&null==e.error));if(l.length>=this.quorum){const e=r(l);if(void 0!==e)return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),e;a||(yield _t(100).getPromise()),a=!1}const d=n.reduce(((e,t)=>{if(!t.done||null==t.error)return e;const r=t.error.code;return Tt.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e}),{});if(Object.keys(d).forEach((e=>{const t=d[e];if(t.weight{e.staller&&e.staller.cancel(),e.cancelled=!0}));const r=t.error,i={};Mt.forEach((e=>{null!=r[e]&&(i[e]=r[e])})),Ct.throwError(r.reason||r.message,e,i)})),0===n.filter((e=>!e.done)).length)break}return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),Ct.throwError("failed to meet quorum",d.Vy.errors.SERVER_ERROR,{method:e,params:t,results:n.map((e=>Pt(e))),provider:this})}))}}const Nt=null;var Rt=r(304004),Lt=r(939549);class Ft extends Lt.F{send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const n={request:r,resolve:null,reject:null},i=new Promise(((e,t)=>{n.resolve=e,n.reject=t}));return this._pendingBatch.push(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const t=e.map((e=>e.request));return this.emit("debug",{action:"requestBatch",request:(0,B.A4)(t),provider:this}),(0,dt.x6)(this.connection,JSON.stringify(t)).then((r=>{this.emit("debug",{action:"response",request:t,response:r,provider:this}),e.forEach(((e,t)=>{const n=r[t];if(n.error){const t=new Error(n.error.message);t.code=n.error.code,t.data=n.error.data,e.reject(t)}else e.resolve(n.result)}))}),(r=>{this.emit("debug",{action:"response",error:r,request:t,provider:this}),e.forEach((e=>{e.reject(r)}))}))}),10)),i}}const Ut=new d.Vy($e.r);class zt extends Xe.M{static getApiKey(e){return e&&"string"!=typeof e&&Ut.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){Ut.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:Ut.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}const Ht=new d.Vy($e.r),Vt="62e1ad51b37b8e00394bda3b";class Kt extends Xe.M{static getApiKey(e){const t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=Vt:"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:Ht.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:Ht.throwError("unsupported network",d.Vy.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const n={headers:{},url:`https://${r}/v1/lb/${t.applicationId}`};return null!=t.applicationSecretKey&&(n.user="",n.password=t.applicationSecretKey),n}isCommunityResource(){return this.applicationId===Vt}}var Gt=r(724824);const qt=new d.Vy($e.r);function Qt(e,t){if(null==e&&(e="homestead"),"string"==typeof e){const t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new Lt.F(e);case"ws":case"wss":return new Ze.f(e);default:qt.throwArgumentError("unsupported URL scheme","network",e)}}const r=(0,We.N)(e);return r&&r._defaultProvider||qt.throwError("unsupported getDefaultProvider network",d.Vy.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:Bt,AlchemyProvider:nt,AnkrProvider:st,CloudflareProvider:lt,EtherscanProvider:vt,InfuraProvider:Rt.p,JsonRpcProvider:Lt.F,NodesmithProvider:zt,PocketProvider:Kt,Web3Provider:Gt.j,IpcProvider:Nt},t)}var Wt=r(257127),Jt=r(427814),Yt=r(355242),Zt=r(33020),$t=r(990531),Xt=r(238023);const er=new RegExp("^bytes([0-9]+)$"),tr=new RegExp("^(u?int)([0-9]*)$"),rr=new RegExp("^(.*)\\[([0-9]*)\\]$"),nr="0000000000000000000000000000000000000000000000000000000000000000",ir=new d.Vy("solidity/5.7.0");function or(e,t,r){switch(e){case"address":return r?(0,l.e8)(t,32):(0,l.k9)(t);case"string":return(0,j.YW)(t);case"bytes":return(0,l.k9)(t);case"bool":return t=t?"0x01":"0x00",r?(0,l.e8)(t,32):(0,l.k9)(t)}let n=e.match(tr);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!=0||0===i||i>256)&&ir.throwArgumentError("invalid number type","type",e),r&&(i=256),t=u.gH.from(t).toTwos(i),(0,l.e8)(t,i/8)}if(n=e.match(er),n){const i=parseInt(n[1]);return(String(i)!==n[1]||0===i||i>32)&&ir.throwArgumentError("invalid bytes type","type",e),(0,l.k9)(t).byteLength!==i&&ir.throwArgumentError(`invalid value for ${e}`,"value",t),r?(0,l.k9)((t+nr).substring(0,66)):t}if(n=e.match(rr),n&&Array.isArray(t)){const r=n[1];parseInt(n[2]||String(t.length))!=t.length&&ir.throwArgumentError(`invalid array length for ${e}`,"value",t);const i=[];return t.forEach((function(e){i.push(or(r,e,!0))})),(0,l.xW)(i)}return ir.throwArgumentError("invalid type","type",e)}function ar(e,t){e.length!=t.length&&ir.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);const r=[];return e.forEach((function(e,n){r.push(or(e,t[n]))})),(0,l.c$)((0,l.xW)(r))}function sr(e,t){return(0,ce.S)(ar(e,t))}function cr(e,t){return(0,D.sc)(ar(e,t))}var ur=r(127196);function lr(e,t){t||(t=function(e){return[parseInt(e,16)]});let r=0,n={};return e.split(",").forEach((e=>{let i=e.split(":");r+=parseInt(i[0],16),n[r]=t(i[1])})),n}function dr(e){let t=0;return e.split(",").map((e=>{let r=e.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");let n=t+parseInt(r[0],16);return t=parseInt(r[1],16),{l:n,h:t}}))}function fr(e,t){let r=0;for(let n=0;n=r&&e<=r+i.h&&(e-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-r))continue;return i}}return null}const hr=dr("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),pr="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((e=>parseInt(e,16))),gr=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],mr=lr("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),yr=lr("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),br=lr("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data");let t=[];for(let r=0;r{if(pr.indexOf(e)>=0)return[];if(e>=65024&&e<=65039)return[];let t=function(e){let t=fr(e,gr);if(t)return[e+t.s];let r=mr[e];if(r)return r;let n=yr[e];return n?[e+n[0]]:br[e]||null}(e);return t||[e]})),t=r.reduce(((e,t)=>(t.forEach((t=>{e.push(t)})),e)),[]),t=(0,j.dg)((0,j.H5)(t),j.dz.NFKC),t.forEach((e=>{if(fr(e,vr))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),t.forEach((e=>{if(fr(e,hr))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));let n=(0,j.H5)(t);if("-"===n.substring(0,1)||"--"===n.substring(2,4)||"-"===n.substring(n.length-1))throw new Error("invalid hyphen");return n}function Ar(e){const t=(0,j.YW)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,l.c$)((0,l.xW)([t,qe.j]).slice(0,32))}function Cr(e){const t=(0,l.k9)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;0===t[r-1];)r--;return(0,j._v)(t.slice(0,r))}const Er=new d.Vy("units/5.7.0"),xr=["wei","kwei","mwei","gwei","szabo","finney","ether"];function Sr(e){const t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&Er.throwArgumentError("invalid value","value",e);let r=t[0],n="";for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");let i="";for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);const o=[];for(;r.length;){if(r.length<=3){o.unshift(r);break}{const e=r.length-3;o.unshift(r.substring(e)),r=r.substring(0,e)}}return n+o.join(",")+i}function Ir(e,t){if("string"==typeof t){const e=xr.indexOf(t);-1!==e&&(t=3*e)}return w(e,null!=t?t:18)}function kr(e,t){if("string"!=typeof e&&Er.throwArgumentError("value must be a string","value",e),"string"==typeof t){const e=xr.indexOf(t);-1!==e&&(t=3*e)}return A(e,null!=t?t:18)}function _r(e){return Ir(e,18)}function Tr(e){return kr(e,18)}const Mr="ethers/5.7.2",Pr=new d.Vy(Mr);try{const e=window;null==e._ethers&&(e._ethers=s)}catch(jr){}},17886:(e,t,r)=>{"use strict";var n=r(617172),i=r(383081);function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+e.toString(16)}e.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return new Buffer(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return Buffer.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&g(e,"error",t,r)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var i,o,a,u;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var u=c.length,l=p(c,u);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},168078:(e,t,r)=>{var n=r(192861).Buffer,i=r(988276);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),c=n.alloc(o||0),u=n.alloc(0);a>0||o>0;){var l=new i;l.update(u),l.update(e),t&&l.update(t),u=l.digest();var d=0;if(a>0){var f=s.length-a;d=Math.min(a,u.length),u.copy(s,f,0,d),a-=d}if(d0){var h=c.length-o,p=Math.min(o,u.length-d);u.copy(c,h,d,d+p),o-=p}}return u.fill(0),{key:s,iv:c}}},182682:(e,t,r)=>{"use strict";var n=r(69600),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===i.call(e)?function(e,t,r){for(var n=0,i=e.length;n{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n{"use strict";var n=r(189353);e.exports=Function.prototype.bind||n},655064:e=>{e.exports=function(){if("undefined"==typeof globalThis)return null;var e={RTCPeerConnection:globalThis.RTCPeerConnection||globalThis.mozRTCPeerConnection||globalThis.webkitRTCPeerConnection,RTCSessionDescription:globalThis.RTCSessionDescription||globalThis.mozRTCSessionDescription||globalThis.webkitRTCSessionDescription,RTCIceCandidate:globalThis.RTCIceCandidate||globalThis.mozRTCIceCandidate||globalThis.webkitRTCIceCandidate};return e.RTCPeerConnection?e:null}},570453:(e,t,r)=>{"use strict";var n,i=r(679612),o=r(269383),a=r(341237),s=r(179290),c=r(479538),u=r(358068),l=r(769675),d=r(35345),f=r(271514),h=r(58968),p=r(506188),g=r(468002),m=r(975880),y=Function,b=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(t){}},v=r(675795),w=r(730655),A=function(){throw new l},C=v?function(){try{return A}catch(e){try{return v(arguments,"callee").get}catch(t){return A}}}():A,E=r(264039)(),x=r(107176),S="function"==typeof Reflect&&Reflect.getPrototypeOf||i.getPrototypeOf||x,I=r(611002),k=r(610076),_={},T="undefined"!=typeof Uint8Array&&S?S(Uint8Array):n,M={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":E&&S?S([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":_,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&S?S(S([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&S?S((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E&&S?S((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&S?S(""[Symbol.iterator]()):n,"%Symbol%":E?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":C,"%TypedArray%":T,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":I,"%Object.defineProperty%":w,"%Math.abs%":f,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":m};if(S)try{null.error}catch(K){var P=S(S(K));M["%Error.prototype%"]=P}var j=function e(t){var r;if("%AsyncFunction%"===t)r=b("async function () {}");else if("%GeneratorFunction%"===t)r=b("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=b("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&S&&(r=S(i.prototype))}return M[t]=r,r},D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=r(566743),B=r(9957),N=O.call(k,Array.prototype.concat),R=O.call(I,Array.prototype.splice),L=O.call(k,String.prototype.replace),F=O.call(k,String.prototype.slice),U=O.call(k,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,V=function(e,t){var r,n=e;if(B(D,n)&&(n="%"+(r=D[n])[0]+"%"),B(M,n)){var i=M[n];if(i===_&&(i=j(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===U(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=F(e,0,1),r=F(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return L(e,z,(function(e,t,r,i){n[n.length]=r?L(i,H,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=V("%"+n+"%",t),o=i.name,a=i.value,s=!1,c=i.alias;c&&(n=c[0],R(r,N([0,1],c)));for(var d=1,f=!0;d=r.length){var m=v(a,h);a=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[h]}else f=B(a,h),a=a[h];f&&!s&&(M[o]=a)}}return a}},906549:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},675795:(e,t,r)=>{"use strict";var n=r(906549);if(n)try{n([],"length")}catch(i){n=null}e.exports=n},530592:(e,t,r)=>{"use strict";var n=r(730655),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},264039:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(241333);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},241333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},849092:(e,t,r)=>{"use strict";var n=r(241333);e.exports=function(){return n()&&!!Symbol.toStringTag}},277952:(e,t,r)=>{var n=t;n.utils=r(867426),n.common=r(66166),n.sha=r(546229),n.ripemd=r(946784),n.hmac=r(228948),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},66166:(e,t,r)=>{"use strict";var n=r(867426),i=r(443349);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o{"use strict";var n=r(867426),i=r(443349);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t{"use strict";var n=r(867426),i=r(66166),o=n.rotl32,a=n.sum32,s=n.sum32_3,c=n.sum32_4,u=i.BlockHash;function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function f(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(l,u),t.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],u=this.h[3],l=this.h[4],b=r,v=n,w=i,A=u,C=l,E=0;E<80;E++){var x=a(o(c(r,d(E,n,i,u),e[p[E]+t],f(E)),m[E]),l);r=l,l=u,u=o(i,10),i=n,n=x,x=a(o(c(b,d(79-E,v,w,A),e[g[E]+t],h(E)),y[E]),C),b=C,C=A,A=o(w,10),w=v,v=x}x=s(this.h[1],i,A),this.h[1]=s(this.h[2],u,C),this.h[2]=s(this.h[3],l,b),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,w),this.h[0]=x},l.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[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],g=[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],m=[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],y=[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]},546229:(e,t,r)=>{"use strict";t.sha1=r(843917),t.sha224=r(747714),t.sha256=r(402287),t.sha384=r(821911),t.sha512=r(357766)},843917:(e,t,r)=>{"use strict";var n=r(867426),i=r(66166),o=r(566225),a=n.rotl32,s=n.sum32,c=n.sum32_5,u=o.ft_1,l=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(f,l),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(867426),i=r(402287);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},402287:(e,t,r)=>{"use strict";var n=r(867426),i=r(66166),o=r(566225),a=r(443349),s=n.sum32,c=n.sum32_4,u=n.sum32_5,l=o.ch32,d=o.maj32,f=o.s0_256,h=o.s1_256,p=o.g0_256,g=o.g1_256,m=i.BlockHash,y=[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 b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(b,m),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(867426),i=r(357766);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},357766:(e,t,r)=>{"use strict";var n=r(867426),i=r(66166),o=r(443349),a=n.rotr64_hi,s=n.rotr64_lo,c=n.shr64_hi,u=n.shr64_lo,l=n.sum64,d=n.sum64_hi,f=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,g=n.sum64_5_hi,m=n.sum64_5_lo,y=i.BlockHash,b=[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 v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function A(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function C(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function E(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function x(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function S(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function I(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function k(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function _(e,t){var r=a(e,t,1)^a(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function T(e,t){var r=s(e,t,1)^s(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=a(e,t,19)^a(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}function P(e,t){var r=s(e,t,19)^s(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,y),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(867426).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},867426:(e,t,r)=>{"use strict";var n=r(443349),i=r(256698);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var c=0,u=t;return c+=(u=u+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,c,u){var l=0,d=t;return l+=(d=d+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,c,u){return t+n+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},9957:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(566743);e.exports=o.call(n,i)},932723:(e,t,r)=>{"use strict";var n=r(277952),i=r(764367),o=r(443349);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length{e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},765496:(e,t,r)=>{var n="html",i="head",o="body",a=/<([a-zA-Z]+[0-9]?)/,s=//i,c=//i,u=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var d=new window.DOMParser;u=l=function(e,t){return t&&(e="<"+t+">"+e+""),d.parseFromString(e,"text/html")}}if(document.implementation){var f=r(267731).isIE,h=document.implementation.createHTMLDocument(f()?"html-dom-parser":void 0);u=function(e,t){return t?(h.documentElement.getElementsByTagName(t)[0].innerHTML=e,h):(h.documentElement.innerHTML=e,h)}}var p,g=document.createElement("template");g.content&&(p=function(e){return g.innerHTML=e,g.content.childNodes}),e.exports=function(e){var t,r,d,f,h=e.match(a);switch(h&&h[1]&&(t=h[1].toLowerCase()),t){case n:return r=l(e),s.test(e)||(d=r.getElementsByTagName(i)[0])&&d.parentNode.removeChild(d),c.test(e)||(d=r.getElementsByTagName(o)[0])&&d.parentNode.removeChild(d),r.getElementsByTagName(n);case i:case o:return f=u(e).getElementsByTagName(t),c.test(e)&&s.test(e)?f[0].parentNode.childNodes:f;default:return p?p(e):u(e,o).getElementsByTagName(o)[0].childNodes}}},92471:(e,t,r)=>{var n=r(765496),i=r(267731).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,r=e.match(o);return r&&r[1]&&(t=r[1]),i(n(e),null,t)}},267731:(e,t,r)=>{for(var n,i=r(15270),o=r(336957),a=i.CASE_SENSITIVE_TAG_NAMES,s=o.Comment,c=o.Element,u=o.ProcessingInstruction,l=o.Text,d={},f=0,h=a.length;f{var n=r(210308),i=r(20840),o=r(92471);o="function"==typeof o.default?o.default:o;var a={lowerCaseAttributeNames:!1};function s(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:n(o(e,(t=t||{}).htmlparser2||a),t)}s.domToReact=n,s.htmlToDOM=o,s.attributesToProps=i,s.Element=r(641141).Element,e.exports=s,e.exports.default=s},20840:(e,t,r)=>{var n=r(714210),i=r(674958);function o(e){return n.possibleStandardNames[e]}e.exports=function(e){var t,r,a,s,c,u={},l=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(a=e[t],n.isCustomAttribute(t))u[t]=a;else if(s=o(r=t.toLowerCase()))switch(c=n.getPropertyInfo(s),"checked"!==s&&"value"!==s||l||(s=o("default"+r)),u[s]=a,c&&c.type){case n.BOOLEAN:u[s]=!0;break;case n.OVERLOADED_BOOLEAN:""===a&&(u[s]=!0)}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(u[t]=a);return i.setStyleProp(e.style,u),u}},210308:(e,t,r)=>{var n=r(296540),i=r(20840),o=r(674958),a=o.setStyleProp,s=o.canTextBeChildOfNode;function c(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,r){for(var o,u,l,d,f,h=(r=r||{}).library||n,p=h.cloneElement,g=h.createElement,m=h.isValidElement,y=[],b="function"==typeof r.replace,v=r.trim,w=0,A=t.length;w1&&(l=p(l,{key:l.key||w})),y.push(l);else if("text"!==o.type){switch(d=o.attribs,c(o)?a(d.style,d):d&&(d=i(d)),f=null,o.type){case"script":case"style":o.children[0]&&(d.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?d.defaultValue=o.children[0].data:o.children&&o.children.length&&(f=e(o.children,r));break;default:continue}A>1&&(d.key=w),y.push(g(o.name,d,f))}else{if((u=!o.data.trim().length)&&o.parent&&!s(o.parent))continue;if(v&&u)continue;y.push(o.data)}return 1===y.length?y[0]:y}},674958:(e,t,r)=>{var n=r(296540),i=r(535229).default;var o={reactCompat:!0};var a=n.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var r,n,i="function"==typeof t,o={},a={};for(r in e)n=e[r],i&&(o=t(r,n))&&2===o.length?a[o[0]]=o[1]:"string"==typeof n&&(a[n]=r);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,o)}catch(r){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},411083:(e,t,r)=>{var n=r(811568),i=r(188835),o=e.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},300251:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<>1,l=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*g}},170124:e=>{"use strict";var t,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(a,{Immer:()=>J,applyPatches:()=>ae,castDraft:()=>ue,castImmutable:()=>le,createDraft:()=>se,current:()=>Z,enableMapSet:()=>ee,enablePatches:()=>X,finishDraft:()=>ce,freeze:()=>I,immerable:()=>c,isDraft:()=>f,isDraftable:()=>h,nothing:()=>s,original:()=>m,produce:()=>re,produceWithPatches:()=>ne,setAutoFreeze:()=>ie,setUseStrictShallowCopy:()=>oe}),e.exports=(t=a,((e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of i(t))!o.call(e,c)&&c!==a&&r(e,c,{get:()=>t[c],enumerable:!(s=n(t,c))||s.enumerable});return e})(r({},"__esModule",{value:!0}),t));var s=Symbol.for("immer-nothing"),c=Symbol.for("immer-draftable"),u=Symbol.for("immer-state");function l(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var d=Object.getPrototypeOf;function f(e){return!!e&&!!e[u]}function h(e){return!!e&&(g(e)||Array.isArray(e)||!!e[c]||!!e.constructor?.[c]||C(e)||E(e))}var p=Object.prototype.constructor.toString();function g(e){if(!e||"object"!=typeof e)return!1;let t=d(e);if(null===t)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===p}function m(e){return f(e)||l(15),e[u].t}function y(e,t){0===b(e)?Reflect.ownKeys(e).forEach((r=>{t(r,e[r],e)})):e.forEach(((r,n)=>t(n,r,e)))}function b(e){let t=e[u];return t?t.o:Array.isArray(e)?1:C(e)?2:E(e)?3:0}function v(e,t){return 2===b(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function w(e,t){return 2===b(e)?e.get(t):e[t]}function A(e,t,r){let n=b(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function C(e){return e instanceof Map}function E(e){return e instanceof Set}function x(e){return e.e||e.t}function S(e,t){if(C(e))return new Map(e);if(E(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=g(e);if(!0===t||"class_only"===t&&!r){let t=Object.getOwnPropertyDescriptors(e);delete t[u];let r=Reflect.ownKeys(t);for(let n=0;n1&&(e.set=e.add=e.clear=e.delete=k),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>I(t,!0)))),e}function k(){l(2)}function _(e){return Object.isFrozen(e)}var T,M={};function P(e){let t=M[e];return t||l(0),t}function j(e,t){M[e]||(M[e]=t)}function D(){return T}function O(e,t){t&&(P("Patches"),e.f=[],e.h=[],e.b=t)}function B(e){N(e),e.a.forEach(L),e.a=null}function N(e){e===T&&(T=e.i)}function R(e){return T=function(e,t){return{a:[],i:e,p:t,P:!0,d:0}}(T,e)}function L(e){let t=e[u];0===t.o||1===t.o?t.x():t.m=!0}function F(e,t){t.d=t.a.length;let r=t.a[0];return void 0!==e&&e!==r?(r[u].s&&(B(t),l(4)),h(e)&&(e=U(t,e),t.i||H(t,e)),t.f&&P("Patches").T(r[u].t,e,t.f,t.h)):e=U(t,r,[]),B(t),t.f&&t.b(t.f,t.h),e!==s?e:void 0}function U(e,t,r){if(_(t))return t;let n=t[u];if(!n)return y(t,((i,o)=>z(e,n,t,i,o,r))),t;if(n.n!==e)return t;if(!n.s)return H(e,n.t,!0),n.t;if(!n.c){n.c=!0,n.n.d--;let t=n.e,i=t,o=!1;3===n.o&&(i=new Set(t),t.clear(),o=!0),y(i,((i,a)=>z(e,n,t,i,a,r,o))),H(e,t,!1),r&&e.f&&P("Patches").g(n,r,e.f,e.h)}return n.e}function z(e,t,r,n,i,o,a){if(f(i)){let a=U(e,i,o&&t&&3!==t.o&&!v(t.r,n)?o.concat(n):void 0);if(A(r,n,a),!f(a))return;e.P=!1}else a&&r.add(i);if(h(i)&&!_(i)){if(!e.p.y&&e.d<1)return;U(e,i),(!t||!t.n.i)&&"symbol"!=typeof n&&Object.prototype.propertyIsEnumerable.call(r,n)&&H(e,i)}}function H(e,t,r=!1){!e.i&&e.p.y&&e.P&&I(t,r)}var V={get(e,t){if(t===u)return e;let r=x(e);if(!v(r,t))return function(e,t,r){let n=q(t,r);return n?"value"in n?n.value:n.get?.call(e.u):void 0}(e,r,t);let n=r[t];return e.c||!h(n)?n:n===G(e.t,t)?(W(e),e.e[t]=Y(n,e)):n},has:(e,t)=>t in x(e),ownKeys:e=>Reflect.ownKeys(x(e)),set(e,t,r){let n=q(x(e),t);if(n?.set)return n.set.call(e.u,r),!0;if(!e.s){let n=G(x(e),t),i=n?.[u];if(i&&i.t===r)return e.e[t]=r,e.r[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,n)&&(void 0!==r||v(e.t,t)))return!0;W(e),Q(e)}return e.e[t]===r&&(void 0!==r||t in e.e)||Number.isNaN(r)&&Number.isNaN(e.e[t])||(e.e[t]=r,e.r[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==G(e.t,t)||t in e.t?(e.r[t]=!1,W(e),Q(e)):delete e.r[t],e.e&&delete e.e[t],!0),getOwnPropertyDescriptor(e,t){let r=x(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:1!==e.o||"length"!==t,enumerable:n.enumerable,value:r[t]}},defineProperty(){l(11)},getPrototypeOf:e=>d(e.t),setPrototypeOf(){l(12)}},K={};function G(e,t){let r=e[u];return(r?x(r):e)[t]}function q(e,t){if(!(t in e))return;let r=d(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=d(r)}}function Q(e){e.s||(e.s=!0,e.i&&Q(e.i))}function W(e){e.e||(e.e=S(e.t,e.n.p.S))}y(V,((e,t)=>{K[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),K.deleteProperty=function(e,t){return K.set.call(this,e,t,void 0)},K.set=function(e,t,r){return V.set.call(this,e[0],t,r,e[0])};var J=class{constructor(e){this.y=!0,this.S=!1,this.produce=(e,t,r)=>{if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,(e=>t.call(this,e,...i)))}}let n;if("function"!=typeof t&&l(6),void 0!==r&&"function"!=typeof r&&l(7),h(e)){let i=R(this),o=Y(e,void 0),a=!0;try{n=t(o),a=!1}finally{a?B(i):N(i)}return O(i,r),F(n,i)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===s&&(n=void 0),this.y&&I(n,!0),r){let t=[],i=[];P("Patches").T(e,n,t,i),r(t,i)}return n}l(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,(t=>e(t,...r)));let r,n;return[this.produce(e,t,((e,t)=>{r=e,n=t})),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){h(e)||l(8),f(e)&&(e=Z(e));let t=R(this),r=Y(e,void 0);return r[u].l=!0,N(t),r}finishDraft(e,t){let r=e&&e[u];(!r||!r.l)&&l(9);let{n:n}=r;return O(n,t),F(void 0,n)}setAutoFreeze(e){this.y=e}setUseStrictShallowCopy(e){this.S=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=P("Patches").A;return f(e)?n(e,t):this.produce(e,(e=>n(e,t)))}};function Y(e,t){let r=C(e)?P("MapSet").I(e,t):E(e)?P("MapSet").D(e,t):function(e,t){let r=Array.isArray(e),n={o:r?1:0,n:t?t.n:D(),s:!1,c:!1,r:{},i:t,t:e,u:null,e:null,x:null,l:!1},i=n,o=V;r&&(i=[n],o=K);let{revoke:a,proxy:s}=Proxy.revocable(i,o);return n.u=s,n.x=a,s}(e,t);return(t?t.n:D()).a.push(r),r}function Z(e){return f(e)||l(10),$(e)}function $(e){if(!h(e)||_(e))return e;let t,r=e[u];if(r){if(!r.s)return r.t;r.c=!0,t=S(e,r.n.p.S)}else t=S(e,!0);return y(t,((e,r)=>{A(t,e,$(r))})),r&&(r.c=!1),t}function X(){let e="replace",t="add",r="remove";function n(e){if(!h(e))return e;if(Array.isArray(e))return e.map(n);if(C(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(E(e))return new Set(Array.from(e).map(n));let t=Object.create(d(e));for(let r in e)t[r]=n(e[r]);return v(e,c)&&(t[c]=e[c]),t}function i(e){return f(e)?n(e):e}j("Patches",{A:function(i,o){return o.forEach((o=>{let{path:a,op:s}=o,c=i;for(let e=0;e{let d=w(c,n),f=w(u,n),h=l?v(c,n)?e:t:r;if(d===f&&h===e)return;let p=o.concat(n);a.push(h===r?{op:h,path:p}:{op:h,path:p,value:f}),s.push(h===t?{op:r,path:p}:h===r?{op:t,path:p,value:i(d)}:{op:e,path:p,value:i(d)})}))}(n,o,a,s);case 1:return function(n,o,a,s){let{t:c,r:u}=n,l=n.e;l.length{if(!s.has(e)){let a=n.concat([c]);i.push({op:r,path:a,value:e}),o.unshift({op:t,path:a,value:e})}c++})),c=0,s.forEach((e=>{if(!a.has(e)){let a=n.concat([c]);i.push({op:t,path:a,value:e}),o.unshift({op:r,path:a,value:e})}c++}))}(n,o,a,s)}},T:function(t,r,n,i){n.push({op:e,path:[],value:r===s?void 0:r}),i.push({op:e,path:[],value:t})}})}function ee(){class e extends Map{constructor(e,t){super(),this[u]={o:2,i:t,n:t?t.n:D(),s:!1,c:!1,e:void 0,r:void 0,t:e,u:this,l:!1,m:!1}}get size(){return x(this[u]).size}has(e){return x(this[u]).has(e)}set(e,r){let n=this[u];return i(n),(!x(n).has(e)||x(n).get(e)!==r)&&(t(n),Q(n),n.r.set(e,!0),n.e.set(e,r),n.r.set(e,!0)),this}delete(e){if(!this.has(e))return!1;let r=this[u];return i(r),t(r),Q(r),r.t.has(e)?r.r.set(e,!1):r.r.delete(e),r.e.delete(e),!0}clear(){let e=this[u];i(e),x(e).size&&(t(e),Q(e),e.r=new Map,y(e.t,(t=>{e.r.set(t,!1)})),e.e.clear())}forEach(e,t){x(this[u]).forEach(((r,n,i)=>{e.call(t,this.get(n),n,this)}))}get(e){let r=this[u];i(r);let n=x(r).get(e);if(r.c||!h(n)||n!==r.t.get(e))return n;let o=Y(n,r);return t(r),r.e.set(e,o),o}keys(){return x(this[u]).keys()}values(){let e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{let t=e.next();return t.done?t:{done:!1,value:this.get(t.value)}}}}entries(){let e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{let t=e.next();if(t.done)return t;let r=this.get(t.value);return{done:!1,value:[t.value,r]}}}}[Symbol.iterator](){return this.entries()}}function t(e){e.e||(e.r=new Map,e.e=new Map(e.t))}class r extends Set{constructor(e,t){super(),this[u]={o:3,i:t,n:t?t.n:D(),s:!1,c:!1,e:void 0,t:e,u:this,a:new Map,m:!1,l:!1}}get size(){return x(this[u]).size}has(e){let t=this[u];return i(t),t.e?!!(t.e.has(e)||t.a.has(e)&&t.e.has(t.a.get(e))):t.t.has(e)}add(e){let t=this[u];return i(t),this.has(e)||(n(t),Q(t),t.e.add(e)),this}delete(e){if(!this.has(e))return!1;let t=this[u];return i(t),n(t),Q(t),t.e.delete(e)||!!t.a.has(e)&&t.e.delete(t.a.get(e))}clear(){let e=this[u];i(e),x(e).size&&(n(e),Q(e),e.e.clear())}values(){let e=this[u];return i(e),n(e),e.e.values()}entries(){let e=this[u];return i(e),n(e),e.e.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){let r=this.values(),n=r.next();for(;!n.done;)e.call(t,n.value,n.value,this),n=r.next()}}function n(e){e.e||(e.e=new Set,e.t.forEach((t=>{if(h(t)){let r=Y(t,e);e.a.set(t,r),e.e.add(r)}else e.e.add(t)})))}function i(e){e.m&&l(3,JSON.stringify(x(e)))}j("MapSet",{I:function(t,r){return new e(t,r)},D:function(e,t){return new r(e,t)}})}var te=new J,re=te.produce,ne=te.produceWithPatches.bind(te),ie=te.setAutoFreeze.bind(te),oe=te.setUseStrictShallowCopy.bind(te),ae=te.applyPatches.bind(te),se=te.createDraft.bind(te),ce=te.finishDraft.bind(te);function ue(e){return e}function le(e){return e}},389407:(e,t,r)=>{"use strict";e.exports=r(170124)},256698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},619788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,u="";function l(e){return e?e.replace(c,u):u}e.exports=function(e,c){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];c=c||{};var d=1,f=1;function h(e){var t=e.match(r);t&&(d+=t.length);var n=e.lastIndexOf("\n");f=~n?e.length-n:f+e.length}function p(){var e={line:d,column:f};return function(t){return t.position=new g(e),v(),t}}function g(e){this.start=e,this.end={line:d,column:f},this.source=c.source}g.prototype.content=e;var m=[];function y(t){var r=new Error(c.source+":"+d+":"+f+": "+t);if(r.reason=t,r.filename=c.source,r.line=d,r.column=f,r.source=e,!c.silent)throw r;m.push(r)}function b(t){var r=t.exec(e);if(r){var n=r[0];return h(n),e=e.slice(n.length),r}}function v(){b(n)}function w(e){var t;for(e=e||[];t=A();)!1!==t&&e.push(t);return e}function A(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;u!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,u===e.charAt(r-1))return y("End of comment missing");var n=e.slice(2,r-2);return f+=2,h(n),e=e.slice(r),f+=2,t({type:"comment",comment:n})}}function C(){var e=p(),r=b(i);if(r){if(A(),!b(o))return y("property missing ':'");var n=b(a),c=e({type:"declaration",property:l(r[0].replace(t,u)),value:n?l(n[0].replace(t,u)):u});return b(s),c}}return v(),function(){var e,t=[];for(w(t);e=C();)!1!==e&&(t.push(e),w(t));return t}()}},147244:(e,t,r)=>{"use strict";var n=r(849092)(),i=r(136556)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},69600:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,t)}catch(h){h!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(r){return!1}},s=function(e){try{return!a(e)&&(n.call(e),!0)}catch(t){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var f=document.all;c.call(f)===c.call(document.all)&&(d=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(r){}return!1})}e.exports=i?function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(n){if(n!==r)return!1}return!a(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(a(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},848184:(e,t,r)=>{"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(849092)(),c=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!c)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&c(t)}return c(e)===n}},617172:e=>{e.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},513003:e=>{"use strict";e.exports=function(e){return e!=e}},224133:(e,t,r)=>{"use strict";var n=r(10487),i=r(238452),o=r(513003),a=r(576642),s=r(392464),c=n(a(),Number);i(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},576642:(e,t,r)=>{"use strict";var n=r(513003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},392464:(e,t,r)=>{"use strict";var n=r(238452),i=r(576642);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},135680:(e,t,r)=>{"use strict";var n=r(625767);e.exports=function(e){return!!n(e)}},16075:e=>{var t;self,t=()=>{return e={7629:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(9474),a=r(1687),s=r(8652),c=r(8160),u=r(3292),l=r(6354),d=r(8901),f=r(9708),h=r(6914),p=r(2294),g=r(6133),m=r(1152),y=r(8863),b=r(2036),v={Base:class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new p.Ids,this._preferences=null,this._refs=new g.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return n("function"==typeof f.describe,"Manifest functionality disabled"),f.describe(this)}allow(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return n(void 0!==e,"Missing example"),c.assertOptions(t,["override"]),this._inner("examples",e,{single:!0,override:t.override})}external(e,t){return"object"==typeof e&&(n(!t,"Cannot combine options with description"),t=e.description,e=e.method),n("function"==typeof e,"Method must be a function"),n(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this._inner("externals",{method:e,description:t},{single:!0})}failover(e,t){return this._default("failover",e,t)}forbidden(){return this.presence("forbidden")}id(e){return e?(n("string"==typeof e,"id must be a non-empty string"),n(/^[^\.]+$/.test(e),"id cannot contain period character"),this.$_setFlag("id",e)):this.$_setFlag("id",void 0)}invalid(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"Invalid mode:",e),this.$_setFlag("only",e)}optional(){return this.presence("optional")}prefs(e){n(e,"Missing preferences"),n(void 0===e.context,"Cannot override context"),n(void 0===e.externals,"Cannot override externals"),n(void 0===e.warnings,"Cannot override warnings"),n(void 0===e.debug,"Cannot override debug"),c.checkPreferences(e);const t=this.clone();return t._preferences=c.preferences(t._preferences,e),t}presence(e){return n(["optional","required","forbidden"].includes(e),"Unknown presence mode",e),this.$_setFlag("presence",e)}raw(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",e?"raw":void 0)}result(e){return n(["raw","strip"].includes(e),"Unknown result mode",e),this.$_setFlag("result",e)}required(){return this.presence("required")}strict(e){const t=this.clone(),r=void 0!==e&&!e;return t._preferences=c.preferences(t._preferences,{convert:r}),t}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",e?"strip":void 0)}tag(){for(var e=arguments.length,t=new Array(e),r=0;re.keep||e.name!==r)),t._singleRules.delete(r));for(const r of e._rules)e._definition.rules[r.method].multi||t._singleRules.set(r.name,r),t._rules.push(r);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.concat(e._flags.empty);const r=Object.assign({},e._flags);delete r.empty,a(t._flags,r)}else if(e._flags.empty){t._flags.empty=e._flags.empty;const r=Object.assign({},e._flags);delete r.empty,a(t._flags,r)}else a(t._flags,e._flags);for(const r in e.$_terms){const n=e.$_terms[r];n?t.$_terms[r]?t.$_terms[r]=t.$_terms[r].concat(n):t.$_terms[r]=n.slice():t.$_terms[r]||(t.$_terms[r]=n)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return n(!e.base,"Cannot extend type with another base"),d.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split("."),this._ids.reach(e)}fork(e,t){n(!this._inRuleset(),"Cannot fork inside a ruleset");let r=this;for(let n of[].concat(e))n=Array.isArray(n)?n:n.split("."),r=r._ids.fork(n,t,r);return r.$_temp.ruleset=!1,r}rule(e){const t=this._definition;c.assertOptions(e,Object.keys(t.modifiers)),n(!1!==this.$_temp.ruleset,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const r=null===this.$_temp.ruleset?this._rules.length-1:this.$_temp.ruleset;n(r>=0&&rt.tailor(e),ref:!1}),t.$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return m.location?m.location(this):this}validate(e,t){return y.entry(e,this,t)}validateAsync(e,t){return y.entryAsync(e,this,t)}$_addRule(e){"string"==typeof e&&(e={name:e}),n(e&&"object"==typeof e,"Invalid options"),n(e.name&&"string"==typeof e.name,"Invalid rule name");for(const a in e)n("_"!==a[0],"Cannot set private rule properties");const t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;const r=this._definition.rules[t.method],i=t.args;n(r,"Unknown rule",t.method);const o=this.clone();if(i){n(1===Object.keys(i).length||Object.keys(i).length===this._definition.rules[t.name].args.length,"Invalid rule definition for",this.type,t.name);for(const e in i){let a=i[e];if(r.argsByName){const s=r.argsByName.get(e);if(s.ref&&c.isResolvable(a))t._resolve.push(e),o.$_mutateRegister(a);else if(s.normalize&&(a=s.normalize(a),i[e]=a),s.assert){const t=c.validateArg(a,e,s);n(!t,t,"or reference")}}void 0!==a?i[e]=a:delete i[e]}}return r.multi||(o._ruleRemove(t.name,{clone:!1}),o._singleRules.set(t.name,t)),!1===o.$_temp.ruleset&&(o.$_temp.ruleset=null),r.priority?o._rules.unshift(t):o._rules.push(t),o}$_compile(e,t){return u.schema(this.$_root,e,t)}$_createError(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const a=!1!==o.flags?this._flags:{},s=o.messages?h.merge(this._definition.messages,o.messages):this._definition.messages;return new l.Report(e,t,r,a,s,n,i)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split("."),this._ids.labels(e)}$_match(e,t,r,n){(r=Object.assign({},r)).abortEarly=!0,r._externals=!1,t.snapshot();const i=!y.validate(e,this,t,r,n).errors;return t.restore(),i}$_modify(e){return c.assertOptions(e,["each","once","ref","schema"]),p.schema(this,e)||this}$_mutateRebuild(){return n(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(e,t)=>{let{source:r,name:n,path:i,key:o}=t;const a=this._definition[r][n]&&this._definition[r][n].register;!1!==a&&this.$_mutateRegister(e,{family:a,key:o})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e){let{family:t,key:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._refs.register(e,t),this._ids.register(e,{key:r})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n("_"===e[0]||!this._inRuleset(),"Cannot set flag inside a ruleset");const i=this._definition.flags[e]||{};if(o(t,i.default)&&(t=void 0),o(t,this._flags[e]))return this;const a=!1!==r.clone?this.clone():this;return void 0!==t?(a._flags[e]=t,a.$_mutateRegister(t)):delete a._flags[e],"_"!==e[0]&&(a.$_temp.ruleset=!1),a}$_parent(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n2&&void 0!==arguments[2]?arguments[2]:{};return c.assertOptions(r,"literal"),n(void 0!==t,"Missing",e,"value"),n("function"==typeof t||!r.literal,"Only function value supports literal option"),"function"==typeof t&&r.literal&&(t={[c.symbols.literal]:!0,literal:t}),this.$_setFlag(e,t)}_generate(e,t,r){if(!this.$_terms.whens)return{schema:this};const n=[],i=[];for(let s=0;su)break}const o=i.join(", ");if(t.mainstay.tracer.debug(t,"rule","when",o),!o)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[o])return{schema:this.$_temp.whens[o],id:o};let a=this;this._definition.generate&&(a=this._definition.generate(this,e,t,r));for(const s of n)a=a.concat(s);return this.$_root._tracer&&this.$_root._tracer._combine(a,[this,...n]),this.$_temp.whens[o]=a,{schema:a,id:o}}_inner(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n(!this._inRuleset(),`Cannot set ${e} inside a ruleset`);const i=this.clone();return i.$_terms[e]&&!r.override||(i.$_terms[e]=[]),r.single?i.$_terms[e].push(t):i.$_terms[e].push(...t),i.$_temp.ruleset=!1,i}_inRuleset(){return null!==this.$_temp.ruleset&&!1!==this.$_temp.ruleset}_ruleRemove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._singleRules.has(e))return this;const r=!1!==t.clone?this.clone():this;r._singleRules.delete(e);const n=[];for(let i=0;i{"use strict";const n=r(375),i=r(8571),o=r(8160),a={max:1e3,supported:new Set(["undefined","boolean","number","string"])};t.provider={provision:e=>new a.Cache(e)},a.Cache=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o.assertOptions(e,["max"]),n(void 0===e.max||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||a.max,this._map=new Map,this._list=new a.List}get length(){return this._map.size}set(e,t){if(null!==e&&!a.supported.has(typeof e))return;let r=this._map.get(e);if(r)return r.value=t,void this._list.first(r);r=this._list.unshift({key:e,value:t}),this._map.set(e,r),this._compact()}get(e){const t=this._map.get(e);if(t)return this._list.first(t),i(t.value)}_compact(){if(this._map.size>this._max){const e=this._list.pop();this._map.delete(e.key)}}},a.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||(this.tail=e),e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){const{next:t,prev:r}=e;return t.prev=r,r&&(r.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}},8160:(e,t,r)=>{"use strict";const n=r(375),i=r(7916),o=r(5934);let a,s;const c={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};t.version=o.version,t.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},t.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},t.assertOptions=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Options";n(e&&"object"==typeof e&&!Array.isArray(e),"Options must be of type object");const i=Object.keys(e).filter((e=>!t.includes(e)));n(0===i.length,`${r} contain unknown keys: ${i}`)},t.checkPreferences=function(e){s=s||r(3378);const t=s.preferences.validate(e);if(t.error)throw new i([t.error.details[0].message])},t.compare=function(e,t,r){switch(r){case"=":return e===t;case">":return e>t;case"<":return e=":return e>=t;case"<=":return e<=t}},t.default=function(e,t){return void 0===e?t:e},t.isIsoDate=function(e){return c.isoDate.test(e)},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isResolvable=function(e){return!!e&&(e[t.symbols.ref]||e[t.symbols.template])},t.isSchema=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e&&e[t.symbols.any];return!!i&&(n(r.legacy||i.version===t.version,"Cannot mix different versions of joi schemas"),!0)},t.isValues=function(e){return e[t.symbols.values]},t.limit=function(e){return Number.isSafeInteger(e)&&e>=0},t.preferences=function(e,n){a=a||r(6914),e=e||{},n=n||{};const i=Object.assign({},e,n);return n.errors&&e.errors&&(i.errors=Object.assign({},e.errors,n.errors),i.errors.wrap=Object.assign({},e.errors.wrap,n.errors.wrap)),n.messages&&(i.messages=a.compile(n.messages,e.messages)),delete i[t.symbols.prefs],i},t.tryWithPath=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return e()}catch(e){throw void 0!==e.path?e.path=t+"."+e.path:e.path=t,r.append&&(e.message=`${e.message} (${e.path})`),e}},t.validateArg=function(e,r,n){let{assert:i,message:o}=n;if(t.isSchema(i)){const t=i.validate(e);if(!t.error)return;return t.error.message}if(!i(e))return r?`${r} ${o}`:o},t.verifyFlat=function(e,t){for(const r of e)n(!Array.isArray(r),"Method no longer accepts array arguments:",t)}},3292:(e,t,r)=>{"use strict";const n=r(375),i=r(8160),o=r(6133),a={};t.schema=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i.assertOptions(r,["appendPath","override"]);try{return a.schema(e,t,r)}catch(e){throw r.appendPath&&void 0!==e.path&&(e.message=`${e.message} (${e.path})`),e}},a.schema=function(e,t,r){n(void 0!==t,"Invalid undefined schema"),Array.isArray(t)&&(n(t.length,"Invalid empty array schema"),1===t.length&&(t=t[0]));const o=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:{};i.assertOptions(o,["legacy"]);const s=r&&r[i.symbols.any];if(s)return n(o.legacy||s.version===i.version,"Cannot mix different versions of joi schemas:",s.version,i.version),r;if("object"!=typeof r||!o.legacy)return t.schema(e,r,{appendPath:!0});const c=a.walk(r);return c?c.compile(c.root,r):t.schema(e,r,{appendPath:!0})},a.walk=function(e){if("object"!=typeof e)return null;if(Array.isArray(e)){for(const t of e){const e=a.walk(t);if(e)return e}return null}const t=e[i.symbols.any];if(t)return{root:e[t.root],compile:t.compile};n(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const r in e){const t=a.walk(e[r]);if(t)return t}return null},a.simple=function(e){return null===e||["boolean","string","number"].includes(typeof e)},t.when=function(e,r,s){if(void 0===s&&(n(r&&"object"==typeof r,"Missing options"),s=r,r=o.create(".")),Array.isArray(s)&&(s={switch:s}),i.assertOptions(s,["is","not","then","otherwise","switch","break"]),i.isSchema(r))return n(void 0===s.is,'"is" can not be used with a schema condition'),n(void 0===s.not,'"not" can not be used with a schema condition'),n(void 0===s.switch,'"switch" can not be used with a schema condition'),a.condition(e,{is:r,then:s.then,otherwise:s.otherwise,break:s.break});if(n(o.isRef(r)||"string"==typeof r,"Invalid condition:",r),n(void 0===s.not||void 0===s.is,'Cannot combine "is" with "not"'),void 0===s.switch){let c=s;void 0!==s.not&&(c={is:s.not,then:s.otherwise,otherwise:s.then,break:s.break});let u=void 0!==c.is?e.$_compile(c.is):e.$_root.invalid(null,!1,0,"").required();return n(void 0!==c.then||void 0!==c.otherwise,'options must have at least one of "then", "otherwise", or "switch"'),n(void 0===c.break||void 0===c.then||void 0===c.otherwise,"Cannot specify then, otherwise, and break all together"),void 0===s.is||o.isRef(s.is)||i.isSchema(s.is)||(u=u.required()),a.condition(e,{ref:t.ref(r),is:u,then:c.then,otherwise:c.otherwise,break:c.break})}n(Array.isArray(s.switch),'"switch" must be an array'),n(void 0===s.is,'Cannot combine "switch" with "is"'),n(void 0===s.not,'Cannot combine "switch" with "not"'),n(void 0===s.then,'Cannot combine "switch" with "then"');const c={ref:t.ref(r),switch:[],break:s.break};for(let t=0;t{"use strict";const n=r(5688),i=r(8160),o=r(3328);t.Report=class{constructor(e,r,n,i,o,a,s){if(this.code=e,this.flags=i,this.messages=o,this.path=a.path,this.prefs=s,this.state=a,this.value=r,this.message=null,this.template=null,this.local=n||{},this.local.label=t.label(this.flags,this.state,this.prefs,this.messages),void 0===this.value||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const e=this.path[this.path.length-1];"object"!=typeof e&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&0===this.path.length){const e=this._template(this.template,"root");e&&(this.local.label=e)}}toString(){if(this.message)return this.message;const e=this.code;if(!this.prefs.errors.render)return this.code;const t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return void 0===t?`Error code "${e}" is not defined, your custom type is missing the correct messages definition`:(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(e,r){return t.template(this.value,e,r||this.code,this.state,this.prefs)}},t.path=function(e){let t="";for(const r of e)"object"!=typeof r&&("string"==typeof r?(t&&(t+="."),t+=r):t+=`[${r}]`);return t},t.template=function(e,t,r,n,a){if(!t)return;if(o.isTemplate(t))return"root"!==r?t:null;let s=a.errors.language;if(i.isResolvable(s)&&(s=s.resolve(e,n,a)),s&&t[s]){if(void 0!==t[s][r])return t[s][r];if(void 0!==t[s]["*"])return t[s]["*"]}return t[r]?t[r]:t["*"]},t.label=function(e,r,n,i){if(e.label)return e.label;if(!n.errors.label)return"";let o=r.path;return"key"===n.errors.label&&r.path.length>1&&(o=r.path.slice(-1)),t.path(o)||t.template(null,n.messages,"root",r,n)||i&&t.template(null,i,"root",r,n)||"value"},t.process=function(e,r,n){if(!e)return null;const{override:i,message:o,details:a}=t.details(e);if(i)return i;if(n.errors.stack)return new t.ValidationError(o,a,r);const s=Error.stackTraceLimit;Error.stackTraceLimit=0;const c=new t.ValidationError(o,a,r);return Error.stackTraceLimit=s,c},t.details=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];const n=[];for(const i of e){if(i instanceof Error){if(!1!==t.override)return{override:i};const e=i.toString();r.push(e),n.push({message:e,type:"override",context:{error:i}});continue}const e=i.toString();r.push(e),n.push({message:e,path:i.path.filter((e=>"object"!=typeof e)),type:i.code,context:i.local})}return r.length>1&&(r=[...new Set(r)]),{message:r.join(". "),details:n}},t.ValidationError=class extends Error{constructor(e,t,r){super(e),this._original=r,this.details=t}static isError(e){return e instanceof t.ValidationError}},t.ValidationError.prototype.isJoi=!0,t.ValidationError.prototype.name="ValidationError",t.ValidationError.prototype.annotate=n.error},8901:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(8160),a=r(6914),s={};t.type=function(e,t){const r=Object.getPrototypeOf(e),c=i(r),u=e._assign(Object.create(c)),l=Object.assign({},t);delete l.base,c._definition=l;const d=r._definition||{};l.messages=a.merge(d.messages,l.messages),l.properties=Object.assign({},d.properties,l.properties),u.type=l.type,l.flags=Object.assign({},d.flags,l.flags);const f=Object.assign({},d.terms);if(l.terms)for(const i in l.terms){const e=l.terms[i];n(void 0===u.$_terms[i],"Invalid term override for",l.type,i),u.$_terms[i]=e.init,f[i]=e}l.terms=f,l.args||(l.args=d.args),l.prepare=s.prepare(l.prepare,d.prepare),l.coerce&&("function"==typeof l.coerce&&(l.coerce={method:l.coerce}),l.coerce.from&&!Array.isArray(l.coerce.from)&&(l.coerce={method:l.coerce.method,from:[].concat(l.coerce.from)})),l.coerce=s.coerce(l.coerce,d.coerce),l.validate=s.validate(l.validate,d.validate);const h=Object.assign({},d.rules);if(l.rules)for(const i in l.rules){const e=l.rules[i];n("object"==typeof e,"Invalid rule definition for",l.type,i);let t=e.method;if(void 0===t&&(t=function(){return this.$_addRule(i)}),t&&(n(!c[i],"Rule conflict in",l.type,i),c[i]=t),n(!h[i],"Rule conflict in",l.type,i),h[i]=e,e.alias){const t=[].concat(e.alias);for(const r of t)c[r]=e.method}e.args&&(e.argsByName=new Map,e.args=e.args.map((t=>("string"==typeof t&&(t={name:t}),n(!e.argsByName.has(t.name),"Duplicated argument name",t.name),o.isSchema(t.assert)&&(t.assert=t.assert.strict().label(t.name)),e.argsByName.set(t.name,t),t))))}l.rules=h;const p=Object.assign({},d.modifiers);if(l.modifiers)for(const i in l.modifiers){n(!c[i],"Rule conflict in",l.type,i);const e=l.modifiers[i];n("function"==typeof e,"Invalid modifier definition for",l.type,i);const t=function(e){return this.rule({[i]:e})};c[i]=t,p[i]=e}if(l.modifiers=p,l.overrides){c._super=r,u.$_super={};for(const e in l.overrides)n(r[e],"Cannot override missing",e),l.overrides[e][o.symbols.parent]=r[e],u.$_super[e]=r[e].bind(u);Object.assign(c,l.overrides)}l.cast=Object.assign({},d.cast,l.cast);const g=Object.assign({},d.manifest,l.manifest);return g.build=s.build(l.manifest&&l.manifest.build,d.manifest&&d.manifest.build),l.manifest=g,l.rebuild=s.rebuild(l.rebuild,d.rebuild),u},s.build=function(e,t){return e&&t?function(r,n){return t(e(r,n),n)}:e||t},s.coerce=function(e,t){return e&&t?{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(r,n){let i;if((!t.from||t.from.includes(typeof r))&&(i=t.method(r,n),i)){if(i.errors||void 0===i.value)return i;r=i.value}if(!e.from||e.from.includes(typeof r)){const t=e.method(r,n);if(t)return t}return i}}:e||t},s.prepare=function(e,t){return e&&t?function(r,n){const i=e(r,n);if(i){if(i.errors||void 0===i.value)return i;r=i.value}return t(r,n)||i}:e||t},s.rebuild=function(e,t){return e&&t?function(r){t(r),e(r)}:e||t},s.validate=function(e,t){return e&&t?function(r,n){const i=t(r,n);if(i){if(i.errors&&(!Array.isArray(i.errors)||i.errors.length))return i;r=i.value}return e(r,n)||i}:e||t}},5107:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(8652),a=r(8160),s=r(3292),c=r(6354),u=r(8901),l=r(9708),d=r(6133),f=r(3328),h=r(1152);let p;const g={types:{alternatives:r(4946),any:r(8068),array:r(546),boolean:r(4937),date:r(7500),function:r(390),link:r(8785),number:r(3832),object:r(8966),string:r(7417),symbol:r(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const e={_types:new Set(Object.keys(g.types))};for(const t of e._types)e[t]=function(){for(var e=arguments.length,r=new Array(e),i=0;i2?r-2:0),i=2;i2?r-2:0),i=2;i{"use strict";const n=r(375),i=r(8571),o=r(3328);t.compile=function(e,t){if("string"==typeof e)return n(!t,"Cannot set single message string"),new o(e);if(o.isTemplate(e))return n(!t,"Cannot set single message template"),e;n("object"==typeof e&&!Array.isArray(e),"Invalid message options"),t=t?i(t):{};for(let r in e){const i=e[r];if("root"===r||o.isTemplate(i)){t[r]=i;continue}if("string"==typeof i){t[r]=new o(i);continue}n("object"==typeof i&&!Array.isArray(i),"Invalid message for",r);const a=r;for(r in t[a]=t[a]||{},i){const e=i[r];"root"===r||o.isTemplate(e)?t[a][r]=e:(n("string"==typeof e,"Invalid message for",r,"in",a),t[a][r]=new o(e))}}return t},t.decompile=function(e){const t={};for(let r in e){const n=e[r];if("root"===r){t.root=n;continue}if(o.isTemplate(n)){t[r]=n.describe({compact:!0});continue}const i=r;for(r in t[i]={},n){const e=n[r];"root"!==r?t[i][r]=e.describe({compact:!0}):t[i].root=e}}return t},t.merge=function(e,r){if(!e)return t.compile(r);if(!r)return e;if("string"==typeof r)return new o(r);if(o.isTemplate(r))return r;const a=i(e);for(let t in r){const e=r[t];if("root"===t||o.isTemplate(e)){a[t]=e;continue}if("string"==typeof e){a[t]=new o(e);continue}n("object"==typeof e&&!Array.isArray(e),"Invalid message for",t);const i=t;for(t in a[i]=a[i]||{},e){const r=e[t];"root"===t||o.isTemplate(r)?a[i][t]=r:(n("string"==typeof r,"Invalid message for",t,"in",i),a[i][t]=new o(r))}}return a}},2294:(e,t,r)=>{"use strict";const n=r(375),i=r(8160),o=r(6133),a={};t.Ids=a.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const e=new a.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){e._schemaChain&&(this._schemaChain=!0);for(const[t,r]of e._byId.entries())n(!this._byKey.has(t),"Schema id conflicts with existing key:",t),this._byId.set(t,r);for(const[t,r]of e._byKey.entries())n(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,r)}fork(e,t,r){const o=this._collect(e);o.push({schema:r});const s=o.shift();let c={id:s.id,schema:t(s.schema)};n(i.isSchema(c.schema),"adjuster function failed to return a joi schema type");for(const n of o)c={id:n.id,schema:a.fork(n.schema,c.id,c.schema)};return c.schema}labels(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=e[0],n=this._get(r);if(!n)return[...t,...e].join(".");const i=e.slice(1);return t=[...t,n.schema._flags.label||r],i.length?n.schema._ids.labels(i,t):t.join(".")}reach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=e[0],i=this._get(r);n(i,"Schema does not contain path",[...t,...e].join("."));const o=e.slice(1);return o.length?i.schema._ids.reach(o,[...t,r]):i.schema}register(e){let{key:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!i.isSchema(e))return;(e.$_property("schemaChain")||e._ids._schemaChain)&&(this._schemaChain=!0);const r=e._flags.id;if(r){const t=this._byId.get(r);n(!t||t.schema===e,"Cannot add different schemas with the same id:",r),n(!this._byKey.has(r),"Schema id conflicts with existing key:",r),this._byId.set(r,{schema:e,id:r})}t&&(n(!this._byKey.has(t),"Schema already contains key:",t),n(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,{schema:e,id:t}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const i=e[0],o=this._get(i);n(o,"Schema does not contain path",[...t,...e].join(".")),r=[o,...r];const a=e.slice(1);return a.length?o.schema._ids._collect(a,[...t,i],r):r}_get(e){return this._byId.get(e)||this._byKey.get(e)}},a.fork=function(e,r,n){const i=t.schema(e,{each:(e,t)=>{let{key:i}=t;if(r===(e._flags.id||i))return n},ref:!1});return i?i.$_mutateRebuild():e},t.schema=function(e,t){let r;for(const n in e._flags){if("_"===n[0])continue;const i=a.scan(e._flags[n],{source:"flags",name:n},t);void 0!==i&&(r=r||e.clone(),r._flags[n]=i)}for(let n=0;n{"use strict";const n=r(375),i=r(8571),o=r(9621),a=r(8160);let s;const c={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};t.create=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("string"==typeof e,"Invalid reference key:",e),a.assertOptions(t,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),n(!t.prefix||"object"==typeof t.prefix,"options.prefix must be of type object");const r=Object.assign({},c.defaults,t);delete r.prefix;const i=r.separator,o=c.context(e,i,t.prefix);if(r.type=o.type,e=o.key,"value"===r.type)if(o.root&&(n(!i||e[0]!==i,"Cannot specify relative path with root prefix"),r.ancestor="root",e||(e=null)),i&&i===e)e=null,r.ancestor=0;else if(void 0!==r.ancestor)n(!i||!e||e[0]!==i,"Cannot combine prefix with ancestor option");else{const[t,n]=c.ancestor(e,i);n&&""===(e=e.slice(n))&&(e=null),r.ancestor=t}return r.path=i?null===e?[]:e.split(i):[e],new c.Ref(r)},t.in=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.create(e,{...r,in:!0})},t.isRef=function(e){return!!e&&!!e[a.symbols.ref]},c.Ref=class{constructor(e){n("object"==typeof e,"Invalid reference construction"),a.assertOptions(e,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),n([!1,void 0].includes(e.separator)||"string"==typeof e.separator&&1===e.separator.length,"Invalid separator"),n(!e.adjust||"function"==typeof e.adjust,"options.adjust must be a function"),n(!e.map||Array.isArray(e.map),"options.map must be an array"),n(!e.map||!e.adjust,"Cannot set both map and adjust options"),Object.assign(this,c.defaults,e),n("value"===this.type||void 0===this.ancestor,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(e,t,r,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return n(!this.in||o.in,"Invalid in() reference usage"),"global"===this.type?this._resolve(r.context,t,o):"local"===this.type?this._resolve(i,t,o):this.ancestor?"root"===this.ancestor?this._resolve(t.ancestors[t.ancestors.length-1],t,o):(n(this.ancestor<=t.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(t.ancestors[this.ancestor-1],t,o)):this._resolve(e,t,o)}_resolve(e,t,r){let n;if("value"===this.type&&t.mainstay.shadow&&!1!==r.shadow&&(n=t.mainstay.shadow.get(this.absolute(t))),void 0===n&&(n=o(e,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(n=this.adjust(n)),this.map){const e=this.map.get(n);void 0!==e&&(n=e)}return t.mainstay&&t.mainstay.tracer.resolve(t,this,n),n}toString(){return this.display}absolute(e){return[...e.path.slice(0,-this.ancestor),...this.path]}clone(){return new c.Ref(this)}describe(){const e={path:this.path};"value"!==this.type&&(e.type=this.type),"."!==this.separator&&(e.separator=this.separator),"value"===this.type&&1!==this.ancestor&&(e.ancestor=this.ancestor),this.map&&(e.map=[...this.map]);for(const t of["adjust","iterables","render"])null!==this[t]&&void 0!==this[t]&&(e[t]=this[t]);return!1!==this.in&&(e.in=!0),{ref:e}}updateDisplay(){const e=null!==this.key?this.key:"";if("value"!==this.type)return void(this.display=`ref:${this.type}:${e}`);if(!this.separator)return void(this.display=`ref:${e}`);if(!this.ancestor)return void(this.display=`ref:${this.separator}${e}`);if("root"===this.ancestor)return void(this.display=`ref:root:${e}`);if(1===this.ancestor)return void(this.display=`ref:${e||".."}`);const t=new Array(this.ancestor+1).fill(this.separator).join("");this.display=`ref:${t}${e||""}`}},c.Ref.prototype[a.symbols.ref]=!0,t.build=function(e){return"value"===(e=Object.assign({},c.defaults,e)).type&&void 0===e.ancestor&&(e.ancestor=1),new c.Ref(e)},c.context=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e=e.trim(),r){const n=void 0===r.global?"$":r.global;if(n!==t&&e.startsWith(n))return{key:e.slice(n.length),type:"global"};const i=void 0===r.local?"#":r.local;if(i!==t&&e.startsWith(i))return{key:e.slice(i.length),type:"local"};const o=void 0===r.root?"/":r.root;if(o!==t&&e.startsWith(o))return{key:e.slice(o.length),type:"value",root:!0}}return{key:e,type:"value"}},c.ancestor=function(e,t){if(!t)return[1,0];if(e[0]!==t)return[1,0];if(e[1]!==t)return[0,1];let r=2;for(;e[r]===t;)++r;return[r-1,r]},t.toSibling=0,t.toParent=1,t.Manager=class{constructor(){this.refs=[]}register(e,n){if(e)if(n=void 0===n?t.toParent:n,Array.isArray(e))for(const t of e)this.register(t,n);else if(a.isSchema(e))for(const t of e._refs.refs)t.ancestor-n>=0&&this.refs.push({ancestor:t.ancestor-n,root:t.root});else t.isRef(e)&&"value"===e.type&&e.ancestor-n>=0&&this.refs.push({ancestor:e.ancestor-n,root:e.root}),s=s||r(3328),s.isTemplate(e)&&this.register(e.refs(),n)}get length(){return this.refs.length}clone(){const e=new t.Manager;return e.refs=i(this.refs),e}reset(){this.refs=[]}roots(){return this.refs.filter((e=>!e.ancestor)).map((e=>e.root))}}},3378:(e,t,r)=>{"use strict";const n=r(5107),i={};i.wrap=n.string().min(1).max(2).allow(!1),t.preferences=n.object({allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),context:n.object(),convert:n.boolean(),dateFormat:n.valid("date","iso","string","time","utc"),debug:n.boolean(),errors:{escapeHtml:n.boolean(),label:n.valid("path","key",!1),language:[n.string(),n.object().ref()],render:n.boolean(),stack:n.boolean(),wrap:{label:i.wrap,array:i.wrap,string:i.wrap}},externals:n.boolean(),messages:n.object(),noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:n.valid("required","optional","forbidden"),skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()}).strict(),i.nameRx=/^[a-zA-Z0-9]\w*$/,i.rule=n.object({alias:n.array().items(n.string().pattern(i.nameRx)).single(),args:n.array().items(n.string(),n.object({name:n.string().pattern(i.nameRx).required(),ref:n.boolean(),assert:n.alternatives([n.function(),n.object().schema()]).conditional("ref",{is:!0,then:n.required()}),normalize:n.function(),message:n.string().when("assert",{is:n.function(),then:n.required()})})),convert:n.boolean(),manifest:n.boolean(),method:n.function().allow(!1),multi:n.boolean(),validate:n.function()}),t.extension=n.object({type:n.alternatives([n.string(),n.object().regex()]).required(),args:n.function(),cast:n.object().pattern(i.nameRx,n.object({from:n.function().maxArity(1).required(),to:n.function().minArity(1).maxArity(2).required()})),base:n.object().schema().when("type",{is:n.object().regex(),then:n.forbidden()}),coerce:[n.function().maxArity(3),n.object({method:n.function().maxArity(3).required(),from:n.array().items(n.string()).single()})],flags:n.object().pattern(i.nameRx,n.object({setter:n.string(),default:n.any()})),manifest:{build:n.function().arity(2)},messages:[n.object(),n.string()],modifiers:n.object().pattern(i.nameRx,n.function().minArity(1).maxArity(2)),overrides:n.object().pattern(i.nameRx,n.function()),prepare:n.function().maxArity(3),rebuild:n.function().arity(1),rules:n.object().pattern(i.nameRx,i.rule),terms:n.object().pattern(i.nameRx,n.object({init:n.array().allow(null).required(),manifest:n.object().pattern(/.+/,[n.valid("schema","single"),n.object({mapped:n.object({from:n.string().required(),to:n.string().required()}).required()})])})),validate:n.function().maxArity(3)}).strict(),t.extensions=n.array().items(n.object(),n.function().arity(1)).strict(),i.desc={buffer:n.object({buffer:n.string()}),func:n.object({function:n.function().required(),options:{literal:!0}}),override:n.object({override:!0}),ref:n.object({ref:n.object({type:n.valid("value","global","local"),path:n.array().required(),separator:n.string().length(1).allow(!1),ancestor:n.number().min(0).integer().allow("root"),map:n.array().items(n.array().length(2)).min(1),adjust:n.function(),iterables:n.boolean(),in:n.boolean(),render:n.boolean()}).required()}),regex:n.object({regex:n.string().min(3)}),special:n.object({special:n.valid("deep").required()}),template:n.object({template:n.string().required(),options:n.object()}),value:n.object({value:n.alternatives([n.object(),n.array()]).required()})},i.desc.entity=n.alternatives([n.array().items(n.link("...")),n.boolean(),n.function(),n.number(),n.string(),i.desc.buffer,i.desc.func,i.desc.ref,i.desc.regex,i.desc.special,i.desc.template,i.desc.value,n.link("/")]),i.desc.values=n.array().items(null,n.boolean(),n.function(),n.number().allow(1/0,-1/0),n.string().allow(""),n.symbol(),i.desc.buffer,i.desc.func,i.desc.override,i.desc.ref,i.desc.regex,i.desc.template,i.desc.value),i.desc.messages=n.object().pattern(/.+/,[n.string(),i.desc.template,n.object().pattern(/.+/,[n.string(),i.desc.template])]),t.description=n.object({type:n.string().required(),flags:n.object({cast:n.string(),default:n.any(),description:n.string(),empty:n.link("/"),failover:i.desc.entity,id:n.string(),label:n.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:n.boolean(),unit:n.string()}).unknown(),preferences:{allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),convert:n.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:n.boolean(),label:["path","key"],language:[n.string(),i.desc.ref],wrap:{label:i.wrap,array:i.wrap}},externals:n.boolean(),messages:i.desc.messages,noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:["required","optional","forbidden"],skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()},allow:i.desc.values,invalid:i.desc.values,rules:n.array().min(1).items({name:n.string().required(),args:n.object().min(1),keep:n.boolean(),message:[n.string(),i.desc.messages],warn:n.boolean()}),keys:n.object().pattern(/.*/,n.link("/")),link:i.desc.ref}).pattern(/^[a-z]\w*$/,n.any())},493:(e,t,r)=>{"use strict";const n=r(8571),i=r(9621),o=r(8160),a={value:Symbol("value")};e.exports=a.State=class{constructor(e,t,r){this.path=e,this.ancestors=t,this.mainstay=r.mainstay,this.schemas=r.schemas,this.debug=null}localize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const n=new a.State(e,t,this);return r&&n.schemas&&(n.schemas=[a.schemas(r),...n.schemas]),n}nest(e,t){const r=new a.State(this.path,this.ancestors,this);return r.schemas=r.schemas&&[a.schemas(e),...r.schemas],r.debug=t,r}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new a.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=n(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}},a.schemas=function(e){return o.isSchema(e)?{schema:e}:e},a.Shadow=class{constructor(){this._values=null}set(e,t,r){if(!e.length)return;if("strip"===r&&"number"==typeof e[e.length-1])return;this._values=this._values||new Map;let n=this._values;for(let i=0;i{"use strict";const n=r(375),i=r(8571),o=r(5277),a=r(1447),s=r(8160),c=r(6354),u=r(6133),l={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join("\x01"),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};e.exports=l.Template=class{constructor(e,t){n("string"==typeof e,"Template source must be a string"),n(!e.includes("\0")&&!e.includes("\x01"),"Template source cannot contain reserved control characters"),this.source=e,this.rendered=e,this._template=null,this._settings=i(t),this._parse()}_parse(){if(!this.source.includes("{"))return;const e=l.encode(this.source),t=l.split(e);let r=!1;const n=[],i=t.shift();i&&n.push(i);for(const o of t){const e="{"!==o[0],t=e?"}":"}}",i=o.indexOf(t);if(-1===i||"{"===o[1]){n.push(`{${l.decode(o)}`);continue}let a=o.slice(e?0:1,i);const s=":"===a[0];s&&(a=a.slice(1));const c=this._ref(l.decode(a),{raw:e,wrapped:s});n.push(c),"string"!=typeof c&&(r=!0);const u=o.slice(i+t.length);u&&n.push(l.decode(u))}r?this._template=n:this.rendered=n.join("")}static date(e,t){return l.dateFormat[t.dateFormat].call(e)}describe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._settings&&e.compact)return this.source;const t={template:this.source};return this._settings&&(t.options=this._settings),t}static build(e){return new l.Template(e.template,e.options)}isDynamic(){return!!this._template}static isTemplate(e){return!!e&&!!e[s.symbols.template]}refs(){if(!this._template)return;const e=[];for(const t of this._template)"string"!=typeof t&&e.push(...t.refs);return e}resolve(e,t,r,n){return this._template&&1===this._template.length?this._part(this._template[0],e,t,r,n,{}):this.render(e,t,r,n)}_part(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n4&&void 0!==arguments[4]?arguments[4]:{};if(!this.isDynamic())return this.rendered;const a=[];for(const s of this._template)if("string"==typeof s)a.push(s);else{const c=this._part(s,e,t,r,n,i),u=l.stringify(c,e,t,r,n,i);if(void 0!==u){const e=s.raw||!1===(i.errors&&i.errors.escapeHtml)?u:o(u);a.push(l.wrap(e,s.wrapped&&r.errors.wrap.label))}}return a.join("")}_ref(e,t){let{raw:r,wrapped:n}=t;const i=[],o=e=>{const t=u.create(e,this._settings);return i.push(t),e=>t.resolve(...e)};try{var s=new a.Parser(e,{reference:o,functions:l.functions,constants:l.constants})}catch(t){throw t.message=`Invalid template variable "${e}" fails due to: ${t.message}`,t}if(s.single){if("reference"===s.single.type){const e=i[0];return{ref:e,raw:r,refs:i,wrapped:n||"local"===e.type&&"label"===e.key}}return l.stringify(s.single.value)}return{formula:s,raw:r,refs:i}}toString(){return this.source}},l.Template.prototype[s.symbols.template]=!0,l.Template.prototype.isImmutable=!0,l.encode=function(e){return e.replace(/\\(\{+)/g,((e,t)=>l.opens.slice(0,t.length))).replace(/\\(\}+)/g,((e,t)=>l.closes.slice(0,t.length)))},l.decode=function(e){return e.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},l.split=function(e){const t=[];let r="";for(let n=0;n5&&void 0!==arguments[5]?arguments[5]:{};const a=typeof e,s=n&&n.errors&&n.errors.wrap||{};let c=!1;if(u.isRef(e)&&e.render&&(c=e.in,e=e.resolve(t,r,n,i,{in:e.in,...o})),null===e)return"null";if("string"===a)return l.wrap(e,o.arrayItems&&s.string);if("number"===a||"function"===a||"symbol"===a)return e.toString();if("object"!==a)return JSON.stringify(e);if(e instanceof Date)return l.Template.date(e,n);if(e instanceof Map){const t=[];for(const[r,n]of e.entries())t.push(`${r.toString()} -> ${n.toString()}`);e=t}if(!Array.isArray(e))return e.toString();const d=[];for(const u of e)d.push(l.stringify(u,t,r,n,i,{arrayItems:!0,...o}));return l.wrap(d.join(", "),!c&&s.array)},l.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},l.functions={if:(e,t,r)=>e?t:r,length:e=>"string"==typeof e?e.length:e&&"object"==typeof e?Array.isArray(e)?e.length:Object.keys(e).length:null,msg(e){const[t,r,n,i,o]=this,a=o.messages;if(!a)return"";const s=c.template(t,a[0],e,r,n)||c.template(t,a[1],e,r,n);return s?s.render(t,r,n,i,o):""},number:e=>"number"==typeof e?e:"string"==typeof e?parseFloat(e):"boolean"==typeof e?e?1:0:e instanceof Date?e.getTime():null}},4946:(e,t,r)=>{"use strict";const n=r(375),i=r(1687),o=r(8068),a=r(8160),s=r(3292),c=r(6354),u=r(6133),l={};e.exports=o.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:u.toSibling}},args(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;nc.details(e,{override:!1})))})};if("one"===r._flags.match)return 1===t.length?{value:t[0]}:{errors:n("alternatives.one")};if(t.length!==r.$_terms.matches.length)return{errors:n("alternatives.all",{details:s.map((e=>c.details(e,{override:!1})))})};const u=e=>e.$_terms.matches.some((e=>"object"===e.schema.type||"alternatives"===e.schema.type&&u(e.schema)));return u(r)?{value:t.reduce(((e,t)=>i(e,t,{mergeArrays:!1})))}:{value:t[t.length-1]}}const s=[];for(let i=0;i"is"!==r.path[0]?t.label(e):void 0,ref:!1})}},rebuild(e){e.$_modify({each:t=>{a.isSchema(t)&&"array"===t.type&&e.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(e,t){if(t.matches)for(const r of t.matches){const{schema:t,ref:n,is:i,not:o,then:a,otherwise:s}=r;e=t?e.try(t):n?e.conditional(n,{is:i,then:a,not:o,otherwise:s,switch:r.switch}):e.conditional(i,{then:a,otherwise:s})}return e}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),l.errors=function(e,t){let{error:r,state:n}=t;if(!e.length)return{errors:r("alternatives.any")};if(1===e.length)return{errors:e[0].reports};const i=new Set,o=[];for(const{reports:a,schema:s}of e){if(a.length>1)return l.unmatched(e,r);const t=a[0];if(t instanceof c.Report==0)return l.unmatched(e,r);if(t.state.path.length!==n.path.length){o.push({type:s.type,report:t});continue}if("any.only"===t.code){for(const e of t.local.valids)i.add(e);continue}const[u,d]=t.code.split(".");"base"===d?i.add(u):o.push({type:s.type,report:t})}return o.length?1===o.length?{errors:o[0].report}:l.unmatched(e,r):{errors:r("alternatives.types",{types:[...i]})}},l.unmatched=function(e,t){const r=[];for(const n of e)r.push(...n.reports);return{errors:t("alternatives.match",c.details(r,{override:!1}))}}},8068:(e,t,r)=>{"use strict";const n=r(375),i=r(7629),o=r(8160),a=r(6914);e.exports=i.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return n("function"==typeof e,"Method must be a function"),n(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:e,description:t}})},validate(e,t,r){let{method:n}=r;try{return n(e,t)}catch(e){return t.error("any.custom",{error:e})}},args:["method","description"],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){n(o.isSchema(e)&&e._flags.id,"Schema must be a schema with an id");const t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return n(e&&"string"==typeof e,"Invalid warning code"),this.$_addRule({name:"warning",args:{code:e,local:t},warn:!0})},validate(e,t,r){let{code:n,local:i}=r;return t.error(n,i)},args:["code","local"],multi:!0}},modifiers:{keep(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.keep=t},message(e,t){e.message=a.compile(t)},warn(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.warn=t}},manifest:{build(e,t){for(const r in t){const n=t[r];if(["examples","externals","metas","notes","tags"].includes(r))for(const t of n)e=e[r.slice(0,-1)](t);else if("alterations"!==r)if("whens"!==r){if("shared"===r)for(const t of n)e=e.shared(t)}else for(const t of n){const{ref:r,is:n,not:i,then:o,otherwise:a,concat:s}=t;e=s?e.concat(s):r?e.when(r,{is:n,not:i,then:o,otherwise:a,switch:t.switch,break:t.break}):e.when(n,{then:o,otherwise:a,break:t.break})}else{const t={};for(const{target:e,adjuster:r}of n)t[e]=r;e=e.alter(t)}}return e}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(e,t,r)=>{"use strict";const n=r(375),i=r(9474),o=r(9621),a=r(8068),s=r(8160),c=r(3292),u={};e.exports=a.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(e,t){let{schema:r,state:n,prefs:i}=t;if(!Array.isArray(e))return;const o=r.$_getRule("sort");return o?u.sort(r,e,o.args.options,n,i):void 0}},validate(e,t){let{schema:r,error:n}=t;if(!Array.isArray(e)){if(r._flags.single){const t=[e];return t[s.symbols.arraySingle]=!0,{value:t}}return{errors:n("array.base")}}if(r.$_getRule("items")||r.$_terms.externals)return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});const t=this.$_addRule({name:"has",args:{schema:e}});return t.$_mutateRegister(e),t},validate(e,t,r){let{state:n,prefs:i,error:o}=t,{schema:a}=r;const s=[e,...n.ancestors];for(let u=0;uthis.$_compile(t[i])),i,{append:!0});n.$_terms.items.push(e)}return n.$_mutateRebuild()},validate(e,t){let{schema:r,error:n,state:i,prefs:o,errorsArray:a}=t;const c=r.$_terms._requireds.slice(),l=r.$_terms.ordered.slice(),d=[...r.$_terms._inclusions,...c],f=!e[s.symbols.arraySingle];delete e[s.symbols.arraySingle];const h=a();let p=e.length;for(let s=0;s="})}},ordered:{method(){for(var e=arguments.length,t=new Array(e),r=0;rthis.$_compile(t[i])),i,{append:!0});u.validateSingle(e,n),n.$_mutateRegister(e),n.$_terms.ordered.push(e)}return n.$_mutateRebuild()}},single:{method(e){const t=void 0===e||!!e;return n(!t||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",t)}},sort:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s.assertOptions(e,["by","order"]);const t={order:e.order||"ascending"};return e.by&&(t.by=c.ref(e.by,{ancestor:0}),n(!t.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:t}})},validate(e,t,r){let{error:n,state:i,prefs:o,schema:a}=t,{options:s}=r;const{value:c,errors:l}=u.sort(a,e,s,i,o);if(l)return l;for(let u=0;u1&&void 0!==arguments[1]?arguments[1]:{};n(!e||"function"==typeof e||"string"==typeof e,"comparator must be a function or a string"),s.assertOptions(t,["ignoreUndefined","separator"]);const r={name:"unique",args:{options:t,comparator:e}};if(e)if("string"==typeof e){const n=s.default(t.separator,".");r.path=n?e.split(n):[e]}else r.comparator=e;return this.$_addRule(r)},validate(e,t,r,a){let{state:s,error:c,schema:u}=t,{comparator:l,options:d}=r,{comparator:f,path:h}=a;const p={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},g=f||i,m=d.ignoreUndefined;for(let i=0;inew Set(e)}},rebuild(e){e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[];for(const t of e.$_terms.items)u.validateSingle(t,e),"required"===t._flags.presence?e.$_terms._requireds.push(t):"forbidden"===t._flags.presence?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(const t of e.$_terms.ordered)u.validateSingle(t,e)},manifest:{build:(e,t)=>(t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),u.fillMissedErrors=function(e,t,r,n,i,o){const a=[];let s=0;for(const c of r){const e=c._flags.label;e?a.push(e):++s}a.length?s?t.push(e.$_createError("array.includesRequiredBoth",n,{knownMisses:a,unknownMisses:s},i,o)):t.push(e.$_createError("array.includesRequiredKnowns",n,{knownMisses:a},i,o)):t.push(e.$_createError("array.includesRequiredUnknowns",n,{unknownMisses:s},i,o))},u.fillOrderedErrors=function(e,t,r,n,i,o){const a=[];for(const s of r)"required"===s._flags.presence&&a.push(s);a.length&&u.fillMissedErrors(e,t,a,n,i,o)},u.fillDefault=function(e,t,r,n){const i=[];let o=!0;for(let a=e.length-1;a>=0;--a){const s=e[a],c=[t,...r.ancestors],u=s.$_validate(void 0,r.localize(r.path,c,s),n).value;if(o){if(void 0===u)continue;o=!1}i.unshift(u)}i.length&&t.push(...i)},u.fastSplice=function(e,t){let r=t;for(;r{let d=u.compare(c,l,a,s);if(null!==d)return d;if(r.by&&(c=r.by.resolve(c,n,i),l=r.by.resolve(l,n,i)),d=u.compare(c,l,a,s),null!==d)return d;const f=typeof c;if(f!==typeof l)throw e.$_createError("array.sort.mismatching",t,null,n,i);if("number"!==f&&"string"!==f)throw e.$_createError("array.sort.unsupported",t,{type:f},n,i);return"number"===f?(c-l)*o:c{"use strict";const n=r(375),i=r(8068),o=r(8160),a=r(2036),s={isBool:function(e){return"boolean"==typeof e}};e.exports=i.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(e,t){let{schema:r}=t;if("boolean"!=typeof e){if("string"==typeof e){const t=r._flags.sensitive?e:e.toLowerCase();e="true"===t||"false"!==t&&e}return"boolean"!=typeof e&&(e=r.$_terms.truthy&&r.$_terms.truthy.has(e,null,null,!r._flags.sensitive)||(!r.$_terms.falsy||!r.$_terms.falsy.has(e,null,null,!r._flags.sensitive))&&e),{value:e}}},validate(e,t){let{error:r}=t;if("boolean"!=typeof e)return{value:e,errors:r("boolean.base")}},rules:{truthy:{method(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("sensitive",e)}}},cast:{number:{from:s.isBool,to:(e,t)=>e?1:0},string:{from:s.isBool,to:(e,t)=>e?"true":"false"}},manifest:{build:(e,t)=>(t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(e,t,r)=>{"use strict";const n=r(375),i=r(8068),o=r(8160),a=r(3328),s={isDate:function(e){return e instanceof Date}};e.exports=i.extend({type:"date",coerce:{from:["number","string"],method(e,t){let{schema:r}=t;return{value:s.parse(e,r._flags.format)||e}}},validate(e,t){let{schema:r,error:n,prefs:i}=t;if(e instanceof Date&&!isNaN(e.getTime()))return;const o=r._flags.format;return i.convert&&o&&"string"==typeof e?{value:e,errors:n("date.format",{format:o})}:{value:e,errors:n("date.base")}},rules:{compare:{method:!1,validate(e,t,r,n){let{date:i}=r,{name:a,operator:s,args:c}=n;const u="now"===i?Date.now():i.getTime();return o.compare(e.getTime(),u,s)?e:t.error("date."+a,{limit:c.date,value:e})},args:[{name:"date",ref:!0,normalize:e=>"now"===e?e:s.parse(e),assert:e=>null!==e,message:"must have a valid date format"}]},format:{method(e){return n(["iso","javascript","unix"].includes(e),"Unknown date format",e),this.$_setFlag("format",e)}},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{date:e},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{date:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{date:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{date:e},operator:">="})}},timestamp:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"javascript";return n(["javascript","unix"].includes(e),'"type" must be one of "javascript, unix"'),this.format(e)}}},cast:{number:{from:s.isDate,to:(e,t)=>e.getTime()},string:{from:s.isDate,to(e,t){let{prefs:r}=t;return a.date(e,r)}}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),s.parse=function(e,t){if(e instanceof Date)return e;if("string"!=typeof e&&(isNaN(e)||!isFinite(e)))return null;if(/^\s*$/.test(e))return null;if("iso"===t)return o.isIsoDate(e)?s.date(e.toString()):null;const r=e;if("string"==typeof e&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if("javascript"===t)return s.date(1*e);if("unix"===t)return s.date(1e3*e);if("string"==typeof r)return null}return s.date(e)},s.date=function(e){const t=new Date(e);return isNaN(t.getTime())?null:t}},390:(e,t,r)=>{"use strict";const n=r(375),i=r(7824);e.exports=i.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:e}})},validate(e,t,r){let{n:n}=r;return e.length===n?e:t.error("function.arity",{n:n})}},class:{method(){return this.$_addRule("class")},validate:(e,t)=>/^\s*class\s/.test(e.toString())?e:t.error("function.class",{value:e})},minArity:{method(e){return n(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:e}})},validate(e,t,r){let{n:n}=r;return e.length>=n?e:t.error("function.minArity",{n:n})}},maxArity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:e}})},validate(e,t,r){let{n:n}=r;return e.length<=n?e:t.error("function.maxArity",{n:n})}}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(e,t,r)=>{"use strict";const n=r(978),i=r(375),o=r(8571),a=r(3652),s=r(8068),c=r(8160),u=r(3292),l=r(6354),d=r(6133),f=r(3328),h={renameDefaults:{alias:!1,multiple:!1,override:!1}};e.exports=s.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(e,t)=>e.keys(t),validate(e,t){let{schema:r,error:n,state:i,prefs:o}=t;if(!e||typeof e!==r.$_property("typeof")||Array.isArray(e))return{value:e,errors:n("object.base",{type:r.$_property("typeof")})};if(!(r.$_terms.renames||r.$_terms.dependencies||r.$_terms.keys||r.$_terms.patterns||r.$_terms.externals))return;e=h.clone(e,o);const a=[];if(r.$_terms.renames&&!h.rename(r,e,i,o,a))return{value:e,errors:a};if(!r.$_terms.keys&&!r.$_terms.patterns&&!r.$_terms.dependencies)return{value:e,errors:a};const s=new Set(Object.keys(e));if(r.$_terms.keys){const t=[e,...i.ancestors];for(const n of r.$_terms.keys){const r=n.key,c=e[r];s.delete(r);const u=i.localize([...i.path,r],t,n),l=n.schema.$_validate(c,u,o);if(l.errors){if(o.abortEarly)return{value:e,errors:l.errors};void 0!==l.value&&(e[r]=l.value),a.push(...l.errors)}else"strip"===n.schema._flags.result||void 0===l.value&&void 0!==c?delete e[r]:void 0!==l.value&&(e[r]=l.value)}}if(s.size||r._flags._hasPatternMatch){const t=h.unknown(r,e,s,a,i,o);if(t)return t}if(r.$_terms.dependencies)for(const c of r.$_terms.dependencies){if(null!==c.key&&!1===h.isPresent(c.options)(c.key.resolve(e,i,o,null,{shadow:!1})))continue;const t=h.dependencies[c.rel](r,c,e,i,o);if(t){const n=r.$_createError(t.code,e,t.context,i,o);if(o.abortEarly)return{value:e,errors:n};a.push(n)}}return{value:e,errors:a}},rules:{and:{method(){for(var e=arguments.length,t=new Array(e),r=0;r!e.hasOwnProperty(t.key))):new h.Keys;for(const r in e)c.tryWithPath((()=>t.$_terms.keys.push({key:r,schema:this.$_compile(e[r])})),r)}else t.$_terms.keys=new h.Keys;else t.$_terms.keys=null;return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate(e,t,r,n){let{limit:i}=r,{name:o,operator:a,args:s}=n;return c.compare(Object.keys(e).length,i,a)?e:t.error("object."+o,{limit:s.limit,value:e})},args:[{name:"limit",ref:!0,assert:c.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},nand:{method(){for(var e=arguments.length,t=new Array(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};const n=e instanceof RegExp;n||(e=this.$_compile(e,{appendPath:!0})),i(void 0!==t,"Invalid rule"),c.assertOptions(r,["fallthrough","matches"]),n&&i(!e.flags.includes("g")&&!e.flags.includes("y"),"pattern should not use global or sticky mode"),t=this.$_compile(t,{appendPath:!0});const o=this.clone();o.$_terms.patterns=o.$_terms.patterns||[];const a={[n?"regex":"schema"]:e,rule:t};return r.matches&&(a.matches=this.$_compile(r.matches),"array"!==a.matches.type&&(a.matches=a.matches.$_root.array().items(a.matches)),o.$_mutateRegister(a.matches),o.$_setFlag("_hasPatternMatch",!0,{clone:!1})),r.fallthrough&&(a.fallthrough=!0),o.$_terms.patterns.push(a),o.$_mutateRegister(t),o}},ref:{method(){return this.$_addRule("ref")},validate:(e,t)=>d.isRef(e)?e:t.error("object.refType",{value:e})},regex:{method(){return this.$_addRule("regex")},validate:(e,t)=>e instanceof RegExp?e:t.error("object.regex",{value:e})},rename:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i("string"==typeof e||e instanceof RegExp,"Rename missing the from argument"),i("string"==typeof t||t instanceof f,"Invalid rename to argument"),i(t!==e,"Cannot rename key to same name:",e),c.assertOptions(r,["alias","ignoreUndefined","override","multiple"]);const o=this.clone();o.$_terms.renames=o.$_terms.renames||[];for(const n of o.$_terms.renames)i(n.from!==e,"Cannot rename the same key multiple times");return t instanceof f&&o.$_mutateRegister(t),o.$_terms.renames.push({from:e,to:t,options:n(h.renameDefaults,r)}),o}},schema:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return this.$_addRule({name:"schema",args:{type:e}})},validate(e,t,r){let{type:n}=r;return!c.isSchema(e)||"any"!==n&&e.type!==n?t.error("object.schema",{type:n}):e}},unknown:{method(e){return this.$_setFlag("unknown",!1!==e)}},with:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h.dependency(this,"with",e,t,r)}},without:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h.dependency(this,"without",e,t,r)}},xor:{method(){for(var e=arguments.length,t=new Array(e),r=0;rt.add(r,{after:r.schema.$_rootReferences(),group:r.key})),r.key);e.$_terms.keys=new h.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(const{rel:r,key:n=null,peers:i,options:o}of t.dependencies)e=h.dependency(e,r,n,i,o);if(t.patterns)for(const{regex:r,schema:n,rule:i,fallthrough:o,matches:a}of t.patterns)e=e.pattern(r||n,i,{fallthrough:o,matches:a});if(t.renames)for(const{from:r,to:n,options:i}of t.renames)e=e.rename(r,n,i);return e}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),h.clone=function(e,t){if("object"==typeof e){if(t.nonEnumerables)return o(e,{shallow:!0});const r=Object.create(Object.getPrototypeOf(e));return Object.assign(r,e),r}const r=function(){for(var t=arguments.length,r=new Array(t),n=0;n1&&"object"==typeof n[n.length-1]?n.pop():{}),c.assertOptions(o,["separator","isPresent"]),n=[].concat(n);const a=c.default(o.separator,"."),s=[];for(const c of n)i("string"==typeof c,t,"peers must be strings"),s.push(u.ref(c,{separator:a,ancestor:0,prefix:!1}));null!==r&&(r=u.ref(r,{separator:a,ancestor:0,prefix:!1}));const l=e.clone();return l.$_terms.dependencies=l.$_terms.dependencies||[],l.$_terms.dependencies.push(new h.Dependency(t,r,s,n,o)),l},h.dependencies={and(e,t,r,n,i){const o=[],a=[],s=t.peers.length,c=h.isPresent(t.options);for(const u of t.peers)!1===c(u.resolve(r,n,i,null,{shadow:!1}))?o.push(u.key):a.push(u.key);if(o.length!==s&&a.length!==s)return{code:"object.and",context:{present:a,presentWithLabels:h.keysToLabels(e,a),missing:o,missingWithLabels:h.keysToLabels(e,o)}}},nand(e,t,r,n,i){const o=[],a=h.isPresent(t.options);for(const u of t.peers)a(u.resolve(r,n,i,null,{shadow:!1}))&&o.push(u.key);if(o.length!==t.peers.length)return;const s=t.paths[0],c=t.paths.slice(1);return{code:"object.nand",context:{main:s,mainWithLabel:h.keysToLabels(e,s),peers:c,peersWithLabels:h.keysToLabels(e,c)}}},or(e,t,r,n,i){const o=h.isPresent(t.options);for(const a of t.peers)if(o(a.resolve(r,n,i,null,{shadow:!1})))return;return{code:"object.missing",context:{peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)}}},oxor(e,t,r,n,i){const o=[],a=h.isPresent(t.options);for(const c of t.peers)a(c.resolve(r,n,i,null,{shadow:!1}))&&o.push(c.key);if(!o.length||1===o.length)return;const s={peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)};return s.present=o,s.presentWithLabels=h.keysToLabels(e,o),{code:"object.oxor",context:s}},with(e,t,r,n,i){const o=h.isPresent(t.options);for(const a of t.peers)if(!1===o(a.resolve(r,n,i,null,{shadow:!1})))return{code:"object.with",context:{main:t.key.key,mainWithLabel:h.keysToLabels(e,t.key.key),peer:a.key,peerWithLabel:h.keysToLabels(e,a.key)}}},without(e,t,r,n,i){const o=h.isPresent(t.options);for(const a of t.peers)if(o(a.resolve(r,n,i,null,{shadow:!1})))return{code:"object.without",context:{main:t.key.key,mainWithLabel:h.keysToLabels(e,t.key.key),peer:a.key,peerWithLabel:h.keysToLabels(e,a.key)}}},xor(e,t,r,n,i){const o=[],a=h.isPresent(t.options);for(const c of t.peers)a(c.resolve(r,n,i,null,{shadow:!1}))&&o.push(c.key);if(1===o.length)return;const s={peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)};return 0===o.length?{code:"object.missing",context:s}:(s.present=o,s.presentWithLabels=h.keysToLabels(e,o),{code:"object.xor",context:s})}},h.keysToLabels=function(e,t){return Array.isArray(t)?t.map((t=>e.$_mapLabels(t))):e.$_mapLabels(t)},h.isPresent=function(e){return"function"==typeof e.isPresent?e.isPresent:e=>void 0!==e},h.rename=function(e,t,r,n,i){const o={};for(const a of e.$_terms.renames){const s=[],c="string"!=typeof a.from;if(c)for(const e in t){if(void 0===t[e]&&a.options.ignoreUndefined)continue;if(e===a.to)continue;const r=a.from.exec(e);r&&s.push({from:e,to:a.to,match:r})}else!Object.prototype.hasOwnProperty.call(t,a.from)||void 0===t[a.from]&&a.options.ignoreUndefined||s.push(a);for(const u of s){const s=u.from;let l=u.to;if(l instanceof f&&(l=l.render(t,r,n,u.match)),s!==l){if(!a.options.multiple&&o[l]&&(i.push(e.$_createError("object.rename.multiple",t,{from:s,to:l,pattern:c},r,n)),n.abortEarly))return!1;if(Object.prototype.hasOwnProperty.call(t,l)&&!a.options.override&&!o[l]&&(i.push(e.$_createError("object.rename.override",t,{from:s,to:l,pattern:c},r,n)),n.abortEarly))return!1;void 0===t[s]?delete t[l]:t[l]=t[s],o[l]=!0,a.options.alias||delete t[s]}}}return!0},h.unknown=function(e,t,r,n,i,o){if(e.$_terms.patterns){let a=!1;const s=e.$_terms.patterns.map((e=>{if(e.matches)return a=!0,[]})),c=[t,...i.ancestors];for(const u of r){const a=t[u],l=[...i.path,u];for(let d=0;d{"use strict";const n=r(375),i=r(8068),o=r(8160),a=r(3292),s=r(6354),c={};e.exports=i.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(e,t)=>e.ref(t),validate(e,t){let{schema:r,state:i,prefs:o}=t;n(r.$_terms.link,"Uninitialized link schema");const a=c.generate(r,e,i,o),s=r.$_terms.link[0].ref;return a.$_validate(e,i.nest(a,`link:${s.display}:${a.type}`),o)},generate:(e,t,r,n)=>c.generate(e,t,r,n),rules:{ref:{method(e){n(!this.$_terms.link,"Cannot reinitialize schema"),e=a.ref(e),n("value"===e.type||"local"===e.type,"Invalid reference type:",e.type),n("local"===e.type||"root"===e.ancestor||e.ancestor>0,"Link cannot reference itself");const t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("relative",e)}}},overrides:{concat(e){n(this.$_terms.link,"Uninitialized link schema"),n(o.isSchema(e),"Invalid schema object"),n("link"!==e.type,"Cannot merge type link with another link");const t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build:(e,t)=>(n(t.link,"Invalid link description missing link"),e.ref(t.link))}}),c.generate=function(e,t,r,n){let i=r.mainstay.links.get(e);if(i)return i._generate(t,r,n).schema;const o=e.$_terms.link[0].ref,{perspective:a,path:s}=c.perspective(o,r);c.assert(a,"which is outside of schema boundaries",o,e,r,n);try{i=s.length?a.$_reach(s):a}catch(t){c.assert(!1,"to non-existing schema",o,e,r,n)}return c.assert("link"!==i.type,"which is another link",o,e,r,n),e._flags.relative||r.mainstay.links.set(e,i),i._generate(t,r,n).schema},c.perspective=function(e,t){if("local"===e.type){for(const{schema:r,key:n}of t.schemas){if((r._flags.id||n)===e.path[0])return{perspective:r,path:e.path.slice(1)};if(r.$_terms.shared)for(const t of r.$_terms.shared)if(t._flags.id===e.path[0])return{perspective:t,path:e.path.slice(1)}}return{perspective:null,path:null}}return"root"===e.ancestor?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},c.assert=function(e,t,r,i,o,a){e||n(!1,`"${s.label(i._flags,o,a)}" contains link reference "${r.display}" ${t}`)}},3832:(e,t,r)=>{"use strict";const n=r(375),i=r(8068),o=r(8160),a={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/};e.exports=i.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(e,t){let{schema:r,error:n}=t;if(!e.match(a.numberRx))return;e=e.trim();const i={value:parseFloat(e)};if(0===i.value&&(i.value=0),!r._flags.unsafe)if(e.match(/e/i)){if(a.extractSignificantDigits(e)!==a.extractSignificantDigits(String(i.value)))return i.errors=n("number.unsafe"),i}else{const t=i.value.toString();if(t.match(/e/i))return i;if(t!==a.normalizeDecimal(e))return i.errors=n("number.unsafe"),i}return i}},validate(e,t){let{schema:r,error:n,prefs:i}=t;if(e===1/0||e===-1/0)return{value:e,errors:n("number.infinity")};if(!o.isNumber(e))return{value:e,errors:n("number.base")};const a={value:e};if(i.convert){const e=r.$_getRule("precision");if(e){const t=Math.pow(10,e.args.limit);a.value=Math.round(a.value*t)/t}}return 0===a.value&&(a.value=0),!r._flags.unsafe&&(e>Number.MAX_SAFE_INTEGER||e"})}},integer:{method(){return this.$_addRule("integer")},validate:(e,t)=>Math.trunc(e)-e==0?e:t.error("number.integer")},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{limit:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{limit:e},operator:">="})}},multiple:{method(e){return this.$_addRule({name:"multiple",args:{base:e}})},validate(e,t,r,n){let{base:i}=r;return e*(1/i)%1==0?e:t.error("number.multiple",{multiple:n.args.base,value:e})},args:[{name:"base",ref:!0,assert:e=>"number"==typeof e&&isFinite(e)&&e>0,message:"must be a positive number"}],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(e,t)=>Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(e){return n(Number.isSafeInteger(e),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:e}})},validate(e,t,r){let{limit:n}=r;const i=e.toString().match(a.precisionRx);return Math.max((i[1]?i[1].length:0)-(i[2]?parseInt(i[2],10):0),0)<=n?e:t.error("number.precision",{limit:n,value:e})},convert:!0},sign:{method(e){return n(["negative","positive"].includes(e),"Invalid sign",e),this.$_addRule({name:"sign",args:{sign:e}})},validate(e,t,r){let{sign:n}=r;return"negative"===n&&e<0||"positive"===n&&e>0?e:t.error(`number.${n}`)}},unsafe:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("unsafe",e)}}},cast:{string:{from:e=>"number"==typeof e,to:(e,t)=>e.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),a.extractSignificantDigits=function(e){return e.replace(a.exponentialPartRegex,"").replace(a.dotRegex,"").replace(a.trailingZerosRegex,"").replace(a.leadingSignAndZerosRegex,"")},a.normalizeDecimal=function(e){return(e=e.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&e.endsWith("0")&&(e=e.replace(/0+$/,"")),"-0"===e?"0":e}},8966:(e,t,r)=>{"use strict";const n=r(7824);e.exports=n.extend({type:"object",cast:{map:{from:e=>e&&"object"==typeof e,to:(e,t)=>new Map(Object.entries(e))}}})},7417:(e,t,r)=>{"use strict";const n=r(375),i=r(5380),o=r(1745),a=r(9959),s=r(6064),c=r(9926),u=r(5752),l=r(8068),d=r(8160),f={tlds:c instanceof Set&&{tlds:{allow:c,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:/^[a-f0-9]+$/i,ipRegex:a.regex({cidr:"forbidden"}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};e.exports=l.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(e,t){let{schema:r,state:n,prefs:i}=t;const o=r.$_getRule("normalize");o&&(e=e.normalize(o.args.form));const a=r.$_getRule("case");a&&(e="upper"===a.args.direction?e.toLocaleUpperCase():e.toLocaleLowerCase());const s=r.$_getRule("trim");if(s&&s.args.enabled&&(e=e.trim()),r.$_terms.replacements)for(const u of r.$_terms.replacements)e=e.replace(u.pattern,u.replacement);const c=r.$_getRule("hex");if(c&&c.args.options.byteAligned&&e.length%2!=0&&(e=`0${e}`),r.$_getRule("isoDate")){const t=f.isoDate(e);t&&(e=t)}if(r._flags.truncate){const t=r.$_getRule("max");if(t){let o=t.args.limit;if(d.isResolvable(o)&&(o=o.resolve(e,n,i),!d.limit(o)))return{value:e,errors:r.$_createError("any.ref",o,{ref:t.args.limit,arg:"limit",reason:"must be a positive integer"},n,i)};e=e.slice(0,o)}}return{value:e}}},validate(e,t){let{schema:r,error:n}=t;if("string"!=typeof e)return{value:e,errors:n("string.base")};if(""===e){const t=r.$_getRule("min");if(t&&0===t.args.limit)return;return{value:e,errors:n("string.empty")}}},rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(e,t)=>/^[a-zA-Z0-9]+$/.test(e)?e:t.error("string.alphanum")},base64:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.assertOptions(e,["paddingRequired","urlSafe"]),e={urlSafe:!1,paddingRequired:!0,...e},n("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),n("boolean"==typeof e.urlSafe,"urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:e}})},validate(e,t,r){let{options:n}=r;return f.base64Regex[n.paddingRequired][n.urlSafe].test(e)?e:t.error("string.base64")}},case:{method(e){return n(["lower","upper"].includes(e),"Invalid case:",e),this.$_addRule({name:"case",args:{direction:e}})},validate(e,t,r){let{direction:n}=r;return"lower"===n&&e===e.toLocaleLowerCase()||"upper"===n&&e===e.toLocaleUpperCase()?e:t.error(`string.${n}case`)},convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(e,t){let r=e.length,n=0,i=1;for(;r--;){const t=e.charAt(r)*i;n+=t-9*(t>9),i^=3}return n>0&&n%10==0?e:t.error("string.creditCard")}},dataUri:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.assertOptions(e,["paddingRequired"]),e={paddingRequired:!0,...e},n("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:e}})},validate(e,t,r){let{options:n}=r;const i=e.match(f.dataUriRegex);if(i){if(!i[2])return e;if("base64"!==i[2])return e;if(f.base64Regex[n.paddingRequired].false.test(i[3]))return e}return t.error("string.dataUri")}},domain:{method(e){e&&d.assertOptions(e,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const t=f.addressOptions(e);return this.$_addRule({name:"domain",args:{options:e},address:t})},validate(e,t,r,n){let{address:o}=n;return i.isValid(e,o)?e:t.error("string.domain")}},email:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["allowFullyQualified","allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),n(void 0===e.multiple||"boolean"==typeof e.multiple,"multiple option must be an boolean");const t=f.addressOptions(e),r=new RegExp(`\\s*[${e.separator?s(e.separator):","}]\\s*`);return this.$_addRule({name:"email",args:{options:e},regex:r,address:t})},validate(e,t,r,n){let{options:i}=r,{regex:a,address:s}=n;const c=i.multiple?e.split(a):[e],u=[];for(const l of c)o.isValid(l,s)||u.push(l);return u.length?t.error("string.email",{value:e,invalids:u}):e}},guid:{alias:"uuid",method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["version","separator"]);let t="";if(e.version){const r=[].concat(e.version);n(r.length>=1,"version must have at least 1 valid version specified");const i=new Set;for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:{};return d.assertOptions(e,["byteAligned"]),e={byteAligned:!1,...e},n("boolean"==typeof e.byteAligned,"byteAligned must be boolean"),this.$_addRule({name:"hex",args:{options:e}})},validate(e,t,r){let{options:n}=r;return f.hexRegex.test(e)?n.byteAligned&&e.length%2!=0?t.error("string.hexAlign"):e:t.error("string.hex")}},hostname:{method(){return this.$_addRule("hostname")},validate:(e,t)=>i.isValid(e,{minDomainSegments:1})||f.ipRegex.test(e)?e:t.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["cidr","version"]);const{cidr:t,versions:r,regex:n}=a.regex(e),i=e.version?r:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:t,version:i}},regex:n})},validate(e,t,r,n){let{options:i}=r,{regex:o}=n;return o.test(e)?e:i.version?t.error("string.ipVersion",{value:e,cidr:i.cidr,version:i.version}):t.error("string.ip",{value:e,cidr:i.cidr})}},isoDate:{method(){return this.$_addRule("isoDate")},validate(e,t){let{error:r}=t;return f.isoDate(e)?e:r("string.isoDate")}},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(e,t)=>f.isoDurationRegex.test(e)?e:t.error("string.isoDuration")},length:{method(e,t){return f.length(this,"length",e,"=",t)},validate(e,t,r,n){let{limit:i,encoding:o}=r,{name:a,operator:s,args:c}=n;const u=!o&&e.length;return d.compare(u,i,s)?e:t.error("string."+a,{limit:c.limit,value:e,encoding:o})},args:[{name:"limit",ref:!0,assert:d.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(e,t){return f.length(this,"max",e,"<=",t)},args:["limit","encoding"]},min:{method(e,t){return f.length(this,"min",e,">=",t)},args:["limit","encoding"]},normalize:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"NFC";return n(f.normalizationForms.includes(e),"normalization form must be one of "+f.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:e}})},validate(e,t,r){let{error:n}=t,{form:i}=r;return e===e.normalize(i)?e:n("string.normalize",{value:e,form:i})},convert:!0},pattern:{alias:"regex",method(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(e instanceof RegExp,"regex must be a RegExp"),n(!e.flags.includes("g")&&!e.flags.includes("y"),"regex should not use global or sticky mode"),"string"==typeof t&&(t={name:t}),d.assertOptions(t,["invert","name"]);const r=["string.pattern",t.invert?".invert":"",t.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:e,options:t},errorCode:r})},validate(e,t,r,n){let{regex:i,options:o}=r,{errorCode:a}=n;return i.test(e)^o.invert?e:t.error(a,{name:o.name,regex:i,value:e})},args:["regex","options"],multi:!0},replace:{method(e,t){"string"==typeof e&&(e=new RegExp(s(e),"g")),n(e instanceof RegExp,"pattern must be a RegExp"),n("string"==typeof t,"replacement must be a String");const r=this.clone();return r.$_terms.replacements||(r.$_terms.replacements=[]),r.$_terms.replacements.push({pattern:e,replacement:t}),r}},token:{method(){return this.$_addRule("token")},validate:(e,t)=>/^\w+$/.test(e)?e:t.error("string.token")},trim:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:e}})},validate(e,t,r){let{enabled:n}=r;return n&&e!==e.trim()?t.error("string.trim"):e},convert:!0},truncate:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("truncate",e)}},uppercase:{method(){return this.case("upper")}},uri:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),e.domain&&d.assertOptions(e.domain,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:t,scheme:r}=u.regex(e),n=e.domain?f.addressOptions(e.domain):null;return this.$_addRule({name:"uri",args:{options:e},regex:t,domain:n,scheme:r})},validate(e,t,r,n){let{options:o}=r,{regex:a,domain:s,scheme:c}=n;if(["http:/","https:/"].includes(e))return t.error("string.uri");const u=a.exec(e);if(u){const r=u[1]||u[2];return!s||o.allowRelative&&!r||i.isValid(r,s)?e:t.error("string.domain",{value:r})}return o.relativeOnly?t.error("string.uriRelativeOnly"):o.scheme?t.error("string.uriCustomScheme",{scheme:c,value:e}):t.error("string.uri")}}},manifest:{build(e,t){if(t.replacements)for(const{pattern:r,replacement:n}of t.replacements)e=e.replace(r,n);return e}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),f.addressOptions=function(e){if(!e)return e;if(n(void 0===e.minDomainSegments||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,"minDomainSegments must be a positive integer"),n(void 0===e.maxDomainSegments||Number.isSafeInteger(e.maxDomainSegments)&&e.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),!1===e.tlds)return e;if(!0===e.tlds||void 0===e.tlds)return n(f.tlds,"Built-in TLD list disabled"),Object.assign({},e,f.tlds);n("object"==typeof e.tlds,"tlds must be true, false, or an object");const t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),n(e.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),n(!e.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),f.validateTlds(e.tlds.deny,"tlds.deny"),e;const r=e.tlds.allow;return r?!0===r?(n(f.tlds,"Built-in TLD list disabled"),Object.assign({},e,f.tlds)):(Array.isArray(r)&&(e=Object.assign({},e,{tlds:{allow:new Set(r)}})),n(e.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),f.validateTlds(e.tlds.allow,"tlds.allow"),e):e},f.validateTlds=function(e,t){for(const r of e)n(i.isValid(r,{minDomainSegments:1,maxDomainSegments:1}),`${t} must contain valid top level domain names`)},f.isoDate=function(e){if(!d.isIsoDate(e))return null;/.*T.*[+-]\d\d$/.test(e)&&(e+="00");const t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},f.length=function(e,t,r,i,o){return n(!o||!1,"Invalid encoding:",o),e.$_addRule({name:t,method:"length",args:{limit:r,encoding:o},operator:i})}},8826:(e,t,r)=>{"use strict";const n=r(375),i=r(8068),o={};o.Map=class extends Map{slice(){return new o.Map(this)}},e.exports=i.extend({type:"symbol",terms:{map:{init:new o.Map}},coerce:{method(e,t){let{schema:r,error:n}=t;const i=r.$_terms.map.get(e);return i&&(e=i),r._flags.only&&"symbol"!=typeof e?{value:e,errors:n("symbol.map",{map:r.$_terms.map})}:{value:e}}},validate(e,t){let{error:r}=t;if("symbol"!=typeof e)return{value:e,errors:r("symbol.base")}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&"object"==typeof e&&(e=Object.entries(e)),n(e&&e[Symbol.iterator],"Iterable must be an iterable or object");const t=this.clone(),r=[];for(const i of e){n(i&&i[Symbol.iterator],"Entry must be an iterable");const[e,o]=i;n("object"!=typeof e&&"function"!=typeof e&&"symbol"!=typeof e,"Key must not be of type object, function, or Symbol"),n("symbol"==typeof o,"Value must be a Symbol"),t.$_terms.map.set(e,o),r.push(o)}return t.valid(...r)}}},manifest:{build:(e,t)=>(t.map&&(e=e.map(t.map)),e)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(738),a=r(9621),s=r(8160),c=r(6354),u=r(493),l={result:Symbol("result")};t.entry=function(e,t,r){let i=s.defaults;r&&(n(void 0===r.warnings,"Cannot override warnings preference in synchronous validation"),n(void 0===r.artifacts,"Cannot override artifacts preference in synchronous validation"),i=s.preferences(s.defaults,r));const o=l.entry(e,t,i);n(!o.mainstay.externals.length,"Schema with external rules must use validateAsync()");const a={value:o.value};return o.error&&(a.error=o.error),o.mainstay.warnings.length&&(a.warning=c.details(o.mainstay.warnings)),o.mainstay.debug&&(a.debug=o.mainstay.debug),o.mainstay.artifacts&&(a.artifacts=o.mainstay.artifacts),a},t.entryAsync=async function(e,t,r){let n=s.defaults;r&&(n=s.preferences(s.defaults,r));const i=l.entry(e,t,n),o=i.mainstay;if(i.error)throw o.debug&&(i.error.debug=o.debug),i.error;if(o.externals.length){let t=i.value;const u=[];for(const i of o.externals){const d=i.state.path,f="link"===i.schema.type?o.links.get(i.schema):null;let h,p,g=t;const m=d.length?[t]:[],y=d.length?a(e,d):e;if(d.length){h=d[d.length-1];let e=t;for(const t of d.slice(0,-1))e=e[t],m.unshift(e);p=m[0],g=p[h]}try{const e=(e,t)=>(f||i.schema).$_createError(e,g,t,i.state,n),a=await i.method(g,{schema:i.schema,linked:f,state:i.state,prefs:r,original:y,error:e,errorsArray:l.errorsArray,warn:(e,t)=>o.warnings.push((f||i.schema).$_createError(e,g,t,i.state,n)),message:(e,t)=>(f||i.schema).$_createError("external",g,t,i.state,n,{messages:e})});if(void 0===a||a===g)continue;if(a instanceof c.Report){if(o.tracer.log(i.schema,i.state,"rule","external","error"),u.push(a),n.abortEarly)break;continue}if(Array.isArray(a)&&a[s.symbols.errors]){if(o.tracer.log(i.schema,i.state,"rule","external","error"),u.push(...a),n.abortEarly)break;continue}p?(o.tracer.value(i.state,"rule",g,a,"external"),p[h]=a):(o.tracer.value(i.state,"rule",t,a,"external"),t=a)}catch(e){throw n.errors.label&&(e.message+=` (${i.label})`),e}}if(i.value=t,u.length)throw i.error=c.process(u,e,n),o.debug&&(i.error.debug=o.debug),i.error}if(!n.warnings&&!n.debug&&!n.artifacts)return i.value;const u={value:i.value};return o.warnings.length&&(u.warning=c.details(o.warnings)),o.debug&&(u.debug=o.debug),o.artifacts&&(u.artifacts=o.artifacts),u},l.Mainstay=class{constructor(e,t,r){this.externals=[],this.warnings=[],this.tracer=e,this.debug=t,this.links=r,this.shadow=null,this.artifacts=null,this._snapshots=[]}snapshot(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}restore(){const e=this._snapshots.pop();this.externals=e.externals,this.warnings=e.warnings}},l.entry=function(e,r,n){const{tracer:i,cleanup:o}=l.tracer(r,n),a=n.debug?[]:null,s=r._ids._schemaChain?new Map:null,d=new l.Mainstay(i,a,s),f=r._ids._schemaChain?[{schema:r}]:null,h=new u([],[],{mainstay:d,schemas:f}),p=t.validate(e,r,h,n);o&&r.$_root.untrace();const g=c.process(p.errors,e,n);return{value:p.value,error:g,mainstay:d}},l.tracer=function(e,t){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:t.debug?(n(e.$_root.trace,"Debug mode not supported"),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:l.ignore}},t.validate=function(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t.$_terms.whens&&(t=t._generate(e,r,n).schema),t._preferences&&(n=l.prefs(t,n)),t._cache&&n.cache){const n=t._cache.get(e);if(r.mainstay.tracer.debug(r,"validate","cached",!!n),n)return n}const o=(i,o,a)=>t.$_createError(i,e,o,a||r,n),a={original:e,prefs:n,schema:t,state:r,error:o,errorsArray:l.errorsArray,warn:(e,t,n)=>r.mainstay.warnings.push(o(e,t,n)),message:(i,o)=>t.$_createError("custom",e,o,r,n,{messages:i})};r.mainstay.tracer.entry(t,r);const c=t._definition;if(c.prepare&&void 0!==e&&n.convert){const t=c.prepare(e,a);if(t){if(r.mainstay.tracer.value(r,"prepare",e,t.value),t.errors)return l.finalize(t.value,[].concat(t.errors),a);e=t.value}}if(c.coerce&&void 0!==e&&n.convert&&(!c.coerce.from||c.coerce.from.includes(typeof e))){const t=c.coerce.method(e,a);if(t){if(r.mainstay.tracer.value(r,"coerced",e,t.value),t.errors)return l.finalize(t.value,[].concat(t.errors),a);e=t.value}}const u=t._flags.empty;u&&u.$_match(l.trim(e,t),r.nest(u),s.defaults)&&(r.mainstay.tracer.value(r,"empty",e,void 0),e=void 0);const d=i.presence||t._flags.presence||(t._flags._endedSwitch?null:n.presence);if(void 0===e){if("forbidden"===d)return l.finalize(e,null,a);if("required"===d)return l.finalize(e,[t.$_createError("any.required",e,null,r,n)],a);if("optional"===d){if(t._flags.default!==s.symbols.deepDefault)return l.finalize(e,null,a);r.mainstay.tracer.value(r,"default",e,{}),e={}}}else if("forbidden"===d)return l.finalize(e,[t.$_createError("any.unknown",e,null,r,n)],a);const f=[];if(t._valids){const i=t._valids.get(e,r,n,t._flags.insensitive);if(i)return n.convert&&(r.mainstay.tracer.value(r,"valids",e,i.value),e=i.value),r.mainstay.tracer.filter(t,r,"valid",i),l.finalize(e,null,a);if(t._flags.only){const i=t.$_createError("any.only",e,{valids:t._valids.values({display:!0})},r,n);if(n.abortEarly)return l.finalize(e,[i],a);f.push(i)}}if(t._invalids){const i=t._invalids.get(e,r,n,t._flags.insensitive);if(i){r.mainstay.tracer.filter(t,r,"invalid",i);const o=t.$_createError("any.invalid",e,{invalids:t._invalids.values({display:!0})},r,n);if(n.abortEarly)return l.finalize(e,[o],a);f.push(o)}}if(c.validate){const t=c.validate(e,a);if(t&&(r.mainstay.tracer.value(r,"base",e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return f.push(t.errors),l.finalize(e,f,a);if(t.errors.length)return f.push(...t.errors),l.finalize(e,f,a)}}return t._rules.length?l.rules(e,f,a):l.finalize(e,f,a)},l.rules=function(e,t,r){const{schema:n,state:i,prefs:o}=r;for(const a of n._rules){const c=n._definition.rules[a.method];if(c.convert&&o.convert){i.mainstay.tracer.log(n,i,"rule",a.name,"full");continue}let u,d=a.args;if(a._resolve.length){d=Object.assign({},d);for(const t of a._resolve){const r=c.argsByName.get(t),a=d[t].resolve(e,i,o),l=r.normalize?r.normalize(a):a,f=s.validateArg(l,null,r);if(f){u=n.$_createError("any.ref",a,{arg:t,ref:d[t],reason:f},i,o);break}d[t]=l}}u=u||c.validate(e,r,d,a);const f=l.rule(u,a);if(f.errors){if(i.mainstay.tracer.log(n,i,"rule",a.name,"error"),a.warn){i.mainstay.warnings.push(...f.errors);continue}if(o.abortEarly)return l.finalize(e,f.errors,r);t.push(...f.errors)}else i.mainstay.tracer.log(n,i,"rule",a.name,"pass"),i.mainstay.tracer.value(i,"rule",e,f.value,a.name),e=f.value}return l.finalize(e,t,r)},l.rule=function(e,t){return e instanceof c.Report?(l.error(e,t),{errors:[e],value:null}):Array.isArray(e)&&e[s.symbols.errors]?(e.forEach((e=>l.error(e,t))),{errors:e,value:null}):{errors:null,value:e}},l.error=function(e,t){return t.message&&e._setTemplate(t.message),e},l.finalize=function(e,t,r){t=t||[];const{schema:i,state:o,prefs:a}=r;if(t.length){const n=l.default("failover",void 0,t,r);void 0!==n&&(o.mainstay.tracer.value(o,"failover",e,n),e=n,t=[])}if(t.length&&i._flags.error)if("function"==typeof i._flags.error){t=i._flags.error(t),Array.isArray(t)||(t=[t]);for(const e of t)n(e instanceof Error||e instanceof c.Report,"error() must return an Error object")}else t=[i._flags.error];if(void 0===e){const n=l.default("default",e,t,r);o.mainstay.tracer.value(o,"default",e,n),e=n}if(i._flags.cast&&void 0!==e){const t=i._definition.cast[i._flags.cast];if(t.from(e)){const n=t.to(e,r);o.mainstay.tracer.value(o,"cast",e,n,i._flags.cast),e=n}}if(i.$_terms.externals&&a.externals&&!1!==a._externals)for(const{method:n}of i.$_terms.externals)o.mainstay.externals.push({method:n,schema:i,state:o,label:c.label(i._flags,o,a)});const s={value:e,errors:t.length?t:null};return i._flags.result&&(s.value="strip"===i._flags.result?void 0:r.original,o.mainstay.tracer.value(o,i._flags.result,e,s.value),o.shadow(e,i._flags.result)),i._cache&&!1!==a.cache&&!i._refs.length&&i._cache.set(r.original,s),void 0===e||s.errors||void 0===i._flags.artifact||(o.mainstay.artifacts=o.mainstay.artifacts||new Map,o.mainstay.artifacts.has(i._flags.artifact)||o.mainstay.artifacts.set(i._flags.artifact,[]),o.mainstay.artifacts.get(i._flags.artifact).push(o.path)),s},l.prefs=function(e,t){const r=t===s.defaults;return r&&e._preferences[s.symbols.prefs]?e._preferences[s.symbols.prefs]:(t=s.preferences(t,e._preferences),r&&(e._preferences[s.symbols.prefs]=t),t)},l.default=function(e,t,r,n){const{schema:o,state:a,prefs:c}=n,u=o._flags[e];if(c.noDefaults||void 0===u)return t;if(a.mainstay.tracer.log(o,a,"rule",e,"full"),!u)return u;if("function"==typeof u){const s=u.length?[i(a.ancestors[0]),n]:[];try{return u(...s)}catch(t){return void r.push(o.$_createError(`any.${e}`,null,{error:t},a,c))}}return"object"!=typeof u?u:u[s.symbols.literal]?u.literal:s.isResolvable(u)?u.resolve(t,a,c):i(u)},l.trim=function(e,t){if("string"!=typeof e)return e;const r=t.$_getRule("trim");return r&&r.args.enabled?e.trim():e},l.ignore={active:!1,debug:o,entry:o,filter:o,log:o,resolve:o,value:o},l.errorsArray=function(){const e=[];return e[s.symbols.errors]=!0,e}},2036:(e,t,r)=>{"use strict";const n=r(375),i=r(9474),o=r(8160),a={};e.exports=a.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=a.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){o.isResolvable(e)?this._refs.has(e)||(this._refs.add(e),t&&t.register(e)):this.has(e,null,null,!1)||(this._values.add(e),"string"==typeof e&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,r){if(e=e||new a.Values,t){if(t._override)return t.clone();for(const r of[...t._values,...t._refs])e.add(r)}if(r)for(const n of[...r._values,...r._refs])e.remove(n);return e.length?e:null}remove(e){o.isResolvable(e)?this._refs.delete(e):(this._values.delete(e),"string"==typeof e&&this._lowercase.delete(e.toLowerCase()))}has(e,t,r,n){return!!this.get(e,t,r,n)}get(e,t,r,n){if(!this.length)return!1;if(this._values.has(e))return{value:e};if("string"==typeof e&&e&&n){const t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&"object"!=typeof e)return!1;if("object"==typeof e)for(const o of this._values)if(i(o,e))return{value:o};if(t)for(const o of this._refs){const a=o.resolve(e,t,r,null,{in:!0});if(void 0===a)continue;const s=o.in&&"object"==typeof a?Array.isArray(a)?a:Object.keys(a):[a];for(const t of s)if(typeof t==typeof e)if(n&&e&&"string"==typeof e){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:o}}else if(i(t,e))return{value:t,ref:o}}return!1}override(){this._override=!0}values(e){if(e&&e.display){const e=[];for(const t of[...this._values,...this._refs])void 0!==t&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){const e=new a.Values(this._values,this._refs);return e._override=this._override,e}concat(e){n(!e._override,"Cannot concat override set of values");const t=new a.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){const e=[];this._override&&e.push({override:!0});for(const t of this._values.values())e.push(t&&"object"==typeof t?{value:t}:t);for(const t of this._refs.values())e.push(t.describe());return e}},a.Values.prototype[o.symbols.values]=!0,a.Values.prototype.slice=a.Values.prototype.clone,a.lowercases=function(e){const t=new Map;if(e)for(const r of e)"string"==typeof r&&t.set(r.toLowerCase(),r);return t}},978:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(1687),a=r(9621),s={};e.exports=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n(e&&"object"==typeof e,"Invalid defaults value: must be an object"),n(!t||!0===t||"object"==typeof t,"Invalid source value: must be true, falsy or an object"),n("object"==typeof r,"Invalid options: must be an object"),!t)return null;if(r.shallow)return s.applyToDefaultsWithShallow(e,t,r);const a=i(e);if(!0===t)return a;const c=void 0!==r.nullOverride&&r.nullOverride;return o(a,t,{nullOverride:c,mergeArrays:!1})},s.applyToDefaultsWithShallow=function(e,t,r){const c=r.shallow;n(Array.isArray(c),"Invalid keys");const u=new Map,l=!0===t?null:new Set;for(let n of c){n=Array.isArray(n)?n:n.split(".");const r=a(e,n);r&&"object"==typeof r?u.set(r,l&&a(t,n)||r):l&&l.add(n)}const d=i(e,{},u);if(!l)return d;for(const n of l)s.reachCopy(d,t,n);const f=void 0!==r.nullOverride&&r.nullOverride;return o(d,t,{nullOverride:f,mergeArrays:!1})},s.reachCopy=function(e,t,r){for(const o of r){if(!(o in t))return;const e=t[o];if("object"!=typeof e||null===e)return;t=e}const n=t;let i=e;for(let o=0;o{"use strict";const n=r(7916);e.exports=function(e){if(!e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i{"use strict";const n=r(9621),i=r(4277),o=r(7043),a={needsProtoHack:new Set([i.set,i.map,i.weakSet,i.weakMap])};e.exports=a.clone=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("object"!=typeof e||null===e)return e;let n=a.clone,s=r;if(t.shallow){if(!0!==t.shallow)return a.cloneWithShallow(e,t);n=e=>e}else if(s){const t=s.get(e);if(t)return t}else s=new Map;const c=i.getInternalProto(e);if(c===i.buffer)return!1;if(c===i.date)return new Date(e.getTime());if(c===i.regex)return new RegExp(e);const u=a.base(e,c,t);if(u===e)return e;if(s&&s.set(e,u),c===i.set)for(const i of e)u.add(n(i,t,s));else if(c===i.map)for(const[i,o]of e)u.set(i,n(o,t,s));const l=o.keys(e,t);for(const o of l){if("__proto__"===o)continue;if(c===i.array&&"length"===o){u.length=e.length;continue}const r=Object.getOwnPropertyDescriptor(e,o);r?r.get||r.set?Object.defineProperty(u,o,r):r.enumerable?u[o]=n(e[o],t,s):Object.defineProperty(u,o,{enumerable:!1,writable:!0,configurable:!0,value:n(e[o],t,s)}):Object.defineProperty(u,o,{enumerable:!0,writable:!0,configurable:!0,value:n(e[o],t,s)})}return u},a.cloneWithShallow=function(e,t){const r=t.shallow;(t=Object.assign({},t)).shallow=!1;const i=new Map;for(const o of r){const t=n(e,o);"object"!=typeof t&&"function"!=typeof t||i.set(t,t)}return a.clone(e,t,i)},a.base=function(e,t,r){if(!1===r.prototype)return a.needsProtoHack.has(t)?new t.constructor:t===i.array?[]:{};const n=Object.getPrototypeOf(e);if(n&&n.isImmutable)return e;if(t===i.array){const e=[];return n!==t&&Object.setPrototypeOf(e,n),e}if(a.needsProtoHack.has(t)){const e=new n.constructor;return n!==t&&Object.setPrototypeOf(e,n),e}return Object.create(n)}},9474:(e,t,r)=>{"use strict";const n=r(4277),i={mismatched:null};e.exports=function(e,t,r){return r=Object.assign({prototype:!0},r),!!i.isDeepEqual(e,t,r,[])},i.isDeepEqual=function(e,t,r,o){if(e===t)return 0!==e||1/e==1/t;const a=typeof e;if(a!==typeof t)return!1;if(null===e||null===t)return!1;if("function"===a){if(!r.deepFunction||e.toString()!==t.toString())return!1}else if("object"!==a)return e!=e&&t!=t;const s=i.getSharedType(e,t,!!r.prototype);switch(s){case n.buffer:return!1;case n.promise:return e===t;case n.regex:return e.toString()===t.toString();case i.mismatched:return!1}for(let n=o.length-1;n>=0;--n)if(o[n].isSame(e,t))return!0;o.push(new i.SeenEntry(e,t));try{return!!i.isDeepEqualObj(s,e,t,r,o)}finally{o.pop()}},i.getSharedType=function(e,t,r){if(r)return Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?i.mismatched:n.getInternalProto(e);const o=n.getInternalProto(e);return o!==n.getInternalProto(t)?i.mismatched:o},i.valueOf=function(e){const t=e.valueOf;if(void 0===t)return e;try{return t.call(e)}catch(e){return e}},i.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},i.isSetSimpleEqual=function(e,t){for(const r of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,r))return!1;return!0},i.isDeepEqualObj=function(e,t,r,o,a){const{isDeepEqual:s,valueOf:c,hasOwnEnumerableProperty:u}=i,{keys:l,getOwnPropertySymbols:d}=Object;if(e===n.array){if(!o.part){if(t.length!==r.length)return!1;for(let e=0;e{"use strict";const n=r(8761);e.exports=class extends Error{constructor(e){super(e.filter((e=>""!==e)).map((e=>"string"==typeof e?e:e instanceof Error?e.message:n(e))).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}},5277:e=>{"use strict";const t={};e.exports=function(e){if(!e)return"";let r="";for(let n=0;n=256?"&#"+e+";":`&#x${e.toString(16).padStart(2,"0")};`)},t.isSafe=function(e){return t.safeCharCodes.has(e)},t.namedHtml=new Map([[38,"&"],[60,"<"],[62,">"],[34,"""],[160," "],[162,"¢"],[163,"£"],[164,"¤"],[169,"©"],[174,"®"]]),t.safeCharCodes=function(){const e=new Set;for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&e.add(t);return e}()},6064:e=>{"use strict";e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:e=>{"use strict";e.exports=function(){}},1687:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(7043),a={};e.exports=a.merge=function(e,t,r){if(n(e&&"object"==typeof e,"Invalid target value: must be an object"),n(null==t||"object"==typeof t,"Invalid source value: must be null, undefined, or an object"),!t)return e;if(r=Object.assign({nullOverride:!0,mergeArrays:!0},r),Array.isArray(t)){n(Array.isArray(e),"Cannot merge array onto an object"),r.mergeArrays||(e.length=0);for(let n=0;n{"use strict";const n=r(375),i={};e.exports=function(e,t,r){if(!1===t||null==t)return e;"string"==typeof(r=r||{})&&(r={separator:r});const o=Array.isArray(t);n(!o||!r.separator,"Separator option is not valid for array-based chain");const a=o?t:t.split(r.separator||".");let s=e;for(let c=0;c{"use strict";e.exports=function(){try{return JSON.stringify(...arguments)}catch(e){return"[Cannot display object: "+e.message+"]"}}},4277:(e,t)=>{"use strict";const r={};t=e.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},r.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]),t.getInternalProto=function(e){if(Array.isArray(e))return t.array;if(e instanceof Date)return t.date;if(e instanceof RegExp)return t.regex;if(e instanceof Error)return t.error;const n=Object.prototype.toString.call(e);return r.typeMap.get(n)||t.generic}},7043:(e,t)=>{"use strict";t.keys=function(e){return!1!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).symbols?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}},3652:(e,t,r)=>{"use strict";const n=r(375),i={};t.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(e,t){const r=[].concat((t=t||{}).before||[]),i=[].concat(t.after||[]),o=t.group||"?",a=t.sort||0;n(!r.includes(o),`Item cannot come before itself: ${o}`),n(!r.includes("?"),"Item cannot come before unassociated items"),n(!i.includes(o),`Item cannot come after itself: ${o}`),n(!i.includes("?"),"Item cannot come after unassociated items"),Array.isArray(e)||(e=[e]);for(const n of e){const e={seq:this._items.length,sort:a,before:r,after:i,group:o,node:n};this._items.push(e)}if(!t.manual){const e=this._sort();n(e,"item","?"!==o?`added into group ${o}`:"","created a dependencies error")}return this.nodes}merge(e){Array.isArray(e)||(e=[e]);for(const r of e)if(r)for(const e of r._items)this._items.push(Object.assign({},e));this._items.sort(i.mergeSort);for(let r=0;re.sort===t.sort?0:e.sort{"use strict";const n=r(443),i=r(2178),o={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:n.URL||URL};t.analyze=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return i.code("DOMAIN_NON_EMPTY_STRING");if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(e.length>256)return i.code("DOMAIN_TOO_LONG");if(o.nonAsciiRx.test(e)){if(!1===t.allowUnicode)return i.code("DOMAIN_INVALID_UNICODE_CHARS");e=e.normalize("NFC")}if(o.domainControlRx.test(e))return i.code("DOMAIN_INVALID_CHARS");e=o.punycode(e),t.allowFullyQualified&&"."===e[e.length-1]&&(e=e.slice(0,-1));const r=t.minDomainSegments||o.minDomainSegments,n=e.split(".");if(n.lengtht.maxDomainSegments)return i.code("DOMAIN_SEGMENTS_COUNT_MAX");const a=t.tlds;if(a){const e=n[n.length-1].toLowerCase();if(a.deny&&a.deny.has(e)||a.allow&&!a.allow.has(e))return i.code("DOMAIN_FORBIDDEN_TLDS")}for(let s=0;s63)return i.code("DOMAIN_LONG_SEGMENT");if(s{"use strict";const n=r(9848),i=r(5380),o=r(2178),a={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(n.TextEncoder||TextEncoder)};t.analyze=function(e,t){return a.email(e,t)},t.isValid=function(e,t){return!a.email(e,t)},a.email=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new Error("Invalid input: email must be a string");if(!e)return o.code("EMPTY_STRING");const r=!a.nonAsciiRx.test(e);if(!r){if(!1===t.allowUnicode)return o.code("FORBIDDEN_UNICODE");e=e.normalize("NFC")}const n=e.split("@");if(2!==n.length)return n.length>2?o.code("MULTIPLE_AT_CHAR"):o.code("MISSING_AT_CHAR");const[s,c]=n;if(!s)return o.code("EMPTY_LOCAL");if(!t.ignoreLength){if(e.length>254)return o.code("ADDRESS_TOO_LONG");if(a.encoder.encode(s).length>64)return o.code("LOCAL_TOO_LONG")}return a.local(s,r)||i.analyze(c,t)},a.local=function(e,t){const r=e.split(".");for(const n of r){if(!n.length)return o.code("EMPTY_LOCAL_SEGMENT");if(t){if(!a.atextRx.test(n))return o.code("INVALID_LOCAL_CHARS")}else for(const e of n){if(a.atextRx.test(e))continue;const t=a.binary(e);if(!a.atomRx.test(t))return o.code("INVALID_LOCAL_CHARS")}}},a.binary=function(e){return Array.from(a.encoder.encode(e)).map((e=>String.fromCharCode(e))).join("")},a.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,a.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:(e,t)=>{"use strict";t.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},t.code=function(e){return{code:e,error:t.codes[e]}}},9959:(e,t,r)=>{"use strict";const n=r(375),i=r(5752);t.regex=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(void 0===e.cidr||"string"==typeof e.cidr,"options.cidr must be a string");const t=e.cidr?e.cidr.toLowerCase():"optional";n(["required","optional","forbidden"].includes(t),"options.cidr must be one of required, optional, forbidden"),n(void 0===e.version||"string"==typeof e.version||Array.isArray(e.version),"options.version must be a string or an array of string");let r=e.version||["ipv4","ipv6","ipvfuture"];Array.isArray(r)||(r=[r]),n(r.length>=1,"options.version must have at least 1 version specified");for(let i=0;i{if("forbidden"===t)return i.ip[e];const r=`\\/${"ipv4"===e?i.ip.v4Cidr:i.ip.v6Cidr}`;return"required"===t?`${i.ip[e]}${r}`:`${i.ip[e]}(?:${r})?`})).join("|")})`,a=new RegExp(`^${o}$`);return{cidr:t,versions:r,regex:a,raw:o}}},5752:(e,t,r)=>{"use strict";const n=r(375),i=r(6064),o={generate:function(){const e={},t="\\dA-Fa-f",r="["+t+"]",n="\\w-\\.~",i="!\\$&'\\(\\)\\*\\+,;=",o="%"+t,a=n+o+i+":@",s="["+a+"]",c="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";e.ipv4address="(?:"+c+"\\.){3}"+c;const u=r+"{1,4}",l="(?:"+u+":"+u+"|"+e.ipv4address+")",d="(?:"+u+":){6}"+l,f="::(?:"+u+":){5}"+l,h="(?:"+u+")?::(?:"+u+":){4}"+l,p="(?:(?:"+u+":){0,1}"+u+")?::(?:"+u+":){3}"+l,g="(?:(?:"+u+":){0,2}"+u+")?::(?:"+u+":){2}"+l,m="(?:(?:"+u+":){0,3}"+u+")?::"+u+":"+l,y="(?:(?:"+u+":){0,4}"+u+")?::"+l,b="(?:(?:"+u+":){0,5}"+u+")?::"+u,v="(?:(?:"+u+":){0,6}"+u+")?::";e.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",e.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",e.ipv6address="(?:"+d+"|"+f+"|"+h+"|"+p+"|"+g+"|"+m+"|"+y+"|"+b+"|"+v+")",e.ipvFuture="v"+r+"+\\.["+n+i+":]+",e.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",e.schemeRegex=new RegExp(e.scheme);const w="["+n+o+i+":]*",A="["+n+o+i+"]{1,255}",C="(?:\\[(?:"+e.ipv6address+"|"+e.ipvFuture+")\\]|"+e.ipv4address+"|"+A+")",E="(?:"+w+"@)?"+C+"(?::\\d*)?",x="(?:"+w+"@)?("+C+")(?::\\d*)?",S=s+"*",I=s+"+",k="(?:\\/"+S+")*",_="\\/(?:"+I+k+")?",T=I+k,M="["+n+o+i+"@]+"+k,P="(?:\\/\\/\\/"+S+k+")";return e.hierPart="(?:(?:\\/\\/"+E+k+")|"+_+"|"+T+"|"+P+")",e.hierPartCapture="(?:(?:\\/\\/"+x+k+")|"+_+"|"+T+")",e.relativeRef="(?:(?:\\/\\/"+E+k+")|"+_+"|"+M+"|)",e.relativeRefCapture="(?:(?:\\/\\/"+x+k+")|"+_+"|"+M+"|)",e.query="["+a+"\\/\\?]*(?=#|$)",e.queryWithSquareBrackets="["+a+"\\[\\]\\/\\?]*(?=#|$)",e.fragment="["+a+"\\/\\?]*",e}};o.rfc3986=o.generate(),t.ip={v4Cidr:o.rfc3986.ipv4Cidr,v6Cidr:o.rfc3986.ipv6Cidr,ipv4:o.rfc3986.ipv4address,ipv6:o.rfc3986.ipv6address,ipvfuture:o.rfc3986.ipvFuture},o.createRegex=function(e){const t=o.rfc3986,r="(?:\\?"+(e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query)+")?(?:#"+t.fragment+")?",a=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return o.wrap(a+r);let s="";if(e.scheme){n(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.scheme),"scheme must be a RegExp, String, or Array");const r=[].concat(e.scheme);n(r.length>=1,"scheme must have at least 1 scheme specified");const o=[];for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:{};return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?o.createRegex(e):o.uriRegex}},1447:(e,t)=>{"use strict";const r={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};t.Parser=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t[r.settings]&&t.constants)for(const r in t.constants){const e=t.constants[r];if(null!==e&&!["boolean","number","string"].includes(typeof e))throw new Error(`Formula constant ${r} contains invalid ${typeof e} value type`)}this.settings=t[r.settings]?t:Object.assign({[r.settings]:!0,constants:{},functions:{}},t),this.single=null,this._parts=null,this._parse(e)}_parse(e){let n=[],i="",o=0,a=!1;const s=e=>{if(o)throw new Error("Formula missing closing parenthesis");const s=n.length?n[n.length-1]:null;if(a||i||e){if(s&&"reference"===s.type&&")"===e)return s.type="function",s.value=this._subFormula(i,s.value),void(i="");if(")"===e){const e=new t.Parser(i,this.settings);n.push({type:"segment",value:e})}else if(a){if("]"===a)return n.push({type:"reference",value:i}),void(i="");n.push({type:"literal",value:i})}else if(r.operatorCharacters.includes(i))s&&"operator"===s.type&&r.operators.includes(s.value+i)?s.value+=i:n.push({type:"operator",value:i});else if(i.match(r.numberRx))n.push({type:"constant",value:parseFloat(i)});else if(void 0!==this.settings.constants[i])n.push({type:"constant",value:this.settings.constants[i]});else{if(!i.match(r.tokenRx))throw new Error(`Formula contains invalid token: ${i}`);n.push({type:"reference",value:i})}i=""}};for(const t of e)a?t===a?(s(),a=!1):i+=t:o?"("===t?(i+=t,++o):")"===t?(--o,o?i+=t:s(t)):i+=t:t in r.literals?a=r.literals[t]:"("===t?(s(),++o):r.operatorCharacters.includes(t)?(s(),i=t,s()):" "!==t?i+=t:s();s(),n=n.map(((e,t)=>"operator"!==e.type||"-"!==e.value||t&&"operator"!==n[t-1].type?e:{type:"operator",value:"n"}));let c=!1;for(const t of n){if("operator"===t.type){if(r.operatorsPrefix.includes(t.value))continue;if(!c)throw new Error("Formula contains an operator in invalid position");if(!r.operators.includes(t.value))throw new Error(`Formula contains an unknown operator ${t.value}`)}else if(c)throw new Error("Formula missing expected operator");c=!c}if(!c)throw new Error("Formula contains invalid trailing operator");1===n.length&&["reference","literal","constant"].includes(n[0].type)&&(this.single={type:"reference"===n[0].type?"reference":"value",value:n[0].value}),this._parts=n.map((e=>{if("operator"===e.type)return r.operatorsPrefix.includes(e.value)?e:e.value;if("reference"!==e.type)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw new Error(`Formula contains invalid reference ${e.value}`);return this.settings.reference?this.settings.reference(e.value):r.reference(e.value)}))}_subFormula(e,n){const i=this.settings.functions[n];if("function"!=typeof i)throw new Error(`Formula contains unknown function ${n}`);let o=[];if(e){let t="",i=0,a=!1;const s=()=>{if(!t)throw new Error(`Formula contains function ${n} with invalid arguments ${e}`);o.push(t),t=""};for(let n=0;nnew t.Parser(e,this.settings))),function(e){const t=[];for(const r of o)t.push(r.evaluate(e));return i.call(e,...t)}}evaluate(e){const t=this._parts.slice();for(let n=t.length-2;n>=0;--n){const i=t[n];if(i&&"operator"===i.type){const o=t[n+1];t.splice(n+1,1);const a=r.evaluate(o,e);t[n]=r.single(i.value,a)}}return r.operatorsOrder.forEach((n=>{for(let i=1;i":return t>n;case">=":return t>=n;case"==":return t===n;case"!=":return t!==n;case"&&":return t&&n;case"||":return t||n}return null},r.exists=function(e){return null!=e}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{},5934:e=>{"use strict";e.exports={version:"17.9.1"}}},t={},function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}(5107);var e,t},e.exports=t()},131176:(e,t,r)=>{var n;!function(){"use strict";var i="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?a=r.g:s&&(a=self);var c=!a.JS_SHA3_NO_COMMON_JS&&e.exports,u=r.amdO,l=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,d="0123456789abcdef".split(""),f=[4,1024,262144,67108864],h=[0,8,16,24],p=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],g=[224,256,384,512],m=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],b={128:168,256:136};!a.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!l||!a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var v=function(e,t,r){return function(n){return new O(e,t,e).update(n)[r]()}},w=function(e,t,r){return function(n,i){return new O(e,t,i).update(n)[r]()}},A=function(e,t,r){return function(t,n,i,o){return I["cshake"+e].update(t,n,i,o)[r]()}},C=function(e,t,r){return function(t,n,i,o){return I["kmac"+e].update(t,n,i,o)[r]()}},E=function(e,t,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function B(e,t,r){O.call(this,e,t,r)}O.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(i);if(null===e)throw new Error(i);if(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||l&&ArrayBuffer.isView(e)))throw new Error(i);t=!0}for(var n,o,a=this.blocks,s=this.byteCount,c=e.length,u=this.blockCount,d=0,f=this.s;d>2]|=e[d]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(a[n>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=s){for(this.start=n-s,this.block=a[u],n=0;n>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},O.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(i);if(null===e)throw new Error(i);if(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||l&&ArrayBuffer.isView(e)))throw new Error(i);t=!0}var n=0,o=e.length;if(t)n=o;else for(var a=0;a=57344?n+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),n+=4)}return n+=this.encode(8*n),this.update(e),n},O.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t>4&15]+d[15&e]+d[e>>12&15]+d[e>>8&15]+d[e>>20&15]+d[e>>16&15]+d[e>>28&15]+d[e>>24&15];a%t==0&&(N(r),o=0)}return i&&(e=r[o],s+=d[e>>4&15]+d[15&e],i>1&&(s+=d[e>>12&15]+d[e>>8&15]),i>2&&(s+=d[e>>20&15]+d[e>>16&15])),s},O.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%r==0&&N(n)}return o&&(e=s<<2,t=n[a],c[e]=255&t,o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c},B.prototype=new O,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),O.prototype.finalize.call(this)};var N=function(e){var t,r,n,i,o,a,s,c,u,l,d,f,h,g,m,y,b,v,w,A,C,E,x,S,I,k,_,T,M,P,j,D,O,B,N,R,L,F,U,z,H,V,K,G,q,Q,W,J,Y,Z,$,X,ee,te,re,ne,ie,oe,ae,se,ce,ue,le;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(f=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(c<<1|u>>>31),r=o^(u<<1|c>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(l<<1|d>>>31),r=s^(d<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=c^(f<<1|h>>>31),r=u^(h<<1|f>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(i<<1|o>>>31),r=d^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,g=e[0],m=e[1],Q=e[11]<<4|e[10]>>>28,W=e[10]<<4|e[11]>>>28,T=e[20]<<3|e[21]>>>29,M=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,V=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,B=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,Y=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,j=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,R=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,$=e[35]<<15|e[34]>>>17,D=e[45]<<29|e[44]>>>3,O=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,I=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,A=e[36]<<21|e[37]>>>11,C=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,G=e[8]<<27|e[9]>>>5,q=e[9]<<27|e[8]>>>5,k=e[18]<<20|e[19]>>>12,_=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,x=e[49]<<14|e[48]>>>18,e[0]=g^~y&v,e[1]=m^~b&w,e[10]=S^~k&T,e[11]=I^~_&M,e[20]=B^~R&F,e[21]=N^~L&U,e[30]=G^~Q&J,e[31]=q^~W&Y,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=y^~v&A,e[3]=b^~w&C,e[12]=k^~T&P,e[13]=_^~M&j,e[22]=R^~F&z,e[23]=L^~U&H,e[32]=Q^~J&Z,e[33]=W^~Y&$,e[42]=ne^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~A&E,e[5]=w^~C&x,e[14]=T^~P&D,e[15]=M^~j&O,e[24]=F^~z&V,e[25]=U^~H&K,e[34]=J^~Z&X,e[35]=Y^~$&ee,e[44]=oe^~se&ue,e[45]=ae^~ce&le,e[6]=A^~E&g,e[7]=C^~x&m,e[16]=P^~D&S,e[17]=j^~O&I,e[26]=z^~V&B,e[27]=H^~K&N,e[36]=Z^~X&G,e[37]=$^~ee&q,e[46]=se^~ue&te,e[47]=ce^~le&re,e[8]=E^~g&y,e[9]=x^~m&b,e[18]=D^~S&k,e[19]=O^~I&_,e[28]=V^~B&R,e[29]=K^~N&L,e[38]=X^~G&Q,e[39]=ee^~q&W,e[48]=ue^~te&ne,e[49]=le^~re&ie,e[0]^=p[n],e[1]^=p[n+1]};if(c)e.exports=I;else{for(_=0;_{function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function r(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,n,i){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"==typeof n&&(i=n,n={}),n=n||{},i=i||function(){},a.type=n.type||"text/javascript",a.charset=n.charset||"utf8",a.async=!("async"in n)||!!n.async,a.src=e,n.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(a,n.attrs),n.text&&(a.text=""+n.text),("onload"in a?t:r)(a,i),a.onload||t(a,i),o.appendChild(a)}},470182:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object Object]",c=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[o]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l[a]=l["[object Map]"]=l["[object Number]"]=l[s]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1;var d="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,f="object"==typeof self&&self&&self.Object===Object&&self,h=d||f||Function("return this")(),p=t&&!t.nodeType&&t,g=p&&e&&!e.nodeType&&e,m=g&&g.exports===p,y=m&&d.process,b=function(){try{var e=g&&g.require&&g.require("util").types;return e||y&&y.binding&&y.binding("util")}catch(t){}}(),v=b&&b.isTypedArray;var w,A,C,E=Array.prototype,x=Function.prototype,S=Object.prototype,I=h["__core-js_shared__"],k=x.toString,_=S.hasOwnProperty,T=(w=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",M=S.toString,P=k.call(Object),j=RegExp("^"+k.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=m?h.Buffer:void 0,O=h.Symbol,B=h.Uint8Array,N=D?D.allocUnsafe:void 0,R=(A=Object.getPrototypeOf,C=Object,function(e){return A(C(e))}),L=Object.create,F=S.propertyIsEnumerable,U=E.splice,z=O?O.toStringTag:void 0,H=function(){try{var e=pe(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),V=D?D.isBuffer:void 0,K=Math.max,G=Date.now,q=pe(h,"Map"),Q=pe(Object,"create"),W=function(){function e(){}return function(t){if(!Ie(t))return{};if(L)return L(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function J(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},Y.prototype.set=function(e,t){var r=this.__data__,n=re(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Z.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(q||Y),string:new J}},Z.prototype.delete=function(e){var t=he(this,e).delete(e);return this.size-=t?1:0,t},Z.prototype.get=function(e){return he(this,e).get(e)},Z.prototype.has=function(e){return he(this,e).has(e)},Z.prototype.set=function(e,t){var r=he(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},$.prototype.clear=function(){this.__data__=new Y,this.size=0},$.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},$.prototype.get=function(e){return this.__data__.get(e)},$.prototype.has=function(e){return this.__data__.has(e)},$.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Y){var n=r.__data__;if(!q||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Z(n)}return r.set(e,t),this.size=r.size,this};var ie,oe=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[ie?a:++n];if(!1===t(i[s],s,i))break}return e};function ae(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?function(e){var t=_.call(e,z),r=e[z];try{e[z]=void 0;var n=!0}catch(o){}var i=M.call(e);n&&(t?e[z]=r:delete e[z]);return i}(e):function(e){return M.call(e)}(e)}function se(e){return ke(e)&&ae(e)==o}function ce(e){return!(!Ie(e)||function(e){return!!T&&T in e}(e))&&(xe(e)?j:c).test(function(e){if(null!=e){try{return k.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function ue(e){if(!Ie(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=me(e),r=[];for(var n in e)("constructor"!=n||!t&&_.call(e,n))&&r.push(n);return r}function le(e,t,r,n,i){e!==t&&oe(t,(function(o,a){if(i||(i=new $),Ie(o))!function(e,t,r,n,i,o,a){var c=ye(e,r),u=ye(t,r),l=a.get(u);if(l)return void ee(e,r,l);var d=o?o(c,u,r+"",e,t,a):void 0,f=void 0===d;if(f){var h=Ae(u),p=!h&&Ee(u),g=!h&&!p&&_e(u);d=u,h||p||g?Ae(c)?d=c:ke(w=c)&&Ce(w)?d=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(fe);function ve(e,t){return e===t||e!=e&&t!=t}var we=se(function(){return arguments}())?se:function(e){return ke(e)&&_.call(e,"callee")&&!F.call(e,"callee")},Ae=Array.isArray;function Ce(e){return null!=e&&Se(e.length)&&!xe(e)}var Ee=V||function(){return!1};function xe(e){if(!Ie(e))return!1;var t=ae(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Se(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ke(e){return null!=e&&"object"==typeof e}var _e=v?function(e){return function(t){return e(t)}}(v):function(e){return ke(e)&&Se(e.length)&&!!l[ae(e)]};function Te(e){return Ce(e)?X(e,!0):ue(e)}var Me,Pe=(Me=function(e,t,r){le(e,t,r)},de((function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=Me.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!Ie(r))return!1;var n=typeof t;return!!("number"==n?Ce(r)&&ge(t,r.length):"string"==n&&t in r)&&ve(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r{e=r.nmd(e);var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",u="[object Error]",l="[object Function]",d="[object Map]",f="[object Number]",h="[object Object]",p="[object Promise]",g="[object RegExp]",m="[object Set]",y="[object String]",b="[object Symbol]",v="[object WeakMap]",w="[object ArrayBuffer]",A="[object DataView]",C=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,x=/^\./,S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,I=/\\(\\)?/g,k=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[o]=T[a]=T[w]=T[s]=T[A]=T[c]=T[u]=T[l]=T[d]=T[f]=T[h]=T[g]=T[m]=T[y]=T[v]=!1;var M="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,P="object"==typeof self&&self&&self.Object===Object&&self,j=M||P||Function("return this")(),D=t&&!t.nodeType&&t,O=D&&e&&!e.nodeType&&e,B=O&&O.exports===D&&M.process,N=function(){try{return B&&B.binding("util")}catch(e){}}(),R=N&&N.isTypedArray;function L(e,t,r,n){for(var i=-1,o=e?e.length:0;++i-1},Ae.prototype.set=function(e,t){var r=this.__data__,n=Ie(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new we,map:new(se||Ae),string:new we}},Ce.prototype.delete=function(e){return Ue(this,e).delete(e)},Ce.prototype.get=function(e){return Ue(this,e).get(e)},Ce.prototype.has=function(e){return Ue(this,e).has(e)},Ce.prototype.set=function(e,t){return Ue(this,e).set(e,t),this},Ee.prototype.add=Ee.prototype.push=function(e){return this.__data__.set(e,n),this},Ee.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new Ae},xe.prototype.delete=function(e){return this.__data__.delete(e)},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ae){var n=r.__data__;if(!se||n.length<199)return n.push([e,t]),this;r=this.__data__=new Ce(n)}return r.set(e,t),this};var _e,Te,Me=(_e=function(e,t){return e&&Pe(e,t,lt)},function(e,t){if(null==e)return e;if(!nt(e))return _e(e,t);for(var r=e.length,n=Te?r:-1,i=Object(e);(Te?n--:++ns))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var l=-1,d=!0,f=1&i?new Ee:void 0;for(o.set(e,t),o.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=i}function at(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function st(e){return!!e&&"object"==typeof e}function ct(e){return"symbol"==typeof e||st(e)&&X.call(e)==b}var ut=R?function(e){return function(t){return e(t)}}(R):function(e){return st(e)&&ot(e.length)&&!!T[X.call(e)]};function lt(e){return nt(e)?Se(e):Re(e)}function dt(e){return e}e.exports=$e},187234:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",i=1/0,o=9007199254740991,a="[object Arguments]",s="[object Array]",c="[object Boolean]",u="[object Date]",l="[object Error]",d="[object Function]",f="[object Map]",h="[object Number]",p="[object Object]",g="[object Promise]",m="[object RegExp]",y="[object Set]",b="[object String]",v="[object Symbol]",w="[object WeakMap]",A="[object ArrayBuffer]",C="[object DataView]",E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/,S=/^\./,I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,_=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[a]=M[s]=M[A]=M[c]=M[C]=M[u]=M[l]=M[d]=M[f]=M[h]=M[p]=M[m]=M[y]=M[b]=M[w]=!1;var P="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,j="object"==typeof self&&self&&self.Object===Object&&self,D=P||j||Function("return this")(),O=t&&!t.nodeType&&t,B=O&&e&&!e.nodeType&&e,N=B&&B.exports===O&&P.process,R=function(){try{return N&&N.binding("util")}catch(e){}}(),L=R&&R.isTypedArray;function F(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,n){var i=e.length,o=r+(n?1:-1);for(;n?o--:++o-1}function U(e,t,r){for(var n=-1,i=e?e.length:0;++n-1},Se.prototype.set=function(e,t){var r=this.__data__,n=Me(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ie.prototype.clear=function(){this.__data__={hash:new xe,map:new(de||Se),string:new xe}},Ie.prototype.delete=function(e){return Ue(this,e).delete(e)},Ie.prototype.get=function(e){return Ue(this,e).get(e)},Ie.prototype.has=function(e){return Ue(this,e).has(e)},Ie.prototype.set=function(e,t){return Ue(this,e).set(e,t),this},ke.prototype.add=ke.prototype.push=function(e){return this.__data__.set(e,n),this},ke.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.clear=function(){this.__data__=new Se},_e.prototype.delete=function(e){return this.__data__.delete(e)},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Se){var n=r.__data__;if(!de||n.length<199)return n.push([e,t]),this;r=this.__data__=new Ie(n)}return r.set(e,t),this};var Le=he&&1/q(new he([,-0]))[1]==i?function(e){return new he(e)}:function(){};function Fe(e,t,r,n,i,o){var a=2&i,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var l=-1,d=!0,f=1&i?new ke:void 0;for(o.set(e,t),o.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=o}function nt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function it(e){return!!e&&"object"==typeof e}function ot(e){return"symbol"==typeof e||it(e)&&ne.call(e)==v}var at=L?function(e){return function(t){return e(t)}}(L):function(e){return it(e)&&rt(e.length)&&!!M[ne.call(e)]};function st(e){return et(e)?Te(e):Ne(e)}function ct(e){return e}e.exports=function(e,t){return e&&e.length?function(e,t,r){var n=-1,i=F,o=e.length,a=!0,s=[],c=s;if(r)a=!1,i=U;else if(o>=200){var u=t?null:Le(e);if(u)return q(u);a=!1,i=V,c=new ke}else c=t?[]:s;e:for(;++n{"use strict";e.exports=Math.abs},58968:e=>{"use strict";e.exports=Math.floor},506188:e=>{"use strict";e.exports=Math.max},468002:e=>{"use strict";e.exports=Math.min},975880:e=>{"use strict";e.exports=Math.pow},988276:(e,t,r)=>{"use strict";var n=r(256698),i=r(873726),o=r(192861).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<>>32-t}function u(e,t,r,n,i,o,a){return c(e+(t&r|~t&n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return c(e+(t&n|r&~n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return c(e+(t^r^n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return c(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=u(r,n,i,o,e[0],3614090360,7),o=u(o,r,n,i,e[1],3905402710,12),i=u(i,o,r,n,e[2],606105819,17),n=u(n,i,o,r,e[3],3250441966,22),r=u(r,n,i,o,e[4],4118548399,7),o=u(o,r,n,i,e[5],1200080426,12),i=u(i,o,r,n,e[6],2821735955,17),n=u(n,i,o,r,e[7],4249261313,22),r=u(r,n,i,o,e[8],1770035416,7),o=u(o,r,n,i,e[9],2336552879,12),i=u(i,o,r,n,e[10],4294925233,17),n=u(n,i,o,r,e[11],2304563134,22),r=u(r,n,i,o,e[12],1804603682,7),o=u(o,r,n,i,e[13],4254626195,12),i=u(i,o,r,n,e[14],2792965006,17),r=l(r,n=u(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=l(o,r,n,i,e[6],3225465664,9),i=l(i,o,r,n,e[11],643717713,14),n=l(n,i,o,r,e[0],3921069994,20),r=l(r,n,i,o,e[5],3593408605,5),o=l(o,r,n,i,e[10],38016083,9),i=l(i,o,r,n,e[15],3634488961,14),n=l(n,i,o,r,e[4],3889429448,20),r=l(r,n,i,o,e[9],568446438,5),o=l(o,r,n,i,e[14],3275163606,9),i=l(i,o,r,n,e[3],4107603335,14),n=l(n,i,o,r,e[8],1163531501,20),r=l(r,n,i,o,e[13],2850285829,5),o=l(o,r,n,i,e[2],4243563512,9),i=l(i,o,r,n,e[7],1735328473,14),r=d(r,n=l(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=d(o,r,n,i,e[8],2272392833,11),i=d(i,o,r,n,e[11],1839030562,16),n=d(n,i,o,r,e[14],4259657740,23),r=d(r,n,i,o,e[1],2763975236,4),o=d(o,r,n,i,e[4],1272893353,11),i=d(i,o,r,n,e[7],4139469664,16),n=d(n,i,o,r,e[10],3200236656,23),r=d(r,n,i,o,e[13],681279174,4),o=d(o,r,n,i,e[0],3936430074,11),i=d(i,o,r,n,e[3],3572445317,16),n=d(n,i,o,r,e[6],76029189,23),r=d(r,n,i,o,e[9],3654602809,4),o=d(o,r,n,i,e[12],3873151461,11),i=d(i,o,r,n,e[15],530742520,16),r=f(r,n=d(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=f(o,r,n,i,e[7],1126891415,10),i=f(i,o,r,n,e[14],2878612391,15),n=f(n,i,o,r,e[5],4237533241,21),r=f(r,n,i,o,e[12],1700485571,6),o=f(o,r,n,i,e[3],2399980690,10),i=f(i,o,r,n,e[10],4293915773,15),n=f(n,i,o,r,e[1],2240044497,21),r=f(r,n,i,o,e[8],1873313359,6),o=f(o,r,n,i,e[15],4264355552,10),i=f(i,o,r,n,e[6],2734768916,15),n=f(n,i,o,r,e[13],1309151649,21),r=f(r,n,i,o,e[4],4149444226,6),o=f(o,r,n,i,e[11],3174756917,10),i=f(i,o,r,n,e[2],718787259,15),n=f(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},873726:(e,t,r)=>{"use strict";var n=r(192861).Buffer,i=r(128399).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(256698)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},241811:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStatusCodeError=t.InvalidCertError=void 0;const n=Object.freeze({redirect:!0,expectStatusCode:200,headers:{},full:!1,keepAlive:!0,cors:!1,referrer:!1,sslAllowSelfSigned:!1,_redirectCount:0});class i extends Error{constructor(e,t){super(e),this.fingerprint256=t}}t.InvalidCertError=i;class o extends Error{constructor(e){super(`Request Failed. Status Code: ${e}`),this.statusCode=e}}function a(e,t){if(!t||"text"===t||"json"===t)try{let n=new TextDecoder("utf8",{fatal:!0}).decode(e);if("text"===t)return n;try{return JSON.parse(n)}catch(r){if("json"===t)throw r;return n}}catch(r){if("text"===t||"json"===t)throw r}return e}t.InvalidStatusCodeError=o;let s={};function c(e,t){let u={...n,...t};const l=r(811568),d=r(411083),f=r(178559),{promisify:h}=r(440537),{resolve:p}=r(188835),g=!!/^https/.test(e);let m={method:u.method||"GET",headers:{"Accept-Encoding":"gzip, deflate, br"}};const y=e=>e.replace(/:| /g,"").toLowerCase();if(u.keepAlive){const e={keepAlive:!0,keepAliveMsecs:3e4,maxFreeSockets:1024,maxCachedSessions:1024},t=[g,g&&u.sslPinnedCertificates?.map((e=>y(e))).sort()].join();m.agent=s[t]||(s[t]=new(g?d:l).Agent(e))}"json"===u.type&&(m.headers["Content-Type"]="application/json"),u.data&&(u.method||(m.method="POST"),m.body="json"===u.type?JSON.stringify(u.data):u.data),m.headers={...m.headers,...u.headers},u.sslAllowSelfSigned&&(m.rejectUnauthorized=!1);return new Promise(((t,r)=>{const n=async t=>{if(t&&"DEPTH_ZERO_SELF_SIGNED_CERT"===t.code)try{await c(e,{...u,sslAllowSelfSigned:!0,sslPinnedCertificates:[]})}catch(n){n&&n.fingerprint256&&(t=new i(`Self-signed SSL certificate: ${n.fingerprint256}`,n.fingerprint256))}r(t)},s=(g?d:l).request(e,m,(i=>{i.on("error",n),(async()=>{try{t(await(async t=>{const r=t.statusCode;if(u.redirect&&300<=r&&r<400&&t.headers.location){if(10==u._redirectCount)throw new Error("Request failed. Too much redirects.");return u._redirectCount+=1,await c(p(e,t.headers.location),u)}if(u.expectStatusCode&&r!==u.expectStatusCode)throw t.resume(),new o(r);let n=[];for await(const e of t)n.push(e);let i=Buffer.concat(n);const s=t.headers["content-encoding"];"br"===s&&(i=await h(f.brotliDecompress)(i)),"gzip"!==s&&"deflate"!==s||(i=await h(f.unzip)(i));const l=a(i,u.type);return u.full?{headers:t.headers,status:r,body:l}:l})(i))}catch(n){r(n)}})()}));s.on("error",n);const b=u.sslPinnedCertificates?.map((e=>y(e))),v=e=>{const t=y(e.getPeerCertificate()?.fingerprint256||"");if((t||!e.isSessionReused())&&!b.includes(t))return s.emit("error",new i(`Invalid SSL certificate: ${t} Expected: ${b}`,t)),s.abort()};u.sslPinnedCertificates&&s.on("socket",(e=>{e.listeners("secureConnect").map((e=>(e.name||"").replace("bound ",""))).includes("mfetchSecureConnect")||e.on("secureConnect",v.bind(null,e))})),u.keepAlive&&s.setNoDelay(!0),m.body&&s.write(m.body),s.end()}))}const u=new Set(["Accept","Accept-Language","Content-Language","Content-Type"].map((e=>e.toLowerCase()))),l=new Set(["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via"].map((e=>e.toLowerCase())));async function d(e,t){let r={...n,...t};const i=new Headers;"json"===r.type&&i.set("Content-Type","application/json");let s=new URL(e);if(s.username){const e=btoa(`${s.username}:${s.password}`);i.set("Authorization",`Basic ${e}`),s.username="",s.password=""}e=""+s;for(let n in r.headers){const e=n.toLowerCase();(u.has(e)||r.cors&&!l.has(e))&&i.set(n,r.headers[n])}let c={headers:i,redirect:r.redirect?"follow":"manual"};r.referrer||(c.referrerPolicy="no-referrer"),r.cors&&(c.mode="cors"),r.data&&(r.method||(c.method="POST"),c.body="json"===r.type?JSON.stringify(r.data):r.data);const d=await fetch(e,c);if(r.expectStatusCode&&d.status!==r.expectStatusCode)throw new o(d.status);const f=a(new Uint8Array(await d.arrayBuffer()),r.type);return r.full?{headers:Object.fromEntries(d.headers.entries()),status:d.status,body:f}:f}const f=!!("object"==typeof process&&process.versions&&process.versions.node&&process.versions.v8);t.default=function(e,t){return(f?c:d)(e,t)}},352244:(e,t,r)=>{var n=r(439404),i=r(415037);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),l=s.toRed(o);t>0;t--){var d=this._randrange(new n(2),s);r&&r(d);var f=d.toRed(o).redPow(u);if(0!==f.cmp(a)&&0!==f.cmp(l)){for(var h=1;h0;t--){var l=this._randrange(new n(2),a),d=e.gcd(l);if(0!==d.cmpn(1))return d;var f=l.toRed(i).redPow(c);if(0!==f.cmp(o)&&0!==f.cmp(u)){for(var h=1;h{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},764367:(e,t)=>{"use strict";var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},206585:e=>{var t=1e3,r=60*t,n=60*r,i=24*n,o=7*i,a=365.25*i;function s(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*a;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return s(e,o,i,"day");if(o>=n)return s(e,o,n,"hour");if(o>=r)return s(e,o,r,"minute");if(o>=t)return s(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=n)return Math.round(e/n)+"h";if(o>=r)return Math.round(e/r)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},914030:(e,t,r)=>{e.exports=r(80777)},707700:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=r},988751:e=>{var t,r,n,i,o,a,s,c,u,l,d,f,h,p,g,m=!1;function y(){if(!m){m=!0;var e=navigator.userAgent,y=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),l=/Android/i.exec(e),p=/FBAN\/\w+;/i.exec(e),g=/Mobile/i.exec(e),d=!!/Win64/.exec(e),y){(t=y[1]?parseFloat(y[1]):y[5]?parseFloat(y[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var v=/(?:Trident\/(\d+.\d+))/.exec(e);a=v?parseFloat(v[1])+4:t,r=y[2]?parseFloat(y[2]):NaN,n=y[3]?parseFloat(y[3]):NaN,(i=y[4]?parseFloat(y[4]):NaN)?(y=/(?:Chrome\/(\d+\.\d+))/.exec(e),o=y&&y[1]?parseFloat(y[1]):NaN):o=NaN}else t=r=n=o=i=NaN;if(b){if(b[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!w||parseFloat(w[1].replace("_","."))}else s=!1;c=!!b[2],u=!!b[3]}else s=c=u=!1}}var b={ie:function(){return y()||t},ieCompatibilityMode:function(){return y()||a>t},ie64:function(){return b.ie()&&d},firefox:function(){return y()||r},opera:function(){return y()||n},webkit:function(){return y()||i},safari:function(){return b.webkit()},chrome:function(){return y()||o},windows:function(){return y()||c},osx:function(){return y()||s},linux:function(){return y()||u},iphone:function(){return y()||f},mobile:function(){return y()||f||h||l||g},nativeApp:function(){return y()||p},android:function(){return y()||l},ipad:function(){return y()||h}};e.exports=b},658125:(e,t,r)=>{"use strict";var n,i=r(707700);i.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,o=r in document;if(!o){var a=document.createElement("div");a.setAttribute(r,"return;"),o="function"==typeof a[r]}return!o&&n&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}},80777:(e,t,r)=>{"use strict";var n=r(988751),i=r(658125);function o(e){var t=0,r=0,n=0,i=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=10*t,i=10*r,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(1==e.deltaMode?(n*=40,i*=40):(n*=800,i*=800)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}o.getEventType=function(){return n.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=o},358859:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,l=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,A=String.prototype.toLowerCase,C=RegExp.prototype.test,E=Array.prototype.concat,x=Array.prototype.join,S=Array.prototype.slice,I=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function O(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||C.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-I(-e):I(e);if(n!==e){var i=String(n),o=b.call(t,i.length+1);return v.call(i,r,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var B=r(242634),N=B.custom,R=K(N)?N:null,L={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,r){var n=r.quoteStyle||t,i=L[n];return i+e+i}function z(e){return v.call(String(e),/"/g,""")}function H(e){return!("[object Array]"!==Q(e)||P&&"object"==typeof e&&P in e)}function V(e){return!("[object RegExp]"!==Q(e)||P&&"object"==typeof e&&P in e)}function K(e){if(M)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,i,s){var c=n||{};if(q(c,"quoteStyle")&&!q(L,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!q(c,"customInspect")||c.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return J(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var C=String(t);return w?O(t,C):C}if("bigint"==typeof t){var I=String(t)+"n";return w?O(t,I):I}var _=void 0===c.depth?5:c.depth;if(void 0===i&&(i=0),i>=_&&_>0&&"object"==typeof t)return H(t)?"[Array]":"[Object]";var N=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=x.call(Array(e.indent+1)," ")}return{base:r,prev:x.call(Array(t+1),r)}}(c,i);if(void 0===s)s=[];else if(W(s,t)>=0)return"[Circular]";function F(t,r,n){if(r&&(s=S.call(s)).push(r),n){var o={depth:c.depth};return q(c,"quoteStyle")&&(o.quoteStyle=c.quoteStyle),e(t,o,i+1,s)}return e(t,c,i+1,s)}if("function"==typeof t&&!V(t)){var G=function(e){if(e.name)return e.name;var t=y.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),Y=te(t,F);return"[Function"+(G?": "+G:" (anonymous)")+"]"+(Y.length>0?" { "+x.call(Y,", ")+" }":"")}if(K(t)){var re=M?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!=typeof t||M?re:Z(re)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var ne="<"+A.call(String(t.nodeName)),ie=t.attributes||[],oe=0;oe"}if(H(t)){if(0===t.length)return"[]";var ae=te(t,F);return N&&!function(e){for(var t=0;t=0)return!1;return!0}(ae)?"["+ee(ae,N)+"]":"[ "+x.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t)){var se=te(t,F);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(se,", ")+" }":"{ ["+String(t)+"] "+x.call(E.call("[cause]: "+F(t.cause),se),", ")+" }"}if("object"==typeof t&&g){if(R&&"function"==typeof t[R]&&B)return B(t,{depth:_-i});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(ne){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ce=[];return a&&a.call(t,(function(e,r){ce.push(F(r,t,!0)+" => "+F(e,t))})),X("Map",o.call(t),ce,N)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var ue=[];return l&&l.call(t,(function(e){ue.push(F(e,t))})),X("Set",u.call(t),ue,N)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(ne){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return $("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(ne){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return $("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(t){}return!1}(t))return $("WeakRef");if(function(e){return!("[object Number]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t))return Z(F(Number(t)));if(function(e){if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(t){}return!1}(t))return Z(F(k.call(t)));if(function(e){return!("[object Boolean]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t))return Z(p.call(t));if(function(e){return!("[object String]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t))return Z(F(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t)&&!V(t)){var le=te(t,F),de=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",he=!de&&P&&Object(t)===t&&P in t?b.call(Q(t),8,-1):fe?"Object":"",pe=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||fe?"["+x.call(E.call([],he||[],fe||[]),": ")+"] ":"");return 0===le.length?pe+"{}":N?pe+"{"+ee(le,N)+"}":pe+"{ "+x.call(le,", ")+" }"}return String(t)};var G=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return G.call(e,t)}function Q(e){return g.call(e)}function W(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return J(b.call(e,0,t.maxStringLength),t)+n}var i=F[t.quoteStyle||"single"];return i.lastIndex=0,U(v.call(v.call(e,i,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function $(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?ee(r,n):x.call(r,", "))+"}"}function ee(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+x.call(e,","+r)+"\n"+t.prev}function te(e,t){var r=H(e),n=[];if(r){n.length=e.length;for(var i=0;i{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},337653:(e,t,r)=>{"use strict";var n=r(238452),i=r(10487),o=r(89211),a=r(409394),s=r(836576),c=i(a(),Object);n(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},409394:(e,t,r)=>{"use strict";var n=r(89211);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},836576:(e,t,r)=>{"use strict";var n=r(409394),i=r(238452);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},928875:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(101093),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var p=u&&r;if(s&&e.length>0&&!i.call(e,0))for(var g=0;g0)for(var m=0;m{"use strict";var n=Array.prototype.slice,i=r(101093),o=Object.keys,a=o?function(e){return o(e)}:r(928875),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},101093:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},38403:(e,t,r)=>{"use strict";var n=r(101189),i=r(241333)(),o=r(438075),a=Object,s=o("Array.prototype.push"),c=o("Object.prototype.propertyIsEnumerable"),u=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var r=a(e);if(1===arguments.length)return r;for(var o=1;o{"use strict";var n=r(38403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o{"use strict";e.exports=function(e,t,r,n){for(var i=65535&e,o=e>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+t[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},519681:e=>{"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},214823:e=>{"use strict";var t=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,r,n,i){var o=t,a=i+n;e^=-1;for(var s=i;s>>8^o[255&(e^r[s])];return~e}},958411:(e,t,r)=>{"use strict";var n,i=r(909805),o=r(523665),a=r(253269),s=r(214823),c=r(854674),u=-2,l=258,d=262,f=103,h=113,p=666;function g(e,t){return e.msg=c[t],t}function m(e){return(e<<1)-(e>4?9:0)}function y(e){for(var t=e.length;--t>=0;)e[t]=0}function b(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function v(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,b(e.strm)}function w(e,t){e.pending_buf[e.pending++]=t}function A(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function C(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,u=e.window,f=e.w_mask,h=e.prev,p=e.strstart+l,g=u[o+a-1],m=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+a]===m&&u[r+a-1]===g&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&oa){if(e.match_start=t,a=n,n>=s)break;g=u[o+a-1],m=u[o+a]}}}while((t=h[t&f])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function E(e){var t,r,n,o,c,u,l,f,h,p,g=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=g+(g-d)){i.arraySet(e.window,e.window,g,g,0),e.match_start-=g,e.strstart-=g,e.block_start-=g,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=g?n-g:0}while(--r);t=r=g;do{n=e.prev[--t],e.prev[t]=n>=g?n-g:0}while(--r);o+=g}if(0===e.strm.avail_in)break;if(u=e.strm,l=e.window,f=e.strstart+e.lookahead,h=o,p=void 0,(p=u.avail_in)>h&&(p=h),r=0===p?0:(u.avail_in-=p,i.arraySet(l,u.input,u.next_in,p,f),1===u.state.wrap?u.adler=a(u.adler,l,p,f):2===u.state.wrap&&(u.adler=s(u.adler,l,p,f)),u.next_in+=p,u.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=3)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<15&&(s=2,n-=16),o<1||o>9||8!==r||n<8||n>15||t<0||t>9||a<0||a>4)return g(e,u);8===n&&(n=9);var c=new k;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=n,c.w_size=1<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(E(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,v(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-d&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(v(e,!1),e.strm.avail_out),1)})),new I(4,4,8,4,x),new I(4,5,16,8,x),new I(4,6,32,32,x),new I(4,4,16,16,S),new I(8,16,32,32,S),new I(8,16,128,128,S),new I(8,32,128,256,S),new I(32,128,258,1024,S),new I(32,258,258,4096,S)],t.deflateInit=function(e,t){return M(e,t,8,15,8,0)},t.deflateInit2=M,t.deflateReset=T,t.deflateResetKeep=_,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,0):u},t.deflate=function(e,t){var r,i,a,c;if(!e||!e.state||t>5||t<0)return e?g(e,u):u;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===p&&4!==t)return g(e,0===e.avail_out?-5:u);if(i.strm=e,r=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,w(i,31),w(i,139),w(i,8),i.gzhead?(w(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),w(i,255&i.gzhead.time),w(i,i.gzhead.time>>8&255),w(i,i.gzhead.time>>16&255),w(i,i.gzhead.time>>24&255),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(w(i,255&i.gzhead.extra.length),w(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(w(i,0),w(i,0),w(i,0),w(i,0),w(i,0),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,3),i.status=h);else{var d=8+(i.w_bits-8<<4)<<8;d|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=h,A(i,d),0!==i.strstart&&(A(i,e.adler>>>16),A(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending!==i.pending_buf_size));)w(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=f)}else i.status=f;if(i.status===f&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&b(e),i.pending+2<=i.pending_buf_size&&(w(i,255&e.adler),w(i,e.adler>>8&255),e.adler=0,i.status=h)):i.status=h),0!==i.pending){if(b(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&m(t)<=m(r)&&4!==t)return g(e,-5);if(i.status===p&&0!==e.avail_in)return g(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==p){var C=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(E(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,a,s=e.window;;){if(e.lookahead<=l){if(E(e),e.lookahead<=l&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=e.strstart+l;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==C&&4!==C||(i.status=p),1===C||3===C)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===C&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(y(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),b(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(w(i,255&e.adler),w(i,e.adler>>8&255),w(i,e.adler>>16&255),w(i,e.adler>>24&255),w(i,255&e.total_in),w(i,e.total_in>>8&255),w(i,e.total_in>>16&255),w(i,e.total_in>>24&255)):(A(i,e.adler>>>16),A(i,65535&e.adler)),b(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==f&&t!==h&&t!==p?g(e,u):(e.state=null,t===h?g(e,-3):0):u},t.deflateSetDictionary=function(e,t){var r,n,o,s,c,l,d,f,h=t.length;if(!e||!e.state)return u;if(2===(s=(r=e.state).wrap)||1===s&&42!==r.status||r.lookahead)return u;for(1===s&&(e.adler=a(e.adler,t,h,0)),r.wrap=0,h>=r.w_size&&(0===s&&(y(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,t,h-r.w_size,r.w_size,0),t=f,h=r.w_size),c=e.avail_in,l=e.next_in,d=e.input,e.avail_in=h,e.next_in=0,e.input=t,E(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<{"use strict";e.exports=function(e,t){var r,n,i,o,a,s,c,u,l,d,f,h,p,g,m,y,b,v,w,A,C,E,x,S,I;r=e.state,n=e.next_in,S=e.input,i=n+(e.avail_in-5),o=e.next_out,I=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=r.dmax,u=r.wsize,l=r.whave,d=r.wnext,f=r.window,h=r.hold,p=r.bits,g=r.lencode,m=r.distcode,y=(1<>>=w=v>>>24,p-=w,0===(w=v>>>16&255))I[o++]=65535&v;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}v=g[(65535&v)+(h&(1<>>=w,p-=w),p<15&&(h+=S[n++]<>>=w=v>>>24,p-=w,16&(w=v>>>16&255)){if(C=65535&v,p<(w&=15)&&(h+=S[n++]<c){e.msg="invalid distance too far back",r.mode=30;break e}if(h>>>=w,p-=w,C>(w=o-a)){if((w=C-w)>l&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(E=0,x=f,0===d){if(E+=u-w,w2;)I[o++]=x[E++],I[o++]=x[E++],I[o++]=x[E++],A-=3;A&&(I[o++]=x[E++],A>1&&(I[o++]=x[E++]))}else{E=o-C;do{I[o++]=I[E++],I[o++]=I[E++],I[o++]=I[E++],A-=3}while(A>2);A&&(I[o++]=I[E++],A>1&&(I[o++]=I[E++]))}break}if(64&w){e.msg="invalid distance code",r.mode=30;break e}v=m[(65535&v)+(h&(1<>3,h&=(1<<(p-=A<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n{"use strict";var n=r(909805),i=r(253269),o=r(214823),a=r(347293),s=r(221998),c=-2,u=12,l=30;function d(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):c}function p(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,h(e)):c}function g(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?c:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,p(e))):c}function m(e,t){var r,n;return e?(n=new f,e.state=n,n.window=null,0!==(r=g(e,t))&&(e.state=null),r):c}var y,b,v=!0;function w(e){if(v){var t;for(y=new n.Buf32(512),b=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,b,0,e.work,{bits:5}),v=!1}e.lencode=y,e.lenbits=9,e.distcode=b,e.distbits=5}function A(e,t,r,i){var o,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,t,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,r.check=o(r.check,L,2,0),b=0,v=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",r.mode=l;break}if(8!=(15&b)){e.msg="unknown compression method",r.mode=l;break}if(v-=4,D=8+(15&(b>>>=4)),0===r.wbits)r.wbits=D;else if(D>r.wbits){e.msg="invalid window size",r.mode=l;break}r.dmax=1<>8&1),512&r.flags&&(L[0]=255&b,L[1]=b>>>8&255,r.check=o(r.check,L,2,0)),b=0,v=0,r.mode=3;case 3:for(;v<32;){if(0===m)break e;m--,b+=f[p++]<>>8&255,L[2]=b>>>16&255,L[3]=b>>>24&255,r.check=o(r.check,L,4,0)),b=0,v=0,r.mode=4;case 4:for(;v<16;){if(0===m)break e;m--,b+=f[p++]<>8),512&r.flags&&(L[0]=255&b,L[1]=b>>>8&255,r.check=o(r.check,L,2,0)),b=0,v=0,r.mode=5;case 5:if(1024&r.flags){for(;v<16;){if(0===m)break e;m--,b+=f[p++]<>>8&255,r.check=o(r.check,L,2,0)),b=0,v=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((x=r.length)>m&&(x=m),x&&(r.head&&(D=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,f,p,x,D)),512&r.flags&&(r.check=o(r.check,f,x,p)),m-=x,p+=x,r.length-=x),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===m)break e;x=0;do{D=f[p+x++],r.head&&D&&r.length<65536&&(r.head.name+=String.fromCharCode(D))}while(D&&x>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=u;break;case 10:for(;v<32;){if(0===m)break e;m--,b+=f[p++]<>>=7&v,v-=7&v,r.mode=27;break}for(;v<3;){if(0===m)break e;m--,b+=f[p++]<>>=1)){case 0:r.mode=14;break;case 1:if(w(r),r.mode=20,6===t){b>>>=2,v-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=l}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===m)break e;m--,b+=f[p++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=l;break}if(r.length=65535&b,b=0,v=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(x=r.length){if(x>m&&(x=m),x>y&&(x=y),0===x)break e;n.arraySet(h,f,p,x,g),m-=x,p+=x,y-=x,g+=x,r.length-=x;break}r.mode=u;break;case 17:for(;v<14;){if(0===m)break e;m--,b+=f[p++]<>>=5,v-=5,r.ndist=1+(31&b),b>>>=5,v-=5,r.ncode=4+(15&b),b>>>=4,v-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=l;break}r.have=0,r.mode=18;case 18:for(;r.have>>=3,v-=3}for(;r.have<19;)r.lens[F[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,B={bits:r.lenbits},O=s(0,r.lens,0,19,r.lencode,0,r.work,B),r.lenbits=B.bits,O){e.msg="invalid code lengths set",r.mode=l;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,T=65535&R,!((k=R>>>24)<=v);){if(0===m)break e;m--,b+=f[p++]<>>=k,v-=k,r.lens[r.have++]=T;else{if(16===T){for(N=k+2;v>>=k,v-=k,0===r.have){e.msg="invalid bit length repeat",r.mode=l;break}D=r.lens[r.have-1],x=3+(3&b),b>>>=2,v-=2}else if(17===T){for(N=k+3;v>>=k)),b>>>=3,v-=3}else{for(N=k+7;v>>=k)),b>>>=7,v-=7}if(r.have+x>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=l;break}for(;x--;)r.lens[r.have++]=D}}if(r.mode===l)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=l;break}if(r.lenbits=9,B={bits:r.lenbits},O=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,B),r.lenbits=B.bits,O){e.msg="invalid literal/lengths set",r.mode=l;break}if(r.distbits=6,r.distcode=r.distdyn,B={bits:r.distbits},O=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,B),r.distbits=B.bits,O){e.msg="invalid distances set",r.mode=l;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(m>=6&&y>=258){e.next_out=g,e.avail_out=y,e.next_in=p,e.avail_in=m,r.hold=b,r.bits=v,a(e,E),g=e.next_out,h=e.output,y=e.avail_out,p=e.next_in,f=e.input,m=e.avail_in,b=r.hold,v=r.bits,r.mode===u&&(r.back=-1);break}for(r.back=0;_=(R=r.lencode[b&(1<>>16&255,T=65535&R,!((k=R>>>24)<=v);){if(0===m)break e;m--,b+=f[p++]<>M)])>>>16&255,T=65535&R,!(M+(k=R>>>24)<=v);){if(0===m)break e;m--,b+=f[p++]<>>=M,v-=M,r.back+=M}if(b>>>=k,v-=k,r.back+=k,r.length=T,0===_){r.mode=26;break}if(32&_){r.back=-1,r.mode=u;break}if(64&_){e.msg="invalid literal/length code",r.mode=l;break}r.extra=15&_,r.mode=22;case 22:if(r.extra){for(N=r.extra;v>>=r.extra,v-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;_=(R=r.distcode[b&(1<>>16&255,T=65535&R,!((k=R>>>24)<=v);){if(0===m)break e;m--,b+=f[p++]<>M)])>>>16&255,T=65535&R,!(M+(k=R>>>24)<=v);){if(0===m)break e;m--,b+=f[p++]<>>=M,v-=M,r.back+=M}if(b>>>=k,v-=k,r.back+=k,64&_){e.msg="invalid distance code",r.mode=l;break}r.offset=T,r.extra=15&_,r.mode=24;case 24:if(r.extra){for(N=r.extra;v>>=r.extra,v-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=l;break}r.mode=25;case 25:if(0===y)break e;if(x=E-y,r.offset>x){if((x=r.offset-x)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=l;break}x>r.wnext?(x-=r.wnext,S=r.wsize-x):S=r.wnext-x,x>r.length&&(x=r.length),I=r.window}else I=h,S=g-r.offset,x=r.length;x>y&&(x=y),y-=x,r.length-=x;do{h[g++]=I[S++]}while(--x);0===r.length&&(r.mode=21);break;case 26:if(0===y)break e;h[g++]=r.length,y--,r.mode=21;break;case 27:if(r.wrap){for(;v<32;){if(0===m)break e;m--,b|=f[p++]<{"use strict";var n=r(909805),i=15,o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,r,u,l,d,f,h){var p,g,m,y,b,v,w,A,C,E=h.bits,x=0,S=0,I=0,k=0,_=0,T=0,M=0,P=0,j=0,D=0,O=null,B=0,N=new n.Buf16(16),R=new n.Buf16(16),L=null,F=0;for(x=0;x<=i;x++)N[x]=0;for(S=0;S=1&&0===N[k];k--);if(_>k&&(_=k),0===k)return l[d++]=20971520,l[d++]=20971520,h.bits=1,0;for(I=1;I0&&(0===e||1!==k))return-1;for(R[1]=0,x=1;x852||2===e&&j>592)return 1;for(;;){w=x-M,f[S]v?(A=L[F+f[S]],C=O[B+f[S]]):(A=96,C=0),p=1<>M)+(g-=p)]=w<<24|A<<16|C}while(0!==g);for(p=1<>=1;if(0!==p?(D&=p-1,D+=p):D=0,S++,0==--N[x]){if(x===k)break;x=t[r+f[S]]}if(x>_&&(D&y)!==m){for(0===M&&(M=_),b+=I,P=1<<(T=x-M);T+M852||2===e&&j>592)return 1;l[m=D&y]=_<<24|T<<16|b-d}}return 0!==D&&(l[b+D]=x-M<<24|64<<16),h.bits=_,0}},854674:e=>{"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},523665:(e,t,r)=>{"use strict";var n=r(909805);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=256,a=286,s=30,c=15,u=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],l=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],f=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],h=new Array(576);i(h);var p=new Array(60);i(p);var g=new Array(512);i(g);var m=new Array(256);i(m);var y=new Array(29);i(y);var b,v,w,A=new Array(s);function C(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function E(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function x(e){return e<256?g[e]:g[256+(e>>>7)]}function S(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function I(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<>>=1,r<<=1}while(--t>0);return r>>>1}function T(e,t,r){var n,i,o=new Array(16),a=0;for(n=1;n<=c;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=_(o[s]++,s))}}function M(e){var t;for(t=0;t8?S(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function j(e,t,r,n){var i=2*t,o=2*r;return e[i]>1;r>=1;r--)D(e,o,r);i=u;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],D(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,D(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,u=t.dyn_tree,l=t.max_code,d=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,g=t.stat_desc.max_length,m=0;for(o=0;o<=c;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(o=u[2*u[2*(n=e.heap[r])+1]+1]+1)>g&&(o=g,m++),u[2*n+1]=o,n>l||(e.bl_count[o]++,a=0,n>=p&&(a=h[n-p]),s=u[2*n],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(d[2*n+1]+a)));if(0!==m){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,m-=2}while(m>0);for(o=g;0!==o;o--)for(n=e.bl_count[o];0!==n;)(i=e.heap[--r])>l||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(e,t),T(o,l,e.bl_count)}function N(e,t,r){var n,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s>=7;n0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t=3&&0===e.bl_tree[2*f[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?F(e,t,r,n):4===e.strategy||a===i?(I(e,2+(n?1:0),3),O(e,h,p)):(I(e,4+(n?1:0),3),function(e,t,r,n){var i;for(I(e,t-257,5),I(e,r-1,5),I(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(m[r]+o+1)]++,e.dyn_dtree[2*x(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){I(e,2,3),k(e,256,h),function(e){16===e.bi_valid?(S(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},644442:e=>{"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},321137:(e,t,r)=>{"use strict";var n=r(728328);t.certificate=r(236413);var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=o;var a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));t.PublicKey=s;var c=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=c;var u=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=u;var l=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=l,t.DSAparam=n.define("DSAparam",(function(){this.int()}));var d=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})),f=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=f,t.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},236413:(e,t,r)=>{"use strict";var n=r(728328),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),c=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),u=n.define("RDNSequence",(function(){this.seqof(c)})),l=n.define("Name",(function(){this.choice({rdnSequence:this.use(u)})})),d=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),f=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(l),this.key("validity").use(d),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));e.exports=p},24101:(e,t,r)=>{"use strict";var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(168078),s=r(201241),c=r(192861).Buffer;e.exports=function(e,t){var r,u=e.toString(),l=u.match(n);if(l){var d="aes"+l[1],f=c.from(l[2],"hex"),h=c.from(l[3].replace(/[\r\n]/g,""),"base64"),p=a(t,f.slice(0,8),parseInt(l[1],10)).key,g=[],m=s.createDecipheriv(d,p,f);g.push(m.update(h)),g.push(m.final()),r=c.concat(g)}else{var y=u.match(o);r=c.from(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(i)[1],data:r}}},778170:(e,t,r)=>{"use strict";var n=r(321137),i=r(415579),o=r(24101),a=r(201241),s=r(278396),c=r(192861).Buffer;function u(e){var t;"object"!=typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var r,u,l=o(e,t),d=l.tag,f=l.data;switch(d){case"CERTIFICATE":u=n.certificate.decode(f,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=n.PublicKey.decode(f,"der")),r=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=n.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":f=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,d=parseInt(o.split("-")[1],10)/8,f=s.pbkdf2Sync(t,r,n,d,"sha1"),h=a.createDecipheriv(o,f,u),p=[];return p.push(h.update(l)),p.push(h.final()),c.concat(p)}(f=n.EncryptedPrivateKey.decode(f,"der"),t);case"PRIVATE KEY":switch(r=(u=n.PrivateKey.decode(f,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:n.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=n.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(f,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(f,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(f,"der")};case"EC PRIVATE KEY":return{curve:(f=n.ECPrivateKey.decode(f,"der")).parameters.value,privateKey:f.privateKey};default:throw new Error("unknown key type "+d)}}u.signature=n.signature,e.exports=u},728328:(e,t,r)=>{var n=t;n.bignum=r(439404),n.define=r(14088).define,n.base=r(320788),n.constants=r(21922),n.decoders=r(579888),n.encoders=r(589240)},14088:(e,t,r)=>{var n=r(728328),i=r(256698);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(468961).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(n){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},450468:(e,t,r)=>{var n=r(256698),i=r(320788).Reporter,o=r(348287).Buffer;function a(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),t.t=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.d=s,s.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(e,t),t+=r.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},320788:(e,t,r)=>{var n=t;n.Reporter=r(984379).a,n.DecoderBuffer=r(450468).t,n.EncoderBuffer=r(450468).d,n.Node=r(642370)},642370:(e,t,r)=>{var n=r(320788).Reporter,i=r(320788).EncoderBuffer,o=r(320788).DecoderBuffer,a=r(443349),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function u(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=u;var l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var e=this._baseState,t={};l.forEach((function(r){t[r]=e[r]}));var r=new this.constructor(t.parent);return r._baseState=t,r},u.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},u.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),a.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){var t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){u.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}})),u.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},u.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,i=r.default,a=!0,s=null;if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){var c=null;if(null!==r.explicit?c=r.explicit:null!==r.implicit?c=r.implicit:null!==r.tag&&(c=r.tag),null!==c||r.any){if(a=this._peekTag(e,c,r.any),e.isError(a))return a}else{var u=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),a=!0}catch(p){a=!1}e.restore(u)}}if(r.obj&&a&&(n=e.enterObject()),a){if(null!==r.explicit){var l=this._decodeTag(e,r.explicit);if(e.isError(l))return l;e=l}var d=e.offset;if(null===r.use&&null===r.choice){if(r.any)u=e.save();var f=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(f))return f;r.any?i=e.raw(u):e=f}if(t&&t.track&&null!==r.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var h=new o(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(h,t)}}return r.obj&&a&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},u.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},u.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(o){var a=e.save(),s=r.choice[o];try{var c=s._decode(e,t);if(e.isError(c))return!1;n={type:o,value:c},i=!0}catch(u){return e.restore(a),!1}return!0}),this),i?n:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},u.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},u.prototype._encodeValue=function(e,t,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);var o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,r)._encode(e,t),s=!0;else if(i.children)a=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),c))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){var u=null!==i.implicit?i.implicit:i.tag,l=null===i.implicit?"universal":"context";null===u?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(u,s,l,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},u.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},984379:(e,t,r)=>{var n=r(256698);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.a=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},574265:(e,t,r)=>{var n=r(21922);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},21922:(e,t,r)=>{var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r})),t},n.der=r(574265)},370039:(e,t,r)=>{var n=r(256698),i=r(728328),o=i.base,a=i.bignum,s=i.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.Node.call(this,"der",e)}function l(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=!(32&r);if(31&~r)r&=31;else{var o=r;for(r=0;!(128&~o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function d(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(!(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o{var n=t;n.der=r(370039),n.pem=r(496650)},496650:(e,t,r)=>{var n=r(256698),i=r(348287).Buffer,o=r(370039);function a(e){o.call(this,e),this.enc="pem"}n(a,o),e.exports=a,a.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,u=0;u{var n=r(256698),i=r(348287).Buffer,o=r(728328),a=o.base,s=o.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){a.Node.call(this,"der",e)}function l(e){return e<10?"0"+e:e}e.exports=c,c.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(u,a.Node),u.prototype._encodeComposite=function(e,t,r,n){var o,a=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(i>=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[r||"universal"]<<6,i}(e,t,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=a,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var c=1,u=n.length;u>=256;u>>=8)c++;(o=new i(2+c))[0]=a,o[1]=128|c;u=1+c;for(var l=n.length;l>0;u--,l>>=8)o[u]=255&l;return this._createEncoderBuffer([o,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n=128;a>>=7)o++}var s=new i(o),c=s.length-1;for(n=e.length-1;n>=0;n--){a=e[n];for(s[c--]=127&a;(a>>=7)>0;)s[c--]=128|127&a}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[l(n.getFullYear()),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[l(n.getFullYear()%100),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;a>=256;a>>=8)n++;for(a=(o=new Array(n)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n{var n=t;n.der=r(578223),n.pem=r(978386)},978386:(e,t,r)=>{var n=r(256698),i=r(578223);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o{t.pbkdf2=r(143832),t.pbkdf2Sync=r(521352)},143832:(e,t,r)=>{var n,i,o=r(192861).Buffer,a=r(564196),s=r(902455),c=r(521352),u=r(793382),l=r.g.crypto&&r.g.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f=[];function h(){return i||(i=r.g.process&&r.g.process.nextTick?r.g.process.nextTick:r.g.queueMicrotask?r.g.queueMicrotask:r.g.setImmediate?r.g.setImmediate:r.g.setTimeout)}function p(e,t,r,n,i){return l.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return l.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)})).then((function(e){return o.from(e)}))}e.exports=function(e,t,i,g,m,y){"function"==typeof m&&(y=m,m=void 0);var b=d[(m=m||"sha1").toLowerCase()];if(b&&"function"==typeof r.g.Promise){if(a(i,g),e=u(e,s,"Password"),t=u(t,s,"Salt"),"function"!=typeof y)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){h()((function(){t(null,e)}))}),(function(e){h()((function(){t(e)}))}))}(function(e){if(r.g.process&&!r.g.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==f[e])return f[e];var t=p(n=n||o.alloc(8),n,10,128,e).then((function(){return!0})).catch((function(){return!1}));return f[e]=t,t}(b).then((function(r){return r?p(e,t,i,g,b):c(e,t,i,g,m)})),y)}else h()((function(){var r;try{r=c(e,t,i,g,m)}catch(n){return y(n)}y(null,r)}))}},902455:(e,t,r)=>{var n;if(r.g.process&&r.g.process.browser)n="utf-8";else if(r.g.process&&r.g.process.version){n=parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";e.exports=n},564196:e=>{var t=Math.pow(2,30)-1;e.exports=function(e,r){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof r)throw new TypeError("Key length not a number");if(r<0||r>t||r!=r)throw new TypeError("Bad key length")}},521352:(e,t,r)=>{var n=r(820320),i=r(566011),o=r(662802),a=r(192861).Buffer,s=r(564196),c=r(902455),u=r(793382),l=a.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(e,t,r){var s=function(e){function t(t){return o(e).update(t).digest()}function r(e){return(new i).update(e).digest()}return"rmd160"===e||"ripemd160"===e?r:"md5"===e?n:t}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=s(t):t.length{var n=r(192861).Buffer;e.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},913491:function(e){(function(){var t,r,n,i,o,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},r=process.hrtime,i=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),a=1e9*process.uptime(),o=i-a):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},376578:e=>{"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},633225:e=>{"use strict";"undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function(){e.call(null,t)}));case 3:return process.nextTick((function(){e.call(null,t,r)}));case 4:return process.nextTick((function(){e.call(null,t,r,n)}));default:for(i=new Array(a-1),o=0;o{"use strict";e.exports=r(709100)},445095:e=>{"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},550744:(e,t,r)=>{"use strict";var n=t,i=r(235643),o=r(553262);function a(e,t,r,n){var o=!1;if(t.resolvedType)if(t.resolvedType instanceof i){e("switch(d%s){",n);for(var a=t.resolvedType.values,s=Object.keys(a),c=0;c>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,u)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,u?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function s(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof i?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var o=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,o?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=o.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;n{"use strict";e.exports=function(e){var t=o.codegen(["r","l"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter((function(e){return e.map})).length?",k,value":""))("while(r.pos>>3){");for(var r=0;r>>3){")("case 1: k=r.%s(); break",s.keyType)("case 2:"),void 0===i.basic[c]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",c),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==i.long[s.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',u):t("%s[k]=value",u)):s.repeated?(t("if(!(%s&&%s.length))",u,u)("%s=[]",u),void 0!==i.packed[c]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos{"use strict";e.exports=function(e){for(var t,r=o.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),s=e.fieldsArray.slice().sort(o.compareFieldsById),c=0;c>>0,8|i.mapKey[u.keyType],u.keyType),void 0===f?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|f,d,t),r("}")("}")):u.repeated?(r("if(%s!=null&&%s.length){",t,t),u.packed&&void 0!==i.packed[d]?r("w.uint32(%i).fork()",(u.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",d,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===f?a(r,u,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(u.id<<3|f)>>>0,d,t)),r("}")):(u.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,u.name),void 0===f?a(r,u,l,t):r("w.uint32(%i).%s(%s)",(u.id<<3|f)>>>0,d,t))}return r("return w")};var n=r(235643),i=r(280361),o=r(553262);function a(e,t,r,n){return t.resolvedType.group?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},235643:(e,t,r)=>{"use strict";e.exports=a;var n=r(27209);((a.prototype=Object.create(n.prototype)).constructor=a).className="Enum";var i=r(8923),o=r(553262);function a(e,t,r,i,o,a){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=i,this.comments=o||{},this.valuesOptions=a,this.reserved=void 0,t)for(var s=Object.keys(t),c=0;c{"use strict";e.exports=u;var n=r(27209);((u.prototype=Object.create(n.prototype)).constructor=u).className="Field";var i,o=r(235643),a=r(280361),s=r(553262),c=/^required|optional|repeated$/;function u(e,t,r,i,o,u,l){if(s.isObject(i)?(l=o,u=i,i=o=void 0):s.isObject(o)&&(l=u,u=o,o=void 0),n.call(this,e,u),!s.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!s.isString(r))throw TypeError("type must be a string");if(void 0!==i&&!c.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!s.isString(o))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:void 0,this.type=r,this.id=t,this.extend=o||void 0,this.required="required"===i,this.optional=!this.required,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!s.Long&&void 0!==a.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=l}u.fromJSON=function(e,t){return new u(e,t.id,t.type,t.rule,t.extend,t.options,t.comment)},Object.defineProperty(u.prototype,"packed",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption("packed")),this._packed}}),u.prototype.setOption=function(e,t,r){return"packed"===e&&(this._packed=null),n.prototype.setOption.call(this,e,t,r)},u.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return s.toObject(["rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},u.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=a.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof o)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=s.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;s.base64.test(this.typeDefault)?s.base64.decode(this.typeDefault,e=s.newBuffer(s.base64.length(this.typeDefault)),0):s.utf8.write(this.typeDefault,e=s.newBuffer(s.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=s.emptyObject:this.repeated?this.defaultValue=s.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},u.d=function(e,t,r,n){return"function"==typeof t?t=s.decorateType(t).name:t&&"object"==typeof t&&(t=s.decorateEnum(t).name),function(i,o){s.decorateType(i.constructor).add(new u(o,e,t,r,{default:n}))}},u._configure=function(e){i=e}},925325:(e,t,r)=>{"use strict";var n=e.exports=r(524394);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(721080),n.decoder=r(27728),n.verifier=r(580420),n.converter=r(550744),n.ReflectionObject=r(27209),n.Namespace=r(8923),n.Root=r(545330),n.Enum=r(235643),n.Type=r(617882),n.Field=r(431344),n.OneOf=r(891457),n.MapField=r(688252),n.Service=r(809687),n.Method=r(688811),n.Message=r(422551),n.wrappers=r(906434),n.types=r(280361),n.util=r(553262),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},524394:(e,t,r)=>{"use strict";var n=t;function i(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(163449),n.BufferWriter=r(860818),n.Reader=r(416237),n.BufferReader=r(733158),n.util=r(593610),n.rpc=r(295047),n.roots=r(764529),n.configure=i,i()},709100:(e,t,r)=>{"use strict";var n=e.exports=r(925325);n.build="full",n.tokenize=r(590527),n.parse=r(224863),n.common=r(445095),n.Root._configure(n.Type,n.parse,n.common)},688252:(e,t,r)=>{"use strict";e.exports=a;var n=r(431344);((a.prototype=Object.create(n.prototype)).constructor=a).className="MapField";var i=r(280361),o=r(553262);function a(e,t,r,i,a,s){if(n.call(this,e,t,i,void 0,void 0,a,s),!o.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}a.fromJSON=function(e,t){return new a(e,t.id,t.keyType,t.type,t.options,t.comment)},a.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},a.prototype.resolve=function(){if(this.resolved)return this;if(void 0===i.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},a.d=function(e,t,r){return"function"==typeof r?r=o.decorateType(r).name:r&&"object"==typeof r&&(r=o.decorateEnum(r).name),function(n,i){o.decorateType(n.constructor).add(new a(i,e,t,r))}}},422551:(e,t,r)=>{"use strict";e.exports=i;var n=r(593610);function i(e){if(e)for(var t=Object.keys(e),r=0;r{"use strict";e.exports=o;var n=r(27209);((o.prototype=Object.create(n.prototype)).constructor=o).className="Method";var i=r(553262);function o(e,t,r,o,a,s,c,u,l){if(i.isObject(a)?(c=a,a=s=void 0):i.isObject(s)&&(c=s,s=void 0),void 0!==t&&!i.isString(t))throw TypeError("type must be a string");if(!i.isString(r))throw TypeError("requestType must be a string");if(!i.isString(o))throw TypeError("responseType must be a string");n.call(this,e,c),this.type=t||"rpc",this.requestType=r,this.requestStream=!!a||void 0,this.responseType=o,this.responseStream=!!s||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=u,this.parsedOptions=l}o.fromJSON=function(e,t){return new o(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0,"parsedOptions",this.parsedOptions])},o.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))}},8923:(e,t,r)=>{"use strict";e.exports=d;var n=r(27209);((d.prototype=Object.create(n.prototype)).constructor=d).className="Namespace";var i,o,a,s=r(431344),c=r(553262),u=r(891457);function l(e,t){if(e&&e.length){for(var r={},n=0;nt)return!0;return!1},d.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof d))throw Error("path conflicts with non-namespace objects")}else r.add(r=new d(n))}return t&&r.addJSON(t),r},d.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t-1)return n}else if(n instanceof d&&(n=n.lookup(e.slice(1),t,!0)))return n}else for(var i=0;i{"use strict";e.exports=o,o.className="ReflectionObject";var n,i=r(553262);function o(e,t){if(!i.isString(e))throw TypeError("name must be a string");if(t&&!i.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(o.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),o.prototype.toJSON=function(){throw Error()},o.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof n&&t._handleAdd(this)},o.prototype.onRemove=function(e){var t=e.root;t instanceof n&&t._handleRemove(this),this.parent=null,this.resolved=!1},o.prototype.resolve=function(){return this.resolved||this.root instanceof n&&(this.resolved=!0),this},o.prototype.getOption=function(e){if(this.options)return this.options[e]},o.prototype.setOption=function(e,t,r){return r&&this.options&&void 0!==this.options[e]||((this.options||(this.options={}))[e]=t),this},o.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var n=this.parsedOptions;if(r){var o=n.find((function(t){return Object.prototype.hasOwnProperty.call(t,e)}));if(o){var a=o[e];i.setProperty(a,r,t)}else(o={})[e]=i.setProperty({},r,t),n.push(o)}else{var s={};s[e]=t,n.push(s)}return this},o.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),n=0;n{"use strict";e.exports=a;var n=r(27209);((a.prototype=Object.create(n.prototype)).constructor=a).className="OneOf";var i=r(431344),o=r(553262);function a(e,t,r,i){if(Array.isArray(t)||(r=t,t=void 0),n.call(this,e,r),void 0!==t&&!Array.isArray(t))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=i}function s(e){if(e.parent)for(var t=0;t-1&&this.oneof.splice(t,1),e.partOf=null,this},a.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t{"use strict";e.exports=x,x.filename=null,x.defaults={keepCase:!1};var n=r(590527),i=r(545330),o=r(617882),a=r(431344),s=r(688252),c=r(891457),u=r(235643),l=r(809687),d=r(688811),f=r(280361),h=r(553262),p=/^[1-9][0-9]*$/,g=/^-?[1-9][0-9]*$/,m=/^0[x][0-9a-fA-F]+$/,y=/^-?0[x][0-9a-fA-F]+$/,b=/^0[0-7]+$/,v=/^-?0[0-7]+$/,w=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,A=/^[a-zA-Z_][a-zA-Z_0-9]*$/,C=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,E=/^(?:\.[a-zA-Z_][a-zA-Z_0-9]*)+$/;function x(e,t,r){t instanceof i||(r=t,t=new i),r||(r=x.defaults);var S,I,k,_,T,M=r.preferTrailingComment||!1,P=n(e,r.alternateCommentMode||!1),j=P.next,D=P.push,O=P.peek,B=P.skip,N=P.cmnt,R=!0,L=!1,F=t,U=r.keepCase?function(e){return e}:h.camelCase;function z(e,t,r){var n=x.filename;return r||(x.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(n?n+", ":"")+"line "+P.line+")")}function H(){var e,t=[];do{if('"'!==(e=j())&&"'"!==e)throw z(e);t.push(j()),B(e),e=O()}while('"'===e||"'"===e);return t.join("")}function V(e){var t=j();switch(t){case"'":case'"':return D(t),H();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return function(e,t){var r=1;"-"===e.charAt(0)&&(r=-1,e=e.substring(1));switch(e){case"inf":case"INF":case"Inf":return r*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(p.test(e))return r*parseInt(e,10);if(m.test(e))return r*parseInt(e,16);if(b.test(e))return r*parseInt(e,8);if(w.test(e))return r*parseFloat(e);throw z(e,"number",t)}(t,!0)}catch(r){if(e&&C.test(t))return t;throw z(t,"value")}}function K(e,t){var r,n;do{!t||'"'!==(r=O())&&"'"!==r?e.push([n=G(j()),B("to",!0)?G(j()):n]):e.push(H())}while(B(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Y(i,(function(e){if("option"!==e)throw z(e);ee(i,e),B(";")}),(function(){ne(i)}))}function G(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw z(e,"id");if(g.test(e))return parseInt(e,10);if(y.test(e))return parseInt(e,16);if(v.test(e))return parseInt(e,8);throw z(e,"id")}function q(){if(void 0!==S)throw z("package");if(S=j(),!C.test(S))throw z(S,"name");F=F.define(S),B(";")}function Q(){var e,t=O();switch(t){case"weak":e=k||(k=[]),j();break;case"public":j();default:e=I||(I=[])}t=H(),B(";"),e.push(t)}function W(){if(B("="),_=H(),!(L="proto3"===_)&&"proto2"!==_)throw z(_,"syntax");t.setOption("syntax",_),B(";")}function J(e,t){switch(t){case"option":return ee(e,t),B(";"),!0;case"message":return Z(e,t),!0;case"enum":return X(e,t),!0;case"service":return function(e,t){if(!A.test(t=j()))throw z(t,"service name");var r=new l(t);Y(r,(function(e){if(!J(r,e)){if("rpc"!==e)throw z(e);!function(e,t){var r=N(),n=t;if(!A.test(t=j()))throw z(t,"name");var i,o,a,s,c=t;B("("),B("stream",!0)&&(o=!0);if(!C.test(t=j()))throw z(t);i=t,B(")"),B("returns"),B("("),B("stream",!0)&&(s=!0);if(!C.test(t=j()))throw z(t);a=t,B(")");var u=new d(c,n,i,a,o,s);u.comment=r,Y(u,(function(e){if("option"!==e)throw z(e);ee(u,e),B(";")})),e.add(u)}(r,e)}})),e.add(r)}(e,t),!0;case"extend":return function(e,t){if(!C.test(t=j()))throw z(t,"reference");var r=t;Y(null,(function(t){switch(t){case"required":case"repeated":$(e,t,r);break;case"optional":$(e,L?"proto3_optional":"optional",r);break;default:if(!L||!C.test(t))throw z(t);D(t),$(e,"optional",r)}}))}(e,t),!0}return!1}function Y(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=N()),e.filename=x.filename),B("{",!0)){for(var i;"}"!==(i=j());)t(i);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||M)&&(e.comment=N(n)||e.comment)}function Z(e,t){if(!A.test(t=j()))throw z(t,"type name");var r=new o(t);Y(r,(function(e){if(!J(r,e))switch(e){case"map":!function(e){B("<");var t=j();if(void 0===f.mapKey[t])throw z(t,"type");B(",");var r=j();if(!C.test(r))throw z(r,"type");B(">");var n=j();if(!A.test(n))throw z(n,"name");B("=");var i=new s(U(n),G(j()),t,r);Y(i,(function(e){if("option"!==e)throw z(e);ee(i,e),B(";")}),(function(){ne(i)})),e.add(i)}(r);break;case"required":case"repeated":$(r,e);break;case"optional":$(r,L?"proto3_optional":"optional");break;case"oneof":!function(e,t){if(!A.test(t=j()))throw z(t,"name");var r=new c(U(t));Y(r,(function(e){"option"===e?(ee(r,e),B(";")):(D(e),$(r,"optional"))})),e.add(r)}(r,e);break;case"extensions":K(r.extensions||(r.extensions=[]));break;case"reserved":K(r.reserved||(r.reserved=[]),!0);break;default:if(!L||!C.test(e))throw z(e);D(e),$(r,"optional")}})),e.add(r)}function $(e,t,r){var n=j();if("group"!==n){for(;n.endsWith(".")||O().startsWith(".");)n+=j();if(!C.test(n))throw z(n,"type");var i=j();if(!A.test(i))throw z(i,"name");i=U(i),B("=");var s=new a(i,G(j()),n,t,r);if(Y(s,(function(e){if("option"!==e)throw z(e);ee(s,e),B(";")}),(function(){ne(s)})),"proto3_optional"===t){var u=new c("_"+i);s.setOption("proto3_optional",!0),u.add(s),e.add(u)}else e.add(s);L||!s.repeated||void 0===f.packed[n]&&void 0!==f.basic[n]||s.setOption("packed",!1,!0)}else!function(e,t){var r=j();if(!A.test(r))throw z(r,"name");var n=h.lcFirst(r);r===n&&(r=h.ucFirst(r));B("=");var i=G(j()),s=new o(r);s.group=!0;var c=new a(n,i,r,t);c.filename=x.filename,Y(s,(function(e){switch(e){case"option":ee(s,e),B(";");break;case"required":case"repeated":$(s,e);break;case"optional":$(s,L?"proto3_optional":"optional");break;case"message":Z(s,e);break;case"enum":X(s,e);break;default:throw z(e)}})),e.add(s).add(c)}(e,t)}function X(e,t){if(!A.test(t=j()))throw z(t,"name");var r=new u(t);Y(r,(function(e){switch(e){case"option":ee(r,e),B(";");break;case"reserved":K(r.reserved||(r.reserved=[]),!0);break;default:!function(e,t){if(!A.test(t))throw z(t,"name");B("=");var r=G(j(),!0),n={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Y(n,(function(e){if("option"!==e)throw z(e);ee(n,e),B(";")}),(function(){ne(n)})),e.add(t,r,n.comment,n.options)}(r,e)}})),e.add(r)}function ee(e,t){var r=B("(",!0);if(!C.test(t=j()))throw z(t,"name");var n,i=t,o=i;r&&(B(")"),o=i="("+i+")",t=O(),E.test(t)&&(n=t.slice(1),i+=t,j())),B("="),function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,o,te(e,i),n)}function te(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!A.test(T=j()))throw z(T,"name");if(null===T)throw z(T,"end of input");var n,i=T;if(B(":",!0),"{"===O())n=te(e,t+"."+T);else if("["===O()){var o;if(n=[],B("[",!0)){do{o=V(!0),n.push(o)}while(B(",",!0));B("]"),void 0!==o&&re(e,t+"."+T,o)}}else n=V(!0),re(e,t+"."+T,n);var a=r[i];a&&(n=[].concat(a).concat(n)),r[i]=n,B(",",!0),B(";",!0)}return r}var s=V(!0);return re(e,t,s),s}function re(e,t,r){e.setOption&&e.setOption(t,r)}function ne(e){if(B("[",!0)){do{ee(e,"option")}while(B(",",!0));B("]")}return e}for(;null!==(T=j());)switch(T){case"package":if(!R)throw z(T);q();break;case"import":if(!R)throw z(T);Q();break;case"syntax":if(!R)throw z(T);W();break;case"option":ee(F,T),B(";");break;default:if(J(F,T)){R=!1;continue}throw z(T)}return x.filename=null,{package:S,imports:I,weakImports:k,syntax:_,root:t}}},416237:(e,t,r)=>{"use strict";e.exports=c;var n,i=r(593610),o=i.LongBits,a=i.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},d=function(){return i.Buffer?function(e){return(c.create=function(e){return i.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function f(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8);return new o(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}c.create=d(),c.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,c.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return u}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return h(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|h(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw s(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=i.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},c.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){n=e,c.create=d(),n._configure();var t=i.Long?"toLong":"toNumber";i.merge(c.prototype,{int64:function(){return f.call(this)[t](!1)},uint64:function(){return f.call(this)[t](!0)},sint64:function(){return f.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},733158:(e,t,r)=>{"use strict";e.exports=o;var n=r(416237);(o.prototype=Object.create(n.prototype)).constructor=o;var i=r(593610);function o(e){n.call(this,e)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},545330:(e,t,r)=>{"use strict";e.exports=d;var n=r(8923);((d.prototype=Object.create(n.prototype)).constructor=d).className="Root";var i,o,a,s=r(431344),c=r(235643),u=r(891457),l=r(553262);function d(e){n.call(this,"",e),this.deferred=[],this.files=[]}function f(){}d.fromJSON=function(e,t){return t||(t=new d),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},d.prototype.resolvePath=l.path.resolve,d.prototype.fetch=l.fetch,d.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var i=this;if(!n)return l.asPromise(e,i,t,r);var s=n===f;function c(e,t){if(n){if(s)throw e;var r=n;n=null,r(e,t)}}function u(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in a)return r}return null}function d(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){o.filename=e;var n,a=o(t,i,r),d=0;if(a.imports)for(;d-1))if(i.files.push(e),e in a)s?d(e,a[e]):(++p,setTimeout((function(){--p,d(e,a[e])})));else if(s){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(o){return void(t||c(o))}d(e,r)}else++p,i.fetch(e,(function(r,o){--p,n&&(r?t?p||c(null,i):c(r):d(e,o))}))}var p=0;l.isString(t)&&(t=[t]);for(var g,m=0;m-1&&this.deferred.splice(t,1)}}else if(e instanceof c)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{"use strict";e.exports={}},295047:(e,t,r)=>{"use strict";t.Service=r(427595)},427595:(e,t,r)=>{"use strict";e.exports=i;var n=r(593610);function i(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,r,i,o,a){if(!o)throw TypeError("request must be specified");var s=this;if(!a)return n.asPromise(e,s,t,r,i,o);if(s.rpcImpl)try{return s.rpcImpl(t,r[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),(function(e,r){if(e)return s.emit("error",e,t),a(e);if(null!==r){if(!(r instanceof i))try{r=i[s.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return s.emit("error",e,t),a(e)}return s.emit("data",r,t),a(null,r)}s.end(!0)}))}catch(c){return s.emit("error",c,t),void setTimeout((function(){a(c)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},809687:(e,t,r)=>{"use strict";e.exports=s;var n=r(8923);((s.prototype=Object.create(n.prototype)).constructor=s).className="Service";var i=r(688811),o=r(553262),a=r(295047);function s(e,t){n.call(this,e,t),this.methods={},this._methodsArray=null}function c(e){return e._methodsArray=null,e}s.fromJSON=function(e,t){var r=new s(e,t.options);if(t.methods)for(var n=Object.keys(t.methods),o=0;o{"use strict";e.exports=d;var t=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,i=/^ *[*/]+ */,o=/^\s*\*?\/*/,a=/\n/g,s=/\s/,c=/\\(.?)/g,u={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(c,(function(e,t){switch(t){case"\\":case"":return t;default:return u[t]||""}}))}function d(e,c){e=e.toString();var u=0,d=e.length,f=1,h=0,p={},g=[],m=null;function y(e){return Error("illegal "+e+" (line "+f+")")}function b(t){return e.charAt(t)}function v(t,r,n){var s,u={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(c?2:3);do{if(--l<0||"\n"===(s=e.charAt(l))){u.lineEmpty=!0;break}}while(" "===s||"\t"===s);for(var d=e.substring(t,r).split(a),g=0;g0)return g.shift();if(m)return function(){var t="'"===m?n:r;t.lastIndex=u-1;var i=t.exec(e);if(!i)throw y("string");return u=t.lastIndex,E(m),m=null,l(i[1])}();var i,o,a,h,p,C=0===u;do{if(u===d)return null;for(i=!1;s.test(a=b(u));)if("\n"===a&&(C=!0,++f),++u===d)return null;if("/"===b(u)){if(++u===d)throw y("comment");if("/"===b(u))if(c){if(h=u,p=!1,w(u-1)){p=!0;do{if((u=A(u))===d)break;if(u++,!C)break}while(w(u))}else u=Math.min(d,A(u)+1);p&&(v(h,u,C),C=!0),f++,i=!0}else{for(p="/"===b(h=u+1);"\n"!==b(++u);)if(u===d)return null;++u,p&&(v(h,u-1,C),C=!0),++f,i=!0}else{if("*"!==(a=b(u)))return"/";h=u+1,p=c||"*"===b(h);do{if("\n"===a&&++f,++u===d)throw y("comment");o=a,a=b(u)}while("*"!==o||"/"!==a);++u,p&&(v(h,u-2,C),C=!0),i=!0}}}while(i);var x=u;if(t.lastIndex=0,!t.test(b(x++)))for(;x{"use strict";e.exports=b;var n=r(8923);((b.prototype=Object.create(n.prototype)).constructor=b).className="Type";var i=r(235643),o=r(891457),a=r(431344),s=r(688252),c=r(809687),u=r(422551),l=r(416237),d=r(163449),f=r(553262),h=r(721080),p=r(27728),g=r(580420),m=r(550744),y=r(906434);function b(e,t){n.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function v(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(b.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t{"use strict";var n=t,i=r(553262),o=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function a(e,t){var r=0,n={};for(t|=0;r{"use strict";var n,i,o=e.exports=r(593610),a=r(764529);o.codegen=r(248561),o.fetch=r(595212),o.path=r(579207),o.fs=o.inquire("fs"),o.toArray=function(e){if(e){for(var t=Object.keys(e),r=new Array(t.length),n=0;n0)t[i]=e(t[i]||{},r,n);else{var o=t[i];o&&(n=[].concat(o).concat(n)),t[i]=n}return t}(e,t=t.split("."),r)},Object.defineProperty(o,"decorateRoot",{get:function(){return a.decorated||(a.decorated=new(r(545330)))}})},732239:(e,t,r)=>{"use strict";e.exports=i;var n=r(593610);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new i(r,n)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(n.isString(e)){if(!n.Long)return i.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):o},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;i.fromHash=function(e){return e===a?o:new i((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},593610:function(e,t,r){"use strict";var n=t;function i(e,t,r){for(var n=Object.keys(t),i=0;i0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(t){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=i,n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;r{"use strict";e.exports=function(e){var t=i.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),r=e.oneofsArray,n={};r.length&&t("var p={}");for(var c=0;c{"use strict";var n=t,i=r(422551);n[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var t=e["@type"].substring(e["@type"].lastIndexOf("/")+1),r=this.lookup(t);if(r){var n="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return-1===n.indexOf("/")&&(n="/"+n),this.create({type_url:n,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){var r="",n="";if(t&&t.json&&e.type_url&&e.value){n=e.type_url.substring(e.type_url.lastIndexOf("/")+1),r=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var o=this.lookup(n);o&&(e=o.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof i){var a=e.$type.toObject(e,t);return""===r&&(r="type.googleapis.com/"),n=r+("."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName),a["@type"]=n,a}return this.toObject(e,t)}}},163449:(e,t,r)=>{"use strict";e.exports=d;var n,i=r(593610),o=i.LongBits,a=i.base64,s=i.utf8;function c(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function u(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function d(){this.len=0,this.head=new c(u,0,0),this.tail=this.head,this.states=null}var f=function(){return i.Buffer?function(){return(d.create=function(){return new n})()}:function(){return new d}};function h(e,t,r){t[r]=255&e}function p(e,t){this.len=e,this.next=void 0,this.val=t}function g(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}d.create=f(),d.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(d.alloc=i.pool(d.alloc,i.Array.prototype.subarray)),d.prototype._push=function(e,t,r){return this.tail=this.tail.next=new c(e,t,r),this.len+=t,this},p.prototype=Object.create(c.prototype),p.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(g,10,o.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=o.from(e);return this._push(g,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(g,t.length(),t)},d.prototype.bool=function(e){return this._push(h,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var y=i.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(i.isString(e)){var r=d.alloc(t=a.length(e));a.decode(e,r,0),e=r}return this.uint32(t)._push(y,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(h,1,0)},d.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new c(u,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},d._configure=function(e){n=e,d.create=f(),n._configure()}},860818:(e,t,r)=>{"use strict";e.exports=o;var n=r(163449);(o.prototype=Object.create(n.prototype)).constructor=o;var i=r(593610);function o(){n.call(this)}function a(e,t,r){e.length<40?i.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},o._configure()},297168:(e,t,r)=>{t.publicEncrypt=r(828902),t.privateDecrypt=r(277362),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},348206:(e,t,r)=>{var n=r(747108),i=r(192861).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,a=i.alloc(0),s=0;a.length{var n=r(778170),i=r(348206),o=r(352061),a=r(439404),s=r(567332),c=r(747108),u=r(299247),l=r(192861).Buffer;e.exports=function(e,t,r){var d;d=e.padding?e.padding:r?1:4;var f,h=n(e),p=h.modulus.byteLength();if(t.length>p||new a(t).cmp(h.modulus)>=0)throw new Error("decryption error");f=r?u(new a(t),h):s(t,h);var g=l.alloc(p-f.length);if(f=l.concat([g,f],p),4===d)return function(e,t){var r=e.modulus.byteLength(),n=c("sha1").update(l.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),u=t.slice(a+1),d=o(s,i(u,a)),f=o(u,i(d,r-a-1));if(function(e,t){e=l.from(e),t=l.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,f,r);if(3===d)return f;throw new Error("unknown padding")}},828902:(e,t,r)=>{var n=r(778170),i=r(553209),o=r(747108),a=r(348206),s=r(352061),c=r(439404),u=r(299247),l=r(567332),d=r(192861).Buffer;e.exports=function(e,t,r){var f;f=e.padding?e.padding:r?1:4;var h,p=n(e);if(4===f)h=function(e,t){var r=e.modulus.byteLength(),n=t.length,u=o("sha1").update(d.alloc(0)).digest(),l=u.length,f=2*l;if(n>r-f-2)throw new Error("message too long");var h=d.alloc(r-n-f-2),p=r-l-1,g=i(l),m=s(d.concat([u,h,d.alloc(1,1),t],p),a(g,p)),y=s(g,a(m,l));return new c(d.concat([d.alloc(1),y,m],r))}(p,t);else if(1===f)h=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?d.alloc(a-o-3,255):function(e){var t,r=d.allocUnsafe(e),n=0,o=i(2*e),a=0;for(;n=0)throw new Error("data too long for modulus")}return r?l(h,p):u(h,p)}},299247:(e,t,r)=>{var n=r(439404),i=r(192861).Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},352061:e=>{e.exports=function(e,t){for(var r=e.length,n=-1;++n= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,h=String.fromCharCode;function p(e){throw new RangeError(d[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function m(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(l,".")).split("."),t).join(".")}function y(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function v(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?f(e/700):e>>1,e+=f(e/t);e>455;n+=s)e=f(e/35);return f(n+36*e/(e+38))}function A(e){var t,r,n,i,o,c,u,l,d,h,g,m=[],y=e.length,v=0,A=128,C=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&p("not-basic"),m.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=y&&p("invalid-input"),((l=(g=e.charCodeAt(i++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:s)>=s||l>f((a-v)/c))&&p("overflow"),v+=l*c,!(l<(d=u<=C?1:u>=C+26?26:u-C));u+=s)c>f(a/(h=s-d))&&p("overflow"),c*=h;C=w(v-o,t=m.length+1,0==o),f(v/t)>a-A&&p("overflow"),A+=f(v/t),v%=t,m.splice(v++,0,A)}return b(m)}function C(e){var t,r,n,i,o,c,u,l,d,g,m,b,A,C,E,x=[];for(b=(e=y(e)).length,t=128,r=0,o=72,c=0;c=t&&mf((a-r)/(A=n+1))&&p("overflow"),r+=(u-t)*A,t=u,c=0;ca&&p("overflow"),m==t){for(l=r,d=s;!(l<(g=d<=o?1:d>=o+26?26:d-o));d+=s)E=l-g,C=s-g,x.push(h(v(g+E%C,0))),l=f(E/C);x.push(h(v(l,0))),o=w(r,A,n==i),r=0,++n}++r,++t}return x.join("")}o={version:"1.4.1",ucs2:{decode:y,encode:b},decode:A,encode:C,toASCII:function(e){return m(e,(function(e){return u.test(e)?"xn--"+C(e):e}))},toUnicode:function(e){return m(e,(function(e){return c.test(e)?A(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},173992:(e,t)=>{"use strict";var r=Object.prototype.hasOwnProperty;function n(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return null}}function i(e){try{return encodeURIComponent(e)}catch(t){return null}}t.stringify=function(e,t){t=t||"";var n,o,a=[];for(o in"string"!=typeof t&&(t="?"),e)if(r.call(e,o)){if((n=e[o])||null!=n&&!isNaN(n)||(n=""),o=i(o),n=i(n),null===o||null===n)continue;a.push(o+"="+n)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,i={};t=r.exec(e);){var o=n(t[1]),a=n(t[2]);null===o||null===a||o in i||(i[o]=a)}return i}},979596:(e,t,r)=>{let n;e.exports="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:r.g):e=>(n||(n=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))},493146:(e,t,r)=>{for(var n=r(913491),i="undefined"==typeof window?r.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],c=i["cancel"+a]||i["cancelRequest"+a],u=0;!s&&u{"use strict";var n=65536,i=4294967295;var o=r(192861).Buffer,a=r.g.crypto||r.g.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>i)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(e);if(e>0)if(e>n)for(var s=0;s{"use strict";function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=r(192861),o=r(553209),a=i.Buffer,s=i.kMaxLength,c=r.g.crypto||r.g.msCrypto,u=Math.pow(2,32)-1;function l(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>s)throw new RangeError("buffer too small")}function f(e,t,r,n){if(process.browser){var i=e.buffer,a=new Uint8Array(i,t,r);return c.getRandomValues(a),n?void process.nextTick((function(){n(null,e)})):e}if(!n)return o(r).copy(e,t),e;o(r,(function(r,i){if(r)return n(r);i.copy(e,t),n(null,e)}))}c&&c.getRandomValues||!process.browser?(t.randomFill=function(e,t,n,i){if(!(a.isBuffer(e)||e instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-t;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return l(t,e.length),d(n,t,e.length),f(e,t,n,i)},t.randomFillSync=function(e,t,n){void 0===t&&(t=0);if(!(a.isBuffer(e)||e instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');l(t,e.length),void 0===n&&(n=e.length-t);return d(n,t,e.length),f(e,t,n)}):(t.randomFill=n,t.randomFillSync=n)},801612:(e,t,r)=>{"use strict";r.d(t,{AnD:()=>u,Gp9:()=>c,H1h:()=>a,O4U:()=>i,U2A:()=>l,jNV:()=>s,ok6:()=>o});var n=r(910383);function i(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"}}]})(e)}function o(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"}}]})(e)}function a(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"}}]})(e)}function s(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"}}]})(e)}function c(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"}}]})(e)}function u(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"}}]})(e)}function l(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M466.27 286.69C475.04 271.84 480 256 480 236.85c0-44.015-37.218-85.58-85.82-85.58H357.7c4.92-12.81 8.85-28.13 8.85-46.54C366.55 31.936 328.86 0 271.28 0c-61.607 0-58.093 94.933-71.76 108.6-22.747 22.747-49.615 66.447-68.76 83.4H32c-17.673 0-32 14.327-32 32v240c0 17.673 14.327 32 32 32h64c14.893 0 27.408-10.174 30.978-23.95 44.509 1.001 75.06 39.94 177.802 39.94 7.22 0 15.22.01 22.22.01 77.117 0 111.986-39.423 112.94-95.33 13.319-18.425 20.299-43.122 17.34-66.99 9.854-18.452 13.664-40.343 8.99-62.99zm-61.75 53.83c12.56 21.13 1.26 49.41-13.94 57.57 7.7 48.78-17.608 65.9-53.12 65.9h-37.82c-71.639 0-118.029-37.82-171.64-37.82V240h10.92c28.36 0 67.98-70.89 94.54-97.46 28.36-28.36 18.91-75.63 37.82-94.54 47.27 0 47.27 32.98 47.27 56.73 0 39.17-28.36 56.72-28.36 94.54h103.99c21.11 0 37.73 18.91 37.82 37.82.09 18.9-12.82 37.81-22.27 37.81 13.489 14.555 16.371 45.236-5.21 65.62zM88 432c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"}}]})(e)}},571301:e=>{(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};t.r(r),t.d(r,{default:()=>i});var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return t=[{key:"changeHeightWidth",value:function(e,t,r,n,i,o){return r>n&&(e=Math.round(e*n/r),r=n),e>t&&(r=Math.round(r*t/e),e=t),i&&r5&&void 0!==arguments[5]?arguments[5]:"jpeg",a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,s=(arguments.length>6&&void 0!==arguments[6]?arguments[6]:100)/100,c=document.createElement("canvas"),u=e.width,l=e.height,d=this.changeHeightWidth(l,r,u,t,n,i);!a||90!==a&&270!==a?(c.width=d.width,c.height=d.height):(c.width=d.height,c.height=d.width),u=d.width,l=d.height;var f=c.getContext("2d");return f.fillStyle="rgba(0, 0, 0, 0)",f.fillRect(0,0,u,l),f.imageSmoothingEnabled&&f.imageSmoothingQuality&&(f.imageSmoothingQuality="high"),a&&(f.rotate(a*Math.PI/180),90===a?f.translate(0,-c.width):180===a?f.translate(-c.width,-c.height):270===a?f.translate(-c.height,0):0!==a&&360!==a||f.translate(0,0)),f.drawImage(e,0,0,u,l),c.toDataURL("image/".concat(o),s)}},{key:"b64toByteArrays",value:function(e,t){t=t||"image/jpeg";for(var r=atob(e.toString().replace(/^data:image\/(png|jpeg|jpg|webp);base64,/,"")),n=[],i=0;i7&&void 0!==arguments[7]?arguments[7]:"base64",u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,d=new FileReader;if(!t)throw Error("File Not Found!");if(t.type&&!t.type.includes("image"))throw Error("File Is NOT Image!");d.readAsDataURL(t),d.onload=function(){var f=new Image;f.src=d.result,f.onload=function(){var d=e.resizeAndRotateImage(f,r,n,u,l,i,o,a),h="image/".concat(i);switch(c){case"blob":var p=e.b64toBlob(d,h);s(p);break;case"base64":default:s(d);break;case"file":var g=t.name.toString().replace(/(png|jpeg|jpg|webp)$/i,"").concat(i.toString()),m=e.b64toFile(d,g,h);s(m)}}},d.onerror=function(e){throw Error(e)}}}],t&&function(e,t){for(var r=0;r{var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))c.call(e,s)||s===r||i(e,s,{get:()=>t[s],enumerable:!(n=o(t,s))||n.enumerable});return e},l=(e,t,r)=>(r=null!=e?n(s(e)):{},u(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),d=(e,t,r)=>(((e,t,r)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),f={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(f,{default:()=>y}),e.exports=(e=>u(i({},"__esModule",{value:!0}),e))(f);var h=l(r(296540)),p=l(r(730115)),g=r(788259),m=r(287032);class y extends h.Component{constructor(){super(...arguments),d(this,"mounted",!1),d(this,"isReady",!1),d(this,"isPlaying",!1),d(this,"isLoading",!0),d(this,"loadOnReady",null),d(this,"startOnPlay",!0),d(this,"seekOnPlay",null),d(this,"onDurationCalled",!1),d(this,"handlePlayerMount",(e=>{this.player||(this.player=e,this.player.load(this.props.url)),this.progress()})),d(this,"getInternalPlayer",(e=>this.player?this.player[e]:null)),d(this,"progress",(()=>{if(this.props.url&&this.player&&this.isReady){const e=this.getCurrentTime()||0,t=this.getSecondsLoaded(),r=this.getDuration();if(r){const n={playedSeconds:e,played:e/r};null!==t&&(n.loadedSeconds=t,n.loaded=t/r),n.playedSeconds===this.prevPlayed&&n.loadedSeconds===this.prevLoaded||this.props.onProgress(n),this.prevPlayed=n.playedSeconds,this.prevLoaded=n.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)})),d(this,"handleReady",(()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:e,playing:t,volume:r,muted:n}=this.props;e(),n||null===r||this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):t&&this.player.play(),this.handleDurationCheck()})),d(this,"handlePlay",(()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:e,onPlay:t,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&1!==r&&this.player.setPlaybackRate(r),e(),this.startOnPlay=!1),t(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()})),d(this,"handlePause",(e=>{this.isPlaying=!1,this.isLoading||this.props.onPause(e)})),d(this,"handleEnded",(()=>{const{activePlayer:e,loop:t,onEnded:r}=this.props;e.loopOnEnded&&t&&this.seekTo(0),t||(this.isPlaying=!1,r())})),d(this,"handleError",((...e)=>{this.isLoading=!1,this.props.onError(...e)})),d(this,"handleDurationCheck",(()=>{clearTimeout(this.durationCheckTimeout);const e=this.getDuration();e?this.onDurationCalled||(this.props.onDuration(e),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)})),d(this,"handleLoaded",(()=>{this.isLoading=!1}))}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(e){if(!this.player)return;const{url:t,playing:r,volume:n,muted:i,playbackRate:o,pip:a,loop:s,activePlayer:c,disableDeferredLoading:u}=this.props;if(!(0,p.default)(e.url,t)){if(this.isLoading&&!c.forceLoad&&!u&&!(0,m.isMediaStream)(t))return console.warn(`ReactPlayer: the attempt to load ${t} is being deferred until the player has loaded`),void(this.loadOnReady=t);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(t,this.isReady)}e.playing||!r||this.isPlaying||this.player.play(),e.playing&&!r&&this.isPlaying&&this.player.pause(),!e.pip&&a&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!a&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==n&&null!==n&&this.player.setVolume(n),e.muted!==i&&(i?this.player.mute():(this.player.unmute(),null!==n&&setTimeout((()=>this.player.setVolume(n))))),e.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),e.loop!==s&&this.player.setLoop&&this.player.setLoop(s)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(e,t,r){if(!this.isReady)return void(0!==e&&(this.seekOnPlay=e,setTimeout((()=>{this.seekOnPlay=null}),5e3)));if(t?"fraction"===t:e>0&&e<1){const t=this.player.getDuration();return t?void this.player.seekTo(t*e,r):void console.warn("ReactPlayer: could not seek using fraction \u2013\xa0duration not yet available")}this.player.seekTo(e,r)}render(){const e=this.props.activePlayer;return e?h.default.createElement(e,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}d(y,"displayName","Player"),d(y,"propTypes",g.propTypes),d(y,"defaultProps",g.defaultProps)},474563:(e,t,r)=>{var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))c.call(e,s)||s===r||i(e,s,{get:()=>t[s],enumerable:!(n=o(t,s))||n.enumerable});return e},l=(e,t,r)=>(r=null!=e?n(s(e)):{},u(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),d=(e,t,r)=>(((e,t,r)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),f={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(f,{createReactPlayer:()=>I}),e.exports=(e=>u(i({},"__esModule",{value:!0}),e))(f);var h=l(r(296540)),p=l(r(914744)),g=l(r(241811)),m=l(r(730115)),y=r(788259),b=r(287032),v=l(r(206620));const w=(0,b.lazy)((()=>r.e(36353).then(r.t.bind(r,33941,23)))),A="undefined"!=typeof window&&window.document&&"undefined"!=typeof document,C=void 0!==r.g&&r.g.window&&r.g.window.document,E=Object.keys(y.propTypes),x=A||C?h.Suspense:()=>null,S=[],I=(e,t)=>{var r;return r=class extends h.Component{constructor(){super(...arguments),d(this,"state",{showPreview:!!this.props.light}),d(this,"references",{wrapper:e=>{this.wrapper=e},player:e=>{this.player=e}}),d(this,"handleClickPreview",(e=>{this.setState({showPreview:!1}),this.props.onClickPreview(e)})),d(this,"showPreview",(()=>{this.setState({showPreview:!0})})),d(this,"getDuration",(()=>this.player?this.player.getDuration():null)),d(this,"getCurrentTime",(()=>this.player?this.player.getCurrentTime():null)),d(this,"getSecondsLoaded",(()=>this.player?this.player.getSecondsLoaded():null)),d(this,"getInternalPlayer",((e="player")=>this.player?this.player.getInternalPlayer(e):null)),d(this,"seekTo",((e,t,r)=>{if(!this.player)return null;this.player.seekTo(e,t,r)})),d(this,"handleReady",(()=>{this.props.onReady(this)})),d(this,"getActivePlayer",(0,g.default)((r=>{for(const t of[...S,...e])if(t.canPlay(r))return t;return t||null}))),d(this,"getConfig",(0,g.default)(((e,t)=>{const{config:r}=this.props;return p.default.all([y.defaultProps.config,y.defaultProps.config[t]||{},r,r[t]||{}])}))),d(this,"getAttributes",(0,g.default)((e=>(0,b.omit)(this.props,E)))),d(this,"renderActivePlayer",(e=>{if(!e)return null;const t=this.getActivePlayer(e);if(!t)return null;const r=this.getConfig(e,t.key);return h.default.createElement(v.default,{...this.props,key:t.key,ref:this.references.player,config:r,activePlayer:t.lazyPlayer||t,onReady:this.handleReady})}))}shouldComponentUpdate(e,t){return!(0,m.default)(this.props,e)||!(0,m.default)(this.state,t)}componentDidUpdate(e){const{light:t}=this.props;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}renderPreview(e){if(!e)return null;const{light:t,playIcon:r,previewTabIndex:n,oEmbedUrl:i,previewAriaLabel:o}=this.props;return h.default.createElement(w,{url:e,light:t,playIcon:r,previewTabIndex:n,previewAriaLabel:o,oEmbedUrl:i,onClick:this.handleClickPreview})}render(){const{url:e,style:t,width:r,height:n,fallback:i,wrapper:o}=this.props,{showPreview:a}=this.state,s=this.getAttributes(e),c="string"==typeof o?this.references.wrapper:void 0;return h.default.createElement(o,{ref:c,style:{...t,width:r,height:n},...s},h.default.createElement(x,{fallback:i},a?this.renderPreview(e):this.renderActivePlayer(e)))}},d(r,"displayName","ReactPlayer"),d(r,"propTypes",y.propTypes),d(r,"defaultProps",y.defaultProps),d(r,"addCustomPlayer",(e=>{S.push(e)})),d(r,"removeCustomPlayers",(()=>{S.length=0})),d(r,"canPlay",(t=>{for(const r of[...S,...e])if(r.canPlay(t))return!0;return!1})),d(r,"canEnablePIP",(t=>{for(const r of[...S,...e])if(r.canEnablePIP&&r.canEnablePIP(t))return!0;return!1})),r}},498957:(e,t,r)=>{var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))c.call(e,s)||s===r||i(e,s,{get:()=>t[s],enumerable:!(n=o(t,s))||n.enumerable});return e},l={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(l,{default:()=>p}),e.exports=(e=>u(i({},"__esModule",{value:!0}),e))(l);var d=((e,t,r)=>(r=null!=e?n(s(e)):{},u(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)))(r(13820)),f=r(474563);const h=d.default[d.default.length-1];var p=(0,f.createReactPlayer)(d.default,h)},987430:(e,t,r)=>{var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(s,{AUDIO_EXTENSIONS:()=>E,DASH_EXTENSIONS:()=>I,FLV_EXTENSIONS:()=>k,HLS_EXTENSIONS:()=>S,MATCH_URL_DAILYMOTION:()=>v,MATCH_URL_FACEBOOK:()=>h,MATCH_URL_FACEBOOK_WATCH:()=>p,MATCH_URL_KALTURA:()=>C,MATCH_URL_MIXCLOUD:()=>w,MATCH_URL_MUX:()=>f,MATCH_URL_SOUNDCLOUD:()=>l,MATCH_URL_STREAMABLE:()=>g,MATCH_URL_TWITCH_CHANNEL:()=>b,MATCH_URL_TWITCH_VIDEO:()=>y,MATCH_URL_VIDYARD:()=>A,MATCH_URL_VIMEO:()=>d,MATCH_URL_WISTIA:()=>m,MATCH_URL_YOUTUBE:()=>u,VIDEO_EXTENSIONS:()=>x,canPlay:()=>T}),e.exports=(e=>((e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of o(t))a.call(e,c)||c===r||n(e,c,{get:()=>t[c],enumerable:!(s=i(t,c))||s.enumerable});return e})(n({},"__esModule",{value:!0}),e))(s);var c=r(287032);const u=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,l=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,d=/vimeo\.com\/(?!progressive_redirect).+/,f=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,h=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,p=/^https?:\/\/fb\.watch\/.+$/,g=/streamable\.com\/([a-z0-9]+)$/,m=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,y=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,b=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,v=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,w=/mixcloud\.com\/([^/]+\/[^/]+)/,A=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,C=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,E=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,x=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,S=/\.(m3u8)($|\?)/i,I=/\.(mpd)($|\?)/i,k=/\.(flv)($|\?)/i,_=e=>{if(e instanceof Array){for(const t of e){if("string"==typeof t&&_(t))return!0;if(_(t.src))return!0}return!1}return!(!(0,c.isMediaStream)(e)&&!(0,c.isBlobUrl)(e))||(E.test(e)||x.test(e)||S.test(e)||I.test(e)||k.test(e))},T={youtube:e=>e instanceof Array?e.every((e=>u.test(e))):u.test(e),soundcloud:e=>l.test(e)&&!E.test(e),vimeo:e=>d.test(e)&&!x.test(e)&&!S.test(e),mux:e=>f.test(e),facebook:e=>h.test(e)||p.test(e),streamable:e=>g.test(e),wistia:e=>m.test(e),twitch:e=>y.test(e)||b.test(e),dailymotion:e=>v.test(e),mixcloud:e=>w.test(e),vidyard:e=>A.test(e),kaltura:e=>C.test(e),file:_}},13820:(e,t,r)=>{Object.create;var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=(Object.getPrototypeOf,Object.prototype.hasOwnProperty),s=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of o(t))a.call(e,c)||c===r||n(e,c,{get:()=>t[c],enumerable:!(s=i(t,c))||s.enumerable});return e},c={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(c,{default:()=>d}),e.exports=(e=>s(n({},"__esModule",{value:!0}),e))(c);var u=r(287032),l=r(987430),d=[{key:"youtube",name:"YouTube",canPlay:l.canPlay.youtube,lazyPlayer:(0,u.lazy)((()=>r.e(18446).then(r.t.bind(r,88645,23))))},{key:"soundcloud",name:"SoundCloud",canPlay:l.canPlay.soundcloud,lazyPlayer:(0,u.lazy)((()=>r.e(69979).then(r.t.bind(r,188698,23))))},{key:"vimeo",name:"Vimeo",canPlay:l.canPlay.vimeo,lazyPlayer:(0,u.lazy)((()=>r.e(26173).then(r.t.bind(r,893868,23))))},{key:"mux",name:"Mux",canPlay:l.canPlay.mux,lazyPlayer:(0,u.lazy)((()=>r.e(52723).then(r.t.bind(r,231802,23))))},{key:"facebook",name:"Facebook",canPlay:l.canPlay.facebook,lazyPlayer:(0,u.lazy)((()=>r.e(86887).then(r.t.bind(r,217862,23))))},{key:"streamable",name:"Streamable",canPlay:l.canPlay.streamable,lazyPlayer:(0,u.lazy)((()=>r.e(47627).then(r.t.bind(r,356146,23))))},{key:"wistia",name:"Wistia",canPlay:l.canPlay.wistia,lazyPlayer:(0,u.lazy)((()=>r.e(54578).then(r.t.bind(r,606771,23))))},{key:"twitch",name:"Twitch",canPlay:l.canPlay.twitch,lazyPlayer:(0,u.lazy)((()=>r.e(12042).then(r.t.bind(r,711721,23))))},{key:"dailymotion",name:"DailyMotion",canPlay:l.canPlay.dailymotion,lazyPlayer:(0,u.lazy)((()=>r.e(16328).then(r.t.bind(r,853903,23))))},{key:"mixcloud",name:"Mixcloud",canPlay:l.canPlay.mixcloud,lazyPlayer:(0,u.lazy)((()=>r.e(67570).then(r.t.bind(r,422385,23))))},{key:"vidyard",name:"Vidyard",canPlay:l.canPlay.vidyard,lazyPlayer:(0,u.lazy)((()=>r.e(3392).then(r.t.bind(r,592519,23))))},{key:"kaltura",name:"Kaltura",canPlay:l.canPlay.kaltura,lazyPlayer:(0,u.lazy)((()=>r.e(6463).then(r.t.bind(r,371326,23))))},{key:"file",name:"FilePlayer",canPlay:l.canPlay.file,canEnablePIP:e=>l.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,u.supportsWebKitPresentationMode)())&&!l.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,u.lazy)((()=>r.e(97458).then(r.t.bind(r,555825,23))))}]},788259:(e,t,r)=>{var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))c.call(e,s)||s===r||i(e,s,{get:()=>t[s],enumerable:!(n=o(t,s))||n.enumerable});return e},l={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(l,{defaultProps:()=>E,propTypes:()=>A}),e.exports=(e=>u(i({},"__esModule",{value:!0}),e))(l);var d=((e,t,r)=>(r=null!=e?n(s(e)):{},u(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)))(r(605556));const{string:f,bool:h,number:p,array:g,oneOfType:m,shape:y,object:b,func:v,node:w}=d.default,A={url:m([f,g,b]),playing:h,loop:h,controls:h,volume:p,muted:h,playbackRate:p,width:m([f,p]),height:m([f,p]),style:b,progressInterval:p,playsinline:h,pip:h,stopOnUnmount:h,light:m([h,f,b]),playIcon:w,previewTabIndex:p,previewAriaLabel:f,fallback:w,oEmbedUrl:f,wrapper:m([f,v,y({render:v.isRequired})]),config:y({soundcloud:y({options:b}),youtube:y({playerVars:b,embedOptions:b,onUnstarted:v}),facebook:y({appId:f,version:f,playerId:f,attributes:b}),dailymotion:y({params:b}),vimeo:y({playerOptions:b,title:f}),mux:y({attributes:b,version:f}),file:y({attributes:b,tracks:g,forceVideo:h,forceAudio:h,forceHLS:h,forceSafariHLS:h,forceDisableHls:h,forceDASH:h,forceFLV:h,hlsOptions:b,hlsVersion:f,dashVersion:f,flvVersion:f}),wistia:y({options:b,playerId:f,customControls:g}),mixcloud:y({options:b}),twitch:y({options:b,playerId:f}),vidyard:y({options:b})}),onReady:v,onStart:v,onPlay:v,onPause:v,onBuffer:v,onBufferEnd:v,onEnded:v,onError:v,onDuration:v,onSeek:v,onPlaybackRateChange:v,onPlaybackQualityChange:v,onProgress:v,onClickPreview:v,onEnablePIP:v,onDisablePIP:v},C=()=>{},E={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:C},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:C,onStart:C,onPlay:C,onPause:C,onBuffer:C,onBufferEnd:C,onEnded:C,onError:C,onDuration:C,onSeek:C,onPlaybackRateChange:C,onPlaybackQualityChange:C,onProgress:C,onClickPreview:C,onEnablePIP:C,onDisablePIP:C}},287032:(e,t,r)=>{var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))c.call(e,s)||s===r||i(e,s,{get:()=>t[s],enumerable:!(n=o(t,s))||n.enumerable});return e},l=(e,t,r)=>(r=null!=e?n(s(e)):{},u(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(d,{callPlayer:()=>M,getConfig:()=>_,getSDK:()=>k,isBlobUrl:()=>j,isMediaStream:()=>P,lazy:()=>g,omit:()=>T,parseEndTime:()=>C,parseStartTime:()=>A,queryString:()=>x,randomString:()=>E,supportsWebKitPresentationMode:()=>D}),e.exports=(e=>u(i({},"__esModule",{value:!0}),e))(d);var f=l(r(296540)),h=l(r(6147)),p=l(r(914744));const g=e=>f.default.lazy((async()=>{const t=await e();return"function"==typeof t.default?t:t.default})),m=/[?&#](?:start|t)=([0-9hms]+)/,y=/[?&#]end=([0-9hms]+)/,b=/(\d+)(h|m|s)/g,v=/^\d+$/;function w(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const e=r[1];if(e.match(b))return function(e){let t=0,r=b.exec(e);for(;null!==r;){const[,n,i]=r;"h"===i&&(t+=60*parseInt(n,10)*60),"m"===i&&(t+=60*parseInt(n,10)),"s"===i&&(t+=parseInt(n,10)),r=b.exec(e)}return t}(e);if(v.test(e))return parseInt(e)}}function A(e){return w(e,m)}function C(e){return w(e,y)}function E(){return Math.random().toString(36).substr(2,5)}function x(e){return Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&")}function S(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const I={},k=function(e){0;return e}((function(e,t,r=null,n=()=>!0,i=h.default){const o=S(t);return o&&n(o)?Promise.resolve(o):new Promise(((n,o)=>{if(I[e])return void I[e].push({resolve:n,reject:o});I[e]=[{resolve:n,reject:o}];const a=t=>{I[e].forEach((e=>e.resolve(t)))};if(r){const e=window[r];window[r]=function(){e&&e(),a(S(t))}}i(e,(n=>{n?(I[e].forEach((e=>e.reject(n))),I[e]=null):r||a(S(t))}))}))}));function _(e,t){return(0,p.default)(t.config,e.config)}function T(e,...t){const r=[].concat(...t),n={},i=Object.keys(e);for(const o of i)-1===r.indexOf(o)&&(n[o]=e[o]);return n}function M(e,...t){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}return this.player[e](...t)}function P(e){return"undefined"!=typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream}function j(e){return/^blob:/.test(e)}function D(e=document.createElement("video")){const t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t}},714210:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},786048:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,a,s;if("string"==typeof t&&(o="not ",t.substr(!a||a<0?0:+a,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var c=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(n(t,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},325382:(e,t,r)=>{"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var i=r(345412),o=r(216708);r(256698)(u,i);for(var a=n(o.prototype),s=0;s{"use strict";e.exports=i;var n=r(374610);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(256698)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},345412:(e,t,r)=>{"use strict";var n;e.exports=x,x.ReadableState=E;r(137007).EventEmitter;var i=function(e,t){return e.listeners(t).length},o=r(740345),a=r(348287).Buffer,s=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,u=r(979838);c=u&&u.debuglog?u.debuglog("stream"):function(){};var l,d,f,h=r(780345),p=r(75896),g=r(65291).getHighWaterMark,m=r(786048).F,y=m.ERR_INVALID_ARG_TYPE,b=m.ERR_STREAM_PUSH_AFTER_EOF,v=m.ERR_METHOD_NOT_IMPLEMENTED,w=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(256698)(x,o);var A=p.errorOrDestroy,C=["error","close","destroy","pause","resume"];function E(e,t,i){n=n||r(325382),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(183141).I),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function x(e){if(n=n||r(325382),!(this instanceof x))return new x(e);var t=this instanceof n;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function S(e,t,r,n,i){c("readableAddChunk",t);var o,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}(e,u);else if(i||(o=function(e,t){var r;n=t,a.isBuffer(n)||n instanceof s||"string"==typeof t||void 0===t||e.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(u,t)),o)A(e,o);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),n)u.endEmitted?A(e,new w):I(e,u,t,!0);else if(u.ended)A(e,new b);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?I(e,u,t,!1):P(e,u)):I(e,u,t,!1)}else n||(u.reading=!1,P(e,u));return!u.ended&&(u.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(M,e))}function M(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function P(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(j,e,t))}function j(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function O(e){c("readable nexttick read 0"),e.read(0)}function B(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function R(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function L(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(F,t,e))}function F(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function U(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):T(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&L(this),null;var n,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e0?R(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==n&&this.emit("data",n),n},x.prototype._read=function(e){A(this,new v("_read()"))},x.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,c("pipe count=%d opts=%j",n.pipesCount,t);var o=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?s:g;function a(t,i){c("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,c("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",a),r.removeListener("end",s),r.removeListener("end",g),r.removeListener("data",d),l=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function s(){c("onend"),e.end()}n.endEmitted?process.nextTick(o):r.once("end",o),e.on("unpipe",a);var u=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,N(e))}}(r);e.on("drain",u);var l=!1;function d(t){c("ondata");var i=e.write(t);c("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==U(n.pipes,e))&&!l&&(c("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(t){c("onerror",t),g(),e.removeListener("error",f),0===i(e,"error")&&A(e,t)}function h(){e.removeListener("finish",p),g()}function p(){c("onfinish"),e.removeListener("close",h),g()}function g(){c("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",f),e.once("close",h),e.once("finish",p),e.emit("pipe",r),n.flowing||(c("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,c("on readable",n.length,n.reading),n.length?T(this):n.reading||process.nextTick(O,this))),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(D,this),r},x.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(D,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(B,e,t))}(this,e)),e.paused=!1,this},x.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o{"use strict";e.exports=l;var n=r(786048).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(325382);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=x,x.WritableState=E;var o={deprecate:r(594643)},a=r(740345),s=r(348287).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,l=r(75896),d=r(65291).getHighWaterMark,f=r(786048).F,h=f.ERR_INVALID_ARG_TYPE,p=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,m=f.ERR_STREAM_CANNOT_PIPE,y=f.ERR_STREAM_DESTROYED,b=f.ERR_STREAM_NULL_VALUES,v=f.ERR_STREAM_WRITE_AFTER_END,w=f.ERR_UNKNOWN_ENCODING,A=l.errorOrDestroy;function C(){}function E(e,t,o){i=i||r(325382),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(M,e,t),e._writableState.errorEmitted=!0,A(e,n)):(i(n),e._writableState.errorEmitted=!0,A(e,n),M(e,t))}(e,r,n,t,i);else{var o=_(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||k(e,r),n?process.nextTick(I,e,r,o,i):I(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function x(e){var t=this instanceof(i=i||r(325382));if(!t&&!u.call(x,this))return new x(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function S(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),M(e,t)}function k(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,S(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,d=r.callback;if(S(e,t,!1,t.objectMode?1:u.length,u,l,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(r){t.pendingcb--,r&&A(e,r),t.prefinished=!0,e.emit("prefinish"),M(e,t)}))}function M(e,t){var r=_(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(256698)(x,a),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===x&&(e&&e._writableState instanceof E)}})):u=function(e){return e instanceof this},x.prototype.pipe=function(){A(this,new m)},x.prototype.write=function(e,t,r){var n,i=this._writableState,o=!1,a=!i.objectMode&&(n=e,s.isBuffer(n)||n instanceof c);return a&&!s.isBuffer(e)&&(e=function(e){return s.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=C),i.ending?function(e,t){var r=new v;A(e,r),process.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var i;return null===r?i=new b:"string"==typeof r||t.objectMode||(i=new h("chunk",["string","Buffer"],r)),!i||(A(e,i),process.nextTick(n,i),!1)}(this,i,e,r))&&(i.pendingcb++,o=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=s.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var c=t.objectMode?1:n.length;t.length+=c;var u=t.length-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new p("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,M(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=l.destroy,x.prototype._undestroy=l.undestroy,x.prototype._destroy=function(e,t){t(e)}},402955:(e,t,r)=>{"use strict";var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(686238),a=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[f].read();null!==r&&(e[l]=null,e[a]=null,e[s]=null,t(h(r,!1)))}}function g(e){process.nextTick(p,e)}var m=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i(n={get stream(){return this[f]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise((function(t,r){process.nextTick((function(){e[c]?r(e[c]):t(h(void 0,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(h(void 0,!0)):t[d](r,n)}),n)}}(n,this));else{var i=this[f].read();if(null!==i)return Promise.resolve(h(i,!1));r=new Promise(this[d])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),m);e.exports=function(e){var t,r=Object.create(y,(i(t={},f,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var n=r[f].read();n?(r[l]=null,r[a]=null,r[s]=null,e(h(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[l]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[l]=null,r[a]=null,r[s]=null,t(e)),void(r[c]=e)}var n=r[a];null!==n&&(r[l]=null,r[a]=null,r[s]=null,n(h(void 0,!0))),r[u]=!0})),e.on("readable",g.bind(null,r)),r}},780345:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},75896:e=>{"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,e)):process.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(r,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(r,o),i(e)):process.nextTick(r,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},686238:(e,t,r)=>{"use strict";var n=r(786048).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},257758:(e,t,r)=>{"use strict";var n;var i=r(786048).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i0,(function(e){l||(l=e),e&&f.forEach(c),o||(f.forEach(c),d(l))}))}));return t.reduce(u)}},65291:(e,t,r)=>{"use strict";var n=r(786048).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},740345:(e,t,r)=>{e.exports=r(137007).EventEmitter},128399:(e,t,r)=>{(t=e.exports=r(345412)).Stream=t,t.Readable=t,t.Writable=r(216708),t.Duplex=r(325382),t.Transform=r(374610),t.PassThrough=r(863600),t.finished=r(686238),t.pipeline=r(257758)},492063:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},566011:(e,t,r)=>{"use strict";var n=r(348287).Buffer,i=r(256698),o=r(351147),a=new Array(16),s=[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],c=[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],u=[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],l=[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],d=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function g(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,w=0|this._a,A=0|this._b,C=0|this._c,E=0|this._d,x=0|this._e,S=0;S<80;S+=1){var I,k;S<16?(I=g(r,n,i,o,h,e[s[S]],d[0],u[S]),k=v(w,A,C,E,x,e[c[S]],f[0],l[S])):S<32?(I=m(r,n,i,o,h,e[s[S]],d[1],u[S]),k=b(w,A,C,E,x,e[c[S]],f[1],l[S])):S<48?(I=y(r,n,i,o,h,e[s[S]],d[2],u[S]),k=y(w,A,C,E,x,e[c[S]],f[2],l[S])):S<64?(I=b(r,n,i,o,h,e[s[S]],d[3],u[S]),k=m(w,A,C,E,x,e[c[S]],f[3],l[S])):(I=v(r,n,i,o,h,e[s[S]],d[4],u[S]),k=g(w,A,C,E,x,e[c[S]],f[4],l[S])),r=h,h=o,o=p(i,10),i=n,n=I,w=x,x=E,E=p(C,10),C=A,A=k}var _=this._b+i+E|0;this._b=this._c+o+x|0,this._c=this._d+h+w|0,this._d=this._e+r+A|0,this._e=this._a+n+C|0,this._a=_},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},351147:(e,t,r)=>{"use strict";var n=r(192861).Buffer,i=r(128399).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(256698)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},949426:(e,t,r)=>{"use strict";r.d(t,{t:()=>i});var n=r(331635),i=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,n.__extends)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(r(95768).B)},652994:(e,t,r)=>{"use strict";r.d(t,{c:()=>d});var n=r(69419),i=r(79390),o=r(55604),a=r(158307);function s(e){return 0===e.length?a.D:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var c=r(794384),u=r(761209),l=r(107008),d=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o,a=this,s=(o=e)&&o instanceof n.vU||function(e){return e&&(0,u.T)(e.next)&&(0,u.T)(e.error)&&(0,u.T)(e.complete)}(o)&&(0,i.Uv)(o)?e:new n.Ms(e,t,r);return(0,l.Y)((function(){var e=a,t=e.operator,r=e.source;s.add(t?t.call(s,r):r?a._subscribe(s):a._trySubscribe(s))})),s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=f(t))((function(t,i){var o=new n.Ms({next:function(t){try{e(t)}catch(r){i(r),o.unsubscribe()}},error:i,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[o.s]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";r.d(t,{B:()=>u});var n=r(331635),i=r(652994),o=r(79390),a=(0,r(282947).L)((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),s=r(106174),c=r(107008),u=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,n.__extends)(t,e),t.prototype.lift=function(e){var t=new l(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new a},t.prototype.next=function(e){var t=this;(0,c.Y)((function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=(0,n.__values)(t.currentObservers),a=o.next();!a.done;a=o.next()){a.value.next(e)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;(0,c.Y)((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;(0,c.Y)((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,a=r.observers;return n||i?o.Kn:(this.currentObservers=null,a.push(e),new o.yU((function(){t.currentObservers=null,(0,s.o)(a,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new i.c;return e.source=this,e},t.create=function(e,t){return new l(e,t)},t}(i.c),l=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,n.__extends)(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:o.Kn},t}(u)},69419:(e,t,r)=>{"use strict";r.d(t,{Ms:()=>y,vU:()=>h});var n=r(331635),i=r(761209),o=r(79390),a=r(794384),s=r(222564),c=r(192357),u=l("C",void 0,void 0);function l(e,t,r){return{kind:e,value:t,error:r}}var d=r(396744),f=r(107008),h=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,o.Uv)(t)&&t.add(r)):r.destination=w,r}return(0,n.__extends)(t,e),t.create=function(e,t,r){return new y(e,t,r)},t.prototype.next=function(e){this.isStopped?v(function(e){return l("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?v(l("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?v(u,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(o.yU),p=Function.prototype.bind;function g(e,t){return p.call(e,t)}var m=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){b(r)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){b(r)}else b(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){b(t)}},e}(),y=function(e){function t(t,r,n){var o,s,c=e.call(this)||this;(0,i.T)(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:c&&a.$.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return c.unsubscribe()},o={next:t.next&&g(t.next,s),error:t.error&&g(t.error,s),complete:t.complete&&g(t.complete,s)}):o=t;return c.destination=new m(o),c}return(0,n.__extends)(t,e),t}(h);function b(e){a.$.useDeprecatedSynchronousErrorHandling?(0,f.l)(e):(0,s.m)(e)}function v(e,t){var r=a.$.onStoppedNotification;r&&d.f.setTimeout((function(){return r(e,t)}))}var w={closed:!0,next:c.l,error:function(e){throw e},complete:c.l}},79390:(e,t,r)=>{"use strict";r.d(t,{Kn:()=>c,yU:()=>s,Uv:()=>u});var n=r(331635),i=r(761209),o=(0,r(282947).L)((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}})),a=r(106174),s=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,a,s;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var u=(0,n.__values)(c),d=u.next();!d.done;d=u.next()){d.value.remove(this)}}catch(y){e={error:y}}finally{try{d&&!d.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else c.remove(this);var f=this.initialTeardown;if((0,i.T)(f))try{f()}catch(b){s=b instanceof o?b.errors:[b]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=(0,n.__values)(h),g=p.next();!g.done;g=p.next()){var m=g.value;try{l(m)}catch(v){s=null!=s?s:[],v instanceof o?s=(0,n.__spreadArray)((0,n.__spreadArray)([],(0,n.__read)(s)),(0,n.__read)(v.errors)):s.push(v)}}}catch(w){r={error:w}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}}if(s)throw new o(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)l(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,a.o)(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&(0,a.o)(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),c=s.EMPTY;function u(e){return e instanceof s||e&&"closed"in e&&(0,i.T)(e.remove)&&(0,i.T)(e.add)&&(0,i.T)(e.unsubscribe)}function l(e){(0,i.T)(e)?e():e.unsubscribe()}},794384:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},161701:(e,t,r)=>{"use strict";r.d(t,{w:()=>n});var n=new(r(652994).c)((function(e){return e.complete()}))},28400:(e,t,r)=>{"use strict";r.d(t,{H:()=>A});var n=r(215964),i=r(556315),o=r(292908),a=r(864878);function s(e,t){return void 0===t&&(t=0),(0,o.N)((function(r,n){r.subscribe((0,a._)(n,(function(r){return(0,i.N)(n,e,(function(){return n.next(r)}),t)}),(function(){return(0,i.N)(n,e,(function(){return n.complete()}),t)}),(function(r){return(0,i.N)(n,e,(function(){return n.error(r)}),t)})))}))}function c(e,t){return void 0===t&&(t=0),(0,o.N)((function(r,n){n.add(e.schedule((function(){return r.subscribe(n)}),t))}))}var u=r(652994);var l=r(12059),d=r(761209);function f(e,t){if(!e)throw new Error("Iterable cannot be null");return new u.c((function(r){(0,i.N)(r,t,(function(){var n=e[Symbol.asyncIterator]();(0,i.N)(r,t,(function(){n.next().then((function(e){e.done?r.complete():r.next(e.value)}))}),0,!0)}))}))}var h=r(537541),p=r(803440),g=r(869391),m=r(758667),y=r(562471),b=r(243465),v=r(708438);function w(e,t){if(null!=e){if((0,h.l)(e))return function(e,t){return(0,n.Tg)(e).pipe(c(t),s(t))}(e,t);if((0,g.X)(e))return function(e,t){return new u.c((function(r){var n=0;return t.schedule((function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())}))}))}(e,t);if((0,p.y)(e))return function(e,t){return(0,n.Tg)(e).pipe(c(t),s(t))}(e,t);if((0,y.T)(e))return f(e,t);if((0,m.x)(e))return function(e,t){return new u.c((function(r){var n;return(0,i.N)(r,t,(function(){n=e[l.l](),(0,i.N)(r,t,(function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(o){return void r.error(o)}i?r.complete():r.next(t)}),0,!0)})),function(){return(0,d.T)(null==n?void 0:n.return)&&n.return()}}))}(e,t);if((0,v.U)(e))return function(e,t){return f((0,v.C)(e),t)}(e,t)}throw(0,b.L)(e)}function A(e,t){return t?w(e,t):(0,n.Tg)(e)}},709336:(e,t,r)=>{"use strict";r.d(t,{R:()=>h});var n=r(331635),i=r(215964),o=r(652994),a=r(280150),s=r(869391),c=r(761209),u=r(757516),l=["addListener","removeListener"],d=["addEventListener","removeEventListener"],f=["on","off"];function h(e,t,r,g){if((0,c.T)(r)&&(g=r,r=void 0),g)return h(e,t,r).pipe((0,u.I)(g));var m=(0,n.__read)(function(e){return(0,c.T)(e.addEventListener)&&(0,c.T)(e.removeEventListener)}(e)?d.map((function(n){return function(i){return e[n](t,i,r)}})):function(e){return(0,c.T)(e.addListener)&&(0,c.T)(e.removeListener)}(e)?l.map(p(e,t)):function(e){return(0,c.T)(e.on)&&(0,c.T)(e.off)}(e)?f.map(p(e,t)):[],2),y=m[0],b=m[1];if(!y&&(0,s.X)(e))return(0,a.Z)((function(e){return h(e,t,r)}))((0,i.Tg)(e));if(!y)throw new TypeError("Invalid event target");return new o.c((function(e){var t=function(){for(var t=[],r=0;r{"use strict";r.d(t,{Tg:()=>g});var n=r(331635),i=r(869391),o=r(803440),a=r(652994),s=r(537541),c=r(562471),u=r(243465),l=r(758667),d=r(708438),f=r(761209),h=r(222564),p=r(55604);function g(e){if(e instanceof a.c)return e;if(null!=e){if((0,s.l)(e))return b=e,new a.c((function(e){var t=b[p.s]();if((0,f.T)(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if((0,i.X)(e))return y=e,new a.c((function(e){for(var t=0;t{"use strict";r.d(t,{_:()=>i});var n=r(331635);function i(e,t,r,n,i){return new o(e,t,r,n,i)}var o=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=r?function(e){try{r(e)}catch(n){t.error(n)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,n.__extends)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(r(69419).vU)},541900:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});var n=r(158307),i=r(292908),o=r(864878);function a(e,t){return void 0===t&&(t=n.D),e=null!=e?e:s,(0,i.N)((function(r,n){var i,a=!0;r.subscribe((0,o._)(n,(function(r){var o=t(r);!a&&e(i,o)||(a=!1,i=o,n.next(r))})))}))}function s(e,t){return e===t}},416126:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(292908),i=r(864878);function o(e,t){return(0,n.N)((function(r,n){var o=0;r.subscribe((0,i._)(n,(function(r){return e.call(t,r,o++)&&n.next(r)})))}))}},681160:(e,t,r)=>{"use strict";r.d(t,{T:()=>o});var n=r(292908),i=r(864878);function o(e,t){return(0,n.N)((function(r,n){var o=0;r.subscribe((0,i._)(n,(function(r){n.next(e.call(t,r,o++))})))}))}},493031:(e,t,r)=>{"use strict";r.d(t,{U:()=>o});var n=r(280150),i=r(158307);function o(e){return void 0===e&&(e=1/0),(0,n.Z)(i.D,e)}},280150:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(681160),i=r(215964),o=r(292908),a=r(556315),s=r(864878);var c=r(761209);function u(e,t,r){return void 0===r&&(r=1/0),(0,c.T)(t)?u((function(r,o){return(0,n.T)((function(e,n){return t(r,e,o,n)}))((0,i.Tg)(e(r,o)))}),r):("number"==typeof t&&(r=t),(0,o.N)((function(t,n){return function(e,t,r,n,o,c,u,l){var d=[],f=0,h=0,p=!1,g=function(){!p||d.length||f||t.complete()},m=function(e){return f{"use strict";r.d(t,{u:()=>c});var n=r(331635),i=r(215964),o=r(95768),a=r(69419),s=r(292908);function c(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new o.B}:t,n=e.resetOnError,c=void 0===n||n,l=e.resetOnComplete,d=void 0===l||l,f=e.resetOnRefCountZero,h=void 0===f||f;return function(e){var t,n,o,l=0,f=!1,p=!1,g=function(){null==n||n.unsubscribe(),n=void 0},m=function(){g(),t=o=void 0,f=p=!1},y=function(){var e=t;m(),null==e||e.unsubscribe()};return(0,s.N)((function(e,s){l++,p||f||g();var b=o=null!=o?o:r();s.add((function(){0!==--l||p||f||(n=u(y,h))})),b.subscribe(s),!t&&l>0&&(t=new a.Ms({next:function(e){return b.next(e)},error:function(e){p=!0,g(),n=u(m,c,e),b.error(e)},complete:function(){f=!0,g(),n=u(m,d),b.complete()}}),(0,i.Tg)(e).subscribe(t))}))(e)}}function u(e,t){for(var r=[],o=2;o{"use strict";r.d(t,{t:()=>c});var n=r(331635),i=r(95768),o=r(631179),a=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=o.U);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return(0,n.__extends)(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,a=r._timestampProvider,s=r._windowTime;n||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i{"use strict";r.d(t,{Z:()=>c});var n=r(493031);var i=r(744847),o=r(28400);function a(){for(var e=[],t=0;t{"use strict";r.d(t,{s:()=>a});var n=r(161701),i=r(292908),o=r(864878);function a(e){return e<=0?function(){return n.w}:(0,i.N)((function(t,r){var n=0;t.subscribe((0,o._)(r,(function(t){++n<=e&&(r.next(t),e<=n&&r.complete())})))}))}},167791:(e,t,r)=>{"use strict";r.d(t,{Q:()=>s});var n=r(292908),i=r(864878),o=r(215964),a=r(192357);function s(e){return(0,n.N)((function(t,r){(0,o.Tg)(e).subscribe((0,i._)(r,(function(){return r.complete()}),a.l)),!r.closed&&t.subscribe(r)}))}},631179:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},396744:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(331635),i={setTimeout:function(e,t){for(var r=[],o=2;o{"use strict";r.d(t,{l:()=>n});var n="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},55604:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},744847:(e,t,r)=>{"use strict";r.d(t,{R0:()=>s,ms:()=>o,lI:()=>a});var n=r(761209);function i(e){return e[e.length-1]}function o(e){return(0,n.T)(i(e))?e.pop():void 0}function a(e){return(t=i(e))&&(0,n.T)(t.schedule)?e.pop():void 0;var t}function s(e,t){return"number"==typeof i(e)?e.pop():t}},106174:(e,t,r)=>{"use strict";function n(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}r.d(t,{o:()=>n})},282947:(e,t,r)=>{"use strict";function n(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}r.d(t,{L:()=>n})},107008:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o,l:()=>a});var n=r(794384),i=null;function o(e){if(n.$.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,o=r.errorThrown,a=r.error;if(i=null,o)throw a}}else e()}function a(e){n.$.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},556315:(e,t,r)=>{"use strict";function n(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule((function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()}),n);if(e.add(o),!i)return o}r.d(t,{N:()=>n})},158307:(e,t,r)=>{"use strict";function n(e){return e}r.d(t,{D:()=>n})},869391:(e,t,r)=>{"use strict";r.d(t,{X:()=>n});var n=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},562471:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(761209);function i(e){return Symbol.asyncIterator&&(0,n.T)(null==e?void 0:e[Symbol.asyncIterator])}},761209:(e,t,r)=>{"use strict";function n(e){return"function"==typeof e}r.d(t,{T:()=>n})},537541:(e,t,r)=>{"use strict";r.d(t,{l:()=>o});var n=r(55604),i=r(761209);function o(e){return(0,i.T)(e[n.s])}},758667:(e,t,r)=>{"use strict";r.d(t,{x:()=>o});var n=r(12059),i=r(761209);function o(e){return(0,i.T)(null==e?void 0:e[n.l])}},803440:(e,t,r)=>{"use strict";r.d(t,{y:()=>i});var n=r(761209);function i(e){return(0,n.T)(null==e?void 0:e.then)}},708438:(e,t,r)=>{"use strict";r.d(t,{C:()=>o,U:()=>a});var n=r(331635),i=r(761209);function o(e){return(0,n.__asyncGenerator)(this,arguments,(function(){var t,r,i;return(0,n.__generator)(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,n.__await)(t.read())];case 3:return r=o.sent(),i=r.value,r.done?[4,(0,n.__await)(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,(0,n.__await)(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function a(e){return(0,i.T)(null==e?void 0:e.getReader)}},292908:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(761209);function i(e){return function(t){if(function(e){return(0,n.T)(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(r){this.error(r)}}));throw new TypeError("Unable to lift unknown Observable type")}}},757516:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var n=r(331635),i=r(681160),o=Array.isArray;function a(e){return(0,i.T)((function(t){return function(e,t){return o(t)?e.apply(void 0,(0,n.__spreadArray)([],(0,n.__read)(t))):e(t)}(e,t)}))}},192357:(e,t,r)=>{"use strict";function n(){}r.d(t,{l:()=>n})},222564:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(794384),i=r(396744);function o(e){i.f.setTimeout((function(){var t=n.$.onUnhandledError;if(!t)throw e;t(e)}))}},243465:(e,t,r)=>{"use strict";function n(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}r.d(t,{L:()=>n})},192861:(e,t,r)=>{var n=r(348287),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},62491:(e,t,r)=>{var n,i,o;o=function(){var e,t,r=document,n=r.getElementsByTagName("head")[0],i="push",o="readyState",a="onreadystatechange",s={},c={},u={},l={};function d(e,t){for(var r=0,n=e.length;r=64;){let h,p,g,m,y,b=r,v=n,w=i,A=o,C=a,E=s,x=c,S=u;for(p=0;p<16;p++)g=d+4*p,l[p]=(255&e[g])<<24|(255&e[g+1])<<16|(255&e[g+2])<<8|255&e[g+3];for(p=16;p<64;p++)h=l[p-2],m=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,h=l[p-15],y=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3,l[p]=(m+l[p-7]|0)+(y+l[p-16]|0)|0;for(p=0;p<64;p++)m=(((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&E^~C&x)|0)+(S+(t[p]+l[p]|0)|0)|0,y=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&v^b&w^v&w)|0,S=x,x=E,E=C,C=A+m|0,A=w,w=v,v=b,b=m+y|0;r=r+b|0,n=n+v|0,i=i+w|0,o=o+A|0,a=a+C|0,s=s+E|0,c=c+x|0,u=u+S|0,d+=64,f-=64}}d(e);let f,h=e.length%64,p=e.length/536870912|0,g=e.length<<3,m=h<56?56:120,y=e.slice(e.length-h,e.length);for(y.push(128),f=h+1;f>>24&255),y.push(p>>>16&255),y.push(p>>>8&255),y.push(p>>>0&255),y.push(g>>>24&255),y.push(g>>>16&255),y.push(g>>>8&255),y.push(g>>>0&255),d(y),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255]}function n(e,t,n){e=e.length<=64?e:r(e);const i=64+t.length+4,o=new Array(i),a=new Array(64);let s,c=[];for(s=0;s<64;s++)o[s]=54;for(s=0;s=i-4;e--){if(o[e]++,o[e]<=255)return;o[e]=0}}for(;n>=32;)u(),c=c.concat(r(a.concat(r(o)))),n-=32;return n>0&&(u(),c=c.concat(r(a.concat(r(o))).slice(0,n))),c}function i(e,t,r,n,i){let o;for(c(e,16*(2*r-1),i,0,16),o=0;o<2*r;o++)s(e,16*o,i,16),a(i,n),c(i,0,e,t+16*o,16);for(o=0;o>>32-t}function a(e,t){c(e,0,t,0,16);for(let r=8;r>0;r-=2)t[4]^=o(t[0]+t[12],7),t[8]^=o(t[4]+t[0],9),t[12]^=o(t[8]+t[4],13),t[0]^=o(t[12]+t[8],18),t[9]^=o(t[5]+t[1],7),t[13]^=o(t[9]+t[5],9),t[1]^=o(t[13]+t[9],13),t[5]^=o(t[1]+t[13],18),t[14]^=o(t[10]+t[6],7),t[2]^=o(t[14]+t[10],9),t[6]^=o(t[2]+t[14],13),t[10]^=o(t[6]+t[2],18),t[3]^=o(t[15]+t[11],7),t[7]^=o(t[3]+t[15],9),t[11]^=o(t[7]+t[3],13),t[15]^=o(t[11]+t[7],18),t[1]^=o(t[0]+t[3],7),t[2]^=o(t[1]+t[0],9),t[3]^=o(t[2]+t[1],13),t[0]^=o(t[3]+t[2],18),t[6]^=o(t[5]+t[4],7),t[7]^=o(t[6]+t[5],9),t[4]^=o(t[7]+t[6],13),t[5]^=o(t[4]+t[7],18),t[11]^=o(t[10]+t[9],7),t[8]^=o(t[11]+t[10],9),t[9]^=o(t[8]+t[11],13),t[10]^=o(t[9]+t[8],18),t[12]^=o(t[15]+t[14],7),t[13]^=o(t[12]+t[15],9),t[14]^=o(t[13]+t[12],13),t[15]^=o(t[14]+t[13],18);for(let r=0;r<16;++r)e[r]+=t[r]}function s(e,t,r,n){for(let i=0;i=256)return!1}return!0}function l(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function d(e,r,o,a,d,f,h){if(o=l(o,"N"),a=l(a,"r"),d=l(d,"p"),f=l(f,"dkLen"),0===o||o&o-1)throw new Error("N must be power of 2");if(o>t/128/a)throw new Error("N too large");if(a>t/128/d)throw new Error("r too large");if(!u(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!u(r))throw new Error("salt must be an array or buffer");r=Array.prototype.slice.call(r);let p=n(e,r,128*d*a);const g=new Uint32Array(32*d*a);for(let t=0;tT&&(t=T);for(let e=0;eT&&(t=T);for(let e=0;e>8&255),p.push(g[e]>>16&255),p.push(g[e]>>24&255);const r=n(e,p,f);return h&&h(null,1,r),r}h&&M(P)};if(!h)for(;;){const e=P();if(null!=e)return e}P()}const f={scrypt:function(e,t,r,n,i,o,a){return new Promise((function(s,c){let u=0;a&&a(0),d(e,t,r,n,i,o,(function(e,t,r){if(e)c(e);else if(r)a&&1!==u&&a(1),s(new Uint8Array(r));else if(a&&t!==u)return u=t,a(t)}))}))},syncScrypt:function(e,t,r,n,i,o){return new Uint8Array(d(e,t,r,n,i,o))}};e.exports=f}()},996897:(e,t,r)=>{"use strict";var n=r(570453),i=r(430041),o=r(530592)(),a=r(675795),s=r(769675),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(u=!1)}return(n||u||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},90392:(e,t,r)=>{var n=r(192861).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},662802:(e,t,r)=>{var n=e.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(327816),n.sha1=r(363737),n.sha224=r(426710),n.sha256=r(424107),n.sha384=r(532827),n.sha512=r(882890)},327816:(e,t,r)=>{var n=r(256698),i=r(90392),o=r(192861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=r[d-3]^r[d-8]^r[d-14]^r[d-16];for(var f=0;f<80;++f){var h=~~(f/20),p=0|((t=n)<<5|t>>>27)+l(h,i,o,s)+c+r[f]+a[h];c=s,s=o,o=u(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},363737:(e,t,r)=>{var n=r(256698),i=r(90392),o=r(192861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f);for(;f<80;++f)r[f]=(t=r[f-3]^r[f-8]^r[f-14]^r[f-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),g=u(n)+d(p,i,o,s)+c+r[h]+a[p]|0;c=s,s=o,o=l(i),i=n,n=g}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},426710:(e,t,r)=>{var n=r(256698),i=r(424107),o=r(90392),a=r(192861).Buffer,s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},424107:(e,t,r)=>{var n=r(256698),i=r(90392),o=r(192861).Buffer,a=[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],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,g=0|this._g,m=0|this._h,y=0;y<16;++y)r[y]=e.readInt32BE(4*y);for(;y<64;++y)r[y]=0|(((t=r[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[y-7]+h(r[y-15])+r[y-16];for(var b=0;b<64;++b){var v=m+f(c)+u(c,p,g)+a[b]+r[b]|0,w=d(n)+l(n,i,o)|0;m=g,g=p,p=c,c=s+v|0,s=o,o=i,i=n,n=v+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=g+this._g|0,this._h=m+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},532827:(e,t,r)=>{var n=r(256698),i=r(882890),o=r(90392),a=r(192861).Buffer,s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},882890:(e,t,r)=>{var n=r(256698),i=r(90392),o=r(192861).Buffer,a=[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],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,b=0|this._gh,v=0|this._hh,w=0|this._al,A=0|this._bl,C=0|this._cl,E=0|this._dl,x=0|this._el,S=0|this._fl,I=0|this._gl,k=0|this._hl,_=0;_<32;_+=2)t[_]=e.readInt32BE(4*_),t[_+1]=e.readInt32BE(4*_+4);for(;_<160;_+=2){var T=t[_-30],M=t[_-30+1],P=h(T,M),j=p(M,T),D=g(T=t[_-4],M=t[_-4+1]),O=m(M,T),B=t[_-14],N=t[_-14+1],R=t[_-32],L=t[_-32+1],F=j+N|0,U=P+B+y(F,j)|0;U=(U=U+D+y(F=F+O|0,O)|0)+R+y(F=F+L|0,L)|0,t[_]=U,t[_+1]=F}for(var z=0;z<160;z+=2){U=t[z],F=t[z+1];var H=l(r,n,i),V=l(w,A,C),K=d(r,w),G=d(w,r),q=f(s,x),Q=f(x,s),W=a[z],J=a[z+1],Y=u(s,c,b),Z=u(x,S,I),$=k+Q|0,X=v+q+y($,k)|0;X=(X=(X=X+Y+y($=$+Z|0,Z)|0)+W+y($=$+J|0,J)|0)+U+y($=$+F|0,F)|0;var ee=G+V|0,te=K+H+y(ee,G)|0;v=b,k=I,b=c,I=S,c=s,S=x,s=o+X+y(x=E+$|0,E)|0,o=i,E=C,i=n,C=A,n=r,A=w,r=X+te+y(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+A|0,this._cl=this._cl+C|0,this._dl=this._dl+E|0,this._el=this._el+x|0,this._fl=this._fl+S|0,this._gl=this._gl+I|0,this._hl=this._hl+k|0,this._ah=this._ah+r+y(this._al,w)|0,this._bh=this._bh+n+y(this._bl,A)|0,this._ch=this._ch+i+y(this._cl,C)|0,this._dh=this._dh+o+y(this._dl,E)|0,this._eh=this._eh+s+y(this._el,x)|0,this._fh=this._fh+c+y(this._fl,S)|0,this._gh=this._gh+b+y(this._gl,I)|0,this._hh=this._hh+v+y(this._hl,k)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},714803:(e,t,r)=>{"use strict";var n=r(358859),i=r(769675),o=function(e,t,r){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,r||(n.next=e.next,e.next=n),n};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return o(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var r=o(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!o(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=o(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t}},380507:(e,t,r)=>{"use strict";var n=r(570453),i=r(136556),o=r(358859),a=r(769675),s=n("%Map%",!0),c=i("Map.prototype.get",!0),u=i("Map.prototype.set",!0),l=i("Map.prototype.has",!0),d=i("Map.prototype.delete",!0),f=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(t){if(e){var r=d(e,t);return 0===f(e)&&(e=void 0),r}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,r){e||(e=new s),u(e,t,r)}};return t}},572271:(e,t,r)=>{"use strict";var n=r(570453),i=r(136556),o=r(358859),a=r(380507),s=r(769675),c=n("%WeakMap%",!0),u=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+o(e))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?u(e,r):t&&t.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?d(e,r):!!t&&t.has(r)},set:function(r,n){c&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new c),l(e,r,n)):a&&(t||(t=a()),t.set(r,n))}};return r}:a},200920:(e,t,r)=>{"use strict";var n=r(769675),i=r(358859),o=r(714803),a=r(380507),s=r(572271)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},941770:(e,t,r)=>{const n=r(817833)("simple-peer"),i=r(655064),o=r(553209),a=r(128399),s=r(979596),c=r(466310),{Buffer:u}=r(348287),l=65536;function d(e){return e.replace(/a=ice-options:trickle\s\n/g,"")}class f extends a.Duplex{constructor(e){if(super(e=Object.assign({allowHalfOpen:!1},e)),this._id=o(4).toString("hex").slice(0,7),this._debug("new peer %o",e),this.channelName=e.initiator?e.channelName||o(20).toString("hex"):null,this.initiator=e.initiator||!1,this.channelConfig=e.channelConfig||f.channelConfig,this.channelNegotiated=this.channelConfig.negotiated,this.config=Object.assign({},f.config,e.config),this.offerOptions=e.offerOptions||{},this.answerOptions=e.answerOptions||{},this.sdpTransform=e.sdpTransform||(e=>e),this.streams=e.streams||(e.stream?[e.stream]:[]),this.trickle=void 0===e.trickle||e.trickle,this.allowHalfTrickle=void 0!==e.allowHalfTrickle&&e.allowHalfTrickle,this.iceCompleteTimeout=e.iceCompleteTimeout||5e3,this.destroyed=!1,this.destroying=!1,this._connected=!1,this.remoteAddress=void 0,this.remoteFamily=void 0,this.remotePort=void 0,this.localAddress=void 0,this.localFamily=void 0,this.localPort=void 0,this._wrtc=e.wrtc&&"object"==typeof e.wrtc?e.wrtc:i(),!this._wrtc)throw"undefined"==typeof window?c(new Error("No WebRTC support: Specify `opts.wrtc` option in this environment"),"ERR_WEBRTC_SUPPORT"):c(new Error("No WebRTC support: Not a supported browser"),"ERR_WEBRTC_SUPPORT");this._pcReady=!1,this._channelReady=!1,this._iceComplete=!1,this._iceCompleteTimer=null,this._channel=null,this._pendingCandidates=[],this._isNegotiating=!1,this._firstNegotiation=!0,this._batchedNegotiation=!1,this._queuedNegotiation=!1,this._sendersAwaitingStable=[],this._senderMap=new Map,this._closingInterval=null,this._remoteTracks=[],this._remoteStreams=[],this._chunk=null,this._cb=null,this._interval=null;try{this._pc=new this._wrtc.RTCPeerConnection(this.config)}catch(t){return void this.destroy(c(t,"ERR_PC_CONSTRUCTOR"))}this._isReactNativeWebrtc="number"==typeof this._pc._peerConnectionId,this._pc.oniceconnectionstatechange=()=>{this._onIceStateChange()},this._pc.onicegatheringstatechange=()=>{this._onIceStateChange()},this._pc.onconnectionstatechange=()=>{this._onConnectionStateChange()},this._pc.onsignalingstatechange=()=>{this._onSignalingStateChange()},this._pc.onicecandidate=e=>{this._onIceCandidate(e)},"object"==typeof this._pc.peerIdentity&&this._pc.peerIdentity.catch((e=>{this.destroy(c(e,"ERR_PC_PEER_IDENTITY"))})),this.initiator||this.channelNegotiated?this._setupData({channel:this._pc.createDataChannel(this.channelName,this.channelConfig)}):this._pc.ondatachannel=e=>{this._setupData(e)},this.streams&&this.streams.forEach((e=>{this.addStream(e)})),this._pc.ontrack=e=>{this._onTrack(e)},this._debug("initial negotiation"),this._needsNegotiation(),this._onFinishBound=()=>{this._onFinish()},this.once("finish",this._onFinishBound)}get bufferSize(){return this._channel&&this._channel.bufferedAmount||0}get connected(){return this._connected&&"open"===this._channel.readyState}address(){return{port:this.localPort,family:this.localFamily,address:this.localAddress}}signal(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot signal after peer is destroyed"),"ERR_DESTROYED");if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e={}}this._debug("signal()"),e.renegotiate&&this.initiator&&(this._debug("got request to renegotiate"),this._needsNegotiation()),e.transceiverRequest&&this.initiator&&(this._debug("got request for transceiver"),this.addTransceiver(e.transceiverRequest.kind,e.transceiverRequest.init)),e.candidate&&(this._pc.remoteDescription&&this._pc.remoteDescription.type?this._addIceCandidate(e.candidate):this._pendingCandidates.push(e.candidate)),e.sdp&&this._pc.setRemoteDescription(new this._wrtc.RTCSessionDescription(e)).then((()=>{this.destroyed||(this._pendingCandidates.forEach((e=>{this._addIceCandidate(e)})),this._pendingCandidates=[],"offer"===this._pc.remoteDescription.type&&this._createAnswer())})).catch((e=>{this.destroy(c(e,"ERR_SET_REMOTE_DESCRIPTION"))})),e.sdp||e.candidate||e.renegotiate||e.transceiverRequest||this.destroy(c(new Error("signal() called with invalid signal data"),"ERR_SIGNALING"))}}_addIceCandidate(e){const t=new this._wrtc.RTCIceCandidate(e);this._pc.addIceCandidate(t).catch((e=>{var r;!t.address||t.address.endsWith(".local")?(r="Ignoring unsupported ICE candidate.",console.warn(r)):this.destroy(c(e,"ERR_ADD_ICE_CANDIDATE"))}))}send(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot send after peer is destroyed"),"ERR_DESTROYED");this._channel.send(e)}}addTransceiver(e,t){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot addTransceiver after peer is destroyed"),"ERR_DESTROYED");if(this._debug("addTransceiver()"),this.initiator)try{this._pc.addTransceiver(e,t),this._needsNegotiation()}catch(r){this.destroy(c(r,"ERR_ADD_TRANSCEIVER"))}else this.emit("signal",{type:"transceiverRequest",transceiverRequest:{kind:e,init:t}})}}addStream(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot addStream after peer is destroyed"),"ERR_DESTROYED");this._debug("addStream()"),e.getTracks().forEach((t=>{this.addTrack(t,e)}))}}addTrack(e,t){if(this.destroying)return;if(this.destroyed)throw c(new Error("cannot addTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("addTrack()");const r=this._senderMap.get(e)||new Map;let n=r.get(t);if(n)throw n.removed?c(new Error("Track has been removed. You should enable/disable tracks that you want to re-add."),"ERR_SENDER_REMOVED"):c(new Error("Track has already been added to that stream."),"ERR_SENDER_ALREADY_ADDED");n=this._pc.addTrack(e,t),r.set(t,n),this._senderMap.set(e,r),this._needsNegotiation()}replaceTrack(e,t,r){if(this.destroying)return;if(this.destroyed)throw c(new Error("cannot replaceTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("replaceTrack()");const n=this._senderMap.get(e),i=n?n.get(r):null;if(!i)throw c(new Error("Cannot replace track that was never added."),"ERR_TRACK_NOT_ADDED");t&&this._senderMap.set(t,n),null!=i.replaceTrack?i.replaceTrack(t):this.destroy(c(new Error("replaceTrack is not supported in this browser"),"ERR_UNSUPPORTED_REPLACETRACK"))}removeTrack(e,t){if(this.destroying)return;if(this.destroyed)throw c(new Error("cannot removeTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSender()");const r=this._senderMap.get(e),n=r?r.get(t):null;if(!n)throw c(new Error("Cannot remove track that was never added."),"ERR_TRACK_NOT_ADDED");try{n.removed=!0,this._pc.removeTrack(n)}catch(i){"NS_ERROR_UNEXPECTED"===i.name?this._sendersAwaitingStable.push(n):this.destroy(c(i,"ERR_REMOVE_TRACK"))}this._needsNegotiation()}removeStream(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot removeStream after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSenders()"),e.getTracks().forEach((t=>{this.removeTrack(t,e)}))}}_needsNegotiation(){this._debug("_needsNegotiation"),this._batchedNegotiation||(this._batchedNegotiation=!0,s((()=>{this._batchedNegotiation=!1,this.initiator||!this._firstNegotiation?(this._debug("starting batched negotiation"),this.negotiate()):this._debug("non-initiator initial negotiation request discarded"),this._firstNegotiation=!1})))}negotiate(){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot negotiate after peer is destroyed"),"ERR_DESTROYED");this.initiator?this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("start negotiation"),setTimeout((()=>{this._createOffer()}),0)):this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("requesting negotiation from initiator"),this.emit("signal",{type:"renegotiate",renegotiate:!0})),this._isNegotiating=!0}}destroy(e){this._destroy(e,(()=>{}))}_destroy(e,t){this.destroyed||this.destroying||(this.destroying=!0,this._debug("destroying (error: %s)",e&&(e.message||e)),s((()=>{if(this.destroyed=!0,this.destroying=!1,this._debug("destroy (error: %s)",e&&(e.message||e)),this.readable=this.writable=!1,this._readableState.ended||this.push(null),this._writableState.finished||this.end(),this._connected=!1,this._pcReady=!1,this._channelReady=!1,this._remoteTracks=null,this._remoteStreams=null,this._senderMap=null,clearInterval(this._closingInterval),this._closingInterval=null,clearInterval(this._interval),this._interval=null,this._chunk=null,this._cb=null,this._onFinishBound&&this.removeListener("finish",this._onFinishBound),this._onFinishBound=null,this._channel){try{this._channel.close()}catch(e){}this._channel.onmessage=null,this._channel.onopen=null,this._channel.onclose=null,this._channel.onerror=null}if(this._pc){try{this._pc.close()}catch(e){}this._pc.oniceconnectionstatechange=null,this._pc.onicegatheringstatechange=null,this._pc.onsignalingstatechange=null,this._pc.onicecandidate=null,this._pc.ontrack=null,this._pc.ondatachannel=null}this._pc=null,this._channel=null,e&&this.emit("error",e),this.emit("close"),t()})))}_setupData(e){if(!e.channel)return this.destroy(c(new Error("Data channel event is missing `channel` property"),"ERR_DATA_CHANNEL"));this._channel=e.channel,this._channel.binaryType="arraybuffer","number"==typeof this._channel.bufferedAmountLowThreshold&&(this._channel.bufferedAmountLowThreshold=l),this.channelName=this._channel.label,this._channel.onmessage=e=>{this._onChannelMessage(e)},this._channel.onbufferedamountlow=()=>{this._onChannelBufferedAmountLow()},this._channel.onopen=()=>{this._onChannelOpen()},this._channel.onclose=()=>{this._onChannelClose()},this._channel.onerror=e=>{const t=e.error instanceof Error?e.error:new Error(`Datachannel error: ${e.message} ${e.filename}:${e.lineno}:${e.colno}`);this.destroy(c(t,"ERR_DATA_CHANNEL"))};let t=!1;this._closingInterval=setInterval((()=>{this._channel&&"closing"===this._channel.readyState?(t&&this._onChannelClose(),t=!0):t=!1}),5e3)}_read(){}_write(e,t,r){if(this.destroyed)return r(c(new Error("cannot write after peer is destroyed"),"ERR_DATA_CHANNEL"));if(this._connected){try{this.send(e)}catch(n){return this.destroy(c(n,"ERR_DATA_CHANNEL"))}this._channel.bufferedAmount>l?(this._debug("start backpressure: bufferedAmount %d",this._channel.bufferedAmount),this._cb=r):r(null)}else this._debug("write before connect"),this._chunk=e,this._cb=r}_onFinish(){if(this.destroyed)return;const e=()=>{setTimeout((()=>this.destroy()),1e3)};this._connected?e():this.once("connect",e)}_startIceCompleteTimeout(){this.destroyed||this._iceCompleteTimer||(this._debug("started iceComplete timeout"),this._iceCompleteTimer=setTimeout((()=>{this._iceComplete||(this._iceComplete=!0,this._debug("iceComplete timeout completed"),this.emit("iceTimeout"),this.emit("_iceComplete"))}),this.iceCompleteTimeout))}_createOffer(){this.destroyed||this._pc.createOffer(this.offerOptions).then((e=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(e.sdp=d(e.sdp)),e.sdp=this.sdpTransform(e.sdp);const t=()=>{if(this.destroyed)return;const t=this._pc.localDescription||e;this._debug("signal"),this.emit("signal",{type:t.type,sdp:t.sdp})};this._pc.setLocalDescription(e).then((()=>{this._debug("createOffer success"),this.destroyed||(this.trickle||this._iceComplete?t():this.once("_iceComplete",t))})).catch((e=>{this.destroy(c(e,"ERR_SET_LOCAL_DESCRIPTION"))}))})).catch((e=>{this.destroy(c(e,"ERR_CREATE_OFFER"))}))}_requestMissingTransceivers(){this._pc.getTransceivers&&this._pc.getTransceivers().forEach((e=>{e.mid||!e.sender.track||e.requested||(e.requested=!0,this.addTransceiver(e.sender.track.kind))}))}_createAnswer(){this.destroyed||this._pc.createAnswer(this.answerOptions).then((e=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(e.sdp=d(e.sdp)),e.sdp=this.sdpTransform(e.sdp);const t=()=>{if(this.destroyed)return;const t=this._pc.localDescription||e;this._debug("signal"),this.emit("signal",{type:t.type,sdp:t.sdp}),this.initiator||this._requestMissingTransceivers()};this._pc.setLocalDescription(e).then((()=>{this.destroyed||(this.trickle||this._iceComplete?t():this.once("_iceComplete",t))})).catch((e=>{this.destroy(c(e,"ERR_SET_LOCAL_DESCRIPTION"))}))})).catch((e=>{this.destroy(c(e,"ERR_CREATE_ANSWER"))}))}_onConnectionStateChange(){this.destroyed||"failed"===this._pc.connectionState&&this.destroy(c(new Error("Connection failed."),"ERR_CONNECTION_FAILURE"))}_onIceStateChange(){if(this.destroyed)return;const e=this._pc.iceConnectionState,t=this._pc.iceGatheringState;this._debug("iceStateChange (connection: %s) (gathering: %s)",e,t),this.emit("iceStateChange",e,t),"connected"!==e&&"completed"!==e||(this._pcReady=!0,this._maybeReady()),"failed"===e&&this.destroy(c(new Error("Ice connection failed."),"ERR_ICE_CONNECTION_FAILURE")),"closed"===e&&this.destroy(c(new Error("Ice connection closed."),"ERR_ICE_CONNECTION_CLOSED"))}getStats(e){const t=e=>("[object Array]"===Object.prototype.toString.call(e.values)&&e.values.forEach((t=>{Object.assign(e,t)})),e);0===this._pc.getStats.length||this._isReactNativeWebrtc?this._pc.getStats().then((r=>{const n=[];r.forEach((e=>{n.push(t(e))})),e(null,n)}),(t=>e(t))):this._pc.getStats.length>0?this._pc.getStats((r=>{if(this.destroyed)return;const n=[];r.result().forEach((e=>{const r={};e.names().forEach((t=>{r[t]=e.stat(t)})),r.id=e.id,r.type=e.type,r.timestamp=e.timestamp,n.push(t(r))})),e(null,n)}),(t=>e(t))):e(null,[])}_maybeReady(){if(this._debug("maybeReady pc %s channel %s",this._pcReady,this._channelReady),this._connected||this._connecting||!this._pcReady||!this._channelReady)return;this._connecting=!0;const e=()=>{this.destroyed||this.getStats(((t,r)=>{if(this.destroyed)return;t&&(r=[]);const n={},i={},o={};let a=!1;r.forEach((e=>{"remotecandidate"!==e.type&&"remote-candidate"!==e.type||(n[e.id]=e),"localcandidate"!==e.type&&"local-candidate"!==e.type||(i[e.id]=e),"candidatepair"!==e.type&&"candidate-pair"!==e.type||(o[e.id]=e)}));const s=e=>{a=!0;let t=i[e.localCandidateId];t&&(t.ip||t.address)?(this.localAddress=t.ip||t.address,this.localPort=Number(t.port)):t&&t.ipAddress?(this.localAddress=t.ipAddress,this.localPort=Number(t.portNumber)):"string"==typeof e.googLocalAddress&&(t=e.googLocalAddress.split(":"),this.localAddress=t[0],this.localPort=Number(t[1])),this.localAddress&&(this.localFamily=this.localAddress.includes(":")?"IPv6":"IPv4");let r=n[e.remoteCandidateId];r&&(r.ip||r.address)?(this.remoteAddress=r.ip||r.address,this.remotePort=Number(r.port)):r&&r.ipAddress?(this.remoteAddress=r.ipAddress,this.remotePort=Number(r.portNumber)):"string"==typeof e.googRemoteAddress&&(r=e.googRemoteAddress.split(":"),this.remoteAddress=r[0],this.remotePort=Number(r[1])),this.remoteAddress&&(this.remoteFamily=this.remoteAddress.includes(":")?"IPv6":"IPv4"),this._debug("connect local: %s:%s remote: %s:%s",this.localAddress,this.localPort,this.remoteAddress,this.remotePort)};if(r.forEach((e=>{"transport"===e.type&&e.selectedCandidatePairId&&s(o[e.selectedCandidatePairId]),("googCandidatePair"===e.type&&"true"===e.googActiveConnection||("candidatepair"===e.type||"candidate-pair"===e.type)&&e.selected)&&s(e)})),a||Object.keys(o).length&&!Object.keys(i).length){if(this._connecting=!1,this._connected=!0,this._chunk){try{this.send(this._chunk)}catch(t){return this.destroy(c(t,"ERR_DATA_CHANNEL"))}this._chunk=null,this._debug('sent chunk from "write before connect"');const e=this._cb;this._cb=null,e(null)}"number"!=typeof this._channel.bufferedAmountLowThreshold&&(this._interval=setInterval((()=>this._onInterval()),150),this._interval.unref&&this._interval.unref()),this._debug("connect"),this.emit("connect")}else setTimeout(e,100)}))};e()}_onInterval(){!this._cb||!this._channel||this._channel.bufferedAmount>l||this._onChannelBufferedAmountLow()}_onSignalingStateChange(){this.destroyed||("stable"===this._pc.signalingState&&(this._isNegotiating=!1,this._debug("flushing sender queue",this._sendersAwaitingStable),this._sendersAwaitingStable.forEach((e=>{this._pc.removeTrack(e),this._queuedNegotiation=!0})),this._sendersAwaitingStable=[],this._queuedNegotiation?(this._debug("flushing negotiation queue"),this._queuedNegotiation=!1,this._needsNegotiation()):(this._debug("negotiated"),this.emit("negotiated"))),this._debug("signalingStateChange %s",this._pc.signalingState),this.emit("signalingStateChange",this._pc.signalingState))}_onIceCandidate(e){this.destroyed||(e.candidate&&this.trickle?this.emit("signal",{type:"candidate",candidate:{candidate:e.candidate.candidate,sdpMLineIndex:e.candidate.sdpMLineIndex,sdpMid:e.candidate.sdpMid}}):e.candidate||this._iceComplete||(this._iceComplete=!0,this.emit("_iceComplete")),e.candidate&&this._startIceCompleteTimeout())}_onChannelMessage(e){if(this.destroyed)return;let t=e.data;t instanceof ArrayBuffer&&(t=u.from(t)),this.push(t)}_onChannelBufferedAmountLow(){if(this.destroyed||!this._cb)return;this._debug("ending backpressure: bufferedAmount %d",this._channel.bufferedAmount);const e=this._cb;this._cb=null,e(null)}_onChannelOpen(){this._connected||this.destroyed||(this._debug("on channel open"),this._channelReady=!0,this._maybeReady())}_onChannelClose(){this.destroyed||(this._debug("on channel close"),this.destroy())}_onTrack(e){this.destroyed||e.streams.forEach((t=>{this._debug("on track"),this.emit("track",e.track,t),this._remoteTracks.push({track:e.track,stream:t}),this._remoteStreams.some((e=>e.id===t.id))||(this._remoteStreams.push(t),s((()=>{this._debug("on stream"),this.emit("stream",t)})))}))}_debug(){const e=[].slice.call(arguments);e[0]="["+this._id+"] "+e[0],n.apply(null,e)}}f.WEBRTC_SUPPORT=!!i(),f.config={iceServers:[{urls:["stun:stun.l.google.com:19302","stun:global.stun.twilio.com:3478"]}],sdpSemantics:"unified-plan"},f.channelConfig={},e.exports=f},59368:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(r){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(r){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(591703)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},591703:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;const n=s,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(r){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(r){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(803995)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},803995:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;const n=s,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{e.exports=i;var n=r(137007).EventEmitter;function i(){n.call(this)}r(256698)(i,n),i.Readable=r(345412),i.Writable=r(216708),i.Duplex=r(325382),i.Transform=r(374610),i.PassThrough=r(863600),i.finished=r(686238),i.pipeline=r(257758),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},811568:(e,t,r)=>{var n=r(955537),i=r(606917),o=r(57510),a=r(286866),s=r(188835),c=t;c.request=function(e,t){e="string"==typeof e?s.parse(e):o(e);var i=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||i,c=e.hostname||e.host,u=e.port,l=e.path||"/";c&&-1!==c.indexOf(":")&&(c="["+c+"]"),e.url=(c?a+"//"+c:"")+(u?":"+u:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var d=new n(e);return t&&d.on("response",t),d},c.get=function(e,t){var r=c.request(e,t);return r.end(),r},c.ClientRequest=n,c.IncomingMessage=i.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=a,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},306688:(e,t,r)=>{var n;function i(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(r){}return!1}function a(e){return"function"==typeof e}t.fetch=a(r.g.fetch)&&a(r.g.ReadableStream),t.writableStream=a(r.g.WritableStream),t.abortController=a(r.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!i()&&a(i().overrideMimeType),n=null},955537:(e,t,r)=>{var n=r(306688),i=r(256698),o=r(606917),a=r(128399),s=o.IncomingMessage,c=o.readyStates;var u=e.exports=function(e){var t,r=this;a.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+Buffer.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!n.abortController)i=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!n.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return n.fetch&&t?"fetch":n.mozchunkedarraybuffer?"moz-chunked-arraybuffer":n.msstream?"ms-stream":n.arraybuffer&&e?"arraybuffer":"text"}(t,i),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};i(u,a.Writable),u.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===l.indexOf(r)&&(this._headers[r]={name:e,value:t})},u.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},u.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},u.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var i=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(i["content-type"]||{}).value||""}));var a=[];if(Object.keys(i).forEach((function(e){var t=i[e].name,r=i[e].value;Array.isArray(r)?r.forEach((function(e){a.push([t,e])})):a.push([t,r])})),"fetch"===e._mode){var s=null;if(n.abortController){var u=new AbortController;s=u.signal,e._fetchAbortController=u,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:a,body:o||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:s}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var l=e._xhr=new r.g.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(d){return void process.nextTick((function(){e.emit("error",d)}))}"responseType"in l&&(l.responseType=e._mode),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(l.timeout=t.requestTimeout,l.ontimeout=function(){e.emit("requestTimeout")}),a.forEach((function(e){l.setRequestHeader(e[0],e[1])})),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case c.LOADING:case c.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{l.send(o)}catch(d){return void process.nextTick((function(){e.emit("error",d)}))}}}},u.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},u.prototype._connect=function(){var e=this;e._destroyed||(e._response=new s(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},u.prototype._write=function(e,t,r){this._body.push(e),r()},u.prototype._resetTimers=function(e){var t=this;r.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(r.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=r.g.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},u.prototype.abort=u.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},u.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),a.Writable.prototype.end.call(this,e,t,r)},u.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},u.prototype.flushHeaders=function(){},u.prototype.setNoDelay=function(){},u.prototype.setSocketKeepAlive=function(){};var l=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},606917:(e,t,r)=>{var n=r(306688),i=r(256698),o=r(128399),a=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},s=t.IncomingMessage=function(e,t,r,i){var a=this;if(o.Readable.call(a),a._mode=r,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",(function(){process.nextTick((function(){a.emit("close")}))})),"fetch"===r){if(a._fetchResponse=t,a.url=t.url,a.statusCode=t.status,a.statusMessage=t.statusText,t.headers.forEach((function(e,t){a.headers[t.toLowerCase()]=e,a.rawHeaders.push(t,e)})),n.writableStream){var s=new WritableStream({write:function(e){return i(!1),new Promise((function(t,r){a._destroyed?r():a.push(Buffer.from(e))?t():a._resumeFetch=t}))},close:function(){i(!0),a._destroyed||a.push(null)},abort:function(e){i(!0),a._destroyed||a.emit("error",e)}});try{return void t.body.pipeTo(s).catch((function(e){i(!0),a._destroyed||a.emit("error",e)}))}catch(d){}}var c=t.body.getReader();!function e(){c.read().then((function(t){a._destroyed||(i(t.done),t.done?a.push(null):(a.push(Buffer.from(t.value)),e()))})).catch((function(e){i(!0),a._destroyed||a.emit("error",e)}))}()}else{if(a._xhr=e,a._pos=0,a.url=e.responseURL,a.statusCode=e.status,a.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===a.headers[r]&&(a.headers[r]=[]),a.headers[r].push(t[2])):void 0!==a.headers[r]?a.headers[r]+=", "+t[2]:a.headers[r]=t[2],a.rawHeaders.push(t[1],t[2])}})),a._charset="x-user-defined",!n.overrideMimeType){var u=a.rawHeaders["mime-type"];if(u){var l=u.match(/;\s*charset=([^;])(;|$)/);l&&(a._charset=l[1].toLowerCase())}a._charset||(a._charset="utf-8")}}};i(s,o.Readable),s.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},s.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,i=null;switch(t._mode){case"text":if((i=n.responseText).length>t._pos){var o=i.substr(t._pos);if("x-user-defined"===t._charset){for(var s=Buffer.alloc(o.length),c=0;ct._pos&&(t.push(Buffer.from(new Uint8Array(u.result.slice(t._pos)))),t._pos=u.result.byteLength)},u.onload=function(){e(!0),t.push(null)},u.readAsArrayBuffer(i)}t._xhr.readyState===a.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},183141:(e,t,r)=>{"use strict";var n=r(192861).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},383081:(e,t,r)=>{var n=r(617172);e.exports=function(e){return"string"!=typeof e?e:n(e)?e.slice(2):e}},535229:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=n(r(806359)),o=r(398917);t.default=function(e,t){var r={};return e&&"string"==typeof e?((0,i.default)(e,(function(e,n){e&&n&&(r[(0,o.camelCase)(e,t)]=n)})),r):r}},398917:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var r=/^--[a-zA-Z0-9-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},c=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||r.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,c):e.replace(o,c)).replace(n,s))}},806359:(e,t,r)=>{var n=r(619788);e.exports=function(e,t){var r,i=null;if(!e||"string"!=typeof e)return i;for(var o,a,s=n(e),c="function"==typeof t,u=0,l=s.length;u{"use strict";function n(){}r.d(t,{_:()=>Kt,Kc:()=>Je,WL:()=>St,Ts:()=>ut,Hg:()=>Et});function i(e){return e()}function o(e){e.forEach(i)}function a(e){return"function"==typeof e}function s(e){return 0===Object.keys(e).length}function c(e,...t){if(null==e)return n;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}new Set;const u="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;class l{constructor(e){this.options=e,this._listeners="WeakMap"in u?new WeakMap:void 0}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return null!==(e=this._observer)&&void 0!==e?e:this._observer=new ResizeObserver((e=>{var t;for(const r of e)l.entries.set(r.target,r),null===(t=this._listeners.get(r.target))||void 0===t||t(r)}))}}l.entries="WeakMap"in u?new WeakMap:void 0;new Map;let d=[];new Set;new Set;new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]);let f;function h(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];d.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),d=t}(r.after_update),o(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}"function"==typeof HTMLElement&&(f=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(i).filter(a);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){h(this,1),this.$destroy=n}$on(e,t){if(!a(t))return n;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&!s(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const p=[];function g(e,t=n){let r;const i=new Set;function o(t){if(o=t,((n=e)!=n?o==o:n!==o||n&&"object"==typeof n||"function"==typeof n)&&(e=t,r)){const t=!p.length;for(const r of i)r[1](),p.push(r,e);if(t){for(let e=0;e{i.delete(c),0===i.size&&r&&(r(),r=null)}}}}function m(e,t,r){const i=!Array.isArray(e),s=i?[e]:e,u=t.length<2;return l=e=>{let r=!1;const l=[];let d=0,f=n;const h=()=>{if(d)return;f();const r=t(i?l[0]:l,e);u?e(r):f=a(r)?r:n},p=s.map(((e,t)=>c(e,(e=>{l[t]=e,d&=~(1<{d|=1<1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(U,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(z.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(L.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(L,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=(0,C.__assign)((0,C.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=(0,C.__assign)((0,C.__assign)({},t),H(o)))}else if(F.test(i.stem))t=(0,C.__assign)((0,C.__assign)({},t),H(i.stem));else{var a=V(i.stem);a&&(t=(0,C.__assign)((0,C.__assign)({},t),a));var s=K(i.stem);s&&(t=(0,C.__assign)((0,C.__assign)({},t),s))}}return t}var Q,W={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function J(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(W[r||""]||W[n||""]||W["".concat(n,"-001")]||W["001"])[0]}var Y=new RegExp("^".concat(O.source,"*")),Z=new RegExp("".concat(O.source,"*$"));function $(e,t){return{start:e,end:t}}var X=!!String.prototype.startsWith,ee=!!String.fromCodePoint,te=!!Object.fromEntries,re=!!String.prototype.codePointAt,ne=!!String.prototype.trimStart,ie=!!String.prototype.trimEnd,oe=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ae=!0;try{ae="a"===(null===(Q=pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Q?void 0:Q[0])}catch(Gt){ae=!1}var se,ce=X?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},ue=ee?String.fromCodePoint:function(){for(var e=[],t=0;to;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},le=te?Object.fromEntries:function(e){for(var t={},r=0,n=e;r=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},fe=ne?function(e){return e.trimStart()}:function(e){return e.replace(Y,"")},he=ie?function(e){return e.trimEnd()}:function(e){return e.replace(Z,"")};function pe(e,t){return new RegExp(e,t)}if(ae){var ge=pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");se=function(e,t){var r;return ge.lastIndex=t,null!==(r=ge.exec(e)[1])&&void 0!==r?r:""}}else se=function(e,t){for(var r=[];;){var n=de(e,t);if(void 0===n||be(n)||ve(n))break;r.push(n),t+=n>=65536?2:1}return ue.apply(void 0,r)};var me=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(y.UNMATCHED_CLOSING_TAG,$(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ye(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:b.pound,location:$(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:b.literal,value:"<".concat(n,"/>"),location:$(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:b.tag,value:n,children:o,location:$(r,this.clonePosition())},err:null}:this.error(y.INVALID_TAG,$(a,this.clonePosition())))}return this.error(y.UNCLOSED_TAG,$(r,this.clonePosition()))}return this.error(y.INVALID_TAG,$(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=$(r,this.clonePosition());return{val:{type:b.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ye(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return ue.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),ue(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(y.EMPTY_ARGUMENT,$(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(y.MALFORMED_ARGUMENT,$(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:n,location:$(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(y.MALFORMED_ARGUMENT,$(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=se(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:$(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(y.EXPECT_ARGUMENT_TYPE,$(o,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((w=this.parseSimpleArgStyleIfPossible()).err)return w;if(0===(h=he(w.val)).length)return this.error(y.EXPECT_ARGUMENT_STYLE,$(this.clonePosition(),this.clonePosition()));c={style:h,styleLocation:$(u,this.clonePosition())}}if((A=this.tryParseArgumentClose(n)).err)return A;var l=$(n,this.clonePosition());if(c&&ce(null==c?void 0:c.style,"::",0)){var d=fe(c.style.slice(2));if("number"===a)return(w=this.parseNumberSkeletonFromString(d,c.styleLocation)).err?w:{val:{type:b.number,value:r,location:l,style:w.val},err:null};if(0===d.length)return this.error(y.EXPECT_DATE_TIME_SKELETON,l);var f=d;this.locale&&(f=function(e,t){for(var r="",n=0;n>1),c=J(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===i?"H":i}return r}(d,this.locale));var h={type:v.dateTime,pattern:f,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?N(f):{}};return{val:{type:"date"===a?b.date:b.time,value:r,location:l,style:h},err:null}}return{val:{type:"number"===a?b.number:"date"===a?b.date:b.time,value:r,location:l,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,$(p,(0,C.__assign)({},p)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$(this.clonePosition(),this.clonePosition()));var w;if(this.bumpSpace(),(w=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return w;this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=w.val}var A,E=this.tryParsePluralOrSelectOptions(e,a,t,g);if(E.err)return E;if((A=this.tryParseArgumentClose(n)).err)return A;var x=$(n,this.clonePosition());return"select"===a?{val:{type:b.select,value:r,options:le(E.val),location:x},err:null}:{val:{type:b.plural,value:r,options:le(E.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:x},err:null};default:return this.error(y.INVALID_ARGUMENT_TYPE,$(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,$(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,$(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(R).filter((function(e){return e.length>0}));r=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=$(n,this.clonePosition());return i?oe(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=de(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(ce(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&be(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ye(e){return e>=97&&e<=122||e>=65&&e<=90}function be(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ve(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function we(e){e.forEach((function(e){if(delete e.location,_(e)||T(e))for(var t in e.options)delete e.options[t].location,we(e.options[t].value);else S(e)&&j(e.style)||(I(e)||k(e))&&D(e.style)?delete e.style.location:P(e)&&we(e.children)}))}function Ae(e,t){void 0===t&&(t={}),t=(0,C.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new me(e,t).parse();if(r.err){var n=SyntaxError(y[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||we(r.val),r.val}function Ce(e,t){var r=t&&t.cache?t.cache:Me,n=t&&t.serializer?t.serializer:ke;return(t&&t.strategy?t.strategy:Ie)(e,{cache:r,serializer:n})}function Ee(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function xe(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function Se(e,t,r,n,i){return r.bind(t,e,n,i)}function Ie(e,t){return Se(e,this,1===e.length?Ee:xe,t.cache.create(),t.serializer)}var ke=function(){return JSON.stringify(arguments)};function _e(){this.cache=Object.create(null)}_e.prototype.get=function(e){return this.cache[e]},_e.prototype.set=function(e,t){this.cache[e]=t};var Te,Me={create:function(){return new _e}},Pe={variadic:function(e,t){return Se(e,this,xe,t.cache.create(),t.serializer)},monadic:function(e,t){return Se(e,this,Ee,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Te||(Te={}));var je,De=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,C.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Oe=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Te.INVALID_VALUE,i)||this}return(0,C.__extends)(t,e),t}(De),Be=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Te.INVALID_VALUE,n)||this}return(0,C.__extends)(t,e),t}(De),Ne=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Te.MISSING_VALUE,r)||this}return(0,C.__extends)(t,e),t}(De);function Re(e){return"function"==typeof e}function Le(e,t,r,n,i,o,a){if(1===e.length&&E(e[0]))return[{type:je.literal,value:e[0].value}];for(var s=[],c=0,u=e;c0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=Ae,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const He={},Ve=(e,t,r)=>r?(t in He||(He[t]={}),e in He[t]||(He[t][e]=r),r):r,Ke=(e,t)=>{if(null==t)return;if(t in He&&e in He[t])return He[t][e];const r=At(t);for(let n=0;n0){const e=r.slice(i,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[i]]}else n=void 0;return n}(r,t)}function Je(e,...t){delete He[e],qe.update((r=>(r[e]=A().all([r[e]||{},...t]),r)))}m([qe],(([e])=>Object.keys(e)));qe.subscribe((e=>Ge=e));const Ye={};function Ze(e){return Ye[e]}function $e(e){return null!=e&&At(e).some((e=>{var t;return null==(t=Ze(e))?void 0:t.size}))}function Xe(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ye[e].delete(t),0===Ye[e].size&&delete Ye[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Je(e,...t)))}const et={};function tt(e){if(!$e(e))return e in et?et[e]:Promise.resolve();const t=function(e){return At(e).map((e=>{const t=Ze(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return et[e]=Promise.all(t.map((([e,t])=>Xe(e,t)))).then((()=>{if($e(e))return tt(e);delete et[e]})),et[e]}var rt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,ot=(e,t)=>{var r={};for(var n in e)nt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&rt)for(var n of rt(e))t.indexOf(n)<0&&it.call(e,n)&&(r[n]=e[n]);return r};function at({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${At(e).join('", "')}".${$e(Ct())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const st={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function ct(){return st}function ut(e){const t=e,{formats:r}=t,n=ot(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{ze.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(o){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=at:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(st,n,{initialLocale:i}),r&&("number"in r&&Object.assign(st.formats.number,r.number),"date"in r&&Object.assign(st.formats.date,r.date),"time"in r&&Object.assign(st.formats.time,r.time)),Et.set(i)}const lt=g(!1);var dt=Object.defineProperty,ft=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,yt=(e,t,r)=>t in e?dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let bt;const vt=g(null);function wt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function At(e,t=ct().fallbackLocale){const r=wt(e);return t?[...new Set([...r,...wt(t)])]:r}function Ct(){return null!=bt?bt:void 0}vt.subscribe((e=>{bt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Et=(xt=((e,t)=>{for(var r in t||(t={}))gt.call(t,r)&&yt(e,r,t[r]);if(pt)for(var r of pt(t))mt.call(t,r)&&yt(e,r,t[r]);return e})({},vt),ft(xt,ht({set:e=>{if(e&&function(e){if(null==e)return;const t=At(e);for(let r=0;rlt.set(!0)),t):lt.set(!0),tt(e).then((()=>{vt.set(e)})).finally((()=>{clearTimeout(r),lt.set(!1)}))}return vt.set(e)}})));var xt;const St=()=>"undefined"==typeof window?null:window.navigator.language||window.navigator.languages[0],It=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var kt=Object.defineProperty,_t=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Pt=(e,t,r)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jt=(e,t)=>{for(var r in t||(t={}))Tt.call(t,r)&&Pt(e,r,t[r]);if(_t)for(var r of _t(t))Mt.call(t,r)&&Pt(e,r,t[r]);return e},Dt=(e,t)=>{var r={};for(var n in e)Tt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&_t)for(var n of _t(e))t.indexOf(n)<0&&Mt.call(e,n)&&(r[n]=e[n]);return r};const Ot=(e,t)=>{const{formats:r}=ct();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Bt=It((e=>{var t=e,{locale:r,format:n}=t,i=Dt(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Ot("number",n)),new Intl.NumberFormat(r,i)})),Nt=It((e=>{var t=e,{locale:r,format:n}=t,i=Dt(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Ot("date",n):0===Object.keys(i).length&&(i=Ot("date","short")),new Intl.DateTimeFormat(r,i)})),Rt=It((e=>{var t=e,{locale:r,format:n}=t,i=Dt(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Ot("time",n):0===Object.keys(i).length&&(i=Ot("time","short")),new Intl.DateTimeFormat(r,i)})),Lt=It(((e,t=Ct())=>new ze(e,t,ct().formats,{ignoreTag:ct().ignoreTag}))),Ft=(e,t={})=>{var r,n,i,o;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:s,locale:c=Ct(),default:u}=a;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Ke(e,c);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(o=null!=(i=null==(n=(r=ct()).handleMissingMessage)?void 0:n.call(r,{locale:c,id:e,defaultValue:u}))?i:u)?o:e;if(!s)return l;let d=l;try{d=Lt(l,c).format(s)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,f.message)}return d},Ut=(e,t)=>((e={})=>{var t=e,{locale:r=Ct()}=t,n=Dt(t,["locale"]);return Rt(jt({locale:r},n))})(t).format(e),zt=(e,t)=>((e={})=>{var t=e,{locale:r=Ct()}=t,n=Dt(t,["locale"]);return Nt(jt({locale:r},n))})(t).format(e),Ht=(e,t)=>((e={})=>{var t=e,{locale:r=Ct()}=t,n=Dt(t,["locale"]);return Bt(jt({locale:r},n))})(t).format(e),Vt=(e,t=Ct())=>Ke(e,t),Kt=m([Et,qe],(()=>Ft));m([Et],(()=>Ut)),m([Et],(()=>zt)),m([Et],(()=>Ht)),m([Et,qe],(()=>Vt))},976386:function(e){!function(t,r){"use strict";e.exports?e.exports=r():(t.nacl||(t.nacl={}),t.nacl.util=r())}(this,(function(){"use strict";var e={};function t(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var t,r=unescape(encodeURIComponent(e)),n=new Uint8Array(r.length);for(t=0;t{!function(e){"use strict";var t=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function g(e,t,r,n,i){var o,a=0;for(o=0;o>>8)-1}function m(e,t,r,n){return g(e,t,r,n,16)}function y(e,t,r,n){return g(e,t,r,n,32)}function b(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,c=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,u=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,l=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,m=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,y=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,b=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,A=o,C=a,E=s,x=c,S=u,I=l,k=d,_=f,T=h,M=p,P=g,j=m,D=y,O=b,B=v,N=w,R=0;R<20;R+=2)A^=(i=(D^=(i=(T^=(i=(S^=(i=A+D|0)<<7|i>>>25)+A|0)<<9|i>>>23)+S|0)<<13|i>>>19)+T|0)<<18|i>>>14,I^=(i=(C^=(i=(O^=(i=(M^=(i=I+C|0)<<7|i>>>25)+I|0)<<9|i>>>23)+M|0)<<13|i>>>19)+O|0)<<18|i>>>14,P^=(i=(k^=(i=(E^=(i=(B^=(i=P+k|0)<<7|i>>>25)+P|0)<<9|i>>>23)+B|0)<<13|i>>>19)+E|0)<<18|i>>>14,N^=(i=(j^=(i=(_^=(i=(x^=(i=N+j|0)<<7|i>>>25)+N|0)<<9|i>>>23)+x|0)<<13|i>>>19)+_|0)<<18|i>>>14,A^=(i=(x^=(i=(E^=(i=(C^=(i=A+x|0)<<7|i>>>25)+A|0)<<9|i>>>23)+C|0)<<13|i>>>19)+E|0)<<18|i>>>14,I^=(i=(S^=(i=(_^=(i=(k^=(i=I+S|0)<<7|i>>>25)+I|0)<<9|i>>>23)+k|0)<<13|i>>>19)+_|0)<<18|i>>>14,P^=(i=(M^=(i=(T^=(i=(j^=(i=P+M|0)<<7|i>>>25)+P|0)<<9|i>>>23)+j|0)<<13|i>>>19)+T|0)<<18|i>>>14,N^=(i=(B^=(i=(O^=(i=(D^=(i=N+B|0)<<7|i>>>25)+N|0)<<9|i>>>23)+D|0)<<13|i>>>19)+O|0)<<18|i>>>14;A=A+o|0,C=C+a|0,E=E+s|0,x=x+c|0,S=S+u|0,I=I+l|0,k=k+d|0,_=_+f|0,T=T+h|0,M=M+p|0,P=P+g|0,j=j+m|0,D=D+y|0,O=O+b|0,B=B+v|0,N=N+w|0,e[0]=A>>>0&255,e[1]=A>>>8&255,e[2]=A>>>16&255,e[3]=A>>>24&255,e[4]=C>>>0&255,e[5]=C>>>8&255,e[6]=C>>>16&255,e[7]=C>>>24&255,e[8]=E>>>0&255,e[9]=E>>>8&255,e[10]=E>>>16&255,e[11]=E>>>24&255,e[12]=x>>>0&255,e[13]=x>>>8&255,e[14]=x>>>16&255,e[15]=x>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=I>>>0&255,e[21]=I>>>8&255,e[22]=I>>>16&255,e[23]=I>>>24&255,e[24]=k>>>0&255,e[25]=k>>>8&255,e[26]=k>>>16&255,e[27]=k>>>24&255,e[28]=_>>>0&255,e[29]=_>>>8&255,e[30]=_>>>16&255,e[31]=_>>>24&255,e[32]=T>>>0&255,e[33]=T>>>8&255,e[34]=T>>>16&255,e[35]=T>>>24&255,e[36]=M>>>0&255,e[37]=M>>>8&255,e[38]=M>>>16&255,e[39]=M>>>24&255,e[40]=P>>>0&255,e[41]=P>>>8&255,e[42]=P>>>16&255,e[43]=P>>>24&255,e[44]=j>>>0&255,e[45]=j>>>8&255,e[46]=j>>>16&255,e[47]=j>>>24&255,e[48]=D>>>0&255,e[49]=D>>>8&255,e[50]=D>>>16&255,e[51]=D>>>24&255,e[52]=O>>>0&255,e[53]=O>>>8&255,e[54]=O>>>16&255,e[55]=O>>>24&255,e[56]=B>>>0&255,e[57]=B>>>8&255,e[58]=B>>>16&255,e[59]=B>>>24&255,e[60]=N>>>0&255,e[61]=N>>>8&255,e[62]=N>>>16&255,e[63]=N>>>24&255}(e,t,r,n)}function v(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,c=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,u=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,l=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,m=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,y=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,b=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,A=0;A<20;A+=2)o^=(i=(y^=(i=(h^=(i=(u^=(i=o+y|0)<<7|i>>>25)+o|0)<<9|i>>>23)+u|0)<<13|i>>>19)+h|0)<<18|i>>>14,l^=(i=(a^=(i=(b^=(i=(p^=(i=l+a|0)<<7|i>>>25)+l|0)<<9|i>>>23)+p|0)<<13|i>>>19)+b|0)<<18|i>>>14,g^=(i=(d^=(i=(s^=(i=(v^=(i=g+d|0)<<7|i>>>25)+g|0)<<9|i>>>23)+v|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(m^=(i=(f^=(i=(c^=(i=w+m|0)<<7|i>>>25)+w|0)<<9|i>>>23)+c|0)<<13|i>>>19)+f|0)<<18|i>>>14,o^=(i=(c^=(i=(s^=(i=(a^=(i=o+c|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,l^=(i=(u^=(i=(f^=(i=(d^=(i=l+u|0)<<7|i>>>25)+l|0)<<9|i>>>23)+d|0)<<13|i>>>19)+f|0)<<18|i>>>14,g^=(i=(p^=(i=(h^=(i=(m^=(i=g+p|0)<<7|i>>>25)+g|0)<<9|i>>>23)+m|0)<<13|i>>>19)+h|0)<<18|i>>>14,w^=(i=(v^=(i=(b^=(i=(y^=(i=w+v|0)<<7|i>>>25)+w|0)<<9|i>>>23)+y|0)<<13|i>>>19)+b|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=l>>>0&255,e[5]=l>>>8&255,e[6]=l>>>16&255,e[7]=l>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,r,n)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function A(e,t,r,n,i,o,a){var s,c,u=new Uint8Array(16),l=new Uint8Array(64);for(c=0;c<16;c++)u[c]=0;for(c=0;c<8;c++)u[c]=o[c];for(;i>=64;){for(b(l,u,a,w),c=0;c<64;c++)e[t+c]=r[n+c]^l[c];for(s=1,c=8;c<16;c++)s=s+(255&u[c])|0,u[c]=255&s,s>>>=8;i-=64,t+=64,n+=64}if(i>0)for(b(l,u,a,w),c=0;c=64;){for(b(c,s,i,w),a=0;a<64;a++)e[t+a]=c[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;r-=64,t+=64}if(r>0)for(b(c,s,i,w),a=0;a>>13|r<<3),n=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(n>>>7|i<<9),o=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function I(e,t,r,n,i,o){var a=new S(o);return a.update(r,n,i),a.finish(e,t),0}function k(e,t,r,n,i,o){var a=new Uint8Array(16);return I(a,0,r,n,i,o),m(e,t,a,0)}function _(e,t,r,n,i){var o;if(r<32)return-1;for(x(e,0,t,0,r,n,i),I(e,16,e,32,r-32,e),o=0;o<16;o++)e[o]=0;return 0}function T(e,t,r,n,i){var o,a=new Uint8Array(32);if(r<32)return-1;if(E(a,0,32,n,i),0!==k(t,16,t,32,r-32,a))return-1;for(x(e,0,t,0,r,n,i),o=0;o<32;o++)e[o]=0;return 0}function M(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function P(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function j(e,t,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(e[o]^t[o]),e[o]^=n,t[o]^=n}function D(e,r){var n,i,o,a=t(),s=t();for(n=0;n<16;n++)s[n]=r[n];for(P(s),P(s),P(s),i=0;i<2;i++){for(a[0]=s[0]-65517,n=1;n<15;n++)a[n]=s[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,j(s,a,1-o)}for(n=0;n<16;n++)e[2*n]=255&s[n],e[2*n+1]=s[n]>>8}function O(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return D(r,e),D(n,t),y(r,0,n,0)}function B(e){var t=new Uint8Array(32);return D(t,e),1&t[0]}function N(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function R(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function L(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function F(e,t,r){var n,i,o=0,a=0,s=0,c=0,u=0,l=0,d=0,f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,A=0,C=0,E=0,x=0,S=0,I=0,k=0,_=0,T=0,M=0,P=0,j=0,D=0,O=0,B=0,N=r[0],R=r[1],L=r[2],F=r[3],U=r[4],z=r[5],H=r[6],V=r[7],K=r[8],G=r[9],q=r[10],Q=r[11],W=r[12],J=r[13],Y=r[14],Z=r[15];o+=(n=t[0])*N,a+=n*R,s+=n*L,c+=n*F,u+=n*U,l+=n*z,d+=n*H,f+=n*V,h+=n*K,p+=n*G,g+=n*q,m+=n*Q,y+=n*W,b+=n*J,v+=n*Y,w+=n*Z,a+=(n=t[1])*N,s+=n*R,c+=n*L,u+=n*F,l+=n*U,d+=n*z,f+=n*H,h+=n*V,p+=n*K,g+=n*G,m+=n*q,y+=n*Q,b+=n*W,v+=n*J,w+=n*Y,A+=n*Z,s+=(n=t[2])*N,c+=n*R,u+=n*L,l+=n*F,d+=n*U,f+=n*z,h+=n*H,p+=n*V,g+=n*K,m+=n*G,y+=n*q,b+=n*Q,v+=n*W,w+=n*J,A+=n*Y,C+=n*Z,c+=(n=t[3])*N,u+=n*R,l+=n*L,d+=n*F,f+=n*U,h+=n*z,p+=n*H,g+=n*V,m+=n*K,y+=n*G,b+=n*q,v+=n*Q,w+=n*W,A+=n*J,C+=n*Y,E+=n*Z,u+=(n=t[4])*N,l+=n*R,d+=n*L,f+=n*F,h+=n*U,p+=n*z,g+=n*H,m+=n*V,y+=n*K,b+=n*G,v+=n*q,w+=n*Q,A+=n*W,C+=n*J,E+=n*Y,x+=n*Z,l+=(n=t[5])*N,d+=n*R,f+=n*L,h+=n*F,p+=n*U,g+=n*z,m+=n*H,y+=n*V,b+=n*K,v+=n*G,w+=n*q,A+=n*Q,C+=n*W,E+=n*J,x+=n*Y,S+=n*Z,d+=(n=t[6])*N,f+=n*R,h+=n*L,p+=n*F,g+=n*U,m+=n*z,y+=n*H,b+=n*V,v+=n*K,w+=n*G,A+=n*q,C+=n*Q,E+=n*W,x+=n*J,S+=n*Y,I+=n*Z,f+=(n=t[7])*N,h+=n*R,p+=n*L,g+=n*F,m+=n*U,y+=n*z,b+=n*H,v+=n*V,w+=n*K,A+=n*G,C+=n*q,E+=n*Q,x+=n*W,S+=n*J,I+=n*Y,k+=n*Z,h+=(n=t[8])*N,p+=n*R,g+=n*L,m+=n*F,y+=n*U,b+=n*z,v+=n*H,w+=n*V,A+=n*K,C+=n*G,E+=n*q,x+=n*Q,S+=n*W,I+=n*J,k+=n*Y,_+=n*Z,p+=(n=t[9])*N,g+=n*R,m+=n*L,y+=n*F,b+=n*U,v+=n*z,w+=n*H,A+=n*V,C+=n*K,E+=n*G,x+=n*q,S+=n*Q,I+=n*W,k+=n*J,_+=n*Y,T+=n*Z,g+=(n=t[10])*N,m+=n*R,y+=n*L,b+=n*F,v+=n*U,w+=n*z,A+=n*H,C+=n*V,E+=n*K,x+=n*G,S+=n*q,I+=n*Q,k+=n*W,_+=n*J,T+=n*Y,M+=n*Z,m+=(n=t[11])*N,y+=n*R,b+=n*L,v+=n*F,w+=n*U,A+=n*z,C+=n*H,E+=n*V,x+=n*K,S+=n*G,I+=n*q,k+=n*Q,_+=n*W,T+=n*J,M+=n*Y,P+=n*Z,y+=(n=t[12])*N,b+=n*R,v+=n*L,w+=n*F,A+=n*U,C+=n*z,E+=n*H,x+=n*V,S+=n*K,I+=n*G,k+=n*q,_+=n*Q,T+=n*W,M+=n*J,P+=n*Y,j+=n*Z,b+=(n=t[13])*N,v+=n*R,w+=n*L,A+=n*F,C+=n*U,E+=n*z,x+=n*H,S+=n*V,I+=n*K,k+=n*G,_+=n*q,T+=n*Q,M+=n*W,P+=n*J,j+=n*Y,D+=n*Z,v+=(n=t[14])*N,w+=n*R,A+=n*L,C+=n*F,E+=n*U,x+=n*z,S+=n*H,I+=n*V,k+=n*K,_+=n*G,T+=n*q,M+=n*Q,P+=n*W,j+=n*J,D+=n*Y,O+=n*Z,w+=(n=t[15])*N,a+=38*(C+=n*L),s+=38*(E+=n*F),c+=38*(x+=n*U),u+=38*(S+=n*z),l+=38*(I+=n*H),d+=38*(k+=n*V),f+=38*(_+=n*K),h+=38*(T+=n*G),p+=38*(M+=n*q),g+=38*(P+=n*Q),m+=38*(j+=n*W),y+=38*(D+=n*J),b+=38*(O+=n*Y),v+=38*(B+=n*Z),o=(n=(o+=38*(A+=n*R))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=c,e[4]=u,e[5]=l,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function U(e,t){F(e,t,t)}function z(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)U(i,i),2!==n&&4!==n&&F(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function H(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)U(i,i),1!==n&&F(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function V(e,r,n){var i,o,a=new Uint8Array(32),s=new Float64Array(80),u=t(),l=t(),d=t(),f=t(),h=t(),p=t();for(o=0;o<31;o++)a[o]=r[o];for(a[31]=127&r[31]|64,a[0]&=248,N(s,n),o=0;o<16;o++)l[o]=s[o],f[o]=u[o]=d[o]=0;for(u[0]=f[0]=1,o=254;o>=0;--o)j(u,l,i=a[o>>>3]>>>(7&o)&1),j(d,f,i),R(h,u,d),L(u,u,d),R(d,l,f),L(l,l,f),U(f,h),U(p,u),F(u,d,u),F(d,l,h),R(h,u,d),L(u,u,d),U(l,u),L(d,f,p),F(u,d,c),R(u,u,f),F(d,d,u),F(u,f,p),F(f,l,s),U(l,h),j(u,l,i),j(d,f,i);for(o=0;o<16;o++)s[o+16]=u[o],s[o+32]=d[o],s[o+48]=l[o],s[o+64]=f[o];var g=s.subarray(32),m=s.subarray(16);return z(g,g),F(m,m,g),D(e,m),0}function K(e,t){return V(e,t,o)}function G(e,t){return n(t,32),K(e,t)}function q(e,t,r){var n=new Uint8Array(32);return V(n,r,t),v(e,i,n,w)}S.prototype.blocks=function(e,t,r){for(var n,i,o,a,s,c,u,l,d,f,h,p,g,m,y,b,v,w,A,C=this.fin?0:2048,E=this.h[0],x=this.h[1],S=this.h[2],I=this.h[3],k=this.h[4],_=this.h[5],T=this.h[6],M=this.h[7],P=this.h[8],j=this.h[9],D=this.r[0],O=this.r[1],B=this.r[2],N=this.r[3],R=this.r[4],L=this.r[5],F=this.r[6],U=this.r[7],z=this.r[8],H=this.r[9];r>=16;)f=d=0,f+=(E+=8191&(n=255&e[t+0]|(255&e[t+1])<<8))*D,f+=(x+=8191&(n>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*H),f+=(S+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*z),f+=(I+=8191&(o>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*U),d=(f+=(k+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*F))>>>13,f&=8191,f+=(_+=s>>>1&8191)*(5*L),f+=(T+=8191&(s>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*R),f+=(M+=8191&(c>>>11|(u=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*N),f+=(P+=8191&(u>>>8|(l=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*B),h=d+=(f+=(j+=l>>>5|C)*(5*O))>>>13,h+=E*O,h+=x*D,h+=S*(5*H),h+=I*(5*z),d=(h+=k*(5*U))>>>13,h&=8191,h+=_*(5*F),h+=T*(5*L),h+=M*(5*R),h+=P*(5*N),d+=(h+=j*(5*B))>>>13,h&=8191,p=d,p+=E*B,p+=x*O,p+=S*D,p+=I*(5*H),d=(p+=k*(5*z))>>>13,p&=8191,p+=_*(5*U),p+=T*(5*F),p+=M*(5*L),p+=P*(5*R),g=d+=(p+=j*(5*N))>>>13,g+=E*N,g+=x*B,g+=S*O,g+=I*D,d=(g+=k*(5*H))>>>13,g&=8191,g+=_*(5*z),g+=T*(5*U),g+=M*(5*F),g+=P*(5*L),m=d+=(g+=j*(5*R))>>>13,m+=E*R,m+=x*N,m+=S*B,m+=I*O,d=(m+=k*D)>>>13,m&=8191,m+=_*(5*H),m+=T*(5*z),m+=M*(5*U),m+=P*(5*F),y=d+=(m+=j*(5*L))>>>13,y+=E*L,y+=x*R,y+=S*N,y+=I*B,d=(y+=k*O)>>>13,y&=8191,y+=_*D,y+=T*(5*H),y+=M*(5*z),y+=P*(5*U),b=d+=(y+=j*(5*F))>>>13,b+=E*F,b+=x*L,b+=S*R,b+=I*N,d=(b+=k*B)>>>13,b&=8191,b+=_*O,b+=T*D,b+=M*(5*H),b+=P*(5*z),v=d+=(b+=j*(5*U))>>>13,v+=E*U,v+=x*F,v+=S*L,v+=I*R,d=(v+=k*N)>>>13,v&=8191,v+=_*B,v+=T*O,v+=M*D,v+=P*(5*H),w=d+=(v+=j*(5*z))>>>13,w+=E*z,w+=x*U,w+=S*F,w+=I*L,d=(w+=k*R)>>>13,w&=8191,w+=_*N,w+=T*B,w+=M*O,w+=P*D,A=d+=(w+=j*(5*H))>>>13,A+=E*H,A+=x*z,A+=S*U,A+=I*F,d=(A+=k*L)>>>13,A&=8191,A+=_*R,A+=T*N,A+=M*B,A+=P*O,E=f=8191&(d=(d=((d+=(A+=j*D)>>>13)<<2)+d|0)+(f&=8191)|0),x=h+=d>>>=13,S=p&=8191,I=g&=8191,k=m&=8191,_=y&=8191,T=b&=8191,M=v&=8191,P=w&=8191,j=A&=8191,t+=16,r-=16;this.h[0]=E,this.h[1]=x,this.h[2]=S,this.h[3]=I,this.h[4]=k,this.h[5]=_,this.h[6]=T,this.h[7]=M,this.h[8]=P,this.h[9]=j},S.prototype.finish=function(e,t){var r,n,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=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,a[0]=this.h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(n=~n,o=0;o<10;o++)this.h[o]=this.h[o]&n|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n=16&&(i=r-r%16,this.blocks(e,t,i),t+=i,r-=i),r){for(n=0;n=128;){for(C=0;C<16;C++)E=8*C+W,M[C]=r[E+0]<<24|r[E+1]<<16|r[E+2]<<8|r[E+3],P[C]=r[E+4]<<24|r[E+5]<<16|r[E+6]<<8|r[E+7];for(C=0;C<80;C++)if(i=j,o=D,a=O,s=B,c=N,u=R,l=L,F,f=U,h=z,p=H,g=V,m=K,y=G,b=q,Q,I=65535&(S=Q),k=S>>>16,_=65535&(x=F),T=x>>>16,I+=65535&(S=(K>>>14|N<<18)^(K>>>18|N<<14)^(N>>>9|K<<23)),k+=S>>>16,_+=65535&(x=(N>>>14|K<<18)^(N>>>18|K<<14)^(K>>>9|N<<23)),T+=x>>>16,I+=65535&(S=K&G^~K&q),k+=S>>>16,_+=65535&(x=N&R^~N&L),T+=x>>>16,I+=65535&(S=J[2*C+1]),k+=S>>>16,_+=65535&(x=J[2*C]),T+=x>>>16,x=M[C%16],k+=(S=P[C%16])>>>16,_+=65535&x,T+=x>>>16,_+=(k+=(I+=65535&S)>>>16)>>>16,I=65535&(S=A=65535&I|k<<16),k=S>>>16,_=65535&(x=w=65535&_|(T+=_>>>16)<<16),T=x>>>16,I+=65535&(S=(U>>>28|j<<4)^(j>>>2|U<<30)^(j>>>7|U<<25)),k+=S>>>16,_+=65535&(x=(j>>>28|U<<4)^(U>>>2|j<<30)^(U>>>7|j<<25)),T+=x>>>16,k+=(S=U&z^U&H^z&H)>>>16,_+=65535&(x=j&D^j&O^D&O),T+=x>>>16,d=65535&(_+=(k+=(I+=65535&S)>>>16)>>>16)|(T+=_>>>16)<<16,v=65535&I|k<<16,I=65535&(S=g),k=S>>>16,_=65535&(x=s),T=x>>>16,k+=(S=A)>>>16,_+=65535&(x=w),T+=x>>>16,D=i,O=o,B=a,N=s=65535&(_+=(k+=(I+=65535&S)>>>16)>>>16)|(T+=_>>>16)<<16,R=c,L=u,F=l,j=d,z=f,H=h,V=p,K=g=65535&I|k<<16,G=m,q=y,Q=b,U=v,C%16==15)for(E=0;E<16;E++)x=M[E],I=65535&(S=P[E]),k=S>>>16,_=65535&x,T=x>>>16,x=M[(E+9)%16],I+=65535&(S=P[(E+9)%16]),k+=S>>>16,_+=65535&x,T+=x>>>16,w=M[(E+1)%16],I+=65535&(S=((A=P[(E+1)%16])>>>1|w<<31)^(A>>>8|w<<24)^(A>>>7|w<<25)),k+=S>>>16,_+=65535&(x=(w>>>1|A<<31)^(w>>>8|A<<24)^w>>>7),T+=x>>>16,w=M[(E+14)%16],k+=(S=((A=P[(E+14)%16])>>>19|w<<13)^(w>>>29|A<<3)^(A>>>6|w<<26))>>>16,_+=65535&(x=(w>>>19|A<<13)^(A>>>29|w<<3)^w>>>6),T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,M[E]=65535&_|T<<16,P[E]=65535&I|k<<16;I=65535&(S=U),k=S>>>16,_=65535&(x=j),T=x>>>16,x=e[0],k+=(S=t[0])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[0]=j=65535&_|T<<16,t[0]=U=65535&I|k<<16,I=65535&(S=z),k=S>>>16,_=65535&(x=D),T=x>>>16,x=e[1],k+=(S=t[1])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[1]=D=65535&_|T<<16,t[1]=z=65535&I|k<<16,I=65535&(S=H),k=S>>>16,_=65535&(x=O),T=x>>>16,x=e[2],k+=(S=t[2])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[2]=O=65535&_|T<<16,t[2]=H=65535&I|k<<16,I=65535&(S=V),k=S>>>16,_=65535&(x=B),T=x>>>16,x=e[3],k+=(S=t[3])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[3]=B=65535&_|T<<16,t[3]=V=65535&I|k<<16,I=65535&(S=K),k=S>>>16,_=65535&(x=N),T=x>>>16,x=e[4],k+=(S=t[4])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[4]=N=65535&_|T<<16,t[4]=K=65535&I|k<<16,I=65535&(S=G),k=S>>>16,_=65535&(x=R),T=x>>>16,x=e[5],k+=(S=t[5])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[5]=R=65535&_|T<<16,t[5]=G=65535&I|k<<16,I=65535&(S=q),k=S>>>16,_=65535&(x=L),T=x>>>16,x=e[6],k+=(S=t[6])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[6]=L=65535&_|T<<16,t[6]=q=65535&I|k<<16,I=65535&(S=Q),k=S>>>16,_=65535&(x=F),T=x>>>16,x=e[7],k+=(S=t[7])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[7]=F=65535&_|T<<16,t[7]=Q=65535&I|k<<16,W+=128,n-=128}return n}function Z(e,t,r){var n,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Y(i,o,t,r),r%=128,n=0;n=0;--i)X(e,t,n=r[i/8|0]>>(7&i)&1),$(t,e),$(e,e),X(e,t,n)}function re(e,r){var n=[t(),t(),t(),t()];M(n[0],d),M(n[1],f),M(n[2],s),F(n[3],d,f),te(e,n,r)}function ne(e,r,i){var o,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(i||n(r,32),Z(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,re(s,a),ee(e,s),o=0;o<32;o++)r[o+32]=e[o];return 0}var ie=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 oe(e,t){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i>4)*ie[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*ie[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function ae(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;oe(e,r)}function se(e,r,n,i){var o,a,s=new Uint8Array(64),c=new Uint8Array(64),u=new Uint8Array(64),l=new Float64Array(64),d=[t(),t(),t(),t()];Z(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=n+64;for(o=0;o>7&&L(e[0],a,e[0]),F(e[3],e[0],e[1]),0)}(f,i))return-1;for(o=0;o=0},e.sign.keyPair=function(){var e=new Uint8Array(de),t=new Uint8Array(fe);return ne(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(pe(e),e.length!==fe)throw new Error("bad secret key size");for(var t=new Uint8Array(de),r=0;r{"use strict";var n=r(492063),i=r(173992),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(o,"")}var f=[["#","hash"],["?","query"],function(e,t){return g(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function p(e){var t,n=("undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{}).location||{},i={},o=typeof(e=e||n);if("blob:"===e.protocol)i=new y(unescape(e.pathname),{});else if("string"===o)for(t in i=new y(e,{}),h)delete i[t];else if("object"===o){for(t in e)t in h||(i[t]=e[t]);void 0===i.slashes&&(i.slashes=s.test(e.href))}return i}function g(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function m(e,t){e=(e=d(e)).replace(a,""),t=t||{};var r,n=u.exec(e),i=n[1]?n[1].toLowerCase():"",o=!!n[2],s=!!n[3],c=0;return o?s?(r=n[2]+n[3]+n[4],c=n[2].length+n[3].length):(r=n[2]+n[4],c=n[2].length):s?(r=n[3]+n[4],c=n[3].length):r=n[4],"file:"===i?c>=2&&(r=r.slice(2)):g(i)?r=n[4]:i?o&&(r=r.slice(2)):c>=2&&g(t.protocol)&&(r=n[4]),{protocol:i,slashes:o||g(i),slashesCount:c,rest:r}}function y(e,t,r){if(e=(e=d(e)).replace(a,""),!(this instanceof y))return new y(e,t,r);var o,s,c,u,h,b,v=f.slice(),w=typeof t,A=this,C=0;for("object"!==w&&"string"!==w&&(r=t,t=null),r&&"function"!=typeof r&&(r=i.parse),o=!(s=m(e||"",t=p(t))).protocol&&!s.slashes,A.slashes=s.slashes||o&&t.slashes,A.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||l.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!g(A.protocol)))&&(v[3]=[/(.*)/,"pathname"]);C{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:i}},563098:(e,t,r)=>{"use strict";var n=r(991207),i=r(60969),o=r(95902);e.exports={formats:o,parse:i,stringify:n}},60969:(e,t,r)=>{"use strict";var n=r(562795),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=s?o.slice(0,s.index):o,l=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var d=0;r.depth>0&&null!==(s=a.exec(o))&&d=0;--o){var a,s=e[o];if("[]"===s&&r.parseArrays)a=r.allowEmptyArrays&&(""===i||r.strictNullHandling&&null===i)?[]:[].concat(i);else{a=r.plainObjects?{__proto__:null}:{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,d=parseInt(l,10);r.parseArrays||""!==l?!isNaN(d)&&s!==l&&String(d)===l&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(a=[])[d]=i:"__proto__"!==l&&(a[l]=i):a={0:i}}i=a}return i}(l,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var l="string"==typeof e?function(e,t){var r={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,d),h=-1,p=t.charset;if(t.charsetSentinel)for(l=0;l-1&&(m=o(m)?[m]:m);var w=i.call(r,g);w&&"combine"===t.duplicates?r[g]=n.combine(r[g],m):w&&"last"!==t.duplicates||(r[g]=m)}return r}(e,r):e,d=r.plainObjects?{__proto__:null}:{},f=Object.keys(l),h=0;h{"use strict";var n=r(200920),i=r(562795),o=r(95902),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},d=Date.prototype.toISOString,f=o.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},p={},g=function e(t,r,o,a,s,u,d,f,g,m,y,b,v,w,A,C,E,x){for(var S,I=t,k=x,_=0,T=!1;void 0!==(k=k.get(p))&&!T;){var M=k.get(t);if(_+=1,void 0!==M){if(M===_)throw new RangeError("Cyclic object value");T=!0}void 0===k.get(p)&&(_=0)}if("function"==typeof m?I=m(r,I):I instanceof Date?I=v(I):"comma"===o&&c(I)&&(I=i.maybeMap(I,(function(e){return e instanceof Date?v(e):e}))),null===I){if(u)return g&&!C?g(r,h.encoder,E,"key",w):r;I=""}if("string"==typeof(S=I)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||i.isBuffer(I))return g?[A(C?r:g(r,h.encoder,E,"key",w))+"="+A(g(I,h.encoder,E,"value",w))]:[A(r)+"="+A(String(I))];var P,j=[];if(void 0===I)return j;if("comma"===o&&c(I))C&&g&&(I=i.maybeMap(I,g)),P=[{value:I.length>0?I.join(",")||null:void 0}];else if(c(m))P=m;else{var D=Object.keys(I);P=y?D.sort(y):D}var O=f?String(r).replace(/\./g,"%2E"):String(r),B=a&&c(I)&&1===I.length?O+"[]":O;if(s&&c(I)&&0===I.length)return B+"[]";for(var N=0;N0?A+w:""}},562795:(e,t,r)=>{"use strict";var n=r(95902),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i=c?s.slice(l,l+c):s,f=[],h=0;h=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===n.RFC1738&&(40===p||41===p)?f[f.length]=d.charAt(h):p<128?f[f.length]=a[p]:p<2048?f[f.length]=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?f[f.length]=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(h+=1,p=65536+((1023&p)<<10|1023&d.charCodeAt(h)),f[f.length]=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}u+=f.join("")}return u},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n{"use strict";var n=r(9655);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),l=["%","/","?",";","#"].concat(u),d=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(563098);function b(e,t,r){if(e&&"object"==typeof e&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i127?j+="x":j+=P[D];if(!j.match(f)){var B=T.slice(0,I),N=T.slice(I+1),R=P.match(h);R&&(B.push(R[1]),N.unshift(R[2])),N.length&&(b="/"+N.join(".")+b),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=n.toASCII(this.hostname));var L=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+L,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!p[A])for(I=0,M=u.length;I0)&&r.host.split("@"))&&(r.auth=_.shift(),r.hostname=_.shift(),r.host=r.hostname);return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!C.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var x=C.slice(-1)[0],S=(r.host||e.host||C.length>1)&&("."===x||".."===x)||""===x,I=0,k=C.length;k>=0;k--)"."===(x=C[k])?C.splice(k,1):".."===x?(C.splice(k,1),I++):I&&(C.splice(k,1),I--);if(!w&&!A)for(;I--;I)C.unshift("..");!w||""===C[0]||C[0]&&"/"===C[0].charAt(0)||C.unshift(""),S&&"/"!==C.join("/").substr(-1)&&C.push("");var _,T=""===C[0]||C[0]&&"/"===C[0].charAt(0);E&&(r.hostname=T?"":C.length?C.shift():"",r.host=r.hostname,(_=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=_.shift(),r.hostname=_.shift(),r.host=r.hostname));return(w=w||r.host&&C.length)&&!T&&C.unshift(""),C.length>0?r.pathname=C.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=b(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i},594643:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(n){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},836622:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},681135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},440537:(e,t,r)=>{var n=/%[sdj%]/g;t.format=function(e){if(!m(e)){for(var t=[],r=0;r=o)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(t){return"[Circular]"}default:return e}})),c=i[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),h(r)?n.showHidden=r:r&&t._extend(n,r),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),u(n,e,n.depth)}function s(e,t){var r=a.styles[t];return r?"\x1b["+a.colors[r][0]+"m"+e+"\x1b["+a.colors[r][1]+"m":e}function c(e,t){return e}function u(e,r,n){if(e.customInspect&&r&&C(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return m(i)||(i=u(e,i,n)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(p(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),A(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(r);if(0===a.length){if(C(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(A(r))return l(r)}var v,E="",x=!1,S=["{","}"];(f(r)&&(x=!0,S=["[","]"]),C(r))&&(E=" [Function"+(r.name?": "+r.name:"")+"]");return b(r)&&(E=" "+RegExp.prototype.toString.call(r)),w(r)&&(E=" "+Date.prototype.toUTCString.call(r)),A(r)&&(E=" "+l(r)),0!==a.length||x&&0!=r.length?n<0?b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),v=x?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(v,E,S)):S[0]+E+S[1]}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),I(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=p(r)?u(e,c.value,null):u(e,c.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),y(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function f(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function p(e){return null===e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function y(e){return void 0===e}function b(e){return v(e)&&"[object RegExp]"===E(e)}function v(e){return"object"==typeof e&&null!==e}function w(e){return v(e)&&"[object Date]"===E(e)}function A(e){return v(e)&&("[object Error]"===E(e)||e instanceof Error)}function C(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(y(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=h,t.isNull=p,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=v,t.isDate=w,t.isError=A,t.isFunction=C,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(681135);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":"),[e.getDate(),S[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(836622),t._extend=function(e,t){if(!t||!v(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}},122831:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return c.default}});var n=f(r(413518)),i=f(r(914948)),o=f(r(445073)),a=f(r(577186)),s=f(r(314808)),c=f(r(807775)),u=f(r(337037)),l=f(r(149910)),d=f(r(496792));function f(e){return e&&e.__esModule?e:{default:e}}},722311:(e,t)=>{"use strict";function r(e){return 14+(e+64>>>9<<4)+1}function n(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function i(e,t,r,i,o,a){return n((s=n(n(t,e),n(i,a)))<<(c=o)|s>>>32-c,r);var s,c}function o(e,t,r,n,o,a,s){return i(t&r|~t&n,e,t,o,a,s)}function a(e,t,r,n,o,a,s){return i(t&n|r&~n,e,t,o,a,s)}function s(e,t,r,n,o,a,s){return i(t^r^n,e,t,o,a,s)}function c(e,t,r,n,o,a,s){return i(r^(t|~n),e,t,o,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r>5]>>>i%32&255,o=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[r/8])<{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=r},314808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="00000000-0000-0000-0000-000000000000"},496792:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(337037))&&n.__esModule?n:{default:n};var o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};t.default=o},227656:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},402858:(e,t)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(n)};const n=new Uint8Array(16)},309042:(e,t)=>{"use strict";function r(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function n(e,t){return e<>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){const t=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r>>0;d=l,l=u,u=n(a,30)>>>0,a=o,o=c}i[0]=i[0]+o>>>0,i[1]=i[1]+a>>>0,i[2]=i[2]+u>>>0,i[3]=i[3]+l>>>0,i[4]=i[4]+d>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]};t.default=i},149910:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var n,i=(n=r(337037))&&n.__esModule?n:{default:n};const o=[];for(let c=0;c<256;++c)o.push((c+256).toString(16).slice(1));function a(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}var s=function(e,t=0){const r=a(e,t);if(!(0,i.default)(r))throw TypeError("Stringified UUID is invalid");return r};t.default=s},413518:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(402858))&&n.__esModule?n:{default:n},o=r(149910);let a,s,c=0,u=0;var l=function(e,t,r){let n=t&&r||0;const l=t||new Array(16);let d=(e=e||{}).node||a,f=void 0!==e.clockseq?e.clockseq:s;if(null==d||null==f){const t=e.random||(e.rng||i.default)();null==d&&(d=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==f&&(f=s=16383&(t[6]<<8|t[7]))}let h=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:u+1;const g=h-c+(p-u)/1e4;if(g<0&&void 0===e.clockseq&&(f=f+1&16383),(g<0||h>c)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=h,u=p,s=f,h+=122192928e5;const m=(1e4*(268435455&h)+p)%4294967296;l[n++]=m>>>24&255,l[n++]=m>>>16&255,l[n++]=m>>>8&255,l[n++]=255&m;const y=h/4294967296*1e4&268435455;l[n++]=y>>>8&255,l[n++]=255&y,l[n++]=y>>>24&15|16,l[n++]=y>>>16&255,l[n++]=f>>>8|128,l[n++]=255&f;for(let i=0;i<6;++i)l[n+i]=d[i];return t||(0,o.unsafeStringify)(l)};t.default=l},914948:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(559025)),i=o(r(722311));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v3",48,i.default);t.default=a},559025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,r){function n(e,n,a,s){var c;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(846140)),i=a(r(402858)),o=r(149910);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,r){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID();const a=(e=e||{}).random||(e.rng||i.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=a[e];return t}return(0,o.unsafeStringify)(a)};t.default=s},577186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(559025)),i=o(r(309042));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v5",80,i.default);t.default=a},337037:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(227656))&&n.__esModule?n:{default:n};var o=function(e){return"string"==typeof e&&i.default.test(e)};t.default=o},807775:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(337037))&&n.__esModule?n:{default:n};var o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};t.default=o},338823:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});const n=[];for(let o=0;o<256;++o)n.push((o+256).toString(16).slice(1));function i(e,t=0){return n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]}},468961:(__unused_webpack_module,exports)=>{var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r{"use strict";var n=r(182682),i=r(739209),o=r(10487),a=r(438075),s=r(675795),c=a("Object.prototype.toString"),u=r(849092)(),l="undefined"==typeof globalThis?r.g:globalThis,d=i(),f=a("String.prototype.slice"),h=Object.getPrototypeOf,p=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1?t:"Object"===t&&function(e){var t=!1;return n(g,(function(r,n){if(!t)try{r(e),t=f(n,1)}catch(i){}})),t}(e)}return s?function(e){var t=!1;return n(g,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=f(n,1))}catch(i){}})),t}(e):null}},57510:e=>{e.exports=function(){for(var e={},r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;const n=r(557125);class i extends Error{constructor(e,t={}){const r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof i&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${n.version}`].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}}t.BaseError=i},934185:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownSolidityTypeError=t.UnknownTypeError=t.InvalidAbiItemError=void 0;const n=r(775042);class i extends n.BaseError{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}t.InvalidAbiItemError=i;class o extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}t.UnknownTypeError=o;class a extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}t.UnknownSolidityTypeError=a},190615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAbiTypeParameterError=t.InvalidFunctionModifierError=t.InvalidModifierError=t.SolidityProtectedKeywordError=t.InvalidParameterError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=void 0;const n=r(775042);class i extends n.BaseError{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}t.InvalidAbiParameterError=i;class o extends n.BaseError{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}t.InvalidAbiParametersError=o;class a extends n.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}t.InvalidParameterError=a;class s extends n.BaseError{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}t.SolidityProtectedKeywordError=s;class c extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}t.InvalidModifierError=c;class u extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}t.InvalidFunctionModifierError=u;class l extends n.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}t.InvalidAbiTypeParameterError=l},380690:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStructSignatureError=t.UnknownSignatureError=t.InvalidSignatureError=void 0;const n=r(775042);class i extends n.BaseError{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}t.InvalidSignatureError=i;class o extends n.BaseError{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}t.UnknownSignatureError=o;class a extends n.BaseError{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}t.InvalidStructSignatureError=a},53188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidParenthesisError=void 0;const n=r(775042);class i extends n.BaseError{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}t.InvalidParenthesisError=i},602851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=void 0;const n=r(775042);class i extends n.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}t.CircularReferenceError=i},567161:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbi=void 0;const n=r(111974);t.formatAbi=function(e){const t=[],r=e.length;for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItem=void 0;const n=r(545369);t.formatAbiItem=function(e){return"function"===e.type?`function ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs.length?` returns (${(0,n.formatAbiParameters)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,n.formatAbiParameters)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback()":"receive() external payable"}},114250:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameter=void 0;const n=r(46458),i=/^tuple(?(\[(\d*)\])*)$/;t.formatAbiParameter=function e(t){let r=t.type;if(i.test(t.type)&&"components"in t){r="(";const o=t.components.length;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameters=void 0;const n=r(114250);t.formatAbiParameters=function(e){let t="";const r=e.length;for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbi=void 0;const n=r(430090),i=r(353067),o=r(814852);t.parseAbi=function(e){const t=(0,i.parseStructs)(e),r=[],a=e.length;for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiItem=void 0;const n=r(208557),i=r(430090),o=r(353067),a=r(814852);t.parseAbiItem=function(e){let t;if("string"==typeof e)t=(0,a.parseSignature)(e);else{const r=(0,o.parseStructs)(e),n=e.length;for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameter=void 0;const n=r(208557),i=r(430090),o=r(353067),a=r(814852);t.parseAbiParameter=function(e){let t;if("string"==typeof e)t=(0,a.parseAbiParameter)(e,{modifiers:i.modifiers});else{const r=(0,o.parseStructs)(e),n=e.length;for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameters=void 0;const n=r(208557),i=r(430090),o=r(353067),a=r(814852),s=r(814852);t.parseAbiParameters=function(e){const t=[];if("string"==typeof e){const r=(0,a.splitParameters)(e),n=r.length;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parameterCache=t.getParameterCacheKey=void 0,t.getParameterCacheKey=function(e,t){return t?`${t}:${e}`:e},t.parameterCache=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]])},430090:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.functionModifiers=t.eventModifiers=t.modifiers=t.isReceiveSignature=t.isFallbackSignature=t.execConstructorSignature=t.isConstructorSignature=t.execStructSignature=t.isStructSignature=t.execFunctionSignature=t.isFunctionSignature=t.execEventSignature=t.isEventSignature=t.execErrorSignature=t.isErrorSignature=void 0;const n=r(46458),i=/^error (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;t.isErrorSignature=function(e){return i.test(e)},t.execErrorSignature=function(e){return(0,n.execTyped)(i,e)};const o=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;t.isEventSignature=function(e){return o.test(e)},t.execEventSignature=function(e){return(0,n.execTyped)(o,e)};const a=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;t.isFunctionSignature=function(e){return a.test(e)},t.execFunctionSignature=function(e){return(0,n.execTyped)(a,e)};const s=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;t.isStructSignature=function(e){return s.test(e)},t.execStructSignature=function(e){return(0,n.execTyped)(s,e)};const c=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;t.isConstructorSignature=function(e){return c.test(e)},t.execConstructorSignature=function(e){return(0,n.execTyped)(c,e)};const u=/^fallback\(\)$/;t.isFallbackSignature=function(e){return u.test(e)};const l=/^receive\(\) external payable$/;t.isReceiveSignature=function(e){return l.test(e)},t.modifiers=new Set(["memory","indexed","storage","calldata"]),t.eventModifiers=new Set(["indexed"]),t.functionModifiers=new Set(["calldata","memory","storage"])},353067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStructs=void 0;const n=r(46458),i=r(934185),o=r(190615),a=r(380690),s=r(602851),c=r(430090),u=r(814852);t.parseStructs=function(e){const t={},r=e.length;for(let s=0;s[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/;function d(e,t,r=new Set){const a=[],c=e.length;for(let f=0;f{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDataLocation=t.isSolidityKeyword=t.isSolidityType=t.splitParameters=t.parseAbiParameter=t.parseSignature=void 0;const n=r(46458),i=r(934185),o=r(190615),a=r(380690),s=r(53188),c=r(3399),u=r(430090);t.parseSignature=function(e,t={}){if((0,u.isFunctionSignature)(e)){const r=(0,u.execFunctionSignature)(e);if(!r)throw new a.InvalidSignatureError({signature:e,type:"function"});const n=p(r.parameters),i=[],o=n.length;for(let e=0;e[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,d=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,f=/^u?int$/;function h(e,t){const r=(0,c.getParameterCacheKey)(e,t?.type);if(c.parameterCache.has(r))return c.parameterCache.get(r);const a=n.isTupleRegex.test(e),s=(0,n.execTyped)(a?d:l,e);if(!s)throw new o.InvalidParameterError({param:e});if(s.name&&y(s.name))throw new o.SolidityProtectedKeywordError({param:e,name:s.name});const m=s.name?{name:s.name}:{},v="indexed"===s.modifier?{indexed:!0}:{},w=t?.structs??{};let A,C={};if(a){A="tuple";const e=p(s.type),t=[],r=e.length;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=t.InvalidParenthesisError=t.UnknownSignatureError=t.InvalidSignatureError=t.InvalidStructSignatureError=t.InvalidAbiParameterError=t.InvalidAbiParametersError=t.InvalidParameterError=t.SolidityProtectedKeywordError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.UnknownSolidityTypeError=t.InvalidAbiItemError=t.UnknownTypeError=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.formatAbiParameters=t.formatAbiParameter=t.formatAbiItem=t.formatAbi=t.narrow=t.BaseError=void 0;var n=r(775042);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return n.BaseError}});var i=r(830034);Object.defineProperty(t,"narrow",{enumerable:!0,get:function(){return i.narrow}});var o=r(567161);Object.defineProperty(t,"formatAbi",{enumerable:!0,get:function(){return o.formatAbi}});var a=r(111974);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return a.formatAbiItem}});var s=r(114250);Object.defineProperty(t,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var c=r(545369);Object.defineProperty(t,"formatAbiParameters",{enumerable:!0,get:function(){return c.formatAbiParameters}});var u=r(528623);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return u.parseAbi}});var l=r(466004);Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return l.parseAbiItem}});var d=r(722820);Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return d.parseAbiParameter}});var f=r(538763);Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return f.parseAbiParameters}});var h=r(934185);Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return h.UnknownTypeError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return h.InvalidAbiItemError}}),Object.defineProperty(t,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return h.UnknownSolidityTypeError}});var p=r(190615);Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return p.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return p.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return p.InvalidModifierError}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return p.SolidityProtectedKeywordError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return p.InvalidParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return p.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return p.InvalidAbiParameterError}});var g=r(380690);Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return g.InvalidStructSignatureError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return g.InvalidSignatureError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return g.UnknownSignatureError}});var m=r(53188);Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return m.InvalidParenthesisError}});var y=r(602851);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return y.CircularReferenceError}})},830034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.narrow=void 0,t.narrow=function(e){return e}},46458:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTupleRegex=t.integerRegex=t.bytesRegex=t.execTyped=void 0,t.execTyped=function(e,t){const r=e.exec(t);return r?.groups},t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,t.isTupleRegex=/^\(.+?\).*?$/},557125:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="0.9.8"},157449:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAccount=void 0,t.parseAccount=function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}},535896:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicKeyToAddress=void 0;const n=r(115257),i=r(829336);t.publicKeyToAddress=function(e){const t=(0,i.keccak256)(`0x${e.substring(4)}`).substring(26);return(0,n.checksumAddress)(`0x${t}`)}},714635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsAddress=void 0;const n=r(100455),i=r(608540),o=r(36217),a=r(778849),s=r(939415),c=r(214368),u=r(840130),l=r(244130),d=r(487801),f=r(366956),h=r(554884);t.getEnsAddress=async function(e,{blockNumber:t,blockTag:r,coinType:p,name:g,universalResolverAddress:m}){let y=m;if(!y){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");y=(0,a.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const a=(0,o.encodeFunctionData)({abi:n.addressResolverAbi,functionName:"addr",...null!=p?{args:[(0,l.namehash)(g),BigInt(p)]}:{args:[(0,l.namehash)(g)]}}),u=await(0,f.getAction)(e,h.readContract,"readContract")({address:y,abi:n.universalResolverResolveAbi,functionName:"resolve",args:[(0,c.toHex)((0,d.packetToBytes)(g)),a],blockNumber:t,blockTag:r});if("0x"===u[0])return null;const m=(0,i.decodeFunctionResult)({abi:n.addressResolverAbi,args:null!=p?[(0,l.namehash)(g),BigInt(p)]:void 0,functionName:"addr",data:u[0]});return"0x"===m||"0x00"===(0,s.trim)(m)?null:m}catch(b){if((0,u.isNullUniversalResolverError)(b,"resolve"))return null;throw b}}},427982:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsAvatar=void 0;const n=r(904728),i=r(366956),o=r(715344);t.getEnsAvatar=async function(e,{blockNumber:t,blockTag:r,gatewayUrls:a,name:s,universalResolverAddress:c}){const u=await(0,i.getAction)(e,o.getEnsText,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:s,universalResolverAddress:c});if(!u)return null;try{return await(0,n.parseAvatarRecord)(e,{record:u,gatewayUrls:a})}catch{return null}}},843188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsName=void 0;const n=r(100455),i=r(778849),o=r(214368),a=r(840130),s=r(487801),c=r(366956),u=r(554884);t.getEnsName=async function(e,{address:t,blockNumber:r,blockTag:l,universalResolverAddress:d}){let f=d;if(!f){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");f=(0,i.getChainContractAddress)({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}const h=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const[i,a]=await(0,c.getAction)(e,u.readContract,"readContract")({address:f,abi:n.universalResolverReverseAbi,functionName:"reverse",args:[(0,o.toHex)((0,s.packetToBytes)(h))],blockNumber:r,blockTag:l});return t.toLowerCase()!==a.toLowerCase()?null:i}catch(p){if((0,a.isNullUniversalResolverError)(p,"reverse"))return null;throw p}}},846009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsResolver=void 0;const n=r(778849),i=r(214368),o=r(487801),a=r(366956),s=r(554884);t.getEnsResolver=async function(e,{blockNumber:t,blockTag:r,name:c,universalResolverAddress:u}){let l=u;if(!l){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");l=(0,n.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}const[d]=await(0,a.getAction)(e,s.readContract,"readContract")({address:l,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,i.toHex)((0,o.packetToBytes)(c))],blockNumber:t,blockTag:r});return d}},715344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsText=void 0;const n=r(100455),i=r(608540),o=r(36217),a=r(778849),s=r(214368),c=r(840130),u=r(244130),l=r(487801),d=r(366956),f=r(554884);t.getEnsText=async function(e,{blockNumber:t,blockTag:r,name:h,key:p,universalResolverAddress:g}){let m=g;if(!m){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");m=(0,a.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const a=await(0,d.getAction)(e,f.readContract,"readContract")({address:m,abi:n.universalResolverResolveAbi,functionName:"resolve",args:[(0,s.toHex)((0,l.packetToBytes)(h)),(0,o.encodeFunctionData)({abi:n.textResolverAbi,functionName:"text",args:[(0,u.namehash)(h),p]})],blockNumber:t,blockTag:r});if("0x"===a[0])return null;const c=(0,i.decodeFunctionResult)({abi:n.textResolverAbi,functionName:"text",data:a[0]});return""===c?null:c}catch(y){if((0,c.isNullUniversalResolverError)(y,"resolve"))return null;throw y}}},370894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEventParameters=t.getFunctionParameters=t.getContract=void 0;const n=r(366956),i=r(497276),o=r(503349),a=r(983619),s=r(554884),c=r(40238),u=r(395309),l=r(721609);function d(e){const t=e.length&&Array.isArray(e[0]);return{args:t?e[0]:[],options:(t?e[1]:e[0])??{}}}function f(e,t){let r=!1;Array.isArray(e[0])?r=!0:1===e.length?r=t.inputs.some((e=>e.indexed)):2===e.length&&(r=!0);return{args:r?e[0]:void 0,options:(r?e[1]:e[0])??{}}}t.getContract=function({abi:e,address:t,publicClient:r,walletClient:h}){const p=null!=r,g=null!=h,m={};let y=!1,b=!1,v=!1;for(const n of e)if("function"===n.type?"view"===n.stateMutability||"pure"===n.stateMutability?y=!0:b=!0:"event"===n.type&&(v=!0),y&&b&&v)break;return p&&(y&&(m.read=new Proxy({},{get:(i,o)=>(...i)=>{const{args:a,options:c}=d(i);return(0,n.getAction)(r,s.readContract,"readContract")({abi:e,address:t,functionName:o,args:a,...c})}})),b&&(m.simulate=new Proxy({},{get:(i,o)=>(...i)=>{const{args:a,options:s}=d(i);return(0,n.getAction)(r,c.simulateContract,"simulateContract")({abi:e,address:t,functionName:o,args:a,...s})}})),v&&(m.createEventFilter=new Proxy({},{get:(o,a)=>(...o)=>{const s=e.find((e=>"event"===e.type&&e.name===a)),{args:c,options:u}=f(o,s);return(0,n.getAction)(r,i.createContractEventFilter,"createContractEventFilter")({abi:e,address:t,eventName:a,args:c,...u})}}),m.getEvents=new Proxy({},{get:(i,o)=>(...i)=>{const s=e.find((e=>"event"===e.type&&e.name===o)),{args:c,options:u}=f(i,s);return(0,n.getAction)(r,a.getContractEvents,"getContractEvents")({abi:e,address:t,eventName:o,args:c,...u})}}),m.watchEvent=new Proxy({},{get:(i,o)=>(...i)=>{const a=e.find((e=>"event"===e.type&&e.name===o)),{args:s,options:c}=f(i,a);return(0,n.getAction)(r,u.watchContractEvent,"watchContractEvent")({abi:e,address:t,eventName:o,args:s,...c})}}))),g&&b&&(m.write=new Proxy({},{get:(r,i)=>(...r)=>{const{args:o,options:a}=d(r);return(0,n.getAction)(h,l.writeContract,"writeContract")({abi:e,address:t,functionName:i,args:o,...a})}})),(p||g)&&b&&(m.estimateGas=new Proxy({},{get:(i,a)=>(...i)=>{const{args:s,options:c}=d(i),u=r??h;return(0,n.getAction)(u,o.estimateContractGas,"estimateContractGas")({abi:e,address:t,functionName:a,args:s,...c,account:c.account??h.account})}})),m.address=t,m.abi=e,m},t.getFunctionParameters=d,t.getEventParameters=f},146606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRevertErrorData=t.call=void 0;const n=r(157449),i=r(100455),o=r(964970),a=r(192857),s=r(601679),c=r(582054),u=r(608540),l=r(36217),d=r(778849),f=r(214368),h=r(551868),p=r(456941),g=r(575847),m=r(75591),y=r(71526);function b(e){if(!(e instanceof a.BaseError))return;const t=e.walk();return"object"==typeof t.data?t.data.data:t.data}t.call=async function(e,t){const{account:a=e.account,batch:v=Boolean(e.batch?.multicall),blockNumber:w,blockTag:A="latest",accessList:C,data:E,gas:x,gasPrice:S,maxFeePerGas:I,maxPriorityFeePerGas:k,nonce:_,to:T,value:M,...P}=t,j=a?(0,n.parseAccount)(a):void 0;try{(0,y.assertRequest)(t);const r=(w?(0,f.numberToHex)(w):void 0)||A,n=e.chain?.formatters?.transactionRequest?.format,a=(n||g.formatTransactionRequest)({...(0,p.extract)(P,{format:n}),from:j?.address,accessList:C,data:E,gas:x,gasPrice:S,maxFeePerGas:I,maxPriorityFeePerGas:k,nonce:_,to:T,value:M});if(v&&function({request:e}){const{data:t,to:r,...n}=e;return!!t&&(!t.startsWith(o.aggregate3Signature)&&(!!r&&!(Object.values(n).filter((e=>void 0!==e)).length>0)))}({request:a}))try{return await async function(e,t){const{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:o,blockTag:a="latest",data:h,multicallAddress:p,to:g}=t;let y=p;if(!y){if(!e.chain)throw new s.ClientChainNotConfiguredError;y=(0,d.getChainContractAddress)({blockNumber:o,chain:e.chain,contract:"multicall3"})}const b=o?(0,f.numberToHex)(o):void 0,v=b||a,{schedule:w}=(0,m.createBatchScheduler)({id:`${e.uid}.${v}`,wait:n,shouldSplitBatch(e){const t=e.reduce(((e,{data:t})=>e+(t.length-2)),0);return t>2*r},fn:async t=>{const r=t.map((e=>({allowFailure:!0,callData:e.data,target:e.to}))),n=(0,l.encodeFunctionData)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3"}),o=await e.request({method:"eth_call",params:[{data:n,to:y},v]});return(0,u.decodeFunctionResult)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:A,success:C}]=await w({data:h,to:g});if(!C)throw new c.RawContractError({data:A});return"0x"===A?{data:void 0}:{data:A}}(e,{...a,blockNumber:w,blockTag:A})}catch(D){if(!(D instanceof s.ClientChainNotConfiguredError||D instanceof s.ChainDoesNotSupportContract))throw D}const h=await e.request({method:"eth_call",params:r?[a,r]:[a]});return"0x"===h?{data:void 0}:{data:h}}catch(D){const n=b(D),{offchainLookup:i,offchainLookupSignature:o}=await Promise.resolve().then((()=>r(78383)));if(n?.slice(0,10)===o&&T)return{data:await i(e,{data:n,to:T})};throw(0,h.getCallError)(D,{...t,account:j,chain:e.chain})}},t.getRevertErrorData=b},647:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockFilter=void 0;const n=r(659861);t.createBlockFilter=async function(e){const t=(0,n.createFilterRequestScope)(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}},497276:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createContractEventFilter=void 0;const n=r(607873),i=r(214368),o=r(659861);t.createContractEventFilter=async function(e,{address:t,abi:r,args:a,eventName:s,fromBlock:c,strict:u,toBlock:l}){const d=(0,o.createFilterRequestScope)(e,{method:"eth_newFilter"}),f=s?(0,n.encodeEventTopics)({abi:r,args:a,eventName:s}):void 0,h=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof c?(0,i.numberToHex)(c):c,toBlock:"bigint"==typeof l?(0,i.numberToHex)(l):l,topics:f}]});return{abi:r,args:a,eventName:s,id:h,request:d(h),strict:u,type:"event"}}},257398:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEventFilter=void 0;const n=r(607873),i=r(214368),o=r(659861);t.createEventFilter=async function(e,{address:t,args:r,event:a,events:s,fromBlock:c,strict:u,toBlock:l}={}){const d=s??(a?[a]:void 0),f=(0,o.createFilterRequestScope)(e,{method:"eth_newFilter"});let h=[];d&&(h=[d.flatMap((e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:r})))],a&&(h=h[0]));const p=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof c?(0,i.numberToHex)(c):c,toBlock:"bigint"==typeof l?(0,i.numberToHex)(l):l,...h.length?{topics:h}:{}}]});return{abi:d,args:r,eventName:a?a.name:void 0,fromBlock:c,id:p,request:f(p),strict:u,toBlock:l,type:"event"}}},372181:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPendingTransactionFilter=void 0;const n=r(659861);t.createPendingTransactionFilter=async function(e){const t=(0,n.createFilterRequestScope)(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}},503349:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateContractGas=void 0;const n=r(157449),i=r(36217),o=r(868062),a=r(366956),s=r(867787);t.estimateContractGas=async function(e,{abi:t,address:r,args:c,functionName:u,...l}){const d=(0,i.encodeFunctionData)({abi:t,args:c,functionName:u});try{return await(0,a.getAction)(e,s.estimateGas,"estimateGas")({data:d,to:r,...l})}catch(f){const e=l.account?(0,n.parseAccount)(l.account):void 0;throw(0,o.getContractError)(f,{abi:t,address:r,args:c,docsPath:"/docs/contract/estimateContractGas",functionName:u,sender:e?.address})}}},34485:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.internal_estimateFeesPerGas=t.estimateFeesPerGas=void 0;const n=r(973874),i=r(366956),o=r(964774),a=r(851907),s=r(908682);async function c(e,t){const{block:r,chain:c=e.chain,request:u,type:l="eip1559"}=t||{},d=await(async()=>"function"==typeof c?.fees?.baseFeeMultiplier?c.fees.baseFeeMultiplier({block:r,client:e,request:u}):c?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new n.BaseFeeScalarError;const f=10**(d.toString().split(".")[1]?.length??0),h=e=>e*BigInt(Math.ceil(d*f))/BigInt(f),p=r||await(0,i.getAction)(e,a.getBlock,"getBlock")({});if("function"==typeof c?.fees?.estimateFeesPerGas)return c.fees.estimateFeesPerGas({block:r,client:e,multiply:h,request:u,type:l});if("eip1559"===l){if("bigint"!=typeof p.baseFeePerGas)throw new n.Eip1559FeesNotSupportedError;const t=u?.maxPriorityFeePerGas?u.maxPriorityFeePerGas:await(0,o.internal_estimateMaxPriorityFeePerGas)(e,{block:p,chain:c,request:u}),r=h(p.baseFeePerGas);return{maxFeePerGas:u?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:u?.gasPrice??h(await(0,i.getAction)(e,s.getGasPrice,"getGasPrice")({}))}}t.estimateFeesPerGas=async function(e,t){return c(e,t)},t.internal_estimateFeesPerGas=c},867787:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateGas=void 0;const n=r(157449),i=r(307377),o=r(214368),a=r(642515),s=r(456941),c=r(575847),u=r(71526),l=r(887934);t.estimateGas=async function(e,t){const r=t.account??e.account;if(!r)throw new i.AccountNotFoundError({docsPath:"/docs/actions/public/estimateGas"});const d=(0,n.parseAccount)(r);try{const{accessList:r,blockNumber:n,blockTag:i,data:a,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:g,nonce:m,to:y,value:b,...v}="local"===d.type?await(0,l.prepareTransactionRequest)(e,t):t,w=(n?(0,o.numberToHex)(n):void 0)||i;(0,u.assertRequest)(t);const A=e.chain?.formatters?.transactionRequest?.format,C=(A||c.formatTransactionRequest)({...(0,s.extract)(v,{format:A}),from:d.address,accessList:r,data:a,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:g,nonce:m,to:y,value:b}),E=await e.request({method:"eth_estimateGas",params:w?[C,w]:[C]});return BigInt(E)}catch(f){throw(0,a.getEstimateGasError)(f,{...t,account:d,chain:e.chain})}}},964774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.internal_estimateMaxPriorityFeePerGas=t.estimateMaxPriorityFeePerGas=void 0;const n=r(973874),i=r(15987),o=r(366956),a=r(851907),s=r(908682);async function c(e,t){const{block:r,chain:c=e.chain,request:u}=t||{};if("function"==typeof c?.fees?.defaultPriorityFee){const t=r||await(0,o.getAction)(e,a.getBlock,"getBlock")({});return c.fees.defaultPriorityFee({block:t,client:e,request:u})}if(void 0!==c?.fees?.defaultPriorityFee)return c?.fees?.defaultPriorityFee;try{const t=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,i.hexToBigInt)(t)}catch{const[t,i]=await Promise.all([r?Promise.resolve(r):(0,o.getAction)(e,a.getBlock,"getBlock")({}),(0,o.getAction)(e,s.getGasPrice,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new n.Eip1559FeesNotSupportedError;const c=i-t.baseFeePerGas;return c<0n?0n:c}}t.estimateMaxPriorityFeePerGas=async function(e,t){return c(e,t)},t.internal_estimateMaxPriorityFeePerGas=c},816546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBalance=void 0;const n=r(214368);t.getBalance=async function(e,{address:t,blockNumber:r,blockTag:i="latest"}){const o=r?(0,n.numberToHex)(r):void 0,a=await e.request({method:"eth_getBalance",params:[t,o||i]});return BigInt(a)}},851907:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlock=void 0;const n=r(574227),i=r(214368),o=r(483849);t.getBlock=async function(e,{blockHash:t,blockNumber:r,blockTag:a,includeTransactions:s}={}){const c=a??"latest",u=s??!1,l=void 0!==r?(0,i.numberToHex)(r):void 0;let d=null;if(d=t?await e.request({method:"eth_getBlockByHash",params:[t,u]}):await e.request({method:"eth_getBlockByNumber",params:[l||c,u]}),!d)throw new n.BlockNotFoundError({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||o.formatBlock)(d)}},389790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockNumber=t.getBlockNumberCache=void 0;const n=r(517370),i=e=>`blockNumber.${e}`;t.getBlockNumberCache=function(e){return(0,n.getCache)(i(e))},t.getBlockNumber=async function(e,{cacheTime:t=e.cacheTime,maxAge:r}={}){const o=await(0,n.withCache)((()=>e.request({method:"eth_blockNumber"})),{cacheKey:i(e.uid),cacheTime:r??t});return BigInt(o)}},932808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockTransactionCount=void 0;const n=r(15987),i=r(214368);t.getBlockTransactionCount=async function(e,{blockHash:t,blockNumber:r,blockTag:o="latest"}={}){const a=void 0!==r?(0,i.numberToHex)(r):void 0;let s;return s=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[a||o]}),(0,n.hexToNumber)(s)}},663079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBytecode=void 0;const n=r(214368);t.getBytecode=async function(e,{address:t,blockNumber:r,blockTag:i="latest"}){const o=void 0!==r?(0,n.numberToHex)(r):void 0,a=await e.request({method:"eth_getCode",params:[t,o||i]});if("0x"!==a)return a}},659334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChainId=void 0;const n=r(15987);t.getChainId=async function(e){const t=await e.request({method:"eth_chainId"});return(0,n.hexToNumber)(t)}},983619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContractEvents=void 0;const n=r(517706),i=r(366956),o=r(64479);t.getContractEvents=async function(e,{abi:t,address:r,args:a,blockHash:s,eventName:c,fromBlock:u,toBlock:l,strict:d}){const f=c?(0,n.getAbiItem)({abi:t,name:c}):void 0,h=f?void 0:t.filter((e=>"event"===e.type));return(0,i.getAction)(e,o.getLogs,"getLogs")({address:r,args:a,blockHash:s,event:f,events:h,fromBlock:u,toBlock:l,strict:d})}},951064:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeeHistory=void 0;const n=r(214368),i=r(64898);t.getFeeHistory=async function(e,{blockCount:t,blockNumber:r,blockTag:o="latest",rewardPercentiles:a}){const s=r?(0,n.numberToHex)(r):void 0,c=await e.request({method:"eth_feeHistory",params:[(0,n.numberToHex)(t),s||o,a]});return(0,i.formatFeeHistory)(c)}},394589:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterChanges=void 0;const n=r(112060),i=r(538507),o=r(873886);t.getFilterChanges=async function(e,{filter:t}){const r="strict"in t&&t.strict;return(await t.request({method:"eth_getFilterChanges",params:[t.id]})).map((e=>{if("string"==typeof e)return e;try{const{eventName:n,args:a}="abi"in t&&t.abi?(0,i.decodeEventLog)({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return(0,o.formatLog)(e,{args:a,eventName:n})}catch(a){let r,i;if(a instanceof n.DecodeLogDataMismatch||a instanceof n.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;r=a.abiItem.name,i=a.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}return(0,o.formatLog)(e,{args:i?[]:{},eventName:r})}})).filter(Boolean)}},775593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterLogs=void 0;const n=r(112060),i=r(538507),o=r(873886);t.getFilterLogs=async function(e,{filter:t}){const r=t.strict??!1;return(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map((e=>{try{const{eventName:n,args:a}="abi"in t&&t.abi?(0,i.decodeEventLog)({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return(0,o.formatLog)(e,{args:a,eventName:n})}catch(a){let r,i;if(a instanceof n.DecodeLogDataMismatch||a instanceof n.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;r=a.abiItem.name,i=a.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}return(0,o.formatLog)(e,{args:i?[]:{},eventName:r})}})).filter(Boolean)}},908682:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGasPrice=void 0,t.getGasPrice=async function(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}},64479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLogs=void 0;const n=r(112060),i=r(538507),o=r(607873),a=r(214368),s=r(873886);t.getLogs=async function(e,{address:t,blockHash:r,fromBlock:c,toBlock:u,event:l,events:d,args:f,strict:h}={}){const p=h??!1,g=d??(l?[l]:void 0);let m,y=[];return g&&(y=[g.flatMap((e=>(0,o.encodeEventTopics)({abi:[e],eventName:e.name,args:f})))],l&&(y=y[0])),m=r?await e.request({method:"eth_getLogs",params:[{address:t,topics:y,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:y,fromBlock:"bigint"==typeof c?(0,a.numberToHex)(c):c,toBlock:"bigint"==typeof u?(0,a.numberToHex)(u):u}]}),m.map((e=>{try{const{eventName:t,args:r}=g?(0,i.decodeEventLog)({abi:g,data:e.data,topics:e.topics,strict:p}):{eventName:void 0,args:void 0};return(0,s.formatLog)(e,{args:r,eventName:t})}catch(t){let r,i;if(t instanceof n.DecodeLogDataMismatch||t instanceof n.DecodeLogTopicsMismatch){if(p)return;r=t.abiItem.name,i=t.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}return(0,s.formatLog)(e,{args:i?[]:{},eventName:r})}})).filter(Boolean)}},461112:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProof=void 0;const n=r(214368),i=r(643542);t.getProof=async function(e,{address:t,blockNumber:r,blockTag:o,storageKeys:a}){const s=o??"latest",c=void 0!==r?(0,n.numberToHex)(r):void 0,u=await e.request({method:"eth_getProof",params:[t,a,c||s]});return(0,i.formatProof)(u)}},634686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStorageAt=void 0;const n=r(214368);t.getStorageAt=async function(e,{address:t,blockNumber:r,blockTag:i="latest",slot:o}){const a=void 0!==r?(0,n.numberToHex)(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,o,a||i]})}},927182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransaction=void 0;const n=r(88094),i=r(214368),o=r(477100);t.getTransaction=async function(e,{blockHash:t,blockNumber:r,blockTag:a,hash:s,index:c}){const u=a||"latest",l=void 0!==r?(0,i.numberToHex)(r):void 0;let d=null;if(s?d=await e.request({method:"eth_getTransactionByHash",params:[s]}):t?d=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.numberToHex)(c)]}):(l||u)&&(d=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[l||u,(0,i.numberToHex)(c)]})),!d)throw new n.TransactionNotFoundError({blockHash:t,blockNumber:r,blockTag:u,hash:s,index:c});return(e.chain?.formatters?.transaction?.format||o.formatTransaction)(d)}},848910:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionConfirmations=void 0;const n=r(366956),i=r(389790),o=r(927182);t.getTransactionConfirmations=async function(e,{hash:t,transactionReceipt:r}){const[a,s]=await Promise.all([(0,n.getAction)(e,i.getBlockNumber,"getBlockNumber")({}),t?(0,n.getAction)(e,o.getTransaction,"getBlockNumber")({hash:t}):void 0]),c=r?.blockNumber||s?.blockNumber;return c?a-c+1n:0n}},933099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionCount=void 0;const n=r(15987),i=r(214368);t.getTransactionCount=async function(e,{address:t,blockTag:r="latest",blockNumber:o}){const a=await e.request({method:"eth_getTransactionCount",params:[t,o?(0,i.numberToHex)(o):r]});return(0,n.hexToNumber)(a)}},47552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionReceipt=void 0;const n=r(88094),i=r(928490);t.getTransactionReceipt=async function(e,{hash:t}){const r=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!r)throw new n.TransactionReceiptNotFoundError({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||i.formatTransactionReceipt)(r)}},574701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicall=void 0;const n=r(100455),i=r(112060),o=r(192857),a=r(582054),s=r(608540),c=r(36217),u=r(778849),l=r(868062),d=r(366956),f=r(554884);t.multicall=async function(e,t){const{allowFailure:r=!0,batchSize:h,blockNumber:p,blockTag:g,contracts:m,multicallAddress:y}=t,b=h??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024);let v=y;if(!v){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");v=(0,u.getChainContractAddress)({blockNumber:p,chain:e.chain,contract:"multicall3"})}const w=[[]];let A=0,C=0;for(let n=0;n0&&C>b&&w[A].length>0&&(A++,C=(r.length-2)/2,w[A]=[]),w[A]=[...w[A],{allowFailure:!0,callData:r,target:t}]}catch(S){const n=(0,l.getContractError)(S,{abi:e,address:t,args:i,docsPath:"/docs/contract/multicall",functionName:o});if(!r)throw n;w[A]=[...w[A],{allowFailure:!0,callData:"0x",target:t}]}}const E=await Promise.allSettled(w.map((t=>(0,d.getAction)(e,f.readContract,"readContract")({abi:n.multicall3Abi,address:v,args:[t],blockNumber:p,blockTag:g,functionName:"aggregate3"})))),x=[];for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readContract=void 0;const n=r(608540),i=r(36217),o=r(868062),a=r(366956),s=r(146606);t.readContract=async function(e,{abi:t,address:r,args:c,functionName:u,...l}){const d=(0,i.encodeFunctionData)({abi:t,args:c,functionName:u});try{const{data:i}=await(0,a.getAction)(e,s.call,"call")({data:d,to:r,...l});return(0,n.decodeFunctionResult)({abi:t,args:c,functionName:u,data:i||"0x"})}catch(f){throw(0,o.getContractError)(f,{abi:t,address:r,args:c,docsPath:"/docs/contract/readContract",functionName:u})}}},40238:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.simulateContract=void 0;const n=r(157449),i=r(608540),o=r(36217),a=r(868062),s=r(366956),c=r(146606);t.simulateContract=async function(e,{abi:t,address:r,args:u,dataSuffix:l,functionName:d,...f}){const h=f.account?(0,n.parseAccount)(f.account):void 0,p=(0,o.encodeFunctionData)({abi:t,args:u,functionName:d});try{const{data:n}=await(0,s.getAction)(e,c.call,"call")({batch:!1,data:`${p}${l?l.replace("0x",""):""}`,to:r,...f});return{result:(0,i.decodeFunctionResult)({abi:t,args:u,functionName:d,data:n||"0x"}),request:{abi:t,address:r,args:u,dataSuffix:l,functionName:d,...f}}}catch(g){throw(0,a.getContractError)(g,{abi:t,address:r,args:u,docsPath:"/docs/contract/simulateContract",functionName:d,sender:h?.address})}}},712460:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uninstallFilter=void 0,t.uninstallFilter=async function(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}},257463:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyHash=void 0;const n=r(100455),i=r(23289),o=r(582054),a=r(651702),s=r(366956),c=r(419970),u=r(146606);t.verifyHash=async function(e,{address:t,hash:r,signature:l,...d}){const f=(0,c.isHex)(l)?l:(0,c.toHex)(l);try{const{data:o}=await(0,s.getAction)(e,u.call,"call")({data:(0,c.encodeDeployData)({abi:n.universalSignatureValidatorAbi,args:[t,r,f],bytecode:i.universalSignatureValidatorByteCode}),...d});return(0,a.isBytesEqual)(o??"0x0","0x1")}catch(h){if(h instanceof o.CallExecutionError)return!1;throw h}}},58980:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=void 0;const n=r(419970),i=r(257463);t.verifyMessage=async function(e,{address:t,message:r,signature:o,...a}){const s=(0,n.hashMessage)(r);return(0,i.verifyHash)(e,{address:t,hash:s,signature:o,...a})}},895963:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=void 0;const n=r(281835),i=r(257463);t.verifyTypedData=async function(e,{address:t,signature:r,message:o,primaryType:a,types:s,domain:c,...u}){const l=(0,n.hashTypedData)({message:o,primaryType:a,types:s,domain:c});return(0,i.verifyHash)(e,{address:t,hash:l,signature:r,...u})}},408040:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitForTransactionReceipt=void 0;const n=r(574227),i=r(88094),o=r(366956),a=r(767566),s=r(876774),c=r(766527),u=r(851907),l=r(927182),d=r(47552),f=r(592535);t.waitForTransactionReceipt=async function(e,{confirmations:t=1,hash:r,onReplaced:h,pollingInterval:p=e.pollingInterval,timeout:g}){const m=(0,c.stringify)(["waitForTransactionReceipt",e.uid,r]);let y,b,v,w=!1;return new Promise(((c,A)=>{g&&setTimeout((()=>A(new i.WaitForTransactionReceiptTimeoutError({hash:r}))),g);const C=(0,a.observe)(m,{onReplaced:h,resolve:c,reject:A},(a=>{const c=(0,o.getAction)(e,f.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber(f){if(w)return;let h=f;const p=e=>{c(),e(),C()};try{if(v){if(t>1&&(!v.blockNumber||h-v.blockNumber+1na.resolve(v)))}if(y||(w=!0,await(0,s.withRetry)((async()=>{y=await(0,o.getAction)(e,l.getTransaction,"getTransaction")({hash:r}),y.blockNumber&&(h=y.blockNumber)}),{delay:({count:e})=>200*(1<1&&(!v.blockNumber||h-v.blockNumber+1na.resolve(v)))}catch(g){if(y&&(g instanceof i.TransactionNotFoundError||g instanceof i.TransactionReceiptNotFoundError))try{b=y,w=!0;const r=await(0,s.withRetry)((()=>(0,o.getAction)(e,u.getBlock,"getBlock")({blockNumber:h,includeTransactions:!0})),{delay:({count:e})=>200*(1<e instanceof n.BlockNotFoundError});w=!1;const i=r.transactions.find((({from:e,nonce:t})=>e===b.from&&t===b.nonce));if(!i)return;if(v=await(0,o.getAction)(e,d.getTransactionReceipt,"getTransactionReceipt")({hash:i.hash}),t>1&&(!v.blockNumber||h-v.blockNumber+1n{a.onReplaced?.({reason:c,replacedTransaction:b,transaction:i,transactionReceipt:v}),a.resolve(v)}))}catch(m){p((()=>a.reject(m)))}else p((()=>a.reject(g)))}}})}))}))}},592535:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlockNumber=void 0;const n=r(15987),i=r(366956),o=r(767566),a=r(810733),s=r(766527),c=r(389790);t.watchBlockNumber=function(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:u,onError:l,poll:d,pollingInterval:f=e.pollingInterval}){let h;return(void 0!==d?d:"webSocket"!==e.transport.type)?(()=>{const n=(0,s.stringify)(["watchBlockNumber",e.uid,t,r,f]);return(0,o.observe)(n,{onBlockNumber:u,onError:l},(n=>(0,a.poll)((async()=>{try{const t=await(0,i.getAction)(e,c.getBlockNumber,"getBlockNumber")({cacheTime:0});if(h){if(t===h)return;if(t-h>1&&r)for(let e=h+1n;eh)&&(n.onBlockNumber(t,h),h=t)}catch(t){n.onError?.(t)}}),{emitOnBegin:t,interval:f})))})():(()=>{let t=!0,r=()=>t=!1;return(async()=>{try{const{unsubscribe:i}=await e.transport.subscribe({params:["newHeads"],onData(e){if(!t)return;const r=(0,n.hexToBigInt)(e.result?.number);u(r,h),h=r},onError(e){l?.(e)}});r=i,t||r()}catch(i){l?.(i)}})(),r})()}},16469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlocks=void 0;const n=r(483849),i=r(366956),o=r(767566),a=r(810733),s=r(766527),c=r(851907);t.watchBlocks=function(e,{blockTag:t="latest",emitMissed:r=!1,emitOnBegin:u=!1,onBlock:l,onError:d,includeTransactions:f,poll:h,pollingInterval:p=e.pollingInterval}){const g=void 0!==h?h:"webSocket"!==e.transport.type,m=f??!1;let y;return g?(()=>{const n=(0,s.stringify)(["watchBlocks",e.uid,r,u,m,p]);return(0,o.observe)(n,{onBlock:l,onError:d},(n=>(0,a.poll)((async()=>{try{const o=await(0,i.getAction)(e,c.getBlock,"getBlock")({blockTag:t,includeTransactions:m});if(o.number&&y?.number){if(o.number===y.number)return;if(o.number-y.number>1&&r)for(let t=y?.number+1n;ty.number)&&(n.onBlock(o,y),y=o)}catch(o){n.onError?.(o)}}),{emitOnBegin:u,interval:p})))})():(()=>{let t=!0,r=()=>t=!1;return(async()=>{try{const{unsubscribe:i}=await e.transport.subscribe({params:["newHeads"],onData(r){if(!t)return;const i=(e.chain?.formatters?.block?.format||n.formatBlock)(r.result);l(i,y),y=i},onError(e){d?.(e)}});r=i,t||r()}catch(i){d?.(i)}})(),r})()}},395309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchContractEvent=void 0;const n=r(767566),i=r(810733),o=r(766527),a=r(112060),s=r(859577),c=r(538507),u=r(607873),l=r(873886),d=r(366956),f=r(497276),h=r(389790),p=r(983619),g=r(394589),m=r(712460);t.watchContractEvent=function(e,{abi:t,address:r,args:y,batch:b=!0,eventName:v,onError:w,onLogs:A,poll:C,pollingInterval:E=e.pollingInterval,strict:x}){return(void 0!==C?C:"webSocket"!==e.transport.type)?(()=>{const a=(0,o.stringify)(["watchContractEvent",r,y,b,e.uid,v,E]),c=x??!1;return(0,n.observe)(a,{onLogs:A,onError:w},(n=>{let o,a,u=!1;const l=(0,i.poll)((async()=>{if(u)try{let i;if(a)i=await(0,d.getAction)(e,g.getFilterChanges,"getFilterChanges")({filter:a});else{const n=await(0,d.getAction)(e,h.getBlockNumber,"getBlockNumber")({});i=o&&o!==n?await(0,d.getAction)(e,p.getContractEvents,"getContractEvents")({abi:t,address:r,args:y,eventName:v,fromBlock:o+1n,toBlock:n,strict:c}):[],o=n}if(0===i.length)return;if(b)n.onLogs(i);else for(const e of i)n.onLogs([e])}catch(i){a&&i instanceof s.InvalidInputRpcError&&(u=!1),n.onError?.(i)}else{try{a=await(0,d.getAction)(e,f.createContractEventFilter,"createContractEventFilter")({abi:t,address:r,args:y,eventName:v,strict:c})}catch{}u=!0}}),{emitOnBegin:!0,interval:E});return async()=>{a&&await(0,d.getAction)(e,m.uninstallFilter,"uninstallFilter")({filter:a}),l()}}))})():(()=>{let n=!0,i=()=>n=!1;return(async()=>{try{const o=v?(0,u.encodeEventTopics)({abi:t,eventName:v,args:y}):[],{unsubscribe:s}=await e.transport.subscribe({params:["logs",{address:r,topics:o}],onData(e){if(!n)return;const r=e.result;try{const{eventName:e,args:n}=(0,c.decodeEventLog)({abi:t,data:r.data,topics:r.topics,strict:x}),i=(0,l.formatLog)(r,{args:n,eventName:e});A([i])}catch(i){let e,t;if(i instanceof a.DecodeLogDataMismatch||i instanceof a.DecodeLogTopicsMismatch){if(x)return;e=i.abiItem.name,t=i.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}const n=(0,l.formatLog)(r,{args:t?[]:{},eventName:e});A([n])}},onError(e){w?.(e)}});i=s,n||i()}catch(o){w?.(o)}})(),i})()}},854091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchEvent=void 0;const n=r(767566),i=r(810733),o=r(766527),a=r(112060),s=r(859577),c=r(366956),u=r(419970),l=r(257398),d=r(389790),f=r(394589),h=r(64479),p=r(712460);t.watchEvent=function(e,{address:t,args:r,batch:g=!0,event:m,events:y,onError:b,onLogs:v,poll:w,pollingInterval:A=e.pollingInterval,strict:C}){const E=void 0!==w?w:"webSocket"!==e.transport.type,x=C??!1;return E?(()=>{const a=(0,o.stringify)(["watchEvent",t,r,g,e.uid,m,A]);return(0,n.observe)(a,{onLogs:v,onError:b},(n=>{let o,a,u=!1;const b=(0,i.poll)((async()=>{if(u)try{let i;if(a)i=await(0,c.getAction)(e,f.getFilterChanges,"getFilterChanges")({filter:a});else{const n=await(0,c.getAction)(e,d.getBlockNumber,"getBlockNumber")({});i=o&&o!==n?await(0,c.getAction)(e,h.getLogs,"getLogs")({address:t,args:r,event:m,events:y,fromBlock:o+1n,toBlock:n}):[],o=n}if(0===i.length)return;if(g)n.onLogs(i);else for(const e of i)n.onLogs([e])}catch(i){a&&i instanceof s.InvalidInputRpcError&&(u=!1),n.onError?.(i)}else{try{a=await(0,c.getAction)(e,l.createEventFilter,"createEventFilter")({address:t,args:r,event:m,events:y,strict:x})}catch{}u=!0}}),{emitOnBegin:!0,interval:A});return async()=>{a&&await(0,c.getAction)(e,p.uninstallFilter,"uninstallFilter")({filter:a}),b()}}))})():(()=>{let n=!0,i=()=>n=!1;return(async()=>{try{const o=y??(m?[m]:void 0);let s=[];o&&(s=[o.flatMap((e=>(0,u.encodeEventTopics)({abi:[e],eventName:e.name,args:r})))],m&&(s=s[0]));const{unsubscribe:c}=await e.transport.subscribe({params:["logs",{address:t,topics:s}],onData(e){if(!n)return;const t=e.result;try{const{eventName:e,args:r}=(0,u.decodeEventLog)({abi:o,data:t.data,topics:t.topics,strict:x}),n=(0,u.formatLog)(t,{args:r,eventName:e});v([n])}catch(r){let e,n;if(r instanceof a.DecodeLogDataMismatch||r instanceof a.DecodeLogTopicsMismatch){if(C)return;e=r.abiItem.name,n=r.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}const i=(0,u.formatLog)(t,{args:n?[]:{},eventName:e});v([i])}},onError(e){b?.(e)}});i=c,n||i()}catch(o){b?.(o)}})(),i})()}},21841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchPendingTransactions=void 0;const n=r(366956),i=r(767566),o=r(810733),a=r(766527),s=r(372181),c=r(394589),u=r(712460);t.watchPendingTransactions=function(e,{batch:t=!0,onError:r,onTransactions:l,poll:d,pollingInterval:f=e.pollingInterval}){return(void 0!==d?d:"webSocket"!==e.transport.type)?(()=>{const d=(0,a.stringify)(["watchPendingTransactions",e.uid,t,f]);return(0,i.observe)(d,{onTransactions:l,onError:r},(r=>{let i;const a=(0,o.poll)((async()=>{try{if(!i)try{return void(i=await(0,n.getAction)(e,s.createPendingTransactionFilter,"createPendingTransactionFilter")({}))}catch(o){throw a(),o}const u=await(0,n.getAction)(e,c.getFilterChanges,"getFilterChanges")({filter:i});if(0===u.length)return;if(t)r.onTransactions(u);else for(const e of u)r.onTransactions([e])}catch(o){r.onError?.(o)}}),{emitOnBegin:!0,interval:f});return async()=>{i&&await(0,n.getAction)(e,u.uninstallFilter,"uninstallFilter")({filter:i}),a()}}))})():(()=>{let t=!0,n=()=>t=!1;return(async()=>{try{const{unsubscribe:i}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!t)return;const r=e.result;l([r])},onError(e){r?.(e)}});n=i,t||n()}catch(i){r?.(i)}})(),n})()}},764138:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dropTransaction=void 0,t.dropTransaction=async function(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}},997390:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dumpState=void 0,t.dumpState=async function(e){return e.request({method:`${e.mode}_dumpState`})}},618117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAutomine=void 0,t.getAutomine=async function(e){return"ganache"===e.mode?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}},165686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolContent=void 0,t.getTxpoolContent=async function(e){return await e.request({method:"txpool_content"})}},886725:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolStatus=void 0;const n=r(15987);t.getTxpoolStatus=async function(e){const{pending:t,queued:r}=await e.request({method:"txpool_status"});return{pending:(0,n.hexToNumber)(t),queued:(0,n.hexToNumber)(r)}}},479313:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.impersonateAccount=void 0,t.impersonateAccount=async function(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}},194128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.increaseTime=void 0;const n=r(214368);t.increaseTime=async function(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[(0,n.numberToHex)(t)]})}},67407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inspectTxpool=void 0,t.inspectTxpool=async function(e){return await e.request({method:"txpool_inspect"})}},901372:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadState=void 0,t.loadState=async function(e,{state:t}){await e.request({method:`${e.mode}_loadState`,params:[t]})}},192738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mine=void 0;const n=r(214368);t.mine=async function(e,{blocks:t,interval:r}){"ganache"===e.mode?await e.request({method:"evm_mine",params:[{blocks:(0,n.numberToHex)(t)}]}):await e.request({method:`${e.mode}_mine`,params:[(0,n.numberToHex)(t),(0,n.numberToHex)(r||0)]})}},436899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeBlockTimestampInterval=void 0,t.removeBlockTimestampInterval=async function(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}},639566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reset=void 0,t.reset=async function(e,{blockNumber:t,jsonRpcUrl:r}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:r}}]})}},822339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.revert=void 0,t.revert=async function(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}},215706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendUnsignedTransaction=void 0;const n=r(456941),i=r(575847);t.sendUnsignedTransaction=async function(e,t){const{accessList:r,data:o,from:a,gas:s,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:l,nonce:d,to:f,value:h,...p}=t,g=e.chain?.formatters?.transactionRequest?.format,m=(g||i.formatTransactionRequest)({...(0,n.extract)(p,{format:g}),accessList:r,data:o,from:a,gas:s,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:l,nonce:d,to:f,value:h});return await e.request({method:"eth_sendUnsignedTransaction",params:[m]})}},62569:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setAutomine=void 0,t.setAutomine=async function(e,t){"ganache"===e.mode?t?await e.request({method:"miner_start"}):await e.request({method:"miner_stop"}):await e.request({method:"evm_setAutomine",params:[t]})}},509409:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBalance=void 0;const n=r(214368);t.setBalance=async function(e,{address:t,value:r}){"ganache"===e.mode?await e.request({method:"evm_setAccountBalance",params:[t,(0,n.numberToHex)(r)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,(0,n.numberToHex)(r)]})}},800144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockGasLimit=void 0;const n=r(214368);t.setBlockGasLimit=async function(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[(0,n.numberToHex)(t)]})}},914695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockTimestampInterval=void 0,t.setBlockTimestampInterval=async function(e,{interval:t}){const r="hardhat"===e.mode?1e3*t:t;await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[r]})}},608196:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setCode=void 0,t.setCode=async function(e,{address:t,bytecode:r}){await e.request({method:`${e.mode}_setCode`,params:[t,r]})}},316521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setCoinbase=void 0,t.setCoinbase=async function(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}},260692:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setIntervalMining=void 0,t.setIntervalMining=async function(e,{interval:t}){const r="hardhat"===e.mode?1e3*t:t;await e.request({method:"evm_setIntervalMining",params:[r]})}},692415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setLoggingEnabled=void 0,t.setLoggingEnabled=async function(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}},479295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setMinGasPrice=void 0;const n=r(214368);t.setMinGasPrice=async function(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[(0,n.numberToHex)(t)]})}},260072:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockBaseFeePerGas=void 0;const n=r(214368);t.setNextBlockBaseFeePerGas=async function(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[(0,n.numberToHex)(t)]})}},940191:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockTimestamp=void 0;const n=r(214368);t.setNextBlockTimestamp=async function(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[(0,n.numberToHex)(t)]})}},913046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNonce=void 0;const n=r(214368);t.setNonce=async function(e,{address:t,nonce:r}){await e.request({method:`${e.mode}_setNonce`,params:[t,(0,n.numberToHex)(r)]})}},671261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setRpcUrl=void 0,t.setRpcUrl=async function(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}},791509:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageAt=void 0;const n=r(214368);t.setStorageAt=async function(e,{address:t,index:r,value:i}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,"number"==typeof r?(0,n.numberToHex)(r):r,i]})}},673289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.snapshot=void 0,t.snapshot=async function(e){return await e.request({method:"evm_snapshot"})}},792e3:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopImpersonatingAccount=void 0,t.stopImpersonatingAccount=async function(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}},630598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addChain=void 0;const n=r(214368);t.addChain=async function(e,{chain:t}){const{id:r,name:i,nativeCurrency:o,rpcUrls:a,blockExplorers:s}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,n.numberToHex)(r),chainName:i,nativeCurrency:o,rpcUrls:a.default.http,blockExplorerUrls:s?Object.values(s).map((({url:e})=>e)):void 0}]})}},571827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deployContract=void 0;const n=r(981618),i=r(634514);t.deployContract=function(e,{abi:t,args:r,bytecode:o,...a}){const s=(0,n.encodeDeployData)({abi:t,args:r,bytecode:o});return(0,i.sendTransaction)(e,{...a,data:s})}},736186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddresses=void 0;const n=r(115257);t.getAddresses=async function(e){return"local"===e.account?.type?[e.account.address]:(await e.request({method:"eth_accounts"})).map((e=>(0,n.checksumAddress)(e)))}},690450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPermissions=void 0,t.getPermissions=async function(e){return await e.request({method:"wallet_getPermissions"})}},887934:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareTransactionRequest=void 0;const n=r(157449),i=r(34485),o=r(867787),a=r(851907),s=r(933099),c=r(307377),u=r(973874),l=r(366956),d=r(71526),f=r(933105);t.prepareTransactionRequest=async function(e,t){const{account:r=e.account,chain:h,gas:p,nonce:g,type:m}=t;if(!r)throw new c.AccountNotFoundError;const y=(0,n.parseAccount)(r),b=await(0,l.getAction)(e,a.getBlock,"getBlock")({blockTag:"latest"}),v={...t,from:y.address};if(void 0===g&&(v.nonce=await(0,l.getAction)(e,s.getTransactionCount,"getTransactionCount")({address:y.address,blockTag:"pending"})),void 0===m)try{v.type=(0,f.getTransactionType)(v)}catch{v.type="bigint"==typeof b.baseFeePerGas?"eip1559":"legacy"}if("eip1559"===v.type){const{maxFeePerGas:r,maxPriorityFeePerGas:n}=await(0,i.internal_estimateFeesPerGas)(e,{block:b,chain:h,request:v});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestAddresses=void 0;const n=r(115257);t.requestAddresses=async function(e){return(await e.request({method:"eth_requestAccounts"})).map((e=>(0,n.getAddress)(e)))}},561205:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestPermissions=void 0,t.requestPermissions=async function(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}},278930:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendRawTransaction=void 0,t.sendRawTransaction=async function(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]})}},634514:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendTransaction=void 0;const n=r(157449),i=r(307377),o=r(755014),a=r(726214),s=r(456941),c=r(575847),u=r(366956),l=r(71526),d=r(659334),f=r(887934),h=r(278930);t.sendTransaction=async function(e,t){const{account:r=e.account,chain:p=e.chain,accessList:g,data:m,gas:y,gasPrice:b,maxFeePerGas:v,maxPriorityFeePerGas:w,nonce:A,to:C,value:E,...x}=t;if(!r)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});const S=(0,n.parseAccount)(r);try{let r;if((0,l.assertRequest)(t),null!==p&&(r=await(0,u.getAction)(e,d.getChainId,"getChainId")({}),(0,o.assertCurrentChain)({currentChainId:r,chain:p})),"local"===S.type){const t=await(0,u.getAction)(e,f.prepareTransactionRequest,"prepareTransactionRequest")({account:S,accessList:g,chain:p,data:m,gas:y,gasPrice:b,maxFeePerGas:v,maxPriorityFeePerGas:w,nonce:A,to:C,value:E,...x});r||(r=await(0,u.getAction)(e,d.getChainId,"getChainId")({}));const n=p?.serializers?.transaction,i=await S.signTransaction({...t,chainId:r},{serializer:n});return await(0,u.getAction)(e,h.sendRawTransaction,"sendRawTransaction")({serializedTransaction:i})}const n=e.chain?.formatters?.transactionRequest?.format,i=(n||c.formatTransactionRequest)({...(0,s.extract)(x,{format:n}),accessList:g,data:m,from:S.address,gas:y,gasPrice:b,maxFeePerGas:v,maxPriorityFeePerGas:w,nonce:A,to:C,value:E});return await e.request({method:"eth_sendTransaction",params:[i]})}catch(I){throw(0,a.getTransactionError)(I,{...t,account:S,chain:t.chain||void 0})}}},455504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signMessage=void 0;const n=r(157449),i=r(307377),o=r(214368);t.signMessage=async function(e,{account:t=e.account,message:r}){if(!t)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});const a=(0,n.parseAccount)(t);if("local"===a.type)return a.signMessage({message:r});const s="string"==typeof r?(0,o.stringToHex)(r):r.raw instanceof Uint8Array?(0,o.toHex)(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,a.address]})}},737859:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signTransaction=void 0;const n=r(157449),i=r(307377),o=r(755014),a=r(575847),s=r(366956),c=r(419970),u=r(71526),l=r(659334);t.signTransaction=async function(e,t){const{account:r=e.account,chain:d=e.chain,...f}=t;if(!r)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});const h=(0,n.parseAccount)(r);(0,u.assertRequest)({account:h,...t});const p=await(0,s.getAction)(e,l.getChainId,"getChainId")({});null!==d&&(0,o.assertCurrentChain)({currentChainId:p,chain:d});const g=d?.formatters||e.chain?.formatters,m=g?.transactionRequest?.format||a.formatTransactionRequest;return"local"===h.type?h.signTransaction({...f,chainId:p},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...m(f),chainId:(0,c.numberToHex)(p),from:h.address}]})}},433327:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signTypedData=void 0;const n=r(157449),i=r(307377),o=r(771482),a=r(766527),s=r(72318);t.signTypedData=async function(e,{account:t=e.account,domain:r,message:c,primaryType:u,types:l}){if(!t)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});const d=(0,n.parseAccount)(t),f={EIP712Domain:(0,s.getTypesForEIP712Domain)({domain:r}),...l};if((0,s.validateTypedData)({domain:r,message:c,primaryType:u,types:f}),"local"===d.type)return d.signTypedData({domain:r,primaryType:u,types:f,message:c});const h=(0,a.stringify)({domain:r??{},primaryType:u,types:f,message:c},((e,t)=>(0,o.isHex)(t)?t.toLowerCase():t));return e.request({method:"eth_signTypedData_v4",params:[d.address,h]})}},903413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchChain=void 0;const n=r(214368);t.switchChain=async function(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,n.numberToHex)(t)}]})}},492775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchAsset=void 0,t.watchAsset=async function(e,t){return await e.request({method:"wallet_watchAsset",params:t})}},721609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.writeContract=void 0;const n=r(36217),i=r(366956),o=r(634514);t.writeContract=async function(e,{abi:t,address:r,args:a,dataSuffix:s,functionName:c,...u}){const l=(0,n.encodeFunctionData)({abi:t,args:a,functionName:c});return await(0,i.getAction)(e,o.sendTransaction,"sendTransaction")({data:`${l}${s?s.replace("0x",""):""}`,to:r,...u})}},226586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formattersCelo=void 0;const n=r(15987),i=r(214368),o=r(483849),a=r(477100),s=r(575847),c=r(313408);t.formattersCelo={block:(0,o.defineBlock)({exclude:["difficulty","gasLimit","mixHash","nonce","uncles"],format(e){const t=e.transactions?.map((e=>"string"==typeof e?e:{...(0,a.formatTransaction)(e),feeCurrency:e.feeCurrency,..."0x7b"!==e.type?{gatewayFee:e.gatewayFee?(0,n.hexToBigInt)(e.gatewayFee):null,gatewayFeeRecipient:e.gatewayFeeRecipient||null}:{}}));return{randomness:e.randomness,transactions:t}}}),transaction:(0,a.defineTransaction)({format(e){const t={feeCurrency:e.feeCurrency};return"0x7b"===e.type?t.type="cip64":("0x7c"===e.type&&(t.type="cip42"),t.gatewayFee=e.gatewayFee?(0,n.hexToBigInt)(e.gatewayFee):null,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}}),transactionRequest:(0,s.defineTransactionRequest)({format(e){const t={feeCurrency:e.feeCurrency};return(0,c.isCIP64)(e)?t.type="0x7b":((0,c.isCIP42)(e)&&(t.type="0x7c"),t.gatewayFee=void 0!==e.gatewayFee?(0,i.numberToHex)(e.gatewayFee):void 0,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}})}},227904:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertTransactionCIP64=t.assertTransactionCIP42=t.serializersCelo=t.serializeTransactionCelo=void 0;const n=r(79746),i=r(192857),o=r(601679),a=r(585296),s=r(208305),c=r(283755),u=r(939415),l=r(214368),d=r(246915),f=r(706653),h=r(823067),p=r(313408);t.serializeTransactionCelo=(e,t)=>(0,p.isCIP64)(e)?function(e,t){y(e);const{chainId:r,gas:n,nonce:i,to:o,value:a,maxFeePerGas:s,maxPriorityFeePerGas:h,accessList:p,feeCurrency:g,data:m}=e,b=[(0,l.toHex)(r),i?(0,l.toHex)(i):"0x",h?(0,l.toHex)(h):"0x",s?(0,l.toHex)(s):"0x",n?(0,l.toHex)(n):"0x",o??"0x",a?(0,l.toHex)(a):"0x",m??"0x",(0,f.serializeAccessList)(p),g];t&&b.push(27n===t.v?"0x":(0,l.toHex)(1),(0,u.trim)(t.r),(0,u.trim)(t.s));return(0,c.concatHex)(["0x7b",(0,d.toRlp)(b)])}(e,t):(0,p.isCIP42)(e)?function(e,t){m(e);const{chainId:r,gas:n,nonce:i,to:o,value:a,maxFeePerGas:s,maxPriorityFeePerGas:h,accessList:p,feeCurrency:g,gatewayFeeRecipient:y,gatewayFee:b,data:v}=e,w=[(0,l.toHex)(r),i?(0,l.toHex)(i):"0x",h?(0,l.toHex)(h):"0x",s?(0,l.toHex)(s):"0x",n?(0,l.toHex)(n):"0x",g??"0x",y??"0x",b?(0,l.toHex)(b):"0x",o??"0x",a?(0,l.toHex)(a):"0x",v??"0x",(0,f.serializeAccessList)(p)];t&&w.push(27n===t.v?"0x":(0,l.toHex)(1),(0,u.trim)(t.r),(0,u.trim)(t.s));return(0,c.concatHex)(["0x7c",(0,d.toRlp)(w)])}(e,t):(0,h.serializeTransaction)(e,t),t.serializersCelo={transaction:t.serializeTransactionCelo};const g=2n**256n-1n;function m(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:u,to:l,feeCurrency:d,gatewayFee:f,gatewayFeeRecipient:h}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(c)throw new i.BaseError("`gasPrice` is not a valid CIP-42 Transaction attribute.");if((0,p.isPresent)(u)&&u>g)throw new a.FeeCapTooHighError({maxFeePerGas:u});if((0,p.isPresent)(r)&&(0,p.isPresent)(u)&&r>u)throw new a.TipAboveFeeCapError({maxFeePerGas:u,maxPriorityFeePerGas:r});if((0,p.isPresent)(f)&&(0,p.isEmpty)(h)||(0,p.isPresent)(h)&&(0,p.isEmpty)(f))throw new i.BaseError("`gatewayFee` and `gatewayFeeRecipient` must be provided together.");if((0,p.isPresent)(d)&&!(0,s.isAddress)(d))throw new i.BaseError("`feeCurrency` MUST be a token address for CIP-42 transactions.");if((0,p.isPresent)(h)&&!(0,s.isAddress)(h))throw new n.InvalidAddressError(h);if((0,p.isEmpty)(d)&&(0,p.isEmpty)(h))throw new i.BaseError("Either `feeCurrency` or `gatewayFeeRecipient` must be provided for CIP-42 transactions.")}function y(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:u,to:l,feeCurrency:d}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(c)throw new i.BaseError("`gasPrice` is not a valid CIP-64 Transaction attribute.");if((0,p.isPresent)(u)&&u>g)throw new a.FeeCapTooHighError({maxFeePerGas:u});if((0,p.isPresent)(r)&&(0,p.isPresent)(u)&&r>u)throw new a.TipAboveFeeCapError({maxFeePerGas:u,maxPriorityFeePerGas:r});if((0,p.isPresent)(d)&&!(0,s.isAddress)(d))throw new i.BaseError("`feeCurrency` MUST be a token address for CIP-64 transactions.");if((0,p.isEmpty)(d))throw new i.BaseError("`feeCurrency` must be provided for CIP-64 transactions.")}t.assertTransactionCIP42=m,t.assertTransactionCIP64=y},313408:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCIP64=t.isCIP42=t.isEIP1559=t.isPresent=t.isEmpty=void 0;const n=r(939415);function i(e){return 0===e||0n===e||null==e||"0"===e||""===e||"string"==typeof e&&("0x"===(0,n.trim)(e).toLowerCase()||"0x00"===(0,n.trim)(e).toLowerCase())}function o(e){return!i(e)}function a(e){return o(e.maxFeePerGas)&&o(e.maxPriorityFeePerGas)}t.isEmpty=i,t.isPresent=o,t.isEIP1559=a,t.isCIP42=function(e){return"cip42"===e.type||a(e)&&(o(e.feeCurrency)||o(e.gatewayFeeRecipient)||o(e.gatewayFee))},t.isCIP64=function(e){return"cip64"===e.type||a(e)&&o(e.feeCurrency)&&i(e.gatewayFee)&&i(e.gatewayFeeRecipient)}},144162:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.acala=void 0;const n=r(293300);t.acala=(0,n.defineChain)({id:787,name:"Acala",network:"acala",nativeCurrency:{name:"Acala",symbol:"ACA",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]},default:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]}},blockExplorers:{default:{name:"Acala Blockscout",url:"https://blockscout.acala.network"}},testnet:!1})},879130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arbitrum=void 0;const n=r(293300);t.arbitrum=(0,n.defineChain)({id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}})},245952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arbitrumGoerli=void 0;const n=r(293300);t.arbitrumGoerli=(0,n.defineChain)({id:421613,name:"Arbitrum Goerli",network:"arbitrum-goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-goerli.g.alchemy.com/v2"],webSocket:["wss://arb-goerli.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-goerli.infura.io/v3"],webSocket:["wss://arbitrum-goerli.infura.io/ws/v3"]},default:{http:["https://goerli-rollup.arbitrum.io/rpc"]},public:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://goerli.arbiscan.io"},default:{name:"Arbiscan",url:"https://goerli.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0})},296816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arbitrumNova=void 0;const n=r(293300);t.arbitrumNova=(0,n.defineChain)({id:42170,name:"Arbitrum Nova",network:"arbitrum-nova",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{blast:{http:["https://arbitrum-nova.public.blastapi.io"],webSocket:["wss://arbitrum-nova.public.blastapi.io"]},default:{http:["https://nova.arbitrum.io/rpc"]},public:{http:["https://nova.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://nova.arbiscan.io"},blockScout:{name:"BlockScout",url:"https://nova-explorer.arbitrum.io/"},default:{name:"Arbiscan",url:"https://nova.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1746963}}})},809337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arbitrumSepolia=void 0;const n=r(293300);t.arbitrumSepolia=(0,n.defineChain)({id:421614,name:"Arbitrum Sepolia",network:"arbitrum-sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-sepolia.g.alchemy.com/v2"],webSocket:["wss://arb-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]},public:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://sepolia.arbiscan.io"},default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0})},682785:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.astar=void 0;const n=r(293300);t.astar=(0,n.defineChain)({id:592,name:"Astar",network:"astar-mainnet",nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},rpcUrls:{public:{http:["https://astar.api.onfinality.io/public"]},default:{http:["https://astar.api.onfinality.io/public"]}},blockExplorers:{default:{name:"Astar Subscan",url:"https://astar.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:761794}},testnet:!1})},615965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.astarZkatana=void 0;const n=r(293300);t.astarZkatana=(0,n.defineChain)({id:1261120,name:"Astar zkEVM Testnet zKatana",network:"zKatana",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zkatana.gelato.digital","https://rpc.startale.com/zkatana"]},public:{http:["https://rpc.zkatana.gelato.digital","https://rpc.startale.com/zkatana"]}},blockExplorers:{blockscout:{name:"Blockscout zKatana chain explorer",url:"https://zkatana.blockscout.com"},default:{name:"zKatana Explorer",url:"https://zkatana.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:31317}},testnet:!0})},893392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aurora=void 0;const n=r(293300);t.aurora=(0,n.defineChain)({id:1313161554,name:"Aurora",network:"aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{infura:{http:["https://aurora-mainnet.infura.io/v3"]},default:{http:["https://mainnet.aurora.dev"]},public:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{etherscan:{name:"Aurorascan",url:"https://aurorascan.dev"},default:{name:"Aurorascan",url:"https://aurorascan.dev"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:62907816}}})},888397:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auroraTestnet=void 0;const n=r(293300);t.auroraTestnet=(0,n.defineChain)({id:1313161555,name:"Aurora Testnet",network:"aurora-testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{infura:{http:["https://aurora-testnet.infura.io/v3"]},default:{http:["https://testnet.aurora.dev"]},public:{http:["https://testnet.aurora.dev"]}},blockExplorers:{etherscan:{name:"Aurorascan",url:"https://testnet.aurorascan.dev"},default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev"}},testnet:!0})},71535:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.avalanche=void 0;const n=r(293300);t.avalanche=(0,n.defineChain)({id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}})},212547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.avalancheFuji=void 0;const n=r(293300);t.avalancheFuji=(0,n.defineChain)({id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0})},226054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bahamut=void 0;const n=r(293300);t.bahamut=(0,n.defineChain)({id:5165,network:"bahamut",name:"Bahamut",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.bahamut.io","https://bahamut.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut.publicnode.com","wss://ws2.sahara.bahamutchain.com"]},public:{http:["https://rpc1.bahamut.io","https://bahamut.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut.publicnode.com","wss://ws2.sahara.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://www.ftnscan.com"}}})},817345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base=void 0;const n=r(293300),i=r(445343);t.base=(0,n.defineChain)({id:8453,network:"base",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-mainnet.g.alchemy.com/v2"],webSocket:["wss://base-mainnet.g.alchemy.com/v2"]},infura:{http:["https://base-mainnet.infura.io/v3"],webSocket:["wss://base-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{blockscout:{name:"Basescout",url:"https://base.blockscout.com"},default:{name:"Basescan",url:"https://basescan.org"},etherscan:{name:"Basescan",url:"https://basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022}}},{formatters:i.formattersOptimism})},152051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.baseGoerli=void 0;const n=r(293300),i=r(445343);t.baseGoerli=(0,n.defineChain)({id:84531,network:"base-goerli",name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-goerli.g.alchemy.com/v2"],webSocket:["wss://base-goerli.g.alchemy.com/v2"]},default:{http:["https://goerli.base.org"]},public:{http:["https://goerli.base.org"]}},blockExplorers:{etherscan:{name:"Basescan",url:"https://goerli.basescan.org"},default:{name:"Basescan",url:"https://goerli.basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988}},testnet:!0,sourceId:5},{formatters:i.formattersOptimism})},582360:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.baseSepolia=void 0;const n=r(293300),i=r(445343);t.baseSepolia=(0,n.defineChain)({id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-sepolia.g.alchemy.com/v2"],webSocket:["wss://base-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia.base.org"]},public:{http:["https://sepolia.base.org"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"},default:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"}},testnet:!0,sourceId:11155111},{formatters:i.formattersOptimism})},480833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bearNetworkChainMainnet=void 0;const n=r(293300);t.bearNetworkChainMainnet=(0,n.defineChain)({id:641230,name:"Bear Network Chain Mainnet",network:"BearNetworkChainMainnet",nativeCurrency:{decimals:18,name:"BearNetworkChain",symbol:"BRNKC"},rpcUrls:{public:{http:["https://brnkc-mainnet.bearnetwork.net"]},default:{http:["https://brnkc-mainnet.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkScan",url:"https://brnkscan.bearnetwork.net"}}})},539686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bearNetworkChainTestnet=void 0;const n=r(293300);t.bearNetworkChainTestnet=(0,n.defineChain)({id:751230,name:"Bear Network Chain Testnet",network:"BearNetworkChainTestnet",nativeCurrency:{decimals:18,name:"tBRNKC",symbol:"tBRNKC"},rpcUrls:{public:{http:["https://brnkc-test.bearnetwork.net"]},default:{http:["https://brnkc-test.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkTestScan",url:"https://brnktest-scan.bearnetwork.net"}},testnet:!0})},791615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitTorrent=void 0;const n=r(293300);t.bitTorrent=(0,n.defineChain)({id:199,name:"BitTorrent",network:"bittorrent-chain-mainnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://rpc.bittorrentchain.io"]},public:{http:["https://rpc.bittorrentchain.io"]}},blockExplorers:{etherscan:{name:"Bttcscan",url:"https://bttcscan.com"},default:{name:"Bttcscan",url:"https://bttcscan.com"}}})},960628:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitTorrentTestnet=void 0;const n=r(293300);t.bitTorrentTestnet=(0,n.defineChain)({id:1028,name:"BitTorrent Chain Testnet",network:"bittorrent-chain-testnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://testrpc.bittorrentchain.io"]},public:{http:["https://testrpc.bittorrentchain.io"]}},blockExplorers:{etherscan:{name:"Bttcscan",url:"https://testnet.bttcscan.com"},default:{name:"Bttcscan",url:"https://testnet.bttcscan.com"}},testnet:!0})},290938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boba=void 0;const n=r(293300);t.boba=(0,n.defineChain)({id:288,name:"Boba Network",network:"boba",nativeCurrency:{decimals:18,name:"Boba",symbol:"BOBA"},rpcUrls:{default:{http:["https://mainnet.boba.network"]},public:{http:["https://mainnet.boba.network"]}},blockExplorers:{etherscan:{name:"BOBAScan",url:"https://bobascan.com"},default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}})},377287:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bronos=void 0;const n=r(293300);t.bronos=(0,n.defineChain)({id:1039,name:"Bronos",network:"bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]},public:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}})},727036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bronosTestnet=void 0;const n=r(293300);t.bronosTestnet=(0,n.defineChain)({id:1038,name:"Bronos Testnet",network:"bronos-testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]},public:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0})},484938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bsc=void 0;const n=r(293300);t.bsc=(0,n.defineChain)({id:56,name:"BNB Smart Chain",network:"bsc",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]},public:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}})},60267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bscTestnet=void 0;const n=r(293300);t.bscTestnet=(0,n.defineChain)({id:97,name:"Binance Smart Chain Testnet",network:"bsc-testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]},public:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://testnet.bscscan.com"},default:{name:"BscScan",url:"https://testnet.bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0})},175342:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bxn=void 0;const n=r(293300);t.bxn=(0,n.defineChain)({id:4999,name:"BlackFort Exchange Network",network:"bxn",nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},rpcUrls:{default:{http:["https://mainnet.blackfort.network/rpc"]},public:{http:["https://mainnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.blackfort.network"}}})},13255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bxnTestnet=void 0;const n=r(293300);t.bxnTestnet=(0,n.defineChain)({id:4777,name:"BlackFort Exchange Network Testnet",network:"bxnTestnet",nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},rpcUrls:{default:{http:["https://testnet.blackfort.network/rpc"]},public:{http:["https://testnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.blackfort.network"}}})},424869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canto=void 0;const n=r(293300);t.canto=(0,n.defineChain)({id:7700,name:"Canto",network:"canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]},public:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}})},192381:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.celo=void 0;const n=r(293300),i=r(226586),o=r(227904);t.celo=(0,n.defineChain)({id:42220,name:"Celo",network:"celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]},infura:{http:["https://celo-mainnet.infura.io/v3"]},public:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet"},etherscan:{name:"CeloScan",url:"https://celoscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1},{formatters:i.formattersCelo,serializers:o.serializersCelo})},485358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.celoAlfajores=void 0;const n=r(293300),i=r(226586),o=r(227904);t.celoAlfajores=(0,n.defineChain)({id:44787,name:"Alfajores",network:"celo-alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]},infura:{http:["https://celo-alfajores.infura.io/v3"]},public:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores"},etherscan:{name:"CeloScan",url:"https://alfajores.celoscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001}},testnet:!0},{formatters:i.formattersCelo,serializers:o.serializersCelo})},89607:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.celoCannoli=void 0;const n=r(293300),i=r(226586),o=r(227904);t.celoCannoli=(0,n.defineChain)({id:17323,name:"Cannoli",network:"celo-cannoli",nativeCurrency:{decimals:18,name:"CELO",symbol:"C-CELO"},rpcUrls:{default:{http:["https://forno.cannoli.celo-testnet.org"]},public:{http:["https://forno.cannoli.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/cannoli"}},contracts:{multicall3:{address:"0x5Acb0aa8BF4E8Ff0d882Ee187140713C12BF9718",blockCreated:87429}},testnet:!0},{formatters:i.formattersCelo,serializers:o.serializersCelo})},275645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chiliz=void 0;const n=r(293300);t.chiliz=(0,n.defineChain)({id:88888,name:"Chiliz Chain",network:"chiliz-chain",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://rpc.ankr.com/chiliz","https://chiliz.publicnode.com"]},public:{http:["https://rpc.ankr.com/chiliz","https://chiliz.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"https://scan.chiliz.com"}}})},701334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classic=void 0;const n=r(293300);t.classic=(0,n.defineChain)({id:61,name:"Ethereum Classic",network:"classic",nativeCurrency:{decimals:18,name:"ETC",symbol:"ETC"},rpcUrls:{default:{http:["https://etc.rivet.link"]},public:{http:["https://etc.rivet.link"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.com/etc/mainnet"}}})},672218:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.confluxESpace=void 0;const n=r(293300);t.confluxESpace=(0,n.defineChain)({id:1030,name:"Conflux eSpace",network:"cfx-espace",nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evm.confluxrpc.org"],webSocket:["wss://evm.confluxrpc.org/ws"]},public:{http:["https://evm.confluxrpc.org"],webSocket:["wss://evm.confluxrpc.org/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evm.confluxscan.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:68602935}}})},353179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.confluxESpaceTestnet=void 0;const n=r(293300);t.confluxESpaceTestnet=(0,n.defineChain)({id:71,name:"Conflux eSpace Testnet",network:"cfx-espace-testnet",testnet:!0,nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evmtestnet.confluxrpc.org"],webSocket:["wss://evmtestnet.confluxrpc.org/ws"]},public:{http:["https://evmtestnet.confluxrpc.org"],webSocket:["wss://evmtestnet.confluxrpc.org/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evmtestnet.confluxscan.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:117499050}}})},911063:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coreDao=void 0;const n=r(293300);t.coreDao=(0,n.defineChain)({id:1116,name:"Core Dao",network:"coreDao",nativeCurrency:{decimals:18,name:"Core",symbol:"CORE"},rpcUrls:{public:{http:["https://rpc.coredao.org"]},default:{http:["https://rpc.coredao.org"]}},blockExplorers:{default:{name:"CoreDao",url:"https://scan.coredao.org"},etherscan:{name:"CoreDao",url:"https://scan.coredao.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11907934}},testnet:!1})},26314:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cronos=void 0;const n=r(293300);t.cronos=(0,n.defineChain)({id:25,name:"Cronos Mainnet",network:"cronos",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://evm.cronos.org"]},public:{http:["https://evm.cronos.org"]}},blockExplorers:{default:{name:"Cronoscan",url:"https://cronoscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}})},986283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cronosTestnet=void 0;const n=r(293300);t.cronosTestnet=(0,n.defineChain)({id:338,name:"Cronos Testnet",network:"cronos-testnet",nativeCurrency:{decimals:18,name:"CRO",symbol:"tCRO"},rpcUrls:{default:{http:["https://evm-t3.cronos.org"]},public:{http:["https://evm-t3.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://cronos.org/explorer/testnet3"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:10191251}},testnet:!0})},413147:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crossbell=void 0;const n=r(293300);t.crossbell=(0,n.defineChain)({id:3737,network:"crossbell",name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]},public:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:38246031}}})},56361:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dfk=void 0;const n=r(293300);t.dfk=(0,n.defineChain)({id:53935,name:"DFK Chain",network:"dfk",nativeCurrency:{decimals:18,name:"Jewel",symbol:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]},public:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{etherscan:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"},default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}}})},919412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dogechain=void 0;const n=r(293300);t.dogechain=(0,n.defineChain)({id:2e3,name:"Dogechain",network:"dogechain",nativeCurrency:{decimals:18,name:"Dogechain",symbol:"DC"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]},public:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{etherscan:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog"},default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog"}}})},281192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgeware=void 0;const n=r(293300);t.edgeware=(0,n.defineChain)({id:2021,name:"Edgeware EdgeEVM Mainnet",network:"edgeware",nativeCurrency:{decimals:18,name:"Edgeware",symbol:"EDG"},rpcUrls:{default:{http:["https://edgeware-evm.jelliedowl.net"]},public:{http:["https://edgeware-evm.jelliedowl.net"]}},blockExplorers:{etherscan:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live"},default:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18117872}}})},357637:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgewareTestnet=void 0;const n=r(293300);t.edgewareTestnet=(0,n.defineChain)({id:2022,name:"Beresheet BereEVM Testnet",network:"edgewareTestnet",nativeCurrency:{decimals:18,name:"Testnet EDG",symbol:"tEDG"},rpcUrls:{default:{http:["https://beresheet-evm.jelliedowl.net"]},public:{http:["https://beresheet-evm.jelliedowl.net"]}},blockExplorers:{etherscan:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live"},default:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live"}}})},338875:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ekta=void 0;const n=r(293300);t.ekta=(0,n.defineChain)({id:1994,name:"Ekta",network:"ekta",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{public:{http:["https://main.ekta.io"]},default:{http:["https://main.ekta.io"]}},blockExplorers:{default:{name:"Ektascan",url:"https://ektascan.io"}}})},440568:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ektaTestnet=void 0;const n=r(293300);t.ektaTestnet=(0,n.defineChain)({id:1004,name:"Ekta Testnet",network:"ekta-testnet",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{public:{http:["https://test.ekta.io:8545"]},default:{http:["https://test.ekta.io:8545"]}},blockExplorers:{default:{name:"Test Ektascan",url:"https://test.ektascan.io"}},testnet:!0})},545291:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eos=void 0;const n=r(293300);t.eos=(0,n.defineChain)({id:17777,name:"EOS EVM",network:"eos",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.evm.eosnetwork.com"]},public:{http:["https://api.evm.eosnetwork.com"]}},blockExplorers:{etherscan:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com"},default:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7943933}}})},321128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eosTestnet=void 0;const n=r(293300);t.eosTestnet=(0,n.defineChain)({id:15557,name:"EOS EVM Testnet",network:"eos",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.testnet.evm.eosnetwork.com"]},public:{http:["https://api.testnet.evm.eosnetwork.com"]}},blockExplorers:{etherscan:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com"},default:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9067940}},testnet:!0})},891438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evmos=void 0;const n=r(293300);t.evmos=(0,n.defineChain)({id:9001,name:"Evmos",network:"evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]},public:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}})},69895:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evmosTestnet=void 0;const n=r(293300);t.evmosTestnet=(0,n.defineChain)({id:9e3,name:"Evmos Testnet",network:"evmos-testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]},public:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}}})},326095:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fantom=void 0;const n=r(293300);t.fantom=(0,n.defineChain)({id:250,name:"Fantom",network:"fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.ankr.com/fantom"]},public:{http:["https://rpc.ankr.com/fantom"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://ftmscan.com"},default:{name:"FTMScan",url:"https://ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}})},448392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fantomSonicTestnet=void 0;const n=r(293300);t.fantomSonicTestnet=(0,n.defineChain)({id:64240,name:"Fantom Sonic Open Testnet",network:"fantom-sonic-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpcapi.sonic.fantom.network"]},public:{http:["https://rpcapi.sonic.fantom.network"]}},blockExplorers:{default:{name:"Fantom Sonic Open Testnet Explorer",url:"https://public-sonic.fantom.network"}},testnet:!0})},632804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fantomTestnet=void 0;const n=r(293300);t.fantomTestnet=(0,n.defineChain)({id:4002,name:"Fantom Testnet",network:"fantom-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]},public:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://testnet.ftmscan.com"},default:{name:"FTMScan",url:"https://testnet.ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}}})},949054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fibo=void 0;const n=r(293300);t.fibo=(0,n.defineChain)({id:12306,name:"Fibo Chain",network:"fibochain",nativeCurrency:{decimals:18,name:"fibo",symbol:"FIBO"},rpcUrls:{default:{http:["https://network.hzroc.art"]},public:{http:["https://network.hzroc.art"]}},blockExplorers:{default:{name:"FiboScan",url:"https://scan.fibochain.org"}}})},340819:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filecoin=void 0;const n=r(293300);t.filecoin=(0,n.defineChain)({id:314,name:"Filecoin Mainnet",network:"filecoin-mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]},public:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"},filscan:{name:"Filscan",url:"https://filscan.io"},filscout:{name:"Filscout",url:"https://filscout.io/en"},glif:{name:"Glif",url:"https://explorer.glif.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328594}}})},520703:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filecoinCalibration=void 0;const n=r(293300);t.filecoinCalibration=(0,n.defineChain)({id:314159,name:"Filecoin Calibration",network:"filecoin-calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]},public:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}}})},183783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filecoinHyperspace=void 0;const n=r(293300);t.filecoinHyperspace=(0,n.defineChain)({id:3141,name:"Filecoin Hyperspace",network:"filecoin-hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]},public:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"},filscan:{name:"Filscan",url:"https://hyperspace.filscan.io"}}})},567386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flare=void 0;const n=r(293300);t.flare=(0,n.defineChain)({id:14,name:"Flare Mainnet",network:"flare-mainnet",nativeCurrency:{decimals:18,name:"flare",symbol:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]},public:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network"}}})},5915:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flareTestnet=void 0;const n=r(293300);t.flareTestnet=(0,n.defineChain)({id:114,name:"Coston2",network:"coston2",nativeCurrency:{decimals:18,name:"coston2flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]},public:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network"}},testnet:!0})},494331:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.foundry=void 0;const n=r(293300);t.foundry=(0,n.defineChain)({id:31337,name:"Foundry",network:"foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}})},346777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fuse=void 0;const n=r(293300);t.fuse=(0,n.defineChain)({id:122,name:"Fuse",network:"fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]},public:{http:["https://rpc.fuse.io"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:16146628}}})},738425:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fuseSparknet=void 0;const n=r(293300);t.fuseSparknet=(0,n.defineChain)({id:123,name:"Fuse Sparknet",network:"fuse",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]},public:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io"}}})},804663:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gnosis=void 0;const n=r(293300);t.gnosis=(0,n.defineChain)({id:100,name:"Gnosis",network:"gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]},public:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{etherscan:{name:"Gnosisscan",url:"https://gnosisscan.io"},default:{name:"Gnosis Chain Explorer",url:"https://blockscout.com/xdai/mainnet"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}})},413643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gnosisChiado=void 0;const n=r(293300);t.gnosisChiado=(0,n.defineChain)({id:10200,name:"Gnosis Chiado",network:"chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]},public:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4967313}},testnet:!0})},536103:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gobi=void 0;const n=r(293300);t.gobi=(0,n.defineChain)({id:1663,name:"Horizen Gobi Testnet",network:"gobi",nativeCurrency:{decimals:18,name:"Test ZEN",symbol:"tZEN"},rpcUrls:{public:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]},default:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"Gobi Explorer",url:"https://gobi-explorer.horizen.io"}},contracts:{},testnet:!0})},380482:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.goerli=void 0;const n=r(293300);t.goerli=(0,n.defineChain)({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0})},7781:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.haqqMainnet=void 0;const n=r(293300);t.haqqMainnet=(0,n.defineChain)({id:11235,name:"HAQQ Mainnet",network:"haqq-mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]},public:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network"}}})},463180:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.haqqTestedge2=void 0;const n=r(293300);t.haqqTestedge2=(0,n.defineChain)({id:54211,name:"HAQQ Testedge 2",network:"haqq-testedge-2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]},public:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network"}}})},531828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hardhat=void 0;const n=r(293300);t.hardhat=(0,n.defineChain)({id:31337,name:"Hardhat",network:"hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"]}}})},349006:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.harmonyOne=void 0;const n=r(293300);t.harmonyOne=(0,n.defineChain)({id:16666e5,name:"Harmony One",network:"harmony",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{public:{http:["https://rpc.ankr.com/harmony"]},default:{http:["https://rpc.ankr.com/harmony"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}})},107137:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.holesky=void 0;const n=r(293300);t.holesky=(0,n.defineChain)({id:17e3,network:"holesky",name:"Holesky",nativeCurrency:{name:"Holesky Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky.publicnode.com"]},public:{http:["https://ethereum-holesky.publicnode.com"]}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:77}},testnet:!0})},729735:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iotex=void 0;const n=r(293300);t.iotex=(0,n.defineChain)({id:4689,name:"IoTeX",network:"iotex",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]},public:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}}})},816252:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iotexTestnet=void 0;const n=r(293300);t.iotexTestnet=(0,n.defineChain)({id:4690,name:"IoTeX Testnet",network:"iotex-testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]},public:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}}})},240031:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jbc=void 0;const n=r(293300);t.jbc=(0,n.defineChain)({id:8899,name:"JIBCHAIN L1",network:"jbc",nativeCurrency:{name:"JBC",symbol:"JBC",decimals:18},rpcUrls:{default:{http:["https://rpc-l1.jibchain.net"]},public:{http:["https://rpc-l1.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-l1.jibchain.net"}},contracts:{multicall3:{address:"0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC",blockCreated:2299048}},testnet:!1})},439080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.karura=void 0;const n=r(293300);t.karura=(0,n.defineChain)({id:686,name:"Karura",network:"karura",nativeCurrency:{name:"Karura",symbol:"KAR",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]},default:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]}},blockExplorers:{default:{name:"Karura Blockscout",url:"https://blockscout.karura.network"}},testnet:!1})},261677:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kava=void 0;const n=r(293300);t.kava=(0,n.defineChain)({id:2222,name:"Kava EVM",network:"kava-mainnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{public:{http:["https://evm.kava.io"]},default:{http:["https://evm.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Explorer",url:"https://kavascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3661165}},testnet:!1})},309254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kavaTestnet=void 0;const n=r(293300);t.kavaTestnet=(0,n.defineChain)({id:2221,name:"Kava EVM Testnet",network:"kava-testnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{public:{http:["https://evm.testnet.kava.io"]},default:{http:["https://evm.testnet.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Testnet Explorer",url:"https://testnet.kavascan.com/"}},contracts:{multicall3:{address:"0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6",blockCreated:7242179}},testnet:!0})},930059:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.klaytn=void 0;const n=r(293300);t.klaytn=(0,n.defineChain)({id:8217,name:"Klaytn",network:"klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-cypress.klaytn.net"]},public:{http:["https://public-en-cypress.klaytn.net"]}},blockExplorers:{etherscan:{name:"KlaytnScope",url:"https://scope.klaytn.com"},default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}})},782576:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.klaytnBaobab=void 0;const n=r(293300);t.klaytnBaobab=(0,n.defineChain)({id:1001,name:"Klaytn Baobab Testnet",network:"klaytn-baobab",nativeCurrency:{decimals:18,name:"Baobab Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-baobab.klaytn.net"]},public:{http:["https://public-en-baobab.klaytn.net"]}},blockExplorers:{etherscan:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"},default:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0})},212402:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kroma=void 0;const n=r(293300);t.kroma=(0,n.defineChain)({id:255,network:"kroma",name:"Kroma",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.kroma.network"]},public:{http:["https://api.kroma.network"]}},blockExplorers:{default:{name:"Kroma Explorer",url:"https://blockscout.kroma.network"}},testnet:!1})},536049:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kromaSepolia=void 0;const n=r(293300);t.kromaSepolia=(0,n.defineChain)({id:2358,network:"kroma-sepolia",name:"Kroma Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.sepolia.kroma.network"]},public:{http:["https://api.sepolia.kroma.network"]}},blockExplorers:{default:{name:"Kroma Sepolia Explorer",url:"https://blockscout.sepolia.kroma.network"}},testnet:!0})},34295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.linea=void 0;const n=r(293300);t.linea=(0,n.defineChain)({id:59144,name:"Linea Mainnet",network:"linea-mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-mainnet.infura.io/v3"],webSocket:["wss://linea-mainnet.infura.io/ws/v3"]},default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.linea.build"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42}},testnet:!1})},293068:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineaTestnet=void 0;const n=r(293300);t.lineaTestnet=(0,n.defineChain)({id:59140,name:"Linea Goerli Testnet",network:"linea-testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-goerli.infura.io/v3"],webSocket:["wss://linea-goerli.infura.io/ws/v3"]},default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]},public:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build"},etherscan:{name:"Etherscan",url:"https://goerli.lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.goerli.linea.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0})},357299:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localhost=void 0;const n=r(293300);t.localhost=(0,n.defineChain)({id:1337,name:"Localhost",network:"localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"]}}})},507496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lukso=void 0;const n=r(293300);t.lukso=(0,n.defineChain)({id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]},public:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network"}}})},170662:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mainnet=void 0;const n=r(293300);t.mainnet=(0,n.defineChain)({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},411726:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mandala=void 0;const n=r(293300);t.mandala=(0,n.defineChain)({id:595,name:"Mandala TC9",network:"mandala",nativeCurrency:{name:"Mandala",symbol:"mACA",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]},default:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]}},blockExplorers:{default:{name:"Mandala Blockscout",url:"https://blockscout.mandala.aca-staging.network"}},testnet:!0})},371049:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.manta=void 0;const n=r(293300);t.manta=(0,n.defineChain)({id:169,name:"Manta Pacific Mainnet",network:"manta",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.manta.network/http"]},public:{http:["https://pacific-rpc.manta.network/http"]}},blockExplorers:{etherscan:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network"},default:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:332890}}})},362730:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mantaTestnet=void 0;const n=r(293300);t.mantaTestnet=(0,n.defineChain)({id:3441005,name:"Manta Pacific Testnet",network:"manta-testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://manta-testnet.calderachain.xyz/http"]},public:{http:["https://manta-testnet.calderachain.xyz/http"]}},blockExplorers:{etherscan:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network"},default:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network"}},contracts:{multicall3:{address:"0x211B1643b95Fe76f11eD8880EE810ABD9A4cf56C",blockCreated:419915}},testnet:!0})},713719:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mantle=void 0;const n=r(293300);t.mantle=(0,n.defineChain)({id:5e3,name:"Mantle",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]},public:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"},default:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}})},349900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mantleTestnet=void 0;const n=r(293300);t.mantleTestnet=(0,n.defineChain)({id:5001,name:"Mantle Testnet",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.testnet.mantle.xyz"]},public:{http:["https://rpc.testnet.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz"},default:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz"}},testnet:!0})},471391:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.meter=void 0;const n=r(293300);t.meter=(0,n.defineChain)({id:82,name:"Meter",network:"meter",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpc.meter.io"]},public:{http:["https://rpc.meter.io"]}},blockExplorers:{default:{name:"MeterScan",url:"https://scan.meter.io"}}})},123092:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.meterTestnet=void 0;const n=r(293300);t.meterTestnet=(0,n.defineChain)({id:83,name:"Meter Testnet",network:"meter-testnet",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpctest.meter.io"]},public:{http:["https://rpctest.meter.io"]}},blockExplorers:{default:{name:"MeterTestnetScan",url:"https://scan-warringstakes.meter.io"}}})},271788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.metis=void 0;const n=r(293300);t.metis=(0,n.defineChain)({id:1088,name:"Metis",network:"andromeda",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://andromeda.metis.io/?owner=1088"]},public:{http:["https://andromeda.metis.io/?owner=1088"]}},blockExplorers:{default:{name:"Andromeda Explorer",url:"https://andromeda-explorer.metis.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}})},173254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.metisGoerli=void 0;const n=r(293300);t.metisGoerli=(0,n.defineChain)({id:599,name:"Metis Goerli",network:"metis-goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]},public:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}}})},375018:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mev=void 0;const n=r(293300);t.mev=(0,n.defineChain)({id:7518,network:"MEVerse",name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]},public:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:86881340}}})},706827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mevTestnet=void 0;const n=r(293300);t.mevTestnet=(0,n.defineChain)({id:4759,network:"MEVerse Testnet",name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]},public:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:64371115}},testnet:!0})},339520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.modeTestnet=void 0;const n=r(293300);t.modeTestnet=(0,n.defineChain)({id:919,name:"Mode Testnet",network:"mode-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.mode.network"]},public:{http:["https://sepolia.mode.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.mode.network"}},contracts:{multicall3:{address:"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF",blockCreated:3019007}},testnet:!0})},708170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moonbaseAlpha=void 0;const n=r(293300);t.moonbaseAlpha=(0,n.defineChain)({id:1287,name:"Moonbase Alpha",network:"moonbase-alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]},public:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonbase.moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0})},647054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moonbeam=void 0;const n=r(293300);t.moonbeam=(0,n.defineChain)({id:1284,name:"Moonbeam",network:"moonbeam",nativeCurrency:{decimals:18,name:"GLMR",symbol:"GLMR"},rpcUrls:{public:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]},default:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1})},92283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moonbeamDev=void 0;const n=r(293300);t.moonbeamDev=(0,n.defineChain)({id:1281,name:"Moonbeam Development Node",network:"development",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]},public:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]}}})},581139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moonriver=void 0;const n=r(293300);t.moonriver=(0,n.defineChain)({id:1285,name:"Moonriver",network:"moonriver",nativeCurrency:{decimals:18,name:"MOVR",symbol:"MOVR"},rpcUrls:{public:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]},default:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonriver.moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1})},753274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.neonDevnet=void 0;const n=r(293300);t.neonDevnet=(0,n.defineChain)({id:245022926,network:"neonDevnet",name:"Neon EVM DevNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://devnet.neonevm.org"]},public:{http:["https://devnet.neonevm.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://devnet.neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:205206112}},testnet:!0})},992618:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.neonMainnet=void 0;const n=r(293300);t.neonMainnet=(0,n.defineChain)({id:245022934,network:"neonMainnet",name:"Neon EVM MainNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://neon-proxy-mainnet.solana.p2p.org"]},public:{http:["https://neon-proxy-mainnet.solana.p2p.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://neonscan.org"}},contracts:{},testnet:!1})},367634:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nexi=void 0;const n=r(293300);t.nexi=(0,n.defineChain)({id:4242,name:"Nexi",network:"nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]},public:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{etherscan:{name:"NexiScan",url:"https://www.nexiscan.com"},default:{name:"NexiScan",url:"https://www.nexiscan.com"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:25770160}}})},277001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nexilix=void 0;const n=r(293300);t.nexilix=(0,n.defineChain)({id:240,name:"Nexilix Smart Chain",network:"nexilix",nativeCurrency:{decimals:18,name:"Nexilix",symbol:"NEXILIX"},rpcUrls:{default:{http:["https://rpcurl.pos.nexilix.com"]},public:{http:["https://rpcurl.pos.nexilix.com"]}},blockExplorers:{etherscan:{name:"NexilixScan",url:"https://scan.nexilix.com"},default:{name:"NexilixScan",url:"https://scan.nexilix.com"}},contracts:{multicall3:{address:"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244",blockCreated:74448}}})},640128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oasisTestnet=void 0;const n=r(293300);t.oasisTestnet=(0,n.defineChain)({id:4090,network:"oasis-testnet",name:"Oasis Testnet",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.oasis.bahamutchain.com"]},public:{http:["https://rpc1.oasis.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://oasis.ftnscan.com"}},testnet:!0})},147123:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oasys=void 0;const n=r(293300);t.oasys=(0,n.defineChain)({id:248,name:"Oasys",network:"oasys",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.oasys.games"]},public:{http:["https://rpc.mainnet.oasys.games"]}},blockExplorers:{default:{name:"OasysScan",url:"https://scan.oasys.games"}}})},379501:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.okc=void 0;const n=r(293300);t.okc=(0,n.defineChain)({id:66,name:"OKC",network:"okc",nativeCurrency:{decimals:18,name:"OKT",symbol:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]},public:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10364792}}})},288565:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opBNB=void 0;const n=r(293300);t.opBNB=(0,n.defineChain)({id:204,name:"opBNB",network:"opBNB Mainnet",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{public:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]},default:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://mainnet.opbnbscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:512881}}})},267790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opBNBTestnet=void 0;const n=r(293300);t.opBNBTestnet=(0,n.defineChain)({id:5611,name:"opBNB Testnet",network:"opBNB Testnet",nativeCurrency:{decimals:18,name:"tBNB",symbol:"tBNB"},rpcUrls:{public:{http:["https://opbnb-testnet-rpc.bnbchain.org"]},default:{http:["https://opbnb-testnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://testnet.opbnbscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3705108}},testnet:!0})},606786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optimism=void 0;const n=r(293300),i=r(445343);t.optimism=(0,n.defineChain)({id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},{formatters:i.formattersOptimism})},690744:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optimismGoerli=void 0;const n=r(293300),i=r(445343);t.optimismGoerli=(0,n.defineChain)({id:420,name:"Optimism Goerli",network:"optimism-goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-goerli.g.alchemy.com/v2"],webSocket:["wss://opt-goerli.g.alchemy.com/v2"]},infura:{http:["https://optimism-goerli.infura.io/v3"],webSocket:["wss://optimism-goerli.infura.io/ws/v3"]},default:{http:["https://goerli.optimism.io"]},public:{http:["https://goerli.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"},default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461}},testnet:!0},{formatters:i.formattersOptimism})},264737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optimismSepolia=void 0;const n=r(293300),i=r(445343);t.optimismSepolia=(0,n.defineChain)({id:11155420,name:"Optimism Sepolia",network:"optimism-sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-sepolia.g.alchemy.com/v2"],webSocket:["wss://opt-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia.optimism.io"]},public:{http:["https://sepolia.optimism.io"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"},default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204}},testnet:!0},{formatters:i.formattersOptimism})},700235:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pgn=void 0;const n=r(293300),i=r(445343);t.pgn=(0,n.defineChain)({id:424,network:"pgn",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.publicgoods.network"]},public:{http:["https://rpc.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Explorer",url:"https://explorer.publicgoods.network"},blocksout:{name:"PGN Explorer",url:"https://explorer.publicgoods.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3380209}}},{formatters:i.formattersOptimism})},767272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pgnTestnet=void 0;const n=r(293300),i=r(445343);t.pgnTestnet=(0,n.defineChain)({id:58008,network:"pgn-testnet",name:"PGN ",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.publicgoods.network"]},public:{http:["https://sepolia.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network"},blocksout:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3754925}},testnet:!0},{formatters:i.formattersOptimism})},490495:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.plinga=void 0;const n=r(293300);t.plinga=(0,n.defineChain)({id:242,name:"Plinga",network:"plinga",nativeCurrency:{name:"Plinga",symbol:"PLINGA",decimals:18},rpcUrls:{default:{http:["https://rpcurl.mainnet.plgchain.com"]},public:{http:["https://rpcurl.mainnet.plgchain.com"]}},blockExplorers:{default:{name:"Plgscan",url:"https://www.plgscan.com"}},contracts:{multicall3:{address:"0x0989576160f2e7092908BB9479631b901060b6e4",blockCreated:204489}}})},453672:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygon=void 0;const n=r(293300);t.polygon=(0,n.defineChain)({id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}})},226227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygonMumbai=void 0;const n=r(293300);t.polygonMumbai=(0,n.defineChain)({id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/polygon_mumbai"]},public:{http:["https://rpc.ankr.com/polygon_mumbai"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0})},187269:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygonZkEvm=void 0;const n=r(293300);t.polygonZkEvm=(0,n.defineChain)({id:1101,name:"Polygon zkEVM",network:"polygon-zkevm",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]},public:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}})},87806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygonZkEvmTestnet=void 0;const n=r(293300);t.polygonZkEvmTestnet=(0,n.defineChain)({id:1442,name:"Polygon zkEVM Testnet",network:"polygon-zkevm-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]},public:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://explorer.public.zkevm-test.net"},default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}})},446374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pulsechain=void 0;const n=r(293300);t.pulsechain=(0,n.defineChain)({id:369,network:"pulsechain",name:"PulseChain",nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]},public:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.pulsechain.com"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},586964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pulsechainV4=void 0;const n=r(293300);t.pulsechainV4=(0,n.defineChain)({id:943,network:"pulsechainV4",name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]},public:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},492493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.qMainnet=void 0;const n=r(293300);t.qMainnet=(0,n.defineChain)({id:35441,name:"Q Mainnet",network:"q-mainnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.q.org"]},public:{http:["https://rpc.q.org"]}},blockExplorers:{default:{name:"Q Mainnet Explorer",url:"https://explorer.q.org"}}})},258570:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.qTestnet=void 0;const n=r(293300);t.qTestnet=(0,n.defineChain)({id:35443,name:"Q Testnet",network:"q-testnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.qtestnet.org"]},public:{http:["https://rpc.qtestnet.org"]}},blockExplorers:{default:{name:"Q Testnet Explorer",url:"https://explorer.qtestnet.org"}},testnet:!0})},217714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rollux=void 0;const n=r(293300);t.rollux=(0,n.defineChain)({id:570,name:"Rollux Mainnet",network:"rollux",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.rollux.com"],webSocket:["wss://rpc.rollux.com/wss"]},public:{http:["https://rollux.public-rpc.com"]}},blockExplorers:{default:{name:"RolluxExplorer",url:"https://explorer.rollux.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:119222}}})},524659:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rolluxTestnet=void 0;const n=r(293300);t.rolluxTestnet=(0,n.defineChain)({id:57e3,name:"Rollux Testnet",network:"rollux-testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc-tanenbaum.rollux.com/"],webSocket:["wss://rpc-tanenbaum.rollux.com/wss"]},public:{http:["https://rpc-tanenbaum.rollux.com/"]}},blockExplorers:{default:{name:"RolluxTestnetExplorer",url:"https://rollux.tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1813675}}})},585242:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ronin=void 0;const n=r(293300);t.ronin=(0,n.defineChain)({id:2020,name:"Ronin",network:"ronin",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://api.roninchain.com/rpc"]},public:{http:["https://api.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Ronin Explorer",url:"https://app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:26023535}}})},793848:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rootstock=void 0;const n=r(293300);t.rootstock=(0,n.defineChain)({id:30,name:"Rootstock Mainnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"RBTC"},rpcUrls:{public:{http:["https://public-node.rsk.co"]},default:{http:["https://public-node.rsk.co"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://rootstock.blockscout.com"},default:{name:"RSK Explorer",url:"https://explorer.rsk.co"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4249540}}})},652377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saigon=void 0;const n=r(293300);t.saigon=(0,n.defineChain)({id:2021,name:"Saigon Testnet",network:"saigon",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://saigon-testnet.roninchain.com/rpc"]},public:{http:["https://saigon-testnet.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Saigon Explorer",url:"https://saigon-explorer.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18736871}},testnet:!0})},102282:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sapphire=void 0;const n=r(293300);t.sapphire=(0,n.defineChain)({id:23294,name:"Oasis Sapphire",network:"sapphire",nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},rpcUrls:{default:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]},public:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]}},blockExplorers:{default:{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:734531}}})},251051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sapphireTestnet=void 0;const n=r(293300);t.sapphireTestnet=(0,n.defineChain)({id:23295,name:"Oasis Sapphire Testnet",network:"sapphire-testnet",nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},rpcUrls:{default:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]},public:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev"}},testnet:!0})},476229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scroll=void 0;const n=r(293300);t.scroll=(0,n.defineChain)({id:534352,name:"Scroll",network:"scroll",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]},public:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com"},blockscout:{name:"Blockscout",url:"https://blockscout.scroll.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1})},457436:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scrollSepolia=void 0;const n=r(293300);t.scrollSepolia=(0,n.defineChain)({id:534351,name:"Scroll Sepolia",network:"scroll-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"]},public:{http:["https://sepolia-rpc.scroll.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.scroll.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9473}},testnet:!0})},129918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scrollTestnet=void 0;const n=r(293300);t.scrollTestnet=(0,n.defineChain)({id:534353,name:"Scroll Testnet",network:"scroll-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]},public:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.scroll.io"}},testnet:!0})},732787:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sepolia=void 0;const n=r(293300);t.sepolia=(0,n.defineChain)({id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x21B000Fd62a880b2125A61e36a284BB757b76025",blockCreated:3914906}},testnet:!0})},357819:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shardeumSphinx=void 0;const n=r(293300);t.shardeumSphinx=(0,n.defineChain)({id:8082,name:"Shardeum Sphinx",network:"shmSphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]},public:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0})},255882:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shibarium=void 0;const n=r(293300);t.shibarium=(0,n.defineChain)({id:109,name:"Shibarium",network:"shibarium",nativeCurrency:{name:"Bone",symbol:"BONE",decimals:18},rpcUrls:{default:{http:["https://rpc.shibrpc.com"]},public:{http:["https://rpc.shibrpc.com"]}},blockExplorers:{etherscan:{name:"Blockscout",url:"https://shibariumscan.io"},default:{name:"Blockscout",url:"https://shibariumscan.io"}},contracts:{multicall3:{address:"0x864Bf681ADD6052395188A89101A1B37d3B4C961",blockCreated:265900}}})},398225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimmer=void 0;const n=r(293300);t.shimmer=(0,n.defineChain)({id:148,name:"Shimmer",network:"shimmer",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{public:{http:["https://json-rpc.evm.shimmer.network"]},default:{http:["https://json-rpc.evm.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.shimmer.network"}}})},561682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimmerTestnet=void 0;const n=r(293300);t.shimmerTestnet=(0,n.defineChain)({id:1073,name:"Shimmer Testnet",network:"shimmer-testnet",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{public:{http:["https://json-rpc.evm.testnet.shimmer.network"]},default:{http:["https://json-rpc.evm.testnet.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.testnet.shimmer.network"}},testnet:!0})},701855:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleBlockBrawlers=void 0;const n=r(293300);t.skaleBlockBrawlers=(0,n.defineChain)({id:391845894,name:"SKALE | Block Brawlers",network:"skale-brawl",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]},public:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}})},271536:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleCalypso=void 0;const n=r(293300);t.skaleCalypso=(0,n.defineChain)({id:1564830818,name:"SKALE | Calypso NFT Hub",network:"skale-calypso",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]},public:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3107626}}})},767597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleCalypsoTestnet=void 0;const n=r(293300);t.skaleCalypsoTestnet=(0,n.defineChain)({id:344106930,name:"SKALE | Calypso NFT Hub Testnet",network:"skale-calypso-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-utter-unripe-menkar"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-utter-unripe-menkar"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2131424}},testnet:!0})},379272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleChaosTestnet=void 0;const n=r(293300);t.skaleChaosTestnet=(0,n.defineChain)({id:1351057110,name:"SKALE | Chaos Testnet",network:"skale-chaos-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-fast-active-bellatrix"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-fast-active-bellatrix"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1192202}},testnet:!0})},650417:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleCryptoBlades=void 0;const n=r(293300);t.skaleCryptoBlades=(0,n.defineChain)({id:1026062157,name:"SKALE | CryptoBlades",network:"skale-cryptoblades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]},public:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}})},671514:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleCryptoColosseum=void 0;const n=r(293300);t.skaleCryptoColosseum=(0,n.defineChain)({id:2046399126,name:"SKALE | Crypto Colosseum",network:"skale-crypto-coloseeum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]},public:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}})},104501:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleEuropa=void 0;const n=r(293300);t.skaleEuropa=(0,n.defineChain)({id:2046399126,name:"SKALE | Europa Liquidity Hub",network:"skale-europa",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]},public:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3113495}}})},166094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleEuropaTestnet=void 0;const n=r(293300);t.skaleEuropaTestnet=(0,n.defineChain)({id:476158412,name:"SKALE | Europa Liquidity Hub Testnet",network:"skale-europa-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-legal-crazy-castor"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-legal-crazy-castor"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2071911}},testnet:!0})},114752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleExorde=void 0;const n=r(293300);t.skaleExorde=(0,n.defineChain)({id:2139927552,name:"SKALE | Exorde",network:"skale-exorde",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]},public:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}})},66862:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleHumanProtocol=void 0;const n=r(293300);t.skaleHumanProtocol=(0,n.defineChain)({id:1273227453,name:"SKALE | Human Protocol",network:"skale-human-protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]},public:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}})},674168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleNebula=void 0;const n=r(293300);t.skaleNebula=(0,n.defineChain)({id:1482601649,name:"SKALE | Nebula Gaming Hub",network:"skale-nebula",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]},public:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2372986}}})},388597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleNebulaTestnet=void 0;const n=r(293300);t.skaleNebulaTestnet=(0,n.defineChain)({id:503129905,name:"SKALE | Nebula Gaming Hub Testnet",network:"skale-nebula-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2205882}},testnet:!0})},223911:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleRazor=void 0;const n=r(293300);t.skaleRazor=(0,n.defineChain)({id:278611351,name:"SKALE | Razor Network",network:"skale-razor",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]},public:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}})},992321:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleTitan=void 0;const n=r(293300);t.skaleTitan=(0,n.defineChain)({id:1350216234,name:"SKALE | Titan Community Hub",network:"skale-titan",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]},public:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2076458}}})},81186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleTitanTestnet=void 0;const n=r(293300);t.skaleTitanTestnet=(0,n.defineChain)({id:1517929550,name:"SKALE | Titan Community Hub Testnet",network:"skale-titan-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-aware-chief-gianfar"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-aware-chief-gianfar"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2085155}},testnet:!0})},890022:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.songbird=void 0;const n=r(293300);t.songbird=(0,n.defineChain)({id:19,name:"Songbird Mainnet",network:"songbird-mainnet",nativeCurrency:{decimals:18,name:"songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]},public:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network"}}})},598879:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.songbirdTestnet=void 0;const n=r(293300);t.songbirdTestnet=(0,n.defineChain)({id:16,name:"Coston",network:"coston",nativeCurrency:{decimals:18,name:"costonflare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]},public:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network"}},testnet:!0})},247616:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spicy=void 0;const n=r(293300);t.spicy=(0,n.defineChain)({id:88882,name:"Chiliz Spicy Testnet",network:"chiliz-spicy-Testnet",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy.publicnode.com"]},public:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"http://spicy-explorer.chiliz.com"}},testnet:!0})},853502:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syscoin=void 0;const n=r(293300);t.syscoin=(0,n.defineChain)({id:57,name:"Syscoin Mainnet",network:"syscoin",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]},public:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:287139}}})},377463:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syscoinTestnet=void 0;const n=r(293300);t.syscoinTestnet=(0,n.defineChain)({id:5700,name:"Syscoin Tanenbaum Testnet",network:"syscoin-testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]},public:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]}},blockExplorers:{default:{name:"SyscoinTestnetExplorer",url:"https://tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:271288}}})},61220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taikoJolnir=void 0;const n=r(293300);t.taikoJolnir=(0,n.defineChain)({id:167007,name:"Taiko Jolnir (Alpha-5 Testnet)",network:"tko-jolnir",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.jolnir.taiko.xyz"]},public:{http:["https://rpc.jolnir.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.jolnir.taiko.xyz"}}})},610126:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taikoTestnetSepolia=void 0;const n=r(293300);t.taikoTestnetSepolia=(0,n.defineChain)({id:167005,name:"Taiko (Alpha-3 Testnet)",network:"taiko-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.test.taiko.xyz"]},public:{http:["https://rpc.test.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.test.taiko.xyz"}}})},936561:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taraxa=void 0;const n=r(293300);t.taraxa=(0,n.defineChain)({id:841,name:"Taraxa Mainnet",network:"taraxa",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]},public:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}})},303922:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taraxaTestnet=void 0;const n=r(293300);t.taraxaTestnet=(0,n.defineChain)({id:842,name:"Taraxa Testnet",network:"taraxa-testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]},public:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0})},580313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.telos=void 0;const n=r(293300);t.telos=(0,n.defineChain)({id:40,name:"Telos",network:"telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://mainnet.telos.net/evm"]},public:{http:["https://mainnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}})},641338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.telosTestnet=void 0;const n=r(293300);t.telosTestnet=(0,n.defineChain)({id:41,name:"Telos",network:"telosTestnet",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://testnet.telos.net/evm"]},public:{http:["https://testnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0})},976576:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tenet=void 0;const n=r(293300);t.tenet=(0,n.defineChain)({id:1559,name:"Tenet",network:"tenet-mainnet",nativeCurrency:{name:"TENET",symbol:"TENET",decimals:18},rpcUrls:{public:{http:["https://rpc.tenet.org"]},default:{http:["https://rpc.tenet.org"]}},blockExplorers:{default:{name:"TenetScan Mainnet",url:"https://tenetscan.io"}},testnet:!1})},208389:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.thunderTestnet=void 0;const n=r(293300);t.thunderTestnet=(0,n.defineChain)({id:997,name:"5ireChain Thunder Testnet",network:"5ireChain",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.5ire.network"]},public:{http:["https://rpc-testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Explorer",url:"https://explorer.5ire.network"}},testnet:!0})},884672:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vechain=void 0;const n=r(293300);t.vechain=(0,n.defineChain)({id:100009,name:"Vechain",network:"vechain",nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},rpcUrls:{default:{http:["https://mainnet.vechain.org"]},public:{http:["https://mainnet.vechain.org"]}},blockExplorers:{default:{name:"Vechain Explorer",url:"https://explore.vechain.org"},vechainStats:{name:"Vechain Stats",url:"https://vechainstats.com"}}})},778087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wanchain=void 0;const n=r(293300);t.wanchain=(0,n.defineChain)({id:888,name:"Wanchain",network:"wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]},public:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{etherscan:{name:"WanScan",url:"https://wanscan.org"},default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:25312390}}})},812380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wanchainTestnet=void 0;const n=r(293300);t.wanchainTestnet=(0,n.defineChain)({id:999,name:"Wanchain Testnet",network:"wanchainTestnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]},public:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{etherscan:{name:"WanScanTest",url:"https://wanscan.org"},default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:24743448}},testnet:!0})},49264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wemix=void 0;const n=r(293300);t.wemix=(0,n.defineChain)({id:1111,name:"WEMIX",network:"wemix-mainnet",nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},rpcUrls:{default:{http:["https://api.wemix.com"]},public:{http:["https://api.wemix.com"]}},blockExplorers:{etherscan:{name:"wemixExplorer",url:"https://explorer.wemix.com"},default:{name:"wemixExplorer",url:"https://explorer.wemix.com"}}})},197677:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wemixTestnet=void 0;const n=r(293300);t.wemixTestnet=(0,n.defineChain)({id:1112,name:"WEMIX Testnet",network:"wemix-testnet",nativeCurrency:{name:"WEMIX",symbol:"tWEMIX",decimals:18},rpcUrls:{default:{http:["https://api.test.wemix.com"]},public:{http:["https://api.test.wemix.com"]}},blockExplorers:{etherscan:{name:"wemixExplorer",url:"https://testnet.wemixscan.com"},default:{name:"wemixExplorer",url:"https://testnet.wemixscan.com"}},testnet:!0})},266523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xdc=void 0;const n=r(293300);t.xdc=(0,n.defineChain)({id:50,name:"XinFin Network",network:"xdc",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xinfin.network"]},public:{http:["https://rpc.xinfin.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.xinfin.network"},default:{name:"Blocksscan",url:"https://xdc.blocksscan.io"}}})},68440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xdcTestnet=void 0;const n=r(293300);t.xdcTestnet=(0,n.defineChain)({id:51,name:"Apothem Network",network:"xdc-testnet",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]},public:{http:["https://erpc.apothem.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.apothem.network"},default:{name:"Blocksscan",url:"https://apothem.blocksscan.io"}}})},58173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zetachainAthensTestnet=void 0;const n=r(293300);t.zetachainAthensTestnet=(0,n.defineChain)({id:7001,name:"ZetaChain Athens Testnet",network:"zetachain-athens-testnet",nativeCurrency:{decimals:18,name:"Zeta",symbol:"aZETA"},rpcUrls:{public:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]},default:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]}},blockExplorers:{default:{name:"ZetaScan",url:"https://athens3.explorer.zetachain.com"}},testnet:!0})},80708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zhejiang=void 0;const n=r(293300);t.zhejiang=(0,n.defineChain)({id:1337803,network:"zhejiang",name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]},public:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{beaconchain:{name:"Etherscan",url:"https://zhejiang.beaconcha.in"},blockscout:{name:"Blockscout",url:"https://blockscout.com/eth/zhejiang-testnet"},default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0})},282996:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zilliqa=void 0;const n=r(293300);t.zilliqa=(0,n.defineChain)({id:32769,name:"Zilliqa",network:"zilliqa",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://api.zilliqa.com"]},public:{http:["https://api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.zilliqa.com"}},testnet:!1})},104009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zilliqaTestnet=void 0;const n=r(293300);t.zilliqaTestnet=(0,n.defineChain)({id:33101,name:"Zilliqa Testnet",network:"zilliqa-testnet",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://dev-api.zilliqa.com"]},public:{http:["https://dev-api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.testnet.zilliqa.com"}},testnet:!0})},681129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkFair=void 0;const n=r(293300);t.zkFair=(0,n.defineChain)({id:42766,name:"ZKFair Mainnet",network:"zkfair-mainnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://rpc.zkfair.io"]},public:{http:["https://rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://scan.zkfair.io"}},testnet:!1})},234026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkFairTestnet=void 0;const n=r(293300);t.zkFairTestnet=(0,n.defineChain)({id:43851,name:"ZKFair Testnet",network:"zkfair-testnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://testnet-rpc.zkfair.io"]},public:{http:["https://testnet-rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://testnet-scan.zkfair.io"}},testnet:!0})},439864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkSync=void 0;const n=r(293300),i=r(367141),o=r(149401);t.zkSync=(0,n.defineChain)({id:324,name:"zkSync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]},public:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}}},{serializers:o.serializersZkSync,formatters:i.formattersZkSync})},476272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkSyncSepoliaTestnet=void 0;const n=r(293300),i=r(367141),o=r(149401);t.zkSyncSepoliaTestnet=(0,n.defineChain)({id:300,name:"zkSync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]},public:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://sepolia.explorer.zksync.io/"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0},{serializers:o.serializersZkSync,formatters:i.formattersZkSync})},502005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkSyncTestnet=void 0;const n=r(293300),i=r(367141),o=r(149401);t.zkSyncTestnet=(0,n.defineChain)({id:280,name:"zkSync Era Testnet",network:"zksync-era-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]},public:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://goerli.explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0},{serializers:o.serializersZkSync,formatters:i.formattersZkSync})},709442:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zora=void 0;const n=r(293300),i=r(445343);t.zora=(0,n.defineChain)({id:7777777,name:"Zora",network:"zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]},public:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882}}},{formatters:i.formattersOptimism})},296033:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zoraSepolia=void 0;const n=r(293300),i=r(445343);t.zoraSepolia=(0,n.defineChain)({id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]},public:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83160}},testnet:!0},{formatters:i.formattersOptimism})},527139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zoraTestnet=void 0;const n=r(293300),i=r(445343);t.zoraTestnet=(0,n.defineChain)({id:999,name:"Zora Goerli Testnet",network:"zora-testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]},public:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123}},testnet:!0},{formatters:i.formattersOptimism})},610971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fantomSonicTestnet=t.fantom=t.ektaTestnet=t.ekta=t.evmosTestnet=t.evmos=t.eosTestnet=t.eos=t.edgewareTestnet=t.edgeware=t.dogechain=t.dfk=t.crossbell=t.cronosTestnet=t.cronos=t.coreDao=t.confluxESpaceTestnet=t.confluxESpace=t.classic=t.celoCannoli=t.chiliz=t.celoAlfajores=t.celo=t.canto=t.bxnTestnet=t.bxn=t.bscTestnet=t.bsc=t.bronosTestnet=t.bronos=t.boba=t.bitTorrentTestnet=t.bitTorrent=t.bearNetworkChainTestnet=t.bearNetworkChainMainnet=t.baseSepolia=t.baseGoerli=t.base=t.bahamut=t.avalancheFuji=t.avalanche=t.auroraTestnet=t.aurora=t.astarZkatana=t.arbitrumSepolia=t.astar=t.arbitrumNova=t.arbitrumGoerli=t.arbitrum=t.acala=void 0,t.moonriver=t.moonbeamDev=t.moonbeam=t.moonbaseAlpha=t.modeTestnet=t.mevTestnet=t.mev=t.metisGoerli=t.metis=t.meterTestnet=t.meter=t.mantleTestnet=t.mantle=t.mantaTestnet=t.manta=t.mandala=t.mainnet=t.lukso=t.localhost=t.lineaTestnet=t.linea=t.kromaSepolia=t.kroma=t.klaytnBaobab=t.klaytn=t.kavaTestnet=t.kava=t.holesky=t.haqqTestedge2=t.haqqMainnet=t.harmonyOne=t.hardhat=t.gnosisChiado=t.gnosis=t.goerli=t.gobi=t.karura=t.jbc=t.iotexTestnet=t.iotex=t.fuseSparknet=t.fuse=t.foundry=t.flareTestnet=t.flare=t.filecoinHyperspace=t.filecoinCalibration=t.filecoin=t.fibo=t.fantomTestnet=void 0,t.skaleTitan=t.skaleRazor=t.skaleNebulaTestnet=t.skaleNebula=t.skaleHumanProtocol=t.skaleExorde=t.skaleEuropaTestnet=t.skaleEuropa=t.skaleCryptoColosseum=t.skaleCryptoBlades=t.skaleChaosTestnet=t.skaleCalypsoTestnet=t.skaleCalypso=t.skaleBlockBrawlers=t.shimmerTestnet=t.shimmer=t.sepolia=t.scrollTestnet=t.scrollSepolia=t.scroll=t.sapphireTestnet=t.sapphire=t.saigon=t.rootstock=t.ronin=t.rolluxTestnet=t.rollux=t.qTestnet=t.qMainnet=t.pulsechainV4=t.pulsechain=t.polygonZkEvm=t.polygonZkEvmTestnet=t.polygonMumbai=t.polygon=t.plinga=t.pgnTestnet=t.pgn=t.opBNBTestnet=t.opBNB=t.optimismSepolia=t.optimismGoerli=t.optimism=t.okc=t.oasisTestnet=t.oasys=t.nexilix=t.nexi=t.neonMainnet=t.neonDevnet=void 0,t.zoraTestnet=t.zoraSepolia=t.zora=t.zilliqaTestnet=t.zilliqa=t.zetachainAthensTestnet=t.zkSyncSepoliaTestnet=t.zkSyncTestnet=t.zkSync=t.zkFairTestnet=t.zkFair=t.zhejiang=t.xdcTestnet=t.xdc=t.wemixTestnet=t.wemix=t.wanchainTestnet=t.wanchain=t.vechain=t.thunderTestnet=t.tenet=t.telosTestnet=t.telos=t.taraxaTestnet=t.taikoTestnetSepolia=t.taikoJolnir=t.taraxa=t.syscoinTestnet=t.syscoin=t.shibarium=t.shardeumSphinx=t.spicy=t.songbirdTestnet=t.songbird=t.skaleTitanTestnet=void 0;var n=r(144162);Object.defineProperty(t,"acala",{enumerable:!0,get:function(){return n.acala}});var i=r(879130);Object.defineProperty(t,"arbitrum",{enumerable:!0,get:function(){return i.arbitrum}});var o=r(245952);Object.defineProperty(t,"arbitrumGoerli",{enumerable:!0,get:function(){return o.arbitrumGoerli}});var a=r(296816);Object.defineProperty(t,"arbitrumNova",{enumerable:!0,get:function(){return a.arbitrumNova}});var s=r(682785);Object.defineProperty(t,"astar",{enumerable:!0,get:function(){return s.astar}});var c=r(809337);Object.defineProperty(t,"arbitrumSepolia",{enumerable:!0,get:function(){return c.arbitrumSepolia}});var u=r(615965);Object.defineProperty(t,"astarZkatana",{enumerable:!0,get:function(){return u.astarZkatana}});var l=r(893392);Object.defineProperty(t,"aurora",{enumerable:!0,get:function(){return l.aurora}});var d=r(888397);Object.defineProperty(t,"auroraTestnet",{enumerable:!0,get:function(){return d.auroraTestnet}});var f=r(71535);Object.defineProperty(t,"avalanche",{enumerable:!0,get:function(){return f.avalanche}});var h=r(212547);Object.defineProperty(t,"avalancheFuji",{enumerable:!0,get:function(){return h.avalancheFuji}});var p=r(226054);Object.defineProperty(t,"bahamut",{enumerable:!0,get:function(){return p.bahamut}});var g=r(817345);Object.defineProperty(t,"base",{enumerable:!0,get:function(){return g.base}});var m=r(152051);Object.defineProperty(t,"baseGoerli",{enumerable:!0,get:function(){return m.baseGoerli}});var y=r(582360);Object.defineProperty(t,"baseSepolia",{enumerable:!0,get:function(){return y.baseSepolia}});var b=r(480833);Object.defineProperty(t,"bearNetworkChainMainnet",{enumerable:!0,get:function(){return b.bearNetworkChainMainnet}});var v=r(539686);Object.defineProperty(t,"bearNetworkChainTestnet",{enumerable:!0,get:function(){return v.bearNetworkChainTestnet}});var w=r(791615);Object.defineProperty(t,"bitTorrent",{enumerable:!0,get:function(){return w.bitTorrent}});var A=r(960628);Object.defineProperty(t,"bitTorrentTestnet",{enumerable:!0,get:function(){return A.bitTorrentTestnet}});var C=r(290938);Object.defineProperty(t,"boba",{enumerable:!0,get:function(){return C.boba}});var E=r(377287);Object.defineProperty(t,"bronos",{enumerable:!0,get:function(){return E.bronos}});var x=r(727036);Object.defineProperty(t,"bronosTestnet",{enumerable:!0,get:function(){return x.bronosTestnet}});var S=r(484938);Object.defineProperty(t,"bsc",{enumerable:!0,get:function(){return S.bsc}});var I=r(60267);Object.defineProperty(t,"bscTestnet",{enumerable:!0,get:function(){return I.bscTestnet}});var k=r(175342);Object.defineProperty(t,"bxn",{enumerable:!0,get:function(){return k.bxn}});var _=r(13255);Object.defineProperty(t,"bxnTestnet",{enumerable:!0,get:function(){return _.bxnTestnet}});var T=r(424869);Object.defineProperty(t,"canto",{enumerable:!0,get:function(){return T.canto}});var M=r(192381);Object.defineProperty(t,"celo",{enumerable:!0,get:function(){return M.celo}});var P=r(485358);Object.defineProperty(t,"celoAlfajores",{enumerable:!0,get:function(){return P.celoAlfajores}});var j=r(275645);Object.defineProperty(t,"chiliz",{enumerable:!0,get:function(){return j.chiliz}});var D=r(89607);Object.defineProperty(t,"celoCannoli",{enumerable:!0,get:function(){return D.celoCannoli}});var O=r(701334);Object.defineProperty(t,"classic",{enumerable:!0,get:function(){return O.classic}});var B=r(672218);Object.defineProperty(t,"confluxESpace",{enumerable:!0,get:function(){return B.confluxESpace}});var N=r(353179);Object.defineProperty(t,"confluxESpaceTestnet",{enumerable:!0,get:function(){return N.confluxESpaceTestnet}});var R=r(911063);Object.defineProperty(t,"coreDao",{enumerable:!0,get:function(){return R.coreDao}});var L=r(26314);Object.defineProperty(t,"cronos",{enumerable:!0,get:function(){return L.cronos}});var F=r(986283);Object.defineProperty(t,"cronosTestnet",{enumerable:!0,get:function(){return F.cronosTestnet}});var U=r(413147);Object.defineProperty(t,"crossbell",{enumerable:!0,get:function(){return U.crossbell}});var z=r(56361);Object.defineProperty(t,"dfk",{enumerable:!0,get:function(){return z.dfk}});var H=r(919412);Object.defineProperty(t,"dogechain",{enumerable:!0,get:function(){return H.dogechain}});var V=r(281192);Object.defineProperty(t,"edgeware",{enumerable:!0,get:function(){return V.edgeware}});var K=r(357637);Object.defineProperty(t,"edgewareTestnet",{enumerable:!0,get:function(){return K.edgewareTestnet}});var G=r(545291);Object.defineProperty(t,"eos",{enumerable:!0,get:function(){return G.eos}});var q=r(321128);Object.defineProperty(t,"eosTestnet",{enumerable:!0,get:function(){return q.eosTestnet}});var Q=r(891438);Object.defineProperty(t,"evmos",{enumerable:!0,get:function(){return Q.evmos}});var W=r(69895);Object.defineProperty(t,"evmosTestnet",{enumerable:!0,get:function(){return W.evmosTestnet}});var J=r(338875);Object.defineProperty(t,"ekta",{enumerable:!0,get:function(){return J.ekta}});var Y=r(440568);Object.defineProperty(t,"ektaTestnet",{enumerable:!0,get:function(){return Y.ektaTestnet}});var Z=r(326095);Object.defineProperty(t,"fantom",{enumerable:!0,get:function(){return Z.fantom}});var $=r(448392);Object.defineProperty(t,"fantomSonicTestnet",{enumerable:!0,get:function(){return $.fantomSonicTestnet}});var X=r(632804);Object.defineProperty(t,"fantomTestnet",{enumerable:!0,get:function(){return X.fantomTestnet}});var ee=r(949054);Object.defineProperty(t,"fibo",{enumerable:!0,get:function(){return ee.fibo}});var te=r(340819);Object.defineProperty(t,"filecoin",{enumerable:!0,get:function(){return te.filecoin}});var re=r(520703);Object.defineProperty(t,"filecoinCalibration",{enumerable:!0,get:function(){return re.filecoinCalibration}});var ne=r(183783);Object.defineProperty(t,"filecoinHyperspace",{enumerable:!0,get:function(){return ne.filecoinHyperspace}});var ie=r(567386);Object.defineProperty(t,"flare",{enumerable:!0,get:function(){return ie.flare}});var oe=r(5915);Object.defineProperty(t,"flareTestnet",{enumerable:!0,get:function(){return oe.flareTestnet}});var ae=r(494331);Object.defineProperty(t,"foundry",{enumerable:!0,get:function(){return ae.foundry}});var se=r(346777);Object.defineProperty(t,"fuse",{enumerable:!0,get:function(){return se.fuse}});var ce=r(738425);Object.defineProperty(t,"fuseSparknet",{enumerable:!0,get:function(){return ce.fuseSparknet}});var ue=r(729735);Object.defineProperty(t,"iotex",{enumerable:!0,get:function(){return ue.iotex}});var le=r(816252);Object.defineProperty(t,"iotexTestnet",{enumerable:!0,get:function(){return le.iotexTestnet}});var de=r(240031);Object.defineProperty(t,"jbc",{enumerable:!0,get:function(){return de.jbc}});var fe=r(439080);Object.defineProperty(t,"karura",{enumerable:!0,get:function(){return fe.karura}});var he=r(536103);Object.defineProperty(t,"gobi",{enumerable:!0,get:function(){return he.gobi}});var pe=r(380482);Object.defineProperty(t,"goerli",{enumerable:!0,get:function(){return pe.goerli}});var ge=r(804663);Object.defineProperty(t,"gnosis",{enumerable:!0,get:function(){return ge.gnosis}});var me=r(413643);Object.defineProperty(t,"gnosisChiado",{enumerable:!0,get:function(){return me.gnosisChiado}});var ye=r(531828);Object.defineProperty(t,"hardhat",{enumerable:!0,get:function(){return ye.hardhat}});var be=r(349006);Object.defineProperty(t,"harmonyOne",{enumerable:!0,get:function(){return be.harmonyOne}});var ve=r(7781);Object.defineProperty(t,"haqqMainnet",{enumerable:!0,get:function(){return ve.haqqMainnet}});var we=r(463180);Object.defineProperty(t,"haqqTestedge2",{enumerable:!0,get:function(){return we.haqqTestedge2}});var Ae=r(107137);Object.defineProperty(t,"holesky",{enumerable:!0,get:function(){return Ae.holesky}});var Ce=r(261677);Object.defineProperty(t,"kava",{enumerable:!0,get:function(){return Ce.kava}});var Ee=r(309254);Object.defineProperty(t,"kavaTestnet",{enumerable:!0,get:function(){return Ee.kavaTestnet}});var xe=r(930059);Object.defineProperty(t,"klaytn",{enumerable:!0,get:function(){return xe.klaytn}});var Se=r(782576);Object.defineProperty(t,"klaytnBaobab",{enumerable:!0,get:function(){return Se.klaytnBaobab}});var Ie=r(212402);Object.defineProperty(t,"kroma",{enumerable:!0,get:function(){return Ie.kroma}});var ke=r(536049);Object.defineProperty(t,"kromaSepolia",{enumerable:!0,get:function(){return ke.kromaSepolia}});var _e=r(34295);Object.defineProperty(t,"linea",{enumerable:!0,get:function(){return _e.linea}});var Te=r(293068);Object.defineProperty(t,"lineaTestnet",{enumerable:!0,get:function(){return Te.lineaTestnet}});var Me=r(357299);Object.defineProperty(t,"localhost",{enumerable:!0,get:function(){return Me.localhost}});var Pe=r(507496);Object.defineProperty(t,"lukso",{enumerable:!0,get:function(){return Pe.lukso}});var je=r(170662);Object.defineProperty(t,"mainnet",{enumerable:!0,get:function(){return je.mainnet}});var De=r(411726);Object.defineProperty(t,"mandala",{enumerable:!0,get:function(){return De.mandala}});var Oe=r(371049);Object.defineProperty(t,"manta",{enumerable:!0,get:function(){return Oe.manta}});var Be=r(362730);Object.defineProperty(t,"mantaTestnet",{enumerable:!0,get:function(){return Be.mantaTestnet}});var Ne=r(713719);Object.defineProperty(t,"mantle",{enumerable:!0,get:function(){return Ne.mantle}});var Re=r(349900);Object.defineProperty(t,"mantleTestnet",{enumerable:!0,get:function(){return Re.mantleTestnet}});var Le=r(471391);Object.defineProperty(t,"meter",{enumerable:!0,get:function(){return Le.meter}});var Fe=r(123092);Object.defineProperty(t,"meterTestnet",{enumerable:!0,get:function(){return Fe.meterTestnet}});var Ue=r(271788);Object.defineProperty(t,"metis",{enumerable:!0,get:function(){return Ue.metis}});var ze=r(173254);Object.defineProperty(t,"metisGoerli",{enumerable:!0,get:function(){return ze.metisGoerli}});var He=r(375018);Object.defineProperty(t,"mev",{enumerable:!0,get:function(){return He.mev}});var Ve=r(706827);Object.defineProperty(t,"mevTestnet",{enumerable:!0,get:function(){return Ve.mevTestnet}});var Ke=r(339520);Object.defineProperty(t,"modeTestnet",{enumerable:!0,get:function(){return Ke.modeTestnet}});var Ge=r(708170);Object.defineProperty(t,"moonbaseAlpha",{enumerable:!0,get:function(){return Ge.moonbaseAlpha}});var qe=r(647054);Object.defineProperty(t,"moonbeam",{enumerable:!0,get:function(){return qe.moonbeam}});var Qe=r(92283);Object.defineProperty(t,"moonbeamDev",{enumerable:!0,get:function(){return Qe.moonbeamDev}});var We=r(581139);Object.defineProperty(t,"moonriver",{enumerable:!0,get:function(){return We.moonriver}});var Je=r(753274);Object.defineProperty(t,"neonDevnet",{enumerable:!0,get:function(){return Je.neonDevnet}});var Ye=r(992618);Object.defineProperty(t,"neonMainnet",{enumerable:!0,get:function(){return Ye.neonMainnet}});var Ze=r(367634);Object.defineProperty(t,"nexi",{enumerable:!0,get:function(){return Ze.nexi}});var $e=r(277001);Object.defineProperty(t,"nexilix",{enumerable:!0,get:function(){return $e.nexilix}});var Xe=r(147123);Object.defineProperty(t,"oasys",{enumerable:!0,get:function(){return Xe.oasys}});var et=r(640128);Object.defineProperty(t,"oasisTestnet",{enumerable:!0,get:function(){return et.oasisTestnet}});var tt=r(379501);Object.defineProperty(t,"okc",{enumerable:!0,get:function(){return tt.okc}});var rt=r(606786);Object.defineProperty(t,"optimism",{enumerable:!0,get:function(){return rt.optimism}});var nt=r(690744);Object.defineProperty(t,"optimismGoerli",{enumerable:!0,get:function(){return nt.optimismGoerli}});var it=r(264737);Object.defineProperty(t,"optimismSepolia",{enumerable:!0,get:function(){return it.optimismSepolia}});var ot=r(288565);Object.defineProperty(t,"opBNB",{enumerable:!0,get:function(){return ot.opBNB}});var at=r(267790);Object.defineProperty(t,"opBNBTestnet",{enumerable:!0,get:function(){return at.opBNBTestnet}});var st=r(700235);Object.defineProperty(t,"pgn",{enumerable:!0,get:function(){return st.pgn}});var ct=r(767272);Object.defineProperty(t,"pgnTestnet",{enumerable:!0,get:function(){return ct.pgnTestnet}});var ut=r(490495);Object.defineProperty(t,"plinga",{enumerable:!0,get:function(){return ut.plinga}});var lt=r(453672);Object.defineProperty(t,"polygon",{enumerable:!0,get:function(){return lt.polygon}});var dt=r(226227);Object.defineProperty(t,"polygonMumbai",{enumerable:!0,get:function(){return dt.polygonMumbai}});var ft=r(87806);Object.defineProperty(t,"polygonZkEvmTestnet",{enumerable:!0,get:function(){return ft.polygonZkEvmTestnet}});var ht=r(187269);Object.defineProperty(t,"polygonZkEvm",{enumerable:!0,get:function(){return ht.polygonZkEvm}});var pt=r(446374);Object.defineProperty(t,"pulsechain",{enumerable:!0,get:function(){return pt.pulsechain}});var gt=r(586964);Object.defineProperty(t,"pulsechainV4",{enumerable:!0,get:function(){return gt.pulsechainV4}});var mt=r(492493);Object.defineProperty(t,"qMainnet",{enumerable:!0,get:function(){return mt.qMainnet}});var yt=r(258570);Object.defineProperty(t,"qTestnet",{enumerable:!0,get:function(){return yt.qTestnet}});var bt=r(217714);Object.defineProperty(t,"rollux",{enumerable:!0,get:function(){return bt.rollux}});var vt=r(524659);Object.defineProperty(t,"rolluxTestnet",{enumerable:!0,get:function(){return vt.rolluxTestnet}});var wt=r(585242);Object.defineProperty(t,"ronin",{enumerable:!0,get:function(){return wt.ronin}});var At=r(793848);Object.defineProperty(t,"rootstock",{enumerable:!0,get:function(){return At.rootstock}});var Ct=r(652377);Object.defineProperty(t,"saigon",{enumerable:!0,get:function(){return Ct.saigon}});var Et=r(102282);Object.defineProperty(t,"sapphire",{enumerable:!0,get:function(){return Et.sapphire}});var xt=r(251051);Object.defineProperty(t,"sapphireTestnet",{enumerable:!0,get:function(){return xt.sapphireTestnet}});var St=r(476229);Object.defineProperty(t,"scroll",{enumerable:!0,get:function(){return St.scroll}});var It=r(457436);Object.defineProperty(t,"scrollSepolia",{enumerable:!0,get:function(){return It.scrollSepolia}});var kt=r(129918);Object.defineProperty(t,"scrollTestnet",{enumerable:!0,get:function(){return kt.scrollTestnet}});var _t=r(732787);Object.defineProperty(t,"sepolia",{enumerable:!0,get:function(){return _t.sepolia}});var Tt=r(398225);Object.defineProperty(t,"shimmer",{enumerable:!0,get:function(){return Tt.shimmer}});var Mt=r(561682);Object.defineProperty(t,"shimmerTestnet",{enumerable:!0,get:function(){return Mt.shimmerTestnet}});var Pt=r(701855);Object.defineProperty(t,"skaleBlockBrawlers",{enumerable:!0,get:function(){return Pt.skaleBlockBrawlers}});var jt=r(271536);Object.defineProperty(t,"skaleCalypso",{enumerable:!0,get:function(){return jt.skaleCalypso}});var Dt=r(767597);Object.defineProperty(t,"skaleCalypsoTestnet",{enumerable:!0,get:function(){return Dt.skaleCalypsoTestnet}});var Ot=r(379272);Object.defineProperty(t,"skaleChaosTestnet",{enumerable:!0,get:function(){return Ot.skaleChaosTestnet}});var Bt=r(650417);Object.defineProperty(t,"skaleCryptoBlades",{enumerable:!0,get:function(){return Bt.skaleCryptoBlades}});var Nt=r(671514);Object.defineProperty(t,"skaleCryptoColosseum",{enumerable:!0,get:function(){return Nt.skaleCryptoColosseum}});var Rt=r(104501);Object.defineProperty(t,"skaleEuropa",{enumerable:!0,get:function(){return Rt.skaleEuropa}});var Lt=r(166094);Object.defineProperty(t,"skaleEuropaTestnet",{enumerable:!0,get:function(){return Lt.skaleEuropaTestnet}});var Ft=r(114752);Object.defineProperty(t,"skaleExorde",{enumerable:!0,get:function(){return Ft.skaleExorde}});var Ut=r(66862);Object.defineProperty(t,"skaleHumanProtocol",{enumerable:!0,get:function(){return Ut.skaleHumanProtocol}});var zt=r(674168);Object.defineProperty(t,"skaleNebula",{enumerable:!0,get:function(){return zt.skaleNebula}});var Ht=r(388597);Object.defineProperty(t,"skaleNebulaTestnet",{enumerable:!0,get:function(){return Ht.skaleNebulaTestnet}});var Vt=r(223911);Object.defineProperty(t,"skaleRazor",{enumerable:!0,get:function(){return Vt.skaleRazor}});var Kt=r(992321);Object.defineProperty(t,"skaleTitan",{enumerable:!0,get:function(){return Kt.skaleTitan}});var Gt=r(81186);Object.defineProperty(t,"skaleTitanTestnet",{enumerable:!0,get:function(){return Gt.skaleTitanTestnet}});var qt=r(890022);Object.defineProperty(t,"songbird",{enumerable:!0,get:function(){return qt.songbird}});var Qt=r(598879);Object.defineProperty(t,"songbirdTestnet",{enumerable:!0,get:function(){return Qt.songbirdTestnet}});var Wt=r(247616);Object.defineProperty(t,"spicy",{enumerable:!0,get:function(){return Wt.spicy}});var Jt=r(357819);Object.defineProperty(t,"shardeumSphinx",{enumerable:!0,get:function(){return Jt.shardeumSphinx}});var Yt=r(255882);Object.defineProperty(t,"shibarium",{enumerable:!0,get:function(){return Yt.shibarium}});var Zt=r(853502);Object.defineProperty(t,"syscoin",{enumerable:!0,get:function(){return Zt.syscoin}});var $t=r(377463);Object.defineProperty(t,"syscoinTestnet",{enumerable:!0,get:function(){return $t.syscoinTestnet}});var Xt=r(936561);Object.defineProperty(t,"taraxa",{enumerable:!0,get:function(){return Xt.taraxa}});var er=r(61220);Object.defineProperty(t,"taikoJolnir",{enumerable:!0,get:function(){return er.taikoJolnir}});var tr=r(610126);Object.defineProperty(t,"taikoTestnetSepolia",{enumerable:!0,get:function(){return tr.taikoTestnetSepolia}});var rr=r(303922);Object.defineProperty(t,"taraxaTestnet",{enumerable:!0,get:function(){return rr.taraxaTestnet}});var nr=r(580313);Object.defineProperty(t,"telos",{enumerable:!0,get:function(){return nr.telos}});var ir=r(641338);Object.defineProperty(t,"telosTestnet",{enumerable:!0,get:function(){return ir.telosTestnet}});var or=r(976576);Object.defineProperty(t,"tenet",{enumerable:!0,get:function(){return or.tenet}});var ar=r(208389);Object.defineProperty(t,"thunderTestnet",{enumerable:!0,get:function(){return ar.thunderTestnet}});var sr=r(884672);Object.defineProperty(t,"vechain",{enumerable:!0,get:function(){return sr.vechain}});var cr=r(778087);Object.defineProperty(t,"wanchain",{enumerable:!0,get:function(){return cr.wanchain}});var ur=r(812380);Object.defineProperty(t,"wanchainTestnet",{enumerable:!0,get:function(){return ur.wanchainTestnet}});var lr=r(49264);Object.defineProperty(t,"wemix",{enumerable:!0,get:function(){return lr.wemix}});var dr=r(197677);Object.defineProperty(t,"wemixTestnet",{enumerable:!0,get:function(){return dr.wemixTestnet}});var fr=r(266523);Object.defineProperty(t,"xdc",{enumerable:!0,get:function(){return fr.xdc}});var hr=r(68440);Object.defineProperty(t,"xdcTestnet",{enumerable:!0,get:function(){return hr.xdcTestnet}});var pr=r(80708);Object.defineProperty(t,"zhejiang",{enumerable:!0,get:function(){return pr.zhejiang}});var gr=r(681129);Object.defineProperty(t,"zkFair",{enumerable:!0,get:function(){return gr.zkFair}});var mr=r(234026);Object.defineProperty(t,"zkFairTestnet",{enumerable:!0,get:function(){return mr.zkFairTestnet}});var yr=r(439864);Object.defineProperty(t,"zkSync",{enumerable:!0,get:function(){return yr.zkSync}});var br=r(502005);Object.defineProperty(t,"zkSyncTestnet",{enumerable:!0,get:function(){return br.zkSyncTestnet}});var vr=r(476272);Object.defineProperty(t,"zkSyncSepoliaTestnet",{enumerable:!0,get:function(){return vr.zkSyncSepoliaTestnet}});var wr=r(58173);Object.defineProperty(t,"zetachainAthensTestnet",{enumerable:!0,get:function(){return wr.zetachainAthensTestnet}});var Ar=r(282996);Object.defineProperty(t,"zilliqa",{enumerable:!0,get:function(){return Ar.zilliqa}});var Cr=r(104009);Object.defineProperty(t,"zilliqaTestnet",{enumerable:!0,get:function(){return Cr.zilliqaTestnet}});var Er=r(709442);Object.defineProperty(t,"zora",{enumerable:!0,get:function(){return Er.zora}});var xr=r(296033);Object.defineProperty(t,"zoraSepolia",{enumerable:!0,get:function(){return xr.zoraSepolia}});var Sr=r(527139);Object.defineProperty(t,"zoraTestnet",{enumerable:!0,get:function(){return Sr.zoraTestnet}})},445343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formattersOptimism=void 0;const n=r(15987),i=r(483849),o=r(477100),a=r(928490);t.formattersOptimism={block:(0,i.defineBlock)({format(e){const t=e.transactions?.map((e=>{if("string"==typeof e)return e;const t=(0,o.formatTransaction)(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,n.hexToBigInt)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}));return{transactions:t,stateRoot:e.stateRoot}}}),transaction:(0,o.defineTransaction)({format(e){const t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,n.hexToBigInt)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:(0,a.defineTransactionReceipt)({format:e=>({l1GasPrice:e.l1GasPrice?(0,n.hexToBigInt)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,n.hexToBigInt)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,n.hexToBigInt)(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})}},367141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formattersZkSync=void 0;const n=r(15987),i=r(184962),o=r(214368),a=r(483849),s=r(873886),c=r(477100),u=r(928490),l=r(575847);t.formattersZkSync={block:(0,a.defineBlock)({format(e){const r=e.transactions?.map((e=>{if("string"==typeof e)return e;const r=t.formattersZkSync.transaction.format(e);return"0x71"===r.typeHex?r.type="eip712":"0xff"===r.typeHex&&(r.type="priority"),r}));return{l1BatchNumber:e.l1BatchNumber?(0,n.hexToBigInt)(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?(0,n.hexToBigInt)(e.l1BatchTimestamp):null,transactions:r}}}),transaction:(0,c.defineTransaction)({format(e){const t={};return"0x71"===e.type?t.type="eip712":"0xff"===e.type&&(t.type="priority"),{...t,l1BatchNumber:e.l1BatchNumber?(0,n.hexToBigInt)(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?(0,n.hexToBigInt)(e.l1BatchTxIndex):null}}}),transactionReceipt:(0,u.defineTransactionReceipt)({format:e=>({l1BatchNumber:e.l1BatchNumber?(0,n.hexToBigInt)(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?(0,n.hexToBigInt)(e.l1BatchTxIndex):null,logs:e.logs.map((e=>({...(0,s.formatLog)(e),l1BatchNumber:e.l1BatchNumber?(0,n.hexToBigInt)(e.l1BatchNumber):null,transactionLogIndex:(0,n.hexToNumber)(e.transactionLogIndex),logType:e.logType}))),l2ToL1Logs:e.l2ToL1Logs.map((e=>({blockNumber:(0,n.hexToBigInt)(e.blockHash),blockHash:e.blockHash,l1BatchNumber:(0,n.hexToBigInt)(e.l1BatchNumber),transactionIndex:(0,n.hexToBigInt)(e.transactionIndex),shardId:(0,n.hexToBigInt)(e.shardId),isService:e.isService,sender:e.sender,key:e.key,value:e.value,transactionHash:e.transactionHash,logIndex:(0,n.hexToBigInt)(e.logIndex)})))})}),transactionRequest:(0,l.defineTransactionRequest)({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format:e=>e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:(0,o.toHex)(e.gasPerPubdata)}:{},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from((0,i.hexToBytes)(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps}:{},...e.customSignature?{customSignature:e.customSignature}:{}},type:"eip712"===e.type?"0x71":"0xff"}:{}})}},149401:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertTransactionEIP712=t.serializersZkSync=t.serializeTransactionZkSync=void 0;const n=r(79746),i=r(192857),o=r(601679),a=r(208305),s=r(283755),c=r(214368),u=r(246915),l=r(823067);function d(e){const{chainId:t,to:r,from:s,paymaster:c,paymasterInput:u}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(r&&!(0,a.isAddress)(r))throw new n.InvalidAddressError({address:r});if(s&&!(0,a.isAddress)(s))throw new n.InvalidAddressError({address:s});if(c&&!(0,a.isAddress)(c))throw new n.InvalidAddressError({address:c});if(c&&!u)throw new i.BaseError("`paymasterInput` must be provided when `paymaster` is defined");if(!c&&u)throw new i.BaseError("`paymaster` must be provided when `paymasterInput` is defined")}t.serializeTransactionZkSync=(e,t)=>{return"customSignature"in(r=e)||"paymaster"in r||"paymasterInput"in r||"gasPerPubdata"in r||"factoryDeps"in r?function(e){const{chainId:t,gas:r,nonce:n,to:i,from:o,value:a,maxFeePerGas:l,maxPriorityFeePerGas:f,customSignature:h,factoryDeps:p,paymaster:g,paymasterInput:m,gasPerPubdata:y,data:b}=e;d(e);const v=[n?(0,c.toHex)(n):"0x",f?(0,c.toHex)(f):"0x",l?(0,c.toHex)(l):"0x",r?(0,c.toHex)(r):"0x",i??"0x",a?(0,c.toHex)(a):"0x",b??"0x",(0,c.toHex)(t),(0,c.toHex)(""),(0,c.toHex)(""),(0,c.toHex)(t),o??"0x",y?(0,c.toHex)(y):"0x",p??[],h??"0x",g&&m?[g,m]:[]];return(0,s.concatHex)(["0x71",(0,u.toRlp)(v)])}(e):(0,l.serializeTransaction)(e,t);var r},t.serializersZkSync={transaction:t.serializeTransactionZkSync},t.assertTransactionEIP712=d},930208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=void 0;const n=r(551436),i=r(643540);t.createClient=function(e){const{batch:t,cacheTime:r=e.pollingInterval??4e3,key:o="base",name:a="Base Client",pollingInterval:s=4e3,type:c="base"}=e,u=e.chain,l=e.account?(0,n.parseAccount)(e.account):void 0,{config:d,request:f,value:h}=e.transport({chain:u,pollingInterval:s}),p={account:l,batch:t,cacheTime:r,chain:u,key:o,name:a,pollingInterval:s,request:f,transport:{...d,...h},type:c,uid:(0,i.uid)()};return Object.assign(p,{extend:function e(t){return r=>{const n=r(t);for(const e in p)delete n[e];const i={...t,...n};return Object.assign(i,{extend:e(i)})}}(p)})}},331761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPublicClient=void 0;const n=r(930208),i=r(819629);t.createPublicClient=function(e){const{key:t="public",name:r="Public Client"}=e;return(0,n.createClient)({...e,key:t,name:r,type:"publicClient"}).extend(i.publicActions)}},63964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTestClient=void 0;const n=r(930208),i=r(643592);t.createTestClient=function(e){const{key:t="test",name:r="Test Client",mode:o}=e;return(0,n.createClient)({...e,key:t,name:r,type:"testClient"}).extend((e=>({mode:o,...(0,i.testActions)({mode:o})(e)})))}},307821:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWalletClient=void 0;const n=r(930208),i=r(227861);t.createWalletClient=function(e){const{key:t="wallet",name:r="Wallet Client",transport:o}=e;return(0,n.createClient)({...e,key:t,name:r,transport:e=>o({...e,retryCount:0}),type:"walletClient"}).extend(i.walletActions)}},819629:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicActions=void 0;const n=r(714635),i=r(427982),o=r(843188),a=r(846009),s=r(715344),c=r(146606),u=r(647),l=r(497276),d=r(257398),f=r(372181),h=r(503349),p=r(34485),g=r(867787),m=r(964774),y=r(816546),b=r(851907),v=r(389790),w=r(932808),A=r(663079),C=r(659334),E=r(983619),x=r(951064),S=r(394589),I=r(775593),k=r(908682),_=r(64479),T=r(461112),M=r(634686),P=r(927182),j=r(848910),D=r(933099),O=r(47552),B=r(574701),N=r(554884),R=r(40238),L=r(712460),F=r(58980),U=r(895963),z=r(408040),H=r(592535),V=r(16469),K=r(395309),G=r(854091),q=r(21841),Q=r(887934),W=r(278930);t.publicActions=function(e){return{call:t=>(0,c.call)(e,t),createBlockFilter:()=>(0,u.createBlockFilter)(e),createContractEventFilter:t=>(0,l.createContractEventFilter)(e,t),createEventFilter:t=>(0,d.createEventFilter)(e,t),createPendingTransactionFilter:()=>(0,f.createPendingTransactionFilter)(e),estimateContractGas:t=>(0,h.estimateContractGas)(e,t),estimateGas:t=>(0,g.estimateGas)(e,t),getBalance:t=>(0,y.getBalance)(e,t),getBlock:t=>(0,b.getBlock)(e,t),getBlockNumber:t=>(0,v.getBlockNumber)(e,t),getBlockTransactionCount:t=>(0,w.getBlockTransactionCount)(e,t),getBytecode:t=>(0,A.getBytecode)(e,t),getChainId:()=>(0,C.getChainId)(e),getContractEvents:t=>(0,E.getContractEvents)(e,t),getEnsAddress:t=>(0,n.getEnsAddress)(e,t),getEnsAvatar:t=>(0,i.getEnsAvatar)(e,t),getEnsName:t=>(0,o.getEnsName)(e,t),getEnsResolver:t=>(0,a.getEnsResolver)(e,t),getEnsText:t=>(0,s.getEnsText)(e,t),getFeeHistory:t=>(0,x.getFeeHistory)(e,t),estimateFeesPerGas:t=>(0,p.estimateFeesPerGas)(e,t),getFilterChanges:t=>(0,S.getFilterChanges)(e,t),getFilterLogs:t=>(0,I.getFilterLogs)(e,t),getGasPrice:()=>(0,k.getGasPrice)(e),getLogs:t=>(0,_.getLogs)(e,t),getProof:t=>(0,T.getProof)(e,t),estimateMaxPriorityFeePerGas:t=>(0,m.estimateMaxPriorityFeePerGas)(e,t),getStorageAt:t=>(0,M.getStorageAt)(e,t),getTransaction:t=>(0,P.getTransaction)(e,t),getTransactionConfirmations:t=>(0,j.getTransactionConfirmations)(e,t),getTransactionCount:t=>(0,D.getTransactionCount)(e,t),getTransactionReceipt:t=>(0,O.getTransactionReceipt)(e,t),multicall:t=>(0,B.multicall)(e,t),prepareTransactionRequest:t=>(0,Q.prepareTransactionRequest)(e,t),readContract:t=>(0,N.readContract)(e,t),sendRawTransaction:t=>(0,W.sendRawTransaction)(e,t),simulateContract:t=>(0,R.simulateContract)(e,t),verifyMessage:t=>(0,F.verifyMessage)(e,t),verifyTypedData:t=>(0,U.verifyTypedData)(e,t),uninstallFilter:t=>(0,L.uninstallFilter)(e,t),waitForTransactionReceipt:t=>(0,z.waitForTransactionReceipt)(e,t),watchBlocks:t=>(0,V.watchBlocks)(e,t),watchBlockNumber:t=>(0,H.watchBlockNumber)(e,t),watchContractEvent:t=>(0,K.watchContractEvent)(e,t),watchEvent:t=>(0,G.watchEvent)(e,t),watchPendingTransactions:t=>(0,q.watchPendingTransactions)(e,t)}}},643592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testActions=void 0;const n=r(764138),i=r(997390),o=r(618117),a=r(165686),s=r(886725),c=r(479313),u=r(194128),l=r(67407),d=r(901372),f=r(192738),h=r(436899),p=r(639566),g=r(822339),m=r(215706),y=r(62569),b=r(509409),v=r(800144),w=r(914695),A=r(608196),C=r(316521),E=r(260692),x=r(692415),S=r(479295),I=r(260072),k=r(940191),_=r(913046),T=r(671261),M=r(791509),P=r(673289),j=r(792e3);t.testActions=function({mode:e}){return t=>{const r=t.extend((()=>({mode:e})));return{dropTransaction:e=>(0,n.dropTransaction)(r,e),dumpState:()=>(0,i.dumpState)(r),getAutomine:()=>(0,o.getAutomine)(r),getTxpoolContent:()=>(0,a.getTxpoolContent)(r),getTxpoolStatus:()=>(0,s.getTxpoolStatus)(r),impersonateAccount:e=>(0,c.impersonateAccount)(r,e),increaseTime:e=>(0,u.increaseTime)(r,e),inspectTxpool:()=>(0,l.inspectTxpool)(r),loadState:e=>(0,d.loadState)(r,e),mine:e=>(0,f.mine)(r,e),removeBlockTimestampInterval:()=>(0,h.removeBlockTimestampInterval)(r),reset:e=>(0,p.reset)(r,e),revert:e=>(0,g.revert)(r,e),sendUnsignedTransaction:e=>(0,m.sendUnsignedTransaction)(r,e),setAutomine:e=>(0,y.setAutomine)(r,e),setBalance:e=>(0,b.setBalance)(r,e),setBlockGasLimit:e=>(0,v.setBlockGasLimit)(r,e),setBlockTimestampInterval:e=>(0,w.setBlockTimestampInterval)(r,e),setCode:e=>(0,A.setCode)(r,e),setCoinbase:e=>(0,C.setCoinbase)(r,e),setIntervalMining:e=>(0,E.setIntervalMining)(r,e),setLoggingEnabled:e=>(0,x.setLoggingEnabled)(r,e),setMinGasPrice:e=>(0,S.setMinGasPrice)(r,e),setNextBlockBaseFeePerGas:e=>(0,I.setNextBlockBaseFeePerGas)(r,e),setNextBlockTimestamp:e=>(0,k.setNextBlockTimestamp)(r,e),setNonce:e=>(0,_.setNonce)(r,e),setRpcUrl:e=>(0,T.setRpcUrl)(r,e),setStorageAt:e=>(0,M.setStorageAt)(r,e),snapshot:()=>(0,P.snapshot)(r),stopImpersonatingAccount:e=>(0,j.stopImpersonatingAccount)(r,e)}}}},227861:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletActions=void 0;const n=r(659334),i=r(630598),o=r(571827),a=r(736186),s=r(690450),c=r(887934),u=r(601485),l=r(561205),d=r(278930),f=r(634514),h=r(455504),p=r(737859),g=r(433327),m=r(903413),y=r(492775),b=r(721609);t.walletActions=function(e){return{addChain:t=>(0,i.addChain)(e,t),deployContract:t=>(0,o.deployContract)(e,t),getAddresses:()=>(0,a.getAddresses)(e),getChainId:()=>(0,n.getChainId)(e),getPermissions:()=>(0,s.getPermissions)(e),prepareTransactionRequest:t=>(0,c.prepareTransactionRequest)(e,t),requestAddresses:()=>(0,u.requestAddresses)(e),requestPermissions:t=>(0,l.requestPermissions)(e,t),sendRawTransaction:t=>(0,d.sendRawTransaction)(e,t),sendTransaction:t=>(0,f.sendTransaction)(e,t),signMessage:t=>(0,h.signMessage)(e,t),signTransaction:t=>(0,p.signTransaction)(e,t),signTypedData:t=>(0,g.signTypedData)(e,t),switchChain:t=>(0,m.switchChain)(e,t),watchAsset:t=>(0,y.watchAsset)(e,t),writeContract:t=>(0,b.writeContract)(e,t)}}},967763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTransport=void 0;const n=r(996961);t.createTransport=function({key:e,name:t,request:r,retryCount:i=3,retryDelay:o=150,timeout:a,type:s},c){return{config:{key:e,name:t,request:r,retryCount:i,retryDelay:o,timeout:a,type:s},request:(0,n.buildRequest)(r,{retryCount:i,retryDelay:o}),value:c}}},188699:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.custom=void 0;const n=r(967763);t.custom=function(e,t={}){const{key:r="custom",name:i="Custom Provider",retryDelay:o}=t;return({retryCount:a})=>(0,n.createTransport)({key:r,name:i,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:o,type:"custom"})}},558574:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rankTransports=t.fallback=void 0;const n=r(996961),i=r(6189),o=r(967763);function a({chain:e,interval:t=4e3,onTransports:r,sampleCount:n=10,timeout:o=1e3,transports:a,weights:s={}}){const{stability:c=.7,latency:u=.3}=s,l=[],d=async()=>{const s=await Promise.all(a.map((async t=>{const r=t({chain:e,retryCount:0,timeout:o}),n=Date.now();let i,a;try{await r.request({method:"net_listening"}),a=1}catch{a=0}finally{i=Date.now()}return{latency:i-n,success:a}})));l.push(s),l.length>n&&l.shift();const f=Math.max(...l.map((e=>Math.max(...e.map((({latency:e})=>e)))))),h=a.map(((e,t)=>{const r=l.map((e=>e[t].latency)),n=1-r.reduce(((e,t)=>e+t),0)/r.length/f,i=l.map((e=>e[t].success)),o=i.reduce(((e,t)=>e+t),0)/i.length;return 0===o?[0,t]:[u*n+c*o,t]})).sort(((e,t)=>t[0]-e[0]));r(h.map((([,e])=>a[e]))),await(0,i.wait)(t),d()};d()}t.fallback=function(e,t={}){const{key:r="fallback",name:i="Fallback",rank:s=!1,retryCount:c,retryDelay:u}=t;return({chain:t,pollingInterval:l=4e3,timeout:d})=>{let f=e,h=()=>{};const p=(0,o.createTransport)({key:r,name:i,async request({method:e,params:r}){const i=async(o=0)=>{const a=f[o]({chain:t,retryCount:0,timeout:d});try{const t=await a.request({method:e,params:r});return h({method:e,params:r,response:t,transport:a,status:"success"}),t}catch(s){if(h({error:s,method:e,params:r,transport:a,status:"error"}),(0,n.isDeterministicError)(s))throw s;if(o===f.length-1)throw s;return i(o+1)}};return i()},retryCount:c,retryDelay:u,type:"fallback"},{onResponse:e=>h=e,transports:f.map((e=>e({chain:t,retryCount:0})))});if(s){const e="object"==typeof s?s:{};a({chain:t,interval:e.interval??l,onTransports:e=>f=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:f,weights:e.weights})}return p}},t.rankTransports=a},486788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.http=void 0;const n=r(997811),i=r(974839),o=r(75591),a=r(280817),s=r(967763);t.http=function(e,t={}){const{batch:r,fetchOptions:c,key:u="http",name:l="HTTP JSON-RPC",retryDelay:d}=t;return({chain:f,retryCount:h,timeout:p})=>{const{batchSize:g=1e3,wait:m=0}="object"==typeof r?r:{},y=t.retryCount??h,b=p??t.timeout??1e4,v=e||f?.rpcUrls.default.http[0];if(!v)throw new i.UrlRequiredError;return(0,s.createTransport)({key:u,name:l,async request({method:t,params:i}){const s={method:t,params:i},{schedule:u}=(0,o.createBatchScheduler)({id:`${e}`,wait:m,shouldSplitBatch:e=>e.length>g,fn:e=>a.rpc.http(v,{body:e,fetchOptions:c,timeout:b}),sort:(e,t)=>e.id-t.id}),[{error:l,result:d}]=await(async e=>r?u(e):[await a.rpc.http(v,{body:e,fetchOptions:c,timeout:b})])(s);if(l)throw new n.RpcRequestError({body:s,error:l,url:v});return d},retryCount:y,retryDelay:d,timeout:b,type:"http"},{fetchOptions:c,url:e})}}},987673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.webSocket=void 0;const n=r(997811),i=r(974839),o=r(280817),a=r(967763);t.webSocket=function(e,t={}){const{key:r="webSocket",name:s="WebSocket JSON-RPC",retryDelay:c}=t;return({chain:u,retryCount:l,timeout:d})=>{const f=t.retryCount??l,h=d??t.timeout??1e4,p=e||u?.rpcUrls.default.webSocket?.[0];if(!p)throw new i.UrlRequiredError;return(0,a.createTransport)({key:r,name:s,async request({method:e,params:t}){const r={method:e,params:t},i=await(0,o.getSocket)(p),{error:a,result:s}=await o.rpc.webSocketAsync(i,{body:r,timeout:h});if(a)throw new n.RpcRequestError({body:r,error:a,url:p});return s},retryCount:f,retryDelay:c,timeout:h,type:"webSocket"},{getSocket:()=>(0,o.getSocket)(p),async subscribe({params:e,onData:t,onError:r}){const n=await(0,o.getSocket)(p),{result:i}=await new Promise(((i,a)=>o.rpc.webSocket(n,{body:{method:"eth_subscribe",params:e},onResponse(e){if(e.error)return a(e.error),void r?.(e.error);"number"!=typeof e.id?"eth_subscription"===e.method&&t(e.params):i(e)}})));return{subscriptionId:i,unsubscribe:async()=>new Promise((e=>o.rpc.webSocket(n,{body:{method:"eth_unsubscribe",params:[i]},onResponse:e})))}}})}}},100455:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.universalSignatureValidatorAbi=t.smartAccountAbi=t.addressResolverAbi=t.textResolverAbi=t.universalResolverReverseAbi=t.universalResolverResolveAbi=t.multicall3Abi=void 0,t.multicall3Abi=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}];const r=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}];t.universalResolverResolveAbi=[...r,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],t.universalResolverReverseAbi=[...r,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],t.textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],t.addressResolverAbi=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],t.smartAccountAbi=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],t.universalSignatureValidatorAbi=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},838118:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroAddress=void 0,t.zeroAddress="0x0000000000000000000000000000000000000000"},520349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroHash=void 0,t.zeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},964970:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aggregate3Signature=void 0,t.aggregate3Signature="0x82ad56cb"},23289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.universalSignatureValidatorByteCode=void 0,t.universalSignatureValidatorByteCode="0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},368993:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=void 0,t.maxInt8=127n,t.maxInt16=32767n,t.maxInt24=8388607n,t.maxInt32=2n**31n-1n,t.maxInt40=2n**39n-1n,t.maxInt48=2n**47n-1n,t.maxInt56=2n**55n-1n,t.maxInt64=2n**63n-1n,t.maxInt72=2n**71n-1n,t.maxInt80=2n**79n-1n,t.maxInt88=2n**87n-1n,t.maxInt96=2n**95n-1n,t.maxInt104=2n**103n-1n,t.maxInt112=2n**111n-1n,t.maxInt120=2n**119n-1n,t.maxInt128=2n**127n-1n,t.maxInt136=2n**135n-1n,t.maxInt144=2n**143n-1n,t.maxInt152=2n**151n-1n,t.maxInt160=2n**159n-1n,t.maxInt168=2n**167n-1n,t.maxInt176=2n**175n-1n,t.maxInt184=2n**183n-1n,t.maxInt192=2n**191n-1n,t.maxInt200=2n**199n-1n,t.maxInt208=2n**207n-1n,t.maxInt216=2n**215n-1n,t.maxInt224=2n**223n-1n,t.maxInt232=2n**231n-1n,t.maxInt240=2n**239n-1n,t.maxInt248=2n**247n-1n,t.maxInt256=2n**255n-1n,t.minInt8=-128n,t.minInt16=-32768n,t.minInt24=-8388608n,t.minInt32=-(2n**31n),t.minInt40=-(2n**39n),t.minInt48=-(2n**47n),t.minInt56=-(2n**55n),t.minInt64=-(2n**63n),t.minInt72=-(2n**71n),t.minInt80=-(2n**79n),t.minInt88=-(2n**87n),t.minInt96=-(2n**95n),t.minInt104=-(2n**103n),t.minInt112=-(2n**111n),t.minInt120=-(2n**119n),t.minInt128=-(2n**127n),t.minInt136=-(2n**135n),t.minInt144=-(2n**143n),t.minInt152=-(2n**151n),t.minInt160=-(2n**159n),t.minInt168=-(2n**167n),t.minInt176=-(2n**175n),t.minInt184=-(2n**183n),t.minInt192=-(2n**191n),t.minInt200=-(2n**199n),t.minInt208=-(2n**207n),t.minInt216=-(2n**215n),t.minInt224=-(2n**223n),t.minInt232=-(2n**231n),t.minInt240=-(2n**239n),t.minInt248=-(2n**247n),t.minInt256=-(2n**255n),t.maxUint8=255n,t.maxUint16=65535n,t.maxUint24=2n**24n-1n,t.maxUint32=2n**32n-1n,t.maxUint40=2n**40n-1n,t.maxUint48=2n**48n-1n,t.maxUint56=2n**56n-1n,t.maxUint64=2n**64n-1n,t.maxUint72=2n**72n-1n,t.maxUint80=2n**80n-1n,t.maxUint88=2n**88n-1n,t.maxUint96=2n**96n-1n,t.maxUint104=2n**104n-1n,t.maxUint112=2n**112n-1n,t.maxUint120=2n**120n-1n,t.maxUint128=2n**128n-1n,t.maxUint136=2n**136n-1n,t.maxUint144=2n**144n-1n,t.maxUint152=2n**152n-1n,t.maxUint160=2n**160n-1n,t.maxUint168=2n**168n-1n,t.maxUint176=2n**176n-1n,t.maxUint184=2n**184n-1n,t.maxUint192=2n**192n-1n,t.maxUint200=2n**200n-1n,t.maxUint208=2n**208n-1n,t.maxUint216=2n**216n-1n,t.maxUint224=2n**224n-1n,t.maxUint232=2n**232n-1n,t.maxUint240=2n**240n-1n,t.maxUint248=2n**248n-1n,t.maxUint256=2n**256n-1n},407077:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPanic=t.solidityError=t.panicReasons=void 0,t.panicReasons={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},t.solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},t.solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},510632:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.presignMessagePrefix=void 0,t.presignMessagePrefix="\x19Ethereum Signed Message:\n"},886734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.weiUnits=t.gweiUnits=t.etherUnits=void 0,t.etherUnits={gwei:9,wei:18},t.gweiUnits={ether:-9,wei:9},t.weiUnits={ether:-18,gwei:-9}},112060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiDecodingTypeError=t.InvalidAbiEncodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiItemAmbiguityError=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=t.AbiConstructorNotFoundError=void 0;const n=r(539807),i=r(269662),o=r(192857);class a extends o.BaseError{constructor({docsPath:e}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}t.AbiConstructorNotFoundError=a;class s extends o.BaseError{constructor({docsPath:e}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}t.AbiConstructorParamsNotFoundError=s;class c extends o.BaseError{constructor({data:e,size:t}){super([`Data size of ${t} bytes is invalid.`,"Size must be in increments of 32 bytes (size % 32 === 0)."].join("\n"),{metaMessages:[`Data: ${e} (${t} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeInvalidError"})}}t.AbiDecodingDataSizeInvalidError=c;class u extends o.BaseError{constructor({data:e,params:t,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.formatAbiParams)(t,{includeName:!0})})`,`Data: ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}t.AbiDecodingDataSizeTooSmallError=u;class l extends o.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}t.AbiDecodingZeroDataError=l;class d extends o.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${e}`,`Given length: ${t}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}t.AbiEncodingArrayLengthMismatchError=d;class f extends o.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.size)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}t.AbiEncodingBytesSizeMismatchError=f;class h extends o.BaseError{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}t.AbiEncodingLengthMismatchError=h;class p extends o.BaseError{constructor(e,{docsPath:t}){super([`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorInputsNotFoundError"})}}t.AbiErrorInputsNotFoundError=p;class g extends o.BaseError{constructor(e,{docsPath:t}={}){super([`Error ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorNotFoundError"})}}t.AbiErrorNotFoundError=g;class m extends o.BaseError{constructor(e,{docsPath:t}){super([`Encoded error signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}t.AbiErrorSignatureNotFoundError=m;class y extends o.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}t.AbiEventSignatureEmptyTopicsError=y;class b extends o.BaseError{constructor(e,{docsPath:t}){super([`Encoded event signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}t.AbiEventSignatureNotFoundError=b;class v extends o.BaseError{constructor(e,{docsPath:t}={}){super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}t.AbiEventNotFoundError=v;class w extends o.BaseError{constructor(e,{docsPath:t}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}t.AbiFunctionNotFoundError=w;class A extends o.BaseError{constructor(e,{docsPath:t}){super([`Function "${e}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}t.AbiFunctionOutputsNotFoundError=A;class C extends o.BaseError{constructor(e,{docsPath:t}){super([`Encoded function signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionSignatureNotFoundError"})}}t.AbiFunctionSignatureNotFoundError=C;class E extends o.BaseError{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,n.formatAbiItem)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,n.formatAbiItem)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItemAmbiguityError"})}}t.AbiItemAmbiguityError=E;class x extends o.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}t.BytesSizeMismatchError=x;class S extends o.BaseError{constructor({abiItem:e,data:t,params:r,size:i}){super([`Data size of ${i} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.formatAbiParams)(r,{includeName:!0})})`,`Data: ${t} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=i}}t.DecodeLogDataMismatch=S;class I extends o.BaseError{constructor({abiItem:e,param:t}){super([`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.formatAbiItem)(e,{includeName:!0})}".`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}t.DecodeLogTopicsMismatch=I;class k extends o.BaseError{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}t.InvalidAbiEncodingTypeError=k;class _ extends o.BaseError{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}t.InvalidAbiDecodingTypeError=_;class T extends o.BaseError{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}t.InvalidArrayError=T;class M extends o.BaseError{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}t.InvalidDefinitionTypeError=M;class P extends o.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}t.UnsupportedPackedAbiType=P},307377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccountNotFoundError=void 0;const n=r(192857);class i extends n.BaseError{constructor({docsPath:e}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient."].join("\n"),{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}t.AccountNotFoundError=i},79746:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAddressError=void 0;const n=r(192857);class i extends n.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}t.InvalidAddressError=i},192857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;const n=r(344427);class i extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,n.getVersion)()});const r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof i&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return o(this,e)}}function o(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e?o(e.cause,t):t?null:e}t.BaseError=i},574227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockNotFoundError=void 0;const n=r(192857);class i extends n.BaseError{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}t.BlockNotFoundError=i},935927:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OffchainLookupSenderMismatchError=t.OffchainLookupResponseMalformedError=t.OffchainLookupError=void 0;const n=r(766527),i=r(192857),o=r(344427);class a extends i.BaseError{constructor({callbackSelector:e,cause:t,data:r,extraData:n,sender:i,urls:a}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",a&&[" Gateway URL(s):",...a.map((e=>` ${(0,o.getUrl)(e)}`))],` Sender: ${i}`,` Data: ${r}`,` Callback selector: ${e}`,` Extra data: ${n}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}t.OffchainLookupError=a;class s extends i.BaseError{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.getUrl)(t)}`,`Response: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}t.OffchainLookupResponseMalformedError=s;class c extends i.BaseError{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}t.OffchainLookupSenderMismatchError=c},601679:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=void 0;const n=r(192857);class i extends n.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}t.ChainDoesNotSupportContract=i;class o extends n.BaseError{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} \u2013 ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} \u2013 ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}t.ChainMismatchError=o;class a extends n.BaseError{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}t.ChainNotFoundError=a;class s extends n.BaseError{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}t.ClientChainNotConfiguredError=s;class c extends n.BaseError{constructor({chainId:e}){super(`Chain ID "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}t.InvalidChainIdError=c},582054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawContractError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=void 0;const n=r(157449),i=r(407077),o=r(250054),a=r(539807),s=r(306430),c=r(517706),u=r(896668),l=r(929014),d=r(112060),f=r(192857),h=r(88094),p=r(344427);class g extends f.BaseError{constructor(e,{account:t,docsPath:r,chain:i,data:o,gas:a,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:d,nonce:f,to:p,value:g}){const m=t?(0,n.parseAccount)(t):void 0,y=(0,h.prettyPrint)({from:m?.address,to:p,value:void 0!==g&&`${(0,u.formatEther)(g)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:a,gasPrice:void 0!==s&&`${(0,l.formatGwei)(s)} gwei`,maxFeePerGas:void 0!==c&&`${(0,l.formatGwei)(c)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,l.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}t.CallExecutionError=g;class m extends f.BaseError{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:o,sender:u}){const l=(0,c.getAbiItem)({abi:t,args:r,name:o}),d=l?(0,s.formatAbiItemWithArgs)({abiItem:l,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,a.formatAbiItem)(l,{includeName:!0}):void 0,g=(0,h.prettyPrint)({address:n&&(0,p.getContractAddress)(n),function:f,args:d&&"()"!==d&&`${[...Array(o?.length??0).keys()].map((()=>" ")).join("")}${d}`,sender:u});super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",g].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=o,this.sender=u}}t.ContractFunctionExecutionError=m;class y extends f.BaseError{constructor({abi:e,data:t,functionName:r,message:n}){let c,u,l,f,h;if(t&&"0x"!==t)try{u=(0,o.decodeErrorResult)({abi:e,data:t});const{abiItem:r,errorName:n,args:c}=u;if("Error"===n)f=c[0];else if("Panic"===n){const[e]=c;f=i.panicReasons[e]}else{const e=r?(0,a.formatAbiItem)(r,{includeName:!0}):void 0,t=r&&c?(0,s.formatAbiItemWithArgs)({abiItem:r,args:c,includeFunctionName:!1,includeName:!1}):void 0;l=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map((()=>" ")).join("")}${t}`:""]}}catch(p){c=p}else n&&(f=n);c instanceof d.AbiErrorSignatureNotFoundError&&(h=c.signature,l=[`Unable to decode signature "${h}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${h}.`]),super(f&&"execution reverted"!==f||h?[`The contract function "${r}" reverted with the following ${h?"signature":"reason"}:`,f||h].join("\n"):`The contract function "${r}" reverted.`,{cause:c,metaMessages:l}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=u,this.reason=f,this.signature=h}}t.ContractFunctionRevertedError=y;class b extends f.BaseError{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}t.ContractFunctionZeroDataError=b;class v extends f.BaseError{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}t.RawContractError=v},379138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PositionOutOfBoundsError=t.NegativeOffsetError=void 0;const n=r(192857);class i extends n.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}t.NegativeOffsetError=i;class o extends n.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}t.PositionOutOfBoundsError=o},621304:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=void 0;const n=r(192857);class i extends n.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=i;class o extends n.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=o},984077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeOverflowError=t.OffsetOutOfBoundsError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.IntegerOutOfRangeError=t.DataLengthTooShortError=t.DataLengthTooLongError=void 0;const n=r(192857);class i extends n.BaseError{constructor({consumed:e,length:t}){super(`Consumed bytes (${e}) is shorter than data length (${t-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooLongError"})}}t.DataLengthTooLongError=i;class o extends n.BaseError{constructor({length:e,dataLength:t}){super(`Data length (${t-1}) is shorter than consumed bytes length (${e-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooShortError"})}}t.DataLengthTooShortError=o;class a extends n.BaseError{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}t.IntegerOutOfRangeError=a;class s extends n.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesBooleanError"})}}t.InvalidBytesBooleanError=s;class c extends n.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}t.InvalidHexBooleanError=c;class u extends n.BaseError{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexValueError"})}}t.InvalidHexValueError=u;class l extends n.BaseError{constructor({nextOffset:e,offset:t}){super(`Next offset (${e}) is greater than previous offset + consumed bytes (${t})`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffsetOutOfBoundsError"})}}t.OffsetOutOfBoundsError=l;class d extends n.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}t.SizeOverflowError=d},438838:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarUriResolutionError=t.EnsAvatarInvalidNftUriError=t.EnsAvatarInvalidMetadataError=void 0;const n=r(192857);class i extends n.BaseError{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}t.EnsAvatarInvalidMetadataError=i;class o extends n.BaseError{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}t.EnsAvatarInvalidNftUriError=o;class a extends n.BaseError{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}t.EnsAvatarUriResolutionError=a;class s extends n.BaseError{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}t.EnsAvatarUnsupportedNamespaceError=s},700137:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EstimateGasExecutionError=void 0;const n=r(896668),i=r(929014),o=r(192857),a=r(88094);class s extends o.BaseError{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:c,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){const g=(0,a.prettyPrint)({from:t?.address,to:h,value:void 0!==p&&`${(0,n.formatEther)(p)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==u&&`${(0,i.formatGwei)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.formatGwei)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",g].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}t.EstimateGasExecutionError=s},973874:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaxFeePerGasTooLowError=t.Eip1559FeesNotSupportedError=t.BaseFeeScalarError=void 0;const n=r(929014),i=r(192857);class o extends i.BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}t.BaseFeeScalarError=o;class a extends i.BaseError{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}t.Eip1559FeesNotSupportedError=a;class s extends i.BaseError{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,n.formatGwei)(e)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}t.MaxFeePerGasTooLowError=s},150896:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterTypeNotSupportedError=void 0;const n=r(192857);class i extends n.BaseError{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}t.FilterTypeNotSupportedError=i},585296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNodeError=t.TipAboveFeeCapError=t.TransactionTypeNotSupportedError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.NonceMaxValueError=t.NonceTooLowError=t.NonceTooHighError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=void 0;const n=r(929014),i=r(192857);class o extends i.BaseError{constructor({cause:e,message:t}={}){const r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/}),t.ExecutionRevertedError=o;class a extends i.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/}),t.FeeCapTooHighError=a;class s extends i.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/}),t.FeeCapTooLowError=s;class c extends i.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/}),t.NonceTooHighError=c;class u extends i.BaseError{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/}),t.NonceTooLowError=u;class l extends i.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/}),t.NonceMaxValueError=l;class d extends i.BaseError{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/}),t.InsufficientFundsError=d;class f extends i.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/}),t.IntrinsicGasTooHighError=f;class h extends i.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/}),t.IntrinsicGasTooLowError=h;class p extends i.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/}),t.TransactionTypeNotSupportedError=p;class g extends i.BaseError{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.formatGwei)(r)} gwei`:""}).`].join("\n"),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(g,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/}),t.TipAboveFeeCapError=g;class m extends i.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}t.UnknownNodeError=m},997811:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=t.RpcRequestError=t.WebSocketRequestError=t.HttpRequestError=void 0;const n=r(766527),i=r(192857),o=r(344427);class a extends i.BaseError{constructor({body:e,details:t,headers:r,status:i,url:a}){super("HTTP request failed.",{details:t,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,o.getUrl)(a)}`,e&&`Request body: ${(0,n.stringify)(e)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=r,this.status=i,this.url=a}}t.HttpRequestError=a;class s extends i.BaseError{constructor({body:e,details:t,url:r}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${(0,o.getUrl)(r)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}t.WebSocketRequestError=s;class c extends i.BaseError{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.getUrl)(r)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}t.RpcRequestError=c;class u extends i.BaseError{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,o.getUrl)(t)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}t.TimeoutError=u},859577:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownRpcError=t.SwitchChainError=t.ChainDisconnectedError=t.ProviderDisconnectedError=t.UnsupportedProviderMethodError=t.UnauthorizedProviderError=t.UserRejectedRequestError=t.JsonRpcVersionUnsupportedError=t.LimitExceededRpcError=t.MethodNotSupportedRpcError=t.TransactionRejectedRpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.InvalidParamsRpcError=t.MethodNotFoundRpcError=t.InvalidRequestRpcError=t.ParseRpcError=t.ProviderRpcError=t.RpcError=void 0;const n=r(192857),i=r(997811);class o extends n.BaseError{constructor(e,{code:t,docsPath:r,metaMessages:n,shortMessage:o}){super(o,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof i.RpcRequestError?e.code:t??-1}}t.RpcError=o;class a extends o{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}t.ProviderRpcError=a;class s extends o{constructor(e){super(e,{code:s.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700}),t.ParseRpcError=s;class c extends o{constructor(e){super(e,{code:c.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600}),t.InvalidRequestRpcError=c;class u extends o{constructor(e){super(e,{code:u.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601}),t.MethodNotFoundRpcError=u;class l extends o{constructor(e){super(e,{code:l.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602}),t.InvalidParamsRpcError=l;class d extends o{constructor(e){super(e,{code:d.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603}),t.InternalRpcError=d;class f extends o{constructor(e){super(e,{code:f.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3}),t.InvalidInputRpcError=f;class h extends o{constructor(e){super(e,{code:h.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001}),t.ResourceNotFoundRpcError=h;class p extends o{constructor(e){super(e,{code:p.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002}),t.ResourceUnavailableRpcError=p;class g extends o{constructor(e){super(e,{code:g.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003}),t.TransactionRejectedRpcError=g;class m extends o{constructor(e){super(e,{code:m.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004}),t.MethodNotSupportedRpcError=m;class y extends o{constructor(e){super(e,{code:y.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005}),t.LimitExceededRpcError=y;class b extends o{constructor(e){super(e,{code:b.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006}),t.JsonRpcVersionUnsupportedError=b;class v extends a{constructor(e){super(e,{code:v.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001}),t.UserRejectedRequestError=v;class w extends a{constructor(e){super(e,{code:w.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100}),t.UnauthorizedProviderError=w;class A extends a{constructor(e){super(e,{code:A.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200}),t.UnsupportedProviderMethodError=A;class C extends a{constructor(e){super(e,{code:C.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900}),t.ProviderDisconnectedError=C;class E extends a{constructor(e){super(e,{code:E.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901}),t.ChainDisconnectedError=E;class x extends a{constructor(e){super(e,{code:x.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902}),t.SwitchChainError=x;t.UnknownRpcError=class extends o{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},88094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializableTransactionError=t.InvalidLegacyVError=t.FeeConflictError=t.prettyPrint=void 0;const n=r(896668),i=r(929014),o=r(192857);function a(e){const t=Object.entries(e).map((([e,t])=>void 0===t||!1===t?null:[e,t])).filter(Boolean),r=t.reduce(((e,[t])=>Math.max(e,t.length)),0);return t.map((([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`)).join("\n")}t.prettyPrint=a;class s extends o.BaseError{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}t.FeeConflictError=s;class c extends o.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}t.InvalidLegacyVError=c;class u extends o.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}t.InvalidSerializableTransactionError=u;class l extends o.BaseError{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}t.InvalidSerializedTransactionTypeError=l;class d extends o.BaseError{constructor({attributes:e,serializedTransaction:t,type:r}){const n=Object.entries(e).map((([e,t])=>void 0===t?e:void 0)).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,n.length>0?`Missing Attributes: ${n.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=r}}t.InvalidSerializedTransactionError=d;class f extends o.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}t.InvalidStorageKeySizeError=f;class h extends o.BaseError{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:c,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){const g=a({chain:o&&`${o?.name} (id: ${o?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,n.formatEther)(p)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==u&&`${(0,i.formatGwei)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.formatGwei)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",g].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}t.TransactionExecutionError=h;class p extends o.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let o="Transaction";r&&void 0!==i&&(o=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(o=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(o=`Transaction at block number "${t}" at index "${i}"`),n&&(o=`Transaction with hash "${n}"`),super(`${o} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}t.TransactionNotFoundError=p;class g extends o.BaseError{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}t.TransactionReceiptNotFoundError=g;class m extends o.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}t.WaitForTransactionReceiptTimeoutError=m},974839:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlRequiredError=void 0;const n=r(192857);class i extends n.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}t.UrlRequiredError=i},344427:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVersion=t.getUrl=t.getContractAddress=void 0;const n=r(249390);t.getContractAddress=e=>e;t.getUrl=e=>e;t.getVersion=()=>`viem@${n.version}`},249390:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.21.3"},302576:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=t.weiUnits=t.gweiUnits=t.etherUnits=t.zeroAddress=t.multicall3Abi=t.webSocket=t.createWalletClient=t.createTransport=t.walletActions=t.testActions=t.publicActions=t.createTestClient=t.createPublicClient=t.http=t.fallback=t.custom=t.createClient=t.getContract=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.UnknownSignatureError=t.UnknownTypeError=t.SolidityProtectedKeywordError=t.InvalidStructSignatureError=t.InvalidSignatureError=t.InvalidParenthesisError=t.InvalidParameterError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.InvalidAbiItemError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=t.CircularReferenceError=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=void 0,t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiEventNotFoundError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingLengthMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=t.AbiConstructorNotFoundError=t.presignMessagePrefix=t.zeroHash=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=void 0,t.InvalidHexBooleanError=t.IntegerOutOfRangeError=t.InvalidBytesBooleanError=t.DataLengthTooShortError=t.DataLengthTooLongError=t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=t.UserRejectedRequestError=t.UnsupportedProviderMethodError=t.UnknownRpcError=t.UnauthorizedProviderError=t.TransactionRejectedRpcError=t.SwitchChainError=t.RpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.ProviderRpcError=t.ProviderDisconnectedError=t.ParseRpcError=t.MethodNotSupportedRpcError=t.MethodNotFoundRpcError=t.LimitExceededRpcError=t.JsonRpcVersionUnsupportedError=t.InvalidRequestRpcError=t.InvalidParamsRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.ChainDisconnectedError=t.MaxFeePerGasTooLowError=t.Eip1559FeesNotSupportedError=t.BaseFeeScalarError=t.RawContractError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=t.BlockNotFoundError=t.BaseError=t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiEncodingTypeError=t.InvalidAbiDecodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiFunctionSignatureNotFoundError=void 0,t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeDeployData=t.decodeAbiParameters=t.formatLog=t.formatBlock=t.defineBlock=t.namehash=t.labelhash=t.UrlRequiredError=t.SliceOffsetOutOfBoundsError=t.SizeExceedsPaddingSizeError=t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializedTransactionError=t.InvalidSerializableTransactionError=t.InvalidLegacyVError=t.FeeConflictError=t.InvalidAddressError=t.WebSocketRequestError=t.TimeoutError=t.RpcRequestError=t.HttpRequestError=t.FilterTypeNotSupportedError=t.UnknownNodeError=t.TransactionTypeNotSupportedError=t.TipAboveFeeCapError=t.NonceTooLowError=t.NonceTooHighError=t.NonceMaxValueError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=t.EstimateGasExecutionError=t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarInvalidNftUriError=t.EnsAvatarUriResolutionError=t.SizeOverflowError=t.OffsetOutOfBoundsError=t.InvalidHexValueError=void 0,t.toHex=t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toBytes=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.verifyTypedData=t.verifyMessage=t.toRlp=t.hexToRlp=t.bytesToRlp=t.signatureToHex=t.compactSignatureToHex=t.signatureToCompactSignature=t.recoverTypedDataAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.hexToSignature=t.hexToCompactSignature=t.compactSignatureToSignature=t.hashTypedData=t.hashDomain=t.getTransactionType=t.getSerializedTransactionType=t.getCreateAddress=t.getCreate2Address=t.getContractAddress=t.getAbiItem=t.rpcTransactionType=t.formatTransactionRequest=t.defineTransactionRequest=t.formatTransactionReceipt=t.defineTransactionReceipt=t.transactionType=t.formatTransaction=t.defineTransaction=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=void 0,t.parseUnits=t.parseTransaction=t.parseGwei=t.parseEther=t.padHex=t.padBytes=t.pad=t.ripemd160=t.sha256=t.keccak256=t.isHex=t.isHash=t.isBytes=t.isAddressEqual=t.isAddress=t.hashMessage=t.getFunctionSignature=t.getFunctionSelector=t.getEventSignature=t.getEventSelector=t.getContractError=t.getAddress=t.checksumAddress=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.formatUnits=t.formatGwei=t.formatEther=t.encodePacked=t.getChainContractAddress=t.extractChain=t.defineChain=t.assertCurrentChain=t.concatHex=t.concatBytes=t.concat=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.bytesToBigInt=void 0,t.getTypesForEIP712Domain=t.domainSeparator=t.validateTypedData=t.trim=t.stringify=t.sliceHex=t.sliceBytes=t.slice=t.size=t.serializeTransaction=t.serializeAccessList=void 0;var n=r(208557);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return n.CircularReferenceError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return n.InvalidAbiParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return n.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return n.InvalidAbiItemError}}),Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return n.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return n.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return n.InvalidModifierError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return n.InvalidParameterError}}),Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return n.InvalidParenthesisError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return n.InvalidSignatureError}}),Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return n.InvalidStructSignatureError}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return n.SolidityProtectedKeywordError}}),Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return n.UnknownTypeError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return n.UnknownSignatureError}}),Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return n.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return n.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return n.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return n.parseAbiParameters}});var i=r(370894);Object.defineProperty(t,"getContract",{enumerable:!0,get:function(){return i.getContract}});var o=r(930208);Object.defineProperty(t,"createClient",{enumerable:!0,get:function(){return o.createClient}});var a=r(188699);Object.defineProperty(t,"custom",{enumerable:!0,get:function(){return a.custom}});var s=r(558574);Object.defineProperty(t,"fallback",{enumerable:!0,get:function(){return s.fallback}});var c=r(486788);Object.defineProperty(t,"http",{enumerable:!0,get:function(){return c.http}});var u=r(331761);Object.defineProperty(t,"createPublicClient",{enumerable:!0,get:function(){return u.createPublicClient}});var l=r(63964);Object.defineProperty(t,"createTestClient",{enumerable:!0,get:function(){return l.createTestClient}});var d=r(819629);Object.defineProperty(t,"publicActions",{enumerable:!0,get:function(){return d.publicActions}});var f=r(643592);Object.defineProperty(t,"testActions",{enumerable:!0,get:function(){return f.testActions}});var h=r(227861);Object.defineProperty(t,"walletActions",{enumerable:!0,get:function(){return h.walletActions}});var p=r(967763);Object.defineProperty(t,"createTransport",{enumerable:!0,get:function(){return p.createTransport}});var g=r(307821);Object.defineProperty(t,"createWalletClient",{enumerable:!0,get:function(){return g.createWalletClient}});var m=r(987673);Object.defineProperty(t,"webSocket",{enumerable:!0,get:function(){return m.webSocket}});var y=r(100455);Object.defineProperty(t,"multicall3Abi",{enumerable:!0,get:function(){return y.multicall3Abi}});var b=r(838118);Object.defineProperty(t,"zeroAddress",{enumerable:!0,get:function(){return b.zeroAddress}});var v=r(886734);Object.defineProperty(t,"etherUnits",{enumerable:!0,get:function(){return v.etherUnits}}),Object.defineProperty(t,"gweiUnits",{enumerable:!0,get:function(){return v.gweiUnits}}),Object.defineProperty(t,"weiUnits",{enumerable:!0,get:function(){return v.weiUnits}});var w=r(368993);Object.defineProperty(t,"maxInt8",{enumerable:!0,get:function(){return w.maxInt8}}),Object.defineProperty(t,"maxInt16",{enumerable:!0,get:function(){return w.maxInt16}}),Object.defineProperty(t,"maxInt24",{enumerable:!0,get:function(){return w.maxInt24}}),Object.defineProperty(t,"maxInt32",{enumerable:!0,get:function(){return w.maxInt32}}),Object.defineProperty(t,"maxInt40",{enumerable:!0,get:function(){return w.maxInt40}}),Object.defineProperty(t,"maxInt48",{enumerable:!0,get:function(){return w.maxInt48}}),Object.defineProperty(t,"maxInt56",{enumerable:!0,get:function(){return w.maxInt56}}),Object.defineProperty(t,"maxInt64",{enumerable:!0,get:function(){return w.maxInt64}}),Object.defineProperty(t,"maxInt72",{enumerable:!0,get:function(){return w.maxInt72}}),Object.defineProperty(t,"maxInt80",{enumerable:!0,get:function(){return w.maxInt80}}),Object.defineProperty(t,"maxInt88",{enumerable:!0,get:function(){return w.maxInt88}}),Object.defineProperty(t,"maxInt96",{enumerable:!0,get:function(){return w.maxInt96}}),Object.defineProperty(t,"maxInt104",{enumerable:!0,get:function(){return w.maxInt104}}),Object.defineProperty(t,"maxInt112",{enumerable:!0,get:function(){return w.maxInt112}}),Object.defineProperty(t,"maxInt120",{enumerable:!0,get:function(){return w.maxInt120}}),Object.defineProperty(t,"maxInt128",{enumerable:!0,get:function(){return w.maxInt128}}),Object.defineProperty(t,"maxInt136",{enumerable:!0,get:function(){return w.maxInt136}}),Object.defineProperty(t,"maxInt144",{enumerable:!0,get:function(){return w.maxInt144}}),Object.defineProperty(t,"maxInt152",{enumerable:!0,get:function(){return w.maxInt152}}),Object.defineProperty(t,"maxInt160",{enumerable:!0,get:function(){return w.maxInt160}}),Object.defineProperty(t,"maxInt168",{enumerable:!0,get:function(){return w.maxInt168}}),Object.defineProperty(t,"maxInt176",{enumerable:!0,get:function(){return w.maxInt176}}),Object.defineProperty(t,"maxInt184",{enumerable:!0,get:function(){return w.maxInt184}}),Object.defineProperty(t,"maxInt192",{enumerable:!0,get:function(){return w.maxInt192}}),Object.defineProperty(t,"maxInt200",{enumerable:!0,get:function(){return w.maxInt200}}),Object.defineProperty(t,"maxInt208",{enumerable:!0,get:function(){return w.maxInt208}}),Object.defineProperty(t,"maxInt216",{enumerable:!0,get:function(){return w.maxInt216}}),Object.defineProperty(t,"maxInt224",{enumerable:!0,get:function(){return w.maxInt224}}),Object.defineProperty(t,"maxInt232",{enumerable:!0,get:function(){return w.maxInt232}}),Object.defineProperty(t,"maxInt240",{enumerable:!0,get:function(){return w.maxInt240}}),Object.defineProperty(t,"maxInt248",{enumerable:!0,get:function(){return w.maxInt248}}),Object.defineProperty(t,"maxInt256",{enumerable:!0,get:function(){return w.maxInt256}}),Object.defineProperty(t,"maxUint8",{enumerable:!0,get:function(){return w.maxUint8}}),Object.defineProperty(t,"maxUint16",{enumerable:!0,get:function(){return w.maxUint16}}),Object.defineProperty(t,"maxUint24",{enumerable:!0,get:function(){return w.maxUint24}}),Object.defineProperty(t,"maxUint32",{enumerable:!0,get:function(){return w.maxUint32}}),Object.defineProperty(t,"maxUint40",{enumerable:!0,get:function(){return w.maxUint40}}),Object.defineProperty(t,"maxUint48",{enumerable:!0,get:function(){return w.maxUint48}}),Object.defineProperty(t,"maxUint56",{enumerable:!0,get:function(){return w.maxUint56}}),Object.defineProperty(t,"maxUint64",{enumerable:!0,get:function(){return w.maxUint64}}),Object.defineProperty(t,"maxUint72",{enumerable:!0,get:function(){return w.maxUint72}}),Object.defineProperty(t,"maxUint80",{enumerable:!0,get:function(){return w.maxUint80}}),Object.defineProperty(t,"maxUint88",{enumerable:!0,get:function(){return w.maxUint88}}),Object.defineProperty(t,"maxUint96",{enumerable:!0,get:function(){return w.maxUint96}}),Object.defineProperty(t,"maxUint104",{enumerable:!0,get:function(){return w.maxUint104}}),Object.defineProperty(t,"maxUint112",{enumerable:!0,get:function(){return w.maxUint112}}),Object.defineProperty(t,"maxUint120",{enumerable:!0,get:function(){return w.maxUint120}}),Object.defineProperty(t,"maxUint128",{enumerable:!0,get:function(){return w.maxUint128}}),Object.defineProperty(t,"maxUint136",{enumerable:!0,get:function(){return w.maxUint136}}),Object.defineProperty(t,"maxUint144",{enumerable:!0,get:function(){return w.maxUint144}}),Object.defineProperty(t,"maxUint152",{enumerable:!0,get:function(){return w.maxUint152}}),Object.defineProperty(t,"maxUint160",{enumerable:!0,get:function(){return w.maxUint160}}),Object.defineProperty(t,"maxUint168",{enumerable:!0,get:function(){return w.maxUint168}}),Object.defineProperty(t,"maxUint176",{enumerable:!0,get:function(){return w.maxUint176}}),Object.defineProperty(t,"maxUint184",{enumerable:!0,get:function(){return w.maxUint184}}),Object.defineProperty(t,"maxUint192",{enumerable:!0,get:function(){return w.maxUint192}}),Object.defineProperty(t,"maxUint200",{enumerable:!0,get:function(){return w.maxUint200}}),Object.defineProperty(t,"maxUint208",{enumerable:!0,get:function(){return w.maxUint208}}),Object.defineProperty(t,"maxUint216",{enumerable:!0,get:function(){return w.maxUint216}}),Object.defineProperty(t,"maxUint224",{enumerable:!0,get:function(){return w.maxUint224}}),Object.defineProperty(t,"maxUint232",{enumerable:!0,get:function(){return w.maxUint232}}),Object.defineProperty(t,"maxUint240",{enumerable:!0,get:function(){return w.maxUint240}}),Object.defineProperty(t,"maxUint248",{enumerable:!0,get:function(){return w.maxUint248}}),Object.defineProperty(t,"maxUint256",{enumerable:!0,get:function(){return w.maxUint256}}),Object.defineProperty(t,"minInt8",{enumerable:!0,get:function(){return w.minInt8}}),Object.defineProperty(t,"minInt16",{enumerable:!0,get:function(){return w.minInt16}}),Object.defineProperty(t,"minInt24",{enumerable:!0,get:function(){return w.minInt24}}),Object.defineProperty(t,"minInt32",{enumerable:!0,get:function(){return w.minInt32}}),Object.defineProperty(t,"minInt40",{enumerable:!0,get:function(){return w.minInt40}}),Object.defineProperty(t,"minInt48",{enumerable:!0,get:function(){return w.minInt48}}),Object.defineProperty(t,"minInt56",{enumerable:!0,get:function(){return w.minInt56}}),Object.defineProperty(t,"minInt64",{enumerable:!0,get:function(){return w.minInt64}}),Object.defineProperty(t,"minInt72",{enumerable:!0,get:function(){return w.minInt72}}),Object.defineProperty(t,"minInt80",{enumerable:!0,get:function(){return w.minInt80}}),Object.defineProperty(t,"minInt88",{enumerable:!0,get:function(){return w.minInt88}}),Object.defineProperty(t,"minInt96",{enumerable:!0,get:function(){return w.minInt96}}),Object.defineProperty(t,"minInt104",{enumerable:!0,get:function(){return w.minInt104}}),Object.defineProperty(t,"minInt112",{enumerable:!0,get:function(){return w.minInt112}}),Object.defineProperty(t,"minInt120",{enumerable:!0,get:function(){return w.minInt120}}),Object.defineProperty(t,"minInt128",{enumerable:!0,get:function(){return w.minInt128}}),Object.defineProperty(t,"minInt136",{enumerable:!0,get:function(){return w.minInt136}}),Object.defineProperty(t,"minInt144",{enumerable:!0,get:function(){return w.minInt144}}),Object.defineProperty(t,"minInt152",{enumerable:!0,get:function(){return w.minInt152}}),Object.defineProperty(t,"minInt160",{enumerable:!0,get:function(){return w.minInt160}}),Object.defineProperty(t,"minInt168",{enumerable:!0,get:function(){return w.minInt168}}),Object.defineProperty(t,"minInt176",{enumerable:!0,get:function(){return w.minInt176}}),Object.defineProperty(t,"minInt184",{enumerable:!0,get:function(){return w.minInt184}}),Object.defineProperty(t,"minInt192",{enumerable:!0,get:function(){return w.minInt192}}),Object.defineProperty(t,"minInt200",{enumerable:!0,get:function(){return w.minInt200}}),Object.defineProperty(t,"minInt208",{enumerable:!0,get:function(){return w.minInt208}}),Object.defineProperty(t,"minInt216",{enumerable:!0,get:function(){return w.minInt216}}),Object.defineProperty(t,"minInt224",{enumerable:!0,get:function(){return w.minInt224}}),Object.defineProperty(t,"minInt232",{enumerable:!0,get:function(){return w.minInt232}}),Object.defineProperty(t,"minInt240",{enumerable:!0,get:function(){return w.minInt240}}),Object.defineProperty(t,"minInt248",{enumerable:!0,get:function(){return w.minInt248}}),Object.defineProperty(t,"minInt256",{enumerable:!0,get:function(){return w.minInt256}});var A=r(520349);Object.defineProperty(t,"zeroHash",{enumerable:!0,get:function(){return A.zeroHash}});var C=r(510632);Object.defineProperty(t,"presignMessagePrefix",{enumerable:!0,get:function(){return C.presignMessagePrefix}});var E=r(112060);Object.defineProperty(t,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return E.AbiConstructorNotFoundError}}),Object.defineProperty(t,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return E.AbiConstructorParamsNotFoundError}}),Object.defineProperty(t,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return E.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(t,"AbiDecodingDataSizeTooSmallError",{enumerable:!0,get:function(){return E.AbiDecodingDataSizeTooSmallError}}),Object.defineProperty(t,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return E.AbiDecodingZeroDataError}}),Object.defineProperty(t,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return E.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(t,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return E.AbiEncodingLengthMismatchError}}),Object.defineProperty(t,"AbiEncodingBytesSizeMismatchError",{enumerable:!0,get:function(){return E.AbiEncodingBytesSizeMismatchError}}),Object.defineProperty(t,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return E.AbiErrorInputsNotFoundError}}),Object.defineProperty(t,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return E.AbiErrorNotFoundError}}),Object.defineProperty(t,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return E.AbiErrorSignatureNotFoundError}}),Object.defineProperty(t,"AbiEventNotFoundError",{enumerable:!0,get:function(){return E.AbiEventNotFoundError}}),Object.defineProperty(t,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return E.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(t,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return E.AbiEventSignatureNotFoundError}}),Object.defineProperty(t,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return E.AbiFunctionNotFoundError}}),Object.defineProperty(t,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return E.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(t,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return E.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(t,"BytesSizeMismatchError",{enumerable:!0,get:function(){return E.BytesSizeMismatchError}}),Object.defineProperty(t,"DecodeLogDataMismatch",{enumerable:!0,get:function(){return E.DecodeLogDataMismatch}}),Object.defineProperty(t,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return E.DecodeLogTopicsMismatch}}),Object.defineProperty(t,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return E.InvalidAbiDecodingTypeError}}),Object.defineProperty(t,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return E.InvalidAbiEncodingTypeError}}),Object.defineProperty(t,"InvalidArrayError",{enumerable:!0,get:function(){return E.InvalidArrayError}}),Object.defineProperty(t,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return E.InvalidDefinitionTypeError}}),Object.defineProperty(t,"UnsupportedPackedAbiType",{enumerable:!0,get:function(){return E.UnsupportedPackedAbiType}});var x=r(192857);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return x.BaseError}});var S=r(574227);Object.defineProperty(t,"BlockNotFoundError",{enumerable:!0,get:function(){return S.BlockNotFoundError}});var I=r(582054);Object.defineProperty(t,"CallExecutionError",{enumerable:!0,get:function(){return I.CallExecutionError}}),Object.defineProperty(t,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return I.ContractFunctionExecutionError}}),Object.defineProperty(t,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return I.ContractFunctionRevertedError}}),Object.defineProperty(t,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return I.ContractFunctionZeroDataError}}),Object.defineProperty(t,"RawContractError",{enumerable:!0,get:function(){return I.RawContractError}});var k=r(973874);Object.defineProperty(t,"BaseFeeScalarError",{enumerable:!0,get:function(){return k.BaseFeeScalarError}}),Object.defineProperty(t,"Eip1559FeesNotSupportedError",{enumerable:!0,get:function(){return k.Eip1559FeesNotSupportedError}}),Object.defineProperty(t,"MaxFeePerGasTooLowError",{enumerable:!0,get:function(){return k.MaxFeePerGasTooLowError}});var _=r(859577);Object.defineProperty(t,"ChainDisconnectedError",{enumerable:!0,get:function(){return _.ChainDisconnectedError}}),Object.defineProperty(t,"InternalRpcError",{enumerable:!0,get:function(){return _.InternalRpcError}}),Object.defineProperty(t,"InvalidInputRpcError",{enumerable:!0,get:function(){return _.InvalidInputRpcError}}),Object.defineProperty(t,"InvalidParamsRpcError",{enumerable:!0,get:function(){return _.InvalidParamsRpcError}}),Object.defineProperty(t,"InvalidRequestRpcError",{enumerable:!0,get:function(){return _.InvalidRequestRpcError}}),Object.defineProperty(t,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return _.JsonRpcVersionUnsupportedError}}),Object.defineProperty(t,"LimitExceededRpcError",{enumerable:!0,get:function(){return _.LimitExceededRpcError}}),Object.defineProperty(t,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return _.MethodNotFoundRpcError}}),Object.defineProperty(t,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return _.MethodNotSupportedRpcError}}),Object.defineProperty(t,"ParseRpcError",{enumerable:!0,get:function(){return _.ParseRpcError}}),Object.defineProperty(t,"ProviderDisconnectedError",{enumerable:!0,get:function(){return _.ProviderDisconnectedError}}),Object.defineProperty(t,"ProviderRpcError",{enumerable:!0,get:function(){return _.ProviderRpcError}}),Object.defineProperty(t,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return _.ResourceNotFoundRpcError}}),Object.defineProperty(t,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return _.ResourceUnavailableRpcError}}),Object.defineProperty(t,"RpcError",{enumerable:!0,get:function(){return _.RpcError}}),Object.defineProperty(t,"SwitchChainError",{enumerable:!0,get:function(){return _.SwitchChainError}}),Object.defineProperty(t,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return _.TransactionRejectedRpcError}}),Object.defineProperty(t,"UnauthorizedProviderError",{enumerable:!0,get:function(){return _.UnauthorizedProviderError}}),Object.defineProperty(t,"UnknownRpcError",{enumerable:!0,get:function(){return _.UnknownRpcError}}),Object.defineProperty(t,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return _.UnsupportedProviderMethodError}}),Object.defineProperty(t,"UserRejectedRequestError",{enumerable:!0,get:function(){return _.UserRejectedRequestError}});var T=r(601679);Object.defineProperty(t,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return T.ChainDoesNotSupportContract}}),Object.defineProperty(t,"ChainMismatchError",{enumerable:!0,get:function(){return T.ChainMismatchError}}),Object.defineProperty(t,"ChainNotFoundError",{enumerable:!0,get:function(){return T.ChainNotFoundError}}),Object.defineProperty(t,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return T.ClientChainNotConfiguredError}}),Object.defineProperty(t,"InvalidChainIdError",{enumerable:!0,get:function(){return T.InvalidChainIdError}});var M=r(984077);Object.defineProperty(t,"DataLengthTooLongError",{enumerable:!0,get:function(){return M.DataLengthTooLongError}}),Object.defineProperty(t,"DataLengthTooShortError",{enumerable:!0,get:function(){return M.DataLengthTooShortError}}),Object.defineProperty(t,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return M.InvalidBytesBooleanError}}),Object.defineProperty(t,"IntegerOutOfRangeError",{enumerable:!0,get:function(){return M.IntegerOutOfRangeError}}),Object.defineProperty(t,"InvalidHexBooleanError",{enumerable:!0,get:function(){return M.InvalidHexBooleanError}}),Object.defineProperty(t,"InvalidHexValueError",{enumerable:!0,get:function(){return M.InvalidHexValueError}}),Object.defineProperty(t,"OffsetOutOfBoundsError",{enumerable:!0,get:function(){return M.OffsetOutOfBoundsError}}),Object.defineProperty(t,"SizeOverflowError",{enumerable:!0,get:function(){return M.SizeOverflowError}});var P=r(438838);Object.defineProperty(t,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return P.EnsAvatarUriResolutionError}}),Object.defineProperty(t,"EnsAvatarInvalidNftUriError",{enumerable:!0,get:function(){return P.EnsAvatarInvalidNftUriError}}),Object.defineProperty(t,"EnsAvatarUnsupportedNamespaceError",{enumerable:!0,get:function(){return P.EnsAvatarUnsupportedNamespaceError}});var j=r(700137);Object.defineProperty(t,"EstimateGasExecutionError",{enumerable:!0,get:function(){return j.EstimateGasExecutionError}});var D=r(585296);Object.defineProperty(t,"ExecutionRevertedError",{enumerable:!0,get:function(){return D.ExecutionRevertedError}}),Object.defineProperty(t,"FeeCapTooHighError",{enumerable:!0,get:function(){return D.FeeCapTooHighError}}),Object.defineProperty(t,"FeeCapTooLowError",{enumerable:!0,get:function(){return D.FeeCapTooLowError}}),Object.defineProperty(t,"InsufficientFundsError",{enumerable:!0,get:function(){return D.InsufficientFundsError}}),Object.defineProperty(t,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return D.IntrinsicGasTooHighError}}),Object.defineProperty(t,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return D.IntrinsicGasTooLowError}}),Object.defineProperty(t,"NonceMaxValueError",{enumerable:!0,get:function(){return D.NonceMaxValueError}}),Object.defineProperty(t,"NonceTooHighError",{enumerable:!0,get:function(){return D.NonceTooHighError}}),Object.defineProperty(t,"NonceTooLowError",{enumerable:!0,get:function(){return D.NonceTooLowError}}),Object.defineProperty(t,"TipAboveFeeCapError",{enumerable:!0,get:function(){return D.TipAboveFeeCapError}}),Object.defineProperty(t,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return D.TransactionTypeNotSupportedError}}),Object.defineProperty(t,"UnknownNodeError",{enumerable:!0,get:function(){return D.UnknownNodeError}});var O=r(150896);Object.defineProperty(t,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return O.FilterTypeNotSupportedError}});var B=r(997811);Object.defineProperty(t,"HttpRequestError",{enumerable:!0,get:function(){return B.HttpRequestError}}),Object.defineProperty(t,"RpcRequestError",{enumerable:!0,get:function(){return B.RpcRequestError}}),Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return B.TimeoutError}}),Object.defineProperty(t,"WebSocketRequestError",{enumerable:!0,get:function(){return B.WebSocketRequestError}});var N=r(79746);Object.defineProperty(t,"InvalidAddressError",{enumerable:!0,get:function(){return N.InvalidAddressError}});var R=r(88094);Object.defineProperty(t,"FeeConflictError",{enumerable:!0,get:function(){return R.FeeConflictError}}),Object.defineProperty(t,"InvalidLegacyVError",{enumerable:!0,get:function(){return R.InvalidLegacyVError}}),Object.defineProperty(t,"InvalidSerializableTransactionError",{enumerable:!0,get:function(){return R.InvalidSerializableTransactionError}}),Object.defineProperty(t,"InvalidSerializedTransactionError",{enumerable:!0,get:function(){return R.InvalidSerializedTransactionError}}),Object.defineProperty(t,"InvalidSerializedTransactionTypeError",{enumerable:!0,get:function(){return R.InvalidSerializedTransactionTypeError}}),Object.defineProperty(t,"InvalidStorageKeySizeError",{enumerable:!0,get:function(){return R.InvalidStorageKeySizeError}}),Object.defineProperty(t,"TransactionExecutionError",{enumerable:!0,get:function(){return R.TransactionExecutionError}}),Object.defineProperty(t,"TransactionNotFoundError",{enumerable:!0,get:function(){return R.TransactionNotFoundError}}),Object.defineProperty(t,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return R.TransactionReceiptNotFoundError}}),Object.defineProperty(t,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return R.WaitForTransactionReceiptTimeoutError}});var L=r(621304);Object.defineProperty(t,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return L.SizeExceedsPaddingSizeError}}),Object.defineProperty(t,"SliceOffsetOutOfBoundsError",{enumerable:!0,get:function(){return L.SliceOffsetOutOfBoundsError}});var F=r(974839);Object.defineProperty(t,"UrlRequiredError",{enumerable:!0,get:function(){return F.UrlRequiredError}});var U=r(817219);Object.defineProperty(t,"labelhash",{enumerable:!0,get:function(){return U.labelhash}});var z=r(244130);Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return z.namehash}});var H=r(483849);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return H.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return H.formatBlock}});var V=r(873886);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return V.formatLog}});var K=r(480507);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return K.decodeAbiParameters}});var G=r(120138);Object.defineProperty(t,"decodeDeployData",{enumerable:!0,get:function(){return G.decodeDeployData}});var q=r(250054);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return q.decodeErrorResult}});var Q=r(538507);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return Q.decodeEventLog}});var W=r(509025);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return W.decodeFunctionData}});var J=r(608540);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return J.decodeFunctionResult}});var Y=r(689219);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return Y.encodeAbiParameters}});var Z=r(981618);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return Z.encodeDeployData}});var $=r(580494);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return $.encodeErrorResult}});var X=r(607873);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return X.encodeEventTopics}});var ee=r(36217);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return ee.encodeFunctionData}});var te=r(820708);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return te.encodeFunctionResult}});var re=r(477100);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return re.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return re.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return re.transactionType}});var ne=r(928490);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return ne.defineTransactionReceipt}}),Object.defineProperty(t,"formatTransactionReceipt",{enumerable:!0,get:function(){return ne.formatTransactionReceipt}});var ie=r(575847);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return ie.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return ie.formatTransactionRequest}}),Object.defineProperty(t,"rpcTransactionType",{enumerable:!0,get:function(){return ie.rpcTransactionType}});var oe=r(517706);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return oe.getAbiItem}});var ae=r(74763);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return ae.getContractAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return ae.getCreate2Address}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return ae.getCreateAddress}});var se=r(880523);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return se.getSerializedTransactionType}});var ce=r(933105);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return ce.getTransactionType}});var ue=r(281835);Object.defineProperty(t,"hashDomain",{enumerable:!0,get:function(){return ue.hashDomain}}),Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return ue.hashTypedData}});var le=r(339801);Object.defineProperty(t,"compactSignatureToSignature",{enumerable:!0,get:function(){return le.compactSignatureToSignature}});var de=r(223674);Object.defineProperty(t,"hexToCompactSignature",{enumerable:!0,get:function(){return de.hexToCompactSignature}});var fe=r(615769);Object.defineProperty(t,"hexToSignature",{enumerable:!0,get:function(){return fe.hexToSignature}});var he=r(966795);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return he.recoverAddress}});var pe=r(924674);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return pe.recoverMessageAddress}});var ge=r(832899);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return ge.recoverPublicKey}});var me=r(386399);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return me.recoverTypedDataAddress}});var ye=r(919453);Object.defineProperty(t,"signatureToCompactSignature",{enumerable:!0,get:function(){return ye.signatureToCompactSignature}});var be=r(632154);Object.defineProperty(t,"compactSignatureToHex",{enumerable:!0,get:function(){return be.compactSignatureToHex}});var ve=r(822063);Object.defineProperty(t,"signatureToHex",{enumerable:!0,get:function(){return ve.signatureToHex}});var we=r(246915);Object.defineProperty(t,"bytesToRlp",{enumerable:!0,get:function(){return we.bytesToRlp}}),Object.defineProperty(t,"hexToRlp",{enumerable:!0,get:function(){return we.hexToRlp}}),Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return we.toRlp}});var Ae=r(670043);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return Ae.verifyMessage}});var Ce=r(473296);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return Ce.verifyTypedData}});var Ee=r(71526);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return Ee.assertRequest}});var xe=r(293523);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return xe.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return xe.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return xe.assertTransactionLegacy}});var Se=r(184962);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return Se.boolToBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return Se.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return Se.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return Se.stringToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return Se.toBytes}});var Ie=r(214368);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return Ie.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return Ie.bytesToHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return Ie.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return Ie.stringToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return Ie.toHex}});var ke=r(441049);Object.defineProperty(t,"bytesToBigInt",{enumerable:!0,get:function(){return ke.bytesToBigInt}}),Object.defineProperty(t,"bytesToBigint",{enumerable:!0,get:function(){return ke.bytesToBigInt}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return ke.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return ke.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return ke.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return ke.fromBytes}});var _e=r(78383);Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return _e.ccipFetch}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return _e.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return _e.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return _e.offchainLookupSignature}});var Te=r(283755);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return Te.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return Te.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return Te.concatHex}});var Me=r(755014);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return Me.assertCurrentChain}});var Pe=r(293300);Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return Pe.defineChain}});var je=r(178224);Object.defineProperty(t,"extractChain",{enumerable:!0,get:function(){return je.extractChain}});var De=r(778849);Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return De.getChainContractAddress}});var Oe=r(668597);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return Oe.encodePacked}});var Be=r(896668);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return Be.formatEther}});var Ne=r(929014);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return Ne.formatGwei}});var Re=r(516159);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return Re.formatUnits}});var Le=r(15987);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return Le.fromHex}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return Le.hexToBigInt}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return Le.hexToBool}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return Le.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return Le.hexToString}});var Fe=r(734308);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return Fe.fromRlp}});var Ue=r(115257);Object.defineProperty(t,"checksumAddress",{enumerable:!0,get:function(){return Ue.checksumAddress}}),Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return Ue.getAddress}});var ze=r(868062);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return ze.getContractError}});var He=r(110566);Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return He.getEventSelector}});var Ve=r(932917);Object.defineProperty(t,"getEventSignature",{enumerable:!0,get:function(){return Ve.getEventSignature}});var Ke=r(801462);Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return Ke.getFunctionSelector}});var Ge=r(519813);Object.defineProperty(t,"getFunctionSignature",{enumerable:!0,get:function(){return Ge.getFunctionSignature}});var qe=r(73588);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return qe.hashMessage}});var Qe=r(208305);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return Qe.isAddress}});var We=r(651213);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return We.isAddressEqual}});var Je=r(270732);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return Je.isBytes}});var Ye=r(920899);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return Ye.isHash}});var Ze=r(771482);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return Ze.isHex}});var $e=r(829336);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return $e.keccak256}});var Xe=r(875248);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return Xe.sha256}});var et=r(381855);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return et.ripemd160}});var tt=r(511965);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return tt.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return tt.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return tt.padHex}});var rt=r(68184);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return rt.parseEther}});var nt=r(406234);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return nt.parseGwei}});var it=r(23356);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return it.parseTransaction}});var ot=r(914491);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return ot.parseUnits}});var at=r(706653);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return at.serializeAccessList}});var st=r(823067);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return st.serializeTransaction}});var ct=r(269662);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return ct.size}});var ut=r(93577);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return ut.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return ut.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return ut.sliceHex}});var lt=r(766527);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return lt.stringify}});var dt=r(939415);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return dt.trim}});var ft=r(72318);Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return ft.validateTypedData}}),Object.defineProperty(t,"domainSeparator",{enumerable:!0,get:function(){return ft.domainSeparator}}),Object.defineProperty(t,"getTypesForEIP712Domain",{enumerable:!0,get:function(){return ft.getTypesForEIP712Domain}})},480507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeAbiParameters=void 0;const n=r(112060),i=r(115257),o=r(269662),a=r(93577),s=r(939415),c=r(15987),u=r(689219);function l({data:e,param:t,position:r}){const o=(0,u.getArrayComponents)(t.type);if(o){const[n,i]=o;return function(e,{param:t,length:r,position:n}){if(!r){const r=(0,c.hexToNumber)((0,a.slice)(e,n,n+32,{strict:!0})),i=(0,c.hexToNumber)((0,a.slice)(e,r,r+32,{strict:!0}));let o=0;const s=[];for(let n=0;n!e)),i=n?[]:{};let o=0;if(d(t)){const s=(0,c.hexToNumber)((0,a.slice)(e,r,r+32,{strict:!0}));for(let r=0;r48?(0,c.hexToBigInt)(e,{signed:r}):(0,c.hexToNumber)(e,{signed:r})}}(f,{param:t});if("address"===t.type)return function(e){return{consumed:32,value:(0,i.checksumAddress)((0,a.slice)(e,-20))}}(f);if("bool"===t.type)return function(e){return{consumed:32,value:(0,c.hexToBool)(e)}}(f);throw new n.InvalidAbiDecodingTypeError(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function d(e){const{type:t}=e;if("string"===t)return!0;if("bytes"===t)return!0;if(t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(d);const r=(0,u.getArrayComponents)(e.type);return!(!r||!d({...e,type:r[1]}))}t.decodeAbiParameters=function(e,t){if("0x"===t&&e.length>0)throw new n.AbiDecodingZeroDataError;if((0,o.size)(t)&&(0,o.size)(t)<32)throw new n.AbiDecodingDataSizeTooSmallError({data:t,params:e,size:(0,o.size)(t)});return function({data:e,params:t}){const r=[];let i=0;for(let a=0;a=(0,o.size)(e))throw new n.AbiDecodingDataSizeTooSmallError({data:e,params:t,size:(0,o.size)(e)});const s=t[a],{consumed:c,value:u}=l({data:e,param:s,position:i});r.push(u),i+=c}return r}({data:t,params:e})}},120138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeDeployData=void 0;const n=r(112060),i=r(480507),o="/docs/contract/decodeDeployData";t.decodeDeployData=function({abi:e,bytecode:t,data:r}){if(r===t)return{bytecode:t};const a=e.find((e=>"type"in e&&"constructor"===e.type));if(!a)throw new n.AbiConstructorNotFoundError({docsPath:o});if(!("inputs"in a))throw new n.AbiConstructorParamsNotFoundError({docsPath:o});if(!a.inputs||0===a.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:o});return{args:(0,i.decodeAbiParameters)(a.inputs,`0x${r.replace(t,"")}`),bytecode:t}}},250054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeErrorResult=void 0;const n=r(407077),i=r(112060),o=r(93577),a=r(801462),s=r(480507),c=r(539807);t.decodeErrorResult=function({abi:e,data:t}){const r=(0,o.slice)(t,0,4);if("0x"===r)throw new i.AbiDecodingZeroDataError;const u=[...e||[],n.solidityError,n.solidityPanic].find((e=>"error"===e.type&&r===(0,a.getFunctionSelector)((0,c.formatAbiItem)(e))));if(!u)throw new i.AbiErrorSignatureNotFoundError(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:u,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.decodeAbiParameters)(u.inputs,(0,o.slice)(t,4)):void 0,errorName:u.name}}},538507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeEventLog=void 0;const n=r(112060),i=r(110566),o=r(480507),a=r(539807),s="/docs/contract/decodeEventLog";function c({param:e,value:t}){if("string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))return t;return((0,o.decodeAbiParameters)([e],t)||[])[0]}t.decodeEventLog=function({abi:e,data:t,strict:r,topics:u}){const l=r??!0,[d,...f]=u;if(!d)throw new n.AbiEventSignatureEmptyTopicsError({docsPath:s});const h=e.find((e=>"event"===e.type&&d===(0,i.getEventSelector)((0,a.formatAbiItem)(e))));if(!h||!("name"in h)||"event"!==h.type)throw new n.AbiEventSignatureNotFoundError(d,{docsPath:s});const{name:p,inputs:g}=h,m=g?.some((e=>!("name"in e&&e.name)));let y=m?[]:{};const b=g.filter((e=>"indexed"in e&&e.indexed));for(let i=0;i!("indexed"in e&&e.indexed)));if(v.length>0)if(t&&"0x"!==t)try{const e=(0,o.decodeAbiParameters)(v,t);if(e)if(m)y=[...y,...e];else for(let t=0;t0?y:void 0}}},509025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionData=void 0;const n=r(112060),i=r(93577),o=r(801462),a=r(480507),s=r(539807);t.decodeFunctionData=function({abi:e,data:t}){const r=(0,i.slice)(t,0,4),c=e.find((e=>"function"===e.type&&r===(0,o.getFunctionSelector)((0,s.formatAbiItem)(e))));if(!c)throw new n.AbiFunctionSignatureNotFoundError(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:c.name,args:"inputs"in c&&c.inputs&&c.inputs.length>0?(0,a.decodeAbiParameters)(c.inputs,(0,i.slice)(t,4)):void 0}}},608540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionResult=void 0;const n=r(112060),i=r(480507),o=r(517706),a="/docs/contract/decodeFunctionResult";t.decodeFunctionResult=function({abi:e,args:t,functionName:r,data:s}){let c=e[0];if(r&&(c=(0,o.getAbiItem)({abi:e,args:t,name:r}),!c))throw new n.AbiFunctionNotFoundError(r,{docsPath:a});if("function"!==c.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:a});if(!c.outputs)throw new n.AbiFunctionOutputsNotFoundError(c.name,{docsPath:a});const u=(0,i.decodeAbiParameters)(c.outputs,s);return u&&u.length>1?u:u&&1===u.length?u[0]:void 0}},689219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArrayComponents=t.encodeAbiParameters=void 0;const n=r(112060),i=r(79746),o=r(208305),a=r(283755),s=r(511965),c=r(269662),u=r(93577),l=r(214368);function d({param:e,value:t}){const r=h(e.type);if(r){const[i,o]=r;return function(e,{length:t,param:r}){const i=null===t;if(!Array.isArray(e))throw new n.InvalidArrayError(e);if(!i&&e.length!==t)throw new n.AbiEncodingArrayLengthMismatchError({expectedLength:t,givenLength:e.length,type:`${r.type}[${t}]`});let o=!1;const s=[];for(let n=0;n0?(0,a.concat)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,a.concat)(s.map((({encoded:e})=>e)))}}(t,{length:i,param:{...e,type:o}})}if("tuple"===e.type)return function(e,{param:t}){let r=!1;const n=[];for(let i=0;ie)))}}(t,{param:e});if("address"===e.type)return function(e){if(!(0,o.isAddress)(e))throw new i.InvalidAddressError({address:e});return{dynamic:!1,encoded:(0,s.padHex)(e.toLowerCase())}}(t);if("bool"===e.type)return function(e){return{dynamic:!1,encoded:(0,s.padHex)((0,l.boolToHex)(e))}}(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){return function(e,{signed:t}){return{dynamic:!1,encoded:(0,l.numberToHex)(e,{size:32,signed:t})}}(t,{signed:e.type.startsWith("int")})}if(e.type.startsWith("bytes"))return function(e,{param:t}){const[,r]=t.type.split("bytes"),i=(0,c.size)(e);if(!r){let t=e;return i%32!=0&&(t=(0,s.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,a.concat)([(0,s.padHex)((0,l.numberToHex)(i,{size:32})),t])}}if(i!==parseInt(r))throw new n.AbiEncodingBytesSizeMismatchError({expectedSize:parseInt(r),value:e});return{dynamic:!1,encoded:(0,s.padHex)(e,{dir:"right"})}}(t,{param:e});if("string"===e.type)return function(e){const t=(0,l.stringToHex)(e),r=Math.ceil((0,c.size)(t)/32),n=[];for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeDeployData=void 0;const n=r(112060),i=r(283755),o=r(689219),a="/docs/contract/encodeDeployData";t.encodeDeployData=function({abi:e,args:t,bytecode:r}){if(!t||0===t.length)return r;const s=e.find((e=>"type"in e&&"constructor"===e.type));if(!s)throw new n.AbiConstructorNotFoundError({docsPath:a});if(!("inputs"in s))throw new n.AbiConstructorParamsNotFoundError({docsPath:a});if(!s.inputs||0===s.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:a});const c=(0,o.encodeAbiParameters)(s.inputs,t);return(0,i.concatHex)([r,c])}},580494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeErrorResult=void 0;const n=r(112060),i=r(283755),o=r(801462),a=r(689219),s=r(539807),c=r(517706),u="/docs/contract/encodeErrorResult";t.encodeErrorResult=function({abi:e,errorName:t,args:r}){let l=e[0];if(t&&(l=(0,c.getAbiItem)({abi:e,args:r,name:t}),!l))throw new n.AbiErrorNotFoundError(t,{docsPath:u});if("error"!==l.type)throw new n.AbiErrorNotFoundError(void 0,{docsPath:u});const d=(0,s.formatAbiItem)(l),f=(0,o.getFunctionSelector)(d);let h="0x";if(r&&r.length>0){if(!l.inputs)throw new n.AbiErrorInputsNotFoundError(l.name,{docsPath:u});h=(0,a.encodeAbiParameters)(l.inputs,r)}return(0,i.concatHex)([f,h])}},607873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeEventTopics=void 0;const n=r(112060),i=r(150896),o=r(184962),a=r(110566),s=r(829336),c=r(689219),u=r(539807),l=r(517706);function d({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,s.keccak256)((0,o.toBytes)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new i.FilterTypeNotSupportedError(e.type);return(0,c.encodeAbiParameters)([e],[t])}t.encodeEventTopics=function({abi:e,eventName:t,args:r}){let i=e[0];if(t&&(i=(0,l.getAbiItem)({abi:e,args:r,name:t}),!i))throw new n.AbiEventNotFoundError(t,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==i.type)throw new n.AbiEventNotFoundError(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const o=(0,u.formatAbiItem)(i),s=(0,a.getEventSelector)(o);let c=[];if(r&&"inputs"in i){const e=i.inputs?.filter((e=>"indexed"in e&&e.indexed)),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map((e=>r[e.name]))??[]:[];t.length>0&&(c=e?.map(((e,r)=>Array.isArray(t[r])?t[r].map(((n,i)=>d({param:e,value:t[r][i]}))):t[r]?d({param:e,value:t[r]}):null))??[])}return[s,...c]}},36217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionData=void 0;const n=r(112060),i=r(283755),o=r(801462),a=r(689219),s=r(539807),c=r(517706);t.encodeFunctionData=function({abi:e,args:t,functionName:r}){let u=e[0];if(r&&(u=(0,c.getAbiItem)({abi:e,args:t,name:r}),!u))throw new n.AbiFunctionNotFoundError(r,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==u.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const l=(0,s.formatAbiItem)(u),d=(0,o.getFunctionSelector)(l),f="inputs"in u&&u.inputs?(0,a.encodeAbiParameters)(u.inputs,t??[]):void 0;return(0,i.concatHex)([d,f??"0x"])}},820708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionResult=void 0;const n=r(112060),i=r(689219),o=r(517706);t.encodeFunctionResult=function({abi:e,functionName:t,result:r}){let a=e[0];if(t&&(a=(0,o.getAbiItem)({abi:e,name:t}),!a))throw new n.AbiFunctionNotFoundError(t,{docsPath:"/docs/contract/encodeFunctionResult"});if("function"!==a.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionResult"});if(!a.outputs)throw new n.AbiFunctionOutputsNotFoundError(a.name,{docsPath:"/docs/contract/encodeFunctionResult"});let s=Array.isArray(r)?r:[r];return 0!==a.outputs.length||s[0]||(s=[]),(0,i.encodeAbiParameters)(a.outputs,s)}},668597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacked=void 0;const n=r(112060),i=r(79746),o=r(208305),a=r(283755),s=r(511965),c=r(214368),u=r(685797);function l(e,t,r=!1){if("address"===e){const e=t;if(!(0,o.isAddress)(e))throw new i.InvalidAddressError({address:e});return(0,s.pad)(e.toLowerCase(),{size:r?32:null})}if("string"===e)return(0,c.stringToHex)(t);if("bytes"===e)return t;if("bool"===e)return(0,s.pad)((0,c.boolToHex)(t),{size:r?32:1});const d=e.match(u.integerRegex);if(d){const[e,n,i="256"]=d,o=parseInt(i)/8;return(0,c.numberToHex)(t,{size:r?32:o,signed:"int"===n})}const f=e.match(u.bytesRegex);if(f){const[e,i]=f;if(parseInt(i)!==(t.length-2)/2)throw new n.BytesSizeMismatchError({expectedSize:parseInt(i),givenSize:(t.length-2)/2});return(0,s.pad)(t,{dir:"right",size:r?32:null})}const h=e.match(u.arrayRegex);if(h&&Array.isArray(t)){const[e,r]=h,n=[];for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParams=t.formatAbiItem=void 0;const n=r(112060);function i(e,{includeName:t=!1}={}){return e?e.map((e=>function(e,{includeName:t}){if(e.type.startsWith("tuple"))return`(${i(e.components,{includeName:t})})${e.type.slice(5)}`;return e.type+(t&&e.name?` ${e.name}`:"")}(e,{includeName:t}))).join(t?", ":","):""}t.formatAbiItem=function(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.InvalidDefinitionTypeError(e.type);return`${e.name}(${i(e.inputs,{includeName:t})})`},t.formatAbiParams=i},306430:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItemWithArgs=void 0;const n=r(766527);t.formatAbiItemWithArgs=function({abiItem:e,args:t,includeFunctionName:r=!0,includeName:i=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map(((e,r)=>`${i&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,n.stringify)(t[r]):t[r]}`)).join(", ")})`}},517706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAmbiguousTypes=t.isArgOfType=t.getAbiItem=void 0;const n=r(112060),i=r(771482),o=r(110566),a=r(801462),s=r(208305);function c(e,t){const r=typeof e,n=t.type;switch(n){case"address":return(0,s.isAddress)(e);case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:return"tuple"===n&&"components"in t?Object.values(t.components).every(((t,r)=>c(Object.values(e)[r],t))):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?"number"===r||"bigint"===r:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?"string"===r||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)&&(Array.isArray(e)&&e.every((e=>c(e,{...t,type:n.replace(/(\[[0-9]{0,}\])$/,"")}))))}}function u(e,t,r){for(const n in e){const i=e[n],o=t[n];if("tuple"===i.type&&"tuple"===o.type&&"components"in i&&"components"in o)return u(i.components,o.components,r[n]);const a=[i.type,o.type];if(!(!a.includes("address")||!a.includes("bytes20"))||(a.includes("address")&&a.includes("string")||!(!a.includes("address")||!a.includes("bytes")))&&(0,s.isAddress)(r[n]))return a}}t.getAbiItem=function({abi:e,args:t=[],name:r}){const s=(0,i.isHex)(r,{strict:!1}),l=e.filter((e=>s?"function"===e.type?(0,a.getFunctionSelector)(e)===r:"event"===e.type&&(0,o.getEventSelector)(e)===r:"name"in e&&e.name===r));if(0===l.length)return;if(1===l.length)return l[0];let d;for(const i of l){if(!("inputs"in i))continue;if(!t||0===t.length){if(!i.inputs||0===i.inputs.length)return i;continue}if(!i.inputs)continue;if(0===i.inputs.length)continue;if(i.inputs.length!==t.length)continue;if(t.every(((e,t)=>{const r="inputs"in i&&i.inputs[t];return!!r&&c(e,r)}))){if(d&&"inputs"in d&&d.inputs){const e=u(i.inputs,d.inputs,t);if(e)throw new n.AbiItemAmbiguityError({abiItem:i,type:e[0]},{abiItem:d,type:e[1]})}d=i}}return d||l[0]},t.isArgOfType=c,t.getAmbiguousTypes=u},551436:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicKeyToAddress=t.parseAccount=void 0;var n=r(157449);Object.defineProperty(t,"parseAccount",{enumerable:!0,get:function(){return n.parseAccount}});var i=r(535896);Object.defineProperty(t,"publicKeyToAddress",{enumerable:!0,get:function(){return i.publicKeyToAddress}})},115257:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddress=t.checksumAddress=void 0;const n=r(79746),i=r(184962),o=r(829336),a=r(208305);function s(e,t){const r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,o.keccak256)((0,i.stringToBytes)(r),"bytes"),a=(t?r.substring(`${t}0x`.length):r).split("");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&a[i]&&(a[i]=a[i].toUpperCase()),(15&n[i>>1])>=8&&a[i+1]&&(a[i+1]=a[i+1].toUpperCase());return`0x${a.join("")}`}t.checksumAddress=s,t.getAddress=function(e,t){if(!(0,a.isAddress)(e))throw new n.InvalidAddressError({address:e});return s(e,t)}},74763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=t.getContractAddress=void 0;const n=r(283755),i=r(270732),o=r(511965),a=r(93577),s=r(184962),c=r(246915),u=r(829336),l=r(115257);function d(e){const t=(0,s.toBytes)((0,l.getAddress)(e.from));let r=(0,s.toBytes)(e.nonce);return 0===r[0]&&(r=new Uint8Array([])),(0,l.getAddress)(`0x${(0,u.keccak256)((0,c.toRlp)([t,r],"bytes")).slice(26)}`)}function f(e){const t=(0,s.toBytes)((0,l.getAddress)(e.from)),r=(0,o.pad)((0,i.isBytes)(e.salt)?e.salt:(0,s.toBytes)(e.salt),{size:32}),c="bytecodeHash"in e?(0,i.isBytes)(e.bytecodeHash)?e.bytecodeHash:(0,s.toBytes)(e.bytecodeHash):(0,u.keccak256)(e.bytecode,"bytes");return(0,l.getAddress)((0,a.slice)((0,u.keccak256)((0,n.concat)([(0,s.toBytes)("0xff"),t,r,c])),12))}t.getContractAddress=function(e){return"CREATE2"===e.opcode?f(e):d(e)},t.getCreateAddress=d,t.getCreate2Address=f},208305:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddress=void 0;const r=/^0x[a-fA-F0-9]{40}$/;t.isAddress=function(e){return r.test(e)}},651213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddressEqual=void 0;const n=r(79746),i=r(208305);t.isAddressEqual=function(e,t){if(!(0,i.isAddress)(e))throw new n.InvalidAddressError({address:e});if(!(0,i.isAddress)(t))throw new n.InvalidAddressError({address:t});return e.toLowerCase()===t.toLowerCase()}},996961:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildRequest=t.isDeterministicError=void 0;const n=r(192857),i=r(997811),o=r(859577),a=r(876774);t.isDeterministicError=e=>"code"in e?-1!==e.code&&-32004!==e.code&&-32005!==e.code&&-32042!==e.code&&-32603!==e.code:!!(e instanceof i.HttpRequestError&&e.status)&&(403!==e.status&&408!==e.status&&413!==e.status&&429!==e.status&&500!==e.status&&502!==e.status&&503!==e.status&&504!==e.status),t.buildRequest=function(e,{retryDelay:r=150,retryCount:s=3}={}){return async c=>(0,a.withRetry)((async()=>{try{return await e(c)}catch(t){const e=t;switch(e.code){case o.ParseRpcError.code:throw new o.ParseRpcError(e);case o.InvalidRequestRpcError.code:throw new o.InvalidRequestRpcError(e);case o.MethodNotFoundRpcError.code:throw new o.MethodNotFoundRpcError(e);case o.InvalidParamsRpcError.code:throw new o.InvalidParamsRpcError(e);case o.InternalRpcError.code:throw new o.InternalRpcError(e);case o.InvalidInputRpcError.code:throw new o.InvalidInputRpcError(e);case o.ResourceNotFoundRpcError.code:throw new o.ResourceNotFoundRpcError(e);case o.ResourceUnavailableRpcError.code:throw new o.ResourceUnavailableRpcError(e);case o.TransactionRejectedRpcError.code:throw new o.TransactionRejectedRpcError(e);case o.MethodNotSupportedRpcError.code:throw new o.MethodNotSupportedRpcError(e);case o.LimitExceededRpcError.code:throw new o.LimitExceededRpcError(e);case o.JsonRpcVersionUnsupportedError.code:throw new o.JsonRpcVersionUnsupportedError(e);case o.UserRejectedRequestError.code:throw new o.UserRejectedRequestError(e);case o.UnauthorizedProviderError.code:throw new o.UnauthorizedProviderError(e);case o.UnsupportedProviderMethodError.code:throw new o.UnsupportedProviderMethodError(e);case o.ProviderDisconnectedError.code:throw new o.ProviderDisconnectedError(e);case o.ChainDisconnectedError.code:throw new o.ChainDisconnectedError(e);case o.SwitchChainError.code:throw new o.SwitchChainError(e);case 5e3:throw new o.UserRejectedRequestError(e);default:if(t instanceof n.BaseError)throw t;throw new o.UnknownRpcError(e)}}}),{delay:({count:e,error:t})=>{if(t&&t instanceof i.HttpRequestError){const e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*parseInt(e)}return(1<!(0,t.isDeterministicError)(e)})}},78383:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ccipFetch=t.offchainLookup=t.offchainLookupAbiItem=t.offchainLookupSignature=void 0;const n=r(146606),i=r(935927),o=r(997811),a=r(250054),s=r(689219),c=r(651213),u=r(283755),l=r(771482),d=r(766527);async function f({data:e,sender:t,urls:r}){let n=new Error("An unknown error occurred.");for(let s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertCurrentChain=void 0;const n=r(601679);t.assertCurrentChain=function({chain:e,currentChainId:t}){if(!e)throw new n.ChainNotFoundError;if(t!==e.id)throw new n.ChainMismatchError({chain:e,currentChainId:t})}},293300:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineChain=void 0,t.defineChain=function(e,t={}){const{fees:r=e.fees,formatters:n=e.formatters,serializers:i=e.serializers}=t;return{...e,fees:r,formatters:n,serializers:i}}},178224:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractChain=void 0,t.extractChain=function({chains:e,id:t}){return e.find((e=>e.id===t))}},778849:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChainContractAddress=void 0;const n=r(601679);t.getChainContractAddress=function({blockNumber:e,chain:t,contract:r}){const i=t?.contracts?.[r];if(!i)throw new n.ChainDoesNotSupportContract({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new n.ChainDoesNotSupportContract({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},241772:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractFunctionType=t.extractFunctionParams=t.extractFunctionName=t.extractFunctionParts=void 0;const r=/((function|event)\s)?(.*)(\((.*)\))/;function n(e){const t=e.match(r),n=t?.[2]||void 0,i=t?.[3];return{type:n,name:i,params:t?.[5]||void 0}}t.extractFunctionParts=n,t.extractFunctionName=function(e){return n(e).name},t.extractFunctionParams=function(e){const t=n(e).params,r=t?.split(",").map((e=>e.trim().split(" ")));return r?.map((e=>({type:e[0],name:"indexed"===e[1]?e[2]:e[1],..."indexed"===e[1]?{indexed:!0}:{}})))},t.extractFunctionType=function(e){return n(e).type}},35738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCursor=void 0;const n=r(379138),i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.PositionOutOfBoundsError({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.NegativeOffsetError({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},incrementPosition(e){if(e<0)throw new n.NegativeOffsetError({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){const e=this.inspectByte();return this.position++,e},readBytes(e){const t=this.inspectBytes(e);return this.position+=e,t},readUint8(){const e=this.inspectUint8();return this.position+=1,e},readUint16(){const e=this.inspectUint16();return this.position+=2,e},readUint24(){const e=this.inspectUint24();return this.position+=3,e},readUint32(){const e=this.inspectUint32();return this.position+=4,e},setPosition(e){this.assertPosition(e),this.position=e}};t.createCursor=function(e){const t=Object.create(i);return t.bytes=e,t.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),t}},283755:(e,t)=>{"use strict";function r(e){let t=0;for(const i of e)t+=i.length;const r=new Uint8Array(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}function n(e){return`0x${e.reduce(((e,t)=>e+t.replace("0x","")),"")}`}Object.defineProperty(t,"__esModule",{value:!0}),t.concatHex=t.concatBytes=t.concat=void 0,t.concat=function(e){return"string"==typeof e[0]?n(e):r(e)},t.concatBytes=r,t.concatHex=n},270732:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBytes=void 0,t.isBytes=function(e){return!!e&&("object"==typeof e&&("BYTES_PER_ELEMENT"in e&&(1===e.BYTES_PER_ELEMENT&&"Uint8Array"===e.constructor.name)))}},651702:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBytesEqual=void 0;const n=r(25059),i=r(184962),o=r(771482);t.isBytesEqual=function(e,t){const r=(0,o.isHex)(e)?(0,i.toBytes)(e):e,a=(0,o.isHex)(t)?(0,i.toBytes)(t):t;return(0,n.equalBytes)(r,a)}},771482:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHex=void 0,t.isHex=function(e,{strict:t=!0}={}){return!!e&&("string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}},511965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.padBytes=t.padHex=t.pad=void 0;const n=r(621304);function i(e,{dir:t,size:r=32}={}){if(null===r)return e;const i=e.replace("0x","");if(i.length>2*r)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}function o(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:r,type:"bytes"});const i=new Uint8Array(r);for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.size=void 0;const n=r(771482);t.size=function(e){return(0,n.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},93577:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sliceHex=t.sliceBytes=t.slice=void 0;const n=r(621304),i=r(771482),o=r(269662);function a(e,t){if("number"==typeof t&&t>0&&t>(0,o.size)(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:(0,o.size)(e)})}function s(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,o.size)(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:(0,o.size)(e)})}function c(e,t,r,{strict:n}={}){a(e,t);const i=e.slice(t,r);return n&&s(i,t,r),i}function u(e,t,r,{strict:n}={}){a(e,t);const i=`0x${e.replace("0x","").slice(2*(t??0),2*(r??e.length))}`;return n&&s(i,t,r),i}t.slice=function(e,t,r,{strict:n}={}){return(0,i.isHex)(e,{strict:!1})?u(e,t,r,{strict:n}):c(e,t,r,{strict:n})},t.sliceBytes=c,t.sliceHex=u},939415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trim=void 0,t.trim=function(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigInt=t.fromBytes=void 0;const n=r(984077),i=r(939415),o=r(15987),a=r(214368);function s(e,t={}){void 0!==t.size&&(0,o.assertSize)(e,{size:t.size});const r=(0,a.bytesToHex)(e,t);return(0,o.hexToBigInt)(r)}function c(e,t={}){let r=e;if(void 0!==t.size&&((0,o.assertSize)(r,{size:t.size}),r=(0,i.trim)(r)),r.length>1||r[0]>1)throw new n.InvalidBytesBooleanError(r);return Boolean(r[0])}function u(e,t={}){void 0!==t.size&&(0,o.assertSize)(e,{size:t.size});const r=(0,a.bytesToHex)(e,t);return(0,o.hexToNumber)(r)}function l(e,t={}){let r=e;return void 0!==t.size&&((0,o.assertSize)(r,{size:t.size}),r=(0,i.trim)(r,{dir:"right"})),(new TextDecoder).decode(r)}t.fromBytes=function(e,t){const r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?u(e,r):"bigint"===n?s(e,r):"boolean"===n?c(e,r):"string"===n?l(e,r):(0,a.bytesToHex)(e,r)},t.bytesToBigInt=s,t.bytesToBool=c,t.bytesToNumber=u,t.bytesToString=l},15987:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.assertSize=void 0;const n=r(984077),i=r(269662),o=r(939415),a=r(184962);function s(e,{size:t}){if((0,i.size)(e)>t)throw new n.SizeOverflowError({givenSize:(0,i.size)(e),maxSize:t})}function c(e,t={}){const{signed:r}=t;t.size&&s(e,{size:t.size});const n=BigInt(e);if(!r)return n;const i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function u(e,t={}){let r=e;if(t.size&&(s(r,{size:t.size}),r=(0,o.trim)(r)),"0x00"===(0,o.trim)(r))return!1;if("0x01"===(0,o.trim)(r))return!0;throw new n.InvalidHexBooleanError(r)}function l(e,t={}){return Number(c(e,t))}function d(e,t={}){let r=(0,a.hexToBytes)(e);return t.size&&(s(r,{size:t.size}),r=(0,o.trim)(r,{dir:"right"})),(new TextDecoder).decode(r)}t.assertSize=s,t.fromHex=function(e,t){const r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?l(e,r):"bigint"===n?c(e,r):"string"===n?d(e,r):"boolean"===n?u(e,r):(0,a.hexToBytes)(e,r)},t.hexToBigInt=c,t.hexToBool=u,t.hexToNumber=l,t.hexToString=d},734308:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rlpToHex=t.rlpToBytes=t.fromRlp=void 0;const n=r(192857),i=r(984077),o=r(35738),a=r(184962),s=r(214368);function c(e,t="hex"){const r=(()=>{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new i.InvalidHexValueError(e);return(0,a.hexToBytes)(e)}return e})();return u((0,o.createCursor)(r),t)}function u(e,t="hex"){if(0===e.bytes.length)return"hex"===t?(0,s.bytesToHex)(e.bytes):e.bytes;const r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){const n=l(e,r,128),i=e.readBytes(n);return"hex"===t?(0,s.bytesToHex)(i):i}return function(e,t,r){const n=e.position,i=[];for(;e.position-n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.toBytes=void 0;const n=r(192857),i=r(771482),o=r(511965),a=r(15987),s=r(214368),c=new TextEncoder;function u(e,t={}){const r=new Uint8Array(1);return r[0]=Number(e),"number"==typeof t.size?((0,a.assertSize)(r,{size:t.size}),(0,o.pad)(r,{size:t.size})):r}t.toBytes=function(e,t={}){return"number"==typeof e||"bigint"==typeof e?h(e,t):"boolean"==typeof e?u(e,t):(0,i.isHex)(e)?f(e,t):p(e,t)},t.boolToBytes=u;const l={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=l.zero&&e<=l.nine?e-l.zero:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function f(e,t={}){let r=e;t.size&&((0,a.assertSize)(r,{size:t.size}),r=(0,o.pad)(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);const s=i.length/2,c=new Uint8Array(s);for(let o=0,a=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toHex=void 0;const n=r(984077),i=r(511965),o=r(15987),a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e,t={}){const r=`0x${Number(e)}`;return"number"==typeof t.size?((0,o.assertSize)(r,{size:t.size}),(0,i.pad)(r,{size:t.size})):r}function c(e,t={}){let r="";for(let i=0;is||a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRlp=t.bytesToRlp=t.toRlp=void 0;const n=r(302576),i=r(35738),o=r(184962),a=r(214368);function s(e,t="hex"){const r=c(e),n=(0,i.createCursor)(new Uint8Array(r.length));return r.encode(n),"hex"===t?(0,a.bytesToHex)(n.bytes):n.bytes}function c(e){return Array.isArray(e)?function(e){const t=e.reduce(((e,t)=>e+t.length),0),r=u(t);return{length:t<=55?1+t:1+r+t,encode(n){t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t));for(const{encode:t}of e)t(n)}}}(e.map((e=>c(e)))):function(e){const t="string"==typeof e?(0,o.hexToBytes)(e):e,r=u(t.length),n=1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length;return{length:n,encode(e){1===t.length&&t[0]<128?e.pushBytes(t):t.length<=55?(e.pushByte(128+t.length),e.pushBytes(t)):(e.pushByte(183+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function u(e){if(e<256)return 1;if(e<65536)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new n.BaseError("Length is too large.")}t.toRlp=s,t.bytesToRlp=function(e,t="bytes"){return s(e,t)},t.hexToRlp=function(e,t="hex"){return s(e,t)}},904728:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAvatarRecord=void 0;const n=r(943158);t.parseAvatarRecord=async function(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?async function(e,{gatewayUrls:t,record:r}){const i=(0,n.parseNftUri)(r),o=await(0,n.getNftTokenUri)(e,{nft:i}),{uri:a,isOnChain:s,isEncoded:c}=(0,n.resolveAvatarUri)({uri:o,gatewayUrls:t});if(s&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const e=c?atob(a.replace("data:application/json;base64,","")):a,r=JSON.parse(e);return(0,n.parseAvatarUri)({uri:(0,n.getJsonImage)(r),gatewayUrls:t})}let u=i.tokenID;"erc1155"===i.namespace&&(u=u.replace("0x","").padStart(64,"0"));return(0,n.getMetadataAvatarUri)({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,u)})}(e,{gatewayUrls:t,record:r}):(0,n.parseAvatarUri)({uri:r,gatewayUrls:t})}},943158:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNftTokenUri=t.parseNftUri=t.parseAvatarUri=t.getMetadataAvatarUri=t.getJsonImage=t.resolveAvatarUri=t.getGateway=t.isImageUri=void 0;const n=r(554884),i=r(438838),o=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,a=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?[\w\-.]+))?(?\/.*)?$/,s=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,c=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function u(e){try{const t=await fetch(e,{method:"HEAD"});if(200===t.status){const e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){return("object"!=typeof t||void 0===t.response)&&(!!globalThis.hasOwnProperty("Image")&&new Promise((t=>{const r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})))}}function l(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function d({uri:e,gatewayUrls:t}){const r=s.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};const n=l(t?.ipfs,"https://ipfs.io"),u=l(t?.arweave,"https://arweave.net"),d=e.match(o),{protocol:f,subpath:h,target:p,subtarget:g=""}=d?.groups||{},m="ipns:/"===f||"ipns/"===h,y="ipfs:/"===f||"ipfs/"===h||a.test(e);if(e.startsWith("http")&&!m&&!y){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((m||y)&&p)return{uri:`${n}/${m?"ipns":"ipfs"}/${p}${g}`,isOnChain:!1,isEncoded:!1};if("ar:/"===f&&p)return{uri:`${u}/${p}${g||""}`,isOnChain:!1,isEncoded:!1};let b=e.replace(c,"");if(b.startsWith("e.json()));return await h({gatewayUrls:e,uri:f(r)})}catch{throw new i.EnsAvatarUriResolutionError({uri:t})}},t.parseAvatarUri=h,t.parseNftUri=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[r,n,o]=t.split("/"),[a,s]=r.split(":"),[c,u]=n.split(":");if(!a||"eip155"!==a.toLowerCase())throw new i.EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!s)throw new i.EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!u)throw new i.EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!o)throw new i.EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!c)throw new i.EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:parseInt(s),namespace:c.toLowerCase(),contractAddress:u,tokenID:o}},t.getNftTokenUri=async function(e,{nft:t}){if("erc721"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new i.EnsAvatarUnsupportedNamespaceError({namespace:t.namespace})}},868793:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeLabelhash=void 0,t.encodeLabelhash=function(e){return`[${e.slice(2)}]`}},734776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodedLabelToLabelhash=void 0;const n=r(771482);t.encodedLabelToLabelhash=function(e){if(66!==e.length)return null;if(0!==e.indexOf("["))return null;if(65!==e.indexOf("]"))return null;const t=`0x${e.slice(1,65)}`;return(0,n.isHex)(t)?t:null}},840130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNullUniversalResolverError=void 0;const n=r(407077),i=r(192857),o=r(582054);t.isNullUniversalResolverError=function(e,t){if(!(e instanceof i.BaseError))return!1;const r=e.walk((e=>e instanceof o.ContractFunctionRevertedError));return r instanceof o.ContractFunctionRevertedError&&("ResolverNotFound"===r.data?.errorName||("ResolverWildcardNotSupported"===r.data?.errorName||(!!r.reason?.includes("Wildcard on non-extended resolvers is not supported")||"reverse"===t&&r.reason===n.panicReasons[50])))}},817219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.labelhash=void 0;const n=r(184962),i=r(214368),o=r(829336),a=r(734776);t.labelhash=function(e){const t=new Uint8Array(32).fill(0);return e?(0,a.encodedLabelToLabelhash)(e)||(0,o.keccak256)((0,n.stringToBytes)(e)):(0,i.bytesToHex)(t)}},244130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.namehash=void 0;const n=r(283755),i=r(184962),o=r(214368),a=r(829336),s=r(734776);t.namehash=function(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,o.bytesToHex)(t);const r=e.split(".");for(let o=r.length-1;o>=0;o-=1){const e=(0,s.encodedLabelToLabelhash)(r[o]),c=e?(0,i.toBytes)(e):(0,a.keccak256)((0,i.stringToBytes)(r[o]),"bytes");t=(0,a.keccak256)((0,n.concat)([t,c]),"bytes")}return(0,o.bytesToHex)(t)}},487801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packetToBytes=void 0;const n=r(184962),i=r(868793),o=r(817219);t.packetToBytes=function(e){const t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);const r=new Uint8Array((0,n.stringToBytes)(t).byteLength+2);let a=0;const s=t.split(".");for(let c=0;c255&&(e=(0,n.stringToBytes)((0,i.encodeLabelhash)((0,o.labelhash)(s[c])))),r[a]=e.length,r.set(e,a+1),a+=e.length+1}return r.byteLength!==a+1?r.slice(0,a+1):r}},551868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCallError=void 0;const n=r(582054),i=r(585296),o=r(611132);t.getCallError=function(e,{docsPath:t,...r}){const a=(()=>{const t=(0,o.getNodeError)(e,r);return t instanceof i.UnknownNodeError?e:t})();return new n.CallExecutionError(a,{docsPath:t,...r})}},868062:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContractError=void 0;const n=r(112060),i=r(192857),o=r(582054),a=r(859577),s=3;t.getContractError=function(e,{abi:t,address:r,args:c,docsPath:u,functionName:l,sender:d}){const{code:f,data:h,message:p,shortMessage:g}=e instanceof o.RawContractError?e:e instanceof i.BaseError?e.walk((e=>"data"in e))||e.walk():{},m=e instanceof n.AbiDecodingZeroDataError?new o.ContractFunctionZeroDataError({functionName:l}):[s,a.InternalRpcError.code].includes(f)&&(h||p||g)?new o.ContractFunctionRevertedError({abi:t,data:"object"==typeof h?h.data:h,functionName:l,message:g??p}):e;return new o.ContractFunctionExecutionError(m,{abi:t,args:c,contractAddress:r,docsPath:u,functionName:l,sender:d})}},642515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEstimateGasError=void 0;const n=r(700137),i=r(585296),o=r(611132);t.getEstimateGasError=function(e,{docsPath:t,...r}){const a=(()=>{const t=(0,o.getNodeError)(e,r);return t instanceof i.UnknownNodeError?e:t})();return new n.EstimateGasExecutionError(a,{docsPath:t,...r})}},611132:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeError=t.containsNodeError=void 0;const n=r(192857),i=r(585296),o=r(997811),a=r(859577);t.containsNodeError=function(e){return e instanceof a.TransactionRejectedRpcError||e instanceof a.InvalidInputRpcError||e instanceof o.RpcRequestError&&e.code===i.ExecutionRevertedError.code},t.getNodeError=function(e,t){const r=(e.details||"").toLowerCase(),o=e.walk((e=>e.code===i.ExecutionRevertedError.code));return o instanceof n.BaseError?new i.ExecutionRevertedError({cause:e,message:o.details}):i.ExecutionRevertedError.nodeMessage.test(r)?new i.ExecutionRevertedError({cause:e,message:e.details}):i.FeeCapTooHighError.nodeMessage.test(r)?new i.FeeCapTooHighError({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.FeeCapTooLowError.nodeMessage.test(r)?new i.FeeCapTooLowError({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.NonceTooHighError.nodeMessage.test(r)?new i.NonceTooHighError({cause:e,nonce:t?.nonce}):i.NonceTooLowError.nodeMessage.test(r)?new i.NonceTooLowError({cause:e,nonce:t?.nonce}):i.NonceMaxValueError.nodeMessage.test(r)?new i.NonceMaxValueError({cause:e,nonce:t?.nonce}):i.InsufficientFundsError.nodeMessage.test(r)?new i.InsufficientFundsError({cause:e}):i.IntrinsicGasTooHighError.nodeMessage.test(r)?new i.IntrinsicGasTooHighError({cause:e,gas:t?.gas}):i.IntrinsicGasTooLowError.nodeMessage.test(r)?new i.IntrinsicGasTooLowError({cause:e,gas:t?.gas}):i.TransactionTypeNotSupportedError.nodeMessage.test(r)?new i.TransactionTypeNotSupportedError({cause:e}):i.TipAboveFeeCapError.nodeMessage.test(r)?new i.TipAboveFeeCapError({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.UnknownNodeError({cause:e})}},726214:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionError=void 0;const n=r(585296),i=r(88094),o=r(611132);t.getTransactionError=function(e,{docsPath:t,...r}){const a=(()=>{const t=(0,o.getNodeError)(e,r);return t instanceof n.UnknownNodeError?e:t})();return new i.TransactionExecutionError(a,{docsPath:t,...r})}},659861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFilterRequestScope=void 0,t.createFilterRequestScope=function(e,{method:t}){const r={};return"fallback"===e.transport.type&&e.transport.onResponse?.((({method:e,response:n,status:i,transport:o})=>{"success"===i&&t===e&&(r[n]=o.request)})),t=>r[t]||e.request}},483849:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineBlock=t.formatBlock=void 0;const n=r(621370),i=r(477100);function o(e){const t=e.transactions?.map((e=>"string"==typeof e?e:(0,i.formatTransaction)(e)));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}t.formatBlock=o,t.defineBlock=(0,n.defineFormatter)("block",o)},456941:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extract=void 0,t.extract=function(e,{format:t}){if(!t)return{};const r={};return function t(n){const i=Object.keys(n);for(const o of i)o in e&&(r[o]=e[o]),n[o]&&"object"==typeof n[o]&&!Array.isArray(n[o])&&t(n[o])}(t(e||{})),r}},64898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatFeeHistory=void 0,t.formatFeeHistory=function(e){return{baseFeePerGas:e.baseFeePerGas.map((e=>BigInt(e))),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map((e=>e.map((e=>BigInt(e)))))}}},621370:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineFormatter=void 0,t.defineFormatter=function(e,t){return({exclude:r,format:n})=>({exclude:r,format:e=>{const i=t(e);if(r)for(const t of r)delete i[t];return{...i,...n(e)}},type:e})}},873886:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatLog=void 0,t.formatLog=function(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}},643542:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatProof=void 0;const n=r(419970);t.formatProof=function(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?(0,n.hexToNumber)(e.nonce):void 0,storageProof:e.storageProof?(t=e.storageProof,t.map((e=>({...e,value:BigInt(e.value)})))):void 0};var t}},477100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransaction=t.formatTransaction=t.transactionType=void 0;const n=r(15987),i=r(621370);function o(e){const r={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.hexToNumber)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,n.hexToNumber)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?t.transactionType[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return r.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof r.v){if(0n===r.v||27n===r.v)return 0;if(1n===r.v||28n===r.v)return 1;if(r.v>=35n)return r.v%2n===0n?1:0}})(),"legacy"===r.type&&(delete r.accessList,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas,delete r.yParity),"eip2930"===r.type&&(delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),r}t.transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"},t.formatTransaction=o,t.defineTransaction=(0,i.defineFormatter)("transaction",o)},928490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionReceipt=t.formatTransactionReceipt=void 0;const n=r(15987),i=r(621370),o=r(873886),a=r(477100),s={"0x0":"reverted","0x1":"success"};function c(e){return{...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map((e=>(0,o.formatLog)(e))):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.hexToNumber)(e.transactionIndex):null,status:e.status?s[e.status]:null,type:e.type?a.transactionType[e.type]||e.type:null}}t.formatTransactionReceipt=c,t.defineTransactionReceipt=(0,i.defineFormatter)("transactionReceipt",c)},575847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionRequest=t.formatTransactionRequest=t.rpcTransactionType=void 0;const n=r(214368),i=r(621370);function o(e){return{...e,gas:void 0!==e.gas?(0,n.numberToHex)(e.gas):void 0,gasPrice:void 0!==e.gasPrice?(0,n.numberToHex)(e.gasPrice):void 0,maxFeePerGas:void 0!==e.maxFeePerGas?(0,n.numberToHex)(e.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==e.maxPriorityFeePerGas?(0,n.numberToHex)(e.maxPriorityFeePerGas):void 0,nonce:void 0!==e.nonce?(0,n.numberToHex)(e.nonce):void 0,type:void 0!==e.type?t.rpcTransactionType[e.type]:void 0,value:void 0!==e.value?(0,n.numberToHex)(e.value):void 0}}t.rpcTransactionType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"},t.formatTransactionRequest=o,t.defineTransactionRequest=(0,i.defineFormatter)("transactionRequest",o)},366956:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAction=void 0,t.getAction=function(e,t,r){return n=>e[t.name||r]?.(n)??t(e,n)}},110566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEventSelector=void 0;const n=r(184962),i=r(932917),o=r(829336);t.getEventSelector=e=>{return t=(0,i.getEventSignature)(e),(0,o.keccak256)((0,n.toBytes)(t));var t}},932917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEventSignature=void 0;const n=r(519813);t.getEventSignature=e=>(0,n.getFunctionSignature)(e)},801462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFunctionSelector=void 0;const n=r(93577),i=r(184962),o=r(519813),a=r(829336);t.getFunctionSelector=e=>{return(0,n.slice)((t=(0,o.getFunctionSignature)(e),(0,a.keccak256)((0,i.toBytes)(t))),0,4);var t}},519813:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFunctionSignature=void 0;const n=r(208557),i=r(680312);t.getFunctionSignature=e=>{const t="string"==typeof e?e:(0,n.formatAbiItem)(e);return(0,i.normalizeSignature)(t)}},920899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHash=void 0;const n=r(771482),i=r(269662);t.isHash=function(e){return(0,n.isHex)(e)&&32===(0,i.size)(e)}},829336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;const n=r(641140),i=r(771482),o=r(184962),a=r(214368);t.keccak256=function(e,t){const r=t||"hex",s=(0,n.keccak_256)((0,i.isHex)(e,{strict:!1})?(0,o.toBytes)(e):e);return"bytes"===r?s:(0,a.toHex)(s)}},680312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeSignature=void 0;const n=r(192857);t.normalizeSignature=function(e){let t=!0,r="",i=0,o="",a=!1;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=void 0;const n=r(788659),i=r(771482),o=r(184962),a=r(214368);t.ripemd160=function(e,t){const r=t||"hex",s=(0,n.ripemd160)((0,i.isHex)(e,{strict:!1})?(0,o.toBytes)(e):e);return"bytes"===r?s:(0,a.toHex)(s)}},875248:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha256=void 0;const n=r(108348),i=r(771482),o=r(184962),a=r(214368);t.sha256=function(e,t){const r=t||"hex",s=(0,n.sha256)((0,i.isHex)(e,{strict:!1})?(0,o.toBytes)(e):e);return"bytes"===r?s:(0,a.toHex)(s)}},419970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=t.extractFunctionParts=t.extractFunctionType=t.extractFunctionParams=t.extractFunctionName=t.isAddressEqual=t.isAddress=t.getAddress=t.getCreate2Address=t.getCreateAddress=t.getContractAddress=t.publicKeyToAddress=t.parseAccount=t.formatAbiParams=t.formatAbiItem=t.formatAbiItemWithArgs=t.encodePacked=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.getAbiItem=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeAbiParameters=t.validateTypedData=t.stringify=t.rpc=t.getSocket=t.integerRegex=t.bytesRegex=t.arrayRegex=t.getChainContractAddress=t.extractChain=t.defineChain=t.assertCurrentChain=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.buildRequest=t.isDeterministicError=void 0,t.getEstimateGasError=t.getContractError=t.getCallError=t.getNodeError=t.containsNodeError=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBigInt=t.hexToBool=t.fromHex=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.bytesToBigInt=t.stringToHex=t.numberToHex=t.toHex=t.bytesToHex=t.boolToHex=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.toBytes=t.boolToBytes=t.toRlp=t.extract=t.formatTransactionRequest=t.defineTransactionRequest=t.defineTransactionReceipt=t.formatLog=t.transactionType=t.formatTransaction=t.defineTransaction=t.formatBlock=t.defineBlock=t.trim=t.sliceHex=t.sliceBytes=t.slice=t.size=t.padHex=t.padBytes=t.pad=t.isHex=t.isBytes=t.concatHex=t.concatBytes=void 0,t.parseGwei=t.parseEther=t.parseUnits=t.formatUnits=t.formatGwei=t.formatEther=t.serializeAccessList=t.serializeTransaction=t.prepareTransactionRequest=t.parseTransaction=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.getTransactionType=t.getSerializedTransactionType=t.hashMessage=t.verifyTypedData=t.verifyMessage=t.recoverTypedDataAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.hashTypedData=t.ripemd160=t.sha256=t.keccak256=t.isHash=t.getFunctionSelector=t.getEventSelector=t.defineFormatter=t.getTransactionError=void 0;var n=r(996961);Object.defineProperty(t,"isDeterministicError",{enumerable:!0,get:function(){return n.isDeterministicError}}),Object.defineProperty(t,"buildRequest",{enumerable:!0,get:function(){return n.buildRequest}});var i=r(78383);Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return i.ccipFetch}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return i.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return i.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return i.offchainLookupSignature}});var o=r(755014);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return o.assertCurrentChain}});var a=r(293300);Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return a.defineChain}});var s=r(178224);Object.defineProperty(t,"extractChain",{enumerable:!0,get:function(){return s.extractChain}});var c=r(778849);Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return c.getChainContractAddress}});var u=r(685797);Object.defineProperty(t,"arrayRegex",{enumerable:!0,get:function(){return u.arrayRegex}}),Object.defineProperty(t,"bytesRegex",{enumerable:!0,get:function(){return u.bytesRegex}}),Object.defineProperty(t,"integerRegex",{enumerable:!0,get:function(){return u.integerRegex}});var l=r(280817);Object.defineProperty(t,"getSocket",{enumerable:!0,get:function(){return l.getSocket}}),Object.defineProperty(t,"rpc",{enumerable:!0,get:function(){return l.rpc}});var d=r(766527);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}});var f=r(72318);Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return f.validateTypedData}});var h=r(480507);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return h.decodeAbiParameters}});var p=r(250054);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return p.decodeErrorResult}});var g=r(538507);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return g.decodeEventLog}});var m=r(509025);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return m.decodeFunctionData}});var y=r(608540);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return y.decodeFunctionResult}});var b=r(689219);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return b.encodeAbiParameters}});var v=r(981618);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return v.encodeDeployData}});var w=r(580494);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return w.encodeErrorResult}});var A=r(607873);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return A.encodeEventTopics}});var C=r(36217);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return C.encodeFunctionData}});var E=r(820708);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return E.encodeFunctionResult}});var x=r(517706);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return x.getAbiItem}});var S=r(208557);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return S.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return S.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return S.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return S.parseAbiParameters}});var I=r(668597);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return I.encodePacked}});var k=r(306430);Object.defineProperty(t,"formatAbiItemWithArgs",{enumerable:!0,get:function(){return k.formatAbiItemWithArgs}});var _=r(539807);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return _.formatAbiItem}}),Object.defineProperty(t,"formatAbiParams",{enumerable:!0,get:function(){return _.formatAbiParams}});var T=r(157449);Object.defineProperty(t,"parseAccount",{enumerable:!0,get:function(){return T.parseAccount}});var M=r(535896);Object.defineProperty(t,"publicKeyToAddress",{enumerable:!0,get:function(){return M.publicKeyToAddress}});var P=r(74763);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return P.getContractAddress}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return P.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return P.getCreate2Address}});var j=r(115257);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return j.getAddress}});var D=r(208305);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return D.isAddress}});var O=r(651213);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return O.isAddressEqual}});var B=r(241772);Object.defineProperty(t,"extractFunctionName",{enumerable:!0,get:function(){return B.extractFunctionName}}),Object.defineProperty(t,"extractFunctionParams",{enumerable:!0,get:function(){return B.extractFunctionParams}}),Object.defineProperty(t,"extractFunctionType",{enumerable:!0,get:function(){return B.extractFunctionType}}),Object.defineProperty(t,"extractFunctionParts",{enumerable:!0,get:function(){return B.extractFunctionParts}});var N=r(283755);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return N.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return N.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return N.concatHex}});var R=r(270732);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return R.isBytes}});var L=r(771482);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return L.isHex}});var F=r(511965);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return F.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return F.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return F.padHex}});var U=r(269662);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return U.size}});var z=r(93577);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return z.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return z.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return z.sliceHex}});var H=r(939415);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return H.trim}});var V=r(483849);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return V.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return V.formatBlock}});var K=r(477100);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return K.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return K.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return K.transactionType}});var G=r(873886);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return G.formatLog}});var q=r(928490);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return q.defineTransactionReceipt}});var Q=r(575847);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return Q.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return Q.formatTransactionRequest}});var W=r(456941);Object.defineProperty(t,"extract",{enumerable:!0,get:function(){return W.extract}});var J=r(246915);Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return J.toRlp}});var Y=r(184962);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return Y.boolToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return Y.toBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return Y.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return Y.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return Y.stringToBytes}});var Z=r(214368);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return Z.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return Z.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return Z.toHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return Z.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return Z.stringToHex}});var $=r(441049);Object.defineProperty(t,"bytesToBigInt",{enumerable:!0,get:function(){return $.bytesToBigInt}}),Object.defineProperty(t,"bytesToBigint",{enumerable:!0,get:function(){return $.bytesToBigInt}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return $.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return $.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return $.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return $.fromBytes}});var X=r(15987);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return X.fromHex}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return X.hexToBool}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return X.hexToBigInt}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return X.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return X.hexToString}});var ee=r(734308);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return ee.fromRlp}});var te=r(611132);Object.defineProperty(t,"containsNodeError",{enumerable:!0,get:function(){return te.containsNodeError}}),Object.defineProperty(t,"getNodeError",{enumerable:!0,get:function(){return te.getNodeError}});var re=r(551868);Object.defineProperty(t,"getCallError",{enumerable:!0,get:function(){return re.getCallError}});var ne=r(868062);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return ne.getContractError}});var ie=r(642515);Object.defineProperty(t,"getEstimateGasError",{enumerable:!0,get:function(){return ie.getEstimateGasError}});var oe=r(726214);Object.defineProperty(t,"getTransactionError",{enumerable:!0,get:function(){return oe.getTransactionError}});var ae=r(621370);Object.defineProperty(t,"defineFormatter",{enumerable:!0,get:function(){return ae.defineFormatter}});var se=r(110566);Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return se.getEventSelector}});var ce=r(801462);Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return ce.getFunctionSelector}});var ue=r(920899);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return ue.isHash}});var le=r(829336);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return le.keccak256}});var de=r(875248);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return de.sha256}});var fe=r(381855);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return fe.ripemd160}});var he=r(281835);Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return he.hashTypedData}});var pe=r(966795);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return pe.recoverAddress}});var ge=r(924674);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return ge.recoverMessageAddress}});var me=r(832899);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return me.recoverPublicKey}});var ye=r(386399);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return ye.recoverTypedDataAddress}});var be=r(670043);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return be.verifyMessage}});var ve=r(473296);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return ve.verifyTypedData}});var we=r(73588);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return we.hashMessage}});var Ae=r(880523);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return Ae.getSerializedTransactionType}});var Ce=r(933105);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return Ce.getTransactionType}});var Ee=r(71526);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return Ee.assertRequest}});var xe=r(293523);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return xe.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return xe.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return xe.assertTransactionLegacy}});var Se=r(23356);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return Se.parseTransaction}});var Ie=r(887934);Object.defineProperty(t,"prepareTransactionRequest",{enumerable:!0,get:function(){return Ie.prepareTransactionRequest}});var ke=r(823067);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return ke.serializeTransaction}});var _e=r(706653);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return _e.serializeAccessList}});var Te=r(896668);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return Te.formatEther}});var Me=r(929014);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return Me.formatGwei}});var Pe=r(516159);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return Pe.formatUnits}});var je=r(914491);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return je.parseUnits}});var De=r(68184);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return De.parseEther}});var Oe=r(406234);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return Oe.parseGwei}})},767566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observe=t.cleanupCache=t.listenersCache=void 0,t.listenersCache=new Map,t.cleanupCache=new Map;let r=0;t.observe=function(e,n,i){const o=++r,a=()=>t.listenersCache.get(e)||[],s=()=>{const r=t.cleanupCache.get(e);1===a().length&&r&&r(),(()=>{const r=a();t.listenersCache.set(e,r.filter((e=>e.id!==o)))})()},c=a();if(t.listenersCache.set(e,[...c,{id:o,fns:n}]),c&&c.length>0)return s;const u={};for(const t in n)u[t]=(...e)=>{const r=a();if(0!==r.length)for(const n of r)n.fns[t]?.(...e)};const l=i(u);return"function"==typeof l&&t.cleanupCache.set(e,l),s}},810733:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.poll=void 0;const n=r(6189);t.poll=function(e,{emitOnBegin:t,initialWaitTime:r,interval:i}){let o=!0;const a=()=>o=!1;return(async()=>{let s;t&&(s=await e({unpoll:a}));const c=await(r?.(s))??i;await(0,n.wait)(c);const u=async()=>{o&&(await e({unpoll:a}),await(0,n.wait)(i),u())};u()})(),a}},75591:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBatchScheduler=void 0;const r=new Map;t.createBatchScheduler=function({fn:e,id:t,shouldSplitBatch:n,wait:i=0,sort:o}){const a=async()=>{const t=c();s();const r=t.map((({args:e})=>e));0!==r.length&&e(r).then((e=>{o&&Array.isArray(e)&&e.sort(o);for(let r=0;r{for(let r=0;rr.delete(t),c=()=>r.get(t)||[],u=e=>r.set(t,[...c(),e]);return{flush:s,async schedule(e){const t={},r=new Promise(((e,r)=>{t.resolve=e,t.reject=r})),o=n?.([...c().map((({args:e})=>e)),e]);o&&a();return c().length>0?(u({args:e,pendingPromise:t}),r):(u({args:e,pendingPromise:t}),setTimeout(a,i),r)}}}},517370:(e,t)=>{"use strict";function r(e){const r=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),n=r(e,t.promiseCache),i=r(e,t.responseCache);return{clear:()=>{n.clear(),i.clear()},promise:n,response:i}}Object.defineProperty(t,"__esModule",{value:!0}),t.withCache=t.getCache=t.responseCache=t.promiseCache=void 0,t.promiseCache=new Map,t.responseCache=new Map,t.getCache=r,t.withCache=async function(e,{cacheKey:t,cacheTime:n=1/0}){const i=r(t),o=i.response.get();if(o&&n>0){if((new Date).getTime()-o.created.getTime(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withRetry=void 0;const n=r(6189);t.withRetry=function(e,{delay:t=100,retryCount:r=2,shouldRetry:i=()=>!0}={}){return new Promise(((o,a)=>{const s=async({count:c=0}={})=>{try{const t=await e();o(t)}catch(u){if(c{const r="function"==typeof t?t({count:c,error:e}):t;r&&await(0,n.wait)(r),s({count:c+1})})({error:u});a(u)}};s()}))}},364971:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=void 0,t.withTimeout=function(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:n}){return new Promise(((i,o)=>{(async()=>{let a;try{const s=new AbortController;r>0&&(a=setTimeout((()=>{n?s.abort():o(t)}),r)),i(await e({signal:s?.signal}))}catch(s){"AbortError"===s.name&&o(t),o(s)}finally{clearTimeout(a)}})()}))}},685797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.integerRegex=t.bytesRegex=t.arrayRegex=void 0,t.arrayRegex=/^(.*)\[([0-9]*)\]$/,t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/},280817:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=t.getSocket=t.socketsCache=void 0;const n=r(466027),i=r(997811),o=r(75591),a=r(364971),s=r(766527);let c=0;t.socketsCache=new Map,t.getSocket=async function(e){let r=t.socketsCache.get(e);if(r)return r;const{schedule:i}=(0,o.createBatchScheduler)({id:e,fn:async()=>{const i=new n.WebSocket(e),o=new Map,a=new Map,s=({data:e})=>{const t=JSON.parse(e),r="eth_subscription"===t.method,n=r?t.params.subscription:t.id,i=r?a:o,s=i.get(n);s&&s({data:e}),r||i.delete(n)},c=()=>{t.socketsCache.delete(e),i.removeEventListener("close",c),i.removeEventListener("message",s)};return i.addEventListener("close",c),i.addEventListener("message",s),i.readyState===n.WebSocket.CONNECTING&&await new Promise(((e,t)=>{i&&(i.onopen=e,i.onerror=t)})),r=Object.assign(i,{requests:o,subscriptions:a}),t.socketsCache.set(e,r),[r]}}),[a,[s]]=await i();return s},t.rpc={http:async function(e,{body:t,fetchOptions:r={},timeout:n=1e4}){const{headers:o,method:u,signal:l}=r;try{const d=await(0,a.withTimeout)((async({signal:i})=>await fetch(e,{...r,body:Array.isArray(t)?(0,s.stringify)(t.map((e=>({jsonrpc:"2.0",id:e.id??c++,...e})))):(0,s.stringify)({jsonrpc:"2.0",id:t.id??c++,...t}),headers:{...o,"Content-Type":"application/json"},method:u||"POST",signal:l||(n>0?i:void 0)})),{errorInstance:new i.TimeoutError({body:t,url:e}),timeout:n,signal:!0});let f;if(f=d.headers.get("Content-Type")?.startsWith("application/json")?await d.json():await d.text(),!d.ok)throw new i.HttpRequestError({body:t,details:(0,s.stringify)(f.error)||d.statusText,headers:d.headers,status:d.status,url:e});return f}catch(d){if(d instanceof i.HttpRequestError)throw d;if(d instanceof i.TimeoutError)throw d;throw new i.HttpRequestError({body:t,details:d.message,url:e})}},webSocket:function(e,{body:t,onResponse:r}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new i.WebSocketRequestError({body:t,url:e.url,details:"Socket is closed."});const n=c++,o=({data:i})=>{const a=JSON.parse(i);"number"==typeof a.id&&n!==a.id||(r?.(a),"eth_subscribe"===t.method&&"string"==typeof a.result&&e.subscriptions.set(a.result,o),"eth_unsubscribe"===t.method&&e.subscriptions.delete(t.params?.[0]))};return e.requests.set(n,o),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:n})),e},webSocketAsync:async function(e,{body:r,timeout:n=1e4}){return(0,a.withTimeout)((()=>new Promise((n=>t.rpc.webSocket(e,{body:r,onResponse:n})))),{errorInstance:new i.TimeoutError({body:r,url:e.url}),timeout:n})}}},632154:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactSignatureToHex=void 0;const n=r(484183),i=r(15987);t.compactSignatureToHex=function({r:e,yParityAndS:t}){return`0x${new n.secp256k1.Signature((0,i.hexToBigInt)(e),(0,i.hexToBigInt)(t)).toCompactHex()}`}},339801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactSignatureToSignature=void 0;const n=r(184962),i=r(214368);t.compactSignatureToSignature=function({r:e,yParityAndS:t}){const r=(0,n.hexToBytes)(t),o=128&r[0]?28n:27n,a=r;return 28n===o&&(a[0]&=127),{r:e,s:(0,i.bytesToHex)(a),v:o}}},73588:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashMessage=void 0;const n=r(510632),i=r(283755),o=r(184962),a=r(829336);t.hashMessage=function(e,t){const r="string"==typeof e?(0,o.stringToBytes)(e):e.raw instanceof Uint8Array?e.raw:(0,o.toBytes)(e.raw),s=(0,o.stringToBytes)(`${n.presignMessagePrefix}${r.length}`);return(0,a.keccak256)((0,i.concat)([s,r]),t)}},281835:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashDomain=t.hashTypedData=void 0;const n=r(689219),i=r(283755),o=r(214368),a=r(829336),s=r(72318);function c({domain:e,types:t}){return u({data:e,primaryType:"EIP712Domain",types:t})}function u({data:e,primaryType:t,types:r}){const n=l({data:e,primaryType:t,types:r});return(0,a.keccak256)(n)}function l({data:e,primaryType:t,types:r}){const i=[{type:"bytes32"}],o=[d({primaryType:t,types:r})];for(const n of r[t]){const[t,a]=h({types:r,name:n.name,type:n.type,value:e[n.name]});i.push(t),o.push(a)}return(0,n.encodeAbiParameters)(i,o)}function d({primaryType:e,types:t}){const r=(0,o.toHex)(function({primaryType:e,types:t}){let r="";const n=f({primaryType:e,types:t});n.delete(e);const i=[e,...Array.from(n).sort()];for(const o of i)r+=`${o}(${t[o].map((({name:e,type:t})=>`${t} ${e}`)).join(",")})`;return r}({primaryType:e,types:t}));return(0,a.keccak256)(r)}function f({primaryType:e,types:t},r=new Set){const n=e.match(/^\w*/u),i=n?.[0];if(r.has(i)||void 0===t[i])return r;r.add(i);for(const o of t[i])f({primaryType:o.type,types:t},r);return r}function h({types:e,name:t,type:r,value:i}){if(void 0!==e[r])return[{type:"bytes32"},(0,a.keccak256)(l({data:i,primaryType:r,types:e}))];if("bytes"===r){return i=`0x${(i.length%2?"0":"")+i.slice(2)}`,[{type:"bytes32"},(0,a.keccak256)(i)]}if("string"===r)return[{type:"bytes32"},(0,a.keccak256)((0,o.toHex)(i))];if(r.lastIndexOf("]")===r.length-1){const o=r.slice(0,r.lastIndexOf("[")),s=i.map((r=>h({name:t,type:o,types:e,value:r})));return[{type:"bytes32"},(0,a.keccak256)((0,n.encodeAbiParameters)(s.map((([e])=>e)),s.map((([,e])=>e))))]}return[{type:r},i]}t.hashTypedData=function({domain:e,message:t,primaryType:r,types:n}){const o=void 0===e?{}:e,l={EIP712Domain:(0,s.getTypesForEIP712Domain)({domain:o}),...n};(0,s.validateTypedData)({domain:o,message:t,primaryType:r,types:l});const d=["0x1901"];return o&&d.push(c({domain:o,types:l})),"EIP712Domain"!==r&&d.push(u({data:t,primaryType:r,types:l})),(0,a.keccak256)((0,i.concat)(d))},t.hashDomain=c},223674:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToCompactSignature=void 0;const n=r(484183),i=r(214368);t.hexToCompactSignature=function(e){const{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130));return{r:(0,i.numberToHex)(t,{size:32}),yParityAndS:(0,i.numberToHex)(r,{size:32})}}},615769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToSignature=void 0;const n=r(484183),i=r(214368);t.hexToSignature=function(e){const{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130)),o=BigInt(`0x${e.slice(130)}`);return{r:(0,i.numberToHex)(t,{size:32}),s:(0,i.numberToHex)(r,{size:32}),v:o}}},966795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=void 0;const n=r(535896),i=r(832899);t.recoverAddress=async function({hash:e,signature:t}){return(0,n.publicKeyToAddress)(await(0,i.recoverPublicKey)({hash:e,signature:t}))}},924674:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverMessageAddress=void 0;const n=r(73588),i=r(966795);t.recoverMessageAddress=async function({message:e,signature:t}){return(0,i.recoverAddress)({hash:(0,n.hashMessage)(e),signature:t})}},832899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverPublicKey=void 0;const n=r(771482),i=r(15987),o=r(214368);t.recoverPublicKey=async function({hash:e,signature:t}){const a=(0,n.isHex)(t)?t:(0,o.toHex)(t),s=(0,n.isHex)(e)?e:(0,o.toHex)(e);let c=(0,i.hexToNumber)(`0x${a.slice(130)}`);0!==c&&1!==c||(c+=27);const{secp256k1:u}=await Promise.resolve().then((()=>r(484183)));return`0x${u.Signature.fromCompact(a.substring(2,130)).addRecoveryBit(c-27).recoverPublicKey(s.substring(2)).toHex(!1)}`}},386399:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedDataAddress=void 0;const n=r(281835),i=r(966795);t.recoverTypedDataAddress=async function({domain:e,message:t,primaryType:r,signature:o,types:a}){return(0,i.recoverAddress)({hash:(0,n.hashTypedData)({domain:e,message:t,primaryType:r,types:a}),signature:o})}},919453:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signatureToCompactSignature=void 0;const n=r(419970);t.signatureToCompactSignature=function(e){const{r:t,s:r,v:i}=e;let o=r;if(1n===i-27n){const e=(0,n.hexToBytes)(r);e[0]|=128,o=(0,n.bytesToHex)(e)}return{r:t,yParityAndS:o}}},822063:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signatureToHex=void 0;const n=r(484183),i=r(15987),o=r(214368);t.signatureToHex=function({r:e,s:t,v:r}){return`0x${new n.secp256k1.Signature((0,i.hexToBigInt)(e),(0,i.hexToBigInt)(t)).toCompactHex()}${(0,o.toHex)(r).slice(2)}`}},670043:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=void 0;const n=r(115257),i=r(651213),o=r(924674);t.verifyMessage=async function({address:e,message:t,signature:r}){return(0,i.isAddressEqual)((0,n.getAddress)(e),await(0,o.recoverMessageAddress)({message:t,signature:r}))}},473296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=void 0;const n=r(115257),i=r(651213),o=r(386399);t.verifyTypedData=async function({address:e,domain:t,message:r,primaryType:a,signature:s,types:c}){return(0,i.isAddressEqual)((0,n.getAddress)(e),await(0,o.recoverTypedDataAddress)({domain:t,message:r,primaryType:a,signature:s,types:c}))}},766527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0;t.stringify=(e,t,r)=>JSON.stringify(e,((e,r)=>{const n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n}),r)},71526:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertRequest=void 0;const n=r(157449),i=r(79746),o=r(585296),a=r(88094),s=r(208305);t.assertRequest=function(e){const{account:t,gasPrice:r,maxFeePerGas:c,maxPriorityFeePerGas:u,to:l}=e,d=t?(0,n.parseAccount)(t):void 0;if(d&&!(0,s.isAddress)(d.address))throw new i.InvalidAddressError({address:d.address});if(l&&!(0,s.isAddress)(l))throw new i.InvalidAddressError({address:l});if(void 0!==r&&(void 0!==c||void 0!==u))throw new a.FeeConflictError;if(c&&c>2n**256n-1n)throw new o.FeeCapTooHighError({maxFeePerGas:c});if(u&&c&&u>c)throw new o.TipAboveFeeCapError({maxFeePerGas:c,maxPriorityFeePerGas:u})}},293523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=void 0;const n=r(79746),i=r(192857),o=r(601679),a=r(585296),s=r(208305);t.assertTransactionEIP1559=function(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:u,to:l}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(c)throw new i.BaseError("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(u&&u>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:u});if(r&&u&&r>u)throw new a.TipAboveFeeCapError({maxFeePerGas:u,maxPriorityFeePerGas:r})},t.assertTransactionEIP2930=function(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:u,to:l}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(r||u)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(c&&c>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:c})},t.assertTransactionLegacy=function(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:u,to:l,accessList:d}=e;if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(void 0!==t&&t<=0)throw new o.InvalidChainIdError({chainId:t});if(r||u)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(c&&c>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:c});if(d)throw new i.BaseError("`accessList` is not a valid Legacy Transaction attribute.")}},880523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSerializedTransactionType=void 0;const n=r(88094),i=r(93577),o=r(15987);t.getSerializedTransactionType=function(e){const t=(0,i.sliceHex)(e,0,1);if("0x02"===t)return"eip1559";if("0x01"===t)return"eip2930";if("0x"!==t&&(0,o.hexToNumber)(t)>=192)return"legacy";throw new n.InvalidSerializedTransactionTypeError({serializedType:t})}},933105:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionType=void 0;const n=r(88094);t.getTransactionType=function(e){if(e.type)return e.type;if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new n.InvalidSerializableTransactionError({transaction:e})}},23356:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAccessList=t.toTransactionArray=t.parseTransaction=void 0;const n=r(79746),i=r(88094),o=r(208305),a=r(771482),s=r(511965),c=r(939415),u=r(15987),l=r(734308),d=r(920899),f=r(293523),h=r(880523);function p(e){return(0,l.fromRlp)(`0x${e.slice(4)}`,"hex")}function g(e){const t=[];for(let r=0;r(0,d.isHash)(e)?e:(0,c.trim)(e)))})}return t}function m(e){const t=e.slice(-3),r="0x"===t[0]||0n===(0,u.hexToBigInt)(t[0])?27n:28n;return{r:(0,s.padHex)(t[1],{size:32}),s:(0,s.padHex)(t[2],{size:32}),v:r,yParity:27n===r?0:1}}t.parseTransaction=function(e){const t=(0,h.getSerializedTransactionType)(e);return"eip1559"===t?function(e){const t=p(e),[r,n,o,s,c,l,d,h,y,b,v,w]=t;if(9!==t.length&&12!==t.length)throw new i.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:o,maxFeePerGas:s,gas:c,to:l,value:d,data:h,accessList:y,...t.length>9?{v:b,r:v,s:w}:{}},serializedTransaction:e,type:"eip1559"});const A={chainId:(0,u.hexToNumber)(r),type:"eip1559"};(0,a.isHex)(l)&&"0x"!==l&&(A.to=l);(0,a.isHex)(c)&&"0x"!==c&&(A.gas=(0,u.hexToBigInt)(c));(0,a.isHex)(h)&&"0x"!==h&&(A.data=h);(0,a.isHex)(n)&&"0x"!==n&&(A.nonce=(0,u.hexToNumber)(n));(0,a.isHex)(d)&&"0x"!==d&&(A.value=(0,u.hexToBigInt)(d));(0,a.isHex)(s)&&"0x"!==s&&(A.maxFeePerGas=(0,u.hexToBigInt)(s));(0,a.isHex)(o)&&"0x"!==o&&(A.maxPriorityFeePerGas=(0,u.hexToBigInt)(o));0!==y.length&&"0x"!==y&&(A.accessList=g(y));(0,f.assertTransactionEIP1559)(A);return{...12===t.length?m(t):void 0,...A}}(e):"eip2930"===t?function(e){const t=p(e),[r,n,o,s,c,l,d,h,y,b,v]=t;if(8!==t.length&&11!==t.length)throw new i.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,gasPrice:o,gas:s,to:c,value:l,data:d,accessList:h,...t.length>8?{v:y,r:b,s:v}:{}},serializedTransaction:e,type:"eip2930"});const w={chainId:(0,u.hexToNumber)(r),type:"eip2930"};(0,a.isHex)(c)&&"0x"!==c&&(w.to=c);(0,a.isHex)(s)&&"0x"!==s&&(w.gas=(0,u.hexToBigInt)(s));(0,a.isHex)(d)&&"0x"!==d&&(w.data=d);(0,a.isHex)(n)&&"0x"!==n&&(w.nonce=(0,u.hexToNumber)(n));(0,a.isHex)(l)&&"0x"!==l&&(w.value=(0,u.hexToBigInt)(l));(0,a.isHex)(o)&&"0x"!==o&&(w.gasPrice=(0,u.hexToBigInt)(o));0!==h.length&&"0x"!==h&&(w.accessList=g(h));(0,f.assertTransactionEIP2930)(w);return{...11===t.length?m(t):void 0,...w}}(e):function(e){const t=(0,l.fromRlp)(e,"hex"),[r,n,o,s,c,d,h,p,g]=t;if(6!==t.length&&9!==t.length)throw new i.InvalidSerializedTransactionError({attributes:{nonce:r,gasPrice:n,gas:o,to:s,value:c,data:d,...t.length>6?{v:h,r:p,s:g}:{}},serializedTransaction:e,type:"legacy"});const m={type:"legacy"};(0,a.isHex)(s)&&"0x"!==s&&(m.to=s);(0,a.isHex)(o)&&"0x"!==o&&(m.gas=(0,u.hexToBigInt)(o));(0,a.isHex)(d)&&"0x"!==d&&(m.data=d);(0,a.isHex)(r)&&"0x"!==r&&(m.nonce=(0,u.hexToNumber)(r));(0,a.isHex)(c)&&"0x"!==c&&(m.value=(0,u.hexToBigInt)(c));(0,a.isHex)(n)&&"0x"!==n&&(m.gasPrice=(0,u.hexToBigInt)(n));if((0,f.assertTransactionLegacy)(m),6===t.length)return m;const y=(0,a.isHex)(h)&&"0x"!==h?(0,u.hexToBigInt)(h):0n;if("0x"===g&&"0x"===p)return y>0&&(m.chainId=Number(y)),m;const b=y,v=Number((b-35n)/2n);if(v>0)m.chainId=v;else if(27n!==b&&28n!==b)throw new i.InvalidLegacyVError({v:b});return m.v=b,m.s=g,m.r=p,m}(e)},t.toTransactionArray=p,t.parseAccessList=g},706653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeAccessList=void 0;const n=r(79746),i=r(88094),o=r(208305);t.serializeAccessList=function(e){if(!e||0===e.length)return[];const t=[];for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeTransaction=void 0;const n=r(88094),i=r(283755),o=r(939415),a=r(214368),s=r(246915),c=r(293523),u=r(933105),l=r(706653);t.serializeTransaction=function(e,t){const r=(0,u.getTransactionType)(e);return"eip1559"===r?function(e,t){const{chainId:r,gas:n,nonce:u,to:d,value:f,maxFeePerGas:h,maxPriorityFeePerGas:p,accessList:g,data:m}=e;(0,c.assertTransactionEIP1559)(e);const y=(0,l.serializeAccessList)(g),b=[(0,a.toHex)(r),u?(0,a.toHex)(u):"0x",p?(0,a.toHex)(p):"0x",h?(0,a.toHex)(h):"0x",n?(0,a.toHex)(n):"0x",d??"0x",f?(0,a.toHex)(f):"0x",m??"0x",y];if(t){const e=0n===t.v?"0x":1n===t.v?(0,a.toHex)(1):27n===t.v?"0x":(0,a.toHex)(1);b.push(e,(0,o.trim)(t.r),(0,o.trim)(t.s))}return(0,i.concatHex)(["0x02",(0,s.toRlp)(b)])}(e,t):"eip2930"===r?function(e,t){const{chainId:r,gas:n,data:u,nonce:d,to:f,value:h,accessList:p,gasPrice:g}=e;(0,c.assertTransactionEIP2930)(e);const m=(0,l.serializeAccessList)(p),y=[(0,a.toHex)(r),d?(0,a.toHex)(d):"0x",g?(0,a.toHex)(g):"0x",n?(0,a.toHex)(n):"0x",f??"0x",h?(0,a.toHex)(h):"0x",u??"0x",m];if(t){const e=0n===t.v?"0x":1n===t.v?(0,a.toHex)(1):27n===t.v?"0x":(0,a.toHex)(1);y.push(e,(0,o.trim)(t.r),(0,o.trim)(t.s))}return(0,i.concatHex)(["0x01",(0,s.toRlp)(y)])}(e,t):function(e,t){const{chainId:r=0,gas:i,data:o,nonce:u,to:l,value:d,gasPrice:f}=e;(0,c.assertTransactionLegacy)(e);let h=[u?(0,a.toHex)(u):"0x",f?(0,a.toHex)(f):"0x",i?(0,a.toHex)(i):"0x",l??"0x",d?(0,a.toHex)(d):"0x",o??"0x"];if(t){const e=(()=>{if(r>0)return BigInt(2*r)+BigInt(35n+t.v-27n);if(t.v>=35n){return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n)}const e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new n.InvalidLegacyVError({v:t.v});return e})();h=[...h,(0,a.toHex)(e),t.r,t.s]}else r>0&&(h=[...h,(0,a.toHex)(r),"0x","0x"]);return(0,s.toRlp)(h)}(e,t)}},72318:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.domainSeparator=t.getTypesForEIP712Domain=t.validateTypedData=void 0;const n=r(112060),i=r(79746),o=r(208305),a=r(269662),s=r(214368),c=r(685797),u=r(281835);function l({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},"number"==typeof e?.chainId&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}t.validateTypedData=function({domain:e,message:t,primaryType:r,types:u}){const l=u,d=(e,t)=>{for(const r of e){const{name:e,type:u}=r,f=u,h=t[e],p=f.match(c.integerRegex);if(p&&("number"==typeof h||"bigint"==typeof h)){const[e,t,r]=p;(0,s.numberToHex)(h,{signed:"int"===t,size:parseInt(r)/8})}if("address"===f&&"string"==typeof h&&!(0,o.isAddress)(h))throw new i.InvalidAddressError({address:h});const g=f.match(c.bytesRegex);if(g){const[e,t]=g;if(t&&(0,a.size)(h)!==parseInt(t))throw new n.BytesSizeMismatchError({expectedSize:parseInt(t),givenSize:(0,a.size)(h)})}const m=l[f];m&&d(m,h)}};if(l.EIP712Domain&&e&&d(l.EIP712Domain,e),"EIP712Domain"!==r){const e=l[r];d(e,t)}},t.getTypesForEIP712Domain=l,t.domainSeparator=function({domain:e}){return(0,u.hashDomain)({domain:e,types:{EIP712Domain:l({domain:e})}})}},643540:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uid=void 0;let r,n=256;t.uid=function(e=11){if(!r||n+e>512){r="",n=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(n,n+++e)}},896668:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatEther=void 0;const n=r(886734),i=r(516159);t.formatEther=function(e,t="wei"){return(0,i.formatUnits)(e,n.etherUnits[t])}},929014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatGwei=void 0;const n=r(886734),i=r(516159);t.formatGwei=function(e,t="wei"){return(0,i.formatUnits)(e,n.gweiUnits[t])}},516159:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUnits=void 0,t.formatUnits=function(e,t){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[i,o]=[r.slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${o?`.${o}`:""}`}},68184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=void 0;const n=r(886734),i=r(914491);t.parseEther=function(e,t="wei"){return(0,i.parseUnits)(e,n.etherUnits[t])}},406234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseGwei=void 0;const n=r(886734),i=r(914491);t.parseGwei=function(e,t="wei"){return(0,i.parseUnits)(e,n.gweiUnits[t])}},914491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnits=void 0,t.parseUnits=function(e,t){let[r,n="0"]=e.split(".");const i=r.startsWith("-");if(i&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){const[e,i,o]=[n.slice(0,t-1),n.slice(t-1,t),n.slice(t)],a=Math.round(Number(`${i}.${o}`));n=a>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${a}`,n.length>t&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,t)}else n=n.padEnd(t,"0");return BigInt(`${i?"-":""}${r}${n}`)}},6189:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wait=void 0,t.wait=async function(e){return new Promise((t=>setTimeout(t,e)))}},514086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(331635).__exportStar(r(971898),t)},526366:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commABI=void 0,t.commABI=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"channel",type:"address"},{indexed:!1,internalType:"address",name:"delegate",type:"address"}],name:"AddDelegate",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"_chainName",type:"string"},{indexed:!0,internalType:"uint256",name:"_chainID",type:"uint256"},{indexed:!0,internalType:"address",name:"_channelOwnerAddress",type:"address"},{indexed:!1,internalType:"string",name:"_ethereumChannelAddress",type:"string"}],name:"ChannelAlias",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"bytes",name:"publickey",type:"bytes"}],name:"PublicKeyRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"channel",type:"address"},{indexed:!1,internalType:"address",name:"delegate",type:"address"}],name:"RemoveDelegate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"bytes",name:"identity",type:"bytes"}],name:"SendNotification",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"user",type:"address"}],name:"Subscribe",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"user",type:"address"}],name:"Unsubscribe",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"_channel",type:"address"},{indexed:!1,internalType:"address",name:"_user",type:"address"},{indexed:!1,internalType:"uint256",name:"_notifID",type:"uint256"},{indexed:!1,internalType:"string",name:"_notifSettings",type:"string"}],name:"UserNotifcationSettingsAdded",type:"event"},{inputs:[],name:"DOMAIN_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"EPNSCoreAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"NAME_HASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"SEND_NOTIFICATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"SUBSCRIBE_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"UNSUBSCRIBE_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_delegate",type:"address"}],name:"addDelegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_channelList",type:"address[]"}],name:"batchSubscribe",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_channelList",type:"address[]"}],name:"batchUnsubscribe",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"_publicKey",type:"bytes"}],name:"broadcastUserPublicKey",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"chainID",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"chainName",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"uint256",name:"_notifID",type:"uint256"},{internalType:"string",name:"_notifSettings",type:"string"}],name:"changeUserChannelSettings",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"completeMigration",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"delegatedNotificationSenders",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_publicKey",type:"bytes"}],name:"getWalletFromPublicKey",outputs:[{internalType:"address",name:"wallet",type:"address"}],stateMutability:"pure",type:"function"},{inputs:[],name:"governance",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_pushChannelAdmin",type:"address"},{internalType:"string",name:"_chainName",type:"string"}],name:"initialize",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isMigrationComplete",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"address",name:"_user",type:"address"}],name:"isUserSubscribed",outputs:[{internalType:"bool",name:"isSubscriber",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"mapAddressUsers",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startIndex",type:"uint256"},{internalType:"uint256",name:"_endIndex",type:"uint256"},{internalType:"address[]",name:"_channelList",type:"address[]"},{internalType:"address[]",name:"_usersList",type:"address[]"}],name:"migrateSubscribeData",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"pushChannelAdmin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_delegate",type:"address"}],name:"removeDelegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"bytes",name:"_identity",type:"bytes"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"sendNotifBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"bytes",name:"_identity",type:"bytes"}],name:"sendNotification",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_coreAddress",type:"address"}],name:"setEPNSCoreAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_governanceAddress",type:"address"}],name:"setGovernanceAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"subscribe",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"channel",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"subscribeBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"address",name:"_user",type:"address"}],name:"subscribeViaCore",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAdmin",type:"address"}],name:"transferPushChannelAdminControl",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"unsubscribe",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"channel",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"unsubscribeBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"userToChannelNotifs",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"users",outputs:[{internalType:"bool",name:"userActivated",type:"bool"},{internalType:"bool",name:"publicKeyRegistered",type:"bool"},{internalType:"uint256",name:"userStartBlock",type:"uint256"},{internalType:"uint256",name:"subscribedCount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"usersCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_channelAddress",type:"string"}],name:"verifyChannelAlias",outputs:[],stateMutability:"nonpayable",type:"function"}]},124677:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coreABI=void 0,t.coreABI=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"enum EPNSCoreStorageV1_5.ChannelType",name:"channelType",type:"uint8"},{indexed:!1,internalType:"bytes",name:"identity",type:"bytes"}],name:"AddChannel",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!1,internalType:"bytes",name:"_subGraphData",type:"bytes"}],name:"AddSubGraph",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"}],name:"ChannelBlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"_channel",type:"address"},{indexed:!1,internalType:"uint256",name:"totalNotifOptions",type:"uint256"},{indexed:!1,internalType:"string",name:"_notifSettings",type:"string"},{indexed:!1,internalType:"string",name:"_notifDescription",type:"string"}],name:"ChannelNotifcationSettingsAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"ChannelOwnershipTransfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"revoker",type:"address"}],name:"ChannelVerificationRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"verifier",type:"address"}],name:"ChannelVerified",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"amountClaimed",type:"uint256"}],name:"ChatIncentiveClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"uint256",name:"amountRefunded",type:"uint256"}],name:"DeactivateChannel",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"requestSender",type:"address"},{indexed:!1,internalType:"address",name:"requestReceiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amountForReqReceiver",type:"uint256"},{indexed:!1,internalType:"uint256",name:"feePoolAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"timestamp",type:"uint256"}],name:"IncentivizeChatReqReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"uint256",name:"amountDeposited",type:"uint256"}],name:"ReactivateChannel",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"uint256",name:"rewardAmount",type:"uint256"}],name:"RewardsClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"rewardAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"fromEpoch",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tillEpoch",type:"uint256"}],name:"RewardsHarvested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"amountStaked",type:"uint256"}],name:"Staked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"uint256",name:"amountRefunded",type:"uint256"}],name:"TimeBoundChannelDestroyed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"amountUnstaked",type:"uint256"}],name:"Unstaked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!1,internalType:"bytes",name:"identity",type:"bytes"},{indexed:!0,internalType:"uint256",name:"amountDeposited",type:"uint256"}],name:"UpdateChannel",type:"event"},{inputs:[],name:"ADD_CHANNEL_MIN_FEES",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"CHANNEL_POOL_FUNDS",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"CREATE_CHANNEL_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"FEE_AMOUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MIN_POOL_CONTRIBUTION",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"PROTOCOL_POOL_FEES",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"PUSH_TOKEN_ADDRESS",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"REFERRAL_CODE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"UNISWAP_V2_ROUTER",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"WETH_ADDRESS",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"aDaiAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_rewardAmount",type:"uint256"}],name:"addPoolFees",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"_subGraphData",type:"bytes"}],name:"addSubGraph",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startIndex",type:"uint256"},{internalType:"uint256",name:"_endIndex",type:"uint256"},{internalType:"address[]",name:"_channelList",type:"address[]"}],name:"batchVerification",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channelAddress",type:"address"}],name:"blockChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_user",type:"address"},{internalType:"uint256",name:"_epochId",type:"uint256"}],name:"calculateEpochRewards",outputs:[{internalType:"uint256",name:"rewards",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"celebUserFunds",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"channelById",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"channelNotifSettings",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"channelUpdateCounter",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"channels",outputs:[{internalType:"enum EPNSCoreStorageV1_5.ChannelType",name:"channelType",type:"uint8"},{internalType:"uint8",name:"channelState",type:"uint8"},{internalType:"address",name:"verifiedBy",type:"address"},{internalType:"uint256",name:"poolContribution",type:"uint256"},{internalType:"uint256",name:"channelHistoricalZ",type:"uint256"},{internalType:"uint256",name:"channelFairShareCount",type:"uint256"},{internalType:"uint256",name:"channelLastUpdate",type:"uint256"},{internalType:"uint256",name:"channelStartBlock",type:"uint256"},{internalType:"uint256",name:"channelUpdateBlock",type:"uint256"},{internalType:"uint256",name:"channelWeight",type:"uint256"},{internalType:"uint256",name:"expiryTime",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"channelsCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"claimChatIncentives",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_notifOptions",type:"uint256"},{internalType:"string",name:"_notifSettings",type:"string"},{internalType:"string",name:"_notifDescription",type:"string"},{internalType:"uint256",name:"_amountDeposited",type:"uint256"}],name:"createChannelSettings",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"enum EPNSCoreStorageV1_5.ChannelType",name:"_channelType",type:"uint8"},{internalType:"bytes",name:"_identity",type:"bytes"},{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"uint256",name:"_channelExpiryTime",type:"uint256"}],name:"createChannelWithPUSH",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"daiAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tillEpoch",type:"uint256"}],name:"daoHarvestPaginated",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"deactivateChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channelAddress",type:"address"}],name:"destroyTimeBoundChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"epnsCommunicator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"epochDuration",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"epochRewards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"epochToTotalStakedWeight",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"genesisEpoch",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"getChannelVerfication",outputs:[{internalType:"uint8",name:"verificationStatus",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"governance",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"groupFairShareCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"groupHistoricalZ",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"groupLastUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"groupNormalizedWeight",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"requestSender",type:"address"},{internalType:"address",name:"requestReceiver",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"handleChatRequestData",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"harvestAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tillEpoch",type:"uint256"}],name:"harvestPaginated",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_pushChannelAdmin",type:"address"},{internalType:"address",name:"_pushTokenAddress",type:"address"},{internalType:"address",name:"_wethAddress",type:"address"},{internalType:"address",name:"_uniswapRouterAddress",type:"address"},{internalType:"address",name:"_lendingPoolProviderAddress",type:"address"},{internalType:"address",name:"_daiAddress",type:"address"},{internalType:"address",name:"_aDaiAddress",type:"address"},{internalType:"uint256",name:"_referralCode",type:"uint256"}],name:"initialize",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"initializeStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isMigrationComplete",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_from",type:"uint256"},{internalType:"uint256",name:"_to",type:"uint256"}],name:"lastEpochRelative",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"lendingPoolProviderAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"pauseContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"previouslySetEpochRewards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"pushChannelAdmin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"reactivateChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_commAddress",type:"address"}],name:"setEpnsCommunicatorAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_newFees",type:"uint256"}],name:"setFeeAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_governanceAddress",type:"address"}],name:"setGovernanceAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_newFees",type:"uint256"}],name:"setMinChannelCreationFees",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_newAmount",type:"uint256"}],name:"setMinPoolContribution",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"stake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalStakedAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_newAdmin",type:"address"}],name:"transferPushChannelAdminControl",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unPauseContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unstake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"unverifyChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"bytes",name:"_newIdentity",type:"bytes"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"updateChannelMeta",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"userFeesInfo",outputs:[{internalType:"uint256",name:"stakedAmount",type:"uint256"},{internalType:"uint256",name:"stakedWeight",type:"uint256"},{internalType:"uint256",name:"lastStakedBlock",type:"uint256"},{internalType:"uint256",name:"lastClaimedBlock",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"usersRewardsClaimed",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"verifyChannel",outputs:[],stateMutability:"nonpayable",type:"function"}]},229329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tokenABI=void 0,t.tokenABI=[{inputs:[{internalType:"address",name:"account",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"holder",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"}],name:"HolderWeightChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DELEGATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PERMIT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"rawAmount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"born",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"rawAmount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint32",name:"",type:"uint32"}],name:"checkpoints",outputs:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint96",name:"votes",type:"uint96"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getCurrentVotes",outputs:[{internalType:"uint96",name:"",type:"uint96"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPriorVotes",outputs:[{internalType:"uint96",name:"",type:"uint96"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"holderDelegation",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"holderWeight",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"rawAmount",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"holder",type:"address"}],name:"resetHolderWeight",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"delegate",type:"address"}],name:"returnHolderDelegation",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"returnHolderRatio",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"delegate",type:"address"},{internalType:"bool",name:"value",type:"bool"}],name:"setHolderDelegation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"dst",type:"address"},{internalType:"uint256",name:"rawAmount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"src",type:"address"},{internalType:"address",name:"dst",type:"address"},{internalType:"uint256",name:"rawAmount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]},407705:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAliasInfo=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(746290),s=r(441786);t.getAliasInfo=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{alias:t,aliasChain:r,env:n=o.default.ENV.PROD}=e||{},c=a.ALIAS_CHAIN_ID[r][n],u=(0,i.getCAIPWithChainId)(t,c,"Alias"),l=`${`${(0,i.getAPIBaseUrls)(n)}/v1/alias`}/${u}/channel`;return yield(0,s.axiosGet)(l).then((e=>e.data)).catch((e=>{console.error(`[EPNS-SDK] - API ${l}: `,e)}))}))},809317:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(331635).__exportStar(r(407705),t)},551301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getSubscribers=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786);t._getSubscribers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){console.warn("\n [Push SDK]: _getSubscribers() Deprecation Warning!\n This method has been deprecated, please use the below alternatives\n if you need to,\n * to check if user is subscribed or not: user.getSubscriptions()\n * get channels count: channels.getChannels()\n");const{channel:t,env:r=o.default.ENV.PROD}=e||{},n=yield(0,i.getCAIPAddress)(r,t,"Channel"),s=(0,i.getCAIPDetails)(n);if(!s)throw Error("Invalid Channel CAIP!");const c=s.networkId,u=`${`${(0,i.getAPIBaseUrls)(r)}/channels/_get_subscribers`}`,l={channel:s.address,blockchain:c,op:"read"};return(yield(0,a.axiosPost)(u,l)).data.subscribers}))},305752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChannel=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(292302);t.getChannel=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{channel:t,env:r=o.default.ENV.PROD,raw:n=!0}=e||{},c=yield(0,i.getCAIPAddress)(r,t,"Channel"),u=`${`${(0,i.getAPIBaseUrls)(r)}/v1/channels`}/${c}`;return yield(0,a.axiosGet)(u).then((e=>(n||(e.data.channel_settings=e.data.channel_settings?(0,s.parseSettings)(e.data.channel_settings):null),e.data)))}))},713854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChannelNotifications=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786);t.getChannelNotifications=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{channel:t,env:r=o.default.ENV.PROD,page:n=o.default.PAGINATION.INITIAL_PAGE,limit:s=o.default.PAGINATION.LIMIT,filter:c=null,raw:u=!0}=e||{},l=yield(0,i.getCAIPAddress)(r,t,"Channel"),d=`${`${(0,i.getAPIBaseUrls)(r)}/v2/channels`}/${l}/notifications?${(0,i.getQueryParams)(c?{page:n,limit:s,notificationType:c,raw:u}:{page:n,limit:s,raw:u})}`;return yield(0,a.axiosGet)(d).then((e=>e.data))}))},397479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChannels=void 0;const n=r(331635),i=r(191227),o=r(795924),a=r(441786);t.getChannels=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{env:t=i.default.ENV.PROD,page:r=1,limit:n=10,sort:s=i.default.FILTER.CHANNEL_LIST.SORT.SUBSCRIBER,order:c=i.default.FILTER.CHANNEL_LIST.ORDER.DESCENDING}=e||{},u=`${`${(0,o.getAPIBaseUrls)(t)}/v1/channels`}?page=${r}&limit=${n}&sort=${s}&order=${c}`;return yield(0,a.axiosGet)(u).then((e=>e.data)).catch((e=>{throw console.error(`[Push SDK] - API ${u}: `,e),Error(`[Push SDK] - API - Error - API ${u} -: ${e}`)}))}))},347987:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDelegates=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786);t.getDelegates=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{channel:t,env:r=o.default.ENV.PROD}=e||{},n=yield(0,i.getCAIPAddress)(r,t,"Channel"),s=`${`${(0,i.getAPIBaseUrls)(r)}/v1/channels`}/${n}/delegates`;return yield(0,a.axiosGet)(s).then((e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.delegates})).catch((e=>{console.error(`[EPNS-SDK] - API ${s}: `,e)}))}))},148492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSubscribers=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(516758);t.getSubscribers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){try{const{channel:r,page:n=1,limit:c=10,category:u=null,setting:l=!1,env:d=o.default.ENV.PROD,raw:f=!0}=e||{};try{if(null==r||0==r.length)throw new Error("channel cannot be null or empty");if(n<=0)throw new Error("page must be greater than 0");if(c<=0)throw new Error("limit must be greater than 0");if(c>30)throw new Error("limit must be lesser than or equal to 30");const e=yield(0,i.getCAIPAddress)(d,r,"Channel");let t=`${(0,i.getAPIBaseUrls)(d)}/v1/channels/${e}/subscribers?page=${n}&limit=${c}&setting=${l}`;return u&&(t+=`&category=${u}`),yield(0,a.axiosGet)(t).then((e=>f?e.data:(0,s.parseSubscrbersApiResponse)(e.data))).catch((e=>{console.error(`[Push SDK] - API ${t}: `,e)}))}catch(t){throw console.error("[Push SDK] - API - Error - API send() -: ",t),Error(`[Push SDK] - API - Error - API send() -: ${t}`)}}catch(t){throw console.error("[Push SDK] - API - Error - API send() -: ",t),Error(`[Push SDK] - API - Error - API send() -: ${t}`)}}))},918559:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(331635);n.__exportStar(r(551301),t),n.__exportStar(r(305752),t),n.__exportStar(r(713854),t),n.__exportStar(r(397479),t),n.__exportStar(r(347987),t),n.__exportStar(r(148492),t),n.__exportStar(r(805343),t),n.__exportStar(r(316563),t),n.__exportStar(r(545571),t),n.__exportStar(r(102730),t),n.__exportStar(r(324062),t)},805343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.search=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786);t.search=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{query:t,env:r=o.default.ENV.PROD,page:n=o.default.PAGINATION.INITIAL_PAGE,limit:s=o.default.PAGINATION.LIMIT}=e||{};if(!t)throw Error('"query" not provided!');const c=`${(0,i.getAPIBaseUrls)(r)}/v1/channels/search/`,u={page:n,limit:(0,i.getLimit)(s),query:t},l=`${c}?${(0,i.getQueryParams)(u)}`;return(0,a.axiosGet)(l).then((e=>e.data.channels)).catch((e=>{console.error(`[Push SDK] - API ${l}: `,e)}))}))},648562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeInformationV2=t.getTypeInformation=t.getSubscriptionMessageV2=t.getSubscriptionMessage=t.getDomainInformation=void 0;t.getDomainInformation=(e,t)=>({name:"EPNS COMM V1",chainId:e,verifyingContract:t});t.getSubscriptionMessage=(e,t,r)=>{const n="Unsubscribe"===r?"unsubscriber":"subscriber";return{channel:e,[n]:t,action:r}};t.getSubscriptionMessageV2=(e,t,r,n)=>{const i="Unsubscribe"===r?"unsubscriber":"subscriber";return"Subscribe"==r?JSON.stringify({channel:e,[i]:t,action:r,userSetting:null!=n?n:""},null,4):JSON.stringify({channel:e,[i]:t,action:r},null,4)};t.getTypeInformation=e=>"Subscribe"===e?{Subscribe:[{name:"channel",type:"address"},{name:"subscriber",type:"address"},{name:"action",type:"string"}]}:{Unsubscribe:[{name:"channel",type:"address"},{name:"unsubscriber",type:"address"},{name:"action",type:"string"}]};t.getTypeInformationV2=()=>({Data:[{name:"data",type:"string"}]})},316563:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe=void 0;const n=r(331635),i=r(795924),o=r(648562),a=r(397067),s=r(441786);t.subscribe=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{signer:t,channelAddress:r,userAddress:n,verifyingContractAddress:c,origin:u,env:l=a.default.ENV.PROD,onSuccess:d,onError:f}=e||{};try{const e=yield(0,i.getCAIPAddress)(l,r,"Channel"),a=(0,i.getCAIPDetails)(e);if(!a)throw Error("Invalid Channel CAIP!");const f=parseInt(a.networkId,10),h=yield(0,i.getCAIPAddress)(l,n,"User"),p=(0,i.getCAIPDetails)(h);if(!p)throw Error("Invalid User CAIP!");const{API_BASE_URL:g,EPNS_COMMUNICATOR_CONTRACT:m}=(0,i.getConfig)(l,a),y=`${g}/v1/channels/${e}/subscribe`,b=(0,o.getDomainInformation)(f,c||m),v=(0,o.getTypeInformation)("Subscribe"),w=(0,o.getSubscriptionMessage)(a.address,p.address,"Subscribe"),A=new i.Signer(t),C=yield A.signTypedData(b,v,w,"Subscribe"),E={verificationProof:C,message:Object.assign(Object.assign({},w),{channel:e,subscriber:h}),origin:u};return yield(0,s.axiosPost)(y,E),"function"==typeof d&&d(),{status:"success",message:"successfully opted into channel"}}catch(h){return"function"==typeof f&&f(h),{status:"error",message:h instanceof Error?h.message:JSON.stringify(h)}}}))},545571:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeV2=void 0;const n=r(331635),i=r(795924),o=r(648562),a=r(397067),s=r(441786);t.subscribeV2=e=>n.__awaiter(void 0,void 0,void 0,(function*(){var t,r;const{signer:n,channelAddress:c,userAddress:u,settings:l,verifyingContractAddress:d,env:f=a.default.ENV.PROD,origin:h,onSuccess:p,onError:g}=e||{};try{const e=yield(0,i.getCAIPAddress)(f,c,"Channel"),t=(0,i.getCAIPDetails)(e);if(!t)throw Error("Invalid Channel CAIP!");const r=parseInt(t.networkId,10),a=yield(0,i.getCAIPAddress)(f,u,"User"),g=(0,i.getCAIPDetails)(a);if(!g)throw Error("Invalid User CAIP!");const{API_BASE_URL:m,EPNS_COMMUNICATOR_CONTRACT:y}=(0,i.getConfig)(f,t),b=`${m}/v1/channels/${e}/subscribe`,v=(0,o.getDomainInformation)(r,d||y),w=(0,o.getTypeInformationV2)(),A={data:(0,o.getSubscriptionMessageV2)(t.address,g.address,"Subscribe",l)},C=new i.Signer(n),E=yield C.signTypedData(v,w,A,"Data"),x={verificationProof:`eip712v2:${E}`,message:A.data,origin:h},S=yield(0,s.axiosPost)(b,x);return"function"==typeof p&&p(),{status:S.status,message:"successfully opted into channel"}}catch(m){return"function"==typeof g&&g(m),{status:null!==(r=null===(t=null==m?void 0:m.response)||void 0===t?void 0:t.status)&&void 0!==r?r:"",message:m instanceof Error?m.message:JSON.stringify(m)}}}))},102730:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unsubscribe=void 0;const n=r(331635),i=r(795924),o=r(648562),a=r(397067),s=r(441786);t.unsubscribe=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{signer:t,channelAddress:r,userAddress:n,verifyingContractAddress:c,env:u=a.default.ENV.PROD,onSuccess:l,onError:d}=e||{};try{const e=yield(0,i.getCAIPAddress)(u,r,"Channel"),a=(0,i.getCAIPDetails)(e);if(!a)throw Error("Invalid Channel CAIP!");const d=parseInt(a.networkId,10),f=yield(0,i.getCAIPAddress)(u,n,"User"),h=(0,i.getCAIPDetails)(f);if(!h)throw Error("Invalid User CAIP!");const{API_BASE_URL:p,EPNS_COMMUNICATOR_CONTRACT:g}=(0,i.getConfig)(u,a),m=`${p}/v1/channels/${e}/unsubscribe`,y=(0,o.getDomainInformation)(d,c||g),b=(0,o.getTypeInformation)("Unsubscribe"),v=(0,o.getSubscriptionMessage)(a.address,h.address,"Unsubscribe"),w=new i.Signer(t),A=yield w.signTypedData(y,b,v,"Unsubscribe"),C={verificationProof:A,message:Object.assign(Object.assign({},v),{channel:e,unsubscriber:f})};return yield(0,s.axiosPost)(m,C),"function"==typeof l&&l(),{status:"success",message:"successfully opted out channel"}}catch(f){return"function"==typeof d&&d(f),{status:"error",message:f instanceof Error?f.message:JSON.stringify(f)}}}))},324062:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unsubscribeV2=void 0;const n=r(331635),i=r(795924),o=r(648562),a=r(397067),s=r(441786);t.unsubscribeV2=e=>n.__awaiter(void 0,void 0,void 0,(function*(){var t,r;const{signer:n,channelAddress:c,userAddress:u,verifyingContractAddress:l,env:d=a.default.ENV.PROD,onSuccess:f,onError:h}=e||{};try{const e=yield(0,i.getCAIPAddress)(d,c,"Channel"),t=(0,i.getCAIPDetails)(e);if(!t)throw Error("Invalid Channel CAIP!");const r=parseInt(t.networkId,10),a=yield(0,i.getCAIPAddress)(d,u,"User"),h=(0,i.getCAIPDetails)(a);if(!h)throw Error("Invalid User CAIP!");const{API_BASE_URL:p,EPNS_COMMUNICATOR_CONTRACT:g}=(0,i.getConfig)(d,t),m=`${p}/v1/channels/${e}/unsubscribe`,y=(0,o.getDomainInformation)(r,l||g),b=(0,o.getTypeInformationV2)(),v={data:(0,o.getSubscriptionMessageV2)(t.address,h.address,"Unsubscribe")},w=new i.Signer(n),A=yield w.signTypedData(y,b,v,"Data"),C={verificationProof:`eip712v2:${A}`,message:v.data},E=yield(0,s.axiosPost)(m,C);return"function"==typeof f&&f(),{status:E.status,message:"successfully opted out channel"}}catch(p){return"function"==typeof h&&h(p),{status:null!==(r=null===(t=null==p?void 0:p.response)||void 0===t?void 0:t.status)&&void 0!==r?r:"",message:p instanceof Error?p.message:JSON.stringify(p)}}}))},559190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addAdmins=void 0;const n=r(331635),i=r(746290),o=r(397067),a=r(500547),s=r(88634);t.addAdmins=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,admins:n,account:c=null,signer:u=null,env:l=o.default.ENV.PROD,pgpPrivateKey:d=null,overrideSecretKeyGeneration:f=!i.ALPHA_FEATURE_CONFIG[o.PACKAGE_BUILD].feature.includes(o.default.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==c&&null==u)throw new Error("At least one from account or signer is necessary!");if(!n||0===n.length)throw new Error("Admin address array cannot be empty!");const e={chatId:r,upsert:{members:[],admins:n},remove:[],account:c,signer:u,pgpPrivateKey:d,env:l,overrideSecretKeyGeneration:f};return yield(0,s.updateGroupMembers)(e)}catch(h){throw(0,a.handleError)(h,t.addAdmins.name)}}))},804991:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addMembers=void 0;const n=r(331635),i=r(746290),o=r(397067),a=r(500547),s=r(88634);t.addMembers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,members:n,account:c=null,signer:u=null,env:l=o.default.ENV.PROD,pgpPrivateKey:d=null,overrideSecretKeyGeneration:f=!i.ALPHA_FEATURE_CONFIG[o.PACKAGE_BUILD].feature.includes(o.default.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==c&&null==u)throw new Error("At least one from account or signer is necessary!");if(!n||0===n.length)throw new Error("Member address array cannot be empty!");const e={chatId:r,upsert:{members:n,admins:[]},remove:[],account:c,signer:u,pgpPrivateKey:d,env:l,overrideSecretKeyGeneration:f};return yield(0,s.updateGroupMembers)(e)}catch(h){throw(0,a.handleError)(h,t.addMembers.name)}}))},665447:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.approveCore=t.approve=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(441786),u=r(299348),l=r(446206),d=r(918781),f=r(746290),h=r(500547);t.approve=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.approveCore)(e,a.PGPHelper)}));t.approveCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{status:n="Approved",account:p=null,signer:g=null,senderAddress:m,env:y=o.default.ENV.PROD,pgpPrivateKey:b=null,overrideSecretKeyGeneration:v=!f.ALPHA_FEATURE_CONFIG[o.PACKAGE_BUILD].feature.includes(o.default.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};if(null==p&&null==g)throw new Error("At least one from account or signer is necessary!");const w=(0,a.getWallet)({account:p,signer:g}),A=yield(0,a.getAccountAddress)(w),C=!(0,i.isValidPushCAIP)(m),E=yield(0,a.getConnectedUserV2Core)(w,b,y,r),x=C?yield(0,i.convertToValidDID)(A,y):yield(0,i.convertToValidDID)(m,y),S=C?yield(0,i.convertToValidDID)(m,y):yield(0,i.convertToValidDID)(A,y);let I,k=null,_="pgp";if(C){const e=yield(0,l.getGroupInfo)({chatId:m,env:y});if(e&&!e.isPublic&&(e.encryptedSecret||!v)){_="pgpv2";const t=u.generateRandomSecret(15),n=(yield(0,d.getAllGroupMembersPublicKeys)({chatId:e.chatId,env:y})).map((e=>e.publicKey));n.push(E.publicKey),k=yield r.pgpEncrypt({plainText:t,keys:n})}}switch(_){case"pgp":I={fromDID:x,toDID:S,status:n};break;case"pgpv2":I={fromDID:x,toDID:S,status:n,encryptedSecret:k}}const T=s.SHA256(JSON.stringify(I)).toString(),M=yield r.sign({message:T,signingKey:E.privateKey}),P={fromDID:x,toDID:S,signature:M,status:n,sigType:_,verificationProof:`${_}:${M}`,encryptedSecret:k},j=`${(0,i.getAPIBaseUrls)(y)}/v1/chat/request/accept`;return(0,c.axiosPut)(j,P).then((e=>e.data)).catch((e=>{throw(0,h.handleError)(e,t.approve.name)}))}))},898255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chat=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(813951),c=r(500547);t.chat=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:r,pgpPrivateKey:n,env:u=o.default.ENV.PROD,toDecrypt:l=!1,recipient:d}=e||{},f=yield(0,i.convertToValidDID)(r,u),h=yield(0,i.convertToValidDID)(d,u);if(!(0,i.isValidPushCAIP)(f))throw new Error(`Invalid address ${f}`);const p=`${(0,i.getAPIBaseUrls)(u)}/v1/chat/users/${f}/chat/${h}`;try{const e=(yield(0,a.axiosGet)(p)).data;if(0!==Object.keys(e).length){const t=(0,s.addDeprecatedInfo)([e]),[r]=yield(0,s.getInboxLists)({lists:t,user:f,toDecrypt:l,pgpPrivateKey:n,env:u},s.PGPHelper);return r}return e}catch(g){throw(0,c.handleError)(g,t.chat.name)}}))},503114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chatsCore=t.chats=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(441786),c=r(500547);t.chats=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.chatsCore)(e,a.PGPHelper)}));t.chatsCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:n,pgpPrivateKey:u,env:l=o.default.ENV.PROD,toDecrypt:d=!1,page:f=1,limit:h=10}=e||{};if(!(0,i.isValidPushCAIP)(n))throw new Error("Invalid address!");const p=yield(0,i.convertToValidDID)(n,l),g=`${`${(0,i.getAPIBaseUrls)(l)}/v1/chat/users/${p}/chats?page=${f}&limit=${h}`}`;try{const e=(yield(0,s.axiosGet)(g)).data.chats,t=(0,a.addDeprecatedInfo)(e);return yield(0,a.getInboxLists)({lists:t,user:p,toDecrypt:d,pgpPrivateKey:u,env:l},r)}catch(m){throw(0,c.handleError)(m,t.chats.name)}}))},113738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conversationHash=void 0;const n=r(331635),i=r(397067),o=r(500547),a=r(795924),s=r(813951);t.conversationHash=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{conversationId:r,account:n,env:c=i.default.ENV.PROD}=e||{};try{if(!(0,a.isValidPushCAIP)(n))throw new Error("Invalid address!");const e=yield(0,a.convertToValidDID)(r,c),t=yield(0,a.convertToValidDID)(n,c);return yield(0,s.getConversationHashService)({conversationId:e,account:t,env:c})}catch(u){throw(0,o.handleError)(u,t.conversationHash.name)}}))},84590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createGroupCore=t.createGroup=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(441786),u=r(500547);t.createGroup=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.createGroupCore)(e,a.PGPHelper)}));t.createGroupCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:l=null,signer:d=null,groupName:f,groupDescription:h,members:p,groupImage:g,admins:m,isPublic:y,contractAddressNFT:b,numberOfNFTs:v,contractAddressERC20:w,numberOfERC20:A,env:C=o.default.ENV.PROD,pgpPrivateKey:E=null,meta:x,groupType:S,scheduleAt:I,scheduleEnd:k,rules:_}=e||{};try{if(null==l&&null==d)throw new Error("At least one from account or signer is necessary!");(0,a.validateScheduleDates)(I,k);const e=(0,a.getWallet)({account:l,signer:d});(0,a.createGroupRequestValidator)(f,p,m,h,b,v,w,A);const t=p.map((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,i.convertToValidDID)(e,C)})))),o=m.map((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,i.convertToValidDID)(e,C)})))),u=yield Promise.all(t),T=yield Promise.all(o),M=yield(0,a.getConnectedUserV2Core)(e,E,C,r),P={groupName:f,groupDescription:null==h?null:h,members:u,groupImage:null==g?null:g,admins:T,isPublic:y,contractAddressNFT:null==b?null:b,numberOfNFTs:null==v?0:v,contractAddressERC20:null==w?null:w,numberOfERC20:null==A?0:A,groupCreator:M.did},j=s.SHA256(JSON.stringify(P)).toString(),D=yield r.sign({message:j,signingKey:M.privateKey}),O="pgp"+":"+D,B=`${(0,i.getAPIBaseUrls)(C)}/v1/chat/groups`,N=(0,a.createGroupPayload)(f,u,T,y,M.did,O,h,g,b,v,w,A,x,S,I,k,_);return(yield(0,c.axiosPost)(B,N)).data}catch(T){throw(0,u.handleError)(T,t.createGroup.name)}}))},769402:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createGroupCoreV2=t.createGroupV2=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(500547),u=r(441786);t.createGroupV2=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.createGroupCoreV2)(e,a.PGPHelper)}));t.createGroupCoreV2=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:d=null,signer:f=null,pgpPrivateKey:h=null,env:p=o.default.ENV.PROD,groupName:g,groupDescription:m,groupImage:y,rules:b,isPublic:v,groupType:w,config:{meta:A,scheduleAt:C,scheduleEnd:E,status:x},members:S,admins:I}=e;try{const t=(0,a.getWallet)({account:d,signer:f}),o=yield(0,a.getConnectedUserV2Core)(t,h,p,r),c=S.map((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,i.convertToValidDID)(e,p)})))),k=I.map((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,i.convertToValidDID)(e,p)})))),_=yield Promise.all(c),T=yield Promise.all(k);l(e);const M={groupName:g,groupDescription:m,groupImage:y,rules:b,isPublic:v,groupType:w},P=s.SHA256(JSON.stringify(M)).toString(),j=`pgpv2:${yield r.sign({message:P,signingKey:o.privateKey})}:${o.did}`,D={meta:A,scheduleAt:C,scheduleEnd:E,status:x},O=s.SHA256(JSON.stringify(D)).toString(),B=`pgpv2:${yield r.sign({message:O,signingKey:o.privateKey})}:${o.did}`,N={members:_,admins:T},R=s.SHA256(JSON.stringify(N)).toString(),L=`pgpv2:${yield r.sign({message:R,signingKey:o.privateKey})}:${o.did}`,F=`${(0,i.getAPIBaseUrls)(p)}/v2/chat/groups`,U={groupName:g,groupDescription:m,groupImage:y,rules:b,isPublic:v,groupType:w,profileVerificationProof:j,config:{meta:A,scheduleAt:C,scheduleEnd:E,status:x,configVerificationProof:B},members:_,admins:T,idempotentVerificationProof:L};return(yield(0,u.axiosPost)(F,U)).data}catch(k){throw(0,c.handleError)(k,t.createGroupV2.name)}}));const l=e=>{const{account:t=null,signer:r=null,pgpPrivateKey:n=null,groupName:o,groupDescription:s,groupImage:c,rules:u,isPublic:l,groupType:d,config:{meta:f,scheduleAt:h,scheduleEnd:p,status:g},members:m,admins:y}=e;if(!n&&!r)throw new Error("At least one from pgpPrivateKey or signer is necessary!");if(null==o||0==o.length)throw new Error("groupName cannot be null or empty");if(o.length>50)throw new Error("groupName cannot be more than 50 characters");if(s&&s.length>150)throw new Error("groupDescription cannot be more than 150 characters");for(let a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllGroupMembers=void 0;const n=r(331635),i=r(152983),o=r(676349);t.getAllGroupMembers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:t,env:r}=e,n=(yield(0,o.getGroupMemberCount)({chatId:t,env:r})).overallCount,a=Math.ceil(n/5e3),s=Array.from({length:a},((e,t)=>t+1)),c=[],u=s.map((e=>(0,i.getGroupMembers)({chatId:t,env:r,page:e,limit:5e3})));return(yield Promise.all(u)).forEach((e=>{e.length>0&&c.push(...e)})),c}))},918781:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllGroupMembersPublicKeys=void 0;const n=r(331635),i=r(676349),o=r(935930);t.getAllGroupMembersPublicKeys=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:t,env:r}=e,n=(yield(0,i.getGroupMemberCount)({chatId:t,env:r})).approvedCount,a=Math.ceil(n/5e3),s=Array.from({length:a},((e,t)=>t+1)),c=[],u=s.map((e=>(0,o.getGroupMembersPublicKeys)({chatId:t,env:r,page:e,limit:5e3})));return(yield Promise.all(u)).forEach((e=>{e.members.length>0&&c.push(...e.members)})),c}))},906559:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChatInfo=void 0;const n=r(331635),i=r(397067),o=r(500547),a=r(795924),s=r(441786);t.getChatInfo=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{recipient:r,account:n,env:c=i.default.ENV.PROD}=e;try{if(!r||!n)throw new Error("receipient and account cannot be null or empty");const e=`${(0,a.getAPIBaseUrls)(c)}/v1/chat/${yield(0,a.convertToValidDID)(r,c)}/address/${yield(0,a.convertToValidDID)(n,c)}`;return(yield(0,s.axiosGet)(e)).data}catch(u){throw(0,o.handleError)(u,t.getChatInfo.name)}}))},61638:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroup=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(500547);t.getGroup=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,env:n=o.default.ENV.PROD}=e||{};try{if(null==r||0==r.length)throw new Error("chatId cannot be null or empty");const e=`${(0,i.getAPIBaseUrls)(n)}/v1/chat/groups/${r}`;return(yield(0,a.axiosGet)(e)).data}catch(c){throw(0,s.handleError)(c,t.getGroup.name)}}))},334264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupAccess=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(500547);t.getGroupAccess=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,did:n,env:c=o.default.ENV.PROD}=e||{};try{if(null==r||0===r.length)throw new Error("chatId cannot be null or empty");if(null==n||0===n.length)throw new Error("did cannot be null or empty");const e=yield(0,i.convertToValidDID)(n,c),t=`${(0,i.getAPIBaseUrls)(c)}/v1/chat/groups/${r}/access/${e}`;return(yield(0,a.axiosGet)(t)).data}catch(u){throw(0,s.handleError)(u,t.getGroupAccess.name)}}))},91012:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupByName=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(500547);t.getGroupByName=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{groupName:r,env:n=o.default.ENV.PROD}=e||{};try{if(console.log("============================================="),console.log("NOTICE: The method 'getGroupByName' will be deprecated on January 1st, 2024. Please update your code to remove this."),console.log("============================================="),null==r||0==r.length)throw new Error("Group Name cannot be null or empty");const e=`${(0,i.getAPIBaseUrls)(n)}/v1/chat/groups?groupName=${r}`;return(yield(0,a.axiosGet)(e)).data}catch(c){throw(0,s.handleError)(c,t.getGroupByName.name)}}))},446206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupInfo=void 0;const n=r(331635),i=r(272505),o=r(795924),a=r(397067),s=r(500547);t.getGroupInfo=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,env:n=a.default.ENV.PROD}=e||{};try{if(null==r||0==r.length)throw new Error("chatId cannot be null or empty");const e=`${(0,o.getAPIBaseUrls)(n)}/v2/chat/groups/${r}`;return i.default.get(e).then((e=>e.data)).catch((e=>{var t,r;if(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)throw new Error(null===(r=null==e?void 0:e.response)||void 0===r?void 0:r.data);throw new Error(e)}))}catch(c){throw(0,s.handleError)(c,t.getGroupInfo.name)}}))},676349:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupMemberCount=void 0;const n=r(331635),i=r(272505),o=r(795924),a=r(397067),s=r(500547);t.getGroupMemberCount=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,env:n=a.default.ENV.PROD}=e;try{if(!r)throw new Error("Chat ID is required.");const e=`${(0,o.getAPIBaseUrls)(n)}/v1/chat/groups/${r}/members/count`,t=yield i.default.get(e),{totalMembersCount:a}=t.data;return a}catch(c){throw(0,s.handleError)(c,t.getGroupMemberCount.name)}}))},144238:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupMemberStatus=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(500547);t.getGroupMemberStatus=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,did:n,env:c=o.default.ENV.PROD}=e||{};try{if(null==r||0===r.length)throw new Error("chatId cannot be null or empty");if(null==n||0===n.length)throw new Error("did cannot be null or empty");const e=yield(0,i.convertToValidDID)(n,c),t=`${(0,i.getAPIBaseUrls)(c)}/v1/chat/groups/${r}/members/${e}/status`;return(yield(0,a.axiosGet)(t)).data}catch(u){throw(0,s.handleError)(u,t.getGroupMemberStatus.name)}}))},152983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupMembers=void 0;const n=r(331635),i=r(272505),o=r(795924),a=r(397067),s=r(500547);t.getGroupMembers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,page:n=1,limit:c=20,env:u=a.default.ENV.PROD,pending:l,role:d}=e;try{if(!r)throw new Error("Chat ID is required.");let e=`${(0,o.getAPIBaseUrls)(u)}/v1/chat/groups/${r}/members?pageNumber=${n}&pageSize=${c}`;void 0!==l&&(e+=`&pending=${l}`),d&&(e+=`&role=${encodeURIComponent(d)}`);return(yield i.default.get(e)).data.members}catch(f){throw(0,s.handleError)(f,t.getGroupMembers.name)}}))},935930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupMembersPublicKeys=void 0;const n=r(331635),i=r(272505),o=r(795924),a=r(397067),s=r(500547);t.getGroupMembersPublicKeys=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,page:n=1,limit:c=20,env:u=a.default.ENV.PROD}=e;try{if(!r)throw new Error("Chat ID is required.");const e=`${(0,o.getAPIBaseUrls)(u)}/v1/chat/groups/${r}/members/publicKeys?pageNumber=${n}&pageSize=${c}`;return(yield i.default.get(e)).data}catch(l){throw(0,s.handleError)(l,t.getGroupMembersPublicKeys.name)}}))},299348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomSecret=t.aesDecrypt=t.aesEncrypt=void 0;const n=r(921396);t.aesEncrypt=({plainText:e,secretKey:t})=>n.AES.encrypt(e,t).toString();t.aesDecrypt=({cipherText:e,secretKey:t})=>n.AES.decrypt(e,t).toString(n.enc.Utf8);t.generateRandomSecret=e=>{let t="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decryptAndVerifyMessage=t.getDecryptedPrivateKey=t.getEip712Signature=t.getEip191Signature=t.getEncryptedRequestCore=t.getEncryptedRequest=t.decryptFeeds=t.signMessageWithPGPCore=t.signMessageWithPGP=t.encryptAndSignCore=t.encryptAndSign=void 0;const n=r(331635),i=r(129272),o=r(299348),a=r(921396),s=r(75232),c=r(795924),u=r(75232),l=r(772324),d=r(397067),f=r(902729),h=r(299348),p=r(499051),g=r(61638),m=r(622042),y=r(134631),b="eip712v2";t.encryptAndSign=({plainText:e,keys:r,privateKeyArmored:o,secretKey:a})=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.encryptAndSignCore)({plainText:e,keys:r,privateKeyArmored:o,secretKey:a,pgpHelper:i.PGPHelper})}));t.encryptAndSignCore=({plainText:e,keys:t,privateKeyArmored:r,secretKey:i,pgpHelper:a})=>n.__awaiter(void 0,void 0,void 0,(function*(){const n=o.aesEncrypt({plainText:e,secretKey:i});return{cipherText:n,encryptedSecret:yield a.pgpEncrypt({plainText:i,keys:t}),signature:yield a.sign({message:n,signingKey:r}),sigType:"pgp",encType:"pgp"}}));t.signMessageWithPGP=({message:e,privateKeyArmored:r})=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.signMessageWithPGPCore)({message:e,privateKeyArmored:r,pgpHelper:i.PGPHelper})}));t.signMessageWithPGPCore=({message:e,privateKeyArmored:t,pgpHelper:r})=>n.__awaiter(void 0,void 0,void 0,(function*(){return{signature:yield r.sign({message:e,signingKey:t}),sigType:"pgp"}}));t.decryptFeeds=({feeds:e,connectedUser:r,pgpPrivateKey:i,env:o=d.default.ENV.PROD,pgpHelper:a})=>n.__awaiter(void 0,void 0,void 0,(function*(){const s=e=>n.__awaiter(void 0,void 0,void 0,(function*(){if(!i)throw new Error("Decrypted private key is necessary");if("PlainText"!==e.msg.encType){const n=e.msg.fromCAIP10;let s;if(n===r.wallets.split(",")[0])s=r.publicKey;else{const e=`pgpPubKey-${n}`;if(m.cache.has(e))s=m.cache.get(e);else{const t=yield(0,u.get)({account:n,env:o});m.cache.set(e,t.publicKey),s=t.publicKey}}e.msg=yield(0,t.decryptAndVerifyMessage)(e.msg,s,i,o,a)}}));for(const t of e)yield s(t);return e}));t.getEncryptedRequest=(e,r,o,a,s,c,u)=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.getEncryptedRequestCore)(e,r,o,a,s,c,u,i.PGPHelper)}));t.getEncryptedRequestCore=(e,r,i,a,u,d,f,h)=>n.__awaiter(void 0,void 0,void 0,(function*(){if(a){if(d){if(d.isPublic){const{signature:e}=yield(0,t.signMessageWithPGPCore)({message:i,privateKeyArmored:r.privateKey,pgpHelper:h});return{message:i,encryptionType:"PlainText",aesEncryptedSecret:"",signature:e}}if(d.sessionKey&&d.encryptedSecret){const e=o.aesEncrypt({plainText:i,secretKey:f});return{message:e,encryptionType:"pgpv1:group",aesEncryptedSecret:null,signature:yield h.sign({message:e,signingKey:r.privateKey})}}{const e=(yield(0,g.getGroup)({chatId:d.chatId,env:u})).members.map((e=>e.publicKey)),{cipherText:n,encryptedSecret:o,signature:a}=yield(0,t.encryptAndSignCore)({plainText:i,keys:e,privateKeyArmored:r.privateKey,secretKey:f,pgpHelper:h});return{message:n,encryptionType:"pgp",aesEncryptedSecret:o,signature:a}}}throw new Error("Unable to find Group Data")}{const n=yield(0,s.get)({account:e,env:u});if(null==n?void 0:n.publicKey){if(n.publicKey.includes("-----BEGIN PGP PUBLIC KEY BLOCK-----")){const{cipherText:e,encryptedSecret:o,signature:a}=yield(0,t.encryptAndSignCore)({plainText:i,keys:[n.publicKey,r.publicKey],privateKeyArmored:r.privateKey,secretKey:f,pgpHelper:h});return{message:e,encryptionType:"pgp",aesEncryptedSecret:o,signature:a}}{const{signature:e}=yield(0,t.signMessageWithPGPCore)({message:i,privateKeyArmored:r.privateKey,pgpHelper:h});return{message:i,encryptionType:"PlainText",aesEncryptedSecret:"",signature:e}}}{if(!(0,c.isValidPushCAIP)(e))throw new Error("Invalid receiver address!");yield(0,l.createUserService)({user:e,publicKey:"",encryptedPrivateKey:"",env:u});const{signature:n}=yield(0,t.signMessageWithPGPCore)({message:i,privateKeyArmored:r.privateKey,pgpHelper:h});return{message:i,encryptionType:"PlainText",aesEncryptedSecret:"",signature:n}}}}));t.getEip191Signature=(e,t,r="v1")=>n.__awaiter(void 0,void 0,void 0,(function*(){if(!(null==e?void 0:e.signer))return console.warn("This method is deprecated. Provide signer in the function"),{signature:"xyz",sigType:"a"};const n=null==e?void 0:e.signer,i=new c.Signer(n),o=yield i.signMessage(t);return{verificationProof:`${"v1"===r?"eip191":"eip191v2"}:${o}`}}));t.getEip712Signature=(e,t,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){if(!(null==e?void 0:e.signer))return console.warn("This method is deprecated. Provide signer in the function"),{signature:"xyz",sigType:"a"};const n=(0,f.getTypeInformation)(),i=null==e?void 0:e.signer,o=new c.Signer(i);let a;try{a=yield o.getChainId()}catch(l){a=1}const s=(0,f.getDomainInformation)(a),u=yield o.signTypedData(r?{}:s,n,{data:t},"Data");return{verificationProof:r?`${b}:${u}`:`${b}:${a}:${u}`}})),t.getDecryptedPrivateKey=function(e,t,r,i){return n.__awaiter(this,void 0,void 0,(function*(){let n;return n=e.signer?yield(0,c.decryptPGPKey)({signer:e.signer,encryptedPGPPrivateKey:t.encryptedPrivateKey,env:i}):yield(0,c.decryptWithWalletRPCMethod)(t.encryptedPrivateKey,r),n}))};t.decryptAndVerifyMessage=(e,t,r,o,s=i.PGPHelper)=>n.__awaiter(void 0,void 0,void 0,(function*(){if(e.verificationProof&&"pgpv2"===e.verificationProof.split(":")[0]){const r={fromDID:e.fromDID,toDID:e.fromDID,fromCAIP10:e.fromCAIP10,toCAIP10:e.toCAIP10,messageObj:e.messageObj,messageType:e.messageType,encType:e.encType,encryptedSecret:e.encryptedSecret},n=a.SHA256(JSON.stringify(r)).toString(),i=e.verificationProof.split(":")[1];yield s.verifySignature({messageContent:n,signatureArmored:i,publicKeyArmored:t})}else if(e.verificationProof&&"pgpv3"===e.verificationProof.split(":")[0]){const r={fromDID:e.fromDID,toDID:e.fromDID,fromCAIP10:e.fromCAIP10,toCAIP10:e.toCAIP10,messageObj:e.messageObj,messageType:e.messageType,encType:e.encType,sessionKey:e.sessionKey,encryptedSecret:e.encryptedSecret},n=a.SHA256(JSON.stringify(r)).toString(),i=e.verificationProof.split(":")[1];yield s.verifySignature({messageContent:n,signatureArmored:i,publicKeyArmored:t})}else if(null==e.link){const r={fromDID:e.fromDID,toDID:e.toDID,messageContent:e.messageContent,messageType:e.messageType},n=a.SHA256(JSON.stringify(r)).toString();try{yield s.verifySignature({messageContent:n,signatureArmored:e.signature,publicKeyArmored:t})}catch(i){yield s.verifySignature({messageContent:e.messageContent,signatureArmored:e.signature,publicKeyArmored:t})}}else yield s.verifySignature({messageContent:e.messageContent,signatureArmored:e.signature,publicKeyArmored:t});const n=Object.assign({},e);try{let t;if("pgpv1:group"===e.encType){const n=`sessionKey-${e.sessionKey}`;if(m.cache.has(n))t=m.cache.get(n);else{const i=yield(0,p.getEncryptedSecret)({sessionKey:e.sessionKey,env:o});t=yield s.pgpDecrypt({cipherText:i,toPrivateKeyArmored:r}),m.cache.set(n,t)}}else t=yield s.pgpDecrypt({cipherText:e.encryptedSecret,toPrivateKeyArmored:r});if(n.messageContent=(0,h.aesDecrypt)({cipherText:e.messageContent,secretKey:t}),e.messageObj){const r=(0,h.aesDecrypt)({cipherText:e.messageObj,secretKey:t});try{n.messageObj=JSON.parse(r)}catch(i){n.messageObj=r}try{if(n.messageObj.reference){const e=n.messageObj.reference;if(e&&1===e.split(":").length){const t=yield(0,y.getCID)(e,{env:o});n.messageObj.reference=t.cid}}}catch(i){}}}catch(i){n.messageContent=n.messageObj="Unable to Decrypt Message"}return n}))},499051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEncryptedSecret=void 0;const n=r(331635),i=r(272505),o=r(397067),a=r(795924);t.getEncryptedSecret=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{sessionKey:r,env:n=o.default.ENV.PROD}=e||{};try{if(null==r)throw new Error("sessionKey is required");const e=`${(0,a.getAPIBaseUrls)(n)}/v1/chat/encryptedsecret/sessionKey/${r}`;return i.default.get(e).then((e=>e.data.encryptedSecret)).catch((e=>{var t,r;if(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)throw new Error(null===(r=null==e?void 0:e.response)||void 0===r?void 0:r.data);throw new Error(e)}))}catch(s){throw console.error(`[Push SDK] - API - Error - API ${t.getEncryptedSecret.name} -: `,s),Error(`[Push SDK] - API - Error - API ${t.getEncryptedSecret.name} -: ${s}`)}}))},901812:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroup=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786);t.getGroup=(e,t)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{env:r=o.default.ENV.PROD}=e||{},n=`${(0,i.getAPIBaseUrls)(r)}/v1/chat/groups/${t}`;return(0,a.axiosGet)(n).then((e=>e.data)).catch((e=>{throw console.error(`[Push SDK] - API ${n}: `,e),Error(`[Push SDK] - API ${n}: ${e}`)}))}))},233707:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDeprecatedInfoToMessages=t.addDeprecatedInfo=t.decryptConversation=t.getTrendingSpaceInboxLists=t.getSpaceInboxLists=t.getInboxLists=void 0;const n=r(331635),i=r(129272),o=r(397067),a=r(795924),s=r(75232),c=r(134631),u=r(82950),l=r(622042);t.getInboxLists=(e,t=i.PGPHelper)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{lists:r,user:n,toDecrypt:i,pgpPrivateKey:c,env:l=o.default.ENV.PROD}=e||{};if(i){const e=yield(0,s.get)({account:(0,a.pCAIP10ToWallet)(n),env:l});return(0,u.decryptFeeds)({feeds:r,connectedUser:e,pgpPrivateKey:c,pgpHelper:t,env:l})}return r}));t.getSpaceInboxLists=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{lists:t,user:r,toDecrypt:n,pgpPrivateKey:l,env:d=o.default.ENV.PROD}=e||{},f=yield(0,s.get)({account:(0,a.pCAIP10ToWallet)(r),env:d}),h=[];for(const e of t){let t;t=null!==e.threadhash?yield(0,c.getCID)(e.threadhash,{env:d}):{encType:"PlainText",encryptedSecret:"",fromCAIP10:"",fromDID:"",link:"",messageContent:"",messageType:"",sigType:"",signature:"",toCAIP10:"",toDID:""},h.push(Object.assign(Object.assign({},e),{msg:t,spaceInformation:e.spaceInformation}))}return n?(0,u.decryptFeeds)({feeds:h,connectedUser:f,pgpPrivateKey:l,pgpHelper:i.PGPHelper,env:d}):h}));t.getTrendingSpaceInboxLists=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{lists:t,env:r=o.default.ENV.PROD}=e||{},n=[];for(const e of t){let t;t=null!==e.threadhash?yield(0,c.getCID)(e.threadhash,{env:r}):{encType:"PlainText",encryptedSecret:"",fromCAIP10:"",fromDID:"",link:"",messageContent:"",messageType:"",sigType:"",signature:"",toCAIP10:"",toDID:""},n.push(Object.assign(Object.assign({},e),{msg:t,spaceInformation:e.spaceInformation}))}return n}));t.decryptConversation=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{messages:t,connectedUser:r,pgpPrivateKey:n,pgpHelper:a=i.PGPHelper,env:c=o.default.ENV.PROD}=e||{};let d;for(let e=0;e{const e={};return t=>(t.forEach((t=>{if((0,a.isValidNFTCAIP)(t.did)){const r=t.did.split(":").slice(0,5).join(":"),n=t.did.split(":")[5];(!e[r]||n>e[r].split(":")[5])&&(e[r]=t.did)}})),t.forEach((t=>{if((0,a.isValidNFTCAIP)(t.did)){const r=t.did.split(":").slice(0,5).join(":");e[r]!==t.did&&(t.deprecated=!0,t.deprecatedCode="NFT Owner Changed")}})),t)})(),t.addDeprecatedInfoToMessages=(()=>{const e={};return t=>(t.forEach((t=>{if((0,a.isValidNFTCAIP)(t.fromDID)){const r=t.fromDID.split(":").slice(0,5).join(":"),n=t.fromDID.split(":")[5];(!e[r]||n>e[r].split(":")[5])&&(e[r]=t.fromDID)}})),t.forEach((t=>{if((0,a.isValidNFTCAIP)(t.fromDID)){const r=t.fromDID.split(":").slice(0,5).join(":");e[r]!==t.fromDID&&(t.deprecated=!0,t.deprecatedCode="NFT Owner Changed")}})),t)})()},813951:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(331635);n.__exportStar(r(299348),t),n.__exportStar(r(129272),t),n.__exportStar(r(965044),t),n.__exportStar(r(82950),t),n.__exportStar(r(772324),t),n.__exportStar(r(233707),t),n.__exportStar(r(357673),t),n.__exportStar(r(188117),t),n.__exportStar(r(901812),t),n.__exportStar(r(989074),t)},357673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSpacesMembersList=t.getMembersList=t.convertToWalletAddressList=t.getSpaceAdminsList=t.getAdminsList=t.updateGroupPayload=t.groupAccessToSpaceAccess=t.convertRulesToSpaceRules=t.convertSpaceRulesToRules=t.mapSpaceListTypeToChatListType=t.spaceDtoToSpaceInfoDto=t.groupInfoDtoToSpaceInfoDto=t.groupDtoToSpaceDtoV2=t.groupDtoToSpaceDto=t.createGroupPayload=t.rejectRequestPayload=t.sendMessagePayloadCore=t.sendMessagePayload=void 0;const n=r(331635),i=r(795924),o=r(82950),a=r(397067),s=r(129272),c=r(299348),u=r(921396),l=r(876584),d=r(701728);t.sendMessagePayload=(e,r,i,o,a,c,u)=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.sendMessagePayloadCore)(e,r,i,o,a,c,u,s.PGPHelper)}));t.sendMessagePayloadCore=(e,t,r,a,l,d,f,h)=>n.__awaiter(void 0,void 0,void 0,(function*(){const n=!(0,i.isValidPushCAIP)(e);let p;p=n&&(null==d?void 0:d.encryptedSecret)&&d.sessionKey?yield(0,s.pgpDecrypt)({cipherText:d.encryptedSecret,toPrivateKeyArmored:t.privateKey}):c.generateRandomSecret(15);const{message:g,signature:m}=yield(0,o.getEncryptedRequestCore)(e,t,a,n,f,d,p,h),{message:y,encryptionType:b,aesEncryptedSecret:v}=yield(0,o.getEncryptedRequestCore)(e,t,JSON.stringify(r),n,f,d,p,h),w={fromDID:(0,i.walletToPCAIP10)(t.wallets.split(",")[0]),toDID:n?e:(0,i.walletToPCAIP10)(e),fromCAIP10:(0,i.walletToPCAIP10)(t.wallets.split(",")[0]),toCAIP10:n?e:(0,i.walletToPCAIP10)(e),messageType:l,messageObj:"PlainText"===b?r:y,encType:b,sessionKey:d&&!d.isPublic&&"pgpv1:group"===b?d.sessionKey:null,encryptedSecret:v,messageContent:g,signature:m,sigType:"pgpv3"},A={fromDID:w.fromDID,toDID:w.fromDID,fromCAIP10:w.fromCAIP10,toCAIP10:w.toCAIP10,messageObj:w.messageObj,messageType:w.messageType,encType:w.encType,sessionKey:w.sessionKey,encryptedSecret:w.encryptedSecret},C=u.SHA256(JSON.stringify(A)).toString(),E=yield h.sign({message:C,signingKey:t.privateKey});return w.verificationProof=`pgpv3:${E}`,w}));t.rejectRequestPayload=(e,t,r,n)=>({fromDID:e,toDID:t,verificationProof:r+":"+n});t.createGroupPayload=(e,t,r,n,i,o,a,s,c,u,l,d,f,h,p,g,m)=>({groupName:e,groupDescription:a,members:t,groupImage:s,admins:r,isPublic:n,contractAddressNFT:c,numberOfNFTs:u,contractAddressERC20:l,numberOfERC20:d,groupCreator:i,verificationProof:o,meta:f,groupType:h,scheduleAt:p,scheduleEnd:g,rules:m});t.groupDtoToSpaceDto=e=>{var t;const r={members:e.members.map((e=>({wallet:e.wallet,publicKey:e.publicKey,isSpeaker:e.isAdmin,image:e.image}))),pendingMembers:e.pendingMembers.map((e=>({wallet:e.wallet,publicKey:e.publicKey,isSpeaker:e.isAdmin,image:e.image}))),contractAddressERC20:e.contractAddressERC20,numberOfERC20:e.numberOfERC20,contractAddressNFT:e.contractAddressNFT,numberOfNFTTokens:e.numberOfNFTTokens,verificationProof:e.verificationProof,spaceImage:e.groupImage,spaceName:e.groupName,isPublic:e.isPublic,spaceDescription:e.groupDescription,spaceCreator:e.groupCreator,spaceId:e.chatId,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:null!==(t=e.status)&&void 0!==t?t:null,meta:e.meta};return e.rules&&(r.rules={entry:e.rules.entry}),r};t.groupDtoToSpaceDtoV2=(e,t=a.ENV.PROD)=>n.__awaiter(void 0,void 0,void 0,(function*(){var r;const n=yield(0,l.getAllGroupMembers)({chatId:e.chatId,env:t}),i={members:n.filter((e=>e.intent)).map((e=>{var t,r;return{wallet:e.address,publicKey:null!==(t=e.userInfo.publicKey)&&void 0!==t?t:"",isSpeaker:"admin"===e.role,image:null!==(r=e.userInfo.profile.picture)&&void 0!==r?r:""}})),pendingMembers:n.filter((e=>!e.intent)).map((e=>{var t,r;return{wallet:e.address,publicKey:null!==(t=e.userInfo.publicKey)&&void 0!==t?t:"",isSpeaker:"admin"===e.role,image:null!==(r=e.userInfo.profile.picture)&&void 0!==r?r:""}})),contractAddressERC20:null,numberOfERC20:0,contractAddressNFT:null,numberOfNFTTokens:0,verificationProof:"a",spaceImage:e.groupImage,spaceName:e.groupName,isPublic:e.isPublic,spaceDescription:e.groupDescription,spaceCreator:e.groupCreator,spaceId:e.chatId,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:null!==(r=e.status)&&void 0!==r?r:null,meta:e.meta};return e.rules&&(i.rules={entry:e.rules.entry}),i}));t.groupInfoDtoToSpaceInfoDto=e=>{var t,r,n,i,o;return{spaceName:e.groupName,spaceImage:e.groupImage,spaceDescription:e.groupDescription,isPublic:e.isPublic,spaceCreator:e.groupCreator,spaceId:e.chatId,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:null!==(t=e.status)&&void 0!==t?t:null,rules:null!==(r=e.rules)&&void 0!==r?r:null,meta:null!==(n=e.meta)&&void 0!==n?n:null,sessionKey:null!==(i=e.sessionKey)&&void 0!==i?i:null,encryptedSecret:null!==(o=e.encryptedSecret)&&void 0!==o?o:null}};t.spaceDtoToSpaceInfoDto=e=>({spaceName:e.spaceName,spaceImage:e.spaceImage,spaceDescription:e.spaceDescription,isPublic:e.isPublic,spaceCreator:e.spaceCreator,spaceId:e.spaceId,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:e.status,rules:e.rules,meta:e.meta,sessionKey:null,encryptedSecret:null,inviteeDetails:e.inviteeDetails});t.mapSpaceListTypeToChatListType=e=>{switch(e){case d.SpaceListType.SPACES:return d.ChatListType.CHATS;case d.SpaceListType.REQUESTS:return d.ChatListType.REQUESTS;default:throw new Error(`Unsupported SpaceListType: ${e}`)}};t.convertSpaceRulesToRules=e=>({entry:e.entry,chat:void 0});t.convertRulesToSpaceRules=e=>({entry:e.entry});t.groupAccessToSpaceAccess=e=>{const r={entry:e.entry};return e.rules&&(r.rules=(0,t.convertRulesToSpaceRules)(e.rules)),r};t.updateGroupPayload=(e,t,r,n,i,o,a,s,c,u,l,d,f)=>Object.assign(Object.assign({groupName:e,groupImage:s,groupDescription:a,members:t,admins:r,address:n,verificationProof:i,encryptedSecret:o,scheduleAt:c,scheduleEnd:u,status:l},void 0!==d&&{meta:d}),void 0!==f&&{rules:f});t.getAdminsList=(e,r)=>[...e?(0,t.convertToWalletAddressList)(e.filter((e=>e.isAdmin))):[],...r?(0,t.convertToWalletAddressList)(r.filter((e=>e.isAdmin))):[]];t.getSpaceAdminsList=(e,r)=>[...e?(0,t.convertToWalletAddressList)(e.filter((e=>e.isSpeaker))):[],...r?(0,t.convertToWalletAddressList)(r.filter((e=>e.isSpeaker))):[]];t.convertToWalletAddressList=e=>e?e.map((e=>e.wallet)):[];t.getMembersList=(e,r)=>{const n=[...e||[],...r||[]];return(0,t.convertToWalletAddressList)(n)};t.getSpacesMembersList=(e,r)=>{const n=[...e||[],...r||[]];return(0,t.convertToWalletAddressList)(n)}},129272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pgpDecrypt=t.verifySignature=t.sign=t.pgpEncrypt=t.generateKeyPair=t.PGPHelper=void 0;const n=r(331635),i=r(815604),o={generateKeyPair(){return n.__awaiter(this,void 0,void 0,(function*(){const e=yield i.generateKey({type:"rsa",rsaBits:2048,userIDs:[{name:"",email:""}]});return{privateKeyArmored:e.privateKey,publicKeyArmored:e.publicKey}}))},sign({message:e,signingKey:t}){return n.__awaiter(this,void 0,void 0,(function*(){const r=yield i.createMessage({text:e}),n=yield i.readPrivateKey({armoredKey:t});return yield i.sign({message:r,signingKeys:n,detached:!0})}))},pgpEncrypt({plainText:e,keys:t}){return n.__awaiter(this,void 0,void 0,(function*(){const r=[];for(let e=0;en.__awaiter(void 0,void 0,void 0,(function*(){const e=yield i.generateKey({type:"rsa",rsaBits:2048,userIDs:[{name:"",email:""}]});return{privateKeyArmored:e.privateKey,publicKeyArmored:e.publicKey}}));t.pgpEncrypt=({plainText:e,keys:t})=>n.__awaiter(void 0,void 0,void 0,(function*(){const r=[];for(let e=0;en.__awaiter(void 0,void 0,void 0,(function*(){const r=yield i.createMessage({text:e}),n=yield i.readPrivateKey({armoredKey:t});return yield i.sign({message:r,signingKeys:n,detached:!0})}));t.verifySignature=({messageContent:e,signatureArmored:t,publicKeyArmored:r})=>n.__awaiter(void 0,void 0,void 0,(function*(){const n=yield i.createMessage({text:e}),o=yield i.readSignature({armoredSignature:t}),a=yield i.readKey({armoredKey:r}),s=yield i.verify({message:n,signature:o,verificationKeys:a}),{verified:c}=s.signatures[0];try{yield c}catch(u){throw new Error("Signature could not be verified: "+u)}}));t.pgpDecrypt=({cipherText:e,toPrivateKeyArmored:t})=>n.__awaiter(void 0,void 0,void 0,(function*(){const r=yield i.readMessage({armoredMessage:e}),n=yield i.readPrivateKey({armoredKey:t}),{data:o}=yield i.decrypt({message:r,decryptionKeys:n});return o}))},772324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMessagesService=t.getConversationHashService=t.authUpdateUserService=t.createUserService=void 0;const n=r(331635),i=r(397067),o=r(795924),a=r(82950),s=r(565870),c=r(441786);t.createUserService=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{wallet:t,publicKey:r="",encryptedPrivateKey:u="",env:l=i.default.ENV.PROD,origin:d}=e||{};let{user:f}=e||{};const h=`${(0,o.getAPIBaseUrls)(l)}/v2/users/`;if((0,o.isValidNFTCAIP)(f)){const e=Math.floor(Date.now()/1e3);6!==f.split(":").length&&(f=`${f}:${e}`)}const p={caip10:(0,o.walletToPCAIP10)(f),did:(0,o.walletToPCAIP10)(f),publicKey:r,encryptedPrivateKey:u},g=(0,o.generateHash)(p),m=yield(0,a.getEip191Signature)(t,g,"v2"),y=Object.assign(Object.assign(Object.assign({},p),{origin:d}),m);return(0,c.axiosPost)(h,y).then((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return e.data&&(e.data.publicKey=yield(0,o.verifyProfileKeys)(e.data.encryptedPrivateKey,e.data.publicKey,e.data.did,e.data.wallets,e.data.verificationProof)),(0,s.populateDeprecatedUser)(e.data)})))).catch((e=>{throw Error(`[Push SDK] - API ${h}: ${e}`)}))}));t.authUpdateUserService=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{user:t,wallet:r,publicKey:u="",encryptedPrivateKey:l="",env:d=i.default.ENV.PROD}=e||{},f=`${(0,o.getAPIBaseUrls)(d)}/v2/users/${(0,o.walletToPCAIP10)(t)}/auth`,h={caip10:(0,o.walletToPCAIP10)(t),did:(0,o.walletToPCAIP10)(t),publicKey:u,encryptedPrivateKey:l},p=(0,o.generateHash)(h),g=yield(0,a.getEip191Signature)(r,p,"v2"),m=Object.assign(Object.assign({},h),g),{did:y}=m,b=n.__rest(m,["did"]);return(0,c.axiosPut)(f,b).then((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return e.data&&(e.data.publicKey=yield(0,o.verifyProfileKeys)(e.data.encryptedPrivateKey,e.data.publicKey,e.data.did,e.data.wallets,e.data.verificationProof)),(0,s.populateDeprecatedUser)(e.data)})))).catch((e=>{throw Error(`[Push SDK] - API ${f}: ${e}`)}))}));t.getConversationHashService=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{conversationId:t,account:r,env:n=i.default.ENV.PROD}=e||{},a=`${(0,o.getAPIBaseUrls)(n)}/v1/chat/users/${(0,o.walletToPCAIP10)(r)}/conversations/${t}/hash`;return(0,c.axiosGet)(a).then((e=>e.data)).catch((e=>{throw new Error(e)}))}));t.getMessagesService=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{threadhash:t,limit:r,env:n=i.default.ENV.PROD}=e||{},a={fetchLimit:r},s=`${`${(0,o.getAPIBaseUrls)(n)}/v1/chat/conversationhash/${t}`}?${(0,o.getQueryParams)(a)}`;return(0,c.axiosGet)(s).then((e=>e.data)).catch((e=>{throw new Error(e)}))}))},902729:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyProfileSignature=t.getTypedData=t.getTypeInformation=t.getDomainInformation=void 0;const n=r(331635),i=r(151594),o=r(302576);t.getDomainInformation=e=>({name:"PUSH CHAT ID",chainId:e,verifyingContract:"0x0000000000000000000000000000000000000000"});t.getTypeInformation=()=>({Data:[{name:"data",type:"string"}]});t.getTypedData=(e,r,n)=>{const i={data:e},o=(0,t.getTypeInformation)(),a=(0,t.getDomainInformation)(r);let s,c={};return"V1"===n?s={EIP712Domain:[],Data:o.Data}:(s={EIP712Domain:[{name:"name",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"}],Data:o.Data},c=a),{types:s,primaryType:"Data",domain:c,message:i}};t.verifyProfileSignature=(e,r,a)=>n.__awaiter(void 0,void 0,void 0,(function*(){const n="eip712v2";let s,c=null;const u=e.split(":")[0];if(u!==n&&"eip191"!==u&&"eip191v2"!==u||e.split(":").length>3)return!1;if(2===e.split(":").length?s=e.split(":")[1]:(c=parseInt(e.split(":")[1]),s=e.split(":")[2]),u===n)try{const e=(0,t.getTypedData)(r,c,"V2");return(0,i.recoverTypedSignature)({data:e,signature:s,version:i.SignTypedDataVersion.V4}).toLowerCase()===a.toLowerCase()}catch(l){const e=(0,t.getTypedData)(r,c,"V1");return(0,i.recoverTypedSignature)({data:e,signature:s,version:i.SignTypedDataVersion.V4}).toLowerCase()===a.toLowerCase()}else try{return(yield o.recoverAddress({hash:o.hashMessage(r),signature:s})).toLowerCase()===a.toLowerCase()}catch(l){return!1}}))},965044:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConnectedUserV2Core=t.getConnectedUserV2=void 0;const n=r(331635),i=r(397067),o=r(75232),a=r(989074),s=r(813951);t.getConnectedUserV2=(e,r,i)=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.getConnectedUserV2Core)(e,r,i,s.PGPHelper)}));t.getConnectedUserV2Core=(e,t,r,c)=>n.__awaiter(void 0,void 0,void 0,(function*(){const n=yield(0,a.getAccountAddress)(e),u=yield(0,o.get)({account:n,env:r||i.default.ENV.PROD});if(null==u?void 0:u.encryptedPrivateKey){if(t)return Object.assign(Object.assign({},u),{privateKey:t});{console.warn("Please note that if you don't pass the pgpPrivateKey parameter, a wallet popup will appear every time the approveRequest endpoint is called. We strongly recommend passing this parameter, and it will become mandatory in future versions of the API.");const t=yield(0,s.getDecryptedPrivateKey)(e,u,n,r);return Object.assign(Object.assign({},u),{privateKey:t})}}{const t={};e.account&&(t.account=e.account),u&&u.did&&(t.account=u.did),e.signer&&(t.signer=e.signer),t.env=r;const i=yield(0,o.createUserCore)(t,c),a=yield(0,s.getDecryptedPrivateKey)(e,i,n,r);return Object.assign(Object.assign({},i),{privateKey:a})}}))},188117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateGroupMemberUpdateOptions=t.updateGroupRequestValidator=t.validateScheduleDates=t.createSpaceRequestValidator=t.createGroupRequestValidator=void 0;const n=r(795924);t.createGroupRequestValidator=(e,t,r,i,o,a,s,c)=>{if(null==e||0==e.length)throw new Error("groupName cannot be null or empty");if(e.length>50)throw new Error("groupName cannot be more than 50 characters");if(i&&i.length>150)throw new Error("groupDescription cannot be more than 150 characters");if(null==t)throw new Error("members cannot be null");for(let u=0;u0&&!(0,n.isValidFullCAIP10)(o))throw new Error("Invalid contractAddressNFT address!");if(null!=a&&a<0)throw new Error("numberOfNFTs cannot be negative number");if(null!=s&&(null==s?void 0:s.length)>0&&!(0,n.isValidFullCAIP10)(s))throw new Error("Invalid contractAddressERC20 address!");if(null!=c&&c<0)throw new Error("numberOfERC20 cannot be negative number")};t.createSpaceRequestValidator=(e,t,r,i,o,a,s,c)=>{if(null==e||0==e.length)throw new Error("spaceName cannot be null or empty");if(e.length>50)throw new Error("groupName cannot be more than 50 characters");if(t&&t.length>150)throw new Error("spaceDescription cannot be more than 150 characters");if(null==r)throw new Error("members cannot be null");for(let u=0;u0&&!(0,n.isValidFullCAIP10)(o))throw new Error("Invalid contractAddressNFT address!");if(null!=a&&a<0)throw new Error("numberOfNFTs cannot be negative number");if(null!=s&&(null==s?void 0:s.length)>0&&!(0,n.isValidFullCAIP10)(s))throw new Error("Invalid contractAddressERC20 address!");if(null!=c&&c<0)throw new Error("numberOfERC20 cannot be negative number")};t.validateScheduleDates=(e,t)=>{if(e){const r=new Date(e),n=new Date;if(r=e)throw new Error("Schedule start time must be earlier than end time.")}}};t.updateGroupRequestValidator=(e,t,r,i,o,a)=>{if(null==e||0==e.length)throw new Error("chatId cannot be null or empty");if(null==t||0==t.length)throw new Error("groupName cannot be null or empty");if(null!=t&&t.length>50)throw new Error("groupName cannot be more than 50 characters");if(a&&null!=a&&a.length>150)throw new Error("groupDescription cannot be more than 150 characters");if(null!=r&&r.length>0)for(let s=0;s0)for(let s=0;s{const{chatId:t,upsert:r,remove:i}=e;if(!t||0===t.trim().length)throw new Error("Chat ID cannot be null or empty.");const o=["members","admins"];if(Object.keys(r).forEach((e=>{if(!o.includes(e))throw new Error(`Invalid role: ${e}. Allowed roles are ${o.join(", ")}.`);if(r[e]&&r[e].length>1e3)throw new Error(`${e} array cannot have more than 1000 addresses.`);r[e].forEach((t=>{if(!(0,n.isValidPushCAIP)(t))throw new Error(`Invalid address found in ${e} list.`)}))})),i&&i.length>1e3)throw new Error("Remove array cannot have more than 1000 addresses.");i.forEach((e=>{if(!(0,n.isValidPushCAIP)(e))throw new Error("Invalid address found in remove list.")}))}},989074:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAccountAddress=t.getWallet=void 0;const n=r(331635),i=r(795924);t.getWallet=e=>{const{account:t,signer:r}=e||{};return{account:t?(0,i.pCAIP10ToWallet)(t):t,signer:r}};t.getAccountAddress=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:t,signer:r}=e||{},n=new i.Signer(r);return t||(yield n.getAddress())||""}))},116729:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.historyCore=t.history=void 0;const n=r(331635),i=r(397067),o=r(500547),a=r(795924),s=r(75232),c=r(813951);var u;!function(e){e[e.MIN=1]="MIN",e[e.DEFAULT=10]="DEFAULT",e[e.MAX=30]="MAX"}(u||(u={}));t.history=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.historyCore)(e,c.PGPHelper)}));t.historyCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{threadhash:n,limit:l=u.DEFAULT,pgpPrivateKey:d="",account:f,toDecrypt:h=!1,env:p=i.default.ENV.PROD}=e||{};try{if(lu.MAX)throw l{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decryptConversation=t.decryptPGPKey=t.decryptWithWalletRPCMethod=void 0;const n=r(331635);n.__exportStar(r(503114),t),n.__exportStar(r(898255),t),n.__exportStar(r(183847),t),n.__exportStar(r(210539),t),n.__exportStar(r(113738),t),n.__exportStar(r(665447),t),n.__exportStar(r(116729),t),n.__exportStar(r(145819),t);var i=r(449203);Object.defineProperty(t,"decryptWithWalletRPCMethod",{enumerable:!0,get:function(){return i.decryptWithWalletRPCMethod}});var o=r(449203);Object.defineProperty(t,"decryptPGPKey",{enumerable:!0,get:function(){return o.decryptPGPKey}});var a=r(813951);Object.defineProperty(t,"decryptConversation",{enumerable:!0,get:function(){return a.decryptConversation}}),n.__exportStar(r(357673),t),n.__exportStar(r(84590),t),n.__exportStar(r(769402),t),n.__exportStar(r(681089),t),n.__exportStar(r(61638),t),n.__exportStar(r(91012),t),n.__exportStar(r(804991),t),n.__exportStar(r(559190),t),n.__exportStar(r(245374),t),n.__exportStar(r(63601),t),n.__exportStar(r(334264),t),n.__exportStar(r(638009),t),n.__exportStar(r(380469),t),n.__exportStar(r(144238),t),n.__exportStar(r(152983),t),n.__exportStar(r(446206),t),n.__exportStar(r(676349),t),n.__exportStar(r(935930),t),n.__exportStar(r(40323),t),n.__exportStar(r(906559),t)},134631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCID=void 0;const n=r(331635),i=r(397067),o=r(500547),a=r(795924),s=r(441786);t.getCID=function e(t,r){return n.__awaiter(this,void 0,void 0,(function*(){const{env:n=i.default.ENV.PROD}=r||{},c=`${(0,a.getAPIBaseUrls)(n)}/v1/ipfs/${t}`;try{const e=yield(0,s.axiosGet)(c);return e.data}catch(u){throw(0,o.handleError)(u,e.name)}}))}},145819:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.latestCore=t.latest=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(116729);t.latest=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.latestCore)(e,o.PGPHelper)}));t.latestCore=(e,t)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{threadhash:t,pgpPrivateKey:r="",account:n,toDecrypt:o=!1,env:s=i.default.ENV.PROD}=e||{};return(0,a.history)({threadhash:t,toDecrypt:o,limit:1,pgpPrivateKey:r,account:n,env:s})}))},40323:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.modifyRoles=void 0;const n=r(331635),i=r(746290),o=r(397067),a=r(500547),s=r(88634);t.modifyRoles=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,newRole:n,members:c,account:u=null,signer:l=null,env:d=o.default.ENV.PROD,pgpPrivateKey:f=null,overrideSecretKeyGeneration:h=!i.ALPHA_FEATURE_CONFIG[o.PACKAGE_BUILD].feature.includes(o.default.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==u&&null==l)throw new Error("At least one from account or signer is necessary!");if(!c||0===c.length)throw new Error("Members array cannot be empty!");const e={chatId:r,upsert:{admins:"ADMIN"===n?c:[],members:"MEMBER"===n?c:[]},remove:[],account:u,signer:l,pgpPrivateKey:f,env:d,overrideSecretKeyGeneration:h};return yield(0,s.updateGroupMembers)(e)}catch(p){throw(0,a.handleError)(p,t.modifyRoles.name)}}))},380469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reject=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(441786),u=r(500547);t.reject=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:r=null,signer:n=null,senderAddress:l,env:d=o.default.ENV.PROD,pgpPrivateKey:f=null}=e||{};if(null==r&&null==n)throw new Error("At least one from account or signer is necessary!");const h=(0,a.getWallet)({account:r,signer:n}),p=yield(0,a.getAccountAddress)(h),g=`${(0,i.getAPIBaseUrls)(d)}/v1/chat/request/reject`;let m=!0;(0,i.isValidPushCAIP)(l)&&(m=!1);const y=yield(0,a.getConnectedUserV2)(h,f,d);let b=yield(0,i.convertToValidDID)(l,d),v=yield(0,i.convertToValidDID)(p,d);m&&(b=yield(0,i.convertToValidDID)(p,d),v=yield(0,i.convertToValidDID)(l,d));const w={fromDID:b,toDID:v},A=s.SHA256(JSON.stringify(w)).toString(),C=yield(0,a.sign)({message:A,signingKey:y.privateKey}),E=(0,a.rejectRequestPayload)(b,v,"pgp",C);return(0,c.axiosPut)(g,E).then((e=>e.data)).catch((e=>{throw(0,u.handleError)(e,t.reject.name)}))}))},63601:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeAdmins=void 0;const n=r(331635),i=r(746290),o=r(397067),a=r(500547),s=r(88634);t.removeAdmins=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,admins:n,account:c=null,signer:u=null,env:l=o.default.ENV.PROD,pgpPrivateKey:d=null,overrideSecretKeyGeneration:f=!i.ALPHA_FEATURE_CONFIG[o.PACKAGE_BUILD].feature.includes(o.default.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==c&&null==u)throw new Error("At least one from account or signer is necessary!");if(!n||0===n.length)throw new Error("Admin address array cannot be empty!");const e={chatId:r,upsert:{members:[],admins:[]},remove:n,account:c,signer:u,pgpPrivateKey:d,env:l,overrideSecretKeyGeneration:f};return yield(0,s.updateGroupMembers)(e)}catch(h){throw(0,a.handleError)(h,t.removeAdmins.name)}}))},245374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeMembers=void 0;const n=r(331635),i=r(746290),o=r(397067),a=r(500547),s=r(88634);t.removeMembers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,members:n,account:c=null,signer:u=null,env:l=o.default.ENV.PROD,pgpPrivateKey:d=null,overrideSecretKeyGeneration:f=!i.ALPHA_FEATURE_CONFIG[o.PACKAGE_BUILD].feature.includes(o.default.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==c&&null==u)throw new Error("At least one from account or signer is necessary!");if(!n||0===n.length)throw new Error("Member address array cannot be empty!");const e={chatId:r,upsert:{members:[],admins:[]},remove:n,account:c,signer:u,pgpPrivateKey:d,env:l,overrideSecretKeyGeneration:f};return yield(0,s.updateGroupMembers)(e)}catch(h){throw(0,a.handleError)(h,t.removeMembers.name)}}))},183847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestsCore=t.requests=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(813951),c=r(500547);t.requests=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.requestsCore)(e,s.PGPHelper)}));t.requestsCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:n,pgpPrivateKey:u,env:l=o.default.ENV.PROD,toDecrypt:d=!1,page:f=1,limit:h=10}=e||{},p=yield(0,i.convertToValidDID)(n,l),g=`${(0,i.getAPIBaseUrls)(l)}/v1/chat/users/${p}/requests?page=${f}&limit=${h}`;try{if(!(0,i.isValidPushCAIP)(p))throw new Error("Invalid address!");const e=(yield(0,a.axiosGet)(g)).data.requests,t=(0,s.addDeprecatedInfo)(e);return yield(0,s.getInboxLists)({lists:t,user:p,toDecrypt:d,pgpPrivateKey:u,env:l},r)}catch(m){throw(0,c.handleError)(m,t.requests.name)}}))},638009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.search=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(500547);t.search=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{searchTerm:r,pageNumber:n,pageSize:c,env:u=o.default.ENV.PROD}=e||{};try{const e=`${(0,i.getAPIBaseUrls)(u)}/v1/chat/groups/search`;return(yield(0,a.axiosPost)(e,{searchTerm:r,pageNumber:n,pageSize:c})).data}catch(l){throw(0,s.handleError)(l,t.search.name)}}))},210539:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendCore=t.send=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(113738),c=r(813951),u=r(357877),l=r(441786),d=r(446206),f=r(500547);t.send=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.sendCore)(e,a.PGPHelper)}));t.sendCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){try{const t=p(e),{messageType:n,messageObj:u,account:f,to:g,signer:m,pgpPrivateKey:y,env:b}=t;yield h(t);const v=(0,a.getWallet)({account:f,signer:m}),w=yield(0,a.getConnectedUserV2Core)(v,y,b,r),A=yield(0,i.convertToValidDID)(g,b),C=(0,i.getAPIBaseUrls)(b),E=!(0,i.isValidPushCAIP)(g),x=E?yield(0,d.getGroupInfo)({chatId:g,env:b}):null;let S;S=n===o.MessageType.REPLY||n===o.MessageType.COMPOSITE?"MessageType Not Supported by this sdk version. Plz upgrade !!!":u.content;const I=yield(0,s.conversationHash)({conversationId:A,account:w.did,env:b});let k;k=E||!I||(null==I?void 0:I.threadHash)?`${C}/v1/chat/message`:`${C}/v1/chat/request`;const _=yield(0,c.sendMessagePayloadCore)(A,w,u,S,n,x,b,r);return(yield(0,l.axiosPost)(k,_)).data}catch(n){throw(0,f.handleError)(n,t.send.name)}}));const h=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{messageType:t,messageObj:r,account:n,to:o,signer:s,pgpPrivateKey:c,env:l}=e;if(!n&&!s)throw new Error("Unable to detect sender. Please ensure that either 'account' or 'signer' is properly defined.");if(!s&&!c)throw new Error("Unable to decrypt keys. Please ensure that either 'signer' or 'pgpPrivateKey' is properly defined.");const d=(0,a.getWallet)({account:n,signer:s}),f=yield(0,a.getAccountAddress)(d);if(!(0,i.isValidPushCAIP)(f))throw new Error("Invalid sender. Please ensure that either 'account' or 'signer' is properly defined.");(0,u.validateMessageObj)(r,t)})),p=e=>{var t,r,i;const a=void 0!==(null===(t=e.message)||void 0===t?void 0:t.type)?e.message.type:null!==(r=e.messageType)&&void 0!==r?r:"Text";let s=e.message;if(void 0===s){if(void 0===e.messageObj&&![o.MessageType.TEXT,o.MessageType.IMAGE,o.MessageType.FILE,o.MessageType.MEDIA_EMBED,o.MessageType.GIF].includes(a))throw new Error("Options.message is required");s=void 0!==e.messageObj?e.messageObj:{content:null!==(i=e.messageContent)&&void 0!==i?i:""}}else{const{type:e}=s;s=n.__rest(s,["type"])}if(a===o.MessageType.REPLY){if("object"!=typeof s.content)throw new Error("Options.message is not properly defined for Reply");{const e=s.content,{type:t}=e,r=n.__rest(e,["type"]);s.content={messageType:t,messageObj:r}}}if(a===o.MessageType.COMPOSITE){if(!(s.content instanceof Array))throw new Error("Options.message is not properly defined for Composite");s.content=s.content.map((e=>{const{type:t}=e;return{messageType:t,messageObj:n.__rest(e,["type"])}}))}const c=void 0!==e.account?e.account:null,u=void 0!==e.to?e.to:e.receiverAddress;if(void 0===u)throw new Error("Options.to is required");return{messageType:a,messageObj:s,account:c,to:u,signer:void 0!==e.signer?e.signer:null,pgpPrivateKey:void 0!==e.pgpPrivateKey?e.pgpPrivateKey:null,env:void 0!==e.env?e.env:o.default.ENV.PROD}}},681089:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateGroupCore=t.updateGroup=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(441786),u=r(61638),l=r(299348),d=r(144238),f=r(500547);t.updateGroup=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.updateGroupCore)(e,a.PGPHelper)}));t.updateGroupCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:h,groupName:p,groupImage:g,groupDescription:m,members:y,admins:b,account:v=null,signer:w=null,env:A=o.default.ENV.PROD,pgpPrivateKey:C=null,scheduleAt:E,scheduleEnd:x,status:S,meta:I,rules:k}=e||{};try{if(null==v&&null==w)throw new Error("At least one from account or signer is necessary!");const e=(0,a.getWallet)({account:v,signer:w}),t=yield(0,a.getAccountAddress)(e);(0,a.updateGroupRequestValidator)(h,p,y,b,t,m);const o=yield(0,a.getConnectedUserV2Core)(e,C,A,r),f=y.map((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,i.convertToValidDID)(e,A)})))),_=b.map((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,i.convertToValidDID)(e,A)})))),T=yield Promise.all(f),M=yield Promise.all(_),P=yield(0,u.getGroup)({chatId:h,env:A}),j=new Set(T.map((e=>e.toLowerCase()))),D=yield(0,d.getGroupMemberStatus)({chatId:h,did:o.did,env:A});let O=!0;P.members.map((e=>{j.has(e.wallet.toLowerCase())||(O=!1)}));let B=null;if(!(O&&D.isMember||P.isPublic)){const e=l.generateRandomSecret(15),t=[];P.members.map((e=>{j.has(e.wallet.toLowerCase())&&t.push(e.publicKey)})),D.isMember||t.push(o.publicKey),B=yield r.pgpEncrypt({plainText:e,keys:t})}const N={groupName:p,groupDescription:null==m?null:m,groupImage:null==g?null:g,members:T,admins:M,chatId:h},R=s.SHA256(JSON.stringify(N)).toString(),L=yield r.sign({message:R,signingKey:o.privateKey}),F="pgp"+":"+L+":"+v,U=`${(0,i.getAPIBaseUrls)(A)}/v1/chat/groups/${h}`,z=(0,a.updateGroupPayload)(p,T,M,o.did,F,B,m,g,E,x,S,I,k);return(yield(0,c.axiosPut)(U,z)).data}catch(_){throw(0,f.handleError)(_,t.updateGroup.name)}}))},668943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateGroupConfig=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(441786),u=r(500547);t.updateGroupConfig=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,meta:n,scheduleAt:l,scheduleEnd:d,status:f,account:h=null,signer:p=null,env:g=o.default.ENV.PROD,pgpPrivateKey:m=null}=e||{};try{if(null==h&&null==p)throw new Error("At least one from account or signer is necessary!");const e=(0,a.getWallet)({account:h,signer:p}),t={meta:n,scheduleAt:l,scheduleEnd:d,status:f},o=s.SHA256(JSON.stringify(t)).toString(),u=yield(0,a.getConnectedUserV2)(e,m,g),y=yield(0,a.sign)({message:o,signingKey:u.privateKey}),b="pgpv2"+":"+y+":"+u.did,v=`${(0,i.getAPIBaseUrls)(g)}/v1/chat/groups/${r}/config`,w=t;w.configVerificationProof=b;return(yield(0,c.axiosPut)(v,w)).data}catch(y){throw(0,u.handleError)(y,t.updateGroupConfig.name)}}))},88634:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateGroupMembers=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(446206),u=r(144238),l=r(299348),d=r(918781),f=r(746290),h=r(441786),p=r(500547);t.updateGroupMembers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,upsert:g,remove:m,account:y=null,signer:b=null,env:v=o.default.ENV.PROD,pgpPrivateKey:w=null,overrideSecretKeyGeneration:A=!f.ALPHA_FEATURE_CONFIG[o.PACKAGE_BUILD].feature.includes(o.default.ALPHA_FEATURES.SCALABILITY_V2)}=e;try{(0,a.validateGroupMemberUpdateOptions)(e);const t=(0,a.getWallet)({account:y,signer:b}),o=yield(0,a.getConnectedUserV2Core)(t,w,v,a.PGPHelper),f=Object.entries(g).map((([e,t])=>n.__awaiter(void 0,void 0,void 0,(function*(){const r=yield Promise.all(t.map((e=>(0,i.convertToValidDID)(e,v))));return[e,r]})))),p=Object.fromEntries(yield Promise.all(f)),C=yield Promise.all(m.map((e=>(0,i.convertToValidDID)(e,v))));let E=null;const x=yield(0,c.getGroupInfo)({chatId:r,env:v});if(!x)throw new Error("Group not found");if(!x.isPublic&&(x.encryptedSecret||!A)){const{isMember:e}=yield(0,u.getGroupMemberStatus)({chatId:r,did:o.did,env:v}),t=yield(0,d.getAllGroupMembersPublicKeys)({chatId:r,env:v}),n=new Set(C.map((e=>e.toLowerCase())));let i=!0;if(t.map((e=>{n.has(e.did.toLowerCase())&&(i=!1)})),!i||!e){const r=l.generateRandomSecret(15),i=[];t.map((e=>{n.has(e.did.toLowerCase())||i.push(e.publicKey)})),e||i.push(o.publicKey),E=yield(0,a.pgpEncrypt)({plainText:r,keys:i})}}const S={upsert:p,remove:C,encryptedSecret:E},I=s.SHA256(JSON.stringify(S)).toString(),k=yield a.PGPHelper.sign({message:I,signingKey:o.privateKey}),_=`${"pgpv2"}:${k}:${o.did}`,T=`${(0,i.getAPIBaseUrls)(v)}/v1/chat/groups/${r}/members`,M={upsert:p,remove:C,encryptedSecret:E,deltaVerificationProof:_};return(yield(0,h.axiosPut)(T,M)).data}catch(C){throw(0,p.handleError)(C,t.updateGroupMembers.name)}}))},517496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateGroupProfile=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(441786),u=r(446206),l=r(500547);t.updateGroupProfile=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,groupName:d,groupImage:f,groupDescription:h,rules:p,account:g=null,signer:m=null,env:y=o.default.ENV.PROD,pgpPrivateKey:b=null}=e||{};try{if(null==g&&null==m)throw new Error("At least one from account or signer is necessary!");const e=(0,a.getWallet)({account:g,signer:m}),t=yield(0,a.getAccountAddress)(e);(0,a.updateGroupRequestValidator)(r,d,[],[],t,h);const o=yield(0,u.getGroupInfo)({chatId:r,env:y}),l={groupName:d,groupDescription:h,groupImage:f,rules:null!=p?p:{},isPublic:o.isPublic,groupType:o.groupType},v=s.SHA256(JSON.stringify(l)).toString(),w=yield(0,a.getConnectedUserV2)(e,b,y),A=yield(0,a.sign)({message:v,signingKey:w.privateKey}),C="pgpv2"+":"+A+":"+w.did,E=`${(0,i.getAPIBaseUrls)(y)}/v1/chat/groups/${r}/profile`,{isPublic:x,groupType:S}=l,I=n.__rest(l,["isPublic","groupType"]);I.profileVerificationProof=C;return(yield(0,c.axiosPut)(E,I)).data}catch(v){throw(0,l.handleError)(v,t.updateGroupProfile.name)}}))},746290:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ALPHA_FEATURE_CONFIG=t.VIEM_CONFIG=t.CHANNEL_TYPE=t.ABIS=t.MIN_TOKEN_BALANCE=t.TOKEN_VIEM_NETWORK_MAP=t.TOKEN=t.CORE_CONFIG=t.VIEM_CORE_CONFIG=t.CHAIN_NAME=t.CHAIN_ID=t.ALIAS_CHAIN_ID=t.ETH_CHAIN_ID=t.API_BASE_URL=void 0;const n=r(397067),i=r(124677),o=r(526366),a=r(229329),s=r(610971),c=r(139225);t.API_BASE_URL={[n.ENV.PROD]:"https://backend.epns.io/apis",[n.ENV.STAGING]:"https://backend-staging.epns.io/apis",[n.ENV.DEV]:"https://backend-dev.epns.io/apis",[n.ENV.LOCAL]:"http://localhost:4000/apis"};const u="eip155:1",l="eip155:11155111",d="eip155:137",f="eip155:80002",h="eip155:56",p="eip155:97",g="eip155:11155420",m="eip155:10",y="eip155:2442",b="eip155:1101",v="eip155:421614",w="eip155:42161",A="eip155:123",C="eip155:122",E="eip155:80085",x="eip155:111557560",S="eip155:7560";t.ETH_CHAIN_ID={[n.ENV.PROD]:1,[n.ENV.STAGING]:11155111,[n.ENV.DEV]:11155111,[n.ENV.LOCAL]:11155111},t.ALIAS_CHAIN_ID={POLYGON:{[n.ENV.PROD]:137,[n.ENV.STAGING]:80002,[n.ENV.DEV]:80002,[n.ENV.LOCAL]:80002},BSC:{[n.ENV.PROD]:56,[n.ENV.STAGING]:97,[n.ENV.DEV]:97,[n.ENV.LOCAL]:97},OPTIMISM:{[n.ENV.PROD]:10,[n.ENV.STAGING]:11155420,[n.ENV.DEV]:11155420,[n.ENV.LOCAL]:11155420},POLYGONZKEVM:{[n.ENV.PROD]:1101,[n.ENV.STAGING]:2442,[n.ENV.DEV]:2442,[n.ENV.LOCAL]:2442},ARBITRUMONE:{[n.ENV.PROD]:42161,[n.ENV.STAGING]:421614,[n.ENV.DEV]:421614,[n.ENV.LOCAL]:421614},FUSE:{[n.ENV.PROD]:122,[n.ENV.STAGING]:123,[n.ENV.DEV]:123,[n.ENV.LOCAL]:123},BERACHAIN:{[n.ENV.PROD]:0,[n.ENV.STAGING]:80085,[n.ENV.DEV]:80085,[n.ENV.LOCAL]:80085},CYBERCONNECT:{[n.ENV.PROD]:7560,[n.ENV.STAGING]:111557560,[n.ENV.DEV]:111557560,[n.ENV.LOCAL]:111557560}},t.CHAIN_ID=Object.assign({ETHEREUM:t.ETH_CHAIN_ID},t.ALIAS_CHAIN_ID),t.CHAIN_NAME={1:"ETHEREUM",11155111:"ETHEREUM",137:"POLYGON",80002:"POLYGON",56:"BSC",97:"BSC",10:"OPTIMISM",11155420:"OPTIMISM",1101:"POLYGONZKEVM",2442:"POLYGONZKEVM",421614:"ARBITRUN",42161:"ARBITRUM",122:"FUSE",123:"FUSE",80085:"BERACHAIN",7560:"CYBER_CONNECT_MAINNET",111557560:"CYBER_CONNECT_TESTNET"},t.VIEM_CORE_CONFIG={[n.ENV.PROD]:{NETWORK:s.mainnet,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_CORE_CONTRACT:"0x66329Fdd4042928BfCAB60b179e1538D56eeeeeE"},[n.ENV.STAGING]:{NETWORK:s.sepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_CORE_CONTRACT:"0x9d65129223451fbd58fc299c635cd919baf2564c"},[n.ENV.DEV]:{NETWORK:s.sepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_CORE_CONTRACT:"0x5ab1520e2bd519bdab2e1347eee81c00a77f4946"},[n.ENV.LOCAL]:{NETWORK:s.sepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_CORE_CONTRACT:"0x5ab1520e2bd519bdab2e1347eee81c00a77f4946"}},t.CORE_CONFIG={[n.ENV.PROD]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_CORE_CONTRACT:"0x66329Fdd4042928BfCAB60b179e1538D56eeeeeE"},[n.ENV.STAGING]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_CORE_CONTRACT:"0x9d65129223451fbd58fc299c635cd919baf2564c"},[n.ENV.DEV]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_CORE_CONTRACT:"0x5ab1520e2bd519bdab2e1347eee81c00a77f4946"},[n.ENV.LOCAL]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_CORE_CONTRACT:"0x5ab1520e2bd519bdab2e1347eee81c00a77f4946"}};const I={[n.ENV.PROD]:{[u]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[d]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[h]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[m]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[b]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[w]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[C]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[S]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xbf895df410b7fcbe093973600950ba392f7e1d8e"}},[n.ENV.STAGING]:{[l]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x0c34d54a09cfe75bccd878a469206ae77e0fe6e7"},[f]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[p]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[g]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x9Dc25996ba72A2FD7E64e7a674232a683f406F1A"},[y]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x6e489b7af21ceb969f49a90e481274966ce9d74d"},[v]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x9Dc25996ba72A2FD7E64e7a674232a683f406F1A"},[A]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[E]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x7b9C405e261ba671f008c20D0321f62d08C140EC"},[x]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x6e489B7af21cEb969f49A90E481274966ce9D74d"}},[n.ENV.DEV]:{[l]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9dDCD7ed7151afab43044E4D694FA064742C428c"},[f]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[p]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x4132061E3349ff36cFfCadA460E10Bd4f31F7ea8"},[g]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[y]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[v]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[A]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x7eBb54D86CF928115965DB596a3E600404dD8039"},[E]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0xA1DF3E68D085aa6918bcc2506b24e499830Db0eB"},[x]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550B5c92baA056Fc0F08132f49508145F"}},[n.ENV.LOCAL]:{[l]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x9dDCD7ed7151afab43044E4D694FA064742C428c"},[f]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[p]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x4132061E3349ff36cFfCadA460E10Bd4f31F7ea8"},[g]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[y]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[v]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[A]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x7eBb54D86CF928115965DB596a3E600404dD8039"},[E]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0xA1DF3E68D085aa6918bcc2506b24e499830Db0eB"},[x]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550B5c92baA056Fc0F08132f49508145F"}}};t.default=I,t.TOKEN={[n.ENV.PROD]:"0xf418588522d5dd018b425E472991E52EBBeEEEEE",[n.ENV.STAGING]:"0x37c779a1564DCc0e3914aB130e0e787d93e21804",[n.ENV.DEV]:"0x37c779a1564DCc0e3914aB130e0e787d93e21804",[n.ENV.LOCAL]:"0x37c779a1564DCc0e3914aB130e0e787d93e21804"},t.TOKEN_VIEM_NETWORK_MAP={[n.ENV.PROD]:s.mainnet,[n.ENV.STAGING]:s.sepolia,[n.ENV.DEV]:s.sepolia,[n.ENV.LOCAL]:s.sepolia},t.MIN_TOKEN_BALANCE={[n.ENV.PROD]:50,[n.ENV.STAGING]:50,[n.ENV.DEV]:50,[n.ENV.LOCAL]:50},t.ABIS={CORE:i.coreABI,COMM:o.commABI,TOKEN:a.tokenABI},t.CHANNEL_TYPE={TIMEBOUND:4,GENERAL:2},t.VIEM_CONFIG={[n.ENV.PROD]:{[u]:{NETWORK:s.mainnet,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[d]:{NETWORK:s.polygon,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[h]:{NETWORK:s.bsc,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[m]:{NETWORK:s.optimism,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[b]:{NETWORK:s.polygonZkEvm,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[w]:{NETWORK:s.arbitrum,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[C]:{NETWORK:s.fuse,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[S]:{NETWORK:c.cyberConnectMainnet,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xbf895df410b7fcbe093973600950ba392f7e1d8e"}},[n.ENV.STAGING]:{[l]:{NETWORK:s.sepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x0c34d54a09cfe75bccd878a469206ae77e0fe6e7"},[f]:{NETWORK:c.polygonAmoy,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[p]:{NETWORK:s.bscTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[g]:{NETWORK:s.optimismSepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x9Dc25996ba72A2FD7E64e7a674232a683f406F1A"},[y]:{NETWORK:c.polygonZkEvmCordona,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x6e489b7af21ceb969f49a90e481274966ce9d74d"},[v]:{NETWORK:s.arbitrumSepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x9Dc25996ba72A2FD7E64e7a674232a683f406F1A"},[A]:{NETWORK:s.fuseSparknet,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[E]:{NETWORK:c.berachainTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x7b9C405e261ba671f008c20D0321f62d08C140EC"},[x]:{NETWORK:c.cyberConnectTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x6e489B7af21cEb969f49A90E481274966ce9D74d"}},[n.ENV.DEV]:{[l]:{NETWORK:s.sepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9dDCD7ed7151afab43044E4D694FA064742C428c"},[f]:{NETWORK:c.polygonAmoy,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[p]:{NETWORK:s.bscTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x4132061E3349ff36cFfCadA460E10Bd4f31F7ea8"},[g]:{NETWORK:s.optimismSepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[y]:{NETWORK:c.polygonZkEvmCordona,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[v]:{NETWORK:s.arbitrumSepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[A]:{NETWORK:s.fuseSparknet,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x7eBb54D86CF928115965DB596a3E600404dD8039"},[E]:{NETWORK:c.berachainTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0xA1DF3E68D085aa6918bcc2506b24e499830Db0eB"},[x]:{NETWORK:c.cyberConnectTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550B5c92baA056Fc0F08132f49508145F"}},[n.ENV.LOCAL]:{[l]:{NETWORK:s.sepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9dDCD7ed7151afab43044E4D694FA064742C428c"},[f]:{NETWORK:c.polygonAmoy,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[p]:{NETWORK:s.bscTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x4132061E3349ff36cFfCadA460E10Bd4f31F7ea8"},[g]:{NETWORK:s.optimismSepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[y]:{NETWORK:c.polygonZkEvmCordona,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[v]:{NETWORK:s.arbitrumSepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[A]:{NETWORK:s.fuseSparknet,API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x7eBb54D86CF928115965DB596a3E600404dD8039"},[E]:{NETWORK:c.berachainTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0xA1DF3E68D085aa6918bcc2506b24e499830Db0eB"},[x]:{NETWORK:c.cyberConnectTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550B5c92baA056Fc0F08132f49508145F"}}},t.ALPHA_FEATURE_CONFIG={STABLE:{feature:[]},ALPHA:{feature:[n.default.ALPHA_FEATURES.SCALABILITY_V2]}}},397067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PACKAGE_BUILD=t.ALPHA_FEATURES=t.MessageType=t.ENCRYPTION_TYPE=t.ENV=void 0;const n=r(207065);var i,o;!function(e){e.PROD="prod",e.STAGING="staging",e.DEV="dev",e.LOCAL="local"}(i=t.ENV||(t.ENV={})),function(e){e.PGP_V1="x25519-xsalsa20-poly1305",e.PGP_V2="aes256GcmHkdfSha256",e.PGP_V3="eip191-aes256-gcm-hkdf-sha256",e.NFTPGP_V1="pgpv1:nft"}(o=t.ENCRYPTION_TYPE||(t.ENCRYPTION_TYPE={})),function(e){e.TEXT="Text",e.IMAGE="Image",e.VIDEO="Video",e.AUDIO="Audio",e.FILE="File",e.GIF="GIF",e.MEDIA_EMBED="MediaEmbed",e.META="Meta",e.REACTION="Reaction",e.RECEIPT="Receipt",e.USER_ACTIVITY="UserActivity",e.INTENT="Intent",e.REPLY="Reply",e.COMPOSITE="Composite",e.PAYMENT="Payment"}(t.MessageType||(t.MessageType={})),t.ALPHA_FEATURES={SCALABILITY_V2:"SCALABILITY_V2"},t.PACKAGE_BUILD=n.version.includes("alpha")?"ALPHA":"STABLE";const a={ENV:i,ENCRYPTION_TYPE:o,PAGINATION:{INITIAL_PAGE:1,LIMIT:10,LIMIT_MIN:1,LIMIT_MAX:50},DEFAULT_CHAIN_ID:11155111,DEV_CHAIN_ID:99999,NON_ETH_CHAINS:[137,80002,56,97,10,11155420,2442,1101,421614,42161,122,123,80085,111557560,7560],ETH_CHAINS:[1,11155111],ENC_TYPE_V1:"x25519-xsalsa20-poly1305",ENC_TYPE_V2:"aes256GcmHkdfSha256",ENC_TYPE_V3:"eip191-aes256-gcm-hkdf-sha256",ENC_TYPE_V4:"pgpv1:nft",ALPHA_FEATURES:t.ALPHA_FEATURES};t.default=a},191227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(397067),i=r(146180),o=r(701728),a=r(416062),s=r(200635),c=r(899024),u=r(574338),l={ENV:n.ENV,STREAM:a.STREAM,CHAT:{LIST_TYPE:o.ChatListType,MESSAGE_TYPE:n.MessageType,GROUP:{RULES:{CONDITION_TYPE:c.ConditionType,CATEGORY:c.GROUP_RULES_CATEGORY,SUBCATEGORY:c.GROUP_RULES_SUB_CATEGORY,PERMISSION:c.GROUP_RULES_PERMISSION,INVITER_ROLE:c.GROUP_INVITER_ROLE}}},VIDEO:{EVENT:a.VideoEventType,STATUS:c.VideoCallStatus,INITIAL_DATA:u.initVideoCallData},SPACE:{EVENT:a.SpaceEventType,INITIAL_DATA:s.initSpaceData},ALPHA_FEATURES:n.ALPHA_FEATURES,USER:{ENCRYPTION_TYPE:n.ENCRYPTION_TYPE},NOTIFICATION:{TYPE:c.NotifictaionType,CHANNEL:{LIST_TYPE:i.ChannelListType}},FILTER:{CHANNEL_LIST:{SORT:i.ChannelListSortType,ORDER:i.ChannelListOrderType},NOTIFICATION_TYPE:c.NotifictaionType}};t.default=l},139225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cyberConnectMainnet=t.cyberConnectTestnet=t.berachainTestnet=t.polygonAmoy=t.polygonZkEvmCordona=void 0;const n=r(302576);t.polygonZkEvmCordona=(0,n.defineChain)({id:2442,name:"Polygon zkEVM Cardona Testnet",network:"polygon-zkevm-testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.cardona.zkevm-rpc.com/"]},public:{http:["https://rpc.cardona.zkevm-rpc.com/"]}},blockExplorers:{default:{name:"Polygon zkEVM Cardona",url:" https://cardona-zkevm.polygonscan.com/"}},testnet:!0}),t.polygonAmoy=(0,n.defineChain)({id:80002,name:"Polygon Amoy Testnet",network:"polygon-amoy",nativeCurrency:{decimals:18,name:"MATIC",symbol:"MATIC"},rpcUrls:{default:{http:["https://rpc-amoy.polygon.technology/"]},public:{http:["https://rpc-amoy.polygon.technology/"]}},blockExplorers:{default:{name:"Polygon Amoy",url:"https://www.oklink.com/amoy"}},testnet:!0}),t.berachainTestnet=(0,n.defineChain)({id:80085,name:"Berachain Artio",network:"berachain-testnet",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},rpcUrls:{default:{http:["https://artio.rpc.berachain.com"]},public:{http:["https://artio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain",url:"https://artio.beratrail.io"}},testnet:!0}),t.cyberConnectTestnet=(0,n.defineChain)({id:111557560,name:"Cyber Testnet",network:"cyberconnect-testent",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber-testnet.alt.technology"]},public:{http:["https://cyber-testnet.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet.cyberscan.co"}},contracts:{multicall3:{address:"0xffc391F0018269d4758AEA1a144772E8FB99545E",blockCreated:304545}},testnet:!0}),t.cyberConnectMainnet=(0,n.defineChain)({id:7560,name:"Cyber",network:"cyberconnect-mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber.alt.technology"]},public:{http:["https://cyber.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://cyberscan.co",apiUrl:"https://cyberscan.co/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}})},430076:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpStatus=void 0,function(e){e[e.BadRequest=400]="BadRequest",e[e.NotFound=404]="NotFound",e[e.Forbidden=403]="Forbidden",e[e.InternalError=500]="InternalError"}(t.HttpStatus||(t.HttpStatus={}))},500547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleError=t.isErrorWithResponseV2=t.isErrorWithResponse=t.ValidationError=void 0;const n=r(430076);class i extends Error{constructor(e,t,r,n){super(r),this.name="ValidationError",this.status=e,this.errorCode=t,this.details=n}format(){return{status:this.status,errorCode:this.errorCode,message:this.message,details:this.details,timestamp:(new Date).toISOString()}}}function o(e){return"object"==typeof e&&null!==e&&"response"in e&&"object"==typeof e.response&&null!==e.response&&"status"in e.response&&"data"in e.response&&"object"==typeof e.response.data&&"status"in e.response.data&&"errorCode"in e.response.data&&"message"in e.response.data&&"details"in e.response.data&&"timestamp"in e.response.data}function a(e){return"object"==typeof e&&null!==e&&"response"in e&&"object"==typeof e.response&&null!==e.response&&"status"in e.response&&"data"in e.response&&"object"==typeof e.response.data&&"error"in e.response.data&&"message"in e.response.data&&"validation"in e.response.data}t.ValidationError=i,t.isErrorWithResponse=o,t.isErrorWithResponseV2=a,t.handleError=function(e,t){var r,s,c;let u=n.HttpStatus.InternalError,l="00000000000",d="An unexpected error occurred. Please contact support or try again later.",f="";if(o(e)){if(u=(null===(r=e.response)||void 0===r?void 0:r.status)||n.HttpStatus.InternalError,null===(s=e.response)||void 0===s?void 0:s.data){const t=e.response.data;l=t.errorCode||l,d=t.message||d,f=t.details||JSON.stringify(t)}}else if(a(e)){u=(null===(c=e.response)||void 0===c?void 0:c.status)||n.HttpStatus.InternalError;const t=e.response.data;d=t.message||d,f=t.validation||JSON.stringify(t)}else e instanceof Error&&(d=e.message,f=e.stack||"");const h=new i(u,l,d,f),p=`[Error - API ${t}]`;return console.error(`${p} ${JSON.stringify(h.format(),null,2)}`),h}},527596:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pCAIP10ToWallet=t.walletToPCAIP10=t.getCAIPWithChainId=t.getCAIPAddress=t.getFallbackETHCAIPAddress=t.getCAIPDetails=t.validateCAIP=t.isValidFullCAIP10=t.convertToValidDID=t.isValidPushCAIP=t.isValidEOACAIP=t.isValidNFTCAIP=t.isValidSCWCAIP=void 0;const n=r(331635),i=r(302576),o=r(397067),a=r(75232);t.isValidSCWCAIP=e=>{try{const t=e.split(":");return 4===t.length&&"scw"===t[0]&&"eip155"===t[1]&&!isNaN(Number(t[2]))&&Number(t[2])>0&&i.isAddress(t[3])}catch(t){return!1}};t.isValidNFTCAIP=e=>{try{const t=e.split(":");return(5===t.length||6===t.length)&&"nft"===t[0].toLowerCase()&&!isNaN(Number(t[4]))&&Number(t[4])>0&&!isNaN(Number(t[2]))&&Number(t[2])>0&&i.isAddress(t[3])&&"eip155"===t[1]}catch(t){return!1}};t.isValidEOACAIP=e=>{try{const t=e.split(":");return 3===t.length?"eip155"===t[0]&&!isNaN(Number(t[1]))&&Number(t[1])>0&&i.isAddress(t[2]):2===t.length&&("eip155"===t[0]&&i.isAddress(t[1]))}catch(t){return!1}};t.isValidPushCAIP=e=>(0,t.isValidEOACAIP)(e)||(0,t.isValidSCWCAIP)(e)||(0,t.isValidNFTCAIP)(e)||i.isAddress(e);t.convertToValidDID=(e,r=o.ENV.STAGING,i,s)=>n.__awaiter(void 0,void 0,void 0,(function*(){if(!(0,t.isValidPushCAIP)(e))return e;if((0,t.isValidEOACAIP)(e)||(0,t.isValidSCWCAIP)(e)||(0,t.isValidNFTCAIP)(e)&&6===e.split(":").length)return e;if((0,t.isValidNFTCAIP)(e)){const t=yield(0,a.get)({account:e,env:r});if(t&&t.did)return t.did;const n=Math.floor(Date.now()/1e3);return`${e}:${n}`}return i?`eip155:${i}:${e}`:`eip155:${e}`}));t.isValidFullCAIP10=e=>{const t=e.split(":");return!isNaN(Number(t[1]))&&("eip155"===t[0]&&!isNaN(Number(t[1]))&&Number(t[1])>0&&i.isAddress(t[2]))};const s={eip155:({address:e})=>(0,t.isValidPushCAIP)(e)};function c(e){const[r,n,i]=e.split(":");if(!r)return!1;if(!n)return!1;if(!i)return!1;if((0,t.isValidNFTCAIP)(e))return!0;return(0,s[r])({address:i})}function u(e,t){let r=1;return e!==o.default.ENV.DEV&&e!==o.default.ENV.STAGING&&e!==o.default.ENV.LOCAL||(r=11155111),`eip155:${r}:${t}`}t.validateCAIP=c,t.getCAIPDetails=function(e){if(c(e)){const[t,r,n]=e.split(":");return{blockchain:t,networkId:r,address:n}}return null},t.getFallbackETHCAIPAddress=u,t.getCAIPAddress=function(e,r,i){return n.__awaiter(this,void 0,void 0,(function*(){if((0,t.isValidNFTCAIP)(r))return yield(0,t.convertToValidDID)(r,e);if(c(r))return r;if((0,t.isValidPushCAIP)(r))return u(e,r);throw Error(`Invalid Address! ${i} \n Address: ${r}`)}))};t.getCAIPWithChainId=(e,r,n)=>{if((0,t.isValidPushCAIP)(e))return e.includes("eip155:")?e:`eip155:${r}:${e}`;throw Error(`Invalid Address! ${n} \n Address: ${e}`)};t.walletToPCAIP10=e=>(0,t.isValidNFTCAIP)(e)||e.includes("eip155:")?e:"eip155:"+e;t.pCAIP10ToWallet=e=>(0,t.isValidNFTCAIP)(e)?e:e=e.replace("eip155:","")},565944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLimit=t.getQueryParams=void 0;const n=r(397067);t.getQueryParams=function(e){return Object.keys(e).map((t=>`${t}=${encodeURIComponent(e[t])}`)).join("&")},t.getLimit=function(e){return e||n.default.PAGINATION.LIMIT}},622042:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cache=void 0;const n=r(489096);t.cache=new n.LRUCache({max:200,maxSize:512e3,sizeCalculation:(e,t)=>"string"==typeof e?e.length:(new TextEncoder).encode(JSON.stringify(e)).length,ttl:3e5,allowStale:!1})},859848:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAPIBaseUrls=t.getConfig=void 0;const n=r(746290);t.getConfig=(e,{blockchain:t,networkId:r})=>{const i=`${t}:${r}`,o=n.default[e][i];if(!o)throw Error(`\n [Push SDK] - cannot determine config for \n env: ${e},\n blockchain: ${t},\n networkId: ${r}\n `);return o},t.getAPIBaseUrls=function(e){if(!e)throw Error("ENV not provided!");return n.API_BASE_URL[e]}},449203:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePssword=t.verifyProfileKeys=t.preparePGPPublicKey=t.encryptPGPKey=t.decryptV2=t.encryptV2=t.stringToHex=t.hexToBytes=t.generateHash=t.decryptPGPKey=t.decryptWithWalletRPCMethod=t.encryptV1=t.getPublicKey=void 0;const n=r(331635),i=r(151594),o=r(151594),a=r(921396),s=r(813951),c=r(397067),u=r(527596),l=r(902729),d=r(71827),f=r(552096),h=r(960380),p=r(302576),g=r(610971);let m;if("undefined"!=typeof window&&window.crypto)m=window.crypto;else{try{m=r(991565).webcrypto}catch(w){throw new Error("Unable To load crypto")}}t.getPublicKey=e=>n.__awaiter(void 0,void 0,void 0,(function*(){var t;const{account:r,signer:n}=e||{},i=n?new h.Signer(n):void 0,o=r||(yield null==i?void 0:i.getAddress())||"",a=p.createWalletClient({chain:g.mainnet,transport:p.custom(window.ethereum)}),s=(null===(t=null==n?void 0:n.provider)||void 0===t?void 0:t.provider)||a;return yield s.request({method:"eth_getEncryptionPublicKey",params:[o]})}));t.encryptV1=(e,t,r)=>i.encrypt({publicKey:t,data:e,version:r});t.decryptWithWalletRPCMethod=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){return console.warn("decryptWithWalletRPCMethod method is DEPRECATED. Use decryptPGPKey method with signer!"),yield(0,t.decryptPGPKey)({encryptedPGPPrivateKey:e,account:r})}));t.decryptPGPKey=e=>n.__awaiter(void 0,void 0,void 0,(function*(){var r,n,i;const{encryptedPGPPrivateKey:a,account:l=null,signer:h=null,env:m=c.default.ENV.PROD,toUpgrade:y=!0,additionalMeta:b=null,progressHook:v}=e||{};try{if(null==l&&null==h)throw new Error("At least one from account or signer is necessary!");const e=(0,s.getWallet)({account:l,signer:h}),A=yield(0,s.getAccountAddress)(e);if(!(0,u.isValidPushCAIP)(A))throw new Error("Invalid address!");const{version:C}=JSON.parse(a);let E;switch(null==v||v(f.default["PUSH-DECRYPT-01"]),C){case c.default.ENC_TYPE_V1:if(null===(r=null==e?void 0:e.signer)||void 0===r?void 0:r.privateKey)E=(0,o.decrypt)({encryptedData:JSON.parse(a),privateKey:null===(n=null==e?void 0:e.signer)||void 0===n?void 0:n.privateKey.substring(2)});else{const e=p.createWalletClient({chain:g.mainnet,transport:p.custom(window.ethereum)}),t=(null===(i=null==h?void 0:h.provider)||void 0===i?void 0:i.provider)||e;E=yield t.request({method:"eth_decrypt",params:[a,A]})}break;case c.default.ENC_TYPE_V2:{if(!(null==e?void 0:e.signer))throw new Error("Cannot Decrypt this encryption version without signer!");const{preKey:r}=JSON.parse(a),n="Enable Push Chat Profile \n"+r;let i;try{const{verificationProof:r}=yield(0,s.getEip712Signature)(e,n,!0);i=yield(0,t.decryptV2)(JSON.parse(a),(0,t.hexToBytes)(r||""))}catch(w){const{verificationProof:r}=yield(0,s.getEip712Signature)(e,n,!1);i=yield(0,t.decryptV2)(JSON.parse(a),(0,t.hexToBytes)(r||""))}E=(new TextDecoder).decode(i);break}case c.default.ENC_TYPE_V3:{if(!(null==e?void 0:e.signer))throw new Error("Cannot Decrypt this encryption version without signer!");const{preKey:r}=JSON.parse(a),n="Enable Push Profile \n"+r,{verificationProof:i}=yield(0,s.getEip191Signature)(e,n),o=yield(0,t.decryptV2)(JSON.parse(a),(0,t.hexToBytes)(i||""));E=(new TextDecoder).decode(o);break}case c.default.ENC_TYPE_V4:{let r=null;if(null==b?void 0:b.NFTPGP_V1)r=b.NFTPGP_V1.password;else{if(!(null==e?void 0:e.signer))throw new Error("Cannot Decrypt this encryption version without signer!");const{encryptedPassword:n}=JSON.parse(a);r=yield(0,t.decryptPGPKey)({encryptedPGPPrivateKey:JSON.stringify(n),signer:h,env:m})}const n=yield(0,t.decryptV2)(JSON.parse(a),(0,t.hexToBytes)((0,t.stringToHex)(r)));E=(new TextDecoder).decode(n);break}default:throw new Error("Invalid Encryption Type")}if(h&&y&&C!==c.default.ENC_TYPE_V4)try{yield(0,d.upgrade)({env:m,account:A,signer:h,progressHook:v})}catch(w){const e=f.default["PUSH-ERROR-01"];null==v||v(e(w))}return null==v||v(f.default["PUSH-DECRYPT-02"]),E}catch(w){const e=f.default["PUSH-ERROR-00"];throw null==v||v(e(t.decryptPGPKey.name,w)),Error(`[Push SDK] - API - Error - API ${t.decryptPGPKey.name} -: ${w}`)}}));t.generateHash=e=>a.SHA256(JSON.stringify(e)).toString(a.enc.Hex);const y=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return m.getRandomValues(e)})),b=e=>e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"");t.hexToBytes=e=>{const t=new Uint8Array(e.length/2);for(let r=0;r{let t="";for(let r=0;rn.__awaiter(void 0,void 0,void 0,(function*(){const r=yield m.subtle.importKey("raw",e,"HKDF",!1,["deriveKey"]);return m.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:t,info:new ArrayBuffer(0)},r,{name:"AES-GCM",length:256},!0,["encrypt","decrypt"])}));t.encryptV2=(e,t,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const n=m.getRandomValues(new Uint8Array(32)),i=m.getRandomValues(new Uint8Array(12)),o=yield v(t,n),a={name:"AES-GCM",iv:i};r&&(a.additionalData=r);const s=yield m.subtle.encrypt(a,o,e);return{ciphertext:b(new Uint8Array(s)),salt:b(n),nonce:b(i)}}));t.decryptV2=(e,r,i)=>n.__awaiter(void 0,void 0,void 0,(function*(){const n=yield v(r,(0,t.hexToBytes)(e.salt)),o={name:"AES-GCM",iv:(0,t.hexToBytes)(e.nonce)};i&&(o.additionalData=i);const a=yield m.subtle.decrypt(o,n,(0,t.hexToBytes)(e.ciphertext));return new Uint8Array(a)}));t.encryptPGPKey=(e,r,i,a)=>n.__awaiter(void 0,void 0,void 0,(function*(){var n,u,l;let d;switch(e){case c.default.ENC_TYPE_V1:{let a;a=(null===(n=null==i?void 0:i.signer)||void 0===n?void 0:n.privateKey)?(0,o.getEncryptionPublicKey)(null===(u=null==i?void 0:i.signer)||void 0===u?void 0:u.privateKey.substring(2)):yield(0,t.getPublicKey)(i),d=(0,t.encryptV1)(r,a,e);break}case c.default.ENC_TYPE_V2:{const e=b(yield y(new Uint8Array(32))),n="Enable Push Chat Profile \n"+e,{verificationProof:o}=yield(0,s.getEip712Signature)(i,n,!0),a=(new TextEncoder).encode(r);d=yield(0,t.encryptV2)(a,(0,t.hexToBytes)(o||"")),d.version=c.default.ENC_TYPE_V2,d.preKey=e;break}case c.default.ENC_TYPE_V3:{const e=b(yield y(new Uint8Array(32))),n="Enable Push Profile \n"+e,{verificationProof:o}=yield(0,s.getEip191Signature)(i,n),a=(new TextEncoder).encode(r);d=yield(0,t.encryptV2)(a,(0,t.hexToBytes)(o||"")),d.version=c.default.ENC_TYPE_V3,d.preKey=e;break}case c.default.ENC_TYPE_V4:{if(!(null===(l=null==a?void 0:a.NFTPGP_V1)||void 0===l?void 0:l.password))throw new Error("Password is required!");const e=(new TextEncoder).encode(r);d=yield(0,t.encryptV2)(e,(0,t.hexToBytes)((0,t.stringToHex)(a.NFTPGP_V1.password))),d.version=c.default.ENC_TYPE_V4,d.preKey="";break}default:throw new Error("Invalid Encryption Type")}return d}));t.preparePGPPublicKey=(e,t,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){let r;switch(e){case c.default.ENC_TYPE_V1:r=t;break;case c.default.ENC_TYPE_V2:case c.default.ENC_TYPE_V3:case c.default.ENC_TYPE_V4:{const e="DEPRECATED";r=JSON.stringify({key:t,signature:e});break}default:throw new Error("Invalid Encryption Type")}return r}));t.verifyProfileKeys=(e,r,i,o,a)=>n.__awaiter(void 0,void 0,void 0,(function*(){let n;try{if(n=JSON.parse(r).key,void 0===n)throw new Error("Invalid Public Key")}catch(s){n=r}try{if(r&&r.length>0&&a&&"eip191v2"===a.split(":")[0]){const s={caip10:o,did:i,publicKey:r,encryptedPrivateKey:e};if((0,u.isValidNFTCAIP)(i)){const t="owner",r=JSON.parse(e);t in r&&delete r[t],s.encryptedPrivateKey=JSON.stringify(r)}const c=(0,t.generateHash)(s);if(yield(0,l.verifyProfileSignature)(a,c,(0,u.isValidNFTCAIP)(i)?(0,u.pCAIP10ToWallet)(JSON.parse(e).owner):(0,u.pCAIP10ToWallet)(i)))return n;throw new Error("Invalid Signature")}return n}catch(s){return console.warn(`Cannot Verify keys for DID : ${i} !!!`),n}}));t.validatePssword=e=>{if(e.length<8)throw new Error("Password must be at least 8 characters long!");if(!/[A-Z]/.test(e))throw new Error("Password must contain at least one uppercase letter!");if(!/[a-z]/.test(e))throw new Error("Password must contain at least one lowercase letter!");if(!/\d/.test(e))throw new Error("Password must contain at least one digit!");if(!/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(e))throw new Error("Password must contain at least one special character!")}},795924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(331635);n.__exportStar(r(859848),t),n.__exportStar(r(527596),t),n.__exportStar(r(565944),t),n.__exportStar(r(449203),t),n.__exportStar(r(960380),t)},960380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Signer=void 0;const n=r(331635);t.Signer=class{constructor(e){this.signer=e}isViemSigner(e){return"function"==typeof e.signTypedData&&"function"==typeof e.getChainId&&1===e.signMessage.length&&1===e.signTypedData.length}signMessage(e){return n.__awaiter(this,void 0,void 0,(function*(){if("signMessage"in this.signer&&"function"==typeof this.signer.signMessage)return this.isViemSigner(this.signer)?this.signer.signMessage({message:e,account:this.signer.account}):this.signer.signMessage(e);throw new Error("Signer does not support signMessage")}))}signTypedData(e,t,r,i){return n.__awaiter(this,void 0,void 0,(function*(){if(this.isViemSigner(this.signer))return this.signer.signTypedData({domain:e,types:t,primaryType:i,message:r,account:this.signer.account});if("_signTypedData"in this.signer)return this.signer._signTypedData(e,t,r);if("signTypedData"in this.signer)return this.signer.signTypedData(e,t,r);throw new Error("Signer does not support signTypedData")}))}getAddress(){var e;return n.__awaiter(this,void 0,void 0,(function*(){return this.isViemSigner(this.signer)?null!==(e=this.signer.account.address)&&void 0!==e?e:"":yield this.signer.getAddress()}))}getChainId(){return n.__awaiter(this,void 0,void 0,(function*(){if(this.isViemSigner(this.signer))return this.signer.getChainId();if("provider"in this.signer&&this.signer.provider){const e=yield this.signer.provider.getNetwork();return Number(e.chainId)}return 1}))}}},971898:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.video=t.space=t.chat=t.payloads=t.utils=t.user=t.channels=t.alias=t.PushAPI=t.CONSTANTS=void 0;const n=r(331635),i=r(809317);t.alias=i;const o=r(918559);t.channels=o;const a=r(75232);t.user=a;const s=r(710644);t.utils=s;const c=r(446392);t.payloads=c;const u=r(585101);t.chat=u;const l=r(200635);t.space=l;const d=r(574338);t.video=d;const f=r(191227);t.CONSTANTS=f.default,n.__exportStar(r(899024),t),n.__exportStar(r(146180),t),n.__exportStar(r(416062),t),n.__exportStar(r(701728),t);var h=r(435669);Object.defineProperty(t,"PushAPI",{enumerable:!0,get:function(){return h.PushAPI}})},773773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIDEO_NOTIFICATION_ACCESS_TYPE=t.DEFAULT_DOMAIN=t.SPACE_ROLES=t.SPACE_INVITE_ROLES=t.SPACE_DISCONNECT_TYPE=t.SPACE_ACCEPT_REQUEST_TYPE=t.SPACE_REQUEST_TYPE=t.VIDEO_CALL_TYPE=t.ADDITIONAL_META_TYPE=t.NOTIFICATION_TYPE=t.IDENTITY_TYPE=t.SUPPORTED_CHAINS=t.SOURCE_TYPES=t.CHAIN_ID_TO_SOURCE=void 0,t.CHAIN_ID_TO_SOURCE={1:"ETH_MAINNET",11155111:"ETH_TEST_SEPOLIA",137:"POLYGON_MAINNET",80002:"POLYGON_TEST_AMOY",56:"BSC_MAINNET",97:"BSC_TESTNET",10:"OPTIMISM_MAINNET",11155420:"OPTIMISM_TESTNET",2442:"POLYGON_ZK_EVM_TESTNET",1101:"POLYGON_ZK_EVM_MAINNET",421614:"ARBITRUM_TESTNET",42161:"ARBITRUMONE_MAINNET",122:"FUSE_MAINNET",123:"FUSE_TESTNET",80085:"BERACHAIN_TESTNET",7560:"CYBER_CONNECT_MAINNET",111557560:"CYBER_CONNECT_TESTNET"},t.SOURCE_TYPES={ETH_MAINNET:"ETH_MAINNET",ETH_TEST_SEPOLIA:"ETH_TEST_SEPOLIA",POLYGON_MAINNET:"POLYGON_MAINNET",POLYGON_TEST_AMOY:"POLYGON_TEST_AMOY",BSC_MAINNET:"BSC_MAINNET",BSC_TESTNET:"BSC_TESTNET",OPTIMISM_MAINNET:"OPTIMISM_MAINNET",OPTIMISM_TESTNET:"OPTIMISM_TESTNET",POLYGON_ZK_EVM_TESTNET:"POLYGON_ZK_EVM_TESTNET",POLYGON_ZK_EVM_MAINNET:"POLYGON_ZK_EVM_MAINNET",ARBITRUM_TESTNET:"ARBITRUM_TESTNET",ARBITRUMONE_MAINNET:"ARBITRUMONE_MAINNET",FUSE_TESTNET:"FUSE_TESTNET",FUSE_MAINNET:"FUSE_MAINNET",BERACHAIN_TESTNET:"BERACHAIN_TESTNET",THE_GRAPH:"THE_GRAPH",PUSH_VIDEO:"PUSH_VIDEO",SIMULATE:"SIMULATE",CYBER_CONNECT_TESTNET:"CYBER_CONNECT_TESTNET",CYBER_CONNECT_MAINNET:"CYBER_CONNECT_MAINNET"},t.SUPPORTED_CHAINS=[1,11155111,42,137,80002,56,97,10,11155420,2442,1101,421614,42161,122,123,80085,111557560,7560],function(e){e[e.MINIMAL=0]="MINIMAL",e[e.IPFS=1]="IPFS",e[e.DIRECT_PAYLOAD=2]="DIRECT_PAYLOAD",e[e.SUBGRAPH=3]="SUBGRAPH"}(t.IDENTITY_TYPE||(t.IDENTITY_TYPE={})),function(e){e[e.BROADCAST=1]="BROADCAST",e[e.TARGETTED=3]="TARGETTED",e[e.SUBSET=4]="SUBSET"}(t.NOTIFICATION_TYPE||(t.NOTIFICATION_TYPE={})),function(e){e[e.CUSTOM=0]="CUSTOM",e[e.PUSH_VIDEO=1]="PUSH_VIDEO",e[e.PUSH_SPACE=2]="PUSH_SPACE"}(t.ADDITIONAL_META_TYPE||(t.ADDITIONAL_META_TYPE={})),function(e){e[e.PUSH_VIDEO=1]="PUSH_VIDEO",e[e.PUSH_SPACE=2]="PUSH_SPACE"}(t.VIDEO_CALL_TYPE||(t.VIDEO_CALL_TYPE={})),function(e){e[e.JOIN_SPEAKER=0]="JOIN_SPEAKER",e[e.ESTABLISH_MESH=1]="ESTABLISH_MESH",e[e.INVITE_TO_PROMOTE=2]="INVITE_TO_PROMOTE",e[e.REQUEST_TO_PROMOTE=3]="REQUEST_TO_PROMOTE"}(t.SPACE_REQUEST_TYPE||(t.SPACE_REQUEST_TYPE={})),function(e){e[e.ACCEPT_JOIN_SPEAKER=0]="ACCEPT_JOIN_SPEAKER",e[e.ACCEPT_INVITE=1]="ACCEPT_INVITE",e[e.ACCEPT_PROMOTION=2]="ACCEPT_PROMOTION"}(t.SPACE_ACCEPT_REQUEST_TYPE||(t.SPACE_ACCEPT_REQUEST_TYPE={})),function(e){e[e.STOP=0]="STOP",e[e.LEAVE=1]="LEAVE"}(t.SPACE_DISCONNECT_TYPE||(t.SPACE_DISCONNECT_TYPE={})),function(e){e[e.CO_HOST=0]="CO_HOST",e[e.SPEAKER=1]="SPEAKER"}(t.SPACE_INVITE_ROLES||(t.SPACE_INVITE_ROLES={})),function(e){e[e.HOST=0]="HOST",e[e.CO_HOST=1]="CO_HOST",e[e.SPEAKER=2]="SPEAKER",e[e.LISTENER=3]="LISTENER"}(t.SPACE_ROLES||(t.SPACE_ROLES={})),t.DEFAULT_DOMAIN="push.org",function(e){e.PUSH_CHAT="PUSH_CHAT"}(t.VIDEO_NOTIFICATION_ACCESS_TYPE||(t.VIDEO_NOTIFICATION_ACCESS_TYPE={}))},553125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCAIPFormat=t.getSource=t.getPayloadIdentity=t.getVerificationProof=t.getRecipientFieldForAPIPayload=t.getRecipients=t.getPayloadForAPIInput=t.getUUID=void 0;const n=r(331635),i=r(122831),o=r(795924),a=r(921396),s=r(773773),c=r(813951);t.getUUID=function(){return(0,i.v4)()},t.getPayloadForAPIInput=function(e,t){var r,n,i,o,a,s,c,u,l,d,f,h,p,g,m,y,b,v,w,A,C;return(null==e?void 0:e.notification)&&(null==e?void 0:e.payload)?{notification:{title:null===(r=null==e?void 0:e.notification)||void 0===r?void 0:r.title,body:null===(n=null==e?void 0:e.notification)||void 0===n?void 0:n.body},data:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({acta:(null===(i=null==e?void 0:e.payload)||void 0===i?void 0:i.cta)||"",aimg:(null===(o=null==e?void 0:e.payload)||void 0===o?void 0:o.img)||"",amsg:(null===(a=null==e?void 0:e.payload)||void 0===a?void 0:a.body)||"",asub:(null===(s=null==e?void 0:e.payload)||void 0===s?void 0:s.title)||"",type:(null===(c=null==e?void 0:e.type)||void 0===c?void 0:c.toString())||""},(null==e?void 0:e.expiry)&&{etime:null==e?void 0:e.expiry}),(null===(u=null==e?void 0:e.payload)||void 0===u?void 0:u.etime)&&{etime:null===(l=null==e?void 0:e.payload)||void 0===l?void 0:l.etime}),(null==e?void 0:e.hidden)&&{hidden:null==e?void 0:e.hidden}),(null===(d=null==e?void 0:e.payload)||void 0===d?void 0:d.hidden)&&{hidden:null===(f=null==e?void 0:e.payload)||void 0===f?void 0:f.hidden}),(null===(h=null==e?void 0:e.payload)||void 0===h?void 0:h.silent)&&{silent:null===(p=null==e?void 0:e.payload)||void 0===p?void 0:p.silent}),(null===(g=null==e?void 0:e.payload)||void 0===g?void 0:g.sectype)&&{sectype:null===(m=null==e?void 0:e.payload)||void 0===m?void 0:m.sectype}),(null===(y=null==e?void 0:e.payload)||void 0===y?void 0:y.metadata)&&{metadata:null===(b=null==e?void 0:e.payload)||void 0===b?void 0:b.metadata}),(null===(v=null==e?void 0:e.payload)||void 0===v?void 0:v.additionalMeta)&&{additionalMeta:null===(w=null==e?void 0:e.payload)||void 0===w?void 0:w.additionalMeta}),(null===(A=null==e?void 0:e.payload)||void 0===A?void 0:A.index)&&{index:null===(C=null==e?void 0:e.payload)||void 0===C?void 0:C.index}),recipients:t}:null},t.getRecipients=function({env:e,notificationType:t,channel:r,recipients:i,secretType:a}){return n.__awaiter(this,void 0,void 0,(function*(){let c="";if(a){let r="";if(t===s.NOTIFICATION_TYPE.TARGETTED){if("string"==typeof i)return c=yield(0,o.getCAIPAddress)(e,i,"Recipient"),r="",{[c]:r}}else if(t===s.NOTIFICATION_TYPE.SUBSET&&Array.isArray(i)){return i.reduce(((t,i)=>n.__awaiter(this,void 0,void 0,(function*(){return c=yield(0,o.getCAIPAddress)(e,i,"Recipient"),r="",Object.assign(Object.assign({},t),{[c]:r})}))),{})}}else{if(t===s.NOTIFICATION_TYPE.BROADCAST)return yield(0,o.getCAIPAddress)(e,r,"Recipient");if(t===s.NOTIFICATION_TYPE.TARGETTED){if("string"==typeof i)return yield(0,o.getCAIPAddress)(e,i,"Recipient")}else if(t===s.NOTIFICATION_TYPE.SUBSET&&Array.isArray(i)&&Array.isArray(i)){const t={};return i.map((r=>n.__awaiter(this,void 0,void 0,(function*(){c=yield(0,o.getCAIPAddress)(e,r,"Recipient"),t[c]=null})))),t}}return i}))},t.getRecipientFieldForAPIPayload=function({env:e,notificationType:t,recipients:r,channel:i}){return n.__awaiter(this,void 0,void 0,(function*(){return t===s.NOTIFICATION_TYPE.TARGETTED&&"string"==typeof r?yield(0,o.getCAIPAddress)(e,r,"Recipient"):yield(0,o.getCAIPAddress)(e,i,"Recipient")}))},t.getVerificationProof=function({senderType:e,signer:t,chainId:r,notificationType:i,identityType:u,verifyingContract:l,payload:d,ipfsHash:f,graph:h={},uuid:p,chatId:g,wallet:m,pgpPrivateKey:y,env:b,rules:v}){return n.__awaiter(this,void 0,void 0,(function*(){let n=null,m=null;switch(u){case s.IDENTITY_TYPE.MINIMAL:n={data:`${u}+${i}+${d.notification.title}+${d.notification.body}`};break;case s.IDENTITY_TYPE.IPFS:n={data:`1+${f}`};break;case s.IDENTITY_TYPE.DIRECT_PAYLOAD:n={data:`2+${JSON.stringify(d)}`};break;case s.IDENTITY_TYPE.SUBGRAPH:n={data:`3+graph:${null==h?void 0:h.id}+${null==h?void 0:h.counter}`};break;default:throw new Error("Invalid IdentityType")}switch(e){case 0:{const e={Data:[{name:"data",type:"string"}]},i={name:"EPNS COMM V1",chainId:r,verifyingContract:l},a=new o.Signer(t);m=`eip712v2:${yield a.signTypedData(i,e,n,"Data")}::uid::${p}`;break}case 1:{const e=a.SHA256(JSON.stringify(n)).toString();m=`pgpv2:${yield(0,c.sign)({message:e,signingKey:y})}:meta:${g}::uid::${p}`;break}default:throw new Error("Invalid SenderType")}return m}))},t.getPayloadIdentity=function({identityType:e,payload:t,notificationType:r,ipfsHash:n,graph:i={}}){if(e===s.IDENTITY_TYPE.MINIMAL)return`0+${r}+${t.notification.title}+${t.notification.body}`;if(e===s.IDENTITY_TYPE.IPFS)return`1+${n}`;if(e===s.IDENTITY_TYPE.DIRECT_PAYLOAD){return`2+${JSON.stringify(t)}`}return e===s.IDENTITY_TYPE.SUBGRAPH?`3+graph:${null==i?void 0:i.id}+${null==i?void 0:i.counter}`:null},t.getSource=function(e,t,r){return 1===r?s.SOURCE_TYPES.PUSH_VIDEO:t===s.IDENTITY_TYPE.SUBGRAPH?s.SOURCE_TYPES.THE_GRAPH:s.CHAIN_ID_TO_SOURCE[e]},t.getCAIPFormat=function(e,t){return s.SUPPORTED_CHAINS.includes(e)?`eip155:${e}:${t}`:t}},446392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SPACE_DISCONNECT_TYPE=t.SPACE_ACCEPT_REQUEST_TYPE=t.SPACE_REQUEST_TYPE=t.ADDITIONAL_META_TYPE=t.IDENTITY_TYPE=t.NOTIFICATION_TYPE=void 0;r(331635).__exportStar(r(672770),t);var n=r(773773);Object.defineProperty(t,"NOTIFICATION_TYPE",{enumerable:!0,get:function(){return n.NOTIFICATION_TYPE}}),Object.defineProperty(t,"IDENTITY_TYPE",{enumerable:!0,get:function(){return n.IDENTITY_TYPE}}),Object.defineProperty(t,"ADDITIONAL_META_TYPE",{enumerable:!0,get:function(){return n.ADDITIONAL_META_TYPE}}),Object.defineProperty(t,"SPACE_REQUEST_TYPE",{enumerable:!0,get:function(){return n.SPACE_REQUEST_TYPE}}),Object.defineProperty(t,"SPACE_ACCEPT_REQUEST_TYPE",{enumerable:!0,get:function(){return n.SPACE_ACCEPT_REQUEST_TYPE}}),Object.defineProperty(t,"SPACE_DISCONNECT_TYPE",{enumerable:!0,get:function(){return n.SPACE_DISCONNECT_TYPE}})},672770:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendNotification=void 0;const n=r(331635),i=r(553125),o=r(795924),a=r(773773),s=r(397067),c=r(441786);t.sendNotification=function(e){var t;return n.__awaiter(this,void 0,void 0,(function*(){try{const{senderType:r=0,signer:u,type:l,identityType:d,payload:f,recipients:h,channel:p,graph:g,ipfsHash:m,env:y=s.ENV.PROD,chatId:b,rules:v,pgpPrivateKey:w,channelFound:A=!0}=e||{};!function(e){var t,r;if(!(null==e?void 0:e.channel))throw'[Push SDK] - Error - sendNotification() - "channel" is mandatory!';if(!(0,o.isValidPushCAIP)(e.channel))throw'[Push SDK] - Error - sendNotification() - "channel" is invalid!';if(0===e.senderType&&void 0===e.signer)throw'[Push SDK] - Error - sendNotification() - "signer" is mandatory!';if(1===e.senderType&&void 0===e.pgpPrivateKey)throw'[Push SDK] - Error - sendNotification() - "pgpPrivateKey" is mandatory!';if((null==e?void 0:e.identityType)===a.IDENTITY_TYPE.DIRECT_PAYLOAD||(null==e?void 0:e.identityType)===a.IDENTITY_TYPE.MINIMAL){if(!e.notification)throw'[Push SDK] - Error - sendNotification() - "notification" mandatory for Identity Type: Direct Payload, Minimal!';if(!e.payload)throw'[Push SDK] - Error - sendNotification() - "payload" mandatory for Identity Type: Direct Payload, Minimal!'}const n=null===(t=e.payload)||void 0===t?void 0:t.additionalMeta,i="object"==typeof(null===(r=e.payload)||void 0===r?void 0:r.additionalMeta)&&(e.payload.additionalMeta.type===`${a.VIDEO_CALL_TYPE.PUSH_VIDEO}+1`||e.payload.additionalMeta.type===`${a.VIDEO_CALL_TYPE.PUSH_SPACE}+1`);if(n&&i&&!e.chatId&&!e.rules)throw new Error("[Push SDK] - Error - sendNotification() - Either chatId or rules object is required to send a additional meta notification for video or spaces")}(e),f&&f.additionalMeta&&"object"==typeof f.additionalMeta&&!f.additionalMeta.domain&&(f.additionalMeta.domain=a.DEFAULT_DOMAIN);const C=yield(0,o.getCAIPAddress)(y,p,"Channel"),E=(0,o.getCAIPDetails)(C);if(!E)throw Error("Invalid Channel CAIP!");const x=(0,i.getUUID)(),S=parseInt(E.networkId,10),I=(0,o.getAPIBaseUrls)(y);let k="";if(0===r){const{EPNS_COMMUNICATOR_CONTRACT:e}=(0,o.getConfig)(y,E);k=e}const _=yield(0,i.getRecipients)({env:y,notificationType:l,channel:C,recipients:h,secretType:null==f?void 0:f.sectype}),T=(0,i.getPayloadForAPIInput)(e,_),M=yield(0,i.getVerificationProof)({senderType:r,signer:u,chainId:S,identityType:d,notificationType:l,verifyingContract:k,payload:T,graph:g,ipfsHash:m,uuid:x,chatId:null!==(t=null==v?void 0:v.access.data.chatId)&&void 0!==t?t:b,pgpPrivateKey:w}),P=(0,i.getPayloadIdentity)({identityType:d,payload:T,notificationType:l,graph:g,ipfsHash:m}),j=(yield function(e){return n.__awaiter(this,void 0,void 0,(function*(){try{const{channelFound:t,channelorAlias:r,recipient:n,type:i,env:o,senderType:s}=e||{};return 1!==s&&!t&&(r==("string"==typeof n&&3==(null==n?void 0:n.split(":").length)?n.split(":")[2]:n)&&i==a.NOTIFICATION_TYPE.TARGETTED)}catch(t){return!0}}))}({channelFound:A,channelorAlias:e.channel,recipient:e.recipients,type:e.type,env:e.env,senderType:e.senderType}))?a.SOURCE_TYPES.SIMULATE:(0,i.getSource)(S,d,r),D=Object.assign({verificationProof:M,identity:P,sender:1!==r||(0,o.isValidNFTCAIP)(C)?C:`${null==E?void 0:E.blockchain}:${null==E?void 0:E.address}`,source:j,recipient:yield(0,i.getRecipientFieldForAPIPayload)({env:y,notificationType:l,recipients:h||"",channel:C})},v||b?{rules:null!=v?v:{access:{data:{chatId:b},type:a.VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT}}}:{}),O=`${I}/v1/payloads/`;return yield(0,c.axiosPost)(O,D,{headers:{"Content-Type":"application/json"}})}catch(r){throw console.error("[Push SDK] - Error - sendNotification() - ",JSON.stringify(r)),r}}))}},552096:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={"PUSH-CREATE-01":{progressId:"PUSH-CREATE-01",progressTitle:"Generating Secure Profile Signature",progressInfo:"This step is only done for first time users and might take a few seconds. PGP keys are getting generated to provide you with secure yet seamless web3 communication",level:"INFO"},"PUSH-CREATE-02":{progressId:"PUSH-CREATE-02",progressTitle:"Signing Generated Profile",progressInfo:"This step is only done for first time users. Please sign the message to continue.",level:"INFO"},"PUSH-CREATE-03":{progressId:"PUSH-CREATE-03",progressTitle:"Encrypting Generated Profile",progressInfo:"Encrypting your keys. Please sign the message to continue.",level:"INFO"},"PUSH-CREATE-04":{progressId:"PUSH-CREATE-04",progressTitle:"Syncing Generated Profile",progressInfo:"Please sign the message to continue. Great job! You are almost fully onboarded to Push Protocol!",level:"INFO"},"PUSH-CREATE-05":{progressId:"PUSH-CREATE-05",progressTitle:"Setup Complete",progressInfo:"",level:"SUCCESS"},"PUSH-UPGRADE-01":{progressId:"PUSH-UPGRADE-01",progressTitle:"Generating New Profile Signature",progressInfo:"Trying to Upgrade Push Keys to latest version. Please sign the message to continue.",level:"INFO"},"PUSH-UPGRADE-02":{progressId:"PUSH-UPGRADE-02",progressTitle:"Decrypting Old Profile",progressInfo:"Trying to Upgrade Push Keys to latest version. Please sign the message to continue.",level:"INFO"},"PUSH-UPGRADE-03":{progressId:"PUSH-UPGRADE-03",progressTitle:"Generating Encrypted New Profile",progressInfo:"Trying to Upgrade Push Keys to latest version. Encrypting Push Keys with latest version. Please sign the message to continue.",level:"INFO"},"PUSH-UPGRADE-04":{progressId:"PUSH-UPGRADE-04",progressTitle:"Syncing New Profile",progressInfo:"Please sign the message to continue. Upgraded keys are almost ready!",level:"INFO"},"PUSH-UPGRADE-05":{progressId:"PUSH-UPGRADE-05",progressTitle:"Upgrade Completed, Welcome to Push Protocol",progressInfo:"",level:"SUCCESS"},"PUSH-DECRYPT-01":{progressId:"PUSH-DECRYPT-01",progressTitle:"Decrypting Profile",progressInfo:"Please sign the transaction to decrypt profile",level:"INFO"},"PUSH-DECRYPT-02":{progressId:"PUSH-DECRYPT-02",progressTitle:"Push Profile Unlocked",progressInfo:"Unlocking push profile",level:"SUCCESS"},"PUSH-AUTH-UPDATE-01":e=>({progressId:"PUSH-AUTH-UPDATE-01",progressTitle:"Generating New Profile Signature",progressInfo:`Trying to Update Push Keys to ${e} version. Please sign the message to continue.`,level:"INFO"}),"PUSH-AUTH-UPDATE-02":e=>({progressId:"PUSH-AUTH-UPDATE-02",progressTitle:"Generating New Encrypted Profile",progressInfo:`Encrypting Push Keys with ${e} version. Please sign the message to continue.`,level:"INFO"}),"PUSH-AUTH-UPDATE-03":{progressId:"PUSH-AUTH-UPDATE-03",progressTitle:"Syncing Updated Profile",progressInfo:"Please sign the message to continue. Updated keys are almost ready!",level:"INFO"},"PUSH-AUTH-UPDATE-04":{progressId:"PUSH-AUTH-UPDATE-04",progressTitle:"Update Completed, Welcome to Push Protocol",progressInfo:"",level:"SUCCESS"},"PUSH-AUTH-UPDATE-05":{progressId:"PUSH-AUTH-UPDATE-05",progressTitle:"Generating New Profile Signature",progressInfo:"Trying to Update Push Profile creds. Please sign the message to continue.",level:"INFO"},"PUSH-AUTH-UPDATE-06":{progressId:"PUSH-AUTH-UPDATE-06",progressTitle:"Generating New Profile Signature",progressInfo:"Encrypting Push Keys with new creds. Please sign the message to continue.",level:"INFO"},"PUSH-DECRYPT-AUTH-01":{progressId:"PUSH-DECRYPT-AUTH-01",progressTitle:"Decrypting Profile Creds",progressInfo:"Please sign the transaction to decrypt profile creds",level:"INFO"},"PUSH-DECRYPT-AUTH-02":{progressId:"PUSH-DECRYPT-AUTH-02",progressTitle:"Push Profile Creds Unlocked",progressInfo:"Unlocking push profile creds",level:"SUCCESS"},"PUSH-PROFILE-UPDATE-01":{progressId:"PUSH-PROFILE-UPDATE-01",progressTitle:"Syncing Updated Profile",progressInfo:"Steady lads, your profile is getting a new look!",level:"INFO"},"PUSH-PROFILE-UPDATE-02":{progressId:"PUSH-PROFILE-UPDATE-02",progressTitle:"Profile Update Completed, Welcome to Push Protocol",progressInfo:"",level:"SUCCESS"},"PUSH-CHANNEL-CREATE-01":{progressId:"PUSH-CHANNEL-CREATE-01",progressTitle:"Uploading data to IPFS",progressInfo:"The channel\u2019s data is getting uploaded to IPFS",level:"INFO"},"PUSH-CHANNEL-CREATE-02":{progressId:"PUSH-CHANNEL-CREATE-02",progressTitle:"Approving PUSH tokens",progressInfo:"Gives approval to Push Core contract to spend 50 DAI",level:"INFO"},"PUSH-CHANNEL-CREATE-03":{progressId:"PUSH-CHANNEL-CREATE-03",progressTitle:"Channel is getting created",progressInfo:"Calls Push Core contract to create your channel",level:"INFO"},"PUSH-CHANNEL-CREATE-04":{progressId:"PUSH-CHANNEL-CREATE-04",progressTitle:"Channel creation is done, Welcome to Push Ecosystem",progressInfo:"Channel creation is completed",level:"SUCCESS"},"PUSH-CHANNEL-UPDATE-01":{progressId:"PUSH-CHANNEL-UPDATE-01",progressTitle:"Uploading new data to IPFS",progressInfo:"The channel\u2019s new data is getting uploaded to IPFS",level:"INFO"},"PUSH-CHANNEL-UPDATE-02":{progressId:"PUSH-CHANNEL-UPDATE-02",progressTitle:"Approving PUSH tokens",progressInfo:"Gives approval to Push Core contract to spend 50 DAI",level:"INFO"},"PUSH-CHANNEL-UPDATE-03":{progressId:"PUSH-CHANNEL-UPDATE-03",progressTitle:"Channel is getting updated",progressInfo:"Calls Push Core contract to update your channel details",level:"INFO"},"PUSH-CHANNEL-UPDATE-04":{progressId:"PUSH-CHANNEL-UPDATE-04",progressTitle:"Channel is updated with new data",progressInfo:"Channel is successfully updated",level:"SUCCESS"},"PUSH-ERROR-00":(e,t)=>({progressId:"PUSH-ERROR-00",progressTitle:"Non Specific Error",progressInfo:`[Push SDK] - API - Error - API ${e}() -: ${t}`,level:"ERROR"}),"PUSH-ERROR-01":e=>({progressId:"PUSH-ERROR-01",progressTitle:"Upgrade Profile Failed",progressInfo:`[Push SDK] - API - Error - API decryptPgpKey() -: ${e}`,level:"WARN"}),"PUSH-ERROR-02":(e,t)=>({progressId:"PUSH-ERROR-02",progressTitle:"Transaction failed",progressInfo:`[Push SDK] - Contract - Error - ${e} -: ${t}`,level:"ERROR"})};t.default=r},146180:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelListOrderType=t.ChannelListSortType=t.ChannelListType=t.FeedType=void 0,function(e){e.INBOX="INBOX",e.SPAM="SPAM"}(t.FeedType||(t.FeedType={})),function(e){e.ALL="all",e.VERIFIED="verified",e.UNVERIFIED="unverified"}(t.ChannelListType||(t.ChannelListType={})),function(e){e.SUBSCRIBER="subscribers"}(t.ChannelListSortType||(t.ChannelListSortType={})),function(e){e.ASCENDING="asc",e.DESCENDING="desc"}(t.ChannelListOrderType||(t.ChannelListOrderType={}))},977036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;const n=r(331635),i=r(746290),o=i,a=r(809317),s=r(587096);class c extends s.PushNotificationBaseClass{constructor(e,t,r){super(e,t,r),this.info=e=>n.__awaiter(this,void 0,void 0,(function*(){try{return yield a.getAliasInfo(Object.assign(Object.assign({},e),{env:this.env}))}catch(t){throw new Error(`Push SDK Error: API : alias::info : ${t}`)}})),this.initiate=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){try{this.checkSignerObjectExists();const r=`eip155:${yield this.getChainId(this.signer)}`;if(!i.default[this.env][r]||!o.VIEM_CONFIG[this.env][r])throw new Error("Unsupported Chainid");const n=i.default[this.env][r].EPNS_COMMUNICATOR_CONTRACT,a=this.createContractInstance(n,o.ABIS.COMM,o.VIEM_CONFIG[this.env][r].NETWORK),s=yield this.initiateAddAlias(a,e);let c={tx:s};return(null==t?void 0:t.raw)&&(c=Object.assign(Object.assign({},c),{raw:{initiateVerificationProof:s}})),c}catch(r){throw new Error(`Push SDK Error: Contract : alias::add : ${r}`)}})),this.verify=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){try{this.checkSignerObjectExists();const r=`eip155:${yield this.getChainId(this.signer)}`;if(!i.default[this.env][r]||!o.VIEM_CONFIG[this.env][r])throw new Error("Unsupported Chainid");const n=i.default[this.env][r].EPNS_COMMUNICATOR_CONTRACT,a=this.createContractInstance(n,o.ABIS.COMM,o.VIEM_CONFIG[this.env][r].NETWORK),{verifyAliasRes:s,channelInfo:c}=yield this.verifyAlias(a,e);let u={tx:s};return(null==t?void 0:t.raw)&&(u=Object.assign(Object.assign({},u),{raw:{initiateVerificationProof:c.initiate_verification_proof,verifyVerificationProof:s}})),u}catch(r){throw new Error(`Push SDK Error: Contract : alias::verify : ${r}`)}}))}}t.Alias=c},797547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Channel=void 0;const n=r(331635),i=r(397067),o=r(302576),a=r(918559),s=r(746290),c=r(795924),u=r(446392),l=r(552096),d=r(146180),f=r(977036),h=r(765533),p=r(587096);class g extends p.PushNotificationBaseClass{constructor(e,t,r){super(e,t,r),this.info=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){try{const{raw:r=!0}=t||{};return this.checkUserAddressExists(e),e=null!=e?e:(0,c.getFallbackETHCAIPAddress)(this.env,this.account),yield a.getChannel({channel:e,env:this.env,raw:r})}catch(r){throw new Error(`Push SDK Error: API : channel::info : ${r}`)}})),this.search=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){try{const{page:r=i.default.PAGINATION.INITIAL_PAGE,limit:n=i.default.PAGINATION.LIMIT}=t||{};return yield a.search({query:e,page:r,limit:n,env:this.env})}catch(r){throw new Error(`Push SDK Error: API : channel::search : ${r}`)}})),this.subscribers=e=>n.__awaiter(this,void 0,void 0,(function*(){var t,r;try{let n=(null==e?void 0:e.channel)?e.channel:this.account?(0,c.getFallbackETHCAIPAddress)(this.env,this.account):null;return this.checkUserAddressExists(n),n=(0,c.validateCAIP)(n)?n:(0,c.getFallbackETHCAIPAddress)(this.env,n),e&&e.page?yield a.getSubscribers({channel:n,env:this.env,page:e.page,limit:null!==(t=e.limit)&&void 0!==t?t:10,setting:null!==(r=e.setting)&&void 0!==r&&r,category:e.category,raw:e.raw}):yield a._getSubscribers({channel:n,env:this.env})}catch(n){throw new Error(`Push SDK Error: API : channel::subscribers : ${n}`)}})),this.send=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){var r,n;try{this.checkSignerObjectExists();const i=yield this.getChannelOrAliasInfo(null!==(r=t.channel)&&void 0!==r?r:this.account),o=this.generateNotificationLowLevelPayload({signer:this.signer,env:this.env,recipients:e,options:t,channel:null!==(n=t.channel)&&void 0!==n?n:this.account,channelInfo:i});return yield u.sendNotification(o)}catch(i){throw new Error(`Push SDK Error: API : channel::send : ${i}`)}})),this.create=e=>n.__awaiter(this,void 0,void 0,(function*(){const{name:t,description:r,url:n,icon:i,alias:a=null,progressHook:u}=e||{};try{let d;this.validateChannelParameters(e);const f=yield this.createContractInstance(s.TOKEN[this.env],s.ABIS.TOKEN,s.TOKEN_VIEM_NETWORK_MAP[this.env]),h=yield this.fetchBalance(f,this.account),p=o.parseUnits(s.MIN_TOKEN_BALANCE[this.env].toString(),18);if(p>h)throw new Error("Insufficient PUSH balance");if(a){if(!(0,c.validateCAIP)(a))throw new Error("Invalid alias CAIP");const e=(0,c.getCAIPDetails)(a);d={[`${null==e?void 0:e.blockchain}:${null==e?void 0:e.networkId}`]:null==e?void 0:e.address}}null==u||u(l.default["PUSH-CREATE-01"]);const g={name:t,info:r,url:n,icon:i,aliasDetails:null!=d?d:{}},m=yield this.uploadToIPFSViaPushNode(JSON.stringify(g));if(!((yield this.fetchAllownace(f,this.account,s.CORE_CONFIG[this.env].EPNS_CORE_CONTRACT))>=p)){null==u||u(l.default["PUSH-CREATE-02"]);if(!(yield this.approveToken(f,s.CORE_CONFIG[this.env].EPNS_CORE_CONTRACT,p)))throw new Error("Something went wrong while approving the token")}const y=s.CHANNEL_TYPE.GENERAL,b="1+"+m,v=o.stringToBytes(b);null==u||u(l.default["PUSH-CREATE-03"]);const w=yield this.createChannel(this.coreContract,y,v,p);return null==u||u(l.default["PUSH-CREATE-04"]),{transactionHash:w}}catch(d){const e=l.default["PUSH-ERROR-02"];throw null==u||u(e("Create Channel",d)),new Error(`Push SDK Error: Contract : createChannelWithPUSH : ${d}`)}})),this.update=e=>n.__awaiter(this,void 0,void 0,(function*(){const{name:t,description:r,url:n,icon:i,alias:a=null,progressHook:u}=e||{};try{let d;this.validateChannelParameters(e);const f=yield this.createContractInstance(s.TOKEN[this.env],s.ABIS.TOKEN,s.TOKEN_VIEM_NETWORK_MAP[this.env]),h=yield this.fetchBalance(f,this.account),p=yield this.fetchUpdateCounter(this.coreContract,this.account),g=o.parseUnits(s.MIN_TOKEN_BALANCE[this.env].toString(),18)*p;if(g>h)throw new Error("Insufficient PUSH balance");if(a){if(!(0,c.validateCAIP)(a))throw new Error("Invalid alias CAIP");const e=(0,c.getCAIPDetails)(a);d={[`${null==e?void 0:e.blockchain}:${null==e?void 0:e.networkId}`]:null==e?void 0:e.address}}null==u||u(l.default["PUSH-UPDATE-01"]);const m={name:t,info:r,url:n,icon:i,aliasDetails:null!=d?d:{}},y=yield this.uploadToIPFSViaPushNode(JSON.stringify(m));if(!((yield this.fetchAllownace(f,this.account,s.CORE_CONFIG[this.env].EPNS_CORE_CONTRACT))>=g)){null==u||u(l.default["PUSH-UPDATE-02"]);if(!(yield this.approveToken(f,s.CORE_CONFIG[this.env].EPNS_CORE_CONTRACT,g)))throw new Error("Something went wrong while approving the token")}const b="1+"+y,v=o.stringToBytes(b);null==u||u(l.default["PUSH-UPDATE-03"]);const w=yield this.updateChannel(this.coreContract,this.account,v,g);return null==u||u(l.default["PUSH-UPDATE-04"]),{transactionHash:w}}catch(d){const e=l.default["PUSH-ERROR-02"];throw null==u||u(e("Update Channel",d)),new Error(`Push SDK Error: Contract channel::update : ${d}`)}})),this.verify=e=>n.__awaiter(this,void 0,void 0,(function*(){try{if(this.checkSignerObjectExists(),(0,c.validateCAIP)(e)&&(e=e.split(":")[2]),!o.isAddress(e))throw new Error("Invalid channel address");const t=yield this.info(this.account);if(0==(null==t?void 0:t.verified_status))throw new Error("Only verified channel can verify other channel");const r=yield this.verifyChannel(this.coreContract,e);if(!r)throw new Error("Something went wrong while verifying the channel");return{transactionHash:r}}catch(t){throw new Error(`Push SDK Error: Contract channel::verify : ${t}`)}})),this.setting=e=>n.__awaiter(this,void 0,void 0,(function*(){try{this.checkSignerObjectExists();const t=yield this.createContractInstance(s.TOKEN[this.env],s.ABIS.TOKEN,s.TOKEN_VIEM_NETWORK_MAP[this.env]),r=yield this.fetchBalance(t,this.account),n=o.parseUnits(s.MIN_TOKEN_BALANCE[this.env].toString(),18),i=n*(yield this.fetchUpdateCounter(this.coreContract,this.account));if(i>r)throw new Error("Insufficient PUSH balance");if(!((yield this.fetchAllownace(t,this.account,s.CORE_CONFIG[this.env].EPNS_CORE_CONTRACT))>=i)){if(!(yield this.approveToken(t,s.CORE_CONFIG[this.env].EPNS_CORE_CONTRACT,i)))throw new Error("Something went wrong while approving your token")}const{setting:a,description:c}=this.getMinimalSetting(e);return{transactionHash:yield this.createChanelSettings(this.coreContract,e.length,a,c,n)}}catch(t){throw new Error(`Push SDK Error: Contract : channel::setting : ${t}`)}})),this.notifications=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){try{const{page:r,limit:n,filter:i=null,raw:o=!0}=t||{};return yield a.getChannelNotifications({channel:e,env:this.env,filter:i,raw:o,page:r,limit:n})}catch(r){throw new Error(`Push SDK Error: Contract : channel::notifications : ${r}`)}})),this.list=e=>n.__awaiter(this,void 0,void 0,(function*(){try{const{page:t,limit:r,sort:n=d.ChannelListSortType.SUBSCRIBER,order:i=d.ChannelListOrderType.DESCENDING}=e||{};return yield a.getChannels({env:this.env,page:t,limit:r,sort:n,order:i})}catch(t){throw new Error(`Push SDK Error: Contract : channel::list : ${t}`)}})),this.delegate=new h.Delegate(e,t,r),this.alias=new f.Alias(e,t,r)}}t.Channel=g},765533:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Delegate=void 0;const n=r(331635),i=r(746290),o=i,a=r(918559),s=r(795924),c=r(587096);class u extends c.PushNotificationBaseClass{constructor(e,t,r){super(e,t,r),this.get=e=>n.__awaiter(this,void 0,void 0,(function*(){try{let t=(null==e?void 0:e.channel)?e.channel:this.account?(0,s.getFallbackETHCAIPAddress)(this.env,this.account):null;return this.checkUserAddressExists(t),t=(0,s.validateCAIP)(t)?t:(0,s.getFallbackETHCAIPAddress)(this.env,t),this.checkUserAddressExists(t),yield a.getDelegates({channel:t,env:this.env})}catch(t){throw new Error(`Push SDK Error: API : delegate::get : ${t}`)}})),this.add=e=>n.__awaiter(this,void 0,void 0,(function*(){try{this.checkSignerObjectExists(),(0,s.validateCAIP)(e)&&(e=this.getAddressFromCaip(e));const t=`eip155:${yield this.getChainId(this.signer)}`;if(!i.default[this.env][t]||!o.VIEM_CONFIG[this.env][t])throw new Error("Unsupported Chainid");const r=i.default[this.env][t].EPNS_COMMUNICATOR_CONTRACT,n=this.createContractInstance(r,o.ABIS.COMM,o.VIEM_CONFIG[this.env][t].NETWORK);return{transactionHash:yield this.addDelegator(n,e)}}catch(t){throw new Error(`Push SDK Error: Contract : delegate::add : ${t}`)}})),this.remove=e=>n.__awaiter(this,void 0,void 0,(function*(){try{this.checkSignerObjectExists(),(0,s.validateCAIP)(e)&&(e=this.getAddressFromCaip(e));const t=`eip155:${yield this.getChainId(this.signer)}`;if(!i.default[this.env][t]||!o.VIEM_CONFIG[this.env][t])throw new Error("Unsupported Chainid");const r=i.default[this.env][t].EPNS_COMMUNICATOR_CONTRACT,n=this.createContractInstance(r,o.ABIS.COMM,o.VIEM_CONFIG[this.env][t].NETWORK);return{transactionHash:yield this.removeDelegator(n,e)}}catch(t){throw new Error(`Push SDK Error: Contract : delegate::remove : ${t}`)}}))}}t.Delegate=u},409537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Notification=t.FEED_MAP=void 0;const n=r(331635),i=r(397067),o=r(146180),a=r(75232),s=r(918559),c=r(795924),u=r(587096),l="Channel is needed";t.FEED_MAP={INBOX:!1,SPAM:!0};class d extends u.PushNotificationBaseClass{constructor(e,r,u){super(e,r,u),this.list=(e=o.FeedType.INBOX,r)=>n.__awaiter(this,void 0,void 0,(function*(){const{page:o=i.default.PAGINATION.INITIAL_PAGE,limit:s=i.default.PAGINATION.LIMIT,channels:u=[],raw:l=!1}=r||{};try{let i;(null==r?void 0:r.account)?i=this.isValidPCaip(r.account)?(0,c.pCAIP10ToWallet)(r.account):r.account:this.account&&(i=(0,c.getFallbackETHCAIPAddress)(this.env,this.account)),this.checkUserAddressExists(i);const d=this.getAddressFromCaip(i);if(0==u.length)return yield a.getFeeds({user:d,page:o,limit:s,spam:t.FEED_MAP[e],raw:l,env:this.env});{const r=u.map((r=>n.__awaiter(this,void 0,void 0,(function*(){return yield a.getFeedsPerChannel({user:d,page:o,limit:s,spam:t.FEED_MAP[e],raw:l,env:this.env,channels:[r]})})))),i=yield Promise.all(r);return i.flat()}}catch(d){throw new Error(`Push SDK Error: API : notifcaiton::list : ${d}`)}})),this.subscriptions=e=>n.__awaiter(this,void 0,void 0,(function*(){try{const{page:t=i.default.PAGINATION.INITIAL_PAGE,limit:r=i.default.PAGINATION.LIMIT,channel:n=null,raw:o}=e||{};let s;return(null==e?void 0:e.account)?s=this.isValidPCaip(e.account)?(0,c.pCAIP10ToWallet)(e.account):e.account:this.account&&(s=(0,c.getFallbackETHCAIPAddress)(this.env,this.account)),this.checkUserAddressExists(s),yield a.getSubscriptions({user:s,env:this.env,channel:n,raw:o})}catch(t){throw new Error(`Push SDK Error: API : notifcaiton::subscriptions : ${t}`)}})),this.subscribe=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){try{const{onSuccess:r,onError:n,settings:i}=t||{};if(this.checkSignerObjectExists(),this.checkUserAddressExists(),!e&&""!=e)throw new Error(l);this.isValidPCaip(e)&&(e=(0,c.pCAIP10ToWallet)(e)),(0,c.validateCAIP)(e)||(e=(0,c.getFallbackETHCAIPAddress)(this.env,e));const o=(0,c.getCAIPDetails)(e),a=(0,c.getCAIPWithChainId)(this.account,parseInt(null==o?void 0:o.networkId)),u=this.getMinimalUserSetting(i);return yield s.subscribeV2({signer:this.signer,channelAddress:e,userAddress:a,env:this.env,settings:null!=u?u:"",onSuccess:r,onError:n})}catch(r){throw new Error(`Push SDK Error: API : notifcaiton::subscribe : ${r}`)}})),this.unsubscribe=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){try{const{onSuccess:r,onError:n}=t||{};if(this.checkUserAddressExists(),this.checkSignerObjectExists(),!e&&""!=e)return new Error(l);this.isValidPCaip(e)&&(e=(0,c.pCAIP10ToWallet)(e)),(0,c.validateCAIP)(e)||(e=(0,c.getFallbackETHCAIPAddress)(this.env,e));const i=(0,c.getCAIPDetails)(e),o=(0,c.getCAIPWithChainId)(this.account,parseInt(null==i?void 0:i.networkId));return yield s.unsubscribeV2({signer:this.signer,channelAddress:e,userAddress:o,env:this.env,onSuccess:r,onError:n})}catch(r){throw new Error(`Push SDK Error: API : notifcaiton::unsubscribe : ${r}`)}}))}}t.Notification=d},587096:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PushNotificationBaseClass=t.FEED_MAP=void 0;const n=r(331635),i=r(397067),o=r(746290),a=r(813951),s=r(773773),c=r(802890),u=r(302576),l=r(918559),d=r(795924),f=r(441786),h=r(435669),p=r(302576),g="-",m="+";t.FEED_MAP={INBOX:!1,SPAM:!0};t.PushNotificationBaseClass=class{constructor(e,t,r){this.signer=e,this.env=t,this.guestMode=!(!r||!e),this.account=r,this.initializeCoreContract({signer:this.signer,env:this.env})}initializeCoreContract(e){return n.__awaiter(this,void 0,void 0,(function*(){const{env:t=i.ENV.STAGING,signer:r=null}=e||{};let n,s;if(r){n=yield(0,a.getAccountAddress)({account:null,signer:r});if(new d.Signer(r).isViemSigner(r)){const e=(0,u.createPublicClient)({chain:o.TOKEN_VIEM_NETWORK_MAP[t],transport:(0,u.http)()});s=(0,u.getContract)({abi:o.ABIS.CORE,address:o.CORE_CONFIG[t].EPNS_CORE_CONTRACT,publicClient:e,walletClient:r})}else s=new c.ethers.Contract(o.CORE_CONFIG[t].EPNS_CORE_CONTRACT,o.ABIS.CORE,r)}this.coreContract=s}))}checkUserAddressExists(e){if(!e&&!this.account&&!this.guestMode)throw new Error("Account is required");return!0}checkSignerObjectExists(){if(!this.signer)throw new Error(h.PushAPI.ensureSignerMessage());return!0}getNotificationType(e,t){return 1==e.length?"*"==e[0]?{recipient:t,type:s.NOTIFICATION_TYPE.BROADCAST}:{recipient:e[0],type:s.NOTIFICATION_TYPE.TARGETTED}:{recipient:e,type:s.NOTIFICATION_TYPE.SUBSET}}generateNotificationLowLevelPayload({signer:e,env:t,recipients:r,options:n,channel:i,channelInfo:o}){var a,c,u,l,d,f,h,p,m,y,b,v,w,A,C,E,x,S;i||(i=`${this.account}`);const I=this.getNotificationType(r,i),k=s.IDENTITY_TYPE.DIRECT_PAYLOAD;let _="";const T=o&&o.channel_settings?JSON.parse(o.channel_settings):null,M=!!o;(null===(a=n.payload)||void 0===a?void 0:a.category)&&T&&(2==T[n.payload.category-1].type&&(_=n.payload.category+g+2+g+T[n.payload.category-1].default),1==T[n.payload.category-1].type&&(_=n.payload.category+g+1),3==T[n.payload.category-1].type&&(_=n.payload.category+g+3+g+T[n.payload.category-1].default.lower));return{signer:e,channel:i,type:I.type,identityType:k,notification:n.notification,payload:{title:null!==(u=null===(c=n.payload)||void 0===c?void 0:c.title)&&void 0!==u?u:n.notification.title,body:null!==(d=null===(l=n.payload)||void 0===l?void 0:l.body)&&void 0!==d?d:n.notification.body,cta:null!==(h=null===(f=n.payload)||void 0===f?void 0:f.cta)&&void 0!==h?h:"",img:null!==(m=null===(p=n.payload)||void 0===p?void 0:p.embed)&&void 0!==m?m:"",hidden:null===(y=n.config)||void 0===y?void 0:y.hidden,etime:null===(b=n.config)||void 0===b?void 0:b.expiry,silent:null===(v=n.config)||void 0===v?void 0:v.silent,additionalMeta:null===(w=n.payload)||void 0===w?void 0:w.meta,index:(null===(A=n.payload)||void 0===A?void 0:A.category)?_:""},recipients:I.recipient,graph:null===(C=n.advanced)||void 0===C?void 0:C.graph,ipfsHash:null===(E=n.advanced)||void 0===E?void 0:E.ipfs,env:t,chatId:null===(x=n.advanced)||void 0===x?void 0:x.chatid,pgpPrivateKey:null===(S=n.advanced)||void 0===S?void 0:S.pgpPrivateKey,channelFound:M}}isEmpty(e){return 0==e.trim().length}isValidLength(e,t=125,r=1){return e.length>=r&&e.length<=t}isValidUrl(e){return!!new RegExp("^((?:https|http):\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}verifyEmptyChannelParameters(e){if(this.isEmpty(e.name))throw new Error("Channel name cannot be empty");if(this.isEmpty(e.description))throw new Error("Channel description cannot be empty");if(this.isEmpty(e.icon))throw new Error("Channel icon cannot be empty");if(this.isEmpty(e.url))throw new Error("Channel url cannot ne empty");return!0}validateParameterLength(e){if(this.isValidLength(e.name)){if(this.isValidLength(e.description)){if(this.isValidLength(e.url)&&this.isValidUrl(e.url))return!0;throw new Error("Channel url either excees 125 characters or is not a valid url")}throw new Error("Channel description should not exceed 125 characters")}throw new Error("Channel name should not exceed 125 characters")}validateChannelParameters(e){return this.verifyEmptyChannelParameters(e)&&this.validateParameterLength(e)}createContractInstance(e,t,r){if(!this.signer)throw new Error("Signer is not provided");let n;const i=this.signer?new d.Signer(this.signer):null;if(null==i?void 0:i.isViemSigner(this.signer)){const i=(0,u.createPublicClient)({chain:r,transport:(0,u.http)()});n=(0,u.getContract)({abi:t,address:e,publicClient:i,walletClient:this.signer})}else n=new c.ethers.Contract(e,t,this.signer);return n}fetchBalance(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error("Signer is not provided");let r;const n=new d.Signer(this.signer);try{return r=n.isViemSigner(this.signer)?BigInt(yield e.read.balanceOf({args:[t]})):BigInt(yield e.balanceOf(t)),r}catch(i){throw new Error(JSON.stringify(i))}}))}fetchAllownace(e,t,r){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error("Signer is not provided");const n=new d.Signer(this.signer);let i;try{return i=n.isViemSigner(this.signer)?BigInt(yield e.read.allowance({args:[t,r]})):BigInt(yield e.allowance(t,r)),i}catch(o){throw new Error(JSON.stringify(o))}}))}fetchUpdateCounter(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error("Signer is not provided");let r;const n=new d.Signer(this.signer);try{return r=n.isViemSigner(this.signer)?BigInt(yield e.read.channelUpdateCounter({args:[t]})):BigInt(yield e.channelUpdateCounter(t)),r+BigInt(1)}catch(i){throw new Error(JSON.stringify(i))}}))}approveToken(e,t,r){var i,o;return n.__awaiter(this,void 0,void 0,(function*(){try{if(!this.signer)throw new Error("Signer is not provided");if(new d.Signer(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const n=e.write.approve({args:[t,r]});yield n}else{if(!this.signer||!this.signer.provider)throw new Error("ethers provider/signer is not provided");const n=e.approve(t,r),a=yield n;yield null===(o=null===(i=this.signer)||void 0===i?void 0:i.provider)||void 0===o?void 0:o.waitForTransaction(a.hash)}return!0}catch(n){return console.error(n),!1}}))}createChannel(e,t,r,i){var o,a;return n.__awaiter(this,void 0,void 0,(function*(){let n;try{if(!this.signer)throw new Error("Signer is not provided");if(new d.Signer(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const o=e.write.createChannelWithPUSH({args:[t,(0,u.toHex)(new Uint8Array(r)),i,this.getTimeBound()]});n=yield o}else{const s=e.createChannelWithPUSH(t,r,i,this.getTimeBound(),{gasLimit:1e6}),c=yield s,u=yield null===(a=null===(o=this.signer)||void 0===o?void 0:o.provider)||void 0===a?void 0:a.waitForTransaction(c.hash);if(0==(null==u?void 0:u.status))throw new Error("Something Went wrong while creating your channel");n=c.hash}return n}catch(s){throw new Error(null==s?void 0:s.message)}}))}updateChannel(e,t,r,i){var o,a;return n.__awaiter(this,void 0,void 0,(function*(){let n;try{if(!this.signer)throw new Error("Signer is not provided");if(new d.Signer(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const o=e.write.updateChannelMeta({args:[t,(0,u.toHex)(new Uint8Array(r)),i]});n=yield o}else{const s=e.updateChannelMeta(t,r,i,{gasLimit:1e6}),c=yield s,u=yield null===(a=null===(o=this.signer)||void 0===o?void 0:o.provider)||void 0===a?void 0:a.waitForTransaction(c.hash);if(0==(null==u?void 0:u.status))throw new Error("Something Went wrong while updating your channel");n=c.hash}return n}catch(s){throw new Error(null==s?void 0:s.message)}}))}verifyChannel(e,t){var r,i;return n.__awaiter(this,void 0,void 0,(function*(){try{if(!this.signer)throw new Error("Signer is not provided");let n;if(new d.Signer(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const r=e.write.verify({args:[t]});n=yield r}else{if(!this.signer.provider)throw new Error("ethers provider is not provided");const o=e.verify(t),a=yield o;yield null===(i=null===(r=this.signer)||void 0===r?void 0:r.provider)||void 0===i?void 0:i.waitForTransaction(a.hash),n=a.hash}return n}catch(n){throw new Error(n.message)}}))}createChanelSettings(e,t,r,i,o){var a,s;return n.__awaiter(this,void 0,void 0,(function*(){try{if(!this.signer)throw new Error("Signer is not provided");let n;if(new d.Signer(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const a=e.write.createChannelSettings({args:[t,r,i,o]});n=yield a}else{if(!this.signer.provider)throw new Error("ethers provider is not provided");const c=e.createChannelSettings(t,r,i,o),u=yield c;yield null===(s=null===(a=this.signer)||void 0===a?void 0:a.provider)||void 0===s?void 0:s.waitForTransaction(u.hash),n=u.hash}return n}catch(n){throw new Error(n.message)}}))}addDelegator(e,t){var r,i;return n.__awaiter(this,void 0,void 0,(function*(){try{if(!this.signer)throw new Error("Signer is not provided");let n;if(new d.Signer(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const r=e.write.addDelegate({args:[t]});n=yield r}else{if(!this.signer.provider)throw new Error("ethers provider is not provided");const o=e.addDelegate(t),a=yield o;yield null===(i=null===(r=this.signer)||void 0===r?void 0:r.provider)||void 0===i?void 0:i.waitForTransaction(a.hash),n=a.hash}return n}catch(n){throw new Error(n.message)}}))}removeDelegator(e,t){var r,i;return n.__awaiter(this,void 0,void 0,(function*(){try{if(!this.signer)throw new Error("Signer is not provided");let n;if(new d.Signer(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const r=e.write.removeDelegate({args:[t]});n=yield r}else{if(!this.signer.provider)throw new Error("ethers provider is not provided");const o=e.removeDelegate(t),a=yield o;yield null===(i=null===(r=this.signer)||void 0===r?void 0:r.provider)||void 0===i?void 0:i.waitForTransaction(a.hash),n=a.hash}return n}catch(n){throw new Error(n.message)}}))}getChainId(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error("Signer is not provided");return new d.Signer(this.signer).getChainId()}))}uploadToIPFSViaPushNode(e){return n.__awaiter(this,void 0,void 0,(function*(){try{return(yield(0,f.axiosPost)(`${o.CORE_CONFIG[this.env].API_BASE_URL}/v1/ipfs/upload`,{data:e})).data.cid}catch(t){throw new Error("Something went wrong while uploading data to IPFS")}}))}getTimeBound(e){return 0}getMinimalSetting(e){var t,r;let n="",i="";for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PushAPI=void 0;const n=r(331635),i=r(397067),o=r(75232),a=r(585101),s=r(813951),c=r(900487),u=r(301264),l=r(682288),d=r(527034),f=r(514419),h=r(797547),p=r(409537),g=r(746290),m=r(813943),y=r(232198),b=r(795924),v=r(622042),w=r(122831);class A{constructor(e,t,r,n,i,o,a,s,f){this.signer=a,this.readMode=r,this.alpha=n,this.env=e,this.account=t,this.chainWiseAccount=(0,b.walletToPCAIP10)(t),this.decryptedPgpPvtKey=i,this.pgpPublicKey=o,this.progressHook=s,this.channel=new h.Channel(this.signer,this.env,this.account),this.notification=new p.Notification(this.signer,this.env,this.account),this.uid=(0,w.v4)(),this.cache=v.cache,this.chat=new c.Chat(this.account,this.env,this.alpha,this.decryptedPgpPvtKey,this.signer,this.progressHook),this.space=new m.Space(this.account,this.env,this.decryptedPgpPvtKey,this.signer,this.progressHook),this.profile=new u.Profile(this.account,this.env,this.cache,this.decryptedPgpPvtKey,this.progressHook),this.encryption=new l.Encryption(this.account,this.env,this.decryptedPgpPvtKey,this.pgpPublicKey,this.signer,this.progressHook),this.user=new d.User(this.account,this.env),this.video=new y.Video(this.account,this.env,this.decryptedPgpPvtKey,this.signer),this.errors=f||[]}static initialize(...e){return n.__awaiter(this,void 0,void 0,(function*(){try{let r,n,c;if(1===e.length&&"object"==typeof e[0])"account"in e[0]&&"string"==typeof e[0].account?n=e[0]:[r]=e;else{if(2!==e.length)throw new Error("Invalid arguments provided to initialize method.");[r,n]=e}if(n&&"decryptedPGPPrivateKey"in n&&"string"==typeof n.decryptedPGPPrivateKey&&(c=n.decryptedPGPPrivateKey),!r&&!(null==n?void 0:n.account))throw new Error("Either 'signer' or 'account' must be provided.");let u=!r&&!c;const l={env:i.ENV.STAGING,version:i.default.ENC_TYPE_V3,autoUpgrade:!0,account:null},d=Object.assign(Object.assign(Object.assign({},l),n),{version:(null==n?void 0:n.version)||l.version,versionMeta:(null==n?void 0:n.versionMeta)||l.versionMeta,autoUpgrade:void 0!==(null==n?void 0:n.autoUpgrade)?null==n?void 0:n.autoUpgrade:l.autoUpgrade,alpha:(null==n?void 0:n.alpha)&&n.alpha.feature?n.alpha:g.ALPHA_FEATURE_CONFIG[i.PACKAGE_BUILD]}),f=[];let h,p;if(h=r?yield(0,s.getAccountAddress)((0,s.getWallet)({account:d.account,signer:r})):null==n?void 0:n.account,!h)throw new Error("Account could not be derived.");const m=yield o.get({account:h,env:d.env});if(m&&m.publicKey&&(p=m.publicKey),!u)try{if(m&&m.encryptedPrivateKey)c||(c=yield a.decryptPGPKey({encryptedPGPPrivateKey:m.encryptedPrivateKey,signer:r,toUpgrade:d.autoUpgrade,additionalMeta:d.versionMeta,progressHook:d.progressHook,env:d.env}));else{const e=yield o.create({env:d.env,account:h,signer:r,version:d.version,additionalMeta:d.versionMeta,origin:d.origin,progressHook:d.progressHook});c=e.decryptedPrivateKey,p=e.publicKey}}catch(t){const e="Error decrypting PGP private key ...swiching to Guest mode";if(f.push({type:"ERROR",message:e}),console.error(e),(0,b.isValidNFTCAIP)(h)){const e="NFT Account Detected. If this NFT was recently transferred to you, please ensure you have received the correct password from the previous owner. Alternatively, you can reinitialize for a fresh start. Please be aware that reinitialization will result in the loss of all previous account data.";f.push({type:"WARN",message:e}),console.warn(e)}u=!0}return new A(d.env,h,u,d.alpha,c,p,r,d.progressHook,f)}catch(t){throw console.error("Error initializing PushAPI:",t),t}}))}reinitialize(e){return n.__awaiter(this,void 0,void 0,(function*(){const t=yield o.create({env:this.env,account:this.account,signer:this.signer,additionalMeta:e.versionMeta,progressHook:this.progressHook});this.decryptedPgpPvtKey=t.decryptedPrivateKey,this.pgpPublicKey=t.publicKey,this.readMode=!1,this.errors=[],this.uid=(0,w.v4)(),this.chat=new c.Chat(this.account,this.env,this.alpha,this.decryptedPgpPvtKey,this.signer,this.progressHook),this.profile=new u.Profile(this.account,this.env,this.cache,this.decryptedPgpPvtKey,this.progressHook),this.encryption=new l.Encryption(this.account,this.env,this.decryptedPgpPvtKey,this.pgpPublicKey,this.signer,this.progressHook)}))}initStream(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(this.stream)throw new Error("Stream is already initialized.");return this.stream=yield f.PushStream.initialize(this.account,e,this.env,this.decryptedPgpPvtKey,this.progressHook,this.signer,t),this.stream}))}info(e){return n.__awaiter(this,void 0,void 0,(function*(){const t=(null==e?void 0:e.overrideAccount)||this.account;return yield o.get({account:t,env:this.env})}))}readmode(){return this.readMode}static ensureSignerMessage(){return"Operation not allowed in read-only mode. Signer is required."}}t.PushAPI=A},900487:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Chat=void 0;const n=r(331635),i=r(397067),o=r(701728),a=r(75232),s=r(585101),c=r(813951),u=r(795924),l=r(517496),d=r(527034),f=r(668943),h=r(435669);t.Chat=class{constructor(e,t,r,o,a,c){this.account=e,this.env=t,this.alpha=r,this.decryptedPgpPvtKey=o,this.signer=a,this.progressHook=c,this.group={create:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){var r,n,i;if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());const o={account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env,groupName:e,groupDescription:null!==(r=null==t?void 0:t.description)&&void 0!==r?r:null,groupImage:null!==(n=null==t?void 0:t.image)&&void 0!==n?n:null,rules:null!==(i=null==t?void 0:t.rules)&&void 0!==i?i:{},isPublic:!(null==t?void 0:t.private),groupType:"default",config:{meta:null,scheduleAt:null,scheduleEnd:null,status:null},members:(null==t?void 0:t.members)?t.members:[],admins:(null==t?void 0:t.admins)?t.admins:[]},a=yield s.createGroupV2(o);return this.scalabilityV2Feature?a:yield s.getGroup({chatId:a.chatId,env:this.env})})),participants:{list:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){const{page:r=1,limit:n=20,filter:i={pending:void 0,role:void 0}}=null!=t?t:{},o={chatId:e,page:r,limit:n,pending:i.pending,role:i.role,env:this.env};return{members:yield s.getGroupMembers(o)}})),count:e=>n.__awaiter(this,void 0,void 0,(function*(){const t=yield s.getGroupMemberCount({chatId:e,env:this.env});return{participants:t.overallCount-t.pendingCount,pending:t.pendingCount}})),status:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){const r=(null==t?void 0:t.overrideAccount)||this.account,n=yield s.getGroupMemberStatus({chatId:e,did:r,env:this.env});return{pending:n.isPending,role:n.isAdmin?"admin":"member",participant:n.isMember}}))},permissions:e=>n.__awaiter(this,void 0,void 0,(function*(){const t={chatId:e,did:this.account,env:this.env};return yield s.getGroupAccess(t)})),info:e=>n.__awaiter(this,void 0,void 0,(function*(){return this.scalabilityV2Feature?yield s.getGroupInfo({chatId:e,env:this.env}):yield s.getGroup({chatId:e,env:this.env})})),update:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());const r=yield s.getGroupInfo({chatId:e,env:this.env});if(!r)throw new Error("Group not found");const n={chatId:e,groupName:t.name?t.name:r.groupName,groupDescription:void 0!==t.description?t.description:r.groupDescription,groupImage:void 0!==t.image?t.image:r.groupImage,rules:t.rules?t.rules:r.rules,account:this.account,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env},i={chatId:e,meta:t.meta?t.meta:r.meta,scheduleAt:t.scheduleAt?t.scheduleAt:r.scheduleAt,scheduleEnd:t.scheduleEnd?t.scheduleEnd:r.scheduleEnd,status:t.status?t.status:r.status,account:this.account,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env};yield(0,l.updateGroupProfile)(n);const o=yield(0,f.updateGroupConfig)(i);return this.scalabilityV2Feature?o:yield s.getGroup({chatId:o.chatId,env:this.env})})),add:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());const{role:r,accounts:n}=t;if(!["ADMIN","MEMBER"].includes(r))throw new Error("Invalid role provided.");if(!n||0===n.length)throw new Error("accounts array cannot be empty!");let i;return n.forEach((e=>{if(!(0,u.isValidPushCAIP)(e))throw new Error(`Invalid account address: ${e}`)})),i="ADMIN"===r?yield s.addAdmins({chatId:e,admins:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature}):yield s.addMembers({chatId:e,members:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature}),this.scalabilityV2Feature?i:yield s.getGroup({chatId:i.chatId,env:this.env})})),remove:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){const{accounts:r}=t;if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());if(!r||0===r.length)throw new Error("Accounts array cannot be empty!");r.forEach((e=>{if(!(0,u.isValidPushCAIP)(e))throw new Error(`Invalid account address: ${e}`)}));const n=[],i=[];for(const t of r){const r=yield s.getGroupMemberStatus({chatId:e,did:t,env:this.env});r.isAdmin?n.push(t):r.isMember&&i.push(t)}return n.length>0&&(yield s.removeAdmins({chatId:e,admins:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature})),i.length>0&&(yield s.removeMembers({chatId:e,members:i,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature})),yield this.group.info(e)})),modify:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){const{role:r,accounts:n}=t;if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());if(!["ADMIN","MEMBER"].includes(r))throw new Error("Invalid role provided.");if(!n||0===n.length)throw new Error("accounts array cannot be empty!");return n.forEach((e=>{if(!(0,u.isValidPushCAIP)(e))throw new Error(`Invalid account address: ${e}`)})),yield s.modifyRoles({chatId:e,newRole:r,members:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature})})),join:e=>n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());const t=yield s.getGroupMemberStatus({chatId:e,did:this.account,env:this.env});return t.isPending?yield s.approve({senderAddress:e,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature}):t.isMember||(yield s.addMembers({chatId:e,members:[this.account],env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature})),yield this.group.info(e)})),leave:e=>n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());let t;return t=(yield s.getGroupMemberStatus({chatId:e,did:this.account,env:this.env})).isAdmin?yield s.removeAdmins({chatId:e,admins:[this.account],env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature}):yield s.removeMembers({chatId:e,members:[this.account],env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature}),this.scalabilityV2Feature?t:yield s.getGroup({chatId:t.chatId,env:this.env})})),reject:e=>n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());yield s.reject({senderAddress:e,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey})}))},this.userInstance=new d.User(this.account,this.env),this.scalabilityV2Feature=this.alpha.feature.includes(i.ALPHA_FEATURES.SCALABILITY_V2)}list(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const r={account:(null==t?void 0:t.overrideAccount)||this.account,pgpPrivateKey:this.decryptedPgpPvtKey,page:null==t?void 0:t.page,limit:null==t?void 0:t.limit,env:this.env,toDecrypt:!!this.decryptedPgpPvtKey};switch(e){case o.ChatListType.CHATS:return yield s.chats(r);case o.ChatListType.REQUESTS:return yield s.requests(r);default:throw new Error("Invalid Chat List Type")}}))}latest(e){return n.__awaiter(this,void 0,void 0,(function*(){const{threadHash:t,intent:r}=yield s.conversationHash({conversationId:e,account:this.account,env:this.env});if(!t)return{};const n=yield s.latest({threadhash:t,toDecrypt:!!this.decryptedPgpPvtKey,pgpPrivateKey:this.decryptedPgpPvtKey,account:this.account,env:this.env}),i=r?"CHATS":"REQUESTS";return n.map((e=>Object.assign(Object.assign({},e),{listType:i})))}))}history(e,t){return n.__awaiter(this,void 0,void 0,(function*(){let r;const{threadHash:n,intent:i}=yield s.conversationHash({conversationId:e,account:this.account,env:this.env});if(r=(null==t?void 0:t.reference)?t.reference:n,!r)return[];const o=yield s.history({account:this.account,env:this.env,threadhash:r,pgpPrivateKey:this.decryptedPgpPvtKey,toDecrypt:!!this.decryptedPgpPvtKey,limit:null==t?void 0:t.limit}),a=i?"CHATS":"REQUESTS";return o.map((e=>Object.assign(Object.assign({},e),{listType:a})))}))}send(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());t.type||(t.type=i.MessageType.TEXT);const r={message:t,to:e,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env};return yield s.send(r)}))}decrypt(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());return yield s.decryptConversation({pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env,messages:e,pgpHelper:c.PGPHelper,connectedUser:yield this.userInstance.info()})}))}accept(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());return yield s.approve({senderAddress:e,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature})}))}reject(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());yield s.reject({senderAddress:e,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey})}))}block(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());const t=yield a.get({account:this.account,env:this.env});for(const r of e)if(!(0,u.isValidPushCAIP)(r))throw new Error("Invalid address in the users: "+r);if(t.profile.blockedUsersList||(t.profile.blockedUsersList=[]),t.profile.blockedUsersList=[...new Set([...t.profile.blockedUsersList,...e])],!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());return yield a.profile.update({pgpPrivateKey:this.decryptedPgpPvtKey,account:this.account,profile:{name:t.profile.name,desc:t.profile.desc,picture:t.profile.picture,blockedUsersList:t.profile.blockedUsersList},env:this.env,progressHook:this.progressHook})}))}unblock(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());const t=yield a.get({account:this.account,env:this.env});for(const n of e)if(!(0,u.isValidPushCAIP)(n))throw new Error("Invalid address in the users: "+n);if(!t.profile.blockedUsersList)return t;const r=e.map((e=>n.__awaiter(this,void 0,void 0,(function*(){return(yield(0,u.convertToValidDID)(e,this.env)).toLowerCase()})))),i=yield Promise.all(r);return t.profile.blockedUsersList=t.profile.blockedUsersList.filter((e=>{i.includes(e.toLowerCase())})),yield a.profile.update({pgpPrivateKey:this.decryptedPgpPvtKey,account:this.account,profile:{name:t.profile.name,desc:t.profile.desc,picture:t.profile.picture,blockedUsersList:t.profile.blockedUsersList},env:this.env,progressHook:this.progressHook})}))}info(e,t){var r,i,o;return n.__awaiter(this,void 0,void 0,(function*(){const n=(null==t?void 0:t.overrideAccount)||this.account,a={recipient:e,account:n,env:this.env};try{const t=yield s.getChatInfo(a),c=null!==(i=null===(r=t.meta)||void 0===r?void 0:r.group)&&void 0!==i&&i;let l=e;if(c)l=t.chatId;else{const e=(null!==(o=t.participants)&&void 0!==o?o:[]).find((e=>e!==(0,u.walletToPCAIP10)(n)));e&&(l=e)}return{meta:t.meta,list:t.list,participants:t.participants,chatId:t.chatId,recipient:l}}catch(c){throw console.error("Error in Chat.info: ",c),new Error(`Error fetching chat info: ${c}`)}}))}}},682288:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Encryption=void 0;const n=r(331635),i=r(75232),o=r(435669),a=r(527034);t.Encryption=class{constructor(e,t,r,n,i,o){this.account=e,this.env=t,this.decryptedPgpPvtKey=r,this.pgpPublicKey=n,this.signer=i,this.progressHook=o,this.userInstance=new a.User(this.account,this.env)}info(){return n.__awaiter(this,void 0,void 0,(function*(){const e=yield this.userInstance.info();let t;return this.signer&&(t=yield i.decryptAuth({account:this.account,env:this.env,signer:this.signer,progressHook:this.progressHook,additionalMeta:{NFTPGP_V1:{encryptedPassword:JSON.stringify(JSON.parse(e.encryptedPrivateKey).encryptedPassword)}}})),Object.assign({decryptedPgpPrivateKey:this.decryptedPgpPvtKey,pgpPublicKey:this.pgpPublicKey},null!=t?{decryptedPassword:t}:{})}))}update(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(o.PushAPI.ensureSignerMessage());if(!this.decryptedPgpPvtKey||!this.pgpPublicKey)throw new Error(o.PushAPI.ensureSignerMessage());return yield i.auth.update({account:this.account,pgpEncryptionVersion:e,additionalMeta:null==t?void 0:t.versionMeta,progressHook:this.progressHook,signer:this.signer,env:this.env,pgpPrivateKey:this.decryptedPgpPvtKey,pgpPublicKey:this.pgpPublicKey})}))}}},301264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Profile=void 0;const n=r(331635),i=r(75232),o=r(435669);t.Profile=class{constructor(e,t,r,n,i){this.account=e,this.env=t,this.cache=r,this.decryptedPgpPvtKey=n,this.progressHook=i}info(e){return n.__awaiter(this,void 0,void 0,(function*(){const t=(null==e?void 0:e.overrideAccount)||this.account,r=`profile-${t}`;if(this.cache.has(r))return this.cache.get(r);const n=yield i.get({account:t,env:this.env});return this.cache.set(r,n.profile),n.profile}))}update(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(o.PushAPI.ensureSignerMessage());const{name:t,desc:r,picture:n}=e,a=yield i.profile.update({pgpPrivateKey:this.decryptedPgpPvtKey,account:this.account,profile:{name:t,desc:r,picture:n},env:this.env,progressHook:this.progressHook}),s=`profile-${this.account}`;return this.cache.delete(s),a.profile}))}}},701728:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SpaceListType=t.ChatListType=void 0,function(e){e.CHATS="CHATS",e.REQUESTS="REQUESTS"}(t.ChatListType||(t.ChatListType={})),function(e){e.SPACES="SPACES",e.REQUESTS="REQUESTS"}(t.SpaceListType||(t.SpaceListType={}))},813943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Space=void 0;const n=r(331635),i=r(701728),o=r(200635),a=r(585101),s=r(435669),c=r(517496),u=r(668943),l=r(585101),d=r(795924),f=r(900487),h=r(795924),p=r(442097),g=r(459657);t.Space=class{constructor(e,t,r,i,o){this.account=e,this.env=t,this.decryptedPgpPvtKey=r,this.signer=i,this.progressHook=o,this.participants={list:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){const{page:r=1,limit:n=20}=null!=t?t:{},i={chatId:e,page:r,limit:n,env:this.env};return{members:(yield a.getGroupMembers(i)).map((e=>({address:e.address,intent:e.intent,role:"ADMIN"===e.role.toUpperCase()?"SPEAKER":"LISTENER",userInfo:e.userInfo})))}})),count:e=>n.__awaiter(this,void 0,void 0,(function*(){const t=yield a.getGroupMemberCount({chatId:e,env:this.env});return{participants:t.overallCount-t.pendingCount,pending:t.pendingCount}})),status:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){const r=yield a.getGroupMemberStatus({chatId:e,did:t,env:this.env});return{pending:r.isPending,role:r.isAdmin?"SPEAKER":"LISTENER",participant:r.isMember}}))},this.chatInstance=new f.Chat(this.account,this.env,{feature:[]},this.decryptedPgpPvtKey,this.signer)}create(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error("Signer is required to create a space.");const r={signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,spaceName:e,spaceDescription:t.description||null,listeners:t.participants.listeners,speakers:t.participants.speakers,spaceImage:t.image||null,isPublic:"boolean"!=typeof t.private||!t.private,rules:t.rules||{},config:{scheduleAt:t.schedule.start,scheduleEnd:t.schedule.end||null},env:this.env};return yield o.createV2(r)}))}update(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());let r=null;try{if(r=yield a.getGroupInfo({chatId:e,env:this.env}),!r)throw new Error("Space not found")}catch(d){throw new Error("Space not found")}const n={chatId:e,groupName:t.name?t.name:r.groupName,groupDescription:t.description?t.description:r.groupDescription,groupImage:t.image?t.image:r.groupImage,rules:t.rules?t.rules:r.rules,account:this.account,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env},i={chatId:e,meta:t.meta?t.meta:r.meta,scheduleAt:t.scheduleAt?t.scheduleAt:r.scheduleAt,scheduleEnd:t.scheduleEnd?t.scheduleEnd:r.scheduleEnd,status:t.status?t.status:r.status,account:this.account,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env};yield(0,c.updateGroupProfile)(n);const o=yield(0,u.updateGroupConfig)(i);return(0,l.groupInfoDtoToSpaceInfoDto)(o)}))}info(e){return n.__awaiter(this,void 0,void 0,(function*(){const t=yield a.getGroupInfo({chatId:e,env:this.env});return(0,l.groupInfoDtoToSpaceInfoDto)(t)}))}permissions(e){return n.__awaiter(this,void 0,void 0,(function*(){const t={chatId:e,did:this.account,env:this.env};return yield a.getGroupAccess(t)}))}add(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());const{role:r,accounts:n}=t;if(!["SPEAKER","LISTENER"].includes(r))throw new Error("Invalid role provided.");if(!n||0===n.length)throw new Error("accounts array cannot be empty!");let i;return n.forEach((e=>{if(!(0,d.isValidPushCAIP)(e))throw new Error(`Invalid account address: ${e}`)})),i="SPEAKER"===r?yield a.addAdmins({chatId:e,admins:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1}):yield a.addMembers({chatId:e,members:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1}),(0,l.groupInfoDtoToSpaceInfoDto)(i)}))}remove(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const{accounts:r}=t;if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());if(!r||0===r.length)throw new Error("Accounts array cannot be empty!");r.forEach((e=>{if(!(0,d.isValidPushCAIP)(e))throw new Error(`Invalid account address: ${e}`)}));const n=[],i=[];for(const t of r){const r=yield a.getGroupMemberStatus({chatId:e,did:t,env:this.env});r.isAdmin?n.push(t):r.isMember&&i.push(t)}return n.length>0&&(yield a.removeAdmins({chatId:e,admins:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1})),i.length>0&&(yield a.removeMembers({chatId:e,members:i,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1})),yield this.info(e)}))}modify(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const{role:r,accounts:n}=t;if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());if(!["SPEAKER","LISTENER"].includes(r))throw new Error("Invalid role provided.");if(!n||0===n.length)throw new Error("accounts array cannot be empty!");n.forEach((e=>{if(!(0,d.isValidPushCAIP)(e))throw new Error(`Invalid account address: ${e}`)}));let i=null;i="SPEAKER"===r?"ADMIN":"MEMBER";const o=yield a.modifyRoles({chatId:e,newRole:i,members:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1});return(0,l.groupInfoDtoToSpaceInfoDto)(o)}))}join(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());const t=yield a.getGroupMemberStatus({chatId:e,did:this.account,env:this.env});return t.isPending?yield a.approve({senderAddress:e,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1}):t.isMember||(yield a.addMembers({chatId:e,members:[this.account],env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1})),yield this.info(e)}))}leave(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());let t;return t=(yield a.getGroupMemberStatus({chatId:e,did:this.account,env:this.env})).isAdmin?yield a.removeAdmins({chatId:e,admins:[this.account],env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1}):yield a.removeMembers({chatId:e,members:[this.account],env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1}),(0,l.groupInfoDtoToSpaceInfoDto)(t)}))}search(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const{page:r=1,limit:n=20}=null!=t?t:{};return(yield o.search({searchTerm:e,pageNumber:r,pageSize:n,env:this.env})).map((e=>a.spaceDtoToSpaceInfoDto(e)))}))}trending(e){return n.__awaiter(this,void 0,void 0,(function*(){const{page:t=1,limit:r=20}=null!=e?e:{};return yield o.trending({page:t,limit:r,env:this.env})}))}list(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const r={account:(null==t?void 0:t.overrideAccount)||this.account,pgpPrivateKey:this.decryptedPgpPvtKey,page:null==t?void 0:t.page,limit:null==t?void 0:t.limit,env:this.env,toDecrypt:!!this.decryptedPgpPvtKey};switch(e){case i.SpaceListType.SPACES:return yield o.spaces(r);case i.SpaceListType.REQUESTS:return yield o.requests(r);default:throw new Error("Invalid Space List Type")}}))}accept(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());return this.chatInstance.accept(e)}))}reject(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());return this.chatInstance.reject(e)}))}get chat(){return{send:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){return this.chatInstance.send(e,t)})),decrypt:e=>n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());return yield this.chatInstance.decrypt(e)})),latest:e=>n.__awaiter(this,void 0,void 0,(function*(){return yield this.chatInstance.latest(e)})),history:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){return yield this.chatInstance.history(e,t)}))}}initialize(e){return n.__awaiter(this,void 0,void 0,(function*(){const{onChange:t,spaceId:r}=e;if(!this.signer)throw new Error("Signer is required for push space");if(!this.decryptedPgpPvtKey)throw new Error("PushSDK was initialized in readonly mode. Space functionality is not available.");const n=yield new h.Signer(this.signer).getChainId();if(!n)throw new Error("Chain Id not retrievable from signer");const i=new g.Space({signer:this.signer,chainId:n,pgpPrivateKey:this.decryptedPgpPvtKey,setSpaceData:t,address:this.account,env:this.env});yield i.initialize({spaceId:r});const o=yield this.info(r);return new p.SpaceV2({spaceV1Instance:i,spaceInfo:o})}))}}},527034:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.User=void 0;const n=r(331635),i=r(75232);t.User=class{constructor(e,t){this.account=e,this.env=t}info(e){return n.__awaiter(this,void 0,void 0,(function*(){const t=(null==e?void 0:e.overrideAccount)||this.account;return yield i.get({account:t,env:this.env})}))}}},232198:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Video=void 0;const n=r(331635),i=r(191227),o=r(899024),a=r(795924),s=r(668865),c=r(676393),u=r(389407),l=r(716912);t.Video=class{constructor(e,t,r,n){this.account=e,this.env=t,this.decryptedPgpPvtKey=r,this.signer=n,this.peerInfos={}}initialize(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const{stream:r,config:n,media:d}=t;if(!this.signer)throw new Error("Signer is required for push video");if(!this.decryptedPgpPvtKey)throw new Error("PushSDK was initialized in readonly mode. Video functionality is not available.");const f=yield new a.Signer(this.signer).getChainId();if(!f)throw new Error("Chain Id not retrievable from signer");const h=new s.Video({signer:this.signer,chainId:f,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env,setData:e});return yield h.create(Object.assign(Object.assign(Object.assign({},d&&{stream:d}),(null==n?void 0:n.audio)&&{audio:n.audio}),(null==n?void 0:n.video)&&{video:n.video})),r.on(i.default.STREAM.VIDEO,(e=>{const{address:t,signal:r,meta:{rules:n}}=e.peerInfo,c=n.access.data.chatId;e.event===i.default.VIDEO.EVENT.REQUEST&&(this.peerInfos[(0,a.walletToPCAIP10)(e.peerInfo.address)]=e.peerInfo,h.setData((e=>(0,u.produce)(e,(e=>{e.local.address=this.account,e.incoming[0].address=t,e.incoming[0].status=o.VideoCallStatus.RECEIVED,e.meta.chatId=c,e.meta.initiator.address=t,e.meta.initiator.signal=r}))))),c&&c===h.data.meta.chatId&&(e.event===i.default.VIDEO.EVENT.DENY&&(h.data.local.stream&&(0,l.endStream)(h.data.local.stream),h.setData((()=>s.initVideoCallData))),e.event!==i.default.VIDEO.EVENT.APPROVE&&e.event!==i.default.VIDEO.EVENT.RETRY_APPROVE||h.connect({peerAddress:t,signalData:r}),e.event===i.default.VIDEO.EVENT.RETRY_REQUEST&&h.isInitiator()&&h.request({senderAddress:this.account,recipientAddress:t,rules:n,retry:!0}),e.event!==i.default.VIDEO.EVENT.RETRY_REQUEST||h.isInitiator()||h.acceptRequest({signalData:r,senderAddress:this.account,recipientAddress:t,rules:n,retry:!0}))})),new c.VideoV2({videoV1Instance:h,account:this.account,decryptedPgpPvtKey:this.decryptedPgpPvtKey,env:this.env,peerInfos:this.peerInfos})}))}}},942754:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataModifier=void 0;const n=r(416062),i=r(899024),o=r(773773);class a{static handleChatGroupEvent(e,t=!1){switch(e.eventType){case"create":return this.mapToCreateGroupEvent(e,t);case"update":return this.mapToUpdateGroupEvent(e,t);case n.GroupEventType.JoinGroup:return this.mapToJoinGroupEvent(e,t);case n.GroupEventType.LeaveGroup:return this.mapToLeaveGroupEvent(e,t);case n.MessageEventType.Request:return this.mapToRequestEvent(e,t);case n.GroupEventType.Remove:return this.mapToRemoveEvent(e,t);case n.GroupEventType.RoleChange:return this.mapToRoleChangeEvent(e,t);default:return console.warn("Unknown eventType:",e.eventType),e}}static mapToJoinGroupEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,chatId:e.chatId,from:e.from,to:e.to,event:n.GroupEventType.JoinGroup};return t?Object.assign(Object.assign({},r),{raw:{verificationProof:e.verificationProof}}):r}static mapToLeaveGroupEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,chatId:e.chatId,from:e.from,to:e.to,event:n.GroupEventType.LeaveGroup};return t?Object.assign(Object.assign({},r),{raw:{verificationProof:e.verificationProof}}):r}static mapToRequestEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,chatId:e.chatId,from:e.from,to:e.to,event:n.MessageEventType.Request,meta:{group:e.isGroup||!1}};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToRemoveEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,chatId:e.chatId,from:e.from,to:e.to,event:n.GroupEventType.Remove};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToRoleChangeEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,chatId:e.chatId,from:e.from,to:e.to,newRole:e.newRole,event:n.GroupEventType.RoleChange};return t&&(r.raw={verificationProof:e.verificationProof}),r}static buildChatGroupEventMetaAndRaw(e,t){const r={name:e.groupName,description:e.groupDescription,image:e.groupImage,owner:e.groupCreator,private:!e.isPublic,rules:e.rules||{}};if(t){return{meta:r,raw:{verificationProof:e.verificationProof}}}return{meta:r}}static mapToGroupEvent(e,t,r){const{meta:n,raw:i}=this.buildChatGroupEventMetaAndRaw(t,r),o={event:e,origin:t.messageOrigin,timestamp:t.timestamp,chatId:t.chatId,from:t.from,meta:n};return r&&(o.raw=i),o}static mapToCreateGroupEvent(e,t){return this.mapToGroupEvent(n.GroupEventType.CreateGroup,e,t)}static mapToUpdateGroupEvent(e,t){return this.mapToGroupEvent(n.GroupEventType.UpdateGroup,e,t)}static mapToMessageEvent(e,t=!1,r){!1===e.hasIntent&&"message"===r&&(r=n.MessageEventType.Request);const i={event:r,origin:e.messageOrigin,timestamp:e.timestamp.toString(),chatId:e.chatId,from:e.fromCAIP10,to:[e.toCAIP10],message:Object.assign({type:e.messageType},e.messageObj),meta:{group:e.isGroup||!1},reference:e.cid};if(t){const t={fromCAIP10:e.fromCAIP10,toCAIP10:e.toCAIP10,fromDID:e.fromDID,toDID:e.toDID,encType:e.encType,encryptedSecret:e.encryptedSecret,signature:e.signature,sigType:e.sigType,verificationProof:e.verificationProof,previousReference:e.link};i.raw=t}return i}static handleChatEvent(e,t=!1){if(!e)throw console.error("Error in handleChatEvent: data is undefined or null"),new Error("data is undefined or null");const r={Chat:n.MessageEventType.Message,Request:n.MessageEventType.Request,Approve:n.MessageEventType.Accept,Reject:n.MessageEventType.Reject},i=e.eventType||e.messageCategory;if(!r[i])throw console.error("Error in handleChatEvent: Invalid eventType or messageCategory",JSON.stringify(e)),new Error("Invalid eventType or messageCategory in data");const o=r[i];return o?this.mapToMessageEvent(e,t,o):(console.warn("Unknown eventType:",e.eventType||e.messageCategory),e)}static mapToNotificationEvent(e,t,r,i=!1){var o,a,s;const c=Object.keys(n.NOTIFICATION.TYPE).find((t=>n.NOTIFICATION.TYPE[t]===e.payload.data.type))||"BROADCAST";let u;u=Array.isArray(e.payload.recipients)?e.payload.recipients:"string"==typeof e.payload.recipients?[e.payload.recipients]:Object.keys(e.payload.recipients);const l={event:t,origin:r,timestamp:e.epoch,from:e.sender,to:u,notifID:e.payload_id.toString(),channel:{name:e.payload.data.app,icon:e.payload.data.icon,url:e.payload.data.url},meta:{type:"NOTIFICATION."+c},message:{notification:{title:e.payload.notification.title,body:e.payload.notification.body},payload:{title:e.payload.data.asub,body:e.payload.data.amsg,cta:e.payload.data.acta,embed:e.payload.data.aimg,meta:{domain:(null===(o=e.payload.data.additionalMeta)||void 0===o?void 0:o.domain)||"push.org",type:null===(a=e.payload.data.additionalMeta)||void 0===a?void 0:a.type,data:null===(s=e.payload.data.additionalMeta)||void 0===s?void 0:s.data}}},config:{expiry:e.payload.data.etime,silent:"1"===e.payload.data.silent,hidden:"1"===e.payload.data.hidden},source:e.source};return i&&(l.raw={verificationProof:e.payload.verificationProof}),l}static convertToProposedName(e){switch(e){case"message":return n.ProposedEventNames.Message;case"request":return n.ProposedEventNames.Request;case"accept":return n.ProposedEventNames.Accept;case"reject":return n.ProposedEventNames.Reject;case"leaveGroup":return n.ProposedEventNames.LeaveGroup;case"joinGroup":return n.ProposedEventNames.JoinGroup;case"createGroup":return n.ProposedEventNames.CreateGroup;case"updateGroup":return n.ProposedEventNames.UpdateGroup;case"remove":return n.ProposedEventNames.Remove;case"roleChange":return n.ProposedEventNames.RoleChange;default:throw new Error(`Unknown current event name: ${e}`)}}static convertToProposedNameForSpace(e){switch(e){case"create":return n.ProposedEventNames.CreateSpace;case"update":return n.ProposedEventNames.UpdateSpace;case"request":return n.ProposedEventNames.SpaceRequest;case"accept":return n.ProposedEventNames.SpaceAccept;case"reject":return n.ProposedEventNames.SpaceReject;case"leaveSpace":return n.ProposedEventNames.LeaveSpace;case"joinSpace":return n.ProposedEventNames.JoinSpace;case"remove":return n.ProposedEventNames.SpaceRemove;case"start":return n.ProposedEventNames.StartSpace;case"stop":return n.ProposedEventNames.StopSpace;default:throw new Error(`Unknown current event name: ${e}`)}}static handleToField(e){var t;switch(e.event){case n.ProposedEventNames.LeaveGroup:case n.ProposedEventNames.JoinGroup:e.to=null;break;case n.ProposedEventNames.Accept:case n.ProposedEventNames.Reject:(null===(t=e.meta)||void 0===t?void 0:t.group)&&(e.to=null)}}static handleSpaceEvent(e,t=!1){switch(e.eventType){case"create":return this.mapToCreateSpaceEvent(e,t);case"update":return this.mapToUpdateSpaceEvent(e,t);case"request":return this.mapToRequestSpaceEvent(e,t);case"remove":return this.mapToRemoveSpaceEvent(e,t);case"joinSpace":return this.mapToJoinSpaceEvent(e,t);case"leaveSpace":return this.mapToLeaveSpaceEvent(e,t);case"start":return this.mapToStartSpaceEvent(e,t);case"stop":return this.mapToStopSpaceEvent(e,t);default:switch(e.messageCategory){case"Approve":return this.mapToSpaceApproveEvent(e,t);case"Reject":return this.mapToSpaceRejectEvent(e,t);default:return console.warn("Unknown eventType or messageCategory for space:",e.eventType,e.messageCategory),e}}}static mapToCreateSpaceEvent(e,t){const r={event:e.eventType,origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.spaceCreator,meta:{name:e.spaceName,description:e.spaceDescription,image:e.spaceImage,owner:e.spaceCreator,private:!e.isPublic,rules:e.rules||{}}};return t&&(r.raw={verificationProof:e.verificationProof||""}),r}static mapToUpdateSpaceEvent(e,t){const r={event:e.eventType,origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.spaceCreator,meta:{name:e.spaceName,description:e.spaceDescription,image:e.spaceImage,owner:e.spaceCreator,private:!e.isPublic,rules:e.rules||{}}};return t&&(r.raw={verificationProof:e.verificationProof||""}),r}static mapToRequestSpaceEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.from,to:e.to,event:n.MessageEventType.Request};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToSpaceApproveEvent(e,t){const r={event:"request",origin:"other"===e.messageOrigin?"self":"other",timestamp:e.timestamp,spaceId:e.chatId,from:e.fromCAIP10,to:[e.toCAIP10]};return t&&(r.raw={verificationProof:e.verificationProof||""}),r}static mapToSpaceRejectEvent(e,t){const r={event:"reject",origin:"other"===e.messageOrigin?"other":"self",timestamp:e.timestamp.toString(),spaceId:e.chatId,from:e.fromCAIP10,to:null};return t&&(r.raw={verificationProof:e.verificationProof||""}),r}static mapToRemoveSpaceEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.from,to:e.to,event:"remove"};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToJoinSpaceEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.from,to:e.to,event:e.eventType};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToLeaveSpaceEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.from,to:e.to,event:e.eventType};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToStartSpaceEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.from,to:null,event:e.eventType};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToStopSpaceEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.from,to:null,event:e.eventType};return t&&(r.raw={verificationProof:e.verificationProof}),r}static convertToProposedNameForVideo(e){switch(e){case i.VideoCallStatus.INITIALIZED:return n.VideoEventType.REQUEST;case i.VideoCallStatus.RECEIVED:return n.VideoEventType.APPROVE;case i.VideoCallStatus.CONNECTED:return n.VideoEventType.CONNECT;case i.VideoCallStatus.ENDED:return n.VideoEventType.DISCONNECT;case i.VideoCallStatus.DISCONNECTED:return n.VideoEventType.DENY;case i.VideoCallStatus.RETRY_INITIALIZED:return n.VideoEventType.RETRY_REQUEST;case i.VideoCallStatus.RETRY_RECEIVED:return n.VideoEventType.RETRY_APPROVE;default:throw new Error(`Unknown video call status: ${e}`)}}static mapToVideoEvent(e,t,r=!1){var n,i;const{senderAddress:s,signalData:c,status:u,chatId:l}=JSON.parse(null===(n=e.payload.data.additionalMeta)||void 0===n?void 0:n.data),d={address:s,signal:c,meta:{rules:null!==(i=e.payload.rules)&&void 0!==i?i:{access:{type:o.VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT,data:{chatId:l}}}}},f={event:a.convertToProposedNameForVideo(u),origin:t,timestamp:e.epoch,peerInfo:d};return r&&(f.raw={verificationProof:e.payload.verificationProof}),f}}t.DataModifier=a},514419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PushStream=void 0;const n=r(331635),i=r(137007),o=r(967149),a=r(397067),s=r(416062),c=r(942754),u=r(795924),l=r(900487),d=r(746290),f=r(446392),h=r(122831);class p extends i.EventEmitter{constructor(e,t,r,n,i,o){var s;super(),this._listen=t,this.decryptedPgpPvtKey=n,this.progressHook=i,this.signer=o,this.account=e,this.raw=null!==(s=r.raw)&&void 0!==s&&s,this.options=r,this.listen=t,this.disconnected=!1,this.uid=(0,h.v4)(),this.chatSocketCount=0,this.notifSocketCount=0,this.chatSocketConnected=!1,this.notifSocketConnected=!1,this.chatInstance=new l.Chat(this.account,this.options.env,d.ALPHA_FEATURE_CONFIG[a.PACKAGE_BUILD],this.decryptedPgpPvtKey,this.signer,this.progressHook)}static initialize(e,t,r,i,o,a,c){return n.__awaiter(this,void 0,void 0,(function*(){const n={raw:!1,connection:{auto:!0,retries:3},env:r};if(!t||0===t.length)throw new Error("The listen property must have at least one STREAM type.");const u=Object.assign(Object.assign({},n),c),l=u.overrideAccount||e;t.includes("*")&&(t=Object.values(s.STREAM));return new p(l,t,u,i,o,a)}))}reinit(e,t){return n.__awaiter(this,void 0,void 0,(function*(){this.uid=(0,h.v4)(),this.listen=e,this.options=Object.assign(Object.assign({},this.options),t),yield this.disconnect(),yield this.connect()}))}connect(){return n.__awaiter(this,void 0,void 0,(function*(){return new Promise(((e,t)=>{(()=>{n.__awaiter(this,void 0,void 0,(function*(){var r,i,a,l,d,h,p,g,m,y,b,v,w,A;const C=!this.listen||0===this.listen.length||this.listen.includes(s.STREAM.CHAT)||this.listen.includes(s.STREAM.CHAT_OPS)||this.listen.includes(s.STREAM.SPACE)||this.listen.includes(s.STREAM.SPACE_OPS),E=!this.listen||0===this.listen.length||this.listen.includes(s.STREAM.NOTIF)||this.listen.includes(s.STREAM.NOTIF_OPS)||this.listen.includes(s.STREAM.VIDEO);let x=!1,S=!1;const I=()=>{(C&&x||!C)&&(E&&S||!E)&&(this.emit(s.STREAM.CONNECT),console.log("RestAPI::PushStream::connect - Emitted STREAM.CONNECT"),e())};setTimeout((()=>{this.notifSocketConnected||this.chatSocketConnected||t(new Error("Connection timeout"))}),5e3);const k=e=>n.__awaiter(this,void 0,void 0,(function*(){"chat"===e?(x=!1,this.chatSocketConnected=!1,this.chatSocketCount--,S?this.pushNotificationSocket&&this.pushNotificationSocket.connected&&(console.log("RestAPI::PushStream::handleSocketDisconnection - Disconnecting Notification Socket..."),this.pushNotificationSocket.disconnect()):(this.emit(s.STREAM.DISCONNECT),console.log("RestAPI::PushStream::handleSocketDisconnection - Emitted STREAM.DISCONNECT for chat."))):"notif"===e&&(S=!1,this.notifSocketConnected=!1,this.notifSocketCount--,x?this.pushChatSocket&&this.pushChatSocket.connected&&(console.log("RestAPI::PushStream::handleSocketDisconnection - Disconnecting Chat Socket..."),this.pushChatSocket.disconnect()):(this.emit(s.STREAM.DISCONNECT),console.log("RestAPI::PushStream::handleSocketDisconnection - Emitted STREAM.DISCONNECT for notification.")))}));C&&(this.pushChatSocket?this.pushChatSocket&&!this.chatSocketConnected?(console.log("RestAPI::PushStream::ChatSocket::Reconnect - Attempting to reconnect push chat socket..."),this.pushChatSocket.connect()):console.log("RestAPI::PushStream::ChatSocket::Status - Push chat socket already connected"):(console.log("RestAPI::PushStream::ChatSocket::Create - pushChatSocket does not exist, creating new socket connection..."),this.pushChatSocket=yield(0,o.createSocketConnection)({user:(0,u.walletToPCAIP10)(this.account),socketType:"chat",socketOptions:{autoConnect:null===(a=null===(i=null===(r=this.options)||void 0===r?void 0:r.connection)||void 0===i?void 0:i.auto)||void 0===a||a,reconnectionAttempts:null!==(h=null===(d=null===(l=this.options)||void 0===l?void 0:l.connection)||void 0===d?void 0:d.retries)&&void 0!==h?h:3},env:null===(p=this.options)||void 0===p?void 0:p.env}),this.pushChatSocket||t(new Error("RestAPI::PushStream::ChatSocket::Error - Push chat socket not connected")))),E&&(this.pushNotificationSocket?this.pushNotificationSocket&&!this.notifSocketConnected?(console.log("RestAPI::PushStream::NotifSocket::Reconnect - Attempting to reconnect push notification socket..."),this.notifSocketCount++,this.pushNotificationSocket.connect()):console.log("RestAPI::PushStream::NotifSocket::Status - Push notification socket already connected"):(console.log("RestAPI::PushStream::NotifSocket::Create - pushNotificationSocket does not exist, creating new socket connection..."),this.pushNotificationSocket=yield(0,o.createSocketConnection)({user:(0,u.pCAIP10ToWallet)(this.account),env:null===(g=this.options)||void 0===g?void 0:g.env,socketOptions:{autoConnect:null===(b=null===(y=null===(m=this.options)||void 0===m?void 0:m.connection)||void 0===y?void 0:y.auto)||void 0===b||b,reconnectionAttempts:null!==(A=null===(w=null===(v=this.options)||void 0===v?void 0:v.connection)||void 0===w?void 0:w.retries)&&void 0!==A?A:3}}),this.pushNotificationSocket||t(new Error("RestAPI::PushStream::NotifSocket::Error - Push notification socket not connected"))));const _=e=>!this.listen||0===this.listen.length||this.listen.includes(e);this.pushChatSocket&&(this.pushChatSocket.on(s.EVENTS.CONNECT,(()=>n.__awaiter(this,void 0,void 0,(function*(){x=!0,this.chatSocketCount++,this.chatSocketConnected=!0,I(),console.log(`RestAPI::PushStream::EVENTS.CONNECT::Chat Socket Connected (ID: ${this.pushChatSocket.id})`)})))),this.pushChatSocket.on(s.EVENTS.DISCONNECT,(()=>n.__awaiter(this,void 0,void 0,(function*(){yield k("chat")})))),this.pushChatSocket.on(s.EVENTS.CHAT_GROUPS,(e=>{try{const t=c.DataModifier.handleChatGroupEvent(e,this.raw);t.event=c.DataModifier.convertToProposedName(t.event),t.streamUid=this.uid,c.DataModifier.handleToField(t),this.shouldEmitChat(e.chatId)&&(e.eventType===s.GroupEventType.JoinGroup||e.eventType===s.GroupEventType.LeaveGroup||e.eventType===s.MessageEventType.Request||e.eventType===s.GroupEventType.Remove||e.eventType===s.GroupEventType.RoleChange?_(s.STREAM.CHAT)&&this.emit(s.STREAM.CHAT,t):_(s.STREAM.CHAT_OPS)&&this.emit(s.STREAM.CHAT_OPS,t))}catch(t){console.error("Error handling CHAT_GROUPS event:",t,"Data:",e)}})),this.pushChatSocket.on(s.EVENTS.CHAT_RECEIVED_MESSAGE,(e=>n.__awaiter(this,void 0,void 0,(function*(){try{"Chat"!=e.messageCategory&&"Request"!=e.messageCategory||this.decryptedPgpPvtKey&&(e=(e=yield this.chatInstance.decrypt([e]))[0]);const t=c.DataModifier.handleChatEvent(e,this.raw);t.event=c.DataModifier.convertToProposedName(t.event),c.DataModifier.handleToField(t),this.shouldEmitChat(e.chatId)&&_(s.STREAM.CHAT)&&this.emit(s.STREAM.CHAT,t)}catch(t){console.error("Error handling CHAT_RECEIVED_MESSAGE event:",t,"Data:",e)}})))),this.pushChatSocket.on("SPACES",(e=>{try{const t=c.DataModifier.handleSpaceEvent(e,this.raw);t.event=c.DataModifier.convertToProposedNameForSpace(t.event),c.DataModifier.handleToField(t),this.shouldEmitSpace(e.spaceId)&&(e.eventType===s.SpaceEventType.Join||e.eventType===s.SpaceEventType.Leave||e.eventType===s.MessageEventType.Request||e.eventType===s.SpaceEventType.Remove||e.eventType===s.SpaceEventType.Start||e.eventType===s.SpaceEventType.Stop?_(s.STREAM.SPACE)&&this.emit(s.STREAM.SPACE,t):_(s.STREAM.SPACE_OPS)&&this.emit(s.STREAM.SPACE_OPS,t))}catch(t){console.error("Error handling SPACES event:",t,"Data:",e)}})),this.pushChatSocket.on("SPACES_MESSAGES",(e=>{try{const t=c.DataModifier.handleSpaceEvent(e,this.raw);t.event=c.DataModifier.convertToProposedNameForSpace(t.event),c.DataModifier.handleToField(t),this.shouldEmitSpace(e.spaceId)&&_(s.STREAM.SPACE)&&this.emit(s.STREAM.SPACE,t)}catch(t){console.error("Error handling SPACES event:",t,"Data:",e)}}))),this.pushNotificationSocket&&(this.pushNotificationSocket.on(s.EVENTS.CONNECT,(()=>n.__awaiter(this,void 0,void 0,(function*(){console.log(`RestAPI::PushStream::NotifSocket::Connect - Notification Socket Connected (ID: ${this.pushNotificationSocket.id})`),S=!0,this.notifSocketCount++,this.notifSocketConnected=!0,I()})))),this.pushNotificationSocket.on(s.EVENTS.DISCONNECT,(()=>n.__awaiter(this,void 0,void 0,(function*(){console.log("RestAPI::PushStream::NotifSocket::Disconnect - Notification socket disconnected."),yield k("notif")})))),this.pushNotificationSocket.on(s.EVENTS.USER_FEEDS,(e=>{var t;try{if((null===(t=e.payload.data.additionalMeta)||void 0===t?void 0:t.type)===`${f.ADDITIONAL_META_TYPE.PUSH_VIDEO}+1`&&_(s.STREAM.VIDEO)&&this.shouldEmitVideo(e.sender)){const t=c.DataModifier.mapToVideoEvent(e,this.account===e.sender?s.MessageOrigin.Self:s.MessageOrigin.Other,this.raw);this.emit(s.STREAM.VIDEO,t)}else{const t=c.DataModifier.mapToNotificationEvent(e,s.NotificationEventType.INBOX,this.account===e.sender?"self":"other",this.raw);this.shouldEmitChannel(t.from)&&_(s.STREAM.NOTIF)&&this.emit(s.STREAM.NOTIF,t)}}catch(r){console.error(`RestAPI::PushStream::NotifSocket::UserFeeds::Error - Error handling event: ${r}, Data: ${JSON.stringify(e)}`)}})),this.pushNotificationSocket.on(s.EVENTS.USER_SPAM_FEEDS,(e=>{try{const t=c.DataModifier.mapToNotificationEvent(e,s.NotificationEventType.SPAM,this.account===e.sender?"self":"other",this.raw);t.origin=this.account===t.from?"self":"other",this.shouldEmitChannel(t.from)&&_(s.STREAM.NOTIF)&&this.emit(s.STREAM.NOTIF,t)}catch(t){console.error("Error handling USER_SPAM_FEEDS event:",t,"Data:",e)}}))),this.disconnected=!1}))})()}))}))}connected(){return console.log(`RestAPI::PushStream::connected::Notification Socket Connected: ${this.notifSocketConnected}`),console.log(`RestAPI::PushStream::connected::Chat Socket Connected: ${this.chatSocketConnected}`),this.notifSocketConnected||this.chatSocketConnected}disconnect(){return n.__awaiter(this,void 0,void 0,(function*(){this.pushChatSocket&&this.chatSocketConnected&&(this.pushChatSocket.disconnect(),console.log("RestAPI::PushStream::disconnect::Push chat socket disconnected.")),this.pushNotificationSocket&&this.notifSocketConnected&&(this.pushNotificationSocket.disconnect(),console.log("RestAPI::PushStream::disconnect::Push notification socket disconnected."))}))}info(){return{options:this.options,listen:this.listen}}shouldEmitChat(e){var t;return!((null===(t=this.options.filter)||void 0===t?void 0:t.chats)&&0!==this.options.filter.chats.length&&!this.options.filter.chats.includes("*"))||this.options.filter.chats.includes(e)}shouldEmitSpace(e){var t;return!((null===(t=this.options.filter)||void 0===t?void 0:t.spaces)&&0!==this.options.filter.spaces.length&&!this.options.filter.spaces.includes("*"))||this.options.filter.spaces.includes(e)}shouldEmitChannel(e){var t;return!((null===(t=this.options.filter)||void 0===t?void 0:t.channels)&&0!==this.options.filter.channels.length&&!this.options.filter.channels.includes("*"))||this.options.filter.channels.includes(e)}shouldEmitVideo(e){var t;return!((null===(t=this.options.filter)||void 0===t?void 0:t.video)&&0!==this.options.filter.video.length&&!this.options.filter.video.includes("*"))||this.options.filter.video.includes(e)}}t.PushStream=p},416062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=t.NOTIFICATION=t.ProposedEventNames=t.VideoEventType=t.SpaceEventType=t.GroupEventType=t.MessageEventType=t.MessageOrigin=t.NotificationEventType=t.STREAM=void 0,function(e){e.PROFILE="STREAM.PROFILE",e.ENCRYPTION="STREAM.ENCRYPTION",e.NOTIF="STREAM.NOTIF",e.NOTIF_OPS="STREAM.NOTIF_OPS",e.CHAT="STREAM.CHAT",e.CHAT_OPS="STREAM.CHAT_OPS",e.SPACE="STREAM.SPACE",e.SPACE_OPS="STREAM.SPACE_OPS",e.VIDEO="STREAM.VIDEO",e.CONNECT="STREAM.CONNECT",e.DISCONNECT="STREAM.DISCONNECT"}(t.STREAM||(t.STREAM={})),function(e){e.INBOX="notification.inbox",e.SPAM="notification.spam"}(t.NotificationEventType||(t.NotificationEventType={})),function(e){e.Other="other",e.Self="self"}(t.MessageOrigin||(t.MessageOrigin={})),function(e){e.Message="message",e.Request="request",e.Accept="accept",e.Reject="reject"}(t.MessageEventType||(t.MessageEventType={})),function(e){e.CreateGroup="createGroup",e.UpdateGroup="updateGroup",e.JoinGroup="joinGroup",e.LeaveGroup="leaveGroup",e.Remove="remove",e.RoleChange="roleChange"}(t.GroupEventType||(t.GroupEventType={})),function(e){e.CreateSpace="createSpace",e.UpdateSpace="updateSpace",e.Join="joinSpace",e.Leave="leaveSpace",e.Remove="remove",e.Stop="stop",e.Start="start"}(t.SpaceEventType||(t.SpaceEventType={})),function(e){e.REQUEST="video.request",e.APPROVE="video.approve",e.DENY="video.deny",e.CONNECT="video.connect",e.DISCONNECT="video.disconnect",e.RETRY_REQUEST="video.retry.request",e.RETRY_APPROVE="video.retry.approve"}(t.VideoEventType||(t.VideoEventType={})),function(e){e.Message="chat.message",e.Request="chat.request",e.Accept="chat.accept",e.Reject="chat.reject",e.LeaveGroup="chat.group.participant.leave",e.JoinGroup="chat.group.participant.join",e.CreateGroup="chat.group.create",e.UpdateGroup="chat.group.update",e.Remove="chat.group.participant.remove",e.RoleChange="chat.group.participant.role",e.CreateSpace="space.create",e.UpdateSpace="space.update",e.SpaceRequest="space.request",e.SpaceAccept="space.accept",e.SpaceReject="space.reject",e.LeaveSpace="space.participant.leave",e.JoinSpace="space.participant.join",e.SpaceRemove="space.participant.remove",e.StartSpace="space.start",e.StopSpace="space.stop"}(t.ProposedEventNames||(t.ProposedEventNames={})),t.NOTIFICATION={TYPE:{BROADCAST:1,TARGETTED:3,SUBSET:4}},function(e){e.CONNECT="connect",e.DISCONNECT="disconnect",e.USER_FEEDS="userFeeds",e.USER_SPAM_FEEDS="userSpamFeeds",e.CHAT_RECEIVED_MESSAGE="CHATS",e.CHAT_GROUPS="CHAT_GROUPS"}(t.EVENTS||(t.EVENTS={}))},967149:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSocketConnection=void 0;const n=r(331635),i=r(538007),o=r(746290),a=r(795924);t.createSocketConnection=function({user:e,env:t,socketType:r="notification",socketOptions:s}){return n.__awaiter(this,void 0,void 0,(function*(){const{autoConnect:n=!0,reconnectionAttempts:c=5,reconnectionDelay:u,reconnectionDelayMax:l}=s||{};let d=o.API_BASE_URL[t];d.endsWith("/apis")&&(d=d.substring(0,d.length-5));const f=["websocket"];let h=null;try{const o="chat"===r?(0,a.walletToPCAIP10)(e):yield(0,a.getCAIPAddress)(t,e,"User"),s="notification"===r?{address:o}:{mode:"chat",did:o};h=(0,i.io)(d,Object.assign(Object.assign({transports:f,query:s,autoConnect:n,reconnectionAttempts:c},void 0!==u&&{reconnectionDelay:u}),void 0!==l&&{reconnectionDelayMax:l}))}catch(p){console.error("[PUSH-SDK] - Socket connection error: ",p)}return h}))}},459657:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Space=t.initSpaceData=t.initSpaceSpecificData=t.initLiveSpaceData=void 0;const n=r(331635),i=r(389407),o=r(397067),a=r(574338),s=r(995954),c=r(53283),u=r(296075),l=r(822723),d=r(894793),f=r(149370),h=r(481058),p=r(785081),g=r(286426),m=r(348909),y=r(172151),b=r(988684),v=r(578783),w=r(585593),A=r(839567),C=r(899024),E=r(773773),x=r(444163),S=r(83790),I=r(19701),k=r(899229),_=r(521058),T=r(795924);t.initLiveSpaceData={host:{address:"",audio:null,emojiReactions:null},coHosts:[],speakers:[],listeners:[]},t.initSpaceSpecificData={members:[],pendingMembers:[],contractAddressERC20:null,numberOfERC20:-1,contractAddressNFT:null,numberOfNFTTokens:-1,verificationProof:"",spaceImage:null,spaceName:"",isPublic:!1,spaceDescription:"",spaceCreator:"",spaceId:"",scheduleAt:null,scheduleEnd:null,status:null,inviteeDetails:{},liveSpaceData:t.initLiveSpaceData},t.initSpaceData=Object.assign(Object.assign({},t.initSpaceSpecificData),{connectionData:a.initVideoCallData});class M extends a.Video{constructor(e){const{signer:r,pgpPrivateKey:a,address:M,chainId:P,env:j=o.default.ENV.PROD,setSpaceData:D}=e||{};super({signer:r,chainId:P,pgpPrivateKey:a,env:j,callType:E.VIDEO_CALL_TYPE.PUSH_SPACE,onReceiveStream:(e,t,r)=>n.__awaiter(this,void 0,void 0,(function*(){var n;if(this.spaceSpecificData.status===C.ChatStatus.ACTIVE&&(null===(n=this.data.meta.broadcast)||void 0===n?void 0:n.hostAddress)&&this.data.meta.broadcast.hostAddress===this.data.local.address){(0,A.default)(this.mergedStream,e);const n=(0,i.produce)(this.spaceSpecificData.liveSpaceData,(e=>{const n=this.spaceSpecificData.liveSpaceData.listeners.findIndex((e=>e.address===t));e.speakers.push({address:t,audio:r,emojiReactions:n>-1?this.spaceSpecificData.liveSpaceData.listeners[n].emojiReactions:null}),n>-1&&e.listeners.splice(n,1)}));this.setSpaceSpecificData((()=>Object.assign(Object.assign({},this.spaceSpecificData),{liveSpaceData:n}))),yield(0,x.default)({liveSpaceData:n,pgpPrivateKey:this.pgpPrivateKey,env:this.env,spaceId:this.spaceSpecificData.spaceId,signer:this.signer,action:S.CHAT.META.GROUP.ADMIN.PRVILEGE})}})),setData:function(){}}),this.mergedStream=null,this.initialize=w.initialize,this.update=s.update,this.createAudioStream=()=>n.__awaiter(this,void 0,void 0,(function*(){yield this.create({audio:!0,video:!1})})),this.start=c.start,this.onReceiveMetaMessage=k.onReceiveMetaMessage,this.onJoinListener=_.onJoinListener,this.inviteToPromote=u.inviteToPromote,this.acceptPromotionInvite=l.acceptPromotionInvite,this.connectInvitee=d.connectInvitee,this.rejectPromotionInvite=f.rejectPromotionInvite,this.requestToBePromoted=h.requestToBePromoted,this.broadcastRaisedHand=I.broadcastRaisedHand,this.acceptPromotionRequest=p.acceptPromotionRequest,this.connectPromotor=m.connectPromotor,this.rejectPromotionRequest=g.rejectPromotionRequest,this.join=y.join,this.leave=b.leave,this.stop=v.stop,this.setData=function(e){const t=e(this.data);D((()=>Object.assign(Object.assign({},this.spaceSpecificData),{connectionData:t}))),this.data=t},this.setSpaceSpecificData=function(e){const t=e(this.spaceSpecificData);D((()=>Object.assign(Object.assign({},t),{connectionData:this.data}))),this.spaceSpecificData=t},this.setSpaceData=function(e){const t=e(Object.assign(Object.assign({},this.spaceSpecificData),{connectionData:this.data})),{connectionData:r}=t,i=n.__rest(t,["connectionData"]);this.spaceSpecificData=i,this.setData((()=>r))},this.setData((e=>(0,i.produce)(e,(e=>{e.local.address=(0,T.pCAIP10ToWallet)(M)})))),D((()=>t.initSpaceData)),this.spaceSpecificData=t.initSpaceSpecificData}}t.Space=M,t.default=M},442097:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SpaceV2=void 0;const n=r(331635),i=r(773773);t.SpaceV2=class{constructor({spaceV1Instance:e,spaceInfo:t}){this.spaceV1Instance=e,this.spaceInfo=t}start(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.start()}))}join(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.join()}))}update(e){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.update(e)}))}leave(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.leave()}))}stop(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.stop()}))}requestForMic(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.requestToBePromoted({role:i.SPACE_INVITE_ROLES.SPEAKER,promotorAddress:this.spaceInfo.spaceCreator})}))}acceptMicRequest({address:e,signal:t}){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.acceptPromotionRequest({promoteeAddress:e,spaceId:this.spaceInfo.spaceId,role:i.SPACE_INVITE_ROLES.SPEAKER,signalData:t})}))}rejectMicRequest({address:e}){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.rejectPromotionRequest({promoteeAddress:e})}))}inviteToPromote({address:e}){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.inviteToPromote({inviteeAddress:e,role:i.SPACE_INVITE_ROLES.SPEAKER})}))}acceptPromotionInvite({signal:e}){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.acceptPromotionInvite({invitorAddress:this.spaceInfo.spaceCreator,spaceId:this.spaceInfo.spaceId,signalData:e})}))}rejectPromotionInvite(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.rejectPromotionInvite({invitorAddress:this.spaceInfo.spaceCreator})}))}config({audio:e}){"boolean"==typeof e&&this.spaceV1Instance.enableAudio({state:e})}}},822723:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.acceptPromotionInvite=void 0;const n=r(331635),i=r(773773);t.acceptPromotionInvite=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{signalData:t,invitorAddress:r,spaceId:n}=e||{};this.acceptRequest({signalData:t,senderAddress:this.data.local.address,recipientAddress:r,chatId:n,details:{type:i.SPACE_ACCEPT_REQUEST_TYPE.ACCEPT_INVITE,data:{}}})}))}},785081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.acceptPromotionRequest=void 0;const n=r(331635),i=r(389407),o=r(468786),a=r(444163),s=r(795924),c=r(899024);t.acceptPromotionRequest=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{signalData:t,promoteeAddress:r,spaceId:n,role:u}=e||{};yield(0,o.addSpeakers)({spaceId:this.spaceSpecificData.spaceId,signer:this.signer,pgpPrivateKey:this.pgpPrivateKey,speakers:[(0,s.pCAIP10ToWallet)(r)],env:this.env});const l=(0,i.produce)(this.spaceSpecificData.liveSpaceData,(e=>{const t=this.spaceSpecificData.liveSpaceData.listeners.findIndex((e=>(0,s.pCAIP10ToWallet)(e.address)===(0,s.pCAIP10ToWallet)(r)));e.listeners.splice(t,1),e.speakers.push({address:(0,s.pCAIP10ToWallet)(r),emojiReactions:null,audio:null})}));yield(0,a.default)({spaceId:this.spaceSpecificData.spaceId,pgpPrivateKey:this.pgpPrivateKey,env:this.env,signer:this.signer,liveSpaceData:l,action:c.CHAT.META.SPACE.SPEAKER.PRVILEGE})}))}},608263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addListeners=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(804991);t.addListeners=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{spaceId:r,listeners:n,account:s=null,signer:c=null,env:u=i.default.ENV.PROD,pgpPrivateKey:l=null}=e||{};try{const e=yield(0,a.addMembers)({chatId:r,members:n,account:s,signer:c,env:u,pgpPrivateKey:l});return(0,o.groupDtoToSpaceDtoV2)(e,u)}catch(d){throw console.error(`[Push SDK] - API - Error - API ${t.addListeners.name} -: `,d),Error(`[Push SDK] - API - Error - API ${t.addListeners.name} -: ${d}`)}}))},468786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addSpeakers=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(559190);t.addSpeakers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){var t,r;const{spaceId:n,speakers:s,signer:c=null,env:u=(null!==(t=null==e?void 0:e.env)&&void 0!==t?t:i.default.ENV.PROD),pgpPrivateKey:l=(null!==(r=null==e?void 0:e.pgpPrivateKey)&&void 0!==r?r:null)}=e,d=yield(0,a.addAdmins)({chatId:n,admins:s,signer:c,env:u,pgpPrivateKey:l});return(0,o.groupDtoToSpaceDtoV2)(d,u)}))},415714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.approve=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(665447);t.approve=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{status:r="Approved",account:n=null,signer:s=null,senderAddress:c,env:u=o.default.ENV.PROD,pgpPrivateKey:l=null}=e||{};try{if(null==n&&null==s)throw new Error("At least one from account or signer is necessary!");if(!(0,i.isValidPushCAIP)(c)&&!c.startsWith("spaces:"))throw new Error("Not a valid spaceId or ETH address");return yield(0,a.approve)({status:r,account:n,signer:s,senderAddress:c,env:u,pgpPrivateKey:l})}catch(d){throw console.error(`[Push SDK] - API - Error - API ${t.approve.name} -: `,d),Error(`[Push SDK] - API - Error - API ${t.approve.name} -: ${d}`)}}))},19701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcastRaisedHand=void 0;const n=r(331635),i=r(389407),o=r(444163),a=r(83790),s=r(795924);t.broadcastRaisedHand=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{promoteeAddress:t}=e||{},r=(0,i.produce)(this.spaceSpecificData.liveSpaceData,(e=>{const r=this.spaceSpecificData.liveSpaceData.listeners.findIndex((e=>(0,s.pCAIP10ToWallet)(e.address)===(0,s.pCAIP10ToWallet)(t)));-1!==r&&(e.listeners[r].handRaised=!0)}));this.setSpaceSpecificData((()=>Object.assign(Object.assign({},this.spaceSpecificData),{liveSpaceData:r}))),yield(0,o.default)({liveSpaceData:r,pgpPrivateKey:this.pgpPrivateKey,env:this.env,spaceId:this.spaceSpecificData.spaceId,signer:this.signer,action:a.CHAT.META.GROUP.USER.INTERACTION})}))}},894793:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectInvitee=void 0;const n=r(331635),i=r(389407),o=r(468786);t.connectInvitee=function(e){var t;return n.__awaiter(this,void 0,void 0,(function*(){const{signalData:r,inviteeAddress:n}=e||{};if(!(null===(t=this.spaceSpecificData)||void 0===t?void 0:t.inviteeDetails)||!Object.keys(this.spaceSpecificData.inviteeDetails).includes(n))return Promise.resolve();this.spaceSpecificData.inviteeDetails[n];this.setSpaceSpecificData((e=>(0,i.produce)(e,(e=>{e.inviteeDetails&&delete e.inviteeDetails[n]})))),yield(0,o.addSpeakers)({spaceId:this.spaceSpecificData.spaceId,signer:this.signer,pgpPrivateKey:this.pgpPrivateKey,speakers:[n]}),this.connect({signalData:r,peerAddress:n})}))}},348909:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectPromotor=void 0;const n=r(331635);t.connectPromotor=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{signalData:t,promotorAddress:r}=e||{};this.connect({signalData:t,peerAddress:r})}))}},884939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(84590);t.create=function e(t){return n.__awaiter(this,void 0,void 0,(function*(){const{signer:r,spaceName:n,spaceDescription:s,listeners:c,spaceImage:u,speakers:l,isPublic:d,contractAddressNFT:f,numberOfNFTs:h,contractAddressERC20:p,numberOfERC20:g,env:m=i.default.ENV.PROD,pgpPrivateKey:y=null,scheduleAt:b,scheduleEnd:v,rules:w}=t||{},A=w?(0,o.convertSpaceRulesToRules)(w):null;try{const e=yield(0,a.createGroup)({signer:r,groupName:n,groupDescription:s,members:c,groupImage:u,admins:l,isPublic:d,contractAddressNFT:f,numberOfNFTs:h,contractAddressERC20:p,numberOfERC20:g,env:m,pgpPrivateKey:y,groupType:"spaces",scheduleAt:b,scheduleEnd:v,rules:A});return(0,o.groupDtoToSpaceDto)(e)}catch(C){throw console.error(`[Push SDK] - API - Error - API ${e.name} -: `,C),Error(`[Push SDK] - API - Error - API ${e.name} -: ${C}`)}}))}},661947:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createV2=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(585101);t.createV2=function e(t){var r;return n.__awaiter(this,void 0,void 0,(function*(){const{signer:n,spaceName:s,spaceDescription:c,listeners:u,spaceImage:l,speakers:d,isPublic:f,env:h=i.default.ENV.PROD,pgpPrivateKey:p=null,rules:g,config:m}=t||{},y=g?(0,o.convertSpaceRulesToRules)(g):null;try{const e=yield(0,a.createGroupV2)({signer:n,groupName:s,groupDescription:c,members:u,groupImage:l,admins:d,isPublic:f,env:h,pgpPrivateKey:p,groupType:"spaces",config:{meta:null,scheduleAt:m.scheduleAt,scheduleEnd:null!==(r=m.scheduleEnd)&&void 0!==r?r:null,status:"PENDING"},rules:y});return(0,o.groupInfoDtoToSpaceInfoDto)(e)}catch(b){throw console.error(`[Push SDK] - API - Error - API ${e.name} -: `,b),new Error(`[Push SDK] - API - Error - API ${e.name} -: ${b}`)}}))}},62715:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.get=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(61638);t.get=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{spaceId:r,env:n=i.default.ENV.PROD}=e||{};try{if(null==r||0==r.length)throw new Error("spaceId cannot be null or empty");const e=yield(0,a.getGroup)({chatId:r,env:n});return(0,o.groupDtoToSpaceDto)(e)}catch(s){throw console.error(`[Push SDK] - API - Error - API ${t.get.name} -: `,s),Error(`[Push SDK] - API - Error - API ${t.get.name} -: ${s}`)}}))},572289:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAccess=void 0;const n=r(331635),i=r(397067),o=r(585101);t.getAccess=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{spaceId:r,did:n,env:a=i.default.ENV.PROD}=e||{};try{if(null==r||0===r.length)throw new Error("spaceId cannot be null or empty");if(null==n||0===n.length)throw new Error("did cannot be null or empty");const e=yield(0,o.getGroupAccess)({chatId:r,did:n,env:a});return(0,o.groupAccessToSpaceAccess)(e)}catch(s){throw console.error(`[Push SDK] - API - Error - API ${t.getAccess.name} -: `,s),Error(`[Push SDK] - API - Error - API ${t.getAccess.name} -: ${s}`)}}))},839567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=(e,t)=>{e.addStream(t,void 0)}},412277:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(331635),i=r(585101),o=r(397067),a=r(459657);t.default=({localAddress:e,spaceId:t,pgpPrivateKey:r,env:s})=>n.__awaiter(void 0,void 0,void 0,(function*(){var n,c;const u=(yield(0,i.conversationHash)({account:e,conversationId:t,env:s})).threadHash;let l=a.initLiveSpaceData;const d=yield(0,i.history)({threadhash:u,account:e,pgpPrivateKey:r,toDecrypt:!0,env:s});let f=null;for(const e of d)if(e.messageType===o.MessageType.META&&"object"==typeof e.messageObj&&null!==e.messageObj){f=e;break}return null!==f&&"object"==typeof f.messageObj&&null!==f.messageObj&&(l=null===(c=null===(n=f.messageObj)||void 0===n?void 0:n.info)||void 0===c?void 0:c.arbitrary),l}))},83621:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>e.replace("eip155:","")},444163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(331635),i=r(585101),o=r(397067);t.default=({liveSpaceData:e,action:t,spaceId:r,pgpPrivateKey:a,signer:s,env:c})=>n.__awaiter(void 0,void 0,void 0,(function*(){yield(0,i.send)({receiverAddress:r,pgpPrivateKey:a,env:c,signer:s,messageType:o.MessageType.META,messageObj:{content:t,info:{affected:[],arbitrary:e}}})}))},200635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.space=void 0;const n=r(331635);n.__exportStar(r(83621),t),n.__exportStar(r(677388),t),n.__exportStar(r(173794),t),n.__exportStar(r(62715),t),n.__exportStar(r(632179),t),n.__exportStar(r(884939),t),n.__exportStar(r(794625),t),n.__exportStar(r(468786),t),n.__exportStar(r(495473),t),n.__exportStar(r(608263),t),n.__exportStar(r(640738),t),n.__exportStar(r(415714),t),n.__exportStar(r(596025),t),n.__exportStar(r(572289),t),n.__exportStar(r(377971),t),n.__exportStar(r(661947),t);var i=r(363025);Object.defineProperty(t,"space",{enumerable:!0,get:function(){return i.spaceFeed}}),n.__exportStar(r(459657),t)},632179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.info=void 0;const n=r(331635),i=r(813951),o=r(61638),a=r(397067);t.info=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{spaceId:r,env:n=a.default.ENV.PROD}=e||{};try{if(null==r||0==r.length)throw new Error("spaceId cannot be null or empty");const e=yield(0,o.getGroup)({chatId:r,env:n});return(0,i.groupDtoToSpaceDto)(e)}catch(s){throw console.error(`[Push SDK] - API - Error - API ${t.info.name} -: `,s),Error(`[Push SDK] - API - Error - API ${t.info.name} -: ${s}`)}}))},585593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initialize=void 0;const n=r(331635),i=r(899024),o=r(62715),a=r(412277);t.initialize=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{spaceId:t}=e||{},r=yield(0,o.get)({spaceId:t,env:this.env});let n=this.spaceSpecificData.liveSpaceData;r.status===i.ChatStatus.ACTIVE&&(n=yield(0,a.default)({localAddress:this.data.local.address,spaceId:t,pgpPrivateKey:this.pgpPrivateKey,env:this.env})),this.setSpaceSpecificData((()=>Object.assign(Object.assign({},r),{liveSpaceData:n})))}))}},296075:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inviteToPromote=void 0;const n=r(331635),i=r(389407),o=r(773773);t.inviteToPromote=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{inviteeAddress:t,role:r}=e||{};this.setSpaceSpecificData((e=>(0,i.produce)(e,(e=>{e.inviteeDetails&&(e.inviteeDetails[t]=r)})))),this.request({senderAddress:this.data.local.address,recipientAddress:t,chatId:this.spaceSpecificData.spaceId,details:{type:o.SPACE_REQUEST_TYPE.INVITE_TO_PROMOTE,data:{role:r}}})}))}},172151:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.join=void 0;const n=r(331635),i=r(773773),o=r(899024),a=r(415714),s=r(62715),c=r(503892),u=r(83621);t.join=function e(){return n.__awaiter(this,void 0,void 0,(function*(){try{const e=yield(0,s.get)({spaceId:this.spaceSpecificData.spaceId,env:this.env});if(e.status!==o.ChatStatus.ACTIVE)throw new Error("Space not active yet");let t=!1,r=!1;const n=(0,u.default)(this.data.local.address);e.members.forEach((e=>{(0,u.default)(e.wallet)===n&&(e.isSpeaker?t=!0:r=!0)}));let l=!1;e.pendingMembers.forEach((e=>{(0,u.default)(e.wallet)===n&&e.isSpeaker&&(l=!0)}));const d=(0,u.default)(e.spaceCreator),f=(0,c.default)(this.data.incoming,d);if((t||l)&&f>-1)return Promise.resolve();t||r||(yield(0,a.approve)({signer:this.signer,pgpPrivateKey:this.pgpPrivateKey,senderAddress:this.spaceSpecificData.spaceId,env:this.env})),(t||l)&&(!this.data.local.stream&&(yield this.create({audio:!0,video:!1})),yield this.request({senderAddress:this.data.local.address,recipientAddress:d,chatId:this.spaceSpecificData.spaceId,details:{type:i.SPACE_REQUEST_TYPE.JOIN_SPEAKER,data:{}}}));const h=yield(0,s.get)({spaceId:this.spaceSpecificData.spaceId,env:this.env});this.setSpaceSpecificData((()=>Object.assign(Object.assign({},h),{liveSpaceData:this.spaceSpecificData.liveSpaceData})))}catch(t){throw console.error(`[Push SDK] - API - Error - API ${e.name} -: `,t),Error(`[Push SDK] - API - Error - API ${e.name} -: ${t}`)}}))}},988684:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.leave=void 0;const n=r(331635),i=r(773773);t.leave=function(){return n.__awaiter(this,void 0,void 0,(function*(){try{this.data.incoming.slice(1).forEach((({address:e})=>{this.disconnect({peerAddress:e,details:{type:i.SPACE_DISCONNECT_TYPE.LEAVE,data:{}}})}))}catch(e){throw console.error(`[Push SDK] - API - Error - API ${stop.name} -: `,e),Error(`[Push SDK] - API - Error - API ${stop.name} -: ${e}`)}}))}},521058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onJoinListener=void 0;const n=r(331635),i=r(444163),o=r(62715),a=r(795924),s=r(389407),c=r(83790);t.onJoinListener=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{receivedAddress:t}=e||{};if((0,a.pCAIP10ToWallet)(this.spaceSpecificData.spaceCreator)!==this.data.local.address)return;if(!(yield(0,o.get)({spaceId:this.spaceSpecificData.spaceId,env:this.env})).members.find((e=>(0,a.pCAIP10ToWallet)(e.wallet)===(0,a.pCAIP10ToWallet)(t)&&!e.isSpeaker)))return;const r=(0,s.produce)(this.spaceSpecificData.liveSpaceData,(e=>{this.spaceSpecificData.liveSpaceData.listeners.find((e=>(0,a.pCAIP10ToWallet)(e.address)===(0,a.pCAIP10ToWallet)(t)))||e.listeners.push({address:(0,a.pCAIP10ToWallet)(t),handRaised:!1,emojiReactions:null})}));this.setSpaceSpecificData((()=>Object.assign(Object.assign({},this.spaceSpecificData),{liveSpaceData:r}))),yield(0,i.default)({spaceId:this.spaceSpecificData.spaceId,pgpPrivateKey:this.pgpPrivateKey,env:this.env,signer:this.signer,liveSpaceData:r,action:c.CHAT.META.SPACE.LISTENER.ADD})}))}},899229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onReceiveMetaMessage=void 0;const n=r(397067);t.onReceiveMetaMessage=function(e){var t,r;const{receivedMetaMessage:i}=e||{};if(i.messageType!==n.MessageType.META||"object"!=typeof i.messageObj||!(null===(r=null===(t=null==i?void 0:i.messageObj)||void 0===t?void 0:t.info)||void 0===r?void 0:r.arbitrary))return;const o=i.messageObj.info.arbitrary;this.setSpaceSpecificData((()=>Object.assign(Object.assign({},this.spaceSpecificData),{liveSpaceData:o})))}},149370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rejectPromotionInvite=void 0;const n=r(331635);t.rejectPromotionInvite=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{invitorAddress:t}=e||{};this.disconnect({peerAddress:t})}))}},286426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rejectPromotionRequest=void 0;const n=r(331635),i=r(389407),o=r(444163),a=r(83790),s=r(795924);t.rejectPromotionRequest=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{promoteeAddress:t}=e||{};this.disconnect({peerAddress:(0,s.pCAIP10ToWallet)(t)});const r=(0,i.produce)(this.spaceSpecificData.liveSpaceData,(e=>{const r=this.spaceSpecificData.liveSpaceData.listeners.findIndex((e=>e.address===(0,s.pCAIP10ToWallet)(t)));r>-1&&(e.listeners[r].handRaised=!1)}));this.setSpaceSpecificData((()=>Object.assign(Object.assign({},this.spaceSpecificData),{liveSpaceData:r}))),yield(0,o.default)({liveSpaceData:r,pgpPrivateKey:this.pgpPrivateKey,env:this.env,spaceId:this.spaceSpecificData.spaceId,signer:this.signer,action:a.CHAT.META.GROUP.USER.INTERACTION})}))}},640738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeListeners=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(245374);t.removeListeners=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{spaceId:r,listeners:n,account:s=null,signer:c=null,env:u=i.default.ENV.PROD,pgpPrivateKey:l=null}=e||{};try{const e=yield(0,a.removeMembers)({chatId:r,members:n,account:s,signer:c,env:u,pgpPrivateKey:l});return(0,o.groupDtoToSpaceDtoV2)(e,u)}catch(d){throw console.error(`[Push SDK] - API - Error - API ${t.removeListeners.name} -: `,d),Error(`[Push SDK] - API - Error - API ${t.removeListeners.name} -: ${d}`)}}))},495473:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeSpeakers=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(63601);t.removeSpeakers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{spaceId:r,speakers:n,signer:s=null,env:c=i.default.ENV.PROD,pgpPrivateKey:u=null}=e||{};try{const e=yield(0,a.removeAdmins)({chatId:r,admins:n,signer:s,env:c,pgpPrivateKey:u});return(0,o.groupDtoToSpaceDtoV2)(e,c)}catch(l){throw console.error(`[Push SDK] - API - Error - API ${t.removeSpeakers.name} -: `,l),Error(`[Push SDK] - API - Error - API ${t.removeSpeakers.name} -: ${l}`)}}))},481058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestToBePromoted=void 0;const n=r(331635),i=r(795924),o=r(773773);t.requestToBePromoted=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{role:t,promotorAddress:r}=e||{};this.request({senderAddress:this.data.local.address,recipientAddress:(0,i.pCAIP10ToWallet)(r),chatId:this.spaceSpecificData.spaceId,details:{type:o.SPACE_REQUEST_TYPE.REQUEST_TO_PROMOTE,data:{role:t}}})}))}},596025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requests=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(441786);t.requests=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:r,pgpPrivateKey:n,env:c=o.default.ENV.PROD,toDecrypt:u=!1,page:l=1,limit:d=10}=e||{},f=yield(0,i.convertToValidDID)(r,c),h=`${(0,i.getAPIBaseUrls)(c)}/v1/spaces/users/${f}/requests?page=${l}&limit=${d}`;try{if(!(0,i.isValidPushCAIP)(f))throw new Error("Invalid address!");const e=(yield(0,s.axiosGet)(h)).data.requests;return yield(0,a.getSpaceInboxLists)({lists:e,user:f,toDecrypt:u,pgpPrivateKey:n,env:c})}catch(p){throw console.error(`[Push SDK] - API ${t.requests.name}: `,p),Error(`[Push SDK] - API ${t.requests.name}: ${p}`)}}))},377971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.search=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786);t.search=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{searchTerm:r,pageNumber:n,pageSize:s,env:c=o.default.ENV.PROD}=e||{};try{const e=`${(0,i.getAPIBaseUrls)(c)}/v1/spaces/search`;return(0,a.axiosPost)(e,{searchTerm:r,pageNumber:n,pageSize:s}).then((e=>e.data)).catch((e=>{var t,r;if(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)throw new Error(null===(r=null==e?void 0:e.response)||void 0===r?void 0:r.data);throw new Error(e)}))}catch(u){throw console.error(`[Push SDK] - API - Error - API ${t.search.name} -: `,u),Error(`[Push SDK] - API - Error - API ${t.search.name} -: ${u}`)}}))},363025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spaceFeed=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(441786);t.spaceFeed=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:r,pgpPrivateKey:n,env:c=o.default.ENV.PROD,toDecrypt:u=!1,recipient:l}=e||{},d=yield(0,i.convertToValidDID)(r,c),f=yield(0,i.convertToValidDID)(l,c);if(!(0,i.isValidPushCAIP)(d))throw new Error(`Invalid address ${d}`);const h=`${(0,i.getAPIBaseUrls)(c)}/v1/spaces/users/${d}/space/${f}`;try{const e=(yield(0,s.axiosGet)(h)).data;if(0!==Object.keys(e).length){const[t]=yield(0,a.getSpaceInboxLists)({lists:[e],user:d,toDecrypt:u,pgpPrivateKey:n,env:c});return t}return e}catch(p){throw console.error(`[Push SDK] - API ${t.spaceFeed.name}: `,p),Error(`[Push SDK] - API ${t.spaceFeed.name}: ${p}`)}}))},677388:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spaces=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(441786);t.spaces=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:r,pgpPrivateKey:n,env:c=o.default.ENV.PROD,page:u=1,limit:l=10}=e||{};if(!(0,i.isValidPushCAIP)(r))throw new Error("Invalid address!");const d=yield(0,i.convertToValidDID)(r,c),f=`${`${(0,i.getAPIBaseUrls)(c)}/v1/spaces/users/${d}/spaces?page=${u}&limit=${l}`}`;try{const e=!1,t=(yield(0,s.axiosGet)(f)).data.spaces;return yield(0,a.getSpaceInboxLists)({lists:t,user:d,toDecrypt:e,pgpPrivateKey:n,env:c})}catch(h){throw console.error(`[Push SDK] - API ${t.spaces.name}: `,h),Error(`[Push SDK] - API ${t.spaces.name}: ${h}`)}}))},53283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.start=void 0;const n=r(331635),i=r(899024),o=r(813951),a=r(62715),s=r(681089),c=r(389407),u=r(795924),l=r(83790),d=r(444163);t.start=function e(){return n.__awaiter(this,void 0,void 0,(function*(){try{!this.data.local.stream&&(yield this.create({audio:!0,video:!1}));const e=yield(0,a.get)({spaceId:this.spaceSpecificData.spaceId,env:this.env});if(e.status!==i.ChatStatus.PENDING)throw new Error("Unable to start the space as it is not in the pending state");if(this.data.local.address!==(0,u.pCAIP10ToWallet)(e.spaceCreator))throw new Error("Only host is allowed to start a space");const t=(0,o.getSpacesMembersList)(e.members,e.pendingMembers),r=(0,o.getSpaceAdminsList)(e.members,e.pendingMembers),n=yield(0,s.updateGroup)({chatId:this.spaceSpecificData.spaceId,groupName:e.spaceName,groupImage:e.spaceImage,groupDescription:e.spaceDescription,members:t,admins:r,signer:this.signer,env:this.env,pgpPrivateKey:this.pgpPrivateKey,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:i.ChatStatus.ACTIVE}),f={host:{address:this.data.local.address,audio:this.data.local.audio,emojiReactions:null},coHosts:[],speakers:[],listeners:[]};yield(0,d.default)({liveSpaceData:f,action:l.CHAT.META.SPACE.CREATE,spaceId:this.spaceSpecificData.spaceId,signer:this.signer,pgpPrivateKey:this.pgpPrivateKey,env:this.env}),this.setSpaceData((e=>(0,c.produce)(e,(e=>{(e=Object.assign(Object.assign({},(0,o.groupDtoToSpaceDto)(n)),{liveSpaceData:f,connectionData:e.connectionData})).connectionData.meta.broadcast={livepeerInfo:null,hostAddress:this.data.local.address}}))))}catch(t){throw console.error(`[Push SDK] - API - Error - API ${e.name} -: `,t),Error(`[Push SDK] - API - Error - API ${e.name} -: ${t}`)}}))}},578783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stop=void 0;const n=r(331635),i=r(813951),o=r(681089),a=r(62715),s=r(899024),c=r(773773);t.stop=function e(){return n.__awaiter(this,void 0,void 0,(function*(){try{const e=yield(0,a.get)({spaceId:this.spaceSpecificData.spaceId,env:this.env});if(e.status===s.ChatStatus.ENDED)throw new Error("Space already ended");const t=(0,i.getSpacesMembersList)(e.members,e.pendingMembers),r=(0,i.getSpaceAdminsList)(e.members,e.pendingMembers),n=yield(0,o.updateGroup)({chatId:this.spaceSpecificData.spaceId,groupName:e.spaceName,groupImage:e.spaceImage,groupDescription:e.spaceDescription,members:t,admins:r,signer:this.signer,env:this.env,pgpPrivateKey:this.pgpPrivateKey,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:s.ChatStatus.ENDED});this.setSpaceSpecificData((()=>Object.assign(Object.assign({},(0,i.groupDtoToSpaceDto)(n)),{liveSpaceData:this.spaceSpecificData.liveSpaceData}))),this.data.incoming.slice(1).forEach((({address:e})=>{this.disconnect({peerAddress:e,details:{type:c.SPACE_DISCONNECT_TYPE.STOP,data:{}}})}))}catch(t){throw console.error(`[Push SDK] - API - Error - API ${e.name} -: `,t),Error(`[Push SDK] - API - Error - API ${e.name} -: ${t}`)}}))}},173794:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trending=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(441786);t.trending=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{env:r=o.default.ENV.PROD,page:n=1,limit:c=10}=e||{},u=`${(0,i.getAPIBaseUrls)(r)}/v1/spaces/trending?page=${n}&limit=${c}`;try{const e=(yield(0,s.axiosGet)(u)).data.spaces;return yield(0,a.getTrendingSpaceInboxLists)({lists:e,env:r})}catch(l){throw console.error(`[Push SDK] - API ${t.trending.name}: `,l),Error(`[Push SDK] - API ${t.trending.name}: ${l}`)}}))},995954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.update=void 0;const n=r(331635),i=r(899024),o=r(813951),a=r(681089),s=r(62715);t.update=function e(t){return n.__awaiter(this,void 0,void 0,(function*(){const{spaceName:r,spaceImage:n,spaceDescription:c,scheduleAt:u,scheduleEnd:l,meta:d}=t||{};try{const e=yield(0,s.get)({spaceId:this.spaceSpecificData.spaceId,env:this.env}),t=(0,o.getSpacesMembersList)(e.members,e.pendingMembers),f=(0,o.getSpaceAdminsList)(e.members,e.pendingMembers);if(e.status===i.ChatStatus.ACTIVE&&u)throw new Error("Unable change the start date/time of an active space");if(e.status===i.ChatStatus.ENDED&&l)throw new Error("Unable change the end date/time of an ended space");const h=yield(0,a.updateGroup)({chatId:this.spaceSpecificData.spaceId,groupName:r||e.spaceName,groupImage:n||e.spaceImage,groupDescription:c||e.spaceDescription,members:t,admins:f,signer:this.signer,env:this.env,pgpPrivateKey:this.pgpPrivateKey,scheduleAt:u||e.scheduleAt,scheduleEnd:l||e.scheduleEnd,meta:d||e.meta});this.setSpaceSpecificData((()=>Object.assign(Object.assign({},(0,o.groupDtoToSpaceDto)(h)),{liveSpaceData:this.spaceSpecificData.liveSpaceData})))}catch(f){throw console.error(`[Push SDK] - API - Error - API ${e.name} -: `,f),Error(`[Push SDK] - API - Error - API ${e.name} -: ${f}`)}}))}},794625:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.update=void 0;const n=r(331635),i=r(397067),o=r(899024),a=r(813951),s=r(681089),c=r(62715);t.update=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{spaceId:r,spaceName:n,spaceImage:u,spaceDescription:l,listeners:d,speakers:f,signer:h,env:p=i.default.ENV.PROD,pgpPrivateKey:g=null,scheduleAt:m,scheduleEnd:y,status:b}=e||{};try{const e=yield(0,c.get)({spaceId:r,env:p});if(e.status===o.ChatStatus.ACTIVE&&m)throw new Error("Unable change the start date/time of an active space");if(e.status===o.ChatStatus.ENDED&&y)throw new Error("Unable change the end date/time of an ended space");const t=yield(0,s.updateGroup)({chatId:r,groupName:n,groupImage:u,groupDescription:l,members:d,admins:f,signer:h,env:p,pgpPrivateKey:g,scheduleAt:m,scheduleEnd:y,status:b});return(0,a.groupDtoToSpaceDto)(t)}catch(v){throw console.error(`[Push SDK] - API - Error - API ${t.update.name} -: `,v),Error(`[Push SDK] - API - Error - API ${t.update.name} -: ${v}`)}}))},899024:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotifictaionType=t.VideoCallStatus=t.GROUP_INVITER_ROLE=t.GROUP_RULES_PERMISSION=t.GROUP_RULES_SUB_CATEGORY=t.GROUP_RULES_CATEGORY=t.ConditionType=t.ChatStatus=void 0;const n=r(331635);n.__exportStar(r(83790),t),n.__exportStar(r(293078),t),function(e){e.ACTIVE="ACTIVE",e.PENDING="PENDING",e.ENDED="ENDED"}(t.ChatStatus||(t.ChatStatus={})),function(e){e.PUSH="PUSH",e.GUILD="GUILD"}(t.ConditionType||(t.ConditionType={})),function(e){e.PUSH="PUSH",e.GUILD="GUILD",e.ERC721="ERC721",e.ERC20="ERC20",e.CUSTOM_ENDPOINT="CustomEndpoint",e.INVITE="INVITE"}(t.GROUP_RULES_CATEGORY||(t.GROUP_RULES_CATEGORY={})),function(e){e.DEFAULT="DEFAULT",e.HOLDER="holder",e.GET="GET"}(t.GROUP_RULES_SUB_CATEGORY||(t.GROUP_RULES_SUB_CATEGORY={})),function(e){e.ENTRY="Entry",e.CHAT="Chat"}(t.GROUP_RULES_PERMISSION||(t.GROUP_RULES_PERMISSION={})),function(e){e.ADMIN="ADMIN",e.OWNER="OWNER"}(t.GROUP_INVITER_ROLE||(t.GROUP_INVITER_ROLE={})),function(e){e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.INITIALIZED=1]="INITIALIZED",e[e.RECEIVED=2]="RECEIVED",e[e.CONNECTED=3]="CONNECTED",e[e.DISCONNECTED=4]="DISCONNECTED",e[e.ENDED=5]="ENDED",e[e.RETRY_INITIALIZED=6]="RETRY_INITIALIZED",e[e.RETRY_RECEIVED=7]="RETRY_RECEIVED"}(t.VideoCallStatus||(t.VideoCallStatus={})),function(e){e[e.BROADCAT=1]="BROADCAT",e[e.TARGETTED=3]="TARGETTED",e[e.SUBSET=4]="SUBSET"}(t.NotifictaionType||(t.NotifictaionType={}))},83790:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHAT=void 0,t.CHAT={META:{GROUP:{CREATE:"CREATE_GROUP",MEMBER:{ADD:"ADD_MEMBER",REMOVE:"REMOVE_MEMBER",PRIVILEGE:"ASSIGN_MEMBER_PRIVILEGE"},ADMIN:{PRVILEGE:"ASSIGN_ADMIN_PRIVILEGE"},UPDATE:"UPDATE_GROUP",PROFILE:{UPDATE:"UPDATE_GROUP_PROFILE"},META:{UPDATE:"UPDATE_GROUP_META"},USER:{INTERACTION:"USER_INTERACTION"}},SPACE:{CREATE:"CREATE_SPACE",LISTENER:{ADD:"ADD_LISTENER",REMOVE:"REMOVE_LISTENER",PRVILEGE:"ASSIGN_LISTENER_PRIVILEGE"},SPEAKER:{PRVILEGE:"ASSIGN_SPEAKER_PRIVILEGE"},COHOST:{PRVILEGE:"ASSIGN_COHOST_PRIVILEGE"}}},REACTION:{THUMBSUP:"\ud83d\udc4d",THUMBSDOWN:"\ud83d\udc4e",HEART:"\u2764\ufe0f",CLAP:"\ud83d\udc4f",LAUGH:"\ud83d\ude02",SAD:"\ud83d\ude22",ANGRY:"\ud83d\ude21",SUPRISE:"\ud83d\ude32",FIRE:"\ud83d\udd25"},RECEIPT:{READ:"READ_RECEIPT"},UA:{LISTENER:{JOIN:"LISTENER_JOIN",LEAVE:"LISTENER_LEAVE",MICREQUEST:"LISTENER_REQUEST_MIC"},SPEAKER:{MIC_ON:"SPEAKER_MIC_ON",MIC_OFF:"SPEAKER_MIC_OFF"}},INTENT:{ACCEPT:"ACCEPT_INTENT",REJECT:"REJECT_INTENT",JOIN:"JOIN_GROUP",LEAVE:"LEAVE_GROUP"}}},293078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},923270:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.authUpdate=void 0;const n=r(331635),i=r(813951),o=r(397067),a=r(795924),s=r(552096),c=r(750539);var u;!function(e){e["x25519-xsalsa20-poly1305"]="PGP_V1",e.aes256GcmHkdfSha256="PGP_V2",e["eip191-aes256-gcm-hkdf-sha256"]="PGP_V3",e["pgpv1:nft"]="NFTPGP_V1"}(u||(u={}));t.authUpdate=e=>n.__awaiter(void 0,void 0,void 0,(function*(){var r;const{pgpPrivateKey:n,pgpEncryptionVersion:l,signer:d,pgpPublicKey:f,account:h=null,env:p=o.default.ENV.PROD,additionalMeta:g,progressHook:m}=e||{};try{const e=(0,i.getWallet)({account:h,signer:d}),t=yield(0,i.getAccountAddress)(e),y=l===o.default.ENCRYPTION_TYPE.NFTPGP_V1;if(!(0,a.isValidPushCAIP)(t))throw new Error("Invalid address!");const b=(0,a.walletToPCAIP10)(t),v=yield(0,c.get)({account:b,env:p});if(!v||!v.encryptedPrivateKey)throw new Error("User not Found!");y?null==m||m(s.default["PUSH-AUTH-UPDATE-05"]):null==m||m(s.default["PUSH-AUTH-UPDATE-01"](u[l]));const w=yield(0,a.preparePGPPublicKey)(l,f,e);y?null==m||m(s.default["PUSH-AUTH-UPDATE-06"]):null==m||m(s.default["PUSH-AUTH-UPDATE-02"](u[l]));const A=yield(0,a.encryptPGPKey)(l,n,e,g);if(l===o.ENCRYPTION_TYPE.NFTPGP_V1){const t=yield(0,a.encryptPGPKey)(o.ENCRYPTION_TYPE.PGP_V3,null===(r=null==g?void 0:g.NFTPGP_V1)||void 0===r?void 0:r.password,e,g);A.encryptedPassword=t}null==m||m(s.default["PUSH-AUTH-UPDATE-03"]);const C={user:v.did,wallet:e,publicKey:w,encryptedPrivateKey:JSON.stringify(A),env:p},E=yield(0,i.authUpdateUserService)(C);return null==m||m(s.default["PUSH-AUTH-UPDATE-04"]),E}catch(y){const e=s.default["PUSH-ERROR-00"];throw null==m||m(e(t.authUpdate.name,y)),Error(`[Push SDK] - API - Error - API ${t.authUpdate.name} -: ${y}`)}}))},599669:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUserCore=t.create=void 0;const n=r(331635),i=r(813951),o=r(397067),a=r(795924),s=r(552096);t.create=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.createUserCore)(e,i.PGPHelper)}));t.createUserCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){var n,c;const u="$0Pc",{env:l=o.default.ENV.PROD,account:d=null,signer:f=null,version:h=o.default.ENC_TYPE_V3,additionalMeta:p={NFTPGP_V1:{password:u+(0,i.generateRandomSecret)(10)}},progressHook:g,origin:m}=e||{};try{if(null==d&&null==f)throw new Error("At least one from account or signer is necessary!");const e=(0,i.getWallet)({account:d,signer:f}),t=yield(0,i.getAccountAddress)(e);if(!(0,a.isValidPushCAIP)(t))throw new Error("Invalid address!");(null===(n=null==p?void 0:p.NFTPGP_V1)||void 0===n?void 0:n.password)&&(0,a.validatePssword)(p.NFTPGP_V1.password);const u=(0,a.walletToPCAIP10)(t);let y=h;(0,a.isValidNFTCAIP)(u)?y=o.default.ENC_TYPE_V4:f||(y=o.default.ENC_TYPE_V1),null==g||g(s.default["PUSH-CREATE-01"]);const b=yield r.generateKeyPair();null==g||g(s.default["PUSH-CREATE-02"]);const v=yield(0,a.preparePGPPublicKey)(y,b.publicKeyArmored,e);null==g||g(s.default["PUSH-CREATE-03"]);const w=yield(0,a.encryptPGPKey)(y,b.privateKeyArmored,e,p);if(y===o.default.ENC_TYPE_V4){const t=yield(0,a.encryptPGPKey)(o.default.ENC_TYPE_V3,null===(c=p.NFTPGP_V1)||void 0===c?void 0:c.password,e,p);w.encryptedPassword=t}null==g||g(s.default["PUSH-CREATE-04"]);const A={user:u,wallet:e,publicKey:v,encryptedPrivateKey:JSON.stringify(w),env:l,origin:m},C=yield(0,i.createUserService)(A);return null==g||g(s.default["PUSH-CREATE-05"]),C.decryptedPrivateKey=b.privateKeyArmored,C}catch(y){const e=s.default["PUSH-ERROR-00"];throw null==g||g(e(t.create.name,y)),Error(`[Push SDK] - API - Error - API ${t.create.name} -: ${y}`)}}))},900608:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUserWithProfile=void 0;const n=r(331635),i=r(599669),o=r(626129),a=r(795924);t.createUserWithProfile=e=>n.__awaiter(void 0,void 0,void 0,(function*(){try{let t=yield(0,i.create)(e);if(e.profile){const r=yield(0,a.decryptPGPKey)({account:t.did,encryptedPGPPrivateKey:t.encryptedPrivateKey,env:e.env,signer:e.signer});t=yield(0,o.profileUpdate)({account:t.did,env:e.env,pgpPrivateKey:r,profile:e.profile})}return t}catch(t){throw new Error(`[Push SDK] - Error in createUserWithProfile -: ${t}`)}}))},241551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decryptAuth=void 0;const n=r(331635),i=r(397067),o=r(795924),a=r(552096);t.decryptAuth=e=>n.__awaiter(void 0,void 0,void 0,(function*(){var r;const{account:n,signer:s,env:c=i.default.ENV.PROD,additionalMeta:u,progressHook:l}=e||{};try{if(!(0,o.isValidNFTCAIP)(n))return null;null==l||l(a.default["PUSH-DECRYPT-AUTH-01"]);const e=yield(0,o.decryptPGPKey)({encryptedPGPPrivateKey:null===(r=null==u?void 0:u.NFTPGP_V1)||void 0===r?void 0:r.encryptedPassword,signer:s,account:n,env:c});return null==l||l(a.default["PUSH-DECRYPT-AUTH-02"]),e}catch(d){throw null==l||l(a.default["PUSH-ERROR-00"](t.decryptAuth.name,d)),Error(`[Push SDK] - API - Error - API ${t.decryptAuth.name} -: ${d}`)}}))},609397:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDelegations=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786);t.getDelegations=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{user:t,env:r=o.default.ENV.PROD}=e||{},n=yield(0,i.getCAIPAddress)(r,t,"User"),s=`${`${(0,i.getAPIBaseUrls)(r)}/v1/users/${n}/delegations`}`;return(0,a.axiosGet)(s).then((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.delegations)||[]})).catch((e=>{console.error(`[EPNS-SDK] - API ${s}: `,e)}))}))},582135:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeeds=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(710644),s=r(441786);t.getFeeds=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{user:t,env:r=o.default.ENV.PROD,page:n=o.default.PAGINATION.INITIAL_PAGE,limit:c=o.default.PAGINATION.LIMIT,spam:u=!1,raw:l=!1}=e||{},d=yield(0,i.getCAIPAddress)(r,t,"User"),f=`${(0,i.getAPIBaseUrls)(r)}/v1/users/${d}/feeds`,h={page:n,limit:(0,i.getLimit)(c),spam:u},p=`${f}?${(0,i.getQueryParams)(h)}`;return(0,s.axiosGet)(p).then((e=>{var t,r;return l?(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.feeds)||[]:(0,a.parseApiResponse)(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.feeds)||[]})).catch((e=>{console.error(`[Push SDK] - API ${p}: `,e)}))}))},493233:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeedsPerChannel=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(710644),s=r(441786);t.getFeedsPerChannel=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{user:t,env:r=o.default.ENV.PROD,page:n=o.default.PAGINATION.INITIAL_PAGE,limit:c=o.default.PAGINATION.LIMIT,spam:u=!1,raw:l=!1,channels:d=[]}=e||{},f=yield(0,i.getCAIPAddress)(r,t,"User"),h=(0,i.getAPIBaseUrls)(r);if(0==d.length)throw new Error("channels cannot be empty");const p=`${h}/v1/users/${f}/channels/${yield(0,i.getCAIPAddress)(r,d[0],"Channel")}/feeds`,g={page:n,limit:(0,i.getLimit)(c),spam:u},m=`${p}?${(0,i.getQueryParams)(g)}`;return(0,s.axiosGet)(m).then((e=>{var t,r;return l?(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.feeds)||[]:(0,a.parseApiResponse)(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.feeds)||[]})).catch((e=>{console.error(`[Push SDK] - API ${m}: `,e)}))}))},973704:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSubscriptions=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(634074);t.getSubscriptions=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{user:t,env:r=o.default.ENV.PROD,channel:n=null,raw:c=!0}=e||{},u=yield(0,i.getCAIPAddress)(r,t,"User"),l=`${`${(0,i.getAPIBaseUrls)(r)}/v1/users/${u}/subscriptions`}?${n?(0,i.getQueryParams)({channel:n}):""}`;return(0,a.axiosGet)(l).then((e=>{var t,r;return c?(null===(t=e.data)||void 0===t?void 0:t.subscriptions)||[]:(0,s.parseSubscriptionsApiResponse)((null===(r=e.data)||void 0===r?void 0:r.subscriptions)||[])})).catch((e=>{console.error(`[Push SDK] - API ${l}: `,e)}))}))},750539:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.get=void 0;const n=r(331635),i=r(527596),o=r(795924),a=r(397067),s=r(565870),c=r(441786);t.get=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:t,env:r=a.default.ENV.PROD}=e||{};if(!(0,i.isValidPushCAIP)(t))throw new Error("Invalid address!");const u=(0,i.walletToPCAIP10)(t),l=`${(0,o.getAPIBaseUrls)(r)}/v2/users/?caip10=${u}`;return(0,c.axiosGet)(l).then((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return e.data&&(e.data.publicKey=yield(0,o.verifyProfileKeys)(e.data.encryptedPrivateKey,e.data.publicKey,e.data.did,e.data.wallets,e.data.verificationProof)),(0,s.populateDeprecatedUser)(e.data)})))).catch((e=>{throw console.error(`[Push SDK] - API ${l}: `,e),Error(`[Push SDK] - API ${l}: ${e}`)}))}))},482120:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBatch=void 0;const n=r(331635),i=r(527596),o=r(795924),a=r(397067),s=r(565870),c=r(441786);t.getBatch=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{env:t=a.default.ENV.PROD,userIds:r}=e||{},u=`${(0,o.getAPIBaseUrls)(t)}/v2/users/batch`;if(r.length>100)throw new Error("Too many user IDs. Maximum allowed: 100");for(let e=0;e(e.data.users.forEach(((t,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){e.data.users[r].publicKey=yield(0,o.verifyProfileKeys)(t.encryptedPrivateKey,t.publicKey,t.did,t.caip10,t.verificationProof),e.data.users[r]=(0,s.populateDeprecatedUser)(e.data.users[r])})))),e.data))).catch((e=>{throw console.error(`[Push SDK] - API ${u}: `,e),Error(`[Push SDK] - API ${u}: ${e}`)}))}))},75232:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.profile=t.auth=void 0;const n=r(331635),i=r(923270),o=r(626129);n.__exportStar(r(599669),t),n.__exportStar(r(582135),t),n.__exportStar(r(973704),t),n.__exportStar(r(750539),t),n.__exportStar(r(609397),t),n.__exportStar(r(482120),t),n.__exportStar(r(71827),t),n.__exportStar(r(241551),t),n.__exportStar(r(900608),t),n.__exportStar(r(493233),t),t.auth={update:i.authUpdate},t.profile={update:o.profileUpdate,updateCore:o.profileUpdateCore}},626129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.profileUpdateCore=t.profileUpdate=void 0;const n=r(331635),i=r(921396),o=r(813951),a=r(397067),s=r(795924),c=r(750539),u=r(565870),l=r(552096),d=r(441786);t.profileUpdate=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,t.profileUpdateCore)(e,o.PGPHelper)}));t.profileUpdateCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{pgpPrivateKey:o,account:f,profile:h,env:p=a.default.ENV.PROD,progressHook:g}=e||{};try{if(!(0,s.isValidPushCAIP)(f))throw new Error("Invalid account!");const e=yield(0,c.get)({account:f,env:p});if(!e||!e.did)throw new Error("User not Found!");let t=null;if(h.blockedUsersList){for(const t of h.blockedUsersList)if(!(0,s.isValidPushCAIP)(t))throw new Error("Invalid address in the blockedUsersList: "+t);const e=h.blockedUsersList.map((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,s.convertToValidDID)(e,p)}))));t=yield Promise.all(e),t=Array.from(new Set(t))}const a={name:h.name?h.name:e.profile.name,desc:h.desc?h.desc:e.profile.desc,picture:h.picture?h.picture:e.profile.picture,blockedUsersList:h.blockedUsersList?t:[]},m=i.SHA256(JSON.stringify(a)).toString(),y=yield r.sign({message:m,signingKey:o}),b=`${"pgpv2"}:${y}`,v=Object.assign(Object.assign({},a),{verificationProof:b}),w=`${(0,s.getAPIBaseUrls)(p)}/v2/users/${e.did}/profile`;null==g||g(l.default["PUSH-PROFILE-UPDATE-01"]);const A=yield(0,d.axiosPut)(w,v);return A.data&&(A.data.publicKey=yield(0,s.verifyProfileKeys)(A.data.encryptedPrivateKey,A.data.publicKey,A.data.did,A.data.wallets,A.data.verificationProof)),null==g||g(l.default["PUSH-PROFILE-UPDATE-02"]),(0,u.populateDeprecatedUser)(A.data)}catch(m){const e=l.default["PUSH-ERROR-00"];throw null==g||g(e(t.profileUpdate.name,m)),Error(`[Push SDK] - API - Error - API ${t.profileUpdate.name} -: ${m}`)}}))},71827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.upgrade=void 0;const n=r(331635),i=r(813951),o=r(397067),a=r(795924),s=r(923270),c=r(750539),u=r(552096);t.upgrade=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{env:r=o.default.ENV.PROD,account:n=null,signer:l,additionalMeta:d,progressHook:f}=e||{};try{const e=(0,i.getWallet)({account:n,signer:l}),t=yield(0,i.getAccountAddress)(e);if(!(0,a.isValidPushCAIP)(t))throw new Error("Invalid address!");const h=yield(0,c.get)({account:t,env:r});if(!h||!h.encryptedPrivateKey)throw new Error("User Not Found!");const p=o.default.ENCRYPTION_TYPE.PGP_V3,{version:g}=JSON.parse(h.encryptedPrivateKey);if(g===p||g===o.default.ENCRYPTION_TYPE.NFTPGP_V1)return h;null==f||f(u.default["PUSH-UPGRADE-02"]);const m=yield(0,a.decryptPGPKey)({encryptedPGPPrivateKey:h.encryptedPrivateKey,signer:l,env:r,toUpgrade:!1,additionalMeta:d}),y=yield(0,s.authUpdate)({pgpPrivateKey:m,pgpEncryptionVersion:p,signer:l,pgpPublicKey:h.publicKey,account:h.did,env:r,additionalMeta:d,progressHook:f});return null==f||f(u.default["PUSH-UPGRADE-05"]),y}catch(h){const e=u.default["PUSH-ERROR-00"];throw null==f||f(e(t.upgrade.name,h)),Error(`[Push SDK] - API - Error - API ${t.upgrade.name} -: ${h}`)}}))},441786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.axiosDelete=t.axiosPut=t.axiosPost=t.axiosGet=void 0;const n=r(331635),i=r(272505),o=r(207065).version,a=e=>{const t=Object.assign(Object.assign({},null==e?void 0:e.headers),{"X-JS-SDK-VERSION":o});return Object.assign(Object.assign({},e),{headers:t})},s=e=>{var t;const r=e.headers["x-deprecation-notice"];if(r){const n=null===(t=e.config.method)||void 0===t?void 0:t.toUpperCase(),i=e.config.url;console.warn(`%cDeprecation Notice%c Method: ${n}, Path: ${i}, Notice: ${r}`,"color: white; background-color: red; font-weight: bold; padding: 2px 4px;","color: red; font-weight: bold;")}return e};t.axiosGet=(e,t)=>n.__awaiter(void 0,void 0,void 0,(function*(){return i.default.get(e,a(t)).then((e=>s(e)))}));t.axiosPost=(e,t,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){return i.default.post(e,t,a(r)).then((e=>s(e)))}));t.axiosPut=(e,t,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){return i.default.put(e,t,a(r)).then((e=>s(e)))}));t.axiosDelete=(e,t)=>n.__awaiter(void 0,void 0,void 0,(function*(){return i.default.delete(e,a(t)).then((e=>s(e)))}))},710644:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(331635).__exportStar(r(744111),t)},744111:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseApiResponse=void 0,t.parseApiResponse=function(e){return e.map((e=>{const{payload:{data:{acta:t="",amsg:r="",asub:n="",icon:i="",url:o="",sid:a="",app:s="",aimg:c="",secret:u=""},notification:l},source:d}=e;return{cta:t,title:n||"",message:r||l.body||"",icon:i,url:o,sid:a,app:s,image:c,blockchain:d,notification:l,secret:u}}))}},292302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSettings=void 0;t.parseSettings=e=>{var t,r;let n;try{n=JSON.parse(e)}catch(o){n=e}const i=[];for(let a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSubscrbersApiResponse=void 0;const n=r(292302);t.parseSubscrbersApiResponse=function(e){const t=e.subscribers.map((e=>({subscriber:e.subscriber,settings:e.settings?(0,n.parseSettings)(e.settings):null})));return{itemcount:e.itemcount,subscribers:[...t]}}},634074:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSubscriptionsApiResponse=void 0;const n=r(292302);t.parseSubscriptionsApiResponse=function(e){return e.map((e=>({channel:e.channel,user_settings:e.user_settings?(0,n.parseSettings)(e.user_settings):null})))}},565870:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.populateDeprecatedUser=void 0;t.populateDeprecatedUser=e=>{if(!e)return e;e.name=e.profile.name,e.about=e.profile.desc,e.profilePicture=e.profile.picture,e.numMsg=e.msgSent,e.allowedNumMsg=e.maxMsgPersisted;let t="",r="",n="";try{const{version:r}=JSON.parse(e.encryptedPrivateKey);t=r}catch(i){}e.encryptionType=t;try{r=e.verificationProof.split(":")[0],n=e.verificationProof.split(":")[1]}catch(i){}return e.signature=n,e.sigType=r,e.encryptedPassword=null,e.nftOwner=null,e.linkedListHash=null,e.nfts=null,e}},357877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateMessageObj=void 0;const n=r(455288),i=r(83790),o=r(397067),a=e=>{const t=[];for(const r in e)"string"==typeof e[r]?t.push(e[r]):"object"==typeof e[r]&&t.push(...a(e[r]));return t},s=n.object({content:n.string().required().allow("")}),c=n.object({content:n.string().valid(...Object.values(a(i.CHAT.META))).required(),info:n.object({affected:n.array().items(n.string()).required(),arbitrary:n.object().pattern(n.string(),n.any())}).required()}),u=n.object({content:n.string().valid(...Object.values(a(i.CHAT.REACTION))).required(),reference:n.string().required()}),l=n.object({content:n.string().valid(...Object.values(a(i.CHAT.RECEIPT))).required(),reference:n.string().required()}),d=n.object({content:n.string().valid(...Object.values(a(i.CHAT.UA))).required(),info:n.object({affected:n.array().items(n.string()).required(),arbitrary:n.object().pattern(n.string(),n.any())}).required()}),f=n.object({content:n.string().valid(...Object.values(a(i.CHAT.INTENT)))}),h=n.object({content:n.object({messageType:n.string().valid(...Object.values([o.MessageType.TEXT,o.MessageType.IMAGE,o.MessageType.AUDIO,o.MessageType.VIDEO,o.MessageType.FILE,o.MessageType.MEDIA_EMBED])).required(),messageObj:n.object({content:n.string().required()}).required()}).required(),reference:n.string().required()}),p=n.object({content:n.array().items(n.object({messageType:n.string().valid(...Object.values([o.MessageType.TEXT,o.MessageType.IMAGE,o.MessageType.AUDIO,o.MessageType.VIDEO,o.MessageType.FILE,o.MessageType.MEDIA_EMBED])).required(),messageObj:n.object({content:n.string().required()}).required()})).required()});t.validateMessageObj=(e,t)=>{let r;switch(t){case o.MessageType.TEXT:case o.MessageType.IMAGE:case o.MessageType.VIDEO:case o.MessageType.AUDIO:case o.MessageType.FILE:case o.MessageType.MEDIA_EMBED:case o.MessageType.GIF:r=s.validate(e).error;break;case o.MessageType.META:r=c.validate(e).error;break;case o.MessageType.REACTION:r=u.validate(e).error;break;case o.MessageType.RECEIPT:r=l.validate(e).error;break;case o.MessageType.USER_ACTIVITY:r=d.validate(e).error;break;case o.MessageType.INTENT:r=f.validate(e).error;break;case o.MessageType.REPLY:r=h.validate(e).error;break;case o.MessageType.COMPOSITE:r=p.validate(e).error;break;default:throw new Error("Invalid MessageType")}if(r)throw new Error("Unable to parse this messageType. Please ensure 'messageObj' is properly defined.")}},668865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Video=t.initVideoCallData=void 0;const n=r(331635),i=r(941770),o=r(389407),a=r(397067),s=r(789386),c=r(716912),u=r(843156),l=r(307624),d=r(899024),f=r(503892),h=r(166209),p=r(557037),g=r(773773),m=r(683038);t.initVideoCallData={meta:{chatId:"",initiator:{address:"",signal:null},broadcast:{livepeerInfo:null,hostAddress:"",coHostAddress:""}},local:{stream:null,audio:null,video:null,address:""},incoming:[{stream:null,audio:null,video:null,address:"",status:d.VideoCallStatus.UNINITIALIZED,retryCount:0}]};t.Video=class{constructor({signer:e,chainId:r,pgpPrivateKey:i,env:o=a.default.ENV.PROD,setData:s,callType:c=g.VIDEO_CALL_TYPE.PUSH_VIDEO,onReceiveStream:u=()=>n.__awaiter(this,void 0,void 0,(function*(){return Promise.resolve()}))}){this.peerInstances={},this.signer=e,this.chainId=r,this.pgpPrivateKey=i,this.env=o,this.callType=c,this.onReceiveStream=u,s((()=>t.initVideoCallData)),this.data=t.initVideoCallData,this.setData=function(e){s(e),this.data=e(this.data)}}create(e){return n.__awaiter(this,void 0,void 0,(function*(){const{audio:t=!0,video:r=!0,stream:n=null}=e||{};try{const e=null!==n?n:yield navigator.mediaDevices.getUserMedia({video:r,audio:t});this.setData((n=>(0,o.produce)(n,(n=>{n.local.stream=e,n.local.video=r,n.local.audio=t}))))}catch(i){console.error("error in create",i)}}))}request(e){return n.__awaiter(this,void 0,void 0,(function*(){const{senderAddress:r,recipientAddress:n,chatId:a,rules:y,onReceiveMessage:b,retry:v=!1,details:w}=e||{};y&&(0,m.validateVideoRules)(y);const A=Array.isArray(n)?n:[n];for(const e of A)try{this.setData((t=>(0,o.produce)(t,(n=>{n.local.address=r,n.meta.chatId=null!=a?a:y.access.data.chatId,n.meta.initiator.address=r;const i=(0,f.default)(t.incoming,e);-1===i?n.incoming.push({stream:null,audio:null,video:null,address:e,status:v?d.VideoCallStatus.RETRY_INITIALIZED:d.VideoCallStatus.INITIALIZED,retryCount:v?1:0}):(n.incoming[i].address=e,n.incoming[i].status=v?d.VideoCallStatus.RETRY_INITIALIZED:d.VideoCallStatus.INITIALIZED,n.incoming[i].retryCount+=v?1:0)}))));const n=yield(0,l.getIceServerConfig)(this.env);this.peerInstances[e]=new i({initiator:!0,trickle:!1,stream:this.data.local.stream,config:{iceServers:n}}),this.peerInstances[e].on("signal",(t=>{this.setData((e=>(0,o.produce)(e,(e=>{e.meta.initiator.signal=t})))),(0,s.default)({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:r,recipientAddress:e,status:v?d.VideoCallStatus.RETRY_INITIALIZED:d.VideoCallStatus.INITIALIZED,chatId:a,rules:y,signalData:t,env:this.env,callType:this.callType,callDetails:w})})),this.peerInstances[e].on("connect",(()=>{this.peerInstances[e].send(`initial message from ${r}`),this.peerInstances[e].send(JSON.stringify({type:"isVideoOn",value:this.data.local.video})),this.peerInstances[e].send(JSON.stringify({type:"isAudioOn",value:this.data.local.audio}));const t=(0,h.default)({incomingPeers:this.data.incoming});this.peerInstances[e].send(JSON.stringify({type:"connectedAddresses",value:t}))})),this.peerInstances[e].on("data",(n=>{var i,s,l,d,m;if((0,u.default)(n)){const u=JSON.parse(n);if("connectedAddresses"===u.type){const e=u.value,t=(0,h.default)({incomingPeers:this.data.incoming}),n=(0,p.default)({localAddress:r,localConnectedAddresses:t,receivedConnectedAddresses:e});this.request({senderAddress:r,recipientAddress:n,chatId:a,rules:y,details:{type:g.SPACE_REQUEST_TYPE.ESTABLISH_MESH,data:{}}})}if("isVideoOn"===u.type&&this.setData((t=>(0,o.produce)(t,(r=>{const n=(0,f.default)(t.incoming,e);r.incoming[n].video=u.value})))),"isAudioOn"===u.type&&this.setData((t=>(0,o.produce)(t,(r=>{const n=(0,f.default)(t.incoming,e);r.incoming[n].audio=u.value})))),"endCall"===u.type){if(this.callType===g.VIDEO_CALL_TYPE.PUSH_SPACE&&(null===(i=null==u?void 0:u.details)||void 0===i?void 0:i.type)===g.SPACE_DISCONNECT_TYPE.LEAVE&&(null===(s=this.peerInstances[e])||void 0===s||s.destroy(),this.peerInstances[e]=null,this.setData((t=>(0,o.produce)(t,(r=>{const n=(0,f.default)(t.incoming,e);r.incoming.splice(n,1)}))))),this.callType===g.VIDEO_CALL_TYPE.PUSH_SPACE&&(null===(l=null==u?void 0:u.details)||void 0===l?void 0:l.type)===g.SPACE_DISCONNECT_TYPE.STOP){for(const e in this.peerInstances)null===(d=this.peerInstances[e])||void 0===d||d.destroy(),this.peerInstances[e]=null;this.data.local.stream&&(0,c.endStream)(this.data.local.stream),this.setData((()=>t.initVideoCallData))}this.callType===g.VIDEO_CALL_TYPE.PUSH_VIDEO&&(null===(m=this.peerInstances[e])||void 0===m||m.destroy(),this.peerInstances[e]=null,this.data.local.stream&&(0,c.endStream)(this.data.local.stream),this.setData((()=>t.initVideoCallData)))}}else b&&b(n)})),this.peerInstances[e].on("stream",(t=>{const r=(0,f.default)(this.data.incoming,e);this.onReceiveStream(t,e,this.data.incoming[r].audio),this.setData((e=>(0,o.produce)(e,(e=>{e.incoming[r].stream=t}))))}))}catch(C){console.error("error in request",C)}}))}acceptRequest(e){return n.__awaiter(this,void 0,void 0,(function*(){const{signalData:r,senderAddress:n,recipientAddress:a,chatId:y,rules:b,onReceiveMessage:v,retry:w=!1,details:A}=e||{};b&&(0,m.validateVideoRules)(b);try{if(this.peerInstances[a])return Promise.resolve();const e=yield(0,l.getIceServerConfig)(this.env);this.peerInstances[a]=new i({initiator:!1,trickle:!1,stream:this.data.local.stream,config:{iceServers:e}}),this.setData((e=>(0,o.produce)(e,(t=>{t.local.address=n,t.meta.chatId=null!=y?y:b.access.data.chatId,t.meta.initiator.address=n;const r=(0,f.default)(e.incoming,a);-1===r?t.incoming.push({stream:null,audio:null,video:null,address:a,status:w?d.VideoCallStatus.RETRY_INITIALIZED:d.VideoCallStatus.INITIALIZED,retryCount:w?1:0}):(t.incoming[r].address=a,t.incoming[r].status=w?d.VideoCallStatus.RETRY_RECEIVED:d.VideoCallStatus.RECEIVED,t.incoming[r].retryCount+=w?1:0)})))),this.peerInstances[a].on("error",(e=>{this.data.incoming[0].retryCount>=5&&this.disconnect({peerAddress:a}),(0,s.default)({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:n,recipientAddress:a,status:d.VideoCallStatus.RETRY_INITIALIZED,chatId:y,rules:b,signalData:null,callType:this.callType,env:this.env})})),this.peerInstances[a].signal(r),this.peerInstances[a].on("signal",(e=>{this.setData((t=>(0,o.produce)(t,(t=>{t.meta.initiator.signal=e})))),(0,s.default)({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:n,recipientAddress:a,status:w?d.VideoCallStatus.RETRY_RECEIVED:d.VideoCallStatus.RECEIVED,chatId:y,rules:b,signalData:e,env:this.env,callType:this.callType,callDetails:A})})),this.peerInstances[a].on("connect",(()=>{this.peerInstances[a].send(JSON.stringify({type:"isVideoOn",value:this.data.local.video})),this.peerInstances[a].send(JSON.stringify({type:"isAudioOn",value:this.data.local.audio}));const e=(0,h.default)({incomingPeers:this.data.incoming});this.peerInstances[a].send(JSON.stringify({type:"connectedAddresses",value:e})),this.setData((e=>(0,o.produce)(e,(t=>{const r=(0,f.default)(e.incoming,a);t.incoming[r].status=d.VideoCallStatus.CONNECTED}))))})),this.peerInstances[a].on("data",(e=>{var r,i,s,l,d;if((0,u.default)(e)){const u=JSON.parse(e);if("connectedAddresses"===u.type){const e=u.value,t=(0,h.default)({incomingPeers:this.data.incoming}),r=(0,p.default)({localAddress:n,localConnectedAddresses:t,receivedConnectedAddresses:e});this.request({senderAddress:n,recipientAddress:r,chatId:y,rules:b,details:{type:g.SPACE_REQUEST_TYPE.ESTABLISH_MESH,data:{}}})}if("isVideoOn"===u.type&&this.setData((e=>(0,o.produce)(e,(t=>{const r=(0,f.default)(e.incoming,a);t.incoming[r].video=u.value})))),"isAudioOn"===u.type&&this.setData((e=>(0,o.produce)(e,(t=>{const r=(0,f.default)(e.incoming,a);t.incoming[r].audio=u.value})))),"endCall"===u.type){if(this.callType===g.VIDEO_CALL_TYPE.PUSH_SPACE&&(null===(r=null==u?void 0:u.details)||void 0===r?void 0:r.type)===g.SPACE_DISCONNECT_TYPE.LEAVE&&(null===(i=this.peerInstances[a])||void 0===i||i.destroy(),this.peerInstances[a]=null,this.setData((e=>(0,o.produce)(e,(t=>{const r=(0,f.default)(e.incoming,a);t.incoming.splice(r,1)}))))),this.callType===g.VIDEO_CALL_TYPE.PUSH_SPACE&&(null===(s=null==u?void 0:u.details)||void 0===s?void 0:s.type)===g.SPACE_DISCONNECT_TYPE.STOP){for(const e in this.peerInstances)null===(l=this.peerInstances[e])||void 0===l||l.destroy(),this.peerInstances[e]=null;this.data.local.stream&&(0,c.endStream)(this.data.local.stream),this.setData((()=>t.initVideoCallData))}this.callType===g.VIDEO_CALL_TYPE.PUSH_VIDEO&&(null===(d=this.peerInstances[a])||void 0===d||d.destroy(),this.peerInstances[a]=null,this.data.local.stream&&(0,c.endStream)(this.data.local.stream),this.setData((()=>t.initVideoCallData)))}}else v&&v(e)})),this.peerInstances[a].on("stream",(e=>{const t=(0,f.default)(this.data.incoming,a);this.onReceiveStream(e,a,this.data.incoming[t].audio),this.setData((r=>(0,o.produce)(r,(r=>{r.incoming[t].stream=e}))))}))}catch(C){console.error("error in accept request",C)}}))}connect(e){var t;const{peerAddress:r,signalData:n}=e||{};try{r||console.warn("disconnect requires a peer address"),this.peerInstances[r||this.data.incoming[0].address].on("error",(e=>{const t=r?(0,f.default)(this.data.incoming,r):0;this.data.incoming[t].retryCount>=5&&this.disconnect({peerAddress:r||this.data.incoming[0].address}),this.request({senderAddress:this.data.local.address,recipientAddress:this.data.incoming[t].address,chatId:this.data.meta.chatId,retry:!0})})),null===(t=this.peerInstances[r||this.data.incoming[0].address])||void 0===t||t.signal(n),this.setData((e=>(0,o.produce)(e,(t=>{const n=r?(0,f.default)(e.incoming,r):0;t.incoming[n].status=d.VideoCallStatus.CONNECTED})))),(0,s.default)({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:this.data.local.address,recipientAddress:r||this.data.incoming[0].address,status:d.VideoCallStatus.CONNECTED,rules:{access:{type:g.VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT,data:{chatId:this.data.meta.chatId}}},signalData:n,env:this.env})}catch(i){console.error("error in connect",i)}}disconnect(e){var r,n,i;const{peerAddress:o,details:a}=e||{};try{(null==e?void 0:e.peerAddress)||console.warn("disconnect requires a peer address");const u=o?(0,f.default)(this.data.incoming,o):0,l=this.data.incoming[u].status===d.VideoCallStatus.CONNECTED;l&&(null===(r=this.peerInstances[o||this.data.incoming[0].address])||void 0===r||r.send(JSON.stringify({type:"endCall",value:!0,details:a})),null===(n=this.peerInstances[o||this.data.incoming[0].address])||void 0===n||n.destroy()),(0,s.default)({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:this.data.local.address,recipientAddress:this.data.incoming[u].address,status:l?d.VideoCallStatus.ENDED:d.VideoCallStatus.DISCONNECTED,chatId:this.data.meta.chatId,signalData:null,env:this.env,callType:this.callType,callDetails:a}),null===(i=this.peerInstances[o||this.data.incoming[0].address])||void 0===i||i.destroy(),this.peerInstances[o||this.data.incoming[0].address]=null,this.data.local.stream&&(0,c.endStream)(this.data.local.stream),this.setData((()=>t.initVideoCallData))}catch(u){console.error("error in disconnect",u)}}enableVideo(e){var t;const{state:r}=e||{};if(this.data.local.video!==r){for(const e of this.data.incoming)e.status===d.VideoCallStatus.CONNECTED&&(null===(t=this.peerInstances[e.address])||void 0===t||t.send(JSON.stringify({type:"isVideoOn",value:r})));this.data.local.stream&&(r?(0,c.restartVideoStream)(this.data.local.stream):(0,c.stopVideoStream)(this.data.local.stream),this.setData((e=>(0,o.produce)(e,(e=>{e.local.video=r})))))}}enableAudio(e){const{state:t}=e||{};if(this.data.local.audio!==t){for(const e of this.data.incoming)if(e.status===d.VideoCallStatus.CONNECTED&&this.peerInstances[e.address])try{this.peerInstances[e.address].send(JSON.stringify({type:"isAudioOn",value:t}))}catch(r){console.error("Error sending data:",r)}this.data.local.stream&&(t?(0,c.restartAudioStream)(this.data.local.stream):(0,c.stopAudioStream)(this.data.local.stream),this.setData((e=>(0,o.produce)(e,(e=>{e.local.audio=t})))))}}isInitiator(){return""!==this.data.meta.initiator.address&&""!==this.data.local.address&&this.data.meta.initiator.address===this.data.local.address}}},676393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoV2=void 0;const n=r(331635),i=r(389407),o=r(585101),a=r(795924),s=r(773773),c=r(899024),u=r(349096);t.VideoV2=class{constructor({videoV1Instance:e,account:t,decryptedPgpPvtKey:r,env:n,peerInfos:i}){this.videoInstance=e,this.account=t,this.decryptedPgpPvtKey=r,this.env=n,this.peerInfos=i}request(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const{rules:r}=t||{};for(const t of e)if(!(0,a.isValidPushCAIP)(t))throw new Error("Invalid recipient address found");if(0===e.length)throw new Error("Alteast one recipient address is required for a video call");if(e.length>1&&(null==r?void 0:r.access.type)===s.VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT&&!r.access.data.chatId)throw new Error("For multiple recipient addresses, chatId is required for a video call");let n="";if(!(null==r?void 0:r.access.data.chatId)){let t=1;const r=30;for(;!n;){const i=yield(0,o.chats)({account:this.account,toDecrypt:!0,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env,page:t,limit:r});if(0===i.length)break;i.forEach((t=>{t.did===(0,a.walletToPCAIP10)(e[0])&&t.chatId&&(n=t.chatId)})),t++}if(!n)throw new Error(`ChatId not found between local user (${this.account}) and recipient (${e[0]}).`)}this.videoInstance.setData((t=>(0,i.produce)(t,(t=>{var i;t.local.address=this.account,t.incoming=e.map((e=>({address:(0,a.pCAIP10ToWallet)(e),status:c.VideoCallStatus.INITIALIZED}))),t.meta.chatId=null!==(i=null==r?void 0:r.access.data.chatId)&&void 0!==i?i:n})))),yield this.videoInstance.request({senderAddress:(0,a.pCAIP10ToWallet)(this.account),recipientAddress:e.map((e=>(0,a.pCAIP10ToWallet)(e))),rules:null!=r?r:{access:{type:s.VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT,data:{chatId:n}}}})}))}approve(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!e){const t=Object.keys(this.peerInfos);if(1!==t.length)throw new Error("Either no request exists or more than one request found. Please pass an address.");e=t[0]}const t=this.peerInfos[(0,a.walletToPCAIP10)(e)];(0,u.validatePeerInfo)(t),yield this.videoInstance.acceptRequest({senderAddress:(0,a.pCAIP10ToWallet)(this.account),recipientAddress:(0,a.pCAIP10ToWallet)(e),signalData:t.signal,rules:t.meta.rules})}))}deny(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!e){const t=Object.keys(this.peerInfos);if(1!==t.length)throw new Error("Either no request exists or more than one request found. Please pass an address.");e=t[0]}const t=this.peerInfos[(0,a.walletToPCAIP10)(e)];(0,u.validatePeerInfo)(t),yield this.videoInstance.disconnect({peerAddress:(0,a.pCAIP10ToWallet)(e)})}))}disconnect(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.videoInstance.disconnect()}))}config({video:e,audio:t}){"boolean"==typeof e&&this.videoInstance.enableVideo({state:e}),"boolean"==typeof t&&this.videoInstance.enableAudio({state:t})}}},557037:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=({localAddress:e,localConnectedAddresses:t,receivedConnectedAddresses:r})=>r.filter((r=>!t.includes(r)&&r!==e))},166209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(83621),i=r(899024);t.default=({incomingPeers:e})=>{const t=[];return e.forEach((e=>{e.status===i.VideoCallStatus.CONNECTED&&t.push((0,n.default)(e.address))})),t}},307624:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIceServerConfig=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(921396),s=r(441786);t.getIceServerConfig=(e=o.default.ENV.PROD)=>n.__awaiter(void 0,void 0,void 0,(function*(){const t=`${(0,i.getAPIBaseUrls)(e)}/v1/turnserver/iceconfig`,{data:r}=yield(0,s.axiosGet)(t),{config:n}=JSON.parse(a.AES.decrypt(r,"turnserversecret").toString(a.enc.Utf8));return n}))},503892:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=(e,t)=>e.findIndex((e=>e.address===t))},843156:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>{try{return JSON.parse(e)&&!!e}catch(t){return!1}}},716912:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.endStream=t.stopAudioStream=t.restartAudioStream=t.stopVideoStream=t.restartVideoStream=void 0;t.restartVideoStream=e=>{e.getVideoTracks().forEach((e=>e.enabled=!0))};t.stopVideoStream=e=>{e.getVideoTracks().forEach((e=>e.enabled=!1))};t.restartAudioStream=e=>{e.getAudioTracks().forEach((e=>e.enabled=!0))};t.stopAudioStream=e=>{e.getAudioTracks().forEach((e=>e.enabled=!1))};t.endStream=e=>{e.getTracks().forEach((e=>e.stop()))}},789386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(331635),i=r(795924),o=r(446392),a=r(397067),s=r(773773);t.default=({signer:e,chainId:t,pgpPrivateKey:r},{recipientAddress:c,senderAddress:u,chatId:l,rules:d,status:f,signalData:h=null,env:p=a.default.ENV.PROD,callType:g=s.VIDEO_CALL_TYPE.PUSH_VIDEO,callDetails:m})=>n.__awaiter(void 0,void 0,void 0,(function*(){var n;try{const a={recipientAddress:c,senderAddress:u,chatId:null!==(n=null==d?void 0:d.access.data.chatId)&&void 0!==n?n:l,signalData:h,status:f,callDetails:m},y=(0,i.getCAIPWithChainId)(u,t),b=(0,i.getCAIPWithChainId)(c,t),v=`Video Call from ${u}`,w=s.NOTIFICATION_TYPE.TARGETTED;yield(0,o.sendNotification)({senderType:1,signer:e,pgpPrivateKey:r,chatId:l,rules:d,type:w,identityType:2,notification:{title:v,body:v},payload:{title:"VideoCall",body:"VideoCall",cta:"",img:"",additionalMeta:{type:`${g}+1`,data:JSON.stringify(a)}},recipients:b,channel:y,env:p})}catch(a){console.error("Error occured while sending notification for video call",a)}}))},349096:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePeerInfo=void 0;const n=r(795924),i=r(773773);t.validatePeerInfo=e=>{const{signal:t,address:r,meta:o}=e;if(!t)throw new Error("Invalid signal data received");if(!(0,n.isValidPushCAIP)(r))throw new Error("Invalid address received");if(o.rules.access.type===i.VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT&&!o.rules.access.data.chatId)throw new Error("ChatId not found in meta.rules")}},683038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateVideoRules=void 0;const n=r(773773);t.validateVideoRules=e=>{if(e.access.type===n.VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT&&(!e.access.data.chatId||""===e.access.data.chatId))throw new Error("Invalid rules object recieved. For access as Push Chat, chatId is required!")}},574338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(331635).__exportStar(r(668865),t)},887179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(331635).__exportStar(r(863515),t)},441867:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(331635).__exportStar(r(771157),t)},771157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSocketConnection=void 0;const n=r(538007),i=r(81233),o=r(81258);t.createSocketConnection=function({user:e,env:t,socketType:r="notification",apiKey:a,socketOptions:s}){const{autoConnect:c=!0,reconnectionAttempts:u=5,reconnectionDelay:l,reconnectionDelayMax:d}=s||{},f=i.API_URLS[t],h=["websocket"];let p=null;try{const i="chat"===r?(0,o.walletToPCAIP10)(e):(0,o.getCAIPAddress)(t,e,"User");let a;a="notification"===r?{address:i}:{mode:"chat",did:i};const s=Object.assign(Object.assign({transports:h,query:a,autoConnect:c,reconnectionAttempts:u},void 0!==l&&{reconnectionDelay:l}),void 0!==d&&{reconnectionDelayMax:d});p=(0,n.io)(f,s)}catch(g){console.error("[PUSH-SDK] - Socket connection error: "),console.error(g)}finally{return p}}},81233:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.API_URLS=void 0;const n=r(94142);t.API_URLS={[n.ENV.PROD]:"https://backend.epns.io",[n.ENV.STAGING]:"https://backend-staging.epns.io",[n.ENV.DEV]:"https://backend-dev.epns.io",[n.ENV.LOCAL]:"http://localhost:4000"}},94142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=t.DEFAULT_CHAINS=t.ENV=void 0,function(e){e.PROD="prod",e.STAGING="staging",e.DEV="dev",e.LOCAL="local"}(t.ENV||(t.ENV={})),function(e){e[e.PROD=1]="PROD",e[e.STAGING=11155111]="STAGING",e[e.DEV=11155111]="DEV",e[e.LOCAL=11155111]="LOCAL"}(t.DEFAULT_CHAINS||(t.DEFAULT_CHAINS={})),t.EVENTS={CONNECT:"connect",DISCONNECT:"disconnect",USER_FEEDS:"userFeeds",USER_SPAM_FEEDS:"userSpamFeeds",CHAT_RECEIVED_MESSAGE:"CHATS",CHAT_GROUPS:"CHAT_GROUPS"}},81258:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletToPCAIP10=t.getCAIPAddress=t.getFallbackETHCAIPAddress=t.validateCAIP=t.isValidCAIP10NFTAddress=t.isValidETHAddress=void 0;const n=r(802890),i=r(94142);function o(e){return n.ethers.utils.isAddress(e)}t.isValidETHAddress=o;const a={eip155:({address:e})=>o(e)};function s(e){const[r,n,i]=e.split(":");if(!r)return!1;if(!n)return!1;if(!i)return!1;if((0,t.isValidCAIP10NFTAddress)(e))return!0;return(0,a[r])({address:i})}function c(e,t){let r;switch(e){case i.ENV.PROD:r=i.DEFAULT_CHAINS.PROD;break;case i.ENV.STAGING:r=i.DEFAULT_CHAINS.STAGING;break;case i.ENV.DEV:r=i.DEFAULT_CHAINS.DEV;break;case i.ENV.LOCAL:r=i.DEFAULT_CHAINS.LOCAL;break;default:r=i.DEFAULT_CHAINS.PROD}return`eip155:${r}:${t}`}t.isValidCAIP10NFTAddress=e=>{try{const t=e.split(":");return(5===t.length||6===t.length)&&"nft"===t[0].toLowerCase()&&!isNaN(Number(t[4]))&&Number(t[4])>0&&!isNaN(Number(t[2]))&&Number(t[2])>0&&n.ethers.utils.isAddress(t[3])&&"eip155"===t[1]}catch(t){return!1}},t.validateCAIP=s,t.getFallbackETHCAIPAddress=c,t.getCAIPAddress=function(e,t,r){if(s(t))return t;if(o(t))return c(e,t);throw Error(`Invalid Address! ${r}`)};t.walletToPCAIP10=e=>e.includes("eip155:")?e:"eip155:"+e},863515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=void 0;const n=r(331635),i=r(94142);Object.defineProperty(t,"EVENTS",{enumerable:!0,get:function(){return i.EVENTS}}),n.__exportStar(r(441867),t)},739209:(e,t,r)=>{"use strict";var n=r(376578),i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t{"use strict";var n=r(194901),i=r(116823),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},35548:(e,t,r)=>{"use strict";var n=r(133517),i=r(116823),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a constructor")}},473506:(e,t,r)=>{"use strict";var n=r(113925),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},206469:(e,t,r)=>{"use strict";var n=r(978227),i=r(202360),o=r(824913).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},190679:(e,t,r)=>{"use strict";var n=r(401625),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},28551:(e,t,r)=>{"use strict";var n=r(820034),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},919617:(e,t,r)=>{"use strict";var n=r(225397),i=r(435610),o=r(326198),a=function(e){return function(t,r,a){var s=n(t),c=o(s);if(0===c)return!e&&-1;var u,l=i(a,c);if(e&&r!=r){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},234598:(e,t,r)=>{"use strict";var n=r(779039);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},580926:(e,t,r)=>{"use strict";var n=r(479306),i=r(748981),o=r(169436),a=r(326198),s=TypeError,c="Reduce of empty array with no initial value",u=function(e){return function(t,r,u,l){var d=i(t),f=o(d),h=a(d);if(n(r),0===h&&u<2)throw new s(c);var p=e?h-1:0,g=e?-1:1;if(u<2)for(;;){if(p in f){l=f[p],p+=g;break}if(p+=g,e?p<0:h<=p)throw new s(c)}for(;e?p>=0:h>p;p+=g)p in f&&(l=r(l,f[p],p,d));return l}};e.exports={left:u(!1),right:u(!0)}},867680:(e,t,r)=>{"use strict";var n=r(179504);e.exports=n([].slice)},684428:(e,t,r)=>{"use strict";var n=r(978227)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(s){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(s){return!1}var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(s){}return r}},544576:(e,t,r)=>{"use strict";var n=r(179504),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},136955:(e,t,r)=>{"use strict";var n=r(92140),i=r(194901),o=r(544576),a=r(978227)("toStringTag"),s=Object,c="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=s(e),a))?r:c?o(t):"Object"===(n=o(t))&&i(t.callee)?"Arguments":n}},877740:(e,t,r)=>{"use strict";var n=r(39297),i=r(135031),o=r(377347),a=r(824913);e.exports=function(e,t,r){for(var s=i(t),c=a.f,u=o.f,l=0;l{"use strict";var n=r(978227)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(i){}}return!1}},266699:(e,t,r)=>{"use strict";var n=r(743724),i=r(824913),o=r(406980);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},406980:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},562106:(e,t,r)=>{"use strict";var n=r(350283),i=r(824913);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},436840:(e,t,r)=>{"use strict";var n=r(194901),i=r(824913),o=r(350283),a=r(939433);e.exports=function(e,t,r,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&o(r,u,s),s.global)c?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(l){}c?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},939433:(e,t,r)=>{"use strict";var n=r(444576),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},743724:(e,t,r)=>{"use strict";var n=r(779039);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},404055:(e,t,r)=>{"use strict";var n=r(444576),i=r(820034),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},188727:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},744265:(e,t,r)=>{"use strict";var n=r(882839);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},689544:(e,t,r)=>{"use strict";var n=r(882839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},216193:(e,t,r)=>{"use strict";var n=r(184215);e.exports="NODE"===n},107860:(e,t,r)=>{"use strict";var n=r(882839);e.exports=/web0s(?!.*chrome)/i.test(n)},882839:(e,t,r)=>{"use strict";var n=r(444576).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},839519:(e,t,r)=>{"use strict";var n,i,o=r(444576),a=r(882839),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(i=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},184215:(e,t,r)=>{"use strict";var n=r(444576),i=r(882839),o=r(544576),a=function(e){return i.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},746518:(e,t,r)=>{"use strict";var n=r(444576),i=r(377347).f,o=r(266699),a=r(436840),s=r(939433),c=r(877740),u=r(492796);e.exports=function(e,t){var r,l,d,f,h,p=e.target,g=e.global,m=e.stat;if(r=g?n:m?n[p]||s(p,{}):n[p]&&n[p].prototype)for(l in t){if(f=t[l],d=e.dontCallGetSet?(h=i(r,l))&&h.value:r[l],!u(g?l:p+(m?".":"#")+l,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(r,l,f,e)}}},779039:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},318745:(e,t,r)=>{"use strict";var n=r(640616),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},276080:(e,t,r)=>{"use strict";var n=r(227476),i=r(479306),o=r(640616),a=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},640616:(e,t,r)=>{"use strict";var n=r(779039);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},969565:(e,t,r)=>{"use strict";var n=r(640616),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},610350:(e,t,r)=>{"use strict";var n=r(743724),i=r(39297),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},146706:(e,t,r)=>{"use strict";var n=r(179504),i=r(479306);e.exports=function(e,t,r){try{return n(i(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(o){}}},227476:(e,t,r)=>{"use strict";var n=r(544576),i=r(179504);e.exports=function(e){if("Function"===n(e))return i(e)}},179504:(e,t,r)=>{"use strict";var n=r(640616),i=Function.prototype,o=i.call,a=n&&i.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},497751:(e,t,r)=>{"use strict";var n=r(444576),i=r(194901);e.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},450851:(e,t,r)=>{"use strict";var n=r(136955),i=r(655966),o=r(964117),a=r(926269),s=r(978227)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[n(e)]}},70081:(e,t,r)=>{"use strict";var n=r(969565),i=r(479306),o=r(28551),a=r(116823),s=r(450851),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(i(r))return o(n(r,e));throw new c(a(e)+" is not iterable")}},655966:(e,t,r)=>{"use strict";var n=r(479306),i=r(964117);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},444576:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297:(e,t,r)=>{"use strict";var n=r(179504),i=r(748981),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},130421:e=>{"use strict";e.exports={}},690757:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(r){}}},20397:(e,t,r)=>{"use strict";var n=r(497751);e.exports=n("document","documentElement")},135917:(e,t,r)=>{"use strict";var n=r(743724),i=r(779039),o=r(404055);e.exports=!n&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},169436:(e,t,r)=>{"use strict";var n=r(179504),i=r(779039),o=r(544576),a=Object,s=n("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},933706:(e,t,r)=>{"use strict";var n=r(179504),i=r(194901),o=r(477629),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},591181:(e,t,r)=>{"use strict";var n,i,o,a=r(258622),s=r(444576),c=r(820034),u=r(266699),l=r(39297),d=r(477629),f=r(766119),h=r(130421),p="Object already initialized",g=s.TypeError,m=s.WeakMap;if(a||d.state){var y=d.state||(d.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new g(p);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var b=f("state");h[b]=!0,n=function(e,t){if(l(e,b))throw new g(p);return t.facade=e,u(e,b,t),t},i=function(e){return l(e,b)?e[b]:{}},o=function(e){return l(e,b)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return r}}}},144209:(e,t,r)=>{"use strict";var n=r(978227),i=r(926269),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},194901:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},133517:(e,t,r)=>{"use strict";var n=r(179504),i=r(779039),o=r(194901),a=r(136955),s=r(497751),c=r(933706),u=function(){},l=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),h=!d.test(u),p=function(e){if(!o(e))return!1;try{return l(u,[],e),!0}catch(t){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(d,c(e))}catch(t){return!0}};g.sham=!0,e.exports=!l||i((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?g:p},492796:(e,t,r)=>{"use strict";var n=r(779039),i=r(194901),o=/#|\.prototype\./,a=function(e,t){var r=c[s(e)];return r===l||r!==u&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},964117:e=>{"use strict";e.exports=function(e){return null==e}},820034:(e,t,r)=>{"use strict";var n=r(194901);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},113925:(e,t,r)=>{"use strict";var n=r(820034);e.exports=function(e){return n(e)||null===e}},996395:e=>{"use strict";e.exports=!1},160788:(e,t,r)=>{"use strict";var n=r(820034),i=r(544576),o=r(978227)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}},210757:(e,t,r)=>{"use strict";var n=r(497751),i=r(194901),o=r(401625),a=r(7040),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,s(e))}},72652:(e,t,r)=>{"use strict";var n=r(276080),i=r(969565),o=r(28551),a=r(116823),s=r(144209),c=r(326198),u=r(401625),l=r(70081),d=r(450851),f=r(409539),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,r){var m,y,b,v,w,A,C,E=r&&r.that,x=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),I=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),_=n(t,E),T=function(e){return m&&f(m,"normal",e),new p(!0,e)},M=function(e){return x?(o(e),k?_(e[0],e[1],T):_(e[0],e[1])):k?_(e,T):_(e)};if(S)m=e.iterator;else if(I)m=e;else{if(!(y=d(e)))throw new h(a(e)+" is not iterable");if(s(y)){for(b=0,v=c(e);v>b;b++)if((w=M(e[b]))&&u(g,w))return w;return new p(!1)}m=l(e,y)}for(A=S?e.next:m.next;!(C=i(A,m)).done;){try{w=M(C.value)}catch(P){f(m,"throw",P)}if("object"==typeof w&&w&&u(g,w))return w}return new p(!1)}},409539:(e,t,r)=>{"use strict";var n=r(969565),i=r(28551),o=r(655966);e.exports=function(e,t,r){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(c){s=!0,a=c}if("throw"===t)throw r;if(s)throw a;return i(a),r}},926269:e=>{"use strict";e.exports={}},326198:(e,t,r)=>{"use strict";var n=r(218014);e.exports=function(e){return n(e.length)}},350283:(e,t,r)=>{"use strict";var n=r(179504),i=r(779039),o=r(194901),a=r(39297),s=r(743724),c=r(610350).CONFIGURABLE,u=r(933706),l=r(591181),d=l.enforce,f=l.get,h=String,p=Object.defineProperty,g=n("".slice),m=n("".replace),y=n([].join),b=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),v=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===g(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),b&&r&&a(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=d(e);return a(n,"source")||(n.source=y(v,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return o(this)&&f(this).source||u(this)}),"toString")},80741:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},891955:(e,t,r)=>{"use strict";var n,i,o,a,s,c=r(444576),u=r(193389),l=r(276080),d=r(959225).set,f=r(318265),h=r(689544),p=r(744265),g=r(107860),m=r(216193),y=c.MutationObserver||c.WebKitMutationObserver,b=c.document,v=c.process,w=c.Promise,A=u("queueMicrotask");if(!A){var C=new f,E=function(){var e,t;for(m&&(e=v.domain)&&e.exit();t=C.get();)try{t()}catch(r){throw C.head&&n(),r}e&&e.enter()};h||m||g||!y||!b?!p&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=l(a.then,a),n=function(){s(E)}):m?n=function(){v.nextTick(E)}:(d=l(d,c),n=function(){d(E)}):(i=!0,o=b.createTextNode(""),new y(E).observe(o,{characterData:!0}),n=function(){o.data=i=!i}),A=function(e){C.head||n(),C.add(e)}}e.exports=A},836043:(e,t,r)=>{"use strict";var n=r(479306),i=TypeError,o=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new i("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new o(e)}},160511:(e,t,r)=>{"use strict";var n=r(160788),i=TypeError;e.exports=function(e){if(n(e))throw new i("The method doesn't accept regular expressions");return e}},744213:(e,t,r)=>{"use strict";var n=r(743724),i=r(179504),o=r(969565),a=r(779039),s=r(971072),c=r(933717),u=r(248773),l=r(748981),d=r(169436),f=Object.assign,h=Object.defineProperty,p=i([].concat);e.exports=!f||a((function(){if(n&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach((function(e){t[e]=e})),7!==f({},e)[r]||s(f({},t)).join("")!==i}))?function(e,t){for(var r=l(e),i=arguments.length,a=1,f=c.f,h=u.f;i>a;)for(var g,m=d(arguments[a++]),y=f?p(s(m),f(m)):s(m),b=y.length,v=0;b>v;)g=y[v++],n&&!o(h,m,g)||(r[g]=m[g]);return r}:f},202360:(e,t,r)=>{"use strict";var n,i=r(28551),o=r(696801),a=r(188727),s=r(130421),c=r(20397),u=r(404055),l=r(766119),d="prototype",f="script",h=l("IE_PROTO"),p=function(){},g=function(e){return"<"+f+">"+e+""},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(o){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?m(n):(t=u("iframe"),r="java"+f+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):m(n);for(var i=a.length;i--;)delete y[d][a[i]];return y()};s[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[d]=i(e),r=new p,p[d]=null,r[h]=e):r=y(),void 0===t?r:o.f(r,t)}},696801:(e,t,r)=>{"use strict";var n=r(743724),i=r(48686),o=r(824913),a=r(28551),s=r(225397),c=r(971072);t.f=n&&!i?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),i=c(t),u=i.length,l=0;u>l;)o.f(e,r=i[l++],n[r]);return e}},824913:(e,t,r)=>{"use strict";var n=r(743724),i=r(135917),o=r(48686),a=r(28551),s=r(956969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",h="writable";t.f=n?o?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:d in r?r[d]:n[d],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),i)try{return u(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},377347:(e,t,r)=>{"use strict";var n=r(743724),i=r(969565),o=r(248773),a=r(406980),s=r(225397),c=r(956969),u=r(39297),l=r(135917),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=c(t),l)try{return d(e,t)}catch(r){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},138480:(e,t,r)=>{"use strict";var n=r(961828),i=r(188727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},933717:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},401625:(e,t,r)=>{"use strict";var n=r(179504);e.exports=n({}.isPrototypeOf)},961828:(e,t,r)=>{"use strict";var n=r(179504),i=r(39297),o=r(225397),a=r(919617).indexOf,s=r(130421),c=n([].push);e.exports=function(e,t){var r,n=o(e),u=0,l=[];for(r in n)!i(s,r)&&i(n,r)&&c(l,r);for(;t.length>u;)i(n,r=t[u++])&&(~a(l,r)||c(l,r));return l}},971072:(e,t,r)=>{"use strict";var n=r(961828),i=r(188727);e.exports=Object.keys||function(e){return n(e,i)}},248773:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},152967:(e,t,r)=>{"use strict";var n=r(146706),i=r(820034),o=r(567750),a=r(473506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(s){}return function(r,n){return o(r),a(n),i(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},153179:(e,t,r)=>{"use strict";var n=r(92140),i=r(136955);e.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},784270:(e,t,r)=>{"use strict";var n=r(969565),i=r(194901),o=r(820034),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&i(r=e.toString)&&!o(s=n(r,e)))return s;if(i(r=e.valueOf)&&!o(s=n(r,e)))return s;if("string"!==t&&i(r=e.toString)&&!o(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},135031:(e,t,r)=>{"use strict";var n=r(497751),i=r(179504),o=r(138480),a=r(933717),s=r(28551),c=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=a.f;return r?c(t,r(e)):t}},201103:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},10916:(e,t,r)=>{"use strict";var n=r(444576),i=r(880550),o=r(194901),a=r(492796),s=r(933706),c=r(978227),u=r(184215),l=r(996395),d=r(839519),f=i&&i.prototype,h=c("species"),p=!1,g=o(n.PromiseRejectionEvent),m=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===d)return!0;if(l&&(!f.catch||!f.finally))return!0;if(!d||d<51||!/native code/.test(e)){var r=new i((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(p=r.then((function(){}))instanceof n))return!0}return!(t||"BROWSER"!==u&&"DENO"!==u||g)}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:p}},880550:(e,t,r)=>{"use strict";var n=r(444576);e.exports=n.Promise},393438:(e,t,r)=>{"use strict";var n=r(28551),i=r(820034),o=r(836043);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},990537:(e,t,r)=>{"use strict";var n=r(880550),i=r(684428),o=r(10916).CONSTRUCTOR;e.exports=o||!i((function(e){n.all(e).then(void 0,(function(){}))}))},318265:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},957323:(e,t,r)=>{"use strict";var n,i,o=r(969565),a=r(179504),s=r(500655),c=r(867979),u=r(358429),l=r(725745),d=r(202360),f=r(591181).get,h=r(383635),p=r(718814),g=l("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,y=m,b=a("".charAt),v=a("".indexOf),w=a("".replace),A=a("".slice),C=(i=/b*/g,o(m,n=/a/,"a"),o(m,i,"a"),0!==n.lastIndex||0!==i.lastIndex),E=u.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(C||x||E||h||p)&&(y=function(e){var t,r,n,i,a,u,l,h=this,p=f(h),S=s(e),I=p.raw;if(I)return I.lastIndex=h.lastIndex,t=o(y,I,S),h.lastIndex=I.lastIndex,t;var k=p.groups,_=E&&h.sticky,T=o(c,h),M=h.source,P=0,j=S;if(_&&(T=w(T,"y",""),-1===v(T,"g")&&(T+="g"),j=A(S,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==b(S,h.lastIndex-1))&&(M="(?: "+M+")",j=" "+j,P++),r=new RegExp("^(?:"+M+")",T)),x&&(r=new RegExp("^"+M+"$(?!\\s)",T)),C&&(n=h.lastIndex),i=o(m,_?r:h,j),_?i?(i.input=A(i.input,P),i[0]=A(i[0],P),i.index=h.lastIndex,h.lastIndex+=i[0].length):h.lastIndex=0:C&&i&&(h.lastIndex=h.global?i.index+i[0].length:n),x&&i&&i.length>1&&o(g,i[0],r,(function(){for(a=1;a{"use strict";var n=r(28551);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},358429:(e,t,r)=>{"use strict";var n=r(779039),i=r(444576).RegExp,o=n((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=o||n((function(){return!i("a","y").sticky})),s=o||n((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},383635:(e,t,r)=>{"use strict";var n=r(779039),i=r(444576).RegExp;e.exports=n((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},718814:(e,t,r)=>{"use strict";var n=r(779039),i=r(444576).RegExp;e.exports=n((function(){var e=i("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},567750:(e,t,r)=>{"use strict";var n=r(964117),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},193389:(e,t,r)=>{"use strict";var n=r(444576),i=r(743724),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return n[e];var t=o(n,e);return t&&t.value}},987633:(e,t,r)=>{"use strict";var n=r(497751),i=r(562106),o=r(978227),a=r(743724),s=o("species");e.exports=function(e){var t=n(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},910687:(e,t,r)=>{"use strict";var n=r(824913).f,i=r(39297),o=r(978227)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!i(e,o)&&n(e,o,{configurable:!0,value:t})}},766119:(e,t,r)=>{"use strict";var n=r(725745),i=r(733392),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},477629:(e,t,r)=>{"use strict";var n=r(996395),i=r(444576),o=r(939433),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},725745:(e,t,r)=>{"use strict";var n=r(477629);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},602293:(e,t,r)=>{"use strict";var n=r(28551),i=r(35548),o=r(964117),a=r(978227)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||o(r=n(s)[a])?t:i(r)}},604495:(e,t,r)=>{"use strict";var n=r(839519),i=r(779039),o=r(444576).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},959225:(e,t,r)=>{"use strict";var n,i,o,a,s=r(444576),c=r(318745),u=r(276080),l=r(194901),d=r(39297),f=r(779039),h=r(20397),p=r(867680),g=r(404055),m=r(422812),y=r(689544),b=r(216193),v=s.setImmediate,w=s.clearImmediate,A=s.process,C=s.Dispatch,E=s.Function,x=s.MessageChannel,S=s.String,I=0,k={},_="onreadystatechange";f((function(){n=s.location}));var T=function(e){if(d(k,e)){var t=k[e];delete k[e],t()}},M=function(e){return function(){T(e)}},P=function(e){T(e.data)},j=function(e){s.postMessage(S(e),n.protocol+"//"+n.host)};v&&w||(v=function(e){m(arguments.length,1);var t=l(e)?e:E(e),r=p(arguments,1);return k[++I]=function(){c(t,void 0,r)},i(I),I},w=function(e){delete k[e]},b?i=function(e){A.nextTick(M(e))}:C&&C.now?i=function(e){C.now(M(e))}:x&&!y?(a=(o=new x).port2,o.port1.onmessage=P,i=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(j)?(i=j,s.addEventListener("message",P,!1)):i=_ in g("script")?function(e){h.appendChild(g("script"))[_]=function(){h.removeChild(this),T(e)}}:function(e){setTimeout(M(e),0)}),e.exports={set:v,clear:w}},435610:(e,t,r)=>{"use strict";var n=r(991291),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},225397:(e,t,r)=>{"use strict";var n=r(169436),i=r(567750);e.exports=function(e){return n(i(e))}},991291:(e,t,r)=>{"use strict";var n=r(80741);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},218014:(e,t,r)=>{"use strict";var n=r(991291),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},748981:(e,t,r)=>{"use strict";var n=r(567750),i=Object;e.exports=function(e){return i(n(e))}},872777:(e,t,r)=>{"use strict";var n=r(969565),i=r(820034),o=r(210757),a=r(655966),s=r(784270),c=r(978227),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!i(r)||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},956969:(e,t,r)=>{"use strict";var n=r(872777),i=r(210757);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},92140:(e,t,r)=>{"use strict";var n={};n[r(978227)("toStringTag")]="z",e.exports="[object z]"===String(n)},500655:(e,t,r)=>{"use strict";var n=r(136955),i=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},116823:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},733392:(e,t,r)=>{"use strict";var n=r(179504),i=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},7040:(e,t,r)=>{"use strict";var n=r(604495);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686:(e,t,r)=>{"use strict";var n=r(743724),i=r(779039);e.exports=n&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},422812:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e{"use strict";var n=r(444576),i=r(194901),o=n.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},978227:(e,t,r)=>{"use strict";var n=r(444576),i=r(725745),o=r(39297),a=r(733392),s=r(604495),c=r(7040),u=n.Symbol,l=i("wks"),d=c?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=s&&o(u,e)?u[e]:d("Symbol."+e)),l[e]}},874423:(e,t,r)=>{"use strict";var n=r(746518),i=r(919617).includes,o=r(779039),a=r(206469);n({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},272712:(e,t,r)=>{"use strict";var n=r(746518),i=r(580926).left,o=r(234598),a=r(839519);n({target:"Array",proto:!0,forced:!r(216193)&&a>79&&a<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},369085:(e,t,r)=>{"use strict";var n=r(746518),i=r(744213);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},426099:(e,t,r)=>{"use strict";var n=r(92140),i=r(436840),o=r(153179);n||i(Object.prototype,"toString",o,{unsafe:!0})},316499:(e,t,r)=>{"use strict";var n=r(746518),i=r(969565),o=r(479306),a=r(836043),s=r(201103),c=r(72652);n({target:"Promise",stat:!0,forced:r(990537)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,u=r.reject,l=s((function(){var r=o(t.resolve),a=[],s=0,l=1;c(e,(function(e){var o=s++,c=!1;l++,i(r,t,e).then((function(e){c||(c=!0,a[o]=e,--l||n(a))}),u)})),--l||n(a)}));return l.error&&u(l.value),r.promise}})},282003:(e,t,r)=>{"use strict";var n=r(746518),i=r(996395),o=r(10916).CONSTRUCTOR,a=r(880550),s=r(497751),c=r(194901),u=r(436840),l=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&c(a)){var d=s("Promise").prototype.catch;l.catch!==d&&u(l,"catch",d,{unsafe:!0})}},610436:(e,t,r)=>{"use strict";var n,i,o,a=r(746518),s=r(996395),c=r(216193),u=r(444576),l=r(969565),d=r(436840),f=r(152967),h=r(910687),p=r(987633),g=r(479306),m=r(194901),y=r(820034),b=r(190679),v=r(602293),w=r(959225).set,A=r(891955),C=r(690757),E=r(201103),x=r(318265),S=r(591181),I=r(880550),k=r(10916),_=r(836043),T="Promise",M=k.CONSTRUCTOR,P=k.REJECTION_EVENT,j=k.SUBCLASSING,D=S.getterFor(T),O=S.set,B=I&&I.prototype,N=I,R=B,L=u.TypeError,F=u.document,U=u.process,z=_.f,H=z,V=!!(F&&F.createEvent&&u.dispatchEvent),K="unhandledrejection",G=function(e){var t;return!(!y(e)||!m(t=e.then))&&t},q=function(e,t){var r,n,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&Z(t),t.rejection=1),!0===s?r=o:(d&&d.enter(),r=s(o),d&&(d.exit(),i=!0)),r===e.promise?u(new L("Promise-chain cycle")):(n=G(r))?l(n,r,c,u):c(r)):u(o)}catch(f){d&&!i&&d.exit(),u(f)}},Q=function(e,t){e.notified||(e.notified=!0,A((function(){for(var r,n=e.reactions;r=n.get();)q(r,e);e.notified=!1,t&&!e.rejection&&J(e)})))},W=function(e,t,r){var n,i;V?((n=F.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!P&&(i=u["on"+e])?i(n):e===K&&C("Unhandled promise rejection",r)},J=function(e){l(w,u,(function(){var t,r=e.facade,n=e.value;if(Y(e)&&(t=E((function(){c?U.emit("unhandledRejection",n,r):W(K,r,n)})),e.rejection=c||Y(e)?2:1,t.error))throw t.value}))},Y=function(e){return 1!==e.rejection&&!e.parent},Z=function(e){l(w,u,(function(){var t=e.facade;c?U.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)}))},$=function(e,t,r){return function(n){e(t,n,r)}},X=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Q(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new L("Promise can't be resolved itself");var n=G(t);n?A((function(){var r={done:!1};try{l(n,t,$(ee,r,e),$(X,r,e))}catch(i){X(r,i,e)}})):(e.value=t,e.state=1,Q(e,!1))}catch(i){X({done:!1},i,e)}}};if(M&&(R=(N=function(e){b(this,R),g(e),l(n,this);var t=D(this);try{e($(ee,t),$(X,t))}catch(r){X(t,r)}}).prototype,(n=function(e){O(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:0,value:null})}).prototype=d(R,"then",(function(e,t){var r=D(this),n=z(v(this,N));return r.parent=!0,n.ok=!m(e)||e,n.fail=m(t)&&t,n.domain=c?U.domain:void 0,0===r.state?r.reactions.add(n):A((function(){q(n,r)})),n.promise})),i=function(){var e=new n,t=D(e);this.promise=e,this.resolve=$(ee,t),this.reject=$(X,t)},_.f=z=function(e){return e===N||undefined===e?new i(e):H(e)},!s&&m(I)&&B!==Object.prototype)){o=B.then,j||d(B,"then",(function(e,t){var r=this;return new N((function(e,t){l(o,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete B.constructor}catch(te){}f&&f(B,R)}a({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:N}),h(N,T,!1,!0),p(T)},703362:(e,t,r)=>{"use strict";r(610436),r(316499),r(282003),r(7743),r(251481),r(240280)},7743:(e,t,r)=>{"use strict";var n=r(746518),i=r(969565),o=r(479306),a=r(836043),s=r(201103),c=r(72652);n({target:"Promise",stat:!0,forced:r(990537)},{race:function(e){var t=this,r=a.f(t),n=r.reject,u=s((function(){var a=o(t.resolve);c(e,(function(e){i(a,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},251481:(e,t,r)=>{"use strict";var n=r(746518),i=r(836043);n({target:"Promise",stat:!0,forced:r(10916).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return(0,t.reject)(e),t.promise}})},240280:(e,t,r)=>{"use strict";var n=r(746518),i=r(497751),o=r(996395),a=r(880550),s=r(10916).CONSTRUCTOR,c=r(393438),u=i("Promise"),l=o&&!s;n({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return c(l&&this===u?a:this,e)}})},327495:(e,t,r)=>{"use strict";var n=r(746518),i=r(957323);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},21699:(e,t,r)=>{"use strict";var n=r(746518),i=r(179504),o=r(160511),a=r(567750),s=r(500655),c=r(541436),u=i("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},334110:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasCORS=void 0;let r=!1;try{r="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(n){}t.hasCORS=r},428661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encode=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t},t.decode=function(e){let t={},r=e.split("&");for(let n=0,i=r.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e){if(e.length>8e3)throw"URI too long";const t=e,i=e.indexOf("["),o=e.indexOf("]");-1!=i&&-1!=o&&(e=e.substring(0,i)+e.substring(i,o).replace(/:/g,";")+e.substring(o,e.length));let a=r.exec(e||""),s={},c=14;for(;c--;)s[n[c]]=a[c]||"";-1!=i&&-1!=o&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0);return s.pathNames=function(e,t){const r=t.replace(/\/{2,9}/g,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,s.path),s.queryKey=function(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(r[t]=n)})),r}(0,s.query),s};const r=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]},814624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.globalThisShim=t.nextTick=void 0,t.createCookieJar=function(){},t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.globalThisShim="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")(),t.defaultBinaryType="arraybuffer"},804956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebTransport=t.WebSocket=t.NodeWebSocket=t.XHR=t.NodeXHR=t.Fetch=t.nextTick=t.parse=t.installTimerFunctions=t.transports=t.TransportError=t.Transport=t.protocol=t.SocketWithUpgrade=t.SocketWithoutUpgrade=t.Socket=void 0;const n=r(78223);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}});var i=r(78223);Object.defineProperty(t,"SocketWithoutUpgrade",{enumerable:!0,get:function(){return i.SocketWithoutUpgrade}}),Object.defineProperty(t,"SocketWithUpgrade",{enumerable:!0,get:function(){return i.SocketWithUpgrade}}),t.protocol=n.Socket.protocol;var o=r(644689);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return o.Transport}}),Object.defineProperty(t,"TransportError",{enumerable:!0,get:function(){return o.TransportError}});var a=r(319419);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return a.transports}});var s=r(185374);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var c=r(391015);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return c.parse}});var u=r(814624);Object.defineProperty(t,"nextTick",{enumerable:!0,get:function(){return u.nextTick}});var l=r(508209);Object.defineProperty(t,"Fetch",{enumerable:!0,get:function(){return l.Fetch}});var d=r(242071);Object.defineProperty(t,"NodeXHR",{enumerable:!0,get:function(){return d.XHR}});var f=r(242071);Object.defineProperty(t,"XHR",{enumerable:!0,get:function(){return f.XHR}});var h=r(538716);Object.defineProperty(t,"NodeWebSocket",{enumerable:!0,get:function(){return h.WS}});var p=r(538716);Object.defineProperty(t,"WebSocket",{enumerable:!0,get:function(){return p.WS}});var g=r(844480);Object.defineProperty(t,"WebTransport",{enumerable:!0,get:function(){return g.WT}})},78223:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=t.SocketWithUpgrade=t.SocketWithoutUpgrade=void 0;const i=r(319419),o=r(185374),a=r(428661),s=r(391015),c=r(124454),u=r(646376),l=r(814624),d=(0,n(r(456617)).default)("engine.io-client:socket"),f="function"==typeof addEventListener&&"function"==typeof removeEventListener,h=[];f&&addEventListener("offline",(()=>{d("closing %d connection(s) because the network was lost",h.length),h.forEach((e=>e()))}),!1);class p extends c.Emitter{constructor(e,t){if(super(),this.binaryType=l.defaultBinaryType,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const r=(0,s.parse)(e);t.hostname=r.host,t.secure="https"===r.protocol||"wss"===r.protocol,t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=(0,s.parse)(t.host).host);(0,o.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach((e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})),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?"/":""),"string"==typeof this.opts.query&&(this.opts.query=(0,a.decode)(this.opts.query)),f&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(d("adding listener for the 'offline' event"),this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},h.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=(0,l.createCookieJar)()),this._open()}createTransport(e){d('creating transport "%s"',e);const t=Object.assign({},this.opts.query);t.EIO=u.protocol,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return d("options: %j",r),new this._transportsByName[e](r)}_open(){if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);const e=this.opts.rememberUpgrade&&p.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){d("setting transport %s",e.name),this.transport&&(d("clearing existing transport %s",this.transport.name),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",(e=>this._onClose("transport close",e)))}onOpen(){d("socket open"),this.readyState="open",p.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(d('socket receive: type "%s", data "%s"',e.type,e.data),this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();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)}else d('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn((()=>{this._onClose("ping timeout")}),e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();d("flushing %d packets in socket",e.length),this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t0&&e>this._maxPayload)return d("only send %d out of %d packets",t,this.writeBuffer.length),this.writeBuffer.slice(0,t);e+=2}return d("payload size is %d (max: %d)",e,this._maxPayload),this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(d("throttled timer detected, scheduling connection close"),this._pingTimeoutTime=0,(0,l.nextTick)((()=>{this._onClose("ping timeout")}),this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this._onClose("forced close"),d("socket closing - telling transport to close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?r():e()})):this.upgrading?r():e()),this}_onError(e){if(d("socket error %j",e),p.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return d("trying next transport"),this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(d('socket close with reason: "%s"',e),this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),f&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=h.indexOf(this._offlineEventListener);-1!==e&&(d("removing listener for the 'offline' event"),h.splice(e,1))}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}t.SocketWithoutUpgrade=p,p.protocol=u.protocol;class g extends p{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade){d("starting upgrade probes");for(let e=0;e{r||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!r)if("pong"===n.type&&"probe"===n.data){if(d('probe transport "%s" pong',e),this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;p.priorWebsocketSuccess="websocket"===t.name,d('pausing current transport "%s"',this.transport.name),this.transport.pause((()=>{r||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{d('probe transport "%s" failed',e);const r=new Error("probe error");r.transport=t.name,this.emitReserved("upgradeError",r)}})))};function i(){r||(r=!0,u(),t.close(),t=null)}const o=r=>{const n=new Error("probe error: "+r);n.transport=t.name,i(),d('probe transport "%s" failed because of error: %s',e,r),this.emitReserved("upgradeError",n)};function a(){o("transport closed")}function s(){o("socket closed")}function c(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),i())}const u=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",c)};t.once("open",n),t.once("error",o),t.once("close",a),this.once("close",s),this.once("upgrading",c),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{r||t.open()}),200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let r=0;ri.transports[e])).filter((e=>!!e))),super(e,r)}}},644689:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=t.TransportError=void 0;const i=r(646376),o=r(124454),a=r(185374),s=r(428661),c=(0,n(r(456617)).default)("engine.io-client:transport");class u extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}t.TransportError=u;class l extends o.Emitter{constructor(e){super(),this.writable=!1,(0,a.installTimerFunctions)(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new u(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState?this.write(e):c("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=(0,i.decodePacket)(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-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=(0,s.encode)(e);return t.length?"?"+t:""}}t.Transport=l},319419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=r(242071),i=r(538716),o=r(844480);t.transports={websocket:i.WS,webtransport:o.WT,polling:n.XHR}},508209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Fetch=void 0;const n=r(630528);class i extends n.Polling{doPoll(){this._fetch().then((e=>{if(!e.ok)return this.onError("fetch read error",e.status,e);e.text().then((e=>this.onData(e)))})).catch((e=>{this.onError("fetch read error",e)}))}doWrite(e,t){this._fetch(e).then((e=>{if(!e.ok)return this.onError("fetch write error",e.status,e);t()})).catch((e=>{this.onError("fetch write error",e)}))}_fetch(e){var t;const r=void 0!==e,n=new Headers(this.opts.extraHeaders);return r&&n.set("content-type","text/plain;charset=UTF-8"),null===(t=this.socket._cookieJar)||void 0===t||t.appendCookies(n),fetch(this.uri(),{method:r?"POST":"GET",body:r?e:null,headers:n,credentials:this.opts.withCredentials?"include":"omit"}).then((e=>{var t;return null===(t=this.socket._cookieJar)||void 0===t||t.parseCookies(e.headers.getSetCookie()),e}))}}t.Fetch=i},242071:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=t.Request=t.BaseXHR=void 0;const i=r(630528),o=r(124454),a=r(185374),s=r(814624),c=r(334110),u=(0,n(r(456617)).default)("engine.io-client:polling");function l(){}class d extends i.Polling{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){u("xhr poll");const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}t.BaseXHR=d;class f extends o.Emitter{constructor(e,t,r){super(),this.createRequest=e,(0,a.installTimerFunctions)(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var e;const t=(0,a.pick)(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(t);try{u("xhr open %s: %s",this._method,this._uri),r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(n){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(n){}try{r.setRequestHeader("Accept","*/*")}catch(n){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.status||1223===r.status?this._onLoad():this.setTimeoutFn((()=>{this._onError("number"==typeof r.status?r.status:0)}),0))},u("xhr data %s",this._data),r.send(this._data)}catch(n){return void this.setTimeoutFn((()=>{this._onError(n)}),0)}"undefined"!=typeof document&&(this._index=f.requestsCount++,f.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=l,e)try{this._xhr.abort()}catch(t){}"undefined"!=typeof document&&delete f.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(t.Request=f,f.requestsCount=0,f.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",h);else if("function"==typeof addEventListener){const e="onpagehide"in s.globalThisShim?"pagehide":"unload";addEventListener(e,h,!1)}function h(){for(let e in f.requests)f.requests.hasOwnProperty(e)&&f.requests[e].abort()}const p=function(){const e=g({xdomain:!1});return e&&null!==e.responseType}();function g(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||c.hasCORS))return new XMLHttpRequest}catch(r){}if(!t)try{return new(s.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(r){}}t.XHR=class extends d{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=p&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new f(g,this.uri(),e)}}},630528:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Polling=void 0;const i=r(644689),o=r(185374),a=r(646376),s=(0,n(r(456617)).default)("engine.io-client:polling");class c extends i.Transport{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{s("paused"),this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(s("we are currently polling - waiting to pause"),e++,this.once("pollComplete",(function(){s("pre-pause polling complete"),--e||t()}))),this.writable||(s("we are currently writing - waiting to pause"),e++,this.once("drain",(function(){s("pre-pause writing complete"),--e||t()})))}else t()}_poll(){s("polling"),this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){s("polling got data %s",e);(0,a.decodePayload)(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState?this._poll():s('ignoring poll - transport state "%s"',this.readyState))}doClose(){const e=()=>{s("writing close packet"),this.write([{type:"close"}])};"open"===this.readyState?(s("transport open - closing"),e()):(s("transport not open - deferring close"),this.once("open",e))}write(e){this.writable=!1,(0,a.encodePayload)(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,o.randomString)()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}t.Polling=c},538716:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=t.BaseWS=void 0;const i=r(644689),o=r(185374),a=r(646376),s=r(814624),c=(0,n(r(456617)).default)("engine.io-client:websocket"),u="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class l extends i.Transport{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,r=u?{}:(0,o.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(n){return this.emitReserved("error",n)}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{try{this.doWrite(r,e)}catch(t){c("websocket closed before onclose event")}n&&(0,s.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},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]=(0,o.randomString)()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}t.BaseWS=l;const d=s.globalThisShim.WebSocket||s.globalThisShim.MozWebSocket;t.WS=class extends l{createSocket(e,t,r){return u?new d(e,t,r):t?new d(e,t):new d(e)}doWrite(e,t){this.ws.send(t)}}},844480:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WT=void 0;const i=r(644689),o=r(814624),a=r(646376),s=(0,n(r(456617)).default)("engine.io-client:webtransport");class c extends i.Transport{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then((()=>{s("transport closed gracefully"),this.onClose()})).catch((e=>{s("transport closed due to %s",e),this.onError("webtransport error",e)})),this._transport.ready.then((()=>{this._transport.createBidirectionalStream().then((e=>{const t=(0,a.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=(0,a.createPacketEncoderStream)();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();const i=()=>{r.read().then((({done:e,value:t})=>{e?s("session is closed"):(s("received chunk: %o",t),this.onPacket(t),i())})).catch((e=>{s("an error occurred while reading: %s",e)}))};i();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{n&&(0,o.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}}t.WT=c},185374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pick=function(e,...t){return t.reduce(((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t)),{})},t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=i.bind(n.globalThisShim),e.clearTimeoutFn=o.bind(n.globalThisShim)):(e.setTimeoutFn=n.globalThisShim.setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=n.globalThisShim.clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){if("string"==typeof e)return function(e){let t=0,r=0;for(let n=0,i=e.length;n=57344?r+=3:(n++,r+=4);return r}(e);return Math.ceil((e.byteLength||e.size)*a)},t.randomString=function(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)};const n=r(814624);const i=n.globalThisShim.setTimeout,o=n.globalThisShim.clearTimeout;const a=1.33},562046:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_PACKET=t.PACKET_TYPES_REVERSE=t.PACKET_TYPES=void 0;const r=Object.create(null);t.PACKET_TYPES=r,r.open="0",r.close="1",r.ping="2",r.pong="3",r.message="4",r.upgrade="5",r.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(r).forEach((e=>{n[r[e]]=e}));t.ERROR_PACKET={type:"error",data:"parser error"}},142745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0;const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let i=0;i<64;i++)n[r.charCodeAt(i)]=i;t.encode=e=>{let t,n=new Uint8Array(e),i=n.length,o="";for(t=0;t>2],o+=r[(3&n[t])<<4|n[t+1]>>4],o+=r[(15&n[t+1])<<2|n[t+2]>>6],o+=r[63&n[t+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o};t.decode=e=>{let t,r,i,o,a,s=.75*e.length,c=e.length,u=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);const l=new ArrayBuffer(s),d=new Uint8Array(l);for(t=0;t>4,d[u++]=(15&i)<<4|o>>2,d[u++]=(3&o)<<6|63&a;return l}},932662:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePacket=void 0;const n=r(562046),i=r(142745),o="function"==typeof ArrayBuffer;t.decodePacket=(e,t)=>{if("string"!=typeof e)return{type:"message",data:s(e,t)};const r=e.charAt(0);if("b"===r)return{type:"message",data:a(e.substring(1),t)};return n.PACKET_TYPES_REVERSE[r]?e.length>1?{type:n.PACKET_TYPES_REVERSE[r],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[r]}:n.ERROR_PACKET};const a=(e,t)=>{if(o){const r=(0,i.decode)(e);return s(r,t)}return{base64:!0,data:e}},s=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer},902686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacket=void 0,t.encodePacketToBinary=function(e,t){if(i&&e.data instanceof Blob)return e.data.arrayBuffer().then(u).then(t);if(o&&(e.data instanceof ArrayBuffer||a(e.data)))return t(u(e.data));s(e,!1,(e=>{l||(l=new TextEncoder),t(l.encode(e))}))};const n=r(562046),i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),o="function"==typeof ArrayBuffer,a=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,s=({type:e,data:t},r,s)=>i&&t instanceof Blob?r?s(t):c(t,s):o&&(t instanceof ArrayBuffer||a(t))?r?s(t):c(new Blob([t]),s):s(n.PACKET_TYPES[e]+(t||""));t.encodePacket=s;const c=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function u(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let l},646376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0,t.createPacketEncoderStream=function(){return new TransformStream({transform(e,t){(0,n.encodePacketToBinary)(e,(r=>{const n=r.length;let i;if(n<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,n);else if(n<65536){i=new Uint8Array(3);const e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,n)}else{i=new Uint8Array(9);const e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(i[0]|=128),t.enqueue(i),t.enqueue(r)}))}})},t.createPacketDecoderStream=function(e,t){s||(s=new TextDecoder);const r=[];let n=0,a=-1,l=!1;return new TransformStream({transform(d,f){for(r.push(d);;){if(0===n){if(c(r)<1)break;const e=u(r,1);l=!(128&~e[0]),a=127&e[0],n=a<126?3:126===a?1:2}else if(1===n){if(c(r)<2)break;const e=u(r,2);a=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(c(r)<8)break;const e=u(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){f.enqueue(o.ERROR_PACKET);break}a=i*Math.pow(2,32)+t.getUint32(4),n=3}else{if(c(r)e){f.enqueue(o.ERROR_PACKET);break}}}})};const n=r(902686);Object.defineProperty(t,"encodePacket",{enumerable:!0,get:function(){return n.encodePacket}});const i=r(932662);Object.defineProperty(t,"decodePacket",{enumerable:!0,get:function(){return i.decodePacket}});const o=r(562046),a=String.fromCharCode(30);t.encodePayload=(e,t)=>{const r=e.length,i=new Array(r);let o=0;e.forEach(((e,s)=>{(0,n.encodePacket)(e,!1,(e=>{i[s]=e,++o===r&&t(i.join(a))}))}))};let s;function c(e){return e.reduce(((e,t)=>e+t.length),0)}function u(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let i=0;i{const r=e.split(a),n=[];for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n=new Set,i="object"==typeof process&&process?process:{},o=(e,t,r,n)=>{"function"==typeof i.emitWarning?i.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)};let a=globalThis.AbortController,s=globalThis.AbortSignal;if(void 0===a){s=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},a=class{constructor(){t()}signal=new s;abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(const t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e="1"!==i.env?.LRU_CACHE_IGNORE_AC_WARNING;const t=()=>{e&&(e=!1,o("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}Symbol("type");const c=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),u=e=>c(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?l:null:null;class l extends Array{constructor(e){super(e),this.fill(0)}}class d{heap;length;static#e=!1;static create(e){const t=u(e);if(!t)return[];d.#e=!0;const r=new d(e,t);return d.#e=!1,r}constructor(e,t){if(!d.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class f{#t;#r;#n;#i;#o;#a;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#s;#c;#u;#l;#d;#f;#h;#p;#g;#m;#y;#b;#v;#w;#A;#C;#E;static unsafeExposeInternals(e){return{starts:e.#v,ttls:e.#w,sizes:e.#b,keyMap:e.#u,keyList:e.#l,valList:e.#d,next:e.#f,prev:e.#h,get head(){return e.#p},get tail(){return e.#g},free:e.#m,isBackgroundFetch:t=>e.#x(t),backgroundFetch:(t,r,n,i)=>e.#S(t,r,n,i),moveToTail:t=>e.#I(t),indexes:t=>e.#k(t),rindexes:t=>e.#_(t),isStale:t=>e.#T(t)}}get max(){return this.#t}get maxSize(){return this.#r}get calculatedSize(){return this.#c}get size(){return this.#s}get fetchMethod(){return this.#o}get memoMethod(){return this.#a}get dispose(){return this.#n}get disposeAfter(){return this.#i}constructor(e){const{max:t=0,ttl:r,ttlResolution:i=1,ttlAutopurge:a,updateAgeOnGet:s,updateAgeOnHas:l,allowStale:h,dispose:p,disposeAfter:g,noDisposeOnSet:m,noUpdateTTL:y,maxSize:b=0,maxEntrySize:v=0,sizeCalculation:w,fetchMethod:A,memoMethod:C,noDeleteOnFetchRejection:E,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:I,ignoreFetchAbort:k}=e;if(0!==t&&!c(t))throw new TypeError("max option must be a nonnegative integer");const _=t?u(t):Array;if(!_)throw new Error("invalid max value: "+t);if(this.#t=t,this.#r=b,this.maxEntrySize=v||this.#r,this.sizeCalculation=w,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==C&&"function"!=typeof C)throw new TypeError("memoMethod must be a function if defined");if(this.#a=C,void 0!==A&&"function"!=typeof A)throw new TypeError("fetchMethod must be a function if specified");if(this.#o=A,this.#C=!!A,this.#u=new Map,this.#l=new Array(t).fill(void 0),this.#d=new Array(t).fill(void 0),this.#f=new _(t),this.#h=new _(t),this.#p=0,this.#g=0,this.#m=d.create(t),this.#s=0,this.#c=0,"function"==typeof p&&(this.#n=p),"function"==typeof g?(this.#i=g,this.#y=[]):(this.#i=void 0,this.#y=void 0),this.#A=!!this.#n,this.#E=!!this.#i,this.noDisposeOnSet=!!m,this.noUpdateTTL=!!y,this.noDeleteOnFetchRejection=!!E,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!I,this.ignoreFetchAbort=!!k,0!==this.maxEntrySize){if(0!==this.#r&&!c(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!c(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#M()}if(this.allowStale=!!h,this.noDeleteOnStaleGet=!!x,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!l,this.ttlResolution=c(i)||0===i?i:1,this.ttlAutopurge=!!a,this.ttl=r||0,this.ttl){if(!c(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#P()}if(0===this.#t&&0===this.ttl&&0===this.#r)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#t&&!this.#r){const e="LRU_CACHE_UNBOUNDED";if((e=>!n.has(e))(e)){n.add(e);o("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,f)}}}getRemainingTTL(e){return this.#u.has(e)?1/0:0}#P(){const e=new l(this.#t),t=new l(this.#t);this.#w=e,this.#v=t,this.#j=(n,i,o=r.now())=>{if(t[n]=0!==i?o:0,e[n]=i,0!==i&&this.ttlAutopurge){const e=setTimeout((()=>{this.#T(n)&&this.#D(this.#l[n],"expire")}),i+1);e.unref&&e.unref()}},this.#O=n=>{t[n]=0!==e[n]?r.now():0},this.#B=(r,o)=>{if(e[o]){const a=e[o],s=t[o];if(!a||!s)return;r.ttl=a,r.start=s,r.now=n||i();const c=r.now-s;r.remainingTTL=a-c}};let n=0;const i=()=>{const e=r.now();if(this.ttlResolution>0){n=e;const t=setTimeout((()=>n=0),this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=r=>{const o=this.#u.get(r);if(void 0===o)return 0;const a=e[o],s=t[o];if(!a||!s)return 1/0;return a-((n||i())-s)},this.#T=r=>{const o=t[r],a=e[r];return!!a&&!!o&&(n||i())-o>a}}#O=()=>{};#B=()=>{};#j=()=>{};#T=()=>!1;#M(){const e=new l(this.#t);this.#c=0,this.#b=e,this.#N=t=>{this.#c-=e[t],e[t]=0},this.#R=(e,t,r,n)=>{if(this.#x(t))return 0;if(!c(r)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!c(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.#L=(t,r,n)=>{if(e[t]=r,this.#r){const r=this.#r-e[t];for(;this.#c>r;)this.#F(!0)}this.#c+=e[t],n&&(n.entrySize=r,n.totalCalculatedSize=this.#c)}}#N=e=>{};#L=(e,t,r)=>{};#R=(e,t,r,n)=>{if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#k({allowStale:e=this.allowStale}={}){if(this.#s)for(let t=this.#g;this.#U(t)&&(!e&&this.#T(t)||(yield t),t!==this.#p);)t=this.#h[t]}*#_({allowStale:e=this.allowStale}={}){if(this.#s)for(let t=this.#p;this.#U(t)&&(!e&&this.#T(t)||(yield t),t!==this.#g);)t=this.#f[t]}#U(e){return void 0!==e&&this.#u.get(this.#l[e])===e}*entries(){for(const e of this.#k())void 0===this.#d[e]||void 0===this.#l[e]||this.#x(this.#d[e])||(yield[this.#l[e],this.#d[e]])}*rentries(){for(const e of this.#_())void 0===this.#d[e]||void 0===this.#l[e]||this.#x(this.#d[e])||(yield[this.#l[e],this.#d[e]])}*keys(){for(const e of this.#k()){const t=this.#l[e];void 0===t||this.#x(this.#d[e])||(yield t)}}*rkeys(){for(const e of this.#_()){const t=this.#l[e];void 0===t||this.#x(this.#d[e])||(yield t)}}*values(){for(const e of this.#k()){void 0===this.#d[e]||this.#x(this.#d[e])||(yield this.#d[e])}}*rvalues(){for(const e of this.#_()){void 0===this.#d[e]||this.#x(this.#d[e])||(yield this.#d[e])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(const r of this.#k()){const n=this.#d[r],i=this.#x(n)?n.__staleWhileFetching:n;if(void 0!==i&&e(i,this.#l[r],this))return this.get(this.#l[r],t)}}forEach(e,t=this){for(const r of this.#k()){const n=this.#d[r],i=this.#x(n)?n.__staleWhileFetching:n;void 0!==i&&e.call(t,i,this.#l[r],this)}}rforEach(e,t=this){for(const r of this.#_()){const n=this.#d[r],i=this.#x(n)?n.__staleWhileFetching:n;void 0!==i&&e.call(t,i,this.#l[r],this)}}purgeStale(){let e=!1;for(const t of this.#_({allowStale:!0}))this.#T(t)&&(this.#D(this.#l[t],"expire"),e=!0);return e}info(e){const t=this.#u.get(e);if(void 0===t)return;const n=this.#d[t],i=this.#x(n)?n.__staleWhileFetching:n;if(void 0===i)return;const o={value:i};if(this.#w&&this.#v){const e=this.#w[t],n=this.#v[t];if(e&&n){const t=e-(r.now()-n);o.ttl=t,o.start=Date.now()}}return this.#b&&(o.size=this.#b[t]),o}dump(){const e=[];for(const t of this.#k({allowStale:!0})){const n=this.#l[t],i=this.#d[t],o=this.#x(i)?i.__staleWhileFetching:i;if(void 0===o||void 0===n)continue;const a={value:o};if(this.#w&&this.#v){a.ttl=this.#w[t];const e=r.now()-this.#v[t];a.start=Math.floor(Date.now()-e)}this.#b&&(a.size=this.#b[t]),e.unshift([n,a])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}set(e,t,r={}){if(void 0===t)return this.delete(e),this;const{ttl:n=this.ttl,start:i,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:s}=r;let{noUpdateTTL:c=this.noUpdateTTL}=r;const u=this.#R(e,t,r.size||0,a);if(this.maxEntrySize&&u>this.maxEntrySize)return s&&(s.set="miss",s.maxEntrySizeExceeded=!0),this.#D(e,"set"),this;let l=0===this.#s?void 0:this.#u.get(e);if(void 0===l)l=0===this.#s?this.#g:0!==this.#m.length?this.#m.pop():this.#s===this.#t?this.#F(!1):this.#s,this.#l[l]=e,this.#d[l]=t,this.#u.set(e,l),this.#f[this.#g]=l,this.#h[l]=this.#g,this.#g=l,this.#s++,this.#L(l,u,s),s&&(s.set="add"),c=!1;else{this.#I(l);const r=this.#d[l];if(t!==r){if(this.#C&&this.#x(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=r;void 0===t||o||(this.#A&&this.#n?.(t,e,"set"),this.#E&&this.#y?.push([t,e,"set"]))}else o||(this.#A&&this.#n?.(r,e,"set"),this.#E&&this.#y?.push([r,e,"set"]));if(this.#N(l),this.#L(l,u,s),this.#d[l]=t,s){s.set="replace";const e=r&&this.#x(r)?r.__staleWhileFetching:r;void 0!==e&&(s.oldValue=e)}}else s&&(s.set="update")}if(0===n||this.#w||this.#P(),this.#w&&(c||this.#j(l,n,i),s&&this.#B(s,l)),!o&&this.#E&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#i?.(...t)}return this}pop(){try{for(;this.#s;){const e=this.#d[this.#p];if(this.#F(!0),this.#x(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#E&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#i?.(...t)}}}#F(e){const t=this.#p,r=this.#l[t],n=this.#d[t];return this.#C&&this.#x(n)?n.__abortController.abort(new Error("evicted")):(this.#A||this.#E)&&(this.#A&&this.#n?.(n,r,"evict"),this.#E&&this.#y?.push([n,r,"evict"])),this.#N(t),e&&(this.#l[t]=void 0,this.#d[t]=void 0,this.#m.push(t)),1===this.#s?(this.#p=this.#g=0,this.#m.length=0):this.#p=this.#f[t],this.#u.delete(r),this.#s--,t}has(e,t={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:n}=t,i=this.#u.get(e);if(void 0!==i){const e=this.#d[i];if(this.#x(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#T(i))return r&&this.#O(i),n&&(n.has="hit",this.#B(n,i)),!0;n&&(n.has="stale",this.#B(n,i))}else n&&(n.has="miss");return!1}peek(e,t={}){const{allowStale:r=this.allowStale}=t,n=this.#u.get(e);if(void 0===n||!r&&this.#T(n))return;const i=this.#d[n];return this.#x(i)?i.__staleWhileFetching:i}#S(e,t,r,n){const i=void 0===t?void 0:this.#d[t];if(this.#x(i))return i;const o=new a,{signal:s}=r;s?.addEventListener("abort",(()=>o.abort(s.reason)),{signal:o.signal});const c={signal:o.signal,options:r,context:n},u=(n,i=!1)=>{const{aborted:a}=o.signal,s=r.ignoreFetchAbort&&void 0!==n;if(r.status&&(a&&!i?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,s&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),a&&!s&&!i)return l(o.signal.reason);const u=d;return this.#d[t]===d&&(void 0===n?u.__staleWhileFetching?this.#d[t]=u.__staleWhileFetching:this.#D(e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,n,c.options))),n},l=n=>{const{aborted:i}=o.signal,a=i&&r.allowStaleOnFetchAbort,s=a||r.allowStaleOnFetchRejection,c=s||r.noDeleteOnFetchRejection,u=d;if(this.#d[t]===d){!c||void 0===u.__staleWhileFetching?this.#D(e,"fetch"):a||(this.#d[t]=u.__staleWhileFetching)}if(s)return r.status&&void 0!==u.__staleWhileFetching&&(r.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw n};r.status&&(r.status.fetchDispatched=!0);const d=new Promise(((t,n)=>{const a=this.#o?.(e,i,c);a&&a instanceof Promise&&a.then((e=>t(void 0===e?void 0:e)),n),o.signal.addEventListener("abort",(()=>{r.ignoreFetchAbort&&!r.allowStaleOnFetchAbort||(t(void 0),r.allowStaleOnFetchAbort&&(t=e=>u(e,!0)))}))})).then(u,(e=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=e),l(e)))),f=Object.assign(d,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return void 0===t?(this.set(e,f,{...c.options,status:void 0}),t=this.#u.get(e)):this.#d[t]=f,f}#x(e){if(!this.#C)return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof a}async fetch(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:s=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:m,signal:y}=t;if(!this.#C)return m&&(m.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:m});const b={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:a,size:s,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:h,ignoreFetchAbort:f,status:m,signal:y};let v=this.#u.get(e);if(void 0===v){m&&(m.fetch="miss");const t=this.#S(e,v,b,p);return t.__returned=t}{const t=this.#d[v];if(this.#x(t)){const e=r&&void 0!==t.__staleWhileFetching;return m&&(m.fetch="inflight",e&&(m.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}const i=this.#T(v);if(!g&&!i)return m&&(m.fetch="hit"),this.#I(v),n&&this.#O(v),m&&this.#B(m,v),t;const o=this.#S(e,v,b,p),a=void 0!==o.__staleWhileFetching&&r;return m&&(m.fetch=i?"stale":"refresh",a&&i&&(m.returnedStale=!0)),a?o.__staleWhileFetching:o.__returned=o}}async forceFetch(e,t={}){const r=await this.fetch(e,t);if(void 0===r)throw new Error("fetch() returned undefined");return r}memo(e,t={}){const r=this.#a;if(!r)throw new Error("no memoMethod provided to constructor");const{context:n,forceRefresh:i,...o}=t,a=this.get(e,o);if(!i&&void 0!==a)return a;const s=r(e,a,{options:o,context:n});return this.set(e,s,o),s}get(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=t,a=this.#u.get(e);if(void 0!==a){const t=this.#d[a],s=this.#x(t);return o&&this.#B(o,a),this.#T(a)?(o&&(o.get="stale"),s?(o&&r&&void 0!==t.__staleWhileFetching&&(o.returnedStale=!0),r?t.__staleWhileFetching:void 0):(i||this.#D(e,"expire"),o&&r&&(o.returnedStale=!0),r?t:void 0)):(o&&(o.get="hit"),s?t.__staleWhileFetching:(this.#I(a),n&&this.#O(a),t))}o&&(o.get="miss")}#z(e,t){this.#h[t]=e,this.#f[e]=t}#I(e){e!==this.#g&&(e===this.#p?this.#p=this.#f[e]:this.#z(this.#h[e],this.#f[e]),this.#z(this.#g,e),this.#g=e)}delete(e){return this.#D(e,"delete")}#D(e,t){let r=!1;if(0!==this.#s){const n=this.#u.get(e);if(void 0!==n)if(r=!0,1===this.#s)this.#H(t);else{this.#N(n);const r=this.#d[n];if(this.#x(r)?r.__abortController.abort(new Error("deleted")):(this.#A||this.#E)&&(this.#A&&this.#n?.(r,e,t),this.#E&&this.#y?.push([r,e,t])),this.#u.delete(e),this.#l[n]=void 0,this.#d[n]=void 0,n===this.#g)this.#g=this.#h[n];else if(n===this.#p)this.#p=this.#f[n];else{const e=this.#h[n];this.#f[e]=this.#f[n];const t=this.#f[n];this.#h[t]=this.#h[n]}this.#s--,this.#m.push(n)}}if(this.#E&&this.#y?.length){const e=this.#y;let t;for(;t=e?.shift();)this.#i?.(...t)}return r}clear(){return this.#H("delete")}#H(e){for(const t of this.#_({allowStale:!0})){const r=this.#d[t];if(this.#x(r))r.__abortController.abort(new Error("deleted"));else{const n=this.#l[t];this.#A&&this.#n?.(r,n,e),this.#E&&this.#y?.push([r,n,e])}}if(this.#u.clear(),this.#d.fill(void 0),this.#l.fill(void 0),this.#w&&this.#v&&(this.#w.fill(0),this.#v.fill(0)),this.#b&&this.#b.fill(0),this.#p=0,this.#g=0,this.#m.length=0,this.#c=0,this.#s=0,this.#E&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#i?.(...t)}}}t.LRUCache=f},57743:(e,t)=>{"use strict";function r(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Object.defineProperty(t,"__esModule",{value:!0}),t.Backoff=r,r.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+r:e-r}return 0|Math.min(e,this.max)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(e){this.ms=e},r.prototype.setMax=function(e){this.max=e},r.prototype.setJitter=function(e){this.jitter=e}},538007:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebTransport=t.WebSocket=t.NodeWebSocket=t.XHR=t.NodeXHR=t.Fetch=t.Socket=t.Manager=t.protocol=void 0,t.io=u,t.connect=u,t.default=u;const i=r(976894),o=r(623776);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const a=r(356214);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return a.Socket}});const s=(0,n(r(59368)).default)("socket.io-client"),c={};function u(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const r=(0,i.url)(e,t.path||"/socket.io"),n=r.source,a=r.id,u=r.path,l=c[a]&&u in c[a].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||l?(s("ignoring socket cache for %s",n),d=new o.Manager(n,t)):(c[a]||(s("new io instance for %s",n),c[a]=new o.Manager(n,t)),d=c[a]),r.query&&!t.query&&(t.query=r.queryKey),d.socket(r.path,t)}Object.assign(u,{Manager:o.Manager,Socket:a.Socket,io:u,connect:u});var l=r(784627);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return l.protocol}});var d=r(804956);Object.defineProperty(t,"Fetch",{enumerable:!0,get:function(){return d.Fetch}}),Object.defineProperty(t,"NodeXHR",{enumerable:!0,get:function(){return d.NodeXHR}}),Object.defineProperty(t,"XHR",{enumerable:!0,get:function(){return d.XHR}}),Object.defineProperty(t,"NodeWebSocket",{enumerable:!0,get:function(){return d.NodeWebSocket}}),Object.defineProperty(t,"WebSocket",{enumerable:!0,get:function(){return d.WebSocket}}),Object.defineProperty(t,"WebTransport",{enumerable:!0,get:function(){return d.WebTransport}}),e.exports=u},623776:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;const s=r(804956),c=r(356214),u=o(r(784627)),l=r(625942),d=r(57743),f=r(124454),h=(0,a(r(59368)).default)("socket.io-client:manager");class p extends f.Emitter{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,(0,s.installTimerFunctions)(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new d.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||u;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(h("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;h("opening %s",this.uri),this.engine=new s.Socket(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=(0,l.on)(t,"open",(function(){r.onopen(),e&&e()})),i=t=>{h("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=(0,l.on)(t,"error",i);if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e);const r=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){h("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push((0,l.on)(e,"ping",this.onping.bind(this)),(0,l.on)(e,"data",this.ondata.bind(this)),(0,l.on)(e,"error",this.onerror.bind(this)),(0,l.on)(e,"close",this.onclose.bind(this)),(0,l.on)(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){(0,s.nextTick)((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){h("error",e),this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new c.Socket(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t){if(this.nsps[r].active)return void h("socket %s is still active, skipping close",r)}this._close()}_packet(e){h("writing packet %j",e);const t=this.encoder.encode(e);for(let r=0;re())),this.subs.length=0,this.decoder.destroy()}_close(){h("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;h("closed due to %s",e),this.cleanup(),null===(r=this.engine)||void 0===r||r.close(),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)h("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();h("will wait %dms before reconnect attempt",t),this._reconnecting=!0;const r=this.setTimeoutFn((()=>{e.skipReconnect||(h("attempting reconnect"),this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(h("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):(h("reconnect success"),e.onreconnect())})))}),t);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=p},625942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=function(e,t,r){return e.on(t,r),function(){e.off(t,r)}}},356214:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const i=r(784627),o=r(625942),a=r(124454),s=(0,n(r(59368)).default)("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class u extends a.Emitter{constructor(e,t,r){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,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[(0,o.on)(e,"open",this.onopen.bind(this)),(0,o.on)(e,"packet",this.onpacket.bind(this)),(0,o.on)(e,"error",this.onerror.bind(this)),(0,o.on)(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,o;if(c.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 a={type:i.PacketType.EVENT,data:t,options:{}};if(a.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++;s("emitting packet with ack id %d",e);const r=t.pop();this._registerAckCallback(e,r),a.id=e}const u=null===(n=null===(r=this.io.engine)||void 0===r?void 0:r.transport)||void 0===n?void 0:n.writable,l=this.connected&&!(null===(o=this.io.engine)||void 0===o?void 0:o._hasPingExpired());return this.flags.volatile&&!u?s("discard packet as the transport is not currently writable"):l?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a),this.flags={},this}_registerAckCallback(e,t){var r;const n=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===n)return void(this.acks[e]=t);const i=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise(((r,n)=>{const i=(e,t)=>e?n(e):r(t);i.withError=!0,t.push(i),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...n)=>{if(r!==this._queue[0])return;return null!==e?r.tryCount>this._opts.retries&&(s("packet [%d] is discarded after %d tries",r.id,r.tryCount),this._queue.shift(),t&&t(e)):(s("packet [%d] was successfully sent",r.id),this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()})),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(s("draining queue"),!this.connected||0===this._queue.length)return;const t=this._queue[0];!t.pending||e?(t.pending=!0,t.tryCount++,s("sending packet [%d] (try n\xb0%d)",t.id,t.tryCount),this.flags=t.flags,this.emit.apply(this,t.args)):s("packet [%d] has already been sent and is waiting for an ack",t.id)}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){s("transport is open - connecting"),"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:i.PacketType.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){s("close (%s)",e),this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case i.PacketType.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 i.PacketType.EVENT:case i.PacketType.BINARY_EVENT:this.onevent(e);break;case i.PacketType.ACK:case i.PacketType.BINARY_ACK:this.onack(e);break;case i.PacketType.DISCONNECT:this.ondisconnect();break;case i.PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];s("emitting event %j",t),null!=e.id&&(s("attaching ack callback to event"),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 r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...n){r||(r=!0,s("sending ack %j",n),t.packet({type:i.PacketType.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"==typeof t?(delete this.acks[e.id],s("calling ack %s with %j",e.id,e.data),t.withError&&e.data.unshift(null),t.apply(this,e.data)):s("bad ack %s",e.id)}onconnect(e,t){s("socket connected with id %s",e),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(){s("server disconnect (%s)",this.nsp),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&&(s("performing disconnect (%s)",this.nsp),this.packet({type:i.PacketType.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 r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=r(279133);function i(e,t){if(!e)return e;if((0,n.isBinary)(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=r(124454),i=r(184926),o=r(279133),a=(0,r(980852).default)("socket.io-parser"),s=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var c;t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(c=t.PacketType||(t.PacketType={}));function u(e){return"[object Object]"===Object.prototype.toString.call(e)}t.Encoder=class{constructor(e){this.replacer=e}encode(e){return a("encoding packet %j",e),e.type!==c.EVENT&&e.type!==c.ACK||!(0,o.hasBinary)(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===c.EVENT?c.BINARY_EVENT:c.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}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+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),a("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=(0,i.deconstructPacket)(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}};class l extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const r=t.type===c.BINARY_EVENT;r||t.type===c.BINARY_ACK?(t.type=r?c.EVENT:c.ACK,this.reconstructor=new d(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!(0,o.isBinary)(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(void 0===c[r.type])throw new Error("unknown packet type "+r.type);if(r.type===c.BINARY_EVENT||r.type===c.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw new Error("Illegal attachments");r.attachments=Number(i)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}r.nsp=e.substring(n,t)}else r.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!l.isPayloadValid(r.type,n))throw new Error("invalid payload");r.data=n}return a("decoded %s as %j",e,r),r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(t){return!1}}static isPayloadValid(e,t){switch(e){case c.CONNECT:return u(t);case c.DISCONNECT:return void 0===t;case c.CONNECT_ERROR:return"string"==typeof t||u(t);case c.EVENT:case c.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===s.indexOf(t[0]));case c.ACK:case c.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}t.Decoder=l;class d{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=(0,i.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},279133:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const r="function"==typeof ArrayBuffer,n=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),o="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function a(e){return r&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||i&&e instanceof Blob||o&&e instanceof File}t.isBinary=a,t.hasBinary=function e(t,r){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r{"use strict";r.d(t,{DO:()=>s,Id:()=>A,My:()=>l,OG:()=>k,Ph:()=>m,Q5:()=>j,aK:()=>S,aT:()=>g,aY:()=>a,dJ:()=>I,e8:()=>c,ex:()=>C,fg:()=>M,lX:()=>y,lq:()=>b,qj:()=>w,r4:()=>x,x:()=>D,z:()=>v,zW:()=>d});const n=BigInt(0),i=BigInt(1),o=BigInt(2);function a(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function s(e){if(!a(e))throw new Error("Uint8Array expected")}function c(e,t){if("boolean"!=typeof t)throw new Error(e+" boolean expected, got "+t)}const u=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function l(e){s(e);let t="";for(let r=0;r=h._0&&e<=h._9?e-h._0:e>=h.A&&e<=h.F?e-(h.A-10):e>=h.a&&e<=h.f?e-(h.a-10):void 0}function g(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let i=0,o=0;i"bigint"==typeof e&&n<=e;function x(e,t,r){return E(e)&&E(t)&&E(r)&&t<=e&&en;e>>=i,t+=1);return t}const k=e=>(o<new Uint8Array(e),T=e=>Uint8Array.from(e);function M(e,t,r){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=_(e),i=_(e),o=0;const a=()=>{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),c=(e=_())=>{i=s(T([0]),e),n=s(),0!==e.length&&(i=s(T([1]),e),n=s())},u=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e{let r;for(a(),c(e);!(r=t(u()));)c();return a(),r}}const P={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||a(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function j(e,t,r={}){const n=(t,r,n)=>{const i=P[r];if("function"!=typeof i)throw new Error("invalid validator function");const o=e[t];if(!(n&&void 0===o||i(o,e)))throw new Error("param "+String(t)+" is invalid. Expected "+r+", got "+o)};for(const[i,o]of Object.entries(t))n(i,o,!1);for(const[i,o]of Object.entries(r))n(i,o,!0);return e}function D(e){const t=new WeakMap;return(r,...n)=>{const i=t.get(r);if(void 0!==i)return i;const o=e(r,...n);return t.set(r,o),o}}},859705:(e,t,r)=>{"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function i(e,...t){if(!((r=e)instanceof Uint8Array||ArrayBuffer.isView(r)&&"Uint8Array"===r.constructor.name))throw new Error("Uint8Array expected");var r;if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){i(e);const r=t.outputLen;if(e.lengthme});const c="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;const u=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),l=(e,t)=>e<<32-t|e>>>t;function d(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}(e)),i(e),e}class f{clone(){return this._cloneInto()}}function h(e){const t=t=>e().update(d(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function p(e=32){if(c&&"function"==typeof c.getRandomValues)return c.getRandomValues(new Uint8Array(e));if(c&&"function"==typeof c.randomBytes)return c.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")}const g=(e,t,r)=>e&t^e&r^t&r;class m extends f{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=u(this.buffer)}update(e){a(this);const{view:t,buffer:r,blockLen:n}=this,i=(e=d(e)).length;for(let o=0;on-o&&(this.process(r,0),o=0);for(let a=o;a>i&o),s=Number(r&o),c=n?4:0,u=n?0:4;e.setUint32(t+c,a,n),e.setUint32(t+u,s,n)}(r,n-8,BigInt(8*this.length),i),this.process(r,0);const c=u(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=l/4,f=this.get();if(d>f.length)throw new Error("_sha2: outputLen bigger than state");for(let a=0;a>>3,n=l(t,17)^l(t,19)^t>>>10;v[f]=n+v[f-7]+r+v[f-16]|0}let{A:r,B:n,C:i,D:o,E:a,F:s,G:c,H:u}=this;for(let f=0;f<64;f++){const e=u+(l(a,6)^l(a,11)^l(a,25))+((d=a)&s^~d&c)+y[f]+v[f]|0,t=(l(r,2)^l(r,13)^l(r,22))+g(r,n,i)|0;u=c,c=s,s=a,a=o+e|0,o=i,i=n,n=r,r=e+t|0}var d;r=r+this.A|0,n=n+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,s=s+this.F|0,c=c+this.G|0,u=u+this.H|0,this.set(r,n,i,o,a,s,c,u)}roundClean(){v.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const A=h((()=>new w));class C extends f{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,o(e);const r=d(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let o=0;onew C(e,t).update(r).digest();E.create=(e,t)=>new C(e,t);var x=r(938293);const S=BigInt(0),I=BigInt(1),k=BigInt(2),_=BigInt(3),T=BigInt(4),M=BigInt(5),P=BigInt(8);function j(e,t){const r=e%t;return r>=S?r:t+r}function D(e,t,r){if(tS;)t&I&&(n=n*e%r),e=e*e%r,t>>=I;return n}function O(e,t,r){let n=e;for(;t-- >S;)n*=n,n%=r;return n}function B(e,t){if(e===S)throw new Error("invert: expected non-zero number");if(t<=S)throw new Error("invert: expected positive modulus, got "+t);let r=j(e,t),n=t,i=S,o=I,a=I,s=S;for(;r!==S;){const e=n/r,t=n%r,c=i-a*e,u=o-s*e;n=r,r=t,i=a,o=s,a=c,s=u}if(n!==I)throw new Error("invert: does not exist");return j(i,t)}function N(e){if(e%T===_){const t=(e+I)/T;return function(e,r){const n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw new Error("Cannot find square root");return n}}if(e%P===M){const t=(e-M)/P;return function(e,r){const n=e.mul(r,k),i=e.pow(n,t),o=e.mul(r,i),a=e.mul(e.mul(o,k),i),s=e.mul(o,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),r))throw new Error("Cannot find square root");return s}}return function(e){const t=(e-I)/k;let r,n,i;for(r=e-I,n=0;r%k===S;r/=k,n++);for(i=k;i1e3)throw new Error("Cannot find square root: likely non-prime P");if(1===n){const t=(e+I)/T;return function(e,r){const n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw new Error("Cannot find square root");return n}}const o=(r+I)/k;return function(e,a){if(e.pow(a,t)===e.neg(e.ONE))throw new Error("Cannot find square root");let s=n,c=e.pow(e.mul(e.ONE,i),r),u=e.pow(a,o),l=e.pow(a,r);for(;!e.eql(l,e.ONE);){if(e.eql(l,e.ZERO))return e.ZERO;let t=1;for(let n=e.sqr(l);t 0, got "+e);const{nBitLength:i,nByteLength:o}=L(e,t);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let a;const s=Object.freeze({ORDER:e,BITS:i,BYTES:o,MASK:(0,x.OG)(i),ZERO:S,ONE:I,create:t=>j(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return S<=t&&te===S,isOdd:e=>(e&I)===I,neg:t=>j(-t,e),eql:(e,t)=>e===t,sqr:t=>j(t*t,e),add:(t,r)=>j(t+r,e),sub:(t,r)=>j(t-r,e),mul:(t,r)=>j(t*r,e),pow:(e,t)=>function(e,t,r){if(rS;)r&I&&(n=e.mul(n,i)),i=e.sqr(i),r>>=I;return n}(s,e,t),div:(t,r)=>j(t*B(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>B(t,e),sqrt:n.sqrt||(t=>(a||(a=N(e)),a(s,t))),invertBatch:e=>function(e,t){const r=new Array(t.length),n=t.reduce(((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n))),e.ONE),i=e.inv(n);return t.reduceRight(((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n))),i),r}(s,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,x.z)(e,o):(0,x.lq)(e,o),fromBytes:e=>{if(e.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+e.length);return r?(0,x.lX)(e):(0,x.Ph)(e)}});return Object.freeze(s)}function U(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function z(e){const t=U(e);return t+Math.ceil(t/2)}const H=BigInt(0),V=BigInt(1);function K(e,t){const r=t.negate();return e?r:t}function G(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function q(e,t){G(e,t);return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1)}}function Q(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach(((e,r)=>{if(!(e instanceof t))throw new Error("invalid point at index "+r)}))}function W(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach(((e,r)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+r)}))}const J=new WeakMap,Y=new WeakMap;function Z(e){return Y.get(e)||1}function $(e){return function(e){const t=R.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});(0,x.Q5)(e,t)}(e.Fp),(0,x.Q5)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...L(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}function X(e){void 0!==e.lowS&&(0,x.e8)("lowS",e.lowS),void 0!==e.prehash&&(0,x.e8)("prehash",e.prehash)}const{Ph:ee,aT:te}=x,re={Err:class extends Error{constructor(e=""){super(e)}},_tlv:{encode:(e,t)=>{const{Err:r}=re;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(1&t.length)throw new r("tlv.encode: unpadded data");const n=t.length/2,i=x.zW(n);if(i.length/2&128)throw new r("tlv.encode: long form length too big");const o=n>127?x.zW(i.length/2|128):"";return x.zW(e)+o+i+t},decode(e,t){const{Err:r}=re;let n=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[n++]!==e)throw new r("tlv.decode: wrong tlv");const i=t[n++];let o=0;if(!!(128&i)){const e=127&i;if(!e)throw new r("tlv.decode(long): indefinite length not supported");if(e>4)throw new r("tlv.decode(long): byte length is too big");const a=t.subarray(n,n+e);if(a.length!==e)throw new r("tlv.decode: length bytes not complete");if(0===a[0])throw new r("tlv.decode(long): zero leftmost byte");for(const t of a)o=o<<8|t;if(n+=e,o<128)throw new r("tlv.decode(long): not minimal encoding")}else o=i;const a=t.subarray(n,n+o);if(a.length!==o)throw new r("tlv.decode: wrong value length");return{v:a,l:t.subarray(n+o)}}},_int:{encode(e){const{Err:t}=re;if(e{const i=t.toAffine();return x.Id(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),o=t.fromBytes||(e=>{const t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function a(e){const{a:n,b:i}=t,o=r.sqr(e),a=r.mul(o,e);return r.add(r.add(a,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),a(t.Gx)))throw new Error("bad generator point: equation left != right");function s(e){const{allowedPrivateKeyLengths:r,nByteLength:n,wrapPrivateKey:i,n:o}=t;if(r&&"bigint"!=typeof e){if(x.aY(e)&&(e=x.My(e)),"string"!=typeof e||!r.includes(e.length))throw new Error("invalid private key");e=e.padStart(2*n,"0")}let a;try{a="bigint"==typeof e?e:x.Ph((0,x.qj)("private key",e,n))}catch(s){throw new Error("invalid private key, expected hex or "+n+" bytes, got "+typeof e)}return i&&(a=j(a,o)),x.aK("private key",a,ie,o),a}function c(e){if(!(e instanceof d))throw new Error("ProjectivePoint expected")}const u=(0,x.x)(((e,t)=>{const{px:n,py:i,pz:o}=e;if(r.eql(o,r.ONE))return{x:n,y:i};const a=e.is0();null==t&&(t=a?r.ONE:r.inv(o));const s=r.mul(n,t),c=r.mul(i,t),u=r.mul(o,t);if(a)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw new Error("invZ was invalid");return{x:s,y:c}})),l=(0,x.x)((e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.py))return;throw new Error("bad point: ZERO")}const{x:n,y:i}=e.toAffine();if(!r.isValid(n)||!r.isValid(i))throw new Error("bad point: x or y not FE");const o=r.sqr(i),s=a(n);if(!r.eql(o,s))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0}));class d{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw new Error("x required");if(null==t||!r.isValid(t))throw new Error("y required");if(null==n||!r.isValid(n))throw new Error("z required");Object.freeze(this)}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw new Error("invalid affine point");if(e instanceof d)throw new Error("projective point not allowed");const i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?d.ZERO:new d(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(d.fromAffine)}static fromHex(e){const t=d.fromAffine(o((0,x.qj)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return d.BASE.multiply(s(e))}static msm(e,t){return function(e,t,r,n){if(Q(r,e),W(n,t),r.length!==n.length)throw new Error("arrays of points and scalars must have equal length");const i=e.ZERO,o=(0,x.dJ)(BigInt(r.length)),a=o>12?o-3:o>4?o-2:o?2:1,s=(1<=0;l-=a){c.fill(i);for(let t=0;t>BigInt(l)&BigInt(s));c[i]=c[i].add(r[t])}let e=i;for(let t=c.length-1,r=i;t>0;t--)r=r.add(c[t]),e=e.add(r);if(u=u.add(e),0!==l)for(let t=0;tne||u>ne;)s&ie&&(l=l.add(p)),u&ie&&(f=f.add(p)),p=p.double(),s>>=ie,u>>=ie;return a&&(l=l.negate()),c&&(f=f.negate()),f=new d(r.mul(f.px,n.beta),f.py,f.pz),l.add(f)}multiply(e){const{endo:n,n:i}=t;let o,a;if(x.aK("scalar",e,ie,i),n){const{k1neg:t,k1:i,k2neg:s,k2:c}=n.splitScalar(e);let{p:u,f:l}=this.wNAF(i),{p:f,f:p}=this.wNAF(c);u=h.constTimeNegate(t,u),f=h.constTimeNegate(s,f),f=new d(r.mul(f.px,n.beta),f.py,f.pz),o=u.add(f),a=l.add(p)}else{const{p:t,f:r}=this.wNAF(e);o=t,a=r}return d.normalizeZ([o,a])[0]}multiplyAndAddUnsafe(e,t,r){const n=d.BASE,i=(e,t)=>t!==ne&&t!==ie&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?void 0:o}toAffine(e){return u(this,e)}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===ie)return!0;if(r)return r(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===ie?this:r?r(d,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return(0,x.e8)("isCompressed",e),this.assertValidity(),i(d,this,e)}toHex(e=!0){return(0,x.e8)("isCompressed",e),x.My(this.toRawBytes(e))}}d.BASE=new d(t.Gx,t.Gy,r.ONE),d.ZERO=new d(r.ZERO,r.ONE,r.ZERO);const f=t.nBitLength,h=(p=d,g=t.endo?Math.ceil(f/2):f,{constTimeNegate:K,hasPrecomputes:e=>1!==Z(e),unsafeLadder(e,t,r=p.ZERO){let n=e;for(;t>H;)t&V&&(r=r.add(n)),n=n.double(),t>>=V;return r},precomputeWindow(e,t){const{windows:r,windowSize:n}=q(t,g),i=[];let o=e,a=o;for(let s=0;s>=u,n>i&&(n-=c,r+=V);const d=e,f=e+Math.abs(n)-1,h=l%2!=0,p=n<0;0===n?a=a.add(K(h,t[d])):o=o.add(K(p,t[f]))}return{p:o,f:a}},wNAFUnsafe(e,t,r,n=p.ZERO){const{windows:i,windowSize:o}=q(e,g),a=BigInt(2**e-1),s=2**e,c=BigInt(e);for(let u=0;u>=c,i>o&&(i-=s,r+=V),0===i)continue;let l=t[e+Math.abs(i)-1];i<0&&(l=l.negate()),n=n.add(l)}return n},getPrecomputes(e,t,r){let n=J.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&J.set(t,r(n))),n},wNAFCached(e,t,r){const n=Z(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)},wNAFCachedUnsafe(e,t,r,n){const i=Z(e);return 1===i?this.unsafeLadder(e,t,n):this.wNAFUnsafe(i,this.getPrecomputes(i,e,r),t,n)},setWindowSize(e,t){G(t,g),Y.set(e,t),J.delete(e)}});var p,g;return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:s,weierstrassEquation:a,isWithinCurveOrder:function(e){return x.r4(e,ie,t.n)}}}function se(e){const t=function(e){const t=$(e);return x.Q5(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:r,n:n}=t,i=r.BYTES+1,o=2*r.BYTES+1;function a(e){return j(e,n)}function s(e){return B(e,n)}const{ProjectivePoint:c,normPrivateKeyToScalar:u,weierstrassEquation:l,isWithinCurveOrder:d}=ae({...t,toBytes(e,t,n){const i=t.toAffine(),o=r.toBytes(i.x),a=x.Id;return(0,x.e8)("isCompressed",n),n?a(Uint8Array.from([t.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,r.toBytes(i.y))},fromBytes(e){const t=e.length,n=e[0],a=e.subarray(1);if(t!==i||2!==n&&3!==n){if(t===o&&4===n){return{x:r.fromBytes(a.subarray(0,r.BYTES)),y:r.fromBytes(a.subarray(r.BYTES,2*r.BYTES))}}throw new Error("invalid Point, expected length of "+i+", or uncompressed "+o+", got "+t)}{const e=x.Ph(a);if(!x.r4(e,ie,r.ORDER))throw new Error("Point is not on curve");const t=l(e);let i;try{i=r.sqrt(t)}catch(s){const e=s instanceof Error?": "+s.message:"";throw new Error("Point is not on curve"+e)}return!(1&~n)!==((i&ie)===ie)&&(i=r.neg(i)),{x:e,y:i}}}}),f=e=>x.My(x.lq(e,t.nByteLength));function h(e){return e>n>>ie}const p=(e,t,r)=>x.Ph(e.slice(t,r));class g{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){const r=t.nByteLength;return e=(0,x.qj)("compactSignature",e,2*r),new g(p(e,0,r),p(e,r,2*r))}static fromDER(e){const{r:t,s:r}=re.toSig((0,x.qj)("DER",e));return new g(t,r)}assertValidity(){x.aK("r",this.r,ie,n),x.aK("s",this.s,ie,n)}addRecoveryBit(e){return new g(this.r,this.s,e)}recoverPublicKey(e){const{r:n,s:i,recovery:o}=this,u=v((0,x.qj)("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw new Error("recovery id invalid");const l=2===o||3===o?n+t.n:n;if(l>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const d=1&o?"03":"02",h=c.fromHex(d+f(l)),p=s(l),g=a(-u*p),m=a(i*p),y=c.BASE.multiplyAndAddUnsafe(h,g,m);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return h(this.s)}normalizeS(){return this.hasHighS()?new g(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return x.aT(this.toDERHex())}toDERHex(){return re.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return x.aT(this.toCompactHex())}toCompactHex(){return f(this.r)+f(this.s)}}const m={isValidPrivateKey(e){try{return u(e),!0}catch(t){return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const e=z(t.n);return function(e,t,r=!1){const n=e.length,i=U(t),o=z(t);if(n<16||n1024)throw new Error("expected "+o+"-1024 bytes of input, got "+n);const a=j(r?(0,x.Ph)(e):(0,x.lX)(e),t-I)+I;return r?(0,x.z)(a,i):(0,x.lq)(a,i)}(t.randomBytes(e),t.n)},precompute:(e=8,t=c.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function y(e){const t=x.aY(e),r="string"==typeof e,n=(t||r)&&e.length;return t?n===i||n===o:r?n===2*i||n===2*o:e instanceof c}const b=t.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const r=x.Ph(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},v=t.bits2int_modN||function(e){return a(b(e))},w=x.OG(t.nBitLength);function A(e){return x.aK("num < 2^"+t.nBitLength,e,ne,w),x.lq(e,t.nByteLength)}function C(e,n,i=E){if(["recovered","canonical"].some((e=>e in i)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:l}=t;let{lowS:f,prehash:p,extraEntropy:m}=i;null==f&&(f=!0),e=(0,x.qj)("msgHash",e),X(i),p&&(e=(0,x.qj)("prehashed msgHash",o(e)));const y=v(e),w=u(n),C=[A(w),A(y)];if(null!=m&&!1!==m){const e=!0===m?l(r.BYTES):m;C.push((0,x.qj)("extraEntropy",e))}const S=x.Id(...C),I=y;return{seed:S,k2sig:function(e){const t=b(e);if(!d(t))return;const r=s(t),n=c.BASE.multiply(t).toAffine(),i=a(n.x);if(i===ne)return;const o=a(r*a(I+i*w));if(o===ne)return;let u=(n.x===i?0:2)|Number(n.y&ie),l=o;return f&&h(o)&&(l=function(e){return h(e)?a(-e):e}(o),u^=1),new g(i,l,u)}}}const E={lowS:t.lowS,prehash:!1},S={lowS:t.lowS,prehash:!1};return c.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return c.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(y(e))throw new Error("first arg must be private key");if(!y(t))throw new Error("second arg must be public key");return c.fromHex(t).multiply(u(e)).toRawBytes(r)},sign:function(e,r,n=E){const{seed:i,k2sig:o}=C(e,r,n),a=t;return x.fg(a.hash.outputLen,a.nByteLength,a.hmac)(i,o)},verify:function(e,r,n,i=S){const o=e;r=(0,x.qj)("msgHash",r),n=(0,x.qj)("publicKey",n);const{lowS:u,prehash:l,format:d}=i;if(X(i),"strict"in i)throw new Error("options.strict was renamed to lowS");if(void 0!==d&&"compact"!==d&&"der"!==d)throw new Error("format must be compact or der");const f="string"==typeof o||x.aY(o),h=!f&&!d&&"object"==typeof o&&null!==o&&"bigint"==typeof o.r&&"bigint"==typeof o.s;if(!f&&!h)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let p,m;try{if(h&&(p=new g(o.r,o.s)),f){try{"compact"!==d&&(p=g.fromDER(o))}catch(k){if(!(k instanceof re.Err))throw k}p||"der"===d||(p=g.fromCompact(o))}m=c.fromHex(n)}catch(_){return!1}if(!p)return!1;if(u&&p.hasHighS())return!1;l&&(r=t.hash(r));const{r:y,s:b}=p,w=v(r),A=s(b),C=a(w*A),E=a(y*A),I=c.BASE.multiplyAndAddUnsafe(m,C,E)?.toAffine();return!!I&&a(I.x)===y},ProjectivePoint:c,Signature:g,utils:m}}function ce(e){return{hash:e,hmac:(t,...r)=>E(e,t,function(...e){let t=0;for(let n=0;n(e+t/fe)/t;function pe(e){const t=ue,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),a=BigInt(23),s=BigInt(44),c=BigInt(88),u=e*e*e%t,l=u*u*e%t,d=O(l,r,t)*l%t,f=O(d,r,t)*l%t,h=O(f,fe,t)*u%t,p=O(h,i,t)*h%t,g=O(p,o,t)*p%t,m=O(g,s,t)*g%t,y=O(m,c,t)*m%t,b=O(y,s,t)*g%t,v=O(b,r,t)*l%t,w=O(v,a,t)*p%t,A=O(w,n,t)*u%t,C=O(A,fe,t);if(!ge.eql(ge.sqr(C),e))throw new Error("Cannot find square root");return C}const ge=F(ue,void 0,void 0,{sqrt:pe}),me=function(e,t){const r=t=>se({...e,...ce(t)});return Object.freeze({...r(t),create:r})}({a:BigInt(0),b:BigInt(7),Fp:ge,n:le,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=le,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-de*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),s=he(o*e,t),c=he(-n*e,t);let u=j(e-s*r-c*i,t),l=j(-s*n-c*o,t);const d=u>a,f=l>a;if(d&&(u=t-u),f&&(l=t-l),u>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:u,k2neg:f,k2:l}}}},A);BigInt(0);me.ProjectivePoint},589190:(e,t,r)=>{"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function i(e,...t){if(!((r=e)instanceof Uint8Array||ArrayBuffer.isView(r)&&"Uint8Array"===r.constructor.name))throw new Error("Uint8Array expected");var r;if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function o(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function a(e,t){i(e);const r=t.outputLen;if(e.lengtho,DO:()=>i,Fe:()=>n,Ht:()=>a})},563741:(e,t,r)=>{"use strict";r.d(t,{lY:()=>_});var n=r(589190);const i=BigInt(2**32-1),o=BigInt(32);function a(e,t=!1){return t?{h:Number(e&i),l:Number(e>>o&i)}:{h:0|Number(e>>o&i),l:0|Number(e&i)}}function s(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;ie<>>32-r,u=(e,t,r)=>t<>>32-r,l=(e,t,r)=>t<>>64-r,d=(e,t,r)=>e<>>64-r;var f=r(404976);const h=[],p=[],g=[],m=BigInt(0),y=BigInt(1),b=BigInt(2),v=BigInt(7),w=BigInt(256),A=BigInt(113);for(let T=0,M=y,P=1,j=0;T<24;T++){[P,j]=[j,(2*P+3*j)%5],h.push(2*(5*j+P)),p.push((T+1)*(T+2)/2%64);let e=m;for(let t=0;t<7;t++)M=(M<>v)*A)%w,M&b&&(e^=y<<(y<r>32?l(e,t,r):c(e,t,r),S=(e,t,r)=>r>32?d(e,t,r):u(e,t,r);class I extends f.Vw{constructor(e,t,r,i=!1,o=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.Fe)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,f.DH)(this.state)}keccak(){f.qv||(0,f.Fc)(this.state32),function(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let n=0;n<10;n++)r[n]=e[n]^e[n+10]^e[n+20]^e[n+30]^e[n+40];for(let n=0;n<10;n+=2){const t=(n+8)%10,i=(n+2)%10,o=r[i],a=r[i+1],s=x(o,a,1)^r[t],c=S(o,a,1)^r[t+1];for(let r=0;r<50;r+=10)e[n+r]^=s,e[n+r+1]^=c}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=p[r],o=x(t,i,n),a=S(t,i,n),s=h[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let n=0;n<50;n+=10){for(let t=0;t<10;t++)r[t]=e[n+t];for(let t=0;t<10;t++)e[n+t]^=~r[(t+2)%10]&r[(t+4)%10]}e[0]^=C[n],e[1]^=E[n]}r.fill(0)}(this.state32,this.rounds),f.qv||(0,f.Fc)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.CC)(this);const{blockLen:t,state:r}=this,i=(e=(0,f.ZJ)(e)).length;for(let n=0;n=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.Fe)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.Ht)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new I(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}const k=(e,t,r)=>(0,f.ld)((()=>new I(t,e,r))),_=k(1,136,32)},404976:(e,t,r)=>{"use strict";r.d(t,{DH:()=>i,Fc:()=>l,O8:()=>o,Ow:()=>a,Vw:()=>f,ZJ:()=>d,aZ:()=>s,ld:()=>h,qv:()=>c});var n=r(589190);const i=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),o=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),a=(e,t)=>e<<32-t|e>>>t,s=(e,t)=>e<>>32-t>>>0,c=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])(),u=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function l(e){for(let t=0;te().update(d(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}},466027:(e,t,r)=>{"use strict";r.r(t),r.d(t,{WebSocket:()=>n});const n=function(){if("undefined"!=typeof WebSocket)return WebSocket;if(void 0!==global.WebSocket)return global.WebSocket;if(void 0!==window.WebSocket)return window.WebSocket;if(void 0!==self.WebSocket)return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}()},124454:(e,t,r)=>{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}r.r(t),r.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i{"use strict";r.d(t,{InterVar:()=>a,ProviderRpcError:()=>n,ProviderRpcErrorCode:()=>g,Q9:()=>h,gb:()=>p,kh:()=>b,mt:()=>v,Vq:()=>A,createEIP1193Provider:()=>i,fromHex:()=>s.aD,PW:()=>l,isHex:()=>C.q,toHex:()=>u.nj,tf:()=>y,P2:()=>d,xM:()=>f});class n extends Error{constructor(e){super(e.message),this.message=e.message,this.code=e.code,this.data=e.data}}const i=(e,t)=>{let r;e.request?r=e.request.bind(e):e.sendAsync&&(r=o(e));return e.request=async({method:e,params:i})=>{const o=e;if(t&&null===t[o])throw new n({code:4200,message:`The Provider does not support the requested method: ${e}`});if(t&&t[o])return t[o]({baseRequest:r,params:i});if(r)return r({method:e,params:i});throw new n({code:4200,message:`The Provider does not support the requested method: ${e}`})},e},o=e=>({method:t,params:r})=>new Promise(((n,i)=>{e.sendAsync({id:0,jsonrpc:"2.0",method:t,params:r},((e,{result:t})=>{e?i(JSON.parse(e)):n(null==t?null:t)}))})),a='\n@font-face {\n font-family: \'Inter\';\n font-style: normal;\n font-weight: 300 600;\n font-display: swap;\n src: url("https://rsms.me/inter/font-files/InterVariable.woff2") format("woff2-variations");\n}\n';var s=r(244872),c=r(62595),u=r(796891);const l=e=>l(e),d=e=>{const t=(0,s.uU)(e);return(0,c.c)(t)},f=e=>{if(!e)return e;const t=(0,s.aD)(e,"bigint");return(0,c.c)(t)},h=e=>(0,u.cK)(e),p=async e=>{const t=await r.e(72945).then(r.bind(r,372945)),{id:n,label:i,token:o,publicRpcUrl:a,blockExplorerUrl:c,rpcUrl:u}=e;switch(n){case"0x89":{const{polygon:e}=t;return e}case"0xa":{const{optimism:e}=t;return e}case"0xa4b1":{const{arbitrum:e}=t;return e}case"0x144":{const{zkSync:e}=t;return e}case"0x38":{const{bsc:e}=t;return e}case"0x1":{const{mainnet:e}=t;return e}case"0xaa36a7":{const{sepolia:e}=t;return e}case"0xfa":{const{fantom:e}=t;return e}case"0xa86a":{const{avalanche:e}=t;return e}case"0xa4ec":{const{celo:e}=t;return e}case"0x2105":{const{base:e}=t;return e}case"0x14a33":{const{baseGoerli:e}=t;return e}case"0x64":{const{gnosis:e}=t;return e}case"0x63564C40":{const{harmonyOne:e}=t;return e}case"0x27bc86aa":{const{degen:e}=t;return e}default:{const{extractChain:e,defineChain:l}=await r.e(23207).then(r.bind(r,123207)),d=e({chains:Object.values(t),id:(0,s.aD)(n,"number")});return d||l({id:(0,s.aD)(n,"number"),name:null!=i?i:"",nativeCurrency:{decimals:18,name:null!=o?o:"",symbol:null!=o?o:""},rpcUrls:{default:{http:[null!=u?u:"",null!=a?a:""]}},blockExplorers:{default:{name:"Explorer",url:null!=c?c:""}}})}}};var g;!function(e){e[e.ACCOUNT_ACCESS_REJECTED=4001]="ACCOUNT_ACCESS_REJECTED",e[e.ACCOUNT_ACCESS_ALREADY_REQUESTED=-32002]="ACCOUNT_ACCESS_ALREADY_REQUESTED",e[e.UNAUTHORIZED=4100]="UNAUTHORIZED",e[e.INVALID_PARAMS=-32602]="INVALID_PARAMS",e[e.UNSUPPORTED_METHOD=4200]="UNSUPPORTED_METHOD",e[e.DISCONNECTED=4900]="DISCONNECTED",e[e.CHAIN_DISCONNECTED=4901]="CHAIN_DISCONNECTED",e[e.CHAIN_NOT_ADDED=4902]="CHAIN_NOT_ADDED",e[e.DOES_NOT_EXIST=-32601]="DOES_NOT_EXIST",e[e.UNRECOGNIZED_CHAIN_ID=-32603]="UNRECOGNIZED_CHAIN_ID"}(g||(g={}));var m=r(16075);function y(e,t){const r=e.validate(t);return r.error?r:null}const b=m.alternatives().try(m.string().pattern(/^0x[0-9a-fA-F]+$/),m.number().positive()),v=m.string().valid("evm"),w=m.object({address:m.string().required(),icon:m.string().optional()}),A=m.object({namespace:v,id:b.required(),rpcUrl:m.string(),label:m.string(),token:m.string(),secondaryTokens:m.array().max(5).items(w).optional(),icon:m.string(),color:m.string(),publicRpcUrl:m.string(),protectedRpcUrl:m.string(),blockExplorerUrl:m.string()});var C=r(809629)},906517:(e,t,r)=>{"use strict";r.d(t,{eL:()=>n,sz:()=>i});const n={gwei:9,wei:18},i={ether:-9,wei:9}},962446:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});class n extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"viem@2.12.0"});const r=t.cause instanceof n?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof n&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://viem.sh${i}${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return i(this,e)}}function i(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e?i(e.cause,t):t?null:e}},861177:(e,t,r)=>{"use strict";r.d(t,{Fl:()=>o,ii:()=>i});var n=r(962446);class i extends n.C{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class o extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}n.C},350316:(e,t,r)=>{"use strict";r.d(t,{H2:()=>o,Ty:()=>i,u:()=>a});var n=r(962446);class i extends n.C{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}n.C;class o extends n.C{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}n.C;class a extends n.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},809629:(e,t,r)=>{"use strict";function n(e,{strict:t=!0}={}){return!!e&&("string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}r.d(t,{q:()=>n})},299069:(e,t,r)=>{"use strict";r.d(t,{eV:()=>i});var n=r(861177);function i(e,{dir:t,size:r=32}={}){return"string"==typeof e?function(e,{dir:t,size:r=32}={}){if(null===r)return e;const i=e.replace("0x","");if(i.length>2*r)throw new n.Fl({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.Fl({size:e.length,targetSize:r,type:"bytes"});const i=new Uint8Array(r);for(let n=0;n{"use strict";r.d(t,{E:()=>i});var n=r(809629);function i(e){return(0,n.q)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},405074:(e,t,r)=>{"use strict";function n(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let i=0;in})},244872:(e,t,r)=>{"use strict";r.d(t,{ME:()=>l,Sl:()=>s,aD:()=>c,uU:()=>u});var n=r(350316),i=r(346699),o=r(405074),a=r(315633);function s(e,{size:t}){if((0,i.E)(e)>t)throw new n.u({givenSize:(0,i.E)(e),maxSize:t})}function c(e,t){const r="string"==typeof t?{to:t}:t,i=r.to;return"number"===i?l(e,r):"bigint"===i?u(e,r):"string"===i?function(e,t={}){let r=(0,a.aT)(e);t.size&&(s(r,{size:t.size}),r=(0,o.B)(r,{dir:"right"}));return(new TextDecoder).decode(r)}(e,r):"boolean"===i?function(e,t={}){let r=e;t.size&&(s(r,{size:t.size}),r=(0,o.B)(r));if("0x00"===(0,o.B)(r))return!1;if("0x01"===(0,o.B)(r))return!0;throw new n.H2(r)}(e,r):(0,a.aT)(e,r)}function u(e,t={}){const{signed:r}=t;t.size&&s(e,{size:t.size});const n=BigInt(e);if(!r)return n;const i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function l(e,t={}){return Number(u(e,t))}},315633:(e,t,r)=>{"use strict";r.d(t,{Af:()=>h,ZJ:()=>u,aT:()=>f});var n=r(962446),i=r(809629),o=r(299069),a=r(244872),s=r(796891);const c=new TextEncoder;function u(e,t={}){return"number"==typeof e||"bigint"==typeof e?function(e,t){const r=(0,s.cK)(e,t);return f(r)}(e,t):"boolean"==typeof e?function(e,t={}){const r=new Uint8Array(1);if(r[0]=Number(e),"number"==typeof t.size)return(0,a.Sl)(r,{size:t.size}),(0,o.eV)(r,{size:t.size});return r}(e,t):(0,i.q)(e)?f(e,t):h(e,t)}const l={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=l.zero&&e<=l.nine?e-l.zero:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function f(e,t={}){let r=e;t.size&&((0,a.Sl)(r,{size:t.size}),r=(0,o.eV)(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);const s=i.length/2,c=new Uint8Array(s);for(let o=0,a=0;o{"use strict";r.d(t,{My:()=>c,cK:()=>u,nj:()=>s});var n=r(350316),i=r(299069),o=r(244872);const a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e,t={}){return"number"==typeof e||"bigint"==typeof e?u(e,t):"string"==typeof e?function(e,t={}){const r=l.encode(e);return c(r,t)}(e,t):"boolean"==typeof e?function(e,t={}){const r=`0x${Number(e)}`;if("number"==typeof t.size)return(0,o.Sl)(r,{size:t.size}),(0,i.eV)(r,{size:t.size});return r}(e,t):c(e,t)}function c(e,t={}){let r="";for(let i=0;is||a{"use strict";r.d(t,{c:()=>o});var n=r(906517),i=r(947776);function o(e,t="wei"){return(0,i.J)(e,n.eL[t])}},947776:(e,t,r)=>{"use strict";function n(e,t){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[i,o]=[r.slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${o?`.${o}`:""}`}r.d(t,{J:()=>n})},308121:(e,t,r)=>{"use strict";r.d(t,{$:()=>Ar,A:()=>gr,B:()=>Ct,C:()=>mi,D:()=>re,E:()=>te,F:()=>kr,G:()=>St,H:()=>Dt,I:()=>_r,J:()=>_t,K:()=>Tr,L:()=>Ye,M:()=>ri,N:()=>Br,O:()=>Fn,P:()=>Zn,Q:()=>ne,R:()=>zi,S:()=>jr,T:()=>Pt,U:()=>tr,V:()=>yr,W:()=>ao,X:()=>Ci,Y:()=>_i,Z:()=>Ze,_:()=>wr,a:()=>mt,a0:()=>ee,a1:()=>et,a2:()=>Ot,a3:()=>Ge,a4:()=>de,a5:()=>xe,a6:()=>le,a7:()=>K,a8:()=>Er,a9:()=>vr,aA:()=>xr,aB:()=>hs,aa:()=>Ai,ab:()=>Ei,ac:()=>Ir,ad:()=>rr,ae:()=>Y,af:()=>be,ag:()=>di,ah:()=>Ee,ai:()=>Wt,aj:()=>Yn,ak:()=>br,al:()=>Qt,am:()=>zn,an:()=>wi,ao:()=>he,ap:()=>ce,aq:()=>oe,ar:()=>ie,as:()=>ue,at:()=>Lr,au:()=>Gn,av:()=>Fr,aw:()=>Kn,ax:()=>Ht,ay:()=>Vt,az:()=>zt,b:()=>wt,c:()=>tt,d:()=>At,e:()=>It,f:()=>pi,g:()=>Yt,h:()=>fe,i:()=>Pr,j:()=>Et,k:()=>Tt,l:()=>st,m:()=>gt,n:()=>qe,o:()=>jt,p:()=>kt,q:()=>Cr,r:()=>ae,s:()=>$e,t:()=>xt,u:()=>Sr,v:()=>Mt,w:()=>Rr,x:()=>pr,y:()=>fr,z:()=>hr});var n=r(949426),i=r(95768),o=r(652994),a=r(215964);function s(e){return new o.c((function(t){(0,a.Tg)(e()).subscribe(t)}))}var c=r(709336),u=r(167791),l=(0,r(282947).L)((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})),d=r(69419);function f(e,t){var r="object"==typeof t;return new Promise((function(n,i){var o=new d.Ms({next:function(e){n(e),o.unsubscribe()},error:i,complete:function(){r?n(t.defaultValue):i(new l)}});e.subscribe(o)}))}var h=r(761209),p=r(757516);function g(e,t,r){return r?g(e,t).pipe((0,p.I)(r)):new o.c((function(r){var n=function(){for(var e=[],t=0;tnull!=e;function ee(e){return e.includes("11?`${e.slice(0,4)}\u2026${e.slice(-6)}`:e}async function ne(e){try{return await navigator.clipboard.writeText(e)}catch(t){console.error("Failed to copy: ",t)}}const ie=e=>"number"==typeof e?`0x${e.toString(16)}`:e;function oe(e){return`0x${(1e9*e).toString(16)}`}const ae={"0x1":"Ethereum","0xaa36a7":"Sepolia","0x38":"Binance","0x89":"Polygon","0xfa":"Fantom","0xa":"OP Mainnet","0x45":"OP Kovan","0xa86a":"Avalanche","0xa4ec":"Celo","0x2105":"Base","0x14a33":"Base Goerli","0x64":"Gnosis","0x63564C40":"Harmony One","0xa4b1":"Arbitrum One","0xa4ba":"Arbitrum Nova","0x27bc86aa":"Degen","0x890":"SNAX"};function se(e){switch(e){case"0x1":case"0x89":case"0xa":case"0xa4b1":case"0x144":return"0x1";case"0x5":case"0xaa36a7":return e;default:return null}}const ce={main:"0x1",sepolia:"0xaa36a7",xdai:"0x64","bsc-main":"0x38","matic-main":"0x89","fantom-main":"0xfa","matic-mumbai":"0x80001",degen:"0x27bc86aa",SNAX:"0x890"},ue={"0x1":{icon:G,color:"#627EEA"},"0xaa36a7":{icon:G,color:"#627EEA"},"0x38":{icon:'\n \n \n \n',color:"#F3BA2F"},"0x89":{icon:q,color:"#8247E5"},"0xfa":{icon:'\n \n \n \n',color:"#1969FF"},"0xa":{icon:Q,color:"#FF0420"},"0x45":{icon:Q,color:"#FF0420"},"0xa86a":{icon:'\n \n \n \n',color:"#E84142"},"0xa4ec":{icon:'\n\n\x3c!-- Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n\n\n\n\n',color:"#FBCC5C"},"0x64":{icon:'\n \n \n \n \n \n \n \n',color:"#04795B"},"0x63564C40":{icon:'\n \n \n \n \n \n \n \n \n \n',color:"#ffffff"},"0xa4b1":{icon:W,color:"#33394B"},"0xa4ba":{icon:W,color:"#33394B"},"0x2105":{icon:J,color:"#0259F9"},"0x14a33":{icon:J,color:"#0259F9"},"0x80001":{icon:q,color:"#8247E5"},"0x27bc86aa":{icon:'\n\n\n \n \n \n \n \n \n \n\n',color:"#a36dfe"},"0x890":{icon:'\n\n\n\n\n',color:"#00D1FF"}},le={icon:Y,color:"#33394B"};function de(e){return e?ue[e.toLowerCase()]:void 0}function fe(e,t){return!!t.find((({id:t,namespace:r})=>t===e.id&&r===e.namespace))}const he={pending:{backgroundColor:"var(--onboard-primary-700, var(--primary-700))",borderColor:"#6370E5",eventIcon:'\n\n \n\n'},success:{backgroundColor:"#052E17",borderColor:"var(--onboard-success-300, var(--success-300))",eventIcon:'\n\n \n\n'},error:{backgroundColor:"#FDB1B11A",borderColor:"var(--onboard-danger-300, var(--danger-300))",eventIcon:'\n\n\n'},hint:{backgroundColor:"var(--onboard-gray-500, var(--gray-500))",borderColor:"var(--onboard-gray-500, var(--gray-500))",iconColor:"var(--onboard-gray-100, var(--gray-100))",eventIcon:Z}},pe=e=>new Promise((t=>setTimeout(t,e)));function ge(e){try{return localStorage.getItem(e)}catch(t){return null}}function me(e,t){try{localStorage.setItem(e,t)}catch(r){return}}function ye(e){try{localStorage.removeItem(e)}catch(t){return}}let be={svelteInstance:null,device:function(){if("undefined"!=typeof window){const e=D.getParser(window.navigator.userAgent),t=e.getOS(),r=e.getBrowser(),{type:n}=e.getPlatform();return{type:n,os:t,browser:r}}return{type:null,os:null,browser:null}}(),initialWalletInit:[],gas:void 0,containerElements:{accountCenter:void 0,connectModal:void 0},unstoppableResolution:void 0,wagmi:void 0};function ve(e){be=Object.assign(Object.assign({},be),e)}const we={wallets:[],walletModules:[],chains:[],accountCenter:{enabled:!0,position:"bottomRight",expanded:!1,minimal:!0},notify:{enabled:!0,position:"topRight",replacement:{gasPriceProbability:{speedup:80,cancel:95}}},notifications:[],locale:"",connect:{showSidebar:!0,disableClose:!1},appMetadata:null,wagmiConfig:null},Ae={TERMS_AGREEMENT:"onboard.js:agreement",LAST_CONNECTED_WALLET:"onboard.js:last_connected_wallet"},Ce=768,Ee="https://rpc.blocknative.com/boost",xe="https://docs.blocknative.com/blocknative-mev-protection/transaction-boost",Se="add_chains",Ie="update_chains",ke="reset_store",_e="add_wallet",Te="update_wallet",Me="remove_wallet",Pe="update_account",je="update_account_center",De="update_connect_modal",Oe="set_wallet_modules",Be="set_locale",Ne="update_notify",Re="add_notification",Le="remove_notification",Fe="update_balance",Ue="update_app_metadata",ze="update_wagmi_config";const He=new n.t(we),Ve=new i.B;function Ke(e){const t=He.getValue();Ve.next(function(e,t){const{type:r,payload:n}=t;switch(r){case Se:return Object.assign(Object.assign({},e),{chains:[...e.chains,...n]});case Ie:{const t=n,r=e.chains,i=r.findIndex((e=>e.id===t.id));return r[i]=t,Object.assign(Object.assign({},e),{chains:r})}case _e:{const t=n,r=e.wallets.find((({label:e})=>e===t.label));return Object.assign(Object.assign({},e),{wallets:[r||n,...e.wallets.filter((({label:e})=>e!==t.label))]})}case Te:{const t=n,{id:r}=t,i=H(t,["id"]),o=e.wallets.map((e=>e.label===r?Object.assign(Object.assign({},e),i):e));return Object.assign(Object.assign({},e),{wallets:o})}case Me:{const t=n;return Object.assign(Object.assign({},e),{wallets:e.wallets.filter((({label:e})=>e!==t.id))})}case Pe:{const t=n,{id:r,address:i}=t,o=H(t,["id","address"]),a=e.wallets.map((e=>(e.label===r&&(e.accounts=e.accounts.map((e=>e.address===i?Object.assign(Object.assign({},e),o):e))),e)));return Object.assign(Object.assign({},e),{wallets:a})}case Fe:{const t=n;return Object.assign(Object.assign({},e),{wallets:t})}case De:{const t=n;return Object.assign(Object.assign({},e),{connect:Object.assign(Object.assign({},e.connect),t)})}case je:{const t=n;return Object.assign(Object.assign({},e),{accountCenter:Object.assign(Object.assign({},e.accountCenter),t)})}case Ne:{const t=n;return Object.assign(Object.assign({},e),{notify:Object.assign(Object.assign({},e.notify),t)})}case Re:{const t=n,r=[...e.notifications],i=r.findIndex((({id:e})=>e===t.id));return-1!==i?r[i]=t:r.unshift(t),Object.assign(Object.assign({},e),{notifications:r})}case Le:{const t=n;return Object.assign(Object.assign({},e),{notifications:e.notifications.filter((e=>e.id!==t))})}case Oe:return Object.assign(Object.assign({},e),{walletModules:n});case Be:return O.Hg.set(n),Object.assign(Object.assign({},e),{locale:n});case Ue:{const t=n;return Object.assign(Object.assign({},e),{appMetadata:Object.assign(Object.assign(Object.assign({},e.appMetadata),t),{name:t.name||""})})}case ze:{const t=n;return Object.assign(Object.assign({},e),{wagmiConfig:t})}case ke:return we;default:throw new Error(`Unknown type: ${r} in appStore reducer`)}}(t,e))}Ve.subscribe(He);const Ge={select:function(e){if(!e)return Ve.asObservable();if(!Object.keys(He.getValue()).includes(String(e)))throw new Error(`key: ${e} does not exist on this store`);return Ve.asObservable().pipe((t=e,(0,b.F)((function(e,n){return r?r(e[t],n[t]):e[t]===n[t]}))),E(e),(0,v.p)(X));var t,r},get:function(){return He.getValue()}};function qe(){}const Qe=e=>e;function We(e){return e()}function Je(){return Object.create(null)}function Ye(e){e.forEach(We)}function Ze(e){return"function"==typeof e}function $e(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let Xe;function et(e,t){return Xe||(Xe=document.createElement("a")),Xe.href=t,e===Xe.href}function tt(e,t,r){e.$$.on_destroy.push(function(e,...t){if(null==e)return qe;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}(t,r))}function rt(e,t,r,n){if(e){const i=nt(e,t,r,n);return e[0](i)}}function nt(e,t,r,n){return e[1]&&n?function(e,t){for(const r in t)e[r]=t[r];return e}(r.ctx.slice(),e[1](n(t))):r.ctx}function it(e,t,r,n){if(e[2]&&n){const i=e[2](n(r));if(void 0===t.dirty)return i;if("object"==typeof i){const e=[],r=Math.max(t.dirty.length,i.length);for(let n=0;n32){const t=[],r=e.ctx.length/32;for(let e=0;ewindow.performance.now():()=>Date.now(),dt=ut?e=>requestAnimationFrame(e):qe;const ft=new Set;function ht(e){ft.forEach((t=>{t.c(e)||(ft.delete(t),t.f())})),0!==ft.size&&dt(ht)}function pt(e){let t;return 0===ft.size&&dt(ht),{promise:new Promise((r=>{ft.add(t={c:e,f:r})})),abort(){ft.delete(t)}}}function gt(e,t){e.appendChild(t)}function mt(e,t,r){const n=yt(e);if(!n.getElementById(t)){const e=Et("style");e.id=t,e.textContent=r,vt(n,e)}}function yt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function bt(e){const t=Et("style");return vt(yt(e),t),t.sheet}function vt(e,t){return gt(e.head||e,t),t.sheet}function wt(e,t,r){e.insertBefore(t,r||null)}function At(e){e.parentNode&&e.parentNode.removeChild(e)}function Ct(e,t){for(let r=0;re.removeEventListener(t,r,n)}function _t(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function Tt(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Mt(e,t){t=""+t,e.data!==t&&(e.data=t)}function Pt(e,t,r,n){null==r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function jt(e,t,r){for(let n=0;n>>0}(l)}_${s}`,f=yt(e),{stylesheet:h,rules:p}=Nt.get(f)||function(e,t){const r={stylesheet:bt(t),rules:{}};return Nt.set(e,r),r}(f,e);p[d]||(p[d]=!0,h.insertRule(`@keyframes ${d} ${l}`,h.cssRules.length));const g=e.style.animation||"";return e.style.animation=`${g?`${g}, `:""}${d} ${n}ms linear ${i}ms 1 both`,Lt+=1,d}function Ut(e,t){const r=(e.style.animation||"").split(", "),n=r.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),i=r.length-n.length;i&&(e.style.animation=n.join(", "),Lt-=i,Lt||dt((()=>{Lt||(Nt.forEach((e=>{const{ownerNode:t}=e.stylesheet;t&&At(t)})),Nt.clear())})))}function zt(e,t,r,n){if(!t)return qe;const i=e.getBoundingClientRect();if(t.left===i.left&&t.right===i.right&&t.top===i.top&&t.bottom===i.bottom)return qe;const{delay:o=0,duration:a=300,easing:s=Qe,start:c=lt()+o,end:u=c+a,tick:l=qe,css:d}=r(e,{from:t,to:i},n);let f,h=!0,p=!1;function g(){d&&Ut(e,f),h=!1}return pt((e=>{if(!p&&e>=c&&(p=!0),p&&e>=u&&(l(1,0),g()),!h)return!1;if(p){const t=0+1*s((e-c)/a);l(t,1-t)}return!0})),d&&(f=Ft(e,0,1,a,o,s,d)),o||(p=!0),l(0,1),g}function Ht(e){const t=getComputedStyle(e);if("absolute"!==t.position&&"fixed"!==t.position){const{width:r,height:n}=t,i=e.getBoundingClientRect();e.style.position="absolute",e.style.width=r,e.style.height=n,Vt(e,i)}}function Vt(e,t){const r=e.getBoundingClientRect();if(t.left!==r.left||t.top!==r.top){const n=getComputedStyle(e),i="none"===n.transform?"":n.transform;e.style.transform=`${i} translate(${t.left-r.left}px, ${t.top-r.top}px)`}}function Kt(e){Rt=e}function Gt(){if(!Rt)throw new Error("Function called outside component initialization");return Rt}function qt(e){Gt().$$.on_mount.push(e)}function Qt(e){Gt().$$.on_destroy.push(e)}function Wt(e,t){const r=e.$$.callbacks[t.type];r&&r.slice().forEach((e=>e.call(this,t)))}const Jt=[],Yt=[];let Zt=[];const $t=[],Xt=Promise.resolve();let er=!1;function tr(e){Zt.push(e)}function rr(e){$t.push(e)}const nr=new Set;let ir,or=0;function ar(){if(0!==or)return;const e=Rt;do{try{for(;or{ir=null}))),ir}function ur(e,t,r){e.dispatchEvent(function(e,t,{bubbles:r=!1,cancelable:n=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,r,n,t),i}(`${t?"intro":"outro"}${r}`))}const lr=new Set;let dr;function fr(){dr={r:0,c:[],p:dr}}function hr(){dr.r||Ye(dr.c),dr=dr.p}function pr(e,t){e&&e.i&&(lr.delete(e),e.i(t))}function gr(e,t,r,n){if(e&&e.o){if(lr.has(e))return;lr.add(e),dr.c.push((()=>{lr.delete(e),n&&(r&&e.d(1),n())})),e.o(t)}else n&&n()}const mr={duration:0};function yr(e,t,r){const n={direction:"in"};let i,o,a=t(e,r,n),s=!1,c=0;function u(){i&&Ut(e,i)}function l(){const{delay:t=0,duration:r=300,easing:n=Qe,tick:l=qe,css:d}=a||mr;d&&(i=Ft(e,0,1,r,t,n,d,c++)),l(0,1);const f=lt()+t,h=f+r;o&&o.abort(),s=!0,tr((()=>ur(e,!0,"start"))),o=pt((t=>{if(s){if(t>=h)return l(1,0),ur(e,!0,"end"),u(),s=!1;if(t>=f){const e=n((t-f)/r);l(e,1-e)}}return s}))}let d=!1;return{start(){d||(d=!0,Ut(e),Ze(a)?(a=a(n),cr().then(l)):l())},invalidate(){d=!1},end(){s&&(u(),s=!1)}}}function br(e,t,r){const n={direction:"out"};let i,o=t(e,r,n),a=!0;const s=dr;function c(){const{delay:t=0,duration:r=300,easing:n=Qe,tick:c=qe,css:u}=o||mr;u&&(i=Ft(e,1,0,r,t,n,u));const l=lt()+t,d=l+r;tr((()=>ur(e,!1,"start"))),pt((t=>{if(a){if(t>=d)return c(0,1),ur(e,!1,"end"),--s.r||Ye(s.c),!1;if(t>=l){const e=n((t-l)/r);c(1-e,e)}}return a}))}return s.r+=1,Ze(o)?cr().then((()=>{o=o(n),c()})):c(),{end(t){t&&o.tick&&o.tick(1,0),a&&(i&&Ut(e,i),a=!1)}}}function vr(e,t,r,n){const i={direction:"both"};let o=t(e,r,i),a=n?0:1,s=null,c=null,u=null;function l(){u&&Ut(e,u)}function d(e,t){const r=e.b-a;return t*=Math.abs(r),{a:a,b:e.b,d:r,duration:t,start:e.start,end:e.start+t,group:e.group}}function f(t){const{delay:r=0,duration:n=300,easing:i=Qe,tick:f=qe,css:h}=o||mr,p={start:lt()+r,b:t};t||(p.group=dr,dr.r+=1),s||c?c=p:(h&&(l(),u=Ft(e,a,t,n,r,i,h)),t&&f(0,1),s=d(p,n),tr((()=>ur(e,t,"start"))),pt((t=>{if(c&&t>c.start&&(s=d(c,n),c=null,ur(e,s.b,"start"),h&&(l(),u=Ft(e,a,s.b,s.duration,0,i,o.css))),s)if(t>=s.end)f(a=s.b,1-a),ur(e,s.b,"end"),c||(s.b?l():--s.group.r||Ye(s.group.c)),s=null;else if(t>=s.start){const e=t-s.start;a=s.a+s.d*i(e/s.duration),f(a,1-a)}return!(!s&&!c)})))}return{run(e){Ze(o)?cr().then((()=>{o=o(i),f(e)})):f(e)},end(){l(),s=c=null}}}function wr(e,t){const r=t.token={};function n(e,n,i,o){if(t.token!==r)return;t.resolved=o;let a=t.ctx;void 0!==i&&(a=a.slice(),a[i]=o);const s=e&&(t.current=e)(a);let c=!1;t.block&&(t.blocks?t.blocks.forEach(((e,r)=>{r!==n&&e&&(fr(),gr(e,1,1,(()=>{t.blocks[r]===e&&(t.blocks[r]=null)})),hr())})):t.block.d(1),s.c(),pr(s,1),s.m(t.mount(),t.anchor),c=!0),t.block=s,t.blocks&&(t.blocks[n]=s),c&&ar()}if(!(i=e)||"object"!=typeof i&&"function"!=typeof i||"function"!=typeof i.then){if(t.current!==t.then)return n(t.then,1,t.value,e),!0;t.resolved=e}else{const r=Gt();if(e.then((e=>{Kt(r),n(t.then,1,t.value,e),Kt(null)}),(e=>{if(Kt(r),n(t.catch,2,t.error,e),Kt(null),!t.hasCatch)throw e})),t.current!==t.pending)return n(t.pending,0),!0}var i}function Ar(e,t,r){const n=t.slice(),{resolved:i}=e;e.current===e.then&&(n[e.value]=i),e.current===e.catch&&(n[e.error]=i),e.block.p(n,r)}function Cr(e,t){e.d(1),t.delete(e.key)}function Er(e,t){gr(e,1,1,(()=>{t.delete(e.key)}))}function xr(e,t){e.f(),Er(e,t)}function Sr(e,t,r,n,i,o,a,s,c,u,l,d){let f=e.length,h=o.length,p=f;const g={};for(;p--;)g[e[p].key]=p;const m=[],y=new Map,b=new Map,v=[];for(p=h;p--;){const e=d(i,o,p),s=r(e);let c=a.get(s);c?n&&v.push((()=>c.p(e,t))):(c=u(s,e),c.c()),y.set(s,m[p]=c),s in g&&b.set(s,Math.abs(p-g[s]))}const w=new Set,A=new Set;function C(e){pr(e,1),e.m(s,l),a.set(e.key,e),l=e.first,h--}for(;f&&h;){const t=m[h-1],r=e[f-1],n=t.key,i=r.key;t===r?(l=t.first,f--,h--):y.has(i)?!a.has(n)||w.has(n)?C(t):A.has(i)?f--:b.get(n)>b.get(i)?(A.add(n),C(t)):(w.add(i),f--):(c(r,a),f--)}for(;f--;){const t=e[f];y.has(t.key)||c(t,a)}for(;h;)C(m[h-1]);return Ye(v),m}function Ir(e,t,r){const n=e.$$.props[t];void 0!==n&&(e.$$.bound[n]=r,r(e.$$.ctx[n]))}function kr(e){e&&e.c()}function _r(e,t,r,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,r),n||tr((()=>{const t=e.$$.on_mount.map(We).filter(Ze);e.$$.on_destroy?e.$$.on_destroy.push(...t):Ye(t),e.$$.on_mount=[]})),o.forEach(tr)}function Tr(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];Zt.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),Zt=t}(r.after_update),Ye(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Mr(e,t){-1===e.$$.dirty[0]&&(Jt.push(e),er||(er=!0,Xt.then(ar)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const o=n.length?n[0]:r;return u.ctx&&i(u.ctx[t],u.ctx[t]=o)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](o),l&&Mr(e,t)),r})):[],u.update(),l=!0,Ye(u.before_update),u.fragment=!!n&&n(u.ctx),t.target){if(t.hydrate){const e=(d=t.target,Array.from(d.childNodes));u.fragment&&u.fragment.l(e),e.forEach(At)}else u.fragment&&u.fragment.c();t.intro&&pr(e.$$.fragment),_r(e,t.target,t.anchor,t.customElement),ar()}var d;Kt(c)}class jr{$destroy(){Tr(this,1),this.$destroy=qe}$on(e,t){if(!Ze(t))return qe;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Dr=new i.B,Or=new i.B,Br=new n.t({inProgress:!1,actionRequired:""}),Nr=new n.t(null),Rr=Ge.select("wallets").pipe((0,y.t)(1));Dr.pipe(M(Rr),E("1")).subscribe((e=>{e.forEach((({label:e})=>{Or.next(e)})),Ke({type:ke})}));const Lr=new n.t([]);function Fr(e){const t=Lr.getValue();Lr.next(t.filter((t=>t.hash!==e)))}s((()=>{const e=new i.B;return qt((()=>{e.next()})),e.asObservable().pipe((0,C.s)(1))}));const Ur=s((()=>{const e=new i.B;return Qt((()=>{e.next()})),e.asObservable().pipe((0,C.s)(1))}));s((()=>{const e=new i.B;var t;return t=()=>{e.next()},Gt().$$.after_update.push(t),e.asObservable().pipe((0,u.Q)(Ur))})),s((()=>{const e=new i.B;var t;return t=()=>{e.next()},Gt().$$.before_update.push(t),e.asObservable().pipe((0,u.Q)(Ur))}));const zr={default:{"--w3o-background-color":"unset","--w3o-foreground-color":"unset","--w3o-text-color":"unset","--w3o-border-color":"unset","--w3o-action-color":"unset","--w3o-border-radius":"unset","--w3o-font-family":"inherit"},light:{"--w3o-background-color":"#ffffff","--w3o-foreground-color":"#EFF1FC","--w3o-text-color":"#1a1d26","--w3o-border-color":"#d0d4f7","--w3o-action-color":"#6370E5","--w3o-border-radius":"16px","--w3o-font-family":"inherit"},dark:{"--w3o-background-color":"#1A1D26","--w3o-foreground-color":"#242835","--w3o-text-color":"#EFF1FC","--w3o-border-color":"#33394B","--w3o-action-color":"#929bed","--w3o-border-radius":"16px","--w3o-font-family":"inherit"}},Hr=e=>"string"==typeof e&&"system"===e?Gr():Vr(e),Vr=e=>"string"==typeof e&&e in zr?zr[e]:"object"==typeof e?e:void 0,Kr=e=>{Object.keys(e).forEach((t=>{document.documentElement.style.setProperty(t,e[t]||null)}))},Gr=()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");e.matches?Kr(zr.dark):Kr(zr.light),(0,c.R)(e,"change").pipe((0,u.Q)(Dr)).subscribe((e=>{e.matches?Kr(zr.dark):Kr(zr.light)}))},qr=B.object().unknown(),Qr=B.object({namespace:N.mt.required(),id:N.kh.required()}),Wr=B.any().allow(B.object({name:B.string().required(),avatar:B.string(),contentHash:B.any().allow(B.string(),null),getText:B.function().arity(1).required()}),null),Jr=B.any().allow(B.object({name:B.string().required()}),null),Yr=B.any().allow(B.object({eth:B.number()}).unknown(),null),Zr=B.any().allow(B.object({balance:B.string().required(),icon:B.string()}),null),$r=B.object({address:B.string().required(),ens:Wr,uns:Jr,balance:Yr,secondaryTokens:Zr}),Xr=B.array().items(N.Vq).unique(((e,t)=>e.id===t.id)).error((e=>"array.unique"===e[0].code?new Error(`There is a duplicate Chain ID in your Onboard Chains array: ${e}`):new Error(`${e}`))),en=B.array().items($r),tn=B.object({label:B.string(),icon:B.string(),provider:qr,instance:qr,accounts:en,chains:B.array().items(Qr),wagmiConnector:qr}).required().error(new Error("wallet must be defined")),rn=B.array().items(tn),nn=B.object({name:B.string().required(),url:B.string().uri().required()}),on=B.object({version:B.string().required(),termsUrl:B.string().uri(),privacyUrl:B.string().uri()}),an=B.object({name:B.string().required(),description:B.string().required(),icon:B.string(),logo:B.string(),gettingStartedGuide:B.string(),email:B.string(),appUrl:B.string(),explore:B.string(),recommendedInjectedWallets:B.array().items(nn),agreement:on}),sn=B.object({name:B.string(),description:B.string(),icon:B.string(),logo:B.string(),gettingStartedGuide:B.string(),email:B.string(),appUrl:B.string(),explore:B.string(),recommendedInjectedWallets:B.array().items(nn),agreement:on});B.object({label:B.string().required(),getInfo:B.function().arity(1).required(),getInterface:B.function().arity(1).required()});const cn=B.array().items(B.function()).required(),un=B.string(),ln=B.string().valid("topRight","bottomRight","bottomLeft","topLeft"),dn=[70,80,90,95,99],fn=B.object({transactionHandler:B.function().optional(),enabled:B.boolean(),position:ln,replacement:B.object({gasPriceProbability:B.object({speedup:B.number().valid(...dn),cancel:B.number().valid(...dn)})})}),hn=B.object({desktop:fn,mobile:fn}),pn=B.object({enabled:B.boolean(),position:ln,minimal:B.boolean(),containerElement:B.string(),hideTransactionProtectionBtn:B.boolean(),transactionProtectionInfoLink:B.string()}),gn=B.object({enabled:B.boolean(),position:ln,expanded:B.boolean(),minimal:B.boolean(),hideTransactionProtectionBtn:B.boolean(),transactionProtectionInfoLink:B.string(),containerElement:B.string()}),mn=B.object({showSidebar:B.boolean(),disableClose:B.boolean(),autoConnectLastWallet:B.boolean(),autoConnectAllPreviousWallet:B.boolean(),iDontHaveAWalletLink:B.string(),wheresMyWalletLink:B.string(),removeWhereIsMyWalletWarning:B.boolean(),removeIDontHaveAWalletInfoLink:B.boolean(),disableUDResolution:B.boolean()}),yn=B.object({accountCenter:B.string(),connectModal:B.string()}),bn=B.object({"--w3o-background-color":B.string(),"--w3o-font-family":B.string(),"--w3o-foreground-color":B.string(),"--w3o-text-color":B.string(),"--w3o-border-color":B.string(),"--w3o-action-color":B.string(),"--w3o-border-radius":B.string()}),vn=B.string().valid("default","dark","light","system"),wn=B.alternatives().try(bn,vn),An=B.object({wallets:cn,chains:Xr.required(),appMetadata:an,i18n:B.object().unknown(),apiKey:B.string(),accountCenter:B.object({desktop:pn,mobile:pn,hideTransactionProtectionBtn:B.boolean(),transactionProtectionInfoLink:B.string()}),notify:[hn,fn],gas:B.object({get:B.function().required(),stream:B.function().required()}),wagmi:B.function(),connect:mn,containerElements:yn,transactionPreview:B.any(),theme:wn,disableFontDownload:B.boolean(),unstoppableResolution:B.function()}),Cn=B.object({autoSelect:B.alternatives().try(B.object({label:B.string().required(),disableModals:B.boolean()}),B.string())}),En=B.object({label:B.string().required()}).required(),xn=B.object({address:B.string().required(),icon:B.string().optional()}),Sn=B.object({chainId:N.kh.required(),chainNamespace:N.mt,wallet:B.string(),rpcUrl:B.string(),label:B.string(),token:B.string(),protectedRpcUrl:B.string(),secondaryTokens:B.array().max(5).items(xn).optional()}),In=B.object({key:B.string().required(),type:B.string().allow("pending","error","success","hint"),eventCode:B.string(),message:B.string().required(),id:B.string().required(),autoDismiss:B.number(),onClick:B.function(),link:B.string()});B.object({sendTransaction:B.function(),estimateGas:B.function(),gasPrice:B.function(),balance:B.alternatives(B.string(),B.number()),txDetails:B.object({value:B.alternatives(B.string(),B.number()),to:B.string(),from:B.string()}),txApproveReminderTimeout:B.number()});const kn=B.object({key:B.string(),type:B.string().allow("pending","error","success","hint"),eventCode:B.string(),message:B.string(),id:B.string(),autoDismiss:B.number(),onClick:B.function(),link:B.string()});function _n(e){return(0,N.tf)(tn,e)}function Tn(e,t){return(0,N.tf)(B.string().required().label(t||"value"),e)}function Mn(e){return(0,N.tf)(Sn,e)}function Pn(e){return(0,N.tf)(un,e)}function jn(e){return(0,N.tf)(fn,e)}function Dn(e){return(0,N.tf)(kn,e)}function On(e){return(0,N.tf)(rn,e)}function Bn(e){return(0,N.tf)(wn,e)}function Nn(e){const{label:t,token:r,rpcUrl:n,id:i,namespace:o}=e,a=Mn({label:t,token:r,rpcUrl:n,chainId:i,chainNamespace:o});if(a)throw a;Ke({type:Ie,payload:e})}function Rn(e){const t=_n(e);if(t)throw console.error(t),t;Ke({type:_e,payload:e})}function Ln(e,t){const r=_n(t);if(r)throw console.error(r),r;Ke({type:Te,payload:Object.assign({id:e},t)})}function Fn(e,t){const r=_n(e)||t&&Tn(t,"address");if(r)throw r;if(t){const r=e.accounts.find((e=>e.address===t));r&&(e.accounts=[r,...e.accounts.filter((({address:e})=>e!==r.address))])}!function(e){const{wagmi:t}=be;if(!t)return;try{const{label:r}=e,{wagmiConnect:n,getWagmiConnector:i}=t,o=Ge.get().wagmiConfig,a=i(r);n(o,{connector:a}).then((()=>{Ln(r,{wagmiConnector:a})}))}catch(r){console.error(`Error updating Wagmi connector on primary wallet switch ${r}`)}}(e),Rn(e)}function Un(e,t,r){Ke({type:Pe,payload:Object.assign({id:e,address:t},r)})}function zn(e){const t=(r=e,(0,N.tf)(gn,r));var r;if(t)throw t;Ke({type:je,payload:e})}function Hn(e){const t=(r=e,(0,N.tf)(mn,r));var r;if(t)throw t;Ke({type:De,payload:e})}function Vn(e){const t=jn(e);if(t)throw t;Ke({type:Ne,payload:e})}function Kn(e){const t=(r=e,(0,N.tf)(In,r));var r;if(t)throw t;Ke({type:Re,payload:e})}function Gn(e){if("string"!=typeof e)throw new Error("Notification id must be of type string");Ke({type:Le,payload:e})}function qn(e){const t=(r=e,(0,N.tf)(cn,r));var r;if(t)throw t;const n=function(e){const{device:t}=be;return t?e.reduce(((e,r)=>{const n=r({device:t});return n&&e.push(...Array.isArray(n)?n:[n]),e}),[]):[]}(e),i=(o=n).filter(((e,t)=>e&&o.findIndex((t=>t&&t.label===e.label))===t));var o;Ke({type:Oe,payload:i})}function Qn(e){const t=Bn(e);if(t)throw t;const r=Hr(e);r&&Kr(r)}function Wn(e){const t=(r=e,(0,N.tf)(sn,r));var r;if(t)throw t;Ke({type:Ue,payload:e})}function Jn(e){Ke({type:ze,payload:e})}async function Yn(e){if(e){const r=(t=e,(0,N.tf)(Cn,t));if(r)throw r}var t;const{chains:r}=Ge.get();if(!r.length)throw new Error("At least one chain must be set before attempting to connect a wallet");let{autoSelect:n}=e||{};n||(n={label:"",disableModals:!1}),n&&("string"==typeof n||n.label)&&await pe(50),Ge.get().walletModules.length||qn(be.initialWalletInit),Br.next({autoSelect:"string"==typeof n?{label:n,disableModals:!1}:n,inProgress:!0});return f(Br.pipe((0,v.p)((({inProgress:e,actionRequired:t})=>!1===e&&!t)),M(Rr),E(1)))}async function Zn(e){const t=(r=e,(0,N.tf)(En,r));var r;if(t)throw t;const{label:n}=e,{wagmi:i}=be;if(i){const e=await i.wagmiDisconnectWallet(n);e&&Jn(e)}Or.next(n),function(e){const t=Tn(e,"wallet id");if(t)throw t;Ke({type:Me,payload:{id:e}})}(n);const o=ge(Ae.LAST_CONNECTED_WALLET);if(o)try{const e=JSON.parse(o);Array.isArray(e)&&e.indexOf(n)>=0&&me(Ae.LAST_CONNECTED_WALLET,JSON.stringify(e.filter((e=>e!==n)))),"string"==typeof e&&e===n&&ye(Ae.LAST_CONNECTED_WALLET)}catch(a){console.error(`There was an error disconnecting the last connected wallet from localStorage - Error: ${a}`)}return Ge.get().wallets}B.object({id:B.string().required(),key:B.string().required(),type:B.string().allow("pending","error","success","hint").required(),eventCode:B.string().required(),message:B.string().required(),autoDismiss:B.number().required(),network:B.string().required(),startTime:B.number(),onClick:B.function(),link:B.string()});const $n=async(e,t)=>{if(!t)return[];const n=t.rpcUrl;if(!t.secondaryTokens||!t.secondaryTokens.length||!n)return[];return await Promise.all(t.secondaryTokens.map((async i=>{try{const{createPublicClient:o,http:a}=await r.e(1973).then(r.bind(r,601973)),s=o({chain:await(0,N.gb)(t),transport:a(t.providerConnectionInfo&&t.providerConnectionInfo.url?t.providerConnectionInfo.url:n)}),c={abi:[{inputs:[{name:"owner",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],stateMutability:"view",type:"function"}],address:i.address},u=s.readContract(Object.assign(Object.assign({},c),{functionName:"balanceOf",args:[e]}))||"",l=s.readContract(Object.assign(Object.assign({},c),{functionName:"symbol",args:[]}))||"",[d,f]=await Promise.all([u,l]);return{name:f,balance:(0,N.xM)(d.toString()),icon:i.icon}}catch(o){console.error(`There was an error fetching balance and/or symbol \n for token contract: ${i.address} - ${o}`)}})))},Xn={};async function ei(e){if(!e)return null;if(!Xn[e.rpcUrl]){const t=await(async e=>{switch(e){case"0x89":case"0xa":case"0xa4b1":case"0x144":case"0x1":{const{mainnet:e}=await Promise.all([r.e(11031),r.e(76868)]).then(r.bind(r,76868));return e}case"0xaa36a7":{const{sepolia:e}=await Promise.all([r.e(11031),r.e(76868)]).then(r.bind(r,76868));return e}default:return null}})(e.id);if(!t)return null;const{createPublicClient:n,http:i}=await r.e(1973).then(r.bind(r,601973)),o=n({chain:t,transport:i()});Xn[e.rpcUrl]=o}return Xn[e.rpcUrl]}function ti(e){return e.request({method:"eth_requestAccounts"})}function ri(e){return e.request({method:"eth_selectAccounts"})}function ni(e){return e.request({method:"eth_chainId"})}function ii(e){const{provider:t,disconnected$:r}=e;return g((e=>{t.on("accountsChanged",e)}),(e=>{t.removeListener("accountsChanged",e)})).pipe((0,u.Q)(r))}function oi(e,t){const r=Or.pipe((0,v.p)((e=>e===t)),(0,C.s)(1)),n=ii({provider:e,disconnected$:r}).pipe((0,P.u)());n.subscribe((async([e])=>{try{await async function(e){const t=Ge.get().wallets.find((t=>t.label===e));if(!t)return;const r=await async function(e){try{const t=await e.request({method:"wallet_getPermissions"});return Array.isArray(t)?t:[]}catch(t){return[]}}(t.provider),n=r.find((({parentCapability:e})=>"eth_accounts"===e));if(n){const{value:e}=n.caveats.find((({type:e})=>"restrictReturnedAccounts"===e))||{value:null};if(e){const r=t.accounts.filter((({address:t})=>e.includes(t)));Ln(t.label,Object.assign(Object.assign({},t),{accounts:r}))}}}(t)}catch(s){console.warn("Web3Onboard: Error whilst trying to sync connected accounts:",s)}if(!e)return void Zn({label:t});const{wallets:r}=Ge.get(),n=r.find((e=>e.label===t)),i=n?n.accounts:[],[[o],a]=R(i,(t=>t.address===e));Ln(t,{accounts:[o||{address:e,ens:null,uns:null,balance:null},...a]})})),n.pipe(j((async([e])=>{if(!e)return;const{wallets:r,chains:n}=Ge.get(),i=r.find((e=>e.label===t));if(!i)return;const{chains:o,accounts:a}=i,[s]=o,c=n.find((({namespace:e,id:t})=>"evm"===e&&t===s.id));if(!c)return;const u=ci(e,c),l=$n(e,c),d=a.find((t=>t.address===e)),f=n.find((({id:e})=>e===se(s.id))),h=d&&d.ens?Promise.resolve(d.ens):f?ai(e,f):Promise.resolve(null),p=d&&d.uns?Promise.resolve(d.uns):f?si(e,f):Promise.resolve(null);return Promise.all([Promise.resolve(e),u,h,p,l])}))).subscribe((e=>{if(!e)return;const[r,n,i,o,a]=e;Un(t,r,{balance:n,ens:i,uns:o,secondaryTokens:a})}));const i=function(e){const{provider:t,disconnected$:r}=e;return g((e=>{t.on("chainChanged",e)}),(e=>{t.removeListener("chainChanged",e)})).pipe((0,u.Q)(r))}({provider:e,disconnected$:r}).pipe((0,P.u)());i.subscribe((async e=>{const{wallets:r}=Ge.get(),n=r.find((e=>e.label===t));if(!n)return;const{chains:i,accounts:o}=n,[a]=i;if((0,L.q)(e)||(e=(0,F.nj)(e)),e===a.id)return;const s=o.map((({address:e})=>({address:e,ens:null,uns:null,balance:null})));Ln(t,{chains:[{namespace:"evm",id:e}],accounts:s})})),i.pipe(j((async e=>{const{wallets:r,chains:n}=Ge.get(),i=r.find((e=>e.label===t)),o=(null==i?void 0:i.accounts)||[];(0,L.q)(e)||(e=(0,F.nj)(e));const a=n.find((({namespace:t,id:r})=>"evm"===t&&r===e));return a?Promise.all(o.map((async({address:t})=>{const r=ci(t,a),i=$n(t,a),o=n.find((({id:t})=>t===se(e))),s=o?ai(t,o):Promise.resolve(null),c=o?si(t,o):Promise.resolve(null),[u,l,d,f]=await Promise.all([r,s,c,i]);return{address:t,balance:u,ens:l,uns:d,secondaryTokens:f}}))):Promise.resolve(null)}))).subscribe((e=>{e&&Ln(t,{accounts:e})})),r.subscribe((()=>{e.disconnect&&e.disconnect()}))}async function ai(e,t){if(!t)return null;const n=await ei(t);if(!n)return null;try{const t=await n.getEnsName({address:e});let i=null;if(t){const{labelhash:e,normalize:o}=await Promise.all([r.e(11031),r.e(69575)]).then(r.bind(r,69575)).then((function(e){return e.i})),a=o(t),s=await n.getEnsResolver({name:a}),c=await n.getEnsAvatar({name:a}),u=e(a);i={name:t,avatar:c,contentHash:u,ensResolver:s,getText:async e=>await n.getEnsText({name:t,key:e})}}return i}catch(i){return console.error(i),null}}async function si(e,t){const{unstoppableResolution:r}=be;if(!r||!(0,N.PW)(e)||!t)return null;try{return await r(e)}catch(n){return console.error(n),null}}async function ci(e,t){if(!t)return null;const{wallets:r}=Ge.get();try{const n=r.find((e=>!!e.provider));if(!n)return null;const i=n.provider,o=await i.request({method:"eth_getBalance",params:[e,"latest"]});return o?{[t.token||"eth"]:(0,N.P2)(o)}:null}catch(n){return console.error(n),null}}function ui(e,t){return e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]})}function li(e,t){return e.request({method:"wallet_addEthereumChain",params:[{chainId:t.id,chainName:t.label,nativeCurrency:{name:t.label,symbol:t.token,decimals:18},rpcUrls:[t.publicRpcUrl||t.rpcUrl],blockExplorerUrls:t.blockExplorerUrl?[t.blockExplorerUrl]:null}]})}function di(e,t,r){return e.request({method:"wallet_addEthereumChain",params:[{chainId:t.id,chainName:t.label,nativeCurrency:{name:t.label,symbol:t.token,decimals:18},rpcUrls:[r],blockExplorerUrls:t.blockExplorerUrl?[t.blockExplorerUrl]:void 0}]})}const fi=async(e,t)=>{try{const{id:r}=t;return await li(e,t),await ui(e,r),r}catch(r){return}},hi=()=>({addOrSwitchChain:fi,getChainId:ni,requestAccounts:ti,switchChain:ui});async function pi(e){const t=Mn(e);if(t)throw t;const{wallets:r,chains:n}=Ge.get(),{chainId:i,chainNamespace:o="evm",wallet:a,rpcUrl:s,label:c,token:u}=e,l=ie(i),d=n.find((({namespace:e,id:t})=>e===o&&t.toLowerCase()===l.toLowerCase()));if(!d)throw new Error(`Chain with chainId: ${i} and chainNamespace: ${o} has not been set and must be added when Onboard is initialized.`);const h=a?r.find((({label:e})=>e===a)):r[0];if(!h)throw new Error(a?`Wallet with label ${a} is not connected`:"A wallet must be connected before a chain can be set");const[p]=h.chains;if(p.namespace===o&&p.id===l)return!0;try{return await ui(h.provider,l),!0}catch(t){const{code:e}=t,r=Nr.pipe((0,v.p)((e=>null===e)),(0,w.T)((()=>!1)));if(e===N.ProviderRpcErrorCode.CHAIN_NOT_ADDED||e===N.ProviderRpcErrorCode.UNRECOGNIZED_CHAIN_ID)return(s||c||u)&&(s&&(d.rpcUrl=s),c&&(d.label=c),u&&(d.token=u),Nn(d)),gi(h,d,r,l);if(e===N.ProviderRpcErrorCode.UNSUPPORTED_METHOD)return Nr.next({chain:d}),f(r)}return!1}const gi=async(e,t,r,n)=>{try{return await li(e.provider,t),await ui(e.provider,n),!0}catch(i){const{code:e}=i;return e!==N.ProviderRpcErrorCode.ACCOUNT_ACCESS_REJECTED&&(Nr.next({chain:t}),f(r))}};var mi={connect:{selectingWallet:{header:"Available Wallets",sidebar:{heading:"",subheading:"Connect your wallet",paragraph:"Connecting your wallet is like \u201clogging in\u201d to Web3. Select your wallet from the options to get started.",IDontHaveAWallet:"I don't have a wallet"},recommendedWalletsPart1:"{app} only supports",recommendedWalletsPart2:"on this platform. Please use or install one of the supported wallets to continue",installWallet:"You do not have any wallets installed that {app} supports, please use a supported wallet",agreement:{agree:"I agree to the",terms:"Terms & Conditions",and:"and",privacy:"Privacy Policy"},whyDontISeeMyWallet:"Why don't I see my wallet?",learnMore:"Click here to learn more"},connectingWallet:{header:"{connectionRejected, select, false {Connecting to {wallet}...} other {Connection Rejected}}",sidebar:{subheading:"Approve Connection",paragraph:"Please approve the connection in your wallet and authorize access to continue."},mainText:"Connecting...",paragraph:"Make sure to select all accounts that you want to grant access to.",previousConnection:"{wallet} already has a pending connection request, please open the {wallet} app to login and connect.",rejectedText:"Connection Rejected!",rejectedCTA:"Click here to try again",primaryButton:"Back to wallets"},connectedWallet:{header:"Connection Successful",sidebar:{subheading:"Connection Successful!",paragraph:"Your wallet is now connected to {app}"},mainText:"Connected"}},modals:{actionRequired:{heading:"Action required in {wallet}",paragraph:"Please switch the active account in your wallet.",linkText:"Learn more.",buttonText:"Okay"},switchChain:{heading:"Switch Chain",paragraph1:"{app} requires that you switch your wallet to the {nextNetworkName} network to continue.",paragraph2:"*Some wallets may not support changing networks. If you can not change networks in your wallet you may consider switching to a different wallet."},confirmDisconnectAll:{heading:"Disconnect all Wallets",description:"Are you sure that you would like to disconnect all your wallets?",confirm:"Confirm",cancel:"Cancel"},confirmTransactionProtection:{heading:"Enable Transaction Protection",description:"Protect RPC endpoints hide your transaction from front-running and sandwich bots.",link:"Learn more",enable:"Enable",dismiss:"Dismiss"}},accountCenter:{connectAnotherWallet:"Connect another Wallet",disconnectAllWallets:"Disconnect all Wallets",currentNetwork:"Current Network",enableTransactionProtection:"Enable Transaction Protection",appInfo:"App Info",learnMore:"Learn More",gettingStartedGuide:"Getting Started Guide",smartContracts:"Smart Contract(s)",explore:"Explore",poweredBy:"powered by",addAccount:"Add Account",setPrimaryAccount:"Set Primary Account",disconnectWallet:"Disconnect Wallet",copyAddress:"Copy Wallet address"},notify:{transaction:{txRequest:"Your transaction is waiting for you to confirm",nsfFail:"You have insufficient funds for this transaction",txUnderpriced:"The gas price for your transaction is too low, try a higher gas price",txRepeat:"This could be a repeat transaction",txAwaitingApproval:"You have a previous transaction waiting for you to confirm",txConfirmReminder:"Please confirm your transaction to continue",txSendFail:"You rejected the transaction",txSent:"Your transaction has been sent to the network",txStallPending:"Your transaction has stalled before it was sent, please try again",txStuck:"Your transaction is stuck due to a nonce gap",txPool:"Your transaction has started",txStallConfirmed:"Your transaction has stalled and hasn't been confirmed",txSpeedUp:"Your transaction has been sped up",txCancel:"Your transaction is being canceled",txFailed:"Your transaction has failed",txConfirmed:"Your transaction has succeeded",txError:"Oops something went wrong, please try again",txReplaceError:"There was an error replacing your transaction, please try again"},watched:{txPool:"Your account is {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txSpeedUp:"Transaction for {formattedValue} {asset} {preposition} {counterpartyShortened} has been sped up",txCancel:"Transaction for {formattedValue} {asset} {preposition} {counterpartyShortened} has been canceled",txConfirmed:"Your account successfully {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txFailed:"Your account failed to {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txStuck:"Your transaction is stuck due to a nonce gap"},time:{minutes:"min",seconds:"sec"}}};function yi(e){mt(e,"svelte-1ubf722",".close-button.svelte-1ubf722.svelte-1ubf722{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;height:2rem;width:2rem;border-radius:2rem;cursor:pointer;color:var(--onboard-close-button-color, inherit)}.close-button.svelte-1ubf722.svelte-1ubf722:hover::before{opacity:0.2}.close-button.svelte-1ubf722:hover .svg-box.svelte-1ubf722{opacity:1}.close-button.svelte-1ubf722.svelte-1ubf722::before{content:'';position:absolute;height:inherit;width:inherit;opacity:0.1;background:currentColor;transition:300ms ease-in-out opacity}.svg-box.svelte-1ubf722.svelte-1ubf722{position:absolute;height:1.5rem;width:1.5rem;opacity:0.6;transition:300ms ease-in-out opacity}")}function bi(e){let t,r;return{c(){t=Et("div"),r=Et("div"),Tt(r,"class","svg-box svelte-1ubf722"),Tt(t,"class","close-button svelte-1ubf722")},m(e,n){wt(e,t,n),gt(t,r),r.innerHTML='\n \n \n \n'},p:qe,i:qe,o:qe,d(e){e&&At(t)}}}class vi extends jr{constructor(e){super(),Pr(this,e,null,bi,$e,{},yi)}}function wi(e){const t=e-1;return t*t*t+1}function Ai(e){return Math.pow(e-1,3)*(1-e)+1}function Ci(e,{delay:t=0,duration:r=400,easing:n=Qe}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:e=>"opacity: "+e*i}}function Ei(e,{delay:t=0,duration:r=400,easing:n=wi,x:i=0,y:o=0,opacity:a=0}={}){const s=getComputedStyle(e),c=+s.opacity,u="none"===s.transform?"":s.transform,l=c*(1-a),[d,f]=ct(i),[h,p]=ct(o);return{delay:t,duration:r,easing:n,css:(e,t)=>`\n\t\t\ttransform: ${u} translate(${(1-e)*d}${f}, ${(1-e)*h}${p});\n\t\t\topacity: ${c-l*t}`}}function xi(e,{delay:t=0,duration:r=400,easing:n=wi,axis:i="y"}={}){const o=getComputedStyle(e),a=+o.opacity,s="y"===i?"height":"width",c=parseFloat(o[s]),u="y"===i?["top","bottom"]:["left","right"],l=u.map((e=>`${e[0].toUpperCase()}${e.slice(1)}`)),d=parseFloat(o[`padding${l[0]}`]),f=parseFloat(o[`padding${l[1]}`]),h=parseFloat(o[`margin${l[0]}`]),p=parseFloat(o[`margin${l[1]}`]),g=parseFloat(o[`border${l[0]}Width`]),m=parseFloat(o[`border${l[1]}Width`]);return{delay:t,duration:r,easing:n,css:e=>`overflow: hidden;opacity: ${Math.min(20*e,1)*a};${s}: ${e*c}px;padding-${u[0]}: ${e*d}px;padding-${u[1]}: ${e*f}px;margin-${u[0]}: ${e*h}px;margin-${u[1]}: ${e*p}px;border-${u[0]}-width: ${e*g}px;border-${u[1]}-width: ${e*m}px;`}}function Si(e){mt(e,"svelte-7ee2g7","section.svelte-7ee2g7{top:0;left:0;pointer-events:none;z-index:var(--onboard-modal-z-index, var(--modal-z-index))}.background.svelte-7ee2g7{background:var(--onboard-modal-backdrop, var(--modal-backdrop));pointer-events:all}.full-screen-background.svelte-7ee2g7{width:100vw;height:100vh;height:100dvh}.max-height.svelte-7ee2g7{max-height:calc(100vh - 2rem)}.modal-position.svelte-7ee2g7{top:var(--onboard-modal-top, var(--modal-top));bottom:var(--onboard-modal-bottom, var(--modal-bottom));left:var(--onboard-modal-left, var(--modal-left));right:var(--onboard-modal-right, var(--modal-right))}.modal-overflow.svelte-7ee2g7{overflow:hidden}.modal-styling.svelte-7ee2g7{--border-radius:var(\n --onboard-modal-border-radius,\n var(--w3o-border-radius, 1rem)\n );border-radius:var(--border-radius) var(--border-radius) 0 0;box-shadow:var(--onboard-modal-box-shadow, var(--box-shadow-0));max-width:100vw}.modal.svelte-7ee2g7{overflow-y:auto;background:var(--onboard-modal-background, white);color:var(--onboard-modal-color, initial)}.width-100.svelte-7ee2g7{width:100%}.modal-container-mobile.svelte-7ee2g7{bottom:0}@media all and (min-width: 768px){.modal-styling.svelte-7ee2g7{border-radius:var(--border-radius)}.modal-container-mobile.svelte-7ee2g7{bottom:unset;margin:1rem}.width-100.svelte-7ee2g7{width:unset}}")}function Ii(e){let t,r,n,i,o,a,s,c,u,l;const d=e[3].default,f=rt(d,e,e[2],null);return{c(){t=Et("section"),r=Et("div"),n=Et("div"),i=Et("div"),o=Et("div"),a=Et("div"),f&&f.c(),Tt(a,"class","modal relative svelte-7ee2g7"),Tt(o,"class","modal-overflow modal-styling relative flex justify-center svelte-7ee2g7"),Tt(o,"style",""+(e[1]?"max-width: 100%;":"")),Tt(i,"class","flex relative max-height svelte-7ee2g7"),Dt(i,"width-100",e[1]),Tt(n,"class","modal-container-mobile modal-position flex svelte-7ee2g7"),Dt(n,"absolute",!e[1]),Dt(n,"width-100",e[1]),Tt(r,"class","background flex items-center justify-center relative svelte-7ee2g7"),Dt(r,"full-screen-background",!e[1]),Tt(t,"class","svelte-7ee2g7"),Dt(t,"fixed",!e[1])},m(s,d){wt(s,t,d),gt(t,r),gt(r,n),gt(n,i),gt(i,o),gt(o,a),f&&f.m(a,null),c=!0,u||(l=[kt(i,"click",_t(e[4])),kt(r,"click",(function(){Ze(e[0])&&e[0].apply(this,arguments)}))],u=!0)},p(t,[r]){e=t,f&&f.p&&(!c||4&r)&&ot(f,d,e,e[2],c?it(d,e[2],r,null):at(e[2]),null)},i(e){c||(pr(f,e),tr((()=>{c&&(s||(s=vr(t,Ci,{},!0)),s.run(1))})),c=!0)},o(e){gr(f,e),s||(s=vr(t,Ci,{},!1)),s.run(0),c=!1},d(e){e&&At(t),f&&f.d(e),e&&s&&s.end(),u=!1,Ye(l)}}}function ki(e,t,r){let{$$slots:n={},$$scope:i}=t;const o=!!be.containerElements.connectModal,a=document.documentElement;qt((()=>{o||(a.style.position="sticky",a.style.overflow="hidden")})),Qt((()=>{o||(a.style.position="",a.style.removeProperty("overflow"))}));let{close:s}=t;return e.$$set=e=>{"close"in e&&r(0,s=e.close),"$$scope"in e&&r(2,i=e.$$scope)},[s,o,i,n,function(t){Wt.call(this,e,t)}]}class _i extends jr{constructor(e){super(),Pr(this,e,ki,Ii,$e,{close:0},Si)}}function Ti(e){mt(e,"svelte-tz7ru1",".container.svelte-tz7ru1{padding:var(--onboard-spacing-4, var(--spacing-4));font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:24px}input.svelte-tz7ru1{height:1rem;width:1rem;margin-right:0.5rem}")}function Mi(e){let t,r,n,i,o,a,s,c,u,l,d,f,h=e[1]("connect.selectingWallet.agreement.agree")+"",p=e[3]&&function(e){let t,r,n,i=e[1]("connect.selectingWallet.agreement.terms")+"",o=e[4]?" "+e[1]("connect.selectingWallet.agreement.and")+" ":".";return{c(){t=Et("a"),r=xt(i),n=xt(o),Tt(t,"href",e[3]),Tt(t,"target","_blank")},m(e,i){wt(e,t,i),gt(t,r),wt(e,n,i)},p(e,t){2&t&&i!==(i=e[1]("connect.selectingWallet.agreement.terms")+"")&&Mt(r,i),2&t&&o!==(o=e[4]?" "+e[1]("connect.selectingWallet.agreement.and")+" ":".")&&Mt(n,o)},d(e){e&&At(t),e&&At(n)}}}(e),g=e[4]&&function(e){let t,r,n,i=e[1]("connect.selectingWallet.agreement.privacy")+"";return{c(){t=Et("a"),r=xt(i),n=xt("."),Tt(t,"href",e[4]),Tt(t,"target","_blank")},m(e,i){wt(e,t,i),gt(t,r),wt(e,n,i)},p(e,t){2&t&&i!==(i=e[1]("connect.selectingWallet.agreement.privacy")+"")&&Mt(r,i)},d(e){e&&At(t),e&&At(n)}}}(e);return{c(){t=Et("div"),r=Et("label"),n=Et("input"),i=St(),o=Et("span"),a=xt(h),s=St(),c=xt(" "),u=St(),p&&p.c(),l=St(),g&&g.c(),Tt(n,"class"," svelte-tz7ru1"),Tt(n,"type","checkbox"),Tt(r,"class","flex"),Tt(t,"class","container flex items-center svelte-tz7ru1")},m(h,m){wt(h,t,m),gt(t,r),gt(r,n),n.checked=e[0],gt(r,i),gt(r,o),gt(o,a),gt(o,s),gt(o,c),gt(o,u),p&&p.m(o,null),gt(o,l),g&&g.m(o,null),d||(f=kt(n,"change",e[6]),d=!0)},p(e,t){1&t&&(n.checked=e[0]),2&t&&h!==(h=e[1]("connect.selectingWallet.agreement.agree")+"")&&Mt(a,h),e[3]&&p.p(e,t),e[4]&&g.p(e,t)},d(e){e&&At(t),p&&p.d(),g&&g.d(),d=!1,f()}}}function Pi(e){let t,r=e[5]&&Mi(e);return{c(){r&&r.c(),t=It()},m(e,n){r&&r.m(e,n),wt(e,t,n)},p(e,[t]){e[5]&&r.p(e,t)},i:qe,o:qe,d(e){r&&r.d(e),e&&At(t)}}}function ji(e,t,r){let n,i;tt(e,O._,(e=>r(1,i=e)));let{agreed:o}=t;const{terms:a,privacy:s,version:c}=JSON.parse(ge(Ae.TERMS_AGREEMENT)||"{}"),u=Ge.select("appMetadata").pipe((0,m.Z)(Ge.get().appMetadata),(0,y.t)(1));tt(e,u,(e=>r(7,n=e)));const{termsUrl:l,privacyUrl:d,version:f}=n&&n.agreement||{termsUrl:"",privacyUrl:"",version:""},h=!!(l&&!a||d&&!s||f&&f!==c);return o=!h,e.$$set=e=>{"agreed"in e&&r(0,o=e.agreed)},e.$$.update=()=>{1&e.$$.dirty&&(o?me(Ae.TERMS_AGREEMENT,JSON.stringify({version:f,terms:!!l,privacy:!!d})):!1===o&&ye(Ae.TERMS_AGREEMENT))},[o,i,u,l,d,h,function(){o=this.checked,r(0,o)}]}class Di extends jr{constructor(e){super(),Pr(this,e,ji,Pi,$e,{agreed:0},Ti)}}function Oi(e){mt(e,"svelte-2btye1",".icon.svelte-2btye1{color:var(--onboard-white, var(--white));border-radius:50px;bottom:-0.25rem;right:-0.25rem}.yellow.svelte-2btye1{background:var(--onboard-warning-500, var(--warning-500))}")}function Bi(e){let t,r,n;return{c(){t=Et("div"),Tt(t,"class",r=st(`${e[2]} icon flex absolute`)+" svelte-2btye1"),Tt(t,"style",n=`width: ${e[0]}px; height: ${e[0]}px; padding: ${e[0]/6}px;`),Dt(t,"yellow","yellow"===e[1])},m(e,r){wt(e,t,r),t.innerHTML='\n \n \n \n'},p(e,[i]){4&i&&r!==(r=st(`${e[2]} icon flex absolute`)+" svelte-2btye1")&&Tt(t,"class",r),1&i&&n!==(n=`width: ${e[0]}px; height: ${e[0]}px; padding: ${e[0]/6}px;`)&&Tt(t,"style",n),6&i&&Dt(t,"yellow","yellow"===e[1])},i:qe,o:qe,d(e){e&&At(t)}}}function Ni(e,t,r){let{size:n}=t,{color:i="yellow"}=t,{class:o="test"}=t;return e.$$set=e=>{"size"in e&&r(0,n=e.size),"color"in e&&r(1,i=e.color),"class"in e&&r(2,o=e.class)},[n,i,o]}class Ri extends jr{constructor(e){super(),Pr(this,e,Ni,Bi,$e,{size:0,color:1,class:2},Oi)}}function Li(e){mt(e,"svelte-1bikw7k",".icon.svelte-1bikw7k{color:var(--onboard-white, var(--white));border-radius:50px}.green.svelte-1bikw7k{background:var(--onboard-success-600, var(--success-600))}.blue.svelte-1bikw7k{background:var(--onboard-primary-1, var(--primary-1))}")}function Fi(e){let t,r;return{c(){t=Et("div"),Tt(t,"class","icon flex svelte-1bikw7k"),Tt(t,"style",r=`width: ${e[0]}px; height: ${e[0]}px; padding: ${e[0]/5}px;`),Dt(t,"green","green"===e[1]),Dt(t,"blue","blue"===e[1])},m(e,r){wt(e,t,r),t.innerHTML=$},p(e,[n]){1&n&&r!==(r=`width: ${e[0]}px; height: ${e[0]}px; padding: ${e[0]/5}px;`)&&Tt(t,"style",r),2&n&&Dt(t,"green","green"===e[1]),2&n&&Dt(t,"blue","blue"===e[1])},i:qe,o:qe,d(e){e&&At(t)}}}function Ui(e,t,r){let{size:n}=t,{color:i="green"}=t;return e.$$set=e=>{"size"in e&&r(0,n=e.size),"color"in e&&r(1,i=e.color)},[n,i]}class zi extends jr{constructor(e){super(),Pr(this,e,Ui,Fi,$e,{size:0,color:1},Li)}}function Hi(e){mt(e,"svelte-1le5672",".loading-container.svelte-1le5672.svelte-1le5672{font-family:inherit;font-size:inherit;color:inherit}span.svelte-1le5672.svelte-1le5672{font-family:inherit;font-size:0.889em;margin-top:1rem}.loading.svelte-1le5672.svelte-1le5672{display:inline-block}.loading.svelte-1le5672 div.svelte-1le5672{font-size:inherit;display:block;position:absolute;border:3px solid;border-radius:50%;animation:svelte-1le5672-bn-loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:currentColor transparent transparent transparent}.loading.svelte-1le5672 .loading-first.svelte-1le5672{animation-delay:-0.45s}.loading.svelte-1le5672 .loading-second.svelte-1le5672{animation-delay:-0.3s}.loading.svelte-1le5672 .loading-third.svelte-1le5672{animation-delay:-0.15s}@keyframes svelte-1le5672-bn-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function Vi(e){let t,r;return{c(){t=Et("span"),r=xt(e[0]),Tt(t,"class","svelte-1le5672")},m(e,n){wt(e,t,n),gt(t,r)},p(e,t){1&t&&Mt(r,e[0])},d(e){e&&At(t)}}}function Ki(e){let t,r,n,i,o,a,s,c,u,l,d,f,h=e[0]&&Vi(e);return{c(){t=Et("div"),r=Et("div"),n=Et("div"),o=St(),a=Et("div"),c=St(),u=Et("div"),f=St(),h&&h.c(),Tt(n,"class","loading-first svelte-1le5672"),Tt(n,"style",i=`height: ${e[1]}; width: ${e[1]};`),Tt(a,"class","loading-second svelte-1le5672"),Tt(a,"style",s=`height: ${e[1]}; width: ${e[1]};`),Tt(u,"class","loading-third svelte-1le5672"),Tt(u,"style",l=`height: ${e[1]}; width: ${e[1]};`),Tt(r,"class","loading relative svelte-1le5672"),Tt(r,"style",d=`height: ${e[1]}; width: ${e[1]};`),Tt(t,"class","loading-container flex flex-column justify-center items-center absolute svelte-1le5672")},m(e,i){wt(e,t,i),gt(t,r),gt(r,n),gt(r,o),gt(r,a),gt(r,c),gt(r,u),gt(t,f),h&&h.m(t,null)},p(e,[o]){2&o&&i!==(i=`height: ${e[1]}; width: ${e[1]};`)&&Tt(n,"style",i),2&o&&s!==(s=`height: ${e[1]}; width: ${e[1]};`)&&Tt(a,"style",s),2&o&&l!==(l=`height: ${e[1]}; width: ${e[1]};`)&&Tt(u,"style",l),2&o&&d!==(d=`height: ${e[1]}; width: ${e[1]};`)&&Tt(r,"style",d),e[0]?h?h.p(e,o):(h=Vi(e),h.c(),h.m(t,null)):h&&(h.d(1),h=null)},i:qe,o:qe,d(e){e&&At(t),h&&h.d()}}}function Gi(e,t,r){let{description:n=""}=t,{size:i="2rem"}=t;return e.$$set=e=>{"description"in e&&r(0,n=e.description),"size"in e&&r(1,i=e.size)},[n,i]}class qi extends jr{constructor(e){super(),Pr(this,e,Gi,Ki,$e,{description:0,size:1},Hi)}}function Qi(e){mt(e,"svelte-i129jl",".icon.svelte-i129jl{height:100%}.border-custom.svelte-i129jl{border:1px solid var(--border-color)}.border-yellow.svelte-i129jl{border:1px solid var(--onboard-warning-500, var(--warning-500))}.border-gray.svelte-i129jl{border:1px solid var(--onboard-gray-400, var(--gray-400))}.border-green.svelte-i129jl{border:1px solid var(--onboard-success-500, var(--success-500))}.border-dark-green.svelte-i129jl{border:1px solid var(--onboard-success-700, var(--success-700))}.border-blue.svelte-i129jl{border:1px solid\n var(\n --onboard-wallet-app-icon-border-color,\n var(--onboard-primary-300, var(--primary-300))\n )}.border-dark-blue.svelte-i129jl{border:1px solid\n var(\n --onboard-wallet-app-icon-border-color,\n var(--onboard-primary-600, var(--primary-600))\n )}.border-transparent.svelte-i129jl{border:1px solid transparent}.border-black.svelte-i129jl{border:1px solid var(--onboard-gray-600, var(--gray-600))}.background-gray.svelte-i129jl{background:var(\n --onboard-wallet-app-icon-background-gray,\n var(--onboard-gray-500, var(--gray-500))\n )}.background-light-gray.svelte-i129jl{background:var(\n --onboard-wallet-app-icon-background-light-gray,\n var(--onboard-gray-100, var(--gray-100))\n )}.background-light-blue.svelte-i129jl{background:var(\n --onboard-wallet-app-icon-background-light-blue,\n var(--onboard-primary-100, var(--primary-100))\n )}.background-green.svelte-i129jl{background:var(\n --onboard-wallet-app-icon-background-green,\n var(--onboard-success-100, var(--success-100))\n )}.background-white.svelte-i129jl{background:var(\n --onboard-wallet-app-icon-background-white,\n var(--onboard-white, var(--white))\n )}.background-transparent.svelte-i129jl{background:var(\n --onboard-wallet-app-icon-background-transparent,\n transparent\n )}@keyframes svelte-i129jl-pulse{from{opacity:0}to{opacity:1}}.placeholder-icon.svelte-i129jl{width:100%;height:100%;background:var(--onboard-gray-100, var(--gray-100));border-radius:32px;animation:svelte-i129jl-pulse infinite 750ms alternate ease-in-out}.spinner-container.svelte-i129jl{color:var(--onboard-primary-300, var(--primary-300))}img.svelte-i129jl{max-width:100%;height:auto}.pending-status-icon{z-index:1;fill:white;box-shadow:0px 2px 12px 0px rgba(0, 0, 0, 0.1)}.status-icon-container.svelte-i129jl{right:-0.25rem;bottom:-0.25rem;position:absolute}")}const Wi=e=>({}),Ji=e=>({});function Yi(e){let t,r,n,i={ctx:e,current:null,token:null,hasCatch:!1,pending:no,then:Xi,catch:$i,value:13,blocks:[,,,]};return wr(r=e[1],i),{c(){t=It(),i.block.c()},m(e,r){wt(e,t,r),i.block.m(e,i.anchor=r),i.mount=()=>t.parentNode,i.anchor=t,n=!0},p(t,n){e=t,i.ctx=e,2&n&&r!==(r=e[1])&&wr(r,i)||Ar(i,e,n)},i(e){n||(pr(i.block),n=!0)},o(e){for(let t=0;t<3;t+=1){gr(i.blocks[t])}n=!1},d(e){e&&At(t),i.block.d(e),i.token=null,i=null}}}function Zi(e){let t,r,n;return r=new qi({props:{size:"2rem"}}),{c(){t=Et("div"),kr(r.$$.fragment),Tt(t,"class","spinner-container svelte-i129jl")},m(e,i){wt(e,t,i),_r(r,t,null),n=!0},p:qe,i(e){n||(pr(r.$$.fragment,e),n=!0)},o(e){gr(r.$$.fragment,e),n=!1},d(e){e&&At(t),Tr(r)}}}function $i(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function Xi(e){let t,r,n,i,o,a;function s(e,t){return 2&t&&(r=null),null==r&&(r=!!ee(e[13])),r?to:eo}let c=s(e,-1),u=c(e),l=e[2]&&e[9]<=Ce&&ro();return{c(){t=Et("div"),u.c(),i=St(),l&&l.c(),o=It(),Tt(t,"class","icon flex justify-center items-center svelte-i129jl")},m(e,r){wt(e,t,r),u.m(t,null),wt(e,i,r),l&&l.m(e,r),wt(e,o,r),a=!0},p(e,r){c===(c=s(e,r))&&u?u.p(e,r):(u.d(1),u=c(e),u&&(u.c(),u.m(t,null))),e[2]&&e[9]<=Ce?l?516&r&&pr(l,1):(l=ro(),l.c(),pr(l,1),l.m(o.parentNode,o)):l&&(fr(),gr(l,1,1,(()=>{l=null})),hr())},i(e){a||(e&&(n||tr((()=>{n=yr(t,Ci,{}),n.start()}))),pr(l),a=!0)},o(e){gr(l),a=!1},d(e){e&&At(t),u.d(),e&&At(i),l&&l.d(e),e&&At(o)}}}function eo(e){let t,r;return{c(){t=Et("img"),et(t.src,r=e[13])||Tt(t,"src",r),Tt(t,"alt","logo"),Tt(t,"class","svelte-i129jl")},m(e,r){wt(e,t,r)},p(e,n){2&n&&!et(t.src,r=e[13])&&Tt(t,"src",r)},d(e){e&&At(t)}}}function to(e){let t,r,n=e[13]+"";return{c(){t=new Ot(!1),r=It(),t.a=r},m(e,i){t.m(n,e,i),wt(e,r,i)},p(e,r){2&r&&n!==(n=e[13]+"")&&t.p(n)},d(e){e&&At(r),e&&t.d()}}}function ro(e){let t,r,n;return r=new Ri({props:{class:"pending-status-icon",size:20}}),{c(){t=Et("div"),kr(r.$$.fragment),Tt(t,"class","status-icon-container svelte-i129jl")},m(e,i){wt(e,t,i),_r(r,t,null),n=!0},i(e){n||(pr(r.$$.fragment,e),n=!0)},o(e){gr(r.$$.fragment,e),n=!1},d(e){e&&At(t),Tr(r)}}}function no(e){let t;return{c(){t=Et("div"),Tt(t,"class","placeholder-icon svelte-i129jl")},m(e,r){wt(e,t,r)},p:qe,i:qe,o:qe,d(e){e&&At(t)}}}function io(e){let t,r,n,i,o,a,s,c;tr(e[12]);const u=[Zi,Yi],l=[];function d(e,t){return e[2]&&e[9]>=Ce?0:1}r=d(e),n=l[r]=u[r](e);const f=e[11].status,h=rt(f,e,e[10],Ji);return{c(){t=Et("div"),n.c(),i=St(),h&&h.c(),Tt(t,"class","relative svelte-i129jl"),Tt(t,"style",o=`${"custom"===e[6]?`background-color: ${e[7]}`:""}; padding: ${e[3]-1}px; width: ${e[0]}px; height: ${e[0]}px; border-radius: ${e[8]}px; color: ${e[4]};`),Dt(t,"border-custom","custom"===e[5]),Dt(t,"border-yellow","yellow"===e[5]),Dt(t,"border-gray","gray"===e[5]),Dt(t,"border-green","green"===e[5]),Dt(t,"border-dark-green","darkGreen"===e[5]),Dt(t,"border-blue","blue"===e[5]),Dt(t,"border-dark-blue","darkBlue"===e[5]),Dt(t,"border-transparent","transparent"===e[5]),Dt(t,"border-black","black"===e[5]),Dt(t,"background-gray","gray"===e[6]),Dt(t,"background-light-gray","lightGray"===e[6]),Dt(t,"background-light-blue","lightBlue"===e[6]),Dt(t,"background-green","green"===e[6]),Dt(t,"background-white","white"===e[6]),Dt(t,"background-transparent","transparent"===e[6])},m(n,o){wt(n,t,o),l[r].m(t,null),gt(t,i),h&&h.m(t,null),a=!0,s||(c=kt(window,"resize",e[12]),s=!0)},p(e,[s]){let c=r;r=d(e),r===c?l[r].p(e,s):(fr(),gr(l[c],1,1,(()=>{l[c]=null})),hr(),n=l[r],n?n.p(e,s):(n=l[r]=u[r](e),n.c()),pr(n,1),n.m(t,i)),h&&h.p&&(!a||1024&s)&&ot(h,f,e,e[10],a?it(f,e[10],s,Wi):at(e[10]),Ji),(!a||473&s&&o!==(o=`${"custom"===e[6]?`background-color: ${e[7]}`:""}; padding: ${e[3]-1}px; width: ${e[0]}px; height: ${e[0]}px; border-radius: ${e[8]}px; color: ${e[4]};`))&&Tt(t,"style",o),(!a||32&s)&&Dt(t,"border-custom","custom"===e[5]),(!a||32&s)&&Dt(t,"border-yellow","yellow"===e[5]),(!a||32&s)&&Dt(t,"border-gray","gray"===e[5]),(!a||32&s)&&Dt(t,"border-green","green"===e[5]),(!a||32&s)&&Dt(t,"border-dark-green","darkGreen"===e[5]),(!a||32&s)&&Dt(t,"border-blue","blue"===e[5]),(!a||32&s)&&Dt(t,"border-dark-blue","darkBlue"===e[5]),(!a||32&s)&&Dt(t,"border-transparent","transparent"===e[5]),(!a||32&s)&&Dt(t,"border-black","black"===e[5]),(!a||64&s)&&Dt(t,"background-gray","gray"===e[6]),(!a||64&s)&&Dt(t,"background-light-gray","lightGray"===e[6]),(!a||64&s)&&Dt(t,"background-light-blue","lightBlue"===e[6]),(!a||64&s)&&Dt(t,"background-green","green"===e[6]),(!a||64&s)&&Dt(t,"background-white","white"===e[6]),(!a||64&s)&&Dt(t,"background-transparent","transparent"===e[6])},i(e){a||(pr(n),pr(h,e),a=!0)},o(e){gr(n),gr(h,e),a=!1},d(e){e&&At(t),l[r].d(),h&&h.d(e),s=!1,c()}}}function oo(e,t,r){let n,{$$slots:i={},$$scope:o}=t,{size:a}=t,{icon:s}=t,{loading:c=!1}=t,{padding:u=a/6}=t,{color:l="black"}=t,{border:d="transparent"}=t,{background:f="transparent"}=t,{customBackgroundColor:h=""}=t,{radius:p=12}=t;return e.$$set=e=>{"size"in e&&r(0,a=e.size),"icon"in e&&r(1,s=e.icon),"loading"in e&&r(2,c=e.loading),"padding"in e&&r(3,u=e.padding),"color"in e&&r(4,l=e.color),"border"in e&&r(5,d=e.border),"background"in e&&r(6,f=e.background),"customBackgroundColor"in e&&r(7,h=e.customBackgroundColor),"radius"in e&&r(8,p=e.radius),"$$scope"in e&&r(10,o=e.$$scope)},[a,s,c,u,l,d,f,h,p,n,o,i,function(){r(9,n=window.innerWidth)}]}class ao extends jr{constructor(e){super(),Pr(this,e,oo,io,$e,{size:0,icon:1,loading:2,padding:3,color:4,border:5,background:6,customBackgroundColor:7,radius:8},Qi)}}function so(e){mt(e,"svelte-q2gson",".container.svelte-q2gson{gap:1rem;padding:0.75rem;color:var(--onboard-warning-700, var(--warning-700));font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px;border:1px solid var(--onboard-warning-400, var(--warning-400));background:var(--onboard-warning-100, var(--warning-100));border-radius:12px}.icon.svelte-q2gson{color:var(--onboard-warning-700, var(--warning-700));width:1rem;height:1rem;flex:0 0 auto}")}function co(e){let t,r,n,i,o,a;const s=e[1].default,c=rt(s,e,e[0],null);return{c(){t=Et("div"),r=Et("div"),c&&c.c(),n=St(),i=Et("div"),Tt(i,"class","icon svelte-q2gson"),Tt(t,"class","container flex justify-between svelte-q2gson")},m(e,o){wt(e,t,o),gt(t,r),c&&c.m(r,null),gt(t,n),gt(t,i),i.innerHTML=Z,a=!0},p(e,[t]){c&&c.p&&(!a||1&t)&&ot(c,s,e,e[0],a?it(s,e[0],t,null):at(e[0]),null)},i(e){a||(pr(c,e),e&&(o||tr((()=>{o=yr(t,xi,{delay:50,duration:500}),o.start()}))),a=!0)},o(e){gr(c,e),a=!1},d(e){e&&At(t),c&&c.d(e)}}}function uo(e,t,r){let{$$slots:n={},$$scope:i}=t;return e.$$set=e=>{"$$scope"in e&&r(0,i=e.$$scope)},[i,n]}class lo extends jr{constructor(e){super(),Pr(this,e,uo,co,$e,{},so)}}function fo(e){mt(e,"svelte-1kfgpsl",".container.svelte-1kfgpsl{padding:var(--onboard-spacing-4, var(--spacing-4));color:var(\n --onboard-connect-accent-text-color,\n var(--onboard-gray-700, var(--gray-700))\n )}.connecting-container.svelte-1kfgpsl{padding:var(--onboard-spacing-4, var(--spacing-4));border-radius:var(--onboard-border-radius-1, var(--border-radius-1));background:var(--onboard-success-100, var(--success-100));border:1px solid var(--onboard-success-600, var(--success-600));width:100%}.text.svelte-1kfgpsl{right:var(--onboard-spacing-5, var(--spacing-5))}.tick.svelte-1kfgpsl{color:var(--onboard-success-700, var(--success-700))}")}function ho(e){let t,r,n,i,o,a,s,c,u,l,d,f,h,p,g,m,y,b=e[2]("connect.connectedWallet.mainText",{default:mi.connect.connectedWallet.mainText,values:{wallet:e[0].label}})+"";return o=new ao({props:{size:40,padding:8,background:e[1]&&e[1].icon?"lightBlue":"lightGray",border:"darkGreen",icon:e[1]&&e[1].icon||Y}}),c=new zi({props:{size:17}}),d=new ao({props:{size:40,padding:8,border:"darkGreen",background:"white",icon:e[0].icon}}),{c(){t=Et("div"),r=Et("div"),n=Et("div"),i=Et("div"),kr(o.$$.fragment),a=St(),s=Et("div"),kr(c.$$.fragment),u=St(),l=Et("div"),kr(d.$$.fragment),f=St(),h=Et("div"),p=xt(b),g=St(),m=Et("div"),Tt(s,"class","relative"),Pt(s,"right","1rem"),Pt(s,"top","4px"),Pt(s,"z-index","1"),Tt(l,"class","relative"),Pt(l,"right","1.75rem"),Tt(i,"class","flex justify-center items-end relative"),Tt(h,"class","text relative svelte-1kfgpsl"),Tt(n,"class","flex items-center"),Tt(m,"class","tick flex items-center svelte-1kfgpsl"),Pt(m,"width","24px"),Tt(r,"class","connecting-container flex justify-between items-center svelte-1kfgpsl"),Tt(t,"class","container svelte-1kfgpsl")},m(e,b){wt(e,t,b),gt(t,r),gt(r,n),gt(n,i),_r(o,i,null),gt(i,a),gt(i,s),_r(c,s,null),gt(i,u),gt(i,l),_r(d,l,null),gt(n,f),gt(n,h),gt(h,p),gt(r,g),gt(r,m),m.innerHTML=$,y=!0},p(e,[t]){const r={};2&t&&(r.background=e[1]&&e[1].icon?"lightBlue":"lightGray"),2&t&&(r.icon=e[1]&&e[1].icon||Y),o.$set(r);const n={};1&t&&(n.icon=e[0].icon),d.$set(n),(!y||5&t)&&b!==(b=e[2]("connect.connectedWallet.mainText",{default:mi.connect.connectedWallet.mainText,values:{wallet:e[0].label}})+"")&&Mt(p,b)},i(e){y||(pr(o.$$.fragment,e),pr(c.$$.fragment,e),pr(d.$$.fragment,e),y=!0)},o(e){gr(o.$$.fragment,e),gr(c.$$.fragment,e),gr(d.$$.fragment,e),y=!1},d(e){e&&At(t),Tr(o),Tr(c),Tr(d)}}}function po(e,t,r){let n,i;tt(e,O._,(e=>r(2,i=e)));let{selectedWallet:o}=t;const a=Ge.select("appMetadata").pipe((0,m.Z)(Ge.get().appMetadata),(0,y.t)(1));return tt(e,a,(e=>r(1,n=e))),e.$$set=e=>{"selectedWallet"in e&&r(0,o=e.selectedWallet)},[o,n,i,a]}class go extends jr{constructor(e){super(),Pr(this,e,po,ho,$e,{selectedWallet:0},fo)}}function mo(e){mt(e,"svelte-j1ywa3",".container.svelte-j1ywa3{padding:var(--onboard-spacing-4, var(--spacing-4))}.connecting-container.svelte-j1ywa3{width:100%;padding:var(--onboard-spacing-4, var(--spacing-4));transition:background-color 100ms ease-in-out,\n border-color 100ms ease-in-out;border-radius:24px;background:var(--onboard-primary-100, var(--primary-100));border:1px solid;border-color:var(--onboard-primary-300, var(--primary-300));color:var(--onboard-gray-600, var(--gray-600))}.connecting-container.warning.svelte-j1ywa3{background:var(--onboard-warning-100, var(--warning-100));border-color:var(--onboard-warning-400, var(--warning-400))}.text.svelte-j1ywa3{line-height:16px;margin-bottom:var(--onboard-spacing-5, var(--spacing-5))}.text.text-rejected.svelte-j1ywa3{line-height:24px;margin-bottom:0}.subtext.svelte-j1ywa3{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px}.rejected-cta.svelte-j1ywa3{color:var(--onboard-primary-500, var(--primary-500))}.onboard-button-primary.svelte-j1ywa3{bottom:var(--onboard-spacing-3, var(--spacing-3))}.ml.svelte-j1ywa3{margin-left:var(--onboard-spacing-4, var(--spacing-4))}@media all and (max-width: 520px){.connecting-container.svelte-j1ywa3{border-radius:var(--onboard-border-radius-4, var(--border-radius-4))}.container.svelte-j1ywa3{padding-bottom:0}.wallet-badges.svelte-j1ywa3{display:none}.connecting-wallet-info.svelte-j1ywa3{margin:0}.onboard-button-primary.svelte-j1ywa3{display:none}}")}function yo(e){let t,r,n=e[7]("connect.connectingWallet."+(e[5]?"previousConnection":"paragraph"),{default:mi.connect.connectingWallet.paragraph,values:{wallet:e[1].label}})+"";return{c(){t=Et("div"),r=xt(n),Tt(t,"class","subtext svelte-j1ywa3")},m(e,n){wt(e,t,n),gt(t,r)},p(e,t){162&t&&n!==(n=e[7]("connect.connectingWallet."+(e[5]?"previousConnection":"paragraph"),{default:mi.connect.connectingWallet.paragraph,values:{wallet:e[1].label}})+"")&&Mt(r,n)},d(e){e&&At(t)}}}function bo(e){let t,r,n,i,o=e[7]("connect.connectingWallet.rejectedCTA",{default:mi.connect.connectingWallet.rejectedCTA,values:{wallet:e[1].label}})+"";return{c(){t=Et("div"),r=xt(o),Tt(t,"class","rejected-cta pointer subtext svelte-j1ywa3")},m(o,a){wt(o,t,a),gt(t,r),n||(i=kt(t,"click",(function(){Ze(e[0])&&e[0].apply(this,arguments)})),n=!0)},p(t,n){e=t,130&n&&o!==(o=e[7]("connect.connectingWallet.rejectedCTA",{default:mi.connect.connectingWallet.rejectedCTA,values:{wallet:e[1].label}})+"")&&Mt(r,o)},d(e){e&&At(t),n=!1,i()}}}function vo(e){let t,r,n,i,o,a,s,c,u,l,d,f,h,p,g,m,y,b,v,w=e[7]("connect.connectingWallet."+(e[4]?"rejectedText":"mainText"),{default:e[4]?mi.connect.connectingWallet.rejectedText:mi.connect.connectingWallet.mainText,values:{wallet:e[1].label}})+"",A=e[7]("connect.connectingWallet.primaryButton",{default:mi.connect.connectingWallet.primaryButton})+"";function C(e,t){return e[4]?bo:yo}o=new ao({props:{size:40,padding:8,icon:e[6]&&e[6].icon||Y,border:e[4]||e[5]?"yellow":"blue",background:"lightGray"}}),c=new ao({props:{size:40,padding:8,border:e[4]||e[5]?"yellow":"blue",background:"white",icon:e[1].icon}});let E=C(e),x=E(e);return{c(){t=Et("div"),r=Et("div"),n=Et("div"),i=Et("div"),kr(o.$$.fragment),a=St(),s=Et("div"),kr(c.$$.fragment),u=St(),l=Et("div"),d=Et("div"),f=xt(w),h=St(),x.c(),p=St(),g=Et("button"),m=xt(A),Tt(s,"class","relative"),Pt(s,"right","0.5rem"),Tt(i,"class","flex justify-center relative wallet-badges svelte-j1ywa3"),Tt(d,"class","text svelte-j1ywa3"),Dt(d,"text-rejected",e[4]),Tt(l,"class","flex flex-column justify-center ml connecting-wallet-info svelte-j1ywa3"),Tt(n,"class","flex"),Tt(r,"class","connecting-container flex justify-between items-center svelte-j1ywa3"),Dt(r,"warning",e[4]||e[5]),Tt(g,"class","onboard-button-primary absolute svelte-j1ywa3"),Tt(t,"class","container flex flex-column items-center svelte-j1ywa3")},m(w,A){wt(w,t,A),gt(t,r),gt(r,n),gt(n,i),_r(o,i,null),gt(i,a),gt(i,s),_r(c,s,null),gt(n,u),gt(n,l),gt(l,d),gt(d,f),gt(l,h),x.m(l,null),gt(t,p),gt(t,g),gt(g,m),y=!0,b||(v=kt(g,"click",e[9]),b=!0)},p(e,[t]){const n={};64&t&&(n.icon=e[6]&&e[6].icon||Y),48&t&&(n.border=e[4]||e[5]?"yellow":"blue"),o.$set(n);const i={};48&t&&(i.border=e[4]||e[5]?"yellow":"blue"),2&t&&(i.icon=e[1].icon),c.$set(i),(!y||146&t)&&w!==(w=e[7]("connect.connectingWallet."+(e[4]?"rejectedText":"mainText"),{default:e[4]?mi.connect.connectingWallet.rejectedText:mi.connect.connectingWallet.mainText,values:{wallet:e[1].label}})+"")&&Mt(f,w),(!y||16&t)&&Dt(d,"text-rejected",e[4]),E===(E=C(e))&&x?x.p(e,t):(x.d(1),x=E(e),x&&(x.c(),x.m(l,null))),(!y||48&t)&&Dt(r,"warning",e[4]||e[5]),(!y||128&t)&&A!==(A=e[7]("connect.connectingWallet.primaryButton",{default:mi.connect.connectingWallet.primaryButton})+"")&&Mt(m,A)},i(e){y||(pr(o.$$.fragment,e),pr(c.$$.fragment,e),y=!0)},o(e){gr(o.$$.fragment,e),gr(c.$$.fragment,e),y=!1},d(e){e&&At(t),Tr(o),Tr(c),x.d(),b=!1,v()}}}function wo(e,t,r){let n,i;tt(e,O._,(e=>r(7,i=e)));let{connectWallet:o}=t,{selectedWallet:a}=t,{deselectWallet:s}=t,{setStep:c}=t,{connectionRejected:u}=t,{previousConnectionRequest:l}=t;const d=Ge.select("appMetadata").pipe((0,m.Z)(Ge.get().appMetadata),(0,y.t)(1));tt(e,d,(e=>r(6,n=e)));return e.$$set=e=>{"connectWallet"in e&&r(0,o=e.connectWallet),"selectedWallet"in e&&r(1,a=e.selectedWallet),"deselectWallet"in e&&r(2,s=e.deselectWallet),"setStep"in e&&r(3,c=e.setStep),"connectionRejected"in e&&r(4,u=e.connectionRejected),"previousConnectionRequest"in e&&r(5,l=e.previousConnectionRequest)},[o,a,s,c,u,l,n,i,d,()=>{s(a.label),c("selectingWallet")}]}class Ao extends jr{constructor(e){super(),Pr(this,e,wo,vo,$e,{connectWallet:0,selectedWallet:1,deselectWallet:2,setStep:3,connectionRejected:4,previousConnectionRequest:5},mo)}}function Co(e){mt(e,"svelte-1uy2ffh",".outer-container.svelte-1uy2ffh{padding:var(--onboard-spacing-4, var(--spacing-4))}.link.svelte-1uy2ffh{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px;color:var(--onboard-primary-500, var(--primary-500));text-decoration:none}")}function Eo(e,t,r){const n=e.slice();return n[3]=t[r].name,n[4]=t[r].url,n[6]=r,n}function xo(e){let t,r=e[1]("connect.selectingWallet.installWallet",{default:mi.connect.selectingWallet.installWallet,values:{app:e[0].name||"this app"}})+"";return{c(){t=xt(r)},m(e,r){wt(e,t,r)},p(e,n){3&n&&r!==(r=e[1]("connect.selectingWallet.installWallet",{default:mi.connect.selectingWallet.installWallet,values:{app:e[0].name||"this app"}})+"")&&Mt(t,r)},d(e){e&&At(t)}}}function So(e){let t,r,n,i,o=e[1]("connect.selectingWallet.recommendedWalletsPart1",{default:mi.connect.selectingWallet.recommendedWalletsPart1,values:{app:e[0].name||"This app"}})+"",a=e[1]("connect.selectingWallet.recommendedWalletsPart2",{default:mi.connect.selectingWallet.recommendedWalletsPart2})+"",s=e[0].recommendedInjectedWallets,c=[];for(let u=0;ur(1,i=e)));const o=Ge.select("appMetadata").pipe((0,m.Z)(Ge.get().appMetadata),(0,y.t)(1));return tt(e,o,(e=>r(0,n=e))),[n,i,o]}class Mo extends jr{constructor(e){super(),Pr(this,e,To,_o,$e,{},Co)}}function Po(e){mt(e,"svelte-1ct6vh0","button.svelte-1ct6vh0:disabled{opacity:0.5}button.wallet-button-styling.svelte-1ct6vh0{position:relative;align-items:flex-start;flex:1;padding:0;background:none;color:var(--onboard-wallet-button-color, inherit)}.wallet-button-container.svelte-1ct6vh0{display:flex}.wallet-button-container-inner.svelte-1ct6vh0{position:relative;display:flex;flex-flow:column;align-items:center;gap:0.5rem;padding:0.75rem;width:5rem}.name.svelte-1ct6vh0{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:1rem;text-overflow:ellipsis;max-width:5rem;max-height:2rem;overflow:hidden}.status-icon.svelte-1ct6vh0{position:absolute;top:3.5rem;left:3.5rem}@media screen and (min-width: 768px){button.wallet-button-styling.svelte-1ct6vh0{transition:background-color 250ms ease-in-out;background:var(--onboard-wallet-button-background, none);border:1px solid transparent;border-color:var(--onboard-wallet-button-border-color, var(--border-color));border-radius:var(--onboard-wallet-button-border-radius, var(--border-radius-1))}button.wallet-button-styling.svelte-1ct6vh0:hover{background:var(--onboard-wallet-button-background-hover, var(--foreground-color));color:var(--onboard-wallet-button-color-hover)}.wallet-button-container-inner.svelte-1ct6vh0{flex:1;flex-flow:row nowrap;gap:1rem;padding:1rem}button.connected.svelte-1ct6vh0{border-color:var(--onboard-success-500, var(--success-500))}.name.svelte-1ct6vh0{font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:1.25rem;text-align:initial;max-width:inherit;max-height:3rem}.status-icon.svelte-1ct6vh0{top:0;bottom:0;left:auto;right:1rem;margin:auto;height:20px}}")}function jo(e){let t,r,n;return r=new zi({props:{size:20}}),{c(){t=Et("div"),kr(r.$$.fragment),Tt(t,"class","status-icon svelte-1ct6vh0")},m(e,i){wt(e,t,i),_r(r,t,null),n=!0},i(e){n||(pr(r.$$.fragment,e),n=!0)},o(e){gr(r.$$.fragment,e),n=!1},d(e){e&&At(t),Tr(r)}}}function Do(e){let t,r,n,i,o,a,s,c,u,l,d,f;tr(e[7]),i=new ao({props:{size:e[6]>=Ce?48:56,icon:e[0],loading:e[4],border:e[3]?"green":"custom",background:"transparent"}});let h=e[3]&&jo();return{c(){t=Et("div"),r=Et("button"),n=Et("div"),kr(i.$$.fragment),o=St(),a=Et("div"),s=xt(e[1]),c=St(),h&&h.c(),Tt(a,"class","name svelte-1ct6vh0"),Tt(n,"class","wallet-button-container-inner svelte-1ct6vh0"),Tt(r,"class","wallet-button-styling svelte-1ct6vh0"),r.disabled=e[5],Dt(r,"connected",e[3]),Tt(t,"class","wallet-button-container svelte-1ct6vh0")},m(u,p){wt(u,t,p),gt(t,r),gt(r,n),_r(i,n,null),gt(n,o),gt(n,a),gt(a,s),gt(n,c),h&&h.m(n,null),l=!0,d||(f=[kt(window,"resize",e[7]),kt(r,"click",(function(){Ze(e[2])&&e[2].apply(this,arguments)}))],d=!0)},p(t,[o]){e=t;const a={};64&o&&(a.size=e[6]>=Ce?48:56),1&o&&(a.icon=e[0]),16&o&&(a.loading=e[4]),8&o&&(a.border=e[3]?"green":"custom"),i.$set(a),(!l||2&o)&&Mt(s,e[1]),e[3]?h?8&o&&pr(h,1):(h=jo(),h.c(),pr(h,1),h.m(n,null)):h&&(fr(),gr(h,1,1,(()=>{h=null})),hr()),(!l||32&o)&&(r.disabled=e[5]),(!l||8&o)&&Dt(r,"connected",e[3])},i(e){l||(pr(i.$$.fragment,e),pr(h),e&&(u||tr((()=>{u=yr(r,Ci,{}),u.start()}))),l=!0)},o(e){gr(i.$$.fragment,e),gr(h),l=!1},d(e){e&&At(t),Tr(i),h&&h.d(),d=!1,Ye(f)}}}function Oo(e,t,r){let n,{icon:i}=t,{label:o}=t,{onClick:a}=t,{connected:s}=t,{connecting:c}=t,{disabled:u}=t;return e.$$set=e=>{"icon"in e&&r(0,i=e.icon),"label"in e&&r(1,o=e.label),"onClick"in e&&r(2,a=e.onClick),"connected"in e&&r(3,s=e.connected),"connecting"in e&&r(4,c=e.connecting),"disabled"in e&&r(5,u=e.disabled)},[i,o,a,s,c,u,n,function(){r(6,n=window.innerWidth)}]}class Bo extends jr{constructor(e){super(),Pr(this,e,Oo,Do,$e,{icon:0,label:1,onClick:2,connected:3,connecting:4,disabled:5},Po)}}function No(e){mt(e,"svelte-kpc6js",".wallets-container.svelte-kpc6js{display:flex;gap:0.5rem;overflow-x:scroll;overflow-y:hidden;padding:0.75rem 0.5rem;border-bottom:1px solid var(--border-color);-ms-overflow-style:none;scrollbar-width:none}.wallets-container.svelte-kpc6js::-webkit-scrollbar{display:none}.warning-container.svelte-kpc6js{margin:1rem 1rem 0}.notice-container.svelte-kpc6js{flex:0 0 100%;margin-top:0.75rem}@media all and (min-width: 768px){.wallets-container.svelte-kpc6js{display:grid;grid-template-columns:repeat(var(--onboard-wallet-columns, 2), 1fr);padding:1rem;border:none}.notice-container.svelte-kpc6js{grid-column:span 2;margin:0}}")}function Ro(e,t,r){const n=e.slice();return n[10]=t[r],n}function Lo(e){let t,r,n;return r=new lo({props:{$$slots:{default:[Fo]},$$scope:{ctx:e}}}),{c(){t=Et("div"),kr(r.$$.fragment),Tt(t,"class","warning-container svelte-kpc6js")},m(e,i){wt(e,t,i),_r(r,t,null),n=!0},p(e,t){const n={};8200&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n)},i(e){n||(pr(r.$$.fragment,e),n=!0)},o(e){gr(r.$$.fragment,e),n=!1},d(e){e&&At(t),Tr(r)}}}function Fo(e){let t,r;return{c(){t=new Ot(!1),r=It(),t.a=r},m(n,i){t.m(e[3],n,i),wt(n,r,i)},p(e,r){8&r&&t.p(e[3])},d(e){e&&At(r),e&&t.d()}}}function Uo(e){let t,r;function n(){return e[9](e[10])}return t=new Bo({props:{connected:e[7](e[10].label),connecting:e[2]===e[10].label,label:e[10].label,icon:e[10].icon,onClick:n,disabled:e[4]<=Ce&&e[2]&&e[2]!==e[10].label}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(r,i){e=r;const o={};1&i&&(o.connected=e[7](e[10].label)),5&i&&(o.connecting=e[2]===e[10].label),1&i&&(o.label=e[10].label),1&i&&(o.icon=e[10].icon),3&i&&(o.onClick=n),21&i&&(o.disabled=e[4]<=Ce&&e[2]&&e[2]!==e[10].label),t.$set(o)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function zo(e){let t,r,n,i,o,a=e[5]("connect.selectingWallet.whyDontISeeMyWallet",{default:mi.connect.selectingWallet.whyDontISeeMyWallet})+"",s=e[5]("connect.selectingWallet.learnMore",{default:mi.connect.selectingWallet.learnMore})+"";return{c(){t=Et("div"),r=xt(a),n=St(),i=Et("a"),o=xt(s),Tt(i,"class","link pointer"),Tt(i,"href",e[6].wheresMyWalletLink||Vo),Tt(i,"target","_blank"),Tt(i,"rel","noreferrer noopener")},m(e,a){wt(e,t,a),gt(t,r),wt(e,n,a),wt(e,i,a),gt(i,o)},p(e,t){32&t&&a!==(a=e[5]("connect.selectingWallet.whyDontISeeMyWallet",{default:mi.connect.selectingWallet.whyDontISeeMyWallet})+"")&&Mt(r,a),32&t&&s!==(s=e[5]("connect.selectingWallet.learnMore",{default:mi.connect.selectingWallet.learnMore})+"")&&Mt(o,s)},d(e){e&&At(t),e&&At(n),e&&At(i)}}}function Ho(e){let t,r,n,i,o,a,s;tr(e[8]);let c=e[3]&&Lo(e),u=e[0],l=[];for(let h=0;hgr(l[e],1,1,(()=>{l[e]=null}));let f=!e[6].removeWhereIsMyWalletWarning&&function(e){let t,r,n;return r=new lo({props:{$$slots:{default:[zo]},$$scope:{ctx:e}}}),{c(){t=Et("div"),kr(r.$$.fragment),Tt(t,"class","notice-container svelte-kpc6js")},m(e,i){wt(e,t,i),_r(r,t,null),n=!0},p(e,t){const n={};8224&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n)},i(e){n||(pr(r.$$.fragment,e),n=!0)},o(e){gr(r.$$.fragment,e),n=!1},d(e){e&&At(t),Tr(r)}}}(e);return{c(){t=Et("div"),c&&c.c(),r=St(),n=Et("div");for(let e=0;e{c=null})),hr()),151&o){let t;for(u=e[0],t=0;tr(5,n=e)));let i,{wallets:o}=t,{selectWallet:a}=t,{connectingWalletLabel:s}=t,{connectingErrorMessage:c}=t;const{connect:u}=Ge.get();return e.$$set=e=>{"wallets"in e&&r(0,o=e.wallets),"selectWallet"in e&&r(1,a=e.selectWallet),"connectingWalletLabel"in e&&r(2,s=e.connectingWalletLabel),"connectingErrorMessage"in e&&r(3,c=e.connectingErrorMessage)},[o,a,s,c,i,n,u,function(e){const{wallets:t}=Ge.get();return!!t.find((t=>t.label===e))},function(){r(4,i=window.innerWidth)},e=>a(e)]}class Go extends jr{constructor(e){super(),Pr(this,e,Ko,Ho,$e,{wallets:0,selectWallet:1,connectingWalletLabel:2,connectingErrorMessage:3},No)}}function qo(e){mt(e,"svelte-obaru3",".sidebar.svelte-obaru3{--background-color:var(\n --onboard-connect-sidebar-background,\n var(--w3o-foreground-color, none)\n );--text-color:var(--onboard-connect-sidebar-color, inherit);--border-color:var(--onboard-connect-sidebar-border-color, inherit);display:flex;flex-flow:column;gap:1rem;padding:1rem;align-items:center}.inner-container.svelte-obaru3{display:flex;flex-flow:column;align-items:center;align-self:stretch;gap:0.5rem;padding:1.5rem;text-align:center;border:1px solid transparent;border-radius:12px;border-color:var(--border-color);background:var(--background-color);color:var(--text-color)}.icon-container.svelte-obaru3{display:flex;height:3.5rem;width:auto;min-width:3.5rem;max-width:100%}.heading.svelte-obaru3{font-size:var(--onboard-font-size-3, var(--font-size-3));margin:0 0 var(--onboard-spacing-5, var(--spacing-5)) 0}.subheading.svelte-obaru3{line-height:1rem}.description.svelte-obaru3{line-height:1.25rem;font-size:var(--onboard-font-size-6, var(--font-size-6))}img.svelte-obaru3{max-width:100%;height:auto}.indicators.svelte-obaru3{margin-top:auto}.indicator.svelte-obaru3{box-sizing:content-box;width:8px;height:8px;border-radius:8px;background:var(\n --onboard-connect-sidebar-progress-background,\n var(--onboard-gray-700, var(--gray-700))\n );transition:background 250ms ease-in-out}.indicator.on.svelte-obaru3{background:var(\n --onboard-connect-sidebar-progress-color,\n var(--action-color)\n );border:2px solid\n var(\n --onboard-connect-sidebar-progress-background,\n var(--onboard-gray-700, var(--gray-700))\n )}.join.svelte-obaru3{box-sizing:content-box;z-index:1;right:4px;height:2px;background:var(\n --onboard-connect-sidebar-progress-background,\n var(--onboard-gray-700, var(--gray-700))\n );transition:background 250ms ease-in-out}.join.active.svelte-obaru3{background:var(\n --onboard-connect-sidebar-progress-color,\n var(--action-color)\n )}.no-link.svelte-obaru3{display:flex;flex-direction:row;align-items:center;padding:0.25rem 0.5rem 0.25rem 0.75rem;gap:0.25rem;font-size:var(--onboard-font-size-6, var(--font-size-6))}.info-icon.svelte-obaru3{width:1.25rem;display:flex;align-items:center}@media all and (min-width: 768px){.sidebar.svelte-obaru3{max-width:280px;border-right:1px solid;border-color:var(--border-color);background:var(--background-color)}.inner-container.svelte-obaru3{border:none;text-align:initial;flex:1;align-items:flex-start;gap:1rem}.indicators.svelte-obaru3{margin-bottom:0.25rem}}")}function Qo(e){let t,r,n,i=e[3](`connect.${e[0]}.sidebar.header`,{default:""});function o(e,t){return e[2]&&(e[2].logo||e[2].icon)?Jo:Wo}let a=o(e),s=a(e),c=i&&$o(e);return{c(){t=Et("div"),s.c(),r=St(),c&&c.c(),n=It(),Tt(t,"class","icon-container svelte-obaru3")},m(e,i){wt(e,t,i),s.m(t,null),wt(e,r,i),c&&c.m(e,i),wt(e,n,i)},p(e,r){a===(a=o(e))&&s?s.p(e,r):(s.d(1),s=a(e),s&&(s.c(),s.m(t,null))),9&r&&(i=e[3](`connect.${e[0]}.sidebar.header`,{default:""})),i?c?c.p(e,r):(c=$o(e),c.c(),c.m(n.parentNode,n)):c&&(c.d(1),c=null)},d(e){e&&At(t),s.d(),e&&At(r),c&&c.d(e),e&&At(n)}}}function Wo(e){let t,r;return{c(){t=new Ot(!1),r=It(),t.a=r},m(e,n){t.m(V,e,n),wt(e,r,n)},p:qe,d(e){e&&At(r),e&&t.d()}}}function Jo(e){let t,r;function n(e,r){return 4&r&&(t=null),null==t&&(t=!!ee(e[2].logo||e[2].icon)),t?Zo:Yo}let i=n(e,-1),o=i(e);return{c(){o.c(),r=It()},m(e,t){o.m(e,t),wt(e,r,t)},p(e,t){i===(i=n(e,t))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},d(e){o.d(e),e&&At(r)}}}function Yo(e){let t,r;return{c(){t=Et("img"),et(t.src,r=e[2].logo||e[2].icon)||Tt(t,"src",r),Tt(t,"alt","logo"),Tt(t,"class","svelte-obaru3")},m(e,r){wt(e,t,r)},p(e,n){4&n&&!et(t.src,r=e[2].logo||e[2].icon)&&Tt(t,"src",r)},d(e){e&&At(t)}}}function Zo(e){let t,r,n=(e[2].logo||e[2].icon)+"";return{c(){t=new Ot(!1),r=xt("\u200b"),t.a=r},m(e,i){t.m(n,e,i),wt(e,r,i)},p(e,r){4&r&&n!==(n=(e[2].logo||e[2].icon)+"")&&t.p(n)},d(e){e&&t.d(),e&&At(r)}}}function $o(e){let t,r,n=e[3](`connect.${e[0]}.sidebar.header`,{default:e[7]})+"";return{c(){t=Et("div"),r=xt(n),Tt(t,"class","heading svelte-obaru3")},m(e,n){wt(e,t,n),gt(t,r)},p(e,t){9&t&&n!==(n=e[3](`connect.${e[0]}.sidebar.header`,{default:e[7]})+"")&&Mt(r,n)},d(e){e&&At(t)}}}function Xo(e){let t,r,n,i,o,a,s,c,u,l,d,f;return{c(){t=Et("div"),r=Et("div"),n=St(),i=Et("div"),a=St(),s=Et("div"),c=St(),u=Et("div"),d=St(),f=Et("div"),Tt(r,"class","indicator relative svelte-obaru3"),Dt(r,"on",!0),Tt(i,"class","join relative svelte-obaru3"),Tt(i,"style",o=""+("selectingWallet"!==e[0]?"right: 4px; width: 52px;":"right: 2px; width: 54px;")),Dt(i,"active","selectingWallet"!==e[0]),Tt(s,"class","indicator relative svelte-obaru3"),Tt(s,"style","right: 8px;"),Dt(s,"on","selectingWallet"!==e[0]),Tt(u,"class","join relative svelte-obaru3"),Tt(u,"style",l=""+("connectedWallet"===e[0]?"right: 12px; width: 52px;":"right: 10px; width: 54px;")),Dt(u,"active","connectedWallet"===e[0]),Tt(f,"style","right: 16px;"),Tt(f,"class","indicator relative svelte-obaru3"),Dt(f,"on","connectedWallet"===e[0]),Tt(t,"class","indicators flex items-center svelte-obaru3")},m(e,o){wt(e,t,o),gt(t,r),gt(t,n),gt(t,i),gt(t,a),gt(t,s),gt(t,c),gt(t,u),gt(t,d),gt(t,f)},p(e,t){1&t&&o!==(o=""+("selectingWallet"!==e[0]?"right: 4px; width: 52px;":"right: 2px; width: 54px;"))&&Tt(i,"style",o),1&t&&Dt(i,"active","selectingWallet"!==e[0]),1&t&&Dt(s,"on","selectingWallet"!==e[0]),1&t&&l!==(l=""+("connectedWallet"===e[0]?"right: 12px; width: 52px;":"right: 10px; width: 54px;"))&&Tt(u,"style",l),1&t&&Dt(u,"active","connectedWallet"===e[0]),1&t&&Dt(f,"on","connectedWallet"===e[0])},d(e){e&&At(t)}}}function ea(e){let t,r,n,i,o,a,s,c,u,l,d,f;return{c(){t=Et("div"),r=Et("div"),n=St(),i=Et("div"),a=St(),s=Et("div"),c=St(),u=Et("div"),d=St(),f=Et("div"),Tt(r,"class","indicator relative svelte-obaru3"),Dt(r,"on",!0),Tt(i,"class","join relative svelte-obaru3"),Tt(i,"style",o="right: 2px; "+("selectingWallet"!==e[0]?"width: 78px;":"width: 82px;")),Dt(i,"active","selectingWallet"!==e[0]),Tt(s,"class","indicator relative svelte-obaru3"),Tt(s,"style","right: 4px;"),Dt(s,"on","selectingWallet"!==e[0]),Tt(u,"class","join relative svelte-obaru3"),Tt(u,"style",l="right: 6px; "+("connectedWallet"===e[0]?"width: 74px;":"width: 81px;")),Dt(u,"active","connectedWallet"===e[0]),Tt(f,"style","right: 8px;"),Tt(f,"class","indicator relative svelte-obaru3"),Dt(f,"on","connectedWallet"===e[0]),Tt(t,"class","indicators flex items-center svelte-obaru3")},m(e,o){wt(e,t,o),gt(t,r),gt(t,n),gt(t,i),gt(t,a),gt(t,s),gt(t,c),gt(t,u),gt(t,d),gt(t,f)},p(e,t){1&t&&o!==(o="right: 2px; "+("selectingWallet"!==e[0]?"width: 78px;":"width: 82px;"))&&Tt(i,"style",o),1&t&&Dt(i,"active","selectingWallet"!==e[0]),1&t&&Dt(s,"on","selectingWallet"!==e[0]),1&t&&l!==(l="right: 6px; "+("connectedWallet"===e[0]?"width: 74px;":"width: 81px;"))&&Tt(u,"style",l),1&t&&Dt(u,"active","connectedWallet"===e[0]),1&t&&Dt(f,"on","connectedWallet"===e[0])},d(e){e&&At(t)}}}function ta(e){let t,r,n,i,o,a,s,c,u,l,d,f,h,p,g,m=e[3](`connect.${e[0]}.sidebar.subheading`,{default:e[5]})+"",y=e[3](`connect.${e[0]}.sidebar.paragraph`,{values:{app:e[2]&&e[2].name||"This App"},default:e[6]})+"";tr(e[9]);let b=e[1]>=Ce&&Qo(e),v=!e[4].removeIDontHaveAWalletInfoLink&&function(e){let t,r,n,i,o=e[3]("connect.selectingWallet.sidebar.IDontHaveAWallet",{default:mi.connect.selectingWallet.sidebar.IDontHaveAWallet})+"";return{c(){t=Et("a"),r=xt(o),n=St(),i=Et("div"),Tt(i,"class","info-icon svelte-obaru3"),Tt(t,"href",e[4].iDontHaveAWalletLink||"https://ethereum.org/en/wallets/find-wallet/#main-content"),Tt(t,"target","_blank"),Tt(t,"rel","noreferrer noopener"),Tt(t,"class","no-link svelte-obaru3")},m(e,o){wt(e,t,o),gt(t,r),gt(t,n),gt(t,i),i.innerHTML=Z},p(e,t){8&t&&o!==(o=e[3]("connect.selectingWallet.sidebar.IDontHaveAWallet",{default:mi.connect.selectingWallet.sidebar.IDontHaveAWallet})+"")&&Mt(r,o)},d(e){e&&At(t)}}}(e),w=e[1]=Ce&&ea(e);return{c(){t=Et("div"),r=Et("div"),b&&b.c(),n=St(),i=Et("div"),o=xt(m),a=St(),s=Et("div"),c=xt(y),u=St(),v&&v.c(),l=St(),w&&w.c(),d=St(),A&&A.c(),f=St(),h=Et("div"),Tt(i,"class","subheading svelte-obaru3"),Tt(s,"class","description svelte-obaru3"),Tt(r,"class","inner-container svelte-obaru3"),Tt(t,"class","sidebar svelte-obaru3")},m(m,y){wt(m,t,y),gt(t,r),b&&b.m(r,null),gt(r,n),gt(r,i),gt(i,o),gt(r,a),gt(r,s),gt(s,c),gt(r,u),v&&v.m(r,null),gt(r,l),w&&w.m(r,null),gt(t,d),A&&A.m(t,null),gt(t,f),gt(t,h),h.innerHTML=K,p||(g=kt(window,"resize",e[9]),p=!0)},p(e,[i]){e[1]>=Ce?b?b.p(e,i):(b=Qo(e),b.c(),b.m(r,n)):b&&(b.d(1),b=null),9&i&&m!==(m=e[3](`connect.${e[0]}.sidebar.subheading`,{default:e[5]})+"")&&Mt(o,m),13&i&&y!==(y=e[3](`connect.${e[0]}.sidebar.paragraph`,{values:{app:e[2]&&e[2].name||"This App"},default:e[6]})+"")&&Mt(c,y),e[4].removeIDontHaveAWalletInfoLink||v.p(e,i),e[1]=Ce?A?A.p(e,i):(A=ea(e),A.c(),A.m(t,f)):A&&(A.d(1),A=null)},i:qe,o:qe,d(e){e&&At(t),b&&b.d(),v&&v.d(),w&&w.d(),A&&A.d(),p=!1,g()}}}function ra(e,t,r){let n,i;tt(e,O._,(e=>r(3,i=e)));let{step:o}=t;const{connect:a}=Ge.get(),s=mi.connect[o].sidebar,{subheading:c,paragraph:u}=s,{heading:l}=s;let d;const f=Ge.select("appMetadata").pipe((0,m.Z)(Ge.get().appMetadata),(0,y.t)(1));return tt(e,f,(e=>r(2,n=e))),e.$$set=e=>{"step"in e&&r(0,o=e.step)},[o,d,n,i,a,c,u,l,f,function(){r(1,d=window.innerWidth)}]}class na extends jr{constructor(e){super(),Pr(this,e,ra,ta,$e,{step:0},qo)}}function ia(e){mt(e,"svelte-1qwmck3",".container.svelte-1qwmck3{--background-color:var(\n --onboard-main-scroll-container-background,\n var(--w3o-background-color)\n );--foreground-color:var(--w3o-foreground-color);--text-color:var(--onboard-connect-text-color, var(--w3o-text-color));--border-color:var(--w3o-border-color, var(--gray-200));--action-color:var(--w3o-action-color, var(--primary-500));font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, 1rem);background:var(--background-color);color:var(--text-color);border-color:var(--border-color);line-height:24px;overflow:hidden;position:relative;display:flex;height:min-content;flex-flow:column-reverse}.content.svelte-1qwmck3{width:var(--onboard-connect-content-width, 100%)}.header.svelte-1qwmck3{display:flex;padding:1rem;border-bottom:1px solid transparent;background:var(--onboard-connect-header-background);color:var(--onboard-connect-header-color);border-color:var(--border-color)}.header-heading.svelte-1qwmck3{line-height:1rem}.button-container.svelte-1qwmck3{right:0.5rem;top:0.5rem}.mobile-header.svelte-1qwmck3{display:flex;gap:0.5rem;height:4.5rem;padding:1rem;border-bottom:1px solid;border-color:var(--border-color)}.mobile-subheader.svelte-1qwmck3{opacity:0.6;font-size:0.875rem;font-weight:400;line-height:1rem;margin-top:0.25rem}.icon-container.svelte-1qwmck3{display:flex;flex:0 0 auto;height:2.5rem;width:2.5rem;min-width:2.5rem;justify-content:center;align-items:center}.disabled.svelte-1qwmck3{opacity:0.2;pointer-events:none;overflow:hidden}.icon-container svg{display:block;height:100%;width:auto}.w-full.svelte-1qwmck3{width:100%}.scroll-container.svelte-1qwmck3{overflow-y:auto;transition:opacity 250ms ease-in-out;scrollbar-width:none}.scroll-container.svelte-1qwmck3::-webkit-scrollbar{display:none}@media all and (min-width: 768px){.container.svelte-1qwmck3{margin:0;flex-flow:row;height:var(--onboard-connect-content-height, 440px)}.content.svelte-1qwmck3{width:var(--onboard-connect-content-width, 488px)}.mobile-subheader.svelte-1qwmck3{display:none}.icon-container.svelte-1qwmck3{display:none}}")}function oa(e){let t,r;return t=new _i({props:{close:!e[16].disableClose&&e[20],$$slots:{default:[ya]},$$scope:{ctx:e}}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,r){const n={};32766&r[0]|32&r[1]&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function aa(e){let t,r,n,i,o,a=e[14](`connect.${e[5]}.header`,{default:mi.connect[e[5]].header,values:{connectionRejected:e[1],wallet:e[3]&&e[3].label}})+"",s="selectingWallet"===e[5]?`(${e[12]})`:"";return{c(){t=Et("div"),r=Et("div"),n=xt(a),i=St(),o=xt(s),Tt(r,"class","header-heading svelte-1qwmck3"),Tt(t,"class","header relative flex items-center svelte-1qwmck3")},m(e,a){wt(e,t,a),gt(t,r),gt(r,n),gt(r,i),gt(r,o)},p(e,t){16426&t[0]&&a!==(a=e[14](`connect.${e[5]}.header`,{default:mi.connect[e[5]].header,values:{connectionRejected:e[1],wallet:e[3]&&e[3].label}})+"")&&Mt(n,a),4128&t[0]&&s!==(s="selectingWallet"===e[5]?`(${e[12]})`:"")&&Mt(o,s)},d(e){e&&At(t)}}}function sa(e){let t,r,n,i,o,a,s,c,u,l=e[14]("connectingWallet"===e[5]&&e[3]?`connect.${e[5]}.header`:`connect.${e[5]}.sidebar.subheading`,{default:"connectingWallet"===e[5]&&e[3]?mi.connect[e[5]].header:mi.connect[e[5]].sidebar.subheading,values:{connectionRejected:e[1],wallet:e[3]&&e[3].label}})+"",d="selectingWallet"===e[5]?`${e[12]} available wallets`:"1 account selected";function f(e,t){return e[13]&&e[13].icon?ua:ca}let h=f(e),p=h(e);return{c(){t=Et("div"),r=Et("div"),p.c(),n=St(),i=Et("div"),o=Et("div"),a=xt(l),s=St(),c=Et("div"),u=xt(d),Tt(r,"class","icon-container svelte-1qwmck3"),Tt(o,"class","header-heading svelte-1qwmck3"),Tt(c,"class","mobile-subheader svelte-1qwmck3"),Tt(i,"class","flex flex-column justify-center w-full svelte-1qwmck3"),Tt(t,"class","mobile-header svelte-1qwmck3")},m(e,l){wt(e,t,l),gt(t,r),p.m(r,null),gt(t,n),gt(t,i),gt(i,o),gt(o,a),gt(i,s),gt(i,c),gt(c,u)},p(e,t){h===(h=f(e))&&p?p.p(e,t):(p.d(1),p=h(e),p&&(p.c(),p.m(r,null))),16426&t[0]&&l!==(l=e[14]("connectingWallet"===e[5]&&e[3]?`connect.${e[5]}.header`:`connect.${e[5]}.sidebar.subheading`,{default:"connectingWallet"===e[5]&&e[3]?mi.connect[e[5]].header:mi.connect[e[5]].sidebar.subheading,values:{connectionRejected:e[1],wallet:e[3]&&e[3].label}})+"")&&Mt(a,l),4128&t[0]&&d!==(d="selectingWallet"===e[5]?`${e[12]} available wallets`:"1 account selected")&&Mt(u,d)},d(e){e&&At(t),p.d()}}}function ca(e){let t,r;return{c(){t=new Ot(!1),r=It(),t.a=r},m(e,n){t.m(V,e,n),wt(e,r,n)},p:qe,d(e){e&&At(r),e&&t.d()}}}function ua(e){let t,r;function n(e,r){return 8192&r[0]&&(t=null),null==t&&(t=!!ee(e[13].icon)),t?da:la}let i=n(e,[-1,-1]),o=i(e);return{c(){o.c(),r=It()},m(e,t){o.m(e,t),wt(e,r,t)},p(e,t){i===(i=n(e,t))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},d(e){o.d(e),e&&At(r)}}}function la(e){let t,r;return{c(){t=Et("img"),et(t.src,r=e[13].icon)||Tt(t,"src",r),Tt(t,"alt","logo")},m(e,r){wt(e,t,r)},p(e,n){8192&n[0]&&!et(t.src,r=e[13].icon)&&Tt(t,"src",r)},d(e){e&&At(t)}}}function da(e){let t,r,n=e[13].icon+"";return{c(){t=new Ot(!1),r=It(),t.a=r},m(e,i){t.m(n,e,i),wt(e,r,i)},p(e,r){8192&r[0]&&n!==(n=e[13].icon+"")&&t.p(n)},d(e){e&&At(r),e&&t.d()}}}function fa(e){let t,r,n,i;const o=[pa,ha],a=[];function s(e,t){return e[2].length?0:1}return t=s(e),r=a[t]=o[t](e),{c(){r.c(),n=It()},m(e,r){a[t].m(e,r),wt(e,n,r),i=!0},p(e,i){let c=t;t=s(e),t===c?a[t].p(e,i):(fr(),gr(a[c],1,1,(()=>{a[c]=null})),hr(),r=a[t],r?r.p(e,i):(r=a[t]=o[t](e),r.c()),pr(r,1),r.m(n.parentNode,n))},i(e){i||(pr(r),i=!0)},o(e){gr(r),i=!1},d(e){a[t].d(e),e&&At(n)}}}function ha(e){let t,r;return t=new Mo({}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p:qe,i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function pa(e){let t,r,n,i,o,a;function s(t){e[24](t)}let c={};return void 0!==e[7]&&(c.agreed=e[7]),t=new Di({props:c}),Yt.push((()=>Ir(t,"agreed",s))),o=new Go({props:{selectWallet:e[18],wallets:e[2],connectingWalletLabel:e[8],connectingErrorMessage:e[9]}}),{c(){kr(t.$$.fragment),n=St(),i=Et("div"),kr(o.$$.fragment),Tt(i,"class","svelte-1qwmck3"),Dt(i,"disabled",!e[7])},m(e,r){_r(t,e,r),wt(e,n,r),wt(e,i,r),_r(o,i,null),a=!0},p(e,n){const s={};!r&&128&n[0]&&(r=!0,s.agreed=e[7],rr((()=>r=!1))),t.$set(s);const c={};4&n[0]&&(c.wallets=e[2]),256&n[0]&&(c.connectingWalletLabel=e[8]),512&n[0]&&(c.connectingErrorMessage=e[9]),o.$set(c),(!a||128&n[0])&&Dt(i,"disabled",!e[7])},i(e){a||(pr(t.$$.fragment,e),pr(o.$$.fragment,e),a=!0)},o(e){gr(t.$$.fragment,e),gr(o.$$.fragment,e),a=!1},d(e){Tr(t,e),e&&At(n),e&&At(i),Tr(o)}}}function ga(e){let t,r;return t=new Ao({props:{connectWallet:e[21],connectionRejected:e[1],previousConnectionRequest:e[6],setStep:e[22],deselectWallet:e[19],selectedWallet:e[3]}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,r){const n={};2&r[0]&&(n.connectionRejected=e[1]),64&r[0]&&(n.previousConnectionRequest=e[6]),8&r[0]&&(n.selectedWallet=e[3]),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function ma(e){let t,r;return t=new go({props:{selectedWallet:e[3]}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,r){const n={};8&r[0]&&(n.selectedWallet=e[3]),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function ya(e){let t,r,n,i,o,a,s,c,u,l=e[16].showSidebar&&function(e){let t,r;return t=new na({props:{step:e[5]}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,r){const n={};32&r[0]&&(n.step=e[5]),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}(e);function d(e,t){return e[4]<=Ce?sa:aa}let f=d(e),h=f(e),p=!e[16].disableClose&&function(e){let t,r,n,i,o;return r=new vi({}),{c(){t=Et("div"),kr(r.$$.fragment),Tt(t,"class","button-container absolute svelte-1qwmck3")},m(a,s){wt(a,t,s),_r(r,t,null),n=!0,i||(o=kt(t,"click",e[20]),i=!0)},p:qe,i(e){n||(pr(r.$$.fragment,e),n=!0)},o(e){gr(r.$$.fragment,e),n=!1},d(e){e&&At(t),Tr(r),i=!1,o()}}}(e),g=("selectingWallet"===e[5]||e[4]<=Ce)&&fa(e),m=e[11]&&ga(e),y="connectedWallet"===e[5]&&e[3]&&e[4]>=Ce&&ma(e);return{c(){t=Et("div"),l&&l.c(),r=St(),n=Et("div"),h.c(),i=St(),p&&p.c(),o=St(),a=Et("div"),g&&g.c(),s=St(),m&&m.c(),c=St(),y&&y.c(),Tt(a,"class","scroll-container svelte-1qwmck3"),Tt(n,"class","content flex flex-column svelte-1qwmck3"),Tt(t,"class","container svelte-1qwmck3")},m(d,f){wt(d,t,f),l&&l.m(t,null),gt(t,r),gt(t,n),h.m(n,null),gt(n,i),p&&p.m(n,null),gt(n,o),gt(n,a),g&&g.m(a,null),gt(a,s),m&&m.m(a,null),gt(a,c),y&&y.m(a,null),e[25](a),u=!0},p(e,t){e[16].showSidebar&&l.p(e,t),f===(f=d(e))&&h?h.p(e,t):(h.d(1),h=f(e),h&&(h.c(),h.m(n,i))),e[16].disableClose||p.p(e,t),"selectingWallet"===e[5]||e[4]<=Ce?g?(g.p(e,t),48&t[0]&&pr(g,1)):(g=fa(e),g.c(),pr(g,1),g.m(a,s)):g&&(fr(),gr(g,1,1,(()=>{g=null})),hr()),e[11]?m?(m.p(e,t),2048&t[0]&&pr(m,1)):(m=ga(e),m.c(),pr(m,1),m.m(a,c)):m&&(fr(),gr(m,1,1,(()=>{m=null})),hr()),"connectedWallet"===e[5]&&e[3]&&e[4]>=Ce?y?(y.p(e,t),56&t[0]&&pr(y,1)):(y=ma(e),y.c(),pr(y,1),y.m(a,null)):y&&(fr(),gr(y,1,1,(()=>{y=null})),hr())},i(e){u||(pr(l),pr(p),pr(g),pr(m),pr(y),u=!0)},o(e){gr(l),gr(p),gr(g),gr(m),gr(y),u=!1},d(r){r&&At(t),l&&l.d(),h.d(),p&&p.d(),g&&g.d(),m&&m.d(),y&&y.d(),e[25](null)}}}function ba(e){let t,r,n,i;tr(e[23]);let o=!e[0].disableModals&&oa(e);return{c(){o&&o.c(),t=It()},m(a,s){o&&o.m(a,s),wt(a,t,s),r=!0,n||(i=kt(window,"resize",e[23]),n=!0)},p(e,r){e[0].disableModals?o&&(fr(),gr(o,1,1,(()=>{o=null})),hr()):o?(o.p(e,r),1&r[0]&&pr(o,1)):(o=oa(e),o.c(),pr(o,1),o.m(t.parentNode,t))},i(e){r||(pr(o),r=!0)},o(e){gr(o),r=!1},d(e){o&&o.d(e),e&&At(t),n=!1,i()}}}function va(e,t,r){let o,a,s,c,l;tt(e,O._,(e=>r(14,l=e)));let{autoSelect:d}=t;const h=Ge.select("appMetadata").pipe((0,m.Z)(Ge.get().appMetadata),(0,y.t)(1));tt(e,h,(e=>r(13,s=e)));const{walletModules:p,connect:g,chains:w}=Ge.get(),E=new i.B,{unstoppableResolution:x,wagmi:S}=be;let I,k,_,T,M,P,j=!1,D=!1,B=[];const R=new n.t("selectingWallet");async function L({label:e,icon:t,getInterface:n}){r(8,_=e);try{const i=Ge.get().wallets.find((t=>t.label===e));if(i)return Rn(i),setTimeout((()=>U("connectedWallet")),1),void r(3,I=i);const{chains:o}=Ge.get(),{provider:a,instance:c}=await n({chains:o,EventEmitter:z,appMetadata:s}),u=await t;r(3,I={label:e,icon:u,provider:a,instance:c,accounts:[],chains:[{namespace:"evm",id:"0x1"}]}),r(9,T=""),H(),setTimeout((()=>U("connectingWallet")),1)}catch(i){const{message:e}=i;r(9,T=e),r(8,_=""),H()}}async function F(){r(1,j=!1);const{provider:e,label:t}=I;E.next();try{let i,o;if(S){const{buildWagmiConfig:r,wagmiConnect:n,getWagmiConnector:a}=S,s=await r(w,{label:t,provider:e});Jn(s),o=a(t);const c=await Promise.race([n(s,{connector:o}),f(E.pipe(A([])))]);if(!c||!("accounts"in c))return;const[u]=c.accounts;i=u}else{const[t]=await Promise.race([ti(e),f(E.pipe(A([])))]);if(!t)return;i=t}if(Ge.get().connect.autoConnectLastWallet||Ge.get().connect.autoConnectAllPreviousWallet){let e=ge(Ae.LAST_CONNECTED_WALLET);try{let r=JSON.parse(e);if(r&&Array.isArray(r)){e=[...new Set([t,...r])]}}catch(n){if(!(n instanceof SyntaxError&&e&&"string"==typeof e))throw new Error(n);e=[e]}e||(e=[t]),me(Ae.LAST_CONNECTED_WALLET,JSON.stringify(e))}const a={accounts:[{address:i,ens:null,uns:null,balance:null}],chains:[{namespace:"evm",id:await ni(e)}],wagmiConnector:o};Rn(Object.assign(Object.assign({},I),a)),oi(e,t),function(e){r(3,I=Object.assign(Object.assign({},I),e))}(a),U("connectedWallet"),H()}catch(i){const{code:e}=i;if(H(),e===N.ProviderRpcErrorCode.ACCOUNT_ACCESS_REJECTED)return r(1,j=!0),void(d.disableModals?Br.next({inProgress:!1}):d.label&&r(0,d.label="",d));if(e===N.ProviderRpcErrorCode.ACCOUNT_ACCESS_ALREADY_REQUESTED)return r(6,D=!0),d.disableModals?void Br.next({inProgress:!1}):void ii({provider:I.provider,disconnected$:Br.pipe((0,v.p)((({inProgress:e})=>!e)),A(""))}).pipe((0,C.s)(1)).subscribe((([e])=>{e&&F()}))}}function U(e){E.next(),R.next(e)}function H(){P&&P.scrollTo(0,0)}return tt(e,R,(e=>r(5,c=e))),Br.pipe((0,b.F)(((e,t)=>e.autoSelect&&t.autoSelect&&e.autoSelect.disableModals===t.autoSelect.disableModals)),(0,v.p)((({autoSelect:e})=>e&&!1===e.disableModals)),(0,u.Q)(Ur)).subscribe((()=>{I&&F()})),R.pipe((0,u.Q)(Ur)).subscribe((e=>{switch(e){case"selectingWallet":if(d.label){const e=p.find((({label:e})=>e.toLowerCase()===d.label.toLowerCase()));e?async function(e){const{getIcon:t,getInterface:r,label:n}=e;L({label:n,icon:t(),getInterface:r})}(e):d.disableModals&&Br.next({inProgress:!1})}else r(8,_=""),async function(){r(2,B=p.map((({getIcon:e,getInterface:t,label:r})=>({label:r,icon:e(),getInterface:t}))))}();break;case"connectingWallet":F();break;case"connectedWallet":r(8,_=""),async function(){const{accounts:e,chains:t}=I,r=Ge.get().chains,[n]=t,i=r.find((({namespace:e,id:t})=>e===n.namespace&&t===n.id)),{address:o}=e[0];let{balance:a,ens:s,uns:c,secondaryTokens:u}=e[0];if(null===a&&ci(o,i).then((e=>{Un(I.label,o,{balance:e})})),i&&!u&&Array.isArray(i.secondaryTokens)&&i.secondaryTokens.length&&$n(o,i).then((e=>{Un(I.label,o,{secondaryTokens:e})})),null===s&&se(n.id)){const e=w.find((({id:e})=>e===se(n.id)));ai(o,e).then((e=>{Un(I.label,o,{ens:e})}))}null===c&&x&&si(o,i).then((e=>{Un(I.label,o,{uns:e})})),setTimeout((()=>Br.next({inProgress:!1})),1500)}()}})),e.$$set=e=>{"autoSelect"in e&&r(0,d=e.autoSelect)},e.$$.update=()=>{4&e.$$.dirty[0]&&r(12,o=B.length-Ge.get().wallets.length),58&e.$$.dirty[0]&&r(11,a="connectingWallet"===c&&I&&M>=Ce||M<=Ce&&j&&"connectingWallet"===c&&I)},[d,j,B,I,M,c,D,k,_,T,P,a,o,s,l,h,g,R,L,function(){r(3,I=null)},function(){Br.next({inProgress:!1})},F,U,function(){r(4,M=window.innerWidth)},function(e){k=e,r(7,k)},function(e){Yt[e?"unshift":"push"]((()=>{P=e,r(10,P)}))}]}class wa extends jr{constructor(e){super(),Pr(this,e,va,ba,$e,{autoSelect:0},ia,[-1,-1])}}function Aa(e){mt(e,"svelte-12yam41",".container.svelte-12yam41{padding:var(--onboard-spacing-4, var(--spacing-4));font-family:var(--onboard-font-family-normal, var(--font-family-normal));line-height:16px;font-size:var(--onboard-font-size-5, var(--font-size-5))}.close.svelte-12yam41{top:var(--onboard-spacing-5, var(--spacing-5));right:var(--onboard-spacing-5, var(--spacing-5));padding:0.5rem}h4.svelte-12yam41{font-size:var(--onboard-font-size-3, var(--font-size-3));margin:var(--onboard-spacing-4, var(--spacing-4)) 0}p.svelte-12yam41{margin:0 0 var(--onboard-spacing-4, var(--spacing-4)) 0;max-width:488px}")}function Ca(e){let t,r,n,i,o,a,s,c,u,l,d,f,h,p,g,m=e[0]("modals.switchChain.heading",{default:mi.modals.switchChain.heading})+"",y=e[0]("modals.switchChain.paragraph1",{default:mi.modals.switchChain.paragraph1,values:{app:e[1]&&e[1].name||"This app",nextNetworkName:e[2]}})+"",b=e[0]("modals.switchChain.paragraph2",{default:mi.modals.switchChain.paragraph2})+"";return f=new vi({}),{c(){t=Et("div"),r=Et("h4"),n=xt(m),i=St(),o=Et("p"),a=xt(y),s=St(),c=Et("p"),u=xt(b),l=St(),d=Et("div"),kr(f.$$.fragment),Tt(r,"class","svelte-12yam41"),Tt(o,"class","svelte-12yam41"),Tt(c,"class","svelte-12yam41"),Tt(d,"class","close absolute svelte-12yam41"),Tt(t,"class","container relative svelte-12yam41")},m(m,y){wt(m,t,y),gt(t,r),gt(r,n),gt(t,i),gt(t,o),gt(o,a),gt(t,s),gt(t,c),gt(c,u),gt(t,l),gt(t,d),_r(f,d,null),h=!0,p||(g=kt(d,"click",e[3]),p=!0)},p(e,t){(!h||1&t)&&m!==(m=e[0]("modals.switchChain.heading",{default:mi.modals.switchChain.heading})+"")&&Mt(n,m),(!h||3&t)&&y!==(y=e[0]("modals.switchChain.paragraph1",{default:mi.modals.switchChain.paragraph1,values:{app:e[1]&&e[1].name||"This app",nextNetworkName:e[2]}})+"")&&Mt(a,y),(!h||1&t)&&b!==(b=e[0]("modals.switchChain.paragraph2",{default:mi.modals.switchChain.paragraph2})+"")&&Mt(u,b)},i(e){h||(pr(f.$$.fragment,e),h=!0)},o(e){gr(f.$$.fragment,e),h=!1},d(e){e&&At(t),Tr(f),p=!1,g()}}}function Ea(e){let t,r;return t=new _i({props:{close:e[3],$$slots:{default:[Ca]},$$scope:{ctx:e}}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,[r]){const n={};67&r&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function xa(e,t,r){let n,i,o;tt(e,Nr,(e=>r(5,n=e))),tt(e,O._,(e=>r(0,i=e)));const a=n.chain.label;const s=Ge.select("appMetadata").pipe((0,m.Z)(Ge.get().appMetadata),(0,y.t)(1));return tt(e,s,(e=>r(1,o=e))),[i,o,a,function(){Nr.next(null)},s]}class Sa extends jr{constructor(e){super(),Pr(this,e,xa,Ea,$e,{},Aa)}}function Ia(e){mt(e,"svelte-z54y2j",".icon.svelte-z54y2j{border-radius:50px;color:var(--onboard-primary-500, var(--primary-500))}")}function ka(e){let t,r;return{c(){t=Et("div"),Tt(t,"class","icon flex svelte-z54y2j"),Tt(t,"style",r=`width: ${e[0]}px; height: ${e[0]}px;`)},m(e,r){wt(e,t,r),t.innerHTML=Z},p(e,[n]){1&n&&r!==(r=`width: ${e[0]}px; height: ${e[0]}px;`)&&Tt(t,"style",r)},i:qe,o:qe,d(e){e&&At(t)}}}function _a(e,t,r){let{size:n=20}=t;return e.$$set=e=>{"size"in e&&r(0,n=e.size)},[n]}class Ta extends jr{constructor(e){super(),Pr(this,e,_a,ka,$e,{size:0},Ia)}}function Ma(e){mt(e,"svelte-20hjq1",".content.svelte-20hjq1{padding:1rem;width:300px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:24px;background:var(\n --onboard-action-required-modal-background,\n var(--onboard-white, var(--white))\n )}.icon-container.svelte-20hjq1{width:3rem;height:3rem;background:var(--onboard-primary-100, var(--primary-100));border-radius:24px}h4.svelte-20hjq1{margin:1.5rem 0 0.5rem 0;font-weight:600}.action-required-heading.svelte-20hjq1,.action-required-info.svelte-20hjq1{color:var(\n --onboard-action-required-text-color,\n var(--onboard-black, inherit)\n )}.action-required-btn.svelte-20hjq1{color:var(\n --onboard-action-required-btn-text-color,\n var(--onboard-black, inherit)\n )}p.svelte-20hjq1{margin:0;font-weight:400}a.svelte-20hjq1{font-weight:600}button.svelte-20hjq1{margin-top:1.5rem;font-weight:600}")}function Pa(e){let t,r,n=e[1]("modals.actionRequired.linkText",{values:{wallet:e[0]}})+"";return{c(){t=Et("a"),r=xt(n),Tt(t,"href","https://metamask.zendesk.com/hc/en-us/articles/360061346311-Switching-accounts-in-MetaMask"),Tt(t,"target","_blank"),Tt(t,"rel","noreferrer noopener"),Tt(t,"class","svelte-20hjq1")},m(e,n){wt(e,t,n),gt(t,r)},p(e,t){3&t&&n!==(n=e[1]("modals.actionRequired.linkText",{values:{wallet:e[0]}})+"")&&Mt(r,n)},d(e){e&&At(t)}}}function ja(e){let t,r,n,i,o,a,s,c,u,l,d,f,h,p,g,m,y=e[1]("modals.actionRequired.heading",{values:{wallet:e[0]}})+"",b=e[1]("modals.actionRequired.paragraph",{values:{wallet:e[0]}})+"",v=e[1]("modals.actionRequired.buttonText")+"";n=new Ta({});let w="MetaMask"===e[0]&&Pa(e);return{c(){t=Et("div"),r=Et("div"),kr(n.$$.fragment),i=St(),o=Et("h4"),a=xt(y),s=St(),c=Et("p"),u=xt(b),l=St(),w&&w.c(),d=St(),f=Et("button"),h=xt(v),Tt(r,"class","icon-container flex justify-center items-center svelte-20hjq1"),Tt(o,"class","action-required-heading svelte-20hjq1"),Tt(c,"class","action-required-info svelte-20hjq1"),Tt(f,"class","button-neutral-solid rounded action-required-btn svelte-20hjq1"),Tt(t,"class","content svelte-20hjq1")},m(y,b){wt(y,t,b),gt(t,r),_r(n,r,null),gt(t,i),gt(t,o),gt(o,a),gt(t,s),gt(t,c),gt(c,u),gt(c,l),w&&w.m(c,null),gt(t,d),gt(t,f),gt(f,h),p=!0,g||(m=kt(f,"click",e[2]),g=!0)},p(e,t){(!p||3&t)&&y!==(y=e[1]("modals.actionRequired.heading",{values:{wallet:e[0]}})+"")&&Mt(a,y),(!p||3&t)&&b!==(b=e[1]("modals.actionRequired.paragraph",{values:{wallet:e[0]}})+"")&&Mt(u,b),"MetaMask"===e[0]?w?w.p(e,t):(w=Pa(e),w.c(),w.m(c,null)):w&&(w.d(1),w=null),(!p||2&t)&&v!==(v=e[1]("modals.actionRequired.buttonText")+"")&&Mt(h,v)},i(e){p||(pr(n.$$.fragment,e),p=!0)},o(e){gr(n.$$.fragment,e),p=!1},d(e){e&&At(t),Tr(n),w&&w.d(),g=!1,m()}}}function Da(e){let t,r;return t=new _i({props:{close:e[2],$$slots:{default:[ja]},$$scope:{ctx:e}}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,[r]){const n={};11&r&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function Oa(e,t,r){let n;tt(e,O._,(e=>r(1,n=e)));let{wallet:i}=t;return e.$$set=e=>{"wallet"in e&&r(0,i=e.wallet)},[i,n,function(){Br.next({inProgress:!1,actionRequired:""})}]}class Ba extends jr{constructor(e){super(),Pr(this,e,Oa,Da,$e,{wallet:0},Ma)}}function Na(e){mt(e,"svelte-w5zexe",".flex{display:flex}.inline-flex{display:inline-flex}.flex-column{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.justify-around{justify-content:space-around}.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.pointer{cursor:pointer}.shadow-1{box-shadow:var(--onboard-shadow-1, var(--shadow-1))}.w-100{width:100%}*{box-sizing:border-box}input{background:var(--onboard-white, var(--white))}input{width:100%;padding:0.5rem 1rem;outline:2px solid var(--onboard-gray-200, var(--gray-200));border:none;border-radius:8px;font-size:1rem;line-height:1.5;color:var(--onboard-gray-600, var(--gray-600));transition:all 200ms ease-in-out}input[type='checkbox']{-webkit-appearance:none;appearance:none;width:auto;background:var(--onboard-white, var(--white));outline:1px solid var(--onboard-gray-300, var(--gray-300));border:none;padding:0.5em;border-radius:3px;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer}input[type='checkbox']:hover{border-color:var(\n --onboard-checkbox-background,\n var(--onboard-primary-500, var(--primary-500))\n )}input[type='checkbox']:checked{background:var(\n --onboard-checkbox-background,\n var(--onboard-primary-500, var(--primary-500))\n );border-color:var(\n --onboard-checkbox-background,\n var(--onboard-primary-500, var(--primary-500))\n );color:var(--onboard-checkbox-color, var(--onboard-white, var(--white)))}input[type='checkbox']:checked:after{content:url(\"data:image/svg+xml,%3Csvg width='0.885em' height='0.6em' viewBox='0 0 14 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 6L5 11L14 2L12.59 0.58L5 8.17L1.41 4.59L0 6Z' fill='white'/%3E%3C/svg%3E\");font-size:12px;position:absolute;color:var(--onboard-checkbox-color, var(--onboard-white, var(--white)))}input:hover{border-color:var(\n --onboard-checkbox-color,\n var(--onboard-white, var(--white))\n )}input:focus{border-color:var(--onboard-primary-500, var(--primary-500));box-shadow:0 0 1px 1px\n var(\n --onboard-checkbox-background,\n var(--onboard-primary-500, var(--primary-500))\n );box-shadow:0 0 0 1px -moz-mac-focusring}input:disabled, textarea:disabled, select:disabled{background:var(--gray-100)}input::-moz-focus-inner{outline:0;padding:0;margin-top:-2px;margin-bottom:-2px}a{color:var(\n --onboard-link-color,\n var(--onboard-primary-500, var(--primary-500))\n );text-decoration:none}a:hover{text-decoration:underline}button{display:flex;align-items:center;justify-content:center;padding:calc(var(--onboard-spacing-4, var(--spacing-4)) - 1px);border-radius:24px;cursor:pointer;font:inherit;border:none;transition:background-color 150ms ease-in-out, color 150ms ease-in-out}.onboard-button-primary{background:var(--onboard-white, var(--white));padding:calc(var(--onboard-spacing-5, var(--spacing-5)) - 1px)\n calc(var(--onboard-spacing-4, var(--spacing-4)) - 1px);color:var(--onboard-gray-500, var(--gray-500));font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));border:1px solid var(--onboard-gray-500, var(--gray-500));font-weight:600}.button-neutral-solid{width:100%;border-radius:8px;background:var(--onboard-gray-500, var(--gray-500));color:var(--onboard-white, var(--white));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}.button-neutral-solid-b{width:100%;background:var(--onboard-gray-100, var(--gray-100));color:var(--onboard-gray-500, var(--gray-500));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}button.rounded{border-radius:24px}.button-neutral-solid:hover{background:var(--onboard-gray-700, var(--gray-700))}.button-neutral-solid-b:hover{background:var(--onboard-gray-200, var(--gray-200))}.button-neutral-solid:active{color:var(--onboard-gray-300, var(--gray-300))}.button-neutral-solid-b:active{color:var(--onboard-gray-600, var(--gray-600));background:var(--onboard-gray-300, var(--gray-300))}.container.svelte-w5zexe{padding:16px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));pointer-events:none;touch-action:none;width:100%}.z-indexed.svelte-w5zexe{z-index:var(--account-center-z-index)}@media all and (min-width: 428px){.container.svelte-w5zexe{max-width:348px}}")}function Ra(e){let t,r;return t=new wa({props:{autoSelect:e[8].autoSelect}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,r){const n={};256&r&&(n.autoSelect=e[8].autoSelect),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function La(e){let t,r;return t=new Ba({props:{wallet:e[8].actionRequired}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,r){const n={};256&r&&(n.wallet=e[8].actionRequired),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function Fa(e){let t,r;return t=new Sa({}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function Ua(e){let t,r,n,i,o,a,s=e[3].position.includes("bottom")&&e[1].position.includes("bottom")&&e[7],c=e[3].position.includes("top")&&e[1].position.includes("top")&&e[7],u=s&&za(e),l={ctx:e,current:null,token:null,hasCatch:!1,pending:Qa,then:qa,catch:Ga,value:23,blocks:[,,,]};wr(e[16],l);let d=c&&Wa(e);return{c(){t=Et("div"),u&&u.c(),r=St(),n=Et("div"),l.block.c(),i=St(),d&&d.c(),Tt(n,"id","account-center-with-notify"),Tt(t,"class","container flex flex-column fixed z-indexed svelte-w5zexe"),Tt(t,"style",o=e[15](cs)[e[1].position]+"; "+("mobile"===e[11].type&&e[1].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[1].position.includes("bottom")?"padding-top:0;":""))},m(e,o){wt(e,t,o),u&&u.m(t,null),gt(t,r),gt(t,n),l.block.m(n,l.anchor=null),l.mount=()=>n,l.anchor=null,gt(t,i),d&&d.m(t,null),a=!0},p(n,i){e=n,138&i&&(s=e[3].position.includes("bottom")&&e[1].position.includes("bottom")&&e[7]),s?u?(u.p(e,i),138&i&&pr(u,1)):(u=za(e),u.c(),pr(u,1),u.m(t,r)):u&&(fr(),gr(u,1,1,(()=>{u=null})),hr()),Ar(l,e,i),138&i&&(c=e[3].position.includes("top")&&e[1].position.includes("top")&&e[7]),c?d?(d.p(e,i),138&i&&pr(d,1)):(d=Wa(e),d.c(),pr(d,1),d.m(t,null)):d&&(fr(),gr(d,1,1,(()=>{d=null})),hr()),(!a||2&i&&o!==(o=e[15](cs)[e[1].position]+"; "+("mobile"===e[11].type&&e[1].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[1].position.includes("bottom")?"padding-top:0;":"")))&&Tt(t,"style",o)},i(e){a||(pr(u),pr(l.block),pr(d),a=!0)},o(e){gr(u);for(let t=0;t<3;t+=1){gr(l.blocks[t])}gr(d),a=!1},d(e){e&&At(t),u&&u.d(),l.block.d(),l.token=null,l=null,d&&d.d()}}}function za(e){let t,r,n={ctx:e,current:null,token:null,hasCatch:!1,pending:Ka,then:Va,catch:Ha,value:22,blocks:[,,,]};return wr(e[17],n),{c(){t=It(),n.block.c()},m(e,i){wt(e,t,i),n.block.m(e,n.anchor=i),n.mount=()=>t.parentNode,n.anchor=t,r=!0},p(t,r){Ar(n,e=t,r)},i(e){r||(pr(n.block),r=!0)},o(e){for(let t=0;t<3;t+=1){gr(n.blocks[t])}r=!1},d(e){e&&At(t),n.block.d(e),n.token=null,n=null}}}function Ha(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function Va(e){let t,r,n=e[22]&&function(e){let t,r,n;var i=e[22];function o(e){return{props:{notifications:e[10],position:e[3].position,sharedContainer:e[0]}}}i&&(t=Bt(i,o(e)));return{c(){t&&kr(t.$$.fragment),r=It()},m(e,i){t&&_r(t,e,i),wt(e,r,i),n=!0},p(e,n){const a={};if(1024&n&&(a.notifications=e[10]),8&n&&(a.position=e[3].position),1&n&&(a.sharedContainer=e[0]),i!==(i=e[22])){if(t){fr();const e=t;gr(e.$$.fragment,1,0,(()=>{Tr(e,1)})),hr()}i?(t=Bt(i,o(e)),kr(t.$$.fragment),pr(t.$$.fragment,1),_r(t,r.parentNode,r)):t=null}else i&&t.$set(a)},i(e){n||(t&&pr(t.$$.fragment,e),n=!0)},o(e){t&&gr(t.$$.fragment,e),n=!1},d(e){e&&At(r),t&&Tr(t,e)}}}(e);return{c(){n&&n.c(),t=It()},m(e,i){n&&n.m(e,i),wt(e,t,i),r=!0},p(e,t){e[22]&&n.p(e,t)},i(e){r||(pr(n),r=!0)},o(e){gr(n),r=!1},d(e){n&&n.d(e),e&&At(t)}}}function Ka(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function Ga(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function qa(e){let t,r,n=e[23]&&function(e){let t,r,n;var i=e[23];function o(e){return{}}i&&(t=Bt(i,o()));return{c(){t&&kr(t.$$.fragment),r=It()},m(e,i){t&&_r(t,e,i),wt(e,r,i),n=!0},p(e,n){if(i!==(i=e[23])){if(t){fr();const e=t;gr(e.$$.fragment,1,0,(()=>{Tr(e,1)})),hr()}i?(t=Bt(i,o()),kr(t.$$.fragment),pr(t.$$.fragment,1),_r(t,r.parentNode,r)):t=null}},i(e){n||(t&&pr(t.$$.fragment,e),n=!0)},o(e){t&&gr(t.$$.fragment,e),n=!1},d(e){e&&At(r),t&&Tr(t,e)}}}(e);return{c(){n&&n.c(),t=It()},m(e,i){n&&n.m(e,i),wt(e,t,i),r=!0},p(e,t){e[23]&&n.p(e,t)},i(e){r||(pr(n),r=!0)},o(e){gr(n),r=!1},d(e){n&&n.d(e),e&&At(t)}}}function Qa(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function Wa(e){let t,r,n={ctx:e,current:null,token:null,hasCatch:!1,pending:Za,then:Ya,catch:Ja,value:22,blocks:[,,,]};return wr(e[17],n),{c(){t=It(),n.block.c()},m(e,i){wt(e,t,i),n.block.m(e,n.anchor=i),n.mount=()=>t.parentNode,n.anchor=t,r=!0},p(t,r){Ar(n,e=t,r)},i(e){r||(pr(n.block),r=!0)},o(e){for(let t=0;t<3;t+=1){gr(n.blocks[t])}r=!1},d(e){e&&At(t),n.block.d(e),n.token=null,n=null}}}function Ja(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function Ya(e){let t,r,n=e[22]&&function(e){let t,r,n;var i=e[22];function o(e){return{props:{notifications:e[10],position:e[3].position,sharedContainer:e[0]}}}i&&(t=Bt(i,o(e)));return{c(){t&&kr(t.$$.fragment),r=It()},m(e,i){t&&_r(t,e,i),wt(e,r,i),n=!0},p(e,n){const a={};if(1024&n&&(a.notifications=e[10]),8&n&&(a.position=e[3].position),1&n&&(a.sharedContainer=e[0]),i!==(i=e[22])){if(t){fr();const e=t;gr(e.$$.fragment,1,0,(()=>{Tr(e,1)})),hr()}i?(t=Bt(i,o(e)),kr(t.$$.fragment),pr(t.$$.fragment,1),_r(t,r.parentNode,r)):t=null}else i&&t.$set(a)},i(e){n||(t&&pr(t.$$.fragment,e),n=!0)},o(e){t&&gr(t.$$.fragment,e),n=!1},d(e){e&&At(r),t&&Tr(t,e)}}}(e);return{c(){n&&n.c(),t=It()},m(e,i){n&&n.m(e,i),wt(e,t,i),r=!0},p(e,t){e[22]&&n.p(e,t)},i(e){r||(pr(n),r=!0)},o(e){gr(n),r=!1},d(e){n&&n.d(e),e&&At(t)}}}function Za(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function $a(e){let t,r,n,i,o=e[1].enabled&&e[2].length&&Xa(e);return{c(){t=Et("div"),r=Et("div"),o&&o.c(),Tt(t,"class","container flex flex-column fixed z-indexed svelte-w5zexe"),Tt(t,"style",n=e[15](cs)[e[1].position]+"; "+("mobile"===e[11].type&&e[1].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[1].position.includes("bottom")?"padding-top:0;":""))},m(e,n){wt(e,t,n),gt(t,r),o&&o.m(r,null),i=!0},p(e,a){e[1].enabled&&e[2].length?o?(o.p(e,a),6&a&&pr(o,1)):(o=Xa(e),o.c(),pr(o,1),o.m(r,null)):o&&(fr(),gr(o,1,1,(()=>{o=null})),hr()),(!i||2&a&&n!==(n=e[15](cs)[e[1].position]+"; "+("mobile"===e[11].type&&e[1].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[1].position.includes("bottom")?"padding-top:0;":"")))&&Tt(t,"style",n)},i(e){i||(pr(o),i=!0)},o(e){gr(o),i=!1},d(e){e&&At(t),o&&o.d()}}}function Xa(e){let t,r,n={ctx:e,current:null,token:null,hasCatch:!1,pending:rs,then:ts,catch:es,value:23,blocks:[,,,]};return wr(e[16],n),{c(){t=It(),n.block.c()},m(e,i){wt(e,t,i),n.block.m(e,n.anchor=i),n.mount=()=>t.parentNode,n.anchor=t,r=!0},p(t,r){Ar(n,e=t,r)},i(e){r||(pr(n.block),r=!0)},o(e){for(let t=0;t<3;t+=1){gr(n.blocks[t])}r=!1},d(e){e&&At(t),n.block.d(e),n.token=null,n=null}}}function es(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function ts(e){let t,r,n=e[23]&&function(e){let t,r,n;var i=e[23];function o(e){return{}}i&&(t=Bt(i,o()));return{c(){t&&kr(t.$$.fragment),r=It()},m(e,i){t&&_r(t,e,i),wt(e,r,i),n=!0},p(e,n){if(i!==(i=e[23])){if(t){fr();const e=t;gr(e.$$.fragment,1,0,(()=>{Tr(e,1)})),hr()}i?(t=Bt(i,o()),kr(t.$$.fragment),pr(t.$$.fragment,1),_r(t,r.parentNode,r)):t=null}},i(e){n||(t&&pr(t.$$.fragment,e),n=!0)},o(e){t&&gr(t.$$.fragment,e),n=!1},d(e){e&&At(r),t&&Tr(t,e)}}}(e);return{c(){n&&n.c(),t=It()},m(e,i){n&&n.m(e,i),wt(e,t,i),r=!0},p(e,t){e[23]&&n.p(e,t)},i(e){r||(pr(n),r=!0)},o(e){gr(n),r=!1},d(e){n&&n.d(e),e&&At(t)}}}function rs(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function ns(e){let t,r,n,i={ctx:e,current:null,token:null,hasCatch:!1,pending:as,then:os,catch:is,value:22,blocks:[,,,]};return wr(e[17],i),{c(){t=Et("div"),i.block.c(),Tt(t,"class","container flex flex-column fixed z-indexed svelte-w5zexe"),Tt(t,"style",r=e[15](us)[e[3].position]+"; "+("mobile"===e[11].type&&e[3].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[3].position.includes("bottom")?"padding-top:0;":""))},m(e,r){wt(e,t,r),i.block.m(t,i.anchor=null),i.mount=()=>t,i.anchor=null,n=!0},p(o,a){Ar(i,e=o,a),(!n||8&a&&r!==(r=e[15](us)[e[3].position]+"; "+("mobile"===e[11].type&&e[3].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[3].position.includes("bottom")?"padding-top:0;":"")))&&Tt(t,"style",r)},i(e){n||(pr(i.block),n=!0)},o(e){for(let t=0;t<3;t+=1){gr(i.blocks[t])}n=!1},d(e){e&&At(t),i.block.d(),i.token=null,i=null}}}function is(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function os(e){let t,r,n=e[22]&&function(e){let t,r,n;var i=e[22];function o(e){return{props:{notifications:e[10],position:e[3].position,sharedContainer:e[0]}}}i&&(t=Bt(i,o(e)));return{c(){t&&kr(t.$$.fragment),r=It()},m(e,i){t&&_r(t,e,i),wt(e,r,i),n=!0},p(e,n){const a={};if(1024&n&&(a.notifications=e[10]),8&n&&(a.position=e[3].position),1&n&&(a.sharedContainer=e[0]),i!==(i=e[22])){if(t){fr();const e=t;gr(e.$$.fragment,1,0,(()=>{Tr(e,1)})),hr()}i?(t=Bt(i,o(e)),kr(t.$$.fragment),pr(t.$$.fragment,1),_r(t,r.parentNode,r)):t=null}else i&&t.$set(a)},i(e){n||(t&&pr(t.$$.fragment,e),n=!0)},o(e){t&&gr(t.$$.fragment,e),n=!1},d(e){e&&At(r),t&&Tr(t,e)}}}(e);return{c(){n&&n.c(),t=It()},m(e,i){n&&n.m(e,i),wt(e,t,i),r=!0},p(e,t){e[22]&&n.p(e,t)},i(e){r||(pr(n),r=!0)},o(e){gr(n),r=!1},d(e){n&&n.d(e),e&&At(t)}}}function as(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function ss(e){let t,r,n,i,o,a,s,c=e[8].inProgress&&Ra(e),u=e[8].actionRequired&&La(e),l=e[9]&&Fa(),d=e[4]&&Ua(e),f=e[5]&&$a(e),h=e[6]&&ns(e);return{c(){c&&c.c(),t=St(),u&&u.c(),r=St(),l&&l.c(),n=St(),d&&d.c(),i=St(),f&&f.c(),o=St(),h&&h.c(),a=It()},m(e,p){c&&c.m(e,p),wt(e,t,p),u&&u.m(e,p),wt(e,r,p),l&&l.m(e,p),wt(e,n,p),d&&d.m(e,p),wt(e,i,p),f&&f.m(e,p),wt(e,o,p),h&&h.m(e,p),wt(e,a,p),s=!0},p(e,[s]){e[8].inProgress?c?(c.p(e,s),256&s&&pr(c,1)):(c=Ra(e),c.c(),pr(c,1),c.m(t.parentNode,t)):c&&(fr(),gr(c,1,1,(()=>{c=null})),hr()),e[8].actionRequired?u?(u.p(e,s),256&s&&pr(u,1)):(u=La(e),u.c(),pr(u,1),u.m(r.parentNode,r)):u&&(fr(),gr(u,1,1,(()=>{u=null})),hr()),e[9]?l?512&s&&pr(l,1):(l=Fa(),l.c(),pr(l,1),l.m(n.parentNode,n)):l&&(fr(),gr(l,1,1,(()=>{l=null})),hr()),e[4]?d?(d.p(e,s),16&s&&pr(d,1)):(d=Ua(e),d.c(),pr(d,1),d.m(i.parentNode,i)):d&&(fr(),gr(d,1,1,(()=>{d=null})),hr()),e[5]?f?(f.p(e,s),32&s&&pr(f,1)):(f=$a(e),f.c(),pr(f,1),f.m(o.parentNode,o)):f&&(fr(),gr(f,1,1,(()=>{f=null})),hr()),e[6]?h?(h.p(e,s),64&s&&pr(h,1)):(h=ns(e),h.c(),pr(h,1),h.m(a.parentNode,a)):h&&(fr(),gr(h,1,1,(()=>{h=null})),hr())},i(e){s||(pr(c),pr(u),pr(l),pr(d),pr(f),pr(h),s=!0)},o(e){gr(c),gr(u),gr(l),gr(d),gr(f),gr(h),s=!1},d(e){c&&c.d(e),e&&At(t),u&&u.d(e),e&&At(r),l&&l.d(e),e&&At(n),d&&d.d(e),e&&At(i),f&&f.d(e),e&&At(o),h&&h.d(e),e&&At(a)}}}const cs="account-center",us="notify-onboard-container";function ls(e,t,n){let i,o,a,s,c,u,l,d,f,h,p,g;tt(e,Rr,(e=>n(2,d=e))),tt(e,Br,(e=>n(8,h=e))),tt(e,Nr,(e=>n(9,p=e)));const{device:b,containerElements:v}=be,w=Ge.select("accountCenter").pipe((0,m.Z)(Ge.get().accountCenter),(0,y.t)(1));tt(e,w,(e=>n(1,l=e)));const A=Ge.select("notify").pipe((0,m.Z)(Ge.get().notify),(0,y.t)(1));tt(e,A,(e=>n(3,f=e)));const C=Ge.select("notifications").pipe((0,m.Z)(Ge.get().notifications));tt(e,C,(e=>n(10,g=e)));const E=l.enabled?r.e(43875).then(r.bind(r,43875)).then((e=>e.default)):Promise.resolve(null),x=f.enabled?r.e(42534).then(r.bind(r,942534)).then((e=>e.default)):Promise.resolve(null),S=l.enabled&&v&&v.accountCenter;if(S){((e,t,r,n)=>{const i=e.attachShadow({mode:"open"});let o=document.querySelector("onboard-v2").shadowRoot.styleSheets;const a=new CSSStyleSheet;Object.values(o).forEach((e=>{Object.values(e.cssRules).forEach((e=>a.insertRule(e.cssText)))})),i.adoptedStyleSheets=[a];const s=document.querySelector(t);if(s.appendChild(e),!s)throw new Error(`Element with query ${t} does not exist.`);(async()=>{let e=await r;e&&new e({target:i,props:{settings:n,mountInContainer:!0}})})()})(document.createElement("onboard-account-center"),S,E,l)}return e.$$.update=()=>{10&e.$$.dirty&&n(0,i=!S&&l.enabled&&f.enabled&&f.position===l.position),10&e.$$.dirty&&n(7,o="mobile"===b.type||l.position===f.position),10&e.$$.dirty&&n(18,a=f.position.includes("bottom")&&l.position.includes("bottom")||f.position.includes("top")&&l.position.includes("top")),262158&e.$$.dirty&&n(6,s=f.enabled&&(!l.enabled||S||f.position!==l.position&&"mobile"!==b.type||"mobile"===b.type&&!a||!d.length)),262158&e.$$.dirty&&n(5,c=l.enabled&&(!f.enabled||f.position!==l.position&&"mobile"!==b.type||"mobile"===b.type&&!a)&&d.length),262159&e.$$.dirty&&n(4,u=f.enabled&&l.enabled&&(i||"mobile"===b.type&&a)&&d.length)},[i,l,d,f,u,c,s,o,h,p,g,b,w,A,C,e=>({topLeft:`\n top: var(--${e}-position-top, 0); \n left: var(--${e}-position-left, 0);`,topRight:`\n top: var(--${e}-position-top, 0); \n right: var(--${e}-position-right, 0);`,bottomRight:`\n bottom: var(--${e}-position-bottom, 0); \n right: var(--${e}-position-right, 0);`,bottomLeft:`\n bottom: var(--${e}-position-bottom, 0); \n left: var(--${e}-position-left, 0);`}),E,x,a]}class ds extends jr{constructor(e){super(),Pr(this,e,ls,ss,$e,{},Na)}}const fs={connectWallet:Yn,disconnectWallet:Zn,setChain:pi,state:{get:Ge.get,select:Ge.select,actions:{setWalletModules:qn,setLocale:function(e){const t=Pn(e);if(t)throw t;Ke({type:Be,payload:e})},updateNotify:Vn,customNotification:function(e){const t=Dn(e);if(t)throw t;const r=`customNotification-${((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),""))()}`,n=Object.assign(Object.assign({},e),{id:r,key:r});Kn(n);const i=()=>{n.id&&Gn(n.id)},o=t=>{const r=Dn(e);if(r)throw r;return Kn(Object.assign(Object.assign({},t),{id:n.id,key:n.key})),{dismiss:i,update:o}};return Kn(n),{dismiss:i,update:o}},updateBalances:async function(e){const{wallets:t,chains:r}=Ge.get(),n=await Promise.all(t.map((async t=>{const n=r.find((({id:e})=>e===t.chains[0].id));if(!n)return;const i=await Promise.all(t.accounts.map((async t=>{const r=await $n(t.address,n);if(!e||e.some((e=>e.toLowerCase()===t.address.toLowerCase()))){const e=await ci(t.address,n);return Object.assign(Object.assign({},t),{balance:e,secondaryTokens:r})}return Object.assign(Object.assign({},t),{secondaryTokens:r})})));return Object.assign(Object.assign({},t),{accounts:i})})));!function(e){const t=On(e);if(t)throw t;Ke({type:Fe,payload:e})}(n)},updateAccountCenter:zn,setPrimaryWallet:Fn,updateTheme:Qn,updateAppMetadata:Wn}}};function hs(e){if("undefined"==typeof window)return fs;if(e){const r=(t=e,(0,N.tf)(An,t));if(r)throw r}var t;const{wallets:r,chains:n,appMetadata:i,i18n:o,accountCenter:a,notify:s,gas:c,connect:u,containerElements:l,transactionPreview:d,theme:f,disableFontDownload:h,unstoppableResolution:p,wagmi:g}=e;l&&ve({containerElements:l});const{device:m,svelteInstance:y}=be;if(y&&(console.warn("Re-initializing Onboard and resetting back to initial state"),Dr.next()),function(e){if(e){const{en:t}=e,r=U(mi,t||{});(0,O.Kc)("en",r),Object.keys(e).filter((e=>"en"!==e)).forEach((t=>{const r=e[t];r&&(0,O.Kc)(t,r)}))}else(0,O.Kc)("en",mi);(0,O.Ts)({fallbackLocale:"en",initialLocale:(0,O.WL)()})}(o),function(e){Ke({type:Se,payload:e.map((e=>{var{namespace:t="evm",id:r,rpcUrl:n}=e,i=H(e,["namespace","id","rpcUrl"]);return Object.assign(Object.assign({},i),{namespace:t,id:r.toLowerCase(),rpcUrl:n?n.trim():null})}))})}(function(e){return e.map((e=>{var{id:t}=e,r=H(e,["id"]);const n=ie(t);return Object.assign({id:n},r)}))}(n)),void 0!==u&&Hn(u),void 0!==a){let e;const{hideTransactionProtectionBtn:t,transactionProtectionInfoLink:r}=a;"mobile"===m.type?e=Object.assign(Object.assign(Object.assign({},we.accountCenter),{hideTransactionProtectionBtn:t,transactionProtectionInfoLink:r}),a.mobile?a.mobile:{}):a.desktop&&(e=Object.assign(Object.assign(Object.assign({},we.accountCenter),{hideTransactionProtectionBtn:t,transactionProtectionInfoLink:r}),a.desktop)),void 0!==e&&zn(e)}let b;if(void 0!==g&&(b=g(Object.assign({disconnect:Zn,updateChain:Nn},hi()))),void 0!==s)if(console.warn("Support for notifications on transaction state changes have been deprecated. Custom notifications can still be sent ot the user."),"desktop"in s||"mobile"in s){const e=function(e){return(0,N.tf)(hn,e)}(s);if(e)throw e;s&&s.desktop&&s.desktop.position&&a&&a.desktop&&a.desktop.position&&(s.desktop.position=a.desktop.position),s&&s.mobile&&s.mobile.position&&a&&a.mobile&&a.mobile.position&&(s.mobile.position=a.mobile.position);let t={};"mobile"===m.type&&s.mobile?t=Object.assign(Object.assign({},we.notify),s.mobile):s.desktop&&(t=Object.assign(Object.assign({},we.notify),s.desktop)),Vn(t)}else{const e=jn(s);if(e)throw e;Vn(Object.assign(Object.assign({},we.notify),s))}else{Vn(we.notify)}const v=y||function(e,t){class r extends HTMLElement{constructor(){super()}}customElements.get("onboard-v2")||customElements.define("onboard-v2",r);ps(e,t)||gs();const n=document.createElement("onboard-v2"),i=n.attachShadow({mode:"open"});let o;n.style.all="initial",i.innerHTML="\n\n \n ",be&&be.containerElements&&be.containerElements.connectModal&&(o=be.containerElements.connectModal);const a=o||Ge.get().accountCenter.containerElement||"body",s=document.querySelector(a);if(!s)throw new Error(`Element with query ${a} does not exist.`);s.appendChild(n);const c=new ds({target:i});return c}(f||{},h||!1);if(ve({svelteInstance:v,initialWalletInit:r,gas:c,unstoppableResolution:p,wagmi:b}),i&&Wn(i),d&&console.error("Transaction Preview support has been removed and is no longer supported within Web3-Onboard"),f&&Qn(f),u&&(u.autoConnectLastWallet||u.autoConnectAllPreviousWallet)){const e=ge(Ae.LAST_CONNECTED_WALLET);try{const t=JSON.parse(e);t&&Array.isArray(t)&&t.length&&ms(t,u),t&&"string"==typeof t&&ms([t],u)}catch(w){w instanceof SyntaxError&&e&&fs.connectWallet({autoSelect:{label:e,disableModals:!0}})}}return fs}const ps=(e,t)=>!!t||(!(!document.body||!getComputedStyle(document.body).getPropertyValue("--onboard-font-family-normal")&&!getComputedStyle(document.body).getPropertyValue("--w3o-font-family"))||!!e&&!("object"!=typeof e||!e["--w3o-font-family"])),gs=async()=>{const{InterVar:e}=await Promise.resolve().then(r.bind(r,645599)),t=document.createElement("style");t.innerHTML=`\n ${e}\n `,document.body.appendChild(t)},ms=async(e,t)=>{const r=[],n=e;if(t.autoConnectAllPreviousWallet)for(let i=n.length;i--;){(await fs.connectWallet({autoSelect:{label:n[i],disableModals:!0}})).some((e=>e.label===n[i]))&&r.unshift(n[i])}else fs.connectWallet({autoSelect:{label:n[0],disableModals:!0}}),r.push(n[0]);me(Ae.LAST_CONNECTED_WALLET,JSON.stringify(r))}},630666:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(452484);class i extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,n.HF)()});const r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof i&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return o(this,e)}}function o(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e?o(e.cause,t):t?null:e}},760891:(e,t,r)=>{"use strict";r.d(t,{Fl:()=>o,NV:()=>a,ii:()=>i});var n=r(630666);class i extends n.C{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class o extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}class a extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesLengthError"})}}},617666:(e,t,r)=>{"use strict";r.d(t,{Ty:()=>i,u:()=>a,xO:()=>o});var n=r(630666);class i extends n.C{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class o extends n.C{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesBooleanError"})}}n.C;n.C;class a extends n.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},452484:(e,t,r)=>{"use strict";r.d(t,{RZ:()=>n,ID:()=>i,HF:()=>o});const n=e=>e,i=e=>e,o=()=>"viem@2.12.0"},624331:(e,t,r)=>{"use strict";function n(e,{strict:t=!0}={}){return!!e&&("string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}r.d(t,{q:()=>n})},260855:(e,t,r)=>{"use strict";r.d(t,{db:()=>o,eV:()=>i});var n=r(760891);function i(e,{dir:t,size:r=32}={}){return"string"==typeof e?o(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.Fl({size:e.length,targetSize:r,type:"bytes"});const i=new Uint8Array(r);for(let n=0;n2*r)throw new n.Fl({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}},288929:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(624331);function i(e){return(0,n.q)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},133594:(e,t,r)=>{"use strict";r.d(t,{ME:()=>s,Sl:()=>o,uU:()=>a});var n=r(617666),i=r(288929);function o(e,{size:t}){if((0,i.E)(e)>t)throw new n.u({givenSize:(0,i.E)(e),maxSize:t})}function a(e,t={}){const{signed:r}=t;t.size&&o(e,{size:t.size});const n=BigInt(e);if(!r)return n;const i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function s(e,t={}){return Number(a(e,t))}},908373:(e,t,r)=>{"use strict";r.d(t,{$P:()=>c,My:()=>u,cK:()=>l,i3:()=>f,nj:()=>s});var n=r(617666),i=r(260855),o=r(133594);const a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e,t={}){return"number"==typeof e||"bigint"==typeof e?l(e,t):"string"==typeof e?f(e,t):"boolean"==typeof e?c(e,t):u(e,t)}function c(e,t={}){const r=`0x${Number(e)}`;return"number"==typeof t.size?((0,o.Sl)(r,{size:t.size}),(0,i.eV)(r,{size:t.size})):r}function u(e,t={}){let r="";for(let i=0;is||a{"use strict";function n(e,t){const r=e.exec(t);return r?.groups}r.d(t,{BD:()=>i,Ge:()=>o,Yv:()=>n,wj:()=>a});const i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,o=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,a=/^\(.+?\).*?$/},552071:(e,t,r)=>{"use strict";r.d(t,{_Q:()=>d,HT:()=>l,yE:()=>f});const n=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,a=new Uint8Array(o);e[t];){var l=r[e.charCodeAt(t)];if(255===l)return;for(var d=0,f=o-1;(0!==l||d>>0,a[f]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var h=o-i;h!==o&&0===a[h];)h++;for(var p=new Uint8Array(n+(o-h)),g=n;h!==o;)p[g++]=a[h++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var a=(o-i)*l+1>>>0,u=new Uint8Array(a);i!==o;){for(var d=t[i],f=0,h=a-1;(0!==d||f>>0,u[h]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");n=f,i++}for(var p=a-n;p!==a&&0===u[p];)p++;for(var g=c.repeat(r);pnew s({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class u{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new o(e,t,r),this.decoder=new a(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const l=({name:e,prefix:t,encode:r,decode:n})=>new u(e,t,r,n),d=({prefix:e,name:t,alphabet:r})=>{const{encode:o,decode:a}=n(r,t);return l({prefix:e,name:t,encode:o,decode:e=>(0,i.au)(a(e))})},f=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>l({prefix:t,name:e,encode:e=>((e,t,r)=>{const n="="===t[t.length-1],i=(1<r;)a-=r,o+=t[i&s>>a];if(a&&(o+=t[i&s<((e,t,r,n)=>{const i={};for(let l=0;l=8&&(s-=8,a[u++]=255&c>>s)}if(s>=r||255&c<<8-s)throw new SyntaxError("Unexpected end of data");return a})(t,n,r,e)})},633431:(e,t,r)=>{"use strict";r.r(t),r.d(t,{base32:()=>i,base32hex:()=>c,base32hexpad:()=>l,base32hexpadupper:()=>d,base32hexupper:()=>u,base32pad:()=>a,base32padupper:()=>s,base32upper:()=>o,base32z:()=>f});var n=r(552071);const i=(0,n.yE)({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),o=(0,n.yE)({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),a=(0,n.yE)({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),s=(0,n.yE)({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),c=(0,n.yE)({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),u=(0,n.yE)({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),l=(0,n.yE)({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),d=(0,n.yE)({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),f=(0,n.yE)({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})},852807:(e,t,r)=>{"use strict";r.r(t),r.d(t,{base58btc:()=>i,base58flickr:()=>o});var n=r(552071);const i=(0,n._Q)({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),o=(0,n._Q)({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})},192081:(e,t,r)=>{"use strict";r.d(t,{aI:()=>n,au:()=>i,dI:()=>a,sH:()=>o});new Uint8Array(0);const n=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},o=e=>(new TextEncoder).encode(e),a=e=>(new TextDecoder).decode(e)},754070:(e,t,r)=>{"use strict";r(674973),r(814403),r(852807),r(633431),r(192081);Symbol.toStringTag,Symbol.for("nodejs.util.inspect.custom");Symbol.for("@ipld/js-cid/CID")},814403:(e,t,r)=>{"use strict";r.d(t,{D4:()=>a,aI:()=>s,np:()=>c,vt:()=>o});var n=r(192081),i=r(674973);const o=(e,t)=>{const r=t.byteLength,n=i.OY(e),o=n+i.OY(r),a=new Uint8Array(o+r);return i.s_(e,a,0),i.s_(r,a,n),a.set(t,o),new c(e,r,t,a)},a=e=>{const t=(0,n.au)(e),[r,o]=i.D4(t),[a,s]=i.D4(t.subarray(o)),u=t.subarray(o+s);if(u.byteLength!==a)throw new Error("Incorrect length");return new c(r,a,u,t)},s=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&(0,n.aI)(e.bytes,t.bytes);class c{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}},674973:(e,t,r)=>{"use strict";r.d(t,{D4:()=>w,s_:()=>A,OY:()=>C});var n=function e(t,r,n){r=r||[];var s=n=n||0;for(;t>=a;)r[n++]=255&t|i,t/=128;for(;t&o;)r[n++]=255&t|i,t>>>=7;return r[n]=0|t,e.bytes=n-s+1,r},i=128,o=-128,a=Math.pow(2,31);var s=function e(t,r){var n,i=0,o=0,a=r=r||0,s=t.length;do{if(a>=s)throw e.bytes=0,new RangeError("Could not decode varint");n=t[a++],i+=o<28?(n&u)<=c);return e.bytes=a-r,i},c=128,u=127;var l=Math.pow(2,7),d=Math.pow(2,14),f=Math.pow(2,21),h=Math.pow(2,28),p=Math.pow(2,35),g=Math.pow(2,42),m=Math.pow(2,49),y=Math.pow(2,56),b=Math.pow(2,63);const v={encode:n,decode:s,encodingLength:function(e){return e[v.decode(e,t),v.decode.bytes],A=(e,t,r=0)=>(v.encode(e,t,r),t),C=e=>v.encodingLength(e)},815604:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AEADEncryptedDataPacket:()=>Gs,CleartextMessage:()=>Zc,CompressedDataPacket:()=>Os,LiteralDataPacket:()=>Ss,MarkerPacket:()=>Xs,Message:()=>Gc,OnePassSignaturePacket:()=>Ms,PacketList:()=>js,PrivateKey:()=>Oc,PublicKey:()=>Dc,PublicKeyEncryptedSessionKeyPacket:()=>qs,PublicKeyPacket:()=>Ys,PublicSubkeyPacket:()=>ec,SecretKeyPacket:()=>rc,SecretSubkeyPacket:()=>ac,Signature:()=>uc,SignaturePacket:()=>_s,Subkey:()=>_c,SymEncryptedIntegrityProtectedDataPacket:()=>Vs,SymEncryptedSessionKeyPacket:()=>Js,SymmetricallyEncryptedDataPacket:()=>$s,TrustPacket:()=>sc,UnparseablePacket:()=>gi,UserAttributePacket:()=>tc,UserIDPacket:()=>oc,armor:()=>ge,config:()=>ae,createCleartextMessage:()=>Xc,createMessage:()=>Jc,decrypt:()=>au,decryptKey:()=>nu,decryptSessionKeys:()=>du,encrypt:()=>ou,encryptKey:()=>iu,encryptSessionKey:()=>lu,enums:()=>Y,generateKey:()=>eu,generateSessionKey:()=>uu,readCleartextMessage:()=>$c,readKey:()=>Lc,readKeys:()=>Uc,readMessage:()=>Wc,readPrivateKey:()=>Fc,readPrivateKeys:()=>zc,readSignature:()=>lc,reformatKey:()=>tu,revokeKey:()=>ru,sign:()=>su,unarmor:()=>pe,verify:()=>cu});const n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=Symbol("doneWritingPromise"),o=Symbol("doneWritingResolve"),a=Symbol("doneWritingReject"),s=Symbol("readingIndex");class c extends Array{constructor(){super(),this[i]=new Promise(((e,t)=>{this[o]=e,this[a]=t})),this[i].catch((()=>{}))}}function u(e){return e&&e.getReader&&Array.isArray(e)}function l(e){if(!u(e)){const t=e.getWriter(),r=t.releaseLock;return t.releaseLock=()=>{t.closed.catch((function(){})),r.call(t)},t}this.stream=e}c.prototype.getReader=function(){return void 0===this[s]&&(this[s]=0),{read:async()=>(await this[i],this[s]===this.length?{value:void 0,done:!0}:{value:this[this[s]++],done:!1})}},c.prototype.readToEnd=async function(e){await this[i];const t=e(this.slice(this[s]));return this.length=0,t},c.prototype.clone=function(){const e=new c;return e[i]=this[i].then((()=>{e.push(...this)})),e},l.prototype.write=async function(e){this.stream.push(e)},l.prototype.close=async function(){this.stream[o]()},l.prototype.abort=async function(e){return this.stream[a](e),e},l.prototype.releaseLock=function(){};const d="object"==typeof n.process&&"object"==typeof n.process.versions,f=d&&void 0;function h(e){return u(e)?"array":n.ReadableStream&&n.ReadableStream.prototype.isPrototypeOf(e)?"web":S&&S.prototype.isPrototypeOf(e)?"ponyfill":f&&f.prototype.isPrototypeOf(e)?"node":!(!e||!e.getReader)&&"web-like"}function p(e){return Uint8Array.prototype.isPrototypeOf(e)}function g(e){if(1===e.length)return e[0];let t=0;for(let i=0;i{t||(m.isBuffer(n)&&(n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength)),r.enqueue(n),e.pause())})),e.on("end",(()=>{t||r.close()})),e.on("error",(e=>r.error(e)))},pull(){e.resume()},cancel(r){t=!0,e.destroy(r)}})};class e extends y{constructor(e,t){super(t),this._reader=D(e)}async _read(e){try{for(;;){const{done:e,value:t}=await this._reader.read();if(e){this.push(null);break}if(!this.push(t))break}}catch(e){this.destroy(e)}}async _destroy(e,t){this._reader.cancel(e).then(t,t)}}v=function(t,r){return new e(t,r)}}const w=new WeakSet,A=Symbol("externalBuffer");function C(e){if(this.stream=e,e[A]&&(this[A]=e[A].slice()),u(e)){const t=e.getReader();return this._read=t.read.bind(t),this._releaseLock=()=>{},void(this._cancel=async()=>{})}let t=h(e);if("node"===t&&(e=b(e)),t){const t=e.getReader();return this._read=t.read.bind(t),this._releaseLock=()=>{t.closed.catch((function(){})),t.releaseLock()},void(this._cancel=t.cancel.bind(t))}let r=!1;this._read=async()=>r||w.has(e)?{value:void 0,done:!0}:(r=!0,{value:e,done:!1}),this._releaseLock=()=>{if(r)try{w.add(e)}catch(e){}}}C.prototype.read=async function(){return this[A]&&this[A].length?{done:!1,value:this[A].shift()}:this._read()},C.prototype.releaseLock=function(){this[A]&&(this.stream[A]=this[A]),this._releaseLock()},C.prototype.cancel=function(e){return this._cancel(e)},C.prototype.readLine=async function(){let e,t=[];for(;!e;){let{done:r,value:n}=await this.read();if(n+="",r)return t.length?j(t):void 0;const i=n.indexOf("\n")+1;i&&(e=j(t.concat(n.substr(0,i))),t=[]),i!==n.length&&t.push(n.substr(i))}return this.unshift(...t),e},C.prototype.readByte=async function(){const{done:e,value:t}=await this.read();if(e)return;const r=t[0];return this.unshift(K(t,1)),r},C.prototype.readBytes=async function(e){const t=[];let r=0;for(;;){const{done:n,value:i}=await this.read();if(n)return t.length?j(t):void 0;if(t.push(i),r+=i.length,r>=e){const r=j(t);return this.unshift(K(r,e)),K(r,0,e)}}},C.prototype.peekBytes=async function(e){const t=await this.readBytes(e);return this.unshift(t),t},C.prototype.unshift=function(...e){this[A]||(this[A]=[]),1===e.length&&p(e[0])&&this[A].length&&e[0].length&&this[A][0].byteOffset>=e[0].length?this[A][0]=new Uint8Array(this[A][0].buffer,this[A][0].byteOffset-e[0].length,this[A][0].byteLength+e[0].length):this[A].unshift(...e.filter((e=>e&&e.length)))},C.prototype.readToEnd=async function(e=j){const t=[];for(;;){const{done:e,value:r}=await this.read();if(e)break;t.push(r)}return e(t)};let E,x,{ReadableStream:S,WritableStream:I,TransformStream:k}=n;async function _(){if(k)return;const[e,t]=await Promise.all([Promise.resolve().then((function(){return eh})),Promise.resolve().then((function(){return Ah}))]);({ReadableStream:S,WritableStream:I,TransformStream:k}=e);const{createReadableStreamWrapper:r}=t;n.ReadableStream&&S!==n.ReadableStream&&(E=r(S),x=r(n.ReadableStream))}const T=d&&void 0;function M(e){let t=h(e);return"node"===t?b(e):"web"===t&&E?E(e):t?e:new S({start(t){t.enqueue(e),t.close()}})}function P(e){if(h(e))return e;const t=new c;return(async()=>{const r=O(t);await r.write(e),await r.close()})(),t}function j(e){return e.some((e=>h(e)&&!u(e)))?function(e){e=e.map(M);const t=R((async function(e){await Promise.all(n.map((t=>q(t,e))))}));let r=Promise.resolve();const n=e.map(((n,i)=>F(n,((n,o)=>(r=r.then((()=>B(n,t.writable,{preventClose:i!==e.length-1}))),r)))));return t.readable}(e):e.some((e=>u(e)))?function(e){const t=new c;let r=Promise.resolve();return e.forEach(((n,i)=>(r=r.then((()=>B(n,t,{preventClose:i!==e.length-1}))),r))),t}(e):"string"==typeof e[0]?e.join(""):T&&T.isBuffer(e[0])?T.concat(e):g(e)}function D(e){return new C(e)}function O(e){return new l(e)}async function B(e,t,{preventClose:r=!1,preventAbort:n=!1,preventCancel:i=!1}={}){if(h(e)&&!u(e)){e=M(e);try{if(e[A]){const r=O(t);for(let t=0;t{t=e,r=n})),t=null,r=null)},close:n.close.bind(n),abort:n.error.bind(n)})}}function L(e,t=()=>{},r=()=>{}){if(u(e)){const n=new c;return(async()=>{const i=O(n);try{const n=await G(e),o=t(n),a=r();let s;s=void 0!==o&&void 0!==a?j([o,a]):void 0!==o?o:a,await i.write(s),await i.close()}catch(e){await i.abort(e)}})(),n}if(h(e))return N(e,{async transform(e,r){try{const n=await t(e);void 0!==n&&r.enqueue(n)}catch(e){r.error(e)}},async flush(e){try{const t=await r();void 0!==t&&e.enqueue(t)}catch(t){e.error(t)}}});const n=t(e),i=r();return void 0!==n&&void 0!==i?j([n,i]):void 0!==n?n:i}function F(e,t){if(h(e)&&!u(e)){let r;const n=new k({start(e){r=e}}),i=B(e,n.writable),o=R((async function(e){r.error(e),await i,await new Promise(setTimeout)}));return t(n.readable,o.writable),o.readable}e=P(e);const r=new c;return t(e,r),r}function U(e,t){let r;const n=F(e,((e,i)=>{const o=D(e);o.remainder=()=>(o.releaseLock(),B(e,i),n),r=t(o)}));return r}function z(e){if(u(e))return e.clone();if(h(e)){const t=function(e){if(u(e))throw Error("ArrayStream cannot be tee()d, use clone() instead");if(h(e)){const t=M(e).tee();return t[0][A]=t[1][A]=e[A],t}return[K(e),K(e)]}(e);return V(e,t[0]),t[1]}return K(e)}function H(e){return u(e)?z(e):h(e)?new S({start(t){const r=F(e,(async(e,r)=>{const n=D(e),i=O(r);try{for(;;){await i.ready;const{done:r,value:o}=await n.read();if(r){try{t.close()}catch(e){}return void await i.close()}try{t.enqueue(o)}catch(e){}await i.write(o)}}catch(e){t.error(e),await i.abort(e)}}));V(e,r)}}):K(e)}function V(e,t){Object.entries(Object.getOwnPropertyDescriptors(e.constructor.prototype)).forEach((([r,n])=>{"constructor"!==r&&(n.value?n.value=n.value.bind(t):n.get=n.get.bind(t),Object.defineProperty(e,r,n))}))}function K(e,t=0,r=1/0){if(u(e))throw Error("Not implemented");if(h(e)){if(t>=0&&r>=0){let n=0;return N(e,{transform(e,i){n=t&&i.enqueue(K(e,Math.max(t-n,0),r-n)),n+=e.length):i.terminate()}})}if(t<0&&(r<0||r===1/0)){let n=[];return L(e,(e=>{e.length>=-t?n=[e]:n.push(e)}),(()=>K(j(n),t,r)))}if(0===t&&r<0){let n;return L(e,(e=>{const i=n?j([n,e]):e;if(i.length>=-r)return n=K(i,r),K(i,t,r);n=i}))}return console.warn(`stream.slice(input, ${t}, ${r}) not implemented efficiently.`),Q((async()=>K(await G(e),t,r)))}return e[A]&&(e=j(e[A].concat([e]))),!p(e)||T&&T.isBuffer(e)?e.slice(t,r):(r===1/0&&(r=e.length),e.subarray(t,r))}async function G(e,t=j){return u(e)?e.readToEnd(t):h(e)?D(e).readToEnd(t):e}async function q(e,t){if(h(e)){if(e.cancel)return e.cancel(t);if(e.destroy)return e.destroy(t),await new Promise(setTimeout),t}}function Q(e){const t=new c;return(async()=>{const r=O(t);try{await r.write(await e()),await r.close()}catch(e){await r.abort(e)}})(),t}class W{constructor(e){if(void 0===e)throw Error("Invalid BigInteger input");if(e instanceof Uint8Array){const t=e,r=Array(t.length);for(let e=0;eBigInt(0);){const e=r&BigInt(1);r>>=BigInt(1);const o=i*n%t.value;i=e?o:i,n=n*n%t.value}return new W(i)}modInv(e){const{gcd:t,x:r}=this._egcd(e);if(!t.isOne())throw Error("Inverse does not exist");return r.add(e).mod(e)}_egcd(e){let t=BigInt(0),r=BigInt(1),n=BigInt(1),i=BigInt(0),o=this.value;for(e=e.value;e!==BigInt(0);){const a=o/e;let s=t;t=n-a*t,n=s,s=r,r=i-a*r,i=s,s=e,e=o%e,o=s}return{x:new W(n),y:new W(i),gcd:new W(o)}}gcd(e){let t=this.value;for(e=e.value;e!==BigInt(0);){const r=e;e=t%e,t=r}return new W(t)}ileftShift(e){return this.value<<=e.value,this}leftShift(e){return this.clone().ileftShift(e)}irightShift(e){return this.value>>=e.value,this}rightShift(e){return this.clone().irightShift(e)}equal(e){return this.value===e.value}lt(e){return this.valuee.value}gte(e){return this.value>=e.value}isZero(){return this.value===BigInt(0)}isOne(){return this.value===BigInt(1)}isNegative(){return this.valueNumber.MAX_SAFE_INTEGER)throw Error("Number can only safely store up to 53 bits");return e}getBit(e){return(this.value>>BigInt(e)&BigInt(1))===BigInt(0)?0:1}bitLength(){const e=new W(0),t=new W(1),r=new W(-1),n=this.isNegative()?r:e;let i=1;const o=this.clone();for(;!o.irightShift(t).equal(n);)i++;return i}byteLength(){const e=new W(0),t=new W(-1),r=this.isNegative()?t:e,n=new W(8);let i=1;const o=this.clone();for(;!o.irightShift(n).equal(r);)i++;return i}toUint8Array(e="be",t){let r=this.value.toString(16);r.length%2==1&&(r="0"+r);const n=r.length/2,i=new Uint8Array(t||n),o=t?t-n:0;let a=0;for(;a{e[J][r]=t}))),void 0!==e[J][t])return e[J][t];throw Error("Invalid enum value.")}};const Z=(()=>{try{return!1}catch(n){}return!1})(),$={isString:function(e){return"string"==typeof e||e instanceof String},isArray:function(e){return e instanceof Array},isUint8Array:p,isStream:h,readNumber:function(e){let t=0;for(let r=0;r>8*(t-n-1)&255;return r},readDate:function(e){const t=$.readNumber(e);return new Date(1e3*t)},writeDate:function(e){const t=Math.floor(e.getTime()/1e3);return $.writeNumber(t,4)},normalizeDate:function(e=Date.now()){return null===e||e===1/0?e:new Date(1e3*Math.floor(+e/1e3))},readMPI:function(e){const t=7+(e[0]<<8|e[1])>>>3;return e.subarray(2,2+t)},leftPad(e,t){const r=new Uint8Array(t),n=t-e.length;return r.set(e,n),r},uint8ArrayToMPI:function(e){const t=$.uint8ArrayBitLength(e);if(0===t)throw Error("Zero MPI");const r=e.subarray(e.length-Math.ceil(t/8)),n=new Uint8Array([(65280&t)>>8,255&t]);return $.concatUint8Array([n,r])},uint8ArrayBitLength:function(e){let t;for(t=0;t>1);for(let r=0;r>1;r++)t[r]=parseInt(e.substr(r<<1,2),16);return t},uint8ArrayToHex:function(e){const t=[],r=e.length;let n,i=0;for(;i{if(!$.isString(e))throw Error("stringToUint8Array: Data must be in the form of a string");const t=new Uint8Array(e.length);for(let r=0;rr("",!0)))},decodeUTF8:function(e){const t=new TextDecoder("utf-8");function r(e,r=!1){return t.decode(e,{stream:!r})}return L(e,r,(()=>r(new Uint8Array,!0)))},concat:j,concatUint8Array:g,equalsUint8Array:function(e,t){if(!$.isUint8Array(e)||!$.isUint8Array(t))throw Error("Data must be in the form of a Uint8Array");if(e.length!==t.length)return!1;for(let r=0;r>>16;return 0!==r&&(e=r,t+=16),r=e>>8,0!==r&&(e=r,t+=8),r=e>>4,0!==r&&(e=r,t+=4),r=e>>2,0!==r&&(e=r,t+=2),r=e>>1,0!==r&&(e=r,t+=1),t},double:function(e){const t=new Uint8Array(e.length),r=e.length-1;for(let n=0;n>7;return t[r]=e[r]<<1^135*(e[0]>>7),t},shiftRight:function(e,t){if(t)for(let r=e.length-1;r>=0;r--)e[r]>>=t,r>0&&(e[r]|=e[r-1]<<8-t);return e},getWebCrypto:function(){return void 0!==n&&n.crypto&&n.crypto.subtle},getBigInteger:async function(){if("undefined"!=typeof BigInt)return W;{const{default:e}=await Promise.resolve().then((function(){return Ih}));return e}},getNodeCrypto:function(){},getNodeZlib:function(){},getNodeBuffer:function(){return{}.Buffer},getHardwareConcurrency:function(){return"undefined"!=typeof navigator?navigator.hardwareConcurrency||1:(void 0).cpus().length},isEmailAddress:function(e){return!!$.isString(e)&&/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+([a-zA-Z]{2,}[0-9]*|xn--[a-zA-Z\-0-9]+)))$/.test(e)},canonicalizeEOL:function(e){let t=!1;return L(e,(e=>{let r;t&&(e=$.concatUint8Array([new Uint8Array([13]),e])),13===e[e.length-1]?(t=!0,e=e.subarray(0,-1)):t=!1;const n=[];for(let t=0;r=e.indexOf(10,t)+1,r;t=r)13!==e[r-2]&&n.push(r);if(!n.length)return e;const i=new Uint8Array(e.length+n.length);let o=0;for(let t=0;tt?new Uint8Array([13]):void 0))},nativeEOL:function(e){let t=!1;return L(e,(e=>{let r;13===(e=t&&10!==e[0]?$.concatUint8Array([new Uint8Array([13]),e]):new Uint8Array(e))[e.length-1]?(t=!0,e=e.subarray(0,-1)):t=!1;let n=0;for(let t=0;t!==e.length;t=r){r=e.indexOf(13,t)+1,r||(r=e.length);const i=r-(10===e[r]?1:0);t&&e.copyWithin(n,t,i),n+=i-t}return e.subarray(0,n)}),(()=>t?new Uint8Array([13]):void 0))},removeTrailingSpaces:function(e){return e.split("\n").map((e=>{let t=e.length-1;for(;t>=0&&(" "===e[t]||"\t"===e[t]||"\r"===e[t]);t--);return e.substr(0,t+1)})).join("\n")},wrapError:function(e,t){if(!t)return Error(e);try{t.message=e+": "+t.message}catch(e){}return t},constructAllowedPackets:function(e){const t={};return e.forEach((e=>{if(!e.tag)throw Error("Invalid input: expected a packet class");t[e.tag]=e})),t},anyPromise:function(e){return new Promise((async(t,r)=>{let n;await Promise.all(e.map((async e=>{try{t(await e)}catch(e){n=e}}))),r(n)}))},selectUint8Array:function(e,t,r){const n=Math.max(t.length,r.length),i=new Uint8Array(n);let o=0;for(let a=0;a{t=$.concatUint8Array([t,e]);const r=[],n=Math.floor(t.length/45),i=45*n,o=ee(t.subarray(0,i));for(let t=0;tt.length?ee(t)+"\n":""))}function ne(e){let t="";return L(e,(e=>{t+=e;let r=0;const n=[" ","\t","\r","\n"];for(let a=0;a0&&(i-r)%4!=0;i--)n.includes(t[i])&&r--;const o=te(t.substr(0,i));return t=t.substr(i),o}),(()=>te(t)))}function ie(e){return ne(e.replace(/-/g,"+").replace(/_/g,"/"))}function oe(e,t){let r=re(e).replace(/[\r\n]/g,"");return t&&(r=r.replace(/[+]/g,"-").replace(/[/]/g,"_").replace(/[=]/g,"")),r}X?(ee=e=>X.from(e).toString("base64"),te=e=>{const t=X.from(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}):(ee=e=>btoa($.uint8ArrayToString(e)),te=e=>$.stringToUint8Array(atob(e)));var ae={preferredHashAlgorithm:Y.hash.sha256,preferredSymmetricAlgorithm:Y.symmetric.aes256,preferredCompressionAlgorithm:Y.compression.uncompressed,deflateLevel:6,aeadProtect:!1,preferredAEADAlgorithm:Y.aead.eax,aeadChunkSizeByte:12,v5Keys:!1,s2kIterationCountByte:224,allowUnauthenticatedMessages:!1,allowUnauthenticatedStream:!1,checksumRequired:!1,minRSABits:2047,passwordCollisionCheck:!1,revocationsExpire:!1,allowInsecureDecryptionWithSigningKeys:!1,allowInsecureVerificationWithReformattedKeys:!1,constantTimePKCS1Decryption:!1,constantTimePKCS1DecryptionSupportedSymmetricAlgorithms:new Set([Y.symmetric.aes128,Y.symmetric.aes192,Y.symmetric.aes256]),minBytesForWebCrypto:1e3,ignoreUnsupportedPackets:!0,ignoreMalformedPackets:!1,additionalAllowedPackets:[],showVersion:!1,showComment:!1,versionString:"OpenPGP.js 5.11.2",commentString:"https://openpgpjs.org",maxUserIDLength:5120,knownNotations:[],useIndutnyElliptic:!0,rejectHashAlgorithms:new Set([Y.hash.md5,Y.hash.ripemd]),rejectMessageHashAlgorithms:new Set([Y.hash.md5,Y.hash.ripemd,Y.hash.sha1]),rejectPublicKeyAlgorithms:new Set([Y.publicKey.elgamal,Y.publicKey.dsa]),rejectCurves:new Set([Y.curve.secp256k1])};function se(e){const t=e.match(/^-----BEGIN PGP (MESSAGE, PART \d+\/\d+|MESSAGE, PART \d+|SIGNED MESSAGE|MESSAGE|PUBLIC KEY BLOCK|PRIVATE KEY BLOCK|SIGNATURE)-----$/m);if(!t)throw Error("Unknown ASCII armor type");return/MESSAGE, PART \d+\/\d+/.test(t[1])?Y.armor.multipartSection:/MESSAGE, PART \d+/.test(t[1])?Y.armor.multipartLast:/SIGNED MESSAGE/.test(t[1])?Y.armor.signed:/MESSAGE/.test(t[1])?Y.armor.message:/PUBLIC KEY BLOCK/.test(t[1])?Y.armor.publicKey:/PRIVATE KEY BLOCK/.test(t[1])?Y.armor.privateKey:/SIGNATURE/.test(t[1])?Y.armor.signature:void 0}function ce(e,t){let r="";return t.showVersion&&(r+="Version: "+t.versionString+"\n"),t.showComment&&(r+="Comment: "+t.commentString+"\n"),e&&(r+="Comment: "+e+"\n"),r+="\n",r}function ue(e){return re(function(e){let t=13501623;return L(e,(e=>{const r=de?Math.floor(e.length/4):0,n=new Uint32Array(e.buffer,e.byteOffset,r);for(let i=0;i>24&255]^le[1][t>>16&255]^le[2][t>>8&255]^le[3][255&t];for(let i=4*r;i>8^le[0][255&t^e[i]]}),(()=>new Uint8Array([t,t>>8,t>>16])))}(e))}const le=[Array(255),Array(255),Array(255),Array(255)];for(let Vp=0;Vp<=255;Vp++){let e=Vp<<16;for(let t=0;t<8;t++)e=e<<1^(8388608&e?8801531:0);le[0][Vp]=(16711680&e)>>16|65280&e|(255&e)<<16}for(let Vp=0;Vp<=255;Vp++)le[1][Vp]=le[0][Vp]>>8^le[0][255&le[0][Vp]];for(let Vp=0;Vp<=255;Vp++)le[2][Vp]=le[1][Vp]>>8^le[0][255&le[1][Vp]];for(let Vp=0;Vp<=255;Vp++)le[3][Vp]=le[2][Vp]>>8^le[0][255&le[2][Vp]];const de=function(){const e=new ArrayBuffer(2);return new DataView(e).setInt16(0,255,!0),255===new Int16Array(e)[0]}();function fe(e){for(let t=0;t=0&&n!==e.length-1&&(t=e.slice(0,n),r=e.slice(n+1).substr(0,4)),{body:t,checksum:r}}function pe(e,t=ae){return new Promise((async(r,n)=>{try{const i=/^-----[^-]+-----$/m,o=/^[ \f\r\t\u00a0\u2000-\u200a\u202f\u205f\u3000]*$/;let a;const s=[];let c,u,l,d=s,f=[],h=ne(F(e,(async(e,t)=>{const p=D(e);try{for(;;){let e=await p.readLine();if(void 0===e)throw Error("Misformed armored text");if(e=$.removeTrailingSpaces(e.replace(/[\r\n]/g,"")),a)if(c)u||2!==a||(i.test(e)?(f=f.join("\r\n"),u=!0,fe(d),d=[],c=!1):f.push(e.replace(/^- /,"")));else if(i.test(e)&&n(Error("Mandatory blank line missing between armor headers and armor data")),o.test(e)){if(fe(d),c=!0,u||2!==a){r({text:f,data:h,headers:s,type:a});break}}else d.push(e);else i.test(e)&&(a=se(e))}}catch(e){return void n(e)}const g=O(t);try{for(;;){await g.ready;const{done:e,value:t}=await p.read();if(e)throw Error("Misformed armored text");const r=t+"";if(-1!==r.indexOf("=")||-1!==r.indexOf("-")){let e=await p.readToEnd();e.length||(e=""),e=r+e,e=$.removeTrailingSpaces(e.replace(/\r/g,""));const t=e.split(i);if(1===t.length)throw Error("Misformed armored text");const n=he(t[0].slice(0,-1));l=n.checksum,await g.write(n.body);break}await g.write(r)}await g.ready,await g.close()}catch(e){await g.abort(e)}})));h=F(h,(async(e,r)=>{const n=G(ue(H(e)));n.catch((()=>{})),await B(e,r,{preventClose:!0});const i=O(r);try{const e=(await n).replace("\n","");if(l!==e&&(l||t.checksumRequired))throw Error("Ascii armor integrity check failed");await i.ready,await i.close()}catch(e){await i.abort(e)}}))}catch(e){n(e)}})).then((async e=>(u(e.data)&&(e.data=await G(e.data)),e)))}function ge(e,t,r,n,i,o=ae){let a,s;e===Y.armor.signed&&(a=t.text,s=t.hash,t=t.data);const c=H(t),u=[];switch(e){case Y.armor.multipartSection:u.push("-----BEGIN PGP MESSAGE, PART "+r+"/"+n+"-----\n"),u.push(ce(i,o)),u.push(re(t)),u.push("=",ue(c)),u.push("-----END PGP MESSAGE, PART "+r+"/"+n+"-----\n");break;case Y.armor.multipartLast:u.push("-----BEGIN PGP MESSAGE, PART "+r+"-----\n"),u.push(ce(i,o)),u.push(re(t)),u.push("=",ue(c)),u.push("-----END PGP MESSAGE, PART "+r+"-----\n");break;case Y.armor.signed:u.push("-----BEGIN PGP SIGNED MESSAGE-----\n"),u.push("Hash: "+s+"\n\n"),u.push(a.replace(/^-/gm,"- -")),u.push("\n-----BEGIN PGP SIGNATURE-----\n"),u.push(ce(i,o)),u.push(re(t)),u.push("=",ue(c)),u.push("-----END PGP SIGNATURE-----\n");break;case Y.armor.message:u.push("-----BEGIN PGP MESSAGE-----\n"),u.push(ce(i,o)),u.push(re(t)),u.push("=",ue(c)),u.push("-----END PGP MESSAGE-----\n");break;case Y.armor.publicKey:u.push("-----BEGIN PGP PUBLIC KEY BLOCK-----\n"),u.push(ce(i,o)),u.push(re(t)),u.push("=",ue(c)),u.push("-----END PGP PUBLIC KEY BLOCK-----\n");break;case Y.armor.privateKey:u.push("-----BEGIN PGP PRIVATE KEY BLOCK-----\n"),u.push(ce(i,o)),u.push(re(t)),u.push("=",ue(c)),u.push("-----END PGP PRIVATE KEY BLOCK-----\n");break;case Y.armor.signature:u.push("-----BEGIN PGP SIGNATURE-----\n"),u.push(ce(i,o)),u.push(re(t)),u.push("=",ue(c)),u.push("-----END PGP SIGNATURE-----\n")}return $.concat(u)}class me{constructor(){this.bytes=""}read(e){return this.bytes=$.uint8ArrayToString(e.subarray(0,8)),this.bytes.length}write(){return $.stringToUint8Array(this.bytes)}toHex(){return $.uint8ArrayToHex($.stringToUint8Array(this.bytes))}equals(e,t=!1){return t&&(e.isWildcard()||this.isWildcard())||this.bytes===e.bytes}isNull(){return""===this.bytes}isWildcard(){return/^0+$/.test(this.toHex())}static mapToHex(e){return e.toHex()}static fromID(e){const t=new me;return t.read($.hexToUint8Array(e)),t}static wildcard(){const e=new me;return e.read(new Uint8Array(8)),e}}var ye=function(){var e,t,r=!1;function n(r,n){var i=e[(t[r]+t[n])%255];return 0!==r&&0!==n||(i=0),i}var i,o,a,s,c=!1;function u(){function u(r){var n,i,o;for(i=o=function(r){var n=e[255-t[r]];return 0===r&&(n=0),n}(r),n=0;n<4;n++)o^=i=255&(i<<1|i>>>7);return 99^o}r||function(){e=[],t=[];var n,i,o=1;for(n=0;n<255;n++)e[n]=o,i=128&o,o<<=1,o&=255,128===i&&(o^=27),o^=e[n],t[e[n]]=n;e[255]=e[0],t[0]=0,r=!0}(),i=[],o=[],a=[[],[],[],[]],s=[[],[],[],[]];for(var l=0;l<256;l++){var d=u(l);i[l]=d,o[d]=l,a[0][l]=n(2,d)<<24|d<<16|d<<8|n(3,d),s[0][d]=n(14,l)<<24|n(9,l)<<16|n(13,l)<<8|n(11,l);for(var f=1;f<4;f++)a[f][l]=a[f-1][l]>>>8|a[f-1][l]<<24,s[f][d]=s[f-1][d]>>>8|s[f-1][d]<<24}c=!0}var l=function(e,t){c||u();var r=new Uint32Array(t);r.set(i,512),r.set(o,768);for(var n=0;n<4;n++)r.set(a[n],4096+1024*n>>2),r.set(s[n],8192+1024*n>>2);var l=function(e,t,r){"use asm";var n=0,i=0,o=0,a=0,s=0,c=0,u=0,l=0,d=0,f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,A=0,C=0,E=0;var x=new e.Uint32Array(r),S=new e.Uint8Array(r);function I(e,t,r,s,c,u,l,d){e=e|0;t=t|0;r=r|0;s=s|0;c=c|0;u=u|0;l=l|0;d=d|0;var f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0;f=r|0x400,h=r|0x800,p=r|0xc00;c=c^x[(e|0)>>2],u=u^x[(e|4)>>2],l=l^x[(e|8)>>2],d=d^x[(e|12)>>2];for(v=16;(v|0)<=s<<4;v=v+16|0){g=x[(r|c>>22&1020)>>2]^x[(f|u>>14&1020)>>2]^x[(h|l>>6&1020)>>2]^x[(p|d<<2&1020)>>2]^x[(e|v|0)>>2],m=x[(r|u>>22&1020)>>2]^x[(f|l>>14&1020)>>2]^x[(h|d>>6&1020)>>2]^x[(p|c<<2&1020)>>2]^x[(e|v|4)>>2],y=x[(r|l>>22&1020)>>2]^x[(f|d>>14&1020)>>2]^x[(h|c>>6&1020)>>2]^x[(p|u<<2&1020)>>2]^x[(e|v|8)>>2],b=x[(r|d>>22&1020)>>2]^x[(f|c>>14&1020)>>2]^x[(h|u>>6&1020)>>2]^x[(p|l<<2&1020)>>2]^x[(e|v|12)>>2];c=g,u=m,l=y,d=b}n=x[(t|c>>22&1020)>>2]<<24^x[(t|u>>14&1020)>>2]<<16^x[(t|l>>6&1020)>>2]<<8^x[(t|d<<2&1020)>>2]^x[(e|v|0)>>2],i=x[(t|u>>22&1020)>>2]<<24^x[(t|l>>14&1020)>>2]<<16^x[(t|d>>6&1020)>>2]<<8^x[(t|c<<2&1020)>>2]^x[(e|v|4)>>2],o=x[(t|l>>22&1020)>>2]<<24^x[(t|d>>14&1020)>>2]<<16^x[(t|c>>6&1020)>>2]<<8^x[(t|u<<2&1020)>>2]^x[(e|v|8)>>2],a=x[(t|d>>22&1020)>>2]<<24^x[(t|c>>14&1020)>>2]<<16^x[(t|u>>6&1020)>>2]<<8^x[(t|l<<2&1020)>>2]^x[(e|v|12)>>2]}function k(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;I(0x0000,0x0800,0x1000,E,e,t,r,n)}function _(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var o=0;I(0x0400,0x0c00,0x2000,E,e,n,r,t);o=i,i=a,a=o}function T(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;I(0x0000,0x0800,0x1000,E,s^e,c^t,u^r,l^d);s=n,c=i,u=o,l=a}function M(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;var f=0;I(0x0400,0x0c00,0x2000,E,e,d,r,t);f=i,i=a,a=f;n=n^s,i=i^c,o=o^u,a=a^l;s=e,c=t,u=r,l=d}function P(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;I(0x0000,0x0800,0x1000,E,s,c,u,l);s=n=n^e,c=i=i^t,u=o=o^r,l=a=a^d}function j(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;I(0x0000,0x0800,0x1000,E,s,c,u,l);n=n^e,i=i^t,o=o^r,a=a^d;s=e,c=t,u=r,l=d}function D(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;I(0x0000,0x0800,0x1000,E,s,c,u,l);s=n,c=i,u=o,l=a;n=n^e,i=i^t,o=o^r,a=a^d}function O(e,t,r,s){e=e|0;t=t|0;r=r|0;s=s|0;I(0x0000,0x0800,0x1000,E,d,f,h,p);p=~b&p|b&p+1;h=~y&h|y&h+((p|0)==0);f=~m&f|m&f+((h|0)==0);d=~g&d|g&d+((f|0)==0);n=n^e;i=i^t;o=o^r;a=a^s}function B(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,a=0,d=0,f=0,h=0,p=0,g=0,m=0,y=0;e=e^s,t=t^c,r=r^u,n=n^l;i=v|0,o=w|0,a=A|0,d=C|0;for(;(m|0)<128;m=m+1|0){if(i>>>31){f=f^e,h=h^t,p=p^r,g=g^n}i=i<<1|o>>>31,o=o<<1|a>>>31,a=a<<1|d>>>31,d=d<<1;y=n&1;n=n>>>1|r<<31,r=r>>>1|t<<31,t=t>>>1|e<<31,e=e>>>1;if(y)e=e^0xe1000000}s=f,c=h,u=p,l=g}function N(e){e=e|0;E=e}function R(e,t,r,s){e=e|0;t=t|0;r=r|0;s=s|0;n=e,i=t,o=r,a=s}function L(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;s=e,c=t,u=r,l=n}function F(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;d=e,f=t,h=r,p=n}function U(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;g=e,m=t,y=r,b=n}function z(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;p=~b&p|b&n,h=~y&h|y&r,f=~m&f|m&t,d=~g&d|g&e}function H(e){e=e|0;if(e&15)return-1;S[e|0]=n>>>24,S[e|1]=n>>>16&255,S[e|2]=n>>>8&255,S[e|3]=n&255,S[e|4]=i>>>24,S[e|5]=i>>>16&255,S[e|6]=i>>>8&255,S[e|7]=i&255,S[e|8]=o>>>24,S[e|9]=o>>>16&255,S[e|10]=o>>>8&255,S[e|11]=o&255,S[e|12]=a>>>24,S[e|13]=a>>>16&255,S[e|14]=a>>>8&255,S[e|15]=a&255;return 16}function V(e){e=e|0;if(e&15)return-1;S[e|0]=s>>>24,S[e|1]=s>>>16&255,S[e|2]=s>>>8&255,S[e|3]=s&255,S[e|4]=c>>>24,S[e|5]=c>>>16&255,S[e|6]=c>>>8&255,S[e|7]=c&255,S[e|8]=u>>>24,S[e|9]=u>>>16&255,S[e|10]=u>>>8&255,S[e|11]=u&255,S[e|12]=l>>>24,S[e|13]=l>>>16&255,S[e|14]=l>>>8&255,S[e|15]=l&255;return 16}function K(){k(0,0,0,0);v=n,w=i,A=o,C=a}function G(e,t,r){e=e|0;t=t|0;r=r|0;var s=0;if(t&15)return-1;while((r|0)>=16){Q[e&7](S[t|0]<<24|S[t|1]<<16|S[t|2]<<8|S[t|3],S[t|4]<<24|S[t|5]<<16|S[t|6]<<8|S[t|7],S[t|8]<<24|S[t|9]<<16|S[t|10]<<8|S[t|11],S[t|12]<<24|S[t|13]<<16|S[t|14]<<8|S[t|15]);S[t|0]=n>>>24,S[t|1]=n>>>16&255,S[t|2]=n>>>8&255,S[t|3]=n&255,S[t|4]=i>>>24,S[t|5]=i>>>16&255,S[t|6]=i>>>8&255,S[t|7]=i&255,S[t|8]=o>>>24,S[t|9]=o>>>16&255,S[t|10]=o>>>8&255,S[t|11]=o&255,S[t|12]=a>>>24,S[t|13]=a>>>16&255,S[t|14]=a>>>8&255,S[t|15]=a&255;s=s+16|0,t=t+16|0,r=r-16|0}return s|0}function q(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;if(t&15)return-1;while((r|0)>=16){W[e&1](S[t|0]<<24|S[t|1]<<16|S[t|2]<<8|S[t|3],S[t|4]<<24|S[t|5]<<16|S[t|6]<<8|S[t|7],S[t|8]<<24|S[t|9]<<16|S[t|10]<<8|S[t|11],S[t|12]<<24|S[t|13]<<16|S[t|14]<<8|S[t|15]);n=n+16|0,t=t+16|0,r=r-16|0}return n|0}var Q=[k,_,T,M,P,j,D,O];var W=[T,B];return{set_rounds:N,set_state:R,set_iv:L,set_nonce:F,set_mask:U,set_counter:z,get_state:H,get_iv:V,gcm_init:K,cipher:G,mac:q}}({Uint8Array:Uint8Array,Uint32Array:Uint32Array},e,t);return l.set_key=function(e,t,n,o,a,c,u,d,f){var h=r.subarray(0,60),p=r.subarray(256,316);h.set([t,n,o,a,c,u,d,f]);for(var g=e,m=1;g<4*e+28;g++){var y=h[g-1];(g%e==0||8===e&&g%e==4)&&(y=i[y>>>24]<<24^i[y>>>16&255]<<16^i[y>>>8&255]<<8^i[255&y]),g%e==0&&(y=y<<8^y>>>24^m<<24,m=m<<1^(128&m?27:0)),h[g]=h[g-e]^y}for(var b=0;b=g-4?y:s[0][i[y>>>24]]^s[1][i[y>>>16&255]]^s[2][i[y>>>8&255]]^s[3][i[255&y]];l.set_rounds(e+5)},l};return l.ENC={ECB:0,CBC:2,CFB:4,OFB:6,CTR:7},l.DEC={ECB:1,CBC:3,CFB:5,OFB:6,CTR:7},l.MAC={CBC:0,GCM:1},l.HEAP_DATA=16384,l}();function be(e){return e instanceof Uint8Array}function ve(e,t){const r=e?e.byteLength:t||65536;if(4095&r||r<=0)throw Error("heap size must be a positive integer and a multiple of 4096");return e||new Uint8Array(new ArrayBuffer(r))}function we(e,t,r,n,i){const o=e.length-t,a=oe+t.length),0),r=new Uint8Array(t);let n=0;for(let i=0;i>2,i.getUint32(0),i.getUint32(4),i.getUint32(8),i.getUint32(12),n>16?i.getUint32(16):0,n>16?i.getUint32(20):0,n>24?i.getUint32(24):0,n>24?i.getUint32(28):0),void 0!==t){if(16!==t.length)throw new Ee("illegal iv size");let e=new DataView(t.buffer,t.byteOffset,t.byteLength);r.set_iv(e.getUint32(0),e.getUint32(4),e.getUint32(8),e.getUint32(12))}else r.set_iv(0,0,0,0)}AES_Encrypt_process(e){if(!be(e))throw new TypeError("data isn't of expected type");let{heap:t,asm:r}=this.acquire_asm(),n=ye.ENC[this.mode],i=ye.HEAP_DATA,o=this.pos,a=this.len,s=0,c=e.length||0,u=0,l=0,d=new Uint8Array(a+c&-16);for(;c>0;)l=we(t,o+a,e,s,c),a+=l,s+=l,c-=l,l=r.cipher(n,i+o,a),l&&d.set(t.subarray(o,o+l),u),u+=l,l0;)f=we(t,o+a,e,s,c),a+=f,s+=f,c-=f,f=r.cipher(n,i+o,a-(c?0:d)),f&&h.set(t.subarray(o,o+f),u),u+=f,f0){if(o%16){if(this.hasOwnProperty("padding"))throw new Ee("data length must be a multiple of the block size");o+=16-o%16}if(t.cipher(r,n+i,o),this.hasOwnProperty("padding")&&this.padding){let t=e[i+a-1];if(t<1||t>16||t>a)throw new xe("bad padding");let r=0;for(let n=t;n>1;n--)r|=t^e[i+a-n];if(r)throw new xe("bad padding");a-=t}}const s=new Uint8Array(a);return a>0&&s.set(e.subarray(i,i+a)),this.pos=0,this.len=0,this.release_asm(),s}}class _e{static encrypt(e,t,r=!1){return new _e(t,r).encrypt(e)}static decrypt(e,t,r=!1){return new _e(t,r).decrypt(e)}constructor(e,t=!1,r){this.aes=r||new ke(e,void 0,t,"ECB")}encrypt(e){return Ae(this.aes.AES_Encrypt_process(e),this.aes.AES_Encrypt_finish())}decrypt(e){return Ae(this.aes.AES_Decrypt_process(e),this.aes.AES_Decrypt_finish())}}function Te(e){const t=function(e){const t=new _e(e);this.encrypt=function(e){return t.encrypt(e)},this.decrypt=function(e){return t.decrypt(e)}};return t.blockSize=t.prototype.blockSize=16,t.keySize=t.prototype.keySize=e/8,t}function Me(e,t,r,n,i,o){const a=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],s=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],c=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],u=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],l=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],d=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],f=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],h=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];let p,g,m,y,b,v,w,A,C,E,x,S,I,k,_=0,T=t.length;const M=32===e.length?3:9;A=3===M?r?[0,32,2]:[30,-2,-2]:r?[0,32,2,62,30,-2,64,96,2]:[94,62,-2,32,64,2,30,-2,-2],r&&(t=function(e,t){const r=8-e.length%8;let n;if(2===t&&r<8)n=32;else if(1===t)n=r;else{if(t||!(r<8)){if(8===r)return e;throw Error("des: invalid padding")}n=0}const i=new Uint8Array(e.length+r);for(let o=0;o>>4^w),w^=m,v^=m<<4,m=65535&(v>>>16^w),w^=m,v^=m<<16,m=858993459&(w>>>2^v),v^=m,w^=m<<2,m=16711935&(w>>>8^v),v^=m,w^=m<<8,m=1431655765&(v>>>1^w),w^=m,v^=m<<1,v=v<<1|v>>>31,w=w<<1|w>>>31,g=0;g>>4|w<<28)^e[p+1],m=v,v=w,w=m^(s[y>>>24&63]|u[y>>>16&63]|d[y>>>8&63]|h[63&y]|a[b>>>24&63]|c[b>>>16&63]|l[b>>>8&63]|f[63&b]);m=v,v=w,w=m}v=v>>>1|v<<31,w=w>>>1|w<<31,m=1431655765&(v>>>1^w),w^=m,v^=m<<1,m=16711935&(w>>>8^v),v^=m,w^=m<<8,m=858993459&(w>>>2^v),v^=m,w^=m<<2,m=65535&(v>>>16^w),w^=m,v^=m<<16,m=252645135&(v>>>4^w),w^=m,v^=m<<4,1===n&&(r?(C=v,x=w):(v^=E,w^=S)),P[j++]=v>>>24,P[j++]=v>>>16&255,P[j++]=v>>>8&255,P[j++]=255&v,P[j++]=w>>>24,P[j++]=w>>>16&255,P[j++]=w>>>8&255,P[j++]=255&w}return r||(P=function(e,t){let r,n=null;if(2===t)r=32;else if(1===t)n=e[e.length-1];else{if(t)throw Error("des: invalid padding");r=0}if(!n){for(n=1;e[e.length-n]===r;)n++;n--}return e.subarray(0,e.length-n)}(P,o)),P}function Pe(e){const t=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],r=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],n=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],i=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],o=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],a=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],s=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],u=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],l=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],d=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],f=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],h=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],p=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],g=e.length>8?3:1,m=Array(32*g),y=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0];let b,v,w,A=0,C=0;for(let E=0;E>>4^E),E^=w,g^=w<<4,w=65535&(E>>>-16^g),g^=w,E^=w<<-16,w=858993459&(g>>>2^E),E^=w,g^=w<<2,w=65535&(E>>>-16^g),g^=w,E^=w<<-16,w=1431655765&(g>>>1^E),E^=w,g^=w<<1,w=16711935&(E>>>8^g),g^=w,E^=w<<8,w=1431655765&(g>>>1^E),E^=w,g^=w<<1,w=g<<8|E>>>20&240,g=E<<24|E<<8&16711680|E>>>8&65280|E>>>24&240,E=w;for(let e=0;e<16;e++)y[e]?(g=g<<2|g>>>26,E=E<<2|E>>>26):(g=g<<1|g>>>27,E=E<<1|E>>>27),g&=-15,E&=-15,b=t[g>>>28]|r[g>>>24&15]|n[g>>>20&15]|i[g>>>16&15]|o[g>>>12&15]|a[g>>>8&15]|s[g>>>4&15],v=c[E>>>28]|u[E>>>24&15]|l[E>>>20&15]|d[E>>>16&15]|f[E>>>12&15]|h[E>>>8&15]|p[E>>>4&15],w=65535&(v>>>16^b),m[C++]=b^w,m[C++]=v^w<<16}return m}function je(e){this.key=[];for(let t=0;t<3;t++)this.key.push(new Uint8Array(e.subarray(8*t,8*t+8)));this.encrypt=function(e){return Me(Pe(this.key[2]),Me(Pe(this.key[1]),Me(Pe(this.key[0]),e,!0,0,null,null),!1,0,null,null),!0,0,null,null)}}function De(){this.BlockSize=8,this.KeySize=16,this.setKey=function(e){if(this.masking=Array(16),this.rotate=Array(16),this.reset(),e.length!==this.KeySize)throw Error("CAST-128: keys must be 16 bytes");return this.keySchedule(e),!0},this.reset=function(){for(let e=0;e<16;e++)this.masking[e]=0,this.rotate[e]=0},this.getBlockSize=function(){return this.BlockSize},this.encrypt=function(e){const t=Array(e.length);for(let o=0;o>>24&255,t[o+1]=c>>>16&255,t[o+2]=c>>>8&255,t[o+3]=255&c,t[o+4]=s>>>24&255,t[o+5]=s>>>16&255,t[o+6]=s>>>8&255,t[o+7]=255&s}return t},this.decrypt=function(e){const t=Array(e.length);for(let o=0;o>>24&255,t[o+1]=c>>>16&255,t[o+2]=c>>>8&255,t[o+3]=255&c,t[o+4]=s>>>24&255,t[o+5]=s>>16&255,t[o+6]=s>>8&255,t[o+7]=255&s}return t};const e=[,,,,];e[0]=[,,,,],e[0][0]=[4,0,13,15,12,14,8],e[0][1]=[5,2,16,18,17,19,10],e[0][2]=[6,3,23,22,21,20,9],e[0][3]=[7,1,26,25,27,24,11],e[1]=[,,,,],e[1][0]=[0,6,21,23,20,22,16],e[1][1]=[1,4,0,2,1,3,18],e[1][2]=[2,5,7,6,5,4,17],e[1][3]=[3,7,10,9,11,8,19],e[2]=[,,,,],e[2][0]=[4,0,13,15,12,14,8],e[2][1]=[5,2,16,18,17,19,10],e[2][2]=[6,3,23,22,21,20,9],e[2][3]=[7,1,26,25,27,24,11],e[3]=[,,,,],e[3][0]=[0,6,21,23,20,22,16],e[3][1]=[1,4,0,2,1,3,18],e[3][2]=[2,5,7,6,5,4,17],e[3][3]=[3,7,10,9,11,8,19];const t=[,,,,];function r(e,t,r){const n=t+e,i=n<>>32-r;return(o[0][i>>>24]^o[1][i>>>16&255])-o[2][i>>>8&255]+o[3][255&i]}function n(e,t,r){const n=t^e,i=n<>>32-r;return o[0][i>>>24]-o[1][i>>>16&255]+o[2][i>>>8&255]^o[3][255&i]}function i(e,t,r){const n=t-e,i=n<>>32-r;return(o[0][i>>>24]+o[1][i>>>16&255]^o[2][i>>>8&255])-o[3][255&i]}t[0]=[,,,,],t[0][0]=[24,25,23,22,18],t[0][1]=[26,27,21,20,22],t[0][2]=[28,29,19,18,25],t[0][3]=[30,31,17,16,28],t[1]=[,,,,],t[1][0]=[3,2,12,13,8],t[1][1]=[1,0,14,15,13],t[1][2]=[7,6,8,9,3],t[1][3]=[5,4,10,11,7],t[2]=[,,,,],t[2][0]=[19,18,28,29,25],t[2][1]=[17,16,30,31,28],t[2][2]=[23,22,24,25,18],t[2][3]=[21,20,26,27,22],t[3]=[,,,,],t[3][0]=[8,9,7,6,3],t[3][1]=[10,11,5,4,7],t[3][2]=[12,13,3,2,8],t[3][3]=[14,15,1,0,13],this.keySchedule=function(r){const n=[,,,,,,,,],i=Array(32);let a;for(let e=0;e<4;e++)a=4*e,n[e]=r[a]<<24|r[a+1]<<16|r[a+2]<<8|r[a+3];const s=[6,7,4,5];let c,u=0;for(let l=0;l<2;l++)for(let r=0;r<4;r++){for(a=0;a<4;a++){const t=e[r][a];c=n[t[1]],c^=o[4][n[t[2]>>>2]>>>24-8*(3&t[2])&255],c^=o[5][n[t[3]>>>2]>>>24-8*(3&t[3])&255],c^=o[6][n[t[4]>>>2]>>>24-8*(3&t[4])&255],c^=o[7][n[t[5]>>>2]>>>24-8*(3&t[5])&255],c^=o[s[a]][n[t[6]>>>2]>>>24-8*(3&t[6])&255],n[t[0]]=c}for(a=0;a<4;a++){const e=t[r][a];c=o[4][n[e[0]>>>2]>>>24-8*(3&e[0])&255],c^=o[5][n[e[1]>>>2]>>>24-8*(3&e[1])&255],c^=o[6][n[e[2]>>>2]>>>24-8*(3&e[2])&255],c^=o[7][n[e[3]>>>2]>>>24-8*(3&e[3])&255],c^=o[4+a][n[e[4]>>>2]>>>24-8*(3&e[4])&255],i[u]=c,u++}}for(let e=0;e<16;e++)this.masking[e]=i[e],this.rotate[e]=31&i[16+e]};const o=[,,,,,,,,];o[0]=[821772500,2678128395,1810681135,1059425402,505495343,2617265619,1610868032,3483355465,3218386727,2294005173,3791863952,2563806837,1852023008,365126098,3269944861,584384398,677919599,3229601881,4280515016,2002735330,1136869587,3744433750,2289869850,2731719981,2714362070,879511577,1639411079,575934255,717107937,2857637483,576097850,2731753936,1725645e3,2810460463,5111599,767152862,2543075244,1251459544,1383482551,3052681127,3089939183,3612463449,1878520045,1510570527,2189125840,2431448366,582008916,3163445557,1265446783,1354458274,3529918736,3202711853,3073581712,3912963487,3029263377,1275016285,4249207360,2905708351,3304509486,1442611557,3585198765,2712415662,2731849581,3248163920,2283946226,208555832,2766454743,1331405426,1447828783,3315356441,3108627284,2957404670,2981538698,3339933917,1669711173,286233437,1465092821,1782121619,3862771680,710211251,980974943,1651941557,430374111,2051154026,704238805,4128970897,3144820574,2857402727,948965521,3333752299,2227686284,718756367,2269778983,2731643755,718440111,2857816721,3616097120,1113355533,2478022182,410092745,1811985197,1944238868,2696854588,1415722873,1682284203,1060277122,1998114690,1503841958,82706478,2315155686,1068173648,845149890,2167947013,1768146376,1993038550,3566826697,3390574031,940016341,3355073782,2328040721,904371731,1205506512,4094660742,2816623006,825647681,85914773,2857843460,1249926541,1417871568,3287612,3211054559,3126306446,1975924523,1353700161,2814456437,2438597621,1800716203,722146342,2873936343,1151126914,4160483941,2877670899,458611604,2866078500,3483680063,770352098,2652916994,3367839148,3940505011,3585973912,3809620402,718646636,2504206814,2914927912,3631288169,2857486607,2860018678,575749918,2857478043,718488780,2069512688,3548183469,453416197,1106044049,3032691430,52586708,3378514636,3459808877,3211506028,1785789304,218356169,3571399134,3759170522,1194783844,1523787992,3007827094,1975193539,2555452411,1341901877,3045838698,3776907964,3217423946,2802510864,2889438986,1057244207,1636348243,3761863214,1462225785,2632663439,481089165,718503062,24497053,3332243209,3344655856,3655024856,3960371065,1195698900,2971415156,3710176158,2115785917,4027663609,3525578417,2524296189,2745972565,3564906415,1372086093,1452307862,2780501478,1476592880,3389271281,18495466,2378148571,901398090,891748256,3279637769,3157290713,2560960102,1447622437,4284372637,216884176,2086908623,1879786977,3588903153,2242455666,2938092967,3559082096,2810645491,758861177,1121993112,215018983,642190776,4169236812,1196255959,2081185372,3508738393,941322904,4124243163,2877523539,1848581667,2205260958,3180453958,2589345134,3694731276,550028657,2519456284,3789985535,2973870856,2093648313,443148163,46942275,2734146937,1117713533,1115362972,1523183689,3717140224,1551984063],o[1]=[522195092,4010518363,1776537470,960447360,4267822970,4005896314,1435016340,1929119313,2913464185,1310552629,3579470798,3724818106,2579771631,1594623892,417127293,2715217907,2696228731,1508390405,3994398868,3925858569,3695444102,4019471449,3129199795,3770928635,3520741761,990456497,4187484609,2783367035,21106139,3840405339,631373633,3783325702,532942976,396095098,3548038825,4267192484,2564721535,2011709262,2039648873,620404603,3776170075,2898526339,3612357925,4159332703,1645490516,223693667,1567101217,3362177881,1029951347,3470931136,3570957959,1550265121,119497089,972513919,907948164,3840628539,1613718692,3594177948,465323573,2659255085,654439692,2575596212,2699288441,3127702412,277098644,624404830,4100943870,2717858591,546110314,2403699828,3655377447,1321679412,4236791657,1045293279,4010672264,895050893,2319792268,494945126,1914543101,2777056443,3894764339,2219737618,311263384,4275257268,3458730721,669096869,3584475730,3835122877,3319158237,3949359204,2005142349,2713102337,2228954793,3769984788,569394103,3855636576,1425027204,108000370,2736431443,3671869269,3043122623,1750473702,2211081108,762237499,3972989403,2798899386,3061857628,2943854345,867476300,964413654,1591880597,1594774276,2179821409,552026980,3026064248,3726140315,2283577634,3110545105,2152310760,582474363,1582640421,1383256631,2043843868,3322775884,1217180674,463797851,2763038571,480777679,2718707717,2289164131,3118346187,214354409,200212307,3810608407,3025414197,2674075964,3997296425,1847405948,1342460550,510035443,4080271814,815934613,833030224,1620250387,1945732119,2703661145,3966000196,1388869545,3456054182,2687178561,2092620194,562037615,1356438536,3409922145,3261847397,1688467115,2150901366,631725691,3840332284,549916902,3455104640,394546491,837744717,2114462948,751520235,2221554606,2415360136,3999097078,2063029875,803036379,2702586305,821456707,3019566164,360699898,4018502092,3511869016,3677355358,2402471449,812317050,49299192,2570164949,3259169295,2816732080,3331213574,3101303564,2156015656,3705598920,3546263921,143268808,3200304480,1638124008,3165189453,3341807610,578956953,2193977524,3638120073,2333881532,807278310,658237817,2969561766,1641658566,11683945,3086995007,148645947,1138423386,4158756760,1981396783,2401016740,3699783584,380097457,2680394679,2803068651,3334260286,441530178,4016580796,1375954390,761952171,891809099,2183123478,157052462,3683840763,1592404427,341349109,2438483839,1417898363,644327628,2233032776,2353769706,2201510100,220455161,1815641738,182899273,2995019788,3627381533,3702638151,2890684138,1052606899,588164016,1681439879,4038439418,2405343923,4229449282,167996282,1336969661,1688053129,2739224926,1543734051,1046297529,1138201970,2121126012,115334942,1819067631,1902159161,1941945968,2206692869,1159982321],o[2]=[2381300288,637164959,3952098751,3893414151,1197506559,916448331,2350892612,2932787856,3199334847,4009478890,3905886544,1373570990,2450425862,4037870920,3778841987,2456817877,286293407,124026297,3001279700,1028597854,3115296800,4208886496,2691114635,2188540206,1430237888,1218109995,3572471700,308166588,570424558,2187009021,2455094765,307733056,1310360322,3135275007,1384269543,2388071438,863238079,2359263624,2801553128,3380786597,2831162807,1470087780,1728663345,4072488799,1090516929,532123132,2389430977,1132193179,2578464191,3051079243,1670234342,1434557849,2711078940,1241591150,3314043432,3435360113,3091448339,1812415473,2198440252,267246943,796911696,3619716990,38830015,1526438404,2806502096,374413614,2943401790,1489179520,1603809326,1920779204,168801282,260042626,2358705581,1563175598,2397674057,1356499128,2217211040,514611088,2037363785,2186468373,4022173083,2792511869,2913485016,1173701892,4200428547,3896427269,1334932762,2455136706,602925377,2835607854,1613172210,41346230,2499634548,2457437618,2188827595,41386358,4172255629,1313404830,2405527007,3801973774,2217704835,873260488,2528884354,2478092616,4012915883,2555359016,2006953883,2463913485,575479328,2218240648,2099895446,660001756,2341502190,3038761536,3888151779,3848713377,3286851934,1022894237,1620365795,3449594689,1551255054,15374395,3570825345,4249311020,4151111129,3181912732,310226346,1133119310,530038928,136043402,2476768958,3107506709,2544909567,1036173560,2367337196,1681395281,1758231547,3641649032,306774401,1575354324,3716085866,1990386196,3114533736,2455606671,1262092282,3124342505,2768229131,4210529083,1833535011,423410938,660763973,2187129978,1639812e3,3508421329,3467445492,310289298,272797111,2188552562,2456863912,310240523,677093832,1013118031,901835429,3892695601,1116285435,3036471170,1337354835,243122523,520626091,277223598,4244441197,4194248841,1766575121,594173102,316590669,742362309,3536858622,4176435350,3838792410,2501204839,1229605004,3115755532,1552908988,2312334149,979407927,3959474601,1148277331,176638793,3614686272,2083809052,40992502,1340822838,2731552767,3535757508,3560899520,1354035053,122129617,7215240,2732932949,3118912700,2718203926,2539075635,3609230695,3725561661,1928887091,2882293555,1988674909,2063640240,2491088897,1459647954,4189817080,2302804382,1113892351,2237858528,1927010603,4002880361,1856122846,1594404395,2944033133,3855189863,3474975698,1643104450,4054590833,3431086530,1730235576,2984608721,3084664418,2131803598,4178205752,267404349,1617849798,1616132681,1462223176,736725533,2327058232,551665188,2945899023,1749386277,2575514597,1611482493,674206544,2201269090,3642560800,728599968,1680547377,2620414464,1388111496,453204106,4156223445,1094905244,2754698257,2201108165,3757000246,2704524545,3922940700,3996465027],o[3]=[2645754912,532081118,2814278639,3530793624,1246723035,1689095255,2236679235,4194438865,2116582143,3859789411,157234593,2045505824,4245003587,1687664561,4083425123,605965023,672431967,1336064205,3376611392,214114848,4258466608,3232053071,489488601,605322005,3998028058,264917351,1912574028,756637694,436560991,202637054,135989450,85393697,2152923392,3896401662,2895836408,2145855233,3535335007,115294817,3147733898,1922296357,3464822751,4117858305,1037454084,2725193275,2127856640,1417604070,1148013728,1827919605,642362335,2929772533,909348033,1346338451,3547799649,297154785,1917849091,4161712827,2883604526,3968694238,1469521537,3780077382,3375584256,1763717519,136166297,4290970789,1295325189,2134727907,2798151366,1566297257,3672928234,2677174161,2672173615,965822077,2780786062,289653839,1133871874,3491843819,35685304,1068898316,418943774,672553190,642281022,2346158704,1954014401,3037126780,4079815205,2030668546,3840588673,672283427,1776201016,359975446,3750173538,555499703,2769985273,1324923,69110472,152125443,3176785106,3822147285,1340634837,798073664,1434183902,15393959,216384236,1303690150,3881221631,3711134124,3960975413,106373927,2578434224,1455997841,1801814300,1578393881,1854262133,3188178946,3258078583,2302670060,1539295533,3505142565,3078625975,2372746020,549938159,3278284284,2620926080,181285381,2865321098,3970029511,68876850,488006234,1728155692,2608167508,836007927,2435231793,919367643,3339422534,3655756360,1457871481,40520939,1380155135,797931188,234455205,2255801827,3990488299,397000196,739833055,3077865373,2871719860,4022553888,772369276,390177364,3853951029,557662966,740064294,1640166671,1699928825,3535942136,622006121,3625353122,68743880,1742502,219489963,1664179233,1577743084,1236991741,410585305,2366487942,823226535,1050371084,3426619607,3586839478,212779912,4147118561,1819446015,1911218849,530248558,3486241071,3252585495,2886188651,3410272728,2342195030,20547779,2982490058,3032363469,3631753222,312714466,1870521650,1493008054,3491686656,615382978,4103671749,2534517445,1932181,2196105170,278426614,6369430,3274544417,2913018367,697336853,2143000447,2946413531,701099306,1558357093,2805003052,3500818408,2321334417,3567135975,216290473,3591032198,23009561,1996984579,3735042806,2024298078,3739440863,569400510,2339758983,3016033873,3097871343,3639523026,3844324983,3256173865,795471839,2951117563,4101031090,4091603803,3603732598,971261452,534414648,428311343,3389027175,2844869880,694888862,1227866773,2456207019,3043454569,2614353370,3749578031,3676663836,459166190,4132644070,1794958188,51825668,2252611902,3084671440,2036672799,3436641603,1099053433,2469121526,3059204941,1323291266,2061838604,1018778475,2233344254,2553501054,334295216,3556750194,1065731521,183467730],o[4]=[2127105028,745436345,2601412319,2788391185,3093987327,500390133,1155374404,389092991,150729210,3891597772,3523549952,1935325696,716645080,946045387,2901812282,1774124410,3869435775,4039581901,3293136918,3438657920,948246080,363898952,3867875531,1286266623,1598556673,68334250,630723836,1104211938,1312863373,613332731,2377784574,1101634306,441780740,3129959883,1917973735,2510624549,3238456535,2544211978,3308894634,1299840618,4076074851,1756332096,3977027158,297047435,3790297736,2265573040,3621810518,1311375015,1667687725,47300608,3299642885,2474112369,201668394,1468347890,576830978,3594690761,3742605952,1958042578,1747032512,3558991340,1408974056,3366841779,682131401,1033214337,1545599232,4265137049,206503691,103024618,2855227313,1337551222,2428998917,2963842932,4015366655,3852247746,2796956967,3865723491,3747938335,247794022,3755824572,702416469,2434691994,397379957,851939612,2314769512,218229120,1380406772,62274761,214451378,3170103466,2276210409,3845813286,28563499,446592073,1693330814,3453727194,29968656,3093872512,220656637,2470637031,77972100,1667708854,1358280214,4064765667,2395616961,325977563,4277240721,4220025399,3605526484,3355147721,811859167,3069544926,3962126810,652502677,3075892249,4132761541,3498924215,1217549313,3250244479,3858715919,3053989961,1538642152,2279026266,2875879137,574252750,3324769229,2651358713,1758150215,141295887,2719868960,3515574750,4093007735,4194485238,1082055363,3417560400,395511885,2966884026,179534037,3646028556,3738688086,1092926436,2496269142,257381841,3772900718,1636087230,1477059743,2499234752,3811018894,2675660129,3285975680,90732309,1684827095,1150307763,1723134115,3237045386,1769919919,1240018934,815675215,750138730,2239792499,1234303040,1995484674,138143821,675421338,1145607174,1936608440,3238603024,2345230278,2105974004,323969391,779555213,3004902369,2861610098,1017501463,2098600890,2628620304,2940611490,2682542546,1171473753,3656571411,3687208071,4091869518,393037935,159126506,1662887367,1147106178,391545844,3452332695,1891500680,3016609650,1851642611,546529401,1167818917,3194020571,2848076033,3953471836,575554290,475796850,4134673196,450035699,2351251534,844027695,1080539133,86184846,1554234488,3692025454,1972511363,2018339607,1491841390,1141460869,1061690759,4244549243,2008416118,2351104703,2868147542,1598468138,722020353,1027143159,212344630,1387219594,1725294528,3745187956,2500153616,458938280,4129215917,1828119673,544571780,3503225445,2297937496,1241802790,267843827,2694610800,1397140384,1558801448,3782667683,1806446719,929573330,2234912681,400817706,616011623,4121520928,3603768725,1761550015,1968522284,4053731006,4192232858,4005120285,872482584,3140537016,3894607381,2287405443,1963876937,3663887957,1584857e3,2975024454,1833426440,4025083860],o[5]=[4143615901,749497569,1285769319,3795025788,2514159847,23610292,3974978748,844452780,3214870880,3751928557,2213566365,1676510905,448177848,3730751033,4086298418,2307502392,871450977,3222878141,4110862042,3831651966,2735270553,1310974780,2043402188,1218528103,2736035353,4274605013,2702448458,3936360550,2693061421,162023535,2827510090,687910808,23484817,3784910947,3371371616,779677500,3503626546,3473927188,4157212626,3500679282,4248902014,2466621104,3899384794,1958663117,925738300,1283408968,3669349440,1840910019,137959847,2679828185,1239142320,1315376211,1547541505,1690155329,739140458,3128809933,3933172616,3876308834,905091803,1548541325,4040461708,3095483362,144808038,451078856,676114313,2861728291,2469707347,993665471,373509091,2599041286,4025009006,4170239449,2149739950,3275793571,3749616649,2794760199,1534877388,572371878,2590613551,1753320020,3467782511,1405125690,4270405205,633333386,3026356924,3475123903,632057672,2846462855,1404951397,3882875879,3915906424,195638627,2385783745,3902872553,1233155085,3355999740,2380578713,2702246304,2144565621,3663341248,3894384975,2502479241,4248018925,3094885567,1594115437,572884632,3385116731,767645374,1331858858,1475698373,3793881790,3532746431,1321687957,619889600,1121017241,3440213920,2070816767,2833025776,1933951238,4095615791,890643334,3874130214,859025556,360630002,925594799,1764062180,3920222280,4078305929,979562269,2810700344,4087740022,1949714515,546639971,1165388173,3069891591,1495988560,922170659,1291546247,2107952832,1813327274,3406010024,3306028637,4241950635,153207855,2313154747,1608695416,1150242611,1967526857,721801357,1220138373,3691287617,3356069787,2112743302,3281662835,1111556101,1778980689,250857638,2298507990,673216130,2846488510,3207751581,3562756981,3008625920,3417367384,2198807050,529510932,3547516680,3426503187,2364944742,102533054,2294910856,1617093527,1204784762,3066581635,1019391227,1069574518,1317995090,1691889997,3661132003,510022745,3238594800,1362108837,1817929911,2184153760,805817662,1953603311,3699844737,120799444,2118332377,207536705,2282301548,4120041617,145305846,2508124933,3086745533,3261524335,1877257368,2977164480,3160454186,2503252186,4221677074,759945014,254147243,2767453419,3801518371,629083197,2471014217,907280572,3900796746,940896768,2751021123,2625262786,3161476951,3661752313,3260732218,1425318020,2977912069,1496677566,3988592072,2140652971,3126511541,3069632175,977771578,1392695845,1698528874,1411812681,1369733098,1343739227,3620887944,1142123638,67414216,3102056737,3088749194,1626167401,2546293654,3941374235,697522451,33404913,143560186,2595682037,994885535,1247667115,3859094837,2699155541,3547024625,4114935275,2968073508,3199963069,2732024527,1237921620,951448369,1898488916,1211705605,2790989240,2233243581,3598044975],o[6]=[2246066201,858518887,1714274303,3485882003,713916271,2879113490,3730835617,539548191,36158695,1298409750,419087104,1358007170,749914897,2989680476,1261868530,2995193822,2690628854,3443622377,3780124940,3796824509,2976433025,4259637129,1551479e3,512490819,1296650241,951993153,2436689437,2460458047,144139966,3136204276,310820559,3068840729,643875328,1969602020,1680088954,2185813161,3283332454,672358534,198762408,896343282,276269502,3014846926,84060815,197145886,376173866,3943890818,3813173521,3545068822,1316698879,1598252827,2633424951,1233235075,859989710,2358460855,3503838400,3409603720,1203513385,1193654839,2792018475,2060853022,207403770,1144516871,3068631394,1121114134,177607304,3785736302,326409831,1929119770,2983279095,4183308101,3474579288,3200513878,3228482096,119610148,1170376745,3378393471,3163473169,951863017,3337026068,3135789130,2907618374,1183797387,2015970143,4045674555,2182986399,2952138740,3928772205,384012900,2454997643,10178499,2879818989,2596892536,111523738,2995089006,451689641,3196290696,235406569,1441906262,3890558523,3013735005,4158569349,1644036924,376726067,1006849064,3664579700,2041234796,1021632941,1374734338,2566452058,371631263,4007144233,490221539,206551450,3140638584,1053219195,1853335209,3412429660,3562156231,735133835,1623211703,3104214392,2738312436,4096837757,3366392578,3110964274,3956598718,3196820781,2038037254,3877786376,2339753847,300912036,3766732888,2372630639,1516443558,4200396704,1574567987,4069441456,4122592016,2699739776,146372218,2748961456,2043888151,35287437,2596680554,655490400,1132482787,110692520,1031794116,2188192751,1324057718,1217253157,919197030,686247489,3261139658,1028237775,3135486431,3059715558,2460921700,986174950,2661811465,4062904701,2752986992,3709736643,367056889,1353824391,731860949,1650113154,1778481506,784341916,357075625,3608602432,1074092588,2480052770,3811426202,92751289,877911070,3600361838,1231880047,480201094,3756190983,3094495953,434011822,87971354,363687820,1717726236,1901380172,3926403882,2481662265,400339184,1490350766,2661455099,1389319756,2558787174,784598401,1983468483,30828846,3550527752,2716276238,3841122214,1765724805,1955612312,1277890269,1333098070,1564029816,2704417615,1026694237,3287671188,1260819201,3349086767,1016692350,1582273796,1073413053,1995943182,694588404,1025494639,3323872702,3551898420,4146854327,453260480,1316140391,1435673405,3038941953,3486689407,1622062951,403978347,817677117,950059133,4246079218,3278066075,1486738320,1417279718,481875527,2549965225,3933690356,760697757,1452955855,3897451437,1177426808,1702951038,4085348628,2447005172,1084371187,3516436277,3068336338,1073369276,1027665953,3284188590,1230553676,1368340146,2226246512,267243139,2274220762,4070734279,2497715176,2423353163,2504755875],o[7]=[3793104909,3151888380,2817252029,895778965,2005530807,3871412763,237245952,86829237,296341424,3851759377,3974600970,2475086196,709006108,1994621201,2972577594,937287164,3734691505,168608556,3189338153,2225080640,3139713551,3033610191,3025041904,77524477,185966941,1208824168,2344345178,1721625922,3354191921,1066374631,1927223579,1971335949,2483503697,1551748602,2881383779,2856329572,3003241482,48746954,1398218158,2050065058,313056748,4255789917,393167848,1912293076,940740642,3465845460,3091687853,2522601570,2197016661,1727764327,364383054,492521376,1291706479,3264136376,1474851438,1685747964,2575719748,1619776915,1814040067,970743798,1561002147,2925768690,2123093554,1880132620,3151188041,697884420,2550985770,2607674513,2659114323,110200136,1489731079,997519150,1378877361,3527870668,478029773,2766872923,1022481122,431258168,1112503832,897933369,2635587303,669726182,3383752315,918222264,163866573,3246985393,3776823163,114105080,1903216136,761148244,3571337562,1690750982,3166750252,1037045171,1888456500,2010454850,642736655,616092351,365016990,1185228132,4174898510,1043824992,2023083429,2241598885,3863320456,3279669087,3674716684,108438443,2132974366,830746235,606445527,4173263986,2204105912,1844756978,2532684181,4245352700,2969441100,3796921661,1335562986,4061524517,2720232303,2679424040,634407289,885462008,3294724487,3933892248,2094100220,339117932,4048830727,3202280980,1458155303,2689246273,1022871705,2464987878,3714515309,353796843,2822958815,4256850100,4052777845,551748367,618185374,3778635579,4020649912,1904685140,3069366075,2670879810,3407193292,2954511620,4058283405,2219449317,3135758300,1120655984,3447565834,1474845562,3577699062,550456716,3466908712,2043752612,881257467,869518812,2005220179,938474677,3305539448,3850417126,1315485940,3318264702,226533026,965733244,321539988,1136104718,804158748,573969341,3708209826,937399083,3290727049,2901666755,1461057207,4013193437,4066861423,3242773476,2421326174,1581322155,3028952165,786071460,3900391652,3918438532,1485433313,4023619836,3708277595,3678951060,953673138,1467089153,1930354364,1533292819,2492563023,1346121658,1685000834,1965281866,3765933717,4190206607,2052792609,3515332758,690371149,3125873887,2180283551,2903598061,3933952357,436236910,289419410,14314871,1242357089,2904507907,1616633776,2666382180,585885352,3471299210,2699507360,1432659641,277164553,3354103607,770115018,2303809295,3741942315,3177781868,2853364978,2269453327,3774259834,987383833,1290892879,225909803,1741533526,890078084,1496906255,1111072499,916028167,243534141,1252605537,2204162171,531204876,290011180,3916834213,102027703,237315147,209093447,1486785922,220223953,2758195998,4175039106,82940208,3127791296,2569425252,518464269,1353887104,3941492737,2377294467,3935040926]}function Oe(e){this.cast5=new De,this.cast5.setKey(e),this.encrypt=function(e){return this.cast5.encrypt(e)}}je.keySize=je.prototype.keySize=24,je.blockSize=je.prototype.blockSize=8,Oe.blockSize=Oe.prototype.blockSize=8,Oe.keySize=Oe.prototype.keySize=16;const Be=4294967295;function Ne(e,t){return(e<>>32-t)&Be}function Re(e,t){return e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24}function Le(e,t,r){e.splice(t,4,255&r,r>>>8&255,r>>>16&255,r>>>24&255)}function Fe(e,t){return e>>>8*t&255}function Ue(e){this.tf=function(){let e=null,t=null,r=-1,n=[],i=[[],[],[],[]];function o(e){return i[0][Fe(e,0)]^i[1][Fe(e,1)]^i[2][Fe(e,2)]^i[3][Fe(e,3)]}function a(e){return i[0][Fe(e,3)]^i[1][Fe(e,0)]^i[2][Fe(e,1)]^i[3][Fe(e,2)]}function s(e,t){let r=o(t[0]),i=a(t[1]);t[2]=Ne(t[2]^r+i+n[4*e+8]&Be,31),t[3]=Ne(t[3],1)^r+2*i+n[4*e+9]&Be,r=o(t[2]),i=a(t[3]),t[0]=Ne(t[0]^r+i+n[4*e+10]&Be,31),t[1]=Ne(t[1],1)^r+2*i+n[4*e+11]&Be}function c(e,t){let r=o(t[0]),i=a(t[1]);t[2]=Ne(t[2],1)^r+i+n[4*e+10]&Be,t[3]=Ne(t[3]^r+2*i+n[4*e+11]&Be,31),r=o(t[2]),i=a(t[3]),t[0]=Ne(t[0],1)^r+i+n[4*e+8]&Be,t[1]=Ne(t[1]^r+2*i+n[4*e+9]&Be,31)}return{name:"twofish",blocksize:16,open:function(t){let r,o,a,s,c;e=t;const u=[],l=[],d=[];let f;const h=[];let p,g,m;const y=[[8,1,7,13,6,15,3,2,0,11,5,9,14,12,10,4],[2,8,11,13,15,7,6,14,3,1,9,4,0,10,12,5]],b=[[14,12,11,8,1,2,3,5,15,4,10,6,7,0,9,13],[1,14,2,11,4,12,3,7,6,13,10,5,15,9,0,8]],v=[[11,10,5,14,6,13,9,0,12,8,15,3,2,4,7,1],[4,12,7,5,1,6,9,10,0,14,13,8,2,11,3,15]],w=[[13,7,15,4,1,2,6,14,9,11,3,0,8,5,12,10],[11,9,5,1,12,3,13,14,6,4,7,15,2,0,8,10]],A=[0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15],C=[0,9,2,11,4,13,6,15,8,1,10,3,12,5,14,7],E=[[],[]],x=[[],[],[],[]];function S(e){return e^e>>2^[0,90,180,238][3&e]}function I(e){return e^e>>1^e>>2^[0,238,180,90][3&e]}function k(e,t){let r,n,i;for(r=0;r<8;r++)n=t>>>24,t=t<<8&Be|e>>>24,e=e<<8&Be,i=n<<1,128&n&&(i^=333),t^=n^i<<16,i^=n>>>1,1&n&&(i^=166),t^=i<<24|i<<8;return t}function _(e,t){const r=t>>4,n=15&t,i=y[e][r^n],o=b[e][A[n]^C[r]];return w[e][A[o]^C[i]]<<4|v[e][i^o]}function T(e,t){let r=Fe(e,0),n=Fe(e,1),i=Fe(e,2),o=Fe(e,3);switch(f){case 4:r=E[1][r]^Fe(t[3],0),n=E[0][n]^Fe(t[3],1),i=E[0][i]^Fe(t[3],2),o=E[1][o]^Fe(t[3],3);case 3:r=E[1][r]^Fe(t[2],0),n=E[1][n]^Fe(t[2],1),i=E[0][i]^Fe(t[2],2),o=E[0][o]^Fe(t[2],3);case 2:r=E[0][E[0][r]^Fe(t[1],0)]^Fe(t[0],0),n=E[0][E[1][n]^Fe(t[1],1)]^Fe(t[0],1),i=E[1][E[0][i]^Fe(t[1],2)]^Fe(t[0],2),o=E[1][E[1][o]^Fe(t[1],3)]^Fe(t[0],3)}return x[0][r]^x[1][n]^x[2][i]^x[3][o]}for(e=e.slice(0,32),r=e.length;16!==r&&24!==r&&32!==r;)e[r++]=0;for(r=0;r>2]=Re(e,r);for(r=0;r<256;r++)E[0][r]=_(0,r),E[1][r]=_(1,r);for(r=0;r<256;r++)p=E[1][r],g=S(p),m=I(p),x[0][r]=p+(g<<8)+(m<<16)+(m<<24),x[2][r]=g+(m<<8)+(p<<16)+(m<<24),p=E[0][r],g=S(p),m=I(p),x[1][r]=m+(m<<8)+(g<<16)+(p<<24),x[3][r]=g+(p<<8)+(m<<16)+(g<<24);for(f=d.length/2,r=0;r=0;t--)c(t,o);Le(t,r,o[2]^n[0]),Le(t,r+4,o[3]^n[1]),Le(t,r+8,o[0]^n[2]),Le(t,r+12,o[1]^n[3]),r+=16},finalize:function(){return t}}}(),this.tf.open(Array.from(e),0),this.encrypt=function(e){return this.tf.encrypt(Array.from(e),0)}}function ze(){}function He(e){this.bf=new ze,this.bf.init(e),this.encrypt=function(e){return this.bf.encryptBlock(e)}}Ue.keySize=Ue.prototype.keySize=32,Ue.blockSize=Ue.prototype.blockSize=16,ze.prototype.BLOCKSIZE=8,ze.prototype.SBOXES=[[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]],ze.prototype.PARRAY=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],ze.prototype.NN=16,ze.prototype._clean=function(e){return e<0&&(e=2147483648+(2147483647&e)),e},ze.prototype._F=function(e){let t;const r=255&e,n=255&(e>>>=8),i=255&(e>>>=8),o=255&(e>>>=8);return t=this.sboxes[0][o]+this.sboxes[1][i],t^=this.sboxes[2][n],t+=this.sboxes[3][r],t},ze.prototype._encryptBlock=function(e){let t,r=e[0],n=e[1];for(t=0;t>>24-8*t&255,i[t+n]=r[1]>>>24-8*t&255;return i},ze.prototype._decryptBlock=function(e){let t,r=e[0],n=e[1];for(t=this.NN+1;t>1;--t){r^=this.parray[t],n=this._F(r)^n;const e=r;r=n,n=e}r^=this.parray[1],n^=this.parray[0],e[0]=this._clean(n),e[1]=this._clean(r)},ze.prototype.init=function(e){let t,r=0;for(this.parray=[],t=0;t=e.length&&(r=0);this.parray[t]=this.PARRAY[t]^n}for(this.sboxes=[],t=0;t<4;++t)for(this.sboxes[t]=[],r=0;r<256;++r)this.sboxes[t][r]=this.SBOXES[t][r];const n=[0,0];for(t=0;t>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=t+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=r+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=c+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=u+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=l+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=d+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=f+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=h+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=p+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=g+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=m+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=y+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=b+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=v+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=w+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=b^h^r^e;_=I<<1|I>>>31;k=_+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=v^p^c^t;T=I<<1|I>>>31;k=T+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=w^g^u^r;M=I<<1|I>>>31;k=M+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=_^m^l^c;P=I<<1|I>>>31;k=P+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=T^y^d^u;j=I<<1|I>>>31;k=j+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=M^b^f^l;D=I<<1|I>>>31;k=D+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=P^v^h^d;O=I<<1|I>>>31;k=O+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=j^w^p^f;B=I<<1|I>>>31;k=B+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=D^_^g^h;N=I<<1|I>>>31;k=N+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=O^T^m^p;R=I<<1|I>>>31;k=R+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=B^M^y^g;L=I<<1|I>>>31;k=L+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=N^P^b^m;F=I<<1|I>>>31;k=F+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=R^j^v^y;U=I<<1|I>>>31;k=U+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=L^D^w^b;z=I<<1|I>>>31;k=z+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=F^O^_^v;H=I<<1|I>>>31;k=H+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=U^B^T^w;V=I<<1|I>>>31;k=V+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=z^N^M^_;K=I<<1|I>>>31;k=K+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=H^R^P^T;G=I<<1|I>>>31;k=G+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=V^L^j^M;q=I<<1|I>>>31;k=q+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=K^F^D^P;Q=I<<1|I>>>31;k=Q+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=G^U^O^j;W=I<<1|I>>>31;k=W+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=q^z^B^D;J=I<<1|I>>>31;k=J+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Q^H^N^O;Y=I<<1|I>>>31;k=Y+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=W^V^R^B;Z=I<<1|I>>>31;k=Z+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=J^K^L^N;$=I<<1|I>>>31;k=$+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Y^G^F^R;X=I<<1|I>>>31;k=X+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Z^q^U^L;ee=I<<1|I>>>31;k=ee+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=$^Q^z^F;te=I<<1|I>>>31;k=te+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=X^W^H^U;re=I<<1|I>>>31;k=re+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ee^J^V^z;ne=I<<1|I>>>31;k=ne+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=te^Y^K^H;ie=I<<1|I>>>31;k=ie+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=re^Z^G^V;oe=I<<1|I>>>31;k=oe+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ne^$^q^K;ae=I<<1|I>>>31;k=ae+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ie^X^Q^G;se=I<<1|I>>>31;k=se+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=oe^ee^W^q;ce=I<<1|I>>>31;k=ce+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ae^te^J^Q;ue=I<<1|I>>>31;k=ue+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=se^re^Y^W;le=I<<1|I>>>31;k=le+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ce^ne^Z^J;de=I<<1|I>>>31;k=de+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ue^ie^$^Y;fe=I<<1|I>>>31;k=fe+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=le^oe^X^Z;he=I<<1|I>>>31;k=he+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=de^ae^ee^$;pe=I<<1|I>>>31;k=pe+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=fe^se^te^X;ge=I<<1|I>>>31;k=ge+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=he^ce^re^ee;me=I<<1|I>>>31;k=me+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=pe^ue^ne^te;ye=I<<1|I>>>31;k=ye+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ge^le^ie^re;be=I<<1|I>>>31;k=be+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=me^de^oe^ne;ve=I<<1|I>>>31;k=ve+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ye^fe^ae^ie;we=I<<1|I>>>31;k=we+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=be^he^se^oe;Ae=I<<1|I>>>31;k=Ae+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ve^pe^ce^ae;Ce=I<<1|I>>>31;k=Ce+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=we^ge^ue^se;Ee=I<<1|I>>>31;k=Ee+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Ae^me^le^ce;xe=I<<1|I>>>31;k=xe+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Ce^ye^de^ue;Se=I<<1|I>>>31;k=Se+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Ee^be^fe^le;Ie=I<<1|I>>>31;k=Ie+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=xe^ve^he^de;ke=I<<1|I>>>31;k=ke+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Se^we^pe^fe;_e=I<<1|I>>>31;k=_e+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Ie^Ae^ge^he;Te=I<<1|I>>>31;k=Te+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ke^Ce^me^pe;Me=I<<1|I>>>31;k=Me+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=_e^Ee^ye^ge;Pe=I<<1|I>>>31;k=Pe+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Te^xe^be^me;je=I<<1|I>>>31;k=je+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Me^Se^ve^ye;De=I<<1|I>>>31;k=De+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Pe^Ie^we^be;Oe=I<<1|I>>>31;k=Oe+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=je^ke^Ae^ve;Be=I<<1|I>>>31;k=Be+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=De^_e^Ce^we;Ne=I<<1|I>>>31;k=Ne+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Oe^Te^Ee^Ae;Re=I<<1|I>>>31;k=Re+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;n=n+A|0;i=i+C|0;o=o+E|0;a=a+x|0;s=s+S|0}function C(e){e=e|0;A(w[e|0]<<24|w[e|1]<<16|w[e|2]<<8|w[e|3],w[e|4]<<24|w[e|5]<<16|w[e|6]<<8|w[e|7],w[e|8]<<24|w[e|9]<<16|w[e|10]<<8|w[e|11],w[e|12]<<24|w[e|13]<<16|w[e|14]<<8|w[e|15],w[e|16]<<24|w[e|17]<<16|w[e|18]<<8|w[e|19],w[e|20]<<24|w[e|21]<<16|w[e|22]<<8|w[e|23],w[e|24]<<24|w[e|25]<<16|w[e|26]<<8|w[e|27],w[e|28]<<24|w[e|29]<<16|w[e|30]<<8|w[e|31],w[e|32]<<24|w[e|33]<<16|w[e|34]<<8|w[e|35],w[e|36]<<24|w[e|37]<<16|w[e|38]<<8|w[e|39],w[e|40]<<24|w[e|41]<<16|w[e|42]<<8|w[e|43],w[e|44]<<24|w[e|45]<<16|w[e|46]<<8|w[e|47],w[e|48]<<24|w[e|49]<<16|w[e|50]<<8|w[e|51],w[e|52]<<24|w[e|53]<<16|w[e|54]<<8|w[e|55],w[e|56]<<24|w[e|57]<<16|w[e|58]<<8|w[e|59],w[e|60]<<24|w[e|61]<<16|w[e|62]<<8|w[e|63])}function E(e){e=e|0;w[e|0]=n>>>24;w[e|1]=n>>>16&255;w[e|2]=n>>>8&255;w[e|3]=n&255;w[e|4]=i>>>24;w[e|5]=i>>>16&255;w[e|6]=i>>>8&255;w[e|7]=i&255;w[e|8]=o>>>24;w[e|9]=o>>>16&255;w[e|10]=o>>>8&255;w[e|11]=o&255;w[e|12]=a>>>24;w[e|13]=a>>>16&255;w[e|14]=a>>>8&255;w[e|15]=a&255;w[e|16]=s>>>24;w[e|17]=s>>>16&255;w[e|18]=s>>>8&255;w[e|19]=s&255}function x(){n=0x67452301;i=0xefcdab89;o=0x98badcfe;a=0x10325476;s=0xc3d2e1f0;c=u=0}function S(e,t,r,l,d,f,h){e=e|0;t=t|0;r=r|0;l=l|0;d=d|0;f=f|0;h=h|0;n=e;i=t;o=r;a=l;s=d;c=f;u=h}function I(e,t){e=e|0;t=t|0;var r=0;if(e&63)return-1;while((t|0)>=64){C(e);e=e+64|0;t=t-64|0;r=r+64|0}c=c+r|0;if(c>>>0>>0)u=u+1|0;return r|0}function k(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;if(e&63)return-1;if(~r)if(r&31)return-1;if((t|0)>=64){n=I(e,t)|0;if((n|0)==-1)return-1;e=e+n|0;t=t-n|0}n=n+t|0;c=c+t|0;if(c>>>0>>0)u=u+1|0;w[e|t]=0x80;if((t|0)>=56){for(i=t+1|0;(i|0)<64;i=i+1|0)w[e|i]=0x00;C(e);t=0;w[e|0]=0}for(i=t+1|0;(i|0)<59;i=i+1|0)w[e|i]=0;w[e|56]=u>>>21&255;w[e|57]=u>>>13&255;w[e|58]=u>>>5&255;w[e|59]=u<<3&255|c>>>29;w[e|60]=c>>>21&255;w[e|61]=c>>>13&255;w[e|62]=c>>>5&255;w[e|63]=c<<3&255;C(e);if(~r)E(r);return n|0}function _(){n=l;i=d;o=f;a=h;s=p;c=64;u=0}function T(){n=g;i=m;o=y;a=b;s=v;c=64;u=0}function M(e,t,r,w,C,E,S,I,k,_,T,M,P,j,D,O){e=e|0;t=t|0;r=r|0;w=w|0;C=C|0;E=E|0;S=S|0;I=I|0;k=k|0;_=_|0;T=T|0;M=M|0;P=P|0;j=j|0;D=D|0;O=O|0;x();A(e^0x5c5c5c5c,t^0x5c5c5c5c,r^0x5c5c5c5c,w^0x5c5c5c5c,C^0x5c5c5c5c,E^0x5c5c5c5c,S^0x5c5c5c5c,I^0x5c5c5c5c,k^0x5c5c5c5c,_^0x5c5c5c5c,T^0x5c5c5c5c,M^0x5c5c5c5c,P^0x5c5c5c5c,j^0x5c5c5c5c,D^0x5c5c5c5c,O^0x5c5c5c5c);g=n;m=i;y=o;b=a;v=s;x();A(e^0x36363636,t^0x36363636,r^0x36363636,w^0x36363636,C^0x36363636,E^0x36363636,S^0x36363636,I^0x36363636,k^0x36363636,_^0x36363636,T^0x36363636,M^0x36363636,P^0x36363636,j^0x36363636,D^0x36363636,O^0x36363636);l=n;d=i;f=o;h=a;p=s;c=64;u=0}function P(e,t,r){e=e|0;t=t|0;r=r|0;var c=0,u=0,l=0,d=0,f=0,h=0;if(e&63)return-1;if(~r)if(r&31)return-1;h=k(e,t,-1)|0;c=n,u=i,l=o,d=a,f=s;T();A(c,u,l,d,f,0x80000000,0,0,0,0,0,0,0,0,0,672);if(~r)E(r);return h|0}function j(e,t,r,c,u){e=e|0;t=t|0;r=r|0;c=c|0;u=u|0;var l=0,d=0,f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0;if(e&63)return-1;if(~u)if(u&31)return-1;w[e+t|0]=r>>>24;w[e+t+1|0]=r>>>16&255;w[e+t+2|0]=r>>>8&255;w[e+t+3|0]=r&255;P(e,t+4|0,-1)|0;l=g=n,d=m=i,f=y=o,h=b=a,p=v=s;c=c-1|0;while((c|0)>0){_();A(g,m,y,b,v,0x80000000,0,0,0,0,0,0,0,0,0,672);g=n,m=i,y=o,b=a,v=s;T();A(g,m,y,b,v,0x80000000,0,0,0,0,0,0,0,0,0,672);g=n,m=i,y=o,b=a,v=s;l=l^n;d=d^i;f=f^o;h=h^a;p=p^s;c=c-1|0}n=l;i=d;o=f;a=h;s=p;if(~u)E(u);return 0}return{reset:x,init:S,process:I,finish:k,hmac_reset:_,hmac_init:M,hmac_finish:P,pbkdf2_generate_block:j}};class We{constructor(){this.pos=0,this.len=0}reset(){const{asm:e}=this.acquire_asm();return this.result=null,this.pos=0,this.len=0,e.reset(),this}process(e){if(null!==this.result)throw new Ce("state must be reset before processing new data");const{asm:t,heap:r}=this.acquire_asm();let n=this.pos,i=this.len,o=0,a=e.length,s=0;for(;a>0;)s=we(r,n+i,e,o,a),i+=s,o+=s,a-=s,s=t.process(n,i),n+=s,i-=s,i||(n=0);return this.pos=n,this.len=i,this}finish(){if(null!==this.result)throw new Ce("state must be reset before processing new data");const{asm:e,heap:t}=this.acquire_asm();return e.finish(this.pos,this.len,0),this.result=new Uint8Array(this.HASH_SIZE),this.result.set(t.subarray(0,this.HASH_SIZE)),this.pos=0,this.len=0,this.release_asm(),this}}const Je=[],Ye=[];class Ze extends We{constructor(){super(),this.NAME="sha1",this.BLOCK_SIZE=64,this.HASH_SIZE=20,this.acquire_asm()}acquire_asm(){return void 0!==this.heap&&void 0!==this.asm||(this.heap=Je.pop()||ve(),this.asm=Ye.pop()||Qe({Uint8Array:Uint8Array},null,this.heap.buffer),this.reset()),{heap:this.heap,asm:this.asm}}release_asm(){void 0!==this.heap&&void 0!==this.asm&&(Je.push(this.heap),Ye.push(this.asm)),this.heap=void 0,this.asm=void 0}static bytes(e){return(new Ze).process(e).finish().result}}Ze.NAME="sha1",Ze.heap_pool=[],Ze.asm_pool=[],Ze.asm_function=Qe;const $e=[],Xe=[];class et extends We{constructor(){super(),this.NAME="sha256",this.BLOCK_SIZE=64,this.HASH_SIZE=32,this.acquire_asm()}acquire_asm(){return void 0!==this.heap&&void 0!==this.asm||(this.heap=$e.pop()||ve(),this.asm=Xe.pop()||function(e,t,r){"use asm";var n=0,i=0,o=0,a=0,s=0,c=0,u=0,l=0,d=0,f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,A=0,C=0,E=0,x=0,S=0,I=0,k=0,_=0,T=new e.Uint8Array(r);function M(e,t,r,d,f,h,p,g,m,y,b,v,w,A,C,E){e=e|0;t=t|0;r=r|0;d=d|0;f=f|0;h=h|0;p=p|0;g=g|0;m=m|0;y=y|0;b=b|0;v=v|0;w=w|0;A=A|0;C=C|0;E=E|0;var x=0,S=0,I=0,k=0,_=0,T=0,M=0,P=0;x=n;S=i;I=o;k=a;_=s;T=c;M=u;P=l;P=e+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0x428a2f98|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;M=t+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0x71374491|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;T=r+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0xb5c0fbcf|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;_=d+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0xe9b5dba5|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;k=f+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0x3956c25b|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;I=h+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0x59f111f1|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;S=p+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0x923f82a4|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;x=g+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0xab1c5ed5|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;P=m+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0xd807aa98|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;M=y+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0x12835b01|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;T=b+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0x243185be|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;_=v+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0x550c7dc3|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;k=w+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0x72be5d74|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;I=A+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0x80deb1fe|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;S=C+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0x9bdc06a7|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;x=E+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0xc19bf174|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;e=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(C>>>17^C>>>19^C>>>10^C<<15^C<<13)+e+y|0;P=e+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0xe49b69c1|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;t=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+t+b|0;M=t+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0xefbe4786|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;r=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+r+v|0;T=r+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0x0fc19dc6|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;d=(f>>>7^f>>>18^f>>>3^f<<25^f<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+d+w|0;_=d+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0x240ca1cc|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;f=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+f+A|0;k=f+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0x2de92c6f|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;h=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+h+C|0;I=h+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0x4a7484aa|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;p=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(f>>>17^f>>>19^f>>>10^f<<15^f<<13)+p+E|0;S=p+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0x5cb0a9dc|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;g=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+g+e|0;x=g+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0x76f988da|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;m=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+m+t|0;P=m+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0x983e5152|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;y=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+y+r|0;M=y+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0xa831c66d|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;b=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+b+d|0;T=b+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0xb00327c8|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;v=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+v+f|0;_=v+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0xbf597fc7|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;w=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+w+h|0;k=w+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0xc6e00bf3|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;A=(C>>>7^C>>>18^C>>>3^C<<25^C<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+A+p|0;I=A+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0xd5a79147|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;C=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+C+g|0;S=C+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0x06ca6351|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;E=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+E+m|0;x=E+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0x14292967|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;e=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(C>>>17^C>>>19^C>>>10^C<<15^C<<13)+e+y|0;P=e+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0x27b70a85|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;t=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+t+b|0;M=t+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0x2e1b2138|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;r=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+r+v|0;T=r+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0x4d2c6dfc|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;d=(f>>>7^f>>>18^f>>>3^f<<25^f<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+d+w|0;_=d+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0x53380d13|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;f=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+f+A|0;k=f+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0x650a7354|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;h=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+h+C|0;I=h+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0x766a0abb|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;p=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(f>>>17^f>>>19^f>>>10^f<<15^f<<13)+p+E|0;S=p+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0x81c2c92e|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;g=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+g+e|0;x=g+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0x92722c85|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;m=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+m+t|0;P=m+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0xa2bfe8a1|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;y=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+y+r|0;M=y+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0xa81a664b|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;b=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+b+d|0;T=b+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0xc24b8b70|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;v=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+v+f|0;_=v+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0xc76c51a3|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;w=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+w+h|0;k=w+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0xd192e819|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;A=(C>>>7^C>>>18^C>>>3^C<<25^C<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+A+p|0;I=A+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0xd6990624|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;C=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+C+g|0;S=C+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0xf40e3585|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;E=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+E+m|0;x=E+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0x106aa070|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;e=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(C>>>17^C>>>19^C>>>10^C<<15^C<<13)+e+y|0;P=e+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0x19a4c116|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;t=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+t+b|0;M=t+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0x1e376c08|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;r=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+r+v|0;T=r+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0x2748774c|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;d=(f>>>7^f>>>18^f>>>3^f<<25^f<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+d+w|0;_=d+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0x34b0bcb5|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;f=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+f+A|0;k=f+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0x391c0cb3|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;h=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+h+C|0;I=h+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0x4ed8aa4a|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;p=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(f>>>17^f>>>19^f>>>10^f<<15^f<<13)+p+E|0;S=p+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0x5b9cca4f|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;g=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+g+e|0;x=g+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0x682e6ff3|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;m=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+m+t|0;P=m+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0x748f82ee|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;y=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+y+r|0;M=y+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0x78a5636f|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;b=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+b+d|0;T=b+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0x84c87814|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;v=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+v+f|0;_=v+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0x8cc70208|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;w=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+w+h|0;k=w+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0x90befffa|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;A=(C>>>7^C>>>18^C>>>3^C<<25^C<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+A+p|0;I=A+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0xa4506ceb|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;C=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+C+g|0;S=C+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0xbef9a3f7|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;E=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+E+m|0;x=E+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0xc67178f2|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;n=n+x|0;i=i+S|0;o=o+I|0;a=a+k|0;s=s+_|0;c=c+T|0;u=u+M|0;l=l+P|0}function P(e){e=e|0;M(T[e|0]<<24|T[e|1]<<16|T[e|2]<<8|T[e|3],T[e|4]<<24|T[e|5]<<16|T[e|6]<<8|T[e|7],T[e|8]<<24|T[e|9]<<16|T[e|10]<<8|T[e|11],T[e|12]<<24|T[e|13]<<16|T[e|14]<<8|T[e|15],T[e|16]<<24|T[e|17]<<16|T[e|18]<<8|T[e|19],T[e|20]<<24|T[e|21]<<16|T[e|22]<<8|T[e|23],T[e|24]<<24|T[e|25]<<16|T[e|26]<<8|T[e|27],T[e|28]<<24|T[e|29]<<16|T[e|30]<<8|T[e|31],T[e|32]<<24|T[e|33]<<16|T[e|34]<<8|T[e|35],T[e|36]<<24|T[e|37]<<16|T[e|38]<<8|T[e|39],T[e|40]<<24|T[e|41]<<16|T[e|42]<<8|T[e|43],T[e|44]<<24|T[e|45]<<16|T[e|46]<<8|T[e|47],T[e|48]<<24|T[e|49]<<16|T[e|50]<<8|T[e|51],T[e|52]<<24|T[e|53]<<16|T[e|54]<<8|T[e|55],T[e|56]<<24|T[e|57]<<16|T[e|58]<<8|T[e|59],T[e|60]<<24|T[e|61]<<16|T[e|62]<<8|T[e|63])}function j(e){e=e|0;T[e|0]=n>>>24;T[e|1]=n>>>16&255;T[e|2]=n>>>8&255;T[e|3]=n&255;T[e|4]=i>>>24;T[e|5]=i>>>16&255;T[e|6]=i>>>8&255;T[e|7]=i&255;T[e|8]=o>>>24;T[e|9]=o>>>16&255;T[e|10]=o>>>8&255;T[e|11]=o&255;T[e|12]=a>>>24;T[e|13]=a>>>16&255;T[e|14]=a>>>8&255;T[e|15]=a&255;T[e|16]=s>>>24;T[e|17]=s>>>16&255;T[e|18]=s>>>8&255;T[e|19]=s&255;T[e|20]=c>>>24;T[e|21]=c>>>16&255;T[e|22]=c>>>8&255;T[e|23]=c&255;T[e|24]=u>>>24;T[e|25]=u>>>16&255;T[e|26]=u>>>8&255;T[e|27]=u&255;T[e|28]=l>>>24;T[e|29]=l>>>16&255;T[e|30]=l>>>8&255;T[e|31]=l&255}function D(){n=0x6a09e667;i=0xbb67ae85;o=0x3c6ef372;a=0xa54ff53a;s=0x510e527f;c=0x9b05688c;u=0x1f83d9ab;l=0x5be0cd19;d=f=0}function O(e,t,r,h,p,g,m,y,b,v){e=e|0;t=t|0;r=r|0;h=h|0;p=p|0;g=g|0;m=m|0;y=y|0;b=b|0;v=v|0;n=e;i=t;o=r;a=h;s=p;c=g;u=m;l=y;d=b;f=v}function B(e,t){e=e|0;t=t|0;var r=0;if(e&63)return-1;while((t|0)>=64){P(e);e=e+64|0;t=t-64|0;r=r+64|0}d=d+r|0;if(d>>>0>>0)f=f+1|0;return r|0}function N(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;if(e&63)return-1;if(~r)if(r&31)return-1;if((t|0)>=64){n=B(e,t)|0;if((n|0)==-1)return-1;e=e+n|0;t=t-n|0}n=n+t|0;d=d+t|0;if(d>>>0>>0)f=f+1|0;T[e|t]=0x80;if((t|0)>=56){for(i=t+1|0;(i|0)<64;i=i+1|0)T[e|i]=0x00;P(e);t=0;T[e|0]=0}for(i=t+1|0;(i|0)<59;i=i+1|0)T[e|i]=0;T[e|56]=f>>>21&255;T[e|57]=f>>>13&255;T[e|58]=f>>>5&255;T[e|59]=f<<3&255|d>>>29;T[e|60]=d>>>21&255;T[e|61]=d>>>13&255;T[e|62]=d>>>5&255;T[e|63]=d<<3&255;P(e);if(~r)j(r);return n|0}function R(){n=h;i=p;o=g;a=m;s=y;c=b;u=v;l=w;d=64;f=0}function L(){n=A;i=C;o=E;a=x;s=S;c=I;u=k;l=_;d=64;f=0}function F(e,t,r,T,P,j,O,B,N,R,L,F,U,z,H,V){e=e|0;t=t|0;r=r|0;T=T|0;P=P|0;j=j|0;O=O|0;B=B|0;N=N|0;R=R|0;L=L|0;F=F|0;U=U|0;z=z|0;H=H|0;V=V|0;D();M(e^0x5c5c5c5c,t^0x5c5c5c5c,r^0x5c5c5c5c,T^0x5c5c5c5c,P^0x5c5c5c5c,j^0x5c5c5c5c,O^0x5c5c5c5c,B^0x5c5c5c5c,N^0x5c5c5c5c,R^0x5c5c5c5c,L^0x5c5c5c5c,F^0x5c5c5c5c,U^0x5c5c5c5c,z^0x5c5c5c5c,H^0x5c5c5c5c,V^0x5c5c5c5c);A=n;C=i;E=o;x=a;S=s;I=c;k=u;_=l;D();M(e^0x36363636,t^0x36363636,r^0x36363636,T^0x36363636,P^0x36363636,j^0x36363636,O^0x36363636,B^0x36363636,N^0x36363636,R^0x36363636,L^0x36363636,F^0x36363636,U^0x36363636,z^0x36363636,H^0x36363636,V^0x36363636);h=n;p=i;g=o;m=a;y=s;b=c;v=u;w=l;d=64;f=0}function U(e,t,r){e=e|0;t=t|0;r=r|0;var d=0,f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0;if(e&63)return-1;if(~r)if(r&31)return-1;v=N(e,t,-1)|0;d=n,f=i,h=o,p=a,g=s,m=c,y=u,b=l;L();M(d,f,h,p,g,m,y,b,0x80000000,0,0,0,0,0,0,768);if(~r)j(r);return v|0}function z(e,t,r,d,f){e=e|0;t=t|0;r=r|0;d=d|0;f=f|0;var h=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,A=0,C=0,E=0,x=0,S=0,I=0,k=0,_=0;if(e&63)return-1;if(~f)if(f&31)return-1;T[e+t|0]=r>>>24;T[e+t+1|0]=r>>>16&255;T[e+t+2|0]=r>>>8&255;T[e+t+3|0]=r&255;U(e,t+4|0,-1)|0;h=A=n,p=C=i,g=E=o,m=x=a,y=S=s,b=I=c,v=k=u,w=_=l;d=d-1|0;while((d|0)>0){R();M(A,C,E,x,S,I,k,_,0x80000000,0,0,0,0,0,0,768);A=n,C=i,E=o,x=a,S=s,I=c,k=u,_=l;L();M(A,C,E,x,S,I,k,_,0x80000000,0,0,0,0,0,0,768);A=n,C=i,E=o,x=a,S=s,I=c,k=u,_=l;h=h^n;p=p^i;g=g^o;m=m^a;y=y^s;b=b^c;v=v^u;w=w^l;d=d-1|0}n=h;i=p;o=g;a=m;s=y;c=b;u=v;l=w;if(~f)j(f);return 0}return{reset:D,init:O,process:B,finish:N,hmac_reset:R,hmac_init:F,hmac_finish:U,pbkdf2_generate_block:z}}({Uint8Array:Uint8Array},null,this.heap.buffer),this.reset()),{heap:this.heap,asm:this.asm}}release_asm(){void 0!==this.heap&&void 0!==this.asm&&($e.push(this.heap),Xe.push(this.asm)),this.heap=void 0,this.asm=void 0}static bytes(e){return(new et).process(e).finish().result}}et.NAME="sha256";var tt=rt;function rt(e,t){if(!e)throw Error(t||"Assertion failed")}rt.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)};var nt=void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function it(e,t){return e(t={exports:{}},t.exports),t.exports}function ot(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var at=it((function(e){e.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}));function st(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function ct(e){return 1===e.length?"0"+e:e}function ut(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}var lt={inherits:at,toArray:function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>8,a=255&i;o?r.push(o,a):r.push(a)}else for(n=0;n>>0}return o},split32:function(e,t){for(var r=Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},rotr32:function(e,t){return e>>>t|e<<32-t},rotl32:function(e,t){return e<>>32-t},sum32:function(e,t){return e+t>>>0},sum32_3:function(e,t,r){return e+t+r>>>0},sum32_4:function(e,t,r,n){return e+t+r+n>>>0},sum32_5:function(e,t,r,n,i){return e+t+r+n+i>>>0},sum64:function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},sum64_hi:function(e,t,r,n){return(t+n>>>0>>0},sum64_lo:function(e,t,r,n){return t+n>>>0},sum64_4_hi:function(e,t,r,n,i,o,a,s){var c=0,u=t;return c+=(u=u+n>>>0)>>0)>>0)>>0},sum64_4_lo:function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},sum64_5_hi:function(e,t,r,n,i,o,a,s,c,u){var l=0,d=t;return l+=(d=d+n>>>0)>>0)>>0)>>0)>>0},sum64_5_lo:function(e,t,r,n,i,o,a,s,c,u){return t+n+o+s+u>>>0},rotr64_hi:function(e,t,r){return(t<<32-r|e>>>r)>>>0},rotr64_lo:function(e,t,r){return(e<<32-r|t>>>r)>>>0},shr64_hi:function(e,t,r){return e>>>r},shr64_lo:function(e,t,r){return(e<<32-r|t>>>r)>>>0}};function dt(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var ft=dt;dt.prototype.update=function(e,t){if(e=lt.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=lt.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o>>3},xt=function(e){return pt(e,17)^pt(e,19)^e>>>10},St=lt.sum32,It=lt.sum32_4,kt=lt.sum32_5,_t=vt,Tt=wt,Mt=At,Pt=Ct,jt=Et,Dt=xt,Ot=ht.BlockHash,Bt=[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 Nt(){if(!(this instanceof Nt))return new Nt;Ot.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Bt,this.W=Array(64)}lt.inherits(Nt,Ot);var Rt=Nt;function Lt(){if(!(this instanceof Lt))return new Lt;Rt.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Nt.blockSize=512,Nt.outSize=256,Nt.hmacStrength=192,Nt.padLength=64,Nt.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n>>32-i,r)}function jr(e,t,r,n,i,o,a){return Pr(t&r|~t&n,e,t,i,o,a)}function Dr(e,t,r,n,i,o,a){return Pr(t&n|r&~n,e,t,i,o,a)}function Or(e,t,r,n,i,o,a){return Pr(t^r^n,e,t,i,o,a)}function Br(e,t,r,n,i,o,a){return Pr(r^(t|~n),e,t,i,o,a)}function Nr(e){const t=[];let r;for(r=0;r<64;r+=4)t[r>>2]=e.charCodeAt(r)+(e.charCodeAt(r+1)<<8)+(e.charCodeAt(r+2)<<16)+(e.charCodeAt(r+3)<<24);return t}const Rr="0123456789abcdef".split("");function Lr(e){let t="",r=0;for(;r<4;r++)t+=Rr[e>>8*r+4&15]+Rr[e>>8*r&15];return t}function Fr(e,t){return e+t&4294967295}const Ur=$.getWebCrypto(),zr=$.getNodeCrypto(),Hr=zr&&zr.getHashes();function Vr(e){if(zr&&Hr.includes(e))return async function(t){const r=zr.createHash(e);return L(t,(e=>{r.update(e)}),(()=>new Uint8Array(r.digest())))}}function Kr(e,t){return async function(r,n=ae){if(u(r)&&(r=await G(r)),!$.isStream(r)&&Ur&&t&&r.length>=n.minBytesForWebCrypto)return new Uint8Array(await Ur.digest(t,r));const i=e();return L(r,(e=>{i.update(e)}),(()=>new Uint8Array(i.digest())))}}function Gr(e,t){return async function(r,n=ae){if(u(r)&&(r=await G(r)),$.isStream(r)){const t=new e;return L(r,(e=>{t.process(e)}),(()=>t.finish().result))}return Ur&&t&&r.length>=n.minBytesForWebCrypto?new Uint8Array(await Ur.digest(t,r)):e.bytes(r)}}const qr={md5:Vr("md5")||async function(e){const t=function(e){const t=e.length,r=[1732584193,-271733879,-1732584194,271733878];let n;for(n=64;n<=e.length;n+=64)Mr(r,Nr(e.substring(n-64,n)));e=e.substring(n-64);const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n>2]|=e.charCodeAt(n)<<(n%4<<3);if(i[n>>2]|=128<<(n%4<<3),n>55)for(Mr(r,i),n=0;n<16;n++)i[n]=0;return i[14]=8*t,Mr(r,i),r}($.uint8ArrayToString(e));return $.hexToUint8Array(function(e){for(let t=0;tnew Uint8Array(o.update(e))))}(e,t,r,n);if($.isAES(e))return function(e,t,r,n,i){if($.getWebCrypto()&&24!==t.length&&!$.isStream(r)&&r.length>=3e3*i.minBytesForWebCrypto)return async function(e,t,r,n){const i="AES-CBC",o=await Yr.importKey("raw",t,{name:i},!1,["encrypt"]),{blockSize:a}=Jr(e),s=$.concatUint8Array([new Uint8Array(a),r]),c=new Uint8Array(await Yr.encrypt({name:i,iv:n},o,s)).subarray(0,r.length);return function(e,t){for(let r=0;ro.aes.AES_Encrypt_process(e)),(()=>o.aes.AES_Encrypt_finish()))}(e,t,r,n,i);const a=new(Jr(e))(t),s=a.blockSize,c=n.slice();let u=new Uint8Array;const l=e=>{e&&(u=$.concatUint8Array([u,e]));const t=new Uint8Array(u.length);let r,n=0;for(;e?u.length>=s:u.length;){const e=a.encrypt(c);for(r=0;rnew Uint8Array(o.update(e))))}(e,t,r,n);if($.isAES(e))return function(e,t,r,n){if($.isStream(r)){const e=new Wr(t,n);return L(r,(t=>e.aes.AES_Decrypt_process(t)),(()=>e.aes.AES_Decrypt_finish()))}return Wr.decrypt(r,t,n)}(0,t,r,n);const o=new(Jr(e))(t),a=o.blockSize;let s=n,c=new Uint8Array;const u=e=>{e&&(c=$.concatUint8Array([c,e]));const t=new Uint8Array(c.length);let r,n=0;for(;e?c.length>=a:c.length;){const e=o.encrypt(s);for(s=c.subarray(0,a),r=0;r48)throw new Ee("illegal counter size");let e=Math.pow(2,r)-1;n.set_mask(0,0,e/4294967296|0,0|e)}else r=48,n.set_mask(0,0,65535,4294967295);if(void 0===e)throw Error("nonce is required");{let t=e.length;if(!t||t>16)throw new Ee("illegal nonce size");let r=new DataView(new ArrayBuffer(16));new Uint8Array(r.buffer).set(e),n.set_nonce(r.getUint32(0),r.getUint32(4),r.getUint32(8),r.getUint32(12))}if(void 0!==t){if(t<0||t>=Math.pow(2,r))throw new Ee("illegal counter value");n.set_counter(0,0,t/4294967296|0,0|t)}}}class rn{static encrypt(e,t,r=!0,n){return new rn(t,n,r).encrypt(e)}static decrypt(e,t,r=!0,n){return new rn(t,n,r).decrypt(e)}constructor(e,t,r=!0,n){this.aes=n||new ke(e,t,r,"CBC")}encrypt(e){return Ae(this.aes.AES_Encrypt_process(e),this.aes.AES_Encrypt_finish())}decrypt(e){return Ae(this.aes.AES_Decrypt_process(e),this.aes.AES_Decrypt_finish())}}const nn=$.getWebCrypto(),on=$.getNodeCrypto(),an=16;function sn(e,t){const r=e.length-an;for(let n=0;n>3),17+(u>>3)),8-(7&u)).subarray(1),h=new Uint8Array(wn),p=new Uint8Array(t.length+An);let g,m=0;for(g=0;g16)throw new Ee("illegal tagSize value");const s=t.length||0,c=new Uint8Array(16);12!==s?(this._gcm_mac_process(t),a[0]=0,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=0,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=0,a[11]=s>>>29,a[12]=s>>>21&255,a[13]=s>>>13&255,a[14]=s>>>5&255,a[15]=s<<3&255,o.mac(ye.MAC.GCM,ye.HEAP_DATA,16),o.get_iv(ye.HEAP_DATA),o.set_iv(0,0,0,0),c.set(a.subarray(0,16))):(c.set(t),c[15]=1);const u=new DataView(c.buffer);if(this.gamma0=u.getUint32(12),o.set_nonce(u.getUint32(0),u.getUint32(4),u.getUint32(8),0),o.set_mask(0,0,0,4294967295),void 0!==r){if(r.length>_n)throw new Ee("illegal adata length");r.length?(this.adata=r,this._gcm_mac_process(r)):this.adata=void 0}else this.adata=void 0;if(this.counter<1||this.counter>4294967295)throw new RangeError("counter must be a positive 32-bit integer");o.set_counter(0,0,0,this.gamma0+this.counter|0)}static encrypt(e,t,r,n,i){return new Tn(t,r,n,i).encrypt(e)}static decrypt(e,t,r,n,i){return new Tn(t,r,n,i).decrypt(e)}encrypt(e){return this.AES_GCM_encrypt(e)}decrypt(e){return this.AES_GCM_decrypt(e)}AES_GCM_Encrypt_process(e){let t=0,r=e.length||0,{asm:n,heap:i}=this.aes.acquire_asm(),o=this.counter,a=this.aes.pos,s=this.aes.len,c=0,u=s+r&-16,l=0;if((o-1<<4)+s+r>_n)throw new RangeError("counter overflow");const d=new Uint8Array(u);for(;r>0;)l=we(i,a+s,e,t,r),s+=l,t+=l,r-=l,l=n.cipher(ye.ENC.CTR,ye.HEAP_DATA+a,s),l=n.mac(ye.MAC.GCM,ye.HEAP_DATA+a,l),l&&d.set(i.subarray(a,a+l),c),o+=l>>>4,c+=l,l>>29,t[4]=u>>>21,t[5]=u>>>13&255,t[6]=u>>>5&255,t[7]=u<<3&255,t[8]=t[9]=t[10]=0,t[11]=l>>>29,t[12]=l>>>21&255,t[13]=l>>>13&255,t[14]=l>>>5&255,t[15]=l<<3&255,e.mac(ye.MAC.GCM,ye.HEAP_DATA,16),e.get_iv(ye.HEAP_DATA),e.set_counter(0,0,0,this.gamma0),e.cipher(ye.ENC.CTR,ye.HEAP_DATA,16),s.set(t.subarray(0,n),a),this.counter=1,this.aes.pos=0,this.aes.len=0,s}AES_GCM_Decrypt_process(e){let t=0,r=e.length||0,{asm:n,heap:i}=this.aes.acquire_asm(),o=this.counter,a=this.tagSize,s=this.aes.pos,c=this.aes.len,u=0,l=c+r>a?c+r-a&-16:0,d=c+r-l,f=0;if((o-1<<4)+c+r>_n)throw new RangeError("counter overflow");const h=new Uint8Array(l);for(;r>d;)f=we(i,s+c,e,t,r-d),c+=f,t+=f,r-=f,f=n.mac(ye.MAC.GCM,ye.HEAP_DATA+s,f),f=n.cipher(ye.DEC.CTR,ye.HEAP_DATA+s,f),f&&h.set(i.subarray(s,s+f),u),o+=f>>>4,u+=f,s=0,c=0;return r>0&&(c+=we(i,0,e,t,r)),this.counter=o,this.aes.pos=s,this.aes.len=c,h}AES_GCM_Decrypt_finish(){let{asm:e,heap:t}=this.aes.acquire_asm(),r=this.tagSize,n=this.adata,i=this.counter,o=this.aes.pos,a=this.aes.len,s=a-r;if(a>>29,t[4]=d>>>21,t[5]=d>>>13&255,t[6]=d>>>5&255,t[7]=d<<3&255,t[8]=t[9]=t[10]=0,t[11]=f>>>29,t[12]=f>>>21&255,t[13]=f>>>13&255,t[14]=f>>>5&255,t[15]=f<<3&255,e.mac(ye.MAC.GCM,ye.HEAP_DATA,16),e.get_iv(ye.HEAP_DATA),e.set_counter(0,0,0,this.gamma0),e.cipher(ye.ENC.CTR,ye.HEAP_DATA,16);let h=0;for(let p=0;p0;){for(o=we(r,0,e,n,i),n+=o,i-=o;15&o;)r[o++]=0;t.mac(ye.MAC.GCM,ye.HEAP_DATA,o)}}}const Mn=$.getWebCrypto(),Pn=$.getNodeCrypto(),jn=$.getNodeBuffer(),Dn=16,On="AES-GCM";async function Bn(e,t){if(e!==Y.symmetric.aes128&&e!==Y.symmetric.aes192&&e!==Y.symmetric.aes256)throw Error("GCM mode supports only AES cipher");if($.getNodeCrypto())return{encrypt:async function(e,r,n=new Uint8Array){const i=new Pn.createCipheriv("aes-"+8*t.length+"-gcm",t,r);i.setAAD(n);const o=jn.concat([i.update(e),i.final(),i.getAuthTag()]);return new Uint8Array(o)},decrypt:async function(e,r,n=new Uint8Array){const i=new Pn.createDecipheriv("aes-"+8*t.length+"-gcm",t,r);i.setAAD(n),i.setAuthTag(e.slice(e.length-Dn,e.length));const o=jn.concat([i.update(e.slice(0,e.length-Dn)),i.final()]);return new Uint8Array(o)}};if($.getWebCrypto()&&24!==t.length){const e=await Mn.importKey("raw",t,{name:On},!1,["encrypt","decrypt"]);return{encrypt:async function(r,n,i=new Uint8Array){if(!r.length)return Tn.encrypt(r,t,n,i);const o=await Mn.encrypt({name:On,iv:n,additionalData:i,tagLength:128},e,r);return new Uint8Array(o)},decrypt:async function(r,n,i=new Uint8Array){if(r.length===Dn)return Tn.decrypt(r,t,n,i);const o=await Mn.decrypt({name:On,iv:n,additionalData:i,tagLength:128},e,r);return new Uint8Array(o)}}}return{encrypt:async function(e,r,n){return Tn.encrypt(e,t,r,n)},decrypt:async function(e,r,n){return Tn.decrypt(e,t,r,n)}}}Bn.getNonce=function(e,t){const r=e.slice();for(let n=0;n>>8)-1}(e,t,r,n)}function h(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function p(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function g(e,t,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(e[o]^t[o]),e[o]^=n,t[o]^=n}function m(e,r){var n,i,o,a=t(),s=t();for(n=0;n<16;n++)s[n]=r[n];for(p(s),p(s),p(s),i=0;i<2;i++){for(a[0]=s[0]-65517,n=1;n<15;n++)a[n]=s[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,g(s,a,1-o)}for(n=0;n<16;n++)e[2*n]=255&s[n],e[2*n+1]=s[n]>>8}function y(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return m(r,e),m(n,t),f(r,0,n,0)}function b(e){var t=new Uint8Array(32);return m(t,e),1&t[0]}function v(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function w(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function A(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function C(e,t,r){var n,i,o=0,a=0,s=0,c=0,u=0,l=0,d=0,f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,A=0,C=0,E=0,x=0,S=0,I=0,k=0,_=0,T=0,M=0,P=0,j=0,D=0,O=0,B=0,N=r[0],R=r[1],L=r[2],F=r[3],U=r[4],z=r[5],H=r[6],V=r[7],K=r[8],G=r[9],q=r[10],Q=r[11],W=r[12],J=r[13],Y=r[14],Z=r[15];o+=(n=t[0])*N,a+=n*R,s+=n*L,c+=n*F,u+=n*U,l+=n*z,d+=n*H,f+=n*V,h+=n*K,p+=n*G,g+=n*q,m+=n*Q,y+=n*W,b+=n*J,v+=n*Y,w+=n*Z,a+=(n=t[1])*N,s+=n*R,c+=n*L,u+=n*F,l+=n*U,d+=n*z,f+=n*H,h+=n*V,p+=n*K,g+=n*G,m+=n*q,y+=n*Q,b+=n*W,v+=n*J,w+=n*Y,A+=n*Z,s+=(n=t[2])*N,c+=n*R,u+=n*L,l+=n*F,d+=n*U,f+=n*z,h+=n*H,p+=n*V,g+=n*K,m+=n*G,y+=n*q,b+=n*Q,v+=n*W,w+=n*J,A+=n*Y,C+=n*Z,c+=(n=t[3])*N,u+=n*R,l+=n*L,d+=n*F,f+=n*U,h+=n*z,p+=n*H,g+=n*V,m+=n*K,y+=n*G,b+=n*q,v+=n*Q,w+=n*W,A+=n*J,C+=n*Y,E+=n*Z,u+=(n=t[4])*N,l+=n*R,d+=n*L,f+=n*F,h+=n*U,p+=n*z,g+=n*H,m+=n*V,y+=n*K,b+=n*G,v+=n*q,w+=n*Q,A+=n*W,C+=n*J,E+=n*Y,x+=n*Z,l+=(n=t[5])*N,d+=n*R,f+=n*L,h+=n*F,p+=n*U,g+=n*z,m+=n*H,y+=n*V,b+=n*K,v+=n*G,w+=n*q,A+=n*Q,C+=n*W,E+=n*J,x+=n*Y,S+=n*Z,d+=(n=t[6])*N,f+=n*R,h+=n*L,p+=n*F,g+=n*U,m+=n*z,y+=n*H,b+=n*V,v+=n*K,w+=n*G,A+=n*q,C+=n*Q,E+=n*W,x+=n*J,S+=n*Y,I+=n*Z,f+=(n=t[7])*N,h+=n*R,p+=n*L,g+=n*F,m+=n*U,y+=n*z,b+=n*H,v+=n*V,w+=n*K,A+=n*G,C+=n*q,E+=n*Q,x+=n*W,S+=n*J,I+=n*Y,k+=n*Z,h+=(n=t[8])*N,p+=n*R,g+=n*L,m+=n*F,y+=n*U,b+=n*z,v+=n*H,w+=n*V,A+=n*K,C+=n*G,E+=n*q,x+=n*Q,S+=n*W,I+=n*J,k+=n*Y,_+=n*Z,p+=(n=t[9])*N,g+=n*R,m+=n*L,y+=n*F,b+=n*U,v+=n*z,w+=n*H,A+=n*V,C+=n*K,E+=n*G,x+=n*q,S+=n*Q,I+=n*W,k+=n*J,_+=n*Y,T+=n*Z,g+=(n=t[10])*N,m+=n*R,y+=n*L,b+=n*F,v+=n*U,w+=n*z,A+=n*H,C+=n*V,E+=n*K,x+=n*G,S+=n*q,I+=n*Q,k+=n*W,_+=n*J,T+=n*Y,M+=n*Z,m+=(n=t[11])*N,y+=n*R,b+=n*L,v+=n*F,w+=n*U,A+=n*z,C+=n*H,E+=n*V,x+=n*K,S+=n*G,I+=n*q,k+=n*Q,_+=n*W,T+=n*J,M+=n*Y,P+=n*Z,y+=(n=t[12])*N,b+=n*R,v+=n*L,w+=n*F,A+=n*U,C+=n*z,E+=n*H,x+=n*V,S+=n*K,I+=n*G,k+=n*q,_+=n*Q,T+=n*W,M+=n*J,P+=n*Y,j+=n*Z,b+=(n=t[13])*N,v+=n*R,w+=n*L,A+=n*F,C+=n*U,E+=n*z,x+=n*H,S+=n*V,I+=n*K,k+=n*G,_+=n*q,T+=n*Q,M+=n*W,P+=n*J,j+=n*Y,D+=n*Z,v+=(n=t[14])*N,w+=n*R,A+=n*L,C+=n*F,E+=n*U,x+=n*z,S+=n*H,I+=n*V,k+=n*K,_+=n*G,T+=n*q,M+=n*Q,P+=n*W,j+=n*J,D+=n*Y,O+=n*Z,w+=(n=t[15])*N,a+=38*(C+=n*L),s+=38*(E+=n*F),c+=38*(x+=n*U),u+=38*(S+=n*z),l+=38*(I+=n*H),d+=38*(k+=n*V),f+=38*(_+=n*K),h+=38*(T+=n*G),p+=38*(M+=n*q),g+=38*(P+=n*Q),m+=38*(j+=n*W),y+=38*(D+=n*J),b+=38*(O+=n*Y),v+=38*(B+=n*Z),o=(n=(o+=38*(A+=n*R))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=c,e[4]=u,e[5]=l,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function E(e,t){C(e,t,t)}function x(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)E(i,i),2!==n&&4!==n&&C(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function S(e,r,n){var i,o,s=new Uint8Array(32),c=new Float64Array(80),u=t(),l=t(),d=t(),f=t(),h=t(),p=t();for(o=0;o<31;o++)s[o]=r[o];for(s[31]=127&r[31]|64,s[0]&=248,v(c,n),o=0;o<16;o++)l[o]=c[o],f[o]=u[o]=d[o]=0;for(u[0]=f[0]=1,o=254;o>=0;--o)g(u,l,i=s[o>>>3]>>>(7&o)&1),g(d,f,i),w(h,u,d),A(u,u,d),w(d,l,f),A(l,l,f),E(f,h),E(p,u),C(u,d,u),C(d,l,h),w(h,u,d),A(u,u,d),E(l,u),A(d,f,p),C(u,d,a),w(u,u,f),C(d,d,u),C(u,f,p),C(f,l,c),E(l,h),g(u,l,i),g(d,f,i);for(o=0;o<16;o++)c[o+16]=u[o],c[o+32]=d[o],c[o+48]=l[o],c[o+64]=f[o];var y=c.subarray(32),b=c.subarray(16);return x(y,y),C(b,b,y),m(e,b),0}function I(e,t){return S(e,t,n)}function k(e,r){var n=t(),i=t(),o=t(),a=t(),s=t(),u=t(),l=t(),d=t(),f=t();A(n,e[1],e[0]),A(f,r[1],r[0]),C(n,n,f),w(i,e[0],e[1]),w(f,r[0],r[1]),C(i,i,f),C(o,e[3],r[3]),C(o,o,c),C(a,e[2],r[2]),w(a,a,a),A(s,i,n),A(u,a,o),w(l,a,o),w(d,i,n),C(e[0],s,u),C(e[1],d,l),C(e[2],l,u),C(e[3],s,d)}function _(e,t,r){var n;for(n=0;n<4;n++)g(e[n],t[n],r)}function T(e,r){var n=t(),i=t(),o=t();x(o,r[2]),C(n,r[0],o),C(i,r[1],o),m(e,i),e[31]^=b(n)<<7}function M(e,t,r){var n,a;for(h(e[0],i),h(e[1],o),h(e[2],o),h(e[3],i),a=255;a>=0;--a)_(e,t,n=r[a/8|0]>>(7&a)&1),k(t,e),k(e,e),_(e,t,n)}function P(e,r){var n=[t(),t(),t(),t()];h(n[0],u),h(n[1],l),h(n[2],o),C(n[3],u,l),M(e,n,r)}function j(n,i,o){var a,s,c=[t(),t(),t(),t()];for(o||r(i,32),(a=e.hash(i.subarray(0,32)))[0]&=248,a[31]&=127,a[31]|=64,P(c,a),T(n,c),s=0;s<32;s++)i[s+32]=n[s];return 0}var D=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 O(e,t){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i>4)*D[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*D[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function B(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;O(e,r)}function N(e,r){var n=t(),a=t(),c=t(),u=t(),l=t(),f=t(),p=t();return h(e[2],o),v(e[1],r),E(c,e[1]),C(u,c,s),A(c,c,e[2]),w(u,e[2],u),E(l,u),E(f,l),C(p,f,l),C(n,p,c),C(n,n,u),function(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)E(i,i),1!==n&&C(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}(n,n),C(n,n,c),C(n,n,u),C(n,n,u),C(e[0],n,u),E(a,e[0]),C(a,a,u),y(a,c)&&C(e[0],e[0],d),E(a,e[0]),C(a,a,u),y(a,c)?-1:(b(e[0])===r[31]>>7&&A(e[0],i,e[0]),C(e[3],e[0],e[1]),0)}var R=64;function L(){for(var e=0;e=0},e.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return j(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(L(e),64!==e.length)throw Error("bad secret key size");for(var t=new Uint8Array(32),r=0;re&&(c.imod(o.leftShift(i)).iadd(o),u=c.mod(a).toNumber())}while(!await Vn(c,t,r));return c}async function Vn(e,t,r){return!(t&&!e.dec().gcd(t).isOne()||!await async function(e){const t=await $.getBigInteger();return Kn.every((r=>0!==e.mod(new t(r))))}(e)||!await async function(e,t){const r=await $.getBigInteger();return(t=t||new r(2)).modExp(e.dec(),e).isOne()}(e)||!await async function(e,t){const r=await $.getBigInteger(),n=e.bitLength();t||(t=Math.max(1,n/48|0));const i=e.dec();let o=0;for(;!i.getBit(o);)o++;const a=e.rightShift(new r(o));for(;t>0;t--){let t,n=(await Un(new r(2),i)).modExp(a,e);if(!n.isOne()&&!n.equal(i)){for(t=1;tt-11)throw Error("Message too long");const n=function(e){const t=new Uint8Array(e);let r=0;for(;r=8&!n;if(t)return $.selectUint8Array(a,o,t);if(a)return o;throw Error("Decryption error")}async function Wn(e,t,r){let n;if(t.length!==Qr.getHashByteLength(e))throw Error("Invalid hash length");const i=new Uint8Array(Gn[e].length);for(n=0;n{Zn.generateKeyPair("rsa",r,((r,n,i)=>{r?t(r):e(Xn.decode(i,"der"))}))}));return{n:n.modulus.toArrayLike(Uint8Array),e:n.publicExponent.toArrayLike(Uint8Array),d:n.privateExponent.toArrayLike(Uint8Array),p:n.prime2.toArrayLike(Uint8Array),q:n.prime1.toArrayLike(Uint8Array),u:n.coefficient.toArrayLike(Uint8Array)}}let r,n,i;do{n=await Hn(e-(e>>1),t,40),r=await Hn(e>>1,t,40),i=r.mul(n)}while(i.bitLength()!==e);const o=r.dec().imul(n.dec());return n.lt(r)&&([r,n]=[n,r]),{n:i.toUint8Array(),e:t.toUint8Array(),d:t.modInv(o).toUint8Array(),p:r.toUint8Array(),q:n.toUint8Array(),u:r.modInv(n).toUint8Array()}},validateParams:async function(e,t,r,n,i,o){const a=await $.getBigInteger();if(e=new a(e),n=new a(n),i=new a(i),!n.mul(i).equal(e))return!1;const s=new a(2);if(o=new a(o),!n.mul(o).mod(i).isOne())return!1;t=new a(t),r=new a(r);const c=new a(Math.floor(e.bitLength()/3)),u=await Un(s,s.leftShift(c)),l=u.mul(r).mul(t);return!(!l.mod(n.dec()).equal(u)||!l.mod(i.dec()).equal(u))}}),ri=Object.freeze({__proto__:null,encrypt:async function(e,t,r,n){const i=await $.getBigInteger();t=new i(t),r=new i(r),n=new i(n);const o=new i(qn(e,t.byteLength())),a=await Un(new i(1),t.dec());return{c1:r.modExp(a,t).toUint8Array(),c2:n.modExp(a,t).imul(o).imod(t).toUint8Array()}},decrypt:async function(e,t,r,n,i){const o=await $.getBigInteger();return e=new o(e),t=new o(t),r=new o(r),n=new o(n),Qn(e.modExp(n,r).modInv(r).imul(t).imod(r).toUint8Array("be",r.byteLength()),i)},validateParams:async function(e,t,r,n){const i=await $.getBigInteger();e=new i(e),t=new i(t),r=new i(r);const o=new i(1);if(t.lte(o)||t.gte(e))return!1;const a=new i(e.bitLength()),s=new i(1023);if(a.lt(s))return!1;if(!t.modExp(e.dec(),e).isOne())return!1;let c=t;const u=new i(1),l=new i(2).leftShift(new i(17));for(;u.lt(l);){if(c=c.mul(t).imod(e),c.isOne())return!1;u.iinc()}n=new i(n);const d=new i(2),f=await Un(d.leftShift(a.dec()),d.leftShift(a)),h=e.dec().imul(f).iadd(n);return!!r.equal(t.modExp(h,e))}});class ni{constructor(e){if(e instanceof ni)this.oid=e.oid;else if($.isArray(e)||$.isUint8Array(e)){if(6===(e=new Uint8Array(e))[0]){if(e[1]!==e.length-2)throw Error("Length mismatch in DER encoded oid");e=e.subarray(2)}this.oid=e}else this.oid=""}read(e){if(e.length>=1){const t=e[0];if(e.length>=1+t)return this.oid=e.subarray(1,1+t),1+this.oid.length}throw Error("Invalid oid")}write(){return $.concatUint8Array([new Uint8Array([this.oid.length]),this.oid])}toHex(){return $.uint8ArrayToHex(this.oid)}getName(){const e=this.toHex();if(Y.curve[e])return Y.write(Y.curve,e);throw Error("Unknown curve object identifier.")}}function ii(e,t){return e.keyPair({priv:t})}function oi(e,t){const r=e.keyPair({pub:t});if(!0!==r.validate().result)throw Error("Invalid elliptic public key");return r}async function ai(e){if(!ae.useIndutnyElliptic)throw Error("This curve is only supported in the full build of OpenPGP.js");const{default:t}=await Promise.resolve().then((function(){return Hp}));return new t.ec(e)}function si(e){let t,r=0;const n=e[0];return n<192?([r]=e,t=1):n<255?(r=(e[0]-192<<8)+e[1]+192,t=2):255===n&&(r=$.readNumber(e.subarray(1,5)),t=5),{len:r,offset:t}}function ci(e){return e<192?new Uint8Array([e]):e>191&&e<8384?new Uint8Array([192+(e-192>>8),e-192&255]):$.concatUint8Array([new Uint8Array([255]),$.writeNumber(e,4)])}function ui(e){if(e<0||e>30)throw Error("Partial Length power must be between 1 and 30");return new Uint8Array([224+e])}function li(e){return new Uint8Array([192|e])}function di(e,t){return $.concatUint8Array([li(e),ci(t)])}function fi(e){return[Y.packet.literalData,Y.packet.compressedData,Y.packet.symmetricallyEncryptedData,Y.packet.symEncryptedIntegrityProtectedData,Y.packet.aeadEncryptedData].includes(e)}async function hi(e,t){const r=D(e);let n,i;try{const o=await r.peekBytes(2);if(!o||o.length<2||!(128&o[0]))throw Error("Error during parsing. This message / key probably does not conform to a valid OpenPGP format.");const a=await r.readByte();let s,u,l=-1,d=-1;d=0,!!(64&a)&&(d=1),d?l=63&a:(l=(63&a)>>2,u=3&a);const f=fi(l);let h,p=null;if(f){if("array"===$.isStream(e)){const e=new c;n=O(e),p=e}else{const e=new k;n=O(e.writable),p=e.readable}i=t({tag:l,packet:p})}else p=[];do{if(d){const e=await r.readByte();if(h=!1,e<192)s=e;else if(e>=192&&e<224)s=(e-192<<8)+await r.readByte()+192;else if(e>223&&e<255){if(s=1<<(31&e),h=!0,!f)throw new TypeError("This packet type does not support partial lengths.")}else s=await r.readByte()<<24|await r.readByte()<<16|await r.readByte()<<8|await r.readByte()}else switch(u){case 0:s=await r.readByte();break;case 1:s=await r.readByte()<<8|await r.readByte();break;case 2:s=await r.readByte()<<24|await r.readByte()<<16|await r.readByte()<<8|await r.readByte();break;default:s=1/0}if(s>0){let e=0;for(;;){n&&await n.ready;const{done:t,value:i}=await r.read();if(t){if(s===1/0)break;throw Error("Unexpected end of packet")}const o=s===1/0?i:i.subarray(0,s-e);if(n?await n.write(o):p.push(o),e+=i.length,e>=s){r.unshift(i.subarray(s-e+i.length));break}}}}while(h);const g=await r.peekBytes(f?1/0:2);return n?(await n.ready,await n.close()):(p=$.concatUint8Array(p),await t({tag:l,packet:p})),!g||!g.length}catch(e){if(n)return await n.abort(e),!0;throw e}finally{n&&await i,r.releaseLock()}}class pi extends Error{constructor(...e){super(...e),Error.captureStackTrace&&Error.captureStackTrace(this,pi),this.name="UnsupportedError"}}class gi{constructor(e,t){this.tag=e,this.rawContent=t}write(){return this.rawContent}}const mi=$.getWebCrypto(),yi=$.getNodeCrypto(),bi={p256:"P-256",p384:"P-384",p521:"P-521"},vi=yi?yi.getCurves():[],wi=yi?{secp256k1:vi.includes("secp256k1")?"secp256k1":void 0,p256:vi.includes("prime256v1")?"prime256v1":void 0,p384:vi.includes("secp384r1")?"secp384r1":void 0,p521:vi.includes("secp521r1")?"secp521r1":void 0,ed25519:vi.includes("ED25519")?"ED25519":void 0,curve25519:vi.includes("X25519")?"X25519":void 0,brainpoolP256r1:vi.includes("brainpoolP256r1")?"brainpoolP256r1":void 0,brainpoolP384r1:vi.includes("brainpoolP384r1")?"brainpoolP384r1":void 0,brainpoolP512r1:vi.includes("brainpoolP512r1")?"brainpoolP512r1":void 0}:{},Ai={p256:{oid:[6,8,42,134,72,206,61,3,1,7],keyType:Y.publicKey.ecdsa,hash:Y.hash.sha256,cipher:Y.symmetric.aes128,node:wi.p256,web:bi.p256,payloadSize:32,sharedSize:256},p384:{oid:[6,5,43,129,4,0,34],keyType:Y.publicKey.ecdsa,hash:Y.hash.sha384,cipher:Y.symmetric.aes192,node:wi.p384,web:bi.p384,payloadSize:48,sharedSize:384},p521:{oid:[6,5,43,129,4,0,35],keyType:Y.publicKey.ecdsa,hash:Y.hash.sha512,cipher:Y.symmetric.aes256,node:wi.p521,web:bi.p521,payloadSize:66,sharedSize:528},secp256k1:{oid:[6,5,43,129,4,0,10],keyType:Y.publicKey.ecdsa,hash:Y.hash.sha256,cipher:Y.symmetric.aes128,node:wi.secp256k1,payloadSize:32},ed25519:{oid:[6,9,43,6,1,4,1,218,71,15,1],keyType:Y.publicKey.eddsaLegacy,hash:Y.hash.sha512,node:!1,payloadSize:32},curve25519:{oid:[6,10,43,6,1,4,1,151,85,1,5,1],keyType:Y.publicKey.ecdh,hash:Y.hash.sha256,cipher:Y.symmetric.aes128,node:!1,payloadSize:32},brainpoolP256r1:{oid:[6,9,43,36,3,3,2,8,1,1,7],keyType:Y.publicKey.ecdsa,hash:Y.hash.sha256,cipher:Y.symmetric.aes128,node:wi.brainpoolP256r1,payloadSize:32},brainpoolP384r1:{oid:[6,9,43,36,3,3,2,8,1,1,11],keyType:Y.publicKey.ecdsa,hash:Y.hash.sha384,cipher:Y.symmetric.aes192,node:wi.brainpoolP384r1,payloadSize:48},brainpoolP512r1:{oid:[6,9,43,36,3,3,2,8,1,1,13],keyType:Y.publicKey.ecdsa,hash:Y.hash.sha512,cipher:Y.symmetric.aes256,node:wi.brainpoolP512r1,payloadSize:64}};class Ci{constructor(e,t){try{($.isArray(e)||$.isUint8Array(e))&&(e=new ni(e)),e instanceof ni&&(e=e.getName()),this.name=Y.write(Y.curve,e)}catch(e){throw new pi("Unknown curve")}t=t||Ai[this.name],this.keyType=t.keyType,this.oid=t.oid,this.hash=t.hash,this.cipher=t.cipher,this.node=t.node&&Ai[this.name],this.web=t.web&&Ai[this.name],this.payloadSize=t.payloadSize,this.web&&$.getWebCrypto()?this.type="web":this.node&&$.getNodeCrypto()?this.type="node":"curve25519"===this.name?this.type="curve25519":"ed25519"===this.name&&(this.type="ed25519")}async genKeyPair(){let e;switch(this.type){case"web":try{return await async function(e){const t=await mi.generateKey({name:"ECDSA",namedCurve:bi[e]},!0,["sign","verify"]),r=await mi.exportKey("jwk",t.privateKey);return{publicKey:xi(await mi.exportKey("jwk",t.publicKey)),privateKey:ie(r.d)}}(this.name)}catch(e){$.printDebugError("Browser did not support generating ec key "+e.message);break}case"node":return async function(e){const t=yi.createECDH(wi[e]);return await t.generateKeys(),{publicKey:new Uint8Array(t.getPublicKey()),privateKey:new Uint8Array(t.getPrivateKey())}}(this.name);case"curve25519":{const t=Fn(32);t[0]=127&t[0]|64,t[31]&=248;const r=t.slice().reverse();return e=Rn.box.keyPair.fromSecretKey(r),{publicKey:$.concatUint8Array([new Uint8Array([64]),e.publicKey]),privateKey:t}}case"ed25519":{const e=Fn(32),t=Rn.sign.keyPair.fromSeed(e);return{publicKey:$.concatUint8Array([new Uint8Array([64]),t.publicKey]),privateKey:e}}}const t=await ai(this.name);return e=await t.genKeyPair({entropy:$.uint8ArrayToString(Fn(32))}),{publicKey:new Uint8Array(e.getPublic("array",!1)),privateKey:e.getPrivate().toArrayLike(Uint8Array)}}}async function Ei(e,t,r,n){const i={p256:!0,p384:!0,p521:!0,secp256k1:!0,curve25519:e===Y.publicKey.ecdh,brainpoolP256r1:!0,brainpoolP384r1:!0,brainpoolP512r1:!0},o=t.getName();if(!i[o])return!1;if("curve25519"===o){n=n.slice().reverse();const{publicKey:e}=Rn.box.keyPair.fromSecretKey(n);r=new Uint8Array(r);const t=new Uint8Array([64,...e]);return!!$.equalsUint8Array(t,r)}const a=await ai(o);try{r=oi(a,r).getPublic()}catch(e){return!1}return!!ii(a,n).getPublic().eq(r)}function xi(e){const t=ie(e.x),r=ie(e.y),n=new Uint8Array(t.length+r.length+1);return n[0]=4,n.set(t,1),n.set(r,t.length+1),n}function Si(e,t,r){const n=e,i=r.slice(1,n+1),o=r.slice(n+1,2*n+1);return{kty:"EC",crv:t,x:oe(i,!0),y:oe(o,!0),ext:!0}}function Ii(e,t,r,n){const i=Si(e,t,r);return i.d=oe(n,!0),i}const ki=$.getWebCrypto(),_i=$.getNodeCrypto();async function Ti(e,t,r,n,i,o){const a=new Ci(e);if(r&&!$.isStream(r)){const o={publicKey:n,privateKey:i};switch(a.type){case"web":try{return await async function(e,t,r,n){const i=e.payloadSize,o=Ii(e.payloadSize,bi[e.name],n.publicKey,n.privateKey),a=await ki.importKey("jwk",o,{name:"ECDSA",namedCurve:bi[e.name],hash:{name:Y.read(Y.webHash,e.hash)}},!1,["sign"]),s=new Uint8Array(await ki.sign({name:"ECDSA",namedCurve:bi[e.name],hash:{name:Y.read(Y.webHash,t)}},a,r));return{r:s.slice(0,i),s:s.slice(i,i<<1)}}(a,t,r,o)}catch(e){if("p521"!==a.name&&("DataError"===e.name||"OperationError"===e.name))throw e;$.printDebugError("Browser did not support signing: "+e.message)}break;case"node":{const e=await async function(e,t,r,n){const i=_i.createSign(Y.read(Y.hash,t));i.write(r),i.end();const o=Di.encode({version:1,parameters:e.oid,privateKey:Array.from(n.privateKey),publicKey:{unused:0,data:Array.from(n.publicKey)}},"pem",{label:"EC PRIVATE KEY"});return ji.decode(i.sign(o),"der")}(a,t,r,o);return{r:e.r.toArrayLike(Uint8Array),s:e.s.toArrayLike(Uint8Array)}}}}return async function(e,t,r){const n=ii(await ai(e.name),r).sign(t);return{r:n.r.toArrayLike(Uint8Array),s:n.s.toArrayLike(Uint8Array)}}(a,o,i)}async function Mi(e,t,r,n,i,o){const a=new Ci(e);if(n&&!$.isStream(n))switch(a.type){case"web":try{return await async function(e,t,{r:r,s:n},i,o){const a=Si(e.payloadSize,bi[e.name],o),s=await ki.importKey("jwk",a,{name:"ECDSA",namedCurve:bi[e.name],hash:{name:Y.read(Y.webHash,e.hash)}},!1,["verify"]),c=$.concatUint8Array([r,n]).buffer;return ki.verify({name:"ECDSA",namedCurve:bi[e.name],hash:{name:Y.read(Y.webHash,t)}},s,c,i)}(a,t,r,n,i)}catch(e){if("p521"!==a.name&&("DataError"===e.name||"OperationError"===e.name))throw e;$.printDebugError("Browser did not support verifying: "+e.message)}break;case"node":return async function(e,t,{r:r,s:n},i,o){const{default:a}=await Promise.resolve().then((function(){return Eh})),s=_i.createVerify(Y.read(Y.hash,t));s.write(i),s.end();const c=Bi.encode({algorithm:{algorithm:[1,2,840,10045,2,1],parameters:e.oid},subjectPublicKey:{unused:0,data:Array.from(o)}},"pem",{label:"PUBLIC KEY"}),u=ji.encode({r:new a(r),s:new a(n)},"der");try{return s.verify(c,u)}catch(e){return!1}}(a,t,r,n,i)}return async function(e,t,r,n){return oi(await ai(e.name),n).verify(r,t)}(a,r,void 0===t?n:o,i)}const Pi=void 0,ji=_i?Pi.define("ECDSASignature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())})):void 0,Di=_i?Pi.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").explicit(0).optional().any(),this.key("publicKey").explicit(1).optional().bitstr())})):void 0,Oi=_i?Pi.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())})):void 0,Bi=_i?Pi.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(Oi),this.key("subjectPublicKey").bitstr())})):void 0;var Ni=Object.freeze({__proto__:null,sign:Ti,verify:Mi,validateParams:async function(e,t,r){const n=new Ci(e);if(n.keyType!==Y.publicKey.ecdsa)return!1;switch(n.type){case"web":case"node":{const n=Fn(8),i=Y.hash.sha256,o=await Qr.digest(i,n);try{const a=await Ti(e,i,n,t,r,o);return await Mi(e,i,a,n,t,o)}catch(e){return!1}}default:return Ei(Y.publicKey.ecdsa,e,t,r)}}});Rn.hash=e=>new Uint8Array(er().update(e).digest());var Ri=Object.freeze({__proto__:null,sign:async function(e,t,r,n,i,o){if(Qr.getHashByteLength(t)new Uint8Array(er().update(e).digest());var Fi=Object.freeze({__proto__:null,generate:async function(e){if(e===Y.publicKey.ed25519){const e=Fn(32),{publicKey:t}=Rn.sign.keyPair.fromSeed(e);return{A:t,seed:e}}throw Error("Unsupported EdDSA algorithm")},sign:async function(e,t,r,n,i,o){if(Qr.getHashByteLength(t)=0;--l)for(let e=s-1;e>=0;--e)c[1]=s*l+(e+1),u[0]=o[0]^c[0],u[1]=o[1]^c[1],u[2]=a[2*e],u[3]=a[2*e+1],u=Hi(r.decrypt(Vi(u))),o=u.subarray(0,2),a[2*e]=u[2],a[2*e+1]=u[3];if(o[0]===n[0]&&o[1]===n[1])return Vi(a);throw Error("Key Data Integrity failed")}function Hi(e){const{length:t}=e,r=function(e){if($.isString(e)){const{length:t}=e,r=new ArrayBuffer(t),n=new Uint8Array(r);for(let i=0;i0){const r=e[t-1];if(r>=1){const n=e.subarray(t-r),i=new Uint8Array(r).fill(r);if($.equalsUint8Array(n,i))return e.subarray(0,t-r)}}throw Error("Invalid padding")}var Qi=Object.freeze({__proto__:null,encode:Gi,decode:qi});const Wi=$.getWebCrypto(),Ji=$.getNodeCrypto();function Yi(e,t,r,n){return $.concatUint8Array([t.write(),new Uint8Array([e]),r.write(),$.stringToUint8Array("Anonymous Sender "),n.subarray(0,20)])}async function Zi(e,t,r,n,i=!1,o=!1){let a;if(i){for(a=0;a=0&&0===t[a];a--);t=t.subarray(0,a+1)}return(await Qr.digest(e,$.concatUint8Array([new Uint8Array([0,0,0,1]),t,n]))).subarray(0,r)}async function $i(e,t,r,n){if(n.length!==e.payloadSize){const t=new Uint8Array(e.payloadSize);t.set(n,e.payloadSize-n.length),n=t}switch(e.type){case"curve25519":{const e=n.slice().reverse();return{secretKey:e,sharedKey:Rn.scalarMult(e,t.subarray(1))}}case"web":if(e.web&&$.getWebCrypto())try{return await async function(e,t,r,n){const i=Ii(e.payloadSize,e.web.web,r,n);let o=Wi.importKey("jwk",i,{name:"ECDH",namedCurve:e.web.web},!0,["deriveKey","deriveBits"]);const a=Si(e.payloadSize,e.web.web,t);let s=Wi.importKey("jwk",a,{name:"ECDH",namedCurve:e.web.web},!0,[]);[o,s]=await Promise.all([o,s]);let c=Wi.deriveBits({name:"ECDH",namedCurve:e.web.web,public:s},o,e.web.sharedSize),u=Wi.exportKey("jwk",o);[c,u]=await Promise.all([c,u]);const l=new Uint8Array(c);return{secretKey:ie(u.d),sharedKey:l}}(e,t,r,n)}catch(e){$.printDebugError(e)}break;case"node":return async function(e,t,r){const n=Ji.createECDH(e.node.node);n.setPrivateKey(r);const i=new Uint8Array(n.computeSecret(t));return{secretKey:new Uint8Array(n.getPrivateKey()),sharedKey:i}}(e,t,n)}return async function(e,t,r){const n=await ai(e.name);t=oi(n,t),r=ii(n,r);const i=new Uint8Array(r.getPrivate()),o=r.derive(t.getPublic()),a=n.curve.p.byteLength();return{secretKey:i,sharedKey:o.toArrayLike(Uint8Array,"be",a)}}(e,t,n)}var Xi=Object.freeze({__proto__:null,validateParams:async function(e,t,r){return Ei(Y.publicKey.ecdh,e,t,r)},encrypt:async function(e,t,r,n,i){const o=Gi(r),a=new Ci(e),{publicKey:s,sharedKey:c}=await async function(e,t){switch(e.type){case"curve25519":{const r=Fn(32),{secretKey:n,sharedKey:i}=await $i(e,t,null,r);let{publicKey:o}=Rn.box.keyPair.fromSecretKey(n);return o=$.concatUint8Array([new Uint8Array([64]),o]),{publicKey:o,sharedKey:i}}case"web":if(e.web&&$.getWebCrypto())try{return await async function(e,t){const r=Si(e.payloadSize,e.web.web,t);let n=Wi.generateKey({name:"ECDH",namedCurve:e.web.web},!0,["deriveKey","deriveBits"]),i=Wi.importKey("jwk",r,{name:"ECDH",namedCurve:e.web.web},!1,[]);[n,i]=await Promise.all([n,i]);let o=Wi.deriveBits({name:"ECDH",namedCurve:e.web.web,public:i},n.privateKey,e.web.sharedSize),a=Wi.exportKey("jwk",n.publicKey);[o,a]=await Promise.all([o,a]);const s=new Uint8Array(o);return{publicKey:new Uint8Array(xi(a)),sharedKey:s}}(e,t)}catch(e){$.printDebugError(e)}break;case"node":return async function(e,t){const r=Ji.createECDH(e.node.node);r.generateKeys();const n=new Uint8Array(r.computeSecret(t));return{publicKey:new Uint8Array(r.getPublicKey()),sharedKey:n}}(e,t)}return async function(e,t){const r=await ai(e.name),n=await e.genKeyPair();t=oi(r,t);const i=ii(r,n.privateKey),o=n.publicKey,a=i.derive(t.getPublic()),s=r.curve.p.byteLength();return{publicKey:o,sharedKey:a.toArrayLike(Uint8Array,"be",s)}}(e,t)}(a,n),u=Yi(Y.publicKey.ecdh,e,t,i),{keySize:l}=Jr(t.cipher);return{publicKey:s,wrappedKey:Ui(await Zi(t.hash,c,l,u),o)}},decrypt:async function(e,t,r,n,i,o,a){const s=new Ci(e),{sharedKey:c}=await $i(s,r,i,o),u=Yi(Y.publicKey.ecdh,e,t,a),{keySize:l}=Jr(t.cipher);let d;for(let f=0;f<3;f++)try{return qi(zi(await Zi(t.hash,c,l,u,1===f,2===f),n))}catch(e){d=e}throw d}});const eo=$.getWebCrypto(),to=$.getNodeCrypto(),ro=to&&to.webcrypto&&to.webcrypto.subtle;async function no(e,t,r,n,i){const o=Y.read(Y.webHash,e);if(!o)throw Error("Hash algo not supported with HKDF");if(eo||ro){const e=eo||ro,a=await e.importKey("raw",t,"HKDF",!1,["deriveBits"]),s=await e.deriveBits({name:"HKDF",hash:o,salt:r,info:n},a,8*i);return new Uint8Array(s)}if(to){const o=Y.read(Y.hash,e),a=(e,t)=>to.createHmac(o,e).update(t).digest(),s=a(r,t),c=s.length,u=Math.ceil(i/c),l=new Uint8Array(u*c),d=new Uint8Array(c+n.length+1);d.set(n,c);for(let e=0;e0?d:d.subarray(c));d.set(t,0),l.set(t,e*c)}return l.subarray(0,i)}throw Error("No HKDF implementation available")}const io={x25519:$.encodeUTF8("OpenPGP X25519")};var oo=Object.freeze({__proto__:null,generate:async function(e){if(e===Y.publicKey.x25519){const e=Fn(32),{publicKey:t}=Rn.box.keyPair.fromSecretKey(e);return{A:t,k:e}}throw Error("Unsupported ECDH algorithm")},validateParams:async function(e,t,r){if(e===Y.publicKey.x25519){const{publicKey:e}=Rn.box.keyPair.fromSecretKey(r);return $.equalsUint8Array(t,e)}return!1},encrypt:async function(e,t,r){if(e===Y.publicKey.x25519){const e=Fn(32),n=Rn.scalarMult(e,r),{publicKey:i}=Rn.box.keyPair.fromSecretKey(e),o=$.concatUint8Array([i,r,n]),{keySize:a}=Jr(Y.symmetric.aes128);return{ephemeralPublicKey:i,wrappedKey:Ui(await no(Y.hash.sha256,o,new Uint8Array,io.x25519,a),t)}}throw Error("Unsupported ECDH algorithm")},decrypt:async function(e,t,r,n,i){if(e===Y.publicKey.x25519){const e=Rn.scalarMult(i,t),o=$.concatUint8Array([t,n,e]),{keySize:a}=Jr(Y.symmetric.aes128);return zi(await no(Y.hash.sha256,o,new Uint8Array,io.x25519,a),r)}throw Error("Unsupported ECDH algorithm")}}),ao=Object.freeze({__proto__:null,CurveWithOID:Ci,ecdh:Xi,ecdhX:oo,ecdsa:Ni,eddsaLegacy:Ri,eddsa:Fi,generate:async function(e){const t=await $.getBigInteger();e=new Ci(e);const r=await e.genKeyPair(),n=new t(r.publicKey).toUint8Array(),i=new t(r.privateKey).toUint8Array("be",e.payloadSize);return{oid:e.oid,Q:n,secret:i,hash:e.hash,cipher:e.cipher}},getPreferredHashAlgo:function(e){return Ai[Y.write(Y.curve,e.toHex())].hash}}),so=Object.freeze({__proto__:null,sign:async function(e,t,r,n,i,o){const a=await $.getBigInteger(),s=new a(1);let c,u,l,d;n=new a(n),i=new a(i),r=new a(r),o=new a(o),r=r.mod(n),o=o.mod(i);const f=new a(t.subarray(0,i.byteLength())).mod(i);for(;;){if(c=await Un(s,i),u=r.modExp(c,n).imod(i),u.isZero())continue;const e=o.mul(u).imod(i);if(d=f.add(e).imod(i),l=c.modInv(i).imul(d).imod(i),!l.isZero())break}return{r:u.toUint8Array("be",i.byteLength()),s:l.toUint8Array("be",i.byteLength())}},verify:async function(e,t,r,n,i,o,a,s){const c=await $.getBigInteger(),u=new c(0);if(t=new c(t),r=new c(r),o=new c(o),a=new c(a),i=new c(i),s=new c(s),t.lte(u)||t.gte(a)||r.lte(u)||r.gte(a))return $.printDebug("invalid DSA Signature"),!1;const l=new c(n.subarray(0,a.byteLength())).imod(a),d=r.modInv(a);if(d.isZero())return $.printDebug("invalid DSA Signature"),!1;i=i.mod(o),s=s.mod(o);const f=l.mul(d).imod(a),h=t.mul(d).imod(a),p=i.modExp(f,o),g=s.modExp(h,o);return p.mul(g).imod(o).imod(a).equal(t)},validateParams:async function(e,t,r,n,i){const o=await $.getBigInteger();e=new o(e),t=new o(t),r=new o(r),n=new o(n);const a=new o(1);if(r.lte(a)||r.gte(e))return!1;if(!e.dec().mod(t).isZero())return!1;if(!r.modExp(t,e).isOne())return!1;const s=new o(t.bitLength()),c=new o(150);if(s.lt(c)||!await Vn(t,null,32))return!1;i=new o(i);const u=new o(2),l=await Un(u.leftShift(s.dec()),u.leftShift(s)),d=t.mul(l).add(i);return!!n.equal(r.modExp(d,e))}}),co={rsa:ti,elgamal:ri,elliptic:ao,dsa:so,nacl:Rn},uo=Object.freeze({__proto__:null,parseSignatureParams:function(e,t){let r=0;switch(e){case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaSign:return{s:$.readMPI(t.subarray(r))};case Y.publicKey.dsa:case Y.publicKey.ecdsa:{const e=$.readMPI(t.subarray(r));return r+=e.length+2,{r:e,s:$.readMPI(t.subarray(r))}}case Y.publicKey.eddsaLegacy:{let e=$.readMPI(t.subarray(r));r+=e.length+2,e=$.leftPad(e,32);let n=$.readMPI(t.subarray(r));return n=$.leftPad(n,32),{r:e,s:n}}case Y.publicKey.ed25519:{const e=t.subarray(r,r+64);return r+=e.length,{RS:e}}default:throw new pi("Unknown signature algorithm.")}},verify:async function(e,t,r,n,i,o){switch(e){case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaSign:{const{n:e,e:a}=n,s=$.leftPad(r.s,e.length);return co.rsa.verify(t,i,s,e,a,o)}case Y.publicKey.dsa:{const{g:e,p:i,q:a,y:s}=n,{r:c,s:u}=r;return co.dsa.verify(t,c,u,o,e,i,a,s)}case Y.publicKey.ecdsa:{const{oid:e,Q:a}=n,s=new co.elliptic.CurveWithOID(e).payloadSize,c=$.leftPad(r.r,s),u=$.leftPad(r.s,s);return co.elliptic.ecdsa.verify(e,t,{r:c,s:u},i,a,o)}case Y.publicKey.eddsaLegacy:{const{oid:e,Q:a}=n;return co.elliptic.eddsaLegacy.verify(e,t,r,i,a,o)}case Y.publicKey.ed25519:{const{A:a}=n;return co.elliptic.eddsa.verify(e,t,r,i,a,o)}default:throw Error("Unknown signature algorithm.")}},sign:async function(e,t,r,n,i,o){if(!r||!n)throw Error("Missing key parameters");switch(e){case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaSign:{const{n:e,e:a}=r,{d:s,p:c,q:u,u:l}=n;return{s:await co.rsa.sign(t,i,e,a,s,c,u,l,o)}}case Y.publicKey.dsa:{const{g:e,p:i,q:a}=r,{x:s}=n;return co.dsa.sign(t,o,e,i,a,s)}case Y.publicKey.elgamal:throw Error("Signing with Elgamal is not defined in the OpenPGP standard.");case Y.publicKey.ecdsa:{const{oid:e,Q:a}=r,{d:s}=n;return co.elliptic.ecdsa.sign(e,t,i,a,s,o)}case Y.publicKey.eddsaLegacy:{const{oid:e,Q:a}=r,{seed:s}=n;return co.elliptic.eddsaLegacy.sign(e,t,i,a,s,o)}case Y.publicKey.ed25519:{const{A:a}=r,{seed:s}=n;return co.elliptic.eddsa.sign(e,t,i,a,s,o)}default:throw Error("Unknown signature algorithm.")}}});class lo{constructor(e){e&&(this.data=e)}read(e){if(e.length>=1){const t=e[0];if(e.length>=1+t)return this.data=e.subarray(1,1+t),1+this.data.length}throw Error("Invalid symmetric key")}write(){return $.concatUint8Array([new Uint8Array([this.data.length]),this.data])}}class fo{constructor(e){if(e){const{hash:t,cipher:r}=e;this.hash=t,this.cipher=r}else this.hash=null,this.cipher=null}read(e){if(e.length<4||3!==e[0]||1!==e[1])throw new pi("Cannot read KDFParams");return this.hash=e[2],this.cipher=e[3],4}write(){return new Uint8Array([3,1,this.hash,this.cipher])}}class ho{static fromObject({wrappedKey:e,algorithm:t}){const r=new ho;return r.wrappedKey=e,r.algorithm=t,r}read(e){let t=0,r=e[t++];this.algorithm=r%2?e[t++]:null,r-=r%2,this.wrappedKey=e.subarray(t,t+r),t+=r}write(){return $.concatUint8Array([this.algorithm?new Uint8Array([this.wrappedKey.length+1,this.algorithm]):new Uint8Array([this.wrappedKey.length]),this.wrappedKey])}}function po(e){try{e.getName()}catch(e){throw new pi("Unknown curve OID")}}var go=Object.freeze({__proto__:null,publicKeyEncrypt:async function(e,t,r,n,i){switch(e){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:{const{n:e,e:t}=r;return{c:await co.rsa.encrypt(n,e,t)}}case Y.publicKey.elgamal:{const{p:e,g:t,y:i}=r;return co.elgamal.encrypt(n,e,t,i)}case Y.publicKey.ecdh:{const{oid:e,Q:t,kdfParams:o}=r,{publicKey:a,wrappedKey:s}=await co.elliptic.ecdh.encrypt(e,o,n,t,i);return{V:a,C:new lo(s)}}case Y.publicKey.x25519:{if(!$.isAES(t))throw Error("X25519 keys can only encrypt AES session keys");const{A:i}=r,{ephemeralPublicKey:o,wrappedKey:a}=await co.elliptic.ecdhX.encrypt(e,n,i);return{ephemeralPublicKey:o,C:ho.fromObject({algorithm:t,wrappedKey:a})}}default:return[]}},publicKeyDecrypt:async function(e,t,r,n,i,o){switch(e){case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaEncrypt:{const{c:e}=n,{n:i,e:a}=t,{d:s,p:c,q:u,u:l}=r;return co.rsa.decrypt(e,i,a,s,c,u,l,o)}case Y.publicKey.elgamal:{const{c1:e,c2:i}=n,a=t.p,s=r.x;return co.elgamal.decrypt(e,i,a,s,o)}case Y.publicKey.ecdh:{const{oid:e,Q:o,kdfParams:a}=t,{d:s}=r,{V:c,C:u}=n;return co.elliptic.ecdh.decrypt(e,a,c,u.data,o,s,i)}case Y.publicKey.x25519:{const{A:i}=t,{k:o}=r,{ephemeralPublicKey:a,C:s}=n;if(!$.isAES(s.algorithm))throw Error("AES session key expected");return co.elliptic.ecdhX.decrypt(e,a,s.wrappedKey,i,o)}default:throw Error("Unknown public key encryption algorithm.")}},parsePublicKeyParams:function(e,t){let r=0;switch(e){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaSign:{const e=$.readMPI(t.subarray(r));r+=e.length+2;const n=$.readMPI(t.subarray(r));return r+=n.length+2,{read:r,publicParams:{n:e,e:n}}}case Y.publicKey.dsa:{const e=$.readMPI(t.subarray(r));r+=e.length+2;const n=$.readMPI(t.subarray(r));r+=n.length+2;const i=$.readMPI(t.subarray(r));r+=i.length+2;const o=$.readMPI(t.subarray(r));return r+=o.length+2,{read:r,publicParams:{p:e,q:n,g:i,y:o}}}case Y.publicKey.elgamal:{const e=$.readMPI(t.subarray(r));r+=e.length+2;const n=$.readMPI(t.subarray(r));r+=n.length+2;const i=$.readMPI(t.subarray(r));return r+=i.length+2,{read:r,publicParams:{p:e,g:n,y:i}}}case Y.publicKey.ecdsa:{const e=new ni;r+=e.read(t),po(e);const n=$.readMPI(t.subarray(r));return r+=n.length+2,{read:r,publicParams:{oid:e,Q:n}}}case Y.publicKey.eddsaLegacy:{const e=new ni;r+=e.read(t),po(e);let n=$.readMPI(t.subarray(r));return r+=n.length+2,n=$.leftPad(n,33),{read:r,publicParams:{oid:e,Q:n}}}case Y.publicKey.ecdh:{const e=new ni;r+=e.read(t),po(e);const n=$.readMPI(t.subarray(r));r+=n.length+2;const i=new fo;return r+=i.read(t.subarray(r)),{read:r,publicParams:{oid:e,Q:n,kdfParams:i}}}case Y.publicKey.ed25519:case Y.publicKey.x25519:{const e=t.subarray(r,r+32);return r+=e.length,{read:r,publicParams:{A:e}}}default:throw new pi("Unknown public key encryption algorithm.")}},parsePrivateKeyParams:function(e,t,r){let n=0;switch(e){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaSign:{const e=$.readMPI(t.subarray(n));n+=e.length+2;const r=$.readMPI(t.subarray(n));n+=r.length+2;const i=$.readMPI(t.subarray(n));n+=i.length+2;const o=$.readMPI(t.subarray(n));return n+=o.length+2,{read:n,privateParams:{d:e,p:r,q:i,u:o}}}case Y.publicKey.dsa:case Y.publicKey.elgamal:{const e=$.readMPI(t.subarray(n));return n+=e.length+2,{read:n,privateParams:{x:e}}}case Y.publicKey.ecdsa:case Y.publicKey.ecdh:{const e=new Ci(r.oid);let i=$.readMPI(t.subarray(n));return n+=i.length+2,i=$.leftPad(i,e.payloadSize),{read:n,privateParams:{d:i}}}case Y.publicKey.eddsaLegacy:{const e=new Ci(r.oid);let i=$.readMPI(t.subarray(n));return n+=i.length+2,i=$.leftPad(i,e.payloadSize),{read:n,privateParams:{seed:i}}}case Y.publicKey.ed25519:{const e=t.subarray(n,n+32);return n+=e.length,{read:n,privateParams:{seed:e}}}case Y.publicKey.x25519:{const e=t.subarray(n,n+32);return n+=e.length,{read:n,privateParams:{k:e}}}default:throw new pi("Unknown public key encryption algorithm.")}},parseEncSessionKeyParams:function(e,t){let r=0;switch(e){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:return{c:$.readMPI(t.subarray(r))};case Y.publicKey.elgamal:{const e=$.readMPI(t.subarray(r));return r+=e.length+2,{c1:e,c2:$.readMPI(t.subarray(r))}}case Y.publicKey.ecdh:{const e=$.readMPI(t.subarray(r));r+=e.length+2;const n=new lo;return n.read(t.subarray(r)),{V:e,C:n}}case Y.publicKey.x25519:{const e=t.subarray(r,r+32);r+=e.length;const n=new ho;return n.read(t.subarray(r)),{ephemeralPublicKey:e,C:n}}default:throw new pi("Unknown public key encryption algorithm.")}},serializeParams:function(e,t){const r=new Set([Y.publicKey.ed25519,Y.publicKey.x25519]),n=Object.keys(t).map((n=>{const i=t[n];return $.isUint8Array(i)?r.has(e)?i:$.uint8ArrayToMPI(i):i.write()}));return $.concatUint8Array(n)},generateParams:function(e,t,r){switch(e){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaSign:return co.rsa.generate(t,65537).then((({n:e,e:t,d:r,p:n,q:i,u:o})=>({privateParams:{d:r,p:n,q:i,u:o},publicParams:{n:e,e:t}})));case Y.publicKey.ecdsa:return co.elliptic.generate(r).then((({oid:e,Q:t,secret:r})=>({privateParams:{d:r},publicParams:{oid:new ni(e),Q:t}})));case Y.publicKey.eddsaLegacy:return co.elliptic.generate(r).then((({oid:e,Q:t,secret:r})=>({privateParams:{seed:r},publicParams:{oid:new ni(e),Q:t}})));case Y.publicKey.ecdh:return co.elliptic.generate(r).then((({oid:e,Q:t,secret:r,hash:n,cipher:i})=>({privateParams:{d:r},publicParams:{oid:new ni(e),Q:t,kdfParams:new fo({hash:n,cipher:i})}})));case Y.publicKey.ed25519:return co.elliptic.eddsa.generate(e).then((({A:e,seed:t})=>({privateParams:{seed:t},publicParams:{A:e}})));case Y.publicKey.x25519:return co.elliptic.ecdhX.generate(e).then((({A:e,k:t})=>({privateParams:{k:t},publicParams:{A:e}})));case Y.publicKey.dsa:case Y.publicKey.elgamal:throw Error("Unsupported algorithm for key generation.");default:throw Error("Unknown public key algorithm.")}},validateParams:async function(e,t,r){if(!t||!r)throw Error("Missing key parameters");switch(e){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaSign:{const{n:e,e:n}=t,{d:i,p:o,q:a,u:s}=r;return co.rsa.validateParams(e,n,i,o,a,s)}case Y.publicKey.dsa:{const{p:e,q:n,g:i,y:o}=t,{x:a}=r;return co.dsa.validateParams(e,n,i,o,a)}case Y.publicKey.elgamal:{const{p:e,g:n,y:i}=t,{x:o}=r;return co.elgamal.validateParams(e,n,i,o)}case Y.publicKey.ecdsa:case Y.publicKey.ecdh:{const n=co.elliptic[Y.read(Y.publicKey,e)],{oid:i,Q:o}=t,{d:a}=r;return n.validateParams(i,o,a)}case Y.publicKey.eddsaLegacy:{const{Q:e,oid:n}=t,{seed:i}=r;return co.elliptic.eddsaLegacy.validateParams(n,e,i)}case Y.publicKey.ed25519:{const{A:n}=t,{seed:i}=r;return co.elliptic.eddsa.validateParams(e,n,i)}case Y.publicKey.x25519:{const{A:n}=t,{k:i}=r;return co.elliptic.ecdhX.validateParams(e,n,i)}default:throw Error("Unknown public key algorithm.")}},getPrefixRandom:async function(e){const{blockSize:t}=Jr(e),r=await Fn(t),n=new Uint8Array([r[r.length-2],r[r.length-1]]);return $.concat([r,n])},generateSessionKey:function(e){const{keySize:t}=Jr(e);return Fn(t)},getAEADMode:function(e){const t=Y.read(Y.aead,e);return Nn[t]},getCipher:Jr,getPreferredCurveHashAlgo:function(e,t){switch(e){case Y.publicKey.ecdsa:case Y.publicKey.eddsaLegacy:return co.elliptic.getPreferredHashAlgo(t);case Y.publicKey.ed25519:return co.elliptic.eddsa.getPreferredHashAlgo(e);default:throw Error("Unknown elliptic signing algo")}}});const mo={cipher:qe,hash:Qr,mode:Nn,publicKey:co,signature:uo,random:zn,pkcs1:Jn,pkcs5:Qi,aesKW:Ki};Object.assign(mo,go);var yo="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function bo(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)}const vo={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(let o=0;o=0;)e[t]=0}const _o=256,To=286,Mo=30,Po=15,jo=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Do=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Oo=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Bo=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],No=Array(576);ko(No);const Ro=Array(60);ko(Ro);const Lo=Array(512);ko(Lo);const Fo=Array(256);ko(Fo);const Uo=Array(29);ko(Uo);const zo=Array(Mo);function Ho(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}let Vo,Ko,Go;function qo(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Qo(e){return e<256?Lo[e]:Lo[256+(e>>>7)]}function Wo(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Jo(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<>>=1,r<<=1}while(--t>0);return r>>>1}function $o(e,t,r){const n=Array(16);let i,o,a=0;for(i=1;i<=Po;i++)n[i]=a=a+r[i-1]<<1;for(o=0;o<=t;o++){const t=e[2*o+1];0!==t&&(e[2*o]=Zo(n[t]++,t))}}function Xo(e){let t;for(t=0;t8?Wo(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ta(e,t,r,n){const i=2*t,o=2*r;return e[i]>1;a>=1;a--)ra(e,r,a);c=o;do{a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ra(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=s,r[2*c]=r[2*a]+r[2*s],e.depth[c]=(e.depth[a]>=e.depth[s]?e.depth[a]:e.depth[s])+1,r[2*a+1]=r[2*s+1]=c,e.heap[1]=c++,ra(e,r,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){const r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let u,l,d,f,h,p,g=0;for(f=0;f<=Po;f++)e.bl_count[f]=0;for(r[2*e.heap[e.heap_max]+1]=0,u=e.heap_max+1;u<573;u++)l=e.heap[u],f=r[2*r[2*l+1]+1]+1,f>c&&(f=c,g++),r[2*l+1]=f,l>n||(e.bl_count[f]++,h=0,l>=s&&(h=a[l-s]),p=r[2*l],e.opt_len+=p*(f+h),o&&(e.static_len+=p*(i[2*l+1]+h)));if(0!==g){do{for(f=c-1;0===e.bl_count[f];)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,g-=2}while(g>0);for(f=c;0!==f;f--)for(l=e.bl_count[f];0!==l;)d=e.heap[--u],d>n||(r[2*d+1]!==f&&(e.opt_len+=(f-r[2*d+1])*r[2*d],r[2*d+1]=f),l--)}}(e,t),$o(r,u,e.bl_count)}function oa(e,t,r){let n,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(Fo[r]+_o+1)]++,e.dyn_dtree[2*Qo(t)]++),e.last_lit===e.lit_bufsize-1}function la(e,t,r,n){let i=65535&e,o=e>>>16&65535,a=0;for(;0!==r;){a=r>2e3?2e3:r,r-=a;do{i=i+t[n++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16}const da=function(){let e;const t=[];for(let r=0;r<256;r++){e=r;for(let t=0;t<8;t++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();function fa(e,t,r,n){const i=da,o=n+r;e^=-1;for(let a=n;a>>8^i[255&(e^t[a])];return~e}var ha={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};const pa=258,ga=262,ma=103,ya=113,ba=666;function va(e,t){return e.msg=ha[t],t}function wa(e){return(e<<1)-(e>4?9:0)}function Aa(e){let t=e.length;for(;--t>=0;)e[t]=0}function Ca(e){const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(So(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function Ea(e,t){(function(e,t,r,n){let i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){let t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<_o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),ia(e,e.l_desc),ia(e,e.d_desc),a=function(e){let t;for(oa(e,e.dyn_ltree,e.l_desc.max_code),oa(e,e.dyn_dtree,e.d_desc.max_code),ia(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*Bo[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?ca(e,t,r,n):4===e.strategy||o===i?(Jo(e,2+(n?1:0),3),na(e,No,Ro)):(Jo(e,4+(n?1:0),3),function(e,t,r,n){let i;for(Jo(e,t-257,5),Jo(e,r-1,5),Jo(e,n-4,4),i=0;i=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ca(e.strm)}function xa(e,t){e.pending_buf[e.pending++]=t}function Sa(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Ia(e,t,r,n){let i=e.avail_in;return i>n&&(i=n),0===i?0:(e.avail_in-=i,So(t,e.input,e.next_in,i,r),1===e.state.wrap?e.adler=la(e.adler,t,i,r):2===e.state.wrap&&(e.adler=fa(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)}function ka(e,t){let r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-ga?e.strstart-(e.w_size-ga):0,u=e.window,l=e.w_mask,d=e.prev,f=e.strstart+pa;let h=u[o+a-1],p=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(r=t,u[r+a]===p&&u[r+a-1]===h&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&oa){if(e.match_start=t,a=n,n>=s)break;h=u[o+a-1],p=u[o+a]}}}while((t=d[t&l])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function _a(e){const t=e.w_size;let r,n,i,o,a;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-ga)){So(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,n=e.hash_size,r=n;do{i=e.head[--r],e.head[r]=i>=t?i-t:0}while(--n);n=t,r=n;do{i=e.prev[--r],e.prev[r]=i>=t?i-t:0}while(--n);o+=t}if(0===e.strm.avail_in)break;if(n=Ia(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3)if(n=ua(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=ua(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(_a(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;const n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,Ea(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-ga&&(Ea(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Ea(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Ea(e,!1),e.strm.avail_out),1)})),new Pa(4,4,8,4,Ta),new Pa(4,5,16,8,Ta),new Pa(4,6,32,32,Ta),new Pa(4,4,16,16,Ma),new Pa(8,16,32,32,Ma),new Pa(8,16,128,128,Ma),new Pa(8,32,128,256,Ma),new Pa(32,128,258,1024,Ma),new Pa(32,258,258,4096,Ma)];class Da{constructor(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Co(1146),this.dyn_dtree=new Co(122),this.bl_tree=new Co(78),Aa(this.dyn_ltree),Aa(this.dyn_dtree),Aa(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Co(16),this.heap=new Co(573),Aa(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Co(573),Aa(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}}function Oa(e){const t=function(e){let t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:ya,e.adler=2===t.wrap?0:1,t.last_flush=0,function(e){sa||(function(){let e,t,r,n,i;const o=Array(16);for(r=0,n=0;n<28;n++)for(Uo[n]=r,e=0;e<1<>=7;n5||t<0)return e?va(e,Io):Io;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||n.status===ba&&4!==t)return va(e,0===e.avail_out?-5:Io);if(n.strm=e,r=n.last_flush,n.last_flush=t,42===n.status)if(2===n.wrap)e.adler=0,xa(n,31),xa(n,139),xa(n,8),n.gzhead?(xa(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),xa(n,255&n.gzhead.time),xa(n,n.gzhead.time>>8&255),xa(n,n.gzhead.time>>16&255),xa(n,n.gzhead.time>>24&255),xa(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),xa(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(xa(n,255&n.gzhead.extra.length),xa(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=fa(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(xa(n,0),xa(n,0),xa(n,0),xa(n,0),xa(n,0),xa(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),xa(n,3),n.status=ya);else{let t=8+(n.w_bits-8<<4)<<8,r=-1;r=n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=r<<6,0!==n.strstart&&(t|=32),t+=31-t%31,n.status=ya,Sa(n,t),0!==n.strstart&&(Sa(n,e.adler>>>16),Sa(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=fa(e.adler,n.pending_buf,n.pending-i,i)),Ca(e),i=n.pending,n.pending!==n.pending_buf_size));)xa(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=fa(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=fa(e.adler,n.pending_buf,n.pending-i,i)),Ca(e),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexi&&(e.adler=fa(e.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=fa(e.adler,n.pending_buf,n.pending-i,i)),Ca(e),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexi&&(e.adler=fa(e.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=ma)}else n.status=ma;if(n.status===ma&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Ca(e),n.pending+2<=n.pending_buf_size&&(xa(n,255&e.adler),xa(n,e.adler>>8&255),e.adler=0,n.status=ya)):n.status=ya),0!==n.pending){if(Ca(e),0===e.avail_out)return n.last_flush=-1,0}else if(0===e.avail_in&&wa(t)<=wa(r)&&4!==t)return va(e,-5);if(n.status===ba&&0!==e.avail_in)return va(e,-5);if(0!==e.avail_in||0!==n.lookahead||0!==t&&n.status!==ba){var a=2===n.strategy?function(e,t){let r;for(;;){if(0===e.lookahead&&(_a(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=ua(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Ea(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Ea(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Ea(e,!1),0===e.strm.avail_out)?1:2}(n,t):3===n.strategy?function(e,t){let r,n,i,o;const a=e.window;for(;;){if(e.lookahead<=pa){if(_a(e),e.lookahead<=pa&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(i=e.strstart-1,n=a[i],n===a[++i]&&n===a[++i]&&n===a[++i])){o=e.strstart+pa;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=ua(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=ua(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Ea(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Ea(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Ea(e,!1),0===e.strm.avail_out)?1:2}(n,t):ja[n.level].func(n,t);if(3!==a&&4!==a||(n.status=ba),1===a||3===a)return 0===e.avail_out&&(n.last_flush=-1),0;if(2===a&&(1===t?function(e){Jo(e,2,3),Yo(e,256,No),function(e){16===e.bi_valid?(Wo(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}(n):5!==t&&(ca(n,0,0,!1),3===t&&(Aa(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Ca(e),0===e.avail_out))return n.last_flush=-1,0}return 4!==t?0:n.wrap<=0?1:(2===n.wrap?(xa(n,255&e.adler),xa(n,e.adler>>8&255),xa(n,e.adler>>16&255),xa(n,e.adler>>24&255),xa(n,255&e.total_in),xa(n,e.total_in>>8&255),xa(n,e.total_in>>16&255),xa(n,e.total_in>>24&255)):(Sa(n,e.adler>>>16),Sa(n,65535&e.adler)),Ca(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)}try{String.fromCharCode.call(null,0)}catch(n){}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(n){}const Na=new Ao(256);for(let Vp=0;Vp<256;Vp++)Na[Vp]=Vp>=252?6:Vp>=248?5:Vp>=240?4:Vp>=224?3:Vp>=192?2:1;function Ra(e){let t,r,n,i,o=0;const a=e.length;for(n=0;n>>6,s[i++]=128|63&t):t<65536?(s[i++]=224|t>>>12,s[i++]=128|t>>>6&63,s[i++]=128|63&t):(s[i++]=240|t>>>18,s[i++]=128|t>>>12&63,s[i++]=128|t>>>6&63,s[i++]=128|63&t);return s}Na[254]=Na[254]=1;class La{constructor(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}}class Fa{constructor(e){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,...e||{}};const t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new La,this.strm.avail_out=0;var r,n,i=function(e,t,r,n,i,o){if(!e)return Io;let a=1;if(-1===t&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||8!==r||n<8||n>15||t<0||t>9||o<0||o>4)return va(e,Io);8===n&&(n=9);const s=new Da;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<=r.w_size&&(0===o&&(Aa(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new Ao(r.w_size),So(u,t,l-r.w_size,r.w_size,0),t=u,l=r.w_size),a=e.avail_in,s=e.next_in,c=e.input,e.avail_in=l,e.next_in=0,e.input=t,_a(r);r.lookahead>=3;){n=r.strstart,i=r.lookahead-2;do{r.ins_h=(r.ins_h<0||0===r.avail_out)&&1!==i);return 4===o?(i=function(e){let t;return e&&e.state?(t=e.state.status,42!==t&&69!==t&&73!==t&&91!==t&&t!==ma&&t!==ya&&t!==ba?va(e,Io):(e.state=null,t===ya?va(e,-3):0)):Io}(this.strm),this.onEnd(i),this.ended=!0,0===i):2!==o||(this.onEnd(0),r.avail_out=0,!0)}onData(e){this.chunks.push(e)}onEnd(e){0===e&&(this.result=xo(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg}}function Ua(e,t){let r,n,i,o,a,s,c,u,l,d;const f=e.state;r=e.next_in;const h=e.input,p=r+(e.avail_in-5);n=e.next_out;const g=e.output,m=n-(t-e.avail_out),y=n+(e.avail_out-257),b=f.dmax,v=f.wsize,w=f.whave,A=f.wnext,C=f.window;i=f.hold,o=f.bits;const E=f.lencode,x=f.distcode,S=(1<>>24,i>>>=s,o-=s,s=a>>>16&255,0===s)g[n++]=65535&a;else{if(!(16&s)){if(!(64&s)){a=E[(65535&a)+(i&(1<>>=s,o-=s),o<15&&(i+=h[r++]<>>24,i>>>=s,o-=s,s=a>>>16&255,!(16&s)){if(!(64&s)){a=x[(65535&a)+(i&(1<b){e.msg="invalid distance too far back",f.mode=30;break e}if(i>>>=s,o-=s,s=n-m,u>s){if(s=u-s,s>w&&f.sane){e.msg="invalid distance too far back",f.mode=30;break e}if(l=0,d=C,0===A){if(l+=v-s,s2;)g[n++]=d[l++],g[n++]=d[l++],g[n++]=d[l++],c-=3;c&&(g[n++]=d[l++],c>1&&(g[n++]=d[l++]))}else{l=n-u;do{g[n++]=g[l++],g[n++]=g[l++],g[n++]=g[l++],c-=3}while(c>2);c&&(g[n++]=g[l++],c>1&&(g[n++]=g[l++]))}break}}break}}while(r>3,r-=c,o-=c<<3,i&=(1<=1&&0===I[y];y--);if(b>y&&(b=y),0===y)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(m=1;m0&&(0===e||1!==y))return-1;for(k[1]=0,p=1;p852||2===e&&C>592)return 1;for(;;){_=p-w,a[g]h?(T=P[j+a[g]],M=x[S+a[g]]):(T=96,M=0),u=1<>w)+l]=_<<24|T<<16|M}while(0!==l);for(u=1<>=1;if(0!==u?(E&=u-1,E+=u):E=0,g++,0==--I[p]){if(p===y)break;p=t[r+a[g]]}if(p>b&&(E&D)!==d){for(0===w&&(w=b),f+=m,v=p-w,A=1<852||2===e&&C>592)return 1;d=E&D,i[d]=b<<24|v<<16|f-o}}return 0!==E&&(i[f+E]=p-w<<24|64<<16),s.bits=b,0}const Qa=12,Wa=30;function Ja(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}class Ya{constructor(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Co(320),this.work=new Co(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}}function Za(e,t){let r,n;return e?(n=new Ya,e.state=n,n.window=null,r=function(e,t){let r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Io:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,function(e){let t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,function(e){let t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Eo(852),t.distcode=t.distdyn=new Eo(592),t.sane=1,t.back=-1,0):Io}(e)):Io}(e))):Io}(e,t),0!==r&&(e.state=null),r):Io}let $a,Xa,es=!0;function ts(e){if(es){let t;for($a=new Eo(512),Xa=new Eo(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(qa(1,e.lens,0,288,$a,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;qa(2,e.lens,0,32,Xa,0,e.work,{bits:5}),es=!1}e.lencode=$a,e.lenbits=9,e.distcode=Xa,e.distbits=5}function rs(e,t,r,n){let i;const o=e.state;return null===o.window&&(o.wsize=1<=o.wsize?(So(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),So(o.window,t,r-n,i,o.wnext),(n-=i)?(So(o.window,t,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,r.check=fa(r.check,k,2,0),u=0,l=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=Wa;break}if(8!=(15&u)){e.msg="unknown compression method",r.mode=Wa;break}if(u>>>=4,l-=4,C=8+(15&u),0===r.wbits)r.wbits=C;else if(C>r.wbits){e.msg="invalid window size",r.mode=Wa;break}r.dmax=1<>8&1),512&r.flags&&(k[0]=255&u,k[1]=u>>>8&255,r.check=fa(r.check,k,2,0)),u=0,l=0,r.mode=3;case 3:for(;l<32;){if(0===s)break e;s--,u+=n[o++]<>>8&255,k[2]=u>>>16&255,k[3]=u>>>24&255,r.check=fa(r.check,k,4,0)),u=0,l=0,r.mode=4;case 4:for(;l<16;){if(0===s)break e;s--,u+=n[o++]<>8),512&r.flags&&(k[0]=255&u,k[1]=u>>>8&255,r.check=fa(r.check,k,2,0)),u=0,l=0,r.mode=5;case 5:if(1024&r.flags){for(;l<16;){if(0===s)break e;s--,u+=n[o++]<>>8&255,r.check=fa(r.check,k,2,0)),u=0,l=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(h=r.length,h>s&&(h=s),h&&(r.head&&(C=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),So(r.head.extra,n,o,h,C)),512&r.flags&&(r.check=fa(r.check,n,h,o)),s-=h,o+=h,r.length-=h),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break e;h=0;do{C=n[o+h++],r.head&&C&&r.length<65536&&(r.head.name+=String.fromCharCode(C))}while(C&&h>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Qa;break;case 10:for(;l<32;){if(0===s)break e;s--,u+=n[o++]<>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===s)break e;s--,u+=n[o++]<>>=1,l-=1,3&u){case 0:r.mode=14;break;case 1:if(ts(r),r.mode=20,6===t){u>>>=2,l-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=Wa}u>>>=2,l-=2;break;case 14:for(u>>>=7&l,l-=7&l;l<32;){if(0===s)break e;s--,u+=n[o++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=Wa;break}if(r.length=65535&u,u=0,l=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(h=r.length,h){if(h>s&&(h=s),h>c&&(h=c),0===h)break e;So(i,n,o,h,a),s-=h,o+=h,c-=h,a+=h,r.length-=h;break}r.mode=Qa;break;case 17:for(;l<14;){if(0===s)break e;s--,u+=n[o++]<>>=5,l-=5,r.ndist=1+(31&u),u>>>=5,l-=5,r.ncode=4+(15&u),u>>>=4,l-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Wa;break}r.have=0,r.mode=18;case 18:for(;r.have>>=3,l-=3}for(;r.have<19;)r.lens[_[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,x={bits:r.lenbits},E=qa(0,r.lens,0,19,r.lencode,0,r.work,x),r.lenbits=x.bits,E){e.msg="invalid code lengths set",r.mode=Wa;break}r.have=0,r.mode=19;case 19:for(;r.have>>24,y=I>>>16&255,b=65535&I,!(m<=l);){if(0===s)break e;s--,u+=n[o++]<>>=m,l-=m,r.lens[r.have++]=b;else{if(16===b){for(S=m+2;l>>=m,l-=m,0===r.have){e.msg="invalid bit length repeat",r.mode=Wa;break}C=r.lens[r.have-1],h=3+(3&u),u>>>=2,l-=2}else if(17===b){for(S=m+3;l>>=m,l-=m,C=0,h=3+(7&u),u>>>=3,l-=3}else{for(S=m+7;l>>=m,l-=m,C=0,h=11+(127&u),u>>>=7,l-=7}if(r.have+h>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Wa;break}for(;h--;)r.lens[r.have++]=C}}if(r.mode===Wa)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=Wa;break}if(r.lenbits=9,x={bits:r.lenbits},E=qa(1,r.lens,0,r.nlen,r.lencode,0,r.work,x),r.lenbits=x.bits,E){e.msg="invalid literal/lengths set",r.mode=Wa;break}if(r.distbits=6,r.distcode=r.distdyn,x={bits:r.distbits},E=qa(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,x),r.distbits=x.bits,E){e.msg="invalid distances set",r.mode=Wa;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(s>=6&&c>=258){e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=u,r.bits=l,Ua(e,f),a=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,u=r.hold,l=r.bits,r.mode===Qa&&(r.back=-1);break}for(r.back=0;I=r.lencode[u&(1<>>24,y=I>>>16&255,b=65535&I,!(m<=l);){if(0===s)break e;s--,u+=n[o++]<>v)],m=I>>>24,y=I>>>16&255,b=65535&I,!(v+m<=l);){if(0===s)break e;s--,u+=n[o++]<>>=v,l-=v,r.back+=v}if(u>>>=m,l-=m,r.back+=m,r.length=b,0===y){r.mode=26;break}if(32&y){r.back=-1,r.mode=Qa;break}if(64&y){e.msg="invalid literal/length code",r.mode=Wa;break}r.extra=15&y,r.mode=22;case 22:if(r.extra){for(S=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;I=r.distcode[u&(1<>>24,y=I>>>16&255,b=65535&I,!(m<=l);){if(0===s)break e;s--,u+=n[o++]<>v)],m=I>>>24,y=I>>>16&255,b=65535&I,!(v+m<=l);){if(0===s)break e;s--,u+=n[o++]<>>=v,l-=v,r.back+=v}if(u>>>=m,l-=m,r.back+=m,64&y){e.msg="invalid distance code",r.mode=Wa;break}r.offset=b,r.extra=15&y,r.mode=24;case 24:if(r.extra){for(S=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Wa;break}r.mode=25;case 25:if(0===c)break e;if(h=f-c,r.offset>h){if(h=r.offset-h,h>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Wa;break}h>r.wnext?(h-=r.wnext,p=r.wsize-h):p=r.wnext-h,h>r.length&&(h=r.length),g=r.window}else g=i,p=a-r.offset,h=r.length;h>c&&(h=c),c-=h,r.length-=h;do{i[a++]=g[p++]}while(--h);0===r.length&&(r.mode=21);break;case 26:if(0===c)break e;i[a++]=r.length,c--,r.mode=21;break;case 27:if(r.wrap){for(;l<32;){if(0===s)break e;s--,u|=n[o++]<=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new La,this.strm.avail_out=0;let r=Za(this.strm,t.windowBits);if(0!==r)throw Error(ha[r]);if(this.header=new os,function(e,t){let r;e&&e.state&&(r=e.state,!(2&r.wrap)||(r.head=t,t.done=!1))}(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Ra(t.dictionary):t.dictionary instanceof ArrayBuffer&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=is(this.strm,t.dictionary),0!==r)))throw Error(ha[r])}push(e,t){const{strm:r,options:{chunkSize:n,dictionary:i}}=this;let o,a,s=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?r.input=function(e){const t=new Ao(e.length);for(let r=0,n=t.length;r0||0===r.avail_out)&&1!==o);return 1===o&&(a=4),4===a?(o=function(e){if(!e||!e.state)return Io;const t=e.state;return t.window&&(t.window=null),e.state=null,0}(this.strm),this.onEnd(o),this.ended=!0,0===o):2!==a||(this.onEnd(0),r.avail_out=0,!0)}onData(e){this.chunks.push(e)}onEnd(e){0===e&&(this.result=xo(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg}}var ss=[0,1,3,7,15,31,63,127,255],cs=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};cs.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)},cs.prototype.read=function(e){for(var t=0;e>0;){this._ensureByte();var r=8-this.bitOffset;if(e>=r)t<<=r,t|=ss[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,e-=r;else{t<<=e;var n=r-e;t|=(this.curByte&ss[e]<>n,this.bitOffset+=e,e=0}}return t},cs.prototype.seek=function(e){var t=e%8,r=(e-t)/8;this.bitOffset=t,this.stream.seek(r),this.hasByte=!1},cs.prototype.pi=function(){var e,t=new Uint8Array(6);for(e=0;e("00"+e.toString(16)).slice(-2))).join("")}(t)};var us=cs,ls=function(){};ls.prototype.readByte=function(){throw Error("abstract method readByte() not implemented")},ls.prototype.read=function(e,t,r){for(var n=0;n>>0},this.updateCRC=function(t){e=e<<8^ds[255&(e>>>24^t)]},this.updateCRCRun=function(t,r){for(;r-- >0;)e=e<<8^ds[255&(e>>>24^t)]}}),ps=function(e,t){var r,n=e[t];for(r=t;r>0;r--)e[r]=e[r-1];return e[0]=n,n},gs=-2,ms=-3,ys=-4,bs=-5,vs=-6,ws=-7,As={"-1":"Bad file checksum"};As[gs]="Not bzip data",As[ms]="Unexpected input EOF",As[ys]="Unexpected output EOF",As[bs]="Data error",As[vs]="Out of memory",As[ws]="Obsolete (pre 0.9.5) bzip format not supported.";var Cs=function(e,t){var r=As[e]||"unknown error";t&&(r+=": "+t);var n=new TypeError(r);throw n.errorCode=e,n},Es=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};Es.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new hs,!0):(this.writeCount=-1,!1)},Es.prototype._start_bunzip=function(e,t){var r=new Uint8Array(4);4===e.read(r,0,4)&&"BZh"===String.fromCharCode(r[0],r[1],r[2])||Cs(gs,"bad magic");var n=r[3]-48;(n<1||n>9)&&Cs(gs,"level out of range"),this.reader=new us(e),this.dbufSize=1e5*n,this.nextoutput=0,this.outputStream=t,this.streamCRC=0},Es.prototype._get_next_block=function(){var e,t,r,n=this.reader,i=n.pi();if("177245385090"===i)return!1;"314159265359"!==i&&Cs(gs),this.targetBlockCRC=n.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,n.read(1)&&Cs(ws);var o=n.read(24);o>this.dbufSize&&Cs(bs,"initial position out of bounds");var a=n.read(16),s=new Uint8Array(256),c=0;for(e=0;e<16;e++)if(a&1<<15-e){var u=16*e;for(r=n.read(16),t=0;t<16;t++)r&1<<15-t&&(s[c++]=u+t)}var l=n.read(3);(l<2||l>6)&&Cs(bs);var d=n.read(15);0===d&&Cs(bs);var f=new Uint8Array(256);for(e=0;e=l&&Cs(bs);h[e]=ps(f,t)}var p,g=c+2,m=[];for(t=0;t20)&&Cs(bs),n.read(1);)n.read(1)?a--:a++;v[e]=a}for(y=b=v[0],e=1;eb?b=v[e]:v[e]=d&&Cs(bs),p=m[h[I++]]),e=p.minLen,t=n.read(e);e>p.maxLen&&Cs(bs),!(t<=p.limit[e]);e++)t=t<<1|n.read(1);((t-=p.base[e])<0||t>=258)&&Cs(bs);var _=p.permute[t];if(0!==_&&1!==_){if(x)for(x=0,S+a>this.dbufSize&&Cs(bs),C[E=s[f[0]]]+=a;a--;)k[S++]=E;if(_>c)break;S>=this.dbufSize&&Cs(bs),C[E=s[E=ps(f,e=_-1)]]++,k[S++]=E}else x||(x=1,a=0),a+=0===_?x:2*x,x<<=1}for((o<0||o>=S)&&Cs(bs),t=0,e=0;e<256;e++)r=t+C[e],C[e]=t,t=r;for(e=0;e>=8,P=-1),this.writePos=T,this.writeCurrent=M,this.writeCount=S,this.writeRun=P,!0},Es.prototype._read_bunzip=function(e,t){var r,n,i;if(this.writeCount<0)return 0;var o=this.dbuf,a=this.writePos,s=this.writeCurrent,c=this.writeCount;this.outputsize;for(var u=this.writeRun;c;){for(c--,n=s,s=255&(a=o[a]),a>>=8,3==u++?(r=s,i=n,s=-1):(r=1,i=s),this.blockCRC.updateCRCRun(i,r);r--;)this.outputStream.writeByte(i),this.nextoutput++;s!=n&&(u=0)}return this.writeCount=c,this.blockCRC.getCRC()!==this.targetBlockCRC&&Cs(bs,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var xs=function(e,t,r){for(var n=function(e){if("readByte"in e)return e;var t=new fs;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(e){this.pos=e},t.eof=function(){return this.pos>=e.length},t}(e),i=function(e){var t=new fs,r=!0;if(e)if("number"==typeof e)t.buffer=new Uint8Array(e),r=!1;else{if("writeByte"in e)return e;t.buffer=e,r=!1}else t.buffer=new Uint8Array(16384);return t.pos=0,t.writeByte=function(e){if(r&&this.pos>=this.buffer.length){var t=new Uint8Array(2*this.buffer.length);t.set(this.buffer),this.buffer=t}this.buffer[this.pos++]=e},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!r)throw new TypeError("outputsize does not match decoded input");var e=new Uint8Array(this.pos);e.set(this.buffer.subarray(0,this.pos)),this.buffer=e}return this.buffer},t._coerced=!0,t}(t),o=new Es(n,i);!("eof"in n)||!n.eof();)if(o._init_block())o._read_bunzip();else{var a=o.reader.read(32)>>>0;if(a!==o.streamCRC&&Cs(bs,"Bad stream CRC (got "+o.streamCRC.toString(16)+" expected "+a.toString(16)+")"),!r||!("eof"in n)||n.eof())break;o._start_bunzip(n,i)}if("getBuffer"in i)return i.getBuffer()};class Ss{static get tag(){return Y.packet.literalData}constructor(e=new Date){this.format=Y.literal.utf8,this.date=$.normalizeDate(e),this.text=null,this.data=null,this.filename=""}setText(e,t=Y.literal.utf8){this.format=t,this.text=e,this.data=null}getText(e=!1){return(null===this.text||$.isStream(this.text))&&(this.text=$.decodeUTF8($.nativeEOL(this.getBytes(e)))),this.text}setBytes(e,t){this.format=t,this.data=e,this.text=null}getBytes(e=!1){return null===this.data&&(this.data=$.canonicalizeEOL($.encodeUTF8(this.text))),e?H(this.data):this.data}setFilename(e){this.filename=e}getFilename(){return this.filename}async read(e){await U(e,(async e=>{const t=await e.readByte(),r=await e.readByte();this.filename=$.decodeUTF8(await e.readBytes(r)),this.date=$.readDate(await e.readBytes(4));let n=e.remainder();u(n)&&(n=await G(n)),this.setBytes(n,t)}))}writeHeader(){const e=$.encodeUTF8(this.filename),t=new Uint8Array([e.length]),r=new Uint8Array([this.format]),n=$.writeDate(this.date);return $.concatUint8Array([r,t,e,n])}write(){const e=this.writeHeader(),t=this.getBytes();return $.concat([e,t])}}const Is=Symbol("verified"),ks=new Set([Y.signatureSubpacket.issuer,Y.signatureSubpacket.issuerFingerprint,Y.signatureSubpacket.embeddedSignature]);class _s{static get tag(){return Y.packet.signature}constructor(){this.version=null,this.signatureType=null,this.hashAlgorithm=null,this.publicKeyAlgorithm=null,this.signatureData=null,this.unhashedSubpackets=[],this.signedHashValue=null,this.created=null,this.signatureExpirationTime=null,this.signatureNeverExpires=!0,this.exportable=null,this.trustLevel=null,this.trustAmount=null,this.regularExpression=null,this.revocable=null,this.keyExpirationTime=null,this.keyNeverExpires=null,this.preferredSymmetricAlgorithms=null,this.revocationKeyClass=null,this.revocationKeyAlgorithm=null,this.revocationKeyFingerprint=null,this.issuerKeyID=new me,this.rawNotations=[],this.notations={},this.preferredHashAlgorithms=null,this.preferredCompressionAlgorithms=null,this.keyServerPreferences=null,this.preferredKeyServer=null,this.isPrimaryUserID=null,this.policyURI=null,this.keyFlags=null,this.signersUserID=null,this.reasonForRevocationFlag=null,this.reasonForRevocationString=null,this.features=null,this.signatureTargetPublicKeyAlgorithm=null,this.signatureTargetHashAlgorithm=null,this.signatureTargetHash=null,this.embeddedSignature=null,this.issuerKeyVersion=null,this.issuerFingerprint=null,this.preferredAEADAlgorithms=null,this.revoked=null,this[Is]=null}read(e){let t=0;if(this.version=e[t++],4!==this.version&&5!==this.version)throw new pi(`Version ${this.version} of the signature packet is unsupported.`);if(this.signatureType=e[t++],this.publicKeyAlgorithm=e[t++],this.hashAlgorithm=e[t++],t+=this.readSubPackets(e.subarray(t,e.length),!0),!this.created)throw Error("Missing signature creation time subpacket.");this.signatureData=e.subarray(0,t),t+=this.readSubPackets(e.subarray(t,e.length),!1),this.signedHashValue=e.subarray(t,t+2),t+=2,this.params=mo.signature.parseSignatureParams(this.publicKeyAlgorithm,e.subarray(t,e.length))}writeParams(){return this.params instanceof Promise?Q((async()=>mo.serializeParams(this.publicKeyAlgorithm,await this.params))):mo.serializeParams(this.publicKeyAlgorithm,this.params)}write(){const e=[];return e.push(this.signatureData),e.push(this.writeUnhashedSubPackets()),e.push(this.signedHashValue),e.push(this.writeParams()),$.concat(e)}async sign(e,t,r=new Date,n=!1){5===e.version?this.version=5:this.version=4;const i=[new Uint8Array([this.version,this.signatureType,this.publicKeyAlgorithm,this.hashAlgorithm])];this.created=$.normalizeDate(r),this.issuerKeyVersion=e.version,this.issuerFingerprint=e.getFingerprintBytes(),this.issuerKeyID=e.getKeyID(),i.push(this.writeHashedSubPackets()),this.unhashedSubpackets=[],this.signatureData=$.concat(i);const o=this.toHash(this.signatureType,t,n),a=await this.hash(this.signatureType,t,o,n);this.signedHashValue=K(z(a),0,2);const s=async()=>mo.signature.sign(this.publicKeyAlgorithm,this.hashAlgorithm,e.publicParams,e.privateParams,o,await G(a));$.isStream(a)?this.params=s():(this.params=await s(),this[Is]=!0)}writeHashedSubPackets(){const e=Y.signatureSubpacket,t=[];let r;if(null===this.created)throw Error("Missing signature creation time");t.push(Ts(e.signatureCreationTime,!0,$.writeDate(this.created))),null!==this.signatureExpirationTime&&t.push(Ts(e.signatureExpirationTime,!0,$.writeNumber(this.signatureExpirationTime,4))),null!==this.exportable&&t.push(Ts(e.exportableCertification,!0,new Uint8Array([this.exportable?1:0]))),null!==this.trustLevel&&(r=new Uint8Array([this.trustLevel,this.trustAmount]),t.push(Ts(e.trustSignature,!0,r))),null!==this.regularExpression&&t.push(Ts(e.regularExpression,!0,this.regularExpression)),null!==this.revocable&&t.push(Ts(e.revocable,!0,new Uint8Array([this.revocable?1:0]))),null!==this.keyExpirationTime&&t.push(Ts(e.keyExpirationTime,!0,$.writeNumber(this.keyExpirationTime,4))),null!==this.preferredSymmetricAlgorithms&&(r=$.stringToUint8Array($.uint8ArrayToString(this.preferredSymmetricAlgorithms)),t.push(Ts(e.preferredSymmetricAlgorithms,!1,r))),null!==this.revocationKeyClass&&(r=new Uint8Array([this.revocationKeyClass,this.revocationKeyAlgorithm]),r=$.concat([r,this.revocationKeyFingerprint]),t.push(Ts(e.revocationKey,!1,r))),this.issuerKeyID.isNull()||5===this.issuerKeyVersion||t.push(Ts(e.issuer,!0,this.issuerKeyID.write())),this.rawNotations.forEach((({name:n,value:i,humanReadable:o,critical:a})=>{r=[new Uint8Array([o?128:0,0,0,0])];const s=$.encodeUTF8(n);r.push($.writeNumber(s.length,2)),r.push($.writeNumber(i.length,2)),r.push(s),r.push(i),r=$.concat(r),t.push(Ts(e.notationData,a,r))})),null!==this.preferredHashAlgorithms&&(r=$.stringToUint8Array($.uint8ArrayToString(this.preferredHashAlgorithms)),t.push(Ts(e.preferredHashAlgorithms,!1,r))),null!==this.preferredCompressionAlgorithms&&(r=$.stringToUint8Array($.uint8ArrayToString(this.preferredCompressionAlgorithms)),t.push(Ts(e.preferredCompressionAlgorithms,!1,r))),null!==this.keyServerPreferences&&(r=$.stringToUint8Array($.uint8ArrayToString(this.keyServerPreferences)),t.push(Ts(e.keyServerPreferences,!1,r))),null!==this.preferredKeyServer&&t.push(Ts(e.preferredKeyServer,!1,$.encodeUTF8(this.preferredKeyServer))),null!==this.isPrimaryUserID&&t.push(Ts(e.primaryUserID,!1,new Uint8Array([this.isPrimaryUserID?1:0]))),null!==this.policyURI&&t.push(Ts(e.policyURI,!1,$.encodeUTF8(this.policyURI))),null!==this.keyFlags&&(r=$.stringToUint8Array($.uint8ArrayToString(this.keyFlags)),t.push(Ts(e.keyFlags,!0,r))),null!==this.signersUserID&&t.push(Ts(e.signersUserID,!1,$.encodeUTF8(this.signersUserID))),null!==this.reasonForRevocationFlag&&(r=$.stringToUint8Array(String.fromCharCode(this.reasonForRevocationFlag)+this.reasonForRevocationString),t.push(Ts(e.reasonForRevocation,!0,r))),null!==this.features&&(r=$.stringToUint8Array($.uint8ArrayToString(this.features)),t.push(Ts(e.features,!1,r))),null!==this.signatureTargetPublicKeyAlgorithm&&(r=[new Uint8Array([this.signatureTargetPublicKeyAlgorithm,this.signatureTargetHashAlgorithm])],r.push($.stringToUint8Array(this.signatureTargetHash)),r=$.concat(r),t.push(Ts(e.signatureTarget,!0,r))),null!==this.embeddedSignature&&t.push(Ts(e.embeddedSignature,!0,this.embeddedSignature.write())),null!==this.issuerFingerprint&&(r=[new Uint8Array([this.issuerKeyVersion]),this.issuerFingerprint],r=$.concat(r),t.push(Ts(e.issuerFingerprint,5===this.version,r))),null!==this.preferredAEADAlgorithms&&(r=$.stringToUint8Array($.uint8ArrayToString(this.preferredAEADAlgorithms)),t.push(Ts(e.preferredAEADAlgorithms,!1,r)));const n=$.concat(t),i=$.writeNumber(n.length,2);return $.concat([i,n])}writeUnhashedSubPackets(){const e=[];this.unhashedSubpackets.forEach((t=>{e.push(ci(t.length)),e.push(t)}));const t=$.concat(e),r=$.writeNumber(t.length,2);return $.concat([r,t])}readSubPacket(e,t=!0){let r=0;const n=!!(128&e[r]),i=127&e[r];if(t||(this.unhashedSubpackets.push(e.subarray(r,e.length)),ks.has(i)))switch(r++,i){case Y.signatureSubpacket.signatureCreationTime:this.created=$.readDate(e.subarray(r,e.length));break;case Y.signatureSubpacket.signatureExpirationTime:{const t=$.readNumber(e.subarray(r,e.length));this.signatureNeverExpires=0===t,this.signatureExpirationTime=t;break}case Y.signatureSubpacket.exportableCertification:this.exportable=1===e[r++];break;case Y.signatureSubpacket.trustSignature:this.trustLevel=e[r++],this.trustAmount=e[r++];break;case Y.signatureSubpacket.regularExpression:this.regularExpression=e[r];break;case Y.signatureSubpacket.revocable:this.revocable=1===e[r++];break;case Y.signatureSubpacket.keyExpirationTime:{const t=$.readNumber(e.subarray(r,e.length));this.keyExpirationTime=t,this.keyNeverExpires=0===t;break}case Y.signatureSubpacket.preferredSymmetricAlgorithms:this.preferredSymmetricAlgorithms=[...e.subarray(r,e.length)];break;case Y.signatureSubpacket.revocationKey:this.revocationKeyClass=e[r++],this.revocationKeyAlgorithm=e[r++],this.revocationKeyFingerprint=e.subarray(r,r+20);break;case Y.signatureSubpacket.issuer:this.issuerKeyID.read(e.subarray(r,e.length));break;case Y.signatureSubpacket.notationData:{const t=!!(128&e[r]);r+=4;const i=$.readNumber(e.subarray(r,r+2));r+=2;const o=$.readNumber(e.subarray(r,r+2));r+=2;const a=$.decodeUTF8(e.subarray(r,r+i)),s=e.subarray(r+i,r+i+o);this.rawNotations.push({name:a,humanReadable:t,value:s,critical:n}),t&&(this.notations[a]=$.decodeUTF8(s));break}case Y.signatureSubpacket.preferredHashAlgorithms:this.preferredHashAlgorithms=[...e.subarray(r,e.length)];break;case Y.signatureSubpacket.preferredCompressionAlgorithms:this.preferredCompressionAlgorithms=[...e.subarray(r,e.length)];break;case Y.signatureSubpacket.keyServerPreferences:this.keyServerPreferences=[...e.subarray(r,e.length)];break;case Y.signatureSubpacket.preferredKeyServer:this.preferredKeyServer=$.decodeUTF8(e.subarray(r,e.length));break;case Y.signatureSubpacket.primaryUserID:this.isPrimaryUserID=0!==e[r++];break;case Y.signatureSubpacket.policyURI:this.policyURI=$.decodeUTF8(e.subarray(r,e.length));break;case Y.signatureSubpacket.keyFlags:this.keyFlags=[...e.subarray(r,e.length)];break;case Y.signatureSubpacket.signersUserID:this.signersUserID=$.decodeUTF8(e.subarray(r,e.length));break;case Y.signatureSubpacket.reasonForRevocation:this.reasonForRevocationFlag=e[r++],this.reasonForRevocationString=$.decodeUTF8(e.subarray(r,e.length));break;case Y.signatureSubpacket.features:this.features=[...e.subarray(r,e.length)];break;case Y.signatureSubpacket.signatureTarget:{this.signatureTargetPublicKeyAlgorithm=e[r++],this.signatureTargetHashAlgorithm=e[r++];const t=mo.getHashByteLength(this.signatureTargetHashAlgorithm);this.signatureTargetHash=$.uint8ArrayToString(e.subarray(r,r+t));break}case Y.signatureSubpacket.embeddedSignature:this.embeddedSignature=new _s,this.embeddedSignature.read(e.subarray(r,e.length));break;case Y.signatureSubpacket.issuerFingerprint:this.issuerKeyVersion=e[r++],this.issuerFingerprint=e.subarray(r,e.length),5===this.issuerKeyVersion?this.issuerKeyID.read(this.issuerFingerprint):this.issuerKeyID.read(this.issuerFingerprint.subarray(-8));break;case Y.signatureSubpacket.preferredAEADAlgorithms:this.preferredAEADAlgorithms=[...e.subarray(r,e.length)];break;default:{const e=Error("Unknown signature subpacket type "+i);if(n)throw e;$.printDebug(e)}}}readSubPackets(e,t=!0,r){const n=$.readNumber(e.subarray(0,2));let i=2;for(;i<2+n;){const n=si(e.subarray(i,e.length));i+=n.offset,this.readSubPacket(e.subarray(i,i+n.len),t,r),i+=n.len}return i}toSign(e,t){const r=Y.signature;switch(e){case r.binary:return null!==t.text?$.encodeUTF8(t.getText(!0)):t.getBytes(!0);case r.text:{const e=t.getBytes(!0);return $.canonicalizeEOL(e)}case r.standalone:return new Uint8Array(0);case r.certGeneric:case r.certPersona:case r.certCasual:case r.certPositive:case r.certRevocation:{let e,n;if(t.userID)n=180,e=t.userID;else{if(!t.userAttribute)throw Error("Either a userID or userAttribute packet needs to be supplied for certification.");n=209,e=t.userAttribute}const i=e.write();return $.concat([this.toSign(r.key,t),new Uint8Array([n]),$.writeNumber(i.length,4),i])}case r.subkeyBinding:case r.subkeyRevocation:case r.keyBinding:return $.concat([this.toSign(r.key,t),this.toSign(r.key,{key:t.bind})]);case r.key:if(void 0===t.key)throw Error("Key packet is required for this signature.");return t.key.writeForHash(this.version);case r.keyRevocation:return this.toSign(r.key,t);case r.timestamp:return new Uint8Array(0);case r.thirdParty:throw Error("Not implemented");default:throw Error("Unknown signature type.")}}calculateTrailer(e,t){let r=0;return L(z(this.signatureData),(e=>{r+=e.length}),(()=>{const n=[];return 5!==this.version||this.signatureType!==Y.signature.binary&&this.signatureType!==Y.signature.text||(t?n.push(new Uint8Array(6)):n.push(e.writeHeader())),n.push(new Uint8Array([this.version,255])),5===this.version&&n.push(new Uint8Array(4)),n.push($.writeNumber(r,4)),$.concat(n)}))}toHash(e,t,r=!1){const n=this.toSign(e,t);return $.concat([n,this.signatureData,this.calculateTrailer(t,r)])}async hash(e,t,r,n=!1){return r||(r=this.toHash(e,t,n)),mo.hash.digest(this.hashAlgorithm,r)}async verify(e,t,r,n=new Date,i=!1,o=ae){if(!this.issuerKeyID.equals(e.getKeyID()))throw Error("Signature was not issued by the given public key");if(this.publicKeyAlgorithm!==e.algorithm)throw Error("Public key algorithm used to sign signature does not match issuer key algorithm.");const a=t===Y.signature.binary||t===Y.signature.text;if(!this[Is]||a){let n,o;if(this.hashed?o=await this.hashed:(n=this.toHash(t,r,i),o=await this.hash(t,r,n)),o=await G(o),this.signedHashValue[0]!==o[0]||this.signedHashValue[1]!==o[1])throw Error("Signed digest did not match");if(this.params=await this.params,this[Is]=await mo.signature.verify(this.publicKeyAlgorithm,this.hashAlgorithm,this.params,e.publicParams,n,o),!this[Is])throw Error("Signature verification failed")}const s=$.normalizeDate(n);if(s&&this.created>s)throw Error("Signature creation time is in the future");if(s&&s>=this.getExpirationTime())throw Error("Signature is expired");if(o.rejectHashAlgorithms.has(this.hashAlgorithm))throw Error("Insecure hash algorithm: "+Y.read(Y.hash,this.hashAlgorithm).toUpperCase());if(o.rejectMessageHashAlgorithms.has(this.hashAlgorithm)&&[Y.signature.binary,Y.signature.text].includes(this.signatureType))throw Error("Insecure message hash algorithm: "+Y.read(Y.hash,this.hashAlgorithm).toUpperCase());if(this.rawNotations.forEach((({name:e,critical:t})=>{if(t&&o.knownNotations.indexOf(e)<0)throw Error("Unknown critical notation: "+e)})),null!==this.revocationKeyClass)throw Error("This key is intended to be revoked with an authorized key, which OpenPGP.js does not support.")}isExpired(e=new Date){const t=$.normalizeDate(e);return null!==t&&!(this.created<=t&&t_s.prototype.calculateTrailer.apply(await this.correspondingSig,e)))}async verify(){const e=await this.correspondingSig;if(!e||e.constructor.tag!==Y.packet.signature)throw Error("Corresponding signature packet missing");if(e.signatureType!==this.signatureType||e.hashAlgorithm!==this.hashAlgorithm||e.publicKeyAlgorithm!==this.publicKeyAlgorithm||!e.issuerKeyID.equals(this.issuerKeyID))throw Error("Corresponding signature packet does not match one-pass signature packet");return e.hashed=this.hashed,e.verify.apply(e,arguments)}}function Ps(e,t){if(!t[e]){let r;try{r=Y.read(Y.packet,e)}catch(t){throw new pi("Unknown packet type with tag: "+e)}throw Error("Packet not allowed in this context: "+r)}return new t[e]}Ms.prototype.hash=_s.prototype.hash,Ms.prototype.toHash=_s.prototype.toHash,Ms.prototype.toSign=_s.prototype.toSign;class js extends Array{static async fromBinary(e,t,r=ae){const n=new js;return await n.read(e,t,r),n}async read(e,t,r=ae){r.additionalAllowedPackets.length&&(t={...t,...$.constructAllowedPackets(r.additionalAllowedPackets)}),this.stream=F(e,(async(e,n)=>{const i=O(n);try{for(;;)if(await i.ready,await hi(e,(async e=>{try{if(e.tag===Y.packet.marker||e.tag===Y.packet.trust)return;const n=Ps(e.tag,t);n.packets=new js,n.fromStream=$.isStream(e.packet),await n.read(e.packet,r),await i.write(n)}catch(t){const o=!r.ignoreUnsupportedPackets&&t instanceof pi,a=!(r.ignoreMalformedPackets||t instanceof pi);if(o||a||fi(e.tag))await i.abort(t);else{const t=new gi(e.tag,e.packet);await i.write(t)}$.printDebugError(t)}})))return await i.ready,void await i.close()}catch(e){await i.abort(e)}}));const n=D(this.stream);for(;;){const{done:e,value:t}=await n.read();if(e?this.stream=null:this.push(t),e||fi(t.constructor.tag))break}n.releaseLock()}write(){const e=[];for(let t=0;t{if(t.push(e),i+=e.length,i>=o){const e=Math.min(Math.log(i)/Math.LN2|0,30),r=2**e,n=$.concat([ui(e)].concat(t));return t=[n.subarray(1+r)],i=t[0].length,n.subarray(0,1+r)}}),(()=>$.concat([ci(i)].concat(t)))))}else{if($.isStream(n)){let t=0;e.push(L(z(n),(e=>{t+=e.length}),(()=>di(r,t))))}else e.push(di(r,n.length));e.push(n)}}return $.concat(e)}filterByTag(...e){const t=new js,r=e=>t=>e===t;for(let n=0;nt.constructor.tag===e))}indexOfTag(...e){const t=[],r=this,n=e=>t=>e===t;for(let i=0;i{this.algorithm=await e.readByte(),this.compressed=e.remainder(),await this.decompress(t)}))}write(){return null===this.compressed&&this.compress(),$.concat([new Uint8Array([this.algorithm]),this.compressed])}async decompress(e=ae){const t=Y.read(Y.compression,this.algorithm),r=zs[t];if(!r)throw Error(t+" decompression not supported");this.packets=await js.fromBinary(r(this.compressed),Ds,e)}compress(){const e=Y.read(Y.compression,this.algorithm),t=Us[e];if(!t)throw Error(e+" compression not supported");this.compressed=t(this.packets.write(),this.deflateLevel)}}const Bs=$.getNodeZlib();function Ns(e){return e}function Rs(e,t,r={}){return function(n){return!$.isStream(n)||u(n)?Q((()=>G(n).then((t=>new Promise(((n,i)=>{e(t,r,((e,t)=>{if(e)return i(e);n(t)}))})))))):b(v(n).pipe(t(r)))}}function Ls(e,t={}){return function(r){const n=new e(t);return L(r,(e=>{if(e.length)return n.push(e,2),n.result}),(()=>{if(e===Fa)return n.push([],4),n.result}))}}function Fs(e){return function(t){return Q((async()=>e(await G(t))))}}const Us=Bs?{zip:(e,t)=>Rs(Bs.deflateRaw,Bs.createDeflateRaw,{level:t})(e),zlib:(e,t)=>Rs(Bs.deflate,Bs.createDeflate,{level:t})(e)}:{zip:(e,t)=>Ls(Fa,{raw:!0,level:t})(e),zlib:(e,t)=>Ls(Fa,{level:t})(e)},zs=Bs?{uncompressed:Ns,zip:Rs(Bs.inflateRaw,Bs.createInflateRaw),zlib:Rs(Bs.inflate,Bs.createInflate),bzip2:Fs(xs)}:{uncompressed:Ns,zip:Ls(as,{raw:!0}),zlib:Ls(as),bzip2:Fs(xs)},Hs=$.constructAllowedPackets([Ss,Os,Ms,_s]);class Vs{static get tag(){return Y.packet.symEncryptedIntegrityProtectedData}constructor(){this.version=1,this.encrypted=null,this.packets=null}async read(e){await U(e,(async e=>{const t=await e.readByte();if(1!==t)throw new pi(`Version ${t} of the SEIP packet is unsupported.`);this.encrypted=e.remainder()}))}write(){return $.concat([new Uint8Array([1]),this.encrypted])}async encrypt(e,t,r=ae){const{blockSize:n}=mo.getCipher(e);let i=this.packets.write();u(i)&&(i=await G(i));const o=await mo.getPrefixRandom(e),a=new Uint8Array([211,20]),s=$.concat([o,i,a]),c=await mo.hash.sha1(H(s)),l=$.concat([s,c]);return this.encrypted=await mo.mode.cfb.encrypt(e,t,l,new Uint8Array(n),r),!0}async decrypt(e,t,r=ae){const{blockSize:n}=mo.getCipher(e);let i=z(this.encrypted);u(i)&&(i=await G(i));const o=await mo.mode.cfb.decrypt(e,t,i,new Uint8Array(n)),a=K(H(o),-20),s=K(o,0,-20),c=Promise.all([G(await mo.hash.sha1(H(s))),G(a)]).then((([e,t])=>{if(!$.equalsUint8Array(e,t))throw Error("Modification detected.");return new Uint8Array})),l=K(s,n+2);let d=K(l,0,-2);return d=j([d,Q((()=>c))]),$.isStream(i)&&r.allowUnauthenticatedStream||(d=await G(d)),this.packets=await js.fromBinary(d,Hs,r),!0}}const Ks=$.constructAllowedPackets([Ss,Os,Ms,_s]);class Gs{static get tag(){return Y.packet.aeadEncryptedData}constructor(){this.version=1,this.cipherAlgorithm=null,this.aeadAlgorithm=Y.aead.eax,this.chunkSizeByte=null,this.iv=null,this.encrypted=null,this.packets=null}async read(e){await U(e,(async e=>{const t=await e.readByte();if(1!==t)throw new pi(`Version ${t} of the AEAD-encrypted data packet is not supported.`);this.cipherAlgorithm=await e.readByte(),this.aeadAlgorithm=await e.readByte(),this.chunkSizeByte=await e.readByte();const r=mo.getAEADMode(this.aeadAlgorithm);this.iv=await e.readBytes(r.ivLength),this.encrypted=e.remainder()}))}write(){return $.concat([new Uint8Array([this.version,this.cipherAlgorithm,this.aeadAlgorithm,this.chunkSizeByte]),this.iv,this.encrypted])}async decrypt(e,t,r=ae){this.packets=await js.fromBinary(await this.crypt("decrypt",t,z(this.encrypted)),Ks,r)}async encrypt(e,t,r=ae){this.cipherAlgorithm=e;const{ivLength:n}=mo.getAEADMode(this.aeadAlgorithm);this.iv=mo.random.getRandomBytes(n),this.chunkSizeByte=r.aeadChunkSizeByte;const i=this.packets.write();this.encrypted=await this.crypt("encrypt",t,i)}async crypt(e,t,r){const n=mo.getAEADMode(this.aeadAlgorithm),i=await n(this.cipherAlgorithm,t),o="decrypt"===e?n.tagLength:0,a="encrypt"===e?n.tagLength:0,s=2**(this.chunkSizeByte+6)+o,c=new ArrayBuffer(21),u=new Uint8Array(c,0,13),l=new Uint8Array(c),d=new DataView(c),f=new Uint8Array(c,5,8);u.set([192|Gs.tag,this.version,this.cipherAlgorithm,this.aeadAlgorithm,this.chunkSizeByte],0);let h=0,p=Promise.resolve(),g=0,m=0;const y=this.iv;return F(r,(async(t,r)=>{if("array"!==$.isStream(t)){const e=new k({},{highWaterMark:$.getHardwareConcurrency()*2**(this.chunkSizeByte+6),size:e=>e.length});B(e.readable,r),r=e.writable}const c=D(t),b=O(r);try{for(;;){let t=await c.readBytes(s+o)||new Uint8Array;const r=t.subarray(t.length-o);let v,w;if(t=t.subarray(0,t.length-o),!h||t.length?(c.unshift(r),v=i[e](t,n.getNonce(y,f),u),m+=t.length-o+a):(d.setInt32(17,g),v=i[e](r,n.getNonce(y,f),l),m+=a,w=!0),g+=t.length-o,p=p.then((()=>v)).then((async e=>{await b.ready,await b.write(e),m-=e.length})).catch((e=>b.abort(e))),(w||m>b.desiredSize)&&await p,w){await b.close();break}d.setInt32(9,++h)}}catch(e){await b.abort(e)}}))}}class qs{static get tag(){return Y.packet.publicKeyEncryptedSessionKey}constructor(){this.version=3,this.publicKeyID=new me,this.publicKeyAlgorithm=null,this.sessionKey=null,this.sessionKeyAlgorithm=null,this.encrypted={}}read(e){let t=0;if(this.version=e[t++],3!==this.version)throw new pi(`Version ${this.version} of the PKESK packet is unsupported.`);t+=this.publicKeyID.read(e.subarray(t)),this.publicKeyAlgorithm=e[t++],this.encrypted=mo.parseEncSessionKeyParams(this.publicKeyAlgorithm,e.subarray(t),this.version),this.publicKeyAlgorithm===Y.publicKey.x25519&&(this.sessionKeyAlgorithm=Y.write(Y.symmetric,this.encrypted.C.algorithm))}write(){const e=[new Uint8Array([this.version]),this.publicKeyID.write(),new Uint8Array([this.publicKeyAlgorithm]),mo.serializeParams(this.publicKeyAlgorithm,this.encrypted)];return $.concatUint8Array(e)}async encrypt(e){const t=Y.write(Y.publicKey,this.publicKeyAlgorithm),r=Qs(this.version,t,this.sessionKeyAlgorithm,this.sessionKey);this.encrypted=await mo.publicKeyEncrypt(t,this.sessionKeyAlgorithm,e.publicParams,r,e.getFingerprintBytes())}async decrypt(e,t){if(this.publicKeyAlgorithm!==e.algorithm)throw Error("Decryption error");const r=t?Qs(this.version,this.publicKeyAlgorithm,t.sessionKeyAlgorithm,t.sessionKey):null,n=await mo.publicKeyDecrypt(this.publicKeyAlgorithm,e.publicParams,e.privateParams,this.encrypted,e.getFingerprintBytes(),r),{sessionKey:i,sessionKeyAlgorithm:o}=function(e,t,r,n){switch(t){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:case Y.publicKey.elgamal:case Y.publicKey.ecdh:{const e=r.subarray(0,r.length-2),t=r.subarray(r.length-2),i=$.writeChecksum(e.subarray(e.length%8)),o=i[0]===t[0]&i[1]===t[1],a={sessionKeyAlgorithm:e[0],sessionKey:e.subarray(1)};if(n){const e=o&a.sessionKeyAlgorithm===n.sessionKeyAlgorithm&a.sessionKey.length===n.sessionKey.length;return{sessionKey:$.selectUint8Array(e,a.sessionKey,n.sessionKey),sessionKeyAlgorithm:$.selectUint8(e,a.sessionKeyAlgorithm,n.sessionKeyAlgorithm)}}if(o&&Y.read(Y.symmetric,a.sessionKeyAlgorithm))return a;throw Error("Decryption error")}case Y.publicKey.x25519:return{sessionKey:r};default:throw Error("Unsupported public key algorithm")}}(this.version,this.publicKeyAlgorithm,n,t);this.publicKeyAlgorithm!==Y.publicKey.x25519&&(this.sessionKeyAlgorithm=o),this.sessionKey=i}}function Qs(e,t,r,n){switch(t){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:case Y.publicKey.elgamal:case Y.publicKey.ecdh:return $.concatUint8Array([new Uint8Array([r]),n,$.writeChecksum(n.subarray(n.length%8))]);case Y.publicKey.x25519:return n;default:throw Error("Unsupported public key algorithm")}}class Ws{constructor(e=ae){this.algorithm=Y.hash.sha256,this.type="iterated",this.c=e.s2kIterationCountByte,this.salt=null}getCount(){return 16+(15&this.c)<<6+(this.c>>4)}read(e){let t=0;try{this.type=Y.read(Y.s2k,e[t++])}catch(e){throw new pi("Unknown S2K type.")}switch(this.algorithm=e[t++],this.type){case"simple":break;case"salted":this.salt=e.subarray(t,t+8),t+=8;break;case"iterated":this.salt=e.subarray(t,t+8),t+=8,this.c=e[t++];break;case"gnu":if("GNU"!==$.uint8ArrayToString(e.subarray(t,t+3)))throw new pi("Unknown s2k type.");if(t+=3,1001!==1e3+e[t++])throw new pi("Unknown s2k gnu protection mode.");this.type="gnu-dummy";break;default:throw new pi("Unknown s2k type.")}return t}write(){if("gnu-dummy"===this.type)return new Uint8Array([101,0,...$.stringToUint8Array("GNU"),1]);const e=[new Uint8Array([Y.write(Y.s2k,this.type),this.algorithm])];switch(this.type){case"simple":break;case"salted":e.push(this.salt);break;case"iterated":e.push(this.salt),e.push(new Uint8Array([this.c]));break;case"gnu":throw Error("GNU s2k type not supported.");default:throw Error("Unknown s2k type.")}return $.concatUint8Array(e)}async produceKey(e,t){e=$.encodeUTF8(e);const r=[];let n=0,i=0;for(;n{this.privateParams[e].fill(0),delete this.privateParams[e]})),this.privateParams=null,this.isEncrypted=!0)}}async function nc(e,t,r){const{keySize:n}=mo.getCipher(r);return e.produceKey(t,n)}var ic=it((function(e){!function(){function t(e){function t(){return Ee0&&(t.semantic=" "),t}}function m(e,t){return function(){var r,o,s,u,l;for(u=n(),r=a("star"),s=0,l=void 0===t?0:t;null!==(o=e());)s+=1,c(r,o);return s>=l?r:(i(u),null)}}function y(e){return e.charCodeAt(0)>=128}function b(){return s("cr",l("\r")())}function v(){return s("crlf",d(b,C)())}function w(){return s("dquote",l('"')())}function A(){return s("htab",l("\t")())}function C(){return s("lf",l("\n")())}function E(){return s("sp",l(" ")())}function x(){return s("vchar",u((function(t){var r=t.charCodeAt(0),n=33<=r&&r<=126;return e.rfc6532&&(n=n||y(t)),n})))}function S(){return s("wsp",f(E,A)())}function I(){var e=s("quoted-pair",f(d(l("\\"),f(x,S)),ne)());return null===e?null:(e.semantic=e.semantic[1],e)}function k(){return s("fws",f(oe,d(h(d(m(S),p(v))),m(S,1)))())}function _(){return s("ctext",f((function(){return u((function(t){var r=t.charCodeAt(0),n=33<=r&&r<=39||42<=r&&r<=91||93<=r&&r<=126;return e.rfc6532&&(n=n||y(t)),n}))}),te)())}function T(){return s("ccontent",f(_,I,M)())}function M(){return s("comment",d(l("("),m(d(h(k),T)),h(k),l(")"))())}function P(){return s("cfws",f(d(m(d(h(k),M),1),h(k)),k)())}function j(){return s("atext",u((function(t){var r="a"<=t&&t<="z"||"A"<=t&&t<="Z"||"0"<=t&&t<="9"||["!","#","$","%","&","'","*","+","-","/","=","?","^","_","`","{","|","}","~"].indexOf(t)>=0;return e.rfc6532&&(r=r||y(t)),r})))}function D(){return s("atom",d(g(h(P)),m(j,1),g(h(P)))())}function O(){var e,t;return null===(e=s("dot-atom-text",m(j,1)()))||null!==(t=m(d(l("."),m(j,1)))())&&c(e,t),e}function B(){return s("dot-atom",d(p(h(P)),O,p(h(P)))())}function N(){return s("qtext",f((function(){return u((function(t){var r=t.charCodeAt(0),n=33===r||35<=r&&r<=91||93<=r&&r<=126;return e.rfc6532&&(n=n||y(t)),n}))}),re)())}function R(){return s("qcontent",f(N,I)())}function L(){return s("quoted-string",d(p(h(P)),p(w),m(d(h(g(k)),R)),h(p(k)),p(w),p(h(P)))())}function F(){return s("word",f(D,L)())}function U(){return s("address",f(z,K)())}function z(){return s("mailbox",f(H,X)())}function H(){return s("name-addr",d(h(G),V)())}function V(){return s("angle-addr",f(d(p(h(P)),l("<"),X,l(">"),p(h(P))),ae)())}function K(){return s("group",d(G,l(":"),h(W),l(";"),p(h(P)))())}function G(){return s("display-name",(null!==(e=s("phrase",f(ie,m(F,1))()))&&(e.semantic=function(e){return e.replace(/([ \t]|\r\n)+/g," ").replace(/^\s*/,"").replace(/\s*$/,"")}(e.semantic)),e));var e}function q(){return s("mailbox-list",f(d(z,m(d(l(","),z))),ue)())}function Q(){return s("address-list",f(d(U,m(d(l(","),U))),le)())}function W(){return s("group-list",f(q,p(P),de)())}function J(){return s("local-part",f(fe,B,L)())}function Y(){return s("dtext",f((function(){return u((function(t){var r=t.charCodeAt(0),n=33<=r&&r<=90||94<=r&&r<=126;return e.rfc6532&&(n=n||y(t)),n}))}),pe)())}function Z(){return s("domain-literal",d(p(h(P)),l("["),m(d(h(k),Y)),h(k),l("]"),p(h(P)))())}function $(){return s("domain",(t=f(he,B,Z)(),e.rejectTLD&&t&&t.semantic&&t.semantic.indexOf(".")<0?null:(t&&(t.semantic=t.semantic.replace(/\s+/g,"")),t)));var t}function X(){return s("addr-spec",d(J,l("@"),$)())}function ee(){return e.strict?null:s("obs-NO-WS-CTL",u((function(e){var t=e.charCodeAt(0);return 1<=t&&t<=8||11===t||12===t||14<=t&&t<=31||127===t})))}function te(){return e.strict?null:s("obs-ctext",ee())}function re(){return e.strict?null:s("obs-qtext",ee())}function ne(){return e.strict?null:s("obs-qp",d(l("\\"),f(l("\0"),ee,C,b))())}function ie(){return e.strict?null:e.atInDisplayName?s("obs-phrase",d(F,m(f(F,l("."),l("@"),g(P))))()):s("obs-phrase",d(F,m(f(F,l("."),g(P))))())}function oe(){return e.strict?null:s("obs-FWS",m(d(p(h(v)),S),1)())}function ae(){return e.strict?null:s("obs-angle-addr",d(p(h(P)),l("<"),se,X,l(">"),p(h(P)))())}function se(){return e.strict?null:s("obs-route",d(ce,l(":"))())}function ce(){return e.strict?null:s("obs-domain-list",d(m(f(p(P),l(","))),l("@"),$,m(d(l(","),p(h(P)),h(d(l("@"),$)))))())}function ue(){return e.strict?null:s("obs-mbox-list",d(m(d(p(h(P)),l(","))),z,m(d(l(","),h(d(z,p(P))))))())}function le(){return e.strict?null:s("obs-addr-list",d(m(d(p(h(P)),l(","))),U,m(d(l(","),h(d(U,p(P))))))())}function de(){return e.strict?null:s("obs-group-list",d(m(d(p(h(P)),l(",")),1),p(h(P)))())}function fe(){return e.strict?null:s("obs-local-part",d(F,m(d(l("."),F)))())}function he(){return e.strict?null:s("obs-domain",d(D,m(d(l("."),D)))())}function pe(){return e.strict?null:s("obs-dtext",f(ee,I)())}function ge(e,t){var r,n,i;if(null==t)return null;for(n=[t];n.length>0;){if((i=n.pop()).name===e)return i;for(r=i.children.length-1;r>=0;r-=1)n.push(i.children[r])}return null}function me(e,t){var r,n,i,o,a;if(null==t)return null;for(n=[t],o=[],a={},r=0;r0;)if((i=n.pop()).name in a)o.push(i);else for(r=i.children.length-1;r>=0;r-=1)n.push(i.children[r]);return o}function ye(t){var r,n,i,o,a;if(null===t)return null;for(r=[],n=me(["group","mailbox"],t),i=0;i1?null:t.addresses&&t.addresses[0]:null}(a):e.simple?a&&a.addresses:a}function be(e){var t,r=ge("display-name",e),n=[],i=me(["mailbox"],e);for(t=0;t0;)for("cfws"===(i=n.pop()).name&&o.push(i),r=i.children.length-1;r>=0;r-=1)n.push(i.children[r]);return o}(0,e),i=me(["comment"],e),o=ge("local-part",r),a=ge("domain",r);return{node:e,parts:{name:t,address:r,local:o,domain:a,comments:n},type:e.name,name:we(t),address:we(r),local:we(o),domain:we(a),comments:Ae(i),groupName:we(e.groupName)}}function we(e){return null!=e?e.semantic:null}function Ae(e){var t="";if(e)for(var r=0;r`),t.userID=r.join(" "),t}read(e,t=ae){const r=$.decodeUTF8(e);if(r.length>t.maxUserIDLength)throw Error("User ID string is too long");try{const{name:e,address:t,comments:n}=ic.parseOneAddress({input:r,atInDisplayName:!0});this.comment=n.replace(/^\(|\)$/g,""),this.name=e,this.email=t}catch(e){}this.userID=r}write(){return $.encodeUTF8(this.userID)}equals(e){return e&&e.userID===this.userID}}class ac extends rc{static get tag(){return Y.packet.secretSubkey}constructor(e=new Date,t=ae){super(e,t)}}class sc{static get tag(){return Y.packet.trust}read(){throw new pi("Trust packets are not supported")}write(){throw new pi("Trust packets are not supported")}}const cc=$.constructAllowedPackets([_s]);class uc{constructor(e){this.packets=e||new js}write(){return this.packets.write()}armor(e=ae){return ge(Y.armor.signature,this.write(),void 0,void 0,void 0,e)}getSigningKeyIDs(){return this.packets.map((e=>e.issuerKeyID))}}async function lc({armoredSignature:e,binarySignature:t,config:r,...n}){r={...ae,...r};let i=e||t;if(!i)throw Error("readSignature: must pass options object containing `armoredSignature` or `binarySignature`");if(e&&!$.isString(e))throw Error("readSignature: options.armoredSignature must be a string");if(t&&!$.isUint8Array(t))throw Error("readSignature: options.binarySignature must be a Uint8Array");const o=Object.keys(n);if(o.length>0)throw Error("Unknown option: "+o.join(", "));if(e){const{type:e,data:t}=await pe(i,r);if(e!==Y.armor.signature)throw Error("Armored text not of type signature");i=t}const a=await js.fromBinary(i,cc,r);return new uc(a)}async function dc(e,t){const r=new ac(e.date,t);return r.packets=null,r.algorithm=Y.write(Y.publicKey,e.algorithm),await r.generate(e.rsaBits,e.curve),await r.computeFingerprintAndKeyID(),r}async function fc(e,t){const r=new rc(e.date,t);return r.packets=null,r.algorithm=Y.write(Y.publicKey,e.algorithm),await r.generate(e.rsaBits,e.curve,e.config),await r.computeFingerprintAndKeyID(),r}async function hc(e,t,r,n,i=new Date,o){let a,s;for(let c=e.length-1;c>=0;c--)try{(!a||e[c].created>=a.created)&&(await e[c].verify(t,r,n,i,void 0,o),a=e[c])}catch(e){s=e}if(!a)throw $.wrapError(`Could not find valid ${Y.read(Y.signature,r)} signature in key ${t.getKeyID().toHex()}`.replace("certGeneric ","self-").replace(/([a-z])([A-Z])/g,((e,t,r)=>t+" "+r.toLowerCase())),s);return a}function pc(e,t,r=new Date){const n=$.normalizeDate(r);if(null!==n){const r=Ac(e,t);return!(e.created<=n&&n0&&(o.keyExpirationTime=r.keyExpirationTime,o.keyNeverExpires=!1),await bc(i,null,t,o,r.date,void 0,void 0,void 0,n)}async function mc(e,t,r=new Date,n={},i){let o=i.preferredHashAlgorithm,a=o;if(e){const t=await e.getPrimaryUser(r,n,i);t.selfCertification.preferredHashAlgorithms&&([a]=t.selfCertification.preferredHashAlgorithms,o=mo.hash.getHashByteLength(o)<=mo.hash.getHashByteLength(a)?a:o)}switch(t.algorithm){case Y.publicKey.ecdsa:case Y.publicKey.eddsaLegacy:case Y.publicKey.ed25519:a=mo.getPreferredCurveHashAlgo(t.algorithm,t.publicParams.oid)}return mo.hash.getHashByteLength(o)<=mo.hash.getHashByteLength(a)?a:o}async function yc(e,t=[],r=new Date,n=[],i=ae){const o={symmetric:Y.symmetric.aes128,aead:Y.aead.eax,compression:Y.compression.uncompressed}[e],a={symmetric:i.preferredSymmetricAlgorithm,aead:i.preferredAEADAlgorithm,compression:i.preferredCompressionAlgorithm}[e],s={symmetric:"preferredSymmetricAlgorithms",aead:"preferredAEADAlgorithms",compression:"preferredCompressionAlgorithms"}[e],c=await Promise.all(t.map((async function(e,t){const o=(await e.getPrimaryUser(r,n[t],i)).selfCertification[s];return!!o&&o.indexOf(a)>=0})));return c.every(Boolean)?a:o}async function bc(e,t,r,n,i,o,a=[],s=!1,c){if(r.isDummy())throw Error("Cannot sign with a gnu-dummy key.");if(!r.isDecrypted())throw Error("Signing key is not decrypted.");const u=new _s;return Object.assign(u,n),u.publicKeyAlgorithm=r.algorithm,u.hashAlgorithm=await mc(t,r,i,o,c),u.rawNotations=a,await u.sign(r,e,i,s),u}async function vc(e,t,r,n=new Date,i){(e=e[r])&&(t[r].length?await Promise.all(e.map((async function(e){e.isExpired(n)||i&&!await i(e)||t[r].some((function(t){return $.equalsUint8Array(t.writeParams(),e.writeParams())}))||t[r].push(e)}))):t[r]=e)}async function wc(e,t,r,n,i,o,a=new Date,s){o=o||e;const c=[];return await Promise.all(n.map((async function(e){try{i&&!e.issuerKeyID.equals(i.issuerKeyID)||(await e.verify(o,t,r,s.revocationsExpire?a:null,!1,s),c.push(e.issuerKeyID))}catch(e){}}))),i?(i.revoked=!!c.some((e=>e.equals(i.issuerKeyID)))||i.revoked||!1,i.revoked):c.length>0}function Ac(e,t){let r;return!1===t.keyNeverExpires&&(r=e.created.getTime()+1e3*t.keyExpirationTime),r?new Date(r):1/0}function Cc(e,t={}){switch(e.type=e.type||t.type,e.curve=e.curve||t.curve,e.rsaBits=e.rsaBits||t.rsaBits,e.keyExpirationTime=void 0!==e.keyExpirationTime?e.keyExpirationTime:t.keyExpirationTime,e.passphrase=$.isString(e.passphrase)?e.passphrase:t.passphrase,e.date=e.date||t.date,e.sign=e.sign||!1,e.type){case"ecc":try{e.curve=Y.write(Y.curve,e.curve)}catch(e){throw Error("Unknown curve")}e.curve!==Y.curve.ed25519Legacy&&e.curve!==Y.curve.curve25519Legacy||(e.curve=e.sign?Y.curve.ed25519Legacy:Y.curve.curve25519Legacy),e.sign?e.algorithm=e.curve===Y.curve.ed25519Legacy?Y.publicKey.eddsaLegacy:Y.publicKey.ecdsa:e.algorithm=Y.publicKey.ecdh;break;case"rsa":e.algorithm=Y.publicKey.rsaEncryptSign;break;default:throw Error("Unsupported key type "+e.type)}return e}function Ec(e,t){const r=e.algorithm;return!(r===Y.publicKey.rsaEncrypt||r===Y.publicKey.elgamal||r===Y.publicKey.ecdh||r===Y.publicKey.x25519||t.keyFlags&&!(t.keyFlags[0]&Y.keyFlags.signData))}function xc(e,t){const r=e.algorithm;return!(r===Y.publicKey.dsa||r===Y.publicKey.rsaSign||r===Y.publicKey.ecdsa||r===Y.publicKey.eddsaLegacy||r===Y.publicKey.ed25519||t.keyFlags&&!(t.keyFlags[0]&Y.keyFlags.encryptCommunication)&&!(t.keyFlags[0]&Y.keyFlags.encryptStorage))}function Sc(e,t){return!(!t.allowInsecureDecryptionWithSigningKeys&&e.keyFlags&&!(e.keyFlags[0]&Y.keyFlags.encryptCommunication)&&!(e.keyFlags[0]&Y.keyFlags.encryptStorage))}function Ic(e,t){const r=Y.write(Y.publicKey,e.algorithm),n=e.getAlgorithmInfo();if(t.rejectPublicKeyAlgorithms.has(r))throw Error(n.algorithm+" keys are considered too weak.");switch(r){case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaSign:case Y.publicKey.rsaEncrypt:if(n.bitse.getKeys(s).length>0));return 0===c.length?null:(await Promise.all(c.map((async t=>{const o=await t.getSigningKey(s,e.created,void 0,n);if(e.revoked||await i.isRevoked(e,o.keyPacket,r,n))throw Error("User certificate is revoked");try{await e.verify(o.keyPacket,Y.signature.certGeneric,a,r,void 0,n)}catch(e){throw $.wrapError("User certificate is invalid",e)}}))),!0)}async verifyAllCertifications(e,t=new Date,r){const n=this,i=this.selfCertifications.concat(this.otherCertifications);return Promise.all(i.map((async i=>({keyID:i.issuerKeyID,valid:await n.verifyCertificate(i,e,t,r).catch((()=>!1))}))))}async verify(e=new Date,t){if(!this.selfCertifications.length)throw Error("No self-certifications found");const r=this,n=this.mainKey.keyPacket,i={userID:this.userID,userAttribute:this.userAttribute,key:n};let o;for(let a=this.selfCertifications.length-1;a>=0;a--)try{const o=this.selfCertifications[a];if(o.revoked||await r.isRevoked(o,void 0,e,t))throw Error("Self-certification is revoked");try{await o.verify(n,Y.signature.certGeneric,i,e,void 0,t)}catch(e){throw $.wrapError("Self-certification is invalid",e)}return!0}catch(e){o=e}throw o}async update(e,t,r){const n=this.mainKey.keyPacket,i={userID:this.userID,userAttribute:this.userAttribute,key:n};await vc(e,this,"selfCertifications",t,(async function(e){try{return await e.verify(n,Y.signature.certGeneric,i,t,!1,r),!0}catch(e){return!1}})),await vc(e,this,"otherCertifications",t),await vc(e,this,"revocationSignatures",t,(function(e){return wc(n,Y.signature.certRevocation,i,[e],void 0,void 0,t,r)}))}async revoke(e,{flag:t=Y.reasonForRevocation.noReason,string:r=""}={},n=new Date,i=ae){const o={userID:this.userID,userAttribute:this.userAttribute,key:e},a=new kc(o.userID||o.userAttribute,this.mainKey);return a.revocationSignatures.push(await bc(o,null,e,{signatureType:Y.signature.certRevocation,reasonForRevocationFlag:Y.write(Y.reasonForRevocation,t),reasonForRevocationString:r},n,void 0,void 0,!1,i)),await a.update(this),a}}class _c{constructor(e,t){this.keyPacket=e,this.bindingSignatures=[],this.revocationSignatures=[],this.mainKey=t}toPacketList(){const e=new js;return e.push(this.keyPacket),e.push(...this.revocationSignatures),e.push(...this.bindingSignatures),e}clone(){const e=new _c(this.keyPacket,this.mainKey);return e.bindingSignatures=[...this.bindingSignatures],e.revocationSignatures=[...this.revocationSignatures],e}async isRevoked(e,t,r=new Date,n=ae){const i=this.mainKey.keyPacket;return wc(i,Y.signature.subkeyRevocation,{key:i,bind:this.keyPacket},this.revocationSignatures,e,t,r,n)}async verify(e=new Date,t=ae){const r=this.mainKey.keyPacket,n={key:r,bind:this.keyPacket},i=await hc(this.bindingSignatures,r,Y.signature.subkeyBinding,n,e,t);if(i.revoked||await this.isRevoked(i,null,e,t))throw Error("Subkey is revoked");if(pc(this.keyPacket,i,e))throw Error("Subkey is expired");return i}async getExpirationTime(e=new Date,t=ae){const r=this.mainKey.keyPacket,n={key:r,bind:this.keyPacket};let i;try{i=await hc(this.bindingSignatures,r,Y.signature.subkeyBinding,n,e,t)}catch(e){return null}const o=Ac(this.keyPacket,i),a=i.getExpirationTime();return oi.bindingSignatures[t].created&&(i.bindingSignatures[t]=e),!1;try{return await e.verify(n,Y.signature.subkeyBinding,o,t,void 0,r),!0}catch(e){return!1}})),await vc(e,this,"revocationSignatures",t,(function(e){return wc(n,Y.signature.subkeyRevocation,o,[e],void 0,void 0,t,r)}))}async revoke(e,{flag:t=Y.reasonForRevocation.noReason,string:r=""}={},n=new Date,i=ae){const o={key:e,bind:this.keyPacket},a=new _c(this.keyPacket,this.mainKey);return a.revocationSignatures.push(await bc(o,null,e,{signatureType:Y.signature.subkeyRevocation,reasonForRevocationFlag:Y.write(Y.reasonForRevocation,t),reasonForRevocationString:r},n,void 0,void 0,!1,i)),await a.update(this),a}hasSameFingerprintAs(e){return this.keyPacket.hasSameFingerprintAs(e.keyPacket||e)}}["getKeyID","getFingerprint","getAlgorithmInfo","getCreationTime","isDecrypted"].forEach((e=>{_c.prototype[e]=function(){return this.keyPacket[e]()}}));const Tc=$.constructAllowedPackets([_s]),Mc=new Set([Y.packet.publicKey,Y.packet.privateKey]),Pc=new Set([Y.packet.publicKey,Y.packet.privateKey,Y.packet.publicSubkey,Y.packet.privateSubkey]);class jc{packetListToStructure(e,t=new Set){let r,n,i,o;for(const a of e){if(a instanceof gi){Pc.has(a.tag)&&!o&&(o=Mc.has(a.tag)?Mc:Pc);continue}const e=a.constructor.tag;if(o){if(!o.has(e))continue;o=null}if(t.has(e))throw Error("Unexpected packet type: "+e);switch(e){case Y.packet.publicKey:case Y.packet.secretKey:if(this.keyPacket)throw Error("Key block contains multiple keys");if(this.keyPacket=a,n=this.getKeyID(),!n)throw Error("Missing Key ID");break;case Y.packet.userID:case Y.packet.userAttribute:r=new kc(a,this),this.users.push(r);break;case Y.packet.publicSubkey:case Y.packet.secretSubkey:r=null,i=new _c(a,this),this.subkeys.push(i);break;case Y.packet.signature:switch(a.signatureType){case Y.signature.certGeneric:case Y.signature.certPersona:case Y.signature.certCasual:case Y.signature.certPositive:if(!r){$.printDebug("Dropping certification signatures without preceding user packet");continue}a.issuerKeyID.equals(n)?r.selfCertifications.push(a):r.otherCertifications.push(a);break;case Y.signature.certRevocation:r?r.revocationSignatures.push(a):this.directSignatures.push(a);break;case Y.signature.key:this.directSignatures.push(a);break;case Y.signature.subkeyBinding:if(!i){$.printDebug("Dropping subkey binding signature without preceding subkey packet");continue}i.bindingSignatures.push(a);break;case Y.signature.keyRevocation:this.revocationSignatures.push(a);break;case Y.signature.subkeyRevocation:if(!i){$.printDebug("Dropping subkey revocation signature without preceding subkey packet");continue}i.revocationSignatures.push(a)}}}}toPacketList(){const e=new js;return e.push(this.keyPacket),e.push(...this.revocationSignatures),e.push(...this.directSignatures),this.users.map((t=>e.push(...t.toPacketList()))),this.subkeys.map((t=>e.push(...t.toPacketList()))),e}clone(e=!1){const t=new this.constructor(this.toPacketList());return e&&t.getKeys().forEach((e=>{if(e.keyPacket=Object.create(Object.getPrototypeOf(e.keyPacket),Object.getOwnPropertyDescriptors(e.keyPacket)),!e.keyPacket.isDecrypted())return;const t={};Object.keys(e.keyPacket.privateParams).forEach((r=>{t[r]=new Uint8Array(e.keyPacket.privateParams[r])})),e.keyPacket.privateParams=t})),t}getSubkeys(e=null){return this.subkeys.filter((t=>!e||t.getKeyID().equals(e,!0)))}getKeys(e=null){const t=[];return e&&!this.getKeyID().equals(e,!0)||t.push(this),t.concat(this.getSubkeys(e))}getKeyIDs(){return this.getKeys().map((e=>e.getKeyID()))}getUserIDs(){return this.users.map((e=>e.userID?e.userID.userID:null)).filter((e=>null!==e))}write(){return this.toPacketList().write()}async getSigningKey(e=null,t=new Date,r={},n=ae){await this.verifyPrimaryKey(t,r,n);const i=this.keyPacket,o=this.subkeys.slice().sort(((e,t)=>t.keyPacket.created-e.keyPacket.created));let a;for(const s of o)if(!e||s.getKeyID().equals(e))try{await s.verify(t,n);const e={key:i,bind:s.keyPacket},r=await hc(s.bindingSignatures,i,Y.signature.subkeyBinding,e,t,n);if(!Ec(s.keyPacket,r))continue;if(!r.embeddedSignature)throw Error("Missing embedded signature");return await hc([r.embeddedSignature],s.keyPacket,Y.signature.keyBinding,e,t,n),Ic(s.keyPacket,n),s}catch(e){a=e}try{const o=await this.getPrimaryUser(t,r,n);if((!e||i.getKeyID().equals(e))&&Ec(i,o.selfCertification))return Ic(i,n),this}catch(e){a=e}throw $.wrapError("Could not find valid signing key packet in key "+this.getKeyID().toHex(),a)}async getEncryptionKey(e,t=new Date,r={},n=ae){await this.verifyPrimaryKey(t,r,n);const i=this.keyPacket,o=this.subkeys.slice().sort(((e,t)=>t.keyPacket.created-e.keyPacket.created));let a;for(const s of o)if(!e||s.getKeyID().equals(e))try{await s.verify(t,n);const e={key:i,bind:s.keyPacket},r=await hc(s.bindingSignatures,i,Y.signature.subkeyBinding,e,t,n);if(xc(s.keyPacket,r))return Ic(s.keyPacket,n),s}catch(e){a=e}try{const o=await this.getPrimaryUser(t,r,n);if((!e||i.getKeyID().equals(e))&&xc(i,o.selfCertification))return Ic(i,n),this}catch(e){a=e}throw $.wrapError("Could not find valid encryption key packet in key "+this.getKeyID().toHex(),a)}async isRevoked(e,t,r=new Date,n=ae){return wc(this.keyPacket,Y.signature.keyRevocation,{key:this.keyPacket},this.revocationSignatures,e,t,r,n)}async verifyPrimaryKey(e=new Date,t={},r=ae){const n=this.keyPacket;if(await this.isRevoked(null,null,e,r))throw Error("Primary key is revoked");const{selfCertification:i}=await this.getPrimaryUser(e,t,r);if(pc(n,i,e))throw Error("Primary key is expired");const o=await hc(this.directSignatures,n,Y.signature.key,{key:n},e,r).catch((()=>{}));if(o&&pc(n,o,e))throw Error("Primary key is expired")}async getExpirationTime(e,t=ae){let r;try{const{selfCertification:n}=await this.getPrimaryUser(null,e,t),i=Ac(this.keyPacket,n),o=n.getExpirationTime(),a=await hc(this.directSignatures,this.keyPacket,Y.signature.key,{key:this.keyPacket},null,t).catch((()=>{}));if(a){const e=Ac(this.keyPacket,a);r=Math.min(i,o,e)}else r=ie.subkeys.some((e=>t.hasSameFingerprintAs(e))))))throw Error("Cannot update public key with private key if subkeys mismatch");return e.update(this,r)}const n=this.clone();return await vc(e,n,"revocationSignatures",t,(i=>wc(n.keyPacket,Y.signature.keyRevocation,n,[i],null,e.keyPacket,t,r))),await vc(e,n,"directSignatures",t),await Promise.all(e.users.map((async e=>{const i=n.users.filter((t=>e.userID&&e.userID.equals(t.userID)||e.userAttribute&&e.userAttribute.equals(t.userAttribute)));if(i.length>0)await Promise.all(i.map((n=>n.update(e,t,r))));else{const t=e.clone();t.mainKey=n,n.users.push(t)}}))),await Promise.all(e.subkeys.map((async e=>{const i=n.subkeys.filter((t=>t.hasSameFingerprintAs(e)));if(i.length>0)await Promise.all(i.map((n=>n.update(e,t,r))));else{const t=e.clone();t.mainKey=n,n.subkeys.push(t)}}))),n}async getRevocationCertificate(e=new Date,t=ae){const r={key:this.keyPacket},n=await hc(this.revocationSignatures,this.keyPacket,Y.signature.keyRevocation,r,e,t),i=new js;return i.push(n),ge(Y.armor.publicKey,i.write(),null,null,"This is a revocation certificate")}async applyRevocationCertificate(e,t=new Date,r=ae){const n=await pe(e,r),i=(await js.fromBinary(n.data,Tc,r)).findPacket(Y.packet.signature);if(!i||i.signatureType!==Y.signature.keyRevocation)throw Error("Could not find revocation signature packet");if(!i.issuerKeyID.equals(this.getKeyID()))throw Error("Revocation signature does not match key");try{await i.verify(this.keyPacket,Y.signature.keyRevocation,{key:this.keyPacket},t,void 0,r)}catch(e){throw $.wrapError("Could not verify revocation signature",e)}const o=this.clone();return o.revocationSignatures.push(i),o}async signPrimaryUser(e,t,r,n=ae){const{index:i,user:o}=await this.getPrimaryUser(t,r,n),a=await o.certify(e,t,n),s=this.clone();return s.users[i]=a,s}async signAllUsers(e,t=new Date,r=ae){const n=this.clone();return n.users=await Promise.all(this.users.map((function(n){return n.certify(e,t,r)}))),n}async verifyPrimaryUser(e,t=new Date,r,n=ae){const i=this.keyPacket,{user:o}=await this.getPrimaryUser(t,r,n);return e?await o.verifyAllCertifications(e,t,n):[{keyID:i.getKeyID(),valid:await o.verify(t,n).catch((()=>!1))}]}async verifyAllUsers(e,t=new Date,r=ae){const n=this.keyPacket,i=[];return await Promise.all(this.users.map((async o=>{const a=e?await o.verifyAllCertifications(e,t,r):[{keyID:n.getKeyID(),valid:await o.verify(t,r).catch((()=>!1))}];i.push(...a.map((e=>({userID:o.userID?o.userID.userID:null,userAttribute:o.userAttribute,keyID:e.keyID,valid:e.valid}))))}))),i}}["getKeyID","getFingerprint","getAlgorithmInfo","getCreationTime","hasSameFingerprintAs"].forEach((e=>{jc.prototype[e]=_c.prototype[e]}));class Dc extends jc{constructor(e){if(super(),this.keyPacket=null,this.revocationSignatures=[],this.directSignatures=[],this.users=[],this.subkeys=[],e&&(this.packetListToStructure(e,new Set([Y.packet.secretKey,Y.packet.secretSubkey])),!this.keyPacket))throw Error("Invalid key: missing public-key packet")}isPrivate(){return!1}toPublic(){return this}armor(e=ae){return ge(Y.armor.publicKey,this.toPacketList().write(),void 0,void 0,void 0,e)}}class Oc extends Dc{constructor(e){if(super(),this.packetListToStructure(e,new Set([Y.packet.publicKey,Y.packet.publicSubkey])),!this.keyPacket)throw Error("Invalid key: missing private-key packet")}isPrivate(){return!0}toPublic(){const e=new js,t=this.toPacketList();for(const r of t)switch(r.constructor.tag){case Y.packet.secretKey:{const t=Ys.fromSecretKeyPacket(r);e.push(t);break}case Y.packet.secretSubkey:{const t=ec.fromSecretSubkeyPacket(r);e.push(t);break}default:e.push(r)}return new Dc(e)}armor(e=ae){return ge(Y.armor.privateKey,this.toPacketList().write(),void 0,void 0,void 0,e)}async getDecryptionKeys(e,t=new Date,r={},n=ae){const i=this.keyPacket,o=[];for(let s=0;se.isDecrypted()))}async validate(e=ae){if(!this.isPrivate())throw Error("Cannot validate a public key");let t;if(this.keyPacket.isDummy()){const r=await this.getSigningKey(null,null,void 0,{...e,rejectPublicKeyAlgorithms:new Set,minRSABits:0});r&&!r.keyPacket.isDummy()&&(t=r.keyPacket)}else t=this.keyPacket;if(t)return t.validate();{const e=this.getKeys(),t=e.map((e=>e.keyPacket.isDummy())).every(Boolean);if(t)throw Error("Cannot validate an all-gnu-dummy key");return Promise.all(e.map((async e=>e.keyPacket.validate())))}}clearPrivateParams(){this.getKeys().forEach((({keyPacket:e})=>{e.isDecrypted()&&e.clearPrivateParams()}))}async revoke({flag:e=Y.reasonForRevocation.noReason,string:t=""}={},r=new Date,n=ae){if(!this.isPrivate())throw Error("Need private key for revoking");const i={key:this.keyPacket},o=this.clone();return o.revocationSignatures.push(await bc(i,null,this.keyPacket,{signatureType:Y.signature.keyRevocation,reasonForRevocationFlag:Y.write(Y.reasonForRevocation,e),reasonForRevocationString:t},r,void 0,void 0,void 0,n)),o}async addSubkey(e={}){const t={...ae,...e.config};if(e.passphrase)throw Error("Subkey could not be encrypted here, please encrypt whole key");if(e.rsaBitse!==t))]}const a=oc.fromObject(t),s={};s.userID=a,s.key=e;const c={};return c.signatureType=Y.signature.certGeneric,c.keyFlags=[Y.keyFlags.certifyKeys|Y.keyFlags.signData],c.preferredSymmetricAlgorithms=o([Y.symmetric.aes256,Y.symmetric.aes128,Y.symmetric.aes192],n.preferredSymmetricAlgorithm),n.aeadProtect&&(c.preferredAEADAlgorithms=o([Y.aead.eax,Y.aead.ocb],n.preferredAEADAlgorithm)),c.preferredHashAlgorithms=o([Y.hash.sha256,Y.hash.sha512],n.preferredHashAlgorithm),c.preferredCompressionAlgorithms=o([Y.compression.zlib,Y.compression.zip,Y.compression.uncompressed],n.preferredCompressionAlgorithm),0===i&&(c.isPrimaryUserID=!0),c.features=[0],c.features[0]|=Y.features.modificationDetection,n.aeadProtect&&(c.features[0]|=Y.features.aead),n.v5Keys&&(c.features[0]|=Y.features.v5Keys),r.keyExpirationTime>0&&(c.keyExpirationTime=r.keyExpirationTime,c.keyNeverExpires=!1),{userIDPacket:a,signaturePacket:await bc(s,null,e,c,r.date,void 0,void 0,void 0,n)}}))).then((e=>{e.forEach((({userIDPacket:e,signaturePacket:t})=>{i.push(e),i.push(t)}))})),await Promise.all(t.map((async function(t,i){const o=r.subkeys[i];return{secretSubkeyPacket:t,subkeySignaturePacket:await gc(t,e,o,n)}}))).then((e=>{e.forEach((({secretSubkeyPacket:e,subkeySignaturePacket:t})=>{i.push(e),i.push(t)}))}));const o={key:e};return i.push(await bc(o,null,e,{signatureType:Y.signature.keyRevocation,reasonForRevocationFlag:Y.reasonForRevocation.noReason,reasonForRevocationString:""},r.date,void 0,void 0,void 0,n)),r.passphrase&&e.clearPrivateParams(),await Promise.all(t.map((async function(e,t){r.subkeys[t].passphrase&&e.clearPrivateParams()}))),new Oc(i)}async function Lc({armoredKey:e,binaryKey:t,config:r,...n}){if(r={...ae,...r},!e&&!t)throw Error("readKey: must pass options object containing `armoredKey` or `binaryKey`");if(e&&!$.isString(e))throw Error("readKey: options.armoredKey must be a string");if(t&&!$.isUint8Array(t))throw Error("readKey: options.binaryKey must be a Uint8Array");const i=Object.keys(n);if(i.length>0)throw Error("Unknown option: "+i.join(", "));let o;if(e){const{type:t,data:n}=await pe(e,r);if(t!==Y.armor.publicKey&&t!==Y.armor.privateKey)throw Error("Armored text not of type key");o=n}else o=t;return Nc(await js.fromBinary(o,Bc,r))}async function Fc({armoredKey:e,binaryKey:t,config:r,...n}){if(r={...ae,...r},!e&&!t)throw Error("readPrivateKey: must pass options object containing `armoredKey` or `binaryKey`");if(e&&!$.isString(e))throw Error("readPrivateKey: options.armoredKey must be a string");if(t&&!$.isUint8Array(t))throw Error("readPrivateKey: options.binaryKey must be a Uint8Array");const i=Object.keys(n);if(i.length>0)throw Error("Unknown option: "+i.join(", "));let o;if(e){const{type:t,data:n}=await pe(e,r);if(t!==Y.armor.privateKey)throw Error("Armored text not of type private key");o=n}else o=t;const a=await js.fromBinary(o,Bc,r);return new Oc(a)}async function Uc({armoredKeys:e,binaryKeys:t,config:r,...n}){r={...ae,...r};let i=e||t;if(!i)throw Error("readKeys: must pass options object containing `armoredKeys` or `binaryKeys`");if(e&&!$.isString(e))throw Error("readKeys: options.armoredKeys must be a string");if(t&&!$.isUint8Array(t))throw Error("readKeys: options.binaryKeys must be a Uint8Array");const o=Object.keys(n);if(o.length>0)throw Error("Unknown option: "+o.join(", "));if(e){const{type:t,data:n}=await pe(e,r);if(t!==Y.armor.publicKey&&t!==Y.armor.privateKey)throw Error("Armored text not of type key");i=n}const a=[],s=await js.fromBinary(i,Bc,r),c=s.indexOfTag(Y.packet.publicKey,Y.packet.secretKey);if(0===c.length)throw Error("No key packet found");for(let u=0;u0?t.map((e=>e.issuerKeyID)):e.packets.filterByTag(Y.packet.signature).map((e=>e.issuerKeyID))}async decrypt(e,t,r,n=new Date,i=ae){const o=r||await this.decryptSessionKeys(e,t,n,i),a=this.packets.filterByTag(Y.packet.symmetricallyEncryptedData,Y.packet.symEncryptedIntegrityProtectedData,Y.packet.aeadEncryptedData);if(0===a.length)throw Error("No encrypted data found");const s=a[0];let c=null;const u=Promise.all(o.map((async({algorithm:e,data:t})=>{if(!$.isUint8Array(t)||!$.isString(e))throw Error("Invalid session key for decryption.");try{const r=Y.write(Y.symmetric,e);await s.decrypt(r,t,i)}catch(e){$.printDebugError(e),c=e}})));if(q(s.encrypted),s.encrypted=null,await u,!s.packets||!s.packets.length)throw c||Error("Decryption failed.");const l=new Gc(s.packets);return s.packets=new js,l}async decryptSessionKeys(e,t,r=new Date,n=ae){let i,o=[];if(t){const e=this.packets.filterByTag(Y.packet.symEncryptedSessionKey);if(0===e.length)throw Error("No symmetrically encrypted session key packet found.");await Promise.all(t.map((async function(t,r){let i;i=r?await js.fromBinary(e.write(),Vc,n):e,await Promise.all(i.map((async function(e){try{await e.decrypt(t),o.push(e)}catch(e){$.printDebugError(e)}})))})))}else{if(!e)throw Error("No key or password specified.");{const t=this.packets.filterByTag(Y.packet.publicKeyEncryptedSessionKey);if(0===t.length)throw Error("No public key encrypted session key packet found.");await Promise.all(t.map((async function(t){await Promise.all(e.map((async function(e){let a=[Y.symmetric.aes256,Y.symmetric.aes128,Y.symmetric.tripledes,Y.symmetric.cast5];try{const t=await e.getPrimaryUser(r,void 0,n);t.selfCertification.preferredSymmetricAlgorithms&&(a=a.concat(t.selfCertification.preferredSymmetricAlgorithms))}catch(e){}const s=(await e.getDecryptionKeys(t.publicKeyID,null,void 0,n)).map((e=>e.keyPacket));await Promise.all(s.map((async function(e){if(e&&!e.isDummy()){if(!e.isDecrypted())throw Error("Decryption key is not decrypted.");if(!n.constantTimePKCS1Decryption||t.publicKeyAlgorithm!==Y.publicKey.rsaEncrypt&&t.publicKeyAlgorithm!==Y.publicKey.rsaEncryptSign&&t.publicKeyAlgorithm!==Y.publicKey.rsaSign&&t.publicKeyAlgorithm!==Y.publicKey.elgamal)try{if(await t.decrypt(e),!a.includes(Y.write(Y.symmetric,t.sessionKeyAlgorithm)))throw Error("A non-preferred symmetric algorithm was used.");o.push(t)}catch(e){$.printDebugError(e),i=e}else{const r=t.write();await Promise.all(Array.from(n.constantTimePKCS1DecryptionSupportedSymmetricAlgorithms).map((async t=>{const n=new qs;n.read(r);const a={sessionKeyAlgorithm:t,sessionKey:mo.generateSessionKey(t)};try{await n.decrypt(e,a),o.push(n)}catch(e){$.printDebugError(e),i=e}})))}}})))}))),q(t.encrypted),t.encrypted=null})))}}if(o.length>0){if(o.length>1){const e=new Set;o=o.filter((t=>{const r=t.sessionKeyAlgorithm+$.uint8ArrayToString(t.sessionKey);return!e.has(r)&&(e.add(r),!0)}))}return o.map((e=>({data:e.sessionKey,algorithm:Y.read(Y.symmetric,e.sessionKeyAlgorithm)})))}throw i||Error("Session key decryption failed.")}getLiteralData(){const e=this.unwrapCompressed().packets.findPacket(Y.packet.literalData);return e&&e.getBytes()||null}getFilename(){const e=this.unwrapCompressed().packets.findPacket(Y.packet.literalData);return e&&e.getFilename()||null}getText(){const e=this.unwrapCompressed().packets.findPacket(Y.packet.literalData);return e?e.getText():null}static async generateSessionKey(e=[],t=new Date,r=[],n=ae){const i=await yc("symmetric",e,t,r,n),o=Y.read(Y.symmetric,i),a=n.aeadProtect&&await async function(e,t=new Date,r=[],n=ae){let i=!0;return await Promise.all(e.map((async function(e,o){const a=await e.getPrimaryUser(t,r[o],n);a.selfCertification.features&&a.selfCertification.features[0]&Y.features.aead||(i=!1)}))),i}(e,t,r,n)?Y.read(Y.aead,await yc("aead",e,t,r,n)):void 0;return await Promise.all(e.map((e=>e.getEncryptionKey().catch((()=>null)).then((e=>{if(e&&e.keyPacket.algorithm===Y.publicKey.x25519&&!$.isAES(i))throw Error("Could not generate a session key compatible with the given `encryptionKeys`: X22519 keys can only be used to encrypt AES session keys; change `config.preferredSymmetricAlgorithm` accordingly.")}))))),{data:mo.generateSessionKey(i),algorithm:o,aeadAlgorithm:a}}async encrypt(e,t,r,n=!1,i=[],o=new Date,a=[],s=ae){if(r){if(!$.isUint8Array(r.data)||!$.isString(r.algorithm))throw Error("Invalid session key for encryption.")}else if(e&&e.length)r=await Gc.generateSessionKey(e,o,a,s);else{if(!t||!t.length)throw Error("No keys, passwords, or session key provided.");r=await Gc.generateSessionKey(void 0,void 0,void 0,s)}const{data:c,algorithm:u,aeadAlgorithm:l}=r,d=await Gc.encryptSessionKey(c,u,l,e,t,n,i,o,a,s);let f;l?(f=new Gs,f.aeadAlgorithm=Y.write(Y.aead,l)):f=new Vs,f.packets=this.packets;const h=Y.write(Y.symmetric,u);return await f.encrypt(h,c,s),d.packets.push(f),f.packets=new js,d}static async encryptSessionKey(e,t,r,n,i,o=!1,a=[],s=new Date,c=[],u=ae){const l=new js,d=Y.write(Y.symmetric,t),f=r&&Y.write(Y.aead,r);if(n){const t=await Promise.all(n.map((async function(t,r){const n=await t.getEncryptionKey(a[r],s,c,u),i=new qs;return i.publicKeyID=o?me.wildcard():n.getKeyID(),i.publicKeyAlgorithm=n.keyPacket.algorithm,i.sessionKey=e,i.sessionKeyAlgorithm=d,await i.encrypt(n.keyPacket),delete i.sessionKey,i})));l.push(...t)}if(i){const t=async function(e,t){try{return await e.decrypt(t),1}catch(e){return 0}},r=(e,t)=>e+t,n=async function(e,o,a,s){const c=new Js(u);return c.sessionKey=e,c.sessionKeyAlgorithm=o,a&&(c.aeadAlgorithm=a),await c.encrypt(s,u),u.passwordCollisionCheck&&1!==(await Promise.all(i.map((e=>t(c,e))))).reduce(r)?n(e,o,s):(delete c.sessionKey,c)},o=await Promise.all(i.map((t=>n(e,d,f,t))));l.push(...o)}return new Gc(l)}async sign(e=[],t=null,r=[],n=new Date,i=[],o=[],a=ae){const s=new js,c=this.packets.findPacket(Y.packet.literalData);if(!c)throw Error("No literal data packet to sign.");let u,l;const d=null===c.text?Y.signature.binary:Y.signature.text;if(t)for(l=t.packets.filterByTag(Y.packet.signature),u=l.length-1;u>=0;u--){const t=l[u],r=new Ms;r.signatureType=t.signatureType,r.hashAlgorithm=t.hashAlgorithm,r.publicKeyAlgorithm=t.publicKeyAlgorithm,r.issuerKeyID=t.issuerKeyID,e.length||0!==u||(r.flags=1),s.push(r)}return await Promise.all(Array.from(e).reverse().map((async function(t,o){if(!t.isPrivate())throw Error("Need private key for signing");const s=r[e.length-1-o],c=await t.getSigningKey(s,n,i,a),u=new Ms;return u.signatureType=d,u.hashAlgorithm=await mc(t,c.keyPacket,n,i,a),u.publicKeyAlgorithm=c.keyPacket.algorithm,u.issuerKeyID=c.getKeyID(),o===e.length-1&&(u.flags=1),u}))).then((e=>{e.forEach((e=>s.push(e)))})),s.push(c),s.push(...await qc(c,e,t,r,n,i,o,!1,a)),new Gc(s)}compress(e,t=ae){if(e===Y.compression.uncompressed)return this;const r=new Os(t);r.algorithm=e,r.packets=this.packets;const n=new js;return n.push(r),new Gc(n)}async signDetached(e=[],t=null,r=[],n=new Date,i=[],o=[],a=ae){const s=this.packets.findPacket(Y.packet.literalData);if(!s)throw Error("No literal data packet to sign.");return new uc(await qc(s,e,t,r,n,i,o,!0,a))}async verify(e,t=new Date,r=ae){const n=this.unwrapCompressed(),i=n.packets.filterByTag(Y.packet.literalData);if(1!==i.length)throw Error("Can only verify message with one literal data packet.");u(n.packets.stream)&&n.packets.push(...await G(n.packets.stream,(e=>e||[])));const o=n.packets.filterByTag(Y.packet.onePassSignature).reverse(),a=n.packets.filterByTag(Y.packet.signature);return o.length&&!a.length&&$.isStream(n.packets.stream)&&!u(n.packets.stream)?(await Promise.all(o.map((async e=>{e.correspondingSig=new Promise(((t,r)=>{e.correspondingSigResolve=t,e.correspondingSigReject=r})),e.signatureData=Q((async()=>(await e.correspondingSig).signatureData)),e.hashed=G(await e.hash(e.signatureType,i[0],void 0,!1)),e.hashed.catch((()=>{}))}))),n.packets.stream=F(n.packets.stream,(async(e,t)=>{const r=D(e),n=O(t);try{for(let e=0;e{t.correspondingSigReject(e)})),await n.abort(e)}})),Qc(o,i,e,t,!1,r)):Qc(a,i,e,t,!1,r)}verifyDetached(e,t,r=new Date,n=ae){const i=this.unwrapCompressed().packets.filterByTag(Y.packet.literalData);if(1!==i.length)throw Error("Can only verify message with one literal data packet.");return Qc(e.packets.filterByTag(Y.packet.signature),i,t,r,!0,n)}unwrapCompressed(){const e=this.packets.filterByTag(Y.packet.compressedData);return e.length?new Gc(e[0].packets):this}async appendSignature(e,t=ae){await this.packets.read($.isUint8Array(e)?e:(await pe(e)).data,Kc,t)}write(){return this.packets.write()}armor(e=ae){return ge(Y.armor.message,this.write(),null,null,null,e)}}async function qc(e,t,r=null,n=[],i=new Date,o=[],a=[],s=!1,c=ae){const u=new js,l=null===e.text?Y.signature.binary:Y.signature.text;if(await Promise.all(t.map((async(t,r)=>{const u=o[r];if(!t.isPrivate())throw Error("Need private key for signing");const d=await t.getSigningKey(n[r],i,u,c);return bc(e,t,d.keyPacket,{signatureType:l},i,u,a,s,c)}))).then((e=>{u.push(...e)})),r){const e=r.packets.filterByTag(Y.packet.signature);u.push(...e)}return u}async function Qc(e,t,r,n=new Date,i=!1,o=ae){return Promise.all(e.filter((function(e){return["text","binary"].includes(Y.read(Y.signature,e.signatureType))})).map((async function(e){return async function(e,t,r,n=new Date,i=!1,o=ae){let a,s;for(const l of r){const t=l.getKeys(e.issuerKeyID);if(t.length>0){a=l,s=t[0];break}}const c=e instanceof Ms?e.correspondingSig:e,u={keyID:e.issuerKeyID,verified:(async()=>{if(!s)throw Error("Could not find signing key with key ID "+e.issuerKeyID.toHex());await e.verify(s.keyPacket,e.signatureType,t[0],n,i,o);const r=await c;if(s.getCreationTime()>r.created)throw Error("Key is newer than the signature");try{await a.getSigningKey(s.getKeyID(),r.created,void 0,o)}catch(e){if(!o.allowInsecureVerificationWithReformattedKeys||!e.message.match(/Signature creation time is in the future/))throw e;await a.getSigningKey(s.getKeyID(),n,void 0,o)}return!0})(),signature:(async()=>{const e=await c,t=new js;return e&&t.push(e),new uc(t)})()};return u.signature.catch((()=>{})),u.verified.catch((()=>{})),u}(e,t,r,n,i,o)})))}async function Wc({armoredMessage:e,binaryMessage:t,config:r,...n}){r={...ae,...r};let i=e||t;if(!i)throw Error("readMessage: must pass options object containing `armoredMessage` or `binaryMessage`");if(e&&!$.isString(e)&&!$.isStream(e))throw Error("readMessage: options.armoredMessage must be a string or stream");if(t&&!$.isUint8Array(t)&&!$.isStream(t))throw Error("readMessage: options.binaryMessage must be a Uint8Array or stream");const o=Object.keys(n);if(o.length>0)throw Error("Unknown option: "+o.join(", "));const a=$.isStream(i);if(a&&(await _(),i=M(i)),e){const{type:e,data:t}=await pe(i,r);if(e!==Y.armor.message)throw Error("Armored text not of type message");i=t}const s=await js.fromBinary(i,Hc,r),c=new Gc(s);return c.fromStream=a,c}async function Jc({text:e,binary:t,filename:r,date:n=new Date,format:i=(void 0!==e?"utf8":"binary"),...o}){let a=void 0!==e?e:t;if(void 0===a)throw Error("createMessage: must pass options object containing `text` or `binary`");if(e&&!$.isString(e)&&!$.isStream(e))throw Error("createMessage: options.text must be a string or stream");if(t&&!$.isUint8Array(t)&&!$.isStream(t))throw Error("createMessage: options.binary must be a Uint8Array or stream");const s=Object.keys(o);if(s.length>0)throw Error("Unknown option: "+s.join(", "));const c=$.isStream(a);c&&(await _(),a=M(a));const u=new Ss(n);void 0!==e?u.setText(a,Y.write(Y.literal,i)):u.setBytes(a,Y.write(Y.literal,i)),void 0!==r&&u.setFilename(r);const l=new js;l.push(u);const d=new Gc(l);return d.fromStream=c,d}const Yc=$.constructAllowedPackets([_s]);class Zc{constructor(e,t){if(this.text=$.removeTrailingSpaces(e).replace(/\r?\n/g,"\r\n"),t&&!(t instanceof uc))throw Error("Invalid signature input");this.signature=t||new uc(new js)}getSigningKeyIDs(){const e=[];return this.signature.packets.forEach((function(t){e.push(t.issuerKeyID)})),e}async sign(e,t=null,r=[],n=new Date,i=[],o=[],a=ae){const s=new Ss;s.setText(this.text);const c=new uc(await qc(s,e,t,r,n,i,o,!0,a));return new Zc(this.text,c)}verify(e,t=new Date,r=ae){const n=this.signature.packets.filterByTag(Y.packet.signature),i=new Ss;return i.setText(this.text),Qc(n,[i],e,t,!0,r)}getText(){return this.text.replace(/\r\n/g,"\n")}armor(e=ae){let t=this.signature.packets.map((function(e){return Y.read(Y.hash,e.hashAlgorithm).toUpperCase()}));t=t.filter((function(e,t,r){return r.indexOf(e)===t}));const r={hash:t.join(),text:this.text,data:this.signature.packets.write()};return ge(Y.armor.signed,r,void 0,void 0,void 0,e)}}async function $c({cleartextMessage:e,config:t,...r}){if(t={...ae,...t},!e)throw Error("readCleartextMessage: must pass options object containing `cleartextMessage`");if(!$.isString(e))throw Error("readCleartextMessage: options.cleartextMessage must be a string");const n=Object.keys(r);if(n.length>0)throw Error("Unknown option: "+n.join(", "));const i=await pe(e);if(i.type!==Y.armor.signed)throw Error("No cleartext signed message.");const o=await js.fromBinary(i.data,Yc,t);!function(e,t){const r=function(e){const r=e=>t=>e.hashAlgorithm===t;for(let n=0;n0)throw Error("Unknown option: "+r.join(", "));return new Zc(e)}async function eu({userIDs:e=[],passphrase:t,type:r="ecc",rsaBits:n=4096,curve:i="curve25519",keyExpirationTime:o=0,date:a=new Date,subkeys:s=[{}],format:c="armored",config:u,...l}){mu(u={...ae,...u}),e=yu(e);const d=Object.keys(l);if(d.length>0)throw Error("Unknown option: "+d.join(", "));if(0===e.length)throw Error("UserIDs are required for key generation");if("rsa"===r&&nCc(e.subkeys[r],e)));let r=[fc(e,t)];r=r.concat(e.subkeys.map((e=>dc(e,t))));const n=await Promise.all(r),i=await Rc(n[0],n.slice(1),e,t),o=await i.getRevocationCertificate(e.date,t);return i.revocationSignatures=[],{key:i,revocationCertificate:o}}(f,u);return e.getKeys().forEach((({keyPacket:e})=>Ic(e,u))),{privateKey:wu(e,c,u),publicKey:wu(e.toPublic(),c,u),revocationCertificate:t}}catch(e){throw $.wrapError("Error generating keypair",e)}}async function tu({privateKey:e,userIDs:t=[],passphrase:r,keyExpirationTime:n=0,date:i,format:o="armored",config:a,...s}){mu(a={...ae,...a}),t=yu(t);const c=Object.keys(s);if(c.length>0)throw Error("Unknown option: "+c.join(", "));if(0===t.length)throw Error("UserIDs are required for key reformat");const u={privateKey:e,userIDs:t,passphrase:r,keyExpirationTime:n,date:i};try{const{key:e,revocationCertificate:t}=await async function(e,t){e=s(e);const{privateKey:r}=e;if(!r.isPrivate())throw Error("Cannot reformat a public key");if(r.keyPacket.isDummy())throw Error("Cannot reformat a gnu-dummy primary key");if(!r.getKeys().every((({keyPacket:e})=>e.isDecrypted())))throw Error("Key is not decrypted");const n=r.keyPacket;e.subkeys||(e.subkeys=await Promise.all(r.subkeys.map((async e=>{const r=e.keyPacket,i={key:n,bind:r},o=await hc(e.bindingSignatures,n,Y.signature.subkeyBinding,i,null,t).catch((()=>({})));return{sign:o.keyFlags&&o.keyFlags[0]&Y.keyFlags.signData}}))));const i=r.subkeys.map((e=>e.keyPacket));if(e.subkeys.length!==i.length)throw Error("Number of subkey options does not match number of subkeys");e.subkeys=e.subkeys.map((t=>s(t,e)));const o=await Rc(n,i,e,t),a=await o.getRevocationCertificate(e.date,t);return o.revocationSignatures=[],{key:o,revocationCertificate:a};function s(e,t={}){return e.keyExpirationTime=e.keyExpirationTime||t.keyExpirationTime,e.passphrase=$.isString(e.passphrase)?e.passphrase:t.passphrase,e.date=e.date||t.date,e}}(u,a);return{privateKey:wu(e,o,a),publicKey:wu(e.toPublic(),o,a),revocationCertificate:t}}catch(e){throw $.wrapError("Error reformatting keypair",e)}}async function ru({key:e,revocationCertificate:t,reasonForRevocation:r,date:n=new Date,format:i="armored",config:o,...a}){mu(o={...ae,...o});const s=Object.keys(a);if(s.length>0)throw Error("Unknown option: "+s.join(", "));try{const a=t?await e.applyRevocationCertificate(t,n,o):await e.revoke(r,n,o);return a.isPrivate()?{privateKey:wu(a,i,o),publicKey:wu(a.toPublic(),i,o)}:{privateKey:null,publicKey:wu(a,i,o)}}catch(e){throw $.wrapError("Error revoking key",e)}}async function nu({privateKey:e,passphrase:t,config:r,...n}){mu(r={...ae,...r});const i=Object.keys(n);if(i.length>0)throw Error("Unknown option: "+i.join(", "));if(!e.isPrivate())throw Error("Cannot decrypt a public key");const o=e.clone(!0),a=$.isArray(t)?t:[t];try{return await Promise.all(o.getKeys().map((e=>$.anyPromise(a.map((t=>e.keyPacket.decrypt(t))))))),await o.validate(r),o}catch(e){throw o.clearPrivateParams(),$.wrapError("Error decrypting private key",e)}}async function iu({privateKey:e,passphrase:t,config:r,...n}){mu(r={...ae,...r});const i=Object.keys(n);if(i.length>0)throw Error("Unknown option: "+i.join(", "));if(!e.isPrivate())throw Error("Cannot encrypt a public key");const o=e.clone(!0),a=o.getKeys(),s=$.isArray(t)?t:Array(a.length).fill(t);if(s.length!==a.length)throw Error("Invalid number of passphrases given for key encryption");try{return await Promise.all(a.map((async(e,t)=>{const{keyPacket:n}=e;await n.encrypt(s[t],r),n.clearPrivateParams()}))),o}catch(e){throw o.clearPrivateParams(),$.wrapError("Error encrypting private key",e)}}async function ou({message:e,encryptionKeys:t,signingKeys:r,passwords:n,sessionKey:i,format:o="armored",signature:a=null,wildcard:s=!1,signingKeyIDs:c=[],encryptionKeyIDs:u=[],date:l=new Date,signingUserIDs:d=[],encryptionUserIDs:f=[],signatureNotations:h=[],config:p,...g}){if(mu(p={...ae,...p}),fu(e),pu(o),t=yu(t),r=yu(r),n=yu(n),c=yu(c),u=yu(u),d=yu(d),f=yu(f),h=yu(h),g.detached)throw Error("The `detached` option has been removed from openpgp.encrypt, separately call openpgp.sign instead. Don't forget to remove the `privateKeys` option as well.");if(g.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.encrypt, pass `encryptionKeys` instead");if(g.privateKeys)throw Error("The `privateKeys` option has been removed from openpgp.encrypt, pass `signingKeys` instead");if(void 0!==g.armor)throw Error("The `armor` option has been removed from openpgp.encrypt, pass `format` instead.");const m=Object.keys(g);if(m.length>0)throw Error("Unknown option: "+m.join(", "));r||(r=[]);const y=e.fromStream;try{if((r.length||a)&&(e=await e.sign(r,a,c,l,d,h,p)),e=e.compress(await yc("compression",t,l,f,p),p),e=await e.encrypt(t,n,i,s,u,l,f,p),"object"===o)return e;const g="armored"===o;return bu(g?e.armor(p):e.write(),y,g?"utf8":"binary")}catch(e){throw $.wrapError("Error encrypting message",e)}}async function au({message:e,decryptionKeys:t,passwords:r,sessionKeys:n,verificationKeys:i,expectSigned:o=!1,format:a="utf8",signature:s=null,date:c=new Date,config:u,...l}){if(mu(u={...ae,...u}),fu(e),i=yu(i),t=yu(t),r=yu(r),n=yu(n),l.privateKeys)throw Error("The `privateKeys` option has been removed from openpgp.decrypt, pass `decryptionKeys` instead");if(l.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.decrypt, pass `verificationKeys` instead");const d=Object.keys(l);if(d.length>0)throw Error("Unknown option: "+d.join(", "));try{const l=await e.decrypt(t,r,n,c,u);i||(i=[]);const d={};if(d.signatures=s?await l.verifyDetached(s,i,c,u):await l.verify(i,c,u),d.data="binary"===a?l.getLiteralData():l.getText(),d.filename=l.getFilename(),vu(d,e),o){if(0===i.length)throw Error("Verification keys are required to verify message signatures");if(0===d.signatures.length)throw Error("Message is not signed");d.data=j([d.data,Q((async()=>{await $.anyPromise(d.signatures.map((e=>e.verified)))}))])}return d.data=await bu(d.data,e.fromStream,a),d}catch(e){throw $.wrapError("Error decrypting message",e)}}async function su({message:e,signingKeys:t,format:r="armored",detached:n=!1,signingKeyIDs:i=[],date:o=new Date,signingUserIDs:a=[],signatureNotations:s=[],config:c,...u}){if(mu(c={...ae,...c}),hu(e),pu(r),t=yu(t),i=yu(i),a=yu(a),s=yu(s),u.privateKeys)throw Error("The `privateKeys` option has been removed from openpgp.sign, pass `signingKeys` instead");if(void 0!==u.armor)throw Error("The `armor` option has been removed from openpgp.sign, pass `format` instead.");const l=Object.keys(u);if(l.length>0)throw Error("Unknown option: "+l.join(", "));if(e instanceof Zc&&"binary"===r)throw Error("Cannot return signed cleartext message in binary format");if(e instanceof Zc&&n)throw Error("Cannot detach-sign a cleartext message");if(!t||0===t.length)throw Error("No signing keys provided");try{let u;if(u=n?await e.signDetached(t,void 0,i,o,a,s,c):await e.sign(t,void 0,i,o,a,s,c),"object"===r)return u;const l="armored"===r;return u=l?u.armor(c):u.write(),n&&(u=F(e.packets.write(),(async(e,t)=>{await Promise.all([B(u,t),G(e).catch((()=>{}))])}))),bu(u,e.fromStream,l?"utf8":"binary")}catch(e){throw $.wrapError("Error signing message",e)}}async function cu({message:e,verificationKeys:t,expectSigned:r=!1,format:n="utf8",signature:i=null,date:o=new Date,config:a,...s}){if(mu(a={...ae,...a}),hu(e),t=yu(t),s.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.verify, pass `verificationKeys` instead");const c=Object.keys(s);if(c.length>0)throw Error("Unknown option: "+c.join(", "));if(e instanceof Zc&&"binary"===n)throw Error("Can't return cleartext message data as binary");if(e instanceof Zc&&i)throw Error("Can't verify detached cleartext signature");try{const s={};if(s.signatures=i?await e.verifyDetached(i,t,o,a):await e.verify(t,o,a),s.data="binary"===n?e.getLiteralData():e.getText(),e.fromStream&&!i&&vu(s,e),r){if(0===s.signatures.length)throw Error("Message is not signed");s.data=j([s.data,Q((async()=>{await $.anyPromise(s.signatures.map((e=>e.verified)))}))])}return s.data=await bu(s.data,e.fromStream,n),s}catch(e){throw $.wrapError("Error verifying signed message",e)}}async function uu({encryptionKeys:e,date:t=new Date,encryptionUserIDs:r=[],config:n,...i}){if(mu(n={...ae,...n}),e=yu(e),r=yu(r),i.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.generateSessionKey, pass `encryptionKeys` instead");const o=Object.keys(i);if(o.length>0)throw Error("Unknown option: "+o.join(", "));try{return await Gc.generateSessionKey(e,t,r,n)}catch(e){throw $.wrapError("Error generating session key",e)}}async function lu({data:e,algorithm:t,aeadAlgorithm:r,encryptionKeys:n,passwords:i,format:o="armored",wildcard:a=!1,encryptionKeyIDs:s=[],date:c=new Date,encryptionUserIDs:u=[],config:l,...d}){if(mu(l={...ae,...l}),function(e){if(!$.isUint8Array(e))throw Error("Parameter [data] must be of type Uint8Array")}(e),function(e){if(!$.isString(e))throw Error("Parameter [algorithm] must be of type String")}(t),pu(o),n=yu(n),i=yu(i),s=yu(s),u=yu(u),d.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.encryptSessionKey, pass `encryptionKeys` instead");const f=Object.keys(d);if(f.length>0)throw Error("Unknown option: "+f.join(", "));if(!(n&&0!==n.length||i&&0!==i.length))throw Error("No encryption keys or passwords provided.");try{return wu(await Gc.encryptSessionKey(e,t,r,n,i,a,s,c,u,l),o,l)}catch(e){throw $.wrapError("Error encrypting session key",e)}}async function du({message:e,decryptionKeys:t,passwords:r,date:n=new Date,config:i,...o}){if(mu(i={...ae,...i}),fu(e),t=yu(t),r=yu(r),o.privateKeys)throw Error("The `privateKeys` option has been removed from openpgp.decryptSessionKeys, pass `decryptionKeys` instead");const a=Object.keys(o);if(a.length>0)throw Error("Unknown option: "+a.join(", "));try{return await e.decryptSessionKeys(t,r,n,i)}catch(e){throw $.wrapError("Error decrypting session keys",e)}}function fu(e){if(!(e instanceof Gc))throw Error("Parameter [message] needs to be of type Message")}function hu(e){if(!(e instanceof Zc||e instanceof Gc))throw Error("Parameter [message] needs to be of type Message or CleartextMessage")}function pu(e){if("armored"!==e&&"binary"!==e&&"object"!==e)throw Error("Unsupported format "+e)}const gu=Object.keys(ae).length;function mu(e){const t=Object.keys(e);if(t.length!==gu)for(const r of t)if(void 0===ae[r])throw Error("Unknown config property: "+r)}function yu(e){return e&&!$.isArray(e)&&(e=[e]),e}async function bu(e,t,r="utf8"){const n=$.isStream(e);return"array"===n?G(e):"node"===t?(e=v(e),"binary"!==r&&e.setEncoding(r),e):"web"===t&&"ponyfill"===n?x(e):e}function vu(e,t){e.data=F(t.packets.stream,(async(t,r)=>{await B(e.data,r,{preventClose:!0});const n=O(r);try{await G(t,(e=>e)),await n.close()}catch(e){await n.abort(e)}}))}function wu(e,t,r){switch(t){case"object":return e;case"armored":return e.armor(r);case"binary":return e.write();default:throw Error("Unsupported format "+t)}}const Au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:e=>`Symbol(${e})`;function Cu(){}const Eu="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;function xu(e){return"object"==typeof e&&null!==e||"function"==typeof e}const Su=Cu,Iu=Promise,ku=Promise.prototype.then,_u=Promise.resolve.bind(Iu),Tu=Promise.reject.bind(Iu);function Mu(e){return new Iu(e)}function Pu(e){return _u(e)}function ju(e){return Tu(e)}function Du(e,t,r){return ku.call(e,t,r)}function Ou(e,t,r){Du(Du(e,t,r),void 0,Su)}function Bu(e,t){Ou(e,t)}function Nu(e,t){Ou(e,void 0,t)}function Ru(e,t,r){return Du(e,t,r)}function Lu(e){Du(e,void 0,Su)}const Fu=(()=>{const e=Eu&&Eu.queueMicrotask;if("function"==typeof e)return e;const t=Pu(void 0);return e=>Du(t,e)})();function Uu(e,t,r){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function zu(e,t,r){try{return Pu(Uu(e,t,r))}catch(e){return ju(e)}}class Hu{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){const t=this._back;let r=t;16383===t._elements.length&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size}shift(){const e=this._front;let t=e;const r=this._cursor;let n=r+1;const i=e._elements,o=i[r];return 16384===n&&(t=e._next,n=0),--this._size,this._cursor=n,e!==t&&(this._front=t),i[r]=void 0,o}forEach(e){let t=this._cursor,r=this._front,n=r._elements;for(;!(t===n.length&&void 0===r._next||t===n.length&&(r=r._next,n=r._elements,t=0,0===n.length));)e(n[t]),++t}peek(){const e=this._front,t=this._cursor;return e._elements[t]}}function Vu(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?Qu(e):"closed"===t._state?function(e){Qu(e),Yu(e)}(e):Wu(e,t._storedError)}function Ku(e,t){return If(e._ownerReadableStream,t)}function Gu(e){"readable"===e._ownerReadableStream._state?Ju(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e){Wu(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"))}(e),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function qu(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function Qu(e){e._closedPromise=Mu(((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r}))}function Wu(e,t){Qu(e),Ju(e,t)}function Ju(e,t){void 0!==e._closedPromise_reject&&(Lu(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function Yu(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const Zu=Au("[[AbortSteps]]"),$u=Au("[[ErrorSteps]]"),Xu=Au("[[CancelSteps]]"),el=Au("[[PullSteps]]"),tl=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},rl=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function nl(e,t){if(void 0!==e&&"object"!=typeof(r=e)&&"function"!=typeof r)throw new TypeError(t+" is not an object.");var r}function il(e,t){if("function"!=typeof e)throw new TypeError(t+" is not a function.")}function ol(e,t){if(!function(e){return"object"==typeof e&&null!==e||"function"==typeof e}(e))throw new TypeError(t+" is not an object.")}function al(e,t,r){if(void 0===e)throw new TypeError(`Parameter ${t} is required in '${r}'.`)}function sl(e,t,r){if(void 0===e)throw new TypeError(`${t} is required in '${r}'.`)}function cl(e){return Number(e)}function ul(e){return 0===e?0:e}function ll(e,t){const r=Number.MAX_SAFE_INTEGER;let n=Number(e);if(n=ul(n),!tl(n))throw new TypeError(t+" is not a finite number");if(n=function(e){return ul(rl(e))}(n),n<0||n>r)throw new TypeError(`${t} is outside the accepted range of 0 to ${r}, inclusive`);return tl(n)&&0!==n?n:0}function dl(e,t){if(!xf(e))throw new TypeError(t+" is not a ReadableStream.")}function fl(e){return new yl(e)}function hl(e,t){e._reader._readRequests.push(t)}function pl(e,t,r){const n=e._reader._readRequests.shift();r?n._closeSteps():n._chunkSteps(t)}function gl(e){return e._reader._readRequests.length}function ml(e){const t=e._reader;return void 0!==t&&!!bl(t)}class yl{constructor(e){if(al(e,1,"ReadableStreamDefaultReader"),dl(e,"First parameter"),Sf(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");Vu(this,e),this._readRequests=new Hu}get closed(){return bl(this)?this._closedPromise:ju(wl("closed"))}cancel(e=void 0){return bl(this)?void 0===this._ownerReadableStream?ju(qu("cancel")):Ku(this,e):ju(wl("cancel"))}read(){if(!bl(this))return ju(wl("read"));if(void 0===this._ownerReadableStream)return ju(qu("read from"));let e,t;const r=Mu(((r,n)=>{e=r,t=n}));return vl(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),r}releaseLock(){if(!bl(this))throw wl("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");Gu(this)}}}function bl(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function vl(e,t){const r=e._ownerReadableStream;r._disturbed=!0,"closed"===r._state?t._closeSteps():"errored"===r._state?t._errorSteps(r._storedError):r._readableStreamController[el](t)}function wl(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}let Al;Object.defineProperties(yl.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(yl.prototype,Au.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0}),"symbol"==typeof Au.asyncIterator&&(Al={[Au.asyncIterator](){return this}},Object.defineProperty(Al,Au.asyncIterator,{enumerable:!1}));class Cl{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){const e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?Ru(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){const t=()=>this._returnSteps(e);return this._ongoingPromise?Ru(this._ongoingPromise,t,t):t()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const e=this._reader;if(void 0===e._ownerReadableStream)return ju(qu("iterate"));let t,r;const n=Mu(((e,n)=>{t=e,r=n}));return vl(e,{_chunkSteps:e=>{this._ongoingPromise=void 0,Fu((()=>t({value:e,done:!1})))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,Gu(e),t({value:void 0,done:!0})},_errorSteps:t=>{this._ongoingPromise=void 0,this._isFinished=!0,Gu(e),r(t)}}),n}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;const t=this._reader;if(void 0===t._ownerReadableStream)return ju(qu("finish iterating"));if(!this._preventCancel){const r=Ku(t,e);return Gu(t),Ru(r,(()=>({value:e,done:!0})))}return Gu(t),Pu({value:e,done:!0})}}const El={next(){return xl(this)?this._asyncIteratorImpl.next():ju(Sl("next"))},return(e){return xl(this)?this._asyncIteratorImpl.return(e):ju(Sl("return"))}};function xl(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl")}function Sl(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}void 0!==Al&&Object.setPrototypeOf(El,Al);const Il=Number.isNaN||function(e){return e!=e};function kl(e){return!!function(e){return"number"==typeof e&&(!Il(e)&&!(e<0))}(e)&&e!==1/0}function _l(e){const t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function Tl(e,t,r){if(!kl(r=Number(r)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function Ml(e){e._queue=new Hu,e._queueTotalSize=0}function Pl(e){return e.slice()}class jl{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!Bl(this))throw Yl("view");return this._view}respond(e){if(!Bl(this))throw Yl("respond");if(al(e,1,"respond"),e=ll(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,function(e,t){if(!kl(t=Number(t)))throw new RangeError("bytesWritten must be a finite");Gl(e,t)}(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!Bl(this))throw Yl("respondWithNewView");if(al(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");!function(e,t){const r=e._pendingPullIntos.peek();if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=t.buffer,Gl(e,t.byteLength)}(this._associatedReadableByteStreamController,e)}}Object.defineProperties(jl.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(jl.prototype,Au.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class Dl{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!Ol(this))throw Zl("byobRequest");if(null===this._byobRequest&&this._pendingPullIntos.length>0){const e=this._pendingPullIntos.peek(),t=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),r=Object.create(jl.prototype);!function(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}(r,this,t),this._byobRequest=r}return this._byobRequest}get desiredSize(){if(!Ol(this))throw Zl("desiredSize");return Jl(this)}close(){if(!Ol(this))throw Zl("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");const e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);!function(e){const t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0&&e._pendingPullIntos.peek().bytesFilled>0){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Wl(e,t),t}Ql(e),kf(t)}}(this)}enqueue(e){if(!Ol(this))throw Zl("enqueue");if(al(e,1,"enqueue"),!ArrayBuffer.isView(e))throw new TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");const t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);!function(e,t){const r=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==r._state)return;const n=t.buffer,i=t.byteOffset,o=t.byteLength,a=n;ml(r)?0===gl(r)?Fl(e,a,i,o):pl(r,new Uint8Array(a,i,o),!1):ed(r)?(Fl(e,a,i,o),Kl(e)):Fl(e,a,i,o),Nl(e)}(this,e)}error(e=void 0){if(!Ol(this))throw Zl("error");Wl(this,e)}[Xu](e){this._pendingPullIntos.length>0&&(this._pendingPullIntos.peek().bytesFilled=0),Ml(this);const t=this._cancelAlgorithm(e);return Ql(this),t}[el](e){const t=this._controlledReadableByteStream;if(this._queueTotalSize>0){const t=this._queue.shift();this._queueTotalSize-=t.byteLength,Hl(this);const r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);return void e._chunkSteps(r)}const r=this._autoAllocateChunkSize;if(void 0!==r){let n;try{n=new ArrayBuffer(r)}catch(t){return void e._errorSteps(t)}const i={buffer:n,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(i)}hl(t,e),Nl(this)}}function Ol(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function Bl(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function Nl(e){const t=function(e){const t=e._controlledReadableByteStream;if("readable"!==t._state)return!1;if(e._closeRequested)return!1;if(!e._started)return!1;if(ml(t)&&gl(t)>0)return!0;if(ed(t)&&Xl(t)>0)return!0;return Jl(e)>0}(e);t&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,Ou(e._pullAlgorithm(),(()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Nl(e))}),(t=>{Wl(e,t)}))))}function Rl(e,t){let r=!1;"closed"===e._state&&(r=!0);const n=Ll(t);"default"===t.readerType?pl(e,n,r):function(e,t,r){const n=e._reader._readIntoRequests.shift();r?n._closeSteps(t):n._chunkSteps(t)}(e,n,r)}function Ll(e){const t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function Fl(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function Ul(e,t){const r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,i=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+i,a=o-o%r;let s=i,c=!1;a>n&&(s=a-t.bytesFilled,c=!0);const u=e._queue;for(;s>0;){const r=u.peek(),n=Math.min(s,r.byteLength),i=t.byteOffset+t.bytesFilled;l=t.buffer,d=i,f=r.buffer,h=r.byteOffset,p=n,new Uint8Array(l).set(new Uint8Array(f,h,p),d),r.byteLength===n?u.shift():(r.byteOffset+=n,r.byteLength-=n),e._queueTotalSize-=n,zl(e,n,t),s-=n}var l,d,f,h,p;return c}function zl(e,t,r){Vl(e),r.bytesFilled+=t}function Hl(e){0===e._queueTotalSize&&e._closeRequested?(Ql(e),kf(e._controlledReadableByteStream)):Nl(e)}function Vl(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function Kl(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;const t=e._pendingPullIntos.peek();Ul(e,t)&&(ql(e),Rl(e._controlledReadableByteStream,t))}}function Gl(e,t){const r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");!function(e,t){t.buffer=t.buffer;const r=e._controlledReadableByteStream;if(ed(r))for(;Xl(r)>0;)Rl(r,ql(e))}(e,r)}else!function(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(zl(e,t,r),r.bytesFilled0){const t=r.byteOffset+r.bytesFilled,i=r.buffer.slice(t-n,t);Fl(e,i,0,i.byteLength)}r.buffer=r.buffer,r.bytesFilled-=n,Rl(e._controlledReadableByteStream,r),Kl(e)}(e,t,r);Nl(e)}function ql(e){const t=e._pendingPullIntos.shift();return Vl(e),t}function Ql(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function Wl(e,t){const r=e._controlledReadableByteStream;"readable"===r._state&&(function(e){Vl(e),e._pendingPullIntos=new Hu}(e),Ml(e),Ql(e),_f(r,t))}function Jl(e){const t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function Yl(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function Zl(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function $l(e,t){e._reader._readIntoRequests.push(t)}function Xl(e){return e._reader._readIntoRequests.length}function ed(e){const t=e._reader;return void 0!==t&&!!rd(t)}Object.defineProperties(Dl.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(Dl.prototype,Au.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class td{constructor(e){if(al(e,1,"ReadableStreamBYOBReader"),dl(e,"First parameter"),Sf(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Ol(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");Vu(this,e),this._readIntoRequests=new Hu}get closed(){return rd(this)?this._closedPromise:ju(nd("closed"))}cancel(e=void 0){return rd(this)?void 0===this._ownerReadableStream?ju(qu("cancel")):Ku(this,e):ju(nd("cancel"))}read(e){if(!rd(this))return ju(nd("read"));if(!ArrayBuffer.isView(e))return ju(new TypeError("view must be an array buffer view"));if(0===e.byteLength)return ju(new TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return ju(new TypeError("view's buffer must have non-zero byteLength"));if(void 0===this._ownerReadableStream)return ju(qu("read from"));let t,r;const n=Mu(((e,n)=>{t=e,r=n}));return function(e,t,r){const n=e._ownerReadableStream;n._disturbed=!0,"errored"===n._state?r._errorSteps(n._storedError):function(e,t,r){const n=e._controlledReadableByteStream;let i=1;t.constructor!==DataView&&(i=t.constructor.BYTES_PER_ELEMENT);const o=t.constructor,a={buffer:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:i,viewConstructor:o,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(a),void $l(n,r);if("closed"!==n._state){if(e._queueTotalSize>0){if(Ul(e,a)){const t=Ll(a);return Hl(e),void r._chunkSteps(t)}if(e._closeRequested){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");return Wl(e,t),void r._errorSteps(t)}}e._pendingPullIntos.push(a),$l(n,r),Nl(e)}else{const e=new o(a.buffer,a.byteOffset,0);r._closeSteps(e)}}(n._readableStreamController,t,r)}(this,e,{_chunkSteps:e=>t({value:e,done:!1}),_closeSteps:e=>t({value:e,done:!0}),_errorSteps:e=>r(e)}),n}releaseLock(){if(!rd(this))throw nd("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");Gu(this)}}}function rd(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function nd(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function id(e,t){const{highWaterMark:r}=e;if(void 0===r)return t;if(Il(r)||r<0)throw new RangeError("Invalid highWaterMark");return r}function od(e){const{size:t}=e;return t||(()=>1)}function ad(e,t){nl(e,t);const r=null==e?void 0:e.highWaterMark,n=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:cl(r),size:void 0===n?void 0:sd(n,t+" has member 'size' that")}}function sd(e,t){return il(e,t),t=>cl(e(t))}function cd(e,t,r){return il(e,r),r=>zu(e,t,[r])}function ud(e,t,r){return il(e,r),()=>zu(e,t,[])}function ld(e,t,r){return il(e,r),r=>Uu(e,t,[r])}function dd(e,t,r){return il(e,r),(r,n)=>zu(e,t,[r,n])}function fd(e,t){if(!md(e))throw new TypeError(t+" is not a WritableStream.")}Object.defineProperties(td.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(td.prototype,Au.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});class hd{constructor(e={},t={}){void 0===e?e=null:ol(e,"First parameter");const r=ad(t,"Second parameter"),n=function(e,t){nl(e,t);const r=null==e?void 0:e.abort,n=null==e?void 0:e.close,i=null==e?void 0:e.start,o=null==e?void 0:e.type,a=null==e?void 0:e.write;return{abort:void 0===r?void 0:cd(r,e,t+" has member 'abort' that"),close:void 0===n?void 0:ud(n,e,t+" has member 'close' that"),start:void 0===i?void 0:ld(i,e,t+" has member 'start' that"),write:void 0===a?void 0:dd(a,e,t+" has member 'write' that"),type:o}}(e,"First parameter");if(gd(this),void 0!==n.type)throw new RangeError("Invalid type is specified");const i=od(r);!function(e,t,r,n){const i=Object.create(Dd.prototype);let o=()=>{},a=()=>Pu(void 0),s=()=>Pu(void 0),c=()=>Pu(void 0);void 0!==t.start&&(o=()=>t.start(i)),void 0!==t.write&&(a=e=>t.write(e,i)),void 0!==t.close&&(s=()=>t.close()),void 0!==t.abort&&(c=e=>t.abort(e)),Od(e,i,o,a,s,c,r,n)}(this,n,id(r,1),i)}get locked(){if(!md(this))throw zd("locked");return yd(this)}abort(e=void 0){return md(this)?yd(this)?ju(new TypeError("Cannot abort a stream that already has a writer")):bd(this,e):ju(zd("abort"))}close(){return md(this)?yd(this)?ju(new TypeError("Cannot close a stream that already has a writer")):Ed(this)?ju(new TypeError("Cannot close an already-closing stream")):vd(this):ju(zd("close"))}getWriter(){if(!md(this))throw zd("getWriter");return pd(this)}}function pd(e){return new Id(e)}function gd(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new Hu,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function md(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function yd(e){return void 0!==e._writer}function bd(e,t){const r=e._state;if("closed"===r||"errored"===r)return Pu(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let n=!1;"erroring"===r&&(n=!0,t=void 0);const i=Mu(((r,i)=>{e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:i,_reason:t,_wasAlreadyErroring:n}}));return e._pendingAbortRequest._promise=i,n||Ad(e,t),i}function vd(e){const t=e._state;if("closed"===t||"errored"===t)return ju(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));const r=Mu(((t,r)=>{const n={_resolve:t,_reject:r};e._closeRequest=n})),n=e._writer;var i;return void 0!==n&&e._backpressure&&"writable"===t&&$d(n),Tl(i=e._writableStreamController,jd,0),Rd(i),r}function wd(e,t){"writable"!==e._state?Cd(e):Ad(e,t)}function Ad(e,t){const r=e._writableStreamController;e._state="erroring",e._storedError=t;const n=e._writer;void 0!==n&&Td(n,t),!function(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}(e)&&r._started&&Cd(e)}function Cd(e){e._state="errored",e._writableStreamController[$u]();const t=e._storedError;if(e._writeRequests.forEach((e=>{e._reject(t)})),e._writeRequests=new Hu,void 0===e._pendingAbortRequest)return void xd(e);const r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void xd(e);Ou(e._writableStreamController[Zu](r._reason),(()=>{r._resolve(),xd(e)}),(t=>{r._reject(t),xd(e)}))}function Ed(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function xd(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const t=e._writer;void 0!==t&&qd(t,e._storedError)}function Sd(e,t){const r=e._writer;void 0!==r&&t!==e._backpressure&&(t?function(e){Wd(e)}(r):$d(r)),e._backpressure=t}Object.defineProperties(hd.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(hd.prototype,Au.toStringTag,{value:"WritableStream",configurable:!0});class Id{constructor(e){if(al(e,1,"WritableStreamDefaultWriter"),fd(e,"First parameter"),yd(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;const t=e._state;if("writable"===t)!Ed(e)&&e._backpressure?Wd(this):Yd(this),Kd(this);else if("erroring"===t)Jd(this,e._storedError),Kd(this);else if("closed"===t)Yd(this),Kd(this),Qd(this);else{const t=e._storedError;Jd(this,t),Gd(this,t)}}get closed(){return kd(this)?this._closedPromise:ju(Hd("closed"))}get desiredSize(){if(!kd(this))throw Hd("desiredSize");if(void 0===this._ownerWritableStream)throw Vd("desiredSize");return function(e){const t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:Nd(t._writableStreamController)}(this)}get ready(){return kd(this)?this._readyPromise:ju(Hd("ready"))}abort(e=void 0){return kd(this)?void 0===this._ownerWritableStream?ju(Vd("abort")):function(e,t){return bd(e._ownerWritableStream,t)}(this,e):ju(Hd("abort"))}close(){if(!kd(this))return ju(Hd("close"));const e=this._ownerWritableStream;return void 0===e?ju(Vd("close")):Ed(e)?ju(new TypeError("Cannot close an already-closing stream")):_d(this)}releaseLock(){if(!kd(this))throw Hd("releaseLock");void 0!==this._ownerWritableStream&&Md(this)}write(e=void 0){return kd(this)?void 0===this._ownerWritableStream?ju(Vd("write to")):Pd(this,e):ju(Hd("write"))}}function kd(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function _d(e){return vd(e._ownerWritableStream)}function Td(e,t){"pending"===e._readyPromiseState?Zd(e,t):function(e,t){Jd(e,t)}(e,t)}function Md(e){const t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Td(e,r),function(e,t){"pending"===e._closedPromiseState?qd(e,t):function(e,t){Gd(e,t)}(e,t)}(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function Pd(e,t){const r=e._ownerWritableStream,n=r._writableStreamController,i=function(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return Ld(e,t),1}}(n,t);if(r!==e._ownerWritableStream)return ju(Vd("write to"));const o=r._state;if("errored"===o)return ju(r._storedError);if(Ed(r)||"closed"===o)return ju(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return ju(r._storedError);const a=function(e){return Mu(((t,r)=>{const n={_resolve:t,_reject:r};e._writeRequests.push(n)}))}(r);return function(e,t,r){try{Tl(e,t,r)}catch(t){return void Ld(e,t)}const n=e._controlledWritableStream;Ed(n)||"writable"!==n._state||Sd(n,Fd(e)),Rd(e)}(n,t,i),a}Object.defineProperties(Id.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(Id.prototype,Au.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});const jd={};class Dd{constructor(){throw new TypeError("Illegal constructor")}error(e=void 0){if(!function(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")}(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&Ud(this,e)}[Zu](e){const t=this._abortAlgorithm(e);return Bd(this),t}[$u](){Ml(this)}}function Od(e,t,r,n,i,o,a,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,Ml(t),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=a,t._writeAlgorithm=n,t._closeAlgorithm=i,t._abortAlgorithm=o;const c=Fd(t);Sd(e,c),Ou(Pu(r()),(()=>{t._started=!0,Rd(t)}),(r=>{t._started=!0,wd(e,r)}))}function Bd(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Nd(e){return e._strategyHWM-e._queueTotalSize}function Rd(e){const t=e._controlledWritableStream;if(!e._started)return;if(void 0!==t._inFlightWriteRequest)return;if("erroring"===t._state)return void Cd(t);if(0===e._queue.length)return;const r=e._queue.peek().value;r===jd?function(e){const t=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),_l(e);const r=e._closeAlgorithm();Bd(e),Ou(r,(()=>{!function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";const t=e._writer;void 0!==t&&Qd(t)}(t)}),(e=>{!function(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),wd(e,t)}(t,e)}))}(e):function(e,t){const r=e._controlledWritableStream;!function(e){e._inFlightWriteRequest=e._writeRequests.shift()}(r);Ou(e._writeAlgorithm(t),(()=>{!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(r);const t=r._state;if(_l(e),!Ed(r)&&"writable"===t){const t=Fd(e);Sd(r,t)}Rd(e)}),(t=>{"writable"===r._state&&Bd(e),function(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,wd(e,t)}(r,t)}))}(e,r)}function Ld(e,t){"writable"===e._controlledWritableStream._state&&Ud(e,t)}function Fd(e){return Nd(e)<=0}function Ud(e,t){const r=e._controlledWritableStream;Bd(e),Ad(r,t)}function zd(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function Hd(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function Vd(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Kd(e){e._closedPromise=Mu(((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"}))}function Gd(e,t){Kd(e),qd(e,t)}function qd(e,t){void 0!==e._closedPromise_reject&&(Lu(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function Qd(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function Wd(e){e._readyPromise=Mu(((t,r)=>{e._readyPromise_resolve=t,e._readyPromise_reject=r})),e._readyPromiseState="pending"}function Jd(e,t){Wd(e),Zd(e,t)}function Yd(e){Wd(e),$d(e)}function Zd(e,t){void 0!==e._readyPromise_reject&&(Lu(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function $d(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(Dd.prototype,{error:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(Dd.prototype,Au.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});const Xd="undefined"!=typeof DOMException?DOMException:void 0,ef=function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(Xd)?Xd:function(){const e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return Object.defineProperty(e.prototype=Object.create(Error.prototype),"constructor",{value:e,writable:!0,configurable:!0}),e}();function tf(e,t,r,n,i,o){const a=fl(e),s=pd(t);e._disturbed=!0;let c=!1,u=Pu(void 0);return Mu(((l,d)=>{let f;if(void 0!==o){if(f=()=>{const r=new ef("Aborted","AbortError"),o=[];n||o.push((()=>"writable"===t._state?bd(t,r):Pu(void 0))),i||o.push((()=>"readable"===e._state?If(e,r):Pu(void 0))),g((()=>Promise.all(o.map((e=>e())))),!0,r)},o.aborted)return void f();o.addEventListener("abort",f)}if(p(e,a._closedPromise,(e=>{n?m(!0,e):g((()=>bd(t,e)),!0,e)})),p(t,s._closedPromise,(t=>{i?m(!0,t):g((()=>If(e,t)),!0,t)})),function(e,t,r){"closed"===e._state?r():Bu(t,r)}(e,a._closedPromise,(()=>{r?m():g((()=>function(e){const t=e._ownerWritableStream,r=t._state;return Ed(t)||"closed"===r?Pu(void 0):"errored"===r?ju(t._storedError):_d(e)}(s)))})),Ed(t)||"closed"===t._state){const t=new TypeError("the destination writable stream closed before all data could be piped to it");i?m(!0,t):g((()=>If(e,t)),!0,t)}function h(){const e=u;return Du(u,(()=>e!==u?h():void 0))}function p(e,t,r){"errored"===e._state?r(e._storedError):Nu(t,r)}function g(e,r,n){function i(){Ou(e(),(()=>y(r,n)),(e=>y(!0,e)))}c||(c=!0,"writable"!==t._state||Ed(t)?i():Bu(h(),i))}function m(e,r){c||(c=!0,"writable"!==t._state||Ed(t)?y(e,r):Bu(h(),(()=>y(e,r))))}function y(e,t){Md(s),Gu(a),void 0!==o&&o.removeEventListener("abort",f),e?d(t):l(void 0)}Lu(Mu(((e,t)=>{!function r(n){n?e():Du(c?Pu(!0):Du(s._readyPromise,(()=>Mu(((e,t)=>{vl(a,{_chunkSteps:t=>{u=Du(Pd(s,t),void 0,Cu),e(!1)},_closeSteps:()=>e(!0),_errorSteps:t})})))),r,t)}(!1)})))}))}class rf{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!nf(this))throw pf("desiredSize");return df(this)}close(){if(!nf(this))throw pf("close");if(!ff(this))throw new TypeError("The stream is not in a state that permits close");cf(this)}enqueue(e=void 0){if(!nf(this))throw pf("enqueue");if(!ff(this))throw new TypeError("The stream is not in a state that permits enqueue");return uf(this,e)}error(e=void 0){if(!nf(this))throw pf("error");lf(this,e)}[Xu](e){Ml(this);const t=this._cancelAlgorithm(e);return sf(this),t}[el](e){const t=this._controlledReadableStream;if(this._queue.length>0){const r=_l(this);this._closeRequested&&0===this._queue.length?(sf(this),kf(t)):of(this),e._chunkSteps(r)}else hl(t,e),of(this)}}function nf(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function of(e){af(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,Ou(e._pullAlgorithm(),(()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,of(e))}),(t=>{lf(e,t)}))))}function af(e){const t=e._controlledReadableStream;return!!ff(e)&&(!!e._started&&(!!(Sf(t)&&gl(t)>0)||df(e)>0))}function sf(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function cf(e){if(!ff(e))return;const t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(sf(e),kf(t))}function uf(e,t){if(!ff(e))return;const r=e._controlledReadableStream;if(Sf(r)&&gl(r)>0)pl(r,t,!1);else{let r;try{r=e._strategySizeAlgorithm(t)}catch(t){throw lf(e,t),t}try{Tl(e,t,r)}catch(t){throw lf(e,t),t}}of(e)}function lf(e,t){const r=e._controlledReadableStream;"readable"===r._state&&(Ml(e),sf(e),_f(r,t))}function df(e){const t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function ff(e){const t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function hf(e,t,r,n,i,o,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,Ml(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=o,t._pullAlgorithm=n,t._cancelAlgorithm=i,e._readableStreamController=t,Ou(Pu(r()),(()=>{t._started=!0,of(t)}),(e=>{lf(t,e)}))}function pf(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function gf(e,t,r){return il(e,r),r=>zu(e,t,[r])}function mf(e,t,r){return il(e,r),r=>zu(e,t,[r])}function yf(e,t,r){return il(e,r),r=>Uu(e,t,[r])}function bf(e,t){if("bytes"!=(e=""+e))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}function vf(e,t){if("byob"!=(e=""+e))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}function wf(e,t){nl(e,t);const r=null==e?void 0:e.preventAbort,n=null==e?void 0:e.preventCancel,i=null==e?void 0:e.preventClose,o=null==e?void 0:e.signal;return void 0!==o&&function(e,t){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}(e))throw new TypeError(t+" is not an AbortSignal.")}(o,t+" has member 'signal' that"),{preventAbort:!!r,preventCancel:!!n,preventClose:!!i,signal:o}}Object.defineProperties(rf.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(rf.prototype,Au.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class Af{constructor(e={},t={}){void 0===e?e=null:ol(e,"First parameter");const r=ad(t,"Second parameter"),n=function(e,t){nl(e,t);const r=e,n=null==r?void 0:r.autoAllocateChunkSize,i=null==r?void 0:r.cancel,o=null==r?void 0:r.pull,a=null==r?void 0:r.start,s=null==r?void 0:r.type;return{autoAllocateChunkSize:void 0===n?void 0:ll(n,t+" has member 'autoAllocateChunkSize' that"),cancel:void 0===i?void 0:gf(i,r,t+" has member 'cancel' that"),pull:void 0===o?void 0:mf(o,r,t+" has member 'pull' that"),start:void 0===a?void 0:yf(a,r,t+" has member 'start' that"),type:void 0===s?void 0:bf(s,t+" has member 'type' that")}}(e,"First parameter");if(Ef(this),"bytes"===n.type){if(void 0!==r.size)throw new RangeError("The strategy for a byte stream cannot have a size function");!function(e,t,r){const n=Object.create(Dl.prototype);let i=()=>{},o=()=>Pu(void 0),a=()=>Pu(void 0);void 0!==t.start&&(i=()=>t.start(n)),void 0!==t.pull&&(o=()=>t.pull(n)),void 0!==t.cancel&&(a=e=>t.cancel(e));const s=t.autoAllocateChunkSize;if(0===s)throw new TypeError("autoAllocateChunkSize must be greater than 0");!function(e,t,r,n,i,o,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,Ml(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=o,t._pullAlgorithm=n,t._cancelAlgorithm=i,t._autoAllocateChunkSize=a,t._pendingPullIntos=new Hu,e._readableStreamController=t,Ou(Pu(r()),(()=>{t._started=!0,Nl(t)}),(e=>{Wl(t,e)}))}(e,n,i,o,a,r,s)}(this,n,id(r,0))}else{const e=od(r);!function(e,t,r,n){const i=Object.create(rf.prototype);let o=()=>{},a=()=>Pu(void 0),s=()=>Pu(void 0);void 0!==t.start&&(o=()=>t.start(i)),void 0!==t.pull&&(a=()=>t.pull(i)),void 0!==t.cancel&&(s=e=>t.cancel(e)),hf(e,i,o,a,s,r,n)}(this,n,id(r,1),e)}}get locked(){if(!xf(this))throw Tf("locked");return Sf(this)}cancel(e=void 0){return xf(this)?Sf(this)?ju(new TypeError("Cannot cancel a stream that already has a reader")):If(this,e):ju(Tf("cancel"))}getReader(e=void 0){if(!xf(this))throw Tf("getReader");const t=function(e,t){nl(e,t);const r=null==e?void 0:e.mode;return{mode:void 0===r?void 0:vf(r,t+" has member 'mode' that")}}(e,"First parameter");return void 0===t.mode?fl(this):function(e){return new td(e)}(this)}pipeThrough(e,t={}){if(!xf(this))throw Tf("pipeThrough");al(e,1,"pipeThrough");const r=function(e,t){nl(e,t);const r=null==e?void 0:e.readable;sl(r,"readable","ReadableWritablePair"),dl(r,t+" has member 'readable' that");const n=null==e?void 0:e.writable;return sl(n,"writable","ReadableWritablePair"),fd(n,t+" has member 'writable' that"),{readable:r,writable:n}}(e,"First parameter"),n=wf(t,"Second parameter");if(Sf(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(yd(r.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return Lu(tf(this,r.writable,n.preventClose,n.preventAbort,n.preventCancel,n.signal)),r.readable}pipeTo(e,t={}){if(!xf(this))return ju(Tf("pipeTo"));if(void 0===e)return ju("Parameter 1 is required in 'pipeTo'.");if(!md(e))return ju(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let r;try{r=wf(t,"Second parameter")}catch(e){return ju(e)}return Sf(this)?ju(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):yd(e)?ju(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):tf(this,e,r.preventClose,r.preventAbort,r.preventCancel,r.signal)}tee(){if(!xf(this))throw Tf("tee");const e=function(e){const t=fl(e);let r,n,i,o,a,s=!1,c=!1,u=!1;const l=Mu((e=>{a=e}));function d(){return s||(s=!0,vl(t,{_chunkSteps:e=>{Fu((()=>{s=!1;const t=e,r=e;c||uf(i._readableStreamController,t),u||uf(o._readableStreamController,r)}))},_closeSteps:()=>{s=!1,c||cf(i._readableStreamController),u||cf(o._readableStreamController),c&&u||a(void 0)},_errorSteps:()=>{s=!1}})),Pu(void 0)}function f(){}return i=Cf(f,d,(function(t){if(c=!0,r=t,u){const t=Pl([r,n]),i=If(e,t);a(i)}return l})),o=Cf(f,d,(function(t){if(u=!0,n=t,c){const t=Pl([r,n]),i=If(e,t);a(i)}return l})),Nu(t._closedPromise,(e=>{lf(i._readableStreamController,e),lf(o._readableStreamController,e),c&&u||a(void 0)})),[i,o]}(this);return Pl(e)}values(e=void 0){if(!xf(this))throw Tf("values");return function(e,t){const r=fl(e),n=new Cl(r,t),i=Object.create(El);return i._asyncIteratorImpl=n,i}(this,function(e){return nl(e,"First parameter"),{preventCancel:!!(null==e?void 0:e.preventCancel)}}(e).preventCancel)}}function Cf(e,t,r,n=1,i=()=>1){const o=Object.create(Af.prototype);return Ef(o),hf(o,Object.create(rf.prototype),e,t,r,n,i),o}function Ef(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function xf(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function Sf(e){return void 0!==e._reader}function If(e,t){return e._disturbed=!0,"closed"===e._state?Pu(void 0):"errored"===e._state?ju(e._storedError):(kf(e),Ru(e._readableStreamController[Xu](t),Cu))}function kf(e){e._state="closed";const t=e._reader;void 0!==t&&(Yu(t),bl(t)&&(t._readRequests.forEach((e=>{e._closeSteps()})),t._readRequests=new Hu))}function _f(e,t){e._state="errored",e._storedError=t;const r=e._reader;void 0!==r&&(Ju(r,t),bl(r)?(r._readRequests.forEach((e=>{e._errorSteps(t)})),r._readRequests=new Hu):(r._readIntoRequests.forEach((e=>{e._errorSteps(t)})),r._readIntoRequests=new Hu))}function Tf(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function Mf(e,t){nl(e,t);const r=null==e?void 0:e.highWaterMark;return sl(r,"highWaterMark","QueuingStrategyInit"),{highWaterMark:cl(r)}}Object.defineProperties(Af.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(Af.prototype,Au.toStringTag,{value:"ReadableStream",configurable:!0}),"symbol"==typeof Au.asyncIterator&&Object.defineProperty(Af.prototype,Au.asyncIterator,{value:Af.prototype.values,writable:!0,configurable:!0});const Pf=function(e){return e.byteLength};class jf{constructor(e){al(e,1,"ByteLengthQueuingStrategy"),e=Mf(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!Of(this))throw Df("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!Of(this))throw Df("size");return Pf}}function Df(e){return new TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`)}function Of(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")}Object.defineProperties(jf.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(jf.prototype,Au.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});const Bf=function(){return 1};class Nf{constructor(e){al(e,1,"CountQueuingStrategy"),e=Mf(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!Lf(this))throw Rf("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!Lf(this))throw Rf("size");return Bf}}function Rf(e){return new TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`)}function Lf(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")}function Ff(e,t,r){return il(e,r),r=>zu(e,t,[r])}function Uf(e,t,r){return il(e,r),r=>Uu(e,t,[r])}function zf(e,t,r){return il(e,r),(r,n)=>zu(e,t,[r,n])}Object.defineProperties(Nf.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(Nf.prototype,Au.toStringTag,{value:"CountQueuingStrategy",configurable:!0});class Hf{constructor(e={},t={},r={}){void 0===e&&(e=null);const n=ad(t,"Second parameter"),i=ad(r,"Third parameter"),o=function(e,t){nl(e,t);const r=null==e?void 0:e.flush,n=null==e?void 0:e.readableType,i=null==e?void 0:e.start,o=null==e?void 0:e.transform,a=null==e?void 0:e.writableType;return{flush:void 0===r?void 0:Ff(r,e,t+" has member 'flush' that"),readableType:n,start:void 0===i?void 0:Uf(i,e,t+" has member 'start' that"),transform:void 0===o?void 0:zf(o,e,t+" has member 'transform' that"),writableType:a}}(e,"First parameter");if(void 0!==o.readableType)throw new RangeError("Invalid readableType specified");if(void 0!==o.writableType)throw new RangeError("Invalid writableType specified");const a=id(i,0),s=od(i),c=id(n,1),u=od(n);let l;!function(e,t,r,n,i,o){function a(){return t}e._writable=function(e,t,r,n,i=1,o=()=>1){const a=Object.create(hd.prototype);return gd(a),Od(a,Object.create(Dd.prototype),e,t,r,n,i,o),a}(a,(function(t){return function(e,t){const r=e._transformStreamController;return e._backpressure?Ru(e._backpressureChangePromise,(()=>{const n=e._writable;if("erroring"===n._state)throw n._storedError;return Zf(r,t)})):Zf(r,t)}(e,t)}),(function(){return function(e){const t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return Jf(r),Ru(n,(()=>{if("errored"===t._state)throw t._storedError;cf(t._readableStreamController)}),(r=>{throw Kf(e,r),t._storedError}))}(e)}),(function(t){return function(e,t){return Kf(e,t),Pu(void 0)}(e,t)}),r,n),e._readable=Cf(a,(function(){return function(e){return qf(e,!1),e._backpressureChangePromise}(e)}),(function(t){return Gf(e,t),Pu(void 0)}),i,o),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,qf(e,!0),e._transformStreamController=void 0}(this,Mu((e=>{l=e})),c,u,a,s),function(e,t){const r=Object.create(Qf.prototype);let n=e=>{try{return Yf(r,e),Pu(void 0)}catch(e){return ju(e)}},i=()=>Pu(void 0);void 0!==t.transform&&(n=e=>t.transform(e,r)),void 0!==t.flush&&(i=()=>t.flush(r)),function(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}(e,r,n,i)}(this,o),void 0!==o.start?l(o.start(this._transformStreamController)):l(void 0)}get readable(){if(!Vf(this))throw Xf("readable");return this._readable}get writable(){if(!Vf(this))throw Xf("writable");return this._writable}}function Vf(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function Kf(e,t){lf(e._readable._readableStreamController,t),Gf(e,t)}function Gf(e,t){Jf(e._transformStreamController),Ld(e._writable._writableStreamController,t),e._backpressure&&qf(e,!1)}function qf(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=Mu((t=>{e._backpressureChangePromise_resolve=t})),e._backpressure=t}Object.defineProperties(Hf.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(Hf.prototype,Au.toStringTag,{value:"TransformStream",configurable:!0});class Qf{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Wf(this))throw $f("desiredSize");return df(this._controlledTransformStream._readable._readableStreamController)}enqueue(e=void 0){if(!Wf(this))throw $f("enqueue");Yf(this,e)}error(e=void 0){if(!Wf(this))throw $f("error");var t;t=e,Kf(this._controlledTransformStream,t)}terminate(){if(!Wf(this))throw $f("terminate");!function(e){const t=e._controlledTransformStream;cf(t._readable._readableStreamController),Gf(t,new TypeError("TransformStream terminated"))}(this)}}function Wf(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function Jf(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function Yf(e,t){const r=e._controlledTransformStream,n=r._readable._readableStreamController;if(!ff(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{uf(n,t)}catch(e){throw Gf(r,e),r._readable._storedError}const i=function(e){return!af(e)}(n);i!==r._backpressure&&qf(r,!0)}function Zf(e,t){return Ru(e._transformAlgorithm(t),void 0,(t=>{throw Kf(e._controlledTransformStream,t),t}))}function $f(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}function Xf(e){return new TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}Object.defineProperties(Qf.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(Qf.prototype,Au.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});var eh=Object.freeze({__proto__:null,ByteLengthQueuingStrategy:jf,CountQueuingStrategy:Nf,ReadableByteStreamController:Dl,ReadableStream:Af,ReadableStreamBYOBReader:td,ReadableStreamBYOBRequest:jl,ReadableStreamDefaultController:rf,ReadableStreamDefaultReader:yl,TransformStream:Hf,TransformStreamDefaultController:Qf,WritableStream:hd,WritableStreamDefaultController:Dd,WritableStreamDefaultWriter:Id}),th=function(e,t){return th=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},th(e,t)};function rh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function r(){this.constructor=e}th(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function nh(e){if(!e)throw new TypeError("Assertion failed")}function ih(){}function oh(e){return"object"==typeof e&&null!==e||"function"==typeof e}function ah(e){if("function"!=typeof e)return!1;var t=!1;try{new e({start:function(){t=!0}})}catch(e){}return t}function sh(e){return!!oh(e)&&"function"==typeof e.getReader}function ch(e){return!!oh(e)&&"function"==typeof e.getWriter}function uh(e){return!!oh(e)&&!!sh(e.readable)&&!!ch(e.writable)}function lh(e){try{return e.getReader({mode:"byob"}).releaseLock(),!0}catch(e){return!1}}function dh(e,t){var r=(void 0===t?{}:t).type;return nh(sh(e)),nh(!1===e.locked),"bytes"===(r=fh(r))?new mh(e):new ph(e)}function fh(e){var t=e+"";if("bytes"===t)return t;if(void 0===e)return e;throw new RangeError("Invalid type is specified")}var hh=function(){function e(e){this._underlyingReader=void 0,this._readerMode=void 0,this._readableStreamController=void 0,this._pendingRead=void 0,this._underlyingStream=e,this._attachDefaultReader()}return e.prototype.start=function(e){this._readableStreamController=e},e.prototype.cancel=function(e){return nh(void 0!==this._underlyingReader),this._underlyingReader.cancel(e)},e.prototype._attachDefaultReader=function(){if("default"!==this._readerMode){this._detachReader();var e=this._underlyingStream.getReader();this._readerMode="default",this._attachReader(e)}},e.prototype._attachReader=function(e){var t=this;nh(void 0===this._underlyingReader),this._underlyingReader=e;var r=this._underlyingReader.closed;r&&r.then((function(){return t._finishPendingRead()})).then((function(){e===t._underlyingReader&&t._readableStreamController.close()}),(function(r){e===t._underlyingReader&&t._readableStreamController.error(r)})).catch(ih)},e.prototype._detachReader=function(){void 0!==this._underlyingReader&&(this._underlyingReader.releaseLock(),this._underlyingReader=void 0,this._readerMode=void 0)},e.prototype._pullWithDefaultReader=function(){var e=this;this._attachDefaultReader();var t=this._underlyingReader.read().then((function(t){var r=e._readableStreamController;t.done?e._tryClose():r.enqueue(t.value)}));return this._setPendingRead(t),t},e.prototype._tryClose=function(){try{this._readableStreamController.close()}catch(e){}},e.prototype._setPendingRead=function(e){var t,r=this,n=function(){r._pendingRead===t&&(r._pendingRead=void 0)};this._pendingRead=t=e.then(n,n)},e.prototype._finishPendingRead=function(){var e=this;if(this._pendingRead){var t=function(){return e._finishPendingRead()};return this._pendingRead.then(t,t)}},e}(),ph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rh(t,e),t.prototype.pull=function(){return this._pullWithDefaultReader()},t}(hh);function gh(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var mh=function(e){function t(t){var r=this,n=lh(t);return(r=e.call(this,t)||this)._supportsByob=n,r}return rh(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return"bytes"},enumerable:!1,configurable:!0}),t.prototype._attachByobReader=function(){if("byob"!==this._readerMode){nh(this._supportsByob),this._detachReader();var e=this._underlyingStream.getReader({mode:"byob"});this._readerMode="byob",this._attachReader(e)}},t.prototype.pull=function(){if(this._supportsByob){var e=this._readableStreamController.byobRequest;if(e)return this._pullWithByobRequest(e)}return this._pullWithDefaultReader()},t.prototype._pullWithByobRequest=function(e){var t=this;this._attachByobReader();var r=new Uint8Array(e.view.byteLength),n=this._underlyingReader.read(r).then((function(r){var n,i,o;t._readableStreamController,r.done?(t._tryClose(),e.respond(0)):(n=r.value,i=e.view,o=gh(n),gh(i).set(o,0),e.respond(r.value.byteLength))}));return this._setPendingRead(n),n},t}(hh);function yh(e){nh(ch(e)),nh(!1===e.locked);var t=e.getWriter();return new bh(t)}var bh=function(){function e(e){var t=this;this._writableStreamController=void 0,this._pendingWrite=void 0,this._state="writable",this._storedError=void 0,this._underlyingWriter=e,this._errorPromise=new Promise((function(e,r){t._errorPromiseReject=r})),this._errorPromise.catch(ih)}return e.prototype.start=function(e){var t=this;this._writableStreamController=e,this._underlyingWriter.closed.then((function(){t._state="closed"})).catch((function(e){return t._finishErroring(e)}))},e.prototype.write=function(e){var t=this,r=this._underlyingWriter;if(null===r.desiredSize)return r.ready;var n=r.write(e);n.catch((function(e){return t._finishErroring(e)})),r.ready.catch((function(e){return t._startErroring(e)}));var i=Promise.race([n,this._errorPromise]);return this._setPendingWrite(i),i},e.prototype.close=function(){var e=this;return void 0===this._pendingWrite?this._underlyingWriter.close():this._finishPendingWrite().then((function(){return e.close()}))},e.prototype.abort=function(e){if("errored"!==this._state)return this._underlyingWriter.abort(e)},e.prototype._setPendingWrite=function(e){var t,r=this,n=function(){r._pendingWrite===t&&(r._pendingWrite=void 0)};this._pendingWrite=t=e.then(n,n)},e.prototype._finishPendingWrite=function(){var e=this;if(void 0===this._pendingWrite)return Promise.resolve();var t=function(){return e._finishPendingWrite()};return this._pendingWrite.then(t,t)},e.prototype._startErroring=function(e){var t=this;if("writable"===this._state){this._state="erroring",this._storedError=e;var r=function(){return t._finishErroring(e)};void 0===this._pendingWrite?r():this._finishPendingWrite().then(r,r),this._writableStreamController.error(e)}},e.prototype._finishErroring=function(e){"writable"===this._state&&this._startErroring(e),"erroring"===this._state&&(this._state="errored",this._errorPromiseReject(this._storedError))},e}();function vh(e){nh(uh(e));var t=e.readable,r=e.writable;nh(!1===t.locked),nh(!1===r.locked);var n,i=t.getReader();try{n=r.getWriter()}catch(e){throw i.releaseLock(),e}return new wh(i,n)}var wh=function(){function e(e,t){var r=this;this._transformStreamController=void 0,this._onRead=function(e){if(!e.done)return r._transformStreamController.enqueue(e.value),r._reader.read().then(r._onRead)},this._onError=function(e){r._flushReject(e),r._transformStreamController.error(e),r._reader.cancel(e).catch(ih),r._writer.abort(e).catch(ih)},this._onTerminate=function(){r._flushResolve(),r._transformStreamController.terminate();var e=new TypeError("TransformStream terminated");r._writer.abort(e).catch(ih)},this._reader=e,this._writer=t,this._flushPromise=new Promise((function(e,t){r._flushResolve=e,r._flushReject=t}))}return e.prototype.start=function(e){this._transformStreamController=e,this._reader.read().then(this._onRead).then(this._onTerminate,this._onError);var t=this._reader.closed;t&&t.then(this._onTerminate,this._onError)},e.prototype.transform=function(e){return this._writer.write(e)},e.prototype.flush=function(){var e=this;return this._writer.close().then((function(){return e._flushPromise}))},e}(),Ah=Object.freeze({__proto__:null,createReadableStreamWrapper:function(e){nh(function(e){return!!ah(e)&&!!sh(new e)}(e));var t=function(e){try{return new e({type:"bytes"}),!0}catch(e){return!1}}(e);return function(r,n){var i=(void 0===n?{}:n).type;if("bytes"!==(i=fh(i))||t||(i=void 0),r.constructor===e&&("bytes"!==i||lh(r)))return r;if("bytes"===i){var o=dh(r,{type:i});return new e(o)}return o=dh(r),new e(o)}},createTransformStreamWrapper:function(e){return nh(function(e){return!!ah(e)&&!!uh(new e)}(e)),function(t){if(t.constructor===e)return t;var r=vh(t);return new e(r)}},createWrappingReadableSource:dh,createWrappingTransformer:vh,createWrappingWritableSink:yh,createWritableStreamWrapper:function(e){return nh(function(e){return!!ah(e)&&!!ch(new e)}(e)),function(t){if(t.constructor===e)return t;var r=yh(t);return new e(r)}}}),Ch=it((function(e){!function(e,t){function r(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o=void 0}catch(e){}function a(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function s(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},i.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r=0;r=t;r-=6)i=a(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=a(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,c=Math.min(o,o-a)+r,u=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-d.length]+d+n:d+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var f=u[e],h=l[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?g+n:c[f-g.length]+g+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,u=new e(o),l=this.clone();if(c){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return!(8191&t)&&(r+=13,t>>>=13),!(127&t)&&(r+=7,t>>>=7),!(15&t)&&(r+=4,t>>>=4),!(3&t)&&(r+=2,t>>>=2),!(1&t)&&r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,g=h>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],w=8191&v,A=v>>>13,C=0|a[4],E=8191&C,x=C>>>13,S=0|a[5],I=8191&S,k=S>>>13,_=0|a[6],T=8191&_,M=_>>>13,P=0|a[7],j=8191&P,D=P>>>13,O=0|a[8],B=8191&O,N=O>>>13,R=0|a[9],L=8191&R,F=R>>>13,U=0|s[0],z=8191&U,H=U>>>13,V=0|s[1],K=8191&V,G=V>>>13,q=0|s[2],Q=8191&q,W=q>>>13,J=0|s[3],Y=8191&J,Z=J>>>13,$=0|s[4],X=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,he=0|s[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,z)|0))<<13)|0;u=((o=Math.imul(f,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H);var ye=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,K)|0))<<13)|0;u=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,G)|0;var be=(u+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,Q)|0))<<13)|0;u=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,W)|0;var ve=(u+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Y)|0))<<13)|0;u=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(x,z)|0,o=Math.imul(x,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Z)|0;var we=(u+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var Ae=(u+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;u=((o=o+Math.imul(f,ne)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0;var Ce=(u+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;u=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0;var Ee=(u+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(f,ce)|0))<<13)|0;u=((o=o+Math.imul(f,ue)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(N,z)|0,o=Math.imul(N,H),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(D,K)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,Z)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,ue)|0;var xe=(u+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;u=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,G)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,de)|0,o=o+Math.imul(g,fe)|0;var Se=(u+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ge)|0)+Math.imul(f,pe)|0))<<13)|0;u=((o=o+Math.imul(f,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,n=n+Math.imul(y,de)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Ie=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((o=o+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,W))+Math.imul(F,Q)|0,o=Math.imul(F,W),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,ue)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,ue)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var ke=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,Z))+Math.imul(F,Y)|0,o=Math.imul(F,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,n=n+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,fe)|0;var _e=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ge)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,ge)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,n=n+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Te=(u+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(j,ce)|0,i=(i=i+Math.imul(j,ue)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,ue)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(u+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ge)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,ue)|0,n=n+Math.imul(j,de)|0,i=(i=i+Math.imul(j,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((o=o+Math.imul(M,ge)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,ce),i=(i=Math.imul(L,ue))+Math.imul(F,ce)|0,o=Math.imul(F,ue),n=n+Math.imul(B,de)|0,i=(i=i+Math.imul(B,fe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,fe)|0;var je=(u+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,ge)|0)+Math.imul(D,pe)|0))<<13)|0;u=((o=o+Math.imul(D,ge)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,de),i=(i=Math.imul(L,fe))+Math.imul(F,de)|0,o=Math.imul(F,fe);var De=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(N,pe)|0))<<13)|0;u=((o=o+Math.imul(N,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(u+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,ge))+Math.imul(F,pe)|0))<<13)|0;return u=((o=Math.imul(F,ge))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=Ae,c[6]=Ce,c[7]=Ee,c[8]=xe,c[9]=Se,c[10]=Ie,c[11]=ke,c[12]=_e,c[13]=Te,c[14]=Me,c[15]=Pe,c[16]=je,c[17]=De,c[18]=Oe,0!==u&&(c[19]=u,r.length++),r};function h(e,t,r){return(new p).mulp(e,t,r)}function p(e,t){this.x=e,this.y=t}Math.imul||(f=d),i.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?f(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):h(this,e,t),r},p.prototype.makeRBT=function(e){for(var t=Array(e),r=i.prototype._countBits(e)-1,n=0;n>=1;return n},p.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),o=e,a=0|o.words[o.length-1];0!=(r=26-this._countBits(a))&&(o=o.ushln(r),n.iushln(r),a=0|o.words[o.length-1]);var s,c=n.length-o.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=Array(s.length);for(var u=0;u=0;d--){var f=67108864*(0|n.words[o.length+d])+(0|n.words[o.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(o,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(o,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var l=n.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;!(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,g=1;!(n.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s),a.isub(c)):(n.isub(t),s.isub(o),c.isub(a))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,l=1;!(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;!(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new A(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var e=new i(null);return e.words=Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},n(y,m),y.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new b;else if("p192"===e)t=new v;else{if("p25519"!==e)throw Error("Unknown prime "+e);t=new w}return g[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(!(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);r(!o.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,o),f=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=a;0!==h.cmp(s);){for(var g=h,m=0;0!==g.cmp(s);m++)g=g.redSqr();r(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var d=u>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===n&&0===l)&&(o=this.mul(o,r[a]),s=0,a=0)):s=0}c=26}return o},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new C(e)},n(C,A),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,nt)})),Eh=Object.freeze({__proto__:null,default:Ch,__moduleExports:Ch});class xh{constructor(e){if(void 0===e)throw Error("Invalid BigInteger input");this.value=new Ch(e)}clone(){const e=new xh(null);return this.value.copy(e.value),e}iinc(){return this.value.iadd(new Ch(1)),this}inc(){return this.clone().iinc()}idec(){return this.value.isub(new Ch(1)),this}dec(){return this.clone().idec()}iadd(e){return this.value.iadd(e.value),this}add(e){return this.clone().iadd(e)}isub(e){return this.value.isub(e.value),this}sub(e){return this.clone().isub(e)}imul(e){return this.value.imul(e.value),this}mul(e){return this.clone().imul(e)}imod(e){return this.value=this.value.umod(e.value),this}mod(e){return this.clone().imod(e)}modExp(e,t){const r=t.isEven()?Ch.red(t.value):Ch.mont(t.value),n=this.clone();return n.value=n.value.toRed(r).redPow(e.value).fromRed(),n}modInv(e){if(!this.gcd(e).isOne())throw Error("Inverse does not exist");return new xh(this.value.invm(e.value))}gcd(e){return new xh(this.value.gcd(e.value))}ileftShift(e){return this.value.ishln(e.value.toNumber()),this}leftShift(e){return this.clone().ileftShift(e)}irightShift(e){return this.value.ishrn(e.value.toNumber()),this}rightShift(e){return this.clone().irightShift(e)}equal(e){return this.value.eq(e.value)}lt(e){return this.value.lt(e.value)}lte(e){return this.value.lte(e.value)}gt(e){return this.value.gt(e.value)}gte(e){return this.value.gte(e.value)}isZero(){return this.value.isZero()}isOne(){return this.value.eq(new Ch(1))}isNegative(){return this.value.isNeg()}isEven(){return this.value.isEven()}abs(){const e=this.clone();return e.value=e.value.abs(),e}toString(){return this.value.toString()}toNumber(){return this.value.toNumber()}getBit(e){return this.value.testn(e)?1:0}bitLength(){return this.value.bitLength()}byteLength(){return this.value.byteLength()}toUint8Array(e="be",t){return this.value.toArrayLike(Uint8Array,e,t)}}var Sh,Ih=Object.freeze({__proto__:null,default:xh}),kh=it((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}})),_h=it((function(e,t){var r=t;r.assert=tt,r.toArray=kh.toArray,r.zero2=kh.zero2,r.toHex=kh.toHex,r.encode=kh.encode,r.getNAF=function(e,t){for(var r=[],n=1<=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,c=1;c0||t.cmpn(-i)>0;){var o,a,s,c=e.andln(3)+n&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),o=1&c?3!=(s=e.andln(7)+n&7)&&5!==s||2!==u?c:-c:0,r[0].push(o),a=1&u?3!=(s=t.andln(7)+i&7)&&5!==s||2!==c?u:-u:0,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new Ch(e,"hex","le")}})),Th=function(e){return Sh||(Sh=new Mh(null)),Sh.generate(e)};function Mh(e){this.rand=e}var Ph=Mh;if(Mh.prototype.generate=function(e){return this._rand(e)},Mh.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Rh=Nh;function Lh(e,t){this.curve=e,this.type=t,this.precomputed=null}Nh.prototype.point=function(){throw Error("Not implemented")},Nh.prototype.validate=function(){throw Error("Not implemented")},Nh.prototype._fixedNafMul=function(e,t){Bh(e.precomputed);var r=e._getDoubles(),n=Dh(t,1),i=(1<=a;t--)s=(s<<1)+n[t];o.push(s)}for(var c=this.jpoint(null,null,null),u=this.jpoint(null,null,null),l=i;l>0;l--){for(a=0;a=0;s--){for(t=0;s>=0&&0===o[s];s--)t++;if(s>=0&&t++,a=a.dblp(t),s<0)break;var c=o[s];Bh(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},Nh.prototype._wnafMulAdd=function(e,t,r,n,i){for(var o=this._wnafT1,a=this._wnafT2,s=this._wnafT3,c=0,u=0;u=1;u-=2){var d=u-1,f=u;if(1===o[d]&&1===o[f]){var h=[t[d],null,null,t[f]];0===t[d].y.cmp(t[f].y)?(h[1]=t[d].add(t[f]),h[2]=t[d].toJ().mixedAdd(t[f].neg())):0===t[d].y.cmp(t[f].y.redNeg())?(h[1]=t[d].toJ().mixedAdd(t[f]),h[2]=t[d].add(t[f].neg())):(h[1]=t[d].toJ().mixedAdd(t[f]),h[2]=t[d].toJ().mixedAdd(t[f].neg()));var p=[-3,-1,-5,-7,0,7,5,1,3],g=Oh(r[d],r[f]);c=Math.max(g[0].length,c),s[d]=Array(c),s[f]=Array(c);for(var m=0;m=0;u--){for(var A=0;u>=0;){var C=!0;for(m=0;m=0&&A++,v=v.dblp(A),u<0)break;for(m=0;m0?E=a[m][x-1>>1]:x<0&&(E=a[m][-x-1>>1].neg()),v="affine"===E.type?v.mixedAdd(E):v.add(E))}}for(u=0;u=Math.ceil((e.bitLength()+1)/t.step)},Lh.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(o=t,a=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:n,b:i},{a:o,b:a}]},Uh.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(u).neg()}},Uh.prototype.pointFromX=function(e,t){(e=new Ch(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},Uh.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},Uh.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},Hh.prototype.isInfinity=function(){return this.inf},Hh.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Hh.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},Hh.prototype.getX=function(){return this.x.fromRed()},Hh.prototype.getY=function(){return this.y.fromRed()},Hh.prototype.mul=function(e){return e=new Ch(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},Hh.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Hh.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Hh.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},Hh.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},Hh.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},at(Vh,Rh.BasePoint),Uh.prototype.jpoint=function(e,t,r){return new Vh(this,e,t,r)},Vh.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},Vh.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Vh.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),d=n.redMul(u),f=c.redSqr().redIAdd(l).redISub(d).redISub(d),h=c.redMul(d.redISub(f)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},Vh.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),l=r.redMul(c),d=s.redSqr().redIAdd(u).redISub(l).redISub(l),f=s.redMul(l.redISub(d)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},Vh.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},Vh.prototype.inspect=function(){return this.isInfinity()?"":""},Vh.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},at(Kh,Rh);var Gh=Kh;function qh(e,t,r){Rh.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Ch(t,16),this.z=new Ch(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Kh.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},at(qh,Rh.BasePoint),Kh.prototype.decodePoint=function(e,t){if(33===(e=_h.toArray(e,t)).length&&64===e[0]&&(e=e.slice(1,33).reverse()),32!==e.length)throw Error("Unknown point compression format");return this.point(e,1)},Kh.prototype.point=function(e,t){return new qh(this,e,t)},Kh.prototype.pointFromJSON=function(e){return qh.fromJSON(this,e)},qh.prototype.precompute=function(){},qh.prototype._encode=function(e){var t=this.curve.p.byteLength();return e?[64].concat(this.getX().toArray("le",t)):this.getX().toArray("be",t)},qh.fromJSON=function(e,t){return new qh(e,t[0],t[1]||e.one)},qh.prototype.inspect=function(){return this.isInfinity()?"":""},qh.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},qh.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},qh.prototype.add=function(){throw Error("Not supported on Montgomery curve")},qh.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},qh.prototype.mul=function(e){for(var t=(e=new Ch(e,16)).clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},qh.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},qh.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},qh.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},qh.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},qh.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var Qh=_h.assert;function Wh(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,Rh.call(this,"edwards",e),this.a=new Ch(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Ch(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Ch(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Qh(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}at(Wh,Rh);var Jh=Wh;function Yh(e,t,r,n,i){Rh.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Ch(t,16),this.y=new Ch(r,16),this.z=n?new Ch(n,16):this.curve.one,this.t=i&&new Ch(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Wh.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},Wh.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},Wh.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},Wh.prototype.pointFromX=function(e,t){(e=new Ch(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=n.redMul(i.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");var s=a.fromRed().isOdd();return(t&&!s||!t&&s)&&(a=a.redNeg()),this.point(e,a)},Wh.prototype.pointFromY=function(e,t){(e=new Ch(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=n.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},Wh.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},at(Yh,Rh.BasePoint),Wh.prototype.pointFromJSON=function(e){return Yh.fromJSON(this,e)},Wh.prototype.point=function(e,t,r,n){return new Yh(this,e,t,r,n)},Yh.fromJSON=function(e,t){return new Yh(e,t[0],t[1],t[2])},Yh.prototype.inspect=function(){return this.isInfinity()?"":""},Yh.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},Yh.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),c=i.redMul(a),u=o.redMul(s),l=i.redMul(s),d=a.redMul(o);return this.curve.point(c,u,d,l)},Yh.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),c=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(c),t=a.redMul(u.redSub(o)),r=a.redMul(c)}}else{var u=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),c=u.redSub(s).redSub(s),e=this.curve._mulC(n.redISub(u)).redMul(c),t=this.curve._mulC(u).redMul(i.redISub(o)),r=u.redMul(c)}return this.curve.point(e,t,r)},Yh.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Yh.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),u=o.redMul(a),l=s.redMul(c),d=o.redMul(c),f=a.redMul(s);return this.curve.point(u,l,f,d)},Yh.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),u=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=n.redMul(c).redMul(l);return this.curve.twisted?(t=n.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=c.redMul(u)):(t=n.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(c).redMul(u)),this.curve.point(d,t,r)},Yh.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},Yh.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},Yh.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},Yh.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},Yh.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},Yh.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Yh.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Yh.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Yh.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},Yh.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},Yh.prototype.toP=Yh.prototype.normalize,Yh.prototype.mixedAdd=Yh.prototype.add;var Zh=it((function(e,t){var r=t;r.base=Rh,r.short=zh,r.mont=Gh,r.edwards=Jh})),$h=lt.rotl32,Xh=lt.sum32,ep=lt.sum32_5,tp=bt,rp=ht.BlockHash,np=[1518500249,1859775393,2400959708,3395469782];function ip(){if(!(this instanceof ip))return new ip;rp.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}lt.inherits(ip,rp);var op=ip;ip.blockSize=512,ip.outSize=160,ip.hmacStrength=80,ip.padLength=64,ip.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),tt(e.length<=this.blockSize);for(var t=e.length;t=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var hp=fp;fp.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},fp.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=kh.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"};var yp=_h.assert;function bp(e,t){if(e instanceof bp)return e;this._importDER(e,t)||(yp(e.r&&e.s,"Signature without r or s"),this.r=new Ch(e.r,16),this.s=new Ch(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var vp=bp;function wp(){this.place=0}function Ap(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}bp.prototype._importDER=function(e,t){e=_h.toArray(e,t);var r=new wp;if(48!==e[r.place++])return!1;if(Ap(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var n=Ap(e,r),i=e.slice(r.place,n+r.place);if(r.place+=n,2!==e[r.place++])return!1;var o=Ap(e,r);if(e.length!==o+r.place)return!1;var a=e.slice(r.place,o+r.place);return 0===i[0]&&128&i[1]&&(i=i.slice(1)),0===a[0]&&128&a[1]&&(a=a.slice(1)),this.r=new Ch(i),this.s=new Ch(a),this.recoveryParam=null,!0},bp.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=Cp(t),r=Cp(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];Ep(n,t.length),(n=n.concat(t)).push(2),Ep(n,r.length);var i=n.concat(r),o=[48];return Ep(o,i.length),o=o.concat(i),_h.encode(o,e)};var xp=_h.assert;function Sp(e){if(!(this instanceof Sp))return new Sp(e);"string"==typeof e&&(xp(dp.hasOwnProperty(e),"Unknown curve "+e),e=dp[e]),e instanceof dp.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var Ip=Sp;Sp.prototype.keyPair=function(e){return new mp(this,e)},Sp.prototype.keyFromPrivate=function(e,t){return mp.fromPrivate(this,e,t)},Sp.prototype.keyFromPublic=function(e,t){return mp.fromPublic(this,e,t)},Sp.prototype.genKeyPair=function(e){e||(e={});var t=new hp({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||Th(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()});if("mont"===this.curve.type){var r=new Ch(t.generate(32));return this.keyFromPrivate(r)}for(var n=this.n.byteLength(),i=this.n.sub(new Ch(2));;)if(!((r=new Ch(t.generate(n))).cmp(i)>0))return r.iaddn(1),this.keyFromPrivate(r)},Sp.prototype._truncateToN=function(e,t,r){var n=(r=r||8*e.byteLength())-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},Sp.prototype.truncateMsg=function(e){var t;return e instanceof Uint8Array?(t=8*e.byteLength,e=this._truncateToN(new Ch(e,16),!1,t)):"string"==typeof e?(t=4*e.length,e=this._truncateToN(new Ch(e,16),!1,t)):e=this._truncateToN(new Ch(e,16)),e},Sp.prototype.sign=function(e,t,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this.truncateMsg(e);for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),a=e.toArray("be",i),s=new hp({hash:this.hash,entropy:o,nonce:a,pers:n.pers,persEnc:n.persEnc||"utf8"}),c=this.n.sub(new Ch(1)),u=0;;u++){var l=n.k?n.k(u):new Ch(s.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(c)>=0)){var d=this.g.mul(l);if(!d.isInfinity()){var f=d.getX(),h=f.umod(this.n);if(0!==h.cmpn(0)){var p=l.invm(this.n).mul(h.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var g=(d.getY().isOdd()?1:0)|(0!==f.cmp(h)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),g^=1),new vp({r:h,s:p,recoveryParam:g})}}}}}},Sp.prototype.verify=function(e,t,r,n){return r=this.keyFromPublic(r,n),t=new vp(t,"hex"),this._verify(this.truncateMsg(e),t,r)||this._verify(this._truncateToN(new Ch(e,16)),t,r)},Sp.prototype._verify=function(e,t,r){var n=t.r,i=t.s;if(n.cmpn(1)<0||n.cmp(this.n)>=0)return!1;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;var o,a=i.invm(this.n),s=a.mul(e).umod(this.n),c=a.mul(n).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(s,r.getPublic(),c)).isInfinity()&&o.eqXToP(n):!(o=this.g.mulAdd(s,r.getPublic(),c)).isInfinity()&&0===o.getX().umod(this.n).cmp(n)},Sp.prototype.recoverPubKey=function(e,t,r,n){xp((3&r)===r,"The recovery param is more than two bits"),t=new vp(t,n);var i=this.n,o=new Ch(e),a=t.r,s=t.s,c=1&r,u=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");a=u?this.curve.pointFromX(a.add(this.curve.n),c):this.curve.pointFromX(a,c);var l=t.r.invm(i),d=i.sub(o).mul(l).umod(i),f=s.mul(l).umod(i);return this.g.mulAdd(d,a,f)},Sp.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new vp(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw Error("Unable to find valid recovery factor")};var kp=_h.assert,_p=_h.parseBytes,Tp=_h.cachedProperty;function Mp(e,t){if(this.eddsa=e,t.hasOwnProperty("secret")&&(this._secret=_p(t.secret)),e.isPoint(t.pub))this._pub=t.pub;else if(this._pubBytes=_p(t.pub),this._pubBytes&&33===this._pubBytes.length&&64===this._pubBytes[0]&&(this._pubBytes=this._pubBytes.slice(1,33)),this._pubBytes&&32!==this._pubBytes.length)throw Error("Unknown point compression format")}Mp.fromPublic=function(e,t){return t instanceof Mp?t:new Mp(e,{pub:t})},Mp.fromSecret=function(e,t){return t instanceof Mp?t:new Mp(e,{secret:t})},Mp.prototype.secret=function(){return this._secret},Tp(Mp,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),Tp(Mp,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),Tp(Mp,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),Tp(Mp,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),Tp(Mp,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),Tp(Mp,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),Mp.prototype.sign=function(e){return kp(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},Mp.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},Mp.prototype.getSecret=function(e){return kp(this._secret,"KeyPair is public only"),_h.encode(this.secret(),e)},Mp.prototype.getPublic=function(e,t){return _h.encode((t?[64]:[]).concat(this.pubBytes()),e)};var Pp=Mp,jp=_h.assert,Dp=_h.cachedProperty,Op=_h.parseBytes;function Bp(e,t){this.eddsa=e,"object"!=typeof t&&(t=Op(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),jp(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof Ch&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}Dp(Bp,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),Dp(Bp,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),Dp(Bp,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),Dp(Bp,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),Bp.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Bp.prototype.toHex=function(){return _h.encode(this.toBytes(),"hex").toUpperCase()};var Np=Bp,Rp=_h.assert,Lp=_h.parseBytes;function Fp(e){if(Rp("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof Fp))return new Fp(e);e=dp[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=up.sha512}var Up=Fp;Fp.prototype.sign=function(e,t){e=Lp(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),s=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},Fp.prototype.verify=function(e,t,r){e=Lp(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},Fp.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";function n(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}r.d(t,{J:()=>n})},428953:(e,t,r)=>{"use strict";r.d(t,{T:()=>oe});var n=r(725276);const i=/^error (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;const o=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;const a=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;const s=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;function c(e){return s.test(e)}function u(e){return(0,n.Yv)(s,e)}const l=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;const d=/^fallback\(\) external(?:\s(?payable{1}))?$/;const f=/^receive\(\) external payable$/;new Set(["memory","indexed","storage","calldata"]);const h=new Set(["indexed"]),p=new Set(["calldata","memory","storage"]);class g extends Error{constructor(e,t={}){const r=t.cause instanceof g?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof g&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],"Version: abitype@1.0.7"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class m extends g{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class y extends g{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class b extends g{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class v extends g{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class w extends g{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class A extends g{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class C extends g{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class E extends g{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class x extends g{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class S extends g{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class I extends g{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class k extends g{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}const _=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function T(e,t={}){if(function(e){return a.test(e)}(e)){const r=function(e){return(0,n.Yv)(a,e)}(e);if(!r)throw new E({signature:e,type:"function"});const i=O(r.parameters),o=[],s=i.length;for(let e=0;e[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,P=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,j=/^u?int$/;function D(e,t){const r=function(e,t,r){let n="";if(r)for(const i of Object.entries(r)){if(!i)continue;let e="";for(const t of i[1])e+=`[${t.type}${t.name?`:${t.name}`:""}]`;n+=`(${i[0]}{${e}})`}return t?`${t}:${e}${n}`:e}(e,t?.type,t?.structs);if(_.has(r))return _.get(r);const i=n.wj.test(e),o=(0,n.Yv)(i?P:M,e);if(!o)throw new b({param:e});if(o.name&&function(e){return"address"===e||"bool"===e||"function"===e||"string"===e||"tuple"===e||n.BD.test(e)||n.Ge.test(e)||N.test(e)}(o.name))throw new v({param:e,name:o.name});const a=o.name?{name:o.name}:{},s="indexed"===o.modifier?{indexed:!0}:{},c=t?.structs??{};let u,l={};if(i){u="tuple";const e=O(o.type),t=[],r=e.length;for(let n=0;n[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/;function L(e,t,r=new Set){const i=[],o=e.length;for(let a=0;avoid 0!==e)).length>0)))}({request:l})&&!n)try{return await async function(e,t){const{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:i,blockTag:o="latest",data:a,multicallAddress:s,to:c}=t;let u=s;if(!u){if(!e.chain)throw new G.YE;u=(0,Y.M)({blockNumber:i,chain:e.chain,contract:"multicall3"})}const l=i?(0,Z.cK)(i):void 0,d=l||o,{schedule:f}=(0,re.u)({id:`${e.uid}.${d}`,wait:n,shouldSplitBatch(e){const t=e.reduce(((e,{data:t})=>e+(t.length-2)),0);return t>2*r},fn:async t=>{const r=t.map((e=>({allowFailure:!0,callData:e.data,target:e.to}))),n=(0,J.p)({abi:z.v2,args:[r],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{data:n,to:u},d]});return(0,Q.e)({abi:z.v2,args:[r],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:h,success:p}]=await f({data:a,to:c});if(!p)throw new q.$S({data:h});return"0x"===h?{data:void 0}:{data:h}}(e,{...l,blockNumber:o,blockTag:a})}catch(_){if(!(_ instanceof G.YE||_ instanceof G.rj))throw _}const d=await e.request({method:"eth_call",params:n?[l,r,n]:[l,r]});return"0x"===d?{data:void 0}:{data:d}}catch(_){const n=function(e){if(!(e instanceof K.C))return;const t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(_),{offchainLookup:i,offchainLookupSignature:o}=await r.e(51190).then(r.bind(r,551190));if(!1!==e.ccipRead&&n?.slice(0,10)===o&&v)return{data:await i(e,{data:n,to:v})};if(I&&"0x101bb98d"===n?.slice(0,10))throw new q.Po({factory:d});throw function(e,{docsPath:t,...r}){const n=(()=>{const t=(0,X.l)(e,r);return t instanceof $.RM?e:t})();return new q.zX(n,{docsPath:t,...r})}(_,{...t,account:E,chain:e.chain})}}},194823:(e,t,r)=>{"use strict";r.d(t,{Ag:()=>o,Rm:()=>c,SJ:()=>s,_:()=>u,oX:()=>a,v2:()=>n});const n=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],i=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],o=[...i,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],a=[...i,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],s=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],c=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],u=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}]},945945:(e,t,r)=>{"use strict";r.d(t,{LX:()=>n,WN:()=>i,nP:()=>o});const n="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",i="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",o="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},24453:(e,t,r)=>{"use strict";r.d(t,{J9:()=>o,Mc:()=>i,fD:()=>n});const n={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},o={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},270638:(e,t,r)=>{"use strict";r.d(t,{eL:()=>n,sz:()=>i});const n={gwei:9,wei:18},i={ether:-9,wei:9}},137372:(e,t,r)=>{"use strict";r.d(t,{BI:()=>w,Iy:()=>c,Iz:()=>y,MR:()=>b,M_:()=>m,Nc:()=>l,O:()=>u,Wq:()=>h,YE:()=>f,YF:()=>s,YW:()=>a,_z:()=>p,d_:()=>I,dm:()=>S,fo:()=>A,gH:()=>d,j:()=>x,kE:()=>g,l3:()=>C,nK:()=>E,nM:()=>v});var n=r(895167),i=r(885182),o=r(345765);class a extends o.C{constructor({docsPath:e}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:e,name:"AbiConstructorNotFoundError"})}}class s extends o.C{constructor({docsPath:e}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}o.C;class c extends o.C{constructor({data:e,params:t,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.A)(t,{includeName:!0})})`,`Data: ${e} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}class u extends o.C{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class l extends o.C{constructor({expectedLength:e,givenLength:t,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${e}`,`Given length: ${t}`].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends o.C{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.E)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class f extends o.C{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}o.C;o.C;class h extends o.C{constructor(e,{docsPath:t}){super([`Encoded error signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends o.C{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class g extends o.C{constructor(e,{docsPath:t}){super([`Encoded event signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class m extends o.C{constructor(e,{docsPath:t}={}){super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:t,name:"AbiEventNotFoundError"})}}class y extends o.C{constructor(e,{docsPath:t}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t,name:"AbiFunctionNotFoundError"})}}class b extends o.C{constructor(e,{docsPath:t}){super([`Function "${e}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}o.C;class v extends o.C{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,n.B)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,n.B)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class w extends o.C{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class A extends o.C{constructor({abiItem:e,data:t,params:r,size:i}){super([`Data size of ${i} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.A)(r,{includeName:!0})})`,`Data: ${t} (${i} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=i}}class C extends o.C{constructor({abiItem:e,param:t}){super([`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.B)(e,{includeName:!0})}".`].join("\n"),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class E extends o.C{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t,name:"InvalidAbiEncodingType"})}}class x extends o.C{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t,name:"InvalidAbiDecodingType"})}}class S extends o.C{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}}class I extends o.C{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}o.C},14306:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(345765);class i extends n.C{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},345765:(e,t,r)=>{"use strict";r.d(t,{C:()=>o});const n="2.21.55";let i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${n}`};class o extends Error{constructor(e,t={}){const r=t.cause instanceof o?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof o&&t.cause.docsPath||t.docsPath,s=i.getDocsUrl?.({...t,docsPath:a});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...i.version?[`Version: ${i.version}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=a,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=n}walk(e){return a(this,e)}}function a(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e&&void 0!==e.cause?a(e.cause,t):t?null:e}},398703:(e,t,r)=>{"use strict";r.d(t,{EH:()=>o,YE:()=>s,jF:()=>a,rj:()=>i});var n=r(345765);class i extends n.C{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class o extends n.C{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} \u2013 ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} \u2013 ${e.name}`],name:"ChainMismatchError"})}}class a extends n.C{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join("\n"),{name:"ChainNotFoundError"})}}class s extends n.C{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}n.C},453513:(e,t,r)=>{"use strict";r.d(t,{zX:()=>y,bG:()=>b,M:()=>v,rR:()=>w,Po:()=>A,$S:()=>C});var n=r(413033),i=r(24453),o=r(815462),a=r(895167),s=r(218463);function c({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map(((e,r)=>`${n&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,s.A)(t[r]):t[r]}`)).join(", ")})`}var u=r(284586),l=r(149436),d=r(579670),f=r(137372),h=r(345765),p=r(136883),g=r(148990),m=r(321163);class y extends h.C{constructor(e,{account:t,docsPath:r,chain:i,data:o,gas:a,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:f,to:h,value:m,stateOverride:y}){const b=t?(0,n.J)(t):void 0;let v=(0,g.aO)({from:b?.address,to:h,value:void 0!==m&&`${(0,l.c)(m)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:a,gasPrice:void 0!==s&&`${(0,d.Q)(s)} gwei`,maxFeePerGas:void 0!==c&&`${(0,d.Q)(c)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,d.Q)(u)} gwei`,nonce:f});y&&(v+=`\n${(0,p.uj)(y)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class b extends h.C{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:o,sender:s}){const l=(0,u.iY)({abi:t,args:r,name:o}),d=l?c({abiItem:l,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,a.B)(l,{includeName:!0}):void 0,h=(0,g.aO)({address:n&&(0,m.R)(n),function:f,args:d&&"()"!==d&&`${[...Array(o?.length??0).keys()].map((()=>" ")).join("")}${d}`,sender:s});super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],h&&"Contract Call:",h].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=o,this.sender=s}}class v extends h.C{constructor({abi:e,data:t,functionName:r,message:n}){let s,u,l,d,h;if(t&&"0x"!==t)try{u=(0,o.W)({abi:e,data:t});const{abiItem:r,errorName:n,args:s}=u;if("Error"===n)d=s[0];else if("Panic"===n){const[e]=s;d=i.fD[e]}else{const e=r?(0,a.B)(r,{includeName:!0}):void 0,t=r&&s?c({abiItem:r,args:s,includeFunctionName:!1,includeName:!1}):void 0;l=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map((()=>" ")).join("")}${t}`:""]}}catch(p){s=p}else n&&(d=n);s instanceof f.Wq&&(h=s.signature,l=[`Unable to decode signature "${h}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${h}.`]),super(d&&"execution reverted"!==d||h?[`The contract function "${r}" reverted with the following ${h?"signature":"reason"}:`,d||h].join("\n"):`The contract function "${r}" reverted.`,{cause:s,metaMessages:l,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=u,this.reason=d,this.signature=h}}class w extends h.C{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class A extends h.C{constructor({factory:e}){super("Deployment for counterfactual contract call failed"+(e?` for factory "${e}".`:""),{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class C extends h.C{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},858146:(e,t,r)=>{"use strict";r.d(t,{B4:()=>i,SK:()=>o,hX:()=>a});var n=r(345765);class i extends n.C{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class o extends n.C{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class a extends n.C{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},836440:(e,t,r)=>{"use strict";r.d(t,{Fl:()=>o,NV:()=>a,ii:()=>i});var n=r(345765);class i extends n.C{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class o extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class a extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}},94317:(e,t,r)=>{"use strict";r.d(t,{H2:()=>a,Ty:()=>i,u:()=>s,xO:()=>o});var n=r(345765);class i extends n.C{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class o extends n.C{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class a extends n.C{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}n.C;class s extends n.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},92592:(e,t,r)=>{"use strict";r.d(t,{A7:()=>o,BG:()=>a,Fo:()=>h,K0:()=>c,Oh:()=>u,RM:()=>m,jj:()=>s,k5:()=>d,lN:()=>g,lY:()=>f,uC:()=>p,vW:()=>l});var n=r(579670),i=r(345765);class o extends i.C{constructor({cause:e,message:t}={}){const r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class a extends i.C{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.Q)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class s extends i.C{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.Q)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class c extends i.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u extends i.C{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class l extends i.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.C{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class f extends i.C{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class h extends i.C{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.C{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class g extends i.C{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.Q)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.Q)(r)} gwei`:""}).`].join("\n"),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(g,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class m extends i.C{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}},176595:(e,t,r)=>{"use strict";r.d(t,{Ci:()=>a,J8:()=>s,MU:()=>c});var n=r(218463),i=r(345765),o=r(321163);class a extends i.C{constructor({body:e,cause:t,details:r,headers:i,status:a,url:s}){super("HTTP request failed.",{cause:t,details:r,metaMessages:[a&&`Status: ${a}`,`URL: ${(0,o.I)(s)}`,e&&`Request body: ${(0,n.A)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=i,this.status=a,this.url=s}}i.C;class s extends i.C{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.I)(r)}`,`Request body: ${(0,n.A)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}i.C;class c extends i.C{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,o.I)(t)}`,`Request body: ${(0,n.A)(e)}`],name:"TimeoutError"})}}},136883:(e,t,r)=>{"use strict";r.d(t,{Hi:()=>i,ft:()=>o,uj:()=>s});var n=r(345765);class i extends n.C{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class o extends n.C{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function a(e){return e.reduce(((e,{slot:t,value:r})=>`${e} ${t}: ${r}\n`),"")}function s(e){return e.reduce(((e,{address:t,...r})=>{let n=`${e} ${t}:\n`;return r.nonce&&(n+=` nonce: ${r.nonce}\n`),r.balance&&(n+=` balance: ${r.balance}\n`),r.code&&(n+=` code: ${r.code}\n`),r.state&&(n+=" state:\n",n+=a(r.state)),r.stateDiff&&(n+=" stateDiff:\n",n+=a(r.stateDiff)),n})," State Override:\n").slice(0,-1)}},148990:(e,t,r)=>{"use strict";r.d(t,{$s:()=>u,Kc:()=>d,Kz:()=>l,Vg:()=>c,WA:()=>f,aO:()=>a,n3:()=>s});var n=r(149436),i=r(579670),o=r(345765);function a(e){const t=Object.entries(e).map((([e,t])=>void 0===t||!1===t?null:[e,t])).filter(Boolean),r=t.reduce(((e,[t])=>Math.max(e,t.length)),0);return t.map((([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`)).join("\n")}class s extends o.C{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n"),{name:"FeeConflictError"})}}o.C;class c extends o.C{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}o.C;o.C;o.C;class u extends o.C{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:c,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){const g=a({chain:o&&`${o?.name} (id: ${o?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,n.c)(p)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==u&&`${(0,i.Q)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.Q)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.Q)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",g].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class l extends o.C{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let o="Transaction";r&&void 0!==i&&(o=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(o=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(o=`Transaction at block number "${t}" at index "${i}"`),n&&(o=`Transaction with hash "${n}"`),super(`${o} could not be found.`,{name:"TransactionNotFoundError"})}}class d extends o.C{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class f extends o.C{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},321163:(e,t,r)=>{"use strict";r.d(t,{I:()=>i,R:()=>n});const n=e=>e,i=e=>e},541821:(e,t,r)=>{"use strict";r.d(t,{n:()=>b});var n=r(137372),i=r(964569),o=r(835834),a=r(885182),s=r(993577),c=r(38583),u=r(94317),l=r(6675),d=r(584192);function f(e,t={}){void 0!==t.size&&(0,l.Sl)(e,{size:t.size});const r=(0,d.My)(e,t);return(0,l.uU)(r,t)}function h(e,t={}){let r=e;if(void 0!==t.size&&((0,l.Sl)(r,{size:t.size}),r=(0,c.B)(r)),r.length>1||r[0]>1)throw new u.xO(r);return Boolean(r[0])}function p(e,t={}){void 0!==t.size&&(0,l.Sl)(e,{size:t.size});const r=(0,d.My)(e,t);return(0,l.ME)(r,t)}function g(e,t={}){let r=e;return void 0!==t.size&&((0,l.Sl)(r,{size:t.size}),r=(0,c.B)(r,{dir:"right"})),(new TextDecoder).decode(r)}var m=r(644706),y=r(794531);function b(e,t){const r="string"==typeof t?(0,m.aT)(t):t,i=(0,o.l)(r);if(0===(0,a.E)(r)&&e.length>0)throw new n.O;if((0,a.E)(t)&&(0,a.E)(t)<32)throw new n.Iy({data:"string"==typeof t?t:(0,d.My)(t),params:e,size:(0,a.E)(t)});let s=0;const c=[];for(let n=0;n!e)),i=n?[]:{};let o=0;if(C(t)){const a=r+p(e.readBytes(A));for(let r=0;r48?f(i,{signed:r}):p(i,{signed:r}),32]}(e,t);if("string"===t.type)return function(e,{staticPosition:t}){const r=p(e.readBytes(32)),n=t+r;e.setPosition(n);const i=p(e.readBytes(32));if(0===i)return e.setPosition(t+32),["",32];const o=e.readBytes(i,32),a=g((0,c.B)(o));return e.setPosition(t+32),[a,32]}(e,{staticPosition:r});throw new n.j(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const w=32,A=32;function C(e){const{type:t}=e;if("string"===t)return!0;if("bytes"===t)return!0;if(t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(C);const r=(0,y.k)(e.type);return!(!r||!C({...e,type:r[1]}))}},815462:(e,t,r)=>{"use strict";r.d(t,{W:()=>u});var n=r(24453),i=r(137372),o=r(993577),a=r(122599),s=r(541821),c=r(895167);function u(e){const{abi:t,data:r}=e,u=(0,o.di)(r,0,4);if("0x"===u)throw new i.O;const l=[...t||[],n.Mc,n.J9].find((e=>"error"===e.type&&u===(0,a.V)((0,c.B)(e))));if(!l)throw new i.Wq(u,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,s.n)(l.inputs,(0,o.di)(r,4)):void 0,errorName:l.name}}},446652:(e,t,r)=>{"use strict";r.d(t,{e:()=>s});var n=r(137372),i=r(541821),o=r(284586);const a="/docs/contract/decodeFunctionResult";function s(e){const{abi:t,args:r,functionName:s,data:c}=e;let u=t[0];if(s){const e=(0,o.iY)({abi:t,args:r,name:s});if(!e)throw new n.Iz(s,{docsPath:a});u=e}if("function"!==u.type)throw new n.Iz(void 0,{docsPath:a});if(!u.outputs)throw new n.MR(u.name,{docsPath:a});const l=(0,i.n)(u.outputs,c);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}},794531:(e,t,r)=>{"use strict";r.d(t,{h:()=>p,k:()=>y});var n=r(137372),i=r(14306),o=r(345765),a=r(94317),s=r(529873),c=r(825419),u=r(540586),l=r(885182),d=r(993577),f=r(584192),h=r(158213);function p(e,t){if(e.length!==t.length)throw new n.YE({expectedLength:e.length,givenLength:t.length});const r=function({params:e,values:t}){const r=[];for(let n=0;n0?(0,c.xW)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,c.xW)(a.map((({encoded:e})=>e)))}}(t,{length:i,param:{...e,type:o}})}if("tuple"===e.type)return function(e,{param:t}){let r=!1;const n=[];for(let i=0;ie)))}}(t,{param:e});if("address"===e.type)return function(e){if(!(0,s.P)(e))throw new i.M({address:e});return{dynamic:!1,encoded:(0,u.db)(e.toLowerCase())}}(t);if("bool"===e.type)return function(e){if("boolean"!=typeof e)throw new o.C(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,u.db)((0,f.$P)(e))}}(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const r=e.type.startsWith("int"),[,,n="256"]=h.Ge.exec(e.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){const n=2n**(BigInt(r)-(t?1n:0n))-1n,i=t?-n-1n:0n;if(e>n||e{"use strict";r.d(t,{m:()=>s});var n=r(137372),i=r(825419),o=r(794531);const a="/docs/contract/encodeDeployData";function s(e){const{abi:t,args:r,bytecode:s}=e;if(!r||0===r.length)return s;const c=t.find((e=>"type"in e&&"constructor"===e.type));if(!c)throw new n.YW({docsPath:a});if(!("inputs"in c))throw new n.YF({docsPath:a});if(!c.inputs||0===c.inputs.length)throw new n.YF({docsPath:a});const u=(0,o.h)(c.inputs,r);return(0,i.aP)([s,u])}},277330:(e,t,r)=>{"use strict";r.d(t,{p:()=>l});var n=r(825419),i=r(794531),o=r(137372),a=r(122599),s=r(895167),c=r(284586);const u="/docs/contract/encodeFunctionData";function l(e){const{args:t}=e,{abi:r,functionName:l}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){const{abi:t,args:r,functionName:n}=e;let i=t[0];if(n){const e=(0,c.iY)({abi:t,args:r,name:n});if(!e)throw new o.Iz(n,{docsPath:u});i=e}if("function"!==i.type)throw new o.Iz(void 0,{docsPath:u});return{abi:[i],functionName:(0,a.V)((0,s.B)(i))}}(e),d=r[0],f=l,h="inputs"in d&&d.inputs?(0,i.h)(d.inputs,t??[]):void 0;return(0,n.aP)([f,h??"0x"])}},895167:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,B:()=>i});var n=r(137372);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.d_(e.type);return`${e.name}(${o(e.inputs,{includeName:t})})`}function o(e,{includeName:t=!1}={}){return e?e.map((e=>function(e,{includeName:t}){if(e.type.startsWith("tuple"))return`(${o(e.components,{includeName:t})})${e.type.slice(5)}`;return e.type+(t&&e.name?` ${e.name}`:"")}(e,{includeName:t}))).join(t?", ":","):""}},284586:(e,t,r)=>{"use strict";r.d(t,{iY:()=>c});var n=r(137372),i=r(646394),o=r(529873),a=r(809777),s=r(122599);function c(e){const{abi:t,args:r=[],name:o}=e,c=(0,i.q)(o,{strict:!1}),d=t.filter((e=>c?"function"===e.type?(0,s.V)(e)===o:"event"===e.type&&(0,a.h)(e)===o:"name"in e&&e.name===o));if(0===d.length)return;if(1===d.length)return d[0];let f;for(const i of d){if(!("inputs"in i))continue;if(!r||0===r.length){if(!i.inputs||0===i.inputs.length)return i;continue}if(!i.inputs)continue;if(0===i.inputs.length)continue;if(i.inputs.length!==r.length)continue;if(r.every(((e,t)=>{const r="inputs"in i&&i.inputs[t];return!!r&&u(e,r)}))){if(f&&"inputs"in f&&f.inputs){const e=l(i.inputs,f.inputs,r);if(e)throw new n.nM({abiItem:i,type:e[0]},{abiItem:f,type:e[1]})}f=i}}return f||d[0]}function u(e,t){const r=typeof e,n=t.type;switch(n){case"address":return(0,o.P)(e,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:return"tuple"===n&&"components"in t?Object.values(t.components).every(((t,r)=>u(Object.values(e)[r],t))):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?"number"===r||"bigint"===r:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?"string"===r||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)&&(Array.isArray(e)&&e.every((e=>u(e,{...t,type:n.replace(/(\[[0-9]{0,}\])$/,"")}))))}}function l(e,t,r){for(const n in e){const i=e[n],a=t[n];if("tuple"===i.type&&"tuple"===a.type&&"components"in i&&"components"in a)return l(i.components,a.components,r[n]);const s=[i.type,a.type];if(!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&(0,o.P)(r[n],{strict:!1}))return s}}},964569:(e,t,r)=>{"use strict";r.d(t,{b:()=>l,o:()=>u});var n=r(14306),i=r(644706),o=r(282040),a=r(676447),s=r(529873);const c=new a.A(8192);function u(e,t){if(c.has(`${e}.${t}`))return c.get(`${e}.${t}`);const r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,o.S)((0,i.Af)(r),"bytes"),a=(t?r.substring(`${t}0x`.length):r).split("");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&a[i]&&(a[i]=a[i].toUpperCase()),(15&n[i>>1])>=8&&a[i+1]&&(a[i+1]=a[i+1].toUpperCase());const s=`0x${a.join("")}`;return c.set(`${e}.${t}`,s),s}function l(e,t){if(!(0,s.P)(e,{strict:!1}))throw new n.M({address:e});return u(e,t)}},529873:(e,t,r)=>{"use strict";r.d(t,{P:()=>s});var n=r(676447),i=r(964569);const o=/^0x[a-fA-F0-9]{40}$/,a=new n.A(8192);function s(e,t){const{strict:r=!0}=t??{},n=`${e}.${r}`;if(a.has(n))return a.get(n);const s=!(!o.test(e)||e.toLowerCase()!==e&&r&&(0,i.o)(e)!==e);return a.set(n,s),s}},732589:(e,t,r)=>{"use strict";r.d(t,{h:()=>o});var n=r(14306),i=r(529873);function o(e,t){if(!(0,i.P)(e,{strict:!1}))throw new n.M({address:e});if(!(0,i.P)(t,{strict:!1}))throw new n.M({address:t});return e.toLowerCase()===t.toLowerCase()}},969985:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(398703);function i({blockNumber:e,chain:t,contract:r}){const i=t?.contracts?.[r];if(!i)throw new n.rj({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new n.rj({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},835834:(e,t,r)=>{"use strict";r.d(t,{l:()=>o});var n=r(858146);const i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new n.hX({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.SK({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.B4({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new n.B4({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function o(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(i);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}},825419:(e,t,r)=>{"use strict";function n(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(const i of e)t+=i.length;const r=new Uint8Array(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}(e)}function i(e){return`0x${e.reduce(((e,t)=>e+t.replace("0x","")),"")}`}r.d(t,{aP:()=>i,xW:()=>n})},646394:(e,t,r)=>{"use strict";function n(e,{strict:t=!0}={}){return!!e&&("string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}r.d(t,{q:()=>n})},540586:(e,t,r)=>{"use strict";r.d(t,{db:()=>o,eV:()=>i});var n=r(836440);function i(e,{dir:t,size:r=32}={}){return"string"==typeof e?o(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.Fl({size:e.length,targetSize:r,type:"bytes"});const i=new Uint8Array(r);for(let n=0;n2*r)throw new n.Fl({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}},885182:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(646394);function i(e){return(0,n.q)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},993577:(e,t,r)=>{"use strict";r.d(t,{A1:()=>u,di:()=>a,iN:()=>l});var n=r(836440),i=r(646394),o=r(885182);function a(e,t,r,{strict:n}={}){return(0,i.q)(e,{strict:!1})?l(e,t,r,{strict:n}):u(e,t,r,{strict:n})}function s(e,t){if("number"==typeof t&&t>0&&t>(0,o.E)(e)-1)throw new n.ii({offset:t,position:"start",size:(0,o.E)(e)})}function c(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,o.E)(e)!==r-t)throw new n.ii({offset:r,position:"end",size:(0,o.E)(e)})}function u(e,t,r,{strict:n}={}){s(e,t);const i=e.slice(t,r);return n&&c(i,t,r),i}function l(e,t,r,{strict:n}={}){s(e,t);const i=`0x${e.replace("0x","").slice(2*(t??0),2*(r??e.length))}`;return n&&c(i,t,r),i}},38583:(e,t,r)=>{"use strict";function n(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let i=0;in})},6675:(e,t,r)=>{"use strict";r.d(t,{ME:()=>u,Nx:()=>c,Sl:()=>a,uU:()=>s});var n=r(94317),i=r(885182),o=r(38583);function a(e,{size:t}){if((0,i.E)(e)>t)throw new n.u({givenSize:(0,i.E)(e),maxSize:t})}function s(e,t={}){const{signed:r}=t;t.size&&a(e,{size:t.size});const n=BigInt(e);if(!r)return n;const i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e,t={}){let r=e;if(t.size&&(a(r,{size:t.size}),r=(0,o.B)(r)),"0x00"===(0,o.B)(r))return!1;if("0x01"===(0,o.B)(r))return!0;throw new n.H2(r)}function u(e,t={}){return Number(s(e,t))}},644706:(e,t,r)=>{"use strict";r.d(t,{Af:()=>h,ZJ:()=>u,aT:()=>f});var n=r(345765),i=r(646394),o=r(540586),a=r(6675),s=r(584192);const c=new TextEncoder;function u(e,t={}){return"number"==typeof e||"bigint"==typeof e?function(e,t){const r=(0,s.cK)(e,t);return f(r)}(e,t):"boolean"==typeof e?function(e,t={}){const r=new Uint8Array(1);if(r[0]=Number(e),"number"==typeof t.size)return(0,a.Sl)(r,{size:t.size}),(0,o.eV)(r,{size:t.size});return r}(e,t):(0,i.q)(e)?f(e,t):h(e,t)}const l={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=l.zero&&e<=l.nine?e-l.zero:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function f(e,t={}){let r=e;t.size&&((0,a.Sl)(r,{size:t.size}),r=(0,o.eV)(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);const s=i.length/2,c=new Uint8Array(s);for(let o=0,a=0;o{"use strict";r.d(t,{$P:()=>c,My:()=>u,cK:()=>l,i3:()=>f,nj:()=>s});var n=r(94317),i=r(540586),o=r(6675);const a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e,t={}){return"number"==typeof e||"bigint"==typeof e?l(e,t):"string"==typeof e?f(e,t):"boolean"==typeof e?c(e,t):u(e,t)}function c(e,t={}){const r=`0x${Number(e)}`;return"number"==typeof t.size?((0,o.Sl)(r,{size:t.size}),(0,i.eV)(r,{size:t.size})):r}function u(e,t={}){let r="";for(let i=0;is||a{"use strict";r.d(t,{l:()=>o});var n=r(345765),i=r(92592);function o(e,t){const r=(e.details||"").toLowerCase(),o=e instanceof n.C?e.walk((e=>e?.code===i.A7.code)):e;return o instanceof n.C?new i.A7({cause:e,message:o.details}):i.A7.nodeMessage.test(r)?new i.A7({cause:e,message:e.details}):i.BG.nodeMessage.test(r)?new i.BG({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.jj.nodeMessage.test(r)?new i.jj({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.K0.nodeMessage.test(r)?new i.K0({cause:e,nonce:t?.nonce}):i.Oh.nodeMessage.test(r)?new i.Oh({cause:e,nonce:t?.nonce}):i.vW.nodeMessage.test(r)?new i.vW({cause:e,nonce:t?.nonce}):i.k5.nodeMessage.test(r)?new i.k5({cause:e}):i.lY.nodeMessage.test(r)?new i.lY({cause:e,gas:t?.gas}):i.Fo.nodeMessage.test(r)?new i.Fo({cause:e,gas:t?.gas}):i.uC.nodeMessage.test(r)?new i.uC({cause:e}):i.lN.nodeMessage.test(r)?new i.lN({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.RM({cause:e})}},699789:(e,t,r)=>{"use strict";function n(e,{format:t}){if(!t)return{};const r={};return function t(n){const i=Object.keys(n);for(const o of i)o in e&&(r[o]=e[o]),n[o]&&"object"==typeof n[o]&&!Array.isArray(n[o])&&t(n[o])}(t(e||{})),r}r.d(t,{o:()=>n})},857671:(e,t,r)=>{"use strict";r.d(t,{Bv:()=>o});var n=r(584192);const i={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function o(e){const t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map((e=>({address:e.contractAddress,r:e.r,s:e.s,chainId:(0,n.cK)(e.chainId),nonce:(0,n.cK)(e.nonce),...void 0!==e.yParity?{yParity:(0,n.cK)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,n.cK)(e.v)}:{}})))),void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map((e=>(0,n.My)(e))):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=(0,n.cK)(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=(0,n.cK)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,n.cK)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=(0,n.cK)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,n.cK)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=(0,n.cK)(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=i[e.type]),void 0!==e.value&&(t.value=(0,n.cK)(e.value)),t}},282040:(e,t,r)=>{"use strict";r.d(t,{S:()=>s});var n=r(563741),i=r(646394),o=r(644706),a=r(584192);function s(e,t){const r=t||"hex",s=(0,n.lY)((0,i.q)(e,{strict:!1})?(0,o.ZJ)(e):e);return"bytes"===r?s:(0,a.nj)(s)}},809777:(e,t,r)=>{"use strict";r.d(t,{h:()=>n});const n=r(761569).k},122599:(e,t,r)=>{"use strict";r.d(t,{V:()=>o});var n=r(993577),i=r(761569);const o=e=>(0,n.di)((0,i.k)(e),0,4)},761569:(e,t,r)=>{"use strict";r.d(t,{k:()=>f});var n=r(644706),i=r(282040);const o=e=>(0,i.S)((0,n.ZJ)(e));var a=r(725276);const s=/^tuple(?(\[(\d*)\])*)$/;function c(e){let t=e.type;if(s.test(e.type)&&"components"in e){t="(";const r=e.components.length;for(let i=0;i{var t;return function(e){let t=!0,r="",n=0,i="",o=!1;for(let a=0;a{"use strict";r.d(t,{A:()=>n});class n extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){const e=this.keys().next().value;e&&this.delete(e)}return this}}},552167:(e,t,r)=>{"use strict";r.d(t,{u:()=>o});var n=r(9091);const i=new Map;function o({fn:e,id:t,shouldSplitBatch:r,wait:o=0,sort:a}){const s=async()=>{const t=u();c();const r=t.map((({args:e})=>e));0!==r.length&&e(r).then((e=>{a&&Array.isArray(e)&&e.sort(a);for(let r=0;r{for(let r=0;ri.delete(t),u=()=>i.get(t)||[],l=e=>i.set(t,[...u(),e]);return{flush:c,async schedule(e){const{promise:t,resolve:i,reject:a}=(0,n.Y)(),c=r?.([...u().map((({args:e})=>e)),e]);c&&s();return u().length>0?(l({args:e,resolve:i,reject:a}),t):(l({args:e,resolve:i,reject:a}),setTimeout(s,o),t)}}}},9091:(e,t,r)=>{"use strict";function n(){let e=()=>{},t=()=>{};return{promise:new Promise(((r,n)=>{e=r,t=n})),resolve:e,reject:t}}r.d(t,{Y:()=>n})},158213:(e,t,r)=>{"use strict";r.d(t,{BD:()=>n,Ge:()=>i});const n=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,i=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/},865547:(e,t,r)=>{"use strict";r.d(t,{yH:()=>l});var n=r(14306),i=r(836440),o=r(136883),a=r(529873),s=r(584192);function c(e){if(e&&0!==e.length)return e.reduce(((e,{slot:t,value:r})=>{if(66!==t.length)throw new i.NV({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new i.NV({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e}),{})}function u(e){const{balance:t,nonce:r,state:n,stateDiff:i,code:a}=e,u={};if(void 0!==a&&(u.code=a),void 0!==t&&(u.balance=(0,s.cK)(t)),void 0!==r&&(u.nonce=(0,s.cK)(r)),void 0!==n&&(u.state=c(n)),void 0!==i){if(u.state)throw new o.ft;u.stateDiff=c(i)}return u}function l(e){if(!e)return;const t={};for(const{address:r,...i}of e){if(!(0,a.P)(r,{strict:!1}))throw new n.M({address:r});if(t[r])throw new o.Hi({address:r});t[r]=u(i)}return t}},218463:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(e,t,r)=>JSON.stringify(e,((e,r)=>{const n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n}),r)},664055:(e,t,r)=>{"use strict";r.d(t,{c:()=>u});var n=r(413033);const i=2n**256n-1n;var o=r(14306),a=r(92592),s=r(148990),c=r(529873);function u(e){const{account:t,gasPrice:r,maxFeePerGas:u,maxPriorityFeePerGas:l,to:d}=e,f=t?(0,n.J)(t):void 0;if(f&&!(0,c.P)(f.address))throw new o.M({address:f.address});if(d&&!(0,c.P)(d))throw new o.M({address:d});if(void 0!==r&&(void 0!==u||void 0!==l))throw new s.n3;if(u&&u>i)throw new a.BG({maxFeePerGas:u});if(l&&u&&l>u)throw new a.lN({maxFeePerGas:u,maxPriorityFeePerGas:l})}},149436:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(270638),i=r(287135);function o(e,t="wei"){return(0,i.J)(e,n.eL[t])}},579670:(e,t,r)=>{"use strict";r.d(t,{Q:()=>o});var n=r(270638),i=r(287135);function o(e,t="wei"){return(0,i.J)(e,n.sz[t])}},287135:(e,t,r)=>{"use strict";function n(e,t){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[i,o]=[r.slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${o?`.${o}`:""}`}r.d(t,{J:()=>n})},207065:e=>{"use strict";e.exports=JSON.parse('{"name":"@pushprotocol/restapi","version":"1.7.20","type":"commonjs","publishConfig":{"registry":"https://registry.npmjs.org/"},"peerDependencies":{"ethers":"^5.0.0 || ^6.0.0"},"peerDependenciesMeta":{"ethers":{"optional":true}},"dependencies":{"@metamask/eth-sig-util":"^5.0.2","buffer":"^6.0.3","crypto-js":"^4.1.1","immer":"^10.0.2","joi":"^17.9.2","livepeer":"^2.5.8","lru-cache":"^10.1.0","openpgp":"^5.5.0","simple-peer":"^9.11.1","socket.io-client":"^4.7.2","video-stream-merger":"^4.0.1","viem":"^1.20.3","axios":"^0.27.2","uuid":"^9.0.0","unique-names-generator":"^4.7.1","tslib":"^2.3.0"},"scripts":{"test":"TS_NODE_PROJECT=\'./tsconfig.mocha.json\' NODE_OPTIONS=\'--loader ts-node/esm\' DOTENV_CONFIG_PATH=\'./tests/.env\' mocha -r ts-node/register -r dotenv/config \'tests/**/*.test.ts\' --timeout 1200000 --require tests/root.ts --serial"},"devDependencies":{"@types/chai":"^4.3.4","@types/chai-as-promised":"^7.1.5","@types/crypto-js":"^4.1.1","@types/mocha":"^10.0.1","chai":"^4.3.7","chai-as-promised":"^7.1.1","envfile":"^7.1.0","mocha":"^10.2.0","mocha-typescript":"^1.1.17","ts-node":"^10.9.1","typescript":"^5.0.2"},"main":"./src/index.js","typings":"./src/index.d.ts"}')},110780:e=>{"use strict";e.exports=JSON.parse('{"version":"2.1.1","information":{"description":"This file desribes all resolver keys with a defined meaning and related metadata used by Unstoppable Domains UNS Registry","documentation":"https://docs.unstoppabledomains.com/domain-registry-essentials/records-reference","contribution":"https://github.com/unstoppabledomains/uns/blob/main/resolver-keys.json"},"keys":{"crypto.BTC.address":{"deprecatedKeyName":"BTC","deprecated":false,"validationRegex":"^bc1[ac-hj-np-z02-9]{6,87}$|^[13][a-km-zA-HJ-NP-Z1-9]{25,39}$"},"crypto.ETH.address":{"deprecatedKeyName":"ETH","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.ZIL.address":{"deprecatedKeyName":"ZIL","deprecated":false,"validationRegex":"^zil1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}$"},"crypto.LTC.address":{"deprecatedKeyName":"LTC","deprecated":false,"validationRegex":"^[LM3][a-km-zA-HJ-NP-Z1-9]{26,33}$|^ltc1[a-zA-HJ-NP-Z0-9]{25,39}$"},"crypto.ETC.address":{"deprecatedKeyName":"ETC","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.EQL.address":{"deprecatedKeyName":"EQL","deprecated":false,"validationRegex":"^bnb[0-9a-z]{39}$"},"crypto.LINK.address":{"deprecatedKeyName":"LINK","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.USDC.address":{"deprecatedKeyName":"USDC","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.BAT.address":{"deprecatedKeyName":"BAT","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.REP.address":{"deprecatedKeyName":"REP","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.ZRX.address":{"deprecatedKeyName":"ZRX","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.DAI.address":{"deprecatedKeyName":"DAI","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.BCH.address":{"deprecatedKeyName":"BCH","deprecated":false,"validationRegex":"^[13][a-km-zA-HJ-NP-Z1-9]{33}$|^((bitcoincash|bchreg|bchtest):)?(q|p)[a-z0-9]{41}$|^((BITCOINCASH:)?(Q|P)[A-Z0-9]{41})$"},"crypto.XMR.address":{"deprecatedKeyName":"XMR","deprecated":false,"validationRegex":"^[48]{1}[0-9AB][1-9A-HJ-NP-Za-km-z]{93}$"},"crypto.DASH.address":{"deprecatedKeyName":"DASH","deprecated":false,"validationRegex":"^X[1-9A-HJ-NP-Za-km-z]{33}$"},"crypto.NEO.address":{"deprecatedKeyName":"NEO","deprecated":false,"validationRegex":"^A[0-9a-zA-Z]{33}$"},"crypto.SWTH.address":{"deprecatedKeyName":"SWTH","deprecated":false,"validationRegex":"^A[0-9a-zA-Z]{33}$"},"crypto.DOGE.address":{"deprecatedKeyName":"DOGE","deprecated":false,"validationRegex":"^D[5-9A-HJ-NP-U]{1}[1-9A-HJ-NP-Za-km-z]{32}$"},"crypto.XRP.address":{"deprecatedKeyName":"XRP","deprecated":false,"validationRegex":"^r[1-9a-km-zA-HJ-NP-Z]{24,34}$"},"crypto.ZEC.address":{"deprecatedKeyName":"ZEC","deprecated":false,"validationRegex":"^z([a-zA-Z0-9]){94}$|^zs1([a-zA-Z0-9]){75}$|^t([a-zA-Z0-9]){34}$"},"crypto.YEC.address":{"deprecatedKeyName":"YEC","deprecated":false,"validationRegex":"^y([a-zA-Z0-9]){94}$|^ys1([a-zA-Z0-9]){75}$|^s([a-zA-Z0-9]){34}$"},"crypto.ADA.address":{"deprecatedKeyName":"ADA","deprecated":false,"validationRegex":"^[1-9a-km-zA-HJ-NP-Z]{104}$|^A[1-9A-HJ-NP-Za-km-z]{58}$|^addr[0-9a-zA-Z]{99}$"},"crypto.EOS.address":{"deprecatedKeyName":"EOS","deprecated":false,"validationRegex":"^[a-z][a-z1-5.]{10}[a-z1-5]$"},"crypto.XLM.address":{"deprecatedKeyName":"XLM","deprecated":false,"validationRegex":"^G[A-Z2-7]{55}$"},"crypto.BNB.address":{"deprecatedKeyName":"BNB","deprecated":false,"validationRegex":"^bnb[0-9a-z]{39}$"},"crypto.BTG.address":{"deprecatedKeyName":"BTG","deprecated":false,"validationRegex":"^[GA][a-km-zA-HJ-NP-Z1-9]{33}$"},"crypto.NANO.address":{"deprecatedKeyName":"NANO","deprecated":false,"validationRegex":"^nano_[1-9a-z]{60}$"},"crypto.WAVES.address":{"deprecatedKeyName":"WAVES","deprecated":false,"validationRegex":"^3[a-km-zA-HJ-NP-Z1-9]{34}$"},"crypto.KMD.address":{"deprecatedKeyName":"KMD","deprecated":false,"validationRegex":"^R[a-km-zA-Z1-9]{33}$"},"crypto.AE.address":{"deprecatedKeyName":"AE","deprecated":false,"validationRegex":"^ak_[a-km-zA-Z1-9]{48,52}$"},"crypto.RSK.address":{"deprecatedKeyName":"RSK","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.WAN.address":{"deprecatedKeyName":"WAN","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.STRAT.address":{"deprecatedKeyName":"STRAT","deprecated":false,"validationRegex":"^S[a-km-zA-HJ-NP-Z1-9]{33}$"},"crypto.UBQ.address":{"deprecatedKeyName":"UBQ","deprecated":false,"validationRegex":"^0x[a-km-zA-HJ-NP-Z0-9]{40}$"},"crypto.XTZ.address":{"deprecatedKeyName":"XTZ","deprecated":false,"validationRegex":"^(tz|KT)[a-km-zA-HJ-NP-Z1-9]{34}$"},"crypto.IOTA.address":{"deprecatedKeyName":"IOTA","deprecated":false,"validationRegex":"^[A-Z0-9]{90}$|^iota1[a-z0-9]{59}$"},"crypto.VET.address":{"deprecatedKeyName":"VET","deprecated":false,"validationRegex":"^0x[a-km-zA-HJ-NP-Z0-9]{40}$"},"crypto.QTUM.address":{"deprecatedKeyName":"QTUM","deprecated":false,"validationRegex":"^Q[a-km-zA-HJ-NP-Z1-9]{33}$"},"crypto.ICX.address":{"deprecatedKeyName":"ICX","deprecated":false,"validationRegex":"^[a-km-zA-HJ-NP-Z0-9]{42}$"},"crypto.DGB.address":{"deprecatedKeyName":"DGB","deprecated":false,"validationRegex":"(^[a-km-zA-HJ-NP-Z1-9]{34}$)|(^[a-zA-Z1-9]{42}$)|(^dgb1[a-zA-Z0-9]{39}$)"},"crypto.XZC.address":{"deprecatedKeyName":"XZC","deprecated":false,"validationRegex":"^[a-km-zA-HJ-NP-Z1-9]{34}$"},"crypto.BURST.address":{"deprecatedKeyName":"BURST","deprecated":false,"validationRegex":"^BURST-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{5}"},"crypto.DCR.address":{"deprecatedKeyName":"DCR","deprecated":false,"validationRegex":null},"crypto.XEM.address":{"deprecatedKeyName":"XEM","deprecated":false,"validationRegex":"^N[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]{39}$"},"crypto.LSK.address":{"deprecatedKeyName":"LSK","deprecated":false,"validationRegex":"^\\\\d{1,21}[L]$"},"crypto.ATOM.address":{"deprecatedKeyName":"ATOM","deprecated":false,"validationRegex":"^(cosmos)1([qpzry9x8gf2tvdw0s3jn54khce6mua7l]+)$"},"crypto.ONG.address":{"deprecatedKeyName":"ONG","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.ONT.address":{"deprecatedKeyName":"ONT","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.SMART.address":{"deprecatedKeyName":"SMART","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.TPAY.address":{"deprecatedKeyName":"TPAY","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.GRS.address":{"deprecatedKeyName":"GRS","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.BSV.address":{"deprecatedKeyName":"BSV","deprecated":false,"validationRegex":"^bitcoincash:[a-zA-Z0-9]{42}$"},"crypto.GAS.address":{"deprecatedKeyName":"GAS","deprecated":false,"validationRegex":null},"crypto.TRX.address":{"deprecatedKeyName":"TRX","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.VTHO.address":{"deprecatedKeyName":"VTHO","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{42}$"},"crypto.BCD.address":{"deprecatedKeyName":"BCD","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.BTT.address":{"deprecatedKeyName":"BTT","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.KIN.address":{"deprecatedKeyName":"KIN","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{56}$"},"crypto.RVN.address":{"deprecatedKeyName":"RVN","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.ARK.address":{"deprecatedKeyName":"ARK","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.XVG.address":{"deprecatedKeyName":"XVG","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.ALGO.address":{"deprecatedKeyName":"ALGO","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{58}$"},"crypto.NEBL.address":{"deprecatedKeyName":"NEBL","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.XPM.address":{"deprecatedKeyName":"XPM","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.ONE.address":{"deprecatedKeyName":"ONE","deprecated":false,"validationRegex":"^one[a-zA-Z0-9]{39}$"},"crypto.BNTY.address":{"deprecatedKeyName":"BNTY","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.CRO.address":{"deprecatedKeyName":"CRO","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.TWT.address":{"deprecatedKeyName":"TWT","deprecated":false,"validationRegex":"^bnb[0-9a-z]{39}$"},"crypto.SIERRA.address":{"deprecatedKeyName":"SIERRA","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.VSYS.address":{"deprecatedKeyName":"VSYS","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{35}$"},"crypto.HIVE.address":{"deprecatedKeyName":"HIVE","validationRegex":"^(?!s*$).+","deprecated":false},"crypto.HT.address":{"deprecatedKeyName":"HT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ENJ.address":{"deprecatedKeyName":"ENJ","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.YFI.address":{"deprecatedKeyName":"YFI","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MTA.address":{"deprecatedKeyName":"MTA","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.COMP.address":{"deprecatedKeyName":"COMP","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BAL.address":{"deprecatedKeyName":"BAL","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AMPL.address":{"deprecatedKeyName":"AMPL","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.LEND.address":{"deprecatedKeyName":"LEND","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TLOS.address":{"deprecatedKeyName":"TLOS","validationRegex":"^[a-z][a-z1-5.]{10}[a-z1-5]$","deprecated":false},"crypto.XDC.address":{"deprecatedKeyName":"XDC","validationRegex":"^xdc[a-fA-F0-9]{40}$","deprecated":false},"crypto.XST.address":{"deprecatedKeyName":"XST","validationRegex":"(?:RwxQ3jUs2BjKhseNX1em4msn2GyV5XAec[PQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]|RwxQ3jUs2BjKhseNX1em4msn2GyV5XAe[defghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]|RwxQ3jUs2BjKhseNX1em4msn2GyV5XA[fghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{2}|RwxQ3jUs2BjKhseNX1em4msn2GyV5X[BCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{3}|RwxQ3jUs2BjKhseNX1em4msn2GyV5[YZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{4}|RwxQ3jUs2BjKhseNX1em4msn2GyV[6789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{5}|RwxQ3jUs2BjKhseNX1em4msn2Gy[WXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{6}|RwxQ3jUs2BjKhseNX1em4msn2G[z][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{7}|RwxQ3jUs2BjKhseNX1em4msn2[HJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{8}|RwxQ3jUs2BjKhseNX1em4msn[3456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{9}|RwxQ3jUs2BjKhseNX1em4ms[opqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{10}|RwxQ3jUs2BjKhseNX1em4m[tuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{11}|RwxQ3jUs2BjKhseNX1em4[nopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{12}|RwxQ3jUs2BjKhseNX1em[56789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{13}|RwxQ3jUs2BjKhseNX1e[nopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{14}|RwxQ3jUs2BjKhseNX1[fghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{15}|RwxQ3jUs2BjKhseNX[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{16}|RwxQ3jUs2BjKhseN[YZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{17}|RwxQ3jUs2BjKhse[PQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{18}|RwxQ3jUs2BjKhs[fghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{19}|RwxQ3jUs2BjKh[tuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{20}|RwxQ3jUs2BjK[ijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21}|RwxQ3jUs2Bj[LMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}|RwxQ3jUs2B[kmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{23}|RwxQ3jUs2[CDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{24}|RwxQ3jUs[3456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{25}|RwxQ3jU[tuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{26}|RwxQ3j[VWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{27}|RwxQ3[kmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{28}|RwxQ[456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{29}|Rwx[RSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{30}|Rw[yz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{31}|R[xyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{32}|S[123456789ABCDEFGHJKL][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{32}|SM[123456789ABCDEFGH][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{31}|SMJ11[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{29}|SMJ11[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{29}|SMJ12[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnop][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{28}|SMJ12q[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkm][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{27}|SMJ12qn[12345678][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{26}|SMJ12qn9[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghi][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{25}|SMJ12qn9j[123456789ABCDEFGHJKLM][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{24}|SMJ12qn9jN[123456789AB][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{23}|SMJ12qn9jNC[123456789AB][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}|SMJ12qn9jNCC[123456789ABCDEFGHJKLMNPQRSTUVW][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21}|SMJ12qn9jNCCX[123456789ABCDEFGH][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{20}|SMJ12qn9jNCCXJ[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkm][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{19}|SMJ12qn9jNCCXJn[123456789ABCDEFGHJKLMNPQRS][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{18}|SMJ12qn9jNCCXJnT[123456789ABCDEFGHJKLMNPQRSTUVWX][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{17}|SMJ12qn9jNCCXJnTY[123456789ABCDEFGHJKLMNPQ][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{16}|SMJ12qn9jNCCXJnTYR[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxy][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{15}|SMJ12qn9jNCCXJnTYRz[1234][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{14}|SMJ12qn9jNCCXJnTYRz5[123456789ABCDEFGHJKLMNPQRSTUVWX][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{13}|SMJ12qn9jNCCXJnTYRz5Y[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrst][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{12}|SMJ12qn9jNCCXJnTYRz5Yu[12345678][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{11}|SMJ12qn9jNCCXJnTYRz5Yu9[123456789ABCDEFGHJKLMNPQRSTUVWXY][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{10}|SMJ12qn9jNCCXJnTYRz5Yu9Z[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcd][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{9}|SMJ12qn9jNCCXJnTYRz5Yu9Ze[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkm][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{8}|SMJ12qn9jNCCXJnTYRz5Yu9Zen[123456789ABCD][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{7}|SMJ12qn9jNCCXJnTYRz5Yu9ZenE[123456789ABCDEFGHJKLMNPQ][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{6}|SMJ12qn9jNCCXJnTYRz5Yu9ZenER[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkm][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{5}|SMJ12qn9jNCCXJnTYRz5Yu9ZenERn[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghij][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{4}|SMJ12qn9jNCCXJnTYRz5Yu9ZenERnk[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghij][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{3}|SMJ12qn9jNCCXJnTYRz5Yu9ZenERnkk[123456789ABCDEFGHJKLMNPQRST][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{2}|SMJ12qn9jNCCXJnTYRz5Yu9ZenERnkkU[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstu][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]|SMJ12qn9jNCCXJnTYRz5Yu9ZenERnkkUv[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghi])","deprecated":false},"crypto.STRAX.address":{"deprecatedKeyName":"STRAX","validationRegex":"^X[a-km-zA-HJ-NP-Z1-9]{33}$","deprecated":false},"crypto.SIGNA.address":{"deprecatedKeyName":"SIGNA","validationRegex":"^S-((?=[A-Z2-9]{4})(?:[^IO]{4})-){3}(?=[A-Z2-9]{5})(?:[^IO]{5})$","deprecated":false},"crypto.NIM.address":{"deprecatedKeyName":"NIM","validationRegex":"^NQ[0-9]{2} ([A-Z0-9]{4} ){7}[A-Z0-9]{4}$","deprecated":false},"crypto.GUAP.address":{"deprecatedKeyName":"GUAP","validationRegex":"^(G|P)[a-zA-HJ-NP-Z0-9]{25,39}$","deprecated":false},"crypto.ELA.version.ELA.address":{"deprecatedKeyName":"ELA_ELA","validationRegex":"E[a-zA-HJ-NP-Z0-9]{33}","deprecated":false},"crypto.ELA.version.ESC.address":{"deprecatedKeyName":"ELA_ESC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.USDT.version.ERC20.address":{"deprecatedKeyName":"USDT_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.USDT.version.TRON.address":{"deprecatedKeyName":"USDT_TRON","validationRegex":"^[T][a-zA-HJ-NP-Z0-9]{33}$","deprecated":false},"crypto.USDT.version.EOS.address":{"deprecatedKeyName":"USDT_EOS","validationRegex":"^[a-z][a-z1-5.]{10}[a-z1-5]$","deprecated":false},"crypto.USDT.version.OMNI.address":{"deprecatedKeyName":"USDT_OMNI","validationRegex":"^(bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39}$","deprecated":false},"crypto.FTM.version.ERC20.address":{"deprecatedKeyName":"FTM_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FTM.version.BEP2.address":{"deprecatedKeyName":"FTM_BEP2","validationRegex":"^(bnb|tbnb)[a-zA-HJ-NP-Z0-9]{39}$","deprecated":false},"crypto.FTM.version.OPERA.address":{"deprecatedKeyName":"FTM_OPERA","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FUSE.version.ERC20.address":{"deprecatedKeyName":"FUSE_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FUSE.version.FUSE.address":{"deprecatedKeyName":"FUSE_FUSE","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MATIC.version.MATIC.address":{"deprecatedKeyName":"MATIC_MATIC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MATIC.version.BEP20.address":{"deprecatedKeyName":"MATIC_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MATIC.version.ERC20.address":{"deprecatedKeyName":"MATIC_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"social.payid.name":{"deprecatedKeyName":"payid","validationRegex":"^[0-9a-zA-Z]+\\\\$[0-9a-zA-Z]+\\\\.[0-9a-zA-Z]+$","deprecated":false},"social.picture.value":{"deprecatedKeyName":"picture","validationRegex":null,"deprecated":false},"whois.email.value":{"deprecatedKeyName":"email","validationRegex":"^[^@]+@[^\\\\.]+\\\\..+$","deprecated":false},"whois.for_sale.value":{"deprecatedKeyName":"for_sale","validationRegex":"(true)|(false)","deprecated":false},"ipfs.html.value":{"deprecatedKeyName":"html","validationRegex":".{0,100}","deprecated":false},"ipfs.redirect_domain.value":{"deprecatedKeyName":"redirect_domain","validationRegex":".{0,253}","deprecated":false},"dweb.ipfs.hash":{"deprecatedKeyName":"dweb_hash","validationRegex":".{0,100}","deprecated":false},"browser.redirect_url":{"deprecatedKeyName":"browser_redirect","validationRegex":".{0,253}","deprecated":false},"browser.preferred_protocols":{"deprecatedKeyName":"browser_preferred_protocols","validationRegex":null,"deprecated":false},"gundb.username.value":{"deprecatedKeyName":"gundb_username","validationRegex":null,"deprecated":false},"gundb.public_key.value":{"deprecatedKeyName":"gundb_public_key","validationRegex":null,"deprecated":false},"social.image.value":{"deprecatedKeyName":"image","validationRegex":null,"deprecated":false},"social.twitter.username":{"deprecatedKeyName":"twitter_username","validationRegex":null,"deprecated":false},"validation.social.twitter.username":{"deprecatedKeyName":"validation_twitter_username","validationRegex":null,"deprecated":false},"forwarding.url":{"deprecatedKeyName":"forwarding_url","validationRegex":"^(https?)://[^\\\\s/$.?#].[^\\\\s]*$","deprecated":false},"dns.ttl":{"deprecatedKeyName":"dns_ttl","validationRegex":null,"deprecated":false},"dns.A":{"deprecatedKeyName":"dns_A","validationRegex":null,"deprecated":false},"dns.A.ttl":{"deprecatedKeyName":"dns_A_ttl","validationRegex":null,"deprecated":false},"dns.AAAA":{"deprecatedKeyName":"dns_AAAA","validationRegex":null,"deprecated":false},"dns.AAAA.ttl":{"deprecatedKeyName":"dns_AAAA_ttl","validationRegex":null,"deprecated":false},"dns.AFSDB":{"deprecatedKeyName":"dns_AFSDB","validationRegex":null,"deprecated":false},"dns.AFSDB.ttl":{"deprecatedKeyName":"dns_AFSDB_ttl","validationRegex":null,"deprecated":false},"dns.APL":{"deprecatedKeyName":"dns_APL","validationRegex":null,"deprecated":false},"dns.APL.ttl":{"deprecatedKeyName":"dns_APL_ttl","validationRegex":null,"deprecated":false},"dns.CAA":{"deprecatedKeyName":"dns_CAA","validationRegex":null,"deprecated":false},"dns.CAA.ttl":{"deprecatedKeyName":"dns_CAA_ttl","validationRegex":null,"deprecated":false},"dns.CDNSKEY":{"deprecatedKeyName":"dns_CDNSKEY","validationRegex":null,"deprecated":false},"dns.CDNSKEY.ttl":{"deprecatedKeyName":"dns_CDNSKEY_ttl","validationRegex":null,"deprecated":false},"dns.CDS":{"deprecatedKeyName":"dns_CDS","validationRegex":null,"deprecated":false},"dns.CDS.ttl":{"deprecatedKeyName":"dns_CDS_ttl","validationRegex":null,"deprecated":false},"dns.CERT":{"deprecatedKeyName":"dns_CERT","validationRegex":null,"deprecated":false},"dns.CERT.ttl":{"deprecatedKeyName":"dns_CERT_ttl","validationRegex":null,"deprecated":false},"dns.CNAME":{"deprecatedKeyName":"dns_CNAME","validationRegex":null,"deprecated":false},"dns.CNAME.ttl":{"deprecatedKeyName":"dns_CNAME_ttl","validationRegex":null,"deprecated":false},"dns.CSYNC":{"deprecatedKeyName":"dns_CSYNC","validationRegex":null,"deprecated":false},"dns.CSYNC.ttl":{"deprecatedKeyName":"dns_CSYNC_ttl","validationRegex":null,"deprecated":false},"dns.DHCID":{"deprecatedKeyName":"dns_DHCID","validationRegex":null,"deprecated":false},"dns.DHCID.ttl":{"deprecatedKeyName":"dns_DHCID_ttl","validationRegex":null,"deprecated":false},"dns.DLV":{"deprecatedKeyName":"dns_DLV","validationRegex":null,"deprecated":false},"dns.DLV.ttl":{"deprecatedKeyName":"dns_DLV_ttl","validationRegex":null,"deprecated":false},"dns.DNAME":{"deprecatedKeyName":"dns_DNAME","validationRegex":null,"deprecated":false},"dns.DNAME.ttl":{"deprecatedKeyName":"dns_DNAME_ttl","validationRegex":null,"deprecated":false},"dns.DNSKEY":{"deprecatedKeyName":"dns_DNSKEY","validationRegex":null,"deprecated":false},"dns.DNSKEY.ttl":{"deprecatedKeyName":"dns_DNSKEY_ttl","validationRegex":null,"deprecated":false},"dns.DS":{"deprecatedKeyName":"dns_DS","validationRegex":null,"deprecated":false},"dns.DS.ttl":{"deprecatedKeyName":"dns_DS_ttl","validationRegex":null,"deprecated":false},"dns.EUI48":{"deprecatedKeyName":"dns_EUI48","validationRegex":null,"deprecated":false},"dns.EUI48.ttl":{"deprecatedKeyName":"dns_EUI48_ttl","validationRegex":null,"deprecated":false},"dns.EUI64":{"deprecatedKeyName":"dns_EUI64","validationRegex":null,"deprecated":false},"dns.EUI64.ttl":{"deprecatedKeyName":"dns_EUI64_ttl","validationRegex":null,"deprecated":false},"dns.HINFO":{"deprecatedKeyName":"dns_HINFO","validationRegex":null,"deprecated":false},"dns.HINFO.ttl":{"deprecatedKeyName":"dns_HINFO_ttl","validationRegex":null,"deprecated":false},"dns.HIP":{"deprecatedKeyName":"dns_HIP","validationRegex":null,"deprecated":false},"dns.HIP.ttl":{"deprecatedKeyName":"dns_HIP_ttl","validationRegex":null,"deprecated":false},"dns.HTTPS":{"deprecatedKeyName":"dns_HTTPS","validationRegex":null,"deprecated":false},"dns.HTTPS.ttl":{"deprecatedKeyName":"dns_HTTPS_ttl","validationRegex":null,"deprecated":false},"dns.IPSECKEY":{"deprecatedKeyName":"dns_IPSECKEY","validationRegex":null,"deprecated":false},"dns.IPSECKEY.ttl":{"deprecatedKeyName":"dns_IPSECKEY_ttl","validationRegex":null,"deprecated":false},"dns.KEY":{"deprecatedKeyName":"dns_KEY","validationRegex":null,"deprecated":false},"dns.KEY.ttl":{"deprecatedKeyName":"dns_KEY_ttl","validationRegex":null,"deprecated":false},"dns.KX":{"deprecatedKeyName":"dns_KX","validationRegex":null,"deprecated":false},"dns.KX.ttl":{"deprecatedKeyName":"dns_KX_ttl","validationRegex":null,"deprecated":false},"dns.LOC":{"deprecatedKeyName":"dns_LOC","validationRegex":null,"deprecated":false},"dns.LOC.ttl":{"deprecatedKeyName":"dns_LOC_ttl","validationRegex":null,"deprecated":false},"dns.MX":{"deprecatedKeyName":"dns_MX","validationRegex":null,"deprecated":false},"dns.MX.ttl":{"deprecatedKeyName":"dns_MX_ttl","validationRegex":null,"deprecated":false},"dns.NAPTR":{"deprecatedKeyName":"dns_NAPTR","validationRegex":null,"deprecated":false},"dns.NAPTR.ttl":{"deprecatedKeyName":"dns_NAPTR_ttl","validationRegex":null,"deprecated":false},"dns.NS":{"deprecatedKeyName":"dns_NS","validationRegex":null,"deprecated":false},"dns.NS.ttl":{"deprecatedKeyName":"dns_NS_ttl","validationRegex":null,"deprecated":false},"dns.NSEC":{"deprecatedKeyName":"dns_NSEC","validationRegex":null,"deprecated":false},"dns.NSEC.ttl":{"deprecatedKeyName":"dns_NSEC_ttl","validationRegex":null,"deprecated":false},"dns.NSEC3":{"deprecatedKeyName":"dns_NSEC3","validationRegex":null,"deprecated":false},"dns.NSEC3.ttl":{"deprecatedKeyName":"dns_NSEC3_ttl","validationRegex":null,"deprecated":false},"dns.NSEC3PARAM":{"deprecatedKeyName":"dns_NSEC3PARAM","validationRegex":null,"deprecated":false},"dns.NSEC3PARAM.ttl":{"deprecatedKeyName":"dns_NSEC3PARAM_ttl","validationRegex":null,"deprecated":false},"dns.OPENPGPKEY":{"deprecatedKeyName":"dns_OPENPGPKEY","validationRegex":null,"deprecated":false},"dns.OPENPGPKEY.ttl":{"deprecatedKeyName":"dns_OPENPGPKEY_ttl","validationRegex":null,"deprecated":false},"dns.PTR":{"deprecatedKeyName":"dns_PTR","validationRegex":null,"deprecated":false},"dns.PTR.ttl":{"deprecatedKeyName":"dns_PTR_ttl","validationRegex":null,"deprecated":false},"dns.RP":{"deprecatedKeyName":"dns_RP","validationRegex":null,"deprecated":false},"dns.RP.ttl":{"deprecatedKeyName":"dns_RP_ttl","validationRegex":null,"deprecated":false},"dns.RRSIG":{"deprecatedKeyName":"dns_RRSIG","validationRegex":null,"deprecated":false},"dns.RRSIG.ttl":{"deprecatedKeyName":"dns_RRSIG_ttl","validationRegex":null,"deprecated":false},"dns.SIG":{"deprecatedKeyName":"dns_SIG","validationRegex":null,"deprecated":false},"dns.SIG.ttl":{"deprecatedKeyName":"dns_SIG_ttl","validationRegex":null,"deprecated":false},"dns.SMIMEA":{"deprecatedKeyName":"dns_SMIMEA","validationRegex":null,"deprecated":false},"dns.SMIMEA.ttl":{"deprecatedKeyName":"dns_SMIMEA_ttl","validationRegex":null,"deprecated":false},"dns.SOA":{"deprecatedKeyName":"dns_SOA","validationRegex":null,"deprecated":false},"dns.SOA.ttl":{"deprecatedKeyName":"dns_SOA_ttl","validationRegex":null,"deprecated":false},"dns.SRV":{"deprecatedKeyName":"dns_SRV","validationRegex":null,"deprecated":false},"dns.SRV.ttl":{"deprecatedKeyName":"dns_SRV_ttl","validationRegex":null,"deprecated":false},"dns.SSHFP":{"deprecatedKeyName":"dns_SSHFP","validationRegex":null,"deprecated":false},"dns.SSHFP.ttl":{"deprecatedKeyName":"dns_SSHFP_ttl","validationRegex":null,"deprecated":false},"dns.SVCB":{"deprecatedKeyName":"dns_SVCB","validationRegex":null,"deprecated":false},"dns.SVCB.ttl":{"deprecatedKeyName":"dns_SVCB_ttl","validationRegex":null,"deprecated":false},"dns.TA":{"deprecatedKeyName":"dns_TA","validationRegex":null,"deprecated":false},"dns.TA.ttl":{"deprecatedKeyName":"dns_TA_ttl","validationRegex":null,"deprecated":false},"dns.TKEY":{"deprecatedKeyName":"dns_TKEY","validationRegex":null,"deprecated":false},"dns.TKEY.ttl":{"deprecatedKeyName":"dns_TKEY_ttl","validationRegex":null,"deprecated":false},"dns.TLSA":{"deprecatedKeyName":"dns_TLSA","validationRegex":null,"deprecated":false},"dns.TLSA.ttl":{"deprecatedKeyName":"dns_TLSA_ttl","validationRegex":null,"deprecated":false},"dns.TSIG":{"deprecatedKeyName":"dns_TSIG","validationRegex":null,"deprecated":false},"dns.TSIG.ttl":{"deprecatedKeyName":"dns_TSIG_ttl","validationRegex":null,"deprecated":false},"dns.TXT":{"deprecatedKeyName":"dns_TXT","validationRegex":null,"deprecated":false},"dns.TXT.ttl":{"deprecatedKeyName":"dns_TXT_ttl","validationRegex":null,"deprecated":false},"dns.URI":{"deprecatedKeyName":"dns_URI","validationRegex":null,"deprecated":false},"dns.URI.ttl":{"deprecatedKeyName":"dns_URI_ttl","validationRegex":null,"deprecated":false},"dns.ZONEMD":{"deprecatedKeyName":"dns_ZONEMD","validationRegex":null,"deprecated":false},"dns.ZONEMD.ttl":{"deprecatedKeyName":"dns_ZONEMD_ttl","validationRegex":null,"deprecated":false},"crypto.DOT.address":{"deprecatedKeyName":"DOT","validationRegex":null,"deprecated":false},"crypto.UNI.version.ERC20.address":{"deprecatedKeyName":"UNI_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.UNI.version.BEP20.address":{"deprecatedKeyName":"UNI_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.UNI.version.MATIC.address":{"deprecatedKeyName":"UNI_MATIC","validationRegex":null,"deprecated":false},"crypto.UNI.version.HRC20.address":{"deprecatedKeyName":"UNI_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.UNI.version.XDAI.address":{"deprecatedKeyName":"UNI_XDAI","validationRegex":null,"deprecated":false},"crypto.SOL.address":{"deprecatedKeyName":"SOL","validationRegex":null,"deprecated":false},"crypto.BUSD.version.ERC20.address":{"deprecatedKeyName":"BUSD_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BUSD.version.BEP20.address":{"deprecatedKeyName":"BUSD_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BUSD.version.HRC20.address":{"deprecatedKeyName":"BUSD_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ICP.address":{"deprecatedKeyName":"ICP","validationRegex":null,"deprecated":false},"crypto.THETA.address":{"deprecatedKeyName":"THETA","validationRegex":null,"deprecated":false},"crypto.WBTC.version.ERC20.address":{"deprecatedKeyName":"WBTC_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.WBTC.version.MATIC.address":{"deprecatedKeyName":"WBTC_MATIC","validationRegex":null,"deprecated":false},"crypto.WBTC.version.FANTOM.address":{"deprecatedKeyName":"WBTC_FANTOM","validationRegex":null,"deprecated":false},"crypto.WBTC.version.HRC20.address":{"deprecatedKeyName":"WBTC_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.WBTC.version.XDAI.address":{"deprecatedKeyName":"WBTC_XDAI","validationRegex":null,"deprecated":false},"crypto.FIL.address":{"deprecatedKeyName":"FIL","validationRegex":null,"deprecated":false},"crypto.CDAI.address":{"deprecatedKeyName":"CDAI","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KSM.address":{"deprecatedKeyName":"KSM","validationRegex":null,"deprecated":false},"crypto.OKB.address":{"deprecatedKeyName":"OKB","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AAVE.version.ERC20.address":{"deprecatedKeyName":"AAVE_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AAVE.version.MATIC.address":{"deprecatedKeyName":"AAVE_MATIC","validationRegex":null,"deprecated":false},"crypto.AAVE.version.FANTOM.address":{"deprecatedKeyName":"AAVE_FANTOM","validationRegex":null,"deprecated":false},"crypto.AAVE.version.HRC20.address":{"deprecatedKeyName":"AAVE_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SHIB.version.ERC20.address":{"deprecatedKeyName":"SHIB_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SHIB.version.MATIC.address":{"deprecatedKeyName":"SHIB_MATIC","validationRegex":null,"deprecated":false},"crypto.SHIB.version.FANTOM.address":{"deprecatedKeyName":"SHIB_FANTOM","validationRegex":null,"deprecated":false},"crypto.CEL.version.ERC20.address":{"deprecatedKeyName":"CEL_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CEL.version.MATIC.address":{"deprecatedKeyName":"CEL_MATIC","validationRegex":null,"deprecated":false},"crypto.CEL.version.FANTOM.address":{"deprecatedKeyName":"CEL_FANTOM","validationRegex":null,"deprecated":false},"crypto.CEL.version.HRC20.address":{"deprecatedKeyName":"CEL_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CUSDC.address":{"deprecatedKeyName":"CUSDC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CETH.address":{"deprecatedKeyName":"CETH","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AMP.address":{"deprecatedKeyName":"AMP","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CAKE.version.BEP20.address":{"deprecatedKeyName":"CAKE_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CAKE.version.HRC20.address":{"deprecatedKeyName":"CAKE_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MIOTA.address":{"deprecatedKeyName":"MIOTA","validationRegex":null,"deprecated":false},"crypto.FTT.address":{"deprecatedKeyName":"FTT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MKR.address":{"deprecatedKeyName":"MKR","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TFUEL.address":{"deprecatedKeyName":"TFUEL","validationRegex":null,"deprecated":false},"crypto.KLAY.address":{"deprecatedKeyName":"KLAY","validationRegex":null,"deprecated":false},"crypto.LUNA.address":{"deprecatedKeyName":"LUNA","validationRegex":null,"deprecated":false},"crypto.AVAX.address":{"deprecatedKeyName":"AVAX","validationRegex":null,"deprecated":false},"crypto.LEO.address":{"deprecatedKeyName":"LEO","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SAFEMOON.version.BEP20.address":{"deprecatedKeyName":"SAFEMOON_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SAFEMOON.version.HRC20.address":{"deprecatedKeyName":"SAFEMOON_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.UST.address":{"deprecatedKeyName":"UST","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.RUNE.address":{"deprecatedKeyName":"RUNE","validationRegex":"^(bnb|tbnb)[a-zA-HJ-NP-Z0-9]{39}$","deprecated":false},"crypto.HBAR.address":{"deprecatedKeyName":"HBAR","validationRegex":null,"deprecated":false},"crypto.TEL.version.ERC20.address":{"deprecatedKeyName":"TEL_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TEL.version.MATIC.address":{"deprecatedKeyName":"TEL_MATIC","validationRegex":null,"deprecated":false},"crypto.CHZ.address":{"deprecatedKeyName":"CHZ","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SUSHI.version.ERC20.address":{"deprecatedKeyName":"SUSHI_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SUSHI.version.BEP20.address":{"deprecatedKeyName":"SUSHI_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SUSHI.version.MATIC.address":{"deprecatedKeyName":"SUSHI_MATIC","validationRegex":null,"deprecated":false},"crypto.SUSHI.version.FANTOM.address":{"deprecatedKeyName":"SUSHI_FANTOM","validationRegex":null,"deprecated":false},"crypto.SUSHI.version.HRC20.address":{"deprecatedKeyName":"SUSHI_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.EGLD.address":{"deprecatedKeyName":"EGLD","validationRegex":null,"deprecated":false},"crypto.TUSD.version.ERC20.address":{"deprecatedKeyName":"TUSD_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TUSD.version.BEP20.address":{"deprecatedKeyName":"TUSD_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TUSD.version.AVAX.address":{"deprecatedKeyName":"TUSD_AVAX","validationRegex":null,"deprecated":false},"crypto.TUSD.version.HRC20.address":{"deprecatedKeyName":"TUSD_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TUSD.version.BEP2.address":{"deprecatedKeyName":"TUSD_BEP2","validationRegex":"^(bnb|tbnb)[a-zA-HJ-NP-Z0-9]{39}$","deprecated":false},"crypto.TUSD.version.TRON.address":{"deprecatedKeyName":"TUSD_TRON","validationRegex":"^[T][a-zA-HJ-NP-Z0-9]{33}$","deprecated":false},"crypto.HBTC.version.ERC20.address":{"deprecatedKeyName":"HBTC_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.HBTC.version.HRC20.address":{"deprecatedKeyName":"HBTC_HRC20","validationRegex":null,"deprecated":false},"crypto.SNX.version.ERC20.address":{"deprecatedKeyName":"SNX_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SNX.version.MATIC.address":{"deprecatedKeyName":"SNX_MATIC","validationRegex":null,"deprecated":false},"crypto.SNX.version.FANTOM.address":{"deprecatedKeyName":"SNX_FANTOM","validationRegex":null,"deprecated":false},"crypto.SNX.version.HRC20.address":{"deprecatedKeyName":"SNX_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.HOT.version.ERC20.address":{"deprecatedKeyName":"HOT_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.HOT.version.HRC20.address":{"deprecatedKeyName":"HOT_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.NEAR.address":{"deprecatedKeyName":"NEAR","validationRegex":null,"deprecated":false},"crypto.HNT.address":{"deprecatedKeyName":"HNT","validationRegex":null,"deprecated":false},"crypto.STETH.address":{"deprecatedKeyName":"STETH","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.NEXO.version.ERC20.address":{"deprecatedKeyName":"NEXO_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.NEXO.version.FANTOM.address":{"deprecatedKeyName":"NEXO_FANTOM","validationRegex":null,"deprecated":false},"crypto.PAX.address":{"deprecatedKeyName":"PAX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.STX.address":{"deprecatedKeyName":"STX","validationRegex":null,"deprecated":false},"crypto.MANA.version.ERC20.address":{"deprecatedKeyName":"MANA_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MANA.version.MATIC.address":{"deprecatedKeyName":"MANA_MATIC","validationRegex":null,"deprecated":false},"crypto.MDX.version.HRC20.address":{"deprecatedKeyName":"MDX_HRC20","validationRegex":null,"deprecated":false},"crypto.MDX.version.BEP20.address":{"deprecatedKeyName":"MDX_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ZEN.address":{"deprecatedKeyName":"ZEN","validationRegex":null,"deprecated":false},"crypto.ARRR.address":{"deprecatedKeyName":"ARRR","validationRegex":null,"deprecated":false},"crypto.BNT.address":{"deprecatedKeyName":"BNT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.LUSD.version.ERC20.address":{"deprecatedKeyName":"LUSD_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.LUSD.version.MATIC.address":{"deprecatedKeyName":"LUSD_MATIC","validationRegex":null,"deprecated":false},"crypto.GRT.version.ERC20.address":{"deprecatedKeyName":"GRT_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.GRT.version.MATIC.address":{"deprecatedKeyName":"GRT_MATIC","validationRegex":null,"deprecated":false},"crypto.GRT.version.HRC20.address":{"deprecatedKeyName":"GRT_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SC.address":{"deprecatedKeyName":"SC","validationRegex":null,"deprecated":false},"crypto.HUSD.version.ERC20.address":{"deprecatedKeyName":"HUSD_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.HUSD.version.HRC20.address":{"deprecatedKeyName":"HUSD_HRC20","validationRegex":null,"deprecated":false},"crypto.CRV.version.ERC20.address":{"deprecatedKeyName":"CRV_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CRV.version.MATIC.address":{"deprecatedKeyName":"CRV_MATIC","validationRegex":null,"deprecated":false},"crypto.CRV.version.FANTOM.address":{"deprecatedKeyName":"CRV_FANTOM","validationRegex":null,"deprecated":false},"crypto.UMA.address":{"deprecatedKeyName":"UMA","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.WRX.version.BEP2.address":{"deprecatedKeyName":"WRX_BEP2","validationRegex":"^(bnb|tbnb)[a-zA-HJ-NP-Z0-9]{39}$","deprecated":false},"crypto.WRX.version.MATIC.address":{"deprecatedKeyName":"WRX_MATIC","validationRegex":null,"deprecated":false},"crypto.AR.address":{"deprecatedKeyName":"AR","validationRegex":null,"deprecated":false},"crypto.OMG.address":{"deprecatedKeyName":"OMG","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.GT.address":{"deprecatedKeyName":"GT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.QNT.address":{"deprecatedKeyName":"QNT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CHSB.address":{"deprecatedKeyName":"CHSB","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.IOST.address":{"deprecatedKeyName":"IOST","validationRegex":null,"deprecated":false},"crypto.NXM.address":{"deprecatedKeyName":"NXM","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KCS.address":{"deprecatedKeyName":"KCS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.LPT.version.ERC20.address":{"deprecatedKeyName":"LPT_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.LPT.version.HRC20.address":{"deprecatedKeyName":"LPT_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.XSUSHI.address":{"deprecatedKeyName":"XSUSHI","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CUSDT.address":{"deprecatedKeyName":"CUSDT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FLOW.address":{"deprecatedKeyName":"FLOW","validationRegex":null,"deprecated":false},"crypto.ANKR.address":{"deprecatedKeyName":"ANKR","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.HBC.address":{"deprecatedKeyName":"HBC","validationRegex":null,"deprecated":false},"crypto.VGX.address":{"deprecatedKeyName":"VGX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FEI.address":{"deprecatedKeyName":"FEI","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BAKE.version.BEP20.address":{"deprecatedKeyName":"BAKE_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BAKE.version.HRC20.address":{"deprecatedKeyName":"BAKE_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.1INCH.version.ERC20.address":{"deprecatedKeyName":"1INCH_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.1INCH.version.BEP20.address":{"deprecatedKeyName":"1INCH_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.1INCH.version.MATIC.address":{"deprecatedKeyName":"1INCH_MATIC","validationRegex":null,"deprecated":false},"crypto.1INCH.version.HRC20.address":{"deprecatedKeyName":"1INCH_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CKB.address":{"deprecatedKeyName":"CKB","validationRegex":null,"deprecated":false},"crypto.WOO.version.ERC20.address":{"deprecatedKeyName":"WOO_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.WOO.version.HRC20.address":{"deprecatedKeyName":"WOO_HRC20","validationRegex":null,"deprecated":false},"crypto.TITAN.address":{"deprecatedKeyName":"TITAN","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.OMI.address":{"deprecatedKeyName":"OMI","validationRegex":null,"deprecated":false},"crypto.MINA.address":{"deprecatedKeyName":"MINA","validationRegex":null,"deprecated":false},"crypto.SETH.address":{"deprecatedKeyName":"SETH","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.RSR.address":{"deprecatedKeyName":"RSR","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.OXY.version.SOLANA.address":{"deprecatedKeyName":"OXY_SOLANA","validationRegex":null,"deprecated":false},"crypto.OXY.version.ERC20.address":{"deprecatedKeyName":"OXY_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.REN.version.ERC20.address":{"deprecatedKeyName":"REN_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.REN.version.HRC20.address":{"deprecatedKeyName":"REN_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.XCH.address":{"deprecatedKeyName":"XCH","validationRegex":null,"deprecated":false},"crypto.RENBTC.version.ERC20.address":{"deprecatedKeyName":"RENBTC_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.RENBTC.version.BEP20.address":{"deprecatedKeyName":"RENBTC_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.RENBTC.version.HRC20.address":{"deprecatedKeyName":"RENBTC_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.USDN.address":{"deprecatedKeyName":"USDN","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BCHA.address":{"deprecatedKeyName":"BCHA","validationRegex":null,"deprecated":false},"crypto.LRC.address":{"deprecatedKeyName":"LRC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.PUNDIX.address":{"deprecatedKeyName":"PUNDIX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ERG.address":{"deprecatedKeyName":"ERG","validationRegex":null,"deprecated":false},"crypto.WIN.address":{"deprecatedKeyName":"WIN","validationRegex":"^[T][a-zA-HJ-NP-Z0-9]{33}$","deprecated":false},"crypto.NPXS.address":{"deprecatedKeyName":"NPXS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TRIBE.address":{"deprecatedKeyName":"TRIBE","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MAID.address":{"deprecatedKeyName":"MAID","validationRegex":"^(bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39}$","deprecated":false},"crypto.ASD.address":{"deprecatedKeyName":"ASD","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CUNI.address":{"deprecatedKeyName":"CUNI","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CELO.address":{"deprecatedKeyName":"CELO","validationRegex":null,"deprecated":false},"crypto.DENT.address":{"deprecatedKeyName":"DENT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SNT.address":{"deprecatedKeyName":"SNT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FEG.version.ERC20.address":{"deprecatedKeyName":"FEG_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FEG.version.HRC20.address":{"deprecatedKeyName":"FEG_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SKL.address":{"deprecatedKeyName":"SKL","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ALUSD.address":{"deprecatedKeyName":"ALUSD","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MIR.version.ERC20.address":{"deprecatedKeyName":"MIR_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MIR.version.BEP20.address":{"deprecatedKeyName":"MIR_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.GLM.address":{"deprecatedKeyName":"GLM","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.PAXG.version.ERC20.address":{"deprecatedKeyName":"PAXG_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.PAXG.version.HRC20.address":{"deprecatedKeyName":"PAXG_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CFX.address":{"deprecatedKeyName":"CFX","validationRegex":null,"deprecated":false},"crypto.UOS.address":{"deprecatedKeyName":"UOS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SVCS.address":{"deprecatedKeyName":"SVCS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.REEF.version.ERC20.address":{"deprecatedKeyName":"REEF_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.REEF.version.BEP20.address":{"deprecatedKeyName":"REEF_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.REEF.version.HRC20.address":{"deprecatedKeyName":"REEF_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.GNO.address":{"deprecatedKeyName":"GNO","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.USDP.address":{"deprecatedKeyName":"USDP","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KAVA.address":{"deprecatedKeyName":"KAVA","validationRegex":null,"deprecated":false},"crypto.ALCX.address":{"deprecatedKeyName":"ALCX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.EWT.address":{"deprecatedKeyName":"EWT","validationRegex":null,"deprecated":false},"crypto.TON.address":{"deprecatedKeyName":"TON","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.RLC.address":{"deprecatedKeyName":"RLC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AXS.address":{"deprecatedKeyName":"AXS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AUDIO.address":{"deprecatedKeyName":"AUDIO","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.XVS.address":{"deprecatedKeyName":"XVS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BAND.version.ERC20.address":{"deprecatedKeyName":"BAND_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BAND.version.FANTOM.address":{"deprecatedKeyName":"BAND_FANTOM","validationRegex":null,"deprecated":false},"crypto.NMR.address":{"deprecatedKeyName":"NMR","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.INJ.version.ERC20.address":{"deprecatedKeyName":"INJ_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.INJ.version.BEP20.address":{"deprecatedKeyName":"INJ_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.WAXP.address":{"deprecatedKeyName":"WAXP","validationRegex":null,"deprecated":false},"crypto.UQC.address":{"deprecatedKeyName":"UQC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.IOTX.address":{"deprecatedKeyName":"IOTX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FUN.address":{"deprecatedKeyName":"FUN","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.OCEAN.address":{"deprecatedKeyName":"OCEAN","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SAND.version.ERC20.address":{"deprecatedKeyName":"SAND_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SAND.version.HRC20.address":{"deprecatedKeyName":"SAND_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CTSI.version.ERC20.address":{"deprecatedKeyName":"CTSI_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CTSI.version.BEP20.address":{"deprecatedKeyName":"CTSI_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CTSI.version.MATIC.address":{"deprecatedKeyName":"CTSI_MATIC","validationRegex":null,"deprecated":false},"crypto.RAY.address":{"deprecatedKeyName":"RAY","validationRegex":null,"deprecated":false},"crypto.ANC.version.TERRA.address":{"deprecatedKeyName":"ANC_TERRA","validationRegex":null,"deprecated":false},"crypto.ANC.version.ERC20.address":{"deprecatedKeyName":"ANC_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.IQ.version.ERC20.address":{"deprecatedKeyName":"IQ_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.IQ.version.BEP20.address":{"deprecatedKeyName":"IQ_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.IQ.version.MATIC.address":{"deprecatedKeyName":"IQ_MATIC","validationRegex":null,"deprecated":false},"crypto.SUSD.version.ERC20.address":{"deprecatedKeyName":"SUSD_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SUSD.version.FANTOM.address":{"deprecatedKeyName":"SUSD_FANTOM","validationRegex":null,"deprecated":false},"crypto.KLV.address":{"deprecatedKeyName":"KLV","validationRegex":"^[T][a-zA-HJ-NP-Z0-9]{33}$","deprecated":false},"crypto.BTCST.address":{"deprecatedKeyName":"BTCST","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TLM.address":{"deprecatedKeyName":"TLM","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AKT.address":{"deprecatedKeyName":"AKT","validationRegex":null,"deprecated":false},"crypto.STMX.address":{"deprecatedKeyName":"STMX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.PROM.address":{"deprecatedKeyName":"PROM","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.XPRT.address":{"deprecatedKeyName":"XPRT","validationRegex":null,"deprecated":false},"crypto.SRM.version.ERC20.address":{"deprecatedKeyName":"SRM_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SRM.version.SOLANA.address":{"deprecatedKeyName":"SRM_SOLANA","validationRegex":null,"deprecated":false},"crypto.RPL.address":{"deprecatedKeyName":"RPL","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AGIX.address":{"deprecatedKeyName":"AGIX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CELR.address":{"deprecatedKeyName":"CELR","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FET.address":{"deprecatedKeyName":"FET","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.OXT.address":{"deprecatedKeyName":"OXT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ARDR.address":{"deprecatedKeyName":"ARDR","validationRegex":null,"deprecated":false},"crypto.MATH.address":{"deprecatedKeyName":"MATH","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.10SET.address":{"deprecatedKeyName":"10SET","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.POLY.address":{"deprecatedKeyName":"POLY","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.GUSD.address":{"deprecatedKeyName":"GUSD","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.NKN.address":{"deprecatedKeyName":"NKN","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CVC.address":{"deprecatedKeyName":"CVC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.GTC.address":{"deprecatedKeyName":"GTC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.STEEM.address":{"deprecatedKeyName":"STEEM","validationRegex":null,"deprecated":false},"crypto.ORN.address":{"deprecatedKeyName":"ORN","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KEEP.version.ERC20.address":{"deprecatedKeyName":"KEEP_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KEEP.version.HRC20.address":{"deprecatedKeyName":"KEEP_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.HXRO.address":{"deprecatedKeyName":"HXRO","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ORBS.address":{"deprecatedKeyName":"ORBS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ALPHA.version.ERC20.address":{"deprecatedKeyName":"ALPHA_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ALPHA.version.BEP20.address":{"deprecatedKeyName":"ALPHA_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.DODO.version.ERC20.address":{"deprecatedKeyName":"DODO_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.DODO.version.BEP20.address":{"deprecatedKeyName":"DODO_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.OGN.address":{"deprecatedKeyName":"OGN","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KNCL.version.ERC20.address":{"deprecatedKeyName":"KNCL_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KNCL.version.FANTOM.address":{"deprecatedKeyName":"KNCL_FANTOM","validationRegex":null,"deprecated":false},"crypto.KNCL.version.HRC20.address":{"deprecatedKeyName":"KNCL_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MED.address":{"deprecatedKeyName":"MED","validationRegex":null,"deprecated":false},"crypto.XAUT.address":{"deprecatedKeyName":"XAUT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.VLX.address":{"deprecatedKeyName":"VLX","validationRegex":null,"deprecated":false},"crypto.PHA.address":{"deprecatedKeyName":"PHA","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KOBE.address":{"deprecatedKeyName":"KOBE","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.PERP.address":{"deprecatedKeyName":"PERP","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.XHV.address":{"deprecatedKeyName":"XHV","validationRegex":null,"deprecated":false},"crypto.META.address":{"deprecatedKeyName":"META","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SEUR.address":{"deprecatedKeyName":"SEUR","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MONA.address":{"deprecatedKeyName":"MONA","validationRegex":null,"deprecated":false},"crypto.ANT.address":{"deprecatedKeyName":"ANT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.HYDRA.address":{"deprecatedKeyName":"HYDRA","validationRegex":null,"deprecated":false},"crypto.ZKS.address":{"deprecatedKeyName":"ZKS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SXP.version.ERC20.address":{"deprecatedKeyName":"SXP_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SXP.version.BEP20.address":{"deprecatedKeyName":"SXP_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SXP.version.HRC20.address":{"deprecatedKeyName":"SXP_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CSPR.address":{"deprecatedKeyName":"CSPR","validationRegex":null,"deprecated":false},"crypto.MTL.address":{"deprecatedKeyName":"MTL","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.NU.address":{"deprecatedKeyName":"NU","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ZMT.address":{"deprecatedKeyName":"ZMT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.LOC.address":{"deprecatedKeyName":"LOC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TKO.address":{"deprecatedKeyName":"TKO","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ETN.address":{"deprecatedKeyName":"ETN","validationRegex":null,"deprecated":false},"crypto.UBT.version.ERC20.address":{"deprecatedKeyName":"UBT_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.UBT.version.MATIC.address":{"deprecatedKeyName":"UBT_MATIC","validationRegex":null,"deprecated":false},"crypto.EXRD.address":{"deprecatedKeyName":"EXRD","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.NMX.address":{"deprecatedKeyName":"NMX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.RIF.address":{"deprecatedKeyName":"RIF","validationRegex":null,"deprecated":false},"crypto.STORJ.version.ERC20.address":{"deprecatedKeyName":"STORJ_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.STORJ.version.HRC20.address":{"deprecatedKeyName":"STORJ_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AVA.address":{"deprecatedKeyName":"AVA","validationRegex":"^(bnb|tbnb)[a-zA-HJ-NP-Z0-9]{39}$","deprecated":false},"crypto.DPI.version.ERC20.address":{"deprecatedKeyName":"DPI_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.DPI.version.MATIC.address":{"deprecatedKeyName":"DPI_MATIC","validationRegex":null,"deprecated":false}}}')},114698:e=>{"use strict";e.exports=JSON.parse('{"version":"0.4.0","networks":{"1":{"contracts":{"UNSRegistry":{"address":"0x049aba7510f45BA5b64ea9E658E342F904DB358D","implementation":"0xa715562307AA8AEDCba976b3793b3337F371c14a","legacyAddresses":[],"deploymentBlock":"0xd62e9d","forwarder":"0x049aba7510f45BA5b64ea9E658E342F904DB358D"},"CNSRegistry":{"address":"0xD1E5b0FF1287aA9f9A268759062E4Ab08b9Dacbe","legacyAddresses":[],"deploymentBlock":"0x8a958b","forwarder":"0x97B0E89fC1B7eD4A8B237D9d8Fcce9b234f25A37"},"MintingManager":{"address":"0x2a7084870bB724175a3C96Da8FaA55128fa3E19D","implementation":"0x8caAeaD19aab5f54C94BB9F4be32e200E54AC8D7","legacyAddresses":[],"deploymentBlock":"0xc2fee0","forwarder":"0xb970fbCF52cd8111c76c379D4f2FE12E7f8AE7fb"},"ProxyAdmin":{"address":"0xAA16DA78110D9A9742c760a1a064F28654Ab93de","legacyAddresses":[],"deploymentBlock":"0xc2fedc"},"SignatureController":{"address":"0x82EF94294C95aD0930055f31e53A34509227c5f7","legacyAddresses":[],"deploymentBlock":"0x8a95a6"},"MintingController":{"address":"0xb0EE56339C3253361730F50c08d3d7817ecD60Ca","legacyAddresses":[],"deploymentBlock":"0x8a95aa","deprecated":true},"WhitelistedMinter":{"address":"0xd3fF3377b0ceade1303dAF9Db04068ef8a650757","legacyAddresses":[],"deploymentBlock":"0xa76ad3","deprecated":true},"URIPrefixController":{"address":"0x09B091492759737C03da9dB7eDF1CD6BCC3A9d91","legacyAddresses":[],"deploymentBlock":"0x8a95ae","deprecated":true},"DomainZoneController":{"address":"0xeA70777e28E00E81f58b8921fC47F78B8a72eFE7","legacyAddresses":[],"deploymentBlock":"0x98ca20","deprecated":true},"Resolver":{"address":"0xb66DcE2DA6afAAa98F2013446dBCB0f4B0ab2842","legacyAddresses":["0xa1cac442be6673c49f8e74ffc7c4fd746f3cbd0d","0x878bc2f3f717766ab69c0a5f9a6144931e61aed3"],"deploymentBlock":"0x960844","forwarder":"0x486eb10E4F48C038513ECAf11585Ca2779768CF2"},"ProxyReader":{"address":"0x1BDc0fD4fbABeed3E611fd6195fCd5d41dcEF393","legacyAddresses":["0x58034A288D2E56B661c9056A0C27273E5460B63c","0xc3C2BAB5e3e52DBF311b2aAcEf2e40344f19494E","0xfEe4D4F0aDFF8D84c12170306507554bC7045878","0xa6E7cEf2EDDEA66352Fd68E5915b60BDbb7309f5","0x7ea9Ee21077F84339eDa9C80048ec6db678642B1"],"deploymentBlock":"0xde71cd"},"TwitterValidationOperator":{"address":"0x2F659766E3D08561CA3408FbAba7C0749ab2c402","legacyAddresses":["0xbb486C6E9cF1faA86a6E3eAAFE2e5665C0507855"],"deploymentBlock":"0xc300b5"},"FreeMinter":{"address":"0x1fC985cAc641ED5846b631f96F35d9b48Bc3b834","legacyAddresses":[],"deploymentBlock":"0xacc390","deprecated":true},"MintableERC721Predicate":{"address":"0x932532aA4c0174b8453839A6E44eE09Cc615F2b7","legacyAddresses":[],"deploymentBlock":"0xa3cf69"},"RootChainManager":{"address":"0xA0c68C638235ee32657e8f720a23ceC1bFc77C77","legacyAddresses":[],"deploymentBlock":"0xa3cf4d"}}},"4":{"contracts":{"UNSRegistry":{"address":"0x7fb83000B8eD59D3eAD22f0D584Df3a85fBC0086","implementation":"0xc479D7A65243f7Eb1641F06a6C04E5F06cb5c4F7","legacyAddresses":[],"deploymentBlock":"0x85e628","forwarder":"0x7fb83000B8eD59D3eAD22f0D584Df3a85fBC0086"},"CNSRegistry":{"address":"0xAad76bea7CFEc82927239415BB18D2e93518ecBB","legacyAddresses":[],"deploymentBlock":"0x7232bc","forwarder":"0xdf5CC97216785398D5C77348e68fc9461108f85d"},"MintingManager":{"address":"0xdAAf99A920D31F4f5720e4667b12b24e54A03070","implementation":"0x38Fa95a0AC0E59D6e2845eFADBc17aF0FF9c7089","legacyAddresses":[],"deploymentBlock":"0x85e629","forwarder":"0xfB13e29C4D31a48B4Cd61131Cf3b681416e11681"},"ProxyAdmin":{"address":"0xaf9815005A208d1460b6fC60B4f90B9f2185E88c","legacyAddresses":[],"deploymentBlock":"0x85e627"},"SignatureController":{"address":"0x66a5e3e2C27B4ce4F46BBd975270BE154748D164","legacyAddresses":[],"deploymentBlock":"0x7232be"},"MintingController":{"address":"0x51765307AeB3Df2E647014a2C501d5324212467c","legacyAddresses":[],"deploymentBlock":"0x7232bf","deprecated":true},"WhitelistedMinter":{"address":"0xbcB32f13f90978a9e059E8Cb40FaA9e6619d98e7","legacyAddresses":[],"deploymentBlock":"0x7232c6","deprecated":true},"URIPrefixController":{"address":"0xe1d2e4B9f0518CA5c803073C3dFa886470627237","legacyAddresses":[],"deploymentBlock":"0x7232c0","deprecated":true},"DomainZoneController":{"address":"0x6f8F96A566663C1d4fEe70edD37E9b62Fe39dE5D","legacyAddresses":[],"deploymentBlock":"0x7232c2","deprecated":true},"Resolver":{"address":"0x95AE1515367aa64C462c71e87157771165B1287A","legacyAddresses":[],"deploymentBlock":"0x7232cf","forwarder":"0xE172D8557d6F342b1b2976dE784F6Dff6ABC0a37"},"ProxyReader":{"address":"0xE6729D224D00b3dd4FC731C4Ee3274E35Da06578","legacyAddresses":["0x299974AeD8911bcbd2C61262605b89F591a53E83","0x9F19473F6a98a715176291c930558E1954fd3D1e","0x3A2e74CF832cbA3d77E72708d55370119E4323a6"],"deploymentBlock":"0x8dc79a"},"TwitterValidationOperator":{"address":"0x9ea4A63184ebE9CBA55CD1af473D98075Aa02b4C","legacyAddresses":["0x1CB337b3b208dc29a6AcE8d11Bb591b66c5Dd83d"],"deploymentBlock":"0x86935e"},"FreeMinter":{"address":"0x84214215904cDEbA9044ECf95F3eBF009185AAf4","legacyAddresses":[],"deploymentBlock":"0x740d93","deprecated":true}}},"5":{"contracts":{"UNSRegistry":{"address":"0x070e83FCed225184E67c86302493ffFCDB953f71","implementation":"0x4473e84898E3F58feEFb7529dfF9E83Ff26CCae9","legacyAddresses":[],"deploymentBlock":"0x5b57ea","forwarder":"0x070e83FCed225184E67c86302493ffFCDB953f71"},"CNSRegistry":{"address":"0x801452cFAC27e79a11c6b185986fdE09e8637589","legacyAddresses":[],"deploymentBlock":"0x5b57d7","forwarder":"0x00443017FFaa4C840Caf5Dc7d3CB59147f363080"},"MintingManager":{"address":"0x9ee42D3EB042e06F8Cd241890C4fA0d51e4DA345","implementation":"0xFB11410f3067BB6Db61bC335f0de23bE87A1767e","legacyAddresses":[],"deploymentBlock":"0x5b57ec","forwarder":"0x7F9F48cF94C69ce91D4b442DA186F31118ac0185"},"ProxyAdmin":{"address":"0xf4906E210523F9dA79E33811A44EE000441F4E04","legacyAddresses":[],"deploymentBlock":"0x5b57e8"},"SignatureController":{"address":"0x5199dAE4B24B987ba18FcE1b64664D1B798d372B","legacyAddresses":[],"deploymentBlock":"0x5b57d8"},"MintingController":{"address":"0xCEC41677be322049cC885c0DAe2fE0D52CA195ca","legacyAddresses":[],"deploymentBlock":"0x5b57d9","deprecated":true},"WhitelistedMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"URIPrefixController":{"address":"0x29465e3d2daA588E62375977bCe9b3f51406a794","legacyAddresses":[],"deploymentBlock":"0x5b57da","deprecated":true},"DomainZoneController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"Resolver":{"address":"0x0555344A5F440Bd1d8cb6B42db46c5e5D4070437","legacyAddresses":[],"deploymentBlock":"0x5b57dc","forwarder":"0xFCc1A95B7287Ae7a8B7cA813F12991dF5714d4C7"},"ProxyReader":{"address":"0xE3b961856C417d081a02cBa0161a051268F52677","legacyAddresses":["0x9A70ff906D422C2FD0F7B94244D6b36DB62Ee982","0xFc5f608149f4D9e2Ed0733efFe9DD57ee24BCF68"],"deploymentBlock":"0x65bdfe"},"TwitterValidationOperator":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"FreeMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"MintableERC721Predicate":{"address":"0x56E14C4C1748a818a5564D33cF774c59EB3eDF59","legacyAddresses":[],"deploymentBlock":"0x2fc240"},"RootChainManager":{"address":"0xBbD7cBFA79faee899Eaf900F13C9065bF03B1A74","legacyAddresses":[],"deploymentBlock":"0x2dc9b9"}}},"137":{"contracts":{"UNSRegistry":{"address":"0xa9a6A3626993D487d2Dbda3173cf58cA1a9D9e9f","legacyAddresses":[],"deploymentBlock":"0x019d6188","implementation":"0x5442953b0BFFf69FC945f5f1387cbFD2e2673447","forwarder":"0xa9a6A3626993D487d2Dbda3173cf58cA1a9D9e9f"},"CNSRegistry":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","forwarder":"0x0000000000000000000000000000000000000000"},"MintingManager":{"address":"0x7be83293BeeDc9Eba1bd76c66A65F10F3efaeC26","legacyAddresses":[],"deploymentBlock":"0x01272f41","implementation":"0xBb45a6E10224Aa36EAcd812205F3763D353e9783","forwarder":"0xC37d3c4326ab0E1D2b9D8b916bBdf5715f780fcF"},"ProxyAdmin":{"address":"0xe1D668052D52388F52b90f4d1798DB2b04bC3b88","legacyAddresses":[],"deploymentBlock":"0x01272d15"},"SignatureController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"MintingController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"WhitelistedMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"URIPrefixController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"DomainZoneController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"Resolver":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","forwarder":"0x0000000000000000000000000000000000000000"},"ProxyReader":{"address":"0x3E67b8c702a1292d1CEb025494C84367fcb12b45","legacyAddresses":["0x423F2531bd5d3C3D4EF7C318c2D1d9BEDE67c680","0xA3f32c8cd786dc089Bd1fC175F2707223aeE5d00"],"deploymentBlock":"0x019d61a9"},"TwitterValidationOperator":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"FreeMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"MintableERC721Predicate":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"RootChainManager":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"}}},"1337":{"contracts":{"UNSRegistry":{"address":"0x58a175BEbc8ec21A94ea63Aa5a28743945940EE6","legacyAddresses":[],"deploymentBlock":"0x0d","implementation":"0xe0aFC4e9E03e4aa67257Df7A2Eca77454309789D","forwarder":"0x58a175BEbc8ec21A94ea63Aa5a28743945940EE6"},"CNSRegistry":{"address":"0xC58206842E4030a3B2CaBC78780Ae7635173C533","legacyAddresses":[],"deploymentBlock":"0x01","forwarder":"0xAc52F68f31577E44aE0C7E95A42dC9eb574B9383"},"MintingManager":{"address":"0x27935e7e85db3c4e7885eB828B9e889BA69a4e7f","legacyAddresses":[],"deploymentBlock":"0x0f","implementation":"0xa1A2114B0C4bDF9AEe05fdd80801e6267639FAd9","forwarder":"0xC20631145b77a58018E2b10f2282Dd048E12fC81"},"ProxyAdmin":{"address":"0xbE5dEAC45dd1ca4ee18Dc2D585D84D3d3CB82B0D","legacyAddresses":[],"deploymentBlock":"0x01"},"SignatureController":{"address":"0x7bB6Cd9be29fab783c0b494A06FED8b2E2596B7a","legacyAddresses":[],"deploymentBlock":"0x02"},"MintingController":{"address":"0x4a3C194eB88966178bfDD81744ddDafED611B830","legacyAddresses":[],"deploymentBlock":"0x03","deprecated":true},"WhitelistedMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"URIPrefixController":{"address":"0x4872CC1be60A9DB9c880A0A437Da7a6AF134F08f","legacyAddresses":[],"deploymentBlock":"0x04","deprecated":true},"DomainZoneController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"Resolver":{"address":"0xF8C26340C1eAeA6c7fF1760B25005e1306953572","legacyAddresses":[],"deploymentBlock":"0x08","forwarder":"0x11dD97b7Ca847DfB6504e61B7B9Eb30F55E554a0"},"ProxyReader":{"address":"0x4e44E79e0cEc05D9e62e952B2088c02A3C450aeC","legacyAddresses":[],"deploymentBlock":"0x14"},"TwitterValidationOperator":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"FreeMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"MintableERC721Predicate":{"address":"0x7c3c91245769c8B7450aD522792deC4bd4bf797f","legacyAddresses":[],"deploymentBlock":"0x1b"},"RootChainManager":{"address":"0x2f5e6eed50C839835BD2873d428E1683793Ad09D","legacyAddresses":[],"deploymentBlock":"0x1d"}}},"80001":{"contracts":{"UNSRegistry":{"address":"0x2a93C52E7B6E7054870758e15A1446E769EdfB93","legacyAddresses":[],"deploymentBlock":"0x0189f713","implementation":"0xAc1a1F2136BfDe3a353a95C0676Cd0d55f311ee3","forwarder":"0x2a93C52E7B6E7054870758e15A1446E769EdfB93"},"CNSRegistry":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","forwarder":"0x0000000000000000000000000000000000000000"},"MintingManager":{"address":"0x428189346bb3CC52f031A1092fd47C919AC30A9f","legacyAddresses":[],"deploymentBlock":"0x01213f4a","implementation":"0xCC17E698bA21bae4277579F22cA51135AaF00777","forwarder":"0xEf3a491A8750BEC2Dff5339CF6Df94436d432C4d"},"ProxyAdmin":{"address":"0x460d63117c7Ab1624b7474C45BF46eC6702f57ce","legacyAddresses":[],"deploymentBlock":"0x01213b22"},"SignatureController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"MintingController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"WhitelistedMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"URIPrefixController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"DomainZoneController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"Resolver":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","forwarder":"0x0000000000000000000000000000000000000000"},"ProxyReader":{"address":"0x6fe7c857C1B0E54492C8762f27e0a45CA7ff264B","legacyAddresses":["0xbd9e01F6513E7C05f71Bf21d419a3bDF1EA9104b","0x332A8191905fA8E6eeA7350B5799F225B8ed30a9"],"deploymentBlock":"0x0189f72d"},"TwitterValidationOperator":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"FreeMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"MintableERC721Predicate":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"RootChainManager":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"}}}}}')},603219:e=>{"use strict";e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},62951:e=>{"use strict";e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},264589:e=>{"use strict";e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},323241:e=>{"use strict";e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},1636:e=>{"use strict";e.exports={rE:"6.6.1"}},415579:e=>{"use strict";e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}}]); \ No newline at end of file +`;var zD={lineNumberColor:"#6272a4",lineNumberBgColor:"#282a36",backgroundColor:"#282a36",textColor:"#f8f8f2",substringColor:"#f1fa8c",keywordColor:"#ff79c6",attributeColor:"#50fa7b",selectorTagColor:"#8be9fd",docTagColor:"#f1fa8c",nameColor:"#66d9ef",builtInColor:"#50fa7b",literalColor:"#FF79C6",bulletColor:"#8BE9FD",codeColor:"#50FA7B",additionColor:"#f1fa8c",regexpColor:"#F1FA8C",symbolColor:"#F1FA8C",variableColor:"#F8F8F2",templateVariableColor:"#FF79C6",linkColor:"#00bcd4",selectorAttributeColor:"#FF79C6",selectorPseudoColor:"#FF79C6",typeColor:"#8BE9FD",stringColor:"#F1FA8C",selectorIdColor:"#50FA7B",selectorClassColor:"#50FA7B",quoteColor:"#E9F284",templateTagColor:"#FF79C6",deletionColor:"#FF79C6",titleColor:"#ff555580",sectionColor:"#F8F8F2",commentColor:"#6272A4",metaKeywordColor:"#50FA7B",metaColor:"#50FA7B",functionColor:"#50FA7B",numberColor:"#bd93f9"},HD="https://platform.twitter.com/widgets.js",VD="createTweet",KD=function(e){var t=i.useRef(null),n=i.useState(!0),o=n[0],a=n[1];return i.useEffect((function(){var n=!0;return r(62491)(HD,"twitter-embed",(function(){if(window.twttr){if(n){if(!window.twttr.widgets[VD])return void console.error("Method "+VD+" is not present anymore in twttr.widget api");window.twttr.widgets[VD](e.tweetId,null==t?void 0:t.current,e.options).then((function(t){a(!1),e.onLoad&&e.onLoad(t)}))}}else console.error("Failure to load window.twttr, aborting load")})),function(){n=!1}}),[]),i.createElement(i.Fragment,null,o&&i.createElement(i.Fragment,null,e.placeholder),i.createElement("div",{ref:t}))},GD=r(796710),qD=r(498957),QD=r.n(qD);const WD={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let JD;const YD=new Uint8Array(16);function ZD(){if(!JD&&(JD="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!JD))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return JD(YD)}var $D=r(338823);const XD=function(e,t,r){if(WD.randomUUID&&!t&&!e)return WD.randomUUID();const n=(e=e||{}).random||(e.rng||ZD)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return(0,$D.k)(n)};function eO(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function tO(e,t,r){return(t=eO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}r(369085);const nO=e=>(t,r,n)=>{const i=n.subscribe;n.subscribe=(e,t,r)=>{let o=e;if(t){const i=(null==r?void 0:r.equalityFn)||Object.is;let a=e(n.getState());o=r=>{const n=e(r);if(!i(a,n)){const e=a;t(a=n,e)}},(null==r?void 0:r.fireImmediately)&&t(a,a)}return i(o)};return e(t,r,n)};function iO(e,t){let r;try{r=e()}catch(i){return}const n={getItem:e=>{var n;const i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(n=r.getItem(e))?n:null;return o instanceof Promise?o.then(i):i(o)},setItem:(e,n)=>r.setItem(e,JSON.stringify(n,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)};return n}const oO=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then:e=>oO(e)(r),catch(e){return this}}}catch($R){return{then(e){return this},catch:t=>oO(t)($R)}}},aO=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(r,n,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,c=new Set;let u;try{u=o.getStorage()}catch(m){}if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...e)}),n,i);const l=oO(o.serialize),d=()=>{const e=o.partialize({...n()});let t;const r=l({state:e,version:o.version}).then((e=>u.setItem(o.name,e))).catch((e=>{t=e}));if(t)throw t;return r},f=i.setState;i.setState=(e,t)=>{f(e,t),d()};const h=e(((...e)=>{r(...e),d()}),n,i);let p;const g=()=>{var e;if(!u)return;a=!1,s.forEach((e=>e(n())));const t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,n()))||void 0;return oO(u.getItem.bind(u))(o.name).then((e=>{if(e)return o.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return p=o.merge(e,null!=(t=n())?t:h),r(p,!0),d()})).then((()=>{null==t||t(p,void 0),a=!0,c.forEach((e=>e(p)))})).catch((e=>{null==t||t(void 0,e)}))};return i.persist={setOptions:e=>{o={...o,...e},e.getStorage&&(u=e.getStorage())},clearStorage:()=>{null==u||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>g(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},g(),p||h})(e,t)):((e,t)=>(r,n,i)=>{let o={storage:iO((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,c=new Set;let u=o.storage;if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...e)}),n,i);const l=()=>{const e=o.partialize({...n()});return u.setItem(o.name,{state:e,version:o.version})},d=i.setState;i.setState=(e,t)=>{d(e,t),l()};const f=e(((...e)=>{r(...e),l()}),n,i);let h;i.getInitialState=()=>f;const p=()=>{var e,t;if(!u)return;a=!1,s.forEach((e=>{var t;return e(null!=(t=n())?t:f)}));const i=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=n())?e:f))||void 0;return oO(u.getItem.bind(u))(o.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return[!1,e.state];if(o.migrate)return[!0,o.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]})).then((e=>{var t;const[i,a]=e;if(h=o.merge(a,null!=(t=n())?t:f),r(h,!0),i)return l()})).then((()=>{null==i||i(h,void 0),h=n(),a=!0,c.forEach((e=>e(h)))})).catch((e=>{null==i||i(void 0,e)}))};return i.persist={setOptions:e=>{o={...o,...e},e.storage&&(u=e.storage)},clearStorage:()=>{null==u||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>p(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},o.skipHydration||p(),h||f})(e,t),sO=e=>{let t;const r=new Set,n=(e,n)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach((r=>r(t,e)))}},i=()=>t,o={setState:n,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},a=t=e(n,i,o);return o},cO=e=>e?sO(e):sO;const uO={getItem:e=>"",setItem:(e,t)=>{},removeItem:e=>{}};function lO({storage:e=uO,key:t="livepeer"}){return{getItem:async(r,n=null)=>{try{const i=await e.getItem(`${t}.${r}`);return i?JSON.parse(i):n}catch(ys){return console.warn(ys),n}},setItem:async(r,n)=>{if(null===n)await e.removeItem(`${t}.${r}`);else try{await e.setItem(`${t}.${r}`,JSON.stringify(n))}catch(i){console.error(i)}},removeItem:async r=>e.removeItem(`${t}.${r}`)}}class dO{constructor({provider:e,storage:t=lO({})}){this.store=cO(nO(aO((()=>({provider:e()})),{name:"livepeer-store",storage:iO((()=>t)),partialize:e=>({}),version:1}))),this.config={provider:e,storage:t},this.storage=t}get error(){return this.store.getState().error}get provider(){return this.store.getState().provider}get subscribe(){return this.store.subscribe}setState(e){const t="function"==typeof e?e(this.store.getState()):e;this.store.setState(t,!0)}clearState(){this.setState((e=>({...e,data:void 0,error:void 0})))}async destroy(){this.clearState(),this.store.destroy()}}let fO=null;function hO(e){const t=new dO(e);return fO=t,t}const pO=()=>{};function gO(e,{interval:t=1e3,onError:r=pO}={}){if("function"!=typeof e)throw new Error("argument is not function.");let n,i=!1,o=0,a=null;const s=async()=>{if(a){const t=a;a=null;try{i=!0,await e(...t)}catch(ys){r(ys)}finally{o=Date.now(),i=!1}}},c=async()=>{clearTimeout(n),n=setTimeout((()=>{i?c():s()}),t)};return(...e)=>{a=e;const r=Date.now()-oTO(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t))}function SO(e,t){return IO(e,t)}function IO(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((r=>!IO(e[r],t[r]))))}function kO(e,t){if(e===t)return e;const r=_O(e)&&_O(t);if(r||TO(e)&&TO(t)){const n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),o=i.length,a=r?[]:{};let s=0;for(let c=0;c{setTimeout(t,e)}))}function DO(e){jO(0).then(e)}function OO(e,t,r){return null!=r.isDataEqual&&r.isDataEqual(e,t)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?kO(e,t):t}const BO=console;const NO=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()};const i=n=>{t?e.push(n):DO((()=>{r(n)}))},o=()=>{const t=e;e=[],t.length&&DO((()=>{n((()=>{t.forEach((e=>{r(e)}))}))}))};return{batch:e=>{let r;t++;try{r=e()}finally{t--,t||o()}return r},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e}}}();class RO{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const LO=new class extends RO{constructor(){super(),this.setup=e=>{if(!yO&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},FO=["online","offline"];const UO=new class extends RO{constructor(){super(),this.setup=e=>{if(!yO&&window.addEventListener){const t=()=>e();return FO.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{FO.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function zO(e){return Math.min(1e3*2**e,3e4)}function HO(e){return"online"!==(null!=e?e:"online")||UO.isOnline()}class VO{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function KO(e){return e instanceof VO}function GO(e){let t,r,n,i=!1,o=0,a=!1;const s=new Promise(((e,t)=>{r=e,n=t})),c=()=>!LO.isFocused()||"always"!==e.networkMode&&!UO.isOnline(),u=n=>{a||(a=!0,null==e.onSuccess||e.onSuccess(n),null==t||t(),r(n))},l=r=>{a||(a=!0,null==e.onError||e.onError(r),null==t||t(),n(r))},d=()=>new Promise((r=>{t=e=>{const t=a||!c();return t&&r(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,a||null==e.onContinue||e.onContinue()})),f=()=>{if(a)return;let t;try{t=e.fn()}catch(ys){t=Promise.reject(ys)}Promise.resolve(t).then(u).catch((t=>{var r,n;if(a)return;const s=null!=(r=e.retry)?r:3,u=null!=(n=e.retryDelay)?n:zO,h="function"==typeof u?u(o,t):u,p=!0===s||"number"==typeof s&&o{if(c())return d()})).then((()=>{i?l(t):f()}))):l(t)}))};return HO(e.networkMode)?f():d().then(f),{promise:s,cancel:t=>{a||(l(new VO(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}class qO{destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.cacheTime)&&e>=0&&e!==1/0&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:yO?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class QO extends qO{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||BO,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const r=OO(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(bO).catch(bO):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,n;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);const o=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};s(a);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(s(c),null==(r=this.options.behavior)||r.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(n=c.fetchOptions)?void 0:n.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,r,n,i;(KO(e)&&e.silent||this.dispatch({type:"error",error:e}),KO(e))||(null==(t=(r=this.cache.config).onError)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=GO({fn:c.fetchFn,abort:null==o?void 0:o.abort.bind(o),onSuccess:e=>{var t,r,n,i;void 0!==e?(this.setData(e),null==(t=(r=this.cache.config).onSuccess)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):l(new Error(this.queryHash+" data is undefined"))},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var r,n;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:HO(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(n=e.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return KO(i)&&i.revert&&this.revertState?{...this.revertState}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),NO.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class WO extends RO{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var n;const i=t.queryKey,o=null!=(n=t.queryHash)?n:EO(i,t);let a=this.get(o);return a||(a=new QO({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){NO.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[r]=wO(e,t);return void 0===r.exact&&(r.exact=!0),this.queries.find((e=>AO(r,e)))}findAll(e,t){const[r]=wO(e,t);return Object.keys(r).length>0?this.queries.filter((e=>AO(r,e))):this.queries}notify(e){NO.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){NO.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){NO.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class JO extends qO{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||BO,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=GO({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var r,n,i,o,a,s,c,u;if(!t){var l,d,f,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(d=this.mutationCache.config).onMutate)?void 0:l.call(d,this.state.variables,this));const e=await(null==(f=(h=this.options).onMutate)?void 0:f.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const p=await e();return await(null==(r=(n=this.mutationCache.config).onSuccess)?void 0:r.call(n,p,this.state.variables,this.state.context,this)),await(null==(i=(o=this.options).onSuccess)?void 0:i.call(o,p,this.state.variables,this.state.context)),await(null==(a=(s=this.mutationCache.config).onSettled)?void 0:a.call(s,p,null,this.state.variables,this.state.context,this)),await(null==(c=(u=this.options).onSettled)?void 0:c.call(u,p,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:p}),p}catch(ys){try{var p,g,m,y,b,v,w,A;throw await(null==(p=(g=this.mutationCache.config).onError)?void 0:p.call(g,ys,this.state.variables,this.state.context,this)),await(null==(m=(y=this.options).onError)?void 0:m.call(y,ys,this.state.variables,this.state.context)),await(null==(b=(v=this.mutationCache.config).onSettled)?void 0:b.call(v,void 0,ys,this.state.variables,this.state.context,this)),await(null==(w=(A=this.options).onSettled)?void 0:w.call(A,void 0,ys,this.state.variables,this.state.context)),ys}finally{this.dispatch({type:"error",error:ys})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!HO(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),NO.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}class YO extends RO{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){const n=new JO({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){NO.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>CO(e,t)))}findAll(e){return this.mutations.filter((t=>CO(e,t)))}notify(e){NO.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return NO.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(bO)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function ZO(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,i,o,a;const s=null==(t=e.fetchOptions)||null==(r=t.meta)?void 0:r.refetchPage,c=null==(n=e.fetchOptions)||null==(i=n.meta)?void 0:i.fetchMore,u=null==c?void 0:c.pageParam,l="forward"===(null==c?void 0:c.direction),d="backward"===(null==c?void 0:c.direction),f=(null==(o=e.state.data)?void 0:o.pages)||[],h=(null==(a=e.state.data)?void 0:a.pageParams)||[];let p=h,g=!1;const m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,r,n)=>(p=n?[t,...p]:[...p,t],n?[r,...e]:[...e,r]),b=(t,r,n,i)=>{if(g)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:n,meta:e.options.meta};var a;a=o,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>{var t,r;return null!=(t=e.signal)&&t.aborted?g=!0:null==(r=e.signal)||r.addEventListener("abort",(()=>{g=!0})),e.signal}});const s=m(o),c=Promise.resolve(s).then((e=>y(t,n,e,i)));return c};let v;if(f.length)if(l){const t=void 0!==u,r=t?u:$O(e.options,f);v=b(f,t,r)}else if(d){const t=void 0!==u,r=t?u:XO(e.options,f);v=b(f,t,r,!0)}else{p=[];const t=void 0===e.options.getNextPageParam;v=!s||!f[0]||s(f[0],0,f)?b([],t,h[0]):Promise.resolve(y([],h[0],f[0]));for(let r=1;r{if(!s||!f[r]||s(f[r],r,f)){const i=t?h[r]:$O(e.options,n);return b(n,t,i)}return Promise.resolve(y(n,h[r],f[r]))}))}else v=b([]);return v.then((e=>({pages:e,pageParams:p})))}}}}function $O(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function XO(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}class eB{constructor(e={}){this.queryCache=e.queryCache||new WO,this.mutationCache=e.mutationCache||new YO,this.logger=e.logger||BO,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=LO.subscribe((()=>{LO.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=UO.subscribe((()=>{UO.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[r]=wO(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data}ensureQueryData(e,t,r){const n=vO(e,t,r),i=this.getQueryData(n.queryKey);return i?Promise.resolve(i):this.fetchQuery(n)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,r){const n=this.queryCache.find(e),i=function(e,t){return"function"==typeof e?e(t):e}(t,null==n?void 0:n.state.data);if(void 0===i)return;const o=vO(e),a=this.defaultQueryOptions(o);return this.queryCache.build(this,a).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return NO.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,r)]))))}getQueryState(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state}removeQueries(e,t){const[r]=wO(e,t),n=this.queryCache;NO.batch((()=>{n.findAll(r).forEach((e=>{n.remove(e)}))}))}resetQueries(e,t,r){const[n,i]=wO(e,t,r),o=this.queryCache,a={type:"active",...n};return NO.batch((()=>(o.findAll(n).forEach((e=>{e.reset()})),this.refetchQueries(a,i))))}cancelQueries(e,t,r){const[n,i={}]=wO(e,t,r);void 0===i.revert&&(i.revert=!0);const o=NO.batch((()=>this.queryCache.findAll(n).map((e=>e.cancel(i)))));return Promise.all(o).then(bO).catch(bO)}invalidateQueries(e,t,r){const[n,i]=wO(e,t,r);return NO.batch((()=>{var e,t;if(this.queryCache.findAll(n).forEach((e=>{e.invalidate()})),"none"===n.refetchType)return Promise.resolve();const r={...n,type:null!=(e=null!=(t=n.refetchType)?t:n.type)?e:"active"};return this.refetchQueries(r,i)}))}refetchQueries(e,t,r){const[n,i]=wO(e,t,r),o=NO.batch((()=>this.queryCache.findAll(n).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:n.refetchPage}})}))));let a=Promise.all(o).then(bO);return null!=i&&i.throwOnError||(a=a.catch(bO)),a}fetchQuery(e,t,r){const n=vO(e,t,r),i=this.defaultQueryOptions(n);void 0===i.retry&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(bO).catch(bO)}fetchInfiniteQuery(e,t,r){const n=vO(e,t,r);return n.behavior=ZO(),this.fetchQuery(n)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(bO).catch(bO)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const r=this.queryDefaults.find((t=>xO(e)===xO(t.queryKey)));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>SO(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const r=this.mutationDefaults.find((t=>xO(e)===xO(t.mutationKey)));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>SO(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=EO(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}function tB(e){return e.state.isPaused}function rB(e){return"success"===e.state.status}function nB(e,t={}){const r=[],n=[];if(!1!==t.dehydrateMutations){const n=t.shouldDehydrateMutation||tB;e.getMutationCache().getAll().forEach((e=>{n(e)&&r.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))}))}if(!1!==t.dehydrateQueries){const r=t.shouldDehydrateQuery||rB;e.getQueryCache().getAll().forEach((e=>{r(e)&&n.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))}))}return{mutations:r,queries:n}}function iB(e,t,r){if("object"!=typeof t||null===t)return;const n=e.getMutationCache(),i=e.getQueryCache(),o=t.mutations||[],a=t.queries||[];o.forEach((t=>{var i;n.build(e,{...null==r||null==(i=r.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)})),a.forEach((t=>{var n;const o=i.get(t.queryHash),a={...t.state,fetchStatus:"idle"};o?o.state.dataUpdatedAtr,s=o.buster!==n;a||s?t.removeClient():iB(e,o.clientState,i)}else t.removeClient()}catch(o){t.removeClient()}}(e).then((()=>{r||(t=function(e){const t=e.queryClient.getQueryCache().subscribe((t=>{aB(t.type)&&sB(e)})),r=e.queryClient.getMutationCache().subscribe((t=>{aB(t.type)&&sB(e)}));return()=>{t(),r()}}(e))}));return[()=>{r=!0,null==t||t()},n]}function uB(e){try{return JSON.parse(e)}catch($R){return{}}}function lB(e,t){return e.slice(0,t).join(".")||"."}function dB(e,t){const{length:r}=e;for(let n=0;nnew eB({defaultOptions:{queries:{cacheTime:864e5,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}});function pB({queryClient:e=hB(),...t}){const r=hO(t),n=t?.storage?(({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:r=1e3,serialize:n=JSON.stringify,deserialize:i=JSON.parse,retry:o})=>{if(e){const a=async r=>{try{return void await e.setItem(t,n(r))}catch(ys){return ys}};return{persistClient:gO((async e=>{let t=e,r=await a(t),n=0;for(;r&&t;)n++,t=await(null==o?void 0:o({persistedClient:t,error:r,errorCount:n})),t&&(r=await a(t))}),{interval:r}),restoreClient:async()=>{const r=await e.getItem(t);if(r)return i(r)},removeClient:()=>e.removeItem(t)}}return{persistClient:mO,restoreClient:()=>Promise.resolve(void 0),removeClient:mO}})({key:"livepeer.cache",storage:t.storage,serialize:fB,deserialize:uB}):void 0;return n&&cB({queryClient:e,persister:n,dehydrateOptions:{shouldDehydrateQuery:e=>0!==e.cacheTime}}),Object.assign(r,{queryClient:e})}function gB(e){var t=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return pB(function(e){for(var t=1;t{let t={};return e.forEach(((e,r)=>t[e]=r)),t})(bB),wB=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,AB=String.fromCharCode.bind(String),CB=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_"))),EB=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),xB=e=>{let t,r,n,i,o="";const a=e.length%3;for(let s=0;s255||(n=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,o+=bB[t>>18&63]+bB[t>>12&63]+bB[t>>6&63]+bB[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},SB="function"==typeof btoa?e=>btoa(e):mB?e=>Buffer.from(e,"binary").toString("base64"):xB,IB=mB?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?AB(192|t>>>6)+AB(128|63&t):AB(224|t>>>12&15)+AB(128|t>>>6&63)+AB(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return AB(240|t>>>18&7)+AB(128|t>>>12&63)+AB(128|t>>>6&63)+AB(128|63&t)},_B=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,TB=e=>e.replace(_B,kB),MB=mB?e=>Buffer.from(e,"utf8").toString("base64"):yB?e=>IB(yB.encode(e)):e=>SB(TB(e)),PB=(e,t=!1)=>t?CB(MB(e)):MB(e),jB=e=>{if(e=e.replace(/\s+/g,""),!wB.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,n,i="";for(let o=0;o>16&255):64===n?AB(t>>16&255,t>>8&255):AB(t>>16&255,t>>8&255,255&t);return i},DB=PB;var OB=r(961160),BB=r.n(OB);function NB(e){return NB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NB(e)}function RB(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).originalRequest=n,t.originalResponse=a,t.causingError=r,null!=r&&(e+=", caused by ".concat(r.toString())),null!=n){var s=n.getHeader("X-Request-ID")||"n/a",c=n.getMethod(),u=n.getURL(),l=a?a.getStatus():"n/a",d=a?a.getBody()||"":"n/a";e+=", originated from request (method: ".concat(c,", url: ").concat(u,", response code: ").concat(l,", response text: ").concat(d,", request id: ").concat(s,")")}return t.message=e,t}return t=o,r&&RB(t.prototype,r),n&&RB(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(UB(Error));const qB=GB;var QB=!1;function WB(e){QB&&console.log(e)}function JB(){JB=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new M(n||[]);return i(a,"_invoke",{value:I(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",h="suspendedYield",p="executing",g="completed",m={};function y(){}function b(){}function v(){}var w={};u(w,a,(function(){return this}));var A=Object.getPrototypeOf,C=A&&A(A(P([])));C&&C!==r&&n.call(C,a)&&(w=C);var E=v.prototype=y.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(i,o,a,s){var c=d(e[i],e,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==XB(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function I(t,r,n){var i=f;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=k(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:h,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function YB(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(ys){return void r(ys)}s.done?t(c):Promise.resolve(c).then(n,i)}function ZB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $B(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $B(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $B(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1)for(var n=0,i=["uploadUrl","uploadSize","uploadLengthDeferred"];n1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()})).catch((function(t){e._emitError(t)}))}else this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t,r=this,n=this._size,i=0;this._parallelUploads=[];var o=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,a=null!==(t=this.options.parallelUploadBoundaries)&&void 0!==t?t:function(e,t){for(var r=Math.floor(e/t),n=[],i=0;ithis._offsetBeforeRetry&&(this._retryAttempt=0),fN(e,this._retryAttempt,this.options))){var r=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout((function(){t.start()}),r))}if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,r){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,r)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length",1):t.setHeader("Upload-Length",this._size);var r,n=sN(this.options.metadata);""!==n&&t.setHeader("Upload-Metadata",n),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,r=this._addChunkToRequest(t)):r=this._sendRequest(t,null),r.then((function(r){if(cN(r.getStatus(),200)){var n=r.getHeader("Location");if(null!=n){if(e.url=pN(e.options.endpoint,n),WB("Created upload at ".concat(e.url)),"function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),0===e._size)return e._emitSuccess(),void e._source.close();e._saveUploadInUrlStorage().then((function(){e.options.uploadDataDuringCreation?e._handleUploadResponse(t,r):(e._offset=0,e._performUpload())}))}else e._emitHttpError(t,r,"tus: invalid or missing Location header")}else e._emitHttpError(t,r,"tus: unexpected response while creating upload")})).catch((function(r){e._emitHttpError(t,null,"tus: failed to create upload",r)}))}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then((function(r){var n=r.getStatus();if(!cN(n,200))return 423===n?void e._emitHttpError(t,r,"tus: upload is currently locked; retry later"):(cN(n,400)&&e._removeFromUrlStorage(),e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,r,"tus: unable to resume upload (new upload cannot be created without an endpoint)"));var i=parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(i))e._emitHttpError(t,r,"tus: invalid or missing offset value");else{var o=parseInt(r.getHeader("Upload-Length"),10);!Number.isNaN(o)||e.options.uploadLengthDeferred?("function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),e._saveUploadInUrlStorage().then((function(){if(i===o)return e._emitProgress(o,o),void e._emitSuccess();e._offset=i,e._performUpload()}))):e._emitHttpError(t,r,"tus: invalid or missing length value")}})).catch((function(r){e._emitHttpError(t,null,"tus: failed to resume upload",r)}))}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(e).then((function(r){cN(r.getStatus(),200)?t._handleUploadResponse(e,r):t._emitHttpError(e,r,"tus: unexpected response while uploading chunk")})).catch((function(r){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),r)})))}},{key:"_addChunkToRequest",value:function(e){var t=this,r=this._offset,n=this._offset+this.options.chunkSize;return e.setProgressHandler((function(e){t._emitProgress(r+e,t._size)})),e.setHeader("Content-Type","application/offset+octet-stream"),(n===1/0||n>this._size)&&!this.options.uploadLengthDeferred&&(n=this._size),this._source.slice(r,n).then((function(r){var n=r.value,i=r.done,o=n&&n.size?n.size:0;t.options.uploadLengthDeferred&&i&&(t._size=t._offset+o,e.setHeader("Upload-Length",t._size));var a=t._offset+o;return!t.options.uploadLengthDeferred&&i&&a!==t._size?Promise.reject(new Error("upload was configured with a size of ".concat(t._size," bytes, but the source is done after ").concat(a," bytes"))):null===n?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,n))}))}},{key:"_handleUploadResponse",value:function(e,t){var r=parseInt(t.getHeader("Upload-Offset"),10);if(Number.isNaN(r))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(r,this._size),this._emitChunkComplete(r-this._offset,r,this._size),this._offset=r,r===this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var r=uN(e,t,this.options);return this._req=r,r}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch((function(t){e._emitError(t)})),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||null!==this._urlStorageKey)return Promise.resolve();var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};return this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then((function(t){e._urlStorageKey=t}))}},{key:"_sendRequest",value:function(e){return lN(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],n=[{key:"terminate",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=uN("DELETE",t,r);return lN(n,null,r).then((function(e){if(204!==e.getStatus())throw new qB("tus: unexpected response while terminating upload",null,n,e)})).catch((function(i){if(i instanceof qB||(i=new qB("tus: failed to terminate upload",i,n,null)),!fN(i,0,r))throw i;var o=r.retryDelays[0],a=r.retryDelays.slice(1),s=tN(tN({},r),{},{retryDelays:a});return new Promise((function(e){return setTimeout(e,o)})).then((function(){return e.terminate(t,s)}))}))}}],r&&nN(t.prototype,r),n&&nN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function sN(e){return Object.entries(e).map((function(e){var t=ZB(e,2),r=t[0],n=t[1];return"".concat(r," ").concat(DB(String(n)))})).join(",")}function cN(e,t){return e>=t&&e=r.retryDelays.length||null==e.originalRequest)&&(r&&"function"==typeof r.onShouldRetry?r.onShouldRetry(e,t,r):hN(e))}function hN(e){var t,r=e.originalResponse?e.originalResponse.getStatus():0;return(!cN(r,400)||409===r||423===r)&&(t=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(t=!1),t)}function pN(e,t){return new(BB())(t,e).toString()}aN.defaultOptions=oN;const gN=aN;function mN(e){return mN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mN(e)}function yN(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null;return new Promise((function(r,n){e._xhr.onload=function(){r(new BN(e._xhr))},e._xhr.onerror=function(e){n(e)},e._xhr.send(t)}))}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),BN=function(){function e(t){TN(this,e),this._xhr=t}return PN(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}();const NN=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};function RN(e){return new Promise((function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var e=n.response;t(e)},n.onerror=function(e){r(e)},n.open("GET",e),n.send()}))}const LN=function(){return"undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)};function FN(e){return FN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},FN(e)}function UN(e,t){for(var r=0;r=this.size;return Promise.resolve({value:r,done:n})}},{key:"close",value:function(){}}],r&&UN(t.prototype,r),n&&UN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function VN(e){return VN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VN(e)}function KN(e,t){for(var r=0;rthis._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var r=0===qN(this._buffer);return this._done&&r?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}],r&&KN(t.prototype,r),n&&KN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function WN(e){return WN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WN(e)}function JN(){JN=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new M(n||[]);return i(a,"_invoke",{value:I(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",h="suspendedYield",p="executing",g="completed",m={};function y(){}function b(){}function v(){}var w={};u(w,a,(function(){return this}));var A=Object.getPrototypeOf,C=A&&A(A(P([])));C&&C!==r&&n.call(C,a)&&(w=C);var E=v.prototype=y.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(i,o,a,s){var c=d(e[i],e,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==WN(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function I(t,r,n){var i=f;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=k(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:h,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function YN(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(ys){return void r(ys)}s.done?t(c):Promise.resolve(c).then(n,i)}function ZN(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=aR(aR({},uR),t),i.call(this,e,t)}return t=o,n=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=aR(aR({},uR),t),gN.terminate(e,t)}}],(r=null)&&tR(t.prototype,r),n&&tR(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(gN),dR=window,fR=dR.XMLHttpRequest,hR=dR.Blob,pR=(fR&&hR&&hR.prototype.slice,r(574945)),gR=r.n(pR);class mR extends Error{constructor(e,t,r,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw new Error('"message" must be a nonempty string.');super(t),this.code=e,this.data=n,this.internal=r}}const yR={core:"@livepeer/core@1.9.2",react:"@livepeer/react@2.9.2",reactNative:"@livepeer/react-native@1.9.2"},bR={name:"Livepeer Studio",baseUrl:"https://livepeer.studio/api",webrtcIngestBaseUrl:"https://webrtc.livepeer.studio/webrtc"};class vR{constructor(e){this._config=e}getConfig(){return this._config}async _get(e,t){const r=await gR()(`${this._config.baseUrl}${e}`,{method:"GET",...t,headers:{...t?.headers,"x-core-sdk-version":yR.core,"x-react-sdk-version":yR.react,"x-react-native-sdk-version":yR.reactNative}});if(!r.ok)throw new mR(r.status,`Provider failed to get object from ${this._config.baseUrl}${e}, status code was ${r.status}`,await r.json());return r.json()}async _create(e,t){const r=await gR()(`${this._config.baseUrl}${e}`,{method:"POST",...t,...t?.json?{body:JSON.stringify(t.json)}:{},headers:{...t?.json?{"content-type":"application/json"}:{},...t?.headers,"x-core-sdk-version":yR.core,"x-react-sdk-version":yR.react,"x-react-native-sdk-version":yR.reactNative}});if(!r.ok)throw new mR(r.status,"Provider failed to create object",await r.json());return r.json()}async _update(e,t){const r=await gR()(`${this._config.baseUrl}${e}`,{method:"PATCH",...t,...t?.json?{body:JSON.stringify(t.json)}:{},headers:{...t?.json?{"content-type":"application/json"}:{},...t?.headers,"x-core-sdk-version":yR.core,"x-react-sdk-version":yR.react,"x-react-native-sdk-version":yR.reactNative}});if(!r.ok)throw new mR(r.status,"Provider failed to update object",await r.json())}}class wR extends vR{constructor(e){super(e),this._defaultHeaders={...e.apiKey?{Authorization:`Bearer ${e.apiKey}`}:{},...e.origin?{Origin:e.origin}:{}}}async createStream(e){const t=this._getPlaybackPolicyMapped(e.playbackPolicy),r=await this._create("/stream",{json:{...e,...t?{playbackPolicy:t}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders});return this._mapToStream(r)}async updateStream(e){const t="string"==typeof e?e:e.streamId,r=this._getPlaybackPolicyMapped(e.playbackPolicy);return await this._update(`/stream/${t}`,{json:{...void 0!==e?.record?{record:Boolean(e.record)}:{},...void 0!==e?.suspend?{suspended:Boolean(e.suspend)}:{},...void 0!==e?.multistream?.targets?{multistream:{targets:e.multistream.targets.map((e=>void 0===e.id||"url"in(e.spec??{})?{...e,id:void 0}:{...e,spec:void 0}))}}:{},...r?{playbackPolicy:r}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders}),this.getStream(t)}async getStream(e){const t=await this._get(`/stream/${"string"==typeof e?e:e.streamId}`,{headers:this._defaultHeaders});return this._mapToStream(t)}async getStreamSession(e){return await this._get(`/session/${"string"==typeof e?e:e.streamSessionId}`,{headers:this._defaultHeaders})}async getStreamSessions(e){return await this._get(`/stream/${"string"==typeof e?e:e.streamId}/sessions`,{headers:this._defaultHeaders})}async createClip(e){return(await this._create("/clip",{json:{playbackId:e.playbackId,startTime:e.startTime,endTime:e.endTime,...e.name?{name:e.name}:{},...e.sessionId?{sessionId:e.sessionId}:{}},headers:this._defaultHeaders})).asset}async createAsset(e){const{sources:t,onProgress:r,noWait:n,chunkSize:i}=e;let o=t.map((e=>({name:e.name,progress:0,assetId:null,phase:e?.url?"waiting":"uploading"})));const a=await Promise.allSettled(t.map((async(e,t)=>{const n=this._getPlaybackPolicyMapped(e.playbackPolicy);if(e.url){const t=await this._create("/asset/upload/url",{json:{name:e.name,url:e.url,storage:e?.storage?.ipfs?{ipfs:{spec:{nftMetadata:e?.storage?.metadata??{},...e?.storage?.metadataTemplate?{nftMetadataTemplate:e.storage.metadataTemplate}:{}}}}:void 0,...n?{playbackPolicy:n}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders});return t?.asset?.id}{const a=await this._create("/asset/request-upload",{json:{name:e.name,storage:e?.storage?.ipfs?{ipfs:{spec:{nftMetadata:e?.storage?.metadata??{},...e?.storage?.metadataTemplate?{nftMetadataTemplate:e.storage.metadataTemplate}:{}}}}:void 0,...n?{playbackPolicy:n}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders}),{tusEndpoint:s,asset:{id:c}}=a;return await new Promise(((n,a)=>{const u=new lR(e.file,{endpoint:s,metadata:{id:c},...i?{chunkSize:i}:"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()?null:{chunkSize:104857600},onError:e=>{console.log("Failed because: ",e)},onProgress(n,i){const a=n/i,s={name:e.name,assetId:c,progress:a,phase:"uploading"},u=[...o];u[t]=s,o=u,r?.(o)},onSuccess(){n()}});u.findPreviousUploads().then((e=>{e?.length>0&&e[0]&&u.resumeFromPreviousUpload(e[0]),u.start()})).catch(a)})),c}})));if(n)return Promise.all(a.map((async e=>{if("rejected"===e.status)throw e.reason;return this.getAsset(e.value)})));const s=await Promise.allSettled(a.map((async(e,t)=>{if("rejected"===e.status)throw e.reason;let n=null,i=0;for(;"ready"!==n?.status?.phase&&"failed"!==n?.status?.phase;)try{if(await new Promise((e=>setTimeout(e,1e3*Math.random()+4e3))),n=await this.getAsset(e.value),void 0===n.status?.phase)throw new Error("Asset phase was undefined.");{const e={name:n.name,assetId:n.id,progress:n.status.progress??0,phase:n.status.phase},i=[...o];i[t]=e,o=i,r?.(o)}}catch($R){if(i>5)throw $R;i+=1}const a={name:n.name,assetId:n.id,progress:1,phase:n.status.phase},s=[...o];return s[t]=a,o=s,r?.(o),n})));return[...s.map((e=>{if("fulfilled"===e.status)return e.value;throw e.reason}))]}async getAsset(e){return await this._get(`/asset/${"string"==typeof e?e:e.assetId}`,{headers:this._defaultHeaders})}async updateAsset(e){const{assetId:t,name:r,storage:n}=e,i=this._getPlaybackPolicyMapped(e.playbackPolicy);return await this._update(`/asset/${t}`,{json:{name:void 0!==r?String(r):void 0,storage:n?.ipfs?{ipfs:{spec:{nftMetadata:n?.metadata??{},...n?.metadataTemplate?{nftMetadataTemplate:n.metadataTemplate}:{}}}}:void 0,...i?{playbackPolicy:i}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders}),this.getAsset({assetId:t})}_getRtmpIngestUrl(e){return`rtmp://rtmp.livepeer.com/live/${e}`}async getPlaybackInfo(e){const t="string"==typeof e?e:e.playbackId,r=encodeURIComponent(t),n=await this._get(`/playback/${r}?recordings=true`,{headers:this._defaultHeaders});return this._mapToPlaybackInfo(n)}_getPlaybackUrl(e){return`https://livepeercdn.com/hls/${e}/index.m3u8`}async getAssetMetrics(e){const t="string"==typeof e?e:e.assetId,r=await this._get(`/data/views/${t}/total`,{headers:this._defaultHeaders});return this._mapToViewsMetrics(r)}async _mapToStream(e){return{...e,multistream:await this._mapToMultistream(e.multistream)}}async _mapToMultistream(e){if(!e?.targets)return;const t=e.targets.map((async e=>{const{name:t}=await this._get(`/multistream/target/${e.id}`,{headers:this._defaultHeaders});return{...e,spec:{name:t}}}));return{targets:await Promise.all(t)}}_mapToPlaybackInfo(e){return{type:e?.type,meta:{...e?.meta,live:Boolean(e?.meta?.live),source:e?.meta?.source?.map((e=>({...e}))),attestation:e?.meta?.attestation}}}_mapToViewsMetrics(e){return{type:"ViewsMetrics",metrics:e}}_getPlaybackPolicyMapped(e){return e&&void 0!==e?.type?"webhook"===e.type?{type:e.type,webhookId:e.webhookId,webhookContext:e.webhookContext}:{type:e.type}:null}}const AR=i.createContext(void 0),CR=i.createContext(!1);function ER(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=AR),window.ReactQueryClientContext):AR)}const xR=({client:e,children:t,context:r,contextSharing:n=!1})=>{i.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]);const o=ER(r,n);return i.createElement(CR.Provider,{value:!r&&n},i.createElement(o.Provider,{value:e},t))};function SR(e,t={}){const r=(({context:e}={})=>{const t=i.useContext(ER(e,i.useContext(CR)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t})({context:t.context}),n=i.useRef(t);n.current=t,i.useMemo((()=>{e&&iB(r,e,n.current)}),[r,e])}const IR=({children:e,options:t,state:r})=>(SR(r,t),e),kR=i.createContext(void 0),_R=i.createContext(void 0);function TR({children:e,client:t,dehydratedState:r}){return(0,n.jsx)(kR.Provider,{value:t,children:(0,n.jsx)(xR,{context:_R,client:t.queryClient,children:(0,n.jsx)(IR,{options:{context:_R},state:r??void 0,children:e})})})}r(754070);new Set;const MR=e=>{for(const t of Object.keys(PR))if(PR[t]?.some((t=>t===e)))return t;return null},PR={"application/mp4":["mp4s","m4p"],"application/ogg":["ogx"],"application/vnd.apple.mpegurl":["m3u8"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.dts":["dts"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"audio/xm":["xm"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/vp8":["vp8"],"video/webm":["webm"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"]},jR=/\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,DR=/\.(mp4|ogv|webm|mov|m4v|avi|m3u8)($|\?)/i,OR=/data:video/i,BR=/\.(m3u8)($|\?)/i,NR=/(webrtc|sdp)/i,RR=/data:(.+?);base64/,LR=e=>{const t=e.match(RR);return NR.test(e)?{type:"webrtc",src:e,mime:"video/h264"}:BR.test(e)?{type:"hls",src:e,mime:MR(BR.exec(e)?.[1]??"")}:DR.test(e)?{type:"video",src:e,mime:MR(DR.exec(e)?.[1]??"")}:jR.test(e)?{type:"audio",src:e,mime:MR(jR.exec(e)?.[1]??"")}:OR.test(e)?{type:"video",src:e,mime:t?t[1]:"video/mp4"}:null},FR=e=>{const t=new URL(e).pathname.split("/"),r=t.includes("hls"),n=t.includes("webrtc"),i=t.includes("recordings");return n?t?.[(t?.length??0)-1]:i||r?t?.[(t?.length??0)-2]??null:null},UR=e=>e&&!isNaN(e)&&isFinite(e)?e:0,zR=(e,t)=>Math.min(Math.max(0,UR(e)),UR(t)?UR(t)-.01:0),HR=e=>Math.min(Math.max(0,UR(e)),1);(()=>{try{return Math.random().toString(16).substring(2)}catch($R){}})(),Date.now();const VR=[{key:"16to9",value:"16 / 9",numeric:16/9},{key:"1to1",value:"1 / 1",numeric:1},{key:"9to16",value:"9 / 16",numeric:9/16},{key:"4to5",value:"4 / 5",numeric:.8},{key:"21to9",value:"21 / 9",numeric:21/9}];r(327495),r(426099),r(703362),r(874423),r(21699);function KR(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function GR(e,t,r){return(t=KR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qR=function(){return"undefined"!=typeof window},QR=function(){var e,t,r;return qR()?null===(e=window)||void 0===e||null===(t=e.navigator)||void 0===t||null===(r=t.userAgent)||void 0===r?void 0:r.toLowerCase():""},WR=function(){return/iphone|ipad|ipod|ios|CriOS|FxiOS/.test(QR())},JR=function(){return/android/.test(QR())},YR=function(){return qR()&&(WR()||JR())};r(272712);var ZR=function(e){return{version:e,isAndroid:JR(),isIos:WR(),isMobile:YR(),userAgent:"undefined"!=typeof navigator?navigator.userAgent:"Node.js or unknown"}};var $R,XR,eL="colors",tL="sizes",rL="space",nL={gap:rL,gridGap:rL,columnGap:rL,gridColumnGap:rL,rowGap:rL,gridRowGap:rL,inset:rL,insetBlock:rL,insetBlockEnd:rL,insetBlockStart:rL,insetInline:rL,insetInlineEnd:rL,insetInlineStart:rL,margin:rL,marginTop:rL,marginRight:rL,marginBottom:rL,marginLeft:rL,marginBlock:rL,marginBlockEnd:rL,marginBlockStart:rL,marginInline:rL,marginInlineEnd:rL,marginInlineStart:rL,padding:rL,paddingTop:rL,paddingRight:rL,paddingBottom:rL,paddingLeft:rL,paddingBlock:rL,paddingBlockEnd:rL,paddingBlockStart:rL,paddingInline:rL,paddingInlineEnd:rL,paddingInlineStart:rL,top:rL,right:rL,bottom:rL,left:rL,scrollMargin:rL,scrollMarginTop:rL,scrollMarginRight:rL,scrollMarginBottom:rL,scrollMarginLeft:rL,scrollMarginX:rL,scrollMarginY:rL,scrollMarginBlock:rL,scrollMarginBlockEnd:rL,scrollMarginBlockStart:rL,scrollMarginInline:rL,scrollMarginInlineEnd:rL,scrollMarginInlineStart:rL,scrollPadding:rL,scrollPaddingTop:rL,scrollPaddingRight:rL,scrollPaddingBottom:rL,scrollPaddingLeft:rL,scrollPaddingX:rL,scrollPaddingY:rL,scrollPaddingBlock:rL,scrollPaddingBlockEnd:rL,scrollPaddingBlockStart:rL,scrollPaddingInline:rL,scrollPaddingInlineEnd:rL,scrollPaddingInlineStart:rL,fontSize:"fontSizes",background:eL,backgroundColor:eL,backgroundImage:eL,borderImage:eL,border:eL,borderBlock:eL,borderBlockEnd:eL,borderBlockStart:eL,borderBottom:eL,borderBottomColor:eL,borderColor:eL,borderInline:eL,borderInlineEnd:eL,borderInlineStart:eL,borderLeft:eL,borderLeftColor:eL,borderRight:eL,borderRightColor:eL,borderTop:eL,borderTopColor:eL,caretColor:eL,color:eL,columnRuleColor:eL,fill:eL,outline:eL,outlineColor:eL,stroke:eL,textDecorationColor:eL,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:tL,minBlockSize:tL,maxBlockSize:tL,inlineSize:tL,minInlineSize:tL,maxInlineSize:tL,width:tL,minWidth:tL,maxWidth:tL,height:tL,minHeight:tL,maxHeight:tL,flexBasis:tL,gridTemplateColumns:tL,gridTemplateRows:tL,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},iL=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,oL=()=>{const e=Object.create(null);return(t,r,...n)=>{const i=(e=>JSON.stringify(e,iL))(t);return i in e?e[i]:e[i]=r(t,...n)}},aL=Symbol.for("sxs.internal"),sL=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),cL=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:uL}=Object.prototype,lL=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),dL=/\s+(?![^()]*\))/,fL=e=>t=>e(..."string"==typeof t?String(t).split(dL):[t]),hL={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:fL(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:fL(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:fL(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:fL(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:fL(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:fL(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},pL=/([\d.]+)([^]*)/,gL=(e,t)=>e.length?e.reduce(((e,r)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(e)?`:is(${r})`:r):r+" "+e))),e)),[]):t,mL=(e,t)=>e in yL&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,r,n,i)=>r+("stretch"===n?`-moz-available${i};${lL(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${lL(e)}:${r}fit-content`)+i)):String(t),yL={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},bL=e=>e?e+"-":"",vL=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,n,i,o,a)=>"$"==o==!!i?e:(n||"--"==o?"calc(":"")+"var(--"+("$"===o?bL(t)+(a.includes("$")?"":bL(r))+a.replace(/\$/g,"-"):a)+")"+(n||"--"==o?"*"+(n||"")+(i||"1")+")":""))),wL=/\s*,\s*(?![^()]*\))/,AL=Object.prototype.toString,CL=(e,t,r,n,i)=>{let o,a,s;const c=(e,t,r)=>{let u,l;const d=e=>{for(u in e){const p=64===u.charCodeAt(0),g=p&&Array.isArray(e[u])?e[u]:[e[u]];for(l of g){const e=/[A-Z]/.test(h=u)?h:h.replace(/-[^]/g,(e=>e[1].toUpperCase())),g="object"==typeof l&&l&&l.toString===AL&&(!n.utils[e]||!t.length);if(e in n.utils&&!g){const t=n.utils[e];if(t!==a){a=t,d(t(l)),a=null;continue}}else if(e in hL){const t=hL[e];if(t!==s){s=t,d(t(l)),s=null;continue}}if(p&&(f=u.slice(1)in n.media?"@media "+n.media[u.slice(1)]:u,u=f.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,r,n,i,o)=>{const a=pL.test(t),s=.0625*(a?-1:1),[c,u]=a?[n,t]:[t,n];return"("+("="===r[0]?"":">"===r[0]===a?"max-":"min-")+c+":"+("="!==r[0]&&1===r.length?u.replace(pL,((e,t,n)=>Number(t)+s*(">"===r?1:-1)+n)):u)+(i?") and ("+(">"===i[0]?"min-":"max-")+c+":"+(1===i.length?o.replace(pL,((e,t,r)=>Number(t)+s*(">"===i?-1:1)+r)):o):"")+")"}))),g){const e=p?r.concat(u):[...r],n=p?[...t]:gL(t,u.split(wL));void 0!==o&&i(EL(...o)),o=void 0,c(l,n,e)}else void 0===o&&(o=[[],t,r]),u=p||36!==u.charCodeAt(0)?u:`--${bL(n.prefix)}${u.slice(1).replace(/\$/g,"-")}`,l=g?l:"number"==typeof l?l&&e in xL?String(l)+"px":String(l):vL(mL(e,null==l?"":l),n.prefix,n.themeMap[e]),o[0].push(`${p?`${u} `:`${lL(u)}:`}${l}`)}}var f,h};d(e),void 0!==o&&i(EL(...o)),o=void 0};c(e,t,r)},EL=(e,t,r)=>`${r.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,xL={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},SL=e=>String.fromCharCode(e+(e>25?39:97)),IL=e=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=SL(t%52)+r;return SL(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(e))>>>0),kL=["themed","global","styled","onevar","resonevar","allvar","inline"],_L=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},TL=e=>{let t;const r=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((r,n)=>{const{cssText:i}=r;let o="";if(i.startsWith("--sxs"))return"";if(e[n-1]&&(o=e[n-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===r)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${i}`;return r.cssRules.length?`${o}${i}`:""}return i})).join("")},n=()=>{if(t){const{rules:e,sheet:r}=t;if(!r.deleteRule){for(;3===Object(Object(r.cssRules)[0]).type;)r.cssRules.splice(0,1);r.cssRules=[]}for(const t in e)delete e[t]}const i=Object(e).styleSheets||[];for(const e of i)if(_L(e)){for(let i=0,o=e.cssRules;o[i];++i){const a=Object(o[i]);if(1!==a.type)continue;const s=Object(o[i+1]);if(4!==s.type)continue;++i;const{cssText:c}=a;if(!c.startsWith("--sxs"))continue;const u=c.slice(14,-3).trim().split(/\s+/),l=kL[u[0]];l&&(t||(t={sheet:e,reset:n,rules:{},toString:r}),t.rules[l]={group:s,index:i,cache:new Set(u)})}if(t)break}if(!t){const i=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,i(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:i("","text/css"),rules:{},reset:n,toString:r}}const{sheet:o,rules:a}=t;for(let e=kL.length-1;e>=0;--e){const t=kL[e];if(!a[t]){const r=kL[e+1],n=a[r]?a[r].index:o.cssRules.length;o.insertRule("@media{}",n),o.insertRule(`--sxs{--sxs:${e}}`,n),a[t]={group:o.cssRules[n+1],index:n,cache:new Set([e])}}ML(a[t])}};return n(),t},ML=e=>{const t=e.group;let r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},PL=Symbol(),jL=oL(),DL=(e,t)=>jL(e,(()=>(...r)=>{let n={type:null,composers:new Set};for(const t of r)if(null!=t)if(t[aL]){null==n.type&&(n.type=t[aL].type);for(const e of t[aL].composers)n.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==n.type&&(n.type=t):n.composers.add(OL(t,e));return null==n.type&&(n.type="span"),n.composers.size||n.composers.add(["PJLV",{},[],[],{},[]]),BL(e,n,t)})),OL=({variants:e,compoundVariants:t,defaultVariants:r,...n},i)=>{const o=`${bL(i.prefix)}c-${IL(n)}`,a=[],s=[],c=Object.create(null),u=[];for(const f in r)c[f]=String(r[f]);if("object"==typeof e&&e)for(const f in e){l=c,d=f,uL.call(l,d)||(c[f]="undefined");const t=e[f];for(const e in t){const r={[f]:String(e)};"undefined"===String(e)&&u.push(f);const n=t[e],i=[r,n,!cL(n)];a.push(i)}}var l,d;if("object"==typeof t&&t)for(const f of t){let{css:e,...t}=f;e="object"==typeof e&&e||{};for(const n in t)t[n]=String(t[n]);const r=[t,e,!cL(e)];s.push(r)}return[o,n,a,s,c,u]},BL=(e,t,r)=>{const[n,i,o,a]=NL(t.composers),s="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;rt.rules[e]={apply:r=>t[PL].push([e,r])})),t})(r):null,c=(s||r).rules,u=`.${n}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,l=l=>{l="object"==typeof l&&l||LL;const{css:d,...f}=l,h={};for(const e in o)if(delete f[e],e in l){let t=l[e];"object"==typeof t&&t?h[e]={"@initial":o[e],...t}:(t=String(t),h[e]="undefined"!==t||a.has(e)?t:o[e])}else h[e]=o[e];const p=new Set([...i]);for(const[n,i,o,a]of t.composers){r.rules.styled.cache.has(n)||(r.rules.styled.cache.add(n),CL(i,[`.${n}`],[],e,(e=>{c.styled.apply(e)})));const t=RL(o,h,e.media),s=RL(a,h,e.media,!0);for(const i of t)if(void 0!==i)for(const[t,o,a]of i){const i=`${n}-${IL(o)}-${t}`;p.add(i);const s=(a?r.rules.resonevar:r.rules.onevar).cache,u=a?c.resonevar:c.onevar;s.has(i)||(s.add(i),CL(o,[`.${i}`],[],e,(e=>{u.apply(e)})))}for(const i of s)if(void 0!==i)for(const[t,o]of i){const i=`${n}-${IL(o)}-${t}`;p.add(i),r.rules.allvar.cache.has(i)||(r.rules.allvar.cache.add(i),CL(o,[`.${i}`],[],e,(e=>{c.allvar.apply(e)})))}}if("object"==typeof d&&d){const t=`${n}-i${IL(d)}-css`;p.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),CL(d,[`.${t}`],[],e,(e=>{c.inline.apply(e)})))}for(const e of String(l.className||"").trim().split(/\s+/))e&&p.add(e);const g=f.className=[...p].join(" ");return{type:t.type,className:g,selector:u,props:f,toString:()=>g,deferredInjector:s}};return sL(l,{className:n,selector:u,[aL]:t,toString:()=>(r.rules.styled.cache.has(n)||l(),n)})},NL=e=>{let t="";const r=[],n={},i=[];for(const[o,,,,a,s]of e){""===t&&(t=o),r.push(o),i.push(...s);for(const e in a){const t=a[e];(void 0===n[e]||"undefined"!==t||s.includes(t))&&(n[e]=t)}}return[t,r,n,new Set(i)]},RL=(e,t,r,n)=>{const i=[];e:for(let[o,a,s]of e){if(s)continue;let e,c=0,u=!1;for(e in o){const n=o[e];let i=t[e];if(i!==n){if("object"!=typeof i||!i)continue e;{let e,t,o=0;for(const a in i){if(n===String(i[a])){if("@initial"!==a){const e=a.slice(1);(t=t||[]).push(e in r?r[e]:a.replace(/^@media ?/,"")),u=!0}c+=o,e=!0}++o}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue e}}}(i[c]=i[c]||[]).push([n?"cv":`${e}-${o[e]}`,a,u])}return i},LL={},FL=oL(),UL=(e,t)=>FL(e,(()=>(...r)=>{const n=()=>{for(let n of r){n="object"==typeof n&&n||{};let r=IL(n);if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in n){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let r of[].concat(n["@import"]))r=r.includes('"')||r.includes("'")?r:`"${r}"`,t.sheet.insertRule(`@import ${r};`,e++);delete n["@import"]}CL(n,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return sL(n,{toString:n})})),zL=oL(),HL=(e,t)=>zL(e,(()=>r=>{const n=`${bL(e.prefix)}k-${IL(r)}`,i=()=>{if(!t.rules.global.cache.has(n)){t.rules.global.cache.add(n);const i=[];CL(r,[],[],e,(e=>i.push(e)));const o=`@keyframes ${n}{${i.join("")}}`;t.rules.global.apply(o)}return n};return sL(i,{get name(){return i()},toString:i})})),VL=class{constructor(e,t,r,n){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==r?"":String(r),this.prefix=null==n?"":String(n)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+bL(this.prefix)+bL(this.scale)+this.token}toString(){return this.computedValue}},KL=oL(),GL=(e,t)=>KL(e,(()=>(r,n)=>{n="object"==typeof r&&r||Object(n);const i=`.${r=(r="string"==typeof r?r:"")||`${bL(e.prefix)}t-${IL(n)}`}`,o={},a=[];for(const t in n){o[t]={};for(const r in n[t]){const i=`--${bL(e.prefix)}${t}-${r}`,s=vL(String(n[t][r]),e.prefix,t);o[t][r]=new VL(r,s,t,e.prefix),a.push(`${i}:${s}`)}}const s=()=>{if(a.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);const i=`${n===e.theme?":root,":""}.${r}{${a.join(";")}}`;t.rules.themed.apply(i)}return r};return{...o,get className(){return s()},selector:i,toString:s}})),qL=oL(),QL=e=>{let t=!1;const r=qL(e,(e=>{t=!0;const r="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",n="object"==typeof e.media&&e.media||{},i="object"==typeof e.root?e.root||null:globalThis.document||null,o="object"==typeof e.theme&&e.theme||{},a={prefix:r,media:n,theme:o,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...nL},utils:"object"==typeof e.utils&&e.utils||{}},s=TL(i),c={css:DL(a,s),globalCss:UL(a,s),keyframes:HL(a,s),createTheme:GL(a,s),reset(){s.reset(),c.theme.toString()},theme:{},sheet:s,config:a,prefix:r,getCssText:s.toString,toString:s.toString};return String(c.theme=c.createTheme(o)),c}));return t||r.reset(),r},WL=()=>$R||($R=QL()),JL=(...e)=>WL().keyframes(...e),YL="#00a55f",ZL="rgba(255,255,255,1)",$L=QL({media:{sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)"},theme:{borderStyles:{containerBorderStyle:"solid"},borderWidths:{containerBorderWidth:0,loadingWidth:"3px"},colors:{accent:YL,background:"#000000",containerBorderColor:"transparent",icon:ZL,iconHover:"rgba(255,255,255,0.8)",liveIndicator:"#e5484d",loading:YL,progressLeft:YL,progressMiddle:YL,progressRight:YL,progressThumb:ZL,volumeLeft:YL,volumeMiddle:YL,volumeRight:YL,volumeThumb:ZL,errorText:"#B7B7B7"},fonts:{display:"ui-sans-serif"},fontSizes:{timeFontSize:"1.0rem",timeFontSizeMd:"0.95rem",timeFontSizeSm:"0.85rem",titleFontSize:"1.1rem",titleFontSizeMd:"1rem",titleFontSizeSm:"0.9rem",errorTitleFontSize:"2.5rem",errorTitleFontSizeMd:"2.0rem",errorTitleFontSizeSm:"1.3rem",errorTextFontSize:"0.95rem",errorTextFontSizeMd:"0.85rem",errorTextFontSizeSm:"0.75rem"},fontWeights:{titleFontWeight:"400",errorTitleFontWeight:"700"},sizes:{iconButtonSize:"42px",iconButtonSizeSm:"36px",liveIndicatorSize:"5px",loading:"64px",thumb:"10px",thumbActive:"12px",trackActive:"5px",trackContainerHeight:"15px",trackContainerHeightSm:"20px",trackInactive:"3px"},space:{controlsBottomMarginX:"10px",controlsBottomMarginY:"5px",controlsTopMarginX:"15px",controlsTopMarginY:"10px",timeMarginX:"8px"},radii:{containerBorderRadius:"0px",slider:"3px"}}}),XL=$L.css,eF=($L.createTheme,$L.theme,$L.getCssText,JL({"0%":{transform:"scale(1)"},"100%":{transform:"scale(1.1)"}})),tF=(XL("button",{background:"none",border:"none",cursor:"pointer",outline:"inherit",padding:0,height:"$iconButtonSizeSm",width:"$iconButtonSizeSm",minHeight:"$iconButtonSizeSm",minWidth:"$iconButtonSizeSm","@lg":{height:"$iconButtonSize",width:"$iconButtonSize",minHeight:"$iconButtonSize",minWidth:"$iconButtonSize"},color:"$icon","&:hover":{color:"$iconHover",animation:YR()?void 0:"".concat(eF," 200ms")}}),XL("div",{variants:{aspectRatio:(XR={},GR(XR,VR[0].key,GR({aspectRatio:VR[0].value},"@supports not (aspect-ratio: ".concat(VR[0].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(VR[0].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),GR(XR,VR[1].key,GR({aspectRatio:VR[1].value},"@supports not (aspect-ratio: ".concat(VR[1].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(VR[1].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),GR(XR,VR[2].key,GR({aspectRatio:VR[2].value},"@supports not (aspect-ratio: ".concat(VR[2].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(VR[2].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),GR(XR,VR[3].key,GR({aspectRatio:VR[3].value},"@supports not (aspect-ratio: ".concat(VR[3].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(VR[3].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),GR(XR,VR[4].key,GR({aspectRatio:VR[4].value},"@supports not (aspect-ratio: ".concat(VR[4].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(VR[4].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),XR)}})),rF=(XL(tF,{fontFamily:"$display, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",backgroundColor:"$background",overflow:"hidden",maxWidth:"100%",maxHeight:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flex:1,svg:{pointerEvents:"none"},variants:{size:{fullscreen:{zIndex:2147483647},default:{boxShadow:"rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px",borderStyle:"$containerBorderStyle",borderColor:"$containerBorderColor",borderRadius:"$containerBorderRadius",borderWidth:"$containerBorderWidth",zIndex:1}}},defaultVariants:{size:"default"}}),XL("span",{color:"$icon",userSelect:"none"})),nF={background:XL("div",{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"220px",marginTop:"1rem","@md":{maxWidth:"340px"},maxHeight:"100%"}),title:XL(rF,{fontWeight:"$errorTitleFontWeight",margin:"0.5rem 0 0.5rem 0",fontSize:"$errorTitleFontSizeSm","@md":{fontSize:"$errorTitleFontSizeMd",margin:"2rem 0 0.5rem 0"},"@lg":{fontSize:"$errorTitleFontSize"}}),text:XL(rF,{fontWeight:"$titleFontWeight",color:"$errorText",textAlign:"center",width:"90%",fontSize:"$errorTextFontSizeSm",marginBottom:"1rem","@md":{fontSize:"$errorTextFontSizeMd"},"@lg":{fontSize:"$errorTextFontSize"}})},iF=JL({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),oF=XL("div",{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%","&:after":{content:" ",display:"block",width:"$loading",height:"$loading",maxWidth:"100%",maxHeight:"100%",borderRadius:"50%",borderWidth:"$loadingWidth",borderStyle:"solid",borderColor:"$loading transparent $loading transparent",animation:"".concat(iF," 1.4s ease-in-out infinite")}}),aF=JL({"0%":{opacity:1},"100%":{opacity:0}}),sF=JL({"0%":{opacity:0},"100%":{opacity:1}}),cF=XL("div",{variants:{display:{shown:{opacity:1,animation:YR()?void 0:"".concat(sF," 0.2s")},hidden:{opacity:0,animation:YR()?void 0:"".concat(aF," 0.2s")}}},defaultVariants:{display:"shown"}}),uF=XL(cF,{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",bottom:0,left:0,right:0,top:0,height:"100%",backgroundColor:"#000000"}),lF=XL(cF,{position:"absolute",bottom:0,left:0,right:0,height:233,marginBottom:-1,maxWidth:"100%",maxHeight:"100%",overflow:"hidden",backgroundImage:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADpCAYAAADlAl1mAAAAAXNSR0IArs4c6QAAAexJREFUOE9V0ftrzXEcx/H3x+43l9lmGGaz65ld2YUZG2YYKUlJUpKSpNZSkpSkJClJSVKSkj9Sj8/3nJ12fnie5/v9en/en+/3nIjik6rfNOU6YwfJqNGp0ctWGylSLavTqzNe72S9YYgGaYOysYJodKxJ2uSeZseaC4uUWpQt0lbWWlhEtFnVZv1O5RbSLkHGbifKiBR7XJnR7kS7dG+BSNlSh7TDvZ02d5rL6DLXxfYZriCiW69bbz+rIKUDyoyDW+hxB0RPpJQOCTIOb8cRZUavB+r1QCyOVpD6WJ97s/Wb67f5GINsMaA3YG6QDbIh7zZUWEQaNjesHHHRiB7EqLlRx0qsZKQkHdMb0zturopx5bhgwqoJJaRJNmnBlGBKj8W0YNq+GTbjFzrBqjipzJh1bNYxFnNsjs1bMF9YpFhgC3qnCkQkiNMMYlGwqDzDyoiIJc+35O85a66MFHFOmbHsjmVnM1Y884rgvLKClC4oIS5ux6pg1ZZLgow1v9pa2SIus4wrBVKkbFedhVhn67Zku2bBdcENr3CT3ZLe9oJ32F12T3DfCz7QewiP9B7b8kT5VPmMbVi6yZ7DCwtemnvFXrvoDXtr7p3gPXxQfhR8suqz8gv7Kv3mZb5Lf+j91PvFfsMf+Av//gMAXDGpZ05jKQAAAABJRU5ErkJggg==")'}),dF=XL(cF,{top:0,marginTop:"$controlsTopMarginY",marginBottom:"$controlsTopMarginY",marginLeft:"$controlsTopMarginX",marginRight:"$controlsTopMarginX",display:"inline-flex",alignItems:"center",justifyContent:"space-between",position:"absolute",left:0,right:0}),fF=XL(cF,{justifyContent:"center",bottom:0,marginTop:"$controlsBottomMarginY",marginBottom:"$controlsBottomMarginY",marginLeft:"$controlsBottomMarginX",marginRight:"$controlsBottomMarginX",display:"inline-flex",alignItems:"center",position:"absolute",flexDirection:"column",left:0,right:0}),hF=XL("div",{width:"100%",display:"inline-flex",alignItems:"center",justifyContent:"space-between"}),pF=XL(hF,{width:"auto"}),gF=XL(hF,{width:"auto"}),mF=(XL(cF,{top:0,userSelect:"none",color:"$icon",marginTop:"$controlsTopMarginY",marginBottom:"$controlsTopMarginY",marginLeft:"$controlsTopMarginX",marginRight:"$controlsTopMarginX",display:"inline-flex",alignItems:"flex-start",justifyContent:"flex-start",position:"absolute",fontSize:"$timeFontSizeSm","@md":{fontSize:"$timeFontSizeMd"},"@lg":{fontSize:"$timeFontSize"},left:0,right:0,bottom:0}),XL("img",{maxWidth:"100%",width:"100%",maxHeight:"100%",height:"100%",pointerEvents:"none",userSelect:"none",objectPosition:"center",objectFit:"cover",variants:{size:{fullscreen:{width:"100% !important",height:"100% !important"},default:{}}},defaultVariants:{size:"default"}})),yF=XL("video",{width:"100% !important",height:"100% !important",objectPosition:"center",variants:{size:{fullscreen:{objectFit:"contain","&::-webkit-media-overlay-enclosure":{display:"none !important"},"&::-webkit-media-controls-enclosure":{display:"none !important"}},contain:{objectFit:"contain"},cover:{objectFit:"cover"}}},defaultVariants:{size:"cover"}}),bF=(XL("audio",yF),JL({"0%":{opacity:0},"100%":{opacity:1}})),vF=JL({"0%":{opacity:0,transform:"translate(-50%, -48%) scale(.96)"},"100%":{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),wF=XL("div",{backgroundColor:"hsla(0, 0%, 0%, 0.439)",position:"fixed",inset:0,animation:"".concat(bF," 150ms cubic-bezier(0.16, 1, 0.3, 1)")}),AF=XL("div",{fontFamily:"$display, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",backgroundColor:"white",color:"black",borderRadius:6,display:"inline-flex",flexDirection:"column",gap:12,boxShadow:"hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"350px",maxWidth:"85%",maxHeight:"85vh",padding:25,animation:"".concat(vF," 150ms cubic-bezier(0.16, 1, 0.3, 1)"),"&:focus":{outline:"none"}}),CF=XL("span",{margin:0,fontWeight:600,color:"black",fontSize:20,marginBottom:12}),EF=XL("button",{all:"unset",fontFamily:"inherit",borderRadius:"100%",height:20,width:20,display:"inline-flex",alignItems:"center",justifyContent:"center",position:"absolute",top:10,right:10,cursor:"pointer"}),xF=XL("div",{display:"inline-flex",flexDirection:"column",gap:8}),SF=XL("button",{all:"unset",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:4,padding:"0 15px",fontSize:13,lineHeight:1,height:35,gap:5,backgroundColor:"white",color:"black",borderStyle:"solid",borderWidth:1,borderColor:"black",boxShadow:"0 2px 10px hsla(0, 0%, 0%, 0.141)","&:hover":{backgroundColor:"hsl(294, 5.5%, 95.3%)"},"&:focus":{boxShadow:"0 0 0 2px black"},"&[data-placeholder]":{color:"hsl(0, 0%, 9.0%)"}}),IF=XL("span",{fontSize:16,fontWeight:600}),kF=XL("span",{}),_F=XL("div",{overflow:"hidden",backgroundColor:"white",display:"flex",flexDirection:"column",borderRadius:6,borderStyle:"solid",borderWidth:1,borderColor:"black",boxShadow:"0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2)"}),TF=XL("div",{padding:5}),MF=(XL("div",{fontFamily:"$display, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",fontSize:13,lineHeight:1,borderRadius:3,display:"flex",alignItems:"center",height:25,padding:"10px 35px 10px 30px",position:"relative",userSelect:"none",color:"black","&[data-disabled]":{pointerEvents:"none"},"&[data-highlighted]":{outline:"none",backgroundColor:"#fafafa"}}),XL("div",{position:"absolute",left:4,width:30,display:"inline-flex",alignItems:"center",justifyContent:"center"}),JL({"0%":{height:"$trackInactive"},"100%":{height:"$trackActive"}})),PF=JL({"0%":{height:"$trackActive"},"100%":{height:"$trackInactive"}}),jF=XL("div",{minHeight:"$trackContainerHeightSm","@lg":{minHeight:"$trackContainerHeight"},"@media (hover: none)":{minHeight:"$trackContainerHeightSm"},position:"relative",display:"flex",alignItems:"center",minWidth:80,touchAction:"none",cursor:"pointer",height:"100%",width:"100%"}),DF=XL("div",{variants:{size:{default:{height:"$trackInactive",animation:"".concat(PF," 0.1s")},active:{height:"$trackActive",animation:"".concat(MF," 0.1s")}},rounded:{full:{borderRadius:"$slider"},left:{borderTopLeftRadius:"$slider",borderBottomLeftRadius:"$slider"},right:{borderTopRightRadius:"$slider",borderBottomRightRadius:"$slider"},none:{}}},defaultVariants:{size:"default",rounded:"none"}}),OF=XL(DF,{backgroundColor:"$accent",opacity:.95}),BF=XL(DF,{backgroundColor:"$accent",opacity:.55}),NF=XL(DF,{backgroundColor:"$accent",opacity:.2}),RF=(XL("div",{variants:{size:{default:{width:"$thumb",height:"$thumb"},active:{width:"$thumbActive",height:"$thumbActive"}}},defaultVariants:{size:"default"},backgroundColor:"$icon",borderRadius:"100%"}),JL({"0%, 100%":{opacity:1},"50%":{opacity:.5}})),LF=XL("div",{marginLeft:"$timeMarginX",marginRight:"$timeMarginX",display:"flex",alignItems:"center"}),FF=XL("div",{backgroundColor:"$liveIndicator",borderRadius:"100%",width:"$liveIndicatorSize",height:"$liveIndicatorSize",animation:"".concat(RF," 2s cubic-bezier(0.4, 0, 0.6, 1) infinite")}),UF=(XL(rF,{marginLeft:"$timeMarginX",marginRight:"$timeMarginX",fontVariant:"tabular-nums",fontSize:"$timeFontSizeSm","@md":{fontSize:"$timeFontSizeMd"},"@lg":{fontSize:"$timeFontSize"}}),XL(rF,{fontWeight:"$titleFontWeight",fontSize:"$titleFontSizeSm","@md":{fontSize:"$titleFontSizeMd"},"@lg":{fontSize:"$titleFontSize"}}),XL("div",{display:"inline-flex",alignItems:"center",justifyContent:"center"}),i.createContext(null)),zF=((({element:e,device:t,storage:r,mediaProps:n,opts:i})=>{const o=cO(nO(aO(((r,a)=>({_element:e??null,canPlay:!1,hidden:!1,live:!1,ingestUrl:n.ingestUrl??null,playbackId:n.playbackId??null,src:null,autoplay:Boolean(n.autoPlay),muted:Boolean(n.muted),priority:Boolean(n.priority),preload:n.priority?"full":"none",viewerId:n.viewerId??"",creatorId:n.creatorId??"",clipLength:n.clipLength,onClipCreated:n.onClipCreated,onClipError:n.onClipError,onClipStarted:n.onClipStarted,playbackOffsetMs:0,deviceIds:null,hasPlayed:!1,playing:!1,fullscreen:!1,pictureInPicture:!1,waiting:!1,stalled:!1,loading:!1,playbackRate:1,_mediaStream:null,video:null,device:t,progress:0,duration:0,buffered:0,volume:HR(i?.defaultVolume??1),isVolumeChangeSupported:!1,_lastInteraction:Date.now(),_requestedRangeToSeekTo:0,_requestedClipLastTime:Date.now(),_requestedFullscreenLastTime:Date.now(),_requestedPictureInPictureLastTime:Date.now(),_requestedPlayPauseLastTime:0,_playLastTime:0,_updateMediaStream:(e,t)=>r((({deviceIds:r})=>({_mediaStream:e,...t?.video?{video:!0}:{},deviceIds:{...r,...t?.audio?{audio:t.audio}:{},...t?.video?{video:t.video}:{}}}))),setHidden:e=>r((({playing:t})=>({hidden:!!t&&e}))),_updateLastInteraction:()=>r((()=>({_lastInteraction:Date.now(),hidden:!1}))),_updateSource:e=>r((({playbackId:t})=>({src:LR(e),...t?{}:{playbackId:FR(e)}}))),_updatePlaybackOffsetMs:e=>r((()=>({playbackOffsetMs:e}))),onCanPlay:()=>r((()=>({canPlay:!0,loading:!1}))),onPlay:()=>r((()=>({playing:!0,hasPlayed:!0,stalled:!1,waiting:!1,_playLastTime:Date.now()}))),onPause:()=>r((()=>({playing:!1,hidden:!1,stalled:!1,waiting:!1}))),togglePlay:e=>{const{hidden:t,setHidden:n,device:i}=o.getState();!e&&t&&i.isMobile?n(!1):r((()=>({_requestedPlayPauseLastTime:Date.now(),_lastInteraction:Date.now()})))},toggleVideo:()=>r((({video:e})=>({video:!e}))),onProgress:e=>r((()=>({progress:UR(e),waiting:!1,stalled:!1}))),requestSeek:e=>r((({duration:t})=>({_requestedRangeToSeekTo:zR(e,t),progress:zR(e,t)}))),onDurationChange:e=>r((({live:t})=>({duration:e,live:e===Number.POSITIVE_INFINITY||t}))),setWebsocketMetadata:e=>r((()=>({metadata:e}))),_updateBuffered:e=>r((()=>({buffered:e}))),_requestSeekDiff:e=>r((({progress:t,duration:r})=>({_requestedRangeToSeekTo:zR(UR(t)+e/1e3,r)}))),requestSeekBack:(e=5e3)=>a()._requestSeekDiff(-e),requestSeekForward:(e=5e3)=>a()._requestSeekDiff(e),setSize:e=>r((()=>({size:e}))),setWaiting:e=>r((()=>({waiting:e}))),setError:e=>r((()=>({error:e}))),setStalled:e=>r((()=>({stalled:e}))),setLoading:e=>r((()=>({loading:e}))),setFullscreen:e=>r((()=>({fullscreen:e}))),requestToggleFullscreen:()=>r((()=>({_requestedFullscreenLastTime:Date.now()}))),requestClip:()=>r((()=>({_requestedClipLastTime:Date.now()}))),setPictureInPicture:e=>r((()=>({pictureInPicture:e}))),requestTogglePictureInPicture:()=>r((()=>({_requestedPictureInPictureLastTime:Date.now()}))),setLive:e=>r((()=>({live:e}))),requestVolume:e=>r((({volume:t})=>({volume:0===e?t:HR(e),muted:0===e}))),_setVolume:e=>r((()=>({volume:HR(e)}))),requestToggleMute:()=>r((({muted:e})=>({muted:!e}))),setIsVolumeChangeSupported:e=>r((()=>({isVolumeChangeSupported:e})))})),{name:"livepeer-player",version:1,partialize:({volume:e,playbackRate:t})=>({volume:e,playbackRate:t}),storage:iO((()=>r))})))})({element:void 0,device:ZR(yR.react),storage:lO({}),mediaProps:{},opts:{}}),function(e){var t=e.theme,r=e.children;return(0,n.jsx)(UF.Provider,{value:null!=t?t:null,children:r})});function HF(e){var t=e.children,r=e.client,i=e.theme,o=e.dehydratedState;return(0,n.jsx)(TR,{client:r,dehydratedState:o,children:(0,n.jsx)(zF,{theme:i,children:t})})}const VF=function({supportedWalletType:e="all",darkMode:t=!1,enableMobileWalletLink:n=!1,reloadOnDisconnect:i=!0}={}){return()=>({label:"Coinbase Wallet",getIcon:async()=>(await r.e(92306).then(r.bind(r,692306))).default,getInterface:async({chains:o,appMetadata:a})=>{(n||i||t)&&console.warn("darkMode, enableMobileWalletLink and reloadOnDisconnect init props are deprecated after version 2.2.7 of @web3-onboard/coinbase");const{name:s,icon:c}=a||{},{default:u}=await r.e(39229).then(r.t.bind(r,939229,19)),l=u.default?u.default:u,{isHex:d,toHex:f,createEIP1193Provider:h,fromHex:p}=await Promise.resolve().then(r.bind(r,645599)),g=`data:image/svg+xml;base64,${window.btoa(c||"")}`,m=o.map((({id:e})=>p(e,"number"))),y=new l({appName:s||"",appLogoUrl:g,appChainIds:m}),b=y.makeWeb3Provider({options:e}),v=b.on.bind(b);b.on=(e,t)=>(v(e,(r=>{if("chainChanged"===e){let e;return e=d(r)?r:f(r),void t(e)}t(r)})),b);const w=h(b);return w.removeListener=(e,t)=>{},{provider:w,instance:y}}})};var KF,GF,qF,QF,WF=r(187234);!function(e){e.AlphaWallet="isAlphaWallet",e.ApexWallet="isApexWallet",e.AToken="isAToken",e.BifrostWallet="isBifrost",e.Binance="bbcSignTx",e.Bitpie="isBitpie",e.BlockWallet="isBlockWallet",e.Coinbase="isToshi",e.CoinbaseExtension="isCoinbaseWallet",e.Detected="request",e.Dcent="isDcentWallet",e.Exodus="isExodus",e.Frontier="isFrontier",e.Frame="isFrame",e.HuobiWallet="isHbWallet",e.HyperPay="isHyperPay",e.ImToken="isImToken",e.InfinityWallet="isInfinityWallet",e.Liquality="isLiquality",e.MeetOne="wallet",e.MetaMask="isMetaMask",e.MyKey="isMYKEY",e.OwnBit="isOwnbit",e.Status="isStatus",e.Trust="isTrust",e.TokenPocket="isTokenPocket",e.TP="isTp",e.WalletIo="isWalletIO",e.XDEFI="isXDEFI",e.OneInch="isOneInchIOSWallet",e.Tokenary="isTokenary",e.Tally="isTally",e.BraveWallet="isBraveWallet",e.Rabby="isRabby",e.MathWallet="isMathWallet",e.Bitget="isBitKeep",e.Sequence="isSequence",e.Core="isAvalanche",e.Opera="isOpera",e.Bitski="isBitski",e.Enkrypt="isEnkrypt",e.Phantom="isPhantom",e.OKXWallet="isOkxWallet",e.Zeal="isZeal",e.Zerion="isZerion",e.Rainbow="isRainbow",e.SafePal="isSafePal",e.DeFiWallet="isDeficonnectProvider",e.Safeheron="isSafeheron",e.Talisman="isTalisman",e.OneKey="isOneKey",e.Fordefi="isFordefi",e.Coin98Wallet="isCoin98",e.SubWallet="isSubWallet",e.Kayros="isKayros",e.FoxWallet="isFoxWallet",e.Lif3Wallet="isLif3Wallet",e.ZodiacPilot="isZodiacPilot",e.StableWallet="isStableWallet",e.Echooo="isEchooo",e.Keplr="keplr"}(KF||(KF={})),function(e){e.Binance="https://www.bnbchain.org/ru/blog/binance-extension-wallet/",e.Bitget="https://web3.bitget.com/en/wallet-download",e.Coinbase="https://www.coinbase.com/wallet/downloads",e.MetaMask="https://metamask.io/download/",e.OKXWallet="https://okx.com/download",e.Phantom="https://phantom.app/ul/v1/connect",e.Talisman="https://www.talisman.xyz/",e.Trust="https://link.trustwallet.com",e.OneKey="https://onekey.so/download/",e.RoninWallet="https://wallet.skymavis.com/",e.Coin98Wallet="https://coin98.com/wallet/",e.SubWallet="https://www.subwallet.app/",e.Kayros="https://www.kayros.games/wallet/",e.XDEFI="https://xdefi.io/",e.FoxWallet="https://foxwallet.com/download",e.Lif3Wallet="https://lif3.com",e.Rabby="https://rabby.io",e.ZodiacPilot="https://pilot.gnosisguild.org/",e.Echooo="https://www.echooo.xyz",e.Keplr="https://www.keplr.app/download"}(GF||(GF={})),function(e){e.AlphaWallet="AlphaWallet",e.ApexWallet="Apex Wallet",e.AToken="AToken",e.BifrostWallet="Bifrost Wallet",e.Binance="Binance Smart Wallet",e.Bitpie="Bitpie",e.Bitski="Bitski",e.BlockWallet="BlockWallet",e.Brave="Brave Wallet",e.Coinbase="Coinbase Wallet",e.Dcent="D'CENT",e.Detected="Detected Wallet",e.Exodus="Exodus",e.Frame="Frame",e.Frontier="Frontier",e.HuobiWallet="Huobi Wallet",e.HyperPay="HyperPay",e.ImToken="imToken",e.InfinityWallet="Infinity Wallet",e.Liquality="Liquality",e.MeetOne="MeetOne",e.MetaMask="MetaMask",e.MyKey="MyKey",e.Opera="Opera Wallet",e.OwnBit="OwnBit",e.Status="Status Wallet",e.Trust="Trust Wallet",e.TokenPocket="TokenPocket",e.TP="TP Wallet",e.WalletIo="Wallet.io",e.XDEFI="XDEFI Wallet",e.OneInch="1inch Wallet",e.Tokenary="Tokenary Wallet",e.Tally="Taho",e.Rabby="Rabby Wallet",e.MathWallet="MathWallet",e.Bitget="Bitget Wallet",e.Sequence="Sequence",e.Core="Core",e.Enkrypt="Enkrypt",e.Zeal="Zeal",e.Phantom="Phantom",e.OKXWallet="OKX Wallet",e.Zerion="Zerion",e.Rainbow="Rainbow",e.SafePal="SafePal",e.DeFiWallet="DeFi Wallet",e.Safeheron="Safeheron",e.Talisman="Talisman",e.OneKey="OneKey",e.Fordefi="Fordefi",e.RoninWallet="Ronin Wallet",e.Coin98Wallet="Coin98 Wallet",e.SubWallet="SubWallet",e.Kayros="Kayros",e.FoxWallet="FoxWallet",e.Lif3Wallet="Lif3 Wallet",e.ZodiacPilot="Zodiac Pilot",e.StableWallet="StableWallet",e.Echooo="Echooo",e.Keplr="Keplr"}(qF||(qF={})),function(e){e.Ethereum="ethereum",e.Binance="BinanceChain",e.Tally="tally",e.Web3="web3",e.Arbitrum="arbitrum",e.XFI="xfi",e.Bitget="bitkeep",e.Avalanche="avalanche",e.Bitski="Bitski",e.Enkrypt="enkrypt",e.Zeal="zeal",e.Phantom="phantom",e.OKXWallet="okxwallet",e.Trust="trustwallet",e.Frontier="frontier",e.DeFiConnectProvider="deficonnectProvider",e.Safeheron="safeheron",e.Talisman="talismanEth",e.OneKey="$onekey",e.RoninWallet="ronin",e.Coin98Wallet="coin98",e.SubWallet="SubWallet",e.Kayros="kayros",e.FoxWallet="foxwallet",e.Echooo="echooo"}(QF||(QF={}));Event;const JF=null;function YF(e,t){return async()=>({provider:window.ethereum.providers&&Array.isArray(window.ethereum.providers)?ZF(e,t):window.ethereum})}function ZF(e,t){return window.ethereum.providers.find((r=>t?!!r[e]&&!$F(e,r):!!r[e]))}function $F(e,t){const r=Object.values(KF).filter((t=>t!==e&&t!==KF.Detected));return r.some((e=>!!t[e]))}const XF={label:qF.MetaMask,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.MetaMask]&&!$F(KF.MetaMask,e),getIcon:async()=>(await r.e(65114).then(r.bind(r,865114))).default,getInterface:YF(KF.MetaMask,!0),platforms:["all"],externalUrl:GF.MetaMask},eU={label:qF.InfinityWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.InfinityWallet],getIcon:async()=>(await r.e(86890).then(r.bind(r,286890))).default,getInterface:YF(KF.InfinityWallet),platforms:["desktop"]},tU={label:qF.Exodus,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Exodus],getIcon:async()=>(await r.e(37705).then(r.bind(r,737705))).default,getInterface:YF(KF.Exodus),platforms:["all"]},rU={label:qF.Frontier,injectedNamespace:QF.Frontier,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum&&!!e.ethereum[KF.Frontier],getIcon:async()=>(await r.e(50974).then(r.bind(r,250974))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.frontier.ethereum)}),platforms:["all"]},nU={label:qF.Brave,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.BraveWallet],getIcon:async()=>(await r.e(88437).then(r.bind(r,288437))).default,getInterface:YF(KF.BraveWallet),platforms:["all"]},iU={label:qF.Binance,injectedNamespace:QF.Binance,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Binance],getIcon:async()=>(await r.e(9469).then(r.bind(r,209469))).default,getInterface:async()=>{let e={...window.BinanceChain};window.BinanceChain=e;const t=window.BinanceChain.on.bind(window.BinanceChain);window.BinanceChain.on=(e,r)=>{t(e,"chainChanged"===e?e=>{r(`0x${parseInt(e).toString(16)}`)}:r)};const r=(0,f.createEIP1193Provider)(window.BinanceChain,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then((e=>`0x${parseInt(e).toString(16)}`)),eth_selectAccounts:JF,wallet_switchEthereumChain:JF});return r.removeListener=(e,t)=>{},{provider:r}},platforms:["desktop"],externalUrl:GF.Binance},oU={label:qF.Coinbase,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Coinbase]||!!e&&!!e[KF.CoinbaseExtension],getIcon:async()=>(await r.e(93135).then(r.bind(r,793135))).default,getInterface:async()=>{const{provider:e}=await YF(KF.CoinbaseExtension)(),t=e.on.bind(e);return e.on=(e,r)=>{t(e,"chainChanged"===e?e=>{r(`0x${parseInt(e).toString(16)}`)}:r)},{provider:e}},platforms:["all"],externalUrl:GF.Coinbase},aU={label:qF.Detected,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Detected],getIcon:async()=>(await r.e(67641).then(r.bind(r,867641))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["all"]},sU={label:qF.Trust,injectedNamespace:QF.Trust,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Trust],getIcon:async()=>(await r.e(73045).then(r.bind(r,173045))).default,getInterface:async()=>{let e;return e=window.hasOwnProperty(QF.Ethereum)&&window[QF.Ethereum].isTrust?window[QF.Ethereum]:window[QF.Trust],{provider:e}},platforms:["all"],externalUrl:GF.Trust},cU={label:qF.Opera,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Opera],getIcon:async()=>(await r.e(74676).then(r.bind(r,874676))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{eth_requestAccounts:async({baseRequest:e})=>e({method:"eth_accounts"}),eth_selectAccounts:JF})}),platforms:["all"]},uU={label:qF.Status,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Status],getIcon:async()=>(await r.e(99573).then(r.bind(r,799573))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},lU={label:qF.AlphaWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.AlphaWallet],getIcon:async()=>(await r.e(60778).then(r.bind(r,960778))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:JF,eth_selectAccounts:JF})}),platforms:["mobile"]},dU={label:qF.ApexWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.ApexWallet],getIcon:async()=>(await r.e(31234).then(r.bind(r,331234))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},fU={label:qF.AToken,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.AToken],getIcon:async()=>(await r.e(73431).then(r.bind(r,73431))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},hU={label:qF.BifrostWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.BifrostWallet],getIcon:async()=>(await r.e(37107).then(r.bind(r,737107))).default,getInterface:YF(KF.BifrostWallet),platforms:["all"]},pU={label:qF.Bitpie,injectedNamespace:QF.Ethereum,checkProviderIdentity:()=>!!window.Bitpie,getIcon:async()=>(await r.e(58044).then(r.bind(r,258044))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:JF,eth_selectAccounts:JF})}),platforms:["mobile"]},gU={label:qF.BlockWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.BlockWallet],getIcon:async()=>(await r.e(50439).then(r.bind(r,250439))).default,getInterface:YF(KF.BlockWallet),platforms:["desktop"]},mU={label:qF.Frame,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Frame],getIcon:async()=>(await r.e(46902).then(r.bind(r,446902))).default,getInterface:async()=>{const e=window.ethereum;if(!e||!e.connected)throw new Error("Frame App must be open with a hot wallet connected. If not installed first download the Frame App.");return{provider:e}},platforms:["desktop"]},yU={label:qF.HuobiWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.HuobiWallet],getIcon:async()=>(await r.e(45131).then(r.bind(r,445131))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:JF,eth_selectAccounts:JF})}),platforms:["mobile"]},bU={label:qF.HyperPay,injectedNamespace:QF.Ethereum,checkProviderIdentity:()=>!!window.hiWallet,getIcon:async()=>(await r.e(41355).then(r.bind(r,741355))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:JF,eth_selectAccounts:JF})}),platforms:["mobile"]},vU={label:qF.ImToken,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.ImToken],getIcon:async()=>(await r.e(28172).then(r.bind(r,528172))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{eth_selectAccounts:JF})}),platforms:["mobile"]},wU={label:qF.Liquality,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Liquality],getIcon:async()=>(await r.e(579).then(r.bind(r,200579))).default,getInterface:async()=>{const e=(0,f.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:JF,eth_selectAccounts:JF});return e.removeListener=(e,t)=>{},{provider:e}},platforms:["desktop"]},AU={label:qF.MeetOne,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&"MEETONE"===e[KF.MeetOne],getIcon:async()=>(await r.e(80750).then(r.bind(r,980750))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},CU={label:qF.MyKey,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.MyKey],getIcon:async()=>(await r.e(54922).then(r.bind(r,154922))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},EU={label:qF.OwnBit,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.OwnBit],getIcon:async()=>(await r.e(6955).then(r.bind(r,629336))).default,getInterface:async()=>{const e=(0,f.createEIP1193Provider)(window.ethereum,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then((e=>`0x${parseInt(e).toString(16)}`)),wallet_switchEthereumChain:JF,eth_selectAccounts:JF});return e.removeListener=(e,t)=>{},e.on=(e,t)=>{},{provider:e}},platforms:["mobile"]},xU={label:qF.TokenPocket,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.TokenPocket]&&!e[KF.TP],getIcon:async()=>(await r.e(71452).then(r.bind(r,171452))).default,getInterface:YF(KF.TokenPocket),platforms:["all"]},SU={label:qF.TP,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.TP],getIcon:async()=>(await r.e(6347).then(r.bind(r,6347))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:JF,eth_selectAccounts:JF})}),platforms:["mobile"]},IU={label:qF.XDEFI,injectedNamespace:QF.XFI,checkProviderIdentity:({provider:e})=>e&&e.ethereum&&e.ethereum[KF.XDEFI],getIcon:async()=>(await r.e(81837).then(r.bind(r,381837))).default,getInterface:async()=>({provider:window.xfi&&window.xfi.ethereum}),platforms:["all"],externalUrl:GF.XDEFI},kU={label:qF.OneInch,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.OneInch],getIcon:async()=>(await r.e(62687).then(r.bind(r,162687))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum)}),platforms:["mobile"]},_U={label:qF.Tokenary,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Tokenary],getIcon:async()=>(await r.e(67546).then(r.bind(r,467546))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum)}),platforms:["all"]},TU={label:qF.Tally,injectedNamespace:QF.Tally,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Tally],getIcon:async()=>(await r.e(20712).then(r.bind(r,220712))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.tally)}),platforms:["desktop"]},MU={label:qF.Zeal,injectedNamespace:QF.Zeal,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Zeal],getIcon:async()=>(await r.e(74051).then(r.bind(r,874051))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.zeal)}),platforms:["desktop"]},PU={label:qF.Rabby,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Rabby],getIcon:async()=>(await r.e(75307).then(r.bind(r,975307))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum)}),platforms:["desktop","mobile"]},jU={label:qF.MathWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.MathWallet],getIcon:async()=>(await r.e(31948).then(r.bind(r,131948))).default,getInterface:YF(KF.MathWallet),platforms:["all"]},DU={label:qF.Bitget,injectedNamespace:QF.Bitget,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum[KF.Bitget],getIcon:async()=>(await r.e(79262).then(r.bind(r,979262))).default,getInterface:async()=>({provider:window.bitkeep&&window.bitkeep.ethereum}),platforms:["all"],externalUrl:GF.Bitget},OU={label:qF.Sequence,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Sequence],getIcon:async()=>(await r.e(52526).then(r.bind(r,152526))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["all"]},BU={label:qF.Core,injectedNamespace:QF.Avalanche,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Core],getIcon:async()=>(await r.e(83940).then(r.bind(r,483940))).default,getInterface:YF(KF.Core),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},NU={label:qF.Bitski,injectedNamespace:QF.Bitski,checkProviderIdentity:({provider:e})=>!!e&&!!e.getProvider&&!!e.getProvider().isBitski,getIcon:async()=>(await r.e(14351).then(r.bind(r,414351))).default,getInterface:async()=>({provider:window.Bitski&&window.Bitski.getProvider&&window.Bitski.getProvider()}),platforms:["all"]},RU={label:qF.Zerion,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Zerion],getIcon:async()=>(await r.e(1330).then(r.bind(r,901330))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum)}),platforms:["all"]},LU={label:qF.Enkrypt,injectedNamespace:QF.Enkrypt,checkProviderIdentity:({provider:e})=>!!e&&!!e.providers&&!!e.providers.ethereum,getIcon:async()=>(await r.e(68786).then(r.bind(r,868786))).default,getInterface:async()=>{const e=window.enkrypt.providers.ethereum.on.bind(window.enkrypt.providers.ethereum);window.enkrypt.providers.ethereum.on=(t,r)=>{e(t,"chainChanged"===t?e=>{r(`0x${parseInt(e).toString(16)}`)}:r)};const t=(0,f.createEIP1193Provider)(window.enkrypt.providers.ethereum,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then((e=>`0x${parseInt(e).toString(16)}`))});return t.removeListener=(e,t)=>{},{provider:t}},platforms:["all"]},FU={label:qF.Phantom,injectedNamespace:QF.Phantom,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum&&!!e.ethereum[KF.Phantom],getIcon:async()=>(await r.e(35238).then(r.bind(r,335238))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.phantom.ethereum)}),platforms:["all"],externalUrl:GF.Phantom},UU={label:qF.SafePal,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.SafePal],getIcon:async()=>(await r.e(43253).then(r.bind(r,243253))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum)}),platforms:["all"]},zU={label:qF.Rainbow,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Rainbow],getIcon:async()=>(await r.e(55485).then(r.bind(r,955485))).default,getInterface:YF(KF.Rainbow),platforms:["all"]},HU={label:qF.OKXWallet,injectedNamespace:QF.OKXWallet,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.OKXWallet],getIcon:async()=>(await r.e(96172).then(r.bind(r,896172))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.okxwallet)}),platforms:["all"],externalUrl:GF.OKXWallet},VU={label:qF.DeFiWallet,injectedNamespace:QF.DeFiConnectProvider,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.DeFiWallet],getIcon:async()=>(await r.e(7984).then(r.bind(r,107984))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.deficonnectProvider)}),platforms:["all"]},KU={label:qF.Safeheron,injectedNamespace:QF.Safeheron,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Safeheron],getIcon:async()=>(await r.e(59382).then(r.bind(r,259382))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.safeheron)}),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},GU={label:qF.Talisman,injectedNamespace:QF.Talisman,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Talisman],getIcon:async()=>(await r.e(52848).then(r.bind(r,352848))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.talismanEth)}),platforms:["desktop"],externalUrl:GF.Talisman},qU={label:qF.RoninWallet,injectedNamespace:QF.RoninWallet,checkProviderIdentity:({provider:e})=>!!e,getIcon:async()=>(await r.e(4954).then(r.bind(r,304954))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ronin.provider)}),platforms:["all"],externalUrl:GF.RoninWallet},QU=[MU,tU,rU,XF,hU,iU,oU,aU,sU,cU,uU,lU,dU,fU,DU,pU,gU,nU,mU,yU,bU,vU,wU,AU,CU,EU,xU,SU,IU,kU,_U,TU,PU,jU,OU,BU,NU,LU,FU,HU,RU,zU,UU,VU,eU,KU,GU,{label:qF.OneKey,injectedNamespace:QF.OneKey,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum&&!!e.ethereum[KF.OneKey],getIcon:async()=>(await r.e(14752).then(r.bind(r,892371))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.$onekey.ethereum)}),platforms:["all"],externalUrl:GF.OneKey},{label:qF.Fordefi,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Fordefi],getIcon:async()=>(await r.e(58206).then(r.bind(r,958206))).default,getInterface:YF(KF.Fordefi,!0),platforms:["desktop"]},qU,{label:qF.Coin98Wallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Coin98Wallet],getIcon:async()=>(await r.e(1538).then(r.bind(r,101538))).default,getInterface:async()=>{let e;return e=window.hasOwnProperty(QF.Ethereum)&&window[QF.Ethereum].isCoin98?window[QF.Ethereum]:window[QF.Coin98Wallet].provider,{provider:e}},platforms:["all"],externalUrl:GF.Coin98Wallet},{label:qF.SubWallet,injectedNamespace:QF.SubWallet,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.SubWallet],getIcon:async()=>(await r.e(33824).then(r.bind(r,333824))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.SubWallet)}),platforms:["all"],externalUrl:GF.SubWallet},{label:qF.Kayros,injectedNamespace:QF.Kayros,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Kayros],getIcon:async()=>(await r.e(98766).then(r.bind(r,198766))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.kayros)}),platforms:["desktop"]},{label:qF.FoxWallet,injectedNamespace:QF.FoxWallet,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.FoxWallet],getIcon:async()=>(await r.e(42131).then(r.bind(r,242131))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.foxwallet)}),platforms:["mobile"]},{label:qF.Lif3Wallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Lif3Wallet],getIcon:async()=>(await r.e(99318).then(r.bind(r,699318))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:JF,eth_selectAccounts:JF})}),platforms:["mobile"]},{label:qF.ZodiacPilot,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.ZodiacPilot],getIcon:async()=>(await r.e(54029).then(r.bind(r,654029))).default,getInterface:async()=>({provider:(0,f.createEIP1193Provider)(window.ethereum)}),platforms:["desktop"],externalUrl:GF.ZodiacPilot},{label:qF.StableWallet,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.StableWallet],getIcon:async()=>(await r.e(97913).then(r.bind(r,597913))).default,getInterface:YF(KF.StableWallet),platforms:["mobile"]},{label:qF.Echooo,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Echooo],getIcon:async()=>(await r.e(13876).then(r.bind(r,613876))).default,getInterface:YF(KF.Echooo),platforms:["all"],externalUrl:GF.Echooo},{label:qF.Keplr,injectedNamespace:QF.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KF.Keplr],getIcon:async()=>(await r.e(26169).then(r.bind(r,226169))).default,getInterface:YF(KF.Keplr),platforms:["all"],externalUrl:GF.Keplr}],WU=d.object({label:d.string().required(),getIcon:d.function().arity(0).required(),getInterface:d.function().maxArity(1).required(),injectedNamespace:d.string().required(),checkProviderIdentity:d.function().arity(1).required(),platforms:d.array().items(d.string()),externalUrl:d.string()}),JU=d.array().items(WU),YU=d.object().pattern(/\w+/,d.any().allow(d.boolean(),d.array().items(d.string()))),ZU=d.object({custom:JU,filter:YU,displayUnavailable:[d.boolean(),d.array().items(d.string())],walletUnavailableMessage:d.function(),sort:d.function(),externalUrl:d.string(),disable6963Support:d.boolean()}),$U=d.object({uuid:d.string().required(),name:d.string().required(),icon:d.string().required(),rdns:d.string().required()}),XU=d.object({info:$U.required(),provider:d.object().required()});Error;const ez=[];function tz(){window.addEventListener("eip6963:announceProvider",(e=>{const t=e,{detail:r}=t;if(!r)return;if(t){const e=(e=>(0,f.tf)(XU,e))(r);if(e&&e.error)throw e.error}const{info:n,provider:i}=r,{name:o,icon:a}=n;var s;(s=a)&&(/)<[^<]*)*<\/script>/gi.test(s)||/\bon[a-z]+\s*=\s*["']?(?:javascript:)?/gi.test(s)||/\b(href|xlink:href)\s*=\s*["']?javascript:/gi.test(s))?console.error(`The icon for injected wallet: ${o} contains executable JavaScript and has been blocked.`):ez.push({label:o,getIcon:async()=>a,getInterface:async()=>({provider:i}),platforms:["all"],eip6963Provider:i,checkProviderIdentity:({provider:e})=>!!e})})),window.dispatchEvent(new CustomEvent("eip6963:requestProvider"))}const rz=function(e){if("undefined"==typeof window)return()=>null;if(e){const t=(e=>(0,f.tf)(ZU,e))(e);if(t&&t.error)throw t.error}return!e?.disable6963Support&&tz(),t=>{const{device:r}=t,{custom:n=[],filter:i={},displayUnavailable:o,sort:a,walletUnavailableMessage:s}=e||{},c=WF([...n,...ez,...QU],(({label:e})=>e)).reduce(((e,t)=>{const{label:n,platforms:a,injectedNamespace:c,checkProviderIdentity:u,eip6963Provider:l}=t,d=i[n],f=!1===d,h=((e,t,r)=>!(!e||!t({provider:e,device:r})&&!e.providers?.some((e=>t({provider:e,device:r})))))(l||window[c],u,r);let p=!1;Array.isArray(d)&&(d.includes(r.type)||r.os&&d.includes(r.os.name))&&(p=!0),"unavailable"!==d||h||(p=!0);const g=!a.includes("all")&&null!==r.type&&!a.includes(r.type)&&!a.includes(r.os.name);return!f&&!p&&!g&&(h||!0===o||Array.isArray(o)&&o.length&&o.includes(t.label))&&e.push((!0===o||Array.isArray(o)&&o.length&&o.includes(t.label))&&!h?{...t,getInterface:async()=>{throw new Error(s?s(t):(({label:e,externalUrl:t})=>t?`Please install or switch to ${e} to continue`:`Please install or enable ${e} to continue`)(t))}}:t),e}),[]);if(c.length){const e=c.length>1,t=c.filter((t=>{const{label:r}=t;return!(r===qF.Detected&&e)})).map((({label:e,getIcon:t,getInterface:r})=>({label:e,getIcon:t,getInterface:r}))).sort(((e,t)=>e.labelt.label?1:0));return a?a(t):t}return[]}},nz=d.object({handleUri:d.func().optional(),version:d.number().optional().custom(((e,t)=>{if(1===e)console.warn("Version 1 of WalletConnect has been fully deprecated. This version of @web3-onboard/walletconnect only supports version 2");else if(2!==e&&void 0!==e)return t.error("any.invalid",{message:"Invalid version number. This version of @web3-onboard/walletconnect only supports version 2"});return e}),"Custom version validation"),projectId:d.string().messages({"any.required":"WalletConnect version 2 requires a projectId. Please visit https://cloud.walletconnect.com to get one."}),dappUrl:d.string().optional().custom(((e,t)=>e||t.message({message:"It is strongly recommended to supply a dappUrl as it is required by some wallets (i.e. MetaMask) to allow connection.",type:"any.custom"})),"Custom dappUrl validation"),requiredChains:d.array().items(d.number()).optional(),optionalChains:d.array().items(d.number()).optional(),qrModalOptions:d.object().optional(),additionalRequiredMethods:d.array().items(d.string()).optional(),additionalOptionalMethods:d.array().items(d.string()).optional()}),iz=["eth_sendTransaction","eth_signTransaction","personal_sign","eth_sign","eth_signTypedData","eth_signTypedData_v4","wallet_addEthereumChain","wallet_switchEthereumChain"];const oz=function(e){if(!e.projectId)throw new Error("WalletConnect requires a projectId. Please visit https://cloud.walletconnect.com to get one.");e.dappUrl||console.warn("It is strongly recommended to supply a dappUrl to the WalletConnect init object as it is required by some wallets (i.e. MetaMask) to allow connection.");const{projectId:t,handleUri:n,requiredChains:i,optionalChains:o,qrModalOptions:a,additionalRequiredMethods:s,additionalOptionalMethods:c,dappUrl:u}=e;let l;return()=>({label:"WalletConnect",getIcon:async()=>(await r.e(69995).then(r.bind(r,869995))).default,getInterface:async({chains:d,EventEmitter:f,appMetadata:h})=>{const{ProviderRpcError:p,ProviderRpcErrorCode:g}=await Promise.resolve().then(r.bind(r,645599)),{default:m,REQUIRED_METHODS:y}=await Promise.all([r.e(14485),r.e(99432)]).then(r.bind(r,314485)),{Subject:b,fromEvent:v}=await r.e(3540).then(r.bind(r,303540)),{takeUntil:w,take:A}=await r.e(47402).then(r.bind(r,647402)),C=Array.isArray(i)&&i.length&&i.every((e=>!isNaN(e)))?i.map((e=>parseInt(e))):[],E=Array.isArray(o)&&o.length&&o.every((e=>!isNaN(e)))?o.map((e=>parseInt(e))):d.map((({id:e})=>parseInt(e,16))),x=new Set(s&&Array.isArray(s)?[...s,...y]:y),S=Array.from(x),I=c&&Array.isArray(c)?[...c,...iz]:iz,k=await m.init({projectId:t,chains:C,methods:S,optionalChains:E,optionalMethods:I,showQrModal:!0,rpcMap:d.map((({id:e,rpcUrl:t})=>({id:e,rpcUrl:t}))).reduce(((e,{id:t,rpcUrl:r})=>(e[parseInt(t,16)]=r||"",e)),{}),metadata:(()=>{if(!h)return;const e=u||h.explore||"";!e&&!e.length&&console.warn("It is strongly recommended to supply a dappUrl as it is required by some wallets (i.e. MetaMask) to allow connection.");const t={name:h.name,description:h.description||"",url:e,icons:[]};return void 0!==h.icon&&h.icon.length&&(t.icons=[h.icon]),void 0!==h.logo&&h.logo.length&&(t.icons=t.icons.length?[...t.icons,h.logo]:[h.logo]),t})(),qrModalOptions:a}),_=new f;return{provider:new class{constructor({connector:t,chains:r}){this.emit=_.emit.bind(_),this.on=_.on.bind(_),this.removeListener=_.removeListener.bind(_),this.connector=t,this.chains=r,this.disconnected$=new b,v(this.connector,"accountsChanged",(e=>e)).pipe(w(this.disconnected$)).subscribe({next:e=>{const t=Array.isArray(e)?e:[e];this.emit("accountsChanged",t)},error:console.warn}),v(this.connector,"chainChanged",(e=>e)).pipe(w(this.disconnected$)).subscribe({next:e=>{const t=az(e)?e:`0x${e.toString(16)}`;this.emit("chainChanged",t)},error:console.warn}),v(this.connector,"session_delete",(e=>e)).pipe(w(this.disconnected$)).subscribe({next:()=>{this.emit("accountsChanged",[]),this.disconnected$.next(!0),"undefined"!=typeof localStorage&&localStorage.removeItem("walletconnect")},error:console.warn}),this.disconnect=()=>{this.connector.session&&(this.connector.disconnect(),l=null)},e&&n&&v(this.connector,"display_uri",(e=>e)).pipe(w(this.disconnected$)).subscribe((async e=>{try{n&&await n(e)}catch(ys){throw`An error occurred when handling the URI. Error: ${ys}`}}));(()=>{const e=this.connector.session;l=e,e&&(this.emit("accountsChanged",this.connector.accounts),this.emit("chainChanged",this.connector.chainId))})(),this.request=async({method:e,params:t})=>{if("eth_chainId"===e)return az(this.connector.chainId)?this.connector.chainId:`0x${this.connector.chainId.toString(16)}`;if("eth_requestAccounts"===e)return new Promise((async(e,t)=>{if(v(this.connector,"connect",(e=>e)).pipe(A(1)).subscribe({next:({chainId:t})=>{this.emit("accountsChanged",this.connector.accounts);const r=az(t)?t:`0x${t.toString(16)}`;this.emit("chainChanged",r),e(this.connector.accounts)},error:t}),this.connector.session){const t=this.connector.accounts,r=this.connector.chainId;l=this.connector.session;const n=`0x${r.toString(16)}`;return this.emit("chainChanged",n),e(t)}await this.connector.connect().catch((e=>{console.error("err creating new session: ",e),t(new p({code:4001,message:"User rejected the request."}))}))}));if("eth_selectAccounts"===e)throw new p({code:g.UNSUPPORTED_METHOD,message:`The Provider does not support the requested method: ${e}`});if("wallet_switchEthereumChain"==e){if(!t)throw new p({code:g.INVALID_PARAMS,message:"The Provider requires a chainId to be passed in as an argument"});const e=t[0];if(!e.hasOwnProperty("chainId")||void 0===e.chainId)throw new p({code:g.INVALID_PARAMS,message:"The Provider requires a chainId to be passed in as an argument"});return this.connector.request({method:"wallet_switchEthereumChain",params:[{chainId:e.chainId}]})}return this.connector.request({method:e,params:t})}}}({chains:d,connector:k}),instance:l}}})},az=e=>!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/));const sz=function(e){if(!e)throw new Error("WalletConnect requires an initialization object to be passed - see the official docs for an example: https://onboard.blocknative.com/docs/wallets/walletconnect");if(e){const t=(e=>((e,t)=>{const r=e.validate(t);return r.error?r:null})(nz,e))(e);if(t)throw t}return oz(e)};var cz="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},uz=function(e){try{return!!e()}catch(ys){return!0}},lz=!uz((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),dz=lz,fz=Function.prototype,hz=fz.call,pz=dz&&fz.bind.bind(hz,hz),gz=dz?pz:function(e){return function(){return hz.apply(e,arguments)}},mz=gz,yz=mz({}.toString),bz=mz("".slice),vz=function(e){return bz(yz(e),8,-1)},wz=uz,Az=vz,Cz=Object,Ez=gz("".split),xz=wz((function(){return!Cz("z").propertyIsEnumerable(0)}))?function(e){return"String"===Az(e)?Ez(e,""):Cz(e)}:Cz,Sz=function(e){return null==e},Iz=Sz,kz=TypeError,_z=function(e){if(Iz(e))throw new kz("Can't call method on "+e);return e},Tz=xz,Mz=_z,Pz=function(e){return Tz(Mz(e))},jz=function(e){return e&&e.Math===Math&&e},Dz=jz("object"==typeof globalThis&&globalThis)||jz("object"==typeof window&&window)||jz("object"==typeof self&&self)||jz("object"==typeof cz&&cz)||jz("object"==typeof cz&&cz)||function(){return this}()||Function("return this")(),Oz={exports:{}},Bz=Dz,Nz=Object.defineProperty,Rz=function(e,t){try{Nz(Bz,e,{value:t,configurable:!0,writable:!0})}catch(ys){Bz[e]=t}return t},Lz=Dz,Fz=Rz,Uz="__core-js_shared__",zz=Oz.exports=Lz[Uz]||Fz(Uz,{});(zz.versions||(zz.versions=[])).push({version:"3.38.1",mode:"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Hz,Vz,Kz=Oz.exports,Gz=function(e,t){return Kz[e]||(Kz[e]=t||{})},qz=_z,Qz=Object,Wz=function(e){return Qz(qz(e))},Jz=Wz,Yz=gz({}.hasOwnProperty),Zz=Object.hasOwn||function(e,t){return Yz(Jz(e),t)},$z=gz,Xz=0,eH=Math.random(),tH=$z(1..toString),rH=function(e){return"Symbol("+(void 0===e?"":e)+")_"+tH(++Xz+eH,36)},nH=Dz.navigator,iH=nH&&nH.userAgent,oH=iH?String(iH):"",aH=Dz,sH=oH,cH=aH.process,uH=aH.Deno,lH=cH&&cH.versions||uH&&uH.version,dH=lH&&lH.v8;dH&&(Vz=(Hz=dH.split("."))[0]>0&&Hz[0]<4?1:+(Hz[0]+Hz[1])),!Vz&&sH&&(!(Hz=sH.match(/Edge\/(\d+)/))||Hz[1]>=74)&&(Hz=sH.match(/Chrome\/(\d+)/))&&(Vz=+Hz[1]);var fH=Vz,hH=fH,pH=uz,gH=Dz.String,mH=!!Object.getOwnPropertySymbols&&!pH((function(){var e=Symbol("symbol detection");return!gH(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&hH&&hH<41})),yH=mH&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bH=Gz,vH=Zz,wH=rH,AH=mH,CH=yH,EH=Dz.Symbol,xH=bH("wks"),SH=CH?EH.for||EH:EH&&EH.withoutSetter||wH,IH=function(e){return vH(xH,e)||(xH[e]=AH&&vH(EH,e)?EH[e]:SH("Symbol."+e)),xH[e]},kH="object"==typeof document&&document.all,_H=void 0===kH&&void 0!==kH?function(e){return"function"==typeof e||e===kH}:function(e){return"function"==typeof e},TH=_H,MH=function(e){return"object"==typeof e?null!==e:TH(e)},PH=MH,jH=String,DH=TypeError,OH=function(e){if(PH(e))return e;throw new DH(jH(e)+" is not an object")},BH={},NH=!uz((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),RH=NH&&uz((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),LH={},FH=MH,UH=Dz.document,zH=FH(UH)&&FH(UH.createElement),HH=function(e){return zH?UH.createElement(e):{}},VH=HH,KH=!NH&&!uz((function(){return 7!==Object.defineProperty(VH("div"),"a",{get:function(){return 7}}).a})),GH=lz,qH=Function.prototype.call,QH=GH?qH.bind(qH):function(){return qH.apply(qH,arguments)},WH=Dz,JH=_H,YH=function(e,t){return arguments.length<2?(r=WH[e],JH(r)?r:void 0):WH[e]&&WH[e][t];var r},ZH=gz({}.isPrototypeOf),$H=YH,XH=_H,eV=ZH,tV=Object,rV=yH?function(e){return"symbol"==typeof e}:function(e){var t=$H("Symbol");return XH(t)&&eV(t.prototype,tV(e))},nV=String,iV=function(e){try{return nV(e)}catch(ys){return"Object"}},oV=_H,aV=iV,sV=TypeError,cV=function(e){if(oV(e))return e;throw new sV(aV(e)+" is not a function")},uV=cV,lV=Sz,dV=function(e,t){var r=e[t];return lV(r)?void 0:uV(r)},fV=QH,hV=_H,pV=MH,gV=TypeError,mV=QH,yV=MH,bV=rV,vV=dV,wV=function(e,t){var r,n;if("string"===t&&hV(r=e.toString)&&!pV(n=fV(r,e)))return n;if(hV(r=e.valueOf)&&!pV(n=fV(r,e)))return n;if("string"!==t&&hV(r=e.toString)&&!pV(n=fV(r,e)))return n;throw new gV("Can't convert object to primitive value")},AV=TypeError,CV=IH("toPrimitive"),EV=function(e,t){if(!yV(e)||bV(e))return e;var r,n=vV(e,CV);if(n){if(void 0===t&&(t="default"),r=mV(n,e,t),!yV(r)||bV(r))return r;throw new AV("Can't convert object to primitive value")}return void 0===t&&(t="number"),wV(e,t)},xV=rV,SV=function(e){var t=EV(e,"string");return xV(t)?t:t+""},IV=NH,kV=KH,_V=RH,TV=OH,MV=SV,PV=TypeError,jV=Object.defineProperty,DV=Object.getOwnPropertyDescriptor,OV="enumerable",BV="configurable",NV="writable";LH.f=IV?_V?function(e,t,r){if(TV(e),t=MV(t),TV(r),"function"==typeof e&&"prototype"===t&&"value"in r&&NV in r&&!r[NV]){var n=DV(e,t);n&&n[NV]&&(e[t]=r.value,r={configurable:BV in r?r[BV]:n[BV],enumerable:OV in r?r[OV]:n[OV],writable:!1})}return jV(e,t,r)}:jV:function(e,t,r){if(TV(e),t=MV(t),TV(r),kV)try{return jV(e,t,r)}catch(ys){}if("get"in r||"set"in r)throw new PV("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var RV=Math.ceil,LV=Math.floor,FV=Math.trunc||function(e){var t=+e;return(t>0?LV:RV)(t)},UV=FV,zV=function(e){var t=+e;return t!=t||0===t?0:UV(t)},HV=zV,VV=Math.max,KV=Math.min,GV=function(e,t){var r=HV(e);return r<0?VV(r+t,0):KV(r,t)},qV=zV,QV=Math.min,WV=function(e){var t=qV(e);return t>0?QV(t,9007199254740991):0},JV=WV,YV=function(e){return JV(e.length)},ZV=Pz,$V=GV,XV=YV,eK=function(e){return function(t,r,n){var i=ZV(t),o=XV(i);if(0===o)return!e&&-1;var a,s=$V(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},tK={includes:eK(!0),indexOf:eK(!1)},rK={},nK=Zz,iK=Pz,oK=tK.indexOf,aK=rK,sK=gz([].push),cK=function(e,t){var r,n=iK(e),i=0,o=[];for(r in n)!nK(aK,r)&&nK(n,r)&&sK(o,r);for(;t.length>i;)nK(n,r=t[i++])&&(~oK(o,r)||sK(o,r));return o},uK=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lK=cK,dK=uK,fK=Object.keys||function(e){return lK(e,dK)},hK=NH,pK=RH,gK=LH,mK=OH,yK=Pz,bK=fK;BH.f=hK&&!pK?Object.defineProperties:function(e,t){mK(e);for(var r,n=yK(t),i=bK(t),o=i.length,a=0;o>a;)gK.f(e,r=i[a++],n[r]);return e};var vK,wK=YH("document","documentElement"),AK=rH,CK=Gz("keys"),EK=function(e){return CK[e]||(CK[e]=AK(e))},xK=OH,SK=BH,IK=uK,kK=rK,_K=wK,TK=HH,MK="prototype",PK="script",jK=EK("IE_PROTO"),DK=function(){},OK=function(e){return"<"+PK+">"+e+""},BK=function(e){e.write(OK("")),e.close();var t=e.parentWindow.Object;return e=null,t},NK=function(){try{vK=new ActiveXObject("htmlfile")}catch(ys){}var e,t,r;NK="undefined"!=typeof document?document.domain&&vK?BK(vK):(t=TK("iframe"),r="java"+PK+":",t.style.display="none",_K.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(OK("document.F=Object")),e.close(),e.F):BK(vK);for(var n=IK.length;n--;)delete NK[MK][IK[n]];return NK()};kK[jK]=!0;var RK=Object.create||function(e,t){var r;return null!==e?(DK[MK]=xK(e),r=new DK,DK[MK]=null,r[jK]=e):r=NK(),void 0===t?r:SK.f(r,t)},LK=IH,FK=RK,UK=LH.f,zK=LK("unscopables"),HK=Array.prototype;void 0===HK[zK]&&UK(HK,zK,{configurable:!0,value:FK(null)});var VK,KK,GK,qK=function(e){HK[zK][e]=!0},QK={},WK=_H,JK=Dz.WeakMap,YK=WK(JK)&&/native code/.test(String(JK)),ZK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$K=LH,XK=ZK,eG=NH?function(e,t,r){return $K.f(e,t,XK(1,r))}:function(e,t,r){return e[t]=r,e},tG=YK,rG=Dz,nG=MH,iG=eG,oG=Zz,aG=Oz.exports,sG=EK,cG=rK,uG="Object already initialized",lG=rG.TypeError,dG=rG.WeakMap;if(tG||aG.state){var fG=aG.state||(aG.state=new dG);fG.get=fG.get,fG.has=fG.has,fG.set=fG.set,VK=function(e,t){if(fG.has(e))throw new lG(uG);return t.facade=e,fG.set(e,t),t},KK=function(e){return fG.get(e)||{}},GK=function(e){return fG.has(e)}}else{var hG=sG("state");cG[hG]=!0,VK=function(e,t){if(oG(e,hG))throw new lG(uG);return t.facade=e,iG(e,hG,t),t},KK=function(e){return oG(e,hG)?e[hG]:{}},GK=function(e){return oG(e,hG)}}var pG={set:VK,get:KK,has:GK,enforce:function(e){return GK(e)?KK(e):VK(e,{})},getterFor:function(e){return function(t){var r;if(!nG(t)||(r=KK(t)).type!==e)throw new lG("Incompatible receiver, "+e+" required");return r}}},gG={},mG={},yG={}.propertyIsEnumerable,bG=Object.getOwnPropertyDescriptor,vG=bG&&!yG.call({1:2},1);mG.f=vG?function(e){var t=bG(this,e);return!!t&&t.enumerable}:yG;var wG=NH,AG=QH,CG=mG,EG=ZK,xG=Pz,SG=SV,IG=Zz,kG=KH,_G=Object.getOwnPropertyDescriptor;gG.f=wG?_G:function(e,t){if(e=xG(e),t=SG(t),kG)try{return _G(e,t)}catch(ys){}if(IG(e,t))return EG(!AG(CG.f,e,t),e[t])};var TG={exports:{}},MG=NH,PG=Zz,jG=Function.prototype,DG=MG&&Object.getOwnPropertyDescriptor,OG=PG(jG,"name"),BG={EXISTS:OG,PROPER:OG&&"something"===function(){}.name,CONFIGURABLE:OG&&(!MG||MG&&DG(jG,"name").configurable)},NG=gz,RG=_H,LG=Oz.exports,FG=NG(Function.toString);RG(LG.inspectSource)||(LG.inspectSource=function(e){return FG(e)});var UG=LG.inspectSource,zG=gz,HG=uz,VG=_H,KG=Zz,GG=NH,qG=BG.CONFIGURABLE,QG=UG,WG=pG.enforce,JG=pG.get,YG=String,ZG=Object.defineProperty,$G=zG("".slice),XG=zG("".replace),eq=zG([].join),tq=GG&&!HG((function(){return 8!==ZG((function(){}),"length",{value:8}).length})),rq=String(String).split("String"),nq=TG.exports=function(e,t,r){"Symbol("===$G(YG(t),0,7)&&(t="["+XG(YG(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!KG(e,"name")||qG&&e.name!==t)&&(GG?ZG(e,"name",{value:t,configurable:!0}):e.name=t),tq&&r&&KG(r,"arity")&&e.length!==r.arity&&ZG(e,"length",{value:r.arity});try{r&&KG(r,"constructor")&&r.constructor?GG&&ZG(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(ys){}var n=WG(e);return KG(n,"source")||(n.source=eq(rq,"string"==typeof t?t:"")),e};Function.prototype.toString=nq((function(){return VG(this)&&JG(this).source||QG(this)}),"toString");var iq=_H,oq=LH,aq=TG.exports,sq=Rz,cq=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;if(iq(r)&&aq(r,o,n),n.global)i?e[t]=r:sq(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(ys){}i?e[t]=r:oq.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},uq={},lq=cK,dq=uK.concat("length","prototype");uq.f=Object.getOwnPropertyNames||function(e){return lq(e,dq)};var fq={};fq.f=Object.getOwnPropertySymbols;var hq,pq,gq,mq=YH,yq=uq,bq=fq,vq=OH,wq=gz([].concat),Aq=mq("Reflect","ownKeys")||function(e){var t=yq.f(vq(e)),r=bq.f;return r?wq(t,r(e)):t},Cq=Zz,Eq=Aq,xq=gG,Sq=LH,Iq=function(e,t,r){for(var n=Eq(t),i=Sq.f,o=xq.f,a=0;a=t.length)return e.target=null,nW(void 0,!0);switch(e.kind){case"keys":return nW(r,!1);case"values":return nW(t[r],!1)}return nW([r,t[r]],!1)}),"values"),uW=XQ.Arguments=XQ.Array;if($Q("keys"),$Q("values"),$Q("entries"),iW&&"values"!==uW.name)try{tW(uW,"name",{value:"values"})}catch(ys){}var lW=NH,dW=gz,fW=QH,hW=uz,pW=fK,gW=fq,mW=mG,yW=Wz,bW=xz,vW=Object.assign,wW=Object.defineProperty,AW=dW([].concat),CW=!vW||hW((function(){if(lW&&1!==vW({b:1},vW(wW({},"a",{enumerable:!0,get:function(){wW(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!==vW({},e)[r]||pW(vW({},t)).join("")!==n}))?function(e,t){for(var r=yW(e),n=arguments.length,i=1,o=gW.f,a=mW.f;n>i;)for(var s,c=bW(arguments[i++]),u=o?AW(pW(c),o(c)):pW(c),l=u.length,d=0;l>d;)s=u[d++],lW&&!fW(a,c,s)||(r[s]=c[s]);return r}:vW,EW=CW;Vq({target:"Object",stat:!0,arity:2,forced:Object.assign!==EW},{assign:EW});var xW={};xW[IH("toStringTag")]="z";var SW="[object z]"===String(xW),IW=_H,kW=vz,_W=IH("toStringTag"),TW=Object,MW="Arguments"===kW(function(){return arguments}()),PW=SW?kW:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(ys){}}(t=TW(e),_W))?r:MW?kW(t):"Object"===(n=kW(t))&&IW(t.callee)?"Arguments":n},jW=PW,DW=String,OW=function(e){if("Symbol"===jW(e))throw new TypeError("Cannot convert a Symbol value to a string");return DW(e)},BW=OH,NW=function(){var e=BW(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},RW=QH,LW=Zz,FW=ZH,UW=NW,zW=RegExp.prototype,HW=function(e){var t=e.flags;return void 0!==t||"flags"in zW||LW(e,"flags")||!FW(zW,e)?t:RW(UW,e)},VW=BG.PROPER,KW=cq,GW=OH,qW=OW,QW=uz,WW=HW,JW="toString",YW=RegExp.prototype,ZW=YW[JW],$W=QW((function(){return"/a/b"!==ZW.call({source:"a",flags:"b"})})),XW=VW&&ZW.name!==JW;($W||XW)&&KW(YW,JW,(function(){var e=GW(this);return"/"+qW(e.source)+"/"+qW(WW(e))}),{unsafe:!0});var eJ=HH("span").classList,tJ=eJ&&eJ.constructor&&eJ.constructor.prototype,rJ=tJ===Object.prototype?void 0:tJ,nJ=Dz,iJ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},oJ=rJ,aJ=cW,sJ=eG,cJ=dQ,uJ=IH("iterator"),lJ=aJ.values,dJ=function(e,t){if(e){if(e[uJ]!==lJ)try{sJ(e,uJ,lJ)}catch(ys){e[uJ]=lJ}if(cJ(e,t,!0),iJ[t])for(var r in aJ)if(e[r]!==aJ[r])try{sJ(e,r,aJ[r])}catch(ys){e[r]=aJ[r]}}};for(var fJ in iJ)dJ(nJ[fJ]&&nJ[fJ].prototype,fJ);function hJ(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);ib)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")})),aY=QH,sY=gz,cY=OW,uY=NW,lY=XJ,dY=RK,fY=pG.get,hY=rY,pY=oY,gY=Gz("native-string-replace",String.prototype.replace),mY=RegExp.prototype.exec,yY=mY,bY=sY("".charAt),vY=sY("".indexOf),wY=sY("".replace),AY=sY("".slice),CY=function(){var e=/a/,t=/b*/g;return aY(mY,e,"a"),aY(mY,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),EY=lY.BROKEN_CARET,xY=void 0!==/()??/.exec("")[1];(CY||xY||EY||hY||pY)&&(yY=function(e){var t,r,n,i,o,a,s,c=this,u=fY(c),l=cY(e),d=u.raw;if(d)return d.lastIndex=c.lastIndex,t=aY(yY,d,l),c.lastIndex=d.lastIndex,t;var f=u.groups,h=EY&&c.sticky,p=aY(uY,c),g=c.source,m=0,y=l;if(h&&(p=wY(p,"y",""),-1===vY(p,"g")&&(p+="g"),y=AY(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==bY(l,c.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,m++),r=new RegExp("^(?:"+g+")",p)),xY&&(r=new RegExp("^"+g+"$(?!\\s)",p)),CY&&(n=c.lastIndex),i=aY(mY,h?r:c,y),h?i?(i.input=AY(i.input,m),i[0]=AY(i[0],m),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:CY&&i&&(c.lastIndex=c.global?i.index+i[0].length:n),xY&&i&&i.length>1&&aY(gY,i[0],r,(function(){for(o=1;o=s?e?"":void 0:(n=UY(o,a))<55296||n>56319||a+1===s||(i=UY(o,a+1))<56320||i>57343?e?FY(o,a):n:e?zY(o,a,a+2):i-56320+(n-55296<<10)+65536}},VY={codeAt:HY(!1),charAt:HY(!0)},KY=VY.charAt,GY=function(e,t,r){return t+(r?KY(e,t).length:1)},qY=QH,QY=OH,WY=_H,JY=vz,YY=SY,ZY=TypeError,$Y=function(e,t){var r=e.exec;if(WY(r)){var n=qY(r,e,t);return null!==n&&QY(n),n}if("RegExp"===JY(e))return qY(YY,e,t);throw new ZY("RegExp#exec called on incompatible receiver")},XY=QH,eZ=OH,tZ=Sz,rZ=WV,nZ=OW,iZ=_z,oZ=dV,aZ=GY,sZ=$Y;function cZ(e){const t=e.match(/(https?:\/\/[^\s]+)/);return t?t[0]:null}OY("match",(function(e,t,r){return[function(t){var r=iZ(this),n=tZ(t)?void 0:oZ(t,e);return n?XY(n,t,r):new RegExp(t)[e](nZ(r))},function(e){var n=eZ(this),i=nZ(e),o=r(t,n,i);if(o.done)return o.value;if(!n.global)return sZ(n,i);var a=n.unicode;n.lastIndex=0;for(var s,c=[],u=0;null!==(s=sZ(n,i));){var l=nZ(s[0]);c[u]=l,""===l&&(n.lastIndex=aZ(i,rZ(n.lastIndex),a)),u++}return 0===u?null:c}]}));var uZ=lz,lZ=Function.prototype,dZ=lZ.apply,fZ=lZ.call,hZ="object"==typeof Reflect&&Reflect.apply||(uZ?fZ.bind(dZ):function(){return fZ.apply(dZ,arguments)}),pZ=gz,gZ=Wz,mZ=Math.floor,yZ=pZ("".charAt),bZ=pZ("".replace),vZ=pZ("".slice),wZ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,AZ=/\$([$&'`]|\d{1,2})/g,CZ=hZ,EZ=QH,xZ=gz,SZ=OY,IZ=uz,kZ=OH,_Z=_H,TZ=Sz,MZ=zV,PZ=WV,jZ=OW,DZ=_z,OZ=GY,BZ=dV,NZ=function(e,t,r,n,i,o){var a=r+e.length,s=n.length,c=AZ;return void 0!==i&&(i=gZ(i),c=wZ),bZ(o,c,(function(o,c){var u;switch(yZ(c,0)){case"$":return"$";case"&":return e;case"`":return vZ(t,0,r);case"'":return vZ(t,a);case"<":u=i[vZ(c,1,-1)];break;default:var l=+c;if(0===l)return o;if(l>s){var d=mZ(l/10);return 0===d?o:d<=s?void 0===n[d-1]?yZ(c,1):n[d-1]+yZ(c,1):o}u=n[l-1]}return void 0===u?"":u}))},RZ=$Y,LZ=IH("replace"),FZ=Math.max,UZ=Math.min,zZ=xZ([].concat),HZ=xZ([].push),VZ=xZ("".indexOf),KZ=xZ("".slice),GZ="$0"==="a".replace(/./,"$0"),qZ=!!/./[LZ]&&""===/./[LZ]("a","$0"),QZ=!IZ((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));SZ("replace",(function(e,t,r){var n=qZ?"$":"$0";return[function(e,r){var n=DZ(this),i=TZ(e)?void 0:BZ(e,LZ);return i?EZ(i,e,n,r):EZ(t,jZ(n),e,r)},function(e,i){var o=kZ(this),a=jZ(e);if("string"==typeof i&&-1===VZ(i,n)&&-1===VZ(i,"$<")){var s=r(t,o,a,i);if(s.done)return s.value}var c=_Z(i);c||(i=jZ(i));var u,l=o.global;l&&(u=o.unicode,o.lastIndex=0);for(var d,f=[];null!==(d=RZ(o,a))&&(HZ(f,d),l);){""===jZ(d[0])&&(o.lastIndex=OZ(a,PZ(o.lastIndex),u))}for(var h,p="",g=0,m=0;m=g&&(p+=KZ(a,g,v)+y,g=v+b.length)}return p+KZ(a,g)}]}),!QZ||!GZ||qZ);const WZ=e=>e.replace(/\n/g,"
").replace(/^\\/g,"");var JZ=tK.includes,YZ=qK;Vq({target:"Array",proto:!0,forced:uz((function(){return!Array(1).includes()}))},{includes:function(e){return JZ(this,e,arguments.length>1?arguments[1]:void 0)}}),YZ("includes");var ZZ=iV,$Z=TypeError,XZ=gz([].slice),e$=XZ,t$=Math.floor,r$=function(e,t){var r=e.length;if(r<8)for(var n,i,o=1;o0;)e[i]=e[--i];i!==o++&&(e[i]=n)}else for(var a=t$(r/2),s=r$(e$(e,0,a),t),c=r$(e$(e,a),t),u=s.length,l=c.length,d=0,f=0;d3)){if(C$)return!0;if(x$)return x$<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)S$.push({k:t+n,v:r})}for(S$.sort((function(e,t){return t.v-e.v})),n=0;ny$(r)?1:-1}}(e)),r=g$(i),n=0;n>>0||(Z$(Y$,r)?16:10))}:Q$;Vq({global:!0,forced:parseInt!==$$},{parseInt:$$});var X$,eX=vz,tX=gz,rX=function(e){if("Function"===eX(e))return tX(e)},nX=MH,iX=vz,oX=IH("match"),aX=function(e){var t;return nX(e)&&(void 0!==(t=e[oX])?!!t:"RegExp"===iX(e))},sX=aX,cX=TypeError,uX=function(e){if(sX(e))throw new cX("The method doesn't accept regular expressions");return e},lX=IH("match"),dX=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[lX]=!1,"/./"[e](t)}catch(n){}}return!1},fX=Vq,hX=rX,pX=gG.f,gX=WV,mX=OW,yX=uX,bX=_z,vX=dX,wX=hX("".slice),AX=Math.min,CX=vX("startsWith");function EX(e,t){let r;const n={version:null,image:null,ogTitle:null,ogDescription:null,ogType:null,siteURL:e,postURL:null,buttons:[],inputText:null,ogImage:null,state:null,ofProtocolIdentifier:null},i=(new DOMParser).parseFromString(t,"text/html").head.querySelectorAll("meta"),o=[],a=[],s=[];if(i.forEach((e=>{var t;const r=null!==(t=e.getAttribute("name"))&&void 0!==t?t:e.getAttribute("property");switch(r){case"fc:frame":case"fc:frame:image":o.push(r);break;case"of:version":case"of:accepts:push":case"of:image":a.push(r);break;case"og:image":s.push(r),a.some((e=>"og:image"===e))||a.push(r),o.some((e=>"og:image"===e))||o.push(r);break;case"og:title":case"og:description":s.push(r)}})),a.includes("of:version")&&a.includes("of:image")&&a.includes("of:accepts:push"))r="of",i.forEach((e=>{const t=e.getAttribute("name")||e.getAttribute("property"),r=e.getAttribute("content");if("og:image"===t&&(n.ogImage=r),t&&r&&t.startsWith("of:")){const e=t.split(":")[2];switch(t){case"og:title":n.ogTitle=r;break;case"og:description":n.ogDescription=r;break;case"og:type":n.ogType=r;break;case"of:version":n.version=r;break;case"of:image":n.image=r;break;case"of:post_url":n.postURL=r;break;case"of:input:text":n.inputText=r;break;case"of:state":n.state=r;break;case`of:button:${e}`:case`of:button:${e}:action`:case`of:button:${e}:target`:{let i=t.split(":").pop();const o=n.buttons.findIndex((t=>t.index===e));-1!==o?(i===e&&(i="content"),n.buttons[o][i]=r):(n.buttons.push({index:e,content:"",action:"",target:void 0}),i===e&&(i="content"),n.buttons[n.buttons.length-1][i]=r);break}}}}));else if(o.includes("fc:frame")&&o.includes("fc:frame:image"))r="fc",i.forEach((e=>{const t=e.getAttribute("name")||e.getAttribute("property"),r=e.getAttribute("content");if("og:image"===t&&(n.ogImage=r),t&&r&&t.startsWith("fc:frame")){const e=t.split(":")[3];switch(t){case"og:title":n.ogTitle=r;break;case"og:description":n.ogDescription=r;break;case"og:type":n.ogType=r;break;case"fc:frame":n.version=r;break;case"fc:frame:image":n.image=r;break;case"fc:frame:post_url":n.postURL=r;break;case"fc:frame:input:text":n.inputText=r;break;case"fc:frame:state":n.state=r;break;case`fc:frame:button:${e}`:case`fc:frame:button:${e}:action`:case`fc:frame:button:${e}:target`:case`fc:frame:button:${e}:post_url`:{let i=t.split(":").pop();const o=n.buttons.findIndex((t=>t.index===e));-1!==o?(i===e&&(i="content"),n.buttons[o][i]=r):(n.buttons.push({index:e,content:"",action:"",target:void 0,post_url:void 0}),i===e&&(i="content"),n.buttons[n.buttons.length-1][i]=r);break}}}}));else{if(!s.includes("og:image"))return r="unsupported",{isValidFrame:!1,frameType:r,message:"Not a valid Frame"};r="og",i.forEach((e=>{const t=e.getAttribute("name")||e.getAttribute("property"),r=e.getAttribute("content");if(t&&r&&t.startsWith("og:"))switch(t){case"og:image":n.ogImage=r;break;case"og:title":n.ogTitle=r;break;case"og:description":n.ogDescription=r;break;case"og:type":n.ogType=r}}))}return n.buttons.sort(((e,t)=>parseInt(e.index)-parseInt(t.index))),{isValidFrame:!0,frameType:r,frameDetails:n}}function xX(e){return!!e.match(/(https?:\/\/[^\s]+)/)}fX({target:"String",proto:!0,forced:!!(CX||(X$=pX(String.prototype,"startsWith"),!X$||X$.writable))&&!CX},{startsWith:function(e){var t=mX(bX(this));yX(e);var r=gX(AX(arguments.length>1?arguments[1]:void 0,t.length)),n=mX(e);return wX(t,r,r+n.length)===n}});var SX=Dz,IX=oH,kX=vz,_X=function(e){return IX.slice(0,e.length)===e},TX=_X("Bun/")?"BUN":_X("Cloudflare-Workers")?"CLOUDFLARE":_X("Deno/")?"DENO":_X("Node.js/")?"NODE":SX.Bun&&"string"==typeof Bun.version?"BUN":SX.Deno&&"object"==typeof Deno.version?"DENO":"process"===kX(SX.process)?"NODE":SX.window&&SX.document?"BROWSER":"REST",MX="NODE"===TX,PX=TG.exports,jX=LH,DX=function(e,t,r){return r.get&&PX(r.get,t,{getter:!0}),r.set&&PX(r.set,t,{setter:!0}),jX.f(e,t,r)},OX=YH,BX=DX,NX=NH,RX=IH("species"),LX=function(e){var t=OX(e);NX&&t&&!t[RX]&&BX(t,RX,{configurable:!0,get:function(){return this}})},FX=ZH,UX=TypeError,zX=function(e,t){if(FX(t,e))return e;throw new UX("Incorrect invocation")},HX=gz,VX=uz,KX=_H,GX=PW,qX=UG,QX=function(){},WX=YH("Reflect","construct"),JX=/^\s*(?:class|function)\b/,YX=HX(JX.exec),ZX=!JX.test(QX),$X=function(e){if(!KX(e))return!1;try{return WX(QX,[],e),!0}catch(ys){return!1}},XX=function(e){if(!KX(e))return!1;switch(GX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ZX||!!YX(JX,qX(e))}catch(ys){return!0}};XX.sham=!0;var e0,t0,r0,n0,i0=!WX||VX((function(){var e;return $X($X.call)||!$X(Object)||!$X((function(){e=!0}))||e}))?XX:$X,o0=i0,a0=iV,s0=TypeError,c0=OH,u0=function(e){if(o0(e))return e;throw new s0(a0(e)+" is not a constructor")},l0=Sz,d0=IH("species"),f0=function(e,t){var r,n=c0(e).constructor;return void 0===n||l0(r=c0(n)[d0])?t:u0(r)},h0=cV,p0=lz,g0=rX(rX.bind),m0=function(e,t){return h0(e),void 0===t?e:p0?g0(e,t):function(){return e.apply(t,arguments)}},y0=TypeError,b0=function(e,t){if(eo;o++)if((s=y(e[o]))&&d3(y3,s))return s;return new m3(!1)}n=f3(e,i)}for(c=f?e.next:n.next;!(u=a3(c,n)).done;){try{s=y(u.value)}catch(ys){p3(n,"throw",ys)}if("object"==typeof s&&s&&d3(y3,s))return s}return new m3(!1)},v3=IH("iterator"),w3=!1;try{var A3=0,C3={next:function(){return{done:!!A3++}},return:function(){w3=!0}};C3[v3]=function(){return this},Array.from(C3,(function(){throw 2}))}catch(ys){}var E3=x1,x3=function(e,t){try{if(!t&&!w3)return!1}catch(ys){return!1}var r=!1;try{var n={};n[v3]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(ys){}return r},S3=R1.CONSTRUCTOR||!x3((function(e){E3.all(e).then(void 0,(function(){}))})),I3=QH,k3=cV,_3=L1,T3=E1,M3=b3;Vq({target:"Promise",stat:!0,forced:S3},{all:function(e){var t=this,r=_3.f(t),n=r.resolve,i=r.reject,o=T3((function(){var r=k3(t.resolve),o=[],a=0,s=1;M3(e,(function(e){var c=a++,u=!1;s++,I3(r,t,e).then((function(e){u||(u=!0,o[c]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var P3=Vq,j3=R1.CONSTRUCTOR,D3=x1,O3=YH,B3=_H,N3=cq,R3=D3&&D3.prototype;if(P3({target:"Promise",proto:!0,forced:j3,real:!0},{catch:function(e){return this.then(void 0,e)}}),B3(D3)){var L3=O3("Promise").prototype.catch;R3.catch!==L3&&N3(R3,"catch",L3,{unsafe:!0})}var F3=QH,U3=cV,z3=L1,H3=E1,V3=b3;Vq({target:"Promise",stat:!0,forced:S3},{race:function(e){var t=this,r=z3.f(t),n=r.reject,i=H3((function(){var i=U3(t.resolve);V3(e,(function(e){F3(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var K3=L1;Vq({target:"Promise",stat:!0,forced:R1.CONSTRUCTOR},{reject:function(e){var t=K3.f(this);return(0,t.reject)(e),t.promise}});var G3=OH,q3=MH,Q3=L1,W3=function(e,t){if(G3(e),q3(t)&&t.constructor===e)return t;var r=Q3.f(e);return(0,r.resolve)(t),r.promise},J3=Vq,Y3=R1.CONSTRUCTOR,Z3=W3;YH("Promise"),J3({target:"Promise",stat:!0,forced:Y3},{resolve:function(e){return Z3(this,e)}});var $3=Vq,X3=uX,e6=_z,t6=OW,r6=dX,n6=gz("".indexOf);$3({target:"String",proto:!0,forced:!r6("includes")},{includes:function(e){return!!~n6(t6(e6(this)),t6(X3(e)),arguments.length>1?arguments[1]:void 0)}});var i6=_H,o6=MH,a6=TQ,s6=LH.f,c6=NH,u6=Dz,l6=gz,d6=Bq,f6=function(e,t,r){var n,i;return a6&&i6(n=t.constructor)&&n!==r&&o6(i=n.prototype)&&i!==r.prototype&&a6(e,i),e},h6=eG,p6=RK,g6=uq.f,m6=ZH,y6=aX,b6=OW,v6=HW,w6=XJ,A6=function(e,t,r){r in e||s6(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},C6=cq,E6=uz,x6=Zz,S6=pG.enforce,I6=LX,k6=rY,_6=oY,T6=IH("match"),M6=u6.RegExp,P6=M6.prototype,j6=u6.SyntaxError,D6=l6(P6.exec),O6=l6("".charAt),B6=l6("".replace),N6=l6("".indexOf),R6=l6("".slice),L6=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,F6=/a/g,U6=/a/g,z6=new M6(F6)!==F6,H6=w6.MISSED_STICKY,V6=w6.UNSUPPORTED_Y,K6=c6&&(!z6||H6||k6||_6||E6((function(){return U6[T6]=!1,M6(F6)!==F6||M6(U6)===U6||"/a/i"!==String(M6(F6,"i"))})));if(d6("RegExp",K6)){for(var G6=function(e,t){var r,n,i,o,a,s,c=m6(P6,this),u=y6(e),l=void 0===t,d=[],f=e;if(!c&&u&&l&&e.constructor===G6)return e;if((u||m6(P6,e))&&(e=e.source,l&&(t=v6(f))),e=void 0===e?"":b6(e),t=void 0===t?"":b6(t),f=e,k6&&"dotAll"in F6&&(n=!!t&&N6(t,"s")>-1)&&(t=B6(t,/s/g,"")),r=t,H6&&"sticky"in F6&&(i=!!t&&N6(t,"y")>-1)&&V6&&(t=B6(t,/y/g,"")),_6&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],a=p6(null),s=!1,c=!1,u=0,l="";n<=r;n++){if("\\"===(t=O6(e,n)))t+=O6(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:if(i+=t,"?:"===R6(e,n+1,n+3))continue;D6(L6,R6(e,n+1))&&(n+=2,c=!0),u++;continue;case">"===t&&c:if(""===l||x6(a,l))throw new j6("Invalid capture group name");a[l]=!0,o[o.length]=[l,u],c=!1,l="";continue}c?l+=t:i+=t}return[i,o]}(e),e=o[0],d=o[1]),a=f6(M6(e,t),c?this:P6,G6),(n||i||d.length)&&(s=S6(a),n&&(s.dotAll=!0,s.raw=G6(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=O6(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+O6(e,++n);return i}(e),r)),i&&(s.sticky=!0),d.length&&(s.groups=d)),e!==f)try{h6(a,"source",""===f?"(?:)":f)}catch(ys){}return a},q6=g6(M6),Q6=0;q6.length>Q6;)A6(G6,M6,q6[Q6++]);P6.constructor=G6,G6.prototype=P6,C6(u6,"RegExp",G6,{constructor:!0})}I6("RegExp");const W6={validURL:function(e){if(!e)return!1;return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\S*)?$","i").test(e)},getSaveFileName:function(e,t){return(e=(e=e.replace(/(^\w+:|^)\/\//,"")).replace(/[`~!@#$%^&*()_|+\-=?;:'",<>\{\}\[\]\\\/]/gi,"")).length>250&&(e=e.substr(-250)),t?e+".temp":e},isMediaSupportedVideo:function(e){if(!e)return;const t=W6.isMediaExternalEmbed(e);return t||"mp4"===e.split(".").pop()},isMediaExternalEmbed:function(e){return W6.isMediaYoutube(e)},isMediaYoutube:function(e){if(void 0!==e||""!==e){const t=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=|\?v=)([^#\&\?]*).*/,r=e.match(t);if(r&&11===r[2].length){return"https://www.youtube.com/embed/"+r[2]+"?autoplay=0&enablejsapi=1"}}return""},getYoutubeID:function(e){if(void 0!==e||""!==e){const t=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=|\?v=)([^#\&\?]*).*/,r=e.match(t);if(r&&11===r[2].length)return r[2]}return""}};function J6(e){const t=s().unix(Number(e));return s()().isSame(t,"day")?`Today | ${t.format("hh:mm A")}`:s()().subtract(1,"days").isSame(t,"day")?`Yesterday | ${t.format("hh:mm A")}`:s()().add(1,"days").isSame(t,"day")?`Tomorrow | ${t.format("hh:mm A")}`:t.format("DD MMM YYYY | hh:mm A")}const Y6=o.Ay.div.withConfig({displayName:"loader__StyledCircularLoader2",componentId:"sc-1p4z6sw-0"})(["width:20px;height:20px;.lds-ring{display:inline-block;position:relative;width:20px;height:20px;}.lds-ring div{box-sizing:border-box;display:block;position:absolute;width:20px;height:20px;margin:0px;border:2px solid ",";border-radius:50%;animation:lds-ring 1.2s cubic-bezier(0.5,0,0.5,1) infinite;border-color:"," transparent transparent transparent;}.lds-ring div:nth-child(1){animation-delay:-0.45s;}.lds-ring div:nth-child(2){animation-delay:-0.3s;}.lds-ring div:nth-child(3){animation-delay:-0.15s;}@keyframes lds-ring{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"],(({color:e})=>e),(({color:e})=>e)),Z6=({color:e="#fff"})=>(0,n.jsx)(Y6,Object.assign({color:e},{children:(0,n.jsxs)("div",Object.assign({className:"lds-ring"},{children:[(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{})]}))}));var $6=i.memo(Z6);const X6=({imageOverlay:e,setImageOverlay:t})=>(0,n.jsx)(e4,Object.assign({onClick:()=>{t("")},visible:Boolean(e)},{children:(0,n.jsx)("img",{src:e,alt:"overlay full-screen"})})),e4=o.Ay.div.withConfig({displayName:"overlay__ImageWrapper",componentId:"sc-1e2lr8x-0"})(["height:100vh;width:100vw;background:rgba(0,0,0,0.75);position:fixed;top:0;left:0;justify-content:center;align-items:center;display:",";z-index:2;img{max-width:80vw;height:auto;border-radius:10px;}"],(e=>e.visible?"flex":"none"));class t4{constructor(e,t){this.text=e,this.patterns=t||[]}parse(){let e=[{children:this.text}];return this.patterns.forEach((t=>{let r=[];const n=t.nonExhaustiveModeMaxMatchCount||0,i=Math.min(Math.max(Number.isInteger(n)?n:0,0)||Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);let o=0;e.forEach((e=>{if(e._matched)return void r.push(e);const n=[];let a,s=e.children,c=0;for(t.pattern.lastIndex=0;s&&(a=t.pattern.exec(s));){const e=s.substr(0,a.index);if(c=a.index,++o>i)break;n.push({children:e}),n.push(this.getMatchedPart(t,a[0],a,c)),s=s.substr(a.index+a[0].length),c+=a[0].length-1,t.pattern.lastIndex=0}n.push({children:s}),r=r.concat(n)})),e=r})),e.forEach((e=>delete e._matched)),e.filter((e=>!!e.children))}getMatchedPart(e,t,r,n){const i={};Object.keys(e).forEach((r=>{"pattern"!==r&&"renderText"!==r&&"nonExhaustiveModeMaxMatchCount"!==r&&("function"==typeof e[r]?i[r]=()=>e[r](t,n):i[r]=e[r])}));let o=t;return e.renderText&&"function"==typeof e.renderText&&(o=e.renderText(t,r)),Object.assign(Object.assign({},i),{children:o,_matched:!0})}}function r4(e){const t=e.match(/\[([^:]+):([^\]]+)\]/i);return`${t?t[2]:""}`}function n4(e){const t=e.match(/(.*?)<\/PUSHText>/i),r=e.match(/\[([^\]]+)]\((https?:\/\/[^)]+)/);if(t){const e=t[1].toLowerCase();let r;switch(e){case"primary":r=i4.PRIMARY;break;case"secondary":r=i4.GRADIENT_SECONDARY;break;case"tertiary":r=i4.GRADIENT_THIRD;break;case"white":r=i4.WHITE;break;default:r=e}const n=t[2];let i;return i=t[3].includes("\\n")?t[3].replace("\\n","
"):t[3],`
${i}`}if(r){const e=r[1];return`${e}`}return e}const i4={PRIMARY:"rgba(27.0, 150.0, 227.0, 1.0)",LINKS:"rgba(20.0, 126.0, 251.0, 1.0)",GRADIENT_PRIMARY:"rgba(226.0, 8.0, 128.0, 1.0)",GRADIENT_SECONDARY:"rgba(53.0, 197.0, 243.0, 1.0)",GRADIENT_THIRD:"rgba(103.0, 76.0, 159.0, 1.0)",TRANSPARENT:"transparent",WHITE:"rgba(255.0, 255.0, 255.0, 1.0)",DARK_WHITE:"rgba(255.0, 255.0, 255.0, 0.75)",MID_WHITE:"rgba(255.0, 255.0, 255.0, 0.5)",LIGHT_WHITE:"rgba(255.0, 255.0, 255.0, 0.25)",SLIGHTER_GRAY:"rgba(250.0, 250.0, 250.0, 1)",SLIGHT_GRAY:"rgba(231.0, 231.0, 231.0, 1)",LIGHT_GRAY:"rgba(225.0, 225.0, 225.0, 1)",MID_GRAY:"rgba(200.0, 200.0, 200.0, 1)",DARK_GRAY:"rgba(160.0, 160.0, 160.0, 1)",DARKER_GRAY:"rgba(100.0, 100.0, 100.0, 1)",LIGHT_BLACK_TRANS:"rgba(0.0, 0.0, 0.0, 0.1)",SEMI_MID_BLACK_TRANS:"rgba(0.0, 0.0, 0.0, 0.25)",MID_BLACK_TRANS:"rgba(0.0, 0.0, 0.0, 0.5)",DARK_BLACK_TRANS:"rgba(0.0, 0.0, 0.0, 0.75)",BLACK:"rgba(0.0, 0.0, 0.0, 1.0)",CONFIRM:"rgba(34.0, 139.0, 34.0, 1.0)",WARNING:"rgba(255.0, 153.0, 0.0, 1.0)",SUBLIME_RED:"rgba(237.0, 59.0, 72.0, 1.0)",BADGE_RED:"rgba(208.0, 44.0, 30.0, 1.0)",LIGHT_MAROON:"rgba(159.0, 0.0, 0.0, 1.0)",LIGHTER_MAROON:"rgba(129.0, 0.0, 0.0, 1.0)"},o4={container:{},name:{color:i4.SUBLIME_RED},username:{color:i4.GRADIENT_SECONDARY},text:{color:i4.BLACK},primary:{color:i4.GRADIENT_PRIMARY},secondary:{color:i4.GRADIENT_SECONDARY},third:{color:i4.GRADIENT_THIRD},error:{color:i4.SUBLIME_RED},white:{color:i4.WHITE},midgray:{color:i4.MID_GRAY},darkgray:{color:i4.DARK_GRAY},darkergray:{color:i4.DARKER_GRAY},link:{color:i4.GRADIENT_PRIMARY},underline:{textDecorationLine:"underline"},bold:{fontWeight:"bold"},italics:{fontStyle:"italic"},pointer:{cursor:"pointer"}},a4=[{pattern:/\[([^\]]+)]\((https?:\/\/[^)]+)\)/g,style:{},renderText:n4},{pattern:/\[(u):([^\]]+)\]/i,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},o4.primary),o4.bold),o4.italics),o4.underline),o4.pointer),renderText:r4},{pattern:/\[(ub):([^\]]+)\]/i,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},o4.secondary),o4.bold),o4.italics),o4.underline),o4.pointer),renderText:r4},{pattern:/\[(ut):([^\]]+)\]/i,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},o4.third),o4.bold),o4.italics),o4.underline),o4.pointer),renderText:r4},{pattern:/(.*?)<\/span>/gi,style:{},renderText:function(e){const t=e.match(/(.*?)<\/span>/i);if(t){const e=t[1].toLowerCase();let r;switch(e){case"primary":r=i4.PRIMARY;break;case"secondary":r=i4.GRADIENT_SECONDARY;break;case"white":r=i4.WHITE;break;default:r=e}let n=t[2];return n.includes("\\n")&&(n=t[2].replace("\\n","
")),`${n}`}return e}},{pattern:/(.*?)<\/PUSHText>/gi,style:{},renderText:n4},{pattern:/\[(up):([^\]]+)\]/i,style:Object.assign(Object.assign(Object.assign(Object.assign({},o4.primary),o4.italics),o4.underline),o4.pointer),renderText:r4},{pattern:/\[(d):([^\]]+)\]/i,style:Object.assign(Object.assign({},o4.primary),o4.bold),renderText:r4},{pattern:/\[(s):([^\]]+)\]/i,style:Object.assign(Object.assign({},o4.secondary),o4.bold),renderText:r4},{pattern:/\[(t):([^\]]+)\]/i,style:Object.assign(Object.assign({},o4.third),o4.bold),renderText:r4},{pattern:/\[(e):([^\]]+)\]/i,style:Object.assign(Object.assign({},o4.error),o4.bold),renderText:r4},{pattern:/\[(b):([^\]]+)\]/i,style:o4.bold,renderText:r4},{pattern:/\*\*\*(.*?)\*\*\*/g,style:Object.assign(Object.assign({},o4.bold),o4.italics),renderText:e=>e.replace(/\*\*\*(.*?)\*\*\*/g,"$1")},{pattern:/\*\*(.*?)\*\*/g,style:o4.bold,renderText:e=>e.replace(/\*\*(.*?)\*\*/g,"$1")},{pattern:/\\n/g,style:{},renderText:function(e){const t=e.match(/\\n/g);if(null==t?void 0:t.includes("\\n")){return`
${e.replace("\\n","
")}
`}return`
${e}
`}},{pattern:/\*(.*?)\*/g,style:Object.assign({},o4.italics),renderText:e=>e.replace(/\*(.*?)\*/g,"$1")},{pattern:/\[(bi):([^\]]+)\]/i,style:Object.assign(Object.assign({},o4.bold),o4.italics),renderText:r4},{pattern:/\[ts: (\d+)\]/g,style:{},renderText:function(e){const t=e.match(/\[ts: (\d+)\]/);if(t){const e=parseInt(t[1],10);return new Date(1e3*e).toLocaleString()}return e}},{pattern:/\[(w):([^\]]+)\]/i,style:o4.white,renderText:r4},{pattern:/\[(wb):([^\]]+)\]/i,style:Object.assign(Object.assign({},o4.white),o4.bold),renderText:r4},{pattern:/\[(mg):([^\]]+)\]/i,style:o4.midgray,renderText:r4},{pattern:/\[(dg):([^\]]+)\]/i,style:o4.darkgray,renderText:r4},{pattern:/\[(ddg):([^\]]+)\]/i,style:o4.darkergray,renderText:r4}],s4=e=>{const t=Object.assign({},e),{patterns:r}=t,i=hJ(t,["patterns"]);return(0,n.jsx)("div",Object.assign({},i,{children:e.patterns?"string"!=typeof e.children?e.children:new t4(e.children,a4.concat(r)).parse().map(((e,t)=>{const{style:r,children:i}=e;return(0,n.jsx)("span",Object.assign({style:Object.assign({},r)},e.childrenProps,{children:u(WZ(i))}),`parsedText-${t}`)})):e.children}))};s4.propTypes={patterns:gJ.exports.array.isRequired};const c4=e=>{const{text:t,patterns:r}=e,i=r||[];return(0,n.jsx)("div",Object.assign({style:{wordBreak:"break-all"}},{children:(0,n.jsx)(s4,Object.assign({patterns:i},{children:t}))}))},u4=({children:e,tooltipContent:t})=>{let r;const[o,a]=i.useState(!1);return(0,n.jsxs)(l4,Object.assign({onMouseEnter:()=>{r=setTimeout((()=>{a(!0)}),400)},onMouseLeave:()=>{clearInterval(r),a(!1)}},{children:[e,o&&(0,n.jsx)(d4,{children:t})]}))},l4=o.Ay.div.withConfig({displayName:"tooltip__Wrapper",componentId:"sc-6msbcv-0"})(["display:inline-block;position:relative;"]),d4=o.Ay.div.withConfig({displayName:"tooltip__Content",componentId:"sc-6msbcv-1"})(["position:absolute;border-radius:12px 2px 12px 12px;bottom:-28px;transform:translateX(-95%);padding:0.5rem 1rem;color:#fff;background:#131313;font-family:'Strawford';font-style:normal;font-weight:400;font-size:0.9rem;line-height:1;z-index:2;white-space:nowrap;&::before{bottom:100%;border-bottom-color:#131313;}"]),f4=()=>(0,n.jsxs)("svg",Object.assign({id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 1080 1218.5",xmlSpace:"preserve"},{children:[(0,n.jsx)("style",{children:".st0{fill:#1b4add}"}),(0,n.jsx)("path",{className:"st0",d:"M541.8 76.4c2.9 0 5.8.8 8.4 2.3l446.1 259.5c5.2 3 8.4 8.6 8.3 14.5l-1.7 516.1c0 6-3.2 11.5-8.4 14.5l-447.8 256.6c-2.5 1.5-5.5 2.2-8.4 2.2-2.9 0-5.8-.8-8.4-2.3L83.8 880.3c-5.2-3-8.4-8.6-8.3-14.5l1.7-516.1c0-6 3.2-11.5 8.4-14.5L533.4 78.6c2.5-1.5 5.4-2.2 8.4-2.2M542 1c-15.9-.1-31.8 4-46.1 12.2L48.1 269.7c-28.6 16.4-46.2 46.7-46.4 79.7L0 865.5c-.1 32.9 17.4 63.4 45.8 80L491.9 1205c14.2 8.3 30.1 12.4 46.1 12.5 15.9.1 31.8-4 46.1-12.2l447.8-256.6c28.6-16.4 46.2-46.7 46.4-79.7l1.7-516c.1-32.9-17.4-63.4-45.8-80L588.1 13.5C573.8 5.2 557.9 1 542 1z"}),(0,n.jsx)("path",{className:"st0",d:"M632.4 282.3H567c-4.9 0-9.3 3.1-11 7.7L345.8 866.4c-1.4 3.8 1.4 7.8 5.5 7.8h65.4c4.9 0 9.3-3.1 11-7.7L638 290c1.2-3.7-1.6-7.7-5.6-7.7zm-114.4 0h-65.4c-4.9 0-9.3 3.1-11 7.7L231.4 866.4c-1.4 3.8 1.4 7.8 5.5 7.8h65.4c4.9 0 9.3-3.1 11-7.7L523.6 290c1.3-3.7-1.5-7.7-5.6-7.7zm84.7 223.5c-1.9-5.1-9.1-5.1-11 0l-34 93.2c-.9 2.6-.9 5.4 0 8l94.7 259.6c1.7 4.6 6.1 7.7 11 7.7h65.4c4.1 0 6.9-4 5.5-7.8L602.7 505.8zm245.9 360.6L659.9 349.1c-1.9-5.1-9.1-5.1-11 0l-34 93.2c-.9 2.6-.9 5.4 0 8l151.9 416.3c1.7 4.6 6.1 7.7 11 7.7h65.4c3.9-.1 6.8-4.1 5.4-7.9z"})]})),h4=()=>(0,n.jsxs)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"#1D1D1D"}),(0,n.jsx)("path",{d:"M8.16193 12L6.58295 13.579L5 12L6.57898 10.421L8.16193 12ZM12 8.16193L14.7085 10.8705L16.2875 9.29148L12 5L7.70852 9.29148L9.2875 10.8705L12 8.16193ZM17.417 10.421L15.8381 12L17.417 13.579L18.996 12L17.417 10.421ZM12 15.8381L9.29148 13.1295L7.7125 14.7085L12 19L16.2875 14.7085L14.7085 13.1295L12 15.8381ZM12 13.579L13.579 12L12 10.421L10.417 12L12 13.579Z",fill:"#F0B90B"})]})),p4=()=>(0,n.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"100%",x:"0",y:"0",version:"1.1",viewBox:"0 0 315 315",xmlSpace:"preserve"},{children:[(0,n.jsx)("path",{fill:"#FEFEFE",d:"M145 316H1V1h315v315H145M84.363 116.53c-.85.43-1.7.86-2.516 1.368 0 0 .068-.051-.674.022-.994-.013-1.987-.026-3.219-.673-4.257-2.495-8.247-5.775-12.823-7.332-11.763-4.004-22.549 2.473-24.779 14.598-1.454 8.6 1.413 15.964 6.687 23.398.29.386.58.773.612 1.89-2.273 3.811-4.402 7.718-6.847 11.415-7.934 11.994-7.202 26.743 2.109 38.737 1.646 1.547 3.132 3.322 4.965 4.602 7.865 5.49 16.99 4.903 26.715 5.436 2.441.374 4.882.747 7.542 1.654.59.472 1.179.944 2.076 2.067 5.36 3.016 10.358 2.722 14.806-1.647 0 0 .058.086.825.036 2.453-.82 4.905-1.639 8.2-2.416 3.97-.16 7.95-.195 11.91-.503 11.735-.912 19.64-6.893 23.98-18.586 2.843-7.565 3.971-15.155.283-23.532-1.71-2.432-3.422-4.863-5.16-7.999-1.681-4.176-6.968-7.39-2.941-13.325 1.066-2.128 2.132-4.256 3.726-6.942.61-2.059 1.388-4.084 1.804-6.182 2.913-14.676-9.118-26.793-23.48-23.1-4.575 1.177-8.586 4.553-13.51 7.253-1.179.244-2.359.49-3.957.341-.566-.032-1.131-.065-2.172-.39-.537.001-1.074.002-2.439-.322-2.367-.008-4.735-.015-7.916-.164-1.075.179-2.15.358-3.807.296m90.006 24.629c-.26.508-.52 1.015-1.339 1.919-.966 2.655-1.933 5.31-3.114 8.767.12 5.69.239 11.381.587 17.86 1.546 7.038 5.417 12.033 12.511 15.084.021 1.736.042 3.472-.51 5.68.506 2.185-3.37 5.274 1.442 7.017 0 0 .052.435-.566.587a15.03 15.03 0 01-2.948 1.024c-7.45 3.369-8.75 10.81-11.155 17.357-1.165 3.172 1.703 5.544 5.444 4.791l4.107.772c0-2.201 0-3.647.14-5.725l2.613-7.545 1.424.289c.648 3.542.458 7.62 5.583 7.913 5.608.32 5.486-4.248 6.321-7.734 1.914 1.55 3.508 2.84 5.01 5.043l-1.505 7.382h11.089c-2.671-9.09-4.152-18.174-14.188-23.096-.156-4.863-.313-9.726.192-14.834 3.264-3.122 6.53-6.244 10.331-9.83a537.88 537.88 0 012.232-7.6c.375-1.773.75-3.546 1.433-5.926-.506-2.45-1.012-4.902-1.484-8.124-1.537-5.581-3.353-11.17-8.492-14.433-3.386-2.15-7.06-3.49-4.218-8.546.237-.421-.707-1.506-1.27-3.133-.938-3.95.805-5.91 4.206-8.116 2.958-1.92 4.58-5.897 7.437-9.265.749-3.856 1.498-7.711 1.344-11.647h-8.89c0 2.994 0 5.436-.713 8.202-.993.348-1.985.695-3.149.37-1.522-3.55-4.292-4.308-7.618-3.061-2.882 1.08-4.615 3.053-4.002 6.62-.884-1.2-1.57-2.647-2.694-3.553-2.566-2.07.395-8.487-6.327-8.063-1.317.695-3.607 1.239-3.743 2.117-.26 1.67.712 3.533 1.193 5.815.047.16.095.32-.363.75.414.583.829 1.166 1.22 2.427.036.447.072.894.046 2.05 3.67 3.099 7.338 6.197 10.93 10.217.08 4.375.159 8.75-.085 13.665-.994.73-1.989 1.46-3.397 2.25 0 0-.363.207-1.008.337-1.176 1.227-2.352 2.455-4.057 3.926m85.943-31.226c-2.738-2.093-5.476-4.185-8.318-7.098l-.411-5.866c-2.782.755-5.181 1.406-8.254 1.837l-2.738-1.989c-.24 2.45-.421 4.306-1.289 6.307-7.376 3.242-11.546 8.827-12.9 17.35a441.308 441.308 0 00-.331 4.553c-.107 6.106-.702 12.318 3.736 17.998l1.539 4.665c.558-.262 1.117-.523 2.29-.407 6.598 6.115 8.413 12.816 4.633 19.767-4.332 1.998-7.791 4.724-9.052 9.966-4.21 8.192-3.763 16.75-1.898 25.387.066.306 1.1.402 1.641 1.28-.642 4.001.299 6.943 5.171 8.07l7.824 9.306c.037-.133.296-1.067.83-1.415 1.797.699 3.593 1.397 6.193 2.217 5.52.137 1.972-3.964 3.268-6.57 5.926-1.497 9.032-5.717 11.382-11.709.788-3.528 1.576-7.057 2.71-11.15-.817-3.785-1.634-7.57-2.415-11.93-.543-.748-1.087-1.496-1.62-3.044-1.52-4.7-4.672-7.818-9.788-10.052-.178-2.136-.356-4.273-.495-6.899 0 0-.012-.49.494-.988-.157-2.484-.313-4.968.183-7.694 5.342-2.747 9.548-6.417 11.092-13.171.742-3.218 1.483-6.435 2.575-10.221-1.369-5.116-2.737-10.233-4.1-15.7-.23-.258-.46-.516-.897-1.312-.233-.3-.467-.601-1.055-1.488z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7E542D",d:"M99 117.013c.566.032 1.131.065 1.873.67.157.825.137 1.076.158 1.68 4.02 3.107 8 5.861 11.975 8.625-.004.01.016 0 .05.373 7.278 17.106 2.974 29.288-14.414 34.683-4.675 3.133-9.124 3.184-13.85.934-1.427-.68-3.181-.673-4.988-1.256-3.43-1.945-6.943-3.237-9.801-5.395-2.658-2.008-6.178-4.7-6.61-7.508-1.733-11.247-1.516-17.81 9.573-25.227 3.1-2.073 5.972-4.487 8.949-6.745 0 0-.068.051.255.042.775.014 1.228.04 2.068.078 1.84-.52 3.292-1.056 4.745-1.591 2.368.007 4.736.014 7.61.408 1.14.333 1.774.281 2.407.229m14 23.622c.816-6.204-4.521-8.55-7.88-11.828-7.703-7.52-17.867-7.663-26.444-1.007-1.569 1.217-3.135 2.438-4.727 3.626-8.827 6.583-8.13 20.876 1.429 26.088 2.421 1.32 5.418 1.543 7.959 2.693 13.403 6.068 29.043-3.748 29.662-19.572z",opacity:"1"}),(0,n.jsx)("path",{fill:"#704A25",d:"M81.544 117.884c-2.606 2.22-5.478 4.635-8.578 6.708-11.089 7.417-11.306 13.98-9.574 25.227.433 2.808 3.953 5.5 6.61 7.508 2.859 2.158 6.372 3.45 9.956 5.703 6.085 4.984 6.16 5.033 2.252 11.154-2.22 3.476-3.025 6.337 1.809 8.16-1.541 1.482-3.008 2.568-4.239 3.876-1.715 1.821-3.254 3.809-5.185 5.757-.738.085-1.159.138-1.696-.133.81-1.935 1.385-3.99 2.738-5.067 2.96-2.356 4.124-4.621 1.36-8.189.198-4.263.389-8.124.562-11.621-3.247-2.477-6.219-4.278-9.915-.919-2.635.126-4.984.699-7.087.21-12.591-2.92-18.042 6.266-16.878 15.52.696 5.538 5.324 7.25 6.953 11.22a108.743 108.743 0 01-9.642-8.351c-.336-1.448-.669-2.545-.72-3.893.413-1.214.77-2.208.645-3.137-1.363-10.11 8.394-18.392 18.184-15.517 2.107.619 4.412.562 6.626.817l.527-1.557c-1.664-1.963-3.57-3.772-4.93-5.927-1.678-2.662-2.9-5.61-4.319-8.768 0-.776 0-1.22.28-1.918 1.35-4.99 1.468-9.879 5.729-13.608 2.637-2.307 4.03-6.036 6.22-9.137.24-.01.718-.014 1.077-.014 1.14-.653 1.922-1.307 3.024-1.995.832-.397 1.343-.76 2.13-1.287 1.095-.385 1.912-.605 2.73-.825.993.013 1.986.026 3.35.003z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M100.99 119.01c.02-.25.04-.502.093-1.13 1.212-.622 2.392-.867 4.21-.852 1.298.45 1.956.642 2.674 1.151 1.06.496 2.062.673 3.18 1.114.697.745 1.276 1.226 2 1.99 1.333 1.143 2.522 2.001 3.914 3.131 3.187 3.56 6.17 6.847 8.992 10.52-2.015 8.216-3.668 16.094-8.339 22.94-.7 1.026-.856 3.59-.204 4.108 1.074.853 3.155 1.134 4.564.749 5.24-1.432 10.368-3.34 16.031-1.514.311.494.575.681 1.144.948.408.722.573 1.277.573 1.922-.052.366.061.64.176.914.002-.001 0 .002.042.322.679.775 1.315 1.229 1.952 1.933 0 .25.005.75.006 1.213-.334 6.149-.668 11.834-1.006 17.77-.007.419-.01.586-.33.781-1.101.346-1.886.664-2.66.562.34-3.52.994-6.629.923-9.72-.117-5.09-4.521-10.427-8.448-10.86-5.874-.647-11.746-1.315-17.969-2.012-4.038-1.948-6.049.185-7.312 3.174-.757 1.793-.818 3.878-1.548 5.794-4.029-3.745-1.31-11.527 4.532-12.702 4.105-.826 6.516-3.105 8.24-6.398 3.638-6.946 3.979-14.461 3.345-22.095-.356-4.289-2.921-5.407-6.743-4.774 0 0-.02.01-.018-.387-.362-1.393-.44-2.917-1.139-3.299-3.536-1.927-7.234-3.558-10.875-5.292z",opacity:"1"}),(0,n.jsx)("path",{fill:"#BE9E6C",d:"M83.903 213.061c-.59-.472-1.179-.944-1.765-1.99-2.694-1.41-5.39-2.245-8.325-3.173-.43-.369-.622-.645-.703-1.178.373-.752.636-1.246 1.302-1.728 4.513 1.322 8.479 1.861 11.937-1.928 4.477 5.269 7.375.949 10.618-.867 1.46 3.46 3.863 4.372 6.95 3.302 2.998-1.038 4.826-2.826 5.21-6.42.618-5.806-3.243-5.648-7.128-6.327-1.781-1.43-3.383-2.57-5.028-4.088-.662-2.842-1.283-5.307-1.598-7.627 4.32 3.18 8.337 6.213 12.484 9.427.33.407.57.574 1.065.97 1.344 2.43 2.477 4.57 3.49 7.092-.563 2.41-1.006 4.437-1.63 6.737-1.414 1.094-2.647 1.915-4.262 2.722-2.736 1.378-5.09 2.772-7.445 4.166 0 0-.058-.086-.418-.106-5.158.325-9.956.67-14.754 1.016z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593C21",d:"M39.989 181.004c.332 1.098.665 2.195.74 3.853 1.917 3.754 4.093 6.947 6.27 10.142.001.001.004.003.037.296 2.337 1.26 5.037 1.754 6.864 3.288 4.628 3.887 9.683 3.426 15.013 2.76.1.752.143 1.184-.128 1.84-6.18 3.813-11.684.297-17.25-.8-2.99-.59-5.808-2.045-8.704-3.11-9.229-11.314-9.961-26.063-2.027-38.057 2.445-3.697 4.574-7.604 7.265-11.597.589 2.338.76 4.858.632 7.4-.767.345-1.235.668-1.984 1.118-1.093 1.04-1.906 1.95-2.717 2.862l-.301.151c-1.1 1.718-1.898 3.285-2.737 5.218-3.446 4.92-3.925 9.666-.973 14.636z",opacity:"1"}),(0,n.jsx)("path",{fill:"#906E4F",d:"M107.908 117.86c-.659-.19-1.317-.382-2.287-.997 3.957-2.794 7.968-6.17 12.544-7.347 14.361-3.693 26.392 8.424 23.48 23.1-.417 2.098-1.194 4.123-2.291 6.142-.818-1.609-1.546-3.212-1.412-4.74.523-5.97 1.533-11.974-4.748-16.35-3.159-1.84-6.09-3.384-9.154-5.251-1.833-.137-3.535.048-5.621.29-3.76 1.755-7.135 3.454-10.511 5.154z",opacity:"1"}),(0,n.jsx)("path",{fill:"#3A3A3B",d:"M200.01 213.346l-5.1-4.131c-.836 3.486-.714 8.054-6.322 7.734-5.125-.293-4.935-4.371-5.583-7.913l-1.424-.29c-.871 2.516-1.742 5.031-3 7.82-1.29-.978-2.195-2.227-3.102-3.81.918-1.791 1.838-3.249 3.112-4.719 1.006-.778 1.66-1.543 2.508-2.502.75-.645 1.304-1.096 2.173-1.557.795-.369 1.273-.728 1.986-1.051.235.036.703.118.748.415.707.099 1.37-.099 2.239-.432.448-.366.617-.643 1.041-.942.771.044 1.212.064 1.679.31.027.226.086.679.066 1.107-.716 2.243-1.555 4.018-2.06 5.884-.387 1.432-.353 2.979-.506 4.475l1.805.22c1.244-2.98 2.488-5.958 3.973-9.023.69-.325 1.137-.564 1.769-.511 1.455 3.166 2.727 6.041 3.999 8.916z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M251.98 160.997c.179 2.136.357 4.273.795 6.988.244 1.014.228 1.447-.153 1.902-.852.05-1.34.078-2.15.057-.99-.896-1.657-1.742-2.563-2.888l-2.202 2.995c-1.99 0-3.442 0-5.189-.14-.711-1.067-1.129-1.994-1.546-2.92 3.077-6.892 1.262-13.593-5.517-20.21 1.462-1.867 3.105-3.231 5.054-4.622.714-.065 1.122-.104 1.784-.041.927.346 1.6.59 2.378 1.287.105 6.516.105 12.58.105 18.644.802-.07 1.95-.173 3.493-.223 2.167-.242 3.94-.536 5.711-.83z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7A522B",d:"M133.422 117.96c6.053 4.084 5.043 10.089 4.52 16.058-.134 1.528.594 3.131 1.148 5.02-.844 2.446-1.91 4.574-3.627 6.85-1.898-.224-3.146-.598-4.405-1.352-.04-1.397-.068-2.415.178-3.644a81.102 81.102 0 003.683-7.28c.035-.752.047-1.183.33-1.84.9-5.748-1.98-9.082-6.571-11.48-5.4-2.82-10.617-3.248-15.675.708-.58-.48-1.16-.962-1.639-1.996 3.184-1.37 6.27-2.85 9.353-2.843 4.236.01 8.47 1.146 12.705 1.8m3.058 22.421l.166-.648c-.134.138-.268.277-.166.648z",opacity:"1"}),(0,n.jsx)("path",{fill:"#906E4F",d:"M78.073 117.564c-.698.537-1.515.757-2.93 1.008-8.766-7.283-15.88-8.004-26.442-2.522-.756.705-1.18 1.38-1.636 2.367-.06.729-.087 1.146-.092 1.575.022.013.004-.035-.235.058-.467.346-.695.599-1.222 1.06-1.026 3.16-2.116 6.08-2.369 9.07-.216 2.565.527 5.21.566 7.557-1.17-4.797-2.06-9.332-2.95-13.868 1.82-11.481 12.605-17.958 24.368-13.954 4.576 1.557 8.566 4.837 12.942 7.649z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A7B0B9",d:"M199.965 213.802c-1.226-3.33-2.498-6.206-3.916-9.801-.113-2.148-.082-3.576-.05-5.004 9.352 4.469 10.833 13.552 13.504 22.643h-11.09c.505-2.472 1.005-4.927 1.552-7.838z",opacity:"1"}),(0,n.jsx)("path",{fill:"#422B19",d:"M106.902 208c1.233-.822 2.466-1.643 4.261-2.696 8.64.732 16.219-.55 22.9-5.445 1.47-1.076 2.633-2.568 4.156-3.974.491-.303.675-.563.775-.886.005.001 0-.011.317-.176 1.591-1.351 2.866-2.538 4.141-3.725-3.86 11.191-11.765 17.172-23.5 18.084-3.96.308-7.94.343-12.327.2-.518-.662-.62-1.022-.723-1.383zM42.872 199.613c2.855.725 5.673 2.18 8.663 2.77 5.566 1.097 11.07 4.613 17.517.972 1.703 1.172 2.825 2.397 3.947 3.622.192.276.384.552.765 1.2.14.743.094 1.113.047 1.484-8.944-.203-18.068.385-25.933-5.106-1.833-1.28-3.32-3.055-5.006-4.942z",opacity:"1"}),(0,n.jsx)("path",{fill:"#624123",d:"M49 156.997c-.171-2.52-.342-5.04-.802-7.743-.578-.57-.869-.957-1.112-1.984.308-2.19.568-3.738 1.203-5.285 1.486-.997 2.597-1.994 3.864-3.289 2.045-2.786 3.936-5.274 5.828-7.377-1.452 4.735-4.663 8.955-.978 13.683 0 .443 0 .887-.317 1.832-2.607 3.848-2.243 9.22-7.686 10.163z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A7B0B9",d:"M183.154 134.106c-.08-4.375-.158-8.75-.204-13.612.033-.488.086-.5.478-.48.83 2.668 1.269 5.318 1.658 8.37.162 1.782.373 3.162.583 4.542l1.537.088c.514-1.703 1.028-3.406 1.617-5.561-.595-6.165-1.265-11.877-1.859-17.923 2.97-3.174 3.089.19 4.088 1.842.522 1.502 1.092 2.642 1.694 4.2-.095 3.723-.222 7.03-.476 10.77-.57 2.668-1.011 4.904-1.696 7-.717.065-1.192.273-1.949.638-2.012.147-3.742.136-5.471.126z",opacity:"1"}),(0,n.jsx)("path",{fill:"#D8DDE0",d:"M178.237 208.05c-.92 1.457-1.84 2.915-3.176 4.808-.625 2.98-.836 5.524-1.047 8.069-3.034 1.071-5.902-1.3-4.737-4.473 2.404-6.547 3.706-13.988 11.624-17.043.997 1.735 1.526 3.156 2.055 4.577-.553.45-1.107.902-2.191 1.56-1.197.97-1.862 1.736-2.528 2.502z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A7B0B9",d:"M174.03 98.184c6.325-1.003 3.364 5.414 5.93 7.484 1.123.906 1.81 2.352 3.286 3.584.914.881 1.236 1.73 1.577 2.972-.635 1.526-1.288 2.661-2.278 3.824-1.762-1.134-3.188-2.296-4.592-3.795-.483-.462-.988-.587-1.823-.82-1.58-.532-2.83-.955-4.081-1.378a21.372 21.372 0 01-.076-1.97c-.228-1.11-.488-1.59-.748-2.069-.047-.16-.095-.32.187-.7 1.47 1 2.608 2.22 4.12 3.84-.563-4.105-1.032-7.538-1.502-10.972z",opacity:"1"}),(0,n.jsx)("path",{fill:"#E3E7EB",d:"M238.62 167.02c.77.897 1.187 1.824 1.842 3.224-2.218 3.263-4.673 6.052-7.504 8.943-.864 2.657-1.353 5.213-1.934 8.176-.406 4.116-.72 7.826-1.369 11.351-.757-2.07-1.65-3.993-1.513-5.837.396-5.315 1.209-10.6 1.858-15.895.478-5.208 3.937-7.934 8.62-9.962z",opacity:"1"}),(0,n.jsx)("path",{fill:"#ABB0B6",d:"M183.998 197.921s-.052-.435-.023-.998c.27-1.476.512-2.388.752-3.3 4.197 1.478 3.596-2.552 3.833-4.081.622-4.02.596-8.191.288-12.261-.064-.839-2.47-1.5-3.813-2.616 1.647-3.75 3.481-3.62 5.089-.433 1.09 2.163 1.8 4.518 2.71 7.039.032 1.072.033 1.892-.22 3.005-.254 3.942-.254 7.592-.254 12.073l-1.973-2.845c-1.87 1.937-3.652 3.784-5.66 5.488-.395-.453-.562-.762-.73-1.07z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M184.953 199.135l5.434-5.631 1.973 2.845c0-4.48 0-8.13.585-12.087 1.023-.306 1.462-.306 1.9-.307.157 4.863.314 9.726.812 14.816.31 1.654.279 3.082.21 4.938-.487.668-.935.907-1.767.943-1.272-.7-2.16-1.197-3.049-1.695 0 0-.06-.453-.067-1.03-.354-1.197-.701-1.819-1.048-2.44l-.98 2.457c-.094.323-.263.6-1.058.95-1.013.13-1.475.14-1.937.151 0 0-.468-.082-.698-.492-.257-1.412-.283-2.415-.31-3.418z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M192.398 125.909c.126-3.307.253-6.614.454-10.715.087-1.57.099-2.347.146-3.43.342-1.06.65-1.813 1.344-2.36 1.011-.298 1.637-.803 2.581-1.25-.125 1.633-.569 3.21-1.013 4.785l.808.897c2.133-1.92 4.266-3.84 6.688-5.759.737.32 1.184.64 1.63.96-2.211 3.068-3.833 7.045-6.79 8.965-3.402 2.207-5.145 4.166-4.373 8.45-.603.042-1.039-.25-1.475-.543z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M192.27 126.342c.564-.14 1 .152 1.687.536.645.867 1.589 1.952 1.352 2.373-2.842 5.055.832 6.396 4.218 8.546 5.14 3.263 6.955 8.852 8.107 14.823-1.121.384-1.857.378-2.665.15-.072-.221-.198-.67-.054-.966-.005-5.813-3.208-9.56-7.328-12.598-.637-.469-2.262.404-3.803.695-1.115.036-1.856.033-2.642-.203-.043-.234-.156-.696-.136-.967.014-.453.008-.634.004-1.193-.063-1.604-.128-2.83-.192-4.056.44-2.236.882-4.472 1.452-7.14z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M229.99 198.898c.315-3.71.628-7.419 1.38-11.52 1.128-.357 1.818-.32 2.534.025.029.72.032 1.133-.25 1.598-.096.719.093 1.385.291 2.37.004.74 0 1.164-.342 1.664-1.179 2.478.07 6.743 2.313 9.225.12.767.172 1.208-.14 1.682-4.589.354-.95 3.18-1.781 5.002-.008 1.001-.047 1.573-.086 2.145-4.65-.463-5.591-3.405-4.91-8.103.357-1.827.674-2.958.992-4.088z",opacity:"1"}),(0,n.jsx)("path",{fill:"#E3E7EB",d:"M185.051 175.038c1.327.743 3.733 1.404 3.797 2.243.308 4.07.334 8.241-.288 12.26-.237 1.53.364 5.56-3.833 4.082-.24.912-.481 1.824-.792 3.084-4.8-.964-.925-4.053-.82-6.368 1.038-.403 1.845-.687 1.838-.947-.12-4.24-.342-8.475-.562-12.792-.022-.08-.083-.235.023-.468.283-.52.46-.807.637-1.094z",opacity:"1"}),(0,n.jsx)("path",{fill:"#555E67",d:"M193.956 109.198c-.308.753-.616 1.507-1.187 2.423-.733-.095-1.201-.353-1.67-.61-1.046-1.29-1.166-4.655-4.467-1.435-.881 1.005-1.355 1.63-1.828 2.256-.322-.85-.644-1.699-1.226-2.672-1.537-3.506.196-5.48 3.078-6.559 3.326-1.247 6.096-.489 7.628 3.607-.04.852.005 1.145.014 1.663a8.932 8.932 0 00-.342 1.327z",opacity:"1"}),(0,n.jsx)("path",{fill:"#C8CACD",d:"M248.174 221.74c-1.796-.699-3.592-1.397-5.583-2.763-.083-1.149.028-1.63.412-1.958.626.902.978 1.648 1.331 2.395l1.273-.79v-8.687c-1.23.504-2.092.858-3.154.828-.186-1.822-.174-3.259.09-4.88 1.6-.952 2.95-1.72 4.343-2.107 1.391 6.176 3.206 11.937 1.288 17.962z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9CA5AC",d:"M262.293 178.257c.543.749 1.087 1.497 1.335 2.823-.4 2.384-.71 4.206-.57 5.993.272 3.473-1.367 4.445-4.4 3.446-.901-5.75-1.872-11.083-2.468-16.415 2.285 1.385 4.194 2.769 6.103 4.153z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M263.096 139.014c-.851 6.394-5.057 10.064-10.964 12.867-.564.055-1.057.086-1.124-.226-.149-.728-.23-1.145-.19-1.927.477-1.823.833-3.28 1.568-4.65 3.068-2.009 5.757-4.108 8.82-6.152.88.065 1.385.077 1.89.088z",opacity:"1"}),(0,n.jsx)("path",{fill:"#868485",d:"M244.002 99.026l7.58-2.057c.148 2.105.28 3.986.405 6.639-.95 1.293-1.895 1.813-3.126 2.036-2.791-.383-5.294-.468-7.822-.773-.025-.22-.055-.66.215-.875 1.096-1.8 1.922-3.385 2.748-4.97z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593C21",d:"M143.692 190.847c-1.515 1.438-2.79 2.625-4.379 3.602-.31-.958-.306-1.706-.04-2.67.745-1.738 1.226-3.262 1.707-4.786.002-.168.005-.335.367-.81 1.412-2.868 3.084-5.362 3.357-8 .343-3.31-.46-6.74-.691-10.188.078-.071.237-.21.237-.21 3.653 7.656 2.525 15.246-.558 23.062z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M248.576 221.8c1.516-6.085-.299-11.846-1.289-18.13 1.46-.563 2.562-.634 3.79-.416.181.707.236 1.124.222 1.868.514.849 1.097 1.372 1.786 2.268a17.616 17.616 0 01-.075 2.657c-.014-.03.05-.046-.132.051-.408.256-.622.43-.954.95-.132 1.821-.133 3.31-.134 4.798-.84 2.05 2.707 6.152-3.214 5.955z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M242.29 206.069c-.011 1.437-.023 2.874.09 5.1.2 2.423.275 4.06.35 5.696a9.83 9.83 0 00-.277 1.819 21.436 21.436 0 01-.498 2.375c-2.639-3.138-5.231-6.222-7.935-9.638-.072-.904-.033-1.476.27-2.306.888-.035 1.513.189 2.258.728 1.047.675 1.973 1.034 2.899 1.393l.444-.966c-.898-.493-1.796-.986-2.71-1.622-.015-.143.003-.431.314-.501.715-.705 1.118-1.34 1.767-2.017.246-.043.737-.13 1.119-.12.89.025 1.4.042 1.91.059z",opacity:"1"}),(0,n.jsx)("path",{fill:"#D8DDE0",d:"M194.432 107.63c-.143-.277-.189-.57-.063-1.086 1.069-.557 2.061-.904 3.805-1.435 1.342-1.882 1.931-3.582 2.718-5.85.79.183 1.958.454 3.09 1.132-.313 2.834-.59 5.26-.865 7.686l-6.4 5.759c-.268-.3-.538-.598-.807-.897.444-1.576.888-3.152.47-4.907a686.272 686.272 0 00-1.948-.403z",opacity:"1"}),(0,n.jsx)("path",{fill:"#898D90",d:"M240.984 104.21s.03.442.043 1.048c-.056 1.905-.125 3.204-.491 4.56-.703.085-1.108.11-1.529-.12-.167-.475-.318-.693-.469-.912-.127.468-.254.936-.793 1.34-.628-.236-.845-.41-1.027-.903-1.057-.152-2.835-.332-3.127.243-1.728 3.405-3.112 6.984-4.946 10.555-.781.03-1.23.007-1.678-.014.789-8.056 4.959-13.64 12.808-16.724.718.416.964.672 1.209.928z",opacity:"1"}),(0,n.jsx)("path",{fill:"#484748",d:"M182.993 183.92c-7.073-2.182-10.944-7.177-12.163-14.568.624-.366.92-.378 1.45-.211.697.53 1.16.88 1.54 1.603.912 1.433 1.908 2.495 2.953 3.517.05-.04-.067-.09-.241.167-.093.447-.012.638.077 1.16.797 1.037 1.585 1.744 2.58 2.693 1.214.494 2.223.747 3.284 1.176.052.175.167.522.178.92.12 1.446.232 2.495.342 3.543z",opacity:"1"}),(0,n.jsx)("path",{fill:"#C8CACD",d:"M238.203 142.185c-1.643 1.365-3.286 2.73-5.055 4.407-.685.575-1.244.836-1.802 1.098-.513-1.555-1.026-3.11-1.25-5.205.143-1.84-.002-3.138.142-4.67.431-.95.572-1.668.598-2.602-.114-.217.079-.668.321-.452.995.6 1.746.983 2.57 1.706.788 1.376 1.503 2.414 2.278 3.804.773.873 1.486 1.393 2.198 1.914z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M252.018 215.569c-.227-1.211-.226-2.7.173-4.477.556-.557.713-.824.87-1.091 0 0-.065.015.313.15 2.48-2.286 4.581-4.704 7.025-7.13 1.117.35 1.892.706 2.667 1.062-1.788 5.491-4.894 9.71-11.048 11.486z",opacity:"1"}),(0,n.jsx)("path",{fill:"#8B5E35",d:"M47.915 141.984c-.26 1.548-.521 3.097-.929 4.936-5.22-6.443-8.088-13.807-6.429-22.729 1.096 4.214 1.987 8.749 3.489 13.592 1.697 1.606 2.783 2.903 3.869 4.201z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M229.655 198.714c.018 1.314-.299 2.445-.635 3.93-.6.16-1.635.065-1.7-.24-1.866-8.639-2.313-17.196 2.289-25.405-.258 5.279-1.07 10.563-1.467 15.878-.138 1.844.756 3.766 1.513 5.837z",opacity:"1"}),(0,n.jsx)("path",{fill:"#484748",d:"M195.176 183.832c-.77.124-1.208.124-1.977.138-.332-.807-.333-1.627-.04-2.828 1.146-1.325 1.997-2.27 3.197-3.162 2.254-1.786 4.159-3.623 6.476-5.313 1.097.657 1.783 1.167 2.469 1.677-3.265 3.122-6.53 6.244-10.125 9.488z",opacity:"1"}),(0,n.jsx)("path",{fill:"#624123",d:"M131.068 144.916c1.249.374 2.497.748 4.14 1.16-3.121 5.599 2.166 8.813 3.838 13.712-.02 1.219-.03 1.714-.041 2.21-.325-.1-.589-.287-1.036-1.094-3.528-5.227-8.52-9.185-6.9-15.988z",opacity:"1"}),(0,n.jsx)("path",{fill:"#868485",d:"M229.948 138.047c.146 1.3.29 2.599.189 4.143-4.768-4.845-4.173-11.057-3.698-17.7.836-.546 1.303-.554 1.758-.124.406 3.09.826 5.741 1.325 8.677.539.684.997 1.083 1.439 1.486a.49.49 0 00-.046.016s-.193.45-.41.683c-.33 1.095-.443 1.957-.557 2.82z",opacity:"1"}),(0,n.jsx)("path",{fill:"#3A3A3B",d:"M172.017 110.41c1.282.068 2.533.491 4.279 1.305.875.552 1.255.713 1.635.875a389.789 389.789 0 014.674 3.854c.408 1.428.42 2.488.431 3.55 0 0-.053.012-.048.04-3.664-3.073-7.333-6.171-10.97-9.625z",opacity:"1"}),(0,n.jsx)("path",{fill:"#898D90",d:"M258.586 190.937c3.105.58 4.744-.391 4.473-3.864-.14-1.787.169-3.61.552-5.705 1.093 3.494 1.91 7.28 2.128 11.343-2.147 1.095-3.696 1.912-5.523 2.553a23.699 23.699 0 01-2.205-3.697c.137-.419.32-.568.575-.63zM262.258 113.084c1.369 5.116 2.737 10.233 3.542 15.63-1.34.253-2.116.225-2.865-.134-.51-1.143-1.046-1.955-1.617-3.049.013-.655.062-1.029.454-1.533.39-3.725.438-7.32.486-10.914z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M260.493 195.44c1.55-.817 3.1-1.634 5.074-2.447-.363 3.532-1.15 7.06-2.22 10.84-1.056-.106-1.831-.462-2.948-1.203-.196-2.653-.05-4.922.094-7.19z",opacity:"1"}),(0,n.jsx)("path",{fill:"#CDD4D8",d:"M173.832 97.895c.668 3.723 1.137 7.156 1.7 11.262-1.512-1.62-2.65-2.842-4.13-4.091-.8-1.811-1.772-3.673-1.512-5.344.136-.878 2.426-1.422 3.942-1.827z",opacity:"1"}),(0,n.jsx)("path",{fill:"#898D90",d:"M203.406 108.077c-.013-2.426.263-4.852.93-7.711 1.458-1.355 2.526-2.275 3.593-3.195-.75 3.855-1.498 7.71-2.57 11.716-.77-.17-1.216-.49-1.953-.81z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A7B0B9",d:"M250.696 150.093c.081.417.163.834.016 1.772.049 3.111-4.25 6.614 1.296 8.151 0 0 .012.491-.008.736-1.792.538-3.564.832-5.685.686a58.813 58.813 0 012.649-11.477l1.732.132z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M262.908 128.911c.776.028 1.552.056 2.717.087-.353 3.221-1.094 6.438-2.182 9.836-.852.169-1.357.157-2.1-.232.246-1.805.73-3.23 1.216-4.656-2.17-.672-4.338-1.343-6.483-2.241.023-.226.13-.669.439-.814 1.739-.689 3.169-1.233 4.898-1.81l1.495-.17z",opacity:"1"}),(0,n.jsx)("path",{fill:"#868485",d:"M262.298 177.858c-1.914-.985-3.823-2.37-6.077-3.783-.344-.03-.263-.004-.27-.348-.992-1.516-1.978-2.688-2.964-3.86.016-.435.032-.868.054-1.628 4.59 1.401 7.742 4.52 9.257 9.619z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A7B0B9",d:"M262.26 112.908c-.05 3.77-.097 7.365-.643 10.749-1.473-1.67-2.447-3.13-3.482-4.962-.098-1.125-.136-1.878-.047-2.919.702-1.372 1.279-2.458 2.264-3.6.68-.111.95-.164 1.221-.216.23.257.46.515.688.948z",opacity:"1"}),(0,n.jsx)("path",{fill:"#898D90",d:"M172.045 168.961c-.296.013-.591.025-1.329-.003-.561-5.732-.68-11.422-.478-17.39.569-.044.742.235.831 1.013.32 5.762.648 11.071.976 16.38z",opacity:"1"}),(0,n.jsx)("path",{fill:"#555E67",d:"M207.477 97.13c-.615.961-1.683 1.881-3.104 2.828a49.109 49.109 0 01-3.48-.699c-.788 2.268-1.377 3.968-2.362 5.688-.395-2.421-.395-4.863-.395-7.857 3.07 0 5.98 0 9.341.04z",opacity:"1"}),(0,n.jsx)("path",{fill:"#868485",d:"M205.04 152.991c.737.007 1.473.013 2.577.015.874 2.446 1.38 4.897 1.296 7.654-2.033.316-3.475.326-4.773.037.397-2.769.649-5.237.9-7.706z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M249.148 105.942c.944-.52 1.888-1.041 2.891-1.924 2.797 1.73 5.535 3.822 8.258 6.329-.016.414-.357.707-.688.63-2.302-1.556-4.274-3.034-7.117-5.165.281 2.623.415 3.871.292 5.188-.433.085-.61.1-.899-.196-.988-1.83-1.862-3.346-2.737-4.862z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9D896C",d:"M84.057 213.386c4.644-.67 9.442-1.016 14.652-1.336-4.14 4.384-9.137 4.678-14.652 1.336z",opacity:"1"}),(0,n.jsx)("path",{fill:"#ABB0B6",d:"M183.004 184.355c-.121-1.483-.232-2.532-.114-4.046-.004-.652-.237-.84-.47-1.028-1.008-.253-2.017-.506-3.198-1.298 1.615-.794 3.403-1.049 5.19-1.303.2 4.237.421 8.473.54 12.712.008.26-.799.544-1.55.711-.346-1.842-.367-3.578-.398-5.748z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M174.368 221.086c-.143-2.704.068-5.248.695-7.895 1.323 1.148 2.228 2.397 3.45 3.69.315 1.489.315 2.935.315 5.136-1.575-.296-2.84-.534-4.46-.93zM182.992 134.376c1.891-.26 3.621-.25 5.67-.013.311.99.305 1.753.059 2.707-.413.764-.584 1.337-1.017 2.024-1.73.382-3.201.651-4.727.581-.814-.896-1.573-1.453-2.53-2.217l-.6-.621c.995-.73 1.99-1.461 3.145-2.461z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M205.57 174.112c-.955-.278-1.64-.788-2.683-1.794.146-2.098.648-3.7 1.528-5.302l3.397.006c-.658 2.286-1.316 4.572-2.242 7.09z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M207.941 166.651c-1.136.37-2.142.367-3.59.01-.496-1.313-.55-2.27-.523-3.631.11-.947.14-1.491.17-2.033.002.003-.003 0-.003 0 1.443-.011 2.885-.021 4.763-.033.061 1.77-.313 3.543-.817 5.687z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M252.261 159.767c-5.8-1.288-1.5-4.79-1.482-7.59.296-.21.79-.241 1.027-.175.395 2.55.551 5.033.455 7.765z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M241.254 103.996c-.515-.041-.76-.297-1.136-.785.052-2.088.234-3.945.473-6.394 1.139.827 1.939 1.408 3.075 2.1-.49 1.694-1.316 3.279-2.412 5.079z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593C21",d:"M139.249 162.165c-.233-.663-.222-1.158-.19-2.025 1.734 2.06 3.445 4.492 5.174 7.285.017.36-.142.499-.543.55-.831.044-1.262.037-1.693.03 0 0-.004-.5-.043-1.07-.677-1.025-1.317-1.478-1.956-1.932 0 0 .002-.003-.001-.254l-.01-.753c-.165-.554-.33-1.109-.738-1.83z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9D896C",d:"M106.52 207.985c.484.375.587.735.684 1.376-2.457 1.101-4.91 1.92-7.746 2.765 1.971-1.369 4.326-2.763 7.062-4.141zM74.202 209.826c-.344-.536-.297-.906-.2-1.556a38.955 38.955 0 018.026 2.535c-2.553-.067-4.994-.44-7.826-.98z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M171.077 152.128c-.097-.325-.27-.604-.732-.96a44.782 44.782 0 013.078-8.203c.393-.113.616.066.565.435-1.003 3.155-1.957 5.941-2.91 8.728z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M184.726 198.992c.254 1.146.28 2.15.302 3.526-.483.732-.961 1.091-1.756 1.46-.845-1.411-1.374-2.832-2.015-4.58.632-.659 1.377-.992 2.432-1.401.476.233.643.542 1.037.995z",opacity:"1"}),(0,n.jsx)("path",{fill:"#C8CACD",d:"M228.21 123.927c-.468.009-.935.017-1.746.108-.25-1.132-.156-2.347.22-3.795.731-.212 1.18-.19 1.982.135.084 1.387-.186 2.47-.456 3.552z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M174.898 140.915c1.176-1.227 2.352-2.455 3.96-3.532.658.391.926.567 1.034.945-1.761 1.075-3.319 1.88-4.906 2.661l-.088-.074z",opacity:"1"}),(0,n.jsx)("path",{fill:"#704A25",d:"M88.576 116.305c-1.046.606-2.498 1.141-4.23 1.49.013-.467.306-.746.598-1.025 1.075-.178 2.15-.357 3.632-.465z",opacity:"1"}),(0,n.jsx)("path",{fill:"#906E4F",d:"M84.654 116.65c-.002.4-.295.678-.695 1.13-.56.148-1.014.123-1.807.07.51-.46 1.36-.89 2.502-1.2z",opacity:"1"}),(0,n.jsx)("path",{fill:"#CDD4D8",d:"M170.973 106.152c.512.344.772.823 1.011 1.593-.435-.292-.85-.875-1.011-1.593z",opacity:"1"}),(0,n.jsx)("path",{fill:"#906E4F",d:"M98.763 116.867c-.396.198-1.03.25-1.756.079.444-.224.981-.225 1.756-.08z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M173.702 142.767c.146-.593.407-1.1.931-1.73.265-.122.324-.073.425.262-.273.8-.646 1.266-1.02 1.732 0 0-.222-.179-.336-.264z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M180.094 138.06c-.31-.11-.578-.286-.913-.742-.11-.215.253-.422.46-.451.34.108.472.246.672.696.066.312-.219.497-.219.497zM261.47 111.69c-.167.322-.438.375-1.12.19-.412-.434-.411-.63-.41-.826 0 0 .341-.293.534-.414.426.18.66.48.996 1.05z",opacity:"1"}),(0,n.jsx)("path",{fill:"#8B5E35",d:"M113 141.067c-.62 15.392-16.26 25.208-29.663 19.14-2.541-1.15-5.538-1.373-7.96-2.693-9.558-5.212-10.255-19.505-1.428-26.088 1.592-1.188 3.158-2.409 4.727-3.626 8.577-6.656 18.74-6.512 26.445 1.007 3.358 3.277 8.695 5.624 7.878 12.26m-16.092-12.848c-3.167-3.229-8.562-2.883-12.583.77-.44.005-.88.01-1.963.092-.457.638-.913 1.275-1.863 1.918 0 0-.493.008-1.207.073-5.752 1.789-7.846 6.397-8.196 11.721-.37 5.638 2.465 9.936 7.637 12.22 6.93 3.06 13.987 6.651 21.109.228.414-.373 1.32-.14 1.928-.368 4.286-1.613 8.75-8.887 8.175-13.25-.842-6.394-6.318-12.184-12.435-12.63 0 0-.493-.008-.602-.774z",opacity:"1"}),(0,n.jsx)("path",{fill:"#704A25",d:"M107.727 190.284c-4.017-3.034-8.033-6.067-12.423-9.544-.503-.829-.631-1.215-.343-1.637 5.221.247 4.348-3.189 2.784-4.967-3.464-3.94-2.406-6.761.95-9.726.29-.257.217-.927.312-1.404 17.023-5.357 21.327-17.54 14.048-34.645 3.789-1.005 6.354.113 6.71 4.402.634 7.634.293 15.149-3.345 22.095-1.724 3.293-4.135 5.572-8.24 6.398-5.842 1.175-8.56 8.957-4.517 13.074.392 1.153.411 1.897.178 2.803.24 1.064.732 1.964 1.268 3.068.043.204.082.62-.195.842-.538 3.159-.21 5.8 3.1 7.285.006.776 0 1.22-.075 1.736l-.212.22z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7A522B",d:"M98.642 163.044c.27.44.343 1.109.052 1.366-3.355 2.965-4.413 5.786-.949 9.726 1.564 1.778 2.437 5.214-2.952 4.864-.786-.26-.914-.49-.797-1.089 2.4-2.945 2.328-4.515-1.598-4.94-4.967-.537-5.92 2.078-5.358 6.453-.095.638-.15 1.002-.499 1.425-.975.439-1.66.818-2.343 1.198-5.013-1.526-4.208-4.387-1.988-7.863 3.908-6.121 3.833-6.17-2.05-10.878 1.45 0 3.205-.008 4.632.672 4.726 2.25 9.175 2.199 13.85-.934z",opacity:"1"}),(0,n.jsx)("path",{fill:"#704A25",d:"M101.031 119.364c3.6 1.381 7.298 3.012 10.834 4.94.7.38.777 1.905 1.143 3.288-3.977-2.368-7.956-5.122-11.977-8.228z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M48.701 157.02c5.742-.966 5.378-6.338 7.985-9.854 1.736 2.657 2.958 5.605 4.636 8.267 1.36 2.155 3.266 3.964 4.93 5.927l-.527 1.557c-2.214-.255-4.52-.198-6.626-.817-9.79-2.875-19.547 5.407-18.184 15.517.126.929-.232 1.923-.646 3.137-3.232-4.72-2.753-9.466 1.041-14.442 1.156-2.051 1.922-3.682 2.689-5.313 0 0 .001.001.372-.007 1.123-1 1.875-1.991 2.627-2.983.468-.322.936-.645 1.703-.99z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7A522B",d:"M50.997 193.002c-1.994-3.974-6.622-5.686-7.318-11.224-1.164-9.254 4.287-18.44 16.878-15.52 2.103.489 4.452-.084 6.95.14-.378 3.093-1.02 5.877-1.875 8.643-.213-.018-.64-.039-.693-.387-1.228-1.17-2.404-1.994-3.58-2.817-4.639-3.248-11.395-3.027-13.875.454-2.89 4.054-1.664 11.163 2.524 14.7-.008.009.012-.007.152.303.932 1.15 1.571 2.396 2.541 2.76 4.03 1.508 7.135 6.013 12.546 3.94a30.4 30.4 0 001.042-.022c.77-.335 1.24-.655 2.03-.985.746-.035 1.172-.06 1.63.16.033.247.068.743-.188.927-.443.776-.629 1.37-1.045 2.1-.376.46-.523.782-.643 1.28.027.174-.007.526-.352.526-.803.007-1.262.014-1.967-.257-5.082-1.76-9.919-3.24-14.755-4.722h-.002z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7E542D",d:"M48.29 141.985c-1.46-1.299-2.547-2.596-3.965-3.94-.651-2.655-1.394-5.3-1.178-7.865.253-2.99 1.343-5.91 2.542-8.892.744-.464 1.016-.898 1.288-1.33 0 0 .018.047.325.011.772-.68 1.236-1.323 2.09-2.005 1.78-.494 3.142-1.207 4.564-1.361 5.54-.6 11.287-2.252 16.058 2.764a453.356 453.356 0 01-.064 2.621s-.479.005-.97.015c-.661.003-.83-.004-1.226-.316-5.074-3.13-10.096-1.999-14.581.046-3.729 1.7-6.911 4.64-6.264 9.745.44 3.468.986 6.633 5.089 7.516-1.112.997-2.223 1.994-3.709 2.991z",opacity:"1"}),(0,n.jsx)("path",{fill:"#261A11",d:"M65.845 175.06a511.36 511.36 0 012.063-8.704c3.432-3.667 6.404-1.866 9.65.61-.172 3.498-.363 7.36-.639 11.935-1.665 2.13-3.244 3.546-5.2 4.947-1.123-.014-1.872-.015-2.72-.322-1.118-1.709-2.136-3.11-3.1-4.807.018-1.418-.018-2.539-.054-3.66m3.146 2.453l2.678 3.386c.768-.91 2.111-1.79 2.162-2.739.067-1.242-.888-2.54-1.403-3.813-1.133.79-2.266 1.581-3.437 3.166z",opacity:"1"}),(0,n.jsx)("path",{fill:"#DAB886",d:"M86.035 202.935c-3.144 3.918-7.11 3.38-11.785 1.743-3.542-3.396-2.956-7.063-2.206-11.044.267-.702.421-1.099.671-1.44.095.055.3-.027.3-.027.421-.052.842-.105 1.983-.165 2.061.006 3.402.02 4.753.42 2.1 3.763 4.192 7.138 6.284 10.513z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M66 198.001c.46-.007.918-.014 1.85.278.649 1.114.826 1.93 1.003 2.744-5.27.986-10.325 1.447-14.953-2.44-1.827-1.534-4.527-2.028-6.726-3.343.011-.312-.082-.277-.176-.242-2.176-3.194-4.352-6.387-6.266-9.79 3.352 2.455 6.443 5.12 9.9 7.79.365.004.368.002.41.365 3.66 4.416 10.32 6.324 14.958 4.638z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593515",d:"M70.018 118.993c-4.775-4.642-10.521-2.99-16.062-2.39-1.422.154-2.784.867-4.565 1.36-.391.037-.393.035-.392-.295.013-.77.023-1.21.034-1.649 10.23-5.45 17.344-4.73 25.834 2.719-.191.496-.702.858-1.854 1.222-1.425-.321-2.21-.644-2.995-.967z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M67.982 121.993c.168.006.337.013.758.02-1.698 3.09-3.091 6.819-5.728 9.126-4.26 3.73-4.38 8.618-5.73 13.608-3.964-4.473-.753-8.693.851-13.722 3.384-3.464 6.616-6.248 9.849-9.032z",opacity:"1"}),(0,n.jsx)("path",{fill:"#BE9E6C",d:"M79.742 192.035a351.996 351.996 0 01-4.427-.065c1.211-1.941 2.75-3.929 4.465-5.75 1.231-1.308 2.698-2.394 4.239-3.876.863-.677 1.547-1.056 2.58-1.115-.795 2.347-1.996 4.345-3.023 6.428-.16.325.472 1.04.491 1.806-1.606 1.011-2.966 1.792-4.325 2.572z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7A542D",d:"M72.899 191.844c.116.323-.089.405-.631.31-1.139-.132-1.734-.168-2.282-.58a399.912 399.912 0 012.11-7.712c1.579-1.415 3.158-2.83 4.816-4.56 2.849 2.854 1.685 5.12-1.275 7.475-1.353 1.077-1.927 3.132-2.738 5.067z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M70.014 119.367c.79-.051 1.574.272 2.679.628-.462.686-1.244 1.34-2.384 1.993-.339-.749-.319-1.497-.295-2.62z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7A522B",d:"M112.532 198.144c-1.133-2.14-2.266-4.28-3.276-6.76.346-.357.57-.375 1.149-.349 2.87 2.302 5.2 5.265 9.16 3.826 3.524-1.28 7.054-2.68 10.315-4.503 4.462-2.495 6.841-10.707 4.698-14.97-1.956-3.89-7.512-5.134-13.172-3.174-1.669.578-3.547.55-5.387.435-1.093-2.784-2.127-5.202-3.16-7.621 5.872.66 11.744 1.327 17.618 1.974 3.927.433 8.33 5.77 8.448 10.86.071 3.091-.584 6.2-.929 9.961-.015.66-.017 1.142-.365 1.189-2.25 1.327-4.149 2.617-6.059 3.888-5.325 3.543-10.62 7.195-17.577 5.107.005-.006-.007.003-.085-.166-.323-.049-.567.072-.951.23-.14.036-.427.073-.427.073z",opacity:"1"}),(0,n.jsx)("path",{fill:"#62401E",d:"M131.058 144.536c-1.608 7.183 3.383 11.14 6.801 16.148-5.417-1.293-10.544.615-15.785 2.047-1.409.385-3.49.104-4.564-.75-.652-.518-.496-3.08.204-4.107 4.671-6.846 6.324-14.724 8.57-22.727 1.105.553 1.819 1.28 2.619 2.319.744 1.421 1.4 2.53 2.058 3.637l.097 3.433z",opacity:"1"}),(0,n.jsx)("path",{fill:"#2A201B",d:"M112.508 164.99c1.384 2.457 2.418 4.875 3.485 8.001.068 1.165.104 1.62.08 2.452-.447 4.303-1.956 7.392-6.44 8.422-.727-.15-1.142-.236-1.715-.548a76.861 76.861 0 00-2.727-2.497l-.089-.954a23.616 23.616 0 00-1.008-2.895 434.32 434.32 0 00-.074-2.603c.358-2.326.42-4.411 1.176-6.204 1.263-2.99 3.274-5.122 7.312-3.174m-1.07 10.572l-3.282 3.392 2.46 1.902c.415-1.554.829-3.108.821-5.294z",opacity:"1"}),(0,n.jsx)("path",{fill:"#B88363",d:"M128.817 137.152a273.343 273.343 0 00-2.371-2.39c-3.214-3.5-6.198-6.789-9.316-10.712.642-1.334 1.396-2.609 2.197-2.64 4.623-.176 13.832 6.206 15.65 10.589-.011.43-.023.86-.401 1.677-2.165 1.416-3.962 2.446-5.76 3.476z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A16F49",d:"M135.25 131.772c-2.091-4.156-11.3-10.538-15.923-10.361-.801.03-1.555 1.305-2.4 2.369-1.258-.496-2.447-1.354-3.78-2.496 4.914-4.24 10.131-3.811 15.531-.991 4.591 2.397 7.471 5.731 6.571 11.48z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593515",d:"M133.194 117.667c-4.007-.36-8.24-1.496-12.477-1.506-3.082-.007-6.169 1.473-9.47 2.58-1.218.111-2.22-.066-3.28-.562 3.317-2.018 6.692-3.717 10.893-5.365 2.32.009 3.815-.033 5.311-.076 2.932 1.546 5.864 3.09 9.023 4.93z",opacity:"1"}),(0,n.jsx)("path",{fill:"#624123",d:"M141.998 168.47c.43-.458.86-.451 1.614-.425.631 3.398 1.435 6.827 1.092 10.137-.273 2.64-1.945 5.133-3.352 7.75-.022-5.629.312-11.314.646-17.463zM137.979 188.965s.002-.482.007-.722c.79-.56 1.575-.877 2.677-1.223-.164 1.497-.645 3.021-1.643 4.758-.685.213-.854.212-1.022-.166-.006-1.134-.013-1.89-.02-2.647zM140.04 165.323c.597.134 1.237.587 1.914 1.362-.599-.133-1.235-.587-1.914-1.362zM139.822 164.087c.167.077.17.244.173.663-.112-.023-.225-.297-.173-.663z",opacity:"1"}),(0,n.jsx)("path",{fill:"#261A11",d:"M79.75 192.423c1.351-1.168 2.711-1.949 4.756-3.003 4.626-.308 8.567-.344 12.507-.379 1.603 1.141 3.205 2.282 4.91 4.064-1.603 3.334-3.31 6.026-5.015 8.719-3.184 2.189-6.082 6.509-10.56 1.24a132.127 132.127 0 01-6.598-10.641m3.68.27c.68 1.357 1.193 3.743 2.071 3.886 2.985.486 6.163.547 9.138.03 1.628-.284 2.999-2.055 4.485-3.156l-.654-1.129c-4.803 0-9.607 0-15.04.369z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593515",d:"M137.998 191.99c.168 0 .337 0 .76.003.249.75.245 1.498.239 2.62-.002.375.002.387-.219.494-.49.306-.677.564-.778.883-1.304 1.3-2.468 2.793-3.936 3.869-6.682 4.895-14.26 6.177-22.719 5.172.061-2.068.504-4.095 1.066-6.505.12-.382.408-.42.77-.464.361-.046.807-.052.807-.052s.012-.01.051.364c1.419 1.425 2.857 3.42 4.166 3.339 3-.186 6.203-.888 8.839-2.29 3.873-2.061 7.323-4.917 10.954-7.433z",opacity:"1"}),(0,n.jsx)("path",{fill:"#DAB886",d:"M96.971 188.664c-3.898.412-7.839.448-12.218.525-.705-.492-1.337-1.207-1.177-1.532 1.027-2.083 2.228-4.081 3.314-6.487 0-.744.055-1.108.46-1.917 2.209-2.583 4.231-2.992 6.475-1.015.054.272.182.503.55.797.298.49.426.876.624 1.56.69 2.762 1.31 5.227 1.972 8.07zM96.967 202.197c1.647-3.066 3.353-5.758 5.135-8.804 3.782.038 7.643-.12 7.024 5.686-.383 3.594-2.211 5.382-5.209 6.42-3.087 1.07-5.49.158-6.95-3.302z",opacity:"1"}),(0,n.jsx)("path",{fill:"#B88363",d:"M68.913 201.343a46.121 46.121 0 00-.72-3.064c-.127-.299-.093-.65.095-.987.345-.643.501-.95.658-1.256.186-.593.372-1.186 1.132-1.917 1-.152 1.427-.166 1.854-.18-.638 3.676-1.224 7.343 1.914 10.727-.1.808-.363 1.302-.736 2.054-1.233-.968-2.355-2.193-3.745-3.59-.31-.603-.351-1.035-.452-1.787z",opacity:"1"}),(0,n.jsx)("path",{fill:"#704A25",d:"M110.049 190.991c-.224.018-.447.036-1.004.104-.617-.057-.858-.224-1.188-.631-.13-.18.011-.326.385-.387.85.264 1.329.59 1.807.914z",opacity:"1"}),(0,n.jsx)("path",{fill:"#624123",d:"M43.699 161.15c-.467 1.48-1.233 3.11-2.348 4.797.45-1.512 1.249-3.079 2.348-4.797zM46.717 158.137c-.471.864-1.223 1.856-2.347 2.855.441-.904 1.254-1.815 2.347-2.855z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7A522B",d:"M124.04 112.417c-1.365.364-2.86.406-4.797.34 1.262-.292 2.964-.477 4.797-.34z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M191.031 203.385c.909.07 1.797.567 2.828 1.354-1.101 3.267-2.345 6.246-3.589 9.225l-1.805-.22c.153-1.496.119-3.043.506-4.475.505-1.866 1.344-3.64 2.06-5.884zM189.286 201.968c-.004-.843.323-1.662.65-2.481.347.621.694 1.243 1.022 2.214-.46.33-.9.31-1.672.267zM178.59 208.037c.313-.753.978-1.518 1.979-2.296-.319.753-.972 1.518-1.978 2.296zM186.006 203.342c.417-.307.879-.318 1.688-.313-.317.214-.98.412-1.688.313z",opacity:"1"}),(0,n.jsx)("path",{fill:"#F3F4F4",d:"M256.206 131.036s-.107.443-.186 1.08c.355 4.504-.94 7.406-4.783 8.53-.049-3.503-1.11-6.248-4.47-6.336-1.928-.05-4.336 1.135-5.709 2.556-1.022 1.058-.727 3.387-1.02 5.15-.407.039-.815.078-1.529.143-1.018-.495-1.731-1.015-2.436-2.317-.03-7.472-.068-14.163-.002-21.196.952-2.113 1.8-3.885 3.007-6.404.842 2.817.876 4.973 1.971 6.038 1.147 1.115 3.301 1.475 5.04 1.548.62.026 1.314-1.76 2.254-2.5 1.028.275 2.314.59 2.433.342.59-1.226.873-2.6 1.574-3.728 3.16 3.73 4.493 7.571 2.406 12.268.285 1.759.868 3.292 1.45 4.826z",opacity:"1"}),(0,n.jsx)("path",{fill:"#484748",d:"M258.657 190.52c-.325.479-.51.628-.976 1.112-1.128-.379-1.902-1.006-2.614-2.01 1.565-4.815.432-8.438-1.822-10.76-2.962 2.352-5.602 5.936-7.465 5.57-2.62-.516-4.664-3.963-7.223-6.414-3.973 3.98-2.938 10.212-3.764 15.87-.435-.39-.644-.66-.853-.93.005-.423.009-.847.06-1.937.012-1.135-.024-1.604-.06-2.072-.004-.413-.007-.825.02-1.976-.188-3.12-.407-5.504-.626-7.887 2.455-2.79 4.91-5.58 7.422-8.702 1.509-.333 2.961-.333 4.951-.333l2.202-2.995c.906 1.146 1.573 1.992 2.62 3.247 2.063 1.53 3.746 2.649 5.43 3.768 0 0-.082-.025-.113.003.94 5.362 1.91 10.695 2.811 16.445m-8.063-16.02s-.123.078 0 0z",opacity:"1"}),(0,n.jsx)("path",{fill:"#E3E7EB",d:"M248.612 149.933c-.882 3.689-1.764 7.377-2.692 11.453-1.194.49-2.342.592-3.144.663 0-6.063 0-12.128.116-18.897.371-1.074.625-1.443 1.093-1.722.213.089.5-.269.5-.269s-.314-.336.3-.481c1.034-.113 1.454-.08 1.778.327.619 3.225 1.334 6.076 2.05 8.926z",opacity:"1"}),(0,n.jsx)("path",{fill:"#555E67",d:"M243.772 141.34c-.255.37-.509.738-.985 1.36-.894.009-1.567-.236-2.494-.582.038-1.865-.257-4.194.765-5.252 1.373-1.421 3.78-2.607 5.71-2.556 3.36.088 4.42 2.833 4.393 6.248 0 .31-.218.395-.585.419a91.698 91.698 0 01-3.917-.344c-.42-.033-.84-.066-1.963.108-.703.207-.924.6-.924.6z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9CA5AC",d:"M255.952 173.727c-1.677-.775-3.36-1.894-5.1-3.373.43-.389.918-.417 1.77-.467 1.351 1.152 2.337 2.324 3.33 3.84z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A16F49",d:"M128.903 137.466c1.71-1.344 3.508-2.374 5.649-3.468-.785 2.185-1.913 4.434-3.316 6.894-.932-.897-1.59-2.005-2.333-3.426z",opacity:"1"}),(0,n.jsx)("path",{fill:"#906E4F",d:"M136.363 140.266c.015-.255.15-.394.283-.532-.055.216-.11.432-.283.532z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593515",d:"M49.001 118.001c-.463.645-.927 1.289-1.72 1.956-.303-.394-.276-.811.099-1.566.771-.357 1.195-.375 1.618-.393L49 118z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7E542D",d:"M49 117.668c-.425.348-.849.366-1.587.41.108-.648.532-1.323 1.288-2.028.321.409.31.848.298 1.618z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593515",d:"M46.738 120.05c-.033.34-.305.774-.75 1.03.055-.431.283-.684.75-1.03z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593C21",d:"M138.219 195.885c-.118-.214.068-.472.554-.778.121.215-.063.475-.554.778z",opacity:"1"}),(0,n.jsx)("path",{fill:"#B88363",d:"M67.754 121.687c-3.005 3.09-6.237 5.874-9.621 8.953-2.044 2.782-3.935 5.27-5.98 8.056-4.258-.585-4.805-3.75-5.244-7.218-.647-5.104 2.535-8.046 6.264-9.745 4.485-2.045 9.507-3.176 14.581-.046z",opacity:"1"}),(0,n.jsx)("path",{fill:"#F1F1F2",d:"M183.428 120.013c-.403-1.08-.415-2.141-.486-3.598.593-1.53 1.246-2.665 1.88-4.191.455-1.017.929-1.643 1.734-2.314a144.7 144.7 0 012.009 17.603c-1.365.498-2.398.483-3.43.468-.438-2.65-.876-5.299-1.707-7.968z",opacity:"1"}),(0,n.jsx)("path",{fill:"#D8DDE0",d:"M185.086 128.383c1.081-.387 2.114-.372 3.404-.418-.256 1.643-.77 3.346-1.284 5.049l-1.537-.088c-.21-1.38-.42-2.76-.583-4.543z",opacity:"1"}),(0,n.jsx)("path",{fill:"#555E67",d:"M188.961 136.879c.006-.763.012-1.527-.017-2.674.438-.59.913-.798 1.63-.864.308 1.367.373 2.593.164 4.107-.775.003-1.276-.283-1.777-.569z",opacity:"1"}),(0,n.jsx)("path",{fill:"#868485",d:"M191.052 111.372c.516-.104.984.154 1.682.555.217.92.205 1.696.086 2.85-.676-.763-1.246-1.903-1.768-3.405z",opacity:"1"}),(0,n.jsx)("path",{fill:"#CDD4D8",d:"M177.953 112.253c-.402.175-.782.014-1.328-.43.34-.157.845-.032 1.328.43z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M232.958 179.187c.595 2.282.814 4.665.976 7.478-.746.393-1.436.356-2.472.305.143-2.57.632-5.126 1.496-7.783z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M196.007 177.927c-.851.945-1.702 1.89-2.879 2.964-1.204-2.14-1.913-4.496-3.004-6.66-1.608-3.185-3.442-3.316-5.089.434-.16.66-.338.948-.97 1.334-1.321-.6-2.189-1.297-2.67-2.04.958-1.244 1.28-2.69 2.16-3.59 1.573-1.613 3.445-3.955 5.262-4.02 1.775-.063 3.77 2.196 5.398 3.725.669.629.627 2.015 1.202 4.146 1.549-2.627 2.587-4.388 3.958-6.037-.175 1.96-.562 3.856-1.23 5.646-.535 1.433-1.413 2.737-2.138 4.098z",opacity:"1"}),(0,n.jsx)("path",{fill:"#FEFEFE",d:"M194.298 107.87c.496-.166.858-.092 1.763.104-.082.627-.708 1.132-1.72 1.43-.316-.568-.246-.93-.043-1.533z",opacity:"1"}),(0,n.jsx)("path",{fill:"#3A3A3B",d:"M183.033 140.014c1.47-.269 2.94-.538 5.05-.91 1.394-.103 2.148-.103 2.903-.102 0 0 .113.462.089 1.036-.046 1.035-.067 1.496-.425 1.988-1.186 1.672-2.034 3.312-2.843 5.253.566.456 1.092.611 1.876.946.947-.967 1.636-2.114 2.582-3.435 1.386-1.02 2.516-1.864 3.974-2.606a65.247 65.247 0 014.963 8.305c-.613 2.748-1.178 5.088-1.866 7.014-.418-4.426-.07-8.677-2.989-10.769-2.951 2.343-5.596 5.99-7.693 5.7-2.427-.338-4.372-4.141-6.94-6.88-1.111 1.8-2.31 3.74-3.84 5.485-.145-2.095.041-3.994.496-6.103 1.734-1.78 3.198-3.35 4.663-4.922z",opacity:"1"}),(0,n.jsx)("path",{fill:"#CDD4D8",d:"M199.458 157.916c.566-2.34 1.131-4.679 2.041-7.376 1.32.282 2.296.921 3.272 1.56 0 0 .126.449.198.67a102.31 102.31 0 01-.829 7.927c-.145.3-.14.303-.441.351-.185.827-.068 1.606.05 2.385.053.957.106 1.915.224 3.227-.438 1.958-.94 3.56-1.498 5.51-1.96 2.187-3.865 4.024-6.12 5.81.377-1.414 1.255-2.718 1.79-4.15.668-1.79 1.055-3.686 1.224-6.035-.667-2.61-1.188-4.718-1.237-6.837-.023-1.003.856-2.027 1.326-3.042z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A7B0B9",d:"M204.915 151.804c-1.12-.343-2.096-.982-3.369-1.673-1.858-2.648-3.418-5.245-5.383-8.226-.938-.937-1.472-1.49-2.006-2.043 1.168-.252 2.793-1.125 3.43-.656 4.12 3.037 7.323 6.785 7.328 12.598z",opacity:"1"}),(0,n.jsx)("path",{fill:"#555E67",d:"M193.784 139.9c.907.515 1.44 1.068 2.05 1.9a12.042 12.042 0 01-3.57 2.655c-.598-.928-.938-1.694-1.278-2.46.022-.461.043-.922.132-1.723.81-.338 1.551-.335 2.666-.371z",opacity:"1"}),(0,n.jsx)("path",{fill:"#484748",d:"M191.006 138.73c-.775.271-1.53.271-2.662.26-.207-.583-.036-1.156.377-1.92.741.095 1.242.381 2.015.756.278.271.284.452.27.905z",opacity:"1"}),(0,n.jsx)("path",{fill:"#F1F1F2",d:"M235.018 194.01c.601-5.78-.434-12.013 3.54-15.992 2.558 2.45 4.602 5.898 7.222 6.413 1.863.367 4.503-3.217 7.465-5.57 2.254 2.323 3.387 5.946 1.544 10.971-.468 1.22-.922 2.06-.673 2.454 2.535 3.993 1.24 7.927-.23 11.965-.49.258-.713.479-1.164.72-.633-.075-.994-.125-1.354-.175-.055-.418-.11-.835-.258-1.918-1.627-2.256-3.031-4.928-4.734-5.134-1.722-.208-3.74 2.024-5.774 3.403-.143.387-.142.56-.258 1.06-.194 1.482-.27 2.638-.345 3.794 0 0-.49.086-.86-.165-1.27-.805-2.17-1.36-3.05-1.904.02.009.051-.023.051-.023-.052-.441-.104-.882-.154-2.052-.32-3.101-.644-5.474-.968-7.847z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M234.793 193.888c.549 2.495.872 4.868 1.125 7.643-2.245-1.753-3.494-6.018-2.315-8.496.546.193.755.462 1.19.853z",opacity:"1"}),(0,n.jsx)("path",{fill:"#ABB0B6",d:"M236.427 209.527c-.624-.223-1.25-.447-2.168-.841.567-1.564-3.072-4.39 1.516-4.744.365-.033.334-.001.194.268.312 1.515.763 2.761 1.215 4.007 0 0-.018.288-.198.612-.306.448-.433.573-.559.698z",opacity:"1"}),(0,n.jsx)("path",{fill:"#787575",d:"M233.654 189c.322.417.358.886.338 1.704-.245-.318-.434-.984-.338-1.703z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9CA5AC",d:"M181.009 174.005c.867.697 1.735 1.395 2.95 2.226.349.134.41.289.432.369-1.766.334-3.554.589-5.376 1.141-.82-.409-1.609-1.116-2.173-2.265.341-.558.458-.675.576-.791l-.712-.514s.118.05.166-.355c.071-1.867.093-3.328.46-4.798.804-.003 1.264.002 1.765.354.666 1.776 1.289 3.204 1.912 4.633z",opacity:"1"}),(0,n.jsx)("path",{fill:"#555E67",d:"M240.38 206.01c-.305-1.165-.23-2.321.202-3.828.49-.43.624-.512.758-.592l-.593-.658c1.889-1.164 3.907-3.396 5.63-3.188 1.702.206 3.106 2.878 4.607 4.844-1.135.448-2.236.52-3.74.7-1.75.877-3.1 1.645-4.702 2.597-.76.167-1.27.15-2.161.124z",opacity:"1"}),(0,n.jsx)("path",{fill:"#FEFEFE",d:"M243.003 217.02c-.348-1.791-.423-3.428-.424-5.468.936-.757 1.798-1.11 3.028-1.615v8.688l-1.273.79c-.353-.748-.705-1.494-1.33-2.396z",opacity:"1"}),(0,n.jsx)("path",{fill:"#C8CACD",d:"M251.236 140.956c3.844-1.434 5.14-4.336 4.76-8.614 2.225.26 4.394.932 6.563 1.604-.485 1.426-.97 2.851-1.591 4.601-2.825 2.423-5.514 4.522-8.59 6.18-.737-1.552-1.086-2.663-1.435-3.774 0 0 .217-.085.293.003z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M250.576 140.977c.716 1.087 1.065 2.198 1.423 3.66-.348 1.81-.704 3.268-1.181 5.09-.582.331-1.042.296-1.854.234-1.067-2.878-1.782-5.729-2.401-8.954 1.28-.252 2.462-.13 4.013-.03z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M252.04 113.748c-.39 1.322-.673 2.696-1.264 3.922-.12.247-1.405-.067-2.526-.684-2.721-2.783-5.069-5.005-7.416-7.226.068-1.298.137-2.597.217-4.282 2.516-.302 5.019-.217 7.81.166 1.162 1.814 2.036 3.33 3.033 5.487.13 1.299.138 1.958.146 2.617z",opacity:"1"}),(0,n.jsx)("path",{fill:"#C8CACD",d:"M254.108 204.167c1.248-3.954 2.543-7.888.008-11.88-.25-.394.205-1.235.61-2.078 1.053.417 1.827 1.044 2.931 1.606.981 1.047 1.632 2.16 2.56 3.449.131 2.444-.014 4.713-.16 7.373-2.102 2.81-4.204 5.228-6.67 7.543-.307-.875-.25-1.646-.291-2.799-.097-.38-.077-.4.263-.342.477-.919.613-1.895.75-2.872z",opacity:"1"}),(0,n.jsx)("path",{fill:"#C8CACD",d:"M251.3 205.122c.428-.276.789-.226 1.404.181.275.797.295 1.238.315 1.679l-.03.027c-.593-.515-1.176-1.038-1.69-1.887zM252.878 210.098c.026.17-.131.437-.555.662-.067-.233.147-.406.555-.662z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M237.495 208.147c-.763-1.176-1.214-2.422-1.545-3.946 1.02.276 1.919.83 2.943 1.678-.28.928-.683 1.563-1.398 2.268z",opacity:"1"}),(0,n.jsx)("path",{fill:"#ABB0B6",d:"M237.001 208.972c1.094.312 1.992.805 2.89 1.298l-.444.966c-.926-.36-1.852-.718-2.899-1.393.005-.44.132-.566.453-.871z",opacity:"1"}),(0,n.jsx)("path",{fill:"#2E2E30",d:"M240.536 109.818c2.645 2.163 4.993 4.385 7.433 6.948-.566 1.301-1.26 3.088-1.88 3.062-1.739-.073-3.893-.433-5.04-1.548-1.095-1.065-1.13-3.221-1.971-6.038-1.206 2.52-2.055 4.29-3.33 6.245-1.112-.422-1.799-1.025-2.425-2.004 1.16-2.564 2.26-4.752 3.36-6.94.217.173.434.347 1.288.56.637.039 1.052-.148 1.052-.148.405-.026.81-.052 1.513-.137z",opacity:"1"}),(0,n.jsx)("path",{fill:"#E3E7EB",d:"M236.718 109.223c-1.135 2.508-2.235 4.696-3.666 7.38-.55 1.468-.77 2.44-1.275 3.628-.483 4.05-.68 7.882-1.269 11.87-.616.322-.841.49-1.066.657-.42-2.65-.839-5.302-1.245-8.392.283-1.522.553-2.604.802-4.041 1.48-3.875 2.864-7.454 4.592-10.859.292-.575 2.07-.395 3.127-.243z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M239.007 109.699c.016.256-.4.443-.625.467-.098-.444.03-.912.156-1.38.151.219.302.437.47.913z",opacity:"1"}),(0,n.jsx)("path",{fill:"#E3E7EB",d:"M182.977 139.675c-1.409 1.91-2.873 3.481-4.97 5.33-1.552 3.395-2.47 6.513-3.7 9.79-.329 3.538-2.57 7.121.638 10.563.4 1.45.77 2.546.79 3.68-.844.47-1.339.902-1.833 1.334-.463-.35-.925-.701-1.622-1.231-.563-5.489-.89-10.798-1.21-16.56.961-3.24 1.915-6.026 2.918-9.181.424-.835.797-1.301 1.099-2.076 1.486-1.116 3.044-1.921 4.805-2.996.202-.268.487-.453.62-.558.892.452 1.65 1.009 2.465 1.905z",opacity:"1"}),(0,n.jsx)("path",{fill:"#ABB0B6",d:"M173.82 170.744c.576-.804 1.071-1.236 2.141-1.713.576-.046 1.027-.005 1.027-.005-.023 1.462-.045 2.923-.166 4.83-1.094-.617-2.09-1.679-3.003-3.112z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9CA5AC",d:"M182.473 179.457c.18.012.413.2.406.455-.239.067-.354-.28-.406-.455z",opacity:"1"}),(0,n.jsx)("path",{fill:"#ABB0B6",d:"M176.532 174.428c.41-.086.648.086.886.257a3.064 3.064 0 01-.585.46c-.313-.08-.394-.27-.301-.717z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9CA5AC",d:"M230.9 131.946c.197-3.833.394-7.666 1.169-11.471.914 5.235 1.25 10.444 1.586 15.653-.752-.384-1.503-.767-2.498-1.367-.242-.216-.213-.228-.185-.663a35.391 35.391 0 00-.073-2.152z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M233.727 136.467c-.408-5.548-.744-10.757-1.372-16.209-.072-1.215.147-2.187.637-3.28.957.484 1.644 1.087 2.653 1.85.36 6.851.397 13.542.368 20.662-.783-.609-1.498-1.647-2.286-3.023z",opacity:"1"}),(0,n.jsx)("path",{fill:"#E3E7EB",d:"M230.238 137.815c-.176-.63-.062-1.492.382-2.37.19.702.05 1.42-.382 2.37z",opacity:"1"}),(0,n.jsx)("path",{fill:"#C8CACD",d:"M230.508 132.1c.425.418.459.99.48 1.994-.47.032-.927-.367-1.466-1.05.145-.453.37-.62.986-.943z",opacity:"1"}),(0,n.jsx)("path",{fill:"#D8DDE0",d:"M256.515 130.891c-.891-1.389-1.474-2.922-1.374-4.697 1.474-2.536 2.265-4.831 3.055-7.127.974 1.46 1.948 2.92 3.077 4.72.107.715.058 1.09-.067 2.15-.082 1.517-.087 2.347-.092 3.177-1.43.544-2.86 1.088-4.6 1.777z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A7B0B9",d:"M261.413 129.08c-.294-.796-.289-1.626-.172-2.862.648.407 1.184 1.219 1.694 2.362-.425.377-.824.422-1.522.5z",opacity:"1"}),(0,n.jsx)("path",{fill:"#3A3A3B",d:"M258.135 118.695c-.73 2.668-1.52 4.963-2.696 7.275 1.404-4.457.07-8.298-3.09-12.028-.317-.853-.325-1.512-.342-2.498.168-.343.344-.36 1.123-.401 2.011 1.656 3.421 3.338 4.831 5.02.038.754.076 1.507.174 2.632z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9CA5AC",d:"M258.088 115.776c-1.537-1.395-2.947-3.077-4.702-4.801-.479-1.292-.613-2.54-.894-5.163 2.843 2.131 4.815 3.609 7.117 5.164.33.274.329.47.33.961-.572 1.381-1.149 2.467-1.851 3.84z",opacity:"1"}),(0,n.jsx)("path",{fill:"#868485",d:"M203.828 163.03c-.197-.376-.314-1.155-.131-1.984.27.493.24 1.037.131 1.984z",opacity:"1"}),(0,n.jsx)("path",{fill:"#986840",d:"M98.002 128.997c5.624.442 11.1 6.232 11.942 12.625.574 4.364-3.889 11.638-8.175 13.25-.609.23-1.514-.004-1.928.369-7.122 6.423-14.18 2.831-21.11-.229-5.171-2.283-8.005-6.58-7.636-12.219.35-5.324 2.444-9.932 8.516-11.402-.212 1.136-.644 2.044-1.292 2.756-5.25 5.77-4.68 13.363 1.446 18.03 5.895 4.492 12.013 2.97 18.234.72 4.703-1.7 7.887-5.867 7.716-12.069-.12-4.372-1.88-8.33-6.815-10.092-.367-.754-.632-1.247-.898-1.74z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A16F49",d:"M99.001 130.998c4.833 1.5 6.594 5.458 6.714 9.83.171 6.202-3.013 10.369-7.716 12.07-6.22 2.25-12.339 3.771-18.234-.72-6.126-4.668-6.697-12.26-1.446-18.03.648-.713 1.08-1.621 1.649-2.79.037-.35.53-.359 1.1-.4 1.023-.679 1.48-1.316 1.935-1.954.44-.005.88-.01 2.053-.011 1.804.005 2.875.008 3.884.36-.866.802-1.63 1.347-2.478 1.692-4.413 1.799-8.684 7.427-8.458 11.224.332 5.59 5.02 10.333 10.6 10.722 5.974.416 13.774-4.489 14.175-9.486.197-2.452-1.079-5.053-1.837-7.54-.516-1.694-1.29-3.308-1.946-4.96a.096.096 0 00.005-.007z",opacity:"1"}),(0,n.jsx)("path",{fill:"#986840",d:"M89.002 129.003a912.693 912.693 0 01-3.616-.013c2.959-3.654 8.354-4 11.198-.383-1.079.392-1.833.396-3.004.397h-4.578z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A16F49",d:"M93.996 129.006c.755-.003 1.51-.007 2.642-.016.378-.005.87.003 1.117.005.513.494.778.987 1.145 1.741.101.262.099.265-.3.267-1.8-.665-3.202-1.33-4.604-1.997z",opacity:"1"}),(0,n.jsx)("path",{fill:"#986840",d:"M82.682 129.043c-.135.599-.59 1.236-1.368 1.912.134-.599.59-1.236 1.368-1.912z",opacity:"1"}),(0,n.jsx)("path",{fill:"#8B5E35",d:"M110.405 191.035c-.834-.369-1.312-.694-2.093-1.032-.297-.455-.292-.899-.299-2.114.013-1.963.038-3.155.063-4.346.415.086.83.171 1.759.593 1.277 1.032 2.539 1.62 2.72 2.444 1.024 4.65 3.071 6.537 7.299 5.16 3.532-1.15 7.056-2.96 9.936-5.282 2.46-1.982 4.586-4.908 1.697-8.52-3.34-4.177-5.555-4.508-9.99-2.196-1.314.685-3.55-.4-5.365-.674a22.692 22.692 0 01-.08-1.712c1.807-.592 3.685-.564 5.354-1.142 5.66-1.96 11.216-.716 13.172 3.174 2.143 4.263-.236 12.475-4.698 14.97-3.26 1.823-6.791 3.223-10.314 4.503-3.962 1.439-6.29-1.524-9.161-3.826z",opacity:"1"}),(0,n.jsx)("path",{fill:"#7A542D",d:"M107.918 183.317c.133 1.417.108 2.609.084 4.24-3.298-.715-3.626-3.355-3.088-6.514 1.133.535 1.99 1.292 3.004 2.274z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M103.84 177.133c.574.623.893 1.408 1.22 2.529-.487-.565-.98-1.465-1.22-2.529z",opacity:"1"}),(0,n.jsx)("path",{fill:"#8B5E35",d:"M93.996 177.911c-2.415-1.65-4.437-1.24-6.608 1.068-.91-3.93.043-6.545 5.01-6.008 3.926.425 3.999 1.995 1.598 4.94z",opacity:"1"}),(0,n.jsx)("path",{fill:"#986840",d:"M71.72 183.848c-.312 2.46-.999 4.905-1.74 7.964-.055.614-.063 1.089-.063 1.089-.426.025-.852.05-1.768-.144-1.047.263-1.603.746-2.16 1.229 0 0-.495.006-.964-.266a1611.03 1611.03 0 00-15.005-6.736s-.02.016-.015-.415c-.19-1.551-.638-2.696-.53-3.785.267-2.727-.095-6.918 1.404-7.805 2.494-1.477 6.245-.98 9.47-1.01 1.544-.014 3.094.667 4.642 1.033 0 0 .428.021.64.04.25 1.138.286 2.26-.135 3.673-2.16-.172-3.857-.656-5.566-1.097-2.878-.743-5.633-1.744-7.735 1.81-2.05 3.464-.401 5.058 2.345 6.654 1.264.734 2.212 2.518 3.451 2.679 2.501.323 5.3.39 7.594-.462 1.515-.564 2.366-2.915 3.514-4.466.748 0 1.497.001 2.62.015z",opacity:"1"}),(0,n.jsx)("path",{fill:"#8B5E35",d:"M64.94 174.654c-1.497-.018-3.047-.7-4.592-.685-3.224.03-6.975-.467-9.47 1.01-1.498.887-1.136 5.078-1.404 7.805-.107 1.09.34 2.234.539 3.775-4.193-3.105-5.419-10.214-2.53-14.268 2.481-3.48 9.237-3.702 13.876-.454 1.176.823 2.352 1.646 3.58 2.817z",opacity:"1"}),(0,n.jsx)("path",{fill:"#704A25",d:"M65.754 197.723c-4.391 1.964-11.052.056-14.713-4.359 4.794 1.119 9.63 2.6 14.713 4.359z",opacity:"1"}),(0,n.jsx)("path",{fill:"#8B5E35",d:"M50.16 187.294c4.705 1.845 9.55 4 14.618 6.428-4.942 2.345-8.047-2.16-12.077-3.669-.97-.363-1.61-1.609-2.54-2.76zM66.29 193.972c.256-.47.812-.952 1.54-1.205-.3.55-.77.87-1.54 1.205z",opacity:"1"}),(0,n.jsx)("path",{fill:"#704A25",d:"M69.95 193.147c-.033-.246-.025-.721-.018-.96.602-.2 1.197-.165 2.24-.089.293.437.139.834-.128 1.536-.539.319-.965.333-1.71.302-.317-.046-.352-.542-.384-.789z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M68.716 196.174c.073.169-.083.475-.455.943-.068-.16.079-.483.455-.943z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A16F49",d:"M68.999 183.526c-1.048 1.858-1.899 4.21-3.414 4.773-2.294.853-5.093.785-7.594.462-1.24-.16-2.187-1.945-3.45-2.68-2.747-1.595-4.396-3.19-2.346-6.653 2.102-3.554 4.857-2.553 7.735-1.81 1.709.44 3.406.925 5.512 1.393 1.42 1.405 2.439 2.806 3.557 4.515z",opacity:"1"}),(0,n.jsx)("path",{fill:"#3A3A3B",d:"M69.01 177.115c1.152-1.188 2.285-1.978 3.418-2.77.515 1.274 1.47 2.572 1.403 3.814-.05.949-1.394 1.828-2.162 2.739-.893-1.129-1.785-2.257-2.66-3.783z",opacity:"1"}),(0,n.jsx)("path",{fill:"#593C21",d:"M46.999 194.999c.093-.036.186-.071.142-.052-.138.055-.141.053-.142.052z",opacity:"1"}),(0,n.jsx)("path",{fill:"#68431F",d:"M137.998 191.612c-3.63 2.894-7.081 5.75-10.954 7.81-2.636 1.403-5.838 2.105-8.839 2.29-1.31.082-2.747-1.913-4.17-3.331 6.917 1.714 12.212-1.938 17.537-5.48 1.91-1.272 3.808-2.562 6.06-3.89.353.71.36 1.467.366 2.601zM113.91 197.84c.078.17-.368.176-.59.185.023-.112.267-.233.59-.184z",opacity:"1"}),(0,n.jsx)("path",{fill:"#986840",d:"M116.072 175.443c1.874-.101 4.111.984 5.426.299 4.434-2.312 6.65-1.98 9.989 2.195 2.889 3.613.763 6.539-1.697 8.521-2.88 2.322-6.404 4.133-9.936 5.283-4.228 1.376-6.275-.512-7.299-5.16-.181-.826-1.443-1.413-2.409-2.38 3.971-1.366 5.48-4.455 5.926-8.758m12.31 3.931c-3.68-2.513-10.208-.145-11.295 4.099-.855 3.335 1.993 6.669 4.857 5.25 3.458-1.713 7.25-3.743 6.439-9.349z",opacity:"1"}),(0,n.jsx)("path",{fill:"#3A3A3B",d:"M111.648 175.878c-.203 1.87-.617 3.424-1.031 4.978l-2.46-1.902c1.093-1.13 2.187-2.262 3.49-3.076z",opacity:"1"}),(0,n.jsx)("path",{fill:"#2E2E30",d:"M83.745 192.508c5.118-.184 9.922-.184 14.725-.184l.654 1.129c-1.486 1.1-2.857 2.873-4.485 3.156-2.975.517-6.153.456-9.138-.03-.878-.143-1.391-2.529-1.756-4.07z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M250.533 174.538c-.062.039.061-.039 0 0z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M243.985 141.43c-.213-.09.008-.482.097-.543.089-.062.404.274.404.274s-.288.358-.501.269z",opacity:"1"}),(0,n.jsx)("path",{fill:"#F3F4F4",d:"M181.394 173.96c-1.008-1.384-1.631-2.812-2.281-5.057-.32-6.434-.614-12.052-.908-17.67l3.51-5.678c2.567 2.738 4.512 6.54 6.94 6.878 2.096.292 4.74-3.356 7.692-5.699 2.92 2.092 2.571 6.343 2.99 10.769-.349 1.428-1.228 2.452-1.205 3.455.05 2.119.57 4.226.904 6.726-1.032 2.148-2.07 3.91-3.619 6.536-.575-2.131-.533-3.517-1.202-4.146-1.627-1.53-3.623-3.788-5.398-3.725-1.817.065-3.689 2.407-5.262 4.02-.88.9-1.202 2.346-2.16 3.59z",opacity:"1"}),(0,n.jsx)("path",{fill:"#868485",d:"M177.874 151.039c.625 5.812.918 11.43 1.196 17.516-.474.465-.934.46-1.738.463-.344.008-.795-.033-1.022-.026-.596-1.088-.966-2.184-.978-3.703 3.728-4.223.5-7.333-.713-10.654.918-3.117 1.836-6.235 3.119-9.422.177 1.832-.009 3.731.136 5.826z",opacity:"1"}),(0,n.jsx)("path",{fill:"#484748",d:"M190.65 142.026c.676.735 1.016 1.501 1.357 2.603-.688 1.482-1.377 2.629-2.565 3.36-.891-.613-1.283-.812-1.675-1.01.849-1.641 1.697-3.281 2.883-4.953z",opacity:"1"}),(0,n.jsx)("path",{fill:"#676B72",d:"M187.807 147.28c.352-.103.744.096 1.377.53-.285.08-.81-.075-1.377-.53z",opacity:"1"}),(0,n.jsx)("path",{fill:"#909AA1",d:"M253.36 207.04c-.361-.5-.381-.94-.383-1.712.196-.598.419-.82.91-1.077a5.005 5.005 0 01-.528 2.788z",opacity:"1"}),(0,n.jsx)("path",{fill:"#535354",d:"M240.602 201.147c.343.004.54.223.738.443-.134.08-.267.161-.64.266-.24-.149-.241-.322-.098-.71z",opacity:"1"}),(0,n.jsx)("path",{fill:"#9CA5AC",d:"M174.307 154.794c1.525 3.162 4.753 6.272.995 10.14-3.566-3.018-1.324-6.601-.995-10.14z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A87550",d:"M93.58 129.004c1.818.668 3.22 1.334 5.018 2.002 1.053 1.65 1.828 3.265 2.344 4.958.758 2.488 2.034 5.089 1.837 7.54-.4 4.998-8.201 9.903-14.175 9.487-5.58-.389-10.268-5.131-10.6-10.722-.226-3.797 4.045-9.425 8.458-11.224.847-.345 1.612-.89 2.478-1.692 1.45-.35 2.836-.35 4.64-.349m-3.87 6.03c-3.6 1.68-7.703 3.085-6.547 8.343.526 2.395 6.68 3.169 10.776 1.819 3.9-1.285 3.959-3.894 2.022-6.472-1.253-1.668-3.611-2.506-6.251-3.69z",opacity:"1"}),(0,n.jsx)("path",{fill:"#A16F49",d:"M128.589 179.68c.605 5.3-3.187 7.33-6.645 9.043-2.864 1.419-5.712-1.915-4.857-5.25 1.087-4.244 7.616-6.612 11.502-3.792z",opacity:"1"}),(0,n.jsx)("path",{fill:"#B88363",d:"M90.098 135.021c2.252 1.197 4.61 2.035 5.863 3.703 1.937 2.578 1.878 5.187-2.022 6.472-4.097 1.35-10.25.576-10.776-1.819-1.156-5.258 2.946-6.663 6.935-8.356z",opacity:"1"})]})),g4=()=>(0,n.jsxs)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#627EEA"}),(0,n.jsx)("path",{d:"M12.3735 3V9.6525L17.9963 12.165L12.3735 3Z",fill:"white","fill-opacity":"0.602"}),(0,n.jsx)("path",{d:"M12.3735 3L6.75 12.165L12.3735 9.6525V3Z",fill:"white"}),(0,n.jsx)("path",{d:"M12.3735 16.476V20.9963L18 13.212L12.3735 16.476Z",fill:"white","fill-opacity":"0.602"}),(0,n.jsx)("path",{d:"M12.3735 20.9963V16.4753L6.75 13.212L12.3735 20.9963Z",fill:"white"}),(0,n.jsx)("path",{d:"M12.3735 15.4298L17.9963 12.1651L12.3735 9.65405V15.4298Z",fill:"white","fill-opacity":"0.2"}),(0,n.jsx)("path",{d:"M6.75 12.1651L12.3735 15.4298V9.65405L6.75 12.1651Z",fill:"white","fill-opacity":"0.602"})]})),m4=e=>(0,n.jsxs)("svg",Object.assign({width:363,height:149,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,n.jsx)("rect",{y:.576,width:363,height:148,rx:8,fill:"#F3F3F3"}),(0,n.jsx)("path",{d:"m170.743 48.236 10.315-5.957a.955.955 0 0 1 .952 0l27.185 15.696c.294.17.475.483.478.822l.036 10.795a.95.95 0 0 1-.477.828l-10.301 5.948a.953.953 0 0 1-1.429-.822l-.034-9.688a.953.953 0 0 0-.477-.822l-26.248-15.15a.952.952 0 0 1 0-1.65ZM164.08 97.133l-10.312-5.954a.947.947 0 0 1-.478-.824V58.963c0-.339.181-.652.475-.824l9.332-5.432a.947.947 0 0 1 .955 0l10.301 5.948a.954.954 0 0 1 .002 1.65l-8.371 4.872a.95.95 0 0 0-.475.825v30.31a.952.952 0 0 1-1.429.824v-.003ZM209.71 78.444v11.908a.947.947 0 0 1-.478.825l-27.185 15.695a.947.947 0 0 1-.949 0l-9.369-5.366a.954.954 0 0 1-.48-.828V88.784c0-.731.79-1.189 1.426-.827l8.406 4.816c.293.17.655.166.949 0l26.247-15.156a.953.953 0 0 1 1.43.824l.003.003Z",fill:"#000"})]})),y4=()=>(0,n.jsxs)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsxs)("g",Object.assign({"clip-path":"url(#clip0_9390_20606)"},{children:[(0,n.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#FF0420"}),(0,n.jsx)("path",{d:"M8.50098 15.1872C7.78578 15.1872 7.20018 15.0192 6.74418 14.6832C6.29298 14.3424 6.06738 13.8528 6.06738 13.224C6.06738 13.0896 6.08178 12.9312 6.11058 12.7392C6.18738 12.3072 6.29778 11.7888 6.44178 11.1792C6.84978 9.52799 7.90578 8.70239 9.60498 8.70239C10.0658 8.70239 10.4834 8.77919 10.8482 8.93759C11.213 9.08639 11.501 9.31679 11.7122 9.62399C11.9234 9.92639 12.029 10.2864 12.029 10.704C12.029 10.8288 12.0146 10.9872 11.9858 11.1792C11.8946 11.712 11.789 12.2352 11.6594 12.7392C11.4482 13.56 11.0882 14.1792 10.5698 14.5872C10.0562 14.9904 9.36498 15.1872 8.50098 15.1872ZM8.63058 13.8912C8.96658 13.8912 9.24978 13.7904 9.48498 13.5936C9.72498 13.3968 9.89778 13.0944 9.99858 12.6816C10.1378 12.1152 10.2434 11.6256 10.3154 11.2032C10.3394 11.0784 10.3538 10.9488 10.3538 10.8144C10.3538 10.2672 10.0706 9.99359 9.49938 9.99359C9.16338 9.99359 8.87538 10.0944 8.63538 10.2912C8.40018 10.488 8.23218 10.7904 8.13138 11.2032C8.02098 11.6064 7.91538 12.096 7.80498 12.6816C7.78098 12.8016 7.76658 12.9264 7.76658 13.0608C7.76178 13.6176 8.05458 13.8912 8.63058 13.8912Z",fill:"white"}),(0,n.jsx)("path",{d:"M12.4463 15.1009C12.3791 15.1009 12.3311 15.0817 12.2927 15.0385C12.2639 14.9905 12.2543 14.9377 12.2639 14.8753L13.5071 9.0193C13.5167 8.9521 13.5503 8.8993 13.6079 8.8561C13.6607 8.8129 13.7183 8.7937 13.7807 8.7937H16.1759C16.8431 8.7937 17.3759 8.9329 17.7791 9.2065C18.1871 9.4849 18.3935 9.8833 18.3935 10.4065C18.3935 10.5553 18.3743 10.7137 18.3407 10.8769C18.1919 11.5681 17.8895 12.0769 17.4287 12.4081C16.9775 12.7393 16.3583 12.9025 15.5711 12.9025H14.3567L13.9439 14.8753C13.9295 14.9425 13.9007 14.9953 13.8431 15.0385C13.7903 15.0817 13.7327 15.1009 13.6703 15.1009H12.4463ZM15.6335 11.6593C15.8879 11.6593 16.1039 11.5921 16.2911 11.4529C16.4831 11.3137 16.6079 11.1169 16.6703 10.8577C16.6895 10.7569 16.6991 10.6657 16.6991 10.5889C16.6991 10.4161 16.6463 10.2817 16.5455 10.1905C16.4447 10.0945 16.2671 10.0465 16.0223 10.0465H14.9423L14.6015 11.6593H15.6335Z",fill:"white"})]})),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",Object.assign({id:"clip0_9390_20606"},{children:(0,n.jsx)("rect",{width:"24",height:"24",fill:"white"})}))})]})),b4=()=>(0,n.jsxs)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsxs)("g",Object.assign({"clip-path":"url(#clip0_5284_6348)"},{children:[(0,n.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#7B3FE4"}),(0,n.jsx)("path",{d:"M20 12.2801V15.9003C19.9987 16.1261 19.9391 16.3476 19.8269 16.5433C19.7147 16.739 19.5538 16.9021 19.36 17.0168L16.235 18.8231C16.0415 18.9389 15.8203 19 15.595 19C15.3697 19 15.1485 18.9389 14.955 18.8231L11.83 17.0168C11.6362 16.9021 11.4753 16.739 11.3631 16.5433C11.251 16.3476 11.1913 16.1261 11.19 15.9003V14.8842L12.79 13.9522V15.7184L15.59 17.3492L18.39 15.7184V12.4645L15.59 10.8337L9.03001 14.6472C8.83465 14.7576 8.61421 14.8157 8.38999 14.8157C8.16577 14.8157 7.94536 14.7576 7.75 14.6472L4.62499 12.8333C4.43416 12.7169 4.27639 12.5532 4.16692 12.3579C4.05745 12.1625 3.99997 11.9422 4 11.7181V8.09786C4.00129 7.87211 4.06096 7.65056 4.17313 7.45487C4.28533 7.25918 4.44619 7.09604 4.63999 6.98144L7.765 5.17508C7.95895 5.06045 8.17993 5 8.40499 5C8.63008 5 8.85106 5.06045 9.04501 5.17508L12.17 6.98144C12.3638 7.09604 12.5247 7.25918 12.6369 7.45487C12.7491 7.65056 12.8087 7.87211 12.81 8.09786V9.11393L11.2 10.0397V8.28353L8.40001 6.65279L5.59999 8.28353V11.5337L8.40001 13.1644L14.96 9.35102C15.1553 9.24056 15.3758 9.18254 15.6 9.18254C15.8242 9.18254 16.0446 9.24056 16.24 9.35102L19.365 11.1649C19.5577 11.28 19.7175 11.4433 19.8287 11.6386C19.94 11.8341 19.999 12.055 20 12.2801Z",fill:"white"})]})),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",Object.assign({id:"clip0_5284_6348"},{children:(0,n.jsx)("rect",{width:"24",height:"24",fill:"white"})}))})]})),v4=()=>(0,n.jsxs)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsxs)("g",Object.assign({"clip-path":"url(#clip0_10279_32011)"},{children:[(0,n.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#7B3FE4"}),(0,n.jsx)("path",{d:"M18.4908 6.848L13.2428 3.81333C12.8641 3.6 12.4428 3.48267 12.0054 3.48267C11.5681 3.48267 11.1468 3.6 10.7734 3.81333L5.52542 6.848C5.15209 7.06667 4.83742 7.376 4.61875 7.75467C4.40009 8.128 4.28809 8.55467 4.28809 8.992V15.072C4.29342 15.504 4.40542 15.9253 4.62409 16.2987C4.84275 16.672 5.15209 16.9813 5.52542 17.1947L10.7734 20.2293C11.1468 20.448 11.5734 20.56 12.0108 20.56C12.4481 20.56 12.8694 20.448 13.2481 20.2293L18.4961 17.1947C18.8694 16.976 19.1841 16.6667 19.4028 16.288C19.6214 15.9147 19.7334 15.488 19.7334 15.0507V8.97067C19.7281 8.53867 19.6161 8.11733 19.3974 7.744C19.1734 7.37067 18.8641 7.06133 18.4908 6.848ZM5.52009 8.98667C5.52009 8.768 5.57875 8.55467 5.68542 8.368C5.79209 8.18133 5.95209 8.02133 6.13875 7.91467L11.3868 4.88533C11.5734 4.77867 11.7868 4.72 12.0054 4.72C12.2241 4.72 12.4374 4.77867 12.6241 4.88533L17.8774 7.91467C18.0641 8.02133 18.2188 8.176 18.3254 8.35733C18.4321 8.544 18.4908 8.752 18.4961 8.96533V9.584C18.4961 10.064 18.3041 10.528 17.9628 10.864C17.6214 11.2053 17.1628 11.3973 16.6828 11.3973H7.33875C6.68275 11.3973 6.04809 11.6053 5.52009 12V8.98667ZM18.4908 15.0507C18.4908 15.2693 18.4321 15.4827 18.3254 15.6693C18.2188 15.856 18.0588 16.016 17.8721 16.1227L12.6188 19.152C12.4321 19.2587 12.2188 19.3173 12.0001 19.3173C11.7814 19.3173 11.5681 19.2587 11.3814 19.152L6.13342 16.1227C5.94675 16.016 5.79209 15.8613 5.68542 15.68C5.57875 15.4933 5.52009 15.2853 5.51475 15.072V14.4533C5.51475 13.9733 5.70675 13.5093 6.04809 13.1733C6.38942 12.832 6.84809 12.64 7.32809 12.64H16.6668C17.3228 12.64 17.9574 12.432 18.4854 12.0373V15.0507H18.4908Z",fill:"white"}),(0,n.jsx)("path",{d:"M9.13577 8.67727H10.3358V10.4693H11.5731V8.67727C11.5731 8.35194 11.4451 8.03727 11.2104 7.80261C10.9811 7.57327 10.6664 7.43994 10.3358 7.43994H9.13577C8.81044 7.43994 8.49577 7.56794 8.2611 7.80261C8.03177 8.03194 7.89844 8.34661 7.89844 8.67727V10.4693H9.13577V8.67727Z",fill:"white"}),(0,n.jsx)("path",{d:"M10.3309 15.3601H9.13089V13.5681H7.89355V15.3601C7.89355 15.6854 8.02155 16.0001 8.25622 16.2348C8.48555 16.4641 8.80022 16.5974 9.13089 16.5974H10.3309C10.6562 16.5974 10.9709 16.4694 11.2056 16.2348C11.4349 16.0054 11.5682 15.6908 11.5682 15.3601V13.5681H10.3309V15.3601Z",fill:"white"}),(0,n.jsx)("path",{d:"M14 8.67727H15.2V10.4693H16.4374V8.67727C16.4374 8.35194 16.3094 8.03727 16.0747 7.80261C15.8454 7.57327 15.5307 7.43994 15.2 7.43994H14C13.6747 7.43994 13.36 7.56794 13.1254 7.80261C12.896 8.03194 12.7627 8.34661 12.7627 8.67727V10.4693H14V8.67727Z",fill:"white"}),(0,n.jsx)("path",{d:"M15.2054 15.3601H14.0054V13.5681H12.7681V15.3601C12.7681 15.6854 12.8961 16.0001 13.1307 16.2348C13.3601 16.4641 13.6747 16.5974 14.0054 16.5974H15.2054C15.5307 16.5974 15.8454 16.4694 16.0801 16.2348C16.3094 16.0054 16.4427 15.6908 16.4427 15.3601V13.5681H15.2054V15.3601Z",fill:"white"})]})),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",Object.assign({id:"clip0_10279_32011"},{children:(0,n.jsx)("rect",{width:"24",height:"24",fill:"white"})}))})]})),w4=e=>(0,n.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:25,viewBox:"0 0 24 24"},e,{children:[(0,n.jsxs)("defs",{children:[(0,n.jsx)("clipPath",Object.assign({id:"a"},{children:(0,n.jsx)("path",{d:"M5.965 7H16v11H5.965Zm0 0"})})),(0,n.jsx)("clipPath",Object.assign({id:"b"},{children:(0,n.jsx)("path",{d:"M13 6h4.91v4H13Zm0 0"})}))]}),(0,n.jsx)("path",{style:{stroke:"none",fillRule:"nonzero",fill:"#61dfff",fillOpacity:1},d:"M0 0h23.93v23.957H0Zm0 0"}),(0,n.jsx)("g",Object.assign({clipPath:"url(#a)"},{children:(0,n.jsx)("path",{style:{stroke:"none",fillRule:"nonzero",fill:"#121212",fillOpacity:1},d:"M15.883 18H5.965V7.95h2.27v8.1h7.648Zm0 0"})})),(0,n.jsx)("g",Object.assign({clipPath:"url(#b)"},{children:(0,n.jsx)("path",{style:{stroke:"none",fillRule:"nonzero",fill:"#121212",fillOpacity:1},d:"M15.883 9.895c1.12 0 2.027-.872 2.027-1.946C17.91 6.875 17.004 6 15.883 6c-1.117 0-2.024.875-2.024 1.95 0 1.073.907 1.945 2.024 1.945Zm0 0"})}))]})),A4=e=>(0,n.jsxs)("svg",Object.assign({"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e,{children:[(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",Object.assign({id:"a"},{children:(0,n.jsx)("path",{style:{fill:"none",strokeWidth:0},d:"M.4.5h23.2v23.1H.4z"})}))}),(0,n.jsxs)("g",Object.assign({style:{clipPath:"url(#a)"}},{children:[(0,n.jsx)("path",{d:"M12 7.9c2.3 0 4.1 1.8 4.1 4.1s-1.9 4.1-4.1 4.1-4.1-1.8-4.1-4.1S9.8 7.9 12 7.9Zm0-7.4c-1.6 0-3.1.3-4.5.9-1.4.6-2.6 1.4-3.7 2.5S1.9 6.2 1.3 7.6C.7 9 .4 10.5.4 12.1s.3 3.1.9 4.5c.6 1.4 1.4 2.6 2.5 3.7s2.3 1.9 3.7 2.5c1.4.6 2.9.9 4.5.9s3.1-.3 4.5-.9c1.4-.6 2.6-1.4 3.7-2.5s1.9-2.3 2.5-3.7c.6-1.4.9-2.9.9-4.5s-.3-3.1-.9-4.5c-.6-1.4-1.4-2.6-2.5-3.7S17.9 2 16.5 1.4C15.1.8 13.6.5 12 .5Z",style:{fill:"#b7f7b0",strokeWidth:0}}),(0,n.jsx)("path",{d:"M12 7.9c2.3 0 4.1 1.8 4.1 4.1s-1.9 4.1-4.1 4.1-4.1-1.8-4.1-4.1S9.8 7.9 12 7.9Zm0-5C7 2.9 2.9 7 2.9 12S7 21.1 12 21.1s9.1-4.1 9.1-9.1S17 2.9 12 2.9Z",style:{fill:"#07dc10",strokeWidth:0}}),(0,n.jsx)("path",{d:"M12 7.9c2.3 0 4.1 1.8 4.1 4.1s-1.9 4.1-4.1 4.1-4.1-1.8-4.1-4.1S9.8 7.9 12 7.9Zm0-2.5c-3.6 0-6.6 3-6.6 6.6s3 6.6 6.6 6.6 6.6-3 6.6-6.6-3-6.6-6.6-6.6Z",style:{fill:"#0c9b00",strokeWidth:0}}),(0,n.jsx)("path",{d:"M12 7.9c2.3 0 4.1 1.8 4.1 4.1s-1.9 4.1-4.1 4.1-4.1-1.8-4.1-4.1S9.8 7.9 12 7.9Z",style:{strokeWidth:0,fill:"#eaeaea"}})]}))]})),C4=e=>(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e,{children:(0,n.jsx)("path",{style:{stroke:"none",fillRule:"nonzero",fill:"#0052ff",fillOpacity:1},d:"M11.875 23.793c6.582 0 11.918-5.328 11.918-11.898C23.793 5.325 18.457 0 11.875 0 5.633 0 .508 4.793 0 10.895h15.75v2H0c.508 6.101 5.633 10.898 11.875 10.898Zm0 0"})})),E4=(e,t)=>(0,n.jsx)(u4,Object.assign({tooltipContent:`Delivered by ${t}`},{children:e}));var x4={ETH_TEST_SEPOLIA:{label:"ETHEREUM SEPOLIA",icon:E4((0,n.jsx)(g4,{}),"Ethereum Sepolia")},ETH_MAINNET:{label:"ETHEREUM MAINNET",icon:E4((0,n.jsx)(g4,{}),"Ethereum Mainnet")},POLYGON_MAINNET:{label:"POLYGON MAINNET",icon:E4((0,n.jsx)(b4,{}),"Polygon Mainnet")},POLYGON_TEST_AMOY:{label:"POLYGON AMOY",icon:E4((0,n.jsx)(b4,{}),"Polygon Amoy")},BSC_TESTNET:{label:"BSC TESTNET",icon:E4((0,n.jsx)(h4,{}),"Bsc Testnet")},BSC_MAINNET:{label:"BSC MAINNET",icon:E4((0,n.jsx)(h4,{}),"Bsc Mainnet")},OPTIMISM_TESTNET:{label:"OPTIMISM TESTNET",icon:E4((0,n.jsx)(y4,{}),"Optimism Testnet")},OPTIMISM_MAINNET:{label:"OPTIMISM MAINNET",icon:E4((0,n.jsx)(y4,{}),"Optimism Mainnet")},POLYGON_ZK_EVM_TESTNET:{label:"POLYGON ZK EVM TESTNET",icon:E4((0,n.jsx)(v4,{}),"Polygon ZK EVM Testnet")},POLYGON_ZK_EVM_MAINNET:{label:"POLYGON ZK EVM MAINNET",icon:E4((0,n.jsx)(v4,{}),"Polygon ZK EVM Mainnet")},ARBITRUMONE_MAINNET:{label:"ARBITRUMONE MAINNET",icon:E4((0,n.jsx)(f4,{}),"Arbitrum Mainnet")},ARBITRUM_TESTNET:{label:"ARBITRUM TESTNET",icon:E4((0,n.jsx)(f4,{}),"Arbitrum Testnet")},FUSE_MAINNET:{label:"FUSE MAINNNET",icon:E4((0,n.jsx)(m4,{}),"Fuse Mainnet")},FUSE_TESTNET:{label:"FUSE TESTNET",icon:E4((0,n.jsx)(m4,{}),"Fuse Testnet")},THE_GRAPH:{label:"THE GRAPH",icon:E4((0,n.jsx)((()=>(0,n.jsxs)("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsxs)("g",Object.assign({"clip-path":"url(#clip0_6814_10094)"},{children:[(0,n.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#6747ED"}),(0,n.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6606 12.7677C9.93715 12.7677 8.55353 11.3841 8.55353 9.6606C8.55353 7.93715 9.93715 6.55353 11.6606 6.55353C13.3841 6.55353 14.7677 7.93715 14.7677 9.6606C14.7677 11.3841 13.3841 12.7677 11.6606 12.7677ZM11.6606 5C14.2336 5 16.3212 7.08756 16.3212 9.6606C16.3212 12.2336 14.2336 14.3212 11.6606 14.3212C9.08756 14.3212 7 12.2336 7 9.6606C7 7.08756 9.08756 5 11.6606 5ZM16.1027 14.5639C16.4183 14.8795 16.4183 15.365 16.1027 15.6563L12.9957 18.7633C12.6801 19.0789 12.1946 19.0789 11.9033 18.7633C11.5878 18.4478 11.5878 17.9623 11.9033 17.671L15.0104 14.5639C15.3017 14.2484 15.8114 14.2484 16.1027 14.5639ZM17.899 5.77677C17.899 6.2137 17.5592 6.55353 17.1222 6.55353C16.6853 6.55353 16.3455 6.2137 16.3455 5.77677C16.3455 5.33984 16.6853 5 17.1222 5C17.5349 5 17.899 5.33984 17.899 5.77677Z",fill:"white"})]})),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",Object.assign({id:"clip0_6814_10094"},{children:(0,n.jsx)("rect",{width:"24",height:"24",fill:"white"})}))})]}))),{}),"The Graph")},BERACHAIN_TESTNET:{label:"BERACHAIN TESTNET",icon:E4((0,n.jsx)(p4,{}),"Berachain Testnet")},CYBER_CONNECT_TESTNET:{label:"CYBER CONNECT TESTNET",icon:E4((0,n.jsx)(A4,{}),"CyberConnect Testnet")},LINEA_TESTNET:{label:"LINEA TESTNET",icon:E4((0,n.jsx)(w4,{}),"Linea Testnet")},LINEA_MAINNET:{label:"LINEA MAINNET",icon:E4((0,n.jsx)(w4,{}),"Linea Mainnet")},CYBER_CONNECT_MAINNET:{label:"CYBER CONNECT MAINNET",icon:E4((0,n.jsx)(A4,{}),"CyberConnect Mainnet")},BASE_TESTNET:{label:"BASE TESTNET",icon:E4((0,n.jsx)(C4,{}),"Base Testnet")},BASE_MAINNET:{label:"BASE MAINNET",icon:E4((0,n.jsx)(C4,{}),"Base Mainnet")}};const S4=o.Ay.button.withConfig({displayName:"ActionButton",componentId:"sc-18nzz3z-0"})(["all:unset;background:",";color:",";padding:10px 20px;font-weight:500;border-radius:3px;cursor:",";opacity:",";transition:300ms;margin-left:auto;&:hover{opacity:",";}@media (max-width:600px){padding:8px 20px;}"],(e=>e.bgColor||"rgb(226, 8, 128)"),(e=>e.color||"#fff"),(e=>e.disabled?"default":"pointer"),(e=>e.disabled?"0.5":"1"),(e=>e.disabled?"0.5":"0.9")),I4="decrypted",k4="decrypt",_4=({decryptFn:e,isSecretRevealed:t})=>{const[r,o]=i.useState(!1),a=t?I4:k4;return(0,n.jsx)(S4,Object.assign({disabled:t,onClick:r=>pJ(void 0,void 0,void 0,(function*(){if(r.preventDefault(),r.stopPropagation(),e&&!t)try{o(!0),yield e()}finally{o(!1)}})),bgColor:"#674C9F"},{children:r?(0,n.jsx)($6,{}):a}))};var T4;!function(e){e.PROD="prod",e.STAGING="staging",e.DEV="dev",e.LOCAL="local"}(T4||(T4={}));const M4={ENV:T4,DEFAULT_TITLE:"Chat with us!",DEFAULT_GREETING_MSG:"Hi there!",DEFAULT_PROFILE_PICTURE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAvklEQVR4AcXBsW2FMBiF0Y8r3GQb6jeBxRauYRpo4yGQkMd4A7kg7Z/GUfSKe8703fKDkTATZsJsrr0RlZSJ9r4RLayMvLmJjnQS1d6IhJkwE2bT13U/DBzp5BN73xgRZsJMmM1HOolqb/yWiWpvjJSUiRZWopIykTATZsJs5g+1N6KSMiO1N/5DmAkzYTa9Lh6MhJkwE2ZzSZlo7xvRwson3txERzqJhJkwE2bT6+JhoKTMJ2pvjAgzYSbMfgDlXixqjH6gRgAAAABJRU5ErkJggg=="},P4="rtkd-a4JWpnViQBZdNCiFBGTJdp5e0R2",j4={11155111:{network:"sepolia"},80002:{network:"polygon-amoy"},1:{network:"mainnet"},137:{network:"polygon-mainnet"},97:{},11155420:{},80085:{}},D4={prod:1,dev:11155111,staging:11155111,local:11155111},O4="100cce93cd9d4626b9cedf707d4dbabc",B4=e=>`${{prod:"https://mainnet.infura.io/v3/",dev:"https://sepolia.infura.io/v3/",staging:"https://sepolia.infura.io/v3/",local:"https://sepolia.infura.io/v3/"}[e]}${O4}`,N4={ETHEREUM:"eip155:11155111",POLYGON:"eip155:80002",BSC:"eip155:97",OPTIMISM:"eip155:11155420",POLYGON_ZK_EVM:"eip155:2442",ARBITRUM:"eip155:421614",FUSE:"eip155:123",BERACHAIN:"eip155:80085",CYBER_CONNECT:"eip155:111557560",BASE:"eip155:84532",LINEA:"eip155:59141"},R4={prod:{ETHEREUM:"eip155:1",POLYGON:"eip155:137",BSC:"eip155:56",OPTIMISM:"eip155:10",POLYGON_ZK_EVM:"eip155:1101",ARBITRUM:"eip155:42161",FUSE:"eip155:122",CYBER_CONNECT:"eip155:7560",BASE:"eip155:8453",LINEA:"eip155:59144"},dev:N4,staging:N4,local:N4},L4={prod:[1,137,56,10,42161,122,59144,7569,8453],dev:[11155111,80002,97,11155420,421614,123,80085,59141,2442,111557560,84532],staging:[11155111,80002,97,11155420,421614,123,80085,59141,2442,111557560,84532],local:[11155111,80002,97,11155420,421614,123,80085,59141,2442,111557560,84532]},F4="64a44a0fb537407bfe97d24330e4109c",U4="AIzaSyBhUBnCia6zpxY7KcqjghRS1IphinAvKXs",z4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAvklEQVR4AcXBsW2FMBiF0Y8r3GQb6jeBxRauYRpo4yGQkMd4A7kg7Z/GUfSKe8703fKDkTATZsJsrr0RlZSJ9r4RLayMvLmJjnQS1d6IhJkwE2bT13U/DBzp5BN73xgRZsJMmM1HOolqb/yWiWpvjJSUiRZWopIykTATZsJs5g+1N6KSMiO1N/5DmAkzYTa9Lh6MhJkwE2ZzSZlo7xvRwson3txERzqJhJkwE2bT6+JhoKTMJ2pvjAgzYSbMfgDlXixqjH6gRgAAAABJRU5ErkJggg==",H4={REQUESTS:{title:"Chat request"},SPAM:{title:"Spam"}},V4=10,K4=10,G4=5,q4=e=>`https://cdn.jsdelivr.net/gh/napthedev/file-icons/file/${e}.svg`,Q4="https://spacev2-demo-17wvllxz.livekit.cloud",W4="wss://spacev2-demo-17wvllxz.livekit.cloud",J4="https://ms-lk-server.onrender.com",Y4="0x0000000000000000000000000000000000000001",Z4="eip155:0x99A08ac6254dcf7ccc37CeC662aeba8eFA666666",$4={bgColorPrimary:"#fff",bgColorSecondary:"#D53A94",textColorPrimary:"#1e1e1e",textColorSecondary:"#fff",btnColorPrimary:"#D53A94",btnColorSecondary:"#494D5F",border:"1px solid #E4E8EF",borderRadius:"24px",moduleColor:"#fff"},X4=(0,o.AH)(["display:",";position:",";background:",";color:",";cursor:",";flex:",";flex-direction:",";flex-wrap:",";gap:",";grid-template-columns:",";grid-template-rows:",";align-self:",";align-items:",";align-content:",";justify-content:",";padding:",";margin:",";margin-top:",";margin-left:",";margin-right:",";margin-bottom:",";min-width:",";max-width:",";overflow-y:",";overflow-x:",";font-size:",";font-weight:",";text-align:",";filter:",";box-shadow:",";top:",";bottom:",";left:",";right:",";width:",";height:",";border:",";border-radius:",";overflow:",";z-index:",";"],(e=>e.display),(e=>e.position),(e=>e.background),(e=>e.color),(e=>e.cursor),(e=>e.flex),(e=>e.flexDirection),(e=>e.flexWrap),(e=>e.gap),(e=>e.gridTemplateColumns),(e=>e.gridTemplateRows),(e=>e.alignSelf),(e=>e.alignItems),(e=>e.alignContent),(e=>e.justifyContent),(e=>e.padding),(e=>e.margin),(e=>e.marginTop),(e=>e.marginLeft),(e=>e.marginRight),(e=>e.marginBottom),(e=>e.minWidth),(e=>e.maxWidth),(e=>e.overflowY),(e=>e.overflowX),(e=>e.fontSize),(e=>e.fontWeight),(e=>e.textAlign),(e=>e.filter),(e=>e.boxShadow),(e=>e.top),(e=>e.bottom),(e=>e.left),(e=>e.right),(e=>e.width),(e=>e.height),(e=>e.border),(e=>e.borderRadius),(e=>e.overflow),(e=>e.zIndex)),e5=o.Ay.div.withConfig({displayName:"styles__Item",componentId:"sc-1il8o4s-0"})(["",""],X4),t5=o.Ay.a.withConfig({displayName:"styles__Anchor",componentId:"sc-1il8o4s-1"})(["",""],X4),r5=o.Ay.div.withConfig({displayName:"styles__Container",componentId:"sc-1il8o4s-2"})(["",""],X4),n5=o.Ay.img.withConfig({displayName:"styles__Image",componentId:"sc-1il8o4s-3"})(["",""],X4),i5=o.Ay.h1.withConfig({displayName:"styles__Heading",componentId:"sc-1il8o4s-4"})(["",""],X4),o5=o.Ay.button.withConfig({displayName:"styles__Button",componentId:"sc-1il8o4s-5"})(["",""],X4),a5=o.Ay.span.withConfig({displayName:"styles__Text",componentId:"sc-1il8o4s-6"})(["",""],X4),s5="2560px",c5={mobileS:`(max-width: ${"320px"})`,mobileM:`(max-width: ${"375px"})`,mobileL:`(max-width: ${"425px"})`,tablet:`(max-width: ${"768px"})`,laptop:`(max-width: ${"1024px"})`,laptopL:`(max-width: ${"1440px"})`,desktop:`(max-width: ${s5})`,desktopL:`(max-width: ${s5})`},u5={account:"",setAccount:()=>{},signer:void 0,setSigner:()=>{},pgpPrivateKey:"",setPgpPrivateKey:()=>{},env:T4.DEV,setEnv:()=>{},chainId:1,setChainId:()=>{},trendingListData:null,setTrendingListData:()=>{},selectedFeedTab:"Popular",setSelectedFeedTab:()=>{},spaceInfo:{},setSpaceInfo:()=>{},getSpaceInfo:()=>{},spaceWidgetId:"",setSpaceWidgetId:()=>{},mySpaces:{apiData:[],currentPage:1,lastPage:2},setMySpaces:()=>{},popularSpaces:{apiData:[],currentPage:1,lastPage:2},setPopularSpaces:()=>{},spaceRequests:{apiData:[],currentPage:1,lastPage:2},setSpaceRequests:()=>{},pushSpaceSocket:null,setPushSpaceSocket:()=>{},isPushSDKSocketConnected:!1,setIsPushSDKSocketConnected:()=>{},spaceObjectData:{},setSpaceObjectData:()=>{},initSpaceObject:()=>pJ(void 0,void 0,void 0,(function*(){})),spacesObjectRef:{current:null},isJoined:!1,isSpeaker:!1,isListener:!1,speakerData:{},setSpeakerData:()=>{},acceptSpaceRequest:()=>pJ(void 0,void 0,void 0,(function*(){})),connectSpaceRequest:()=>pJ(void 0,void 0,void 0,(function*(){})),broadcastRaisedHand:()=>pJ(void 0,void 0,void 0,(function*(){})),customSearch:void 0,raisedHandInfo:{}},l5=(0,i.createContext)(u5),d5={account:null,setAccount:()=>{},signer:void 0,setSigner:()=>{},pgpPrivateKey:"",setPgpPrivateKey:()=>{},env:M4.ENV.PROD,setEnv:()=>{},pushChatSocket:null,setPushChatSocket:()=>{},isPushChatSocketConnected:!1,setIsPushChatSocketConnected:()=>{},connectedProfile:void 0,setConnectedProfile:()=>{},preInitializeUser:()=>{},user:void 0,setUser:()=>{},pushChatStream:null,setPushChatStream:()=>{},isPushChatStreamConnected:!1,setIsPushChatStreamConnected:()=>{},toast:null,uiConfig:{suppressToast:!1},infuraAPIKey:null,chatStream:{},chatAcceptStream:{},chatRejectStream:{},chatRequestStream:{},groupCreateStream:{},groupUpdateStream:{},participantJoinStream:{},participantLeaveStream:{},participantRemoveStream:{},participantRoleChangeStream:{}},f5=(0,i.createContext)(d5),h5={account:null,setAccount:()=>{},signer:void 0,setSigner:()=>{},env:M4.ENV.PROD,setEnv:()=>{},user:void 0,setUser:()=>{}},p5=(0,i.createContext)(h5),g5=(0,i.createContext)({}),m5=(0,i.createContext)({}),y5=(0,i.createContext)({}),b5=({children:e})=>{const[t,r]=(0,i.useState)({}),[o,a]=(0,i.useState)(void 0),[s,c]=(0,i.useState)({}),[u,l]=(0,i.useState)({}),[d,f]=(0,i.useState)(new Map),[h,p]=(0,i.useState)(null),[g,m]=(0,i.useState)(null),[y,b]=(0,i.useState)(!1),[v,w]=(0,i.useState)(!1);return(0,n.jsx)(y5.Provider,Object.assign({value:{chatsFeed:s,requestsFeed:u,setRequestFeed:(e,t)=>{l((r=>Object.assign({[e]:t},r)))},setChatsFeed:c,setRequestsFeed:l,setChatFeed:(e,t)=>{c((r=>Object.assign({[e]:t},r)))},searchedChats:g,connectedProfile:o,setConnectedProfile:a,setSearchedChats:m,chats:d,setChats:f,setChat:(e,t)=>{const r=new Map(d);r.set(e,t),f(r)},selectedChatId:h,setSelectedChatId:p,web3NameList:t,setWeb3NameList:r,setWeb3Name:(e,t)=>{r((r=>Object.assign(Object.assign({},r),{[e]:t})))},finishedFetchingChats:y,finishedFetchingRequests:v,setFinishedFetchingChats:b,setFinishedFetchingRequests:w}},{children:e}))},v5=(0,i.createContext)({}),w5=(0,i.createContext)({}),A5=({children:e})=>{const[t,r]=(0,i.useState)({}),[o,a]=(0,i.useState)({}),[s,c]=(0,i.useState)({}),[u,l]=(0,i.useState)(new Map),[d,f]=(0,i.useState)(null),[h,p]=(0,i.useState)(!1),[g,m]=(0,i.useState)(!1);return(0,n.jsx)(w5.Provider,Object.assign({value:{inboxNotifsFeed:t,setInboxNotifFeed:(e,t)=>{r((r=>Object.assign({[e]:t},r)))},setInboxNotifsFeed:r,spamNotifsFeed:s,allInboxNotifFeed:o,setAllInboxNotifsFeed:a,setSpamNotifFeed:(e,t)=>{c((r=>Object.assign({[e]:t},r)))},setSpamNotifsFeed:c,searchedNotifications:d,setSearchedNotifications:f,subscriptionStatus:u,setChannelSubscriptionStatus:(e,t)=>{const r=new Map(u);r.set(e,t),l(r)},setSubscriptionStatus:l,finishedFetchingInbox:h,finishedFetchingSpam:g,setFinishedFetchingInbox:p,setFinishedFetchingSpam:m}},{children:e}))},C5={CHATS:"CHATS",APP_NOTIFICATIONS:"APP_NOTIFICATIONS"},E5={CHAT:"chat",NOTIFICATION:"notification"},x5={REQUESTS:"REQUESTS",SPAM:"SPAM"},S5={CHATS:"CHATS"},I5={CHAT:"CHAT",SEARCH:"SEARCH",NOTIFICATION:"NOTIFICATION",NEW_CHAT:"NEW_CHAT"},k5={OVERLAY:"OVERLAY",BLUR:"BLUR",TRANSPARENT:"TRANSPARENT"},_5={RELATIVE:"RELATIVE",GLOBAL:"GLOBAL"},T5=(0,i.createContext)({}),M5=({children:e})=>{const[t,r]=(0,i.useState)(C5.CHATS),[o,a]=(0,i.useState)(null),[s,c]=(0,i.useState)(!1);return(0,n.jsx)(T5.Provider,Object.assign({value:{newChat:s,setNewChat:c,activeTab:t,setActiveTab:e=>{c(!1),a(null),r(e)},setActiveSubTab:e=>{c(!1),a(e)},activeSubTab:o}},{children:e}))},P5=()=>{const e=(0,i.useContext)(f5);if(!e)throw new Error("useChatData must be used within a ChatDataProvider");return e},j5=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),[o,a]=(0,i.useState)(!1),[s,c]=(0,i.useState)(!1),{user:u}=P5(),l=(0,i.useCallback)((({type:r,page:n,limit:i,overrideAccount:o})=>pJ(void 0,void 0,void 0,(function*(){c(!0);try{console.debug(u);return yield null==u?void 0:u.chat.list(r,{overrideAccount:o,page:n,limit:i})}catch(e){return c(!1),t(e.message),void console.log(e)}finally{c(!1)}}))),[u]),d=(0,i.useCallback)((({chatId:r})=>pJ(void 0,void 0,void 0,(function*(){a(!0);try{return yield null==u?void 0:u.chat.latest(r)}catch(e){return a(!1),t(e.message),void console.log(e)}finally{a(!1)}}))),[u]),f=(0,i.useCallback)((({chatId:r,reference:i=null,limit:o=10})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{const e=yield null==u?void 0:u.chat.history(r,{limit:o,reference:i});return console.debug(e,"chatHistory"),e}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[u]);return{historyMessages:f,error:e,historyLoading:r,latestLoading:o,fetchLatestMessage:d,fetchChatList:l,chatListLoading:s}},D5=({env:e})=>{const[{wallet:t,connecting:r},n,o,a,s,c]=w(),[{chains:u,connectedChain:l,settingChain:d},f]=A(),h=(0,i.useMemo)((()=>t?new E.j(t.provider,"any"):new x.F(B4(e))),[t]);return{wallet:t,connecting:r,connect:n,disconnect:o,updateBalances:a,setWalletModules:s,setPrimaryWallet:c,provider:h,account:t&&t.accounts.length>0?S.bv(t.accounts[0].address):Y4,chainId:l?Number(l.id):D4[e],isActive:()=>!!(t&&t.accounts.length>0),setChain:f,switchChain:e=>pJ(void 0,void 0,void 0,(function*(){f({chainId:C.Fh(e)})})),settingChain:d,chains:u}},O5=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{user:o}=P5(),a=(0,i.useCallback)((({chatId:r})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{return yield null==o?void 0:o.chat.info(r)}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[o]);return{fetchChat:a,error:e,loading:r}},B5=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),[o,a]=(0,i.useState)(!1),[s,c]=(0,i.useState)(!1),{user:u}=P5(),l=(0,i.useCallback)((({role:r,memberList:i,chatId:o})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{const e=yield null==u?void 0:u.chat.group.add(o,{role:r,accounts:i});return n(!1),e}catch(e){return console.log("err",e),n(!1),t(e.message),e.message}}))),[u]),d=(0,i.useCallback)((({role:r,memberList:n,chatId:i})=>pJ(void 0,void 0,void 0,(function*(){a(!0);try{const e=yield null==u?void 0:u.chat.group.remove(i,{role:r,accounts:n});return a(!1),e}catch(e){return console.log("err",e),a(!1),t(e.message),e.message}}))),[u]),f=(0,i.useCallback)((({role:r,memberList:n,chatId:i})=>pJ(void 0,void 0,void 0,(function*(){c(!0);try{const e=yield null==u?void 0:u.chat.group.modify(i,{role:r,accounts:n});return c(!1),e}catch(e){return console.log("err",e),c(!1),t(e.message),e.message}}))),[u]);return{error:e,addLoading:r,removeLoading:o,modifyLoading:s,addMember:l,removeMember:d,modifyParticipant:f}},N5=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(),[o,a]=(0,i.useState)(!1),[s,c]=(0,i.useState)(!1),{user:u}=P5(),l=(0,i.useCallback)((({chatId:r,page:n,limit:i=10,pending:o=!1})=>pJ(void 0,void 0,void 0,(function*(){a(!0);try{const e=yield null==u?void 0:u.chat.group.participants.list(r,{page:n,limit:i,filter:{pending:o}});return a(!1),e}catch(e){return a(!1),console.log("err",e),t(e.message),e.message}}))),[u]),d=(0,i.useCallback)((({chatId:r,accountId:n})=>pJ(void 0,void 0,void 0,(function*(){a(!0);try{const e=yield null==u?void 0:u.chat.group.participants.status(r,{overrideAccount:n});return console.debug(e),a(!1),e}catch(e){return a(!1),console.log("err",e),t(e.message),e.message}}))),[u]),f=(0,i.useCallback)((({chatId:r})=>pJ(void 0,void 0,void 0,(function*(){a(!0);try{const e=yield null==u?void 0:u.chat.group.participants.count(r);return a(!1),e}catch(e){return a(!1),console.log("err",e),t(e.message),e.message}}))),[u]),h=(0,i.useCallback)((({chatId:t})=>pJ(void 0,void 0,void 0,(function*(){c(!0);try{const e=yield null==u?void 0:u.chat.group.join(t);return c(!1),e}catch(e){return console.log("err",e),c(!1),n(e.message),e.message}}))),[u]);return{error:e,loading:o,fetchMembers:l,fetchMemberStatus:d,fetchMembersCount:f,joinGroup:h,joinLoading:s,joinError:r}};var R5=Vq,L5=NH,F5=gz,U5=Zz,z5=_H,H5=ZH,V5=OW,K5=DX,G5=Iq,q5=Dz.Symbol,Q5=q5&&q5.prototype;if(L5&&z5(q5)&&(!("description"in Q5)||void 0!==q5().description)){var W5={},J5=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:V5(arguments[0]),t=H5(Q5,this)?new q5(e):void 0===e?q5():q5(e);return""===e&&(W5[t]=!0),t};G5(J5,q5),J5.prototype=Q5,Q5.constructor=J5;var Y5="Symbol(description detection)"===String(q5("description detection")),Z5=F5(Q5.valueOf),$5=F5(Q5.toString),X5=/^Symbol\((.*)\)[^)]+$/,e8=F5("".replace),t8=F5("".slice);K5(Q5,"description",{configurable:!0,get:function(){var e=Z5(this);if(U5(W5,e))return"";var t=$5(e),r=Y5?t8(t,7,-1):e8(t,X5,"$1");return""===r?void 0:r}}),R5({global:!0,constructor:!0,forced:!0},{Symbol:J5})}const r8=()=>{const{user:e}=P5(),[t,r]=(0,i.useState)(!1),n=(0,i.useCallback)((({recipient:t})=>pJ(void 0,void 0,void 0,(function*(){try{return yield null==e?void 0:e.profile.info({overrideAccount:t})}catch(ys){return void console.log(ys)}}))),[e]),o=(0,i.useCallback)((()=>pJ(void 0,void 0,void 0,(function*(){try{return yield null==e?void 0:e.encryption.info()}catch(ys){return void console.log(ys)}}))),[e]),a=(0,i.useCallback)((({userProfileDetails:t})=>pJ(void 0,void 0,void 0,(function*(){try{r(!0);const n=yield null==e?void 0:e.profile.update({name:t.name,desc:t.description,picture:t.picture});return r(!1),n}catch(ys){return r(!1),console.log(ys),ys.message}}))),[e]);return{fetchEncryptionInfo:o,updateUserProfile:a,fetchProfileInfo:n,updateProfileLoading:t}};var n8=vz,i8=Vq,o8=Array.isArray||function(e){return"Array"===n8(e)},a8=gz([].reverse),s8=[1,2];i8({target:"Array",proto:!0,forced:String(s8)===String(s8.reverse())},{reverse:function(){return o8(this)&&(this.length=this.length),a8(this)}});const c8=e=>{try{const t=L4[e].includes(1)?1:5,r=L4[e].includes(137)?137:80002;return Vm().fromEthersProvider({uns:{locations:{Layer1:{network:"mainnet",provider:new I.p(t,O4)},Layer2:{network:j4[r].network,provider:new I.p(r,O4)}}}})}catch($R){return void console.debug("Errored:UIWeb::helpers::getUdResolverClient::UD doesnot provide support for the network")}},u8=e=>e?(e=>{try{const t=e.split(":");return(5===t.length||6===t.length)&&"nft"===t[0].toLowerCase()&&!isNaN(Number(t[4]))&&Number(t[4])>0&&!isNaN(Number(t[2]))&&Number(t[2])>0&&S.PW(t[3])&&"eip155"===t[1]}catch(t){return!1}})(e)||e.includes("eip155:")?e:"eip155:"+e:e,l8=e=>{var t;return e&&(e=null!==(t=e.split(":").pop())&&void 0!==t?t:""),e},d8=(e,t)=>pJ(void 0,void 0,void 0,(function*(){const r=t||_.CONSTANTS.ENV.PROD,n=l8(e).toLowerCase(),i=S.bv(n),o=zm();let a=null;try{if(a=yield o.getDomainName({address:i,queryChainIdList:L4[r]}),!a){const e=c8(r);if(!e)throw new Error("UIWeb::helpers::address::resolveWeb3Name::Error in UD resolver");const t=yield e.reverse(i);t&&(a=t)}}catch(s){console.error("UIWeb::helpers::address::resolveWeb3Name::Error in resolving via ENS",s)}return a})),f8=e=>null==e?void 0:e.startsWith("eip155:"),h8=e=>pJ(void 0,void 0,void 0,(function*(){var t;return"getAddress"in e?yield e.getAddress():null!==(t=e.account.address)&&void 0!==t?t:void 0})),p8="data:image/jpeg;base64,/9j/4QffRXhpZgAATU0AKgAAAAgADAEAAAMAAAABAVQAAAEBAAMAAAABAVQAAAECAAMAAAADAAAAngEGAAMAAAABAAIAAAESAAMAAAABAAEAAAEVAAMAAAABAAMAAAEaAAUAAAABAAAApAEbAAUAAAABAAAArAEoAAMAAAABAAIAAAExAAIAAAAhAAAAtAEyAAIAAAAUAAAA1YdpAAQAAAABAAAA7AAAASQACAAIAAgACvyAAAAnEAAK/IAAACcQQWRvYmUgUGhvdG9zaG9wIDI1LjUgKE1hY2ludG9zaCkAMjAyNDowNDoyMiAwNjoyNjoyOQAAAAAABJAAAAcAAAAEMDIzMaABAAMAAAAB//8AAKACAAQAAAABAAAAgKADAAQAAAABAAAAgAAAAAAAAAAGAQMAAwAAAAEABgAAARoABQAAAAEAAAFyARsABQAAAAEAAAF6ASgAAwAAAAEAAgAAAgEABAAAAAEAAAGCAgIABAAAAAEAAAZVAAAAAAAAAEgAAAABAAAASAAAAAH/2P/tAAxBZG9iZV9DTQAC/+4ADkFkb2JlAGSAAAAAAf/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQRDAwMDAwREQwMDAwMDBEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAgACAAwEiAAIRAQMRAf/dAAQACP/EAT8AAAEFAQEBAQEBAAAAAAAAAAMAAQIEBQYHCAkKCwEAAQUBAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAABBAEDAgQCBQcGCAUDDDMBAAIRAwQhEjEFQVFhEyJxgTIGFJGhsUIjJBVSwWIzNHKC0UMHJZJT8OHxY3M1FqKygyZEk1RkRcKjdDYX0lXiZfKzhMPTdePzRieUpIW0lcTU5PSltcXV5fVWZnaGlqa2xtbm9jdHV2d3h5ent8fX5/cRAAICAQIEBAMEBQYHBwYFNQEAAhEDITESBEFRYXEiEwUygZEUobFCI8FS0fAzJGLhcoKSQ1MVY3M08SUGFqKygwcmNcLSRJNUoxdkRVU2dGXi8rOEw9N14/NGlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vYnN0dXZ3eHl6e3x//aAAwDAQACEQMRAD8A9VSSSSUpJM5zWgucYA5JVG/Nc/21+1vj3P8A5FJTatyaqtHGXfujUqq/PsP0AGjxOpVZJJTN19zvpPd98fkUJJ5JKSSSlSexIU233N+i8/fP5VBJJTZZn2D6YDh4jQq1Vk1W6NMO/dOhWYkkp2ElQozXM9tnub49x/5JXmua4BzTIPBCSl0kkklP/9D1VM5wa0ucYA1JTqhm373ek36LfpeZ/wDMUlI8jIdc7wYPot/78UJJJJSkkkklKSSThj3fRaT8AUlLJJyx7fpNI+IKZJSkkkklKRcfIdS7xYfpN/i1CSSU67XBzQ5pkHUFOqGFfsd6Tvou+j5H/wAyV9JT/9H1DJt9KouH0jo34lZis575sazs0SfiVWSUpJJJJSlOml9zobwOXHgKLGOe8Mby4wFqVVtqYGN4H4lJTCrFqr1jc794oySSSlINuLVZrG137wRkklOVdS+l213B4cOCoLVtrbawsdwfwKy3scx5Y7lpgpKWSSSSUpaeNb6tQcfpDR3xCzFZwHxYWdnCR8Qkp//S9Avduue7zP4aKCR1JPiUklKSSSSU2sBkvc/90QPmryqdP+g/4j8itpKUkkkkpSSSSSlKjnsh7X/vCD8leVTqH0GfE/kSU0kkkklKU6HbbmO8x+OigkOQfApKf//T708keBSU727bnt8z+OqgkpSSSSSmzgPixzD+cJHxCvrIa4tcHN0IMhadNzbmBzfmPApKSJJJJKUkkkkpSoZ75sawfmiT8Srd1zaWFzvkPErMc4ucXO1LjJSUskkkkpSQ5A8Skp0N3XMb5j8NUlP/1PRs9kWB/Zwg/EKstPJq9WotH0hq34hZiSlJJJJKUpV2PqduYYPcdj8VEamBqfAKYpuPFbvuSU3as2p+j/Y7z4+9HBBEgyPJZfoX/wCjd9yXoXjitw+SSnUJA1JgeaBbm1M0Z73eXH3ql6F55rcfiEvQv/0bvuSUtZY+1255k9h2CipGm4c1u+5R4MHQ+CSlJJJJKUrOAybHP7NED4lVlp41XpVBp+kdXfEpKf/V9VVDNo2O9Vo9rvpeR/8AMlfTOaHNLXCQdCElOQrGPiGwB7/azsO5TWUCi1psBdTPP8HLQa5rmhzTIPBCSlmVsrEMaGjyUkkklKSSSSUpJJJJSlB9Vdgh7QVNJJTnZGIavez3M7+IQFruLWtJcQGjmVn1Y4vtJZIpB5P/AFISUywqN7vVd9Fv0fM/+Yq+ma0NaGtEAaAJ0lP/1vVUkkklLOa1zS1wkHkFVDTdjEuo99Z5YVcSSUhpyqrdJ2u/dPKMhW41NurhDv3hoUL0cur+asD2/uuSU2klV+1Xt/nKD8W6p/t9Xdrh8klNlJVvt9XZrj8k32q9383Qfi7RJTaQbsqqrSdzv3Ryh+jl2/ztgY391qLVjU1atEu/eOpSUhFN2SQ6/wBlY4YFaa1rQGtEAcAJ0klKSSSSU//Z/+0PyFBob3Rvc2hvcCAzLjAAOEJJTQQEAAAAAAAPHAFaAAMbJUccAgAAAvQMADhCSU0EJQAAAAAAEHlEJN99tpz6r/WlELMfELU4QklNBDoAAAAAAQUAAAAQAAAAAQAAAAAAC3ByaW50T3V0cHV0AAAABQAAAABQc3RTYm9vbAEAAAAASW50ZWVudW0AAAAASW50ZQAAAABDbHJtAAAAD3ByaW50U2l4dGVlbkJpdGJvb2wAAAAAC3ByaW50ZXJOYW1lVEVYVAAAABEARgBvAGwAbABvAHcATQBlACAAUAByAGkAbgB0AGUAcgAAAAAAD3ByaW50UHJvb2ZTZXR1cE9iamMAAAAMAFAAcgBvAG8AZgAgAFMAZQB0AHUAcAAAAAAACnByb29mU2V0dXAAAAABAAAAAEJsdG5lbnVtAAAADGJ1aWx0aW5Qcm9vZgAAAAlwcm9vZkNNWUsAOEJJTQQ7AAAAAAItAAAAEAAAAAEAAAAAABJwcmludE91dHB1dE9wdGlvbnMAAAAXAAAAAENwdG5ib29sAAAAAABDbGJyYm9vbAAAAAAAUmdzTWJvb2wAAAAAAENybkNib29sAAAAAABDbnRDYm9vbAAAAAAATGJsc2Jvb2wAAAAAAE5ndHZib29sAAAAAABFbWxEYm9vbAAAAAAASW50cmJvb2wAAAAAAEJja2dPYmpjAAAAAQAAAAAAAFJHQkMAAAADAAAAAFJkICBkb3ViQG/gAAAAAAAAAAAAR3JuIGRvdWJAb+AAAAAAAAAAAABCbCAgZG91YkBv4AAAAAAAAAAAAEJyZFRVbnRGI1JsdAAAAAAAAAAAAAAAAEJsZCBVbnRGI1JsdAAAAAAAAAAAAAAAAFJzbHRVbnRGI1B4bEBSAAAAAAAAAAAACnZlY3RvckRhdGFib29sAQAAAABQZ1BzZW51bQAAAABQZ1BzAAAAAFBnUEMAAAAATGVmdFVudEYjUmx0AAAAAAAAAAAAAAAAVG9wIFVudEYjUmx0AAAAAAAAAAAAAAAAU2NsIFVudEYjUHJjQFkAAAAAAAAAAAAQY3JvcFdoZW5QcmludGluZ2Jvb2wAAAAADmNyb3BSZWN0Qm90dG9tbG9uZwAAAAAAAAAMY3JvcFJlY3RMZWZ0bG9uZwAAAAAAAAANY3JvcFJlY3RSaWdodGxvbmcAAAAAAAAAC2Nyb3BSZWN0VG9wbG9uZwAAAAAAOEJJTQPtAAAAAAAQAEgAAAABAAIASAAAAAEAAjhCSU0EJgAAAAAADgAAAAAAAAAAAAA/gAAAOEJJTQPyAAAAAAAKAAD///////8AADhCSU0EDQAAAAAABAAAAB44QklNBBkAAAAAAAQAAAAeOEJJTQPzAAAAAAAJAAAAAAAAAAABADhCSU0nEAAAAAAACgABAAAAAAAAAAE4QklNA/UAAAAAAEgAL2ZmAAEAbGZmAAYAAAAAAAEAL2ZmAAEAoZmaAAYAAAAAAAEAMgAAAAEAWgAAAAYAAAAAAAEANQAAAAEALQAAAAYAAAAAAAE4QklNA/gAAAAAAHAAAP////////////////////////////8D6AAAAAD/////////////////////////////A+gAAAAA/////////////////////////////wPoAAAAAP////////////////////////////8D6AAAOEJJTQQIAAAAAAAQAAAAAQAAAkAAAAJAAAAAADhCSU0ERAAAAAAAEAAAAAIAAAJAAAACQAAAAAA4QklNBB4AAAAAAAQAAAAAOEJJTQQaAAAAAANLAAAABgAAAAAAAAAAAAAAgAAAAIAAAAALAEQAZQBmAGEAdQBsAHQAXwBwAGYAcAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAgAAAAIAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAQAAAAAAAG51bGwAAAACAAAABmJvdW5kc09iamMAAAABAAAAAAAAUmN0MQAAAAQAAAAAVG9wIGxvbmcAAAAAAAAAAExlZnRsb25nAAAAAAAAAABCdG9tbG9uZwAAAIAAAAAAUmdodGxvbmcAAACAAAAABnNsaWNlc1ZsTHMAAAABT2JqYwAAAAEAAAAAAAVzbGljZQAAABIAAAAHc2xpY2VJRGxvbmcAAAAAAAAAB2dyb3VwSURsb25nAAAAAAAAAAZvcmlnaW5lbnVtAAAADEVTbGljZU9yaWdpbgAAAA1hdXRvR2VuZXJhdGVkAAAAAFR5cGVlbnVtAAAACkVTbGljZVR5cGUAAAAASW1nIAAAAAZib3VuZHNPYmpjAAAAAQAAAAAAAFJjdDEAAAAEAAAAAFRvcCBsb25nAAAAAAAAAABMZWZ0bG9uZwAAAAAAAAAAQnRvbWxvbmcAAACAAAAAAFJnaHRsb25nAAAAgAAAAAN1cmxURVhUAAAAAQAAAAAAAG51bGxURVhUAAAAAQAAAAAAAE1zZ2VURVhUAAAAAQAAAAAABmFsdFRhZ1RFWFQAAAABAAAAAAAOY2VsbFRleHRJc0hUTUxib29sAQAAAAhjZWxsVGV4dFRFWFQAAAABAAAAAAAJaG9yekFsaWduZW51bQAAAA9FU2xpY2VIb3J6QWxpZ24AAAAHZGVmYXVsdAAAAAl2ZXJ0QWxpZ25lbnVtAAAAD0VTbGljZVZlcnRBbGlnbgAAAAdkZWZhdWx0AAAAC2JnQ29sb3JUeXBlZW51bQAAABFFU2xpY2VCR0NvbG9yVHlwZQAAAABOb25lAAAACXRvcE91dHNldGxvbmcAAAAAAAAACmxlZnRPdXRzZXRsb25nAAAAAAAAAAxib3R0b21PdXRzZXRsb25nAAAAAAAAAAtyaWdodE91dHNldGxvbmcAAAAAADhCSU0EKAAAAAAADAAAAAI/8AAAAAAAADhCSU0EEQAAAAAAAQEAOEJJTQQUAAAAAAAEAAAAAThCSU0EDAAAAAAGcQAAAAEAAACAAAAAgAAAAYAAAMAAAAAGVQAYAAH/2P/tAAxBZG9iZV9DTQAC/+4ADkFkb2JlAGSAAAAAAf/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQRDAwMDAwREQwMDAwMDBEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAgACAAwEiAAIRAQMRAf/dAAQACP/EAT8AAAEFAQEBAQEBAAAAAAAAAAMAAQIEBQYHCAkKCwEAAQUBAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAABBAEDAgQCBQcGCAUDDDMBAAIRAwQhEjEFQVFhEyJxgTIGFJGhsUIjJBVSwWIzNHKC0UMHJZJT8OHxY3M1FqKygyZEk1RkRcKjdDYX0lXiZfKzhMPTdePzRieUpIW0lcTU5PSltcXV5fVWZnaGlqa2xtbm9jdHV2d3h5ent8fX5/cRAAICAQIEBAMEBQYHBwYFNQEAAhEDITESBEFRYXEiEwUygZEUobFCI8FS0fAzJGLhcoKSQ1MVY3M08SUGFqKygwcmNcLSRJNUoxdkRVU2dGXi8rOEw9N14/NGlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vYnN0dXZ3eHl6e3x//aAAwDAQACEQMRAD8A9VSSSSUpJM5zWgucYA5JVG/Nc/21+1vj3P8A5FJTatyaqtHGXfujUqq/PsP0AGjxOpVZJJTN19zvpPd98fkUJJ5JKSSSlSexIU233N+i8/fP5VBJJTZZn2D6YDh4jQq1Vk1W6NMO/dOhWYkkp2ElQozXM9tnub49x/5JXmua4BzTIPBCSl0kkklP/9D1VM5wa0ucYA1JTqhm373ek36LfpeZ/wDMUlI8jIdc7wYPot/78UJJJJSkkkklKSSThj3fRaT8AUlLJJyx7fpNI+IKZJSkkkklKRcfIdS7xYfpN/i1CSSU67XBzQ5pkHUFOqGFfsd6Tvou+j5H/wAyV9JT/9H1DJt9KouH0jo34lZis575sazs0SfiVWSUpJJJJSlOml9zobwOXHgKLGOe8Mby4wFqVVtqYGN4H4lJTCrFqr1jc794oySSSlINuLVZrG137wRkklOVdS+l213B4cOCoLVtrbawsdwfwKy3scx5Y7lpgpKWSSSSUpaeNb6tQcfpDR3xCzFZwHxYWdnCR8Qkp//S9Avduue7zP4aKCR1JPiUklKSSSSU2sBkvc/90QPmryqdP+g/4j8itpKUkkkkpSSSSSlKjnsh7X/vCD8leVTqH0GfE/kSU0kkkklKU6HbbmO8x+OigkOQfApKf//T708keBSU727bnt8z+OqgkpSSSSSmzgPixzD+cJHxCvrIa4tcHN0IMhadNzbmBzfmPApKSJJJJKUkkkkpSoZ75sawfmiT8Srd1zaWFzvkPErMc4ucXO1LjJSUskkkkpSQ5A8Skp0N3XMb5j8NUlP/1PRs9kWB/Zwg/EKstPJq9WotH0hq34hZiSlJJJJKUpV2PqduYYPcdj8VEamBqfAKYpuPFbvuSU3as2p+j/Y7z4+9HBBEgyPJZfoX/wCjd9yXoXjitw+SSnUJA1JgeaBbm1M0Z73eXH3ql6F55rcfiEvQv/0bvuSUtZY+1255k9h2CipGm4c1u+5R4MHQ+CSlJJJJKUrOAybHP7NED4lVlp41XpVBp+kdXfEpKf/V9VVDNo2O9Vo9rvpeR/8AMlfTOaHNLXCQdCElOQrGPiGwB7/azsO5TWUCi1psBdTPP8HLQa5rmhzTIPBCSlmVsrEMaGjyUkkklKSSSSUpJJJJSlB9Vdgh7QVNJJTnZGIavez3M7+IQFruLWtJcQGjmVn1Y4vtJZIpB5P/AFISUywqN7vVd9Fv0fM/+Yq+ma0NaGtEAaAJ0lP/1vVUkkklLOa1zS1wkHkFVDTdjEuo99Z5YVcSSUhpyqrdJ2u/dPKMhW41NurhDv3hoUL0cur+asD2/uuSU2klV+1Xt/nKD8W6p/t9Xdrh8klNlJVvt9XZrj8k32q9383Qfi7RJTaQbsqqrSdzv3Ryh+jl2/ztgY391qLVjU1atEu/eOpSUhFN2SQ6/wBlY4YFaa1rQGtEAcAJ0klKSSSSU//ZADhCSU0EIQAAAAAAVwAAAAEBAAAADwBBAGQAbwBiAGUAIABQAGgAbwB0AG8AcwBoAG8AcAAAABQAQQBkAG8AYgBlACAAUABoAG8AdABvAHMAaABvAHAAIAAyADAAMgA0AAAAAQA4QklNBAYAAAAAAAcACAAAAAEBAP/hEYtodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDkuMS1jMDAyIDc5LmYzNTRlZmM3MCwgMjAyMy8xMS8wOS0xMjowNTo1MyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE1IChNYWNpbnRvc2gpIiB4bXA6Q3JlYXRlRGF0ZT0iMjAxOC0xMS0xOVQxMDoyMTozNy0wODowMCIgeG1wOk1vZGlmeURhdGU9IjIwMjQtMDQtMjJUMDY6MjY6MjkrMDQ6MDAiIHhtcDpNZXRhZGF0YURhdGU9IjIwMjQtMDQtMjJUMDY6MjY6MjkrMDQ6MDAiIGRjOmZvcm1hdD0iaW1hZ2UvanBlZyIgcGhvdG9zaG9wOkxlZ2FjeUlQVENEaWdlc3Q9Ijc5NDQyNERGN0RCNjlDRkFBRkY1QTUxMEIzMUYxMEI1IiBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjU0OWFjZGRiLWM4MTAtNDNhMC04OTAxLTllOWYzYmVhODU4YSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOmY5ZDg3YjM1LTJkMjAtMTE3Yy1iN2VkLWI2ZjMyM2M4N2EzNSIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmEyNWFhZjUwLWM3NWMtNDRjMC1iYjAwLTE3MDJhYjNhMjEyMiI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YTI1YWFmNTAtYzc1Yy00NGMwLWJiMDAtMTcwMmFiM2EyMTIyIiBzdEV2dDp3aGVuPSIyMDE4LTExLTE5VDEwOjIxOjM3LTA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YjUwYzJiOWQtMjBjZS00MDdkLTkxNzEtYzU5NzlkNTYyYjUwIiBzdEV2dDp3aGVuPSIyMDE4LTExLTIwVDE2OjQ0OjIzLTA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY29udmVydGVkIiBzdEV2dDpwYXJhbWV0ZXJzPSJmcm9tIGltYWdlL3BuZyB0byBpbWFnZS9qcGVnIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJkZXJpdmVkIiBzdEV2dDpwYXJhbWV0ZXJzPSJjb252ZXJ0ZWQgZnJvbSBpbWFnZS9wbmcgdG8gaW1hZ2UvanBlZyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NzhmOTg1YmMtOTk4NS00M2M1LWE5MmYtNTQ4ZGIyOGVmYjMzIiBzdEV2dDp3aGVuPSIyMDE4LTExLTIwVDE2OjQ0OjIzLTA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NTQ5YWNkZGItYzgxMC00M2EwLTg5MDEtOWU5ZjNiZWE4NThhIiBzdEV2dDp3aGVuPSIyMDI0LTA0LTIyVDA2OjI2OjI5KzA0OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjUuNSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YjUwYzJiOWQtMjBjZS00MDdkLTkxNzEtYzU5NzlkNTYyYjUwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOmEyNWFhZjUwLWM3NWMtNDRjMC1iYjAwLTE3MDJhYjNhMjEyMiIgc3RSZWY6b3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmEyNWFhZjUwLWM3NWMtNDRjMC1iYjAwLTE3MDJhYjNhMjEyMiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8P3hwYWNrZXQgZW5kPSJ3Ij8+/+4ADkFkb2JlAGRAAAAAAf/bAIQAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQICAgICAgICAgICAwMDAwMDAwMDAwEBAQEBAQEBAQEBAgIBAgIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMD/8AAEQgAgACAAwERAAIRAQMRAf/dAAQAEP/EAaIAAAAGAgMBAAAAAAAAAAAAAAcIBgUECQMKAgEACwEAAAYDAQEBAAAAAAAAAAAABgUEAwcCCAEJAAoLEAACAQMEAQMDAgMDAwIGCXUBAgMEEQUSBiEHEyIACDEUQTIjFQlRQhZhJDMXUnGBGGKRJUOhsfAmNHIKGcHRNSfhUzaC8ZKiRFRzRUY3R2MoVVZXGrLC0uLyZIN0k4Rlo7PD0+MpOGbzdSo5OkhJSlhZWmdoaWp2d3h5eoWGh4iJipSVlpeYmZqkpaanqKmqtLW2t7i5usTFxsfIycrU1dbX2Nna5OXm5+jp6vT19vf4+foRAAIBAwIEBAMFBAQEBgYFbQECAxEEIRIFMQYAIhNBUQcyYRRxCEKBI5EVUqFiFjMJsSTB0UNy8BfhgjQlklMYY0TxorImNRlUNkVkJwpzg5NGdMLS4vJVZXVWN4SFo7PD0+PzKRqUpLTE1OT0laW1xdXl9ShHV2Y4doaWprbG1ub2Z3eHl6e3x9fn90hYaHiImKi4yNjo+DlJWWl5iZmpucnZ6fkqOkpaanqKmqq6ytrq+v/aAAwDAQACEQMRAD8A3+Pfuvde9+691737r3XvfuvdITdHY+1Npl4MhX/c5FRcYrHKKuvueB5URhFSgn8zOnH0v7917oCs33tuOsLx4LHUOFgNtE9XfJ11vobp+zRRE/W2mW39T7917oNa/em8MoX++3PmpVc6jFDVtQwA8/phoBTIByf6+/de6TrzTym81RUzn8mepnnJv9bmaRz+ffuvddJLPGdUVRUwt/qoKmeBuPp6opEPv3XulHQb13hjCpodz5mJUNxFNWNWwE/4w14qUI/2A9+690JWF733HRlUzuNoc1ACdc1H/uMrrHgWQ+ailI+trRX/AKj37r3Q67X7H2puwrBj6/7bIlbnFZFRSV/9D4kdjFVi/wCYXfj629+690u/fuvde9+691737r3Xvfuvdf/Q3+Pfuvde9+691Er6+jxdHUZDIVMNHRUkTTVNTUOI4oY1+rOx/qTYD6kkAXJ9+690VXfHcuUzTTY7a7T4fEeqOTI28WXyABsWgJ5xlMwHFv32H1KXt7917oEwACx5LMxZ2Ylnd2N2eR2JZ3Y/Ukkn37r3Xfv3Xuve/de697917r3v3Xuve/de697917rogEqeQyMHRlJV43XlXjdSGR1P0III9+690Nux+5MphWhxu6GnzGIGmOPIgGXL49SeGnP1ydMgPN/31HN3tb37r3RqaGvo8nR0+Qx9TDWUVXEs1NU07iSGaNvoyOvHBFiPqCCDyPfuvdS/fuvde9+691//0d/j37r3USvrqPGUdTkMhURUlFRwvUVNTM2mOGGMandjyTx9ALkngAn37r3RKewN/wBdviv0r5aTb1HKWxmMY6WnZbquSyKg2erkXmOM3WnU2F3LN7917pAe/de697917r3v3Xuve/de697917r3v3Xuve/de697917r3v3Xuve/de6X/X+/6/Y9fpbzVm3qyYNk8Yp1NAzWVsljUJASrQcyRghZ1FjZwre/de6OtQV1Hk6OmyGPqIquirIUqKaphbVHNDINSOp4I4+oNiDwQD7917qX7917r//S3+PfuvdFL7l3u2ayb7Vx03+4jDzj+JvGxC5DLxc/bsR+ulxbfUfRqi97+Me/de6BP37r3Xvfuvde9+691737r3XFmVBd2VR9LsQoufoLmw59+69050mHzOQXVQYXMVqfh6bGVssZ/ppkWDQwP+B9+6916sw+Zx666/DZeiQfV6rGVsMY/wAWkaAIo/1z7917psVlYXVlYf1Ugj/bjj37r3XL37r3Xvfuvde9+691737r3Q2dNb3bC5RdrZGb/cRmJz/DHkY6cdlpST9ul76KbKNwB9FqLW/zh9+690bT37r3X//T3vuxt0HaW1a/IwsBkKjTjsUD/wA7CsDJHLbm60kYeY/1Edvz7917ojABA5ZmYkszsdTu7Es8jseWd3JJP1JPv3Xuu/fuvde9+691737r3Sq2js7M70yDUWKjWOnp9ByOUqFb7PHo/Kq2mzVFXKvMcKkMR6mKrz7917o2O1urtp7YSOVKFMrk1A15XKJHU1GuwuaaFlNNRJqFwI1DD8sfr7917oRQAAABYDgAcAAfQAe/de68QCCCLg8EHkEH6gj37r3Qc7p6u2puhJZXokxWUYHx5XFpHTVGuxsamFVFNWpqPIkUsfww+vv3Xuinbu2dmdl5BaHKxrJBUa2x2Upw32eQROWVdV2p6uJf85CxLAepSy8+/de6S3v3Xuve/de697917ro3t6WZGBDK6HS6OpDJIjDlXjcAg/gi/v3Xujz9c7oO7dqUGRmYHI0+rHZUDj/chSBUklt+Fq4ysw/FpLfj37r3X//U3SO982azcWNwMbnwYWh+9nT8GvydwhP9TDRQi1/p5T7917oD/fuvde9+691737r3ThicVWZzKY/DY9Q1bk6lKaAsCUiBBeapm0gkQ0sCNI/+C2+p9+690fLbW3cdtXDUmFxkemCmS8kzAeesqnsaitqWH+cqKh+SfwLKLKAB7r3T97917r3v3Xuve/de697917ph3Lt3Hbpw1XhcnHqgqUvFMoHno6pLmnraVz/m6infkH8i6m6kg+690Q3LYusweUyGGyCha3GVL005UERygAPDUw3APhqoHWRP8Gt9R7917pv9+691737r3XvfuvdDj0RmzR7iyWBkY+DM0P3kC/gV2MID2ueDNRTG9vr4h7917r//1dv7etecpvDc9drLrLmauGIn6iChYUEK/wCsEpf959+690mffuvde9+691737r3Q8dCYhKnN5vNyKrfwuip6ClJ+sdRkXeWodf8AahTUqrf8Bz/X37r3RqPfuvde9+691737r3Xvfuvde9+691737r3RV++8QlNm8JnI1Vf4pRT0FUR9ZKjHOktO7f4/b1TLf8hB/T37r3QD+/de697917r3v3XulNsqvOL3htiu1FFizNJDKR9TBXMaCZf9YpVf7x7917r/1ttuVzLPUSty09TUzsb3u088kpN/zcv7917rh7917r3v3Xuve/de6M58fSv8K3OONYzFIT9L6DjotF/zbUG9+690YT37r3Xvfuvde9+691737r3Xvfuvde9+690Xz5BFf4VtgG3k/jFWV/roGOmD/wCNtTL7917osXv3Xuve/de697917rJC5jnp5QbGGppp1P8ARoJ45lP4/Ke/de6//9fbcmQxz1MRFjDU1MDD+jQTyRMP9unv3Xusfv3Xuve/de697917ocOiMylHuLKYSVwq5qhjqaYceusxbSGSO/8Aqno6hmH+EZ9+690bD37r3Xvfuvde9+691737r3Xvfuvde9+690U/vfNJW7jxeEiYMuFoJKmpA/sVmUaMxpf/AFSUdOrH+gkHv3XugP8Afuvde9+691737r3WSFDJPTxAXM1TTQKP6tPPHCo/P5f37r3X/9Db+3rQHF7x3PQlSix5mrmhB+pgrmFfC3+IKVPH+t7917pM+/de697917r3v3XupVBXVeLr6LJ0EvgrsfUxVdJKRqVZojcLIv8AailUlHH5RiPfuvdHs2duzHbywsGVoWCS2EOQoWYNPjq5VBmppbfVQTeN7WkjIYfWw917pVe/de697917r3v3Xuve/de6Su8d247ZuFnyteweSxhx9CrAT5CuZSYaaEH6KSLyP9I4wWP0sfde6InXV1XlK6tyeQl81dkamWsq5ALKZpmuVjX+zDEoCIP7KKB+PfuvdRffuvde9+691737r3Sm2VQHKbw2xQ6S6y5mkmlA+ogoWNfMx/oAlKffuvdf/9HdJ73wjUe4sbno1tBmqH7OdvwK/GElAbfQzUUwtf6+I+/de6A737r3Xvfuvde9+691737r3T5t3cmY2pklyuFqRBPZY6mCVTJR5CBW1fb1sAZPInJ0uCJIybqRyD7r3RpNsdz7WzSRQZeT+7mTbSrRV7g4+WQ8XpckAsOknm0oiYf0P19+690LNPVUtZGJqSpgqomAIlp5o54yD9CHiZlIP+v7917rqoq6WjjM1XU09LEou0tRNHBGAPqS8rKoA/1/fuvdBPufufa2FSWDESjceTXUixUD2x8Ug4vVZIq0OhTzaLysf6D6+/de6K3uLcmY3VknymaqfPPZo6aCMGOjx9OzBvtqKEs3jS4GpyTJIRdieAPde6Y/fuvde9+691737r3XvfuvdDh0RhDWbjyWekS8GFofs4H/AOm/JkFwP6mKihN/8JR7917r/9Le+7G2ud27Ur8dAoORp9ORxRPH+5CjDPHESPotXEzwn+gkv+PfuvdEYF7cqyMCVZHGl0dSVeN1PKujghh+CLe/de679+691737r3XcaPPKIIIpqidrWgpoZaic3+hEMKSSW/xt7917pQx7O3hMgki2puJ0b6MMVUqD/rB0Rv8AePfuvdZP7k70/wCeQ3F/57Jv+Ke/de69Hsne0X+Z2puaD/lhQ1UH+x/aZOffuvdek2Tvab/P7U3NPze9RQ1U5v8A1BmZ7H37r3Xv7k70/wCeQ3F/57Jv+Ke/de6xy7P3fAhkm2puKNB9XOKq2A/1xHG7f7x7917pOuGikMMySQzrfVBPG8Ey2+paGVUkA/2Hv3Xuve/de697917rokgcKzsSFVEGp3diFSNF+rO7EAD8k+/de6PP1ztc7S2pQY6dQMjUasjlSOf9yFYFeSK/5WkiCQj8ER3/AD7917r/09/j37r3RS+5dkNhco26cdD/ALiMxOP4mkanTj8vKbfcMBwlNlG5J+i1F728g9+690Cf05PAHJJ4AA5JJPAAHv3Xuhm696lqdzxQZrPtUY7AyASUdLEfDkMvGeVmLka6HHv9VNvLKvK6VIY+690aLD7fwm36daXC4uixsIXSRTQqkknN7zTEGadifqzsxP8AX37r3Tx7917r3v3Xuve/de697917r3v3Xuve/de6Y83tvBbjpzTZvF0mQjIsrTRDzxH8NBUppqIHB+hRlPv3Xuirdh9VVm0Uky+Iknye3V5qPKA9fhwTYNUsoH3dDyP3rB4/7YI9fv3Xugk9+690NnTWyGzWUTdWRh/3EYac/wAMSRTpyGXj4+4UH9dNi25B+jVFrX8Z9+690bT37r3X/9Tf49+691Er6GjydHU4/IU8VXRVkL09VTTLqimhkGl0YfXkfQixB5Fj7917ooOf2LSdf7qxdTuCnrctsOXIK6VcCrLKo9TwY3LJb1mCUKWtb7uFSF9epPfuvdG9x9dQ5Kipa7G1EFXQVMKyUtRTOrwSREWUxleAFtYjgqRYgEW9+691M9+691737r3Xvfuvde9+691737r3Xvfuvde9+691737r3UHJVePocfWVeVmpqfGwU8jVstWUFMtOV0yCYSXVkcNp02Oom1iTb37r3RP9s7Cpd97myUuBirsfsKnyDn76pXxVDQXDtisaGu3kZyQrNc00BXX+5ZffuvdHDoKGjxlHTY/H08VJRUcKU9NTQrpjhhjGlEUck8fUm5J5JJ9+691L9+691//V3+Pfuvde9+691Er6CiylHUY/I00NZRVcTQ1NNUIJIZo2+qsrf0IBB+oIBFiPfuvdAJU7S3l1hVz5XYTy5/bMztPX7Vq3eWogvYM9Ja8s7KPpJH+/YWdJQL+/de6EDaXaO1t2aKaOq/hWYuUlw2UZKerWZdIeOndiIqvSxtZT5Bb1Iv09+690I3v3Xuve/de697917r3v3Xuve/de697917oOd3dobX2mGppKn+K5i4SLDYxlqKoytcIlQ66oqTUwtZj5Df0o309+690H9LtPeXZ9XBld+vLgNswuJ8ftakd4aie3CPWBrSQMw+skg89jZEhBv7917oe6Cgo8XR0+Px9NDR0VJEsNNTU6COKGNfoqKP6k3J+pJJNyffuvdS/fuvde9+691//W3+Pfuvde9+691737r3XvfuvdILdXW2093apsjjxT5EgacrjyKSvDLyrSuqmOq0n/AI6q9vxb37r3SDTaHa+0bLtXdlNuTGx6Vjxe4ltOsYudEc8rOAB9PTNEP8B7917rMOzN9YkMu5esctZG0tVYSVqunP15VVjqU5t/x19+691mTvXbSj/LcJuqhkt6kmxcXpPNxdquMm1vrb37r3Xn7220wtRYTdVdJb0xxYuH1E/QXWrkIv8A1t7917rCezN9ZYKu2usctZ2KrV5uRqSnH+LKY6ZOL/8AHX37r3WFtodr7uGndW66bbeNk1LLi9vLed0POiSeJowQfp6ppR/h7917pe7V622ntHTNjceJ8gAdWVyDCrrixsWaN2URU2o/8clT6839+690vPfuvde9+691737r3Xvfuvdf/9k=",g8=({chatId:e,value:t})=>{localStorage.setItem(e,JSON.stringify(t))},m8=e=>{const t=localStorage.getItem(e);return t?JSON.parse(t):null},y8=({user:e,recipient:t})=>pJ(void 0,void 0,void 0,(function*(){const r=(null==e?void 0:e.account)?v8(t,864e5):p8;return null===r?pJ(void 0,void 0,void 0,(function*(){try{const r=yield null==e?void 0:e.profile.info({overrideAccount:t}),n=r.picture?r.picture:p8;return b8({account:t,image:n}),n}catch(r){return console.error(`UIWeb::helpers::getPfp::Error: ${r}`),p8}})):r})),b8=({account:e,image:t})=>{const r={value:t,timestamp:(new Date).getTime()};localStorage.setItem(e,JSON.stringify(r))},v8=(e,t)=>{const r=localStorage.getItem(e);if(!r)return null;try{const n=JSON.parse(r);return(new Date).getTime()>n.timestamp+t?(localStorage.removeItem(e),null):n.value}catch($R){console.debug(`UIWeb::getCacheData::error - ${(new Date).toISOString()}`,$R)}},w8=(e,t)=>{if(t)localStorage.removeItem(e);else{const t=(new Date).getTime();localStorage.setItem(e,JSON.stringify(t))}},A8=({isModalOpen:e,setIsModalOpen:t})=>{t(!e)},C8=e=>{if(navigator&&navigator.clipboard)navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}},E8=({user:e,groupInformation:t})=>({msg:{messageContent:"",timestamp:0,messageType:"",signature:"",sigType:"",link:null,encType:"",encryptedSecret:"",fromDID:"",fromCAIP10:"",toDID:"",toCAIP10:""},wallets:t?null:e.wallets,did:t?null:e.did,threadhash:null,profilePicture:t?t.groupImage:null==e?void 0:e.profile.picture,name:null,about:t?null:e.about,intent:null,intentSentBy:null,intentTimestamp:new Date,publicKey:t?null:e.publicKey,combinedDID:"",cid:"",groupInformation:null!=t?t:void 0}),x8=(e,t)=>{const r=m8(e);return!!(r&&(null==r?void 0:r.msg)&&r.msg.timestamp{const n={};return(r?[...t,...e]:[...e,...t]).filter((e=>!(e.cid in n)&&(n[e.cid]=!0,!0)))};var I8=cV,k8=Wz,_8=xz,T8=YV,M8=TypeError,P8="Reduce of empty array with no initial value",j8=function(e){return function(t,r,n,i){var o=k8(t),a=_8(o),s=T8(o);if(I8(r),0===s&&n<2)throw new M8(P8);var c=e?s-1:0,u=e?-1:1;if(n<2)for(;;){if(c in a){i=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw new M8(P8)}for(;e?c>=0:s>c;c+=u)c in a&&(i=r(i,a[c],c,o));return i}},D8={left:j8(!1),right:j8(!0)}.left;Vq({target:"Array",proto:!0,forced:!MX&&fH>79&&fH<83||!o$("reduce")},{reduce:function(e){var t=arguments.length;return D8(this,e,t,t>1?arguments[1]:void 0)}});const O8=(e,t)=>pJ(void 0,void 0,void 0,(function*(){return(null==e?void 0:e.startsWith("chatid:"))?e=e.replace("chatid:",""):e.includes("eip155:")?e=e.replace("eip155:",""):N8(e)&&(e=yield L8(e,t?t.env:_.CONSTANTS.ENV.PROD)),e}));function B8(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array)return e.reduce(((e,t,r)=>(e[r]=B8(t),e)),[]);if(e instanceof Object)return Object.keys(e).reduce(((t,r)=>(t[r]=B8(e[r]),t)),{});throw new Error("Unable to copy obj! Its type isn't supported.")}const N8=e=>e.includes(".")?e:null,R8=({searchText:e,fetchChatProfile:t,env:r,user:n})=>pJ(void 0,void 0,void 0,(function*(){let i,o=null;if(o=yield L8(e,r),o)return i=yield t({profileId:o,env:r,user:n}),i||(i=(({caip10:e})=>({did:e,wallets:e,publicKey:"",profilePicture:z4,encryptedPrivateKey:"",encryptionType:"",signature:"",sigType:"",encryptedPassword:null,about:null,name:null,numMsg:1,allowedNumMsg:100,nftOwner:null,linkedListHash:null,msgSent:0,maxMsgPersisted:0,profile:{name:null,desc:null,picture:z4,profileVerificationProof:null,blockedUsersList:null},verificationProof:""}))({caip10:u8(o)})),i})),L8=(e,t)=>pJ(void 0,void 0,void 0,(function*(){const r=c8(t),n=zm();let i=null;if(N8(e)){try{if(i=yield n.getAddress(e),!i){if(!r)throw new Error("No udResolverClient available for the network");i=yield null==r?void 0:r.owner(e)}}catch(o){console.debug(o)}return i||null}return(yield S.PW(l8(e)))?e:null})),F8=e=>s()(e).calendar(null,{lastWeek:" dddd",lastDay:"[Yesterday]",sameDay:"[Today]",nextWeek:"dddd",sameElse:"LL"});var U8=gz(1..valueOf),z8=zV,H8=OW,V8=_z,K8=RangeError,G8=Vq,q8=gz,Q8=zV,W8=U8,J8=function(e){var t=H8(V8(this)),r="",n=z8(e);if(n<0||n===1/0)throw new K8("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r},Y8=uz,Z8=RangeError,$8=String,X8=Math.floor,e9=q8(J8),t9=q8("".slice),r9=q8(1..toFixed),n9=function(e,t,r){return 0===t?r:t%2==1?n9(e,t-1,r*e):n9(e*e,t/2,r)},i9=function(e,t,r){for(var n=-1,i=r;++n<6;)i+=t*e[n],e[n]=i%1e7,i=X8(i/1e7)},o9=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=X8(n/t),n=n%t*1e7},a9=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=$8(e[t]);r=""===r?n:r+e9("0",7-n.length)+n}return r};G8({target:"Number",proto:!0,forced:Y8((function(){return"0.000"!==r9(8e-5,3)||"1"!==r9(.9,0)||"1.25"!==r9(1.255,2)||"1000000000000000128"!==r9(0xde0b6b3a7640080,0)}))||!Y8((function(){r9({})}))},{toFixed:function(e){var t,r,n,i,o=W8(this),a=Q8(e),s=[0,0,0,0,0,0],c="",u="0";if(a<0||a>20)throw new Z8("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return $8(o);if(o<0&&(c="-",o=-o),o>1e-21)if(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(o*n9(2,69,1))-69,r=t<0?o*n9(2,-t,1):o/n9(2,t,1),r*=4503599627370496,(t=52-t)>0){for(i9(s,0,r),n=a;n>=7;)i9(s,1e7,0),n-=7;for(i9(s,n9(10,n,1),0),n=t-1;n>=23;)o9(s,1<<23),n-=23;o9(s,1<0?c+((i=u.length)<=a?"0."+e9("0",a-i)+u:t9(u,0,i-a)+"."+t9(u,i-a)):c+u}});const s9=(e,t,r=!1)=>(null==e?void 0:e.length)>t+t+1?`${e.substring(0,t)}...${r?e.substring(e.length-t):""}`:e,c9=(e,t)=>e>=t?`${t}+`:e,u9=e=>{const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(1)} ${["B","KB","MB","GB","TB"][t]}`},l9=e=>s()(e).format("Do MMM [at] h:mm A");var d9=BG.PROPER,f9=uz,h9=j$,p9=U$.trim;Vq({target:"String",proto:!0,forced:function(e){return f9((function(){return!!h9[e]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[e]()||d9&&h9[e].name!==e}))}("trim")},{trim:function(){return p9(this)}});const g9=(e,t)=>`eip155:${t}:${e}`,m9=e=>{const t=_.utils.parseApiResponse(e),r=new Map,n=new Map;return e.forEach((e=>{r.set(e.payload.data.sid,e.epoch),n.set(e.payload.data.sid,e.sender)})),t.forEach((e=>{e.date=r.get(e.sid),e.epoch=new Date(e.date).getTime()/1e3,e.channel=n.get(e.sid)})),t},y9=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{account:o,env:a,decryptedPgpPvtKey:s}=(0,i.useContext)(v5),c=(0,i.useCallback)((({recipientAddress:r})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{return yield _.chat.chat({account:o,toDecrypt:!!s,pgpPrivateKey:String(s),recipient:r,env:a})}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[s,a]);return{fetchChat:c,error:e,loading:r}},b9=()=>{const e=(0,i.useCallback)((({profileId:e=Y4,env:t,user:r})=>pJ(void 0,void 0,void 0,(function*(){try{return yield _.user.get({env:t,account:e})}catch(ys){return void console.log(ys)}}))),[]);return{fetchChatProfile:e}},v9=({socketType:e=E5.NOTIFICATION})=>{const[t,r]=(0,i.useState)(!1),[n,o]=(0,i.useState)(""),[a,s]=(0,i.useState)(""),[c,u]=(0,i.useState)(""),{fetchChat:l}=y9(),{account:d,env:f,decryptedPgpPvtKey:h,signer:p}=(0,i.useContext)(v5),{chats:g,setChat:m,chatsFeed:y,connectedProfile:b,setChatFeed:v,setRequestFeed:w,requestsFeed:A,selectedChatId:C}=(0,i.useContext)(y5),{fetchChatProfile:E}=b9(),{subscriptionStatus:x,setInboxNotifFeed:S,setSpamNotifFeed:I}=(0,i.useContext)(w5),[k,M]=(0,i.useState)(null),P=(0,i.useCallback)((()=>{null==k||k.on(T.EVENTS.CONNECT,(()=>{r(!0)})),null==k||k.on(T.EVENTS.DISCONNECT,(e=>{console.log(e),r(!1)})),null==k||k.on(T.EVENTS.USER_FEEDS,(e=>{const t=m9([e]);x.get(t[0].channel)?S(`notif${t[0].sid}`,t[0]):I(`notif${t[0].sid}`,t[0]),u(e)})),null==k||k.on(T.EVENTS.CHAT_RECEIVED_MESSAGE,(e=>pJ(void 0,void 0,void 0,(function*(){var t,r,n,i,a,s,c,u,p;if(!b||!h)return;const x=(({msg:e,account:t})=>l8(e.fromCAIP10).toLowerCase()===t.toLowerCase()?e.toCAIP10:f8(e.toCAIP10)?e.fromCAIP10:e.toCAIP10)({msg:e,account:d}).toLowerCase();if(!f8(x))return;if("Request"===e.messageCategory&&null===e.messageContent&&null===e.messageType){if("other"===e.messageOrigin){const e=yield E({profileId:x,env:f});if(e||Object.keys(e||{}).length){let t={};t=y[x],t.publicKey=e.publicKey,v(x,t)}}return}const S=yield _.chat.decryptConversation({messages:[e],connectedUser:b,pgpPrivateKey:h,env:f});if(S&&S.length){const e=S[0];let o={};if(y[x])o=y[x],m(x,{messages:Array.isArray(null===(t=g.get(x))||void 0===t?void 0:t.messages)?[...g.get(x).messages,e]:[e],lastThreadHash:null!==(n=null===(r=g.get(x))||void 0===r?void 0:r.lastThreadHash)&&void 0!==n?n:e.link}),o.msg=e,v(x,o);else if(A[x])o=A[x],m(x,{messages:Array.isArray(null===(i=g.get(x))||void 0===i?void 0:i.messages)?[...g.get(x).messages,e]:[e],lastThreadHash:null!==(s=null===(a=g.get(x))||void 0===a?void 0:a.lastThreadHash)&&void 0!==s?s:e.link}),o.msg=e,w(x,o);else{const t=yield l({recipientAddress:x});console.log(x),Object.keys(t||{}).length&&(({chat:e,account:t})=>!(!(t&&Object.keys(e||{}).length&&e.combinedDID.toLowerCase().includes(u8(t).toLowerCase()))||e.intent&&e.intent.toLowerCase().includes(u8(t).toLowerCase())))({chat:t,account:d})?w(x,t):v(x,t),console.log("in here"),console.log(e),m(x,{messages:Array.isArray(null===(c=g.get(x))||void 0===c?void 0:c.messages)?[...g.get(x).messages,e]:[e],lastThreadHash:null!==(p=null===(u=g.get(x))||void 0===u?void 0:u.lastThreadHash)&&void 0!==p?p:e.link})}C===x&&g8({chatId:x,value:o})}o(e)})))),null==k||k.on(T.EVENTS.CHAT_GROUPS,(e=>{s(e)}))}),[k,h,y,A,m,g,v,w,l]),j=(0,i.useCallback)((()=>{null==k||k.off(T.EVENTS.CONNECT),null==k||k.off(T.EVENTS.DISCONNECT),null==k||k.off(T.EVENTS.CHAT_GROUPS),null==k||k.off(T.EVENTS.CHAT_RECEIVED_MESSAGE)}),[k]);return(0,i.useEffect)((()=>(k&&P(),()=>{k&&j()})),[P,k,j]),(0,i.useEffect)((()=>{if(h){k&&(null==k||k.disconnect());let t=1;pJ(void 0,void 0,void 0,(function*(){t=yield null==p?void 0:p.getChainId()}));const r=(0,T.createSocketConnection)({user:e===E5.CHAT?d:g9(d,t),socketType:e,env:f});M(r)}}),[h,f]),{pushChatNotificationSocket:k,isSDKSocketConnected:t,messagesSinceLastConnection:n,groupInformationSinceLastConnection:a,notificationFeedSinceLastConnection:c}},w9=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{account:o,env:a,decryptedPgpPvtKey:s}=(0,i.useContext)(v5),c=(0,i.useCallback)((({page:r,chatLimit:i})=>pJ(void 0,void 0,void 0,(function*(){var c,u,l;n(!0);try{const e=yield _.chat.chats({account:o,toDecrypt:!!s,pgpPrivateKey:String(s),page:r,limit:i,env:a}),t={};for(const r of e)(null==r?void 0:r.groupInformation)||(t[null!==(c=r.did.toLowerCase())&&void 0!==c?c:r.chatId]=r,m8(null!==(u=r.did.toLowerCase())&&void 0!==u?u:r.chatId)||g8({chatId:null!==(l=r.did.toLowerCase())&&void 0!==l?l:r.chatId,value:r}));return t}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[s,a]);return{fetchChats:c,error:e,loading:r}},A9=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1);(0,i.useContext)(y5);const{account:o,env:a,decryptedPgpPvtKey:s}=(0,i.useContext)(v5),c=(0,i.useCallback)((({page:r,requestLimit:i})=>pJ(void 0,void 0,void 0,(function*(){var c;n(!0);try{const e=yield _.chat.requests({account:o,toDecrypt:!!s,pgpPrivateKey:String(s),page:r,limit:i,env:a}),t={};for(const r of e)(null==r?void 0:r.groupInformation)||(t[null!==(c=r.did.toLowerCase())&&void 0!==c?c:r.chatId]=r);return t}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[s,a]);return{fetchRequests:c,error:e,loading:r}};function C9(e,t){const[r,n]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{const r=new IntersectionObserver((([e])=>{n(e.isIntersecting)}),{rootMargin:t});return e.current&&r.observe(e.current),()=>r.disconnect()}),[]),r}var E9=NH,x9=LH,S9=ZK,I9=function(e,t,r){E9?x9.f(e,t,S9(0,r)):e[t]=r},k9=b3,_9=I9;Vq({target:"Object",stat:!0},{fromEntries:function(e){var t={};return k9(e,(function(e,r){_9(t,e,r)}),{AS_ENTRIES:!0}),t}});const T9=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{account:o,env:a}=(0,i.useContext)(v5),s=(0,i.useCallback)((({page:r,limit:i,spam:s=!1})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{const e=yield _.user.getFeeds({user:o,raw:!0,env:a,page:r,spam:s,limit:i}),t=m9(e),n=Object.fromEntries(t.map((e=>[`notif${e.sid}`,e])));return n}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[o,a]);return{fetchNotification:s,error:e,loading:r}},M9=()=>{const e=(0,i.useContext)(l5);if(!e)throw new Error("useSpaceData must be used within a SpaceDataProvider");return e},P9=()=>{const{popularSpaces:e,setPopularSpaces:t,env:r}=M9(),[n,o]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){o(!0);try{const n=yield _.space.trending({page:e.currentPage,limit:10,env:r});if(0===n.length)return t({lastPage:-1}),void o(!1);n.length>0&&t({apiData:n})}catch(ys){console.error("Error while fetching popular spaces:",ys)}o(!1)}))}),[e.currentPage]),{loading:n}},j9=e=>{const{mySpaces:t,setMySpaces:r,env:n}=M9(),[o,a]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(e){a(!0);try{const i=yield _.space.spaces({account:e,page:t.currentPage,limit:10,toDecrypt:!1,env:n});if(0===i.length)return r({lastPage:-1}),void a(!1);i.length>0&&r({apiData:i})}catch(ys){console.error("Error while fetching Spaces For You:",ys)}a(!1)}}))}),[t.currentPage]),{loading:o}},D9=e=>{const{spaceRequests:t,setSpaceRequests:r,env:n}=M9(),[o,a]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(e){a(!0);try{const i=yield _.space.requests({account:e,page:t.currentPage,limit:10,toDecrypt:!1,env:n});if(0===i.length)return r({lastPage:-1}),void a(!1);i.length>0&&r({apiData:i})}catch(ys){console.error("Error while fetching spaces requests:",ys)}a(!1)}}))}),[t.currentPage]),{loading:o}},O9=e=>{const t=i.useRef(null);return i.useEffect((()=>{t.current&&(t.current.scrollTop=0)}),[]),t},B9="nft",N9=e=>e&&e.split(":")[0]===B9,R9=(e,t)=>e&&N9(e)?Number(e.split(":")[2]):t===T4.PROD?1:5,L9=(e,t)=>!(!e||!t)&&(N9(t)?t.toUpperCase().includes(e.toUpperCase()):e.toUpperCase()===t.toUpperCase()),F9=["mousedown","touchstart"];function U9(e,...t){e&&e.addEventListener&&e.addEventListener(...t)}function z9(e,...t){e&&e.removeEventListener&&e.removeEventListener(...t)}const H9=(e,t,r=F9)=>{const n=(0,i.useRef)(t);(0,i.useEffect)((()=>{n.current=t}),[t]),(0,i.useEffect)((()=>{const t=t=>{const{current:r}=e;r&&!r.contains(t.target)&&n.current(t)};for(const e of r)U9(document,e,t);return()=>{for(const e of r)z9(document,e,t)}}),[r,e])};function V9(e){const[t,r]=(0,i.useState)(window.outerWidth);function n(){r(window.outerWidth)}return(0,i.useEffect)((()=>{function e(){r(window.outerWidth)}return window.addEventListener("resize",n),window.addEventListener("load",e),()=>{window.removeEventListener("resize",n),window.removeEventListener("load",e)}}),[e]),t<=e}function K9(e){const t=e=>"undefined"!=typeof window&&window.matchMedia(e).matches,[r,n]=(0,i.useState)(t(e));function o(){n(t(e))}return(0,i.useEffect)((()=>{const t=window.matchMedia(e);return o(),t.addListener?t.addListener(o):t.addEventListener("change",o),()=>{t.removeListener?t.removeListener(o):t.removeEventListener("change",o)}}),[e]),r}const G9=()=>{const e=(0,i.useCallback)((({signer:e,account:t,pgpPrivateKey:r,env:n})=>pJ(void 0,void 0,void 0,(function*(){try{return yield _.PushAPI.initialize(null!=e?e:void 0,{env:n,account:t,decryptedPGPPrivateKey:r,alpha:{feature:["SCALABILITY_V2"]}})}catch(ys){return void console.error(`UIWeb::hooks::usePushUser::initializeUser::error: ${ys}`)}}))),[]),t=(0,i.useCallback)((({profileId:e,user:t})=>pJ(void 0,void 0,void 0,(function*(){try{let r;return r=e&&t?yield t.info({overrideAccount:e}):yield t.info(),r}catch(ys){return void console.error(`UIWeb::hooks::usePushUser::fetchUserProfile::error: ${ys}`)}}))),[]);return{initializeUser:e,fetchUserProfile:t}},q9=({account:e,env:t,user:r,supportAddress:n,signer:o})=>{const[a,s]=(0,i.useState)(""),[c,u]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{if(!r)return;return pJ(void 0,void 0,void 0,(function*(){var e;if(!r.stream){const e=yield null==r?void 0:r.initStream([_.CONSTANTS.STREAM.CHAT,_.CONSTANTS.STREAM.CONNECT,_.CONSTANTS.STREAM.DISCONNECT],{connection:{retries:3},raw:!0});yield(e=>pJ(void 0,void 0,void 0,(function*(){console.warn("\n--\x3e addChatSocketEvents"),e.on(_.CONSTANTS.STREAM.CONNECT,(e=>{console.log("CONNECTED to the stream"),u(!0)})),e.on(_.CONSTANTS.STREAM.DISCONNECT,(e=>{console.log("DIS-CONNECTED to the stream "),u(!1)})),console.log("\t--\x3ewill attach eachMessage event now"),e.on(_.CONSTANTS.STREAM.CHAT,(e=>{s(e)}))})))(e)}r.stream.connected()||(yield null===(e=r.stream)||void 0===e?void 0:e.connect(),console.debug("Connect stream: ",r))})),()=>{var e;r&&r.stream&&(null===(e=r.stream)||void 0===e||e.disconnect(),console.debug("Disconnect stream: ",r))}}),[r,t,e,n,o]),{messagesSinceLastConnection:a,isSupportChatStreamConnected:c}},Q9={ADMIN:"ADMIN",MEMBER:"MEMBER"},W9="PUSH",J9="GUILD",Y9="ERC20",Z9="ERC721",$9="ERC1155",X9="INVITE",e7="CustomEndpoint",t7="ROLES",r7="holder",n7="GET",i7="DEFAULT",o7={">":"more than",">=":"equal or more than","<":"less than","<=":"equal or less than","==":"equal to","!=":"not equal to"},a7={ERC20:"Token",ERC721:"NFT",ERC1155:"Token",INVITE:"Invite",CustomEndpoint:"URL",ROLES:"Guild ID"},s7=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],c7=[{constant:!0,inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"}],u7=["function uri(uint256 _id) external view returns (string memory)","function supportsInterface(bytes4 interfaceID) external view returns (bool)"],l7=(e,t)=>((e,t)=>`https://${e}.infura.io/v3/${t}`)(e,t),d7=e=>{const t=O4;switch(e){case 1:default:return l7("mainnet",t);case 137:return l7("polygon-mainnet",t);case 10:return l7("optimism-mainnet",t);case 56:return"https://bsc-dataseed.binance.org/";case 11155111:return l7("sepolia",t);case 11155420:return l7("optimism-sepolia",t);case 80002:return l7("polygon-amoy",t);case 97:return"https://data-seed-prebsc-1-s1.binance.org:8545"}},f7=(e,t)=>pJ(void 0,void 0,void 0,(function*(){try{const r=d7(t),n=new x.F(r),i=new k.NZ(e,c7,n),[o,a]=yield Promise.all([i.symbol(),i.decimals()]);return[!1,{symbol:o,decimals:a}]}catch(r){return[!0,{symbol:"",decimals:0}]}})),h7=(e,t)=>pJ(void 0,void 0,void 0,(function*(){try{const r=d7(t),n=new x.F(r),i=new k.NZ(e,s7,n);return[!1,yield i.name()]}catch(r){return[!0,""]}})),p7=(e,t,r)=>pJ(void 0,void 0,void 0,(function*(){var n;try{const i=d7(t),o=new x.F(i),a=new k.NZ(e,u7,o),s="0xd9b67a26",c=yield a.supportsInterface(s);if(c&&void 0!==r)try{const e=yield a.uri(r),t=null==e?void 0:e.toString().replace("{id}",r.toString()),i=yield Qm().get(null!=t?t:"");return[!1,(null===(n=i.data)||void 0===n?void 0:n.name)||"ERC1155"]}catch(ys){return[!1,"ERC1155"]}return[!c,"ERC1155"]}catch(i){return[!0,"ERC1155"]}})),g7=e=>!("PUSH"!==e.type||e.category!==Y9&&e.category!==Z9&&e.category!==$9||!e.data),m7=()=>{const e=(0,i.useContext)(p5);if(!e)throw new Error("useWidgetData must be used within a WidgetDataProvider");return e};var y7;!function(e){e.NOTIFICATION_WIDGET_SUBSCRIBE_ERROR="NW-001",e.NOTIFICATION_WIDGET_UNSUBSCRIBE_ERROR="NW-002",e.NOTIFICATION_WIDGET_PREFERENCE_UPDATION_ERROR="NW-003",e.NOTIFICATION_WIDGET_CHANNEL_INFO_ERROR="NW-004"}(y7||(y7={}));const b7={borderRadius:{modal:"12px",modalInnerComponents:"8px"},backgroundColor:{buttonBackground:"#CE4DE4",modalBackground:"#fff",buttonDisableBackground:"#C6C7CC",toastSuccessBackground:"linear-gradient(90.15deg, #30CC8B -125.65%, #30CC8B -125.63%, #F3FFF9 42.81%)",toastErrorBackground:"linear-gradient(90.15deg, #FF2070 -125.65%, #FF2D79 -125.63%, #FFF9FB 42.81%)",toastShadowBackground:"#ccc",sliderActiveBackground:"#CE4DE4",sliderInActiveBackground:"#BAC4D6",sliderThumbBackground:"#fff",imageBackgroundColor:"#fff"},fontFamily:"inherit",border:{modal:"1px solid rgba(0, 0, 0, 0.1)",modalInnerComponents:"1px solid rgb(194, 203, 219)",sliderThumb:"1px solid #D4DCEA",divider:"1px solid #D4DCEA",image:"1px solid #BAC4D6"},textColor:{buttonText:"#fff",buttonDisableText:"rgba(0, 0, 0, 0.20)",modalHeaderText:"#000",modalHighlightedText:"#CE4DE4",modalTitleText:"#000",modalSubTitleText:"#575D73"},spinnerColor:"#CE4DE4",scrollbarColor:"#CE4DE4"},v7={borderRadius:{modal:"12px",modalInnerComponents:"8px"},backgroundColor:{buttonBackground:"#CE4DE4",modalBackground:"rgb(47, 49, 55)",buttonDisableBackground:"#414556",toastSuccessBackground:"linear-gradient(90.15deg, #30CC8B -125.65%, #30CC8B -125.63%, #2F3137 42.81%)",toastErrorBackground:"linear-gradient(89.96deg, #FF2070 -101.85%, #2F3137 51.33%)",toastShadowBackground:"#00000010",sliderActiveBackground:"#CE4DE4",sliderInActiveBackground:"#4A4F67",sliderThumbBackground:"#fff",imageBackgroundColor:"#40434A"},fontFamily:"inherit",border:{modal:"none",modalInnerComponents:"1px solid rgb(74, 79, 103)",sliderThumb:"rgba(0, 0, 0, 0.10)",divider:"1px solid #4A4F67",image:"1px solid #4A4F67"},textColor:{buttonText:"#fff",modalHeaderText:"#fff",modalHighlightedText:"#CE4DE4",modalTitleText:"#fff",modalSubTitleText:"#B6BCD6",buttonDisableText:"rgba(255, 255, 255, 0.20)"},spinnerColor:"#CE4DE4",scrollbarColor:"#CE4DE4"},w7=(0,i.createContext)(b7),A7=e=>{var t,r;const a=(0,i.useContext)(w7);return(0,n.jsx)(o.NP,Object.assign({theme:a},{children:(0,n.jsxs)(C7,{children:[(0,n.jsxs)(E7,{children:[(0,n.jsx)(x7,Object.assign({textColor:null===(t=null==a?void 0:a.textColor)||void 0===t?void 0:t.modalTitleText},{children:e.labelHeading})),(0,n.jsx)(x7,Object.assign({textColor:null===(r=null==a?void 0:a.textColor)||void 0===r?void 0:r.modalSubTitleText,fontSize:"12px",fontWeight:"400"},{children:e.labelSubHeading}))]}),(0,n.jsxs)(S7,Object.assign({htmlFor:`checkbox-${e.id}`},{children:[(0,n.jsx)("input",{type:"checkbox",id:`checkbox-${e.id}`,checked:e.checked,onChange:()=>e.onToggle()}),(0,n.jsx)("div",{className:"slider round"})]}))]})}))},C7=o.Ay.div.withConfig({displayName:"ToggleInput__ToggleContainer",componentId:"sc-1xnbxny-0"})(["display:flex;justify-content:space-between;width:100%;gap:10px;font-family:inherit;align-items:center;"]),E7=o.Ay.div.withConfig({displayName:"ToggleInput__LabelContainer",componentId:"sc-1xnbxny-1"})(["display:flex;flex-direction:column;gap:4px;width:73%;"]),x7=o.Ay.label.withConfig({displayName:"ToggleInput__Label",componentId:"sc-1xnbxny-2"})(["font-size:",";font-weight:",";color:",";"],(e=>{var t;return null!==(t=e.fontSize)&&void 0!==t?t:"13px"}),(e=>{var t;return null!==(t=e.fontWeight)&&void 0!==t?t:"500"}),(e=>{var t;return null!==(t=e.textColor)&&void 0!==t?t:"#000"})),S7=o.Ay.label.withConfig({displayName:"ToggleInput__ToggleLabel",componentId:"sc-1xnbxny-3"})(["display:inline-block;height:16px;position:relative;width:32px;padding:2px;input{display:none;}.slider{background-color:#A0A3B1;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:0.4s;}.slider:before{background-color:#fff;bottom:3px;content:'';height:15px;left:2px;position:absolute;transition:0.4s;width:15px;}input:checked + .slider{background-color:",";}input:checked + .slider:before{transform:translateX(17px);}.slider.round{border-radius:34px;}.slider.round:before{border-radius:50%;}"],(e=>e.theme.backgroundColor.buttonBackground)),I7=({color:e})=>(0,n.jsxs)("svg",Object.assign({viewBox:"0 0 42 42",color:null!=e?e:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M20.7588 5.1897V10.3793",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M31.7706 9.74683L28.1055 13.412",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M36.3273 20.7585H31.1377",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M31.7706 31.7704L28.1055 28.1052",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M20.7588 36.3273V31.1377",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M9.74707 31.7704L13.4123 28.1052",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M5.18945 20.7585H10.3791",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M9.74707 9.74683L13.4123 13.412",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})),k7=({size:e=42,color:t="#000"})=>(0,n.jsx)(T7,Object.assign({width:`${e}px`},{children:(0,n.jsx)(I7,{color:t})})),_7=(0,o.i7)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),T7=o.Ay.div.withConfig({displayName:"Spinner__SpinLoader",componentId:"sc-skkbw8-0"})(["display:flex;flex:initial;align-self:center;width:",";animation-name:",";animation-duration:2500ms;animation-iteration-count:infinite;animation-timing-function:linear;"],(e=>e.width),_7),M7=({children:e,content:t,direction:r,delay:o})=>{let a;const[s,c]=(0,i.useState)(!1);return(0,n.jsxs)(P7,Object.assign({onMouseEnter:()=>{a=setTimeout((()=>{c(!0)}),o||400)},onMouseLeave:()=>{clearInterval(a),c(!1)},id:"tooltip-span"},{children:[e,s&&t&&(0,n.jsx)(j7,Object.assign({className:`${r||"top"}`},{children:t}))]}))},P7=o.Ay.div.withConfig({displayName:"Tooltip__TooltipWrapper",componentId:"sc-ksqm3c-0"})(["display:flex;position:relative;z-index:1;"]),j7=o.Ay.div.withConfig({displayName:"Tooltip__TooltipContent",componentId:"sc-ksqm3c-1"})(["position:absolute;border-radius:8px 8px 8px 4px;left:50%;transform:translateX(-50%);padding:7px;color:#fff;background:#000;font-size:12px;font-weigth:400;font-family:sans-serif;line-height:1;z-index:100;white-space:nowrap;&.top{top:calc(30px * -1);&::before{top:100%;border-top-color:#000;}}&.right{left:calc(100% + 10px);top:50%;transform:translateX(0) translateY(-50%);&::before{left:calc(6px * -1);top:50%;transform:translateX(0) translateY(-50%);border-right-color:#000;}}&.bottom{bottom:calc(30px * -1);&::before{bottom:100%;border-bottom-color:#000;}}&.bottom-right{bottom:calc(30px * -1);transform:translateX(-32%) translateY(5%);&::before{bottom:100%;border-bottom-color:#000;left:10%;}}&.left{left:auto;right:calc(100% + 10px);top:50%;transform:translateX(0);&::before{left:auto;right:calc(6px * -2);top:50%;transform:translateX(0) translateY(-50%);border-left-color:#000;}}"]),D7=o.Ay.div.withConfig({displayName:"sharedStyling__Section",componentId:"sc-lhr0ta-0"})(["display:flex;cursor:",";flex:",";flex-direction:",";gap:",";align-items:",";justify-content:",";align-self:",";margin:",";min-height:",";max-height:",";max-width:",";min-width:",";height:",";width:",";line-height:",";overflow:",";padding:",";position:",";background:",";right:",";top:",";bottom:",";left:",";border-radius:",";border-width:",";border-color:",";border-style:",";z-index:",";white-space:",";border:",";font-size:",";&.skeleton{> *{visibility:",";}&:after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;animation:",";border-radius:8px;}}"],(e=>e.cursor||"default"),(e=>e.flex||"default"),(e=>e.flexDirection||"row"),(e=>e.gap||"0px"),(e=>e.alignItems||"center"),(e=>e.justifyContent||"center"),(e=>e.alignSelf||"stretch"),(e=>e.margin||"0px"),(e=>e.minHeight||"auto"),(e=>e.maxHeight||"auto"),(e=>e.maxWidth||"auto"),(e=>e.minWidth||"auto"),(e=>e.height||"auto"),(e=>e.width||"auto"),(e=>e.lineHeight||"initial"),(e=>e.overflow||"default"),(e=>e.padding||"0px"),(e=>e.position||"relative"),(e=>e.gradient?e.gradient:e.background?e.background:"transparent"),(e=>e.right||"auto"),(e=>e.top||"auto"),(e=>e.bottom||"auto"),(e=>e.left||"auto"),(e=>e.borderRadius||"0px"),(e=>e.borderWidth||"initial"),(e=>e.borderColor||"initial"),(e=>e.borderStyle||"initial"),(e=>e.zIndex||"0"),(e=>e.whiteSpace||"normal"),(e=>e.border||"initial"),(e=>e.fontSize||"initial"),(e=>e.visibility||e.animation?"hidden":"visible"),(e=>e.animation)),O7=o.Ay.div.withConfig({displayName:"sharedStyling__Div",componentId:"sc-lhr0ta-1"})(["height:",";width:",";margin:",";cursor:",";line-height:",";overflow:",";border-radius:",";align-self:",";text-align:",";&.skeleton{> *{visibility:",";}&:after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;opacity:1;z-index:1;animation:",";border-radius:8px;}}"],(e=>e.height||"auto"),(e=>e.width||"100%"),(e=>e.margin||"0px"),(e=>e.cursor||"default"),(e=>e.lineHeight||"initial"),(e=>e.overflow||"default"),(e=>e.borderRadius||"0px"),(e=>e.alignSelf||"center"),(e=>e.textAlign||"default"),(e=>e.visibility||e.animation?"hidden":"visible"),(e=>e.animation)),B7=o.Ay.span.withConfig({displayName:"sharedStyling__Span",componentId:"sc-lhr0ta-2"})(["align-self:",";background:",";border-radius:",";border:",";bottom:",";color:",";flex:",";font-size:",";font-weight:",";left:",";letter-spacing:",";line-height:",";cursor:",";margin:",";padding:",";position:",";right:",";text-align:",";text-transform:",";top:",";width:",";z-index:",";max-width:",";white-space:",";text-wrap:",";&.skeleton{> *{visibility:",";}&:after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;opacity:1;z-index:1;animation:",";border-radius:8px;}}"],(e=>e.alignSelf||"auto"),(e=>e.background||"transparent"),(e=>e.borderRadius||"initial"),(e=>e.border||"initial"),(e=>e.bottom||"auto"),(e=>e.color||"inherit"),(e=>e.flex||"initial"),(e=>e.fontSize||"inherit"),(e=>e.fontWeight||"300"),(e=>e.left||"auto"),(e=>e.letterSpacing||"normal"),(e=>e.lineHeight||"initial"),(e=>e.cursor||"default"),(e=>e.margin||"0px"),(e=>e.padding||"0px"),(e=>e.position||"relative"),(e=>e.right||"auto"),(e=>e.textAlign||"center"),(e=>e.textTransform||"inherit"),(e=>e.top||"auto"),(e=>e.width||"auto"),(e=>e.zIndex||"auto"),(e=>e.maxWidth||"initial"),(e=>e.whiteSpace||"normal"),(e=>e.textWrap||"normal"),(e=>e.visibility||e.animation?"hidden":"visible"),(e=>e.animation)),N7=o.Ay.a.withConfig({displayName:"sharedStyling__Anchor",componentId:"sc-lhr0ta-3"})(["align-self:",";background:",";border-radius:",";border:",";bottom:",";color:",";flex:",";font-size:",";font-weight:",";left:",";letter-spacing:",";line-height:",";cursor:",";margin:",";padding:",";position:",";right:",";text-align:",";text-decoration:",";text-transform:",";top:",";width:",";z-index:",";max-width:",";"],(e=>e.alignSelf||"auto"),(e=>e.background||"transparent"),(e=>e.borderRadius||"initial"),(e=>e.border||"initial"),(e=>e.bottom||"auto"),(e=>e.color||"inherit"),(e=>e.flex||"initial"),(e=>e.fontSize||"inherit"),(e=>e.fontWeight||"300"),(e=>e.left||"auto"),(e=>e.letterSpacing||"normal"),(e=>e.lineHeight||"initial"),(e=>e.cursor||"pointer"),(e=>e.margin||"0px"),(e=>e.padding||"0px"),(e=>e.position||"relative"),(e=>e.right||"auto"),(e=>e.textAlign||"center"),(e=>e.textDecoration||"center"),(e=>e.textTransform||"inherit"),(e=>e.top||"auto"),(e=>e.width||"auto"),(e=>e.zIndex||"auto"),(e=>e.maxWidth||"initial")),R7=o.Ay.img.withConfig({displayName:"sharedStyling__Image",componentId:"sc-lhr0ta-4"})(["display:",";height:",";max-height:",";padding:",";width:",";margin:",";vertical-align:",";border-radius:",";overflow:",";cursor:",";filter:",";alt:",";object-fit:",";"],(e=>e.display||"flex"),(e=>e.height||"auto"),(e=>e.maxHeight||"initial"),(e=>e.padding||"0px"),(e=>e.width||"100%"),(e=>e.margin||"0px"),(e=>e.verticalAlign||"auto"),(e=>e.borderRadius||"initial"),(e=>e.overflow||"hidden"),(e=>e.cursor||"default"),(e=>e.filter||"none"),(e=>e.alt||"Image"),(e=>e.objectFit||"fill")),L7=o.Ay.button.withConfig({displayName:"sharedStyling__Button",componentId:"sc-lhr0ta-5"})(["display:",";line-height:",";flex:",";flex-direction:",";align-self:",";align-items:",";justify-content:",";font-weight:",";font-size:",";color:",";background:",";margin:",";height:",";min-height:",";padding:",";border:",";border-radius:",";position:",";text-decoration:",";width:",";overflow:",";z-index:",";cursor:",";font-family:",";&:before{background:",";bottom:0;content:'';display:none;left:0;position:absolute;right:0;top:0;z-index:-1;}&:after{background:",";bottom:0;content:'';left:0;opacity:0;position:absolute;right:0;top:0;z-index:-1;}&:hover{border:",";& svg > path{stroke:",";}}&:hover:before{display:block;}&:hover:after{opacity:",";}&:active:after{opacity:",";}& > div{display:flex;}"],(e=>e.display||"flex"),(e=>e.lineHeight||"normal"),(e=>e.flex||"initial"),(e=>e.flexDirection||"row"),(e=>e.alignSelf||"auto"),(e=>e.alignItems||"center"),(e=>e.justifyContent||"center"),(e=>e.fontWeight||400),(e=>e.fontSize||"inherit"),(e=>e.color||"inherit"),(e=>e.background||"inherit"),(e=>e.margin||"initial"),(e=>e.height||"initial"),(e=>e.minHeight||"auto"),(e=>e.padding||"initial"),(e=>e.border||"none"),(e=>e.borderRadius||"inherit"),(e=>e.position||"relative"),(e=>e.textDecoration||"none"),(e=>e.width||"initial"),(e=>e.overflow||"hidden"),(e=>e.zIndex||"3"),(e=>e.cursor||"pointer"),(e=>e.fontFamily||"inherit"),(e=>e.hover||(e.background?e.background:"transparent")),(e=>e.hoverBackground||"#000"),(e=>e.hoverBorder||"none"),(e=>e.hoverSVGPathStroke||"auto"),(e=>e.hoverBackground?1:.08),(e=>e.hoverBackground?1:.15)),F7=(0,o.DU)([":root{--onboard-modal-z-index:9999999999999 !important;--wcm-z-index:9999999999999 !important;}"]);const U7=({link:e,text:t,customStyle:r})=>{var a,s,c,u,l,d;const f=(0,i.useContext)(w7);return(0,n.jsx)(o.NP,Object.assign({theme:f},{children:(0,n.jsx)(z7,Object.assign({justifyContent:"start"},{children:(0,n.jsxs)(N7,Object.assign({href:e,target:"_blank",fontSize:null!==(a=null==r?void 0:r.fontSize)&&void 0!==a?a:"12px",fontWeight:null!==(s=null==r?void 0:r.fontWeight)&&void 0!==s?s:"400",textDecoration:null!==(c=null==r?void 0:r.textDecoration)&&void 0!==c?c:"underline",color:null!==(u=null==r?void 0:r.color)&&void 0!==u?u:null===(l=f.textColor)||void 0===l?void 0:l.modalHighlightedText},{children:[t,(0,n.jsx)(o5,Object.assign({border:"none",background:null===(d=null==f?void 0:f.backgroundColor)||void 0===d?void 0:d.modalBackground,verticalAlign:"text-bottom"},{children:(0,n.jsx)(R7,{src:"data:image/svg+xml,%3csvg width='11' height='11' viewBox='0 0 11 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg id='Group 4369'%3e%3cpath id='Vector' d='M4.5 2.14689H2.16667C1.85725 2.14689 1.5605 2.26981 1.34171 2.4886C1.12292 2.70739 1 3.00414 1 3.31356V9.14689C1 9.45631 1.12292 9.75306 1.34171 9.97185C1.5605 10.1906 1.85725 10.3136 2.16667 10.3136H8C8.30942 10.3136 8.60616 10.1906 8.82496 9.97185C9.04375 9.75306 9.16667 9.45631 9.16667 9.14689V6.81356M6.83333 0.980225H10.3333M10.3333 0.980225V4.48022M10.3333 0.980225L4.5 6.81356' stroke='%23787E99' stroke-width='0.813957' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e"})}))]}))}))}))},z7=(0,o.Ay)(D7).withConfig({displayName:"Hyperlink__HyperlinkContainer",componentId:"sc-18t5rfl-0"})(["display:flex;width:100%;font-family:inherit;"]),H7=()=>(0,n.jsxs)("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M27 16H5",stroke:"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M14 7L5 16L14 25",stroke:"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}));var V7="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M15.625 4.375L4.375 15.625' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M15.0799 15.4442L4.375 4.375' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const K7=({children:e,clickawayClose:t,width:r})=>{const o=(0,i.useRef)(null);return(0,i.useContext)(w7),H9(o,(()=>{t&&t()})),(0,n.jsx)(Q7,Object.assign({ref:o,width:r},{children:e}))},G7=({clickawayClose:e,children:t,width:r,modalBackground:o=k5.OVERLAY,modalPositionType:a=_5.GLOBAL})=>((0,i.useContext)(w7),(0,n.jsx)(q7,Object.assign({id:"widget-modal-overlay",modalBackground:o,modalPositionType:a},{children:e?(0,n.jsx)(K7,Object.assign({clickawayClose:e,width:r},{children:t})):(0,n.jsx)(Q7,Object.assign({width:r},{children:t}))}))),q7=o.Ay.div.withConfig({displayName:"Modal__ModalOverlay",componentId:"sc-1r90nx0-0"})(["position:",";top:0;left:0;right:0;bottom:0;width:100%;height:100%;backdrop-filter:",";background-color:",";display:flex;color:",";justify-content:center;align-items:center;z-index:2000;max-height:100vh;overflow-y:auto;margin:auto !important;"],(e=>e.modalPositionType===_5.GLOBAL?"fixed":"absolute"),(e=>e.modalBackground===k5.BLUR?"blur(3px)":"none"),(e=>e.modalBackground===k5.OVERLAY?"rgba(0, 0, 0, 0.5)":" transparent"),(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalTitleText)&&void 0!==r?r:"#000"})),Q7=o.Ay.div.withConfig({displayName:"Modal__ModalParent",componentId:"sc-1r90nx0-1"})(["display:flex;flex-direction:column;align-items:center;padding:24px 20px;max-height:75vh;background:",";border-radius:",";width:",";margin:auto !important;@media (max-width:425px){min-width:300px;}"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.modalBackground}),(e=>{var t;return null===(t=e.theme.borderRadius)||void 0===t?void 0:t.modal}),(e=>e.width?e.width:"auto")),W7=({fill:e})=>(0,n.jsx)("svg",Object.assign({width:"94",height:"14",viewBox:"0 0 94 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsxs)("g",Object.assign({id:"Group"},{children:[(0,n.jsxs)("g",Object.assign({id:"Group_2"},{children:[(0,n.jsxs)("g",Object.assign({id:"Group_3"},{children:[(0,n.jsx)("path",{id:"Vector",d:"M63.5992 13.4696C64.3369 13.4696 64.9712 13.028 65.2533 12.3937C65.3216 12.2395 65.2077 12.066 65.0395 12.066H62.1623C61.9941 12.066 61.8785 12.2395 61.9486 12.3937C62.2307 13.028 62.8632 13.4696 63.6027 13.4696",fill:"#CA59D3"}),(0,n.jsx)("path",{id:"Vector_2",d:"M68.0147 10.3225C67.5468 10.3225 67.1666 9.94402 67.1666 9.47442V6.39577C67.1666 4.72766 66.0207 3.32588 64.4752 2.93513C64.4191 2.49533 64.0442 2.1554 63.5886 2.1554C63.133 2.1554 62.7545 2.49883 62.7002 2.94039C61.3124 3.30135 60.2523 4.47534 60.0614 5.92442C60.0578 5.94545 60.0561 5.96648 60.0526 5.9875C60.0491 6.01554 60.0456 6.04533 60.0438 6.07336C60.0421 6.1014 60.0386 6.13119 60.0368 6.15922C60.0368 6.18375 60.0333 6.20653 60.0316 6.23106C60.0298 6.28012 60.0281 6.32919 60.0281 6.37825V9.47092C60.0281 9.93701 59.6531 10.3155 59.187 10.319C58.9645 10.319 58.7822 10.4925 58.7822 10.715V10.7185C58.7822 10.9393 58.961 11.118 59.1817 11.118H68.0129C68.2337 11.118 68.4124 10.9393 68.4124 10.7185C68.4124 10.4995 68.2355 10.3207 68.0147 10.3207V10.3225Z",fill:"#CA59D3"}),(0,n.jsxs)("g",Object.assign({id:"Group_4"},{children:[(0,n.jsx)("path",{id:"Vector_3",d:"M66.1571 2.32904C67.1507 2.54105 67.9094 3.39614 68.0022 4.40892C68.0127 4.52107 68.1109 4.60517 68.2248 4.59466C68.2791 4.5894 68.3281 4.56312 68.3632 4.52107C68.3982 4.47901 68.414 4.42645 68.4087 4.37213C68.3544 3.78163 68.1161 3.23493 67.7201 2.79162C67.3276 2.35181 66.816 2.05394 66.2412 1.93128C66.2272 1.92778 66.2132 1.92603 66.1992 1.92603C66.1046 1.92603 66.0187 1.99261 65.9994 2.08723C65.9749 2.19762 66.0468 2.30626 66.1571 2.33079V2.32904Z",fill:"#CA59D3"}),(0,n.jsx)("path",{id:"Vector_4",d:"M66.3867 1.01312C67.9322 1.34429 69.1132 2.67598 69.2586 4.24947C69.2691 4.36161 69.3672 4.44572 69.4811 4.43521C69.5355 4.42995 69.5845 4.40367 69.6196 4.36161C69.6546 4.31956 69.6704 4.26699 69.6651 4.21267C69.5845 3.34182 69.2341 2.53755 68.6488 1.88397C68.0688 1.23565 67.3171 0.795843 66.4708 0.615365C66.4568 0.61186 66.4428 0.610107 66.4288 0.610107C66.3342 0.610107 66.2483 0.676692 66.229 0.771312C66.2045 0.881702 66.2746 0.99034 66.385 1.01487L66.3867 1.01312Z",fill:"#CA59D3"}),(0,n.jsx)("path",{id:"Vector_5",d:"M61.0426 2.32896C61.153 2.30443 61.223 2.19579 61.2003 2.0854C61.1792 1.98903 61.0951 1.92419 61.0005 1.92419C60.9865 1.92419 60.9725 1.92419 60.9585 1.92945C60.3837 2.05211 59.8738 2.34998 59.4796 2.78979C59.0836 3.2331 58.8453 3.7798 58.791 4.3703C58.7857 4.42461 58.8032 4.47718 58.8365 4.51923C58.8698 4.56129 58.9206 4.58757 58.9749 4.59283C59.0906 4.60334 59.187 4.51923 59.1975 4.40709C59.2903 3.39606 60.0508 2.54098 61.0426 2.32896Z",fill:"#CA59D3"}),(0,n.jsx)("path",{id:"Vector_6",d:"M60.813 1.01304C60.9234 0.988509 60.9935 0.87987 60.9707 0.76948C60.9497 0.673108 60.8656 0.608276 60.771 0.608276C60.7569 0.608276 60.7429 0.608276 60.7289 0.613533C59.8826 0.795764 59.1309 1.23382 58.5509 1.88214C57.9674 2.53572 57.617 3.34174 57.5346 4.21084C57.5294 4.26516 57.5469 4.31773 57.5802 4.35978C57.6152 4.40183 57.6643 4.42812 57.7186 4.43338C57.8325 4.44389 57.9306 4.35978 57.9411 4.24764C58.0866 2.67414 59.2676 1.34421 60.813 1.01304Z",fill:"#CA59D3"})]}))]})),(0,n.jsxs)("g",Object.assign({id:"Group_5"},{children:[(0,n.jsx)("path",{id:"Vector_7",d:"M92.0029 5.63185C92.0029 5.63185 91.9941 5.63185 91.9906 5.63185C91.4685 5.63185 90.9778 5.82109 90.6011 6.16803V3.18225C90.6011 3.15246 90.5766 3.12793 90.545 3.12793H89.4131C89.3833 3.12793 89.357 3.15246 89.357 3.18225V10.878C89.3553 10.9078 89.3798 10.9323 89.4096 10.9323H90.5415C90.5713 10.9323 90.5976 10.9078 90.5976 10.878V7.74328C90.5993 7.16855 91.0532 6.6972 91.6314 6.66917C92.0922 6.64639 92.5128 6.90572 92.6722 7.34202C92.7791 7.63639 92.7739 7.94654 92.7739 8.25493V8.88573C92.7739 9.4517 92.7721 10.0194 92.7721 10.5854C92.7721 10.6818 92.7721 10.7799 92.7721 10.8763C92.7721 10.906 92.7966 10.9306 92.8282 10.9306H93.9443C93.9741 10.9306 94.0004 10.906 94.0004 10.8763V7.61011C94.0022 6.52549 93.1068 5.63711 92.0046 5.63185H92.0029Z",fill:e}),(0,n.jsx)("path",{id:"Vector_8",d:"M83.1383 5.44617H82.0116C81.9818 5.44617 81.9555 5.4707 81.9555 5.50049V8.72457C81.9555 8.99617 81.8452 9.25199 81.6437 9.44298C81.4334 9.64274 81.146 9.74962 80.8499 9.7356C80.2892 9.70932 79.8494 9.25199 79.8494 8.69479V5.50049C79.8494 5.4707 79.8248 5.44617 79.7933 5.44617H78.6684C78.6386 5.44617 78.6123 5.4707 78.6123 5.50049V8.67901C78.6123 9.88454 79.6093 10.8938 80.8341 10.9289C80.8569 10.9289 80.8814 10.9289 80.9042 10.9289C81.5192 10.9289 82.094 10.6976 82.5285 10.2753C82.9561 9.86001 83.1926 9.30806 83.1926 8.72457V5.50049C83.1926 5.4707 83.1663 5.44792 83.1365 5.44792L83.1383 5.44617Z",fill:e}),(0,n.jsx)("path",{id:"Vector_9",d:"M86.4374 7.61369C85.7926 7.51031 85.5157 7.31932 85.5157 6.97413C85.5157 6.65348 85.8206 6.43795 86.2744 6.43795C86.6845 6.43795 87.0314 6.65523 87.1558 6.9899C87.1593 7.00217 87.1698 7.01093 87.1821 7.01619C87.1944 7.02144 87.2049 7.02144 87.2171 7.01619L88.1423 6.62544C88.1633 6.61668 88.1756 6.5904 88.1668 6.56937C87.8812 5.87198 87.1698 5.45496 86.2639 5.45496C84.9813 5.45496 84.3102 6.22418 84.3102 6.9864C84.3102 7.88529 84.9287 8.42672 86.1991 8.64225C86.8632 8.76841 87.1453 8.96816 87.1453 9.30634C87.1453 9.6708 86.8019 9.88983 86.2271 9.88983C85.7873 9.88983 85.3843 9.65153 85.2003 9.28356C85.1933 9.26779 85.1776 9.25903 85.16 9.25903C85.1548 9.25903 85.1478 9.25903 85.1425 9.26253L84.1665 9.67956C84.156 9.68307 84.1472 9.69183 84.142 9.70234C84.1367 9.71286 84.1385 9.72512 84.142 9.73563C84.3593 10.186 84.9147 10.9412 86.2131 10.9412C87.6972 10.9412 88.3631 10.1089 88.3631 9.28531C88.3631 8.38117 87.734 7.83623 86.4374 7.6172V7.61369Z",fill:e}),(0,n.jsx)("path",{id:"Vector_10",d:"M75.3497 3.13871H72.5304C72.5058 3.13871 72.4813 3.14923 72.4638 3.16675C72.4463 3.18427 72.4375 3.20705 72.4375 3.22983V10.8397C72.4375 10.8888 72.4796 10.9291 72.5304 10.9291H73.5782C73.629 10.9291 73.6711 10.8888 73.6711 10.8397L73.6781 7.86095C73.6781 7.83116 73.7044 7.80488 73.7341 7.80488H75.3497C76.6691 7.80488 77.7012 6.77983 77.7012 5.47092C77.7012 4.83662 77.4594 4.24787 77.0196 3.81157C76.5815 3.37702 75.9875 3.13696 75.3497 3.13696V3.13871ZM76.2153 6.22262C76.0068 6.46443 75.7071 6.60286 75.3707 6.61337H74.6435C74.3264 6.61512 74.053 6.81488 73.9619 7.10925L73.9269 7.22314C73.9216 7.24066 73.9059 7.25118 73.8866 7.25118H73.7131C73.6903 7.25118 73.6711 7.23366 73.6711 7.21088V4.45814C73.6711 4.38454 73.7324 4.32672 73.8077 4.32672H75.2866C75.8981 4.32672 76.4098 4.76653 76.4764 5.34827C76.5132 5.67418 76.4221 5.98607 76.2153 6.22262Z",fill:e})]}))]})),(0,n.jsxs)("g",Object.assign({id:"Group_6"},{children:[(0,n.jsx)("path",{id:"Vector_11",d:"M2.9004 4.58923C3.7695 4.58923 4.45813 5.08511 4.45813 5.97699C4.45813 6.86887 3.7695 7.37351 2.9004 7.37351H1.60551V9.31147H0.79248V4.58923H2.9004ZM1.60551 6.76374H2.7427C3.28764 6.76374 3.65386 6.49215 3.65386 5.984C3.65386 5.47586 3.28589 5.20426 2.7427 5.20426H1.60551V6.76549V6.76374Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_12",d:"M8.21295 4.51038C9.60947 4.51038 10.5206 5.43555 10.5206 6.94947C10.5206 8.46339 9.60947 9.38856 8.21295 9.38856C6.81643 9.38856 5.90527 8.46339 5.90527 6.94947C5.90527 5.43555 6.81643 4.51038 8.21295 4.51038ZM8.21295 8.76302C9.13462 8.76302 9.7111 8.08491 9.7111 6.94947C9.7111 5.81403 9.13462 5.13592 8.21295 5.13592C7.29128 5.13592 6.7148 5.81403 6.7148 6.94947C6.7148 8.08491 7.29128 8.76302 8.21295 8.76302Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_13",d:"M12.6374 4.58923L13.4575 8.29518H13.5223L14.5053 4.58923H15.2885L16.2715 8.29518H16.3364L17.1564 4.58923H17.9361V4.68736L16.848 9.31147H15.8668L14.9223 5.786H14.8575L13.9165 9.31147H12.9353L11.8472 4.68736V4.58923H12.6339H12.6374Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_14",d:"M22.9562 4.58923V5.20251H20.398V6.58677H22.6286V7.19654H20.398V8.69819H23.0211V9.31147H19.585V4.58923H22.9562Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_15",d:"M25.5498 7.39279V9.31147H24.7368V4.58923H26.9008C27.8032 4.58923 28.5006 5.00626 28.5006 5.88763C28.5006 6.54997 28.1239 6.91443 27.6122 7.03884V7.10367C28.1098 7.23509 28.271 7.52596 28.3306 8.05863L28.3832 8.55977C28.42 8.86816 28.4655 9.03812 28.5829 9.21159V9.30972H27.7541C27.6595 9.12573 27.6105 8.95226 27.5842 8.61409L27.5474 8.1883C27.5018 7.62759 27.2618 7.39104 26.5346 7.39104H25.5516L25.5498 7.39279ZM25.5498 6.78301H26.8114C27.3494 6.78301 27.7103 6.52369 27.7103 5.99276C27.7103 5.46184 27.3494 5.20251 26.8114 5.20251H25.5498V6.78301Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_16",d:"M33.6325 4.58923V5.20251H31.0743V6.58677H33.3048V7.19654H31.0743V8.69819H33.6973V9.31147H30.2612V4.58923H33.6325Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_17",d:"M37.1422 4.58915C38.558 4.58915 39.4499 5.50031 39.4499 6.9494C39.4499 8.39848 38.558 9.30964 37.1422 9.30964H35.4146V4.5874H37.1422V4.58915ZM36.2276 8.69811H37.13C38.0779 8.69811 38.6386 8.03227 38.6386 6.95115C38.6386 5.87003 38.0779 5.20419 37.13 5.20419H36.2276V8.69987V8.69811Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_18",d:"M46.0872 4.58915C46.9458 4.58915 47.5731 4.99567 47.5731 5.78242C47.5731 6.56916 47.0579 6.76892 46.7934 6.8355V6.90033C47.1123 6.96341 47.7185 7.21223 47.7185 8.01825C47.7185 8.82427 47.0667 9.30964 46.1643 9.30964H43.9478V4.5874H46.089L46.0872 4.58915ZM44.759 6.60947H45.933C46.4184 6.60947 46.7863 6.39219 46.7793 5.90157C46.7793 5.4127 46.4114 5.19367 45.933 5.19367H44.759V6.60947ZM44.759 8.70863H46.0189C46.5305 8.70863 46.9213 8.47909 46.9213 7.96393C46.9213 7.44878 46.5305 7.21223 46.0189 7.21223H44.759V8.70688V8.70863Z",fill:"#657795"}),(0,n.jsx)("path",{id:"Vector_19",d:"M49.7111 4.58923L50.9797 6.69365H51.0445L52.3132 4.58923H53.1717V4.68736L51.4143 7.49442V9.31147H50.6012V7.49442L48.8438 4.68736V4.58923H49.7093H49.7111Z",fill:"#657795"})]}))]}))})),J7=()=>{var e;const t=(0,i.useContext)(w7);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsx)(Y7,Object.assign({alignSelf:"end"},{children:(0,n.jsx)(W7,{fill:null===(e=t.textColor)||void 0===e?void 0:e.modalTitleText})}))}))},Y7=(0,o.Ay)(D7).withConfig({displayName:"PoweredByPush__Container",componentId:"sc-h2hlwu-0"})(["display:flex;width:93.208px;height:12.861px;font-family:inherit;align-items:center;"]),Z7=({size:e=42,color:t})=>{const{theme:r}=(0,i.useContext)(g5);return(0,n.jsx)(X7,Object.assign({width:`${e}px`},{children:(0,n.jsx)(I7,{color:null!=t?t:r.btnColorPrimary})}))},$7=(0,o.i7)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),X7=o.Ay.div.withConfig({displayName:"Spinner__SpinLoader",componentId:"sc-rmciqr-0"})(["display:flex;flex:initial;align-self:center;width:",";animation-name:",";animation-duration:2500ms;animation-iteration-count:infinite;animation-timing-function:linear;"],(e=>e.width),$7),eee=({msg:e,loaderColor:t,textColor:r})=>(0,n.jsxs)(nee,{children:[(0,n.jsx)(Z7,{color:t,size:"35px"}),(0,n.jsx)(iee,Object.assign({style:{color:r}},{children:e}))]}),tee=({closeToast:e})=>(0,n.jsx)(lee,Object.assign({onClick:e},{children:(0,n.jsx)(My,{color:"#657795",size:"100%"})})),ree=(e=3e3,t="top-right")=>{const r=(0,i.useRef)(null),a=(0,i.useContext)(w7),s=K9(c5.tablet);let c=!1;return{showLoaderToast:({loaderMessage:e})=>{var i,s,u;return c=!0,r.current=xy((0,n.jsx)(o.NP,Object.assign({theme:a},{children:(0,n.jsx)(eee,{msg:e,loaderColor:a.spinnerColor,textColor:a.textColor.modalTitleText})})),{position:t,autoClose:!1,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,closeButton:!1,style:{background:null===(i=a.backgroundColor)||void 0===i?void 0:i.modalBackground,border:null===(s=a.border)||void 0===s?void 0:s.modalInnerComponents,boxShadow:`8px 8px 8px ${null===(u=a.backgroundColor)||void 0===u?void 0:u.toastShadowBackground}`,borderRadius:"20px"}})},showMessageToast:({toastTitle:i,toastMessage:o,toastType:u,getToastIcon:l})=>{var d,f,h,p,g;const m=(0,n.jsxs)(oee,{children:[(0,n.jsx)(aee,{children:l?l(30):""}),(0,n.jsxs)(see,{children:[(0,n.jsx)(cee,Object.assign({style:{color:null===(d=a.textColor)||void 0===d?void 0:d.modalTitleText}},{children:i})),(0,n.jsx)(uee,Object.assign({style:{color:null===(f=a.textColor)||void 0===f?void 0:f.modalSubTitleText}},{children:o}))]})]}),y={position:t,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,type:xy.TYPE.DEFAULT,closeButton:tee,autoClose:e,style:{background:"SUCCESS"===u?null===(h=a.backgroundColor)||void 0===h?void 0:h.toastSuccessBackground:null===(p=a.backgroundColor)||void 0===p?void 0:p.toastErrorBackground,boxShadow:`10px 10px 10px ${null===(g=a.backgroundColor)||void 0===g?void 0:g.toastShadowBackground}`,borderRadius:"20px",margin:s?"20px":"0px"}};c||(r.current=xy(m,Object.assign({},y))),xy.update(r.current,Object.assign({render:m},y))}}},nee=o.Ay.div.withConfig({displayName:"NewToast__LoaderNotification",componentId:"sc-1mnojtp-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:center;margin:1% 3%;"]),iee=o.Ay.div.withConfig({displayName:"NewToast__LoaderMessage",componentId:"sc-1mnojtp-1"})(["margin-left:3%;font-size:1rem;font-weight:600;line-height:1.3rem;letter-spacing:0em;text-align:left;"]),oee=o.Ay.div.withConfig({displayName:"NewToast__Toast",componentId:"sc-1mnojtp-2"})(["display:flex;flex-direction:row;align-items:flex-start;margin:1.5% 1%;"]),aee=o.Ay.div.withConfig({displayName:"NewToast__ToastIcon",componentId:"sc-1mnojtp-3"})(["width:15%;margin-right:4%;"]),see=o.Ay.div.withConfig({displayName:"NewToast__ToastContent",componentId:"sc-1mnojtp-4"})(["display:flex;flex-direction:column;align-items:flex-start;"]),cee=o.Ay.div.withConfig({displayName:"NewToast__ToastTitle",componentId:"sc-1mnojtp-5"})(["font-weight:500;font-size:1.125rem;letter-spacing:-0.019em;line-height:1.4rem;letter-spacing:0em;text-align:left;margin-bottom:1%;"]),uee=o.Ay.div.withConfig({displayName:"NewToast__ToastMessage",componentId:"sc-1mnojtp-6"})(["font-weight:400;font-size:0.9375rem;line-height:1.3rem;text-align:left;"]),lee=o.Ay.button.withConfig({displayName:"NewToast__Button",componentId:"sc-1mnojtp-7"})(["cursor:pointer;background:none;margin:0;padding:0;width:1.3rem;height:1.3rem;border:none;"]),dee=e=>{const t=(0,i.useContext)(w7),{onClick:r,width:a,height:s,customStyle:c}=e;return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsx)(fee,Object.assign({onClick:r,width:a,height:s,theme:t,customStyle:c},{children:e.children}))}))},fee=o.Ay.button.withConfig({displayName:"Button__WidgetButton",componentId:"sc-160qbvf-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;gap:'2px';padding:",";background:",";color:",";border-radius:",";border:",";font-size:14px;font-weight:",";font-family:",";flex:none;order:0;flex-grow:0;transition:150ms ease-in-out;&:hover{cursor:pointer;}width:",";height:",";"],(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.padding)?e.customStyle.padding:"12px"}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.background)?e.customStyle.background:e.theme.backgroundColor.buttonBackground}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.color)?e.customStyle.color:e.theme.textColor.buttonText}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.borderRadius)?e.customStyle.borderRadius:e.theme.borderRadius.modalInnerComponents}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.border)?e.customStyle.border:e.theme.border.modal}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.fontWeight)?e.customStyle.fontWeight:"500"}),(e=>e.theme.fontFamily),(e=>e.width?e.width:"100%"),(e=>e.height?e.height:"100%")),hee=({autoconnect:e=!1,setAccount:t,setSigner:r,signer:o})=>{const{env:a}=m7(),{wallet:s,connecting:c,connect:u,disconnect:l,provider:d,account:f}=D5({env:a}),[h,p]=(0,i.useState)(!1),g=(0,i.useContext)(w7);(0,i.useEffect)((()=>{s&&!e&&l(s),s?pJ(void 0,void 0,void 0,(function*(){const e=null==d?void 0:d.getSigner(f),n=yield h8(e);t(f||n),r(e)})):s||(t(Y4),r(void 0)),m("zIndex","2000")}),[s]);const m=(e,t)=>{const r=document.getElementById("widget-modal-overlay");r&&(r.style[e]=t)};return o?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(pee,Object.assign({theme:g},{children:(0,n.jsx)("button",Object.assign({onClick:()=>s?l(s):(m("zIndex","unset"),p(!0),void u())},{children:c?"connecting":s?"disconnect":"Connect Wallet"}))}))},pee=o.Ay.div.withConfig({displayName:"ConnectButton__ConnectButtonDiv",componentId:"sc-kkzefp-0"})(["width:100%;button{background:",";color:",";text-align:center;font-size:1em;cursor:pointer;border-radius:10px;padding:10px 20px;outline:none;border:none;cursor:pointer;width:100%;font-weight:600;}button:hover{scale:1.05;transition:0.3s;}@media ","{font-size:12px;}body.modal-open{overflow-y:hidden;}body.svelte-baitaa{z-index:99999;}"],(e=>{var t;return`${null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.buttonBackground}!important`}),(e=>{var t;return`${null===(t=e.theme.textColor)||void 0===t?void 0:t.buttonText}!important`}),c5.mobileL),gee=e=>{var{disabled:t,val:r,min:a,max:s,step:c,defaultVal:u,onChange:l,onDragStart:d,onDragEnd:f,preview:h=!1}=e,p=hJ(e,["disabled","val","min","max","step","defaultVal","onChange","onDragStart","onDragEnd","preview"]);const g=(0,i.useRef)(null),m=(0,i.useRef)(null),y=(0,i.useRef)(null),b=(0,i.useRef)(null),v=(0,i.useRef)(null),w=(0,i.useContext)(w7),A=e=>{t||(d&&d(e),document.addEventListener("mousemove",C),document.addEventListener("mouseup",E),document.addEventListener("touchmove",C),document.addEventListener("touchend",E))},C=e=>{if(t)return;if(!b.current)return;const{left:r,width:n}=b.current.getBoundingClientRect(),{clientX:i}=e instanceof MouseEvent?e:e.touches[0];let o=(i-r)/n;const d=u-Math.floor((u-a)/c)*c,f=u+Math.floor((s-u)/c)*c;if(o<=0)o=d;else if(o>=1)o=f;else{const e=Math.floor((o*(s-a)+a-u)/c);o=u+e*c,of&&(o=f)}const h=(c.toString().split(".")[1]||"").length;l({x:Number(o.toFixed(h))})},E=e=>{t||(f&&f(e),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E))};return(0,i.useEffect)((()=>{var e;if(g.current&&m.current&&y.current){const t=Math.min(s,Math.max(a,r));g.current.style.left=(t-a)/(s-a)*98+"%",m.current.style.width=(t-a)/(s-a)*100+"%",y.current.style.width=(s-t)/(s-a)*100+"%",null===(e=v.current)||void 0===e||e.style.setProperty("left",(Number(t)-Number(a))/(Number(s)-Number(a))*90+"%")}}),[g,m,y,r,a,s]),(0,n.jsx)(o.NP,Object.assign({theme:w},{children:(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start"},{children:[h&&!Number.isNaN(Number(r))&&(0,n.jsx)(wee,Object.assign({theme:w,ref:v},{children:"< "+r})),(0,n.jsxs)(vee,Object.assign({ref:b},p,{children:[(0,n.jsx)(yee,{ref:m,theme:w}),(0,n.jsx)(mee,{ref:g,onTouchStart:A,onMouseDown:A,onTouchEnd:E,onMouseUp:E,theme:w}),(0,n.jsx)(bee,{ref:y,theme:w})]}))]}))}))},mee=o.Ay.div.withConfig({displayName:"InputSlider__Thumb",componentId:"sc-mzybdg-0"})(["width:16px;height:16px;background-color:",";border:",";border-radius:50%;user-select:none;cursor:pointer;z-index:1;position:absolute;"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.sliderThumbBackground}),(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.sliderThumb})),yee=o.Ay.div.withConfig({displayName:"InputSlider__Active",componentId:"sc-mzybdg-1"})(["width:100%;height:4px;background-color:",";border-top-left-radius:8px;border-bottom-left-radius:8px;"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.sliderActiveBackground})),bee=o.Ay.div.withConfig({displayName:"InputSlider__Inactive",componentId:"sc-mzybdg-2"})(["width:100%;height:4px;background-color:",";border-top-right-radius:8px;border-bottom-right-radius:8px;"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.sliderInActiveBackground})),vee=o.Ay.div.withConfig({displayName:"InputSlider__Container",componentId:"sc-mzybdg-3"})(["height:24px;display:flex;flex-direction:row;align-items:center;justify-content:center;position:relative;flex:1;width:100%;"]),wee=o.Ay.div.withConfig({displayName:"InputSlider__PreviewContainer",componentId:"sc-mzybdg-4"})(["display:flex;border-radius:4px;background-color:",";color:",";width:max-content;padding:8px 8px 10px 8px;justify-content:center;align-items:center;gap:10px;font-size:14px;font-weight:500;"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.modalBackground}),(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.modalTitleText})),Aee=e=>{const t=(0,i.useContext)(w7),{settings:r=[],setSettings:o}=e||{};return(0,n.jsx)(Eee,Object.assign({theme:t,flexDirection:"column",gap:"15px",width:"100%",maxHeight:"200px",justifyContent:"start",overflow:"hidden scroll"},{children:r&&(null==r?void 0:r.length)&&(null==r?void 0:r.map(((e,i)=>{var a,s,c,u,l,d,f;return(0,n.jsxs)(Cee,Object.assign({theme:t,flexDirection:"column",divider:2==e.type||1==e.type},{children:[(2==e.type||1==e.type)&&(0,n.jsx)(A7,{id:`toggle${e.type}${i}`,labelHeading:`${(null==e?void 0:e.description)||(1==e.type?"Boolean Setting":"Range Setting")} `,checked:(null===(a=null==e?void 0:e.userPreferance)||void 0===a?void 0:a.enabled)||!1,onToggle:()=>{(e=>{var t;const n=[...r];(null===(t=n[e])||void 0===t?void 0:t.userPreferance)&&(n[e].userPreferance.enabled=!n[e].userPreferance.enabled),o(n)})(i)}}),2==e.type&&(null===(s=null==e?void 0:e.userPreferance)||void 0===s?void 0:s.enabled)&&(0,n.jsx)(gee,{val:null===(c=null==e?void 0:e.userPreferance)||void 0===c?void 0:c.value,max:(null===(u=null==e?void 0:e.data)||void 0===u?void 0:u.upper)||0,min:(null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.lower)||0,step:(null===(d=null==e?void 0:e.data)||void 0===d?void 0:d.ticker)||1,preview:!0,defaultVal:null===(f=null==e?void 0:e.userPreferance)||void 0===f?void 0:f.value,onChange:({x:e})=>((e,t)=>{const n=[...r];n[e].userPreferance.value=t,o(n)})(i,e)})]}),i)})))}))},Cee=(0,o.Ay)(D7).withConfig({displayName:"SettingsComponents__SettingsSection",componentId:"sc-83r12-0"})(["border-bottom:",";padding-bottom:15px;"],(e=>{var t;return e.divider?null===(t=e.theme.border)||void 0===t?void 0:t.divider:"none"})),Eee=(0,o.Ay)(D7).withConfig({displayName:"SettingsComponents__ScrollSection",componentId:"sc-83r12-1"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar-button{height:40px;}&::-webkit-scrollbar{width:4px;}"],(e=>e.theme.scrollbarColor));function xee(e){return(0,zr.P)(e)}const See={eip155:({address:e})=>xee(e)};function Iee(e,t,r){if(function(e){const[t,r,n]=e.split(":");return!!t&&(!!r&&(!!n&&(0,See[t])({address:n})))}(t))return t;if(xee(t))return function(e,t){let r=1;return e!==T4.DEV&&e!==T4.STAGING||(r=11155111),`eip155:${r}:${t}`}(e,t);throw Error(`Invalid Address! ${r}`)}const kee=e=>1===e.type,_ee=({settings:e})=>{const t=[];return e&&e.length&&e.forEach((e=>{var r,n,i;return kee(e)?t.push({enabled:(null===(r=null==e?void 0:e.userPreferance)||void 0===r?void 0:r.enabled)||!1}):t.push({value:null===(n=null==e?void 0:e.userPreferance)||void 0===n?void 0:n.value,enabled:(null===(i=null==e?void 0:e.userPreferance)||void 0===i?void 0:i.enabled)||!1})})),t},Tee=({settings:e})=>{const t=[];return e&&e.length&&e.forEach((e=>{var r,n;return kee(e)?t.push(Object.assign(Object.assign({},e),{userPreferance:null!==(r=null==e?void 0:e.userPreferance)&&void 0!==r?r:{value:0,enabled:!1}})):t.push(Object.assign(Object.assign({},e),{userPreferance:null!==(n=null==e?void 0:e.userPreferance)&&void 0!==n?n:{value:e.default||0,enabled:!1}}))})),t},Mee=e=>{var t,r;const o=(0,i.useContext)(w7),{channelInfo:a}=e||{};return(0,n.jsxs)(D7,Object.assign({justifyContent:"start",gap:"7px",width:"100%",margin:" 0 0 10px 0"},{children:[(0,n.jsx)(R7,{src:a.icon,borderRadius:"8px",alt:"channel icon",width:"31.86px",height:"31.86px"}),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"13px",fontWeight:"700",color:null===(t=null==o?void 0:o.textColor)||void 0===t?void 0:t.modalTitleText},{children:a.name})),(0,n.jsxs)(Pee,Object.assign({fontSize:"11px",fontWeight:"400",width:"286px",color:null===(r=null==o?void 0:o.textColor)||void 0===r?void 0:r.modalSubTitleText},{children:[a.info," ",a.info," ",a.info," ",a.info," ",a.info]}))]}))]}))},Pee=(0,o.Ay)(B7).withConfig({displayName:"ChannelDetailsComponent__InfoSpan",componentId:"sc-10fagav-0"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),jee="Subscribe and receive notifications from your favorite protocol.",Dee=e=>{var t,r;const{channelInfo:o,handleNext:a,channelAddress:s,autoconnect:c=!1}=e||{},{subscribeToChannel:u,subscribeError:l,subscribeLoading:d,setSubscribeError:f}=qee(),h=(0,i.useContext)(w7),{signer:p,setAccount:g,setSigner:m,user:y,account:b}=m7(),v=ree(),[w,A]=(0,i.useState)((0,i.useMemo)((()=>o&&(null==o?void 0:o.channel_settings)?(({settings:e})=>{const t=[];return e&&e.length&&e.forEach((e=>kee(e)?t.push(Object.assign(Object.assign({},e),{userPreferance:{value:void 0,enabled:e.default}})):t.push(Object.assign(Object.assign({},e),{userPreferance:{value:e.default,enabled:e.enabled},data:{upper:e.upperLimit,lower:e.lowerLimit,ticker:e.ticker}})))),t})({settings:JSON.parse(null==o?void 0:o.channel_settings)}):[]),[o]));return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"10px",margin:"14px 10px 0px 10px"},{children:[(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start",gap:"5px",margin:"0 0 10px 0"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"21px",fontWeight:"700",color:null===(t=null==h?void 0:h.textColor)||void 0===t?void 0:t.modalHeaderText},{children:"Subscribe to get Notified"})),(0,n.jsx)(B7,Object.assign({fontSize:"12px",textAlign:"left",fontWeight:"400",width:"90%",color:null===(r=null==h?void 0:h.textColor)||void 0===r?void 0:r.modalSubTitleText},{children:jee}))]})),(0,n.jsx)(Mee,{channelInfo:o}),o&&(null==o?void 0:o.channel_settings)&&(0,n.jsx)(D7,Object.assign({margin:" 0",width:"100%"},{children:(0,n.jsx)(Aee,{settings:w,setSettings:A})})),y&&(null==y?void 0:y.readmode)?(0,n.jsxs)(n.Fragment,{children:[(null==y?void 0:y.readmode())&&(0,n.jsx)(hee,{autoconnect:c,setAccount:g,setSigner:m,signer:p}),!(null==y?void 0:y.readmode())&&(0,n.jsx)(dee,Object.assign({onClick:()=>pJ(void 0,void 0,void 0,(function*(){try{const e=yield u({channelAddress:s,channelSettings:_ee({settings:w})});e&&204===(null==e?void 0:e.status)&&(a(),v.showMessageToast({toastTitle:"Notifications Enabled",toastMessage:`You have successfully enabled notifications from ${null==o?void 0:o.name}`,toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"green"})}))}catch($R){console.debug($R),f(y7.NOTIFICATION_WIDGET_SUBSCRIBE_ERROR)}l&&v.showMessageToast({toastTitle:"Error while Enabling Notifications",toastMessage:"We encountered an error while enabling notifications. Please try again.",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})}))},{children:d?(0,n.jsx)(k7,{color:"#fff",size:"24"}):"Subscribe"}))]}):null,(0,n.jsx)(J7,{})]}))};var Oee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABLAAAASwCAYAAADrIbPPAAAKq2lDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU9kWhs+96SGhJYQiJfQmSCeAlBBaAKVXUQlJgFBCDAQROzI4AooiIoINdEBEwVEpMhZEFAuDgr0OyKCgjIMFUVGZCyzCzHvrvbfeXmuv82Vnn//sc9Y9d+0LAFmeIxKlwPIApAozxMHe7vTIqGg6bghAAAOIwBgocbjpImZgoD9AbHb8p328h2QjdttsSuvf//+vpsDjp3MBgAIRjuOlc1MRPo34K65InAEA6iAS112ZIZriDoSpYqRAhB9MccIMj0xx3DSjwXROaDALYSoAeBKHI04AgERH4vRMbgKiQ3JD2ELIEwgRFiHskpqaxkP4BMJGSA4SI03pM+L+ppPwD804qSaHkyDlmb1MG95DkC5K4az6P4/jf1tqimR2DQPESYlin2BkVETO7EFymp+UhXGLA2ZZwJvOn+ZEiU/YLHPTWdGzzON4+Ennpiz2n+V4gRdbqpPBDp1lfrpnyCyL04Kla8WLWcxZ5ojn1pUkh0njiXy2VD87MTRiljMF4YtnOT05xG8uhyWNiyXB0vr5Qm/3uXW9pHtPTf/bfgVs6dyMxFAf6d45c/Xzhcw5zfRIaW08vofnXE6YNF+U4S5dS5QSKM3np3hL4+mZIdK5GcgDOTc3UHqGSRzfwFkGLJAGUhAXAzrwR355AJDBz8qY2ggrTbRKLEhIzKAzkRvGp7OFXPP5dCsLKxsApu7rzOPwnjZ9DyHa9blYzlYAnG0mJyfPzsX85QA4jdRAHJiLGTkCIJsFwNVtXIk4cyY2fZem3gJygApUgSbQBUbADFgBO+AE3IAn8AUBIBREgWWACxJBKlL5SrAGbAR5oABsB7tAOTgADoEj4Dg4CZrBWXARXAE3wC1wFzwGfWAQvAaj4COYgCAIB5EhCqQKaUH6kClkBTEgF8gT8oeCoSgoFkqAhJAEWgNtggqgYqgcqoRqoZ+hM9BF6BrUAz2E+qFh6B30BUbBJJgKa8AG8AKYATNhPzgUXgonwCvgbDgX3gaXwVXwMbgJvgjfgO/CffBreAwFUDIoGkobZYZioFioAFQ0Kh4lRq1D5aNKUVWoelQrqhN1G9WHGkF9RmPRFDQdbYZ2Qvugw9Bc9Ar0OnQhuhx9BN2E7kDfRvejR9HfMWSMOsYU44hhYyIxCZiVmDxMKaYa04i5jLmLGcR8xGKxNKwh1h7rg43CJmFXYwux+7AN2DZsD3YAO4bD4VRxpjhnXACOg8vA5eH24I7hLuB6cYO4T3gZvBbeCu+Fj8YL8Tn4UvxR/Hl8L/4lfoIgT9AnOBICCDzCKkIR4TChlXCTMEiYICoQDYnOxFBiEnEjsYxYT7xMfEJ8LyMjoyPjIBMkI5DZIFMmc0Lmqky/zGeSIsmExCLFkCSkbaQaUhvpIek9mUw2ILuRo8kZ5G3kWvIl8jPyJ1mKrLksW5Ynu162QrZJtlf2jRxBTl+OKbdMLluuVO6U3E25EXmCvIE8S54jv06+Qv6M/H35MQWKgqVCgEKqQqHCUYVrCkOKOEUDRU9FnmKu4iHFS4oDFBRFl8KicCmbKIcplymDVCzVkMqmJlELqMep3dRRJUUlG6VwpSylCqVzSn00FM2Axqal0IpoJ2n3aF+UNZSZynzlLcr1yr3K4yrzVNxU+Cr5Kg0qd1W+qNJVPVWTVXeoNqs+VUOrmagFqa1U2692WW1kHnWe0zzuvPx5J+c9UofVTdSD1VerH1LvUh/T0NTw1hBp7NG4pDGiSdN000zSLNE8rzmsRdFy0RJolWhd0HpFV6Iz6Sn0MnoHfVRbXdtHW6Jdqd2tPaFjqBOmk6PToPNUl6jL0I3XLdFt1x3V09JbpLdGr07vkT5Bn6GfqL9bv1N/3MDQIMJgs0GzwZChiiHbMNuwzvCJEdnI1WiFUZXRHWOsMcM42Xif8S0T2MTWJNGkwuSmKWxqZyow3WfaMx8z32G+cH7V/PtmJDOmWaZZnVm/Oc3c3zzHvNn8zQK9BdELdizoXPDdwtYixeKwxWNLRUtfyxzLVst3ViZWXKsKqzvWZGsv6/XWLdZvbUxt+Db7bR7YUmwX2W62bbf9ZmdvJ7artxu217OPtd9rf59BZQQyChlXHTAO7g7rHc46fHa0c8xwPOn4p5OZU7LTUaehhYYL+QsPLxxw1nHmOFc697nQXWJdDrr0uWq7clyrXJ+76brx3KrdXjKNmUnMY8w37hbuYvdG93GWI2stq80D5eHtke/R7anoGeZZ7vnMS8crwavOa9Tb1nu1d5sPxsfPZ4fPfbYGm8uuZY/62vuu9e3wI/mF+JX7Pfc38Rf7ty6CF/ku2rnoyWL9xcLFzQEggB2wM+BpoGHgisBfgrBBgUEVQS+CLYPXBHeGUEKWhxwN+RjqHloU+jjMKEwS1h4uFx4TXhs+HuERURzRF7kgcm3kjSi1KEFUSzQuOjy6OnpsieeSXUsGY2xj8mLuLTVcmrX02jK1ZSnLzi2XW85ZfioWExsRezT2KyeAU8UZi2PH7Y0b5bK4u7mveW68Et4w35lfzH8Z7xxfHD+U4JywM2E40TWxNHFEwBKUC94m+SQdSBpPDkiuSZ5MiUhpSMWnxqaeESoKk4UdaZppWWk9IlNRnqhvheOKXStGxX7i6nQofWl6SwYVaYy6JEaSHyT9mS6ZFZmfVoavPJWlkCXM6lplsmrLqpfZXtk/rUav5q5uX6O9ZuOa/rXMtZXroHVx69rX667PXT+4wXvDkY3Ejckbf82xyCnO+bApYlNrrkbuhtyBH7x/qMuTzRPn3d/stPnAj+gfBT92b7HesmfL93xe/vUCi4LSgq+F3MLrWy23lm2d3Ba/rbvIrmj/dux24fZ7O1x3HClWKM4uHti5aGdTCb0kv+TDruW7rpXalB7YTdwt2d1X5l/Wskdvz/Y9X8sTy+9WuFc07FXfu2Xv+D7evt79bvvrD2gcKDjw5aDg4INK78qmKoOq0kPYQ5mHXhwOP9z5E+On2mq16oLqbzXCmr4jwUc6au1ra4+qHy2qg+skdcPHYo7dOu5xvKXerL6ygdZQcAKckJx49XPsz/dO+p1sP8U4VX9a//TeRkpjfhPUtKpptDmxua8lqqXnjO+Z9lan1sZfzH+pOat9tuKc0rmi88TzuecnL2RfGGsTtY1cTLg40L68/fGlyEt3OoI6ui/7Xb56xevKpU5m54WrzlfPXnO8duY643rzDbsbTV22XY2/2v7a2G3X3XTT/mbLLYdbrT0Le873uvZevO1x+8od9p0bdxff7bkXdu/B/Zj7fQ94D4Yepjx8+yjz0cTjDU8wT/Kfyj8tfab+rOo3498a+uz6zvV79Hc9D3n+eIA78Pr39N+/Dua+IL8ofan1snbIaujssNfwrVdLXg2+Fr2eGMn7Q+GPvW+M3pz+0+3PrtHI0cG34reT7wrfq76v+WDzoX0scOzZx9SPE+P5n1Q/HfnM+Nz5JeLLy4mVX3Ffy74Zf2v97vf9yWTq5KSII+ZMtwIoxOH4eADe1QBAjgKAcgvpH5bM9NPTBs18A0wT+E8803NPmx0A9cgw1Rax2gA4gbgB4uQNAEy1RKFuALa2lvps7zvdp08ZFvliOWgzRb20zFlNqc308H+r+19HMKU6Pf0f419GOwXHff9GHQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAEsKADAAQAAAABAAAEsAAAAABjrKBcAABAAElEQVR4AezdeZAc1Z3o+19mVbfUkkCA9tYKSMIzzHhj7HcNCBuMWXzt61V4wAbssQf/5RvjmUFibsSL6PfiXRstDt8b817cO/LYxsggQAKzmUVsQkJmWIQtQKB9bbXUrV1q9VqZ+X6npZa7q6u6q2vJyjz5zQiFuqoyzzm/z6ktT53fSRE2BBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAoHwCT/xg4qRHbpv86fKVSEkIIIAAAggggAACCCCAAAL5BB6Zf/mYB26Zck2DiJtvH+5HoJoCTjUrp24Ecgk8fMvE77zX4tzf5QXOzAuck5+blfrZqJG1yy5esvtgrv25DwEEEEAAAQQQQAABBBBAoDiBxn+e+pktR7171u/1v9TaKe6EMc6xmWOaJ9+yUrqKK5GjEKiMAANYlXGl1BIEfv7FSbsOnApm9RZx3giRG+ekvfrznOckkN+0d9Q9Oedft3f2Ps7/CCCAAAIIIIAAAggggAAChQs0Lpg6zRO5PQjkzg37/cve2ueJ3+fwyy50F3z/yYNL+tzFnwhUXYABrKp3AQ3oK9DwuQlj2n05GgROTd/7XX2mfma6K5+cmhL985gOZD2k+/xm+tLGN/rux98IIIAAAggggAACCCCAAAIDBfb9eFqd1MrXApE7JQiub+sO3NXbPGk8ofdkbTUpefS/r2n5Ztbd3ESgqgIMYFWVn8qzBRbOm/S3gQQrsu/vvT3zAldumJ2Suj8Pb30YOM79Orl1+fSfN+7v3Y//EUAAAQQQQAABBBBAAIGkC+jQlLP37vordRbAdx1x5qvHWGOyTwetVm/LSHt3biEdKDhZlxo1qWHN7o7ce3AvAuELMIAVvjk1DiKw4OqJj+qb69cH2UVG1zpy0xxXpp7fb21BM+P1dX1/vj/tdz8weWnz6cHK4DEEEEAAAQQQQAABBBBAwFYBnW011a+R7zgSfF9jnNMbp68jWm82eqJpgzoJq/fe3P/rgNdXF61rfiL3o9yLQPgCDGCFb06NeQRM+mCb57Tow3V5djl3txm6+pSmFH5qWmrAJTJ0RtZJJwiecPzg/vqlTS/pk3yIt+ZzxfIHAggggAACCCCAAAIIIBBLgV0Ns0a6p7u/rMuv3KEnQDdrEKm+gbR26ayrrZ40nSr49OiBxetavtO3DP5GoJoCDGBVU5+6+wncffWkWx0neLDfnUPcmDpWZ2NpSqGZlZVn26u/OqzIuOllM+/duzPPPtyNAAIIIIAAAggggAACCMRSYM89U65wffcuTUm5Vc+KzssVRP6UQTOYlfdc6lR3pnbSz19vbM9VJvchELZA3mdq2A2hPgQWXjPxMZ3G+rXhSpj1sG64NCUzL+yXUphdjEkxfEX//SbtZx4jxTCbh9sIIIAAAggggAACCCAQF4EzVxF0vq0/1v9A2zw7X7tNyuDb+z15q3HolMFcZejxX1/6Wsvvcj3GfQiELcAAVtji1JdT4J9vmDTabQ9M+uConDsMcad5In90SkrmzXTEdYZ8WrfrjwxPO16wjBTDIWB5GAEEEEAAAQQQQAABBCIh0NKgV2xvq/2GE8h39Xzms9qoQU98TnWKPK8LtR8sPGUwV5wrNI3wtlwPcB8CYQsM+oQPuzHUl1yBoa4+WKjMpDGaUjg3LWNHFHqE7NNfLR70Xfffp9/buL3go9gRAQQQQAABBBBAAAEEEKiwQNAg7t72+ivdwLl9sBTB7GbsPBrISzs86cyYFMGStlZNI5xIGmFJhhxcJgEGsMoESTGlCRRy9cFCa6hNOXL9pa7MHjdoSmGO4pwNeueyEdKxYsLiw6dy7MBdCCCAAAIIIIAAAggggEDFBfb/Y/30TNq9TX9s/3ut7NJCK/R0vGr9Hl/eO+CV70pWjnxj8dqWxwptA/shUCkBBrAqJUu5BQs0XFE/qm1UxqQPji74oCF2NE/snpTCGa64wx3HEunQybhP6YfF8vqdTc84K8UbojoeRgABBBBAAAEEEEAAAQRKEtj2o4vOrx1Z91XHldt19OnzWtiwztePtwfy3DZPDp8uedZVVhzBQ4vXHbo1605uIhC6wLBeEKG3jgoTIXD3NZO+5QTBQ6UEa96icz2ZJ2pK4c1zUjJ2ZNaj+Q7IboQj+7Vtv/UD95fTlzRuy36Y2wgggAACCCCAAAIIIIBAsQJ9UwT1FMWsNTWmmLK2H/Xlle2+dJopWOXf2vw6Z+LS1c2ny180JSJQuEDWWX3hB7InAuUSWDhv4ip9m/1GucrLLmdESuTaS9Iyd3ypT3dng14lcbmTDn477af7j2TXw20EEEAAAQQQQAABBBBAoBCBpoX1M7oD91Y9Q/mhSHBxIcfk2sfThbHW7/XlXU0ZrOwWzNdZWKsqWwelIzC4QKln9IOXzqMIDCFQifTBfFV+ZIIr112ckrQOaJW4/TnFsK7pWadBMiWWx+EIIIAAAggggAACCCBguUCpKYLZPD0pg1s1ZbCtIrOu+lcXOI8sfq35W/3v5BYC4QowgBWuN7VlCZQjfTCryJ6b5i0815N7XJ3ITZelZVxdrkf7lJSvgD67nP2zSdfKWhU4zq+mLdq/ceDD3IMAAggggAACCCCAAAJJFchKEfy2OpRl3d/NLb68usuTbp2BFdJGGmFI0FSTX2CIs/j8B/IIAuUQqHT6YK421ugMLDMT6zKdkVXe7UyKYcr3H6j/WdPh8pZNaQgggAACCCCAAAIIIBAXgf0L6i/LiEkRDO7UNs8qV7u7NVNwzU5PthwOb+Sqt+1BENyy5LVDK3tv8z8CYQswgBW2OPWdEwgzffBcpX3+MCmF116Skppyj2OJdGo1L+iVQ+4/eGLy43+zbEN3n2r5EwEEEEAAAQQQQAABBCwU2LHwkrFpv/MrxV5FcCiSo5oqaK4yaP6vxuY4zspFa5tvqUbd1ImAEWAAi+dB1QQWXjPhliBwHq5aA7TiCzWV8Oa5KRk/qmIvhQP6q8tKceW+qfc2/bGasVI3AggggAACCCCAAAIIlFegJ0Wwtf4613Xu0GElc2GqUeWt4UxpJmVwzW5PMpVeq33wxpNGOLgPj1ZYoGJn7RVuN8VbILBg3kQz/fSb1Q4lpTOwrpqZko9PLv9UrL6x6TpZH5hZWTV+968nL21u6fsYfyOAAAIIIIAAAggggEB8BHb9S/1HXM/9W1eC7+rA1cxKtbxLB6xe2ZmRbYerM+vK1Np30MBxgm8tWnvokUrFS7kIDCbQ97k42H48hkBZBaqdPpgrmNkXufL52a6MSFX8ZdGl9a8mxTBXL3AfAggggAACCCCAAALRFNj1D7MucGszt2iGxR3awqsq3cqWVl+e3+bLiY7qDF7liW/V4nUt8/M8xt0IVFSg4mfqFW09hcdW4O6rJ8zXHOpzI/fZI/vVCuz8EXqVwrlpmTwmtJfGUY11lev6y+rvPbChWnFTLwIIIIAAAggggAACCAwUCOZLau/M+mvPpgia7BG9rnllN3Nu9O5BX9bv8cQPf632oYJrG5UKJjWsOdQ61I48jkC5BUI7Sy93wykv3gILr5n0iF7FIpIj92YC1lWzUvIxTSkM8wXSm2JYm+66b9JPWprj3cO0HgEEEEAAAQQQQACB+Ars+afJf+mmXLOu1Z2aRDc5rEg6MiIvbs/I7mNmGCuamyPOrYvWNT8UzdbRKpsFwjw/t9mR2IYhEMX0wVzNv+QiR66/NC0j07kereh9no6cvSK+LDsx+oInLm/YZFIO2RBAAAEEEEAAAQQQQKCCAnvumXGhTnmaH1aKYHYoza2BPL81IyfNNc2jvAXy2OLXWsyC9WwIhCrAAFao3FRmBKKaPqhrUvVfoVBvnqcphTfOSUv9eVV7qRzXZjziOsHy+kVNr+nfbAgggAACCCCAAAIIIFAmgXMpginnriCQr2ixtWUquuBizGlIT8rgbl98bUQMto72rsykf33j6MkYtJUmWiRQtbNyiwwJZZgCUU4fzBWKq6+ST01z5dNTU+JU9xXzYSDOIynH/5UOZu3N1VbuQwABBBBAAAEEEEAAgaEF9iyccbkbZG7X79ff1b0nDX1EZfZo7zYpg57sOR69xa4GizgInNuWvNa8YrB9eAyBcgtU93S83NFQXuQF4pI+mAtyxlhHbpiTklE1VX/Z+Jpi+LKmGC53Rwer6hua2nK1l/sQQAABBBBAAAEEEEDgzwL7fjztIr9Gvqkpgj/Uez/550eq81fjyUBe2ObJ6a5YzLrqh6Q/7P9u0dqWr/e7kxsIVFig6mfiFY6P4iMmsGDeBL1yh7MyYs0quDmjakQHsdJiBrMisp3Qdjzp+MH99UubXtJWxe/TLyKQNAMBBBBAAAEEEEDAPoFNDZfXjmk/dqNenul2zc77qkao3+iru5m5Vm83evL2Pk0ZrG5TSqmdNMJS9Di2KIHInIUX1XoOip3AgqsnPSxOcEvsGt6nwa7+/anprqYVpsT8HaFti06BfijtZu6bcu/B3RFqF01BAAEEEEAAAQQQQCBUgd4UQU1d+J6e9E4csnLzM3AIZ8dtenmmF/Qqg/tOxP93Z8dxvr1obfODQ9qyAwJlEgjhJVqmllJM7AXOpg82ayBjYh+MBjDtfEcXeE/J6NrIvYzMDzmv6yfw/Wm/+4HJS5tP2+BNDAgggAACCCCAAAIIDCaw6+5Zk13JfEsvgHSnDg99YrB9q/GYGbQyKYNt3dmDVyGNnpU/6McXr2v5WvmLpUQEcgtE7sw7dzO51waBu+dN/IY+4VbZEEtvDHUmpXB2SmZeELG5WGcbGDjOSScIniDFsLfH+B8BBBBAAAEEEEDAJoFtP5o9onZU2w1RShHM9vV1fOrt/Z681ehLPC4ymB1B3tudzojuSYtePGaWNWFDoOICDGBVnJgKegV0/auHdFbQt3pv2/K/eRF9dEpK5s10xK3yZQqHMN2rC1auyLjpZTPv3btziH15GAEEEEAAAQQQQACByAr0pgjqEhp/p42cMGRDqzTJ6ZQu0L56qycHTmXPuhqyxbHYQc+Fbl+0ruW3sWgsjYy9AANYse/CeATw489Mq6tJd7Voa61IH8ylPnmMIzfNTcv5I3I9Gqn7zqUY1o7qfHBiw6HWSLWOxiCAAAIIIIAAAgggkENg93+bOcXp9m5xnOB7+vDHcuwSqbt2HQ3kpR0Z6chEqlnlbsyTmkb4lXIXSnkI5BJgACuXCveVXcDG9MFcSCPTIl+YnZaLL4zNS6tdF6t82vGCZVzFMFePch8CCCCAAAIIIIBANQWyUgTNekv6jTvam6eTrdbv8eW9A14SLhFOGmG0n45WtS42Z9lWqScwGFvTB3N1pXlR9aQUznDFjebSWLmabe7bpymGD3pB6hczluzbkW8n7kcAAQQQQAABBBBAoNICe+6ZcoXrO3doiuBtWtf4StdXrvJPdYo8vy0jBy1NGczpFMgdi19rWZ7zMe5EoIwCDGCVEZOicgs0fG7WyDavzaQPnpd7j3jfmy+dfuIYV26e48rYkXF8mTkbtFeWjZCOFRMWHz4V7x6i9QgggAACCCCAAAJxENi7YHp9EATzNUXQrGv10Ti0uW8bdxz15eXtvnSaKVgJ2gIneGrJ2kP/JUEhE2qVBOJ4Zl0lKqotVmDBNRO/rnNnHy32+DgfNyIlcu2laZk7LrYvtQ5NMXxKZ2Ytr9/Z9IyzUrw49wdtRwABBBBAAAEEEIiWwK6GWSPd091fdh3R2VZyk7Yu8imC2YKerjC7fq8v72rKYEK3LjfonHzvayeOJTR+wg5JILZn1SH5UE0ZBDR9cIVeffBvy1BUbIv4yARXrrs4JWkd0Irclm8KWXZDHdnvBMFv/cD95fQljduyH+Y2AggggAACCCCAAAKFCvRJEfy2HjOu0OOitt/x9kCe06sMHm5L1qyr7H4IArlzyWst92ffz20EyinAAFY5NSlrgIBJH2z32pr17fz8AQ9aeke+8aCLRjnyxTkpMf/Hf3M26IfUcicd/HbaT/cfiX88RIAAAggggAACCCBQaYF9P5421a+R7+js/u9rXXMKqS/fd+tCjq30PptbfHl1lyfd5hrfid+CpxevO/TlxDMAUFEBG86kKwpE4aUJ/PPVE7+m04EfK60Ue46uNSmFl6TksvHxWt19kB74c4phXdOzToPYfZHgQSB4CAEEEEAAAQQQQGCgQFaK4M26RxRzEgY2fJB7MjpgtW63J5uaGbnqw9Tdnamd/PPXG4/2uY8/ESirAANYZeWksGyBBfMmPqj33Zp9f9Jvm5RCM5BVE4dxrMJ/9mrSX9NW+b6mGC5tfDfpfUz8CCCAAAIIIIBAkgXOpAi6d+kQz6160nmeLRZH2/Uqg1syckRTB9n6CwQSfG/JukP39b+XWwiUT4ABrPJZUlKWQBLTB7MIBr15YZ2mFM5NyTgrUgqzQz2TYpjy/Qfqf9Z0OPtRbiOAAAIIIIAAAgjYJ9C4YOo0T5xv64+aP9DoZtsWoUkZXKMzrzKJXat9qB51nlm8rvk/D7UXjyNQrAADWMXKcdyQAjr76qu60++G3DHBO6R0BtZVM1Py8clxmIpVVEd16lEv6FUo7z94YvLjf7NsQ3dRpXAQAggggAACCCCAQCQFdF2rOj8dfMlx5S79zvd5baR155hdOmC1ZmdGth5m1tWAJ2H/bA3SCAcAcUc5BWJ3idJyBk9ZlRXQRb7nO9Z9fJXXzFxyd60u/Nh0MpDrL3WlNmUd2AgV+5J+jfnS5AsOHti/oH6luHLf1Hub/lheSUpDAAEEEEAAAQQQCEsgaBB3b3v9lW7g3K5pY7fpN9gxOnhl5XaoVa8yuM2TEx2WBlhqr/U/fampSXV+RYv8danFcjwCuQT6P91y7cF9CBQhQPrg8NEu0JTCm/UqhRNG2/+yDBznAzMrq8bv/vXkpc0tw9fiCAQQQAABBBBAAIGwBfb/Y/30TNrVAavg77XuS8OuP8z6zHDVuwd8Wb/XE5+12gund+TZxWtbvlj4AeyJQOEC9p8pF27BnmUUIH2wOEwzAeuqWVanFGbDdOkdq0kxzGbhNgIIIIAAAgggEA2BbT+66PzakXVf1RTB221NEcyW7vICeXmHL9uPMHKVbVPA7e5Ubc2Un760/0gB+7ILAsMSIIVwWFzsXKgA6YOFSvXfTz8re1IK95/wNaUwJSPS1o8x16pAb4rhUV34c5Xr+svq7z2wob8MtxBAAAEEEEAAAQTCEuifIii3ab3WpghmmzZryuDzWzNy0qzkylaMQE2ms8ukEf6qmIM5BoHBBKw/Ox4seB6rjMCPbp49YlTryRYdizm/MjUko9TzdPWom+akZcp5yXuZ9qYY1qa77pv0k5bmZPQ4USKAAAIIIIAAAtUVaFpYP6M7cG/Vb58/FAkurm5rwq29J2XwoKYM7vbF11/j2UoSeG7xupabSyqBgxHIIZC8M+McCNxVXoGF8yZ9RRdzfLy8pdpemvmQHPhydPWuT01z5dNTU5LQBfH1Sszyiviy7MToC564vGGTSTlkQwABBBBAAAEEECiTwI6Fl4xN+51fSVKKYDZdu14n+8Udnuw5Rspgtk2RtzMpcet/uu7goSKP5zAEcgqQQpiThTtLEdDBq/mlHJ/MYwcOXhkHX8e13tjnywG9SuENs9MyyiTcJWtL6VoL1+sg1vVj244f0xTDla4TLK9f1PRashiIFgEEEEAAAQQQKJ9AvxTBoPPb+l1rtH7nSuS2/0Qgq7d7croroQCV6fV0RgKTRvjvlSmeUpMqkPusOakaxF2ygEkfrGs9aVK+xpZcGAX0ExhT68iNc1MyNYEphf0gztz4MBDnN5kg/ZuLl+w+mONx7kIAAQQQQAABBBDIEti/oP6yjJgUweBOfWhW1sOJummyBP/Y5Ml/7NWUwURFHk6wOtCwetG6lhvDqY1akiLAAFZSejqkOBdcM+m/SBA8EVJ1iavG1Yg/NT3RKYXZfe7rL4Yv67eO5e7oYFV9Q1Nb9g7cRgABBBBAAAEEkixAiuDA3m8zKYPbMrJXZ1+xVUyANMKK0Sa3YAawktv3FYn87nkTl+uT6jsVKZxCzwlMO9/RBd5TmlLIS/gcishx/fspxw/ur1/a9JLK8I2kDw5/IoAAAggggEByBHpSBFvrr3Nd5w79QvQNjXxUcqIfPNJGkzK4zZO2br4qDi5V+qOOOHctWtf8i9JLogQEzghw9sszoWwCpA+WjbKggkbViK6LlZIZF5h5WWz9BALZrFcyfDjtZu6bcu/B3f0e4wYCCCCAAAIIIGCpwO4FU/7CkdS3XAm+q8MzMy0Ns6iwzNqyb+/35K1GXxNGiiqCg4YrEMgLi19ruWG4h7E/AvkEGMDKJ8P9wxYgfXDYZCUfYF7AH52SknkzHXETepnCIRDNkgav6xUe70/73Q9MXtp8eoj9eRgBBBBAAAEEEIiVwK5/mHWBW5u5Rde1ukMbflWsGh9SY0/qAu0v6Kwrc2EktlAFPN9z6pf+obkl1FqpzFoBrkJobdeGH1gQBPMZEQ3X3XwEbzzgyaHTrqYUumIWemfrJ2Cmp+kXueCqjJterFcxfJIUw34+3EAAAQQQQACBGAroNb9Te2fWX3smRbD7mxpCXQzDCKXJu44F8tL2jHRkQqmOSvoLpFLp4Gt617/1v5tbCBQnwNlucW4clSVA+mAWSBVu1ulw9Bc0pXDWhaQUFsC/V3+lXKGDWstm3rt3ZwH7swsCCCCAAAIIIFB1gT3/NPkv3ZRr1rW6U2eYT656gyLcAJMy+B/7fPmjpg2aH33Zqibw0uJ1LddXrXYqtkqAASyrurN6wSy8etKXAyd4snotoGYjYF7QPSmFM1xxGccq5ElxLsWwdlTngxMbDrUWchD7IIAAAggggAACYQnsuWfGheL7mulAimCh5qc6RZ7XqwwePMXQVaFmFdyPNMIK4iataFIIk9bjFYpXB6/mV6hoih2GgPmINimFB0758kW9SuH5IxmjHoLvXIphV1vt/2hcOPVpxwuWcRXDIdR4GAEEEEAAAQQqKnAuRTDl3BX43le0stqKVmhR4TuO+vLyDl86MwxeRaRbU24q+Lq25X9HpD00I8YCnN3GuPOi0vSGyy+vbbvo8EFdZ+jCqLSJdoiMSIlcd2lK5oxjKlYRz4d9+ivng16Q+sWMJft2FHE8hyCAAAIIIIAAAsMW2LNwxuVukLk9EOe7evCkYReQ4AM8nVe/fq8v7+qPuWzREtChxJeXrGv5fLRaRWviKMAAVhx7LWJtvvvqSV9ynOCpiDWL5pwV+MgEV667JCVpxrGKfE44G/TAZSOkY8WExYdPFVkIhyGAAAIIIIAAAjkF9v142kV+jXxTfzz7oe7wyZw7ceegAsfaA00Z9OTwaWZdDQpVvQf9tPjTfrLu8IHqNYGabRAghdCGXqx2DK5Ocuazotq90FO/6YbsUenNh3w52hbITXNTcgEphUX0U3CFHvRvnTLif2qK4VP65XJ5/c6mZ5yVws97RWhyCAIIIIAAAgiIbGq4vHZM+7EbXXFu1yt5f1W/v9XgUpzA5hZfXt3tSTffzIoDDOco1xP3q1rV/wqnOmqxVSD7XNfWOImrQgKkD1YItgLF1pqUQp2JNXc8U7Hy8uYaAcy9c6MOZD3gB+4vpy9p3JZ7F+5FAAEEEEAAAQT6C/SmCPrifE9PxCb2fzTHrcK/m+Q42O67Mpoy+AdSBuPTyUHwyuLXDl0XnwbT0igKMIAVxV6JUZtIH4xRZ51tqkkpvFYHsmoYxypT5zkbgkCWO+ngt9N+uv9ImQqlGAQQQAABBBCwRGDX3bMmu5L5lusEd+p41CcsCauqYRxrF3luS0aOaOogW2wEfL2a5vTF6w83xabFNDRyAqQQRq5LYtYg0gcj3WG5frQzKYUtrb7cPDct40Yxhl16BwZXOI5coQmF955LMaxretZpkEzpZVMCAggggAACCMRRYNuPZo+oHdV2w5kUwW6TOlXDUEt5etKkDK7RlMEMKYPlAQ2vFNdJOV/T6v6/8KqkJtsEOHu1rUdDjOeuK6TmglGTmrn6YIjoZazKLOp+5cyUfFx/E2QrUCDXiGDuQ5s0xXCV72uK4dLGd3Pvwr0IIIAAAgggYJtAb4qgXkXw7zS2CUPGV/h3iyGLsn2HLh2wWrMzI1sPMxQY3752Xl28rvlz8W0/La+2AANY1e6BGNe/cN74/xyI+3SMQ6DpKtCTUnixphTqGllslRA4k2KY8v0H6n/WdLgSNVAmAggggAACCFRPYO+C6fW6EPt8vSr397QVH6teS+yt+ZBeXfC5rZ6c6GDwKua9TBphzDuw2s0nhbDaPRDj+nXwan6Mm0/TzwqYlMLmVr1K4ZyUTBjNmHb5nxhnUgz9lLOoccHUF/SKnfcfPDH58b9ZtqG7/HVRIgIIIIAAAgiEIdA/RdD/mi4nwHlVheA3HfRlraYMeoxdVUg41GJdcZ2va43/b6i1Upk1ApytWtOV4QZyJn1w4kGt9aJwa6a2SgmkNJPwKlIKK8WbXe4BTTFcGQTOr6ct2f+n7Ae5jQACCCCAAALRFNhzz5QrXN+5Q1MEb9MWjo9mK+1oVZeOWL28w5ftR/Ryg2w2CaxdvK7lszYFRCzhCTCAFZ61VTXdfc2ELzqB83urgiKYHoFLL3Ll+ktdGZHm7SGMp0TgOB+YWVnpVOZXU3568FAYdVIHAggggAACCBQu0CdF0Kxr9dHCj2TPYgVaNDvguW2enCRlsFjCKB/nd2e8GT9//cj+KDeStkVTgDPUaPZL5Fu1cN7EX+ss3u9GvqE0sCiB80eI3KhXKZwyhreIogCLO6hLD1tNimFxeByFAAIIIIBAOQV2Ncwa6Z7u/rLriM62kpu0bFIEywmcpyyTJfjuAV/W7/XEZ+JVHqX43x1I8F+XrDv0r/GPhAjCFuDsNGxxC+ojfdCCTuwXgvmqMPCtQL+wyaemufLpqSnRdR3YwhU4qtWtcoPg3+qXNL0TbtXUhgACCCCAQHIF+qQIflsVxiVXIvzI2zMiL+msq93HGbkKXz/kGgNZt/i1lmtCrpXqLBDgtNSCTgw7BNIHwxavbn0XX+TIFy5Ny0h+d6xKR/SmGNamu+6b9JOW5qo0gkoRQAABBBCwWGDfj6dN9WvkO7o+5fc1zDmFhJr7579CjmSfXAL7T/rywjZfWruMLFsCBEgjTEAnVyJEBrAqoWp5maQPWt7BOcI7r1ZTCuekpf583jJy8IR1l6cT5V4RX5adGH3BE5c3bDIph2wIIIAAAgggUIRAVorgzVpEqohiOKREgZ6UQb3K4PrdvvgBg1clcsbqcP2R9h+WrG3+n7FqNI2tugBno1Xvgng1gPTBePVXUa3N85MiKYVFaVbqoGNa8ErXCZbXL2p6rVKVUC4CCCCAAAK2CZxJEXTv0iS1W/VE6Dzb4otTPG3dIi9u92QvKYNx6rZytnW9Xo3w6nIWSFn2CzCAZX8flzXChVdNuDlwnWfKWiiFxUpg2lhHbpqdklG1vH1EpOM+1Et5/yYTpH9z8ZLdByPSJpqBAAIIIIBAZAQaF0ydptOYv60pgj/QRs2OTMMS3JD9JwJ5Xgev2kgZTPCzQAInSM9a9FrT3iQjEPvwBDgDHZ5X4vdeMG/Sr0SC7yUeIuEAo2pEvqAphTN1MIstMgK+phi+rCmGy93Rwar6hqa2yLSMhiCAAAIIIBCygK5rVeengy85rtylV/j9vFbPl5aQ+yBXdb7O9H97vydvNfqSM2MwTyZArrK4zwYB58eL1zX/DxsiIYZwBHgjD8fZilpIH7SiG8sWhHnz+KReofAzM1xxy1YqBZVJ4LiW84hJMZyyqGm99hWLSpQJlmIQQAABBKIrEDSIu7e9/ko3cG7XD77btKVjotva5LXMLND+vF5l8MBJvpYkr/fzRvwHTSO8Ku+jPIBAlgADWFkg3MwvcPfVE25yHOfZ/HvwSBIFpp7v6gLvrowhpTCa3R/IZl0k8+G0m7lvyr0Hd0ezkbQKAQQQQACB4gX2/2P99EzavU1TBO/SUi4pviSOrJTA7qOBvLgjIx2ZStVAuTEVCDwvdfHP/nBgT0zbT7NDFmAAK2TwOFe38JpJvwyC4O/iHANtr4xAXdqkFKZk1gXMxaqMcFlKPZdimA4yj05e2ny6LKVSCAIIIIAAAlUQ2Paji86vHVn3VU0RvJ0UwSp0QIFVDpkyWGA57GavgK7l+o9L1jX/3N4IiaycAgxglVPT4rLOpg8e0BDHWRwmoZUgYN5MPjolJfNmOuI6vLWUQBnGoSe0kicdP7i/fmnTS9pbzOUPQ506EEAAAQRKEiBFsCS+0A8+1SmyemtGDrTyNSN0/HhV+LqmEV4ZrybT2moJcJZZLfmY1Uv6YMw6rIrNnTjGkZvnpmXsiCo2gqqHI7BXUy5WpHzv33RW1q7hHMi+CCCAAAIIhCHQ+C9T53qeoymCcof+5nJxGHVSR2kCOzVl8KUdnnRmGLwqTTIRR5NGmIhuLk+QDGCVx9H6UkgftL6LyxpgbcqRz1/qypxxpBSWFbayhfla/Ot6kab7a0d1Pjix4VBrZaujdAQQQAABBPIL7Fh4ydi03/kVUgTzG0XxEU/Hq9bv8eXdA14Um0eboirgyD8vXtvys6g2j3ZFR4ABrOj0RWRb0vA5Sbd5E0364PjINpKGRVLgrya58tmLU6LjWWzxEmjXi40/7XjBMlIM49VxtBYBBBCIs0BWiuC3NZbRcY4naW0/3n7mKoOHTjPrKml9X2q8eqrwxqJ1Lf+p1HI43n4BTivt7+OSI1w4b+KN+jH0XMkFUYDVAuarSq43lImjTUphSsaOzPWo1SS2BLdPUwwf9ILUL2Ys2bfDlqCIAwEEEEAgOgL7F9RflhH3Vv28uVNbNSs6LaMlhQrsOOJryqAvXWYKFhsCwxcI3JR7yb1ruGL28OmSdQRnlMnq76KiXXD1hH8Xx/l+UQdzEAIqUJsSufaStFw2nreceD8hnA3a/mUjpGPFhMWHT8U7FlqPAAIIIFBNAVIEq6lfvrozugDBH/aSMlg+0eSWpNeAunvR2palyRUg8kIEOJssRCnB+5xNH2xSggkJZiD0Mgl8ZIIr12lKYVoHtNhiLdCh0+2e0l/Kl9fvbHrGWSksdBHr7qTxCCCAQDgCPSmCrfXXua5zh87T+YbWOiqcmqmlEgLH2jVFQ68yeKSNWVeV8E1gmW/q1Qj/jwTGTcjDEGAAaxhYSdz17msm3uBoOnsSYyfm0gTMV5lcbzDj6kRuuiwt4+pyPVpanRxdRoF8HTiwikYdyHrAD9xfTl/SuG3gw9yDAAIIIJB0gd0LpvyFI6lvuRJ8Vz9eZibdw4b4N7f48uouT7rNJWDYECiTQODJ7CV/aGHJijJ52lgMZ5A29moZY1owb8IvdBjiB2UskqIQkLRenPCaWSkxi7yz2STgbAgCWe6kg99O++n+IzZFRiwIIIAAAsMT2PUPsy5wazO36I8cd+iRVw3vaPaOqkCXzrl+dacnWw4zchXVPop5uxboLKwlMY+B5ldQgAGsCuLGvWjSB+Peg9Fvv0kpvFZTCmtIKYx+Zw2vhX9OMaxretZpkMzwDmdvBBBAAIE4CgTzJbV3Zv21Z1MEv6kx6LxrNlsEDuvVBZ/b6snxDjNNmw2B8gsEEry1ZN2hT5e/ZEq0RYABLFt6sgJxkD5YAVSKHCBwoaYS3jwnJeP1aoVsMRIoPMWwSX99X+X7mmK4tPHdGEVIUxFAAAEEChTY80+T/1KvIGbWtbpTZ+5PLvAwdouRgEkZXKMpg2bRdjYEKilAGmEldeNfNmeM8e/DikVA+mDFaCk4SyClmYRXzUzJxyeTUphFY9nNMymGKd9/oP5nTYctC45wEEAAgUQJ7LlnxoXi+/NJEbS7203K4Cs7MrLtCLOu7O7pCEUXBPcsfu3Qogi1iKZESIABrAh1RpSaQvpglHojOW259CJXrp/tyogUb02W93qnxveCBHL/wROTH/+bZRu6LY+X8BBAAAErBM6lCKacu3TNw69oULVWBEYQOQVaWn15fpsvJ0gZzOnDnZUScDYsXtf8N5UqnXLjLcBZYrz7r2KtX/DZiV8QX1ZXrAIKRiCPwPkj9CqFc9Iy+TzenvIQ2Xb3Af31fmUQOL+etmT/n2wLjngQQAABGwT2LJxxuRtkbvfF+Z5+Ok+0ISZiyC9g5lq9e8CX9Xs9nWSXfz8eQaBSAm4qmHPvmkPbK1U+5cZXgDPE+PZdRVu+YN7EZVrB31e0EgpHII+A6zjymemOfHJqSniTyoNk4d2B43xgZmWlU5lfTfnpwUMWhkhICCCAQGwE9v142kV+jXxTf2T4oTb6k7FpOA0tSaBdL7vy4nZP9hxj5KokSA4uScBxgn9ZtPbQvSUVwsFWCnBuaGW3lhbUfL2CzMUHJzZpKfzCVholR5cocMmFjqYUpmVkusSCODxuAl3a4NWkGMat22gvAgjEXWBTw+W1Y9qP3eiKc7umCH5V46mJe0y0v3CBg62BPL81I6dMoj8bAtUVeGfxupYrqtsEao+iAANYUeyVKrfpn6+edL3rBC9UuRlUn0QBM2c9613pPF1d48a5aaknpTCJzwgT81H9t8oNgn+rX9L0TlIRiBsBBBCopMCwUwRzfF5Xsn2UXVmBcymDe3zxdeSSDYEoCAROMHfJ2kPbotAW2hAdAeY1RKcvItMS19UlOvnsikx/JKohWYNXJvZTOhfnsU0Z+dQ0Vz5tUgpz7JMoo+QFe5GGfJfvOHftWzitJ8WwNt1136SftDQnj4KIEUAAgfIJ7P5vM6c43d4t+qPlnUHgfSLQX5AK/ogteMfytZeSKiPQrpdR6UkZPE7KYGWEKbVogcCdr8f+pOjjOdBKAT5+rOzW4oMifbB4O46svMD0sY7cOCclo2p466q8dqRr8PQs6xW90MSyE6MveOLyhk0m5ZANAQQQQGAIgW0/mj2idlTbDaQIDgGVkIcbTwayepsnbV1Zv1ybm3zVSsizIMJhOvKnxWtbPhHhFtK0Kgjw1lQF9ChXuWDepM+LBC9GuY20LdkCo3Q1jhv0KoUzdDCLDQEVOKb/VuoMguX1i5peQwQBBBBAYKDAnnumXOH6zh06y+o2fXT8wD2y7mEAIwvErptmrtXbjZ68vU9TBu0KjWgsE0ilvL/46Zojmy0Li3BKECCFsAQ8Gw8NgmA+KVo29qw9MbXpVPcnP9CUwumuphWmxLUnNCIpTuBCPewuP/hzimEmSP/m4iW7DxZXHEchgAACdgjsXTC9/sz3uuB7Okrxsaw5NoMHyW9Eg/vE+NFWnW21eqsnTaeG9YyIccQ0Pc4CXib9DW3/f49zDLS9vAJ8PJXXM9alkT4Y6+5LZOOn6iysm2anZHQtb2WJfALkD7o3xXC5OzpYVd/Q1JZ/Vx5BAAEE7BHIShH8mkbGj9X2dG/Jkew7YVIGM2LWveq/MeWuvwe3IiSwUa9G+PEItYemVFmAs74qd0CUqid9MEq9QVsKFagzKYWXpmTmhczFKtQsYfsd13gfMSmGUxY1rdcPPX5yTtgTgHARSILAsFMEk4BCjOcEfP3ke3u/J281+sJFBs+x8EdMBEgjjElHhdRMBrBCgo5DNXdfPfF/a/rgD3vbym8xvRL8H3UB80b20SkpmTfTEZcc2Kh3V/XaF8jmwHEeTruZ+6bce3B39RpCzQgggEDpAvt+PG2qn5ZvOk7wd1raR0svkRJsFDjVKfK8zro6SMqgjd2biJj0u9v/uWRt8/+TiGAJckgBBrCGJErGDqQPJqOfbY9y0hhNKZyblrEjbI+U+EoU8PXqSi/rmjDL00Hm0clLm0+XWB6HI4AAAqEI7GqYNdI93f1l1xFdkF1u0kpJEQxFPp6V7DoayIs7POnMMPk4nj1Iq88KvKtphB9DAwEjwAAWz4MegXuumXSdHwQvwYFA3AVqU45cf6krs8eRUhj3vgyp/Se0nicdP7i/fmnTS/qhyLf8kOCpBgEEChfokyL4HT3qosKPZM8kCnj6SbZ+jy/vHfD4UEviE8DGmJ3UXy5ee+BDG0MjpuEJ8KvN8Lys3VsHr+ZbGxyBJUqgS7+1PatX1/noFJF5M1xxGcdKVP8XEexYPeb2wHVu379g6tZ94qyo8bt/o7OydhVRFocggAACZRPoSRGske84EnxfZ4zOKWR03ezDr9Nl64JYFtSTMrhVUwZbC3nGxDJEGp1AgSDwzLnq/53A0Ak5S4DPuCyQJN7sSR88MHG/fuOZlMT4iTn+Avm+sE/UlMKb56Rk7Eje6uLfy6FG4Gttr+tp4P21ozofnNhwqDXU2qkMAQQSK5CVInizQqQSi0HgwxbYftSXV7b70mmmYLEhYJNAIO8vfq3lr20KiViKE+Csrjg3q45a8NnJ14rvv2xVUASDwFmBEfrV/9pL0jJ3PG93PCmKEmjXwf2nHS9YRophUX4chAACBQicSRF079LR81v10+q8Ag5hFwTOCXj6xFm/15d3NWWQDQFbBTxxL//ZuoMf2BofcRUmQAphYU5W7xX4/nxO7a3u4kQH16nf5Z7Tq+/sPu7KdRenJM1v2Yl+PhQRfJ0uIDJfUwzna4rhvv0SPOgFqV/MWLJvRxFlcQgCCCBwTmD/P9ZPz6Td2zRF8AeaIjg732zicwfwBwI5BI63B/KcLp1wuI1ZVzl4uMsigVTgmzTC/8uikAilCAHGLYpAs+mQBhG3bd7ERo1JVwxiQ8AOgXwnAePqRG7WqxReNIq3Pjt6uppROBu09mUjpGPFhMWHT1WzJdSNAALxEdB1rer8dPAlx5W7dHD889pyPpDi032Ra+nmFl9e3eVJt0l8Z0PAcoEgcDYvea35LywPk/CGEOBDcwgg2x8mfdD2Hia+bIEanYFlZmJdNoHV3bNtuF2UQIeefj6lMyiW1+9sesZZKeRvFMXIQQjYKxA0iLu3vf5KN3Bu1x9YbtNIx9gbLZGFIdCtnzRrdOBqyyFGrsLwpo7oCDi++1eL1h/cFJ0W0ZKwBUghDFs8YvWRPhixDqE5FRcwX/qe3+7JnhOBro2VkhrGsSpuHvsK8k3pOxPYyJ4UQ9EUw4unNu5fEDzgB+4vpy9p3Bb7uAkAAQRKEmhaWD+jO3Bv3dcW3KW/GF9CgldJnBx8VuCopgo+t80T8z8bAkkTCFI9aYQMYCWt4/vEywysPhhJ+7OB9MGkdTnxZglcWKdXKZybkvGkFGbJcLN0AWdDEMjy2pT71Iixcqz08igBAQTiINDWmTkv6Ehd7wX+raQIxqHH4tVGkzK4ZrcnGeb6xqvjaG3ZBEgjLBtlbAtiACu2XVd6w++5evLnfMd/pfSSKAGB+AqkdAbWVTNT8vHJTMWKby9Gr+UmVXXMaF3chk/Z6HUOLUKg0gI6Maa9S+R0R6UrovykCHTpgNUrOzOy7TCzrpLS58SZX8BPOX+9dE3z+/n34BGbBThjs7l3h4jNd3umYA6xFw8jYLeAufT0Wl1H4pktnnR6fDG0u7fDi27kSAavwtOmJgQiJqAD13UjRMwPJGwIlCrQ0urLw+8yeFWqI8fbI5DyAnM1QraECvDRmtCOb9D0QZ3a/rWEhk/YCAwQ2H7UlxUbM3KwlUGsATjcMWwBTR9kQwCBBAuY9wCf94EEPwNKD908fTYe8GXVJk9OdPBkKl2UEmwR0FfDt2yJhTiGL8AA1vDNrDji9Lzx8zSQKVYEQxAIlEngZKfIo+9n5E8HfR3fZUOgeIGu7uKP5UgEEIi/QHdGhIHs+PdjtSLo0hnhz231ZJ2ud+VzocFqdQP1RlfgsoXXTPrr6DaPllVSgAGsSupGuezAZepllPuHtlVNwGQRmpTC32/JSIeegLAhY1or7gAAQABJREFUUIxAtw5gcfJajBzHIGCHQCeD2HZ0ZBWiaNaZ4A/pjPAdRxi5qgI/VcZEIAhII4xJV5W9mQxglZ00+gU2aPqgLixM+mD0u4oWVlFg59FAVrzbLQdOMRerit0Q26rNs4ZZWLHtPhqOQEkCZvC6ix9ASjJM4sHmc8OkDD76vidmRjgbAgj0FRjwfZw0wr48CfqbAawEdXZvqGfTB+t7b/M/AgjkFjhlUgo3ZeSNRo/ZNLmJuHcQgU69ChkbAggkT8DMvmIGZvL6vZSI2/U58/TmsymDPHlKoeRYawUGXNZ57sKrJ37M2nAJLK8AA1h5aSx+gPRBizuX0MotYBbhfWOfL098mJE2BiTKzWt1eRnN/jBXuWRDAIFkCXTwWZGsDi8x2v0nNGVQrzK45xgfGCVScnjCBAKXNMKEdXlPuAxgJazXG0gfTFiPE265BPaaL5jvZaTpJF8wy2VqfTkmjYh1cKzvZgJEoK+AGbQ2g9dsCAwlYJ4mb+7z5IkPMnK6a0B61FCH8zgCCRTIep0EDms6J/BZwABWwjq9/ZoJV2vIpA8mrN8JtzwCrfoF8zG9nLVJKeT8pDymtpfSZWZiZH3fsj1m4kMgyQI9i7fzmk/yU6Cg2Nv1s+EpHbh6s9Hn+0RBYuyEgBEYmEZ495UTPo5NsgQYwEpWf+uaDFx9MGFdTrhlFjADVyal8HFdG4tfTMuMa2FxPbMxPAsDIyQEEBgooANXrH03kIV7+gvs0xndKzRl0Pzff8u+3f9RbiGAwEABNyXMwhrIYvU9DGBZ3b39g2vQ9EGdCvD1/vdyCwEEihFoPBnIg2bNiuPMxSrGL0nH9MzISFLAxIpAQgW69OOAde8S2vkFhG3W1HxTZ3A/adbU7M41WDVgdkkBpbILAkkT6P/aCcT526QJJD1eBrAS9Aw4/dkJV2m4pA8mqM8JtbIC5qpBT37oyau7NQWAqwZVFjvGpZt1sHh6xLgDaToCBQp06ZVr2RDIJXBKlyD4nc7cflNncPN5kEuI+xAoVGDAQO8l91wz4ROFHs1+8RdgACv+fVhwBK5P+mDBWOyIQIEC5negjQc8WfW+Jyc5eSlQLVm7mZOV7kyyYiZaBJImYF7nzLZMWq8XFu+uo4E8vDEjB071nzlS2NHshQACQwn4LJEzFJFVjzOAZVV35g+mwaQPOqQP5hfiEQRKEzjYai6D3S27jvEFtTRJO4/mxNbOfiUqBHoFzGucd/9eDf43Ap4+IdbqDO1ntmSkgx8xeFIgUEGB4Fta+ICpWRWskKKrKMAAVhXxw6zapA/qr4NTw6yTuhBImoD5gvr05syZlEKWxkpa9w8ab4Y0wkF9eBCBuAv0XHE07kHQ/rIJnNIZ2SZl8F2doc3AZtlYKQiBfAKX3HP1+E/me5D77RJgAMuu/swbDemDeWl4AIGSBLK/mJrbJqXwkU2enOjIfrSkqjg4xgLmmWDWwmJDAAH7BHz9wcIs4M6GgBHYcdSXhzRl8CApgzwhEAhNwHdTXI0wNO3qVsQAVnX9Q6m9gfTBUJypJJkC+eYrt7TqF1i9SuHWIwxiJfOZMTDqzq6B93EPAgjEX6DDDE7zVh//jiwxAnMFSpMy+OwWTzpN/iAbAgiEJxAEt2hl+b6Wh9cOaqq4AANYFSeufgXtV0+4kvTB6vcDLUieQKcn8tzWjKze7kmGX+eT9wTIijijzwdzgsOGAAJ2CZA+aFd/FhPNsfZAVr5/JmWwmOM5BgEESha4eMFV468ouRQKiLwAA1iR76LSGxi4XH2wdEVKQKAwgVy/uW4+5Pd8sT1OSmFhiBbvxYmuxZ1LaIkUMAPT/ECRyK4/F/TmFl8eeS8jh0/n+gZwbjf+QACBCgtwzlth4IgUzwBWRDqigs1wJPC/VsHyKRoBBPoI5Ju7fEi/2JqUwi2HmYLThytxf/ZcjZBznMT1OwHbK9BBarC9nTtEZGbg8pWdnry4w5NuHchkQwCB6grod3DSCKvbBaHUnu9cK5TKqaTyAnfPm3iVdvJrla+JGhBAoFCBj0xw5dpLUlLDTwiFklm13/mjRdJpq0IiGAQSKWDGoo+e1OWvGJROXP8fbRd5fktGjmjqIBsCCERHwHXdT9/76sG3otMiWlJuAU6fyi0asfLcIOCKDBHrE5qDgEkpNLOxjrTxxTeJz4aeWVhJDJyYEbBMwFxZlMEryzq1gHDOpAx2M3hVgBW7IBC2gO/7nPuGjR5yfQxghQwecnVO4DikD4aMTnUIFCJgFnx9SNfM+NNBUgoL8bJpH056bepNYkmyAFcWTVbvd2ma4OptmZ6UQbP2GRsCCERRIPhbbRVZZlHsmjK1ic4tE2QUiyF9MIq9QpsQGCgwe5wr11/qSm2Kt+SBOnbeM2aUSG2NnbERFQJJEPB1Au2xU8zASkJfmxgPtQby3DZPTnAxlqR0OXHGWMAPnP+09LXmN2IcAk0fRIAZWIPgxP0h0gfj3oO0PykC249oSuF7npiF3tmSIcDMjWT0M1FaJJD19mxSgUkftKh/84Riun2jzpReuSnD4FUeI+5GIGoCrrCETtT6pJztYQCrnJrRKov0wWj1B61BYFCB45pSaC7DTUrhoEzWPNid4eTXms4kkGQIZE2QZRDa/m7v8gJ5fqsn63Z54pPtb3+HE6E9Ak7A1Qjt6c0BkWR9HA94nDtiKrDwmolX6i+D62PafJqNQKIFLr3I0ZTClIxI8xZt8xNhVJ3IyFqbIyQ2BOwU8HQww6QPstkr0GJSBrdm5GSnvTESGQJWC/jOZxavb/4Pq2NMaHDMwLK04wOuPmhpzxJWEgR2HA3kQb1K4QH9As1mr0BXl72xERkCNgt08Nq1tnt7UgYP+LLqfY/BK2t7mcASIeCSRmhrPzOAZWfPmmkb37AzNKJCIBkCp/RX30d1zY0/6hdphrHs7HNzFSuPK1nZ2blEZa+AviGTPmhn97bpumZPfagpg7s1ZZAFzuzsZKJKkEDPABapDBb2OJ1qYaf++DPjptakU40WhkZICCRS4GJNKfzCpWkZmU5k+FYHXTdCpG6k1SESHAJWCZj1606ctiokglGBxpOBvKBXGTzdxU9GPCEQsEWgO1M77uevNx61JR7iOCPAAJadzwRnwbyJhzW0i+wMj6gQSJ7AebpW0o1z0lJ/Pm/bNvW+q/OgLxijEdGtNnUrsVgscKpNZ2DpTB02OwTM2uxv7/Pk7UZfcq7TbsazeH+2o7OJImkCRxevaxmvQTMqbVnPk0JoWYeeDSfQz9q37QyNqBBIpsApXXPlsQ8y8kajx6XbLXoKmCtbdZNGaFGPEorNAr6eBnXpDCw2OwRMyuDT+rn6Zr7BKxMmg1d2dDZRJFHgLQ2awSsLe54BLAs7tSekIHjT1tCIC4GkCpiTpzf2+fK7DzPSRpqDNU+DLmZzWNOXBGK3QLe+VlkayY4+bjwRyEMbM7JX/2dDAAH7BJwgMANYbBYKMIBlYaeakALX5UVrad8SFgLmi7e5SuHe4zkTHgCKmYAZwOIUKmadRnMTKdDBYHPs+938EPSmzmR+wvwQ1M07b+w7lAAQyCPAuXAeGAvuZgDLgk7MFULg+szAygXDfQhYImBSH57QqyW9ulvX7WBKQKx71XSfmdnBhgAC0RXwSPeNbucU2LJTOnP5dyZlUGcy87FZIBq7IRBTgXTgMZkjpn03VLPJ7B5KKMaP60Lu+7T502IcAk1HAIECBOrPd+WmOa6MqeUtvQCuSO5So1eYPG90JJtGoxBAQAXaOvVfBxRxFdh1LJCXtmekgzXM4tqFtBuB4Qg06gLu04dzAPvGR4AZWPHpq2G31HGEkedhq3EAAvETaDrpywpdy2P3MVIK49d7Z1psFnI3C7qzIYBABAV0lmSnXkiDLX4CJmXwD3t9eWYzg1fx6z1ajECRAoGQiVQkXRwOYwArDr1UZBsDFq8rUo7DEIifQLv+qvzU5rMphQyExK8D9SRrwNXN9D42BBCovoAZYDYphGzxEjils+Ye25SRd/br1Xvj1XRaiwACJQg4Lgu4l8AX+UM1aYHNVgE/cN9yHT6ybe1f4kIgW8C82jce8OTAKV++OCcl548kpTDbKMq3zQyPkbV9Wkj39cHgTwSqJ9DJGnXVwy+y5h1HfXl5hy+dGb4HF0nIYQjEViDQc+DYNp6GDynADKwhieK7Q2pkl3nx8pthfLuQliNQlEBLayAr9CqF247w8i8KsEoHeczyqJI81SKQX8As9s0AVn6fqD1iZsqt1YubPLvFY/Aqap1DexAIRyDoSnVuCKcqaqmGAL/vVkM9xDp1IfctWt3cEKukKgQQiJDAX01y5bMXpyTFu32EeiV/U0aOEBk1Mv/jPIIAAuEKmMGrU23h1kltxQkcaw9k9TZPDp1m1lVxghyFgBUCW3QB949YEQlB5BRgBlZOFnvu1I9wFrGzpzuJBIFBBXJ9ZX+/2ZeV72XkREeuRwctjgerINBlUpXoqirIUyUCuQWYfZXbJWr3bjnkyyP6WcfgVdR6hvYgEK6AfoUifTBc8tBrYwArdPJwK3RYyD1ccGpDoIoC+SZZteiv0SalcOthUgqr2D0FVW2uRGgWjGZDAIHqC5jX44CLK1S/WbSgj0DmbMrgC9s93jv7uPAnAkkV4NzX/p5nEXfL+9hPOW+5nLNa3suEh8DQAl06KPKcplbsPh7IdZpSmE4NfQx7VEfAzMKq4dO5OvjUikAfgQ5mRPbRiN6fx9r1c21rRo60MW01er1DixCokkDgkn1UJfqwquUrcljSVapnjDPqj23SZr6C1VSpCVSLAAJVEjBf6bNnZW3WNIuWVl9unpuWcaOyH61SQ6m2n4AZwBpVN7Dv+u3EDQQQqLgA6YMVJy66gs0tvqzZ7UmGGatFG3IgAhYKdHf7NRstjIuQ+ghw9tIHw9Y/dSH3dzS2T9gaH3EhgMDwBdKaQH7lzJR8fDKZ5MPXq/wRo3UAa0Rt5euhBgQQyC1gBkaOt+Z+jHurJ2BmE6/Z6ZESX70uoGYEoizwji7gfkWUG0jbShfgzKV0w+iX4LCYXfQ7iRYiEK5Az7ohuzxZzboh4cIXWFvPYu4F7stuCCBQfoGOrvKXSYmlCZgF2h9mPcfSEDkaAYsFgoBzXou791xoDGCdo7D3jyBwuBqDvd1LZAiUJGBSCh/iyk0lGVbi4O6MiFlAmg0BBMIX0JMgIX0wfPfBatykV9RdxRV1ByPiMQQSL+C4nPMm4UnAAFYCejmQgMXsEtDPhIhAsQLH2gN55P2M/OkgIybFGlbiOGZhVUKVMhEYWsAMIJtBLLbqC3R5gS7U7skrmjaof7IhgAACeQX8IGDSRl4dex5gAMuevswbyZ7JLZv0wdN5d+ABBBBIvIBnLkWuKYW/3+JJZ4azhCg8ITpJYYpCN9CGBAr0XH0wgXFHLeSW1kAeeteT7Uf4cSVqfUN7EIigQNuYVMsHEWwXTSqzAANYZQaNYnErV4q5Rssfo9g22oQAAtES2HHUlxW6xsgBPXFgq66AGVT0uMJWdTuB2hMnYGZemRlYbNUTMJ8+G3VG8KpNGTnZwWdR9XqCmhGIlcA7DWuEd+9YdVlxjWUAqzi32B2ll5tkSmXseo0GIxCGwMCTg5OdIo9qSuEbjZ4MfDSMNlFHrwCzsHol+B+BcATM2lekD4ZjnauWdj39/P2HnqzTGcGsA5hLiPsQQCCPAEvm5IGx7e60bQERT24BXxdydxxORXPrcC8CSRbQ4e0cm69vF2/s8+WQzsS6fnZaRvJpkUOp8neZk+lRdZWvhxoQQOCMAFcfrN4zoemkL6u3+dLaxffV6vUCNSMQTwFHWMA9nj03/FYzA2v4ZrE8IpX2mYEVy56j0QhUV2DnsUBWbOyWppOcUFSjJ3rSmXQQiw0BBCovkNG03Qxpu5WHzqrBfLpsPODL4x8weJVFw00EEChQwPdYwL1Aqtjvlvun99iHRQA5BJwF8yYe0vvH5XiMuxBAAIEzAuZMIscng6v3fWqaK5+emhInx+PwVU5gRI3I6FGVK5+SEUDgjEBbh0ibplCzhSfQpgP0L273ZO9xFmoPT52aELBO4OjidS3jNSp+bbWuawcGxAysgSa23hPoOecGW4MjLgQQKJNAnsGp3pTCxz/MSFs33w/KpF1QMV26Jgxr8hRExU4IlCTA1QdL4hv2wftPmKsMZhi8GrYcByCAQJaAyTTiy2kWiq03GcCytWdzxRUELG6Xy4X7EECgYIF9esLx4MaM7NH/2cIRMINXXaQRhoNNLYkVMK8xFg0Pp/vNDyJv7vOk5weRXOtd8fESTkdQCwKWCDgB6YOWdGVBYTCAVRCTHTsFrss6WHZ0JVEgUFUBk/Lx5AcZWb/XF5I+wukKBrDCcaaW5AqYCyawVV7ALND++KaMvNno559ZmmcmcOVbRw0IIBBHAc5x49hrxbeZ60oVbxe7IwPXf9Px+FYQu46jwQhEUMD8QL5hvycHTwVy0xxXRtfy3lLJburWhaXN7BCXn50qyUzZCRUw72cMEle+83cfDeTFHRnp0LRoNgQQQKBcAunAY5JGuTBjUA5nHDHopHI2URdy36flTStnmZSFAALJFqjTn0K+MCclsy5gdKWSz4S6kSJ1IypZA2UjkEyBji6R1vZkxh5G1CZl8G39weOtwWZdhdEQ6kAAARsFGnUB9+k2BkZMuQU428jtYu29evUwRqit7V0CQ6A6Au36a/pTH3ry6m5NKWS18Yp1QpeeZLMhgED5BUgfLL9pb4mn9KqOv3tfUwb3DZIy2Lsz/yOAAALDFQiENZ6Haxbz/RnAinkHDrf5AYvcDZeM/RFAoAABk4Kz8YAnj7zvyQkuQ1+A2PB38TSFMKOphGwIIFA+AfO66ialrXygfUraqSmD5iqDB1rNJwQbAgggUH4Bx2UB9/KrRrtEBrCi3T9lb50fsJB72VEpEAEEzgm06InKCr1K4bYjLO9+DqWMfzALq4yYFIWACnQys7HszwNPx6vW6ozcZ7ZkpDPD4FXZgSkQAQTOCQSc256zSMofDGAlpafPxpka2WVSCDmzTFi/Ey4CYQp06dnLs1s9eXmnJ+ZEhq18AibViSzN8nlSEgKkD5b3OXC8PZBV72XkXZ2Ry4YAAghUWCDoSnVuqHAdFB8xARZxj1iHhNEcXch9i9YzN4y6qAMBBJIhYMapcn2gTBztyM1zUzJ2ZK5Hk2FT7ijPGyVSU1PuUikPgeQJmNTBE6eTF3elIt6hM29f2uGL+RGDDQEEEAhBYIsu4P6REOqhiggJMAMrQp0RVlP0awWL3YWFTT0IJEQg3/BUy+kza6BsOcwJTbmeCswYKZck5SRdoENnNLKVLmDWETMpg2bmLYNXpXtSAgIIFCag3yy5OFlhVFbtxQCWVd1ZWDAOC7kXBsVeCCBQFoFOzSR5fltGVm/3WIS8DKLdpBGWQZEiki5ghtS7GMAq+WlwTFMGHyFlsGRHCkAAgeELcE47fDMbjkjbEAQxDE/ATzlvuayCNTw09kYAgWEJmJPD7FlZmw/5cqjVl5suS8u4uuxHh1V8onfuPfEeUZtoBoJHoCQBM3jFenIlEcrmFl9e3eVJN98pS4PkaAQQKE4gcMkqKk4u1kcxAyvW3Vdc48c4o/6oR/K7Y3F8HIUAAgUI5BueOtIu8rBeVn1TM2c8BTDm3YWrEeal4QEEChLo4OqDBTnl2qlLZ9W+sM2TF3cweJXLh/sQQCAUge5uv2ZjKDVRSaQEGMCKVHeE05iGNbs7tKb3w6mNWhBAAIH+Ahkdu3pJr1BoUgq7uVBVf5wCb5kZD2bdGTYEEBi+gK/TGM0C7mzDFzis6xo+oj9CbDnMG9Dw9TgCAQTKKPDez19v1J9F2ZImwABW0nq8N16HRe96KfgfAQSqI2BSCh/StVPMCRHbMAWUjPV7hmnG7gicFehk9lVRzwWTMrjq/Ywc7+A9uyhADkIAgbIJaAo4C7iXTTNeBTGAFa/+Kltrg8DhRV82TQpCAIFiBcwCwA/rCdGfDvJr/nANe9IIOY8cLhv7IyBcfXB4TwKTMvj81kxPyqCZQcuGAAIIVFvAcTmXrXYfVKt+FnGvlnyV6w0keDPfGjVVbhrVI4BAwgR6LsGuCwHvPxHI9bNdGZHi3amQp4BxMyeT6VQhe7MPAggYgYwOxnikLhf8ZGjRC288v82XE8y6KtiMHRFAoPICfhAwGaPyzJGsgRlYkeyWyjdqz+SWTVrL6crXRA0IIIBAYQI7jvqyYmNGDp5iWlFhYiKkQhUqxX4InBHgNVPYM8G8C2/UmbGrNnkMXhVGxl4IIBCeQNuYVMsH4VVHTVESYAArSr0RYltWrhTz+6O5GiEbAgggEBmBk53Sc8K0Yb8nDGMN3S1mHSxdB4INAQQKFOhk8fYhpdrV6OnNnqzTmbE+KYNDerEDAgiELvBOwxrh3Tx09mhUyABWNPqhKq3QJB2mXlZFnkoRQGAwAZ0WLuv3+vL7zRnp4OvJYFQ9g1cZjAY14kEEegW69LXCgEyvRu7/D7aaqwx2y55jjFzlFuJeBBCIgMCbEWgDTaiSAANYVYKPQrU+C7lHoRtoAwII9ApkzSTaeSzQlMJuaSKlsFco5/+dOguLDQEEhhYgfTC/UW/K4GPve3JKZ8KyIYAAAlEVcIQF3KPaN2G0iwGsMJQjWkcq7TMDK6J9Q7MQSKRAjrXbT+nl7h/blJE3GjWlMGuAK5FGOYLuJo0whwp3IdBfwLx/mBlYbAMF2vU95OkPz6YM8kY7EIh7EEAgUgK+xwLukeqQkBuT43Qh5BZQXTUFnAXzJh7SBoyrZiOoGwEEEChEYMZYR26Yk5JRNXx0ZXuNrhMZUZt9L7cRQKBXoEMHw1vbe2/xf69A48lAVm/zpK0r6xcCc5O32l4m/kcAgegIHF28rmW8NifrTSs6DaQllRVgBlZlfaNeeqDfTTZEvZG0DwEEEDACe08E8qBepdD8z9ZfgNSo/h7cQiBbwAxgsf1ZwKxw9eY+T57UGa4DBq/Mbgxe/RmLvxBAIEoCJoOIL4JR6pGQ28IAVsjgkasuCFgEL3KdQoMQQCCfQJumujz5wZmUQpYY/rNSRq8r6wHyZxD+QqCPgHltZHh9nBNp1dlWj2/y5M1GX2A5x8IfCCAQAwEnIH0wBt1U0SamK1o6hUdeIHDdt1hYJvLdRAMRQKCPgDnhemOfLyb15abZKRldy1QBw9OlM0zqRvaB4k8EEOgR6LnQAb/X91js0xmsq7dlxKx71X8zQLyX9jfhFgIIRE2g59w1ao2iPaEKMAMrVO7oVRa4PjOwotcttAgBBAoQ2G9SCt/NcLn3s1acpBfwpGGX5AnouAwptiK+OvSkDH6Ya/DKPC0YvErei4OIEYifQDrwuAhZ/LqtrC3m06qsnPEsTBdy36ctnxbP1tNqBBBIuoD5IPvolJTMm+mI6yT7Y+380SJp5lYn/SVB/H0EujS99mRrnzsS+OepTpHnddbVwVNMQ0tg9xMyAjYJNOoC7tNtCohYhi/ADKzhm1l3hJ7vMZJtXa8SEALJETCnZBsPeLLyfU9O6IlakreeWVhJBiB2BLIEuhL+nrDraCAPv9vN4FXW84KbCCAQQ4FAyByKYbeVu8kMYJVbNIblBSyGF8Neo8kIIJAt0NwayAq9SuH2I8ldlrhL17UJmGSR/dTgdkIFzGshqYO6nsa+drcvz2zJSEcmoU8AwkYAAasEHJcF3K3q0CKDYQCrSDibDvMDXcidDQEEELBAoEvP2p7d6smreuLmJ3Acy5ywd3OyasEzmRDKIWAGr5I4nmtSBn/3fkbe1ZmpSYy/HM8dykAAgegJBJyzRq9TqtAiVsqoAnrUqkyN7Hor6Kwxp3oMaEatc2gPAggMKWBO0PqufGVum5TCA6d8uXlOSsaO7PvokMXFfgdz0l5bE/swCACBkgXMlTmTtm0/6ssr233pNFOw2BBAAAF7BIKuVOcGe8IhkmIFkvWtvlilBBynC7lv0TDnJiBUQkQAgQQJjEiJXHtJWuaOT87HnVnH/oLzdFAvOSEn6BlNqIUKmBmYR83i7QkZx/E03vV7/Z5ZV4UasR8CCCAQI4EtuoD7R2LUXppaIQFm3FQINm7F6vc7FsWLW6fRXgQQGFKgU69A9pxefWv1dk8y+ncSNpNGaNbCYkMgyQIdZvZVQgavjrcHsvK9MymDSe5zYkcAAXsF9O2cJW/s7d5hRcYA1rC47N3ZYSF3ezuXyBBImECuc9bNh3x5SNeEOdqW61H7gDoTmDplXy8SUSkCSRnE3dzi61UGM3I4Ie9tpTwnOBYBBOIrwLlqfPuu3C1nAKvcojEtz085jGrHtO9oNgII9BfIlzlnBq8e1kGsLTqYZftmZpuZlCI2BJIoYJ7/Gcuf/90a4ws6s/TFHZ50Wx5rEp/DxIwAAlkCgUu2UBZJUm8ygJXUns+Ke4wz6o96F0knWS7cRAABuwTMSd/zetJnUgptP+lL4gLWdj1biaZYgZ70wWIPjsFxR9pFViZkMD4G3UETEUCg8gLd3X7NxspXQw1xEMj3Q3Uc2k4byyygC7m/o0V+oszFUhwCCCAQSYEL6xy5eW5Kxo+y86PQ1Z+ozGLubAgkScAkCR89qctfWZotbFIG1+xOzpp+SXruEisCCOQVeEcXcL8i76M8kCgBZmAlqruHCNZhcbwhhHgYAQQsEjimCx8/rAsf/+mgnfk35ips3RmLOoxQEChAwKx9ZePgVZeZPaoXpDApgyZFkg0BBBBIioC+p7PUTVI6u4A4GcAqACkpuwQB62Alpa+JEwEEzgiYdaLW7vLkmS2edHr2TdlIykLWPJ8R6BWw8QIGh1p1sF0Xat922L73qN5+438EEEAgn4Djco6azyaJ9zOAlcRezxNzIAGL4+Wx4W4EELBbYPtRX1ZszMhBPVG0aeuZjWJTQMSCwCACvr58zTp3tmzm3WijzhBduSkjJzrsem+ypY+IAwEEKi/gBwEzsCrPHJsaGMCKTVdVvqF7Jrds0lpOV74makAAAQSiJ3CyU+RRXRjZpBTacqpoUqm6uTxH9J5stKgiAp0WpQ926YzQ57Z6sk5niJp0YDYEEEAgoQJtY1ItHyQ0dsLOIcAAVg6UpN61cqWY3y3N1QjZEEAAgUQKmCxCk1L4+y0Z6bBk/SgbU6oS+eQk6CEFbHmuN+tM0Id0RuiOI4xcDdnp7IAAArYLvNOwRiz5RmZ7V4UTHwNY4TjHpha9FhdTNGPTWzQUAQQqJbDzaCAr3u2WA6fiPxfLLOTODI5KPVMoNyoCZj27uC9ubt5tTMrgo+97YmaEsiGAAAIICEvc8CToJ8AAVj8Obvgs5M6TAAEEEOgROGVSCnXtmTcavdhf1ayL3y55Vlsu0NEV7wDbNf3x6c1nUwZtvIxivLuH1iOAQJUEHGEB9yrRR7badGRbRsOqIpBK+2/5ns7DYkMAAQQQELMo9Bv7fDlwMpAbZqdlVG08UUxq1ciYtj2e4rQ6VAF9ncY5fXD/iUBWb/fkdFf8Z3yG2u9UhgAC1gv4Hgu4W9/JwwyQkYphgiVgd2fBvImHNM5xCYiVEBFAAIGCBcbUOnLj3JRMPS+eH51jx4ikUgWHy44IxEbApMmeiOElaMwKV2/rDM+3dZCc1a5i83SjoQggEJ7A0cXrWsZrdYzuh2ce+ZpIIYx8F4XewEBPzTaEXisVIoAAAhEXaNXZEb/TqxSalMI4nmx2cTXCiD/DaF6xAnFMH2zXWZFPfZCRNxm8KrbbOQ4BBOwXMGszM3hlfz8PK0IGsIbFlZCdg4DF8hLS1YT5/7P3JmByXVeh7j6nqudJktXdki3JmiVbGAOGOLYGi8QZHBLHduIAgZAL9yP3u7wH7zFY9oUH6IMQbDm5cOHxweVyeVy4kDiGQGIgiQlB1pTEiROcxI7lQZOl2N2S1epu9VxV561d3W31UN1dwxn2Pvvfn+WuOsPea/3rVNXZ66y1NgQgUBkB7bjSKYX/ILWxhi1L9xnTDixuAyszOEcbT0Cn+dpW4+2spAx+/Js59bL8nd3mvp+9l3cQgAAEXCLgBaQPumTvcnXFgVUuKYeOC3yflQgdsjeqQgAClRM4KzWx/lomoKcv2ROLpVcinMhXritnQMBkAhPimLWl5rl2tj35cl59+jviAJ8o5ayyMz3Z5OsD2SAAAXsJMCe113ZRSo4DK0q6lvYd+AUisCy1HWJDAALxEdCrhn3mO3n1xCmpX2PJDJo0wviuD0aKh8CoJamxgzoFWSI3nzxbsMbhFo8FGQUCEIBAaQLZIE9QRWk0Tm/lUY/T5l9YeSnk/rLsXbPwEeyBAAQgAIFpAqtaPfX2rVnV3jC9xcy/nvzqL2tXih9/M+2DVJURyEtUYd9lOadUMFNlXUV69Mm+QP3rizk1KsXmaRCAAAQgUBaBs1LAfW1ZR3KQUwSIwHLK3OUrK5McPN7l4+JICEDAcQKvXg7UI9+cUKf6zE4p1IFiRGE5frGmSH3T67rpyMxjZwrqn5/DeZWiyw5VIACBOAgEioygODhbOAYOLAuNFofIAUXz4sDMGBCAQIoIjEh0xWPPTaUUGuzHGpfVz2gQsJ6AOGPHDL6WB8eU+tQzefX1c3nTA8SsvxRQAAIQSB8Bz6eAe/qsGo5G2XC6oZe0ESgE/ld9z/CY/LRBRx8IQMB6Avpb8+lX8uqVwUDdscVXHY3mJetNiKNNF3T3eYRl/fXmsgJ6QQKdQmhie+liQX3xxYIay3MfZaJ9kAkCEDCfQCBzUfOlRMIkCHD7mgR1C8bMNI7rLw1Dbw0tAIiIEICA0wR6LxfUJ2SVwudfM3MCSxqh05dnKpQvpg8apol2qB2SRR0+ezyP88ow2yAOBCBgFYFgPDP2lFUSI2xsBMx7NByb6gy0FAEp5H5cjtm61HHshwAEIACBhQls7/TVmzZmVNagR0aZjFIdrQvLzB4ImExA13K7OCi12w3yD/eNBOrzL+TVhSGDhDLZiMgGAQhAYGECx6WA+/aFd7PHZQKkELps/SV0l1uwJ8XDiQNrCU7shgAEIDBNQE9d5z4Zeu58Qb02LCmFWzNqmSEphXmdfiX/tCOLBgHbCIxLGqxJzqvnegvqiVN5pdMaaRCAAAQgUBsBuZcifbA2hKk+26DnwanmbKVyHoXcrbQbQkMAAskRmOu8mpbkvERl6JTC4xfMycw2uQD2NDf+QqAUAVPSB3Pycf63E3n1hZdwXpWyE9sgAAEIVEOAOWg11Nw5BweWO7auWNNCxsP7XTE1ToAABCBQmsC4RGfoFKPHX5TJrgF+rGIdLLKdShuLrcYS0AsQ6AispNvFEaUeFaf0Mz0GfJiThsH4EIAABMIkEPhPhtkdfaWLACmE6bJnqNq0es3fGFbDE9JpXagd0xkEIAABhwnolEJd5P2OrVl1VfNCMVvRAyqI80qvSFjHN3z0sBkhNAKj+q4kYcerThk8KCmDOVIGQ7MrHUEAAhCYIjAxUah7GhoQWIhAcnfOC0nEdqMISCH3r4tA32+UUAgDAQhAIAUEdFH3W6/NqO9blVwwdIM4r1qaUwATFZwh0CfF2/Vqf0k0HUV58ISsLnohYQ9aEsozJgQgAIF4CHxdCrjfFM9QjGIjgeTumm2k5aLMHkX0XDQ7OkMAAtET0PVzDp3Mq39+Pq/G88lMiHUaoUnFsKOnzgg2E9ART0k5r3qljt0jkjKI88rmKwjZIQAB0wnIPQklbEw3UsLy4cBK2ACmDx8E1MEy3UbIBwEI2E3gxdcK6hPfyitd6D3upkcs1sKKe2DGg0AVBEbHqzgphFN0nau/+1ZO9Y/G/xkNQXy6gAAEIGANAc9n7mmNsRISFAdWQuBtGTZQAUX0bDEWckIAAtYSuDQSqE/KBPnfX40/NwoHlrWXjVOC60jBuFcf1JGRn5MISb3SYEJBkk7ZGGUhAAEIFIKACCwug0UJ4MBaFA87T6/qfUYoDEECAhCAAASiJaAnyDql8J+O59RYLr5ID13IXa/sRoOAyQT0dRpnumvv5UB94umc0hGSNAhAAAIQiIXAcGum99lYRmIQawngwLLWdPEI/uijSq+x8414RmMUCEAAAhB46WKg/kZq7bwiE+i4WtyRLXHpxTjpIVBcfTAGdfSn7mmJhPzbb+fVwFgMAzIEBCAAAQhME/j6/oNKHlfQILAwARxYC7NhzxQBWaqSUE6uBghAAAKREZjvqBqUifPffTunvnI2H0vUCWmEkRmXjkMgoCOvdARW1G1Exvin7+TVYYmElDSWqIejfwhAAAIQmE2A0jWzefCuBIFsiW1sgsAsAgUp5O553MjNgsIbCEAAAqERkMcEJVpBvna/8nJB6dXP3rIpqxoj/MXO69Xd5F8mU0IQNkEgYQI6QjBqf9K5gYJ6/IWCGhrnfidhczM8BCDgKAFPUcDdUdNXpDYRWBXhcvPgTLZABJabpkdrCEDAAAIndUqh1OI5NxjtxHosoRXeDECMCIYTiHL1Qf2p+vq5vPr0M3mcV4ZfB4gHAQikm0AhTwH3dFs4HO1KP/YNp296SQ8Bb9/urvOizlXpUQlNIAABCNhFwJdf7B9a46s3XJNRXgS/3rrPZW0qkr7tIo20JhHISQ31S4PRSDQskV1feCGnzvRH6xyORnp6hQAEIJAqAhcPHO5dKRrxhZwqs4avDBFY4TNNY4+BzGueSqNi6AQBCEDAFgLTKYV//52cGo4gzUmnaOViqDNkC2/kNIPAeESRgefEaaVXGcR5ZYadkQICEHCegM74wXnl/GWwNAAcWEsz4ghNIAgoqseVAAEIQMAAAmdl4q1XKTxzSUJTQm6sRhgyULqrmUDYqw9qR/CTsjjCP2hH8ARzpZoNRAcQgAAEQiDgBaQPhoDRiS5wYDlh5tqVDHyfOli1Y6QHCEAAAqEQ0KlPn5bV0p44VQh1tbSJGIplhwKATpwgoFfHLITopx2UyMW/fzannpTFEaIuCu+EgVASAhCAQEgEmGuGBNKBbiJc08gBeg6pGPiFJ718BEVXHGKIqhCAAATCJKBjR55+Ja8uDPnqbVt81Vpf+3e07lM7DRrqw5SUviBQHYEwIwJPyWIIX3gpp0ZJk63OGJwFAQhAIEIC2SBPsESEfNPUde13u2migS6LEpBC7i/LAWsWPYidEIAABCAQO4EmeRz1li0ZtX5Z7YHVdRml2lpjV4EBITCLgHamXuyvvSCKThn8mqQMfvUcUVezAPMGAhCAgDkEzkoB97XmiIMkJhOo/U7XZO2QLVQCskIVnvFQidIZBCAAgXAIjEhUyWPTKYU1plxNyPlhpm2FoyG9uEZgTIq3aydWLW1wTKm//7akDJ7FeVULR86FAAQgECmBQFFrOVLA6eocB1a67BmpNgHF9SLlS+cQgAAEaiGgJ/s6pfCTz+TUwGgNU385NczUrVp04lx3CdR6Db50saA+IYsdvHK5hs+Cu/jRHAIQgEBsBDyfAu6xwU7BQDiwUmDEuFQoBBRyj4s140AAAhColkCvTNj/5pt59cJr1YdijUv0Cw0CSRHIy6U7UWWtKn3uoZMF9dnjeTWWw3mVlA0ZFwIQgEC5BALmmOWi4jghgAOLy6BsApnGcZ1CWP2MqOyROBACEIAABGohMJ4P1Gefz6svnsgreVlx006AXL7i0zgBAqEQ0OmD1bS+kUD9raQMfvNVLt5q+HEOBCAAgQQIBOOZsacSGJchLSVAEXdLDZeU2FLI/biMvTWp8RkXAhCAAARKE9B+qlI/6l0tnrpja0Z1NJbaW7ovvVWvRNjStPB+9kAgKgJ9g0ppJ2ol7fj5gjp4Mq8m8F1Vgo1jIQABCCRN4LgUcN+etBCMbw8BIrDssZURksoEiSJ7RlgCISAAAQjMJrCQe6p3KFAfl1pAz1+ozCMwPlF7Ee3ZEvIOAksT0KmDlTivcnJZHzpVUP/yIs6rpelyBAQgAAGzCMjckkXCzDKJ8dLgwDLeRGYJ6FHI3SyDIA0EIACBMgiMS1TK517Iq8dlkl9uamAgd5U5cWLRIBAngdEKrrm+EaUe/ZakDMriBTQIQAACELCPAHNL+2yWtMTZpAVgfLsIFDLeV/3KHuLbpSDSQgACEEgJgVIphc9JmlXv5YK6Y1tWXdW0UMzWFQB6Jbi6uivveQWBKAnoa1ZH/pXTnuuVlMFT5Ttky+mTYyAAAQhAIGYCgU92T8zIbR+OCCzbLRiz/K1e8zdkyDJvL2MWjuEgAAEIQOB1Agu5py5K1MojklL4768u/TRiQr7tdSQWDQJxECimrS5xvelowsclmvALL+G8isMmjAEBCEAgQgITE4W6pyPsn65TSAAHVgqNGqVK+w+eGpX+vx3lGPQNAQhAAALREijWDZKC1zqlcLGi15VExEQrMb27QGB0idUHz0s9t09WUc/NBXboCAEIQMBCAt/6vS+dlcdqNAiUTwAHVvmsOHKagEexvWkU/IUABCBgMwGdUvgJqSF0QRwDC7WxJZwKC53HdghUQqAgl6Au4L5Q0ymDf/ftnLo0uvC1utC5bIcABCAAAfMISIQ3BdzNM4vxEuHAMt5E5gkYBB5fNuaZBYkgAAEIVEWgbyRQj4hjYKGUQh2tVcmqcFUJwUnOE1jIUVpcgOD5qZTBpbNenecIAAhAAAK2EPB85pS22MokOSnibpI1LJElUMGTC9VWsUQFxIQABCAAgRkEtIPqkKQUnusP1O2bfNWQnfEtLwEv4xKF1dQ44wReQiBkAqVWH+y9HBRXzxwg6ipk2nQHAQhAIHkCBVa3T94IFkpABJaFRkta5NOrep8RGYaSloPxIQABCEAgXAIvXSyoj0uNoVcHZ6dpFVeGm70p3IHpzWkCOSnMnpd/001fak/LIgN/+0xO4byapsJfCEAAAqkiMNya6X02VRqhTCwEcGDFgjldgzz6qNK3mXo1QhoEIAABCFhNYL5XamBMFR0HT53Lq+m9OkJLOxloEIiCwMz0wRGpg/WPz+XVYYkILJAyGAVu+oQABCBgAoGv7z+oFql8aIKIyGAiARxYJlrFApkkuYQ6WBbYCREhAAEILE5gRqrgjAN1Qe2jZwrqn57LqdGp28uxiRkH8BICIRIYm7rGvjtQUI88nVOn+/BchYiXriAAAQiYSOBJE4VCJvMJ4MAy30ZGSligkLuRdkEoCEAAAmESONEXqI8/PaG+OxAonUYoKwbRIBAqgXFxXukIP50y+A/PFtTlcS6yUAHTGQQgAAEDCXiKAu4GmsUKkXBgWWEm84TMZAtEYJlnFiSCAAQgUBuBEr6DQSng/qlnc+rLL+fVBMH+tfHl7HkEBkaUeuw7UymDeEjn8WEDBCAAgTQSKOQD5pJpNGwMOpXOHYhhYIawnoC3b3fXedHiKus1QQEIQAACECiLwK4Nvrp9W6asYzkIAksR0JFXv38opwZZZXApVOyHAAQgkCYCFw8c7l0pCpV4bJYmNdElCgJEYEVB1Y0+A/F+PuWGqmgJAQhAAAKawJdOF9QItbC4GEIi8I1zhdLOK6Y0IRGmGwhAAAJGEtDRV3zTG2ka84XCgWW+jcyVMAgovmeudZAMAhCAQOgEdMTMt1+hwHboYB3t8N/FgVWykR9QEgsbIQABCKSBgBeQPpgGOyalAw6spMinYNzA98ldToEdUQECEIBAJQSe/u4CTodKOuFY5wm8Nhyoc/08gHf+QgAABCDgHAHmkM6ZPFSFcWCFitOtzrJBHgeWWyZHWwhAAALq7KVAXRjC8cClUBuBpyX6iprttTHkbAhAAAI2EmAOaaPVzJEZB5Y5trBOko8cvvCKCH3WOsERGAIQgAAEaiLwLaKwauLn+snacUUkn+tXAfpDAAKOEjg7NYd0VH3UrpUADqxaCTp+vucporAcvwZQHwIQcI+AjsKiQaBaAoNjgeofqfZszoMABCAAAVsJMHe01XLmyI0DyxxbWClJQBE+K+2G0BCAAARqITCSq+VsznWdwBjXj+uXAPpDAAKOEmDu6KjhQ1QbB1aIMF3sqhBQyN1Fu6MzBCDgNoGxCbf1R/vaCODAqo0fZ0MAAhCwl4DPKvb2Gs8IyXFgGWEGe4XINI7rFEKWpLLXhEgOAQhAoGICzXUVn8IJEHidQFu9UtnM6295AQEIQAACbhAIxjNjT7mhKlpGRQAHVlRkHen3oS/09YuqLzqiLmpCAAIQcIzA/FpX1y731Y9syzrGAXXDJNBU56l7d2SVdmTRIAABCEDAGQLP//7BS5ec0RZFIyGAAysSrG51KtMbQkHdMjnaQgACzhDwZml64+qMunNbRtVL9IxeSY4GgWoI6Guns8VT77shq7paZ19jV/rjArvCglcQgAAE7Ccg3+os/mW/GRPXAAdW4iawXwCPQu72GxENIAABCCxCwBcfw94NGXXbel/JCkLFhnthEWDsWpTAtPOzpd5T77k+qzauKOXEKrVt0W7ZCQEIQAACBhNgzmiwcSwSDQeWRcYyVdRCxsObbqpxkAsCEIBAjQQasp6667qs+t5Vs28Zpp0QNXbP6Q4SmHnt1Ek0n05JvXnt7OvLQSyoDAEIQCDdBAIKuKfbwPFox91CPJxTPUqr1/wNUZA1qVJtZZSDAARcJNDRKGle35NRazrmR8PMdEK4yAadqycw99rRV9fNazLqzZsyyp8O8au+e86EAAQgAAHzCExMFOqeNk8sJLKNAA4s2yxmoLz7D54aFbG+baBoiAQBCEAAAlUSuLpNO6+yannTfOeV7nKuE6LKYTjNQQILpZ/u6PLVu6/LKB31R4MABCAAgVQR+NbvfensSKo0QplECODASgR7Cgf1KMqXQquiEgQg4CiB68WRcI/UJmqqWxgADqyF2bBnDoE5HqvFrp21Eu33YzdkFnSczumZtxCAAAQgYAEB+d6n5IwFdrJBRBxYNljJAhmDgDpYFpgJESEAAQgsSqCYyiW1iG7XqVxL3CEs5oRYdBB2ukdgTkBVUFgcgU5dvVei/64pkbq6+JnshQAEIAABEwl4PnNFE+1io0xL3J7aqBIyJ0EgUMGTSYzLmBCAAAQgEA6BOrkjeMe2TLEWUTk94sAqhxLHlCIwJyCr1CGqMavU3duz6vpOblVLAmIjBCAAAYsIFFi13iJrmS0qdwVm28ca6U6v6n1GhB2yRmAEhQAEIACB1wk013vqPTsyatOK8m8LynFCvD4ALyAwg0C5zk8dBXj75ozasyGjqO0+AyAvIQABCNhFYLg10/usXSIjrakEyr9TNVUD5DKCwKOPqrwIolcjpEEAAhCAgEUEVjZ76kclXaurtbJbgsISaWAWIUDUmAkUKvR+ft8qX92xNaOymZgFZTgIQAACEAiDwNf3H1S5MDqiDwhUdrcKLwgsQkBKXFCcbxE+7IIABCCQLIH5XoNrl/vqveK8amuoQrL53VXRCac4SaCKa2ezRAfeu0Ou1XoniaE0BCAAAZsJUGrGZusZJjsOLMMMYrM4BQq522w+ZIcABFJPYHYl7RtXZ9SdUvOqvsqoFgKwUn/BRKKg9l1V4b8qytLZ4qn33aCjBWdfy1cErbbnKz3wCgIQgAAEwiXgKQq4h0vU7d5wYLlt/1C1z2QLRGCFSpTOIAABCIRPwJe5/w9LTaHb1vs11RVaaiW58CWnx1QQqNHH1FKs15ZVG1eUcmKV2pYKaigBAQhAwFoChXzAHNFa65knOL/05tnEZom8fbu7zosCV9msBLJDAAIQSCuBhqynfkSirta01/7zn5FHYB1taSWFXlERyEvoXv9g7b1rP9iTZ/PqKy8TC1g7TXqAAAQgEBmBiwcO966U3mt8fBGZfHRsGQEisCwzmOHiBjIlespwGREPAhCAgJMEOhol/ep7wnFeaYDciTp5GdWudEgXjnbB3rwmo968Kat8liis3S70AAEIQCAaAjr6KqRv/mgEpFe7CODAsste5ksbBBTpM99KSAgBCDhG4Oo27bzKquVNtUdeTaMLuB2dRsHfCghUugLhUl3v6PLUPddnVFN2qSPZDwEIQAACcRPwAtIH42ae9vFwYKXdwjHrF/g+Oc4xM2c4CEAAAosR2NHlywQ/q5rqFjuq8n1F/xVOrMrBuX5GBNfM1ZISq4u7h+mgdd1M6A8BCEAgDALMDcOgSB8zCeDAmkmD1zUTCPwCEVg1U6QDCEAAArUTKKZYrfUlxSqj/Ch+7cUREYEvonbF6cFoAmFHYE0rq1Nk75Uow2s6wosynO6bvxCAAAQgUB2BbJAnuKE6dJy1AAF+5RcAw+bqCUgh95fl7DXV98CZEIAABCBQC4E6cVi9dUtWbSq5UlstPc8+d5kUcY/EOTZ7GN6liMDomFLDo9EpVJCa7l88kVfPnqe4e3SU6RkCEIBAWQTOSgH3tWUdyUEQKJNAFM9kyxyaw9JKQGqp4mlPq3HRCwIQMJ5AS72n3rMjE7nzSoOgDpbxl4NxAkZ9zWiH6u2bM2rPhoyitrtx5kcgCEDAJQKBIjPHJXvHpCsOrJhAuzRMQLE+l8yNrhCAgEEEulo89aM3ZFRXazw/78S4GGR8S0SJK+30+1b56o6tGZXNWAIGMSEAAQikjYAXfC1tKqFP8gTiucNNXk8kiInA/r1K1gHy1sU0HMNAAAIQgMAUgU0rfPUeqQHUKhFYsbW4vBGxKcRAUROIOgJrpvyb5TPxXlmhUEcl0iAAAQhAIF4CQeBds18qDcQ7KqOlnQC/6Gm3cIz67du7Yo3KZ/9ahtwT47AMBQEIQMB5Ajdd46tb18afMtXSpFRDvfP4AVABgcvDSo1PVHBCCIdeHg/UY8/l1fkhPK4h4KQLCEAAAmUTEGfDF/J57yc+eqynt+yTOBACixAgsHoROOwqn8D9u1f+iAoyn5Mzriv/LI6EAAQgAIFaCOh6P2/amFE3XR2/80rLXVenSNGqxYAOnjs2rpQutB5nq894avtKX10cDlRfhAXk49SJsSAAAQhYQmCj56ufvPXapq8dOzN82hKZEdNgAjiwDDaODaLplME3rOv6DUkb/BORt8UGmZERAhCAQBoINErC9ru2Z5VOk0qq6fpCdSIHDQLlEhiT6Ku4HVhatox8TLaIE0sXdj83QCRWufbiOAhAAAIhEGjzlPeBnetb/LecHjp0UNaACaFPunCUACmEjho+DLXv33X1usDLfVz6ujWM/ugDAhCAAATKI9DR6Kk7t2fU8qZkf8YbJX2wWdIIaRAol0D/ZaXy+XKPjua4Z3oD9W8n8qoQZ0GuaFShVwhAAAJWERDP1RfrxtX7P/KV3h6rBEdYYwgQgWWMKewS5Fd2dd3tecFnReqtdkmOtBCAAATsJnC1PMe8+/qsamtI1nmlKWbkLqJe0ghpECiXwOiYPHpP+Nm7Xq1zTbunTvYVVC7mdMZyOXEcBCAAgTQSkDuXDYWM+rFd65q/evTM8Jk06ohO0RJI/u43Wv3oPWQC+/eubxwujDwkd5+/EHLXdAcBCEAAAksQ2NHlqx/ekFG69pUJTTuvWptNkAQZbCHQN5C8A2uaVf9ooD4jxd37RhL2qE0LxF8IQAAC7hDIKU/9TvOh3t/aL5nl7qiNprUSIAKrVoIOnb9v58ptE17uc5K1/G6H1EZVCEAAAokT0E+bbl7rq93rkynWvhAA7UhjFcKF6LB9HgHxE41IBJYprTHrqW1SF6vncqAGDJLLFD7IAQEIQCBCAvpR3N6Ja5tvesM1Kz7/5bMDIxGORdcpIoADK0XGjFKVfbu6PqB879Myxroox6FvCEAAAhCYTaBObvHevjWrbug2JOxqhni+eNZwYM0AwstFCeg4J51CaFLLysdKO7Euy+qI52WVQhoEIAABCMRJwNua8XPv37W+9StHTw+9HOfIjGUnARxYdtotNql/8ZY1TXs2NiN/SbUAAEAASURBVH1MBnxQ/km5XhoEIAABCMRFoKXeU3ddl1FrO8xzXmkGekW3xoa4aDCO7QR07atRcRSZ1vR1vFFW82yo89SZfpxYptkHeSAAgbQT8DpEww/uXNc8LnWxjqVdW/SrjYDOSqBBoCSBX9696vpMUHhE8pO/p+QBbIQABCAAgcgIrJRC0++SlQbbxIllatMT/+XtpkqHXKYRyEuVk/5B06SaLc9LFwvq8y/mVS7hlRJnS8U7CEAAAs4Q+IwfjP2HB4/09zmjMYpWRIAIrIpwuXPwfbu6fsr3gk+L8+oad7RGUwhAAAJJENARH7OdVJskGuTO67KqSWr0mNy0dE2NJkuIbCYRKIgDa8zACKyZjFY0eWrDMl+dkhUKx3FizUTDawhAAAJxENgWeNkf37m29ctHXx46G8eAjGEXAbPvjO1imQppf/7mFe1N9dk/EWV+PBUKoQQEIAABywjcuDqj9lzrF9PzbBB9uQT+czNhg6WSl3FiQqnB4eTlKEeCofFAPXY8r3qlwDsNAhCAAARiJzAWeN79Dx/q+W+xj8yARhPgntNo88Qr3AO7Vt5U8PxPyKib4x2Z0SAAAQhAQBdEv21Dxshi7YtZZ5mkEGrZaRBYisC4OLAuW+LA0rpMSMTY4y/k1EsXcWItZVv2QwACEIiIwD+MZ8Z/+vcPXroUUf90axkBUggtM1hU4u7b3fl/Bp7/Sem/M6ox6BcCEIAABEoTaMwqSRnMqM1XmVmsvbTUk1v1KoQ4sBYjxL5pArqu1ERu+p35fzPimN0in8mcOLJeGcSJZb7FkBACEEghge2ZIPOeWza2/tuxU0O9KdQPlSokYN+dcoUKcvjSBPbdtuqHJQHkD+VIVhlcGhdHQAACEAiVwDKpufO+G7LqmnY7f5L1ynI0CJRDwMZrRS9UsOvajHrzpow4agk1LMfOHAMBCEAgZAJb/HzwWMh90p2lBOy8W7YUtrFiB/l1xsqGYBCAAARSTGBNu6d+9HsyalmjvRPjQKJTaBAoh4DNvs4dXb66S6IkGwxfWKEcO3AMBCAAAQsJXL1/r5J4dZrrBHBguX4FaP3zwaekWvDXQAEBCEAAAvERKE6Ir7d/QmyzUyI+azOSJmC7s3NNh/0OZ65ECEAAAhYSCFQQ/Mb+g8qiJHQLKVsiMjWwLDFUlGIefXl4/AeuX/2XdRPjUopX3RzlWPQNAQhAwHUCOtbq5rW+2r0+I88O7I28mrZjnTwPzXI3MY2Dv4sQGJepR17qYNncGus8ta3TVz2yOuHAmM2aIDsEIAAB8wnIXdJAEAQ/9fCR839qvrRIGAcB+++c46Dk0Bj37+76SXma/ieicotDaqMqBCAAgVgI1Enc81u3ZNWmFen5+W1uVKqxIRZ8DGIbAR2eN+NSH5QVCCdkJcI0tILo9sTJvPpWDzm0abAnOkAAAgYS8NS/+35w74MHz79ooHSIlBABnpkmBN7UYY+eGfrmno2NnwoK/l656ewyVU7kggAEIGAbgZZ6T2roZNVaSUNKU8tKBJaOwqJBYB6BOZf6uEQsacdPGpoOntyw3FcNEpF1pj8lSqXBMOgAAQikhcBfNQ9n7/nwl3p60qIQeoRDYM6tRTid0ov9BPbv7Wwdzns6VPPH7dcGDSAAAQgkS2Bli6fetT2j2sSJlbbWIOvXtjSlTSv0iYJA/2X7UwhLcXnpYkE9/kJeTRCMVQoP2yAAAQhUQmAkUN4vPHy4588qOYlj3SGQvjtpd2wXi6b37er6KXnKqFMKmZ7EQpxBIAABuwnMyZkSZTat8NXbNmdSWyeqoU4cWM12Ww3p4yHQPygOrJQ6eS4MBeqx53JqcDwelowCAQhAIIUEjktt0HsfOtTzrRTqhkohESCFMCSQae3m2Jmhp2+9tumznvLeIjouT6ue6AUBCEAgHAKznwvduDqjbt+UUZkUr/nri246CosGgaUIjKS46HmzRFduXemrc+KkGxonpXCpa4H9EIAABGYSkICJv/caJt750L9dODNzO68hMJfA7DvtuXt5D4EpAj9/84r25vrsn8st2XuAAgEIQAACixPw5df1tg0ZdUN3ij1XUwj0CoTtrYvzYC8ENIG+ASUroaebhU4jfPyFnHrpYsoVTbcZ0Q4CEIiPwFjgefc/fKjnv8U3JCPZTIAILJutF6PsT54bGZMC74/eur61T+Zlb5ahuXZi5M9QEICAPQQapaD5u6RY+5ar0u+80lbxRM1GIrDsuUATklQ7rtIcgTWNNSM3SVskEksXeT83gBNrmgt/IQABCJQgcEYVvHc+fKTn70rsYxMEShLACVESCxsXInDs9NBXbt3QfNALvLfJMW0LHcd2CEAAAi4S6Gj01D3XZ1V3q8xeHWl6ot7Y4IiyqFkTgdEUpxDOBKM//WvafdXa4KnTskJh2qPOZurOawhAAALlEQj+cSLX8PaPHXvlhfKO5ygITBLAgcWVUDGBY6eHz+y5tu2vJBHgRjl5U8UdcAIEIACBFBK4ut1Td4vzqk0mra61JhxYrpm8Yn0LEow05liB8y5ZfXRNh69O9hVULqXF6yu+EDgBAhBwnUBeeeq3mw+f/88Pnh0Ydh0G+ldOAAdW5cw4QwgcOXN5+Oqbhz6+fKhFx8fvkX/uzdi4EiAAAQhMEdjR5at3bM2oep0/5FoTlXFguWb0yvUNxIHjmgNLU9IO7c2yEukZicQazVXOjTMgAAEIpIhAbyHw7nn4cO+fH5RIiBTphSoxEnDwTjtGuo4M9cCe7jcVCsHfiAur2xGVURMCEIBAkYD+EX3DWl/dvMbt50HL2+UpBncUfCoWITAhzpvBoUUOSPku7bz65+M5dZa6WCm3NOpBwG0C2itV+nbAeyKr8j/+kcMXXnGbENrXSsDtO+5a6XF+kcCR00Mnd25s+IQK/DfKhrVggQAEIOACgTopXv72rVknVhpcyp66iDsOrKUoub2/kFdqfMJdBln5vtjW6asRcWT1XibwwN0rAc0hkG4CJZxXgdwgHDi5queD//2zw7IWLQ0CtRHAgVUbP86eInD01MjAWzYO/eWElCyVTTvlX4nvL3BBAAIQSAeBlnpP3SUrDa7t4KtOW7RBHFi+G4supuMCTkCLnDiwdBSWy007eTcs91VDnVdMKXSZBbpDAAJOEHjNKwTvPXCk90+efZaUQScsHoOS3HnHANm1Ie7f3f1uWXPnL0TvZa7pjr4QgED6CayUwszv2p5RbeLEok0SaGtVqo5HYlwOixDQKxAOjy5ygGO7Tl0qqM89n1fj4tijQQACEEgdAc/7mpQ+fN9HD/WcTJ1uKJQoAW43E8WfzsGPnhk6fuv65k95ytPF3VelU0u0ggAEXCSwSYoxv3t7VjVJBAXtCoGGrFIZ7iiuAOHVPAI6+kpHYdEmCSxr9NT6Zb7SjiycWFwVEIBAqgh46k+bX+t870e+dvK1VOmFMkYQ4A7cCDOkU4j9e9c3DhdGHlJB8Avp1BCtIAABlwjcuDqj9lzrU+uphNFbmibTCEvsYhMEigR09JWOwqLNJjA0HqjHjhekLpbEKtAgAAEI2E1gMPC8n334UM8jdquB9CYTwIFlsnVSItu+XV0fkIpYfyzqtKREJdSAAAQcIqBrO71pY0ZdLwWYaaUJNDcq1agrINIgsACBoRGlxsYX2On45gnxXT3+Qk69dJHi7o5fCqgPAYsJBN/Jq8x7P3b41WctVgLRLSBAwL8FRrJdREkp/ObO9e1/r1SwV3Tpsl0f5IcABNwh0CipcXduyyqdOkhbmEBW7ibqhBUNAgsR0CsQ5gkyKoknI4+Tt6ycjO48N4ATqyQkNkIAAiYT+Kvm4bo7f/fLr3zXZCGRLR0EiMBKhx2t0GLfzpVtysv8mfKC91khMEJCAAJOE1je5Kk7pVh7h9SqoS1OoFFWIWyWNEIaBBYiMDjEKoQLsZm5/Znegvq3k3lVwNk3EwuvIQABMwkMy8Jd/8fDh8//hZniIVUaCRCBlUarGqrT0ZeHxyUa629vvbb5ohR4f7OIyfVnqK0QCwKuE1jb4am7rsuoFlYaLOtS0AXc6+vKOpSDHCWg0wcLBBctaf0uWeX0mjZfnewrqBxOrCV5cQAEIJAYgec9z3vrgcO9jycmAQM7SYCcCCfNnqzSuVzhUyLB8WSlYHQIQAACpQns6JaVBsV51ZAl8qo0oflbAxwT86GwZRYBLpFZOBZ9c4040N93Q1YtkyhQGgQgAAETCUgwwudPdPdQ78pE46RcJiJgUm5g09S7f0/nHt/zvyBF3TeaJhvyQAACbhPwZK64a31G7VyXkZUGmThWcjXoQvcNkkZIg8BCBPQKhDg6F6Izf3ujONC3SV2sV4cCNcjqjfMBsQUCEEiawM3LB5t337Km7bPHXh6SJHEaBOIhgAMrHs6MIgT27er+kPz5hDiv2gECAQhAwCQCdeKAuWNrVl3fRWByNXbxxd+HA6sacu6cM4ITpmJjZ+XraLs4sUZySvVeJoatYoCcAAEIREvA8zb4GfX+W9e1fOXYmaGXox2M3iEwSQAHFldC5AT2713fePPa+v8hjqtfl8G45iInzgAQgEAlBHSdq7uuy6o1krZDq46ADlhrbKjuXM5ygID4XnBgVWdn/dnasNxXDXWeOtOPE6s6ipwFAQhESKBdvqZ+aue6Zql1PHw0wnHoGgJFAtytcyFESuCBvZ2bC3lP17y6IdKB6BwCEIBAFQQ6pWDyO2WlwTaKtVdB78opepK9nNjaK0B4NYuATh3sG5i1iTdVEDgthd0/+0JejeerOJlTIAABCERP4B+8hon/8NAX+vqjH4oRXCVANIyrlo9B7/v2dL5DFfzPylDXxjAcQ0AAAhCoiMCmFb66c3tWNUlkA602AtqB1UQEVm0QU3y2dmCNyiqEtNoI6KLu6yUa69SlAk6s2lByNgQgEA2B7SqfufuWja0Hj50a6o1mCHp1nQAOLNevgGj09/bt6rxfVqf4n9J9czRD0CsEIACB6gncuDqjbt+UURlKXlUPcc6ZjY1KMsVpEJhPoCAOrDEcWPPBVLGlWRzuW6/y1blBpYbGBSwNAhCAgFkEVnqB+qlb17eeOHZ66BmzREOaNBDgXjMNVjRIh5+/eUV7U332f4lIdxkkFqJAAAIQKBLQq+W9aWNGXd+J5yrsS2JZm1KaLw0CcwnkJOVt4PLcrbyvhcBEQanHJZ3wpYvyggYBCEDARAKe+tPm1zp/fv8zz/AIw0T7WCoTEViWGs5EsX9ld9f31mf8L4pst5ooHzJBAALuENBxCXOf0DRmlbpzW1bp1EFa+AQaJIVQr0ZIg8BcAnnxsYxPzN3K+1oIZOSztkVWKNTpu+cGiMSqhSXnQgACkRG4abxp6O23rOl4/EsvX6YuVmSY3eoYB5Zb9o5M2/t2df+4TFw+LQN0RzYIHUMAAhAok8BcP0pHo6fuuT6rulrn7imzQw5bkkBDHRFYS0Jy9IC8RGDhwArf+PrbbE27r9oaPHVKVijUtcZoEIAABEwiICVlrvH94Cd2bmj596Onh06YJBuy2EkAB5addjNG6v17VfYN67o/4qng90SoemMEQxAIQAACUwTWdnjq7uszqlUmebToCNSLAyvDXUV0gC3uWacQTuQsVsBw0fVqqms6fHVSVinMkVFouLUQDwJOEmhRgXr/zvUt/ltODx06qOQdDQJVEuBuvkpwnKbUf9m9qjOnCp+Qi+hN8IAABCBgIoEdXZ76Yal55es8G1qkBFplyQ7txKJBYC6B0TGlhkfnbuV92AT6RwP1mefyqm+EuWHYbOkPAhAIh0DgBY9lCuMffPBIf184PdKLawR4VuqaxUPS977dXTslWP1fZUr4vSF1STcQgAAEQiOg3VU3r/XV7vVZqRGD8yo0sIt0VCc1xrLcVSxCyN1dExKBlSMCK/ILoDHrqe0rPdUzFKgBcRrSIAABCJhGQFIKtwVe9j23XNvyxLEzQz2myYc85hPgVtN8Gxkn4b5d3R+S+eAjItgy44RDIAhAwHkCdVKj/Y6tWXVDN8Xa47wYsuLA0k4sGgTmEtDpgzqNkBY9gawUJN0mxd1HhXnPZSKxoifOCBCAQBUEVsijxZ/eub71VamL9Y0qzucUhwnwWNph41eq+v696xtHCiN/FATBz1R6LsdDAAIQiINAS72n3rUtQ7H2OGDPGaNJViFsapyzkbcQEAJDI0qNsYh67NfCv79aUIdP5SnuHjt5BoQABCog8FcTufr/9HtfOiu/FDQILE2ACKylGXGEEPilPSvW5gq5z8nLdwIEAhCAgIkEdCHju3dk1Iomns0kYR9dwJ0aWEmQN3BMHfgz42M4NqFUgeLisRtqlay6ukq+F0/1BSpPMFbs/BkQAhAoi8CNGT9/xy3rW//l2OmhS2WdwUFOE8CB5bT5y1N+321db/ED/wuSs7y5vDM4CgIQgEC8BDZf5as7t2VVU92MWXO8Ijg/WlYyNnFgOX8ZTAKY8zEcl3pMBRwoiVwcy8Shf+0yv+jEGieNMxEbMCgEILAkgdXys/GTt6xr/brUxTqx5NEc4DSBObcYTrNA+RIE9u1cebXy/ZdkF4khJfiwCQIQSJ7AD13jqzeuy8wM+EheKAcl0PWv2locVByVlyTQf1mpPM6TJTlFecDQeKAeO55XvSXrYs0JmYtSEPqGAAQgsDCBUQnX3XTg6IXvLnwIe1wnQIVb16+AJfQvZP1r5RCcV0twYjcEIBA/gYw8gnnL5oy6BedV/PBLjEiATQkobJokwMWR+JWg6wO+Z0dWbVpR6taf59mJGwgBIAABTaBxau4JDQgsSKDUr9iCB7PDPQKnu3qflPvOL7qnORpDAAImE2iSaJ+7ZDJ2XSc/Y6bYKcBJYYopjJOD9EEzTKJXaH3H1oy66RoqiJhhEaSAAARmEtBzTj33nLmN1xCYS4BfsLlEeD+LwLPPquCmHasfqRsf2y47rp+1kzcQgAAEEiDQ0SjF2q/Pqi4pTkwzh4An5miUlQhpEJhLYFRqYNHMIKA/p+s6PNXWIMXd+wNWKDTDLEgBAecJBF7wWC7XcM///PwAa9Y6fzUsDgAH1uJ82CsEnnzxYv7qm4c+tfxyy2p5exNQIAABCCRFYK1MvPRKg62SDkMzj0ATDizzjJKwRDoybwQHVsJWmD+8XrV1TYevTvYVVI4VIucDYgsEIBAbgcBTf9nin/+JB4/gvIoNusUDMQOw2HgJiO7t29P1mypQv5nA2AwJAQg4TmBHl69+eKOvfB1CQDOPgJhlRbt5YiFRsgS0A6tvIFkZGH1hAv2jUtz9uZy6OLLwMeyBAAQgEA4B+UGYu+SO5/3BgUM9/7fs0DtpEFiSABFYSyLigJkEjp4eOnjrtc0XPeW9TbYzi5wJh9cQgEAkBPQXzc1rfbV7vaw0iPMqEsZhdapTCDFRWDTT0Y+ufzVGQoixxmzMemrbSl/1DAVqgEg5Y+2EYBBIB4FZU0ftsLr/wOHeX0+HbmgRFwEcWHGRTtE4x84MP7lzfctLotK75B/XUIpsiyoQMI1AnXzD3LE1q27opli7abYpJU9DvZIIuVJ72OYqgUDS03BgmW39rHxotRNrNKdUz2WCIMy2FtJBIBUEckEQfOjhI+f/KBXaoESsBHA+xIo7PYNJJNa3blnX+iV50n63aEXVk/SYFk0gYAwBXefqruuyUqcFj4gxRllCkEbtwMLXuAQlt3bnxR8yTgSW8UbXkZPrl/uqoc5TZ6S4Ow0CEIBARASGpWD7PQ8fPv/JiPqn25QTwIGVcgNHqd6xM0Mndm9o+4J40LUTqznKsegbAhBwi4AuMHyPFGtf3oTzyibL19dJWC4OLJtMFrmshbw4sCYiH4YBQiKwqtVTq+T791RfoLTzkQYBCEAgPAKefLOod4jz6ovh9UlPrhFgZuCaxSPQd9+e1depIPd5qXyyNoLu6RICEHCMwOYVvnrr5ozK8ojFOsu3yaOMOnFi0SAwTUCnDw5RIHwahzV/LwxPFncfpC6WNTZDUAgYTuAVySh/+0cP937TcDkRz3ACPCc13EA2iHfg0CvfUYXgjSLrt+bKy8O7uUR4DwEILEbgxtUZqXmF82oxRibv0wW7aRCYSUCvQkizj8DKZk/96PdkVZdEZNEgAAEI1EIgCLznvCD7RpxXtVDk3GkCPN+eJsHfmggcfXl4cPe67CcCL7tbOno9EovbnpqwcjIEnCGg6ybdvimjfvAan1XsLLZ6XVaprPyjQWCawIQUBs9JGiHNPgJ1GU9d1+nL6oSBem3YPvmRGAIQSJ5AoIKvZj3/LQ8eeeWV5KVBgjQQwIGVBisaosORM2Ojt2xvfcTLq+8XkbYYIhZiQAACBhHQwRhzHduN4vC4c1tWbZTUQZrdBLTzSjuxaBCYJoADa5qEnX/1qqKbrpp8sHBugHA6O62I1BBIjMC/eoXgHQ8d6e1LTAIGTh0BHFipM2myCh17aWjiLRuGHpkIWnUUlnZk0SAAAQi8TmCu82pZoyxlej1pKq8DsvyFrluGA8tyI4Ysvi7gnicCK2Sq8Xanv7fXtPuyqIavTl4qKNJC4+XPaBCwkYB8T/xN/0jvvX/wlWGqINpoQINlxoFlsHFsFe3gKVU4emboM7de2yLr2KhbbdUDuSEAgWgJrOvw1F2y0mBr/Vy3VrTj0nt0BDJyV6FXIqRBYJpA0YEllXtp9hO4SupirekQJ1ZfQeWwqf0GRQMIREbA+39bjvR+6GOvKB5fRMbY3Y5xYLlr+8g1P3Zm6F92rmselYI2b5bBmKFGTpwBIGAPgR1dvnq7FGuv0/kptNQQyEgWKA6s1JgzFEX0KoQFnB2hsDShk7YGT+mVYl/uL6gRqW9GgwAEIDCLgOc9dOBwzy8fVIqc41lgeBMWARxYYZGkn5IEjp4ZPrpzffMp8V+9Uw6gwE1JSmyEgDsE9JfAret8tfPajPi2cV6lzfK6GH9Dfdq0Qp9aCBQdWExjakFo3LmNWU9tW+mrnqFACrwbJx4CQQACyRDIy23dzx041PtQMsMzqisEcGC5YukE9Tx6evjpnetbnxYR7pJ/JJckaAuGhkCSBOrkF+eOrVm1oxtfdpJ2iHJs7ZNsxIEVJWLr+h4VBwc1k6wz25ICZyV6VjuxRiUKq+cyHsolgXEABNJNYCwIgp84cPj8X6ZbTbQzgQAOLBOs4IAMR08PHb/12qYjnvLuFnUbHVAZFSEAgRkEdJ2ru6RY+xqpe0VLLwGdEdrYkF790KxyAqOSQogDq3JuNpyhHdbrl/uqoc5TZ/pxYtlgM2SEQAQELkuOzV0PHz7/WAR90yUE5hHAgTUPCRuiInDszPDpWza2/qPEXrxbxmiPahz6hQAEzCLQKcs53CPF2pc34bwyyzLRSNOEAysasJb2OkKKmaWWK1/sVa2eWiXf86f6ApXHj1U+OI6EgO0EAtXj+8HtDx06f9R2VZDfHgLMJuyxVWok/ZU93Rv8IPi8KLQlNUqhCAQgUJKALvb71s0ZleVxSUk+aduoIzKW83gibWatSZ+L/TWdzskWEbgwHKjHnsupQZyWFlkNUSFQNYGTgRe87eFD51+ougdOhEAVBJhSVAGNU2ojcOz00KXbVrd8spBRb5aeVtfWG2dDAAKmErhxdUbdvimj9Mp0NHcI6BRC7ciiQUCnDuoaWDQ3CDRLKuG2q3x1djBQQ5I6SoMABFJKIFDfnsjn3/yxoxdOpVRD1DKYAA4sg42TZtEOnxsaesvG5r+eKHg/pDy1Kc26ohsEXCOgV6LTjqsfvMbHkeGa8UVfXcQdB5aDhi+hctGBhSOjBJn0bqrLeOq6Tl9WJwzUa8Pp1RPNIOAuAe8Jr3HirR89dPG8uwzQPEkCOLCSpO/42AdPDY//wI7Vn6yfGN8mKHY4jgP1IWAdAV3qZG6gTWNWqTu3Z9RGSR2kuUmgQRxY2olJg0ChoNQYDiznLgS9mMMmicTSjuxzAxTFcu4CQOHUEpBP86dzufq7P3qo93JqlUQx4wngwDLeROkW8MkXL+avfsPQp5YNtnTLjc4PpltbtINAugjMdV4ta5Ri7bLSYFcr3ot0WboybRrqcGBVRiy9RxdktoMDK732XUwz/fuwpt2XxTt8dfJSgZUoF4PFPghYQEA+03/RnOn9wINHBngsYYG90izi3PlHmnVFN8MJ7NvVeb88rnvQcDERDwIQKEFgXYen7tiWUQ2SPkJzm0Bbi1J1EolHg8BETqnBITi4TuAVqYn1T8dzanjCdRLoDwFLCXjeQwcO9fwXkZ6QSktNmCaxicBKkzUt1+XomeGjt17bfNFT3ttEFWbBltsT8d0hcEO3r962JavqdN4IzXkC9RKBleHuwvnrQAPI55Uax2nh/LXQ1iDFTiWt/Ex/oEbFqUmDAASsISCBtMH/9fDh3o9YIzGCpp4At5ipN7FdCh47M/zkznUt7eK+utUuyZEWAu4R0ImCu9dn1C3rMhTtds/8C2qso6+y3F0syMelHTlxYOkoLBoEGrOe2r7SU71DgRR4hwcEIGAFgUD914ePnP+wFbIipDMEuMV0xtTmK/qhm1Td7Zs7f1tmwveJtIRymG8yJHSYQL38etyxLVtcbcphDKhegkBWHFikEJYA4+CmnDivcGA5aPgFVM5KlO42cWINSVTeeXFk0SAAAcMJeOqNu65tbtjROXz4qVeULMtBg0DyBHASJG8DJBACD+zq3hh4wd/I7czNAIEABMwm0Nag1Lu2Z9XKZn5CzLZUMtI1yfXR1JjM2IxqFoERibQZGTVLJqQxg8A3vltQR0/nmRGbYQ6kgMCiBORu7yte4L3/wSM9JxY9kJ0QiIEAEVgxQGaIxQnct6vzXom3+kc5avPsI/XTOSbIs5nwDgLJEuhs8dTdstKgXnGQBoFSBHT9K10HiwYBHX2l0whpEJhLYHWbp7rl36m+QOUJxpqLh/cQMI3AmsBTP7NzXetrR88MPWWacMjjFgFmIG7Z2yht9+1c2aZ8/49EqA8YJRjCQAACJQlsvspXb92Uob5RSTpsnCbQIM6rlubpd/x1mcDQiFJjLLju8iWwpO6vDQfqsedy1MVakhQHQMAMAp7nPeoVRv/Tg0f6+8yQCClcI0AElmsWN0TffTu736h8719EnL2GiIQYEHCegF5E8Jpl+qm4r/pHZd2Zqafi+knHG67x1d6NGZXRldtpEFiEgC93FtqJRXOQwJzAab0CYZ6qKQ5eCOWr3Fznqa3ycOTsYKCGZjg7OyQNecNVnsrJ9cPKheXz5EgIxEBgR+Bl7925tvXJoy8PnY1hPIaAwCwCRGDNwsGbqAnce6/KbHil+wHlBftlLCn1S4MABJIk0CSOhs1SVHdLl6+2rPSVfq/bixcC9b+/llMZ+ZV4s0Rdbe/EczVJhv8vRUAXcW9vWeoo9rtAYPCyFHEnhdAFU9eso041ffylvHrxtYJaKanqP3tLVjVM3SX2Xg7U870F9cJ5pV6+VFAFUg5r5k0HEAiBQE4F3v6Tq3sefPRRxTd9CEDpojwCOLDK48RRIRDYt3fFmiCf+StPeXtD6I4uIACBKgl0t8sTb3FWben01BqJuNKRV6Xa7z8xoW7fmFVXy/E0CJRLQEfpdbSVezTHpZlAvziw8kxr0mziUHXTfqkvnSmojDiu7riu9EOT0YlAnFxKnFni0BKn1rBE+dEgAIHkCEi8/kEvk//AgYMXzyYnBSO7RIBZiUvWTlDXfXu67lGB+h8iwopZYsxJN5i1jzcQgEAoBOokpUunYmyTKKrN4rTqKKMAe4+kc4wMSyRNGceGIiSdpIaAL/POZTiwUmPPWhTpHySFsBZ+rp57uj9QN65d+OHKNBed5n5Ojn1enFnPnw+U/t2aTn2fPoa/EIBAyARKz90uyrpbP3vgUO+nQh6N7iAwjwAOrHlI2BAmgf03Xd083JL7PXFefahkv6W/BEseykYIQKB8AsubJS1QUgO3isNqvdQXyZZ+mF2yQ52e0ScTT09/PmkQqJCAvrFY3lHhSRyeSgJ9AwqHQiotG71SXiZQy1srm6YMSu3GFyT9/QVxZr10oaDGif6L3lCM4B6BxeZunvrT5qHsL+5/6rvyCJQGgWgIVPbLEI0M9JpSAvfvXLUj8AsfF/VuSKmKqAUBYwhkJA9w3TIlaYG+2trlFWuIVCvcyKhSI2PVns15zhOQO4sV7c5TAIAQ6OsXBxYkIFAFAU++R3QtvUyVy03p4u+n+8SZVaydFSi92iENAhCInkAQeM9l/ML7Hzx0/hvRj8YILhLAgeWi1aPX2btvT/cveEHwkAzVEP1wjAABNwk0S8H1DRJdpaOstnV7qjFb+1e6rlczIHVruNV385oKS+vl4sDSE1CauwR0KpeOwKJBoFoC2nmlnVhhfJf0iQPrxGuBOi7phickSks7uGgQgEBkBCYkpfAjzYd6f2u/UnzaIsPsZsfcXrpp98i0/uW9V6/MFHJ/KbPfOyIbhI4h4DCBTkmp2CYrBmqn1VopwB7Gjf1MnBRdnkmD19US0EXcdTF3mrsEcGC5a/swNW9qVKop5EehemXMM5cmo7Oe7QnUgKQe0iAAgQgIeOqzeT/7Ux87+N0LEfROl44SmFqg1lHtUTt0ApncxCdlRv3DoXdMhxBwlEC9PIFeP1WAXa8aGGVRdZ02yIphjl5oYavNfDBsotb1p2vp0SBQK4FR+V2ql2jjMB3iemGTTfK7uumqjHr7dUr1StTx8715dVIitE5eDBTXbq1W43wITBGQgIbi3FCpN8EEAmERwIEVFkn6mSTgeTeCAgIQqI2ALsC+ccpptUkKsYd5476QZHkJ8B6V2lc0CIRBQE8AqyxdE8bw9GECARxYJljBehl0JN/QiKQSNosqEeWNdLUq1dWaUbs2Sv3HCSWphpOrGh7vDdToBBey9RcRCiRLgLlhsvxTODoOrBQaNUmVPBX8SaC8X01SBsaGgG0E9AqB1y73pJ6VrmWVUZ1S8yPuNiTrxXCbHjf19I7HUvbptW25mlH0pFxSHLcUgVxOHrCMK9UYciphqXGbJNprxypf/knhHvlR7BnQdbMma2e9Kq/5bitFjW0QWISAF/zxInvZBYGKCUT0LKNiOTghJQT2K+UP7+76O1HnrpSohBoQiIRAS71Sm/WKgZIWuGmlLwXYIxmmrE516qBeeZAGgbAItDTJCh5yjdPcJTAhkSyDLKTu7gUQsubFVQklUiqOiOSFRL8kkWAvXZAi8JJq+KL8HRPHGg0CEFiMgPdPJ1f1vPvRR5VUnqNBIBwCOLDC4UgvMwj84i1rmuqy4wdl0xtmbOYlBJwm4Mu3bXe7RFiJ02qbOK1WyeuwC7BXA1inDg4MEn1VDTvOWZhAsziwGnFgLQzIgT1jEjGjU79oEAiLQFYe9ESZSliJnHoVw9N9UjNLnFnP9RTUhSFimCvhx7EuEPCeKjSp2z76eM+QC9qiY3wEcGDFx9qpkX5198rVOeV9RQoWrHVKcZSFwAwCOhVh41X+ZD2rLk+1Npj3lTsgtxU6PYMGgTAJRLFyWJjy0Vf0BHTK1zAOrOhBOzZCs6xKGEcqYaVY+4YD9fx5qZ0ldbNOiWNLPxyiQcBVAvKA9tz4RP7m3/vSa+dcZYDe0REwbzYVna70HDOBB/Z0fn8h8A7JsBL0TYOAGwR0AXYdYbWly1frl+t0B3O/ZvXqTsOkDrpxYcaspZ5g6okmzV0COi1ZpyfTIBAmARNSCZfSZ1ySpU5JZNZx7dCS+lmDo0RnLcWM/akiMCj+210fPdz7zVRphTLGEDB3ZmUMIgSphcB9ezrf4QXeZ6QPFqSqBSTnGktAL8e9bpmntkqE1fZuX3U02vG1WkwdlKXDKUhr7KVltWC6/pWug0Vzl4COvtJRWDQIhE3ApFTCpXTTv7G6+PtLUysbvnyJQvBLMWO/1QRygad+5OFDvY9brQXCG03AjpmW0QgRbikC9+/q+iX5MvvYUsexHwK2EFguE/ONUnhd17PauNJTehVB2xqpg7ZZzC556yV9tlUve09zloCuf6XrYNEgEAUBU1MJl9J1WD4TJy9ORmY91xNIIXiis5Zixn57CIhj4eceOtz7x/ZIjKQ2EsCBZaPVLJR5356uP1KB+jkLRUdkCCidBbhGR1npFQOlptXqDru/OqlNw0UdNQEdmdhG8njUmI3u/7KsQDguKxHSIBAFgWIqYYuE91sc318Q39VZicjSaYY6QuuVfpxZUVwr9BkTAc976MChngdiGo1hHCaQ4MLtDlN3UPWT3b2/sOHVznVS1P2dDqqPyhYSaJYUqA0r/KLTanu3pxqydjutpk1QkMIEIxRWnsbB34gIUL84IrAWdctU3CJjWSiqTs3TUX7t4sRSlv4864dj65Z7xX+3K1/pQvAnpmpnnbgQKL3SIQ0CNhCQS/nvmg71/KoNsiKj/QQs/cq3H7yLGuzbubJN+f5R0f0GF/VHZ/MJdLZKAXYpvq4jrdZKxJV+wpu2NiirDk6w6mDazGqcPhlJq+1oM04sBIqRwIDU2MtJMWsaBKIkYGsq4VJMJuSzc0ais17oLajv9BRUPwuuLIWM/UkR8LyvNQ9lbtv/1Hcl7pYGgegJpHB6Fj00RqiewAN7V60v5Apflqdl3dX3wpkQCIdAvaQerL9Krxo46bRqs6QAe7Xa63o0+ok1DQJRE9DO3+XtUY9C/yYT6B9USi8WQYNAlATSkEpYDp9ecQg/35tXJyVC61Sf/mwR41gON44Jm4C+7ma5D05lx9UbP/KV3p6wR6I/CCxEYNYVuNBBbIdAmAQkEusHJRLrCemTEr9hgqWvsggsb9YOK09tkUir9RK6ryNFXGg6dbCfVQddMLUxOq7oMEYUBEmAwCVxYOnvHRoEoiZg06qEYbAYkdpyJ6Rmlk43fE6is4ZYLCEMrPRRIQFxIgxIqsKuhw71fKvCUzkcAjURwIFVEz5OrpbAvt2d7xUP/iNyviPug2pJcV6tBPQKgdeKo2qDRFpt7/bVyhYHv/bkgdmgRF5NUFC51suJ8ysgoCOw0piGWwECpw/tG1BK1ymiQSAOAs2yOnCj1K50relArJ6BQB2XQvDHzxfUq/Kaz51rV0Ei+k7IDO5HDjzR+y+JjM6gThNwcCbntL2NUn7fru5fU17wYaOEQphUEGiRm9jNU2mBm1f6UoA9FWpVrQSpg1Wj48QaCCyTGlg+jyhqIGj3qRf77ZYf6e0ioCc07fKd40pU9ULWGRpT6sULheLKhvrvGDUvF0LF9toI/OcDh3v/pLYuOBsC1RHAgVUdN84KicC+PV3/XQXqQyF1RzeOEtAr+XS3T9ay0umBq+Q1kR+TFwOpg45+KAxQu6PV7iXuDUBorQg6AkRHYNEgECcB11IJl2KrVzE83RcU62bpVMMLQ4RELsWM/UsT8FTwkYcOn/+1pY/kCAhEQwAHVjRc6bVMAh+6SdV1NHd9Ti7EN5V5CodBoEigqU6pjVdNFl/f1uWpxjq+zkpdGoOyJgypg6XIsC1qAu3iwMrKQgk09whox7mugUWDQNwE0roqYRgc+4YDicyS6KxeXQg+YJGFMKA61ofneY82Her5sf1S4tAx1VHXIALM+Awyhqui/OIta1bUZce/JPpvdZUBepdHoLNVoqyk+LquZ7Vhhad05BVtYQKkDi7Mhj3RE2hrUarO8fTd6CmbOUI+P7lohJnSIVWaCejbAlIJl7bwuHxGT0kReF0363mpnzU4SnTW0tTcPkKqq321Zbhu7/6nviuPRmkQSI4A07/k2DPyDAIP7OreWPCCL8umzhmbeek4gTqJ3li3zFNbJcJKF2DvaOQrq9xLgtTBcklxXFQEWmWd2XqJlKS5RyAndXcGhtzTG43NIEAqYeV26JVVip/vzRedWS9fohB85QRTf8bJQt5740eP9fSmXlMUNJ4As0HjTeSOgPfd1rnbK3h6NYsGd7RG07kEljd7kho4Wc9q40pP6VUEaZUTGJTJ4wTFWysHxxmhEWiRVcEaHFwVLDSAFnekv3v0dxANAkkRcHVVwjB4D48rdfLiZGTW8Z5AjeaIzgqDq8V99Bcy3q6PHuz5tsU6IHqKCODASpEx06DKvj2dH1SB9xdp0AUdyiOg0wDX6CgrKb6+SWpare7ga6k8cgsfRergwmzYEx+BpkalmngcER9wg0Yan1DqMkkmBlnEPVH0nQSphLXbvSC+q7MSkaXTDF96raBe6ceZVTtVq3qQb3PvjgOHe/7VKqkRNtUEmCmm2rx2KidOrA+LE4vVLew0X1lSN0tUxpbOyQLsmyXKqiHLV1FZ4EodpO8lZ+DTN5v9UjxZrwJGg0CSBLTzSjuxaO4RwInuns1N1FgvIqEXk6CFR6BvRKkTFwrF2lknLgRKr3RISy2BQHnBTx84dP5/pVZDFLOSwIxpj5XyI3Q6CXj37er6356n3p9O9dzTSmypVrVPRljpSKu1EnGlt9HCJ6CjHnT0Aw0CSRPQ6YM6jZDmHoHRMaWGR93TG43NI0AqYXQ2mZBC8GckOuuF3oL6Tk9B9fOZjw52Aj3LbfpvPXS49zcTGJohIbAoAaaQi+JhZ1IE9u9d3zicH/6ijH9LUjIwbm0E6uXJ5/qpWlbbpAh7awNfN7URXfrsMXFcDZG2szQojoiFgC7grgu509wjMCIT2RFxYtEgkDQBfedBKmE8Vugb1qmGUjurN1Cn+pTK65Bwmp0EAu+TB470/JgIjxHttGCqpWZGmWrz2q3cL++9emUmn9MrE26yWxN3pNcF2LdJhNWWLl+tX+6pDAXYYzO+Thm8ROpgbLwZaGkCdeLAasOBtTSoFB6ho690FBYNAiYQIJUwfiuMyAO1E1Iz68RrgTouDq3LY/hB4rdC1SMeGWltv/0PP/si3+JVI+TEKAngwIqSLn3XTGDfntXXqSB/TDpaVnNndBA6gTqJslon6YAbJNJqe7evVrbwlRI65DI7JHWwTFAcFhsBJo2xoTZuIB0JqiNCaRAwhUCz1ONrZFGJRMyhA7F6BsSRJYXgj0uE1qvymjqdiZhi/qDarzj71v1ERvlv/N3Dr56ffzBbIGAGgdmXrBkyIQUEZhG4b0/XW71A/ZNszM7awZtECCyTmjabVvpqozitNsvfBqySiB1mDsqKXzNp8NoUAjoCs6PNFGmQI04Cg+LAmsCBFSdyxlqCgJ7wkEq4BKSYdg+NK/WiTjXUKxtKQfjRXEwDM8xSBC5mgsItv3vkwvNLHch+CCRJAAdWkvQZu2wC+/Z0/0d5XPNnZZ/AgaER8OVbolsKsG+TVQN1eqAuxk4B9tDw1twRqYM1I6SDiAj44sBahgMrIrpmdzs4JA4sJqVmG8lB6bLywK29xUHFDVZZr2J4ui9QJ3WqYU9enZfvDloiBMaV77/9wBOv/lsiozMoBCoggAOrAlgcmiyB+3d3/VeJdP3FZKVwY/QmqV2z8Spf6RUDdQH2xjq+Kky1PKmDploGufS3xvIOOLhIoP+yFHCWFcpoEDCNgF4ZVa+QSjOTgC4EX6ybJRFaL10IpBC8mXKmTCrJ6VQfPHCk969SphfqpJQAs9KUGjaNau1Xyh/a3fUpuWjfnUb9ktaps1U7q/xiPasNKzylI69oZhPQKTo6VYcGAVMJrMCBZappIpWrXxaUYOIZKWI6r5KAvrUhlbBKeDGfNi5O8FM6MkucWS9IuuHAqC7YRAubgFD9zYcP9/5W2P3SHwSiIsAUNSqy9BsJgf03Xd083JzT4a1viGQAhzqdLsC+VSKsrpMC7O2NfB3YZH6dOqijHAo8nbTJbM7Jurxd6sPy1eKc3fsGZO115prO2d0WhUkltMVSs+XslXue53vzxdpZL1+iEPxsOtW+Cz5x4PD598vZfGNXi5DzYifAbWXsyBmwVgK/unvl6pzyviLTorW19uXa+cubvWLxdV3PauNKT2WlRg3NTgKs8mWn3VyTWhdx18XcaW4RwIHllr1t1JZUQhutdkXmYYlAP/naZCH44z2BFILH/3KFTpmvAnV4pK39LX/42RfHyjyDwyBgBAEcWEaYASEqJfDAns7vLwTeITmvtdJzXTpepwGuWeYVa1lt7cqoLmilwvykDqbCjE4o0SHfOZmME6qi5BQBPY3s6wcHBMwmoCdApBKabaNypSvIl85ZicgqrmooTq1X+nFmzWOnkcye9b+Uz2Tf+LGD370w71g2QMBwArMvZcOFRTwIzCRw357Od3iB9xnZxvRoBpgWKU66WSKsdAH2zRJl1ZDlYz4Dj/UvSR203oROKdAmDiydrkxzh4D+jtIRWDQImE5Afze16VUJuU0y3VQVyXdpREkB+EKxGPwLUj9L19KizSLwWuAFtzx86PwLs7byBgKWEOAr2xJDIWZpAvfv6vqlwFMfK73Xja26vsyqdk9tmlo1cK1EXFFzJr22H5Ibs7Hx9OqHZuki0NqsVL2sakpzh4Au3q6LuNMgYAMBUgltsFL1Mk6I8+qMRGe90FtQ35F//XIP5XgblTnCmx861HvMcQ6obzEBHFgWGw/RJwns29P1R1J68Odc4lEvTw3XXyWrBkqk1TYpwt7awEfZBftP5KZWHSQ63gVzp0JHJoepMGNFSuRkwjggxZZpELCBgH7g165TnanVZ4O5apaxb1inGkrtrN5AnerTq6U6dUMVSLThBw4c6v3rmkHSAQQSJMCsN0H4DB0OgXvvVZkNr3b+g8SAvzOcHs3sRRdg3yZpgVu6fLV+ub7Z4uNrpqWikYrUwWi40mu0BJqblGqUtGaaOwR0xMMgDix3DJ4CTeuykkoo0aKkEqbAmBWoMCKF4E9IzawTrwXquDi0Lo+l25kl3qtfe/hwz0cqQMShEDCSADNgI82CUJUS2LdzZZvy/aNy3g2Vnmvq8bo2wzpdgF0irLZLAfYOmQjS3CVA6qC7trdZ86ZGpZoabNYA2SslMC6TwsvDlZ7F8RBIlgDRosnyT3p0/ZDw1QFxZJ3X/wrF13pbepr3/x043PMz6dEHTVwmgAPLZeunTPcH9q5aX8gVvixP0LptVW2ZOKk2rfTVRkkP3CLpgTpVkAaBYkTDkHBI1c0UdnWBgI6+0lFYNHcI6Bp92uFOg4BNBEgltMla0cs6JN9jL+pUQ3Fo6YLwo1LCwd7mPdF8ceVb9z/zDBVU7TUiks8ggANrBgxe2k9AIrF+UCKxnhBNdDC48U1nAXZLAfZiLStJD1zdwUfSeKPFLKB+AqjryejCyDQI2EagQRxYOrKB5g6BUZkiDePAcsfgKdKUVMIUGTNEVXSZrLNSCF47s4735NV5/UDRmhZ8xw/Gdz54pF8qftEgkA4CzJbTYUe0mEFg3+7O90ohg0dkk5ElOZtlRa4NUysGbuv2VGOWj+EM8/FyDgFSB+cA4a1VBPQKhHolwtebjiLkK+91HGl8MTKm1MhoGjVDJxcIkErogpVr01EXgi/WzZIIrRMXApUz9wHjBT8T3PLgwfMv1qYxZ0PALALcRpplD6QJicB9e7r/Hy8Ifjuk7mruprNVoqyk+PpWibJaK3WtdKg6DQJLEWDVwaUIsd90ArqWX5us8EVzh4COvtJRWDQI2EiAVEIbrZaczLrEw0ldBF6cWS9IhNbAqDG1HkYLvnrTR5/o/VJydBgZAtEQYBodDVd6NYDAvt1dfypi/GwSouhJ2wapY6VTA7eI06q9kY9aEnaweUx9CzQwSOqgzTZEdlktVb4LO3BgOXUpEDXqlLlTqWzR8d4iqnHrlkr7RqlUr5R8eL43X3RqnbwYKJ1+mEALgsD7iYeP9Hw8gbEZEgKRE+CrOXLEDJAUgQ/dpOo6mrs+Jxf5m+KQYXmzVyy+rp1WG1d6KmtkAmMcJBgjDAJMAsOgSB9JE8jI92BHW9JSMH6cBPQKhHolQhoEbCZAKqHN1jND9mH5Hjz52mQh+OM9gRSCj8ebJfOe+x863HvADApIAYHwCeDACp8pPRpE4BdvWbOiLjuuw2e3hi2WLsC+RtIBdVrgtu6M6tRP62gQCIFATkLSdeF2GgRsJ6DTcZa3264F8ldCYFAcWBM4sCpBxrEGEiCV0ECjWCySjsTqGdCphpPphq/Ka71IT9jN87w/f+hQz38Mu1/6g4BJBHBgmWQNZImEwAO7ujcWvODL0nlnrQO0yIpamyXCSjutNq30pQB7rT1yPgRmE9D3M6QOzmbCO7sJrNAOLO427DbiYtLrL60Z9h2QFbpyVi85v5iy7HOJAKmELlk7Xl0vSa3Aly5IEXipn/WC1M8alweXtTZxiR1sudj1tv3PPEMVwlphcr7RBGbcchgtJ8JBoCYC993WudsreP8inTRU0pF+AreqfbKW1TZxWunXehsNAlERoAByVGTpNykCOgKL782k6Mc/bj+1++KHzoiRESCVMDK0dDxFQBeCP3NJHFm9BfWc/NPOrUqbTE2eHcuM7/z9g5cuVXoux0PANgJMxW2zGPJWTWDfns4PqsD7i6U6aJJl3zdeJXWsdBH2Lk+1NvAxWYoZ+8MhUEwdlOgFFUFYeTgS0gsEKiewTGpg+dQErBycpWdcEgdWwdxl5S2lithJEdDOd70QBd9hSVnAvXH7hgP1vERlPd8bqFN9ejGfJW8KX83nM2/82LFXTrtHC41dJMDM3EWrO6yzOLE+LE6sX5uLQBdg1xFWW7p8tX65rJylC1zRIBAjAV0LQafe5EMII49RbIaCwJIEdBF3Xcyd5gaBvgHxwS8533KDBVqmg0CdlItoaxZduDVMh0Et0kKnFp6SNMPj4tA6Lg6ty2PzvlyHfd/f++ATr37VIrUQFQI1EeCruCZ8nGwhAW/fru5PKC94n14l8E1bM2rHKk91NPJRsNCWqRJ5eFSp0bFUqYQyECgSaJfohWwGGK4QuNjviqbo6RIBUgldsraZuupArHP94swSR9aRE8WnnQXZ9t6PHun9ezMlRioIREOAZ6LRcKVXcwkEzdmmD4p4X9qzKaNuXe/jvDLXVs5IplMHRym56Yy9XVM0IJ3MGZMTeeWMqZ1TVD9kIjXWObMbpbBODlkrq5/fvtVXna3yxlP7cF4ZZSKEiYkADqyYQDOMOQT2Hzw1mh1Xd994tcc6SeaYxVlJ9IRvSBfsnBcV7iwSFE8ZAS7tlBl0EXVwYC0Ch11WE+C32mrzpU74nRv8rx441Pux1CmGQhAog4BkddMg4B6BX72zbrV4b7n+3TO9cRrryCvqXhlnFgQKkQBOjRBhGt4VtjbcQIhXE4EJeew5NiHLWdfX1A0nQ6BmAjde7TfW3AkdQMBSAkRgWWo4xK6NgBeo99TWA2dDoHYC2nFF3avaOdKD2QSWXkDJbPmRrnwCOLDKZ8WRdhIgldBOu6VNalkd84bR3756W9r0Qh8IlEMAB1Y5lDgmfQQ87570KYVGNhHQaVWXh1mtyyabIWuVBMghrBKcfafhwLLPZkhcGQF9jZP2Xxkzjo6GQJDx746mZ3qFgNkEcGCZbR+ki4DA6Eeu2eqp4PoIuqZLCJRNYFQKwuYpbl02Lw60lwARWPbarlLJ8VVWSozjbSQwnUpoo+zInB4CQVAgmyQ95kSTCgjgwKoAFoemg4DcYL83HZqgha0EiqmDrDpoq/mQu0ICROVUCMziw7G1xcZD9IoIkEpYES4OjoSA94Mjv929IZKu6RQCBhPAgWWwcRAtGgJBQPpgNGTptVwCl2XVQSZ65dLiONsJcK3bbsHy5cfW5bPiSLsJ6GudVEK7bZgG6QM/e1ca9EAHCFRCAAdWJbQ41noCIx9efa24Dn7AekVQwFoCIzp1UIq30yDgCoF5Tg3yzFJr+nm2Tq2mKAYBpUgl5CowgABphAYYARHiJYADK17ejJYwgcDzdfF2L2ExGN5RArrm1Sipg45a31215/mr+AbDhv7IAABAAElEQVRO7cUwz9ap1RTFIDBJgFRCroSECdwy9NDaqxOWgeEhECsBHFix4maw5Al4rNiRvBGclWCIVQedtb3LihOV4471AxamcMfYaFokQCohF0LsBGY/KfDVRJ40wtiNwIBJEsCBlSR9xo6VwOXf6eqW9MFbYx2UwSAwRUCnDuZIHeR6cJAADix3jM6Kk+7YGk2vECCV8AoLXsVAYE4Us+d7pBHGgJ0hzCGAA8scWyBJxAQ8r04/ochEPAzdQ2AegWLq4Ni8zWyAgBMEtAMLJ5YTpkZJCDhLgFRCZ02fvOKBum1wf3dX8oIgAQTiIYADKx7OjGICgQKrD5pgBhdl0CsVzY74dpECOkMAAmknQARW2i2MfgsRKKYSSqQ1DQIJEMj4dXV3JjAuQ0IgEQI4sBLBzqBxE+jbv36Z5wV74x6X8SAwKpFXuRwcIOA2ARwbjtgfT70jhkbNUgQmJpQaY6GWUmjYFjEBPyiQRhgxY7o3hwAOLHNsgSQREmism9BPJuojHIKuITCPgE4dHCF1cB4XNjhIAMeGE0bHUemEmVFyEQKkEi4Ch12REQg8782Xfnfd8sgGoGMIGEQAB5ZBxkCU6AgEitUHo6NLzwsRKKYOMnFfCA/bHSLA4nQOGRtVIeAwgWIqoZQNoEEgZgJ1DUH+nTGPyXAQSIQADqxEsDNonASC/Vc3SwWit8Y5JmNBgNRBrgEIXCEQ4MG6AiOlr7SvnmL9KTUualVEoLgqIamEFTHj4NoJBAGrEdZOkR5sIIADywYrIWNNBEbqvXdIB+LEokEgHgIFnTpIMdd4YDOKFQRwbFhhptqEJNq0Nn6cnSoCpBKmypyWKBO8LXhoZZslwiImBKomgAOranScaA8BVh+0x1bpkJRVB9NhR7QIjwAOrPBYmtoT9a9MtQxyJUGAVMIkqDs/ZuNIruEO5ykAIPUEcGCl3sRuKxj8weYGuYn4EbcpoH2cBHTqoE4foEEAAlcI4MC6wiKtr7BxWi2LXtUSIJWwWnKcVwMBViOsAR6n2kEAB5YddkLKKgkMD47c7qmgvcrTOQ0CFREgdbAiXBzsEAGcG+k3NhmE6bcxGlZOgFTCyplxRk0E3jlZ+7emPjgZAkYTwIFltHkQrmYCAasP1syQDsojILM3UgfLQ8VR7hHAuZF+m1OoP/02RsPKCWjn/RA1MSsHxxnVEmgerlcsXFUtPc6zggAOLCvMhJDVEAg+qTKeF9xZzbmcA4FKCYxNkDpYKTOOd4fAvAgsPFqpM/48G6dOQxSCQHUEJuT+QN8j0CAQBwGP1QjjwMwYCRLAgZUgfIaOlsDo8WtukxE6ox2F3iGglE4d1GkCNAhAoDSBec4Nr/RxbLWXAD5Je22H5NETGB6ZvFeYNRIfmlk4eBMOAfl5fVewf0d9OL3RCwTMI4ADyzybIFFIBIIM6YMhoaSbxQjIDWgxdZAb0cUosc9xAqxQl/4LYJ6TMv0qoyEEyiagPx/zUglx5JfNjwPLJyCXWsdwXf+byz+DIyFgFwEcWHbZC2nLJCA3ClK7PXh3mYdzGASqJkDqYNXoONElAjh4U29tamCl3sQoWCMBUglrBMjp5RMIFKsRlk+LIy0jgAPLMoMhbnkERn7nmpvlyLXlHc1REKiOAKmD1XHjLPcIEIGVfpvjo0y/jdGwdgIlUwlr75YeIDCLgNQAvivYr7KzNvIGAikhgAMrJYZEjbkESB+cS4T34RMgdTB8pvSYTgLF9DI8HOk07pRWpBCm2rwoFxKBYiqh1MOiQSBiAleN1hVrAUc8DN1DIH4COLDiZ86IcRCQJw9xDMMY7hIYG2fVQXetj+bVEAio91INNmvOwT9pjakQNGECEzlWJUzYBK4MTxqhK5Z2TE8cWI4Z3AV1Lz94zY2i51YXdEXHZAjodChWHUyGPaPaS4AaSfbarqTkczxWRGCVpMRGCJQkQCphSSxsDJGAfEXfE3xSZULskq4gYAQBHFhGmAEhwiTg5UkfDJMnfc0nMHhZqVwuULoGFpO2+XzYAoFSBOb4O0odwjabCMyJqMNBaZPxkDUpAvqeQT8E0/cQA0N8KyZlB0fG7R59/upbHNEVNR0iQHE3h4ztiqqy/ODdruiKnvET6L9cUN/tyc8b2PM8Jf8V//l6Yqdf6z96uzwq0K/19uljvOJBU+/ldfFYfYw+Vh+nz506Rl7SIGA9gaKDg8dm1ttxIQWYii9Ehu02EgjEy6Sv6aLDST+smnodyIbigyvZMP1a7ys+0Jo+ZupcfZJ2VunjJ//pI2c338uq9lb9i0+DQPgEAt/TaYRHwu+ZHiGQHAEcWMmxZ+QICIz+7prNhULwvRF0TZcQKN6AXuovDWL6Rlbvne3emn/DWrqHBbZqZ5Z4tHwvmHSGFd9rB9cVh5l2eGmv1+xjppxi4jAo+gymz5Pj9PHFcxYYks0QiIJAcdIXRcf0aQQB7GuEGZwSougUEo21s0k7i7TLqSDF9rSzXL+edBrJa3mht8umye1T0dOvH6MdTrKvIL+rxb5ipHjxUqDaWiZ/l2MclqFcIRBIGmGgfknu+eQKp0EgHQRwYKXDjmgxRaAQFO7RU3saBKIgoJ0+KzrqVD4fqLFxuQOOo+kbbrn7mHSKzbz/mPm6OkGmHWPam6V105+c4t/piDDZUIwIm9pePE5HiMl7HRymj9XvZkaN6R3FzXoXDQIzCMT0iZkxIi/jJFD7N1Kc0jJWnAQWi2YqOpWmfuf0NVR0JBUdUJOvpx1Kxe3F46a26w2htyj6XFjIhnpfXbW8Tn5LZz/2WvgM9kCgYgLrRn5nzQ8pdfbJis/kBAgYSgAHlqGGQawqCQTFUNkqT+Y0CCxNoLk5r5ZNNKhLg2OznVj6vtcyz03RMVa8X5970z73/dJcZh1RdG6JY0tmJjoNcto5pl9MOr4mo8lef6/RFR1j+sQ5aZR605RTbNJhNmsk3thEoMbLyiZVXZO16EvAvlabfdKGOlJJ1JB/U0FN86KZtIcpPy+aSccyXXE46b50NJM+ttiv1WRCEl4DEiTTraEuozra61VzI86raSb8jYiApx/uKxxYEeGl2/gJ4MCKnzkjRkRg+MNrrpG7JXnKQINAdAQy4miprw/UsrY5TqwZN6bRjW5Jz3Kj/nrUWHE2NC23voOfbjNfT29b+m/RiSX/07iLKZMznFs6oqzoAHv974y0Szl+uh6ZHiWjO9CHF/9NOtn0dlp0BGZdCtENQ88JEMBJER/0ImvtGJIhdarcXEfTtPOp6DySYwoFyR16/fgrDiUptyCH6n26D/lfdV/JiygeeoeLjGXBLv2bM9Xq6/yi86qhrqAyGThNc+FvVAT890nPD0TVO/1CIG4COLDiJs54URLQhQpn3CJEORR9u0ygqSmvxieyk06sgXE1NsET1LiuBz3Pen1ipgeVdM4rbebrK1vLfTXTmaXLRfg6XExacfvrjjKdMqmnfZM7iofIG+1Sm1WsfyrVkpRKDWqq1Wae6V74ayABTDvfKEWfkPxv8jvryldVsT6T3i6nTB8zXZ9p2pFUdDjJAcVjxNFUrOukjw/dC4zl5lsu2i3aebWsvaH4e9HUBP9oadP7JIFgw+UHr7mx9YFzT0MEAmkggAMrDVZEh0kCvqw+yL0AV0MMBHQUVoNEYY2Ne2pZR726pJ1Y4zixYkAf6RDTk8nXBwnJOaYdYNoLNvVH/objHLNtlcrQ596vG4oXSRMorjCZtBBVjD/pXJpyJhHNVAVBTqmEwOvOK/kxKEZfycMQGgQiIaAvLX3TMdWkzJp+yI8DaxoIf60mgAPLavMh/DSBgf1Xr5Q54a7p9/yFQNQEGqVuxdj45FdoR5t2Yo1JVBZlqqPmbmP/MyfJr8sfgXMsrJRKXZR/1p3v60LX9qLIobYuONtQAlHbVvc/HZWkH1RNf3yIZjL0gkCseQTqptIGJyN9lWps5H5hHiQ2hEdghvNqstNijeDfCG8AeoJAcgRwYCXHnpFDJJCp9yX6KuB6DpEpXS1OYDIKqyBOLL+YYqZTAnBiLc6MveETmOkcK06Hpmf2xaFqe7o/OdGarA8WRtSYrsVDSycBfaXNvBZDq80USdhebZ+LdFoQraIkoJ1Xy6Rgu18Mx5U6mnWB0vcQNAjERUB+w68f++3V1zX8+ivfiWtMxoFAVASY8EdFln5jJeAHwd3cksaKnMGEQFNjoMbHJ+uU6PtSnFhcFmkiMB318rpONTrHmho91d4647ZDf2nj03odr80vhkcKqvdCmGnU/KLbfD0g+xUCdVlfLRfnVXGREdmsv/KaiL66AohXsREo+L5ejfB3YhuQgSAQEQH8/xGBpdv4CAT7V7TLre6b4huRkSAwSUAX865vuJIGoJ1YellsXeeCBgEIzCFQDNGZsQ3n1QwYdr/0JvNO7VYC6SEQMoGi80rqZE47r3T3DQ26BiIO2pBR010ZBOQnWNfBokHAegLMsqw3IQqM1jW/Uyg0QAICSRBoEgfWzHm4ThHQTiydMkCDAARmEPAzM97wMk0EJJE6TeqgCwRqJpCVyKtlHbLa4FTaoO5Qf0oaG8KMVKxZTDpwiYCnvn/0d9dtdElldE0nAWZY6bSrU1rJ+kE6JJYGgUQI6MAD/UR1ZtNOLF3vQj99pUEAApMEMjMmcjCBAAQg8P+z9yZQspzVnecXEblWVdby9lV6SICEBAYkbBYBEosAGYQWwHNmfDynZ7p7+rS39vhM2213e06NQRvYxt1uHx+758yZ6Rl7elC3ASEJxGphs9mA3RiMhBaepLfobfVerVlVucTcG1X5Kisrl1i+iPiW/6fzVFmZEd937+9+FRnfjXvvZyqBQsERM+S8cnv8umVKHUSwoqlW10OvdruJKCw9TAUphxDA6moIHHykPgF/9tAYSfke9SWFhCYT4CeqPfepQbHWGUodgBPLZMtDtygEPFq5bXf1Rjkbx6pMwBF0O9l7EVRZYMgGAikRKFB19hna1KXXecV/HtWeh10piYBuQWAIgWA3wiGf4yMQUJ8AHFjq2wgSDiFQL7nsvBofcgg+AoHUCWxEYW3VwuoMyKkD7MTip7FoIGA7Af474N3p0MwjwI7JgofrnHmWhUZRCHjsvJqm3QZ7vVfUSYWirxwHLvwoPHFsKgR+qn7/oStS6RmdgkBGBODAygg0hkmJAO0+mFLP6BYEIhHgXYX63ZyyE2sXpRIgEisSThxsGgHybXBkgo8wHdMsG+jTpnU52xcNBGwl4JEDdxc9sOISAr2N36p0bfjS+zl+B4EMCTh+070zw/EwFAhIJ4C7DelI0WFWBPw/vrFIY703q/EwDggMI7Bxg9r/6WoQiYWaWMPw4TPDCQTODVrE9W5EaLja1qjHdi3CgWWNvaHodgIeRVwFNa/6RF7xkey86uPX2t4JfgOBrAg4bdTByoo1xkmFABxYqWBFp1kQWJ478w4aZyaLsTAGCIQhMOwm1aEbWy7sjnTCMCRxjGkEOvMeKYSmWXZDH7/tiEJxZ+SJmdpCKxDYIsCRV+y8YidWvzbs4Va/4/EeCKRPwHnz8j1XHkx/HIwAAukQgAMrHa7oNQMCXquN3Qcz4IwhwhMYlSbAdTG4uKuHmljhoeJIIwh00ss41QzNLAJsUv7XsbFZ2kEbEBhMoBN5xU6sQW1QeYFBx+N9EMiAAOXzN+/IYBwMAQKpEIADKxWs6DRtAv6scOmG+fa0x0H/IBCVwKhCrezE2kVOLBQ8jkoWx+tMoFMDDimEOluxv+ydqDq+tvUrXt3/LLwLAnoTCB5IDYm8Yu0GbfCit+aQ3ggCrkAaoRGGtFMJOLDstLv2Wq+WjryFCgoc0F4RKGAcAX4Oy06sYY1vfKfpxhdOrGGU8JlJBDpz3fcHRyqYpK9NunQH1XXsbJP+0NU+AhuRVyUxLPKKqVS59pV9eKCxBgRoQ8xbFmYP7dFAVIgIAjsIwIG1Awne0IGAj90HdTCTtTJWSrTX2ojtsvkGeMOJhcuwtRPFEsV5V65OZA4isMwzOte/6jSkEXZI4KepBLYeQA3/7nYpT6BUGv4wy1RG0EsLAoViCZksWlgKQu4gMPzqu+NwvAEC+ROgBRDfLd+VvySQAAT6E+BaWNVKd1xC/+PCPsXtfzbeBQE9CBSKW7cacGDpYbMoUnZH1XWK9Uc5H8eCgC4EOjWvwkQaVsv8IEsXzSCnlQR8B2mEVhpef6W37ir11wUaWEJg5f6jryNVr7BEXaipKYEypQ5w/YtRbaOOxuhUhFH94HMQUJVAt1MDRdxVtVJ8ubpt2ql1Fr83nAkCahLYirwa7ZXy6Luf7wHQQEBlAvSY9Z1z9181pbKMkA0E+hEIsbzqdxreA4H8CDitFnYfzA8/Rg5JgG9xefehMM0jT1ewOyGlFaKBgGkEirya6zTUwOqQMOZnp4g7K+SRrXEVM8a0UGSTgEOhVNOTpdB1KyvVFtiBgA4EytXW+nt1EBQygkA3ga67yu638RoEFCbgOEgfVNg8EG2LQKnIUVijUwn5DC4GO8M7Gg3ZjnurZ7wCAX0IFApbtxrtrnpJ+mgASYcR6E4L5ZQpdmKhgYApBNh5tWuqJMJGFwbRV8Vw3/umMIIe+hLwhY80Qn3NZ63kuMuw1vR6Kr54z9FXkuTX6Ck9pLaNAC/muA5G2AYnVlhSOE4nAt1O2fB/DTppaLesvXGmYeoD2U0M2utCYMN5RTsGdznhR8leRfTVKET4XC0C7/E/tn9cLZEgDQgMJwAH1nA++FQxAgUH6YOKmQTijCBQpl2IvJBRWNxVUCR2snx517YR3eNjEFCaAEctdKeUdaebKS04hAtNoHsXQj4pymI/9CA4EAQyJsC7p85Q5FV3Db9RInD0VQnRV6Mw4XO1CIzVG4Xb1BIJ0oDAcAJwYA3ng08VI0C7HSF9UDGbQJwRBGj1XglZC6vTE0escMoCF41FAwGdCfQ6MzgCC1FYOlt0p+zdKYT8aa/Nd56Bd0BAbQIcPT09VQydNtjRZgzRVx0U+KkTAV8gjVAne0FWAQcWJoE2BOof3v8SEvY12ggMQUFgk0CZnshGicLi07iOTODE4jtpNBDQlEDf6AUUctfUmv3F7t6FkI9ACmF/TnhXDwKB84qioIsFL5LAhYKgc+CejwQNB6tC4H3+7LGKKsJADhAYRQAOrFGE8LkyBHzX+6AywkAQEIhCgHxQYXck7O6WnVgz0xSJBSdWNxa81ohAsc+mBO3eokka6QNRdxLojcDiCFKuHYQGAroR6DivSsXoy6NqhXYexLTXzeSQd4PAxEph/VbAAAFdCES/QuuiGeQ0kADSBw00qjUqcV0Mz4v+dLbQcWIhndCauWKSop63M4qh1+Fhkr426tJbA4sZFAtYyds4F3TWOXBe1cpUwyr60qhA3+2IvtLZ+pCdvK9II8Q00IZA9Ku0NqpBUJMILH302AHS5/Um6QRdLCNA67mxSnQHFlMKnFiTHIllGTOoqzUBjsRx+9xlwIGltVm3Cc9XtH5XNdTB2oYJv6hOgL5bp+g7tlTqc8EKIXu1irDSEJhwiMIEyIF7hz97fUlhESEaCFwmEO9Kffl0vACBbAg4jXV+MoD5mg1ujJISgWKxTQWO+y33Rg/IC8KZKd6dcPSxOAIEVCAwqBaSjzwbFcwjRYZBu0oOsr2UQdEJCMgkQM6raYq8Khd3RouGGaZI0dWIvgpDCscoTmB6rXzxFsVlhHggEBDAUggTQQsCVFEDuw9qYSkIOYpAtRz/SW3gxKLisojEGkUZn6tAYFAUDiKwVLCOHBkGueM5ahQNBNQn4Gw4r2JGXrF+Sb7T1ecDCW0iQOngSCO0yeAa64o7DI2NZ4voC/ce3k263myLvtDTbAJJn9ayU2B6Gk4ss2eJGdoNcmKgiLsZ9mUt+tW/4vc91MBiDGgKE+CM/KlaUZQTOK+SRFUrjAaiWUqAHkjc7c8K2k8TDQTUJgAHltr2gXREoOj7d9APXFAxG4whEGdHwm7lixTdME3phA5Csbqx4LViBAYV8kYElmKGSiCO7/cvzMc7p3INNDQQUJEAz8zJWklUyvHSBgOdqJO4dS1VZAKZQIAI7Fn1jrwZJEBAdQJwYKluIcgn6AYZ6YOYB0YR4DpYSWtmFLkmFt2A80IRDQRUI8DT0huQRjYo7Uw1HSDPaALtIcbkaxQaCKhGQIrzipQqFdqxdhZWjQfkAYFuAr4nkEbYDQSvlSSAuwslzQKhOgT82b0TVO/3nZ3f8RMETCEgY9eiIm33PR3sTggnlinzwhQ9BqUPsn6D0s5M0d0mPQYVcWcGKORu00zQR9fJiYSRV6wqfeVWq0O8t/rggKQgsJ1Au/1BSiOEf2A7FfymGAFMUMUMAnG2E6gXi++jdyrb38VvIKA/gYJHUVi0e1HSxk4s3v4bkVhJSeJ8mQQKQ2ogIYVQJul8+xpmy0FF/POVGKPbTCBwXlUSpA1uwivTjsKem/z722ZbQHdFCTjOgXrp8OsVlQ5igUBAAA4sTAS1CTjO3WoLCOlAID6BMd6RUELwVGnTiYVswvi2wJlyCQyLwBqWdiZXCvSWNoFhe6oiAitt+ug/CoHJiaKoSnBe8fdspTJs5keRCseCgIIEfKQRKmgViNRFAA6sLhh4qRYBf/ZYRfjiPWpJBWlAQB4BL6iFJedGmJ1Y05NU2F2CQ0yehujJVgLDom+GRe3YyktXvYelg3INNFyPdLWsWXLXxtl5JWcvoFKJo6/M4gNtQKCHwAfoexp3kz1Q8Ks6BHAJVscWkKSHwEph/d30Vq3nbfwKAkYRGJP4JBdOLKOmhtbKIIVQa/OFFn6UM3JYJF7oQXAgCCQgwM6rsaoc5xU7ZKtlpA4mMAdO1YPAsZX7D96gh6iQ0kYCcGDZaHVtdMbug9qYCoLGJuBROY6ShFpYHQGCdMIaIrE6PPAzewKe5wytyYYHu9nbJK0RR6WDDnNkpiUT+gWBDoEJic4r7rNc8oWL2lcdvPhpMoG2i90ITbav5rrBgaW5AU0V3//jG4v0pOt2U/WDXiDQTaAqMQqL+y2XNgq7I32nmzJeZ0VgZNQNBTCMitzJSlaMk4zAKDsWkWuVDDDOjk1gYrwgxiVFXrEQ/H1aKbdiy4MTQUAnAjTdP6iTvJDVLgJwYNllb220XTt/+hYSdpc2AkNQEEhAwKMdCfnJrsxWLnpiulaS2SX6AoFQBIbVv+p0MCpyp3McfqpNwPeHl0lBBJba9jNVuomxIjmvilLVqwTRV1K7RGcgoDKBly3ec/SVKgsI2ewlAAeWvbZXWnNKMcHug0pbCMLJJlCpyH+yWyp5YmYKTizZtkJ/wwmE2X1uVOTO8BHwqQoE2OU+yo5hnJkq6AIZzCEwTmmD42Nyal51qLCbFjsPdmjgpy0ECqKFNEJbjK2ZnnBgaWYwG8T1ZwVXGLjDBl2hIwh0CHCmTbksZ0fCTp/8s8SRWJPsxBoeKdF9Dl6DQBICRdoRc1QbFbkz6nx8nj8BP8TlyqG8K8/FtSd/a9khwQQ5riYkpg12qLHzynHkRkl3+sZPEFCWgOPAgaWscewWbPRdpt18oH0OBFYLh95Ewx7MYWgMCQK5EuDdjdKoW1WmSKzpGqdTYCGZq4EtGNwN6bAI4/ywAJfWKoZdzo+siaY1BQivCgGudzVOqYOy20btqxDeWtkDoz8QyJkARdi+avXDh67JWQwMDwI7CMCBtQMJ3sibgO9i98G8bYDx8yHAuxuVSuncKJfLG04suLDysa0to4ateYQILP1nhN8OdzUphIjI058GNMiTwBg5r3jHwTRahSKj03iwlIas6BMEZBOgNRlKusiGiv4SE4ADKzFCdCCdgC/ulN4nOgQBTQhUU7xZZifWJBV2D7fs1AQYxFSKQNhoGxRxV8pssYQJ64QMUxMtlgA4CQSIwFilIGopOa82oq/CxhrCHCBgHgHKC0AaoXlm1V4jOLC0N6FZCizfc+gG0ugqs7SCNiAQnoBLV+VySlFYLEWFnVhUEwtOrPA2wZHhCYQt2o0lYXimqh4Z1glZ5AJ/aCCQAoHAeTWRTuQVi1tF7asUrIYu9SLg37h63xVYl+llNOOlxV2F8SbWTUGEqupmMcgrn0C1Qs+85Hd7uccK1cSqpXjTf3kgvLCOQOgUwpDpZ9YB1EjhsHXM3IKDFCyN7KqLqNVKut9jwcOkFDZW0YUv5ASBDoF2q4XMmA4M/FSCABxYSpgBQnQRQK51Fwy8tJMA73ZUoYLuabYqpV1MBoXd0xwFfdtGIGwKIRWHRdOcQFgbsjO+wN4ANBCQRCD4/prg3XXTa0H0VXrdo2cQ0IeAI5BGqI+1rJAUdxRWmFkPJVfvPfxyutF9hR7SQkoQSJdApdJKfdvuapmcWIjESteQqfSupvfHo1SxsMWOwzo/UsGHTqUQiLLdBAq5S0GOTohAFt9bwYYqxSgzHKYBAaMJvHHlgcNHjNYQymlFAA4srcxltrC0oPmQ2RpCOxAITyCr4rEbkVjpPskOrzWODEcgzQTTcBL0O6pIqWJhG5aGYUmpe1zYXQhZA88LPzfU1RiS5U2AazjWMogcDtL4MWXzNjfGV4eA4zf9O9QRB5LYTgAOLNtngEL6U0wB0gcVsgdEyZ9AVtt3V7mwe8rpGPnT1FeC5ZYnaCN35RUIW8A9UAQ1sJS35ygBo0TRFQt63G4uNguj1MbnOREINiDZsYuu/GhU3nMgzY1UcsKHYUEgEQGqZIg0wkQEcbJMAnrcUcjUGH0pSaB+34FjJNhrlRQOQoFATgQ2orCyiVVJuyBuTgi1HvZioygePHtA/OKT14tvzU8rr0vY+lesSNgd7JRX2mIBo9iwoEEE1lrbFb/y1CvE//rsy8R3FiaFfNeIxZMloepl2nhkcofzijuV79ivVFsJpcXpIGAkgbcuzu7fZ6RmUEo7AnjUpJ3JzBTYb3l3032I/DsRM3FBK4sIVGgb79U1R/h++n8evCU5t8WlhkWE1VP1eL0qHrmwT/zVpRnR2rT7J8/uF2+Yuqj0RbIQ4Y4iSvSOehaCREwgig1d1xH8rx3F65Ux5scu7BUcgfVEc0I8sTwhrqzUxbt3nxM3z8yJIm2sgZYPgTJFCE9nkDbI2gXRV0XYOh9LY1TFCXhuqchphP9BcTkhngUEItxuWkADKuZHwBF35Tc4RgYBdQmw24rrcazU03dgMYXAiUX374vLcGJlPSueXBkXn6KIq+8u7oz+OL5aFd+j919dW8harFDjORQu6EXcaY4dIGGLvocSAgdlSiCqU71I3oG1tprRLQ1KaX2EHFjd7Tn6m/uTk1eIT5w5KG7ddV7ctue8mPCa3YfgdcoESkV2XmVXo7GK6KuULYrudSbg+m1OI4QDS2cjGiJ7NisiQ2BBjXQILN2zb78riiepdy+dEdArCOhNgJ8Hzy8UKHohOz1W6k04sTLA3aQIq6/Pz4hPn9svXlitDB3xuvFFMXvV00OPyevDUtEVM1PlSMNPT7YoKgfRDpGgKXIwW+3ipWjPQJfIKb5M1xUV2+cv7BH/+6mjQ0WruC3xdorGet/eM2JPEQ7+obAkfFiitMGZyeycV57ni6kJcrBiZSTBeujCUAKNRsM5MDV7Ys5Q/aCWJgSi3X1oohTE1IuA4xfvohuGLecV3xnjBkIvI0LaVAnwn0Ol3KIorK0/k1QHpM7HqoWgBgwvOtHkE1hte+Irc7vFQ+f3iguNcIu0f1iuCY7SumZsWb5ACXssRNiBsDOUzw5ZVOLs4NDqZ2C7iBJHKvIfse8kh/MGCQ9Tyu6oxn+zj1KU1mNze8RPTl4S7997Vry0ujLqNHweg0CZIq+mMoy8YhHHKF0f954xjIVTbCJQLBX995HC/9EmpaGregTgwFLPJvZJ5PTsPgjnlX1zABqPJFAu+VQLy6corOz+QMbJicUNTqyR5gl9ABdm/+LF3eLR8/sE7y4YtXGk1q9d+WzU01I/PkoB944w7L+KTqBzNn7mSSBO3Jyqhdy51tyLa+GjB7ku3TcpapL/XTu+JO7Yc0bcMLkA34ekCcnRnFMUeZVlejHX7ysW4sxqSUqjGxDQhAD9lXAaIRxYmtjLVDHhwDLVsprodXH22LQjGjdrIi7EBIHcCPDNfLXsUwpOdg4sVjZwYlGxoqUVNVN/cjNIxIH7FWaP2EVw+HcWpoJUw6OV1Tinp3ZOnOiaKEXAUxMcHcciEMeRvjFH+PqljqOAJWGncNzGxd63FXyfpoLvSIuNi1Ow82p6spyp84qFrVaQOhjbaDjRNgLv9md3TTqzc2oW5LTNGpbqi+B9Sw2vitqVUoN3tAiXP6OK0JADBHIiUCq1g12Ssh5+fKwoxsfwvCMOd075e+D41eLXn75WPH5x1+VdBeP0xeckXXDHHXfYeeySiBOBBQfWMKqKfxZzV9SCYiF3f70wPbL2XBhLdAq+/8KT14sHzxwQSy1cL8Nw6z4mL+dVgSKvEH3VbQm8BoGhBMr1YuWnhx6BD0EgZQL4hk0ZMLofToB2MaLdB9V5GjtcWnwKAvkS4CisCtXpWF7J/tnDBDmx+E9V1SLM+Vpm++icYvQ3tDD+9Ll94pn62PYPJfz2V5S69DMHTot9xXUJvSXvwqX6V3HSfTZ2scP1P7kFsu+hHdNsHIXVbKmzE+Gnz8aPvupH/VKzKB48e1B8hlKEueD77VTwfTcKvvdDte29Yg5pgx0Bqlz7Cg0EQCACAYfTCP9ThBNwKAhIJZBtLopU0dGZ7gT82b0T9WLpLOlR1V0XyA8CmRGgheP8kidarXwu35xKuLyCwu797B2nMHu/fsK8957d58T/eOhEmENTP6ZSjldwuVpui2oVi8fUDZTCAKurrlihf1Hbcr1BNfXUSEf+3mJNfOT4S6OqEOl4z/FR8H0EMXZeTVPNKzeOF3xE36M+LhZ9URtXx6E6Sl58DgKKEFiplpr7nH95Rr0dZRQBBDHSJYAIrHT5ovchBOqF0m30MZxXQxjhIxDYQYCjsGjhv7ySTy7OBKUS+vTfCmpiXTYNR118gXYUjFuY/XJHEV58iXZCu3vfGTFdyN+ZGKf+FasaN4onAiYcmhKBuOmfcVJNU1JB/Pm5A2l1fblfFHy/jKLvi6LnihnabdDJwXnFArETHQ0EQCAygbH6WvFddNYnI5+JE0BAAgE4sCRARBcxCfTuPhizG5wGArYR6OxImFcUVo3SCSmwwPp0wufqVfHwhX2CdzHjhWqWrUHjffb8XvHfHjiV5bB9xyp68XSPmYXWVwa8mS2BuMv+IqUQqtCeXhkT/0AF2LNsnYLvxyp18b69Z8VNUxcFR2jZ2tjxPT2VfcH2Du9isS24/hUaCIBADAJum9MI4cCKgQ6nJCcQ764z+bjowXIC/r97aXllcfWsI/xJy1FAfRCIRWC94VAqTj5RWB2BF5cbYqWuRjpQR6YsfnJh9k+dPSC+uziZawW/qtsSf3TtD8SYl28KzN5dFeG60W8nuHBybSJf2bOYLyaOwdcevgbFaefm6qId1wMWZ8A+5/DGCt+hv988G0dP3rrrvPjpPefEeM5/w1lzYOfVDO026Oblz6SpO0XXHs+DAytr22M8YwgsVhvFfc7scbW2RDYGLxQZRgARWMPo4LPUCKws1W+l+4d87x5T0w4dg0D6BEq0+C/QFbyZo/+oNk6F3anZ4MTqFGZ/iAqzP51CYfY4M6be9ih1cY+4gwpF59XYcRXHecXyxk1Dy0tXjLtFIIntOI1wPUcPFkdOsvM572ZrwfcCbfowQ5FXMXze0kxWougrOK+k4URHdhKorZSabyfVH7VTfWidJwE4sPKkb/PY2H3QZutDdxkEyANcLbfEYjPfKKzAiUUPsVdWc/SkyeA5oI8sC7MPEGHo2w9TGuFtFMFRcvIJaSnETB9kpZI4QYZCwYepE0hSvyxwYDXyma8M5pNU+0qluBu+xjx6Ya94jJzRb56+KG7fc1ZcQWmGJja2/UxQsD1H7fi7s6LSDMiRBYYGgSQEfMFphHBgJWGIc2MRoMs4GghkS8D/hPDqTx0+TaPuzXZkjAYC5hFYWPRoW/r8L+ULSw1RN8iJ1SnMznWmllpqP+v5J4deEO/afT6XyT1eLYiJzUi8qAJw3eaZKTMdn1FZ6Hb8pQWP0gDjXXfqqy2xsLSei8pn1sviXzz5CtEW8WTPSuhrx5fEHXvOiBsmFxSXNDwRj5xXu6bz2W2wW8pyqS3Gx/JzoHbLgtcgoDmBC9XGyQPOrMAXueaG1E18te/KdaMJeUMRWH3y8M3ChfMqFCwcBAIjCPCT5MXl/BdjkxOcTuiTE0vvmkacXvTY3F7x+MVdggul69AeOr9fvHPXBUrJyT6qIMmuckEEFousB2YdpkJmMvoJ/jY4hSyv9slz+5V3XjEb0wq+exSpuWsqf+cVO80rFTiv8vr7w7jGEdi95h26RYhTXzROMyikNAE4sJQ2j5nC+a5zNy900UAABJIT4J2UirQgbDTzWxR2tJicKNFf9rpY1dCJpUph9g7LKD/PrpfE1+eng/SjKOfJODapM8In7xVt5iFDFPSREQG2VpL0T3Z68tUqa6tfaJTEV8kxrVM7vloV//6FK8WfvnhIvHNGz4LvHhW7Cmpe5Vn0atPoQe2rvArH6zTxICsIhCRAazpOI4QDKyQvHCaHAC7jcjiil5AE6KaX7lv9O0IejsNAAARCEKhW1XmizE6sSjnfulwhkAWHcGH2b87PiN98+hrxW8+8PNiVLOtFdVhZRx33aYosyVx2uponicBinZI4QkYxwefpEPATXm44CobTybJun6ENGJoJIseylrd7vIuNonjw7EHx809cL/7PU0cEO+N0aBx5xc4rdmLl3XjeofZV3lbA+KYRoPuOu7g0jGl6QR+1CSACS237GCdd/b7DbyCljhinGBQCgRwJFGgr8CLtSqhCFBYvUyZrvLiiSKw1NdMJO4XZP3N+nzhPC0MT2nMUqfF3i1PitbX5zNQJnFcJ16VwYGVmLmkDyXCUcuReM8PLw1LLE1++tFsag7w64p1HueD756ng+01U8P39VCfraEXNXeyDyKtJcl4l2OhBJudyyacdU2XMXplSoS8Q0J7A/tWnD75JiNN/qb0mUEAbAnBgaWMqQwTF7oOGGBJq5E6A78O7nAfVSks0lumSrsD9uapOLJ0Ks8eZX//57P6MHVhdEzCOwHQO72aHR7cx4eV0Wtzi7d3iegWKwMrQwf0w1YlbbWUf9dWts8zXHEnGdfr4n4oF393NtEFVnFdB7SvatRcNBEBAPgHfdzmNEA4s+WjR4wACcGANAIO30yLgU/0rNBAAgcQEenwHBbqaB1FYjZ4PEg8UrwOWYqpWDFLE1tbzXTg8T9FJn6OoBZ0Ks8eh/tTKeFD8mRe0WbQCOyGStiClSwGva1I9bDpfQhpeMcOoHI5aeuzCHmMt1Fvw/c1TF3PZ0KEDmJ1XXLBdFecVy1UJoq86EuInCICAZAIfoGjq/5kcxfgylwwW3fUnoMZKp79seNcwAkv3H3612xJ/Z5haUAcElCHQajlifoniWZS6hfDFpYWGyMOJpXNh9riT6obJefGvrnw27umRzuPaNqViMicWb2fP29qj6UNgbd0VyyvJ7N6i0Lvzc9mkvn3q3AHxZy8e1AdwQkn3ltbFrbvOB//GvWwfHmxEXpUS18ZLiGDb6Q7tzjo92RIchYUGAiCQEgHHecPYb574Vkq9o1sQ2EYAEVjbcOCXNAk4Tdp9MIdt3tPUCX2DgEoEPKqFVaJaWOuKRGFtsHHENNXEurS4Rk6s9B0VbYoO+dvFmvgv5w6Kp1fGVDJPJrJ8d2FKHK+PiWPVldTHK8iIolHK2Zo6MkMGSG40ro/kkkehnXIRtAZdDz5rcPRVvwl1jnYl/TPatfCTlFL8tpk5cfves2J3cb3foVLfCyKvFKp51VGuUqbdg+C86uDATxBIh4AvOI0QDqx06KLXHgLJHqH1dIZfQWAYAddB+uAwPvgMBGQQqFazfeIeSmZaPEzXyhRpk95XDte3+SwVZf/FJ68XDzx3tZXOq44tHiIOaTderPI/NAsJJPdfBdC4kHva7YuUOsw7+NnYOgXff+nJ68QfnrhSvLBaSQ1DEHnFzqsMbBpFCXZcVcrpPziJIhOOBQFDCXzQUL2gloIE0r97UFBpiJQ9gdUPH3lZ2/V/lP3IGBEE7COwROk965Tmk2/jVW7PVwy9dWlhXaw15DnZ5puFYEcudl7xTmNoQriUQ/r7L/+hOFBeSw1HqeiJGapzk7SNj7XIsSnJI5JUGJwfisDaukMphMn/1haXGmJltRlqzDgHtSj66pd/dJ3giCS0DQKdgu83Ti5IQ+KQl4ivBUUZNfGkSbXRUbXaFlU4sCRTRXcg0J8AuYpfO/GvT6JUTH88eFciAaQQSoSJrgYT8D0KLcUaZTAgfAICEglUK20FHFg9zivWj96apoVO4MRKWNjdlsLscaZFm0A/fGGf+CeHXohzeqhzVFyshhIcB0kg0OdvO0avaUfrPH5pF5xXPXaRXfCdnVdcsF3Khg49sib9NYi+gnM8KUacDwKhCVCVGE4jhAMrNDEcGJdA3o/o48qN8zQj4PtIH9TMZBBXYwIeXdlVjmqZoppYpZjphFyY/YHjV4t/+dS14otzuwXXuEHbSeArF3enmjolLf0LDzZ2Gk/1dyTZrMAXqpQa18J76Fz6qbQpiZ96t8dpZ9Z//8KV4pcpvfBT5/aLlRjRq53IKxWdVwyQH+RwAXc0EACBbAiQ0/hD2YyEUWwngDt/22dABvqvPHD4iGiK52kozLcMeGMIEGAC7TbtSLjgKRv4yLWbLy2sUcH50fVJbC/MHndG37n3jPjvDpyKe/rQ83bPVGinseSXdKQQDsWs5IcydiFkxbiA+7kL6exE+I35GfHx548pyU9Foaq0RXSUgu9cgJ+jaVWNxHTJNzo12cRNp4qTDTIZTcBrt68r/9bpHxqtJJTLnQBSCHM3gQUCNB0KKUWYhAWWhooKEXBd2pGQdl9aW0vuZEhDLV5g7N1N6YTzDbFc718Ta7XtiS/N7RKPnN8vzltaiDkJ+8do97U7yIk17vXnG7dvTs3xJDiv4o6P83ImICmohZ0gvBthqy2pw00s3NsnEX0VaZJ0Cr5/4eIe8ZZp2rlw9xlxuNK/hl6Byp/t2V2kWntsu0jDZHZwEH2V2WgYCARAoEOg7bmcRviRzu/4CQJpEIADKw2q6LOHgH9Xzxv4FQRAIAMCXLx2fZ2isOSuDxNLzmkdU7U27WLni8kJKjjfcMXiclss078VCsiYWy+Iz9LuYV+Y2yOWY6S2JBbQkA54Ufp5YngXObFkNk79kuYWDZ5tKDZBZcIysS9pxhdB7aRWwnp4vYj/bnFKHK+P9b6N30MQaFDk7pcpNfsr9O+G2oK4fe9Zcd34IqV8O2JijP+5Yox+OkFsb4uu265o0PVbpRY8vCkq6llTCRRkAYEUCND9JhxYKXBFl9sJqPWts102/GYAgYXZQ3tIjZsMUAUqgIB2BFS9kS/QoxOWrdNKtMv97mlXXHG4II5dWRTLU5PCHyuLcmHrmM6x+BmNwKO0O+O6L/erXtWaN9HI4Oi4BKimZdxTd5xXTCGSD9FXOzBHfqPo+aJcdUV9fFxMHxoTV19REPv3eGI8cF5tdVcuypsLW70me1Wt+FT7KlkfOBsEQCA2gdes3nfkpbHPxokgEIIAIrBCQMIh8Ql4JfcuCv/APIuPEGeCQCICnR0JlVpmDBGmQk6rWw8tBP+49tUTlyriG+fGxVdfrIm/nRtXLposkXEyOHm+WQiiKd69+5y00aQW38ZCU5pddOxItjP0h8sTgnfaQ4tOYKbcFG/ZvyRuPrAo3rRvUUyEiGIacimPLoCEMzx6MFIuIfpKAkp0AQKxCbT99t108kdjd4ATQWAEATgWRgDCx8kIuO323T4ehSWDiLNBIAEBrjVVplTC1TW5UTgJRAp9qkuphtfN1IN///jl58W5ekF89Uwt+PeNsxOi3tRPp9DKSzzwM1QP6NZd5wXzlNGKuHOQgVHjPuR5Hb2CvL4Y6CfP7teYa7ai8/Xg+plVcfP+RfFWclpdO1XXPnKpQjsPooEACORMwOfax3Bg5WwFo4eXe+dgNCooF5XA3P1XTVVaa2fpvFLUc3E8CICAPAKc8XOJdyRUZC8FTiGcnGgmUnC95Yhvnx8Xj5+ZDKKzTixTHiLaQAK/dPS5oDjzwAMifLBvV0U4VHxbRhuvtgMHq4y+0Ec2BNgZvlKX5zw+e6EuJbLy+GpV/PpT1yq782o21hk+So2iqji6ih1WHG3FUVdJmuy5kEQWKs0X7DyYpA+cCwIgIIWA73j+seq/OvW8lN7QCQj0EMBz1B4g+FUegWpr/XZaN8N5JQ8pegKBWAQ4CLJS8kVdkR0JZZTQKVGNljfRAoz//cZPCMEOrMdfnBSPn66Jb18YF1yMGG2LwJ+fOyBumrqYOAqLdx+U5bwKpIOZtoxk6SueU81m8ujAPz97AM6rPnPoyHhD3HJgQbz14KJ43e5lUeyqP9jn8EhvybiWRxpwyMHVqtzdVocMhY9AAASGE3D8FpWQEeLfDj8Mn4JAPAJwYMXjhrNCEPAFdh8MgQmHgEAmBDi1YnXdlRLpkFjg5GvVHSLwIu1nr74Q/OPUwr+mull/wQ4tSjnk1EPb28nVsvjbpZq4kXYWS9IKKRTdTiIPztWfQJFCZ5rNZM6Hk2sV8dcLU/rDkKBBmRxUN5Cj6vX7lsTbyGl1VW1NQq8DukjhWj5gpKFve/RAo4RNP4YywocgkDEBTiOEAytj6LYMh2eftlg6Yz392UNj9aLD6YPjGQ+N4UAABAYQqK/SrlL0L+/GdbmmJ5OlroTVAYXgt0i9dGxF3Hv1k1tvxHg1PlYQE2Py0jWRQhjDCDmfskrXkBWJ15GV1aZYXGok0uoPT1wpHr+4K1EfOp+8m1IBb9oswM4/xwvJHIJhWazUPaqvmP9SojbeEkUFd0QMyxHHgYCBBNq+KBwZ/9fPnTZQN6iUMwE8ls7ZAKYOXy+576FQDzivTDUw9NKSQKXs02JD5B6FlWXaSW8h+Lm1gvjamQmKzqqJr9PPpaanpS3jCP30ypj4h+WauG58Mc7pwTkcLYNmOQHJ/oqku1peaBTF1y7NWGUUjwqwXzNNBdipltUtVIT9FdP5FGD3g4u55AkR0ZJcU7GI6KuI1HA4CKROwBVO804a5Y9SHwkDWEcADizrTJ6VwryFar43NVlpinFAQBcCDi16OJWwLrEAsy66d+TcRZEKt19xKfjXoqL235urBrWzvkK1s55dLHcOM/bnp87uE9e9JL4DqyB51zh8TWg41SSnjRUKyZyinzq3XzQV2aAiTWtOFVtBWuAbKTXwFnJc7alkE8U6TKcsH0YMkqNaoWgz3G4OwoP3QSA3AnTLyWmEcGDlZgFzB8Yl31zb5qaZ/8c3FuvnXzxDAtj1SDQ34hgYBMIT4AVH7jsS0jfPLk4hVOwbyJZC8Pe/9ElxVXUl/KTZPJI3A9i3uxr5vGEnjI/RLoSl9rBD8JliBNJIRT43tyralHAStc03C+IXnrherPvJnGBRx83q+O4C7D+5e0kk9PVJF3tx2RONRn4X8gJFXk1OZJMuKR0eOgQB8wm0Wk7rYO03XzxnvqrQMEsCiMDKkrYlY62cP/NOup2B88oSe0NNvQiwE6Ja8cVKPb9FB28VxgETOUrQ12gDC8FTuuG5VXO+Lh+iiJVfueLHfRkMezNppEy/vjdSkPp9gveUJZDCH26RPDNr69EdEQ+f32eU86ritcVrd62Im6n4+tsPLoiDY8lqg6U+h6L7HKWKVKWIYjQQAAFlCXgF372dpPs/lJUQgmlJwJw7ci3xmym067fv8nmVjAYCIKAkgXKZdiRccyniIUfxeOGj8GWiWmgHi0heSJpWCP6b81Pi9HpZHCxF250saa2iHGcbhpZJIAWnBc+tNRHNgbXS8sQX5vbI1CyXvg6PrYs37lumf0vizVTPaoyuPbq0PFMIuWg7al/pMlMgp7UEfIfTCOHAsnYCpKO4wsuHdBRGr+kS8D8hvPrTh09RhMW+dEdC7yAAAkkIrK27Ynklv7Qb3oWQdyPUsZlQCP4dMxfEPzvyfCT8tYmiGKvIfe41Vm0J3lwATR8CaaQQrq61xPzieiQI//nsAfGJMwcjnaPCwaoUYJfBYn7RE5QjJKOryH1M1lqi4OHaERkcTgCBbAk01l1v//RvPH8x22ExmskE5N6JmkwKuoUisPrkkbcI14fzKhQtHAQC+REoUd2h+qpDUVj5LD50XnZ0F4JfI37fvTAuvnV2QuhUCP6r87vEz+w/LWaK4VOUsANhfn+vpo8cNT11re2Kz13Yqw2WqRIVYN+7UXyddw6cpN9NaHlFYJUo+grOKxNmEHSwgECx3Gr/NOn5pxboChUzIgAHVkagbRnG99p3BcVtbFEYeoKApgTYbVWlVMLlupePBjp7sLqIlV1fvJEWpvzvV65/UehSCL5BjjeuH/RzB092aTP8pSd7B8Lhw+FTiwh4XjRHOqcOLlABd5Xb1bU1cQulIL+eUgN/as+y4Mgr05qf0+6PqH1l2kyCPiYT8J02pxHCgWWykTPWLdodQ8bCYTi9CNCTOKd+7+HjJPUVekkOaUHATgL89HxhsSBaOZRcmZxoioLa68/Ek6LedMVfnxsXf/HipHhcwULwZbct/uja74sJb3Q0CDsY9sxUEjPp7WCs2qYUwhwmYK8g+D00gTRSCHnwC5fWRLPZby6w42frdpWdr7/05HVirlkKLXMWB1apAPtrNguwv/PQgthfDR/dmIV8aYxxcb4gso7CKhXbYmK83zxJQ0P0CQIgIIFAvdpY3+fMnluS0Be6AAFh+PIBFs6SQP2eIz8pHP+KLMfEWCAAAvEJ8F4LlUqLamFlH4VF/m4S3LyIhG5r9CsE/xdnaoEz64eXqpkv/Lpl49echvXY+b3iA/tf7P1ox+9RU7x2dIA3QGAEgQI5SZvNfgdtOa/408cv7VLGedUpwH7LgYWgCHvJsppMmV/BaSrwLrpoIAACWhGo1gul20jiB7WSGsIqSwAOLGVNo6NglD7Y9ZRURw0gMwjYRqBMtURWKQ2ulVMtLFt4u5Q+dN1MPfj389eeFd2F4L92ZkIsN7N3IjL7Ry7sE+/dc1ZUKHpkWMMOhMPo4DMZBAInKRVzH9badI/xmXP7hx2S6mecBvhqirJ6K9WxeuPe5eDvOdUBFe48SB/M2JdUpugrzzInocJTAKKBQHgCruA0QjiwwhPDkUMIwIE1BA4+ikjAcciBhQYCIKAVgc0n2ksr26McUtchqJ2S8eondaXCDzCoEPyXT9XEj5fK4TtKeORSyxNfubhH3EZOrGGNo2PQQCBNAoUQNda+dmlanF7P7u+D9Z0pN8VPUg2rW8hp9baDC2KCnChoFD+bce7gRsQw2GPugYCWBHzxXv/3jlSdXz1R11J+CK0UATiwlDKHvsIs/faRV9HtzDX6agDJQcBeAlxThGscZbkdur2uq53zbFgh+L+5MCH6lgXa2U3sdx6iNMJbd58ThSFFpotFN3b/OBEEwhAYtcslXzM+nVH0VacA+82UGvjqXXXBEZRo2wlkTST4nsJlaLsR8BsI6ENgYmW1fSuJ+5A+IkNSVQnAgaWqZTSTy/Pad2/UtNFMcIgLAiAQZP7yrk5Ly9mlsWX88F4rKx8Zb4ifvfpC8G9h3RPfPDchvnF2gorB18T5Vflf2xcaJfG1SzPi5pm5vpxcCn3wXERg9YWDN6URcGmO8b92u79r5NsLU+L51aq08bo74np1vFMg17J668Elsa9ifgH2bv1jvc5wB0K++qD2cbaUxQAAQABJREFUVSwr4SQQUIeA73AaIRxY6lhEW0nk3wlriwKCJyFAtRDuQvmrJARxLgjkS6BU8EWBaos0Wxk5KvqvUfOFoODok6WWeNfh+eDfb9GC8YlLFZFGIfhPUWTLW6Yv9o00CZPapSA6iKQhAU5VXR/gwHpIcvQVO4rfsHcpcFq9af+SKFItQLTwBLJ8CFGmnUpd2Ce8cXAkCChIgO4u3+/PXl9yZn+wrqB4EEkjAnBgaWQsVUWtf3j/S2hd9WpV5YNcIAACIQjQnQVHYS1mFIWV5eInhPZaHNJbCP7CWkF8nQrAc2RW0kLwJ9cq4tuLU+KnJi/tYJFqAXf4DHbwVv6NFG3GhdzXGzvrHP39ck08uTKeCE13Afa3HVwUV9XWEvVn+8kpToNtaLn2FaKvtiHBLyCgK4Hp5fL820n4z+mqAORWgwAcWGrYQWspfNf7oNYKQHgQAIGAQJF2JCxQJFazmX4UVlaLH5NNu5uKS99+xaXg3xrtIvndC+PiW5RqGLcQ/KfO7u/vwCKnAhoIbBFI7/owKNrvU2fi7TzImyW8maKrbqYC7BxlNVEYvsvhlo54NZJARimEFYq+clCDbKQ5cAAI6EDAa7c5jRAOLB2MpbCMcGApbBx9RHPu1kdWSAoCIDCMQBCFtZRdLaxhsuCz8ARkFIJ/uj4mvr80IV45sbRt4EFOhW0Hxf0lPV9IXIlw3ggCfuBMSMdwHIHV255eGRMcgRWmcZTitdOr4o17l8lptSBes2uFnB9hzsQxUQm0RfqPIdh0lXL640TVHceDAAjEI0D1ku/0Z8U/d2ZFM14POAsEhIADC7MgEYGVjxw5TLsPvj5RJzgZBEBAGQJFisDif42Uo7CQQpiuybsLwc83vCAyK0wh+E+dO0AOrKe3CYcUwm048EuK/oSNnQjZbbE1yCdpTg5r3QXYb6bUwL0VrIuG8ZL22ZaJpHXZ21GF0toRfdVLBb+DgNYE9qwWD79FiJNf0VoLCJ8rATiwcsVvwuDtu2gLMzzfNMGU0AEENglwFFYj5SgsOLCym25Txa1C8P+G0n6eHFII/ntLNfEMRWJdXV0JBGTnFa7w2dkKIwnh0Z1pa9MHdYJqs31ncXIHFnbQbuwYuChet3sZBdh3EEr/Ddq8J9VB+LrD6YNoIAACZhGgKCxOI4QDyyyzZqoNHFiZ4jZwMJd2H8zgKZyB5KASCChLgOtgFYvkxGrsTOdRVmgIFooAF7K+bqYe/Pv5a8+KfoXgP027vf3qFT8O+uNd4dJsG+loaY6AvnUjwFFYreZGrao/P3tAtMlRwimyN5Cj6vX7lsTbDy2Kl0ygAHvedk37IcRG9FXeWmJ8EAAB6QT89gcojfCXKY0QHmrpcO3oEA4sO+ycipYL9x7eTc6rt6bSOToFARDIlUAQhdUkB1ZKDmp6Aperfhh8g0C/QvB/Sbsanm+XxR53jYr6w4mJuZItgY7T9GK7KHZT8NXvvvwFcRMVYB9HAfZsDZHjaEH0VSmlL58c9cLQIAACRMBxDtQLh94gxKmvgwcIxCEAB1YcajgnIFAU/p20CMUcwnwAAQMJFKiOe1ALq5GOoyntp/cGmiR1lboLwfNg640C1UITot2inSlbjkjFZkEaEhaqqRtXhwHoUuN5vpiedsXeXQVxbVmINzkndZDcShnbKcZO8AMU1L6yclpBaVsIuEEaIRxYtthbsp54tCoZqFXd+ZQ+iAYCIGAsgbFqilvOw2eh/LwpFR0xXhWiNtESU7WW8CiNCw0E6PG5dAglSlmemWyKKZprtTFfVCoOaq9Jp6xHhy6tTMqlFL1jemCAlCBgNgFffIgeisn/MjGbGrTbJAAHFqZCLAL+A3tqtJR5R6yTcRIIgIAWBKgUjSgV03FapNOrFli1FNIl5xXXpJHecPsqHamOHRYpXQybBehluVQiMglBlQq3Yy7oNRcgLQjEIHB05Z6jN8Y4D6eAgIADC5MgFoF6o/Q+OrES62ScBAIgoA2BakpRWGktfrQBq6GghTQSxuHJ1HAmyBcZpdbkM027xzSCJ9hRXsLOg2mbDv2DgBIEHNHi3QjRQCAyATiwIiPDCQEB3n0QDQRAwHgCHIVVTqOYLhwX2s0d3sEQkRHamU26wL5k7zMH4XHtKzTNCKRgsmolDbeYZlwhLgjYQsAJ6mDZoi30lEgADiyJMG3pyp89VqGdyd5ji77QEwRsJ1CpyK+FlcLax3Yzpa8/eRpQByt9zMqPIDnt0yvgaqC8zfsIKNvVxNcW1L7qAxpvgYC5BF629NtHXmWuetAsLQJwYKVF1uB+V0rr7LyqGawiVAMBEOgisBGFJbf+keQgji5p8TJNAnA2pElXk74l+5t4x1M0/Qj4bbkToVqV259+RCExCNhHwPEE0gjtM3tijeHASozQwg6w+6CFRofKthNAaoftM2BDf9QqwjyQvW+U58l1jsNC2RCQ6W7a2DAE8yAby2EUEFCHgCt8OLDUMYc2ksCBpY2p1BDU/+MbaWN1wQXc0UAABCwiIL+4ruQ8JItskaeqBdQqyhO/kWNjTulpVt+Xdw1Pa7MQPclCahCwhwA5wl+5du+ha+3RGJrKIAAHlgyKFvWxNnf6baTuLotUhqogAAKbBGRub44UQj2nlUv1ilDIXU/bSZNaouOC55KHFEJppsm0I0khWFzAv4Q6aJmaDoOBgEoE2sK5WyV5IIv6BODAUt9GSknot3GRUcogEAYEMiTg0jeGzB0JJa1/MiSAoTjmwkUUlt0TQV7gDTYF0HUm0cVb1vV7rEKpgxLnlK5IITcI2EqAHmgijdBW48fUGw6smOBsPM2fFbRHjHi/jbpDZxAAgQ0ClXJL3lpDYiQH7JMdAaR8ZcdayZFkeS5IOWwKoKSFRwolawdCvpYUixIn1EjJcQAIgICCBG5Yve+KqxSUCyIpSgAOLEUNo6JYq6WDN5FcB1WUDTKBAAhkQyCIwirLKbaLNMJsbCZ7FBRyl01Us/4ceQ4HzCXNbL8pri/p4l2tyvku0ZMipAYBEOgQaLdbd3Ve4ycIjCIAB9YoQvj8MgHfd3FxuUwDL0DAXgJVSvlwJCxiJa2B7DVETppzzRo0iwlINH8BtY+0nEgypgDbvgj7a2l/CA0CKRBAGmEKUE3tEg4sUy2bil7Onal0i05BAAS0IsCFlytlGUsYrdSGsJsEgrQv1KzBfEhIgKcQ6qklhJjX6RLSv/lBCBoIgAAIbBJ4w8pHDh0FDRAIQwAOrDCUcIxYvu/gjVSy8yVAAQIgAAJMoEJphEl3o4MLTM+5xI4HT0IEnp7aQ2pZBHj3QfhBZdHMtp+k126ue4Xoq2xthtFAQHEC/HVwh+IyQjxFCMCBpYghlBej5WKLU+WNBAFBIDsCG1FYyZ6gI4UwO3vJHqlAzgc0WwnIcTshFVXf+UM7UicSHtFXifDhZBAwk4DrII3QTMtK1woOLOlIzeyQFqtwYJlpWmgFArEJVJLWwkr6GD+25DgxKQHsHpeUIM7Hbpb6zgFfxL94lyj6CrbX1/aQHARSI+CLty599NiB1PpHx8YQgAPLGFOmp8javQeuo96vTW8E9AwCIKAjAX4Gz06suC3+EijuiDhPFgFEz8giaW8/nhf/2mEvNTU0TxI9i+grNWwIKUBAQQKu02i+X0G5IJJiBODAUswgKorTFh6ir1Q0DGQCAQUIVEp+7B0JkyyCFFDdahGCCIpkWURW89NaeUmeZ6+gNQW7hY9ZxL1UpDtK7GJq99yB9iAwjIAvkEY4jA8+CwjAgYWJMJIALTLvGnkQDgABELCSANfCqlZirmhjnmYlaMWUZru7KOSumFUyEkeC45KdGBK6yUhhDNNLINalO8l3Ra8A+B0EQMBIAo7jv21+9sguI5WDUtIIwIElDaWZHdXvO3CMNHutmdpBKxAAARkEyrQjoRvj2yTWIkiGwOhDCgEUcpeCUbtOfAmhkztqIOFioNU8iDMFyoi+0srGEBYEciJQLJX823MaG8NqQiDGkkMTzSCmFAJ+2+NQTjwolUITnYCAmQT4AlElJ1bUhjVrVGJqHY9UILXsoZM0hd70Qdxl6GQ+ISKmEAa71iaol6gXHEgLAiCQhAA5yJFGmASgBefCgWWBkROqiPTBhABxOgjYQKBU4iisiC6piIsgGzjqpOOOKBqdhIes8QmwNyJh86JeKxKOh9PlEmhH3IWQvx88rDjkGgG9gYC5BN7lz+6aNFc9aJaUAL5OkhI0+Pyle/btJ/XeaLCKUA0EQEASgaAWVjmaAyva0ZIERTfSCOyIopHWMzpSmkDSP1zyfyF6T2kLjxYuwhyIG6E7WggcAQIgYCiBcr1Qea+hukEtCQTgwJIA0dQuHKfIuw9ijphqYOgFApIJlIOn7BFWNojAkmyBbLujYquxap9tkzLCdNl2Hn7RloBHHg0JQVza6m+C4H6Ea3fcGokmcIIOIAACMQk4DtIIY6Kz4TQ4J2ywclwdsftgXHI4DwTsJEAL00qEOidxCgHbCVYhrXscToikUcg2mohSKPRMIk3khphbBMJaMIjMjbtL7dZweAUCIGAfgdv8j+0ft09taByGABxYYShZeMzF2WPTtBa92ULVoTIIgEACAuWSj1onCfgpfyrnA3W1xHWwevrr6hovDSUAp6cBhg3pwarQ5h4cqYkGAiAAAhEJjNUbxXdHPAeHW0IADixLDB1VzUqxcSedU4p6Ho4HARAAgWq1FQoCIrBCYVL6IDgjlDaPksJhzihplkhChUkhZMcVO7DQQAAEQCAWAb+NNMJY4Mw/CQ4s820cS0N6XobdB2ORw0kgAAIlShEKs0jFc3n950rBS6hDhFo6CUfC6XEJ9Pyh+hF3oNs2LEXcJY7a29YhfsmDQJg5UKFNPVDrLA/rYEwQMIWAc7s/e6xiijbQQx4BOLDksTSmJ3927wQpc6sxCkEREACBbAnQInUsTN2TnoVxtkJiNBkEXIqywCJVBkmF+9iR5rnjjdDCey7mS2hYCh84KnqWrwmIvlLYgBANBPQgUFspNt6hh6iQMksCcGBlSVuTserF0k+TqFVNxIWYIAACChIoFttiVLHmUYsgBdWCSL0EaKGaJKLGR32cXqJG/84OLDT9CYxKIdyofaW/ntAABEAgZwK+QBphziZQcXg4sFS0St4yOeLuvEXA+CAAAvoTqI6of4KlrP42Zg3CpIsO1BSTYCAaEz8oFEzUCjp1E9iofYU/7G4meA0CIBCPAEVz3uXPXo+azPHwGXsWHFjGmjaeYv6/e2mZnqzdFu9snAUCIAACWwSKRV8UqR4WmtkEPNjYbANL1C6Rs1OiHOgqGYFh0bNVSh/HzoPJ+OJsEACBywSm14oXb778G16AABGAAwvTYBuBlYWVdznCn9z2Jn4BARAAgZgEqpXBu1ANWwTFHA6n5UAgcSH3HGTGkDkQSJhumoPEGLIPgWHXbZdWFeXS4Gt+n+7wFgiAAAgMJUAucaQRDiVk34dwYNln8xEaO9h9cAQhfAwCIBCeANfBGhSFNaqOSvhRcGSeBILC3HkKgLG1IOCRAwsF/7Uw1VAhhzmw+IEFbDwUHz4EARCISIDi+O/0PyGS7nkccVQcrjIBOLBUtk7GsvHFgW48bs94WAwHAiBgOIFqFU/kDTdxsjpYpsMxTb+YWcFIHzRjIgwyv0sF+kuIvjLDyNACBNQisH/1R0dvUkskSJMnATiw8qSv2NirTx2+hUTao5hYEAcEQEBzArxLHdfD6m073+k9Ar/rQgB1sHSxlAQ5Y+4ciTkigb0KXfgUStenBbWv+ryPt0AABEAgKQHfbSGNMClEg86HA8sgYyZVhRaT2H0wKUScDwIg0JfAGO9I2LvuoYsOnFh9cWn3ZgF3E9rZLLbAAxwYo/pjRzaa/gT6pRByGjFqX+lvW2gAAsoS8J0P0LWn9y5SWXEhWLoEcMuZLl9tet+8KLxfG4EhKAiAgFYEOPqiWOiTSog1rVZ2HCQsnBODyOD9DgEU+++Q0Ptnv0t2tdrvXb31hPQgAAJKEThcv+fw65WSCMLkRgAOrNzQqzVw/Z5DbySJjqglFaQBARAwicBYnx0J+z3NN0lnW3RxyUGJ4s22WDu6nlwfyYmZehh9NJyRJoHea7ZHK4lSsc/DiTSFQN8gAAIWEsBuhBYava/KcGD1xWLjmy52H7TR7NAZBDIk4NEeMqVS75N6RIRnaILUhmIrukgRS42v7h2jgLvuFtySv9eBVa22tj7EKxAAARBIi4Djf3AzYyitEdCvJgTgwNLEUKmL6fhwYKUOGQOAAAhUuRZWV+tdDHV9hJeaEUAaoWYGy1BcpA9mCDv1obYeOnBqeIn+oYEACIBABgSOrdx/6DUZjIMhFCcAB5biBspCvKV7DvPF4OosxsIYIAACdhPgSIxydxQW1j7GTIh4hdy3FsPGgIAiOwjAubkDibZvdD906Ls5h7aaQXAQAAHlCbSRRqi8jTIQEA6sDCCrPgQtH7D7oOpGgnwgYBCBSqV1uV5SzA3NDKJhjiocjYEGAv0IIIWwHxU93+s4sNgpWSzib15PK0JqENCTAK1ZP6Sn5JBaJgE4sGTS1LQv1/HhwNLUdhAbBHQkEBT9LW2kEnYWQzrqAZm3EwicFAio2g7FwN+iuiy4eLuLu01jZkLH/tXq9nRwYxSEIiAAAioTePnavQeuU1lAyJY+AdxSpM9Y6RFWP3zkZb7vXK+0kBAOBEDAOALV8uaudZ3VkHEa2qcQ+6487DRnvuEj/s0WCuYjsUlDn/xWBYq2LCLi0iazQ1cQUIZAW7gfVEYYCJILATiwcsGuzqC+6+MioI45IAkIWEPAdan4L229jggss0wOZ4VZ9uyrTcQoO9S/6ktR6zerFURfaW1ACA8CGhOgwIsPaCw+RJdAAA4sCRB17sIXSB/U2X6QHQR0JhAsgpyIq2GdFbZAdo8ck1GaDw9mFFxqHBvNxAI7EKphNllSuJ5A9JUsmOgHBEAgDoGfWP3woWvinIhzzCAAB5YZdoylxcoDh48I4dwY62ScBAIgAAIJCXBdHKrBl7AXnK4SARRyV8kaKckS0eeMAu4p2SGnbjlyFg0EQAAE8iTQdt078xwfY+dLAA6sfPnnO3pDcPpgxFvRfEXG6CAAAmYRQHqRgfaM8q0S5VizUFmhDQdYcrowmjkEeBMONBAAARDIl4CPNMJ8DZDr6PgayhV/zoM7/l05S4DhQQAEbCcAB4ZRMyBwWCCqziib7lAmgj8KDuod9PAGCIAACIBAcgKvq3/k4JXJu0EPOhKAA0tHq0mQeXF2/z4KvrpJQlfoAgRAAARAAAQuE4hU8yiCM+TyAHiRL4EIdevgwMrXVBgdBEAABAwlQI/KXARiGGrcUWrBgTWKkKGfu8Ui5w5TKU40EAABEAABEJBHIFLNI0TgyQOfVU8RnI6oiZaVUTAOCIAACFhGwBFII7TM5B114cDqkLDsp9Nu/5xlKkNdEAABEACBDAhEirqJ4AzJQHQMIZlAJGem5LHRHQiAAAiAgNEEblq+58qDRmsI5foSgAOrLxaz31y+Z89B33XebLaW0A4EQAAEQCAPAoVCHqNizKwI+CKc15EzDT1E2GVlFowDAiAAArYRcNbXGx+xTWnoS5vDAIJ9BJr14qtxT2mf3aExCIAACGRBwOHKFGHvLvBllIVJ5I4R0mZBJF7IY+UKiN5AAARAAARsIOA4zits0BM6bicQ9hZz+1n4TWsCkz9x+guNprOmtRIQHgRAAARAQB0CPUE5SB1TxzTSJemx9aD+MQcGkcH7IAACIAACSQn49F3UaIr/K2k/OF8/Agj0189miSV2fka0Tvya/wnPFT8n8HQ0MU90kC2B9XVfLK20tg3K09jtncv0Rr/0lX6RIfS3QJtybu+A++NIku7m0HFuz3H8N9Q7Nvfk9hm8z1sbkSrbhw766+2T39zxXrdweA0CeRLomcMcfdNo9LzZTz4/xDH9zsN7yhOAA0t5E0HALgKtNn3n84q4q7XpV/7X3fgQn47tbnwZa/e8x5+3Wj0n03v9juMx/J6B2tRpjzh0kC9Yzt7Wr8/guJ4OgnF6Tp4Y80SphOtwDxb8qgEBmvd1p+r/3xqIChElE4ADSzJQXbqjhfmjrbaDQu66GAxyXibgkRfIpxu7tbU+d3GXj+IXO28ct31swC98y+n0eMX4BpwZ9bbAcdfzNjvjiOa2Q/s56YJxeuJ12Y/n9vGoee72/rhzPm6H34/664hTKrqiXN76fZtA+EVLAnBeaGk2qUIXsM+xVJ55d8bOj5W6Tw6YjWt8P6cJv+f3Ok34W6b36zqKI4aH63Hu9HkrGKNn6ECWVh8neaDDhhp5Y811/HKZHvTR/UJr+zPBXGXC4CAQgcCXD8+eWolwPA41hAAcWIYYMqoaTafwmOe3mnQe5kBUeDg+dwKTNU9caLT7PsnMXbgMBeD7b7/PE95Wz83+YJEG3cEPen9wT8k+aYkyPQE+fKBAP5P1hLPVIBDaedHxYqohNqQIRWC00fgIODFDwdTioPmFtnjxXKvXj6SF7DY8zIpjCH7+VJvAEiAOO5yjCAFHPKKIJBAjYwI9z9QzHh3D5Ubgyvufv+gL5xu5CYCBQSABAdx4JYCn6KlrlBr63ImGWEV1PkUtFE0sl9Jve6PuovWAo5UlEMK/XSiEOEhZBSFYhwBHNC0uC3HqrK7Oq44m+NlLoEYPAoPyCb0f4HcQ0ISA22w/qomoEFMyATiwJAPVrDt4rjUzGMTdIlCh0PdyGZewLSL6v+KaHUuUorKyymko+utjtQb0dD/YhW4UBNh5FCH1Pu+pDdhPQERf9aOi13ucDrhIyTn8cAHNLAKcOljB/ZNZRrVPm+8d+t3Tz9mnNjRmAlj9WTwP/LYDB5bF9jdBdU4l7FeU3QTdrNSBnB5cl4ujsJZo4dSvxoqVXDRVGk4MTQ03SuwQ/gzYfhREtT9vUE2k+SUhmlRoIqh1SNdmNDMIIILdDDtCC6QP2jwH4MCy2PpX/M4L3yf1j1uMAKprTgA3YpobsEd8jw262WhrZLFAqStNFJftINHupxcmjSxENI92ikNggRRCTScBOSfr9ACB0wa7o2C7r82aagaxNwkgdRBTwQQCtGERgjBMMGRMHeDAignOmNN88VljdIEiVhJAKqE5Zu+txxGksNBCanXdHB1t0iR0IXeboJig65afua82/HHv33LfA/GmUgTYYbVUJwcWpXD3bE5LBfmVEhXCxCSA1MGY4HCaagTmDh0/9U3VhII82RGAAys71mqO5CIEU03DQKooBJBKGIWWusfydt69jRdVK7SoWqaUwhCZS72n4/ccCXguFXIfNT6MOoqQep+PsFmoyDv1tLJaIq4/uEApg+uN/hg4tRtNbwKIWNfbfpC+i4AvHnUeFIjP70Ji20s4sGyzeI++/rrzZXqLloZoIKAvgY0bMzwi1teCG5IPi9pYo4UVL7B4oYWmDwE4M/SxVXhJhzszUP8qPEkVjgxzbUUElgqWSiYDUgeT8cPZ6hBwXKQPqmONfCSBAysf7sqMevTjJyi2QfyFMgJBEBCISYB31MGuOjHhKXKa2ycCq1u0Fj1vGxYl0H0sXqtBAM4MNeyQpRRIHc2SdrKxOF0wiG4dFVXXVZ8w2Yg4Ow8CSB3MgzrGTIlAy3edL6TUN7rVhAAcWJoYKk0xHQFPdpp80Xd2BPCEMTvWaYw0yoHFY26r05KGEOhTKoEC7jKk8tShs4I3whuigxKGy8j1BflhABdsD9MQgRWGkprHIHVQTbtAqngEaM36tSP3nbwQ72ycZQoB3FqaYskEelBpg4cTnI5TQUAZArhRU8YUsQQZEYC11Setj/vtlLV1AF6pQgC70aliCXly+EOq0XGpJJdqn6GpS6DBkawRd3h1h+V3q6sqJCMCeLCHaWAUAQe1m42yZ0xl4MCKCc6k0w49cOp58mj/wCSdoIu9BBAqr6/t+xVxH6ZNoynEPEURNFHKcximXD9zKRpneMWkXMXD4JIJcKQO6n1LhiqxuzXa0XWJnFccgRWlwX8VhZY6x6K0gjq2gCRyCDRF4RE5PaEXnQnAgaWz9STK3vZdXBAk8kRX+RLAE8d8+ccZ3aVvozgLX16ILZITixdmaOoRYOeVW0BEjnqWSUciz4voGUlHDPTaQ4D/Apdou55lqnrKadhRWxBZB090VGy5Hs8R6RMT2NwmVyNgcNkEnr/ygecRcCGbqob9wYGlodHSEJkK4sGBlQZY9JkLAaQS5oI90aBRo6+6B+P1GC/MwhQj7j4Pr7MhMLwmElbF2Vghm1GG2zobGTDKdgK8c+vCohDrtJNrkpbkGp1kXJwbjwAe5MXjhrPUJUDx3A+pKx0ky5IAHFhZ0lZ4rKPPvvA1Em9OYREhGghEIoBUwki4cjh4exiAGyf8qkfqYDv45ejpMT3d4FfJBFDIXTLQ3Lsb7HTErpO5G2ebAJxmzcXa2YmVtKGQe1KC2Z2P1MHsWGOkDAn4qH+VIW2lh4IDS2nzZCec86DgKjLYljQ75BgpAwJ4ApkB5NhDbF8Ey1octehKxnWxGgmjDWKrhRN3EPCQQriDiYlvsA9a1t+xiXyy1qm+SunVlDYYJ2Wwn6wu53mjKU9gIwIdqYPKGwoCRiWwIpri8agn4XgzCeDbyEy7xtUKaYRxyeE8JQkglVBJs/QVymNjSWq8YFuklEJewKHlTyCIypFn3vwVggR9CfDugzBzXzSZvhlc/ygSlXdqHbJhZGSZXPhEIjPL44TJmkc7geYxMsYEgVQJfPHox0/QnR0aCFBtVUAAgQ4Bt+V/ll5jP68OEPw0ggBSCfUwo/TIDXJi8QJOZgSCHiTVk5KdGp6zPWVUPSkhUVICO+pfweRJkUY+n3dkDSJQKXVQdsNOhLKJyu+vUnZEuYylnXyy6DF/AqjVnL8N1JEAVzl1bJG7JId+99R5EuJvchcEAoCAZAJIJZQMNIXuXC+d2A1OJZRVAyYFta3pslAYoCqcHAPAqPu2PyAnrdAboZPOn7S6YHKWjHdi5R1ZeWfWNBqKuKdBVV6fiDiXxxI9KUeA7hT8R5WTCgLlRgAOrNzQKzowCuQpahiIlYQAbuyS0MvmXFdiCmGvxJ1duHiBh5YPAY/Sy9DMJoAC7vnYl/+ygl1YKbkmzb8yRGDlY9+woyJ1MCwpHKchgf965KMnT2goN0ROiQAcWCmB1bVbx/NRB0tX40HuoQQ2UgkREjAUUpYf9qy00l4cZbXIyxKhTmMNLOSOP0mdzDhYVrIjHFiD8aT1SZbOeX7IIGGz2LRQWN1vpYLUQasngOnKO+Jh01WEftEIwIEVjZfxRx+6/9TfURXWk8YrCgWtJFCrFUTajhIrwcZRustxkWVqStppNnFQ2HBOUB+py+Y26GyujjsNyddVODeytXge6dFpRspmS8+c0YII8/FBOdrm6AlNLCaA7CCLjd9fdTiw+nOx9l26LfUdPyjmbi0DKG4uAaQSqmlb6QXcR6iZZqHjEUNb+zE7N9w+hdwH1VOyFpSmiu8o4K6pHlqITeGkeW1QkfW1Wgt75CwkUgdzNgCGT5vAucM/Pon6zGlT1qx/OLA0M1gW4tI6A2mEWYDGGLkQQCphLtiHDuqlWP9q0MBpbTU/aDy8L8SOIt8MZWcwD1BpSMDzUqocriGLNEUOrltU66q+muYog/vO41o9WBp8gtRBzAHjCfjis86DgvZXRQOBLQJwYG2xwKtNAm679QV6SRvQo4GAmQRqE0glVMmyeT7V54Xg4gqFnvbU5FKJjymyoEaSKZbcqUdf5+TOw/BOAgItWsLN0y6DnDqYV8vzWp2XzqqO69IKrobUQVXNA7lkEXARVCELpUn9wIFlkjUl6XLgd84sU1dfldQdugEB5QgEN35UDwtNDQJ511VpNIVYoIUhF0RGS49A3zQzOA7TA55hz3BspAuba/ct0J1ZO+drlMtfnmhKEEDqoBJmgBDpEmg21oqfT3cI9K4jAXwT6Wi1DGT2fQdphBlwxhD5ESiXHMHh92j5E1AhLaWzm9d6jtEN+VsiXQkK8BmnCziz3rd7HT3XpwLu29/LTBTDB2Kqy5QyyP9UiBKFo1KNCVcp066DJSzh1LAGpEiRwF++5PePX0qxf3StKQFc/TQ1XNpitz33M2mPgf5BIG8CHH6fd/RP3gxUGF+VRREvFpconVCVxaIKtpEpAzs5dgRwYOs6mYhz6Qupoelg52irRYoM5egrVZqHZz65myKIIKcyCGggYAEBBFNYYOQ4KsKBFYeaBedcef/zz5KaP7JAVahoMQG+EeQwfLR8CajmROQF45IC6Tr5WkXS6D2BOXB2SOKaZzf+di8G6l/JNwanNXO9K94xVaXmwoOVuzmQOpi7CSBARgRcz4cDKyPWug0DB5ZuFstSXgeF87LEjbHyIYBUwjy4b3k1PPoWUjEIp0ELR645o9oCMg9rJRpzu6+DdiLcsn3Qb8+vicbCydkQ6LGpV4ARpYEnlHXaQmeRrj0qpAz26sXX6h1RlL0H4ffUCCB1MDW06Fg9As8euu/UE+qJBYlUIAAHlgpWUFUGHw4sVU0DueQSQCqhXJ6je9taATsKP9HnFB4u7s4LSjQ5BBCBJYdjrr10+6voT3mHUzJX4fQdnB1WS1TrindGVbmhkHs+1kHqYD7cMWo+BBzhP5zPyBhVBwJwYOlgpZxkfPHSga/S0PM5DY9hQSAzAkglzAz1joFUKOC+Q6ieN3hBuUy1sVSMiOgRVflfkW6mvIlGC7jlfxbsf1YxgnK0Emod0eKIT3KW67CJBEfNomVPAKmD2TPHiPkRoJKZSB/MD7/yI+NrSHkT5Sfg6/7kO7wf15fykwAjg0B2BIJUQtrZBy1bAqoUcB+l9RpdDXmBybsVosUn4NJdKRwe8fmpdiYi6pJbRLdriy7X7OSWUaeHSsXFroPqmAOSpE9geXl17PH0h8EIuhKAA0tXy2Ukt+OjgF5GqDGMAgRqtLOPagXFFcCSqgg6RGB1ALDzSpcoiY7Myv0kHzFSzpSzSjSBulII4cCKhq77aI7oXOlEd3Z/oPhrT+G0b8XRxRIvSB0cx2YzseDhJC0J0I7Fn3/ZHzyN4g1aWi8boeHAyoaztqOsi9KjJHzX7aq2qkBwEBhJIEglnMCN4khQEg/Q7Wn+tjo1uDLGmglwesTCps5JXYGqSAmNZxaur8eF2lc1XKIhhTCezeOeNUn3JHxvggYC1hBA+qA1po6rKC6JcclZct5LPnb8Rapw8V1L1IWaICDKlEbI4fpo2RBwdcwnI8eVyjuFZWO5+KNg17r47FQ4s7sWXAE7EEY2SaNJxUUpHVnXHU51e+gQ2UAKnVApU+og/UMDAYsI+O2G+zmL9IWqMQjgqhgDmm2n+A4K6dlmc9v1rVG4PlIJs5kFOqejNKjwcrAQpQUpWngCBdx5hIel4pGbEViuy/XMEIYY2kSEanWddhrUfEMI7EIY2uKJDgxSBxERnoghTtaRgPPdox8/cVJHySFzdgRwG5kda31HQiinvraD5LEIIJUwFrbIJ3Hwle6pEUEqEC1IeWGKFo4ApxB2stB8ZKiHg6bSUZs+K6SChjdKJ/V4pa7/bqZ8zdYxcDa8tdQ4EqmDatgBUmRLgL5eHs52RIymIwE4sHS0WsYyHxk78W0a8kzGw2I4EMiVAFIJ08evUwH3YTSCYsy0MF3mxemwA/HZZQID0wgB8DIjZV9seh9R/yqchYLNH6je1Trv62xIc1HIPVVLInUwVbzoXGECvus8orB4EE0RAnBgKWIIlcVwZgVvHI98ZJWNBNlSITA54SKVMBWyG52aVgx4jaKweJdCjspCG04A0TvD+Sj96aaTEbtJjrYSO634mtCidGOTGtKA07Mmly+o1bCZTHqE0bPCBM4erbzwHYXlg2iKEIADSxFDKC8G0giVNxEElE/AoTwJDuNHS4eAiU/xeaHKdbEaBkVbpGH9gQvgTm5hGoOiz+QEuiLk4IQcjrO+qn+9q0Ea7kj97poXg87B++EIBA/OcB0MBwtHmUbgkc2gCdP0gj6SCcCBJRmoqd1VV+uPkW5YkplqYOg1kECQSohdgAbySfKBiQ4s5sEphYuUTsgLWLT+BLZ2r8NKrT8hRd/dNBc7MHY4MRQVOWuxgr9/cmLzTqWmNrc3fBZ/xlJMzTsgY9dBKSjRiYYEfB/pgxqaLReR4cDKBbt+g+7+g7kFKu7yNf0kh8QgkJzAZA2phMkp7uyhdw208wiN3yEnFi9gFzXfcSwtC7hdhdzTGgP9pkBgM9IG0Vf92TY5AnORnvYZljLYq62HwOReJIl/D1IHEfGdmCM60JZAY90tfVFb6SF4pgTgwMoUt96DOa6Pwnp6mxDSxyQQpBKiJkVMeoNP8ywoBMyphJxSyAtbtC0CHLDhFpB3tEVEk1ebkTaof7XTXlwDb5GKtbctmNYetiHcOQESvhM8KEMkW0KKOF1jAl+9+oFn5zWWH6JnSAAOrAxh6z6U48OBpbsNIX98AuWSIzi8H00eAaMjsLowcVH3RXJi8QIXbYtAwbVgpb+lrhGvOD2OG3Yg3ODA/2ckSxRpGexCasmURgTWlv1lvApSB0u4v5DBEn1oSgC1ljU1XD5i42qZD3ctRz300dM/JMGf0VJ4CA0CEghgV0IJELu6sCECq6Mur2t5gRsscjtvWv6zULAcgMbqI4Vww3gtck7zLoO826BNzaZrd9p2Repg2oTRvw4EfOE8rIOckFENAnBgqWEHbaSgC8xntREWgoKAZAJIJZQHlG/abWwchcULXo7Ksr3BCaLhDKA/W84ecxE9JxrNjb9l3nnUxmbrNVy2rZE6KJso+tOQwDNHP3biKQ3lhsg5EYADKyfw2g6LEE9tTQfB5RBAKqEcjjanoPCCl+ti8QLY5ubBCaKf+SmU0Pr6V8Qg2KCB6l11Uir1M2RyiW1JAU9OanAPSB0czAafWETAEQ9ZpC1UlUAADiwJEG3qYnW18hXSl5ZeaCBgLwGkEia3vWdpBFaHHC98eYdCXgjb2oJIHodAoOlDgKKvChYX37/8d7uqj8nSkhRphMnIInUwGT+cbRABBEcYZMxsVIEDKxvOxozysj94eo0qlrITCw0ErCWAVMLkprc5AusyPfLd1GkhzDuX2RrJgXlweTbo8YLmrK2pn4ic3D5FEYG1nUfU35A6GJUYjjeRgO84C/Nj039pom7QKT0CcGClx9bcnl3xiLnKQTMQCEcAqYThOA06CoufLTI219KxPBBvaxLo8oojsDxdhJUnJ2rX7WTpWjgPdlKI906l7Ioydh2MBw9nGUXAEf4Xrp/9AfZoNsqq6SsDB1b6jM0bYSPUE3kf5lkWGkUkgFTCiMC6DnddfP104RC27mbmWpyO1m1/bV77jnAtSvvkGx3sHtp/duIa3p/LqHeD1MEavH+jOOFzOwg4vo+gCDtMLVVLrCCk4rSjsyMfPXmCNP17O7SFliAwmMBGKiEuo4MJDf4ET+93suHF8hLVxeIFsy0phSjkvnMeqPwOPS2nbQhVllCebLxT6CJV/OToK7SdBJD+u5NJmHdqEx45gcMciWNAwHgC7XW/hN3tjTezfAWx8pLP1JYe4TG3xdLQcygBTgPgdAC0aARQAHgwL14wc12stgVxrljHDZ4HSn5iicEajY2dQpu0YyhafwK2b8TRn8rwd6sVvl+w5I9oOAp8CgJM4Nsv+djxF4ECBKISwKorKjEcHxBAyCcmAghsEQiKseKR6haQEa82dp8bcZDlH/PCeX5RiAYW0JbPBMXUN92pSvrxzqC8Q6gtUZBxZxhngfO1HC0cAU4dnKDoKzQQAIENAlhLYibEJQAHVlxylp936PipbxKCC5ZjgPogEBBAKmG0iYAC7uF48QKaU5h4QY0GAkoQMNhhEfy9Ufou7wyKFo4AruXhOPFRSB0MzwpH2kHA8VD/yg5Ly9cSDiz5TK3o0XlQtMhz/pgVykJJEAhBAKmEISBtHuJi1RMeFh3JC2qujYWIkEjYcDAIhCbQ4ohHchZz6iBaeAK4lodjhdTBcJxwlFUETh+8//R3rdIYykojAAeWNJT2ddR2XdTBss/s0HgIAaQSDoHT9RH8V10wQr5cp4X1Ai2weaGNBgIgII8A15zjvy0u2o4WjQAKuY/mFew6OI7l1mhSOMImArQhyCMU0Gt6UrpNJs1UV1xRM8Vt2GDr4nOkUdMwraAOCMQmgFTCcOhQwD0cp96jWrTAXqDi7uzMQgMBEEhGgCMaVyi6Mdj1M1lX1p6NQu6jTc+pgw5qZI4GhSOsIkDOKwRBWGVxucrCgSWXp1W9Hf34iTlS+FtWKQ1lQWAEAU4l5HQBtMEEEIE1mM2oT3jRvUR1enjhrXVKIZ67jjI1Pk+RAEdbcaH2VdSXS0QZ1/Lh+Kq0QzF2HRzOCJ9aSWCtKNa/ZKXmUFoKAayypGC0uhN40K02P5TvR6A24Qrc2Pcjs/Ee0k4Gswn1CTl/eOHNdbG0TXsyuBh4KBvioNwI8M6eXO+qifjxxDbAtXwwwiB1kO4F0EAABLYT8B3n8b0fPU/7LKOBQDwCuLLG44azNgn4bQcOLMwGEOghwKmEtRq2y+7BcvlXl/dfR0tMoEELcE4pbKIuVmKW6MACAuT45R09F+lvRuvoRYVMhSLug40xidTBwXDwid0EfKQP2j0BkmuPVURyhlb3cPR3TnyPADxnNQQoDwJ9CASphJQ+gLadAAfeeB7yx7ZTif9bkApFC/JVKkSNBgIg0J9AJ/WWd/RE2eD+jOK867m+QDDlTnJcRqBcBpmdZPAOCBABVzwKDiCQhABWV0no4dwNAn5QzB00QAAEegjUakgl7EGyWcwWN/a9XJL8zovzFaqLtUwphXANJiGJc00kEGx+QCmD2PwgDes6KFDegxW7DvYAwa8g0E3AF08cvf/E091v4TUIRCUAB1ZUYjh+BwHH9ZFGuIMK3gABITZSCQtA0UUANVO6YEh+uUa7Ey7QQp0X7GggAAJC4G8i/VmAeo/bGU/SgyvsOridCX4DgQ4Bitl8uPMaP0EgLgE4sOKSw3mXCbTX3S/SL/T8Hw0EQKCXQLnkCN6JCG2DABY76c6EFtXDYicWok3S5Yze1SfA6YJBVCLCElM1lodnNJf5BqmDtBMxGgiAwAACHupfDSCDtyMQwFU2Aiwc2p/A0Y+fqDvCf7z/p3gXBEAAqYRbcwBFf7dYpPVqW72ftAZBvyCgKAGuC8dOXC7YjpY+Ac9FSjhTRupg+nMNI2hPYP7M3P6vaa8FFMidABxYuZvAGAGQRmiMKaGIbAJIJdwiigisLRapvqKoE+y4liphdK4ggQZHINKmBtiZMzvjsOMGTYgppA5iGoDAKAKPve5PvkPFDtBAIBkBOLCS8cPZmwS8dgsOLMwGEBhCIEglpJ2JbG+eh8VOlnOg0RRinqJRsKDPkjrGyoPAGu3EuUTOK47AQsuOACKwhODUwRJSB7ObdBhJTwI+0gf1NJx6UmM1pZ5NtJTowO+c+TEJ/kMthYfQIJARgdoEdiVEBFZGk61rGF7QL9LCnhf4aCCQhEBbwXpSQcos7cC5TJU4+TVatgRs35gDqYPZzjeMpi2BdsFvfk5b6SG4UgTgwFLKHHoL4/sOorD0NiGkT5kApxJOTtpd8db2xU7KU2xg97yw5wW+SkWt1yjd68/+Hh6HgUZT8INTi774wrPq2Ix33MSmBflOFNsfSiB1MN/5h9G1IfAtCnY4q420EFRpAnBgKW0ezYTDzhKaGQzi5kGgVKRdCS1NJeRSKezEQ8uPwBpVn+BorLzTrL53pi3e+6cN8f/8PXmx0LQhsECF0f/pZ5ri17/YFEs5R/TxTpsLi0KwEwstPwIOXdhtLYOF1MH85h1G1o4Aghy0M5m6AsOBpa5ttJPsSOXEX5HQl7QTHAKDQMYEbE0lRLHfjCfagOG4HhbXxeL6WFm3Jjkbfv9bbfGBB9vi6YuUd37eF599Gh6IrO0QZzyOmPvDv9mw1f/3A1/cRg7Ib53Mx3YrFE24xCmDcRTBOdIJOBbWNkTqoPRphA5NJoD6VyZbN3Pd8Cg8c+RmD3ji1w9/gu4oP2S2ltAOBJITWG/44uKlHDwIyUWP3UOZitxOT3mxz8eJkgnQHUC1xAWIJfc7oLun53zxq59vie+d2el22D/hiDKmxgByarw9V/d3RF1x5M0/fq0r/pc3eZnYr1PvKg/nqxpWUFOKS/MtqrGXjzMzLyIz9F2Gwu150ce4mhE4dfijJ4/Q18XOL3/NFIG4ahCwuxiLGjYwS4oNDzscWGZZFdqkQKCTSlhfteemH/WvUphISbqkW8k6pYRxVNREldM7k3Q2+Fx2OvynH7TFh7/aEisDNtA+s4T72sEE1f2Ei7r/h++2xV8cb4vfe1dBvGp/SpOIEDTJ389RV3mnv6prjfwkcy3L56hWHDiv8ptuGFk/Ag/DeaWf0VSW2LKvHJVNYYZsntd6lDSxZ0VuhtmgRU4EJiY8YZNTx7ZFTk7TKvKwDa4lRCmFadQSOkU1in72z5viN7402HkVWWCckDsBv2e7v6fmhLjrE03xwNfaotGS74zkHTRVqN2WO3hFBfAsSiHcSB1EuKiiUxFiKUjAET7qXyloF51FggNLZ+spKPvB+148R2J9W0HRIBIIKEeA028ma/YEwnq2VvpVbubtFCjYzY2cTewokNUeeaod1En6+gn5Dg1ZMqKfeAT6bcbAkXx/9O2W+OCDLfHMRTk2516C3TNR7yqeoTI6y6YHMdh1MKNJhWFMIbBWHGt82RRloIcaBODAUsMORknh+PC0G2VQKJMqgY1UwvTSblIVPmLnrkVP6SOiUeJwWc6COXI2/LOHW+IXHm2JeUpRRLOLwH+lGmfv/bNm4MziFMO4LQ2nalxZcN5wArZs0IFdB4fPA3wKAn0IfHnf7DmK8UYDAXkE4MCSxxI9bRJwPDiwMBlAIAqBiYmCFamEiMCKMivyOzZI16LbzTi1hrgW0m3kvHjsGWSS52fB/EdepXpVnE7433+yKU4tRvdipZnWmj8d8ySwIYUwSB2cwLLJvNkLjdIk4DhYE6bJ19a+cSW21fIp6n3w/tPfpe5PpTgEugYBowjYkErIMWYuyoZoM2+bLSHmyYkVdre3RUo95DpX/+jTLYGC7NqYOXVB/+oFX7z7T1vi//1+SIcm+bp4Y4HFFdquKrrfK3V9MEB/Alzf0PQ44iB1MK2dLvpjxbsgoD0BrxXURtZeDyigFgE4sNSyhxHS0E2M7zvO54xQBkqAQEYETE8ltGGBk9FUyWwYdiBw4Wx2KAzb/Po7p33xPoq6Cu2kyEwDDKQCgcU1P3Bu/vNHWuLi6mCJgvlG6af1IccMPhuf5EnA9AcUSB3Mc3ZhbF0JUPH2Hxz4nTM/1lV+yK0uATiw1LWN3pL5AjtO6G1BSJ8DAZNTCW1IMclhymQyJDsUlvoU0V6jKC1OE/vQg03x3DzCZTIxhsaDfPbptnjnf2yILzy7c65cjvijHTHR9CRgaoo4Ugf1nI+QWgkCDyshBYQwjgAcWMaZVA2FymNrnydJUL5XDXNACk0IBKmEVA/LxGZLkV8Tbcc6rZNjYYF2KeTC2tzYefWBTyQv1L3RG/5vC4EL5Aj9p59pit9+nCbQZgtqrlGkX5yaa50+8DN/AqZu0oHUwfznFiTQkwA29dLTbjpIDQeWDlbSUMbNHSf+SkPRITII5EqgVHIEpyuY1hCBpb9FW05RzO16i1iZeaX4+vNt8f2z2yNpfBQt0t/IGWnwX57whe8WxaWDt4qFsZeh3lVG3NMcxsQIrGrVFaWSed/Hac4D9A0CmwQuHhw//Q3QAIE0CJj5qD8NUugzOgFOI3TEO6KfiDNAwG4CExMeRby0RWsrSEF7IB4KuGtrQ98ri+YVN4m1q94t/MqUoPra4okf/An9/1vbdHJQ4HgbD/wymMD8qi+eeekviuK+a4S4Wghv7hlReuYxUTj396jePhib0p9wnUOTWpA6OG6YUiYZCLooTcAXzuecWUH70aKBgHwCcGDJZ4oeOwQK5MBqid/r/IqfIAAC4Qh0Ugkvzpvz3W/a4iacJfU+yi9WRePKW8T6S94h/NLENmVeaOze9jt+AYGoBF5YHRdXbZ7U2nW1qO/6eeFeOi7KTz0KR1ZUmAocb9pDCqQOKjCpIILOBFALWWfrKS47Hi0obiCdxTty38kfkfxP6awDZAeBvAgEqYSUvmBKQwqhPpb0i2Ni/eXvE8tvu0esXXPHDucVa3Lm3Hl9FIKkShI4c25uh1zt6WOi/pM/L1be/JuieeAGIRDVt4ORqm+YlEKIXQdVnWWQSxMCLa/VfkwTWSGmhgQQgaWh0bQS2RGP0vbr/0IrmSEsCChCYGKcUgnXzUglRBF3RSbVEDE4yqpxjCKujlHEFUVfDWvnLlwc9jE+A4GRBF4c4gRtTR4V9Rv/J+EtnhZFTi089TfC8Q3KqR5JR78DTCnijl0H9Zt7kFg5At889Lun8JRLObOYIxAcWObYUklNeAcKyoOGA0tJ60Ao1QmYkkrokCKsC5qaBPxSjRxXN4dyXHU0OHN+Z/RM5zP8BIEwBM6cvzDysFbtoGi95h8JlyICS8e/LIrPfZW2KzQntXokAI0O4Gs818HTfTMHpA5qNOkgqqoEkD6oqmUMkQsOLEMMqaoal8ZmHp9auUSbr4uaqjJCLhBQmUAnlbBeb6ss5lDZPHMyIYfqqduH7dKkaFz1DnJevU34Xim0+O22Ly5cmg99PA4EgX4Ezpwb7cDqnNce2yNWr/sZqsf2TlH68RdF8fm/FKLV6HyMn4oQ4Gt9U+NAOaQOKjKRIIbWBHzHeVhrBSC88gSwrFDeRHoLeP3sD9YpAutLemsB6UEgXwI1SiXUuYaUacV9850NyUdvV3eL1ev/G7H8jnvE+tW0s2AE5xWPPkfOq2YTUTDJLWF3D6fPRs8waVd3BY6spbfdG2vu2k08fe11vtaz8413AEYDARBIROCFIw+c+H6iHnAyCIwggAisEYDwsQQCPu1G6Ig7JfSELkDASgJcx3iSbqx13ZXQpOK+Ok9AjmLhHQUbV7xFCDf+1/+5C0gf1HkeqCL7ixEisHpl9ss1sXbtXWL9KorIeu5xUXqWnpM1672H4feMCWw8aPEzHlXOcJM1D6nuclCiF5sJ+OJhumXV8yJgs9000z3+HaxmikLc/Ai0it4jhWaTL2aogpOfGTCy5gSCVMKKK+qr+qUSooB7vpPPH9sr1q5+l2gefZPwneQRBqh/la89TRn90sKiWFtviHKpGFslrt+29rL3Uf22t1GNrK+I4o+/LJzGSuz+cGIyArqmi1dpx99SCUkpyayPs0GACLgUtIAGAikTwNU6ZcDoXohj9z53mjj8HViAAAgkI1CjKCwdUwkRgZXM7nHPbtcOidXX/A9i6Zb/LYi6kuG8YlmwA2Fci+C8bgJc7DtKHazuc3tf+8XxwJG1/PZ7g/RYvzzZewh+z4CAq6EHK0gdpDR9NBAAgcQE6m7V/0riXtABCIwggAisEYDwsSQCDnnkffFaSb2hGxCwkoCuqYQevmkyna/tySNi7aW3ieaBG3hbMOljn7kQvvi29MHRoVEEeCfCKw4fkKaTX6gEmxJwtGHhha+L8jOfE84qNhyQBnhERxr6rwRSB0cYFR+DQHgCXz40ewohsOF54ciYBLCsiAkOp0UkwHWwhPg3Ec/C4SAAAj0EdNyVUMdFTQ92LX5tzVxFha3JcbXvlak4rjoQEIHVIYGfSQmwAyuN5nvlwJHF9d6KJ74hyk89So6si2kMhT67COhWxB27DnYZDy9BICkBDlZAA4EMCMCBlQFkDCHE4ZqhkUkAAEAASURBVLGTf31y5fBZYrEPPEAABJIR4F0J12l/z1ZLhzqZjnBc+VFAyQiadXZr5qXBjmzN/a/KRDHUwMoEsxWDvBhjJ8JIYGizAnZiNY68SRRPf1uUnnpEuMt8K4KWBoGNaz1f79X/bgpSB7HrYBrTAH1aSsBtth+1VHWonTEBOLAyBm7rcM6saJ/4NfEY6f9ztjKA3iAgi4BOqYSe62P3BlmG7+kncFy9/H2iuefank/S/RW7EKbL16bek+xEGImT64nG4deLxsHXbTiynn5UuEtnInWBg0cTYNeV5/HDldHH5n0EUgfztgDGN4zA9w797unnDNMJ6ihKAA4sRQ1joliO7z/iOw4cWCYaFzplTkCXVEIdi/pmbsyIAzb3vEKsX/N+0Zp+ScQzkx/ebDbFxUsLyTtCDyBABGQVcQ8Ns+PIOvRTonD2+6L0o4eEt/BC6NNx4GgCruuSA0vt3XKROjjajjgCBCISQPpgRGA4PD4BOLDis8OZEQmsupXPlf21Bp0Wf8/siGPicBAwmYAOqYSofyVpBlLYXXPvq8Tay98r2lNXSuo0ejcXLs2LVlvtxWl0rXBGXgROnzufz9D890Qpt1wvjh1Z5aceFu48ggdkGIPrYDX4Tk/RhtRBRQ0DsbQmwEEKWisA4bUiAAeWVubSW9irH3h2/uSvHfoGJRS9VW9NID0IqEFAh1RC3Yr6qmHZLik2HVfrlCrYmrqi64N8XqL+VT7cTR117uK84Ki+QiGn29GOI4ucWYXzPxSlJyki69KPTcWdiV6qP7SoTRYEyjJmMhUwiD0E5g4dP/VNe9SFpnkTyOmOIW+1MX5uBHiHCl/AgZWbATCwaQSCVMKKK+qrakbFeB5XRUGLTIAX1gduEGvX3C7a4wcin57WCdiBMC2ydvbL0Xzn5i6Jg/v25A6AU3P5nzf3DBV7/ww5tJ7IXSYdBfAU9g6NVV1RLuI7Scd5BZkVJuCLR50HhQaV7xRmCNEiEYADKxIuHJyUAD1nfcQTrQeS9oPzQQAEtgjUaCel9YaauxKq/jT+/2/vPuDjqO+E//9mtqjbuCNLNpgSLiHJURNCAFvGgYRAEmzjS3WwHUIueXL3T8FA7rnn0eXuiG1S7gl3978QsPkDubu/IU7BFIODbUhIOSDlQkihuKhZcpFtSattM8/3t7Zc5JW0u5qdnfKZ10v2anbmV96/1c7Od3/lmKJHHuk5ehovVqmz3yOBqxkeKdSxYnTv2XvsFx4h4IDAbnlNeSGANVSV7OQzVeLt/8/hQNarm2SI4W+GnuL/AgS82utWl6tOVvBlQwABZwUMk+GDzoqS2lgC5lgH8DwCTgqctnrnS5LedifTJC0Ewi6QG0rY4M0P5kziXuCrMze59CWqb26rGjzvRk8Gr3RNevb2FlghDkOgMIGu7grNgzVG8XKBrIs/rQYu/xuVabxQKf1GyzamgFff8xsaGDo4ZuNxAALFC2Rt03iq+NM4A4HSBeiBVbodZ5Yu8Jic+unST+dMBBAYLhCXYRF6ZSWvDSWkB9bwlhr2uxlV6eZ3qOTZ1yi7etKwJ7336+699MDyXqv4u0RdPd5+TWUnzFKJC25S5sF2FX/tKRXr+IVStjeHbHvhleDF93yGDnrhlUEZgihgKPsnTV/p8PabeBDhQ14nAlghfwFUovq2bTxqGDYBrErgk2egBbw2lFBWU6fTwgivODtSpTKz36mSZ16t7KqJIxzlvd3MgeW9NvF7iXZ7PIA15GtNaMr1jkzJ32xcDy3s+C9l2Ez7MuQz9L/uqKanwbLsoT2V/Z+hg5X1J/eAC+i5jdkQcFmAAJbL4GQnAhm1RcXUgDyqxQMBBJwTGBpKuL8341yi40jJy5P5jqNa4zrVjlarzKxLVeqsdysrPmFcaVXiZObAqoR6sPPs6vHmEMKR1K2Gxlwgy5CVQaskkBVre06iNQSyjvcyZfEOK+ONCBZDB49vGR4j4KyAntvY2RRJDYGxBZgDa2wjjnBYYNY32hKS5BaHkyU5BBAQAT2UUA+X8MLm1cl8K2Fjx2qU7rnRP/8ONfimJb4MXqUzGdV7sK8SfOQZYIHdPft8WTu7dqoafMtHVP+8L6v0nPnS7Sjmy3qUo9Beee9n6GA5Wpc0ETgqsPPI3MZHd/AAATcE6IHlhjJ5nCygu5za6r0nP8EeBBAYr0C9rLSUTFV+VUJTjyEM+WbH61X69HkqOedKpaI1vtbo3rtP2bY3elX4GpLCnyCg51WzZLyZqced+XCzaqbkgtK6V2XstR+p2PYtysimfFgT54p8+L2/sr3SGDroXHuSEgL5BGxl/DDffvYhUG4BAljlFib9vAJG2t5oR41/zfskOxFAYFwCXhlKGOb4lV3VoFJzFkjwqkXZkfi42tMrJzP/lVdaIljlyGSyam9vr5o22fuLGIwmr4cEJ//sepU6Y4GK79gmE77/SKZM0B3Ow7d5oQdWQz2rDobvlUeNXRWwmf/KVW8yOyrA1+NHKXjgpkDT1zt2SX6/dTNP8kIgTAJeGErohZsYt9vcqpmkBs/9C9XXckduyGBQglfasXuPP4d6uf0aIL/iBfwykXshNbPjDbKq6LWqb/4/qJTMk6WHD4dtc38lwhN7huaGDsb92aMvbK8V6utbgf5MXXSrb0tPwX0tQA8sXzefvwsvS68+Kt1P3+zvWlB6BLwrUOmhhBGZyDcsmx5GpHtepGdfFti5cPQQQjYEyiHQJSsRvvmcs8qRdMXStGN1uUCW7okZy/XIelIZqf6KlcfNjN1fwOPYtYahg262NHmFWOBHc1q3D4a4/lS9ggIEsCqIH/asDVsCWIZxa9gdqD8C5RLIDSWsj6j9ByqzKqH738KXS3LkdPVEzkmZnF2vLGgbkZEPDMAz9MAKQCN6tApd3f5aibAYRr3yqF7AQc+FF931nKp65QllJA8Uk4Tvjq1k71uGDvru5UKBfSlgsPqgL9stGIUmgBWMdvRlLRq3dz7XPqdprxR+ii8rQKER8IFAXIZR6OEUAwnL3dLKF+J+nZS5ECiroVFuSt+tMjMvCnzgasije+/+oYf8j4CjArv36I8Cwd7sSFVuTrz07MtVrO2nqupPjyljMJh/U+699+uhg8d6XzF0MNh/Q9TOMwLyh2c/5pnSUJDQCRDACl2Te6fCxkMq27ZSPSUl+qB3SkVJEAieQCWGEro/hMSddrMamiRwdZVKz7xY7pvCNY1kdwiCDO68ishluMDunhANTzWjMtT4cpVuvlTFOp9X8T9uVOZAz3AS3/+uh5BnsyfOTeV8pY4Frxg66LwuKSIwgsCvmte0t43wHLsRKLsAAayyE5PBaAIyhPBRGUpIAGs0JJ5DYJwClRhKWMkhJOPkynt6dsIslTpLelydeoEEro7dNOU9OKA76YEV0Ib1QLW6eoI7hHBEXjOi0k1vV+nGiw4HsqRHltm/e8TD/faEHkKezbpXaoYOumdNTiEXMFh9MOSvgIpXnwBWxZsg5AVIqcdUTOmPOMGePCbkzUz1Ky/g9lDCSECCPNlJZx4eKjhd1psISJ1KeTUOJpPqUF84JqAuxYdzxiegA1i2Lcu6hPFvbCiQNfNtKtr1oqrSPbL6OscH6oGzc4t4pMvVA4uhgx5oYooQVgGbAFZYm94r9SaA5ZWWCGk5Zn2jbV/byqZfSPXfEVICqo2AawJuDiX0ew+s7KSzchMvZ2a8xbX28XJGu/eEaIiXlxsioGVLptLqwKE+dcqEhoDWsIBqSfAu03hhrpdntPu3Kv6njSpyYEcBJ3rzkPIu4nGsF6zOR1/b2BBAwBWBnqbX2//LlZzIBIERBAhgjQDDblcF9EoWBLBcJSezMArozg0TGmRVwt7yr0polvfupWzNpwNXyXOuU9kp55QtDz8m3MME7n5sNl+Vuatnb7gDWEOtpQNZEjjXP9E9L8scWT9Ukf2vDz3rm/9NmQPLjW3ihEiYO8e6QUweCBwTsNXjeg7jYzt4hID7AgSw3Dcnx+ECuiuqof5h+G5+RwAB5wXiMXdWJTR9Nr95ZuobVeoN71PZSXOcRw9AimFYJS4AzeTrKnR171F/dubpvq6D04XX70v6J7LvVRlaKIGsvX9wOouypVeeANaJQwdraiIqFvPZxaZs4iSMgAsCJsMHXVAmizEECGCNAcTT5RdourP91+0rm9okp+by50YOCCDgxlBCXwwh1D0dpr1FJd/wXmVNPI0XxigC9MAaBYenHBEgSDoyY3bymWrgks/lAlnxVzepaPdvRj7YI8+UpwPWsV5dupNvQx3BK480N8UIh0AmnYw9GY6qUksvCxDA8nLrhKRs8nHEblf24zJ9600hqTLVRKCiAm4MJYyYx240KlrZfJkfCVyl9FBBWV2QbWwBggtjG3HE+AR29zDP2liCOpCVmPxpGVL4qoq/IoGsnv+WT1C6V5L3ttwk7mUsFkMHy4hL0gjkF3h2zj9t783/FHsRcE+AAJZ71uQ0moBektVWBLBGM+I5BBwUKOdQQj18UAfJPLfpwNWpF+TmuLLqTvVc8bxcIHpgebl1glG2zu6eYFTEhVro1VETF39amQfbVPy1zSrW8XPPBbL0NUBfCyzLCRCGDjqhSBoIjFNAz1nMhkDFBQhgVbwJKIAWiGSzmzNmdFAeViOCAALuCJRrKKHptQmw9DL1jRer1NnXKKtuuju4Aculm1UIA9ai3qsOvfyKbxNrQrMaPO9GWTH1KhV/9UkJZMmizrYjEaPiC5PnDN0Ly7Kc6CF27BsRhg7mgWYXAi4ImBGbAJYLzmQxtgCDx8c24ggXBE796u5+2zCecSErskAAgSMC+htyvSqh05tn5r/SgavZl6v+ef+Qu8kjeFV6S/fs21/6yZyJQAECehVCttIErIaZufe4vnlfzr3n2Ybz7+ullMw8qSvu+INZDB0spSU4B4FxC7w28ysdvx93KiSAgAMC9MByAJEkHBLQqxEqdZVDqZEMAggUIKCHEuqVnBIJ51ZF1t+QV3KzI1UqM/udKnnGVcquPqWSRQlE3n0DA2ogoTvIsiFQPoH+gYTq6x9Q9XW15csk4CnbtVPV4Fs+osyz3q3ir/9IxXY8K2P40hWr9clfZhzrSVVKoWpZdbAUNs5BYPwChnpk/ImQAgLOCBDAcsaRVBwQsExzY8TK/h8HkiIJBBAoQkCv5JRKWSqbHf+34zrbck/eO1LVjgauzrxa2VUTRzqM/UUKMP9VkWAcXrKA7oV1FgGskv2GTrRqpqjBNy1RqTkLJJAlc2TtlEBW1v1AlpOLeegvRupZdXCoifkfAVcFDJvhg66Ck9moAhX+nnzUsvFkyAROW7XzNanyH0JWbaqLQMUF9CiPiQ4OJTz5W/fyVtGOVsscMFer/vl35G7aCF45672b+a+cBSW1EQWYB2tEmpKesGom594T+1ruUKk3XKvsWE1J6ZR6kpPXAoYOltoKnIfAuAWkg2wt07yMm5EEnBKgB5ZTkqTjlIAeRniOU4mRDgIIFCYQk6GEenjGgANDCSMnzXtSWBmKPcqO1an0nBaVOv1K12/Mii2rn4/v2bvPz8Wn7D4S6Ore46PSerWoJ67Yp0tpVzWo5NnXqtRp81R8x1YVk+GFRjpR9gqYMom7E1ttjaliMb5zd8KSNBAoVsAw7CfPvuuVZLHncTwC5RIggFUuWdItTcCUebAs9fnSTuYsBBAYj4AenpF0YCihUzctI9XFjjeo9OlzVXLOlUpF3e1RMFKZgryfFQiD3Lreqhu9/Zxoj5GDRna8/nAgS4L+sZ3PqPhrTyoj1e9EpnnTMM2Ry5L3hDw7Dw8d9Mak9HmKxy4Egi9weI7i4NeTGvpGgACWb5oqHAXt2nfqs6ee0nVAassENuFocmrpIYGhoYT7ejMll0qnYZbpi3Ldi0DP6ZI+vUXZkXjJZeTE4gS697ICYXFiHF2qQFcPPbBKtSvmPD2UUA+7Tp8+T0V3PaeqXnlcGcmDxSRR0LE6+KSvCfbQ9Iondw4bMx2GDo5JxAEIlFPAttLmE+XMgLQRKFaAAFaxYhxfVoGL7n4h3bay6UeSycKyZkTiCCCQV2C8QwnL0ftKz+OSOuNdKj3rMpkhPpa33Owsn0D3nr3lS5yUEThOYLdM4s7mnoBe+EJ/IZCZdenhQNarm5Qx2OtoAXQvrKMLhBTZIYuhg442BYkhUIKA8eKsb7S1l3AipyBQNgECWGWjJeFSBfRKF7ZhEMAqFZDzEBinwHiGEjo05UmuBnolrdQZ0uNq9uXSrWu0y1UJX+uP0yhMp9MDK0ytXdm66lUI2dwXGApkpWdfoWJtz6n4K48pM+FMz0s9kXs2W3ydGDpYvBlnIOC0gHy62uh0mqSHwHgFRrsjGG/anI9ASQIpFX8sptLckZakx0kIjF9gaCjhfhlKqP8QR92G/aU6seqUXTtVJWV4i+4VYBuFzH1S5Nf6o1aIJ4cL9Oxz5kZ2eLr8jsBwgd6Dh9RgMqmqq6qGP8XvbgiYkdwXBunmS1Ws83kV/5MEsvp3jyvnSG4erDGvJCflwdDBk0jYgYDrArZp6MW12BDwlAABLE81B4XRAnPu3N7VtrL5RZk14UJEEECgMgJ6KGGNrPw0kLBGL8Cw2JE5jgmwrIZGmZfl3So982KZOKVME2mNXhueHSZw4FCfSiZTw/byKwLlE9ATuZ/W1Fi+DEh5bAEdyGp6u7wXv01Fu15UVX94RAJZXWOfl+eIUr7UYOhgHkh2IeC+QPes6l0vuJ8tOSIwugABrNF9eLZCArahHjVsRQCrQv5ki4AWqK+LyKqE9rH5SwpgKeVmxZrQJEMFryJwVYCv24ewAqHb4uSnJ3IngOWR14F0x800Xqgyp16got2/lR5Zj6jIgZ1FFa7YlQgjMg5dX3vYEECg4gKPGq2yNjwbAh4TIIDlsQahOEcEDi/Z+r/wQACBygnkhhJOiKj9+wsYSnikmIeHixRW5uyEWSp11rtzN0e5paoKO42jXBTo3rvPxdzICgGlurqZB8tzrwMdyJrxFpWZ/uZcIKvqTxuVeWBHQcUs5pqgE5zYYHI5KEiWgxAor4BtM3ywvMKkXqoAAaxS5TivrALNtW3Ptw806YkXZpQ1IxJHAIFRBWLRAocSHkmlkB5Y2clnSo8rCVzJDRGbtwXogeXt9gli6Xaz6qV3m3UokCXv3dE9L6v4H6VH1v7XRi1vIdeEoQQYOjgkwf8IVFwgnTLjmyteCgqAQB4BAlh5UNhVeQHdZbVtpXpCSvLxypeGEiAQboFihhKONlwkO+ksmeNKJmcncOWbFxQrEPqmqQJT0K7uPYGpS5Arkpn6RqV/IvteVfFXN0nPrN/kra4eEljIxtDBQpQ4BgHXBJ45c/VrB1zLjYwQKEKAAFYRWBzqsoAeRmgQwHJZnewQOEmg0KGEOniljx2+6Zuc1BuuU9lJZwx/it89LtBNbxiPt1DwiqcncWfzj4DuUZuY/Oljgaye/5Y1eE5cdTAia3Jkj86kM2zp2iNVZeigf9qckoZA4PBULiGoKFX0owABLD+2WkjKXDOY2JSoqUlLdWMhqTLVRMCzAoUMJdQ3KUc3PdRk2ltU8uxrlHXK6Ud388BfAvTA8ld7BaG0ehJ3Nv8JHA1kHdyl4q88kVu9cCiQpb/cyFpDQa2Tv+Vg6KD/2psSB1vAVsbGYNeQ2vlZgACWn1sv4GWfcte+g223NP1EemHNC3hVqR4CvhDIDSVMy6qEmaEbkROLnRsqciRwlXrDe1V24mknHsBvvhOgB5bvmsz3Bd7Xe0ClMxkVi/IR1Y+NqRfnSFxwkzIPtcvQwqdUrOMXytTDCEe5brDqoB9bmjIHWODVWXe2/SnA9aNqPhc4/vtyn1eF4gdRwDDtR4NYL+qEgB8FckMJGyISU86/GQ0zVP8V/0slLv40wav8RL7aa0mPiT37e31VZgrrfwH9umP1ywC0Y0OTGjzvRjVw+d8qY2LjiBWaoK8pI11URjyLJxBAoGwChvph2dImYQQcECCA5QAiSZRPwLAJYJVPl5QRKF5gaCjhCWcakdyvmTPmKat+5BuVE87hF88L7D9wQGUyWc+XkwIGT2B3997gVSqkNco2NCrr9MsP1/7ItWKIorbWVPEY0ashD/5HwBMCzH/liWagECML0D97ZBue8YDAzDWdL7etbNJrNJ/hgeJQBAQQEIGhoYTp+Ckq8bblyqqbomJdL6nIhOn4BEiA+a8C1Jg+q0on82D5rMVGL252QqMavPAjKn3qucrs36tqfrFWxVK9qr728Jcfo5/Nswgg4JaAbRgHD9ZMfFapdreyJB8EihagB1bRZJzgtoBh0AvLbXPyQ2A0AT3cY0J9RKVPf6f0uJqmlGGqdONbVG/1DLX/4AGVSuu1F9j8LtDNanB+b0Lfln93Dz2wfNt4xxVcXwv0NUFfG/Q1Ql8r9DVDXzv0NYShg8dh8RABDwgYyn7q3NaXUh4oCkVAYEQBAlgj0vCEVwQsy3zMK2WhHAggcFhAD/uIxU/uxJtKpdT+A71qX2+vSqaScPlYoGfffh+XnqL7WWA3wVM/N1/uvV9fA/S1QF8Thm/62sHQweEq/I5A5QWYuqXybUAJxhY4+e5j7HM4AgFXBTJ10a2xgXS/ZFrnasZkhgACowo0dm1Su2qnq+Tkk0f4pjNp1XswraKRqKqtqVE11VWSFnOdjArqsSfpgeWxBglRcboYQujD1rZVYjCpBhIJlclmRix/1b7XlL52sCGAgOcErJQdf9xzpaJACAwToAfWMBB+9Z7AnNbtg8pWT3uvZJQIgdAK6Hnp7jas9PtObX+wJhIx/9qwlZVPQ9/IHOw7pPbs25e7sbHtfEexz4sCPXv3ebFYlCkEAl3de0JQy4BUUd7TB5ODsmLp/tx7/SjBKztqmF++pP0fYqaVvlyGKq2WLzVeEAWuCgF5KVAN3ws8P+fO7V2+rwUVCLwAPbAC38QBqaCpHpWPONcFpDZUAwG/CeyRzlNblG1slnuNx5rXtLedWIEbv/n0w2v/YNr2/y+Tmkw88bnDv2UtSx3q71P9iQHpjVWt6mpq5VB6ZOWz8so+hnF5pSXCV46efb0qm82qSIRJvr3a+rZ8G5EYHJQvJgaUfn8fY+uTgNVHLlt44w8PH9fxY/lf/6jO20+dls1E5sk1ZoH8vFc+6zUdPoZ/EUDATQGGD7qpTV7jESCANR49znVP4PCSrvpbOu543VMnp/AKyPgP49fyB7cxYmYfaazu/KXRmr+H1RDR/MXLN21Zf89FRsTQNyhvHNo//H9LbnT6BwZyvbFqqiSQVVujTJOb1OFOXvi9Zy9zYHmhHcJYBh282rv/gJo+dXIYq+/pOlu2lXv/1kMFdRCrgO0Vw8i+b+7Cm17Od2zjV7p6ZP9DR37Ujttmn2FmresM075WglmXy349/pwNAQTKLGBEWDSrzMQk75AAwQCHIEmm/AJtK5t+Lbm8tfw5kQMCoRTQwwI3yw3D5prBxKYpd+07WIrCj39wb0MmYzwo576vkPMNiUlXVcVlOfU6elsUAubSMbpHxbs+/KlcLxiXsiQbBE4QuOvLt6q3vvENJ+zjl8oJWFn58kF6Ww3IcEGJXBVUELnJ2GSZxgdbrl/WW9AJww7qaJ1Za/epS5WpFtjKXCAZXyCHcO8yzIlfEXBAoLNpTXuT/HEV9sftQIYkgUCpAvTAKlWO8yoh8KhkSgCrEvLkGUSBPqnUVrkXeCRiZp5sXNW13YlKXvb+FYfWr1+/cFqk7x/lg9CtY6Vpy2elwWRSDcpKVdVxCWTVSCArSo+ssdzK/fzeI0O4yp0P6SMwkkBXz14JYI30LPvdEshYWZUYSOSGC+r36yK2u63JOz/T0tI68ozuYyQ2s7VjQA6Roeu5H/X6LaefGlPpyyWEpaeUeK/80EVPENgQGK+ADPF9lODVeBU53y0BAlhuSZPPuAX02GzbMG4fd0IkgEA4BbISrPqVoazNMhhwc+fBxm0X3f1CuhwUS5YskbzUbVs2rPuV/N2ulcc1Y+Yj3+jnAlkSzKqSQFad9MiKRblEjelWpgO6mcC9TLIkW6iADmCxVU5AT8auh3sn5T25qLCVUkkJdH2qZdGK+5wu/ZEJpnPDDe0bVKTzzMbzslZkgWHYC6SQV0h+cafzJD0EwiAgwSvdSYANAV8IcHfgi2aikFpg5vaOn7XPadKfaKcgggACYwvYynhdvlV7Sj7Yb85GIptPW7XzuEmNOsZOYJxHtCxc9p8yufvrpqE2SFIzC00uKb2x9E88HlN11XW5/ws9l+OcEWD+K2ccSaV0ga4eViIsXa/0M1OptOof7Ff6/xK2DstWC+cvXvHzEs4t6hTjISVflHS+ICfpn9VdX5xRJ9P+v+PwcENDD2Gn/15RohwcYoFkTKV+FOL6U3WfCRDA8lmDhbm4+sNK+y32JumF9eEwO1B3BEYRGJChFc/ZslqgTL6+eeaq3If7UQ4v/1MyufvPZV6si7MZY4N8i//2YnLUN1CpVK+KRqK5yd6rZNJ3+ZaQzQUBViB0AZksRhXYTQ+sUX2cflJ/adA/0K/SmZJH/P0ymo1+4LIlS3c6XbZC0jv1q7v75bih4Ya36cngI5YlKxvmemddJc/lXSG3kLQ5BoEgC8h91bZpq/ccCnIdqVuwBAhgBas9A18byzQflSFJBLAC39JUsEABWbvc+OXQsMCBZO2zZ9/1SrLAc107TObF6tiybt08Y4J1t5T3Y8VmrIeyHDh0SEVlHpa6mhpVXSWLUhmEsop1LOb4HoYQFsPFsWUQIIhaBtThSR4Zut0vKwrq99nSN/sB+6D5ycuWLZUZ3r2xSY9jvTCJXHPU3XmGG86T/dwDCQIbAtJLn+GDvAx8JcCbt6+ai8KqlHpCxZT+lMVrl5dDWAV2SzekZ5T0srKUsXH2ml3lHwvogHTLsmX6xmbplg1rf2PYapU8Lnqm9lwgq++Q6pN5WWolkFVbXU0gy4G2yZdE997jRpvKAbbc6BoEDfNRsa9MAroHFq+7MuHK3/PA4KAakMBVViZpH8eWtQ11W8vCFV8dRxplP3X4cMO225umyCfJ+XItXSCZv1t+Zpe9EGSAgFcFTPWYV4tGuRDIJ8BX2PlU2OdpgbaVTT+WAr7T04WkcAg4J5CQD9k/GRoW2Liq80V54y5yTl3nCuNESlu/d+97lGX8u6R1ynjSM2VyrdqaWglk1RBcGQ9knnNvvu3v1e9f3Z7nGXYh4J7Ahru/pqZMGtfbhHuF9UFOOiA4MJiQwNWAsmSyqnFuvcq0Pzzv+hWPjzOdip8+bLihDmg1FFUoTckdVVFkHOwZgZeb17S/yTOloSAIFCBAL5YCkDjEcwK6qysBLM81CwVyUEAPfdisJ1+P16Uen97a0+dg2hVPSt/wbFl/z8VGxPyhFKbkiXb1DVhff39upawamR+rtrZWRUyz4vULQgEYvhWEVvR/Hbr37COA5UAzWpZ1JHCVyPVqcyDJVwwj+76519/0sgNpVTyJ44cbvt56enW8L3XZ4cngTemhZV8gBRw9PDX6sxWvHwVAYCQB+XKU4YMj4bDfswIEsDzbNBRsJAHbMh41TPuOkZ5nPwI+FNgjH4+36GGBRsZ6vOnrHbt8WIeiityy5BOvbPneuksNy/oPuTfQ33iXvA31KkgkB1UukCXDCyORokcolpx/0E7MZLK5OccKqdfbz3+zapw+tZBDOQaBnMAvf/t7taO9qyCNLhlG+MazzyjoWA46WSCbzeaGCer3Rv0+6cxmP2Gb5ofmXX9TrzPpeSuVOa3b9XD3ocnglaxuOD1jROfKNVomhFfvlS+WmrxVYkqDwDgEIsx/NQ49Tq2QAN8ZVAiebMcnIMMIt0sKp40vFc5GoGICMo+b8Ws9+bpMK7SxsabjOaNVyYTs4dvWr18fmRbp+0e5GN3qWO0lsapYXFYurFOxKN/TFOva2b1HffAzYzfH+6+aqz5y/XuKTZ7jQy4wkBhUX//2d9RvXv7TmBKf+uhi9aH38xobE2rYAXq+wH6ZK3AwmZJnnApc5TK525688zMtLa16LtJQbjtunX2uaVvXGodXN7xcEGRVETYEfClwoKv31GkX3f1C2pelp9ChFeCTfWib3ucVt2Uyd0Pd7PNaUPxwCRwdFpg0q548c/VrB8JV/fy1XbJkiZ5B+LatD6/9tfxN3yuPa/IfWcReuV/TS8Lrn6q4DmTVSiArVkQC4T60e8/eMQH+4rqr1KJr5o95HAcgMFygtqZa3faZG9Xd39mgtv70heFPn/C77oHFVrhAJiOBK5nfajAli9E6GrdSSVvZn2pZtOK+wksTzCNPW73zJamZ/lnd0Tqz1u5Tlx433PDCYNaaWgVUYBPBq4C2bMCrRQAr4A0c1OrJEMJHZdw2AaygNnAw6tUnAZmfyZDXjdFI5geNq7q2B6Na5anFvMXL/2Pbw/f83jbM70sOjq0INRTIiseiMuF7XS6gVZ4aBCfV0ea/0isRfnThNeq6BbrjARsCpQlEZYjvp5feoGbOmKb+/ftPjJjIaK/FEU8K4ROpTFoNSI8r/X7n/GZ0WrZ9/fzFK37ufNr+TnFma8eA1ODocMPXbzn91JhKXyUBrWslgHilPDfZ3zWk9IEWsBk+GOj2DXDlCGAFuHGDXDUrZW42YnZC6jj+3hpBhqJubgpITyLjV3pYoAwG3Nx5sHEb32wVxz938Sd++eMf3PuObMbYIJ0H3l7c2aMfnUpnVCp9IDeksFbmyKqSSd8ZQ5/fTE+cnW/TwauPL75WXTOfNTTy+bCveIEPXD1PnTKhIdcbKyPzNQ3fumQ4K9sIArqnaTqVGyqYlgBWmbZfRrORD1y2ZOnOMqUfqGTn3LldT+52v/6xb1CRzjMbz8takQVHhhvOlf10BQ5Ui/u6MlbUzoz87YGvq0bhgy7A5/egt3CA69e+cubj9jgnfw4wD1VzR6BTstGrBT6SjUQ2y0pG+93JNti5bFm3rtqYYN0tAcGPlaum0WhE1VbX5iZ9J5J1ovI37nlQfX/TlhN2mrK6419+bLGae4lekIsNAWcFfvXSH3LzYh2es+lY2jXVVeqJB/712A4e5YYG6knZBwYHlF5woXyb/YB90Pxky7JlelJztnEKdLdOq0/3xS6R3lnXWcq8zlD2nHEmyekIjEfgp81r2i8dTwKci0ClBOiBVSl58nVCQC/9Oq7Vy5woBGmESmBAgh3PyfDVzREzu3nmqs7RJ3AJFY1zlT1yw7R0y4a1vzFstUpSdnxJQX3jd7DvkOob6Fd1NRLIqpYeWdLDiE2pzu6eExj0cK/PLvsL9Y4L33rCfn5BwCmB8849R7V+/ma1+l/vU/sPHDqabGIwqQ4e6lMTGuqP7gvrA72KYGJwMDfHlWWVdc2PrG2o21oWrvhqWK3LUe/prT19ku7QcMO/3nHb7DMiliUrG9oL5Euwq+S5ieXIlzQRGEFA30OxIeBLAT6t+7LZKLQWkKWN52TMqJ4Ymw2BsgnYhvE7WXHoET0scCBZ++zZd70is+OyuSWw9Xv3vkdZxr9LfqeUM0/TMGWOrGrplVWjDOltFObtjn++R23a9tMcgV7F8Quf/Ki64C1/FmYS6u6SQM/e/eqOf16r2rsOB1FrJbD8vXu+rqqrqlwqgfeysSVYNTCYUHr1Rssua+BKV75XmfaH512/4nHvSQS3RCcMN1T2dVLTd8hPuC9EwW1ub9TMVuc339n+K28UhlIgUJwAAazivDjaYwJtK5t+J0V6o8eKRXH8LdAtvay2KellZSlj4+w1uzr8XR3/l/7p9feeY0aNH8i31OeUuza6F5a+aa6VXll62FwYt50dHbk5iXoPHlKL33uleuNZjHQJ4+ugUnXu6x9QD254THX17FML39OirrxMRl1JgDlsm+5lNSArCg5Iryvd+6rsm6H+YGXs989fsuIPZc+LDEYV6PjCzKmWabTIZ5EFcuB75GfWqCfwJALFCXQ0rWlvliCAC28sxRWMoxEoRIAAViFKHONZgV23NN8pk2N+0bMFpGB+EBiUD4k/HhoW2Liq80Uu6t5rNpncvSGTMb4jJdPfTpd/kxdBdbxKhhfWKT1fVpi23oMHZTUzOhqGqc29XNfpU6fKW3R4Pq5mZTL7gURCJZIJCVy50zKiu0kCJh9suX5Zrzs5kksxAsOGG+qpMxqKOT8XpgjPn1BRNKE82Fbfkt5Xnwpl3al0IAR4OwtEM4a3Ertua55nWPaJsw2Hl4OaFy6gh57qydc3VxnJJ6at2XNs0pXC0+BIlwXWr18fmRbp+0e5cN3qWtaSWVUsrupqa2UFw3AsIHXg0EE1mCSA5dprjIxGFpC/vxlTpo38fICeyWQzuRUFD09k71Lk6rDf3fbknZ9paWnNBIgzsFXZ9bnmGjNivVMGGC6wlSk9tGy9sgb3c4FtcecrJl/8v69pdccjzqdMigi4I8AbnjvO5FImAbtVRdsHmvRkGWWdH6dMxSdZ9wT2yMe7LXpYoJGxHm/6escu97ImJ6cFtj689kPSnvdKujVOpz1aevFYVHpk1at4PNiBLAJYo70KeM5VARnSO2PKVFezdDuzVDojPa76pddjyu2sk7ayP9WyaMV9bmdMfs4JyHyw0zNGdK5cE/Vww2vlZ6ZzqZNSAAWS8drU1COLCgSwelQpDAIEsMLQygGvY9utTeulJ80NAa8m1StOQNYWN35lKGuz3P9sbKzpeM5olWnY2QIjsO3he863DfP7UqHZbldKB7JqZWhhVTzudtau5HdAVmcclHl32BCotIBeUGH65CmVLkZZ8k9l0mpgYKASgSupj9Fp2fb18xcv/3lZKkeiFRPYcevsc2XhmWull41e3fByKUh4V0CoWCt4OuPHm9e0X+PpElI4BMYQIIA1BhBPe19AJnL/uJTyPu+XlBKWWeDosMCkWfXkmatfO1Dm/Ei+wgIyL9bMbMbYIINt3l6Joui5sepksvfDK6QF53J6qK8vt+pZJUzJE4HjBfRCCtOCFMCSN6tkOiVDBftVOlOxEXu/jGajH7hsydKdx1vzOHgCHa0za+0+delxww0vDF4tqVExAhLY/B8yfPBfijmHYxHwmkBwPnF7TZbyuCbQefup07LZSJdkGL5lilxT9mRG/dJl/qe2ZWyM2ekfnvrV3a97spQUqqwCjz32zaraRMO/yTwgN5Y1o1ESj0QisnJhjaqRH+nx5/uNAJbvmzAwFdB/W1MnTfZ/fSRwNZgazM1xlZFJ2l3ZJE+5Rg7b7P+MZxuWX7pkSWLYE/waAoHtXzqtMZrOvEs+LV8rvbP0kMNJIag2VTxOIGplzuDz8nEgPPSlwEmXNl/WgkKHXkB6Yelu8G8LPUSwAY4OC5TBgJt76yc9c27rS65PGhJsYv/Wbtt3135S7tf0t4rRStXCNExVU1MtwwtrlH7s1+1Qf7/MyTPg1+JT7gAJ6F6OU07xbwDLlmUEEzIcV68qmLVcClzlb/+sYRh/M3fhstX5n2Zv2ATsG1Sk88zG87JWZMGR4YZzxSDYEzyGrZGH1ddQ9ktNazrePGw3vyLgO4GKfdD3nRQF9rSAYduP2oZBAMvTrVR84eRi22Ur4yn5pvARO2P8aNY32vYdS6Xj2EMehV5g7qLldz/98NodpqH+UzBOXtQhb28EZ9ks28r1sNA3qzVV1bmVC/UQKL9tQehF5jdzyptfwDi5C1H+Az22V+aXygWBE/JeoB9XeDsk19KPzl24/IcVLgfZe0jAeEhJRLXzBSmS/lnd3TqtPt0Xu0R6Z10nn7veJ/tOlx+2YAlsDFZ1qE1YBeiBFdaWD1i9O25rvNCyzOcDVq0wVmdA7lees2W1wIiZ3TxzVe7DVRgdqHOJAlvW33OWETH1jdobT0zChQjWiRnKcELDl4GsPpmfp18ml2ZDoNICesGESRP9M8pJB7F1ADuRGJTAlSfWDXnFMLLvm7vwppcr3Zbk7y+BHbfNPiNiWQvU4cngr5LST/RXDSjtcAGZ3P+KmXd2Pjt8P78j4DcBAlh+azHKm1dAbk2N9pVNbfIkywfnFfL0ztfk2+GNMizwkYFk7bNn3/VK0tOlpXCeF9jyvXWnGJb1H/K28G5PFFautNXSI6teJnzXc/p4fdPBKx3EYkOg0gLxeExNmnByh8pKl2t4/lmZ16pPht0OJmX1zop3uBoqnf2EbZofarl+We/QHv5HoBQBu1VFOwcb/1yGG14nl7Nr5UV+vqTjv+7FpVQ+OOfsb6ptny4rclds9YjgUFKTSgsQwKp0C5C/YwK7bm2+V4YSLncsQRIql0C39LLapqSXlZ1Wj8qwwPZyZUS64RVYv359ZIbZt8o21Bc9o6ADWbGq3NDCaNS7I/j1/Fd6Hiw2BCotUBWvUqdMmFDpYoyYf0ZWEtQB38G0fO/iduBqlE6lhq2+utuqv23JkiUVnXhrRDie8LVAxxdmTrVMo0U+yy2QirxHfmb5ukIhKLwMC/2PWWvaPhyCqlLFEAgQwApBI4elirtWNi+UnjzfDUt9fVRP/W3Pz+Xi+YgeFti4qvNFeeNx+6O+j7goqpMCWx9e+yH5kH2vpFnjZLqjpzXKneWRE/XQqNqaOlUVj4+eVAWe1UOgDvX3VSBnskTgRIHqqio1scF7AaxUJq0GJHCVTHluHZGkrexPtSxacd+JkvyGQPkEjg43VPZ1kosOalWXLzdSLkVAPoN/VAJY3ynlXM5BwGsCBLC81iKUp2QBPQFlaiC+RxKoKjkRTnRK4DVJaLOEqTZXGcknpq3Zc8iphEkHgWIFtjx870WGaTwor8dzij233MfHYjFVJ0MLvRTISgwm1ME+AljlbnvSH1tAD72d2NAw9oEuHaEDVv3SQzGdTruUY1HZ/N4yzY/Ov/5GPSk3GwIVEdj1ueYaM2K9UwYYLrCVKcEs+wIpCPebFWmNo5lmVUTNaP5K+96je3iAgI8FeEPxceNR9JMF2lY2bZa9V578DHsKFhi780i+pPbKx5On9bBA07CemLm6Y2e+g9iHQKUEnlu/viYZ6fvfctG7Rcrgubk7opGoDC2skbmydPy9spdmAliVepWS73CBmupqNaG+wgEsuSYm0xK4knnh0jJk0IObvmp/O9kf/fzVS5cy9teDDRTmIu3+0vQZ6XTsCrms6Z5Z18lPY5g9KlT3nzSvab+sQnmTLQKOC1T2U7Lj1SHBsAu03dL0OblIfj3sDi7UX+bVMH5lKGuzTL6+eWZ9x1YmhnRBnSzGLbB1w7p3KdteJwk1jTuxYhMoIDgcMU0ZWliraqprZBXDYjNw5viETER98BCdJp3RJJXxCNTK30FDff14kij9XPl7HUwNyoIGA0pP0p53K+BvOu95zu3sspT1ifmLPvGoc0mSEgLlEZDJ4E2ZDP58mQx+gXF4dcPLJSdGTZSH+/hUvyQBrK8cv4PHCPhZoEIfj/1MRtm9LNB2e9MbVFb9wctl9HHZjg4LlG/TnprzT9tZ2cjHjRnmoutVCiXw+s8yZ95HvOpgmkYuiKWHFxouR7L0SmoHCGB59aURqnLV1daq+to6V+ts27ZKDA4qvZhB1rJczbvIzB7KGJG/XLDw4wwLKhKOw70h0NE6s9buU5ceN9zwQm+ULFilsA3jrbNWt/13sGpFbcIsQAArzK0f0LrLMMI/StXODmj13KxWv/Rm+6ktwwKj2cwjjV/r+p2bmZMXAuUWkN5YN0hvrH+TfCafkFfle1UcLY4OXtXIPEB6eKFpRo7uL+eDwWRSAlgHy5kFaSNQkECdBK/qJYjlxmbZlgStEmpAgle2twNXB6QH9GfnLVr2gBsu5IGAWwJdX5wxJ2PG3qUO987SQw4nuZV3gPPZ1bSm/TS54defbNgQCIQAAaxANCOVOF6g7damf5K36b8+fh+PCxKQr5qNXw4NC+ytn/TMua0veW6JpYJqwkEIFCjw4/X3z85EMvfJ4S0FnlKRwwyJJlfLfED10iPLjJR3Cq9kMqV6D8k9MhsCFRaor6vLLXJQzmJYEqzqzwWuEnKLN9I9nmei2k/ZKru8ZdFNbeU0IW0EKi1g36AinWc2nnfccMO5UqZYpcvlu/xt9f8239n+ad+VmwIjMIoAAaxRcHjKnwLtK2e+S5aLfdKfpXe31DKEqku6Fj8rw6k22hlj46xvtO1ztwTkhkDlBWTIkPHMhnU3yS3qN6Q07nT3KLXa0iOrOh6XQFadikTL0yMrmUqq3oP0wCq1iTjPOYGGunqZE67GuQSPSyljZVViIJEbLmh7v3NCQnpj/t0Vv9lxp9Ha6ulxjccR8xABxwT0SuPpRKxFLtfXSqJXy89pjiUe5IQMdW3z6nbmyAtyG4ewbgSwQtjoQa/yS63nxicO9O6RelZ46SJPSg9IR47n9LDAiJnd3Liq80V5E9BfLbMhEHqBZ9avfZMVUXpYjl7229ub/OFWxeK53imxmLNfSqfSabX/AFPcefsFEI7S6RUI9UqETm6ZbEZWFBxQSRkq65mLny7IiJ/IjV9YWWvp/CUrmN/TyRcCaflaYMdts8+IWNYCPdxQvrS+2rDtCb6uUHkKnzBr7akzWzsGypM8qSJQGYERL5eVKQ65IuCMwK6Vzd+T3kUfcCY136fymlhslF5Wjwwka589+65Xkr6vERVAoEwCz3/rW7FDU6N/I0P2/qdkUZ4uTg6XPR6LSi+VOlUlPbOc2AhgOaFIGk4IOBnASmXSakAHrlK+GRmfkbjW1xr2pP/2optvTjvhSRoIBFFAVjeMyuqGfy7DDa+TG1vpoWWfL/Us71h7f0BulNUHr/NHUSklAoULEMAq3IojfSSw65bmT8gSvd/2UZGdLGqPfJO7VUkvKzutHpVhge1OJk5aCIRBYMt3110igV/dG+ssv9Q3Go1Kj6waVSWTvo/n4p6WHlj76IHll2YPdDknNkxQ1VVV46qjDljpHldpCWD5aPu9DG3+WMviFc/7qMwUFQFPCHTefuq0bCYyTy6EeiL4a+Sn2RMFc78QfykBLL1QDRsCgRIYz2fcQEFQmWAJbP/SaY3RTEYHbsLwGs9IPX8uXagfYVhgsF7H1KayAj/+wb0NmYzxVSnFJytbkuJyj0QiuUCWXr1QyZxZxW7pTEbt691f7Gkcj4DjAqdMmCA9C0sIYEnXpcF0UgJX/SqTyTperjImqAcTfjvZH/381UuX9pcxH5JGIDQCR4cbKlv3RtJBLWfHJXtU0sxap8/8WucOjxaPYiFQskDxn2xLzooTEXBXoG1l04uSo+5GHMTtNanUZpnAY3PNYGLTlLv2MeNyEFuZOnlCYOv37n2Pssx7ZVhCoycKpAsx6pw5h0sZMSO5CbBr9RxCRQSyCGB5ppVDX5BTJk7MzfVWKISejF3PbdUnPa6yWV8FrnQVuwzbWDF38bLHCq0vxyGAQHECuz7XXGNGrHfKAEOZO8uUYJat57wM4v3wb6T31Z8Xp8PRCPhDIOqPYlJKBEoQMNSj8lnWewGsAm4889R2r1xen9bDAs1sdhPfqOQRYhcCZRKYd/2Kx3+y4f7zMlbmbttQ7y9TNsUlW8DH7ayssnaov0/1JwZyE2HX1dRKHGvsE81AfpYvjpejvSEw9qv1cDlluF1uNUH9WrcsXy7S91A8a33q0iWfYCVgb7z0KEVABWRajYRUbfORH7X7S9NnpNOxK+Syp3tm6R5a3vmiSgozjo2VB8eBx6neFij0s4G3a0HpEMgjID2wLpHdP83zlB92yVfHxq8MZW2Wydc3dx5s3HbR3S/4agIPPyBTRgSKFdi24d6lsornv8h59cWeW+njdfBKDyusq61Vpjny/La658qe/dxHV7q9yF+pyadMUjGZ222kTQerBgYTaiCRUDqI5cOtV4r92ZbFyx/0YdkpMgKBEpDJ4E2ZDP58mQx+gcyju0C+BL9CKujM6iguS8mqjJc13dnxE5ezJTsEXBEggOUKM5lUQkBfiNoHmjol7+mVyL+EPI8OC5Rvg56a80/bWce+BEROQaDcAlu+t+50w1L/nww90B9ufbfJCosy0Xtc1dfWKT1f1vBN99zas48A1nAXfndfYMqkSSoaOTmApV+jAwMSuEoOyp+hLwNXGvOpbDay7MolH2ehFfdfWuSIwJgCXV+cUZdVkXccN9zwwjFP8sYB+5peb59uPKR8N47aG3yUwusCBLC83kKUb1wC0gvrfkngY+NKpHwn98t95E+lN8fmaDbzSOPXun5XvqxIGQEEnBRYv359ZEa0/4vS6+PLkq4vv6HVIwWrY1XSI6tORaPHAlmWBAd6CGA5+XIhrRIFpkyaLAGsY69N3TuwX3pbJfwduEpIb8i/u+I3O+40Wlt9Od6xxObkNAR8LXB0MvjDvbPeJZU5xZMVstWDzXe2e/Xex5NkFMpfAgSw/NVelLZIgfZbZv6FbRj/WeRp5TpcPqgavxwaFthbP+mZc1tfSpUrM9JFAIHyC2z7/rq32FlLhv8Yby1/buXLoSoezw0tjEVjyrIt1bN3b/kyI2UEChSYOnmKishw14ysjKnnt9ITtHu+v9Wo81wav7Cy1tL5S1b8oUACDkMAAQ8K2DeoSOeZjecdN9xwrhQz5oWiyvDHDzWt7vDKvY8XSChDwAQIYAWsQanOiQKv3nrGxCo72SN7K3VR2S29HJ6Reaw22hljo0weybicE5uI3xDwvcBz69fXpMy+VfK3/lmpTJ7r6qh3tJ6qfzwWl5ULq1XvQRY29VTDhLQwE+ob1KAErVJp33/Xk5Z3gS+ryTtXtbS0ZkLanFQbgcAKdLdOq08nYi0yquJaqeTV8nNahSorox7VjOavtPMtVIUagGzLL5Dng3b5MyUHBNwUaF85c5utDLfmqknI7etP9LDAiJnd3Liq80X5I9N3r2wIIBBwgacfuu9K07Tuk2o2B7yqVA8BBAoXeFmGGi9tWbzi+cJP4UgEEPCzwPHDDeUe5GqZVH2CG/UxlP1M05qOuW7kRR4IVEqAAFal5MnXNYH2W2eulIDS6jJm+JqkvVm67G5M1cSfmtO6XWaVZUMAgTAKPLvxO5OyycF/lY5YH/RN/XWInU8DvmmuUBfUX69V+eihvlmVqb/90iVLEqFuNyqPQIgFZFGpaGdi5iWy3sS1tjIXyPfaFwhHWa66ci9yqwwfXBNibqoeAoGy/PGEwI0q+khgx62zz43Y2d86WOQeuexsVdLLSi5CjzWvaW9zMG2SQgCBAAhsfXjth+R94l+kKpNOqI6/bsBPKDq/IIBAwQK7LMtcNv+GG39U8BkciAACoRDovP3UadlMZJ58RpBglrpGfhzrtR3JZs9lUahQvIxCXUkCWKFu/vBUXlYjfF1qe3qJNU7KeT+WbzWetC3jyaY7238tfzj6NpQNAQQQGFFgy3e/3WyoyDo5QH9IZUMAgTAIGOpBWTzmsy3XL+sNQ3WpIwIIlC4gNxNG+y1Nf26Y9lXSZfMqSeky+akqMcXt8qX6nBLP5TQEfCNAAMs3TUVBxyMgASzdE+LTRaSRGxYoYarNNYOJTVPu2seMxkXgcSgCCBwWkLlvjGe+e99f2Yb9FdlTgwsCCARWYK8yjL+ct3DZQ4GtIRVDAIGyCuz6XHONGbHeqUy1oNjhhjLX1j/PWtOmF5NhQyDQAgSwAt28VG5IYNctzddID6pHh37P8/8+6cr7I93Dysxam5q+3rErzzHsQgABBEoS2Lbh229UduQB+bb1wpIS4CQEEPCugGE8mc2Yy69c8vF27xaSkiGAgN8E2j8/c5YVMa/WPbTkS/UrpfyTR6qD9Py8ZtbqtsdHep79CARFgABWUFqSeowq8KfPnlVVU5P4nRx0xpEDM/L/z+QnNyyweUfb88ZDKnvkOf5DAAEEHBfYsqU1au4/7QvSK+tayvYKAAAYK0lEQVTvJfGY4xmQIAIIuC2QMGzj9isW3fhNQ74lcztz8kMAgfAI2DeoSNtpzRflgllK6eGGl8hP9IjAa4lEzZvOvusVPe0JGwKBFiCAFejmpXLHC+z+0vQZmWx0sexrG1TVW89c/dqB45/nMQIIIOCGwNMPr327aagHJK+z3ciPPBBAoEQBHZIa8ZOy8YuIYX7s8oUf/2OJqXMaAgggULLAq7eeMbFaDc6TBJqjkczDM+7o3l1yYpyIgI8ERrws+6gOFBUBBBBAAAFfCTy3fn1NyuxbJTfHer4KrsW+aj0KG3KBjMS1vtawJ/23F918czrkFlQfAQQQQAABVwX40OwqN5khgAACCCBwTEB6Y10tvbHWyp6Zx/byCAEEPCrwsmWaH5t//Y0veLR8FAsBBBBAAIFAC5iBrh2VQwABBBBAwMMC8xcv32Rm1XlK2d/3cDEpGgJhF9CDCe+uj6cvIngV9pcC9UcAAQQQqKQAPbAqqU/eCCCAAAIIHBHYumHdDcq275ZfTwEFAQQ8I7DTMNSyuQuXP+2ZElEQBBBAAAEEQipAD6yQNjzVRgABBBDwlsC8hcseyirrPPlmaZu3SkZpEAitwEPxrHU+wavQtj8VRwABBBDwmAA9sDzWIBQHAQQQQCDcArZtG898976/sg17tUhUhVuD2iNQEYFew7D/x9yFK75TkdzJFAEEEEAAAQTyChDAysvCTgQQQAABBCorsGXDPW82LPMBWaNQ5shiQwABVwQM48lsxlx+5ZKPt7uSH5kggAACCCCAQMECBLAKpuJABBBAAAEE3BXYsm5dtZpgt8rF+hbJmWH/7vKTW7gEEoZt3H7Fohu/aUj3q3BVndoigAACCCDgDwECWP5oJ0qJAAIIIBBigW0Prb3UNtUDQnBGiBmoOgKlC+iQ1AifemX3z00jsvTyhR//Y+kZcCYCCCCAAAIIlFuAb3PLLUz6CCCAAAIIjFNg7g3Ln6tOxM+XZPQqhWwIIFCsQP7gVUbiWqvr9qQvJ3hVLCjHI4AAAggg4L5A/su5++UgRwQQQAABBBAoQGDLd9culov3v8mhUwo4nEMQQCCfgKF+Zxnm0vnX3/hCvqfZhwACCCCAAALeE6AHlvfahBIhgAACCCAwokDLouUPZ6LZc5WtNo54EE8ggMBIAnow4d31sfTFBK9GImI/AggggAAC3hSgB5Y324VSIYAAAgggMKqAbdvGMxvW3SR341+XA+tGPZgnEUBAC+xUyr5x3qIVW+BAAAEEEEAAAf8JEMDyX5tRYgQQQAABBI4KPPvdtWdYyr7fVsY7j+7kAQIIDBd4KFJVdfPl135k//An+B0BBBBAAAEE/CFAAMsf7UQpEUAAAQQQGFFgy5bWqLn/tC9Ir6y/l4NiIx7IEwiET6DXUMZn5i5a9u/hqzo1RgABBBBAIFgCBLCC1Z7UBgEEEEAgxALPfO+et1m2eb/Mj3VOiBmoOgI5AfmQuykStZdf9v4VHZAggAACCCCAgP8FCGD5vw2pAQIIIIAAAkcFnlu/viZl9q1Shvqs7OQ6f1SGByESSBi2cfsVi278pmEYetJ2NgQQQAABBBAIgAAfbAPQiFQBAQQQQACB4QLbHrr3Kts01sr+puHP8TsCvhbQIamRP8H+TIJXS+cuXvYnX9eRwiOAAAIIIIDASQLmSXvYgQACCCCAAAK+F5h7w4onJYD1ZqkIc//4vjWpwAkC+YNXGVvZf9edrb+M4NUJWvyCAAIIIIBAYATyfwQITPWoCAIIIIAAAghs3bDuBmXb3xKJSWggEDgBQ/3OtNXHrli0/MXA1Y0KIYAAAggggMBRAQJYRyl4gAACCCCAQHAFfrz+/tmZSOY+qWFLcGtJzYIrkHfcoN757fp4+nMXXXfzQHDrTs0QQAABBBBAQAsQwOJ1gAACCCCAQEgEbNs2nvnufX9lG/ZqqXJVSKpNNYMpsFMp+8Z5i1ZsCWb1qBUCCCCAAAIIDBcggDVchN8RQAABBBAIuMDTD993rmlYD0g1zw94ValeMAUeilRV3Xz5tR/ZH8zqUSsEEEAAAQQQyCdAACufCvsQQAABBBAIuMDz3/pW7NDU6N8YyvifUtVIwKtL9YIh0GMYxqfmLly2IRjVoRYIIIAAAgggUIwAAaxitDgWAQQQQACBgAls3XDvO5Rt3C/VOitgVaM6ARKQD6ybIlF7+WXvX9ERoGpRFQQQQAABBBAoQoAAVhFYHIoAAggggEAQBX724IMTBmtSd0rdPhnE+lEnXwsMGLbxpSsW3fhN6X2lJ21nQwABBBBAAIGQChDACmnDU20EEEAAAQSGC2zbsG6hTPT+Ldk/dfhz/I5ABQR+JsGrpXMXL/tTBfImSwQQQAABBBDwmIDpsfJQHAQQQAABBBCokICeWyhmRM+V7H9YoSKQLQJaIG0r+++6s/WXEbziBYEAAggggAACQwL0wBqS4H8EEEAAAQQQOCqwbcO9S23b+BfZUX90Jw8QKLeAoX5n2upjVyxa/mK5syJ9BBBAAAEEEPCXAD2w/NVelBYBBBBAAAFXBOYuXHG/DN+6QDL7Wf4MmY4ovwt7SxSwZIarrw5U911A8KpEQU5DAAEEEEAg4AL0wAp4A1M9BBBAAAEExiOwZUtr1Nx/2hdkbqwvSzrx8aTFuQiMILBDKXvZvEUrtozwPLsRQAABBBBAAAFFAIsXAQIIIIAAAgiMKbDl4XsvklXgHpAD/2zMgzkAgYIFjPuqE7G/vuSjHz1Y8CkciAACCCCAAAKhFCCAFcpmp9IIIIAAAggUL/Dc+vU16Uj/HTLB9k1ydl3xKXAGAkcFXpU51r7YsnjZ94/u4QECCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAQMgF/i+j5ZIwysbjZQAAAABJRU5ErkJggg==",Bee="data:image/svg+xml,%3csvg width='16' height='18' viewBox='0 0 16 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg id='Group'%3e%3cpath id='Vector' d='M7.99913 17.3172C8.9364 17.3172 9.74232 16.7562 10.1007 15.9503C10.1876 15.7543 10.0429 15.5339 9.82914 15.5339H6.17357C5.95985 15.5339 5.81291 15.7543 5.90196 15.9503C6.26039 16.7562 7.06409 17.3172 8.00358 17.3172' fill='%23D548EC'/%3e%3cpath id='Vector_2' d='M13.6092 13.3188C13.0148 13.3188 12.5317 12.8379 12.5317 12.2412V8.32964C12.5317 6.21021 11.0757 4.42918 9.11213 3.93272C9.04089 3.37392 8.56446 2.94202 7.98563 2.94202C7.40679 2.94202 6.92591 3.37837 6.85689 3.9394C5.09367 4.39801 3.74677 5.88962 3.5041 7.73077C3.49965 7.75748 3.49742 7.7842 3.49297 7.81091C3.48851 7.84653 3.48406 7.88438 3.48184 7.92C3.47961 7.95562 3.47516 7.99347 3.47293 8.02909C3.47293 8.06026 3.46848 8.0892 3.46625 8.12037C3.46403 8.1827 3.4618 8.24504 3.4618 8.30738V12.2368C3.4618 12.829 2.98537 13.3099 2.39318 13.3143C2.11044 13.3143 1.87891 13.5347 1.87891 13.8174V13.8219C1.87891 14.1024 2.10599 14.3295 2.3865 14.3295H13.607C13.8875 14.3295 14.1146 14.1024 14.1146 13.8219C14.1146 13.5436 13.8897 13.3165 13.6092 13.3165V13.3188Z' fill='%23D548EC'/%3e%3cg id='Group_2'%3e%3cpath id='Vector_3' d='M11.2495 3.16268C12.5118 3.43206 13.4757 4.51849 13.5937 5.80529C13.6071 5.94777 13.7318 6.05463 13.8765 6.04127C13.9455 6.0346 14.0078 6.0012 14.0523 5.94777C14.0969 5.89434 14.1169 5.82755 14.1102 5.75854C14.0412 5.00828 13.7384 4.31367 13.2353 3.75042C12.7366 3.19162 12.0865 2.81315 11.3563 2.65731C11.3385 2.65286 11.3207 2.65063 11.3029 2.65063C11.1827 2.65063 11.0736 2.73523 11.0491 2.85545C11.0179 2.99571 11.1092 3.13374 11.2495 3.16491V3.16268Z' fill='%23D548EC'/%3e%3cpath id='Vector_4' d='M11.5406 1.49069C13.5042 1.91145 15.0047 3.60343 15.1895 5.60264C15.2028 5.74513 15.3275 5.85199 15.4722 5.83863C15.5412 5.83195 15.6036 5.79856 15.6481 5.74513C15.6926 5.69169 15.7126 5.62491 15.706 5.55589C15.6036 4.44942 15.1583 3.42756 14.4147 2.59715C13.6778 1.77342 12.7227 1.21463 11.6474 0.985317C11.6296 0.980865 11.6118 0.978638 11.594 0.978638C11.4738 0.978638 11.3647 1.06324 11.3402 1.18346C11.309 1.32371 11.3981 1.46174 11.5383 1.49291L11.5406 1.49069Z' fill='%23D548EC'/%3e%3cpath id='Vector_5' d='M4.75063 3.16259C4.89088 3.13142 4.97993 2.99339 4.95099 2.85313C4.92428 2.73069 4.81741 2.64832 4.69719 2.64832C4.67938 2.64832 4.66157 2.64832 4.64376 2.65499C3.91354 2.81084 3.26569 3.1893 2.76477 3.7481C2.26163 4.31135 1.95886 5.00596 1.88984 5.75622C1.88316 5.82523 1.90542 5.89202 1.94772 5.94545C1.99002 5.99888 2.05458 6.03228 2.1236 6.03896C2.27054 6.05231 2.39299 5.94545 2.40634 5.80297C2.52434 4.5184 3.49055 3.43197 4.75063 3.16259Z' fill='%23D548EC'/%3e%3cpath id='Vector_6' d='M4.45904 1.49059C4.5993 1.45942 4.68835 1.32139 4.65941 1.18114C4.63269 1.05869 4.52583 0.976318 4.40561 0.976318C4.3878 0.976318 4.36999 0.976318 4.35218 0.982997C3.27688 1.21453 2.32181 1.7711 1.5849 2.59483C0.843548 3.42524 0.398286 4.44933 0.29365 5.55357C0.286972 5.62259 0.309237 5.68937 0.351536 5.74281C0.396062 5.79624 0.4584 5.82963 0.527415 5.83631C0.672124 5.84967 0.796794 5.74281 0.810151 5.60032C0.994933 3.60111 2.49546 1.91136 4.45904 1.49059Z' fill='%23D548EC'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";const Nee=({title:e,icon:t,link:r,linkText:a})=>{var s,c;const u=(0,i.useContext)(w7);return(0,n.jsx)(o.NP,Object.assign({theme:u},{children:(0,n.jsxs)(D7,Object.assign({gap:"10px",width:"100%",justifyContent:"start"},{children:[(0,n.jsx)(Ree,Object.assign({padding:"4px",borderRadius:"8px",alignItems:"start",height:"fit-content",background:null===(s=null==u?void 0:u.backgroundColor)||void 0===s?void 0:s.imageBackgroundColor},{children:(0,n.jsx)(R7,{src:t,width:"20px",height:"20px"})})),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"3px"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"12px",fontWeight:"400",textAlign:"left",color:null===(c=null==u?void 0:u.textColor)||void 0===c?void 0:c.modalTitleText},{children:e})),(0,n.jsx)(U7,{text:a,link:r})]}))]}))}))},Ree=(0,o.Ay)(D7).withConfig({displayName:"CtaHyperlink__CtaHyperlinkImage",componentId:"sc-809mq9-0"})(["border:",";"],(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.image})),Lee=e=>{var t,r,o,a,s,c;const u=(0,i.useContext)(w7);return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"20px",margin:"12px 12px 0px 12px",alignItems:"start"},{children:[(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"10px",alignItems:"start"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"21px",fontWeight:"700",color:null===(t=null==u?void 0:u.textColor)||void 0===t?void 0:t.modalHeaderText},{children:"Thanks for subscribing!"})),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start",gap:"8px",margin:"0 0 10px 0"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"16px",fontWeight:"500",color:null===(r=u.textColor)||void 0===r?void 0:r.modalTitleText},{children:"Getting Started"})),(0,n.jsx)(B7,Object.assign({fontSize:"12px",textAlign:"left",fontWeight:"400",width:"100%",color:null===(o=u.textColor)||void 0===o?void 0:o.modalSubTitleText},{children:"Install Push Snap to get notifications in MetaMask."}))]}))]})),(0,n.jsx)(dee,Object.assign({customStyle:{background:`${null===(a=u.backgroundColor)||void 0===a?void 0:a.modalBackground}`,padding:"8px",border:`1px solid ${null===(s=u.backgroundColor)||void 0===s?void 0:s.buttonBackground}`},onClick:()=>window.open("https://app.push.org/")},{children:(0,n.jsxs)(D7,Object.assign({gap:"2px"},{children:[(0,n.jsx)(R7,{src:Oee,width:"20px",height:"19px"}),(0,n.jsx)(B7,Object.assign({fontSize:"14px",fontWeight:"500",color:null===(c=null==u?void 0:u.textColor)||void 0===c?void 0:c.modalTitleText},{children:"Install Snap"}))]}))})),(0,n.jsx)(Nee,{title:"Explore more ways to get notified",link:"https://app.push.org/",linkText:"Explore Options",icon:Bee}),(0,n.jsx)(J7,{})]}))},Fee=e=>{var t,r,o;const{userSettings:a,channelAddress:s,channelInfo:c,handleNext:u,autoconnect:l=!1}=e||{},[d,f]=(0,i.useState)([...a]),{unsubscribeError:h,unsubscribeLoading:p,setUnsubscribeError:g,unsubscribeToChannel:m,subscribeToChannel:y,subscribeError:b,subscribeLoading:v,setSubscribeError:w}=qee(),A=(0,i.useContext)(w7),C=K9(c5.tablet),E=ree(),{signer:x,setAccount:S,setSigner:I,user:k,account:_}=m7(),T=(e,t)=>{E.showMessageToast({toastTitle:e,toastMessage:t,toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})},M=(e,t)=>{E.showMessageToast({toastTitle:e,toastMessage:t,toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"green"})})},P=()=>a&&a.length?C?"column":"row":"column-reverse";return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",margin:"14px 10px 0px 10px"},{children:[(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start",gap:"5px",margin:"0 0 10px 0"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"21px",fontWeight:"700",color:null===(t=null==A?void 0:A.textColor)||void 0===t?void 0:t.modalHeaderText},{children:"Manage Notifications"})),(0,n.jsx)(B7,Object.assign({fontSize:"12px",textAlign:"left",fontWeight:"400",width:"90%",color:null===(r=null==A?void 0:A.textColor)||void 0===r?void 0:r.modalSubTitleText},{children:"Update your notification preferences below"}))]})),(0,n.jsxs)(D7,Object.assign({gap:"25px",margin:"15px 0 0 0",flexDirection:P()},{children:[(0,n.jsxs)(D7,Object.assign({flexDirection:"column",width:"100%",justifyContent:"start",gap:"20px",flex:"1"},{children:[(0,n.jsx)(Mee,{channelInfo:c}),!!a&&!!a.length&&(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsx)(Aee,{settings:a,setSettings:f}),(null==k?void 0:k.readmode())&&(0,n.jsx)(hee,{autoconnect:l,setAccount:S,setSigner:I,signer:x}),!(null==k?void 0:k.readmode())&&(0,n.jsx)(dee,Object.assign({height:"auto",width:"100%",onClick:()=>pJ(void 0,void 0,void 0,(function*(){try{const e=yield y({channelAddress:s,channelSettings:_ee({settings:d})});e&&204===(null==e?void 0:e.status)&&M("Notification Preferences Updated","Your notification settings were updated successfully.")}catch($R){console.debug($R),w(y7.NOTIFICATION_WIDGET_SUBSCRIBE_ERROR)}b&&T("Preferences were not updated","We encountered an error while updating your notification settings. Please try again.")}))},{children:"Update Preferences"}))]}),(0,n.jsxs)(Hee,Object.assign({color:null===(o=A.textColor)||void 0===o?void 0:o.modalSubTitleText,fontSize:"12px",fontWeight:"400"},{children:[(0,n.jsxs)(N7,Object.assign({onClick:()=>pJ(void 0,void 0,void 0,(function*(){try{const e=yield m({channelAddress:s});e&&204===(null==e?void 0:e.status)&&(M("Notification Disabled",`You have successfully disabled notifications from ${null==c?void 0:c.name}`),u())}catch($R){console.debug($R),g(y7.NOTIFICATION_WIDGET_SUBSCRIBE_ERROR)}h&&T("Error while Enabling Notifications","We encountered an error while disabling notifications. Please try again.")})),textDecoration:"underline"},{children:[" ",p?(0,n.jsx)(k7,{color:"#fff",size:"20"}):"Unsubscribe"," "]})),"to stop receiving notifications"]}))]})),(0,n.jsx)(Uee,{divider:P()})]})),(0,n.jsx)(J7,{})]}))},Uee=({divider:e})=>{var t,r;const o=(0,i.useContext)(w7);return(0,n.jsxs)(zee,Object.assign({gap:"20px",width:"100%",flex:"1",justifyContent:"start",alignItems:"start",flexDirection:"column",theme:o,divider:e},{children:[(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"5px",alignItems:"start"},{children:[(0,n.jsx)(B7,Object.assign({color:null===(t=null==o?void 0:o.textColor)||void 0===t?void 0:t.modalTitleText,fontSize:"14px",fontWeight:"500",textAlign:"left"},{children:"Getting Started"})),(0,n.jsx)(B7,Object.assign({textAlign:"left",width:"80%",color:null===(r=o.textColor)||void 0===r?void 0:r.modalSubTitleText,fontSize:"12px",fontWeight:"400"},{children:"Subscribe, Install Push Snap to receive your favorite notifications."}))]})),(0,n.jsx)(Nee,{title:"Get Notifications in MetaMask",link:"https://app.push.org/",linkText:"Install Push Snap",icon:Oee}),(0,n.jsx)(Nee,{title:"Explore more ways to get notified",link:"https://app.push.org/",linkText:"Explore Options",icon:Bee})]}))},zee=(0,o.Ay)(D7).withConfig({displayName:"ManageNotificationComponent__RightSection",componentId:"sc-1c91ns3-0"})(["",""],(({divider:e,theme:t})=>{var r,n,i;return"column"==e?`\n border-top: ${null===(r=t.border)||void 0===r?void 0:r.divider};\n padding:25px 0 0 0;\n\n\n`:"column-reverse"==e?`\nborder-bottom: ${null===(n=t.border)||void 0===n?void 0:n.divider};\npadding:0 0 25px 0;\n\n`:`border-left: ${null===(i=t.border)||void 0===i?void 0:i.divider};\n padding:0 0 0 20px;\n`})),Hee=(0,o.Ay)(B7).withConfig({displayName:"ManageNotificationComponent__UnsubscribeSpan",componentId:"sc-1c91ns3-1"})(["display:flex;gap:5px;align-items:center;"]),Vee={SUBSCRIBE:1,INSTALL_SNAP:2,MANAGE_NOTIFICATIONS:3},Kee=e=>{var t,r,o;const{env:a,user:s,account:c}=m7(),u=(0,i.useContext)(w7),{channelAddress:l,modalBackground:d,modalPositionType:f,onClose:h,autoconnect:p=!1}=e||{},g=Iee(a,l),[m,y]=(0,i.useState)(),[b,v]=(0,i.useState)([]),[w,A]=(0,i.useState)(Vee.SUBSCRIBE),{fetchChannelInfo:C,channelInfoError:E,channelInfoLoading:x,setChannelInfoError:S}=Qee(),{fetchUserSubscriptions:I,userSubscriptionLoading:k,setUserSubscriptionLoading:_}=qee();console.debug(b);const T=()=>{w===Vee.MANAGE_NOTIFICATIONS?A(Vee.SUBSCRIBE):A(Vee.INSTALL_SNAP)};(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){try{const e=yield C({channelAddress:g}),t=yield I({channelAddress:g});t?v(t):_(!1),e&&y(e)}catch($R){console.debug($R),S(y7.NOTIFICATION_WIDGET_CHANNEL_INFO_ERROR)}}))}),[l,s,c,a]),(0,i.useEffect)((()=>{b&&b.length?A(Vee.MANAGE_NOTIFICATIONS):A(Vee.SUBSCRIBE)}),[b]);return(0,n.jsxs)(G7,Object.assign({clickawayClose:h,modalBackground:d,modalPositionType:f},{children:[(0,n.jsxs)(Gee,Object.assign({theme:u,flexDirection:"column",alignItems:"center",gap:"10px",minHeight:"154px",minWidth:"374px",overflow:"hidden auto",justifyContent:x||k?"center":"start",background:null===(t=u.backgroundColor)||void 0===t?void 0:t.modalBackground,borderRadius:null===(r=u.borderRadius)||void 0===r?void 0:r.modal,padding:"15px 20px"},{children:[(0,n.jsx)(D7,Object.assign({position:"absolute",top:"10px",right:"10px"},{children:(0,n.jsx)(R7,{src:V7,height:"20px",maxHeight:"20px",width:"auto",onClick:h,cursor:"pointer"})})),E?(0,n.jsx)(B7,Object.assign({margin:"20px",color:null===(o=u.textColor)||void 0===o?void 0:o.modalTitleText},{children:"Error in fetching details"})):x||k?(0,n.jsx)(B7,Object.assign({margin:"20px"},{children:(0,n.jsx)(k7,{color:null==u?void 0:u.spinnerColor,size:"35"})})):m?(()=>{var e;switch(w){case Vee.SUBSCRIBE:return(0,n.jsx)(Dee,{handleNext:T,autoconnect:p,channelAddress:g,channelInfo:m});case Vee.INSTALL_SNAP:return(0,n.jsx)(Lee,{handleNext:T});case Vee.MANAGE_NOTIFICATIONS:return(0,n.jsx)(Fee,{autoconnect:p,channelInfo:m,channelAddress:g,userSettings:Tee({settings:null===(e=b[0])||void 0===e?void 0:e.user_settings}),handleNext:T});default:return(0,n.jsx)(Dee,{handleNext:T,channelAddress:g,channelInfo:m})}})():null]})),(0,n.jsx)(py,{})]}))},Gee=(0,o.Ay)(D7).withConfig({displayName:"SubscriptionManager__Container",componentId:"sc-gl5ihq-0"})(["border:",";"],(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.modal})),qee=()=>{const[e,t]=(0,i.useState)(!1),[r,n]=(0,i.useState)(!1),[o,a]=(0,i.useState)(),[s,c]=(0,i.useState)(!1),[u,l]=(0,i.useState)(),{user:d,env:f,account:h}=m7(),p=(0,i.useCallback)((({channelAddress:e})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{if(d&&h){const t=yield d.notification.subscriptions({raw:!1,channel:e});return n(!1),t}return}catch(ys){return n(!1),ys.message}}))),[h,f,d]),g=(0,i.useCallback)((({channelAddress:e,channelSettings:r=[]})=>pJ(void 0,void 0,void 0,(function*(){t(!0);try{if(d){return yield d.notification.subscribe(e,{settings:r,onSuccess:()=>{t(!1)},onError:()=>{t(!1),a(y7.NOTIFICATION_WIDGET_SUBSCRIBE_ERROR)}})}return}catch(ys){return t(!1),a(y7.NOTIFICATION_WIDGET_SUBSCRIBE_ERROR),ys.message}}))),[h,f,d]),m=(0,i.useCallback)((({channelAddress:e,channelSettings:t=[]})=>pJ(void 0,void 0,void 0,(function*(){c(!0);try{if(d){return yield d.notification.unsubscribe(e,{settings:t,onSuccess:()=>{c(!1)},onError:()=>{c(!1),l(y7.NOTIFICATION_WIDGET_UNSUBSCRIBE_ERROR)}})}return}catch(ys){return c(!1),l(y7.NOTIFICATION_WIDGET_UNSUBSCRIBE_ERROR),ys.message}}))),[h,f,d]);return{subscribeToChannel:g,subscribeError:o,subscribeLoading:e,unsubscribeError:u,unsubscribeLoading:s,unsubscribeToChannel:m,setSubscribeError:a,setUnsubscribeError:l,fetchUserSubscriptions:p,userSubscriptionLoading:r,setUserSubscriptionLoading:n}},Qee=()=>{const[e,t]=(0,i.useState)(!1),[r,n]=(0,i.useState)(),{user:o,env:a,account:s}=m7(),c=(0,i.useCallback)((({channelAddress:e})=>pJ(void 0,void 0,void 0,(function*(){t(!0);try{if(o){const r=yield o.channel.info(e);return t(!1),r}return}catch(ys){return t(!1),n(y7.NOTIFICATION_WIDGET_CHANNEL_INFO_ERROR),ys.message}}))),[s,a,o]);return{channelInfoError:r,channelInfoLoading:e,fetchChannelInfo:c,setChannelInfoError:n}},Wee=(e,t)=>{const[r,n]=(0,i.useState)(null),o=(0,i.useCallback)((()=>pJ(void 0,void 0,void 0,(function*(){const r=yield d8(e,t);r&&n(r)}))),[e,t]);return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){yield o()}))}),[e,t]),r},Jee=()=>(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",style:{width:"inherit",height:"inherit"},viewBox:"0 0 18 16",fill:"none"},{children:(0,n.jsx)("path",{d:"M7.89219 12.9084L6.94656 13.8156C5.4873 15.2156 3.1694 15.1676 1.76939 13.7084C0.36937 12.2491 0.417393 9.93122 1.87665 8.5312L4.65793 5.86283C6.11718 4.46281 8.43508 4.51083 9.8351 5.97009C10.5743 6.74056 10.9098 7.7504 10.8471 8.73813M7.11786 7.18824C7.01647 8.21605 7.34626 9.27741 8.11433 10.078C9.51434 11.5372 11.8404 11.5774 13.3097 10.1678L16.1102 7.48098C17.5795 6.07131 17.6357 3.74558 16.2357 2.28633C14.8356 0.827073 12.5096 0.786878 11.0403 2.19655L10.1129 3.08631",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})})),Yee={borderRadius:{modal:"16px",optInButton:"3px"},fontWeight:{channelNameText:500,notificationTitleText:500,notificationContentText:400,timestamp:500,optInButtonText:500},fontSize:{channelNameText:"14px",notificationTitleText:"16px",notificationContentText:"14px",timestamp:"10px",optInButtonText:"12px"},fontFamily:"inherit"},Zee=Object.assign(Object.assign({},Yee),{color:{contentHoverBackground:"#e8eaf680",accentBackground:"#fff",channelNameText:"#17181B",notificationTitleText:"#17181B",notificationContentText:"#313338",timestamp:"#8C93A0",optInButtonText:"#fff",optInButtonBackground:"#D548EC",modalBorder:"#C4CBD5"},modalDivider:"1px solid #D9D9D9"}),$ee=Object.assign(Object.assign({},Yee),{color:{contentHoverBackground:"#404650",accentBackground:"#202124",channelNameText:"#F5F6F8",notificationTitleText:"#F5F6F8",notificationContentText:"#C4CBD5",timestamp:"#757D8D",optInButtonText:"#fff",optInButtonBackground:"#D548EC",modalBorder:"#484D58"},modalDivider:"1px solid #4A4F67"}),Xee=()=>(0,n.jsxs)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M15.625 4.375L4.375 15.625",stroke:"#82828A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M15.0799 15.4442L4.375 4.375",stroke:"#82828A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})),ete=({notificationTitle:e,notificationBody:t,cta:r,app:o,icon:a,image:s,isToast:c=!1,url:u,isSpam:l,isSubscribedFn:d,subscribeFn:f,theme:h,chainName:p,customTheme:g,isSecret:m,decryptFn:y,onClose:b})=>{var v,w,A,C,E,x,S;const{notificationBody:I,timeStamp:k}=function(e){const t={notificationBody:WZ(e),timeStamp:"",originalBody:e},r=e.match(/\[timestamp:(.*?)\]/);if(r){t.timeStamp=r[1];const n=e.replace(/ *\[timestamp:[^)]*\] */g,"");t.notificationBody=WZ(n),t.originalBody=n}return t}(t||""),_=((e,t)=>Object.assign({},"dark"===e?$ee:Zee,t))(h,g),{notifTitle:T,notifBody:M,notifCta:P,notifImage:j,setDecryptedValues:D,isSecretRevealed:O}=function(e,t){const[r,n]=i.useState({notifTitle:e.notificationTitle||"",notifBody:e.parsedBody||"",notifCta:e.cta||"",notifImage:e.image||"",isSecretRevealed:!1}),o=!!t&&!(null==r?void 0:r.isSecretRevealed);return{notifTitle:r.notifTitle,notifBody:r.notifBody,notifCta:o?"":r.notifCta,notifImage:o?"":r.notifImage,isSecretRevealed:r.isSecretRevealed,setDecryptedValues:({title:e,body:t,cta:r,image:i})=>{n({notifTitle:e||"",notifBody:t||"",notifCta:r||"",notifImage:i||"",isSecretRevealed:!0})}}}({notificationTitle:e,parsedBody:I,cta:r,image:s},m),B=W6.validURL(P)&&!c,N=W6.validURL(u),[R,L]=i.useState(""),[F,U]=i.useState(!1),[z,H]=i.useState(!0),[V,K]=(()=>{const e=(0,i.useRef)(null),[t,r]=(0,i.useState)(0);return(0,i.useEffect)((()=>{const t=()=>{e.current&&r(e.current.offsetWidth)},n=setTimeout((()=>{t()}),0);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),clearTimeout(n)}}),[]),[e,t]})();return i.useEffect((()=>{l&&d&&d().then((e=>{H(Boolean(e))}))}),[d,l]),z&&l?null:(0,n.jsxs)(ute,Object.assign({timestamp:k,offsetWidth:K,ref:V,cta:B,themeObject:_},{children:[(0,n.jsxs)(lte,Object.assign({themeObject:_},{children:[(0,n.jsxs)(fte,Object.assign({themeObject:_},{children:[(0,n.jsx)(ste,Object.assign({offsetWidth:K,theme:h},{children:(0,n.jsx)("img",{style:{width:"100%",borderRadius:"8px"},src:a,title:`Channel icon for ${o}`,alt:""})})),(0,n.jsx)(dte,Object.assign({fontSize:`calc(${null===(v=null==_?void 0:_.fontSize)||void 0===v?void 0:v.channelNameText} - ${c?"2px":"0px"})`,themeObject:_,onClick:e=>{e.stopPropagation(),N&&window.open(u,"_blank")}},{children:o})),(0,n.jsx)(ite,{background:"dark"===h?"#757D8D":"#c4cbd5"}),k?(0,n.jsx)(xte,Object.assign({themeObject:_},{children:J6(k)})):null]})),(0,n.jsxs)(wte,{children:[p&&x4[p]?(0,n.jsx)(nte,{children:(0,n.jsx)(ote,Object.assign({offsetWidth:K},{children:x4[p].icon}))}):null,c&&b&&(0,n.jsx)(vte,Object.assign({onClick:b},{children:(0,n.jsx)(Xee,{})}))]})]})),(0,n.jsxs)(rte,Object.assign({isToast:c&&!!j,themeObject:_,offsetWidth:K},{children:[j&&(W6.isMediaSupportedVideo(j)?W6.isMediaYoutube(j)?(0,n.jsx)(ate,Object.assign({offsetWidth:K,size:c?"56px":"90px"},{children:(0,n.jsx)("iframe",{id:"ytplayer",width:"640",allow:"fullscreen;",height:"360",src:W6.isMediaExternalEmbed(j),title:"Youtube"})})):(0,n.jsx)(ate,Object.assign({offsetWidth:K,size:c?"56px":"90px"},{children:(0,n.jsxs)("video",Object.assign({width:"360",height:"100%",controls:!0},{children:[(0,n.jsx)("source",{src:j,type:"video/mp4"}),"Your browser does not support the video tag."]}))})):(0,n.jsx)(ate,Object.assign({theme:h,size:c?"56px":"90px",offsetWidth:K,style:{cursor:"pointer"},onClick:()=>L(j||"")},{children:(0,n.jsx)("img",{src:j,alt:""})}))),(0,n.jsxs)(cte,{children:[(0,n.jsxs)(hte,Object.assign({offsetWidth:K,themeObject:_},{children:[(0,n.jsxs)(pte,Object.assign({cta:B,onClick:B?e=>{e.stopPropagation(),B&&window.open(P,"_blank")}:void 0},{children:[(0,n.jsx)(gte,Object.assign({fontSize:`calc(${null===(w=null==_?void 0:_.fontSize)||void 0===w?void 0:w.notificationTitleText} - ${c?"2px":"0px"})`,themeObject:_},{children:T})),B?(0,n.jsx)("span",Object.assign({style:{width:`calc(16px - ${c?"2px":"0px"})`,height:`calc(16px - ${c?"2px":"0px"})`}},{children:(0,n.jsx)(Jee,{})})):""]})),(0,n.jsx)(mte,Object.assign({themeObject:_,fontSize:`calc(${null===(A=null==_?void 0:_.fontSize)||void 0===A?void 0:A.notificationContentText} - ${c?"2px":"0px"})`},{children:(0,n.jsx)(yte,Object.assign({themeObject:_,cta:B},{children:(0,n.jsx)(c4,{text:M})}))}))]})),l&&(0,n.jsx)(L7,Object.assign({height:"32px",onClick:e=>pJ(void 0,void 0,void 0,(function*(){if(e.preventDefault(),e.stopPropagation(),f)try{U(!0),yield f(),H(!0)}finally{U(!1)}})),width:"fit-content",color:null===(C=_.color)||void 0===C?void 0:C.optInButtonText,fontWeight:((null===(E=_.fontWeight)||void 0===E?void 0:E.optInButtonText)||500).toString(),fontSize:null===(x=_.fontSize)||void 0===x?void 0:x.optInButtonText,borderRadius:"8px",padding:"12px 16px",background:null===(S=_.color)||void 0===S?void 0:S.optInButtonBackground},{children:F?(0,n.jsx)($6,{}):"Subscribe"}))]}),m&&(0,n.jsx)(kte,{children:(0,n.jsx)(_te,{children:m?(0,n.jsx)(_4,{decryptFn:()=>pJ(void 0,void 0,void 0,(function*(){if(y)try{const e=yield y();e&&D(e)}catch($R){console.error($R)}})),isSecretRevealed:O}):null})})]})),m&&(0,n.jsxs)(bte,Object.assign({hidden:!m,hasLeft:!1},{children:[(0,n.jsx)(Cte,{hidden:!0}),(0,n.jsx)(Ete,Object.assign({hidden:!m},{children:m?(0,n.jsx)(Ste,{children:(0,n.jsx)(Ite,{})}):null}))]})),(0,n.jsx)(X6,{imageOverlay:R,setImageOverlay:L})]}))};ete.propTypes={notificationBody:gJ.exports.string,notificationTitle:gJ.exports.string,cta:gJ.exports.string,image:gJ.exports.string,app:gJ.exports.string,url:gJ.exports.string,isSpam:gJ.exports.bool,subscribeFn:gJ.exports.func,isSubscribedFn:gJ.exports.func,theme:gJ.exports.string,customTheme:gJ.exports.object},ete.defaultProps={notificationTitle:"",notificationBody:"",cta:"",app:"",image:"",url:"",isSpam:!1,theme:"light"};const tte="900px",rte=o.Ay.div.withConfig({displayName:"notification__ContentSection",componentId:"sc-v9nuxx-0"})(["display:flex;gap:12px;justify-content:",";flex-direction:",";align-items:flex-start;"],(e=>(null==e?void 0:e.isToast)?"space-between":"start"),(e=>(null==e?void 0:e.isToast)?"row-reverse":"row")),nte=o.Ay.div.withConfig({displayName:"notification__BlockchainContainer",componentId:"sc-v9nuxx-1"})(["display:flex;align-items:center;justify-content:center;font-weight:700;"]),ite=o.Ay.div.withConfig({displayName:"notification__Ellipse",componentId:"sc-v9nuxx-2"})(["width:4px;height:4px;background:",";border-radius:100%;"],(e=>null==e?void 0:e.background)),ote=o.Ay.div.withConfig({displayName:"notification__ChainIconSVG",componentId:"sc-v9nuxx-3"})(["width:18px;height:18px;svg,svg image,img{width:100%;height:100%;}@media (max-width:","){width:18px;height:18px;}"],tte),ate=o.Ay.div.withConfig({displayName:"notification__MobileImage",componentId:"sc-v9nuxx-4"})(["overflow:hidden;flex-shrink:0;width:",";height:",";img,iframe,video{max-width:100% !important;width:100%;height:100% !important;object-fit:fill;border-radius:100%;border:0;}"],(e=>null==e?void 0:e.size),(e=>null==e?void 0:e.size)),ste=o.Ay.div.withConfig({displayName:"notification__ImageContainer",componentId:"sc-v9nuxx-5"})(["border:1px solid #eaebf2;overflow:hidden;border-radius:8px;width:24px;height:24px;"]),cte=o.Ay.div.withConfig({displayName:"notification__NotificationDetialsWrapper",componentId:"sc-v9nuxx-6"})(["display:flex;flex-direction:column;gap:16px;"]),ute=o.Ay.div.withConfig({displayName:"notification__Container",componentId:"sc-v9nuxx-7"})(["position:relative;padding:16px;overflow:hidden;flex-direction:column;font-family:",";flex:1;display:flex;gap:8px;flex-wrap:wrap;border:",";background:",";border-radius:",";",";"],(e=>{var t;return null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.fontFamily}),(e=>{var t,r;return`1px solid ${null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.modalBorder}`}),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.accentBackground}),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.borderRadius)||void 0===r?void 0:r.modal}),(e=>{var t,r;return e.cta&&(0,o.AH)(["&:hover{background:",";}"],null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.contentHoverBackground)})),lte=o.Ay.div.withConfig({displayName:"notification__MobileHeader",componentId:"sc-v9nuxx-8"})(["display:flex;justify-content:space-between;"]),dte=o.Ay.div.withConfig({displayName:"notification__ChannelName",componentId:"sc-v9nuxx-9"})(["cursor:pointer;font-size:",";font-weight:",";color:",";"],(e=>e.fontSize),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.fontWeight)||void 0===r?void 0:r.channelNameText}),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.channelNameText})),fte=o.Ay.div.withConfig({displayName:"notification__HeaderButton",componentId:"sc-v9nuxx-10"})(["display:flex;gap:8px;align-items:center;"]),hte=o.Ay.div.withConfig({displayName:"notification__NotificationDetails",componentId:"sc-v9nuxx-11"})(["display:flex;flex-direction:column;gap:4px;@media (max-width:","){color:",";}",";",";"],"50050px",(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.notificationTitleText}),(e=>e.offsetWidth>461&&(0,o.AH)(["@media (max-width:","){margin-bottom:6px;}"],tte)),(e=>e.offsetWidth<=461&&(0,o.AH)(["margin-bottom:6px;"]))),pte=o.Ay.div.withConfig({displayName:"notification__ChannelTitleWrapper",componentId:"sc-v9nuxx-12"})(["",";cursor:pointer;align-items:center;display:flex;gap:8px;"],(e=>e.cta&&(0,o.AH)(["&:hover{color:#c742dd;span{color:#c742dd;}}"]))),gte=o.Ay.span.withConfig({displayName:"notification__ChannelTitleText",componentId:"sc-v9nuxx-13"})(["cursor:pointer;font-size:",";font-weight:",";color:",";"],(e=>null==e?void 0:e.fontSize),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.fontWeight)||void 0===r?void 0:r.notificationTitleText}),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.notificationTitleText})),mte=o.Ay.div.withConfig({displayName:"notification__ChannelDesc",componentId:"sc-v9nuxx-14"})(["line-height:20px;flex:1;display:flex;font-size:",";color:",";font-weight:",";flex-direction:column;"],(e=>null==e?void 0:e.fontSize),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.notificationContentText}),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.fontWeight)||void 0===r?void 0:r.notificationContentText})),yte=o.Ay.label.withConfig({displayName:"notification__ChannelDescLabel",componentId:"sc-v9nuxx-15"})(["cursor:",";color:",";flex:1;margin:0px;text-align:left;"],(e=>e.cta?"pointer":"default"),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.notificationContentText})),bte=o.Ay.div.withConfig({displayName:"notification__ChannelMetaInfo",componentId:"sc-v9nuxx-16"})(["display:",";flex-direction:row;justify-content:",";"],(e=>e.hidden?"none":"flex"),(e=>e.hasLeft?"space-between":"end")),vte=o.Ay.div.withConfig({displayName:"notification__CloseContainer",componentId:"sc-v9nuxx-17"})(["cursor:pointer;display:flex;"]),wte=o.Ay.div.withConfig({displayName:"notification__ChainCloseContainer",componentId:"sc-v9nuxx-18"})(["display:flex;gap:6px;align-items:center;"]),Ate=o.Ay.div.withConfig({displayName:"notification__ChannelMetaSection",componentId:"sc-v9nuxx-19"})(["display:",";align-items:center;"],(e=>e.hidden?"none":"flex")),Cte=(0,o.Ay)(Ate).withConfig({displayName:"notification__ChannelMetaInfoLeft",componentId:"sc-v9nuxx-20"})(["justify-content:start;"]),Ete=(0,o.Ay)(Ate).withConfig({displayName:"notification__ChannelMetaInfoRight",componentId:"sc-v9nuxx-21"})(["justify-content:end;"]),xte=o.Ay.label.withConfig({displayName:"notification__TimestampLabel",componentId:"sc-v9nuxx-22"})(["color:",";line-height:14px;font-weight:",";font-size:",";"],(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.color)||void 0===r?void 0:r.timestamp}),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.fontWeight)||void 0===r?void 0:r.timestamp}),(e=>{var t,r;return null===(r=null===(t=null==e?void 0:e.themeObject)||void 0===t?void 0:t.fontSize)||void 0===r?void 0:r.timestamp})),Ste=o.Ay.div.withConfig({displayName:"notification__SecretIconContainer",componentId:"sc-v9nuxx-23"})(["margin:6px;"]),Ite=o.Ay.div.withConfig({displayName:"notification__SecretIcon",componentId:"sc-v9nuxx-24"})(["width:12px;height:12px;border-radius:50%;background:linear-gradient(135deg,#e20880 12.5%,#674c9f 49.89%,#35c5f3 87.5%);"]),kte=o.Ay.div.withConfig({displayName:"notification__ButtonGroupContainer",componentId:"sc-v9nuxx-25"})(["display:flex;align-items:center;justify-content:flex-end;"]),_te=o.Ay.div.withConfig({displayName:"notification__ButtonGroup",componentId:"sc-v9nuxx-26"})(["display:flex;gap:20px;"]),Tte=[{text:"Push Browser Extension",link:"https://chrome.google.com/webstore/detail/epns-protocol-alpha/lbdcbpaldalgiieffakjhiccoeebchmg",img:"https://backend-kovan.epns.io/assets/googlechromeicon.png"},{text:"Push App (iOS)",link:"https://apps.apple.com/app/ethereum-push-service-epns/id1528614910",img:"https://backend-kovan.epns.io/assets/apple.png"},{text:"Push App (Android)",link:"https://play.google.com/store/apps/details?id=io.epns.epns",img:"https://backend-kovan.epns.io/assets/playstorecolor@3x.png"},{text:"Visit our dApp",link:"https://app.push.org/",img:"https://backend-kovan.epns.io/assets/dappcolor@3x.png"}],Mte=({onClose:e})=>{const t=i.useRef(null);return H9(t,e),(0,n.jsx)(Lte,Object.assign({className:"overlay"},{children:(0,n.jsxs)(Fte,Object.assign({className:"modal",ref:t},{children:[(0,n.jsx)(Pte,{onClick:e}),(0,n.jsxs)(Ote,Object.assign({className:"modal__heading"},{children:[(0,n.jsxs)(Dte,{children:[(0,n.jsx)(Bte,{children:"Receive"}),(0,n.jsx)(Nte,{children:"Notifications"})]}),(0,n.jsxs)(Rte,{children:["Receive notifications from ",(0,n.jsx)("b",{children:"Push"})," via the following platforms."]})]})),(0,n.jsx)(Ote,Object.assign({className:"modal__content"},{children:Tte.map((e=>(0,n.jsxs)(jte,Object.assign({onClick:()=>{var t;(t=e.link)&&window.open(t,"_blank")}},{children:[(0,n.jsx)("img",{src:e.img,alt:""}),e.text]}),e.link)))}))]}))}))},Pte=o.Ay.a.withConfig({displayName:"subscribemodal__CloseButton",componentId:"sc-1gg76ik-0"})(['position:absolute;right:10px;top:37px;width:40px;height:40px;opacity:0.3;cursor:pointer;&:hover{opacity:1;}&:before,&:after{position:absolute;content:" ";height:33px;width:2px;background-color:#333;}&:before{transform:rotate(45deg);}&:after{transform:rotate(-45deg);}']),jte=o.Ay.div.withConfig({displayName:"subscribemodal__ItemLink",componentId:"sc-1gg76ik-1"})(["width:260px;height:62px;padding-left:22px;background:#fafafa;border:0.2px solid rgba(0,0,0,0.16);box-sizing:border-box;border-radius:5px;font-size:0.75em;text-transform:uppercase;display:flex;align-items:center;gap:1.3125em;cursor:pointer;transition:300ms;&:hover{box-shadow:0px 4px 4px rgba(0,0,0,0.25);}"]),Dte=o.Ay.h2.withConfig({displayName:"subscribemodal__CustomHeaderTwo",componentId:"sc-1gg76ik-2"})(["margin-top:0;margin-bottom:1em;color:rgb(0,0,0);font-weight:600;font-size:1.5625em;letter-spacing:0.1em;text-transform:uppercase;padding:0px;font-family:inherit;text-align:inherit;@media (max-width:1000px){font-size:1.2625em;}"]),Ote=o.Ay.div.withConfig({displayName:"subscribemodal__Item",componentId:"sc-1gg76ik-3"})(["display:flex;flex-direction:column;text-transform:capitalise;&.modal__heading{margin-bottom:3.3125rem;}&.modal__content{display:grid;grid-template-columns:50% 50%;grid-row-gap:3.3125em;}"]),Bte=o.Ay.span.withConfig({displayName:"subscribemodal__CustomSpan",componentId:"sc-1gg76ik-4"})(["flex:initial;align-self:auto;color:rgb(0,0,0);background:transparent;font-weight:400;font-size:inherit;text-transform:inherit;margin:0px;padding:0px;letter-spacing:inherit;text-align:initial;position:initial;inset:auto;z-index:auto;margin-right:10px;@media (max-width:600px){display:block;margin-bottom:7px;}"]),Nte=(0,o.Ay)(Bte).withConfig({displayName:"subscribemodal__StyledSpan",componentId:"sc-1gg76ik-5"})(["background:rgb(226,8,128);color:#fff;font-weight:600;padding:3px 8px;@media (max-width:600px){display:inline;}"]),Rte=o.Ay.h3.withConfig({displayName:"subscribemodal__H3",componentId:"sc-1gg76ik-6"})(['color:rgb(0 0 0 / 0.5);font-weight:300;font-size:1em;text-transform:uppercase;margin:-15px 0px 20px 0px;padding:0px;letter-spacing:0.1em;font-family:"Source Sans Pro",Helvetica,sans-serif;text-align:inherit;max-width:initial;@media (max-width:600px){margin-top:0;margin-bottom:-7px;}@media (max-width:1000px){width:90%;}']),Lte=o.Ay.div.withConfig({displayName:"subscribemodal__Overlay",componentId:"sc-1gg76ik-7"})(["top:0;left:0;right:0;background:rgba(0,0,0,0.85);height:100%;width:100%;z-index:1000;position:fixed;display:flex;justify-content:center;align-items:center;overflow-y:scroll;"]),Fte=o.Ay.div.withConfig({displayName:"subscribemodal__Modal",componentId:"sc-1gg76ik-8"})(["padding:3.875em;background:white;text-align:left;border:1px solid rgba(0,0,0,0.16);box-sizing:border-box;box-shadow:0px 4px 4px rgba(0,0,0,0.25);border-radius:15px;position:relative;& > img{position:absolute;right:40px;top:40px;cursor:pointer;}@media (max-width:1000px){width:max(70vw,350px);padding:2em;.modal__content{display:flex !important;flex-direction:column !important;align-items:center !important;gap:10px !important;}}"]),Ute={titleBg:"linear-gradient(87.17deg, #EA4EE4 0%, #D23CDF 0.01%, #8B5CF6 100%)",titleTextColor:"#fff",bgColorPrimary:"#fff",bgColorSecondary:"#EDE9FE",textColorPrimary:"#000",textColorSecondary:"#71717A",textGradient:"linear-gradient(45deg, #B6A0F5, #F46EF6, #FFDED3, #FFCFC5)",btnColorPrimary:"#8B5CF6",btnOutline:"#8B5CF6",borderColor:"#DCDCDF",borderRadius:"17px",containerBorderRadius:"12px",statusColorError:"#E93636",statusColorSuccess:"#30CC8B",iconColorPrimary:"#82828A"},zte=(0,i.createContext)(Ute),Hte=()=>{const e=i.useContext(zte);return(0,n.jsx)(o.NP,Object.assign({theme:e},{children:(0,n.jsxs)(Vte,{children:[(0,n.jsxs)(Kte,{children:[(0,n.jsx)(Gte,{}),(0,n.jsxs)(qte,{children:[(0,n.jsx)(Wte,{}),(0,n.jsx)(Jte,{})]})]}),(0,n.jsx)(Yte,{}),(0,n.jsxs)(Zte,{children:[(0,n.jsx)($te,{}),(0,n.jsxs)(Xte,{children:[(0,n.jsx)(ere,{}),(0,n.jsx)(ere,{}),(0,n.jsx)(ere,{})]})]})]})}))},Vte=o.Ay.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonContainer",componentId:"sc-qo65s5-0"})(["display:flex;flex-direction:column;gap:24px;padding:16px;background-color:",";border-radius:17px;border:1px solid ",";;position:relative;width:inherit;&:after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:17px;background-color:",";opacity:0.5;transition:opacity 0.8s ease-in-out infinite alternate;}&:hover:after{opacity:0.3;}"],(e=>e.theme.bgColorPrimary),(e=>e.theme.borderColor),(e=>e.theme.bgColorPrimary)),Kte=o.Ay.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonContent",componentId:"sc-qo65s5-1"})(["display:flex;align-items:center;gap:10px;"]),Gte=o.Ay.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonProfilePic",componentId:"sc-qo65s5-2"})(["width:48px;height:48px;border-radius:50%;border:1px solid ",";background-color:",";transition:opacity 0.8s ease-in-out infinite alternate;&:hover{opacity:0.5;}"],(e=>e.theme.borderColor),(e=>e.theme.iconColorPrimary)),qte=o.Ay.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonProfileInfo",componentId:"sc-qo65s5-3"})(["display:flex;flex-direction:column;gap:5px;width:100%;"]),Qte=o.Ay.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonText",componentId:"sc-qo65s5-4"})(["width:100%;height:18px;background-color:",";border-radius:8px;border:1px solid ",";transition:opacity 0.8s ease-in-out infinite alternate;&:hover{opacity:0.5;}"],(e=>e.theme.iconColorPrimary),(e=>e.theme.borderColor)),Wte=(0,o.Ay)(Qte).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonName",componentId:"sc-qo65s5-5"})(["width:30%;"]),Jte=(0,o.Ay)(Qte).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonHandle",componentId:"sc-qo65s5-6"})(["width:40%;"]),Yte=(0,o.Ay)(Qte).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonSpaceInfo",componentId:"sc-qo65s5-7"})(["width:100%;height:30px;"]),Zte=o.Ay.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonLine",componentId:"sc-qo65s5-8"})(["display:flex;align-items:center;width:100%;"]),$te=(0,o.Ay)(Qte).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonLeftSquare",componentId:"sc-qo65s5-9"})(["width:10%;height:32px;"]),Xte=o.Ay.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonOverlap",componentId:"sc-qo65s5-10"})(["display:flex;align-items:flex-start;justify-content:right;width:100%;margin-top:8px;"]),ere=(0,o.Ay)(Gte).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonOverlapProfilePic",componentId:"sc-qo65s5-11"})(["height:48px;border:1px solid ",";margin-left:-24px;transition:opacity 0.8s ease-in-out infinite alternate;&:nth-child(2){margin-left:-24px;}&:nth-child(3){margin-left:-24px;}"],(e=>e.theme.borderColor));function tre(e){const t=new Date(e),r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()],n=t.getDate(),i=["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()],o=t.getHours()>=12?"PM":"AM";return`${r}, ${n} ${i} at ${"PM"===o?t.getHours()%12:t.getHours()}:${t.getMinutes()} ${o}`}const rre=({participants:e,orientation:t,imageHeight:r})=>(0,n.jsxs)(nre,{children:[(0,n.jsx)(ire,Object.assign({orientation:t},{children:"pill"===t?e&&e.map(((e,t)=>t<2&&(0,n.jsx)(ore,{src:null==e?void 0:e.image,alt:"avatar",className:`index${t}`}))):e&&e.map(((e,t)=>t<3&&(0,n.jsx)(ore,{src:null==e?void 0:e.image,alt:"avatar",className:`index${t}`})))})),(0,n.jsx)(are,{children:e&&e.length-3>0?"+"+(e.length-3):null})]}),nre=o.Ay.div.withConfig({displayName:"ParticipantContainer__Participants",componentId:"sc-1fgkl2u-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;}"]),ire=o.Ay.div.withConfig({displayName:"ParticipantContainer__ParticipantsIconContainer",componentId:"sc-1fgkl2u-1"})(["display:grid;grid-template-columns:repeat(5,1fr);width:",";padding:0 4px;}"],(e=>"pill"===e.orientation?"46.5px":"62px")),ore=o.Ay.img.withConfig({displayName:"ParticipantContainer__ParticipantsIcon",componentId:"sc-1fgkl2u-2"})(["height:",";border-radius:50%;&.index0{position:relative;top:0;left:0;}&.index1{position:relative;top:0;left:-50%;}&.index2{position:relative;top:0;left:-100%;}}"],(e=>e.imageHeight?e.imageHeight:"31px")),are=o.Ay.div.withConfig({displayName:"ParticipantContainer__ParticipantsText",componentId:"sc-1fgkl2u-3"})(["display:flex;justify-content:center;align-items:center;width:auto;}"]),sre=({name:e="Host Name",handle:t="Host Handle",imageUrl:r="",statusTheme:a,imageHeight:s})=>{const c=i.useContext(zte);return(0,n.jsx)(o.NP,Object.assign({theme:c},{children:(0,n.jsxs)(cre,Object.assign({theme:c},{children:[(0,n.jsx)(ure,Object.assign({theme:c},{children:(0,n.jsx)(lre,{src:r,alt:"host pfp",imageHeight:s,theme:c})})),(0,n.jsxs)(dre,Object.assign({theme:c},{children:[(0,n.jsxs)(fre,Object.assign({theme:c},{children:[(0,n.jsx)(hre,Object.assign({theme:c},{children:e})),(0,n.jsx)(pre,Object.assign({statusTheme:a,theme:c},{children:"Host"}))]})),t&&(0,n.jsxs)(gre,Object.assign({statusTheme:a,theme:c},{children:["@",t]}))]}))]}))}))},cre=o.Ay.div.withConfig({displayName:"HostPfpContainer__ProfileContainer",componentId:"sc-vviclm-0"})(["display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center;"]),ure=o.Ay.div.withConfig({displayName:"HostPfpContainer__PfpContainer",componentId:"sc-vviclm-1"})(["display:flex;"]),lre=o.Ay.img.withConfig({displayName:"HostPfpContainer__Pfp",componentId:"sc-vviclm-2"})(["height:",";width:",";border-radius:50%;"],(e=>{var t;return null!==(t=e.imageHeight)&&void 0!==t?t:"32px"}),(e=>{var t;return null!==(t=e.imageHeight)&&void 0!==t?t:"32px"})),dre=o.Ay.div.withConfig({displayName:"HostPfpContainer__HostContainer",componentId:"sc-vviclm-3"})(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-left:8px;width:100%;overflow:hidden;text-overflow:ellipsis;"]),fre=o.Ay.div.withConfig({displayName:"HostPfpContainer__HostName",componentId:"sc-vviclm-4"})(["display:flex;flex-direction:row;font-weight:600;font-size:15px;width:100%;"]),hre=o.Ay.span.withConfig({displayName:"HostPfpContainer__Name",componentId:"sc-vviclm-5"})(["text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:color:",";"],(e=>"Live"===e.statusTheme?`${e.theme.titleTextColor}`:`${e.theme.textColorPrimary}`)),pre=o.Ay.div.withConfig({displayName:"HostPfpContainer__Host",componentId:"sc-vviclm-6"})(["display:flex;flex-direction:row;align-items:center;padding:2px 8px;margin-left:8px;line-height:18px;width:max-content;height:19px;background:",";color:",";border-radius:6px;font-weight:500;font-size:10px;"],(e=>(e.statusTheme,`${e.theme.btnOutline}`)),(e=>"Live"===e.statusTheme?"inherit":`${e.theme.bgColorSecondary}`)),gre=o.Ay.div.withConfig({displayName:"HostPfpContainer__HostHandle",componentId:"sc-vviclm-7"})(["color:",";padding:0;font-weight:450;font-size:14px;line-height:130%;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;"],(e=>"Live"===e.statusTheme?`${e.theme.titleTextColor}`:`${e.theme.textColorSecondary}`));var mre="data:image/svg+xml,%3csvg width='23' height='23' viewBox='0 0 23 23' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_11578_40259)'%3e%3cpath d='M6.5 9.08984V13.0898' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.5 4.08984V18.0898' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M14.5 6.58984L14.5 15.5898' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M18.5 9.08984L18.5 13.0898' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_11578_40259'%3e%3crect width='22' height='23' fill='white' transform='translate(0.5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";const yre=({color:e})=>(0,n.jsxs)("svg",Object.assign({width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M16.25 3.625H3.75C3.40482 3.625 3.125 3.90482 3.125 4.25V16.75C3.125 17.0952 3.40482 17.375 3.75 17.375H16.25C16.5952 17.375 16.875 17.0952 16.875 16.75V4.25C16.875 3.90482 16.5952 3.625 16.25 3.625Z",stroke:null!=e?e:"#8B5CF6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M13.75 2.375V4.875",stroke:null!=e?e:"#8B5CF6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M6.25 2.375V4.875",stroke:null!=e?e:"#8B5CF6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M3.125 7.375H16.875",stroke:null!=e?e:"#8B5CF6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})),bre=({spaceId:e,orientation:t,isInvite:r,onBannerClick:a,actionCallback:s})=>{const c=i.useContext(zte),u=(e=>{const{getSpaceInfo:t,setSpaceInfo:r,env:n}=(0,i.useContext)(l5),[o,a]=(0,i.useState)(t(e));return(0,i.useEffect)((()=>{e&&(t(e)?a(t(e)):pJ(void 0,void 0,void 0,(function*(){try{const t=yield _.space.get({spaceId:e,env:n});r(e,t),a(t)}catch(ys){console.error(ys)}})))}),[e]),o})(e),{spacesObjectRef:l,spaceObjectData:d,initSpaceObject:f,setSpaceWidgetId:h,isSpeaker:p,isListener:g,account:m,env:y}=M9(),b="ACTIVE"===(v=null==u?void 0:u.status)?"Live":"PENDING"===v?"Scheduled":"Ended";var v;return u?(0,n.jsx)(o.NP,Object.assign({theme:c},{children:(0,n.jsxs)(vre,Object.assign({orientation:t,status:b,theme:c,onClick:()=>{a&&a((null==u?void 0:u.spaceId)||"")},clickable:Boolean(a)},{children:["maximized"===t&&(0,n.jsx)(sre,{name:null==u?void 0:u.members[0].wallet.slice(7),statusTheme:b,imageHeight:"48px",imageUrl:null==u?void 0:u.members[0].image,handle:null==u?void 0:u.members[0].wallet.slice(7)}),"maximized"===t?null:"Live"===b?(0,n.jsx)(Ere,{src:mre,alt:"status"}):(0,n.jsx)(yre,{color:c.btnOutline}),(0,n.jsx)(wre,Object.assign({orientation:t,theme:c,status:b},{children:"pill"===t?`${null==u?void 0:u.spaceName.slice(0,20)}...`:null==u?void 0:u.spaceName})),(0,n.jsxs)(Are,Object.assign({orientation:t,theme:c},{children:[(0,n.jsxs)(Cre,Object.assign({orientation:t},{children:["Live"===b?(0,n.jsx)(Ere,{src:mre,alt:"status"}):(0,n.jsx)(yre,{color:c.btnOutline}),(0,n.jsx)(xre,Object.assign({status:b},{children:"Live"===b?"Live":"Scheduled"===b?`${tre(null==u?void 0:u.scheduleAt)}`:"Ended"}))]})),(0,n.jsx)(rre,{participants:null==u?void 0:u.pendingMembers,orientation:t})]})),!0===r&&"Live"===b?(0,n.jsx)(Sre,Object.assign({status:"Live",onClick:()=>pJ(void 0,void 0,void 0,(function*(){yield f(null==u?void 0:u.spaceId),s(),h(null==u?void 0:u.spaceId)}))},{children:"Join this space"})):!0===r&&"Scheduled"===b?(0,n.jsx)(n.Fragment,{}):null]}))})):(0,n.jsx)(Hte,{})},vre=o.Ay.div.withConfig({displayName:"SpaceBanner__Container",componentId:"sc-qqsw1n-0"})(["display:flex;flex-direction:",";justify-content:",";align-items:",";padding:",";gap:",";width:",";height:",";background:",";border-radius:",";color:",";min-width:0;text-overflow:ellipsis;overflow:hidden;cursor:",";"],(e=>"maximized"===e.orientation?"column":"row"),(e=>(e.orientation,"space-between")),(e=>"maximized"===e.orientation?"flex-start":"center"),(e=>"maximized"===e.orientation?"16px":"minimized"===e.orientation?"0 20px":"0 11px"),(e=>"maximized"===e.orientation?"16px":"8px"),(e=>"maximized"===e.orientation||"minimized"===e.orientation?"inherit":"fit-content"),(e=>"maximized"===e.orientation?"auto":"minimized"===e.orientation?"40px":"63px"),(e=>"Live"===e.status?e.theme.titleBg:e.theme.bgColorSecondary),(e=>"maximized"===e.orientation?"17px":"minimized"===e.orientation?"12px":"24px"),(e=>"Live"===e.status?`${e.theme.titleTextColor}`:`${e.theme.textColorPrimary}`),(e=>e.clickable&&"pointer")),wre=o.Ay.div.withConfig({displayName:"SpaceBanner__Title",componentId:"sc-qqsw1n-1"})(["display:flex;flex-direction:row;justify-content:flex-start;align-items:center;font-family:Strawford;font-weight:",";font-size:",";line-height:130%;color:",";width:90%;line-clamp:",";@media (max-width:425px){width:95%;}"],(e=>"maximized"===e.orientation?"700":"500"),(e=>"maximized"===e.orientation?"20px":"minimized"===e.orientation?"16px":"12px"),(e=>"Live"===e.status?e.theme.titleTextColor:e.theme.textColorPrimary),(e=>"maximized"===e.orientation?"3":"2")),Are=o.Ay.div.withConfig({displayName:"SpaceBanner__Status",componentId:"sc-qqsw1n-2"})(["display:flex;flex-direction:row;width:",";justify-content:space-between;align-items:center;"],(e=>"maximized"===e.orientation?"100%":"fit-content")),Cre=o.Ay.div.withConfig({displayName:"SpaceBanner__Time",componentId:"sc-qqsw1n-3"})(["display:",";flex-direction:row;justify-content:center;align-items:center;"],(e=>"maximized"===e.orientation?"flex":"none")),Ere=o.Ay.img.withConfig({displayName:"SpaceBanner__Icon",componentId:"sc-qqsw1n-4"})(["height:24px;width:24px;padding:0 11px 0 0;align-self:center;"]),xre=o.Ay.div.withConfig({displayName:"SpaceBanner__TimeText",componentId:"sc-qqsw1n-5"})(["font-weight:500;font-size:14px;line-height:150%;color:",";"],(e=>"Live"===e.status?`${e.theme.titleTextColor}`:`${e.theme.textColorSecondary}`)),Sre=o.Ay.button.withConfig({displayName:"SpaceBanner__InviteButton",componentId:"sc-qqsw1n-6"})(["display:flex;justify-content:center;align-items:center;height:36px;width:100%;color:",";border-radius:8px;border:",";background:transparent;cursor:pointer;"],(e=>"Live"===e.status?`${e.theme.titleTextColor}`:`${e.theme.btnColorPrimary}`),(e=>"Live"===e.status?`1px solid ${e.theme.titleTextColor}`:`1px solid ${e.theme.btnColorPrimary}`)),Ire=({videoCallData:e})=>{const t=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(!(null==t?void 0:t.current))return;const r=t.current;r.srcObject=e,r.play()}),[null==t?void 0:t.current,e]),(0,n.jsx)(kre,{ref:t})},kre=o.Ay.video.withConfig({displayName:"VideoPlayer__Video",componentId:"sc-h46doi-0"})(["height:0;width:0;"]);var _re="data:image/svg+xml,%3csvg width='13' height='12' viewBox='0 0 13 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_11746_42664)'%3e%3cpath d='M8.3758 3.5625C8.3758 3.31386 8.47457 3.0754 8.65039 2.89959C8.8262 2.72377 9.06466 2.625 9.3133 2.625C9.56194 2.625 9.8004 2.72377 9.97621 2.89959C10.152 3.0754 10.2508 3.31386 10.2508 3.5625V7.125C10.2508 7.61746 10.1538 8.10509 9.96535 8.56006C9.77689 9.01503 9.50067 9.42843 9.15245 9.77665C8.80423 10.1249 8.39083 10.4011 7.93586 10.5895C7.48089 10.778 6.99326 10.875 6.5008 10.875C4.42986 10.875 3.65314 9.8775 2.12642 6.65625C2.00406 6.44104 1.9718 6.18617 2.03666 5.94725C2.10152 5.70834 2.25825 5.50478 2.47265 5.38099C2.68704 5.25721 2.9417 5.22325 3.18103 5.28653C3.42037 5.3498 3.62497 5.50518 3.75017 5.71875L4.6258 7.125V2.8125C4.6258 2.56386 4.72457 2.3254 4.90039 2.14959C5.0762 1.97377 5.31466 1.875 5.5633 1.875C5.81194 1.875 6.0504 1.97377 6.22621 2.14959C6.40203 2.3254 6.5008 2.56386 6.5008 2.8125' stroke='%238B5CF6' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6.5 5.625V2.0625C6.5 1.81386 6.59877 1.5754 6.77459 1.39959C6.9504 1.22377 7.18886 1.125 7.4375 1.125C7.68614 1.125 7.9246 1.22377 8.10041 1.39959C8.27623 1.5754 8.375 1.81386 8.375 2.0625V5.625' stroke='%238B5CF6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_11746_42664'%3e%3crect width='12' height='12' fill='white' transform='translate(0.5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Tre="data:image/svg+xml,%3csvg width='16' height='22' viewBox='0 0 16 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 4.75C12 2.67893 10.3211 1 8.25 1C6.17893 1 4.5 2.67893 4.5 4.75V10.75C4.5 12.8211 6.17893 14.5 8.25 14.5C10.3211 14.5 12 12.8211 12 10.75V4.75Z' stroke='%238B5CF6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8.25 17.5V20.5' stroke='%238B5CF6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M15 10.75C15 12.5402 14.2888 14.2571 13.023 15.523C11.7571 16.7888 10.0402 17.5 8.25 17.5C6.45979 17.5 4.7429 16.7888 3.47703 15.523C2.21116 14.2571 1.5 12.5402 1.5 10.75' stroke='%238B5CF6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Mre=e=>{const t=i.useContext(zte),{wallet:r,isHost:a,isSpeaker:s,image:c,requested:u=!1,mic:l=null,stream:d}=e||{},[f,h]=(0,i.useState)(!1),p=(0,i.useRef)(null);return(0,i.useEffect)((()=>{const e=e=>{p.current&&!p.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(e5,Object.assign({display:"flex",flexDirection:"column",alignItems:"center",width:"118px"},{children:[(0,n.jsx)(n5,{src:c,alt:"Profile pic",height:"56px",width:"56px",borderRadius:"50%",cursor:"pointer",onClick:()=>{h(!f)}}),(0,n.jsxs)(a5,Object.assign({fontSize:"16px",marginTop:"12px",fontWeight:600,color:`${t.textColorPrimary}`},{children:[r.replace("eip155:","").slice(0,-36)+"...",d&&(0,n.jsx)(Ire,{videoCallData:d})]})),u?(0,n.jsxs)(e5,Object.assign({display:"flex",marginTop:"5px",fontWeight:600,gap:"4px",alignItems:"center"},{children:[(0,n.jsx)(a5,Object.assign({fontSize:"12px",color:`${t.btnColorPrimary}`},{children:"Requested"})),(0,n.jsx)(n5,{src:_re,alt:"Hand Icon",height:"15px",width:"15px"})]})):(0,n.jsxs)(e5,Object.assign({display:"flex",marginTop:"5px",fontWeight:600,gap:"4px",alignItems:"center"},{children:[(0,n.jsx)(a5,Object.assign({fontSize:"14px",color:`${t.textColorSecondary}`},{children:a?"Host":s?"Speaker":"Listener"})),!1===l&&(0,n.jsx)(n5,{src:"data:image/svg+xml,%3csvg width='12' height='14' viewBox='0 0 12 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.3701 12.1637L1.37013 1.16369C1.32622 1.1142 1.27292 1.07391 1.21333 1.04516C1.15373 1.01642 1.08902 0.999783 1.02295 0.996229C0.956884 0.992675 0.890766 1.00227 0.828431 1.02446C0.766097 1.04664 0.708786 1.08098 0.65982 1.12548C0.610854 1.16998 0.571207 1.22376 0.543177 1.28369C0.515147 1.34363 0.499292 1.40853 0.49653 1.47463C0.493768 1.54074 0.504154 1.60674 0.527087 1.66881C0.550019 1.73087 0.585042 1.78776 0.630126 1.83619L3.00013 4.44307V6.99994C3.0002 7.53837 3.14517 8.06686 3.41985 8.52996C3.69452 8.99306 4.08877 9.3737 4.56122 9.63195C5.03368 9.8902 5.56693 10.0165 6.10503 9.99771C6.64313 9.97888 7.16625 9.81558 7.6195 9.52494L8.2995 10.2749C7.70016 10.696 6.99672 10.9444 6.26589 10.9931C5.53505 11.0417 4.80489 10.8888 4.15501 10.5509C3.50514 10.213 2.96051 9.70323 2.58052 9.07706C2.20053 8.45088 1.99977 7.7324 2.00013 6.99994C2.00013 6.86734 1.94745 6.74016 1.85368 6.64639C1.75991 6.55262 1.63273 6.49994 1.50013 6.49994C1.36752 6.49994 1.24034 6.55262 1.14657 6.64639C1.0528 6.74016 1.00013 6.86734 1.00013 6.99994C1.00165 8.23903 1.46258 9.43354 2.29378 10.3525C3.12498 11.2714 4.2674 11.8495 5.50013 11.9749V13.4999C5.50013 13.6326 5.5528 13.7597 5.64657 13.8535C5.74034 13.9473 5.86752 13.9999 6.00013 13.9999C6.13273 13.9999 6.25991 13.9473 6.35368 13.8535C6.44745 13.7597 6.50013 13.6326 6.50013 13.4999V11.9743C7.39687 11.8851 8.25265 11.5544 8.97638 11.0174L10.6301 12.8362C10.674 12.8857 10.7273 12.926 10.7869 12.9547C10.8465 12.9835 10.9112 13.0001 10.9773 13.0037C11.0434 13.0072 11.1095 12.9976 11.1718 12.9754C11.2342 12.9532 11.2915 12.9189 11.3404 12.8744C11.3894 12.8299 11.429 12.7761 11.4571 12.7162C11.4851 12.6563 11.501 12.5914 11.5037 12.5253C11.5065 12.4591 11.4961 12.3931 11.4732 12.3311C11.4502 12.269 11.4152 12.2121 11.3701 12.1637ZM6.00013 8.99994C5.46969 8.99994 4.96099 8.78923 4.58591 8.41416C4.21084 8.03908 4.00013 7.53038 4.00013 6.99994V5.54307L6.93263 8.76932C6.64514 8.92081 6.32508 8.99996 6.00013 8.99994ZM3.44763 1.42369C3.79063 0.868277 4.30543 0.439895 4.91393 0.203542C5.52243 -0.0328107 6.19142 -0.0642356 6.8194 0.114035C7.44737 0.292306 8.00007 0.670544 8.39362 1.19136C8.78718 1.71218 9.00011 2.34715 9.00013 2.99994V6.77682C9.00013 6.90943 8.94745 7.0366 8.85368 7.13037C8.75991 7.22414 8.63273 7.27682 8.50013 7.27682C8.36752 7.27682 8.24034 7.22414 8.14657 7.13037C8.0528 7.0366 8.00013 6.90943 8.00013 6.77682V2.99994C8.00037 2.56452 7.8585 2.14091 7.59607 1.79345C7.33364 1.44599 6.96498 1.19367 6.54609 1.0748C6.1272 0.955937 5.68097 0.977024 5.27515 1.13486C4.86934 1.2927 4.52612 1.57866 4.29763 1.94932C4.26433 2.00761 4.21964 2.0586 4.16622 2.09925C4.1128 2.1399 4.05174 2.16938 3.98668 2.18593C3.92162 2.20247 3.85389 2.20575 3.78754 2.19555C3.72119 2.18536 3.65757 2.16192 3.60047 2.12661C3.54338 2.0913 3.49398 2.04486 3.45522 1.99005C3.41646 1.93524 3.38913 1.87319 3.37486 1.80759C3.3606 1.74199 3.35969 1.6742 3.37219 1.60824C3.38469 1.54228 3.41035 1.47952 3.44763 1.42369ZM9.72763 8.45432C9.90853 7.99081 10.001 7.4975 10.0001 6.99994C10.0001 6.86734 10.0528 6.74016 10.1466 6.64639C10.2403 6.55262 10.3675 6.49994 10.5001 6.49994C10.6327 6.49994 10.7599 6.55262 10.8537 6.64639C10.9474 6.74016 11.0001 6.86734 11.0001 6.99994C11.001 7.62199 10.8853 8.23868 10.6589 8.81807C10.636 8.88057 10.6009 8.93788 10.5555 8.98663C10.5102 9.03538 10.4556 9.07459 10.3949 9.10196C10.3343 9.12932 10.2687 9.1443 10.2022 9.14601C10.1356 9.14772 10.0694 9.13613 10.0074 9.11191C9.94543 9.08769 9.88889 9.05134 9.84113 9.00498C9.79336 8.95862 9.75533 8.90319 9.72927 8.84194C9.70321 8.78069 9.68964 8.71486 9.68936 8.6483C9.68907 8.58173 9.70208 8.51579 9.72763 8.45432Z' fill='%23E93636'/%3e%3c/svg%3e",alt:"Mic Off Icon",height:"15px",width:"15px"}),l&&(0,n.jsx)(n5,{src:Tre,alt:"Mic On Icon",height:"15px",width:"15px"})]}))]}))}))},Pre=({children:e,clickawayClose:t,width:r})=>{const o=(0,i.useRef)(null),a=(0,i.useContext)(zte);return H9(o,(()=>{t&&t()})),(0,n.jsx)(Ore,Object.assign({ref:o,width:r,theme:a},{children:e}))},jre=({clickawayClose:e,children:t,width:r})=>{const o=(0,i.useContext)(zte);return(0,n.jsx)(Dre,Object.assign({theme:o},{children:e?(0,n.jsx)(Pre,Object.assign({clickawayClose:e,width:r},{children:t})):(0,n.jsx)(Ore,Object.assign({width:r,theme:o},{children:t}))}))},Dre=o.Ay.div.withConfig({displayName:"Modal__ModalOverlay",componentId:"sc-1q8t9j6-0"})(["position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.4);display:flex;color:",";justify-content:center;align-items:center;z-index:10;"],(e=>{var t;return null!==(t=e.theme.textColorPrimary)&&void 0!==t?t:"#000"})),Ore=o.Ay.div.withConfig({displayName:"Modal__ModalParent",componentId:"sc-1q8t9j6-1"})(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;padding:24px 20px;background:",";border-radius:12px;width:",";"],(e=>e.theme.bgColorPrimary),(e=>e.width?e.width:"auto")),Bre=({stroke:e,height:t,width:r})=>(0,n.jsxs)("svg",Object.assign({width:r||"18.6",height:t||"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer"},{children:[(0,n.jsx)("path",{d:"M14.1906 4.15625L3.97363 14.8438",stroke:e||"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M14.1906 14.8438L3.97363 4.15625",stroke:e||"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})),Nre=()=>(0,n.jsxs)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M16.875 10H3.125",stroke:"#82828A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M8.75 4.375L3.125 10L8.75 15.625",stroke:"#82828A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})),Rre=e=>{const t=(0,i.useContext)(zte);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(Lre,{children:[e.backCallback?(0,n.jsx)(Fre,Object.assign({onClick:e.backCallback},{children:(0,n.jsx)(Nre,{})})):null,(0,n.jsxs)(zre,{children:[e.heading,e.headingBadgeNumber&&(0,n.jsx)(Hre,Object.assign({theme:t},{children:e.headingBadgeNumber}))]}),e.closeCallback?(0,n.jsx)(Ure,Object.assign({onClick:e.closeCallback},{children:(0,n.jsx)(Bre,{})})):null]})}))},Lre=o.Ay.div.withConfig({displayName:"ModalHeader__Header",componentId:"sc-1ibnxvs-0"})(["display:flex;align-items:center;width:100%;margin-bottom:24px;color:",";"],(e=>e.theme.textColorPrimary)),Fre=o.Ay.button.withConfig({displayName:"ModalHeader__BackBtn",componentId:"sc-1ibnxvs-1"})(["position:absolute;top:0;left:0;margin:1.5rem;border:none;background:transparent;&:hover{cursor:pointer;}"]),Ure=o.Ay.button.withConfig({displayName:"ModalHeader__CloseBtn",componentId:"sc-1ibnxvs-2"})(["position:absolute;top:0;right:0;margin:1.5rem;border:none;background:transparent;&:hover{cursor:pointer;}"]),zre=o.Ay.div.withConfig({displayName:"ModalHeader__CenterText",componentId:"sc-1ibnxvs-3"})(["position:absolute;top:0;left:50%;transform:translateX(-50%);margin:1.5rem 0;display:flex;flex-direction:row;align-items:center;font-weight:500;"]),Hre=o.Ay.div.withConfig({displayName:"ModalHeader__NumberBadge",componentId:"sc-1ibnxvs-4"})(["display:flex;justify-content:center;align-items:center;background:",";color:#fff;border-radius:8px;margin-left:8px;padding:4px 8px;font-size:13px;font-weight:500;}"],(e=>e.theme.btnColorPrimary)),Vre=({name:e="Host Name",handle:t="Host Handle",imageUrl:r="",tag:a,imageHeight:s,border:c=!1,contBtn:u,btnCallback:l,removeCallback:d,promoteCallback:f})=>{const h=(0,i.useContext)(zte),p=(0,i.useRef)(null),[g,m]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{const e=e=>{p.current&&!p.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,n.jsx)(o.NP,Object.assign({theme:h},{children:(0,n.jsxs)(Kre,Object.assign({border:c},{children:[(0,n.jsx)(Gre,{children:(0,n.jsx)(qre,{src:r,alt:"host pfp",imageHeight:s})}),(0,n.jsxs)(Qre,{children:[(0,n.jsxs)(Wre,{children:[(0,n.jsx)(Jre,{children:(0,n.jsx)(Yre,{children:e})}),t&&(0,n.jsxs)($re,Object.assign({theme:h},{children:["@",t]}))]}),a?(0,n.jsx)(Zre,{children:a}):null,u?(0,n.jsx)("div",Object.assign({onClick:null!=l?l:()=>{m(!g)}},{children:u})):null]}),g&&(d||f)?(0,n.jsxs)(Xre,Object.assign({theme:h,ref:p,isDDOpen:g},{children:[d?(0,n.jsx)(ene,Object.assign({onClick:d},{children:"Remove"})):null,f?(0,n.jsx)(ene,Object.assign({onClick:f},{children:"Make Admin"})):null]})):null]}))}))},Kre=o.Ay.div.withConfig({displayName:"ProfileContainer__ParentContainer",componentId:"sc-ia68b0-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;position:relative;padding:8px 16px;border:",";color:",";border-radius:16px;"],(e=>e.border?"1px solid #E4E4E7":"none"),(e=>{var t;return null!==(t=e.theme.textColorPrimary)&&void 0!==t?t:"#000"})),Gre=o.Ay.div.withConfig({displayName:"ProfileContainer__PfpContainer",componentId:"sc-ia68b0-1"})(["display:flex;"]),qre=o.Ay.img.withConfig({displayName:"ProfileContainer__Pfp",componentId:"sc-ia68b0-2"})(["height:",";width:",";;border-radius:50%;"],(e=>{var t;return null!==(t=e.imageHeight)&&void 0!==t?t:"32px"}),(e=>{var t;return null!==(t=e.imageHeight)&&void 0!==t?t:"32px"})),Qre=o.Ay.div.withConfig({displayName:"ProfileContainer__HostContainer",componentId:"sc-ia68b0-3"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-left:8px;width:100%;overflow:hidden;text-overflow:ellipsis;"]),Wre=o.Ay.div.withConfig({displayName:"ProfileContainer__ProfileDetails",componentId:"sc-ia68b0-4"})(["display:flex;flex-direction:column;flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:200px;"]),Jre=o.Ay.div.withConfig({displayName:"ProfileContainer__HostName",componentId:"sc-ia68b0-5"})(["display:flex;flex-direction:row;font-weight:600;font-size:15px;width:100%;"]),Yre=o.Ay.span.withConfig({displayName:"ProfileContainer__Name",componentId:"sc-ia68b0-6"})(["text-overflow:ellipsis;white-space:nowrap;overflow:hidden;"]),Zre=o.Ay.div.withConfig({displayName:"ProfileContainer__Host",componentId:"sc-ia68b0-7"})(["display:flex;flex-direction:row;align-items:center;margin-left:8px;line-height:18px;width:max-content;background:rgba(139,92,246,0.2);color:",";border-radius:6px;font-weight:500;font-size:12px;padding:6px 10px;border-radius:8px;"],(e=>e.theme.btnColorPrimary)),$re=o.Ay.div.withConfig({displayName:"ProfileContainer__HostHandle",componentId:"sc-ia68b0-8"})(["background:",";-webkit-background-clip:text;-webkit-text-fill-color:transparent;padding:0;font-weight:450;font-size:14px;line-height:130%;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;"],(e=>e.theme.textGradient)),Xre=o.Ay.div.withConfig({displayName:"ProfileContainer__DropDown",componentId:"sc-ia68b0-9"})(["position:absolute;top:0px;right:0px;display:flex;flex-direction:column;gap:12px;justify-content:center;align-items:start;animation:"," 0.2s ease-in-out;padding:16px;background:",";color:",";border-radius:16px;border:1px solid ",";"],(({isDDOpen:e})=>e?tne:rne),(e=>e.theme.bgColorPrimary),(e=>e.theme.textColorPrimary),(e=>e.theme.borderColor)),ene=o.Ay.div.withConfig({displayName:"ProfileContainer__DDItem",componentId:"sc-ia68b0-10"})(["cursor:pointer;"]),tne=(0,o.i7)(["from{opacity:0;}to{opacity:1;}"]),rne=(0,o.i7)(["from{opacity:1;}to{opacity:0;visibility:hidden;}"]),nne=new Array(4);function ine(){const e=nne[0]^nne[0]<<11;return nne[0]=nne[1],nne[1]=nne[2],nne[2]=nne[3],nne[3]=nne[3]^nne[3]>>19^e^e>>8,(nne[3]>>>0)/(1<<31>>>0)}function one(){return`hsl(${Math.floor(360*ine())},${`${Math.floor(60*ine())+40}%`},${`${Math.floor(25*(ine()+ine()+ine()+ine()))}%`})`}function ane(e){const t={};return t.seed=e.seed||Math.floor(Math.random()*Math.pow(10,16)).toString(16),function(e){nne.fill(0);for(let t=0;t(0,n.jsx)("svg",Object.assign({width:t||"48",height:e||"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M24 4.5C20.1433 4.5 16.3731 5.64366 13.1664 7.78634C9.95963 9.92903 7.46027 12.9745 5.98436 16.5377C4.50845 20.1008 4.12228 24.0216 4.8747 27.8043C5.62711 31.5869 7.4843 35.0615 10.2114 37.7886C12.9386 40.5157 16.4131 42.3729 20.1957 43.1253C23.9784 43.8777 27.8992 43.4916 31.4623 42.0156C35.0255 40.5397 38.071 38.0404 40.2137 34.8336C42.3564 31.6269 43.5 27.8567 43.5 24C43.4901 18.8313 41.4325 13.8772 37.7776 10.2224C34.1228 6.56755 29.1687 4.50991 24 4.5ZM33.2813 20.5875L22.2938 31.0875C22.0097 31.3547 21.6337 31.5024 21.2438 31.5C21.0531 31.5027 20.8639 31.4677 20.6869 31.3969C20.5099 31.3261 20.3487 31.2209 20.2125 31.0875L14.7188 25.8375C14.5664 25.7046 14.4425 25.5422 14.3544 25.3601C14.2664 25.1781 14.2161 24.9801 14.2066 24.7781C14.197 24.5761 14.2284 24.3743 14.2988 24.1847C14.3693 23.9952 14.4773 23.8218 14.6164 23.6751C14.7556 23.5283 14.923 23.4113 15.1085 23.3309C15.2941 23.2505 15.494 23.2084 15.6962 23.2072C15.8984 23.2061 16.0988 23.2458 16.2852 23.324C16.4717 23.4023 16.6404 23.5174 16.7813 23.6625L21.2438 27.9187L31.2188 18.4125C31.5104 18.158 31.8891 18.0262 32.2758 18.0445C32.6624 18.0628 33.027 18.2298 33.2933 18.5107C33.5597 18.7915 33.7071 19.1644 33.7049 19.5515C33.7026 19.9386 33.5508 20.3098 33.2813 20.5875Z",fill:"#30CC8B"})})),dne=({height:e,width:t,color:r})=>(0,n.jsxs)("svg",Object.assign({width:t||"48",height:e||"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C14.0589 6 6 14.0589 6 24C6 33.9411 14.0589 42 24 42Z",stroke:"#E93636","stroke-width":"2","stroke-miterlimit":"10"}),(0,n.jsx)("path",{d:"M30 18L18 30",stroke:"#E93636","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M30 30L18 18",stroke:"#E93636","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})),fne=e=>{const{members:t,acceptCallback:r,rejectCallback:i,isHost:o}=e;return(0,n.jsx)(mne,{children:t.map((e=>{var t,a;return(0,n.jsx)(Vre,{handle:e.address,name:e.address,imageUrl:null===(a=null===(t=null==une?void 0:une(e.address))||void 0===t?void 0:t.toDataURL())||void 0===a?void 0:a.toString(),imageHeight:"48px",contBtn:o?(0,n.jsxs)(wne,{children:[(0,n.jsx)(wne,Object.assign({onClick:()=>{i(e.address)}},{children:(0,n.jsx)(dne,{})})),(0,n.jsx)(wne,Object.assign({onClick:()=>{r(e.address)}},{children:(0,n.jsx)(lne,{})}))]}):null,border:!0})}))})},hne=e=>{const{members:t,theme:r}=e;return(0,n.jsx)(mne,{children:t.map((e=>{var t,r;return(0,n.jsx)(Vre,{handle:e.address,name:e.address,imageUrl:null===(r=null===(t=null==une?void 0:une(e.address))||void 0===t?void 0:t.toDataURL())||void 0===r?void 0:r.toString(),imageHeight:"48px",border:!0})}))})};var pne;!function(e){e.Speakers="Speakers",e.Requests="Requests",e.Listeners="Listeners"}(pne||(pne={}));const gne=({onClose:e,spaceData:t,acceptCallback:r,rejectCallback:o,isHost:a})=>{var s,c;const[u,l]=(0,i.useState)(pne.Speakers),d=(0,i.useContext)(zte),f=t.liveSpaceData.host,h=t.liveSpaceData.speakers,p=t.liveSpaceData.listeners,g=t.liveSpaceData.listeners.filter((e=>e.handRaised));return(0,n.jsxs)(jre,Object.assign({clickawayClose:e,width:"380px"},{children:[(0,n.jsx)(Rre,{heading:"Members",closeCallback:e}),(0,n.jsxs)(yne,{children:[(0,n.jsx)(Vre,{imageUrl:null===(c=null===(s=null==une?void 0:une(f.address))||void 0===s?void 0:s.toDataURL())||void 0===c?void 0:c.toString(),name:f.address,handle:f.address,imageHeight:"48px",tag:"Host"}),(0,n.jsx)(bne,{children:Object.values(pne).map((e=>(0,n.jsx)(vne,Object.assign({active:u===e,onClick:()=>(e=>{l(e)})(e)},{children:e}),e)))}),u===pne.Speakers&&(0,n.jsx)(hne,{members:h,theme:d}),u===pne.Requests&&(0,n.jsx)(fne,{isHost:a,members:g,theme:d,acceptCallback:r,rejectCallback:o}),u===pne.Listeners&&(0,n.jsx)(hne,{members:p,theme:d})]})]}))},mne=o.Ay.div.withConfig({displayName:"SpaceMembersSectionModal__MembersContainer",componentId:"sc-1qevf22-0"})(["display:flex;flex-direction:column;gap:8px;"]),yne=o.Ay.div.withConfig({displayName:"SpaceMembersSectionModal__SpacesMembersContainer",componentId:"sc-1qevf22-1"})(["color:black;display:flex;flex-direction:column;margin-top:28px;gap:16px;width:100%;"]),bne=o.Ay.div.withConfig({displayName:"SpaceMembersSectionModal__TabContainer",componentId:"sc-1qevf22-4"})(["display:flex;padding:0px 10px;"]),vne=o.Ay.div.withConfig({displayName:"SpaceMembersSectionModal__Tab",componentId:"sc-1qevf22-5"})(["flex:1;padding:10px;text-align:center;border-bottom:",";cursor:pointer;color:",";"],(e=>e.active?"1px solid #8B5CF6":"1px solid #82828A26"),(e=>e.active?"#8B5CF6":"#82828A")),wne=o.Ay.div.withConfig({displayName:"SpaceMembersSectionModal__SettingsCont",componentId:"sc-1qevf22-6"})(["display:flex;justify-content:center;align-items:center;cursor:pointer;"]),Ane=({size:e=42})=>{const t=(0,i.useContext)(zte);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsx)(Ene,Object.assign({width:`${e}px`},{children:(0,n.jsx)(I7,{color:`${t.btnOutline}`})}))}))},Cne=(0,o.i7)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),Ene=o.Ay.div.withConfig({displayName:"Spinner__SpinLoader",componentId:"sc-104wwvk-0"})(["display:flex;flex:initial;align-self:center;width:",";animation-name:",";animation-duration:2500ms;animation-iteration-count:infinite;animation-timing-function:linear;"],(e=>e.width),Cne);const xne=({userType:e,roomId:t,userId:r})=>pJ(void 0,void 0,void 0,(function*(){if(console.log("\ud83d\ude80 ~ file: getToken.js:5 ~ getToken ~ roomId:",t),console.log("\ud83d\ude80 ~ file: getToken.js:5 ~ getToken ~ userId:",r),"sender"!==e&&"receiver"!==e)throw new Error("Invalid userType. Use 'sender' or 'receiver'.");const n=XD(),i=`${J4}/token?userType=${e}&userName=${r||n}&roomId=${t}`;return yield Qm().get(i)})),Sne=({roomId:e,userId:t,canPublish:r})=>pJ(void 0,void 0,void 0,(function*(){const n=`${J4}/execute?roomName=${e}&identity=${t}&canPublish=${r}`;return yield Qm().get(n)}));function Ine(e){var t=hJ(e,["showIcon"]);const{enabled:r}=XS(t),a=(0,i.useContext)(zte);return(0,n.jsx)(o.NP,Object.assign({theme:a},{children:(0,n.jsxs)(e5,Object.assign({cursor:"pointer",display:"flex",alignItems:"center",gap:"8px",padding:"10px"},{children:[(0,n.jsx)(n5,{width:"14px",height:"20px",src:r?"data:image/svg+xml,%3csvg width='15' height='20' viewBox='0 0 15 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2.85714 10V4.28571C2.85714 3.14907 3.30867 2.05898 4.1124 1.25526C4.91613 0.451529 6.00622 0 7.14286 0C8.2795 0 9.36959 0.451529 10.1733 1.25526C10.977 2.05898 11.4286 3.14907 11.4286 4.28571V10C11.4286 11.1366 10.977 12.2267 10.1733 13.0305C9.36959 13.8342 8.2795 14.2857 7.14286 14.2857C6.00622 14.2857 4.91613 13.8342 4.1124 13.0305C3.30867 12.2267 2.85714 11.1366 2.85714 10ZM14.2857 10C14.2857 9.81056 14.2105 9.62888 14.0765 9.49492C13.9426 9.36097 13.7609 9.28571 13.5714 9.28571C13.382 9.28571 13.2003 9.36097 13.0664 9.49492C12.9324 9.62888 12.8571 9.81056 12.8571 10C12.8571 11.5155 12.2551 12.969 11.1835 14.0406C10.1118 15.1122 8.65838 15.7143 7.14286 15.7143C5.62733 15.7143 4.17388 15.1122 3.10225 14.0406C2.03061 12.969 1.42857 11.5155 1.42857 10C1.42857 9.81056 1.35332 9.62888 1.21936 9.49492C1.08541 9.36097 0.903726 9.28571 0.714286 9.28571C0.524845 9.28571 0.343164 9.36097 0.20921 9.49492C0.075255 9.62888 0 9.81056 0 10C0.0021751 11.7701 0.660644 13.4766 1.84807 14.7893C3.0355 16.1021 4.66754 16.9279 6.42857 17.1071V19.2857C6.42857 19.4752 6.50383 19.6568 6.63778 19.7908C6.77174 19.9247 6.95342 20 7.14286 20C7.3323 20 7.51398 19.9247 7.64793 19.7908C7.78189 19.6568 7.85714 19.4752 7.85714 19.2857V17.1071C9.61818 16.9279 11.2502 16.1021 12.4376 14.7893C13.6251 13.4766 14.2835 11.7701 14.2857 10Z' fill='%238B5CF6'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='16' height='20' viewBox='0 0 16 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M15.4862 18.3857C15.346 18.5131 15.1609 18.5796 14.9717 18.5705C14.7825 18.5615 14.6047 18.4777 14.4772 18.3375L12.1147 15.7393C11.0808 16.5064 9.8583 16.9788 8.57722 17.1062V19.2857C8.57722 19.4752 8.50197 19.6568 8.36801 19.7908C8.23406 19.9247 8.05238 20 7.86293 20C7.67349 20 7.49181 19.9247 7.35786 19.7908C7.2239 19.6568 7.14865 19.4752 7.14865 19.2857V17.1071C5.3876 16.9279 3.75557 16.1021 2.56813 14.7893C1.3807 13.4765 0.722224 11.7701 0.720048 9.99996C0.720048 9.81052 0.795304 9.62884 0.929259 9.49488C1.06321 9.36093 1.2449 9.28567 1.43434 9.28567C1.62378 9.28567 1.80546 9.36093 1.93942 9.49488C2.07337 9.62884 2.14863 9.81052 2.14863 9.99996C2.14877 11.046 2.43605 12.072 2.97916 12.966C3.52227 13.86 4.30036 14.5878 5.22863 15.07C6.15691 15.5523 7.19975 15.7705 8.24349 15.7008C9.28722 15.6311 10.2918 15.2763 11.1478 14.675L10.1763 13.6035C9.52909 14.0186 8.7821 14.2519 8.01369 14.2789C7.24528 14.306 6.48375 14.1258 5.80892 13.7573C5.13409 13.3888 4.57083 12.8455 4.17817 12.1844C3.78552 11.5234 3.57794 10.7688 3.5772 9.99996V6.34727L0.191475 2.62314C0.12707 2.55396 0.077037 2.47268 0.0442759 2.38402C0.0115148 2.29535 -0.00332312 2.20107 0.000622646 2.10663C0.00456841 2.01219 0.0272194 1.91947 0.0672623 1.83385C0.107305 1.74823 0.163943 1.67141 0.233895 1.60784C0.303847 1.54426 0.38572 1.49521 0.47477 1.46351C0.56382 1.43182 0.658275 1.41811 0.752661 1.42319C0.847046 1.42827 0.939486 1.45203 1.02462 1.4931C1.10976 1.53416 1.18589 1.59172 1.24862 1.66243L15.5344 17.3768C15.6618 17.517 15.7283 17.702 15.7192 17.8912C15.7102 18.0804 15.6264 18.2583 15.4862 18.3857ZM10.9058 10.1616C11.0028 10.2683 11.1298 10.3431 11.2701 10.3763C11.4104 10.4094 11.5574 10.3994 11.6919 10.3474C11.8264 10.2954 11.942 10.204 12.0235 10.0851C12.105 9.96617 12.1487 9.82538 12.1487 9.68121V4.28565C12.1486 3.35309 11.8445 2.44598 11.2822 1.70195C10.72 0.957923 9.93044 0.417582 9.03333 0.162908C8.13621 -0.0917655 7.18051 -0.0468726 6.31122 0.290776C5.44193 0.628425 4.70649 1.2404 4.21649 2.03386C4.13436 2.16538 4.09725 2.32006 4.11079 2.47453C4.12432 2.629 4.18774 2.77487 4.29149 2.89011L10.9058 10.1616ZM13.5933 13.0035C13.6807 13.0376 13.774 13.0541 13.8678 13.0522C13.9616 13.0502 14.0541 13.0298 14.14 12.992C14.2259 12.9543 14.3035 12.9 14.3684 12.8323C14.4333 12.7646 14.4843 12.6847 14.5183 12.5973C14.8417 11.7696 15.0071 10.8886 15.0058 9.99996C15.0058 9.81052 14.9306 9.62884 14.7966 9.49488C14.6627 9.36093 14.481 9.28567 14.2915 9.28567C14.1021 9.28567 13.9204 9.36093 13.7865 9.49488C13.6525 9.62884 13.5772 9.81052 13.5772 9.99996C13.5784 10.7108 13.4464 11.4155 13.188 12.0776C13.1537 12.1651 13.137 12.2583 13.1389 12.3522C13.1407 12.4461 13.1611 12.5386 13.1987 12.6246C13.2364 12.7106 13.2906 12.7883 13.3583 12.8534C13.426 12.9184 13.5059 12.9694 13.5933 13.0035Z' fill='%238B5CF6'/%3e%3c/svg%3e",alt:"Mic Icon"}),(0,n.jsx)(a5,Object.assign({color:`${a.btnOutline}`,fontSize:"14px",fontWeight:600},{children:r?"Speaking":"Muted"}))]}))}))}const kne=({spaceData:e,isHost:t,setSpaceStatusState:r,account:a})=>{var s,c,u,l,d,f,h,p,g,m,y,b,v,w,A,C,E,x,S,I;const[k,T]=(0,i.useState)(!1),[M,P]=(0,i.useState)(""),[j,D]=(0,i.useState)(!1),[O,B]=(0,i.useState)(!1),[N,R]=(0,i.useState)(""),[L,F]=(0,i.useState)(null),U=(0,i.useContext)(zte),{spacesObjectRef:z,spaceObjectData:H,setSpaceObjectData:V,isSpeaker:K,isListener:G,isJoined:q,initSpaceObject:Q,raisedHandInfo:W}=M9();console.log("\ud83d\ude80 ~ file: LiveWidgetContent.tsx:66 ~ spaceObjectData:",H),console.log("\ud83d\ude80 ~ file: LiveWidgetContent.tsx:66 ~ raisedHandInfo:",W),null===(c=null===(s=null==H?void 0:H.connectionData)||void 0===s?void 0:s.local)||void 0===c||c.audio;const J=H.liveSpaceData.listeners.filter((e=>e.handRaised)).length;(0,i.useEffect)((()=>{!function(){pJ(this,void 0,void 0,(function*(){const r=a.substring(7);if((t||K)&&(null==e?void 0:e.spaceId)){const t=yield xne({userType:"sender",roomId:null==e?void 0:e.spaceId,userId:r});F(t.data)}else if(G&&(null==e?void 0:e.spaceId)){const t=yield xne({userType:"receiver",roomId:null==e?void 0:e.spaceId,userId:r});F(t.data)}}))}()}),[G,t,e]),(0,i.useEffect)((()=>{if(!O)return;pJ(void 0,void 0,void 0,(function*(){var e,t;yield null===(t=null===(e=null==z?void 0:z.current)||void 0===e?void 0:e.requestToBePromoted)||void 0===t?void 0:t.call(e,{role:"SPEAKER",promotorAddress:l8(null==H?void 0:H.spaceCreator)})}))}),[O]);(0,i.useEffect)((()=>{if(0===N.length||0===Object.keys(W).length)return;const e={promoteeAddress:l8(W[N].senderAddress),spaceId:W[N].chatId,role:"SPEAKER"};pJ(void 0,void 0,void 0,(function*(){var t,r;yield null===(r=null===(t=null==z?void 0:z.current)||void 0===t?void 0:t.acceptPromotionRequest)||void 0===r?void 0:r.call(t,e)}))}),[N]);(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var e,r;console.log("isListner",G),G&&!t&&(console.log("joining as a listener"),yield null===(r=null===(e=null==z?void 0:z.current)||void 0===e?void 0:e.join)||void 0===r?void 0:r.call(e),D(!j),console.log("space joined"))}))}),[G]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var e,t,r,n;console.log("isSpeaker",K),K&&!(null===(t=null===(e=null==H?void 0:H.connectionData)||void 0===e?void 0:e.local)||void 0===t?void 0:t.stream)&&(console.log("creating audio stream"),yield null===(n=null===(r=null==z?void 0:z.current)||void 0===r?void 0:r.createAudioStream)||void 0===n?void 0:n.call(r))}))}),[K]),(0,i.useEffect)((()=>{var e,t,r;if(!K||(null!==(r=null===(t=null===(e=null==H?void 0:H.connectionData)||void 0===e?void 0:e.incoming)||void 0===t?void 0:t.length)&&void 0!==r?r:0)>1)return;pJ(void 0,void 0,void 0,(function*(){var e,t;console.log("joining as a speaker"),yield null===(t=null===(e=null==z?void 0:z.current)||void 0===e?void 0:e.join)||void 0===t?void 0:t.call(e),D(!j),console.log("space joined")}))}),[null===(l=null===(u=null==H?void 0:H.connectionData)||void 0===u?void 0:u.local)||void 0===l?void 0:l.stream]),(0,i.useEffect)((()=>{(null==H?void 0:H.meta)&&P(null==H?void 0:H.meta)}),[null==H?void 0:H.meta]);const Y=(0,i.useMemo)((()=>new rS),[]);return(0,n.jsxs)(o.NP,Object.assign({theme:U},{children:[(0,n.jsx)(e5,Object.assign({flex:"1",display:"grid",gridTemplateColumns:"repeat(auto-fill, 120px)",padding:"16px 10px",margin:"0 auto",flexWrap:"wrap",justifyContent:"center",gap:"24px 12px",overflowY:"auto",overflowX:"hidden",alignContent:"flex-start",width:"100%"},{children:q?(0,n.jsxs)(n.Fragment,{children:[(K||t)&&(0,n.jsx)("div",Object.assign({style:{position:"relative"}},{children:(0,n.jsx)(Mre,{isHost:t,isSpeaker:K,wallet:null===(f=null===(d=null==H?void 0:H.connectionData)||void 0===d?void 0:d.local)||void 0===f?void 0:f.address,mic:null===(p=null===(h=null==H?void 0:H.connectionData)||void 0===h?void 0:h.local)||void 0===p?void 0:p.audio,image:null===(b=null===(y=null==une?void 0:une(null===(m=null===(g=null==H?void 0:H.connectionData)||void 0===g?void 0:g.local)||void 0===m?void 0:m.address))||void 0===y?void 0:y.toDataURL())||void 0===b?void 0:b.toString()})})),(K||t)&&(null===(w=null===(v=null==H?void 0:H.connectionData)||void 0===v?void 0:v.incoming)||void 0===w?void 0:w.slice(1).map((e=>{var t,r;return(0,n.jsx)("div",Object.assign({style:{position:"relative"}},{children:(0,n.jsx)(Mre,{isHost:(null==e?void 0:e.address)===l8(null==H?void 0:H.spaceCreator),isSpeaker:(null==e?void 0:e.address)!==l8(null==H?void 0:H.spaceCreator),mic:null==e?void 0:e.audio,wallet:null==e?void 0:e.address,image:null===(r=null===(t=null==une?void 0:une(null==e?void 0:e.address))||void 0===t?void 0:t.toDataURL())||void 0===r?void 0:r.toString(),stream:null==e?void 0:e.stream})}))}))),t&&(null==H?void 0:H.liveSpaceData.speakers.map((e=>{var t,r;return(0,n.jsx)("div",Object.assign({style:{position:"relative"}},{children:(0,n.jsx)(Mre,{isHost:!1,isSpeaker:!0,wallet:null==e?void 0:e.address,mic:null==e?void 0:e.audio,image:null===(r=null===(t=null==une?void 0:une(null==e?void 0:e.address))||void 0===t?void 0:t.toDataURL())||void 0===r?void 0:r.toString()})}))}))),G&&!t&&(0,n.jsx)("div",Object.assign({style:{position:"relative"}},{children:(0,n.jsx)(Mre,{isHost:!0,isSpeaker:!1,wallet:null===(A=null==H?void 0:H.liveSpaceData.host)||void 0===A?void 0:A.address,mic:null===(C=null==H?void 0:H.liveSpaceData.host)||void 0===C?void 0:C.audio,image:null===(I=null===(S=null==une?void 0:une(null===(x=null===(E=null==H?void 0:H.liveSpaceData)||void 0===E?void 0:E.host)||void 0===x?void 0:x.address))||void 0===S?void 0:S.toDataURL())||void 0===I?void 0:I.toString()})})),G&&!t&&(null==H?void 0:H.liveSpaceData.speakers.map((e=>{var t,r;return(0,n.jsx)("div",Object.assign({style:{position:"relative"}},{children:(0,n.jsx)(Mre,{isHost:!1,isSpeaker:!0,wallet:null==e?void 0:e.address,mic:null==e?void 0:e.audio,image:null===(r=null===(t=null==une?void 0:une(null==e?void 0:e.address))||void 0===t?void 0:t.toDataURL())||void 0===r?void 0:r.toString()})}))}))),null==H?void 0:H.liveSpaceData.listeners.map((e=>{var t,r;return(0,n.jsx)("div",Object.assign({style:{position:"relative"}},{children:(0,n.jsx)(Mre,{isHost:!1,isSpeaker:!1,requested:e.handRaised,wallet:null==e?void 0:e.address,image:null===(r=null===(t=null==une?void 0:une(null==e?void 0:e.address))||void 0===t?void 0:t.toDataURL())||void 0===r?void 0:r.toString()})}))}))]}):null==e?void 0:e.members.map((t=>{var r,i;return(0,n.jsx)("div",Object.assign({style:{position:"relative"}},{children:(0,n.jsx)(Mre,{wallet:null==t?void 0:t.wallet,isHost:(null==t?void 0:t.wallet)===e.spaceCreator,isSpeaker:null==t?void 0:t.isSpeaker,image:(null==t?void 0:t.image)||(null===(i=null===(r=null==une?void 0:une(null==t?void 0:t.wallet))||void 0===r?void 0:r.toDataURL())||void 0===i?void 0:i.toString())})}))}))})),(0,n.jsxs)(e5,Object.assign({padding:"28px 10px",width:"90%"},{children:[q?(0,n.jsxs)(e5,Object.assign({borderRadius:"8px",background:`${U.bgColorSecondary}`,display:"flex",justifyContent:"space-between",padding:"6px 8px"},{children:[L?(0,n.jsxs)(lI,Object.assign({serverUrl:Q4,token:L,room:Y},{children:[(0,n.jsx)(dI,{}),t||K?(0,n.jsx)(Mne,Object.assign({showIcon:!1,source:GC.Source.Microphone},{children:(0,n.jsx)(Ine,{source:GC.Source.Microphone})})):(0,n.jsxs)(e5,Object.assign({cursor:"pointer",display:"flex",alignItems:"center",gap:"8px",padding:"10px",onClick:()=>pJ(void 0,void 0,void 0,(function*(){var e,t;yield null===(t=null===(e=null==z?void 0:z.current)||void 0===e?void 0:e.createAudioStream)||void 0===t?void 0:t.call(e),B(!0)}))},{children:[(0,n.jsx)(n5,{width:"14px",height:"20px",src:O?_re:Tre,alt:"Mic Icon"}),(0,n.jsx)(a5,Object.assign({color:`${U.btnOutline}`,fontSize:"14px",fontWeight:600},{children:O?"Requested":"Request"}))]}))]})):(0,n.jsxs)(e5,Object.assign({cursor:"pointer",display:"flex",alignItems:"center",gap:"8px",padding:"10px"},{children:[(0,n.jsx)(Ane,{size:"20"}),(0,n.jsx)(a5,Object.assign({color:`${U.btnOutline}`,fontSize:"14px",fontWeight:600},{children:"Connecting"}))]})),(0,n.jsxs)(e5,Object.assign({display:"flex",alignItems:"center",gap:"16px"},{children:[(0,n.jsxs)(_ne,{children:[t&&J?(0,n.jsx)(Tne,{children:J}):null,(0,n.jsx)(n5,{width:"21px",height:"24px",src:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 27.5.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 23 18' style='enable-background:new 0 0 23 18%3b' xml:space='preserve'%3e%3cstyle type='text/css'%3e .st0%7bfill:%238B5CF6%3b%7d%3c/style%3e%3cpath class='st0' d='M21.1%2c10.8c-0.3-0.3-0.7-0.5-1-0.7c-0.4-0.2-0.8-0.4-1.2-0.5c1-0.7%2c1.6-1.8%2c1.6-3.1c0-2.1-1.7-3.8-3.8-3.8 c-0.4%2c0-0.8%2c0.1-1.1%2c0.2C14.1%2c3.4%2c13%2c4.8%2c13%2c6.5c0%2c1.2%2c0.6%2c2.3%2c1.5%2c3c-0.4%2c0.1-0.8%2c0.3-1.2%2c0.5c-0.3-0.2-0.6-0.4-0.9-0.5 c-0.6-0.3-1.2-0.5-1.8-0.7c1.2-0.8%2c2-2.2%2c2-3.7c0-2.5-2-4.5-4.5-4.5S3.6%2c2.5%2c3.6%2c5c0%2c1.6%2c0.8%2c3%2c2.1%2c3.8C5.2%2c9%2c4.6%2c9.2%2c4.1%2c9.4 c-0.4%2c0.2-0.9%2c0.5-1.2%2c0.8c-1.6%2c1.2-2.1%2c3.2-2.1%2c5c0%2c1.3%2c1%2c2.3%2c2.3%2c2.3h9.7c0%2c0%2c0%2c0%2c0%2c0h7.9c1.2%2c0%2c2.2-1%2c2.2-2.2 C22.9%2c13.7%2c22.5%2c11.9%2c21.1%2c10.8z M16.1%2c4.3c0.2-0.1%2c0.4-0.1%2c0.7-0.1c1.3%2c0%2c2.3%2c1%2c2.3%2c2.3s-1%2c2.3-2.3%2c2.3c-0.2%2c0-0.5%2c0-0.7-0.1 c-0.9-0.3-1.6-1.1-1.6-2.2S15.2%2c4.6%2c16.1%2c4.3z M8.1%2c2c1.7%2c0%2c3%2c1.4%2c3%2c3c0%2c1.7-1.4%2c3-3%2c3c-1.7%2c0-3-1.4-3-3C5.1%2c3.4%2c6.5%2c2%2c8.1%2c2z M2.2%2c15.2c0-1.6%2c0.4-3%2c1.5-3.8c0.3-0.2%2c0.7-0.4%2c1-0.6c1.1-0.5%2c2.3-0.8%2c3.5-0.8c1.2%2c0%2c2.4%2c0.3%2c3.5%2c0.8c0.4%2c0.2%2c0.7%2c0.4%2c1%2c0.6 c1.1%2c0.8%2c1.5%2c2.2%2c1.5%2c3.8c0%2c0.5-0.4%2c0.8-0.8%2c0.8H3.1C2.6%2c16%2c2.2%2c15.6%2c2.2%2c15.2z M20.7%2c16h-5c0.1-0.3%2c0.2-0.5%2c0.2-0.8 c0-1.4-0.3-2.9-1.2-4.1c0.6-0.2%2c1.3-0.3%2c2-0.3c1%2c0%2c2%2c0.2%2c2.8%2c0.7c0.3%2c0.2%2c0.6%2c0.3%2c0.8%2c0.5c0.9%2c0.7%2c1.2%2c1.9%2c1.2%2c3.3 C21.4%2c15.7%2c21.1%2c16%2c20.7%2c16z'/%3e%3c/svg%3e",cursor:"pointer",onClick:()=>T(!0),alt:"Members Icon"})]}),(0,n.jsx)(o5,Object.assign({color:`${U.btnColorPrimary}`,fontSize:"14px",fontWeight:600,width:"100px",height:"100%",cursor:"pointer",border:`1px solid ${U.btnOutline}`,borderRadius:"12px",onClick:t?()=>pJ(void 0,void 0,void 0,(function*(){var e,t;(null==z?void 0:z.current)&&(yield null===(t=null===(e=null==z?void 0:z.current)||void 0===e?void 0:e.stop)||void 0===t?void 0:t.call(e),z.current=null,null==V||V(_.space.initSpaceData),null==r||r(Lne.Ended),D(!1))})):()=>pJ(void 0,void 0,void 0,(function*(){var e,r;(null==z?void 0:z.current)&&((t||K)&&(yield null===(r=null===(e=null==z?void 0:z.current)||void 0===e?void 0:e.leave)||void 0===r?void 0:r.call(e),z.current=null,null==V||V(_.space.initSpaceData),console.log("Space left")),G&&(z.current=null,null==V||V(_.space.initSpaceData)),D(!1))}))},{children:t?"End space":"Leave"}))]}))]})):(0,n.jsx)(o5,Object.assign({height:"36px",width:"100%",border:"none",borderRadius:"8px",cursor:"pointer",background:`${U.titleBg}`,onClick:()=>pJ(void 0,void 0,void 0,(function*(){e&&(D(!j),yield Q(null==e?void 0:e.spaceId))}))},{children:(0,n.jsx)(a5,Object.assign({color:`${U.titleTextColor}`,fontSize:"16px",fontWeight:"600",display:"flex",justifyContent:"center"},{children:j?(0,n.jsx)($6,{}):"Join this Space"}))})),k?(0,n.jsx)(gne,{onClose:()=>T(!1),spaceData:H,acceptCallback:t=>pJ(void 0,void 0,void 0,(function*(){yield Sne({roomId:null==e?void 0:e.spaceId,userId:t,canPublish:!0}),R(t),yield Sne({roomId:null==e?void 0:e.spaceId,userId:t,canPublish:!0})})),rejectCallback:t=>pJ(void 0,void 0,void 0,(function*(){var r,n;yield null===(n=null===(r=null==z?void 0:z.current)||void 0===r?void 0:r.rejectPromotionRequest)||void 0===n?void 0:n.call(r,{promoteeAddress:l8(t)}),yield Sne({roomId:null==e?void 0:e.spaceId,userId:t,canPublish:!1})})),isHost:t}):null]}))]}))},_ne=o.Ay.div.withConfig({displayName:"LiveWidgetContent__MembersContainer",componentId:"sc-fmttby-1"})(["position:relative;display:flex;align-items:center;justify-content:center;"]),Tne=o.Ay.div.withConfig({displayName:"LiveWidgetContent__RequestsCount",componentId:"sc-fmttby-2"})(["position:absolute;top:-8px;right:-6px;background-color:",";padding:2px 4px;border-radius:4px;font-size:12px;"],(e=>e.theme.btnColorPrimary)),Mne=(0,o.Ay)(cI).withConfig({displayName:"LiveWidgetContent__TrackToggleComp",componentId:"sc-fmttby-4"})(["background-color:transparent;border:none;"]);var Pne="data:image/svg+xml,%3csvg width='42' height='42' viewBox='0 0 42 42' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0.5 14.85V37.7145C0.5 39.1502 2.21425 39.8929 3.26166 38.9109L11.1047 31.5581C11.3158 31.3602 11.5944 31.25 11.8838 31.25H26.125C34.6164 31.25 41.5 24.3664 41.5 15.875C41.5 7.38362 34.6164 0.5 26.125 0.5H14.85C6.92471 0.5 0.5 6.92471 0.5 14.85Z' fill='%238B5CF6'/%3e%3cpath d='M0.5 14.85V37.7145C0.5 39.1502 2.21425 39.8929 3.26166 38.9109L11.1047 31.5581C11.3158 31.3602 11.5944 31.25 11.8838 31.25H26.125C34.6164 31.25 41.5 24.3664 41.5 15.875C41.5 7.38362 34.6164 0.5 26.125 0.5H14.85C6.92471 0.5 0.5 6.92471 0.5 14.85Z' fill='url(%23paint0_linear_13878_66774)'/%3e%3cg clip-path='url(%23clip0_13878_66774)'%3e%3cpath d='M11.9805 13.6191V18.5391' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M18.541 7.05859V25.0986' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M25.0996 10.3379L25.0996 21.8179' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M31.6602 13.6191L31.6602 18.5391' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear_13878_66774' x1='0.500001' y1='41.5' x2='43.42' y2='39.3805' gradientUnits='userSpaceOnUse'%3e%3cstop offset='0.0001' stop-color='%23EA4EE4'/%3e%3cstop offset='1' stop-color='%238B5CF6'/%3e%3c/linearGradient%3e%3cclipPath id='clip0_13878_66774'%3e%3crect width='36.08' height='36.08' fill='white' transform='translate(2.96094 0.5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";var jne;!function(e){e.Twitter="Twitter",e.Lenster="Lenster",e.CopyShareUrl="Copy Link"}(jne||(jne={}));const Dne=({spaceData:e,share:t,isHost:r,isMember:a,spaceStatusState:s,setSpaceStatusState:c})=>{const u=i.useContext(zte),{spacesObjectRef:l,initSpaceObject:d,spaceObjectData:f}=M9(),[h,p]=(0,i.useState)(!1),[g,m]=(0,i.useState)(!1),{shareUrl:y,shareOptions:b=["Twitter","Lenster","CopyShareUrl"]}=t||{},v=()=>{if(!y)return;const e=(({text:e,url:t})=>`https://lenster.xyz/?text=${encodeURIComponent(e)}&url=${encodeURIComponent(t)}`)({text:"Join this space",url:y});window.open(e,"_blank")},w=e=>{switch(e){case jne.Twitter:(()=>{if(!y)return;const e=y,t=`https://twitter.com/intent/tweet?text=${encodeURIComponent("Join this Space:")}&url=${encodeURIComponent(e)}`;window.open(t,"_blank")})();break;case jne.Lenster:v();break;default:pJ(void 0,void 0,void 0,(function*(){try{if(!y)return;const e=y;yield navigator.clipboard.writeText(e),console.log("URL copied to clipboard:",e)}catch(ys){console.error("Failed to copy URL:",ys)}}))}};return(0,i.useEffect)((()=>{!function(){var e,t;pJ(this,void 0,void 0,(function*(){s!==Lne.Live&&h&&(yield null===(t=null===(e=null==l?void 0:l.current)||void 0===e?void 0:e.start)||void 0===t?void 0:t.call(e),console.log("SPACE STARTED"),p(!1),c&&c(Lne.Live),console.log(s))}))}()}),[h]),(0,n.jsx)(o.NP,Object.assign({theme:u},{children:(0,n.jsxs)(r5,Object.assign({display:"flex",height:"100%",alignItems:"center",flexDirection:"column",justifyContent:"center",gap:"15px",padding:"0 24px"},{children:[(0,n.jsx)(n5,{width:"41px",height:"41px",src:Pne,alt:"Spaces Icon"}),r?(0,n.jsx)(One,{children:"It\u2019s time to start your space"}):(0,n.jsxs)(One,{children:["This space will go live on"," ",l9((null==e?void 0:e.scheduleAt)||new Date)]}),r&&(0,n.jsx)(o5,Object.assign({padding:"9px 34px",borderRadius:"8px",background:`${u.btnColorPrimary}`,border:`1px solid ${u.btnOutline}`,cursor:"pointer",onClick:()=>pJ(void 0,void 0,void 0,(function*(){m(!g),console.log(s),yield null==d?void 0:d(null==e?void 0:e.spaceId),m(!g),p(!0),console.log(s)}))},{children:(0,n.jsx)(a5,Object.assign({fontSize:"14px",fontWeight:600,color:"#fff"},{children:g?(0,n.jsx)($6,{}):"Start this Space"}))})),!r&&a&&(0,n.jsx)(o5,Object.assign({padding:"9px 12px",borderRadius:"8px",background:`${u.bgColorPrimary}`,border:`1px solid ${u.borderColor}`,cursor:"pointer"},{children:(0,n.jsx)(a5,Object.assign({fontSize:"14px",fontWeight:600,color:`${u.textColorPrimary}`},{children:"Remove Reminder"}))})),(!r||r&&!1)&&y&&(0,n.jsx)(e5,Object.assign({display:"flex",gap:"13px"},{children:b.map((e=>{const{icon:t,alt:r}=(e=>{let t="",r="";switch(e){case jne.Twitter:t="data:image/svg+xml,%3csvg width='28' height='24' viewBox='0 0 28 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.5 17.0004C7.5 17.0004 0.60625 13.0004 1.5975 2.00037C1.5975 2.00037 6.555 7.00037 12.5 8.00037V6.00037C12.5 3.25037 14.75 0.966619 17.5 1.00037C18.4705 1.01164 19.4175 1.30001 20.2296 1.83151C21.0417 2.36301 21.685 3.1155 22.0837 4.00037H26.5L22.5 8.00037C21.9675 16.3554 14.99 23.0004 6.5 23.0004C2.5 23.0004 1.5 21.5004 1.5 21.5004C1.5 21.5004 5.5 20.0004 7.5 17.0004Z' stroke='%2382828A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",r="Twitter Icon";break;case jne.Lenster:t="data:image/svg+xml,%3csvg width='27' height='27' viewBox='0 0 27 27' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg id='Group 4331'%3e%3cpath id='Vector' d='M11.9144 12.5657C11.6065 13.086 6.79798 13.1734 4.17427 11.6979C1.55125 10.2223 2.82539 5.71108 5.48612 4.52667C8.14686 3.34225 12.2223 12.0454 11.9137 12.5657H11.9144Z' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_2' d='M11.8771 14.3718C12.1857 14.8921 9.85894 18.9925 7.23592 20.4673C4.61221 21.9429 1.23897 18.6126 1.51602 15.7751C1.79307 12.9383 11.5685 13.8515 11.8764 14.3718H11.8771Z' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_3' d='M13.4616 15.3057C14.0781 15.3057 16.5598 19.3186 16.5598 22.2697C16.5598 25.2208 11.9125 26.4011 9.52877 24.7487C7.14508 23.0963 12.8451 15.3064 13.4616 15.3064V15.3057Z' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_4' d='M15.0868 14.4341C15.3947 13.9138 20.2032 13.8264 22.8269 15.302C25.4499 16.7775 24.1758 21.2887 21.5151 22.4732C18.8543 23.6576 14.7789 14.9544 15.0868 14.4341Z' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_5' d='M15.1213 12.6283C14.8127 12.108 17.1395 8.00759 19.7625 6.53274C22.3856 5.05721 25.7588 8.38817 25.4818 11.225C25.2047 14.0618 15.4292 13.1486 15.1213 12.6283Z' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_6' d='M13.5357 11.6939C12.9193 11.6939 10.4375 7.6809 10.4375 4.73052C10.4375 1.78014 15.0849 0.599166 17.4679 2.25157C19.8516 3.90397 14.1516 11.6939 13.5351 11.6939H13.5357Z' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e",r="Lenster Icon";break;default:t="data:image/svg+xml,%3csvg fill='none' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3e%3cg stroke='%2382828a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3e%3cpath d='m12.4856 19.9999-1.2425 1.2425c-1.1283 1.1101-2.64955 1.7294-4.23237 1.7229-1.58283-.0064-3.09898-.638-4.21821-1.7573-1.11924-1.1192-1.75087-2.6354-1.75731-4.2182-.00645-1.5828.61281-3.104 1.7229-4.2324l3.01375-3.00745c1.08102-1.08322 2.53509-1.71243 4.06473-1.7589 1.52961-.04647 3.01921.4933 4.16401 1.5089'/%3e%3cpath d='m11.515 4.00061 1.2425-1.2425c1.1283-1.11009 2.6496-1.72935 4.2324-1.7229 1.5828.00644 3.099.63807 4.2182 1.75731 1.1192 1.11923 1.7509 2.63538 1.7573 4.21821.0064 1.58282-.6128 3.10407-1.7229 4.23237l-3.0137 3.0138c-1.0819 1.0823-2.5364 1.7104-4.066 1.7557-1.5297.0453-3.0188-.4956-4.1628-1.512'/%3e%3c/g%3e%3c/svg%3e",r="Copy Icon"}return{icon:t,alt:r}})(e);return(0,n.jsxs)(Bne,{children:[(0,n.jsx)(Nne,Object.assign({onClick:()=>w(e)},{children:(0,n.jsx)(n5,{src:t,alt:r,width:"25px",height:"22px"})})),(0,n.jsx)(a5,Object.assign({fontSize:"12px",fontWeight:600},{children:jne[e]}))]},e)}))}))]}))}))},One=o.Ay.span.withConfig({displayName:"ScheduledWidgetContent__SpaceInfoText",componentId:"sc-13slgtw-0"})(["font-size:18px;font-weight:600;text-align:center;color:",";"],(({theme:e})=>e.textColorPrimary)),Bne=o.Ay.div.withConfig({displayName:"ScheduledWidgetContent__ShareLinkItem",componentId:"sc-13slgtw-1"})(["display:flex;flex-direction:column;gap:8px;align-items:center;"]),Nne=o.Ay.button.withConfig({displayName:"ScheduledWidgetContent__ShareLinkButton",componentId:"sc-13slgtw-2"})(["background:",";border-radius:14px;padding:16px;border:none;cursor:pointer;"],(({theme:e})=>e.bgColorSecondary));const Rne=({onClose:e,toggleWidgetVisibility:t})=>{const r=i.useContext(zte);return(0,n.jsx)(o.NP,Object.assign({theme:r},{children:(0,n.jsxs)(r5,Object.assign({display:"flex",height:"100%",alignItems:"center",flexDirection:"column",justifyContent:"center",gap:"15px",padding:"0 24px"},{children:[(0,n.jsx)(n5,{width:"41px",height:"41px",src:"data:image/svg+xml,%3csvg width='42' height='41' viewBox='0 0 42 41' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0.5 14.35V37.2145C0.5 38.6502 2.21425 39.3929 3.26166 38.4109L11.1047 31.0581C11.3158 30.8602 11.5944 30.75 11.8838 30.75H26.125C34.6164 30.75 41.5 23.8664 41.5 15.375C41.5 6.88362 34.6164 0 26.125 0H14.85C6.92471 0 0.5 6.42471 0.5 14.35Z' fill='%238B5CF6'/%3e%3cpath d='M0.5 14.35V37.2145C0.5 38.6502 2.21425 39.3929 3.26166 38.4109L11.1047 31.0581C11.3158 30.8602 11.5944 30.75 11.8838 30.75H26.125C34.6164 30.75 41.5 23.8664 41.5 15.375C41.5 6.88362 34.6164 0 26.125 0H14.85C6.92471 0 0.5 6.42471 0.5 14.35Z' fill='url(%23paint0_linear_15620_46454)'/%3e%3cg clip-path='url(%23clip0_15620_46454)'%3e%3cpath d='M11.9805 13.1191V18.0391' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M18.5391 6.55859V24.5986' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M25.1016 9.83789L25.1016 21.3179' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M31.6602 13.1191L31.6602 18.0391' stroke='white' stroke-width='3.28' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear_15620_46454' x1='0.500001' y1='41' x2='43.42' y2='38.8805' gradientUnits='userSpaceOnUse'%3e%3cstop offset='0.0001' stop-color='%23C2C2C2'/%3e%3cstop offset='1' stop-color='%23A3A3A3'/%3e%3c/linearGradient%3e%3cclipPath id='clip0_15620_46454'%3e%3crect width='36.08' height='36.08' fill='white' transform='translate(2.96094)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",alt:"End Icon"}),(0,n.jsx)(One,{children:"This Space has ended"}),(0,n.jsx)(e5,Object.assign({padding:"9px 34px",borderRadius:"8px",background:`${r.btnColorPrimary}`,border:`1px solid ${r.borderColor}`,cursor:"pointer",onClick:r=>{t(),e(r)}},{children:(0,n.jsx)(a5,Object.assign({fontSize:"14px",fontWeight:600,color:`${r.textColorPrimary}`},{children:"Close"}))}))]}))}))};var Lne;!function(e){e.Live="ACTIVE",e.Scheduled="PENDING",e.Ended="ENDED"}(Lne||(Lne={}));const Fne=({account:e,spaceData:t,share:r,isHost:o,isTimeToStartSpace:a,isMember:s,isMinimized:c,spaceStatus:u,onClose:l,toggleWidgetVisibility:d})=>{const[f,h]=(0,i.useState)(Lne.Scheduled);return(0,i.useEffect)((()=>{u===Lne.Live&&h(Lne.Live),u===Lne.Scheduled&&h(Lne.Scheduled),u===Lne.Ended&&h(Lne.Ended)}),[u]),(0,n.jsx)(Une,Object.assign({isMinimized:c,height:f===Lne.Live?"485px":"350px"},{children:f===Lne.Live?(0,n.jsx)(kne,{spaceData:t,isHost:o,setSpaceStatusState:h,account:e}):f===Lne.Scheduled?(0,n.jsx)(Dne,{spaceData:t,share:r,isHost:o,isMember:s,isTimeToStartSpace:a,spaceStatusState:f,setSpaceStatusState:h}):(0,n.jsx)(Rne,{onClose:l,toggleWidgetVisibility:d})}))},Une=o.Ay.div.withConfig({displayName:"WidgetContent__Container",componentId:"sc-13gsred-0"})(["display:flex;flex-direction:column;border-bottom:",";height:",";transition:height 300ms ease-out;overflow:hidden;align-items:center;justify-content:space-between;"],(e=>e.theme.borderColor),(e=>e.isMinimized?"0":e.height));var zne="data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M26.5 10C27.6046 10 28.5 9.10457 28.5 8C28.5 6.89543 27.6046 6 26.5 6C25.3954 6 24.5 6.89543 24.5 8C24.5 9.10457 25.3954 10 26.5 10Z' fill='white'/%3e%3cpath d='M26.5 18C27.6046 18 28.5 17.1046 28.5 16C28.5 14.8954 27.6046 14 26.5 14C25.3954 14 24.5 14.8954 24.5 16C24.5 17.1046 25.3954 18 26.5 18Z' fill='white'/%3e%3cpath d='M26.5 26C27.6046 26 28.5 25.1046 28.5 24C28.5 22.8954 27.6046 22 26.5 22C25.3954 22 24.5 22.8954 24.5 24C24.5 25.1046 25.3954 26 26.5 26Z' fill='white'/%3e%3c/svg%3e",Hne="data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M25.5113 13.272L25.5114 13.2721L25.5173 13.2656C25.6713 13.0939 25.7538 12.8686 25.7499 12.6375C25.7459 12.4064 25.6558 12.1841 25.4959 12.0179C25.3356 11.8515 25.1174 11.7544 24.8867 11.7501C24.6559 11.7459 24.4344 11.835 24.2683 11.9957L24.2682 11.9956L24.2621 12.0019L16.5 20.0625L8.73789 12.0019L8.738 12.0018L8.73166 11.9957C8.56563 11.835 8.34408 11.7459 8.11332 11.7501C7.88259 11.7544 7.6644 11.8515 7.50414 12.0179C7.34416 12.1841 7.25406 12.4064 7.25013 12.6375C7.24621 12.8686 7.32869 13.0939 7.48273 13.2656L7.48262 13.2657L7.48873 13.272L15.8754 21.9823L15.8755 21.9825C16.0395 22.1526 16.2639 22.25 16.5 22.25C16.7361 22.25 16.9605 22.1526 17.1245 21.9825L17.1246 21.9823L25.5113 13.272Z' fill='white' stroke='white' stroke-width='0.5'/%3e%3c/svg%3e",Vne="data:image/svg+xml,%3csvg width='16' height='9' viewBox='0 0 16 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6.9906 8.60023L0.418792 2.32688C-0.139597 1.79385 -0.139597 0.932801 0.418792 0.399772C0.977181 -0.133258 1.87919 -0.133258 2.43758 0.399772L8.00716 5.70273L13.5624 0.399772C14.1208 -0.133258 15.0228 -0.133258 15.5812 0.399772C16.1396 0.932801 16.1396 1.79385 15.5812 2.32688L9.0094 8.60023C8.46532 9.13326 7.54899 9.13326 6.9906 8.60023Z' fill='%23B4B4B4'/%3e%3c/svg%3e";const Kne=e=>{const t=(0,i.useContext)(zte),{onClick:r,width:o,height:a,customStyle:s}=e;return(0,n.jsx)(Gne,Object.assign({onClick:r,width:o,height:a,theme:t,customStyle:s},{children:e.children}))},Gne=o.Ay.button.withConfig({displayName:"Button__SpacesButton",componentId:"sc-1honbhg-0"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;padding:",";margin-top:12px;background:",";border:2px solid ",";color:",";border-radius:8px;font-size:14px;font-weight:",";font-family:'Strawford';flex:none;order:0;flex-grow:0;transition:150ms ease-in-out;&:hover{cursor:pointer;}width:",";height:",";"],(e=>e.customStyle?e.customStyle.padding:"10px 16px"),(e=>e.customStyle?e.customStyle.background:e.theme.btnColorPrimary),(e=>e.customStyle?e.customStyle.borderColor:e.theme.btnOutline),(e=>e.customStyle?e.customStyle.color:e.theme.titleTextColor),(e=>e.customStyle?e.customStyle.fontWeight:"700"),(e=>e.width?e.width:"100%"),(e=>e.height?e.height:"100%"));const qne=({title:e,items:t,children:r})=>{const o=(0,i.useContext)(zte),[a,s]=(0,i.useState)(!1);return(0,n.jsxs)(Qne,{children:[(0,n.jsxs)(Jne,Object.assign({onClick:()=>{s((e=>!e))}},{children:[(0,n.jsxs)(Yne,{children:[(0,n.jsx)("div",{children:e}),t?(0,n.jsx)(Zne,Object.assign({theme:o},{children:t})):null]}),(0,n.jsx)($ne,{src:a?"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg' transform='rotate(180)'%3e%3cpath d='M25.5113 13.272L25.5114 13.2721L25.5173 13.2656C25.6713 13.0939 25.7538 12.8686 25.7499 12.6375C25.7459 12.4064 25.6558 12.1841 25.4959 12.0179C25.3356 11.8515 25.1174 11.7544 24.8867 11.7501C24.6559 11.7459 24.4344 11.835 24.2683 11.9957L24.2682 11.9956L24.2621 12.0019L16.5 20.0625L8.73789 12.0019L8.738 12.0018L8.73166 11.9957C8.56563 11.835 8.34408 11.7459 8.11332 11.7501C7.88259 11.7544 7.6644 11.8515 7.50414 12.0179C7.34416 12.1841 7.25406 12.4064 7.25013 12.6375C7.24621 12.8686 7.32869 13.0939 7.48273 13.2656L7.48262 13.2657L7.48873 13.272L15.8754 21.9823L15.8755 21.9825C16.0395 22.1526 16.2639 22.25 16.5 22.25C16.7361 22.25 16.9605 22.1526 17.1245 21.9825L17.1246 21.9823L25.5113 13.272Z' fill='%2382828A' stroke='%2382828A' stroke-width='0.5'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M25.5113 13.272L25.5114 13.2721L25.5173 13.2656C25.6713 13.0939 25.7538 12.8686 25.7499 12.6375C25.7459 12.4064 25.6558 12.1841 25.4959 12.0179C25.3356 11.8515 25.1174 11.7544 24.8867 11.7501C24.6559 11.7459 24.4344 11.835 24.2683 11.9957L24.2682 11.9956L24.2621 12.0019L16.5 20.0625L8.73789 12.0019L8.738 12.0018L8.73166 11.9957C8.56563 11.835 8.34408 11.7459 8.11332 11.7501C7.88259 11.7544 7.6644 11.8515 7.50414 12.0179C7.34416 12.1841 7.25406 12.4064 7.25013 12.6375C7.24621 12.8686 7.32869 13.0939 7.48273 13.2656L7.48262 13.2657L7.48873 13.272L15.8754 21.9823L15.8755 21.9825C16.0395 22.1526 16.2639 22.25 16.5 22.25C16.7361 22.25 16.9605 22.1526 17.1245 21.9825L17.1246 21.9823L25.5113 13.272Z' fill='%2382828A' stroke='%2382828A' stroke-width='0.5'/%3e%3c/svg%3e",alt:"Maximize/Minimize icon"})]})),(0,n.jsx)(Wne,Object.assign({isOpen:a},{children:r}))]})},Qne=o.Ay.div.withConfig({displayName:"Accordion__AccordionParent",componentId:"sc-13astz2-0"})(["border:1px solid #E4E4E7;border-radius:8px;padding:6.5px 0;margin:16px 0;"]),Wne=o.Ay.div.withConfig({displayName:"Accordion__AccordionBody",componentId:"sc-13astz2-1"})(["overflow-y:scroll;max-height:",";transition:max-height 200ms ease-out;"],(({isOpen:e})=>e?"200px":"0")),Jne=o.Ay.div.withConfig({displayName:"Accordion__AccordionTitle",componentId:"sc-13astz2-2"})(["display:flex;justify-content:space-between;align-items:center;padding:8px 16px;cursor:pointer;"]),Yne=o.Ay.div.withConfig({displayName:"Accordion__Title",componentId:"sc-13astz2-3"})(["display:flex;align-items:center;"]),Zne=o.Ay.div.withConfig({displayName:"Accordion__PendingCount",componentId:"sc-13astz2-4"})(["background:",";border-radius:8px;padding:4px 10px;margin-left:6px;font-size:13px;color:",";"],(e=>e.theme.btnColorPrimary),(e=>e.theme.titleTextColor)),$ne=o.Ay.img.withConfig({displayName:"Accordion__Image",componentId:"sc-13astz2-5"})(["display:flex;max-height:initial;vertical-align:middle;overflow:initial;cursor:pointer;height:",";width:",";align-self:center;"],(e=>e.height||"24px"),(e=>e.width||"20px")),Xne=e=>{const t=(0,i.useContext)(zte);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(eie,{children:[(0,n.jsx)(tie,{children:(0,n.jsx)("label",{children:e.labelName})}),(0,n.jsxs)(nie,{children:[(0,n.jsx)(rie,{theme:t,value:e.inputValue,onChange:t=>{e.onInputChange(t)},placeholder:"Search..."}),(0,n.jsx)(iie,Object.assign({onClick:e.clearInput},{children:(0,n.jsx)(Bre,{})}))]})]})}))},eie=o.Ay.div.withConfig({displayName:"SearchInput__InputContainer",componentId:"sc-1f35nbe-0"})(["display:flex;flex-direction:column;margin:16px 0;font-family:'Strawford';"]),tie=o.Ay.div.withConfig({displayName:"SearchInput__LabelContainer",componentId:"sc-1f35nbe-1"})(["display:flex;justify-content:space-between;font-weight:500;color:",""],(e=>{var t;return null!==(t=e.theme.textColorPrimary)&&void 0!==t?t:"#000"})),rie=o.Ay.input.withConfig({displayName:"SearchInput__Input",componentId:"sc-1f35nbe-2"})(["padding:16px;margin-top:12px;width:330px;background:#FFFFFF;border:2px solid ",";border-radius:12px;"],(e=>e.theme.btnOutline)),nie=o.Ay.div.withConfig({displayName:"SearchInput__InputWrapper",componentId:"sc-1f35nbe-3"})(["position:relative;"]),iie=o.Ay.div.withConfig({displayName:"SearchInput__CloseBtn",componentId:"sc-1f35nbe-4"})(["position:absolute;right:0;top:0;padding:1.75rem 0.75rem;"]),oie=({height:e,width:t,color:r})=>(0,n.jsxs)("svg",Object.assign({width:null!=t?t:"36",height:null!=e?e:"40",viewBox:"0 0 36 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M16 12C16 13.1046 16.8954 14 18 14C19.1046 14 20 13.1046 20 12C20 10.8954 19.1046 10 18 10C16.8954 10 16 10.8954 16 12Z",fill:null!=r?r:"black"}),(0,n.jsx)("path",{d:"M16 20C16 21.1046 16.8954 22 18 22C19.1046 22 20 21.1046 20 20C20 18.8954 19.1046 18 18 18C16.8954 18 16 18.8954 16 20Z",fill:null!=r?r:"black"}),(0,n.jsx)("path",{d:"M16 28C16 29.1046 16.8954 30 18 30C19.1046 30 20 29.1046 20 28C20 26.8954 19.1046 26 18 26C16.8954 26 16 26.8954 16 28Z",fill:null!=r?r:"black"})]})),aie=e=>{var t;const{closeInviteModal:r,makeScheduleVisible:a,createSpace:s,isLoading:c,invitedMembersList:u,setInvitedMembersList:l,invitedAddressList:d,setInvitedAddressList:f,adminsList:h,setAdminsList:p,adminsAddressList:g,setAdminsAddressList:m,onClose:y,btnString:b}=e,v=(0,i.useContext)(zte),{env:w,account:A,customSearch:C}=M9(),[E,x]=(0,i.useState)(""),[S,I]=(0,i.useState)(!1),[k,T]=(0,i.useState)({}),[M,P]=(0,i.useState)(""),j=()=>{x(""),T({}),P("")},D=e=>{P(e),setTimeout((()=>{P("")}),2e3)},O=e=>{0===d.length||0===g.length||!d.includes(e.did.substring(7))&&!g.includes(e.did.substring(7))?(e.did?(f([...d,e.did.substring(7)]),l([...u,e])):(f([...d,e.handle]),l([...u,e])),j()):D("Already Invited")},B=e=>{e.did?(p([...h,e]),m([...g,e.did.substring(7)])):(p([...h,e]),m([...g,e.handle]));const t=u.filter((t=>t!==e));if(l(t),e.did){const t=d.filter((t=>t!==e.did.substring(7)));f(t)}else{const t=d.filter((t=>t!==e.handle));f(t)}j()},N=e=>{const t=u.filter((t=>t!==e));if(l(t),e.did){const t=d.filter((t=>t!==e.did.substring(7)));f(t)}else{const t=d.filter((t=>t!==e.handle));f(t)}},R=e=>{const t=h.filter((t=>t!==e));if(p(t),e.did){const t=g.filter((t=>t!==e.did.substring(7)));m(t)}else{const t=g.filter((t=>t!==e.handle));m(t)}};return(0,n.jsx)(o.NP,Object.assign({theme:v},{children:(0,n.jsxs)(jre,Object.assign({clickawayClose:y},{children:[(0,n.jsx)(Rre,{heading:"Invite members",backCallback:a,closeCallback:r}),(0,n.jsx)(Xne,{labelName:"Add users",inputValue:E,onInputChange:e=>pJ(void 0,void 0,void 0,(function*(){if(x(e.target.value),e.target.value!==A)if(C){const t=C(e.target.value),r=(e,t)=>{const r=Object.keys(e);return r.length<4&&r[0]===t};if(r(t,"account")){const e=cne({seed:t.account,size:10,scale:3}),r={handle:t.account,name:t.account,image:e.toDataURL()};T(r)}else T(t)}else try{I(!0);const t=yield _.user.get({account:e.target.value,env:w});if(null===t){const t=cne({seed:e.target.value,size:10,scale:3}),r={handle:e.target.value,name:e.target.value,image:t.toDataURL()};T(r)}else T(t);P("")}catch($R){console.error($R.message),T({}),P($R.message)}finally{I(!1)}else D("Cannot add Host to members")})),clearInput:j}),(0,n.jsx)(hie,{children:M}),(0,n.jsxs)(sie,{children:[S&&(0,n.jsx)(Ane,{}),0===Object.keys(k).length?null:k.hasOwnProperty("handle")?(0,n.jsx)(Vre,{imageHeight:"48px",handle:k.handle,name:k.name,imageUrl:k.image,contBtn:(0,n.jsx)(fie,{children:"Add +"}),btnCallback:()=>O(k),border:!0}):(0,n.jsx)(Vre,{imageHeight:"48px",handle:k.did.substring(7),name:null!==(t=k.profile.name)&&void 0!==t?t:k.did.substring(7),imageUrl:k.profile.picture,contBtn:(0,n.jsx)(fie,{children:"Add +"}),btnCallback:()=>O(k),border:!0})]}),u.length?(0,n.jsxs)(cie,{children:[(0,n.jsxs)(uie,{children:["Invited Members ",(0,n.jsx)(lie,Object.assign({theme:v},{children:u.length}))]}),u.map((e=>{var t;return e.hasOwnProperty("handle")?(0,n.jsx)(Vre,{imageHeight:"48px",handle:e.handle,name:e.name,imageUrl:e.image,contBtn:(0,n.jsx)(die,{children:(0,n.jsx)(oie,{color:v.textColorPrimary})}),removeCallback:()=>N(e),promoteCallback:()=>B(e),border:!0}):(0,n.jsx)(Vre,{imageHeight:"48px",handle:e.did.substring(7),name:null!==(t=e.profile.name)&&void 0!==t?t:e.did.substring(7),imageUrl:e.profile.picture,contBtn:(0,n.jsx)(die,{children:(0,n.jsx)(oie,{color:v.textColorPrimary})}),removeCallback:()=>N(e),promoteCallback:()=>B(e),border:!0})}))]}):null,h.length?(0,n.jsxs)(cie,{children:[(0,n.jsxs)(uie,{children:["Speakers ",(0,n.jsx)(lie,Object.assign({theme:v},{children:h.length}))]}),h.map((e=>{var t;return e.hasOwnProperty("handle")?(0,n.jsx)(Vre,{imageHeight:"48px",handle:e.handle,name:e.name,imageUrl:e.image,contBtn:(0,n.jsx)(die,{children:(0,n.jsx)(oie,{color:v.textColorPrimary})}),removeCallback:()=>R(e),border:!0}):(0,n.jsx)(Vre,{imageHeight:"48px",handle:e.did.substring(7),name:null!==(t=e.profile.name)&&void 0!==t?t:e.did.substring(7),imageUrl:e.profile.picture,contBtn:(0,n.jsx)(die,{children:(0,n.jsx)(oie,{color:v.textColorPrimary})}),removeCallback:()=>R(e),border:!0})}))]}):null,(0,n.jsx)(Kne,Object.assign({onClick:s,width:"max-content"},{children:c?(0,n.jsx)($6,{}):null!=b?b:"Create Space"}))]}))}))},sie=o.Ay.div.withConfig({displayName:"SCWInviteModal__MembersList",componentId:"sc-1kkr9mx-0"})(["width:100%;display:flex;flex-direction:column;gap:8px;"]),cie=o.Ay.div.withConfig({displayName:"SCWInviteModal__InvitedList",componentId:"sc-1kkr9mx-1"})(["width:100%;display:flex;flex-direction:column;gap:8px;margin-top:28px;"]),uie=o.Ay.div.withConfig({displayName:"SCWInviteModal__Heading",componentId:"sc-1kkr9mx-2"})(["display:flex;align-items:center;"]),lie=o.Ay.div.withConfig({displayName:"SCWInviteModal__PendingCount",componentId:"sc-1kkr9mx-3"})(["background:",";border-radius:8px;padding:4px 10px;margin-left:6px;font-size:13px;color:",";"],(e=>e.theme.btnColorPrimary),(e=>e.theme.titleTextColor)),die=o.Ay.div.withConfig({displayName:"SCWInviteModal__SettingsCont",componentId:"sc-1kkr9mx-4"})(["display:flex;justify-content:center;align-items:center;cursor:pointer;"]),fie=o.Ay.button.withConfig({displayName:"SCWInviteModal__ContBtn",componentId:"sc-1kkr9mx-5"})(["display:flex;flex-direction:row;align-items:center;margin-left:8px;line-height:18px;width:max-content;background:transparent;color:",";border-radius:6px;font-weight:500;font-size:12px;padding:4px 8px;border-radius:8px;border:1px solid ",";cursor:pointer;"],(e=>e.theme.btnColorPrimary),(e=>e.theme.btnOutline)),hie=o.Ay.div.withConfig({displayName:"SCWInviteModal__ErrorMessage",componentId:"sc-1kkr9mx-6"})(["color:#E93636;font-size:14px;margin-bottom:8px;"]),pie=e=>{var t,r,o,a,s,c,u,l;const{spaceData:d}=e,f=(0,i.useContext)(zte),[h,p]=(0,i.useState)(!1),[g,m]=(0,i.useState)([]),[y,b]=(0,i.useState)([]),[v,w]=(0,i.useState)([]),[A,C]=(0,i.useState)([]),[E,x]=(0,i.useState)(!1),{signer:S,env:I,pgpPrivateKey:k}=M9(),T={color:null==f?void 0:f.textColorPrimary,background:null==f?void 0:f.bgColorPrimary,borderColor:null==f?void 0:f.borderColor,fontWeight:"500",padding:"14px"},M=()=>{p(!h)},P=null===(t=null==d?void 0:d.members)||void 0===t?void 0:t.filter((e=>e.isSpeaker));return(0,n.jsx)(jre,Object.assign({width:"400px"},{children:(0,n.jsxs)(gie,Object.assign({theme:f},{children:[(0,n.jsx)(Rre,{heading:"Spaces Info",closeCallback:e.closeSpacesInfo}),(0,n.jsx)(Vre,{imageUrl:null===(r=null==d?void 0:d.members[0])||void 0===r?void 0:r.image,name:null===(a=null===(o=null==d?void 0:d.members[0])||void 0===o?void 0:o.wallet)||void 0===a?void 0:a.substring(7),handle:null===(c=null===(s=null==d?void 0:d.members[0])||void 0===s?void 0:s.wallet)||void 0===c?void 0:c.substring(7),imageHeight:"48px",tag:"Host"}),(0,n.jsxs)(mie,{children:[(0,n.jsx)(yie,{children:null==d?void 0:d.spaceName}),(0,n.jsx)(bie,Object.assign({theme:f},{children:null==d?void 0:d.spaceDescription}))]}),(0,n.jsx)(Kne,Object.assign({customStyle:T,onClick:M},{children:"Invite Members"})),(null===(u=null==d?void 0:d.pendingMembers)||void 0===u?void 0:u.length)?(0,n.jsx)(qne,Object.assign({title:"Pending Invites",items:null===(l=null==d?void 0:d.pendingMembers)||void 0===l?void 0:l.length},{children:(null==d?void 0:d.pendingMembers)&&d.pendingMembers.map((e=>{var t,r;return(0,n.jsx)(Vre,{tag:(null==e?void 0:e.isSpeaker)?"Co-Host":void 0,imageHeight:"48px",handle:null===(t=null==e?void 0:e.wallet)||void 0===t?void 0:t.substring(7),name:null===(r=null==e?void 0:e.wallet)||void 0===r?void 0:r.substring(7),imageUrl:null==e?void 0:e.image})}))})):null,(0,n.jsx)(vie,{children:P&&P.slice(1).map((e=>{var t,r;return(0,n.jsx)(Vre,{border:!0,tag:"Co-Host",imageHeight:"48px",handle:null===(t=null==e?void 0:e.wallet)||void 0===t?void 0:t.substring(7),name:null===(r=null==e?void 0:e.wallet)||void 0===r?void 0:r.substring(7),imageUrl:null==e?void 0:e.image})}))}),h?(0,n.jsx)(aie,{closeInviteModal:M,makeScheduleVisible:M,createSpace:()=>pJ(void 0,void 0,void 0,(function*(){const e=Object.assign({spaceName:null==d?void 0:d.spaceName,spaceDescription:"Push Space",listeners:y,spaceImage:"asd",speakers:A,isPublic:!0,scheduleAt:new Date(Date.now()+12e4),signer:S,env:I,spaceId:null==d?void 0:d.spaceId,status:null==d?void 0:d.status},k&&""!==k&&{pgpPrivateKey:k});try{x(!0);const t=yield _.space.update(e);console.log(t)}catch($R){console.error($R.message)}finally{x(!1),p(!1)}})),isLoading:E,invitedMembersList:g,setInvitedMembersList:m,invitedAddressList:y,setInvitedAddressList:b,adminsList:v,setAdminsList:w,adminsAddressList:A,setAdminsAddressList:C,onClose:M,btnString:"Update Space"}):null]}))}))},gie=o.Ay.div.withConfig({displayName:"SpacesInfo__SpacesInfoContainer",componentId:"sc-12pbtz1-0"})(["color:",";width:100%;"],(e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.textColorPrimary})),mie=o.Ay.div.withConfig({displayName:"SpacesInfo__SpacesDetailsContainer",componentId:"sc-12pbtz1-1"})(["padding:0 16px;margin:24px 0;"]),yie=o.Ay.div.withConfig({displayName:"SpacesInfo__Title",componentId:"sc-12pbtz1-2"})(["font-weight:500;"]),bie=o.Ay.div.withConfig({displayName:"SpacesInfo__Description",componentId:"sc-12pbtz1-3"})(["color:",";"],(e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.textColorSecondary})),vie=o.Ay.div.withConfig({displayName:"SpacesInfo__AdminsList",componentId:"sc-12pbtz1-4"})(["display:flex;flex-direction:column;gap:8px;margin-top:8px;"]),wie=({onClose:e,isMinimized:t,isHost:r,setIsMinimized:a,toggleWidgetVisibility:s,spaceData:c,spaceStatus:u})=>{var l,d,f,h,p;const g=(0,i.useContext)(zte),{isJoined:m}=M9(),[y,b]=(0,i.useState)(!1),[v,w]=(0,i.useState)(Lne.Scheduled),A=t=>{s(),e(t)},C=()=>{b(!y),console.log(y)};return(0,i.useEffect)((()=>{u===Lne.Live&&w(Lne.Live),u===Lne.Scheduled&&w(Lne.Scheduled),u===Lne.Ended&&w(Lne.Ended)}),[u]),(0,n.jsx)(o.NP,Object.assign({theme:g},{children:(0,n.jsxs)(Aie,Object.assign({theme:g},{children:[(v===Lne.Scheduled||v===Lne.Ended)&&(0,n.jsxs)(Eie,{children:[(0,n.jsx)(e5,Object.assign({marginBottom:"12px"},{children:(0,n.jsx)(sre,{statusTheme:"Live",imageUrl:(null===(l=null==c?void 0:c.members[0])||void 0===l?void 0:l.image)||"https://imgv3.fotor.com/images/blog-richtext-image/10-profile-picture-ideas-to-make-you-stand-out.jpg",name:`${null===(d=null==c?void 0:c.spaceCreator)||void 0===d?void 0:d.slice(7,12)}...${null===(f=null==c?void 0:c.spaceCreator)||void 0===f?void 0:f.slice(-6,-1)}`||"Host",handle:`${null===(h=null==c?void 0:c.spaceCreator)||void 0===h?void 0:h.slice(7,12)}...${null===(p=null==c?void 0:c.spaceCreator)||void 0===p?void 0:p.slice(-6,-1)}`||"Host"})})),(0,n.jsxs)(e5,Object.assign({display:"flex",alignSelf:"flex-start",alignItems:"center"},{children:[(0,n.jsx)(e5,Object.assign({marginLeft:"8px",display:"flex",onClick:C},{children:(0,n.jsx)(Cie,{alt:"Settings icon",src:zne})})),(0,n.jsx)(e5,Object.assign({marginLeft:"8px",display:"flex"},{children:(0,n.jsx)(Cie,{onClick:()=>a(!t),src:t?Vne:Hne,alt:"Maximize/Minimize icon"})})),!m&&(0,n.jsx)(e5,Object.assign({marginLeft:"8px",display:"flex",onClick:A},{children:(0,n.jsx)(Bre,{stroke:"white",height:"15",width:"15"})}))]}))]}),(0,n.jsxs)(Eie,{children:[(0,n.jsx)(a5,Object.assign({fontSize:"16px",fontWeight:700},{children:(null==c?void 0:c.spaceName)||"Test Space"})),v===Lne.Live&&(0,n.jsxs)(e5,Object.assign({display:"flex",alignSelf:"flex-start",alignItems:"center",marginLeft:"24px"},{children:[(0,n.jsx)(e5,Object.assign({marginLeft:"8px",display:"flex",onClick:C},{children:(0,n.jsx)(Cie,{alt:"Settings icon",src:zne})})),(0,n.jsx)(e5,Object.assign({marginLeft:"8px",display:"flex"},{children:(0,n.jsx)(Cie,{onClick:()=>a(!t),src:t?Vne:Hne,alt:"Maximize/Minimize icon"})})),!m&&(0,n.jsx)(e5,Object.assign({marginLeft:"8px",display:"flex",onClick:A},{children:(0,n.jsx)(Bre,{stroke:"white",height:"15",width:"15"})}))]}))]}),v===Lne.Scheduled&&(0,n.jsxs)(e5,Object.assign({display:"flex",marginTop:"12px",alignItems:"center"},{children:[(0,n.jsx)(Cie,{src:"data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M16.25 3.125H3.75C3.40482 3.125 3.125 3.40482 3.125 3.75V16.25C3.125 16.5952 3.40482 16.875 3.75 16.875H16.25C16.5952 16.875 16.875 16.5952 16.875 16.25V3.75C16.875 3.40482 16.5952 3.125 16.25 3.125Z' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M13.75 1.875V4.375' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6.25 1.875V4.375' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M3.125 6.875H16.875' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",alt:"Calendar Icon"}),(0,n.jsx)(e5,Object.assign({marginLeft:"4px",fontSize:"14px",fontWeight:600},{children:l9((null==c?void 0:c.scheduleAt)||new Date)}))]})),v===Lne.Live&&(0,n.jsxs)(Eie,Object.assign({marginTop:"12px"},{children:[(0,n.jsxs)(e5,Object.assign({display:"flex",alignItems:"center"},{children:[(0,n.jsx)(Cie,{src:mre,alt:"Calendar Icon"}),(0,n.jsx)(a5,Object.assign({fontSize:"14px",fontWeight:600,marginLeft:"4px"},{children:"Live"}))]})),(0,n.jsx)(e5,Object.assign({display:"flex",alignItems:"center"},{children:(0,n.jsx)(e5,{children:(0,n.jsx)(rre,{participants:null==c?void 0:c.members,orientation:"maximized"})})}))]})),y?(0,n.jsx)(pie,{closeSpacesInfo:()=>{b(!1)},spaceData:c}):null]}))}))},Aie=o.Ay.div.withConfig({displayName:"WidgetHeader__Container",componentId:"sc-1va1891-0"})(["display:flex;flex-direction:column;color:",";padding:16px 24px;background:",";"],(e=>e.theme.titleTextColor),(e=>e.theme.titleBg)),Cie=o.Ay.img.withConfig({displayName:"WidgetHeader__Image",componentId:"sc-1va1891-1"})(["display:flex;max-height:initial;vertical-align:middle;overflow:initial;cursor:pointer;height:",";width:",";align-self:center;"],(e=>e.height||"24px"),(e=>e.width||"20px")),Eie=o.Ay.div.withConfig({displayName:"WidgetHeader__Section",componentId:"sc-1va1891-2"})(["display:flex;justify-content:space-between;margin-top:",";"],(e=>e.marginTop)),xie=16,Sie=e=>{const{bottomOffset:t=xie,rightOffset:r=xie,width:a,zIndex:s=1e3,spaceId:c,share:u,onClose:l=()=>{},isTimeToStartSpace:d}=e||{},f=(0,i.useRef)(),[h,p]=(0,i.useState)(!c),[g,m]=(0,i.useState)(!1),[y,b]=(0,i.useState)(),{getSpaceInfo:v,setSpaceInfo:w,account:A,env:C,spaceInfo:E}=M9();(0,i.useEffect)((()=>{if(!c)return;p(!c);pJ(void 0,void 0,void 0,(function*(){try{if(v(c))return void b(v(c));const e=yield _.space.get({spaceId:c,env:C});w(c,e),b(e)}catch(ys){console.error(ys)}}))}),[C,v,w,c]),(0,i.useEffect)((()=>{c&&E[c]&&(f.current=E[c].status)}),[c,E]);const x=((e,t)=>L9(e,null==t?void 0:t.spaceCreator))(A,y),S=((e,t)=>{const r=null==t?void 0:t.members.filter((t=>L9(e,t.wallet)));return(null==r?void 0:r.length)>0})(A,y),I=()=>{p(!h)};return(0,n.jsx)(o.NP,Object.assign({theme:i.useContext(zte)},{children:(0,n.jsxs)(Iie,Object.assign({bottomOffset:t,rightOffset:r,hidden:h,width:a,zIndex:s},{children:[(0,n.jsx)(wie,{onClose:l,isMinimized:g,setIsMinimized:m,toggleWidgetVisibility:I,isHost:x,spaceStatus:f.current,spaceData:y}),(0,n.jsx)(Fne,{onClose:l,account:A,spaceData:y,share:u,isHost:x,spaceStatus:f.current,isMember:S,isTimeToStartSpace:d,isMinimized:g,toggleWidgetVisibility:I})]}))}))},Iie=o.Ay.div.withConfig({displayName:"SpaceWidget__Container",componentId:"sc-1nlioj1-0"})(["font-family:'Strawford';border-radius:12px;border:1px solid ",";display:flex;flex-direction:column;width:",";max-width:",";min-width:320px;background:",";justify-content:flex-start;position:fixed;bottom:","px;right:","px;visibility:",";opacity:",";transition:opacity 0.3s ease;z-index:",";overflow:hidden;"],(e=>e.theme.borderColor),(e=>e.width?`${e.width}px`:"415px"),(e=>e.width?`${e.width}px`:"415px"),(e=>e.theme.bgColorPrimary),(e=>e.bottomOffset),(e=>e.rightOffset),(e=>e.hidden?"hidden":"visible"),(e=>e.hidden?0:1),(e=>{var t;return null!==(t=e.zIndex)&&void 0!==t?t:"1000"}));var kie,_ie,Tie;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(kie||(kie={})),function(e){e.ForYou="For You",e.Popular="Popular",e.HostedByYou="Hosted by you"}(_ie||(_ie={})),function(e){e.All="All",e.Live="Live",e.Scheduled="Scheduled"}(Tie||(Tie={}));const Mie=({orientation:e=kie.Vertical,height:t,width:r,sortingOrder:a=["Popular","ForYou","HostedByYou"],showTabs:s=!0,filter:c=Tie.All,showFilter:u=!0,onBannerClickHandler:l})=>{var d,f,h;const p=(0,i.useContext)(zte),[g,m]=(0,i.useState)(c),{selectedFeedTab:y,setSelectedFeedTab:b}=M9(),{account:v,mySpaces:w,setMySpaces:A,popularSpaces:C,setPopularSpaces:E,spaceRequests:x,setSpaceRequests:S}=M9(),I=O9(null===(d=w.apiData)||void 0===d||d.length),k=e=>g===Tie.All?e:g===Tie.Live?e.filter((e=>{var t;return"ACTIVE"===(null===(t=e.spaceInformation)||void 0===t?void 0:t.status)})):g===Tie.Scheduled?e.filter((e=>{var t;return"PENDING"===(null===(t=e.spaceInformation)||void 0===t?void 0:t.status)})):e,_=e=>y===_ie.HostedByYou?e.filter((e=>{var t;return L9(v,null===(t=e.spaceInformation)||void 0===t?void 0:t.spaceCreator)})):y===_ie.ForYou?e.filter((e=>{var t;return!L9(v,null===(t=e.spaceInformation)||void 0===t?void 0:t.spaceCreator)})):k(e),T=e=>{if(l)return l(e||"")},M=e=>pJ(void 0,void 0,void 0,(function*(){!1===O&&e.currentPage&&e.lastPage&&e.currentPage(0,n.jsx)(bre,{spaceId:e.spaceId,orientation:"pill",onBannerClick:l?T:void 0})))):w&&(null===(h=w.apiData)||void 0===h?void 0:h.map((e=>(0,n.jsx)(bre,{spaceId:e.spaceId,orientation:"maximized",onBannerClick:l?T:void 0}))))})):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Die,Object.assign({showTabs:s,width:r,showFilter:u},{children:(0,n.jsx)(Oie,{children:a.map((e=>(0,n.jsx)(Bie,Object.assign({active:y===_ie[e],onClick:()=>b(_ie[e])},{children:_ie[e]}))))})})),(0,n.jsxs)(Lie,Object.assign({showFilter:u},{children:[(0,n.jsx)(Fie,Object.assign({active:g===Tie.All,onClick:()=>m(Tie.All)},{children:"All"})),(0,n.jsx)(Fie,Object.assign({active:g===Tie.Live,onClick:()=>m(Tie.Live)},{children:"Live"})),(0,n.jsx)(Fie,Object.assign({active:g===Tie.Scheduled,onClick:()=>m(Tie.Scheduled)},{children:"Scheduled"}))]})),(0,n.jsx)(Pie,Object.assign({width:r,height:t,ref:I,onScroll:()=>{if(I.current){const{scrollTop:e}=I.current,{offsetHeight:t}=I.current,{scrollHeight:r}=I.current;e+t+1>=r&&pJ(void 0,void 0,void 0,(function*(){y===_ie.ForYou&&M(w),y===_ie.Popular&&M(C),y===_ie.HostedByYou&&M(x)}))}}},{children:(0,n.jsxs)(jie,{children:[y===_ie.ForYou?(0,n.jsx)(Nie,Object.assign({orientation:e},{children:w.apiData&&(0===k(_(w.apiData)).length?(0,n.jsxs)(Uie,{children:[(0,n.jsx)(zie,{src:Pne}),(0,n.jsx)(Hie,{children:"Join a space"}),(0,n.jsx)(Vie,{children:"Get started by joining a space"})]}):k(_(w.apiData)).map((e=>(0,n.jsx)(bre,{spaceId:e.spaceId,orientation:"maximized",onBannerClick:l?T:void 0}))))})):y===_ie.Popular?(0,n.jsx)(Rie,{children:C.apiData&&k(C.apiData).map((e=>(0,n.jsx)(bre,{spaceId:e.spaceId,orientation:"maximized",onBannerClick:l?T:void 0})))}):(0,n.jsx)(Nie,Object.assign({orientation:e},{children:w.apiData&&(0===k(_(w.apiData)).length?(0,n.jsxs)(Uie,{children:[(0,n.jsx)(zie,{src:Pne}),(0,n.jsx)(Hie,{children:"Create a space"}),(0,n.jsx)(Vie,{children:"Get started by creating a space"})]}):k(_(w.apiData)).map((e=>(0,n.jsx)(bre,{spaceId:e.spaceId,orientation:"maximized",onBannerClick:l?T:void 0}))))})),O&&(0,n.jsx)(Ane,{size:"40"})]})}))]})}))}))},Pie=o.Ay.div.withConfig({displayName:"SpaceFeed__ScrollContainer",componentId:"sc-tm8f47-0"})(["width:",";height:",";overflow-y:auto;"],(e=>e.width?`${e.width}px`:"inherit"),(e=>e.height?`${e.height}px`:"auto")),jie=o.Ay.div.withConfig({displayName:"SpaceFeed__Container",componentId:"sc-tm8f47-1"})(["display:flex;flex-direction:column;align-items:center;background:",";border:1px solid ",";border-radius:12px;padding:24px 32px;"],(e=>e.theme.bgColorPrimary),(e=>e.theme.borderColor)),Die=o.Ay.div.withConfig({displayName:"SpaceFeed__Navigation",componentId:"sc-tm8f47-2"})(["display:",";flex-direction:row;justify-content:space-between;align-items:center;width:",";border-bottom:1px solid ",";margin-bottom:",";background:",";}"],(e=>e.showTabs?"flex":"none"),(e=>e.width?`${e.width}px`:"inherit"),(e=>e.theme.borderColor),(e=>e.showFilter?"0":"27px"),(e=>e.theme.bgColorPrimary)),Oie=o.Ay.div.withConfig({displayName:"SpaceFeed__NavButtonWrapper",componentId:"sc-tm8f47-3"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;"]),Bie=o.Ay.button.withConfig({displayName:"SpaceFeed__NavButton",componentId:"sc-tm8f47-4"})(["padding:10px 30px;font-weight:450;font-size:14px;border:none;border-bottom:",";background:none;color:",";&:hover{cursor:pointer;}"],(e=>e.active?`2px solid ${e.theme.btnColorPrimary}`:"none"),(e=>e.active?`${e.theme.textColorPrimary}`:`${e.theme.textColorSecondary}`)),Nie=o.Ay.div.withConfig({displayName:"SpaceFeed__Spaces",componentId:"sc-tm8f47-5"})(["display:flex;flex-direction:",";justify-content:flex-start;align-items:center;background:",";width:",";height:auto;gap:16px;"],(e=>"horizontal"===e.orientation?"row":"column"),(e=>e.theme.bgColorPrimary),(e=>"horizontal"===e.orientation?"inherit":"100%")),Rie=o.Ay.div.withConfig({displayName:"SpaceFeed__PopularSpaces",componentId:"sc-tm8f47-6"})(["display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:",";width:100%;height:auto;gap:16px;"],(e=>e.theme.bgColorPrimary)),Lie=o.Ay.div.withConfig({displayName:"SpaceFeed__Filter",componentId:"sc-tm8f47-8"})(["display:",";flex-direction:row;justify-content:flex-start;align-items:center;background:",";width:100%;margin:22px 0;"],(e=>e.showFilter?"flex":"none"),(e=>e.theme.bgColorPrimary)),Fie=o.Ay.button.withConfig({displayName:"SpaceFeed__FilterButton",componentId:"sc-tm8f47-9"})(["display:inline-flex;height:30px;padding:0px 16px;justify-content:center;align-items:center;border-radius:99px;border:1px solid ",";background:",";color:",";margin-right:8px;font-size:14px;&:hover{cursor:pointer;}"],(e=>e.theme.borderColor),(e=>e.active?`${e.theme.btnColorPrimary}`:`${e.theme.bgColorSecondary}`),(e=>e.active?`${e.theme.titleTextColor}`:`${e.theme.textColorPrimary}`)),Uie=o.Ay.div.withConfig({displayName:"SpaceFeed__NoSpaces",componentId:"sc-tm8f47-10"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;margin:130px 0;"]),zie=o.Ay.img.withConfig({displayName:"SpaceFeed__SpacesIcon",componentId:"sc-tm8f47-11"})(["width:36px;height:36px;"]),Hie=o.Ay.div.withConfig({displayName:"SpaceFeed__NoSpacesTextV1",componentId:"sc-tm8f47-12"})(["font-family:'Strawford';font-weight:450;font-size:16px;color:","};}"],(e=>e.theme.textColorPrimary)),Vie=o.Ay.div.withConfig({displayName:"SpaceFeed__NoSpacesTextV2",componentId:"sc-tm8f47-13"})(["font-family:'Strawford';font-weight:450;color:","};font-size:14px;"],(e=>e.theme.textColorSecondary)),Kie=({children:e,actionCallback:t,onBannerClickHandler:r})=>{var a,s,c;const u=(0,i.useContext)(zte),[l,d]=(0,i.useState)(!1),{spaceRequests:f,setSpaceRequests:h}=M9(),p=O9(null===(a=f.apiData)||void 0===a||a.length),{account:g}=M9(),m=()=>{d(!0)},y=()=>{d(!1)},b=()=>{t&&t(),d(!1)},v=e=>{if(r)return r(e||"")},{loading:w}=D9(g);return(0,n.jsxs)(o.NP,Object.assign({theme:u},{children:[!e&&(0,n.jsx)(Gie,Object.assign({onClick:m},{children:"Space Invites"})),e&&(0,n.jsx)("div",Object.assign({onClick:m},{children:e})),l&&(0,n.jsxs)(jre,Object.assign({clickawayClose:y,width:"450px"},{children:[(0,n.jsx)(Rre,{heading:"Spaces Invites",headingBadgeNumber:(null===(s=f.apiData)||void 0===s?void 0:s.length)>0?null===(c=f.apiData)||void 0===c?void 0:c.length:void 0,closeCallback:y}),(0,n.jsx)(qie,Object.assign({ref:p,onScroll:()=>{if(p.current){const{scrollTop:e,scrollHeight:t,clientHeight:r}=p.current;e+r>=t&&!1===w&&f.currentPage&&f.lastPage&&f.currentPage(0,n.jsx)(bre,{spaceId:e.spaceId,orientation:"maximized",isInvite:!0,actionCallback:b,onBannerClick:r?v:void 0}))):null,w?(0,n.jsx)(Ane,{size:"40"}):null]})}))]}))]}))},Gie=o.Ay.button.withConfig({displayName:"SpaceInvites__Button",componentId:"sc-hjjf1x-0"})(["padding:8px 16px;background-color:",";color:",";border:none;border-radius:4px;cursor:pointer;"],(e=>e.theme.btnColorPrimary),(e=>e.theme.textColorPrimary)),qie=o.Ay.div.withConfig({displayName:"SpaceInvites__ScrollContainer",componentId:"sc-hjjf1x-1"})(["max-height:400px;width:inherit;margin-top:24px;overflow-y:scroll;&::-webkit-scrollbar{margin-left:10px;width:8px;height:8px;}&::-webkit-scrollbar-thumb{-webkit-appearance:none;width:4px;height:auto;background:",";border-radius:99px;}"],(e=>e.theme.btnColorPrimary)),Qie=o.Ay.div.withConfig({displayName:"SpaceInvites__InviteContainer",componentId:"sc-hjjf1x-2"})(["display:flex;flex-direction:column;gap:16px;margin:0 10px;"]),Wie=e=>{const t=(0,i.useContext)(zte);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(Jie,{children:[(0,n.jsxs)(Yie,{children:[(0,n.jsx)("label",{children:e.labelName}),(0,n.jsxs)($ie,Object.assign({theme:t},{children:[e.inputValue.length," / ",e.charCount]}))]}),(0,n.jsx)(Zie,{theme:t,value:e.inputValue,onChange:t=>{t.target.value.length<=e.charCount&&e.onInputChange(t)}})]})}))},Jie=o.Ay.div.withConfig({displayName:"TextInput__InputContainer",componentId:"sc-qbpum2-0"})(["display:flex;flex-direction:column;margin:16px 0;font-family:'Strawford';"]),Yie=o.Ay.div.withConfig({displayName:"TextInput__LabelContainer",componentId:"sc-qbpum2-1"})(["display:flex;justify-content:space-between;font-weight:500;color:",""],(e=>{var t;return null!==(t=e.theme.textColorPrimary)&&void 0!==t?t:"#000"})),Zie=o.Ay.input.withConfig({displayName:"TextInput__Input",componentId:"sc-qbpum2-2"})(["padding:16px;margin-top:12px;width:330px;background:#FFFFFF;border:2px solid ",";border-radius:12px;font-family:'Strawford';font-size:14px;"],(e=>e.theme.btnOutline)),$ie=o.Ay.div.withConfig({displayName:"TextInput__CharCounter",componentId:"sc-qbpum2-3"})(["color:",";"],(e=>e.theme.textColorSecondary)),Xie=({height:e,width:t,color:r})=>(0,n.jsxs)("svg",Object.assign({width:t||"15",height:e||"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M5.72237 11.7409H3.94459C3.31593 11.7409 2.71301 11.4912 2.26848 11.0466C1.82395 10.6021 1.57422 9.99918 1.57422 9.37052V4.03718C1.57422 3.40852 1.82395 2.80561 2.26848 2.36108C2.71301 1.91655 3.31593 1.66681 3.94459 1.66681H10.4631C11.0918 1.66681 11.6947 1.91655 12.1392 2.36108C12.5837 2.80561 12.8335 3.40852 12.8335 4.03718V5.81496M5.12977 1.07422V2.2594M9.27792 1.07422V2.2594M1.57422 4.62977H12.8335M11.352 9.15896L10.4631 10.0478",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.18519","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M10.463 12.9259C12.0994 12.9259 13.4259 11.5994 13.4259 9.96296C13.4259 8.32656 12.0994 7 10.463 7C8.82656 7 7.5 8.32656 7.5 9.96296C7.5 11.5994 8.82656 12.9259 10.463 12.9259Z",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.18519","stroke-linecap":"round","stroke-linejoin":"round"})]})),eoe=e=>{const t=(0,i.useContext)(zte),{isInviteVisible:r,closeCreateModal:a,handleNameChange:s,handleDescriptionChange:c,nameValue:u,descriptionValue:l,isDescriptionEnabled:d,isScheduleVisible:f,onClose:h}=e,p={background:"transparent",borderColor:t.btnOutline};return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(jre,Object.assign({clickawayClose:h},{children:[(0,n.jsx)(Rre,{heading:"Create your space",closeCallback:a}),(0,n.jsx)(Wie,{labelName:"Name",inputValue:u,onInputChange:s,charCount:50}),d?(0,n.jsx)(Wie,{labelName:"Description",inputValue:l,onInputChange:c,charCount:120}):null,(0,n.jsxs)(toe,{children:[(0,n.jsx)(Kne,Object.assign({onClick:r,width:"85%"},{children:"Create Space"})),(0,n.jsx)("div",Object.assign({title:"Schedule your Space"},{children:(0,n.jsx)(Kne,Object.assign({width:"40px",height:"41px",customStyle:p,onClick:f},{children:(0,n.jsx)(Xie,{height:"20",width:"20",color:t.btnColorPrimary})}))}))]})]}))}))},toe=o.Ay.div.withConfig({displayName:"SCWCreateModal__ButtonContainer",componentId:"sc-gl8ef6-0"})(["display:flex;justify-content:space-between;width:100%;"]),roe=e=>{const{propsDate:t,onDateChange:r,onTimeChange:o}=e,a=(0,i.useContext)(zte),[s,c]=(0,i.useState)("0"),[u,l]=(0,i.useState)("0"),[d,f]=(0,i.useState)("AM"),[h,p]=(0,i.useState)(0);console.log("\ud83d\ude80 ~ file: DateTimePicker.tsx:24 ~ timeHumanReadable:",h);return(0,i.useEffect)((()=>{const e=((e,t,r,n)=>{let i=60*e+t;"PM"===r&&12!==e?i+=720:"AM"===r&&12===e&&(i-=720);const o=new Date(n);return o.setHours(0,0,0,0),o.setMinutes(i),o.getTime()})(parseInt(s,10),parseInt(u,10),d,t);p(e),o(e)}),[s,u,d,t]),(0,n.jsxs)(noe,{children:[(0,n.jsx)("div",{children:"Select date and time"}),(0,n.jsx)(ioe,{theme:a,type:"date",value:t.toISOString().split("T")[0],onChange:e=>{const t=new Date(e.target.value);r(t)}}),(0,n.jsxs)(ooe,{children:[(0,n.jsxs)(aoe,Object.assign({theme:a,value:s,onChange:e=>c(e.target.value),placeholder:"Hours"},{children:[(0,n.jsx)("option",Object.assign({value:"00"},{children:"12"})),(0,n.jsx)("option",Object.assign({value:"01"},{children:"01"})),(0,n.jsx)("option",Object.assign({value:"02"},{children:"02"})),(0,n.jsx)("option",Object.assign({value:"03"},{children:"03"})),(0,n.jsx)("option",Object.assign({value:"04"},{children:"04"})),(0,n.jsx)("option",Object.assign({value:"05"},{children:"05"})),(0,n.jsx)("option",Object.assign({value:"06"},{children:"06"})),(0,n.jsx)("option",Object.assign({value:"07"},{children:"07"})),(0,n.jsx)("option",Object.assign({value:"08"},{children:"08"})),(0,n.jsx)("option",Object.assign({value:"09"},{children:"09"})),(0,n.jsx)("option",Object.assign({value:"10"},{children:"10"})),(0,n.jsx)("option",Object.assign({value:"11"},{children:"11"}))]})),(0,n.jsxs)(aoe,Object.assign({theme:a,value:u,onChange:e=>l(e.target.value),placeholder:"Minutes"},{children:[(0,n.jsx)("option",Object.assign({value:"00"},{children:"00"})),(0,n.jsx)("option",Object.assign({value:"15"},{children:"15"})),(0,n.jsx)("option",Object.assign({value:"30"},{children:"30"})),(0,n.jsx)("option",Object.assign({value:"45"},{children:"45"}))]})),(0,n.jsxs)(aoe,Object.assign({theme:a,value:d,onChange:e=>f(e.target.value),placeholder:"AM/PM"},{children:[(0,n.jsx)("option",Object.assign({value:"AM"},{children:"AM"})),(0,n.jsx)("option",Object.assign({value:"PM"},{children:"PM"}))]}))]})]})},noe=o.Ay.div.withConfig({displayName:"DateTimePicker__DateTimeCont",componentId:"sc-a5tvc-0"})(["display:flex;flex-direction:column;margin-top:24px;"]),ioe=o.Ay.input.withConfig({displayName:"DateTimePicker__Input",componentId:"sc-a5tvc-1"})(["padding:16px;margin-top:12px;width:330px;background:#FFFFFF;border:2px solid ",";border-radius:12px;font-size:16px;font-family:'Strawford';"],(e=>e.theme.btnOutline)),ooe=o.Ay.div.withConfig({displayName:"DateTimePicker__TimeContainer",componentId:"sc-a5tvc-2"})(["display:flex;width:100%;gap:12px;"]),aoe=o.Ay.select.withConfig({displayName:"DateTimePicker__Select",componentId:"sc-a5tvc-3"})(["padding:16px;margin-top:12px;background:#FFFFFF;border:2px solid ",";border-radius:12px;font-size:16px;font-family:'Strawford';width:",";"],(e=>e.theme.btnOutline),(e=>e.width?e.width:"100%")),soe=e=>{const{closeScheduleModal:t,makeCreateVisible:r,makeInviteVisible:i,dateValue:o,timeValue:a,onDateChange:s,onTimeChange:c,onClose:u}=e;return(0,n.jsxs)(jre,Object.assign({clickawayClose:u},{children:[(0,n.jsx)(Rre,{heading:"Schedule your space",backCallback:r,closeCallback:t}),(0,n.jsx)(roe,{onDateChange:s,onTimeChange:c,propsDate:o,propsTime:a}),(0,n.jsx)(coe,{children:(0,n.jsx)(Kne,Object.assign({onClick:i},{children:"Schedule Space"}))})]}))},coe=o.Ay.div.withConfig({displayName:"SCWScheduleModal__ButtonContainer",componentId:"sc-1kbpgt-0"})(["display:flex;justify-content:space-between;width:100%;"]),uoe=({height:e,width:t,color:r})=>(0,n.jsxs)("svg",Object.assign({width:t||"16",height:e||"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M0 5.6V14.5227C0 15.083 0.668977 15.3728 1.07772 14.9896L4.13843 12.1202C4.22082 12.043 4.32952 12 4.44245 12H10C13.3137 12 16 9.31371 16 6C16 2.68629 13.3137 0 10 0H5.6C2.50721 0 0 2.50721 0 5.6Z",fill:"white"}),(0,n.jsxs)("g",Object.assign({"clip-path":"url(#clip0_13894_56259)"},{children:[(0,n.jsx)("path",{d:"M4.48022 5.12109V7.04109",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.28","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M7.04028 2.56055V9.60055",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.28","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M9.60034 3.83984L9.60034 8.31984",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.28","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M12.1602 5.12109L12.1602 7.04109",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.28","stroke-linecap":"round","stroke-linejoin":"round"})]})),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",Object.assign({id:"clip0_13894_56259"},{children:(0,n.jsx)("rect",{width:"14.08",height:"14.08",fill:"white",transform:"translate(0.960449)"})}))})]})),loe=e=>{const{btnText:t,customStyle:r,onCreate:o}=e,a=(0,i.useContext)(zte);return(0,n.jsx)("div",{children:(0,n.jsxs)(doe,Object.assign({customStyle:r,theme:a,onClick:o},{children:[(0,n.jsx)(uoe,{color:a.btnColorPrimary}),(0,n.jsx)(foe,{children:t})]}))})},doe=o.Ay.button.withConfig({displayName:"SCWButton__CreateButton",componentId:"sc-npo33l-0"})(["padding:",";border-radius:",";border:",";font-size:",";background:",";color:",";display:flex;align-items:center;font-family:'Strawford';cursor:pointer;"],(e=>e.customStyle.padding),(e=>e.customStyle.borderRadius),(e=>e.customStyle.border),(e=>e.customStyle.fontSize),(e=>e.theme.btnColorPrimary),(e=>e.theme.titleTextColor)),foe=o.Ay.div.withConfig({displayName:"SCWButton__BtnText",componentId:"sc-npo33l-1"})(["margin-left:6px;"]);loe.defaultProps={btnText:"Create your Space",customStyle:{padding:"14px 20px",borderRadius:"12px",border:"0px solid transparent",fontSize:"1rem"}};const hoe=e=>{const{children:t}=e,[r,o]=(0,i.useState)(!1),[a,s]=(0,i.useState)(!1),[c,u]=(0,i.useState)(!1),[l,d]=(0,i.useState)([]),[f,h]=(0,i.useState)([]),[p,g]=(0,i.useState)([]),[m,y]=(0,i.useState)([]),[b,v]=(0,i.useState)(!1),[w,A]=(0,i.useState)({spaceName:"",spaceDescription:"",date:new Date,time:Date.now()}),{signer:C,env:E,account:x,pgpPrivateKey:S}=M9(),I=()=>{o(!r),s(!1),u(!1)},k=()=>{u(!c),s(!1),o(!1)},T=()=>{o(!1)},M=()=>{s(!1)},P=()=>{u(!1)};return(0,n.jsx)("div",{children:(0,n.jsxs)(poe,{children:[!t&&(0,n.jsx)(loe,{onCreate:I}),t&&(0,n.jsx)("div",Object.assign({onClick:I},{children:t})),r&&(0,n.jsx)(eoe,{isInviteVisible:k,closeCreateModal:T,nameValue:w.spaceName,descriptionValue:w.spaceDescription,handleNameChange:e=>{A((t=>Object.assign(Object.assign({},t),{spaceName:e.target.value})))},handleDescriptionChange:e=>{A((t=>Object.assign(Object.assign({},t),{spaceDescription:e.target.value})))},isDescriptionEnabled:!1,isScheduleVisible:()=>{s(!a),o(!1),u(!1)},onClose:T}),a&&(0,n.jsx)(soe,{closeScheduleModal:M,makeCreateVisible:I,makeInviteVisible:k,dateValue:w.date,timeValue:w.time,onDateChange:e=>{A((t=>Object.assign(Object.assign({},t),{date:e})))},onTimeChange:e=>{A((t=>Object.assign(Object.assign({},t),{time:e})))},onClose:M}),c&&(0,n.jsx)(aie,{closeInviteModal:P,makeScheduleVisible:I,createSpace:()=>pJ(void 0,void 0,void 0,(function*(){const e=Object.assign({spaceName:0===w.spaceName.length?`${x}'s Space`:w.spaceName,spaceDescription:"Push Space",listeners:f,spaceImage:"asd",speakers:m,isPublic:!0,scheduleAt:w.time>Date.now()?new Date(w.time):new Date(Date.now()+12e4),signer:C,env:E},S&&""!==S&&{pgpPrivateKey:S});try{v(!0);const t=yield _.space.create(e);console.log(t)}catch($R){console.error($R.message)}finally{v(!1),P(),o(!1),s(!1),u(!1),d([]),h([]),g([]),y([]),v(!1),A({spaceName:"",spaceDescription:"",date:new Date,time:Date.now()})}})),isLoading:b,invitedMembersList:l,setInvitedMembersList:d,invitedAddressList:f,setInvitedAddressList:h,adminsList:p,setAdminsList:g,adminsAddressList:m,setAdminsAddressList:y,onClose:P})]})})},poe=o.Ay.div.withConfig({displayName:"SpaceCreationWidget__SCWContainer",componentId:"sc-rt5fqp-0"})(["font-family:'Strawford';"]);class goe{constructor(e){this.SpaceBanner=e=>(M9(),(0,n.jsx)(bre,Object.assign({},e))),this.SpaceWidget=e=>{const{spaceId:t}=e,{spaceWidgetId:r}=M9(),[o,a]=(0,i.useState)(t);return(0,i.useEffect)((()=>{a(t)}),[t,a]),(0,i.useEffect)((()=>{r&&a(r)}),[r]),(0,n.jsx)(Sie,Object.assign({},e,{spaceId:o}))},this.SpaceFeed=e=>(0,n.jsx)(Mie,Object.assign({},e)),this.SpaceInvites=e=>(0,n.jsx)(Kie,Object.assign({},e)),this.SpaceCreationButtonWidget=e=>(0,n.jsx)(hoe,Object.assign({},e)),this.connectToSockets=()=>{M9()},this.init=()=>{this.connectToSockets()},this.account=e.account,this.signer=e.signer,this.pgpPrivateKey=e.pgpPrivateKey,this.env=e.env,this.customSearch=e.customSearch}}const moe=()=>(0,n.jsx)("svg",Object.assign({width:"29",height:"28",viewBox:"0 0 29 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M0.625 10.3438V26.3168C0.625 27.1922 1.67028 27.6451 2.30894 27.0463L7.89958 21.8051C8.0444 21.6693 8.23548 21.5938 8.434 21.5938H18.2031C24.028 21.5938 28.75 16.8718 28.75 11.0469C28.75 5.222 24.028 0.5 18.2031 0.5H10.4688C5.0322 0.5 0.625 4.9072 0.625 10.3438Z",fill:"white"})})),yoe=({fill:e})=>(0,n.jsx)("svg",Object.assign({width:"28",height:"28",viewBox:"0 0 28 28",fill:null!=e?e:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{fill:"current",d:"M27.4625 3.24124L20.9125 26.4787C20.8033 26.8722 20.5755 27.2225 20.2602 27.4819C19.9448 27.7414 19.5572 27.8974 19.15 27.9287H18.975C18.5983 27.9279 18.2295 27.8207 17.9111 27.6194C17.5926 27.4182 17.3375 27.1311 17.175 26.7912L12.7125 17.3662C12.6687 17.2716 12.6548 17.1659 12.6727 17.0631C12.6906 16.9604 12.7394 16.8655 12.8125 16.7912L19.225 10.3787C19.3254 10.2878 19.4063 10.1774 19.4627 10.0542C19.5191 9.93107 19.55 9.79773 19.5533 9.6623C19.5566 9.52688 19.5324 9.39219 19.4821 9.26641C19.4318 9.14063 19.3565 9.02637 19.2607 8.93058C19.1649 8.8348 19.0507 8.75947 18.9249 8.70917C18.7991 8.65888 18.6644 8.63466 18.529 8.638C18.3936 8.64133 18.2602 8.67214 18.1371 8.72857C18.0139 8.785 17.9035 8.86585 17.8125 8.96624L11.4 15.3912C11.3258 15.4644 11.2309 15.5132 11.1282 15.5311C11.0254 15.549 10.9197 15.5351 10.825 15.4912L1.45004 11.0537C1.08311 10.8804 0.775053 10.6033 0.563988 10.2567C0.352924 9.91016 0.248118 9.50928 0.262542 9.10374C0.284668 8.68619 0.437922 8.28625 0.700498 7.96083C0.963074 7.63542 1.32159 7.40111 1.72504 7.29124L25.0125 0.728741C25.4198 0.612421 25.8536 0.628425 26.2512 0.774446C26.6488 0.920467 26.9898 1.18896 27.225 1.54124C27.3829 1.79158 27.4857 2.07261 27.5266 2.3657C27.5676 2.65879 27.5457 2.95723 27.4625 3.24124Z"})})),boe=()=>{(0,i.useState)(!1),(0,i.useRef)(null);const[e,t]=(0,i.useState)(!1),[r,o]=(0,i.useState)(!1),{account:a,env:s,supportAddress:c,apiKey:u,theme:l,user:d}=(0,i.useContext)(g5),{messageBeingSent:f,message:h,setMessage:p,setToastMessage:g,socketData:m,setToastType:y,connectedUser:b,chats:v,setChatsSorted:w}=(0,i.useContext)(m5),A=e=>pJ(void 0,void 0,void 0,(function*(){if(e.preventDefault(),o(!0),""!==h.trim()&&b){const e=yield d.chat.send(c,{type:"Text",content:h});e||(g(e),y("error"),o(!1)),"string"!=typeof e?(p(""),o(!1)):(g(e),y("error"),o(!1))}}));return(0,n.jsx)(voe,Object.assign({theme:l},{children:f?(0,n.jsx)(Aoe,{children:"Loading..."}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(woe,{placeholder:"Type your message...",onKeyDown:e=>{13===e.keyCode&&A(e)},onChange:e=>{f||p(e.target.value)},value:h}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("label",{}),e||r?(0,n.jsx)(Z7,{size:"35"}):(0,n.jsx)("div",Object.assign({onClick:A},{children:(0,n.jsx)(yoe,{fill:l.btnColorPrimary})}))]})]})}))},voe=o.Ay.div.withConfig({displayName:"ChatInput__Container",componentId:"sc-1ksvjax-3"})(["padding:8px 10px 8px 8px;display:flex;align-items:center;justify-content:space-between;background:",";border:",";margin:10px 0;border-radius:16px;"],(e=>e.theme.bgColorPrimary||"#fff"),(e=>e.theme.border)),woe=o.Ay.textarea.withConfig({displayName:"ChatInput__TextInput",componentId:"sc-1ksvjax-5"})(["font-family:'Strawford';font-size:16px;width:100%;height:25px;outline:none;padding-top:4px;border:none;resize:none;background:transparent;color:black;&&::-webkit-scrollbar{width:0;height:0;}::placeholder{color:#494d5f;}"]),Aoe=o.Ay.div.withConfig({displayName:"ChatInput__ItemHV2",componentId:"sc-1ksvjax-8"})(["position:absolute;top:0;right:10px;bottom:0;justifycontent:flex-end;background:transparent;"]),Coe=()=>(0,n.jsx)("svg",Object.assign({width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M6 14L0 8L1.4 6.6L6 11.175L10.6 6.6L12 8L6 14ZM6 8L0 2L1.4 0.6L6 5.175L10.6 0.6L12 2L6 8Z",fill:"#62626A"})})),Eoe=()=>{const{modalTitle:e,theme:t}=(0,i.useContext)(g5),{isModalOpen:r,setIsModalOpen:o}=(0,i.useContext)(m5);return(0,n.jsxs)(xoe,Object.assign({theme:t},{children:[(0,n.jsx)(koe,Object.assign({theme:t},{children:e})),(0,n.jsx)(Soe,Object.assign({onClick:()=>A8({isModalOpen:r,setIsModalOpen:o})},{children:(0,n.jsx)(Ioe,{children:(0,n.jsx)(Coe,{})})}))]}))},xoe=o.Ay.div.withConfig({displayName:"ModalHeader__Container",componentId:"sc-yjqrej-0"})(["display:flex;border-bottom:",";align-items:center;justify-content:space-between;padding:17px;"],(e=>e.theme.border)),Soe=o.Ay.div.withConfig({displayName:"ModalHeader__Section",componentId:"sc-yjqrej-1"})(["padding:10px 5px;cursor:pointer;"]),Ioe=o.Ay.div.withConfig({displayName:"ModalHeader__Div",componentId:"sc-yjqrej-2"})(["display:flex;max-height:initial;vertical-align:middle;overflow:initial;cursor:pointer;justify-content:flex-end;"]),koe=o.Ay.span.withConfig({displayName:"ModalHeader__Span",componentId:"sc-yjqrej-3"})(["font-weight:500;font-size:20px;line-height:28px;display:flex;align-items:center;text-align:center;color:",";margin-left:27%;flex:none;order:0;flex-grow:0;"],(e=>e.theme.textColorPrimary||"#000")),_oe=({stroke:e,fill:t})=>(0,n.jsxs)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:null!=t?t:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer",stroke:e},{children:[(0,n.jsx)("path",{d:"M17.1865 13.7498V2.81226H6.24902",stroke:"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M14.0635 5.9375H3.12598V16.875H14.0635V5.9375Z",stroke:"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})),Toe=()=>{var e,t;const{supportAddress:r,env:o,theme:a,user:s}=(0,i.useContext)(g5),[c,u]=(0,i.useState)(""),[l,d]=(0,i.useState)({}),[f,h]=(0,i.useState)(!1),p=l8(r),g=(null===(e=L4[o])||void 0===e?void 0:e.includes(1))?1:5;return new I.p(g,O4),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(s){const e=yield s.info(),t=yield d8(r,null==s?void 0:s.env);u(t),d(e)}}))}),[r,s]),(0,n.jsxs)(Moe,Object.assign({theme:a},{children:[(0,n.jsxs)(Poe,{children:[(0,n.jsx)(joe,{children:(0,n.jsx)(Doe,{src:(null===(t=null==l?void 0:l.profile)||void 0===t?void 0:t.picture)?null==l?void 0:l.profile.picture:M4.DEFAULT_PROFILE_PICTURE,alt:"address profile"})}),(0,n.jsxs)(Ooe,Object.assign({theme:a},{children:[c&&`${c}`,!c&&`${p.substring(0,8)}...${p.substring(p.length-8)}`]}))]}),!f&&(0,n.jsx)("div",Object.assign({onClick:()=>{C8(p),h(!0)}},{children:(0,n.jsx)(_oe,{stroke:null==a?void 0:a.btnColorSecondary})})),f&&(0,n.jsx)("div",Object.assign({onMouseLeave:()=>h(!1)},{children:(0,n.jsx)(_oe,{stroke:null==a?void 0:a.btnColorSecondary,fill:null==a?void 0:a.btnColorSecondary})}))]}))},Moe=o.Ay.div.withConfig({displayName:"AddressInfo__Container",componentId:"sc-f3zheg-0"})(["display:flex;align-items:center;justify-content:space-between;flex-direction:row;box-sizing:border-box;background:",";border:",";padding:5px 20px 5px 5px;margin:13px 0;border-radius:29px;"],(e=>e.theme.bgColorPrimary||"#fff"),(e=>e.theme.border)),Poe=o.Ay.div.withConfig({displayName:"AddressInfo__Section",componentId:"sc-f3zheg-1"})(["display:flex;"]),joe=o.Ay.span.withConfig({displayName:"AddressInfo__ImgSpan",componentId:"sc-f3zheg-2"})(["display:flex;max-height:initial;vertical-align:middle;overflow:hidden;height:48px;width:47.5px;border-radius:99px;"]),Doe=o.Ay.img.withConfig({displayName:"AddressInfo__Image",componentId:"sc-f3zheg-3"})(["width:100%;height:100%;"]),Ooe=o.Ay.span.withConfig({displayName:"AddressInfo__Span",componentId:"sc-f3zheg-4"})(["font-weight:500;font-size:17px;display:flex;flex-wrap:wrap;margin:0 10px;align-items:center;line-height:25px;letter-spacing:-0.019em;color:",";"],(e=>e.theme.textColorPrimary||"#000")),Boe=({color:e})=>(0,n.jsxs)("svg",Object.assign({width:"145",height:"18",viewBox:"0 0 145 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M1.592 12V10.056H2.728C3.808 10.056 4.616 9.216 4.616 8.2C4.616 7.2 3.768 6.4 2.728 6.4H0.752V12H1.592ZM1.592 7.16H2.592C3.248 7.16 3.728 7.608 3.728 8.2C3.728 8.816 3.248 9.28 2.592 9.28H1.592V7.16ZM9.69231 12.08C11.3243 12.08 12.6043 10.816 12.6043 9.2C12.6043 7.584 11.3243 6.32 9.69231 6.32C8.05231 6.32 6.78031 7.584 6.78031 9.2C6.78031 10.816 8.05231 12.08 9.69231 12.08ZM9.69231 11.264C8.52431 11.264 7.67631 10.352 7.67631 9.2C7.67631 8.048 8.52431 7.136 9.69231 7.136C10.8603 7.136 11.7163 8.048 11.7163 9.2C11.7163 10.352 10.8603 11.264 9.69231 11.264ZM17.1454 12.08L18.5854 7.816L20.0894 12.08H20.5614L22.3614 6.4H21.4654L20.2974 10.288L18.9614 6.4H18.2094L16.9374 10.288L15.7454 6.4H14.8494L16.6734 12.08H17.1454ZM28.2831 12V11.232H25.5871V9.488H28.0511V8.736H25.5871V7.168H28.2831V6.4H24.7551V12H28.2831ZM33.008 9.84H33.104C34.272 9.84 34.968 9.016 34.968 8.104C34.968 7.192 34.232 6.4 33.104 6.4H31.152V12H31.992V9.856L34.112 12H35.24L33.008 9.84ZM33.008 7.168C33.688 7.168 34.088 7.56 34.088 8.104C34.088 8.664 33.688 9.072 33.008 9.072H31.992V7.168H33.008ZM41.2566 12V11.232H38.5606V9.488H41.0246V8.736H38.5606V7.168H41.2566V6.4H37.7286V12H41.2566ZM46.1494 12C47.7174 12 48.9574 10.744 48.9574 9.192C48.9574 7.656 47.7174 6.4 46.1494 6.4H44.1254V12H46.1494ZM44.9654 7.176H46.0134C47.1654 7.176 48.0694 7.96 48.0694 9.192C48.0694 10.432 47.1654 11.224 46.0134 11.224H44.9654V7.176ZM57.5403 12C58.5163 12 59.2683 11.352 59.2683 10.384C59.2683 9.688 58.9003 9.248 58.5003 9.064C58.7323 8.92 59.0843 8.528 59.0843 7.944C59.0843 7.064 58.3723 6.4 57.4123 6.4H55.3723V12H57.5403ZM56.1963 7.144H57.3163C57.8363 7.144 58.2283 7.448 58.2283 7.96C58.2283 8.528 57.8363 8.8 57.3163 8.8H56.1963V7.144ZM56.1963 9.52H57.4523C58.0523 9.52 58.4123 9.896 58.4043 10.384C58.4043 10.872 58.0683 11.272 57.4523 11.272H56.1963V9.52ZM64.0884 12V9.96L66.1764 6.4H65.2004L63.6484 9.136L62.0964 6.4H61.1124L63.2324 9.976V12H64.0884Z",fill:"#494D5F"}),(0,n.jsx)("path",{d:"M94.388 13V10.084H96.092C97.712 10.084 98.924 8.824 98.924 7.3C98.924 5.8 97.652 4.6 96.092 4.6H93.128V13H94.388ZM94.388 5.74H95.888C96.872 5.74 97.592 6.412 97.592 7.3C97.592 8.224 96.872 8.92 95.888 8.92H94.388V5.74ZM102.098 13.132C103.718 13.132 104.51 12.004 104.51 10.636V7.552H103.37V10.66C103.37 11.5 102.878 12.04 102.098 12.04C101.306 12.04 100.826 11.5 100.826 10.66V7.552H99.6865V10.636C99.6865 12.004 100.466 13.132 102.098 13.132ZM107.386 13.132C108.766 13.132 109.474 12.328 109.474 11.416C109.474 10.6 109.006 9.94 107.602 9.688C107.038 9.592 106.678 9.412 106.678 8.992C106.678 8.668 106.954 8.404 107.446 8.404C107.842 8.404 108.226 8.632 108.346 9.04L109.294 8.608C109.042 7.912 108.394 7.42 107.434 7.42C106.246 7.42 105.538 8.164 105.538 9.004C105.538 10.144 106.45 10.552 107.374 10.72C107.962 10.84 108.322 11.032 108.322 11.44C108.322 11.836 107.986 12.076 107.398 12.076C106.942 12.076 106.534 11.812 106.354 11.392L105.358 11.848C105.658 12.544 106.294 13.132 107.386 13.132ZM111.636 13V9.928C111.636 9.064 112.2 8.488 112.956 8.488C113.724 8.488 114.204 9.028 114.204 9.808V13H115.344V9.568C115.344 8.356 114.468 7.42 113.184 7.42C112.416 7.42 111.888 7.768 111.636 8.08V4.6H110.496V13H111.636ZM123.704 13.12C125.288 13.12 126.62 12.352 127.352 11.164L126.272 10.516C125.768 11.332 124.844 11.896 123.704 11.896C122 11.896 120.692 10.54 120.692 8.8C120.692 7.06 122 5.704 123.704 5.704C124.844 5.704 125.768 6.256 126.272 7.084L127.352 6.424C126.608 5.248 125.324 4.48 123.704 4.48C121.268 4.48 119.36 6.376 119.36 8.8C119.36 11.224 121.268 13.12 123.704 13.12ZM129.666 13V9.928C129.666 9.064 130.23 8.488 130.986 8.488C131.754 8.488 132.234 9.028 132.234 9.808V13H133.374V9.568C133.374 8.356 132.498 7.42 131.214 7.42C130.446 7.42 129.918 7.768 129.666 8.08V4.6H128.526V13H129.666ZM136.625 13.132C137.477 13.132 138.053 12.712 138.257 12.4V13H139.313V9.556C139.313 8.452 138.473 7.42 136.937 7.42C135.797 7.42 135.053 8.032 134.705 8.812L135.557 9.364C135.773 8.848 136.205 8.452 136.937 8.452C137.765 8.452 138.161 8.92 138.161 9.28C138.161 9.58 137.945 9.784 137.597 9.784H136.349C135.293 9.784 134.525 10.396 134.525 11.356C134.525 12.34 135.341 13.132 136.625 13.132ZM136.721 12.148C136.073 12.148 135.713 11.8 135.713 11.368C135.713 10.972 136.025 10.672 136.481 10.672H138.185V10.744C138.185 11.56 137.633 12.148 136.721 12.148ZM143.918 13.072V12.016H143.27C142.754 12.016 142.274 11.752 142.274 11.02V8.548H143.918V7.552H142.274V6.232H141.434V6.256C141.434 7.228 140.846 7.72 140.21 7.72H140.174V8.548H141.134V11.128C141.134 12.436 141.926 13.072 143.126 13.072H143.918Z",fill:null!=e?e:"black"}),(0,n.jsx)("path",{d:"M81.4773 16.2944C81.9092 16.2941 82.3317 16.1728 82.6935 15.9452C83.0553 15.7176 83.3408 15.3935 83.5151 15.0123C83.5353 14.97 83.544 14.9234 83.5404 14.877C83.5368 14.8306 83.5211 14.7858 83.4947 14.7469C83.4683 14.7079 83.432 14.6761 83.3894 14.6543C83.3467 14.6326 83.299 14.6216 83.2508 14.6225H79.7038C79.6556 14.6217 79.608 14.6328 79.5654 14.6546C79.5229 14.6764 79.4867 14.7082 79.4604 14.7472C79.4341 14.7861 79.4184 14.8308 79.4148 14.8772C79.4113 14.9236 79.42 14.97 79.4401 15.0123C79.6145 15.3934 79.8998 15.7174 80.2614 15.945C80.6231 16.1726 81.0455 16.294 81.4773 16.2944V16.2944Z",fill:"url(#paint0_linear_3808_9309)"}),(0,n.jsx)("path",{d:"M86.9221 12.5533C86.6451 12.5533 86.3794 12.4471 86.1835 12.2581C85.9876 12.0691 85.8775 11.8128 85.8775 11.5455V7.88416C85.8773 6.94002 85.5509 6.02288 84.95 5.27774C84.349 4.53261 83.5077 4.00199 82.5592 3.76978C82.5244 3.5131 82.3938 3.27746 82.1919 3.10698C81.99 2.9365 81.7306 2.84287 81.4623 2.84363C81.194 2.84439 80.9351 2.93948 80.7342 3.1111C80.5334 3.28272 80.4042 3.51909 80.371 3.77596C79.525 3.9893 78.7641 4.44078 78.185 5.07287C77.606 5.70497 77.2351 6.48907 77.1196 7.32526C77.1196 7.35069 77.1125 7.37544 77.1097 7.40088C77.1068 7.42631 77.1018 7.46962 77.099 7.504C77.0961 7.53837 77.0933 7.57274 77.0904 7.60643C77.0876 7.64011 77.0869 7.66348 77.0854 7.69236C77.0854 7.75079 77.0812 7.80854 77.0805 7.86766V11.5448C77.0805 11.8108 76.9715 12.066 76.7773 12.2548C76.5831 12.4436 76.3194 12.5506 76.0437 12.5526C75.9789 12.5519 75.9147 12.5635 75.8546 12.5867C75.7945 12.61 75.7397 12.6444 75.6934 12.6881C75.647 12.7317 75.6101 12.7838 75.5846 12.8412C75.5592 12.8986 75.5457 12.9604 75.5449 13.0228V13.027C75.5449 13.1528 75.5967 13.2734 75.6889 13.3624C75.7811 13.4513 75.9062 13.5013 76.0366 13.5013H86.9221C87.0492 13.4966 87.1694 13.4446 87.2576 13.3563C87.3458 13.2679 87.395 13.15 87.395 13.0273C87.395 12.9046 87.3458 12.7867 87.2576 12.6983C87.1694 12.61 87.0492 12.558 86.9221 12.5533V12.5533Z",fill:"url(#paint1_linear_3808_9309)"}),(0,n.jsx)("path",{d:"M84.6296 3.05068C85.2306 3.17935 85.7742 3.48793 86.1826 3.93237C86.5911 4.37681 86.8436 4.93438 86.904 5.52549C86.9069 5.55738 86.9163 5.58841 86.9316 5.61677C86.947 5.64514 86.9681 5.67028 86.9936 5.69074C87.0191 5.7112 87.0486 5.72657 87.0803 5.73597C87.112 5.74536 87.1453 5.7486 87.1784 5.74548C87.2449 5.73934 87.3063 5.70824 87.3494 5.65886C87.3706 5.63427 87.3865 5.60588 87.3963 5.57532C87.4061 5.54477 87.4095 5.51265 87.4064 5.48081C87.3405 4.78434 87.0458 4.12637 86.5653 3.60271C86.0848 3.07906 85.4436 2.71707 84.735 2.56946C84.7177 2.56597 84.7 2.56413 84.6823 2.56396C84.6201 2.56411 84.5602 2.58642 84.514 2.62661C84.4678 2.66681 84.4386 2.72205 84.4321 2.78174C84.4255 2.84142 84.4421 2.90133 84.4785 2.94995C84.515 2.99858 84.5688 3.03249 84.6296 3.04518V3.05068Z",fill:"url(#paint2_linear_3808_9309)"}),(0,n.jsx)("path",{d:"M84.9128 1.48117C85.8483 1.68062 86.6944 2.16038 87.3302 2.85182C87.9661 3.54327 88.3589 4.41099 88.4527 5.33088C88.4557 5.36273 88.4651 5.39371 88.4805 5.42203C88.4959 5.45035 88.517 5.47546 88.5425 5.4959C88.568 5.51635 88.5974 5.53172 88.6291 5.54116C88.6607 5.55059 88.694 5.55389 88.727 5.55086C88.7936 5.54473 88.855 5.51362 88.898 5.46424C88.9192 5.43965 88.9352 5.41126 88.945 5.38071C88.9547 5.35015 88.9582 5.31803 88.955 5.28619C88.855 4.26214 88.4196 3.29542 87.7119 2.52612C87.0042 1.75683 86.061 1.22493 85.019 1.00751C85.0016 1.00402 84.9839 1.00218 84.9662 1.00201C84.904 1.00199 84.8439 1.02418 84.7976 1.06432C84.7512 1.10446 84.7219 1.15971 84.7153 1.21945C84.7087 1.27918 84.7252 1.33916 84.7616 1.38786C84.7981 1.43656 84.8519 1.47053 84.9128 1.48323V1.48117Z",fill:"url(#paint3_linear_3808_9309)"}),(0,n.jsx)("path",{d:"M78.3258 3.05061C78.3866 3.03792 78.4404 3.00401 78.4768 2.95539C78.5133 2.90676 78.5298 2.84685 78.5233 2.78717C78.5167 2.72749 78.4876 2.67224 78.4414 2.63205C78.3952 2.59185 78.3352 2.56954 78.273 2.5694C78.2553 2.56957 78.2376 2.57141 78.2203 2.5749C77.5129 2.72209 76.8726 3.08297 76.3922 3.60513C75.9118 4.12729 75.6165 4.78356 75.549 5.47868C75.5458 5.51052 75.5493 5.54264 75.5591 5.57319C75.5688 5.60375 75.5848 5.63214 75.606 5.65673C75.627 5.68147 75.653 5.70188 75.6824 5.71676C75.7118 5.73164 75.7439 5.74068 75.777 5.74335C75.81 5.74647 75.8433 5.74323 75.8751 5.73384C75.9068 5.72444 75.9362 5.70907 75.9618 5.68861C75.9873 5.66815 76.0083 5.64301 76.0237 5.61464C76.0391 5.58628 76.0485 5.55525 76.0513 5.52336C76.1122 4.93262 76.3649 4.37551 76.7733 3.93148C77.1817 3.48745 77.725 3.17917 78.3258 3.05061V3.05061Z",fill:"url(#paint4_linear_3808_9309)"}),(0,n.jsx)("path",{d:"M78.0427 1.48121C78.1035 1.46853 78.1573 1.43461 78.1937 1.38599C78.2302 1.33736 78.2467 1.27745 78.2402 1.21777C78.2337 1.15809 78.2045 1.10284 78.1583 1.06265C78.1121 1.02245 78.0521 1.00014 77.9899 1C77.9722 1.00013 77.9546 1.00197 77.9372 1.0055C76.8952 1.22292 75.9519 1.75482 75.2443 2.52411C74.5366 3.2934 74.1011 4.26013 74.0011 5.28418C73.998 5.31601 74.0014 5.34813 74.0112 5.37869C74.021 5.40925 74.0369 5.43764 74.0581 5.46223C74.0792 5.48697 74.1052 5.50738 74.1345 5.52226C74.1639 5.53714 74.1961 5.54618 74.2291 5.54884C74.2621 5.55187 74.2954 5.54857 74.3271 5.53914C74.3588 5.52971 74.3882 5.51433 74.4137 5.49389C74.4392 5.47344 74.4603 5.44834 74.4757 5.42002C74.4911 5.3917 74.5005 5.36072 74.5035 5.32886C74.5977 4.40947 74.9907 3.54234 75.6263 2.85133C76.262 2.16031 77.1077 1.68078 78.0427 1.48121V1.48121Z",fill:"url(#paint5_linear_3808_9309)"}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",Object.assign({id:"paint0_linear_3808_9309",x1:"83.8614",y1:"11.0044",x2:"81.1098",y2:"15.8527",gradientUnits:"userSpaceOnUse"},{children:[(0,n.jsx)("stop",{"stop-color":"#FF94A6"}),(0,n.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,n.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]})),(0,n.jsxs)("linearGradient",Object.assign({id:"paint1_linear_3808_9309",x1:"85.2526",y1:"5.7345",x2:"79.4177",y2:"14.3293",gradientUnits:"userSpaceOnUse"},{children:[(0,n.jsx)("stop",{"stop-color":"#FF94A6"}),(0,n.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,n.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]})),(0,n.jsxs)("linearGradient",Object.assign({id:"paint2_linear_3808_9309",x1:"90.186",y1:"1.42074",x2:"75.6444",y2:"11.4259",gradientUnits:"userSpaceOnUse"},{children:[(0,n.jsx)("stop",{"stop-color":"#FF94A6"}),(0,n.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,n.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]})),(0,n.jsxs)("linearGradient",Object.assign({id:"paint3_linear_3808_9309",x1:"90.0467",y1:"1.21856",x2:"75.5051",y2:"11.223",gradientUnits:"userSpaceOnUse"},{children:[(0,n.jsx)("stop",{"stop-color":"#FF94A6"}),(0,n.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,n.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]})),(0,n.jsxs)("linearGradient",Object.assign({id:"paint4_linear_3808_9309",x1:"87.4086",y1:"-2.61534",x2:"72.8677",y2:"7.38912",gradientUnits:"userSpaceOnUse"},{children:[(0,n.jsx)("stop",{"stop-color":"#FF94A6"}),(0,n.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,n.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]})),(0,n.jsxs)("linearGradient",Object.assign({id:"paint5_linear_3808_9309",x1:"86.678",y1:"-3.67671",x2:"72.1427",y2:"6.32344",gradientUnits:"userSpaceOnUse"},{children:[(0,n.jsx)("stop",{"stop-color":"#FF94A6"}),(0,n.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,n.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]}))]})]})),Noe=({fill:e})=>(0,n.jsx)("svg",Object.assign({width:"25",height:"25",viewBox:"0 0 25 25",fill:null!=e?e:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{fill:"current",d:"M21.5035 10.1562L19.5504 6.76758C19.318 6.37006 18.9893 6.03742 18.5945 5.8003C18.1998 5.56318 17.7517 5.42921 17.2916 5.41073C16.8315 5.39225 16.3742 5.48985 15.9617 5.69454C15.5492 5.89923 15.1948 6.20444 14.9313 6.58203L13.2418 3.65234C12.8782 3.02407 12.2805 2.56547 11.5794 2.37695C10.8784 2.18843 10.1313 2.28535 9.50159 2.64648C9.10956 2.87792 8.77818 3.19925 8.53479 3.58398C8.21364 3.29612 7.82874 3.08861 7.41175 2.97852C7.06616 2.88129 6.7044 2.85539 6.34848 2.9024C5.99256 2.9494 5.64993 3.06833 5.34143 3.25195C5.02972 3.43014 4.75629 3.66818 4.53688 3.9524C4.31746 4.23661 4.15639 4.56139 4.06291 4.90806C3.96944 5.25473 3.94541 5.61646 3.9922 5.97246C4.03899 6.32845 4.15569 6.67168 4.33558 6.98242L4.66761 7.54883C4.26168 7.58348 3.8683 7.70682 3.51526 7.91016C2.89128 8.27535 2.43664 8.87204 2.25012 9.57056C2.0636 10.2691 2.16029 11.013 2.51917 11.6406L6.62073 18.75C7.17614 19.7442 7.92361 20.6181 8.8197 21.3209C9.71579 22.0237 10.7426 22.5413 11.8405 22.8438C12.9384 23.1463 14.0855 23.2275 15.2151 23.0828C16.3447 22.9381 17.4342 22.5704 18.4204 22.0009C19.4066 21.4314 20.2698 20.6716 20.9598 19.7657C21.6498 18.8597 22.1529 17.8256 22.4398 16.7235C22.7266 15.6214 22.7916 14.4733 22.6309 13.3459C22.4701 12.2185 22.0869 11.1343 21.5035 10.1562ZM20.8492 16.2695C20.6146 17.1624 20.2044 17.9997 19.6427 18.7324C19.0811 19.4651 18.3791 20.0786 17.5778 20.5371C15.9624 21.4687 14.0435 21.7215 12.242 21.24C10.4405 20.7585 8.90353 19.5821 7.96839 17.9688L3.86683 10.8594C3.71143 10.59 3.66939 10.27 3.74998 9.9696C3.83056 9.66925 4.02715 9.41321 4.29651 9.25781C4.56587 9.10241 4.88593 9.06038 5.18629 9.14096C5.48664 9.22154 5.74268 9.41814 5.89808 9.6875L8.04651 13.4082C8.09781 13.4973 8.16616 13.5755 8.24766 13.6382C8.32916 13.7009 8.42222 13.747 8.52152 13.7737C8.62081 13.8005 8.72441 13.8074 8.82638 13.7941C8.92836 13.7808 9.02672 13.7476 9.11585 13.6963C9.20498 13.645 9.28313 13.5766 9.34585 13.4951C9.40856 13.4136 9.45461 13.3206 9.48136 13.2213C9.50811 13.122 9.51504 13.0184 9.50176 12.9164C9.48847 12.8144 9.45523 12.7161 9.40393 12.627L7.2555 8.90625L5.693 6.20117C5.53771 5.93218 5.49556 5.61255 5.57581 5.3125C5.61458 5.16311 5.68296 5.02302 5.7769 4.90056C5.87085 4.7781 5.98843 4.67576 6.12268 4.59961C6.39167 4.44432 6.71131 4.40217 7.01136 4.48242C7.30987 4.56745 7.56479 4.763 7.72425 5.0293L8.49573 6.38672H8.5055L11.0446 10.7812C11.1105 10.9017 11.2082 11.0017 11.327 11.0706C11.4457 11.1395 11.5811 11.1745 11.7184 11.1719C11.8562 11.1746 11.9919 11.1373 12.109 11.0645C12.2872 10.9604 12.4171 10.7901 12.4701 10.5906C12.5232 10.3912 12.4952 10.1789 12.3922 10L9.85315 5.60547C9.69775 5.33611 9.65572 5.01605 9.7363 4.7157C9.81688 4.41535 10.0135 4.15931 10.2828 4.00391C10.5522 3.84851 10.8723 3.80647 11.1726 3.88706C11.473 3.96764 11.729 4.16423 11.8844 4.43359L14.8141 9.50195L15.4293 10.5762C14.5783 11.2844 14.0048 12.2705 13.81 13.3604C13.6153 14.4504 13.8118 15.5741 14.3649 16.5332C14.4765 16.6951 14.645 16.809 14.8369 16.8521C15.0288 16.8952 15.2298 16.8643 15.3999 16.7657C15.5701 16.6671 15.6967 16.5079 15.7547 16.32C15.8126 16.1321 15.7976 15.9293 15.7125 15.752C15.2984 15.0345 15.1862 14.1819 15.4004 13.3816C15.6147 12.5814 16.1379 11.899 16.8551 11.4844C16.9454 11.4329 17.0246 11.3641 17.0883 11.282C17.1519 11.1999 17.1988 11.1061 17.2262 11.0059C17.2739 10.8076 17.246 10.5987 17.1481 10.4199L16.1715 8.7207C16.0584 8.52014 16.007 8.2907 16.0235 8.06105C16.04 7.8314 16.1238 7.61171 16.2645 7.42941C16.4051 7.2471 16.5963 7.11027 16.8143 7.03598C17.0322 6.9617 17.2672 6.95326 17.4899 7.01172C17.6367 7.05051 17.7744 7.11792 17.895 7.2101C18.0157 7.30228 18.117 7.41739 18.193 7.54883L20.1461 10.9375C20.613 11.7344 20.9158 12.6167 21.0366 13.5325C21.1573 14.4482 21.0936 15.3788 20.8492 16.2695ZM8.56409 23.8867C8.49035 23.9889 8.39355 24.0722 8.28155 24.1299C8.16956 24.1875 8.04554 24.218 7.91956 24.2188C7.75987 24.2168 7.60404 24.1694 7.47034 24.082C6.04995 23.1006 4.86846 21.8123 4.01331 20.3125C3.95217 20.2238 3.91003 20.1234 3.88955 20.0176C3.86907 19.9119 3.87068 19.803 3.8943 19.6979C3.91791 19.5928 3.96301 19.4937 4.02675 19.4068C4.0905 19.32 4.17153 19.2473 4.26473 19.1932C4.35794 19.1392 4.46131 19.105 4.56836 19.0929C4.6754 19.0807 4.78381 19.0908 4.88676 19.1225C4.98971 19.1543 5.08498 19.207 5.16659 19.2773C5.2482 19.3477 5.31437 19.4341 5.36097 19.5312C6.10722 20.8296 7.13502 21.9442 8.36878 22.793C8.53855 22.913 8.65424 23.0951 8.69079 23.2998C8.72734 23.5045 8.68182 23.7153 8.56409 23.8867ZM16.4059 3.02734C16.4059 2.82014 16.4882 2.62143 16.6347 2.47492C16.7812 2.3284 16.9799 2.24609 17.1871 2.24609C18.2159 2.24741 19.2263 2.51867 20.1174 3.03277C21.0086 3.54688 21.7492 4.28582 22.2653 5.17578C22.3172 5.2646 22.3508 5.3629 22.3641 5.4649C22.3775 5.5669 22.3703 5.67053 22.343 5.76971C22.3157 5.86889 22.2688 5.96161 22.2052 6.04242C22.1415 6.12322 22.0623 6.19048 21.9723 6.24023C21.8557 6.31413 21.7197 6.35154 21.5817 6.34766C21.445 6.34717 21.3108 6.31085 21.1926 6.2423C21.0744 6.17376 20.9762 6.07539 20.9078 5.95703C20.5308 5.3039 19.9884 4.76152 19.3353 4.38439C18.6822 4.00727 17.9413 3.80868 17.1871 3.80859C16.9799 3.80859 16.7812 3.72628 16.6347 3.57977C16.4882 3.43326 16.4059 3.23454 16.4059 3.02734Z"})})),Roe=({msg:e,caip10:t,messageBeingSent:r})=>{var o,a,s;const{theme:c}=(0,i.useContext)(g5);(0,i.useContext)(m5),(0,i.useState)(!1),(0,i.useState)("");const u=(e=>{let t,r;r="string"==typeof e?parseInt(e):e;const n=new Date(r);if(!isNaN(n.getTime())){const e=n.toLocaleTimeString("en-US");t=e.slice(0,-6)+e.slice(-2)}return t})(e.timestamp);return(0,n.jsx)(Loe,{children:(0,n.jsx)(n.Fragment,{children:"Text"===e.messageType||(null===(o=e.message)||void 0===o?void 0:o.type)?(0,n.jsx)(n.Fragment,{children:e.fromCAIP10===t||e.from===t?(0,n.jsx)(zoe,Object.assign({align:"row-reverse"},{children:(0,n.jsxs)(Voe,Object.assign({theme:c},{children:[(0,n.jsx)(Foe,{children:e.messageContent||(null===(a=e.message)||void 0===a?void 0:a.content)}),void 0!==e.timestamp&&(0,n.jsx)(Uoe,{children:u})]}))})):(0,n.jsx)(zoe,Object.assign({align:"row"},{children:(0,n.jsxs)(Hoe,Object.assign({theme:c},{children:[(null==e?void 0:e.icon)&&e.icon,(0,n.jsx)(Foe,{children:(null===(s=e.message)||void 0===s?void 0:s.content)||e.messageContent}),void 0!==e.timestamp&&(0,n.jsx)(Uoe,{children:u})]}))}))}):null})})},Loe=o.Ay.div.withConfig({displayName:"Chats__Container",componentId:"sc-bx8urd-0"})(["display:flex;flex-direction:column;"]),Foe=o.Ay.p.withConfig({displayName:"Chats__TextMessage",componentId:"sc-bx8urd-3"})(["word-wrap:break-word;word-break:break-word;padding:0 45px 6px 4px;text-align:left;font-weight:400;font-size:15px;line-height:130%;margin:0px;"]),Uoe=o.Ay.span.withConfig({displayName:"Chats__TimeStamp",componentId:"sc-bx8urd-4"})(["min-width:44px;font-weight:400;font-size:13px;line-height:130%;display:flex;justify-content:flex-end;align-items:flex-end;position:absolute;right:10px;bottom:5px;"]),zoe=o.Ay.div.withConfig({displayName:"Chats__MessageWrapper",componentId:"sc-bx8urd-5"})(["width:100%;min-height:",";padding:0;margin-bottom:10px;display:flex;flex-direction:",";"],(e=>e.height||"48px"),(e=>e.align||"row")),Hoe=o.Ay.div.withConfig({displayName:"Chats__ReceivedMessage",componentId:"sc-bx8urd-6"})(["box-sizing:border-box;position:relative;max-width:250px;word-wrap:break-word;word-break:break-word;padding:",";background:",";text-align:left;border:",";border-radius:2px 16px 16px 16px;display:flex;justify-content:space-between;align-items:center;color:",";"],(e=>e.padding||"12px 15px 12px 11px"),(e=>e.theme.bgColorPrimary||"#ffffff"),(e=>e.theme.border),(e=>e.theme.textColorPrimary||"#000")),Voe=o.Ay.div.withConfig({displayName:"Chats__SenderMessage",componentId:"sc-bx8urd-7"})(["box-sizing:border-box;position:relative;max-width:250px;text-align:left;word-wrap:break-word;word-break:break-word;padding:",";background:",";border:",";border-radius:16px 2px 16px 16px;display:flex;justify-content:flex-strt;align-items:center;color:",";"],(e=>e.padding||"12px 15px 12px 11px"),(e=>e.theme.bgColorSecondary||"#ca599b"),(e=>e.theme.border),(e=>e.theme.textColorSecondary||"#ffffff")),Koe=()=>(0,n.jsx)("svg",Object.assign({width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M13 0C10.4288 0 7.91543 0.762437 5.77759 2.1909C3.63975 3.61935 1.97351 5.64968 0.989572 8.02512C0.0056327 10.4006 -0.251811 13.0144 0.249797 15.5362C0.751405 18.0579 1.98953 20.3743 3.80762 22.1924C5.6257 24.0105 7.94208 25.2486 10.4638 25.7502C12.9856 26.2518 15.5995 25.9944 17.9749 25.0104C20.3503 24.0265 22.3807 22.3603 23.8091 20.2224C25.2376 18.0846 26 15.5712 26 13C25.9934 9.55422 24.6216 6.25145 22.1851 3.81491C19.7486 1.37837 16.4458 0.00660747 13 0ZM12 7C12 6.73478 12.1054 6.48043 12.2929 6.29289C12.4804 6.10536 12.7348 6 13 6C13.2652 6 13.5196 6.10536 13.7071 6.29289C13.8946 6.48043 14 6.73478 14 7V14C14 14.2652 13.8946 14.5196 13.7071 14.7071C13.5196 14.8946 13.2652 15 13 15C12.7348 15 12.4804 14.8946 12.2929 14.7071C12.1054 14.5196 12 14.2652 12 14V7ZM13 20C12.7033 20 12.4133 19.912 12.1667 19.7472C11.92 19.5824 11.7277 19.3481 11.6142 19.074C11.5007 18.7999 11.471 18.4983 11.5288 18.2074C11.5867 17.9164 11.7296 17.6491 11.9393 17.4393C12.1491 17.2296 12.4164 17.0867 12.7074 17.0288C12.9983 16.9709 13.2999 17.0007 13.574 17.1142C13.8481 17.2277 14.0824 17.42 14.2472 17.6666C14.412 17.9133 14.5 18.2033 14.5 18.5C14.5 18.8978 14.342 19.2794 14.0607 19.5607C13.7794 19.842 13.3978 20 13 20Z",fill:"#E93636"})})),Goe=({message:e,type:t})=>{const{theme:r}=(0,i.useContext)(g5),{setToastMessage:o}=(0,i.useContext)(m5);(0,i.useEffect)((()=>{const e=setInterval((()=>{a()}),5e3);return()=>clearInterval(e)}),[]);const a=()=>{o("")};return(0,n.jsxs)(qoe,Object.assign({theme:r,type:t},{children:["error"===t&&(0,n.jsx)(Koe,{}),(0,n.jsx)(Qoe,{children:e}),(0,n.jsx)("div",Object.assign({onClick:()=>a()},{children:(0,n.jsx)(Bre,{})}))]}))},qoe=o.Ay.div.withConfig({displayName:"Toaster__Container",componentId:"sc-1vzs537-0"})(["display:flex;box-sizing:border-box;justify-content:space-between;"," box-shadow:0px 0px 10px rgba(0,0,0,0.1);border-radius:16px;padding:13px;margin-bottom:6px;"],(e=>"error"===e.type&&(0,o.AH)(["background:linear-gradient( 90.15deg,#ff2070 -125.65%,#ff2d79 -125.63%,#fff9fb 42.81% );"]))),Qoe=o.Ay.span.withConfig({displayName:"Toaster__Span",componentId:"sc-1vzs537-1"})(["font-family:'Strawford';font-style:normal;font-weight:400;font-size:15px;line-height:140%;display:flex;align-items:center;color:#657795;padding:0 20px 0 5px;"]),Woe=()=>{const[e,t]=(0,i.useState)(!1),[r,o]=(0,i.useState)(null),[a,s]=(0,i.useState)(!0),{supportAddress:c,user:u,env:l,account:d,signer:f,greetingMsg:h,theme:p}=(0,i.useContext)(g5),{chats:g,setChatsSorted:m,connectedUser:y,setConnectedUser:b,toastMessage:v,toastType:w,setToastMessage:A,setToastType:C,socketData:E}=(0,i.useContext)(m5),x=(e=>{const t=i.useRef(null);return i.useEffect((()=>{t.current&&(t.current.scrollTop=0)}),[e]),t})(0),S={fromDID:u8(c),toDID:u8(d),fromCAIP10:u8(c),toCAIP10:u8(d),messageContent:h,messageType:"Text",signature:"",encType:"",encryptedSecret:"",sigType:"",link:null,timestamp:void 0,icon:(0,n.jsx)(Noe,{fill:p.btnColorPrimary})},I=()=>{setTimeout((()=>{x.current&&(x.current.scrollTop=x.current.scrollHeight)}),0)},k=()=>pJ(void 0,void 0,void 0,(function*(){if(!y)return;if(!a&&!r)return;t(!0);const{chatsResponse:e,lastThreadHash:n,lastListPresent:i}=yield(e=>pJ(void 0,void 0,void 0,(function*(){var t;const{account:r,pgpPrivateKey:n,supportAddress:i,user:o,threadHash:a,limit:s=10,env:c=M4.ENV.PROD}=e||{},u=yield null==o?void 0:o.chat.history(i,{limit:s,reference:a});return{chatsResponse:u,lastThreadHash:null===(t=u[u.length-1])||void 0===t?void 0:t.link,lastListPresent:!(u.lengthpJ(void 0,void 0,void 0,(function*(){var e,r;t(!0);try{(null===(e=E.epnsSDKSocket)||void 0===e?void 0:e.connected)||null===(r=E.epnsSDKSocket)||void 0===r||r.connect();const n=yield(e=>pJ(void 0,void 0,void 0,(function*(){const{user:t}=e||{};let r;if(Object.keys(t||{}).length)return r=yield t.info(),Object.assign(Object.assign({},r),{privateKey:r.encryptedPrivateKey})})))({account:d,signer:f,env:l,user:u});b(n),t(!1)}catch(n){t(!1),A(null==n?void 0:n.message),C("error")}}));(0,i.useEffect)((()=>{if(E.messagesSinceLastConnection){const e=E.messagesSinceLastConnection,t=T();e&&(m([...g,e]),t&&I())}}),[E.messagesSinceLastConnection]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){yield k(),I()}))}),[y,l,d,f,c,u]);const T=()=>{if(!x.current)return!1;const{scrollTop:e,scrollHeight:t,clientHeight:r}=x.current;return e+r>=t};return(0,i.useEffect)((()=>{I()}),[y,l,d]),(0,n.jsxs)(Joe,Object.assign({theme:p},{children:[(0,n.jsxs)(Xoe,{children:[(0,n.jsx)(Eoe,{}),(0,n.jsx)(Toe,{})]}),!y&&(0,n.jsx)(Roe,{msg:S,caip10:u8(d),messageBeingSent:!0}),e&&(0,n.jsx)(Z7,{size:"40"}),(0,n.jsx)(Yoe,Object.assign({ref:x,onScroll:()=>pJ(void 0,void 0,void 0,(function*(){if(a&&x.current){const{scrollTop:e}=x.current;if(0===e){const e=x.current;e.scrollTop;const t=e.scrollHeight-e.clientHeight;yield k();const r=e.scrollHeight-e.clientHeight;e.scrollTop=r-t+20}}})),theme:p},{children:y&&g.length?g.map(((e,t)=>(0,n.jsx)(Roe,{msg:e,caip10:u8(d),messageBeingSent:!0},t))):(0,n.jsx)(n.Fragment,{})})),!y&&!e&&(0,n.jsxs)(Zoe,{children:[(0,n.jsx)($oe,Object.assign({onClick:()=>_(),theme:p},{children:"Connect"})),(0,n.jsx)(tae,{children:"Connect your wallet to continue"})]}),v&&(0,n.jsx)(Goe,{message:v,type:w}),(0,n.jsxs)(eae,{children:[y&&(0,n.jsx)(boe,{}),(0,n.jsx)(O7,Object.assign({height:"18px",width:"145px"},{children:(0,n.jsx)(Boe,{})}))]})]}))},Joe=o.Ay.div.withConfig({displayName:"Modal__Container",componentId:"sc-s2d07d-0"})(["display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box;background:",";border:",";box-shadow:0px 0px 5px rgba(0,0,0,0.07);border-radius:",";height:585px;max-height:585px;width:350px;max-width:350px;padding:0 15px 9px 15px;"],(e=>e.theme.moduleColor),(e=>e.theme.border),(e=>e.theme.borderRadius)),Yoe=o.Ay.div.withConfig({displayName:"Modal__ChatSection",componentId:"sc-s2d07d-1"})(["height:350px;overflow:auto;padding:0 5px;&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{border-radius:20px;margin:0 0 0 4px;}&::-webkit-scrollbar-thumb{background:",";border-radius:20px;}scroll-behavior:smooth;"],(e=>e.theme.bgColorSecondary)),Zoe=o.Ay.div.withConfig({displayName:"Modal__ConnectSection",componentId:"sc-s2d07d-2"})(["display:flex;flex-direction:column;margin-bottom:30%;"]),$oe=o.Ay.button.withConfig({displayName:"Modal__Button",componentId:"sc-s2d07d-3"})(["background:",";border-radius:15px;align-self:center;padding:11px 36px;border:none;font-weight:500;font-size:17px;line-height:150%;display:flex;align-items:center;text-align:center;letter-spacing:-0.019em;color:",";margin-bottom:10px;cursor:pointer;"],(e=>e.theme.btnColorPrimary),(e=>e.theme.textColorSecondary)),Xoe=o.Ay.div.withConfig({displayName:"Modal__HeaderSection",componentId:"sc-s2d07d-4"})([""]),eae=o.Ay.div.withConfig({displayName:"Modal__InputSection",componentId:"sc-s2d07d-5"})(["display:flex;flex-direction:column;"]),tae=o.Ay.span.withConfig({displayName:"Modal__Span",componentId:"sc-s2d07d-7"})(["font-weight:400;font-size:15px;line-height:140%;display:flex;text-align:center;justify-content:center;margin-bottom:30%;color:#657795;"]),rae=({account:e=null,signer:t=null,supportAddress:r,greetingMsg:o=M4.DEFAULT_GREETING_MSG,modalTitle:a=M4.DEFAULT_TITLE,theme:s=Object.assign({},$4),apiKey:c="",env:u=M4.ENV.PROD})=>{const[l,d]=(0,i.useState)(!1),[f,h]=(0,i.useState)(null),[p,g]=(0,i.useState)(!1),[m,y]=(0,i.useState)(""),[b,v]=(0,i.useState)(""),[w,A]=(0,i.useState)(),[C,E]=(0,i.useState)([]),[x,S]=(0,i.useState)(e),[I,k]=(0,i.useState)(null),[T,M]=(0,i.useState)(""),P=q9({account:x,env:u,user:I,supportAddress:T,signer:t}),j={account:x,signer:t,user:I,supportAddress:T,greetingMsg:o,modalTitle:a,theme:Object.assign(Object.assign({},$4),s),apiKey:c,env:u};(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(r.includes(".")){const e=yield L8(r,u);M(e)}else M(r)}))}),[r,I,u]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(t)if(e)S(e);else{const e=yield h8(t);S(e)}}))}),[t]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(Object.keys(t||{}).length&&x){const e=yield _.PushAPI.initialize(t,{env:u,account:x});k(e)}}))}),[t,x]),(0,i.useEffect)((()=>{E([]),h(null)}),[e,r]);const D={isModalOpen:l,socketData:P,setIsModalOpen:d,connectedUser:f,setConnectedUser:h,messageBeingSent:p,setMessageBeingSent:g,setToastMessage:v,setToastType:A,message:m,setMessage:y,chats:C,setChatsSorted:e=>{const t=e.map((e=>Object.assign(Object.assign({},e),{timestamp:"string"==typeof e.timestamp?parseInt(e.timestamp):e.timestamp}))),r=[...new Map(t.map((e=>[e.timestamp,e]))).values()];r.sort(((e,t)=>e.timestamp>t.timestamp?1:-1)),E(r)},toastMessage:b,toastType:w};return(0,n.jsx)(nae,{children:(0,n.jsx)(g5.Provider,Object.assign({value:j},{children:(0,n.jsxs)(m5.Provider,Object.assign({value:D},{children:[!l&&(0,n.jsx)(iae,Object.assign({bgColor:s.btnColorPrimary,onClick:()=>A8({isModalOpen:l,setIsModalOpen:d})},{children:(0,n.jsx)(O7,Object.assign({cursor:"pointer"},{children:(0,n.jsx)(moe,{})}))})),l&&(0,n.jsx)(Woe,{})]}))}))})},nae=o.Ay.div.withConfig({displayName:"Chat__Container",componentId:"sc-7lciwu-0"})(["font-family:'Strawford';flex:1;display:flex;position:fixed;bottom:0;right:0;width:fit-content;z-index:999999;margin:0 3rem 2rem 0;align-items:center;justify-content:center;"]),iae=o.Ay.button.withConfig({displayName:"Chat__Button",componentId:"sc-7lciwu-1"})(["background:",";border:none;cursor:pointer;border-radius:18px;padding:16.5px 16.5px 13px 18.5px;"],(e=>e.bgColor)),oae=()=>(0,n.jsx)("svg",Object.assign({width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M1.4 13.4L0 12L6 6L12 12L10.6 13.4L6 8.825L1.4 13.4ZM1.4 7.4L0 6L6 0L12 6L10.6 7.4L6 2.825L1.4 7.4Z",fill:"#62626A"})})),aae=({stroke:e,fill:t})=>(0,n.jsx)("svg",Object.assign({width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M0 17V2C0 1.45 0.195833 0.979167 0.5875 0.5875C0.979167 0.195833 1.45 0 2 0H14C14.55 0 15.0208 0.195833 15.4125 0.5875C15.8042 0.979167 16 1.45 16 2V7.075C15.8333 7.04167 15.6667 7.02083 15.5 7.0125C15.3333 7.00417 15.1667 7 15 7C14.8333 7 14.6667 7.00417 14.5 7.0125C14.3333 7.02083 14.1667 7.04167 14 7.075V2H2V12H9.075C9.04167 12.1667 9.02083 12.3333 9.0125 12.5C9.00417 12.6667 9 12.8333 9 13C9 13.1667 9.00417 13.3333 9.0125 13.5C9.02083 13.6667 9.04167 13.8333 9.075 14H3L0 17ZM4 6H12V4H4V6ZM4 10H9V8H4V10ZM14 17V14H11V12H14V9H16V12H19V14H16V17H14Z",fill:"#62626A"})})),sae=({messageContent:e,messageType:t})=>{const r=V9(425)?27:48;return"Text"===t?(0,n.jsx)(B7,Object.assign({textAlign:"left",fontWeight:"400",fontSize:"16px",color:"#62626A",cursor:"pointer"},{children:s9(e,r)})):"Image"===t?(0,n.jsxs)(B7,Object.assign({textAlign:"left",fontWeight:"400",fontSize:"16px",color:"#62626A",cursor:"pointer"},{children:[(0,n.jsx)("i",{className:"fa fa-picture-o","aria-hidden":"true"})," ","Image"]})):"File"===t?(0,n.jsxs)(B7,Object.assign({textAlign:"left",fontWeight:"400",fontSize:"16px",color:"#62626A",cursor:"pointer"},{children:[(0,n.jsx)("i",{className:"fa fa-file","aria-hidden":"true"})," ","File"]})):"GIF"===t||"MediaEmbed"===t?(0,n.jsxs)(B7,Object.assign({textAlign:"left",fontWeight:"400",fontSize:"16px",color:"#62626A",cursor:"pointer"},{children:[(0,n.jsx)("i",{className:"fa fa-picture-o","aria-hidden":"true"})," ","Media"]})):null},cae=({chat:e,id:t,modalOpen:r})=>{var o,a,s,c,u;const{setSelectedChatId:l}=(0,i.useContext)(y5),{env:d}=(0,i.useContext)(v5),f=Wee(null==e?void 0:e.did,d),h=V9(425),p=(null==e?void 0:e.name)?h?15:30:h?6:8,g=void 0===r||r;return(0,n.jsxs)(uae,Object.assign({justifyContent:"flex-start",padding:g?"15px 15px":" 0px ",onClick:()=>(l(t),void g8({chatId:t,value:e})),active:g,gap:"18px",cursor:"pointer"},{children:[(0,n.jsx)(R7,{src:e.profilePicture,alt:"profile picture",width:"36px",height:"36px",borderRadius:"100%",cursor:"pointer"}),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",flex:"2"},{children:[(0,n.jsxs)(D7,Object.assign({gap:g?"8px":" 2px ",justifyContent:"space-between",cursor:"pointer"},{children:[(0,n.jsx)(lae,Object.assign({fontWeight:"700",color:"#000",cursor:"pointer"},{children:(null==e?void 0:e.name)?s9(null==e?void 0:e.name,p,!1):null!=f?f:s9(null===(o=null==e?void 0:e.did)||void 0===o?void 0:o.split(":")[1],p,!0)})),g&&(0,n.jsx)(B7,Object.assign({fontWeight:"400",fontSize:"12px",color:"#62626A",cursor:"pointer"},{children:(null===(a=null==e?void 0:e.msg)||void 0===a?void 0:a.timestamp)?F8(null===(s=null==e?void 0:e.msg)||void 0===s?void 0:s.timestamp):""}))]})),(0,n.jsxs)(D7,Object.assign({gap:"12px",cursor:"pointer",justifyContent:"space-between"},{children:[(0,n.jsx)(sae,{messageContent:null===(c=null==e?void 0:e.msg)||void 0===c?void 0:c.messageContent,messageType:null===(u=null==e?void 0:e.msg)||void 0===u?void 0:u.messageType}),g&&x8(t,e)&&(0,n.jsx)(dae,{})]}))]}))]}))},uae=(0,o.Ay)(D7).withConfig({displayName:"ChatSnap__Container",componentId:"sc-r4kigr-0"})(["border-bottom:",";cursor:",";",";"],(e=>e.active&&"1px dashed #ededee"),(e=>e.active&&"pointer"),(e=>e.active&&(0,o.AH)(["&:hover{background:#f4f5fa;border-radius:10px;}"]))),lae=(0,o.Ay)(B7).withConfig({displayName:"ChatSnap__NameSpan",componentId:"sc-r4kigr-1"})(["font-size:16px;@media ","{font-size:14px;}"],c5.mobileL),dae=({background:e,color:t})=>(0,n.jsx)(B7,{fontWeight:"600",fontSize:"12px",color:null!=t?t:"#fff",background:null!=e?e:"#0D67FE",padding:"8px",borderRadius:"100%"}),fae=()=>{var e;const{activeTab:t,setActiveTab:r,setActiveSubTab:o,activeSubTab:a}=(0,i.useContext)(T5),{selectedChatId:s,chatsFeed:c,requestsFeed:u,searchedChats:l,setSearchedChats:d,setSelectedChatId:f}=(0,i.useContext)(y5),{env:h}=(0,i.useContext)(v5),{spamNotifsFeed:p}=(0,i.useContext)(w5),g=c[s]||u[s]||(Object.keys(l||{}).length?l[s]:null),m=Wee(null==g?void 0:g.did,h);return g?(0,n.jsxs)(D7,Object.assign({gap:"12px",padding:"23px 2px"},{children:[(0,n.jsx)(O7,Object.assign({width:"16px",height:"16px",cursor:"pointer",onClick:()=>(a&&(a===x5.REQUESTS&&Object.keys(u||{}).length||a===x5.SPAM&&Object.keys(p||{}).length)?o(x5[a]):r(C5[t]),void(a!==x5.REQUESTS&&a||(f(null),d(null))))},{children:(0,n.jsx)(H7,{})})),(0,n.jsxs)(D7,Object.assign({gap:"8px"},{children:[(0,n.jsx)(R7,{src:g.profilePicture,alt:"profile picture",width:"24px",height:"24px",borderRadius:"100%"}),(0,n.jsx)(M7,Object.assign({content:l8(null==g?void 0:g.did),direction:"bottom-right"},{children:(0,n.jsxs)(B7,Object.assign({fontWeight:"700",fontSize:"16px",cursor:"pointer"},{children:[" ",(null==g?void 0:g.name)?s9(null==g?void 0:g.name,30):null!=m?m:s9(null===(e=null==g?void 0:g.did)||void 0===e?void 0:e.split(":")[1],20)]}))}))]}))]})):null},hae=()=>{const{activeTab:e,setActiveTab:t,activeSubTab:r}=(0,i.useContext)(T5),{setSearchedChats:o,setSelectedChatId:a}=(0,i.useContext)(y5),{setSearchedNotifications:s}=(0,i.useContext)(w5);return(0,n.jsxs)(D7,Object.assign({gap:"12px",padding:"23px 2px"},{children:[(0,n.jsx)(O7,Object.assign({width:"16px",height:"16px",cursor:"pointer",onClick:()=>{t(e),r===x5.REQUESTS&&(o(null),a(null)),r===x5.SPAM&&s(null)}},{children:(0,n.jsx)(H7,{})})),(0,n.jsx)(B7,Object.assign({fontWeight:"700",fontSize:"16px"},{children:H4[r].title}))]}))},pae=({onMaximizeMinimizeToggle:e,modalOpen:t})=>{const{newChat:r,setNewChat:o,setActiveTab:a,activeSubTab:s}=(0,i.useContext)(T5),{selectedChatId:c,chatsFeed:u,requestsFeed:l,setSearchedChats:d,setSelectedChatId:f,searchedChats:h}=(0,i.useContext)(y5),p=c&&t||!c&&t&&s,g=c&&!t;return(0,n.jsxs)(gae,Object.assign({justifyContent:"space-between",alignItems:"center",padding:(g?"12px":"0")+" 0 ",borderWidth:`0 0 ${p?"1px":"0"} 0 `,borderStyle:`none none ${p?"dashed":"none"} none `,borderColor:`transparent transparent ${p?"#ededee":"transparent"} transparent`},{children:[c&&!!(Object.keys(u||{}).length||Object.keys(l||{}).length||Object.keys(h||{}).length)&&t&&(0,n.jsx)(fae,{}),c&&!t&&(0,n.jsx)((()=>{const e=u[c]||l[c]||(Object.keys(h||{}).length?h[c]:null);return(0,n.jsx)(cae,{chat:e,id:c,modalOpen:t})}),{}),!c&&t&&s&&(0,n.jsx)(hae,{}),(!c&&t&&!s||!t&&!c)&&(0,n.jsx)(D7,Object.assign({gap:"4px"},{children:(0,n.jsx)(B7,Object.assign({fontWeight:"700",fontSize:"18px",padding:"24px 2px",cursor:t?"pointer":"default",onClick:()=>{a(C5.CHATS),d(null),f(null)}},{children:r?"New Message":"Messages"}))})),(0,n.jsxs)(D7,Object.assign({gap:"20px"},{children:[(!c&&t&&!s&&!r||!t&&!c)&&(0,n.jsx)(O7,Object.assign({width:"20px",height:"20px",cursor:"pointer",onClick:()=>{t&&o(!0)}},{children:(0,n.jsx)(aae,{})})),(0,n.jsx)(O7,Object.assign({width:"12px",height:"13.4px",cursor:"pointer",margin:"0 0 10px 0",alignSelf:"center",onClick:e},{children:t?(0,n.jsx)(Coe,{}):(0,n.jsx)(oae,{})}))]}))]}))},gae=(0,o.Ay)(D7).withConfig({displayName:"MinimisedModalHeader__Container",componentId:"sc-1nzg6zv-0"})(["box-sizing:border-box;"]);var mae;!function(e){e.DEFAULT="#787E99"}(mae||(mae={}));const yae=e=>("string"==typeof e&&(e=parseInt(e)),null==e?"100%":"number"==typeof e?e.toString():e.width?e.width.toString():"100%"),bae=e=>("string"==typeof e&&(e=parseInt(e)),null==e?"100%":"number"==typeof e?e.toString():e.height?e.height.toString():"100%"),vae=(e,t=1)=>("string"==typeof e&&(e=parseInt(e)),null==e&&(e=20),"number"==typeof e?`0 0 ${e*t} ${e*t}`:e.width&&e.height?`0 0 ${e.width*t} ${e.height*t}`:e.width?`0 0 ${e.width*t} ${e.width*t}`:e.height?`0 0 ${e.height*t} ${e.height*t}`:"0 0 20 20"),wae=({size:e,color:t=mae.DEFAULT})=>(0,n.jsx)("svg",Object.assign({width:yae(e),height:bae(e),viewBox:vae(e),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("g",Object.assign({id:"copy (1) 1"},{children:(0,n.jsxs)("g",Object.assign({id:"Group"},{children:[(0,n.jsx)("path",{fill:t,id:"Vector",d:"M10.6673 8.60004V11.4C10.6673 13.7334 9.73398 14.6667 7.40065 14.6667H4.60065C2.26732 14.6667 1.33398 13.7334 1.33398 11.4V8.60004C1.33398 6.26671 2.26732 5.33337 4.60065 5.33337H7.40065C9.73398 5.33337 10.6673 6.26671 10.6673 8.60004Z"}),(0,n.jsx)("path",{fill:t,id:"Vector_2",d:"M11.401 1.33337H8.60102C6.54561 1.33337 5.58165 2.06277 5.38083 3.82605C5.33881 4.19494 5.64433 4.50004 6.0156 4.50004H7.40102C10.201 4.50004 11.501 5.80004 11.501 8.60004V9.98544C11.501 10.3567 11.8061 10.6622 12.175 10.6202C13.9383 10.4194 14.6677 9.45544 14.6677 7.40004V4.60004C14.6677 2.26671 13.7344 1.33337 11.401 1.33337Z"})]}))}))})),Aae=({size:e,color:t})=>(0,n.jsx)("svg",Object.assign({width:yae(e),height:bae(e),viewBox:vae(20),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{fill:t,d:"M9.75 0.25C7.82164 0.25 5.93657 0.821828 4.33319 1.89317C2.72982 2.96452 1.48013 4.48726 0.742179 6.26884C0.00422448 8.05042 -0.188858 10.0108 0.187348 11.9021C0.563554 13.7934 1.49215 15.5307 2.85571 16.8943C4.21927 18.2579 5.95656 19.1865 7.84787 19.5627C9.73919 19.9389 11.6996 19.7458 13.4812 19.0078C15.2627 18.2699 16.7855 17.0202 17.8568 15.4168C18.9282 13.8134 19.5 11.9284 19.5 10C19.4973 7.41498 18.4692 4.93661 16.6413 3.10872C14.8134 1.28084 12.335 0.25273 9.75 0.25ZM15.7613 12.7319C15.9318 12.8343 16.0547 13.0003 16.1029 13.1934C16.1511 13.3864 16.1206 13.5907 16.0181 13.7612C15.9157 13.9318 15.7497 14.0547 15.5566 14.1029C15.3636 14.1511 15.1593 14.1206 14.9888 14.0181L10.5 11.3247V16.1875C10.5 16.3864 10.421 16.5772 10.2803 16.7178C10.1397 16.8585 9.94892 16.9375 9.75 16.9375C9.55109 16.9375 9.36033 16.8585 9.21967 16.7178C9.07902 16.5772 9 16.3864 9 16.1875V11.3247L4.51125 14.0181C4.34069 14.1206 4.13641 14.1511 3.94337 14.1029C3.75032 14.0547 3.58432 13.9318 3.48188 13.7612C3.37944 13.5907 3.34895 13.3864 3.39713 13.1934C3.4453 13.0003 3.56819 12.8343 3.73875 12.7319L8.29219 10L3.73875 7.26813C3.56819 7.16569 3.4453 6.99968 3.39713 6.80664C3.34895 6.61359 3.37944 6.40932 3.48188 6.23875C3.58432 6.06818 3.75032 5.9453 3.94337 5.89712C4.13641 5.84895 4.34069 5.87944 4.51125 5.98187L9 8.67531V3.8125C9 3.61359 9.07902 3.42282 9.21967 3.28217C9.36033 3.14152 9.55109 3.0625 9.75 3.0625C9.94892 3.0625 10.1397 3.14152 10.2803 3.28217C10.421 3.42282 10.5 3.61359 10.5 3.8125V8.67531L14.9888 5.98187C15.0732 5.93115 15.1668 5.89756 15.2643 5.88302C15.3617 5.86848 15.4611 5.87327 15.5566 5.89712C15.6522 5.92098 15.7422 5.96342 15.8214 6.02204C15.9005 6.08065 15.9674 6.15429 16.0181 6.23875C16.0689 6.32321 16.1024 6.41683 16.117 6.51427C16.1315 6.6117 16.1267 6.71105 16.1029 6.80664C16.079 6.90222 16.0366 6.99218 15.978 7.07136C15.9193 7.15054 15.8457 7.2174 15.7613 7.26813L11.2078 10L15.7613 12.7319Z"})})),Cae=({size:e,color:t})=>(0,n.jsx)("svg",Object.assign({width:yae(e),height:bae(e),viewBox:vae(30),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{fill:t,d:"M30.9137 15.595C30.87 15.4963 29.8112 13.1475 27.4575 10.7937C24.3212 7.6575 20.36 6 16 6C11.64 6 7.67874 7.6575 4.54249 10.7937C2.18874 13.1475 1.12499 15.5 1.08624 15.595C1.02938 15.7229 1 15.8613 1 16.0012C1 16.1412 1.02938 16.2796 1.08624 16.4075C1.12999 16.5062 2.18874 18.8538 4.54249 21.2075C7.67874 24.3425 11.64 26 16 26C20.36 26 24.3212 24.3425 27.4575 21.2075C29.8112 18.8538 30.87 16.5062 30.9137 16.4075C30.9706 16.2796 31 16.1412 31 16.0012C31 15.8613 30.9706 15.7229 30.9137 15.595ZM16 24C12.1525 24 8.79124 22.6012 6.00874 19.8438C4.86704 18.7084 3.89572 17.4137 3.12499 16C3.89551 14.5862 4.86686 13.2915 6.00874 12.1562C8.79124 9.39875 12.1525 8 16 8C19.8475 8 23.2087 9.39875 25.9912 12.1562C27.1352 13.2912 28.1086 14.5859 28.8812 16C27.98 17.6825 24.0537 24 16 24ZM16 10C14.8133 10 13.6533 10.3519 12.6666 11.0112C11.6799 11.6705 10.9108 12.6075 10.4567 13.7039C10.0026 14.8003 9.88377 16.0067 10.1153 17.1705C10.3468 18.3344 10.9182 19.4035 11.7573 20.2426C12.5965 21.0818 13.6656 21.6532 14.8294 21.8847C15.9933 22.1162 17.1997 21.9974 18.2961 21.5433C19.3924 21.0892 20.3295 20.3201 20.9888 19.3334C21.6481 18.3467 22 17.1867 22 16C21.9983 14.4092 21.3657 12.884 20.2408 11.7592C19.1159 10.6343 17.5908 10.0017 16 10ZM16 20C15.2089 20 14.4355 19.7654 13.7777 19.3259C13.1199 18.8864 12.6072 18.2616 12.3045 17.5307C12.0017 16.7998 11.9225 15.9956 12.0768 15.2196C12.2312 14.4437 12.6122 13.731 13.1716 13.1716C13.731 12.6122 14.4437 12.2312 15.2196 12.0769C15.9956 11.9225 16.7998 12.0017 17.5307 12.3045C18.2616 12.6072 18.8863 13.1199 19.3259 13.7777C19.7654 14.4355 20 15.2089 20 16C20 17.0609 19.5786 18.0783 18.8284 18.8284C18.0783 19.5786 17.0609 20 16 20Z"})})),Eae=({size:e,color:t})=>(0,n.jsx)("svg",Object.assign({width:yae(e),height:bae(e),viewBox:vae(40),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M20 0.5C16.1433 0.5 12.3731 1.64366 9.16639 3.78634C5.95963 5.92903 3.46027 8.97451 1.98436 12.5377C0.508449 16.1008 0.122284 20.0216 0.874696 23.8043C1.62711 27.5869 3.4843 31.0615 6.21143 33.7886C8.93855 36.5157 12.4131 38.3729 16.1957 39.1253C19.9784 39.8777 23.8992 39.4916 27.4623 38.0156C31.0255 36.5397 34.071 34.0404 36.2137 30.8336C38.3564 27.6269 39.5 23.8567 39.5 20C39.4901 14.8313 37.4325 9.87718 33.7776 6.22237C30.1228 2.56755 25.1687 0.509911 20 0.5ZM29.2813 16.5875L18.2938 27.0875C18.0097 27.3547 17.6337 27.5024 17.2438 27.5C17.0531 27.5027 16.8639 27.4677 16.6869 27.3969C16.5099 27.3261 16.3487 27.2209 16.2125 27.0875L10.7188 21.8375C10.5664 21.7046 10.4425 21.5422 10.3544 21.3601C10.2664 21.1781 10.2161 20.9801 10.2066 20.7781C10.197 20.5761 10.2284 20.3743 10.2988 20.1847C10.3693 19.9952 10.4773 19.8218 10.6164 19.6751C10.7556 19.5283 10.923 19.4113 11.1085 19.3309C11.2941 19.2505 11.494 19.2084 11.6962 19.2072C11.8984 19.2061 12.0988 19.2458 12.2852 19.324C12.4717 19.4023 12.6404 19.5174 12.7813 19.6625L17.2438 23.9187L27.2188 14.4125C27.5104 14.158 27.8891 14.0262 28.2758 14.0445C28.6624 14.0628 29.027 14.2298 29.2933 14.5107C29.5597 14.7915 29.7071 15.1644 29.7049 15.5515C29.7026 15.9386 29.5508 16.3098 29.2813 16.5875Z",fill:t})})),xae=({size:e,color:t})=>(0,n.jsxs)("svg",Object.assign({width:yae(e),height:bae(e),viewBox:vae(38),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M19 37C28.9411 37 37 28.9411 37 19C37 9.05887 28.9411 1 19 1C9.05887 1 1 9.05887 1 19C1 28.9411 9.05887 37 19 37Z",stroke:t,"stroke-width":"2","stroke-miterlimit":"10"}),(0,n.jsx)("path",{d:"M25 13L13 25",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M25 25L13 13",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})),Sae=({size:e,color:t})=>(0,n.jsxs)("svg",Object.assign({width:yae(e),height:bae(e),viewBox:vae(24),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12Z",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M8.04746 10.9393C8.77509 10.9393 9.36494 10.3494 9.36494 9.6218C9.36494 8.89418 8.77509 8.30432 8.04746 8.30432C7.31984 8.30432 6.72998 8.89418 6.72998 9.6218C6.72998 10.3494 7.31984 10.9393 8.04746 10.9393Z",fill:t}),(0,n.jsx)("path",{d:"M15.9525 10.9393C16.6801 10.9393 17.27 10.3494 17.27 9.6218C17.27 8.89418 16.6801 8.30432 15.9525 8.30432C15.2249 8.30432 14.635 8.89418 14.635 9.6218C14.635 10.3494 15.2249 10.9393 15.9525 10.9393Z",fill:t}),(0,n.jsx)("path",{d:"M16.3916 14.4525C15.4803 16.028 13.951 17.0875 12 17.0875C10.049 17.0875 8.51966 16.028 7.6084 14.4525",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})),Iae=({size:e,color:t})=>(0,n.jsxs)("svg",Object.assign({width:yae(e),height:bae(e),viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fill:"none"},{children:[(0,n.jsx)("rect",{width:"48",height:"48",fill:"none"}),(0,n.jsxs)("g",Object.assign({stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4"},{children:[(0,n.jsx)("path",{d:"M12.364 8L6 14.364 12.364 20.728"}),(0,n.jsx)("path",{d:"M6 14.364H28.672c6.885 0 12.54 5.439 12.808 12.318.284 7.27-5.533 13.318-12.808 13.318H12"})]}))]})),kae=(0,o.i7)(["0%{background-color:hsl(200,20%,80%);}100%{background-color:hsl(200,20%,95%);}"]),_ae=(0,o.i7)(["0%{background-color:#575D73;}100%{background-color:#6E748B;}"]),Tae={borderRadius:{chatViewComponent:"24px",chatProfile:"32px",messageInput:"13px",searchInput:"99px",modal:"16px",modalInnerComponents:"12px",chatPreview:"24px",userProfile:"0px",chatWidget:"24px",chatBubbleBorderRadius:"12px",chatBubbleContentBorderRadius:"8px",chatBubbleReplyBorderRadius:"12px",reactionsPickerBorderRadius:"12px",reactionsBorderRadius:"24px"},padding:{chatPreviewListPadding:"0px 6px 0px 0px",chatPreviewPadding:"10px 5px",chatProfilePadding:"0px",chatViewPadding:"0px",chatViewListPadding:"0px 6px 0px 0px",messageInputPadding:"0px",chatBubbleSenderPadding:"0px",chatBubbleReceiverPadding:"0px",chatBubbleContentPadding:"8px 16px",chatBubbleInnerContentPadding:"8px 12px",reactionsPickerPadding:"4px",reactionsPadding:"4px 8px"},margin:{chatPreviewListMargin:"0px",chatPreviewMargin:"2px 0px",chatProfileMargin:"10px 10px 2px 10px",chatViewMargin:"0px",chatViewListMargin:"0px 0px 0px 10px",messageInputMargin:"2px 10px 10px 10px",chatBubbleSenderMargin:"16px 8px",chatBubbleReceiverMargin:"16px 8px",chatBubbleContentMargin:"8px",chatBubbleReplyMargin:"8px 8px 0px 8px"},backgroundColor:{inputBackground:"#fff",inputHoverBackground:"linear-gradient(rgb(244, 245, 250), rgb(244, 245, 250)), linear-gradient(to right, rgb(182, 160, 245), rgb(244, 110, 246), rgb(255, 222, 211), rgba(161 159 161, 1))",chatViewComponentBackground:"linear-gradient(179.97deg, #EEF5FF 0.02%, #ECE9FA 123.25%)",chatProfileBackground:"#fff",messageInputBackground:"#fff",chatSentBubbleBackground:"rgb(202, 89, 155)",chatReceivedBubbleBackground:"#fff",chatPreviewSentBubbleBackground:"rgba(255, 255, 255, 0.1)",chatPreviewSentBorderBubbleBackground:"rgba(255, 255, 255, 0.5)",chatPreviewRecievedBubbleBackground:"rgba(0, 0, 0, 0.1)",chatPreviewRecievedBorderBubbleBackground:"rgba(0, 0, 0, 0.5)",chatActivePreviewBubbleBackground:"#22222210",chatActivePreviewBorderBubbleBackground:"#22222299",chatPreviewTagBackground:"rgba(0, 0, 0, 0.25)",chatFrameBackground:"#f5f5f5",encryptionMessageBackground:"#fff",buttonBackground:"rgb(202, 89, 155)",buttonHotBackground:"#D53A94",searchInputBackground:"rgb(244, 245, 250)",modalBackground:"#fff",modalInputBackground:"transparent",modalHoverBackground:"rgb(244, 245, 250)",buttonDisableBackground:"#DFDEE9",toastSuccessBackground:"linear-gradient(90.15deg, #30CC8B -125.65%, #30CC8B -125.63%, #F3FFF9 42.81%)",toastErrorBackground:"linear-gradient(90.15deg, #FF2070 -125.65%, #FF2D79 -125.63%, #FFF9FB 42.81%)",toastWarningBackground:"linear-gradient(90.15deg, #FFB800 -125.65%, #FFB800 -125.63%, #FFF9FB 42.81%)",toastShadowBackground:"#ccc",criteriaLabelBackground:"#657795",chatPreviewBackground:"#fff",chatPreviewSelectedBackground:"#f5f5f5",chatPreviewBadgeBackground:"rgb(226,8,128)",chatPreviewHoverBackground:"#f5f5f5",userProfileBackground:"#fff",chatWidgetModalBackground:"#fff"},fontSize:{chatProfileText:"17px",messageInputText:"16px",chatSentBubbleText:"14px",chatReceivedBubbleText:"14px",timestamp:"12px",encryptionMessageText:"13px",chatReceivedBubbleAddressText:"12px",chatReceivedBubbleTimestampText:"10px",chatSentBubbleTimestampText:"10px",searchInputText:"16px",searchPlaceholderText:"16px",chatPreviewParticipantText:"14px",chatPreviewMessageText:"14px",chatPreviewDateText:"12px",chatPreviewBadgeText:"12px",userProfileText:"16px",chatFrameTitleText:"16px",chatFrameDescriptionText:"14px"},fontWeight:{chatProfileText:"500",messageInputText:"400",chatSentBubbleText:"400",chatReceivedBubbleText:"400",timestamp:"400",encryptionMessageText:"400",chatReceivedBubbleAddressText:"500",chatReceivedBubbleTimestampText:"400",chatSentBubbleTimestampText:"400",searchInputText:"400",searchPlaceholderText:"400",chatPreviewParticipantText:"500",chatPreviewMessageText:"400",chatPreviewDateText:"400",chatPreviewBadgeText:"600",userProfileText:"500",chatFrameTitleText:"500"},fontFamily:"inherit",border:{chatViewComponent:"none",chatProfile:"none",messageInput:"none",searchInput:"1px solid transparent",modal:"none",modalInnerComponents:"1px solid rgb(194, 203, 219)",chatPreview:"none",userProfile:"none",chatWidget:"1px solid #E4E8EF",chatReceivedBubble:"none",chatSentBubble:"none",reactionsBorder:"1px solid transparent",reactionsHoverBorder:"1px solid #DFDFDF"},iconColor:{emoji:"rgb(101, 119, 149)",attachment:"rgb(101, 119, 149)",sendButton:"rgb(101, 119, 149)",groupSettings:"rgb(101, 119, 149)",userProfileSettings:"rgb(101, 119, 149)",approveRequest:"#30CC8B",rejectRequest:"#657795",primaryColor:"#D53A94",subtleColor:"#787E99"},textColor:{chatProfileText:"#000",messageInputText:"#000",chatSentBubbleText:"#fff",chatReceivedBubbleText:"#000",chatFrameTitleText:"#000",chatFrameDescriptionText:"rgba(0, 0, 0, 0.5)",chatFrameURLText:"#000",timestamp:"400",encryptionMessageText:"#000",buttonText:"#fff",buttonDisableText:"#AFB3BF",chatReceivedBubbleAddressText:"#000",chatReceivedBubbleTimestampText:"#000",chatSentBubbleTimestampText:"#fff",searchInputText:"#000",searchPlaceholderText:"rgb(101, 119, 149)",modalHeadingText:"#000",modalSubHeadingText:"rgb(101, 119, 149)",chatPreviewParticipantText:"#000",chatPreviewMessageText:"#888",chatPreviewDateText:"#888",chatPreviewBadgeText:"#fff",userProfileText:"#000",chatWidgetModalHeadingText:"#000"},backdropFilter:"none",spinnerColor:"rgb(202, 89, 155)",scrollbarColor:"rgb(202, 89, 155)",skeletonBG:()=>(0,o.AH)([""," 1s linear infinite alternate;"],kae)},Mae={borderRadius:{chatViewComponent:"24px",chatProfile:"32px",messageInput:"13px",searchInput:"99px",modal:"16px",modalInnerComponents:"12px",chatPreview:"24px",userProfile:"0px",chatWidget:"24px",chatBubbleBorderRadius:"12px",chatBubbleContentBorderRadius:"8px",chatBubbleReplyBorderRadius:"8px",reactionsPickerBorderRadius:"12px",reactionsBorderRadius:"24px"},padding:{chatPreviewListPadding:"0px 6px 0px 0px",chatPreviewPadding:"10px 5px",chatProfilePadding:"0px",chatViewPadding:"0px",chatViewListPadding:"0px 6px 0px 0px",messageInputPadding:"0px",chatBubbleSenderPadding:"0px",chatBubbleReceiverPadding:"0px",chatBubbleContentPadding:"8px 16px",chatBubbleInnerContentPadding:"8px 12px",reactionsPickerPadding:"4px",reactionsPadding:"4px 8px"},margin:{chatPreviewListMargin:"0px",chatPreviewMargin:"2px 0px",chatProfileMargin:"10px 10px 2px 10px",chatViewMargin:"0px",chatViewListMargin:"0px 0px 0px 10px",messageInputMargin:"2px 10px 10px 10px",chatBubbleSenderMargin:"16px 8px",chatBubbleReceiverMargin:"16px 8px",chatBubbleContentMargin:"8px",chatBubbleReplyMargin:"8px"},backgroundColor:{inputBackground:"rgb(64, 70, 80)",inputHoverBackground:"linear-gradient(#404650, #404650), linear-gradient(to right, rgba(182, 160, 245, 1), rgba(244, 110, 246, 1), rgba(255, 222, 211, 1), rgba(161 159 161, 1))",chatViewComponentBackground:"rgb(40, 42, 46)",chatProfileBackground:"rgb(64, 70, 80)",messageInputBackground:"rgb(64, 70, 80)",chatSentBubbleBackground:"rgb(202, 89, 155)",chatReceivedBubbleBackground:"rgb(64, 70, 80)",chatPreviewSentBubbleBackground:"rgba(255, 255, 255, 0.1)",chatPreviewSentBorderBubbleBackground:"rgba(255, 255, 255, 0.5)",chatPreviewRecievedBubbleBackground:"rgba(0, 0, 0, 0.1)",chatPreviewRecievedBorderBubbleBackground:"rgba(0, 0, 0, 0.5)",chatActivePreviewBubbleBackground:"#ffffff10",chatActivePreviewBorderBubbleBackground:"#ffffff99",chatPreviewTagBackground:"rgba(255, 255, 255, 0.25)",chatFrameBackground:"#343536",encryptionMessageBackground:"rgb(64, 70, 80)",buttonBackground:"rgb(202, 89, 155)",buttonHotBackground:"#D53A94",searchInputBackground:"rgb(64,70,80)",modalBackground:"#202124",criteriaLabelBackground:"#202124",modalInputBackground:"transparent",modalHoverBackground:"rgb(64, 70, 80)",buttonDisableBackground:"#787E99",toastSuccessBackground:"linear-gradient(90.15deg, #30CC8B -125.65%, #30CC8B -125.63%, #2F3137 42.81%)",toastErrorBackground:"linear-gradient(89.96deg, #FF2070 -101.85%, #2F3137 51.33%)",toastWarningBackground:"linear-gradient(90.15deg, #FFB800 -125.65%, #FFB800 -125.63%, #FFF9FB 42.81%)",toastShadowBackground:"#00000010",chatPreviewBackground:"#202124",chatPreviewSelectedBackground:"rgb(64, 70, 80)",chatPreviewBadgeBackground:"rgb(226,8,128)",chatPreviewHoverBackground:"rgb(64, 70, 80)",userProfileBackground:"#202124",chatWidgetModalBackground:"#202124"},fontSize:{chatProfileText:"17px",messageInputText:"16px",chatSentBubbleText:"14px",chatReceivedBubbleText:"14px",timestamp:"12px",encryptionMessageText:"13px",chatReceivedBubbleAddressText:"12px",chatReceivedBubbleTimestampText:"10px",chatSentBubbleTimestampText:"10px",searchInputText:"16px",searchPlaceholderText:"16px",chatPreviewParticipantText:"14px",chatPreviewMessageText:"14px",chatPreviewDateText:"12px",chatPreviewBadgeText:"12px",userProfileText:"16px",chatFrameTitleText:"16px",chatFrameDescriptionText:"14px"},fontWeight:{chatProfileText:"500",messageInputText:"400",chatSentBubbleText:"400",chatReceivedBubbleText:"400",timestamp:"400",encryptionMessageText:"400",chatReceivedBubbleAddressText:"500",chatReceivedBubbleTimestampText:"400",chatSentBubbleTimestampText:"400",searchInputText:"400",searchPlaceholderText:"400",chatPreviewParticipantText:"500",chatPreviewMessageText:"400",chatPreviewDateText:"400",chatPreviewBadgeText:"600",userProfileText:"500",chatFrameTitleText:"500"},fontFamily:"inherit",border:{chatViewComponent:"none",chatProfile:"none",messageInput:"none",searchInput:"1px solid transparent",modal:"none",modalInnerComponents:"1px solid rgb(74, 79, 103)",chatPreview:"none",userProfile:"none",chatReceivedBubble:"none",chatSentBubble:"none",reactionsBorder:"1px solid transparent",reactionsHoverBorder:"1px solid #282A2E"},iconColor:{emoji:"rgba(120, 126, 153, 1)",attachment:"rgba(120, 126, 153, 1)",sendButton:"rgba(120, 126, 153, 1)",groupSettings:"rgba(120, 126, 153, 1)",userProfileSettings:"rgba(120, 126, 153, 1)",approveRequest:"#30CC8B",rejectRequest:"#657795",primaryColor:"#D53A94",subtleColor:"#787E99"},textColor:{chatProfileText:"rgb(182, 188, 214)",messageInputText:"rgb(182, 188, 214)",chatSentBubbleText:"#fff",chatReceivedBubbleText:"rgb(182, 188, 214)",chatFrameTitleText:"rgb(182, 188, 214)",chatFrameDescriptionText:"rgba(182, 188, 214, 0.5)",chatFrameURLText:"rgb(182, 188, 214)",timestamp:"rgb(182, 188, 214)",encryptionMessageText:"rgb(182, 188, 214)",buttonText:"#fff",chatReceivedBubbleAddressText:"rgb(182, 188, 214)",chatReceivedBubbleTimestampText:"rgb(182, 188, 214)",chatSentBubbleTimestampText:"#fff",searchInputText:"#fff",searchPlaceholderText:"rgb(101, 119, 149)",modalHeadingText:"#fff",modalSubHeadingText:"rgb(182, 188, 214)",buttonDisableText:"#B6BCD6",chatPreviewParticipantText:"#fff",chatPreviewMessageText:"#888",chatPreviewDateText:"#888",chatPreviewBadgeText:"#fff",userProfileText:"rgb(182, 188, 214)",chatWidgetModalHeadingText:"#fff"},backdropFilter:"none",spinnerColor:"rgb(202, 89, 155)",scrollbarColor:"rgb(202, 89, 155)",skeletonBG:()=>(0,o.AH)([""," 1s linear infinite alternate;"],_ae)},Pae=(0,i.createContext)(Tae),jae=()=>(0,n.jsx)("svg",Object.assign({width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M0 16.5V0.5L19 8.5L0 16.5ZM2 13.5L13.85 8.5L2 3.5V7L8 8.5L2 10V13.5ZM2 13.5V3.5V10V13.5Z",fill:"#0D67FE"})})),Dae=()=>(0,n.jsxs)("svg",Object.assign({width:"36",height:"24",viewBox:"0 0 36 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("rect",{y:"0.800049",width:"35.2",height:"22.4",rx:"8",fill:"#F5F2FF"}),(0,n.jsx)("path",{d:"M12.5055 15.944C12.0703 15.944 11.6559 15.8672 11.2623 15.7136C10.8687 15.5568 10.5199 15.3264 10.2159 15.0224C9.91507 14.7184 9.67667 14.3424 9.50067 13.8944C9.32787 13.4464 9.24147 12.9296 9.24147 12.344C9.24147 11.5792 9.38707 10.9296 9.67827 10.3952C9.97267 9.85765 10.3663 9.44805 10.8591 9.16645C11.3551 8.88485 11.9039 8.74405 12.5055 8.74405C13.3951 8.74405 14.0943 8.95045 14.6031 9.36325C15.1119 9.77605 15.4527 10.36 15.6255 11.1152L14.2911 11.3072C14.1663 10.904 13.9615 10.5824 13.6767 10.3424C13.3951 10.0992 13.0335 9.97605 12.5919 9.97285C12.1535 9.96645 11.7887 10.0608 11.4975 10.256C11.2063 10.4512 10.9871 10.728 10.8399 11.0864C10.6959 11.4448 10.6239 11.864 10.6239 12.344C10.6239 12.824 10.6959 13.24 10.8399 13.592C10.9871 13.944 11.2063 14.2176 11.4975 14.4128C11.7887 14.608 12.1535 14.7088 12.5919 14.7152C12.8895 14.7216 13.1583 14.6704 13.3983 14.5616C13.6415 14.4528 13.8463 14.2816 14.0127 14.048C14.1791 13.8144 14.2975 13.5152 14.3679 13.1504H13.2735V12.1424H15.7599C15.7663 12.184 15.7711 12.2576 15.7743 12.3632C15.7775 12.4688 15.7791 12.5296 15.7791 12.5456C15.7791 13.208 15.6447 13.7952 15.3759 14.3072C15.1071 14.8192 14.7279 15.2208 14.2383 15.512C13.7487 15.8 13.1711 15.944 12.5055 15.944ZM17.5091 15.8V8.88805H18.8147V15.8H17.5091ZM20.9257 15.8V8.88805H25.1497V10.1936H22.2313V11.6912H24.5737V12.9968H22.2313V15.8H20.9257Z",fill:"#494D5F"})]})),Oae=({color:e="#494D5F"})=>(0,n.jsx)("svg",Object.assign({width:"23",height:"27",viewBox:"0 0 23 27",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M15.9927 7.38877L5.58023 18.1723C5.23551 18.5598 5.0503 19.0675 5.06293 19.5902C5.07557 20.113 5.28509 20.6108 5.64811 20.9805C6.01114 21.3503 6.49986 21.5637 7.0131 21.5765C7.52634 21.5894 8.02478 21.4008 8.40523 21.0497L20.8177 8.22905C21.5072 7.45406 21.8776 6.43872 21.8523 5.39323C21.8271 4.34775 21.408 3.3522 20.682 2.6127C19.9559 1.87321 18.9785 1.44641 17.952 1.42067C16.9255 1.39493 15.9286 1.77222 15.1677 2.47442L2.75523 15.295C1.63138 16.4397 1 17.9922 1 19.611C1 21.2298 1.63138 22.7823 2.75523 23.927C3.87908 25.0716 5.40336 25.7147 6.99273 25.7147C8.5821 25.7147 10.1064 25.0716 11.2302 23.927L21.4927 13.4999",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})})),Bae=({scrollToBottom:e})=>{var t;const r=(0,i.useContext)(Pae),[o,a]=(0,i.useState)(""),[s,c]=(0,i.useState)(!1),[u,l]=(0,i.useState)(!1),d=(0,i.useRef)(null),f=i.useRef(null),{selectedChatId:h,chatsFeed:p,setSearchedChats:g,requestsFeed:m}=(0,i.useContext)(y5),{newChat:y,setNewChat:b}=(0,i.useContext)(T5),{sendMessage:v,loading:w}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{setChatFeed:o,setChat:a,chatsFeed:s,chats:c,selectedChatId:u}=(0,i.useContext)(y5),{account:l,env:d,decryptedPgpPvtKey:f}=(0,i.useContext)(v5);y9();const h=(0,i.useCallback)((r=>pJ(void 0,void 0,void 0,(function*(){const{receiver:i,message:o,messageType:a}=r||{};n(!0);try{const e=yield _.chat.send({messageContent:o,messageType:a,receiverAddress:i,account:l,pgpPrivateKey:f,env:d});return n(!1),!!e&&void 0}catch(e){return n(!1),t(e.message),void console.log(e)}}))),[f,a,u,c]);return{sendMessage:h,error:e,loading:r}})(),[A,C]=(0,i.useState)(!1),{fetchRequests:E}=A9(),x=V9(425);H9(d,(()=>{l(!1),c(!1)}));const S=(t,r)=>pJ(void 0,void 0,void 0,(function*(){try{yield v({message:t,receiver:h,messageType:r}),e(),(p[h]||m[h])&&g(null),y&&b(!1),p[h]||E({page:1,requestLimit:30})}catch(ys){console.log(ys)}})),I=()=>pJ(void 0,void 0,void 0,(function*(){""!==o.trim()&&(yield S(o,"Text"),a(""))})),k=(0,i.useRef)(null);return(0,i.useEffect)((()=>{var e,t;if(null===(e=null==k?void 0:k.current)||void 0===e?void 0:e.style){k.current.style.height="25px";const e=null===(t=k.current)||void 0===t?void 0:t.scrollHeight;k.current.style.height=e+"px"}}),[k,o]),(0,n.jsx)(Nae,{children:(0,n.jsxs)(Rae,Object.assign({borderColor:"#DDDDDF",borderStyle:"solid",borderWidth:"1px",borderRadius:"8px",padding:"12px 17px 15px 17px",background:"#fff",alignItems:"center",justifyContent:"space-between"},{children:[(0,n.jsxs)(D7,Object.assign({gap:"8px",flex:"1"},{children:[(0,n.jsx)(O7,Object.assign({width:"20px",cursor:"pointer",height:"20px",alignSelf:"end",onClick:()=>c(!s)},{children:(0,n.jsx)(Sae,{color:null===(t=r.iconColor)||void 0===t?void 0:t.emoji,size:22})})),s&&(0,n.jsx)(D7,Object.assign({ref:d,position:"absolute",bottom:"3.5rem",left:"3.5rem"},{children:(0,n.jsx)(FP,{onEmojiClick:(e,t)=>{a(o+e.emoji),c(!1)},width:x?260:320,height:370})})),(0,n.jsx)(Fae,{onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),I())},placeholder:"Type your message...",onChange:e=>{var t;""!==(t=e.target.value).trim()&&a(t)},value:o,ref:k,rows:1})]})),(0,n.jsxs)(Lae,{children:[(0,n.jsx)(D7,Object.assign({width:"34px",height:"24px",cursor:"pointer",alignSelf:"end",onClick:()=>l(!u)},{children:(0,n.jsx)(Dae,{})})),u&&(0,n.jsx)(D7,Object.assign({position:"absolute",bottom:"3.5rem",right:x?"5rem":"8rem",ref:d},{children:(0,n.jsx)(vj,{onGifClick:e=>pJ(void 0,void 0,void 0,(function*(){S(e.url,"GIF"),l(!1)})),width:x?260:320,height:370,tenorApiKey:String(U4)})})),(0,n.jsx)(D7,Object.assign({onClick:()=>{f.current&&f.current.click()}},{children:!A&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D7,Object.assign({width:"17px",height:"24px",cursor:"pointer",alignSelf:"end",onClick:()=>b(!0)},{children:(0,n.jsx)(Oae,{})})),(0,n.jsx)(Uae,{type:"file",ref:f,onChange:e=>(e=>pJ(void 0,void 0,void 0,(function*(){if(e.target instanceof HTMLInputElement&&e.target.files&&e.target&&e.target.files&&e.target.files.length){const r=e.target.files[0];if(r)try{const e=2097152;if(r.size>e)throw console.log("Files larger than 2mb is now allowed"),new Error("Files larger than 2mb is now allowed");C(!0);const t=r.type.startsWith("image")?"Image":"File",n=new FileReader;let i;n.readAsDataURL(r),n.onloadend=e=>pJ(void 0,void 0,void 0,(function*(){i={content:e.target.result,name:r.name,type:r.type,size:r.size},S(JSON.stringify(i),t)}))}catch(t){console.log(t)}finally{C(!1)}}})))(e)})]})})),!(w||A)&&(0,n.jsx)(D7,Object.assign({cursor:"pointer",alignSelf:"end",height:"24px",onClick:()=>I()},{children:(0,n.jsx)(jae,{})})),(w||A)&&(0,n.jsx)(D7,Object.assign({alignSelf:"end",height:"24px"},{children:(0,n.jsx)(k7,{size:"22"})}))]})]}))})},Nae=o.Ay.div.withConfig({displayName:"Typebar__Container",componentId:"sc-cu9bt3-0"})(["width:100%;border-top:1px solid #dddddf;overflow:hidden;padding:15px 0px;"]),Rae=(0,o.Ay)(D7).withConfig({displayName:"Typebar__TypebarSection",componentId:"sc-cu9bt3-1"})(["gap:10px;@media ","{gap:0px;}"],c5.mobileL),Lae=(0,o.Ay)(D7).withConfig({displayName:"Typebar__SendSection",componentId:"sc-cu9bt3-2"})(["gap:11.5px;@media ","{gap:7.5px;}"],c5.mobileL),Fae=o.Ay.textarea.withConfig({displayName:"Typebar__MultiLineInput",componentId:"sc-cu9bt3-3"})(["font-family:inherit;font-weight:400;transform:translateY(3px);font-size:16px;outline:none;overflow-y:auto;box-sizing:border-box;border:none;color:#000;resize:none;flex:1;padding-right:5px;align-self:end;@media ","{font-size:14px;}&&::-webkit-scrollbar{width:4px;padding-right:0px;}::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;height:50px;}::placeholder{color:#000;transform:translateY(1px);@media ","{font-size:14px;}}min-height:25px;max-height:80px;word-break:break-word;"],c5.mobileL,c5.mobileL),Uae=o.Ay.input.withConfig({displayName:"Typebar__FileInput",componentId:"sc-cu9bt3-4"})(["display:none;"]),zae=({size:e})=>(0,n.jsx)("svg",Object.assign({width:null!=e?e:"25",height:null!=e?e:"25",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("g",Object.assign({id:"lock_FILL0_wght500_GRAD0_opsz48 1"},{children:(0,n.jsx)("path",{id:"Vector",d:"M4.62836 18.4476C4.23803 18.4476 3.90388 18.3086 3.62592 18.0307C3.34796 17.7527 3.20898 17.4186 3.20898 17.0283V8.07625C3.20898 7.68455 3.34796 7.34923 3.62592 7.07029C3.90388 6.79135 4.23803 6.65188 4.62836 6.65188H5.98707V4.76148C5.98707 3.64529 6.3778 2.69489 7.15926 1.91029C7.94073 1.1257 8.88805 0.733398 10.0012 0.733398C11.1144 0.733398 12.0613 1.1257 12.8421 1.91029C13.6229 2.69489 14.0133 3.64529 14.0133 4.76148V6.65188H15.372C15.7637 6.65188 16.099 6.79135 16.378 7.07029C16.6569 7.34923 16.7964 7.68455 16.7964 8.07625V17.0283C16.7964 17.4186 16.6569 17.7527 16.378 18.0307C16.099 18.3086 15.7637 18.4476 15.372 18.4476H4.62836ZM4.62836 17.0283H15.372V8.07625H4.62836V17.0283ZM10.0037 14.1564C10.4458 14.1564 10.8231 14.0034 11.1356 13.6974C11.4481 13.3914 11.6044 13.0236 11.6044 12.5939C11.6044 12.1773 11.4469 11.7988 11.1321 11.4585C10.8173 11.1182 10.4388 10.9481 9.99669 10.9481C9.55458 10.9481 9.17728 11.1182 8.86478 11.4585C8.55228 11.7988 8.39603 12.1807 8.39603 12.6043C8.39603 13.0279 8.55344 13.3925 8.86828 13.6981C9.18311 14.0036 9.56158 14.1564 10.0037 14.1564ZM7.40644 6.65188H12.5939V4.76263C12.5939 4.03502 12.3429 3.41897 11.8408 2.91448C11.3387 2.41001 10.7263 2.15777 10.0038 2.15777C9.28129 2.15777 8.66776 2.41001 8.16323 2.91448C7.65871 3.41897 7.40644 4.03502 7.40644 4.76263V6.65188Z",fill:"#62626A"})}))})),Hae=({size:e})=>(0,n.jsx)("svg",Object.assign({width:null!=e?e:"21",height:null!=e?e:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("g",Object.assign({id:"no_encryption"},{children:(0,n.jsx)("path",{id:"Vector",d:"M17.1668 14.2913L15.5002 12.6247V8.33301H11.2085L9.54183 6.66634H13.0002V4.99967C13.0002 4.30523 12.7606 3.71495 12.2814 3.22884C11.8022 2.74273 11.2154 2.49967 10.521 2.49967C9.82655 2.49967 9.24322 2.73926 8.771 3.21842C8.29877 3.69759 8.06266 4.29134 8.06266 4.99967V5.18717L6.54183 3.66634C6.84738 2.81912 7.36822 2.13509 8.10433 1.61426C8.84044 1.09342 9.646 0.833008 10.521 0.833008C11.6738 0.833008 12.6529 1.23926 13.4585 2.05176C14.2641 2.86426 14.6668 3.8469 14.6668 4.99967V6.66634H15.5002C15.9585 6.66634 16.3509 6.82954 16.6772 7.15592C17.0036 7.48231 17.1668 7.87467 17.1668 8.33301V14.2913ZM17.5835 19.4163L16.2918 18.1247C16.1391 18.1941 16.0002 18.2462 15.8752 18.2809C15.7502 18.3156 15.6252 18.333 15.5002 18.333H5.50016C5.04183 18.333 4.64947 18.1698 4.32308 17.8434C3.99669 17.517 3.8335 17.1247 3.8335 16.6663V8.33301C3.8335 7.98579 3.93419 7.66634 4.13558 7.37467C4.33697 7.08301 4.59738 6.87467 4.91683 6.74967L1.0835 2.91634L2.25016 1.74967L18.7502 18.2497L17.5835 19.4163ZM14.7918 16.6663L11.7293 13.5622C11.5766 13.715 11.3995 13.833 11.1981 13.9163C10.9967 13.9997 10.7779 14.0413 10.5418 14.0413C10.0835 14.0413 9.69113 13.8781 9.36475 13.5518C9.03836 13.2254 8.87516 12.833 8.87516 12.3747C8.87516 12.1386 8.91683 11.9198 9.00016 11.7184C9.0835 11.517 9.20155 11.34 9.35433 11.1872L6.4585 8.33301H5.50016V16.6663H14.7918Z",fill:"#62626A"})}))})),Vae={ENCRYPTED:{IconComponent:(0,n.jsx)(zae,{}),text:"Messages are end-to-end encrypted. Only users in this chat can view or listen to them."},NO_ENCRYPTED:{IconComponent:(0,n.jsx)(Hae,{}),text:"Messages are not encrypted until chat request is accepted."}},Kae=({id:e})=>(0,n.jsxs)(D7,Object.assign({padding:"12px",gap:"8px",borderRadius:"12px",borderStyle:"solid",borderWidth:"1px",borderColor:"var(--neutral-neutral-100, #EDEDEE)",background:"var(--neutral-neutral-050, #F5F5F5)",margin:"10px 10px 0px"},{children:[Vae[e].IconComponent,(0,n.jsx)(B7,Object.assign({fontSize:"13px",color:"var(--neutral-neutral-600, #62626A)",fontWeight:"600",textAlign:"left"},{children:Vae[e].text}))]})),Gae=({chat:e,position:t})=>{const r=JSON.parse(e.messageContent),i=r.name,o=r.content,a=r.size;return(0,n.jsxs)(D7,Object.assign({alignSelf:t?"end":"start",maxWidth:"80%",margin:"5px 0",background:"#343536",borderRadius:"8px",justifyContent:"space-around",padding:"10px 13px",gap:"15px"},{children:[(0,n.jsx)(R7,{src:q4(i.split(".").slice(-1)[0]),alt:"extension icon",width:"20px",height:"20px"}),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"5px"},{children:[(0,n.jsx)(B7,Object.assign({color:"#fff",fontSize:"15px"},{children:s9(i,11)})),(0,n.jsx)(B7,Object.assign({color:"#fff",fontSize:"12px"},{children:u9(a)}))]})),(0,n.jsx)(ese,Object.assign({href:o,target:"_blank",rel:"noopener noreferrer",download:!0},{children:(0,n.jsx)(Xae,{className:"fa fa-download","aria-hidden":"true"})}))]}))},qae=({chat:e,position:t})=>(0,n.jsx)(D7,Object.assign({alignSelf:t?"end":"start",maxWidth:"65%",margin:"5px 0"},{children:(0,n.jsx)(R7,{src:JSON.parse(e.messageContent).content,alt:"",width:"100%",borderRadius:t?"12px 12px 0px 12px":"12px 12px 12px 0px"})})),Qae=({chat:e,position:t})=>(0,n.jsx)(D7,Object.assign({alignSelf:t?"end":"start",maxWidth:"65%",margin:"5px 0"},{children:(0,n.jsx)(R7,{src:e.messageContent,alt:"",width:"100%",borderRadius:t?"12px 12px 0px 12px":"12px 12px 12px 0px"})})),Wae=({chat:e,position:t})=>{const r=s()(e.timestamp).format("hh:mm a");return(0,n.jsxs)(D7,Object.assign({gap:"5px",background:t?"#0D67FE":"#EDEDEE",padding:"8px 12px",borderRadius:t?"12px 12px 0px 12px":"12px 12px 12px 0px",margin:"5px 0",alignSelf:t?"end":"start",justifyContent:"start",maxWidth:"80%",minWidth:"71px",position:"relative"},{children:[" ",(0,n.jsx)(D7,Object.assign({flexDirection:"column",padding:"5px 0 15px 0"},{children:e.messageContent.split("\n").map((e=>(0,n.jsx)(B7,Object.assign({alignSelf:"start",textAlign:"left",fontSize:"16px",fontWeight:"400",color:t?"#fff":"#000"},{children:e}),Math.random().toString())))})),(0,n.jsx)(B7,Object.assign({position:"absolute",fontSize:"12px",fontWeight:"400",color:t?"#A9C8FF":"#62626A",bottom:"6px",right:"10px"},{children:r}))]}))},Jae=({chat:e})=>{const{account:t}=(0,i.useContext)(v5),r=l8(e.fromDID).toLowerCase()!==t.toLowerCase()?0:1;return"GIF"===e.messageType?(0,n.jsx)(Qae,{chat:e,position:r}):"Image"===e.messageType?(0,n.jsx)(qae,{chat:e,position:r}):"File"===e.messageType?(0,n.jsx)(Gae,{chat:e,position:r}):(0,n.jsx)(Wae,{chat:e,position:r})},Yae=()=>{(0,i.useContext)(T5);const{selectedChatId:e,chatsFeed:t,requestsFeed:r,chats:o,setRequestsFeed:a,setChatFeed:c,setSearchedChats:u,searchedChats:l,setSelectedChatId:d}=(0,i.useContext)(y5),{account:f,env:h,decryptedPgpPvtKey:p}=(0,i.useContext)(v5),g=t[e]||r[e]||(l?l[e]:null),m=Object.keys(r),y=o.get(e),b=new Set,v=(0,i.useRef)(null),w=(0,i.useRef)(null),{historyMessages:A,loading:C}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{chats:o,setChat:a,selectedChatId:s}=(0,i.useContext)(y5),{account:c,env:u,decryptedPgpPvtKey:l}=(0,i.useContext)(v5),d=(0,i.useCallback)((({threadHash:r,limit:i=10})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{const e=yield _.chat.history({threadhash:r,account:c,toDecrypt:!!l,pgpPrivateKey:String(l),limit:i,env:u});if(e.reverse(),o.get(s)){const t={},r=Object.values([...e,...o.get(s).messages].reduce(((e,t)=>(t.timestamp&&!e[t.timestamp]&&(e[t.timestamp]=t),e)),t));a(s,{messages:r,lastThreadHash:e[0].link})}else a(s,{messages:e,lastThreadHash:e[0].link})}catch(e){n(!1),t(e.message),console.log(e)}finally{n(!1)}}))),[o]);return{historyMessages:d,error:e,loading:r}})(),{approveChatRequest:E,loading:x}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{account:o,env:a,decryptedPgpPvtKey:s}=(0,i.useContext)(v5),c=(0,i.useCallback)((r=>pJ(void 0,void 0,void 0,(function*(){const{senderAddress:i}=r||{};n(!0);try{return yield _.chat.approve({status:"Approved",account:o,senderAddress:i,pgpPrivateKey:s,env:a})}catch(e){return n(!1),t(e.message),void console.log(e)}}))),[]);return{approveChatRequest:c,error:e,loading:r}})(),S=({chat:e,dateNum:t})=>{const r=F8(e.timestamp);return b.add(t),(0,n.jsx)(B7,Object.assign({margin:"15px 0",fontSize:"14px",fontWeight:"600",color:"#AFAFB6",textAlign:"center"},{children:r}))},I=e=>{var t;null===(t=null==w?void 0:w.current)||void 0===t||t.scrollIntoView(!e||{behavior:"smooth"})};(0,i.useEffect)((()=>{I()}),[e]),(0,i.useEffect)((()=>{e&&y&&(null==y?void 0:y.messages.length)&&I(null)}),[o.get(e)]);const k=()=>pJ(void 0,void 0,void 0,(function*(){let e=null;!y&&(null==g?void 0:g.threadhash)?e=null==g?void 0:g.threadhash:o.size&&(null==y?void 0:y.lastThreadHash)&&(e=null==y?void 0:y.lastThreadHash),e&&(yield A({limit:15,threadHash:e}))}));(0,i.useEffect)((()=>{!function(){pJ(this,void 0,void 0,(function*(){yield k()}))}()}),[e]);return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",justifyContent:"start",alignItems:"start",width:"100%",overflow:"hidden",height:"100%"},{children:[(0,n.jsx)($ae,Object.assign({width:"100%",height:m.includes(e)?"97%":"85%",justifyContent:"start",flexDirection:"column",alignItems:"start",borderWidth:"0 0 1px 0",borderStyle:"none none none none",overflow:"hidden scroll",ref:v,onScroll:()=>pJ(void 0,void 0,void 0,(function*(){if(v.current){const{scrollTop:e}=v.current;if(0===e){const e=v.current,t=e.scrollTop,r=e.scrollHeight-e.clientHeight;yield k();const n=e.scrollHeight-e.clientHeight;e.scrollTop=t+(n-r)}}})),borderColor:"transparent transparent #dddddf transparent"},{children:(0,n.jsxs)(n.Fragment,{children:[g&&!g.publicKey?(0,n.jsx)(Kae,{id:"NO_ENCRYPTED"}):(0,n.jsx)(Kae,{id:"ENCRYPTED"}),C?(0,n.jsx)(k7,{}):"",y?(0,n.jsxs)(Zae,Object.assign({flexDirection:"column",justifyContent:"start",padding:"0 2px 15px 2px"},{children:[null==y?void 0:y.messages.map(((e,t)=>{const r=s()(e.timestamp).format("L");return(0,n.jsxs)(n.Fragment,{children:[b.has(r)?null:S({chat:e,dateNum:r}),(0,n.jsx)(Jae,{chat:e},t)]})})),m.includes(e)&&(0,n.jsxs)(D7,Object.assign({gap:"5px",background:"#EDEDEE",padding:"8px 12px",margin:"5px 0",borderRadius:"12px 12px 12px 0px",alignSelf:"start",justifyContent:"start",maxWidth:"68%",minWidth:"15%",position:"relative",flexDirection:"column"},{children:[(0,n.jsx)(B7,Object.assign({alignSelf:"center",textAlign:"left",fontSize:"16px",fontWeight:"400",color:"#000",lineHeight:"24px"},{children:"Please accept the Push Chat request to continue the conversation"})),(0,n.jsx)(tse,Object.assign({onClick:()=>x?null:pJ(void 0,void 0,void 0,(function*(){if(e)try{if(!p)return;if(yield E({senderAddress:e})){const t=Object.assign({},r),n=t[e];delete t[e],c(e,n),u(null),a(t)}}catch(t){console.log(t.message)}}))},{children:x?(0,n.jsx)(k7,{color:"#fff",size:"24"}):"Accept"}))]})),(0,n.jsx)("div",{ref:w})]})):null]})})),!m.includes(e)&&(0,n.jsx)(Bae,{scrollToBottom:I})]}))},Zae=(0,o.Ay)(D7).withConfig({displayName:"MessageBox__MessageListCard",componentId:"sc-7co3u0-0"})([""]),$ae=(0,o.Ay)(D7).withConfig({displayName:"MessageBox__Container",componentId:"sc-7co3u0-1"})(["&::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;}&::-webkit-scrollbar{width:5px;}"]),Xae=o.Ay.i.withConfig({displayName:"MessageBox__FileDownloadIcon",componentId:"sc-7co3u0-2"})(["color:#575757;"]),ese=o.Ay.a.withConfig({displayName:"MessageBox__FileDownloadIconAnchor",componentId:"sc-7co3u0-3"})(["font-size:20px;"]),tse=o.Ay.button.withConfig({displayName:"MessageBox__Button",componentId:"sc-7co3u0-4"})(["border:none;cursor:pointer;border-radius:8px;margin:15px 0px 8px 0px;background:#0D67FE;color:white;width:100%;font-size:16px;font-weight:600;line-height:24px;max-height:48px;min-height:48px;padding:0px 24px;display:flex;justify-content:center;align-items:center;"]),rse=({chatsFeed:e})=>((0,i.useContext)(T5),(0,n.jsx)(n.Fragment,{children:!!Object.keys(e||{}).length&&Object.keys(e).map((t=>(0,n.jsx)(cae,{chat:e[t],id:t},t)))})),nse=()=>{const{requestsFeed:e,setRequestsFeed:t,finishedFetchingRequests:r,setFinishedFetchingRequests:o}=(0,i.useContext)(y5),a=(0,i.useRef)(null),[s,c]=(0,i.useState)(1),[u,l]=(0,i.useState)(!1),d=C9(a,"1px"),{decryptedPgpPvtKey:f,env:h}=(0,i.useContext)(v5),{fetchRequests:p,loading:g}=A9();(0,i.useEffect)((()=>{Object.keys(e).length||f&&pJ(void 0,void 0,void 0,(function*(){const e=yield p({page:s,requestLimit:K4}),r=Object.assign({},e);t(r)}))}),[p,f,h,s]),(0,i.useEffect)((()=>{if(!d||g||r)return;const e=s+1;c(e),m(e)}),[d]);const m=r=>pJ(void 0,void 0,void 0,(function*(){if(f)try{l(!0);const n=yield p({page:r,requestLimit:K4});Object.keys(n||{}).length||o(!0);const i=Object.assign(Object.assign({},e),n);t(i)}catch(ys){console.log(ys),l(!1)}finally{l(!1)}}));return(0,n.jsxs)(ise,Object.assign({overflow:"hidden auto",justifyContent:"start",width:"100%",flexDirection:"column"},{children:[g&&!u||!Object.keys(e||{}).length?!u&&g&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})})):(0,n.jsx)(rse,{chatsFeed:e}),!g&&0===Object.keys(e).length&&(0,n.jsx)(B7,Object.assign({margin:"20px 0 0 0"},{children:"No Requests yet"})),(0,n.jsx)("div",{ref:a,style:{padding:"1px"}}),u&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})}))]}))},ise=(0,o.Ay)(D7).withConfig({displayName:"RequestsFeedList__ChatListCard",componentId:"sc-50sva4-0"})(["&::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;}&::-webkit-scrollbar{width:5px;}"]),ose=Object.assign(Object.assign({},Zee),{borderRadius:Object.assign(Object.assign({},Zee.borderRadius),{modal:"12px"}),color:Object.assign(Object.assign({},Zee.color),{channelNameText:"#62626A",notificationTitleText:"#000",notificationContentText:"#62626A",modalBorder:"#C8C8CB",timestamp:"#62626A"}),fontWeight:Object.assign(Object.assign({},Zee.fontWeight),{channelNameText:600,notificationTitleText:600,notificationContentText:500,timestamp:400}),fontSize:Object.assign(Object.assign({},Zee.fontSize),{channelNameText:"16px",notificationTitleText:"16px",notificationContentText:"16px",timestamp:"12px"}),modalDivider:"none"}),ase=({notificationFeeds:e})=>{const{subscriptionStatus:t}=(0,i.useContext)(w5),{onSubscribeToChannel:r}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),[o,a]=(0,i.useState)(!1),{setChannelSubscriptionStatus:s}=(0,i.useContext)(w5),{account:c,env:u,signer:l}=(0,i.useContext)(v5),d=(0,i.useCallback)((({channelAddress:r})=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{if(!r)return;if(!r)return;console.log(l);const e=yield null==l?void 0:l.getChainId();yield _.channels.subscribe({signer:l,channelAddress:g9(r,e),userAddress:g9(c,e),onSuccess:()=>{s(r,!0),a(!0)},onError:e=>{t(e.message)},env:u})}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[c,u]);return{onSubscribeToChannel:d,error:e,loading:r,success:o}})(),{signer:o}=(0,i.useContext)(v5);return(0,n.jsx)(n.Fragment,{children:!!Object.keys(e||{}).length&&Object.keys(e).map((i=>(0,n.jsx)(ete,{notificationTitle:e[i].title,notificationBody:e[i].message,cta:e[i].cta,app:e[i].app,icon:e[i].icon,image:e[i].image,customTheme:ose,isSpam:!!o&&!t.get(e[i].channel),subscribeFn:o&&!t.get(e[i].channel)?()=>r({channelAddress:e[i].channel}):void 0,isSubscribedFn:o&&!t.get(e[i].channel)?()=>pJ(void 0,void 0,void 0,(function*(){return(e=>!!t.get(e))(e[i].channel)})):void 0,chainName:e[i].blockchain,url:e[i].url},i)))})},sse=()=>{const{spamNotifsFeed:e,setSpamNotifsFeed:t,finishedFetchingSpam:r,setFinishedFetchingSpam:o}=(0,i.useContext)(w5),a=(0,i.useRef)(null),{account:s,env:c}=(0,i.useContext)(v5),[u,l]=(0,i.useState)(1),[d,f]=(0,i.useState)(!1),h=C9(a,"1px"),{fetchNotification:p,loading:g}=T9();(0,i.useEffect)((()=>{Object.keys(e).length||pJ(void 0,void 0,void 0,(function*(){const e=yield p({page:1,limit:G4,spam:!0});if(e){const r=Object.assign({},e);t(r)}}))}),[c,s]),(0,i.useEffect)((()=>{if(!h||g||r||Object.keys(e).lengthpJ(void 0,void 0,void 0,(function*(){if(s)try{f(!0);const n=yield p({page:r,limit:G4,spam:!0});Object.keys(n||{}).length||o(!0);const i=Object.assign(Object.assign({},e),n);t(i)}catch(ys){console.log(ys),f(!1)}finally{f(!1)}}));return(0,n.jsxs)(cse,Object.assign({overflow:"hidden auto",justifyContent:"start",flexDirection:"column",width:"100%",padding:"0 3px"},{children:[g&&!d||!Object.keys(e||{}).length?!d&&g&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})})):(0,n.jsx)(O7,{children:(0,n.jsx)(ase,{notificationFeeds:e})}),!g&&0===Object.keys(e).length&&(0,n.jsx)(B7,Object.assign({margin:"20px 0 0 0"},{children:"No messages from apps yet"})),(0,n.jsx)("div",{ref:a,style:{padding:"1px"}}),d&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})}))]}))},cse=(0,o.Ay)(D7).withConfig({displayName:"SpamNotificationFeedList__SpamNotifListCard",componentId:"sc-78wpz2-0"})(["&::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;}&::-webkit-scrollbar{width:5px;}"]),use=({height:e,width:t})=>(0,n.jsx)("svg",Object.assign({width:t||"18",height:e||"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M12.5 11H11.71L11.43 10.73C12.41 9.59 13 8.11 13 6.5C13 2.91 10.09 0 6.5 0C2.91 0 0 2.91 0 6.5C0 10.09 2.91 13 6.5 13C8.11 13 9.59 12.41 10.73 11.43L11 11.71V12.5L16 17.49L17.49 16L12.5 11ZM6.5 11C4.01 11 2 8.99 2 6.5C2 4.01 4.01 2 6.5 2C8.99 2 11 4.01 11 6.5C11 8.99 8.99 11 6.5 11Z",fill:"#7A7A85"})})),lse=({feed:e,handleSearch:t,onSearchReset:r,placeholder:o})=>{const[a,s]=(0,i.useState)(""),[c,u]=(0,i.useState)(!1),{setSearchedChats:l}=(0,i.useContext)(y5),{newChat:d,setActiveTab:f}=(0,i.useContext)(T5);i.useEffect((()=>{u(!0);const e=setTimeout((()=>{h(),u(!1)}),2e3);return()=>clearTimeout(e)}),[a]);const h=()=>{""!==a.trim()?t({searchedText:a,feed:e}):r()};return(0,n.jsxs)(dse,Object.assign({justifyContent:"space-between",margin:"4px 0",gap:"15px",alignItems:"center"},{children:[d&&(0,n.jsx)(D7,Object.assign({width:"auto",cursor:"pointer",onClick:()=>{l(null),f(C5.CHATS)}},{children:(0,n.jsx)(H7,{})})),(0,n.jsxs)(D7,Object.assign({width:"100%",background:"#ededee",padding:"8px 12px",borderRadius:"4px"},{children:[(0,n.jsx)(fse,{type:"text",value:a,onChange:e=>{return t=e.target.value,void s(t);var t},placeholder:o,onKeyDown:e=>{"Enter"===e.key&&h()}}),(0,n.jsxs)(B7,{children:[!c&&!a&&(0,n.jsx)(O7,Object.assign({cursor:"pointer",width:"17.49px",height:"17.49px",onClick:()=>h()},{children:(0,n.jsx)(use,{})})),!c&&a&&(0,n.jsx)(O7,Object.assign({cursor:"pointer",onClick:()=>{s(""),r()},width:"17.49px",height:"17.49px"},{children:(0,n.jsx)(Xee,{})})),c&&(0,n.jsx)(k7,{size:"17.49"})]})]}))]}))},dse=(0,o.Ay)(D7).withConfig({displayName:"Search__Container",componentId:"sc-4t27cf-0"})(["border-radius:4px;"]),fse=o.Ay.input.withConfig({displayName:"Search__Input",componentId:"sc-4t27cf-1"})(["border:none;background:#ededee;width:100%;flex:1;margin-left:10px;font-style:normal;font-weight:400;font-size:16px;line-height:24px;&:focus{outline:none;background-origin:border;background-clip:padding-box,border-box;}&::placeholder{color:#62626a;}"]),hse=({stroke:e,fill:t})=>(0,n.jsx)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M0 30V2C0 1.43333 0.191667 0.958333 0.575 0.575C0.958333 0.191667 1.43333 0 2 0H28C28.5667 0 29.0417 0.191667 29.425 0.575C29.8083 0.958333 30 1.43333 30 2V20C30 20.5667 29.8083 21.0417 29.425 21.425C29.0417 21.8083 28.5667 22 28 22H8L0 30ZM10 32C9.43333 32 8.95833 31.8083 8.575 31.425C8.19167 31.0417 8 30.5667 8 30V26H34V8H38C38.5667 8 39.0417 8.19167 39.425 8.575C39.8083 8.95833 40 9.43333 40 10V40L32 32H10ZM26 4H4V20.35L6.35 18H26V4Z",fill:"#62626A"})})),pse={SEARCH:{title:"No Results",subTitle:"",IconComponent:(0,n.jsx)(use,{height:"40",width:"40"})},NEW_CHAT:{title:"Start a new chat",subTitle:"Start by searching for a domain or wallet address.",IconComponent:(0,n.jsx)(hse,{})},NOTIFICATION:{title:"No message from apps yest",subTitle:"Keep an eye out for upcoming messages from the apps you connect with.",IconComponent:(0,n.jsx)(hse,{})},CHAT:{title:"Start your first chat",subTitle:"Get started by messaging a friend.",IconComponent:(0,n.jsx)(hse,{})}},gse=({id:e})=>(0,n.jsxs)(D7,Object.assign({flexDirection:"column",margin:"77px 0 0 0 ",gap:"15px"},{children:[pse[e].IconComponent,(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"7px"},{children:[(0,n.jsx)(B7,Object.assign({textAlign:"center",fontSize:"18px",fontWeight:"700",lineHeight:"24px",color:"#62626A"},{children:pse[e].title})),(0,n.jsx)(B7,Object.assign({textAlign:"center",fontSize:"14px",fontWeight:"400",lineHeight:"20px",color:"#62626A",padding:"0px 100px"},{children:pse[e].subTitle}))]}))]})),mse=()=>{const{chatsFeed:e,setChatsFeed:t,finishedFetchingChats:r,setFinishedFetchingChats:o}=(0,i.useContext)(y5),a=(0,i.useRef)(null),[s,c]=(0,i.useState)(1),[u,l]=(0,i.useState)(!1),d=C9(a,"1px"),{decryptedPgpPvtKey:f,account:h,env:p}=(0,i.useContext)(v5),{fetchChats:g,loading:m}=w9();(0,i.useEffect)((()=>{Object.keys(e).length||f&&pJ(void 0,void 0,void 0,(function*(){const e=yield g({page:s,chatLimit:V4}),r=Object.assign({},e);t(r)}))}),[g,p,s,h]),(0,i.useEffect)((()=>{if(!d||m||r)return;const e=s+1;c(e),y(e)}),[d]);const y=r=>pJ(void 0,void 0,void 0,(function*(){if(f)try{l(!0);const n=yield g({page:r,chatLimit:V4});Object.keys(n||{}).length||o(!0);const i=Object.assign(Object.assign({},e),n);t(i)}catch(ys){console.log(ys),l(!1)}finally{l(!1)}}));return(0,n.jsxs)(yse,Object.assign({overflow:"hidden auto",justifyContent:"start",flexDirection:"column"},{children:[m&&!u||!Object.keys(e||{}).length?!u&&m&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})})):(0,n.jsx)(rse,{chatsFeed:e}),!m&&0===Object.keys(e).length&&(0,n.jsx)(gse,{id:I5.CHAT}),(0,n.jsx)("div",{ref:a,style:{padding:"1px"}}),u&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})}))]}))},yse=(0,o.Ay)(D7).withConfig({displayName:"ChatsFeedList__ChatListCard",componentId:"sc-77y3ob-0"})(["padding:0px 3px 0px 0px;&::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;}&::-webkit-scrollbar{width:5px;}"]),bse=()=>(0,n.jsx)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M0 15V5H2V11.6L13.6 0L15 1.4L3.4 13H10V15H0Z",fill:"black"})})),vse=({fill:e})=>(0,n.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M9 5H11V7H9V5ZM9 9H11V15H9V9ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18Z",fill:"black"})})),wse=()=>{const{inboxNotifsFeed:e,setInboxNotifsFeed:t,allInboxNotifFeed:r,setAllInboxNotifsFeed:o,setSpamNotifsFeed:a,spamNotifsFeed:s,finishedFetchingInbox:c,setFinishedFetchingInbox:u}=(0,i.useContext)(w5),l=(0,i.useRef)(null),{account:d,env:f}=(0,i.useContext)(v5),[h,p]=(0,i.useState)(1),[g,m]=(0,i.useState)(!1),y=C9(l,"1px"),{fetchNotification:b,loading:v}=T9();(0,i.useEffect)((()=>{Object.keys(s).length||pJ(void 0,void 0,void 0,(function*(){const e=yield b({page:1,limit:G4,spam:!0});if(e){const t=Object.assign({},e);a(t)}}))}),[f,d]);(0,i.useEffect)((()=>{Object.keys(e).length||d&&pJ(void 0,void 0,void 0,(function*(){const e=yield b({page:1,limit:G4});if(e){const r=Object.assign({},e);t(r)}}))}),[b,f,h,d]),(0,i.useEffect)((()=>{Object.keys(r).length||d&&pJ(void 0,void 0,void 0,(function*(){const e=yield b({page:h,limit:1e4});o(Object.assign({},e))}))}),[b,f,h,d]),(0,i.useEffect)((()=>{if(!y||v||c||Object.keys(e).lengthpJ(void 0,void 0,void 0,(function*(){if(d)try{m(!0);const n=yield b({page:r,limit:G4});Object.keys(n||{}).length||u(!0);const i=Object.assign(Object.assign({},e),n);t(i)}catch(ys){console.log(ys),m(!1)}finally{m(!1)}}));return(0,n.jsxs)(Ase,Object.assign({overflow:"hidden auto",justifyContent:"start",flexDirection:"column",padding:"0 3px"},{children:[v&&!g||!Object.keys(e||{}).length?!g&&v&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})})):(0,n.jsx)(O7,{children:(0,n.jsx)(ase,{notificationFeeds:e})}),!v&&0===Object.keys(e).length&&(0,n.jsx)(gse,{id:I5.NOTIFICATION}),(0,n.jsx)("div",{ref:l,style:{padding:"1px"}}),g&&(0,n.jsx)(D7,Object.assign({margin:"10px 0"},{children:(0,n.jsx)(k7,{})}))]}))},Ase=(0,o.Ay)(D7).withConfig({displayName:"InboxNotificationFeedList__InboxNotifListCard",componentId:"sc-rvetgw-0"})(["&::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;}&::-webkit-scrollbar{width:5px;}"]),Cse=({tabName:e,tabValue:t})=>{const{activeTab:r,setActiveTab:o}=(0,i.useContext)(T5),{setSearchedChats:a,setSelectedChatId:s}=(0,i.useContext)(y5),{setSearchedNotifications:c}=(0,i.useContext)(w5);return(0,n.jsx)(D7,Object.assign({gap:"10px",flex:"1",cursor:"pointer",onClick:()=>{o(t),r===C5.CHATS?(a(null),s(null)):r===C5.APP_NOTIFICATIONS&&c(null)},borderColor:r===t?"#0D67FE":"#C8C8CB",borderStyle:r===t?" solid ":t===C5.CHATS?"solid none solid solid":"solid solid solid none",borderWidth:"2px",borderRadius:r===t?"8px":t===C5.CHATS?"8px 0px 0px 8px":"0px 8px 8px 0px",position:"relative",background:r===t?"#F0F5FF;":"#FFF",left:t===C5.APP_NOTIFICATIONS?"-2.2px":"auto",right:t===C5.CHATS?"-2.6px":"auto",padding:"8px 0",zIndex:r===t?"10":"0"},{children:(0,n.jsx)(Tse,Object.assign({color:r===t?"#0D67FE":"#62626A",fontSize:"16px",fontWeight:"600",cursor:"pointer"},{children:e}))}))},Ese=()=>(0,n.jsxs)(D7,Object.assign({margin:" 0 0 5px 0"},{children:[(0,n.jsx)(Cse,{tabName:"Chat",tabValue:C5.CHATS}),(0,n.jsx)(Cse,{tabName:"App Notifications",tabValue:C5.APP_NOTIFICATIONS})]})),xse=({subTab:e,tabValue:t,isClickable:r=!1})=>{const{setActiveSubTab:o,activeSubTab:a}=(0,i.useContext)(T5),{setSearchedChats:s,setSelectedChatId:c}=(0,i.useContext)(y5),{setSearchedNotifications:u}=(0,i.useContext)(w5);return(0,n.jsxs)(Ise,Object.assign({justifyContent:"start",gap:"15px",padding:"15px 8px",cursor:r?"pointer":"default",onClick:()=>{r&&(o(t),a===x5.REQUESTS?(s(null),c(null)):a===x5.SPAM&&u(null))}},{children:[(0,n.jsx)(B7,Object.assign({padding:t===x5.REQUESTS?"16px 17px 15px 18px":"15px 15px 11px 16px",borderRadius:"100%",border:"1px solid #DDDDDF",cursor:r?"pointer":"default"},{children:e.icon})),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start",gap:"5px",cursor:r?"pointer":"default"},{children:[(0,n.jsx)(B7,Object.assign({fontWeight:"700",fontSize:"16px",color:"#000"},{children:e.title})),(0,n.jsx)(B7,Object.assign({cursor:r?"pointer ":"default",textAlign:"left",fontWeight:"400",fontSize:"16px",color:r?"#0D67FE ":"#62626A"},{children:e.subTitle}))]}))]}))},Sse=()=>{const{loading:e}=w9(),{fetchChat:t}=y9(),{newChat:r,setNewChat:o,activeTab:a,activeSubTab:s}=(0,i.useContext)(T5),{chatsFeed:c,requestsFeed:u,searchedChats:l,web3NameList:d,selectedChatId:f,setSearchedChats:h}=(0,i.useContext)(y5),{env:p}=(0,i.useContext)(v5),{spamNotifsFeed:g,allInboxNotifFeed:m,setSearchedNotifications:y,searchedNotifications:b}=(0,i.useContext)(w5),{fetchChatProfile:v}=b9(),w={REQUESTS:{title:H4.REQUESTS.title,subTitle:` ${c9(Object.keys(u||{}).length,10)} requests from people you may know`,icon:(0,n.jsx)(bse,{})},SPAM:{title:H4.SPAM.title,subTitle:`${c9(Object.keys(g||{}).length,5)} messages in your spam box`,icon:(0,n.jsx)(vse,{})}};return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",width:"100%",height:"100%",justifyContent:"start"},{children:[!r&&(0,n.jsx)(Ese,{}),s!==x5.REQUESTS&&(a===C5.CHATS||r)&&(0,n.jsx)(lse,{feed:c,handleSearch:({searchedText:e,feed:r})=>pJ(void 0,void 0,void 0,(function*(){const n=((e,t,r)=>{const n={};return t&&Object.keys(e).forEach((i=>{var o;i.toLowerCase().includes(t.toLowerCase())?n[i]=e[i]:e[i].name?(null===(o=e[i].name)||void 0===o?void 0:o.toLowerCase()).includes(t.toLowerCase())&&(n[i]=e[i]):Object.keys(r).forEach((i=>{r[i].toLowerCase().includes(t.toLowerCase())&&e[u8(i)]&&(n[u8(i)]=e[u8(i)])}))})),n})(r,e,d);if(Object.keys(n||{}).length)h(n);else{let r;const n=yield R8({searchText:e,fetchChatProfile:v,env:p});n?(r=yield t({recipientAddress:n.did}),Object.keys(r||{}).length?h({[r.did.toLowerCase()]:r}):(r=E8({user:n}),h({[r.did.toLowerCase()]:r}),o(!0))):Object.keys(r||{}).length||h({})}})),onSearchReset:()=>{h(null)},placeholder:"Search name or domain"}),s!==x5.SPAM&&a===C5.APP_NOTIFICATIONS&&!r&&(0,n.jsx)(lse,{feed:m,handleSearch:({searchedText:e,feed:t})=>pJ(void 0,void 0,void 0,(function*(){const r=((e,t)=>{const r={};return e&&Object.keys(t).forEach((n=>{(t[n].app.toLowerCase().includes(e.toLowerCase())||t[n].title.toLowerCase().includes(e.toLowerCase()))&&(r[n]=t[n])})),r})(e,t);y(r)})),onSearchReset:()=>y(null),placeholder:"Search Notification"}),!l&&r&&(0,n.jsx)(gse,{id:I5.NEW_CHAT}),!r&&!e&&!l&&a===C5.CHATS&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(xse,{subTab:w.REQUESTS,tabValue:"REQUESTS",isClickable:!!Object.keys(u).length}),s!==x5.REQUESTS&&(0,n.jsx)(mse,{})]}),!r&&!b&&a===C5.APP_NOTIFICATIONS&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(xse,{subTab:w.SPAM,tabValue:"SPAM",isClickable:!!Object.keys(g).length}),s!==x5.SPAM&&(0,n.jsx)(wse,{})]}),(a===C5.CHATS||r)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(kse,Object.assign({overflow:"hidden auto",justifyContent:"start",gap:"2.5px",width:"100%",flexDirection:"column"},{children:l&&!!Object.keys(l).length&&(0,n.jsx)(rse,{chatsFeed:l})})),l&&!Object.keys(l).length&&(0,n.jsx)(gse,{id:I5.SEARCH})]}),a===C5.APP_NOTIFICATIONS&&!r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_se,{children:b&&!!Object.keys(b).length&&(0,n.jsx)(ase,{notificationFeeds:b})}),b&&!Object.keys(b).length&&(0,n.jsx)(gse,{id:I5.SEARCH})]})]}))},Ise=(0,o.Ay)(D7).withConfig({displayName:"Sidebar__SubContainer",componentId:"sc-nibeu-0"})(["border-bottom:1px dashed #ededee;cursor:pointer;&:hover{background:#f4f5fa;}"]),kse=(0,o.Ay)(D7).withConfig({displayName:"Sidebar__ChatListCard",componentId:"sc-nibeu-1"})(["&::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;}&::-webkit-scrollbar{width:5px;}"]),_se=(0,o.Ay)(O7).withConfig({displayName:"Sidebar__NotificationListCard",componentId:"sc-nibeu-2"})(["overflow:hidden auto;padding:0 1px;&::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;}&::-webkit-scrollbar{width:5px;}"]),Tse=(0,o.Ay)(B7).withConfig({displayName:"Sidebar__TabTitleSpan",componentId:"sc-nibeu-3"})(["@media ","{font-size:14px;}"],c5.mobileL),Mse=()=>{const{activeSubTab:e}=(0,i.useContext)(T5),{selectedChatId:t,chatsFeed:r,requestsFeed:o,searchedChats:a}=(0,i.useContext)(y5);return(0,n.jsxs)(D7,Object.assign({height:"550px",width:"100%",maxHeight:"550px",overflow:"hidden"},{children:[!t&&!e&&(0,n.jsx)(Sse,{}),!t&&e===x5.REQUESTS&&(0,n.jsx)(nse,{}),e===x5.SPAM&&(0,n.jsx)(sse,{}),t&&(Object.keys(r||{}).length||Object.keys(o||{}).length||Object.keys(a||{}).length?(0,n.jsx)(Yae,{}):(0,n.jsx)(k7,{}))]}))},Pse=()=>{const{setNewChat:e,setActiveTab:t,setActiveSubTab:r}=(0,i.useContext)(T5),{setChatsFeed:o,setRequestsFeed:a,setSelectedChatId:s,setSearchedChats:c,chats:u,setConnectedProfile:l,requestsFeed:d,chatsFeed:f,selectedChatId:h,setFinishedFetchingChats:p,setFinishedFetchingRequests:g,setChats:m}=(0,i.useContext)(y5),{setInboxNotifsFeed:y,setSpamNotifsFeed:b,setFinishedFetchingInbox:v,setFinishedFetchingSpam:w}=(0,i.useContext)(w5),{decryptedPgpPvtKey:A,account:C,env:E,activeChosenTab:x,activeChat:S,onClose:I}=(0,i.useContext)(v5),[k,T]=(0,i.useState)(!1),{fetchChatProfile:M}=b9(),{fetchRequests:P}=A9(),{fetchChats:j}=w9(),{fetchChat:D}=y9(),O=(0,i.useRef)(null),{fetchUserSubscriptions:B}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{account:o,env:a,signer:s}=(0,i.useContext)(v5),{setSubscriptionStatus:c}=(0,i.useContext)(w5),u=(0,i.useCallback)((()=>pJ(void 0,void 0,void 0,(function*(){n(!0);try{const e=yield null==s?void 0:s.getChainId(),t=yield _.user.getSubscriptions({user:g9(o,e),env:a}),r=new Map;t.forEach((e=>r.set(e.channel,!0))),c(r)}catch(e){return n(!1),t(e.message),void console.log(e)}finally{n(!1)}}))),[o,a]);return{fetchUserSubscriptions:u,error:e,loading:r}})();v9({}),v9({socketType:E5.CHAT}),(0,i.useEffect)((()=>{o({}),a({}),y({}),b({}),v(!1),w(!1),p(!1),g(!1),x?(t(x),T(!0)):t(C5.CHATS),r(null),m(new Map),e(!1)}),[C,E,x]);(0,i.useEffect)((()=>{Object.keys(d).length||A&&pJ(void 0,void 0,void 0,(function*(){const e=yield P({page:1,requestLimit:K4}),t=Object.assign({},e);a(t)}))}),[P,A,E]);(0,i.useEffect)((()=>{Object.keys(f).length||A&&pJ(void 0,void 0,void 0,(function*(){const e=yield j({page:1,chatLimit:V4}),t=Object.assign({},e);o(t)}))}),[j,E,C]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){let e;C&&(e=yield M({profileId:C,env:E}),e&&l(e))}))}),[C]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){B()}))}),[E,C]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var e;if(S){const t=yield L8(S,E);if(t){T(!0),s(u8(t).toLowerCase());let r=f[u8(t).toLowerCase()]||d[u8(t).toLowerCase()];if(!r&&(r=yield D({recipientAddress:u8(t)}),!Object.keys(r||{}).length)){const e=yield R8({searchText:t,fetchChatProfile:M,env:E});e&&(r=E8({user:e}))}c({[null!==(e=r.did.toLowerCase())&&void 0!==e?e:r.chatId]:r})}else c(null),s(null)}else s(null),c(null)}))}),[S,E,C]);return(0,i.useEffect)((()=>{const e=O.current;if(!e)return;const t=t=>{const{scrollTop:r,scrollHeight:n,clientHeight:i}=e;r+i>=n&&t.deltaY>0&&t.stopPropagation()};return e.addEventListener("wheel",t),()=>{e.removeEventListener("wheel",t)}}),[]),(0,n.jsxs)(jse,Object.assign({width:"470px",flexDirection:"column",maxHeight:"600px",position:"fixed",background:"#fff",right:"12px",bottom:"18px",className:"modal",overflow:"hidden",ref:O},{children:[(0,n.jsx)(pae,{onMaximizeMinimizeToggle:null!=I?I:()=>{T(!k)},modalOpen:k}),k&&(0,n.jsx)(Mse,{})]}))},jse=(0,o.Ay)(D7).withConfig({displayName:"ChatAndNotification__Container",componentId:"sc-1521ie2-0"})(["border:1px solid #dddddf;padding:0 20px 0 21px;box-shadow:0px 0px 4px rgba(0,0,0,0.08),0px 0px 96px rgba(0,0,0,0.12);backdrop-filter:blur(5px);border-radius:8px;@media ","{width:330px;padding:0px 12px 0 12px;}"],c5.mobileL),Dse=({account:e,decryptedPgpPvtKey:t=null,activeTab:r=null,activeChat:i=null,onClose:o=null,signer:a=null,env:s=M4.ENV.PROD})=>{const c={account:l8(e),decryptedPgpPvtKey:t,activeChosenTab:r,activeChat:i,onClose:o,signer:a,env:s};return(0,n.jsx)(v5.Provider,Object.assign({value:c},{children:(0,n.jsx)(M5,{children:(0,n.jsx)(b5,{children:(0,n.jsx)(A5,{children:(0,n.jsx)(Pse,{})})})})}))},Ose=new Array(4);function Bse(){const e=Ose[0]^Ose[0]<<11;return Ose[0]=Ose[1],Ose[1]=Ose[2],Ose[2]=Ose[3],Ose[3]=Ose[3]^Ose[3]>>19^e^e>>8,(Ose[3]>>>0)/(1<<31>>>0)}function Nse(){return`hsl(${Math.floor(360*Bse())},${`${Math.floor(60*Bse())+40}%`},${`${Math.floor(25*(Bse()+Bse()+Bse()+Bse()))}%`})`}function Rse(e){const t={};return t.seed=e.seed||Math.floor(Math.random()*Math.pow(10,16)).toString(16),function(e){Ose.fill(0);for(let t=0;t(null==e?void 0:e.role)===Q9.ADMIN.toLowerCase(),zse=({dropdownCategoryValues:e,dropdownTypeValues:t,selectedTypeValue:r})=>{var n;return e[null===(n=t[r])||void 0===n?void 0:n.value]},Hse=({dropdownCategoryValues:e,dropdownTypeValues:t,selectedCategoryValue:r,selectedTypeValue:n})=>{const i=zse({dropdownCategoryValues:e,dropdownTypeValues:t,selectedTypeValue:n});return Array.isArray(i)?i[r].value:i.value},Vse=({dropdownCategoryValues:e,dropdownTypeValues:t,selectedCategoryValue:r,selectedTypeValue:n})=>{const i=Hse({dropdownCategoryValues:e,dropdownTypeValues:t,selectedTypeValue:n,selectedCategoryValue:r});return i===Y9||i===Z9||i===$9},Kse=({dropdownCategoryValues:e,dropdownTypeValues:t,selectedCategoryValue:r,selectedTypeValue:n})=>Hse({dropdownCategoryValues:e,dropdownTypeValues:t,selectedTypeValue:n,selectedCategoryValue:r})===$9,Gse=({dropdownCategoryValues:e,dropdownTypeValues:t,selectedCategoryValue:r,selectedTypeValue:n})=>Hse({dropdownCategoryValues:e,selectedTypeValue:n,dropdownTypeValues:t,selectedCategoryValue:r})===e7,qse=({dropdownCategoryValues:e,dropdownTypeValues:t,selectedCategoryValue:r,selectedTypeValue:n})=>{if(t[n].value===W9){if(Hse({dropdownCategoryValues:e,selectedTypeValue:n,dropdownTypeValues:t,selectedCategoryValue:r})===X9)return!0}return!1},Qse=(e,t)=>e[t].value===J9,Wse=({dropdownCategoryValues:e,dropdownTypeValues:t,selectedCategoryValue:r,dropdownSubCategoryValues:n,selectedTypeValue:i})=>{const o=zse({dropdownCategoryValues:e,dropdownTypeValues:t,selectedCategoryValue:r,selectedTypeValue:i});return Array.isArray(o)?n[o[r].value]:n[o.value]},Jse=({setValidationErrors:e,selectedCategoryValue:t,selectedTypeValue:r,dropdownCategoryValues:n,dropdownTypeValues:i,contract:o,setUnit:a,setDecimals:s,selectedChainValue:c,dropdownChainsValues:u,tokenId:l})=>pJ(void 0,void 0,void 0,(function*(){e((e=>Object.assign(Object.assign({},e),{tokenError:void 0})));const d=(({dropdownTypeValues:e,selectedTypeValue:t})=>e[t].value||"PUSH")({selectedTypeValue:r,dropdownTypeValues:i}),f=(({dropdownCategoryValues:e,selectedCategoryValue:t})=>e.PUSH[t].value||Y9)({dropdownCategoryValues:n,selectedCategoryValue:t}),h=((e,t)=>e[t].value||"eip155:1")(u,c);yield((e,t,r,n,i,o,a)=>pJ(void 0,void 0,void 0,(function*(){const s=S.PW(e);if("GUILD"===t)return[!1,""];if(!s)return i(r===Y9||r===$9?"TOKEN":"NFT"),[!0,`${e} is invalid invalid contract address`];const c=parseInt(n.split(":")[1]);if(r===Y9){const[t,r]=yield f7(e,c);if(t){const t=`${e} is invalid ERC20 on chain ${c}`;return i("TOKEN"),o(18),[!0,t]}return i(r.symbol),o(r.decimals),[!1,""]}if(r===Z9){const[t,r]=yield h7(e,c);if(t){const t=`${e} is invalid ERC721 on chain ${c}`;return i("NFT"),o(18),[!0,t]}return i(r),[!1,""]}{const[t,r]=yield p7(e,c,a);if(t){const t=`${e} is invalid ERC1155 on chain ${c}`;return i("TOKEN"),o(18),[!0,t]}return i(r),o(18),[!1,""]}})))(o,d,f,h,a,s,l)})),Yse=({type:e,category:t,contract:r,quantity:n,decimals:i,unit:o,url:a,inviteCheckboxes:s,guildComparison:c,specificRoleId:u,guildId:l,dropdownQuantityRangeValues:d,selectedChainValue:f,dropdownChainsValues:h,tokenId:p})=>{if("PUSH"===e){if(t===Y9||t===Z9||t===$9){return{contract:`${h[f].value||"eip155:1"}:${r}`,amount:n.value,comparison:d[n.range].value,decimals:t===Y9||t===$9?i:void 0,token:o,tokenId:p}}if(t===X9){const e=[];return s.admin&&e.push("ADMIN"),s.owner&&e.push("OWNER"),{inviterRoles:e}}return{url:a}}return{id:l,comparison:"specific"===c?"":c,role:"specific"===c?u:"*"}},Zse=(e,t,r)=>{let n=!1;return e&&t.map((t=>{t[r]==e[r]&&(n=!0)})),n},$se=e=>{let t;if(e.chatTimestamp){const r=s()(),n=s()(e.chatTimestamp);if(n.isSame(r,"day"))t=n.format("HH:mm");else if(n.isSame(r.subtract(1,"day"),"day"))t="Yesterday";else{r.year(),n.year();t=n.format("L")}}return null!=t?t:""},Xse=()=>{let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let r=0;r<32;r++)e+=t.charAt(Math.floor(62*Math.random()));return e},ece=e=>{let t="",r="";const n=e;"Reply"===n.message.type?(n.message.type,t=n.message.content.messageType,r=n.message.content.messageObj.content):(n.message.type,t=n.message.type,r=n.message.content);return{chatId:e.chatId,chatPic:null,chatParticipant:e.meta.group?null:"chat.request"===(null==e?void 0:e.event)?"self"===(null==e?void 0:e.origin)?e.to[0]:e.from:e.to[0],chatGroup:e.meta.group,chatTimestamp:Number(e.timestamp),chatMsg:{messageMeta:t,messageType:t,messageContent:r}}},tce=(e,t)=>{var r;return e&&null!==(r=N8(t))&&void 0!==r?r:e},rce=e=>pJ(void 0,void 0,void 0,(function*(){return e.type===J9?(e=>pJ(void 0,void 0,void 0,(function*(){const{data:t}=e,r={};if(!t.id)return Object.assign(Object.assign({},r),{guildId:"Guild ID is missing"});try{const e=yield Qm().get(`https://api.guild.xyz/v2/guilds/guild-page/${t.id}`);if(200!==e.status)return Object.assign(Object.assign({},r),{guildId:"Guild ID is missing"});if("*"===t.role){if("all"!==t.comparison&&"any"!==t.comparison)return Object.assign(Object.assign({},r),{guildComparison:"Invalid comparison value"})}else{if(!t.role)return Object.assign(Object.assign({},r),{guildRole:"Invalid role value"});if(!e.data.roles.some((e=>e.id.toString()===t.role)))return Object.assign(Object.assign({},r),{guildRole:"Invalid Guild Role ID"});if(t.comparison)return Object.assign(Object.assign({},r),{guildComparison:"Comparison should be empty for specific role"})}}catch(ys){return Object.assign(Object.assign({},r),{guildId:"Error validating Guild ID"})}return{}})))(e):e.category===X9?{}:e.category===e7?(e=>pJ(void 0,void 0,void 0,(function*(){const{data:t,type:r,subcategory:n}=e;if(!t.url)return{url:"URL is missing"};if(!(null==t?void 0:t.url.startsWith("http://"))&&!t.url.startsWith("https://"))return{url:'Invalid URL protocol. Only "http://" and "https://" are allowed.'};if((null==t?void 0:t.url.length)>2083)return{url:"URL is too long."};if("GET"===n){if(!(null==t?void 0:t.url.includes("{{user_address}}")))return{url:"GET request URL should have the '{{user_address}}' template."};if(((null==t?void 0:t.url.match(/{{user_address}}/g))||[]).length>1)return{url:"GET request URL should not have multiple '{{user_address}}' templates."}}return{}})))(e):(e=>pJ(void 0,void 0,void 0,(function*(){var t,r,n,i;const o=e.data,a=(o.contract||"").split(":");if(3!==a.length)return{tokenError:"Invalid contract address"};const[s,c]=[parseInt(a[1]),a[2]];if(!S.PW(c))return{tokenError:"Invalid contract address"};let u;if(u=e.category===$9?null===(r=yield p7(c,s,null!==(t=o.tokenId)&&void 0!==t?t:0))||void 0===r?void 0:r[0]:e.category===Z9?null===(n=yield h7(c,s))||void 0===n?void 0:n[0]:null===(i=yield f7(c,s))||void 0===i?void 0:i[0],u)return{tokenError:`Invalid ${e.category} contract`};if(!o.amount)return{tokenAmount:"Amount cannot be 0"};if(o.amount<0)return{tokenAmount:"Amount cannot be in negative"};if(e.category===$9){if(void 0===o.tokenId||Number.isNaN(o.tokenId))return{tokenId:"Invalid Token ID"};if(o.tokenId<0)return{tokenId:"Token ID cannot be in negative"}}return{}})))(e)})),nce=e=>{var t,r,o,a,s,c,u,l,d,f,h,p,g,m,y,b,v,w,A,C,E,x,S,I,k,T,M,P,j,D,O,B;const{user:N}=P5(),R=(0,i.useContext)(Pae),[L,F]=(0,i.useState)(""),[U,z]=(0,i.useState)(null);(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var t;const r=yield(n=e.chatPreviewPayload,(null==N?void 0:N.env)||_.CONSTANTS.ENV.PROD,pJ(void 0,void 0,void 0,(function*(){let e=null==n?void 0:n.chatParticipant;return(null==n?void 0:n.chatGroup)||e.includes("eip155:")&&(e=e.replace("eip155:","")),e})));var n;if(F(r),!(null===(t=e.chatPreviewPayload)||void 0===t?void 0:t.chatGroup))try{const e=yield d8(r,null==N?void 0:N.env);e&&z(e)}catch($R){}}))}),[]);const H=!!(null===(t=null==e?void 0:e.badge)||void 0===t?void 0:t.count),V=null==e?void 0:e.selected,K="PushBot"===(null===(r=null==e?void 0:e.chatPreviewPayload)||void 0===r?void 0:r.chatParticipant)||(null===(o=null==e?void 0:e.chatPreviewPayload)||void 0===o?void 0:o.chatParticipant)===Z4,G=(0,i.useRef)(null);(0,i.useEffect)((()=>{var t,r,n,i;if(G.current&&!(null===(t=e.chatPreviewPayload)||void 0===t?void 0:t.chatPic)&&(null===(r=e.chatPreviewPayload)||void 0===r?void 0:r.chatParticipant)){const t=Fse(l8(null!==(i=null===(n=e.chatPreviewPayload)||void 0===n?void 0:n.chatParticipant)&&void 0!==i?i:"")||"",{size:8,scale:6});G.current.innerHTML="",G.current.appendChild(t)}}),[null===(a=e.chatPreviewPayload)||void 0===a?void 0:a.chatParticipant]);const q=[];let Q=!1;return"Reply"===(null===(c=null===(s=null==e?void 0:e.chatPreviewPayload)||void 0===s?void 0:s.chatMsg)||void 0===c?void 0:c.messageMeta)&&(q.push((0,n.jsx)(Iae,{color:null===(u=R.iconColor)||void 0===u?void 0:u.emoji,size:null===(l=R.fontSize)||void 0===l?void 0:l.chatPreviewMessageText})),Q=!0),"Image"!==(null===(f=null===(d=null==e?void 0:e.chatPreviewPayload)||void 0===d?void 0:d.chatMsg)||void 0===f?void 0:f.messageType)&&"GIF"!==(null===(p=null===(h=null==e?void 0:e.chatPreviewPayload)||void 0===h?void 0:h.chatMsg)||void 0===p?void 0:p.messageType)&&"MediaEmbed"!==(null===(m=null===(g=null==e?void 0:e.chatPreviewPayload)||void 0===g?void 0:g.chatMsg)||void 0===m?void 0:m.messageType)||(q.push((0,n.jsx)(fI,{})),q.push((0,n.jsx)(sce,Object.assign({theme:R},{children:"Media"})))),"File"===(null===(b=null===(y=null==e?void 0:e.chatPreviewPayload)||void 0===y?void 0:y.chatMsg)||void 0===b?void 0:b.messageType)&&(q.push((0,n.jsx)(hI.Gp9,{})),q.push((0,n.jsx)(sce,Object.assign({theme:R},{children:"File"})))),(Q||"Text"===(null===(w=null===(v=null==e?void 0:e.chatPreviewPayload)||void 0===v?void 0:v.chatMsg)||void 0===w?void 0:w.messageType)||"Reaction"===(null===(C=null===(A=null==e?void 0:e.chatPreviewPayload)||void 0===A?void 0:A.chatMsg)||void 0===C?void 0:C.messageType))&&q.push((0,n.jsx)(sce,Object.assign({theme:R},{children:null===(x=null===(E=null==e?void 0:e.chatPreviewPayload)||void 0===E?void 0:E.chatMsg)||void 0===x?void 0:x.messageContent}))),(0,n.jsx)(ice,Object.assign({margin:null===(S=R.margin)||void 0===S?void 0:S.chatPreviewMargin,cursor:"pointer"},{children:(0,n.jsxs)(L7,Object.assign({display:"flex",width:"100%",height:"70px",minHeight:"70px",cursor:"pointer",borderRadius:null===(I=R.borderRadius)||void 0===I?void 0:I.chatPreview,padding:null===(k=R.padding)||void 0===k?void 0:k.chatPreviewPadding,border:null===(T=R.border)||void 0===T?void 0:T.chatPreview,flexDirection:"row",background:e.selected?null===(M=R.backgroundColor)||void 0===M?void 0:M.chatPreviewSelectedBackground:null===(P=R.backgroundColor)||void 0===P?void 0:P.chatPreviewBackground,hoverBackground:null===(j=R.backgroundColor)||void 0===j?void 0:j.chatPreviewHoverBackground,onClick:()=>{var t,r;(null==e?void 0:e.setSelected)&&e.setSelected((null===(t=null==e?void 0:e.chatPreviewPayload)||void 0===t?void 0:t.chatId)||"",null===(r=null==e?void 0:e.chatPreviewPayload)||void 0===r?void 0:r.chatParticipant)}},{children:[(0,n.jsx)(D7,Object.assign({justifyContent:"start",flexDirection:"row",alignItems:"center",alignSelf:"center",borderRadius:"50%",overflow:"hidden",width:"48px",height:"48px",cursor:"pointer"},{children:(null===(D=e.chatPreviewPayload)||void 0===D?void 0:D.chatPic)?(0,n.jsx)(R7,{src:(null===(O=e.chatPreviewPayload)||void 0===O?void 0:O.chatPic)||void 0,height:"48px",width:"48px"}):(0,n.jsx)(O7,{ref:G,height:"48px",width:"48px",borderRadius:"50%",overflow:"hidden"})})),(0,n.jsxs)(D7,Object.assign({justifyContent:"center",gap:"6px",cursor:"pointer",flexDirection:"column",alignItems:"center",alignSelf:"stretch",overflow:"hidden",margin:"0 5px 0 10px",flex:"1"},{children:[(0,n.jsxs)(D7,Object.assign({flex:"initial",justifyContent:"flex-start",flexDirection:"row",alignItems:"flex-start",alignSelf:"stretch",overflow:"hidden",cursor:"pointer"},{children:[(0,n.jsx)(oce,Object.assign({theme:R},{children:(t=>{var r;return(null===(r=e.chatPreviewPayload)||void 0===r?void 0:r.chatGroup)?t:U||t})(L)})),(0,n.jsx)(ace,Object.assign({theme:R},{children:$se(e.chatPreviewPayload)}))]})),(0,n.jsxs)(D7,Object.assign({justifyContent:"flex-start",flexDirection:"row",alignItems:"flex-start",alignSelf:"stretch",overflow:"hidden",flex:"initial",cursor:"pointer",className:e.readmode?"skeleton":"",animation:R.skeletonBG},{children:[(0,n.jsx)(sce,Object.assign({theme:R},{children:(0,n.jsx)(D7,Object.assign({justifyContent:"flex-start",flexDirection:"row",alignItems:"center",alignSelf:"stretch",overflow:"hidden",flex:"1",gap:"4px"},{children:q}))})),H&&!(K||V&&H)&&(0,n.jsx)(cce,Object.assign({theme:R},{children:null===(B=e.badge)||void 0===B?void 0:B.count}))]}))]}))]}))}))},ice=(0,o.Ay)(D7).withConfig({displayName:"ChatPreview__ChatPreviewContainer",componentId:"sc-15lhvtd-0"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar{width:5px;}"," overscroll-behavior:contain;scroll-behavior:smooth;"],(e=>e.theme.scrollbarColor),(({blur:e})=>e&&"\n filter: blur(12px);\n ")),oce=o.Ay.div.withConfig({displayName:"ChatPreview__Account",componentId:"sc-15lhvtd-1"})(["font-weight:",";font-size:",";color:",";flex:1;align-self:stretch;text-align:start;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-right:10px;"],(e=>{var t;return null===(t=e.theme.fontWeight)||void 0===t?void 0:t.chatPreviewParticipantText}),(e=>{var t;return null===(t=e.theme.fontSize)||void 0===t?void 0:t.chatPreviewParticipantText}),(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.chatPreviewParticipantText})),ace=o.Ay.div.withConfig({displayName:"ChatPreview__Dated",componentId:"sc-15lhvtd-2"})(["font-weight:",";font-size:",";color:",";"],(e=>{var t;return null===(t=e.theme.fontWeight)||void 0===t?void 0:t.chatPreviewDateText}),(e=>{var t;return null===(t=e.theme.fontSize)||void 0===t?void 0:t.chatPreviewDateText}),(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.chatPreviewDateText})),sce=o.Ay.div.withConfig({displayName:"ChatPreview__Message",componentId:"sc-15lhvtd-3"})(["font-weight:",";font-size:",";color:",";flex:1;align-self:stretch;text-align:start;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-right:10px;"],(e=>{var t;return null===(t=e.theme.fontWeight)||void 0===t?void 0:t.chatPreviewMessageText}),(e=>{var t;return null===(t=e.theme.fontSize)||void 0===t?void 0:t.chatPreviewMessageText}),(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.chatPreviewMessageText})),cce=o.Ay.div.withConfig({displayName:"ChatPreview__Badge",componentId:"sc-15lhvtd-4"})(["background:",";font-weight:",";font-size:",";color:",";padding:0px 8px;text-overflow:ellipsis;border-radius:24px;align-self:center;"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.chatPreviewBadgeBackground}),(e=>{var t;return null===(t=e.theme.fontWeight)||void 0===t?void 0:t.chatPreviewBadgeText}),(e=>{var t;return null===(t=e.theme.fontSize)||void 0===t?void 0:t.chatPreviewBadgeText}),(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.chatPreviewBadgeText})),uce=()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{user:o}=P5(),a=(0,i.useCallback)((({groupId:t})=>pJ(void 0,void 0,void 0,(function*(){let r;n(!0);try{r=yield null==o?void 0:o.chat.group.info(t)}catch(e){return void console.log(e)}return r}))),[o]);return{getGroupByIDnew:a,error:e,loading:r}},lce={LIGHT:"light",DARK:"dark"};var dce,fce;!function(e){e.CHAT_PREVIEW_LIST_PRELOAD_ERROR="CPL-001",e.CHAT_PREVIEW_LIST_LOAD_ERROR="CPL-002",e.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR="CPL-003",e.CHAT_PREVIEW_LIST_INSUFFICIENT_INPUT="CPL-004"}(dce||(dce={})),function(e){e.CHAT_PREVIEW_LIST_LOAD_ERROR="CPSL-001",e.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR="CPSL-002",e.CHAT_PREVIEW_LIST_INSUFFICIENT_INPUT="CPSL-003"}(fce||(fce={}));const hce=e=>{var t,r,o,a,s;const{user:c}=P5();G9(),uce();const{fetchLatestMessage:u,fetchChatList:l}=j5(),[d,f]=(0,i.useState)({nonce:"INITIAL_NONCE",items:[],page:0,loading:!1,loaded:!1,reset:!1,resume:!1,errored:!1,error:null}),[h,p]=(0,i.useState)({selectedChatId:void 0,badges:{}}),g=(0,i.useContext)(Pae);O5();const m=(0,i.useRef)(null),{chatStream:y,chatAcceptStream:b,chatRequestStream:v,chatRejectStream:w,groupCreateStream:A}=P5();(0,i.useEffect)((()=>{c&&((null==e?void 0:e.prefillChatPreviewList)||(console.debug("UIWeb::ChatPreviewList::loadMoreChats:: Resetting state",c,null==e?void 0:e.prefillChatPreviewList,null==e?void 0:e.searchParamter,e.listType,e.overrideAccount),f({nonce:Xse(),items:[],page:0,loading:!0,loaded:!1,reset:!0,resume:!1,errored:!1,error:null})))}),[c,null==e?void 0:e.prefillChatPreviewList,null==e?void 0:e.searchParamter,e.listType,e.overrideAccount]),(0,i.useEffect)((()=>{c&&(e.prefillChatPreviewList||(d.reset?(C(!0),P()):(d.loading||d.resume)&&C(!1)))}),[d.loading,d.resume,d.reset,d.nonce]);const C=(t=!1)=>pJ(void 0,void 0,void 0,(function*(){const{type:r,overrideAccount:n}=k(),i=t?1:d.page+1,o=d.nonce;if(r===_.CONSTANTS.CHAT.LIST_TYPE.CHATS||r===_.CONSTANTS.CHAT.LIST_TYPE.REQUESTS){const a=yield l({type:r,page:i,limit:10,overrideAccount:n});if(console.debug(`UIWeb::ChatPreviewList::loadMoreChats:: Fetched type - ${r} - nextpage - ${i} - currentNonce - ${o} - chatList - ${a}`),a){const r=(e=>{const t=e.map((e=>{let t="",r="";const n=e;return"Reply"===n.msg.messageType?"object"!=typeof n.msg.messageObj||Array.isArray(n.msg.messageObj)||(t=n.msg.messageObj.content.messageType,n.msg.messageObj.content.messageObj&&(r=n.msg.messageObj.content.messageObj.content)):"object"!=typeof n.msg.messageObj||Array.isArray(n.msg.messageObj)||(t=n.msg.messageType,n.msg.messageObj&&(r=n.msg.messageObj.content)),{chatId:e.chatId,chatPic:e.groupInformation?e.groupInformation.groupImage:e.profilePicture,chatParticipant:e.groupInformation?e.groupInformation.groupName:e.did,chatGroup:!!e.groupInformation,chatTimestamp:e.msg.timestamp,chatMsg:{messageMeta:e.msg.messageType,messageType:t,messageContent:r}}})).filter(((e,t,r)=>t===r.findIndex((t=>t.chatId===e.chatId))));return t})(a);if(o!==d.nonce||d.page+1!==i)return;f((e=>({nonce:Xse(),items:t?r:[...e.items,...r].filter(((e,t,r)=>t===r.findIndex((t=>t.chatId===e.chatId)))),page:i,loading:!1,loaded:r.length<10,reset:!1,resume:!1,errored:!1,error:null}))),(null==e?void 0:e.onPaging)&&e.onPaging([...d.items,...r])}else{if(o!==d.nonce||d.page+1!==i)return;const e=t?{code:dce.CHAT_PREVIEW_LIST_PRELOAD_ERROR,message:"No chats found"}:{code:dce.CHAT_PREVIEW_LIST_LOAD_ERROR,message:"Unable to load more chats"};f((t=>Object.assign(Object.assign({},t),{nonce:Xse(),reset:!1,resume:!1,errored:!0,error:e})))}}})),E=(e,t)=>{const r=[...e,...d.items].filter(((e,t,r)=>t===r.findIndex((t=>t.chatId===e.chatId))));f((e=>Object.assign(Object.assign({},e),{items:[...r]}))),t&&e.forEach((e=>{h.selectedChatId!==e.chatId&&(console.debug("UIWeb::ChatPreviewList::incrementing badge",e),M(e.chatId,h.badges[e.chatId]?h.badges[e.chatId]+1:1))}))},x=e=>{const t=[...d.items].filter((t=>!e.includes(t.chatId)));f((e=>Object.assign(Object.assign({},e),{items:t}))),e.forEach((e=>{M(e,0)}))},S=e=>pJ(void 0,void 0,void 0,(function*(){const t={chatId:null==e?void 0:e.chatId,chatPic:null==e?void 0:e.meta.image,chatParticipant:null==e?void 0:e.meta.name,chatGroup:!0,chatTimestamp:void 0,chatMsg:{messageMeta:"",messageType:"",messageContent:""}};E([t],!1)})),I=e=>pJ(void 0,void 0,void 0,(function*(){if(!c)return;const t=ece(e),r=d.items.find((e=>e.chatId===t.chatId));if(r)t.chatPic=r.chatPic,t.chatParticipant=r.chatParticipant;else if(t.chatGroup){const e=yield c.chat.group.info(t.chatId);t.chatPic=e.groupImage,t.chatParticipant=e.groupName}else{const e=yield c.profile.info({overrideAccount:t.chatParticipant});t.chatPic=e.picture}E([t],!0)})),k=()=>({type:e.listType?e.listType:_.CONSTANTS.CHAT.LIST_TYPE.CHATS,overrideAccount:e.overrideAccount?e.overrideAccount:void 0}),T=(t,r)=>{p((e=>({selectedChatId:t,badges:Object.assign(Object.assign({},e.badges),{[t]:0})}))),(null==e?void 0:e.onChatSelected)&&e.onChatSelected(t,r)},M=(e,t)=>{p((r=>Object.assign(Object.assign({},r),{badges:Object.assign(Object.assign({},r.badges),{[e]:r.badges?t:0})})))},P=()=>{p({selectedChatId:void 0,badges:{}})};(0,i.useEffect)((()=>{(null==e?void 0:e.prefillChatPreviewList)&&(null==e?void 0:e.prefillChatPreviewList.length)&&f({nonce:Xse(),items:null==e?void 0:e.prefillChatPreviewList.map((e=>e.chatPreviewPayload)),page:1,loading:!1,loaded:!1,reset:!1,resume:!1,errored:!1,error:null})}),[null==e?void 0:e.prefillChatPreviewList]),(0,i.useEffect)((()=>{(null==e?void 0:e.onLoading)&&(null==e||e.onLoading({preload:0===d.page,loading:d.loading,finished:d.loaded,paging:d.page>0}))}),[d.loading,d.loaded,d.page]),(0,i.useEffect)((()=>{var e;if(0!==d.page&&m&&(null==m?void 0:m.current)&&(null===(e=null==m?void 0:m.current)||void 0===e?void 0:e.parentElement)&&!d.loading){if(console.debug("UIWeb::ChatPreviewList::useEffect[chatPreviewList.items]::Checking if we need to load more chats::",d,m.current.clientHeight,25,m.current.parentElement.clientHeight,m.current.clientHeight+25Object.assign(Object.assign({},e),{nonce:Xse(),loading:!0})))}}),[d.items]),(0,i.useEffect)((()=>{const t=Object.values(h.badges).reduce(((e,t)=>e>0?1+t:t),0);(null==e?void 0:e.onUnreadCountChange)&&e.onUnreadCountChange(t)}),[h.badges]),(0,i.useEffect)((()=>{(null==e?void 0:e.onChatsCountChange)&&e.onChatsCountChange(d.items.length)}),[d.items]),(0,i.useEffect)((()=>{Object.keys(y||{}).length>0&&y.constructor===Object&&e.listType===_.CONSTANTS.CHAT.LIST_TYPE.CHATS&&I(y)}),[y]),(0,i.useEffect)((()=>{Object.keys(A).length>0&&A.constructor===Object&&(e.listType===_.CONSTANTS.CHAT.LIST_TYPE.CHATS&&"self"===A.origin||e.listType===_.CONSTANTS.CHAT.LIST_TYPE.REQUESTS&&"other"===A.origin)&&S(A)}),[A]),(0,i.useEffect)((()=>{Object.keys(v||{}).length>0&&v.constructor===Object&&(e.listType===_.CONSTANTS.CHAT.LIST_TYPE.CHATS&&"self"===v.origin||e.listType===_.CONSTANTS.CHAT.LIST_TYPE.REQUESTS&&"other"===v.origin)&&I(v)}),[v]),(0,i.useEffect)((()=>{var t;Object.keys(b||{}).length>0&&b.constructor===Object&&(t=b,pJ(void 0,void 0,void 0,(function*(){c&&(e.listType===_.CONSTANTS.CHAT.LIST_TYPE.REQUESTS?x([t.chatId]):I(t))})))}),[b]),(0,i.useEffect)((()=>{Object.keys(w||{}).length>0&&w.constructor===Object&&x([w.chatId])}),[w]);return(0,n.jsxs)(pce,Object.assign({padding:null===(t=g.padding)||void 0===t?void 0:t.chatPreviewListPadding,margin:null===(r=g.margin)||void 0===r?void 0:r.chatPreviewListMargin,blur:!1,ref:m,theme:g,onScroll:(null==e?void 0:e.prefillChatPreviewList)?void 0:()=>pJ(void 0,void 0,void 0,(function*(){const e=m.current;if(e){const t=e.clientHeight;!(e.scrollHeight-e.scrollTop-t<=25)||d.loading||d.loaded||d.reset||d.errored||f((e=>Object.assign(Object.assign({},e),{nonce:Xse(),loading:!0})))}}))},{children:[d.items.map(((t,r)=>(0,n.jsx)(nce,{chatPreviewPayload:t,badge:(null==e?void 0:e.prefillChatPreviewList)&&(null==e?void 0:e.prefillChatPreviewList[r].badge)?null==e?void 0:e.prefillChatPreviewList[r].badge:h.badges?{count:h.badges[t.chatId]}:{count:0},selected:(null==e?void 0:e.prefillChatPreviewList)&&(null==e?void 0:e.prefillChatPreviewList[r].selected)?null==e?void 0:e.prefillChatPreviewList[r].selected:h.selectedChatId===t.chatId,setSelected:(null==e?void 0:e.prefillChatPreviewList)&&(null==e?void 0:e.prefillChatPreviewList[r].setSelected)?null==e?void 0:e.prefillChatPreviewList[r].setSelected:T,readmode:null==c?void 0:c.readmode()},`${null==c?void 0:c.uid}-${t.chatId}`))),d.errored&&(0,n.jsxs)(D7,Object.assign({padding:"10px",flexDirection:"column"},{children:[(0,n.jsx)(B7,Object.assign({margin:"0 0 10px 0"},{children:null===(o=d.error)||void 0===o?void 0:o.message})),!((null===(a=d.error)||void 0===a?void 0:a.code)===dce.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR||(null===(s=d.error)||void 0===s?void 0:s.code)===dce.CHAT_PREVIEW_LIST_INSUFFICIENT_INPUT)&&(0,n.jsx)(L7,Object.assign({onClick:()=>{const e=d.error?d.error.code:dce.CHAT_PREVIEW_LIST_PRELOAD_ERROR;f((t=>Object.assign(Object.assign({},t),{items:e===dce.CHAT_PREVIEW_LIST_PRELOAD_ERROR?[]:t.items,page:e===dce.CHAT_PREVIEW_LIST_PRELOAD_ERROR?0:t.page,loading:e===dce.CHAT_PREVIEW_LIST_LOAD_ERROR,reset:e===dce.CHAT_PREVIEW_LIST_PRELOAD_ERROR,resume:e===dce.CHAT_PREVIEW_LIST_LOAD_ERROR,errored:!1})))},background:"rgb(226,8,128)",color:"#fff",borderRadius:"16px",padding:"4px 12px"},{children:"Refresh"}))]})),d.loading&&!d.errored&&(0,n.jsx)(D7,Object.assign({padding:"10px",flexDirection:"column"},{children:(0,n.jsx)(k7,{color:g.spinnerColor})}))]}),null==c?void 0:c.uid)},pce=(0,o.Ay)(D7).withConfig({displayName:"ChatPreviewList__ChatPreviewListContainer",componentId:"sc-b5umdu-0"})(["height:auto;overflow:hidden auto;flex-direction:column;width:100%;justify-content:start;box-sizing:border-box;&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar{width:5px;}overscroll-behavior:contain;scroll-behavior:smooth;"],(e=>e.theme.scrollbarColor)),gce=e=>{var t,r,o,a;const{user:s}=P5(),{getGroupByIDnew:c}=uce(),[u,l]=(0,i.useState)({nonce:"INITIAL_NONCE",items:[],page:0,loading:!1,loaded:!1,reset:!1,resume:!1,errored:!1,error:null}),[d,f]=(0,i.useState)({selectedChatId:void 0,badges:{}}),h=(0,i.useContext)(Pae),{fetchChat:p}=O5(),g=(0,i.useRef)(null),{chatStream:m,chatAcceptStream:y,chatRequestStream:b,chatRejectStream:v,groupCreateStream:w}=P5();(0,i.useEffect)((()=>{s&&l({nonce:Xse(),items:[],page:0,loading:!0,loaded:!1,reset:!0,resume:!1,errored:!1,error:null})}),[s,null==e?void 0:e.searchParamter]),(0,i.useEffect)((()=>{if(!s)return;let e;return u.reset&&(e=setTimeout((()=>{A(!0),S()}),500)),()=>clearTimeout(e)}),[u.reset,u.nonce]);const A=(t=!1)=>pJ(void 0,void 0,void 0,(function*(){var r,n;t||u.page;const i=u.nonce;let o={code:fce.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR,message:"Invalid search"},a=!1,d={chatId:void 0,chatPic:null,chatParticipant:"",chatGroup:!1,chatTimestamp:void 0,chatMsg:{messageMeta:"",messageType:"",messageContent:""}};if((null==e?void 0:e.searchParamter)&&(null==e?void 0:e.searchParamter.length)>3){console.debug("UIWeb::components::ChatPreviewSearchList::loadMoreChats::starting search",e.searchParamter,u.nonce);const t=null==e?void 0:e.searchParamter;let i=t;N8(t)&&(i=yield O8(t,s));try{const e=yield p({chatId:i});if(e)if(console.debug("UIWeb::components::ChatPreviewSearchList::loadMoreChats::chatInfo",e,u.nonce),null===(r=null==e?void 0:e.meta)||void 0===r?void 0:r.group){const t=yield c({groupId:i});t&&(d=Object.assign(Object.assign({},d),{chatId:i,chatParticipant:null==t?void 0:t.groupName,chatGroup:!0,chatPic:(null==t?void 0:t.groupImage)||null,chatMsg:{messageMeta:"Text",messageType:"Text",messageContent:"CHATS"===(null==e?void 0:e.list)?"Resume Conversation!":"Join Group!"}}),a=!0)}else{const r=yield null==s?void 0:s.info({overrideAccount:e.recipient});console.debug("UIWeb::components::ChatPreviewSearchList::loadMoreChats::userProfile",r),d=Object.assign(Object.assign({},d),{chatId:i,chatParticipant:tce(i,t),chatGroup:!1,chatPic:(null===(n=null==r?void 0:r.profile)||void 0===n?void 0:n.picture)||null,chatMsg:{messageMeta:"Text",messageType:"Text",messageContent:"CHATS"===(null==e?void 0:e.list)?"Resume Chat!":"Start Chat!"}}),a=!0}else o={code:fce.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR,message:"Invalid search"}}catch($R){o={code:fce.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR,message:"Invalid search"}}}else(null==e?void 0:e.searchParamter)?o={code:fce.CHAT_PREVIEW_LIST_INSUFFICIENT_INPUT,message:"Enter at least 4 characters to search"}:a=!0;i===u.nonce?(console.debug("UIWeb::components::ChatPreviewSearchList::loadMoreChats::Resolved search result",u.nonce,d,a),l((e=>Object.assign(Object.assign({},e),{items:a?[d]:[],page:1,loading:!1,loaded:!1,reset:!1,resume:!1,errored:!a,error:a?null:o})))):console.debug("UIWeb::components::ChatPreviewSearchList::loadMoreChats::Resolved search but nonce mismatch",u.nonce,d,a)})),C=e=>pJ(void 0,void 0,void 0,(function*(){if(!s)return;const t=ece(e),r=u.items.find((e=>{var r,n;return e.chatId===t.chatId||l8(null!==(r=e.chatId)&&void 0!==r?r:"")===l8(null!==(n=t.chatParticipant)&&void 0!==n?n:"")}));r&&(t.chatId=r.chatId,t.chatPic=r.chatPic,t.chatParticipant=r.chatParticipant,((e,t)=>{const r=[...e,...u.items].filter(((e,t,r)=>t===r.findIndex((t=>t.chatId===e.chatId))));l((e=>Object.assign(Object.assign({},e),{items:[...r]}))),t&&e.forEach((e=>{d.selectedChatId!==e.chatId&&(console.debug("UIWeb::components::ChatPreviewSearchList::incrementing badge",e),x(e.chatId,d.badges[e.chatId]?d.badges[e.chatId]+1:1))}))})([t],!0))})),E=(t,r)=>{f((e=>({selectedChatId:t,badges:Object.assign(Object.assign({},e.badges),{[t]:0})}))),(null==e?void 0:e.onChatSelected)&&e.onChatSelected(t,r)},x=(e,t)=>{f((r=>Object.assign(Object.assign({},r),{badges:Object.assign(Object.assign({},r.badges),{[e]:r.badges?t:0})})))},S=()=>{f({selectedChatId:void 0,badges:{}})};(0,i.useEffect)((()=>{(null==e?void 0:e.onLoading)&&(null==e||e.onLoading({preload:0===u.page,loading:u.loading,finished:u.loaded,paging:u.page>0}))}),[u.loading,u.loaded,u.page]),(0,i.useEffect)((()=>{const t=Object.values(d.badges).reduce(((e,t)=>e>0?1+t:t),0);(null==e?void 0:e.onUnreadCountChange)&&e.onUnreadCountChange(t)}),[d.badges]),(0,i.useEffect)((()=>{(null==e?void 0:e.onChatsCountChange)&&e.onChatsCountChange(u.items.length)}),[u.items]),(0,i.useEffect)((()=>{Object.keys(m||{}).length>0&&m.constructor===Object&&C(m)}),[m]),(0,i.useEffect)((()=>{var e;Object.keys(y||{}).length>0&&y.constructor===Object&&(e=y,pJ(void 0,void 0,void 0,(function*(){s&&C(e)})))}),[y]),(0,i.useEffect)((()=>{Object.keys(b||{}).length>0&&b.constructor===Object&&C(b)}),[b]);return(0,n.jsxs)(mce,Object.assign({padding:null===(t=h.padding)||void 0===t?void 0:t.chatPreviewListPadding,margin:null===(r=h.margin)||void 0===r?void 0:r.chatPreviewListMargin,blur:!1,ref:g,theme:h,onScroll:(null==e?void 0:e.prefillChatPreviewList)?void 0:()=>pJ(void 0,void 0,void 0,(function*(){const e=g.current;if(e){const t=e.clientHeight;!(e.scrollHeight-e.scrollTop-t<=25)||u.loading||u.loaded||u.reset||u.errored||l((e=>Object.assign(Object.assign({},e),{nonce:Xse(),loading:!0})))}}))},{children:[u.items.map(((t,r)=>(0,n.jsx)(nce,{chatPreviewPayload:t,badge:(null==e?void 0:e.prefillChatPreviewList)&&(null==e?void 0:e.prefillChatPreviewList[r].badge)?null==e?void 0:e.prefillChatPreviewList[r].badge:d.badges?{count:d.badges[t.chatId]}:{count:0},selected:(null==e?void 0:e.prefillChatPreviewList)&&(null==e?void 0:e.prefillChatPreviewList[r].selected)?null==e?void 0:e.prefillChatPreviewList[r].selected:d.selectedChatId===t.chatId,setSelected:(null==e?void 0:e.prefillChatPreviewList)&&(null==e?void 0:e.prefillChatPreviewList[r].setSelected)?null==e?void 0:e.prefillChatPreviewList[r].setSelected:E,readmode:null==s?void 0:s.readmode()},`${null==s?void 0:s.uid}-${t.chatId}`))),u.errored&&(0,n.jsxs)(D7,Object.assign({padding:"10px",flexDirection:"column"},{children:[(0,n.jsx)(yce,Object.assign({theme:h},{children:null===(o=u.error)||void 0===o?void 0:o.message})),!((null===(a=u.error)||void 0===a?void 0:a.code)===fce.CHAT_PREVIEW_LIST_INSUFFICIENT_INPUT)&&(0,n.jsx)(L7,Object.assign({onClick:()=>{const e=u.error?u.error.code:fce.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR;l((t=>Object.assign(Object.assign({},t),{items:[],page:0,loading:e===fce.CHAT_PREVIEW_LIST_LOAD_ERROR,reset:e===fce.CHAT_PREVIEW_LIST_INVALID_SEARCH_ERROR,resume:e===fce.CHAT_PREVIEW_LIST_LOAD_ERROR,errored:!1})))},background:"rgb(226,8,128)",color:"#fff",borderRadius:"16px",padding:"4px 12px"},{children:"Refresh"}))]})),u.loading&&!u.errored&&(0,n.jsx)(D7,Object.assign({padding:"10px",flexDirection:"column"},{children:(0,n.jsx)(k7,{color:h.spinnerColor})}))]}),null==s?void 0:s.uid)},mce=(0,o.Ay)(D7).withConfig({displayName:"ChatPreviewSearchList__ChatPreviewListContainer",componentId:"sc-hg7ctt-0"})(["height:auto;overflow:hidden auto;flex-direction:column;width:100%;justify-content:start;box-sizing:border-box;&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar{width:5px;}overscroll-behavior:contain;scroll-behavior:smooth;"],(e=>e.theme.scrollbarColor)),yce=(0,o.Ay)(B7).withConfig({displayName:"ChatPreviewSearchList__SearchError",componentId:"sc-hg7ctt-1"})(["margin:10px 10px 20px 10px;background:",";color:",";border-radius:20px;justify-content:center;align-self:center;padding:12px 18px;text-transform:uppercase;letter-spacing:normal;font-size:10px;font-weight:500;"],(e=>{var t;return(null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.searchInputBackground)||"transparent"}),(e=>{var t;return(null===(t=e.theme.textColor)||void 0===t?void 0:t.searchInputText)||"transparent"})),bce=({handleSearch:e,clearInput:t,customStyle:r=null,placeholder:o})=>{var a,s;const c=(0,i.useContext)(Pae),[u,l]=(0,i.useState)(""),[d,f]=(0,i.useState)(!1);i.useEffect((()=>{f(!0);const e=setTimeout((()=>{h(),f(!1)}),2e3);return()=>clearTimeout(e)}),[u]);const h=()=>{""!==u.trim()?e({searchedText:u}):t()};return(0,n.jsx)(vce,Object.assign({justifyContent:"space-between",margin:"4px 0",gap:"15px",width:"100%",alignItems:"center"},{children:(0,n.jsxs)(wce,Object.assign({theme:c,width:"100%",background:(null==r?void 0:r.background)?r.background:null===(a=c.backgroundColor)||void 0===a?void 0:a.searchInputBackground,padding:"8px 12px",borderRadius:(null==r?void 0:r.borderRadius)?r.borderRadius:null===(s=c.borderRadius)||void 0===s?void 0:s.searchInput,customStyle:r},{children:[(0,n.jsx)(Ace,{theme:c,customStyle:r,type:"text",value:u,onChange:e=>{return t=e.target.value,void l(t);var t},placeholder:o,onKeyDown:e=>{"Enter"===e.key&&h()}}),(0,n.jsxs)(B7,{children:[!d&&!u&&(0,n.jsx)(O7,Object.assign({cursor:"pointer",width:"17.49px",height:"17.49px",onClick:()=>h()},{children:(0,n.jsx)(use,{})})),!d&&u&&(0,n.jsx)(O7,Object.assign({cursor:"pointer",onClick:()=>{l(""),t()},width:"17.49px",height:"17.49px"},{children:(0,n.jsx)(Xee,{})})),d&&(0,n.jsx)(k7,{size:"17.49",color:c.spinnerColor})]})]}))}))},vce=(0,o.Ay)(D7).withConfig({displayName:"ChatSearchInput__Container",componentId:"sc-i2ykdd-0"})(["border-radius:4px;"]),wce=(0,o.Ay)(D7).withConfig({displayName:"ChatSearchInput__InputSection",componentId:"sc-i2ykdd-1"})(["border:",";"],(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.border)?e.customStyle.border:null===(r=e.theme.border)||void 0===r?void 0:r.searchInput})),Ace=o.Ay.input.withConfig({displayName:"ChatSearchInput__Input",componentId:"sc-i2ykdd-2"})(["border:none;background:",";width:100%;flex:1;margin-left:10px;font-style:normal;color:",";font-weight:",";font-size:",";line-height:24px;&:focus{outline:none;background-origin:border;background-clip:padding-box,border-box;}&::placeholder{color:",";font-weight:",";font-size:",";}"],(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.background)?e.customStyle.background:null===(r=e.theme.backgroundColor)||void 0===r?void 0:r.searchInputBackground}),(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.color)?e.customStyle.color:null===(r=e.theme.textColor)||void 0===r?void 0:r.searchInputText}),(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.fontWeight)?e.customStyle.fontWeight:null===(r=e.theme.fontWeight)||void 0===r?void 0:r.searchInputText}),(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.fontSize)?e.customStyle.fontSize:null===(r=e.theme.fontSize)||void 0===r?void 0:r.searchInputText}),(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.placeholderColor)?e.customStyle.placeholderColor:null===(r=e.theme.textColor)||void 0===r?void 0:r.searchPlaceholderText}),(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.fontWeight)?e.customStyle.fontWeight:null===(r=e.theme.fontWeight)||void 0===r?void 0:r.searchInputText}),(e=>{var t,r;return(null===(t=e.customStyle)||void 0===t?void 0:t.fontSize)?e.customStyle.fontSize:null===(r=e.theme.fontSize)||void 0===r?void 0:r.searchInputText}));function Cce({dropdownValues:e,textColor:t,iconFilter:r,hoverBGColor:o}){const a=(0,i.useContext)(Pae),s=e=>{var r;return e.textColor?e.textColor:t||(null===(r=a.textColor)||void 0===r?void 0:r.modalSubHeadingText)},c=e=>{if(navigator&&navigator.clipboard)navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}};return(0,n.jsx)(n.Fragment,{children:e.map((e=>{var t;return"walletAddress"===(null==e?void 0:e.id)?(0,n.jsxs)(D7,Object.assign({background:"linear-gradient(87.17deg, #B6A0F5 0%, #F46EF7 57.29%, #FF95D5 100%)",borderRadius:"17px",padding:"2px 12px",margin:"0px 0 8px 0",width:"100%",style:{cursor:"pointer"},onClick:()=>{null==e||e.function()}},{children:[(0,n.jsxs)(B7,Object.assign({margin:"11px 22px 11px 2px",fontWeight:"400",fontSize:"14px",textTransform:"uppercase",color:"#fff",textAlign:"start",letterSpacing:"1px",width:"100%"},{children:[(0,n.jsx)(Sce,{children:null==e?void 0:e.title}),(0,n.jsx)(xce,{children:s9(null==e?void 0:e.title,6)})]})),(null==e?void 0:e.invertedIcon)&&(0,n.jsx)(R7,{src:e.invertedIcon,alt:"icon",width:"auto",cursor:"pointer",filter:"brightness(0) invert(1)",onClick:()=>{c((null==e?void 0:e.value)||"")}}),(null==e?void 0:e.icon)&&(0,n.jsx)(R7,{src:e.icon,alt:"icon",width:"auto",cursor:"pointer",onClick:()=>{c((null==e?void 0:e.value)||"")}})]})):(0,n.jsxs)(Ice,Object.assign({hoverBGColor:o,onClick:()=>null==e?void 0:e.function()},{children:[(null==e?void 0:e.invertedIcon)&&(0,n.jsx)(R7,{src:e.invertedIcon,alt:"icon",width:"100%",filter:r||(null===(t=a.textColor)||void 0===t?void 0:t.modalSubHeadingText)}),(null==e?void 0:e.icon)&&(0,n.jsx)(R7,{src:e.icon,alt:"icon",width:"24px",cursor:"pointer"}),!(null==e?void 0:e.link)&&(0,n.jsx)(B7,Object.assign({color:s(e),textAlign:"start",margin:"8px 10px",fontWeight:"400",fontSize:"15px",cursor:"pointer"},{children:e.title})),(null==e?void 0:e.link)&&(0,n.jsx)(kce,Object.assign({href:null==e?void 0:e.link,target:"_blank",rel:"nofollow",color:s(e)},{children:e.title}))]}))}))})}const Ece=(0,o.Ay)(B7).withConfig({displayName:"DropDown__SpanAddress",componentId:"sc-1x3mmiu-0"})(["margin:11px 22px 11px 2px;font-weight:400;size:14px;text-transform:uppercase;color:#fff;spacing:1px;width:100%;"]),xce=(0,o.Ay)(Ece).withConfig({displayName:"DropDown__MobileAddress",componentId:"sc-1x3mmiu-1"})(["@media (min-width:993px){display:none;}"]),Sce=(0,o.Ay)(Ece).withConfig({displayName:"DropDown__DesktopAddress",componentId:"sc-1x3mmiu-2"})(["@media (max-width:992px){display:none;}"]),Ice=(0,o.Ay)(D7).withConfig({displayName:"DropDown__DropdownItemContainer",componentId:"sc-1x3mmiu-3"})(["justify-content:flex-start;flex-wrap:nowrap;white-space:nowrap;margin:1px 0;padding:2px 8px;border-radius:12px;cursor:pointer;text-align:left;span{text-wrap:nowrap;}&:hover{background-color:",";}"],(e=>e.hoverBGColor||"none")),kce=o.Ay.a.withConfig({displayName:"DropDown__A",componentId:"sc-1x3mmiu-4"})(["margin:8px 10px;font-weight:400;font-size:16px;width:max-content;background:",";z-index:11;&:hover{background:transparent !important;}"],(e=>e.color)),_ce=({theme:e,member:t,copy:r,customStyle:o,loading:a})=>{var s,c,u,l,d,f,h,p,g,m,y,b,v,w,A,C;const[E,x]=(0,i.useState)(),S=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(S.current&&!(null==t?void 0:t.icon)){const e=Fse(l8((null==t?void 0:t.recipient)||""),{size:8,scale:6});S.current.innerHTML="",S.current.appendChild(e)}}),[null==t?void 0:t.recipient,null==t?void 0:t.icon]),(0,n.jsxs)(D7,Object.assign({justifyContent:"flex-start"},{children:[(0,n.jsxs)(D7,Object.assign({height:null!==(s=null==o?void 0:o.imgHeight)&&void 0!==s?s:"48px",width:null!==(c=null==o?void 0:o.imgHeight)&&void 0!==c?c:"48px",margin:"0px 12px 0px 0px",position:"relative",flex:"none",borderRadius:"100%",overflow:"hidden",className:a?"skeleton":"",animation:e.skeletonBG},{children:[(null==t?void 0:t.icon)&&(0,n.jsx)(R7,{height:null!==(u=null==o?void 0:o.imgHeight)&&void 0!==u?u:"48px",maxHeight:null!==(l=null==o?void 0:o.imgMaxHeight)&&void 0!==l?l:"48px",width:"auto",cursor:"pointer",src:null==t?void 0:t.icon}),!(null==t?void 0:t.icon)&&(0,n.jsx)(O7,{ref:S,height:null!==(d=null==o?void 0:o.imgHeight)&&void 0!==d?d:"48px",width:null!==(f=null==o?void 0:o.imgHeight)&&void 0!==f?f:"48px",cursor:"pointer"})]})),(0,n.jsx)(D7,Object.assign({flexDirection:"column",alignItems:"start",whiteSpace:"nowrap",minWidth:"150px",cursor:"pointer"},{children:(0,n.jsxs)(n.Fragment,{children:[(null==t?void 0:t.name)||(null==t?void 0:t.web3Name)?(0,n.jsx)(B7,Object.assign({fontSize:null!==(h=null==o?void 0:o.fontSize)&&void 0!==h?h:"16px",fontWeight:null!==(p=null==o?void 0:o.fontWeight)&&void 0!==p?p:"400",color:null!==(g=null==o?void 0:o.textColor)&&void 0!==g?g:null===(m=e.textColor)||void 0===m?void 0:m.modalSubHeadingText,position:"relative",textAlign:"left"},{children:t.name&&t.web3Name?t.name:t.name||t.web3Name})):null,(0,n.jsx)(M7,Object.assign({content:E},{children:(0,n.jsxs)(D7,Object.assign({justifyContent:"flex-start",gap:"5px",cursor:"pointer",minHeight:"22px",minWidth:"140px",onMouseEnter:()=>{const e=t.chatId===t.recipient?"Copy Chat ID":"Copy Wallet";x(e)},onMouseLeave:()=>x(""),onClick:()=>{C8(l8((null==t?void 0:t.recipient)||"")),x("Copied")},className:a?"skeleton":"",animation:e.skeletonBG},{children:[(0,n.jsx)(Tce,Object.assign({fontSize:(null==t?void 0:t.name)||(null==t?void 0:t.web3Name)?"14px":null!==(y=null==o?void 0:o.fontSize)&&void 0!==y?y:"16px",fontWeight:(null==t?void 0:t.name)||(null==t?void 0:t.web3Name)?"500":null!==(b=null==o?void 0:o.fontWeight)&&void 0!==b?b:"400",color:(null==t?void 0:t.name)||(null==t?void 0:t.web3Name)?null===(v=e.textColor)||void 0===v?void 0:v.modalSubHeadingText:null!==(w=null==o?void 0:o.textColor)&&void 0!==w?w:null===(A=e.textColor)||void 0===A?void 0:A.modalSubHeadingText,position:"relative",whiteSpace:"nowrap",cursor:"pointer",textAlign:"left"},{children:(null==t?void 0:t.name)&&(null==t?void 0:t.web3Name)?`${null==t?void 0:t.web3Name} | ${t.abbrRecipient}`:t.abbrRecipient})),r&&E&&(0,n.jsx)(O7,Object.assign({cursor:"pointer"},{children:(0,n.jsx)(wae,{size:16,color:null===(C=null==e?void 0:e.iconColor)||void 0===C?void 0:C.primaryColor})}))]}))}))]})}))]}))},Tce=(0,o.Ay)(B7).withConfig({displayName:"ProfileContainer__RecipientSpan",componentId:"sc-i68m4z-0"})(["text-wrap:nowrap;@media ","{text-wrap:pretty;}"],c5.mobileL),Mce=({children:e,onClose:t,width:r,closeonClickAway:o})=>{const a=(0,i.useRef)(null),s=(0,i.useContext)(Pae);return H9(a,(()=>{t&&o&&t()})),(0,n.jsx)(Oce,Object.assign({ref:a,width:r,theme:s},{children:e}))},Pce=({onClose:e,closeonClickAway:t,children:r,width:o,modalBackground:a=k5.OVERLAY,modalPositionType:s=_5.GLOBAL})=>{const c=(0,i.useContext)(Pae);return(0,n.jsx)(Dce,Object.assign({theme:c,modalBackground:a,modalPositionType:s},{children:t?(0,n.jsx)(Mce,Object.assign({onClose:e,width:o,closeonClickAway:t},{children:r})):(0,n.jsx)(Oce,Object.assign({width:o,theme:c},{children:r}))}))},jce=({handlePrevious:e,handleClose:t,title:r})=>{var o;const a=(0,i.useContext)(Pae);return(0,n.jsxs)(D7,Object.assign({justifyContent:"center",alignItems:"center",width:"100%"},{children:[e&&(0,n.jsx)(B7,Object.assign({onClick:()=>e(),cursor:"pointer"},{children:(0,n.jsx)(H7,{})})),(0,n.jsx)(B7,Object.assign({fontWeight:"500",fontSize:"24px",color:null===(o=a.textColor)||void 0===o?void 0:o.modalHeadingText,flex:"1"},{children:r})),t&&(0,n.jsx)(R7,{src:V7,height:"24px",maxHeight:"24px",width:"auto",onClick:()=>t(),cursor:"pointer"})," "]}))},Dce=o.Ay.div.withConfig({displayName:"Modal__ModalOverlay",componentId:"sc-fq4i0y-0"})(["position:",";top:0;left:0;right:0;bottom:0;width:100%;height:100%;backdrop-filter:",";background-color:",";display:flex;color:",";justify-content:center;align-items:center;z-index:9999999999999;max-height:100vh;overflow-y:auto;margin:auto !important;"],(e=>e.modalPositionType===_5.GLOBAL?"fixed":"absolute"),(e=>e.modalBackground===k5.BLUR?"blur(3px)":"none"),(e=>e.modalBackground===k5.OVERLAY?"rgba(0, 0, 0, 0.5)":" transparent"),(e=>{var t;return null!==(t=e.theme.textColor.modalHeadingText)&&void 0!==t?t:"#000"})),Oce=o.Ay.div.withConfig({displayName:"Modal__ModalParent",componentId:"sc-fq4i0y-1"})(["display:flex;flex-direction:column;align-items:center;padding:24px 20px;max-height:75vh;background:",";border-radius:",";width:",";margin:auto !important;@media (max-width:425px){min-width:300px;}"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.modalBackground}),(e=>{var t;return null===(t=e.theme.borderRadius)||void 0===t?void 0:t.modal}),(e=>e.width?e.width:"auto")),Bce=({msg:e,loaderColor:t,textColor:r})=>(0,n.jsxs)(Lce,{children:[(0,n.jsx)(Z7,{color:t,size:"35px"}),(0,n.jsx)(Fce,Object.assign({style:{color:r}},{children:e}))]}),Nce=({closeToast:e})=>(0,n.jsx)(Gce,Object.assign({onClick:e},{children:(0,n.jsx)(My,{color:"#657795",size:"100%"})})),Rce=(e=3e3,t="top-right")=>{const{uiConfig:r}=P5(),a=(0,i.useRef)(null),s=(0,i.useContext)(Pae),c=K9(c5.tablet);return{showLoaderToast:({loaderMessage:e})=>{var i,c,u,l;a.current?xy.update(a.current,{render:(0,n.jsx)(o.NP,Object.assign({theme:s},{children:(0,n.jsx)(Bce,{msg:e,loaderColor:s.spinnerColor,textColor:s.textColor.modalHeadingText})})),position:t,autoClose:!1,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,closeButton:!1,style:{background:null===(i=s.backgroundColor)||void 0===i?void 0:i.modalBackground,border:null===(c=s.border)||void 0===c?void 0:c.modalInnerComponents,borderRadius:"20px"}}):r.suppressToast?console.debug("UIWeb::reusables::NewToast::useToast::showLoaderToast::Toast suppressed"):a.current=xy((0,n.jsx)(o.NP,Object.assign({theme:s},{children:(0,n.jsx)(Bce,{msg:e,loaderColor:s.spinnerColor,textColor:s.textColor.modalHeadingText})})),{position:t,autoClose:!1,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,closeButton:!1,style:{background:null===(u=s.backgroundColor)||void 0===u?void 0:u.modalBackground,border:null===(l=s.border)||void 0===l?void 0:l.modalInnerComponents,borderRadius:"20px"}})},showMessageToast:({toastTitle:i,toastMessage:o,toastType:u,getToastIcon:l})=>{var d,f,h,p,g;const m=(0,n.jsxs)(Uce,{children:[(0,n.jsx)(zce,{children:l?l(30):""}),(0,n.jsxs)(Hce,{children:[(0,n.jsx)(Vce,Object.assign({style:{color:null===(d=s.textColor)||void 0===d?void 0:d.modalHeadingText}},{children:i})),(0,n.jsx)(Kce,Object.assign({style:{color:null===(f=s.textColor)||void 0===f?void 0:f.modalSubHeadingText}},{children:o}))]})]}),y={position:t,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,type:xy.TYPE.DEFAULT,closeButton:Nce,autoClose:e,style:{background:"SUCCESS"===u?null===(h=s.backgroundColor)||void 0===h?void 0:h.toastSuccessBackground:"ERROR"===u?null===(p=s.backgroundColor)||void 0===p?void 0:p.toastErrorBackground:null===(g=s.backgroundColor)||void 0===g?void 0:g.toastWarningBackground,borderRadius:"20px",margin:c?"20px":"0px"}};xy.isActive(a.current)||(r.suppressToast?console.debug("UIWeb::reusables::NewToast::useToast::showMessageToast::Toast suppressed"):a.current?xy.update(a.current,Object.assign({render:m},y)):a.current=xy(m,Object.assign({},y)))}}},Lce=o.Ay.div.withConfig({displayName:"NewToast__LoaderNotification",componentId:"sc-1y55fqo-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:center;margin:1% 3%;"]),Fce=o.Ay.div.withConfig({displayName:"NewToast__LoaderMessage",componentId:"sc-1y55fqo-1"})(["margin-left:3%;font-size:1rem;font-weight:600;line-height:1.3rem;letter-spacing:normal;text-align:left;"]),Uce=o.Ay.div.withConfig({displayName:"NewToast__Toast",componentId:"sc-1y55fqo-2"})(["display:flex;flex-direction:row;align-items:flex-start;margin:1.5% 1%;"]),zce=o.Ay.div.withConfig({displayName:"NewToast__ToastIcon",componentId:"sc-1y55fqo-3"})(["width:15%;margin-right:4%;"]),Hce=o.Ay.div.withConfig({displayName:"NewToast__ToastContent",componentId:"sc-1y55fqo-4"})(["display:flex;flex-direction:column;align-items:flex-start;"]),Vce=o.Ay.div.withConfig({displayName:"NewToast__ToastTitle",componentId:"sc-1y55fqo-5"})(["font-weight:500;font-size:1.125rem;letter-spacing:normal;line-height:1.4rem;letter-spacing:normal;text-align:left;margin-bottom:1%;"]),Kce=o.Ay.div.withConfig({displayName:"NewToast__ToastMessage",componentId:"sc-1y55fqo-6"})(["font-weight:400;font-size:0.9375rem;line-height:1.3rem;text-align:left;"]),Gce=o.Ay.button.withConfig({displayName:"NewToast__Button",componentId:"sc-1y55fqo-7"})(["cursor:pointer;background:none;margin:0;padding:0;width:1.3rem;height:1.3rem;border:none;"]),qce=e=>{const t=(0,i.useContext)(Pae);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(Qce,{children:[(0,n.jsxs)(Wce,{children:[(0,n.jsx)("label",{children:e.labelName}),e.charCount&&(0,n.jsxs)(Yce,Object.assign({theme:t},{children:[e.inputValue.length," / ",e.charCount]}))]}),(0,n.jsx)(Jce,{customStyle:e.customStyle,disabled:!!e.disabled,theme:t,error:e.error||!1,value:e.inputValue,onChange:t=>{if(e.charCount){t.target.value.length<=e.charCount&&e.onInputChange(t)}else e.onInputChange(t)},placeholder:e.placeholder})]})}))},Qce=o.Ay.div.withConfig({displayName:"TextInput__InputContainer",componentId:"sc-dumje7-0"})(["display:flex;flex-direction:column;width:100%;font-family:",";"],(e=>e.theme.fontFamily)),Wce=o.Ay.div.withConfig({displayName:"TextInput__LabelContainer",componentId:"sc-dumje7-1"})(["display:flex;justify-content:space-between;font-weight:500;font-size:14px;color:",";"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"})),Jce=o.Ay.input.withConfig({displayName:"TextInput__Input",componentId:"sc-dumje7-2"})(["padding:16px;margin-top:8px;color:",";background:",";border:",";border-radius:",";font-family:",";font-size:16px;font-weight:500;[readonly='readonly']{pointer-events:none;}&:focus{border:1px solid #ffdbf0;}"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.background)?e.customStyle.background:e.theme.backgroundColor.modalInputBackground}),(e=>e.error?" 1px solid #ED5858":e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.fontFamily)),Yce=o.Ay.div.withConfig({displayName:"TextInput__CharCounter",componentId:"sc-dumje7-3"})(["color:",";font-size:14px;font-weight:400;"],(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.modalSubHeadingText})),Zce=e=>{var t,r;const a=(0,i.useContext)(Pae);return(0,n.jsx)(o.NP,Object.assign({theme:a},{children:(0,n.jsxs)($ce,{children:[(0,n.jsxs)(Xce,{children:[(0,n.jsx)(eue,Object.assign({textColor:null===(t=a.textColor)||void 0===t?void 0:t.modalHeadingText},{children:e.labelHeading})),(0,n.jsx)(eue,Object.assign({textColor:null===(r=a.textColor)||void 0===r?void 0:r.modalSubHeadingText,fontSize:"12px",fontWeight:"400"},{children:e.labelSubHeading}))]}),(0,n.jsxs)(tue,Object.assign({htmlFor:"checkbox"},{children:[(0,n.jsx)("input",{type:"checkbox",id:"checkbox",checked:e.checked,onChange:()=>e.onToggle()}),(0,n.jsx)("div",{className:"slider round"})]}))]})}))},$ce=o.Ay.div.withConfig({displayName:"ToggleInput__ToggleContainer",componentId:"sc-dj907w-0"})(["display:flex;justify-content:space-between;width:100%;gap:10px;font-family:",";align-items:center;"],(e=>e.theme.fontFamily)),Xce=o.Ay.div.withConfig({displayName:"ToggleInput__LabelContainer",componentId:"sc-dj907w-1"})(["display:flex;flex-direction:column;gap:4px;width:73%;"]),eue=o.Ay.label.withConfig({displayName:"ToggleInput__Label",componentId:"sc-dj907w-2"})(["font-size:",";font-weight:",";color:",";"],(e=>{var t;return null!==(t=e.fontSize)&&void 0!==t?t:"16px"}),(e=>{var t;return null!==(t=e.fontWeight)&&void 0!==t?t:"500"}),(e=>{var t;return null!==(t=e.textColor)&&void 0!==t?t:"#000"})),tue=o.Ay.label.withConfig({displayName:"ToggleInput__ToggleLabel",componentId:"sc-dj907w-3"})(["display:inline-block;height:24px;position:relative;width:44px;padding:2px;input{display:none;}.slider{background-color:#ccc;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:0.4s;}.slider:before{background-color:#fff;bottom:4px;content:'';height:20px;left:4px;position:absolute;transition:0.4s;width:20px;}input:checked + .slider{background-color:",";}input:checked + .slider:before{transform:translateX(20px);}.slider.round{border-radius:34px;}.slider.round:before{border-radius:50%;}"],(e=>e.theme.backgroundColor.buttonBackground)),rue=e=>{var t;const r=(0,i.useContext)(Pae),[a,s]=(0,i.useState)(!1),c=(0,i.useRef)(null),{selectedValue:u,dropdownValues:l,labelName:d,error:f}=e,h=()=>{s(!a)};return(0,n.jsx)(o.NP,Object.assign({theme:r},{children:(0,n.jsxs)(nue,{children:[(0,n.jsx)(iue,{children:(0,n.jsx)("label",{children:e.labelName})}),(0,n.jsxs)(oue,Object.assign({ref:c,onClick:h,error:f||!1},{children:[(0,n.jsxs)(B7,Object.assign({margin:"0 7px 0 0"},{children:[l[u].title," "]})),(0,n.jsx)(aue,{src:Vne,width:"auto",setPosition:!a,borderRadius:"100%"})]})),a&&(0,n.jsx)(sue,Object.assign({theme:r,onClick:h},{children:(0,n.jsx)(Cce,{dropdownValues:l,hoverBGColor:null===(t=r.backgroundColor)||void 0===t?void 0:t.modalHoverBackground})}))]})}))},nue=(0,o.Ay)(D7).withConfig({displayName:"DropDownInput__DropdownContainer",componentId:"sc-10t42zf-0"})(["display:flex;flex-direction:column;width:100%;z-index:unset;align-items:flex-start;font-family:",";gap:8px;"],(e=>e.theme.fontFamily)),iue=o.Ay.div.withConfig({displayName:"DropDownInput__LabelContainer",componentId:"sc-10t42zf-1"})(["font-weight:400;font-size:16px;color:",";"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"})),oue=(0,o.Ay)(D7).withConfig({displayName:"DropDownInput__DropdownDiv",componentId:"sc-10t42zf-2"})(["padding:16px;display:flex;justify-content:space-between;align-items:center;background:",";border:",";border-radius:",";font-family:",";font-size:16px;span{white-space:nowrap;}font-weight:500;"],(e=>e.theme.backgroundColor.modalInputBackground),(e=>e.error?" 1px solid #ED5858":e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.fontFamily)),aue=(0,o.Ay)(R7).withConfig({displayName:"DropDownInput__ArrowImage",componentId:"sc-10t42zf-3"})(["margin-left:auto;transform:",";"],(e=>(null==e?void 0:e.setPosition)?"rotate(0)":"rotate(180deg)")),sue=(0,o.Ay)(D7).withConfig({displayName:"DropDownInput__DropdownListContainer",componentId:"sc-10t42zf-4"})(["position:absolute;width:96%;top:30%;right:0;border-radius:",";padding:8px;z-index:100;display:flex;flex-direction:column !important;background:",";border:",";"],(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modalInnerComponents)),cue=e=>{const t=(0,i.useContext)(Pae);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(uue,{children:[(0,n.jsxs)(lue,{children:[(0,n.jsx)("label",{children:e.labelName}),(0,n.jsxs)(fue,Object.assign({theme:t},{children:[e.inputValue.length," / ",e.charCount]}))]}),(0,n.jsx)(due,{error:e.error||!1,theme:t,value:e.inputValue,onChange:t=>{t.target.value.length<=e.charCount&&e.onInputChange(t)}})]})}))},uue=o.Ay.div.withConfig({displayName:"TextArea__InputContainer",componentId:"sc-1ku7ybj-0"})(["display:flex;flex-direction:column;width:100%;font-family:",";"],(e=>e.theme.fontFamily)),lue=o.Ay.div.withConfig({displayName:"TextArea__LabelContainer",componentId:"sc-1ku7ybj-1"})(["display:flex;justify-content:space-between;font-weight:500;color:",";"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"})),due=o.Ay.textarea.withConfig({displayName:"TextArea__Input",componentId:"sc-1ku7ybj-2"})(["padding:16px;margin-top:8px;height:100px;color:",";background:",";border:",";border-radius:",";font-family:",";font-size:14px;&:focus{border:1px solid #ffdbf0;}"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"}),(e=>e.theme.backgroundColor.modalInputBackground),(e=>e.error?" 1px solid #ED5858":e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.fontFamily)),fue=o.Ay.div.withConfig({displayName:"TextArea__CharCounter",componentId:"sc-1ku7ybj-3"})(["color:",";font-size:14px;font-weight:400;"],(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.modalSubHeadingText})),hue=({heading:e,subHeading:t,value:r})=>{var o,a;const s=(0,i.useContext)(Pae);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(B7,Object.assign({color:null===(o=s.textColor)||void 0===o?void 0:o.modalHeadingText,fontSize:"18px",fontWeight:"500"},{children:e})),(0,n.jsx)(B7,Object.assign({color:null===(a=s.textColor)||void 0===a?void 0:a.modalSubHeadingText,fontWeight:"400",fontSize:"12px",width:"132px",lineHeight:"130%"},{children:t}))]})},pue=({options:e,selectedValue:t,handleClick:r,totalWidth:a="400px",error:s})=>{const c=(0,i.useContext)(Pae),u=t=>0===t?"1px 1px 1px 1px":(t>0&&e.length,"1px 1px 1px 0px"),l=t=>0===t?"12px 0px 0px 12px":t>0&&t{var d;return(0,n.jsx)(mue,Object.assign({totalWidth:a,noOfOptions:e.length,borderRadius:l(o),error:s||!1,borderColor:c.border.modalInnerComponents,borderWidth:u(o),background:t===i.value?null===(d=c.backgroundColor)||void 0===d?void 0:d.modalHoverBackground:"none",onClick:()=>{r(i.value)}},{children:(0,n.jsx)(hue,Object.assign({},i))}))}))})}))},gue=o.Ay.div.withConfig({displayName:"OptionButtons__ButtonContainer",componentId:"sc-3jtp97-0"})(["display:flex;"]),mue=(0,o.Ay)(D7).withConfig({displayName:"OptionButtons__ButtonSection",componentId:"sc-3jtp97-1"})(["cursor:pointer;justify-content:center;align-items:center;gap:3px;width:",";@media ","{width:",";}padding:10px;border:",";border:",";border-width:",";border-style:solid;border-radius:",";flex-direction:column;&:hover{background:",";}"],(e=>`calc((${e.totalWidth} - 80px) / ${e.noOfOptions})`),c5.mobileL,(e=>`calc(((${e.totalWidth} - 80px) / ${e.noOfOptions}) - 30px)`),(e=>e.borderColor),(e=>e.error?" #ED5858":e.borderColor),(e=>e.borderWidth),(e=>e.borderRadius),(e=>e.theme.backgroundColor.modalHoverBackground)),yue=e=>{const t=(0,i.useContext)(Pae),{onClick:r,width:a,height:s,customStyle:c}=e;return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsx)(bue,Object.assign({onClick:r,width:a,height:s,theme:t,customStyle:c},{children:e.children}))}))},bue=o.Ay.button.withConfig({displayName:"Button__ChatButton",componentId:"sc-17z3e9-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;gap:'2px';padding:",";margin-top:12px;background:",";color:",";border-radius:",";border:",";font-size:16px;font-weight:",";font-family:",";flex:none;order:0;flex-grow:0;transition:150ms ease-in-out;&:hover{cursor:pointer;}width:",";height:",";"],(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.padding)?e.customStyle.padding:"16px"}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.background)?e.customStyle.background:e.theme.backgroundColor.buttonBackground}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.color)?e.customStyle.color:e.theme.textColor.buttonText}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.borderRadius)?e.customStyle.borderRadius:e.theme.borderRadius.modalInnerComponents}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.border)?e.customStyle.border:e.theme.border.modal}),(e=>{var t;return(null===(t=e.customStyle)||void 0===t?void 0:t.fontWeight)?e.customStyle.fontWeight:"500"}),(e=>e.theme.fontFamily),(e=>e.width?e.width:"100%"),(e=>e.height?e.height:"100%")),vue=e=>{var t;const r=(0,i.useContext)(Pae);return(0,n.jsx)(o.NP,Object.assign({theme:r},{children:(0,n.jsxs)(wue,{children:[(0,n.jsx)(Aue,{children:(0,n.jsx)("label",{children:e.labelName})}),(0,n.jsxs)(D7,Object.assign({gap:"4px",alignItems:"center"},{children:[(0,n.jsx)(D7,Object.assign({zIndex:"500"},{children:(0,n.jsx)(rue,{selectedValue:e.inputValue.range,dropdownValues:e.dropDownValues})})),(0,n.jsxs)(D7,Object.assign({alignItems:"baseline",width:"fit-content"},{children:[(0,n.jsx)(Cue,{type:"number",error:e.error||!1,theme:r,value:e.inputValue.value,onChange:t=>{e.onInputChange(t)},placeholder:e.placeholder}),(0,n.jsx)(Eue,Object.assign({alignSelf:"auto",background:null===(t=r.backgroundColor)||void 0===t?void 0:t.modalHoverBackground,width:"40%",height:"fit-content",error:e.error||!1},{children:s9(e.unit,15)}))]}))]}))]})}))},wue=o.Ay.div.withConfig({displayName:"QuantityInput__QuantityInputContainer",componentId:"sc-1br3sg4-0"})(["display:flex;flex-direction:column;width:100%;font-family:",";"],(e=>e.theme.fontFamily)),Aue=o.Ay.div.withConfig({displayName:"QuantityInput__LabelContainer",componentId:"sc-1br3sg4-1"})(["display:flex;justify-content:space-between;font-weight:500;font-size:16px;color:",";"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"})),Cue=o.Ay.input.withConfig({displayName:"QuantityInput__Input",componentId:"sc-1br3sg4-2"})(["padding:16px;margin-top:8px;color:",";background:",";border:",";border-width:1px 0px 1px 1px;border-radius:12px 0 0 12px;font-family:",";font-size:16px;width:60%;font-weight:500;"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"}),(e=>e.theme.backgroundColor.modalInputBackground),(e=>e.error?" 1px solid #ED5858":e.theme.border.modalInnerComponents),(e=>e.theme.fontFamily)),Eue=(0,o.Ay)(D7).withConfig({displayName:"QuantityInput__Unit",componentId:"sc-1br3sg4-3"})(["font-size:14px;font-weight:600;white-space:nowrap;border-radius:0 12px 12px 0;padding:18px 17.2px 16.5px 17.2px;border:",";@media ","{padding:21px 17.2px 17.5px 17.2px;font-size:10px;font-weight:400}"],(e=>e.error?" 1px solid #ED5858":e.theme.border.modalInnerComponents),c5.mobileL),xue=e=>{const t=(0,i.useContext)(Pae);return(0,n.jsx)(o.NP,Object.assign({theme:t},{children:(0,n.jsxs)(Sue,{children:[(0,n.jsx)("input",{type:"checkbox",id:"checkbox",checked:e.checked,onChange:()=>e.onToggle()}),(0,n.jsx)(Iue,{children:(0,n.jsx)("label",{children:e.labelName})})]})}))},Sue=o.Ay.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-tq23cv-0"})(["display:flex;width:100%;gap:5px;align-items:center;font-family:",";input{width:18px;height:18px}"],(e=>e.theme.fontFamily)),Iue=o.Ay.div.withConfig({displayName:"Checkbox__LabelContainer",componentId:"sc-tq23cv-1"})(["display:flex;font-weight:400;font-size:16px;color:",";"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.modalHeadingText)&&void 0!==r?r:"#000"})),kue=({color:e})=>(0,n.jsxs)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("path",{d:"M8.15234 6.10618C8.15234 5.63757 8.53222 5.25769 9.00083 5.25769C9.46943 5.25769 9.84931 5.63757 9.84931 6.10618C9.84931 6.57478 9.46943 6.95466 9.00083 6.95466C8.53222 6.95466 8.15234 6.57478 8.15234 6.10618ZM8.15234 9.50011C8.15234 9.03151 8.53222 8.65163 9.00083 8.65163C9.46943 8.65163 9.84931 9.03151 9.84931 9.50011V12.8941C9.84931 13.3627 9.46943 13.7425 9.00083 13.7425C8.53222 13.7425 8.15234 13.3627 8.15234 12.8941V9.50011Z",fill:e||"#575D73"}),(0,n.jsx)("circle",{cx:"9",cy:"9.5",r:"8",stroke:e||"#575D73","stroke-width":"1.5"})]})),_ue=({label:e,cta:t})=>{var r;const o=(0,i.useContext)(Pae);return(0,n.jsx)(D7,Object.assign({cursor:"pointer"},{children:(0,n.jsxs)(Tue,Object.assign({href:t,target:t?"_target":""},{children:[(0,n.jsx)(kue,{}),e&&(0,n.jsx)(B7,Object.assign({color:null===(r=o.textColor)||void 0===r?void 0:r.modalSubHeadingText,fontSize:"15px",cursor:"pointer"},{children:e}))]}))}))},Tue=o.Ay.a.withConfig({displayName:"InfoContainer__Link",componentId:"sc-2gglnx-0"})(["text-decoration:none;display:flex;align-items:center;justify-content:center;gap:6px;"]),Mue=()=>(0,n.jsxs)("svg",Object.assign({width:"49",height:"21",viewBox:"0 0 49 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer"},{children:[(0,n.jsx)("rect",{width:"49",height:"21",rx:"6",fill:"#282A2E"}),(0,n.jsx)("path",{d:"M13.86 14L10.656 5.6H9.348L6.084 14H7.428L8.076 12.26H11.868L12.516 14H13.86ZM9.972 7.208L11.424 11.096H8.52L9.972 7.208ZM19.0121 9.056C18.5201 8.648 17.8841 8.42 17.2361 8.42C15.6281 8.42 14.3561 9.68 14.3561 11.276C14.3561 12.884 15.6281 14.132 17.2361 14.132C17.8841 14.132 18.5201 13.904 19.0121 13.496V14H20.1521V5.6H19.0121V9.056ZM17.2841 13.028C16.2881 13.028 15.5561 12.284 15.5561 11.276C15.5561 10.268 16.2881 9.524 17.2841 9.512C18.2681 9.524 19.0121 10.268 19.0121 11.276C19.0121 12.284 18.2681 13.028 17.2841 13.028ZM26.1371 9.056C25.6451 8.648 25.0091 8.42 24.3611 8.42C22.7531 8.42 21.4811 9.68 21.4811 11.276C21.4811 12.884 22.7531 14.132 24.3611 14.132C25.0091 14.132 25.6451 13.904 26.1371 13.496V14H27.2771V5.6H26.1371V9.056ZM24.4091 13.028C23.4131 13.028 22.6811 12.284 22.6811 11.276C22.6811 10.268 23.4131 9.524 24.4091 9.512C25.3931 9.524 26.1371 10.268 26.1371 11.276C26.1371 12.284 25.3931 13.028 24.4091 13.028Z",fill:"white"}),(0,n.jsx)("path",{d:"M41.9062 10.5C41.9062 10.6243 41.8569 10.7435 41.769 10.8315C41.681 10.9194 41.5618 10.9688 41.4375 10.9688H38.4688V13.9375C38.4688 14.0618 38.4194 14.181 38.3315 14.269C38.2435 14.3569 38.1243 14.4062 38 14.4062C37.8757 14.4062 37.7565 14.3569 37.6685 14.269C37.5806 14.181 37.5312 14.0618 37.5312 13.9375V10.9688H34.5625C34.4382 10.9688 34.319 10.9194 34.231 10.8315C34.1431 10.7435 34.0938 10.6243 34.0938 10.5C34.0938 10.3757 34.1431 10.2565 34.231 10.1685C34.319 10.0806 34.4382 10.0312 34.5625 10.0312H37.5312V7.0625C37.5312 6.93818 37.5806 6.81895 37.6685 6.73104C37.7565 6.64314 37.8757 6.59375 38 6.59375C38.1243 6.59375 38.2435 6.64314 38.3315 6.73104C38.4194 6.81895 38.4688 6.93818 38.4688 7.0625V10.0312H41.4375C41.5618 10.0312 41.681 10.0806 41.769 10.1685C41.8569 10.2565 41.9062 10.3757 41.9062 10.5Z",fill:"white"})]})),Pue=({color:e,width:t,height:r})=>(0,n.jsxs)("svg",Object.assign({width:null!=t?t:"32",height:null!=r?r:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer"},{children:[(0,n.jsx)("path",{d:"M16 10C17.1046 10 18 9.10457 18 8C18 6.89543 17.1046 6 16 6C14.8954 6 14 6.89543 14 8C14 9.10457 14.8954 10 16 10Z",fill:null!=e?e:"#787E99"}),(0,n.jsx)("path",{d:"M16 18C17.1046 18 18 17.1046 18 16C18 14.8954 17.1046 14 16 14C14.8954 14 14 14.8954 14 16C14 17.1046 14.8954 18 16 18Z",fill:null!=e?e:"#787E99"}),(0,n.jsx)("path",{d:"M16 26C17.1046 26 18 25.1046 18 24C18 22.8954 17.1046 22 16 22C14.8954 22 14 22.8954 14 24C14 25.1046 14.8954 26 16 26Z",fill:null!=e?e:"#787E99"})]}));var jue="data:image/svg+xml,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 9.3375V2C1 1.73478 1.10536 1.48043 1.29289 1.29289C1.48043 1.10536 1.73478 1 2 1H22C22.2652 1 22.5196 1.10536 22.7071 1.29289C22.8946 1.48043 23 1.73478 23 2V9.3375C23 19.8375 14.0875 23.3125 12.3125 23.9C12.1109 23.9747 11.8891 23.9747 11.6875 23.9C9.9125 23.3125 1 19.8375 1 9.3375Z' stroke='%23657795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Due="data:image/svg+xml,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.1875 3L27.8125 29' stroke='%23787E99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M23.4375 24.1875C20.75 27.2625 17.3375 28.5625 16.3125 28.9C16.1109 28.9747 15.8891 28.9747 15.6875 28.9C13.9125 28.3125 5 24.8375 5 14.3375V7C5 6.73478 5.10536 6.48043 5.29289 6.29289C5.48043 6.10536 5.73478 6 6 6H6.9125' stroke='%23787E99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M12.3125 6H26C26.2652 6 26.5196 6.10536 26.7071 6.29289C26.8946 6.48043 27 6.73478 27 7V14.3375C27 16.85 26.4875 18.95 25.6875 20.7125' stroke='%23787E99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Oue="data:image/svg+xml,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M16 28C22.6274 28 28 22.6274 28 16C28 9.37258 22.6274 4 16 4C9.37258 4 4 9.37258 4 16C4 22.6274 9.37258 28 16 28Z' stroke='%23E93636' stroke-width='2' stroke-miterlimit='10'/%3e%3cpath d='M11 16H21' stroke='%23E93636' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Bue=({key:e,memberData:t,handleMembers:r,handleMemberList:o,darkIcon:a,memberList:s})=>{var c,u,l,d,f,h,p,g;const m=(0,i.useContext)(Pae),[y,b]=(0,i.useState)(null),[v,w]=(0,i.useState)(0),A=(0,i.useRef)(null);H9(A,(()=>b(null)));const C={id:"dismiss_admin",title:"Dismiss as admin",icon:Due,function:()=>S()},E={id:"dismiss_admin",title:"Make group admin",icon:jue,function:()=>I()},x={id:"remove_user",title:"Remove",icon:Oue,function:()=>k()},S=()=>{const e=s.map((e=>{var r,n;return(null===(r=null==e?void 0:e.wallets)||void 0===r?void 0:r.toLowerCase())==(null===(n=null==t?void 0:t.wallets)||void 0===n?void 0:n.toLowerCase())?Object.assign(Object.assign({},e),{isAdmin:!1}):e}));null==r||r(e),b(null)},I=()=>{const e=s.map((e=>{var r,n;return(null===(r=null==e?void 0:e.wallets)||void 0===r?void 0:r.toLowerCase())==(null===(n=null==t?void 0:t.wallets)||void 0===n?void 0:n.toLowerCase())?Object.assign(Object.assign({},e),{isAdmin:!0}):e}));null==r||r(e),b(null)},k=()=>{o(t),b(null)};return(0,n.jsxs)(Nue,Object.assign({id:null==t?void 0:t.wallets,background:s?"transparent":null===(c=m.backgroundColor)||void 0===c?void 0:c.modalHoverBackground,border:s?null===(u=m.border)||void 0===u?void 0:u.modalInnerComponents:"none",borderRadius:null===(l=m.borderRadius)||void 0===l?void 0:l.modalInnerComponents},{children:[(0,n.jsx)(_ce,{theme:m,member:{name:null,icon:(null===(d=t.profile)||void 0===d?void 0:d.picture)||"",chatId:null,recipient:null===(f=t.wallets)||void 0===f?void 0:f.split(":")[1],abbrRecipient:s9(null===(h=t.wallets)||void 0===h?void 0:h.split(":")[1],6,!0),web3Name:null,desc:null}}),(0,n.jsxs)(D7,Object.assign({justifyContent:"flex-end"},{children:[(null==t?void 0:t.isAdmin)&&(0,n.jsx)(B7,Object.assign({background:"#F4DCEA",color:"#D53A94",borderRadius:"8px",padding:"6px",fontWeight:"500",fontSize:"10px"},{children:"Admin"})),(0,n.jsx)(D7,Object.assign({maxWidth:"fit-content",onClick:()=>{(e=>{var t;const r=null===(t=document.getElementById(e))||void 0===t?void 0:t.getBoundingClientRect();w(null==r?void 0:r.top)})(null==t?void 0:t.wallets),b(null),s&&Zse(t,s,"wallets")?b(null==t?void 0:t.wallets):o(t)}},{children:a}))]})),(null==y?void 0:y.toLowerCase())==(null===(p=null==t?void 0:t.wallets)||void 0===p?void 0:p.toLowerCase())&&(0,n.jsx)(Rue,Object.assign({style:{top:v>500?"30%":"45%"},ref:A,theme:m},{children:(0,n.jsx)(Cce,{dropdownValues:(null==t?void 0:t.isAdmin)?[C,x]:[E,x],hoverBGColor:null===(g=m.backgroundColor)||void 0===g?void 0:g.modalHoverBackground})}))]}))},Nue=(0,o.Ay)(D7).withConfig({displayName:"MemberListContainer__WalletProfileContainer",componentId:"sc-1x4rfc4-0"})(["justify-content:space-between;padding:8px 16px;border:",";position:relative;box-sizing:border-box;width:100%;max-height:64px;align-self:stretch;display:flex;height:auto;z-index:auto;flex:1;@media (max-width:480px){max-width:100%;}"],(e=>e.border)),Rue=o.Ay.div.withConfig({displayName:"MemberListContainer__DropdownContainer",componentId:"sc-1x4rfc4-1"})(["position:absolute;left:48%;top:69%;border-radius:",";padding:14px 8px;z-index:999999999999 !important;display:flex;flex-direction:column !important;background:",";border:",";@media ","{left:27%;}@media (min-width:426px) and (max-width:1150px){left:48%;}@media (max-width:480px){left:25%;}"],(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modalInnerComponents),c5.mobileL),Lue=({onSubmit:e,handlePrevious:t,onClose:r,memberList:o,handleMemberList:a,groupMembers:s,totalAllowedMembers:c,isLoading:u,title:l,addMemberToList:d,submitButtonTitle:f})=>{var h,p,g,m,y;const b=(0,i.useContext)(Pae),[v,w]=(0,i.useState)(null),{user:A,toast:C}=P5(),E=A?A.env:_.CONSTANTS.ENV.PROD,x=K9(c5.mobileL),{fetchUserProfile:S}=G9(),I={background:null===(h=b.backgroundColor)||void 0===h?void 0:h.modalInputBackground,border:null===(p=b.border)||void 0===p?void 0:p.modalInnerComponents,placeholderColor:null===(g=b.textColor)||void 0===g?void 0:g.modalSubHeadingText,fontSize:"15px",fontWeight:"400"},k=()=>{w(null)},T=e=>{const t=null==o?void 0:o.filter((t=>t.wallets.toLowerCase()!==e.wallets.toLowerCase()));a(t)};return(0,n.jsxs)(D7,Object.assign({margin:"auto",width:x?"100%":"410px",flexDirection:"column",padding:x?"0px auto":"0px 10px"},{children:[(0,n.jsx)(jce,{title:l,handleClose:r,handlePrevious:t}),(0,n.jsxs)(D7,Object.assign({margin:"50px 0 10px 0",flex:"1",flexDirection:"row",justifyContent:"space-between"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"18px",color:null===(m=b.textColor)||void 0===m?void 0:m.modalSubHeadingText},{children:"Add Wallets"})),(0,n.jsx)(B7,Object.assign({fontSize:"14px",color:null===(y=b.textColor)||void 0===y?void 0:y.modalSubHeadingText},{children:s?`${(null==o?void 0:o.length)+(null==s?void 0:s.length)} / ${c} Members`:`${null==o?void 0:o.length} / ${c} Members`}))]})),(0,n.jsx)(D7,Object.assign({flex:"1"},{children:(0,n.jsx)(bce,{handleSearch:({searchedText:e})=>pJ(void 0,void 0,void 0,(function*(){const t=yield R8({searchText:e,fetchChatProfile:S,env:E,user:A});t?w(t):C.showMessageToast({toastTitle:"Error",toastMessage:"Invalid Address",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})})),clearInput:k,placeholder:"Search Web3 domain or 0x123...",customStyle:I})})),v&&(0,n.jsx)(Fue,{children:(0,n.jsx)(Bue,{memberData:v,handleMemberList:e=>{d(e),k(),w("")},darkIcon:(0,n.jsx)(Mue,{})})}),(0,n.jsx)(Uue,Object.assign({flexDirection:"column",gap:"5px",justifyContent:"start"},{children:null==o?void 0:o.map(((e,t)=>(0,n.jsx)(Bue,{memberList:o,memberData:e,handleMembers:a,handleMemberList:T,darkIcon:(0,n.jsx)(Pue,{})},t)))})),(0,n.jsx)(D7,Object.assign({flex:"1",alignSelf:"center"},{children:(0,n.jsxs)(zue,Object.assign({onClick:()=>e(),isLoading:u,theme:b},{children:[u?"":f," ",u&&(0,n.jsx)(Z7,{size:"30",color:"#fff"})]}))}))]}))},Fue=o.Ay.div.withConfig({displayName:"AddWallets__MemberList",componentId:"sc-fkss2h-0"})(["flex:1;width:100%;margin-bottom:40px;"]),Uue=(0,o.Ay)(D7).withConfig({displayName:"AddWallets__MultipleMemberList",componentId:"sc-fkss2h-1"})(["height:fit-content;max-height:216px;overflow:hidden scroll;padding:0px 2px;width:100%;&::-webkit-scrollbar-track{background-color:",";}&::-webkit-scrollbar{background-color:",";width:6px;}@media (max-width:768px){padding:0px 0px 0px 0px;max-height:35vh;&::-webkit-scrollbar-track{background-color:none;border-radius:9px;}&::-webkit-scrollbar{background-color:none;width:4px;}}&::-webkit-scrollbar-thumb{border-radius:10px;background-image:-webkit-gradient( linear,left top,left bottom,color-stop(0.44,#cf1c84),color-stop(0.72,#cf1c84),color-stop(0.86,#cf1c84) );}"],(e=>e.theme.scrollbarColor),(e=>e.theme.scrollbarColor)),zue=o.Ay.button.withConfig({displayName:"AddWallets__ModalConfirmButton",componentId:"sc-fkss2h-2"})(["margin:60px 0 0 0;width:197px;background:",";color:",";border:",";min-width:50%;box-sizing:border-box;cursor:pointer;border-radius:12px;padding:16px;font-size:16px;font-weight:500;display:flex;align-items:center;justify-content:center;box-shadow:none;height:48px;"],(e=>e.theme.backgroundColor.buttonBackground),(e=>e.theme.textColor.buttonText),(e=>"none")),Hue=e=>{const{imageSrc:t,onImageCropped:r,width:o,height:a}=e,[s,c]=(0,i.useState)({x:0,y:0}),[u,l]=(0,i.useState)(1),[d,f]=(0,i.useState)(null),[h,p]=(0,i.useState)(""),g=(0,i.useCallback)(((e,t)=>{f(t)}),[]);i.useEffect((()=>{!function(){pJ(this,void 0,void 0,(function*(){try{if(t){const e=yield function(e,t){return pJ(this,void 0,void 0,(function*(){const r=yield y(e),n=document.createElement("canvas");n.width=null==t?void 0:t.width,n.height=null==t?void 0:t.height;const i=n.getContext("2d"),o="none.jpg";return i.drawImage(r,t.x,t.y,t.width,t.height,0,0,t.width,t.height),new Promise(((e,t)=>{n.toBlob((t=>{e(new File([t],o,{type:"image/jpeg",lastModified:Date.now()}))}),"image/jpeg")}))}))}(t,d),n=yield m(e);return void r(n)}return}catch($R){return void console.error($R)}}))}()}),[s]);const m=e=>new Promise((t=>{LI().imageFileResizer(e,128,128,"JPEG",80,0,(e=>{t(e),p(e)}),"base64")})),y=e=>new Promise(((t,r)=>{const n=new Image;n.addEventListener("load",(()=>t(n))),n.addEventListener("error",(e=>r(e))),n.setAttribute("crossOrigin","anonymous"),n.src=e}));return(0,n.jsx)(Vue,{children:(0,n.jsx)(NI,{image:t,crop:s,zoom:u,aspect:1,onCropChange:c,onCropComplete:g,onZoomChange:e=>{l(e)},style:{containerStyle:{width:o||"0.1px",height:a||"0.1px",position:"relative",borderRadius:"16px"}}})})},Vue=o.Ay.div.withConfig({displayName:"AutoImageClipper__Container",componentId:"sc-famnlk-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;"]);const Kue=(e,t)=>(0,n.jsx)(u4,Object.assign({tooltipContent:`${t}`},{children:e})),Gue={11155111:{label:"ETHEREUM SEPOLIA",icon:Kue((0,n.jsx)(g4,{}),"Ethereum Sepolia")},1:{label:"ETHEREUM MAINNET",icon:Kue((0,n.jsx)(g4,{}),"Ethereum Mainnet")},80002:{label:"POLYGON AMOY",icon:Kue((0,n.jsx)(b4,{}),"Polygon Amoy")},137:{label:"POLYGON MAINNET",icon:Kue((0,n.jsx)(b4,{}),"Polygon Mainnet")},97:{label:"BSC TESTNET",icon:Kue((0,n.jsx)(h4,{}),"Bsc Testnet")},56:{label:"BSC MAINNET",icon:Kue((0,n.jsx)(h4,{}),"Bsc Mainnet")},11155420:{label:"OPTIMISM TESTNET",icon:Kue((0,n.jsx)(y4,{}),"Optimism Testnet")},10:{label:"OPTIMISM MAINNET",icon:Kue((0,n.jsx)(y4,{}),"Optimism Mainnet")},1442:{label:"POLYGON ZK EVM TESTNET",icon:Kue((0,n.jsx)(v4,{}),"Polygon ZK EVM Testnet")},1101:{label:"POLYGON ZK EVM MAINNET",icon:Kue((0,n.jsx)(v4,{}),"Polygon ZK EVM Mainnet")},42161:{label:"ARBITRUMONE MAINNET",icon:Kue((0,n.jsx)(f4,{}),"Arbitrum Mainnet")},421614:{label:"ARBITRUM TESTNET",icon:Kue((0,n.jsx)(f4,{}),"Arbitrum Testnet")},123:{label:"FUSE TESTNET",icon:Kue((0,n.jsx)(m4,{}),"Fuse Testnet")},122:{label:"FUSE MAINNET",icon:Kue((0,n.jsx)(m4,{}),"Fuse Mainnet")},80085:{label:"BERACHAIN TESTNET",icon:Kue((0,n.jsx)(p4,{}),"Berachain Testnet")},59141:{label:"LINEA TESTNET",icon:Kue((0,n.jsx)(w4,{}),"Linea Testnet")},59144:{label:"LIENA MAINNET",icon:Kue((0,n.jsx)(w4,{}),"Linea Mainnet")},111557560:{label:"CYBER CONNECT TESTNET",icon:Kue((0,n.jsx)(A4,{}),"CyberConnect Testnet")},7560:{label:"CYBER CONNECT MAINNET",icon:Kue((0,n.jsx)(A4,{}),"CyberConnect Mainnet")},84532:{label:"BASE TESTNET",icon:Kue((0,n.jsx)(C4,{}),"Base Testnet")},8453:{label:"BASE MAINNET",icon:Kue((0,n.jsx)(C4,{}),"Base Testnet")}},que={owner:"Only Owner can invite",admin:"Only Admin can invite"},Que=[{heading:"ALL",value:"all"},{heading:"ANY",value:"any"},{heading:"SPECIFIC",value:"specific"}],Wue=[{heading:"Any",value:"any"},{heading:"All",value:"all"}],Jue={any:{head:"Any one",tail:"of the following criteria must be true"},all:{head:"All",tail:"of the following criteria must be true"}},Yue={ENTRY:{heading:"Conditions to Join",subHeading:"Add a condition to join or remove all conditions for no rules"},CHAT:{heading:"Conditions to Chat",subHeading:"Add a condition to chat or leave it empty for no rules"}},Zue=({handleMoreOptionsClick:e,setSelectedIndex:t,selectedIndex:r,row:o,col:a,dropDownValues:s})=>{var c,u;const l=(0,i.useContext)(Pae),d=(0,i.useRef)(null);return H9(d,(()=>t(null))),(0,n.jsxs)(D7,Object.assign({onClick:()=>e(o,a),position:"static"},{children:[(0,n.jsx)(Pue,{color:null===(c=l.iconColor)||void 0===c?void 0:c.groupSettings,width:"24",height:"24"}),(null==r?void 0:r.length)&&r[0]===o&&(0,n.jsx)(ele,Object.assign({ref:d,theme:l},{children:(0,n.jsx)(Cce,{dropdownValues:s,hoverBGColor:null===(u=l.backgroundColor)||void 0===u?void 0:u.modalHoverBackground})}))]}))},$ue=({criteria:e})=>{var t,r,o,a,s,c,u,l,d,f,h,p,g,m,y,b,v;const w=(0,i.useContext)(Pae),A=()=>{var t;return o7[null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.comparison]},[C]=(e=>{const t=g7(e),[r,n]=(0,i.useState)("...."),[o,a]=(0,i.useState)(!0),s=e=>{n(e),a(!1)};return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var r;if(t){const t=e.data,n=t.contract,i=e.category;if(i&&n){if(t.token)return void s(t.token);const e=n.split(":"),[o,a]=[e[2],parseInt(e[1])];if(i===Y9){const[e,t]=yield f7(o,a);e||s(t.symbol)}else if(i===Z9){const[e,t]=yield h7(o,a);e||s(t)}else if(i===$9){const[e,n]=yield p7(o,a,null!==(r=t.tokenId)&&void 0!==r?r:0);e||s(n)}}}}))}),[]),[r,o]})(e);return(0,n.jsxs)(D7,Object.assign({gap:"8px",width:"100%",justifyContent:"start"},{children:[(0,n.jsx)(B7,Object.assign({alignSelf:"center",background:null===(t=w.backgroundColor)||void 0===t?void 0:t.criteriaLabelBackground,borderRadius:"4px",fontSize:"10px",color:null===(r=w.textColor)||void 0===r?void 0:r.buttonText,padding:"4px 8px 4px 8px"},{children:a7[e.category]})),((null==e?void 0:e.category)===Z9||(null==e?void 0:e.category)===Y9||(null==e?void 0:e.category)===$9)&&(0,n.jsxs)(D7,Object.assign({width:"100%",justifyContent:"space-between",alignItems:"center"},{children:[(null==e?void 0:e.category)===$9?(0,n.jsxs)(D7,{children:[(0,n.jsxs)(B7,Object.assign({fontWeight:"500",color:null===(o=w.textColor)||void 0===o?void 0:o.modalSubHeadingText},{children:[A()," "]})),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start",margin:"0px 0px 0px 8px"},{children:[(0,n.jsxs)(B7,Object.assign({color:null===(a=w.textColor)||void 0===a?void 0:a.modalSubHeadingText,fontSize:"10px"},{children:[null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.amount," ",C]})),(0,n.jsxs)(B7,Object.assign({color:null===(c=w.textColor)||void 0===c?void 0:c.modalHeadingText,textAlign:"flex-start"},{children:["ID: ",null===(u=null==e?void 0:e.data)||void 0===u?void 0:u.tokenId]}))]}))]}):(0,n.jsxs)(B7,Object.assign({fontWeight:"700",color:null===(l=w.textColor)||void 0===l?void 0:l.modalHeadingText},{children:[(0,n.jsxs)(B7,Object.assign({fontWeight:"500",color:null===(d=w.textColor)||void 0===d?void 0:d.modalSubHeadingText},{children:[A()," "]})),null===(f=null==e?void 0:e.data)||void 0===f?void 0:f.amount," ",C]})),(0,n.jsx)(nle,Object.assign({padding:"3px 6px 0 0"},{children:Gue[null===(h=null==e?void 0:e.data)||void 0===h?void 0:h.contract.split(":")[1]].icon}))]})),e.category===X9&&(0,n.jsx)(B7,Object.assign({fontWeight:"500",color:null===(p=w.textColor)||void 0===p?void 0:p.modalSubHeadingText},{children:"Owner and Admin can invite"})),e.category===e7&&(0,n.jsx)(B7,Object.assign({fontWeight:"500",fontSize:"14px",color:null===(g=w.textColor)||void 0===g?void 0:g.modalSubHeadingText},{children:s9(null===(m=e.data)||void 0===m?void 0:m.url,30)})),e.category===t7&&(0,n.jsxs)(B7,Object.assign({fontWeight:"700",color:null===(y=w.textColor)||void 0===y?void 0:y.modalHeadingText},{children:[null===(b=null==e?void 0:e.data)||void 0===b?void 0:b.id," ",(0,n.jsxs)(B7,Object.assign({fontWeight:"500",color:null===(v=w.textColor)||void 0===v?void 0:v.modalSubHeadingText},{children:["with"," "]})),(()=>{var t,r;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.comparison)?null===(r=Que.find((t=>{var r;return t.value===(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.comparison)})))||void 0===r?void 0:r.heading:"SPECIFIC"})()," role"]}))]}))},Xue=({conditionData:e,deleteFunction:t,updateFunction:r,moreOptions:o=!0})=>{const[a,s]=(0,i.useState)(null),c=(0,i.useRef)(null),u=[{id:0,value:"Edit",title:"Edit",icon:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.00899 15H1.60869C1.44726 15 1.29243 14.9359 1.17828 14.8217C1.06413 14.7076 1 14.5527 1 14.3913V10.991C1.00007 10.8298 1.06411 10.6752 1.17804 10.5611L10.561 1.17814C10.6752 1.06407 10.8299 1 10.9913 1C11.1527 1 11.3074 1.06407 11.4216 1.17814L14.8219 4.57616C14.9359 4.6903 15 4.84506 15 5.00643C15 5.16779 14.9359 5.32256 14.8219 5.4367L5.43888 14.822C5.32482 14.9359 5.17021 14.9999 5.00899 15Z' stroke='rgba(120%2c 126%2c 153%2c 1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8.30469 3.43481L12.5655 7.69565' stroke='rgba(120%2c 126%2c 153%2c 1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",function:()=>{r&&a&&(r(a[0]),s(null))}},{id:1,value:"Remove",title:"Remove",icon:"data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 9H12' stroke='rgba(120%2c 126%2c 153%2c 1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17Z' stroke='rgba(120%2c 126%2c 153%2c 1)' stroke-width='2' stroke-miterlimit='10'/%3e%3c/svg%3e",function:()=>{t&&a&&(t(a[0]),s(null))}}],l=(0,i.useContext)(Pae);H9(c,(()=>s(null)));const d=(e,t)=>{s([e,t])};return(0,n.jsx)(D7,Object.assign({flexDirection:"column",width:"100%",height:"100%"},{children:e&&e.slice(1).map(((t,r)=>{var i,c,f;return(0,n.jsxs)(D7,Object.assign({flexDirection:"column"},{children:[t.length<=2&&t.length>=1&&t.map(((e,t)=>{var i,c;return(0,n.jsx)(n.Fragment,{children:e.type&&(0,n.jsxs)(D7,Object.assign({borderRadius:null===(i=l.borderRadius)||void 0===i?void 0:i.modalInnerComponents,background:null===(c=l.backgroundColor)||void 0===c?void 0:c.modalHoverBackground,padding:"15px 4px 15px 12px",justifyContent:"space-between"},{children:[(0,n.jsx)($ue,{criteria:e}),o&&(0,n.jsx)(Zue,{handleMoreOptionsClick:d,row:r,col:t,dropDownValues:u,setSelectedIndex:s,selectedIndex:a})]}))})})),(null===(i=t[0])||void 0===i?void 0:i.operator)&&t.length>2&&(0,n.jsxs)(rle,Object.assign({theme:l,flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderRadius:null===(c=l.borderRadius)||void 0===c?void 0:c.modalInnerComponents,padding:"8px 0px 8px 8px",gap:"25px"},{children:[(0,n.jsx)(D7,Object.assign({flexDirection:"column",gap:"8px",width:"100%"},{children:t.map(((e,t)=>{var r,i;return(0,n.jsx)(n.Fragment,{children:e.type&&(0,n.jsx)(D7,Object.assign({borderRadius:null===(r=l.borderRadius)||void 0===r?void 0:r.modalInnerComponents,background:null===(i=l.backgroundColor)||void 0===i?void 0:i.modalHoverBackground,padding:"15px 4px 15px 12px",justifyContent:"space-between",width:"100%"},{children:(0,n.jsx)($ue,{criteria:e})}))})}))})),(0,n.jsxs)(D7,{children:[t.map((e=>(0,n.jsx)(n.Fragment,{children:t.length>2&&e.operator&&!e.type&&(0,n.jsx)(tle,Object.assign({theme:l},{children:e.operator}))}))),o&&(0,n.jsx)(Zue,{handleMoreOptionsClick:d,row:r,col:0,dropDownValues:u,setSelectedIndex:s,selectedIndex:a})]})]})),e&&re.theme.borderRadius.modalInnerComponents),(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modalInnerComponents)),tle=(0,o.Ay)(B7).withConfig({displayName:"ConditionsComponent__OperatorSpan",componentId:"sc-v7lmqz-1"})(["padding:4px 8px;margin:8px 0;border-radius:",";background:",";color:",";"],(e=>{var t;return null===(t=e.theme.borderRadius)||void 0===t?void 0:t.modalInnerComponents}),(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.modalHoverBackground}),(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.modalSubHeadingText})),rle=(0,o.Ay)(D7).withConfig({displayName:"ConditionsComponent__CriteriaGroup",componentId:"sc-v7lmqz-2"})(["border:",";"],(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.modalInnerComponents})),nle=(0,o.Ay)(D7).withConfig({displayName:"ConditionsComponent__ChainIconSVG",componentId:"sc-v7lmqz-3"})(["width:20px;height:20px;svg,svg image,img{width:100%;height:100%;}"]),ile=({onSubmit:e,handlePrevious:t,onClose:r,memberList:i,handleMemberList:o,groupMembers:a,isLoading:s=!1,groupInfo:c})=>{const{fetchMemberStatus:u}=N5(),{toast:l}=P5();return(0,n.jsx)(Lue,{title:"Add More Wallets",submitButtonTitle:"Add To Group",addMemberToList:e=>pJ(void 0,void 0,void 0,(function*(){let t="";const r=yield u({chatId:c.chatId,accountId:e.wallets});t=((e,t,r,n,i)=>{let o="";return(null==n?void 0:n.participant)&&(o="This Member is Already present in the group"),Zse(e,t,"wallets")&&(o="Address is already added"),(null==t?void 0:t.length)+(null==r?void 0:r.length)>=i&&(o="No More Addresses can be added"),(null==t?void 0:t.length)>=i&&(o="No More Addresses can be added"),o})(e,i,a,r,(null==c?void 0:c.isPublic)?25e3:5e3),t?l.showMessageToast({toastTitle:"Error",toastMessage:t,toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})}):o((t=>[...t,Object.assign(Object.assign({},e),{isAdmin:!1})]))})),onClose:r,onSubmit:e,isLoading:s,handlePrevious:t,memberList:i,totalAllowedMembers:(null==c?void 0:c.isPublic)?25e3:5e3,handleMemberList:o,groupMembers:a})},ole=({fill:e})=>(0,n.jsxs)("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer"},{children:[(0,n.jsx)("path",{d:"M16 10C17.1046 10 18 9.10457 18 8C18 6.89543 17.1046 6 16 6C14.8954 6 14 6.89543 14 8C14 9.10457 14.8954 10 16 10Z",fill:e}),(0,n.jsx)("path",{d:"M16 18C17.1046 18 18 17.1046 18 16C18 14.8954 17.1046 14 16 14C14.8954 14 14 14.8954 14 16C14 17.1046 14.8954 18 16 18Z",fill:e}),(0,n.jsx)("path",{d:"M16 26C17.1046 26 18 25.1046 18 24C18 22.8954 17.1046 22 16 22C14.8954 22 14 22.8954 14 24C14 25.1046 14.8954 26 16 26Z",fill:e})]})),ale=({key:e,member:t,dropdownValues:r,selectedMemberAddress:o,setSelectedMemberAddress:a,dropdownRef:s})=>{var c,u,l,d,f,h,p;const g=(0,i.useContext)(Pae),{user:m}=P5(),[y,b]=(0,i.useState)(0);return(0,n.jsxs)(sle,Object.assign({background:(null===(c=t.address)||void 0===c?void 0:c.toLowerCase())===(null==o?void 0:o.toLowerCase())?null===(u=g.backgroundColor)||void 0===u?void 0:u.modalHoverBackground:"",id:null==t?void 0:t.address,theme:g},{children:[(0,n.jsx)(_ce,{theme:g,member:{name:null,icon:null===(d=null===(l=null==t?void 0:t.userInfo)||void 0===l?void 0:l.profile)||void 0===d?void 0:d.picture,chatId:null,recipient:t.address,abbrRecipient:s9(l8(null==t?void 0:t.address),6,!0),web3Name:null,desc:null}}),(0,n.jsxs)(D7,Object.assign({justifyContent:"flex-end",position:"relative",zIndex:"2"},{children:[Use(t)&&(0,n.jsx)(B7,Object.assign({background:"#F4DCEA",color:"#D53A94",borderRadius:"8px",padding:"6px",fontWeight:"500",fontSize:"10px"},{children:"Admin"})),l8(null==t?void 0:t.address).toLowerCase()!==l8(m.account.toLowerCase())&&r.length>0&&(0,n.jsx)(D7,Object.assign({maxWidth:"fit-content",padding:"0 0px 0 0",position:"relative",zIndex:"2",onClick:()=>{(e=>{var t;const r=null===(t=document.getElementById(e))||void 0===t?void 0:t.getBoundingClientRect();b(null==r?void 0:r.top)})(t.address),a(null==t?void 0:t.address)},style:{cursor:"pointer"}},{children:(0,n.jsx)(ole,{fill:null===(f=g.iconColor)||void 0===f?void 0:f.groupSettings})}))]})),(null==o?void 0:o.toLowerCase())==(null===(h=null==t?void 0:t.address)||void 0===h?void 0:h.toLowerCase())&&(0,n.jsx)(cle,Object.assign({style:{top:y>570?"30%":"40%"},theme:g,ref:s},{children:(0,n.jsx)(Cce,{dropdownValues:r,hoverBGColor:null===(p=g.backgroundColor)||void 0===p?void 0:p.modalHoverBackground})}))]}),e)},sle=(0,o.Ay)(D7).withConfig({displayName:"MemberProfileCard__ProfileCardItem",componentId:"sc-g1t8d9-0"})(["justify-content:space-between;padding:8px 8px;border-bottom:",";position:relative;box-sizing:border-box;width:100%;max-height:64px;align-self:stretch;display:flex;height:auto;z-index:auto;flex:1;@media (max-width:480px){max-width:100%;}"],(e=>e.theme.border.modalInnerComponents)),cle=(0,o.Ay)(D7).withConfig({displayName:"MemberProfileCard__DropdownContainer",componentId:"sc-g1t8d9-1"})(["position:absolute;left:48%;top:69%;border-radius:",";padding:14px 8px;z-index:999999999999 !important;display:flex;flex-direction:column !important;background:",";border:",";@media ","{left:27%;}@media (min-width:426px) and (max-width:1150px){left:48%;}@media (max-width:480px){left:25%;}"],(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modal),c5.mobileL),ule="REMOVE_MEMBER",lle="REMOVE_ADMIN",dle="ADD_ADMIN",fle={REMOVE_MEMBER:"Removed Member successfully",ADD_MEMBER:"Group Invitation sent",REMOVE_ADMIN:"Admin removed successfully",ADD_ADMIN:"Admin added successfully"},hle=({pendingMembers:e,setShowPendingRequests:t,setPendingMemberPaginationData:r,showPendingRequests:o,pendingMemberPaginationData:a,count:s,theme:c})=>{var u;const l=(0,i.useRef)(null),d=C9(l,"1px");return(0,i.useEffect)((()=>{if(!d||a.loading||a.finishedFetching)return;const e=a.page+1;r((t=>Object.assign(Object.assign({},t),{page:e})))}),[d]),e&&e.length?(0,n.jsxs)(mle,Object.assign({theme:c},{children:[(0,n.jsxs)(yle,Object.assign({onClick:()=>t(!o)},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"18px",color:null===(u=c.textColor)||void 0===u?void 0:u.modalSubHeadingText},{children:"Pending Requests"})),(0,n.jsx)(vle,{children:s}),(0,n.jsx)(ble,{src:Vne,width:"auto",setPosition:!o,borderRadius:"100%"})]})),(0,n.jsxs)(wle,Object.assign({flexDirection:"column",flex:"1",justifyContent:"start",borderRadius:"12px",theme:c,padding:"10px 0 0 0"},{children:[o&&e&&(null==e?void 0:e.length)>0&&e.map((e=>{var t,r,i,o;return(0,n.jsx)(gle,Object.assign({theme:c},{children:(0,n.jsx)(_ce,{theme:c,member:{name:null,icon:(null===(r=null===(t=null==e?void 0:e.userInfo)||void 0===t?void 0:t.profile)||void 0===r?void 0:r.picture)||null,chatId:null,web3Name:null,recipient:l8(null===(i=e.address)||void 0===i?void 0:i.split(":")[1]),abbrRecipient:s9(l8(null===(o=e.address)||void 0===o?void 0:o.split(":")[1]),6,!0),desc:null},customStyle:{imgHeight:"36px",imgMaxHeight:"36px",fontSize:"inherit",fontWeight:"300"}})}))})),a.loading&&(0,n.jsx)(D7,{children:(0,n.jsx)(k7,{size:"20",color:c.spinnerColor})}),(0,n.jsx)("div",{ref:l,style:{padding:"1px"}})]}))]})):null},ple=({acceptedMembers:e,setAcceptedMemberPaginationData:t,acceptedMemberPaginationData:r,accountStatus:o,chatId:a,theme:s})=>{const{toast:c}=P5(),u=(0,i.useRef)(null),[l,d]=(0,i.useState)(null),f=(0,i.useRef)(null),{addMember:h,removeMember:p,modifyLoading:g,addLoading:m,removeLoading:y,modifyParticipant:b}=B5(),v=C9(u,"1px");(0,i.useEffect)((()=>{if(!v||r.loading||r.finishedFetching)return;const e=r.page+1;t((t=>Object.assign(Object.assign({},t),{page:e})))}),[v]);const w=e=>pJ(void 0,void 0,void 0,(function*(){try{const t=yield b({memberList:[l],chatId:a,role:e});e===Q9.ADMIN&&A(t,fle[dle]),e===Q9.MEMBER&&A(t,fle[lle])}catch(ys){c.showMessageToast({toastTitle:"Error",toastMessage:"Please, try again",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})}finally{d(null)}})),A=(e,t)=>{"string"!=typeof e?c.showMessageToast({toastTitle:"Success",toastMessage:t,toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"green"})}):c.showMessageToast({toastTitle:"Error",toastMessage:"Error",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})},C={id:"dismiss_admin",title:"Dismiss as admin",icon:Due,function:()=>w(Q9.MEMBER)},E={id:"add_admin",title:"Make group admin",icon:jue,function:()=>w(Q9.ADMIN)},x={id:"remove_member",title:"Remove",icon:Oue,function:()=>{return e=Q9.MEMBER,pJ(void 0,void 0,void 0,(function*(){try{const t=yield p({memberList:[l],chatId:a,role:e});e===Q9.ADMIN&&A(t,fle[lle]),e===Q9.MEMBER&&A(t,fle[ule])}catch(ys){c.showMessageToast({toastTitle:"Error",toastMessage:"Please, try again",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})}finally{d(null)}}));var e},textColor:"#ED5858"};return H9(f,(()=>d(null))),e&&e.length?(0,n.jsxs)(wle,Object.assign({flexDirection:"column",zIndex:"2",justifyContent:"start",theme:s,padding:"10px 0 0 0"},{children:[e.map(((e,t)=>(0,n.jsx)(ale,{member:e,dropdownValues:Use(e)&&(null==o?void 0:o.role)===Q9.ADMIN.toLowerCase()?[C,x]:(null==o?void 0:o.role)===Q9.ADMIN.toLowerCase()?[E,x]:[],selectedMemberAddress:l,setSelectedMemberAddress:d,dropdownRef:f},t))),(0,n.jsx)("div",{ref:u,style:{padding:"1px"}}),r.loading&&(0,n.jsx)(D7,{children:(0,n.jsx)(k7,{size:"20",color:s.spinnerColor})})]})):null},gle=o.Ay.div.withConfig({displayName:"PendingMembers__GroupPendingMembers",componentId:"sc-1u055nf-0"})(["margin-top:3px;display:flex;flex-direction:row;width:100%;align-items:center;background:",";padding:10px 15px;box-sizing:border-box;&:last-child{border-radius:0px 0px 16px 16px;}"],(e=>e.theme.backgroundColor.modalHoverBackground)),mle=o.Ay.div.withConfig({displayName:"PendingMembers__PendingRequestWrapper",componentId:"sc-1u055nf-1"})(["width:100%;border:",";border-radius:",";padding:0px 0px;box-sizing:border-box;"],(e=>e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents)),yle=o.Ay.div.withConfig({displayName:"PendingMembers__PendingSection",componentId:"sc-1u055nf-2"})(["width:100%;display:flex;flex-direction:row;align-items:center;flex:1;cursor:pointer;padding:15px 20px 5px 20px;box-sizing:border-box;"]),ble=(0,o.Ay)(R7).withConfig({displayName:"PendingMembers__ArrowImage",componentId:"sc-1u055nf-3"})(["margin-left:auto;transform:",";"],(e=>(null==e?void 0:e.setPosition)?"rotate(0)":"rotate(180deg)")),vle=o.Ay.div.withConfig({displayName:"PendingMembers__Badge",componentId:"sc-1u055nf-4"})(["margin:0 0 0 5px;font-size:13px;background:rgb(207,28,132);padding:4px 8px;border-radius:7px;color:white;font-weight:700;"]),wle=(0,o.Ay)(D7).withConfig({displayName:"PendingMembers__ProfileSection",componentId:"sc-1u055nf-5"})(["height:fit-content;&::-webkit-scrollbar-thumb{background:transparent;border-radius:10px;}&::-webkit-scrollbar-button{height:20px;}&::-webkit-scrollbar{width:0px;}"]);const Ale=e=>{const t=e=>Object.keys(e)[0];if(!e)return[];const r=[],n=Array.isArray(e.conditions)?e.conditions[0]:e.conditions,i=t(n);if(r.push([{operator:i}]),0===n[i].length)return[];const o=n[i];for(const a of o){const e=t(a);"type"===e?r.push([a]):r.push([{operator:e},...a[e].map((e=>Object.assign({},e)))])}return r},Cle=({color:e})=>(0,n.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M9.75 0.25C7.82164 0.25 5.93657 0.821828 4.33319 1.89317C2.72982 2.96452 1.48013 4.48726 0.742179 6.26884C0.00422448 8.05042 -0.188858 10.0108 0.187348 11.9021C0.563554 13.7934 1.49215 15.5307 2.85571 16.8943C4.21927 18.2579 5.95656 19.1865 7.84787 19.5627C9.73919 19.9389 11.6996 19.7458 13.4812 19.0078C15.2627 18.2699 16.7855 17.0202 17.8568 15.4168C18.9282 13.8134 19.5 11.9284 19.5 10C19.4973 7.41498 18.4692 4.93661 16.6413 3.10872C14.8134 1.28084 12.335 0.25273 9.75 0.25ZM15.7613 12.7319C15.9318 12.8343 16.0547 13.0003 16.1029 13.1934C16.1511 13.3864 16.1206 13.5907 16.0181 13.7612C15.9157 13.9318 15.7497 14.0547 15.5566 14.1029C15.3636 14.1511 15.1593 14.1206 14.9888 14.0181L10.5 11.3247V16.1875C10.5 16.3864 10.421 16.5772 10.2803 16.7178C10.1397 16.8585 9.94892 16.9375 9.75 16.9375C9.55109 16.9375 9.36033 16.8585 9.21967 16.7178C9.07902 16.5772 9 16.3864 9 16.1875V11.3247L4.51125 14.0181C4.34069 14.1206 4.13641 14.1511 3.94337 14.1029C3.75032 14.0547 3.58432 13.9318 3.48188 13.7612C3.37944 13.5907 3.34895 13.3864 3.39713 13.1934C3.4453 13.0003 3.56819 12.8343 3.73875 12.7319L8.29219 10L3.73875 7.26813C3.56819 7.16569 3.4453 6.99968 3.39713 6.80664C3.34895 6.61359 3.37944 6.40932 3.48188 6.23875C3.58432 6.06818 3.75032 5.9453 3.94337 5.89712C4.13641 5.84895 4.34069 5.87944 4.51125 5.98187L9 8.67531V3.8125C9 3.61359 9.07902 3.42282 9.21967 3.28217C9.36033 3.14152 9.55109 3.0625 9.75 3.0625C9.94892 3.0625 10.1397 3.14152 10.2803 3.28217C10.421 3.42282 10.5 3.61359 10.5 3.8125V8.67531L14.9888 5.98187C15.0732 5.93115 15.1668 5.89756 15.2643 5.88302C15.3617 5.86848 15.4611 5.87327 15.5566 5.89712C15.6522 5.92098 15.7422 5.96342 15.8214 6.02204C15.9005 6.08065 15.9674 6.15429 16.0181 6.23875C16.0689 6.32321 16.1024 6.41683 16.117 6.51427C16.1315 6.6117 16.1267 6.71105 16.1029 6.80664C16.079 6.90222 16.0366 6.99218 15.978 7.07136C15.9193 7.15054 15.8457 7.2174 15.7613 7.26813L11.2078 10L15.7613 12.7319Z",fill:null!=e?e:"#657795"})})),Ele=({theme:e,groupInfo:t,alert:r,header:i,subheader:o})=>{const a=(e=>{if(!e)return{CHAT:[],ENTRY:[]};const[t,r]=[Ale(e.chat),Ale(e.entry)];return{CHAT:t,ENTRY:r}})(null==t?void 0:t.rules),s=K9(c5.mobileL),c=e=>{var t;return a[e].length?null===(t=a[e][0][0])||void 0===t?void 0:t.operator:null};return(0,n.jsxs)(D7,Object.assign({margin:"5px 0px 0px 0px",gap:"16px",flexDirection:"column",width:"100%"},{children:[!!Object.keys((null==t?void 0:t.rules)||{}).length&&(0,n.jsx)(xle,{theme:e,icon:(0,n.jsx)(Cle,{color:r?"#E93636":void 0}),header:null!=i?i:"Gated group",subheader:null!=o?o:"Conditions must be true to join and chat",alert:r}),(0,n.jsx)(Dle,Object.assign({overflow:"hidden auto",maxHeight:s?"46vh":"49vh",justifyContent:"start",flexDirection:"column",padding:"0 2px 0 0",theme:e},{children:Object.keys(Yue).map(((t,r)=>{var i,o,s,u,l,d;return(0,n.jsx)(n.Fragment,{children:c(t)?(0,n.jsxs)(D7,Object.assign({flexDirection:"column"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"16px",fontWeight:"500",alignSelf:"start",margin:"5px 0"},{children:null===(i=Yue[t])||void 0===i?void 0:i.heading})),(0,n.jsxs)(B7,Object.assign({fontSize:"14px",margin:"15px 0"},{children:[null===(s=Jue[null===(o=a[t][0][0])||void 0===o?void 0:o.operator])||void 0===s?void 0:s.head,(0,n.jsxs)(B7,Object.assign({color:null===(u=e.textColor)||void 0===u?void 0:u.modalSubHeadingText},{children:[" ",null===(d=Jue[null===(l=a[t][0][0])||void 0===l?void 0:l.operator])||void 0===d?void 0:d.tail]}))]})),(0,n.jsx)(D7,Object.assign({width:"100%",justifyContent:"start",flexDirection:"column"},{children:(0,n.jsx)(Xue,{moreOptions:!1,conditionData:a[t]})}))]}),r):null})}))}))]}))},xle=({theme:e,icon:t,header:r,subheader:i,handleNextInformation:o,cursor:a,alert:s})=>{var c,u;return(0,n.jsxs)(Ple,Object.assign({onClick:o,theme:e,alert:s,cursor:"pointer",justifyContent:"start"},{children:[t,(0,n.jsxs)(D7,Object.assign({cursor:a,flexDirection:"column",alignItems:"flex-start",gap:"5px"},{children:[(0,n.jsx)(B7,Object.assign({cursor:a,fontSize:"18px",textAlign:"left",color:null===(c=e.textColor)||void 0===c?void 0:c.modalHeadingText},{children:r})),(0,n.jsx)(B7,Object.assign({cursor:a,textAlign:"left",fontSize:"12px",color:null===(u=e.textColor)||void 0===u?void 0:u.modalSubHeadingText},{children:i}))]}))]}))},Sle=1,Ile=2,kle=({theme:e,groupInfo:t,chatProfileInfo:r,handleNextInformation:o,pendingMemberPaginationData:a,setPendingMemberPaginationData:s,acceptedMemberPaginationData:c,setAcceptedMemberPaginationData:u,groupMembers:l,setShowAddMoreWalletModal:d,membersCount:f})=>{var h,p,g,m,y,b,v,w,A,C;const{user:E,toast:x}=P5(),[S,I]=(0,i.useState)(null),[k,_]=(0,i.useState)(!1),[T,M]=(0,i.useState)("");K9(c5.mobileL);const{fetchMemberStatus:P}=N5();return(0,i.useEffect)((()=>{(null==E?void 0:E.account)&&(null==r?void 0:r.isGroup)&&(null==r?void 0:r.chatId)&&pJ(void 0,void 0,void 0,(function*(){var e;const t=yield P({chatId:null!==(e=null==r?void 0:r.chatId)&&void 0!==e?e:"",accountId:null==E?void 0:E.account});t&&"string"!=typeof t?I(t):x.showMessageToast({toastTitle:"Error",toastMessage:"Error in fetching member details",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})}))}),[]),(0,n.jsxs)(Ole,Object.assign({margin:"auto",width:"100%",flexDirection:"column",gap:"16px",maxHeight:(null==r?void 0:r.isGroup)?"60vh":"auto",height:(null==r?void 0:r.isGroup)?"60vh":"auto",overflow:"hidden auto",justifyContent:"start",padding:"0 2px 0 0",theme:e},{children:[(null==r?void 0:r.chatId)&&(0,n.jsxs)(Mle,{children:[(0,n.jsx)(B7,Object.assign({fontSize:"18px",color:null===(h=e.textColor)||void 0===h?void 0:h.modalHeadingText},{children:"Chat ID"})),(0,n.jsxs)(D7,Object.assign({gap:"5px",alignSelf:"start",onClick:()=>{var e;C8(null!==(e=null==r?void 0:r.chatId)&&void 0!==e?e:""),M("copied")},onMouseEnter:()=>{M("click to copy")},onMouseLeave:()=>{M("")}},{children:[(0,n.jsx)(B7,Object.assign({textAlign:"start",fontSize:"16px",fontWeight:"400",color:null===(p=e.textColor)||void 0===p?void 0:p.modalSubHeadingText},{children:s9(null!==(g=null==r?void 0:r.chatId)&&void 0!==g?g:"",8,!0)})),!!T&&(0,n.jsx)(B7,Object.assign({cursor:"pointer",position:"relative",padding:"2px 10px",color:null===(m=e.textColor)||void 0===m?void 0:m.modalSubHeadingText,fontSize:"14px",fontWeight:"400",background:null===(y=e.backgroundColor)||void 0===y?void 0:y.modalHoverBackground,borderRadius:"16px"},{children:T}))]}))]}),(null==r?void 0:r.isGroup)||(null==r?void 0:r.desc)&&(0,n.jsxs)(Mle,{children:[(0,n.jsx)(B7,Object.assign({fontSize:"18px",color:null===(b=e.textColor)||void 0===b?void 0:b.modalHeadingText},{children:(null==r?void 0:r.isGroup)?"Group Description":"Profile Description"})),(0,n.jsx)(B7,Object.assign({textAlign:"start",fontSize:"16px",fontWeight:"400",color:null===(v=e.textColor)||void 0===v?void 0:v.modalSubHeadingText},{children:null==r?void 0:r.desc}))]}),(null==r?void 0:r.isGroup)&&(0,n.jsx)(xle,{theme:e,icon:(0,n.jsx)(R7,{cursor:"default",src:(null==t?void 0:t.isPublic)?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAABACAYAAABcIPRGAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALISURBVHgB7Zp/bhJBFMffmy1o/3KP0BsUT1A4gXgCMdKmtpq2iWLjP8A/hqBJSUwLAZLiCSwnKJ7AvYF4AvuPbmS785xpU9M/dvYXS6ck80kgG97M7PvO8N78yCBkxPZ+d+0y75cttNY58CIB2QhoS5t4vhDPU/khTmPPYpNR6+UUMgBhTl7UTsoMYU+4WYRE4AQ4fRl83B3BHKQWUH3TLaLld0QT6zAfU0L+fNh6PYEUMEjB1ruTI7T4eQbOS9aQ2PlWrVuHFCQagUrj1M65vycZOR6E463OSqPGwUXcCrEF3IHzNyQSsQIxybnu1zjOkwxO9L8RBwcZXDkhnkVGYgVA3MDoYC/k3AfiXVCCGMQagWrtuI4IjYhiIwtZsxeRHrcPRbrlfgMRn4WVQ8KDfnunAxFECqiIF+aI/whpYMpTZJHq4eciI3ZKIoiVhSx4PPiw64S1E5mFVkRvqWzSeYaslCYFyjqyrmxDWcjHI4ggdATCev/G+d6cM6r8S/nEv4tHO8gu5ojQDgodgbDeJ4RmL4PlgGyDiJoqu5gjymH1QwWIQNsI/F30/qA13xLgNsP2q87V0iKY0GBXCth8e1wARYDJ3oeMIeJjhcnefN8vqOopBRCq87X3cHYGGXM580Yqm+95aQTgmsLkJJnq4zLqiDYJAlOmxSC5ADGR2ArTT1gQIpgVbbNHqjopVqPsFywKZIlHNtVy+j5hBOjGCNCNEaCbpRfwfz8gz3mA8eItwxPxFTSFO0QwhsU4E++dnE+Gn673CHh92iA37ElP1nSDE2/171OWd9368jkvoWL+T36fiYPXCiwpYl+yJ4PYhuXFNmlUN0aAbowA3RgBujECdGME6MYI0I0RoBsjQDdGgG6MAN0YAboxAnRjBOjGCNANC7lotAw4jNDP/PLSXYGETSYv1MmLdaS4q3MfkZdrpc/99s7ZPz9F/3IJqyPbAAAAAElFTkSuQmCC":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAABACAYAAAC3F09FAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAATrSURBVHgB1ZpNTxtHGMefGYMlQKr8DereequpequqmFt7qBQ+QRYFoxYaYUutIb3EuVTErYQjYlIBUZxPEPfQ9mgiJccEfwTnliMHwovBM3meta3geGY9ux6v1z8JIXaNvT/Py/7nmWVgEafwNDF1cp5iMXET/7yBPwn8SV57SZ0BawgpXlzxWLWy9XMDLMLAAiQRPz1fF6yVxYtNmP8nOwQhn+3/uVYBCwwts5J/fM+/RB+NS8YXhm2pwDLO5uPktGxV8S2+AkswyXJ7xdUSBCQGAWiLiBp+/JdgEwbff/Ptj/D61b8vIAC+ZT6K9AxsDfIYr/CdBFbvdIHBXZHJdFAh390ss/Go7t215LFk8iFr8SoO7Pr1M1mcKE7OT1IgmMMYuwUeCMkWnxRXq+ADXzKZjfI6/vLq0w/nZmYLpcLSMQzgJ2xhnKJrUt/Cx5czzS8qhdzA9+piLDOwezFY2t/yP8Uu5x9VdK2EM2Rp78FqDgzhpi+cEoI+MKk6J6XMBREhDoq/OHjRyu4kQWadwrbxlG8swxg4mlMVvKDA0ynRvLhYwi7SUJ2Ln8azYIiRzPKvO2lQtApdQIzx+zAklVIOJw1Qvg8evwWGmLUM52nVYRy8h39byledbqoa7EmaLMAAMxkpU8rDTDwDiwgA5fs1WyINBhjJ4Gzzuer4wdadQ7CIFFBXHefMLPcZyUgu/lEcboBluBQN9RlpTwZboIBdauiBPmqmaC0yfXb2HO3TQN92DBb3/1jra24SymyWGzjqn0JE4VOn70sdESIJLahlfi8rBzzNOBhBFkE964wdrogSCRQ6Wrm7q5zfnxTvVHHaWcAWegsRg7tLVwVSyAqtIlXnKA3Pzc7ehIjBY4xpowQO+oJOyCQZhw2nOzjH9XcQoajhTs1dIRwHypuWK7Sxuw0Rp2c942S3E9PxeA2PptQvZtXmzMWSbsHUrpudpCAonKVwQlJ9aRXZ+hidDv5SJ4++xdlyvnwP434B9NRxBbigE7q9sVPiwNdhtCjvhz0ymd/KDnY8k5uiZ51reXOnwCQf9TjrW1b3xhnOTNcO7hLa0UTzkOJPgr+P99wejFeaCqIg1MMwMgQJHeniDwlRoQNCYlgZguJP7XZ+V5kI3BWkgHkIIc/ZkCESnMnnK/ldZfHBLQZinmMjWANdx5aMC1Yyt73ynFfSsIFVGcIr/gyKTsNiXYYwEdJFp2EYiQxBQlibVt6ASeiy2bQuNDKZDg4KHalKrFT42y+uzWNp11q5atQyRGr6LK6/uWKt2dbNNQwZIhVGWghLhhh5/AlThnCFvOIPbY9AQMKWITzLWe72SDvP+Y4/45AhPMtZnTy3AD6FxiXj0i5n6fMc7v3M+0kLY5UhvPKc3/gzdhnCVp6LhAzhVc4ioeZFc35Q/ImMDEG7y5TndPGH8pxuZ5qIlEwHx40/GqG9B6uLujwXRRmC8tyR3zwXVRliYPz5bG62p8tFWYbwFPp0JyLqMoRnnrvOJMgQSa9yVpdJkSHa5SxNniMmScbFa3ty4mQIXfzpkZGyFehBz3GgEuqRuWpelUZdQrXJp3lO+VhjZhM3nSS/ARGCgUjrnufsbk9aeXw+LDyf55RwP9BD2uPizav/ql9/9wNuubJ030nGGxMlQ7x5+f+hSmjiWqZLV4gDS7qrIAl3sdRb+QDqbV31OTmBWAAAAABJRU5ErkJggg==",height:"24px",maxHeight:"24px",width:"auto"}),header:(null==t?void 0:t.isPublic)?"Open":"Encrypted",subheader:(null==t?void 0:t.isPublic)?"Chats are not encrypted":"Chats are end-to-end encrypted"}),(null==r?void 0:r.isGroup)&&!!Object.keys((null==t?void 0:t.rules)||{}).length&&(0,n.jsx)(xle,{cursor:"pointer",handleNextInformation:o,theme:e,icon:(0,n.jsx)(Cle,{}),header:"Gated group",subheader:"Conditions must be true to join"}),(null==r?void 0:r.isGroup)&&(null==S?void 0:S.role)===Q9.ADMIN.toLowerCase()&&(null==l?void 0:l.accepted)&&(null===(w=null==l?void 0:l.accepted)||void 0===w?void 0:w.length)<((null==t?void 0:t.isPublic)?25e3:5e3)&&(0,n.jsxs)(jle,Object.assign({theme:e,onClick:()=>d(!0)},{children:[(0,n.jsx)(R7,{cursor:"pointer",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.5 12H20.5' stroke='%23787E99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M12.5 4V20' stroke='%23787E99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",height:"18px",maxHeight:"18px",width:"auto"}),(0,n.jsx)(B7,Object.assign({cursor:"pointer",color:null===(A=e.textColor)||void 0===A?void 0:A.modalSubHeadingText,margin:"0px 14px",fontSize:"16px",fontWeight:"400"},{children:"Add more wallets"}))]})),(null==r?void 0:r.isGroup)&&(0,n.jsx)(D7,Object.assign({borderRadius:"16px",flexDirection:"column"},{children:l.loading?(0,n.jsx)(k7,{size:"40",color:e.spinnerColor}):(0,n.jsxs)(n.Fragment,{children:[l&&(null==l?void 0:l.pending)&&(null===(C=null==l?void 0:l.pending)||void 0===C?void 0:C.length)>0&&(0,n.jsx)(hle,{pendingMemberPaginationData:a,setPendingMemberPaginationData:s,pendingMembers:null==l?void 0:l.pending,setShowPendingRequests:_,showPendingRequests:k,theme:e,count:f.pending}),(0,n.jsx)(ple,{theme:e,accountStatus:S,acceptedMemberPaginationData:c,setAcceptedMemberPaginationData:u,acceptedMembers:null==l?void 0:l.accepted,chatId:t.chatId})]})}))]}))},_le=({theme:e,setModal:t,closeModalOnClickAway:r,setGroupInfo:o,groupInfo:a,chatProfileInfo:s,groupInfoModalBackground:c=k5.OVERLAY,groupInfoModalPositionType:u=_5.GLOBAL})=>{var l,d;const[f,h]=(0,i.useState)(Sle),[p,g]=(0,i.useState)([]),[m,y]=(0,i.useState)(!1),[b,v]=(0,i.useState)({participants:0,pending:0}),[w,A]=(0,i.useState)(!1);(0,i.useState)(!1);const[C,E]=(0,i.useState)({page:1,finishedFetching:!1,loading:!1,reset:!1}),[x,S]=(0,i.useState)({page:1,finishedFetching:!1,loading:!1,reset:!1}),I=K9(c5.mobileL),[k,_]=(0,i.useState)({accepted:[],pending:[],loading:!1}),{fetchMembers:T,loading:M}=N5(),{user:P,toast:j}=P5(),{addMember:D}=B5(),{fetchMembersCount:O}=N5(),{fetchUserProfile:B}=G9(),{chatAcceptStream:N,chatRejectStream:R,participantRemoveStream:L,participantLeaveStream:F,participantJoinStream:U,participantRoleChangeStream:z,groupUpdateStream:H}=P5();(0,i.useEffect)((()=>{(null==s?void 0:s.isGroup)&&Object.keys(N||{}).length>0&&N.constructor===Object&&J(N)}),[N]),(0,i.useEffect)((()=>{(null==s?void 0:s.isGroup)&&Object.keys(R||{}).length>0&&R.constructor===Object&&Y(R)}),[R]),(0,i.useEffect)((()=>{(null==s?void 0:s.isGroup)&&Object.keys(L||{}).length>0&&L.constructor===Object&&Z(L)}),[L]),(0,i.useEffect)((()=>{(null==s?void 0:s.isGroup)&&Object.keys(F||{}).length>0&&F.constructor===Object&&$(F)}),[F]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){(null==s?void 0:s.isGroup)&&Object.keys(U||{}).length>0&&U.constructor===Object&&(yield X(U))}))}),[U]),(0,i.useEffect)((()=>{(null==s?void 0:s.isGroup)&&Object.keys(H||{}).length>0&&H.constructor===Object&&te(H)}),[H]),(0,i.useEffect)((()=>{(null==s?void 0:s.isGroup)&&Object.keys(z||{}).length>0&&z.constructor===Object&&ee(z)}),[z]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(null==s?void 0:s.isGroup){const e=yield O({chatId:s.chatId});e&&v(e)}}))}),[P]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){(null==s?void 0:s.isGroup)&&Object.keys(a||{}).length&&(_((e=>Object.assign(Object.assign({},e),{loading:!0}))),yield G("pending",V),yield G("accepted",K),_((e=>Object.assign(Object.assign({},e),{loading:!1}))))}))}),[a]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){(null==s?void 0:s.isGroup)&&(null==C?void 0:C.page)>1&&(yield re(null==C?void 0:C.page,E,V))}))}),[null==C?void 0:C.page]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){(null==s?void 0:s.isGroup)&&(null==x?void 0:x.page)>1&&(yield re(null==x?void 0:x.page,S,K))}))}),[null==x?void 0:x.page]);const V=e=>pJ(void 0,void 0,void 0,(function*(){const t=yield T({chatId:a.chatId,page:e,limit:5,pending:!0});(null==t?void 0:t.members.length)||E((e=>Object.assign(Object.assign({},e),{finishedFetching:!0}))),_((e=>Object.assign(Object.assign({},e),{pending:[...e.pending,...(null==t?void 0:t.members)||[]].slice().filter(((e,t,r)=>t===r.findIndex((t=>t.address===e.address))))})))})),K=e=>pJ(void 0,void 0,void 0,(function*(){const t=yield T({chatId:a.chatId,page:e,limit:5});(null==t?void 0:t.members.length)||S((e=>Object.assign(Object.assign({},e),{finishedFetching:!0}))),_((e=>Object.assign(Object.assign({},e),{accepted:[...e.accepted,...(null==t?void 0:t.members)||[]].slice().filter(((e,t,r)=>t===r.findIndex((t=>t.address===e.address))))})))})),G=(e,t)=>pJ(void 0,void 0,void 0,(function*(){k[e].length||(yield t(1))})),q=e=>{_((t=>Object.assign(Object.assign({},t),{pending:[...k.pending].filter((t=>!e.includes(t.address))).slice().filter(((e,t,r)=>t===r.findIndex((t=>t.address===e.address))))})))},Q=e=>{_((t=>Object.assign(Object.assign({},t),{accepted:[...k.accepted].filter((t=>!e.includes(t.address))).slice().filter(((e,t,r)=>t===r.findIndex((t=>t.address===e.address))))})))},W=e=>{_((t=>Object.assign(Object.assign({},t),{accepted:[...e,...k.accepted].slice().filter(((e,t,r)=>t===r.findIndex((t=>t.address===e.address))))})))},J=e=>{var t,r;if((null===(t=null==e?void 0:e.meta)||void 0===t?void 0:t.group)&&(null==a?void 0:a.chatId)===(null==e?void 0:e.chatId)){const t=null===(r=null==k?void 0:k.pending)||void 0===r?void 0:r.find((t=>(null==t?void 0:t.address)===(null==e?void 0:e.from)));t&&(W([t]),q([null==t?void 0:t.address]))}},Y=e=>{var t;(null===(t=null==e?void 0:e.meta)||void 0===t?void 0:t.group)&&(null==a?void 0:a.chatId)===(null==e?void 0:e.chatId)&&q([null==e?void 0:e.from])},Z=e=>{(null==a?void 0:a.chatId)===(null==e?void 0:e.chatId)&&(Q(null==e?void 0:e.to),q(null==e?void 0:e.to))},$=e=>{(null==a?void 0:a.chatId)===(null==e?void 0:e.chatId)&&(Q([null==e?void 0:e.from]),q([null==e?void 0:e.from]))},X=e=>pJ(void 0,void 0,void 0,(function*(){if((null==a?void 0:a.chatId)===(null==e?void 0:e.chatId)){const t=((e,t)=>({address:e.wallets,intent:t,role:Q9.MEMBER,userInfo:{msgSent:e.msgSent,maxMsgPersisted:e.maxMsgPersisted,did:e.did,wallets:e.wallets,profile:e.profile,encryptedPrivateKey:e.encryptedPrivateKey,publicKey:e.publicKey,verificationProof:e.verificationProof,origin:e.origin}}))(yield B({profileId:null==e?void 0:e.from,user:P}),!0);W([t])}})),ee=e=>{(null==a?void 0:a.chatId)===(null==e?void 0:e.chatId)&&(e=>{const t=null==k?void 0:k.accepted.map((t=>t.address==e.to[0]?Object.assign(Object.assign({},t),{role:e.newRole}):t));_((e=>Object.assign(Object.assign({},e),{accepted:t})))})(e)},te=e=>{var t,r,n,i,s,c;if((null==a?void 0:a.chatId)===(null==e?void 0:e.chatId)){const u=a;u&&(u.groupName=null===(t=null==e?void 0:e.meta)||void 0===t?void 0:t.name,u.groupDescription=null===(r=null==e?void 0:e.meta)||void 0===r?void 0:r.description,u.groupImage=null===(n=null==e?void 0:e.meta)||void 0===n?void 0:n.image,u.groupCreator=null===(i=null==e?void 0:e.meta)||void 0===i?void 0:i.owner,u.isPublic=!(null===(s=null==e?void 0:e.meta)||void 0===s?void 0:s.private),u.rules=null===(c=null==e?void 0:e.meta)||void 0===c?void 0:c.rules,o(u))}},re=(e,t,r)=>pJ(void 0,void 0,void 0,(function*(){try{t((e=>Object.assign(Object.assign({},e),{loading:!0}))),yield r(e)}catch(ys){console.log(ys),t((e=>Object.assign(Object.assign({},e),{loading:!1})))}finally{t((e=>Object.assign(Object.assign({},e),{loading:!1})))}})),ne=()=>{h(f+1)},ie=()=>{h(f-1)},oe=()=>pJ(void 0,void 0,void 0,(function*(){try{y(!0);let e={},t={};const r=p.filter((e=>e.isAdmin)).map((e=>e.wallets)),i=p.filter((e=>!e.isAdmin)).map((e=>e.wallets));r.length&&(e=yield D({memberList:p.filter((e=>e.isAdmin)).map((e=>e.wallets)),chatId:a.chatId,role:Q9.ADMIN})),i.length&&(t=yield D({memberList:p.filter((e=>!e.isAdmin)).map((e=>e.wallets)),chatId:a.chatId,role:Q9.MEMBER})),"string"!=typeof e&&"string"!=typeof t?j.showMessageToast({toastTitle:"Success",toastMessage:"Group Invitation sent",toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"green"})}):j.showMessageToast({toastTitle:"Error",toastMessage:"Error in adding member",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})}catch(ys){console.error("Error",ys),j.showMessageToast({toastTitle:"Error",toastMessage:"Please, try again",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})}finally{y(!1),ce()}})),ae=()=>{switch(f){case Sle:return(0,n.jsx)(kle,{handleNextInformation:ne,theme:e,setModal:t,groupInfo:a,chatProfileInfo:s,setGroupInfo:o,groupMembers:k,pendingMemberPaginationData:C,setPendingMemberPaginationData:E,acceptedMemberPaginationData:x,setAcceptedMemberPaginationData:S,setShowAddMoreWalletModal:A,membersCount:b});case Ile:return(0,n.jsx)(Ele,{groupInfo:a,theme:e});default:return(0,n.jsx)(kle,{handleNextInformation:ne,theme:e,setModal:t,groupInfo:a,chatProfileInfo:s,setGroupInfo:o,groupMembers:k,pendingMemberPaginationData:C,setPendingMemberPaginationData:E,acceptedMemberPaginationData:x,setAcceptedMemberPaginationData:S,setShowAddMoreWalletModal:A,membersCount:b})}},se=()=>{A(!1)},ce=()=>{t(!1)};return s?(0,n.jsxs)(Pce,Object.assign({onClose:ce,closeonClickAway:r,modalBackground:c,modalPositionType:u},{children:[!w&&(0,n.jsxs)(D7,Object.assign({margin:"auto",width:I?"100%":"410px",flexDirection:"column",gap:"16px",padding:I?"0px auto":"0px 10px"},{children:[(0,n.jsx)(jce,{handlePrevious:2===f?ie:void 0,title:(null==s?void 0:s.isGroup)?"Group Info":"Profile Info",handleClose:ce}),(0,n.jsxs)(Tle,{children:[(0,n.jsx)(R7,{src:null!==(l=null==s?void 0:s.icon)&&void 0!==l?l:"",height:"64px",maxHeight:"64px",width:"auto",borderRadius:"16px"}),(0,n.jsx)(D7,Object.assign({flexDirection:"column",alignItems:"flex-start",gap:"5px"},{children:(0,n.jsx)(B7,Object.assign({fontSize:"20px",fontWeight:"500",color:null===(d=e.textColor)||void 0===d?void 0:d.modalHeadingText},{children:null==s?void 0:s.name}))}))]}),ae()]})),(null==s?void 0:s.isGroup)&&w&&(0,n.jsx)(ile,{onSubmit:oe,handlePrevious:se,onClose:ce,memberList:p,handleMemberList:g,groupMembers:[...k.pending,...k.accepted],isLoading:m,groupInfo:a})]})):null},Tle=o.Ay.div.withConfig({displayName:"ChatProfileInfoModal__GroupHeader",componentId:"sc-8cj9z1-0"})(["display:flex;flex-direction:row;width:100%;gap:19px;"]),Mle=o.Ay.div.withConfig({displayName:"ChatProfileInfoModal__GroupDescription",componentId:"sc-8cj9z1-1"})(["display:flex;flex-direction:column;width:100%;align-items:flex-start;gap:5px;"]),Ple=(0,o.Ay)(D7).withConfig({displayName:"ChatProfileInfoModal__PublicEncrypted",componentId:"sc-8cj9z1-2"})(["display:flex;flex-direction:row;width:100%;gap:12px;align-items:center;border:",";border-radius:",";padding:12px 16px;box-sizing:border-box;background:",";"],(e=>(null==e?void 0:e.alert)?"1px solid #E93636":e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.backgroundColor.modalHoverBackground)),jle=o.Ay.div.withConfig({displayName:"ChatProfileInfoModal__AddWalletContainer",componentId:"sc-8cj9z1-3"})(["border:",";border-radius:",";width:100%;padding:20px 16px;box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;cursor:pointer;align-items:center;"],(e=>e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents)),Dle=(0,o.Ay)(D7).withConfig({displayName:"ChatProfileInfoModal__ConditionSection",componentId:"sc-8cj9z1-4"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar-button{height:20px;}&::-webkit-scrollbar{width:4px;}"],(e=>e.theme.scrollbarColor)),Ole=(0,o.Ay)(D7).withConfig({displayName:"ChatProfileInfoModal__ScrollSection",componentId:"sc-8cj9z1-5"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar-button{height:40px;}&::-webkit-scrollbar{width:4px;}"],(e=>e.theme.scrollbarColor));var Ble="data:image/svg+xml,%3csvg width='20' height='22' viewBox='0 0 20 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 2.5C8 2.10444 8.1173 1.71776 8.33706 1.38886C8.55682 1.05996 8.86918 0.803617 9.23463 0.652242C9.60009 0.500867 10.0022 0.46126 10.3902 0.53843C10.7781 0.615601 11.1345 0.806082 11.4142 1.08579C11.6939 1.36549 11.8844 1.72186 11.9616 2.10982C12.0387 2.49778 11.9991 2.89992 11.8478 3.26537C11.6964 3.63082 11.44 3.94318 11.1111 4.16294C10.7822 4.3827 10.3956 4.5 10 4.5C9.46957 4.5 8.96086 4.28929 8.58579 3.91421C8.21072 3.53914 8 3.03043 8 2.5ZM10 9C9.60444 9 9.21776 9.1173 8.88886 9.33706C8.55996 9.55682 8.30362 9.86918 8.15224 10.2346C8.00087 10.6001 7.96126 11.0022 8.03843 11.3902C8.1156 11.7781 8.30608 12.1345 8.58579 12.4142C8.86549 12.6939 9.22186 12.8844 9.60982 12.9616C9.99778 13.0387 10.3999 12.9991 10.7654 12.8478C11.1308 12.6964 11.4432 12.44 11.6629 12.1111C11.8827 11.7822 12 11.3956 12 11C12 10.4696 11.7893 9.96086 11.4142 9.58579C11.0391 9.21072 10.5304 9 10 9ZM10 17.5C9.60444 17.5 9.21776 17.6173 8.88886 17.8371C8.55996 18.0568 8.30362 18.3692 8.15224 18.7346C8.00087 19.1001 7.96126 19.5022 8.03843 19.8902C8.1156 20.2781 8.30608 20.6345 8.58579 20.9142C8.86549 21.1939 9.22186 21.3844 9.60982 21.4616C9.99778 21.5387 10.3999 21.4991 10.7654 21.3478C11.1308 21.1964 11.4432 20.94 11.6629 20.6111C11.8827 20.2822 12 19.8956 12 19.5C12 18.9696 11.7893 18.4609 11.4142 18.0858C11.0391 17.7107 10.5304 17.5 10 17.5Z' fill='%23787E99'/%3e%3c/svg%3e";const Nle=({chatId:e,closeChatProfileInfoModalOnClickAway:t,groupInfoModalBackground:r=k5.OVERLAY,groupInfoModalPositionType:o=_5.GLOBAL,chatProfileRightHelperComponent:a=null,chatProfileLeftHelperComponent:s=null})=>{var c,u,l,d,f,h;const p=(0,i.useContext)(Pae),{user:g}=P5(),[m,y]=(0,i.useState)(!1),{fetchChat:b}=O5(),{getGroupByIDnew:v}=uce(),{fetchProfileInfo:w}=r8(),[A,C]=(0,i.useState)({loading:!1,profile:{name:null,icon:null,chatId:null,recipient:null,abbrRecipient:null,web3Name:null,desc:null,isGroup:null},groupInfo:null}),E=(0,i.useRef)(null),[x,S]=(0,i.useState)(!1);H9(E,(()=>{y(!1)}));const I=e=>{if(e.length<=15)return e;return`${e.slice(0,6)}...${e.slice(-6)}`};return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var t;if(g&&e&&""!==e&&!A.loading){C((e=>Object.assign(Object.assign({},e),{loading:!0})));try{const r=yield O8(e,g),n=yield b({chatId:r});if(n){let i,o={};if(n.meta&&n.meta.group)i=yield v({groupId:r}),i&&(o.name=i.groupName,o.icon=i.groupImage,o.chatId=n.chatId,o.recipient=r,o.abbrRecipient=I(r),o.desc=i.groupDescription,o.isGroup=!0);else{const i=yield O8(n.recipient,g);console.debug("UIWeb::ChatProfile::user.chat.info fetched",n,i);try{const r=yield w({recipient:i});if(!r)throw new Error("UIWeb::ChatProfile::user.profile.info fetch error, possible push user does not exist.");console.debug("UIWeb::ChatProfile::user.profile.info fetched",r),o.name=r.name,o.icon=r.picture,o.chatId=n.chatId,o.recipient=i,o.abbrRecipient=I(i),o.desc=null===(t=r.profile)||void 0===t?void 0:t.desc,o.isGroup=!1,o.web3Name=N8(e)}catch(ys){console.warn("UIWeb::ChatProfile::user.profile.info fetch error, possible push user does not exist.",ys),o.name="",o.icon=null,o.chatId=r,o.recipient=i,o.web3Name=N8(e),o.abbrRecipient=I(i),o.desc="",o.isGroup=!1}o.recipient&&!o.web3Name&&(e=>{pJ(void 0,void 0,void 0,(function*(){console.debug("UIWeb::ChatProfile::setupWeb3Name sending address for resolution",e);const t=yield d8(e,null==g?void 0:g.env);console.debug("UIWeb::ChatProfile::setupWeb3Name got result as ",e,t),C((e=>Object.assign(Object.assign({},e),{profile:Object.assign(Object.assign({},e.profile),{web3Name:t})})))}))})(o.recipient)}C({loading:!1,profile:o,groupInfo:i})}else console.error("UIWeb::ChatProfile::ChatInfo is null")}catch(ys){console.error("UIWeb::ChatProfile::Error",ys)}}}))}),[e,g]),e?(0,n.jsxs)(Rle,Object.assign({theme:p},{children:[(0,n.jsxs)(Lle,{children:[s&&(0,n.jsx)(D7,Object.assign({cursor:"pointer",flex:"none",maxHeight:"1.75rem",overflow:"hidden",justifyContent:"center",alignSelf:"center"},{children:s})),(0,n.jsx)(_ce,{theme:p,member:{icon:A.profile.icon,name:A.profile.name,chatId:A.profile.chatId,recipient:A.profile.recipient,abbrRecipient:A.profile.abbrRecipient,web3Name:A.profile.web3Name,desc:A.profile.desc},copy:!!A.profile.recipient,customStyle:{fontSize:null===(c=null==p?void 0:p.fontWeight)||void 0===c?void 0:c.chatProfileText,textColor:null===(u=null==p?void 0:p.textColor)||void 0===u?void 0:u.chatProfileText},loading:A.loading||""===A.profile.recipient||""===A.profile.icon})]}),(0,n.jsxs)(Lle,Object.assign({zIndex:"unset",flexDirection:"row",gap:"10px",margin:"0 10px 0 auto",alignSelf:"center"},{children:[a&&!A.groupInfo&&(0,n.jsx)(D7,Object.assign({cursor:"pointer",maxHeight:"1.75rem",overflow:"hidden",flex:"none"},{children:a})),!!Object.keys((null===(l=A.groupInfo)||void 0===l?void 0:l.rules)||{}).length&&(0,n.jsx)(M7,Object.assign({content:"Token Gated Group"},{children:(0,n.jsx)(Aae,{size:20,color:null===(d=null==p?void 0:p.iconColor)||void 0===d?void 0:d.subtleColor})})),!!(null===(f=A.groupInfo)||void 0===f?void 0:f.isPublic)&&(0,n.jsx)(M7,Object.assign({content:"Public Group"},{children:(0,n.jsx)(Cae,{size:{height:20},color:null===(h=null==p?void 0:p.iconColor)||void 0===h?void 0:h.subtleColor})})),!A.loading&&(0,n.jsxs)(Fle,Object.assign({onClick:()=>y(!0)},{children:[(0,n.jsx)(R7,{src:Ble,height:"21px",maxHeight:"32px",width:"auto",cursor:"pointer"}),m&&(0,n.jsx)(Ule,Object.assign({theme:p,ref:E},{children:(0,n.jsxs)(zle,Object.assign({cursor:"pointer",onClick:()=>S(!0)},{children:[(0,n.jsx)(R7,{src:"data:image/svg+xml,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M16 28C22.6274 28 28 22.6274 28 16C28 9.37258 22.6274 4 16 4C9.37258 4 4 9.37258 4 16C4 22.6274 9.37258 28 16 28Z' stroke='%23787E99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M16 15V22' stroke='%23787E99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M15.75 12C16.5784 12 17.25 11.3284 17.25 10.5C17.25 9.67157 16.5784 9 15.75 9C14.9216 9 14.25 9.67157 14.25 10.5C14.25 11.3284 14.9216 12 15.75 12Z' fill='%23787E99'/%3e%3c/svg%3e",height:"21px",maxHeight:"21px",width:"auto",cursor:"pointer"}),(0,n.jsx)(Hle,Object.assign({cursor:"pointer"},{children:A.groupInfo?"Group Info":"User Info"}))]}))}))]}))]})),x&&(0,pI.createPortal)((0,n.jsx)(_le,{theme:p,setModal:S,closeModalOnClickAway:t,groupInfo:A.groupInfo,chatProfileInfo:A.profile,setGroupInfo:e=>C((t=>Object.assign(Object.assign({},t),{mutatedGroupInfo:e}))),groupInfoModalBackground:r,groupInfoModalPositionType:o}),document.body)]})):null},Rle=(0,o.Ay)(D7).withConfig({displayName:"ChatProfile__Container",componentId:"sc-1z0n7or-0"})(["width:auto;max-width:100%;background:",";border:",";border-radius:",";display:flex;flex-direction:row;flex:1;align-items:center;padding:6px;box-sizing:border-box;align-self:stretch;"],(e=>e.theme.backgroundColor.chatProfileBackground),(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.chatProfile}),(e=>{var t;return null===(t=e.theme.borderRadius)||void 0===t?void 0:t.chatProfile})),Lle=(0,o.Ay)(D7).withConfig({displayName:"ChatProfile__AddonComponentSection",componentId:"sc-1z0n7or-1"})(["gap:10px;@media ","{gap:5px;}"],c5.mobileL),Fle=o.Ay.div.withConfig({displayName:"ChatProfile__ImageItem",componentId:"sc-1z0n7or-2"})(["position:relative;"]),Ule=o.Ay.div.withConfig({displayName:"ChatProfile__DropDownBar",componentId:"sc-1z0n7or-3"})(["position:absolute;top:30px;left:-130px;cursor:pointer;display:block;min-width:140px;color:rgb(101,119,149);background:",";border:",";z-index:10;border-radius:",";"],(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents)),zle=(0,o.Ay)(B7).withConfig({displayName:"ChatProfile__DropDownItem",componentId:"sc-1z0n7or-5"})(["display:flex;flex-direction:row;align-items:center;gap:8px;padding:10px 16px;border-radius:16px;z-index:3000000;width:100%;"]),Hle=(0,o.Ay)(B7).withConfig({displayName:"ChatProfile__TextItem",componentId:"sc-1z0n7or-6"})(["white-space:nowrap;overflow:hidden;"]),Vle=({chat:e,background:t,color:r,previewMode:o,activeMode:a})=>{var s,c,u,l,d,f;const h=(0,i.useContext)(Pae),p=(e=>{try{return JSON.parse(e)}catch(ys){return console.error("UIWeb::components::ChatViewBubble::FileCard::error while parsing image",ys),{name:"Unable to load file",content:"",size:0,type:""}}})("object"==typeof e.messageObj?null!==(c=null===(s=e.messageObj)||void 0===s?void 0:s.content)&&void 0!==c?c:"":e.messageObj);return(0,n.jsxs)(D7,Object.assign({alignSelf:"start",maxWidth:o?"auto":"512px",background:t,borderRadius:null===(u=h.borderRadius)||void 0===u?void 0:u.chatBubbleContentBorderRadius,justifyContent:"space-between",padding:null===(l=h.padding)||void 0===l?void 0:l.chatBubbleContentPadding,margin:null===(d=h.margin)||void 0===d?void 0:d.chatBubbleContentMargin,gap:"15px",width:o?"fill-available":"-webkit-fit-content"},{children:[(0,n.jsx)(R7,{src:q4(null===(f=p.name)||void 0===f?void 0:f.split(".").slice(-1)[0]),alt:"extension icon",width:"20px",height:"20px"}),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",flex:o?"1":"auto",alignItems:o?"flex-start":"center",gap:"5px"},{children:[(0,n.jsx)(B7,Object.assign({color:r,fontSize:"15px"},{children:s9(p.name,11)})),(0,n.jsx)(B7,Object.assign({color:r,fontSize:"12px"},{children:u9(p.size)}))]})),(0,n.jsx)(Kle,Object.assign({href:p.content,target:"_blank",rel:"noopener noreferrer",download:!0},{children:(0,n.jsx)(Ty,{color:r})}))]}))},Kle=o.Ay.a.withConfig({displayName:"FileCard__FileDownloadIconAnchor",componentId:"sc-10s9z11-0"})(["font-size:20px;"]),Gle=({type:e})=>{var t,r;const o=(0,i.useContext)(Pae);return(0,n.jsx)(B7,Object.assign({width:"auto",alignSelf:"start",textAlign:"left",lineHeight:"1.4em",fontSize:"10px",fontWeight:"500",padding:"4px 8px",borderRadius:"8px",textTransform:"uppercase",letterSpacing:"1.2px",color:null===(t=o.textColor)||void 0===t?void 0:t.chatSentBubbleText,background:null===(r=o.backgroundColor)||void 0===r?void 0:r.chatPreviewTagBackground},{children:e}))},qle=({chat:e,background:t="transparent",color:r="inherit",previewMode:o=!1,activeMode:a=!1})=>{var s,c,u;const l=(0,i.useContext)(Pae),d="object"==typeof e.messageObj?null!==(c=null===(s=e.messageObj)||void 0===s?void 0:s.content)&&void 0!==c?c:"":e.messageObj;return(0,n.jsxs)(D7,Object.assign({maxWidth:o?"auto":"512px",width:"fill-available",justifyContent:"flex-start",background:o?"transparent":t,color:r,gap:"0px"},{children:[(0,n.jsx)(D7,Object.assign({background:"white",borderRadius:"12px",overflow:"hidden",margin:null===(u=l.margin)||void 0===u?void 0:u.chatBubbleContentMargin,maxWidth:o?"64px":"auto",maxHeight:o?"64px":"auto"},{children:(0,n.jsx)(R7,{src:d,alt:"",width:"100%"})})),o&&(0,n.jsx)(D7,Object.assign({margin:"8px 0px 0px 0px"},{children:(0,n.jsx)(Gle,{type:"Image"})}))]}))},Qle=e=>{var t,r;return null!==(r=null===(t=(e=>{try{return JSON.parse(e)}catch(ys){return console.error("UIWeb::components::ChatViewBubble::ImageCard::error while parsing image",ys),null}})(e))||void 0===t?void 0:t.content)&&void 0!==r?r:""},Wle=({chat:e,background:t="transparent",color:r="inherit",previewMode:o=!1,activeMode:a=!1})=>{var s,c,u;const l=(0,i.useContext)(Pae),d="object"==typeof e.messageObj?null!==(c=null===(s=e.messageObj)||void 0===s?void 0:s.content)&&void 0!==c?c:"":e.messageObj;return(0,n.jsxs)(D7,Object.assign({maxWidth:o?"auto":"512px",width:"fill-available",justifyContent:"space-between",background:o?"transparent":t,color:r,gap:"0px"},{children:[o&&(0,n.jsx)(D7,Object.assign({margin:"8px",alignSelf:"center"},{children:(0,n.jsx)(Gle,{type:"Image"})})),(0,n.jsx)(D7,Object.assign({background:"white",borderRadius:"12px",overflow:"hidden",margin:null===(u=l.margin)||void 0===u?void 0:u.chatBubbleContentMargin,maxWidth:o?"64px":"auto",maxHeight:o?"64px":"auto"},{children:(0,n.jsx)(R7,{src:Qle(d),alt:"",width:"100%"})}))]}))};var Jle=VY.charAt,Yle=OW,Zle=pG,$le=JQ,Xle=YQ,ede="String Iterator",tde=Zle.set,rde=Zle.getterFor(ede);$le(String,"String",(function(e){tde(this,{type:ede,string:Yle(e),index:0})}),(function(){var e,t=rde(this),r=t.string,n=t.index;return n>=r.length?Xle(void 0,!0):(e=Jle(r,n),t.index+=e.length,Xle(e,!1))}));var nde=uz,ide=NH,ode=IH("iterator"),ade=!nde((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),!t.size&&!ide||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[ode]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("https://a#\u0431").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})),sde=OH,cde=i3,ude=m0,lde=QH,dde=Wz,fde=function(e,t,r,n){try{return n?t(sde(r)[0],r[1]):t(r)}catch(ys){cde(e,"throw",ys)}},hde=z2,pde=i0,gde=YV,mde=I9,yde=e3,bde=Q2,vde=Array,wde=gz,Ade=2147483647,Cde=/[^\0-\u007E]/,Ede=/[.\u3002\uFF0E\uFF61]/g,xde="Overflow: input needs wider integers to process",Sde=RangeError,Ide=wde(Ede.exec),kde=Math.floor,_de=String.fromCharCode,Tde=wde("".charCodeAt),Mde=wde([].join),Pde=wde([].push),jde=wde("".replace),Dde=wde("".split),Ode=wde("".toLowerCase),Bde=function(e){return e+22+75*(e<26)},Nde=function(e,t,r){var n=0;for(e=r?kde(e/700):e>>1,e+=kde(e/t);e>455;)e=kde(e/35),n+=36;return kde(n+36*e/(e+38))},Rde=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r=55296&&i<=56319&&r=o&&nkde((Ade-a)/d))throw new Sde(xde);for(a+=(l-o)*d,o=l,r=0;rAde)throw new Sde(xde);if(n===o){for(var f=a,h=36;;){var p=h<=s?1:h>=s+26?26:h-s;if(fi;){if(t=+arguments[i++],Ude(t,1114111)!==t)throw new zde(t+" is not a valid code point");r[i]=t<65536?Hde(t):Hde(55296+((t-=65536)>>10),t%1024+56320)}return Kde(r,"")}});var Gde=cq,qde=Vq,Qde=Dz,Wde=Y0,Jde=YH,Yde=QH,Zde=gz,$de=NH,Xde=ade,efe=cq,tfe=DX,rfe=function(e,t,r){for(var n in t)Gde(e,n,t[n],r);return e},nfe=dQ,ife=bQ,ofe=pG,afe=zX,sfe=_H,cfe=Zz,ufe=m0,lfe=PW,dfe=OH,ffe=MH,hfe=OW,pfe=RK,gfe=ZK,mfe=e3,yfe=Q2,bfe=YQ,vfe=b0,wfe=n$,Afe=IH("iterator"),Cfe="URLSearchParams",Efe=Cfe+"Iterator",xfe=ofe.set,Sfe=ofe.getterFor(Cfe),Ife=ofe.getterFor(Efe),kfe=Wde("fetch"),_fe=Wde("Request"),Tfe=Wde("Headers"),Mfe=_fe&&_fe.prototype,Pfe=Tfe&&Tfe.prototype,jfe=Qde.TypeError,Dfe=Qde.encodeURIComponent,Ofe=String.fromCharCode,Bfe=Jde("String","fromCodePoint"),Nfe=parseInt,Rfe=Zde("".charAt),Lfe=Zde([].join),Ffe=Zde([].push),Ufe=Zde("".replace),zfe=Zde([].shift),Hfe=Zde([].splice),Vfe=Zde("".split),Kfe=Zde("".slice),Gfe=Zde(/./.exec),qfe=/\+/g,Qfe=/^[0-9a-f]+$/i,Wfe=function(e,t){var r=Kfe(e,t,t+2);return Gfe(Qfe,r)?Nfe(r,16):NaN},Jfe=function(e){for(var t=0,r=128;r>0&&e&r;r>>=1)t++;return t},Yfe=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},Zfe=function(e){for(var t=(e=Ufe(e,qfe," ")).length,r="",n=0;nt){r+="%",n++;continue}var o=Wfe(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var a=Jfe(o);if(0===a)i=Ofe(o);else{if(1===a||a>4){r+="\ufffd",n++;continue}for(var s=[o],c=1;ct||"%"!==Rfe(e,n));){var u=Wfe(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;Ffe(s,u),n+=2,c++}if(s.length!==a){r+="\ufffd";continue}var l=Yfe(s);null===l?r+="\ufffd":i=Bfe(l)}}r+=i,n++}return r},$fe=/[!'()~]|%20/g,Xfe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ehe=function(e){return Xfe[e]},the=function(e){return Ufe(Dfe(e),$fe,ehe)},rhe=ife((function(e,t){xfe(this,{type:Efe,target:Sfe(e).entries,index:0,kind:t})}),Cfe,(function(){var e=Ife(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,bfe(void 0,!0);var n=t[r];switch(e.kind){case"keys":return bfe(n.key,!1);case"values":return bfe(n.value,!1)}return bfe([n.key,n.value],!1)}),!0),nhe=function(e){this.entries=[],this.url=null,void 0!==e&&(ffe(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Rfe(e,0)?Kfe(e,1):e:hfe(e)))};nhe.prototype={type:Cfe,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,c=this.entries,u=yfe(e);if(u)for(r=(t=mfe(e,u)).next;!(n=Yde(r,t)).done;){if(o=(i=mfe(dfe(n.value))).next,(a=Yde(o,i)).done||(s=Yde(o,i)).done||!Yde(o,i).done)throw new jfe("Expected sequence with length 2");Ffe(c,{key:hfe(a.value),value:hfe(s.value)})}else for(var l in e)cfe(e,l)&&Ffe(c,{key:l,value:hfe(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=Vfe(e,"&"),o=0;o0?arguments[0]:void 0));$de||(this.size=e.entries.length)},ohe=ihe.prototype;if(rfe(ohe,{append:function(e,t){var r=Sfe(this);vfe(arguments.length,2),Ffe(r.entries,{key:hfe(e),value:hfe(t)}),$de||this.length++,r.updateURL()},delete:function(e){for(var t=Sfe(this),r=vfe(arguments.length,1),n=t.entries,i=hfe(e),o=r<2?void 0:arguments[1],a=void 0===o?o:hfe(o),s=0;st.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Sfe(this).entries,n=ufe(e,arguments.length>1?arguments[1]:void 0),i=0;i1?che(arguments[1]):{})}}),sfe(_fe)){var uhe=function(e){return afe(this,Mfe),new _fe(e,arguments.length>1?che(arguments[1]):{})};Mfe.constructor=uhe,uhe.prototype=Mfe,qde({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:uhe})}}var lhe,dhe=Vq,fhe=NH,hhe=ade,phe=Dz,ghe=m0,mhe=gz,yhe=cq,bhe=DX,vhe=zX,whe=Zz,Ahe=CW,Che=function(e){var t=dde(e),r=pde(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=ude(i,n>2?arguments[2]:void 0));var a,s,c,u,l,d,f=bde(t),h=0;if(!f||this===vde&&hde(f))for(a=gde(t),s=r?new this(a):vde(a);a>h;h++)d=o?i(t[h],h):t[h],mde(s,h,d);else for(s=r?new this:[],l=(u=yde(t,f)).next;!(c=lde(l,u)).done;h++)d=o?fde(u,i,[c.value,h],!0):c.value,mde(s,h,d);return s.length=h,s},Ehe=XZ,xhe=VY.codeAt,She=function(e){var t,r,n=[],i=Dde(jde(Ode(e),Ede,"."),".");for(t=0;t?@[\\\]^|]/,upe=/[\0\t\n\r #/:<>?@[\\\]^|]/,lpe=/^[\u0000-\u0020]+/,dpe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,fpe=/[\t\n\r]/g,hpe=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)Zhe(t,e%256),e=Lhe(e/256);return Hhe(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=Vhe(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ppe={},gpe=Ahe({},ppe,{" ":1,'"':1,"<":1,">":1,"`":1}),mpe=Ahe({},gpe,{"#":1,"?":1,"{":1,"}":1}),ype=Ahe({},mpe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),bpe=function(e,t){var r=xhe(e,0);return r>32&&r<127&&!whe(t,e)?e:encodeURIComponent(e)},vpe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},wpe=function(e,t){var r;return 2===e.length&&zhe(tpe,Uhe(e,0))&&(":"===(r=Uhe(e,1))||!t&&"|"===r)},Ape=function(e){var t;return e.length>1&&wpe(Jhe(e,0,2))&&(2===e.length||"/"===(t=Uhe(e,2))||"\\"===t||"?"===t||"#"===t)},Cpe=function(e){return"."===e||"%2e"===Yhe(e)},Epe={},xpe={},Spe={},Ipe={},kpe={},_pe={},Tpe={},Mpe={},Ppe={},jpe={},Dpe={},Ope={},Bpe={},Npe={},Rpe={},Lpe={},Fpe={},Upe={},zpe={},Hpe={},Vpe={},Kpe=function(e,t,r){var n,i,o,a=Ihe(e);if(t){if(i=this.parse(a))throw new Nhe(i);this.searchParams=null}else{if(void 0!==r&&(n=new Kpe(r,!0)),i=this.parse(a,null,n))throw new Nhe(i);(o=Ohe(new Dhe)).bindURL(this),this.searchParams=o}};Kpe.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,c=this,u=t||Epe,l=0,d="",f=!1,h=!1,p=!1;for(e=Ihe(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=qhe(e,lpe,""),e=qhe(e,dpe,"$1")),e=qhe(e,fpe,""),n=Che(e);l<=n.length;){switch(i=n[l],u){case Epe:if(!i||!zhe(tpe,i)){if(t)return $he;u=Spe;continue}d+=Yhe(i),u=xpe;break;case xpe:if(i&&(zhe(rpe,i)||"+"===i||"-"===i||"."===i))d+=Yhe(i);else{if(":"!==i){if(t)return $he;d="",u=Spe,l=0;continue}if(t&&(c.isSpecial()!==whe(vpe,d)||"file"===d&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&vpe[c.scheme]===c.port&&(c.port=null));d="","file"===c.scheme?u=Npe:c.isSpecial()&&r&&r.scheme===c.scheme?u=Ipe:c.isSpecial()?u=Mpe:"/"===n[l+1]?(u=kpe,l++):(c.cannotBeABaseURL=!0,Ghe(c.path,""),u=zpe)}break;case Spe:if(!r||r.cannotBeABaseURL&&"#"!==i)return $he;if(r.cannotBeABaseURL&&"#"===i){c.scheme=r.scheme,c.path=Ehe(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,u=Vpe;break}u="file"===r.scheme?Npe:_pe;continue;case Ipe:if("/"!==i||"/"!==n[l+1]){u=_pe;continue}u=Ppe,l++;break;case kpe:if("/"===i){u=jpe;break}u=Upe;continue;case _pe:if(c.scheme=r.scheme,i===lhe)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Ehe(r.path),c.query=r.query;else if("/"===i||"\\"===i&&c.isSpecial())u=Tpe;else if("?"===i)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Ehe(r.path),c.query="",u=Hpe;else{if("#"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Ehe(r.path),c.path.length--,u=Upe;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Ehe(r.path),c.query=r.query,c.fragment="",u=Vpe}break;case Tpe:if(!c.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,u=Upe;continue}u=jpe}else u=Ppe;break;case Mpe:if(u=Ppe,"/"!==i||"/"!==Uhe(d,l+1))continue;l++;break;case Ppe:if("/"!==i&&"\\"!==i){u=jpe;continue}break;case jpe:if("@"===i){f&&(d="%40"+d),f=!0,o=Che(d);for(var g=0;g65535)return epe;c.port=c.isSpecial()&&b===vpe[c.scheme]?null:b,d=""}if(t)return;u=Fpe;continue}return epe}d+=i;break;case Npe:if(c.scheme="file","/"===i||"\\"===i)u=Rpe;else{if(!r||"file"!==r.scheme){u=Upe;continue}switch(i){case lhe:c.host=r.host,c.path=Ehe(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=Ehe(r.path),c.query="",u=Hpe;break;case"#":c.host=r.host,c.path=Ehe(r.path),c.query=r.query,c.fragment="",u=Vpe;break;default:Ape(Hhe(Ehe(n,l),""))||(c.host=r.host,c.path=Ehe(r.path),c.shortenPath()),u=Upe;continue}}break;case Rpe:if("/"===i||"\\"===i){u=Lpe;break}r&&"file"===r.scheme&&!Ape(Hhe(Ehe(n,l),""))&&(wpe(r.path[0],!0)?Ghe(c.path,r.path[0]):c.host=r.host),u=Upe;continue;case Lpe:if(i===lhe||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&wpe(d))u=Upe;else if(""===d){if(c.host="",t)return;u=Fpe}else{if(a=c.parseHost(d))return a;if("localhost"===c.host&&(c.host=""),t)return;d="",u=Fpe}continue}d+=i;break;case Fpe:if(c.isSpecial()){if(u=Upe,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==lhe&&(u=Upe,"/"!==i))continue}else c.fragment="",u=Vpe;else c.query="",u=Hpe;break;case Upe:if(i===lhe||"/"===i||"\\"===i&&c.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(s=Yhe(s=d))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"===i||"\\"===i&&c.isSpecial()||Ghe(c.path,"")):Cpe(d)?"/"===i||"\\"===i&&c.isSpecial()||Ghe(c.path,""):("file"===c.scheme&&!c.path.length&&wpe(d)&&(c.host&&(c.host=""),d=Uhe(d,0)+":"),Ghe(c.path,d)),d="","file"===c.scheme&&(i===lhe||"?"===i||"#"===i))for(;c.path.length>1&&""===c.path[0];)Qhe(c.path);"?"===i?(c.query="",u=Hpe):"#"===i&&(c.fragment="",u=Vpe)}else d+=bpe(i,mpe);break;case zpe:"?"===i?(c.query="",u=Hpe):"#"===i?(c.fragment="",u=Vpe):i!==lhe&&(c.path[0]+=bpe(i,ppe));break;case Hpe:t||"#"!==i?i!==lhe&&("'"===i&&c.isSpecial()?c.query+="%27":c.query+="#"===i?"%23":bpe(i,ppe)):(c.fragment="",u=Vpe);break;case Vpe:i!==lhe&&(c.fragment+=bpe(i,gpe))}l++}},parseHost:function(e){var t,r,n;if("["===Uhe(e,0)){if("]"!==Uhe(e,e.length-1))return Xhe;if(t=function(e){var t,r,n,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,d=0,f=function(){return Uhe(e,d)};if(":"===f()){if(":"!==Uhe(e,1))return;d+=2,l=++u}for(;f();){if(8===u)return;if(":"!==f()){for(t=r=0;r<4&&zhe(spe,f());)t=16*t+Rhe(f(),16),d++,r++;if("."===f()){if(0===r)return;if(d-=r,u>6)return;for(n=0;f();){if(i=null,n>0){if(!("."===f()&&n<4))return;d++}if(!zhe(npe,f()))return;for(;zhe(npe,f());){if(o=Rhe(f(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}c[u]=256*c[u]+i,2!=++n&&4!==n||u++}if(4!==n)return;break}if(":"===f()){if(d++,!f())return}else if(f())return;c[u++]=t}else{if(null!==l)return;d++,l=++u}}if(null!==l)for(a=u-l,u=7;0!==u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!==u)return;return c}(Jhe(e,1,-1)),!t)return Xhe;this.host=t}else if(this.isSpecial()){if(e=She(e),zhe(cpe,e))return Xhe;if(t=function(e){var t,r,n,i,o,a,s,c=Whe(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n1&&"0"===Uhe(i,0)&&(o=zhe(ipe,i)?16:8,i=Jhe(i,8===o?1:2)),""===i)a=0;else{if(!zhe(10===o?ape:8===o?ope:spe,i))return e;a=Rhe(i,o)}Ghe(r,a)}for(n=0;n=Fhe(256,5-t))return null}else if(a>255)return null;for(s=Khe(r),n=0;n1?arguments[1]:void 0,n=Phe(t,new Kpe(e,!1,r));fhe||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},qpe=Gpe.prototype,Qpe=function(e,t){return{get:function(){return jhe(this)[e]()},set:t&&function(e){return jhe(this)[t](e)},configurable:!0,enumerable:!0}};if(fhe&&(bhe(qpe,"href",Qpe("serialize","setHref")),bhe(qpe,"origin",Qpe("getOrigin")),bhe(qpe,"protocol",Qpe("getProtocol","setProtocol")),bhe(qpe,"username",Qpe("getUsername","setUsername")),bhe(qpe,"password",Qpe("getPassword","setPassword")),bhe(qpe,"host",Qpe("getHost","setHost")),bhe(qpe,"hostname",Qpe("getHostname","setHostname")),bhe(qpe,"port",Qpe("getPort","setPort")),bhe(qpe,"pathname",Qpe("getPathname","setPathname")),bhe(qpe,"search",Qpe("getSearch","setSearch")),bhe(qpe,"searchParams",Qpe("getSearchParams")),bhe(qpe,"hash",Qpe("getHash","setHash"))),yhe(qpe,"toJSON",(function(){return jhe(this).serialize()}),{enumerable:!0}),yhe(qpe,"toString",(function(){return jhe(this).serialize()}),{enumerable:!0}),Bhe){var Wpe=Bhe.createObjectURL,Jpe=Bhe.revokeObjectURL;Wpe&&yhe(Gpe,"createObjectURL",ghe(Wpe,Bhe)),Jpe&&yhe(Gpe,"revokeObjectURL",ghe(Jpe,Bhe))}khe(Gpe,"URL"),dhe({global:!0,constructor:!0,forced:!hhe,sham:!fhe},{URL:Gpe});var Ype=QH;Vq({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Ype(URL.prototype.toString,this)}});const Zpe=({url:e,account:t,messageId:r,frameData:o,proxyServer:a})=>{var s,c,u,l,d,f,h,p,g,m;const{env:y,user:b,pgpPrivateKey:v}=P5(),[{wallet:C}]=w(),[{connectedChain:x},S]=A(),I=Rce(),[k,_]=(0,i.useState)(o),[T,M]=(0,i.useState)(""),[P,D]=(0,i.useState)(!1),O=(0,i.useContext)(Pae),B=e=>{var t;switch(e.action){case"link":return(0,n.jsxs)(ege,{children:[(0,n.jsx)(hI.AnD,{})," ",e.content]});case"post_redirect":return(0,n.jsxs)(ege,{children:[(0,n.jsx)(ky,{})," ",e.content]});case"tx":return(0,n.jsxs)(ege,{children:[(0,n.jsx)(GD.Yfs,{})," ",e.content]});case(null===(t=null==e?void 0:e.action)||void 0===t?void 0:t.includes("subscribe"))&&"subscribe":return(0,n.jsxs)(ege,{children:[(0,n.jsx)(hI.jNV,{})," ",e.content]});default:return(0,n.jsx)(ege,Object.assign({style:{}},{children:e.content}))}},N=e=>pJ(void 0,void 0,void 0,(function*(){const t=Number(e.split(":")[1]);if((null==x?void 0:x.id)!==(0,j.nj)(t)){if(!L4[y].some((e=>e===t)))return I.showMessageToast({toastTitle:"Error",toastMessage:"Chain not supported",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})}),{status:"failure",message:"Chain not supported"};yield S({chainId:(0,j.nj)(t)})}return{status:"success",message:"Chain switch not required"}})),R=i=>pJ(void 0,void 0,void 0,(function*(){var o,s,c,u,l,d,f,h,p,g,m,w,A,x,S,P,j,D,O,B,R;if(!k.isValidFrame)return;if("mint"===i.action)return void I.showMessageToast({toastTitle:"Error",toastMessage:"Mint Action is not supported",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})});let L;const F=yield(e=>pJ(void 0,void 0,void 0,(function*(){const t=Gm.parse('\n syntax = "proto3";\n\n message ChatMessage {\n string url = 1;\n string unixTimestamp = 2;\n int32 buttonIndex = 3;\n string inputText = 4;\n string state = 5;\n string transactionId = 6;\n string address = 7;\n string messageId = 8;\n string chatId = 9;\n string clientProtocol = 10;\n string env = 11;\n }\n ').root.lookupType("ChatMessage"),r=t.create(e),n=t.encode(r).finish();return Buffer.from(n).toString("hex")})))({url:e,unixTimestamp:Date.now().toString(),buttonIndex:Number(i.index),inputText:(null===(o=k.frameDetails)||void 0===o?void 0:o.inputText)?T:"undefined",state:null!==(c=null===(s=k.frameDetails)||void 0===s?void 0:s.state)&&void 0!==c?c:"",transactionId:null!=L?L:"",address:t,messageId:r,chatId:null!==(u=window.location.href.split("/").pop())&&void 0!==u?u:"null",clientProtocol:"push",env:y}),U=yield(({message:e,signingKey:t})=>pJ(void 0,void 0,void 0,(function*(){const r=yield Km.createMessage({text:e}),n=yield Km.readPrivateKey({armoredKey:t});return yield Km.sign({message:r,signingKeys:n,detached:!0})})))({message:F,signingKey:null!==(l=null==b?void 0:b.decryptedPgpPvtKey)&&void 0!==l?l:v});if("post_redirect"===i.action||"link"===i.action)return void window.open(i.target,"_blank");if(null===(d=i.action)||void 0===d?void 0:d.includes("subscribe")){const e=yield(e=>pJ(void 0,void 0,void 0,(function*(){var t,r,i;if(!b)return console.log("User not initialized"),{status:"failure",message:"User not initialized"};const{status:o,message:a}=yield N(e.action);if("failure"===o)return console.log("Chain switch failed"),{status:"failure",message:a};try{const o=(0,$e.b)(e.target),a=null===(t=e.action)||void 0===t?void 0:t.split(":")[1],s=yield b.notification.subscribe(`eip155:${a}:${o}`);return 204===s.status?(I.showMessageToast({toastTitle:"Success",toastMessage:"Subscribed Successfully",toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(hI.U2A,{size:e,color:"green"})}),{status:"success",message:"Subscribed"}):(I.showMessageToast({toastTitle:"Error",toastMessage:null!==(r=JSON.stringify(s.message))&&void 0!==r?r:"Subscription failed",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})}),{status:"failure",message:null!==(i=JSON.stringify(s.message))&&void 0!==i?i:"Subscription failed"})}catch(ys){return I.showMessageToast({toastTitle:"Error",toastMessage:"Something went wrong",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})}),{status:"failure",message:"Something went wrong"}}})))(i);if("failure"===e.status)return}if("tx"===i.action&&i.target){const o=yield fetch(`${a}/${i.target}`,{method:"POST",headers:{"Content-Type":"application/json",Origin:window.location.origin},body:JSON.stringify({clientProtocol:"push",untrustedData:{url:e,unixTimestamp:Date.now().toString(),buttonIndex:Number(i.index),inputText:(null===(f=k.frameDetails)||void 0===f?void 0:f.inputText)?T:"undefined",state:null!==(p=null===(h=k.frameDetails)||void 0===h?void 0:h.state)&&void 0!==p?p:"",transactionId:null!=L?L:"",address:t,messageId:r,chatId:null!==(g=window.location.href.split("/").pop())&&void 0!==g?g:"null",clientProtocol:"push",env:y},trustedData:{messageBytes:F,pgpSignature:U}})});if(!o.ok)return;const s=yield o.json(),{hash:c,status:u}=yield(e=>pJ(void 0,void 0,void 0,(function*(){var r,i,o,a,s,c;if(!e||!e.params||!e.chainId)return{status:"failure",message:"Invalid data"};const{status:u,message:l}=yield N(e.chainId);if("failure"===u)return console.log("Chain switch failed"),{status:"failure",message:l};if(!C)return console.log("wallet not connected"),{status:"failure",message:"Wallet not connected"};let d;try{const r=new E.j(C.provider,"any").getSigner();return d=(yield r.sendTransaction({from:t,to:e.params.to,value:e.params.value,data:e.params.data,chainId:Number(e.chainId.slice(7))})).hash,{hash:d,status:"success",message:"Transaction sent"}}catch(ys){return I.showMessageToast({toastTitle:"Error",toastMessage:null!==(o=null!==(i=null===(r=null==ys?void 0:ys.data)||void 0===r?void 0:r.message)&&void 0!==i?i:null==ys?void 0:ys.message)&&void 0!==o?o:"Failed",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})}),{hash:"Failed",status:"failure",message:null!==(c=null!==(s=null===(a=null==ys?void 0:ys.data)||void 0===a?void 0:a.message)&&void 0!==s?s:null==ys?void 0:ys.message)&&void 0!==c?c:"Failed"}}})))(s);if(L=c,!c||"failure"===u)return}let z=null!==(A=null!==(m=i.post_url)&&void 0!==m?m:null===(w=k.frameDetails)||void 0===w?void 0:w.postURL)&&void 0!==A?A:e;if("post"===i.action&&(z=null!==(j=null!==(S=null!==(x=i.target)&&void 0!==x?x:i.post_url)&&void 0!==S?S:null===(P=k.frameDetails)||void 0===P?void 0:P.postURL)&&void 0!==j?j:e),!z)return;const H=yield fetch(`${a}/${z}`,{method:"POST",headers:{"Content-Type":"application/json",Origin:window.location.origin},body:JSON.stringify({clientProtocol:"push",untrustedData:{url:e,unixTimestamp:Date.now().toString(),buttonIndex:Number(i.index),inputText:(null===(D=k.frameDetails)||void 0===D?void 0:D.inputText)?T:"undefined",state:null!==(B=null===(O=k.frameDetails)||void 0===O?void 0:O.state)&&void 0!==B?B:"",transactionId:null!=L?L:"",address:t,messageId:r,chatId:null!==(R=window.location.href.split("/").pop())&&void 0!==R?R:"null",clientProtocol:"push",env:y},trustedData:{messageBytes:F,pgpSignature:U}})}),V=yield H.text(),K=EX(e,V);M(""),_(K)}));return(0,n.jsx)(D7,Object.assign({flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",minWidth:"inherit",maxWidth:"inherit",background:null===(s=O.backgroundColor)||void 0===s?void 0:s.chatFrameBackground},{children:k.isValidFrame&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D7,Object.assign({padding:"0px 0px 8px 0px"},{children:(0,n.jsxs)(N7,Object.assign({href:e,target:"blank"},{children:[!P&&(0,n.jsx)(R7,{src:null!==(d=null!==(u=null===(c=k.frameDetails)||void 0===c?void 0:c.image)&&void 0!==u?u:null===(l=k.frameDetails)||void 0===l?void 0:l.ogImage)&&void 0!==d?d:"",alt:"Frame Fallback",style:{width:"100%"},onError:()=>{D(!0)}}),P&&(0,n.jsx)(D7,Object.assign({width:"100%",padding:"16px",background:null===(f=O.backgroundColor)||void 0===f?void 0:f.chatFrameBackground,color:null===(h=O.textColor)||void 0===h?void 0:h.chatReceivedBubbleText},{children:"Image cannot be loaded"}))]}))})),(null===(p=k.frameDetails)||void 0===p?void 0:p.inputText)&&(0,n.jsx)(D7,Object.assign({padding:"8px 12px"},{children:(0,n.jsx)(tge,{theme:O,onChange:e=>M(e.target.value),value:T,placeholder:null===(g=k.frameDetails)||void 0===g?void 0:g.inputText})})),k.frameDetails&&k.frameDetails.buttons.length>0&&(0,n.jsx)($pe,Object.assign({padding:"8px 12px",gap:"8px",justifyContent:"space-between"},{children:k.frameDetails.buttons.map((e=>(0,n.jsx)(Xpe,Object.assign({theme:O,onClick:t=>{t.preventDefault(),R(e)}},{children:B(e)}))))})),(0,n.jsx)(D7,Object.assign({padding:"8px 12px",justifyContent:"flex-end"},{children:(0,n.jsx)(rge,Object.assign({href:e,target:"_blank",rel:"noreferrer",color:null===(m=O.textColor)||void 0===m?void 0:m.chatFrameURLText},{children:new URL(e).hostname}))}))]})}))},$pe=(0,o.Ay)(D7).withConfig({displayName:"FrameRenderer__FrameButtonSection",componentId:"sc-8m3j5w-0"})(["flex-wrap:wrap;"]),Xpe=(0,o.Ay)(L7).withConfig({displayName:"FrameRenderer__FrameButton",componentId:"sc-8m3j5w-1"})(["flex:1;flex-wrap:wrap;padding:12px 8px;background:",";color:",";border-radius:",";border:",";min-width:120px;cursor:pointer;"],(e=>e.theme.backgroundColor.buttonHotBackground?e.theme.backgroundColor.buttonHotBackground:"initial"),(e=>e.theme.textColor.buttonText?e.theme.textColor.buttonText:"initial"),(e=>{var t,r;return(null===(t=e.theme)||void 0===t?void 0:t.borderRadius.modalInnerComponents)?null===(r=e.theme)||void 0===r?void 0:r.borderRadius.modalInnerComponents:"0"}),(e=>e.theme.border.modal?e.theme.border.modal:"initial")),ege=(0,o.Ay)(B7).withConfig({displayName:"FrameRenderer__FrameSpan",componentId:"sc-8m3j5w-2"})(["display:flex;flex-direction:row;justify-content:center;gap:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;"]),tge=o.Ay.input.withConfig({displayName:"FrameRenderer__FrameInput",componentId:"sc-8m3j5w-3"})(["width:100%;padding:16px;margin-top:8px;color:",";background:",";border:1px solid transparent;border-radius:",";font-family:",";font-size:16px;font-weight:500;[readonly='readonly']{pointer-events:none;}&:focus,&:focus-visible{outline:none;background-image:",";background-clip:padding-box,border-box;border:1px solid transparent !important;}"],(e=>{var t,r;return null!==(r=null===(t=e.theme.textColor)||void 0===t?void 0:t.chatReceivedBubbleText)&&void 0!==r?r:"inherit"}),(e=>{var t,r;return null!==(r=null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.inputBackground)&&void 0!==r?r:"inherit"}),(e=>{var t,r;return null!==(r=null===(t=e.theme.borderRadius)||void 0===t?void 0:t.chatViewComponent)&&void 0!==r?r:"inherit"}),(e=>e.theme.fontFamily),(e=>{var t,r;return null!==(r=null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.inputHoverBackground)&&void 0!==r?r:"initial"})),rge=(0,o.Ay)(N7).withConfig({displayName:"FrameRenderer__PreviewAnchor",componentId:"sc-8m3j5w-4"})(["text-decoration:none;align-self:flex-end;"]),nge=({url:e,frameData:t})=>{var r,o,a,s,c,u,l,d,f,h,p,g,m,y,b,v,w;const[A,C]=(0,i.useState)(-1),E=(0,i.useContext)(Pae);return(0,n.jsx)(D7,Object.assign({flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",minWidth:"inherit",maxWidth:"inherit",background:null===(r=E.backgroundColor)||void 0===r?void 0:r.chatFrameBackground},{children:t.isValidFrame&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D7,Object.assign({padding:"0px 0px 8px 0px"},{children:(0,n.jsxs)(ige,{children:[1!==A&&(0,n.jsx)(age,{src:null!==(c=null!==(a=null===(o=t.frameDetails)||void 0===o?void 0:o.image)&&void 0!==a?a:null===(s=t.frameDetails)||void 0===s?void 0:s.ogImage)&&void 0!==c?c:"",className:0===A?"loading":"",alt:"React Player Fallback"}),(0,n.jsx)(QD(),{url:e,light:null!==(f=null!==(l=null===(u=t.frameDetails)||void 0===u?void 0:u.image)&&void 0!==l?l:null===(d=t.frameDetails)||void 0===d?void 0:d.ogImage)&&void 0!==f?f:"",playing:!0,style:{position:"absolute",top:0,left:0},width:"100%",height:"100%",onClickPreview:()=>{C(0)},onReady:()=>C(1)})]})})),(0,n.jsxs)(D7,Object.assign({padding:"8px 12px",justifyContent:"flex-end",flexDirection:"column",gap:"4px"},{children:[(null===(h=t.frameDetails)||void 0===h?void 0:h.ogTitle)&&(0,n.jsx)(sge,Object.assign({fontSize:null===(p=E.fontSize)||void 0===p?void 0:p.chatFrameTitleText,fontWeight:null===(g=E.fontWeight)||void 0===g?void 0:g.chatFrameTitleText,color:null===(m=E.textColor)||void 0===m?void 0:m.chatFrameTitleText},{children:t.frameDetails.ogTitle})),(null===(y=t.frameDetails)||void 0===y?void 0:y.ogDescription)&&(0,n.jsx)(cge,Object.assign({fontSize:null===(b=E.fontSize)||void 0===b?void 0:b.chatFrameDescriptionText,color:null===(v=E.textColor)||void 0===v?void 0:v.chatFrameDescriptionText},{children:t.frameDetails.ogDescription})),(0,n.jsx)(uge,Object.assign({href:e,target:"_blank",rel:"noreferrer",color:null===(w=E.textColor)||void 0===w?void 0:w.chatFrameURLText},{children:new URL(e).hostname}))]}))]})}))},ige=(0,o.Ay)(D7).withConfig({displayName:"VideoRenderer__ReactPlayerSection",componentId:"sc-1lku2a6-0"})(["padding-top:56.25%;width:100%;overflow:hidden;"]),oge=(0,o.i7)(["0%{opacity:0.5;}50%{opacity:1;}100%{opacity:0.5;}"]),age=(0,o.Ay)(R7).withConfig({displayName:"VideoRenderer__ReactPlayerImage",componentId:"sc-1lku2a6-1"})(["position:absolute;top:0;left:0;bottom:0;right:0;margin:auto;z-index:-1;&.loading{animation:"," 1.5s ease-in infinite;}"],oge),sge=(0,o.Ay)(B7).withConfig({displayName:"VideoRenderer__FrameTitleSpan",componentId:"sc-1lku2a6-2"})(["text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%;text-align:start;"]),cge=(0,o.Ay)(B7).withConfig({displayName:"VideoRenderer__FrameDescriptionSpan",componentId:"sc-1lku2a6-3"})(["text-align:start;width:100%;"]),uge=(0,o.Ay)(N7).withConfig({displayName:"VideoRenderer__PreviewAnchor",componentId:"sc-1lku2a6-4"})(["align-self:flex-end;text-decoration:none;"]),lge="https://proxy.push.org",dge=({message:e,account:t,messageId:r,previewCallback:o,previewMode:a=!1})=>{const[s,c]=(0,i.useState)({loading:!0,frameData:{},url:null,urlType:"other",error:null});return(0,i.useEffect)((()=>{if(e&&xX(e)&&!a){const t=(e=>{let t="",r=!1;const n=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/)?([\w#!:.?+=&%@!-]+)/,i="string"==typeof e?e.split(" "):[];return null==i||i.forEach((e=>{if(r)return;const i=e.toLowerCase();if(n.test(e)&&(i.includes("twitter")||i.includes("x"))){const n=e.split("?")[0].split("/");n.length>=6?(t=n[n.length-1],r=!0):r=!1}})),{tweetId:t,isTweet:r}})(e);if(t.isTweet)c((e=>Object.assign(Object.assign({},e),{loading:!1,error:null,url:`${t.tweetId}`,urlType:"twitter"})));else{const t=cZ(e);(e=>{pJ(void 0,void 0,void 0,(function*(){try{const r=yield fetch(`${lge}/${e}`,{method:"GET",headers:{"Content-Type":"application/json",Origin:window.location.origin}}),n=yield r.text(),i=EX(e,n);if(!i.isValidFrame)throw new Error("Invalid frame");const o=(t=e,["youtube.com","youtu.be","vimeo.com","facebook.com","soundcloud.com","mux.com","wistia.com","mixcloud.com","dailymotion.com"].some((e=>t.includes(e))));c((t=>({error:null,loading:!1,frameData:i,url:e,urlType:o?"video":"frame"})))}catch(r){c((e=>Object.assign(Object.assign({},e),{loading:!1,error:r,urlType:"other"})))}var t}))})(null!=t?t:"")}}else c((e=>Object.assign(Object.assign({},e),{loading:!1,error:null,urlType:"other"})))}),[e]),(0,i.useEffect)((()=>{!s.loading&&o&&o({loading:s.loading,error:s.error,urlType:s.urlType})}),[s]),s.loading||s.error||!s.url||"frame"!==s.urlType?s.loading||s.error||!s.url||"video"!==s.urlType?s.loading||s.error||!s.url||"twitter"!==s.urlType?null:(0,n.jsx)(fge,{children:(0,n.jsx)(KD,{tweetId:s.url})}):(0,n.jsx)(nge,{url:s.url,frameData:s.frameData}):(0,n.jsx)(Zpe,{url:s.url,account:t,messageId:r,frameData:s.frameData,proxyServer:lge})},fge=o.Ay.div.withConfig({displayName:"PreviewRenderer__TwitterEmbedWrapper",componentId:"sc-5o8t1g-0"})(["width:100%;max-width:550px;margin:0 auto;overflow:hidden;padding:0 10px;> div{max-width:100% !important;}iframe{max-width:100% !important;}@media (max-width:","){max-width:100%;iframe{width:100% !important;}}"],c5.mobileL),hge=({chat:e,position:t,account:r,color:o="inherit",previewMode:a=!1,activeMode:c=!1})=>{var u,l,d,f,h,p,g,m,y,b,v;const w=(0,i.useContext)(Pae),A=s()(e.timestamp).format("hh:mm a"),C="object"==typeof e.messageObj?null!==(l=null===(u=e.messageObj)||void 0===u?void 0:u.content)&&void 0!==l?l:"":e.messageObj,[E,x]=(0,i.useState)({loading:!0,additionalClasses:""}),S=a?[{msg:(e=>e.slice(0,100).split("\n").slice(0,3).join(" "))(C),type:"text"}]:(e=>{const t=[{msg:e.msg,type:e.type}];return t.forEach(((e,r)=>{t.splice(r,1,...(e=>{const t=/(```[\s\S]*?```)/g,r=[];let n=0;return"string"==typeof e.msg?(e.msg.replace(t,((t,i,o)=>(o>n&&r.push({msg:e.msg.substring(n,o),type:e.type}),r.push({msg:i,type:"code"}),n=o+i.length,t))),n{x(Object.assign(Object.assign({},E),{loading:e.loading,additionalClasses:e.error?"":e.urlType}))},previewMode:a})})),(0,n.jsxs)(gge,Object.assign({gap:"5px",border:t?`${null===(h=w.border)||void 0===h?void 0:h.chatSentBubble}`:`${null===(p=w.border)||void 0===p?void 0:p.chatReceivedBubble}`,padding:null===(g=w.padding)||void 0===g?void 0:g.chatBubbleInnerContentPadding,justifyContent:"start",flexDirection:"column",maxWidth:"inherit",minWidth:"72px",position:"relative"},{children:[(0,n.jsx)(D7,Object.assign({flexDirection:"column",maxWidth:"inherit"},{children:S.map(((e,r)=>"text"===e.type?((e,r)=>e.split("\n").map(((e,a)=>{var s,c,u,l;return(0,n.jsx)(B7,Object.assign({alignSelf:"start",textAlign:"left",lineHeight:"1.4em",fontSize:t?`${null===(s=w.fontSize)||void 0===s?void 0:s.chatSentBubbleText}`:`${null===(c=w.fontSize)||void 0===c?void 0:c.chatReceivedBubbleText}`,fontWeight:t?`${null===(u=w.fontWeight)||void 0===u?void 0:u.chatSentBubbleText}`:`${null===(l=w.fontWeight)||void 0===l?void 0:l.chatReceivedBubbleText}`,color:o},{children:e.split(" ").map(((e,t)=>{const o=xX(e)?cZ(e):"";return(0,n.jsxs)(i.Fragment,{children:[o?(0,n.jsx)(wge,Object.assign({href:o,target:"_blank",rel:"noopener noreferrer",className:E.loading?"loading":""},{children:e})):e," "]},`${r}-${a}-${t}`)}))}),`${r}-${a}`)})))(e.msg,r):"code"===e.type?((e,t)=>{const r=e.match(/```(\S*)\s*([\s\S]*?)```/),i=(null==r?void 0:r[1])||"plaintext",o=e.split("\n").slice(1,-1).join("\n").trim();return(0,n.jsx)(yge,{children:(0,n.jsx)(bge,{text:o,language:i,theme:zD},t)})})(e.msg,r):null))})),!a&&(0,n.jsx)(B7,Object.assign({fontSize:t?`${null===(m=w.fontSize)||void 0===m?void 0:m.chatSentBubbleTimestampText}`:`${null===(y=w.fontSize)||void 0===y?void 0:y.chatReceivedBubbleTimestampText}`,fontWeight:t?`${null===(b=w.fontWeight)||void 0===b?void 0:b.chatSentBubbleTimestampText}`:`${null===(v=w.fontWeight)||void 0===v?void 0:v.chatReceivedBubbleTimestampText}`,color:o,right:"0px",width:"auto",alignSelf:"flex-end"},{children:A}))]}))]}))},pge=(0,o.Ay)(D7).withConfig({displayName:"MessageCard__MessagePreviewSection",componentId:"sc-i82mx9-0"})(["overflow:hidden;max-width:100%;"]),gge=(0,o.Ay)(D7).withConfig({displayName:"MessageCard__MessageSection",componentId:"sc-i82mx9-1"})(["box-sizing:border-box;max-width:100%;"]),mge=(0,o.Ay)(D7).withConfig({displayName:"MessageCard__MessageCardSection",componentId:"sc-i82mx9-2"})(["display:grid;align-self:flex-start;flex-direction:column;max-width:100%;&.video,&.frame{max-width:512px;min-width:200px;& > ","{width:100%;box-sizing:border-box;margin-top:0px;border-top-right-radius:0;border-top-left-radius:0;}}&.video{}&.frame{}"],gge),yge=(0,o.Ay)(D7).withConfig({displayName:"MessageCard__CodeSection",componentId:"sc-i82mx9-3"})(["margin:16px 0;border-radius:12px;align-self:stretch;max-width:inherit;div:first-of-type{max-width:inherit;width:100%;padding:20px;font-weight:300;font-family:monospace;overflow:scroll;justify-content:flex-start;}"]),bge=(0,o.Ay)(UD).withConfig({displayName:"MessageCard__StyledCopyBlock",componentId:"sc-i82mx9-4"})([""]),vge=(0,o.i7)(["0%{opacity:0.5;}50%{opacity:1;}100%{opacity:0.5;}"]),wge=(0,o.Ay)(N7).withConfig({displayName:"MessageCard__MessageAnchor",componentId:"sc-i82mx9-5"})(["&:first-child.loading{animation:"," 1.5s ease-in infinite;}"],vge),Age=({chat:e,position:t,previewMode:r=!1,activeMode:o=!1})=>{var a,s,c,u,l,d,f,h,p,g,m,y;const b=(0,i.useContext)(Pae),{user:v}=P5();(e=>!!e&&e.startsWith("U2FsdGVkX1"))("object"==typeof e.messageObj?null!==(c="string"==typeof(null===(a=e.messageObj)||void 0===a?void 0:a.content)?null===(s=e.messageObj)||void 0===s?void 0:s.content:"")&&void 0!==c?c:"":e.messageObj)&&(e.messageType="Text");const w=null!==(u=null==v?void 0:v.account)&&void 0!==u?u:"",A=t&&!o?null===(l=b.textColor)||void 0===l?void 0:l.chatSentBubbleText:null===(d=b.textColor)||void 0===d?void 0:d.chatReceivedBubbleText;return(0,n.jsxs)(n.Fragment,{children:[e&&"Text"===e.messageType&&(0,n.jsx)(hge,{chat:e,position:t,account:w,color:A,previewMode:r,activeMode:o}),"Image"===e.messageType&&(0,n.jsx)(Wle,{chat:e,background:!t||o||r?null===(h=b.backgroundColor)||void 0===h?void 0:h.chatReceivedBubbleBackground:null===(f=b.backgroundColor)||void 0===f?void 0:f.chatSentBubbleBackground,color:A,previewMode:r,activeMode:o}),"File"===e.messageType&&(0,n.jsx)(Vle,{chat:e,background:t&&!o?null===(p=b.backgroundColor)||void 0===p?void 0:p.chatPreviewSentBubbleBackground:null===(g=b.backgroundColor)||void 0===g?void 0:g.chatPreviewRecievedBubbleBackground,color:A,previewMode:r,activeMode:o}),"GIF"===e.messageType&&(0,n.jsx)(qle,{chat:e,background:!t||o||r?null===(y=b.backgroundColor)||void 0===y?void 0:y.chatReceivedBubbleBackground:null===(m=b.backgroundColor)||void 0===m?void 0:m.chatSentBubbleBackground,color:A,previewMode:r,activeMode:o}),"Reaction"===e.messageType&&(0,n.jsx)(hge,{chat:e,position:t,account:w,color:A,previewMode:r,activeMode:o})]})},Cge=({reference:e,chatId:t,position:r})=>{var o,a,s,c,u,l,d,f,h,p,g,m,y,b,v,w,A,C,E,x,S,I,k,_,T,M;const P=(0,i.useContext)(Pae),{user:j}=P5(),[D,O]=(0,i.useState)({payload:null,loaded:!1,err:null});return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var r,n,i,o;if(!D.loaded)if(e&&t)try{const a=yield null==j?void 0:j.chat.history(t,{reference:e,limit:1}),s=a?a[0]:null;"Reply"===(null==s?void 0:s.messageType)&&(s.messageType=null===(n=null===(r=null==s?void 0:s.messageObj)||void 0===r?void 0:r.content)||void 0===n?void 0:n.messageType,s.messageObj=null===(o=null===(i=null==s?void 0:s.messageObj)||void 0===i?void 0:i.content)||void 0===o?void 0:o.messageObj),O(Object.assign(Object.assign({},D),{payload:s,loaded:!0}))}catch(a){O(Object.assign(Object.assign({},D),{payload:null,loaded:!0,err:"Unable to load Preview"}))}else O(Object.assign(Object.assign({},D),{payload:null,loaded:!0,err:"Reply reference not found"}))}))}),[D,e,null==j?void 0:j.chat,t]),(0,n.jsxs)(Ege,Object.assign({maxWidth:"512px",minWidth:"200px",width:"fill-available",background:r?null===(o=P.backgroundColor)||void 0===o?void 0:o.chatPreviewSentBubbleBackground:null===(a=P.backgroundColor)||void 0===a?void 0:a.chatPreviewRecievedBubbleBackground,margin:null===(s=P.margin)||void 0===s?void 0:s.chatBubbleReplyMargin,borderRadius:null===(c=P.borderRadius)||void 0===c?void 0:c.chatBubbleReplyBorderRadius,borderBG:r?null===(u=P.backgroundColor)||void 0===u?void 0:u.chatPreviewSentBorderBubbleBackground:null===(l=P.backgroundColor)||void 0===l?void 0:l.chatPreviewRecievedBorderBubbleBackground},{children:[!D.loaded&&(0,n.jsx)(B7,Object.assign({alignSelf:"start",textAlign:"left",lineHeight:"1.4em",width:"inherit",fontSize:r?`${null===(d=P.fontSize)||void 0===d?void 0:d.chatSentBubbleText}`:`${null===(f=P.fontSize)||void 0===f?void 0:f.chatReceivedBubbleText}`,fontWeight:r?`${null===(h=P.fontWeight)||void 0===h?void 0:h.chatSentBubbleText}`:`${null===(p=P.fontWeight)||void 0===p?void 0:p.chatReceivedBubbleText}`,padding:null===(g=P.padding)||void 0===g?void 0:g.chatBubbleInnerContentPadding,color:r?`${null===(m=P.textColor)||void 0===m?void 0:m.chatSentBubbleText}`:`${null===(y=P.textColor)||void 0===y?void 0:y.chatReceivedBubbleText}`},{children:"Loading Preview..."})),D.loaded&&D.err&&(0,n.jsx)(B7,Object.assign({alignSelf:"start",textAlign:"left",lineHeight:"1.4em",width:"inherit",fontSize:r?`${null===(b=P.fontSize)||void 0===b?void 0:b.chatSentBubbleText}`:`${null===(v=P.fontSize)||void 0===v?void 0:v.chatReceivedBubbleText}`,fontWeight:r?`${null===(w=P.fontWeight)||void 0===w?void 0:w.chatSentBubbleText}`:`${null===(A=P.fontWeight)||void 0===A?void 0:A.chatReceivedBubbleText}`,padding:null===(C=P.padding)||void 0===C?void 0:C.chatBubbleInnerContentPadding,color:r?`${null===(E=P.textColor)||void 0===E?void 0:E.chatSentBubbleText}`:`${null===(x=P.textColor)||void 0===x?void 0:x.chatReceivedBubbleText}`},{children:D.err})),D.loaded&&D.payload&&(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"flex-start",overflow:"hidden",width:"fill-available"},{children:[(0,n.jsx)(B7,Object.assign({padding:"8px 12px 0px",fontSize:"10px",color:r?`${null===(S=P.textColor)||void 0===S?void 0:S.chatSentBubbleText}`:`${null===(I=P.textColor)||void 0===I?void 0:I.chatReceivedBubbleText}`},{children:(0,n.jsx)(B7,Object.assign({fontWeight:"500",padding:"0px"},{children:s9(l8(D.payload.fromDID),6,!0)}))})),(0,n.jsx)(Age,{chat:D.payload,position:null!=r?r:0,previewMode:!0},`card-render-${null!==(_=null===(k=D.payload)||void 0===k?void 0:k.link)&&void 0!==_?_:"null"}`)]}))]}),`card-reply-${null!==(M=null===(T=D.payload)||void 0===T?void 0:T.link)&&void 0!==M?M:"null"}`)},Ege=(0,o.Ay)(D7).withConfig({displayName:"ReplyCard__ReplySection",componentId:"sc-1kbgpk6-0"})(["border-left:4px solid ",";"],(({borderBG:e})=>e||"transparent")),xge=({chat:e,chatId:t,previewMode:r=!1,activeMode:o=!1})=>{var a,s;const c=(0,i.useContext)(Pae),{user:u}=P5();return((e,i)=>{var a,s,u,l,d,f,h,p,g,m,y,b,v;const w=[],A=B8(e);let C="";e&&"Reply"===e.messageType&&(C=null!==(s=null===(a=e.messageObj)||void 0===a?void 0:a.reference)&&void 0!==s?s:null,A.messageType=null===(l=null===(u=null==A?void 0:A.messageObj)||void 0===u?void 0:u.content)||void 0===l?void 0:l.messageType,A.messageObj=null===(f=null===(d=null==A?void 0:A.messageObj)||void 0===d?void 0:d.content)||void 0===f?void 0:f.messageObj),""===C||o||w.push((0,n.jsx)(Cge,{reference:C,chatId:t,position:i},"reply")),A&&w.push((0,n.jsx)(Age,{chat:A,position:i,previewMode:r,activeMode:o},"card"));const E=o?null===(h=c.backgroundColor)||void 0===h?void 0:h.chatActivePreviewBubbleBackground:i?r?null===(p=c.backgroundColor)||void 0===p?void 0:p.chatPreviewSentBubbleBackground:null===(g=c.backgroundColor)||void 0===g?void 0:g.chatSentBubbleBackground:r?null===(m=c.backgroundColor)||void 0===m?void 0:m.chatPreviewRecievedBubbleBackground:null===(y=c.backgroundColor)||void 0===y?void 0:y.chatReceivedBubbleBackground;return(0,n.jsx)(Sge,Object.assign({flexDirection:"column",background:E,borderBG:o?null===(b=c.backgroundColor)||void 0===b?void 0:b.chatActivePreviewBorderBubbleBackground:"transparent",borderRadius:o?null===(v=c.borderRadius)||void 0===v?void 0:v.chatBubbleReplyBorderRadius:"0px",previewMode:r},{children:w}))})(e,l8(e.fromDID).toLowerCase()!==(null===(s=l8(null!==(a=null==u?void 0:u.account)&&void 0!==a?a:""))||void 0===s?void 0:s.toLowerCase())?0:1)},Sge=(0,o.Ay)(D7).withConfig({displayName:"ChatViewBubbleCore__ChatViewBubbleCoreSection",componentId:"sc-1pgl00h-0"})(["border-left:",";"],(({borderBG:e,previewMode:t})=>t?`4px solid ${e||"transparent"}`:"none"));var Ige=Vq,kge=x1,_ge=uz,Tge=YH,Mge=_H,Pge=f0,jge=W3,Dge=cq,Oge=kge&&kge.prototype;if(Ige({target:"Promise",proto:!0,real:!0,forced:!!kge&&_ge((function(){Oge.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Pge(this,Tge("Promise")),r=Mge(e);return this.then(r?function(r){return jge(t,e()).then((function(){return r}))}:e,r?function(r){return jge(t,e()).then((function(){throw r}))}:e)}}),Mge(kge)){var Bge=Tge("Promise").prototype.finally;Oge.finally!==Bge&&Dge(Oge,"finally",Bge,{unsafe:!0})}const Nge=({chat:e,chatId:t,userSelectingReaction:r,setUserSelectingReaction:o,actionId:a,singularActionId:s,setSingularActionId:c,chatSidebarRef:u})=>{var l,d,f,h,p,g,m,y,b,v,w,A,C,E,x,S,I,k,_,T,M,P,j,D,O,B,N;const R=(0,i.useContext)(Pae),L=(0,i.useRef)(null),F=()=>{};(0,i.useEffect)((()=>(window.addEventListener("resize",F),()=>window.removeEventListener("resize",F))),[]);const{user:U}=P5(),[z,H]=(0,i.useState)(null),V=e=>{o(!r),H(e)};(0,i.useEffect)((()=>{var r;z&&(r=z,pJ(void 0,void 0,void 0,(function*(){null==U||U.chat.send(t,{type:"Reaction",content:r,reference:e.cid}).then((e=>{console.debug("UIWeb::components::ChatViewBubble::ReactionPicker::sendReaction success with response:",e)})).catch((e=>{console.error("UIWeb::components::ChatViewBubble::ReactionPicker::sendReaction error:",e)})).finally((()=>{H("")}))})))}),[z]);const K=l8(e.fromDID).toLowerCase()!==(null===(d=l8(null!==(l=null==U?void 0:U.account)&&void 0!==l?l:""))||void 0===d?void 0:d.toLowerCase())?0:1;return(0,n.jsxs)(D7,Object.assign({justifyContent:K?"flex-end":"flex-start"},{children:[(0,n.jsx)(L7,Object.assign({borderRadius:null===(f=R.borderRadius)||void 0===f?void 0:f.reactionsPickerBorderRadius,background:r?null===(h=R.backgroundColor)||void 0===h?void 0:h.chatReceivedBubbleBackground:"transparent",hoverBackground:null===(p=R.backgroundColor)||void 0===p?void 0:p.chatReceivedBubbleBackground,padding:null===(g=R.padding)||void 0===g?void 0:g.reactionsPickerPadding,border:null===(m=R.border)||void 0===m?void 0:m.reactionsBorder,hoverBorder:null===(y=R.border)||void 0===y?void 0:y.reactionsHoverBorder,onClick:e=>{e.stopPropagation(),o(!r),c&&c(a)}},{children:(0,n.jsx)(Sae,{color:null===(b=R.iconColor)||void 0===b?void 0:b.emoji,size:20})})),r&&a===s&&(0,n.jsxs)(D7,Object.assign({ref:L,position:"absolute",top:"100%",bottom:"-70px",gap:null===(v=R.padding)||void 0===v?void 0:v.reactionsPickerPadding,fontSize:"x-large",alignSelf:"center",padding:null===(w=R.padding)||void 0===w?void 0:w.reactionsPickerPadding,border:null===(A=R.border)||void 0===A?void 0:A.reactionsHoverBorder,borderRadius:null===(C=R.borderRadius)||void 0===C?void 0:C.reactionsPickerBorderRadius,background:null===(E=R.backgroundColor)||void 0===E?void 0:E.chatReceivedBubbleBackground},{children:[z&&(0,n.jsx)(D7,Object.assign({padding:null===(x=R.padding)||void 0===x?void 0:x.reactionsPickerPadding},{children:(0,n.jsx)(k7,{color:R.spinnerColor,size:"20"})})),!z&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L7,Object.assign({borderRadius:null===(S=R.borderRadius)||void 0===S?void 0:S.reactionsPickerBorderRadius,padding:null===(I=R.padding)||void 0===I?void 0:I.reactionsPickerPadding,onClick:()=>V("\ud83d\udc4d")},{children:(0,n.jsx)("span",Object.assign({role:"img","aria-label":"thumbs up"},{children:"\ud83d\udc4d"}))})),(0,n.jsx)(L7,Object.assign({borderRadius:null===(k=R.borderRadius)||void 0===k?void 0:k.reactionsPickerBorderRadius,padding:null===(_=R.padding)||void 0===_?void 0:_.reactionsPickerPadding,onClick:()=>V("\u2764\ufe0f")},{children:(0,n.jsx)("span",Object.assign({role:"img","aria-label":"heart"},{children:"\u2764\ufe0f"}))})),(0,n.jsx)(L7,Object.assign({borderRadius:null===(T=R.borderRadius)||void 0===T?void 0:T.reactionsPickerBorderRadius,padding:null===(M=R.padding)||void 0===M?void 0:M.reactionsPickerPadding,onClick:()=>V("\ud83d\udd25")},{children:(0,n.jsx)("span",Object.assign({role:"img","aria-label":"fire"},{children:"\ud83d\udd25"}))})),(0,n.jsx)(L7,Object.assign({borderRadius:null===(P=R.borderRadius)||void 0===P?void 0:P.reactionsPickerBorderRadius,padding:null===(j=R.padding)||void 0===j?void 0:j.reactionsPickerPadding,onClick:()=>V("\ud83d\ude32")},{children:(0,n.jsx)("span",Object.assign({role:"img","aria-label":"surprised"},{children:"\ud83d\ude32"}))})),(0,n.jsx)(L7,Object.assign({borderRadius:null===(D=R.borderRadius)||void 0===D?void 0:D.reactionsPickerBorderRadius,padding:null===(O=R.padding)||void 0===O?void 0:O.reactionsPickerPadding,onClick:()=>V("\ud83d\ude02")},{children:(0,n.jsx)("span",Object.assign({role:"img","aria-label":"laugh"},{children:"\ud83d\ude02"}))})),(0,n.jsx)(L7,Object.assign({borderRadius:null===(B=R.borderRadius)||void 0===B?void 0:B.reactionsPickerBorderRadius,padding:null===(N=R.padding)||void 0===N?void 0:N.reactionsPickerPadding,onClick:()=>V("\ud83d\ude22")},{children:(0,n.jsx)("span",Object.assign({role:"img","aria-label":"sad"},{children:"\ud83d\ude22"}))}))]})]}))]}))},Rge=({chatReactions:e})=>{var t,r,o,a,s;const c=(0,i.useContext)(Pae),u=e.reduce(((e,t)=>{var r;const n=(null===(r=t.messageObj)||void 0===r?void 0:r.content)||"";return e[n]||(e[n]=[]),e[n].includes(t.fromCAIP10)||e[n].push(t.fromCAIP10),e}),{}),l=e.map((e=>e.reference)).join("-");return console.debug("UIWeb::components::ChatViewBubble::Reactions::uniqueReactions",u),(0,n.jsx)(n.Fragment,{children:Object.keys(u).length>2?(0,n.jsxs)(D7,Object.assign({borderRadius:null===(t=c.borderRadius)||void 0===t?void 0:t.reactionsBorderRadius,background:null===(r=c.backgroundColor)||void 0===r?void 0:r.chatReceivedBubbleBackground,padding:null===(o=c.padding)||void 0===o?void 0:o.reactionsPadding,border:null===(a=c.border)||void 0===a?void 0:a.reactionsHoverBorder,gap:"4px"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"medium",whiteSpace:"nowrap"},{children:Object.keys(u).join(" ")})),(0,n.jsx)(B7,Object.assign({fontSize:"medium",fontWeight:"500",padding:"0 4px",color:null===(s=c.textColor)||void 0===s?void 0:s.chatReceivedBubbleText},{children:Object.values(u).reduce(((e,t)=>e+t.length),0)}))]}),`reactions-${l}`):Object.entries(u).map((([e,t])=>{var r,i,o,a,s;return(0,n.jsxs)(D7,Object.assign({borderRadius:null===(r=c.borderRadius)||void 0===r?void 0:r.reactionsBorderRadius,background:null===(i=c.backgroundColor)||void 0===i?void 0:i.chatReceivedBubbleBackground,padding:null===(o=c.padding)||void 0===o?void 0:o.reactionsPadding,border:null===(a=c.border)||void 0===a?void 0:a.reactionsHoverBorder,gap:"4px"},{children:[(0,n.jsx)(B7,Object.assign({fontSize:"medium",whiteSpace:"nowrap"},{children:e})),(0,n.jsx)(B7,Object.assign({fontSize:"medium",fontWeight:"500",padding:"0 4px",color:null===(s=c.textColor)||void 0===s?void 0:s.chatReceivedBubbleText,whiteSpace:"nowrap"},{children:t.length}))]}),`reactions-${e}-${l}`)}))})},Lge=({chat:e})=>{var t,r,o,a,s;const{user:c}=(0,i.useContext)(f5),u=(0,i.useContext)(Pae);return e.fromCAIP10!==(null==c?void 0:c.account)?(0,n.jsxs)(B7,Object.assign({theme:u,alignSelf:"start",textAlign:"start",fontSize:null===(t=u.fontSize)||void 0===t?void 0:t.chatReceivedBubbleAddressText,fontWeight:null===(r=u.fontWeight)||void 0===r?void 0:r.chatReceivedBubbleAddressText,color:null===(o=u.textColor)||void 0===o?void 0:o.chatReceivedBubbleAddressText},{children:[null===(a=e.fromDID)||void 0===a?void 0:a.split(":")[1].slice(0,6),"...",null===(s=e.fromDID)||void 0===s?void 0:s.split(":")[1].slice(-6)]})):null},Fge=({chat:e})=>{var t;const{user:r}=(0,i.useContext)(f5),[o,a]=(0,i.useState)({pfpsrc:null,blockie:null}),s=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(s.current&&o.blockie&&null===o.pfpsrc){const e=Fse(o.blockie||"",{size:8,scale:5});s.current.innerHTML="",s.current.appendChild(e)}}),[o.blockie]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var t,n,i;try{const i=yield y8({user:r,recipient:null===(t=e.fromCAIP10)||void 0===t?void 0:t.split(":")[1]});a(i?{pfpsrc:i,blockie:null}:{pfpsrc:null,blockie:null===(n=e.fromCAIP10)||void 0===n?void 0:n.split(":")[1]})}catch(ys){console.error("UIWeb::components::chat::ChatViewBubble::SenderMessageProfilePicture::getUserPfp error",ys),a({pfpsrc:null,blockie:null===(i=e.fromCAIP10)||void 0===i?void 0:i.split(":")[1]})}}))}),[e.fromCAIP10]),(0,n.jsx)(D7,Object.assign({justifyContent:"start",alignItems:"start"},{children:(null===(t=e.fromCAIP10)||void 0===t?void 0:t.split(":")[1])!==(null==r?void 0:r.account)&&(0,n.jsxs)(D7,Object.assign({alignItems:"flex-start",alignSelf:"flex-start"},{children:[o.pfpsrc&&(0,n.jsx)(R7,{src:o.pfpsrc,alt:"profile picture",width:"40px",height:"40px",borderRadius:"50%"}),!o.pfpsrc&&o.blockie&&(0,n.jsx)(O7,{ref:s,height:"40px",width:"40px",borderRadius:"50%",overflow:"hidden"})]}))}))},Uge=({chatPayload:e,showChatMeta:t,children:r})=>{var o,a;const{user:s}=P5(),c=(0,i.useContext)(Pae);return(0,n.jsxs)(Hge,Object.assign({theme:c,flexDirection:"row",justifyContent:"start",gap:"6px",width:"100%",maxWidth:"100%"},{children:[t&&l8(null==e?void 0:e.fromCAIP10)!==l8(null!==(o=null==s?void 0:s.account)&&void 0!==o?o:"")&&(0,n.jsx)(Fge,{chat:e}),(0,n.jsxs)(D7,Object.assign({justifyContent:"start",flexDirection:"column",maxWidth:"100%",width:"100%"},{children:[t&&l8(null==e?void 0:e.fromCAIP10)!==l8(null!==(a=null==s?void 0:s.account)&&void 0!==a?a:"")&&(0,n.jsx)(Lge,{chat:e}),r]}))]}))},zge=({decryptedMessagePayload:e,chatPayload:t,chatReactions:r,setReplyPayload:o,showChatMeta:a=!1,chatId:s,actionId:c,singularActionId:u,setSingularActionId:l})=>{var d,f,h,p,g,m,y,b,v,w,A,C,E,x;const S=(0,i.useContext)(Pae),I=null!=t?t:e,[k,_]=(0,i.useState)(!1),[T,M]=(0,i.useState)(!1),{user:P}=P5(),j=l8(I.fromDID).toLowerCase()!==(null===(f=l8(null!==(d=null==P?void 0:P.account)&&void 0!==d?d:""))||void 0===f?void 0:f.toLowerCase())?0:1,D=(0,i.useRef)(null);return(0,n.jsx)(Uge,Object.assign({chatPayload:I,showChatMeta:a},{children:(0,n.jsxs)(Vge,Object.assign({flexDirection:j?"row-reverse":"row",alignSelf:j?"start":"end",justifyContent:"start",gap:"10px",maxWidth:"100%",width:"100%",onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1)},{children:[(0,n.jsxs)(Kge,Object.assign({margin:"6px 0px 0px 0px",flexDirection:"column",alignSelf:"flex-start"},{children:[(0,n.jsx)(D7,Object.assign({alignSelf:j?"flex-end":"flex-start",borderRadius:j?`${null===(h=S.borderRadius)||void 0===h?void 0:h.chatBubbleBorderRadius} 0px ${null===(p=S.borderRadius)||void 0===p?void 0:p.chatBubbleBorderRadius} ${null===(g=S.borderRadius)||void 0===g?void 0:g.chatBubbleBorderRadius}`:`0px ${null===(m=S.borderRadius)||void 0===m?void 0:m.chatBubbleBorderRadius} ${null===(y=S.borderRadius)||void 0===y?void 0:y.chatBubbleBorderRadius} ${null===(b=S.borderRadius)||void 0===b?void 0:b.chatBubbleBorderRadius}`,overflow:"hidden"},{children:(0,n.jsx)(xge,{chat:I,chatId:s})})),r&&!!r.length&&(0,n.jsx)(D7,Object.assign({gap:"4px",margin:"-5px 0px 0px 0px",left:"10px",justifyContent:"flex-start"},{children:(0,n.jsx)(Rge,{chatReactions:r})}))]})),(0,n.jsx)(Gge,Object.assign({ref:D,flexDirection:"column",alignItems:j?"flex-end":"flex-start",justifyContent:"flex-end",margin:r&&r.length?"0px 0px 41px 0px":"0px 0px 15px 0px",gap:"2px",width:"auto",flex:"1 0 auto",style:{visibility:k||T&&c===u?"visible":"hidden"}},{children:P&&!P.readmode()&&s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L7,Object.assign({borderRadius:null===(v=S.borderRadius)||void 0===v?void 0:v.reactionsPickerBorderRadius,background:"transparent",hoverBackground:null===(w=S.backgroundColor)||void 0===w?void 0:w.chatReceivedBubbleBackground,padding:null===(A=S.padding)||void 0===A?void 0:A.reactionsPickerPadding,border:null===(C=S.border)||void 0===C?void 0:C.reactionsBorder,hoverBorder:null===(E=S.border)||void 0===E?void 0:E.reactionsHoverBorder,onClick:e=>{e.stopPropagation(),null==o||o(I)}},{children:(0,n.jsx)(Iae,{color:null===(x=S.iconColor)||void 0===x?void 0:x.emoji,size:20})})),(0,n.jsx)(Nge,{chatId:s,chat:I,userSelectingReaction:T&&c===u,setUserSelectingReaction:M,actionId:c,singularActionId:u,setSingularActionId:l,chatSidebarRef:D})]})}))]}))}))},Hge=(0,o.Ay)(D7).withConfig({displayName:"ChatViewBubble__MessageSection",componentId:"sc-15kn8zb-0"})([""]),Vge=(0,o.Ay)(D7).withConfig({displayName:"ChatViewBubble__ChatWrapperSection",componentId:"sc-15kn8zb-1"})([""]),Kge=(0,o.Ay)(D7).withConfig({displayName:"ChatViewBubble__ChatBubbleSection",componentId:"sc-15kn8zb-2"})(["max-width:70%;@media ","{max-width:90%;}@media ","{max-width:90%;}"],c5.tablet,c5.mobileL),Gge=(0,o.Ay)(D7).withConfig({displayName:"ChatViewBubble__ChatBubbleSidebarSection",componentId:"sc-15kn8zb-3"})(["width:auto;position:relative;"]),qge=()=>{};class Qge extends i.Component{constructor(){super(...arguments),this._progress=0,this._particles=[],this._canvas=null,this._wrapper=null,this._ctx=null,this._raf=null,this.state={status:this.props.hidden?"hidden":"normal",progress:0},this._rect={width:0,height:0},this._canvasRef=e=>{this._canvas=e},this._wrapperRef=e=>{this._wrapper=e},this._startAnimation=()=>{if(!this._canvas||!this._wrapper)return;const{duration:e,easing:t,canvasPadding:r=150,onBegin:n}=this.props,{status:i}=this.state;this._progress="hiding"===i?0:1,this._particles=[],this._rect=this._wrapper.getBoundingClientRect(),this._canvas.width=this._rect.width+2*r,this._canvas.height=this._rect.height+2*r,this._ctx=this._canvas.getContext("2d"),mI()({targets:{value:"hiding"===i?0:100},value:"hiding"===i?100:0,duration:e,easing:t,begin:n,update:t=>{const r=t.animatables[0].target.value;setTimeout((()=>{this.setState({progress:r})})),e&&this._addParticles(r/100)}})},this._loop=()=>{this._updateParticles(),this._renderParticles(),this._particles.length?this._raf=wI()(this._loop):(this._raf=null,this._cycleStatus(),this.props.onComplete&&this.props.onComplete())}}componentWillReceiveProps(e){if(e.hidden!==this.props.hidden){const{status:t}=this.state;"normal"===t&&e.hidden?this.setState({status:"hiding"},this._startAnimation):"hidden"!==t||e.hidden?("hiding"!==t||e.hidden)&&"showing"===t&&e.hidden:this.setState({status:"showing"},this._startAnimation)}}render(){const{children:e,className:t,direction:r}=this.props,{status:i,progress:o}=this.state,a={},s={},c={};if("hiding"===i||"showing"===i){const e=this._isHorizontal()?"translateX":"translateY",t=this._isHorizontal()?this._rect.width:this._rect.height,n="left"===r||"top"===r?o:-o,i=Math.ceil(t*n/100);a.transform=`${e}(${i}px)`,s.transform=`${e}(${-i}px)`}else"hidden"===i?(a.visibility="hidden",c.visibility="hidden"):"normal"===i&&(c.visibility="hidden");return(0,n.jsxs)(Jge,Object.assign({className:bI()(t)},{children:[(0,n.jsx)(Yge,Object.assign({className:"",style:a,ref:this._wrapperRef},{children:"hidden"!==i&&(0,n.jsx)(Zge,Object.assign({className:"",style:s},{children:e}))})),(0,n.jsx)($ge,{ref:this._canvasRef,style:c})]}))}_cycleStatus(){const{status:e}=this.state;"normal"===e?this.setState({status:"hiding"}):"hidden"===e?this.setState({status:"showing"}):"hiding"===e?this.setState({status:"hidden"}):"showing"===e&&this.setState({status:"normal"})}_addParticles(e){const{canvasPadding:t,direction:r,particlesAmountCoefficient:n=1}=this.props,{status:i}=this.state,{width:o,height:a}=this._rect,s="hiding"===i?e-this._progress:this._progress-e,c=this._isHorizontal(),u=(c?o:a)*e+s*("hiding"===i?100:220);this._progress=e;let l=null!=t?t:150,d=null!=t?t:150;c?l+="left"===r?u:o-u:d+="top"===r?u:a-u;let f=Math.floor(n*(100*s+1));if(f>0)for(;f--;)this._addParticle({x:l+(c?0:o*Math.random()),y:d+(c?a*Math.random():0)});this._raf||(this._raf=wI()(this._loop))}_addParticle(e){const{duration:t,size:r,speed:n}=this.props,{status:i}=this.state,o=60*(t||1e3)/1e3,a="function"==typeof n?n():n||1,s="function"==typeof r?r():r;this._particles.push({startX:e.x,startY:e.y,x:"hiding"===i?0:a*-o,y:0,angle:Wge(360),counter:"hiding"===i?0:o,increase:2*Math.PI/100,life:0,death:"hiding"===i?o-20+40*Math.random():o,speed:a,size:s})}_updateParticles(){const{oscillationCoefficient:e=1}=this.props,{status:t}=this.state;for(let r=0;rn.death?this._particles.splice(r,1):(n.x+=n.speed,n.y=e*Math.sin(n.counter*n.increase),n.life++,n.counter+="hiding"===t?1:-1)}}_renderParticles(){const{color:e,type:t,style:r}=this.props,{status:n}=this.state;if(this._ctx&&this._canvas){this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._ctx.fillStyle=this._ctx.strokeStyle=e||"#000";for(let e=0;eMath.floor(3*Math.random()+1),speed:()=>Wge(4),color:"#000",particlesAmountCoefficient:3,oscillationCoefficient:20,onBegin:qge,onComplete:qge};const Jge=o.Ay.div.withConfig({displayName:"ParticleEffectButton__Particles",componentId:"sc-1jg18hj-0"})(["position:relative;display:inline-block;"]),Yge=o.Ay.div.withConfig({displayName:"ParticleEffectButton__Wrapper",componentId:"sc-1jg18hj-1"})(["position:relative;display:inline-block;overflow:hidden;"]),Zge=o.Ay.div.withConfig({displayName:"ParticleEffectButton__Content",componentId:"sc-1jg18hj-2"})(["&:focus,& > *:focus{outline:none;}"]),$ge=o.Ay.canvas.withConfig({displayName:"ParticleEffectButton__Canvas",componentId:"sc-1jg18hj-3"})(["position:absolute;top:50%;left:50%;transform:translate3d(-50%,-50%,0);pointer-events:none;"]),Xge={GROUP:"You were invited to this group. Please accept to continue messaging in this group.",W2W:"This wallet wants to chat with you! Please accept to continue or reject to decline."},eme=({chatInfo:e=null})=>{var t,r,o,a,s,c,u,l,d,f;const{user:h,toast:p}=P5(),g=(0,i.useContext)(Pae),{approveChatRequest:m,loading:y}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{user:o}=P5(),a=(0,i.useCallback)((r=>pJ(void 0,void 0,void 0,(function*(){const{chatId:i}=r||{};n(!0);try{const e=yield null==o?void 0:o.chat.accept(i);return n(!1),e}catch(e){return n(!1),t(e.message),void console.log(e)}}))),[o]);return{approveChatRequest:a,error:e,loading:r}})(),{rejectChatRequest:b,loading:v}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{user:o}=P5(),a=(0,i.useCallback)((r=>pJ(void 0,void 0,void 0,(function*(){const{chatId:i}=r||{};n(!0);try{const e=yield null==o?void 0:o.chat.reject(i);return n(!1),e}catch(e){return n(!1),t(e.message),void console.log(e)}}))),[o]);return{rejectChatRequest:a,error:e,loading:r}})(),[w,A]=(0,i.useState)(!1),[C,E]=(0,i.useState)(!1);return(0,n.jsx)(D7,Object.assign({justifyContent:"start"},{children:(0,n.jsx)(Qge,Object.assign({color:null===(t=g.iconColor)||void 0===t?void 0:t.approveRequest,hidden:w},{children:(0,n.jsx)(Qge,Object.assign({color:null===(r=g.iconColor)||void 0===r?void 0:r.rejectRequest,hidden:C,type:"triangle",direction:"right"},{children:(0,n.jsxs)(D7,Object.assign({color:null===(o=g.textColor)||void 0===o?void 0:o.chatReceivedBubbleText,gap:"10px",background:null===(a=g.backgroundColor)||void 0===a?void 0:a.chatReceivedBubbleBackground,padding:"16px 24px",margin:"7px 0",borderRadius:" 0px 12px 12px 12px",alignSelf:"start",justifyContent:"start",maxWidth:"600px",minWidth:"150px",position:"relative",flexDirection:"row"},{children:[(0,n.jsx)(B7,Object.assign({alignSelf:"center",textAlign:"left",fontSize:null===(s=g.fontSize)||void 0===s?void 0:s.chatReceivedBubbleText,fontWeight:null===(c=g.fontWeight)||void 0===c?void 0:c.chatReceivedBubbleText,color:null===(u=g.textColor)||void 0===u?void 0:u.chatReceivedBubbleText,lineHeight:"24px",maxWidth:"250px"},{children:(null===(l=null==e?void 0:e.meta)||void 0===l?void 0:l.group)?Xge.GROUP:Xge.W2W})),(0,n.jsx)(tme,Object.assign({theme:g,onClick:()=>y||v?null:pJ(void 0,void 0,void 0,(function*(){try{if(!h||h.readmode())return;(null==e?void 0:e.recipient)?(yield b({chatId:null==e?void 0:e.recipient}),E(!0),p.showMessageToast({toastTitle:"Invitation Declined",toastMessage:"This conversation has been removed from your request list.",toastType:"WARNING",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"grey"})})):p.showMessageToast({toastTitle:"Error",toastMessage:"Invalid Chat ID",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"red"})})}catch(t){console.error("UIWeb::ActionRequestBubble::handleRejectChatRequest::error",t)}})),className:C||w?"disabled":v?"active secondary":y?"disabled secondary":""},{children:v?(0,n.jsx)(k7,{color:"#fff",size:"24"}):(0,n.jsx)(xae,{size:40,color:null===(d=g.iconColor)||void 0===d?void 0:d.rejectRequest})})),(0,n.jsx)(tme,Object.assign({theme:g,onClick:()=>y||v?null:pJ(void 0,void 0,void 0,(function*(){try{if(!h||h.readmode())return;(null==e?void 0:e.recipient)?(yield m({chatId:null==e?void 0:e.recipient}),A(!0)):p.showMessageToast({toastTitle:"Error",toastMessage:"Invalid Chat",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"red"})})}catch(t){console.error("UIWeb::ActionRequestBubble::handleApproveChatRequest::error",t)}})),className:C||w?"disabled":y?"active primary":v?"disabled primary":""},{children:y?(0,n.jsx)(k7,{color:"#fff",size:"24"}):(0,n.jsx)(Eae,{size:40,color:null===(f=g.iconColor)||void 0===f?void 0:f.approveRequest})}))]}))}))}))}))},tme=o.Ay.button.withConfig({displayName:"ActionRequestBubble__Button",componentId:"sc-gg4j4g-0"})(["border:none;cursor:pointer;border-radius:100%;background:transparent;padding:0px;border:none;height:40px;width:40px;display:flex;justify-content:center;align-items:center;&.disabled{cursor:not-allowed;opacity:0.5;}&.primary.active{background:",";}&.secondary.active{background:",";}"],(e=>{var t;return null===(t=e.theme.iconColor)||void 0===t?void 0:t.approveRequest}),(e=>{var t;return null===(t=e.theme.iconColor)||void 0===t?void 0:t.rejectRequest})),rme="ENCRYPTED",nme="NO_ENCRYPTED",ime="NO_ENCRYPTED_GROUP",ome="PREVIEW",ame="LOADING",sme=({id:e,className:t})=>{var r,o,a;const s=(0,i.useContext)(Pae),c=V9(771),u={ENCRYPTED:{IconComponent:(0,n.jsx)(zae,{size:"15"}),text:"Messages are end-to-end encrypted. Only users in this chat can view or listen to them."},NO_ENCRYPTED:{IconComponent:(0,n.jsx)(Hae,{size:"15"}),text:"Messages are not encrypted"},NO_ENCRYPTED_GROUP:{IconComponent:(0,n.jsx)(Hae,{size:"15"}),text:"Messages in this group are not encrypted"},PREVIEW:{IconComponent:(0,n.jsx)(Cae,{size:15,color:null===(r=null==s?void 0:s.iconColor)||void 0===r?void 0:r.subtleColor}),text:"Chat in preview mode. Only public groups messages are visible."},LOADING:{IconComponent:null,text:"Please wait while Push Chat loads the status of this chat..."}};return(0,n.jsx)(D7,Object.assign({padding:"10px",alignSelf:"center",borderRadius:"12px",background:null===(o=s.backgroundColor)||void 0===o?void 0:o.encryptionMessageBackground,margin:"10px 10px 0px",width:c?"80%":"fit-content"},{children:(0,n.jsxs)(cme,Object.assign({textAlign:"center"},{children:[u[e].IconComponent?u[e].IconComponent:null,(0,n.jsx)(B7,Object.assign({fontSize:"13px",margin:"0 0 0 5px",color:null===(a=s.textColor)||void 0===a?void 0:a.encryptionMessageText,fontWeight:"400",textAlign:"left",className:t,animation:s.skeletonBG},{children:u[e].text}))]}))}))},cme=(0,o.Ay)(O7).withConfig({displayName:"MessageEncryption__EncryptionMessageDiv",componentId:"sc-dk1cef-0"})(["display:flex;text-align:center;svg{vertical-align:middle;}"]),ume="Invalid chatId",lme=e=>{var t,r,o,a,c,u,l;const[d,f]=(0,i.useState)({loading:!0,chatInfo:null,isHidden:!1,invalidChat:!1}),{chatId:h,limit:p=V4,chatFilterList:g=[],setReplyPayload:m}=e||{},{user:y,toast:b}=P5(),[v,w]=(0,i.useState)([]),[A,C]=(0,i.useState)({}),{historyMessages:E,historyLoading:x}=j5(),S=(0,i.useRef)(null),[I,k]=(0,i.useState)(!1);O5();const[_,T]=(0,i.useState)(null),{chatStream:M,chatAcceptStream:P,chatRequestStream:j,participantJoinStream:D,participantLeaveStream:O,participantRemoveStream:B}=P5(),N=(0,i.useContext)(Pae),R=new Set;(0,i.useEffect)((()=>(pJ(void 0,void 0,void 0,(function*(){var e,t,r,n;if(y&&h){const i=yield y.chat.info(h);console.debug("UIWeb::components::ChatViewList::useEffect::fetchChat",i);let o=!1;o=y&&y.readmode()?null===(r=!(null===(t=null===(e=null==i?void 0:i.meta)||void 0===e?void 0:e.groupInfo)||void 0===t?void 0:t.public))||void 0===r||r:y&&(null==i?void 0:i.meta)?!(null===(n=null==i?void 0:i.meta)||void 0===n?void 0:n.visibility):!!(null==i?void 0:i.meta),f({loading:!1,chatInfo:Object.keys(i||{}).length?i:null,isHidden:o,invalidChat:void 0===i})}})),()=>{f({loading:!0,chatInfo:null,isHidden:!1,invalidChat:!1})})),[h,y]),(0,i.useEffect)((()=>{d.loading||function(){pJ(this,void 0,void 0,(function*(){yield U()}))}()}),[d.loading]),(0,i.useEffect)((()=>{if(S.current){const e=S.current,t=parseInt(e.getAttribute("data-old-scroll-height")||"0",10),r=e.scrollHeight-t;e.scrollTop+=r}pJ(void 0,void 0,void 0,(function*(){var e;!d.loading&&S&&(null==S?void 0:S.current)&&(null===(e=null==S?void 0:S.current)||void 0===e?void 0:e.parentElement)&&!x&&!I&&(console.debug("UIWeb::ChatViewList::useEffect[messages, reactions]::Checking if we need to load more chats::",v,A,S.current.clientHeight,25,S.current.parentElement.clientHeight,S.current.clientHeight+25{const e=new ResizeObserver((e=>{var t,r;for(const n of e){const{height:e}=n.contentRect;if(S.current&&0!==e){const n="true"===S.current.getAttribute("data-scroll-locked");0!==e&&n&&(S.current.setAttribute("data-programmable-scroll","true"),null===(t=S.current)||void 0===t||t.scrollTo(0,null===(r=S.current)||void 0===r?void 0:r.scrollHeight),setTimeout((()=>{S.current&&S.current.setAttribute("data-programmable-scroll","false")}),1e3))}}}));return L.current&&e.observe(L.current),()=>e.disconnect()}),[L.current]),(0,i.useEffect)((()=>{if(Object.keys(P||{}).length>0&&P.constructor===Object||Object.keys(D||{}).length>0&&D.constructor===Object){const e=Object.assign({},d.chatInfo);e&&(e.list="CHATS",(null==e?void 0:e.meta)&&(e.meta.visibility=!0));const t=setTimeout((()=>{f(Object.assign(Object.assign({},d),{chatInfo:e,isHidden:!1}))}),1e3);return()=>clearTimeout(t)}return()=>{}}),[P,D]),(0,i.useEffect)((()=>{if(Object.keys(B||{}).length>0&&B.constructor===Object||Object.keys(O||{}).length>0&&O.constructor===Object){const e=Object.assign({},d.chatInfo);e&&(e.list="UNINITIALIZED",(null==e?void 0:e.meta)&&(e.meta.visibility=!1)),f(Object.assign(Object.assign({},d),{chatInfo:e,isHidden:!0}))}}),[B,O]),(0,i.useEffect)((()=>{Object.keys(M||{}).length>0&&M.constructor===Object&&F(M)}),[M]),(0,i.useEffect)((()=>{Object.keys(j||{}).length>0&&j.constructor===Object&&F(j)}),[j]);const F=e=>{var t;if(y&&d.chatInfo&&((null==e?void 0:e.chatId)===(null===(t=d.chatInfo)||void 0===t?void 0:t.chatId)||((e,t)=>"self"===(null==e?void 0:e.origin)?u8(t)===u8(null==e?void 0:e.to[0]):"other"===(null==e?void 0:e.origin)&&u8(t)===u8(null==e?void 0:e.from))(e,h))){const t=(e=>{var t,r,n,i,o,a,s,c,u;return{fromCAIP10:null==e?void 0:e.from,toCAIP10:null==e?void 0:e.to[0],fromDID:null==e?void 0:e.from,toDID:null==e?void 0:e.to[0],messageType:null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.type,messageObj:{content:null===(r=null==e?void 0:e.message)||void 0===r?void 0:r.content,reference:null===(n=null==e?void 0:e.message)||void 0===n?void 0:n.reference},sigType:(null===(i=null==e?void 0:e.raw)||void 0===i?void 0:i.sigType)||"",link:`previous:v2${null==e?void 0:e.reference}`,timestamp:parseInt(null==e?void 0:e.timestamp),encType:(null===(o=null==e?void 0:e.raw)||void 0===o?void 0:o.encType)||"",encryptedSecret:(null===(a=null==e?void 0:e.raw)||void 0===a?void 0:a.encryptedSecret)||"",cid:null==e?void 0:e.reference,messageContent:null===(s=null==e?void 0:e.message)||void 0===s?void 0:s.content,signature:(null===(c=null==e?void 0:e.raw)||void 0===c?void 0:c.signature)||"",verificationProof:(null===(u=null==e?void 0:e.raw)||void 0===u?void 0:u.verificationProof)||""}})(e);if(v&&v.length){const e=S8(v,[t],!1);z(e)}else z([t])}},U=()=>pJ(void 0,void 0,void 0,(function*(){var e,t,r,n;if(y&&!I&&!x){const i=v&&(null==v?void 0:v.length)?v[0].link:null,o=yield E({limit:p,chatId:h,reference:i});if(o&&(null==o?void 0:o.length)){const e=null==o?void 0:o.reverse();if(v&&(null==v?void 0:v.length)){const t=S8(v,e,!0);z(t)}else z(e)}(y&&y.readmode()&&!1===(null===(t=null===(e=d.chatInfo)||void 0===e?void 0:e.meta)||void 0===t?void 0:t.visibility)||!1===(null===(n=null===(r=d.chatInfo)||void 0===r?void 0:r.meta)||void 0===n?void 0:n.group))&&k(!0),(!o||(null==o?void 0:o.length){const t=e.filter((e=>!g.includes(e.cid))),r=(e=>{var t,r;const n=A;for(const i of e)if("Reaction"===i.messageType){const e=i,o=null!==(r=null===(t=e.messageObj)||void 0===t?void 0:t.reference)&&void 0!==r?r:"";n[o]||(n[o]=[]),n[o].push(e)}return n})(t);console.debug(`UIWeb::ChatViewList::filterChatMessages::uniqueMessageList::${(new Date).toISOString()}`,t),console.debug(`UIWeb::ChatViewList::filterChatMessages::reactionMessages::${(new Date).toISOString()}`,r),t&&t.length&&w([...t]),r&&r.length&&C(JSON.parse(JSON.stringify(r)))},H=({chat:e,dateNum:t,uid:r})=>{var i,o,a;const s=F8(e.timestamp);return R.add(t),(0,n.jsx)(B7,Object.assign({margin:"15px 0",fontSize:null===(i=N.fontSize)||void 0===i?void 0:i.timestamp,fontWeight:null===(o=N.fontWeight)||void 0===o?void 0:o.timestamp,color:null===(a=N.textColor)||void 0===a?void 0:a.timestamp,textAlign:"center",zIndex:r},{children:s}),r)};return(0,n.jsxs)(dme,Object.assign({"data-scroll-locked":"true","data-programmable-scroll":"false",blur:!1,overflow:"auto",flexDirection:"column",ref:S,width:"100%",height:"auto",justifyContent:"start",padding:"0 2px",theme:N,onScroll:e=>{e.stopPropagation(),I||pJ(void 0,void 0,void 0,(function*(){if(S.current){const{scrollTop:e,scrollHeight:t,clientHeight:r}=S.current;let n="true"===S.current.getAttribute("data-scroll-locked");const i="true"===S.current.getAttribute("data-programmable-scroll");if(S.current.getAttribute("data-programmable-scroll-top"),!1===i&&(n=!1),e+r>=t-10&&(n=!0),S.current.setAttribute("data-scroll-locked",n.toString()),0===e){const e=S.current.scrollHeight;S.current.setAttribute("data-old-scroll-height",e.toString()),yield U()}}}))},onClick:()=>{T(null)}},{children:[(0,n.jsxs)(D7,Object.assign({margin:"5px 0 10px 0",minWidth:"150px",minHeight:"20px"},{children:[d.loading&&(0,n.jsx)(sme,{id:ame,className:"skeleton"}),!d.loading&&((null===(r=null===(t=d.chatInfo)||void 0===t?void 0:t.meta)||void 0===r?void 0:r.encrypted)?(0,n.jsx)(sme,{id:rme}):y&&y.readmode()?(0,n.jsx)(sme,{id:ome}):(0,n.jsx)(sme,{id:(null===(a=null===(o=d.chatInfo)||void 0===o?void 0:o.meta)||void 0===a?void 0:a.group)?ime:nme}))]})),d.loading?(0,n.jsx)(k7,{color:N.spinnerColor}):"",!d.loading&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(D7,Object.assign({margin:"10px 0 0 0",flexDirection:"column"},{children:[d.invalidChat&&(0,n.jsx)(B7,Object.assign({fontSize:"13px",color:null===(c=N.textColor)||void 0===c?void 0:c.encryptionMessageText,fontWeight:"400"},{children:ume})),x?(0,n.jsx)(k7,{color:N.spinnerColor}):""]})),(0,n.jsxs)(fme,Object.assign({flexDirection:"column",justifyContent:"start",width:"100%",ref:L,blur:d.isHidden&&"REQUESTS"!==(null===(u=null==d?void 0:d.chatInfo)||void 0===u?void 0:u.list)},{children:[v&&(null==v?void 0:v.map(((e,t)=>{var r,i,o,a,c,u,l,f;if("Reaction"===(null==e?void 0:e.messageType))return null;const p=s()(e.timestamp).format("L"),g=(null===(r=l8(e.fromDID))||void 0===r?void 0:r.toLowerCase())!==(null===(o=l8(null!==(i=null==y?void 0:y.account)&&void 0!==i?i:""))||void 0===o?void 0:o.toLowerCase())?0:1,b=""+(999999999-t);return(0,n.jsxs)(n.Fragment,{children:[R.has(p)?null:H({chat:e,dateNum:p,uid:b}),(0,n.jsx)(D7,Object.assign({justifyContent:g?"end":"start",zIndex:b,margin:g?null===(a=N.margin)||void 0===a?void 0:a.chatBubbleSenderMargin:null===(c=N.margin)||void 0===c?void 0:c.chatBubbleReceiverMargin},{children:(0,n.jsx)(zge,{decryptedMessagePayload:e,chatPayload:e,chatReactions:A[e.cid]||[],setReplyPayload:m,showChatMeta:null!==(f=null===(l=null===(u=d.chatInfo)||void 0===u?void 0:u.meta)||void 0===l?void 0:l.group)&&void 0!==f&&f,chatId:h,actionId:e.cid,singularActionId:_,setSingularActionId:T},`chatbubble-${null==y?void 0:y.uid}-${b}-${t}`)}),`section-${null==y?void 0:y.uid}-${b}-${t}`)]})}))),d.chatInfo&&"REQUESTS"===(null===(l=d.chatInfo)||void 0===l?void 0:l.list)&&(0,n.jsx)(eme,{chatInfo:d.chatInfo})]}),`section-chatview-${null==y?void 0:y.uid}`)]})]}),null==y?void 0:y.uid)},dme=(0,o.Ay)(D7).withConfig({displayName:"ChatViewList__ChatViewListCard",componentId:"sc-1e83dab-0"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar{width:5px;}overscroll-behavior:contain;"],(e=>e.theme.scrollbarColor)),fme=(0,o.Ay)(D7).withConfig({displayName:"ChatViewList__ChatViewListCardInner",componentId:"sc-1e83dab-1"})(["filter:",";"],(e=>e.blur?"blur(12px)":"none")),hme=({height:e="8",width:t="8"})=>(0,n.jsx)("svg",Object.assign({width:t,height:e,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M0.130244 7.24089L6.48282 0.888862H1.77797C1.6601 0.888862 1.54706 0.842038 1.46371 0.758691C1.38036 0.675344 1.33354 0.562301 1.33354 0.444431C1.33354 0.32656 1.38036 0.213518 1.46371 0.130171C1.54706 0.0468235 1.6601 4.76837e-07 1.77797 4.76837e-07H7.55557C7.67344 4.76837e-07 7.78648 0.0468235 7.86983 0.130171C7.95318 0.213518 8 0.32656 8 0.444431V6.22203C8 6.3399 7.95318 6.45294 7.86983 6.53629C7.78648 6.61964 7.67344 6.66646 7.55557 6.66646C7.4377 6.66646 7.32466 6.61964 7.24131 6.53629C7.15796 6.45294 7.11114 6.3399 7.11114 6.22203V1.51718L0.759113 7.86976C0.717821 7.91105 0.6688 7.9438 0.61485 7.96615C0.560899 7.9885 0.503074 8 0.444678 8C0.386282 8 0.328458 7.9885 0.274508 7.96615C0.220557 7.9438 0.171535 7.91105 0.130244 7.86976C0.0889516 7.82846 0.0561972 7.77944 0.0338502 7.72549C0.0115027 7.67154 4.76837e-07 7.61372 4.76837e-07 7.55532C4.76837e-07 7.49693 0.0115027 7.4391 0.0338502 7.38515C0.0561972 7.3312 0.0889516 7.28218 0.130244 7.24089Z",fill:"#D53A94"})})),pme=()=>(0,n.jsx)("svg",Object.assign({width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M27.4625 3.24124L20.9125 26.4787C20.8033 26.8722 20.5755 27.2225 20.2602 27.4819C19.9448 27.7414 19.5572 27.8974 19.15 27.9287H18.975C18.5983 27.9279 18.2295 27.8207 17.9111 27.6194C17.5926 27.4182 17.3375 27.1311 17.175 26.7912L12.7125 17.3662C12.6687 17.2716 12.6548 17.1659 12.6727 17.0631C12.6906 16.9604 12.7394 16.8655 12.8125 16.7912L19.225 10.3787C19.3254 10.2878 19.4063 10.1774 19.4627 10.0542C19.5191 9.93107 19.55 9.79773 19.5533 9.6623C19.5566 9.52688 19.5324 9.39219 19.4821 9.26641C19.4318 9.14063 19.3565 9.02637 19.2607 8.93058C19.1649 8.8348 19.0507 8.75947 18.9249 8.70917C18.7991 8.65888 18.6644 8.63466 18.529 8.638C18.3936 8.64133 18.2602 8.67214 18.1371 8.72857C18.0139 8.785 17.9035 8.86585 17.8125 8.96624L11.4 15.3912C11.3258 15.4644 11.2309 15.5132 11.1282 15.5311C11.0254 15.549 10.9197 15.5351 10.825 15.4912L1.45004 11.0537C1.08311 10.8804 0.775053 10.6033 0.563988 10.2567C0.352924 9.91016 0.248118 9.50928 0.262542 9.10374C0.284668 8.68619 0.437922 8.28625 0.700498 7.96083C0.963074 7.63542 1.32159 7.40111 1.72504 7.29124L25.0125 0.728741C25.4198 0.612421 25.8536 0.628425 26.2512 0.774446C26.6488 0.920467 26.9898 1.18896 27.225 1.54124C27.3829 1.79158 27.4857 2.07261 27.5266 2.3657C27.5676 2.65879 27.5457 2.95723 27.4625 3.24124Z",fill:"#D53A94"})})),gme=({autoConnect:e=!1})=>{const{user:t,preInitializeUser:r}=P5(),{wallet:o,connecting:a,connect:s,disconnect:c}=D5({env:t?t.env:_.CONSTANTS.ENV.PROD}),{signer:u,setAccount:l,setSigner:d}=P5(),f=(0,i.useContext)(Pae);return(0,i.useEffect)((()=>{o&&!e&&c(o),o?pJ(void 0,void 0,void 0,(function*(){const e=new E.j(o.provider,"any").getSigner(),t=yield h8(e);r(t,e)})):o||(l(""),d(void 0))}),[o]),u?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(mme,Object.assign({theme:f},{children:(0,n.jsx)("button",Object.assign({onClick:()=>o?c(o):s()},{children:a?"connecting":o?"disconnect":"Connect Wallet"}))}))},mme=o.Ay.div.withConfig({displayName:"ConnectButton__ConnectButtonDiv",componentId:"sc-c9327r-0"})(["width:fit-content;button{background:",";color:",";text-align:center;font-size:1em;cursor:pointer;border-radius:10px;padding:10px 20px;outline:none;border:none;cursor:pointer;font-weight:600;}button:hover{scale:1.05;transition:0.3s;}@media ","{font-size:12px;}body.modal-open{overflow-y:hidden;}"],(e=>{var t;return`${null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.buttonBackground}!important`}),(e=>{var t;return`${null===(t=e.theme.textColor)||void 0===t?void 0:t.buttonText}!important`}),c5.mobileL),yme=({autoConnect:e})=>{const{user:t,toast:r}=P5();return(0,n.jsxs)(D7,Object.assign({width:"100%",justifyContent:"space-between",alignItems:"center",padding:"8px"},{children:[!(t&&!(null==t?void 0:t.readmode())&&(null==t?void 0:t.account))&&(0,n.jsx)(B7,Object.assign({padding:"8px 8px 8px 16px",color:"#B6BCD6",fontSize:"15px",fontWeight:"400",textAlign:"start"},{children:"You need to connect your wallet to get started"})),(0,n.jsx)(gme,{autoConnect:e})]}))},bme=({chatId:e,emoji:t=!0,gif:r=!0,file:o=!0,replyPayload:a=null,setReplyPayload:s,isConnected:c=!0,autoConnect:u=!1,verificationFailModalBackground:l=k5.OVERLAY,verificationFailModalPosition:d=_5.GLOBAL,onVerificationFail:f})=>{var h,p,g,m,y,b,v,w,A,C,E,x,S;const[I,k]=(0,i.useState)(""),[_,T]=(0,i.useState)(!1),[M,P]=(0,i.useState)(!1),j=(0,i.useRef)(null),D=(0,i.useRef)(null),[O,B]=(0,i.useState)(!1),[N,R]=(0,i.useState)(!1),[L,F]=(0,i.useState)(!1),[U,z]=(0,i.useState)(""),{getGroupByIDnew:H}=uce(),[V,K]=(0,i.useState)(null),[G,q]=(0,i.useState)(null),Q=(0,i.useContext)(Pae),W=V9(425),{sendMessage:J,loading:Y}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),{user:o}=P5(),a=(0,i.useCallback)((r=>pJ(void 0,void 0,void 0,(function*(){const{chatId:i,message:a,messageType:s,replyRef:c}=r||{};n(!0);const u={type:s,content:a};void 0!==c&&(u.type="Reply",u.content={type:s,content:a},u.reference=c),console.log(u);try{const e=yield null==o?void 0:o.chat.send(i,u);return n(!1),e||!1}catch(e){return n(!1),t(e.message),console.log(e),e.message}}))),[o]);return{sendMessage:a,error:e,loading:r}})(),{verifyAccessControl:Z,setVerificationSuccessfull:$,verificationSuccessfull:X,verified:ee,setVerified:te,loading:re}=(()=>{const[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(!1),[o,a]=(0,i.useState)(!0),[s,c]=(0,i.useState)(!1),{user:u}=P5(),l=(0,i.useCallback)((r=>pJ(void 0,void 0,void 0,(function*(){const{chatId:i,did:o}=r||{};n(!0);try{const e=yield null==u?void 0:u.chat.group.permissions(i);return n(!1),!1===(null==e?void 0:e.chat)||!1===(null==e?void 0:e.entry)?a(!1):!0===(null==e?void 0:e.chat)&&(c(!0),w8(i,!1)),!!e&&void 0}catch(e){return n(!1),a(!1),t(e.message),void console.log(e)}}))),[u]);return{verifyAccessControl:l,error:e,loading:r,verificationSuccessfull:o,setVerificationSuccessfull:a,verified:s,setVerified:c}})(),{fetchMemberStatus:ne,joinGroup:ie,joinLoading:oe,joinError:ae}=N5();G9();const{user:se,toast:ce}=P5();O5();const ue=(0,i.useRef)(null),{chatAcceptStream:le,participantRemoveStream:de,participantLeaveStream:fe,participantJoinStream:he,groupUpdateStream:pe}=P5();H9(j,(()=>{T(!1),P(!1)})),(0,i.useEffect)((()=>{var e,t;if(null===(e=null==ue?void 0:ue.current)||void 0===e?void 0:e.style){ue.current.style.height="25px";const e=null===(t=ue.current)||void 0===t?void 0:t.scrollHeight;ue.current.style.height=e+"px"}}),[ue,I]),(0,i.useEffect)((()=>{!Y&&ue.current&&ue.current.focus()}),[Y,ue]),(0,i.useEffect)((()=>{if(V){const t=localStorage.getItem(e);if(t){const e=JSON.parse(t),r=(new Date).getTime(),n=864e5;Math.abs(r-e){pJ(void 0,void 0,void 0,(function*(){if(se&&e){let t=e;N8(t)&&(t=yield O8(e,se)),z(t);try{const e=yield se.chat.info(t);q(e)}catch(ys){console.error("UIWeb::MessageInput::useEffect[chatId, user]::error while fetching chat info",ys)}}}))}),[e,se]),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){var e;let t;G&&(null===(e=null==G?void 0:G.meta)||void 0===e?void 0:e.group)&&(t=yield H({groupId:U}),t&&K(t))}))}),[G]),(0,i.useEffect)((()=>{Object.keys(pe||{}).length>0&&pe.constructor===Object&&ge(pe)}),[pe]),(0,i.useEffect)((()=>{se&&se&&V&&pJ(void 0,void 0,void 0,(function*(){const e=yield ne({chatId:V.chatId,accountId:null==se?void 0:se.account});e&&"string"!=typeof e?F(null==e?void 0:e.participant):me("Error","Error in fetching member details")}))}),[se,V,G,le,he,fe,de]),(0,i.useEffect)((()=>{se&&se&&e&&V&&R((e=>{var t,r;let n=!1;return e&&e.rules&&((null===(t=e.rules)||void 0===t?void 0:t.entry)||(null===(r=e.rules)||void 0===r?void 0:r.chat))&&(n=!0),n})(V))}),[e,V,se]),(0,i.useEffect)((()=>{G&&G.chatId===le.chatId&&"REQUESTS"===(null==G?void 0:G.list)&&q((e=>{var t,r,n,i,o,a;return e?Object.assign(Object.assign({},e),{list:"CHATS",chatId:e.chatId,meta:{group:null!==(r=null===(t=e.meta)||void 0===t?void 0:t.group)&&void 0!==r&&r,encrypted:null!==(i=null===(n=e.meta)||void 0===n?void 0:n.encrypted)&&void 0!==i&&i,visibility:null===(a=null===(o=e.meta)||void 0===o?void 0:o.visibility)||void 0===a||a}}):null}))}),[le]);const ge=e=>{var t,r,n,i,o,a;if((null==V?void 0:V.chatId)===(null==e?void 0:e.chatId)){const s=V;s&&(s.groupName=null===(t=null==e?void 0:e.meta)||void 0===t?void 0:t.name,s.groupDescription=null===(r=null==e?void 0:e.meta)||void 0===r?void 0:r.description,s.groupImage=null===(n=null==e?void 0:e.meta)||void 0===n?void 0:n.image,s.groupCreator=null===(i=null==e?void 0:e.meta)||void 0===i?void 0:i.owner,s.isPublic=!(null===(o=null==e?void 0:e.meta)||void 0===o?void 0:o.private),s.rules=null===(a=null==e?void 0:e.meta)||void 0===a?void 0:a.rules,K(s))}},me=(e,t)=>{ce.showMessageToast({toastTitle:e,toastMessage:t,toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})},ye=(e,t)=>{ce.showMessageToast({toastTitle:e,toastMessage:t,toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"green"})})},be=()=>se&&!(null==se?void 0:se.readmode())&&!L,ve=()=>se&&!(null==se?void 0:se.readmode())&&!ee&&L&&N,we=(t,r)=>pJ(void 0,void 0,void 0,(function*(){try{const n=yield J({chatId:U,message:t,messageType:r,replyRef:(null==a?void 0:a.cid)||void 0});n&&"string"==typeof n&&n.includes("403")&&(w8(e,!0),te(!1),$(!1))}catch(ys){console.log(ys)}finally{null==s||s(null)}})),Ae=()=>pJ(void 0,void 0,void 0,(function*(){""!==I.trim()&&(yield we(I,"Text"),k(""))}));return(0,i.useEffect)((()=>{var e;a&&(null===(e=ue.current)||void 0===e||e.focus())}),[a]),se&&!(null==se?void 0:se.readmode())||!c?Object.keys(G||{}).length?(0,n.jsx)(wme,Object.assign({width:"100%",justifyContent:"space-between",alignItems:"center",className:"REQUESTS"===(null==G?void 0:G.list)?"hide":""},{children:(0,n.jsxs)(vme,Object.assign({width:"100%",borderRadius:null===(p=Q.borderRadius)||void 0===p?void 0:p.messageInput,position:"static",border:null===(g=Q.border)||void 0===g?void 0:g.messageInput,padding:" "+(se&&!(null==se?void 0:se.readmode())?"14px 16px":""),background:`${null===(m=Q.backgroundColor)||void 0===m?void 0:m.messageInputBackground}`,alignItems:"center",justifyContent:"space-between"},{children:[Object.keys(G||{}).length&&V?(0,n.jsxs)(n.Fragment,{children:[(be()||ve())&&(0,n.jsxs)(D7,Object.assign({width:"100%",justifyContent:"space-between",alignItems:"center"},{children:[(0,n.jsxs)(B7,Object.assign({padding:"8px 8px 8px 0px",color:null===(y=Q.textColor)||void 0===y?void 0:y.chatReceivedBubbleText,fontSize:"15px",fontWeight:"500",textAlign:"start"},{children:[be()&&"Click on the button to join the group",ve()&&(0,n.jsxs)(n.Fragment,{children:["Sending messages requires to staisfy the group rules."," ",(0,n.jsxs)(Mme,Object.assign({href:"https://push.org/docs/chat/build/conditional-rules-for-group/",target:"_blank",color:null===(b=Q.backgroundColor)||void 0===b?void 0:b.chatSentBubbleBackground},{children:["Learn More ",(0,n.jsx)(hme,{})]}))]})]})),(0,n.jsx)(xme,{children:(0,n.jsxs)(Ime,Object.assign({onClick:()=>pJ(void 0,void 0,void 0,(function*(){return be()?yield pJ(void 0,void 0,void 0,(function*(){G&&V?"string"!=typeof(yield ie({chatId:U}))?ye("Success","Successfully joined group"):ae&&me("Error","Unable to join group"):(yield J({message:`Hello, please let me join this group, my wallet address is ${l8((null==se?void 0:se.account)||"")}`,chatId:(null==V?void 0:V.groupCreator)||"",messageType:"Text"}))?ye("Success","Request sent successfully"):me("Error","Unable to send request")})):yield void((null==se?void 0:se.account)?Z({chatId:e,did:se.account}):console.error("UIWeb::MessageInput::checkVerification::User's account is not available"))}))},{children:[be()&&(0,n.jsx)(n.Fragment,{children:oe?(0,n.jsx)(k7,{color:"#fff",size:"24"}):" Join Group "}),ve()&&(0,n.jsx)(n.Fragment,{children:re?(0,n.jsx)(k7,{color:"#fff",size:"24"}):"Verify Access"})]}))})]})),!!se&&!(null==se?void 0:se.readmode())&&!X&&(0,pI.createPortal)((0,n.jsx)(Pce,Object.assign({width:"550px",modalBackground:l,modalPositionType:d},{children:(0,n.jsxs)(D7,Object.assign({margin:"5px 0px 0px 0px",gap:"16px",flexDirection:"column",width:"100%"},{children:[(0,n.jsx)(jce,{title:"Access Failed"}),(0,n.jsx)(Ele,{theme:Q,groupInfo:V,subheader:"Please make sure the following conditions\n are met to pariticpate and send messages.",alert:!0}),(0,n.jsx)(kme,Object.assign({onClick:()=>{f&&f(),$(!0)}},{children:(0,n.jsx)(Tme,{children:"Cancel"})})),(0,n.jsx)(_ue,{cta:"https://push.org/docs/chat/build/conditional-rules-for-group/",label:"Learn more about access gating rules"})]}))})),document.body)]}):null,se&&!(null==se?void 0:se.readmode())&&((!N||ee)&&L||G&&!V)&&(0,n.jsxs)(D7,Object.assign({flexDirection:"column",flex:"1",gap:"12px"},{children:[a&&(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"flex-start",overflow:"hidden",gap:"8px"},{children:[(0,n.jsxs)(D7,Object.assign({flexDirection:"row",justifyContent:"space-between",alignItems:"center",overflow:"hidden",gap:"8px"},{children:[(0,n.jsxs)(B7,Object.assign({padding:"0px",fontSize:"10px",color:null===(v=Q.iconColor)||void 0===v?void 0:v.emoji},{children:["Reply to ",(0,n.jsx)(B7,Object.assign({fontWeight:"500",padding:"0px"},{children:`${null===(w=a.fromDID)||void 0===w?void 0:w.split(":")[1].slice(0,6)}...${null===(A=a.fromDID)||void 0===A?void 0:A.split(":")[1].slice(-6)}`}))]})),(0,n.jsx)(L7,Object.assign({onClick:e=>{e.stopPropagation(),s&&s(null)}},{children:(0,n.jsx)(xae,{size:14,color:null===(C=Q.textColor)||void 0===C?void 0:C.messageInputText})}))]})),(0,n.jsx)(xge,{chat:a,chatId:e,previewMode:!0,activeMode:!0})]})),(0,n.jsxs)(Ame,Object.assign({flex:"1"},{children:[t&&(0,n.jsx)(O7,Object.assign({width:"25px",cursor:"pointer",height:"25px",alignSelf:"end",onClick:()=>T(!_)},{children:(0,n.jsx)(Sae,{color:null===(E=Q.iconColor)||void 0===E?void 0:E.emoji,size:22})})),_&&(0,n.jsx)(D7,Object.assign({ref:j,position:"absolute",bottom:"50px",left:"-12px",zIndex:"700"},{children:(0,n.jsx)(FP,{width:W?260:320,height:370,onEmojiClick:(e,t)=>{k(I+e.emoji),T(!1)}})})),(0,n.jsx)(Cme,{ref:ue,disabled:!!Y,theme:Q,onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),Ae())},placeholder:"Type your message...",onChange:e=>{return t=e.target.value,void k(t);var t},value:I,rows:1}),r&&(0,n.jsx)(D7,Object.assign({width:"30px",height:"24px",cursor:"pointer",alignSelf:"end",onClick:()=>P(!M)},{children:(0,n.jsx)(Dae,{})})),M&&(0,n.jsx)(D7,Object.assign({position:"absolute",bottom:"50px",right:"-18px",zIndex:"1",ref:j},{children:(0,n.jsx)(vj,{onGifClick:e=>pJ(void 0,void 0,void 0,(function*(){we(e.url,"GIF"),P(!1)})),width:W?260:320,height:370,tenorApiKey:String(U4)})})),(0,n.jsx)(D7,Object.assign({onClick:()=>{D.current&&D.current.click()}},{children:!O&&o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D7,Object.assign({width:"18px",height:"24px",cursor:"pointer",alignSelf:"end"},{children:(0,n.jsx)(Oae,{color:null===(x=Q.iconColor)||void 0===x?void 0:x.attachment})})),(0,n.jsx)(Eme,{type:"file",ref:D,onChange:e=>(e=>pJ(void 0,void 0,void 0,(function*(){if(e.target instanceof HTMLInputElement&&e.target.files&&e.target&&e.target.files&&e.target.files.length){const r=e.target.files[0];if(r)try{const e=2097152;if(r.size>e)throw console.log("Files larger than 2mb is not allowed"),new Error("Files larger than 2mb is not allowed");B(!0);const t=r.type.startsWith("image")?"Image":"File",n=new FileReader;let i;n.readAsDataURL(r),n.onloadend=e=>pJ(void 0,void 0,void 0,(function*(){i={content:e.target.result,name:r.name,type:r.type,size:r.size},we(JSON.stringify(i),t)}))}catch(t){console.log(t)}finally{B(!1)}}})))(e)})]})})),!(Y||O)&&(0,n.jsx)(D7,Object.assign({cursor:"pointer",alignSelf:"end",height:"20px",width:"22px",onClick:()=>Ae()},{children:(0,n.jsx)(pme,{color:null===(S=Q.iconColor)||void 0===S?void 0:S.sendButton})})),(Y||O)&&(0,n.jsx)(D7,Object.assign({alignSelf:"end",height:"24px"},{children:(0,n.jsx)(k7,{color:Q.spinnerColor,size:"22"})}))]}))]}))]}))})):(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(vme,Object.assign({width:"100%",overflow:"hidden",borderRadius:"13px",position:"static",padding:" "+(se&&!(null==se?void 0:se.readmode())?"14px 16px":""),background:`${null===(h=Q.backgroundColor)||void 0===h?void 0:h.messageInputBackground}`,alignItems:"center",justifyContent:"space-between"},{children:(0,n.jsx)(yme,{autoConnect:u})}))},vme=(0,o.Ay)(D7).withConfig({displayName:"MessageInput__TypebarSection",componentId:"sc-xbdscc-0"})(["border:",";@media ","{gap:0px;}"],(e=>e.border||"none"),c5.mobileL),wme=(0,o.Ay)(D7).withConfig({displayName:"MessageInput__MessageInputContainer",componentId:"sc-xbdscc-1"})(["transition:transform 0.3s ease-in-out;transform:translateY(0);&.hide{transform:translateY(calc(100% + 20px));}"]),Ame=(0,o.Ay)(D7).withConfig({displayName:"MessageInput__SendSection",componentId:"sc-xbdscc-2"})(["gap:12px;@media ","{gap:8px;}"],c5.mobileL),Cme=o.Ay.textarea.withConfig({displayName:"MessageInput__MultiLineInput",componentId:"sc-xbdscc-3"})(["font-family:inherit;font-weight:400;transform:translateY(3px);font-size:15px;outline:none;overflow-y:auto;box-sizing:border-box;background:",";border:none;color:",";resize:none;flex:1;padding-right:5px;align-self:end;@media ","{font-size:16px;width:100%;}&&::-webkit-scrollbar{width:4px;padding-right:0px;}::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;height:50px;}::placeholder{color:",";transform:translateY(0px);@media ","{font-size:14px;}}min-height:25px;max-height:80px;word-break:break-word;"],(e=>{var t;return null===(t=e.theme.backgroundColor)||void 0===t?void 0:t.messageInputBackground}),(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.messageInputText}),c5.mobileL,(e=>{var t;return null===(t=e.theme.textColor)||void 0===t?void 0:t.messageInputText}),c5.mobileL),Eme=o.Ay.input.withConfig({displayName:"MessageInput__FileInput",componentId:"sc-xbdscc-4"})(["display:none;"]),xme=o.Ay.div.withConfig({displayName:"MessageInput__ConnectWrapper",componentId:"sc-xbdscc-5"})(["display:flex;align-items:center;flex-direction:column;cursor:pointer;"]),Sme=o.Ay.button.withConfig({displayName:"MessageInput__StyledButton",componentId:"sc-xbdscc-6"})(["border:0px;outline:0px;padding:24px 9px;font-weight:500;border-radius:12px;font-size:17px;cursor:pointer;width:147px;height:44px;text-align:start;align-items:center;display:flex;justify-content:center;"]),Ime=(0,o.Ay)(Sme).withConfig({displayName:"MessageInput__Connect",componentId:"sc-xbdscc-7"})(["color:rgb(255,255,255);background:#d53a94;"]),kme=o.Ay.div.withConfig({displayName:"MessageInput__ConnectWrapperClose",componentId:"sc-xbdscc-8"})(["display:flex;align-items:center;flex-direction:column;"]),_me=o.Ay.button.withConfig({displayName:"MessageInput__StyledButtonClose",componentId:"sc-xbdscc-9"})(["border:0px;outline:0px;padding:24px 9px;font-weight:500;border-radius:12px;font-size:17px;cursor:pointer;width:147px;height:44px;text-align:start;align-items:center;display:flex;justify-content:center;"]),Tme=(0,o.Ay)(_me).withConfig({displayName:"MessageInput__ConnectClose",componentId:"sc-xbdscc-10"})(["color:rgb(255,255,255);background:#d53a94;gap:8px;"]),Mme=o.Ay.a.withConfig({displayName:"MessageInput__Link",componentId:"sc-xbdscc-14"})(["color:#d53a94;link-decoration:none;text-decoration:none;"]),Pme=e=>{var t,r,o,a,s,c,u,l,d,f;const{chatId:h=null,chatFilterList:p=[],messageInput:g=!0,chatViewList:m=!0,chatProfile:y=!0,limit:b=V4,emoji:v=!0,file:w=!0,gif:A=!0,handleReply:C=!0,isConnected:E=!0,autoConnect:x=!1,onVerificationFail:S,groupInfoModalBackground:I=k5.OVERLAY,groupInfoModalPositionType:k=_5.GLOBAL,verificationFailModalBackground:_=k5.OVERLAY,verificationFailModalPosition:T=_5.GLOBAL,chatProfileRightHelperComponent:M=null,chatProfileLeftHelperComponent:P=null,welcomeComponent:j=null,closeChatProfileInfoModalOnClickAway:D=!1}=e||{},{user:O}=P5(),B=(0,i.useContext)(Pae);K9(c5.mobileL),O||console.warn("Chat::ChatView::You need to pass either push user, or a signer, or account and pgpPrivateKey in ChatViewComponent to send messages.");const[N,R]=(0,i.useState)({loading:!0,derivedChatId:""}),[L,F]=(0,i.useState)(null);return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(R((e=>Object.assign(Object.assign({},e),{loading:!0}))),h){const e=yield O8(h,O);R({loading:!1,derivedChatId:e})}else R({loading:!1,derivedChatId:""})}))}),[h,O]),(0,n.jsxs)(jme,Object.assign({width:"100%",height:"inherit",flexDirection:"column",justifyContent:"space-between",overflow:"hidden",background:null===(t=B.backgroundColor)||void 0===t?void 0:t.chatViewComponentBackground,borderRadius:null===(r=B.borderRadius)||void 0===r?void 0:r.chatViewComponent,padding:null===(o=B.padding)||void 0===o?void 0:o.chatViewPadding,margin:null===(a=B.margin)||void 0===a?void 0:a.chatViewMargin,theme:B},{children:[N.loading&&(0,n.jsx)(D7,Object.assign({padding:"20px"},{children:(0,n.jsx)(k7,{color:B.spinnerColor})})),!N.loading&&h?(0,n.jsxs)(n.Fragment,{children:[y&&(0,n.jsx)(D7,Object.assign({margin:null===(s=B.margin)||void 0===s?void 0:s.chatProfileMargin,padding:null===(c=B.padding)||void 0===c?void 0:c.chatProfilePadding,zIndex:"2"},{children:(0,n.jsx)(Nle,{closeChatProfileInfoModalOnClickAway:D,chatProfileRightHelperComponent:M,chatProfileLeftHelperComponent:P,chatId:N.derivedChatId,groupInfoModalBackground:I,groupInfoModalPositionType:k},h)})),(0,n.jsx)(Dme,Object.assign({flex:"1 1 auto",overflow:"hidden",padding:null===(u=B.padding)||void 0===u?void 0:u.chatViewListPadding,margin:null===(l=B.margin)||void 0===l?void 0:l.chatViewListMargin,flexDirection:"column",justifyContent:"start",zIndex:"1"},{children:m&&(0,n.jsx)(lme,{chatFilterList:p,limit:b,chatId:N.derivedChatId,setReplyPayload:F},h)})),g&&O&&(0,n.jsx)(D7,Object.assign({flex:"0 1 auto",zIndex:"2",padding:null===(d=B.padding)||void 0===d?void 0:d.messageInputPadding,margin:null===(f=B.margin)||void 0===f?void 0:f.messageInputMargin},{children:(0,n.jsx)(bme,{onVerificationFail:S,chatId:N.derivedChatId,file:w,emoji:v,gif:A,replyPayload:C?L:null,setReplyPayload:F,isConnected:E,verificationFailModalBackground:_,verificationFailModalPosition:T,autoConnect:x},h)}))]}):(0,n.jsx)(D7,Object.assign({overflow:"auto"},{children:j}))]}))},jme=(0,o.Ay)(D7).withConfig({displayName:"ChatViewComponent__Conatiner",componentId:"sc-mq9e0g-0"})(["border:",";box-sizing:border-box;"],(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.chatViewComponent})),Dme=(0,o.Ay)(D7).withConfig({displayName:"ChatViewComponent__ChatViewSection",componentId:"sc-mq9e0g-1"})(["@media (","){margin:0;}"],c5.mobileL),Ome=({operator:e,setOperator:t})=>{var r,o,a;const s=(0,i.useContext)(Pae);return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"12px"},{children:[(0,n.jsx)(pue,{options:Wue,selectedValue:e,handleClick:e=>{t(e)}}),(0,n.jsxs)(B7,Object.assign({fontSize:"14px"},{children:[null===(r=Jue[e])||void 0===r?void 0:r.head,(0,n.jsxs)(B7,Object.assign({color:null===(o=s.textColor)||void 0===o?void 0:o.modalSubHeadingText},{children:[" ",null===(a=Jue[e])||void 0===a?void 0:a.tail]}))]}))]}))},Bme=(e,t)=>{var r,n;const[o,a]=(0,i.useState)(null===(r=Wue[1])||void 0===r?void 0:r.value),[s,c]=(0,i.useState)(null===(n=Wue[1])||void 0===n?void 0:n.value),[u,l]=(0,i.useState)(t),[d,f]=(0,i.useState)(e),[h,p]=(0,i.useState)(-1),[g,m]=(0,i.useState)([]),[y,b]=(0,i.useState)(-1),[v,w]=(0,i.useState)(-1);return{entryRootCondition:o,setEntryRootCondition:a,entryRuleTypeCondition:s,setEntryRuleTypeCondition:c,entryOptionTypeArray:u,setEntryOptionTypeArray:l,entryOptionsDataArray:d,setEntryOptionsDataArray:f,selectedCriteria:h,setSelectedCriteria:p,addNewCondtion:()=>{g.length>0&&(l((e=>[...e,s])),f((e=>[...e,[...g]]))),m([])},selectedRules:g,addNewRule:e=>{if((e=>{const t=JSON.stringify(e);for(let r=0;r[...t,e]));return!0},deleteRule:e=>{const t=[...g];t.splice(e,1),m(t)},deleteEntryOptionsDataArray:e=>{const t=[...d];t.splice(e,1),f(t)},selectEntryOptionsDataArrayForUpdate:e=>{b(e)},entryOptionsDataArrayUpdate:y,isCondtionUpdateEnabled:()=>-1!==y,updateCondition:()=>{const e=[...u];e[y]=s;const t=[...d];t[y]=[...g],l(e),f(t),m([])},setSelectedRule:m,updateCriteriaIdx:v,setUpdateCriteriaIdx:w,isUpdateCriteriaEnabled:()=>-1!==v}};var Nme;!function(e){e[e.ENTRY=0]="ENTRY",e[e.CHAT=1]="CHAT"}(Nme||(Nme={}));const Rme=[{heading:"Public",subHeading:"Anyone can view chats, even without joining",value:"open"},{heading:"Private",subHeading:"Encrypted Chats, Users must join group to view",value:"encrypted"}],Lme=({heading:e,subHeading:t,handleNext:r,criteriaState:o})=>{var a,s,c,u;const l=(0,i.useContext)(Pae);return(0,n.jsxs)(D7,Object.assign({alignItems:"start",flexDirection:"column",gap:"0px"},{children:[(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"start",gap:"5px",margin:"0 0 5px 0"},{children:[(0,n.jsx)(B7,Object.assign({color:null===(a=l.textColor)||void 0===a?void 0:a.modalHeadingText,fontSize:"16px",fontWeight:"500"},{children:e})),(0,n.jsx)(B7,Object.assign({color:null===(s=l.textColor)||void 0===s?void 0:s.modalSubHeadingText,fontWeight:"400",fontSize:"12px"},{children:t}))]})),o.entryOptionsDataArray.length>1&&(0,n.jsx)(D7,Object.assign({margin:"10px"},{children:(0,n.jsx)(Ome,{operator:o.entryRootCondition,setOperator:e=>{o.setEntryRootCondition(e)}})})),(0,n.jsx)(Xue,{conditionData:[[{operator:o.entryRootCondition}],...o.entryOptionsDataArray.map(((e,t)=>[{operator:o.entryOptionTypeArray[t]},...e.map((e=>e))]))],deleteFunction:e=>{o.deleteEntryOptionsDataArray(e)},updateFunction:e=>{o.selectEntryOptionsDataArrayForUpdate(e),r&&r()}}),(0,n.jsx)(yue,Object.assign({onClick:()=>{r&&(o.setSelectedRule([]),o.setSelectedCriteria(-1),r())},customStyle:{color:`${null===(c=l.backgroundColor)||void 0===c?void 0:c.buttonBackground}`,fontSize:"15px",fontWeight:"500",border:`${null===(u=l.border)||void 0===u?void 0:u.modalInnerComponents}`,background:"transparent"}},{children:"+ Add conditions"}))]}))},Fme=({onClose:e,handlePrevious:t,handleNext:r,criteriaStateManager:o,checked:a=!1,setChecked:s,handleAddWallets:c,setGroupInputDetails:u,groupInputDetails:l})=>{const d=(0,i.useContext)(Pae);return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"16px"},{children:[(0,n.jsx)(jce,{title:"Create Group",handleClose:e,handlePrevious:t}),(0,n.jsx)(Ume,Object.assign({width:"100%",overflow:"hidden auto",maxHeight:"53vh",theme:d,padding:"5px 4px 5px 0"},{children:(0,n.jsxs)(D7,Object.assign({gap:"20px",flexDirection:"column",height:"100%"},{children:[(0,n.jsx)(pue,{options:Rme,selectedValue:l.groupEncryptionType,handleClick:e=>{u&&u((t=>Object.assign(Object.assign({},t),{groupEncryptionType:e}))),console.debug(e)}}),(0,n.jsx)(Zce,{labelHeading:"Gated Group",labelSubHeading:"Enable gating including invite and access rules",checked:a,onToggle:()=>s?s(!a):null}),a&&(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"20px"},{children:[(0,n.jsx)(Lme,Object.assign({criteriaState:o.entryCriteria,handleNext:()=>{r&&(o.setSelectedCriteria(Nme.ENTRY),r())}},Yue.ENTRY)),(0,n.jsx)(Lme,Object.assign({handleNext:()=>{r&&(o.setSelectedCriteria(Nme.CHAT),r())},criteriaState:o.chatCriteria},Yue.CHAT))]}))]}))})),(0,n.jsxs)(D7,Object.assign({gap:"16px",flexDirection:"column"},{children:[(0,n.jsx)(yue,Object.assign({width:"197px",onClick:c},{children:"Next"})),(0,n.jsx)(_ue,{label:"Learn more about access gating rules",cta:"https://push.org/docs/chat/build/conditional-rules-for-group/"})]}))]}))},Ume=(0,o.Ay)(D7).withConfig({displayName:"CreateGroupType__ScrollSection",componentId:"sc-lwmsdd-0"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar-button{height:40px;}&::-webkit-scrollbar{width:4px;}"],(e=>e.theme.scrollbarColor)),zme=({title:e,handleNext:t})=>{var r,o;const a=(0,i.useContext)(Pae);return(0,n.jsx)(yue,Object.assign({customStyle:{color:`${null===(r=a.backgroundColor)||void 0===r?void 0:r.buttonBackground}`,fontSize:"15px",fontWeight:"500",border:`${null===(o=a.border)||void 0===o?void 0:o.modalInnerComponents}`,background:"transparent"},onClick:t},{children:e}))},Hme=({onClose:e,handlePrevious:t,handleNext:r,criteriaStateManager:o})=>{var a,s,c,u,l;const d=(0,i.useContext)(Pae),f=K9(c5.mobileL),h=o.getSelectedCriteria();h.selectedRules.length<1?null===(a=d.backgroundColor)||void 0===a||a.buttonDisableBackground:null===(s=d.backgroundColor)||void 0===s||s.buttonBackground,h.selectedRules.length<1?null===(c=d.textColor)||void 0===c||c.buttonDisableText:null===(u=d.textColor)||void 0===u||u.buttonText;return(0,i.useEffect)((()=>{h.isCondtionUpdateEnabled()&&(h.setEntryRuleTypeCondition(h.entryOptionTypeArray[h.entryOptionsDataArrayUpdate]),0===h.selectedRules.length&&h.setSelectedRule([...h.entryOptionsDataArray[h.entryOptionsDataArrayUpdate]]))}),[]),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"16px",width:f?"300px":"400px"},{children:[(0,n.jsx)(jce,{title:h.isCondtionUpdateEnabled()?"Update Condition":"Define Condition",handleClose:e,handlePrevious:()=>{((e,t)=>{e.isCondtionUpdateEnabled()?e.updateCondition():e.addNewCondtion(),t&&t()})(h,t)}}),(0,n.jsxs)(D7,Object.assign({flexDirection:"column"},{children:[h.selectedRules.length>1&&(0,n.jsx)(D7,Object.assign({margin:"5px 0 16px 0"},{children:(0,n.jsx)(Ome,{operator:h.entryRuleTypeCondition,setOperator:e=>{h.setEntryRuleTypeCondition(e)}})})),h.selectedRules.length>0&&(0,n.jsx)(Vme,Object.assign({width:"100%",overflow:"hidden auto",maxHeight:"15vh",theme:d,padding:"5px 4px 5px 0"},{children:(0,n.jsx)(Xue,{conditionData:[[{operator:h.entryRuleTypeCondition}],...h.selectedRules.map((e=>[e]))],deleteFunction:e=>{h.deleteRule(e)},updateFunction:e=>{h.setUpdateCriteriaIdx(e),r&&r()}})})),(0,n.jsx)(zme,{handleNext:r,title:"+ Add criteria"})]})),!h.selectedRules.length&&(0,n.jsx)(B7,Object.assign({fontSize:"15px",fontWeight:"400",color:null===(l=d.textColor)||void 0===l?void 0:l.modalSubHeadingText},{children:"You must add at least 1 criteria to enable gating"})),(0,n.jsx)(_ue,{label:"Learn more about access gating rules",cta:"https://push.org/docs/chat/build/conditional-rules-for-group/"})]}))},Vme=(0,o.Ay)(D7).withConfig({displayName:"DefineCondition__ConditionSection",componentId:"sc-aqetzr-0"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar-button{height:40px;}&::-webkit-scrollbar{width:4px;}"],(e=>e.theme.scrollbarColor));const Kme=({handlePrevious:e,onClose:t,criteriaStateManager:r})=>{var o,a,s,c;const[u,l]=(0,i.useState)(0),[d,f]=(0,i.useState)({}),[h,p]=(0,i.useState)(0),[g,m]=(0,i.useState)(0),[y,b]=(0,i.useState)(!1),[v,w]=(0,i.useState)(""),[A,C]=(0,i.useState)(0),[E,x]=(0,i.useState)(""),[S,I]=(0,i.useState)(""),[k,T]=(0,i.useState)({admin:!0,owner:!0}),[M,P]=(0,i.useState)(""),[j,D]=(0,i.useState)(""),[O,B]=(0,i.useState)(""),[N,R]=(0,i.useState)("TOKEN"),[L,F]=(0,i.useState)(18),[U,z]=(0,i.useState)({value:0,range:0}),{user:H,toast:V}=P5(),K=H?H.env:_.CONSTANTS.ENV.PROD,G=(0,i.useContext)(Pae),q=K9(c5.mobileL),Q=[{id:0,title:"Greater than",value:">",function:()=>z(Object.assign(Object.assign({},U),{range:0}))},{id:1,title:"Greater or equal to",value:">=",function:()=>z(Object.assign(Object.assign({},U),{range:1}))},{id:2,title:"Less than",value:"<",function:()=>z(Object.assign(Object.assign({},U),{range:2}))},{id:3,title:"Less or equal to",value:"<=",function:()=>z(Object.assign(Object.assign({},U),{range:3}))},{id:4,title:"Equal to",value:"==",function:()=>z(Object.assign(Object.assign({},U),{range:4}))},{id:5,title:"Not equal to",value:"!=",function:()=>z(Object.assign(Object.assign({},U),{range:5}))}],W=[{id:0,title:"Push protocol",value:W9,function:()=>l(0)},{id:1,title:"Guild",value:J9,function:()=>l(1)}],J={PUSH:[{id:0,value:Y9,title:"Token ERC20",function:()=>p(0)},{id:1,value:Z9,title:"NFT ERC721",function:()=>p(1)},{id:2,value:X9,title:"Invite",function:()=>p(2)},{id:3,value:e7,title:"Custom Endpoint",function:()=>p(3)},{id:4,value:$9,title:"Token ERC1155",function:()=>p(4)}],GUILD:{value:t7,title:"Roles"}},Y={ERC20:{value:r7,title:"Holder"},ERC721:{value:r7,title:"Holder"},ERC1155:{value:r7,title:"Holder"},INVITE:{value:i7,title:"Default"},CustomEndpoint:[{id:0,value:n7,title:"Get",function:()=>m(0)}],ROLES:{value:i7,title:"Default"}},Z=[{id:0,value:R4[K].ETHEREUM,title:"Ethereum",icon:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z' fill='%23627EEA'/%3e %3cpath d='M12.3735 3V9.6525L17.9963 12.165L12.3735 3Z' fill='white' fill-opacity='0.602'/%3e %3cpath d='M12.3735 3L6.75 12.165L12.3735 9.6525V3Z' fill='white'/%3e %3cpath d='M12.3735 16.476V20.9963L18 13.212L12.3735 16.476Z' fill='white' fill-opacity='0.602'/%3e %3cpath d='M12.3735 20.9963V16.4753L6.75 13.212L12.3735 20.9963Z' fill='white'/%3e %3cpath d='M12.3735 15.4298L17.9963 12.1651L12.3735 9.65405V15.4298Z' fill='white' fill-opacity='0.2'/%3e %3cpath d='M6.75 12.1651L12.3735 15.4298V9.65405L6.75 12.1651Z' fill='white' fill-opacity='0.602'/%3e %3c/svg%3e",function:()=>C(0)},{id:1,value:R4[K].POLYGON,title:"Polygon",icon:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cg clip-path='url(%23clip0_5284_6348)'%3e %3cpath d='M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z' fill='%237B3FE4'/%3e %3cpath d='M20 12.2801V15.9003C19.9987 16.1261 19.9391 16.3476 19.8269 16.5433C19.7147 16.739 19.5538 16.9021 19.36 17.0168L16.235 18.8231C16.0415 18.9389 15.8203 19 15.595 19C15.3697 19 15.1485 18.9389 14.955 18.8231L11.83 17.0168C11.6362 16.9021 11.4753 16.739 11.3631 16.5433C11.251 16.3476 11.1913 16.1261 11.19 15.9003V14.8842L12.79 13.9522V15.7184L15.59 17.3492L18.39 15.7184V12.4645L15.59 10.8337L9.03001 14.6472C8.83465 14.7576 8.61421 14.8157 8.38999 14.8157C8.16577 14.8157 7.94536 14.7576 7.75 14.6472L4.62499 12.8333C4.43416 12.7169 4.27639 12.5532 4.16692 12.3579C4.05745 12.1625 3.99997 11.9422 4 11.7181V8.09786C4.00129 7.87211 4.06096 7.65056 4.17313 7.45487C4.28533 7.25918 4.44619 7.09604 4.63999 6.98144L7.765 5.17508C7.95895 5.06045 8.17993 5 8.40499 5C8.63008 5 8.85106 5.06045 9.04501 5.17508L12.17 6.98144C12.3638 7.09604 12.5247 7.25918 12.6369 7.45487C12.7491 7.65056 12.8087 7.87211 12.81 8.09786V9.11393L11.2 10.0397V8.28353L8.40001 6.65279L5.59999 8.28353V11.5337L8.40001 13.1644L14.96 9.35102C15.1553 9.24056 15.3758 9.18254 15.6 9.18254C15.8242 9.18254 16.0446 9.24056 16.24 9.35102L19.365 11.1649C19.5577 11.28 19.7175 11.4433 19.8287 11.6386C19.94 11.8341 19.999 12.055 20 12.2801Z' fill='white'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_5284_6348'%3e %3crect width='24' height='24' fill='white'/%3e %3c/clipPath%3e %3c/defs%3e %3c/svg%3e",function:()=>C(1)},{id:2,value:R4[K].BSC,title:"BSC",icon:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='12' cy='12' r='12' fill='%231D1D1D'/%3e %3cpath d='M8.16193 12L6.58295 13.579L5 12L6.57898 10.421L8.16193 12ZM12 8.16193L14.7085 10.8705L16.2875 9.29148L12 5L7.70852 9.29148L9.2875 10.8705L12 8.16193ZM17.417 10.421L15.8381 12L17.417 13.579L18.996 12L17.417 10.421ZM12 15.8381L9.29148 13.1295L7.7125 14.7085L12 19L16.2875 14.7085L14.7085 13.1295L12 15.8381ZM12 13.579L13.579 12L12 10.421L10.417 12L12 13.579Z' fill='%23F0B90B'/%3e %3c/svg%3e",function:()=>C(2)},{id:3,value:R4[K].OPTIMISM,title:"Optimism",icon:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cg clip-path='url(%23clip0_9390_20606)'%3e %3cpath d='M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z' fill='%23FF0420'/%3e %3cpath d='M8.50098 15.1872C7.78578 15.1872 7.20018 15.0192 6.74418 14.6832C6.29298 14.3424 6.06738 13.8528 6.06738 13.224C6.06738 13.0896 6.08178 12.9312 6.11058 12.7392C6.18738 12.3072 6.29778 11.7888 6.44178 11.1792C6.84978 9.52799 7.90578 8.70239 9.60498 8.70239C10.0658 8.70239 10.4834 8.77919 10.8482 8.93759C11.213 9.08639 11.501 9.31679 11.7122 9.62399C11.9234 9.92639 12.029 10.2864 12.029 10.704C12.029 10.8288 12.0146 10.9872 11.9858 11.1792C11.8946 11.712 11.789 12.2352 11.6594 12.7392C11.4482 13.56 11.0882 14.1792 10.5698 14.5872C10.0562 14.9904 9.36498 15.1872 8.50098 15.1872ZM8.63058 13.8912C8.96658 13.8912 9.24978 13.7904 9.48498 13.5936C9.72498 13.3968 9.89778 13.0944 9.99858 12.6816C10.1378 12.1152 10.2434 11.6256 10.3154 11.2032C10.3394 11.0784 10.3538 10.9488 10.3538 10.8144C10.3538 10.2672 10.0706 9.99359 9.49938 9.99359C9.16338 9.99359 8.87538 10.0944 8.63538 10.2912C8.40018 10.488 8.23218 10.7904 8.13138 11.2032C8.02098 11.6064 7.91538 12.096 7.80498 12.6816C7.78098 12.8016 7.76658 12.9264 7.76658 13.0608C7.76178 13.6176 8.05458 13.8912 8.63058 13.8912Z' fill='white'/%3e %3cpath d='M12.4463 15.1009C12.3791 15.1009 12.3311 15.0817 12.2927 15.0385C12.2639 14.9905 12.2543 14.9377 12.2639 14.8753L13.5071 9.0193C13.5167 8.9521 13.5503 8.8993 13.6079 8.8561C13.6607 8.8129 13.7183 8.7937 13.7807 8.7937H16.1759C16.8431 8.7937 17.3759 8.9329 17.7791 9.2065C18.1871 9.4849 18.3935 9.8833 18.3935 10.4065C18.3935 10.5553 18.3743 10.7137 18.3407 10.8769C18.1919 11.5681 17.8895 12.0769 17.4287 12.4081C16.9775 12.7393 16.3583 12.9025 15.5711 12.9025H14.3567L13.9439 14.8753C13.9295 14.9425 13.9007 14.9953 13.8431 15.0385C13.7903 15.0817 13.7327 15.1009 13.6703 15.1009H12.4463ZM15.6335 11.6593C15.8879 11.6593 16.1039 11.5921 16.2911 11.4529C16.4831 11.3137 16.6079 11.1169 16.6703 10.8577C16.6895 10.7569 16.6991 10.6657 16.6991 10.5889C16.6991 10.4161 16.6463 10.2817 16.5455 10.1905C16.4447 10.0945 16.2671 10.0465 16.0223 10.0465H14.9423L14.6015 11.6593H15.6335Z' fill='white'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_9390_20606'%3e %3crect width='24' height='24' fill='white'/%3e %3c/clipPath%3e %3c/defs%3e %3c/svg%3e",function:()=>C(3)},{id:4,value:R4[K].ARBITRUM,title:"Arbitrum",icon:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg id='c' data-name='Layer 3' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1500 1500'%3e %3cdefs%3e %3cstyle%3e .d %7b fill: white%3b %7d .e %7b fill: %239dcced%3b %7d .f %7b fill: %23213147%3b %7d .g %7b fill: %2312aaff%3b %7d %3c/style%3e %3c/defs%3e %3cpath class='f' d='m299.47%2c534.35v431.21c0%2c27.53%2c14.71%2c52.99%2c38.54%2c66.71l373.44%2c215.65c23.83%2c13.72%2c53.17%2c13.72%2c77%2c0l373.44-215.65c23.83-13.72%2c38.54-39.18%2c38.54-66.71v-431.21c0-27.53-14.71-52.99-38.54-66.71l-373.44-215.65c-23.83-13.72-53.17-13.72-77%2c0l-373.53%2c215.65c-23.83%2c13.72-38.45%2c39.18-38.45%2c66.71Z'/%3e %3cg%3e %3cpath class='g' d='m831.42%2c833.59l-53.26%2c146.05c-1.44%2c4.06-1.44%2c8.49%2c0%2c12.55l91.62%2c251.3%2c105.97-61.2-127.19-348.7c-2.89-8.03-14.26-8.03-17.15%2c0Z'/%3e %3cpath class='g' d='m938.21%2c587.97c-2.89-8.03-14.26-8.03-17.15%2c0l-53.26%2c146.05c-1.44%2c4.06-1.44%2c8.49%2c0%2c12.55l150.11%2c411.44%2c105.97-61.2-185.68-508.84Z'/%3e %3c/g%3e %3cpath class='e' d='m749.91%2c268.15c2.62%2c0%2c5.24.72%2c7.58%2c1.99l404.13%2c233.34c4.69%2c2.71%2c7.58%2c7.76%2c7.58%2c13.09v466.59c0%2c5.42-2.89%2c10.38-7.58%2c13.09l-404.13%2c233.34c-2.26%2c1.35-4.96%2c1.99-7.58%2c1.99s-5.24-.72-7.58-1.99l-404.13-233.16c-4.69-2.71-7.58-7.76-7.58-13.09v-466.68c0-5.42%2c2.89-10.38%2c7.58-13.09l404.13-233.34c2.35-1.35%2c4.96-2.08%2c7.58-2.08m0-68.15c-14.35%2c0-28.8%2c3.7-41.7%2c11.19l-404.04%2c233.25c-25.82%2c14.89-41.7%2c42.43-41.7%2c72.21v466.59c0%2c29.79%2c15.89%2c57.32%2c41.7%2c72.21l404.13%2c233.34c12.91%2c7.4%2c27.26%2c11.19%2c41.7%2c11.19s28.8-3.7%2c41.7-11.19l404.13-233.34c25.82-14.89%2c41.7-42.43%2c41.7-72.21v-466.59c0-29.79-15.89-57.32-41.7-72.21l-404.22-233.25c-12.91-7.49-27.35-11.19-41.7-11.19h0Z'/%3e %3cpolygon class='f' points='482.63 1158.55 519.82 1056.73 594.65 1118.92 524.69 1182.83 482.63 1158.55'/%3e %3cg%3e %3cpath class='d' d='m715.88%2c483.26h-102.45c-7.67%2c0-14.53%2c4.78-17.15%2c12.01l-219.62%2c602.08%2c105.97%2c61.2%2c241.83-663.01c2.26-5.96-2.17-12.28-8.58-12.28Z'/%3e %3cpath class='d' d='m895.15%2c483.26h-102.45c-7.67%2c0-14.53%2c4.78-17.15%2c12.01l-250.76%2c687.48%2c105.97%2c61.2%2c272.97-748.41c2.17-5.96-2.26-12.28-8.58-12.28Z'/%3e %3c/g%3e%3c/svg%3e",function:()=>C(4)},{id:5,value:R4[K].FUSE,title:"Fuse",icon:"data:image/svg+xml,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='32' height='32' rx='16' fill='%23B4F9BA'/%3e%3cpath d='M12.9317 8.48676L15.8738 6.78758C15.9575 6.73926 16.0617 6.73926 16.1454 6.78758L23.8999 11.2647C23.9836 11.3131 24.0354 11.4025 24.0361 11.4992L24.0465 14.5785C24.0465 14.6759 23.9951 14.7662 23.9104 14.8145L20.9722 16.5113C20.7919 16.616 20.5652 16.4855 20.5645 16.2768L20.5548 13.5133C20.5548 13.4167 20.5024 13.3273 20.4187 13.2789L12.9317 8.95727C12.7503 8.85253 12.7503 8.5915 12.9317 8.48676Z' fill='%23010101'/%3e%3cpath d='M11.0309 22.4345L8.0895 20.7361C8.00473 20.6878 7.95337 20.5983 7.95337 20.5008V11.5466C7.95337 11.4499 8.00473 11.3605 8.08878 11.3113L10.7507 9.76201C10.8352 9.71287 10.939 9.71287 11.023 9.76201L13.9612 11.4588C14.1415 11.5635 14.1426 11.8237 13.9619 11.9293L11.574 13.3191C11.4903 13.3674 11.4386 13.4568 11.4386 13.5543V22.2C11.4386 22.4095 11.2123 22.54 11.0309 22.4353V22.4345Z' fill='%23010101'/%3e%3cpath d='M24.0466 17.1034V20.5001C24.0466 20.5976 23.9948 20.687 23.9104 20.7354L16.1559 25.2123C16.0722 25.2608 15.9687 25.2608 15.885 25.2123L13.2127 23.6817C13.1279 23.6334 13.0758 23.5431 13.0758 23.4456V20.053C13.0758 19.8443 13.3014 19.7137 13.4824 19.8169L15.8804 21.1906C15.9641 21.2389 16.0671 21.2381 16.1508 21.1906L23.6382 16.8673C23.8192 16.7626 24.0458 16.8931 24.0458 17.1026L24.0466 17.1034Z' fill='%23010101'/%3e%3c/svg%3e",function:()=>C(5)},{id:6,value:R4[K].CYBER_CONNECT,title:"Cyber",icon:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 24 24'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: %23eaeaea%3b %7d .cls-1%2c .cls-2%2c .cls-3%2c .cls-4%2c .cls-5 %7b stroke-width: 0px%3b %7d .cls-2 %7b fill: %230c9b00%3b %7d .cls-3 %7b fill: %2307dc10%3b %7d .cls-4 %7b fill: %23b7f7b0%3b %7d .cls-5 %7b fill: none%3b %7d .cls-6 %7b clip-path: url(%23clippath)%3b %7d %3c/style%3e %3cclipPath id='clippath'%3e %3crect class='cls-5' x='.4' y='.5' width='23.2' height='23.1'/%3e %3c/clipPath%3e %3c/defs%3e %3cg class='cls-6'%3e %3cg%3e %3cpath class='cls-4' d='M12%2c7.9c2.3%2c0%2c4.1%2c1.8%2c4.1%2c4.1s-1.9%2c4.1-4.1%2c4.1-4.1-1.8-4.1-4.1%2c1.9-4.1%2c4.1-4.1ZM12%2c.5c-1.6%2c0-3.1.3-4.5.9-1.4.6-2.6%2c1.4-3.7%2c2.5-1.1%2c1.1-1.9%2c2.3-2.5%2c3.7-.6%2c1.4-.9%2c2.9-.9%2c4.5s.3%2c3.1.9%2c4.5c.6%2c1.4%2c1.4%2c2.6%2c2.5%2c3.7%2c1.1%2c1.1%2c2.3%2c1.9%2c3.7%2c2.5%2c1.4.6%2c2.9.9%2c4.5.9s3.1-.3%2c4.5-.9c1.4-.6%2c2.6-1.4%2c3.7-2.5%2c1.1-1.1%2c1.9-2.3%2c2.5-3.7.6-1.4.9-2.9.9-4.5s-.3-3.1-.9-4.5c-.6-1.4-1.4-2.6-2.5-3.7-1.1-1.1-2.3-1.9-3.7-2.5-1.4-.6-2.9-.9-4.5-.9Z'/%3e %3cpath class='cls-3' d='M12%2c7.9c2.3%2c0%2c4.1%2c1.8%2c4.1%2c4.1s-1.9%2c4.1-4.1%2c4.1-4.1-1.8-4.1-4.1%2c1.9-4.1%2c4.1-4.1ZM12%2c2.9C7%2c2.9%2c2.9%2c7%2c2.9%2c12s4.1%2c9.1%2c9.1%2c9.1%2c9.1-4.1%2c9.1-9.1S17%2c2.9%2c12%2c2.9Z'/%3e %3cpath class='cls-2' d='M12%2c7.9c2.3%2c0%2c4.1%2c1.8%2c4.1%2c4.1s-1.9%2c4.1-4.1%2c4.1-4.1-1.8-4.1-4.1%2c1.9-4.1%2c4.1-4.1ZM12%2c5.4c-3.6%2c0-6.6%2c3-6.6%2c6.6s3%2c6.6%2c6.6%2c6.6%2c6.6-3%2c6.6-6.6-3-6.6-6.6-6.6Z'/%3e %3cpath class='cls-1' d='M12%2c7.9c2.3%2c0%2c4.1%2c1.8%2c4.1%2c4.1s-1.9%2c4.1-4.1%2c4.1-4.1-1.8-4.1-4.1%2c1.9-4.1%2c4.1-4.1Z'/%3e %3c/g%3e %3c/g%3e%3c/svg%3e",function:()=>C(6)},{id:7,value:R4[K].BASE,title:"Base",icon:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24px' height='24px' viewBox='0 0 24 24' version='1.1'%3e%3cg id='surface1'%3e%3cpath style=' stroke:none%3bfill-rule:nonzero%3bfill:rgb(0%25%2c32.156863%25%2c100%25)%3bfill-opacity:1%3b' d='M 11.875 23.792969 C 18.457031 23.792969 23.792969 18.464844 23.792969 11.894531 C 23.792969 5.324219 18.457031 0 11.875 0 C 5.632812 0 0.507812 4.792969 0 10.894531 L 15.75 10.894531 L 15.75 12.894531 L 0 12.894531 C 0.507812 18.996094 5.632812 23.792969 11.875 23.792969 Z M 11.875 23.792969 '/%3e%3c/g%3e%3c/svg%3e",function:()=>C(7)},{id:8,value:R4[K].LINEA,title:"Linea",icon:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24px' height='25px' viewBox='0 0 24 24' version='1.1'%3e%3cdefs%3e%3cclipPath id='clip1'%3e %3cpath d='M 5.964844 7 L 16 7 L 16 18 L 5.964844 18 Z M 5.964844 7 '/%3e%3c/clipPath%3e%3cclipPath id='clip2'%3e %3cpath d='M 13 6 L 17.910156 6 L 17.910156 10 L 13 10 Z M 13 6 '/%3e%3c/clipPath%3e%3c/defs%3e%3cg id='surface1'%3e%3cpath style=' stroke:none%3bfill-rule:nonzero%3bfill:rgb(38.039216%25%2c87.45098%25%2c100%25)%3bfill-opacity:1%3b' d='M 0 0 L 23.929688 0 L 23.929688 23.957031 L 0 23.957031 Z M 0 0 '/%3e%3cg clip-path='url(%23clip1)' clip-rule='nonzero'%3e%3cpath style=' stroke:none%3bfill-rule:nonzero%3bfill:rgb(7.058824%25%2c7.058824%25%2c7.058824%25)%3bfill-opacity:1%3b' d='M 15.882812 18 L 5.964844 18 L 5.964844 7.949219 L 8.234375 7.949219 L 8.234375 16.050781 L 15.882812 16.050781 Z M 15.882812 18 '/%3e%3c/g%3e%3cg clip-path='url(%23clip2)' clip-rule='nonzero'%3e%3cpath style=' stroke:none%3bfill-rule:nonzero%3bfill:rgb(7.058824%25%2c7.058824%25%2c7.058824%25)%3bfill-opacity:1%3b' d='M 15.882812 9.894531 C 17.003906 9.894531 17.910156 9.023438 17.910156 7.949219 C 17.910156 6.875 17.003906 6 15.882812 6 C 14.765625 6 13.859375 6.875 13.859375 7.949219 C 13.859375 9.023438 14.765625 9.894531 15.882812 9.894531 Z M 15.882812 9.894531 '/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",function:()=>C(8)}];K!==T4.PROD&&Z.push({id:9,value:R4[K].BERACHAIN,title:"Berachain",icon:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%25' x='0' y='0' version='1.1' viewBox='0 0 315 315' xmlSpace='preserve' %3e %3cpath fill='%23FEFEFE' d='M145 316H1V1h315v315H145M84.363 116.53c-.85.43-1.7.86-2.516 1.368 0 0 .068-.051-.674.022-.994-.013-1.987-.026-3.219-.673-4.257-2.495-8.247-5.775-12.823-7.332-11.763-4.004-22.549 2.473-24.779 14.598-1.454 8.6 1.413 15.964 6.687 23.398.29.386.58.773.612 1.89-2.273 3.811-4.402 7.718-6.847 11.415-7.934 11.994-7.202 26.743 2.109 38.737 1.646 1.547 3.132 3.322 4.965 4.602 7.865 5.49 16.99 4.903 26.715 5.436 2.441.374 4.882.747 7.542 1.654.59.472 1.179.944 2.076 2.067 5.36 3.016 10.358 2.722 14.806-1.647 0 0 .058.086.825.036 2.453-.82 4.905-1.639 8.2-2.416 3.97-.16 7.95-.195 11.91-.503 11.735-.912 19.64-6.893 23.98-18.586 2.843-7.565 3.971-15.155.283-23.532-1.71-2.432-3.422-4.863-5.16-7.999-1.681-4.176-6.968-7.39-2.941-13.325 1.066-2.128 2.132-4.256 3.726-6.942.61-2.059 1.388-4.084 1.804-6.182 2.913-14.676-9.118-26.793-23.48-23.1-4.575 1.177-8.586 4.553-13.51 7.253-1.179.244-2.359.49-3.957.341-.566-.032-1.131-.065-2.172-.39-.537.001-1.074.002-2.439-.322-2.367-.008-4.735-.015-7.916-.164-1.075.179-2.15.358-3.807.296m90.006 24.629c-.26.508-.52 1.015-1.339 1.919-.966 2.655-1.933 5.31-3.114 8.767.12 5.69.239 11.381.587 17.86 1.546 7.038 5.417 12.033 12.511 15.084.021 1.736.042 3.472-.51 5.68.506 2.185-3.37 5.274 1.442 7.017 0 0 .052.435-.566.587a15.03 15.03 0 01-2.948 1.024c-7.45 3.369-8.75 10.81-11.155 17.357-1.165 3.172 1.703 5.544 5.444 4.791l4.107.772c0-2.201 0-3.647.14-5.725l2.613-7.545 1.424.289c.648 3.542.458 7.62 5.583 7.913 5.608.32 5.486-4.248 6.321-7.734 1.914 1.55 3.508 2.84 5.01 5.043l-1.505 7.382h11.089c-2.671-9.09-4.152-18.174-14.188-23.096-.156-4.863-.313-9.726.192-14.834 3.264-3.122 6.53-6.244 10.331-9.83a537.88 537.88 0 012.232-7.6c.375-1.773.75-3.546 1.433-5.926-.506-2.45-1.012-4.902-1.484-8.124-1.537-5.581-3.353-11.17-8.492-14.433-3.386-2.15-7.06-3.49-4.218-8.546.237-.421-.707-1.506-1.27-3.133-.938-3.95.805-5.91 4.206-8.116 2.958-1.92 4.58-5.897 7.437-9.265.749-3.856 1.498-7.711 1.344-11.647h-8.89c0 2.994 0 5.436-.713 8.202-.993.348-1.985.695-3.149.37-1.522-3.55-4.292-4.308-7.618-3.061-2.882 1.08-4.615 3.053-4.002 6.62-.884-1.2-1.57-2.647-2.694-3.553-2.566-2.07.395-8.487-6.327-8.063-1.317.695-3.607 1.239-3.743 2.117-.26 1.67.712 3.533 1.193 5.815.047.16.095.32-.363.75.414.583.829 1.166 1.22 2.427.036.447.072.894.046 2.05 3.67 3.099 7.338 6.197 10.93 10.217.08 4.375.159 8.75-.085 13.665-.994.73-1.989 1.46-3.397 2.25 0 0-.363.207-1.008.337-1.176 1.227-2.352 2.455-4.057 3.926m85.943-31.226c-2.738-2.093-5.476-4.185-8.318-7.098l-.411-5.866c-2.782.755-5.181 1.406-8.254 1.837l-2.738-1.989c-.24 2.45-.421 4.306-1.289 6.307-7.376 3.242-11.546 8.827-12.9 17.35a441.308 441.308 0 00-.331 4.553c-.107 6.106-.702 12.318 3.736 17.998l1.539 4.665c.558-.262 1.117-.523 2.29-.407 6.598 6.115 8.413 12.816 4.633 19.767-4.332 1.998-7.791 4.724-9.052 9.966-4.21 8.192-3.763 16.75-1.898 25.387.066.306 1.1.402 1.641 1.28-.642 4.001.299 6.943 5.171 8.07l7.824 9.306c.037-.133.296-1.067.83-1.415 1.797.699 3.593 1.397 6.193 2.217 5.52.137 1.972-3.964 3.268-6.57 5.926-1.497 9.032-5.717 11.382-11.709.788-3.528 1.576-7.057 2.71-11.15-.817-3.785-1.634-7.57-2.415-11.93-.543-.748-1.087-1.496-1.62-3.044-1.52-4.7-4.672-7.818-9.788-10.052-.178-2.136-.356-4.273-.495-6.899 0 0-.012-.49.494-.988-.157-2.484-.313-4.968.183-7.694 5.342-2.747 9.548-6.417 11.092-13.171.742-3.218 1.483-6.435 2.575-10.221-1.369-5.116-2.737-10.233-4.1-15.7-.23-.258-.46-.516-.897-1.312-.233-.3-.467-.601-1.055-1.488z' opacity='1' %3e%3c/path%3e %3cpath fill='%237E542D' d='M99 117.013c.566.032 1.131.065 1.873.67.157.825.137 1.076.158 1.68 4.02 3.107 8 5.861 11.975 8.625-.004.01.016 0 .05.373 7.278 17.106 2.974 29.288-14.414 34.683-4.675 3.133-9.124 3.184-13.85.934-1.427-.68-3.181-.673-4.988-1.256-3.43-1.945-6.943-3.237-9.801-5.395-2.658-2.008-6.178-4.7-6.61-7.508-1.733-11.247-1.516-17.81 9.573-25.227 3.1-2.073 5.972-4.487 8.949-6.745 0 0-.068.051.255.042.775.014 1.228.04 2.068.078 1.84-.52 3.292-1.056 4.745-1.591 2.368.007 4.736.014 7.61.408 1.14.333 1.774.281 2.407.229m14 23.622c.816-6.204-4.521-8.55-7.88-11.828-7.703-7.52-17.867-7.663-26.444-1.007-1.569 1.217-3.135 2.438-4.727 3.626-8.827 6.583-8.13 20.876 1.429 26.088 2.421 1.32 5.418 1.543 7.959 2.693 13.403 6.068 29.043-3.748 29.662-19.572z' opacity='1' %3e%3c/path%3e %3cpath fill='%23704A25' d='M81.544 117.884c-2.606 2.22-5.478 4.635-8.578 6.708-11.089 7.417-11.306 13.98-9.574 25.227.433 2.808 3.953 5.5 6.61 7.508 2.859 2.158 6.372 3.45 9.956 5.703 6.085 4.984 6.16 5.033 2.252 11.154-2.22 3.476-3.025 6.337 1.809 8.16-1.541 1.482-3.008 2.568-4.239 3.876-1.715 1.821-3.254 3.809-5.185 5.757-.738.085-1.159.138-1.696-.133.81-1.935 1.385-3.99 2.738-5.067 2.96-2.356 4.124-4.621 1.36-8.189.198-4.263.389-8.124.562-11.621-3.247-2.477-6.219-4.278-9.915-.919-2.635.126-4.984.699-7.087.21-12.591-2.92-18.042 6.266-16.878 15.52.696 5.538 5.324 7.25 6.953 11.22a108.743 108.743 0 01-9.642-8.351c-.336-1.448-.669-2.545-.72-3.893.413-1.214.77-2.208.645-3.137-1.363-10.11 8.394-18.392 18.184-15.517 2.107.619 4.412.562 6.626.817l.527-1.557c-1.664-1.963-3.57-3.772-4.93-5.927-1.678-2.662-2.9-5.61-4.319-8.768 0-.776 0-1.22.28-1.918 1.35-4.99 1.468-9.879 5.729-13.608 2.637-2.307 4.03-6.036 6.22-9.137.24-.01.718-.014 1.077-.014 1.14-.653 1.922-1.307 3.024-1.995.832-.397 1.343-.76 2.13-1.287 1.095-.385 1.912-.605 2.73-.825.993.013 1.986.026 3.35.003z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M100.99 119.01c.02-.25.04-.502.093-1.13 1.212-.622 2.392-.867 4.21-.852 1.298.45 1.956.642 2.674 1.151 1.06.496 2.062.673 3.18 1.114.697.745 1.276 1.226 2 1.99 1.333 1.143 2.522 2.001 3.914 3.131 3.187 3.56 6.17 6.847 8.992 10.52-2.015 8.216-3.668 16.094-8.339 22.94-.7 1.026-.856 3.59-.204 4.108 1.074.853 3.155 1.134 4.564.749 5.24-1.432 10.368-3.34 16.031-1.514.311.494.575.681 1.144.948.408.722.573 1.277.573 1.922-.052.366.061.64.176.914.002-.001 0 .002.042.322.679.775 1.315 1.229 1.952 1.933 0 .25.005.75.006 1.213-.334 6.149-.668 11.834-1.006 17.77-.007.419-.01.586-.33.781-1.101.346-1.886.664-2.66.562.34-3.52.994-6.629.923-9.72-.117-5.09-4.521-10.427-8.448-10.86-5.874-.647-11.746-1.315-17.969-2.012-4.038-1.948-6.049.185-7.312 3.174-.757 1.793-.818 3.878-1.548 5.794-4.029-3.745-1.31-11.527 4.532-12.702 4.105-.826 6.516-3.105 8.24-6.398 3.638-6.946 3.979-14.461 3.345-22.095-.356-4.289-2.921-5.407-6.743-4.774 0 0-.02.01-.018-.387-.362-1.393-.44-2.917-1.139-3.299-3.536-1.927-7.234-3.558-10.875-5.292z' opacity='1' %3e%3c/path%3e %3cpath fill='%23BE9E6C' d='M83.903 213.061c-.59-.472-1.179-.944-1.765-1.99-2.694-1.41-5.39-2.245-8.325-3.173-.43-.369-.622-.645-.703-1.178.373-.752.636-1.246 1.302-1.728 4.513 1.322 8.479 1.861 11.937-1.928 4.477 5.269 7.375.949 10.618-.867 1.46 3.46 3.863 4.372 6.95 3.302 2.998-1.038 4.826-2.826 5.21-6.42.618-5.806-3.243-5.648-7.128-6.327-1.781-1.43-3.383-2.57-5.028-4.088-.662-2.842-1.283-5.307-1.598-7.627 4.32 3.18 8.337 6.213 12.484 9.427.33.407.57.574 1.065.97 1.344 2.43 2.477 4.57 3.49 7.092-.563 2.41-1.006 4.437-1.63 6.737-1.414 1.094-2.647 1.915-4.262 2.722-2.736 1.378-5.09 2.772-7.445 4.166 0 0-.058-.086-.418-.106-5.158.325-9.956.67-14.754 1.016z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593C21' d='M39.989 181.004c.332 1.098.665 2.195.74 3.853 1.917 3.754 4.093 6.947 6.27 10.142.001.001.004.003.037.296 2.337 1.26 5.037 1.754 6.864 3.288 4.628 3.887 9.683 3.426 15.013 2.76.1.752.143 1.184-.128 1.84-6.18 3.813-11.684.297-17.25-.8-2.99-.59-5.808-2.045-8.704-3.11-9.229-11.314-9.961-26.063-2.027-38.057 2.445-3.697 4.574-7.604 7.265-11.597.589 2.338.76 4.858.632 7.4-.767.345-1.235.668-1.984 1.118-1.093 1.04-1.906 1.95-2.717 2.862l-.301.151c-1.1 1.718-1.898 3.285-2.737 5.218-3.446 4.92-3.925 9.666-.973 14.636z' opacity='1' %3e%3c/path%3e %3cpath fill='%23906E4F' d='M107.908 117.86c-.659-.19-1.317-.382-2.287-.997 3.957-2.794 7.968-6.17 12.544-7.347 14.361-3.693 26.392 8.424 23.48 23.1-.417 2.098-1.194 4.123-2.291 6.142-.818-1.609-1.546-3.212-1.412-4.74.523-5.97 1.533-11.974-4.748-16.35-3.159-1.84-6.09-3.384-9.154-5.251-1.833-.137-3.535.048-5.621.29-3.76 1.755-7.135 3.454-10.511 5.154z' opacity='1' %3e%3c/path%3e %3cpath fill='%233A3A3B' d='M200.01 213.346l-5.1-4.131c-.836 3.486-.714 8.054-6.322 7.734-5.125-.293-4.935-4.371-5.583-7.913l-1.424-.29c-.871 2.516-1.742 5.031-3 7.82-1.29-.978-2.195-2.227-3.102-3.81.918-1.791 1.838-3.249 3.112-4.719 1.006-.778 1.66-1.543 2.508-2.502.75-.645 1.304-1.096 2.173-1.557.795-.369 1.273-.728 1.986-1.051.235.036.703.118.748.415.707.099 1.37-.099 2.239-.432.448-.366.617-.643 1.041-.942.771.044 1.212.064 1.679.31.027.226.086.679.066 1.107-.716 2.243-1.555 4.018-2.06 5.884-.387 1.432-.353 2.979-.506 4.475l1.805.22c1.244-2.98 2.488-5.958 3.973-9.023.69-.325 1.137-.564 1.769-.511 1.455 3.166 2.727 6.041 3.999 8.916z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M251.98 160.997c.179 2.136.357 4.273.795 6.988.244 1.014.228 1.447-.153 1.902-.852.05-1.34.078-2.15.057-.99-.896-1.657-1.742-2.563-2.888l-2.202 2.995c-1.99 0-3.442 0-5.189-.14-.711-1.067-1.129-1.994-1.546-2.92 3.077-6.892 1.262-13.593-5.517-20.21 1.462-1.867 3.105-3.231 5.054-4.622.714-.065 1.122-.104 1.784-.041.927.346 1.6.59 2.378 1.287.105 6.516.105 12.58.105 18.644.802-.07 1.95-.173 3.493-.223 2.167-.242 3.94-.536 5.711-.83z' opacity='1' %3e%3c/path%3e %3cpath fill='%237A522B' d='M133.422 117.96c6.053 4.084 5.043 10.089 4.52 16.058-.134 1.528.594 3.131 1.148 5.02-.844 2.446-1.91 4.574-3.627 6.85-1.898-.224-3.146-.598-4.405-1.352-.04-1.397-.068-2.415.178-3.644a81.102 81.102 0 003.683-7.28c.035-.752.047-1.183.33-1.84.9-5.748-1.98-9.082-6.571-11.48-5.4-2.82-10.617-3.248-15.675.708-.58-.48-1.16-.962-1.639-1.996 3.184-1.37 6.27-2.85 9.353-2.843 4.236.01 8.47 1.146 12.705 1.8m3.058 22.421l.166-.648c-.134.138-.268.277-.166.648z' opacity='1' %3e%3c/path%3e %3cpath fill='%23906E4F' d='M78.073 117.564c-.698.537-1.515.757-2.93 1.008-8.766-7.283-15.88-8.004-26.442-2.522-.756.705-1.18 1.38-1.636 2.367-.06.729-.087 1.146-.092 1.575.022.013.004-.035-.235.058-.467.346-.695.599-1.222 1.06-1.026 3.16-2.116 6.08-2.369 9.07-.216 2.565.527 5.21.566 7.557-1.17-4.797-2.06-9.332-2.95-13.868 1.82-11.481 12.605-17.958 24.368-13.954 4.576 1.557 8.566 4.837 12.942 7.649z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A7B0B9' d='M199.965 213.802c-1.226-3.33-2.498-6.206-3.916-9.801-.113-2.148-.082-3.576-.05-5.004 9.352 4.469 10.833 13.552 13.504 22.643h-11.09c.505-2.472 1.005-4.927 1.552-7.838z' opacity='1' %3e%3c/path%3e %3cpath fill='%23422B19' d='M106.902 208c1.233-.822 2.466-1.643 4.261-2.696 8.64.732 16.219-.55 22.9-5.445 1.47-1.076 2.633-2.568 4.156-3.974.491-.303.675-.563.775-.886.005.001 0-.011.317-.176 1.591-1.351 2.866-2.538 4.141-3.725-3.86 11.191-11.765 17.172-23.5 18.084-3.96.308-7.94.343-12.327.2-.518-.662-.62-1.022-.723-1.383zM42.872 199.613c2.855.725 5.673 2.18 8.663 2.77 5.566 1.097 11.07 4.613 17.517.972 1.703 1.172 2.825 2.397 3.947 3.622.192.276.384.552.765 1.2.14.743.094 1.113.047 1.484-8.944-.203-18.068.385-25.933-5.106-1.833-1.28-3.32-3.055-5.006-4.942z' opacity='1' %3e%3c/path%3e %3cpath fill='%23624123' d='M49 156.997c-.171-2.52-.342-5.04-.802-7.743-.578-.57-.869-.957-1.112-1.984.308-2.19.568-3.738 1.203-5.285 1.486-.997 2.597-1.994 3.864-3.289 2.045-2.786 3.936-5.274 5.828-7.377-1.452 4.735-4.663 8.955-.978 13.683 0 .443 0 .887-.317 1.832-2.607 3.848-2.243 9.22-7.686 10.163z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A7B0B9' d='M183.154 134.106c-.08-4.375-.158-8.75-.204-13.612.033-.488.086-.5.478-.48.83 2.668 1.269 5.318 1.658 8.37.162 1.782.373 3.162.583 4.542l1.537.088c.514-1.703 1.028-3.406 1.617-5.561-.595-6.165-1.265-11.877-1.859-17.923 2.97-3.174 3.089.19 4.088 1.842.522 1.502 1.092 2.642 1.694 4.2-.095 3.723-.222 7.03-.476 10.77-.57 2.668-1.011 4.904-1.696 7-.717.065-1.192.273-1.949.638-2.012.147-3.742.136-5.471.126z' opacity='1' %3e%3c/path%3e %3cpath fill='%23D8DDE0' d='M178.237 208.05c-.92 1.457-1.84 2.915-3.176 4.808-.625 2.98-.836 5.524-1.047 8.069-3.034 1.071-5.902-1.3-4.737-4.473 2.404-6.547 3.706-13.988 11.624-17.043.997 1.735 1.526 3.156 2.055 4.577-.553.45-1.107.902-2.191 1.56-1.197.97-1.862 1.736-2.528 2.502z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A7B0B9' d='M174.03 98.184c6.325-1.003 3.364 5.414 5.93 7.484 1.123.906 1.81 2.352 3.286 3.584.914.881 1.236 1.73 1.577 2.972-.635 1.526-1.288 2.661-2.278 3.824-1.762-1.134-3.188-2.296-4.592-3.795-.483-.462-.988-.587-1.823-.82-1.58-.532-2.83-.955-4.081-1.378a21.372 21.372 0 01-.076-1.97c-.228-1.11-.488-1.59-.748-2.069-.047-.16-.095-.32.187-.7 1.47 1 2.608 2.22 4.12 3.84-.563-4.105-1.032-7.538-1.502-10.972z' opacity='1' %3e%3c/path%3e %3cpath fill='%23E3E7EB' d='M238.62 167.02c.77.897 1.187 1.824 1.842 3.224-2.218 3.263-4.673 6.052-7.504 8.943-.864 2.657-1.353 5.213-1.934 8.176-.406 4.116-.72 7.826-1.369 11.351-.757-2.07-1.65-3.993-1.513-5.837.396-5.315 1.209-10.6 1.858-15.895.478-5.208 3.937-7.934 8.62-9.962z' opacity='1' %3e%3c/path%3e %3cpath fill='%23ABB0B6' d='M183.998 197.921s-.052-.435-.023-.998c.27-1.476.512-2.388.752-3.3 4.197 1.478 3.596-2.552 3.833-4.081.622-4.02.596-8.191.288-12.261-.064-.839-2.47-1.5-3.813-2.616 1.647-3.75 3.481-3.62 5.089-.433 1.09 2.163 1.8 4.518 2.71 7.039.032 1.072.033 1.892-.22 3.005-.254 3.942-.254 7.592-.254 12.073l-1.973-2.845c-1.87 1.937-3.652 3.784-5.66 5.488-.395-.453-.562-.762-.73-1.07z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M184.953 199.135l5.434-5.631 1.973 2.845c0-4.48 0-8.13.585-12.087 1.023-.306 1.462-.306 1.9-.307.157 4.863.314 9.726.812 14.816.31 1.654.279 3.082.21 4.938-.487.668-.935.907-1.767.943-1.272-.7-2.16-1.197-3.049-1.695 0 0-.06-.453-.067-1.03-.354-1.197-.701-1.819-1.048-2.44l-.98 2.457c-.094.323-.263.6-1.058.95-1.013.13-1.475.14-1.937.151 0 0-.468-.082-.698-.492-.257-1.412-.283-2.415-.31-3.418z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M192.398 125.909c.126-3.307.253-6.614.454-10.715.087-1.57.099-2.347.146-3.43.342-1.06.65-1.813 1.344-2.36 1.011-.298 1.637-.803 2.581-1.25-.125 1.633-.569 3.21-1.013 4.785l.808.897c2.133-1.92 4.266-3.84 6.688-5.759.737.32 1.184.64 1.63.96-2.211 3.068-3.833 7.045-6.79 8.965-3.402 2.207-5.145 4.166-4.373 8.45-.603.042-1.039-.25-1.475-.543z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M192.27 126.342c.564-.14 1 .152 1.687.536.645.867 1.589 1.952 1.352 2.373-2.842 5.055.832 6.396 4.218 8.546 5.14 3.263 6.955 8.852 8.107 14.823-1.121.384-1.857.378-2.665.15-.072-.221-.198-.67-.054-.966-.005-5.813-3.208-9.56-7.328-12.598-.637-.469-2.262.404-3.803.695-1.115.036-1.856.033-2.642-.203-.043-.234-.156-.696-.136-.967.014-.453.008-.634.004-1.193-.063-1.604-.128-2.83-.192-4.056.44-2.236.882-4.472 1.452-7.14z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M229.99 198.898c.315-3.71.628-7.419 1.38-11.52 1.128-.357 1.818-.32 2.534.025.029.72.032 1.133-.25 1.598-.096.719.093 1.385.291 2.37.004.74 0 1.164-.342 1.664-1.179 2.478.07 6.743 2.313 9.225.12.767.172 1.208-.14 1.682-4.589.354-.95 3.18-1.781 5.002-.008 1.001-.047 1.573-.086 2.145-4.65-.463-5.591-3.405-4.91-8.103.357-1.827.674-2.958.992-4.088z' opacity='1' %3e%3c/path%3e %3cpath fill='%23E3E7EB' d='M185.051 175.038c1.327.743 3.733 1.404 3.797 2.243.308 4.07.334 8.241-.288 12.26-.237 1.53.364 5.56-3.833 4.082-.24.912-.481 1.824-.792 3.084-4.8-.964-.925-4.053-.82-6.368 1.038-.403 1.845-.687 1.838-.947-.12-4.24-.342-8.475-.562-12.792-.022-.08-.083-.235.023-.468.283-.52.46-.807.637-1.094z' opacity='1' %3e%3c/path%3e %3cpath fill='%23555E67' d='M193.956 109.198c-.308.753-.616 1.507-1.187 2.423-.733-.095-1.201-.353-1.67-.61-1.046-1.29-1.166-4.655-4.467-1.435-.881 1.005-1.355 1.63-1.828 2.256-.322-.85-.644-1.699-1.226-2.672-1.537-3.506.196-5.48 3.078-6.559 3.326-1.247 6.096-.489 7.628 3.607-.04.852.005 1.145.014 1.663a8.932 8.932 0 00-.342 1.327z' opacity='1' %3e%3c/path%3e %3cpath fill='%23C8CACD' d='M248.174 221.74c-1.796-.699-3.592-1.397-5.583-2.763-.083-1.149.028-1.63.412-1.958.626.902.978 1.648 1.331 2.395l1.273-.79v-8.687c-1.23.504-2.092.858-3.154.828-.186-1.822-.174-3.259.09-4.88 1.6-.952 2.95-1.72 4.343-2.107 1.391 6.176 3.206 11.937 1.288 17.962z' opacity='1' %3e%3c/path%3e %3cpath fill='%239CA5AC' d='M262.293 178.257c.543.749 1.087 1.497 1.335 2.823-.4 2.384-.71 4.206-.57 5.993.272 3.473-1.367 4.445-4.4 3.446-.901-5.75-1.872-11.083-2.468-16.415 2.285 1.385 4.194 2.769 6.103 4.153z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M263.096 139.014c-.851 6.394-5.057 10.064-10.964 12.867-.564.055-1.057.086-1.124-.226-.149-.728-.23-1.145-.19-1.927.477-1.823.833-3.28 1.568-4.65 3.068-2.009 5.757-4.108 8.82-6.152.88.065 1.385.077 1.89.088z' opacity='1' %3e%3c/path%3e %3cpath fill='%23868485' d='M244.002 99.026l7.58-2.057c.148 2.105.28 3.986.405 6.639-.95 1.293-1.895 1.813-3.126 2.036-2.791-.383-5.294-.468-7.822-.773-.025-.22-.055-.66.215-.875 1.096-1.8 1.922-3.385 2.748-4.97z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593C21' d='M143.692 190.847c-1.515 1.438-2.79 2.625-4.379 3.602-.31-.958-.306-1.706-.04-2.67.745-1.738 1.226-3.262 1.707-4.786.002-.168.005-.335.367-.81 1.412-2.868 3.084-5.362 3.357-8 .343-3.31-.46-6.74-.691-10.188.078-.071.237-.21.237-.21 3.653 7.656 2.525 15.246-.558 23.062z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M248.576 221.8c1.516-6.085-.299-11.846-1.289-18.13 1.46-.563 2.562-.634 3.79-.416.181.707.236 1.124.222 1.868.514.849 1.097 1.372 1.786 2.268a17.616 17.616 0 01-.075 2.657c-.014-.03.05-.046-.132.051-.408.256-.622.43-.954.95-.132 1.821-.133 3.31-.134 4.798-.84 2.05 2.707 6.152-3.214 5.955z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M242.29 206.069c-.011 1.437-.023 2.874.09 5.1.2 2.423.275 4.06.35 5.696a9.83 9.83 0 00-.277 1.819 21.436 21.436 0 01-.498 2.375c-2.639-3.138-5.231-6.222-7.935-9.638-.072-.904-.033-1.476.27-2.306.888-.035 1.513.189 2.258.728 1.047.675 1.973 1.034 2.899 1.393l.444-.966c-.898-.493-1.796-.986-2.71-1.622-.015-.143.003-.431.314-.501.715-.705 1.118-1.34 1.767-2.017.246-.043.737-.13 1.119-.12.89.025 1.4.042 1.91.059z' opacity='1' %3e%3c/path%3e %3cpath fill='%23D8DDE0' d='M194.432 107.63c-.143-.277-.189-.57-.063-1.086 1.069-.557 2.061-.904 3.805-1.435 1.342-1.882 1.931-3.582 2.718-5.85.79.183 1.958.454 3.09 1.132-.313 2.834-.59 5.26-.865 7.686l-6.4 5.759c-.268-.3-.538-.598-.807-.897.444-1.576.888-3.152.47-4.907a686.272 686.272 0 00-1.948-.403z' opacity='1' %3e%3c/path%3e %3cpath fill='%23898D90' d='M240.984 104.21s.03.442.043 1.048c-.056 1.905-.125 3.204-.491 4.56-.703.085-1.108.11-1.529-.12-.167-.475-.318-.693-.469-.912-.127.468-.254.936-.793 1.34-.628-.236-.845-.41-1.027-.903-1.057-.152-2.835-.332-3.127.243-1.728 3.405-3.112 6.984-4.946 10.555-.781.03-1.23.007-1.678-.014.789-8.056 4.959-13.64 12.808-16.724.718.416.964.672 1.209.928z' opacity='1' %3e%3c/path%3e %3cpath fill='%23484748' d='M182.993 183.92c-7.073-2.182-10.944-7.177-12.163-14.568.624-.366.92-.378 1.45-.211.697.53 1.16.88 1.54 1.603.912 1.433 1.908 2.495 2.953 3.517.05-.04-.067-.09-.241.167-.093.447-.012.638.077 1.16.797 1.037 1.585 1.744 2.58 2.693 1.214.494 2.223.747 3.284 1.176.052.175.167.522.178.92.12 1.446.232 2.495.342 3.543z' opacity='1' %3e%3c/path%3e %3cpath fill='%23C8CACD' d='M238.203 142.185c-1.643 1.365-3.286 2.73-5.055 4.407-.685.575-1.244.836-1.802 1.098-.513-1.555-1.026-3.11-1.25-5.205.143-1.84-.002-3.138.142-4.67.431-.95.572-1.668.598-2.602-.114-.217.079-.668.321-.452.995.6 1.746.983 2.57 1.706.788 1.376 1.503 2.414 2.278 3.804.773.873 1.486 1.393 2.198 1.914z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M252.018 215.569c-.227-1.211-.226-2.7.173-4.477.556-.557.713-.824.87-1.091 0 0-.065.015.313.15 2.48-2.286 4.581-4.704 7.025-7.13 1.117.35 1.892.706 2.667 1.062-1.788 5.491-4.894 9.71-11.048 11.486z' opacity='1' %3e%3c/path%3e %3cpath fill='%238B5E35' d='M47.915 141.984c-.26 1.548-.521 3.097-.929 4.936-5.22-6.443-8.088-13.807-6.429-22.729 1.096 4.214 1.987 8.749 3.489 13.592 1.697 1.606 2.783 2.903 3.869 4.201z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M229.655 198.714c.018 1.314-.299 2.445-.635 3.93-.6.16-1.635.065-1.7-.24-1.866-8.639-2.313-17.196 2.289-25.405-.258 5.279-1.07 10.563-1.467 15.878-.138 1.844.756 3.766 1.513 5.837z' opacity='1' %3e%3c/path%3e %3cpath fill='%23484748' d='M195.176 183.832c-.77.124-1.208.124-1.977.138-.332-.807-.333-1.627-.04-2.828 1.146-1.325 1.997-2.27 3.197-3.162 2.254-1.786 4.159-3.623 6.476-5.313 1.097.657 1.783 1.167 2.469 1.677-3.265 3.122-6.53 6.244-10.125 9.488z' opacity='1' %3e%3c/path%3e %3cpath fill='%23624123' d='M131.068 144.916c1.249.374 2.497.748 4.14 1.16-3.121 5.599 2.166 8.813 3.838 13.712-.02 1.219-.03 1.714-.041 2.21-.325-.1-.589-.287-1.036-1.094-3.528-5.227-8.52-9.185-6.9-15.988z' opacity='1' %3e%3c/path%3e %3cpath fill='%23868485' d='M229.948 138.047c.146 1.3.29 2.599.189 4.143-4.768-4.845-4.173-11.057-3.698-17.7.836-.546 1.303-.554 1.758-.124.406 3.09.826 5.741 1.325 8.677.539.684.997 1.083 1.439 1.486a.49.49 0 00-.046.016s-.193.45-.41.683c-.33 1.095-.443 1.957-.557 2.82z' opacity='1' %3e%3c/path%3e %3cpath fill='%233A3A3B' d='M172.017 110.41c1.282.068 2.533.491 4.279 1.305.875.552 1.255.713 1.635.875a389.789 389.789 0 014.674 3.854c.408 1.428.42 2.488.431 3.55 0 0-.053.012-.048.04-3.664-3.073-7.333-6.171-10.97-9.625z' opacity='1' %3e%3c/path%3e %3cpath fill='%23898D90' d='M258.586 190.937c3.105.58 4.744-.391 4.473-3.864-.14-1.787.169-3.61.552-5.705 1.093 3.494 1.91 7.28 2.128 11.343-2.147 1.095-3.696 1.912-5.523 2.553a23.699 23.699 0 01-2.205-3.697c.137-.419.32-.568.575-.63zM262.258 113.084c1.369 5.116 2.737 10.233 3.542 15.63-1.34.253-2.116.225-2.865-.134-.51-1.143-1.046-1.955-1.617-3.049.013-.655.062-1.029.454-1.533.39-3.725.438-7.32.486-10.914z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M260.493 195.44c1.55-.817 3.1-1.634 5.074-2.447-.363 3.532-1.15 7.06-2.22 10.84-1.056-.106-1.831-.462-2.948-1.203-.196-2.653-.05-4.922.094-7.19z' opacity='1' %3e%3c/path%3e %3cpath fill='%23CDD4D8' d='M173.832 97.895c.668 3.723 1.137 7.156 1.7 11.262-1.512-1.62-2.65-2.842-4.13-4.091-.8-1.811-1.772-3.673-1.512-5.344.136-.878 2.426-1.422 3.942-1.827z' opacity='1' %3e%3c/path%3e %3cpath fill='%23898D90' d='M203.406 108.077c-.013-2.426.263-4.852.93-7.711 1.458-1.355 2.526-2.275 3.593-3.195-.75 3.855-1.498 7.71-2.57 11.716-.77-.17-1.216-.49-1.953-.81z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A7B0B9' d='M250.696 150.093c.081.417.163.834.016 1.772.049 3.111-4.25 6.614 1.296 8.151 0 0 .012.491-.008.736-1.792.538-3.564.832-5.685.686a58.813 58.813 0 012.649-11.477l1.732.132z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M262.908 128.911c.776.028 1.552.056 2.717.087-.353 3.221-1.094 6.438-2.182 9.836-.852.169-1.357.157-2.1-.232.246-1.805.73-3.23 1.216-4.656-2.17-.672-4.338-1.343-6.483-2.241.023-.226.13-.669.439-.814 1.739-.689 3.169-1.233 4.898-1.81l1.495-.17z' opacity='1' %3e%3c/path%3e %3cpath fill='%23868485' d='M262.298 177.858c-1.914-.985-3.823-2.37-6.077-3.783-.344-.03-.263-.004-.27-.348-.992-1.516-1.978-2.688-2.964-3.86.016-.435.032-.868.054-1.628 4.59 1.401 7.742 4.52 9.257 9.619z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A7B0B9' d='M262.26 112.908c-.05 3.77-.097 7.365-.643 10.749-1.473-1.67-2.447-3.13-3.482-4.962-.098-1.125-.136-1.878-.047-2.919.702-1.372 1.279-2.458 2.264-3.6.68-.111.95-.164 1.221-.216.23.257.46.515.688.948z' opacity='1' %3e%3c/path%3e %3cpath fill='%23898D90' d='M172.045 168.961c-.296.013-.591.025-1.329-.003-.561-5.732-.68-11.422-.478-17.39.569-.044.742.235.831 1.013.32 5.762.648 11.071.976 16.38z' opacity='1' %3e%3c/path%3e %3cpath fill='%23555E67' d='M207.477 97.13c-.615.961-1.683 1.881-3.104 2.828a49.109 49.109 0 01-3.48-.699c-.788 2.268-1.377 3.968-2.362 5.688-.395-2.421-.395-4.863-.395-7.857 3.07 0 5.98 0 9.341.04z' opacity='1' %3e%3c/path%3e %3cpath fill='%23868485' d='M205.04 152.991c.737.007 1.473.013 2.577.015.874 2.446 1.38 4.897 1.296 7.654-2.033.316-3.475.326-4.773.037.397-2.769.649-5.237.9-7.706z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M249.148 105.942c.944-.52 1.888-1.041 2.891-1.924 2.797 1.73 5.535 3.822 8.258 6.329-.016.414-.357.707-.688.63-2.302-1.556-4.274-3.034-7.117-5.165.281 2.623.415 3.871.292 5.188-.433.085-.61.1-.899-.196-.988-1.83-1.862-3.346-2.737-4.862z' opacity='1' %3e%3c/path%3e %3cpath fill='%239D896C' d='M84.057 213.386c4.644-.67 9.442-1.016 14.652-1.336-4.14 4.384-9.137 4.678-14.652 1.336z' opacity='1' %3e%3c/path%3e %3cpath fill='%23ABB0B6' d='M183.004 184.355c-.121-1.483-.232-2.532-.114-4.046-.004-.652-.237-.84-.47-1.028-1.008-.253-2.017-.506-3.198-1.298 1.615-.794 3.403-1.049 5.19-1.303.2 4.237.421 8.473.54 12.712.008.26-.799.544-1.55.711-.346-1.842-.367-3.578-.398-5.748z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M174.368 221.086c-.143-2.704.068-5.248.695-7.895 1.323 1.148 2.228 2.397 3.45 3.69.315 1.489.315 2.935.315 5.136-1.575-.296-2.84-.534-4.46-.93zM182.992 134.376c1.891-.26 3.621-.25 5.67-.013.311.99.305 1.753.059 2.707-.413.764-.584 1.337-1.017 2.024-1.73.382-3.201.651-4.727.581-.814-.896-1.573-1.453-2.53-2.217l-.6-.621c.995-.73 1.99-1.461 3.145-2.461z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M205.57 174.112c-.955-.278-1.64-.788-2.683-1.794.146-2.098.648-3.7 1.528-5.302l3.397.006c-.658 2.286-1.316 4.572-2.242 7.09z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M207.941 166.651c-1.136.37-2.142.367-3.59.01-.496-1.313-.55-2.27-.523-3.631.11-.947.14-1.491.17-2.033.002.003-.003 0-.003 0 1.443-.011 2.885-.021 4.763-.033.061 1.77-.313 3.543-.817 5.687z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M252.261 159.767c-5.8-1.288-1.5-4.79-1.482-7.59.296-.21.79-.241 1.027-.175.395 2.55.551 5.033.455 7.765z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M241.254 103.996c-.515-.041-.76-.297-1.136-.785.052-2.088.234-3.945.473-6.394 1.139.827 1.939 1.408 3.075 2.1-.49 1.694-1.316 3.279-2.412 5.079z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593C21' d='M139.249 162.165c-.233-.663-.222-1.158-.19-2.025 1.734 2.06 3.445 4.492 5.174 7.285.017.36-.142.499-.543.55-.831.044-1.262.037-1.693.03 0 0-.004-.5-.043-1.07-.677-1.025-1.317-1.478-1.956-1.932 0 0 .002-.003-.001-.254l-.01-.753c-.165-.554-.33-1.109-.738-1.83z' opacity='1' %3e%3c/path%3e %3cpath fill='%239D896C' d='M106.52 207.985c.484.375.587.735.684 1.376-2.457 1.101-4.91 1.92-7.746 2.765 1.971-1.369 4.326-2.763 7.062-4.141zM74.202 209.826c-.344-.536-.297-.906-.2-1.556a38.955 38.955 0 018.026 2.535c-2.553-.067-4.994-.44-7.826-.98z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M171.077 152.128c-.097-.325-.27-.604-.732-.96a44.782 44.782 0 013.078-8.203c.393-.113.616.066.565.435-1.003 3.155-1.957 5.941-2.91 8.728z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M184.726 198.992c.254 1.146.28 2.15.302 3.526-.483.732-.961 1.091-1.756 1.46-.845-1.411-1.374-2.832-2.015-4.58.632-.659 1.377-.992 2.432-1.401.476.233.643.542 1.037.995z' opacity='1' %3e%3c/path%3e %3cpath fill='%23C8CACD' d='M228.21 123.927c-.468.009-.935.017-1.746.108-.25-1.132-.156-2.347.22-3.795.731-.212 1.18-.19 1.982.135.084 1.387-.186 2.47-.456 3.552z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M174.898 140.915c1.176-1.227 2.352-2.455 3.96-3.532.658.391.926.567 1.034.945-1.761 1.075-3.319 1.88-4.906 2.661l-.088-.074z' opacity='1' %3e%3c/path%3e %3cpath fill='%23704A25' d='M88.576 116.305c-1.046.606-2.498 1.141-4.23 1.49.013-.467.306-.746.598-1.025 1.075-.178 2.15-.357 3.632-.465z' opacity='1' %3e%3c/path%3e %3cpath fill='%23906E4F' d='M84.654 116.65c-.002.4-.295.678-.695 1.13-.56.148-1.014.123-1.807.07.51-.46 1.36-.89 2.502-1.2z' opacity='1' %3e%3c/path%3e %3cpath fill='%23CDD4D8' d='M170.973 106.152c.512.344.772.823 1.011 1.593-.435-.292-.85-.875-1.011-1.593z' opacity='1' %3e%3c/path%3e %3cpath fill='%23906E4F' d='M98.763 116.867c-.396.198-1.03.25-1.756.079.444-.224.981-.225 1.756-.08z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M173.702 142.767c.146-.593.407-1.1.931-1.73.265-.122.324-.073.425.262-.273.8-.646 1.266-1.02 1.732 0 0-.222-.179-.336-.264z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M180.094 138.06c-.31-.11-.578-.286-.913-.742-.11-.215.253-.422.46-.451.34.108.472.246.672.696.066.312-.219.497-.219.497zM261.47 111.69c-.167.322-.438.375-1.12.19-.412-.434-.411-.63-.41-.826 0 0 .341-.293.534-.414.426.18.66.48.996 1.05z' opacity='1' %3e%3c/path%3e %3cpath fill='%238B5E35' d='M113 141.067c-.62 15.392-16.26 25.208-29.663 19.14-2.541-1.15-5.538-1.373-7.96-2.693-9.558-5.212-10.255-19.505-1.428-26.088 1.592-1.188 3.158-2.409 4.727-3.626 8.577-6.656 18.74-6.512 26.445 1.007 3.358 3.277 8.695 5.624 7.878 12.26m-16.092-12.848c-3.167-3.229-8.562-2.883-12.583.77-.44.005-.88.01-1.963.092-.457.638-.913 1.275-1.863 1.918 0 0-.493.008-1.207.073-5.752 1.789-7.846 6.397-8.196 11.721-.37 5.638 2.465 9.936 7.637 12.22 6.93 3.06 13.987 6.651 21.109.228.414-.373 1.32-.14 1.928-.368 4.286-1.613 8.75-8.887 8.175-13.25-.842-6.394-6.318-12.184-12.435-12.63 0 0-.493-.008-.602-.774z' opacity='1' %3e%3c/path%3e %3cpath fill='%23704A25' d='M107.727 190.284c-4.017-3.034-8.033-6.067-12.423-9.544-.503-.829-.631-1.215-.343-1.637 5.221.247 4.348-3.189 2.784-4.967-3.464-3.94-2.406-6.761.95-9.726.29-.257.217-.927.312-1.404 17.023-5.357 21.327-17.54 14.048-34.645 3.789-1.005 6.354.113 6.71 4.402.634 7.634.293 15.149-3.345 22.095-1.724 3.293-4.135 5.572-8.24 6.398-5.842 1.175-8.56 8.957-4.517 13.074.392 1.153.411 1.897.178 2.803.24 1.064.732 1.964 1.268 3.068.043.204.082.62-.195.842-.538 3.159-.21 5.8 3.1 7.285.006.776 0 1.22-.075 1.736l-.212.22z' opacity='1' %3e%3c/path%3e %3cpath fill='%237A522B' d='M98.642 163.044c.27.44.343 1.109.052 1.366-3.355 2.965-4.413 5.786-.949 9.726 1.564 1.778 2.437 5.214-2.952 4.864-.786-.26-.914-.49-.797-1.089 2.4-2.945 2.328-4.515-1.598-4.94-4.967-.537-5.92 2.078-5.358 6.453-.095.638-.15 1.002-.499 1.425-.975.439-1.66.818-2.343 1.198-5.013-1.526-4.208-4.387-1.988-7.863 3.908-6.121 3.833-6.17-2.05-10.878 1.45 0 3.205-.008 4.632.672 4.726 2.25 9.175 2.199 13.85-.934z' opacity='1' %3e%3c/path%3e %3cpath fill='%23704A25' d='M101.031 119.364c3.6 1.381 7.298 3.012 10.834 4.94.7.38.777 1.905 1.143 3.288-3.977-2.368-7.956-5.122-11.977-8.228z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M48.701 157.02c5.742-.966 5.378-6.338 7.985-9.854 1.736 2.657 2.958 5.605 4.636 8.267 1.36 2.155 3.266 3.964 4.93 5.927l-.527 1.557c-2.214-.255-4.52-.198-6.626-.817-9.79-2.875-19.547 5.407-18.184 15.517.126.929-.232 1.923-.646 3.137-3.232-4.72-2.753-9.466 1.041-14.442 1.156-2.051 1.922-3.682 2.689-5.313 0 0 .001.001.372-.007 1.123-1 1.875-1.991 2.627-2.983.468-.322.936-.645 1.703-.99z' opacity='1' %3e%3c/path%3e %3cpath fill='%237A522B' d='M50.997 193.002c-1.994-3.974-6.622-5.686-7.318-11.224-1.164-9.254 4.287-18.44 16.878-15.52 2.103.489 4.452-.084 6.95.14-.378 3.093-1.02 5.877-1.875 8.643-.213-.018-.64-.039-.693-.387-1.228-1.17-2.404-1.994-3.58-2.817-4.639-3.248-11.395-3.027-13.875.454-2.89 4.054-1.664 11.163 2.524 14.7-.008.009.012-.007.152.303.932 1.15 1.571 2.396 2.541 2.76 4.03 1.508 7.135 6.013 12.546 3.94a30.4 30.4 0 001.042-.022c.77-.335 1.24-.655 2.03-.985.746-.035 1.172-.06 1.63.16.033.247.068.743-.188.927-.443.776-.629 1.37-1.045 2.1-.376.46-.523.782-.643 1.28.027.174-.007.526-.352.526-.803.007-1.262.014-1.967-.257-5.082-1.76-9.919-3.24-14.755-4.722h-.002z' opacity='1' %3e%3c/path%3e %3cpath fill='%237E542D' d='M48.29 141.985c-1.46-1.299-2.547-2.596-3.965-3.94-.651-2.655-1.394-5.3-1.178-7.865.253-2.99 1.343-5.91 2.542-8.892.744-.464 1.016-.898 1.288-1.33 0 0 .018.047.325.011.772-.68 1.236-1.323 2.09-2.005 1.78-.494 3.142-1.207 4.564-1.361 5.54-.6 11.287-2.252 16.058 2.764a453.356 453.356 0 01-.064 2.621s-.479.005-.97.015c-.661.003-.83-.004-1.226-.316-5.074-3.13-10.096-1.999-14.581.046-3.729 1.7-6.911 4.64-6.264 9.745.44 3.468.986 6.633 5.089 7.516-1.112.997-2.223 1.994-3.709 2.991z' opacity='1' %3e%3c/path%3e %3cpath fill='%23261A11' d='M65.845 175.06a511.36 511.36 0 012.063-8.704c3.432-3.667 6.404-1.866 9.65.61-.172 3.498-.363 7.36-.639 11.935-1.665 2.13-3.244 3.546-5.2 4.947-1.123-.014-1.872-.015-2.72-.322-1.118-1.709-2.136-3.11-3.1-4.807.018-1.418-.018-2.539-.054-3.66m3.146 2.453l2.678 3.386c.768-.91 2.111-1.79 2.162-2.739.067-1.242-.888-2.54-1.403-3.813-1.133.79-2.266 1.581-3.437 3.166z' opacity='1' %3e%3c/path%3e %3cpath fill='%23DAB886' d='M86.035 202.935c-3.144 3.918-7.11 3.38-11.785 1.743-3.542-3.396-2.956-7.063-2.206-11.044.267-.702.421-1.099.671-1.44.095.055.3-.027.3-.027.421-.052.842-.105 1.983-.165 2.061.006 3.402.02 4.753.42 2.1 3.763 4.192 7.138 6.284 10.513z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M66 198.001c.46-.007.918-.014 1.85.278.649 1.114.826 1.93 1.003 2.744-5.27.986-10.325 1.447-14.953-2.44-1.827-1.534-4.527-2.028-6.726-3.343.011-.312-.082-.277-.176-.242-2.176-3.194-4.352-6.387-6.266-9.79 3.352 2.455 6.443 5.12 9.9 7.79.365.004.368.002.41.365 3.66 4.416 10.32 6.324 14.958 4.638z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593515' d='M70.018 118.993c-4.775-4.642-10.521-2.99-16.062-2.39-1.422.154-2.784.867-4.565 1.36-.391.037-.393.035-.392-.295.013-.77.023-1.21.034-1.649 10.23-5.45 17.344-4.73 25.834 2.719-.191.496-.702.858-1.854 1.222-1.425-.321-2.21-.644-2.995-.967z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M67.982 121.993c.168.006.337.013.758.02-1.698 3.09-3.091 6.819-5.728 9.126-4.26 3.73-4.38 8.618-5.73 13.608-3.964-4.473-.753-8.693.851-13.722 3.384-3.464 6.616-6.248 9.849-9.032z' opacity='1' %3e%3c/path%3e %3cpath fill='%23BE9E6C' d='M79.742 192.035a351.996 351.996 0 01-4.427-.065c1.211-1.941 2.75-3.929 4.465-5.75 1.231-1.308 2.698-2.394 4.239-3.876.863-.677 1.547-1.056 2.58-1.115-.795 2.347-1.996 4.345-3.023 6.428-.16.325.472 1.04.491 1.806-1.606 1.011-2.966 1.792-4.325 2.572z' opacity='1' %3e%3c/path%3e %3cpath fill='%237A542D' d='M72.899 191.844c.116.323-.089.405-.631.31-1.139-.132-1.734-.168-2.282-.58a399.912 399.912 0 012.11-7.712c1.579-1.415 3.158-2.83 4.816-4.56 2.849 2.854 1.685 5.12-1.275 7.475-1.353 1.077-1.927 3.132-2.738 5.067z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M70.014 119.367c.79-.051 1.574.272 2.679.628-.462.686-1.244 1.34-2.384 1.993-.339-.749-.319-1.497-.295-2.62z' opacity='1' %3e%3c/path%3e %3cpath fill='%237A522B' d='M112.532 198.144c-1.133-2.14-2.266-4.28-3.276-6.76.346-.357.57-.375 1.149-.349 2.87 2.302 5.2 5.265 9.16 3.826 3.524-1.28 7.054-2.68 10.315-4.503 4.462-2.495 6.841-10.707 4.698-14.97-1.956-3.89-7.512-5.134-13.172-3.174-1.669.578-3.547.55-5.387.435-1.093-2.784-2.127-5.202-3.16-7.621 5.872.66 11.744 1.327 17.618 1.974 3.927.433 8.33 5.77 8.448 10.86.071 3.091-.584 6.2-.929 9.961-.015.66-.017 1.142-.365 1.189-2.25 1.327-4.149 2.617-6.059 3.888-5.325 3.543-10.62 7.195-17.577 5.107.005-.006-.007.003-.085-.166-.323-.049-.567.072-.951.23-.14.036-.427.073-.427.073z' opacity='1' %3e%3c/path%3e %3cpath fill='%2362401E' d='M131.058 144.536c-1.608 7.183 3.383 11.14 6.801 16.148-5.417-1.293-10.544.615-15.785 2.047-1.409.385-3.49.104-4.564-.75-.652-.518-.496-3.08.204-4.107 4.671-6.846 6.324-14.724 8.57-22.727 1.105.553 1.819 1.28 2.619 2.319.744 1.421 1.4 2.53 2.058 3.637l.097 3.433z' opacity='1' %3e%3c/path%3e %3cpath fill='%232A201B' d='M112.508 164.99c1.384 2.457 2.418 4.875 3.485 8.001.068 1.165.104 1.62.08 2.452-.447 4.303-1.956 7.392-6.44 8.422-.727-.15-1.142-.236-1.715-.548a76.861 76.861 0 00-2.727-2.497l-.089-.954a23.616 23.616 0 00-1.008-2.895 434.32 434.32 0 00-.074-2.603c.358-2.326.42-4.411 1.176-6.204 1.263-2.99 3.274-5.122 7.312-3.174m-1.07 10.572l-3.282 3.392 2.46 1.902c.415-1.554.829-3.108.821-5.294z' opacity='1' %3e%3c/path%3e %3cpath fill='%23B88363' d='M128.817 137.152a273.343 273.343 0 00-2.371-2.39c-3.214-3.5-6.198-6.789-9.316-10.712.642-1.334 1.396-2.609 2.197-2.64 4.623-.176 13.832 6.206 15.65 10.589-.011.43-.023.86-.401 1.677-2.165 1.416-3.962 2.446-5.76 3.476z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A16F49' d='M135.25 131.772c-2.091-4.156-11.3-10.538-15.923-10.361-.801.03-1.555 1.305-2.4 2.369-1.258-.496-2.447-1.354-3.78-2.496 4.914-4.24 10.131-3.811 15.531-.991 4.591 2.397 7.471 5.731 6.571 11.48z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593515' d='M133.194 117.667c-4.007-.36-8.24-1.496-12.477-1.506-3.082-.007-6.169 1.473-9.47 2.58-1.218.111-2.22-.066-3.28-.562 3.317-2.018 6.692-3.717 10.893-5.365 2.32.009 3.815-.033 5.311-.076 2.932 1.546 5.864 3.09 9.023 4.93z' opacity='1' %3e%3c/path%3e %3cpath fill='%23624123' d='M141.998 168.47c.43-.458.86-.451 1.614-.425.631 3.398 1.435 6.827 1.092 10.137-.273 2.64-1.945 5.133-3.352 7.75-.022-5.629.312-11.314.646-17.463zM137.979 188.965s.002-.482.007-.722c.79-.56 1.575-.877 2.677-1.223-.164 1.497-.645 3.021-1.643 4.758-.685.213-.854.212-1.022-.166-.006-1.134-.013-1.89-.02-2.647zM140.04 165.323c.597.134 1.237.587 1.914 1.362-.599-.133-1.235-.587-1.914-1.362zM139.822 164.087c.167.077.17.244.173.663-.112-.023-.225-.297-.173-.663z' opacity='1' %3e%3c/path%3e %3cpath fill='%23261A11' d='M79.75 192.423c1.351-1.168 2.711-1.949 4.756-3.003 4.626-.308 8.567-.344 12.507-.379 1.603 1.141 3.205 2.282 4.91 4.064-1.603 3.334-3.31 6.026-5.015 8.719-3.184 2.189-6.082 6.509-10.56 1.24a132.127 132.127 0 01-6.598-10.641m3.68.27c.68 1.357 1.193 3.743 2.071 3.886 2.985.486 6.163.547 9.138.03 1.628-.284 2.999-2.055 4.485-3.156l-.654-1.129c-4.803 0-9.607 0-15.04.369z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593515' d='M137.998 191.99c.168 0 .337 0 .76.003.249.75.245 1.498.239 2.62-.002.375.002.387-.219.494-.49.306-.677.564-.778.883-1.304 1.3-2.468 2.793-3.936 3.869-6.682 4.895-14.26 6.177-22.719 5.172.061-2.068.504-4.095 1.066-6.505.12-.382.408-.42.77-.464.361-.046.807-.052.807-.052s.012-.01.051.364c1.419 1.425 2.857 3.42 4.166 3.339 3-.186 6.203-.888 8.839-2.29 3.873-2.061 7.323-4.917 10.954-7.433z' opacity='1' %3e%3c/path%3e %3cpath fill='%23DAB886' d='M96.971 188.664c-3.898.412-7.839.448-12.218.525-.705-.492-1.337-1.207-1.177-1.532 1.027-2.083 2.228-4.081 3.314-6.487 0-.744.055-1.108.46-1.917 2.209-2.583 4.231-2.992 6.475-1.015.054.272.182.503.55.797.298.49.426.876.624 1.56.69 2.762 1.31 5.227 1.972 8.07zM96.967 202.197c1.647-3.066 3.353-5.758 5.135-8.804 3.782.038 7.643-.12 7.024 5.686-.383 3.594-2.211 5.382-5.209 6.42-3.087 1.07-5.49.158-6.95-3.302z' opacity='1' %3e%3c/path%3e %3cpath fill='%23B88363' d='M68.913 201.343a46.121 46.121 0 00-.72-3.064c-.127-.299-.093-.65.095-.987.345-.643.501-.95.658-1.256.186-.593.372-1.186 1.132-1.917 1-.152 1.427-.166 1.854-.18-.638 3.676-1.224 7.343 1.914 10.727-.1.808-.363 1.302-.736 2.054-1.233-.968-2.355-2.193-3.745-3.59-.31-.603-.351-1.035-.452-1.787z' opacity='1' %3e%3c/path%3e %3cpath fill='%23704A25' d='M110.049 190.991c-.224.018-.447.036-1.004.104-.617-.057-.858-.224-1.188-.631-.13-.18.011-.326.385-.387.85.264 1.329.59 1.807.914z' opacity='1' %3e%3c/path%3e %3cpath fill='%23624123' d='M43.699 161.15c-.467 1.48-1.233 3.11-2.348 4.797.45-1.512 1.249-3.079 2.348-4.797zM46.717 158.137c-.471.864-1.223 1.856-2.347 2.855.441-.904 1.254-1.815 2.347-2.855z' opacity='1' %3e%3c/path%3e %3cpath fill='%237A522B' d='M124.04 112.417c-1.365.364-2.86.406-4.797.34 1.262-.292 2.964-.477 4.797-.34z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M191.031 203.385c.909.07 1.797.567 2.828 1.354-1.101 3.267-2.345 6.246-3.589 9.225l-1.805-.22c.153-1.496.119-3.043.506-4.475.505-1.866 1.344-3.64 2.06-5.884zM189.286 201.968c-.004-.843.323-1.662.65-2.481.347.621.694 1.243 1.022 2.214-.46.33-.9.31-1.672.267zM178.59 208.037c.313-.753.978-1.518 1.979-2.296-.319.753-.972 1.518-1.978 2.296zM186.006 203.342c.417-.307.879-.318 1.688-.313-.317.214-.98.412-1.688.313z' opacity='1' %3e%3c/path%3e %3cpath fill='%23F3F4F4' d='M256.206 131.036s-.107.443-.186 1.08c.355 4.504-.94 7.406-4.783 8.53-.049-3.503-1.11-6.248-4.47-6.336-1.928-.05-4.336 1.135-5.709 2.556-1.022 1.058-.727 3.387-1.02 5.15-.407.039-.815.078-1.529.143-1.018-.495-1.731-1.015-2.436-2.317-.03-7.472-.068-14.163-.002-21.196.952-2.113 1.8-3.885 3.007-6.404.842 2.817.876 4.973 1.971 6.038 1.147 1.115 3.301 1.475 5.04 1.548.62.026 1.314-1.76 2.254-2.5 1.028.275 2.314.59 2.433.342.59-1.226.873-2.6 1.574-3.728 3.16 3.73 4.493 7.571 2.406 12.268.285 1.759.868 3.292 1.45 4.826z' opacity='1' %3e%3c/path%3e %3cpath fill='%23484748' d='M258.657 190.52c-.325.479-.51.628-.976 1.112-1.128-.379-1.902-1.006-2.614-2.01 1.565-4.815.432-8.438-1.822-10.76-2.962 2.352-5.602 5.936-7.465 5.57-2.62-.516-4.664-3.963-7.223-6.414-3.973 3.98-2.938 10.212-3.764 15.87-.435-.39-.644-.66-.853-.93.005-.423.009-.847.06-1.937.012-1.135-.024-1.604-.06-2.072-.004-.413-.007-.825.02-1.976-.188-3.12-.407-5.504-.626-7.887 2.455-2.79 4.91-5.58 7.422-8.702 1.509-.333 2.961-.333 4.951-.333l2.202-2.995c.906 1.146 1.573 1.992 2.62 3.247 2.063 1.53 3.746 2.649 5.43 3.768 0 0-.082-.025-.113.003.94 5.362 1.91 10.695 2.811 16.445m-8.063-16.02s-.123.078 0 0z' opacity='1' %3e%3c/path%3e %3cpath fill='%23E3E7EB' d='M248.612 149.933c-.882 3.689-1.764 7.377-2.692 11.453-1.194.49-2.342.592-3.144.663 0-6.063 0-12.128.116-18.897.371-1.074.625-1.443 1.093-1.722.213.089.5-.269.5-.269s-.314-.336.3-.481c1.034-.113 1.454-.08 1.778.327.619 3.225 1.334 6.076 2.05 8.926z' opacity='1' %3e%3c/path%3e %3cpath fill='%23555E67' d='M243.772 141.34c-.255.37-.509.738-.985 1.36-.894.009-1.567-.236-2.494-.582.038-1.865-.257-4.194.765-5.252 1.373-1.421 3.78-2.607 5.71-2.556 3.36.088 4.42 2.833 4.393 6.248 0 .31-.218.395-.585.419a91.698 91.698 0 01-3.917-.344c-.42-.033-.84-.066-1.963.108-.703.207-.924.6-.924.6z' opacity='1' %3e%3c/path%3e %3cpath fill='%239CA5AC' d='M255.952 173.727c-1.677-.775-3.36-1.894-5.1-3.373.43-.389.918-.417 1.77-.467 1.351 1.152 2.337 2.324 3.33 3.84z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A16F49' d='M128.903 137.466c1.71-1.344 3.508-2.374 5.649-3.468-.785 2.185-1.913 4.434-3.316 6.894-.932-.897-1.59-2.005-2.333-3.426z' opacity='1' %3e%3c/path%3e %3cpath fill='%23906E4F' d='M136.363 140.266c.015-.255.15-.394.283-.532-.055.216-.11.432-.283.532z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593515' d='M49.001 118.001c-.463.645-.927 1.289-1.72 1.956-.303-.394-.276-.811.099-1.566.771-.357 1.195-.375 1.618-.393L49 118z' opacity='1' %3e%3c/path%3e %3cpath fill='%237E542D' d='M49 117.668c-.425.348-.849.366-1.587.41.108-.648.532-1.323 1.288-2.028.321.409.31.848.298 1.618z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593515' d='M46.738 120.05c-.033.34-.305.774-.75 1.03.055-.431.283-.684.75-1.03z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593C21' d='M138.219 195.885c-.118-.214.068-.472.554-.778.121.215-.063.475-.554.778z' opacity='1' %3e%3c/path%3e %3cpath fill='%23B88363' d='M67.754 121.687c-3.005 3.09-6.237 5.874-9.621 8.953-2.044 2.782-3.935 5.27-5.98 8.056-4.258-.585-4.805-3.75-5.244-7.218-.647-5.104 2.535-8.046 6.264-9.745 4.485-2.045 9.507-3.176 14.581-.046z' opacity='1' %3e%3c/path%3e %3cpath fill='%23F1F1F2' d='M183.428 120.013c-.403-1.08-.415-2.141-.486-3.598.593-1.53 1.246-2.665 1.88-4.191.455-1.017.929-1.643 1.734-2.314a144.7 144.7 0 012.009 17.603c-1.365.498-2.398.483-3.43.468-.438-2.65-.876-5.299-1.707-7.968z' opacity='1' %3e%3c/path%3e %3cpath fill='%23D8DDE0' d='M185.086 128.383c1.081-.387 2.114-.372 3.404-.418-.256 1.643-.77 3.346-1.284 5.049l-1.537-.088c-.21-1.38-.42-2.76-.583-4.543z' opacity='1' %3e%3c/path%3e %3cpath fill='%23555E67' d='M188.961 136.879c.006-.763.012-1.527-.017-2.674.438-.59.913-.798 1.63-.864.308 1.367.373 2.593.164 4.107-.775.003-1.276-.283-1.777-.569z' opacity='1' %3e%3c/path%3e %3cpath fill='%23868485' d='M191.052 111.372c.516-.104.984.154 1.682.555.217.92.205 1.696.086 2.85-.676-.763-1.246-1.903-1.768-3.405z' opacity='1' %3e%3c/path%3e %3cpath fill='%23CDD4D8' d='M177.953 112.253c-.402.175-.782.014-1.328-.43.34-.157.845-.032 1.328.43z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M232.958 179.187c.595 2.282.814 4.665.976 7.478-.746.393-1.436.356-2.472.305.143-2.57.632-5.126 1.496-7.783z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M196.007 177.927c-.851.945-1.702 1.89-2.879 2.964-1.204-2.14-1.913-4.496-3.004-6.66-1.608-3.185-3.442-3.316-5.089.434-.16.66-.338.948-.97 1.334-1.321-.6-2.189-1.297-2.67-2.04.958-1.244 1.28-2.69 2.16-3.59 1.573-1.613 3.445-3.955 5.262-4.02 1.775-.063 3.77 2.196 5.398 3.725.669.629.627 2.015 1.202 4.146 1.549-2.627 2.587-4.388 3.958-6.037-.175 1.96-.562 3.856-1.23 5.646-.535 1.433-1.413 2.737-2.138 4.098z' opacity='1' %3e%3c/path%3e %3cpath fill='%23FEFEFE' d='M194.298 107.87c.496-.166.858-.092 1.763.104-.082.627-.708 1.132-1.72 1.43-.316-.568-.246-.93-.043-1.533z' opacity='1' %3e%3c/path%3e %3cpath fill='%233A3A3B' d='M183.033 140.014c1.47-.269 2.94-.538 5.05-.91 1.394-.103 2.148-.103 2.903-.102 0 0 .113.462.089 1.036-.046 1.035-.067 1.496-.425 1.988-1.186 1.672-2.034 3.312-2.843 5.253.566.456 1.092.611 1.876.946.947-.967 1.636-2.114 2.582-3.435 1.386-1.02 2.516-1.864 3.974-2.606a65.247 65.247 0 014.963 8.305c-.613 2.748-1.178 5.088-1.866 7.014-.418-4.426-.07-8.677-2.989-10.769-2.951 2.343-5.596 5.99-7.693 5.7-2.427-.338-4.372-4.141-6.94-6.88-1.111 1.8-2.31 3.74-3.84 5.485-.145-2.095.041-3.994.496-6.103 1.734-1.78 3.198-3.35 4.663-4.922z' opacity='1' %3e%3c/path%3e %3cpath fill='%23CDD4D8' d='M199.458 157.916c.566-2.34 1.131-4.679 2.041-7.376 1.32.282 2.296.921 3.272 1.56 0 0 .126.449.198.67a102.31 102.31 0 01-.829 7.927c-.145.3-.14.303-.441.351-.185.827-.068 1.606.05 2.385.053.957.106 1.915.224 3.227-.438 1.958-.94 3.56-1.498 5.51-1.96 2.187-3.865 4.024-6.12 5.81.377-1.414 1.255-2.718 1.79-4.15.668-1.79 1.055-3.686 1.224-6.035-.667-2.61-1.188-4.718-1.237-6.837-.023-1.003.856-2.027 1.326-3.042z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A7B0B9' d='M204.915 151.804c-1.12-.343-2.096-.982-3.369-1.673-1.858-2.648-3.418-5.245-5.383-8.226-.938-.937-1.472-1.49-2.006-2.043 1.168-.252 2.793-1.125 3.43-.656 4.12 3.037 7.323 6.785 7.328 12.598z' opacity='1' %3e%3c/path%3e %3cpath fill='%23555E67' d='M193.784 139.9c.907.515 1.44 1.068 2.05 1.9a12.042 12.042 0 01-3.57 2.655c-.598-.928-.938-1.694-1.278-2.46.022-.461.043-.922.132-1.723.81-.338 1.551-.335 2.666-.371z' opacity='1' %3e%3c/path%3e %3cpath fill='%23484748' d='M191.006 138.73c-.775.271-1.53.271-2.662.26-.207-.583-.036-1.156.377-1.92.741.095 1.242.381 2.015.756.278.271.284.452.27.905z' opacity='1' %3e%3c/path%3e %3cpath fill='%23F1F1F2' d='M235.018 194.01c.601-5.78-.434-12.013 3.54-15.992 2.558 2.45 4.602 5.898 7.222 6.413 1.863.367 4.503-3.217 7.465-5.57 2.254 2.323 3.387 5.946 1.544 10.971-.468 1.22-.922 2.06-.673 2.454 2.535 3.993 1.24 7.927-.23 11.965-.49.258-.713.479-1.164.72-.633-.075-.994-.125-1.354-.175-.055-.418-.11-.835-.258-1.918-1.627-2.256-3.031-4.928-4.734-5.134-1.722-.208-3.74 2.024-5.774 3.403-.143.387-.142.56-.258 1.06-.194 1.482-.27 2.638-.345 3.794 0 0-.49.086-.86-.165-1.27-.805-2.17-1.36-3.05-1.904.02.009.051-.023.051-.023-.052-.441-.104-.882-.154-2.052-.32-3.101-.644-5.474-.968-7.847z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M234.793 193.888c.549 2.495.872 4.868 1.125 7.643-2.245-1.753-3.494-6.018-2.315-8.496.546.193.755.462 1.19.853z' opacity='1' %3e%3c/path%3e %3cpath fill='%23ABB0B6' d='M236.427 209.527c-.624-.223-1.25-.447-2.168-.841.567-1.564-3.072-4.39 1.516-4.744.365-.033.334-.001.194.268.312 1.515.763 2.761 1.215 4.007 0 0-.018.288-.198.612-.306.448-.433.573-.559.698z' opacity='1' %3e%3c/path%3e %3cpath fill='%23787575' d='M233.654 189c.322.417.358.886.338 1.704-.245-.318-.434-.984-.338-1.703z' opacity='1' %3e%3c/path%3e %3cpath fill='%239CA5AC' d='M181.009 174.005c.867.697 1.735 1.395 2.95 2.226.349.134.41.289.432.369-1.766.334-3.554.589-5.376 1.141-.82-.409-1.609-1.116-2.173-2.265.341-.558.458-.675.576-.791l-.712-.514s.118.05.166-.355c.071-1.867.093-3.328.46-4.798.804-.003 1.264.002 1.765.354.666 1.776 1.289 3.204 1.912 4.633z' opacity='1' %3e%3c/path%3e %3cpath fill='%23555E67' d='M240.38 206.01c-.305-1.165-.23-2.321.202-3.828.49-.43.624-.512.758-.592l-.593-.658c1.889-1.164 3.907-3.396 5.63-3.188 1.702.206 3.106 2.878 4.607 4.844-1.135.448-2.236.52-3.74.7-1.75.877-3.1 1.645-4.702 2.597-.76.167-1.27.15-2.161.124z' opacity='1' %3e%3c/path%3e %3cpath fill='%23FEFEFE' d='M243.003 217.02c-.348-1.791-.423-3.428-.424-5.468.936-.757 1.798-1.11 3.028-1.615v8.688l-1.273.79c-.353-.748-.705-1.494-1.33-2.396z' opacity='1' %3e%3c/path%3e %3cpath fill='%23C8CACD' d='M251.236 140.956c3.844-1.434 5.14-4.336 4.76-8.614 2.225.26 4.394.932 6.563 1.604-.485 1.426-.97 2.851-1.591 4.601-2.825 2.423-5.514 4.522-8.59 6.18-.737-1.552-1.086-2.663-1.435-3.774 0 0 .217-.085.293.003z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M250.576 140.977c.716 1.087 1.065 2.198 1.423 3.66-.348 1.81-.704 3.268-1.181 5.09-.582.331-1.042.296-1.854.234-1.067-2.878-1.782-5.729-2.401-8.954 1.28-.252 2.462-.13 4.013-.03z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M252.04 113.748c-.39 1.322-.673 2.696-1.264 3.922-.12.247-1.405-.067-2.526-.684-2.721-2.783-5.069-5.005-7.416-7.226.068-1.298.137-2.597.217-4.282 2.516-.302 5.019-.217 7.81.166 1.162 1.814 2.036 3.33 3.033 5.487.13 1.299.138 1.958.146 2.617z' opacity='1' %3e%3c/path%3e %3cpath fill='%23C8CACD' d='M254.108 204.167c1.248-3.954 2.543-7.888.008-11.88-.25-.394.205-1.235.61-2.078 1.053.417 1.827 1.044 2.931 1.606.981 1.047 1.632 2.16 2.56 3.449.131 2.444-.014 4.713-.16 7.373-2.102 2.81-4.204 5.228-6.67 7.543-.307-.875-.25-1.646-.291-2.799-.097-.38-.077-.4.263-.342.477-.919.613-1.895.75-2.872z' opacity='1' %3e%3c/path%3e %3cpath fill='%23C8CACD' d='M251.3 205.122c.428-.276.789-.226 1.404.181.275.797.295 1.238.315 1.679l-.03.027c-.593-.515-1.176-1.038-1.69-1.887zM252.878 210.098c.026.17-.131.437-.555.662-.067-.233.147-.406.555-.662z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M237.495 208.147c-.763-1.176-1.214-2.422-1.545-3.946 1.02.276 1.919.83 2.943 1.678-.28.928-.683 1.563-1.398 2.268z' opacity='1' %3e%3c/path%3e %3cpath fill='%23ABB0B6' d='M237.001 208.972c1.094.312 1.992.805 2.89 1.298l-.444.966c-.926-.36-1.852-.718-2.899-1.393.005-.44.132-.566.453-.871z' opacity='1' %3e%3c/path%3e %3cpath fill='%232E2E30' d='M240.536 109.818c2.645 2.163 4.993 4.385 7.433 6.948-.566 1.301-1.26 3.088-1.88 3.062-1.739-.073-3.893-.433-5.04-1.548-1.095-1.065-1.13-3.221-1.971-6.038-1.206 2.52-2.055 4.29-3.33 6.245-1.112-.422-1.799-1.025-2.425-2.004 1.16-2.564 2.26-4.752 3.36-6.94.217.173.434.347 1.288.56.637.039 1.052-.148 1.052-.148.405-.026.81-.052 1.513-.137z' opacity='1' %3e%3c/path%3e %3cpath fill='%23E3E7EB' d='M236.718 109.223c-1.135 2.508-2.235 4.696-3.666 7.38-.55 1.468-.77 2.44-1.275 3.628-.483 4.05-.68 7.882-1.269 11.87-.616.322-.841.49-1.066.657-.42-2.65-.839-5.302-1.245-8.392.283-1.522.553-2.604.802-4.041 1.48-3.875 2.864-7.454 4.592-10.859.292-.575 2.07-.395 3.127-.243z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M239.007 109.699c.016.256-.4.443-.625.467-.098-.444.03-.912.156-1.38.151.219.302.437.47.913z' opacity='1' %3e%3c/path%3e %3cpath fill='%23E3E7EB' d='M182.977 139.675c-1.409 1.91-2.873 3.481-4.97 5.33-1.552 3.395-2.47 6.513-3.7 9.79-.329 3.538-2.57 7.121.638 10.563.4 1.45.77 2.546.79 3.68-.844.47-1.339.902-1.833 1.334-.463-.35-.925-.701-1.622-1.231-.563-5.489-.89-10.798-1.21-16.56.961-3.24 1.915-6.026 2.918-9.181.424-.835.797-1.301 1.099-2.076 1.486-1.116 3.044-1.921 4.805-2.996.202-.268.487-.453.62-.558.892.452 1.65 1.009 2.465 1.905z' opacity='1' %3e%3c/path%3e %3cpath fill='%23ABB0B6' d='M173.82 170.744c.576-.804 1.071-1.236 2.141-1.713.576-.046 1.027-.005 1.027-.005-.023 1.462-.045 2.923-.166 4.83-1.094-.617-2.09-1.679-3.003-3.112z' opacity='1' %3e%3c/path%3e %3cpath fill='%239CA5AC' d='M182.473 179.457c.18.012.413.2.406.455-.239.067-.354-.28-.406-.455z' opacity='1' %3e%3c/path%3e %3cpath fill='%23ABB0B6' d='M176.532 174.428c.41-.086.648.086.886.257a3.064 3.064 0 01-.585.46c-.313-.08-.394-.27-.301-.717z' opacity='1' %3e%3c/path%3e %3cpath fill='%239CA5AC' d='M230.9 131.946c.197-3.833.394-7.666 1.169-11.471.914 5.235 1.25 10.444 1.586 15.653-.752-.384-1.503-.767-2.498-1.367-.242-.216-.213-.228-.185-.663a35.391 35.391 0 00-.073-2.152z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M233.727 136.467c-.408-5.548-.744-10.757-1.372-16.209-.072-1.215.147-2.187.637-3.28.957.484 1.644 1.087 2.653 1.85.36 6.851.397 13.542.368 20.662-.783-.609-1.498-1.647-2.286-3.023z' opacity='1' %3e%3c/path%3e %3cpath fill='%23E3E7EB' d='M230.238 137.815c-.176-.63-.062-1.492.382-2.37.19.702.05 1.42-.382 2.37z' opacity='1' %3e%3c/path%3e %3cpath fill='%23C8CACD' d='M230.508 132.1c.425.418.459.99.48 1.994-.47.032-.927-.367-1.466-1.05.145-.453.37-.62.986-.943z' opacity='1' %3e%3c/path%3e %3cpath fill='%23D8DDE0' d='M256.515 130.891c-.891-1.389-1.474-2.922-1.374-4.697 1.474-2.536 2.265-4.831 3.055-7.127.974 1.46 1.948 2.92 3.077 4.72.107.715.058 1.09-.067 2.15-.082 1.517-.087 2.347-.092 3.177-1.43.544-2.86 1.088-4.6 1.777z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A7B0B9' d='M261.413 129.08c-.294-.796-.289-1.626-.172-2.862.648.407 1.184 1.219 1.694 2.362-.425.377-.824.422-1.522.5z' opacity='1' %3e%3c/path%3e %3cpath fill='%233A3A3B' d='M258.135 118.695c-.73 2.668-1.52 4.963-2.696 7.275 1.404-4.457.07-8.298-3.09-12.028-.317-.853-.325-1.512-.342-2.498.168-.343.344-.36 1.123-.401 2.011 1.656 3.421 3.338 4.831 5.02.038.754.076 1.507.174 2.632z' opacity='1' %3e%3c/path%3e %3cpath fill='%239CA5AC' d='M258.088 115.776c-1.537-1.395-2.947-3.077-4.702-4.801-.479-1.292-.613-2.54-.894-5.163 2.843 2.131 4.815 3.609 7.117 5.164.33.274.329.47.33.961-.572 1.381-1.149 2.467-1.851 3.84z' opacity='1' %3e%3c/path%3e %3cpath fill='%23868485' d='M203.828 163.03c-.197-.376-.314-1.155-.131-1.984.27.493.24 1.037.131 1.984z' opacity='1' %3e%3c/path%3e %3cpath fill='%23986840' d='M98.002 128.997c5.624.442 11.1 6.232 11.942 12.625.574 4.364-3.889 11.638-8.175 13.25-.609.23-1.514-.004-1.928.369-7.122 6.423-14.18 2.831-21.11-.229-5.171-2.283-8.005-6.58-7.636-12.219.35-5.324 2.444-9.932 8.516-11.402-.212 1.136-.644 2.044-1.292 2.756-5.25 5.77-4.68 13.363 1.446 18.03 5.895 4.492 12.013 2.97 18.234.72 4.703-1.7 7.887-5.867 7.716-12.069-.12-4.372-1.88-8.33-6.815-10.092-.367-.754-.632-1.247-.898-1.74z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A16F49' d='M99.001 130.998c4.833 1.5 6.594 5.458 6.714 9.83.171 6.202-3.013 10.369-7.716 12.07-6.22 2.25-12.339 3.771-18.234-.72-6.126-4.668-6.697-12.26-1.446-18.03.648-.713 1.08-1.621 1.649-2.79.037-.35.53-.359 1.1-.4 1.023-.679 1.48-1.316 1.935-1.954.44-.005.88-.01 2.053-.011 1.804.005 2.875.008 3.884.36-.866.802-1.63 1.347-2.478 1.692-4.413 1.799-8.684 7.427-8.458 11.224.332 5.59 5.02 10.333 10.6 10.722 5.974.416 13.774-4.489 14.175-9.486.197-2.452-1.079-5.053-1.837-7.54-.516-1.694-1.29-3.308-1.946-4.96a.096.096 0 00.005-.007z' opacity='1' %3e%3c/path%3e %3cpath fill='%23986840' d='M89.002 129.003a912.693 912.693 0 01-3.616-.013c2.959-3.654 8.354-4 11.198-.383-1.079.392-1.833.396-3.004.397h-4.578z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A16F49' d='M93.996 129.006c.755-.003 1.51-.007 2.642-.016.378-.005.87.003 1.117.005.513.494.778.987 1.145 1.741.101.262.099.265-.3.267-1.8-.665-3.202-1.33-4.604-1.997z' opacity='1' %3e%3c/path%3e %3cpath fill='%23986840' d='M82.682 129.043c-.135.599-.59 1.236-1.368 1.912.134-.599.59-1.236 1.368-1.912z' opacity='1' %3e%3c/path%3e %3cpath fill='%238B5E35' d='M110.405 191.035c-.834-.369-1.312-.694-2.093-1.032-.297-.455-.292-.899-.299-2.114.013-1.963.038-3.155.063-4.346.415.086.83.171 1.759.593 1.277 1.032 2.539 1.62 2.72 2.444 1.024 4.65 3.071 6.537 7.299 5.16 3.532-1.15 7.056-2.96 9.936-5.282 2.46-1.982 4.586-4.908 1.697-8.52-3.34-4.177-5.555-4.508-9.99-2.196-1.314.685-3.55-.4-5.365-.674a22.692 22.692 0 01-.08-1.712c1.807-.592 3.685-.564 5.354-1.142 5.66-1.96 11.216-.716 13.172 3.174 2.143 4.263-.236 12.475-4.698 14.97-3.26 1.823-6.791 3.223-10.314 4.503-3.962 1.439-6.29-1.524-9.161-3.826z' opacity='1' %3e%3c/path%3e %3cpath fill='%237A542D' d='M107.918 183.317c.133 1.417.108 2.609.084 4.24-3.298-.715-3.626-3.355-3.088-6.514 1.133.535 1.99 1.292 3.004 2.274z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M103.84 177.133c.574.623.893 1.408 1.22 2.529-.487-.565-.98-1.465-1.22-2.529z' opacity='1' %3e%3c/path%3e %3cpath fill='%238B5E35' d='M93.996 177.911c-2.415-1.65-4.437-1.24-6.608 1.068-.91-3.93.043-6.545 5.01-6.008 3.926.425 3.999 1.995 1.598 4.94z' opacity='1' %3e%3c/path%3e %3cpath fill='%23986840' d='M71.72 183.848c-.312 2.46-.999 4.905-1.74 7.964-.055.614-.063 1.089-.063 1.089-.426.025-.852.05-1.768-.144-1.047.263-1.603.746-2.16 1.229 0 0-.495.006-.964-.266a1611.03 1611.03 0 00-15.005-6.736s-.02.016-.015-.415c-.19-1.551-.638-2.696-.53-3.785.267-2.727-.095-6.918 1.404-7.805 2.494-1.477 6.245-.98 9.47-1.01 1.544-.014 3.094.667 4.642 1.033 0 0 .428.021.64.04.25 1.138.286 2.26-.135 3.673-2.16-.172-3.857-.656-5.566-1.097-2.878-.743-5.633-1.744-7.735 1.81-2.05 3.464-.401 5.058 2.345 6.654 1.264.734 2.212 2.518 3.451 2.679 2.501.323 5.3.39 7.594-.462 1.515-.564 2.366-2.915 3.514-4.466.748 0 1.497.001 2.62.015z' opacity='1' %3e%3c/path%3e %3cpath fill='%238B5E35' d='M64.94 174.654c-1.497-.018-3.047-.7-4.592-.685-3.224.03-6.975-.467-9.47 1.01-1.498.887-1.136 5.078-1.404 7.805-.107 1.09.34 2.234.539 3.775-4.193-3.105-5.419-10.214-2.53-14.268 2.481-3.48 9.237-3.702 13.876-.454 1.176.823 2.352 1.646 3.58 2.817z' opacity='1' %3e%3c/path%3e %3cpath fill='%23704A25' d='M65.754 197.723c-4.391 1.964-11.052.056-14.713-4.359 4.794 1.119 9.63 2.6 14.713 4.359z' opacity='1' %3e%3c/path%3e %3cpath fill='%238B5E35' d='M50.16 187.294c4.705 1.845 9.55 4 14.618 6.428-4.942 2.345-8.047-2.16-12.077-3.669-.97-.363-1.61-1.609-2.54-2.76zM66.29 193.972c.256-.47.812-.952 1.54-1.205-.3.55-.77.87-1.54 1.205z' opacity='1' %3e%3c/path%3e %3cpath fill='%23704A25' d='M69.95 193.147c-.033-.246-.025-.721-.018-.96.602-.2 1.197-.165 2.24-.089.293.437.139.834-.128 1.536-.539.319-.965.333-1.71.302-.317-.046-.352-.542-.384-.789z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M68.716 196.174c.073.169-.083.475-.455.943-.068-.16.079-.483.455-.943z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A16F49' d='M68.999 183.526c-1.048 1.858-1.899 4.21-3.414 4.773-2.294.853-5.093.785-7.594.462-1.24-.16-2.187-1.945-3.45-2.68-2.747-1.595-4.396-3.19-2.346-6.653 2.102-3.554 4.857-2.553 7.735-1.81 1.709.44 3.406.925 5.512 1.393 1.42 1.405 2.439 2.806 3.557 4.515z' opacity='1' %3e%3c/path%3e %3cpath fill='%233A3A3B' d='M69.01 177.115c1.152-1.188 2.285-1.978 3.418-2.77.515 1.274 1.47 2.572 1.403 3.814-.05.949-1.394 1.828-2.162 2.739-.893-1.129-1.785-2.257-2.66-3.783z' opacity='1' %3e%3c/path%3e %3cpath fill='%23593C21' d='M46.999 194.999c.093-.036.186-.071.142-.052-.138.055-.141.053-.142.052z' opacity='1' %3e%3c/path%3e %3cpath fill='%2368431F' d='M137.998 191.612c-3.63 2.894-7.081 5.75-10.954 7.81-2.636 1.403-5.838 2.105-8.839 2.29-1.31.082-2.747-1.913-4.17-3.331 6.917 1.714 12.212-1.938 17.537-5.48 1.91-1.272 3.808-2.562 6.06-3.89.353.71.36 1.467.366 2.601zM113.91 197.84c.078.17-.368.176-.59.185.023-.112.267-.233.59-.184z' opacity='1' %3e%3c/path%3e %3cpath fill='%23986840' d='M116.072 175.443c1.874-.101 4.111.984 5.426.299 4.434-2.312 6.65-1.98 9.989 2.195 2.889 3.613.763 6.539-1.697 8.521-2.88 2.322-6.404 4.133-9.936 5.283-4.228 1.376-6.275-.512-7.299-5.16-.181-.826-1.443-1.413-2.409-2.38 3.971-1.366 5.48-4.455 5.926-8.758m12.31 3.931c-3.68-2.513-10.208-.145-11.295 4.099-.855 3.335 1.993 6.669 4.857 5.25 3.458-1.713 7.25-3.743 6.439-9.349z' opacity='1' %3e%3c/path%3e %3cpath fill='%233A3A3B' d='M111.648 175.878c-.203 1.87-.617 3.424-1.031 4.978l-2.46-1.902c1.093-1.13 2.187-2.262 3.49-3.076z' opacity='1' %3e%3c/path%3e %3cpath fill='%232E2E30' d='M83.745 192.508c5.118-.184 9.922-.184 14.725-.184l.654 1.129c-1.486 1.1-2.857 2.873-4.485 3.156-2.975.517-6.153.456-9.138-.03-.878-.143-1.391-2.529-1.756-4.07z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M250.533 174.538c-.062.039.061-.039 0 0z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M243.985 141.43c-.213-.09.008-.482.097-.543.089-.062.404.274.404.274s-.288.358-.501.269z' opacity='1' %3e%3c/path%3e %3cpath fill='%23F3F4F4' d='M181.394 173.96c-1.008-1.384-1.631-2.812-2.281-5.057-.32-6.434-.614-12.052-.908-17.67l3.51-5.678c2.567 2.738 4.512 6.54 6.94 6.878 2.096.292 4.74-3.356 7.692-5.699 2.92 2.092 2.571 6.343 2.99 10.769-.349 1.428-1.228 2.452-1.205 3.455.05 2.119.57 4.226.904 6.726-1.032 2.148-2.07 3.91-3.619 6.536-.575-2.131-.533-3.517-1.202-4.146-1.627-1.53-3.623-3.788-5.398-3.725-1.817.065-3.689 2.407-5.262 4.02-.88.9-1.202 2.346-2.16 3.59z' opacity='1' %3e%3c/path%3e %3cpath fill='%23868485' d='M177.874 151.039c.625 5.812.918 11.43 1.196 17.516-.474.465-.934.46-1.738.463-.344.008-.795-.033-1.022-.026-.596-1.088-.966-2.184-.978-3.703 3.728-4.223.5-7.333-.713-10.654.918-3.117 1.836-6.235 3.119-9.422.177 1.832-.009 3.731.136 5.826z' opacity='1' %3e%3c/path%3e %3cpath fill='%23484748' d='M190.65 142.026c.676.735 1.016 1.501 1.357 2.603-.688 1.482-1.377 2.629-2.565 3.36-.891-.613-1.283-.812-1.675-1.01.849-1.641 1.697-3.281 2.883-4.953z' opacity='1' %3e%3c/path%3e %3cpath fill='%23676B72' d='M187.807 147.28c.352-.103.744.096 1.377.53-.285.08-.81-.075-1.377-.53z' opacity='1' %3e%3c/path%3e %3cpath fill='%23909AA1' d='M253.36 207.04c-.361-.5-.381-.94-.383-1.712.196-.598.419-.82.91-1.077a5.005 5.005 0 01-.528 2.788z' opacity='1' %3e%3c/path%3e %3cpath fill='%23535354' d='M240.602 201.147c.343.004.54.223.738.443-.134.08-.267.161-.64.266-.24-.149-.241-.322-.098-.71z' opacity='1' %3e%3c/path%3e %3cpath fill='%239CA5AC' d='M174.307 154.794c1.525 3.162 4.753 6.272.995 10.14-3.566-3.018-1.324-6.601-.995-10.14z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A87550' d='M93.58 129.004c1.818.668 3.22 1.334 5.018 2.002 1.053 1.65 1.828 3.265 2.344 4.958.758 2.488 2.034 5.089 1.837 7.54-.4 4.998-8.201 9.903-14.175 9.487-5.58-.389-10.268-5.131-10.6-10.722-.226-3.797 4.045-9.425 8.458-11.224.847-.345 1.612-.89 2.478-1.692 1.45-.35 2.836-.35 4.64-.349m-3.87 6.03c-3.6 1.68-7.703 3.085-6.547 8.343.526 2.395 6.68 3.169 10.776 1.819 3.9-1.285 3.959-3.894 2.022-6.472-1.253-1.668-3.611-2.506-6.251-3.69z' opacity='1' %3e%3c/path%3e %3cpath fill='%23A16F49' d='M128.589 179.68c.605 5.3-3.187 7.33-6.645 9.043-2.864 1.419-5.712-1.915-4.857-5.25 1.087-4.244 7.616-6.612 11.502-3.792z' opacity='1' %3e%3c/path%3e %3cpath fill='%23B88363' d='M90.098 135.021c2.252 1.197 4.61 2.035 5.863 3.703 1.937 2.578 1.878 5.187-2.022 6.472-4.097 1.35-10.25.576-10.776-1.819-1.156-5.258 2.946-6.663 6.935-8.356z' opacity='1' %3e%3c/path%3e %3c/svg%3e",function:()=>C(9)}),console.debug(Z);const $=r.getSelectedCriteria();(0,i.useEffect)((()=>{var e;if($.isUpdateCriteriaEnabled()){const t=$.selectedRules[$.updateCriteriaIdx];if("PUSH"===t.type){p(J.PUSH.findIndex((e=>e.value===t.category)));const r=t.data;if(t.category===Y9||t.category===Z9||t.category===$9){r.token&&R(r.token),r.decimals&&F(L);const t=(r.contract||"eip155:1:0x").split(":");C(Z.findIndex((e=>e.value===t[0]+":"+t[1]))),x(3===t.length?t[2]:""),I((null===(e=r.tokenId)||void 0===e?void 0:e.toString())||""),z({value:r.amount||0,range:Q.findIndex((e=>e.value===r.comparison))})}else t.category===X9?T({admin:!0,owner:!0}):P(r.url||"")}else D(t.data.id),B(t.data.role),w(t.data.comparison||Que[2].value);l(W.findIndex((e=>e.value===t.type)))}}),[]),(0,i.useEffect)((()=>{const e=setTimeout((()=>pJ(void 0,void 0,void 0,(function*(){yield Jse({setValidationErrors:f,selectedCategoryValue:h,selectedTypeValue:u,dropdownCategoryValues:J,dropdownTypeValues:W,contract:E,setUnit:R,setDecimals:F,selectedChainValue:A,dropdownChainsValues:Z,tokenId:Number(S)})}))),2e3);return()=>clearTimeout(e)}),[E,h,A]);const X=e=>{V.showMessageToast({toastTitle:"Error",toastMessage:e,toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})};return(0,n.jsxs)(qme,Object.assign({theme:G,flexDirection:"column",gap:"12px",overflow:"hidden scroll",justifyContent:"start",padding:"0 2px 0 10px",width:q?"300px":"400px"},{children:[(0,n.jsx)(D7,Object.assign({margin:"0 0 5px 0"},{children:(0,n.jsx)(jce,{handleClose:t,handlePrevious:e,title:$.isUpdateCriteriaEnabled()?"Update Criteria":"Add Criteria"})})),(0,n.jsx)(rue,{labelName:"Type",selectedValue:u,dropdownValues:W}),(0,n.jsxs)(D7,Object.assign({zIndex:"unset",justifyContent:"space-between",alignItems:"center"},{children:[(0,n.jsx)(D7,Object.assign({width:"48%",zIndex:"unset"},{children:Array.isArray(zse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedTypeValue:u}))?(0,n.jsx)(rue,{labelName:"Gating Category",selectedValue:h,dropdownValues:zse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,selectedTypeValue:u})}):(0,n.jsx)(qce,{labelName:"Gating category",inputValue:null===(o=zse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,selectedTypeValue:u}))||void 0===o?void 0:o.title,disabled:!0,customStyle:{background:null===(a=G.backgroundColor)||void 0===a?void 0:a.modalHoverBackground}})})),(0,n.jsx)(D7,Object.assign({width:"48%"},{children:Array.isArray(Wse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,dropdownSubCategoryValues:Y,selectedTypeValue:u}))?(0,n.jsx)(rue,{labelName:"Sub-Category",selectedValue:g,dropdownValues:Wse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,dropdownSubCategoryValues:Y,selectedTypeValue:u})}):(0,n.jsx)(qce,{labelName:"Sub-category",inputValue:null===(s=Wse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,dropdownSubCategoryValues:Y,selectedTypeValue:u}))||void 0===s?void 0:s.title,disabled:!0,customStyle:{background:null===(c=G.backgroundColor)||void 0===c?void 0:c.modalHoverBackground}})}))]})),Vse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,selectedTypeValue:u})&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(rue,{labelName:"Blockchain",selectedValue:A,dropdownValues:Z}),(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(qce,{labelName:"Contract",inputValue:E,onInputChange:e=>x(e.target.value),placeholder:"e.g. 0x123...",error:!!(null==d?void 0:d.tokenError)}),!!(null==d?void 0:d.tokenError)&&(0,n.jsx)(Gme,{children:null==d?void 0:d.tokenError})]})),Kse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,selectedTypeValue:u})&&(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(qce,{labelName:"Token Id",inputValue:S,onInputChange:e=>I(e.target.value),placeholder:"e.g. 2",error:!!(null==d?void 0:d.tokenId)}),!!(null==d?void 0:d.tokenId)&&(0,n.jsx)(Gme,{children:null==d?void 0:d.tokenId})]})),(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(vue,{dropDownValues:Q,labelName:"Quantity",inputValue:U,error:!!(null==d?void 0:d.tokenAmount),onInputChange:e=>{z(Object.assign(Object.assign({},U),{value:e.target.value}))},placeholder:"e.g. 1.45678",unit:N}),!!(null==d?void 0:d.tokenAmount)&&(0,n.jsx)(Gme,{children:null==d?void 0:d.tokenAmount})]}))]}),Gse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,selectedTypeValue:u})&&(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(qce,{labelName:"URL",inputValue:M,onInputChange:e=>P(e.target.value),placeholder:"e.g. abc.com",error:!!(null==d?void 0:d.url)}),!!(null==d?void 0:d.url)&&(0,n.jsx)(Gme,{children:null==d?void 0:d.url})]})),qse({dropdownCategoryValues:J,dropdownTypeValues:W,selectedCategoryValue:h,selectedTypeValue:u})&&(0,n.jsx)(D7,Object.assign({flexDirection:"column",gap:"10px"},{children:Object.keys(que).map((e=>(0,n.jsx)(xue,{labelName:que[e],onToggle:()=>T({admin:!0,owner:!0}),checked:k[e]})))})),Qse(W,u)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(qce,{labelName:"ID",inputValue:j,onInputChange:e=>D(e.target.value),placeholder:"e.g. 4687",error:!!(null==d?void 0:d.guildId)}),!!(null==d?void 0:d.guildId)&&(0,n.jsx)(Gme,{children:null==d?void 0:d.guildId})]})),(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(pue,{options:Que,totalWidth:q?"400px":"410px",selectedValue:v,error:!!(null==d?void 0:d.guildComparison),handleClick:e=>{w(e)}}),!!(null==d?void 0:d.guildComparison)&&(0,n.jsx)(Gme,{children:null==d?void 0:d.guildComparison})]})),"specific"===v&&(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(qce,{labelName:"Specific Role",inputValue:O,onInputChange:e=>B(e.target.value),placeholder:"e.g. 4687",error:!!(null==d?void 0:d.guildRole)}),!!(null==d?void 0:d.guildRole)&&(0,n.jsx)(Gme,{children:null==d?void 0:d.guildRole})]}))]}),(0,n.jsxs)(yue,Object.assign({width:"197px",onClick:()=>pJ(void 0,void 0,void 0,(function*(){b(!0);const t=W[u].value,r="PUSH"===t?J[t][h].value||Y9:"ROLES";let n="DEFAULT";"PUSH"===t&&(r===Y9||r===Z9||r===$9?n=r7:r===e7&&(n="GET")),console.debug(A);const i={type:t,category:r,subcategory:n,data:Yse({type:t,category:r,contract:E,quantity:U,decimals:L,unit:N,url:M,inviteCheckboxes:k,guildComparison:v,specificRoleId:O,guildId:j,dropdownQuantityRangeValues:Q,selectedChainValue:A,dropdownChainsValues:Z,tokenId:Number(S)})},o=yield rce(i);if(b(!1),Object.keys(o).length)f(o);else{if(!$.addNewRule(i))return void X("Selected Criteria was already added");e&&e()}}))},{children:[!y&&($.isUpdateCriteriaEnabled()?"Update":"Add"),y&&(0,n.jsx)(k7,{size:"20",color:"#fff"})]})),(0,n.jsx)(_ue,{label:"Learn more about access gating rules",cta:"https://push.org/docs/chat/build/conditional-rules-for-group/"})]}))},Gme=(0,o.Ay)(B7).withConfig({displayName:"AddCriteria__ErrorSpan",componentId:"sc-l617j0-0"})(["font-size:12px;font-weight:500;color:#ed5858;"]),qme=(0,o.Ay)(D7).withConfig({displayName:"AddCriteria__ScrollSection",componentId:"sc-l617j0-1"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar-button{height:40px;}&::-webkit-scrollbar{width:4px;}"],(e=>e.theme.scrollbarColor)),Qme=({onSubmit:e,handlePrevious:t,onClose:r,memberList:i,handleMemberList:o,isLoading:a=!1,isPublic:s})=>{const{user:c,toast:u}=P5();return(0,n.jsx)(Lue,{title:"Create Group",submitButtonTitle:"Create Group",addMemberToList:e=>pJ(void 0,void 0,void 0,(function*(){var t;let r="";if(l8(e.wallets.toLowerCase())===l8((null!==(t=null==c?void 0:c.account)&&void 0!==t?t:"").toLowerCase())&&(r="Group Creator cannot be added as member"),Zse(e,i,"wallets")&&(r="Address is already added"),r)u.showMessageToast({toastTitle:"Error",toastMessage:r,toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})});else{const t=i;t.push(Object.assign(Object.assign({},e),{isAdmin:!1})),o(t)}})),onClose:r,onSubmit:e,isLoading:a,handlePrevious:t,memberList:i,totalAllowedMembers:s?25e3:5e3,handleMemberList:o})},Wme=1,Jme=2,Yme=3,Zme=4,$me=5,Xme=({onClose:e,closeModalOnClickAway:t=!1,modalBackground:r=k5.OVERLAY,modalPositionType:o=_5.GLOBAL,onSuccess:a})=>{const[s,c]=(0,i.useState)(Wme),{createGatedGroup:u,loading:l}=(()=>{const[e,t]=(0,i.useState)(!1),[r,n]=(0,i.useState)(),{user:o}=P5(),a=(0,i.useCallback)(((e,i)=>pJ(void 0,void 0,void 0,(function*(){t(!0),console.debug("user in create group ",o);try{const r={description:e.groupDescription,image:e.groupImage,private:!e.isPublic,members:e.members,admins:e.admins,rules:i},n=yield null==o?void 0:o.chat.group.create(e.groupName,r);return t(!1),n?{success:!0,data:n}:{success:!1,data:"Something went wrong"}}catch(r){return t(!1),n(r.message),r.message}}))),[o]);return{createGatedGroup:a,error:r,loading:e}})(),{toast:d,user:f}=P5(),h=()=>{c(s+1)},p=()=>{c(s+3)},g=()=>{c(s-3)},m=()=>{c(s-1)},y=(()=>{const[e,t]=(0,i.useState)(Nme.CHAT),r=Bme([[{type:"PUSH",category:"INVITE",subcategory:"DEFAULT",data:{inviterRoles:["ADMIN","OWNER"]}}]],["all"]),n=Bme([],[]),o=(e,t)=>(console.debug("generate",e),0===e.length?[]:(console.log(`Generating for ${JSON.stringify(e)}`),console.log("condition type",t),t.map(((t,r)=>{var n,i;return{[t]:null!==(i=null===(n=e[r])||void 0===n?void 0:n.map((e=>e)))&&void 0!==i?i:[]}}))));return{entryCriteria:r,chatCriteria:n,seletedCriteria:e,setSelectedCriteria:t,getSelectedCriteria:()=>e===Nme.CHAT?n:r,resetRules:()=>{r.selectEntryOptionsDataArrayForUpdate(-1),r.setSelectedRule([]),n.selectEntryOptionsDataArrayForUpdate(-1),n.setSelectedRule([])},resetCriteriaIdx:()=>{r.setUpdateCriteriaIdx(-1),console.debug(r,n),n.setUpdateCriteriaIdx(-1)},generateRule:()=>({entry:{conditions:{[r.entryRootCondition]:o(r.entryOptionsDataArray,r.entryOptionTypeArray)}},chat:{conditions:{[n.entryRootCondition]:o(n.entryOptionsDataArray,n.entryOptionTypeArray)}}})}})();(0,i.useEffect)((()=>{2===s?y.resetRules():3===s&&y.resetCriteriaIdx()}),[s]);const[b,v]=(0,i.useState)(!0),[w,A]=(0,i.useState)({groupName:"",groupDescription:"",groupImage:"",groupMembers:[],groupEncryptionType:Rme[0].value}),[C,E]=(0,i.useState)(!1),x=e=>{d.showMessageToast({toastTitle:"Error",toastMessage:e,toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})},S=()=>"encrypted"!==w.groupEncryptionType,I=()=>pJ(void 0,void 0,void 0,(function*(){""!==w.groupEncryptionType.trim()?yield pJ(void 0,void 0,void 0,(function*(){if(f)if(f.readmode())console.error("UIWeb::CreateGroupModal::createGroupService::User is in read mode.Switch to write mode"),d.showMessageToast({toastTitle:"Error",toastMessage:"Unable to create group in readMode. Switch to write mode",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})});else{const t={groupName:w.groupName,groupDescription:w.groupDescription,groupImage:w.groupImage||z4,isPublic:S(),members:w.groupMembers.filter((e=>!e.isAdmin)).map((e=>e.wallets)),admins:w.groupMembers.filter((e=>e.isAdmin)).map((e=>e.wallets))},r=b?y.generateRule():{},{success:i,data:o}=yield u(t,r);!0===i?(a&&a(o),d.showMessageToast({toastTitle:"Success",toastMessage:"Group created successfully",toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"green"})}),e()):x("Group creation failed")}})):x("Group encryption type is not selected")}));return(0,n.jsx)(Pce,Object.assign({onClose:e,closeonClickAway:t,modalBackground:r,modalPositionType:o},{children:(()=>{switch(s){case Wme:return(0,n.jsx)(eye,{checked:b,setChecked:v,criteriaStateManager:y,handleNext:h,onClose:e,groupInputDetails:w,setGroupInputDetails:A,isImageUploaded:C,setIsImageUploaded:E});case Jme:return(0,n.jsx)(Fme,{checked:b,setChecked:v,criteriaStateManager:y,groupInputDetails:w,setGroupInputDetails:A,handleNext:h,onClose:e,handlePrevious:m,handleAddWallets:p});case Yme:return(0,n.jsx)(Hme,{criteriaStateManager:y,handleNext:h,handlePrevious:m,onClose:e});case Zme:return(0,n.jsx)(Kme,{criteriaStateManager:y,handlePrevious:m,onClose:e});case $me:return(0,n.jsx)(Qme,{onSubmit:I,onClose:e,handlePrevious:g,memberList:w.groupMembers,handleMemberList:e=>{A((t=>Object.assign(Object.assign({},t),{groupMembers:e})))},isLoading:l,isPublic:S()});default:return(0,n.jsx)(eye,{criteriaStateManager:y,handlePrevious:m,onClose:e,groupInputDetails:w,setGroupInputDetails:A,isImageUploaded:C,setIsImageUploaded:E})}})()}))},eye=({handleNext:e,onClose:t,groupInputDetails:r,setGroupInputDetails:o,isImageUploaded:a,setIsImageUploaded:s})=>{const{groupName:c,groupDescription:u,groupImage:l}=r,d=(0,i.useContext)(Pae),[f,h]=(0,i.useState)({}),p=(0,i.useRef)(null),g=K9(c5.mobileL),[m,y]=(0,i.useState)();return(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"center",gap:"16px",overflow:"hidden auto",justifyContent:"start",width:g?"300px":"400px"},{children:[(0,n.jsx)(jce,{title:"Create Group",handleClose:t}),(0,n.jsxs)(tye,Object.assign({onClick:()=>{p.current&&p.current.click()}},{children:[a?l?(0,n.jsx)(nye,{children:(0,n.jsx)(n5,{src:l,objectFit:"contain",alt:"group image",width:"100%",height:"100%"})}):(0,n.jsx)(Hue,{imageSrc:m,onImageCropped:e=>o((t=>Object.assign(Object.assign({},t),{groupImage:e}))),width:void 0,height:void 0}):(0,n.jsx)(rye,Object.assign({theme:d},{children:(0,n.jsx)(AI.YVi,{fontSize:40,color:"rgba(87, 93, 115, 1)"})})),(0,n.jsx)(iye,{type:"file",accept:"image/*",className:"hidden",ref:p,onChange:e=>(e=>{if(e.target instanceof HTMLInputElement&&e.target.files&&e.target.files&&e.target.files.length&&s){s(!0),o((e=>Object.assign(Object.assign({},e),{groupImage:""})));const t=new FileReader;t.readAsDataURL(e.target.files[0]),t.onloadend=function(){y(t.result)}}})(e)})]})),(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(qce,{labelName:"Group Name",charCount:100,inputValue:c,onInputChange:e=>o((t=>Object.assign(Object.assign({},t),{groupName:e.target.value}))),error:!!(null==f?void 0:f.groupName)}),!!(null==f?void 0:f.groupName)&&(0,n.jsx)(oye,{children:null==f?void 0:f.groupName})]})),(0,n.jsxs)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:[(0,n.jsx)(cue,{labelName:"Group Description",charCount:150,inputValue:u,onInputChange:e=>o((t=>Object.assign(Object.assign({},t),{groupDescription:e.target.value}))),error:!!(null==f?void 0:f.groupDescription)}),!!(null==f?void 0:f.groupDescription)&&(0,n.jsx)(oye,{children:null==f?void 0:f.groupDescription})]})),(0,n.jsx)(yue,Object.assign({width:"197px",onClick:()=>{0!==c.trim().length?c.trim().length<3?h({groupName:"Group name should have minimum 3 character"}):0!==u.trim().length?u.trim().length<3?h({groupDescription:"Group Description should have minimum 3 character"}):e&&e():h({groupDescription:"Group Description is empty"}):h({groupName:"Group name cannot be empty"})}},{children:"Next"}))]}))},tye=o.Ay.div.withConfig({displayName:"CreateGroupModal__UploadContainer",componentId:"sc-2039dd-0"})(["width:fit-content;min-width:128px;min-height:128px;cursor:pointer;align-self:center;"]),rye=o.Ay.div.withConfig({displayName:"CreateGroupModal__ImageContainer",componentId:"sc-2039dd-1"})(["margin-top:10px;cursor:pointer;border-radius:32px;background:",";width:128px;cursor:pointer;height:128px;max-height:128px;display:flex;align-items:center;justify-content:center;"],(e=>e.theme.backgroundColor.modalHoverBackground)),nye=o.Ay.div.withConfig({displayName:"CreateGroupModal__UpdatedImageContainer",componentId:"sc-2039dd-2"})(["margin-top:10px;width:128px;cursor:pointer;height:128px;overflow:hidden;max-height:128px;border-radius:32px;"]),iye=o.Ay.input.withConfig({displayName:"CreateGroupModal__FileInput",componentId:"sc-2039dd-3"})(["display:none;"]),oye=(0,o.Ay)(B7).withConfig({displayName:"CreateGroupModal__ErrorSpan",componentId:"sc-2039dd-4"})(["font-size:12px;font-weight:500;color:#ed5858;"]),aye=({theme:e,setModal:t,closeUserProfileModalOnClickAway:r,userProfile:o,setUserProfile:a,updateUserProfileModalBackground:s=k5.OVERLAY,updateUserProfileModalPositionType:c=_5.GLOBAL})=>{var u,l,d,f,h,p,g,m,y,b;const{toast:v,user:w}=P5(),[A,C]=(0,i.useState)({name:o&&null!==(l=null===(u=null==o?void 0:o.profile)||void 0===u?void 0:u.name)&&void 0!==l?l:"",description:o&&null!==(f=null===(d=null==o?void 0:o.profile)||void 0===d?void 0:d.desc)&&void 0!==f?f:"",picture:o&&null!==(p=null===(h=null==o?void 0:o.profile)||void 0===h?void 0:h.picture)&&void 0!==p?p:""}),[E,x]=(0,i.useState)(),[S,I]=(0,i.useState)(!!A.picture),{updateProfileLoading:k,updateUserProfile:_}=r8(),T=K9(c5.mobileL),M=(0,i.useRef)(null),P=()=>{t(!1)},j=()=>pJ(void 0,void 0,void 0,(function*(){if(w)if(w.readmode())console.error("UIWeb::UserProfile::onUpdate::User is in read mode.Switch to write mode"),v.showMessageToast({toastTitle:"Error",toastMessage:"Unable to edit in readMode. Switch to write mode",toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})});else{"string"!=typeof(yield _({userProfileDetails:A}))?(v.showMessageToast({toastTitle:"Success",toastMessage:"User profile updated successfully",toastType:"SUCCESS",getToastIcon:e=>(0,n.jsx)(Iy,{size:e,color:"green"})}),a((e=>Object.assign(Object.assign({},e),{profile:Object.assign(Object.assign({},e.profile),{name:A.name,desc:A.description,picture:A.picture})}))),P()):D("User profile updation failed")}})),D=e=>{v.showMessageToast({toastTitle:"Error",toastMessage:e,toastType:"ERROR",getToastIcon:e=>(0,n.jsx)(_y,{size:e,color:"red"})})},O=()=>{M.current&&M.current.click()};return(0,n.jsx)(Pce,Object.assign({onClose:P,closeonClickAway:r,modalBackground:s,modalPositionType:c},{children:(0,n.jsxs)(D7,Object.assign({flexDirection:"column",alignItems:"center",gap:"16px",overflow:"hidden auto",justifyContent:"start",padding:"5px",width:T?"300px":"400px"},{children:[(0,n.jsx)(jce,{title:"Edit Profile",handleClose:P}),(0,n.jsxs)(D7,Object.assign({alignItems:"center",gap:"20px",justifyContent:"start"},{children:[(0,n.jsxs)(sye,Object.assign({onClick:O},{children:[S?A.picture?(0,n.jsx)(uye,{children:(0,n.jsx)(R7,{src:A.picture,objectFit:"contain",alt:"group image",width:"100%",height:"100%"})}):(0,n.jsx)(Hue,{imageSrc:E,onImageCropped:e=>C((t=>Object.assign(Object.assign({},t),{picture:e}))),width:void 0,height:void 0}):(0,n.jsx)(cye,Object.assign({theme:e},{children:(0,n.jsx)(AI.YVi,{fontSize:40,color:"rgba(87, 93, 115, 1)"})})),(0,n.jsx)(lye,{type:"file",accept:"image/*",className:"hidden",ref:M,onChange:e=>(e=>{if(e.target instanceof HTMLInputElement&&e.target.files&&e.target.files&&e.target.files.length&&I){I(!0),C((e=>Object.assign(Object.assign({},e),{picture:""})));const t=new FileReader;t.readAsDataURL(e.target.files[0]),t.onloadend=function(){x(t.result)}}})(e)})]})),(0,n.jsxs)(D7,Object.assign({flexDirection:"column",gap:"20px",alignItems:"center"},{children:[(0,n.jsx)(yue,Object.assign({width:"auto",height:"auto",customStyle:{background:null===(g=null==e?void 0:e.backgroundColor)||void 0===g?void 0:g.modalBackground,fontSize:"14px",border:`1px solid ${null===(m=null==e?void 0:e.backgroundColor)||void 0===m?void 0:m.buttonBackground}\n `,color:null===(y=null==e?void 0:e.backgroundColor)||void 0===y?void 0:y.buttonBackground,padding:"10px 15px"},onClick:O},{children:"Upload Photo"})),(0,n.jsx)(B7,Object.assign({cursor:"pointer",color:null===(b=null==e?void 0:e.textColor)||void 0===b?void 0:b.modalSubHeadingText,fontSize:"14px",fontWeight:"400",onClick:()=>{I(!1),C((e=>Object.assign(Object.assign({},e),{picture:""}))),x(null)}},{children:"Remove"}))]}))]})),(0,n.jsx)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:(0,n.jsx)(qce,{labelName:"Display Name",charCount:50,inputValue:A.name,onInputChange:e=>C((t=>Object.assign(Object.assign({},t),{name:e.target.value})))})})),(0,n.jsx)(D7,Object.assign({gap:"10px",flexDirection:"column",alignItems:"start"},{children:(0,n.jsx)(cue,{labelName:"Bio",charCount:150,inputValue:A.description,onInputChange:e=>C((t=>Object.assign(Object.assign({},t),{description:e.target.value})))})})),(0,n.jsx)(yue,Object.assign({width:"197px",onClick:()=>j()},{children:k?(0,n.jsx)(k7,{size:"20",color:"#fff"}):"Save Changes"}))]}))}))},sye=(0,o.Ay)(D7).withConfig({displayName:"UpdateUserProfileModal__UploadContainer",componentId:"sc-1hptyrp-0"})(["width:fit-content;min-width:128px;min-height:128px;cursor:pointer;align-self:center;"]),cye=o.Ay.div.withConfig({displayName:"UpdateUserProfileModal__ImageContainer",componentId:"sc-1hptyrp-1"})(["margin-top:10px;cursor:pointer;border-radius:32px;background:",";width:128px;cursor:pointer;height:128px;max-height:128px;display:flex;align-items:center;justify-content:center;"],(e=>e.theme.backgroundColor.modalHoverBackground)),uye=o.Ay.div.withConfig({displayName:"UpdateUserProfileModal__UpdatedImageContainer",componentId:"sc-1hptyrp-2"})(["margin-top:10px;width:128px;cursor:pointer;height:128px;overflow:hidden;max-height:128px;border-radius:32px;"]),lye=o.Ay.input.withConfig({displayName:"UpdateUserProfileModal__FileInput",componentId:"sc-1hptyrp-3"})(["display:none;"]);const dye=({updateUserProfileModalBackground:e=k5.OVERLAY,updateUserProfileModalPositionType:t=_5.GLOBAL,onUserProfileUpdateModalOpen:r,closeUserProfileModalOnClickAway:o=!1})=>{var a,s,c,u,l,d,f;const{user:h}=P5(),[p,g]=(0,i.useState)(),[m,y]=(0,i.useState)(null),[b,v]=(0,i.useState)(),[w,A]=(0,i.useState)(!1),C=(0,i.useRef)(null),E=(0,i.useContext)(Pae),{fetchChatProfile:x}=(()=>{const{user:e}=P5(),t=(0,i.useCallback)((({profileId:t,user:r=e,env:n})=>pJ(void 0,void 0,void 0,(function*(){try{let e;return r&&(e=t?yield r.info({overrideAccount:t}):yield r.info()),e}catch(ys){return void console.log(ys)}}))),[]);return{fetchChatProfile:t}})();return K9(c5.mobileL),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){const e=yield x({user:h});if(e){const t=yield d8(null==e?void 0:e.wallets,null==h?void 0:h.env);y(t),g(e)}}))}),[h]),H9(C,(()=>{v(!1)})),(0,i.useEffect)((()=>{r&&r(w)}),[w]),(0,n.jsxs)(fye,Object.assign({height:"inherit",justifyContent:"space-between",overflow:"hidden",width:"100%",padding:"14px 10px",borderRadius:null===(a=null==E?void 0:E.borderRadius)||void 0===a?void 0:a.userProfile,background:null===(s=null==E?void 0:E.backgroundColor)||void 0===s?void 0:s.userProfileBackground,theme:E},{children:[(0,n.jsx)(_ce,{theme:E,member:{web3Name:m,abbrRecipient:s9(l8((null==h?void 0:h.account)||""),8,!0),recipient:h.account,icon:(null===(c=null==p?void 0:p.profile)||void 0===c?void 0:c.picture)||null},copy:!0,customStyle:{fontSize:null===(u=null==E?void 0:E.fontSize)||void 0===u?void 0:u.userProfileText,fontWeight:null===(l=null==E?void 0:E.fontWeight)||void 0===l?void 0:l.userProfileText,textColor:null===(d=null==E?void 0:E.textColor)||void 0===d?void 0:d.userProfileText},loading:!p}),p&&(0,n.jsx)(D7,{children:(0,n.jsx)(R7,{src:Ble,height:"21px",maxHeight:"21px",color:null===(f=null==E?void 0:E.iconColor)||void 0===f?void 0:f.userProfileSettings,width:"auto",cursor:"pointer",onClick:()=>v(!0)})}),b&&(0,n.jsx)(hye,Object.assign({theme:E,ref:C,onClick:()=>A(!0)},{children:(0,n.jsxs)(pye,Object.assign({cursor:"pointer"},{children:[(0,n.jsx)(R7,{src:"data:image/svg+xml,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg id='UserCircleGear' clip-path='url(%23clip0_22685_36438)'%3e%3cpath id='Vector' d='M25 9C26.1046 9 27 8.10457 27 7C27 5.89543 26.1046 5 25 5C23.8954 5 23 5.89543 23 7C23 8.10457 23.8954 9 25 9Z' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_2' d='M25 5V3.5' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_3' d='M23.2675 6L21.9688 5.25' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_4' d='M23.2675 8L21.9688 8.75' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_5' d='M25 9V10.5' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_6' d='M26.7324 8L28.0312 8.75' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_7' d='M26.7324 6L28.0312 5.25' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_8' d='M16 20C18.7614 20 21 17.7614 21 15C21 12.2386 18.7614 10 16 10C13.2386 10 11 12.2386 11 15C11 17.7614 13.2386 20 16 20Z' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_9' d='M7.97461 24.9212C8.727 23.4393 9.87506 22.1946 11.2915 21.3251C12.708 20.4557 14.3376 19.9955 15.9996 19.9955C17.6616 19.9955 19.2912 20.4557 20.7077 21.3251C22.1242 22.1946 23.2722 23.4393 24.0246 24.9212' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath id='Vector_10' d='M27.8342 14C28.2561 16.5067 27.8704 19.0826 26.7328 21.3558C25.5953 23.6289 23.7647 25.4818 21.5054 26.6467C19.2461 27.8116 16.6751 28.2284 14.1635 27.8368C11.6519 27.4452 9.32973 26.2656 7.53231 24.4682C5.73489 22.6707 4.55522 20.3486 4.16364 17.837C3.77206 15.3254 4.18883 12.7543 5.35377 10.4951C6.51871 8.23579 8.37154 6.4052 10.6447 5.26763C12.9179 4.13005 15.4938 3.74436 18.0005 4.16624' stroke='%23494D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_22685_36438'%3e%3crect width='32' height='32' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",height:"32px",maxHeight:"32px",width:"auto",cursor:"pointer"}),(0,n.jsx)(gye,Object.assign({cursor:"pointer"},{children:"Edit Profile"}))]}))})),w&&(0,pI.createPortal)((0,n.jsx)(aye,{theme:E,setModal:A,closeUserProfileModalOnClickAway:o,userProfile:p,setUserProfile:g,updateUserProfileModalBackground:e,updateUserProfileModalPositionType:t}),document.body)]}))},fye=(0,o.Ay)(D7).withConfig({displayName:"UserProfile__Conatiner",componentId:"sc-1iihn7f-0"})(["border:",";box-sizing:border-box;"],(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.userProfile})),hye=o.Ay.div.withConfig({displayName:"UserProfile__DropDownBar",componentId:"sc-1iihn7f-1"})(["position:absolute;bottom:13px;right:29px;cursor:pointer;display:block;min-width:170px;color:rgb(101,119,149);background:",";border:",";z-index:10;border-radius:",";"],(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents)),pye=(0,o.Ay)(B7).withConfig({displayName:"UserProfile__DropDownItem",componentId:"sc-1iihn7f-2"})(["display:flex;flex-direction:row;align-items:center;gap:8px;padding:8px;border-radius:16px;z-index:3000000;width:100%;"]),gye=(0,o.Ay)(B7).withConfig({displayName:"UserProfile__TextItem",componentId:"sc-1iihn7f-3"})(["white-space:nowrap;overflow:hidden;"]),mye=({chatId:e,isModalOpen:t,setIsModalOpen:r,modalTitle:o,welcomeComponent:a})=>{var s,c;const{user:u}=P5(),l=(0,i.useContext)(Pae),[d,f]=(0,i.useState)({loading:!0,derivedChatId:""});return(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(f((e=>Object.assign(Object.assign({},e),{loading:!0}))),e){const t=yield O8(e,u);f({loading:!1,derivedChatId:t})}else f({loading:!1,derivedChatId:""})}))}),[e,u]),(0,n.jsxs)(yye,Object.assign({theme:l},{children:[(0,n.jsxs)(bye,Object.assign({theme:l,position:"relative"},{children:[(0,n.jsx)(B7,Object.assign({textAlign:"center",fontSize:"20px",fontWeight:"500",color:null===(s=null==l?void 0:l.textColor)||void 0===s?void 0:s.chatWidgetModalHeadingText},{children:o})),(0,n.jsx)(D7,Object.assign({position:"absolute",right:"5px",onClick:()=>r(!t)},{children:(0,n.jsx)(Coe,{})}))]})),!d.loading&&e?(0,n.jsxs)(D7,Object.assign({flexDirection:"column",height:"82%"},{children:[(0,n.jsx)(D7,Object.assign({flex:"0 1 auto"},{children:(0,n.jsx)(Nle,{chatId:d.derivedChatId})})),(0,n.jsx)(D7,Object.assign({flex:"1 1 auto",overflow:"hidden",padding:"0 2px",flexDirection:"column",justifyContent:"start"},{children:!u||u&&(null==u?void 0:u.readmode())?(0,n.jsx)(n.Fragment,{children:a}):(0,n.jsx)(lme,{chatId:d.derivedChatId})})),(0,n.jsx)(D7,Object.assign({flex:"0 1 auto",position:"static"},{children:(0,n.jsx)(bme,{chatId:d.derivedChatId,autoConnect:!1})}))]})):null,(0,n.jsx)(O7,Object.assign({width:"100%",textAlign:"center"},{children:(0,n.jsx)(Boe,{color:null===(c=null==l?void 0:l.textColor)||void 0===c?void 0:c.chatWidgetModalHeadingText})}))]}))},yye=o.Ay.div.withConfig({displayName:"Modal__Container",componentId:"sc-1dsqqzn-0"})(["display:flex;gap:10px;flex-direction:column;box-sizing:border-box;background:",";border:",";box-shadow:0px 0px 5px rgba(0,0,0,0.07);border-radius:",";height:585px;max-height:585px;width:350px;max-width:350px;padding:0 15px;"],(e=>{var t,r;return null===(r=null===(t=e.theme)||void 0===t?void 0:t.backgroundColor)||void 0===r?void 0:r.chatWidgetModalBackground}),(e=>{var t,r;return null===(r=null===(t=e.theme)||void 0===t?void 0:t.border)||void 0===r?void 0:r.chatWidget}),(e=>{var t,r;return null===(r=null===(t=e.theme)||void 0===t?void 0:t.borderRadius)||void 0===r?void 0:r.chatWidget})),bye=(0,o.Ay)(D7).withConfig({displayName:"Modal__HeaderSection",componentId:"sc-1dsqqzn-1"})(["border-bottom:",";align-items:center;justify-content:center;padding:17px;"],(e=>{var t;return null===(t=e.theme.border)||void 0===t?void 0:t.chatWidget})),vye=({chatId:e,modalTitle:t=M4.DEFAULT_TITLE,welcomeComponent:r=null})=>{const[o,a]=(0,i.useState)(!1),s=(0,i.useContext)(Pae);return(0,n.jsxs)(wye,{children:[!o&&(0,n.jsx)(Aye,Object.assign({theme:s,onClick:()=>a(!o)},{children:(0,n.jsx)(O7,Object.assign({cursor:"pointer"},{children:(0,n.jsx)(moe,{})}))})),o&&(0,n.jsx)(mye,{chatId:e,isModalOpen:o,setIsModalOpen:a,modalTitle:t,welcomeComponent:r})]})},wye=o.Ay.div.withConfig({displayName:"ChatWidget__Container",componentId:"sc-1jxlr0m-0"})(["font-family:'Strawford';flex:1;display:flex;position:fixed;bottom:0;right:0;width:fit-content;z-index:9999999999;margin:0 3rem 2rem 0;align-items:center;justify-content:center;"]),Aye=o.Ay.button.withConfig({displayName:"ChatWidget__Button",componentId:"sc-1jxlr0m-1"})(["background:",";border:none;cursor:pointer;border-radius:18px;padding:16.5px 16.5px 13px 18.5px;"],(e=>{var t,r;return null===(r=null===(t=e.theme)||void 0===t?void 0:t.backgroundColor)||void 0===r?void 0:r.buttonBackground})),Cye=({children:e})=>{const{account:t,env:r,acceptSpaceRequest:o,connectSpaceRequest:a,broadcastRaisedHand:s}=M9();return(({account:e,acceptSpaceRequest:t,connectSpaceRequest:r,broadcastRaisedHand:n,env:o=T4.PROD})=>{const[a,s]=(0,i.useState)(null),[c,u]=(0,i.useState)(!1),l=(0,i.useCallback)((()=>{null==a||a.on(T.EVENTS.CONNECT,(()=>{u(!0)})),null==a||a.on(T.EVENTS.DISCONNECT,(()=>{u(!1)})),null==a||a.on(T.EVENTS.USER_FEEDS,(e=>{var i,o,a,s;const{payload:c}=e;if(console.log("USER FEEDS NOTIFICATION RECEIVED",null===(o=null===(i=null==c?void 0:c.data)||void 0===i?void 0:i.additionalMeta)||void 0===o?void 0:o.type,`${_.payloads.ADDITIONAL_META_TYPE.PUSH_SPACE}+1`),(null===(s=null===(a=null==c?void 0:c.data)||void 0===a?void 0:a.additionalMeta)||void 0===s?void 0:s.type)===`${_.payloads.ADDITIONAL_META_TYPE.PUSH_SPACE}+1`){const e=JSON.parse(c.data.additionalMeta.data),{callDetails:i,status:o}=e;console.log("RECEIVED ADDITIONAL META DATA",e),o===_.VideoCallStatus.INITIALIZED&&((null==i?void 0:i.type)===_.payloads.SPACE_REQUEST_TYPE.JOIN_SPEAKER&&(console.log("ON HOST, ACCEPTING REQUEST OF AN ADDED SPEAKER TO JOIN"),t(e)),(null==i?void 0:i.type)===_.payloads.SPACE_REQUEST_TYPE.ESTABLISH_MESH&&t(e),(null==i?void 0:i.type)===_.payloads.SPACE_REQUEST_TYPE.REQUEST_TO_PROMOTE&&n(e)),o===_.VideoCallStatus.RECEIVED&&r(e),o===_.VideoCallStatus.DISCONNECTED&&(null==i||i.type,_.payloads.SPACE_DISCONNECT_TYPE.LEAVE,null==i||i.type,_.payloads.SPACE_DISCONNECT_TYPE.STOP)}}))}),[t,r,a]),d=(0,i.useCallback)((()=>{null==a||a.off(T.EVENTS.CONNECT),null==a||a.off(T.EVENTS.DISCONNECT),null==a||a.off(T.EVENTS.USER_FEEDS)}),[a]);(0,i.useEffect)((()=>(a&&l(),()=>{a&&d()})),[l,a,d]),(0,i.useEffect)((()=>{e&&(a&&(null==a||a.disconnect()),pJ(void 0,void 0,void 0,(function*(){const t=(0,T.createSocketConnection)({user:l8(e),env:o,socketType:"notification",socketOptions:{autoConnect:!0,reconnectionAttempts:3}});console.warn("new connection object: ",t),s(t)})).catch((e=>console.error(e))))}),[e,o])})({account:t,env:r,acceptSpaceRequest:o,connectSpaceRequest:a,broadcastRaisedHand:s}),(({account:e,env:t=T4.PROD})=>{const{spaceRequests:r,setSpaceRequests:n,popularSpaces:o,setPopularSpaces:a,mySpaces:s,setMySpaces:c,setSpaceInfo:u,pushSpaceSocket:l,setPushSpaceSocket:d,isPushSDKSocketConnected:f,setIsPushSDKSocketConnected:h,spacesObjectRef:p}=M9(),g=(0,i.useCallback)((()=>{console.log("addSocketEvents"),null==l||l.on(T.EVENTS.CONNECT,(()=>{h(!0)})),null==l||l.on(T.EVENTS.DISCONNECT,(e=>{h(!1)})),null==l||l.on("SPACES_MESSAGES",(e=>pJ(void 0,void 0,void 0,(function*(){var t,r,n,i;console.log("SPACES_MESSAGES RECEIVED",e),"Request"!==(null==e?void 0:e.messageCategory)&&"Approve"!==(null==e?void 0:e.messageCategory)||(yield null===(r=null===(t=null==p?void 0:p.current)||void 0===t?void 0:t.onJoinListener)||void 0===r?void 0:r.call(t,{receivedAddress:null==e?void 0:e.fromCAIP10})),"Chat"===(null==e?void 0:e.messageCategory)&&"Meta"===(null==e?void 0:e.messageType)&&(null===(i=null===(n=null==p?void 0:p.current)||void 0===n?void 0:n.onReceiveMetaMessage)||void 0===i||i.call(n,{receivedMetaMessage:e}))})))),null==l||l.on("SPACES",(i=>pJ(void 0,void 0,void 0,(function*(){var l,d,f,h,p,g,m,y;if(console.log("SPACES EVENT RECEIVED",i),u(i.spaceId,i),null===(l=null==i?void 0:i.pendingMembers)||void 0===l?void 0:l.some((t=>L9(e,t.wallet))))if(null!==(f=null===(d=null==r?void 0:r.apiData)||void 0===d?void 0:d.some((e=>e.spaceId===i.spaceId)))&&void 0!==f&&f){const e=null===(h=null==r?void 0:r.apiData)||void 0===h?void 0:h.map((e=>e.spaceId===i.spaceId?Object.assign(Object.assign({},e),{spaceInformation:i}):e));n({apiData:e})}else{const o=[yield _.space.space({account:e,env:t,recipient:i.spaceId,toDecrypt:!1}),...(null==r?void 0:r.apiData)||[]];n({apiData:o})}else if(null!==(g=null===(p=null==s?void 0:s.apiData)||void 0===p?void 0:p.some((e=>e.spaceId===i.spaceId)))&&void 0!==g&&g){const e=null===(m=null==s?void 0:s.apiData)||void 0===m?void 0:m.map((e=>e.spaceId===i.spaceId?Object.assign(Object.assign({},e),{spaceInformation:i}):e));c({apiData:e})}else{const r=[yield _.space.space({account:e,env:t,recipient:i.spaceId,toDecrypt:!1}),...(null==s?void 0:s.apiData)||[]];c({apiData:r})}const b=null===(y=null==o?void 0:o.apiData)||void 0===y?void 0:y.map((e=>e.spaceId===i.spaceId?Object.assign(Object.assign({},e),{spaceInformation:i}):e));a({apiData:b})}))))}),[l,r,o,s,u,a,e,n,t,c]),m=(0,i.useCallback)((()=>{null==l||l.off(T.EVENTS.CONNECT),null==l||l.off(T.EVENTS.DISCONNECT),null==l||l.off(T.EVENTS.CHAT_GROUPS),null==l||l.off(T.EVENTS.CHAT_RECEIVED_MESSAGE)}),[l]);(0,i.useEffect)((()=>(l&&g(),()=>{l&&m()})),[l]),(0,i.useEffect)((()=>{e&&(l&&(null==l||l.disconnect()),pJ(void 0,void 0,void 0,(function*(){const r=(0,T.createSocketConnection)({user:e,env:t,socketType:"chat",socketOptions:{autoConnect:!0,reconnectionAttempts:3}});console.warn("new connection object: ",r),d(r)})).catch((e=>console.error(e))))}),[e,t]),(0,i.useEffect)((()=>{console.log("isPushSDKSocketConnected",f)}),[f])})({account:t,env:r}),(0,n.jsx)(n.Fragment,{children:e})};var Eye;!function(e){e.ForYou="For You",e.Popular="Popular",e.HostedByYou="Hosted by you"}(Eye||(Eye={}));const xye=({spaceUI:e,theme:t,children:r})=>{var o,a,s,c,u,l,d;const f=(0,i.useRef)({}),[h,p]=(0,i.useState)(u8(e.account)),[g,m]=(0,i.useState)(e.signer),[y,b]=(0,i.useState)(e.pgpPrivateKey),[v,w]=(0,i.useState)(e.env),[A,C]=(0,i.useState)(R9(e.account,e.env)),[E,x]=(0,i.useState)(""),[S,I]=(0,i.useState)(Eye.Popular),[k,T]=(0,i.useState)({}),[M,P]=(0,i.useState)(null),[j,D]=(0,i.useState)({}),[O,B]=(0,i.useState)(_.space.initSpaceData),[N,R]=(0,i.useState)({}),[L,F]=(0,i.useState)({apiData:[],currentPage:1,lastPage:2}),[U,z]=(0,i.useState)({apiData:[],currentPage:1,lastPage:2}),[H,V]=(0,i.useState)({apiData:[],currentPage:1,lastPage:2}),[K,G]=(0,i.useState)(null),[q,Q]=(0,i.useState)(!1),W=Boolean((null===(s=null===(a=null===(o=null==O?void 0:O.connectionData)||void 0===o?void 0:o.meta)||void 0===a?void 0:a.broadcast)||void 0===s?void 0:s.livepeerInfo)||(null==O?void 0:O.spaceDescription)),J=gB({provider:(Y={apiKey:"ac9d3e33-56c2-4a22-a328-a08a46fd9356"},()=>new wR({...bR,...Y}))});var Y;const Z=Boolean((null===(c=null==O?void 0:O.members)||void 0===c?void 0:c.find((e=>{if(L9(h,null==O?void 0:O.spaceCreator))return!1;const t=e.wallet;return L9(h,t)&&e.isSpeaker})))||(null===(u=null==O?void 0:O.pendingMembers)||void 0===u?void 0:u.find((e=>{const t=e.wallet;return L9(h,t)&&e.isSpeaker})))||(null===(d=null===(l=null==O?void 0:O.liveSpaceData)||void 0===l?void 0:l.speakers)||void 0===d?void 0:d.find((e=>e.address===l8(h))))),$=!!O.spaceId&&!Z,X={account:h,setAccount:p,signer:g,setSigner:m,pgpPrivateKey:y,setPgpPrivateKey:b,env:v,setEnv:w,chainId:A,setChainId:C,trendingListData:M,setTrendingListData:P,spaceInfo:j,setSpaceInfo:(e,t)=>{D((r=>Object.assign(Object.assign({},r),{[e]:t})))},getSpaceInfo:e=>j[e],spaceWidgetId:E,setSpaceWidgetId:x,selectedFeedTab:S,setSelectedFeedTab:I,mySpaces:L,setMySpaces:e=>{const{apiData:t,currentPage:r,lastPage:n}=e;F((e=>{var i;if(t){const r=new Set(null===(i=e.apiData)||void 0===i?void 0:i.map((e=>e.spaceId))),n=null==t?void 0:t.filter((e=>!r.has(e.spaceId)));let o=[];return e.apiData?(o=[...e.apiData,...n],o.sort(((e,t)=>new Date(t.intentTimestamp).getTime()-new Date(e.intentTimestamp).getTime()))):o=n,Object.assign(Object.assign({},e),o.length>0&&{apiData:o})}return Object.assign(Object.assign(Object.assign({},e),r&&{currentPage:r}),n&&{lastPage:n})}))},popularSpaces:U,setPopularSpaces:e=>{const{apiData:t,currentPage:r,lastPage:n}=e;z((e=>{var i;if(t){const r=new Set(null===(i=e.apiData)||void 0===i?void 0:i.map((e=>e.spaceId))),n=null==t?void 0:t.filter((e=>!r.has(e.spaceId)));let o=[];return e.apiData?(o=[...e.apiData,...n],o.sort(((e,t)=>new Date(t.intentTimestamp).getTime()-new Date(e.intentTimestamp).getTime()))):o=n,Object.assign(Object.assign({},e),o.length>0&&{apiData:o})}return Object.assign(Object.assign(Object.assign({},e),r&&{currentPage:r}),n&&{lastPage:n})}))},spaceRequests:H,setSpaceRequests:e=>{const{apiData:t,currentPage:r,lastPage:n}=e;V((e=>{var i;if(t){const r=new Set(null===(i=e.apiData)||void 0===i?void 0:i.map((e=>e.spaceId))),n=null==t?void 0:t.filter((e=>!r.has(e.spaceId)));let o=[];return e.apiData?(o=[...e.apiData,...n],o.sort(((e,t)=>new Date(t.intentTimestamp).getTime()-new Date(e.intentTimestamp).getTime()))):o=n,Object.assign(Object.assign({},e),o.length>0&&{apiData:o})}return Object.assign(Object.assign(Object.assign({},e),r&&{currentPage:r}),n&&{lastPage:n})}))},pushSpaceSocket:K,setPushSpaceSocket:G,isPushSDKSocketConnected:q,setIsPushSDKSocketConnected:Q,spaceObjectData:O,setSpaceObjectData:B,initSpaceObject:e=>pJ(void 0,void 0,void 0,(function*(){g&&(f.current=new _.space.Space({signer:g,pgpPrivateKey:y,address:h,chainId:A,env:v,setSpaceData:B}),yield f.current.initialize({spaceId:e}))})),spacesObjectRef:f,isJoined:W,isSpeaker:Z,isListener:$,speakerData:k,setSpeakerData:(e,t)=>{T((r=>Object.assign(Object.assign({},r),{[e]:t})))},acceptSpaceRequest:({senderAddress:e,recipientAddress:t,chatId:r,signalData:n})=>pJ(void 0,void 0,void 0,(function*(){var i;console.log("INSIDE WRAPPER ACCEPT REQUEST","spacesObjectRef?.current",null==f?void 0:f.current),yield null===(i=f.current)||void 0===i?void 0:i.acceptRequest({recipientAddress:e,senderAddress:t,chatId:r,signalData:n})})),connectSpaceRequest:({senderAddress:e,signalData:t})=>pJ(void 0,void 0,void 0,(function*(){console.log("INSIDE WRAPPER CONNECT","spacesObjectRef?.current",null==f?void 0:f.current),yield f.current.connect({peerAddress:e,signalData:t})})),broadcastRaisedHand:e=>pJ(void 0,void 0,void 0,(function*(){yield f.current.broadcastRaisedHand({promoteeAddress:l8(e.senderAddress)}),R((t=>Object.assign(Object.assign({},t),{[e.senderAddress]:e})))})),customSearch:undefined,raisedHandInfo:N};(0,i.useEffect)((()=>{T({}),B(_.space.initSpaceData),V({apiData:[],currentPage:1,lastPage:2}),F({apiData:[],currentPage:1,lastPage:2}),p(u8(e.account)),w(e.env),C(R9(e.account,e.env))}),[e.account,e.env]),(0,i.useEffect)((()=>{m(e.signer),b(e.pgpPrivateKey)}),[e.pgpPrivateKey,e.signer]);const ee=Object.assign({},Ute,t);return e.init(),(0,n.jsx)(HF,Object.assign({client:J},{children:(0,n.jsx)(zte.Provider,Object.assign({value:ee},{children:(0,n.jsx)(l5.Provider,Object.assign({value:X},{children:(0,n.jsx)(Cye,{children:r})}))}))}))};var Sye="data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg id='a' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 329.62 452.94'%3e%3cdefs%3e%3cstyle%3e.h%7bfill:url(%23e)%3b%7d.i%7bfill:url(%23d)%3b%7d.j%7bfill:url(%23g)%3b%7d.k%7bfill:url(%23f)%3b%7d.l%7bfill:url(%23c)%3b%7d.m%7bfill:url(%23b)%3b%7d%3c/style%3e%3clinearGradient id='b' x1='188.38' y1='180.56' x2='147.63' y2='111.29' gradientTransform='translate(0 438.53) scale(1 -1)' gradientUnits='userSpaceOnUse'%3e%3cstop offset='0' stop-color='%23ff94a6'/%3e%3cstop offset='.32' stop-color='%23e03dc1'/%3e%3cstop offset='1' stop-color='%238247e5'/%3e%3c/linearGradient%3e%3clinearGradient id='c' x1='207.9' y1='181.3' x2='121.94' y2='303.46' gradientTransform='matrix(1%2c 0%2c 0%2c 1%2c 0%2c 0)' xlink:href='%23b'/%3e%3clinearGradient id='d' x1='277.12' y1='319.97' x2='68.41' y2='181.43' xlink:href='%23b'/%3e%3clinearGradient id='e' x1='275.17' y1='322.92' x2='66.45' y2='184.38' xlink:href='%23b'/%3e%3clinearGradient id='f' x1='238.15' y1='378.69' x2='29.43' y2='240.15' xlink:href='%23b'/%3e%3clinearGradient id='g' x1='227.9' y1='394.13' x2='19.27' y2='255.65' xlink:href='%23b'/%3e%3c/defs%3e%3cpath class='m' d='M154.92%2c334.91c12.77%2c0%2c23.73-7.65%2c28.6-18.61%2c1.18-2.67-.79-5.67-3.71-5.67h-49.78c-2.92%2c0-4.9%2c3-3.71%2c5.67%2c4.87%2c10.96%2c15.83%2c18.61%2c28.6%2c18.61Z'/%3e%3cpath class='l' d='M231.3%2c280.49c-8.1%2c0-14.66-6.56-14.66-14.66v-53.26c0-28.86-19.81-53.09-46.57-59.85-.98-7.61-7.47-13.5-15.35-13.5s-14.42%2c5.94-15.36%2c13.59c-24.02%2c6.23-42.34%2c26.56-45.64%2c51.63-.05%2c.37-.1%2c.73-.14%2c1.1-.06%2c.5-.11%2c.99-.15%2c1.49-.04%2c.5-.08%2c1-.11%2c1.5-.03%2c.42-.06%2c.83-.08%2c1.25-.04%2c.84-.06%2c1.69-.06%2c2.55%2c0%2c.08%2c0%2c.16%2c0%2c.24v53.25c0%2c8.06-6.5%2c14.6-14.55%2c14.66-3.84%2c.03-7.01%2c2.99-7.01%2c6.84v.06c0%2c3.81%2c3.09%2c6.9%2c6.9%2c6.9H231.28c3.81%2c0%2c6.9-3.09%2c6.9-6.9%2c.02-3.8-3.07-6.89-6.88-6.89Z'/%3e%3cg%3e%3cpath class='i' d='M199.15%2c142.21c17.18%2c3.68%2c30.3%2c18.47%2c31.92%2c35.97%2c.18%2c1.94%2c1.87%2c3.39%2c3.85%2c3.2%2c.94-.09%2c1.79-.54%2c2.4-1.26%2c.6-.73%2c.89-1.65%2c.8-2.59-.95-10.22-5.07-19.67-11.92-27.35-6.8-7.61-15.64-12.76-25.57-14.89-.25-.05-.5-.08-.74-.08-1.63%2c0-3.11%2c1.14-3.46%2c2.8-.41%2c1.91%2c.81%2c3.79%2c2.72%2c4.2Z'/%3e%3cpath class='h' d='M203.12%2c119.43c26.73%2c5.73%2c47.16%2c28.75%2c49.68%2c55.97%2c.18%2c1.94%2c1.87%2c3.38%2c3.85%2c3.2%2c.94-.09%2c1.79-.54%2c2.4-1.26%2c.6-.73%2c.89-1.65%2c.8-2.59-1.39-15.05-7.47-28.99-17.57-40.29-10.02-11.22-23.05-18.81-37.67-21.95-.25-.05-.5-.08-.74-.08-1.63%2c0-3.11%2c1.14-3.46%2c2.8-.42%2c1.91%2c.8%2c3.79%2c2.71%2c4.2Z'/%3e%3cpath class='k' d='M110.68%2c142.21c1.91-.41%2c3.13-2.3%2c2.72-4.21-.36-1.66-1.83-2.8-3.46-2.8-.24%2c0-.49%2c.03-.74%2c.08-9.93%2c2.13-18.77%2c7.28-25.57%2c14.89-6.85%2c7.67-10.98%2c17.13-11.92%2c27.35-.09%2c.94%2c.2%2c1.86%2c.8%2c2.59s1.46%2c1.18%2c2.4%2c1.26c1.99%2c.18%2c3.67-1.26%2c3.85-3.2%2c1.62-17.48%2c14.75-32.27%2c31.92-35.96Z'/%3e%3cpath class='j' d='M106.71%2c119.43c1.91-.41%2c3.13-2.3%2c2.72-4.21-.36-1.66-1.83-2.8-3.46-2.8-.25%2c0-.49%2c.03-.74%2c.08-14.63%2c3.14-27.65%2c10.73-37.67%2c21.95-10.1%2c11.31-16.17%2c25.24-17.57%2c40.29-.09%2c.94%2c.2%2c1.86%2c.8%2c2.59s1.46%2c1.18%2c2.4%2c1.26c1.98%2c.18%2c3.67-1.26%2c3.85-3.2%2c2.52-27.21%2c22.95-50.22%2c49.67-55.96Z'/%3e%3c/g%3e%3c/svg%3e";const Iye={name:"Push Protocol",logo:Sye,icon:Sye,description:"Example showcasing how to connect a wallet.",recommendedInjectedWallets:[{name:"MetaMask",url:"https://metamask.io"}]},kye=sz({projectId:F4,requiredChains:[1,56]}),_ye=VF({darkMode:!0}),Tye=[{id:"0x1",token:"ETH",label:"Ethereum Mainnet",rpcUrl:`https://mainnet.infura.io/v3/${O4}`},{id:"0xAA36A7",token:"ETH",label:"Sepolia",rpcUrl:`https://sepolia.infura.io/v3/${O4}`},{id:"0x13882",token:"MATIC",label:"Polygon - Amoy",rpcUrl:"https://rpc-amoy.polygon.technology"},{id:"0x38",token:"BNB",label:"Binance",rpcUrl:"https://bsc-dataseed.binance.org/"},{id:"0xA",token:"OETH",label:"Optimism",rpcUrl:"https://mainnet.optimism.io"},{id:"0xA4B1",token:"ARB-ETH",label:"Arbitrum",rpcUrl:"https://rpc.ankr.com/arbitrum"}],Mye=[rz(),kye,_ye],Pye=(0,l.aB)({wallets:Mye,chains:Tye,appMetadata:Iye,accountCenter:{desktop:{enabled:!1},mobile:{enabled:!1}},connect:{autoConnectLastWallet:!0}}),jye=({children:e})=>(0,n.jsx)(m,Object.assign({web3Onboard:Pye},{children:e})),Dye={log:console.log,debug:console.debug,warn:console.warn,error:console.error},Oye=({children:e,user:t,account:r,signer:o,env:a=M4.ENV.PROD,pgpPrivateKey:s=null,theme:c,debug:u=!1,uiConfig:l={},infuraAPIKey:d=O4})=>{const{initializeUser:f}=G9(),[h,p]=(0,i.useState)(t),[g,m]=(0,i.useState)(l8(r)),[y,b]=(0,i.useState)(null),[v,w]=(0,i.useState)(o),[A,C]=(0,i.useState)(null),[E,x]=(0,i.useState)(s),[S,I]=(0,i.useState)(a),[k,T]=(0,i.useState)(void 0),[M,P]=(0,i.useState)(!1);r8(),G9();const[j,D]=(0,i.useState)(!1),[O,B]=(0,i.useState)(null),[N,R]=(0,i.useState)({}),[L,F]=(0,i.useState)({}),[U,z]=(0,i.useState)({}),[H,V]=(0,i.useState)({}),[K,G]=(0,i.useState)({}),[q,Q]=(0,i.useState)({}),[W,J]=(0,i.useState)({}),[Y,Z]=(0,i.useState)({}),[$,X]=(0,i.useState)({}),[ee,te]=(0,i.useState)({}),re=e=>pJ(void 0,void 0,void 0,(function*(){e&&h&&!ne(e)||(console.debug(`UIWeb::ChatDataProvider::user changed - ${(new Date).toISOString()}`,e),(null==e?void 0:e.readmode())||(yield le(e)),ue(),p(e))})),ne=e=>!(h&&(null==e?void 0:e.account)===(null==h?void 0:h.account)&&(null==e?void 0:e.env)===(null==h?void 0:h.env)&&(null==e?void 0:e.signer)===(null==h?void 0:h.signer)&&(null==e?void 0:e.readmode())===(null==h?void 0:h.readmode())),{showLoaderToast:ie,showMessageToast:oe}=Rce();(0,i.useEffect)((()=>{ie&&oe&&(console.debug("UIWeb::useToast::initialize::UIWeb::ChatDataProvider::Toastify initialized"),B({showLoaderToast:ie,showMessageToast:oe}))}),[]);const ae=(e,r)=>{t?re(t):pJ(void 0,void 0,void 0,s&&e||a&&r?function*(){const t=yield f({signer:r,account:e,pgpPrivateKey:s,env:a});re(t)}:function*(){const t=yield f({signer:r,account:e||Y4,pgpPrivateKey:s,env:a});re(t)})};(0,i.useEffect)((()=>{ae(r,o)}),[o,r,a,s,t]),(0,i.useEffect)((()=>{u?(console.debug("UIWeb::ChatDataProvider::Debug mode enabled, console logs are enabled"),ce()):(console.warn("UIWeb::ChatDataProvider::Debug mode is turned off, console logs are suppressed"),se())}),[u]);const se=()=>{console.log=()=>{},console.debug=()=>{},console.warn=()=>{},console.error=()=>{}},ce=()=>{console.log=Dye.log,console.debug=Dye.debug,console.warn=Dye.warn,console.error=Dye.error},ue=()=>{b(null),P(!1),C(null),D(!1)},le=e=>pJ(void 0,void 0,void 0,(function*(){var t,r;let n=0;if(e.stream){if(e.stream&&!(null==e?void 0:e.readmode())){const r=yield e.stream.info(),i=[_.CONSTANTS.STREAM.CHAT,_.CONSTANTS.STREAM.CHAT_OPS,_.CONSTANTS.STREAM.CONNECT,_.CONSTANTS.STREAM.DISCONNECT],o=i.filter((e=>{var t;return!(null===(t=r.listen)||void 0===t?void 0:t.includes(e))}));o.length&&(yield null===(t=e.stream)||void 0===t?void 0:t.reinit(i,{connection:{retries:3}}),n=2)}}else yield null==e?void 0:e.initStream([_.CONSTANTS.STREAM.CHAT,_.CONSTANTS.STREAM.CHAT_OPS,_.CONSTANTS.STREAM.CONNECT,_.CONSTANTS.STREAM.DISCONNECT],{connection:{retries:3},raw:!0}),n=1;yield de(e),console.debug(`UIWeb::ChatDataProvider::initStream with ${2===n?"reinit":1===n?"new init":"no change"} - ${(new Date).toISOString()} | ${null==e?void 0:e.uid} | ${null===(r=null==e?void 0:e.stream)||void 0===r?void 0:r.uid}`)})),de=e=>pJ(void 0,void 0,void 0,(function*(){var t,r,n,i,o,a,s,c;null===(t=null==e?void 0:e.stream)||void 0===t||t.on(_.CONSTANTS.STREAM.CONNECT,(t=>{var r;console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::CONNECT",null==e?void 0:e.uid,null===(r=null==e?void 0:e.stream)||void 0===r?void 0:r.uid,null==e?void 0:e.stream),D(!0)})),null===(r=null==e?void 0:e.stream)||void 0===r||r.on(_.CONSTANTS.STREAM.DISCONNECT,(e=>{console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::DISCONNECT",e),D(!1)})),null===(n=null==e?void 0:e.stream)||void 0===n||n.on(_.CONSTANTS.STREAM.CHAT,(e=>{console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::CHAT Payload received",e),"chat.request"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.request",e),V(e)):"chat.accept"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.accept",e),F(e)):"chat.reject"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.reject",e),z(e)):"chat.group.participant.remove"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.group.participant.remove",e),Q(e)):"chat.group.participant.leave"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.group.participant.leave",e),J(e)):"chat.group.participant.join"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.group.participant.join",e),Z(e)):"chat.group.participant.role"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.group.participant.role",e),G(e)):"chat.message"===e.event&&(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.message",e),R(e))})),null===(i=null==e?void 0:e.stream)||void 0===i||i.on(_.CONSTANTS.STREAM.CHAT_OPS,(e=>{"chat.group.update"===e.event?(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.group.update",e),te(e)):"chat.group.create"===e.event&&(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::chat.group.create",e),X(e))})),(null===(o=e.stream)||void 0===o?void 0:o.connected())?console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::Stream listeners attached",null===(c=null==e?void 0:e.stream)||void 0===c?void 0:c.uid):(console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::Stream not connected",e),yield null===(a=e.stream)||void 0===a?void 0:a.connect(),console.debug("UIWeb::ChatDataProvider::attachListenersAndConnect::Stream listeners attached and stream connected",null===(s=null==e?void 0:e.stream)||void 0===s?void 0:s.uid))})),fe={account:g,signer:v,setSigner:w,setAccount:m,pgpPrivateKey:E,setPgpPrivateKey:x,env:S,setEnv:I,pushChatSocket:y,setPushChatSocket:b,isPushChatSocketConnected:M,setIsPushChatSocketConnected:P,connectedProfile:k,setConnectedProfile:T,preInitializeUser:ae,pushChatStream:A,setPushChatStream:C,isPushChatStreamConnected:j,setIsPushChatStreamConnected:D,user:h,setUser:p,infuraAPIKey:d,toast:O,uiConfig:l,chatStream:N,chatRequestStream:H,chatAcceptStream:L,groupUpdateStream:ee,chatRejectStream:U,participantRemoveStream:q,participantLeaveStream:W,participantJoinStream:Y,participantRoleChangeStream:K,groupCreateStream:$},he=Object.assign({},Tae,c);return(0,n.jsx)(Pae.Provider,Object.assign({value:he},{children:(0,n.jsxs)(jye,{children:[(0,n.jsx)(F7,{}),(0,n.jsx)(f5.Provider,Object.assign({value:fe},{children:e}))]})}))},Bye=({children:e,account:t,user:r,theme:o,signer:a,env:s=M4.ENV.PROD})=>{const[c,u]=(0,i.useState)(l8(t)),[l,d]=(0,i.useState)(a),[f,h]=(0,i.useState)(r),[p,g]=(0,i.useState)(s),{initializeUser:m,fetchUserProfile:y}=G9();(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){g(s);let e=null;if(Object.keys(a||{}).length&&!r)e=yield h8(a);else if(!a&&r){const t=yield y({user:r});t&&(e=l8(null==t?void 0:t.wallets))}console.debug(t),u(e||Y4),d(a),h(r)}))}),[s,t,a,r]),console.debug(c,p,l),(0,i.useEffect)((()=>{pJ(void 0,void 0,void 0,(function*(){if(c&&p){const e=yield m({signer:l,account:c,env:p});h(e)}}))}),[c,p,l]);const b={account:c,signer:l,setSigner:d,setAccount:u,env:p,setEnv:g,user:f,setUser:h},v=Object.assign({},b7,o);return(0,n.jsx)(w7.Provider,Object.assign({value:v},{children:(0,n.jsx)(jye,{children:(0,n.jsx)(p5.Provider,Object.assign({value:b},{children:e}))})}))}},586798:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NamingService=void 0;var r=function(){};t.NamingService=r},231285:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{inputs:[{internalType:"contract IUNSRegistry",name:"unsRegistry",type:"address"},{internalType:"contract ICNSRegistry",name:"cnsRegistry",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"label",type:"string"}],name:"childIdOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"exists",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"key",type:"string"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"get",outputs:[{internalType:"string",name:"value",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"keyHash",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getByHash",outputs:[{internalType:"string",name:"key",type:"string"},{internalType:"string",name:"value",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string[]",name:"keys",type:"string[]"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getData",outputs:[{internalType:"address",name:"resolver",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"string[]",name:"values",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256[]",name:"keyHashes",type:"uint256[]"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getDataByHash",outputs:[{internalType:"address",name:"resolver",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"string[]",name:"keys",type:"string[]"},{internalType:"string[]",name:"values",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256[]",name:"keyHashes",type:"uint256[]"},{internalType:"uint256[]",name:"tokenIds",type:"uint256[]"}],name:"getDataByHashForMany",outputs:[{internalType:"address[]",name:"resolvers",type:"address[]"},{internalType:"address[]",name:"owners",type:"address[]"},{internalType:"string[][]",name:"keys",type:"string[][]"},{internalType:"string[][]",name:"values",type:"string[][]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string[]",name:"keys",type:"string[]"},{internalType:"uint256[]",name:"tokenIds",type:"uint256[]"}],name:"getDataForMany",outputs:[{internalType:"address[]",name:"resolvers",type:"address[]"},{internalType:"address[]",name:"owners",type:"address[]"},{internalType:"string[][]",name:"values",type:"string[][]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string[]",name:"keys",type:"string[]"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getMany",outputs:[{internalType:"string[]",name:"values",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256[]",name:"keyHashes",type:"uint256[]"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getManyByHash",outputs:[{internalType:"string[]",name:"keys",type:"string[]"},{internalType:"string[]",name:"values",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"isApprovedOrOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256[]",name:"tokenIds",type:"uint256[]"}],name:"ownerOfForMany",outputs:[{internalType:"address[]",name:"owners",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"registryOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"resolverOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"reverseOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]},940707:function(e,t){"use strict";var r,n,i,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationError=t.ConfigurationErrorCode=void 0,function(e){e.IncorrectProvider="IncorrectProvider",e.UnsupportedNetwork="UnsupportedNetwork",e.UnspecifiedUrl="UnspecifiedUrl",e.NetworkConfigMissing="NetworkConfigMissing",e.CustomNetworkConfigMissing="CustomNetworkConfigMissing",e.InvalidConfigurationField="InvalidProxyReader"}(i=t.ConfigurationErrorCode||(t.ConfigurationErrorCode={}));var a=((n={})[i.IncorrectProvider]=function(){return"Provider doesn't implement sendAsync or send method"},n[i.UnsupportedNetwork]=function(e){return"Unsupported network in Resolution ".concat(e.method||""," configuration")},n[i.UnspecifiedUrl]=function(e){return"Unspecified url in Resolution ".concat(e.method," configuration")},n[i.NetworkConfigMissing]=function(e){return"Missing configuration in Resolution ".concat(e.method,". Please specify ").concat(e.config)},n[i.CustomNetworkConfigMissing]=function(e){return"Missing configuration in Resolution ".concat(e.method,". Please specify ").concat(e.config," when using a custom network")},n[i.InvalidConfigurationField]=function(e){return"Invalid '".concat(e.field,"' in Resolution ").concat(e.method)},n),s=function(e){function t(r,n){void 0===n&&(n={});var i=this,o=a[r];return(i=e.call(this,o(n))||this).code=r,i.method=n.method,i.name="ConfigurationError",Object.setPrototypeOf(i,t.prototype),i}return o(t,e),t}(Error);t.ConfigurationError=s,t.default=s},126660:function(e,t){"use strict";var r,n,i,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DnsRecordsError=t.DnsRecordsErrorCode=void 0,function(e){e.InconsistentTtl="InconsistentTtl",e.DnsRecordCorrupted="DnsRecordCorrupted"}(i=t.DnsRecordsErrorCode||(t.DnsRecordsErrorCode={}));var a=((n={})[i.InconsistentTtl]=function(e){return"ttl for record ".concat(e.recordType," is different for other records of the same type")},n[i.DnsRecordCorrupted]=function(e){return"dns record ".concat(e.recordType," is invalid json-string")},n),s=function(e){function t(r,n){void 0===n&&(n={});var i=this,o=a[r];return(i=e.call(this,o(n))||this).code=r,i.name="DnsRecordsError",Object.setPrototypeOf(i,t.prototype),i}return o(t,e),t}(Error);t.DnsRecordsError=s,t.default=s},377043:function(e,t){"use strict";var r,n,i,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ResolutionError=t.ResolutionErrorCode=void 0,function(e){e.UnregisteredDomain="UnregisteredDomain",e.UnspecifiedResolver="UnspecifiedResolver",e.UnsupportedDomain="UnsupportedDomain",e.UnsupportedService="UnsupportedService",e.UnsupportedMethod="UnsupportedMethod",e.UnspecifiedCurrency="UnspecifiedCurrency",e.UnsupportedCurrency="UnsupportedCurrency",e.IncorrectResolverInterface="IncorrectResolverInterface",e.RecordNotFound="RecordNotFound",e.MetadataEndpointError="MetadataEndpointError",e.ServiceProviderError="ServiceProviderError",e.InvalidTwitterVerification="InvalidTwitterVerification",e.InconsistentDomainArray="InconsistentDomainArray",e.InvalidDomainAddress="InvalidDomainAddress"}(i=t.ResolutionErrorCode||(t.ResolutionErrorCode={}));var a=((n={})[i.UnregisteredDomain]=function(e){return"Domain ".concat(e.domain," is not registered")},n[i.UnspecifiedResolver]=function(e){return"".concat(e.location?"".concat(e.location,": "):"","Domain ").concat(e.domain," is not configured")},n[i.UnsupportedDomain]=function(e){return"Domain ".concat(e.domain," is not supported")},n[i.UnsupportedMethod]=function(e){var t,r=(null===(t=e.domain)||void 0===t?void 0:t.endsWith(".zil"))?" (if this method was called via the Resolution class with both UNS and ZNS providers configured not in the API mode, this error also means that the domain doesn't exist in UNS)":"";return"Method ".concat(e.methodName," is not supported for ").concat(e.domain).concat(r)},n[i.InvalidTwitterVerification]=function(e){return"".concat(e.location?"".concat(e.location,": "):"","Domain ").concat(e.domain," has invalid Twitter signature verification")},n[i.UnsupportedCurrency]=function(e){return"".concat(e.currencyTicker," is not supported")},n[i.IncorrectResolverInterface]=function(e){return"Domain resolver is configured incorrectly for ".concat(e.method)},n[i.RecordNotFound]=function(e){return"".concat(e.location?"".concat(e.location,": "):"","No ").concat(e.recordName," record found for ").concat(e.domain)},n[i.ServiceProviderError]=function(e){return"< ".concat(e.providerMessage," >")},n[i.MetadataEndpointError]=function(e){return"Failed to query tokenUri ".concat(e.tokenUri,". Error: ").concat(e.errorMessage)},n[i.UnsupportedService]=function(e){return"Naming service ".concat(e.namingService," is not supported")},n[i.InvalidDomainAddress]=function(e){return"Domain address ".concat(e.domain," is invalid")},n),s=function(e){function t(r,n){void 0===n&&(n={});var i=this,o=a[r],s=n.domain,c=n.method,u=n.currencyTicker,l=o(n);return(i=e.call(this,l)||this).code=r,i.domain=s,i.method=c,i.currencyTicker=u,i.name="ResolutionError",Object.setPrototypeOf(i,t.prototype),i}return o(t,e),t}(Error);t.ResolutionError=s,t.default=s},696827:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderFactories=t.Eip1193Factories=t.Eip1993Factories=t.DnsRecordsErrorCode=t.DnsRecordsError=t.ConfigurationErrorCode=t.ConfigurationError=t.ResolutionErrorCode=t.ResolutionError=t.DnsUtils=t.default=t.Resolution=void 0;var a=r(231285);Object.defineProperty(t,"Resolution",{enumerable:!0,get:function(){return a.Resolution}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.Resolution}}),i(r(209503),t);var s=r(821821);Object.defineProperty(t,"DnsUtils",{enumerable:!0,get:function(){return o(s).default}});var c=r(377043);Object.defineProperty(t,"ResolutionError",{enumerable:!0,get:function(){return c.ResolutionError}}),Object.defineProperty(t,"ResolutionErrorCode",{enumerable:!0,get:function(){return c.ResolutionErrorCode}});var u=r(940707);Object.defineProperty(t,"ConfigurationError",{enumerable:!0,get:function(){return u.ConfigurationError}}),Object.defineProperty(t,"ConfigurationErrorCode",{enumerable:!0,get:function(){return u.ConfigurationErrorCode}});var l=r(126660);Object.defineProperty(t,"DnsRecordsError",{enumerable:!0,get:function(){return l.DnsRecordsError}}),Object.defineProperty(t,"DnsRecordsErrorCode",{enumerable:!0,get:function(){return l.DnsRecordsErrorCode}});var d=r(18159);Object.defineProperty(t,"Eip1993Factories",{enumerable:!0,get:function(){return d.Eip1993Factories}});var f=r(18159);Object.defineProperty(t,"Eip1193Factories",{enumerable:!0,get:function(){return f.Eip1993Factories}});var h=r(18159);Object.defineProperty(t,"ProviderFactories",{enumerable:!0,get:function(){return h.Eip1993Factories}})},282201:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasProvider=t.ZnsSupportedNetwork=t.UnsSupportedNetwork=t.NullAddresses=t.NullAddress=void 0,t.NullAddress="0x0000000000000000000000000000000000000000",function(e){e[e["0x"]=0]="0x",e[e["0x0000000000000000000000000000000000000000"]=1]="0x0000000000000000000000000000000000000000",e[e["0x0000000000000000000000000000000000000000000000000000000000000000"]=2]="0x0000000000000000000000000000000000000000000000000000000000000000"}(t.NullAddresses||(t.NullAddresses={}));var r=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockchainType=t.DnsRecordType=t.NamehashOptionsDefault=t.UDApiDefaultUrl=t.UnclaimedDomainResponse=t.NamingServiceName=t.UnsLocation=void 0,function(e){e.Layer1="UNSLayer1",e.Layer2="UNSLayer2"}(t.UnsLocation||(t.UnsLocation={})),function(e){e.UNS="UNS",e.ZNS="ZNS"}(t.NamingServiceName||(t.NamingServiceName={})),t.UnclaimedDomainResponse={addresses:{},meta:{domain:"",namehash:"",resolver:"",owner:null,type:"",ttl:0,blockchain:null},records:{}},t.UDApiDefaultUrl="https://unstoppabledomains.com/api/v1",t.NamehashOptionsDefault={format:"hex",prefix:!0,zns:!1},function(e){e.A="A",e.AAAA="AAAA",e.AFSDB="AFSDB",e.APL="APL",e.CAA="CAA",e.CDNSKEY="CDNSKEY",e.CDS="CDS",e.CERT="CERT",e.CNAME="CNAME",e.CSYNC="CSYNC",e.DHCID="DHCID",e.DLV="DLV",e.DNAME="DNAME",e.DNSKEY="DNSKEY",e.DS="DS",e.EUI48="EUI48",e.EUI64="EUI64",e.HINFO="HINFO",e.HIP="HIP",e.HTTPS="HTTPS",e.IPSECKEY="IPSECKEY",e.KEY="KEY",e.KX="KX",e.LOC="LOC",e.MX="MX",e.NAPTR="NAPTR",e.NS="NS",e.NSEC="NSEC",e.NSEC3="NSEC3",e.NSEC3PARAM="NSEC3PARAM",e.OPENPGPKEY="OPENPGPKEY",e.PTR="PTR",e.RP="RP",e.RRSIG="RRSIG",e.SIG="SIG",e.SMIMEA="SMIMEA",e.SOA="SOA",e.SRV="SRV",e.SSHFP="SSHFP",e.SVCB="SVCB",e.TA="TA",e.TKEY="TKEY",e.TLSA="TLSA",e.TSIG="TSIG",e.TXT="TXT",e.URI="URI",e.ZONEMD="ZONEMD"}(t.DnsRecordType||(t.DnsRecordType={})),function(e){e.ETH="ETH",e.MATIC="MATIC",e.ZIL="ZIL"}(t.BlockchainType||(t.BlockchainType={}))},821821:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(126660)),s=r(209503),c=function(){function e(){}return e.prototype.toList=function(e){var t,r=this,n=this.getAllDnsTypes(e);return(t=[]).concat.apply(t,n.map((function(t){return r.constructDnsRecords(e,t)})))},e.prototype.toCrypto=function(e){for(var t={},r=0,n=e;r0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidTwitterSignature=void 0;var n=r(925525),i=r(131176),o=r(725415),a=r(888074);t.isValidTwitterSignature=function(e){var t=e.tokenId,r=e.owner,s=e.twitterHandle,c=e.validationSignature,u=[(0,a.fromHexStringToDecimals)(t),r,"social.twitter.username",s].map((function(e){return"0x"+(0,i.keccak256)(e.startsWith("0x")?(0,n.hexToBytes)(e):e)})).reduce((function(e,t){return e+t}),"");return"0x12cfb13522F13a78b650a8bCbFCf50b7CB899d82"===(0,o.recover)(u,c)}},925525:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unwrapResult=t.wrapResult=t.EthereumNetworksInverted=t.EthereumNetworks=t.findNamingServiceName=t.domainExtensionToNamingServiceName=t.constructRecords=t.isNullAddress=t.hexToBytes=t.signedLink=void 0;var n=r(209503),i=r(282201),o={infura:{mainnet:"https://mainnet.infura.io/v3/",rinkeby:"https://rinkeby.infura.io/v3/",goerli:"https://goerli.infura.io/v3/","polygon-mainnet":"https://polygon-mainnet.infura.io/v3/","polygon-mumbai":"https://polygon-mumbai.infura.io/v3/"},alchemy:{mainnet:"https://eth-mainnet.alchemyapi.io/v2/",rinkeby:"https://eth-rinkeby.alchemyapi.io/v2/",goerli:"https://eth-goerli.alchemyapi.io/v2/","polygon-mainnet":"https://polygon-mainnet.g.alchemy.com/v2/","polygon-mumbai":"https://polygon-mumbai.g.alchemy.com/v2/"}};t.signedLink=function(e,t,r){void 0===t&&(t="mainnet"),void 0===r&&(r="alchemy");var n=o[r][t];return"".concat(n).concat(e)},t.hexToBytes=function(e){for(var t=e.replace(/^0x/i,""),r=[],n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recover=t.hashMessage=void 0;var n=r(131176),i=r(925525),o=new(r(86729).ec)("secp256k1"),a=function(e,t,r){return"0x"+r.slice(2*e+2,2*t+2)},s=function(e){return parseInt(e.slice(2),16)};t.hashMessage=function(e){var t=(0,i.hexToBytes)(Buffer.from(e,"utf8").toString("hex")),r=Buffer.from(t),o="\x19Ethereum Signed Message:\n"+t.length,a=Buffer.from(o),s=Buffer.concat([a,r]);return"0x"+(0,n.keccak256)(s.toString())};t.recover=function(e,r){var c,u,l=(0,t.hashMessage)(e),d=[a(64,(u=c=r,(u.length-2)/2),c),a(0,32,c),a(32,64,c)],f={v:s(d[0]),r:d[1].slice(2),s:d[2].slice(2)},h="0x"+o.recoverPubKey(Buffer.from(l.slice(2),"hex"),f,f.v<2?f.v:1-f.v%2).encode("hex",!1).slice(2);return function(e){for(var t=(0,n.keccak256)(e.slice(2)),r="0x",i=0;i<40;i++)r+=parseInt(t[i+2],16)>7?e[i+2].toUpperCase():e[i+2];return r}("0x"+("0x"+(0,n.keccak256)((0,i.hexToBytes)(h))).slice(-40))}},923943:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fromBech32Address=t.toBech32Address=t.toChecksumAddress=void 0;var i=n(r(439404)),o=n(r(463009)),a=n(r(369956)),s="qpzry9x8gf2tvdw0s3jn54khce6mua7l",c=[996825010,642813549,513874426,1027748829,705979059],u="tzil";function l(e){return t=40,!!e.replace("0x","").match("^[0-9a-fA-F]{".concat(t,"}$"));var t}function d(e,t,r,n){void 0===n&&(n=!0);for(var i=0,o=0,a=[],s=(1<>t)return null;for(i=i<=r;)o-=r,a.push(i>>o&s)}if(n)o>0&&a.push(i<=t||i<>5);for(r.push(0),t=0;t>25;t=(33554431&t)<<5^e[r];for(var i=0;i<5;++i)n>>i&1&&(t^=c[i])}return t}function p(e,t){for(var r=1^h(Buffer.concat([Buffer.from(f(e)),t,Buffer.from([0,0,0,0,0,0])])),n=[],i=0;i<6;++i)n.push(r>>5*(5-i)&31);return Buffer.from(n)}function g(e){var t,r=!1,n=!1;for(t=0;t126)return null;e.charCodeAt(t)>=97&&e.charCodeAt(t)<=122&&(r=!0),e.charCodeAt(t)>=65&&e.charCodeAt(t)<=90&&(n=!0)}if(r&&n)return null;var i=(e=e.toLowerCase()).lastIndexOf("1");if(i<1||i+7>e.length||e.length>90)return null;var o=e.substring(0,i),a=[];for(t=i+1;t-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function g(e){var t=new FileReader,r=p(t);return t.readAsArrayBuffer(e),r}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,r,n=h(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=p(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function A(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},y.call(v.prototype),y.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:0,statusText:""});return e.type="error",e};var C=[301,302,303,307,308];A.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new A(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(x){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,r){return new Promise((function(n,o){var a=new v(e,r);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;n(new A(i,r))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=f,e.Request=v,e.Response=A),t.Headers=f,t.Request=v,t.Response=A,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},330143:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||e,a),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i{"use strict";var n=r(296540);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(n){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return s((function(){i.value=r,i.getSnapshot=t,u(i)&&l({inst:i})}),[e,r,t]),a((function(){return u(i)&&l({inst:i}),e((function(){u(i)&&l({inst:i})}))}),[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},735779:(e,t,r)=>{"use strict";e.exports=r(708690)},33836:function(e){"use strict";!function(){function t(e){return parseInt(e)===e}function r(e){if(!t(e.length))return!1;for(var r=0;r255)return!1;return!0}function n(e,n){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return n&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(t(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function i(e){return new Uint8Array(e)}function o(e,t,r,n,i){null==n&&null==i||(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var a,s={toBytes:function(e){var t=[],r=0;for(e=encodeURI(e);r191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},c=(a="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+a[15&n])}return t.join("")}}),u={16:10,24:12,32:14},l=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],f=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],h=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],g=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],y=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],b=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],v=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],A=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],C=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],E=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],x=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function S(e){for(var t=[],r=0;r>2,this._Ke[r][t%4]=o[t],this._Kd[e-r][t%4]=o[t];for(var a,s=0,c=i;c>16&255]<<24^d[a>>8&255]<<16^d[255&a]<<8^d[a>>24&255]^l[s]<<24,s+=1,8!=i)for(t=1;t>8&255]<<8^d[a>>16&255]<<16^d[a>>24&255]<<24;for(t=i/2+1;t>2,h=c%4,this._Ke[f][h]=o[t],this._Kd[e-f][h]=o[t++],c++}for(var f=1;f>24&255]^C[a>>16&255]^E[a>>8&255]^x[255&a]},I.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=S(e),o=0;o<4;o++)n[o]^=this._Ke[0][o];for(var a=1;a>24&255]^p[n[(o+1)%4]>>16&255]^g[n[(o+2)%4]>>8&255]^m[255&n[(o+3)%4]]^this._Ke[a][o];n=r.slice()}var s,c=i(16);for(o=0;o<4;o++)s=this._Ke[t][o],c[4*o]=255&(d[n[o]>>24&255]^s>>24),c[4*o+1]=255&(d[n[(o+1)%4]>>16&255]^s>>16),c[4*o+2]=255&(d[n[(o+2)%4]>>8&255]^s>>8),c[4*o+3]=255&(d[255&n[(o+3)%4]]^s);return c},I.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=S(e),o=0;o<4;o++)n[o]^=this._Kd[0][o];for(var a=1;a>24&255]^b[n[(o+3)%4]>>16&255]^v[n[(o+2)%4]>>8&255]^w[255&n[(o+1)%4]]^this._Kd[a][o];n=r.slice()}var s,c=i(16);for(o=0;o<4;o++)s=this._Kd[t][o],c[4*o]=255&(f[n[o]>>24&255]^s>>24),c[4*o+1]=255&(f[n[(o+3)%4]>>16&255]^s>>16),c[4*o+2]=255&(f[n[(o+2)%4]>>8&255]^s>>8),c[4*o+3]=255&(f[255&n[(o+1)%4]]^s);return c};var k=function(e){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new I(e)};k.prototype.encrypt=function(e){if((e=n(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),r=i(16),a=0;a=0;--t)this._counter[t]=e%256,e>>=8},P.prototype.setBytes=function(e){if(16!=(e=n(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},P.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var j=function(e,t){if(!(this instanceof j))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof P||(t=new P(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new I(e)};j.prototype.encrypt=function(e){for(var t=n(e,!0),r=0;r16)throw new Error("PKCS#7 padding byte out of range");for(var r=e.length-t,a=0;ar&&(r+=1),1r?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var r=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e);e=parseInt(r[1])/360;var n=parseInt(r[2])/100,i=parseInt(r[3])/100;if(r=r[4]||1,0==n)i=n=e=i;else{var o=.5>i?i*(1+n):i+n-i*n,a=2*i-o;i=t(a,o,e+1/3),n=t(a,o,e),e=t(a,o,e-1/3)}return"rgba("+255*i+","+255*n+","+255*e+","+r+")"}function d(e){if(e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e))return e[2]}function f(e){return-1=h.currentTime)for(var w=0;w=p||!t)&&(h.began||(h.began=!0,o("begin")),o("run")),y>s&&y=t&&g!==t||!t)&&(i(t),m||a())),o("update"),e>=t&&(h.remaining?(u=c,"alternate"===h.direction&&(h.reversed=!h.reversed)):(h.pause(),h.completed||(h.completed=!0,o("complete"),"Promise"in window&&(d(),f=r()))),l=0)}e=void 0===e?{}:e;var c,u,l=0,d=null,f=r(),h=j(e);return h.reset=function(){var e=h.direction,t=h.loop;for(h.currentTime=0,h.progress=0,h.paused=!0,h.began=!1,h.completed=!1,h.reversed="reverse"===e,h.remaining="alternate"===e&&1===t?2:t,i(0),e=h.children.length;e--;)h.children[e].reset()},h.tick=function(e){c=e,u||(u=c),s((l+c-u)*D.speed)},h.seek=function(e){s(n(e))},h.pause=function(){var e=H.indexOf(h);-1=t&&0<=n&&1>=n){var o=new Float32Array(11);if(t!==r||n!==i)for(var a=0;11>a;++a)o[a]=e(.1*a,t,n);return function(a){if(t===r&&n===i)return a;if(0===a)return 0;if(1===a)return 1;for(var s=0,c=1;10!==c&&o[c]<=a;++c)s+=.1;--c,c=s+(a-o[c])/(o[c+1]-o[c])*.1;var u=3*(1-3*n+3*t)*c*c+2*(3*n-6*t)*c+3*t;if(.001<=u){for(s=0;4>s&&0!=(u=3*(1-3*n+3*t)*c*c+2*(3*n-6*t)*c+3*t);++s){var l=e(c,t,n)-a;c-=l/u}a=c}else if(0===u)a=c;else{c=s,s+=.1;var d=0;do{0<(u=e(l=c+(s-c)/2,t,n)-a)?s=l:c=l}while(1e-7++d);a=l}return e(a,r,i)}}}}(),U=function(){function e(e,t){return 0===e||1===e?e:-Math.pow(2,10*(e-1))*Math.sin(2*(e-1-t/(2*Math.PI)*Math.asin(1))*Math.PI/t)}var t,r="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),n={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],e],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(t,r){return 1-e(1-t,r)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(t,r){return.5>t?e(2*t,r)/2:1-e(-2*t+2,r)/2}]},i={linear:F(.25,.25,.75,.75)},o={};for(t in n)o.type=t,n[o.type].forEach(function(e){return function(t,n){i["ease"+e.type+r[n]]=L.fnc(t)?t:F.apply(s,t)}}(o)),o={type:o.type};return i}(),z={css:function(e,t,r){return e.style[t]=r},attribute:function(e,t,r){return e.setAttribute(t,r)},object:function(e,t,r){return e[t]=r},transform:function(e,t,r,n,i){n[i]||(n[i]=[]),n[i].push(t+"("+r+")")}},H=[],V=0,K=function(){function e(){V=requestAnimationFrame(t)}function t(t){var r=H.length;if(r){for(var n=0;nr&&(t.duration=n.duration),t.children.push(n)})),t.seek(0),t.reset(),t.autoplay&&t.restart(),t},t},D.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},D},void 0===(o="function"==typeof n?n.apply(t,i):n)||(e.exports=o)},794148:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}var v="",w="",A="",C="",E={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function S(e){return m(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function I(e,t,r){var n="",i="",o=0,a="",s=!1,c=S(e),u=c.split("\n"),l=S(t).split("\n"),d=0,f="";if("strictEqual"===r&&"object"===g(e)&&"object"===g(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===u.length&&1===l.length&&u[0]!==l[0]){var h=u[0].length+l[0].length;if(h<=10){if(!("object"===g(e)&&null!==e||"object"===g(t)&&null!==t||0===e&&0===t))return"".concat(E[r],"\n\n")+"".concat(u[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r){if(h<(process.stderr&&process.stderr.isTTY?process.stderr.columns:80)){for(;u[0][d]===l[0][d];)d++;d>2&&(f="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",d),"^"),d=0)}}}for(var p=u[u.length-1],m=l[l.length-1];p===m&&(d++<2?a="\n ".concat(p).concat(a):n=p,u.pop(),l.pop(),0!==u.length&&0!==l.length);)p=u[u.length-1],m=l[l.length-1];var y=Math.max(u.length,l.length);if(0===y){var x=c.split("\n");if(x.length>30)for(x[26]="".concat(v,"...").concat(C);x.length>27;)x.pop();return"".concat(E.notIdentical,"\n\n").concat(x.join("\n"),"\n")}d>3&&(a="\n".concat(v,"...").concat(C).concat(a),s=!0),""!==n&&(a="\n ".concat(n).concat(a),n="");var I=0,k=E[r]+"\n".concat(w,"+ actual").concat(C," ").concat(A,"- expected").concat(C),_=" ".concat(v,"...").concat(C," Lines skipped");for(d=0;d1&&d>2&&(T>4?(i+="\n".concat(v,"...").concat(C),s=!0):T>3&&(i+="\n ".concat(l[d-2]),I++),i+="\n ".concat(l[d-1]),I++),o=d,n+="\n".concat(A,"-").concat(C," ").concat(l[d]),I++;else if(l.length1&&d>2&&(T>4?(i+="\n".concat(v,"...").concat(C),s=!0):T>3&&(i+="\n ".concat(u[d-2]),I++),i+="\n ".concat(u[d-1]),I++),o=d,i+="\n".concat(w,"+").concat(C," ").concat(u[d]),I++;else{var M=l[d],P=u[d],j=P!==M&&(!b(P,",")||P.slice(0,-1)!==M);j&&b(M,",")&&M.slice(0,-1)===P&&(j=!1,P+=","),j?(T>1&&d>2&&(T>4?(i+="\n".concat(v,"...").concat(C),s=!0):T>3&&(i+="\n ".concat(u[d-2]),I++),i+="\n ".concat(u[d-1]),I++),o=d,i+="\n".concat(w,"+").concat(C," ").concat(P),n+="\n".concat(A,"-").concat(C," ").concat(M),I+=2):(i+=n,n="",1!==T&&0!==d||(i+="\n ".concat(P),I++))}if(I>20&&d30)for(f[26]="".concat(v,"...").concat(C);f.length>27;)f.pop();t=1===f.length?d.call(this,"".concat(l," ").concat(f[0])):d.call(this,"".concat(l,"\n\n").concat(f.join("\n"),"\n"))}else{var h=S(o),p="",m=E[n];"notDeepEqual"===n||"notEqual"===n?(h="".concat(E[n],"\n\n").concat(h)).length>1024&&(h="".concat(h.slice(0,1021),"...")):(p="".concat(S(a)),h.length>512&&(h="".concat(h.slice(0,509),"...")),p.length>512&&(p="".concat(p.slice(0,509),"...")),"deepEqual"===n||"equal"===n?h="".concat(m,"\n\n").concat(h,"\n\nshould equal\n\n"):p=" ".concat(n," ").concat(p)),t=d.call(this,"".concat(h).concat(p))}return Error.stackTraceLimit=s,t.generatedMessage=!r,Object.defineProperty(u(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=o,t.expected=a,t.operator=n,Error.captureStackTrace&&Error.captureStackTrace(u(t),i),t.stack,t.name="AssertionError",c(t)}return o=b,(s=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return m(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&a(o.prototype,s),l&&a(o,l),Object.defineProperty(o,"prototype",{writable:!1}),b}(l(Error),m.custom);e.exports=k},469597:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}d("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),d("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,a,s,u;if(void 0===c&&(c=r(794148)),c("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!s||s<0?0:+s,a.length)===a)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))u="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";u='The "'.concat(e,'" ').concat(l," ").concat(o," ").concat(f(t,"type"))}return u+=". Received type ".concat(n(i))}),TypeError),d("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=r(694591));var i=u.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),d("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),d("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=l},482299:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function D(e){return Object.keys(e).filter(j).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function O(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},512078:(e,t,r)=>{"use strict";var n=r(147244),i=r(848184),o=r(625767),a=r(135680);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(c)var p=s(BigInt.prototype.valueOf);if(u)var g=s(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(r){return!1}}function y(e){return"[object Map]"===l(e)}function b(e){return"[object Set]"===l(e)}function v(e){return"[object WeakMap]"===l(e)}function w(e){return"[object WeakSet]"===l(e)}function A(e){return"[object ArrayBuffer]"===l(e)}function C(e){return"undefined"!=typeof ArrayBuffer&&(A.working?A(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===l(e)}function x(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||x(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},A.working="undefined"!=typeof ArrayBuffer&&A(new ArrayBuffer),t.isArrayBuffer=C,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=x;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function I(e){return"[object SharedArrayBuffer]"===l(e)}function k(e){return void 0!==S&&(void 0===I.working&&(I.working=I(new S)),I.working?I(e):e instanceof S)}function _(e){return m(e,d)}function T(e){return m(e,f)}function M(e){return m(e,h)}function P(e){return c&&m(e,p)}function j(e){return u&&m(e,g)}t.isSharedArrayBuffer=k,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=_,t.isStringObject=T,t.isBooleanObject=M,t.isBigIntObject=P,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return _(e)||T(e)||M(e)||P(e)||j(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(C(e)||k(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},694591:(e,t,r)=>{var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}})),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),d(n,e,n.depth)}function u(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function l(e,t){return e}function d(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return b(i)||(i=d(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(y(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),E(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(r);if(0===a.length){if(x(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(C(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return f(r)}var u,l="",A=!1,S=["{","}"];(p(r)&&(A=!0,S=["[","]"]),x(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(l=" "+RegExp.prototype.toString.call(r)),C(r)&&(l=" "+Date.prototype.toUTCString.call(r)),E(r)&&(l=" "+f(r)),0!==a.length||A&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=A?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,l,S)):S[0]+l+S[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),_(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=m(r)?d(e,c.value,null):d(e,c.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function v(e){return void 0===e}function w(e){return A(e)&&"[object RegExp]"===S(e)}function A(e){return"object"==typeof e&&null!==e}function C(e){return A(e)&&"[object Date]"===S(e)}function E(e){return A(e)&&("[object Error]"===S(e)||e instanceof Error)}function x(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function I(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(a.test(e)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(512078),t.isArray=p,t.isBoolean=g,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=w,t.types.isRegExp=w,t.isObject=A,t.isDate=C,t.types.isDate=C,t.isError=E,t.types.isNativeError=E,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(933845);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[I(e.getHours()),I(e.getMinutes()),I(e.getSeconds())].join(":"),[e.getDate(),k[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(256698),t._extend=function(e,t){if(!t||!A(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function M(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!=typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o{"use strict";r.d(t,{A:()=>o});r(296540);var n=r(992303),i=r(474848);function o(e){let{children:t,fallback:r}=e;return(0,n.A)()?(0,i.jsx)(i.Fragment,{children:null==t?void 0:t()}):null!=r?r:null}},867526:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),a=o[0],c=o[1],u=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,c)),l=0,d=c>0?a-4:a;for(r=0;r>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[l++]=255&t);1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,u=n-i;su?u:s+a));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},169674:e=>{"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<32;n++){var i=t.charAt(n);if(void 0!==r[i])throw new TypeError(i+" is ambiguous");r[i]=n}function o(e){var t=e>>25;return(33554431&e)<<5^996825010&-(1&t)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function a(e){for(var t=1,r=0;r126)return"Invalid prefix ("+e+")";t=o(t)^n>>5}for(t=o(t),r=0;rt)return"Exceeds length limit";var n=e.toLowerCase(),i=e.toUpperCase();if(e!==n&&e!==i)return"Mixed-case string "+e;var s=(e=n).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var c=e.slice(0,s),u=e.slice(s+1);if(u.length<6)return"Data too short";var l=a(c);if("string"==typeof l)return l;for(var d=[],f=0;f=u.length||d.push(p)}return 1!==l?"Invalid checksum for "+e:{prefix:c,words:d}}function c(e,t,r,n){for(var i=0,o=0,a=(1<=r;)o-=r,s.push(i>>o&a);if(n)o>0&&s.push(i<=t)return"Excess padding";if(i<n)throw new TypeError("Exceeds length limit");var i=a(e=e.toLowerCase());if("string"==typeof i)throw new Error(i);for(var s=e+"1",c=0;c>5)throw new Error("Non 5-bit word");i=o(i)^u,s+=t.charAt(u)}for(c=0;c<6;++c)i=o(i);for(i^=1,c=0;c<6;++c){s+=t.charAt(i>>5*(5-c)&31)}return s},toWordsUnsafe:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},439404:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(847790).Buffer}catch(S){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?l[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],h=f[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?g+r:l[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,u=new e(o),l=this.clone();if(c){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,g=h>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],w=8191&v,A=v>>>13,C=0|a[4],E=8191&C,x=C>>>13,S=0|a[5],I=8191&S,k=S>>>13,_=0|a[6],T=8191&_,M=_>>>13,P=0|a[7],j=8191&P,D=P>>>13,O=0|a[8],B=8191&O,N=O>>>13,R=0|a[9],L=8191&R,F=R>>>13,U=0|s[0],z=8191&U,H=U>>>13,V=0|s[1],K=8191&V,G=V>>>13,q=0|s[2],Q=8191&q,W=q>>>13,J=0|s[3],Y=8191&J,Z=J>>>13,$=0|s[4],X=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,he=0|s[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,z)|0))<<13)|0;u=((o=Math.imul(f,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H);var ye=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,K)|0))<<13)|0;u=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,G)|0;var be=(u+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,Q)|0))<<13)|0;u=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,W)|0;var ve=(u+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Y)|0))<<13)|0;u=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(x,z)|0,o=Math.imul(x,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Z)|0;var we=(u+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var Ae=(u+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;u=((o=o+Math.imul(f,ne)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0;var Ce=(u+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;u=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0;var Ee=(u+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(f,ce)|0))<<13)|0;u=((o=o+Math.imul(f,ue)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(N,z)|0,o=Math.imul(N,H),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(D,K)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,Z)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,ue)|0;var xe=(u+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;u=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,G)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,de)|0,o=o+Math.imul(g,fe)|0;var Se=(u+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ge)|0)+Math.imul(f,pe)|0))<<13)|0;u=((o=o+Math.imul(f,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,n=n+Math.imul(y,de)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Ie=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((o=o+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,W))+Math.imul(F,Q)|0,o=Math.imul(F,W),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,ue)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,ue)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var ke=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,Z))+Math.imul(F,Y)|0,o=Math.imul(F,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,n=n+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,fe)|0;var _e=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ge)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,ge)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,n=n+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Te=(u+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(j,ce)|0,i=(i=i+Math.imul(j,ue)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,ue)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(u+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ge)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,ue)|0,n=n+Math.imul(j,de)|0,i=(i=i+Math.imul(j,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((o=o+Math.imul(M,ge)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,ce),i=(i=Math.imul(L,ue))+Math.imul(F,ce)|0,o=Math.imul(F,ue),n=n+Math.imul(B,de)|0,i=(i=i+Math.imul(B,fe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,fe)|0;var je=(u+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,ge)|0)+Math.imul(D,pe)|0))<<13)|0;u=((o=o+Math.imul(D,ge)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,de),i=(i=Math.imul(L,fe))+Math.imul(F,de)|0,o=Math.imul(F,fe);var De=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(N,pe)|0))<<13)|0;u=((o=o+Math.imul(N,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(u+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,ge))+Math.imul(F,pe)|0))<<13)|0;return u=((o=Math.imul(F,ge))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=Ae,c[6]=Ce,c[7]=Ee,c[8]=xe,c[9]=Se,c[10]=Ie,c[11]=ke,c[12]=_e,c[13]=Te,c[14]=Me,c[15]=Pe,c[16]=je,c[17]=De,c[18]=Oe,0!==u&&(c[19]=u,r.length++),r};function g(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):g(this,e,t),r},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},m.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;!(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;!(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;!(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;!(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(v,b),v.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new C}return y[e]=t,t},E.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){n(!(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var g=h,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var d=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},i(x,E),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},146880:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),a=Math.max(i,o),s=0,c=e.map([t,r],(function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]1?i-1:0),a=1;a0){var a=Object.keys(r),c=s.default.find(a,(function(e){return t.isOS(e)}));if(c){var u=this.satisfies(r[c]);if(void 0!==u)return u}var l=s.default.find(a,(function(e){return t.isPlatform(e)}));if(l){var d=this.satisfies(r[l]);if(void 0!==d)return d}}if(o>0){var f=Object.keys(i),h=s.default.find(f,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(s.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})},415037:(e,t,r)=>{var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r{var n=r(192861).Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i>>24]^l[p>>>16&255]^d[g>>>8&255]^f[255&m]^t[y++],a=u[p>>>24]^l[g>>>16&255]^d[m>>>8&255]^f[255&h]^t[y++],s=u[g>>>24]^l[m>>>16&255]^d[h>>>8&255]^f[255&p]^t[y++],c=u[m>>>24]^l[h>>>16&255]^d[p>>>8&255]^f[255&g]^t[y++],h=o,p=a,g=s,m=c;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[g>>>8&255]<<8|n[255&m])^t[y++],a=(n[p>>>24]<<24|n[g>>>16&255]<<16|n[m>>>8&255]<<8|n[255&h])^t[y++],s=(n[g>>>24]<<24|n[m>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[y++],c=(n[m>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&g])^t[y++],[o>>>=0,a>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,n[u]=a;var l=e[a],d=e[l],f=e[d],h=257*e[u]^16843008*u;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*f^65537*d^257*l^16843008*a,o[0][u]=h<<24|h>>>8,o[1][u]=h<<16|h>>>16,o[2][u]=h<<8|h>>>24,o[3][u]=h,0===a?a=s=1:(a=l^e[e[e[f^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function u(e){this._key=i(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o>>24,a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a]),i[o]=i[o-t]^a}for(var u=[],l=0;l>>24]]^c.INV_SUB_MIX[1][c.SBOX[f>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[f>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&f]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=u},592356:(e,t,r)=>{var n=r(50462),i=r(192861).Buffer,o=r(556168),a=r(256698),s=r(525892),c=r(130295),u=r(645122);function l(e,t,r,a){o.call(this);var c=i.alloc(4,0);this._cipher=new n.AES(t);var l=this._cipher.encryptBlock(c);this._ghash=new s(l),r=function(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new s(r),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var c=8*o,l=i.alloc(8);l.writeUIntBE(c,0,8),n.update(l),e._finID=n.state;var d=i.from(e._finID);return u(d),d}(this,r,l),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(l,o),l.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i{var n=r(125799),i=r(136171),o=r(603219);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},136171:(e,t,r)=>{var n=r(592356),i=r(192861).Buffer,o=r(700530),a=r(650650),s=r(556168),c=r(50462),u=r(168078);function l(e,t,r){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function f(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new l(s.module,t,r)}r(256698)(l,s),l.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=u(t,!1,r.key,r.iv);return f(e,n.key,n.iv)},t.createDecipheriv=f},125799:(e,t,r)=>{var n=r(700530),i=r(592356),o=r(192861).Buffer,a=r(650650),s=r(556168),c=r(50462),u=r(168078);function l(e,t,r){s.call(this),this._cache=new f,this._cipher=new c.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(256698)(l,s),l.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var d=o.alloc(16,16);function f(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var s=n[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new l(s.module,t,r)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=o.concat([this.cache,e])},f.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r{var n=r(192861).Buffer,i=n.alloc(16,0);function o(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},645122:e=>{e.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},192884:(e,t,r)=>{var n=r(130295);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},246383:(e,t,r)=>{var n=r(192861).Buffer,i=r(130295);function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){a=n.concat([a,o(e,t,r)]);break}i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i)}return a}},555264:(e,t,r)=>{var n=r(192861).Buffer;function i(e,t,r){for(var n,i,a=-1,s=0;++a<8;)n=t&1<<7-a?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>a%8,e._prev=o(e._prev,r?n:i);return s}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s{var n=r(192861).Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s{var n=r(130295),i=r(192861).Buffer,o=r(645122);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var s=0;s{t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},700530:(e,t,r)=>{var n={ECB:r(52632),CBC:r(192884),CFB:r(246383),CFB8:r(886975),CFB1:r(555264),OFB:r(246843),CTR:r(163053),GCM:r(163053)},i=r(603219);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},246843:(e,t,r)=>{var n=r(130295);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length{var n=r(50462),i=r(192861).Buffer,o=r(556168);function a(e,t,r,a){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}r(256698)(a,o),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},330125:(e,t,r)=>{var n=r(884050),i=r(201241),o=r(700530),a=r(732438),s=r(168078);function c(e,t,r){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function u(e,t,r){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return c(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=c,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return u(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=u,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},884050:(e,t,r)=>{var n=r(556168),i=r(429560),o=r(256698),a=r(192861).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function c(e){n.call(this);var t,r=e.mode.toLowerCase(),i=s[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=a.concat([o,o.slice(0,8)]));var c=e.iv;a.isBuffer(c)||(c=a.from(c)),this._des=i.create({key:o,iv:c,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=c,o(c,n),c.prototype._update=function(e){return a.from(this._des.update(e))},c.prototype._final=function(){return a.from(this._des.final())}},732438:(e,t)=>{t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},567332:(e,t,r)=>{"use strict";var n=r(178893),i=r(553209),o=r(192861).Buffer;function a(e){var t,r=e.modulus.byteLength();do{t=new n(i(r))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function s(e,t){var r=function(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),i=t.modulus.byteLength(),s=new n(e).mul(r.blinder).umod(t.modulus),c=s.toRed(n.mont(t.prime1)),u=s.toRed(n.mont(t.prime2)),l=t.coefficient,d=t.prime1,f=t.prime2,h=c.redPow(t.exponent1).fromRed(),p=u.redPow(t.exponent2).fromRed(),g=h.isub(p).imul(l).umod(d).imul(f);return p.iadd(g).imul(r.unblinder).umod(t.modulus).toArrayLike(o,"be",i)}s.getr=a,e.exports=s},178893:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(698285).Buffer}catch(_){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(_){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?""}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?f[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=h[e],l=p[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modrn(l).toString(e);r=(d=d.idivn(l)).isZero()?g+r:f[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,g=h>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],w=8191&v,A=v>>>13,C=0|a[4],E=8191&C,x=C>>>13,S=0|a[5],I=8191&S,k=S>>>13,_=0|a[6],T=8191&_,M=_>>>13,P=0|a[7],j=8191&P,D=P>>>13,O=0|a[8],B=8191&O,N=O>>>13,R=0|a[9],L=8191&R,F=R>>>13,U=0|s[0],z=8191&U,H=U>>>13,V=0|s[1],K=8191&V,G=V>>>13,q=0|s[2],Q=8191&q,W=q>>>13,J=0|s[3],Y=8191&J,Z=J>>>13,$=0|s[4],X=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,he=0|s[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,z)|0))<<13)|0;u=((o=Math.imul(f,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H);var ye=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,K)|0))<<13)|0;u=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,G)|0;var be=(u+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,Q)|0))<<13)|0;u=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,W)|0;var ve=(u+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Y)|0))<<13)|0;u=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(x,z)|0,o=Math.imul(x,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Z)|0;var we=(u+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var Ae=(u+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;u=((o=o+Math.imul(f,ne)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0;var Ce=(u+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;u=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0;var Ee=(u+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(f,ce)|0))<<13)|0;u=((o=o+Math.imul(f,ue)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(N,z)|0,o=Math.imul(N,H),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(D,K)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,Z)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,ue)|0;var xe=(u+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;u=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,G)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,de)|0,o=o+Math.imul(g,fe)|0;var Se=(u+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ge)|0)+Math.imul(f,pe)|0))<<13)|0;u=((o=o+Math.imul(f,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,n=n+Math.imul(y,de)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Ie=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((o=o+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,W))+Math.imul(F,Q)|0,o=Math.imul(F,W),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,ue)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,ue)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var ke=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,Z))+Math.imul(F,Y)|0,o=Math.imul(F,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,n=n+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,fe)|0;var _e=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ge)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,ge)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,n=n+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Te=(u+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(j,ce)|0,i=(i=i+Math.imul(j,ue)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,ue)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(u+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ge)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,ue)|0,n=n+Math.imul(j,de)|0,i=(i=i+Math.imul(j,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((o=o+Math.imul(M,ge)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,ce),i=(i=Math.imul(L,ue))+Math.imul(F,ce)|0,o=Math.imul(F,ue),n=n+Math.imul(B,de)|0,i=(i=i+Math.imul(B,fe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,fe)|0;var je=(u+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,ge)|0)+Math.imul(D,pe)|0))<<13)|0;u=((o=o+Math.imul(D,ge)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,de),i=(i=Math.imul(L,fe))+Math.imul(F,de)|0,o=Math.imul(F,fe);var De=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(N,pe)|0))<<13)|0;u=((o=o+Math.imul(N,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(u+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,ge))+Math.imul(F,pe)|0))<<13)|0;return u=((o=Math.imul(F,ge))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=Ae,c[6]=Ce,c[7]=Ee,c[8]=xe,c[9]=Se,c[10]=Ie,c[11]=ke,c[12]=_e,c[13]=Te,c[14]=Me,c[15]=Pe,c[16]=je,c[17]=De,c[18]=Oe,0!==u&&(c[19]=u,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function b(e,t,r){return y(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(m=g),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?g(this,e,t):r<1024?y(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;!(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;!(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;!(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;!(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new I(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function A(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},A.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(e,t){e.iushrn(this.n,0,t)},A.prototype.imulK=function(e){return e.imul(this.k)},i(C,A),C.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new C;else if("p224"===e)t=new E;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return w[e]=t,t},I.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){n(!(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},I.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var g=h,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var d=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,I),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},655715:(e,t,r)=>{"use strict";e.exports=r(62951)},900020:(e,t,r)=>{"use strict";var n=r(192861).Buffer,i=r(747108),o=r(46737),a=r(256698),s=r(835359),c=r(74847),u=r(62951);function l(e){o.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){o.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new l(e)}function h(e){return new d(e)}Object.keys(u).forEach((function(e){u[e].id=n.from(u[e].id,"hex"),u[e.toLowerCase()]=u[e]})),a(l,o.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return this._hash.update("string"==typeof e?n.from(e,t):e),this},l.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=s(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},a(d,o.Writable),d.prototype._write=function(e,t,r){this._hash.update(e),r()},d.prototype.update=function(e,t){return this._hash.update("string"==typeof e?n.from(e,t):e),this},d.prototype.verify=function(e,t,r){var i="string"==typeof t?n.from(t,r):t;this.end();var o=this._hash.digest();return c(i,o,e,this._signType,this._tag)},e.exports={Sign:f,Verify:h,createSign:f,createVerify:h}},835359:(e,t,r)=>{"use strict";var n=r(192861).Buffer,i=r(383507),o=r(567332),a=r(86729).ec,s=r(726162),c=r(778170),u=r(264589);function l(e,t,r,o){if((e=n.from(e.toArray())).length0&&r.ishrn(n),r}function f(e,t,r){var o,a;do{for(o=n.alloc(0);8*o.length{"use strict";var n=r(192861).Buffer,i=r(726162),o=r(86729).ec,a=r(778170),s=r(264589);function c(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=0)throw new Error("invalid sig")}e.exports=function(e,t,r,u,l){var d=a(r);if("ec"===d.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(t,e,a)}(e,t,d)}if("dsa"===d.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,o=r.data.q,s=r.data.g,u=r.data.pub_key,l=a.signature.decode(e,"der"),d=l.s,f=l.r;c(d,o),c(f,o);var h=i.mont(n),p=d.invm(o),g=s.toRed(h).redPow(new i(t).mul(p).mod(o)).fromRed().mul(u.toRed(h).redPow(f.mul(p).mod(o)).fromRed()).mod(n).mod(o);return 0===g.cmp(f)}(e,t,d)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");t=n.concat([l,t]);for(var f=d.modulus.byteLength(),h=[1],p=0;t.length+h.length+2=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(_){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?""}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?f[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=h[e],l=p[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modrn(l).toString(e);r=(d=d.idivn(l)).isZero()?g+r:f[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,g=h>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],w=8191&v,A=v>>>13,C=0|a[4],E=8191&C,x=C>>>13,S=0|a[5],I=8191&S,k=S>>>13,_=0|a[6],T=8191&_,M=_>>>13,P=0|a[7],j=8191&P,D=P>>>13,O=0|a[8],B=8191&O,N=O>>>13,R=0|a[9],L=8191&R,F=R>>>13,U=0|s[0],z=8191&U,H=U>>>13,V=0|s[1],K=8191&V,G=V>>>13,q=0|s[2],Q=8191&q,W=q>>>13,J=0|s[3],Y=8191&J,Z=J>>>13,$=0|s[4],X=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,he=0|s[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,z)|0))<<13)|0;u=((o=Math.imul(f,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H);var ye=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,K)|0))<<13)|0;u=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,G)|0;var be=(u+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,Q)|0))<<13)|0;u=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,W)|0;var ve=(u+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Y)|0))<<13)|0;u=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(x,z)|0,o=Math.imul(x,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Z)|0;var we=(u+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var Ae=(u+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;u=((o=o+Math.imul(f,ne)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0;var Ce=(u+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;u=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0;var Ee=(u+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(f,ce)|0))<<13)|0;u=((o=o+Math.imul(f,ue)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(N,z)|0,o=Math.imul(N,H),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(D,K)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,Z)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,ue)|0;var xe=(u+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;u=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,G)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,de)|0,o=o+Math.imul(g,fe)|0;var Se=(u+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ge)|0)+Math.imul(f,pe)|0))<<13)|0;u=((o=o+Math.imul(f,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,n=n+Math.imul(y,de)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Ie=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((o=o+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,W))+Math.imul(F,Q)|0,o=Math.imul(F,W),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,ue)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,ue)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var ke=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,Z))+Math.imul(F,Y)|0,o=Math.imul(F,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,n=n+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,fe)|0;var _e=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ge)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,ge)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,n=n+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Te=(u+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(j,ce)|0,i=(i=i+Math.imul(j,ue)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,ue)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(u+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ge)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,ue)|0,n=n+Math.imul(j,de)|0,i=(i=i+Math.imul(j,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((o=o+Math.imul(M,ge)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,ce),i=(i=Math.imul(L,ue))+Math.imul(F,ce)|0,o=Math.imul(F,ue),n=n+Math.imul(B,de)|0,i=(i=i+Math.imul(B,fe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,fe)|0;var je=(u+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,ge)|0)+Math.imul(D,pe)|0))<<13)|0;u=((o=o+Math.imul(D,ge)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,de),i=(i=Math.imul(L,fe))+Math.imul(F,de)|0,o=Math.imul(F,fe);var De=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(N,pe)|0))<<13)|0;u=((o=o+Math.imul(N,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(u+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,ge))+Math.imul(F,pe)|0))<<13)|0;return u=((o=Math.imul(F,ge))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=Ae,c[6]=Ce,c[7]=Ee,c[8]=xe,c[9]=Se,c[10]=Ie,c[11]=ke,c[12]=_e,c[13]=Te,c[14]=Me,c[15]=Pe,c[16]=je,c[17]=De,c[18]=Oe,0!==u&&(c[19]=u,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function b(e,t,r){return y(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(m=g),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?g(this,e,t):r<1024?y(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;!(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;!(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;!(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;!(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new I(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function A(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},A.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(e,t){e.iushrn(this.n,0,t)},A.prototype.imulK=function(e){return e.imul(this.k)},i(C,A),C.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new C;else if("p224"===e)t=new E;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return w[e]=t,t},I.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){n(!(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},I.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var g=h,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var d=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,I),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},232240:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},826248:(e,t,r)=>{"use strict";var n=r(633225),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=d;var o=Object.create(r(515622));o.inherits=r(256698);var a=r(130206),s=r(407314);o.inherits(d,a);for(var c=i(s.prototype),u=0;u{"use strict";e.exports=o;var n=r(181816),i=Object.create(r(515622));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(256698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},130206:(e,t,r)=>{"use strict";var n=r(633225);e.exports=b;var i,o=r(232240);b.ReadableState=y;r(137007).EventEmitter;var a=function(e,t){return e.listeners(t).length},s=r(805567),c=r(724116).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l=Object.create(r(515622));l.inherits=r(256698);var d=r(192668),f=void 0;f=d&&d.debuglog?d.debuglog("stream"):function(){};var h,p=r(520672),g=r(836278);l.inherits(b,s);var m=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var n=t instanceof(i=i||r(826248));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=r(506427).I),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||r(826248),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function v(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,E(e)}(e,a)):(i||(o=function(e,t){var r;n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):S(e,a)):w(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(x,e):x(e))}function x(e){f("emit readable"),e.emit("readable"),T(e)}function S(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(I,e,t))}function I(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(j,t,e))}function j(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function D(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):E(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&P(this),null;var n,i=t.needReadable;return f("need readable",i),(0===t.length||t.length-e0?M(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,t);var s=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?u:b;function c(t,n){f("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,f("cleanup"),e.removeListener("close",m),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",g),e.removeListener("unpipe",c),r.removeListener("end",u),r.removeListener("end",b),r.removeListener("data",p),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){f("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",c);var l=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",l);var d=!1;var h=!1;function p(t){f("ondata"),h=!1,!1!==e.write(t)||h||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==D(i.pipes,e))&&!d&&(f("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function g(t){f("onerror",t),b(),e.removeListener("error",g),0===a(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",y),b()}function y(){f("onfinish"),e.removeListener("close",m),b()}function b(){f("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",m),e.once("finish",y),e.emit("pipe",r),i.flowing||(f("pipe resume"),r.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o{"use strict";e.exports=a;var n=r(826248),i=Object.create(r(515622));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";var n=r(633225);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=m;var o,a=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;m.WritableState=g;var s=Object.create(r(515622));s.inherits=r(256698);var c={deprecate:r(594643)},u=r(805567),l=r(724116).Buffer,d=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f,h=r(836278);function p(){}function g(e,t){o=o||r(826248),e=e||{};var s=t instanceof o;this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:s&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(C,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),C(e,t))}(e,r,i,t,o);else{var s=w(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||v(e,r),i?a(b,e,r,s,o):b(e,r,s,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function m(e){if(o=o||r(826248),!(f.call(m,this)||this instanceof o))return new m(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function y(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function b(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),C(e,t)}function v(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,y(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,d=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,l,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function A(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),C(e,t)}))}function C(e,t){var r=w(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(A,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}s.inherits(m,u),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!f.call(this,e)||this===m&&(e&&e._writableState instanceof g)}})):f=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,l.isBuffer(i)||i instanceof d);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=p),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),n.nextTick(i,a),o=!1),o}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,C(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=h.destroy,m.prototype._undestroy=h.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}},520672:(e,t,r)=>{"use strict";var n=r(724116).Buffer,i=r(321638);function o(e,t,r){e.copy(t,r)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t=n.allocUnsafe(e>>>0),r=this.head,i=0;r;)o(r.data,t,i),i+=r.data.length,r=r.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},836278:(e,t,r)=>{"use strict";var n=r(633225);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},805567:(e,t,r)=>{e.exports=r(137007).EventEmitter},724116:(e,t,r)=>{var n=r(348287),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},46737:(e,t,r)=>{(t=e.exports=r(130206)).Stream=t,t.Readable=t,t.Writable=r(407314),t.Duplex=r(826248),t.Transform=r(181816),t.PassThrough=r(775242)},506427:(e,t,r)=>{"use strict";var n=r(388393).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},388393:(e,t,r)=>{var n=r(348287),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},805974:(e,t,r)=>{"use strict";var n=r(794148),i=r(644442),o=r(958411),a=r(171447),s=r(519681);for(var c in s)t[c]=s[c];t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7;function u(e){if("number"!=typeof e||et.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}u.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,n(this.init_done,"close before init"),n(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?o.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||a.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},u.prototype.write=function(e,t,r,n,i,o,a){return this._write(!0,e,t,r,n,i,o,a)},u.prototype.writeSync=function(e,t,r,n,i,o,a){return this._write(!1,e,t,r,n,i,o,a)},u.prototype._write=function(e,r,i,o,a,s,c,u){if(n.equal(arguments.length,8),n(this.init_done,"write before init"),n(this.mode!==t.NONE,"already finalized"),n.equal(!1,this.write_in_progress,"write already in progress"),n.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,n.equal(!1,void 0===r,"must provide flush value"),this.write_in_progress=!0,r!==t.Z_NO_FLUSH&&r!==t.Z_PARTIAL_FLUSH&&r!==t.Z_SYNC_FLUSH&&r!==t.Z_FULL_FLUSH&&r!==t.Z_FINISH&&r!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==i&&(i=Buffer.alloc(0),a=0,o=0),this.strm.avail_in=a,this.strm.input=i,this.strm.next_in=o,this.strm.avail_out=u,this.strm.output=s,this.strm.next_out=c,this.flush=r,!e)return this._process(),this._checkError()?this._afterSync():void 0;var l=this;return process.nextTick((function(){l._process(),l._after()})),this},u.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},u.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=o.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},u.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},u.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},u.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},u.prototype.init=function(e,r,i,o,a){n(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),n(e>=8&&e<=15,"invalid windowBits"),n(r>=-1&&r<=9,"invalid compression level"),n(i>=1&&i<=9,"invalid memlevel"),n(o===t.Z_FILTERED||o===t.Z_HUFFMAN_ONLY||o===t.Z_RLE||o===t.Z_FIXED||o===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,e,i,o,a),this._setDictionary()},u.prototype.params=function(){throw new Error("deflateParams Not supported")},u.prototype.reset=function(){this._reset(),this._setDictionary()},u.prototype._init=function(e,r,n,s,c){switch(this.level=e,this.windowBits=r,this.memLevel=n,this.strategy=s,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new i,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=o.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=c,this.write_in_progress=!1,this.init_done=!0},u.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=o.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},u.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=o.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=a.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=u},178559:(e,t,r)=>{"use strict";var n=r(348287).Buffer,i=r(688310).Transform,o=r(805974),a=r(440537),s=r(794148).ok,c=r(348287).kMaxLength,u="Cannot create final Buffer. It would be larger than 0x"+c.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var l=Object.keys(o),d=0;d=c?a=new RangeError(u):t=n.concat(i,o),i=[],e.close(),r(a,t)}e.on("error",(function(t){e.removeListener("end",s),e.removeListener("readable",a),r(t)})),e.on("end",s),e.end(t),a()}function b(e,t){if("string"==typeof t&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function v(e){if(!(this instanceof v))return new v(e);k.call(this,e,o.DEFLATE)}function w(e){if(!(this instanceof w))return new w(e);k.call(this,e,o.INFLATE)}function A(e){if(!(this instanceof A))return new A(e);k.call(this,e,o.GZIP)}function C(e){if(!(this instanceof C))return new C(e);k.call(this,e,o.GUNZIP)}function E(e){if(!(this instanceof E))return new E(e);k.call(this,e,o.DEFLATERAW)}function x(e){if(!(this instanceof x))return new x(e);k.call(this,e,o.INFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);k.call(this,e,o.UNZIP)}function I(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function k(e,r){var a=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,i.call(this,e),e.flush&&!I(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!I(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSizet.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBitst.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.levelt.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevelt.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!n.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(r);var s=this;this._hadError=!1,this._handle.onerror=function(e,r){_(s),s._hadError=!0;var n=new Error(e);n.errno=r,n.code=t.codes[r],s.emit("error",n)};var c=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(c=e.level);var u=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(u=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,c,e.memLevel||t.Z_DEFAULT_MEMLEVEL,u,e.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=c,this._strategy=u,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function _(e,t){t&&process.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function T(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),t.Deflate=v,t.Inflate=w,t.Gzip=A,t.Gunzip=C,t.DeflateRaw=E,t.InflateRaw=x,t.Unzip=S,t.createDeflate=function(e){return new v(e)},t.createInflate=function(e){return new w(e)},t.createDeflateRaw=function(e){return new E(e)},t.createInflateRaw=function(e){return new x(e)},t.createGzip=function(e){return new A(e)},t.createGunzip=function(e){return new C(e)},t.createUnzip=function(e){return new S(e)},t.deflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new v(t),e,r)},t.deflateSync=function(e,t){return b(new v(t),e)},t.gzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new A(t),e,r)},t.gzipSync=function(e,t){return b(new A(t),e)},t.deflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new E(t),e,r)},t.deflateRawSync=function(e,t){return b(new E(t),e)},t.unzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new S(t),e,r)},t.unzipSync=function(e,t){return b(new S(t),e)},t.inflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new w(t),e,r)},t.inflateSync=function(e,t){return b(new w(t),e)},t.gunzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new C(t),e,r)},t.gunzipSync=function(e,t){return b(new C(t),e)},t.inflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new x(t),e,r)},t.inflateRawSync=function(e,t){return b(new x(t),e)},a.inherits(k,i),k.prototype.params=function(e,r,n){if(et.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(r!=t.Z_FILTERED&&r!=t.Z_HUFFMAN_ONLY&&r!=t.Z_RLE&&r!=t.Z_FIXED&&r!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==e||this._strategy!==r){var i=this;this.flush(o.Z_SYNC_FLUSH,(function(){s(i._handle,"zlib binding closed"),i._handle.params(e,r),i._hadError||(i._level=e,i._strategy=r,n&&n())}))}else process.nextTick(n)},k.prototype.reset=function(){return s(this._handle,"zlib binding closed"),this._handle.reset()},k.prototype._flush=function(e){this._transform(n.alloc(0),"",e)},k.prototype.flush=function(e,t){var r=this,i=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=o.Z_FULL_FLUSH),i.ended?t&&process.nextTick(t):i.ending?t&&this.once("end",t):i.needDrain?t&&this.once("drain",(function(){return r.flush(e,t)})):(this._flushFlag=e,this.write(n.alloc(0),"",t))},k.prototype.close=function(e){_(this,e),process.nextTick(T,this)},k.prototype._transform=function(e,t,r){var i,a=this._writableState,s=(a.ending||a.ended)&&(!e||a.length===e.length);return null===e||n.isBuffer(e)?this._handle?(s?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,i,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},k.prototype._processChunk=function(e,t,r){var i=e&&e.length,o=this._chunkSize-this._offset,a=0,l=this,d="function"==typeof r;if(!d){var f,h=[],p=0;this.on("error",(function(e){f=e})),s(this._handle,"zlib binding closed");do{var g=this._handle.writeSync(t,e,a,i,this._buffer,this._offset,o)}while(!this._hadError&&b(g[0],g[1]));if(this._hadError)throw f;if(p>=c)throw _(this),new RangeError(u);var m=n.concat(h,p);return _(this),m}s(this._handle,"zlib binding closed");var y=this._handle.write(t,e,a,i,this._buffer,this._offset,o);function b(c,u){if(this&&(this.buffer=null,this.callback=null),!l._hadError){var f=o-u;if(s(f>=0,"have should not go down"),f>0){var g=l._buffer.slice(l._offset,l._offset+f);l._offset+=f,d?l.push(g):(h.push(g),p+=g.length)}if((0===u||l._offset>=l._chunkSize)&&(o=l._chunkSize,l._offset=0,l._buffer=n.allocUnsafe(l._chunkSize)),0===u){if(a+=i-c,i=c,!d)return!0;var m=l._handle.write(t,e,a,i,l._buffer,l._offset,l._chunkSize);return m.callback=b,void(m.buffer=e)}if(!d)return!1;r()}}y.buffer=e,y.callback=b},a.inherits(v,k),a.inherits(w,k),a.inherits(A,k),a.inherits(C,k),a.inherits(E,k),a.inherits(x,k),a.inherits(S,k)},130295:e=>{e.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new Buffer(r),i=0;i{"use strict";const n=r(867526),i=r(300251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let n=s(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return h(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const i=function(e){if(c.isBuffer(e)){const t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Y(e.length)?s(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return l(e),s(e<0?0:0|p(e))}function f(e){const t=e.length<0?0:0|p(e.length),r=s(t);for(let n=0;n=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(i)return n?-1:q(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return _(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){let o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;os&&(r=s-c),o=r;o>=0;o--){let r=!0;for(let n=0;ni&&(n=i):n=i;const o=t.length;let a;for(n>o/2&&(n=o/2),a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function I(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(o=c));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(c=(15&t)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){const t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(o,a),u=this.slice(n,i),l=e.slice(t,r);for(let c=0;c>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":case"latin1":case"binary":return C(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const k=4096;function _(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;in)&&(r=n);let i="";for(let o=t;or)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function O(e,t,r,n,i){H(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function B(e,t,r,n,i){H(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function N(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function R(e,t,r,n,o){return t=+t,r>>>=0,o||N(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,o){return t=+t,r>>>=0,o||N(e,0,r,8),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=$((function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=$((function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||j(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){D(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){D(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=$((function(e,t=0){return O(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=$((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);D(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i>>=0,!n){const n=Math.pow(2,8*r-1);D(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=$((function(e,t=0){return O(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=$((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function H(e,t,r,n,i,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||K(t,e.length-(r+1))}(n,i,o)}function V(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function K(e,t,r){if(Math.floor(e)!==e)throw V(e,r),new F.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=z(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function q(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let a=0;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Q(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function $(e){return"undefined"==typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}},286866:e=>{e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},713144:(e,t,r)=>{"use strict";var n=r(566743),i=r(611002),o=r(610076),a=r(647119);e.exports=a||n.call(o,i)},312205:(e,t,r)=>{"use strict";var n=r(566743),i=r(611002),o=r(713144);e.exports=function(){return o(n,i,arguments)}},611002:e=>{"use strict";e.exports=Function.prototype.apply},610076:e=>{"use strict";e.exports=Function.prototype.call},373126:(e,t,r)=>{"use strict";var n=r(566743),i=r(769675),o=r(610076),a=r(713144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},647119:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},438075:(e,t,r)=>{"use strict";var n=r(570453),i=r(10487),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},10487:(e,t,r)=>{"use strict";var n=r(996897),i=r(730655),o=r(373126),a=r(312205);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},136556:(e,t,r)=>{"use strict";var n=r(570453),i=r(373126),o=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i([r]):r}},556168:(e,t,r)=>{"use strict";var n=r(192861).Buffer,i=r(688310).Transform,o=r(183141).I;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(256698)(a,i);var s="undefined"!=typeof Uint8Array,c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&ArrayBuffer.isView&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);a.prototype.update=function(e,t,r){var i=function(e,t){if(e instanceof n)return e;if("string"==typeof e)return n.from(e,t);if(c&&ArrayBuffer.isView(e)){if(0===e.byteLength)return n.alloc(0);var r=n.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(s&&e instanceof Uint8Array)return n.from(e);if(n.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return n.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(e,t),o=this._update(i);return this.hashMode?this:(r&&(o=this._toString(o,r)),o)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){n=i}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can\u2019t switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},515622:(e,t,r)=>{function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(348287).Buffer.isBuffer},461324:(e,t,r)=>{var n=r(86729),i=r(439404);e.exports=function(e){return new a(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new Buffer(e);if(r&&n.length{"use strict";var n=r(256698),i=r(988276),o=r(566011),a=r(662802),s=r(556168);function c(e){s.call(this,"digest"),this._hash=e}n(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new c(a(e))}},820320:(e,t,r)=>{var n=r(988276);e.exports=function(e){return(new n).update(e).digest()}},383507:(e,t,r)=>{"use strict";var n=r(256698),i=r(941800),o=r(556168),a=r(192861).Buffer,s=r(820320),c=r(566011),u=r(662802),l=a.alloc(128);function d(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new c:u(e)).update(t).digest():t.length{"use strict";var n=r(256698),i=r(192861).Buffer,o=r(556168),a=i.alloc(128),s=64;function c(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length{"use strict";r(553209),r(747108),r(383507);var n=r(655715),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);var a=r(278396);a.pbkdf2,a.pbkdf2Sync;var s=r(330125);s.Cipher,s.createCipher,s.Cipheriv,s.createCipheriv,s.Decipher,s.createDecipher,s.Decipheriv,s.createDecipheriv,s.getCiphers,s.listCiphers;var c=r(515380);c.DiffieHellmanGroup,c.createDiffieHellmanGroup,c.getDiffieHellman,c.createDiffieHellman,c.DiffieHellman;var u=r(900020);u.createSign,u.Sign,u.createVerify,u.Verify,r(461324);var l=r(297168);l.publicEncrypt,l.privateEncrypt,l.publicDecrypt,l.privateDecrypt;var d=r(476983);d.randomFill,d.randomFillSync},740955:function(e,t,r){var n;e.exports=(n=r(319021),r(780754),r(484636),r(139506),r(57165),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],c=[],u=[],l=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var g=e[r],m=e[g],y=e[m],b=257*e[p]^16843008*p;a[r]=b<<24|b>>>8,s[r]=b<<16|b>>>16,c[r]=b<<8|b>>>24,u[r]=b,b=16843009*y^65537*m^257*g^16843008*r,l[p]=b<<24|b>>>8,d[p]=b<<16|b>>>16,f[p]=b<<8|b>>>24,h[p]=b,r?(r=g^e[e[e[y^g]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=i[(u=u<<8|u>>>24)>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=p[a/r|0]<<24),o[a]=o[a-r]^u);for(var s=this._invKeySchedule=[],c=0;c>>24]]^d[i[u>>>16&255]]^f[i[u>>>8&255]]^h[i[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,u,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,l,d,f,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p>>24]^i[l>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],m=n[l>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&u]^r[h++],y=n[d>>>24]^i[f>>>16&255]^o[u>>>8&255]^a[255&l]^r[h++],b=n[f>>>24]^i[u>>>16&255]^o[l>>>8&255]^a[255&d]^r[h++];u=g,l=m,d=y,f=b}g=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],m=(s[l>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&u])^r[h++],y=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[h++],b=(s[f>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&d])^r[h++],e[t]=g,e[t+1]=m,e[t+2]=y,e[t+3]=b},keySize:8});e.AES=t._createHelper(g)}(),n.AES)},943128:function(e,t,r){var n;e.exports=(n=r(319021),r(780754),r(484636),r(139506),r(57165),function(){var e=n,t=e.lib.BlockCipher,r=e.algo;const i=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[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 s={pbox:[],sbox:[]};function c(e,t){let r=t>>24&255,n=t>>16&255,i=t>>8&255,o=255&t,a=e.sbox[0][r]+e.sbox[1][n];return a^=e.sbox[2][i],a+=e.sbox[3][o],a}function u(e,t,r){let n,o=t,a=r;for(let s=0;s1;--s)o^=e.pbox[s],a=c(e,o)^a,n=o,o=a,a=n;return n=o,o=a,a=n,a^=e.pbox[1],o^=e.pbox[0],{left:o,right:a}}function d(e,t,r){for(let i=0;i<4;i++){e.sbox[i]=[];for(let t=0;t<256;t++)e.sbox[i][t]=a[i][t]}let n=0;for(let a=0;a=r&&(n=0);let s=0,c=0,l=0;for(let o=0;o>>2];e.sigBytes-=t}},g=(r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:h,padding:p}),reset:function(){var e;l.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(t):t).toString(c)},parse:function(e){var t,r=c.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),g.create({ciphertext:r,salt:t})}},y=r.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return g.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(t.kdf={}).OpenSSL={execute:function(e,t,r,n,i){if(n||(n=o.random(8)),i)a=u.create({keySize:t+r,hasher:i}).compute(e,n);else var a=u.create({keySize:t+r}).compute(e,n);var s=o.create(a.words.slice(t),4*r);return a.sigBytes=4*t,g.create({key:a,iv:s,salt:n})}},v=r.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:b}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=y.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,y.decrypt.call(this,e,t,i.key,n)}})}()))},319021:function(e,t,r){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(650477)}catch(m){}var i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),a={},s=a.lib={},c=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=s.WordArray=c.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},f=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},h=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*c,o);if(c){for(var d=0;d>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,c=0;c<4&&a+.75*c>>6*(3-c)&63));var u=i.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,i=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},139506:function(e,t,r){var n,i,o,a,s,c,u,l;e.exports=(l=r(319021),r(445471),r(651025),i=(n=l).lib,o=i.Base,a=i.WordArray,s=n.algo,c=s.MD5,u=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,i=n.hasher.create(),o=a.create(),s=o.words,c=n.keySize,u=n.iterations;s.lengthn&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),s=i.words,c=o.words,u=0;u>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)},484636:function(e,t,r){var n;e.exports=(n=r(319021),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],h=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],b=e[t+7],v=e[t+8],w=e[t+9],A=e[t+10],C=e[t+11],E=e[t+12],x=e[t+13],S=e[t+14],I=e[t+15],k=o[0],_=o[1],T=o[2],M=o[3];k=u(k,_,T,M,a,7,s[0]),M=u(M,k,_,T,c,12,s[1]),T=u(T,M,k,_,h,17,s[2]),_=u(_,T,M,k,p,22,s[3]),k=u(k,_,T,M,g,7,s[4]),M=u(M,k,_,T,m,12,s[5]),T=u(T,M,k,_,y,17,s[6]),_=u(_,T,M,k,b,22,s[7]),k=u(k,_,T,M,v,7,s[8]),M=u(M,k,_,T,w,12,s[9]),T=u(T,M,k,_,A,17,s[10]),_=u(_,T,M,k,C,22,s[11]),k=u(k,_,T,M,E,7,s[12]),M=u(M,k,_,T,x,12,s[13]),T=u(T,M,k,_,S,17,s[14]),k=l(k,_=u(_,T,M,k,I,22,s[15]),T,M,c,5,s[16]),M=l(M,k,_,T,y,9,s[17]),T=l(T,M,k,_,C,14,s[18]),_=l(_,T,M,k,a,20,s[19]),k=l(k,_,T,M,m,5,s[20]),M=l(M,k,_,T,A,9,s[21]),T=l(T,M,k,_,I,14,s[22]),_=l(_,T,M,k,g,20,s[23]),k=l(k,_,T,M,w,5,s[24]),M=l(M,k,_,T,S,9,s[25]),T=l(T,M,k,_,p,14,s[26]),_=l(_,T,M,k,v,20,s[27]),k=l(k,_,T,M,x,5,s[28]),M=l(M,k,_,T,h,9,s[29]),T=l(T,M,k,_,b,14,s[30]),k=d(k,_=l(_,T,M,k,E,20,s[31]),T,M,m,4,s[32]),M=d(M,k,_,T,v,11,s[33]),T=d(T,M,k,_,C,16,s[34]),_=d(_,T,M,k,S,23,s[35]),k=d(k,_,T,M,c,4,s[36]),M=d(M,k,_,T,g,11,s[37]),T=d(T,M,k,_,b,16,s[38]),_=d(_,T,M,k,A,23,s[39]),k=d(k,_,T,M,x,4,s[40]),M=d(M,k,_,T,a,11,s[41]),T=d(T,M,k,_,p,16,s[42]),_=d(_,T,M,k,y,23,s[43]),k=d(k,_,T,M,w,4,s[44]),M=d(M,k,_,T,E,11,s[45]),T=d(T,M,k,_,I,16,s[46]),k=f(k,_=d(_,T,M,k,h,23,s[47]),T,M,a,6,s[48]),M=f(M,k,_,T,b,10,s[49]),T=f(T,M,k,_,S,15,s[50]),_=f(_,T,M,k,m,21,s[51]),k=f(k,_,T,M,E,6,s[52]),M=f(M,k,_,T,p,10,s[53]),T=f(T,M,k,_,A,15,s[54]),_=f(_,T,M,k,c,21,s[55]),k=f(k,_,T,M,v,6,s[56]),M=f(M,k,_,T,I,10,s[57]),T=f(T,M,k,_,y,15,s[58]),_=f(_,T,M,k,x,21,s[59]),k=f(k,_,T,M,g,6,s[60]),M=f(M,k,_,T,C,10,s[61]),T=f(T,M,k,_,h,15,s[62]),_=f(_,T,M,k,w,21,s[63]),o[0]=o[0]+k|0,o[1]=o[1]+_|0,o[2]=o[2]+T|0,o[3]=o[3]+M|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<>>32-o)+t}function l(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)},182169:function(e,t,r){var n;e.exports=(n=r(319021),r(57165),n.mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;a>24))e+=1<<24;else{var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}return e}function r(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var i=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),r(a);var s=a.slice(0);n.encryptBlock(s,0);for(var c=0;c>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},354905:function(e,t,r){var n;e.exports=(n=r(319021),r(57165),n.pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},610482:function(e,t,r){var n;e.exports=(n=r(319021),r(57165),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},358124:function(e,t,r){var n;e.exports=(n=r(319021),r(57165),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},652155:function(e,t,r){var n;e.exports=(n=r(319021),r(57165),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},n.pad.ZeroPadding)},670019:function(e,t,r){var n,i,o,a,s,c,u,l,d;e.exports=(d=r(319021),r(463009),r(651025),i=(n=d).lib,o=i.Base,a=i.WordArray,s=n.algo,c=s.SHA256,u=s.HMAC,l=s.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=u.create(r.hasher,e),i=a.create(),o=a.create([1]),s=i.words,c=o.words,l=r.keySize,d=r.iterations;s.length>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&l,f=l<<16|65535&u;for(n[0]^=u,n[1]^=d,n[2]^=l,n[3]^=f,n[4]^=u,n[5]^=d,n[6]^=l,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),n.RabbitLegacy)},296298:function(e,t,r){var n;e.exports=(n=r(319021),r(780754),r(484636),r(139506),r(57165),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&l,f=l<<16|65535&u;for(i[0]^=u,i[1]^=d,i[2]^=l,i[3]^=f,i[4]^=u,i[5]^=d,i[6]^=l,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),n.Rabbit)},77193:function(e,t,r){var n;e.exports=(n=r(319021),r(780754),r(484636),r(139506),r(57165),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)},578056:function(e,t,r){var n;e.exports=(n=r(319021),function(){var e=n,t=e.lib,r=t.WordArray,i=t.Hasher,o=e.algo,a=r.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]),s=r.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]),c=r.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]),u=r.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]),l=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,v,w,A,C,E,x,S,I,k,_=this._hash.words,T=l.words,M=d.words,P=a.words,j=s.words,D=c.words,O=u.words;for(C=o=_[0],E=f=_[1],x=v=_[2],S=w=_[3],I=A=_[4],r=0;r<80;r+=1)k=o+e[t+P[r]]|0,k+=r<16?h(f,v,w)+T[0]:r<32?p(f,v,w)+T[1]:r<48?g(f,v,w)+T[2]:r<64?m(f,v,w)+T[3]:y(f,v,w)+T[4],k=(k=b(k|=0,D[r]))+A|0,o=A,A=w,w=b(v,10),v=f,f=k,k=C+e[t+j[r]]|0,k+=r<16?y(E,x,S)+M[0]:r<32?m(E,x,S)+M[1]:r<48?g(E,x,S)+M[2]:r<64?p(E,x,S)+M[3]:h(E,x,S)+M[4],k=(k=b(k|=0,O[r]))+I|0,C=I,I=S,S=b(x,10),x=E,E=k;k=_[1]+v+S|0,_[1]=_[2]+w+I|0,_[2]=_[3]+A+C|0,_[3]=_[4]+o+E|0,_[4]=_[0]+f+x|0,_[0]=k},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function m(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function b(e,t){return e<>>32-t}e.RIPEMD160=i._createHelper(f),e.HmacRIPEMD160=i._createHmacHelper(f)}(Math),n.RIPEMD160)},445471:function(e,t,r){var n,i,o,a,s,c,u,l;e.exports=(l=r(319021),i=(n=l).lib,o=i.WordArray,a=i.Hasher,s=n.algo,c=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=0;u<80;u++){if(u<16)c[u]=0|e[t+u];else{var l=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=l<<1|l>>>31}var d=(n<<5|n>>>27)+s+c[u];d+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=d}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=a._createHelper(u),n.HmacSHA1=a._createHmacHelper(u),l.SHA1)},236308:function(e,t,r){var n,i,o,a,s,c;e.exports=(c=r(319021),r(463009),i=(n=c).lib.WordArray,o=n.algo,a=o.SHA256,s=o.SHA224=a.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=a._createHelper(s),n.HmacSHA224=a._createHmacHelper(s),c.SHA224)},463009:function(e,t,r){var n;e.exports=(n=r(319021),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),c[i]=r(e.pow(n,1/3)),i++),n++}();var u=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],d=r[6],f=r[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var p=u[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=u[h-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[h]=g+u[h-7]+y+u[h-16]}var b=n&i^n&o^i&o,v=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&d)+c[h]+u[h];f=d,d=l,l=s,s=a+w|0,a=o,o=i,i=n,n=w+(v+b)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+l|0,r[6]=r[6]+d|0,r[7]=r[7]+f|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),n.SHA256)},645953:function(e,t,r){var n;e.exports=(n=r(319021),r(643240),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,c=[],u=[],l=[];!function(){for(var e=1,t=0,r=0;r<24;r++){c[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,d=0,f=0;f<7;f++){if(1&i){var h=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(_=r[i]).high^=a,_.low^=o}for(var s=0;s<24;s++){for(var f=0;f<5;f++){for(var h=0,p=0,g=0;g<5;g++)h^=(_=r[f+5*g]).high,p^=_.low;var m=d[f];m.high=h,m.low=p}for(f=0;f<5;f++){var y=d[(f+4)%5],b=d[(f+1)%5],v=b.high,w=b.low;for(h=y.high^(v<<1|w>>>31),p=y.low^(w<<1|v>>>31),g=0;g<5;g++)(_=r[f+5*g]).high^=h,_.low^=p}for(var A=1;A<25;A++){var C=(_=r[A]).high,E=_.low,x=c[A];x<32?(h=C<>>32-x,p=E<>>32-x):(h=E<>>64-x,p=C<>>64-x);var S=d[u[A]];S.high=h,S.low=p}var I=d[0],k=r[0];for(I.high=k.high,I.low=k.low,f=0;f<5;f++)for(g=0;g<5;g++){var _=r[A=f+5*g],T=d[A],M=d[(f+1)%5+5*g],P=d[(f+2)%5+5*g];_.high=T.high^~M.high&P.high,_.low=T.low^~M.low&P.low}_=r[0];var j=l[s];_.high^=j.high,_.low^=j.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,u=[],l=0;l>>24)|4278255360&(f<<24|f>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),u.push(h),u.push(f)}return new i.init(u,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(f),t.HmacSHA3=o._createHmacHelper(f)}(Math),n.SHA3)},89557:function(e,t,r){var n,i,o,a,s,c,u,l;e.exports=(l=r(319021),r(643240),r(281380),i=(n=l).x64,o=i.Word,a=i.WordArray,s=n.algo,c=s.SHA512,u=s.SHA384=c.extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=c._createHelper(u),n.HmacSHA384=c._createHmacHelper(u),l.SHA384)},281380:function(e,t,r){var n;e.exports=(n=r(319021),r(643240),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var l=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],d=r[6],f=r[7],h=n.high,p=n.low,g=i.high,m=i.low,y=o.high,b=o.low,v=a.high,w=a.low,A=s.high,C=s.low,E=l.high,x=l.low,S=d.high,I=d.low,k=f.high,_=f.low,T=h,M=p,P=g,j=m,D=y,O=b,B=v,N=w,R=A,L=C,F=E,U=x,z=S,H=I,V=k,K=_,G=0;G<80;G++){var q,Q,W=u[G];if(G<16)Q=W.high=0|e[t+2*G],q=W.low=0|e[t+2*G+1];else{var J=u[G-15],Y=J.high,Z=J.low,$=(Y>>>1|Z<<31)^(Y>>>8|Z<<24)^Y>>>7,X=(Z>>>1|Y<<31)^(Z>>>8|Y<<24)^(Z>>>7|Y<<25),ee=u[G-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=u[G-7],ae=oe.high,se=oe.low,ce=u[G-16],ue=ce.high,le=ce.low;Q=(Q=(Q=$+ae+((q=X+se)>>>0>>0?1:0))+ne+((q+=ie)>>>0>>0?1:0))+ue+((q+=le)>>>0>>0?1:0),W.high=Q,W.low=q}var de,fe=R&F^~R&z,he=L&U^~L&H,pe=T&P^T&D^P&D,ge=M&j^M&O^j&O,me=(T>>>28|M<<4)^(T<<30|M>>>2)^(T<<25|M>>>7),ye=(M>>>28|T<<4)^(M<<30|T>>>2)^(M<<25|T>>>7),be=(R>>>14|L<<18)^(R>>>18|L<<14)^(R<<23|L>>>9),ve=(L>>>14|R<<18)^(L>>>18|R<<14)^(L<<23|R>>>9),we=c[G],Ae=we.high,Ce=we.low,Ee=V+be+((de=K+ve)>>>0>>0?1:0),xe=ye+ge;V=z,K=H,z=F,H=U,F=R,U=L,R=B+(Ee=(Ee=(Ee=Ee+fe+((de+=he)>>>0>>0?1:0))+Ae+((de+=Ce)>>>0>>0?1:0))+Q+((de+=q)>>>0>>0?1:0))+((L=N+de|0)>>>0>>0?1:0)|0,B=D,N=O,D=P,O=j,P=T,j=M,T=Ee+(me+pe+(xe>>>0>>0?1:0))+((M=de+xe|0)>>>0>>0?1:0)|0}p=n.low=p+M,n.high=h+T+(p>>>0>>0?1:0),m=i.low=m+j,i.high=g+P+(m>>>0>>0?1:0),b=o.low=b+O,o.high=y+D+(b>>>0>>0?1:0),w=a.low=w+N,a.high=v+B+(w>>>0>>0?1:0),C=s.low=C+L,s.high=A+R+(C>>>0>>0?1:0),x=l.low=x+U,l.high=E+F+(x>>>0>>0?1:0),I=d.low=I+H,d.high=S+z+(I>>>0>>0?1:0),_=f.low=_+K,f.high=k+V+(_>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(l),e.HmacSHA512=t._createHmacHelper(l)}(),n.SHA512)},907628:function(e,t,r){var n;e.exports=(n=r(319021),r(780754),r(484636),r(139506),r(57165),function(){var e=n,t=e.lib,r=t.WordArray,i=t.BlockCipher,o=e.algo,a=[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],s=[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],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{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}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var u=i[o]=[],l=c[o];for(r=0;r<24;r++)u[r/6|0]|=t[(s[r]-1+l)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(s[r+24]-1+l)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var d=this._invSubKeys=[];for(r=0;r<16;r++)d[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),f.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,c=0;c<8;c++)s|=u[c][((a^i[c])&l[c])>>>0];this._lBlock=a,this._rBlock=o^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,f.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(r.create(t)),this._des2=d.createEncryptor(r.create(n)),this._des3=d.createEncryptor(r.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(p)}(),n.TripleDES)},643240:function(e,t,r){var n;e.exports=(n=r(319021),function(e){var t=n,r=t.lib,i=r.Base,o=r.WordArray,a=t.x64={};a.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:8*t.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(r){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(r){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(740736)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},740736:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;const n=s,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e,t){let r=0,n=0,i=-1,o=0;for(;r"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const n of r)"-"===n[0]?t.skips.push(n.slice(1)):t.names.push(n)},t.enabled=function(e){for(const r of t.skips)if(i(e,r))return!1;for(const r of t.names)if(i(e,r))return!0;return!1},t.humanize=r(206585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(r){return!1}}function s(e,t,r){var i={};return r.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=n(e[t],r)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&r.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(o,r)(e[o],t[o],r):i[o]=n(t[o],r))})),i}function c(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(e)?a?o.arrayMerge(e,r,o):s(e,r,o):n(r,o)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var u=c;e.exports=u},430041:(e,t,r)=>{"use strict";var n=r(730655),i=r(358068),o=r(769675),a=r(675795);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&d?d.configurable:!u,enumerable:null===s&&d?d.enumerable:!s,value:r,writable:null===c&&d?d.writable:!c});else{if(!l&&(s||c||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},238452:(e,t,r)=>{"use strict";var n=r(101189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(430041),c=r(530592)(),u=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;c?s(e,t,r,!0):s(e,t,r)},l=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s{"use strict";t.utils=r(787626),t.Cipher=r(282808),t.DES=r(682211),t.CBC=r(403389),t.EDE=r(165279)},403389:(e,t,r)=>{"use strict";var n=r(443349),i=r(256698),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t{"use strict";var n=r(443349);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t{"use strict";var n=r(443349),i=r(256698),o=r(787626),a=r(282808);function s(){this.tmp=new Array(2),this.keys=null}function c(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(c,a),e.exports=c,c.create=function(e){return new c(e)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var a=0;a>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},c.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},c.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var r=e.length-t,n=t;n>>0,a=f}o.rip(s,a,n,i)},c.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];o.expand(a,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var d=o.substitute(u,l),f=a;a=(s^o.permute(d))>>>0,s=f}o.rip(a,s,n,i)}},165279:(e,t,r)=>{"use strict";var n=r(443349),i=r(256698),o=r(282808),a=r(682211);function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function c(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(c,o),e.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},c.prototype._pad=a.prototype._pad,c.prototype._unpad=a.prototype._unpad},787626:(e,t)=>{"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,c=0;c>>r[c]&1;for(c=s;c>>r[c]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,i=0;i<4;i++){r<<=4,r|=n[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){r<<=4,r|=n[256+64*i+(t>>>18-6*i&63)]}return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r>>i[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length{var n=r(204934),i=r(323241),o=r(914910);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){var t=new Buffer(i[e].prime,"hex"),r=new Buffer(i[e].gen,"hex");return new o(t,r)},t.createDiffieHellman=t.DiffieHellman=function e(t,r,i,s){return Buffer.isBuffer(r)||void 0===a[r]?e(t,"binary",r,i):(r=r||"binary",s=s||"binary",i=i||new Buffer([2]),Buffer.isBuffer(i)||(i=new Buffer(i,s)),"number"==typeof t?new o(n(t,i),i,!0):(Buffer.isBuffer(t)||(t=new Buffer(t,r)),new o(t,i,!0)))}},914910:(e,t,r)=>{var n=r(439404),i=new(r(352244)),o=new n(24),a=new n(11),s=new n(10),c=new n(3),u=new n(7),l=r(204934),d=r(553209);function f(e,t){return t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t)),this._pub=new n(e),this}function h(e,t){return t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t)),this._priv=new n(e),this}e.exports=g;var p={};function g(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=f,this.setPrivateKey=h):this._primeCode=8}function m(e,t){var r=new Buffer(e.toArray());return t?r.toString(t):r}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var d,f=0;if(e.isEven()||!l.simpleSieve||!l.fermatTest(e)||!i.test(e))return f+=1,f+="02"===r||"05"===r?8:4,p[n]=f,f;switch(i.test(e.shrn(1))||(f+=2),r){case"02":e.mod(o).cmp(a)&&(f+=8);break;case"05":(d=e.mod(s)).cmp(c)&&d.cmp(u)&&(f+=8);break;default:f+=4}return p[n]=f,f}(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new n(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(e){var t=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new Buffer(t.toArray()),i=this.getPrime();if(r.length{var n=r(553209);e.exports=b,b.simpleSieve=m,b.fermatTest=y;var i=r(439404),o=new i(24),a=new(r(352244)),s=new i(1),c=new i(2),u=new i(5),l=(new i(16),new i(8),new i(10)),d=new i(3),f=(new i(7),new i(11)),h=new i(4),p=(new i(12),null);function g(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;ie;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(u))for(;r.mod(l).cmp(d);)r.iadd(h)}else for(;r.mod(o).cmp(f);)r.iadd(h);if(m(p=r.shrn(1))&&m(r)&&y(p)&&y(r)&&a.test(p)&&a.test(r))return r}}},345413:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},641141:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=r(345413),a=r(336957);i(r(336957),t);var s=/\s+/g,c={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,r){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=c),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:c,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?o.ElementType.Tag:void 0,n=new a.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,r=this.lastNode;if(r&&r.type===o.ElementType.Text)t?r.data=(r.data+e).replace(s," "):r.data+=e,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{t&&(e=e.replace(s," "));var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new a.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=u,t.default=u},336957:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(c);t.NodeWithChildren=h;var p=function(e){function t(t){return e.call(this,a.ElementType.Root,t)||this}return i(t,e),t}(h);t.Document=p;var g=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,i,n)||this;return o.name=t,o.attribs=r,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(h);function m(e){return(0,a.isTag)(e)}function y(e){return e.type===a.ElementType.CDATA}function b(e){return e.type===a.ElementType.Text}function v(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function A(e){return e.type===a.ElementType.Root}function C(e,t){var r;if(void 0===t&&(t=!1),b(e))r=new l(e.data);else if(v(e))r=new d(e.data);else if(m(e)){var n=t?E(e.children):[],i=new g(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(y(e)){n=t?E(e.children):[];var s=new h(a.ElementType.CDATA,n);n.forEach((function(e){return e.parent=s})),r=s}else if(A(e)){n=t?E(e.children):[];var c=new p(n);n.forEach((function(e){return e.parent=c})),e["x-mode"]&&(c["x-mode"]=e["x-mode"]),r=c}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var u=new f(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),r=u}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function E(e){for(var t=e.map((function(e){return C(e,!0)})),r=1;r{"use strict";var n=r(373126),i=r(675795),o=[].__proto__===Array.prototype&&i&&i(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;e.exports=o&&"function"==typeof o.get?n([o.get]):"function"==typeof s&&function(e){return s(null==e?e:a(e))}},86729:(e,t,r)=>{"use strict";var n=t;n.version=r(1636).rE,n.utils=r(247011),n.rand=r(415037),n.curve=r(500894),n.curves=r(260480),n.ec=r(257447),n.eddsa=r(108650)},536677:(e,t,r)=>{"use strict";var n=r(439404),i=r(247011),o=i.getNAF,a=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<=a;l--)c=(c<<1)+n[l];u.push(c)}for(var d=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=i;h>0;h--){for(a=0;a=0;u--){for(var l=0;u>=0&&0===a[u];u--)l++;if(u>=0&&l++,c=c.dblp(l),u<0)break;var d=a[u];s(0!==d),c="affine"===e.type?d>0?c.mixedAdd(i[d-1>>1]):c.mixedAdd(i[-d-1>>1].neg()):d>0?c.add(i[d-1>>1]):c.add(i[-d-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){var s,c,u,l=this._wnafT1,d=this._wnafT2,f=this._wnafT3,h=0;for(s=0;s=1;s-=2){var g=s-1,m=s;if(1===l[g]&&1===l[m]){var y=[t[g],null,null,t[m]];0===t[g].y.cmp(t[m].y)?(y[1]=t[g].add(t[m]),y[2]=t[g].toJ().mixedAdd(t[m].neg())):0===t[g].y.cmp(t[m].y.redNeg())?(y[1]=t[g].toJ().mixedAdd(t[m]),y[2]=t[g].add(t[m].neg())):(y[1]=t[g].toJ().mixedAdd(t[m]),y[2]=t[g].toJ().mixedAdd(t[m].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[g],r[m]);for(h=Math.max(v[0].length,h),f[g]=new Array(h),f[m]=new Array(h),c=0;c=0;s--){for(var x=0;s>=0;){var S=!0;for(c=0;c=0&&x++,C=C.dblp(x),s<0)break;for(c=0;c0?u=d[c][I-1>>1]:I<0&&(u=d[c][-I-1>>1].neg()),C="affine"===u.type?C.mixedAdd(u):C.add(u))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i{"use strict";var n=r(247011),i=r(439404),o=r(256698),a=r(536677),s=n.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function u(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(c,a),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(u,a.BasePoint),c.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new u(this,e,t,r,n)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),c=i.redMul(a),u=o.redMul(s),l=i.redMul(s),d=a.redMul(o);return this.curve.point(c,u,d,l)},u.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var u=(n=this.curve._mulA(s)).redAdd(c);this.zOne?(e=a.redSub(s).redSub(c).redMul(u.redSub(this.curve.two)),t=u.redMul(n.redSub(c)),r=u.redSqr().redSub(u).redSub(u)):(i=this.z.redSqr(),o=u.redSub(i).redISub(i),e=a.redSub(s).redISub(c).redMul(o),t=u.redMul(n.redSub(c)),r=u.redMul(o))}else n=s.redAdd(c),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(c)),r=n.redMul(o);return this.curve.point(e,t,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),u=o.redMul(a),l=s.redMul(c),d=o.redMul(c),f=a.redMul(s);return this.curve.point(u,l,f,d)},u.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),u=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=n.redMul(c).redMul(l);return this.curve.twisted?(t=n.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=c.redMul(u)):(t=n.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(c).redMul(u)),this.curve.point(d,t,r)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},u.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},500894:(e,t,r)=>{"use strict";var n=t;n.base=r(536677),n.short=r(339188),n.mont=r(630370),n.edwards=r(531298)},630370:(e,t,r)=>{"use strict";var n=r(439404),i=r(256698),o=r(536677),a=r(247011);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},339188:(e,t,r)=>{"use strict";var n=r(247011),i=r(439404),o=r(256698),a=r(536677),s=n.assert;function c(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(c,a),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,c,u,l,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,h=this.n.clone(),p=new i(1),g=new i(0),m=new i(0),y=new i(1),b=0;0!==f.cmpn(0);){var v=h.div(f);u=h.sub(v.mul(f)),l=m.sub(v.mul(p));var w=y.sub(v.mul(g));if(!n&&u.cmp(d)<0)t=c.neg(),r=p,n=u.neg(),o=l;else if(n&&2==++b)break;c=u,h=f,f=u,m=p,p=l,y=g,g=w}a=u.neg(),s=l;var A=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(A)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(u).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},u.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,a.BasePoint),c.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),d=n.redMul(u),f=c.redSqr().redIAdd(l).redISub(d).redISub(d),h=c.redMul(d.redISub(f)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),l=r.redMul(c),d=s.redSqr().redIAdd(u).redISub(l).redISub(l),f=s.redMul(l.redISub(d)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},l.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},260480:(e,t,r)=>{"use strict";var n,i=t,o=r(277952),a=r(500894),s=r(247011).assert;function c(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(574011)}catch(l){n=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},257447:(e,t,r)=>{"use strict";var n=r(439404),i=r(932723),o=r(247011),a=r(260480),s=r(415037),c=o.assert,u=r(561200),l=r(928545);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new u(this,e)},d.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t,r){var i;if(n.isBN(e)||"number"==typeof e)i=(e=new n(e,16)).byteLength();else if("object"==typeof e)i=e.length,e=new n(e,16);else{var o=e.toString();i=o.length+1>>>1,e=new n(o,16)}"number"!=typeof r&&(r=8*i);var a=r-this.n.bitLength();return a>0&&(e=e.ushrn(a)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,r,o){if("object"==typeof r&&(o=r,r=null),o||(o={}),"string"!=typeof e&&"number"!=typeof e&&!n.isBN(e)){c("object"==typeof e&&e&&"number"==typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),c(e.length>>>0===e.length);for(var a=0;a=0)){var m=this.g.mul(g);if(!m.isInfinity()){var y=m.getX(),b=y.umod(this.n);if(0!==b.cmpn(0)){var v=g.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var w=(m.getY().isOdd()?1:0)|(0!==y.cmp(b)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),w^=1),new l({r:b,s:v,recoveryParam:w})}}}}}},d.prototype.verify=function(e,t,r,n,i){i||(i={}),e=this._truncateToN(e,!1,i.msgBitLength),r=this.keyFromPublic(r,n);var o=(t=new l(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),u=c.mul(e).umod(this.n),d=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),d)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(u,r.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},d.prototype.recoverPubKey=function(e,t,r,i){c((3&r)===r,"The recovery param is more than two bits"),t=new l(t,i);var o=this.n,a=new n(e),s=t.r,u=t.s,d=1&r,f=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),g=u.mul(h).umod(o);return this.g.mulAdd(p,s,g)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},561200:(e,t,r)=>{"use strict";var n=r(439404),i=r(247011).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t,r){return this.ec.verify(e,t,this,void 0,r)},o.prototype.inspect=function(){return""}},928545:(e,t,r)=>{"use strict";var n=r(439404),i=r(247011),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;if(0===e[t.place])return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function u(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=c(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=c(e,r);if(!1===a)return!1;if(128&e[r.place])return!1;var u=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var l=c(e,r);if(!1===l)return!1;if(e.length!==l+r.place)return!1;if(128&e[r.place])return!1;var d=e.slice(r.place,l+r.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(u),this.s=new n(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var o=n.concat(r),a=[48];return l(a,o.length),a=a.concat(o),i.encode(a,e)}},108650:(e,t,r)=>{"use strict";var n=r(277952),i=r(260480),o=r(247011),a=o.assert,s=o.parseBytes,c=r(446661),u=r(90220);function l(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=l,l.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),c=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},l.prototype.verify=function(e,t,r){if(e=s(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";var n=r(247011),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},90220:(e,t,r)=>{"use strict";var n=r(439404),i=r(247011),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(o(t.length===2*e.encodingLength,"Signature has invalid size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},574011:e=>{e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},247011:(e,t,r)=>{"use strict";var n=t,i=r(439404),o=r(443349),a=r(764367);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n,i=new Array(Math.max(e.bitLength(),r)+1);for(n=0;n(o>>1)-1?(o>>1)-c:c,a.isubn(s)):s=0,i[n]=s,a.iushrn(1)}return i},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,c=e.andln(3)+i&3,u=t.andln(3)+o&3;3===c&&(c=-1),3===u&&(u=-1),a=1&c?3!==(n=e.andln(7)+i&7)&&5!==n||2!==u?c:-c:0,r[0].push(a),s=1&u?3!==(n=t.andln(7)+o&7)&&5!==n||2!==c?u:-u:0,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},456617:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(r){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(r){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(559040)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},559040:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;const n=s,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{"use strict";function t(e,t){for(const r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!0,configurable:!0});return e}e.exports=function(e,r,n){if(!e||"string"==typeof e)throw new TypeError("Please pass an Error to err-code");n||(n={}),"object"==typeof r&&(n=r,r=""),r&&(n.code=r);try{return t(e,n)}catch(i){n.message=e.message,n.stack=e.stack;const r=function(){};r.prototype=Object.create(Object.getPrototypeOf(e));return t(new r,n)}}},730655:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(r){t=!1}e.exports=t},341237:e=>{"use strict";e.exports=EvalError},269383:e=>{"use strict";e.exports=Error},179290:e=>{"use strict";e.exports=RangeError},479538:e=>{"use strict";e.exports=ReferenceError},358068:e=>{"use strict";e.exports=SyntaxError},769675:e=>{"use strict";e.exports=TypeError},35345:e=>{"use strict";e.exports=URIError},679612:e=>{"use strict";e.exports=Object},32019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak512=t.keccak384=t.keccak256=t.keccak224=void 0;const n=r(427563),i=r(382672);t.keccak224=(0,i.wrapHash)(n.keccak_224),t.keccak256=(()=>{const e=(0,i.wrapHash)(n.keccak_256);return e.create=n.keccak_256.create,e})(),t.keccak384=(0,i.wrapHash)(n.keccak_384),t.keccak512=(0,i.wrapHash)(n.keccak_512)},440714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=a,t.createCurve=function(e,t){const r=t=>(0,o.weierstrass)({...e,...a(t)});return Object.freeze({...r(t),create:r})};const n=r(462031),i=r(795031),o=r(420489);function a(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}},859206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=function(e,t){const r=(e,t)=>{const r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,i=t;for(;r>o;)r&a&&(n=n.add(i)),i=i.double(),r>>=a;return n},precomputeWindow(e,t){const{windows:r,windowSize:i}=n(t),o=[];let a=e,s=a;for(let n=0;n>=h,n>c&&(n-=f,o+=a);const s=t,p=t+Math.abs(n)-1,g=e%2!=0,m=n<0;0===n?l=l.add(r(g,i[s])):u=u.add(r(m,i[p]))}return{p:u,f:l}},wNAFCached(e,t,r,n){const i=e._WINDOW_SIZE||1;let o=t.get(e);return o||(o=this.precomputeWindow(e,i),1!==i&&t.set(e,n(o))),this.wNAF(i,o,r)}}},t.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,i.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};const n=r(389015),i=r(119372),o=BigInt(0),a=BigInt(1)},181761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand_message_xmd=u,t.expand_message_xof=l,t.hash_to_field=d,t.isogenyMap=function(e,t){const r=t.map((e=>Array.from(e).reverse()));return(t,n)=>{const[i,o,a,s]=r.map((r=>r.reduce(((r,n)=>e.add(e.mul(r,t),n)))));return t=e.div(i,o),n=e.mul(n,e.div(a,s)),{x:t,y:n}}},t.createHasher=function(e,t,r){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(n,i){const o=d(n,2,{...r,DST:r.DST,...i}),a=e.fromAffine(t(o[0])),s=e.fromAffine(t(o[1])),c=a.add(s).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,i){const o=d(n,1,{...r,DST:r.encodeDST,...i}),a=e.fromAffine(t(o[0])).clearCofactor();return a.assertValidity(),a},mapToCurve(r){if(!Array.isArray(r))throw new Error("mapToCurve: expected array of bigints");for(const e of r)if("bigint"!=typeof e)throw new Error(`mapToCurve: expected array of bigints, got ${e} in array`);const n=e.fromAffine(t(r)).clearCofactor();return n.assertValidity(),n}}};const n=r(389015),i=r(119372),o=i.bytesToNumberBE;function a(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function s(e,t){const r=new Uint8Array(e.length);for(let n=0;n255&&(t=n((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:o,blockLen:u}=n,l=Math.ceil(r/o);if(l>255)throw new Error("Invalid xmd length");const d=(0,i.concatBytes)(t,a(t.length,1)),f=a(0,u),h=a(r,2),p=new Array(l),g=n((0,i.concatBytes)(f,e,h,a(0,1),d));p[0]=n((0,i.concatBytes)(g,a(1,1),d));for(let c=1;c<=l;c++){const e=[s(g,p[c-1]),a(c+1,1),d];p[c]=n((0,i.concatBytes)(...e))}return(0,i.concatBytes)(...p).slice(0,r)}function l(e,t,r,n,o){if((0,i.abytes)(e),(0,i.abytes)(t),c(r),t.length>255){const e=Math.ceil(2*n/8);t=o.create({dkLen:e}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:r}).update(e).update(a(r,2)).update(t).update(a(t.length,1)).digest()}function d(e,t,r){(0,i.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:a,k:s,m:d,hash:f,expand:h,DST:p}=r;(0,i.abytes)(e),c(t);const g="string"==typeof p?(0,i.utf8ToBytes)(p):p,m=a.toString(2).length,y=Math.ceil((m+s)/8),b=t*d*y;let v;if("xmd"===h)v=u(e,g,b,f);else if("xof"===h)v=l(e,g,b,s,f);else{if("_internal_pass"!==h)throw new Error('expand must be "xmd" or "xof"');v=e}const w=new Array(t);for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=d,t.pow=f,t.pow2=function(e,t,r){let n=e;for(;t-- >i;)n*=n,n%=r;return n},t.invert=h,t.tonelliShanks=p,t.FpSqrt=g,t.validateField=function(e){const t=m.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},t.FpPow=y,t.FpInvertBatch=b,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?h(r,e.ORDER):e.inv(r))},t.FpIsSquare=function(e){const t=(e.ORDER-o)/a;return r=>{const n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},t.nLength=v,t.Field=function(e,t,r=!1,a={}){if(e<=i)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:s,nByteLength:c}=v(e,t);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const u=g(e),l=Object.freeze({ORDER:e,BITS:s,BYTES:c,MASK:(0,n.bitMask)(s),ZERO:i,ONE:o,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return i<=t&&te===i,isOdd:e=>(e&o)===o,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,r)=>d(t+r,e),sub:(t,r)=>d(t-r,e),mul:(t,r)=>d(t*r,e),pow:(e,t)=>y(l,e,t),div:(t,r)=>d(t*h(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:a.sqrt||(e=>u(l,e)),invertBatch:e=>b(l,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,c):(0,n.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(l)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){const i=(e=(0,n.ensureBytes)("privateHash",e)).length,a=v(t).nByteLength+8;if(a<24||i1024)throw new Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${i}`);return d(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-o)+o},t.getFieldBytesLength=w,t.getMinHashLength=A,t.mapHashToField=function(e,t,r=!1){const i=e.length,a=w(t),s=A(t);if(i<16||i1024)throw new Error(`expected ${s}-1024 bytes of input, got ${i}`);const c=d(r?(0,n.bytesToNumberBE)(e):(0,n.bytesToNumberLE)(e),t-o)+o;return r?(0,n.numberToBytesLE)(c,a):(0,n.numberToBytesBE)(c,a)};const n=r(119372),i=BigInt(0),o=BigInt(1),a=BigInt(2),s=BigInt(3),c=BigInt(4),u=BigInt(5),l=BigInt(8);BigInt(9),BigInt(16);function d(e,t){const r=e%t;return r>=i?r:t+r}function f(e,t,r){if(r<=i||t 0");if(r===o)return i;let n=o;for(;t>i;)t&o&&(n=n*e%r),e=e*e%r,t>>=o;return n}function h(e,t){if(e===i||t<=i)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=d(e,t),n=t,a=i,s=o,c=o,u=i;for(;r!==i;){const e=n/r,t=n%r,i=a-c*e,o=s-u*e;n=r,r=t,a=c,s=u,c=i,u=o}if(n!==o)throw new Error("invert: does not exist");return d(a,t)}function p(e){const t=(e-o)/a;let r,n,s;for(r=e-o,n=0;r%a===i;r/=a,n++);for(s=a;s(d(e,t)&o)===o;const m=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function y(e,t,r){if(r 0");if(r===i)return e.ONE;if(r===o)return t;let n=e.ONE,a=t;for(;r>i;)r&o&&(n=e.mul(n,a)),a=e.sqr(a),r>>=o;return n}function b(e,t){const r=new Array(t.length),n=t.reduce(((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n))),e.ONE),i=e.inv(n);return t.reduceRight(((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n))),i),r}function v(e,t){const r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function w(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function A(e){const t=w(e);return t+Math.ceil(t/2)}},119372:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitMask=void 0,t.isBytes=o,t.abytes=a,t.bytesToHex=c,t.numberToHexUnpadded=u,t.hexToNumber=l,t.hexToBytes=h,t.bytesToNumberBE=function(e){return l(c(e))},t.bytesToNumberLE=function(e){return a(e),l(c(Uint8Array.from(e).reverse()))},t.numberToBytesBE=p,t.numberToBytesLE=function(e,t){return p(e,t).reverse()},t.numberToVarBytesBE=function(e){return h(u(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=h(t)}catch(a){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${a}`)}else{if(!o(t))throw new Error(`${e} must be hex string or Uint8Array`);n=Uint8Array.from(t)}const i=n.length;if("number"==typeof r&&i!==r)throw new Error(`${e} expected ${r} bytes, got ${i}`);return n},t.concatBytes=g,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;nr;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n},t.bitSet=function(e,t,i){return e|(i?n:r)<{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),c=(e=m())=>{i=s(y([0]),e),n=s(),0!==e.length&&(i=s(y([1]),e),n=s())},u=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e{let r;for(a(),c(e);!(r=t(u()));)c();return a(),r}},t.validateObject=function(e,t,r={}){const n=(t,r,n)=>{const i=b[r];if("function"!=typeof i)throw new Error(`Invalid validator "${r}", expected function`);const o=e[t];if(!(n&&void 0===o||i(o,e)))throw new Error(`Invalid param ${String(t)}=${o} (${typeof o}), expected ${r}`)};for(const[i,o]of Object.entries(t))n(i,o,!1);for(const[i,o]of Object.entries(r))n(i,o,!0);return e};const r=BigInt(0),n=BigInt(1),i=BigInt(2);function o(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function a(e){if(!o(e))throw new Error("Uint8Array expected")}const s=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function c(e){a(e);let t="";for(let r=0;r=d._0&&e<=d._9?e-d._0:e>=d._A&&e<=d._F?e-(d._A-10):e>=d._a&&e<=d._f?e-(d._a-10):void 0}function h(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let i=0,o=0;i(i<new Uint8Array(e),y=e=>Uint8Array.from(e);const b={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||o(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)}},420489:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DER=void 0,t.weierstrassPoints=p,t.weierstrass=function(e){const r=function(e){const t=(0,n.validateBasic)(e);return o.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:c}=r,d=s.BYTES+1,f=2*s.BYTES+1;function h(e){return i.mod(e,c)}function g(e){return i.invert(e,c)}const{ProjectivePoint:m,normPrivateKeyToScalar:y,weierstrassEquation:b,isWithinCurveOrder:v}=p({...r,toBytes(e,t,r){const n=t.toAffine(),i=s.toBytes(n.x),a=o.concatBytes;return r?a(Uint8Array.from([t.hasEvenY()?2:3]),i):a(Uint8Array.from([4]),i,s.toBytes(n.y))},fromBytes(e){const t=e.length,r=e[0],n=e.subarray(1);if(t!==d||2!==r&&3!==r){if(t===f&&4===r){return{x:s.fromBytes(n.subarray(0,s.BYTES)),y:s.fromBytes(n.subarray(s.BYTES,2*s.BYTES))}}throw new Error(`Point of length ${t} was invalid. Expected ${d} compressed bytes or ${f} uncompressed bytes`)}{const e=o.bytesToNumberBE(n);if(!(u<(i=e)&&io.bytesToHex(o.numberToBytesBE(e,r.nByteLength));function A(e){return e>c>>l}const C=(e,t,r)=>o.bytesToNumberBE(e.slice(t,r));class E{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){const t=r.nByteLength;return e=(0,a.ensureBytes)("compactSignature",e,2*t),new E(C(e,0,t),C(e,t,2*t))}static fromDER(e){const{r:r,s:n}=t.DER.toSig((0,a.ensureBytes)("DER",e));return new E(r,n)}assertValidity(){if(!v(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new E(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:n,recovery:i}=this,o=k((0,a.ensureBytes)("msgHash",e));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const c=2===i||3===i?t+r.n:t;if(c>=s.ORDER)throw new Error("recovery id 2 or 3 invalid");const u=1&i?"03":"02",l=m.fromHex(u+w(c)),d=g(c),f=h(-o*d),p=h(n*d),y=m.BASE.multiplyAndAddUnsafe(l,f,p);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return A(this.s)}normalizeS(){return this.hasHighS()?new E(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return o.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return o.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}const x={isValidPrivateKey(e){try{return y(e),!0}catch(t){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const e=i.getMinHashLength(r.n);return i.mapHashToField(r.randomBytes(e),r.n)},precompute:(e=8,t=m.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function S(e){const t=o.isBytes(e),r="string"==typeof e,n=(t||r)&&e.length;return t?n===d||n===f:r?n===2*d||n===2*f:e instanceof m}const I=r.bits2int||function(e){const t=o.bytesToNumberBE(e),n=8*e.length-r.nBitLength;return n>0?t>>BigInt(n):t},k=r.bits2int_modN||function(e){return h(I(e))},_=o.bitMask(r.nBitLength);function T(e){if("bigint"!=typeof e)throw new Error("bigint expected");if(!(u<=e&&e<_))throw new Error(`bigint expected < 2^${r.nBitLength}`);return o.numberToBytesBE(e,r.nByteLength)}function M(e,t,n=P){if(["recovered","canonical"].some((e=>e in n)))throw new Error("sign() legacy options not supported");const{hash:i,randomBytes:c}=r;let{lowS:d,prehash:f,extraEntropy:p}=n;null==d&&(d=!0),e=(0,a.ensureBytes)("msgHash",e),f&&(e=(0,a.ensureBytes)("prehashed msgHash",i(e)));const b=k(e),w=y(t),C=[T(w),T(b)];if(null!=p&&!1!==p){const e=!0===p?c(s.BYTES):p;C.push((0,a.ensureBytes)("extraEntropy",e))}const x=o.concatBytes(...C),S=b;return{seed:x,k2sig:function(e){const t=I(e);if(!v(t))return;const r=g(t),n=m.BASE.multiply(t).toAffine(),i=h(n.x);if(i===u)return;const o=h(r*h(S+i*w));if(o===u)return;let a=(n.x===i?0:2)|Number(n.y&l),s=o;return d&&A(o)&&(s=function(e){return A(e)?h(-e):e}(o),a^=1),new E(i,s,a)}}}const P={lowS:r.lowS,prehash:!1},j={lowS:r.lowS,prehash:!1};return m.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e,t=!0){return m.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(S(e))throw new Error("first arg must be private key");if(!S(t))throw new Error("second arg must be public key");return m.fromHex(t).multiply(y(e)).toRawBytes(r)},sign:function(e,t,n=P){const{seed:i,k2sig:a}=M(e,t,n),s=r;return o.createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)(i,a)},verify:function(e,n,i,s=j){const c=e;if(n=(0,a.ensureBytes)("msgHash",n),i=(0,a.ensureBytes)("publicKey",i),"strict"in s)throw new Error("options.strict was renamed to lowS");const{lowS:u,prehash:l}=s;let d,f;try{if("string"==typeof c||o.isBytes(c))try{d=E.fromDER(c)}catch(x){if(!(x instanceof t.DER.Err))throw x;d=E.fromCompact(c)}else{if("object"!=typeof c||"bigint"!=typeof c.r||"bigint"!=typeof c.s)throw new Error("PARSE");{const{r:e,s:t}=c;d=new E(e,t)}}f=m.fromHex(i)}catch(S){if("PARSE"===S.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(u&&d.hasHighS())return!1;l&&(n=r.hash(n));const{r:p,s:y}=d,b=k(n),v=g(y),w=h(b*v),A=h(p*v),C=m.BASE.multiplyAndAddUnsafe(f,w,A)?.toAffine();if(!C)return!1;return h(C.x)===p},ProjectivePoint:m,Signature:E,utils:x}},t.SWUFpSqrtRatio=g,t.mapToCurveSimpleSWU=function(e,t){if(i.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=g(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let i,o,a,s,c,u,l,d;i=e.sqr(n),i=e.mul(i,t.Z),o=e.sqr(i),o=e.add(o,i),a=e.add(o,e.ONE),a=e.mul(a,t.B),s=e.cmov(t.Z,e.neg(o),!e.eql(o,e.ZERO)),s=e.mul(s,t.A),o=e.sqr(a),u=e.sqr(s),c=e.mul(u,t.A),o=e.add(o,c),o=e.mul(o,a),u=e.mul(u,s),c=e.mul(u,t.B),o=e.add(o,c),l=e.mul(i,a);const{isValid:f,value:h}=r(o,u);d=e.mul(i,n),d=e.mul(d,h),l=e.cmov(l,a,f),d=e.cmov(d,h,f);const p=e.isOdd(n)===e.isOdd(d);return d=e.cmov(e.neg(d),d,p),l=e.div(l,s),{x:l,y:d}}};const n=r(859206),i=r(389015),o=r(119372),a=r(119372);const{bytesToNumberBE:s,hexToBytes:c}=o;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){const{Err:r}=t.DER;if(e.length<2||2!==e[0])throw new r("Invalid signature integer tag");const n=e[1],i=e.subarray(2,n+2);if(!n||i.length!==n)throw new r("Invalid signature integer: wrong length");if(128&i[0])throw new r("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:s(i),l:e.subarray(n+2)}},toSig(e){const{Err:r}=t.DER,n="string"==typeof e?c(e):e;o.abytes(n);let i=n.length;if(i<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==i-2)throw new r("Invalid signature: incorrect length");const{d:a,l:s}=t.DER._parseInt(n.subarray(2)),{d:u,l:l}=t.DER._parseInt(s);if(l.length)throw new r("Invalid signature: left bytes after parsing");return{r:a,s:u}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),i=t(r(e.r)),o=n.length/2,a=i.length/2,s=r(o),c=r(a);return`30${r(a+o+4)}02${c}${i}02${s}${n}`}};const u=BigInt(0),l=BigInt(1),d=BigInt(2),f=BigInt(3),h=BigInt(4);function p(e){const t=function(e){const t=(0,n.validateBasic)(e);o.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:i,a:a}=t;if(r){if(!i.eql(a,i.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,s=t.toBytes||((e,t,n)=>{const i=t.toAffine();return o.concatBytes(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),c=t.fromBytes||(e=>{const t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function d(e){const{a:n,b:i}=t,o=r.sqr(e),a=r.mul(o,e);return r.add(r.add(a,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),d(t.Gx)))throw new Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&ur.eql(e,r.ZERO);return i(t)&&i(n)?b.ZERO:new b(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(b.fromAffine)}static fromHex(e){const t=b.fromAffine(c((0,a.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return b.BASE.multiply(g(e))}_setWindowSize(e){this._WINDOW_SIZE=e,m.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw new Error("bad point: x or y not FE");const i=r.sqr(n),o=d(e);if(!r.eql(i,o))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){y(e);const{px:t,py:n,pz:i}=this,{px:o,py:a,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(o,i)),u=r.eql(r.mul(n,s),r.mul(a,i));return c&&u}negate(){return new b(this.px,r.neg(this.py),this.pz)}double(){const{a:e,b:n}=t,i=r.mul(n,f),{px:o,py:a,pz:s}=this;let c=r.ZERO,u=r.ZERO,l=r.ZERO,d=r.mul(o,o),h=r.mul(a,a),p=r.mul(s,s),g=r.mul(o,a);return g=r.add(g,g),l=r.mul(o,s),l=r.add(l,l),c=r.mul(e,l),u=r.mul(i,p),u=r.add(c,u),c=r.sub(h,u),u=r.add(h,u),u=r.mul(c,u),c=r.mul(g,c),l=r.mul(i,l),p=r.mul(e,p),g=r.sub(d,p),g=r.mul(e,g),g=r.add(g,l),l=r.add(d,d),d=r.add(l,d),d=r.add(d,p),d=r.mul(d,g),u=r.add(u,d),p=r.mul(a,s),p=r.add(p,p),d=r.mul(p,g),c=r.sub(c,d),l=r.mul(p,h),l=r.add(l,l),l=r.add(l,l),new b(c,u,l)}add(e){y(e);const{px:n,py:i,pz:o}=this,{px:a,py:s,pz:c}=e;let u=r.ZERO,l=r.ZERO,d=r.ZERO;const h=t.a,p=r.mul(t.b,f);let g=r.mul(n,a),m=r.mul(i,s),v=r.mul(o,c),w=r.add(n,i),A=r.add(a,s);w=r.mul(w,A),A=r.add(g,m),w=r.sub(w,A),A=r.add(n,o);let C=r.add(a,c);return A=r.mul(A,C),C=r.add(g,v),A=r.sub(A,C),C=r.add(i,o),u=r.add(s,c),C=r.mul(C,u),u=r.add(m,v),C=r.sub(C,u),d=r.mul(h,A),u=r.mul(p,v),d=r.add(u,d),u=r.sub(m,d),d=r.add(m,d),l=r.mul(u,d),m=r.add(g,g),m=r.add(m,g),v=r.mul(h,v),A=r.mul(p,A),m=r.add(m,v),v=r.sub(g,v),v=r.mul(h,v),A=r.add(A,v),g=r.mul(m,A),l=r.add(l,g),g=r.mul(C,A),u=r.mul(w,u),u=r.sub(u,g),g=r.mul(w,m),d=r.mul(C,d),d=r.add(d,g),new b(u,l,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(b.ZERO)}wNAF(e){return w.wNAFCached(this,m,e,(e=>{const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(b.fromAffine)}))}multiplyUnsafe(e){const n=b.ZERO;if(e===u)return n;if(p(e),e===l)return this;const{endo:i}=t;if(!i)return w.unsafeLadder(this,e);let{k1neg:o,k1:a,k2neg:s,k2:c}=i.splitScalar(e),d=n,f=n,h=this;for(;a>u||c>u;)a&l&&(d=d.add(h)),c&l&&(f=f.add(h)),h=h.double(),a>>=l,c>>=l;return o&&(d=d.negate()),s&&(f=f.negate()),f=new b(r.mul(f.px,i.beta),f.py,f.pz),d.add(f)}multiply(e){p(e);let n,i,o=e;const{endo:a}=t;if(a){const{k1neg:e,k1:t,k2neg:s,k2:c}=a.splitScalar(o);let{p:u,f:l}=this.wNAF(t),{p:d,f:f}=this.wNAF(c);u=w.constTimeNegate(e,u),d=w.constTimeNegate(s,d),d=new b(r.mul(d.px,a.beta),d.py,d.pz),n=u.add(d),i=l.add(f)}else{const{p:e,f:t}=this.wNAF(o);n=e,i=t}return b.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){const n=b.BASE,i=(e,t)=>t!==u&&t!==l&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?void 0:o}toAffine(e){const{px:t,py:n,pz:i}=this,o=this.is0();null==e&&(e=o?r.ONE:r.inv(i));const a=r.mul(t,e),s=r.mul(n,e),c=r.mul(i,e);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw new Error("invZ was invalid");return{x:a,y:s}}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===l)return!0;if(r)return r(b,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===l?this:r?r(b,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),s(b,this,e)}toHex(e=!0){return o.bytesToHex(this.toRawBytes(e))}}b.BASE=new b(t.Gx,t.Gy,r.ONE),b.ZERO=new b(r.ZERO,r.ONE,r.ZERO);const v=t.nBitLength,w=(0,n.wNAF)(b,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:g,weierstrassEquation:d,isWithinCurveOrder:h}}function g(e,t){const r=e.ORDER;let n=u;for(let f=r-l;f%d===u;f/=d)n+=l;const i=n,o=d<{let n=m,o=e.pow(r,p),a=e.sqr(o);a=e.mul(a,r);let s=e.mul(t,a);s=e.pow(s,c),s=e.mul(s,o),o=e.mul(s,r),a=e.mul(s,t);let u=e.mul(a,o);s=e.pow(u,g);let f=e.eql(s,e.ONE);o=e.mul(a,y),s=e.mul(u,n),a=e.cmov(o,a,f),u=e.cmov(s,u,f);for(let c=i;c>l;c--){let t=c-d;t=d<{let o=e.sqr(i);const a=e.mul(t,i);o=e.mul(o,a);let s=e.pow(o,r);s=e.mul(s,a);const c=e.mul(s,n),u=e.mul(e.sqr(s),i),l=e.eql(u,t);return{isValid:l,value:e.cmov(c,s,l)}}}return b}},467694:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;const n=r(143),i=r(795031),o=r(440714),a=r(181761),s=r(389015),c=r(119372),u=r(420489),l=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f=BigInt(1),h=BigInt(2),p=(e,t)=>(e+t/h)/t;function g(e){const t=l,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),a=BigInt(23),c=BigInt(44),u=BigInt(88),d=e*e*e%t,f=d*d*e%t,p=(0,s.pow2)(f,r,t)*f%t,g=(0,s.pow2)(p,r,t)*f%t,y=(0,s.pow2)(g,h,t)*d%t,b=(0,s.pow2)(y,i,t)*y%t,v=(0,s.pow2)(b,o,t)*b%t,w=(0,s.pow2)(v,c,t)*v%t,A=(0,s.pow2)(w,u,t)*w%t,C=(0,s.pow2)(A,c,t)*v%t,E=(0,s.pow2)(C,r,t)*f%t,x=(0,s.pow2)(E,a,t)*b%t,S=(0,s.pow2)(x,n,t)*d%t,I=(0,s.pow2)(S,h,t);if(!m.eql(m.sqr(I),e))throw new Error("Cannot find square root");return I}const m=(0,s.Field)(l,void 0,void 0,{sqrt:g});t.secp256k1=(0,o.createCurve)({a:BigInt(0),b:BigInt(7),Fp:m,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=d,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-f*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),c=p(o*e,t),u=p(-n*e,t);let l=(0,s.mod)(e-c*r-u*i,t),h=(0,s.mod)(-c*n-u*o,t);const g=l>a,m=h>a;if(g&&(l=t-l),m&&(h=t-h),l>a||h>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:g,k1:l,k2neg:m,k2:h}}}},n.sha256);const y=BigInt(0),b=e=>"bigint"==typeof e&&ye.charCodeAt(0))));r=(0,c.concatBytes)(t,t),v[e]=r}return(0,n.sha256)((0,c.concatBytes)(r,...t))}const A=e=>e.toRawBytes(!0).slice(1),C=e=>(0,c.numberToBytesBE)(e,32),E=e=>(0,s.mod)(e,l),x=e=>(0,s.mod)(e,d),S=t.secp256k1.ProjectivePoint;function I(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=S.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:x(-r),bytes:A(n)}}function k(e){if(!b(e))throw new Error("bad x: need 0 < x < p");const t=E(e*e);let r=g(E(t*e+BigInt(7)));r%h!==y&&(r=E(-r));const n=new S(e,r,f);return n.assertValidity(),n}function _(...e){return x((0,c.bytesToNumberBE)(w("BIP0340/challenge",...e)))}function T(e){return I(e).bytes}function M(e,t,r=(0,i.randomBytes)(32)){const n=(0,c.ensureBytes)("message",e),{bytes:o,scalar:a}=I(t),s=(0,c.ensureBytes)("auxRand",r,32),u=C(a^(0,c.bytesToNumberBE)(w("BIP0340/aux",s))),l=w("BIP0340/nonce",u,o,n),d=x((0,c.bytesToNumberBE)(l));if(d===y)throw new Error("sign failed: k is zero");const{bytes:f,scalar:h}=I(d),p=_(f,o,n),g=new Uint8Array(64);if(g.set(f,0),g.set(C(x(h+p*a)),32),!P(g,n,o))throw new Error("sign: Invalid signature produced");return g}function P(e,t,r){const n=(0,c.ensureBytes)("signature",e,64),i=(0,c.ensureBytes)("message",t),o=(0,c.ensureBytes)("publicKey",r,32);try{const e=k((0,c.bytesToNumberBE)(o)),t=(0,c.bytesToNumberBE)(n.subarray(0,32));if(!b(t))return!1;const r=(0,c.bytesToNumberBE)(n.subarray(32,64));if(!("bigint"==typeof(l=r)&&y(0,a.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))))(),D=(()=>(0,u.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))(),O=(()=>(0,a.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:r}=D(m.create(e[0]));return j(t,r)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}))();t.hashToCurve=O.hashToCurve,t.encodeToCurve=O.encodeToCurve},328021:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function n(e){if("boolean"!=typeof e)throw new Error(`boolean expected, not ${e}`)}function i(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function o(e,...t){if(!i(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function a(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function s(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function c(e,t){o(e);const r=t.outputLen;if(e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashMD=t.Maj=t.Chi=void 0;const n=r(328021),i=r(795031);t.Chi=(e,t,r)=>e&t^~e&r;t.Maj=(e,t,r)=>e&t^e&r^t&r;class o extends i.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){(0,n.exists)(this);const{view:t,buffer:r,blockLen:o}=this,a=(e=(0,i.toBytes)(e)).length;for(let n=0;no-s&&(this.process(r,0),s=0);for(let n=s;n>i&o),s=Number(r&o),c=n?4:0,u=n?0:4;e.setUint32(t+c,a,n),e.setUint32(t+u,s,n)}(r,o-8,BigInt(8*this.length),a),this.process(r,0);const c=(0,i.createView)(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=u/4,d=this.get();if(l>d.length)throw new Error("_sha2: outputLen bigger than state");for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;oBigInt(e>>>0)<>>0);t.toBig=a;const s=(e,t,r)=>e>>>r;t.shrSH=s;const c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;const u=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=u;const l=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=l;const d=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=d;const f=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=f;const h=(e,t)=>t;t.rotr32H=h;const p=(e,t)=>e;t.rotr32L=p;const g=(e,t,r)=>e<>>32-r;t.rotlSH=g;const m=(e,t,r)=>t<>>32-r;t.rotlSL=m;const y=(e,t,r)=>t<>>64-r;t.rotlBH=y;const b=(e,t,r)=>e<>>64-r;function v(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:0|i}}t.rotlBL=b,t.add=v;const w=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=w;const A=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;t.add3H=A;const C=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=C;const E=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0;t.add4H=E;const x=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0);t.add5L=x;const S=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0;t.add5H=S;const I={fromBig:i,split:o,toBig:a,shrSH:s,shrSL:c,rotrSH:u,rotrSL:l,rotrBH:d,rotrBL:f,rotr32H:h,rotr32L:p,rotlSH:g,rotlSL:m,rotlBH:y,rotlBL:b,add:v,add3L:w,add3H:A,add4L:C,add4H:E,add5H:S,add5L:x};t.default=I},100457:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},462031:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const n=r(328021),i=r(795031);class o extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.hash)(e);const r=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,a=new Uint8Array(o);a.set(r.length>o?e.create().update(r).digest():r);for(let n=0;nnew o(e,t).update(r).digest(),t.hmac.create=(e,t)=>new o(e,t)},143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const n=r(554050),i=r(795031),o=new Uint32Array([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]),a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint32Array(64);class c extends n.HashMD{constructor(){super(64,32,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let n=0;n<16;n++,t+=4)s[n]=e.getUint32(t,!1);for(let n=16;n<64;n++){const e=s[n-15],t=s[n-2],r=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,o=(0,i.rotr)(t,17)^(0,i.rotr)(t,19)^t>>>10;s[n]=o+s[n-7]+r+s[n-16]|0}let{A:r,B:a,C:c,D:u,E:l,F:d,G:f,H:h}=this;for(let p=0;p<64;p++){const e=h+((0,i.rotr)(l,6)^(0,i.rotr)(l,11)^(0,i.rotr)(l,25))+(0,n.Chi)(l,d,f)+o[p]+s[p]|0,t=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+(0,n.Maj)(r,a,c)|0;h=f,f=d,d=l,l=u+e|0,u=c,c=a,a=r,r=e+t|0}r=r+this.A|0,a=a+this.B|0,c=c+this.C|0,u=u+this.D|0,l=l+this.E|0,d=d+this.F|0,f=f+this.G|0,h=h+this.H|0,this.set(r,a,c,u,l,d,f,h)}roundClean(){s.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)((()=>new c)),t.sha224=(0,i.wrapConstructor)((()=>new u))},427563:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const n=r(328021),i=r(996286),o=r(795031),a=[],s=[],c=[],u=BigInt(0),l=BigInt(1),d=BigInt(2),f=BigInt(7),h=BigInt(256),p=BigInt(113);for(let E=0,x=l,S=1,I=0;E<24;E++){[S,I]=[I,(2*S+3*I)%5],a.push(2*(5*I+S)),s.push((E+1)*(E+2)/2%64);let e=u;for(let t=0;t<7;t++)x=(x<>f)*p)%h,x&d&&(e^=l<<(l<r>32?(0,i.rotlBH)(e,t,r):(0,i.rotlSH)(e,t,r),b=(e,t,r)=>r>32?(0,i.rotlBL)(e,t,r):(0,i.rotlSL)(e,t,r);function v(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let n=0;n<10;n++)r[n]=e[n]^e[n+10]^e[n+20]^e[n+30]^e[n+40];for(let n=0;n<10;n+=2){const t=(n+8)%10,i=(n+2)%10,o=r[i],a=r[i+1],s=y(o,a,1)^r[t],c=b(o,a,1)^r[t+1];for(let r=0;r<50;r+=10)e[n+r]^=s,e[n+r+1]^=c}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=s[r],o=y(t,i,n),c=b(t,i,n),u=a[r];t=e[u],i=e[u+1],e[u]=o,e[u+1]=c}for(let n=0;n<50;n+=10){for(let t=0;t<10;t++)r[t]=e[n+t];for(let t=0;t<10;t++)e[n+t]^=~r[(t+2)%10]&r[(t+4)%10]}e[0]^=g[n],e[1]^=m[n]}r.fill(0)}t.keccakP=v;class w extends o.Hash{constructor(e,t,r,i=!1,a=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,o.u32)(this.state)}keccak(){o.isLE||(0,o.byteSwap32)(this.state32),v(this.state32,this.rounds),o.isLE||(0,o.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);const{blockLen:t,state:r}=this,i=(e=(0,o.toBytes)(e)).length;for(let n=0;n=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new w(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}t.Keccak=w;const A=(e,t,r)=>(0,o.wrapConstructor)((()=>new w(t,e,r)));t.sha3_224=A(6,144,28),t.sha3_256=A(6,136,32),t.sha3_384=A(6,104,48),t.sha3_512=A(6,72,64),t.keccak_224=A(1,144,28),t.keccak_256=A(1,136,32),t.keccak_384=A(1,104,48),t.keccak_512=A(1,72,64);const C=(e,t,r)=>(0,o.wrapXOFConstructorWithOpts)(((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0)));t.shake128=C(31,168,16),t.shake256=C(31,136,32)},795031:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.byteSwap32=t.byteSwapIfBE=t.byteSwap=t.isLE=t.rotl=t.rotr=t.createView=t.u32=t.u8=t.isBytes=void 0;const n=r(100457),i=r(328021);t.isBytes=function(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name};t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);t.rotr=(e,t)=>e<<32-t|e>>>t;t.rotl=(e,t)=>e<>>32-t>>>0,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];t.byteSwap=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255,t.byteSwapIfBE=t.isLE?e=>e:e=>(0,t.byteSwap)(e),t.byteSwap32=function(e){for(let r=0;rt.toString(16).padStart(2,"0")));t.bytesToHex=function(e){(0,i.bytes)(e);let t="";for(let r=0;r=a&&e<=s?e-a:e>=c&&e<=u?e-(c-10):e>=l&&e<=d?e-(l-10):void 0}t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let i=0,o=0;i{},t.asyncLoop=async function(e,r,n){let i=Date.now();for(let o=0;o=0&&ee().update(p(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(p(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(p(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},626513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1=void 0;var n=r(467694);Object.defineProperty(t,"secp256k1",{enumerable:!0,get:function(){return n.secp256k1}})},382672:function(e,t,r){"use strict";e=r.nmd(e);var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=t.utf8ToBytes=t.createView=t.concatBytes=t.toHex=t.bytesToHex=t.assertBytes=t.assertBool=void 0,t.bytesToUtf8=function(e){if(!(e instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof e);return(new TextDecoder).decode(e)},t.hexToBytes=function(e){const t=e.startsWith("0x")?e.substring(2):e;return(0,o.hexToBytes)(t)},t.equalsBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r(i.default.bytes(t),e(t))};const i=n(r(328021)),o=r(795031),a=i.default.bool;t.assertBool=a;const s=i.default.bytes;t.assertBytes=s;var c=r(795031);Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(t,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}}),t.crypto=(()=>{const t="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,r="function"==typeof e.require&&e.require.bind(e);return{node:r&&!t?r("crypto"):void 0,web:t}})()},802890:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseContract:()=>c.Uq,BigNumber:()=>u.gH,Contract:()=>c.NZ,ContractFactory:()=>c.PM,FixedNumber:()=>E,Signer:()=>I.l,VoidSigner:()=>I.J,Wallet:()=>ze,Wordlist:()=>z,constants:()=>n,errors:()=>d.O4,ethers:()=>s,getDefaultProvider:()=>Qt,logger:()=>Pr,providers:()=>i,utils:()=>a,version:()=>Mr,wordlists:()=>G});var n={};r.r(n),r.d(n,{AddressZero:()=>Ke.L,EtherSymbol:()=>Qe,HashZero:()=>qe.j,MaxInt256:()=>Ge.fw,MaxUint256:()=>Ge.Is,MinInt256:()=>Ge.LV,NegativeOne:()=>Ge.eR,One:()=>Ge.pD,Two:()=>Ge.d0,WeiPerEther:()=>Ge.lQ,Zero:()=>Ge.XK});var i={};r.r(i),r.d(i,{AlchemyProvider:()=>nt,AlchemyWebSocketProvider:()=>rt,AnkrProvider:()=>st,BaseProvider:()=>Je.DJ,CloudflareProvider:()=>lt,EtherscanProvider:()=>vt,FallbackProvider:()=>Bt,Formatter:()=>Ye.ZA,InfuraProvider:()=>Rt.p,InfuraWebSocketProvider:()=>Rt.g,IpcProvider:()=>Nt,JsonRpcBatchProvider:()=>Ft,JsonRpcProvider:()=>Lt.F,JsonRpcSigner:()=>Lt.c,NodesmithProvider:()=>zt,PocketProvider:()=>Kt,Provider:()=>_.Kq,Resolver:()=>Je.xR,StaticJsonRpcProvider:()=>Xe.B,UrlJsonRpcProvider:()=>Xe.M,Web3Provider:()=>Gt.j,WebSocketProvider:()=>Ze.f,getDefaultProvider:()=>Qt,getNetwork:()=>We.N,isCommunityResourcable:()=>Ye.fw,isCommunityResource:()=>Ye.ws,showThrottleMessage:()=>Ye.Zd});var o={};r.r(o),r.d(o,{decode:()=>$t.D,encode:()=>$t.l});var a={};r.r(a),r.d(a,{AbiCoder:()=>Wt.y,ConstructorFragment:()=>Jt.Pw,ErrorFragment:()=>Jt.bp,EventFragment:()=>Jt.Zp,FormatTypes:()=>Jt.$o,Fragment:()=>Jt.FK,FunctionFragment:()=>Jt.hc,HDNode:()=>re,Indexed:()=>Zt.wu,Interface:()=>Zt.KA,LogDescription:()=>Zt.FW,Logger:()=>d.Vy,ParamType:()=>Jt.aX,RLP:()=>ur,SigningKey:()=>N.hR,SupportedAlgorithm:()=>R.q,TransactionDescription:()=>Zt.dJ,TransactionTypes:()=>L.Eh,UnicodeNormalizationForm:()=>j.dz,Utf8ErrorFuncs:()=>j.d5,Utf8ErrorReason:()=>j._E,_TypedDataEncoder:()=>M.z,_fetchData:()=>dt.Em,_toEscapedUtf8String:()=>j.Wj,accessListify:()=>L.$2,arrayify:()=>l.k9,base58:()=>P.zn,base64:()=>o,checkProperties:()=>B.qN,checkResultErrors:()=>Yt.$v,commify:()=>Sr,computeAddress:()=>L.Kt,computeHmac:()=>D.L5,computePublicKey:()=>N.uN,concat:()=>l.xW,deepCopy:()=>B.A4,defaultAbiCoder:()=>Wt.D,defaultPath:()=>te,defineReadOnly:()=>B.yY,dnsEncode:()=>Xt.Wh,entropyToMnemonic:()=>oe,fetchJson:()=>dt.x6,formatBytes32String:()=>Ar,formatEther:()=>_r,formatUnits:()=>Ir,getAccountPath:()=>se,getAddress:()=>k.bv,getContractAddress:()=>k.RZ,getCreate2Address:()=>k.Nm,getIcapAddress:()=>k.OD,getJsonWalletAddress:()=>Ne,getStatic:()=>B.$J,hashMessage:()=>T.A,hexConcat:()=>l.qn,hexDataLength:()=>l.cm,hexDataSlice:()=>l.Ab,hexStripZeros:()=>l.hP,hexValue:()=>l.Fh,hexZeroPad:()=>l.bj,hexlify:()=>l.c$,id:()=>F.id,isAddress:()=>k.PW,isBytes:()=>l.aY,isBytesLike:()=>l.f,isHexString:()=>l.Lo,isValidMnemonic:()=>ae,isValidName:()=>Xt.uV,joinSignature:()=>l.FU,keccak256:()=>ce.S,mnemonicToEntropy:()=>ie,mnemonicToSeed:()=>ne,namehash:()=>Xt.kM,nameprep:()=>wr,parseBytes32String:()=>Cr,parseEther:()=>Tr,parseTransaction:()=>L.qg,parseUnits:()=>kr,poll:()=>dt.wt,randomBytes:()=>fe,recoverAddress:()=>L.x_,recoverPublicKey:()=>N.jL,resolveProperties:()=>B.k_,ripemd160:()=>D.HE,serializeTransaction:()=>L.lK,sha256:()=>D.sc,sha512:()=>D.Zf,shallowCopy:()=>B.Ic,shuffled:()=>wt,solidityKeccak256:()=>sr,solidityPack:()=>ar,soliditySha256:()=>cr,splitSignature:()=>l.Pc,stripZeros:()=>l.gr,toUtf8Bytes:()=>j.YW,toUtf8CodePoints:()=>j.dg,toUtf8String:()=>j._v,verifyMessage:()=>He,verifyTypedData:()=>Ve,zeroPad:()=>l.e8});var s={};r.r(s),r.d(s,{BaseContract:()=>c.Uq,BigNumber:()=>u.gH,Contract:()=>c.NZ,ContractFactory:()=>c.PM,FixedNumber:()=>E,Signer:()=>I.l,VoidSigner:()=>I.J,Wallet:()=>ze,Wordlist:()=>z,constants:()=>n,errors:()=>d.O4,getDefaultProvider:()=>Qt,logger:()=>Pr,providers:()=>i,utils:()=>a,version:()=>Mr,wordlists:()=>G});var c=r(86863),u=r(937457),l=r(308471),d=r(878366),f=r(356667);const h=new d.Vy(f.r),p={},g=u.gH.from(0),m=u.gH.from(-1);function y(e,t,r,n){const i={fault:t,operation:r};return void 0!==n&&(i.value=n),h.throwError(e,d.Vy.errors.NUMERIC_FAULT,i)}let b="0";for(;b.length<256;)b+=b;function v(e){if("number"!=typeof e)try{e=u.gH.from(e).toNumber()}catch(t){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+b.substring(0,e):h.throwArgumentError("invalid decimal size","decimals",e)}function w(e,t){null==t&&(t=0);const r=v(t),n=(e=u.gH.from(e)).lt(g);n&&(e=e.mul(m));let i=e.mod(r).toString();for(;i.length2&&h.throwArgumentError("too many decimal points","value",e);let o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>r.length-1&&y("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.lengthnull==e[t]?n:(typeof e[t]!==r&&h.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&h.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&h.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new C(p,t,r,n)}}class E{constructor(e,t,r,n){e!==p&&h.throwError("cannot use FixedNumber constructor; use FixedNumber.from",d.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&h.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=A(this._value,this.format.decimals),r=A(e._value,e.format.decimals);return E.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=A(this._value,this.format.decimals),r=A(e._value,e.format.decimals);return E.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=A(this._value,this.format.decimals),r=A(e._value,e.format.decimals);return E.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=A(this._value,this.format.decimals),r=A(e._value,e.format.decimals);return E.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=E.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(x.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=E.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(x.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&h.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const r=E.from("1"+b.substring(0,e),this.format),n=S.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&h.throwArgumentError("invalid byte width","width",e);const t=u.gH.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,l.bj)(t,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return E.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||(0,u.YR)(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),E.fromString(w(e,t),C.from(r))}static fromString(e,t){null==t&&(t="fixed");const r=C.from(t),n=A(e,r.decimals);!r.signed&&n.lt(g)&&y("unsigned value cannot be negative","overflow","value",e);let i=null;r.signed?i=n.toTwos(r.width).toHexString():(i=n.toHexString(),i=(0,l.bj)(i,r.width/8));const o=w(n,r.decimals);return new E(p,i,o,r)}static fromBytes(e,t){null==t&&(t="fixed");const r=C.from(t);if((0,l.k9)(e).length>r.width/8)throw new Error("overflow");let n=u.gH.from(e);r.signed&&(n=n.fromTwos(r.width));const i=n.toTwos((r.signed?0:1)+r.width).toHexString(),o=w(n,r.decimals);return new E(p,i,o,r)}static from(e,t){if("string"==typeof e)return E.fromString(e,t);if((0,l.aY)(e))return E.fromBytes(e,t);try{return E.fromValue(e,0,t)}catch(r){if(r.code!==d.Vy.errors.INVALID_ARGUMENT)throw r}return h.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const x=E.from(1),S=E.from("0.5");var I=r(279099),k=r(208402),_=r(485610),T=r(611390),M=r(872218),P=r(141730),j=r(771414),D=r(577010);function O(e,t,r,n,i){let o;e=(0,l.k9)(e),t=(0,l.k9)(t);let a=1;const s=new Uint8Array(n),c=new Uint8Array(t.length+4);let u,d;c.set(t);for(let f=1;f<=a;f++){c[t.length]=f>>24&255,c[t.length+1]=f>>16&255,c[t.length+2]=f>>8&255,c[t.length+3]=255&f;let h=(0,l.k9)((0,D.L5)(i,e,c));o||(o=h.length,d=new Uint8Array(o),a=Math.ceil(n/o),u=n-(a-1)*o),d.set(h);for(let t=1;t=256)throw new Error("Depth too large!");return $((0,l.xW)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,l.c$)(this.depth),this.parentFingerprint,(0,l.bj)((0,l.c$)(this.index),4),this.chainCode,null!=this.privateKey?(0,l.xW)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new re(ee,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let t=this.path;t&&(t+="/"+(e&~J));const r=new Uint8Array(37);if(e&J){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set((0,l.k9)(this.privateKey),1),t&&(t+="'")}else r.set((0,l.k9)(this.publicKey));for(let u=24;u>=0;u-=8)r[33+(u>>3)]=e>>24-u&255;const n=(0,l.k9)((0,D.L5)(R.q.sha512,this.chainCode,r)),i=n.slice(0,32),o=n.slice(32);let a=null,s=null;if(this.privateKey)a=Z(u.gH.from(i).add(this.privateKey).mod(Q));else{s=new N.hR((0,l.c$)(i))._addPoint(this.publicKey)}let c=t;const d=this.mnemonic;return d&&(c=Object.freeze({phrase:d.phrase,path:t,locale:d.locale||"en"})),new re(ee,a,s,this.fingerprint,Z(o),e,this.depth+1,c)}derivePath(e){const t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();let r=this;for(let n=0;n=J)throw new Error("invalid path index - "+e);r=r._derive(J+t)}else{if(!e.match(/^[0-9]+$/))throw new Error("invalid path component - "+e);{const t=parseInt(e);if(t>=J)throw new Error("invalid path index - "+e);r=r._derive(t)}}}return r}static _fromSeed(e,t){const r=(0,l.k9)(e);if(r.length<16||r.length>64)throw new Error("invalid seed");const n=(0,l.k9)((0,D.L5)(R.q.sha512,W,r));return new re(ee,Z(n.slice(0,32)),null,"0x00000000",Z(n.slice(32)),0,0,t)}static fromMnemonic(e,t,r){return e=oe(ie(e,r=X(r)),r),re._fromSeed(ne(e,t),{phrase:e,path:"m",locale:r.locale})}static fromSeed(e){return re._fromSeed(e,null)}static fromExtendedKey(e){const t=P.zn.decode(e);82===t.length&&$(t.slice(0,78))===e||q.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const r=t[4],n=(0,l.c$)(t.slice(5,9)),i=parseInt((0,l.c$)(t.slice(9,13)).substring(2),16),o=(0,l.c$)(t.slice(13,45)),a=t.slice(45,78);switch((0,l.c$)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new re(ee,null,(0,l.c$)(a),n,o,i,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==a[0])break;return new re(ee,(0,l.c$)(a.slice(1)),null,n,o,i,r,null)}return q.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function ne(e,t){t||(t="");const r=(0,j.YW)("mnemonic"+t,j.dz.NFKD);return O((0,j.YW)(e,j.dz.NFKD),r,2048,64,"sha512")}function ie(e,t){t=X(t),q.checkNormalize();const r=t.split(e);if(r.length%3!=0)throw new Error("invalid mnemonic");const n=(0,l.k9)(new Uint8Array(Math.ceil(11*r.length/8)));let i=0;for(let s=0;s>3]|=1<<7-i%8),i++}const o=32*r.length/3,a=Y(r.length/3);if(((0,l.k9)((0,D.sc)(n.slice(0,o/8)))[0]&a)!==(n[n.length-1]&a))throw new Error("invalid checksum");return(0,l.c$)(n.slice(0,o/8))}function oe(e,t){if(t=X(t),(e=(0,l.k9)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let a=0;a8?(r[r.length-1]<<=8,r[r.length-1]|=e[a],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[a]>>8-n,r.push(e[a]&(1<<8-n)-1),n+=3);const i=e.length/4,o=(0,l.k9)((0,D.sc)(e))[0]&Y(i);return r[r.length-1]<<=i,r[r.length-1]|=o>>8-i,t.join(r.map((e=>t.getWord(e))))}function ae(e,t){try{return ie(e,t),!0}catch(r){}return!1}function se(e){return("number"!=typeof e||e<0||e>=J||e%1)&&q.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}var ce=r(350234);const ue=new d.Vy("random/5.7.0");const le=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}();let de=le.crypto||le.msCrypto;function fe(e){(e<=0||e>1024||e%1||e!=e)&&ue.throwArgumentError("invalid length","length",e);const t=new Uint8Array(e);return de.getRandomValues(t),(0,l.k9)(t)}de&&de.getRandomValues||(ue.warn("WARNING: Missing strong random number source"),de={getRandomValues:function(e){return ue.throwError("no secure random source avaialble",d.Vy.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});var he=r(33836),pe=r.n(he),ge=r(409983),me=r.n(ge);function ye(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),(0,l.k9)(e)}function be(e,t){for(e=String(e);e.lengtht)),(0,B.yY)(this,"address",(0,L.Kt)(this.publicKey)),this.address!==(0,k.bv)(e.address)&&Ue.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){const t=e.mnemonic;return t&&t.phrase}(e)){const t=e.mnemonic;(0,B.yY)(this,"_mnemonic",(()=>({phrase:t.phrase,path:t.path||te,locale:t.locale||"en"})));const r=this.mnemonic,n=re.fromMnemonic(r.phrase,null,r.locale).derivePath(r.path);(0,L.Kt)(n.privateKey)!==this.address&&Ue.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,B.yY)(this,"_mnemonic",(()=>null))}else{if(N.hR.isSigningKey(e))"secp256k1"!==e.curve&&Ue.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,B.yY)(this,"_signingKey",(()=>e));else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);const t=new N.hR(e);(0,B.yY)(this,"_signingKey",(()=>t))}(0,B.yY)(this,"_mnemonic",(()=>null)),(0,B.yY)(this,"address",(0,L.Kt)(this.publicKey))}var r;t&&!_.Kq.isProvider(t)&&Ue.throwArgumentError("invalid provider","provider",t),(0,B.yY)(this,"provider",t||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new ze(this,e)}signTransaction(e){return(0,B.k_)(e).then((t=>{null!=t.from&&((0,k.bv)(t.from)!==this.address&&Ue.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);const r=this._signingKey().signDigest((0,ce.S)((0,L.lK)(t)));return(0,L.lK)(t,r)}))}signMessage(e){return Fe(this,void 0,void 0,(function*(){return(0,l.FU)(this._signingKey().signDigest((0,T.A)(e)))}))}_signTypedData(e,t,r){return Fe(this,void 0,void 0,(function*(){const n=yield M.z.resolveNames(e,t,r,(e=>(null==this.provider&&Ue.throwError("cannot resolve ENS names without a provider",d.Vy.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e))));return(0,l.FU)(this._signingKey().signDigest(M.z.hash(n.domain,t,n.value)))}))}encrypt(e,t,r){if("function"!=typeof t||r||(r=t,t={}),r&&"function"!=typeof r)throw new Error("invalid callback");return t||(t={}),function(e,t,r,n){try{if((0,k.bv)(e.address)!==(0,L.Kt)(e.privateKey))throw new Error("address/privateKey mismatch");if(Se(e)){const t=e.mnemonic;if(re.fromMnemonic(t.phrase,null,t.locale).derivePath(t.path||te).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(y){return Promise.reject(y)}"function"!=typeof r||n||(n=r,r={}),r||(r={});const i=(0,l.k9)(e.privateKey),o=ve(t);let a=null,s=null,c=null;if(Se(e)){const t=e.mnemonic;a=(0,l.k9)(ie(t.phrase,t.locale||"en")),s=t.path||te,c=t.locale||"en"}let u=r.client;u||(u="ethers.js");let d=null;d=r.salt?(0,l.k9)(r.salt):fe(32);let f=null;if(r.iv){if(f=(0,l.k9)(r.iv),16!==f.length)throw new Error("invalid iv")}else f=fe(16);let h=null;if(r.uuid){if(h=(0,l.k9)(r.uuid),16!==h.length)throw new Error("invalid uuid")}else h=fe(16);let p=1<<17,g=8,m=1;return r.scrypt&&(r.scrypt.N&&(p=r.scrypt.N),r.scrypt.r&&(g=r.scrypt.r),r.scrypt.p&&(m=r.scrypt.p)),me().scrypt(o,d,p,g,m,64,n).then((t=>{const r=(t=(0,l.k9)(t)).slice(0,16),n=t.slice(16,32),o=t.slice(32,64),y=new(pe().Counter)(f),b=new(pe().ModeOfOperation.ctr)(r,y),v=(0,l.k9)(b.encrypt(i)),w=(0,ce.S)((0,l.xW)([n,v])),A={address:e.address.substring(2).toLowerCase(),id:Ae(h),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,l.c$)(f).substring(2)},ciphertext:(0,l.c$)(v).substring(2),kdf:"scrypt",kdfparams:{salt:(0,l.c$)(d).substring(2),n:p,dklen:32,p:m,r:g},mac:w.substring(2)}};if(a){const e=fe(16),t=new(pe().Counter)(e),r=new(pe().ModeOfOperation.ctr)(o,t),n=(0,l.k9)(r.encrypt(a)),i=new Date,d=i.getUTCFullYear()+"-"+be(i.getUTCMonth()+1,2)+"-"+be(i.getUTCDate(),2)+"T"+be(i.getUTCHours(),2)+"-"+be(i.getUTCMinutes(),2)+"-"+be(i.getUTCSeconds(),2)+".0Z";A["x-ethers"]={client:u,gethFilename:"UTC--"+d+"--"+A.address,mnemonicCounter:(0,l.c$)(e).substring(2),mnemonicCiphertext:(0,l.c$)(n).substring(2),path:s,locale:c,version:"0.1"}}return JSON.stringify(A)}))}(this,e,t,r)}static createRandom(e){let t=fe(16);e||(e={}),e.extraEntropy&&(t=(0,l.k9)((0,l.Ab)((0,ce.S)((0,l.xW)([t,e.extraEntropy])),0,16)));const r=oe(t,e.locale);return ze.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,t,r){return Re(e,t,r).then((e=>new ze(e)))}static fromEncryptedJsonSync(e,t){return new ze(Le(e,t))}static fromMnemonic(e,t,r){return t||(t=te),new ze(re.fromMnemonic(e,null,r).derivePath(t))}}function He(e,t){return(0,L.x_)((0,T.A)(e),t)}function Ve(e,t,r,n){return(0,L.x_)(M.z.hash(e,t,r),n)}var Ke=r(148892),Ge=r(243514),qe=r(818930);const Qe="\u039e";var We=r(83699),Je=r(571998),Ye=r(941577),Ze=r(570953),$e=r(788004),Xe=r(817689);const et=new d.Vy($e.r),tt="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class rt extends Ze.f{constructor(e,t){const r=new nt(e,t);super(r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),r.network),(0,B.yY)(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===tt}}class nt extends Xe.M{static getWebSocketProvider(e,t){return new rt(e,t)}static getApiKey(e){return null==e?tt:(e&&"string"!=typeof e&&et.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,t){let r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.g.alchemy.com/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;default:et.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:(e,r)=>(t===tt&&(0,Ye.Zd)(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===tt}}const it=new d.Vy($e.r),ot="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function at(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return it.throwArgumentError("unsupported network","name",e)}class st extends Xe.M{isCommunityResource(){return this.apiKey===ot}static getApiKey(e){return null==e?ot:e}static getUrl(e,t){null==t&&(t=ot);const r={allowGzip:!0,url:"https://"+at(e.name)+t,throttleCallback:(e,r)=>(t.apiKey===ot&&(0,Ye.Zd)(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}var ct=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const ut=new d.Vy($e.r);class lt extends Xe.M{static getApiKey(e){return null!=e&&ut.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let r=null;if("homestead"===e.name)r="https://cloudflare-eth.com/";else ut.throwArgumentError("unsupported network","network",arguments[0]);return r}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return ct(this,void 0,void 0,(function*(){if("getBlockNumber"===e){return(yield r.perform.call(this,"getBlock",{blockTag:"latest"})).number}return r.perform.call(this,e,t)}))}}var dt=r(632808),ft=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const ht=new d.Vy($e.r);function pt(e){const t={};for(let r in e){if(null==e[r])continue;let n=e[r];"type"===r&&0===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?(0,l.Fh)((0,l.c$)(n)):"accessList"===r?"["+(0,L.$2)(n).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]":(0,l.c$)(n),t[r]=n)}return t}function gt(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!=typeof e.message||!e.message.match(/^OK/)){const t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function mt(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){const t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){const t=new Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){const t=new Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function yt(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function bt(e,t,r){if("call"===e&&t.code===d.Vy.errors.SERVER_ERROR){const e=t.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let r=e.data;if(r&&(r="0x"+r.replace(/^.*0x/i,"")),(0,l.Lo)(r))return r;ht.throwError("missing revert data in call exception",d.Vy.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let n=t.message;throw t.code===d.Vy.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?n=t.error.message:"string"==typeof t.body?n=t.body:"string"==typeof t.responseText&&(n=t.responseText)),n=(n||"").toLowerCase(),n.match(/insufficient funds/)&&ht.throwError("insufficient funds for intrinsic transaction cost",d.Vy.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&ht.throwError("nonce has already been used",d.Vy.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),n.match(/another transaction with same nonce/)&&ht.throwError("replacement fee too low",d.Vy.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&ht.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",d.Vy.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}class vt extends Je.DJ{constructor(e,t){super(e),(0,B.yY)(this,"baseUrl",this.getBaseUrl()),(0,B.yY)(this,"apiKey",t||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return ht.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){const r=Object.keys(t).reduce(((e,r)=>{const n=t[r];return null!=n&&(e+=`&${r}=${n}`),e}),""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${r}${n}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}fetch(e,t,r){return ft(this,void 0,void 0,(function*(){const n=r?this.getPostUrl():this.getUrl(e,t),i=r?this.getPostData(e,t):null,o="proxy"===e?mt:gt;this.emit("debug",{action:"request",request:n,provider:this});const a={url:n,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&(0,Ye.Zd)(),Promise.resolve(!0))};let s=null;i&&(a.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},s=Object.keys(i).map((e=>`${e}=${i[e]}`)).join("&"));const c=yield(0,dt.x6)(a,s,o||mt);return this.emit("debug",{action:"response",request:n,response:(0,B.A4)(c),provider:this}),c}))}detectNetwork(){return ft(this,void 0,void 0,(function*(){return this.network}))}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return ft(this,void 0,void 0,(function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((e=>bt("sendTransaction",e,t.signedTransaction)));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const e=pt(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(n){return bt("call",n,t.transaction)}}case"estimateGas":{const e=pt(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(n){return bt("estimateGas",n,t.transaction)}}case"getLogs":{const e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=yt(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=yt(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&ht.throwError("unsupported topic count",d.Vy.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){const r=t.filter.topics[0];"string"==typeof r&&66===r.length||ht.throwError("unsupported topic format",d.Vy.errors.UNSUPPORTED_OPERATION,{topic0:r}),e.topic0=r}const r=yield this.fetch("logs",e);let n={};for(let t=0;t{["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);const t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t}))}))}isCommunityResource(){return null==this.apiKey}}function wt(e){for(let t=(e=e.slice()).length-1;t>0;t--){const r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}var At=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const Ct=new d.Vy($e.r);function Et(){return(new Date).getTime()}function xt(e){let t=null;for(let r=0;rt?null:(n+i)/2}function It(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(u.gH.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((e=>It(e))));if("object"==typeof e){const t=Object.keys(e);return t.sort(),"{"+t.map((t=>{let r=e[t];return r="function"==typeof r?"[function]":It(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}let kt=1;function _t(e){let t=null,r=null,n=new Promise((n=>{t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return n},wait:e=>(n=n.then(e),n)}}const Tt=[d.Vy.errors.CALL_EXCEPTION,d.Vy.errors.INSUFFICIENT_FUNDS,d.Vy.errors.NONCE_EXPIRED,d.Vy.errors.REPLACEMENT_UNDERPRICED,d.Vy.errors.UNPREDICTABLE_GAS_LIMIT],Mt=["address","args","errorArgs","errorSignature","method","transaction"];function Pt(e,t){const r={weight:e.weight};return Object.defineProperty(r,"provider",{get:()=>e.provider}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function jt(e,t,r){let n=It;switch(t){case"getBlockNumber":return function(t){const r=t.map((e=>e.result));let n=St(t.map((e=>e.result)),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber};case"getGasPrice":return function(e){const t=e.map((e=>e.result));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return St(e.map((e=>e.result)))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=(0,B.Ic)(e)).confirmations=-1,It(e))};break;case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=(0,B.Ic)(e)).transactions=e.transactions.map((e=>((e=(0,B.Ic)(e)).confirmations=-1,e))),It(e))}:function(e){return null==e?null:It(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(r){const n={};r.forEach((t=>{const r=e(t.result);n[r]||(n[r]={count:0,result:t.result}),n[r].count++}));const i=Object.keys(n);for(let e=0;e=t)return r.result}}}(n,e.quorum)}function Dt(e,t){return At(this,void 0,void 0,(function*(){const r=e.provider;return null!=r.blockNumber&&r.blockNumber>=t||-1===t?r:(0,dt.wt)((()=>new Promise(((n,i)=>{setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)}),0)}))),{oncePoll:r})}))}function Ot(e,t,r,n){return At(this,void 0,void 0,(function*(){let i=e.provider;switch(r){case"getBlockNumber":case"getGasPrice":return i[r]();case"getEtherPrice":if(i.getEtherPrice)return i.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&(0,l.Lo)(n.blockTag)&&(i=yield Dt(e,t)),i[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&(0,l.Lo)(n.blockTag)&&(i=yield Dt(e,t)),i.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&(0,l.Lo)(n.blockTag)&&(i=yield Dt(e,t)),i[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":return n.blockTag&&(0,l.Lo)(n.blockTag)&&(i=yield Dt(e,t)),"call"===r&&n.blockTag?i[r](n.transaction,n.blockTag):i[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return i[r](n.transactionHash);case"getLogs":{let r=n.filter;return(r.fromBlock&&(0,l.Lo)(r.fromBlock)||r.toBlock&&(0,l.Lo)(r.toBlock))&&(i=yield Dt(e,t)),i.getLogs(r)}}return Ct.throwError("unknown method error",d.Vy.errors.UNKNOWN_ERROR,{method:r,params:n})}))}class Bt extends Je.DJ{constructor(e,t){0===e.length&&Ct.throwArgumentError("missing providers","providers",e);const r=e.map(((e,t)=>{if(_.Kq.isProvider(e)){const t=(0,Ye.ws)(e)?2e3:750,r=1;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:r})}const r=(0,B.Ic)(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=(0,Ye.ws)(e)?2e3:750),null==r.weight&&(r.weight=1);const n=r.weight;return(n%1||n>512||n<1)&&Ct.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${t}].weight`,n),Object.freeze(r)})),n=r.reduce(((e,t)=>e+t.weight),0);null==t?t=n/2:t>n&&Ct.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let i=xt(r.map((e=>e.provider.network)));null==i&&(i=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then(e,t)}),0)}))),super(i),(0,B.yY)(this,"providerConfigs",Object.freeze(r)),(0,B.yY)(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return At(this,void 0,void 0,(function*(){return xt(yield Promise.all(this.providerConfigs.map((e=>e.provider.getNetwork()))))}))}perform(e,t){return At(this,void 0,void 0,(function*(){if("sendTransaction"===e){const e=yield Promise.all(this.providerConfigs.map((e=>e.provider.sendTransaction(t.signedTransaction).then((e=>e.hash),(e=>e)))));for(let t=0;te.priority-t.priority));const i=this._highestBlockNumber;let o=0,a=!0;for(;;){const s=Et();let c=n.filter((e=>e.runner&&s-e.starte+t.weight),0);for(;c{r.staller=null})),r.runner=Ot(r,i,e,t).then((n=>{r.done=!0,r.result=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:a,backend:Pt(r,Et()),request:{method:e,params:(0,B.A4)(t)},provider:this})}),(n=>{r.done=!0,r.error=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:a,backend:Pt(r,Et()),request:{method:e,params:(0,B.A4)(t)},provider:this})})),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:a,backend:Pt(r,null),request:{method:e,params:(0,B.A4)(t)},provider:this}),c+=r.weight}const u=[];n.forEach((e=>{!e.done&&e.runner&&(u.push(e.runner),e.staller&&u.push(e.staller.getPromise()))})),u.length&&(yield Promise.race(u));const l=n.filter((e=>e.done&&null==e.error));if(l.length>=this.quorum){const e=r(l);if(void 0!==e)return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),e;a||(yield _t(100).getPromise()),a=!1}const d=n.reduce(((e,t)=>{if(!t.done||null==t.error)return e;const r=t.error.code;return Tt.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e}),{});if(Object.keys(d).forEach((e=>{const t=d[e];if(t.weight{e.staller&&e.staller.cancel(),e.cancelled=!0}));const r=t.error,i={};Mt.forEach((e=>{null!=r[e]&&(i[e]=r[e])})),Ct.throwError(r.reason||r.message,e,i)})),0===n.filter((e=>!e.done)).length)break}return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),Ct.throwError("failed to meet quorum",d.Vy.errors.SERVER_ERROR,{method:e,params:t,results:n.map((e=>Pt(e))),provider:this})}))}}const Nt=null;var Rt=r(304004),Lt=r(939549);class Ft extends Lt.F{send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const n={request:r,resolve:null,reject:null},i=new Promise(((e,t)=>{n.resolve=e,n.reject=t}));return this._pendingBatch.push(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const t=e.map((e=>e.request));return this.emit("debug",{action:"requestBatch",request:(0,B.A4)(t),provider:this}),(0,dt.x6)(this.connection,JSON.stringify(t)).then((r=>{this.emit("debug",{action:"response",request:t,response:r,provider:this}),e.forEach(((e,t)=>{const n=r[t];if(n.error){const t=new Error(n.error.message);t.code=n.error.code,t.data=n.error.data,e.reject(t)}else e.resolve(n.result)}))}),(r=>{this.emit("debug",{action:"response",error:r,request:t,provider:this}),e.forEach((e=>{e.reject(r)}))}))}),10)),i}}const Ut=new d.Vy($e.r);class zt extends Xe.M{static getApiKey(e){return e&&"string"!=typeof e&&Ut.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){Ut.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:Ut.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}const Ht=new d.Vy($e.r),Vt="62e1ad51b37b8e00394bda3b";class Kt extends Xe.M{static getApiKey(e){const t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=Vt:"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:Ht.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:Ht.throwError("unsupported network",d.Vy.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const n={headers:{},url:`https://${r}/v1/lb/${t.applicationId}`};return null!=t.applicationSecretKey&&(n.user="",n.password=t.applicationSecretKey),n}isCommunityResource(){return this.applicationId===Vt}}var Gt=r(724824);const qt=new d.Vy($e.r);function Qt(e,t){if(null==e&&(e="homestead"),"string"==typeof e){const t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new Lt.F(e);case"ws":case"wss":return new Ze.f(e);default:qt.throwArgumentError("unsupported URL scheme","network",e)}}const r=(0,We.N)(e);return r&&r._defaultProvider||qt.throwError("unsupported getDefaultProvider network",d.Vy.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:Bt,AlchemyProvider:nt,AnkrProvider:st,CloudflareProvider:lt,EtherscanProvider:vt,InfuraProvider:Rt.p,JsonRpcProvider:Lt.F,NodesmithProvider:zt,PocketProvider:Kt,Web3Provider:Gt.j,IpcProvider:Nt},t)}var Wt=r(257127),Jt=r(427814),Yt=r(355242),Zt=r(33020),$t=r(990531),Xt=r(238023);const er=new RegExp("^bytes([0-9]+)$"),tr=new RegExp("^(u?int)([0-9]*)$"),rr=new RegExp("^(.*)\\[([0-9]*)\\]$"),nr="0000000000000000000000000000000000000000000000000000000000000000",ir=new d.Vy("solidity/5.7.0");function or(e,t,r){switch(e){case"address":return r?(0,l.e8)(t,32):(0,l.k9)(t);case"string":return(0,j.YW)(t);case"bytes":return(0,l.k9)(t);case"bool":return t=t?"0x01":"0x00",r?(0,l.e8)(t,32):(0,l.k9)(t)}let n=e.match(tr);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!=0||0===i||i>256)&&ir.throwArgumentError("invalid number type","type",e),r&&(i=256),t=u.gH.from(t).toTwos(i),(0,l.e8)(t,i/8)}if(n=e.match(er),n){const i=parseInt(n[1]);return(String(i)!==n[1]||0===i||i>32)&&ir.throwArgumentError("invalid bytes type","type",e),(0,l.k9)(t).byteLength!==i&&ir.throwArgumentError(`invalid value for ${e}`,"value",t),r?(0,l.k9)((t+nr).substring(0,66)):t}if(n=e.match(rr),n&&Array.isArray(t)){const r=n[1];parseInt(n[2]||String(t.length))!=t.length&&ir.throwArgumentError(`invalid array length for ${e}`,"value",t);const i=[];return t.forEach((function(e){i.push(or(r,e,!0))})),(0,l.xW)(i)}return ir.throwArgumentError("invalid type","type",e)}function ar(e,t){e.length!=t.length&&ir.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);const r=[];return e.forEach((function(e,n){r.push(or(e,t[n]))})),(0,l.c$)((0,l.xW)(r))}function sr(e,t){return(0,ce.S)(ar(e,t))}function cr(e,t){return(0,D.sc)(ar(e,t))}var ur=r(127196);function lr(e,t){t||(t=function(e){return[parseInt(e,16)]});let r=0,n={};return e.split(",").forEach((e=>{let i=e.split(":");r+=parseInt(i[0],16),n[r]=t(i[1])})),n}function dr(e){let t=0;return e.split(",").map((e=>{let r=e.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");let n=t+parseInt(r[0],16);return t=parseInt(r[1],16),{l:n,h:t}}))}function fr(e,t){let r=0;for(let n=0;n=r&&e<=r+i.h&&(e-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-r))continue;return i}}return null}const hr=dr("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),pr="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((e=>parseInt(e,16))),gr=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],mr=lr("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),yr=lr("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),br=lr("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data");let t=[];for(let r=0;r{if(pr.indexOf(e)>=0)return[];if(e>=65024&&e<=65039)return[];let t=function(e){let t=fr(e,gr);if(t)return[e+t.s];let r=mr[e];if(r)return r;let n=yr[e];return n?[e+n[0]]:br[e]||null}(e);return t||[e]})),t=r.reduce(((e,t)=>(t.forEach((t=>{e.push(t)})),e)),[]),t=(0,j.dg)((0,j.H5)(t),j.dz.NFKC),t.forEach((e=>{if(fr(e,vr))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),t.forEach((e=>{if(fr(e,hr))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));let n=(0,j.H5)(t);if("-"===n.substring(0,1)||"--"===n.substring(2,4)||"-"===n.substring(n.length-1))throw new Error("invalid hyphen");return n}function Ar(e){const t=(0,j.YW)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,l.c$)((0,l.xW)([t,qe.j]).slice(0,32))}function Cr(e){const t=(0,l.k9)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;0===t[r-1];)r--;return(0,j._v)(t.slice(0,r))}const Er=new d.Vy("units/5.7.0"),xr=["wei","kwei","mwei","gwei","szabo","finney","ether"];function Sr(e){const t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&Er.throwArgumentError("invalid value","value",e);let r=t[0],n="";for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");let i="";for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);const o=[];for(;r.length;){if(r.length<=3){o.unshift(r);break}{const e=r.length-3;o.unshift(r.substring(e)),r=r.substring(0,e)}}return n+o.join(",")+i}function Ir(e,t){if("string"==typeof t){const e=xr.indexOf(t);-1!==e&&(t=3*e)}return w(e,null!=t?t:18)}function kr(e,t){if("string"!=typeof e&&Er.throwArgumentError("value must be a string","value",e),"string"==typeof t){const e=xr.indexOf(t);-1!==e&&(t=3*e)}return A(e,null!=t?t:18)}function _r(e){return Ir(e,18)}function Tr(e){return kr(e,18)}const Mr="ethers/5.7.2",Pr=new d.Vy(Mr);try{const e=window;null==e._ethers&&(e._ethers=s)}catch(jr){}},17886:(e,t,r)=>{"use strict";var n=r(617172),i=r(383081);function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+e.toString(16)}e.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return new Buffer(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return Buffer.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&g(e,"error",t,r)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var i,o,a,u;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var u=c.length,l=p(c,u);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},168078:(e,t,r)=>{var n=r(192861).Buffer,i=r(988276);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),c=n.alloc(o||0),u=n.alloc(0);a>0||o>0;){var l=new i;l.update(u),l.update(e),t&&l.update(t),u=l.digest();var d=0;if(a>0){var f=s.length-a;d=Math.min(a,u.length),u.copy(s,f,0,d),a-=d}if(d0){var h=c.length-o,p=Math.min(o,u.length-d);u.copy(c,h,d,d+p),o-=p}}return u.fill(0),{key:s,iv:c}}},182682:(e,t,r)=>{"use strict";var n=r(69600),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===i.call(e)?function(e,t,r){for(var n=0,i=e.length;n{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n{"use strict";var n=r(189353);e.exports=Function.prototype.bind||n},655064:e=>{e.exports=function(){if("undefined"==typeof globalThis)return null;var e={RTCPeerConnection:globalThis.RTCPeerConnection||globalThis.mozRTCPeerConnection||globalThis.webkitRTCPeerConnection,RTCSessionDescription:globalThis.RTCSessionDescription||globalThis.mozRTCSessionDescription||globalThis.webkitRTCSessionDescription,RTCIceCandidate:globalThis.RTCIceCandidate||globalThis.mozRTCIceCandidate||globalThis.webkitRTCIceCandidate};return e.RTCPeerConnection?e:null}},570453:(e,t,r)=>{"use strict";var n,i=r(679612),o=r(269383),a=r(341237),s=r(179290),c=r(479538),u=r(358068),l=r(769675),d=r(35345),f=r(271514),h=r(58968),p=r(506188),g=r(468002),m=r(975880),y=Function,b=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(t){}},v=r(675795),w=r(730655),A=function(){throw new l},C=v?function(){try{return A}catch(e){try{return v(arguments,"callee").get}catch(t){return A}}}():A,E=r(264039)(),x=r(107176),S="function"==typeof Reflect&&Reflect.getPrototypeOf||i.getPrototypeOf||x,I=r(611002),k=r(610076),_={},T="undefined"!=typeof Uint8Array&&S?S(Uint8Array):n,M={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":E&&S?S([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":_,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&S?S(S([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&S?S((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E&&S?S((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&S?S(""[Symbol.iterator]()):n,"%Symbol%":E?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":C,"%TypedArray%":T,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":I,"%Object.defineProperty%":w,"%Math.abs%":f,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":m};if(S)try{null.error}catch(K){var P=S(S(K));M["%Error.prototype%"]=P}var j=function e(t){var r;if("%AsyncFunction%"===t)r=b("async function () {}");else if("%GeneratorFunction%"===t)r=b("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=b("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&S&&(r=S(i.prototype))}return M[t]=r,r},D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=r(566743),B=r(9957),N=O.call(k,Array.prototype.concat),R=O.call(I,Array.prototype.splice),L=O.call(k,String.prototype.replace),F=O.call(k,String.prototype.slice),U=O.call(k,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,V=function(e,t){var r,n=e;if(B(D,n)&&(n="%"+(r=D[n])[0]+"%"),B(M,n)){var i=M[n];if(i===_&&(i=j(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===U(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=F(e,0,1),r=F(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return L(e,z,(function(e,t,r,i){n[n.length]=r?L(i,H,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=V("%"+n+"%",t),o=i.name,a=i.value,s=!1,c=i.alias;c&&(n=c[0],R(r,N([0,1],c)));for(var d=1,f=!0;d=r.length){var m=v(a,h);a=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[h]}else f=B(a,h),a=a[h];f&&!s&&(M[o]=a)}}return a}},906549:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},675795:(e,t,r)=>{"use strict";var n=r(906549);if(n)try{n([],"length")}catch(i){n=null}e.exports=n},530592:(e,t,r)=>{"use strict";var n=r(730655),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},264039:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(241333);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},241333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},849092:(e,t,r)=>{"use strict";var n=r(241333);e.exports=function(){return n()&&!!Symbol.toStringTag}},277952:(e,t,r)=>{var n=t;n.utils=r(867426),n.common=r(66166),n.sha=r(546229),n.ripemd=r(946784),n.hmac=r(228948),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},66166:(e,t,r)=>{"use strict";var n=r(867426),i=r(443349);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o{"use strict";var n=r(867426),i=r(443349);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t{"use strict";var n=r(867426),i=r(66166),o=n.rotl32,a=n.sum32,s=n.sum32_3,c=n.sum32_4,u=i.BlockHash;function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function f(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(l,u),t.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],u=this.h[3],l=this.h[4],b=r,v=n,w=i,A=u,C=l,E=0;E<80;E++){var x=a(o(c(r,d(E,n,i,u),e[p[E]+t],f(E)),m[E]),l);r=l,l=u,u=o(i,10),i=n,n=x,x=a(o(c(b,d(79-E,v,w,A),e[g[E]+t],h(E)),y[E]),C),b=C,C=A,A=o(w,10),w=v,v=x}x=s(this.h[1],i,A),this.h[1]=s(this.h[2],u,C),this.h[2]=s(this.h[3],l,b),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,w),this.h[0]=x},l.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[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],g=[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],m=[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],y=[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]},546229:(e,t,r)=>{"use strict";t.sha1=r(843917),t.sha224=r(747714),t.sha256=r(402287),t.sha384=r(821911),t.sha512=r(357766)},843917:(e,t,r)=>{"use strict";var n=r(867426),i=r(66166),o=r(566225),a=n.rotl32,s=n.sum32,c=n.sum32_5,u=o.ft_1,l=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(f,l),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(867426),i=r(402287);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},402287:(e,t,r)=>{"use strict";var n=r(867426),i=r(66166),o=r(566225),a=r(443349),s=n.sum32,c=n.sum32_4,u=n.sum32_5,l=o.ch32,d=o.maj32,f=o.s0_256,h=o.s1_256,p=o.g0_256,g=o.g1_256,m=i.BlockHash,y=[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 b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(b,m),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(867426),i=r(357766);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},357766:(e,t,r)=>{"use strict";var n=r(867426),i=r(66166),o=r(443349),a=n.rotr64_hi,s=n.rotr64_lo,c=n.shr64_hi,u=n.shr64_lo,l=n.sum64,d=n.sum64_hi,f=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,g=n.sum64_5_hi,m=n.sum64_5_lo,y=i.BlockHash,b=[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 v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function A(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function C(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function E(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function x(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function S(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function I(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function k(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function _(e,t){var r=a(e,t,1)^a(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function T(e,t){var r=s(e,t,1)^s(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=a(e,t,19)^a(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}function P(e,t){var r=s(e,t,19)^s(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,y),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(867426).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},867426:(e,t,r)=>{"use strict";var n=r(443349),i=r(256698);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var c=0,u=t;return c+=(u=u+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,c,u){var l=0,d=t;return l+=(d=d+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,c,u){return t+n+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},9957:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(566743);e.exports=o.call(n,i)},932723:(e,t,r)=>{"use strict";var n=r(277952),i=r(764367),o=r(443349);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length{e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},765496:(e,t,r)=>{var n="html",i="head",o="body",a=/<([a-zA-Z]+[0-9]?)/,s=//i,c=//i,u=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var d=new window.DOMParser;u=l=function(e,t){return t&&(e="<"+t+">"+e+""),d.parseFromString(e,"text/html")}}if(document.implementation){var f=r(267731).isIE,h=document.implementation.createHTMLDocument(f()?"html-dom-parser":void 0);u=function(e,t){return t?(h.documentElement.getElementsByTagName(t)[0].innerHTML=e,h):(h.documentElement.innerHTML=e,h)}}var p,g=document.createElement("template");g.content&&(p=function(e){return g.innerHTML=e,g.content.childNodes}),e.exports=function(e){var t,r,d,f,h=e.match(a);switch(h&&h[1]&&(t=h[1].toLowerCase()),t){case n:return r=l(e),s.test(e)||(d=r.getElementsByTagName(i)[0])&&d.parentNode.removeChild(d),c.test(e)||(d=r.getElementsByTagName(o)[0])&&d.parentNode.removeChild(d),r.getElementsByTagName(n);case i:case o:return f=u(e).getElementsByTagName(t),c.test(e)&&s.test(e)?f[0].parentNode.childNodes:f;default:return p?p(e):u(e,o).getElementsByTagName(o)[0].childNodes}}},92471:(e,t,r)=>{var n=r(765496),i=r(267731).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,r=e.match(o);return r&&r[1]&&(t=r[1]),i(n(e),null,t)}},267731:(e,t,r)=>{for(var n,i=r(15270),o=r(336957),a=i.CASE_SENSITIVE_TAG_NAMES,s=o.Comment,c=o.Element,u=o.ProcessingInstruction,l=o.Text,d={},f=0,h=a.length;f{var n=r(210308),i=r(20840),o=r(92471);o="function"==typeof o.default?o.default:o;var a={lowerCaseAttributeNames:!1};function s(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:n(o(e,(t=t||{}).htmlparser2||a),t)}s.domToReact=n,s.htmlToDOM=o,s.attributesToProps=i,s.Element=r(641141).Element,e.exports=s,e.exports.default=s},20840:(e,t,r)=>{var n=r(714210),i=r(674958);function o(e){return n.possibleStandardNames[e]}e.exports=function(e){var t,r,a,s,c,u={},l=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(a=e[t],n.isCustomAttribute(t))u[t]=a;else if(s=o(r=t.toLowerCase()))switch(c=n.getPropertyInfo(s),"checked"!==s&&"value"!==s||l||(s=o("default"+r)),u[s]=a,c&&c.type){case n.BOOLEAN:u[s]=!0;break;case n.OVERLOADED_BOOLEAN:""===a&&(u[s]=!0)}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(u[t]=a);return i.setStyleProp(e.style,u),u}},210308:(e,t,r)=>{var n=r(296540),i=r(20840),o=r(674958),a=o.setStyleProp,s=o.canTextBeChildOfNode;function c(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,r){for(var o,u,l,d,f,h=(r=r||{}).library||n,p=h.cloneElement,g=h.createElement,m=h.isValidElement,y=[],b="function"==typeof r.replace,v=r.trim,w=0,A=t.length;w1&&(l=p(l,{key:l.key||w})),y.push(l);else if("text"!==o.type){switch(d=o.attribs,c(o)?a(d.style,d):d&&(d=i(d)),f=null,o.type){case"script":case"style":o.children[0]&&(d.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?d.defaultValue=o.children[0].data:o.children&&o.children.length&&(f=e(o.children,r));break;default:continue}A>1&&(d.key=w),y.push(g(o.name,d,f))}else{if((u=!o.data.trim().length)&&o.parent&&!s(o.parent))continue;if(v&&u)continue;y.push(o.data)}return 1===y.length?y[0]:y}},674958:(e,t,r)=>{var n=r(296540),i=r(535229).default;var o={reactCompat:!0};var a=n.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var r,n,i="function"==typeof t,o={},a={};for(r in e)n=e[r],i&&(o=t(r,n))&&2===o.length?a[o[0]]=o[1]:"string"==typeof n&&(a[n]=r);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,o)}catch(r){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},411083:(e,t,r)=>{var n=r(811568),i=r(188835),o=e.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},300251:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<>1,l=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*g}},170124:e=>{"use strict";var t,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(a,{Immer:()=>J,applyPatches:()=>ae,castDraft:()=>ue,castImmutable:()=>le,createDraft:()=>se,current:()=>Z,enableMapSet:()=>ee,enablePatches:()=>X,finishDraft:()=>ce,freeze:()=>I,immerable:()=>c,isDraft:()=>f,isDraftable:()=>h,nothing:()=>s,original:()=>m,produce:()=>re,produceWithPatches:()=>ne,setAutoFreeze:()=>ie,setUseStrictShallowCopy:()=>oe}),e.exports=(t=a,((e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of i(t))!o.call(e,c)&&c!==a&&r(e,c,{get:()=>t[c],enumerable:!(s=n(t,c))||s.enumerable});return e})(r({},"__esModule",{value:!0}),t));var s=Symbol.for("immer-nothing"),c=Symbol.for("immer-draftable"),u=Symbol.for("immer-state");function l(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var d=Object.getPrototypeOf;function f(e){return!!e&&!!e[u]}function h(e){return!!e&&(g(e)||Array.isArray(e)||!!e[c]||!!e.constructor?.[c]||C(e)||E(e))}var p=Object.prototype.constructor.toString();function g(e){if(!e||"object"!=typeof e)return!1;let t=d(e);if(null===t)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===p}function m(e){return f(e)||l(15),e[u].t}function y(e,t){0===b(e)?Reflect.ownKeys(e).forEach((r=>{t(r,e[r],e)})):e.forEach(((r,n)=>t(n,r,e)))}function b(e){let t=e[u];return t?t.o:Array.isArray(e)?1:C(e)?2:E(e)?3:0}function v(e,t){return 2===b(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function w(e,t){return 2===b(e)?e.get(t):e[t]}function A(e,t,r){let n=b(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function C(e){return e instanceof Map}function E(e){return e instanceof Set}function x(e){return e.e||e.t}function S(e,t){if(C(e))return new Map(e);if(E(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=g(e);if(!0===t||"class_only"===t&&!r){let t=Object.getOwnPropertyDescriptors(e);delete t[u];let r=Reflect.ownKeys(t);for(let n=0;n1&&(e.set=e.add=e.clear=e.delete=k),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>I(t,!0)))),e}function k(){l(2)}function _(e){return Object.isFrozen(e)}var T,M={};function P(e){let t=M[e];return t||l(0),t}function j(e,t){M[e]||(M[e]=t)}function D(){return T}function O(e,t){t&&(P("Patches"),e.f=[],e.h=[],e.b=t)}function B(e){N(e),e.a.forEach(L),e.a=null}function N(e){e===T&&(T=e.i)}function R(e){return T=function(e,t){return{a:[],i:e,p:t,P:!0,d:0}}(T,e)}function L(e){let t=e[u];0===t.o||1===t.o?t.x():t.m=!0}function F(e,t){t.d=t.a.length;let r=t.a[0];return void 0!==e&&e!==r?(r[u].s&&(B(t),l(4)),h(e)&&(e=U(t,e),t.i||H(t,e)),t.f&&P("Patches").T(r[u].t,e,t.f,t.h)):e=U(t,r,[]),B(t),t.f&&t.b(t.f,t.h),e!==s?e:void 0}function U(e,t,r){if(_(t))return t;let n=t[u];if(!n)return y(t,((i,o)=>z(e,n,t,i,o,r))),t;if(n.n!==e)return t;if(!n.s)return H(e,n.t,!0),n.t;if(!n.c){n.c=!0,n.n.d--;let t=n.e,i=t,o=!1;3===n.o&&(i=new Set(t),t.clear(),o=!0),y(i,((i,a)=>z(e,n,t,i,a,r,o))),H(e,t,!1),r&&e.f&&P("Patches").g(n,r,e.f,e.h)}return n.e}function z(e,t,r,n,i,o,a){if(f(i)){let a=U(e,i,o&&t&&3!==t.o&&!v(t.r,n)?o.concat(n):void 0);if(A(r,n,a),!f(a))return;e.P=!1}else a&&r.add(i);if(h(i)&&!_(i)){if(!e.p.y&&e.d<1)return;U(e,i),(!t||!t.n.i)&&"symbol"!=typeof n&&Object.prototype.propertyIsEnumerable.call(r,n)&&H(e,i)}}function H(e,t,r=!1){!e.i&&e.p.y&&e.P&&I(t,r)}var V={get(e,t){if(t===u)return e;let r=x(e);if(!v(r,t))return function(e,t,r){let n=q(t,r);return n?"value"in n?n.value:n.get?.call(e.u):void 0}(e,r,t);let n=r[t];return e.c||!h(n)?n:n===G(e.t,t)?(W(e),e.e[t]=Y(n,e)):n},has:(e,t)=>t in x(e),ownKeys:e=>Reflect.ownKeys(x(e)),set(e,t,r){let n=q(x(e),t);if(n?.set)return n.set.call(e.u,r),!0;if(!e.s){let n=G(x(e),t),i=n?.[u];if(i&&i.t===r)return e.e[t]=r,e.r[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,n)&&(void 0!==r||v(e.t,t)))return!0;W(e),Q(e)}return e.e[t]===r&&(void 0!==r||t in e.e)||Number.isNaN(r)&&Number.isNaN(e.e[t])||(e.e[t]=r,e.r[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==G(e.t,t)||t in e.t?(e.r[t]=!1,W(e),Q(e)):delete e.r[t],e.e&&delete e.e[t],!0),getOwnPropertyDescriptor(e,t){let r=x(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:1!==e.o||"length"!==t,enumerable:n.enumerable,value:r[t]}},defineProperty(){l(11)},getPrototypeOf:e=>d(e.t),setPrototypeOf(){l(12)}},K={};function G(e,t){let r=e[u];return(r?x(r):e)[t]}function q(e,t){if(!(t in e))return;let r=d(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=d(r)}}function Q(e){e.s||(e.s=!0,e.i&&Q(e.i))}function W(e){e.e||(e.e=S(e.t,e.n.p.S))}y(V,((e,t)=>{K[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),K.deleteProperty=function(e,t){return K.set.call(this,e,t,void 0)},K.set=function(e,t,r){return V.set.call(this,e[0],t,r,e[0])};var J=class{constructor(e){this.y=!0,this.S=!1,this.produce=(e,t,r)=>{if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,(e=>t.call(this,e,...i)))}}let n;if("function"!=typeof t&&l(6),void 0!==r&&"function"!=typeof r&&l(7),h(e)){let i=R(this),o=Y(e,void 0),a=!0;try{n=t(o),a=!1}finally{a?B(i):N(i)}return O(i,r),F(n,i)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===s&&(n=void 0),this.y&&I(n,!0),r){let t=[],i=[];P("Patches").T(e,n,t,i),r(t,i)}return n}l(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,(t=>e(t,...r)));let r,n;return[this.produce(e,t,((e,t)=>{r=e,n=t})),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){h(e)||l(8),f(e)&&(e=Z(e));let t=R(this),r=Y(e,void 0);return r[u].l=!0,N(t),r}finishDraft(e,t){let r=e&&e[u];(!r||!r.l)&&l(9);let{n:n}=r;return O(n,t),F(void 0,n)}setAutoFreeze(e){this.y=e}setUseStrictShallowCopy(e){this.S=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=P("Patches").A;return f(e)?n(e,t):this.produce(e,(e=>n(e,t)))}};function Y(e,t){let r=C(e)?P("MapSet").I(e,t):E(e)?P("MapSet").D(e,t):function(e,t){let r=Array.isArray(e),n={o:r?1:0,n:t?t.n:D(),s:!1,c:!1,r:{},i:t,t:e,u:null,e:null,x:null,l:!1},i=n,o=V;r&&(i=[n],o=K);let{revoke:a,proxy:s}=Proxy.revocable(i,o);return n.u=s,n.x=a,s}(e,t);return(t?t.n:D()).a.push(r),r}function Z(e){return f(e)||l(10),$(e)}function $(e){if(!h(e)||_(e))return e;let t,r=e[u];if(r){if(!r.s)return r.t;r.c=!0,t=S(e,r.n.p.S)}else t=S(e,!0);return y(t,((e,r)=>{A(t,e,$(r))})),r&&(r.c=!1),t}function X(){let e="replace",t="add",r="remove";function n(e){if(!h(e))return e;if(Array.isArray(e))return e.map(n);if(C(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(E(e))return new Set(Array.from(e).map(n));let t=Object.create(d(e));for(let r in e)t[r]=n(e[r]);return v(e,c)&&(t[c]=e[c]),t}function i(e){return f(e)?n(e):e}j("Patches",{A:function(i,o){return o.forEach((o=>{let{path:a,op:s}=o,c=i;for(let e=0;e{let d=w(c,n),f=w(u,n),h=l?v(c,n)?e:t:r;if(d===f&&h===e)return;let p=o.concat(n);a.push(h===r?{op:h,path:p}:{op:h,path:p,value:f}),s.push(h===t?{op:r,path:p}:h===r?{op:t,path:p,value:i(d)}:{op:e,path:p,value:i(d)})}))}(n,o,a,s);case 1:return function(n,o,a,s){let{t:c,r:u}=n,l=n.e;l.length{if(!s.has(e)){let a=n.concat([c]);i.push({op:r,path:a,value:e}),o.unshift({op:t,path:a,value:e})}c++})),c=0,s.forEach((e=>{if(!a.has(e)){let a=n.concat([c]);i.push({op:t,path:a,value:e}),o.unshift({op:r,path:a,value:e})}c++}))}(n,o,a,s)}},T:function(t,r,n,i){n.push({op:e,path:[],value:r===s?void 0:r}),i.push({op:e,path:[],value:t})}})}function ee(){class e extends Map{constructor(e,t){super(),this[u]={o:2,i:t,n:t?t.n:D(),s:!1,c:!1,e:void 0,r:void 0,t:e,u:this,l:!1,m:!1}}get size(){return x(this[u]).size}has(e){return x(this[u]).has(e)}set(e,r){let n=this[u];return i(n),(!x(n).has(e)||x(n).get(e)!==r)&&(t(n),Q(n),n.r.set(e,!0),n.e.set(e,r),n.r.set(e,!0)),this}delete(e){if(!this.has(e))return!1;let r=this[u];return i(r),t(r),Q(r),r.t.has(e)?r.r.set(e,!1):r.r.delete(e),r.e.delete(e),!0}clear(){let e=this[u];i(e),x(e).size&&(t(e),Q(e),e.r=new Map,y(e.t,(t=>{e.r.set(t,!1)})),e.e.clear())}forEach(e,t){x(this[u]).forEach(((r,n,i)=>{e.call(t,this.get(n),n,this)}))}get(e){let r=this[u];i(r);let n=x(r).get(e);if(r.c||!h(n)||n!==r.t.get(e))return n;let o=Y(n,r);return t(r),r.e.set(e,o),o}keys(){return x(this[u]).keys()}values(){let e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{let t=e.next();return t.done?t:{done:!1,value:this.get(t.value)}}}}entries(){let e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{let t=e.next();if(t.done)return t;let r=this.get(t.value);return{done:!1,value:[t.value,r]}}}}[Symbol.iterator](){return this.entries()}}function t(e){e.e||(e.r=new Map,e.e=new Map(e.t))}class r extends Set{constructor(e,t){super(),this[u]={o:3,i:t,n:t?t.n:D(),s:!1,c:!1,e:void 0,t:e,u:this,a:new Map,m:!1,l:!1}}get size(){return x(this[u]).size}has(e){let t=this[u];return i(t),t.e?!!(t.e.has(e)||t.a.has(e)&&t.e.has(t.a.get(e))):t.t.has(e)}add(e){let t=this[u];return i(t),this.has(e)||(n(t),Q(t),t.e.add(e)),this}delete(e){if(!this.has(e))return!1;let t=this[u];return i(t),n(t),Q(t),t.e.delete(e)||!!t.a.has(e)&&t.e.delete(t.a.get(e))}clear(){let e=this[u];i(e),x(e).size&&(n(e),Q(e),e.e.clear())}values(){let e=this[u];return i(e),n(e),e.e.values()}entries(){let e=this[u];return i(e),n(e),e.e.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){let r=this.values(),n=r.next();for(;!n.done;)e.call(t,n.value,n.value,this),n=r.next()}}function n(e){e.e||(e.e=new Set,e.t.forEach((t=>{if(h(t)){let r=Y(t,e);e.a.set(t,r),e.e.add(r)}else e.e.add(t)})))}function i(e){e.m&&l(3,JSON.stringify(x(e)))}j("MapSet",{I:function(t,r){return new e(t,r)},D:function(e,t){return new r(e,t)}})}var te=new J,re=te.produce,ne=te.produceWithPatches.bind(te),ie=te.setAutoFreeze.bind(te),oe=te.setUseStrictShallowCopy.bind(te),ae=te.applyPatches.bind(te),se=te.createDraft.bind(te),ce=te.finishDraft.bind(te);function ue(e){return e}function le(e){return e}},389407:(e,t,r)=>{"use strict";e.exports=r(170124)},256698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},619788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,u="";function l(e){return e?e.replace(c,u):u}e.exports=function(e,c){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];c=c||{};var d=1,f=1;function h(e){var t=e.match(r);t&&(d+=t.length);var n=e.lastIndexOf("\n");f=~n?e.length-n:f+e.length}function p(){var e={line:d,column:f};return function(t){return t.position=new g(e),v(),t}}function g(e){this.start=e,this.end={line:d,column:f},this.source=c.source}g.prototype.content=e;var m=[];function y(t){var r=new Error(c.source+":"+d+":"+f+": "+t);if(r.reason=t,r.filename=c.source,r.line=d,r.column=f,r.source=e,!c.silent)throw r;m.push(r)}function b(t){var r=t.exec(e);if(r){var n=r[0];return h(n),e=e.slice(n.length),r}}function v(){b(n)}function w(e){var t;for(e=e||[];t=A();)!1!==t&&e.push(t);return e}function A(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;u!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,u===e.charAt(r-1))return y("End of comment missing");var n=e.slice(2,r-2);return f+=2,h(n),e=e.slice(r),f+=2,t({type:"comment",comment:n})}}function C(){var e=p(),r=b(i);if(r){if(A(),!b(o))return y("property missing ':'");var n=b(a),c=e({type:"declaration",property:l(r[0].replace(t,u)),value:n?l(n[0].replace(t,u)):u});return b(s),c}}return v(),function(){var e,t=[];for(w(t);e=C();)!1!==e&&(t.push(e),w(t));return t}()}},147244:(e,t,r)=>{"use strict";var n=r(849092)(),i=r(136556)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},69600:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,t)}catch(h){h!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(r){return!1}},s=function(e){try{return!a(e)&&(n.call(e),!0)}catch(t){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var f=document.all;c.call(f)===c.call(document.all)&&(d=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(r){}return!1})}e.exports=i?function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(n){if(n!==r)return!1}return!a(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(a(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},848184:(e,t,r)=>{"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(849092)(),c=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!c)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&c(t)}return c(e)===n}},617172:e=>{e.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},513003:e=>{"use strict";e.exports=function(e){return e!=e}},224133:(e,t,r)=>{"use strict";var n=r(10487),i=r(238452),o=r(513003),a=r(576642),s=r(392464),c=n(a(),Number);i(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},576642:(e,t,r)=>{"use strict";var n=r(513003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},392464:(e,t,r)=>{"use strict";var n=r(238452),i=r(576642);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},135680:(e,t,r)=>{"use strict";var n=r(625767);e.exports=function(e){return!!n(e)}},16075:e=>{var t;self,t=()=>{return e={7629:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(9474),a=r(1687),s=r(8652),c=r(8160),u=r(3292),l=r(6354),d=r(8901),f=r(9708),h=r(6914),p=r(2294),g=r(6133),m=r(1152),y=r(8863),b=r(2036),v={Base:class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new p.Ids,this._preferences=null,this._refs=new g.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return n("function"==typeof f.describe,"Manifest functionality disabled"),f.describe(this)}allow(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return n(void 0!==e,"Missing example"),c.assertOptions(t,["override"]),this._inner("examples",e,{single:!0,override:t.override})}external(e,t){return"object"==typeof e&&(n(!t,"Cannot combine options with description"),t=e.description,e=e.method),n("function"==typeof e,"Method must be a function"),n(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this._inner("externals",{method:e,description:t},{single:!0})}failover(e,t){return this._default("failover",e,t)}forbidden(){return this.presence("forbidden")}id(e){return e?(n("string"==typeof e,"id must be a non-empty string"),n(/^[^\.]+$/.test(e),"id cannot contain period character"),this.$_setFlag("id",e)):this.$_setFlag("id",void 0)}invalid(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"Invalid mode:",e),this.$_setFlag("only",e)}optional(){return this.presence("optional")}prefs(e){n(e,"Missing preferences"),n(void 0===e.context,"Cannot override context"),n(void 0===e.externals,"Cannot override externals"),n(void 0===e.warnings,"Cannot override warnings"),n(void 0===e.debug,"Cannot override debug"),c.checkPreferences(e);const t=this.clone();return t._preferences=c.preferences(t._preferences,e),t}presence(e){return n(["optional","required","forbidden"].includes(e),"Unknown presence mode",e),this.$_setFlag("presence",e)}raw(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",e?"raw":void 0)}result(e){return n(["raw","strip"].includes(e),"Unknown result mode",e),this.$_setFlag("result",e)}required(){return this.presence("required")}strict(e){const t=this.clone(),r=void 0!==e&&!e;return t._preferences=c.preferences(t._preferences,{convert:r}),t}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",e?"strip":void 0)}tag(){for(var e=arguments.length,t=new Array(e),r=0;re.keep||e.name!==r)),t._singleRules.delete(r));for(const r of e._rules)e._definition.rules[r.method].multi||t._singleRules.set(r.name,r),t._rules.push(r);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.concat(e._flags.empty);const r=Object.assign({},e._flags);delete r.empty,a(t._flags,r)}else if(e._flags.empty){t._flags.empty=e._flags.empty;const r=Object.assign({},e._flags);delete r.empty,a(t._flags,r)}else a(t._flags,e._flags);for(const r in e.$_terms){const n=e.$_terms[r];n?t.$_terms[r]?t.$_terms[r]=t.$_terms[r].concat(n):t.$_terms[r]=n.slice():t.$_terms[r]||(t.$_terms[r]=n)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return n(!e.base,"Cannot extend type with another base"),d.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split("."),this._ids.reach(e)}fork(e,t){n(!this._inRuleset(),"Cannot fork inside a ruleset");let r=this;for(let n of[].concat(e))n=Array.isArray(n)?n:n.split("."),r=r._ids.fork(n,t,r);return r.$_temp.ruleset=!1,r}rule(e){const t=this._definition;c.assertOptions(e,Object.keys(t.modifiers)),n(!1!==this.$_temp.ruleset,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const r=null===this.$_temp.ruleset?this._rules.length-1:this.$_temp.ruleset;n(r>=0&&rt.tailor(e),ref:!1}),t.$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return m.location?m.location(this):this}validate(e,t){return y.entry(e,this,t)}validateAsync(e,t){return y.entryAsync(e,this,t)}$_addRule(e){"string"==typeof e&&(e={name:e}),n(e&&"object"==typeof e,"Invalid options"),n(e.name&&"string"==typeof e.name,"Invalid rule name");for(const a in e)n("_"!==a[0],"Cannot set private rule properties");const t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;const r=this._definition.rules[t.method],i=t.args;n(r,"Unknown rule",t.method);const o=this.clone();if(i){n(1===Object.keys(i).length||Object.keys(i).length===this._definition.rules[t.name].args.length,"Invalid rule definition for",this.type,t.name);for(const e in i){let a=i[e];if(r.argsByName){const s=r.argsByName.get(e);if(s.ref&&c.isResolvable(a))t._resolve.push(e),o.$_mutateRegister(a);else if(s.normalize&&(a=s.normalize(a),i[e]=a),s.assert){const t=c.validateArg(a,e,s);n(!t,t,"or reference")}}void 0!==a?i[e]=a:delete i[e]}}return r.multi||(o._ruleRemove(t.name,{clone:!1}),o._singleRules.set(t.name,t)),!1===o.$_temp.ruleset&&(o.$_temp.ruleset=null),r.priority?o._rules.unshift(t):o._rules.push(t),o}$_compile(e,t){return u.schema(this.$_root,e,t)}$_createError(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const a=!1!==o.flags?this._flags:{},s=o.messages?h.merge(this._definition.messages,o.messages):this._definition.messages;return new l.Report(e,t,r,a,s,n,i)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split("."),this._ids.labels(e)}$_match(e,t,r,n){(r=Object.assign({},r)).abortEarly=!0,r._externals=!1,t.snapshot();const i=!y.validate(e,this,t,r,n).errors;return t.restore(),i}$_modify(e){return c.assertOptions(e,["each","once","ref","schema"]),p.schema(this,e)||this}$_mutateRebuild(){return n(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(e,t)=>{let{source:r,name:n,path:i,key:o}=t;const a=this._definition[r][n]&&this._definition[r][n].register;!1!==a&&this.$_mutateRegister(e,{family:a,key:o})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e){let{family:t,key:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._refs.register(e,t),this._ids.register(e,{key:r})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n("_"===e[0]||!this._inRuleset(),"Cannot set flag inside a ruleset");const i=this._definition.flags[e]||{};if(o(t,i.default)&&(t=void 0),o(t,this._flags[e]))return this;const a=!1!==r.clone?this.clone():this;return void 0!==t?(a._flags[e]=t,a.$_mutateRegister(t)):delete a._flags[e],"_"!==e[0]&&(a.$_temp.ruleset=!1),a}$_parent(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n2&&void 0!==arguments[2]?arguments[2]:{};return c.assertOptions(r,"literal"),n(void 0!==t,"Missing",e,"value"),n("function"==typeof t||!r.literal,"Only function value supports literal option"),"function"==typeof t&&r.literal&&(t={[c.symbols.literal]:!0,literal:t}),this.$_setFlag(e,t)}_generate(e,t,r){if(!this.$_terms.whens)return{schema:this};const n=[],i=[];for(let s=0;su)break}const o=i.join(", ");if(t.mainstay.tracer.debug(t,"rule","when",o),!o)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[o])return{schema:this.$_temp.whens[o],id:o};let a=this;this._definition.generate&&(a=this._definition.generate(this,e,t,r));for(const s of n)a=a.concat(s);return this.$_root._tracer&&this.$_root._tracer._combine(a,[this,...n]),this.$_temp.whens[o]=a,{schema:a,id:o}}_inner(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n(!this._inRuleset(),`Cannot set ${e} inside a ruleset`);const i=this.clone();return i.$_terms[e]&&!r.override||(i.$_terms[e]=[]),r.single?i.$_terms[e].push(t):i.$_terms[e].push(...t),i.$_temp.ruleset=!1,i}_inRuleset(){return null!==this.$_temp.ruleset&&!1!==this.$_temp.ruleset}_ruleRemove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._singleRules.has(e))return this;const r=!1!==t.clone?this.clone():this;r._singleRules.delete(e);const n=[];for(let i=0;i{"use strict";const n=r(375),i=r(8571),o=r(8160),a={max:1e3,supported:new Set(["undefined","boolean","number","string"])};t.provider={provision:e=>new a.Cache(e)},a.Cache=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o.assertOptions(e,["max"]),n(void 0===e.max||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||a.max,this._map=new Map,this._list=new a.List}get length(){return this._map.size}set(e,t){if(null!==e&&!a.supported.has(typeof e))return;let r=this._map.get(e);if(r)return r.value=t,void this._list.first(r);r=this._list.unshift({key:e,value:t}),this._map.set(e,r),this._compact()}get(e){const t=this._map.get(e);if(t)return this._list.first(t),i(t.value)}_compact(){if(this._map.size>this._max){const e=this._list.pop();this._map.delete(e.key)}}},a.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||(this.tail=e),e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){const{next:t,prev:r}=e;return t.prev=r,r&&(r.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}},8160:(e,t,r)=>{"use strict";const n=r(375),i=r(7916),o=r(5934);let a,s;const c={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};t.version=o.version,t.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},t.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},t.assertOptions=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Options";n(e&&"object"==typeof e&&!Array.isArray(e),"Options must be of type object");const i=Object.keys(e).filter((e=>!t.includes(e)));n(0===i.length,`${r} contain unknown keys: ${i}`)},t.checkPreferences=function(e){s=s||r(3378);const t=s.preferences.validate(e);if(t.error)throw new i([t.error.details[0].message])},t.compare=function(e,t,r){switch(r){case"=":return e===t;case">":return e>t;case"<":return e=":return e>=t;case"<=":return e<=t}},t.default=function(e,t){return void 0===e?t:e},t.isIsoDate=function(e){return c.isoDate.test(e)},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isResolvable=function(e){return!!e&&(e[t.symbols.ref]||e[t.symbols.template])},t.isSchema=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e&&e[t.symbols.any];return!!i&&(n(r.legacy||i.version===t.version,"Cannot mix different versions of joi schemas"),!0)},t.isValues=function(e){return e[t.symbols.values]},t.limit=function(e){return Number.isSafeInteger(e)&&e>=0},t.preferences=function(e,n){a=a||r(6914),e=e||{},n=n||{};const i=Object.assign({},e,n);return n.errors&&e.errors&&(i.errors=Object.assign({},e.errors,n.errors),i.errors.wrap=Object.assign({},e.errors.wrap,n.errors.wrap)),n.messages&&(i.messages=a.compile(n.messages,e.messages)),delete i[t.symbols.prefs],i},t.tryWithPath=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return e()}catch(e){throw void 0!==e.path?e.path=t+"."+e.path:e.path=t,r.append&&(e.message=`${e.message} (${e.path})`),e}},t.validateArg=function(e,r,n){let{assert:i,message:o}=n;if(t.isSchema(i)){const t=i.validate(e);if(!t.error)return;return t.error.message}if(!i(e))return r?`${r} ${o}`:o},t.verifyFlat=function(e,t){for(const r of e)n(!Array.isArray(r),"Method no longer accepts array arguments:",t)}},3292:(e,t,r)=>{"use strict";const n=r(375),i=r(8160),o=r(6133),a={};t.schema=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i.assertOptions(r,["appendPath","override"]);try{return a.schema(e,t,r)}catch(e){throw r.appendPath&&void 0!==e.path&&(e.message=`${e.message} (${e.path})`),e}},a.schema=function(e,t,r){n(void 0!==t,"Invalid undefined schema"),Array.isArray(t)&&(n(t.length,"Invalid empty array schema"),1===t.length&&(t=t[0]));const o=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:{};i.assertOptions(o,["legacy"]);const s=r&&r[i.symbols.any];if(s)return n(o.legacy||s.version===i.version,"Cannot mix different versions of joi schemas:",s.version,i.version),r;if("object"!=typeof r||!o.legacy)return t.schema(e,r,{appendPath:!0});const c=a.walk(r);return c?c.compile(c.root,r):t.schema(e,r,{appendPath:!0})},a.walk=function(e){if("object"!=typeof e)return null;if(Array.isArray(e)){for(const t of e){const e=a.walk(t);if(e)return e}return null}const t=e[i.symbols.any];if(t)return{root:e[t.root],compile:t.compile};n(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const r in e){const t=a.walk(e[r]);if(t)return t}return null},a.simple=function(e){return null===e||["boolean","string","number"].includes(typeof e)},t.when=function(e,r,s){if(void 0===s&&(n(r&&"object"==typeof r,"Missing options"),s=r,r=o.create(".")),Array.isArray(s)&&(s={switch:s}),i.assertOptions(s,["is","not","then","otherwise","switch","break"]),i.isSchema(r))return n(void 0===s.is,'"is" can not be used with a schema condition'),n(void 0===s.not,'"not" can not be used with a schema condition'),n(void 0===s.switch,'"switch" can not be used with a schema condition'),a.condition(e,{is:r,then:s.then,otherwise:s.otherwise,break:s.break});if(n(o.isRef(r)||"string"==typeof r,"Invalid condition:",r),n(void 0===s.not||void 0===s.is,'Cannot combine "is" with "not"'),void 0===s.switch){let c=s;void 0!==s.not&&(c={is:s.not,then:s.otherwise,otherwise:s.then,break:s.break});let u=void 0!==c.is?e.$_compile(c.is):e.$_root.invalid(null,!1,0,"").required();return n(void 0!==c.then||void 0!==c.otherwise,'options must have at least one of "then", "otherwise", or "switch"'),n(void 0===c.break||void 0===c.then||void 0===c.otherwise,"Cannot specify then, otherwise, and break all together"),void 0===s.is||o.isRef(s.is)||i.isSchema(s.is)||(u=u.required()),a.condition(e,{ref:t.ref(r),is:u,then:c.then,otherwise:c.otherwise,break:c.break})}n(Array.isArray(s.switch),'"switch" must be an array'),n(void 0===s.is,'Cannot combine "switch" with "is"'),n(void 0===s.not,'Cannot combine "switch" with "not"'),n(void 0===s.then,'Cannot combine "switch" with "then"');const c={ref:t.ref(r),switch:[],break:s.break};for(let t=0;t{"use strict";const n=r(5688),i=r(8160),o=r(3328);t.Report=class{constructor(e,r,n,i,o,a,s){if(this.code=e,this.flags=i,this.messages=o,this.path=a.path,this.prefs=s,this.state=a,this.value=r,this.message=null,this.template=null,this.local=n||{},this.local.label=t.label(this.flags,this.state,this.prefs,this.messages),void 0===this.value||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const e=this.path[this.path.length-1];"object"!=typeof e&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&0===this.path.length){const e=this._template(this.template,"root");e&&(this.local.label=e)}}toString(){if(this.message)return this.message;const e=this.code;if(!this.prefs.errors.render)return this.code;const t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return void 0===t?`Error code "${e}" is not defined, your custom type is missing the correct messages definition`:(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(e,r){return t.template(this.value,e,r||this.code,this.state,this.prefs)}},t.path=function(e){let t="";for(const r of e)"object"!=typeof r&&("string"==typeof r?(t&&(t+="."),t+=r):t+=`[${r}]`);return t},t.template=function(e,t,r,n,a){if(!t)return;if(o.isTemplate(t))return"root"!==r?t:null;let s=a.errors.language;if(i.isResolvable(s)&&(s=s.resolve(e,n,a)),s&&t[s]){if(void 0!==t[s][r])return t[s][r];if(void 0!==t[s]["*"])return t[s]["*"]}return t[r]?t[r]:t["*"]},t.label=function(e,r,n,i){if(e.label)return e.label;if(!n.errors.label)return"";let o=r.path;return"key"===n.errors.label&&r.path.length>1&&(o=r.path.slice(-1)),t.path(o)||t.template(null,n.messages,"root",r,n)||i&&t.template(null,i,"root",r,n)||"value"},t.process=function(e,r,n){if(!e)return null;const{override:i,message:o,details:a}=t.details(e);if(i)return i;if(n.errors.stack)return new t.ValidationError(o,a,r);const s=Error.stackTraceLimit;Error.stackTraceLimit=0;const c=new t.ValidationError(o,a,r);return Error.stackTraceLimit=s,c},t.details=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];const n=[];for(const i of e){if(i instanceof Error){if(!1!==t.override)return{override:i};const e=i.toString();r.push(e),n.push({message:e,type:"override",context:{error:i}});continue}const e=i.toString();r.push(e),n.push({message:e,path:i.path.filter((e=>"object"!=typeof e)),type:i.code,context:i.local})}return r.length>1&&(r=[...new Set(r)]),{message:r.join(". "),details:n}},t.ValidationError=class extends Error{constructor(e,t,r){super(e),this._original=r,this.details=t}static isError(e){return e instanceof t.ValidationError}},t.ValidationError.prototype.isJoi=!0,t.ValidationError.prototype.name="ValidationError",t.ValidationError.prototype.annotate=n.error},8901:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(8160),a=r(6914),s={};t.type=function(e,t){const r=Object.getPrototypeOf(e),c=i(r),u=e._assign(Object.create(c)),l=Object.assign({},t);delete l.base,c._definition=l;const d=r._definition||{};l.messages=a.merge(d.messages,l.messages),l.properties=Object.assign({},d.properties,l.properties),u.type=l.type,l.flags=Object.assign({},d.flags,l.flags);const f=Object.assign({},d.terms);if(l.terms)for(const i in l.terms){const e=l.terms[i];n(void 0===u.$_terms[i],"Invalid term override for",l.type,i),u.$_terms[i]=e.init,f[i]=e}l.terms=f,l.args||(l.args=d.args),l.prepare=s.prepare(l.prepare,d.prepare),l.coerce&&("function"==typeof l.coerce&&(l.coerce={method:l.coerce}),l.coerce.from&&!Array.isArray(l.coerce.from)&&(l.coerce={method:l.coerce.method,from:[].concat(l.coerce.from)})),l.coerce=s.coerce(l.coerce,d.coerce),l.validate=s.validate(l.validate,d.validate);const h=Object.assign({},d.rules);if(l.rules)for(const i in l.rules){const e=l.rules[i];n("object"==typeof e,"Invalid rule definition for",l.type,i);let t=e.method;if(void 0===t&&(t=function(){return this.$_addRule(i)}),t&&(n(!c[i],"Rule conflict in",l.type,i),c[i]=t),n(!h[i],"Rule conflict in",l.type,i),h[i]=e,e.alias){const t=[].concat(e.alias);for(const r of t)c[r]=e.method}e.args&&(e.argsByName=new Map,e.args=e.args.map((t=>("string"==typeof t&&(t={name:t}),n(!e.argsByName.has(t.name),"Duplicated argument name",t.name),o.isSchema(t.assert)&&(t.assert=t.assert.strict().label(t.name)),e.argsByName.set(t.name,t),t))))}l.rules=h;const p=Object.assign({},d.modifiers);if(l.modifiers)for(const i in l.modifiers){n(!c[i],"Rule conflict in",l.type,i);const e=l.modifiers[i];n("function"==typeof e,"Invalid modifier definition for",l.type,i);const t=function(e){return this.rule({[i]:e})};c[i]=t,p[i]=e}if(l.modifiers=p,l.overrides){c._super=r,u.$_super={};for(const e in l.overrides)n(r[e],"Cannot override missing",e),l.overrides[e][o.symbols.parent]=r[e],u.$_super[e]=r[e].bind(u);Object.assign(c,l.overrides)}l.cast=Object.assign({},d.cast,l.cast);const g=Object.assign({},d.manifest,l.manifest);return g.build=s.build(l.manifest&&l.manifest.build,d.manifest&&d.manifest.build),l.manifest=g,l.rebuild=s.rebuild(l.rebuild,d.rebuild),u},s.build=function(e,t){return e&&t?function(r,n){return t(e(r,n),n)}:e||t},s.coerce=function(e,t){return e&&t?{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(r,n){let i;if((!t.from||t.from.includes(typeof r))&&(i=t.method(r,n),i)){if(i.errors||void 0===i.value)return i;r=i.value}if(!e.from||e.from.includes(typeof r)){const t=e.method(r,n);if(t)return t}return i}}:e||t},s.prepare=function(e,t){return e&&t?function(r,n){const i=e(r,n);if(i){if(i.errors||void 0===i.value)return i;r=i.value}return t(r,n)||i}:e||t},s.rebuild=function(e,t){return e&&t?function(r){t(r),e(r)}:e||t},s.validate=function(e,t){return e&&t?function(r,n){const i=t(r,n);if(i){if(i.errors&&(!Array.isArray(i.errors)||i.errors.length))return i;r=i.value}return e(r,n)||i}:e||t}},5107:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(8652),a=r(8160),s=r(3292),c=r(6354),u=r(8901),l=r(9708),d=r(6133),f=r(3328),h=r(1152);let p;const g={types:{alternatives:r(4946),any:r(8068),array:r(546),boolean:r(4937),date:r(7500),function:r(390),link:r(8785),number:r(3832),object:r(8966),string:r(7417),symbol:r(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const e={_types:new Set(Object.keys(g.types))};for(const t of e._types)e[t]=function(){for(var e=arguments.length,r=new Array(e),i=0;i2?r-2:0),i=2;i2?r-2:0),i=2;i{"use strict";const n=r(375),i=r(8571),o=r(3328);t.compile=function(e,t){if("string"==typeof e)return n(!t,"Cannot set single message string"),new o(e);if(o.isTemplate(e))return n(!t,"Cannot set single message template"),e;n("object"==typeof e&&!Array.isArray(e),"Invalid message options"),t=t?i(t):{};for(let r in e){const i=e[r];if("root"===r||o.isTemplate(i)){t[r]=i;continue}if("string"==typeof i){t[r]=new o(i);continue}n("object"==typeof i&&!Array.isArray(i),"Invalid message for",r);const a=r;for(r in t[a]=t[a]||{},i){const e=i[r];"root"===r||o.isTemplate(e)?t[a][r]=e:(n("string"==typeof e,"Invalid message for",r,"in",a),t[a][r]=new o(e))}}return t},t.decompile=function(e){const t={};for(let r in e){const n=e[r];if("root"===r){t.root=n;continue}if(o.isTemplate(n)){t[r]=n.describe({compact:!0});continue}const i=r;for(r in t[i]={},n){const e=n[r];"root"!==r?t[i][r]=e.describe({compact:!0}):t[i].root=e}}return t},t.merge=function(e,r){if(!e)return t.compile(r);if(!r)return e;if("string"==typeof r)return new o(r);if(o.isTemplate(r))return r;const a=i(e);for(let t in r){const e=r[t];if("root"===t||o.isTemplate(e)){a[t]=e;continue}if("string"==typeof e){a[t]=new o(e);continue}n("object"==typeof e&&!Array.isArray(e),"Invalid message for",t);const i=t;for(t in a[i]=a[i]||{},e){const r=e[t];"root"===t||o.isTemplate(r)?a[i][t]=r:(n("string"==typeof r,"Invalid message for",t,"in",i),a[i][t]=new o(r))}}return a}},2294:(e,t,r)=>{"use strict";const n=r(375),i=r(8160),o=r(6133),a={};t.Ids=a.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const e=new a.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){e._schemaChain&&(this._schemaChain=!0);for(const[t,r]of e._byId.entries())n(!this._byKey.has(t),"Schema id conflicts with existing key:",t),this._byId.set(t,r);for(const[t,r]of e._byKey.entries())n(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,r)}fork(e,t,r){const o=this._collect(e);o.push({schema:r});const s=o.shift();let c={id:s.id,schema:t(s.schema)};n(i.isSchema(c.schema),"adjuster function failed to return a joi schema type");for(const n of o)c={id:n.id,schema:a.fork(n.schema,c.id,c.schema)};return c.schema}labels(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=e[0],n=this._get(r);if(!n)return[...t,...e].join(".");const i=e.slice(1);return t=[...t,n.schema._flags.label||r],i.length?n.schema._ids.labels(i,t):t.join(".")}reach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=e[0],i=this._get(r);n(i,"Schema does not contain path",[...t,...e].join("."));const o=e.slice(1);return o.length?i.schema._ids.reach(o,[...t,r]):i.schema}register(e){let{key:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!i.isSchema(e))return;(e.$_property("schemaChain")||e._ids._schemaChain)&&(this._schemaChain=!0);const r=e._flags.id;if(r){const t=this._byId.get(r);n(!t||t.schema===e,"Cannot add different schemas with the same id:",r),n(!this._byKey.has(r),"Schema id conflicts with existing key:",r),this._byId.set(r,{schema:e,id:r})}t&&(n(!this._byKey.has(t),"Schema already contains key:",t),n(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,{schema:e,id:t}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const i=e[0],o=this._get(i);n(o,"Schema does not contain path",[...t,...e].join(".")),r=[o,...r];const a=e.slice(1);return a.length?o.schema._ids._collect(a,[...t,i],r):r}_get(e){return this._byId.get(e)||this._byKey.get(e)}},a.fork=function(e,r,n){const i=t.schema(e,{each:(e,t)=>{let{key:i}=t;if(r===(e._flags.id||i))return n},ref:!1});return i?i.$_mutateRebuild():e},t.schema=function(e,t){let r;for(const n in e._flags){if("_"===n[0])continue;const i=a.scan(e._flags[n],{source:"flags",name:n},t);void 0!==i&&(r=r||e.clone(),r._flags[n]=i)}for(let n=0;n{"use strict";const n=r(375),i=r(8571),o=r(9621),a=r(8160);let s;const c={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};t.create=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("string"==typeof e,"Invalid reference key:",e),a.assertOptions(t,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),n(!t.prefix||"object"==typeof t.prefix,"options.prefix must be of type object");const r=Object.assign({},c.defaults,t);delete r.prefix;const i=r.separator,o=c.context(e,i,t.prefix);if(r.type=o.type,e=o.key,"value"===r.type)if(o.root&&(n(!i||e[0]!==i,"Cannot specify relative path with root prefix"),r.ancestor="root",e||(e=null)),i&&i===e)e=null,r.ancestor=0;else if(void 0!==r.ancestor)n(!i||!e||e[0]!==i,"Cannot combine prefix with ancestor option");else{const[t,n]=c.ancestor(e,i);n&&""===(e=e.slice(n))&&(e=null),r.ancestor=t}return r.path=i?null===e?[]:e.split(i):[e],new c.Ref(r)},t.in=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.create(e,{...r,in:!0})},t.isRef=function(e){return!!e&&!!e[a.symbols.ref]},c.Ref=class{constructor(e){n("object"==typeof e,"Invalid reference construction"),a.assertOptions(e,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),n([!1,void 0].includes(e.separator)||"string"==typeof e.separator&&1===e.separator.length,"Invalid separator"),n(!e.adjust||"function"==typeof e.adjust,"options.adjust must be a function"),n(!e.map||Array.isArray(e.map),"options.map must be an array"),n(!e.map||!e.adjust,"Cannot set both map and adjust options"),Object.assign(this,c.defaults,e),n("value"===this.type||void 0===this.ancestor,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(e,t,r,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return n(!this.in||o.in,"Invalid in() reference usage"),"global"===this.type?this._resolve(r.context,t,o):"local"===this.type?this._resolve(i,t,o):this.ancestor?"root"===this.ancestor?this._resolve(t.ancestors[t.ancestors.length-1],t,o):(n(this.ancestor<=t.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(t.ancestors[this.ancestor-1],t,o)):this._resolve(e,t,o)}_resolve(e,t,r){let n;if("value"===this.type&&t.mainstay.shadow&&!1!==r.shadow&&(n=t.mainstay.shadow.get(this.absolute(t))),void 0===n&&(n=o(e,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(n=this.adjust(n)),this.map){const e=this.map.get(n);void 0!==e&&(n=e)}return t.mainstay&&t.mainstay.tracer.resolve(t,this,n),n}toString(){return this.display}absolute(e){return[...e.path.slice(0,-this.ancestor),...this.path]}clone(){return new c.Ref(this)}describe(){const e={path:this.path};"value"!==this.type&&(e.type=this.type),"."!==this.separator&&(e.separator=this.separator),"value"===this.type&&1!==this.ancestor&&(e.ancestor=this.ancestor),this.map&&(e.map=[...this.map]);for(const t of["adjust","iterables","render"])null!==this[t]&&void 0!==this[t]&&(e[t]=this[t]);return!1!==this.in&&(e.in=!0),{ref:e}}updateDisplay(){const e=null!==this.key?this.key:"";if("value"!==this.type)return void(this.display=`ref:${this.type}:${e}`);if(!this.separator)return void(this.display=`ref:${e}`);if(!this.ancestor)return void(this.display=`ref:${this.separator}${e}`);if("root"===this.ancestor)return void(this.display=`ref:root:${e}`);if(1===this.ancestor)return void(this.display=`ref:${e||".."}`);const t=new Array(this.ancestor+1).fill(this.separator).join("");this.display=`ref:${t}${e||""}`}},c.Ref.prototype[a.symbols.ref]=!0,t.build=function(e){return"value"===(e=Object.assign({},c.defaults,e)).type&&void 0===e.ancestor&&(e.ancestor=1),new c.Ref(e)},c.context=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e=e.trim(),r){const n=void 0===r.global?"$":r.global;if(n!==t&&e.startsWith(n))return{key:e.slice(n.length),type:"global"};const i=void 0===r.local?"#":r.local;if(i!==t&&e.startsWith(i))return{key:e.slice(i.length),type:"local"};const o=void 0===r.root?"/":r.root;if(o!==t&&e.startsWith(o))return{key:e.slice(o.length),type:"value",root:!0}}return{key:e,type:"value"}},c.ancestor=function(e,t){if(!t)return[1,0];if(e[0]!==t)return[1,0];if(e[1]!==t)return[0,1];let r=2;for(;e[r]===t;)++r;return[r-1,r]},t.toSibling=0,t.toParent=1,t.Manager=class{constructor(){this.refs=[]}register(e,n){if(e)if(n=void 0===n?t.toParent:n,Array.isArray(e))for(const t of e)this.register(t,n);else if(a.isSchema(e))for(const t of e._refs.refs)t.ancestor-n>=0&&this.refs.push({ancestor:t.ancestor-n,root:t.root});else t.isRef(e)&&"value"===e.type&&e.ancestor-n>=0&&this.refs.push({ancestor:e.ancestor-n,root:e.root}),s=s||r(3328),s.isTemplate(e)&&this.register(e.refs(),n)}get length(){return this.refs.length}clone(){const e=new t.Manager;return e.refs=i(this.refs),e}reset(){this.refs=[]}roots(){return this.refs.filter((e=>!e.ancestor)).map((e=>e.root))}}},3378:(e,t,r)=>{"use strict";const n=r(5107),i={};i.wrap=n.string().min(1).max(2).allow(!1),t.preferences=n.object({allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),context:n.object(),convert:n.boolean(),dateFormat:n.valid("date","iso","string","time","utc"),debug:n.boolean(),errors:{escapeHtml:n.boolean(),label:n.valid("path","key",!1),language:[n.string(),n.object().ref()],render:n.boolean(),stack:n.boolean(),wrap:{label:i.wrap,array:i.wrap,string:i.wrap}},externals:n.boolean(),messages:n.object(),noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:n.valid("required","optional","forbidden"),skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()}).strict(),i.nameRx=/^[a-zA-Z0-9]\w*$/,i.rule=n.object({alias:n.array().items(n.string().pattern(i.nameRx)).single(),args:n.array().items(n.string(),n.object({name:n.string().pattern(i.nameRx).required(),ref:n.boolean(),assert:n.alternatives([n.function(),n.object().schema()]).conditional("ref",{is:!0,then:n.required()}),normalize:n.function(),message:n.string().when("assert",{is:n.function(),then:n.required()})})),convert:n.boolean(),manifest:n.boolean(),method:n.function().allow(!1),multi:n.boolean(),validate:n.function()}),t.extension=n.object({type:n.alternatives([n.string(),n.object().regex()]).required(),args:n.function(),cast:n.object().pattern(i.nameRx,n.object({from:n.function().maxArity(1).required(),to:n.function().minArity(1).maxArity(2).required()})),base:n.object().schema().when("type",{is:n.object().regex(),then:n.forbidden()}),coerce:[n.function().maxArity(3),n.object({method:n.function().maxArity(3).required(),from:n.array().items(n.string()).single()})],flags:n.object().pattern(i.nameRx,n.object({setter:n.string(),default:n.any()})),manifest:{build:n.function().arity(2)},messages:[n.object(),n.string()],modifiers:n.object().pattern(i.nameRx,n.function().minArity(1).maxArity(2)),overrides:n.object().pattern(i.nameRx,n.function()),prepare:n.function().maxArity(3),rebuild:n.function().arity(1),rules:n.object().pattern(i.nameRx,i.rule),terms:n.object().pattern(i.nameRx,n.object({init:n.array().allow(null).required(),manifest:n.object().pattern(/.+/,[n.valid("schema","single"),n.object({mapped:n.object({from:n.string().required(),to:n.string().required()}).required()})])})),validate:n.function().maxArity(3)}).strict(),t.extensions=n.array().items(n.object(),n.function().arity(1)).strict(),i.desc={buffer:n.object({buffer:n.string()}),func:n.object({function:n.function().required(),options:{literal:!0}}),override:n.object({override:!0}),ref:n.object({ref:n.object({type:n.valid("value","global","local"),path:n.array().required(),separator:n.string().length(1).allow(!1),ancestor:n.number().min(0).integer().allow("root"),map:n.array().items(n.array().length(2)).min(1),adjust:n.function(),iterables:n.boolean(),in:n.boolean(),render:n.boolean()}).required()}),regex:n.object({regex:n.string().min(3)}),special:n.object({special:n.valid("deep").required()}),template:n.object({template:n.string().required(),options:n.object()}),value:n.object({value:n.alternatives([n.object(),n.array()]).required()})},i.desc.entity=n.alternatives([n.array().items(n.link("...")),n.boolean(),n.function(),n.number(),n.string(),i.desc.buffer,i.desc.func,i.desc.ref,i.desc.regex,i.desc.special,i.desc.template,i.desc.value,n.link("/")]),i.desc.values=n.array().items(null,n.boolean(),n.function(),n.number().allow(1/0,-1/0),n.string().allow(""),n.symbol(),i.desc.buffer,i.desc.func,i.desc.override,i.desc.ref,i.desc.regex,i.desc.template,i.desc.value),i.desc.messages=n.object().pattern(/.+/,[n.string(),i.desc.template,n.object().pattern(/.+/,[n.string(),i.desc.template])]),t.description=n.object({type:n.string().required(),flags:n.object({cast:n.string(),default:n.any(),description:n.string(),empty:n.link("/"),failover:i.desc.entity,id:n.string(),label:n.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:n.boolean(),unit:n.string()}).unknown(),preferences:{allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),convert:n.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:n.boolean(),label:["path","key"],language:[n.string(),i.desc.ref],wrap:{label:i.wrap,array:i.wrap}},externals:n.boolean(),messages:i.desc.messages,noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:["required","optional","forbidden"],skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()},allow:i.desc.values,invalid:i.desc.values,rules:n.array().min(1).items({name:n.string().required(),args:n.object().min(1),keep:n.boolean(),message:[n.string(),i.desc.messages],warn:n.boolean()}),keys:n.object().pattern(/.*/,n.link("/")),link:i.desc.ref}).pattern(/^[a-z]\w*$/,n.any())},493:(e,t,r)=>{"use strict";const n=r(8571),i=r(9621),o=r(8160),a={value:Symbol("value")};e.exports=a.State=class{constructor(e,t,r){this.path=e,this.ancestors=t,this.mainstay=r.mainstay,this.schemas=r.schemas,this.debug=null}localize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const n=new a.State(e,t,this);return r&&n.schemas&&(n.schemas=[a.schemas(r),...n.schemas]),n}nest(e,t){const r=new a.State(this.path,this.ancestors,this);return r.schemas=r.schemas&&[a.schemas(e),...r.schemas],r.debug=t,r}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new a.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=n(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}},a.schemas=function(e){return o.isSchema(e)?{schema:e}:e},a.Shadow=class{constructor(){this._values=null}set(e,t,r){if(!e.length)return;if("strip"===r&&"number"==typeof e[e.length-1])return;this._values=this._values||new Map;let n=this._values;for(let i=0;i{"use strict";const n=r(375),i=r(8571),o=r(5277),a=r(1447),s=r(8160),c=r(6354),u=r(6133),l={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join("\x01"),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};e.exports=l.Template=class{constructor(e,t){n("string"==typeof e,"Template source must be a string"),n(!e.includes("\0")&&!e.includes("\x01"),"Template source cannot contain reserved control characters"),this.source=e,this.rendered=e,this._template=null,this._settings=i(t),this._parse()}_parse(){if(!this.source.includes("{"))return;const e=l.encode(this.source),t=l.split(e);let r=!1;const n=[],i=t.shift();i&&n.push(i);for(const o of t){const e="{"!==o[0],t=e?"}":"}}",i=o.indexOf(t);if(-1===i||"{"===o[1]){n.push(`{${l.decode(o)}`);continue}let a=o.slice(e?0:1,i);const s=":"===a[0];s&&(a=a.slice(1));const c=this._ref(l.decode(a),{raw:e,wrapped:s});n.push(c),"string"!=typeof c&&(r=!0);const u=o.slice(i+t.length);u&&n.push(l.decode(u))}r?this._template=n:this.rendered=n.join("")}static date(e,t){return l.dateFormat[t.dateFormat].call(e)}describe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._settings&&e.compact)return this.source;const t={template:this.source};return this._settings&&(t.options=this._settings),t}static build(e){return new l.Template(e.template,e.options)}isDynamic(){return!!this._template}static isTemplate(e){return!!e&&!!e[s.symbols.template]}refs(){if(!this._template)return;const e=[];for(const t of this._template)"string"!=typeof t&&e.push(...t.refs);return e}resolve(e,t,r,n){return this._template&&1===this._template.length?this._part(this._template[0],e,t,r,n,{}):this.render(e,t,r,n)}_part(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n4&&void 0!==arguments[4]?arguments[4]:{};if(!this.isDynamic())return this.rendered;const a=[];for(const s of this._template)if("string"==typeof s)a.push(s);else{const c=this._part(s,e,t,r,n,i),u=l.stringify(c,e,t,r,n,i);if(void 0!==u){const e=s.raw||!1===(i.errors&&i.errors.escapeHtml)?u:o(u);a.push(l.wrap(e,s.wrapped&&r.errors.wrap.label))}}return a.join("")}_ref(e,t){let{raw:r,wrapped:n}=t;const i=[],o=e=>{const t=u.create(e,this._settings);return i.push(t),e=>t.resolve(...e)};try{var s=new a.Parser(e,{reference:o,functions:l.functions,constants:l.constants})}catch(t){throw t.message=`Invalid template variable "${e}" fails due to: ${t.message}`,t}if(s.single){if("reference"===s.single.type){const e=i[0];return{ref:e,raw:r,refs:i,wrapped:n||"local"===e.type&&"label"===e.key}}return l.stringify(s.single.value)}return{formula:s,raw:r,refs:i}}toString(){return this.source}},l.Template.prototype[s.symbols.template]=!0,l.Template.prototype.isImmutable=!0,l.encode=function(e){return e.replace(/\\(\{+)/g,((e,t)=>l.opens.slice(0,t.length))).replace(/\\(\}+)/g,((e,t)=>l.closes.slice(0,t.length)))},l.decode=function(e){return e.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},l.split=function(e){const t=[];let r="";for(let n=0;n5&&void 0!==arguments[5]?arguments[5]:{};const a=typeof e,s=n&&n.errors&&n.errors.wrap||{};let c=!1;if(u.isRef(e)&&e.render&&(c=e.in,e=e.resolve(t,r,n,i,{in:e.in,...o})),null===e)return"null";if("string"===a)return l.wrap(e,o.arrayItems&&s.string);if("number"===a||"function"===a||"symbol"===a)return e.toString();if("object"!==a)return JSON.stringify(e);if(e instanceof Date)return l.Template.date(e,n);if(e instanceof Map){const t=[];for(const[r,n]of e.entries())t.push(`${r.toString()} -> ${n.toString()}`);e=t}if(!Array.isArray(e))return e.toString();const d=[];for(const u of e)d.push(l.stringify(u,t,r,n,i,{arrayItems:!0,...o}));return l.wrap(d.join(", "),!c&&s.array)},l.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},l.functions={if:(e,t,r)=>e?t:r,length:e=>"string"==typeof e?e.length:e&&"object"==typeof e?Array.isArray(e)?e.length:Object.keys(e).length:null,msg(e){const[t,r,n,i,o]=this,a=o.messages;if(!a)return"";const s=c.template(t,a[0],e,r,n)||c.template(t,a[1],e,r,n);return s?s.render(t,r,n,i,o):""},number:e=>"number"==typeof e?e:"string"==typeof e?parseFloat(e):"boolean"==typeof e?e?1:0:e instanceof Date?e.getTime():null}},4946:(e,t,r)=>{"use strict";const n=r(375),i=r(1687),o=r(8068),a=r(8160),s=r(3292),c=r(6354),u=r(6133),l={};e.exports=o.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:u.toSibling}},args(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;nc.details(e,{override:!1})))})};if("one"===r._flags.match)return 1===t.length?{value:t[0]}:{errors:n("alternatives.one")};if(t.length!==r.$_terms.matches.length)return{errors:n("alternatives.all",{details:s.map((e=>c.details(e,{override:!1})))})};const u=e=>e.$_terms.matches.some((e=>"object"===e.schema.type||"alternatives"===e.schema.type&&u(e.schema)));return u(r)?{value:t.reduce(((e,t)=>i(e,t,{mergeArrays:!1})))}:{value:t[t.length-1]}}const s=[];for(let i=0;i"is"!==r.path[0]?t.label(e):void 0,ref:!1})}},rebuild(e){e.$_modify({each:t=>{a.isSchema(t)&&"array"===t.type&&e.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(e,t){if(t.matches)for(const r of t.matches){const{schema:t,ref:n,is:i,not:o,then:a,otherwise:s}=r;e=t?e.try(t):n?e.conditional(n,{is:i,then:a,not:o,otherwise:s,switch:r.switch}):e.conditional(i,{then:a,otherwise:s})}return e}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),l.errors=function(e,t){let{error:r,state:n}=t;if(!e.length)return{errors:r("alternatives.any")};if(1===e.length)return{errors:e[0].reports};const i=new Set,o=[];for(const{reports:a,schema:s}of e){if(a.length>1)return l.unmatched(e,r);const t=a[0];if(t instanceof c.Report==0)return l.unmatched(e,r);if(t.state.path.length!==n.path.length){o.push({type:s.type,report:t});continue}if("any.only"===t.code){for(const e of t.local.valids)i.add(e);continue}const[u,d]=t.code.split(".");"base"===d?i.add(u):o.push({type:s.type,report:t})}return o.length?1===o.length?{errors:o[0].report}:l.unmatched(e,r):{errors:r("alternatives.types",{types:[...i]})}},l.unmatched=function(e,t){const r=[];for(const n of e)r.push(...n.reports);return{errors:t("alternatives.match",c.details(r,{override:!1}))}}},8068:(e,t,r)=>{"use strict";const n=r(375),i=r(7629),o=r(8160),a=r(6914);e.exports=i.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return n("function"==typeof e,"Method must be a function"),n(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:e,description:t}})},validate(e,t,r){let{method:n}=r;try{return n(e,t)}catch(e){return t.error("any.custom",{error:e})}},args:["method","description"],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){n(o.isSchema(e)&&e._flags.id,"Schema must be a schema with an id");const t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return n(e&&"string"==typeof e,"Invalid warning code"),this.$_addRule({name:"warning",args:{code:e,local:t},warn:!0})},validate(e,t,r){let{code:n,local:i}=r;return t.error(n,i)},args:["code","local"],multi:!0}},modifiers:{keep(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.keep=t},message(e,t){e.message=a.compile(t)},warn(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.warn=t}},manifest:{build(e,t){for(const r in t){const n=t[r];if(["examples","externals","metas","notes","tags"].includes(r))for(const t of n)e=e[r.slice(0,-1)](t);else if("alterations"!==r)if("whens"!==r){if("shared"===r)for(const t of n)e=e.shared(t)}else for(const t of n){const{ref:r,is:n,not:i,then:o,otherwise:a,concat:s}=t;e=s?e.concat(s):r?e.when(r,{is:n,not:i,then:o,otherwise:a,switch:t.switch,break:t.break}):e.when(n,{then:o,otherwise:a,break:t.break})}else{const t={};for(const{target:e,adjuster:r}of n)t[e]=r;e=e.alter(t)}}return e}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(e,t,r)=>{"use strict";const n=r(375),i=r(9474),o=r(9621),a=r(8068),s=r(8160),c=r(3292),u={};e.exports=a.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(e,t){let{schema:r,state:n,prefs:i}=t;if(!Array.isArray(e))return;const o=r.$_getRule("sort");return o?u.sort(r,e,o.args.options,n,i):void 0}},validate(e,t){let{schema:r,error:n}=t;if(!Array.isArray(e)){if(r._flags.single){const t=[e];return t[s.symbols.arraySingle]=!0,{value:t}}return{errors:n("array.base")}}if(r.$_getRule("items")||r.$_terms.externals)return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});const t=this.$_addRule({name:"has",args:{schema:e}});return t.$_mutateRegister(e),t},validate(e,t,r){let{state:n,prefs:i,error:o}=t,{schema:a}=r;const s=[e,...n.ancestors];for(let u=0;uthis.$_compile(t[i])),i,{append:!0});n.$_terms.items.push(e)}return n.$_mutateRebuild()},validate(e,t){let{schema:r,error:n,state:i,prefs:o,errorsArray:a}=t;const c=r.$_terms._requireds.slice(),l=r.$_terms.ordered.slice(),d=[...r.$_terms._inclusions,...c],f=!e[s.symbols.arraySingle];delete e[s.symbols.arraySingle];const h=a();let p=e.length;for(let s=0;s="})}},ordered:{method(){for(var e=arguments.length,t=new Array(e),r=0;rthis.$_compile(t[i])),i,{append:!0});u.validateSingle(e,n),n.$_mutateRegister(e),n.$_terms.ordered.push(e)}return n.$_mutateRebuild()}},single:{method(e){const t=void 0===e||!!e;return n(!t||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",t)}},sort:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s.assertOptions(e,["by","order"]);const t={order:e.order||"ascending"};return e.by&&(t.by=c.ref(e.by,{ancestor:0}),n(!t.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:t}})},validate(e,t,r){let{error:n,state:i,prefs:o,schema:a}=t,{options:s}=r;const{value:c,errors:l}=u.sort(a,e,s,i,o);if(l)return l;for(let u=0;u1&&void 0!==arguments[1]?arguments[1]:{};n(!e||"function"==typeof e||"string"==typeof e,"comparator must be a function or a string"),s.assertOptions(t,["ignoreUndefined","separator"]);const r={name:"unique",args:{options:t,comparator:e}};if(e)if("string"==typeof e){const n=s.default(t.separator,".");r.path=n?e.split(n):[e]}else r.comparator=e;return this.$_addRule(r)},validate(e,t,r,a){let{state:s,error:c,schema:u}=t,{comparator:l,options:d}=r,{comparator:f,path:h}=a;const p={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},g=f||i,m=d.ignoreUndefined;for(let i=0;inew Set(e)}},rebuild(e){e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[];for(const t of e.$_terms.items)u.validateSingle(t,e),"required"===t._flags.presence?e.$_terms._requireds.push(t):"forbidden"===t._flags.presence?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(const t of e.$_terms.ordered)u.validateSingle(t,e)},manifest:{build:(e,t)=>(t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),u.fillMissedErrors=function(e,t,r,n,i,o){const a=[];let s=0;for(const c of r){const e=c._flags.label;e?a.push(e):++s}a.length?s?t.push(e.$_createError("array.includesRequiredBoth",n,{knownMisses:a,unknownMisses:s},i,o)):t.push(e.$_createError("array.includesRequiredKnowns",n,{knownMisses:a},i,o)):t.push(e.$_createError("array.includesRequiredUnknowns",n,{unknownMisses:s},i,o))},u.fillOrderedErrors=function(e,t,r,n,i,o){const a=[];for(const s of r)"required"===s._flags.presence&&a.push(s);a.length&&u.fillMissedErrors(e,t,a,n,i,o)},u.fillDefault=function(e,t,r,n){const i=[];let o=!0;for(let a=e.length-1;a>=0;--a){const s=e[a],c=[t,...r.ancestors],u=s.$_validate(void 0,r.localize(r.path,c,s),n).value;if(o){if(void 0===u)continue;o=!1}i.unshift(u)}i.length&&t.push(...i)},u.fastSplice=function(e,t){let r=t;for(;r{let d=u.compare(c,l,a,s);if(null!==d)return d;if(r.by&&(c=r.by.resolve(c,n,i),l=r.by.resolve(l,n,i)),d=u.compare(c,l,a,s),null!==d)return d;const f=typeof c;if(f!==typeof l)throw e.$_createError("array.sort.mismatching",t,null,n,i);if("number"!==f&&"string"!==f)throw e.$_createError("array.sort.unsupported",t,{type:f},n,i);return"number"===f?(c-l)*o:c{"use strict";const n=r(375),i=r(8068),o=r(8160),a=r(2036),s={isBool:function(e){return"boolean"==typeof e}};e.exports=i.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(e,t){let{schema:r}=t;if("boolean"!=typeof e){if("string"==typeof e){const t=r._flags.sensitive?e:e.toLowerCase();e="true"===t||"false"!==t&&e}return"boolean"!=typeof e&&(e=r.$_terms.truthy&&r.$_terms.truthy.has(e,null,null,!r._flags.sensitive)||(!r.$_terms.falsy||!r.$_terms.falsy.has(e,null,null,!r._flags.sensitive))&&e),{value:e}}},validate(e,t){let{error:r}=t;if("boolean"!=typeof e)return{value:e,errors:r("boolean.base")}},rules:{truthy:{method(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("sensitive",e)}}},cast:{number:{from:s.isBool,to:(e,t)=>e?1:0},string:{from:s.isBool,to:(e,t)=>e?"true":"false"}},manifest:{build:(e,t)=>(t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(e,t,r)=>{"use strict";const n=r(375),i=r(8068),o=r(8160),a=r(3328),s={isDate:function(e){return e instanceof Date}};e.exports=i.extend({type:"date",coerce:{from:["number","string"],method(e,t){let{schema:r}=t;return{value:s.parse(e,r._flags.format)||e}}},validate(e,t){let{schema:r,error:n,prefs:i}=t;if(e instanceof Date&&!isNaN(e.getTime()))return;const o=r._flags.format;return i.convert&&o&&"string"==typeof e?{value:e,errors:n("date.format",{format:o})}:{value:e,errors:n("date.base")}},rules:{compare:{method:!1,validate(e,t,r,n){let{date:i}=r,{name:a,operator:s,args:c}=n;const u="now"===i?Date.now():i.getTime();return o.compare(e.getTime(),u,s)?e:t.error("date."+a,{limit:c.date,value:e})},args:[{name:"date",ref:!0,normalize:e=>"now"===e?e:s.parse(e),assert:e=>null!==e,message:"must have a valid date format"}]},format:{method(e){return n(["iso","javascript","unix"].includes(e),"Unknown date format",e),this.$_setFlag("format",e)}},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{date:e},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{date:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{date:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{date:e},operator:">="})}},timestamp:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"javascript";return n(["javascript","unix"].includes(e),'"type" must be one of "javascript, unix"'),this.format(e)}}},cast:{number:{from:s.isDate,to:(e,t)=>e.getTime()},string:{from:s.isDate,to(e,t){let{prefs:r}=t;return a.date(e,r)}}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),s.parse=function(e,t){if(e instanceof Date)return e;if("string"!=typeof e&&(isNaN(e)||!isFinite(e)))return null;if(/^\s*$/.test(e))return null;if("iso"===t)return o.isIsoDate(e)?s.date(e.toString()):null;const r=e;if("string"==typeof e&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if("javascript"===t)return s.date(1*e);if("unix"===t)return s.date(1e3*e);if("string"==typeof r)return null}return s.date(e)},s.date=function(e){const t=new Date(e);return isNaN(t.getTime())?null:t}},390:(e,t,r)=>{"use strict";const n=r(375),i=r(7824);e.exports=i.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:e}})},validate(e,t,r){let{n:n}=r;return e.length===n?e:t.error("function.arity",{n:n})}},class:{method(){return this.$_addRule("class")},validate:(e,t)=>/^\s*class\s/.test(e.toString())?e:t.error("function.class",{value:e})},minArity:{method(e){return n(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:e}})},validate(e,t,r){let{n:n}=r;return e.length>=n?e:t.error("function.minArity",{n:n})}},maxArity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:e}})},validate(e,t,r){let{n:n}=r;return e.length<=n?e:t.error("function.maxArity",{n:n})}}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(e,t,r)=>{"use strict";const n=r(978),i=r(375),o=r(8571),a=r(3652),s=r(8068),c=r(8160),u=r(3292),l=r(6354),d=r(6133),f=r(3328),h={renameDefaults:{alias:!1,multiple:!1,override:!1}};e.exports=s.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(e,t)=>e.keys(t),validate(e,t){let{schema:r,error:n,state:i,prefs:o}=t;if(!e||typeof e!==r.$_property("typeof")||Array.isArray(e))return{value:e,errors:n("object.base",{type:r.$_property("typeof")})};if(!(r.$_terms.renames||r.$_terms.dependencies||r.$_terms.keys||r.$_terms.patterns||r.$_terms.externals))return;e=h.clone(e,o);const a=[];if(r.$_terms.renames&&!h.rename(r,e,i,o,a))return{value:e,errors:a};if(!r.$_terms.keys&&!r.$_terms.patterns&&!r.$_terms.dependencies)return{value:e,errors:a};const s=new Set(Object.keys(e));if(r.$_terms.keys){const t=[e,...i.ancestors];for(const n of r.$_terms.keys){const r=n.key,c=e[r];s.delete(r);const u=i.localize([...i.path,r],t,n),l=n.schema.$_validate(c,u,o);if(l.errors){if(o.abortEarly)return{value:e,errors:l.errors};void 0!==l.value&&(e[r]=l.value),a.push(...l.errors)}else"strip"===n.schema._flags.result||void 0===l.value&&void 0!==c?delete e[r]:void 0!==l.value&&(e[r]=l.value)}}if(s.size||r._flags._hasPatternMatch){const t=h.unknown(r,e,s,a,i,o);if(t)return t}if(r.$_terms.dependencies)for(const c of r.$_terms.dependencies){if(null!==c.key&&!1===h.isPresent(c.options)(c.key.resolve(e,i,o,null,{shadow:!1})))continue;const t=h.dependencies[c.rel](r,c,e,i,o);if(t){const n=r.$_createError(t.code,e,t.context,i,o);if(o.abortEarly)return{value:e,errors:n};a.push(n)}}return{value:e,errors:a}},rules:{and:{method(){for(var e=arguments.length,t=new Array(e),r=0;r!e.hasOwnProperty(t.key))):new h.Keys;for(const r in e)c.tryWithPath((()=>t.$_terms.keys.push({key:r,schema:this.$_compile(e[r])})),r)}else t.$_terms.keys=new h.Keys;else t.$_terms.keys=null;return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate(e,t,r,n){let{limit:i}=r,{name:o,operator:a,args:s}=n;return c.compare(Object.keys(e).length,i,a)?e:t.error("object."+o,{limit:s.limit,value:e})},args:[{name:"limit",ref:!0,assert:c.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},nand:{method(){for(var e=arguments.length,t=new Array(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};const n=e instanceof RegExp;n||(e=this.$_compile(e,{appendPath:!0})),i(void 0!==t,"Invalid rule"),c.assertOptions(r,["fallthrough","matches"]),n&&i(!e.flags.includes("g")&&!e.flags.includes("y"),"pattern should not use global or sticky mode"),t=this.$_compile(t,{appendPath:!0});const o=this.clone();o.$_terms.patterns=o.$_terms.patterns||[];const a={[n?"regex":"schema"]:e,rule:t};return r.matches&&(a.matches=this.$_compile(r.matches),"array"!==a.matches.type&&(a.matches=a.matches.$_root.array().items(a.matches)),o.$_mutateRegister(a.matches),o.$_setFlag("_hasPatternMatch",!0,{clone:!1})),r.fallthrough&&(a.fallthrough=!0),o.$_terms.patterns.push(a),o.$_mutateRegister(t),o}},ref:{method(){return this.$_addRule("ref")},validate:(e,t)=>d.isRef(e)?e:t.error("object.refType",{value:e})},regex:{method(){return this.$_addRule("regex")},validate:(e,t)=>e instanceof RegExp?e:t.error("object.regex",{value:e})},rename:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i("string"==typeof e||e instanceof RegExp,"Rename missing the from argument"),i("string"==typeof t||t instanceof f,"Invalid rename to argument"),i(t!==e,"Cannot rename key to same name:",e),c.assertOptions(r,["alias","ignoreUndefined","override","multiple"]);const o=this.clone();o.$_terms.renames=o.$_terms.renames||[];for(const n of o.$_terms.renames)i(n.from!==e,"Cannot rename the same key multiple times");return t instanceof f&&o.$_mutateRegister(t),o.$_terms.renames.push({from:e,to:t,options:n(h.renameDefaults,r)}),o}},schema:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return this.$_addRule({name:"schema",args:{type:e}})},validate(e,t,r){let{type:n}=r;return!c.isSchema(e)||"any"!==n&&e.type!==n?t.error("object.schema",{type:n}):e}},unknown:{method(e){return this.$_setFlag("unknown",!1!==e)}},with:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h.dependency(this,"with",e,t,r)}},without:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h.dependency(this,"without",e,t,r)}},xor:{method(){for(var e=arguments.length,t=new Array(e),r=0;rt.add(r,{after:r.schema.$_rootReferences(),group:r.key})),r.key);e.$_terms.keys=new h.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(const{rel:r,key:n=null,peers:i,options:o}of t.dependencies)e=h.dependency(e,r,n,i,o);if(t.patterns)for(const{regex:r,schema:n,rule:i,fallthrough:o,matches:a}of t.patterns)e=e.pattern(r||n,i,{fallthrough:o,matches:a});if(t.renames)for(const{from:r,to:n,options:i}of t.renames)e=e.rename(r,n,i);return e}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),h.clone=function(e,t){if("object"==typeof e){if(t.nonEnumerables)return o(e,{shallow:!0});const r=Object.create(Object.getPrototypeOf(e));return Object.assign(r,e),r}const r=function(){for(var t=arguments.length,r=new Array(t),n=0;n1&&"object"==typeof n[n.length-1]?n.pop():{}),c.assertOptions(o,["separator","isPresent"]),n=[].concat(n);const a=c.default(o.separator,"."),s=[];for(const c of n)i("string"==typeof c,t,"peers must be strings"),s.push(u.ref(c,{separator:a,ancestor:0,prefix:!1}));null!==r&&(r=u.ref(r,{separator:a,ancestor:0,prefix:!1}));const l=e.clone();return l.$_terms.dependencies=l.$_terms.dependencies||[],l.$_terms.dependencies.push(new h.Dependency(t,r,s,n,o)),l},h.dependencies={and(e,t,r,n,i){const o=[],a=[],s=t.peers.length,c=h.isPresent(t.options);for(const u of t.peers)!1===c(u.resolve(r,n,i,null,{shadow:!1}))?o.push(u.key):a.push(u.key);if(o.length!==s&&a.length!==s)return{code:"object.and",context:{present:a,presentWithLabels:h.keysToLabels(e,a),missing:o,missingWithLabels:h.keysToLabels(e,o)}}},nand(e,t,r,n,i){const o=[],a=h.isPresent(t.options);for(const u of t.peers)a(u.resolve(r,n,i,null,{shadow:!1}))&&o.push(u.key);if(o.length!==t.peers.length)return;const s=t.paths[0],c=t.paths.slice(1);return{code:"object.nand",context:{main:s,mainWithLabel:h.keysToLabels(e,s),peers:c,peersWithLabels:h.keysToLabels(e,c)}}},or(e,t,r,n,i){const o=h.isPresent(t.options);for(const a of t.peers)if(o(a.resolve(r,n,i,null,{shadow:!1})))return;return{code:"object.missing",context:{peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)}}},oxor(e,t,r,n,i){const o=[],a=h.isPresent(t.options);for(const c of t.peers)a(c.resolve(r,n,i,null,{shadow:!1}))&&o.push(c.key);if(!o.length||1===o.length)return;const s={peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)};return s.present=o,s.presentWithLabels=h.keysToLabels(e,o),{code:"object.oxor",context:s}},with(e,t,r,n,i){const o=h.isPresent(t.options);for(const a of t.peers)if(!1===o(a.resolve(r,n,i,null,{shadow:!1})))return{code:"object.with",context:{main:t.key.key,mainWithLabel:h.keysToLabels(e,t.key.key),peer:a.key,peerWithLabel:h.keysToLabels(e,a.key)}}},without(e,t,r,n,i){const o=h.isPresent(t.options);for(const a of t.peers)if(o(a.resolve(r,n,i,null,{shadow:!1})))return{code:"object.without",context:{main:t.key.key,mainWithLabel:h.keysToLabels(e,t.key.key),peer:a.key,peerWithLabel:h.keysToLabels(e,a.key)}}},xor(e,t,r,n,i){const o=[],a=h.isPresent(t.options);for(const c of t.peers)a(c.resolve(r,n,i,null,{shadow:!1}))&&o.push(c.key);if(1===o.length)return;const s={peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)};return 0===o.length?{code:"object.missing",context:s}:(s.present=o,s.presentWithLabels=h.keysToLabels(e,o),{code:"object.xor",context:s})}},h.keysToLabels=function(e,t){return Array.isArray(t)?t.map((t=>e.$_mapLabels(t))):e.$_mapLabels(t)},h.isPresent=function(e){return"function"==typeof e.isPresent?e.isPresent:e=>void 0!==e},h.rename=function(e,t,r,n,i){const o={};for(const a of e.$_terms.renames){const s=[],c="string"!=typeof a.from;if(c)for(const e in t){if(void 0===t[e]&&a.options.ignoreUndefined)continue;if(e===a.to)continue;const r=a.from.exec(e);r&&s.push({from:e,to:a.to,match:r})}else!Object.prototype.hasOwnProperty.call(t,a.from)||void 0===t[a.from]&&a.options.ignoreUndefined||s.push(a);for(const u of s){const s=u.from;let l=u.to;if(l instanceof f&&(l=l.render(t,r,n,u.match)),s!==l){if(!a.options.multiple&&o[l]&&(i.push(e.$_createError("object.rename.multiple",t,{from:s,to:l,pattern:c},r,n)),n.abortEarly))return!1;if(Object.prototype.hasOwnProperty.call(t,l)&&!a.options.override&&!o[l]&&(i.push(e.$_createError("object.rename.override",t,{from:s,to:l,pattern:c},r,n)),n.abortEarly))return!1;void 0===t[s]?delete t[l]:t[l]=t[s],o[l]=!0,a.options.alias||delete t[s]}}}return!0},h.unknown=function(e,t,r,n,i,o){if(e.$_terms.patterns){let a=!1;const s=e.$_terms.patterns.map((e=>{if(e.matches)return a=!0,[]})),c=[t,...i.ancestors];for(const u of r){const a=t[u],l=[...i.path,u];for(let d=0;d{"use strict";const n=r(375),i=r(8068),o=r(8160),a=r(3292),s=r(6354),c={};e.exports=i.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(e,t)=>e.ref(t),validate(e,t){let{schema:r,state:i,prefs:o}=t;n(r.$_terms.link,"Uninitialized link schema");const a=c.generate(r,e,i,o),s=r.$_terms.link[0].ref;return a.$_validate(e,i.nest(a,`link:${s.display}:${a.type}`),o)},generate:(e,t,r,n)=>c.generate(e,t,r,n),rules:{ref:{method(e){n(!this.$_terms.link,"Cannot reinitialize schema"),e=a.ref(e),n("value"===e.type||"local"===e.type,"Invalid reference type:",e.type),n("local"===e.type||"root"===e.ancestor||e.ancestor>0,"Link cannot reference itself");const t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("relative",e)}}},overrides:{concat(e){n(this.$_terms.link,"Uninitialized link schema"),n(o.isSchema(e),"Invalid schema object"),n("link"!==e.type,"Cannot merge type link with another link");const t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build:(e,t)=>(n(t.link,"Invalid link description missing link"),e.ref(t.link))}}),c.generate=function(e,t,r,n){let i=r.mainstay.links.get(e);if(i)return i._generate(t,r,n).schema;const o=e.$_terms.link[0].ref,{perspective:a,path:s}=c.perspective(o,r);c.assert(a,"which is outside of schema boundaries",o,e,r,n);try{i=s.length?a.$_reach(s):a}catch(t){c.assert(!1,"to non-existing schema",o,e,r,n)}return c.assert("link"!==i.type,"which is another link",o,e,r,n),e._flags.relative||r.mainstay.links.set(e,i),i._generate(t,r,n).schema},c.perspective=function(e,t){if("local"===e.type){for(const{schema:r,key:n}of t.schemas){if((r._flags.id||n)===e.path[0])return{perspective:r,path:e.path.slice(1)};if(r.$_terms.shared)for(const t of r.$_terms.shared)if(t._flags.id===e.path[0])return{perspective:t,path:e.path.slice(1)}}return{perspective:null,path:null}}return"root"===e.ancestor?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},c.assert=function(e,t,r,i,o,a){e||n(!1,`"${s.label(i._flags,o,a)}" contains link reference "${r.display}" ${t}`)}},3832:(e,t,r)=>{"use strict";const n=r(375),i=r(8068),o=r(8160),a={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/};e.exports=i.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(e,t){let{schema:r,error:n}=t;if(!e.match(a.numberRx))return;e=e.trim();const i={value:parseFloat(e)};if(0===i.value&&(i.value=0),!r._flags.unsafe)if(e.match(/e/i)){if(a.extractSignificantDigits(e)!==a.extractSignificantDigits(String(i.value)))return i.errors=n("number.unsafe"),i}else{const t=i.value.toString();if(t.match(/e/i))return i;if(t!==a.normalizeDecimal(e))return i.errors=n("number.unsafe"),i}return i}},validate(e,t){let{schema:r,error:n,prefs:i}=t;if(e===1/0||e===-1/0)return{value:e,errors:n("number.infinity")};if(!o.isNumber(e))return{value:e,errors:n("number.base")};const a={value:e};if(i.convert){const e=r.$_getRule("precision");if(e){const t=Math.pow(10,e.args.limit);a.value=Math.round(a.value*t)/t}}return 0===a.value&&(a.value=0),!r._flags.unsafe&&(e>Number.MAX_SAFE_INTEGER||e"})}},integer:{method(){return this.$_addRule("integer")},validate:(e,t)=>Math.trunc(e)-e==0?e:t.error("number.integer")},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{limit:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{limit:e},operator:">="})}},multiple:{method(e){return this.$_addRule({name:"multiple",args:{base:e}})},validate(e,t,r,n){let{base:i}=r;return e*(1/i)%1==0?e:t.error("number.multiple",{multiple:n.args.base,value:e})},args:[{name:"base",ref:!0,assert:e=>"number"==typeof e&&isFinite(e)&&e>0,message:"must be a positive number"}],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(e,t)=>Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(e){return n(Number.isSafeInteger(e),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:e}})},validate(e,t,r){let{limit:n}=r;const i=e.toString().match(a.precisionRx);return Math.max((i[1]?i[1].length:0)-(i[2]?parseInt(i[2],10):0),0)<=n?e:t.error("number.precision",{limit:n,value:e})},convert:!0},sign:{method(e){return n(["negative","positive"].includes(e),"Invalid sign",e),this.$_addRule({name:"sign",args:{sign:e}})},validate(e,t,r){let{sign:n}=r;return"negative"===n&&e<0||"positive"===n&&e>0?e:t.error(`number.${n}`)}},unsafe:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("unsafe",e)}}},cast:{string:{from:e=>"number"==typeof e,to:(e,t)=>e.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),a.extractSignificantDigits=function(e){return e.replace(a.exponentialPartRegex,"").replace(a.dotRegex,"").replace(a.trailingZerosRegex,"").replace(a.leadingSignAndZerosRegex,"")},a.normalizeDecimal=function(e){return(e=e.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&e.endsWith("0")&&(e=e.replace(/0+$/,"")),"-0"===e?"0":e}},8966:(e,t,r)=>{"use strict";const n=r(7824);e.exports=n.extend({type:"object",cast:{map:{from:e=>e&&"object"==typeof e,to:(e,t)=>new Map(Object.entries(e))}}})},7417:(e,t,r)=>{"use strict";const n=r(375),i=r(5380),o=r(1745),a=r(9959),s=r(6064),c=r(9926),u=r(5752),l=r(8068),d=r(8160),f={tlds:c instanceof Set&&{tlds:{allow:c,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:/^[a-f0-9]+$/i,ipRegex:a.regex({cidr:"forbidden"}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};e.exports=l.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(e,t){let{schema:r,state:n,prefs:i}=t;const o=r.$_getRule("normalize");o&&(e=e.normalize(o.args.form));const a=r.$_getRule("case");a&&(e="upper"===a.args.direction?e.toLocaleUpperCase():e.toLocaleLowerCase());const s=r.$_getRule("trim");if(s&&s.args.enabled&&(e=e.trim()),r.$_terms.replacements)for(const u of r.$_terms.replacements)e=e.replace(u.pattern,u.replacement);const c=r.$_getRule("hex");if(c&&c.args.options.byteAligned&&e.length%2!=0&&(e=`0${e}`),r.$_getRule("isoDate")){const t=f.isoDate(e);t&&(e=t)}if(r._flags.truncate){const t=r.$_getRule("max");if(t){let o=t.args.limit;if(d.isResolvable(o)&&(o=o.resolve(e,n,i),!d.limit(o)))return{value:e,errors:r.$_createError("any.ref",o,{ref:t.args.limit,arg:"limit",reason:"must be a positive integer"},n,i)};e=e.slice(0,o)}}return{value:e}}},validate(e,t){let{schema:r,error:n}=t;if("string"!=typeof e)return{value:e,errors:n("string.base")};if(""===e){const t=r.$_getRule("min");if(t&&0===t.args.limit)return;return{value:e,errors:n("string.empty")}}},rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(e,t)=>/^[a-zA-Z0-9]+$/.test(e)?e:t.error("string.alphanum")},base64:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.assertOptions(e,["paddingRequired","urlSafe"]),e={urlSafe:!1,paddingRequired:!0,...e},n("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),n("boolean"==typeof e.urlSafe,"urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:e}})},validate(e,t,r){let{options:n}=r;return f.base64Regex[n.paddingRequired][n.urlSafe].test(e)?e:t.error("string.base64")}},case:{method(e){return n(["lower","upper"].includes(e),"Invalid case:",e),this.$_addRule({name:"case",args:{direction:e}})},validate(e,t,r){let{direction:n}=r;return"lower"===n&&e===e.toLocaleLowerCase()||"upper"===n&&e===e.toLocaleUpperCase()?e:t.error(`string.${n}case`)},convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(e,t){let r=e.length,n=0,i=1;for(;r--;){const t=e.charAt(r)*i;n+=t-9*(t>9),i^=3}return n>0&&n%10==0?e:t.error("string.creditCard")}},dataUri:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.assertOptions(e,["paddingRequired"]),e={paddingRequired:!0,...e},n("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:e}})},validate(e,t,r){let{options:n}=r;const i=e.match(f.dataUriRegex);if(i){if(!i[2])return e;if("base64"!==i[2])return e;if(f.base64Regex[n.paddingRequired].false.test(i[3]))return e}return t.error("string.dataUri")}},domain:{method(e){e&&d.assertOptions(e,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const t=f.addressOptions(e);return this.$_addRule({name:"domain",args:{options:e},address:t})},validate(e,t,r,n){let{address:o}=n;return i.isValid(e,o)?e:t.error("string.domain")}},email:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["allowFullyQualified","allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),n(void 0===e.multiple||"boolean"==typeof e.multiple,"multiple option must be an boolean");const t=f.addressOptions(e),r=new RegExp(`\\s*[${e.separator?s(e.separator):","}]\\s*`);return this.$_addRule({name:"email",args:{options:e},regex:r,address:t})},validate(e,t,r,n){let{options:i}=r,{regex:a,address:s}=n;const c=i.multiple?e.split(a):[e],u=[];for(const l of c)o.isValid(l,s)||u.push(l);return u.length?t.error("string.email",{value:e,invalids:u}):e}},guid:{alias:"uuid",method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["version","separator"]);let t="";if(e.version){const r=[].concat(e.version);n(r.length>=1,"version must have at least 1 valid version specified");const i=new Set;for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:{};return d.assertOptions(e,["byteAligned"]),e={byteAligned:!1,...e},n("boolean"==typeof e.byteAligned,"byteAligned must be boolean"),this.$_addRule({name:"hex",args:{options:e}})},validate(e,t,r){let{options:n}=r;return f.hexRegex.test(e)?n.byteAligned&&e.length%2!=0?t.error("string.hexAlign"):e:t.error("string.hex")}},hostname:{method(){return this.$_addRule("hostname")},validate:(e,t)=>i.isValid(e,{minDomainSegments:1})||f.ipRegex.test(e)?e:t.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["cidr","version"]);const{cidr:t,versions:r,regex:n}=a.regex(e),i=e.version?r:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:t,version:i}},regex:n})},validate(e,t,r,n){let{options:i}=r,{regex:o}=n;return o.test(e)?e:i.version?t.error("string.ipVersion",{value:e,cidr:i.cidr,version:i.version}):t.error("string.ip",{value:e,cidr:i.cidr})}},isoDate:{method(){return this.$_addRule("isoDate")},validate(e,t){let{error:r}=t;return f.isoDate(e)?e:r("string.isoDate")}},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(e,t)=>f.isoDurationRegex.test(e)?e:t.error("string.isoDuration")},length:{method(e,t){return f.length(this,"length",e,"=",t)},validate(e,t,r,n){let{limit:i,encoding:o}=r,{name:a,operator:s,args:c}=n;const u=!o&&e.length;return d.compare(u,i,s)?e:t.error("string."+a,{limit:c.limit,value:e,encoding:o})},args:[{name:"limit",ref:!0,assert:d.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(e,t){return f.length(this,"max",e,"<=",t)},args:["limit","encoding"]},min:{method(e,t){return f.length(this,"min",e,">=",t)},args:["limit","encoding"]},normalize:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"NFC";return n(f.normalizationForms.includes(e),"normalization form must be one of "+f.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:e}})},validate(e,t,r){let{error:n}=t,{form:i}=r;return e===e.normalize(i)?e:n("string.normalize",{value:e,form:i})},convert:!0},pattern:{alias:"regex",method(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(e instanceof RegExp,"regex must be a RegExp"),n(!e.flags.includes("g")&&!e.flags.includes("y"),"regex should not use global or sticky mode"),"string"==typeof t&&(t={name:t}),d.assertOptions(t,["invert","name"]);const r=["string.pattern",t.invert?".invert":"",t.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:e,options:t},errorCode:r})},validate(e,t,r,n){let{regex:i,options:o}=r,{errorCode:a}=n;return i.test(e)^o.invert?e:t.error(a,{name:o.name,regex:i,value:e})},args:["regex","options"],multi:!0},replace:{method(e,t){"string"==typeof e&&(e=new RegExp(s(e),"g")),n(e instanceof RegExp,"pattern must be a RegExp"),n("string"==typeof t,"replacement must be a String");const r=this.clone();return r.$_terms.replacements||(r.$_terms.replacements=[]),r.$_terms.replacements.push({pattern:e,replacement:t}),r}},token:{method(){return this.$_addRule("token")},validate:(e,t)=>/^\w+$/.test(e)?e:t.error("string.token")},trim:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:e}})},validate(e,t,r){let{enabled:n}=r;return n&&e!==e.trim()?t.error("string.trim"):e},convert:!0},truncate:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("truncate",e)}},uppercase:{method(){return this.case("upper")}},uri:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.assertOptions(e,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),e.domain&&d.assertOptions(e.domain,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:t,scheme:r}=u.regex(e),n=e.domain?f.addressOptions(e.domain):null;return this.$_addRule({name:"uri",args:{options:e},regex:t,domain:n,scheme:r})},validate(e,t,r,n){let{options:o}=r,{regex:a,domain:s,scheme:c}=n;if(["http:/","https:/"].includes(e))return t.error("string.uri");const u=a.exec(e);if(u){const r=u[1]||u[2];return!s||o.allowRelative&&!r||i.isValid(r,s)?e:t.error("string.domain",{value:r})}return o.relativeOnly?t.error("string.uriRelativeOnly"):o.scheme?t.error("string.uriCustomScheme",{scheme:c,value:e}):t.error("string.uri")}}},manifest:{build(e,t){if(t.replacements)for(const{pattern:r,replacement:n}of t.replacements)e=e.replace(r,n);return e}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),f.addressOptions=function(e){if(!e)return e;if(n(void 0===e.minDomainSegments||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,"minDomainSegments must be a positive integer"),n(void 0===e.maxDomainSegments||Number.isSafeInteger(e.maxDomainSegments)&&e.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),!1===e.tlds)return e;if(!0===e.tlds||void 0===e.tlds)return n(f.tlds,"Built-in TLD list disabled"),Object.assign({},e,f.tlds);n("object"==typeof e.tlds,"tlds must be true, false, or an object");const t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),n(e.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),n(!e.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),f.validateTlds(e.tlds.deny,"tlds.deny"),e;const r=e.tlds.allow;return r?!0===r?(n(f.tlds,"Built-in TLD list disabled"),Object.assign({},e,f.tlds)):(Array.isArray(r)&&(e=Object.assign({},e,{tlds:{allow:new Set(r)}})),n(e.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),f.validateTlds(e.tlds.allow,"tlds.allow"),e):e},f.validateTlds=function(e,t){for(const r of e)n(i.isValid(r,{minDomainSegments:1,maxDomainSegments:1}),`${t} must contain valid top level domain names`)},f.isoDate=function(e){if(!d.isIsoDate(e))return null;/.*T.*[+-]\d\d$/.test(e)&&(e+="00");const t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},f.length=function(e,t,r,i,o){return n(!o||!1,"Invalid encoding:",o),e.$_addRule({name:t,method:"length",args:{limit:r,encoding:o},operator:i})}},8826:(e,t,r)=>{"use strict";const n=r(375),i=r(8068),o={};o.Map=class extends Map{slice(){return new o.Map(this)}},e.exports=i.extend({type:"symbol",terms:{map:{init:new o.Map}},coerce:{method(e,t){let{schema:r,error:n}=t;const i=r.$_terms.map.get(e);return i&&(e=i),r._flags.only&&"symbol"!=typeof e?{value:e,errors:n("symbol.map",{map:r.$_terms.map})}:{value:e}}},validate(e,t){let{error:r}=t;if("symbol"!=typeof e)return{value:e,errors:r("symbol.base")}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&"object"==typeof e&&(e=Object.entries(e)),n(e&&e[Symbol.iterator],"Iterable must be an iterable or object");const t=this.clone(),r=[];for(const i of e){n(i&&i[Symbol.iterator],"Entry must be an iterable");const[e,o]=i;n("object"!=typeof e&&"function"!=typeof e&&"symbol"!=typeof e,"Key must not be of type object, function, or Symbol"),n("symbol"==typeof o,"Value must be a Symbol"),t.$_terms.map.set(e,o),r.push(o)}return t.valid(...r)}}},manifest:{build:(e,t)=>(t.map&&(e=e.map(t.map)),e)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(738),a=r(9621),s=r(8160),c=r(6354),u=r(493),l={result:Symbol("result")};t.entry=function(e,t,r){let i=s.defaults;r&&(n(void 0===r.warnings,"Cannot override warnings preference in synchronous validation"),n(void 0===r.artifacts,"Cannot override artifacts preference in synchronous validation"),i=s.preferences(s.defaults,r));const o=l.entry(e,t,i);n(!o.mainstay.externals.length,"Schema with external rules must use validateAsync()");const a={value:o.value};return o.error&&(a.error=o.error),o.mainstay.warnings.length&&(a.warning=c.details(o.mainstay.warnings)),o.mainstay.debug&&(a.debug=o.mainstay.debug),o.mainstay.artifacts&&(a.artifacts=o.mainstay.artifacts),a},t.entryAsync=async function(e,t,r){let n=s.defaults;r&&(n=s.preferences(s.defaults,r));const i=l.entry(e,t,n),o=i.mainstay;if(i.error)throw o.debug&&(i.error.debug=o.debug),i.error;if(o.externals.length){let t=i.value;const u=[];for(const i of o.externals){const d=i.state.path,f="link"===i.schema.type?o.links.get(i.schema):null;let h,p,g=t;const m=d.length?[t]:[],y=d.length?a(e,d):e;if(d.length){h=d[d.length-1];let e=t;for(const t of d.slice(0,-1))e=e[t],m.unshift(e);p=m[0],g=p[h]}try{const e=(e,t)=>(f||i.schema).$_createError(e,g,t,i.state,n),a=await i.method(g,{schema:i.schema,linked:f,state:i.state,prefs:r,original:y,error:e,errorsArray:l.errorsArray,warn:(e,t)=>o.warnings.push((f||i.schema).$_createError(e,g,t,i.state,n)),message:(e,t)=>(f||i.schema).$_createError("external",g,t,i.state,n,{messages:e})});if(void 0===a||a===g)continue;if(a instanceof c.Report){if(o.tracer.log(i.schema,i.state,"rule","external","error"),u.push(a),n.abortEarly)break;continue}if(Array.isArray(a)&&a[s.symbols.errors]){if(o.tracer.log(i.schema,i.state,"rule","external","error"),u.push(...a),n.abortEarly)break;continue}p?(o.tracer.value(i.state,"rule",g,a,"external"),p[h]=a):(o.tracer.value(i.state,"rule",t,a,"external"),t=a)}catch(e){throw n.errors.label&&(e.message+=` (${i.label})`),e}}if(i.value=t,u.length)throw i.error=c.process(u,e,n),o.debug&&(i.error.debug=o.debug),i.error}if(!n.warnings&&!n.debug&&!n.artifacts)return i.value;const u={value:i.value};return o.warnings.length&&(u.warning=c.details(o.warnings)),o.debug&&(u.debug=o.debug),o.artifacts&&(u.artifacts=o.artifacts),u},l.Mainstay=class{constructor(e,t,r){this.externals=[],this.warnings=[],this.tracer=e,this.debug=t,this.links=r,this.shadow=null,this.artifacts=null,this._snapshots=[]}snapshot(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}restore(){const e=this._snapshots.pop();this.externals=e.externals,this.warnings=e.warnings}},l.entry=function(e,r,n){const{tracer:i,cleanup:o}=l.tracer(r,n),a=n.debug?[]:null,s=r._ids._schemaChain?new Map:null,d=new l.Mainstay(i,a,s),f=r._ids._schemaChain?[{schema:r}]:null,h=new u([],[],{mainstay:d,schemas:f}),p=t.validate(e,r,h,n);o&&r.$_root.untrace();const g=c.process(p.errors,e,n);return{value:p.value,error:g,mainstay:d}},l.tracer=function(e,t){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:t.debug?(n(e.$_root.trace,"Debug mode not supported"),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:l.ignore}},t.validate=function(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t.$_terms.whens&&(t=t._generate(e,r,n).schema),t._preferences&&(n=l.prefs(t,n)),t._cache&&n.cache){const n=t._cache.get(e);if(r.mainstay.tracer.debug(r,"validate","cached",!!n),n)return n}const o=(i,o,a)=>t.$_createError(i,e,o,a||r,n),a={original:e,prefs:n,schema:t,state:r,error:o,errorsArray:l.errorsArray,warn:(e,t,n)=>r.mainstay.warnings.push(o(e,t,n)),message:(i,o)=>t.$_createError("custom",e,o,r,n,{messages:i})};r.mainstay.tracer.entry(t,r);const c=t._definition;if(c.prepare&&void 0!==e&&n.convert){const t=c.prepare(e,a);if(t){if(r.mainstay.tracer.value(r,"prepare",e,t.value),t.errors)return l.finalize(t.value,[].concat(t.errors),a);e=t.value}}if(c.coerce&&void 0!==e&&n.convert&&(!c.coerce.from||c.coerce.from.includes(typeof e))){const t=c.coerce.method(e,a);if(t){if(r.mainstay.tracer.value(r,"coerced",e,t.value),t.errors)return l.finalize(t.value,[].concat(t.errors),a);e=t.value}}const u=t._flags.empty;u&&u.$_match(l.trim(e,t),r.nest(u),s.defaults)&&(r.mainstay.tracer.value(r,"empty",e,void 0),e=void 0);const d=i.presence||t._flags.presence||(t._flags._endedSwitch?null:n.presence);if(void 0===e){if("forbidden"===d)return l.finalize(e,null,a);if("required"===d)return l.finalize(e,[t.$_createError("any.required",e,null,r,n)],a);if("optional"===d){if(t._flags.default!==s.symbols.deepDefault)return l.finalize(e,null,a);r.mainstay.tracer.value(r,"default",e,{}),e={}}}else if("forbidden"===d)return l.finalize(e,[t.$_createError("any.unknown",e,null,r,n)],a);const f=[];if(t._valids){const i=t._valids.get(e,r,n,t._flags.insensitive);if(i)return n.convert&&(r.mainstay.tracer.value(r,"valids",e,i.value),e=i.value),r.mainstay.tracer.filter(t,r,"valid",i),l.finalize(e,null,a);if(t._flags.only){const i=t.$_createError("any.only",e,{valids:t._valids.values({display:!0})},r,n);if(n.abortEarly)return l.finalize(e,[i],a);f.push(i)}}if(t._invalids){const i=t._invalids.get(e,r,n,t._flags.insensitive);if(i){r.mainstay.tracer.filter(t,r,"invalid",i);const o=t.$_createError("any.invalid",e,{invalids:t._invalids.values({display:!0})},r,n);if(n.abortEarly)return l.finalize(e,[o],a);f.push(o)}}if(c.validate){const t=c.validate(e,a);if(t&&(r.mainstay.tracer.value(r,"base",e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return f.push(t.errors),l.finalize(e,f,a);if(t.errors.length)return f.push(...t.errors),l.finalize(e,f,a)}}return t._rules.length?l.rules(e,f,a):l.finalize(e,f,a)},l.rules=function(e,t,r){const{schema:n,state:i,prefs:o}=r;for(const a of n._rules){const c=n._definition.rules[a.method];if(c.convert&&o.convert){i.mainstay.tracer.log(n,i,"rule",a.name,"full");continue}let u,d=a.args;if(a._resolve.length){d=Object.assign({},d);for(const t of a._resolve){const r=c.argsByName.get(t),a=d[t].resolve(e,i,o),l=r.normalize?r.normalize(a):a,f=s.validateArg(l,null,r);if(f){u=n.$_createError("any.ref",a,{arg:t,ref:d[t],reason:f},i,o);break}d[t]=l}}u=u||c.validate(e,r,d,a);const f=l.rule(u,a);if(f.errors){if(i.mainstay.tracer.log(n,i,"rule",a.name,"error"),a.warn){i.mainstay.warnings.push(...f.errors);continue}if(o.abortEarly)return l.finalize(e,f.errors,r);t.push(...f.errors)}else i.mainstay.tracer.log(n,i,"rule",a.name,"pass"),i.mainstay.tracer.value(i,"rule",e,f.value,a.name),e=f.value}return l.finalize(e,t,r)},l.rule=function(e,t){return e instanceof c.Report?(l.error(e,t),{errors:[e],value:null}):Array.isArray(e)&&e[s.symbols.errors]?(e.forEach((e=>l.error(e,t))),{errors:e,value:null}):{errors:null,value:e}},l.error=function(e,t){return t.message&&e._setTemplate(t.message),e},l.finalize=function(e,t,r){t=t||[];const{schema:i,state:o,prefs:a}=r;if(t.length){const n=l.default("failover",void 0,t,r);void 0!==n&&(o.mainstay.tracer.value(o,"failover",e,n),e=n,t=[])}if(t.length&&i._flags.error)if("function"==typeof i._flags.error){t=i._flags.error(t),Array.isArray(t)||(t=[t]);for(const e of t)n(e instanceof Error||e instanceof c.Report,"error() must return an Error object")}else t=[i._flags.error];if(void 0===e){const n=l.default("default",e,t,r);o.mainstay.tracer.value(o,"default",e,n),e=n}if(i._flags.cast&&void 0!==e){const t=i._definition.cast[i._flags.cast];if(t.from(e)){const n=t.to(e,r);o.mainstay.tracer.value(o,"cast",e,n,i._flags.cast),e=n}}if(i.$_terms.externals&&a.externals&&!1!==a._externals)for(const{method:n}of i.$_terms.externals)o.mainstay.externals.push({method:n,schema:i,state:o,label:c.label(i._flags,o,a)});const s={value:e,errors:t.length?t:null};return i._flags.result&&(s.value="strip"===i._flags.result?void 0:r.original,o.mainstay.tracer.value(o,i._flags.result,e,s.value),o.shadow(e,i._flags.result)),i._cache&&!1!==a.cache&&!i._refs.length&&i._cache.set(r.original,s),void 0===e||s.errors||void 0===i._flags.artifact||(o.mainstay.artifacts=o.mainstay.artifacts||new Map,o.mainstay.artifacts.has(i._flags.artifact)||o.mainstay.artifacts.set(i._flags.artifact,[]),o.mainstay.artifacts.get(i._flags.artifact).push(o.path)),s},l.prefs=function(e,t){const r=t===s.defaults;return r&&e._preferences[s.symbols.prefs]?e._preferences[s.symbols.prefs]:(t=s.preferences(t,e._preferences),r&&(e._preferences[s.symbols.prefs]=t),t)},l.default=function(e,t,r,n){const{schema:o,state:a,prefs:c}=n,u=o._flags[e];if(c.noDefaults||void 0===u)return t;if(a.mainstay.tracer.log(o,a,"rule",e,"full"),!u)return u;if("function"==typeof u){const s=u.length?[i(a.ancestors[0]),n]:[];try{return u(...s)}catch(t){return void r.push(o.$_createError(`any.${e}`,null,{error:t},a,c))}}return"object"!=typeof u?u:u[s.symbols.literal]?u.literal:s.isResolvable(u)?u.resolve(t,a,c):i(u)},l.trim=function(e,t){if("string"!=typeof e)return e;const r=t.$_getRule("trim");return r&&r.args.enabled?e.trim():e},l.ignore={active:!1,debug:o,entry:o,filter:o,log:o,resolve:o,value:o},l.errorsArray=function(){const e=[];return e[s.symbols.errors]=!0,e}},2036:(e,t,r)=>{"use strict";const n=r(375),i=r(9474),o=r(8160),a={};e.exports=a.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=a.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){o.isResolvable(e)?this._refs.has(e)||(this._refs.add(e),t&&t.register(e)):this.has(e,null,null,!1)||(this._values.add(e),"string"==typeof e&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,r){if(e=e||new a.Values,t){if(t._override)return t.clone();for(const r of[...t._values,...t._refs])e.add(r)}if(r)for(const n of[...r._values,...r._refs])e.remove(n);return e.length?e:null}remove(e){o.isResolvable(e)?this._refs.delete(e):(this._values.delete(e),"string"==typeof e&&this._lowercase.delete(e.toLowerCase()))}has(e,t,r,n){return!!this.get(e,t,r,n)}get(e,t,r,n){if(!this.length)return!1;if(this._values.has(e))return{value:e};if("string"==typeof e&&e&&n){const t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&"object"!=typeof e)return!1;if("object"==typeof e)for(const o of this._values)if(i(o,e))return{value:o};if(t)for(const o of this._refs){const a=o.resolve(e,t,r,null,{in:!0});if(void 0===a)continue;const s=o.in&&"object"==typeof a?Array.isArray(a)?a:Object.keys(a):[a];for(const t of s)if(typeof t==typeof e)if(n&&e&&"string"==typeof e){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:o}}else if(i(t,e))return{value:t,ref:o}}return!1}override(){this._override=!0}values(e){if(e&&e.display){const e=[];for(const t of[...this._values,...this._refs])void 0!==t&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){const e=new a.Values(this._values,this._refs);return e._override=this._override,e}concat(e){n(!e._override,"Cannot concat override set of values");const t=new a.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){const e=[];this._override&&e.push({override:!0});for(const t of this._values.values())e.push(t&&"object"==typeof t?{value:t}:t);for(const t of this._refs.values())e.push(t.describe());return e}},a.Values.prototype[o.symbols.values]=!0,a.Values.prototype.slice=a.Values.prototype.clone,a.lowercases=function(e){const t=new Map;if(e)for(const r of e)"string"==typeof r&&t.set(r.toLowerCase(),r);return t}},978:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(1687),a=r(9621),s={};e.exports=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n(e&&"object"==typeof e,"Invalid defaults value: must be an object"),n(!t||!0===t||"object"==typeof t,"Invalid source value: must be true, falsy or an object"),n("object"==typeof r,"Invalid options: must be an object"),!t)return null;if(r.shallow)return s.applyToDefaultsWithShallow(e,t,r);const a=i(e);if(!0===t)return a;const c=void 0!==r.nullOverride&&r.nullOverride;return o(a,t,{nullOverride:c,mergeArrays:!1})},s.applyToDefaultsWithShallow=function(e,t,r){const c=r.shallow;n(Array.isArray(c),"Invalid keys");const u=new Map,l=!0===t?null:new Set;for(let n of c){n=Array.isArray(n)?n:n.split(".");const r=a(e,n);r&&"object"==typeof r?u.set(r,l&&a(t,n)||r):l&&l.add(n)}const d=i(e,{},u);if(!l)return d;for(const n of l)s.reachCopy(d,t,n);const f=void 0!==r.nullOverride&&r.nullOverride;return o(d,t,{nullOverride:f,mergeArrays:!1})},s.reachCopy=function(e,t,r){for(const o of r){if(!(o in t))return;const e=t[o];if("object"!=typeof e||null===e)return;t=e}const n=t;let i=e;for(let o=0;o{"use strict";const n=r(7916);e.exports=function(e){if(!e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i{"use strict";const n=r(9621),i=r(4277),o=r(7043),a={needsProtoHack:new Set([i.set,i.map,i.weakSet,i.weakMap])};e.exports=a.clone=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("object"!=typeof e||null===e)return e;let n=a.clone,s=r;if(t.shallow){if(!0!==t.shallow)return a.cloneWithShallow(e,t);n=e=>e}else if(s){const t=s.get(e);if(t)return t}else s=new Map;const c=i.getInternalProto(e);if(c===i.buffer)return!1;if(c===i.date)return new Date(e.getTime());if(c===i.regex)return new RegExp(e);const u=a.base(e,c,t);if(u===e)return e;if(s&&s.set(e,u),c===i.set)for(const i of e)u.add(n(i,t,s));else if(c===i.map)for(const[i,o]of e)u.set(i,n(o,t,s));const l=o.keys(e,t);for(const o of l){if("__proto__"===o)continue;if(c===i.array&&"length"===o){u.length=e.length;continue}const r=Object.getOwnPropertyDescriptor(e,o);r?r.get||r.set?Object.defineProperty(u,o,r):r.enumerable?u[o]=n(e[o],t,s):Object.defineProperty(u,o,{enumerable:!1,writable:!0,configurable:!0,value:n(e[o],t,s)}):Object.defineProperty(u,o,{enumerable:!0,writable:!0,configurable:!0,value:n(e[o],t,s)})}return u},a.cloneWithShallow=function(e,t){const r=t.shallow;(t=Object.assign({},t)).shallow=!1;const i=new Map;for(const o of r){const t=n(e,o);"object"!=typeof t&&"function"!=typeof t||i.set(t,t)}return a.clone(e,t,i)},a.base=function(e,t,r){if(!1===r.prototype)return a.needsProtoHack.has(t)?new t.constructor:t===i.array?[]:{};const n=Object.getPrototypeOf(e);if(n&&n.isImmutable)return e;if(t===i.array){const e=[];return n!==t&&Object.setPrototypeOf(e,n),e}if(a.needsProtoHack.has(t)){const e=new n.constructor;return n!==t&&Object.setPrototypeOf(e,n),e}return Object.create(n)}},9474:(e,t,r)=>{"use strict";const n=r(4277),i={mismatched:null};e.exports=function(e,t,r){return r=Object.assign({prototype:!0},r),!!i.isDeepEqual(e,t,r,[])},i.isDeepEqual=function(e,t,r,o){if(e===t)return 0!==e||1/e==1/t;const a=typeof e;if(a!==typeof t)return!1;if(null===e||null===t)return!1;if("function"===a){if(!r.deepFunction||e.toString()!==t.toString())return!1}else if("object"!==a)return e!=e&&t!=t;const s=i.getSharedType(e,t,!!r.prototype);switch(s){case n.buffer:return!1;case n.promise:return e===t;case n.regex:return e.toString()===t.toString();case i.mismatched:return!1}for(let n=o.length-1;n>=0;--n)if(o[n].isSame(e,t))return!0;o.push(new i.SeenEntry(e,t));try{return!!i.isDeepEqualObj(s,e,t,r,o)}finally{o.pop()}},i.getSharedType=function(e,t,r){if(r)return Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?i.mismatched:n.getInternalProto(e);const o=n.getInternalProto(e);return o!==n.getInternalProto(t)?i.mismatched:o},i.valueOf=function(e){const t=e.valueOf;if(void 0===t)return e;try{return t.call(e)}catch(e){return e}},i.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},i.isSetSimpleEqual=function(e,t){for(const r of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,r))return!1;return!0},i.isDeepEqualObj=function(e,t,r,o,a){const{isDeepEqual:s,valueOf:c,hasOwnEnumerableProperty:u}=i,{keys:l,getOwnPropertySymbols:d}=Object;if(e===n.array){if(!o.part){if(t.length!==r.length)return!1;for(let e=0;e{"use strict";const n=r(8761);e.exports=class extends Error{constructor(e){super(e.filter((e=>""!==e)).map((e=>"string"==typeof e?e:e instanceof Error?e.message:n(e))).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}},5277:e=>{"use strict";const t={};e.exports=function(e){if(!e)return"";let r="";for(let n=0;n=256?"&#"+e+";":`&#x${e.toString(16).padStart(2,"0")};`)},t.isSafe=function(e){return t.safeCharCodes.has(e)},t.namedHtml=new Map([[38,"&"],[60,"<"],[62,">"],[34,"""],[160," "],[162,"¢"],[163,"£"],[164,"¤"],[169,"©"],[174,"®"]]),t.safeCharCodes=function(){const e=new Set;for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&e.add(t);return e}()},6064:e=>{"use strict";e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:e=>{"use strict";e.exports=function(){}},1687:(e,t,r)=>{"use strict";const n=r(375),i=r(8571),o=r(7043),a={};e.exports=a.merge=function(e,t,r){if(n(e&&"object"==typeof e,"Invalid target value: must be an object"),n(null==t||"object"==typeof t,"Invalid source value: must be null, undefined, or an object"),!t)return e;if(r=Object.assign({nullOverride:!0,mergeArrays:!0},r),Array.isArray(t)){n(Array.isArray(e),"Cannot merge array onto an object"),r.mergeArrays||(e.length=0);for(let n=0;n{"use strict";const n=r(375),i={};e.exports=function(e,t,r){if(!1===t||null==t)return e;"string"==typeof(r=r||{})&&(r={separator:r});const o=Array.isArray(t);n(!o||!r.separator,"Separator option is not valid for array-based chain");const a=o?t:t.split(r.separator||".");let s=e;for(let c=0;c{"use strict";e.exports=function(){try{return JSON.stringify(...arguments)}catch(e){return"[Cannot display object: "+e.message+"]"}}},4277:(e,t)=>{"use strict";const r={};t=e.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},r.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]),t.getInternalProto=function(e){if(Array.isArray(e))return t.array;if(e instanceof Date)return t.date;if(e instanceof RegExp)return t.regex;if(e instanceof Error)return t.error;const n=Object.prototype.toString.call(e);return r.typeMap.get(n)||t.generic}},7043:(e,t)=>{"use strict";t.keys=function(e){return!1!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).symbols?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}},3652:(e,t,r)=>{"use strict";const n=r(375),i={};t.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(e,t){const r=[].concat((t=t||{}).before||[]),i=[].concat(t.after||[]),o=t.group||"?",a=t.sort||0;n(!r.includes(o),`Item cannot come before itself: ${o}`),n(!r.includes("?"),"Item cannot come before unassociated items"),n(!i.includes(o),`Item cannot come after itself: ${o}`),n(!i.includes("?"),"Item cannot come after unassociated items"),Array.isArray(e)||(e=[e]);for(const n of e){const e={seq:this._items.length,sort:a,before:r,after:i,group:o,node:n};this._items.push(e)}if(!t.manual){const e=this._sort();n(e,"item","?"!==o?`added into group ${o}`:"","created a dependencies error")}return this.nodes}merge(e){Array.isArray(e)||(e=[e]);for(const r of e)if(r)for(const e of r._items)this._items.push(Object.assign({},e));this._items.sort(i.mergeSort);for(let r=0;re.sort===t.sort?0:e.sort{"use strict";const n=r(443),i=r(2178),o={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:n.URL||URL};t.analyze=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return i.code("DOMAIN_NON_EMPTY_STRING");if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(e.length>256)return i.code("DOMAIN_TOO_LONG");if(o.nonAsciiRx.test(e)){if(!1===t.allowUnicode)return i.code("DOMAIN_INVALID_UNICODE_CHARS");e=e.normalize("NFC")}if(o.domainControlRx.test(e))return i.code("DOMAIN_INVALID_CHARS");e=o.punycode(e),t.allowFullyQualified&&"."===e[e.length-1]&&(e=e.slice(0,-1));const r=t.minDomainSegments||o.minDomainSegments,n=e.split(".");if(n.lengtht.maxDomainSegments)return i.code("DOMAIN_SEGMENTS_COUNT_MAX");const a=t.tlds;if(a){const e=n[n.length-1].toLowerCase();if(a.deny&&a.deny.has(e)||a.allow&&!a.allow.has(e))return i.code("DOMAIN_FORBIDDEN_TLDS")}for(let s=0;s63)return i.code("DOMAIN_LONG_SEGMENT");if(s{"use strict";const n=r(9848),i=r(5380),o=r(2178),a={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(n.TextEncoder||TextEncoder)};t.analyze=function(e,t){return a.email(e,t)},t.isValid=function(e,t){return!a.email(e,t)},a.email=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new Error("Invalid input: email must be a string");if(!e)return o.code("EMPTY_STRING");const r=!a.nonAsciiRx.test(e);if(!r){if(!1===t.allowUnicode)return o.code("FORBIDDEN_UNICODE");e=e.normalize("NFC")}const n=e.split("@");if(2!==n.length)return n.length>2?o.code("MULTIPLE_AT_CHAR"):o.code("MISSING_AT_CHAR");const[s,c]=n;if(!s)return o.code("EMPTY_LOCAL");if(!t.ignoreLength){if(e.length>254)return o.code("ADDRESS_TOO_LONG");if(a.encoder.encode(s).length>64)return o.code("LOCAL_TOO_LONG")}return a.local(s,r)||i.analyze(c,t)},a.local=function(e,t){const r=e.split(".");for(const n of r){if(!n.length)return o.code("EMPTY_LOCAL_SEGMENT");if(t){if(!a.atextRx.test(n))return o.code("INVALID_LOCAL_CHARS")}else for(const e of n){if(a.atextRx.test(e))continue;const t=a.binary(e);if(!a.atomRx.test(t))return o.code("INVALID_LOCAL_CHARS")}}},a.binary=function(e){return Array.from(a.encoder.encode(e)).map((e=>String.fromCharCode(e))).join("")},a.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,a.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:(e,t)=>{"use strict";t.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},t.code=function(e){return{code:e,error:t.codes[e]}}},9959:(e,t,r)=>{"use strict";const n=r(375),i=r(5752);t.regex=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(void 0===e.cidr||"string"==typeof e.cidr,"options.cidr must be a string");const t=e.cidr?e.cidr.toLowerCase():"optional";n(["required","optional","forbidden"].includes(t),"options.cidr must be one of required, optional, forbidden"),n(void 0===e.version||"string"==typeof e.version||Array.isArray(e.version),"options.version must be a string or an array of string");let r=e.version||["ipv4","ipv6","ipvfuture"];Array.isArray(r)||(r=[r]),n(r.length>=1,"options.version must have at least 1 version specified");for(let i=0;i{if("forbidden"===t)return i.ip[e];const r=`\\/${"ipv4"===e?i.ip.v4Cidr:i.ip.v6Cidr}`;return"required"===t?`${i.ip[e]}${r}`:`${i.ip[e]}(?:${r})?`})).join("|")})`,a=new RegExp(`^${o}$`);return{cidr:t,versions:r,regex:a,raw:o}}},5752:(e,t,r)=>{"use strict";const n=r(375),i=r(6064),o={generate:function(){const e={},t="\\dA-Fa-f",r="["+t+"]",n="\\w-\\.~",i="!\\$&'\\(\\)\\*\\+,;=",o="%"+t,a=n+o+i+":@",s="["+a+"]",c="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";e.ipv4address="(?:"+c+"\\.){3}"+c;const u=r+"{1,4}",l="(?:"+u+":"+u+"|"+e.ipv4address+")",d="(?:"+u+":){6}"+l,f="::(?:"+u+":){5}"+l,h="(?:"+u+")?::(?:"+u+":){4}"+l,p="(?:(?:"+u+":){0,1}"+u+")?::(?:"+u+":){3}"+l,g="(?:(?:"+u+":){0,2}"+u+")?::(?:"+u+":){2}"+l,m="(?:(?:"+u+":){0,3}"+u+")?::"+u+":"+l,y="(?:(?:"+u+":){0,4}"+u+")?::"+l,b="(?:(?:"+u+":){0,5}"+u+")?::"+u,v="(?:(?:"+u+":){0,6}"+u+")?::";e.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",e.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",e.ipv6address="(?:"+d+"|"+f+"|"+h+"|"+p+"|"+g+"|"+m+"|"+y+"|"+b+"|"+v+")",e.ipvFuture="v"+r+"+\\.["+n+i+":]+",e.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",e.schemeRegex=new RegExp(e.scheme);const w="["+n+o+i+":]*",A="["+n+o+i+"]{1,255}",C="(?:\\[(?:"+e.ipv6address+"|"+e.ipvFuture+")\\]|"+e.ipv4address+"|"+A+")",E="(?:"+w+"@)?"+C+"(?::\\d*)?",x="(?:"+w+"@)?("+C+")(?::\\d*)?",S=s+"*",I=s+"+",k="(?:\\/"+S+")*",_="\\/(?:"+I+k+")?",T=I+k,M="["+n+o+i+"@]+"+k,P="(?:\\/\\/\\/"+S+k+")";return e.hierPart="(?:(?:\\/\\/"+E+k+")|"+_+"|"+T+"|"+P+")",e.hierPartCapture="(?:(?:\\/\\/"+x+k+")|"+_+"|"+T+")",e.relativeRef="(?:(?:\\/\\/"+E+k+")|"+_+"|"+M+"|)",e.relativeRefCapture="(?:(?:\\/\\/"+x+k+")|"+_+"|"+M+"|)",e.query="["+a+"\\/\\?]*(?=#|$)",e.queryWithSquareBrackets="["+a+"\\[\\]\\/\\?]*(?=#|$)",e.fragment="["+a+"\\/\\?]*",e}};o.rfc3986=o.generate(),t.ip={v4Cidr:o.rfc3986.ipv4Cidr,v6Cidr:o.rfc3986.ipv6Cidr,ipv4:o.rfc3986.ipv4address,ipv6:o.rfc3986.ipv6address,ipvfuture:o.rfc3986.ipvFuture},o.createRegex=function(e){const t=o.rfc3986,r="(?:\\?"+(e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query)+")?(?:#"+t.fragment+")?",a=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return o.wrap(a+r);let s="";if(e.scheme){n(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.scheme),"scheme must be a RegExp, String, or Array");const r=[].concat(e.scheme);n(r.length>=1,"scheme must have at least 1 scheme specified");const o=[];for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:{};return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?o.createRegex(e):o.uriRegex}},1447:(e,t)=>{"use strict";const r={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};t.Parser=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t[r.settings]&&t.constants)for(const r in t.constants){const e=t.constants[r];if(null!==e&&!["boolean","number","string"].includes(typeof e))throw new Error(`Formula constant ${r} contains invalid ${typeof e} value type`)}this.settings=t[r.settings]?t:Object.assign({[r.settings]:!0,constants:{},functions:{}},t),this.single=null,this._parts=null,this._parse(e)}_parse(e){let n=[],i="",o=0,a=!1;const s=e=>{if(o)throw new Error("Formula missing closing parenthesis");const s=n.length?n[n.length-1]:null;if(a||i||e){if(s&&"reference"===s.type&&")"===e)return s.type="function",s.value=this._subFormula(i,s.value),void(i="");if(")"===e){const e=new t.Parser(i,this.settings);n.push({type:"segment",value:e})}else if(a){if("]"===a)return n.push({type:"reference",value:i}),void(i="");n.push({type:"literal",value:i})}else if(r.operatorCharacters.includes(i))s&&"operator"===s.type&&r.operators.includes(s.value+i)?s.value+=i:n.push({type:"operator",value:i});else if(i.match(r.numberRx))n.push({type:"constant",value:parseFloat(i)});else if(void 0!==this.settings.constants[i])n.push({type:"constant",value:this.settings.constants[i]});else{if(!i.match(r.tokenRx))throw new Error(`Formula contains invalid token: ${i}`);n.push({type:"reference",value:i})}i=""}};for(const t of e)a?t===a?(s(),a=!1):i+=t:o?"("===t?(i+=t,++o):")"===t?(--o,o?i+=t:s(t)):i+=t:t in r.literals?a=r.literals[t]:"("===t?(s(),++o):r.operatorCharacters.includes(t)?(s(),i=t,s()):" "!==t?i+=t:s();s(),n=n.map(((e,t)=>"operator"!==e.type||"-"!==e.value||t&&"operator"!==n[t-1].type?e:{type:"operator",value:"n"}));let c=!1;for(const t of n){if("operator"===t.type){if(r.operatorsPrefix.includes(t.value))continue;if(!c)throw new Error("Formula contains an operator in invalid position");if(!r.operators.includes(t.value))throw new Error(`Formula contains an unknown operator ${t.value}`)}else if(c)throw new Error("Formula missing expected operator");c=!c}if(!c)throw new Error("Formula contains invalid trailing operator");1===n.length&&["reference","literal","constant"].includes(n[0].type)&&(this.single={type:"reference"===n[0].type?"reference":"value",value:n[0].value}),this._parts=n.map((e=>{if("operator"===e.type)return r.operatorsPrefix.includes(e.value)?e:e.value;if("reference"!==e.type)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw new Error(`Formula contains invalid reference ${e.value}`);return this.settings.reference?this.settings.reference(e.value):r.reference(e.value)}))}_subFormula(e,n){const i=this.settings.functions[n];if("function"!=typeof i)throw new Error(`Formula contains unknown function ${n}`);let o=[];if(e){let t="",i=0,a=!1;const s=()=>{if(!t)throw new Error(`Formula contains function ${n} with invalid arguments ${e}`);o.push(t),t=""};for(let n=0;nnew t.Parser(e,this.settings))),function(e){const t=[];for(const r of o)t.push(r.evaluate(e));return i.call(e,...t)}}evaluate(e){const t=this._parts.slice();for(let n=t.length-2;n>=0;--n){const i=t[n];if(i&&"operator"===i.type){const o=t[n+1];t.splice(n+1,1);const a=r.evaluate(o,e);t[n]=r.single(i.value,a)}}return r.operatorsOrder.forEach((n=>{for(let i=1;i":return t>n;case">=":return t>=n;case"==":return t===n;case"!=":return t!==n;case"&&":return t&&n;case"||":return t||n}return null},r.exists=function(e){return null!=e}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{},5934:e=>{"use strict";e.exports={version:"17.9.1"}}},t={},function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}(5107);var e,t},e.exports=t()},131176:(e,t,r)=>{var n;!function(){"use strict";var i="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?a=r.g:s&&(a=self);var c=!a.JS_SHA3_NO_COMMON_JS&&e.exports,u=r.amdO,l=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,d="0123456789abcdef".split(""),f=[4,1024,262144,67108864],h=[0,8,16,24],p=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],g=[224,256,384,512],m=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],b={128:168,256:136};!a.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!l||!a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var v=function(e,t,r){return function(n){return new O(e,t,e).update(n)[r]()}},w=function(e,t,r){return function(n,i){return new O(e,t,i).update(n)[r]()}},A=function(e,t,r){return function(t,n,i,o){return I["cshake"+e].update(t,n,i,o)[r]()}},C=function(e,t,r){return function(t,n,i,o){return I["kmac"+e].update(t,n,i,o)[r]()}},E=function(e,t,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function B(e,t,r){O.call(this,e,t,r)}O.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(i);if(null===e)throw new Error(i);if(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||l&&ArrayBuffer.isView(e)))throw new Error(i);t=!0}for(var n,o,a=this.blocks,s=this.byteCount,c=e.length,u=this.blockCount,d=0,f=this.s;d>2]|=e[d]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(a[n>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=s){for(this.start=n-s,this.block=a[u],n=0;n>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},O.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(i);if(null===e)throw new Error(i);if(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||l&&ArrayBuffer.isView(e)))throw new Error(i);t=!0}var n=0,o=e.length;if(t)n=o;else for(var a=0;a=57344?n+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),n+=4)}return n+=this.encode(8*n),this.update(e),n},O.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t>4&15]+d[15&e]+d[e>>12&15]+d[e>>8&15]+d[e>>20&15]+d[e>>16&15]+d[e>>28&15]+d[e>>24&15];a%t==0&&(N(r),o=0)}return i&&(e=r[o],s+=d[e>>4&15]+d[15&e],i>1&&(s+=d[e>>12&15]+d[e>>8&15]),i>2&&(s+=d[e>>20&15]+d[e>>16&15])),s},O.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%r==0&&N(n)}return o&&(e=s<<2,t=n[a],c[e]=255&t,o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c},B.prototype=new O,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),O.prototype.finalize.call(this)};var N=function(e){var t,r,n,i,o,a,s,c,u,l,d,f,h,g,m,y,b,v,w,A,C,E,x,S,I,k,_,T,M,P,j,D,O,B,N,R,L,F,U,z,H,V,K,G,q,Q,W,J,Y,Z,$,X,ee,te,re,ne,ie,oe,ae,se,ce,ue,le;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(f=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(c<<1|u>>>31),r=o^(u<<1|c>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(l<<1|d>>>31),r=s^(d<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=c^(f<<1|h>>>31),r=u^(h<<1|f>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(i<<1|o>>>31),r=d^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,g=e[0],m=e[1],Q=e[11]<<4|e[10]>>>28,W=e[10]<<4|e[11]>>>28,T=e[20]<<3|e[21]>>>29,M=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,V=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,B=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,Y=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,j=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,R=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,$=e[35]<<15|e[34]>>>17,D=e[45]<<29|e[44]>>>3,O=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,I=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,A=e[36]<<21|e[37]>>>11,C=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,G=e[8]<<27|e[9]>>>5,q=e[9]<<27|e[8]>>>5,k=e[18]<<20|e[19]>>>12,_=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,x=e[49]<<14|e[48]>>>18,e[0]=g^~y&v,e[1]=m^~b&w,e[10]=S^~k&T,e[11]=I^~_&M,e[20]=B^~R&F,e[21]=N^~L&U,e[30]=G^~Q&J,e[31]=q^~W&Y,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=y^~v&A,e[3]=b^~w&C,e[12]=k^~T&P,e[13]=_^~M&j,e[22]=R^~F&z,e[23]=L^~U&H,e[32]=Q^~J&Z,e[33]=W^~Y&$,e[42]=ne^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~A&E,e[5]=w^~C&x,e[14]=T^~P&D,e[15]=M^~j&O,e[24]=F^~z&V,e[25]=U^~H&K,e[34]=J^~Z&X,e[35]=Y^~$&ee,e[44]=oe^~se&ue,e[45]=ae^~ce&le,e[6]=A^~E&g,e[7]=C^~x&m,e[16]=P^~D&S,e[17]=j^~O&I,e[26]=z^~V&B,e[27]=H^~K&N,e[36]=Z^~X&G,e[37]=$^~ee&q,e[46]=se^~ue&te,e[47]=ce^~le&re,e[8]=E^~g&y,e[9]=x^~m&b,e[18]=D^~S&k,e[19]=O^~I&_,e[28]=V^~B&R,e[29]=K^~N&L,e[38]=X^~G&Q,e[39]=ee^~q&W,e[48]=ue^~te&ne,e[49]=le^~re&ie,e[0]^=p[n],e[1]^=p[n+1]};if(c)e.exports=I;else{for(_=0;_{function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function r(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,n,i){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"==typeof n&&(i=n,n={}),n=n||{},i=i||function(){},a.type=n.type||"text/javascript",a.charset=n.charset||"utf8",a.async=!("async"in n)||!!n.async,a.src=e,n.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(a,n.attrs),n.text&&(a.text=""+n.text),("onload"in a?t:r)(a,i),a.onload||t(a,i),o.appendChild(a)}},470182:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object Object]",c=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[o]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l[a]=l["[object Map]"]=l["[object Number]"]=l[s]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1;var d="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,f="object"==typeof self&&self&&self.Object===Object&&self,h=d||f||Function("return this")(),p=t&&!t.nodeType&&t,g=p&&e&&!e.nodeType&&e,m=g&&g.exports===p,y=m&&d.process,b=function(){try{var e=g&&g.require&&g.require("util").types;return e||y&&y.binding&&y.binding("util")}catch(t){}}(),v=b&&b.isTypedArray;var w,A,C,E=Array.prototype,x=Function.prototype,S=Object.prototype,I=h["__core-js_shared__"],k=x.toString,_=S.hasOwnProperty,T=(w=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",M=S.toString,P=k.call(Object),j=RegExp("^"+k.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=m?h.Buffer:void 0,O=h.Symbol,B=h.Uint8Array,N=D?D.allocUnsafe:void 0,R=(A=Object.getPrototypeOf,C=Object,function(e){return A(C(e))}),L=Object.create,F=S.propertyIsEnumerable,U=E.splice,z=O?O.toStringTag:void 0,H=function(){try{var e=pe(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),V=D?D.isBuffer:void 0,K=Math.max,G=Date.now,q=pe(h,"Map"),Q=pe(Object,"create"),W=function(){function e(){}return function(t){if(!Ie(t))return{};if(L)return L(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function J(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},Y.prototype.set=function(e,t){var r=this.__data__,n=re(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Z.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(q||Y),string:new J}},Z.prototype.delete=function(e){var t=he(this,e).delete(e);return this.size-=t?1:0,t},Z.prototype.get=function(e){return he(this,e).get(e)},Z.prototype.has=function(e){return he(this,e).has(e)},Z.prototype.set=function(e,t){var r=he(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},$.prototype.clear=function(){this.__data__=new Y,this.size=0},$.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},$.prototype.get=function(e){return this.__data__.get(e)},$.prototype.has=function(e){return this.__data__.has(e)},$.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Y){var n=r.__data__;if(!q||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Z(n)}return r.set(e,t),this.size=r.size,this};var ie,oe=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[ie?a:++n];if(!1===t(i[s],s,i))break}return e};function ae(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?function(e){var t=_.call(e,z),r=e[z];try{e[z]=void 0;var n=!0}catch(o){}var i=M.call(e);n&&(t?e[z]=r:delete e[z]);return i}(e):function(e){return M.call(e)}(e)}function se(e){return ke(e)&&ae(e)==o}function ce(e){return!(!Ie(e)||function(e){return!!T&&T in e}(e))&&(xe(e)?j:c).test(function(e){if(null!=e){try{return k.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function ue(e){if(!Ie(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=me(e),r=[];for(var n in e)("constructor"!=n||!t&&_.call(e,n))&&r.push(n);return r}function le(e,t,r,n,i){e!==t&&oe(t,(function(o,a){if(i||(i=new $),Ie(o))!function(e,t,r,n,i,o,a){var c=ye(e,r),u=ye(t,r),l=a.get(u);if(l)return void ee(e,r,l);var d=o?o(c,u,r+"",e,t,a):void 0,f=void 0===d;if(f){var h=Ae(u),p=!h&&Ee(u),g=!h&&!p&&_e(u);d=u,h||p||g?Ae(c)?d=c:ke(w=c)&&Ce(w)?d=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(fe);function ve(e,t){return e===t||e!=e&&t!=t}var we=se(function(){return arguments}())?se:function(e){return ke(e)&&_.call(e,"callee")&&!F.call(e,"callee")},Ae=Array.isArray;function Ce(e){return null!=e&&Se(e.length)&&!xe(e)}var Ee=V||function(){return!1};function xe(e){if(!Ie(e))return!1;var t=ae(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Se(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ke(e){return null!=e&&"object"==typeof e}var _e=v?function(e){return function(t){return e(t)}}(v):function(e){return ke(e)&&Se(e.length)&&!!l[ae(e)]};function Te(e){return Ce(e)?X(e,!0):ue(e)}var Me,Pe=(Me=function(e,t,r){le(e,t,r)},de((function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=Me.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!Ie(r))return!1;var n=typeof t;return!!("number"==n?Ce(r)&&ge(t,r.length):"string"==n&&t in r)&&ve(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r{e=r.nmd(e);var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",u="[object Error]",l="[object Function]",d="[object Map]",f="[object Number]",h="[object Object]",p="[object Promise]",g="[object RegExp]",m="[object Set]",y="[object String]",b="[object Symbol]",v="[object WeakMap]",w="[object ArrayBuffer]",A="[object DataView]",C=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,x=/^\./,S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,I=/\\(\\)?/g,k=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[o]=T[a]=T[w]=T[s]=T[A]=T[c]=T[u]=T[l]=T[d]=T[f]=T[h]=T[g]=T[m]=T[y]=T[v]=!1;var M="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,P="object"==typeof self&&self&&self.Object===Object&&self,j=M||P||Function("return this")(),D=t&&!t.nodeType&&t,O=D&&e&&!e.nodeType&&e,B=O&&O.exports===D&&M.process,N=function(){try{return B&&B.binding("util")}catch(e){}}(),R=N&&N.isTypedArray;function L(e,t,r,n){for(var i=-1,o=e?e.length:0;++i-1},Ae.prototype.set=function(e,t){var r=this.__data__,n=Ie(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new we,map:new(se||Ae),string:new we}},Ce.prototype.delete=function(e){return Ue(this,e).delete(e)},Ce.prototype.get=function(e){return Ue(this,e).get(e)},Ce.prototype.has=function(e){return Ue(this,e).has(e)},Ce.prototype.set=function(e,t){return Ue(this,e).set(e,t),this},Ee.prototype.add=Ee.prototype.push=function(e){return this.__data__.set(e,n),this},Ee.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new Ae},xe.prototype.delete=function(e){return this.__data__.delete(e)},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ae){var n=r.__data__;if(!se||n.length<199)return n.push([e,t]),this;r=this.__data__=new Ce(n)}return r.set(e,t),this};var _e,Te,Me=(_e=function(e,t){return e&&Pe(e,t,lt)},function(e,t){if(null==e)return e;if(!nt(e))return _e(e,t);for(var r=e.length,n=Te?r:-1,i=Object(e);(Te?n--:++ns))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var l=-1,d=!0,f=1&i?new Ee:void 0;for(o.set(e,t),o.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=i}function at(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function st(e){return!!e&&"object"==typeof e}function ct(e){return"symbol"==typeof e||st(e)&&X.call(e)==b}var ut=R?function(e){return function(t){return e(t)}}(R):function(e){return st(e)&&ot(e.length)&&!!T[X.call(e)]};function lt(e){return nt(e)?Se(e):Re(e)}function dt(e){return e}e.exports=$e},187234:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",i=1/0,o=9007199254740991,a="[object Arguments]",s="[object Array]",c="[object Boolean]",u="[object Date]",l="[object Error]",d="[object Function]",f="[object Map]",h="[object Number]",p="[object Object]",g="[object Promise]",m="[object RegExp]",y="[object Set]",b="[object String]",v="[object Symbol]",w="[object WeakMap]",A="[object ArrayBuffer]",C="[object DataView]",E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/,S=/^\./,I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,_=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[a]=M[s]=M[A]=M[c]=M[C]=M[u]=M[l]=M[d]=M[f]=M[h]=M[p]=M[m]=M[y]=M[b]=M[w]=!1;var P="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,j="object"==typeof self&&self&&self.Object===Object&&self,D=P||j||Function("return this")(),O=t&&!t.nodeType&&t,B=O&&e&&!e.nodeType&&e,N=B&&B.exports===O&&P.process,R=function(){try{return N&&N.binding("util")}catch(e){}}(),L=R&&R.isTypedArray;function F(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,n){var i=e.length,o=r+(n?1:-1);for(;n?o--:++o-1}function U(e,t,r){for(var n=-1,i=e?e.length:0;++n-1},Se.prototype.set=function(e,t){var r=this.__data__,n=Me(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ie.prototype.clear=function(){this.__data__={hash:new xe,map:new(de||Se),string:new xe}},Ie.prototype.delete=function(e){return Ue(this,e).delete(e)},Ie.prototype.get=function(e){return Ue(this,e).get(e)},Ie.prototype.has=function(e){return Ue(this,e).has(e)},Ie.prototype.set=function(e,t){return Ue(this,e).set(e,t),this},ke.prototype.add=ke.prototype.push=function(e){return this.__data__.set(e,n),this},ke.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.clear=function(){this.__data__=new Se},_e.prototype.delete=function(e){return this.__data__.delete(e)},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Se){var n=r.__data__;if(!de||n.length<199)return n.push([e,t]),this;r=this.__data__=new Ie(n)}return r.set(e,t),this};var Le=he&&1/q(new he([,-0]))[1]==i?function(e){return new he(e)}:function(){};function Fe(e,t,r,n,i,o){var a=2&i,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var l=-1,d=!0,f=1&i?new ke:void 0;for(o.set(e,t),o.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=o}function nt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function it(e){return!!e&&"object"==typeof e}function ot(e){return"symbol"==typeof e||it(e)&&ne.call(e)==v}var at=L?function(e){return function(t){return e(t)}}(L):function(e){return it(e)&&rt(e.length)&&!!M[ne.call(e)]};function st(e){return et(e)?Te(e):Ne(e)}function ct(e){return e}e.exports=function(e,t){return e&&e.length?function(e,t,r){var n=-1,i=F,o=e.length,a=!0,s=[],c=s;if(r)a=!1,i=U;else if(o>=200){var u=t?null:Le(e);if(u)return q(u);a=!1,i=V,c=new ke}else c=t?[]:s;e:for(;++n{"use strict";e.exports=Math.abs},58968:e=>{"use strict";e.exports=Math.floor},506188:e=>{"use strict";e.exports=Math.max},468002:e=>{"use strict";e.exports=Math.min},975880:e=>{"use strict";e.exports=Math.pow},988276:(e,t,r)=>{"use strict";var n=r(256698),i=r(873726),o=r(192861).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<>>32-t}function u(e,t,r,n,i,o,a){return c(e+(t&r|~t&n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return c(e+(t&n|r&~n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return c(e+(t^r^n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return c(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=u(r,n,i,o,e[0],3614090360,7),o=u(o,r,n,i,e[1],3905402710,12),i=u(i,o,r,n,e[2],606105819,17),n=u(n,i,o,r,e[3],3250441966,22),r=u(r,n,i,o,e[4],4118548399,7),o=u(o,r,n,i,e[5],1200080426,12),i=u(i,o,r,n,e[6],2821735955,17),n=u(n,i,o,r,e[7],4249261313,22),r=u(r,n,i,o,e[8],1770035416,7),o=u(o,r,n,i,e[9],2336552879,12),i=u(i,o,r,n,e[10],4294925233,17),n=u(n,i,o,r,e[11],2304563134,22),r=u(r,n,i,o,e[12],1804603682,7),o=u(o,r,n,i,e[13],4254626195,12),i=u(i,o,r,n,e[14],2792965006,17),r=l(r,n=u(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=l(o,r,n,i,e[6],3225465664,9),i=l(i,o,r,n,e[11],643717713,14),n=l(n,i,o,r,e[0],3921069994,20),r=l(r,n,i,o,e[5],3593408605,5),o=l(o,r,n,i,e[10],38016083,9),i=l(i,o,r,n,e[15],3634488961,14),n=l(n,i,o,r,e[4],3889429448,20),r=l(r,n,i,o,e[9],568446438,5),o=l(o,r,n,i,e[14],3275163606,9),i=l(i,o,r,n,e[3],4107603335,14),n=l(n,i,o,r,e[8],1163531501,20),r=l(r,n,i,o,e[13],2850285829,5),o=l(o,r,n,i,e[2],4243563512,9),i=l(i,o,r,n,e[7],1735328473,14),r=d(r,n=l(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=d(o,r,n,i,e[8],2272392833,11),i=d(i,o,r,n,e[11],1839030562,16),n=d(n,i,o,r,e[14],4259657740,23),r=d(r,n,i,o,e[1],2763975236,4),o=d(o,r,n,i,e[4],1272893353,11),i=d(i,o,r,n,e[7],4139469664,16),n=d(n,i,o,r,e[10],3200236656,23),r=d(r,n,i,o,e[13],681279174,4),o=d(o,r,n,i,e[0],3936430074,11),i=d(i,o,r,n,e[3],3572445317,16),n=d(n,i,o,r,e[6],76029189,23),r=d(r,n,i,o,e[9],3654602809,4),o=d(o,r,n,i,e[12],3873151461,11),i=d(i,o,r,n,e[15],530742520,16),r=f(r,n=d(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=f(o,r,n,i,e[7],1126891415,10),i=f(i,o,r,n,e[14],2878612391,15),n=f(n,i,o,r,e[5],4237533241,21),r=f(r,n,i,o,e[12],1700485571,6),o=f(o,r,n,i,e[3],2399980690,10),i=f(i,o,r,n,e[10],4293915773,15),n=f(n,i,o,r,e[1],2240044497,21),r=f(r,n,i,o,e[8],1873313359,6),o=f(o,r,n,i,e[15],4264355552,10),i=f(i,o,r,n,e[6],2734768916,15),n=f(n,i,o,r,e[13],1309151649,21),r=f(r,n,i,o,e[4],4149444226,6),o=f(o,r,n,i,e[11],3174756917,10),i=f(i,o,r,n,e[2],718787259,15),n=f(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},873726:(e,t,r)=>{"use strict";var n=r(192861).Buffer,i=r(128399).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(256698)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},241811:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStatusCodeError=t.InvalidCertError=void 0;const n=Object.freeze({redirect:!0,expectStatusCode:200,headers:{},full:!1,keepAlive:!0,cors:!1,referrer:!1,sslAllowSelfSigned:!1,_redirectCount:0});class i extends Error{constructor(e,t){super(e),this.fingerprint256=t}}t.InvalidCertError=i;class o extends Error{constructor(e){super(`Request Failed. Status Code: ${e}`),this.statusCode=e}}function a(e,t){if(!t||"text"===t||"json"===t)try{let n=new TextDecoder("utf8",{fatal:!0}).decode(e);if("text"===t)return n;try{return JSON.parse(n)}catch(r){if("json"===t)throw r;return n}}catch(r){if("text"===t||"json"===t)throw r}return e}t.InvalidStatusCodeError=o;let s={};function c(e,t){let u={...n,...t};const l=r(811568),d=r(411083),f=r(178559),{promisify:h}=r(440537),{resolve:p}=r(188835),g=!!/^https/.test(e);let m={method:u.method||"GET",headers:{"Accept-Encoding":"gzip, deflate, br"}};const y=e=>e.replace(/:| /g,"").toLowerCase();if(u.keepAlive){const e={keepAlive:!0,keepAliveMsecs:3e4,maxFreeSockets:1024,maxCachedSessions:1024},t=[g,g&&u.sslPinnedCertificates?.map((e=>y(e))).sort()].join();m.agent=s[t]||(s[t]=new(g?d:l).Agent(e))}"json"===u.type&&(m.headers["Content-Type"]="application/json"),u.data&&(u.method||(m.method="POST"),m.body="json"===u.type?JSON.stringify(u.data):u.data),m.headers={...m.headers,...u.headers},u.sslAllowSelfSigned&&(m.rejectUnauthorized=!1);return new Promise(((t,r)=>{const n=async t=>{if(t&&"DEPTH_ZERO_SELF_SIGNED_CERT"===t.code)try{await c(e,{...u,sslAllowSelfSigned:!0,sslPinnedCertificates:[]})}catch(n){n&&n.fingerprint256&&(t=new i(`Self-signed SSL certificate: ${n.fingerprint256}`,n.fingerprint256))}r(t)},s=(g?d:l).request(e,m,(i=>{i.on("error",n),(async()=>{try{t(await(async t=>{const r=t.statusCode;if(u.redirect&&300<=r&&r<400&&t.headers.location){if(10==u._redirectCount)throw new Error("Request failed. Too much redirects.");return u._redirectCount+=1,await c(p(e,t.headers.location),u)}if(u.expectStatusCode&&r!==u.expectStatusCode)throw t.resume(),new o(r);let n=[];for await(const e of t)n.push(e);let i=Buffer.concat(n);const s=t.headers["content-encoding"];"br"===s&&(i=await h(f.brotliDecompress)(i)),"gzip"!==s&&"deflate"!==s||(i=await h(f.unzip)(i));const l=a(i,u.type);return u.full?{headers:t.headers,status:r,body:l}:l})(i))}catch(n){r(n)}})()}));s.on("error",n);const b=u.sslPinnedCertificates?.map((e=>y(e))),v=e=>{const t=y(e.getPeerCertificate()?.fingerprint256||"");if((t||!e.isSessionReused())&&!b.includes(t))return s.emit("error",new i(`Invalid SSL certificate: ${t} Expected: ${b}`,t)),s.abort()};u.sslPinnedCertificates&&s.on("socket",(e=>{e.listeners("secureConnect").map((e=>(e.name||"").replace("bound ",""))).includes("mfetchSecureConnect")||e.on("secureConnect",v.bind(null,e))})),u.keepAlive&&s.setNoDelay(!0),m.body&&s.write(m.body),s.end()}))}const u=new Set(["Accept","Accept-Language","Content-Language","Content-Type"].map((e=>e.toLowerCase()))),l=new Set(["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via"].map((e=>e.toLowerCase())));async function d(e,t){let r={...n,...t};const i=new Headers;"json"===r.type&&i.set("Content-Type","application/json");let s=new URL(e);if(s.username){const e=btoa(`${s.username}:${s.password}`);i.set("Authorization",`Basic ${e}`),s.username="",s.password=""}e=""+s;for(let n in r.headers){const e=n.toLowerCase();(u.has(e)||r.cors&&!l.has(e))&&i.set(n,r.headers[n])}let c={headers:i,redirect:r.redirect?"follow":"manual"};r.referrer||(c.referrerPolicy="no-referrer"),r.cors&&(c.mode="cors"),r.data&&(r.method||(c.method="POST"),c.body="json"===r.type?JSON.stringify(r.data):r.data);const d=await fetch(e,c);if(r.expectStatusCode&&d.status!==r.expectStatusCode)throw new o(d.status);const f=a(new Uint8Array(await d.arrayBuffer()),r.type);return r.full?{headers:Object.fromEntries(d.headers.entries()),status:d.status,body:f}:f}const f=!!("object"==typeof process&&process.versions&&process.versions.node&&process.versions.v8);t.default=function(e,t){return(f?c:d)(e,t)}},352244:(e,t,r)=>{var n=r(439404),i=r(415037);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),l=s.toRed(o);t>0;t--){var d=this._randrange(new n(2),s);r&&r(d);var f=d.toRed(o).redPow(u);if(0!==f.cmp(a)&&0!==f.cmp(l)){for(var h=1;h0;t--){var l=this._randrange(new n(2),a),d=e.gcd(l);if(0!==d.cmpn(1))return d;var f=l.toRed(i).redPow(c);if(0!==f.cmp(o)&&0!==f.cmp(u)){for(var h=1;h{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},764367:(e,t)=>{"use strict";var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},206585:e=>{var t=1e3,r=60*t,n=60*r,i=24*n,o=7*i,a=365.25*i;function s(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*a;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return s(e,o,i,"day");if(o>=n)return s(e,o,n,"hour");if(o>=r)return s(e,o,r,"minute");if(o>=t)return s(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=n)return Math.round(e/n)+"h";if(o>=r)return Math.round(e/r)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},914030:(e,t,r)=>{e.exports=r(80777)},707700:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=r},988751:e=>{var t,r,n,i,o,a,s,c,u,l,d,f,h,p,g,m=!1;function y(){if(!m){m=!0;var e=navigator.userAgent,y=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),l=/Android/i.exec(e),p=/FBAN\/\w+;/i.exec(e),g=/Mobile/i.exec(e),d=!!/Win64/.exec(e),y){(t=y[1]?parseFloat(y[1]):y[5]?parseFloat(y[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var v=/(?:Trident\/(\d+.\d+))/.exec(e);a=v?parseFloat(v[1])+4:t,r=y[2]?parseFloat(y[2]):NaN,n=y[3]?parseFloat(y[3]):NaN,(i=y[4]?parseFloat(y[4]):NaN)?(y=/(?:Chrome\/(\d+\.\d+))/.exec(e),o=y&&y[1]?parseFloat(y[1]):NaN):o=NaN}else t=r=n=o=i=NaN;if(b){if(b[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!w||parseFloat(w[1].replace("_","."))}else s=!1;c=!!b[2],u=!!b[3]}else s=c=u=!1}}var b={ie:function(){return y()||t},ieCompatibilityMode:function(){return y()||a>t},ie64:function(){return b.ie()&&d},firefox:function(){return y()||r},opera:function(){return y()||n},webkit:function(){return y()||i},safari:function(){return b.webkit()},chrome:function(){return y()||o},windows:function(){return y()||c},osx:function(){return y()||s},linux:function(){return y()||u},iphone:function(){return y()||f},mobile:function(){return y()||f||h||l||g},nativeApp:function(){return y()||p},android:function(){return y()||l},ipad:function(){return y()||h}};e.exports=b},658125:(e,t,r)=>{"use strict";var n,i=r(707700);i.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,o=r in document;if(!o){var a=document.createElement("div");a.setAttribute(r,"return;"),o="function"==typeof a[r]}return!o&&n&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}},80777:(e,t,r)=>{"use strict";var n=r(988751),i=r(658125);function o(e){var t=0,r=0,n=0,i=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=10*t,i=10*r,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(1==e.deltaMode?(n*=40,i*=40):(n*=800,i*=800)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}o.getEventType=function(){return n.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=o},358859:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,l=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,A=String.prototype.toLowerCase,C=RegExp.prototype.test,E=Array.prototype.concat,x=Array.prototype.join,S=Array.prototype.slice,I=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function O(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||C.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-I(-e):I(e);if(n!==e){var i=String(n),o=b.call(t,i.length+1);return v.call(i,r,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var B=r(242634),N=B.custom,R=K(N)?N:null,L={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,r){var n=r.quoteStyle||t,i=L[n];return i+e+i}function z(e){return v.call(String(e),/"/g,""")}function H(e){return!("[object Array]"!==Q(e)||P&&"object"==typeof e&&P in e)}function V(e){return!("[object RegExp]"!==Q(e)||P&&"object"==typeof e&&P in e)}function K(e){if(M)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,i,s){var c=n||{};if(q(c,"quoteStyle")&&!q(L,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!q(c,"customInspect")||c.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return J(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var C=String(t);return w?O(t,C):C}if("bigint"==typeof t){var I=String(t)+"n";return w?O(t,I):I}var _=void 0===c.depth?5:c.depth;if(void 0===i&&(i=0),i>=_&&_>0&&"object"==typeof t)return H(t)?"[Array]":"[Object]";var N=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=x.call(Array(e.indent+1)," ")}return{base:r,prev:x.call(Array(t+1),r)}}(c,i);if(void 0===s)s=[];else if(W(s,t)>=0)return"[Circular]";function F(t,r,n){if(r&&(s=S.call(s)).push(r),n){var o={depth:c.depth};return q(c,"quoteStyle")&&(o.quoteStyle=c.quoteStyle),e(t,o,i+1,s)}return e(t,c,i+1,s)}if("function"==typeof t&&!V(t)){var G=function(e){if(e.name)return e.name;var t=y.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),Y=te(t,F);return"[Function"+(G?": "+G:" (anonymous)")+"]"+(Y.length>0?" { "+x.call(Y,", ")+" }":"")}if(K(t)){var re=M?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!=typeof t||M?re:Z(re)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var ne="<"+A.call(String(t.nodeName)),ie=t.attributes||[],oe=0;oe"}if(H(t)){if(0===t.length)return"[]";var ae=te(t,F);return N&&!function(e){for(var t=0;t=0)return!1;return!0}(ae)?"["+ee(ae,N)+"]":"[ "+x.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t)){var se=te(t,F);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(se,", ")+" }":"{ ["+String(t)+"] "+x.call(E.call("[cause]: "+F(t.cause),se),", ")+" }"}if("object"==typeof t&&g){if(R&&"function"==typeof t[R]&&B)return B(t,{depth:_-i});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(ne){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ce=[];return a&&a.call(t,(function(e,r){ce.push(F(r,t,!0)+" => "+F(e,t))})),X("Map",o.call(t),ce,N)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var ue=[];return l&&l.call(t,(function(e){ue.push(F(e,t))})),X("Set",u.call(t),ue,N)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(ne){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return $("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(ne){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return $("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(t){}return!1}(t))return $("WeakRef");if(function(e){return!("[object Number]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t))return Z(F(Number(t)));if(function(e){if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(t){}return!1}(t))return Z(F(k.call(t)));if(function(e){return!("[object Boolean]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t))return Z(p.call(t));if(function(e){return!("[object String]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t))return Z(F(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t)&&!V(t)){var le=te(t,F),de=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",he=!de&&P&&Object(t)===t&&P in t?b.call(Q(t),8,-1):fe?"Object":"",pe=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||fe?"["+x.call(E.call([],he||[],fe||[]),": ")+"] ":"");return 0===le.length?pe+"{}":N?pe+"{"+ee(le,N)+"}":pe+"{ "+x.call(le,", ")+" }"}return String(t)};var G=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return G.call(e,t)}function Q(e){return g.call(e)}function W(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return J(b.call(e,0,t.maxStringLength),t)+n}var i=F[t.quoteStyle||"single"];return i.lastIndex=0,U(v.call(v.call(e,i,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function $(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?ee(r,n):x.call(r,", "))+"}"}function ee(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+x.call(e,","+r)+"\n"+t.prev}function te(e,t){var r=H(e),n=[];if(r){n.length=e.length;for(var i=0;i{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},337653:(e,t,r)=>{"use strict";var n=r(238452),i=r(10487),o=r(89211),a=r(409394),s=r(836576),c=i(a(),Object);n(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},409394:(e,t,r)=>{"use strict";var n=r(89211);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},836576:(e,t,r)=>{"use strict";var n=r(409394),i=r(238452);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},928875:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(101093),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var p=u&&r;if(s&&e.length>0&&!i.call(e,0))for(var g=0;g0)for(var m=0;m{"use strict";var n=Array.prototype.slice,i=r(101093),o=Object.keys,a=o?function(e){return o(e)}:r(928875),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},101093:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},38403:(e,t,r)=>{"use strict";var n=r(101189),i=r(241333)(),o=r(438075),a=Object,s=o("Array.prototype.push"),c=o("Object.prototype.propertyIsEnumerable"),u=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var r=a(e);if(1===arguments.length)return r;for(var o=1;o{"use strict";var n=r(38403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o{"use strict";e.exports=function(e,t,r,n){for(var i=65535&e,o=e>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+t[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},519681:e=>{"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},214823:e=>{"use strict";var t=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,r,n,i){var o=t,a=i+n;e^=-1;for(var s=i;s>>8^o[255&(e^r[s])];return~e}},958411:(e,t,r)=>{"use strict";var n,i=r(909805),o=r(523665),a=r(253269),s=r(214823),c=r(854674),u=-2,l=258,d=262,f=103,h=113,p=666;function g(e,t){return e.msg=c[t],t}function m(e){return(e<<1)-(e>4?9:0)}function y(e){for(var t=e.length;--t>=0;)e[t]=0}function b(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function v(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,b(e.strm)}function w(e,t){e.pending_buf[e.pending++]=t}function A(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function C(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,u=e.window,f=e.w_mask,h=e.prev,p=e.strstart+l,g=u[o+a-1],m=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+a]===m&&u[r+a-1]===g&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&oa){if(e.match_start=t,a=n,n>=s)break;g=u[o+a-1],m=u[o+a]}}}while((t=h[t&f])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function E(e){var t,r,n,o,c,u,l,f,h,p,g=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=g+(g-d)){i.arraySet(e.window,e.window,g,g,0),e.match_start-=g,e.strstart-=g,e.block_start-=g,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=g?n-g:0}while(--r);t=r=g;do{n=e.prev[--t],e.prev[t]=n>=g?n-g:0}while(--r);o+=g}if(0===e.strm.avail_in)break;if(u=e.strm,l=e.window,f=e.strstart+e.lookahead,h=o,p=void 0,(p=u.avail_in)>h&&(p=h),r=0===p?0:(u.avail_in-=p,i.arraySet(l,u.input,u.next_in,p,f),1===u.state.wrap?u.adler=a(u.adler,l,p,f):2===u.state.wrap&&(u.adler=s(u.adler,l,p,f)),u.next_in+=p,u.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=3)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<15&&(s=2,n-=16),o<1||o>9||8!==r||n<8||n>15||t<0||t>9||a<0||a>4)return g(e,u);8===n&&(n=9);var c=new k;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=n,c.w_size=1<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(E(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,v(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-d&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(v(e,!1),e.strm.avail_out),1)})),new I(4,4,8,4,x),new I(4,5,16,8,x),new I(4,6,32,32,x),new I(4,4,16,16,S),new I(8,16,32,32,S),new I(8,16,128,128,S),new I(8,32,128,256,S),new I(32,128,258,1024,S),new I(32,258,258,4096,S)],t.deflateInit=function(e,t){return M(e,t,8,15,8,0)},t.deflateInit2=M,t.deflateReset=T,t.deflateResetKeep=_,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,0):u},t.deflate=function(e,t){var r,i,a,c;if(!e||!e.state||t>5||t<0)return e?g(e,u):u;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===p&&4!==t)return g(e,0===e.avail_out?-5:u);if(i.strm=e,r=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,w(i,31),w(i,139),w(i,8),i.gzhead?(w(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),w(i,255&i.gzhead.time),w(i,i.gzhead.time>>8&255),w(i,i.gzhead.time>>16&255),w(i,i.gzhead.time>>24&255),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(w(i,255&i.gzhead.extra.length),w(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(w(i,0),w(i,0),w(i,0),w(i,0),w(i,0),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,3),i.status=h);else{var d=8+(i.w_bits-8<<4)<<8;d|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=h,A(i,d),0!==i.strstart&&(A(i,e.adler>>>16),A(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending!==i.pending_buf_size));)w(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=f)}else i.status=f;if(i.status===f&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&b(e),i.pending+2<=i.pending_buf_size&&(w(i,255&e.adler),w(i,e.adler>>8&255),e.adler=0,i.status=h)):i.status=h),0!==i.pending){if(b(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&m(t)<=m(r)&&4!==t)return g(e,-5);if(i.status===p&&0!==e.avail_in)return g(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==p){var C=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(E(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,a,s=e.window;;){if(e.lookahead<=l){if(E(e),e.lookahead<=l&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=e.strstart+l;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==C&&4!==C||(i.status=p),1===C||3===C)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===C&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(y(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),b(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(w(i,255&e.adler),w(i,e.adler>>8&255),w(i,e.adler>>16&255),w(i,e.adler>>24&255),w(i,255&e.total_in),w(i,e.total_in>>8&255),w(i,e.total_in>>16&255),w(i,e.total_in>>24&255)):(A(i,e.adler>>>16),A(i,65535&e.adler)),b(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==f&&t!==h&&t!==p?g(e,u):(e.state=null,t===h?g(e,-3):0):u},t.deflateSetDictionary=function(e,t){var r,n,o,s,c,l,d,f,h=t.length;if(!e||!e.state)return u;if(2===(s=(r=e.state).wrap)||1===s&&42!==r.status||r.lookahead)return u;for(1===s&&(e.adler=a(e.adler,t,h,0)),r.wrap=0,h>=r.w_size&&(0===s&&(y(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,t,h-r.w_size,r.w_size,0),t=f,h=r.w_size),c=e.avail_in,l=e.next_in,d=e.input,e.avail_in=h,e.next_in=0,e.input=t,E(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<{"use strict";e.exports=function(e,t){var r,n,i,o,a,s,c,u,l,d,f,h,p,g,m,y,b,v,w,A,C,E,x,S,I;r=e.state,n=e.next_in,S=e.input,i=n+(e.avail_in-5),o=e.next_out,I=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=r.dmax,u=r.wsize,l=r.whave,d=r.wnext,f=r.window,h=r.hold,p=r.bits,g=r.lencode,m=r.distcode,y=(1<>>=w=v>>>24,p-=w,0===(w=v>>>16&255))I[o++]=65535&v;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}v=g[(65535&v)+(h&(1<>>=w,p-=w),p<15&&(h+=S[n++]<>>=w=v>>>24,p-=w,16&(w=v>>>16&255)){if(C=65535&v,p<(w&=15)&&(h+=S[n++]<c){e.msg="invalid distance too far back",r.mode=30;break e}if(h>>>=w,p-=w,C>(w=o-a)){if((w=C-w)>l&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(E=0,x=f,0===d){if(E+=u-w,w2;)I[o++]=x[E++],I[o++]=x[E++],I[o++]=x[E++],A-=3;A&&(I[o++]=x[E++],A>1&&(I[o++]=x[E++]))}else{E=o-C;do{I[o++]=I[E++],I[o++]=I[E++],I[o++]=I[E++],A-=3}while(A>2);A&&(I[o++]=I[E++],A>1&&(I[o++]=I[E++]))}break}if(64&w){e.msg="invalid distance code",r.mode=30;break e}v=m[(65535&v)+(h&(1<>3,h&=(1<<(p-=A<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n{"use strict";var n=r(909805),i=r(253269),o=r(214823),a=r(347293),s=r(221998),c=-2,u=12,l=30;function d(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):c}function p(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,h(e)):c}function g(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?c:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,p(e))):c}function m(e,t){var r,n;return e?(n=new f,e.state=n,n.window=null,0!==(r=g(e,t))&&(e.state=null),r):c}var y,b,v=!0;function w(e){if(v){var t;for(y=new n.Buf32(512),b=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,b,0,e.work,{bits:5}),v=!1}e.lencode=y,e.lenbits=9,e.distcode=b,e.distbits=5}function A(e,t,r,i){var o,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,t,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,r.check=o(r.check,L,2,0),b=0,v=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",r.mode=l;break}if(8!=(15&b)){e.msg="unknown compression method",r.mode=l;break}if(v-=4,D=8+(15&(b>>>=4)),0===r.wbits)r.wbits=D;else if(D>r.wbits){e.msg="invalid window size",r.mode=l;break}r.dmax=1<>8&1),512&r.flags&&(L[0]=255&b,L[1]=b>>>8&255,r.check=o(r.check,L,2,0)),b=0,v=0,r.mode=3;case 3:for(;v<32;){if(0===m)break e;m--,b+=f[p++]<>>8&255,L[2]=b>>>16&255,L[3]=b>>>24&255,r.check=o(r.check,L,4,0)),b=0,v=0,r.mode=4;case 4:for(;v<16;){if(0===m)break e;m--,b+=f[p++]<>8),512&r.flags&&(L[0]=255&b,L[1]=b>>>8&255,r.check=o(r.check,L,2,0)),b=0,v=0,r.mode=5;case 5:if(1024&r.flags){for(;v<16;){if(0===m)break e;m--,b+=f[p++]<>>8&255,r.check=o(r.check,L,2,0)),b=0,v=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((x=r.length)>m&&(x=m),x&&(r.head&&(D=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,f,p,x,D)),512&r.flags&&(r.check=o(r.check,f,x,p)),m-=x,p+=x,r.length-=x),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===m)break e;x=0;do{D=f[p+x++],r.head&&D&&r.length<65536&&(r.head.name+=String.fromCharCode(D))}while(D&&x>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=u;break;case 10:for(;v<32;){if(0===m)break e;m--,b+=f[p++]<>>=7&v,v-=7&v,r.mode=27;break}for(;v<3;){if(0===m)break e;m--,b+=f[p++]<>>=1)){case 0:r.mode=14;break;case 1:if(w(r),r.mode=20,6===t){b>>>=2,v-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=l}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===m)break e;m--,b+=f[p++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=l;break}if(r.length=65535&b,b=0,v=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(x=r.length){if(x>m&&(x=m),x>y&&(x=y),0===x)break e;n.arraySet(h,f,p,x,g),m-=x,p+=x,y-=x,g+=x,r.length-=x;break}r.mode=u;break;case 17:for(;v<14;){if(0===m)break e;m--,b+=f[p++]<>>=5,v-=5,r.ndist=1+(31&b),b>>>=5,v-=5,r.ncode=4+(15&b),b>>>=4,v-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=l;break}r.have=0,r.mode=18;case 18:for(;r.have>>=3,v-=3}for(;r.have<19;)r.lens[F[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,B={bits:r.lenbits},O=s(0,r.lens,0,19,r.lencode,0,r.work,B),r.lenbits=B.bits,O){e.msg="invalid code lengths set",r.mode=l;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,T=65535&R,!((k=R>>>24)<=v);){if(0===m)break e;m--,b+=f[p++]<>>=k,v-=k,r.lens[r.have++]=T;else{if(16===T){for(N=k+2;v>>=k,v-=k,0===r.have){e.msg="invalid bit length repeat",r.mode=l;break}D=r.lens[r.have-1],x=3+(3&b),b>>>=2,v-=2}else if(17===T){for(N=k+3;v>>=k)),b>>>=3,v-=3}else{for(N=k+7;v>>=k)),b>>>=7,v-=7}if(r.have+x>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=l;break}for(;x--;)r.lens[r.have++]=D}}if(r.mode===l)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=l;break}if(r.lenbits=9,B={bits:r.lenbits},O=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,B),r.lenbits=B.bits,O){e.msg="invalid literal/lengths set",r.mode=l;break}if(r.distbits=6,r.distcode=r.distdyn,B={bits:r.distbits},O=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,B),r.distbits=B.bits,O){e.msg="invalid distances set",r.mode=l;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(m>=6&&y>=258){e.next_out=g,e.avail_out=y,e.next_in=p,e.avail_in=m,r.hold=b,r.bits=v,a(e,E),g=e.next_out,h=e.output,y=e.avail_out,p=e.next_in,f=e.input,m=e.avail_in,b=r.hold,v=r.bits,r.mode===u&&(r.back=-1);break}for(r.back=0;_=(R=r.lencode[b&(1<>>16&255,T=65535&R,!((k=R>>>24)<=v);){if(0===m)break e;m--,b+=f[p++]<>M)])>>>16&255,T=65535&R,!(M+(k=R>>>24)<=v);){if(0===m)break e;m--,b+=f[p++]<>>=M,v-=M,r.back+=M}if(b>>>=k,v-=k,r.back+=k,r.length=T,0===_){r.mode=26;break}if(32&_){r.back=-1,r.mode=u;break}if(64&_){e.msg="invalid literal/length code",r.mode=l;break}r.extra=15&_,r.mode=22;case 22:if(r.extra){for(N=r.extra;v>>=r.extra,v-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;_=(R=r.distcode[b&(1<>>16&255,T=65535&R,!((k=R>>>24)<=v);){if(0===m)break e;m--,b+=f[p++]<>M)])>>>16&255,T=65535&R,!(M+(k=R>>>24)<=v);){if(0===m)break e;m--,b+=f[p++]<>>=M,v-=M,r.back+=M}if(b>>>=k,v-=k,r.back+=k,64&_){e.msg="invalid distance code",r.mode=l;break}r.offset=T,r.extra=15&_,r.mode=24;case 24:if(r.extra){for(N=r.extra;v>>=r.extra,v-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=l;break}r.mode=25;case 25:if(0===y)break e;if(x=E-y,r.offset>x){if((x=r.offset-x)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=l;break}x>r.wnext?(x-=r.wnext,S=r.wsize-x):S=r.wnext-x,x>r.length&&(x=r.length),I=r.window}else I=h,S=g-r.offset,x=r.length;x>y&&(x=y),y-=x,r.length-=x;do{h[g++]=I[S++]}while(--x);0===r.length&&(r.mode=21);break;case 26:if(0===y)break e;h[g++]=r.length,y--,r.mode=21;break;case 27:if(r.wrap){for(;v<32;){if(0===m)break e;m--,b|=f[p++]<{"use strict";var n=r(909805),i=15,o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,r,u,l,d,f,h){var p,g,m,y,b,v,w,A,C,E=h.bits,x=0,S=0,I=0,k=0,_=0,T=0,M=0,P=0,j=0,D=0,O=null,B=0,N=new n.Buf16(16),R=new n.Buf16(16),L=null,F=0;for(x=0;x<=i;x++)N[x]=0;for(S=0;S=1&&0===N[k];k--);if(_>k&&(_=k),0===k)return l[d++]=20971520,l[d++]=20971520,h.bits=1,0;for(I=1;I0&&(0===e||1!==k))return-1;for(R[1]=0,x=1;x852||2===e&&j>592)return 1;for(;;){w=x-M,f[S]v?(A=L[F+f[S]],C=O[B+f[S]]):(A=96,C=0),p=1<>M)+(g-=p)]=w<<24|A<<16|C}while(0!==g);for(p=1<>=1;if(0!==p?(D&=p-1,D+=p):D=0,S++,0==--N[x]){if(x===k)break;x=t[r+f[S]]}if(x>_&&(D&y)!==m){for(0===M&&(M=_),b+=I,P=1<<(T=x-M);T+M852||2===e&&j>592)return 1;l[m=D&y]=_<<24|T<<16|b-d}}return 0!==D&&(l[b+D]=x-M<<24|64<<16),h.bits=_,0}},854674:e=>{"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},523665:(e,t,r)=>{"use strict";var n=r(909805);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=256,a=286,s=30,c=15,u=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],l=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],f=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],h=new Array(576);i(h);var p=new Array(60);i(p);var g=new Array(512);i(g);var m=new Array(256);i(m);var y=new Array(29);i(y);var b,v,w,A=new Array(s);function C(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function E(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function x(e){return e<256?g[e]:g[256+(e>>>7)]}function S(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function I(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<>>=1,r<<=1}while(--t>0);return r>>>1}function T(e,t,r){var n,i,o=new Array(16),a=0;for(n=1;n<=c;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=_(o[s]++,s))}}function M(e){var t;for(t=0;t8?S(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function j(e,t,r,n){var i=2*t,o=2*r;return e[i]>1;r>=1;r--)D(e,o,r);i=u;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],D(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,D(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,u=t.dyn_tree,l=t.max_code,d=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,g=t.stat_desc.max_length,m=0;for(o=0;o<=c;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(o=u[2*u[2*(n=e.heap[r])+1]+1]+1)>g&&(o=g,m++),u[2*n+1]=o,n>l||(e.bl_count[o]++,a=0,n>=p&&(a=h[n-p]),s=u[2*n],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(d[2*n+1]+a)));if(0!==m){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,m-=2}while(m>0);for(o=g;0!==o;o--)for(n=e.bl_count[o];0!==n;)(i=e.heap[--r])>l||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(e,t),T(o,l,e.bl_count)}function N(e,t,r){var n,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s>=7;n0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t=3&&0===e.bl_tree[2*f[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?F(e,t,r,n):4===e.strategy||a===i?(I(e,2+(n?1:0),3),O(e,h,p)):(I(e,4+(n?1:0),3),function(e,t,r,n){var i;for(I(e,t-257,5),I(e,r-1,5),I(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(m[r]+o+1)]++,e.dyn_dtree[2*x(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){I(e,2,3),k(e,256,h),function(e){16===e.bi_valid?(S(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},644442:e=>{"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},321137:(e,t,r)=>{"use strict";var n=r(728328);t.certificate=r(236413);var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=o;var a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));t.PublicKey=s;var c=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=c;var u=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=u;var l=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=l,t.DSAparam=n.define("DSAparam",(function(){this.int()}));var d=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})),f=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=f,t.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},236413:(e,t,r)=>{"use strict";var n=r(728328),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),c=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),u=n.define("RDNSequence",(function(){this.seqof(c)})),l=n.define("Name",(function(){this.choice({rdnSequence:this.use(u)})})),d=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),f=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(l),this.key("validity").use(d),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));e.exports=p},24101:(e,t,r)=>{"use strict";var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(168078),s=r(201241),c=r(192861).Buffer;e.exports=function(e,t){var r,u=e.toString(),l=u.match(n);if(l){var d="aes"+l[1],f=c.from(l[2],"hex"),h=c.from(l[3].replace(/[\r\n]/g,""),"base64"),p=a(t,f.slice(0,8),parseInt(l[1],10)).key,g=[],m=s.createDecipheriv(d,p,f);g.push(m.update(h)),g.push(m.final()),r=c.concat(g)}else{var y=u.match(o);r=c.from(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(i)[1],data:r}}},778170:(e,t,r)=>{"use strict";var n=r(321137),i=r(415579),o=r(24101),a=r(201241),s=r(278396),c=r(192861).Buffer;function u(e){var t;"object"!=typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var r,u,l=o(e,t),d=l.tag,f=l.data;switch(d){case"CERTIFICATE":u=n.certificate.decode(f,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=n.PublicKey.decode(f,"der")),r=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=n.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":f=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,d=parseInt(o.split("-")[1],10)/8,f=s.pbkdf2Sync(t,r,n,d,"sha1"),h=a.createDecipheriv(o,f,u),p=[];return p.push(h.update(l)),p.push(h.final()),c.concat(p)}(f=n.EncryptedPrivateKey.decode(f,"der"),t);case"PRIVATE KEY":switch(r=(u=n.PrivateKey.decode(f,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:n.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=n.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(f,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(f,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(f,"der")};case"EC PRIVATE KEY":return{curve:(f=n.ECPrivateKey.decode(f,"der")).parameters.value,privateKey:f.privateKey};default:throw new Error("unknown key type "+d)}}u.signature=n.signature,e.exports=u},728328:(e,t,r)=>{var n=t;n.bignum=r(439404),n.define=r(14088).define,n.base=r(320788),n.constants=r(21922),n.decoders=r(579888),n.encoders=r(589240)},14088:(e,t,r)=>{var n=r(728328),i=r(256698);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(468961).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(n){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},450468:(e,t,r)=>{var n=r(256698),i=r(320788).Reporter,o=r(348287).Buffer;function a(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),t.t=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.d=s,s.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(e,t),t+=r.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},320788:(e,t,r)=>{var n=t;n.Reporter=r(984379).a,n.DecoderBuffer=r(450468).t,n.EncoderBuffer=r(450468).d,n.Node=r(642370)},642370:(e,t,r)=>{var n=r(320788).Reporter,i=r(320788).EncoderBuffer,o=r(320788).DecoderBuffer,a=r(443349),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function u(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=u;var l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var e=this._baseState,t={};l.forEach((function(r){t[r]=e[r]}));var r=new this.constructor(t.parent);return r._baseState=t,r},u.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},u.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),a.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){var t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){u.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}})),u.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},u.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,i=r.default,a=!0,s=null;if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){var c=null;if(null!==r.explicit?c=r.explicit:null!==r.implicit?c=r.implicit:null!==r.tag&&(c=r.tag),null!==c||r.any){if(a=this._peekTag(e,c,r.any),e.isError(a))return a}else{var u=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),a=!0}catch(p){a=!1}e.restore(u)}}if(r.obj&&a&&(n=e.enterObject()),a){if(null!==r.explicit){var l=this._decodeTag(e,r.explicit);if(e.isError(l))return l;e=l}var d=e.offset;if(null===r.use&&null===r.choice){if(r.any)u=e.save();var f=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(f))return f;r.any?i=e.raw(u):e=f}if(t&&t.track&&null!==r.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var h=new o(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(h,t)}}return r.obj&&a&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},u.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},u.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(o){var a=e.save(),s=r.choice[o];try{var c=s._decode(e,t);if(e.isError(c))return!1;n={type:o,value:c},i=!0}catch(u){return e.restore(a),!1}return!0}),this),i?n:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},u.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},u.prototype._encodeValue=function(e,t,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);var o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,r)._encode(e,t),s=!0;else if(i.children)a=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),c))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){var u=null!==i.implicit?i.implicit:i.tag,l=null===i.implicit?"universal":"context";null===u?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(u,s,l,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},u.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},984379:(e,t,r)=>{var n=r(256698);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.a=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},574265:(e,t,r)=>{var n=r(21922);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},21922:(e,t,r)=>{var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r})),t},n.der=r(574265)},370039:(e,t,r)=>{var n=r(256698),i=r(728328),o=i.base,a=i.bignum,s=i.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.Node.call(this,"der",e)}function l(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=!(32&r);if(31&~r)r&=31;else{var o=r;for(r=0;!(128&~o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function d(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(!(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o{var n=t;n.der=r(370039),n.pem=r(496650)},496650:(e,t,r)=>{var n=r(256698),i=r(348287).Buffer,o=r(370039);function a(e){o.call(this,e),this.enc="pem"}n(a,o),e.exports=a,a.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,u=0;u{var n=r(256698),i=r(348287).Buffer,o=r(728328),a=o.base,s=o.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){a.Node.call(this,"der",e)}function l(e){return e<10?"0"+e:e}e.exports=c,c.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(u,a.Node),u.prototype._encodeComposite=function(e,t,r,n){var o,a=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(i>=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[r||"universal"]<<6,i}(e,t,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=a,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var c=1,u=n.length;u>=256;u>>=8)c++;(o=new i(2+c))[0]=a,o[1]=128|c;u=1+c;for(var l=n.length;l>0;u--,l>>=8)o[u]=255&l;return this._createEncoderBuffer([o,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n=128;a>>=7)o++}var s=new i(o),c=s.length-1;for(n=e.length-1;n>=0;n--){a=e[n];for(s[c--]=127&a;(a>>=7)>0;)s[c--]=128|127&a}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[l(n.getFullYear()),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[l(n.getFullYear()%100),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;a>=256;a>>=8)n++;for(a=(o=new Array(n)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n{var n=t;n.der=r(578223),n.pem=r(978386)},978386:(e,t,r)=>{var n=r(256698),i=r(578223);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o{t.pbkdf2=r(143832),t.pbkdf2Sync=r(521352)},143832:(e,t,r)=>{var n,i,o=r(192861).Buffer,a=r(564196),s=r(902455),c=r(521352),u=r(793382),l=r.g.crypto&&r.g.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f=[];function h(){return i||(i=r.g.process&&r.g.process.nextTick?r.g.process.nextTick:r.g.queueMicrotask?r.g.queueMicrotask:r.g.setImmediate?r.g.setImmediate:r.g.setTimeout)}function p(e,t,r,n,i){return l.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return l.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)})).then((function(e){return o.from(e)}))}e.exports=function(e,t,i,g,m,y){"function"==typeof m&&(y=m,m=void 0);var b=d[(m=m||"sha1").toLowerCase()];if(b&&"function"==typeof r.g.Promise){if(a(i,g),e=u(e,s,"Password"),t=u(t,s,"Salt"),"function"!=typeof y)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){h()((function(){t(null,e)}))}),(function(e){h()((function(){t(e)}))}))}(function(e){if(r.g.process&&!r.g.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==f[e])return f[e];var t=p(n=n||o.alloc(8),n,10,128,e).then((function(){return!0})).catch((function(){return!1}));return f[e]=t,t}(b).then((function(r){return r?p(e,t,i,g,b):c(e,t,i,g,m)})),y)}else h()((function(){var r;try{r=c(e,t,i,g,m)}catch(n){return y(n)}y(null,r)}))}},902455:(e,t,r)=>{var n;if(r.g.process&&r.g.process.browser)n="utf-8";else if(r.g.process&&r.g.process.version){n=parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";e.exports=n},564196:e=>{var t=Math.pow(2,30)-1;e.exports=function(e,r){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof r)throw new TypeError("Key length not a number");if(r<0||r>t||r!=r)throw new TypeError("Bad key length")}},521352:(e,t,r)=>{var n=r(820320),i=r(566011),o=r(662802),a=r(192861).Buffer,s=r(564196),c=r(902455),u=r(793382),l=a.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(e,t,r){var s=function(e){function t(t){return o(e).update(t).digest()}function r(e){return(new i).update(e).digest()}return"rmd160"===e||"ripemd160"===e?r:"md5"===e?n:t}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=s(t):t.length{var n=r(192861).Buffer;e.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},913491:function(e){(function(){var t,r,n,i,o,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},r=process.hrtime,i=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),a=1e9*process.uptime(),o=i-a):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},376578:e=>{"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},633225:e=>{"use strict";"undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function(){e.call(null,t)}));case 3:return process.nextTick((function(){e.call(null,t,r)}));case 4:return process.nextTick((function(){e.call(null,t,r,n)}));default:for(i=new Array(a-1),o=0;o{"use strict";e.exports=r(709100)},445095:e=>{"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},550744:(e,t,r)=>{"use strict";var n=t,i=r(235643),o=r(553262);function a(e,t,r,n){var o=!1;if(t.resolvedType)if(t.resolvedType instanceof i){e("switch(d%s){",n);for(var a=t.resolvedType.values,s=Object.keys(a),c=0;c>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,u)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,u?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function s(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof i?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var o=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,o?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=o.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;n{"use strict";e.exports=function(e){var t=o.codegen(["r","l"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter((function(e){return e.map})).length?",k,value":""))("while(r.pos>>3){");for(var r=0;r>>3){")("case 1: k=r.%s(); break",s.keyType)("case 2:"),void 0===i.basic[c]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",c),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==i.long[s.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',u):t("%s[k]=value",u)):s.repeated?(t("if(!(%s&&%s.length))",u,u)("%s=[]",u),void 0!==i.packed[c]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos{"use strict";e.exports=function(e){for(var t,r=o.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),s=e.fieldsArray.slice().sort(o.compareFieldsById),c=0;c>>0,8|i.mapKey[u.keyType],u.keyType),void 0===f?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|f,d,t),r("}")("}")):u.repeated?(r("if(%s!=null&&%s.length){",t,t),u.packed&&void 0!==i.packed[d]?r("w.uint32(%i).fork()",(u.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",d,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===f?a(r,u,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(u.id<<3|f)>>>0,d,t)),r("}")):(u.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,u.name),void 0===f?a(r,u,l,t):r("w.uint32(%i).%s(%s)",(u.id<<3|f)>>>0,d,t))}return r("return w")};var n=r(235643),i=r(280361),o=r(553262);function a(e,t,r,n){return t.resolvedType.group?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},235643:(e,t,r)=>{"use strict";e.exports=a;var n=r(27209);((a.prototype=Object.create(n.prototype)).constructor=a).className="Enum";var i=r(8923),o=r(553262);function a(e,t,r,i,o,a){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=i,this.comments=o||{},this.valuesOptions=a,this.reserved=void 0,t)for(var s=Object.keys(t),c=0;c{"use strict";e.exports=u;var n=r(27209);((u.prototype=Object.create(n.prototype)).constructor=u).className="Field";var i,o=r(235643),a=r(280361),s=r(553262),c=/^required|optional|repeated$/;function u(e,t,r,i,o,u,l){if(s.isObject(i)?(l=o,u=i,i=o=void 0):s.isObject(o)&&(l=u,u=o,o=void 0),n.call(this,e,u),!s.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!s.isString(r))throw TypeError("type must be a string");if(void 0!==i&&!c.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!s.isString(o))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:void 0,this.type=r,this.id=t,this.extend=o||void 0,this.required="required"===i,this.optional=!this.required,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!s.Long&&void 0!==a.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=l}u.fromJSON=function(e,t){return new u(e,t.id,t.type,t.rule,t.extend,t.options,t.comment)},Object.defineProperty(u.prototype,"packed",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption("packed")),this._packed}}),u.prototype.setOption=function(e,t,r){return"packed"===e&&(this._packed=null),n.prototype.setOption.call(this,e,t,r)},u.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return s.toObject(["rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},u.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=a.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof o)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=s.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;s.base64.test(this.typeDefault)?s.base64.decode(this.typeDefault,e=s.newBuffer(s.base64.length(this.typeDefault)),0):s.utf8.write(this.typeDefault,e=s.newBuffer(s.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=s.emptyObject:this.repeated?this.defaultValue=s.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},u.d=function(e,t,r,n){return"function"==typeof t?t=s.decorateType(t).name:t&&"object"==typeof t&&(t=s.decorateEnum(t).name),function(i,o){s.decorateType(i.constructor).add(new u(o,e,t,r,{default:n}))}},u._configure=function(e){i=e}},925325:(e,t,r)=>{"use strict";var n=e.exports=r(524394);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(721080),n.decoder=r(27728),n.verifier=r(580420),n.converter=r(550744),n.ReflectionObject=r(27209),n.Namespace=r(8923),n.Root=r(545330),n.Enum=r(235643),n.Type=r(617882),n.Field=r(431344),n.OneOf=r(891457),n.MapField=r(688252),n.Service=r(809687),n.Method=r(688811),n.Message=r(422551),n.wrappers=r(906434),n.types=r(280361),n.util=r(553262),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},524394:(e,t,r)=>{"use strict";var n=t;function i(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(163449),n.BufferWriter=r(860818),n.Reader=r(416237),n.BufferReader=r(733158),n.util=r(593610),n.rpc=r(295047),n.roots=r(764529),n.configure=i,i()},709100:(e,t,r)=>{"use strict";var n=e.exports=r(925325);n.build="full",n.tokenize=r(590527),n.parse=r(224863),n.common=r(445095),n.Root._configure(n.Type,n.parse,n.common)},688252:(e,t,r)=>{"use strict";e.exports=a;var n=r(431344);((a.prototype=Object.create(n.prototype)).constructor=a).className="MapField";var i=r(280361),o=r(553262);function a(e,t,r,i,a,s){if(n.call(this,e,t,i,void 0,void 0,a,s),!o.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}a.fromJSON=function(e,t){return new a(e,t.id,t.keyType,t.type,t.options,t.comment)},a.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},a.prototype.resolve=function(){if(this.resolved)return this;if(void 0===i.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},a.d=function(e,t,r){return"function"==typeof r?r=o.decorateType(r).name:r&&"object"==typeof r&&(r=o.decorateEnum(r).name),function(n,i){o.decorateType(n.constructor).add(new a(i,e,t,r))}}},422551:(e,t,r)=>{"use strict";e.exports=i;var n=r(593610);function i(e){if(e)for(var t=Object.keys(e),r=0;r{"use strict";e.exports=o;var n=r(27209);((o.prototype=Object.create(n.prototype)).constructor=o).className="Method";var i=r(553262);function o(e,t,r,o,a,s,c,u,l){if(i.isObject(a)?(c=a,a=s=void 0):i.isObject(s)&&(c=s,s=void 0),void 0!==t&&!i.isString(t))throw TypeError("type must be a string");if(!i.isString(r))throw TypeError("requestType must be a string");if(!i.isString(o))throw TypeError("responseType must be a string");n.call(this,e,c),this.type=t||"rpc",this.requestType=r,this.requestStream=!!a||void 0,this.responseType=o,this.responseStream=!!s||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=u,this.parsedOptions=l}o.fromJSON=function(e,t){return new o(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0,"parsedOptions",this.parsedOptions])},o.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))}},8923:(e,t,r)=>{"use strict";e.exports=d;var n=r(27209);((d.prototype=Object.create(n.prototype)).constructor=d).className="Namespace";var i,o,a,s=r(431344),c=r(553262),u=r(891457);function l(e,t){if(e&&e.length){for(var r={},n=0;nt)return!0;return!1},d.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof d))throw Error("path conflicts with non-namespace objects")}else r.add(r=new d(n))}return t&&r.addJSON(t),r},d.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t-1)return n}else if(n instanceof d&&(n=n.lookup(e.slice(1),t,!0)))return n}else for(var i=0;i{"use strict";e.exports=o,o.className="ReflectionObject";var n,i=r(553262);function o(e,t){if(!i.isString(e))throw TypeError("name must be a string");if(t&&!i.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(o.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),o.prototype.toJSON=function(){throw Error()},o.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof n&&t._handleAdd(this)},o.prototype.onRemove=function(e){var t=e.root;t instanceof n&&t._handleRemove(this),this.parent=null,this.resolved=!1},o.prototype.resolve=function(){return this.resolved||this.root instanceof n&&(this.resolved=!0),this},o.prototype.getOption=function(e){if(this.options)return this.options[e]},o.prototype.setOption=function(e,t,r){return r&&this.options&&void 0!==this.options[e]||((this.options||(this.options={}))[e]=t),this},o.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var n=this.parsedOptions;if(r){var o=n.find((function(t){return Object.prototype.hasOwnProperty.call(t,e)}));if(o){var a=o[e];i.setProperty(a,r,t)}else(o={})[e]=i.setProperty({},r,t),n.push(o)}else{var s={};s[e]=t,n.push(s)}return this},o.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),n=0;n{"use strict";e.exports=a;var n=r(27209);((a.prototype=Object.create(n.prototype)).constructor=a).className="OneOf";var i=r(431344),o=r(553262);function a(e,t,r,i){if(Array.isArray(t)||(r=t,t=void 0),n.call(this,e,r),void 0!==t&&!Array.isArray(t))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=i}function s(e){if(e.parent)for(var t=0;t-1&&this.oneof.splice(t,1),e.partOf=null,this},a.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t{"use strict";e.exports=x,x.filename=null,x.defaults={keepCase:!1};var n=r(590527),i=r(545330),o=r(617882),a=r(431344),s=r(688252),c=r(891457),u=r(235643),l=r(809687),d=r(688811),f=r(280361),h=r(553262),p=/^[1-9][0-9]*$/,g=/^-?[1-9][0-9]*$/,m=/^0[x][0-9a-fA-F]+$/,y=/^-?0[x][0-9a-fA-F]+$/,b=/^0[0-7]+$/,v=/^-?0[0-7]+$/,w=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,A=/^[a-zA-Z_][a-zA-Z_0-9]*$/,C=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,E=/^(?:\.[a-zA-Z_][a-zA-Z_0-9]*)+$/;function x(e,t,r){t instanceof i||(r=t,t=new i),r||(r=x.defaults);var S,I,k,_,T,M=r.preferTrailingComment||!1,P=n(e,r.alternateCommentMode||!1),j=P.next,D=P.push,O=P.peek,B=P.skip,N=P.cmnt,R=!0,L=!1,F=t,U=r.keepCase?function(e){return e}:h.camelCase;function z(e,t,r){var n=x.filename;return r||(x.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(n?n+", ":"")+"line "+P.line+")")}function H(){var e,t=[];do{if('"'!==(e=j())&&"'"!==e)throw z(e);t.push(j()),B(e),e=O()}while('"'===e||"'"===e);return t.join("")}function V(e){var t=j();switch(t){case"'":case'"':return D(t),H();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return function(e,t){var r=1;"-"===e.charAt(0)&&(r=-1,e=e.substring(1));switch(e){case"inf":case"INF":case"Inf":return r*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(p.test(e))return r*parseInt(e,10);if(m.test(e))return r*parseInt(e,16);if(b.test(e))return r*parseInt(e,8);if(w.test(e))return r*parseFloat(e);throw z(e,"number",t)}(t,!0)}catch(r){if(e&&C.test(t))return t;throw z(t,"value")}}function K(e,t){var r,n;do{!t||'"'!==(r=O())&&"'"!==r?e.push([n=G(j()),B("to",!0)?G(j()):n]):e.push(H())}while(B(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Y(i,(function(e){if("option"!==e)throw z(e);ee(i,e),B(";")}),(function(){ne(i)}))}function G(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw z(e,"id");if(g.test(e))return parseInt(e,10);if(y.test(e))return parseInt(e,16);if(v.test(e))return parseInt(e,8);throw z(e,"id")}function q(){if(void 0!==S)throw z("package");if(S=j(),!C.test(S))throw z(S,"name");F=F.define(S),B(";")}function Q(){var e,t=O();switch(t){case"weak":e=k||(k=[]),j();break;case"public":j();default:e=I||(I=[])}t=H(),B(";"),e.push(t)}function W(){if(B("="),_=H(),!(L="proto3"===_)&&"proto2"!==_)throw z(_,"syntax");t.setOption("syntax",_),B(";")}function J(e,t){switch(t){case"option":return ee(e,t),B(";"),!0;case"message":return Z(e,t),!0;case"enum":return X(e,t),!0;case"service":return function(e,t){if(!A.test(t=j()))throw z(t,"service name");var r=new l(t);Y(r,(function(e){if(!J(r,e)){if("rpc"!==e)throw z(e);!function(e,t){var r=N(),n=t;if(!A.test(t=j()))throw z(t,"name");var i,o,a,s,c=t;B("("),B("stream",!0)&&(o=!0);if(!C.test(t=j()))throw z(t);i=t,B(")"),B("returns"),B("("),B("stream",!0)&&(s=!0);if(!C.test(t=j()))throw z(t);a=t,B(")");var u=new d(c,n,i,a,o,s);u.comment=r,Y(u,(function(e){if("option"!==e)throw z(e);ee(u,e),B(";")})),e.add(u)}(r,e)}})),e.add(r)}(e,t),!0;case"extend":return function(e,t){if(!C.test(t=j()))throw z(t,"reference");var r=t;Y(null,(function(t){switch(t){case"required":case"repeated":$(e,t,r);break;case"optional":$(e,L?"proto3_optional":"optional",r);break;default:if(!L||!C.test(t))throw z(t);D(t),$(e,"optional",r)}}))}(e,t),!0}return!1}function Y(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=N()),e.filename=x.filename),B("{",!0)){for(var i;"}"!==(i=j());)t(i);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||M)&&(e.comment=N(n)||e.comment)}function Z(e,t){if(!A.test(t=j()))throw z(t,"type name");var r=new o(t);Y(r,(function(e){if(!J(r,e))switch(e){case"map":!function(e){B("<");var t=j();if(void 0===f.mapKey[t])throw z(t,"type");B(",");var r=j();if(!C.test(r))throw z(r,"type");B(">");var n=j();if(!A.test(n))throw z(n,"name");B("=");var i=new s(U(n),G(j()),t,r);Y(i,(function(e){if("option"!==e)throw z(e);ee(i,e),B(";")}),(function(){ne(i)})),e.add(i)}(r);break;case"required":case"repeated":$(r,e);break;case"optional":$(r,L?"proto3_optional":"optional");break;case"oneof":!function(e,t){if(!A.test(t=j()))throw z(t,"name");var r=new c(U(t));Y(r,(function(e){"option"===e?(ee(r,e),B(";")):(D(e),$(r,"optional"))})),e.add(r)}(r,e);break;case"extensions":K(r.extensions||(r.extensions=[]));break;case"reserved":K(r.reserved||(r.reserved=[]),!0);break;default:if(!L||!C.test(e))throw z(e);D(e),$(r,"optional")}})),e.add(r)}function $(e,t,r){var n=j();if("group"!==n){for(;n.endsWith(".")||O().startsWith(".");)n+=j();if(!C.test(n))throw z(n,"type");var i=j();if(!A.test(i))throw z(i,"name");i=U(i),B("=");var s=new a(i,G(j()),n,t,r);if(Y(s,(function(e){if("option"!==e)throw z(e);ee(s,e),B(";")}),(function(){ne(s)})),"proto3_optional"===t){var u=new c("_"+i);s.setOption("proto3_optional",!0),u.add(s),e.add(u)}else e.add(s);L||!s.repeated||void 0===f.packed[n]&&void 0!==f.basic[n]||s.setOption("packed",!1,!0)}else!function(e,t){var r=j();if(!A.test(r))throw z(r,"name");var n=h.lcFirst(r);r===n&&(r=h.ucFirst(r));B("=");var i=G(j()),s=new o(r);s.group=!0;var c=new a(n,i,r,t);c.filename=x.filename,Y(s,(function(e){switch(e){case"option":ee(s,e),B(";");break;case"required":case"repeated":$(s,e);break;case"optional":$(s,L?"proto3_optional":"optional");break;case"message":Z(s,e);break;case"enum":X(s,e);break;default:throw z(e)}})),e.add(s).add(c)}(e,t)}function X(e,t){if(!A.test(t=j()))throw z(t,"name");var r=new u(t);Y(r,(function(e){switch(e){case"option":ee(r,e),B(";");break;case"reserved":K(r.reserved||(r.reserved=[]),!0);break;default:!function(e,t){if(!A.test(t))throw z(t,"name");B("=");var r=G(j(),!0),n={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Y(n,(function(e){if("option"!==e)throw z(e);ee(n,e),B(";")}),(function(){ne(n)})),e.add(t,r,n.comment,n.options)}(r,e)}})),e.add(r)}function ee(e,t){var r=B("(",!0);if(!C.test(t=j()))throw z(t,"name");var n,i=t,o=i;r&&(B(")"),o=i="("+i+")",t=O(),E.test(t)&&(n=t.slice(1),i+=t,j())),B("="),function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,o,te(e,i),n)}function te(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!A.test(T=j()))throw z(T,"name");if(null===T)throw z(T,"end of input");var n,i=T;if(B(":",!0),"{"===O())n=te(e,t+"."+T);else if("["===O()){var o;if(n=[],B("[",!0)){do{o=V(!0),n.push(o)}while(B(",",!0));B("]"),void 0!==o&&re(e,t+"."+T,o)}}else n=V(!0),re(e,t+"."+T,n);var a=r[i];a&&(n=[].concat(a).concat(n)),r[i]=n,B(",",!0),B(";",!0)}return r}var s=V(!0);return re(e,t,s),s}function re(e,t,r){e.setOption&&e.setOption(t,r)}function ne(e){if(B("[",!0)){do{ee(e,"option")}while(B(",",!0));B("]")}return e}for(;null!==(T=j());)switch(T){case"package":if(!R)throw z(T);q();break;case"import":if(!R)throw z(T);Q();break;case"syntax":if(!R)throw z(T);W();break;case"option":ee(F,T),B(";");break;default:if(J(F,T)){R=!1;continue}throw z(T)}return x.filename=null,{package:S,imports:I,weakImports:k,syntax:_,root:t}}},416237:(e,t,r)=>{"use strict";e.exports=c;var n,i=r(593610),o=i.LongBits,a=i.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},d=function(){return i.Buffer?function(e){return(c.create=function(e){return i.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function f(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8);return new o(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}c.create=d(),c.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,c.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return u}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return h(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|h(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw s(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=i.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},c.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){n=e,c.create=d(),n._configure();var t=i.Long?"toLong":"toNumber";i.merge(c.prototype,{int64:function(){return f.call(this)[t](!1)},uint64:function(){return f.call(this)[t](!0)},sint64:function(){return f.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},733158:(e,t,r)=>{"use strict";e.exports=o;var n=r(416237);(o.prototype=Object.create(n.prototype)).constructor=o;var i=r(593610);function o(e){n.call(this,e)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},545330:(e,t,r)=>{"use strict";e.exports=d;var n=r(8923);((d.prototype=Object.create(n.prototype)).constructor=d).className="Root";var i,o,a,s=r(431344),c=r(235643),u=r(891457),l=r(553262);function d(e){n.call(this,"",e),this.deferred=[],this.files=[]}function f(){}d.fromJSON=function(e,t){return t||(t=new d),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},d.prototype.resolvePath=l.path.resolve,d.prototype.fetch=l.fetch,d.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var i=this;if(!n)return l.asPromise(e,i,t,r);var s=n===f;function c(e,t){if(n){if(s)throw e;var r=n;n=null,r(e,t)}}function u(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in a)return r}return null}function d(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){o.filename=e;var n,a=o(t,i,r),d=0;if(a.imports)for(;d-1))if(i.files.push(e),e in a)s?d(e,a[e]):(++p,setTimeout((function(){--p,d(e,a[e])})));else if(s){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(o){return void(t||c(o))}d(e,r)}else++p,i.fetch(e,(function(r,o){--p,n&&(r?t?p||c(null,i):c(r):d(e,o))}))}var p=0;l.isString(t)&&(t=[t]);for(var g,m=0;m-1&&this.deferred.splice(t,1)}}else if(e instanceof c)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{"use strict";e.exports={}},295047:(e,t,r)=>{"use strict";t.Service=r(427595)},427595:(e,t,r)=>{"use strict";e.exports=i;var n=r(593610);function i(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,r,i,o,a){if(!o)throw TypeError("request must be specified");var s=this;if(!a)return n.asPromise(e,s,t,r,i,o);if(s.rpcImpl)try{return s.rpcImpl(t,r[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),(function(e,r){if(e)return s.emit("error",e,t),a(e);if(null!==r){if(!(r instanceof i))try{r=i[s.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return s.emit("error",e,t),a(e)}return s.emit("data",r,t),a(null,r)}s.end(!0)}))}catch(c){return s.emit("error",c,t),void setTimeout((function(){a(c)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},809687:(e,t,r)=>{"use strict";e.exports=s;var n=r(8923);((s.prototype=Object.create(n.prototype)).constructor=s).className="Service";var i=r(688811),o=r(553262),a=r(295047);function s(e,t){n.call(this,e,t),this.methods={},this._methodsArray=null}function c(e){return e._methodsArray=null,e}s.fromJSON=function(e,t){var r=new s(e,t.options);if(t.methods)for(var n=Object.keys(t.methods),o=0;o{"use strict";e.exports=d;var t=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,i=/^ *[*/]+ */,o=/^\s*\*?\/*/,a=/\n/g,s=/\s/,c=/\\(.?)/g,u={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(c,(function(e,t){switch(t){case"\\":case"":return t;default:return u[t]||""}}))}function d(e,c){e=e.toString();var u=0,d=e.length,f=1,h=0,p={},g=[],m=null;function y(e){return Error("illegal "+e+" (line "+f+")")}function b(t){return e.charAt(t)}function v(t,r,n){var s,u={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(c?2:3);do{if(--l<0||"\n"===(s=e.charAt(l))){u.lineEmpty=!0;break}}while(" "===s||"\t"===s);for(var d=e.substring(t,r).split(a),g=0;g0)return g.shift();if(m)return function(){var t="'"===m?n:r;t.lastIndex=u-1;var i=t.exec(e);if(!i)throw y("string");return u=t.lastIndex,E(m),m=null,l(i[1])}();var i,o,a,h,p,C=0===u;do{if(u===d)return null;for(i=!1;s.test(a=b(u));)if("\n"===a&&(C=!0,++f),++u===d)return null;if("/"===b(u)){if(++u===d)throw y("comment");if("/"===b(u))if(c){if(h=u,p=!1,w(u-1)){p=!0;do{if((u=A(u))===d)break;if(u++,!C)break}while(w(u))}else u=Math.min(d,A(u)+1);p&&(v(h,u,C),C=!0),f++,i=!0}else{for(p="/"===b(h=u+1);"\n"!==b(++u);)if(u===d)return null;++u,p&&(v(h,u-1,C),C=!0),++f,i=!0}else{if("*"!==(a=b(u)))return"/";h=u+1,p=c||"*"===b(h);do{if("\n"===a&&++f,++u===d)throw y("comment");o=a,a=b(u)}while("*"!==o||"/"!==a);++u,p&&(v(h,u-2,C),C=!0),i=!0}}}while(i);var x=u;if(t.lastIndex=0,!t.test(b(x++)))for(;x{"use strict";e.exports=b;var n=r(8923);((b.prototype=Object.create(n.prototype)).constructor=b).className="Type";var i=r(235643),o=r(891457),a=r(431344),s=r(688252),c=r(809687),u=r(422551),l=r(416237),d=r(163449),f=r(553262),h=r(721080),p=r(27728),g=r(580420),m=r(550744),y=r(906434);function b(e,t){n.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function v(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(b.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t{"use strict";var n=t,i=r(553262),o=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function a(e,t){var r=0,n={};for(t|=0;r{"use strict";var n,i,o=e.exports=r(593610),a=r(764529);o.codegen=r(248561),o.fetch=r(595212),o.path=r(579207),o.fs=o.inquire("fs"),o.toArray=function(e){if(e){for(var t=Object.keys(e),r=new Array(t.length),n=0;n0)t[i]=e(t[i]||{},r,n);else{var o=t[i];o&&(n=[].concat(o).concat(n)),t[i]=n}return t}(e,t=t.split("."),r)},Object.defineProperty(o,"decorateRoot",{get:function(){return a.decorated||(a.decorated=new(r(545330)))}})},732239:(e,t,r)=>{"use strict";e.exports=i;var n=r(593610);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new i(r,n)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(n.isString(e)){if(!n.Long)return i.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):o},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;i.fromHash=function(e){return e===a?o:new i((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},593610:function(e,t,r){"use strict";var n=t;function i(e,t,r){for(var n=Object.keys(t),i=0;i0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(t){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=i,n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;r{"use strict";e.exports=function(e){var t=i.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),r=e.oneofsArray,n={};r.length&&t("var p={}");for(var c=0;c{"use strict";var n=t,i=r(422551);n[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var t=e["@type"].substring(e["@type"].lastIndexOf("/")+1),r=this.lookup(t);if(r){var n="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return-1===n.indexOf("/")&&(n="/"+n),this.create({type_url:n,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){var r="",n="";if(t&&t.json&&e.type_url&&e.value){n=e.type_url.substring(e.type_url.lastIndexOf("/")+1),r=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var o=this.lookup(n);o&&(e=o.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof i){var a=e.$type.toObject(e,t);return""===r&&(r="type.googleapis.com/"),n=r+("."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName),a["@type"]=n,a}return this.toObject(e,t)}}},163449:(e,t,r)=>{"use strict";e.exports=d;var n,i=r(593610),o=i.LongBits,a=i.base64,s=i.utf8;function c(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function u(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function d(){this.len=0,this.head=new c(u,0,0),this.tail=this.head,this.states=null}var f=function(){return i.Buffer?function(){return(d.create=function(){return new n})()}:function(){return new d}};function h(e,t,r){t[r]=255&e}function p(e,t){this.len=e,this.next=void 0,this.val=t}function g(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}d.create=f(),d.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(d.alloc=i.pool(d.alloc,i.Array.prototype.subarray)),d.prototype._push=function(e,t,r){return this.tail=this.tail.next=new c(e,t,r),this.len+=t,this},p.prototype=Object.create(c.prototype),p.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(g,10,o.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=o.from(e);return this._push(g,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(g,t.length(),t)},d.prototype.bool=function(e){return this._push(h,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var y=i.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(i.isString(e)){var r=d.alloc(t=a.length(e));a.decode(e,r,0),e=r}return this.uint32(t)._push(y,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(h,1,0)},d.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new c(u,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},d._configure=function(e){n=e,d.create=f(),n._configure()}},860818:(e,t,r)=>{"use strict";e.exports=o;var n=r(163449);(o.prototype=Object.create(n.prototype)).constructor=o;var i=r(593610);function o(){n.call(this)}function a(e,t,r){e.length<40?i.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},o._configure()},297168:(e,t,r)=>{t.publicEncrypt=r(828902),t.privateDecrypt=r(277362),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},348206:(e,t,r)=>{var n=r(747108),i=r(192861).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,a=i.alloc(0),s=0;a.length{var n=r(778170),i=r(348206),o=r(352061),a=r(439404),s=r(567332),c=r(747108),u=r(299247),l=r(192861).Buffer;e.exports=function(e,t,r){var d;d=e.padding?e.padding:r?1:4;var f,h=n(e),p=h.modulus.byteLength();if(t.length>p||new a(t).cmp(h.modulus)>=0)throw new Error("decryption error");f=r?u(new a(t),h):s(t,h);var g=l.alloc(p-f.length);if(f=l.concat([g,f],p),4===d)return function(e,t){var r=e.modulus.byteLength(),n=c("sha1").update(l.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),u=t.slice(a+1),d=o(s,i(u,a)),f=o(u,i(d,r-a-1));if(function(e,t){e=l.from(e),t=l.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,f,r);if(3===d)return f;throw new Error("unknown padding")}},828902:(e,t,r)=>{var n=r(778170),i=r(553209),o=r(747108),a=r(348206),s=r(352061),c=r(439404),u=r(299247),l=r(567332),d=r(192861).Buffer;e.exports=function(e,t,r){var f;f=e.padding?e.padding:r?1:4;var h,p=n(e);if(4===f)h=function(e,t){var r=e.modulus.byteLength(),n=t.length,u=o("sha1").update(d.alloc(0)).digest(),l=u.length,f=2*l;if(n>r-f-2)throw new Error("message too long");var h=d.alloc(r-n-f-2),p=r-l-1,g=i(l),m=s(d.concat([u,h,d.alloc(1,1),t],p),a(g,p)),y=s(g,a(m,l));return new c(d.concat([d.alloc(1),y,m],r))}(p,t);else if(1===f)h=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?d.alloc(a-o-3,255):function(e){var t,r=d.allocUnsafe(e),n=0,o=i(2*e),a=0;for(;n=0)throw new Error("data too long for modulus")}return r?l(h,p):u(h,p)}},299247:(e,t,r)=>{var n=r(439404),i=r(192861).Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},352061:e=>{e.exports=function(e,t){for(var r=e.length,n=-1;++n= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,h=String.fromCharCode;function p(e){throw new RangeError(d[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function m(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(l,".")).split("."),t).join(".")}function y(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function v(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?f(e/700):e>>1,e+=f(e/t);e>455;n+=s)e=f(e/35);return f(n+36*e/(e+38))}function A(e){var t,r,n,i,o,c,u,l,d,h,g,m=[],y=e.length,v=0,A=128,C=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&p("not-basic"),m.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=y&&p("invalid-input"),((l=(g=e.charCodeAt(i++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:s)>=s||l>f((a-v)/c))&&p("overflow"),v+=l*c,!(l<(d=u<=C?1:u>=C+26?26:u-C));u+=s)c>f(a/(h=s-d))&&p("overflow"),c*=h;C=w(v-o,t=m.length+1,0==o),f(v/t)>a-A&&p("overflow"),A+=f(v/t),v%=t,m.splice(v++,0,A)}return b(m)}function C(e){var t,r,n,i,o,c,u,l,d,g,m,b,A,C,E,x=[];for(b=(e=y(e)).length,t=128,r=0,o=72,c=0;c=t&&mf((a-r)/(A=n+1))&&p("overflow"),r+=(u-t)*A,t=u,c=0;ca&&p("overflow"),m==t){for(l=r,d=s;!(l<(g=d<=o?1:d>=o+26?26:d-o));d+=s)E=l-g,C=s-g,x.push(h(v(g+E%C,0))),l=f(E/C);x.push(h(v(l,0))),o=w(r,A,n==i),r=0,++n}++r,++t}return x.join("")}o={version:"1.4.1",ucs2:{decode:y,encode:b},decode:A,encode:C,toASCII:function(e){return m(e,(function(e){return u.test(e)?"xn--"+C(e):e}))},toUnicode:function(e){return m(e,(function(e){return c.test(e)?A(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},173992:(e,t)=>{"use strict";var r=Object.prototype.hasOwnProperty;function n(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return null}}function i(e){try{return encodeURIComponent(e)}catch(t){return null}}t.stringify=function(e,t){t=t||"";var n,o,a=[];for(o in"string"!=typeof t&&(t="?"),e)if(r.call(e,o)){if((n=e[o])||null!=n&&!isNaN(n)||(n=""),o=i(o),n=i(n),null===o||null===n)continue;a.push(o+"="+n)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,i={};t=r.exec(e);){var o=n(t[1]),a=n(t[2]);null===o||null===a||o in i||(i[o]=a)}return i}},979596:(e,t,r)=>{let n;e.exports="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:r.g):e=>(n||(n=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))},493146:(e,t,r)=>{for(var n=r(913491),i="undefined"==typeof window?r.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],c=i["cancel"+a]||i["cancelRequest"+a],u=0;!s&&u{"use strict";var n=65536,i=4294967295;var o=r(192861).Buffer,a=r.g.crypto||r.g.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>i)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(e);if(e>0)if(e>n)for(var s=0;s{"use strict";function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=r(192861),o=r(553209),a=i.Buffer,s=i.kMaxLength,c=r.g.crypto||r.g.msCrypto,u=Math.pow(2,32)-1;function l(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>s)throw new RangeError("buffer too small")}function f(e,t,r,n){if(process.browser){var i=e.buffer,a=new Uint8Array(i,t,r);return c.getRandomValues(a),n?void process.nextTick((function(){n(null,e)})):e}if(!n)return o(r).copy(e,t),e;o(r,(function(r,i){if(r)return n(r);i.copy(e,t),n(null,e)}))}c&&c.getRandomValues||!process.browser?(t.randomFill=function(e,t,n,i){if(!(a.isBuffer(e)||e instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-t;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return l(t,e.length),d(n,t,e.length),f(e,t,n,i)},t.randomFillSync=function(e,t,n){void 0===t&&(t=0);if(!(a.isBuffer(e)||e instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');l(t,e.length),void 0===n&&(n=e.length-t);return d(n,t,e.length),f(e,t,n)}):(t.randomFill=n,t.randomFillSync=n)},801612:(e,t,r)=>{"use strict";r.d(t,{AnD:()=>u,Gp9:()=>c,H1h:()=>a,O4U:()=>i,U2A:()=>l,jNV:()=>s,ok6:()=>o});var n=r(910383);function i(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"}}]})(e)}function o(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"}}]})(e)}function a(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"}}]})(e)}function s(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"}}]})(e)}function c(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"}}]})(e)}function u(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"}}]})(e)}function l(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M466.27 286.69C475.04 271.84 480 256 480 236.85c0-44.015-37.218-85.58-85.82-85.58H357.7c4.92-12.81 8.85-28.13 8.85-46.54C366.55 31.936 328.86 0 271.28 0c-61.607 0-58.093 94.933-71.76 108.6-22.747 22.747-49.615 66.447-68.76 83.4H32c-17.673 0-32 14.327-32 32v240c0 17.673 14.327 32 32 32h64c14.893 0 27.408-10.174 30.978-23.95 44.509 1.001 75.06 39.94 177.802 39.94 7.22 0 15.22.01 22.22.01 77.117 0 111.986-39.423 112.94-95.33 13.319-18.425 20.299-43.122 17.34-66.99 9.854-18.452 13.664-40.343 8.99-62.99zm-61.75 53.83c12.56 21.13 1.26 49.41-13.94 57.57 7.7 48.78-17.608 65.9-53.12 65.9h-37.82c-71.639 0-118.029-37.82-171.64-37.82V240h10.92c28.36 0 67.98-70.89 94.54-97.46 28.36-28.36 18.91-75.63 37.82-94.54 47.27 0 47.27 32.98 47.27 56.73 0 39.17-28.36 56.72-28.36 94.54h103.99c21.11 0 37.73 18.91 37.82 37.82.09 18.9-12.82 37.81-22.27 37.81 13.489 14.555 16.371 45.236-5.21 65.62zM88 432c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"}}]})(e)}},571301:e=>{(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};t.r(r),t.d(r,{default:()=>i});var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return t=[{key:"changeHeightWidth",value:function(e,t,r,n,i,o){return r>n&&(e=Math.round(e*n/r),r=n),e>t&&(r=Math.round(r*t/e),e=t),i&&r5&&void 0!==arguments[5]?arguments[5]:"jpeg",a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,s=(arguments.length>6&&void 0!==arguments[6]?arguments[6]:100)/100,c=document.createElement("canvas"),u=e.width,l=e.height,d=this.changeHeightWidth(l,r,u,t,n,i);!a||90!==a&&270!==a?(c.width=d.width,c.height=d.height):(c.width=d.height,c.height=d.width),u=d.width,l=d.height;var f=c.getContext("2d");return f.fillStyle="rgba(0, 0, 0, 0)",f.fillRect(0,0,u,l),f.imageSmoothingEnabled&&f.imageSmoothingQuality&&(f.imageSmoothingQuality="high"),a&&(f.rotate(a*Math.PI/180),90===a?f.translate(0,-c.width):180===a?f.translate(-c.width,-c.height):270===a?f.translate(-c.height,0):0!==a&&360!==a||f.translate(0,0)),f.drawImage(e,0,0,u,l),c.toDataURL("image/".concat(o),s)}},{key:"b64toByteArrays",value:function(e,t){t=t||"image/jpeg";for(var r=atob(e.toString().replace(/^data:image\/(png|jpeg|jpg|webp);base64,/,"")),n=[],i=0;i7&&void 0!==arguments[7]?arguments[7]:"base64",u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,d=new FileReader;if(!t)throw Error("File Not Found!");if(t.type&&!t.type.includes("image"))throw Error("File Is NOT Image!");d.readAsDataURL(t),d.onload=function(){var f=new Image;f.src=d.result,f.onload=function(){var d=e.resizeAndRotateImage(f,r,n,u,l,i,o,a),h="image/".concat(i);switch(c){case"blob":var p=e.b64toBlob(d,h);s(p);break;case"base64":default:s(d);break;case"file":var g=t.name.toString().replace(/(png|jpeg|jpg|webp)$/i,"").concat(i.toString()),m=e.b64toFile(d,g,h);s(m)}}},d.onerror=function(e){throw Error(e)}}}],t&&function(e,t){for(var r=0;r{var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))c.call(e,s)||s===r||i(e,s,{get:()=>t[s],enumerable:!(n=o(t,s))||n.enumerable});return e},l=(e,t,r)=>(r=null!=e?n(s(e)):{},u(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),d=(e,t,r)=>(((e,t,r)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),f={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(f,{default:()=>y}),e.exports=(e=>u(i({},"__esModule",{value:!0}),e))(f);var h=l(r(296540)),p=l(r(730115)),g=r(788259),m=r(287032);class y extends h.Component{constructor(){super(...arguments),d(this,"mounted",!1),d(this,"isReady",!1),d(this,"isPlaying",!1),d(this,"isLoading",!0),d(this,"loadOnReady",null),d(this,"startOnPlay",!0),d(this,"seekOnPlay",null),d(this,"onDurationCalled",!1),d(this,"handlePlayerMount",(e=>{this.player||(this.player=e,this.player.load(this.props.url)),this.progress()})),d(this,"getInternalPlayer",(e=>this.player?this.player[e]:null)),d(this,"progress",(()=>{if(this.props.url&&this.player&&this.isReady){const e=this.getCurrentTime()||0,t=this.getSecondsLoaded(),r=this.getDuration();if(r){const n={playedSeconds:e,played:e/r};null!==t&&(n.loadedSeconds=t,n.loaded=t/r),n.playedSeconds===this.prevPlayed&&n.loadedSeconds===this.prevLoaded||this.props.onProgress(n),this.prevPlayed=n.playedSeconds,this.prevLoaded=n.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)})),d(this,"handleReady",(()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:e,playing:t,volume:r,muted:n}=this.props;e(),n||null===r||this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):t&&this.player.play(),this.handleDurationCheck()})),d(this,"handlePlay",(()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:e,onPlay:t,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&1!==r&&this.player.setPlaybackRate(r),e(),this.startOnPlay=!1),t(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()})),d(this,"handlePause",(e=>{this.isPlaying=!1,this.isLoading||this.props.onPause(e)})),d(this,"handleEnded",(()=>{const{activePlayer:e,loop:t,onEnded:r}=this.props;e.loopOnEnded&&t&&this.seekTo(0),t||(this.isPlaying=!1,r())})),d(this,"handleError",((...e)=>{this.isLoading=!1,this.props.onError(...e)})),d(this,"handleDurationCheck",(()=>{clearTimeout(this.durationCheckTimeout);const e=this.getDuration();e?this.onDurationCalled||(this.props.onDuration(e),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)})),d(this,"handleLoaded",(()=>{this.isLoading=!1}))}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(e){if(!this.player)return;const{url:t,playing:r,volume:n,muted:i,playbackRate:o,pip:a,loop:s,activePlayer:c,disableDeferredLoading:u}=this.props;if(!(0,p.default)(e.url,t)){if(this.isLoading&&!c.forceLoad&&!u&&!(0,m.isMediaStream)(t))return console.warn(`ReactPlayer: the attempt to load ${t} is being deferred until the player has loaded`),void(this.loadOnReady=t);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(t,this.isReady)}e.playing||!r||this.isPlaying||this.player.play(),e.playing&&!r&&this.isPlaying&&this.player.pause(),!e.pip&&a&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!a&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==n&&null!==n&&this.player.setVolume(n),e.muted!==i&&(i?this.player.mute():(this.player.unmute(),null!==n&&setTimeout((()=>this.player.setVolume(n))))),e.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),e.loop!==s&&this.player.setLoop&&this.player.setLoop(s)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(e,t,r){if(!this.isReady)return void(0!==e&&(this.seekOnPlay=e,setTimeout((()=>{this.seekOnPlay=null}),5e3)));if(t?"fraction"===t:e>0&&e<1){const t=this.player.getDuration();return t?void this.player.seekTo(t*e,r):void console.warn("ReactPlayer: could not seek using fraction \u2013\xa0duration not yet available")}this.player.seekTo(e,r)}render(){const e=this.props.activePlayer;return e?h.default.createElement(e,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}d(y,"displayName","Player"),d(y,"propTypes",g.propTypes),d(y,"defaultProps",g.defaultProps)},474563:(e,t,r)=>{var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))c.call(e,s)||s===r||i(e,s,{get:()=>t[s],enumerable:!(n=o(t,s))||n.enumerable});return e},l=(e,t,r)=>(r=null!=e?n(s(e)):{},u(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),d=(e,t,r)=>(((e,t,r)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),f={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(f,{createReactPlayer:()=>I}),e.exports=(e=>u(i({},"__esModule",{value:!0}),e))(f);var h=l(r(296540)),p=l(r(914744)),g=l(r(241811)),m=l(r(730115)),y=r(788259),b=r(287032),v=l(r(206620));const w=(0,b.lazy)((()=>r.e(36353).then(r.t.bind(r,33941,23)))),A="undefined"!=typeof window&&window.document&&"undefined"!=typeof document,C=void 0!==r.g&&r.g.window&&r.g.window.document,E=Object.keys(y.propTypes),x=A||C?h.Suspense:()=>null,S=[],I=(e,t)=>{var r;return r=class extends h.Component{constructor(){super(...arguments),d(this,"state",{showPreview:!!this.props.light}),d(this,"references",{wrapper:e=>{this.wrapper=e},player:e=>{this.player=e}}),d(this,"handleClickPreview",(e=>{this.setState({showPreview:!1}),this.props.onClickPreview(e)})),d(this,"showPreview",(()=>{this.setState({showPreview:!0})})),d(this,"getDuration",(()=>this.player?this.player.getDuration():null)),d(this,"getCurrentTime",(()=>this.player?this.player.getCurrentTime():null)),d(this,"getSecondsLoaded",(()=>this.player?this.player.getSecondsLoaded():null)),d(this,"getInternalPlayer",((e="player")=>this.player?this.player.getInternalPlayer(e):null)),d(this,"seekTo",((e,t,r)=>{if(!this.player)return null;this.player.seekTo(e,t,r)})),d(this,"handleReady",(()=>{this.props.onReady(this)})),d(this,"getActivePlayer",(0,g.default)((r=>{for(const t of[...S,...e])if(t.canPlay(r))return t;return t||null}))),d(this,"getConfig",(0,g.default)(((e,t)=>{const{config:r}=this.props;return p.default.all([y.defaultProps.config,y.defaultProps.config[t]||{},r,r[t]||{}])}))),d(this,"getAttributes",(0,g.default)((e=>(0,b.omit)(this.props,E)))),d(this,"renderActivePlayer",(e=>{if(!e)return null;const t=this.getActivePlayer(e);if(!t)return null;const r=this.getConfig(e,t.key);return h.default.createElement(v.default,{...this.props,key:t.key,ref:this.references.player,config:r,activePlayer:t.lazyPlayer||t,onReady:this.handleReady})}))}shouldComponentUpdate(e,t){return!(0,m.default)(this.props,e)||!(0,m.default)(this.state,t)}componentDidUpdate(e){const{light:t}=this.props;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}renderPreview(e){if(!e)return null;const{light:t,playIcon:r,previewTabIndex:n,oEmbedUrl:i,previewAriaLabel:o}=this.props;return h.default.createElement(w,{url:e,light:t,playIcon:r,previewTabIndex:n,previewAriaLabel:o,oEmbedUrl:i,onClick:this.handleClickPreview})}render(){const{url:e,style:t,width:r,height:n,fallback:i,wrapper:o}=this.props,{showPreview:a}=this.state,s=this.getAttributes(e),c="string"==typeof o?this.references.wrapper:void 0;return h.default.createElement(o,{ref:c,style:{...t,width:r,height:n},...s},h.default.createElement(x,{fallback:i},a?this.renderPreview(e):this.renderActivePlayer(e)))}},d(r,"displayName","ReactPlayer"),d(r,"propTypes",y.propTypes),d(r,"defaultProps",y.defaultProps),d(r,"addCustomPlayer",(e=>{S.push(e)})),d(r,"removeCustomPlayers",(()=>{S.length=0})),d(r,"canPlay",(t=>{for(const r of[...S,...e])if(r.canPlay(t))return!0;return!1})),d(r,"canEnablePIP",(t=>{for(const r of[...S,...e])if(r.canEnablePIP&&r.canEnablePIP(t))return!0;return!1})),r}},498957:(e,t,r)=>{var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))c.call(e,s)||s===r||i(e,s,{get:()=>t[s],enumerable:!(n=o(t,s))||n.enumerable});return e},l={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(l,{default:()=>p}),e.exports=(e=>u(i({},"__esModule",{value:!0}),e))(l);var d=((e,t,r)=>(r=null!=e?n(s(e)):{},u(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)))(r(13820)),f=r(474563);const h=d.default[d.default.length-1];var p=(0,f.createReactPlayer)(d.default,h)},987430:(e,t,r)=>{var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(s,{AUDIO_EXTENSIONS:()=>E,DASH_EXTENSIONS:()=>I,FLV_EXTENSIONS:()=>k,HLS_EXTENSIONS:()=>S,MATCH_URL_DAILYMOTION:()=>v,MATCH_URL_FACEBOOK:()=>h,MATCH_URL_FACEBOOK_WATCH:()=>p,MATCH_URL_KALTURA:()=>C,MATCH_URL_MIXCLOUD:()=>w,MATCH_URL_MUX:()=>f,MATCH_URL_SOUNDCLOUD:()=>l,MATCH_URL_STREAMABLE:()=>g,MATCH_URL_TWITCH_CHANNEL:()=>b,MATCH_URL_TWITCH_VIDEO:()=>y,MATCH_URL_VIDYARD:()=>A,MATCH_URL_VIMEO:()=>d,MATCH_URL_WISTIA:()=>m,MATCH_URL_YOUTUBE:()=>u,VIDEO_EXTENSIONS:()=>x,canPlay:()=>T}),e.exports=(e=>((e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of o(t))a.call(e,c)||c===r||n(e,c,{get:()=>t[c],enumerable:!(s=i(t,c))||s.enumerable});return e})(n({},"__esModule",{value:!0}),e))(s);var c=r(287032);const u=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,l=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,d=/vimeo\.com\/(?!progressive_redirect).+/,f=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,h=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,p=/^https?:\/\/fb\.watch\/.+$/,g=/streamable\.com\/([a-z0-9]+)$/,m=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,y=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,b=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,v=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,w=/mixcloud\.com\/([^/]+\/[^/]+)/,A=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,C=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,E=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,x=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,S=/\.(m3u8)($|\?)/i,I=/\.(mpd)($|\?)/i,k=/\.(flv)($|\?)/i,_=e=>{if(e instanceof Array){for(const t of e){if("string"==typeof t&&_(t))return!0;if(_(t.src))return!0}return!1}return!(!(0,c.isMediaStream)(e)&&!(0,c.isBlobUrl)(e))||(E.test(e)||x.test(e)||S.test(e)||I.test(e)||k.test(e))},T={youtube:e=>e instanceof Array?e.every((e=>u.test(e))):u.test(e),soundcloud:e=>l.test(e)&&!E.test(e),vimeo:e=>d.test(e)&&!x.test(e)&&!S.test(e),mux:e=>f.test(e),facebook:e=>h.test(e)||p.test(e),streamable:e=>g.test(e),wistia:e=>m.test(e),twitch:e=>y.test(e)||b.test(e),dailymotion:e=>v.test(e),mixcloud:e=>w.test(e),vidyard:e=>A.test(e),kaltura:e=>C.test(e),file:_}},13820:(e,t,r)=>{Object.create;var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=(Object.getPrototypeOf,Object.prototype.hasOwnProperty),s=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of o(t))a.call(e,c)||c===r||n(e,c,{get:()=>t[c],enumerable:!(s=i(t,c))||s.enumerable});return e},c={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(c,{default:()=>d}),e.exports=(e=>s(n({},"__esModule",{value:!0}),e))(c);var u=r(287032),l=r(987430),d=[{key:"youtube",name:"YouTube",canPlay:l.canPlay.youtube,lazyPlayer:(0,u.lazy)((()=>r.e(18446).then(r.t.bind(r,88645,23))))},{key:"soundcloud",name:"SoundCloud",canPlay:l.canPlay.soundcloud,lazyPlayer:(0,u.lazy)((()=>r.e(69979).then(r.t.bind(r,188698,23))))},{key:"vimeo",name:"Vimeo",canPlay:l.canPlay.vimeo,lazyPlayer:(0,u.lazy)((()=>r.e(26173).then(r.t.bind(r,893868,23))))},{key:"mux",name:"Mux",canPlay:l.canPlay.mux,lazyPlayer:(0,u.lazy)((()=>r.e(52723).then(r.t.bind(r,231802,23))))},{key:"facebook",name:"Facebook",canPlay:l.canPlay.facebook,lazyPlayer:(0,u.lazy)((()=>r.e(86887).then(r.t.bind(r,217862,23))))},{key:"streamable",name:"Streamable",canPlay:l.canPlay.streamable,lazyPlayer:(0,u.lazy)((()=>r.e(47627).then(r.t.bind(r,356146,23))))},{key:"wistia",name:"Wistia",canPlay:l.canPlay.wistia,lazyPlayer:(0,u.lazy)((()=>r.e(54578).then(r.t.bind(r,606771,23))))},{key:"twitch",name:"Twitch",canPlay:l.canPlay.twitch,lazyPlayer:(0,u.lazy)((()=>r.e(12042).then(r.t.bind(r,711721,23))))},{key:"dailymotion",name:"DailyMotion",canPlay:l.canPlay.dailymotion,lazyPlayer:(0,u.lazy)((()=>r.e(16328).then(r.t.bind(r,853903,23))))},{key:"mixcloud",name:"Mixcloud",canPlay:l.canPlay.mixcloud,lazyPlayer:(0,u.lazy)((()=>r.e(67570).then(r.t.bind(r,422385,23))))},{key:"vidyard",name:"Vidyard",canPlay:l.canPlay.vidyard,lazyPlayer:(0,u.lazy)((()=>r.e(3392).then(r.t.bind(r,592519,23))))},{key:"kaltura",name:"Kaltura",canPlay:l.canPlay.kaltura,lazyPlayer:(0,u.lazy)((()=>r.e(6463).then(r.t.bind(r,371326,23))))},{key:"file",name:"FilePlayer",canPlay:l.canPlay.file,canEnablePIP:e=>l.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,u.supportsWebKitPresentationMode)())&&!l.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,u.lazy)((()=>r.e(97458).then(r.t.bind(r,555825,23))))}]},788259:(e,t,r)=>{var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))c.call(e,s)||s===r||i(e,s,{get:()=>t[s],enumerable:!(n=o(t,s))||n.enumerable});return e},l={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(l,{defaultProps:()=>E,propTypes:()=>A}),e.exports=(e=>u(i({},"__esModule",{value:!0}),e))(l);var d=((e,t,r)=>(r=null!=e?n(s(e)):{},u(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)))(r(605556));const{string:f,bool:h,number:p,array:g,oneOfType:m,shape:y,object:b,func:v,node:w}=d.default,A={url:m([f,g,b]),playing:h,loop:h,controls:h,volume:p,muted:h,playbackRate:p,width:m([f,p]),height:m([f,p]),style:b,progressInterval:p,playsinline:h,pip:h,stopOnUnmount:h,light:m([h,f,b]),playIcon:w,previewTabIndex:p,previewAriaLabel:f,fallback:w,oEmbedUrl:f,wrapper:m([f,v,y({render:v.isRequired})]),config:y({soundcloud:y({options:b}),youtube:y({playerVars:b,embedOptions:b,onUnstarted:v}),facebook:y({appId:f,version:f,playerId:f,attributes:b}),dailymotion:y({params:b}),vimeo:y({playerOptions:b,title:f}),mux:y({attributes:b,version:f}),file:y({attributes:b,tracks:g,forceVideo:h,forceAudio:h,forceHLS:h,forceSafariHLS:h,forceDisableHls:h,forceDASH:h,forceFLV:h,hlsOptions:b,hlsVersion:f,dashVersion:f,flvVersion:f}),wistia:y({options:b,playerId:f,customControls:g}),mixcloud:y({options:b}),twitch:y({options:b,playerId:f}),vidyard:y({options:b})}),onReady:v,onStart:v,onPlay:v,onPause:v,onBuffer:v,onBufferEnd:v,onEnded:v,onError:v,onDuration:v,onSeek:v,onPlaybackRateChange:v,onPlaybackQualityChange:v,onProgress:v,onClickPreview:v,onEnablePIP:v,onDisablePIP:v},C=()=>{},E={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:C},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:C,onStart:C,onPlay:C,onPause:C,onBuffer:C,onBufferEnd:C,onEnded:C,onError:C,onDuration:C,onSeek:C,onPlaybackRateChange:C,onPlaybackQualityChange:C,onProgress:C,onClickPreview:C,onEnablePIP:C,onDisablePIP:C}},287032:(e,t,r)=>{var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))c.call(e,s)||s===r||i(e,s,{get:()=>t[s],enumerable:!(n=o(t,s))||n.enumerable});return e},l=(e,t,r)=>(r=null!=e?n(s(e)):{},u(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(d,{callPlayer:()=>M,getConfig:()=>_,getSDK:()=>k,isBlobUrl:()=>j,isMediaStream:()=>P,lazy:()=>g,omit:()=>T,parseEndTime:()=>C,parseStartTime:()=>A,queryString:()=>x,randomString:()=>E,supportsWebKitPresentationMode:()=>D}),e.exports=(e=>u(i({},"__esModule",{value:!0}),e))(d);var f=l(r(296540)),h=l(r(6147)),p=l(r(914744));const g=e=>f.default.lazy((async()=>{const t=await e();return"function"==typeof t.default?t:t.default})),m=/[?&#](?:start|t)=([0-9hms]+)/,y=/[?&#]end=([0-9hms]+)/,b=/(\d+)(h|m|s)/g,v=/^\d+$/;function w(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const e=r[1];if(e.match(b))return function(e){let t=0,r=b.exec(e);for(;null!==r;){const[,n,i]=r;"h"===i&&(t+=60*parseInt(n,10)*60),"m"===i&&(t+=60*parseInt(n,10)),"s"===i&&(t+=parseInt(n,10)),r=b.exec(e)}return t}(e);if(v.test(e))return parseInt(e)}}function A(e){return w(e,m)}function C(e){return w(e,y)}function E(){return Math.random().toString(36).substr(2,5)}function x(e){return Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&")}function S(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const I={},k=function(e){0;return e}((function(e,t,r=null,n=()=>!0,i=h.default){const o=S(t);return o&&n(o)?Promise.resolve(o):new Promise(((n,o)=>{if(I[e])return void I[e].push({resolve:n,reject:o});I[e]=[{resolve:n,reject:o}];const a=t=>{I[e].forEach((e=>e.resolve(t)))};if(r){const e=window[r];window[r]=function(){e&&e(),a(S(t))}}i(e,(n=>{n?(I[e].forEach((e=>e.reject(n))),I[e]=null):r||a(S(t))}))}))}));function _(e,t){return(0,p.default)(t.config,e.config)}function T(e,...t){const r=[].concat(...t),n={},i=Object.keys(e);for(const o of i)-1===r.indexOf(o)&&(n[o]=e[o]);return n}function M(e,...t){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}return this.player[e](...t)}function P(e){return"undefined"!=typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream}function j(e){return/^blob:/.test(e)}function D(e=document.createElement("video")){const t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t}},714210:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},786048:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,a,s;if("string"==typeof t&&(o="not ",t.substr(!a||a<0?0:+a,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var c=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(n(t,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},325382:(e,t,r)=>{"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var i=r(345412),o=r(216708);r(256698)(u,i);for(var a=n(o.prototype),s=0;s{"use strict";e.exports=i;var n=r(374610);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(256698)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},345412:(e,t,r)=>{"use strict";var n;e.exports=x,x.ReadableState=E;r(137007).EventEmitter;var i=function(e,t){return e.listeners(t).length},o=r(740345),a=r(348287).Buffer,s=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,u=r(979838);c=u&&u.debuglog?u.debuglog("stream"):function(){};var l,d,f,h=r(780345),p=r(75896),g=r(65291).getHighWaterMark,m=r(786048).F,y=m.ERR_INVALID_ARG_TYPE,b=m.ERR_STREAM_PUSH_AFTER_EOF,v=m.ERR_METHOD_NOT_IMPLEMENTED,w=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(256698)(x,o);var A=p.errorOrDestroy,C=["error","close","destroy","pause","resume"];function E(e,t,i){n=n||r(325382),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(183141).I),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function x(e){if(n=n||r(325382),!(this instanceof x))return new x(e);var t=this instanceof n;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function S(e,t,r,n,i){c("readableAddChunk",t);var o,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}(e,u);else if(i||(o=function(e,t){var r;n=t,a.isBuffer(n)||n instanceof s||"string"==typeof t||void 0===t||e.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(u,t)),o)A(e,o);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),n)u.endEmitted?A(e,new w):I(e,u,t,!0);else if(u.ended)A(e,new b);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?I(e,u,t,!1):P(e,u)):I(e,u,t,!1)}else n||(u.reading=!1,P(e,u));return!u.ended&&(u.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(M,e))}function M(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function P(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(j,e,t))}function j(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function O(e){c("readable nexttick read 0"),e.read(0)}function B(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function R(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function L(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(F,t,e))}function F(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function U(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):T(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&L(this),null;var n,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e0?R(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==n&&this.emit("data",n),n},x.prototype._read=function(e){A(this,new v("_read()"))},x.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,c("pipe count=%d opts=%j",n.pipesCount,t);var o=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?s:g;function a(t,i){c("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,c("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",a),r.removeListener("end",s),r.removeListener("end",g),r.removeListener("data",d),l=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function s(){c("onend"),e.end()}n.endEmitted?process.nextTick(o):r.once("end",o),e.on("unpipe",a);var u=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,N(e))}}(r);e.on("drain",u);var l=!1;function d(t){c("ondata");var i=e.write(t);c("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==U(n.pipes,e))&&!l&&(c("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(t){c("onerror",t),g(),e.removeListener("error",f),0===i(e,"error")&&A(e,t)}function h(){e.removeListener("finish",p),g()}function p(){c("onfinish"),e.removeListener("close",h),g()}function g(){c("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",f),e.once("close",h),e.once("finish",p),e.emit("pipe",r),n.flowing||(c("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,c("on readable",n.length,n.reading),n.length?T(this):n.reading||process.nextTick(O,this))),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(D,this),r},x.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(D,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(B,e,t))}(this,e)),e.paused=!1,this},x.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o{"use strict";e.exports=l;var n=r(786048).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(325382);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=x,x.WritableState=E;var o={deprecate:r(594643)},a=r(740345),s=r(348287).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,l=r(75896),d=r(65291).getHighWaterMark,f=r(786048).F,h=f.ERR_INVALID_ARG_TYPE,p=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,m=f.ERR_STREAM_CANNOT_PIPE,y=f.ERR_STREAM_DESTROYED,b=f.ERR_STREAM_NULL_VALUES,v=f.ERR_STREAM_WRITE_AFTER_END,w=f.ERR_UNKNOWN_ENCODING,A=l.errorOrDestroy;function C(){}function E(e,t,o){i=i||r(325382),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(M,e,t),e._writableState.errorEmitted=!0,A(e,n)):(i(n),e._writableState.errorEmitted=!0,A(e,n),M(e,t))}(e,r,n,t,i);else{var o=_(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||k(e,r),n?process.nextTick(I,e,r,o,i):I(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function x(e){var t=this instanceof(i=i||r(325382));if(!t&&!u.call(x,this))return new x(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function S(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),M(e,t)}function k(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,S(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,d=r.callback;if(S(e,t,!1,t.objectMode?1:u.length,u,l,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(r){t.pendingcb--,r&&A(e,r),t.prefinished=!0,e.emit("prefinish"),M(e,t)}))}function M(e,t){var r=_(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(256698)(x,a),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===x&&(e&&e._writableState instanceof E)}})):u=function(e){return e instanceof this},x.prototype.pipe=function(){A(this,new m)},x.prototype.write=function(e,t,r){var n,i=this._writableState,o=!1,a=!i.objectMode&&(n=e,s.isBuffer(n)||n instanceof c);return a&&!s.isBuffer(e)&&(e=function(e){return s.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=C),i.ending?function(e,t){var r=new v;A(e,r),process.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var i;return null===r?i=new b:"string"==typeof r||t.objectMode||(i=new h("chunk",["string","Buffer"],r)),!i||(A(e,i),process.nextTick(n,i),!1)}(this,i,e,r))&&(i.pendingcb++,o=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=s.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var c=t.objectMode?1:n.length;t.length+=c;var u=t.length-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new p("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,M(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=l.destroy,x.prototype._undestroy=l.undestroy,x.prototype._destroy=function(e,t){t(e)}},402955:(e,t,r)=>{"use strict";var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(686238),a=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[f].read();null!==r&&(e[l]=null,e[a]=null,e[s]=null,t(h(r,!1)))}}function g(e){process.nextTick(p,e)}var m=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i(n={get stream(){return this[f]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise((function(t,r){process.nextTick((function(){e[c]?r(e[c]):t(h(void 0,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(h(void 0,!0)):t[d](r,n)}),n)}}(n,this));else{var i=this[f].read();if(null!==i)return Promise.resolve(h(i,!1));r=new Promise(this[d])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),m);e.exports=function(e){var t,r=Object.create(y,(i(t={},f,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var n=r[f].read();n?(r[l]=null,r[a]=null,r[s]=null,e(h(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[l]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[l]=null,r[a]=null,r[s]=null,t(e)),void(r[c]=e)}var n=r[a];null!==n&&(r[l]=null,r[a]=null,r[s]=null,n(h(void 0,!0))),r[u]=!0})),e.on("readable",g.bind(null,r)),r}},780345:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},75896:e=>{"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,e)):process.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(r,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(r,o),i(e)):process.nextTick(r,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},686238:(e,t,r)=>{"use strict";var n=r(786048).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},257758:(e,t,r)=>{"use strict";var n;var i=r(786048).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i0,(function(e){l||(l=e),e&&f.forEach(c),o||(f.forEach(c),d(l))}))}));return t.reduce(u)}},65291:(e,t,r)=>{"use strict";var n=r(786048).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},740345:(e,t,r)=>{e.exports=r(137007).EventEmitter},128399:(e,t,r)=>{(t=e.exports=r(345412)).Stream=t,t.Readable=t,t.Writable=r(216708),t.Duplex=r(325382),t.Transform=r(374610),t.PassThrough=r(863600),t.finished=r(686238),t.pipeline=r(257758)},492063:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},566011:(e,t,r)=>{"use strict";var n=r(348287).Buffer,i=r(256698),o=r(351147),a=new Array(16),s=[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],c=[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],u=[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],l=[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],d=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function g(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,w=0|this._a,A=0|this._b,C=0|this._c,E=0|this._d,x=0|this._e,S=0;S<80;S+=1){var I,k;S<16?(I=g(r,n,i,o,h,e[s[S]],d[0],u[S]),k=v(w,A,C,E,x,e[c[S]],f[0],l[S])):S<32?(I=m(r,n,i,o,h,e[s[S]],d[1],u[S]),k=b(w,A,C,E,x,e[c[S]],f[1],l[S])):S<48?(I=y(r,n,i,o,h,e[s[S]],d[2],u[S]),k=y(w,A,C,E,x,e[c[S]],f[2],l[S])):S<64?(I=b(r,n,i,o,h,e[s[S]],d[3],u[S]),k=m(w,A,C,E,x,e[c[S]],f[3],l[S])):(I=v(r,n,i,o,h,e[s[S]],d[4],u[S]),k=g(w,A,C,E,x,e[c[S]],f[4],l[S])),r=h,h=o,o=p(i,10),i=n,n=I,w=x,x=E,E=p(C,10),C=A,A=k}var _=this._b+i+E|0;this._b=this._c+o+x|0,this._c=this._d+h+w|0,this._d=this._e+r+A|0,this._e=this._a+n+C|0,this._a=_},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},351147:(e,t,r)=>{"use strict";var n=r(192861).Buffer,i=r(128399).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(256698)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},949426:(e,t,r)=>{"use strict";r.d(t,{t:()=>i});var n=r(331635),i=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,n.__extends)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(r(95768).B)},652994:(e,t,r)=>{"use strict";r.d(t,{c:()=>d});var n=r(69419),i=r(79390),o=r(55604),a=r(158307);function s(e){return 0===e.length?a.D:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var c=r(794384),u=r(761209),l=r(107008),d=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o,a=this,s=(o=e)&&o instanceof n.vU||function(e){return e&&(0,u.T)(e.next)&&(0,u.T)(e.error)&&(0,u.T)(e.complete)}(o)&&(0,i.Uv)(o)?e:new n.Ms(e,t,r);return(0,l.Y)((function(){var e=a,t=e.operator,r=e.source;s.add(t?t.call(s,r):r?a._subscribe(s):a._trySubscribe(s))})),s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=f(t))((function(t,i){var o=new n.Ms({next:function(t){try{e(t)}catch(r){i(r),o.unsubscribe()}},error:i,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[o.s]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";r.d(t,{B:()=>u});var n=r(331635),i=r(652994),o=r(79390),a=(0,r(282947).L)((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),s=r(106174),c=r(107008),u=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,n.__extends)(t,e),t.prototype.lift=function(e){var t=new l(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new a},t.prototype.next=function(e){var t=this;(0,c.Y)((function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=(0,n.__values)(t.currentObservers),a=o.next();!a.done;a=o.next()){a.value.next(e)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;(0,c.Y)((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;(0,c.Y)((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,a=r.observers;return n||i?o.Kn:(this.currentObservers=null,a.push(e),new o.yU((function(){t.currentObservers=null,(0,s.o)(a,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new i.c;return e.source=this,e},t.create=function(e,t){return new l(e,t)},t}(i.c),l=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,n.__extends)(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:o.Kn},t}(u)},69419:(e,t,r)=>{"use strict";r.d(t,{Ms:()=>y,vU:()=>h});var n=r(331635),i=r(761209),o=r(79390),a=r(794384),s=r(222564),c=r(192357),u=l("C",void 0,void 0);function l(e,t,r){return{kind:e,value:t,error:r}}var d=r(396744),f=r(107008),h=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,o.Uv)(t)&&t.add(r)):r.destination=w,r}return(0,n.__extends)(t,e),t.create=function(e,t,r){return new y(e,t,r)},t.prototype.next=function(e){this.isStopped?v(function(e){return l("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?v(l("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?v(u,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(o.yU),p=Function.prototype.bind;function g(e,t){return p.call(e,t)}var m=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){b(r)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){b(r)}else b(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){b(t)}},e}(),y=function(e){function t(t,r,n){var o,s,c=e.call(this)||this;(0,i.T)(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:c&&a.$.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return c.unsubscribe()},o={next:t.next&&g(t.next,s),error:t.error&&g(t.error,s),complete:t.complete&&g(t.complete,s)}):o=t;return c.destination=new m(o),c}return(0,n.__extends)(t,e),t}(h);function b(e){a.$.useDeprecatedSynchronousErrorHandling?(0,f.l)(e):(0,s.m)(e)}function v(e,t){var r=a.$.onStoppedNotification;r&&d.f.setTimeout((function(){return r(e,t)}))}var w={closed:!0,next:c.l,error:function(e){throw e},complete:c.l}},79390:(e,t,r)=>{"use strict";r.d(t,{Kn:()=>c,yU:()=>s,Uv:()=>u});var n=r(331635),i=r(761209),o=(0,r(282947).L)((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}})),a=r(106174),s=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,a,s;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var u=(0,n.__values)(c),d=u.next();!d.done;d=u.next()){d.value.remove(this)}}catch(y){e={error:y}}finally{try{d&&!d.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else c.remove(this);var f=this.initialTeardown;if((0,i.T)(f))try{f()}catch(b){s=b instanceof o?b.errors:[b]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=(0,n.__values)(h),g=p.next();!g.done;g=p.next()){var m=g.value;try{l(m)}catch(v){s=null!=s?s:[],v instanceof o?s=(0,n.__spreadArray)((0,n.__spreadArray)([],(0,n.__read)(s)),(0,n.__read)(v.errors)):s.push(v)}}}catch(w){r={error:w}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}}if(s)throw new o(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)l(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,a.o)(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&(0,a.o)(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),c=s.EMPTY;function u(e){return e instanceof s||e&&"closed"in e&&(0,i.T)(e.remove)&&(0,i.T)(e.add)&&(0,i.T)(e.unsubscribe)}function l(e){(0,i.T)(e)?e():e.unsubscribe()}},794384:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},161701:(e,t,r)=>{"use strict";r.d(t,{w:()=>n});var n=new(r(652994).c)((function(e){return e.complete()}))},28400:(e,t,r)=>{"use strict";r.d(t,{H:()=>A});var n=r(215964),i=r(556315),o=r(292908),a=r(864878);function s(e,t){return void 0===t&&(t=0),(0,o.N)((function(r,n){r.subscribe((0,a._)(n,(function(r){return(0,i.N)(n,e,(function(){return n.next(r)}),t)}),(function(){return(0,i.N)(n,e,(function(){return n.complete()}),t)}),(function(r){return(0,i.N)(n,e,(function(){return n.error(r)}),t)})))}))}function c(e,t){return void 0===t&&(t=0),(0,o.N)((function(r,n){n.add(e.schedule((function(){return r.subscribe(n)}),t))}))}var u=r(652994);var l=r(12059),d=r(761209);function f(e,t){if(!e)throw new Error("Iterable cannot be null");return new u.c((function(r){(0,i.N)(r,t,(function(){var n=e[Symbol.asyncIterator]();(0,i.N)(r,t,(function(){n.next().then((function(e){e.done?r.complete():r.next(e.value)}))}),0,!0)}))}))}var h=r(537541),p=r(803440),g=r(869391),m=r(758667),y=r(562471),b=r(243465),v=r(708438);function w(e,t){if(null!=e){if((0,h.l)(e))return function(e,t){return(0,n.Tg)(e).pipe(c(t),s(t))}(e,t);if((0,g.X)(e))return function(e,t){return new u.c((function(r){var n=0;return t.schedule((function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())}))}))}(e,t);if((0,p.y)(e))return function(e,t){return(0,n.Tg)(e).pipe(c(t),s(t))}(e,t);if((0,y.T)(e))return f(e,t);if((0,m.x)(e))return function(e,t){return new u.c((function(r){var n;return(0,i.N)(r,t,(function(){n=e[l.l](),(0,i.N)(r,t,(function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(o){return void r.error(o)}i?r.complete():r.next(t)}),0,!0)})),function(){return(0,d.T)(null==n?void 0:n.return)&&n.return()}}))}(e,t);if((0,v.U)(e))return function(e,t){return f((0,v.C)(e),t)}(e,t)}throw(0,b.L)(e)}function A(e,t){return t?w(e,t):(0,n.Tg)(e)}},709336:(e,t,r)=>{"use strict";r.d(t,{R:()=>h});var n=r(331635),i=r(215964),o=r(652994),a=r(280150),s=r(869391),c=r(761209),u=r(757516),l=["addListener","removeListener"],d=["addEventListener","removeEventListener"],f=["on","off"];function h(e,t,r,g){if((0,c.T)(r)&&(g=r,r=void 0),g)return h(e,t,r).pipe((0,u.I)(g));var m=(0,n.__read)(function(e){return(0,c.T)(e.addEventListener)&&(0,c.T)(e.removeEventListener)}(e)?d.map((function(n){return function(i){return e[n](t,i,r)}})):function(e){return(0,c.T)(e.addListener)&&(0,c.T)(e.removeListener)}(e)?l.map(p(e,t)):function(e){return(0,c.T)(e.on)&&(0,c.T)(e.off)}(e)?f.map(p(e,t)):[],2),y=m[0],b=m[1];if(!y&&(0,s.X)(e))return(0,a.Z)((function(e){return h(e,t,r)}))((0,i.Tg)(e));if(!y)throw new TypeError("Invalid event target");return new o.c((function(e){var t=function(){for(var t=[],r=0;r{"use strict";r.d(t,{Tg:()=>g});var n=r(331635),i=r(869391),o=r(803440),a=r(652994),s=r(537541),c=r(562471),u=r(243465),l=r(758667),d=r(708438),f=r(761209),h=r(222564),p=r(55604);function g(e){if(e instanceof a.c)return e;if(null!=e){if((0,s.l)(e))return b=e,new a.c((function(e){var t=b[p.s]();if((0,f.T)(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if((0,i.X)(e))return y=e,new a.c((function(e){for(var t=0;t{"use strict";r.d(t,{_:()=>i});var n=r(331635);function i(e,t,r,n,i){return new o(e,t,r,n,i)}var o=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=r?function(e){try{r(e)}catch(n){t.error(n)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,n.__extends)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(r(69419).vU)},541900:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});var n=r(158307),i=r(292908),o=r(864878);function a(e,t){return void 0===t&&(t=n.D),e=null!=e?e:s,(0,i.N)((function(r,n){var i,a=!0;r.subscribe((0,o._)(n,(function(r){var o=t(r);!a&&e(i,o)||(a=!1,i=o,n.next(r))})))}))}function s(e,t){return e===t}},416126:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(292908),i=r(864878);function o(e,t){return(0,n.N)((function(r,n){var o=0;r.subscribe((0,i._)(n,(function(r){return e.call(t,r,o++)&&n.next(r)})))}))}},681160:(e,t,r)=>{"use strict";r.d(t,{T:()=>o});var n=r(292908),i=r(864878);function o(e,t){return(0,n.N)((function(r,n){var o=0;r.subscribe((0,i._)(n,(function(r){n.next(e.call(t,r,o++))})))}))}},493031:(e,t,r)=>{"use strict";r.d(t,{U:()=>o});var n=r(280150),i=r(158307);function o(e){return void 0===e&&(e=1/0),(0,n.Z)(i.D,e)}},280150:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(681160),i=r(215964),o=r(292908),a=r(556315),s=r(864878);var c=r(761209);function u(e,t,r){return void 0===r&&(r=1/0),(0,c.T)(t)?u((function(r,o){return(0,n.T)((function(e,n){return t(r,e,o,n)}))((0,i.Tg)(e(r,o)))}),r):("number"==typeof t&&(r=t),(0,o.N)((function(t,n){return function(e,t,r,n,o,c,u,l){var d=[],f=0,h=0,p=!1,g=function(){!p||d.length||f||t.complete()},m=function(e){return f{"use strict";r.d(t,{u:()=>c});var n=r(331635),i=r(215964),o=r(95768),a=r(69419),s=r(292908);function c(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new o.B}:t,n=e.resetOnError,c=void 0===n||n,l=e.resetOnComplete,d=void 0===l||l,f=e.resetOnRefCountZero,h=void 0===f||f;return function(e){var t,n,o,l=0,f=!1,p=!1,g=function(){null==n||n.unsubscribe(),n=void 0},m=function(){g(),t=o=void 0,f=p=!1},y=function(){var e=t;m(),null==e||e.unsubscribe()};return(0,s.N)((function(e,s){l++,p||f||g();var b=o=null!=o?o:r();s.add((function(){0!==--l||p||f||(n=u(y,h))})),b.subscribe(s),!t&&l>0&&(t=new a.Ms({next:function(e){return b.next(e)},error:function(e){p=!0,g(),n=u(m,c,e),b.error(e)},complete:function(){f=!0,g(),n=u(m,d),b.complete()}}),(0,i.Tg)(e).subscribe(t))}))(e)}}function u(e,t){for(var r=[],o=2;o{"use strict";r.d(t,{t:()=>c});var n=r(331635),i=r(95768),o=r(631179),a=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=o.U);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return(0,n.__extends)(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,a=r._timestampProvider,s=r._windowTime;n||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i{"use strict";r.d(t,{Z:()=>c});var n=r(493031);var i=r(744847),o=r(28400);function a(){for(var e=[],t=0;t{"use strict";r.d(t,{s:()=>a});var n=r(161701),i=r(292908),o=r(864878);function a(e){return e<=0?function(){return n.w}:(0,i.N)((function(t,r){var n=0;t.subscribe((0,o._)(r,(function(t){++n<=e&&(r.next(t),e<=n&&r.complete())})))}))}},167791:(e,t,r)=>{"use strict";r.d(t,{Q:()=>s});var n=r(292908),i=r(864878),o=r(215964),a=r(192357);function s(e){return(0,n.N)((function(t,r){(0,o.Tg)(e).subscribe((0,i._)(r,(function(){return r.complete()}),a.l)),!r.closed&&t.subscribe(r)}))}},631179:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},396744:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(331635),i={setTimeout:function(e,t){for(var r=[],o=2;o{"use strict";r.d(t,{l:()=>n});var n="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},55604:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},744847:(e,t,r)=>{"use strict";r.d(t,{R0:()=>s,ms:()=>o,lI:()=>a});var n=r(761209);function i(e){return e[e.length-1]}function o(e){return(0,n.T)(i(e))?e.pop():void 0}function a(e){return(t=i(e))&&(0,n.T)(t.schedule)?e.pop():void 0;var t}function s(e,t){return"number"==typeof i(e)?e.pop():t}},106174:(e,t,r)=>{"use strict";function n(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}r.d(t,{o:()=>n})},282947:(e,t,r)=>{"use strict";function n(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}r.d(t,{L:()=>n})},107008:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o,l:()=>a});var n=r(794384),i=null;function o(e){if(n.$.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,o=r.errorThrown,a=r.error;if(i=null,o)throw a}}else e()}function a(e){n.$.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},556315:(e,t,r)=>{"use strict";function n(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule((function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()}),n);if(e.add(o),!i)return o}r.d(t,{N:()=>n})},158307:(e,t,r)=>{"use strict";function n(e){return e}r.d(t,{D:()=>n})},869391:(e,t,r)=>{"use strict";r.d(t,{X:()=>n});var n=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},562471:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(761209);function i(e){return Symbol.asyncIterator&&(0,n.T)(null==e?void 0:e[Symbol.asyncIterator])}},761209:(e,t,r)=>{"use strict";function n(e){return"function"==typeof e}r.d(t,{T:()=>n})},537541:(e,t,r)=>{"use strict";r.d(t,{l:()=>o});var n=r(55604),i=r(761209);function o(e){return(0,i.T)(e[n.s])}},758667:(e,t,r)=>{"use strict";r.d(t,{x:()=>o});var n=r(12059),i=r(761209);function o(e){return(0,i.T)(null==e?void 0:e[n.l])}},803440:(e,t,r)=>{"use strict";r.d(t,{y:()=>i});var n=r(761209);function i(e){return(0,n.T)(null==e?void 0:e.then)}},708438:(e,t,r)=>{"use strict";r.d(t,{C:()=>o,U:()=>a});var n=r(331635),i=r(761209);function o(e){return(0,n.__asyncGenerator)(this,arguments,(function(){var t,r,i;return(0,n.__generator)(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,n.__await)(t.read())];case 3:return r=o.sent(),i=r.value,r.done?[4,(0,n.__await)(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,(0,n.__await)(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function a(e){return(0,i.T)(null==e?void 0:e.getReader)}},292908:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(761209);function i(e){return function(t){if(function(e){return(0,n.T)(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(r){this.error(r)}}));throw new TypeError("Unable to lift unknown Observable type")}}},757516:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var n=r(331635),i=r(681160),o=Array.isArray;function a(e){return(0,i.T)((function(t){return function(e,t){return o(t)?e.apply(void 0,(0,n.__spreadArray)([],(0,n.__read)(t))):e(t)}(e,t)}))}},192357:(e,t,r)=>{"use strict";function n(){}r.d(t,{l:()=>n})},222564:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(794384),i=r(396744);function o(e){i.f.setTimeout((function(){var t=n.$.onUnhandledError;if(!t)throw e;t(e)}))}},243465:(e,t,r)=>{"use strict";function n(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}r.d(t,{L:()=>n})},192861:(e,t,r)=>{var n=r(348287),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},62491:(e,t,r)=>{var n,i,o;o=function(){var e,t,r=document,n=r.getElementsByTagName("head")[0],i="push",o="readyState",a="onreadystatechange",s={},c={},u={},l={};function d(e,t){for(var r=0,n=e.length;r=64;){let h,p,g,m,y,b=r,v=n,w=i,A=o,C=a,E=s,x=c,S=u;for(p=0;p<16;p++)g=d+4*p,l[p]=(255&e[g])<<24|(255&e[g+1])<<16|(255&e[g+2])<<8|255&e[g+3];for(p=16;p<64;p++)h=l[p-2],m=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,h=l[p-15],y=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3,l[p]=(m+l[p-7]|0)+(y+l[p-16]|0)|0;for(p=0;p<64;p++)m=(((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&E^~C&x)|0)+(S+(t[p]+l[p]|0)|0)|0,y=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&v^b&w^v&w)|0,S=x,x=E,E=C,C=A+m|0,A=w,w=v,v=b,b=m+y|0;r=r+b|0,n=n+v|0,i=i+w|0,o=o+A|0,a=a+C|0,s=s+E|0,c=c+x|0,u=u+S|0,d+=64,f-=64}}d(e);let f,h=e.length%64,p=e.length/536870912|0,g=e.length<<3,m=h<56?56:120,y=e.slice(e.length-h,e.length);for(y.push(128),f=h+1;f>>24&255),y.push(p>>>16&255),y.push(p>>>8&255),y.push(p>>>0&255),y.push(g>>>24&255),y.push(g>>>16&255),y.push(g>>>8&255),y.push(g>>>0&255),d(y),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255]}function n(e,t,n){e=e.length<=64?e:r(e);const i=64+t.length+4,o=new Array(i),a=new Array(64);let s,c=[];for(s=0;s<64;s++)o[s]=54;for(s=0;s=i-4;e--){if(o[e]++,o[e]<=255)return;o[e]=0}}for(;n>=32;)u(),c=c.concat(r(a.concat(r(o)))),n-=32;return n>0&&(u(),c=c.concat(r(a.concat(r(o))).slice(0,n))),c}function i(e,t,r,n,i){let o;for(c(e,16*(2*r-1),i,0,16),o=0;o<2*r;o++)s(e,16*o,i,16),a(i,n),c(i,0,e,t+16*o,16);for(o=0;o>>32-t}function a(e,t){c(e,0,t,0,16);for(let r=8;r>0;r-=2)t[4]^=o(t[0]+t[12],7),t[8]^=o(t[4]+t[0],9),t[12]^=o(t[8]+t[4],13),t[0]^=o(t[12]+t[8],18),t[9]^=o(t[5]+t[1],7),t[13]^=o(t[9]+t[5],9),t[1]^=o(t[13]+t[9],13),t[5]^=o(t[1]+t[13],18),t[14]^=o(t[10]+t[6],7),t[2]^=o(t[14]+t[10],9),t[6]^=o(t[2]+t[14],13),t[10]^=o(t[6]+t[2],18),t[3]^=o(t[15]+t[11],7),t[7]^=o(t[3]+t[15],9),t[11]^=o(t[7]+t[3],13),t[15]^=o(t[11]+t[7],18),t[1]^=o(t[0]+t[3],7),t[2]^=o(t[1]+t[0],9),t[3]^=o(t[2]+t[1],13),t[0]^=o(t[3]+t[2],18),t[6]^=o(t[5]+t[4],7),t[7]^=o(t[6]+t[5],9),t[4]^=o(t[7]+t[6],13),t[5]^=o(t[4]+t[7],18),t[11]^=o(t[10]+t[9],7),t[8]^=o(t[11]+t[10],9),t[9]^=o(t[8]+t[11],13),t[10]^=o(t[9]+t[8],18),t[12]^=o(t[15]+t[14],7),t[13]^=o(t[12]+t[15],9),t[14]^=o(t[13]+t[12],13),t[15]^=o(t[14]+t[13],18);for(let r=0;r<16;++r)e[r]+=t[r]}function s(e,t,r,n){for(let i=0;i=256)return!1}return!0}function l(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function d(e,r,o,a,d,f,h){if(o=l(o,"N"),a=l(a,"r"),d=l(d,"p"),f=l(f,"dkLen"),0===o||o&o-1)throw new Error("N must be power of 2");if(o>t/128/a)throw new Error("N too large");if(a>t/128/d)throw new Error("r too large");if(!u(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!u(r))throw new Error("salt must be an array or buffer");r=Array.prototype.slice.call(r);let p=n(e,r,128*d*a);const g=new Uint32Array(32*d*a);for(let t=0;tT&&(t=T);for(let e=0;eT&&(t=T);for(let e=0;e>8&255),p.push(g[e]>>16&255),p.push(g[e]>>24&255);const r=n(e,p,f);return h&&h(null,1,r),r}h&&M(P)};if(!h)for(;;){const e=P();if(null!=e)return e}P()}const f={scrypt:function(e,t,r,n,i,o,a){return new Promise((function(s,c){let u=0;a&&a(0),d(e,t,r,n,i,o,(function(e,t,r){if(e)c(e);else if(r)a&&1!==u&&a(1),s(new Uint8Array(r));else if(a&&t!==u)return u=t,a(t)}))}))},syncScrypt:function(e,t,r,n,i,o){return new Uint8Array(d(e,t,r,n,i,o))}};e.exports=f}()},996897:(e,t,r)=>{"use strict";var n=r(570453),i=r(430041),o=r(530592)(),a=r(675795),s=r(769675),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(u=!1)}return(n||u||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},90392:(e,t,r)=>{var n=r(192861).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},662802:(e,t,r)=>{var n=e.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(327816),n.sha1=r(363737),n.sha224=r(426710),n.sha256=r(424107),n.sha384=r(532827),n.sha512=r(882890)},327816:(e,t,r)=>{var n=r(256698),i=r(90392),o=r(192861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=r[d-3]^r[d-8]^r[d-14]^r[d-16];for(var f=0;f<80;++f){var h=~~(f/20),p=0|((t=n)<<5|t>>>27)+l(h,i,o,s)+c+r[f]+a[h];c=s,s=o,o=u(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},363737:(e,t,r)=>{var n=r(256698),i=r(90392),o=r(192861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f);for(;f<80;++f)r[f]=(t=r[f-3]^r[f-8]^r[f-14]^r[f-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),g=u(n)+d(p,i,o,s)+c+r[h]+a[p]|0;c=s,s=o,o=l(i),i=n,n=g}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},426710:(e,t,r)=>{var n=r(256698),i=r(424107),o=r(90392),a=r(192861).Buffer,s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},424107:(e,t,r)=>{var n=r(256698),i=r(90392),o=r(192861).Buffer,a=[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],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,g=0|this._g,m=0|this._h,y=0;y<16;++y)r[y]=e.readInt32BE(4*y);for(;y<64;++y)r[y]=0|(((t=r[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[y-7]+h(r[y-15])+r[y-16];for(var b=0;b<64;++b){var v=m+f(c)+u(c,p,g)+a[b]+r[b]|0,w=d(n)+l(n,i,o)|0;m=g,g=p,p=c,c=s+v|0,s=o,o=i,i=n,n=v+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=g+this._g|0,this._h=m+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},532827:(e,t,r)=>{var n=r(256698),i=r(882890),o=r(90392),a=r(192861).Buffer,s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},882890:(e,t,r)=>{var n=r(256698),i=r(90392),o=r(192861).Buffer,a=[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],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,b=0|this._gh,v=0|this._hh,w=0|this._al,A=0|this._bl,C=0|this._cl,E=0|this._dl,x=0|this._el,S=0|this._fl,I=0|this._gl,k=0|this._hl,_=0;_<32;_+=2)t[_]=e.readInt32BE(4*_),t[_+1]=e.readInt32BE(4*_+4);for(;_<160;_+=2){var T=t[_-30],M=t[_-30+1],P=h(T,M),j=p(M,T),D=g(T=t[_-4],M=t[_-4+1]),O=m(M,T),B=t[_-14],N=t[_-14+1],R=t[_-32],L=t[_-32+1],F=j+N|0,U=P+B+y(F,j)|0;U=(U=U+D+y(F=F+O|0,O)|0)+R+y(F=F+L|0,L)|0,t[_]=U,t[_+1]=F}for(var z=0;z<160;z+=2){U=t[z],F=t[z+1];var H=l(r,n,i),V=l(w,A,C),K=d(r,w),G=d(w,r),q=f(s,x),Q=f(x,s),W=a[z],J=a[z+1],Y=u(s,c,b),Z=u(x,S,I),$=k+Q|0,X=v+q+y($,k)|0;X=(X=(X=X+Y+y($=$+Z|0,Z)|0)+W+y($=$+J|0,J)|0)+U+y($=$+F|0,F)|0;var ee=G+V|0,te=K+H+y(ee,G)|0;v=b,k=I,b=c,I=S,c=s,S=x,s=o+X+y(x=E+$|0,E)|0,o=i,E=C,i=n,C=A,n=r,A=w,r=X+te+y(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+A|0,this._cl=this._cl+C|0,this._dl=this._dl+E|0,this._el=this._el+x|0,this._fl=this._fl+S|0,this._gl=this._gl+I|0,this._hl=this._hl+k|0,this._ah=this._ah+r+y(this._al,w)|0,this._bh=this._bh+n+y(this._bl,A)|0,this._ch=this._ch+i+y(this._cl,C)|0,this._dh=this._dh+o+y(this._dl,E)|0,this._eh=this._eh+s+y(this._el,x)|0,this._fh=this._fh+c+y(this._fl,S)|0,this._gh=this._gh+b+y(this._gl,I)|0,this._hh=this._hh+v+y(this._hl,k)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},714803:(e,t,r)=>{"use strict";var n=r(358859),i=r(769675),o=function(e,t,r){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,r||(n.next=e.next,e.next=n),n};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return o(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var r=o(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!o(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=o(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t}},380507:(e,t,r)=>{"use strict";var n=r(570453),i=r(136556),o=r(358859),a=r(769675),s=n("%Map%",!0),c=i("Map.prototype.get",!0),u=i("Map.prototype.set",!0),l=i("Map.prototype.has",!0),d=i("Map.prototype.delete",!0),f=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(t){if(e){var r=d(e,t);return 0===f(e)&&(e=void 0),r}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,r){e||(e=new s),u(e,t,r)}};return t}},572271:(e,t,r)=>{"use strict";var n=r(570453),i=r(136556),o=r(358859),a=r(380507),s=r(769675),c=n("%WeakMap%",!0),u=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+o(e))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?u(e,r):t&&t.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?d(e,r):!!t&&t.has(r)},set:function(r,n){c&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new c),l(e,r,n)):a&&(t||(t=a()),t.set(r,n))}};return r}:a},200920:(e,t,r)=>{"use strict";var n=r(769675),i=r(358859),o=r(714803),a=r(380507),s=r(572271)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},941770:(e,t,r)=>{const n=r(817833)("simple-peer"),i=r(655064),o=r(553209),a=r(128399),s=r(979596),c=r(466310),{Buffer:u}=r(348287),l=65536;function d(e){return e.replace(/a=ice-options:trickle\s\n/g,"")}class f extends a.Duplex{constructor(e){if(super(e=Object.assign({allowHalfOpen:!1},e)),this._id=o(4).toString("hex").slice(0,7),this._debug("new peer %o",e),this.channelName=e.initiator?e.channelName||o(20).toString("hex"):null,this.initiator=e.initiator||!1,this.channelConfig=e.channelConfig||f.channelConfig,this.channelNegotiated=this.channelConfig.negotiated,this.config=Object.assign({},f.config,e.config),this.offerOptions=e.offerOptions||{},this.answerOptions=e.answerOptions||{},this.sdpTransform=e.sdpTransform||(e=>e),this.streams=e.streams||(e.stream?[e.stream]:[]),this.trickle=void 0===e.trickle||e.trickle,this.allowHalfTrickle=void 0!==e.allowHalfTrickle&&e.allowHalfTrickle,this.iceCompleteTimeout=e.iceCompleteTimeout||5e3,this.destroyed=!1,this.destroying=!1,this._connected=!1,this.remoteAddress=void 0,this.remoteFamily=void 0,this.remotePort=void 0,this.localAddress=void 0,this.localFamily=void 0,this.localPort=void 0,this._wrtc=e.wrtc&&"object"==typeof e.wrtc?e.wrtc:i(),!this._wrtc)throw"undefined"==typeof window?c(new Error("No WebRTC support: Specify `opts.wrtc` option in this environment"),"ERR_WEBRTC_SUPPORT"):c(new Error("No WebRTC support: Not a supported browser"),"ERR_WEBRTC_SUPPORT");this._pcReady=!1,this._channelReady=!1,this._iceComplete=!1,this._iceCompleteTimer=null,this._channel=null,this._pendingCandidates=[],this._isNegotiating=!1,this._firstNegotiation=!0,this._batchedNegotiation=!1,this._queuedNegotiation=!1,this._sendersAwaitingStable=[],this._senderMap=new Map,this._closingInterval=null,this._remoteTracks=[],this._remoteStreams=[],this._chunk=null,this._cb=null,this._interval=null;try{this._pc=new this._wrtc.RTCPeerConnection(this.config)}catch(t){return void this.destroy(c(t,"ERR_PC_CONSTRUCTOR"))}this._isReactNativeWebrtc="number"==typeof this._pc._peerConnectionId,this._pc.oniceconnectionstatechange=()=>{this._onIceStateChange()},this._pc.onicegatheringstatechange=()=>{this._onIceStateChange()},this._pc.onconnectionstatechange=()=>{this._onConnectionStateChange()},this._pc.onsignalingstatechange=()=>{this._onSignalingStateChange()},this._pc.onicecandidate=e=>{this._onIceCandidate(e)},"object"==typeof this._pc.peerIdentity&&this._pc.peerIdentity.catch((e=>{this.destroy(c(e,"ERR_PC_PEER_IDENTITY"))})),this.initiator||this.channelNegotiated?this._setupData({channel:this._pc.createDataChannel(this.channelName,this.channelConfig)}):this._pc.ondatachannel=e=>{this._setupData(e)},this.streams&&this.streams.forEach((e=>{this.addStream(e)})),this._pc.ontrack=e=>{this._onTrack(e)},this._debug("initial negotiation"),this._needsNegotiation(),this._onFinishBound=()=>{this._onFinish()},this.once("finish",this._onFinishBound)}get bufferSize(){return this._channel&&this._channel.bufferedAmount||0}get connected(){return this._connected&&"open"===this._channel.readyState}address(){return{port:this.localPort,family:this.localFamily,address:this.localAddress}}signal(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot signal after peer is destroyed"),"ERR_DESTROYED");if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e={}}this._debug("signal()"),e.renegotiate&&this.initiator&&(this._debug("got request to renegotiate"),this._needsNegotiation()),e.transceiverRequest&&this.initiator&&(this._debug("got request for transceiver"),this.addTransceiver(e.transceiverRequest.kind,e.transceiverRequest.init)),e.candidate&&(this._pc.remoteDescription&&this._pc.remoteDescription.type?this._addIceCandidate(e.candidate):this._pendingCandidates.push(e.candidate)),e.sdp&&this._pc.setRemoteDescription(new this._wrtc.RTCSessionDescription(e)).then((()=>{this.destroyed||(this._pendingCandidates.forEach((e=>{this._addIceCandidate(e)})),this._pendingCandidates=[],"offer"===this._pc.remoteDescription.type&&this._createAnswer())})).catch((e=>{this.destroy(c(e,"ERR_SET_REMOTE_DESCRIPTION"))})),e.sdp||e.candidate||e.renegotiate||e.transceiverRequest||this.destroy(c(new Error("signal() called with invalid signal data"),"ERR_SIGNALING"))}}_addIceCandidate(e){const t=new this._wrtc.RTCIceCandidate(e);this._pc.addIceCandidate(t).catch((e=>{var r;!t.address||t.address.endsWith(".local")?(r="Ignoring unsupported ICE candidate.",console.warn(r)):this.destroy(c(e,"ERR_ADD_ICE_CANDIDATE"))}))}send(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot send after peer is destroyed"),"ERR_DESTROYED");this._channel.send(e)}}addTransceiver(e,t){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot addTransceiver after peer is destroyed"),"ERR_DESTROYED");if(this._debug("addTransceiver()"),this.initiator)try{this._pc.addTransceiver(e,t),this._needsNegotiation()}catch(r){this.destroy(c(r,"ERR_ADD_TRANSCEIVER"))}else this.emit("signal",{type:"transceiverRequest",transceiverRequest:{kind:e,init:t}})}}addStream(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot addStream after peer is destroyed"),"ERR_DESTROYED");this._debug("addStream()"),e.getTracks().forEach((t=>{this.addTrack(t,e)}))}}addTrack(e,t){if(this.destroying)return;if(this.destroyed)throw c(new Error("cannot addTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("addTrack()");const r=this._senderMap.get(e)||new Map;let n=r.get(t);if(n)throw n.removed?c(new Error("Track has been removed. You should enable/disable tracks that you want to re-add."),"ERR_SENDER_REMOVED"):c(new Error("Track has already been added to that stream."),"ERR_SENDER_ALREADY_ADDED");n=this._pc.addTrack(e,t),r.set(t,n),this._senderMap.set(e,r),this._needsNegotiation()}replaceTrack(e,t,r){if(this.destroying)return;if(this.destroyed)throw c(new Error("cannot replaceTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("replaceTrack()");const n=this._senderMap.get(e),i=n?n.get(r):null;if(!i)throw c(new Error("Cannot replace track that was never added."),"ERR_TRACK_NOT_ADDED");t&&this._senderMap.set(t,n),null!=i.replaceTrack?i.replaceTrack(t):this.destroy(c(new Error("replaceTrack is not supported in this browser"),"ERR_UNSUPPORTED_REPLACETRACK"))}removeTrack(e,t){if(this.destroying)return;if(this.destroyed)throw c(new Error("cannot removeTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSender()");const r=this._senderMap.get(e),n=r?r.get(t):null;if(!n)throw c(new Error("Cannot remove track that was never added."),"ERR_TRACK_NOT_ADDED");try{n.removed=!0,this._pc.removeTrack(n)}catch(i){"NS_ERROR_UNEXPECTED"===i.name?this._sendersAwaitingStable.push(n):this.destroy(c(i,"ERR_REMOVE_TRACK"))}this._needsNegotiation()}removeStream(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot removeStream after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSenders()"),e.getTracks().forEach((t=>{this.removeTrack(t,e)}))}}_needsNegotiation(){this._debug("_needsNegotiation"),this._batchedNegotiation||(this._batchedNegotiation=!0,s((()=>{this._batchedNegotiation=!1,this.initiator||!this._firstNegotiation?(this._debug("starting batched negotiation"),this.negotiate()):this._debug("non-initiator initial negotiation request discarded"),this._firstNegotiation=!1})))}negotiate(){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot negotiate after peer is destroyed"),"ERR_DESTROYED");this.initiator?this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("start negotiation"),setTimeout((()=>{this._createOffer()}),0)):this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("requesting negotiation from initiator"),this.emit("signal",{type:"renegotiate",renegotiate:!0})),this._isNegotiating=!0}}destroy(e){this._destroy(e,(()=>{}))}_destroy(e,t){this.destroyed||this.destroying||(this.destroying=!0,this._debug("destroying (error: %s)",e&&(e.message||e)),s((()=>{if(this.destroyed=!0,this.destroying=!1,this._debug("destroy (error: %s)",e&&(e.message||e)),this.readable=this.writable=!1,this._readableState.ended||this.push(null),this._writableState.finished||this.end(),this._connected=!1,this._pcReady=!1,this._channelReady=!1,this._remoteTracks=null,this._remoteStreams=null,this._senderMap=null,clearInterval(this._closingInterval),this._closingInterval=null,clearInterval(this._interval),this._interval=null,this._chunk=null,this._cb=null,this._onFinishBound&&this.removeListener("finish",this._onFinishBound),this._onFinishBound=null,this._channel){try{this._channel.close()}catch(e){}this._channel.onmessage=null,this._channel.onopen=null,this._channel.onclose=null,this._channel.onerror=null}if(this._pc){try{this._pc.close()}catch(e){}this._pc.oniceconnectionstatechange=null,this._pc.onicegatheringstatechange=null,this._pc.onsignalingstatechange=null,this._pc.onicecandidate=null,this._pc.ontrack=null,this._pc.ondatachannel=null}this._pc=null,this._channel=null,e&&this.emit("error",e),this.emit("close"),t()})))}_setupData(e){if(!e.channel)return this.destroy(c(new Error("Data channel event is missing `channel` property"),"ERR_DATA_CHANNEL"));this._channel=e.channel,this._channel.binaryType="arraybuffer","number"==typeof this._channel.bufferedAmountLowThreshold&&(this._channel.bufferedAmountLowThreshold=l),this.channelName=this._channel.label,this._channel.onmessage=e=>{this._onChannelMessage(e)},this._channel.onbufferedamountlow=()=>{this._onChannelBufferedAmountLow()},this._channel.onopen=()=>{this._onChannelOpen()},this._channel.onclose=()=>{this._onChannelClose()},this._channel.onerror=e=>{const t=e.error instanceof Error?e.error:new Error(`Datachannel error: ${e.message} ${e.filename}:${e.lineno}:${e.colno}`);this.destroy(c(t,"ERR_DATA_CHANNEL"))};let t=!1;this._closingInterval=setInterval((()=>{this._channel&&"closing"===this._channel.readyState?(t&&this._onChannelClose(),t=!0):t=!1}),5e3)}_read(){}_write(e,t,r){if(this.destroyed)return r(c(new Error("cannot write after peer is destroyed"),"ERR_DATA_CHANNEL"));if(this._connected){try{this.send(e)}catch(n){return this.destroy(c(n,"ERR_DATA_CHANNEL"))}this._channel.bufferedAmount>l?(this._debug("start backpressure: bufferedAmount %d",this._channel.bufferedAmount),this._cb=r):r(null)}else this._debug("write before connect"),this._chunk=e,this._cb=r}_onFinish(){if(this.destroyed)return;const e=()=>{setTimeout((()=>this.destroy()),1e3)};this._connected?e():this.once("connect",e)}_startIceCompleteTimeout(){this.destroyed||this._iceCompleteTimer||(this._debug("started iceComplete timeout"),this._iceCompleteTimer=setTimeout((()=>{this._iceComplete||(this._iceComplete=!0,this._debug("iceComplete timeout completed"),this.emit("iceTimeout"),this.emit("_iceComplete"))}),this.iceCompleteTimeout))}_createOffer(){this.destroyed||this._pc.createOffer(this.offerOptions).then((e=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(e.sdp=d(e.sdp)),e.sdp=this.sdpTransform(e.sdp);const t=()=>{if(this.destroyed)return;const t=this._pc.localDescription||e;this._debug("signal"),this.emit("signal",{type:t.type,sdp:t.sdp})};this._pc.setLocalDescription(e).then((()=>{this._debug("createOffer success"),this.destroyed||(this.trickle||this._iceComplete?t():this.once("_iceComplete",t))})).catch((e=>{this.destroy(c(e,"ERR_SET_LOCAL_DESCRIPTION"))}))})).catch((e=>{this.destroy(c(e,"ERR_CREATE_OFFER"))}))}_requestMissingTransceivers(){this._pc.getTransceivers&&this._pc.getTransceivers().forEach((e=>{e.mid||!e.sender.track||e.requested||(e.requested=!0,this.addTransceiver(e.sender.track.kind))}))}_createAnswer(){this.destroyed||this._pc.createAnswer(this.answerOptions).then((e=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(e.sdp=d(e.sdp)),e.sdp=this.sdpTransform(e.sdp);const t=()=>{if(this.destroyed)return;const t=this._pc.localDescription||e;this._debug("signal"),this.emit("signal",{type:t.type,sdp:t.sdp}),this.initiator||this._requestMissingTransceivers()};this._pc.setLocalDescription(e).then((()=>{this.destroyed||(this.trickle||this._iceComplete?t():this.once("_iceComplete",t))})).catch((e=>{this.destroy(c(e,"ERR_SET_LOCAL_DESCRIPTION"))}))})).catch((e=>{this.destroy(c(e,"ERR_CREATE_ANSWER"))}))}_onConnectionStateChange(){this.destroyed||"failed"===this._pc.connectionState&&this.destroy(c(new Error("Connection failed."),"ERR_CONNECTION_FAILURE"))}_onIceStateChange(){if(this.destroyed)return;const e=this._pc.iceConnectionState,t=this._pc.iceGatheringState;this._debug("iceStateChange (connection: %s) (gathering: %s)",e,t),this.emit("iceStateChange",e,t),"connected"!==e&&"completed"!==e||(this._pcReady=!0,this._maybeReady()),"failed"===e&&this.destroy(c(new Error("Ice connection failed."),"ERR_ICE_CONNECTION_FAILURE")),"closed"===e&&this.destroy(c(new Error("Ice connection closed."),"ERR_ICE_CONNECTION_CLOSED"))}getStats(e){const t=e=>("[object Array]"===Object.prototype.toString.call(e.values)&&e.values.forEach((t=>{Object.assign(e,t)})),e);0===this._pc.getStats.length||this._isReactNativeWebrtc?this._pc.getStats().then((r=>{const n=[];r.forEach((e=>{n.push(t(e))})),e(null,n)}),(t=>e(t))):this._pc.getStats.length>0?this._pc.getStats((r=>{if(this.destroyed)return;const n=[];r.result().forEach((e=>{const r={};e.names().forEach((t=>{r[t]=e.stat(t)})),r.id=e.id,r.type=e.type,r.timestamp=e.timestamp,n.push(t(r))})),e(null,n)}),(t=>e(t))):e(null,[])}_maybeReady(){if(this._debug("maybeReady pc %s channel %s",this._pcReady,this._channelReady),this._connected||this._connecting||!this._pcReady||!this._channelReady)return;this._connecting=!0;const e=()=>{this.destroyed||this.getStats(((t,r)=>{if(this.destroyed)return;t&&(r=[]);const n={},i={},o={};let a=!1;r.forEach((e=>{"remotecandidate"!==e.type&&"remote-candidate"!==e.type||(n[e.id]=e),"localcandidate"!==e.type&&"local-candidate"!==e.type||(i[e.id]=e),"candidatepair"!==e.type&&"candidate-pair"!==e.type||(o[e.id]=e)}));const s=e=>{a=!0;let t=i[e.localCandidateId];t&&(t.ip||t.address)?(this.localAddress=t.ip||t.address,this.localPort=Number(t.port)):t&&t.ipAddress?(this.localAddress=t.ipAddress,this.localPort=Number(t.portNumber)):"string"==typeof e.googLocalAddress&&(t=e.googLocalAddress.split(":"),this.localAddress=t[0],this.localPort=Number(t[1])),this.localAddress&&(this.localFamily=this.localAddress.includes(":")?"IPv6":"IPv4");let r=n[e.remoteCandidateId];r&&(r.ip||r.address)?(this.remoteAddress=r.ip||r.address,this.remotePort=Number(r.port)):r&&r.ipAddress?(this.remoteAddress=r.ipAddress,this.remotePort=Number(r.portNumber)):"string"==typeof e.googRemoteAddress&&(r=e.googRemoteAddress.split(":"),this.remoteAddress=r[0],this.remotePort=Number(r[1])),this.remoteAddress&&(this.remoteFamily=this.remoteAddress.includes(":")?"IPv6":"IPv4"),this._debug("connect local: %s:%s remote: %s:%s",this.localAddress,this.localPort,this.remoteAddress,this.remotePort)};if(r.forEach((e=>{"transport"===e.type&&e.selectedCandidatePairId&&s(o[e.selectedCandidatePairId]),("googCandidatePair"===e.type&&"true"===e.googActiveConnection||("candidatepair"===e.type||"candidate-pair"===e.type)&&e.selected)&&s(e)})),a||Object.keys(o).length&&!Object.keys(i).length){if(this._connecting=!1,this._connected=!0,this._chunk){try{this.send(this._chunk)}catch(t){return this.destroy(c(t,"ERR_DATA_CHANNEL"))}this._chunk=null,this._debug('sent chunk from "write before connect"');const e=this._cb;this._cb=null,e(null)}"number"!=typeof this._channel.bufferedAmountLowThreshold&&(this._interval=setInterval((()=>this._onInterval()),150),this._interval.unref&&this._interval.unref()),this._debug("connect"),this.emit("connect")}else setTimeout(e,100)}))};e()}_onInterval(){!this._cb||!this._channel||this._channel.bufferedAmount>l||this._onChannelBufferedAmountLow()}_onSignalingStateChange(){this.destroyed||("stable"===this._pc.signalingState&&(this._isNegotiating=!1,this._debug("flushing sender queue",this._sendersAwaitingStable),this._sendersAwaitingStable.forEach((e=>{this._pc.removeTrack(e),this._queuedNegotiation=!0})),this._sendersAwaitingStable=[],this._queuedNegotiation?(this._debug("flushing negotiation queue"),this._queuedNegotiation=!1,this._needsNegotiation()):(this._debug("negotiated"),this.emit("negotiated"))),this._debug("signalingStateChange %s",this._pc.signalingState),this.emit("signalingStateChange",this._pc.signalingState))}_onIceCandidate(e){this.destroyed||(e.candidate&&this.trickle?this.emit("signal",{type:"candidate",candidate:{candidate:e.candidate.candidate,sdpMLineIndex:e.candidate.sdpMLineIndex,sdpMid:e.candidate.sdpMid}}):e.candidate||this._iceComplete||(this._iceComplete=!0,this.emit("_iceComplete")),e.candidate&&this._startIceCompleteTimeout())}_onChannelMessage(e){if(this.destroyed)return;let t=e.data;t instanceof ArrayBuffer&&(t=u.from(t)),this.push(t)}_onChannelBufferedAmountLow(){if(this.destroyed||!this._cb)return;this._debug("ending backpressure: bufferedAmount %d",this._channel.bufferedAmount);const e=this._cb;this._cb=null,e(null)}_onChannelOpen(){this._connected||this.destroyed||(this._debug("on channel open"),this._channelReady=!0,this._maybeReady())}_onChannelClose(){this.destroyed||(this._debug("on channel close"),this.destroy())}_onTrack(e){this.destroyed||e.streams.forEach((t=>{this._debug("on track"),this.emit("track",e.track,t),this._remoteTracks.push({track:e.track,stream:t}),this._remoteStreams.some((e=>e.id===t.id))||(this._remoteStreams.push(t),s((()=>{this._debug("on stream"),this.emit("stream",t)})))}))}_debug(){const e=[].slice.call(arguments);e[0]="["+this._id+"] "+e[0],n.apply(null,e)}}f.WEBRTC_SUPPORT=!!i(),f.config={iceServers:[{urls:["stun:stun.l.google.com:19302","stun:global.stun.twilio.com:3478"]}],sdpSemantics:"unified-plan"},f.channelConfig={},e.exports=f},59368:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(r){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(r){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(591703)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},591703:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;const n=s,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(r){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(r){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(803995)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},803995:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;const n=s,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{e.exports=i;var n=r(137007).EventEmitter;function i(){n.call(this)}r(256698)(i,n),i.Readable=r(345412),i.Writable=r(216708),i.Duplex=r(325382),i.Transform=r(374610),i.PassThrough=r(863600),i.finished=r(686238),i.pipeline=r(257758),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},811568:(e,t,r)=>{var n=r(955537),i=r(606917),o=r(57510),a=r(286866),s=r(188835),c=t;c.request=function(e,t){e="string"==typeof e?s.parse(e):o(e);var i=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||i,c=e.hostname||e.host,u=e.port,l=e.path||"/";c&&-1!==c.indexOf(":")&&(c="["+c+"]"),e.url=(c?a+"//"+c:"")+(u?":"+u:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var d=new n(e);return t&&d.on("response",t),d},c.get=function(e,t){var r=c.request(e,t);return r.end(),r},c.ClientRequest=n,c.IncomingMessage=i.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=a,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},306688:(e,t,r)=>{var n;function i(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(r){}return!1}function a(e){return"function"==typeof e}t.fetch=a(r.g.fetch)&&a(r.g.ReadableStream),t.writableStream=a(r.g.WritableStream),t.abortController=a(r.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!i()&&a(i().overrideMimeType),n=null},955537:(e,t,r)=>{var n=r(306688),i=r(256698),o=r(606917),a=r(128399),s=o.IncomingMessage,c=o.readyStates;var u=e.exports=function(e){var t,r=this;a.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+Buffer.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!n.abortController)i=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!n.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return n.fetch&&t?"fetch":n.mozchunkedarraybuffer?"moz-chunked-arraybuffer":n.msstream?"ms-stream":n.arraybuffer&&e?"arraybuffer":"text"}(t,i),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};i(u,a.Writable),u.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===l.indexOf(r)&&(this._headers[r]={name:e,value:t})},u.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},u.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},u.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var i=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(i["content-type"]||{}).value||""}));var a=[];if(Object.keys(i).forEach((function(e){var t=i[e].name,r=i[e].value;Array.isArray(r)?r.forEach((function(e){a.push([t,e])})):a.push([t,r])})),"fetch"===e._mode){var s=null;if(n.abortController){var u=new AbortController;s=u.signal,e._fetchAbortController=u,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:a,body:o||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:s}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var l=e._xhr=new r.g.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(d){return void process.nextTick((function(){e.emit("error",d)}))}"responseType"in l&&(l.responseType=e._mode),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(l.timeout=t.requestTimeout,l.ontimeout=function(){e.emit("requestTimeout")}),a.forEach((function(e){l.setRequestHeader(e[0],e[1])})),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case c.LOADING:case c.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{l.send(o)}catch(d){return void process.nextTick((function(){e.emit("error",d)}))}}}},u.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},u.prototype._connect=function(){var e=this;e._destroyed||(e._response=new s(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},u.prototype._write=function(e,t,r){this._body.push(e),r()},u.prototype._resetTimers=function(e){var t=this;r.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(r.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=r.g.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},u.prototype.abort=u.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},u.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),a.Writable.prototype.end.call(this,e,t,r)},u.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},u.prototype.flushHeaders=function(){},u.prototype.setNoDelay=function(){},u.prototype.setSocketKeepAlive=function(){};var l=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},606917:(e,t,r)=>{var n=r(306688),i=r(256698),o=r(128399),a=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},s=t.IncomingMessage=function(e,t,r,i){var a=this;if(o.Readable.call(a),a._mode=r,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",(function(){process.nextTick((function(){a.emit("close")}))})),"fetch"===r){if(a._fetchResponse=t,a.url=t.url,a.statusCode=t.status,a.statusMessage=t.statusText,t.headers.forEach((function(e,t){a.headers[t.toLowerCase()]=e,a.rawHeaders.push(t,e)})),n.writableStream){var s=new WritableStream({write:function(e){return i(!1),new Promise((function(t,r){a._destroyed?r():a.push(Buffer.from(e))?t():a._resumeFetch=t}))},close:function(){i(!0),a._destroyed||a.push(null)},abort:function(e){i(!0),a._destroyed||a.emit("error",e)}});try{return void t.body.pipeTo(s).catch((function(e){i(!0),a._destroyed||a.emit("error",e)}))}catch(d){}}var c=t.body.getReader();!function e(){c.read().then((function(t){a._destroyed||(i(t.done),t.done?a.push(null):(a.push(Buffer.from(t.value)),e()))})).catch((function(e){i(!0),a._destroyed||a.emit("error",e)}))}()}else{if(a._xhr=e,a._pos=0,a.url=e.responseURL,a.statusCode=e.status,a.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===a.headers[r]&&(a.headers[r]=[]),a.headers[r].push(t[2])):void 0!==a.headers[r]?a.headers[r]+=", "+t[2]:a.headers[r]=t[2],a.rawHeaders.push(t[1],t[2])}})),a._charset="x-user-defined",!n.overrideMimeType){var u=a.rawHeaders["mime-type"];if(u){var l=u.match(/;\s*charset=([^;])(;|$)/);l&&(a._charset=l[1].toLowerCase())}a._charset||(a._charset="utf-8")}}};i(s,o.Readable),s.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},s.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,i=null;switch(t._mode){case"text":if((i=n.responseText).length>t._pos){var o=i.substr(t._pos);if("x-user-defined"===t._charset){for(var s=Buffer.alloc(o.length),c=0;ct._pos&&(t.push(Buffer.from(new Uint8Array(u.result.slice(t._pos)))),t._pos=u.result.byteLength)},u.onload=function(){e(!0),t.push(null)},u.readAsArrayBuffer(i)}t._xhr.readyState===a.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},183141:(e,t,r)=>{"use strict";var n=r(192861).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},383081:(e,t,r)=>{var n=r(617172);e.exports=function(e){return"string"!=typeof e?e:n(e)?e.slice(2):e}},535229:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=n(r(806359)),o=r(398917);t.default=function(e,t){var r={};return e&&"string"==typeof e?((0,i.default)(e,(function(e,n){e&&n&&(r[(0,o.camelCase)(e,t)]=n)})),r):r}},398917:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var r=/^--[a-zA-Z0-9-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},c=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||r.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,c):e.replace(o,c)).replace(n,s))}},806359:(e,t,r)=>{var n=r(619788);e.exports=function(e,t){var r,i=null;if(!e||"string"!=typeof e)return i;for(var o,a,s=n(e),c="function"==typeof t,u=0,l=s.length;u{"use strict";function n(){}r.d(t,{_:()=>Kt,Kc:()=>Je,WL:()=>St,Ts:()=>ut,Hg:()=>Et});function i(e){return e()}function o(e){e.forEach(i)}function a(e){return"function"==typeof e}function s(e){return 0===Object.keys(e).length}function c(e,...t){if(null==e)return n;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}new Set;const u="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;class l{constructor(e){this.options=e,this._listeners="WeakMap"in u?new WeakMap:void 0}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return null!==(e=this._observer)&&void 0!==e?e:this._observer=new ResizeObserver((e=>{var t;for(const r of e)l.entries.set(r.target,r),null===(t=this._listeners.get(r.target))||void 0===t||t(r)}))}}l.entries="WeakMap"in u?new WeakMap:void 0;new Map;let d=[];new Set;new Set;new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]);let f;function h(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];d.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),d=t}(r.after_update),o(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}"function"==typeof HTMLElement&&(f=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(i).filter(a);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){h(this,1),this.$destroy=n}$on(e,t){if(!a(t))return n;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&!s(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const p=[];function g(e,t=n){let r;const i=new Set;function o(t){if(o=t,((n=e)!=n?o==o:n!==o||n&&"object"==typeof n||"function"==typeof n)&&(e=t,r)){const t=!p.length;for(const r of i)r[1](),p.push(r,e);if(t){for(let e=0;e{i.delete(c),0===i.size&&r&&(r(),r=null)}}}}function m(e,t,r){const i=!Array.isArray(e),s=i?[e]:e,u=t.length<2;return l=e=>{let r=!1;const l=[];let d=0,f=n;const h=()=>{if(d)return;f();const r=t(i?l[0]:l,e);u?e(r):f=a(r)?r:n},p=s.map(((e,t)=>c(e,(e=>{l[t]=e,d&=~(1<{d|=1<1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(U,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(z.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(L.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(L,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=(0,C.__assign)((0,C.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=(0,C.__assign)((0,C.__assign)({},t),H(o)))}else if(F.test(i.stem))t=(0,C.__assign)((0,C.__assign)({},t),H(i.stem));else{var a=V(i.stem);a&&(t=(0,C.__assign)((0,C.__assign)({},t),a));var s=K(i.stem);s&&(t=(0,C.__assign)((0,C.__assign)({},t),s))}}return t}var Q,W={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function J(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(W[r||""]||W[n||""]||W["".concat(n,"-001")]||W["001"])[0]}var Y=new RegExp("^".concat(O.source,"*")),Z=new RegExp("".concat(O.source,"*$"));function $(e,t){return{start:e,end:t}}var X=!!String.prototype.startsWith,ee=!!String.fromCodePoint,te=!!Object.fromEntries,re=!!String.prototype.codePointAt,ne=!!String.prototype.trimStart,ie=!!String.prototype.trimEnd,oe=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ae=!0;try{ae="a"===(null===(Q=pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Q?void 0:Q[0])}catch(Gt){ae=!1}var se,ce=X?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},ue=ee?String.fromCodePoint:function(){for(var e=[],t=0;to;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},le=te?Object.fromEntries:function(e){for(var t={},r=0,n=e;r=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},fe=ne?function(e){return e.trimStart()}:function(e){return e.replace(Y,"")},he=ie?function(e){return e.trimEnd()}:function(e){return e.replace(Z,"")};function pe(e,t){return new RegExp(e,t)}if(ae){var ge=pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");se=function(e,t){var r;return ge.lastIndex=t,null!==(r=ge.exec(e)[1])&&void 0!==r?r:""}}else se=function(e,t){for(var r=[];;){var n=de(e,t);if(void 0===n||be(n)||ve(n))break;r.push(n),t+=n>=65536?2:1}return ue.apply(void 0,r)};var me=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(y.UNMATCHED_CLOSING_TAG,$(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ye(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:b.pound,location:$(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:b.literal,value:"<".concat(n,"/>"),location:$(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:b.tag,value:n,children:o,location:$(r,this.clonePosition())},err:null}:this.error(y.INVALID_TAG,$(a,this.clonePosition())))}return this.error(y.UNCLOSED_TAG,$(r,this.clonePosition()))}return this.error(y.INVALID_TAG,$(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=$(r,this.clonePosition());return{val:{type:b.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ye(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return ue.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),ue(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(y.EMPTY_ARGUMENT,$(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(y.MALFORMED_ARGUMENT,$(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:n,location:$(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(y.MALFORMED_ARGUMENT,$(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=se(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:$(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(y.EXPECT_ARGUMENT_TYPE,$(o,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((w=this.parseSimpleArgStyleIfPossible()).err)return w;if(0===(h=he(w.val)).length)return this.error(y.EXPECT_ARGUMENT_STYLE,$(this.clonePosition(),this.clonePosition()));c={style:h,styleLocation:$(u,this.clonePosition())}}if((A=this.tryParseArgumentClose(n)).err)return A;var l=$(n,this.clonePosition());if(c&&ce(null==c?void 0:c.style,"::",0)){var d=fe(c.style.slice(2));if("number"===a)return(w=this.parseNumberSkeletonFromString(d,c.styleLocation)).err?w:{val:{type:b.number,value:r,location:l,style:w.val},err:null};if(0===d.length)return this.error(y.EXPECT_DATE_TIME_SKELETON,l);var f=d;this.locale&&(f=function(e,t){for(var r="",n=0;n>1),c=J(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===i?"H":i}return r}(d,this.locale));var h={type:v.dateTime,pattern:f,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?N(f):{}};return{val:{type:"date"===a?b.date:b.time,value:r,location:l,style:h},err:null}}return{val:{type:"number"===a?b.number:"date"===a?b.date:b.time,value:r,location:l,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,$(p,(0,C.__assign)({},p)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$(this.clonePosition(),this.clonePosition()));var w;if(this.bumpSpace(),(w=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return w;this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=w.val}var A,E=this.tryParsePluralOrSelectOptions(e,a,t,g);if(E.err)return E;if((A=this.tryParseArgumentClose(n)).err)return A;var x=$(n,this.clonePosition());return"select"===a?{val:{type:b.select,value:r,options:le(E.val),location:x},err:null}:{val:{type:b.plural,value:r,options:le(E.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:x},err:null};default:return this.error(y.INVALID_ARGUMENT_TYPE,$(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,$(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,$(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(R).filter((function(e){return e.length>0}));r=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=$(n,this.clonePosition());return i?oe(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=de(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(ce(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&be(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ye(e){return e>=97&&e<=122||e>=65&&e<=90}function be(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ve(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function we(e){e.forEach((function(e){if(delete e.location,_(e)||T(e))for(var t in e.options)delete e.options[t].location,we(e.options[t].value);else S(e)&&j(e.style)||(I(e)||k(e))&&D(e.style)?delete e.style.location:P(e)&&we(e.children)}))}function Ae(e,t){void 0===t&&(t={}),t=(0,C.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new me(e,t).parse();if(r.err){var n=SyntaxError(y[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||we(r.val),r.val}function Ce(e,t){var r=t&&t.cache?t.cache:Me,n=t&&t.serializer?t.serializer:ke;return(t&&t.strategy?t.strategy:Ie)(e,{cache:r,serializer:n})}function Ee(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function xe(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function Se(e,t,r,n,i){return r.bind(t,e,n,i)}function Ie(e,t){return Se(e,this,1===e.length?Ee:xe,t.cache.create(),t.serializer)}var ke=function(){return JSON.stringify(arguments)};function _e(){this.cache=Object.create(null)}_e.prototype.get=function(e){return this.cache[e]},_e.prototype.set=function(e,t){this.cache[e]=t};var Te,Me={create:function(){return new _e}},Pe={variadic:function(e,t){return Se(e,this,xe,t.cache.create(),t.serializer)},monadic:function(e,t){return Se(e,this,Ee,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Te||(Te={}));var je,De=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,C.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Oe=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Te.INVALID_VALUE,i)||this}return(0,C.__extends)(t,e),t}(De),Be=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Te.INVALID_VALUE,n)||this}return(0,C.__extends)(t,e),t}(De),Ne=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Te.MISSING_VALUE,r)||this}return(0,C.__extends)(t,e),t}(De);function Re(e){return"function"==typeof e}function Le(e,t,r,n,i,o,a){if(1===e.length&&E(e[0]))return[{type:je.literal,value:e[0].value}];for(var s=[],c=0,u=e;c0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=Ae,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const He={},Ve=(e,t,r)=>r?(t in He||(He[t]={}),e in He[t]||(He[t][e]=r),r):r,Ke=(e,t)=>{if(null==t)return;if(t in He&&e in He[t])return He[t][e];const r=At(t);for(let n=0;n0){const e=r.slice(i,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[i]]}else n=void 0;return n}(r,t)}function Je(e,...t){delete He[e],qe.update((r=>(r[e]=A().all([r[e]||{},...t]),r)))}m([qe],(([e])=>Object.keys(e)));qe.subscribe((e=>Ge=e));const Ye={};function Ze(e){return Ye[e]}function $e(e){return null!=e&&At(e).some((e=>{var t;return null==(t=Ze(e))?void 0:t.size}))}function Xe(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ye[e].delete(t),0===Ye[e].size&&delete Ye[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Je(e,...t)))}const et={};function tt(e){if(!$e(e))return e in et?et[e]:Promise.resolve();const t=function(e){return At(e).map((e=>{const t=Ze(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return et[e]=Promise.all(t.map((([e,t])=>Xe(e,t)))).then((()=>{if($e(e))return tt(e);delete et[e]})),et[e]}var rt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,ot=(e,t)=>{var r={};for(var n in e)nt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&rt)for(var n of rt(e))t.indexOf(n)<0&&it.call(e,n)&&(r[n]=e[n]);return r};function at({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${At(e).join('", "')}".${$e(Ct())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const st={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function ct(){return st}function ut(e){const t=e,{formats:r}=t,n=ot(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{ze.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(o){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=at:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(st,n,{initialLocale:i}),r&&("number"in r&&Object.assign(st.formats.number,r.number),"date"in r&&Object.assign(st.formats.date,r.date),"time"in r&&Object.assign(st.formats.time,r.time)),Et.set(i)}const lt=g(!1);var dt=Object.defineProperty,ft=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,yt=(e,t,r)=>t in e?dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let bt;const vt=g(null);function wt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function At(e,t=ct().fallbackLocale){const r=wt(e);return t?[...new Set([...r,...wt(t)])]:r}function Ct(){return null!=bt?bt:void 0}vt.subscribe((e=>{bt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Et=(xt=((e,t)=>{for(var r in t||(t={}))gt.call(t,r)&&yt(e,r,t[r]);if(pt)for(var r of pt(t))mt.call(t,r)&&yt(e,r,t[r]);return e})({},vt),ft(xt,ht({set:e=>{if(e&&function(e){if(null==e)return;const t=At(e);for(let r=0;rlt.set(!0)),t):lt.set(!0),tt(e).then((()=>{vt.set(e)})).finally((()=>{clearTimeout(r),lt.set(!1)}))}return vt.set(e)}})));var xt;const St=()=>"undefined"==typeof window?null:window.navigator.language||window.navigator.languages[0],It=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var kt=Object.defineProperty,_t=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Pt=(e,t,r)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jt=(e,t)=>{for(var r in t||(t={}))Tt.call(t,r)&&Pt(e,r,t[r]);if(_t)for(var r of _t(t))Mt.call(t,r)&&Pt(e,r,t[r]);return e},Dt=(e,t)=>{var r={};for(var n in e)Tt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&_t)for(var n of _t(e))t.indexOf(n)<0&&Mt.call(e,n)&&(r[n]=e[n]);return r};const Ot=(e,t)=>{const{formats:r}=ct();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Bt=It((e=>{var t=e,{locale:r,format:n}=t,i=Dt(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Ot("number",n)),new Intl.NumberFormat(r,i)})),Nt=It((e=>{var t=e,{locale:r,format:n}=t,i=Dt(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Ot("date",n):0===Object.keys(i).length&&(i=Ot("date","short")),new Intl.DateTimeFormat(r,i)})),Rt=It((e=>{var t=e,{locale:r,format:n}=t,i=Dt(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Ot("time",n):0===Object.keys(i).length&&(i=Ot("time","short")),new Intl.DateTimeFormat(r,i)})),Lt=It(((e,t=Ct())=>new ze(e,t,ct().formats,{ignoreTag:ct().ignoreTag}))),Ft=(e,t={})=>{var r,n,i,o;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:s,locale:c=Ct(),default:u}=a;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Ke(e,c);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(o=null!=(i=null==(n=(r=ct()).handleMissingMessage)?void 0:n.call(r,{locale:c,id:e,defaultValue:u}))?i:u)?o:e;if(!s)return l;let d=l;try{d=Lt(l,c).format(s)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,f.message)}return d},Ut=(e,t)=>((e={})=>{var t=e,{locale:r=Ct()}=t,n=Dt(t,["locale"]);return Rt(jt({locale:r},n))})(t).format(e),zt=(e,t)=>((e={})=>{var t=e,{locale:r=Ct()}=t,n=Dt(t,["locale"]);return Nt(jt({locale:r},n))})(t).format(e),Ht=(e,t)=>((e={})=>{var t=e,{locale:r=Ct()}=t,n=Dt(t,["locale"]);return Bt(jt({locale:r},n))})(t).format(e),Vt=(e,t=Ct())=>Ke(e,t),Kt=m([Et,qe],(()=>Ft));m([Et],(()=>Ut)),m([Et],(()=>zt)),m([Et],(()=>Ht)),m([Et,qe],(()=>Vt))},976386:function(e){!function(t,r){"use strict";e.exports?e.exports=r():(t.nacl||(t.nacl={}),t.nacl.util=r())}(this,(function(){"use strict";var e={};function t(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var t,r=unescape(encodeURIComponent(e)),n=new Uint8Array(r.length);for(t=0;t{!function(e){"use strict";var t=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function g(e,t,r,n,i){var o,a=0;for(o=0;o>>8)-1}function m(e,t,r,n){return g(e,t,r,n,16)}function y(e,t,r,n){return g(e,t,r,n,32)}function b(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,c=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,u=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,l=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,m=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,y=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,b=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,A=o,C=a,E=s,x=c,S=u,I=l,k=d,_=f,T=h,M=p,P=g,j=m,D=y,O=b,B=v,N=w,R=0;R<20;R+=2)A^=(i=(D^=(i=(T^=(i=(S^=(i=A+D|0)<<7|i>>>25)+A|0)<<9|i>>>23)+S|0)<<13|i>>>19)+T|0)<<18|i>>>14,I^=(i=(C^=(i=(O^=(i=(M^=(i=I+C|0)<<7|i>>>25)+I|0)<<9|i>>>23)+M|0)<<13|i>>>19)+O|0)<<18|i>>>14,P^=(i=(k^=(i=(E^=(i=(B^=(i=P+k|0)<<7|i>>>25)+P|0)<<9|i>>>23)+B|0)<<13|i>>>19)+E|0)<<18|i>>>14,N^=(i=(j^=(i=(_^=(i=(x^=(i=N+j|0)<<7|i>>>25)+N|0)<<9|i>>>23)+x|0)<<13|i>>>19)+_|0)<<18|i>>>14,A^=(i=(x^=(i=(E^=(i=(C^=(i=A+x|0)<<7|i>>>25)+A|0)<<9|i>>>23)+C|0)<<13|i>>>19)+E|0)<<18|i>>>14,I^=(i=(S^=(i=(_^=(i=(k^=(i=I+S|0)<<7|i>>>25)+I|0)<<9|i>>>23)+k|0)<<13|i>>>19)+_|0)<<18|i>>>14,P^=(i=(M^=(i=(T^=(i=(j^=(i=P+M|0)<<7|i>>>25)+P|0)<<9|i>>>23)+j|0)<<13|i>>>19)+T|0)<<18|i>>>14,N^=(i=(B^=(i=(O^=(i=(D^=(i=N+B|0)<<7|i>>>25)+N|0)<<9|i>>>23)+D|0)<<13|i>>>19)+O|0)<<18|i>>>14;A=A+o|0,C=C+a|0,E=E+s|0,x=x+c|0,S=S+u|0,I=I+l|0,k=k+d|0,_=_+f|0,T=T+h|0,M=M+p|0,P=P+g|0,j=j+m|0,D=D+y|0,O=O+b|0,B=B+v|0,N=N+w|0,e[0]=A>>>0&255,e[1]=A>>>8&255,e[2]=A>>>16&255,e[3]=A>>>24&255,e[4]=C>>>0&255,e[5]=C>>>8&255,e[6]=C>>>16&255,e[7]=C>>>24&255,e[8]=E>>>0&255,e[9]=E>>>8&255,e[10]=E>>>16&255,e[11]=E>>>24&255,e[12]=x>>>0&255,e[13]=x>>>8&255,e[14]=x>>>16&255,e[15]=x>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=I>>>0&255,e[21]=I>>>8&255,e[22]=I>>>16&255,e[23]=I>>>24&255,e[24]=k>>>0&255,e[25]=k>>>8&255,e[26]=k>>>16&255,e[27]=k>>>24&255,e[28]=_>>>0&255,e[29]=_>>>8&255,e[30]=_>>>16&255,e[31]=_>>>24&255,e[32]=T>>>0&255,e[33]=T>>>8&255,e[34]=T>>>16&255,e[35]=T>>>24&255,e[36]=M>>>0&255,e[37]=M>>>8&255,e[38]=M>>>16&255,e[39]=M>>>24&255,e[40]=P>>>0&255,e[41]=P>>>8&255,e[42]=P>>>16&255,e[43]=P>>>24&255,e[44]=j>>>0&255,e[45]=j>>>8&255,e[46]=j>>>16&255,e[47]=j>>>24&255,e[48]=D>>>0&255,e[49]=D>>>8&255,e[50]=D>>>16&255,e[51]=D>>>24&255,e[52]=O>>>0&255,e[53]=O>>>8&255,e[54]=O>>>16&255,e[55]=O>>>24&255,e[56]=B>>>0&255,e[57]=B>>>8&255,e[58]=B>>>16&255,e[59]=B>>>24&255,e[60]=N>>>0&255,e[61]=N>>>8&255,e[62]=N>>>16&255,e[63]=N>>>24&255}(e,t,r,n)}function v(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,c=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,u=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,l=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,m=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,y=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,b=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,A=0;A<20;A+=2)o^=(i=(y^=(i=(h^=(i=(u^=(i=o+y|0)<<7|i>>>25)+o|0)<<9|i>>>23)+u|0)<<13|i>>>19)+h|0)<<18|i>>>14,l^=(i=(a^=(i=(b^=(i=(p^=(i=l+a|0)<<7|i>>>25)+l|0)<<9|i>>>23)+p|0)<<13|i>>>19)+b|0)<<18|i>>>14,g^=(i=(d^=(i=(s^=(i=(v^=(i=g+d|0)<<7|i>>>25)+g|0)<<9|i>>>23)+v|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(m^=(i=(f^=(i=(c^=(i=w+m|0)<<7|i>>>25)+w|0)<<9|i>>>23)+c|0)<<13|i>>>19)+f|0)<<18|i>>>14,o^=(i=(c^=(i=(s^=(i=(a^=(i=o+c|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,l^=(i=(u^=(i=(f^=(i=(d^=(i=l+u|0)<<7|i>>>25)+l|0)<<9|i>>>23)+d|0)<<13|i>>>19)+f|0)<<18|i>>>14,g^=(i=(p^=(i=(h^=(i=(m^=(i=g+p|0)<<7|i>>>25)+g|0)<<9|i>>>23)+m|0)<<13|i>>>19)+h|0)<<18|i>>>14,w^=(i=(v^=(i=(b^=(i=(y^=(i=w+v|0)<<7|i>>>25)+w|0)<<9|i>>>23)+y|0)<<13|i>>>19)+b|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=l>>>0&255,e[5]=l>>>8&255,e[6]=l>>>16&255,e[7]=l>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,r,n)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function A(e,t,r,n,i,o,a){var s,c,u=new Uint8Array(16),l=new Uint8Array(64);for(c=0;c<16;c++)u[c]=0;for(c=0;c<8;c++)u[c]=o[c];for(;i>=64;){for(b(l,u,a,w),c=0;c<64;c++)e[t+c]=r[n+c]^l[c];for(s=1,c=8;c<16;c++)s=s+(255&u[c])|0,u[c]=255&s,s>>>=8;i-=64,t+=64,n+=64}if(i>0)for(b(l,u,a,w),c=0;c=64;){for(b(c,s,i,w),a=0;a<64;a++)e[t+a]=c[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;r-=64,t+=64}if(r>0)for(b(c,s,i,w),a=0;a>>13|r<<3),n=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(n>>>7|i<<9),o=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function I(e,t,r,n,i,o){var a=new S(o);return a.update(r,n,i),a.finish(e,t),0}function k(e,t,r,n,i,o){var a=new Uint8Array(16);return I(a,0,r,n,i,o),m(e,t,a,0)}function _(e,t,r,n,i){var o;if(r<32)return-1;for(x(e,0,t,0,r,n,i),I(e,16,e,32,r-32,e),o=0;o<16;o++)e[o]=0;return 0}function T(e,t,r,n,i){var o,a=new Uint8Array(32);if(r<32)return-1;if(E(a,0,32,n,i),0!==k(t,16,t,32,r-32,a))return-1;for(x(e,0,t,0,r,n,i),o=0;o<32;o++)e[o]=0;return 0}function M(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function P(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function j(e,t,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(e[o]^t[o]),e[o]^=n,t[o]^=n}function D(e,r){var n,i,o,a=t(),s=t();for(n=0;n<16;n++)s[n]=r[n];for(P(s),P(s),P(s),i=0;i<2;i++){for(a[0]=s[0]-65517,n=1;n<15;n++)a[n]=s[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,j(s,a,1-o)}for(n=0;n<16;n++)e[2*n]=255&s[n],e[2*n+1]=s[n]>>8}function O(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return D(r,e),D(n,t),y(r,0,n,0)}function B(e){var t=new Uint8Array(32);return D(t,e),1&t[0]}function N(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function R(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function L(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function F(e,t,r){var n,i,o=0,a=0,s=0,c=0,u=0,l=0,d=0,f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,A=0,C=0,E=0,x=0,S=0,I=0,k=0,_=0,T=0,M=0,P=0,j=0,D=0,O=0,B=0,N=r[0],R=r[1],L=r[2],F=r[3],U=r[4],z=r[5],H=r[6],V=r[7],K=r[8],G=r[9],q=r[10],Q=r[11],W=r[12],J=r[13],Y=r[14],Z=r[15];o+=(n=t[0])*N,a+=n*R,s+=n*L,c+=n*F,u+=n*U,l+=n*z,d+=n*H,f+=n*V,h+=n*K,p+=n*G,g+=n*q,m+=n*Q,y+=n*W,b+=n*J,v+=n*Y,w+=n*Z,a+=(n=t[1])*N,s+=n*R,c+=n*L,u+=n*F,l+=n*U,d+=n*z,f+=n*H,h+=n*V,p+=n*K,g+=n*G,m+=n*q,y+=n*Q,b+=n*W,v+=n*J,w+=n*Y,A+=n*Z,s+=(n=t[2])*N,c+=n*R,u+=n*L,l+=n*F,d+=n*U,f+=n*z,h+=n*H,p+=n*V,g+=n*K,m+=n*G,y+=n*q,b+=n*Q,v+=n*W,w+=n*J,A+=n*Y,C+=n*Z,c+=(n=t[3])*N,u+=n*R,l+=n*L,d+=n*F,f+=n*U,h+=n*z,p+=n*H,g+=n*V,m+=n*K,y+=n*G,b+=n*q,v+=n*Q,w+=n*W,A+=n*J,C+=n*Y,E+=n*Z,u+=(n=t[4])*N,l+=n*R,d+=n*L,f+=n*F,h+=n*U,p+=n*z,g+=n*H,m+=n*V,y+=n*K,b+=n*G,v+=n*q,w+=n*Q,A+=n*W,C+=n*J,E+=n*Y,x+=n*Z,l+=(n=t[5])*N,d+=n*R,f+=n*L,h+=n*F,p+=n*U,g+=n*z,m+=n*H,y+=n*V,b+=n*K,v+=n*G,w+=n*q,A+=n*Q,C+=n*W,E+=n*J,x+=n*Y,S+=n*Z,d+=(n=t[6])*N,f+=n*R,h+=n*L,p+=n*F,g+=n*U,m+=n*z,y+=n*H,b+=n*V,v+=n*K,w+=n*G,A+=n*q,C+=n*Q,E+=n*W,x+=n*J,S+=n*Y,I+=n*Z,f+=(n=t[7])*N,h+=n*R,p+=n*L,g+=n*F,m+=n*U,y+=n*z,b+=n*H,v+=n*V,w+=n*K,A+=n*G,C+=n*q,E+=n*Q,x+=n*W,S+=n*J,I+=n*Y,k+=n*Z,h+=(n=t[8])*N,p+=n*R,g+=n*L,m+=n*F,y+=n*U,b+=n*z,v+=n*H,w+=n*V,A+=n*K,C+=n*G,E+=n*q,x+=n*Q,S+=n*W,I+=n*J,k+=n*Y,_+=n*Z,p+=(n=t[9])*N,g+=n*R,m+=n*L,y+=n*F,b+=n*U,v+=n*z,w+=n*H,A+=n*V,C+=n*K,E+=n*G,x+=n*q,S+=n*Q,I+=n*W,k+=n*J,_+=n*Y,T+=n*Z,g+=(n=t[10])*N,m+=n*R,y+=n*L,b+=n*F,v+=n*U,w+=n*z,A+=n*H,C+=n*V,E+=n*K,x+=n*G,S+=n*q,I+=n*Q,k+=n*W,_+=n*J,T+=n*Y,M+=n*Z,m+=(n=t[11])*N,y+=n*R,b+=n*L,v+=n*F,w+=n*U,A+=n*z,C+=n*H,E+=n*V,x+=n*K,S+=n*G,I+=n*q,k+=n*Q,_+=n*W,T+=n*J,M+=n*Y,P+=n*Z,y+=(n=t[12])*N,b+=n*R,v+=n*L,w+=n*F,A+=n*U,C+=n*z,E+=n*H,x+=n*V,S+=n*K,I+=n*G,k+=n*q,_+=n*Q,T+=n*W,M+=n*J,P+=n*Y,j+=n*Z,b+=(n=t[13])*N,v+=n*R,w+=n*L,A+=n*F,C+=n*U,E+=n*z,x+=n*H,S+=n*V,I+=n*K,k+=n*G,_+=n*q,T+=n*Q,M+=n*W,P+=n*J,j+=n*Y,D+=n*Z,v+=(n=t[14])*N,w+=n*R,A+=n*L,C+=n*F,E+=n*U,x+=n*z,S+=n*H,I+=n*V,k+=n*K,_+=n*G,T+=n*q,M+=n*Q,P+=n*W,j+=n*J,D+=n*Y,O+=n*Z,w+=(n=t[15])*N,a+=38*(C+=n*L),s+=38*(E+=n*F),c+=38*(x+=n*U),u+=38*(S+=n*z),l+=38*(I+=n*H),d+=38*(k+=n*V),f+=38*(_+=n*K),h+=38*(T+=n*G),p+=38*(M+=n*q),g+=38*(P+=n*Q),m+=38*(j+=n*W),y+=38*(D+=n*J),b+=38*(O+=n*Y),v+=38*(B+=n*Z),o=(n=(o+=38*(A+=n*R))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=c,e[4]=u,e[5]=l,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function U(e,t){F(e,t,t)}function z(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)U(i,i),2!==n&&4!==n&&F(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function H(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)U(i,i),1!==n&&F(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function V(e,r,n){var i,o,a=new Uint8Array(32),s=new Float64Array(80),u=t(),l=t(),d=t(),f=t(),h=t(),p=t();for(o=0;o<31;o++)a[o]=r[o];for(a[31]=127&r[31]|64,a[0]&=248,N(s,n),o=0;o<16;o++)l[o]=s[o],f[o]=u[o]=d[o]=0;for(u[0]=f[0]=1,o=254;o>=0;--o)j(u,l,i=a[o>>>3]>>>(7&o)&1),j(d,f,i),R(h,u,d),L(u,u,d),R(d,l,f),L(l,l,f),U(f,h),U(p,u),F(u,d,u),F(d,l,h),R(h,u,d),L(u,u,d),U(l,u),L(d,f,p),F(u,d,c),R(u,u,f),F(d,d,u),F(u,f,p),F(f,l,s),U(l,h),j(u,l,i),j(d,f,i);for(o=0;o<16;o++)s[o+16]=u[o],s[o+32]=d[o],s[o+48]=l[o],s[o+64]=f[o];var g=s.subarray(32),m=s.subarray(16);return z(g,g),F(m,m,g),D(e,m),0}function K(e,t){return V(e,t,o)}function G(e,t){return n(t,32),K(e,t)}function q(e,t,r){var n=new Uint8Array(32);return V(n,r,t),v(e,i,n,w)}S.prototype.blocks=function(e,t,r){for(var n,i,o,a,s,c,u,l,d,f,h,p,g,m,y,b,v,w,A,C=this.fin?0:2048,E=this.h[0],x=this.h[1],S=this.h[2],I=this.h[3],k=this.h[4],_=this.h[5],T=this.h[6],M=this.h[7],P=this.h[8],j=this.h[9],D=this.r[0],O=this.r[1],B=this.r[2],N=this.r[3],R=this.r[4],L=this.r[5],F=this.r[6],U=this.r[7],z=this.r[8],H=this.r[9];r>=16;)f=d=0,f+=(E+=8191&(n=255&e[t+0]|(255&e[t+1])<<8))*D,f+=(x+=8191&(n>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*H),f+=(S+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*z),f+=(I+=8191&(o>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*U),d=(f+=(k+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*F))>>>13,f&=8191,f+=(_+=s>>>1&8191)*(5*L),f+=(T+=8191&(s>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*R),f+=(M+=8191&(c>>>11|(u=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*N),f+=(P+=8191&(u>>>8|(l=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*B),h=d+=(f+=(j+=l>>>5|C)*(5*O))>>>13,h+=E*O,h+=x*D,h+=S*(5*H),h+=I*(5*z),d=(h+=k*(5*U))>>>13,h&=8191,h+=_*(5*F),h+=T*(5*L),h+=M*(5*R),h+=P*(5*N),d+=(h+=j*(5*B))>>>13,h&=8191,p=d,p+=E*B,p+=x*O,p+=S*D,p+=I*(5*H),d=(p+=k*(5*z))>>>13,p&=8191,p+=_*(5*U),p+=T*(5*F),p+=M*(5*L),p+=P*(5*R),g=d+=(p+=j*(5*N))>>>13,g+=E*N,g+=x*B,g+=S*O,g+=I*D,d=(g+=k*(5*H))>>>13,g&=8191,g+=_*(5*z),g+=T*(5*U),g+=M*(5*F),g+=P*(5*L),m=d+=(g+=j*(5*R))>>>13,m+=E*R,m+=x*N,m+=S*B,m+=I*O,d=(m+=k*D)>>>13,m&=8191,m+=_*(5*H),m+=T*(5*z),m+=M*(5*U),m+=P*(5*F),y=d+=(m+=j*(5*L))>>>13,y+=E*L,y+=x*R,y+=S*N,y+=I*B,d=(y+=k*O)>>>13,y&=8191,y+=_*D,y+=T*(5*H),y+=M*(5*z),y+=P*(5*U),b=d+=(y+=j*(5*F))>>>13,b+=E*F,b+=x*L,b+=S*R,b+=I*N,d=(b+=k*B)>>>13,b&=8191,b+=_*O,b+=T*D,b+=M*(5*H),b+=P*(5*z),v=d+=(b+=j*(5*U))>>>13,v+=E*U,v+=x*F,v+=S*L,v+=I*R,d=(v+=k*N)>>>13,v&=8191,v+=_*B,v+=T*O,v+=M*D,v+=P*(5*H),w=d+=(v+=j*(5*z))>>>13,w+=E*z,w+=x*U,w+=S*F,w+=I*L,d=(w+=k*R)>>>13,w&=8191,w+=_*N,w+=T*B,w+=M*O,w+=P*D,A=d+=(w+=j*(5*H))>>>13,A+=E*H,A+=x*z,A+=S*U,A+=I*F,d=(A+=k*L)>>>13,A&=8191,A+=_*R,A+=T*N,A+=M*B,A+=P*O,E=f=8191&(d=(d=((d+=(A+=j*D)>>>13)<<2)+d|0)+(f&=8191)|0),x=h+=d>>>=13,S=p&=8191,I=g&=8191,k=m&=8191,_=y&=8191,T=b&=8191,M=v&=8191,P=w&=8191,j=A&=8191,t+=16,r-=16;this.h[0]=E,this.h[1]=x,this.h[2]=S,this.h[3]=I,this.h[4]=k,this.h[5]=_,this.h[6]=T,this.h[7]=M,this.h[8]=P,this.h[9]=j},S.prototype.finish=function(e,t){var r,n,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=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,a[0]=this.h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(n=~n,o=0;o<10;o++)this.h[o]=this.h[o]&n|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n=16&&(i=r-r%16,this.blocks(e,t,i),t+=i,r-=i),r){for(n=0;n=128;){for(C=0;C<16;C++)E=8*C+W,M[C]=r[E+0]<<24|r[E+1]<<16|r[E+2]<<8|r[E+3],P[C]=r[E+4]<<24|r[E+5]<<16|r[E+6]<<8|r[E+7];for(C=0;C<80;C++)if(i=j,o=D,a=O,s=B,c=N,u=R,l=L,F,f=U,h=z,p=H,g=V,m=K,y=G,b=q,Q,I=65535&(S=Q),k=S>>>16,_=65535&(x=F),T=x>>>16,I+=65535&(S=(K>>>14|N<<18)^(K>>>18|N<<14)^(N>>>9|K<<23)),k+=S>>>16,_+=65535&(x=(N>>>14|K<<18)^(N>>>18|K<<14)^(K>>>9|N<<23)),T+=x>>>16,I+=65535&(S=K&G^~K&q),k+=S>>>16,_+=65535&(x=N&R^~N&L),T+=x>>>16,I+=65535&(S=J[2*C+1]),k+=S>>>16,_+=65535&(x=J[2*C]),T+=x>>>16,x=M[C%16],k+=(S=P[C%16])>>>16,_+=65535&x,T+=x>>>16,_+=(k+=(I+=65535&S)>>>16)>>>16,I=65535&(S=A=65535&I|k<<16),k=S>>>16,_=65535&(x=w=65535&_|(T+=_>>>16)<<16),T=x>>>16,I+=65535&(S=(U>>>28|j<<4)^(j>>>2|U<<30)^(j>>>7|U<<25)),k+=S>>>16,_+=65535&(x=(j>>>28|U<<4)^(U>>>2|j<<30)^(U>>>7|j<<25)),T+=x>>>16,k+=(S=U&z^U&H^z&H)>>>16,_+=65535&(x=j&D^j&O^D&O),T+=x>>>16,d=65535&(_+=(k+=(I+=65535&S)>>>16)>>>16)|(T+=_>>>16)<<16,v=65535&I|k<<16,I=65535&(S=g),k=S>>>16,_=65535&(x=s),T=x>>>16,k+=(S=A)>>>16,_+=65535&(x=w),T+=x>>>16,D=i,O=o,B=a,N=s=65535&(_+=(k+=(I+=65535&S)>>>16)>>>16)|(T+=_>>>16)<<16,R=c,L=u,F=l,j=d,z=f,H=h,V=p,K=g=65535&I|k<<16,G=m,q=y,Q=b,U=v,C%16==15)for(E=0;E<16;E++)x=M[E],I=65535&(S=P[E]),k=S>>>16,_=65535&x,T=x>>>16,x=M[(E+9)%16],I+=65535&(S=P[(E+9)%16]),k+=S>>>16,_+=65535&x,T+=x>>>16,w=M[(E+1)%16],I+=65535&(S=((A=P[(E+1)%16])>>>1|w<<31)^(A>>>8|w<<24)^(A>>>7|w<<25)),k+=S>>>16,_+=65535&(x=(w>>>1|A<<31)^(w>>>8|A<<24)^w>>>7),T+=x>>>16,w=M[(E+14)%16],k+=(S=((A=P[(E+14)%16])>>>19|w<<13)^(w>>>29|A<<3)^(A>>>6|w<<26))>>>16,_+=65535&(x=(w>>>19|A<<13)^(A>>>29|w<<3)^w>>>6),T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,M[E]=65535&_|T<<16,P[E]=65535&I|k<<16;I=65535&(S=U),k=S>>>16,_=65535&(x=j),T=x>>>16,x=e[0],k+=(S=t[0])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[0]=j=65535&_|T<<16,t[0]=U=65535&I|k<<16,I=65535&(S=z),k=S>>>16,_=65535&(x=D),T=x>>>16,x=e[1],k+=(S=t[1])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[1]=D=65535&_|T<<16,t[1]=z=65535&I|k<<16,I=65535&(S=H),k=S>>>16,_=65535&(x=O),T=x>>>16,x=e[2],k+=(S=t[2])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[2]=O=65535&_|T<<16,t[2]=H=65535&I|k<<16,I=65535&(S=V),k=S>>>16,_=65535&(x=B),T=x>>>16,x=e[3],k+=(S=t[3])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[3]=B=65535&_|T<<16,t[3]=V=65535&I|k<<16,I=65535&(S=K),k=S>>>16,_=65535&(x=N),T=x>>>16,x=e[4],k+=(S=t[4])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[4]=N=65535&_|T<<16,t[4]=K=65535&I|k<<16,I=65535&(S=G),k=S>>>16,_=65535&(x=R),T=x>>>16,x=e[5],k+=(S=t[5])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[5]=R=65535&_|T<<16,t[5]=G=65535&I|k<<16,I=65535&(S=q),k=S>>>16,_=65535&(x=L),T=x>>>16,x=e[6],k+=(S=t[6])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[6]=L=65535&_|T<<16,t[6]=q=65535&I|k<<16,I=65535&(S=Q),k=S>>>16,_=65535&(x=F),T=x>>>16,x=e[7],k+=(S=t[7])>>>16,_+=65535&x,T+=x>>>16,T+=(_+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[7]=F=65535&_|T<<16,t[7]=Q=65535&I|k<<16,W+=128,n-=128}return n}function Z(e,t,r){var n,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Y(i,o,t,r),r%=128,n=0;n=0;--i)X(e,t,n=r[i/8|0]>>(7&i)&1),$(t,e),$(e,e),X(e,t,n)}function re(e,r){var n=[t(),t(),t(),t()];M(n[0],d),M(n[1],f),M(n[2],s),F(n[3],d,f),te(e,n,r)}function ne(e,r,i){var o,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(i||n(r,32),Z(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,re(s,a),ee(e,s),o=0;o<32;o++)r[o+32]=e[o];return 0}var ie=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 oe(e,t){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i>4)*ie[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*ie[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function ae(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;oe(e,r)}function se(e,r,n,i){var o,a,s=new Uint8Array(64),c=new Uint8Array(64),u=new Uint8Array(64),l=new Float64Array(64),d=[t(),t(),t(),t()];Z(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=n+64;for(o=0;o>7&&L(e[0],a,e[0]),F(e[3],e[0],e[1]),0)}(f,i))return-1;for(o=0;o=0},e.sign.keyPair=function(){var e=new Uint8Array(de),t=new Uint8Array(fe);return ne(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(pe(e),e.length!==fe)throw new Error("bad secret key size");for(var t=new Uint8Array(de),r=0;r{"use strict";var n=r(492063),i=r(173992),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(o,"")}var f=[["#","hash"],["?","query"],function(e,t){return g(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function p(e){var t,n=("undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{}).location||{},i={},o=typeof(e=e||n);if("blob:"===e.protocol)i=new y(unescape(e.pathname),{});else if("string"===o)for(t in i=new y(e,{}),h)delete i[t];else if("object"===o){for(t in e)t in h||(i[t]=e[t]);void 0===i.slashes&&(i.slashes=s.test(e.href))}return i}function g(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function m(e,t){e=(e=d(e)).replace(a,""),t=t||{};var r,n=u.exec(e),i=n[1]?n[1].toLowerCase():"",o=!!n[2],s=!!n[3],c=0;return o?s?(r=n[2]+n[3]+n[4],c=n[2].length+n[3].length):(r=n[2]+n[4],c=n[2].length):s?(r=n[3]+n[4],c=n[3].length):r=n[4],"file:"===i?c>=2&&(r=r.slice(2)):g(i)?r=n[4]:i?o&&(r=r.slice(2)):c>=2&&g(t.protocol)&&(r=n[4]),{protocol:i,slashes:o||g(i),slashesCount:c,rest:r}}function y(e,t,r){if(e=(e=d(e)).replace(a,""),!(this instanceof y))return new y(e,t,r);var o,s,c,u,h,b,v=f.slice(),w=typeof t,A=this,C=0;for("object"!==w&&"string"!==w&&(r=t,t=null),r&&"function"!=typeof r&&(r=i.parse),o=!(s=m(e||"",t=p(t))).protocol&&!s.slashes,A.slashes=s.slashes||o&&t.slashes,A.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||l.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!g(A.protocol)))&&(v[3]=[/(.*)/,"pathname"]);C{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:i}},563098:(e,t,r)=>{"use strict";var n=r(991207),i=r(60969),o=r(95902);e.exports={formats:o,parse:i,stringify:n}},60969:(e,t,r)=>{"use strict";var n=r(562795),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=s?o.slice(0,s.index):o,l=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var d=0;r.depth>0&&null!==(s=a.exec(o))&&d=0;--o){var a,s=e[o];if("[]"===s&&r.parseArrays)a=r.allowEmptyArrays&&(""===i||r.strictNullHandling&&null===i)?[]:[].concat(i);else{a=r.plainObjects?{__proto__:null}:{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,d=parseInt(l,10);r.parseArrays||""!==l?!isNaN(d)&&s!==l&&String(d)===l&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(a=[])[d]=i:"__proto__"!==l&&(a[l]=i):a={0:i}}i=a}return i}(l,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var l="string"==typeof e?function(e,t){var r={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,d),h=-1,p=t.charset;if(t.charsetSentinel)for(l=0;l-1&&(m=o(m)?[m]:m);var w=i.call(r,g);w&&"combine"===t.duplicates?r[g]=n.combine(r[g],m):w&&"last"!==t.duplicates||(r[g]=m)}return r}(e,r):e,d=r.plainObjects?{__proto__:null}:{},f=Object.keys(l),h=0;h{"use strict";var n=r(200920),i=r(562795),o=r(95902),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},d=Date.prototype.toISOString,f=o.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},p={},g=function e(t,r,o,a,s,u,d,f,g,m,y,b,v,w,A,C,E,x){for(var S,I=t,k=x,_=0,T=!1;void 0!==(k=k.get(p))&&!T;){var M=k.get(t);if(_+=1,void 0!==M){if(M===_)throw new RangeError("Cyclic object value");T=!0}void 0===k.get(p)&&(_=0)}if("function"==typeof m?I=m(r,I):I instanceof Date?I=v(I):"comma"===o&&c(I)&&(I=i.maybeMap(I,(function(e){return e instanceof Date?v(e):e}))),null===I){if(u)return g&&!C?g(r,h.encoder,E,"key",w):r;I=""}if("string"==typeof(S=I)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||i.isBuffer(I))return g?[A(C?r:g(r,h.encoder,E,"key",w))+"="+A(g(I,h.encoder,E,"value",w))]:[A(r)+"="+A(String(I))];var P,j=[];if(void 0===I)return j;if("comma"===o&&c(I))C&&g&&(I=i.maybeMap(I,g)),P=[{value:I.length>0?I.join(",")||null:void 0}];else if(c(m))P=m;else{var D=Object.keys(I);P=y?D.sort(y):D}var O=f?String(r).replace(/\./g,"%2E"):String(r),B=a&&c(I)&&1===I.length?O+"[]":O;if(s&&c(I)&&0===I.length)return B+"[]";for(var N=0;N0?A+w:""}},562795:(e,t,r)=>{"use strict";var n=r(95902),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i=c?s.slice(l,l+c):s,f=[],h=0;h=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===n.RFC1738&&(40===p||41===p)?f[f.length]=d.charAt(h):p<128?f[f.length]=a[p]:p<2048?f[f.length]=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?f[f.length]=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(h+=1,p=65536+((1023&p)<<10|1023&d.charCodeAt(h)),f[f.length]=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}u+=f.join("")}return u},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n{"use strict";var n=r(9655);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),l=["%","/","?",";","#"].concat(u),d=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(563098);function b(e,t,r){if(e&&"object"==typeof e&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i127?j+="x":j+=P[D];if(!j.match(f)){var B=T.slice(0,I),N=T.slice(I+1),R=P.match(h);R&&(B.push(R[1]),N.unshift(R[2])),N.length&&(b="/"+N.join(".")+b),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=n.toASCII(this.hostname));var L=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+L,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!p[A])for(I=0,M=u.length;I0)&&r.host.split("@"))&&(r.auth=_.shift(),r.hostname=_.shift(),r.host=r.hostname);return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!C.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var x=C.slice(-1)[0],S=(r.host||e.host||C.length>1)&&("."===x||".."===x)||""===x,I=0,k=C.length;k>=0;k--)"."===(x=C[k])?C.splice(k,1):".."===x?(C.splice(k,1),I++):I&&(C.splice(k,1),I--);if(!w&&!A)for(;I--;I)C.unshift("..");!w||""===C[0]||C[0]&&"/"===C[0].charAt(0)||C.unshift(""),S&&"/"!==C.join("/").substr(-1)&&C.push("");var _,T=""===C[0]||C[0]&&"/"===C[0].charAt(0);E&&(r.hostname=T?"":C.length?C.shift():"",r.host=r.hostname,(_=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=_.shift(),r.hostname=_.shift(),r.host=r.hostname));return(w=w||r.host&&C.length)&&!T&&C.unshift(""),C.length>0?r.pathname=C.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=b(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i},594643:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(n){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},836622:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},681135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},440537:(e,t,r)=>{var n=/%[sdj%]/g;t.format=function(e){if(!m(e)){for(var t=[],r=0;r=o)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(t){return"[Circular]"}default:return e}})),c=i[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),h(r)?n.showHidden=r:r&&t._extend(n,r),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),u(n,e,n.depth)}function s(e,t){var r=a.styles[t];return r?"\x1b["+a.colors[r][0]+"m"+e+"\x1b["+a.colors[r][1]+"m":e}function c(e,t){return e}function u(e,r,n){if(e.customInspect&&r&&C(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return m(i)||(i=u(e,i,n)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(p(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),A(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(r);if(0===a.length){if(C(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(A(r))return l(r)}var v,E="",x=!1,S=["{","}"];(f(r)&&(x=!0,S=["[","]"]),C(r))&&(E=" [Function"+(r.name?": "+r.name:"")+"]");return b(r)&&(E=" "+RegExp.prototype.toString.call(r)),w(r)&&(E=" "+Date.prototype.toUTCString.call(r)),A(r)&&(E=" "+l(r)),0!==a.length||x&&0!=r.length?n<0?b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),v=x?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(v,E,S)):S[0]+E+S[1]}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),I(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=p(r)?u(e,c.value,null):u(e,c.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),y(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function f(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function p(e){return null===e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function y(e){return void 0===e}function b(e){return v(e)&&"[object RegExp]"===E(e)}function v(e){return"object"==typeof e&&null!==e}function w(e){return v(e)&&"[object Date]"===E(e)}function A(e){return v(e)&&("[object Error]"===E(e)||e instanceof Error)}function C(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(y(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=h,t.isNull=p,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=v,t.isDate=w,t.isError=A,t.isFunction=C,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(681135);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":"),[e.getDate(),S[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(836622),t._extend=function(e,t){if(!t||!v(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}},122831:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return c.default}});var n=f(r(413518)),i=f(r(914948)),o=f(r(445073)),a=f(r(577186)),s=f(r(314808)),c=f(r(807775)),u=f(r(337037)),l=f(r(149910)),d=f(r(496792));function f(e){return e&&e.__esModule?e:{default:e}}},722311:(e,t)=>{"use strict";function r(e){return 14+(e+64>>>9<<4)+1}function n(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function i(e,t,r,i,o,a){return n((s=n(n(t,e),n(i,a)))<<(c=o)|s>>>32-c,r);var s,c}function o(e,t,r,n,o,a,s){return i(t&r|~t&n,e,t,o,a,s)}function a(e,t,r,n,o,a,s){return i(t&n|r&~n,e,t,o,a,s)}function s(e,t,r,n,o,a,s){return i(t^r^n,e,t,o,a,s)}function c(e,t,r,n,o,a,s){return i(r^(t|~n),e,t,o,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r>5]>>>i%32&255,o=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[r/8])<{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=r},314808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="00000000-0000-0000-0000-000000000000"},496792:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(337037))&&n.__esModule?n:{default:n};var o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};t.default=o},227656:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},402858:(e,t)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(n)};const n=new Uint8Array(16)},309042:(e,t)=>{"use strict";function r(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function n(e,t){return e<>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){const t=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r>>0;d=l,l=u,u=n(a,30)>>>0,a=o,o=c}i[0]=i[0]+o>>>0,i[1]=i[1]+a>>>0,i[2]=i[2]+u>>>0,i[3]=i[3]+l>>>0,i[4]=i[4]+d>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]};t.default=i},149910:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var n,i=(n=r(337037))&&n.__esModule?n:{default:n};const o=[];for(let c=0;c<256;++c)o.push((c+256).toString(16).slice(1));function a(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}var s=function(e,t=0){const r=a(e,t);if(!(0,i.default)(r))throw TypeError("Stringified UUID is invalid");return r};t.default=s},413518:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(402858))&&n.__esModule?n:{default:n},o=r(149910);let a,s,c=0,u=0;var l=function(e,t,r){let n=t&&r||0;const l=t||new Array(16);let d=(e=e||{}).node||a,f=void 0!==e.clockseq?e.clockseq:s;if(null==d||null==f){const t=e.random||(e.rng||i.default)();null==d&&(d=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==f&&(f=s=16383&(t[6]<<8|t[7]))}let h=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:u+1;const g=h-c+(p-u)/1e4;if(g<0&&void 0===e.clockseq&&(f=f+1&16383),(g<0||h>c)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=h,u=p,s=f,h+=122192928e5;const m=(1e4*(268435455&h)+p)%4294967296;l[n++]=m>>>24&255,l[n++]=m>>>16&255,l[n++]=m>>>8&255,l[n++]=255&m;const y=h/4294967296*1e4&268435455;l[n++]=y>>>8&255,l[n++]=255&y,l[n++]=y>>>24&15|16,l[n++]=y>>>16&255,l[n++]=f>>>8|128,l[n++]=255&f;for(let i=0;i<6;++i)l[n+i]=d[i];return t||(0,o.unsafeStringify)(l)};t.default=l},914948:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(559025)),i=o(r(722311));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v3",48,i.default);t.default=a},559025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,r){function n(e,n,a,s){var c;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(846140)),i=a(r(402858)),o=r(149910);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,r){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID();const a=(e=e||{}).random||(e.rng||i.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=a[e];return t}return(0,o.unsafeStringify)(a)};t.default=s},577186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(559025)),i=o(r(309042));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v5",80,i.default);t.default=a},337037:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(227656))&&n.__esModule?n:{default:n};var o=function(e){return"string"==typeof e&&i.default.test(e)};t.default=o},807775:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(337037))&&n.__esModule?n:{default:n};var o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};t.default=o},338823:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});const n=[];for(let o=0;o<256;++o)n.push((o+256).toString(16).slice(1));function i(e,t=0){return n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]}},468961:(__unused_webpack_module,exports)=>{var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r{"use strict";var n=r(182682),i=r(739209),o=r(10487),a=r(438075),s=r(675795),c=a("Object.prototype.toString"),u=r(849092)(),l="undefined"==typeof globalThis?r.g:globalThis,d=i(),f=a("String.prototype.slice"),h=Object.getPrototypeOf,p=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1?t:"Object"===t&&function(e){var t=!1;return n(g,(function(r,n){if(!t)try{r(e),t=f(n,1)}catch(i){}})),t}(e)}return s?function(e){var t=!1;return n(g,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=f(n,1))}catch(i){}})),t}(e):null}},57510:e=>{e.exports=function(){for(var e={},r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;const n=r(557125);class i extends Error{constructor(e,t={}){const r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof i&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${n.version}`].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}}t.BaseError=i},934185:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownSolidityTypeError=t.UnknownTypeError=t.InvalidAbiItemError=void 0;const n=r(775042);class i extends n.BaseError{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}t.InvalidAbiItemError=i;class o extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}t.UnknownTypeError=o;class a extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}t.UnknownSolidityTypeError=a},190615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAbiTypeParameterError=t.InvalidFunctionModifierError=t.InvalidModifierError=t.SolidityProtectedKeywordError=t.InvalidParameterError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=void 0;const n=r(775042);class i extends n.BaseError{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}t.InvalidAbiParameterError=i;class o extends n.BaseError{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}t.InvalidAbiParametersError=o;class a extends n.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}t.InvalidParameterError=a;class s extends n.BaseError{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}t.SolidityProtectedKeywordError=s;class c extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}t.InvalidModifierError=c;class u extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}t.InvalidFunctionModifierError=u;class l extends n.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}t.InvalidAbiTypeParameterError=l},380690:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStructSignatureError=t.UnknownSignatureError=t.InvalidSignatureError=void 0;const n=r(775042);class i extends n.BaseError{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}t.InvalidSignatureError=i;class o extends n.BaseError{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}t.UnknownSignatureError=o;class a extends n.BaseError{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}t.InvalidStructSignatureError=a},53188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidParenthesisError=void 0;const n=r(775042);class i extends n.BaseError{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}t.InvalidParenthesisError=i},602851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=void 0;const n=r(775042);class i extends n.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}t.CircularReferenceError=i},567161:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbi=void 0;const n=r(111974);t.formatAbi=function(e){const t=[],r=e.length;for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItem=void 0;const n=r(545369);t.formatAbiItem=function(e){return"function"===e.type?`function ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs.length?` returns (${(0,n.formatAbiParameters)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,n.formatAbiParameters)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback()":"receive() external payable"}},114250:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameter=void 0;const n=r(46458),i=/^tuple(?(\[(\d*)\])*)$/;t.formatAbiParameter=function e(t){let r=t.type;if(i.test(t.type)&&"components"in t){r="(";const o=t.components.length;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameters=void 0;const n=r(114250);t.formatAbiParameters=function(e){let t="";const r=e.length;for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbi=void 0;const n=r(430090),i=r(353067),o=r(814852);t.parseAbi=function(e){const t=(0,i.parseStructs)(e),r=[],a=e.length;for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiItem=void 0;const n=r(208557),i=r(430090),o=r(353067),a=r(814852);t.parseAbiItem=function(e){let t;if("string"==typeof e)t=(0,a.parseSignature)(e);else{const r=(0,o.parseStructs)(e),n=e.length;for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameter=void 0;const n=r(208557),i=r(430090),o=r(353067),a=r(814852);t.parseAbiParameter=function(e){let t;if("string"==typeof e)t=(0,a.parseAbiParameter)(e,{modifiers:i.modifiers});else{const r=(0,o.parseStructs)(e),n=e.length;for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameters=void 0;const n=r(208557),i=r(430090),o=r(353067),a=r(814852),s=r(814852);t.parseAbiParameters=function(e){const t=[];if("string"==typeof e){const r=(0,a.splitParameters)(e),n=r.length;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parameterCache=t.getParameterCacheKey=void 0,t.getParameterCacheKey=function(e,t){return t?`${t}:${e}`:e},t.parameterCache=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]])},430090:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.functionModifiers=t.eventModifiers=t.modifiers=t.isReceiveSignature=t.isFallbackSignature=t.execConstructorSignature=t.isConstructorSignature=t.execStructSignature=t.isStructSignature=t.execFunctionSignature=t.isFunctionSignature=t.execEventSignature=t.isEventSignature=t.execErrorSignature=t.isErrorSignature=void 0;const n=r(46458),i=/^error (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;t.isErrorSignature=function(e){return i.test(e)},t.execErrorSignature=function(e){return(0,n.execTyped)(i,e)};const o=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;t.isEventSignature=function(e){return o.test(e)},t.execEventSignature=function(e){return(0,n.execTyped)(o,e)};const a=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;t.isFunctionSignature=function(e){return a.test(e)},t.execFunctionSignature=function(e){return(0,n.execTyped)(a,e)};const s=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;t.isStructSignature=function(e){return s.test(e)},t.execStructSignature=function(e){return(0,n.execTyped)(s,e)};const c=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;t.isConstructorSignature=function(e){return c.test(e)},t.execConstructorSignature=function(e){return(0,n.execTyped)(c,e)};const u=/^fallback\(\)$/;t.isFallbackSignature=function(e){return u.test(e)};const l=/^receive\(\) external payable$/;t.isReceiveSignature=function(e){return l.test(e)},t.modifiers=new Set(["memory","indexed","storage","calldata"]),t.eventModifiers=new Set(["indexed"]),t.functionModifiers=new Set(["calldata","memory","storage"])},353067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStructs=void 0;const n=r(46458),i=r(934185),o=r(190615),a=r(380690),s=r(602851),c=r(430090),u=r(814852);t.parseStructs=function(e){const t={},r=e.length;for(let s=0;s[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/;function d(e,t,r=new Set){const a=[],c=e.length;for(let f=0;f{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDataLocation=t.isSolidityKeyword=t.isSolidityType=t.splitParameters=t.parseAbiParameter=t.parseSignature=void 0;const n=r(46458),i=r(934185),o=r(190615),a=r(380690),s=r(53188),c=r(3399),u=r(430090);t.parseSignature=function(e,t={}){if((0,u.isFunctionSignature)(e)){const r=(0,u.execFunctionSignature)(e);if(!r)throw new a.InvalidSignatureError({signature:e,type:"function"});const n=p(r.parameters),i=[],o=n.length;for(let e=0;e[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,d=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,f=/^u?int$/;function h(e,t){const r=(0,c.getParameterCacheKey)(e,t?.type);if(c.parameterCache.has(r))return c.parameterCache.get(r);const a=n.isTupleRegex.test(e),s=(0,n.execTyped)(a?d:l,e);if(!s)throw new o.InvalidParameterError({param:e});if(s.name&&y(s.name))throw new o.SolidityProtectedKeywordError({param:e,name:s.name});const m=s.name?{name:s.name}:{},v="indexed"===s.modifier?{indexed:!0}:{},w=t?.structs??{};let A,C={};if(a){A="tuple";const e=p(s.type),t=[],r=e.length;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=t.InvalidParenthesisError=t.UnknownSignatureError=t.InvalidSignatureError=t.InvalidStructSignatureError=t.InvalidAbiParameterError=t.InvalidAbiParametersError=t.InvalidParameterError=t.SolidityProtectedKeywordError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.UnknownSolidityTypeError=t.InvalidAbiItemError=t.UnknownTypeError=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.formatAbiParameters=t.formatAbiParameter=t.formatAbiItem=t.formatAbi=t.narrow=t.BaseError=void 0;var n=r(775042);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return n.BaseError}});var i=r(830034);Object.defineProperty(t,"narrow",{enumerable:!0,get:function(){return i.narrow}});var o=r(567161);Object.defineProperty(t,"formatAbi",{enumerable:!0,get:function(){return o.formatAbi}});var a=r(111974);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return a.formatAbiItem}});var s=r(114250);Object.defineProperty(t,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var c=r(545369);Object.defineProperty(t,"formatAbiParameters",{enumerable:!0,get:function(){return c.formatAbiParameters}});var u=r(528623);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return u.parseAbi}});var l=r(466004);Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return l.parseAbiItem}});var d=r(722820);Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return d.parseAbiParameter}});var f=r(538763);Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return f.parseAbiParameters}});var h=r(934185);Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return h.UnknownTypeError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return h.InvalidAbiItemError}}),Object.defineProperty(t,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return h.UnknownSolidityTypeError}});var p=r(190615);Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return p.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return p.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return p.InvalidModifierError}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return p.SolidityProtectedKeywordError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return p.InvalidParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return p.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return p.InvalidAbiParameterError}});var g=r(380690);Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return g.InvalidStructSignatureError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return g.InvalidSignatureError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return g.UnknownSignatureError}});var m=r(53188);Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return m.InvalidParenthesisError}});var y=r(602851);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return y.CircularReferenceError}})},830034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.narrow=void 0,t.narrow=function(e){return e}},46458:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTupleRegex=t.integerRegex=t.bytesRegex=t.execTyped=void 0,t.execTyped=function(e,t){const r=e.exec(t);return r?.groups},t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,t.isTupleRegex=/^\(.+?\).*?$/},557125:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="0.9.8"},157449:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAccount=void 0,t.parseAccount=function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}},535896:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicKeyToAddress=void 0;const n=r(115257),i=r(829336);t.publicKeyToAddress=function(e){const t=(0,i.keccak256)(`0x${e.substring(4)}`).substring(26);return(0,n.checksumAddress)(`0x${t}`)}},714635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsAddress=void 0;const n=r(100455),i=r(608540),o=r(36217),a=r(778849),s=r(939415),c=r(214368),u=r(840130),l=r(244130),d=r(487801),f=r(366956),h=r(554884);t.getEnsAddress=async function(e,{blockNumber:t,blockTag:r,coinType:p,name:g,universalResolverAddress:m}){let y=m;if(!y){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");y=(0,a.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const a=(0,o.encodeFunctionData)({abi:n.addressResolverAbi,functionName:"addr",...null!=p?{args:[(0,l.namehash)(g),BigInt(p)]}:{args:[(0,l.namehash)(g)]}}),u=await(0,f.getAction)(e,h.readContract,"readContract")({address:y,abi:n.universalResolverResolveAbi,functionName:"resolve",args:[(0,c.toHex)((0,d.packetToBytes)(g)),a],blockNumber:t,blockTag:r});if("0x"===u[0])return null;const m=(0,i.decodeFunctionResult)({abi:n.addressResolverAbi,args:null!=p?[(0,l.namehash)(g),BigInt(p)]:void 0,functionName:"addr",data:u[0]});return"0x"===m||"0x00"===(0,s.trim)(m)?null:m}catch(b){if((0,u.isNullUniversalResolverError)(b,"resolve"))return null;throw b}}},427982:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsAvatar=void 0;const n=r(904728),i=r(366956),o=r(715344);t.getEnsAvatar=async function(e,{blockNumber:t,blockTag:r,gatewayUrls:a,name:s,universalResolverAddress:c}){const u=await(0,i.getAction)(e,o.getEnsText,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:s,universalResolverAddress:c});if(!u)return null;try{return await(0,n.parseAvatarRecord)(e,{record:u,gatewayUrls:a})}catch{return null}}},843188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsName=void 0;const n=r(100455),i=r(778849),o=r(214368),a=r(840130),s=r(487801),c=r(366956),u=r(554884);t.getEnsName=async function(e,{address:t,blockNumber:r,blockTag:l,universalResolverAddress:d}){let f=d;if(!f){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");f=(0,i.getChainContractAddress)({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}const h=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const[i,a]=await(0,c.getAction)(e,u.readContract,"readContract")({address:f,abi:n.universalResolverReverseAbi,functionName:"reverse",args:[(0,o.toHex)((0,s.packetToBytes)(h))],blockNumber:r,blockTag:l});return t.toLowerCase()!==a.toLowerCase()?null:i}catch(p){if((0,a.isNullUniversalResolverError)(p,"reverse"))return null;throw p}}},846009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsResolver=void 0;const n=r(778849),i=r(214368),o=r(487801),a=r(366956),s=r(554884);t.getEnsResolver=async function(e,{blockNumber:t,blockTag:r,name:c,universalResolverAddress:u}){let l=u;if(!l){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");l=(0,n.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}const[d]=await(0,a.getAction)(e,s.readContract,"readContract")({address:l,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,i.toHex)((0,o.packetToBytes)(c))],blockNumber:t,blockTag:r});return d}},715344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsText=void 0;const n=r(100455),i=r(608540),o=r(36217),a=r(778849),s=r(214368),c=r(840130),u=r(244130),l=r(487801),d=r(366956),f=r(554884);t.getEnsText=async function(e,{blockNumber:t,blockTag:r,name:h,key:p,universalResolverAddress:g}){let m=g;if(!m){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");m=(0,a.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const a=await(0,d.getAction)(e,f.readContract,"readContract")({address:m,abi:n.universalResolverResolveAbi,functionName:"resolve",args:[(0,s.toHex)((0,l.packetToBytes)(h)),(0,o.encodeFunctionData)({abi:n.textResolverAbi,functionName:"text",args:[(0,u.namehash)(h),p]})],blockNumber:t,blockTag:r});if("0x"===a[0])return null;const c=(0,i.decodeFunctionResult)({abi:n.textResolverAbi,functionName:"text",data:a[0]});return""===c?null:c}catch(y){if((0,c.isNullUniversalResolverError)(y,"resolve"))return null;throw y}}},370894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEventParameters=t.getFunctionParameters=t.getContract=void 0;const n=r(366956),i=r(497276),o=r(503349),a=r(983619),s=r(554884),c=r(40238),u=r(395309),l=r(721609);function d(e){const t=e.length&&Array.isArray(e[0]);return{args:t?e[0]:[],options:(t?e[1]:e[0])??{}}}function f(e,t){let r=!1;Array.isArray(e[0])?r=!0:1===e.length?r=t.inputs.some((e=>e.indexed)):2===e.length&&(r=!0);return{args:r?e[0]:void 0,options:(r?e[1]:e[0])??{}}}t.getContract=function({abi:e,address:t,publicClient:r,walletClient:h}){const p=null!=r,g=null!=h,m={};let y=!1,b=!1,v=!1;for(const n of e)if("function"===n.type?"view"===n.stateMutability||"pure"===n.stateMutability?y=!0:b=!0:"event"===n.type&&(v=!0),y&&b&&v)break;return p&&(y&&(m.read=new Proxy({},{get:(i,o)=>(...i)=>{const{args:a,options:c}=d(i);return(0,n.getAction)(r,s.readContract,"readContract")({abi:e,address:t,functionName:o,args:a,...c})}})),b&&(m.simulate=new Proxy({},{get:(i,o)=>(...i)=>{const{args:a,options:s}=d(i);return(0,n.getAction)(r,c.simulateContract,"simulateContract")({abi:e,address:t,functionName:o,args:a,...s})}})),v&&(m.createEventFilter=new Proxy({},{get:(o,a)=>(...o)=>{const s=e.find((e=>"event"===e.type&&e.name===a)),{args:c,options:u}=f(o,s);return(0,n.getAction)(r,i.createContractEventFilter,"createContractEventFilter")({abi:e,address:t,eventName:a,args:c,...u})}}),m.getEvents=new Proxy({},{get:(i,o)=>(...i)=>{const s=e.find((e=>"event"===e.type&&e.name===o)),{args:c,options:u}=f(i,s);return(0,n.getAction)(r,a.getContractEvents,"getContractEvents")({abi:e,address:t,eventName:o,args:c,...u})}}),m.watchEvent=new Proxy({},{get:(i,o)=>(...i)=>{const a=e.find((e=>"event"===e.type&&e.name===o)),{args:s,options:c}=f(i,a);return(0,n.getAction)(r,u.watchContractEvent,"watchContractEvent")({abi:e,address:t,eventName:o,args:s,...c})}}))),g&&b&&(m.write=new Proxy({},{get:(r,i)=>(...r)=>{const{args:o,options:a}=d(r);return(0,n.getAction)(h,l.writeContract,"writeContract")({abi:e,address:t,functionName:i,args:o,...a})}})),(p||g)&&b&&(m.estimateGas=new Proxy({},{get:(i,a)=>(...i)=>{const{args:s,options:c}=d(i),u=r??h;return(0,n.getAction)(u,o.estimateContractGas,"estimateContractGas")({abi:e,address:t,functionName:a,args:s,...c,account:c.account??h.account})}})),m.address=t,m.abi=e,m},t.getFunctionParameters=d,t.getEventParameters=f},146606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRevertErrorData=t.call=void 0;const n=r(157449),i=r(100455),o=r(964970),a=r(192857),s=r(601679),c=r(582054),u=r(608540),l=r(36217),d=r(778849),f=r(214368),h=r(551868),p=r(456941),g=r(575847),m=r(75591),y=r(71526);function b(e){if(!(e instanceof a.BaseError))return;const t=e.walk();return"object"==typeof t.data?t.data.data:t.data}t.call=async function(e,t){const{account:a=e.account,batch:v=Boolean(e.batch?.multicall),blockNumber:w,blockTag:A="latest",accessList:C,data:E,gas:x,gasPrice:S,maxFeePerGas:I,maxPriorityFeePerGas:k,nonce:_,to:T,value:M,...P}=t,j=a?(0,n.parseAccount)(a):void 0;try{(0,y.assertRequest)(t);const r=(w?(0,f.numberToHex)(w):void 0)||A,n=e.chain?.formatters?.transactionRequest?.format,a=(n||g.formatTransactionRequest)({...(0,p.extract)(P,{format:n}),from:j?.address,accessList:C,data:E,gas:x,gasPrice:S,maxFeePerGas:I,maxPriorityFeePerGas:k,nonce:_,to:T,value:M});if(v&&function({request:e}){const{data:t,to:r,...n}=e;return!!t&&(!t.startsWith(o.aggregate3Signature)&&(!!r&&!(Object.values(n).filter((e=>void 0!==e)).length>0)))}({request:a}))try{return await async function(e,t){const{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:o,blockTag:a="latest",data:h,multicallAddress:p,to:g}=t;let y=p;if(!y){if(!e.chain)throw new s.ClientChainNotConfiguredError;y=(0,d.getChainContractAddress)({blockNumber:o,chain:e.chain,contract:"multicall3"})}const b=o?(0,f.numberToHex)(o):void 0,v=b||a,{schedule:w}=(0,m.createBatchScheduler)({id:`${e.uid}.${v}`,wait:n,shouldSplitBatch(e){const t=e.reduce(((e,{data:t})=>e+(t.length-2)),0);return t>2*r},fn:async t=>{const r=t.map((e=>({allowFailure:!0,callData:e.data,target:e.to}))),n=(0,l.encodeFunctionData)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3"}),o=await e.request({method:"eth_call",params:[{data:n,to:y},v]});return(0,u.decodeFunctionResult)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:A,success:C}]=await w({data:h,to:g});if(!C)throw new c.RawContractError({data:A});return"0x"===A?{data:void 0}:{data:A}}(e,{...a,blockNumber:w,blockTag:A})}catch(D){if(!(D instanceof s.ClientChainNotConfiguredError||D instanceof s.ChainDoesNotSupportContract))throw D}const h=await e.request({method:"eth_call",params:r?[a,r]:[a]});return"0x"===h?{data:void 0}:{data:h}}catch(D){const n=b(D),{offchainLookup:i,offchainLookupSignature:o}=await Promise.resolve().then((()=>r(78383)));if(n?.slice(0,10)===o&&T)return{data:await i(e,{data:n,to:T})};throw(0,h.getCallError)(D,{...t,account:j,chain:e.chain})}},t.getRevertErrorData=b},647:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockFilter=void 0;const n=r(659861);t.createBlockFilter=async function(e){const t=(0,n.createFilterRequestScope)(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}},497276:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createContractEventFilter=void 0;const n=r(607873),i=r(214368),o=r(659861);t.createContractEventFilter=async function(e,{address:t,abi:r,args:a,eventName:s,fromBlock:c,strict:u,toBlock:l}){const d=(0,o.createFilterRequestScope)(e,{method:"eth_newFilter"}),f=s?(0,n.encodeEventTopics)({abi:r,args:a,eventName:s}):void 0,h=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof c?(0,i.numberToHex)(c):c,toBlock:"bigint"==typeof l?(0,i.numberToHex)(l):l,topics:f}]});return{abi:r,args:a,eventName:s,id:h,request:d(h),strict:u,type:"event"}}},257398:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEventFilter=void 0;const n=r(607873),i=r(214368),o=r(659861);t.createEventFilter=async function(e,{address:t,args:r,event:a,events:s,fromBlock:c,strict:u,toBlock:l}={}){const d=s??(a?[a]:void 0),f=(0,o.createFilterRequestScope)(e,{method:"eth_newFilter"});let h=[];d&&(h=[d.flatMap((e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:r})))],a&&(h=h[0]));const p=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof c?(0,i.numberToHex)(c):c,toBlock:"bigint"==typeof l?(0,i.numberToHex)(l):l,...h.length?{topics:h}:{}}]});return{abi:d,args:r,eventName:a?a.name:void 0,fromBlock:c,id:p,request:f(p),strict:u,toBlock:l,type:"event"}}},372181:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPendingTransactionFilter=void 0;const n=r(659861);t.createPendingTransactionFilter=async function(e){const t=(0,n.createFilterRequestScope)(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}},503349:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateContractGas=void 0;const n=r(157449),i=r(36217),o=r(868062),a=r(366956),s=r(867787);t.estimateContractGas=async function(e,{abi:t,address:r,args:c,functionName:u,...l}){const d=(0,i.encodeFunctionData)({abi:t,args:c,functionName:u});try{return await(0,a.getAction)(e,s.estimateGas,"estimateGas")({data:d,to:r,...l})}catch(f){const e=l.account?(0,n.parseAccount)(l.account):void 0;throw(0,o.getContractError)(f,{abi:t,address:r,args:c,docsPath:"/docs/contract/estimateContractGas",functionName:u,sender:e?.address})}}},34485:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.internal_estimateFeesPerGas=t.estimateFeesPerGas=void 0;const n=r(973874),i=r(366956),o=r(964774),a=r(851907),s=r(908682);async function c(e,t){const{block:r,chain:c=e.chain,request:u,type:l="eip1559"}=t||{},d=await(async()=>"function"==typeof c?.fees?.baseFeeMultiplier?c.fees.baseFeeMultiplier({block:r,client:e,request:u}):c?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new n.BaseFeeScalarError;const f=10**(d.toString().split(".")[1]?.length??0),h=e=>e*BigInt(Math.ceil(d*f))/BigInt(f),p=r||await(0,i.getAction)(e,a.getBlock,"getBlock")({});if("function"==typeof c?.fees?.estimateFeesPerGas)return c.fees.estimateFeesPerGas({block:r,client:e,multiply:h,request:u,type:l});if("eip1559"===l){if("bigint"!=typeof p.baseFeePerGas)throw new n.Eip1559FeesNotSupportedError;const t=u?.maxPriorityFeePerGas?u.maxPriorityFeePerGas:await(0,o.internal_estimateMaxPriorityFeePerGas)(e,{block:p,chain:c,request:u}),r=h(p.baseFeePerGas);return{maxFeePerGas:u?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:u?.gasPrice??h(await(0,i.getAction)(e,s.getGasPrice,"getGasPrice")({}))}}t.estimateFeesPerGas=async function(e,t){return c(e,t)},t.internal_estimateFeesPerGas=c},867787:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateGas=void 0;const n=r(157449),i=r(307377),o=r(214368),a=r(642515),s=r(456941),c=r(575847),u=r(71526),l=r(887934);t.estimateGas=async function(e,t){const r=t.account??e.account;if(!r)throw new i.AccountNotFoundError({docsPath:"/docs/actions/public/estimateGas"});const d=(0,n.parseAccount)(r);try{const{accessList:r,blockNumber:n,blockTag:i,data:a,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:g,nonce:m,to:y,value:b,...v}="local"===d.type?await(0,l.prepareTransactionRequest)(e,t):t,w=(n?(0,o.numberToHex)(n):void 0)||i;(0,u.assertRequest)(t);const A=e.chain?.formatters?.transactionRequest?.format,C=(A||c.formatTransactionRequest)({...(0,s.extract)(v,{format:A}),from:d.address,accessList:r,data:a,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:g,nonce:m,to:y,value:b}),E=await e.request({method:"eth_estimateGas",params:w?[C,w]:[C]});return BigInt(E)}catch(f){throw(0,a.getEstimateGasError)(f,{...t,account:d,chain:e.chain})}}},964774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.internal_estimateMaxPriorityFeePerGas=t.estimateMaxPriorityFeePerGas=void 0;const n=r(973874),i=r(15987),o=r(366956),a=r(851907),s=r(908682);async function c(e,t){const{block:r,chain:c=e.chain,request:u}=t||{};if("function"==typeof c?.fees?.defaultPriorityFee){const t=r||await(0,o.getAction)(e,a.getBlock,"getBlock")({});return c.fees.defaultPriorityFee({block:t,client:e,request:u})}if(void 0!==c?.fees?.defaultPriorityFee)return c?.fees?.defaultPriorityFee;try{const t=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,i.hexToBigInt)(t)}catch{const[t,i]=await Promise.all([r?Promise.resolve(r):(0,o.getAction)(e,a.getBlock,"getBlock")({}),(0,o.getAction)(e,s.getGasPrice,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new n.Eip1559FeesNotSupportedError;const c=i-t.baseFeePerGas;return c<0n?0n:c}}t.estimateMaxPriorityFeePerGas=async function(e,t){return c(e,t)},t.internal_estimateMaxPriorityFeePerGas=c},816546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBalance=void 0;const n=r(214368);t.getBalance=async function(e,{address:t,blockNumber:r,blockTag:i="latest"}){const o=r?(0,n.numberToHex)(r):void 0,a=await e.request({method:"eth_getBalance",params:[t,o||i]});return BigInt(a)}},851907:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlock=void 0;const n=r(574227),i=r(214368),o=r(483849);t.getBlock=async function(e,{blockHash:t,blockNumber:r,blockTag:a,includeTransactions:s}={}){const c=a??"latest",u=s??!1,l=void 0!==r?(0,i.numberToHex)(r):void 0;let d=null;if(d=t?await e.request({method:"eth_getBlockByHash",params:[t,u]}):await e.request({method:"eth_getBlockByNumber",params:[l||c,u]}),!d)throw new n.BlockNotFoundError({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||o.formatBlock)(d)}},389790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockNumber=t.getBlockNumberCache=void 0;const n=r(517370),i=e=>`blockNumber.${e}`;t.getBlockNumberCache=function(e){return(0,n.getCache)(i(e))},t.getBlockNumber=async function(e,{cacheTime:t=e.cacheTime,maxAge:r}={}){const o=await(0,n.withCache)((()=>e.request({method:"eth_blockNumber"})),{cacheKey:i(e.uid),cacheTime:r??t});return BigInt(o)}},932808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockTransactionCount=void 0;const n=r(15987),i=r(214368);t.getBlockTransactionCount=async function(e,{blockHash:t,blockNumber:r,blockTag:o="latest"}={}){const a=void 0!==r?(0,i.numberToHex)(r):void 0;let s;return s=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[a||o]}),(0,n.hexToNumber)(s)}},663079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBytecode=void 0;const n=r(214368);t.getBytecode=async function(e,{address:t,blockNumber:r,blockTag:i="latest"}){const o=void 0!==r?(0,n.numberToHex)(r):void 0,a=await e.request({method:"eth_getCode",params:[t,o||i]});if("0x"!==a)return a}},659334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChainId=void 0;const n=r(15987);t.getChainId=async function(e){const t=await e.request({method:"eth_chainId"});return(0,n.hexToNumber)(t)}},983619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContractEvents=void 0;const n=r(517706),i=r(366956),o=r(64479);t.getContractEvents=async function(e,{abi:t,address:r,args:a,blockHash:s,eventName:c,fromBlock:u,toBlock:l,strict:d}){const f=c?(0,n.getAbiItem)({abi:t,name:c}):void 0,h=f?void 0:t.filter((e=>"event"===e.type));return(0,i.getAction)(e,o.getLogs,"getLogs")({address:r,args:a,blockHash:s,event:f,events:h,fromBlock:u,toBlock:l,strict:d})}},951064:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeeHistory=void 0;const n=r(214368),i=r(64898);t.getFeeHistory=async function(e,{blockCount:t,blockNumber:r,blockTag:o="latest",rewardPercentiles:a}){const s=r?(0,n.numberToHex)(r):void 0,c=await e.request({method:"eth_feeHistory",params:[(0,n.numberToHex)(t),s||o,a]});return(0,i.formatFeeHistory)(c)}},394589:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterChanges=void 0;const n=r(112060),i=r(538507),o=r(873886);t.getFilterChanges=async function(e,{filter:t}){const r="strict"in t&&t.strict;return(await t.request({method:"eth_getFilterChanges",params:[t.id]})).map((e=>{if("string"==typeof e)return e;try{const{eventName:n,args:a}="abi"in t&&t.abi?(0,i.decodeEventLog)({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return(0,o.formatLog)(e,{args:a,eventName:n})}catch(a){let r,i;if(a instanceof n.DecodeLogDataMismatch||a instanceof n.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;r=a.abiItem.name,i=a.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}return(0,o.formatLog)(e,{args:i?[]:{},eventName:r})}})).filter(Boolean)}},775593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterLogs=void 0;const n=r(112060),i=r(538507),o=r(873886);t.getFilterLogs=async function(e,{filter:t}){const r=t.strict??!1;return(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map((e=>{try{const{eventName:n,args:a}="abi"in t&&t.abi?(0,i.decodeEventLog)({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return(0,o.formatLog)(e,{args:a,eventName:n})}catch(a){let r,i;if(a instanceof n.DecodeLogDataMismatch||a instanceof n.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;r=a.abiItem.name,i=a.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}return(0,o.formatLog)(e,{args:i?[]:{},eventName:r})}})).filter(Boolean)}},908682:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGasPrice=void 0,t.getGasPrice=async function(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}},64479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLogs=void 0;const n=r(112060),i=r(538507),o=r(607873),a=r(214368),s=r(873886);t.getLogs=async function(e,{address:t,blockHash:r,fromBlock:c,toBlock:u,event:l,events:d,args:f,strict:h}={}){const p=h??!1,g=d??(l?[l]:void 0);let m,y=[];return g&&(y=[g.flatMap((e=>(0,o.encodeEventTopics)({abi:[e],eventName:e.name,args:f})))],l&&(y=y[0])),m=r?await e.request({method:"eth_getLogs",params:[{address:t,topics:y,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:y,fromBlock:"bigint"==typeof c?(0,a.numberToHex)(c):c,toBlock:"bigint"==typeof u?(0,a.numberToHex)(u):u}]}),m.map((e=>{try{const{eventName:t,args:r}=g?(0,i.decodeEventLog)({abi:g,data:e.data,topics:e.topics,strict:p}):{eventName:void 0,args:void 0};return(0,s.formatLog)(e,{args:r,eventName:t})}catch(t){let r,i;if(t instanceof n.DecodeLogDataMismatch||t instanceof n.DecodeLogTopicsMismatch){if(p)return;r=t.abiItem.name,i=t.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}return(0,s.formatLog)(e,{args:i?[]:{},eventName:r})}})).filter(Boolean)}},461112:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProof=void 0;const n=r(214368),i=r(643542);t.getProof=async function(e,{address:t,blockNumber:r,blockTag:o,storageKeys:a}){const s=o??"latest",c=void 0!==r?(0,n.numberToHex)(r):void 0,u=await e.request({method:"eth_getProof",params:[t,a,c||s]});return(0,i.formatProof)(u)}},634686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStorageAt=void 0;const n=r(214368);t.getStorageAt=async function(e,{address:t,blockNumber:r,blockTag:i="latest",slot:o}){const a=void 0!==r?(0,n.numberToHex)(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,o,a||i]})}},927182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransaction=void 0;const n=r(88094),i=r(214368),o=r(477100);t.getTransaction=async function(e,{blockHash:t,blockNumber:r,blockTag:a,hash:s,index:c}){const u=a||"latest",l=void 0!==r?(0,i.numberToHex)(r):void 0;let d=null;if(s?d=await e.request({method:"eth_getTransactionByHash",params:[s]}):t?d=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.numberToHex)(c)]}):(l||u)&&(d=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[l||u,(0,i.numberToHex)(c)]})),!d)throw new n.TransactionNotFoundError({blockHash:t,blockNumber:r,blockTag:u,hash:s,index:c});return(e.chain?.formatters?.transaction?.format||o.formatTransaction)(d)}},848910:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionConfirmations=void 0;const n=r(366956),i=r(389790),o=r(927182);t.getTransactionConfirmations=async function(e,{hash:t,transactionReceipt:r}){const[a,s]=await Promise.all([(0,n.getAction)(e,i.getBlockNumber,"getBlockNumber")({}),t?(0,n.getAction)(e,o.getTransaction,"getBlockNumber")({hash:t}):void 0]),c=r?.blockNumber||s?.blockNumber;return c?a-c+1n:0n}},933099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionCount=void 0;const n=r(15987),i=r(214368);t.getTransactionCount=async function(e,{address:t,blockTag:r="latest",blockNumber:o}){const a=await e.request({method:"eth_getTransactionCount",params:[t,o?(0,i.numberToHex)(o):r]});return(0,n.hexToNumber)(a)}},47552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionReceipt=void 0;const n=r(88094),i=r(928490);t.getTransactionReceipt=async function(e,{hash:t}){const r=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!r)throw new n.TransactionReceiptNotFoundError({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||i.formatTransactionReceipt)(r)}},574701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicall=void 0;const n=r(100455),i=r(112060),o=r(192857),a=r(582054),s=r(608540),c=r(36217),u=r(778849),l=r(868062),d=r(366956),f=r(554884);t.multicall=async function(e,t){const{allowFailure:r=!0,batchSize:h,blockNumber:p,blockTag:g,contracts:m,multicallAddress:y}=t,b=h??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024);let v=y;if(!v){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");v=(0,u.getChainContractAddress)({blockNumber:p,chain:e.chain,contract:"multicall3"})}const w=[[]];let A=0,C=0;for(let n=0;n0&&C>b&&w[A].length>0&&(A++,C=(r.length-2)/2,w[A]=[]),w[A]=[...w[A],{allowFailure:!0,callData:r,target:t}]}catch(S){const n=(0,l.getContractError)(S,{abi:e,address:t,args:i,docsPath:"/docs/contract/multicall",functionName:o});if(!r)throw n;w[A]=[...w[A],{allowFailure:!0,callData:"0x",target:t}]}}const E=await Promise.allSettled(w.map((t=>(0,d.getAction)(e,f.readContract,"readContract")({abi:n.multicall3Abi,address:v,args:[t],blockNumber:p,blockTag:g,functionName:"aggregate3"})))),x=[];for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readContract=void 0;const n=r(608540),i=r(36217),o=r(868062),a=r(366956),s=r(146606);t.readContract=async function(e,{abi:t,address:r,args:c,functionName:u,...l}){const d=(0,i.encodeFunctionData)({abi:t,args:c,functionName:u});try{const{data:i}=await(0,a.getAction)(e,s.call,"call")({data:d,to:r,...l});return(0,n.decodeFunctionResult)({abi:t,args:c,functionName:u,data:i||"0x"})}catch(f){throw(0,o.getContractError)(f,{abi:t,address:r,args:c,docsPath:"/docs/contract/readContract",functionName:u})}}},40238:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.simulateContract=void 0;const n=r(157449),i=r(608540),o=r(36217),a=r(868062),s=r(366956),c=r(146606);t.simulateContract=async function(e,{abi:t,address:r,args:u,dataSuffix:l,functionName:d,...f}){const h=f.account?(0,n.parseAccount)(f.account):void 0,p=(0,o.encodeFunctionData)({abi:t,args:u,functionName:d});try{const{data:n}=await(0,s.getAction)(e,c.call,"call")({batch:!1,data:`${p}${l?l.replace("0x",""):""}`,to:r,...f});return{result:(0,i.decodeFunctionResult)({abi:t,args:u,functionName:d,data:n||"0x"}),request:{abi:t,address:r,args:u,dataSuffix:l,functionName:d,...f}}}catch(g){throw(0,a.getContractError)(g,{abi:t,address:r,args:u,docsPath:"/docs/contract/simulateContract",functionName:d,sender:h?.address})}}},712460:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uninstallFilter=void 0,t.uninstallFilter=async function(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}},257463:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyHash=void 0;const n=r(100455),i=r(23289),o=r(582054),a=r(651702),s=r(366956),c=r(419970),u=r(146606);t.verifyHash=async function(e,{address:t,hash:r,signature:l,...d}){const f=(0,c.isHex)(l)?l:(0,c.toHex)(l);try{const{data:o}=await(0,s.getAction)(e,u.call,"call")({data:(0,c.encodeDeployData)({abi:n.universalSignatureValidatorAbi,args:[t,r,f],bytecode:i.universalSignatureValidatorByteCode}),...d});return(0,a.isBytesEqual)(o??"0x0","0x1")}catch(h){if(h instanceof o.CallExecutionError)return!1;throw h}}},58980:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=void 0;const n=r(419970),i=r(257463);t.verifyMessage=async function(e,{address:t,message:r,signature:o,...a}){const s=(0,n.hashMessage)(r);return(0,i.verifyHash)(e,{address:t,hash:s,signature:o,...a})}},895963:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=void 0;const n=r(281835),i=r(257463);t.verifyTypedData=async function(e,{address:t,signature:r,message:o,primaryType:a,types:s,domain:c,...u}){const l=(0,n.hashTypedData)({message:o,primaryType:a,types:s,domain:c});return(0,i.verifyHash)(e,{address:t,hash:l,signature:r,...u})}},408040:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitForTransactionReceipt=void 0;const n=r(574227),i=r(88094),o=r(366956),a=r(767566),s=r(876774),c=r(766527),u=r(851907),l=r(927182),d=r(47552),f=r(592535);t.waitForTransactionReceipt=async function(e,{confirmations:t=1,hash:r,onReplaced:h,pollingInterval:p=e.pollingInterval,timeout:g}){const m=(0,c.stringify)(["waitForTransactionReceipt",e.uid,r]);let y,b,v,w=!1;return new Promise(((c,A)=>{g&&setTimeout((()=>A(new i.WaitForTransactionReceiptTimeoutError({hash:r}))),g);const C=(0,a.observe)(m,{onReplaced:h,resolve:c,reject:A},(a=>{const c=(0,o.getAction)(e,f.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber(f){if(w)return;let h=f;const p=e=>{c(),e(),C()};try{if(v){if(t>1&&(!v.blockNumber||h-v.blockNumber+1na.resolve(v)))}if(y||(w=!0,await(0,s.withRetry)((async()=>{y=await(0,o.getAction)(e,l.getTransaction,"getTransaction")({hash:r}),y.blockNumber&&(h=y.blockNumber)}),{delay:({count:e})=>200*(1<1&&(!v.blockNumber||h-v.blockNumber+1na.resolve(v)))}catch(g){if(y&&(g instanceof i.TransactionNotFoundError||g instanceof i.TransactionReceiptNotFoundError))try{b=y,w=!0;const r=await(0,s.withRetry)((()=>(0,o.getAction)(e,u.getBlock,"getBlock")({blockNumber:h,includeTransactions:!0})),{delay:({count:e})=>200*(1<e instanceof n.BlockNotFoundError});w=!1;const i=r.transactions.find((({from:e,nonce:t})=>e===b.from&&t===b.nonce));if(!i)return;if(v=await(0,o.getAction)(e,d.getTransactionReceipt,"getTransactionReceipt")({hash:i.hash}),t>1&&(!v.blockNumber||h-v.blockNumber+1n{a.onReplaced?.({reason:c,replacedTransaction:b,transaction:i,transactionReceipt:v}),a.resolve(v)}))}catch(m){p((()=>a.reject(m)))}else p((()=>a.reject(g)))}}})}))}))}},592535:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlockNumber=void 0;const n=r(15987),i=r(366956),o=r(767566),a=r(810733),s=r(766527),c=r(389790);t.watchBlockNumber=function(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:u,onError:l,poll:d,pollingInterval:f=e.pollingInterval}){let h;return(void 0!==d?d:"webSocket"!==e.transport.type)?(()=>{const n=(0,s.stringify)(["watchBlockNumber",e.uid,t,r,f]);return(0,o.observe)(n,{onBlockNumber:u,onError:l},(n=>(0,a.poll)((async()=>{try{const t=await(0,i.getAction)(e,c.getBlockNumber,"getBlockNumber")({cacheTime:0});if(h){if(t===h)return;if(t-h>1&&r)for(let e=h+1n;eh)&&(n.onBlockNumber(t,h),h=t)}catch(t){n.onError?.(t)}}),{emitOnBegin:t,interval:f})))})():(()=>{let t=!0,r=()=>t=!1;return(async()=>{try{const{unsubscribe:i}=await e.transport.subscribe({params:["newHeads"],onData(e){if(!t)return;const r=(0,n.hexToBigInt)(e.result?.number);u(r,h),h=r},onError(e){l?.(e)}});r=i,t||r()}catch(i){l?.(i)}})(),r})()}},16469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlocks=void 0;const n=r(483849),i=r(366956),o=r(767566),a=r(810733),s=r(766527),c=r(851907);t.watchBlocks=function(e,{blockTag:t="latest",emitMissed:r=!1,emitOnBegin:u=!1,onBlock:l,onError:d,includeTransactions:f,poll:h,pollingInterval:p=e.pollingInterval}){const g=void 0!==h?h:"webSocket"!==e.transport.type,m=f??!1;let y;return g?(()=>{const n=(0,s.stringify)(["watchBlocks",e.uid,r,u,m,p]);return(0,o.observe)(n,{onBlock:l,onError:d},(n=>(0,a.poll)((async()=>{try{const o=await(0,i.getAction)(e,c.getBlock,"getBlock")({blockTag:t,includeTransactions:m});if(o.number&&y?.number){if(o.number===y.number)return;if(o.number-y.number>1&&r)for(let t=y?.number+1n;ty.number)&&(n.onBlock(o,y),y=o)}catch(o){n.onError?.(o)}}),{emitOnBegin:u,interval:p})))})():(()=>{let t=!0,r=()=>t=!1;return(async()=>{try{const{unsubscribe:i}=await e.transport.subscribe({params:["newHeads"],onData(r){if(!t)return;const i=(e.chain?.formatters?.block?.format||n.formatBlock)(r.result);l(i,y),y=i},onError(e){d?.(e)}});r=i,t||r()}catch(i){d?.(i)}})(),r})()}},395309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchContractEvent=void 0;const n=r(767566),i=r(810733),o=r(766527),a=r(112060),s=r(859577),c=r(538507),u=r(607873),l=r(873886),d=r(366956),f=r(497276),h=r(389790),p=r(983619),g=r(394589),m=r(712460);t.watchContractEvent=function(e,{abi:t,address:r,args:y,batch:b=!0,eventName:v,onError:w,onLogs:A,poll:C,pollingInterval:E=e.pollingInterval,strict:x}){return(void 0!==C?C:"webSocket"!==e.transport.type)?(()=>{const a=(0,o.stringify)(["watchContractEvent",r,y,b,e.uid,v,E]),c=x??!1;return(0,n.observe)(a,{onLogs:A,onError:w},(n=>{let o,a,u=!1;const l=(0,i.poll)((async()=>{if(u)try{let i;if(a)i=await(0,d.getAction)(e,g.getFilterChanges,"getFilterChanges")({filter:a});else{const n=await(0,d.getAction)(e,h.getBlockNumber,"getBlockNumber")({});i=o&&o!==n?await(0,d.getAction)(e,p.getContractEvents,"getContractEvents")({abi:t,address:r,args:y,eventName:v,fromBlock:o+1n,toBlock:n,strict:c}):[],o=n}if(0===i.length)return;if(b)n.onLogs(i);else for(const e of i)n.onLogs([e])}catch(i){a&&i instanceof s.InvalidInputRpcError&&(u=!1),n.onError?.(i)}else{try{a=await(0,d.getAction)(e,f.createContractEventFilter,"createContractEventFilter")({abi:t,address:r,args:y,eventName:v,strict:c})}catch{}u=!0}}),{emitOnBegin:!0,interval:E});return async()=>{a&&await(0,d.getAction)(e,m.uninstallFilter,"uninstallFilter")({filter:a}),l()}}))})():(()=>{let n=!0,i=()=>n=!1;return(async()=>{try{const o=v?(0,u.encodeEventTopics)({abi:t,eventName:v,args:y}):[],{unsubscribe:s}=await e.transport.subscribe({params:["logs",{address:r,topics:o}],onData(e){if(!n)return;const r=e.result;try{const{eventName:e,args:n}=(0,c.decodeEventLog)({abi:t,data:r.data,topics:r.topics,strict:x}),i=(0,l.formatLog)(r,{args:n,eventName:e});A([i])}catch(i){let e,t;if(i instanceof a.DecodeLogDataMismatch||i instanceof a.DecodeLogTopicsMismatch){if(x)return;e=i.abiItem.name,t=i.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}const n=(0,l.formatLog)(r,{args:t?[]:{},eventName:e});A([n])}},onError(e){w?.(e)}});i=s,n||i()}catch(o){w?.(o)}})(),i})()}},854091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchEvent=void 0;const n=r(767566),i=r(810733),o=r(766527),a=r(112060),s=r(859577),c=r(366956),u=r(419970),l=r(257398),d=r(389790),f=r(394589),h=r(64479),p=r(712460);t.watchEvent=function(e,{address:t,args:r,batch:g=!0,event:m,events:y,onError:b,onLogs:v,poll:w,pollingInterval:A=e.pollingInterval,strict:C}){const E=void 0!==w?w:"webSocket"!==e.transport.type,x=C??!1;return E?(()=>{const a=(0,o.stringify)(["watchEvent",t,r,g,e.uid,m,A]);return(0,n.observe)(a,{onLogs:v,onError:b},(n=>{let o,a,u=!1;const b=(0,i.poll)((async()=>{if(u)try{let i;if(a)i=await(0,c.getAction)(e,f.getFilterChanges,"getFilterChanges")({filter:a});else{const n=await(0,c.getAction)(e,d.getBlockNumber,"getBlockNumber")({});i=o&&o!==n?await(0,c.getAction)(e,h.getLogs,"getLogs")({address:t,args:r,event:m,events:y,fromBlock:o+1n,toBlock:n}):[],o=n}if(0===i.length)return;if(g)n.onLogs(i);else for(const e of i)n.onLogs([e])}catch(i){a&&i instanceof s.InvalidInputRpcError&&(u=!1),n.onError?.(i)}else{try{a=await(0,c.getAction)(e,l.createEventFilter,"createEventFilter")({address:t,args:r,event:m,events:y,strict:x})}catch{}u=!0}}),{emitOnBegin:!0,interval:A});return async()=>{a&&await(0,c.getAction)(e,p.uninstallFilter,"uninstallFilter")({filter:a}),b()}}))})():(()=>{let n=!0,i=()=>n=!1;return(async()=>{try{const o=y??(m?[m]:void 0);let s=[];o&&(s=[o.flatMap((e=>(0,u.encodeEventTopics)({abi:[e],eventName:e.name,args:r})))],m&&(s=s[0]));const{unsubscribe:c}=await e.transport.subscribe({params:["logs",{address:t,topics:s}],onData(e){if(!n)return;const t=e.result;try{const{eventName:e,args:r}=(0,u.decodeEventLog)({abi:o,data:t.data,topics:t.topics,strict:x}),n=(0,u.formatLog)(t,{args:r,eventName:e});v([n])}catch(r){let e,n;if(r instanceof a.DecodeLogDataMismatch||r instanceof a.DecodeLogTopicsMismatch){if(C)return;e=r.abiItem.name,n=r.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}const i=(0,u.formatLog)(t,{args:n?[]:{},eventName:e});v([i])}},onError(e){b?.(e)}});i=c,n||i()}catch(o){b?.(o)}})(),i})()}},21841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchPendingTransactions=void 0;const n=r(366956),i=r(767566),o=r(810733),a=r(766527),s=r(372181),c=r(394589),u=r(712460);t.watchPendingTransactions=function(e,{batch:t=!0,onError:r,onTransactions:l,poll:d,pollingInterval:f=e.pollingInterval}){return(void 0!==d?d:"webSocket"!==e.transport.type)?(()=>{const d=(0,a.stringify)(["watchPendingTransactions",e.uid,t,f]);return(0,i.observe)(d,{onTransactions:l,onError:r},(r=>{let i;const a=(0,o.poll)((async()=>{try{if(!i)try{return void(i=await(0,n.getAction)(e,s.createPendingTransactionFilter,"createPendingTransactionFilter")({}))}catch(o){throw a(),o}const u=await(0,n.getAction)(e,c.getFilterChanges,"getFilterChanges")({filter:i});if(0===u.length)return;if(t)r.onTransactions(u);else for(const e of u)r.onTransactions([e])}catch(o){r.onError?.(o)}}),{emitOnBegin:!0,interval:f});return async()=>{i&&await(0,n.getAction)(e,u.uninstallFilter,"uninstallFilter")({filter:i}),a()}}))})():(()=>{let t=!0,n=()=>t=!1;return(async()=>{try{const{unsubscribe:i}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!t)return;const r=e.result;l([r])},onError(e){r?.(e)}});n=i,t||n()}catch(i){r?.(i)}})(),n})()}},764138:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dropTransaction=void 0,t.dropTransaction=async function(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}},997390:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dumpState=void 0,t.dumpState=async function(e){return e.request({method:`${e.mode}_dumpState`})}},618117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAutomine=void 0,t.getAutomine=async function(e){return"ganache"===e.mode?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}},165686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolContent=void 0,t.getTxpoolContent=async function(e){return await e.request({method:"txpool_content"})}},886725:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolStatus=void 0;const n=r(15987);t.getTxpoolStatus=async function(e){const{pending:t,queued:r}=await e.request({method:"txpool_status"});return{pending:(0,n.hexToNumber)(t),queued:(0,n.hexToNumber)(r)}}},479313:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.impersonateAccount=void 0,t.impersonateAccount=async function(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}},194128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.increaseTime=void 0;const n=r(214368);t.increaseTime=async function(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[(0,n.numberToHex)(t)]})}},67407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inspectTxpool=void 0,t.inspectTxpool=async function(e){return await e.request({method:"txpool_inspect"})}},901372:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadState=void 0,t.loadState=async function(e,{state:t}){await e.request({method:`${e.mode}_loadState`,params:[t]})}},192738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mine=void 0;const n=r(214368);t.mine=async function(e,{blocks:t,interval:r}){"ganache"===e.mode?await e.request({method:"evm_mine",params:[{blocks:(0,n.numberToHex)(t)}]}):await e.request({method:`${e.mode}_mine`,params:[(0,n.numberToHex)(t),(0,n.numberToHex)(r||0)]})}},436899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeBlockTimestampInterval=void 0,t.removeBlockTimestampInterval=async function(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}},639566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reset=void 0,t.reset=async function(e,{blockNumber:t,jsonRpcUrl:r}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:r}}]})}},822339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.revert=void 0,t.revert=async function(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}},215706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendUnsignedTransaction=void 0;const n=r(456941),i=r(575847);t.sendUnsignedTransaction=async function(e,t){const{accessList:r,data:o,from:a,gas:s,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:l,nonce:d,to:f,value:h,...p}=t,g=e.chain?.formatters?.transactionRequest?.format,m=(g||i.formatTransactionRequest)({...(0,n.extract)(p,{format:g}),accessList:r,data:o,from:a,gas:s,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:l,nonce:d,to:f,value:h});return await e.request({method:"eth_sendUnsignedTransaction",params:[m]})}},62569:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setAutomine=void 0,t.setAutomine=async function(e,t){"ganache"===e.mode?t?await e.request({method:"miner_start"}):await e.request({method:"miner_stop"}):await e.request({method:"evm_setAutomine",params:[t]})}},509409:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBalance=void 0;const n=r(214368);t.setBalance=async function(e,{address:t,value:r}){"ganache"===e.mode?await e.request({method:"evm_setAccountBalance",params:[t,(0,n.numberToHex)(r)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,(0,n.numberToHex)(r)]})}},800144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockGasLimit=void 0;const n=r(214368);t.setBlockGasLimit=async function(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[(0,n.numberToHex)(t)]})}},914695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockTimestampInterval=void 0,t.setBlockTimestampInterval=async function(e,{interval:t}){const r="hardhat"===e.mode?1e3*t:t;await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[r]})}},608196:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setCode=void 0,t.setCode=async function(e,{address:t,bytecode:r}){await e.request({method:`${e.mode}_setCode`,params:[t,r]})}},316521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setCoinbase=void 0,t.setCoinbase=async function(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}},260692:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setIntervalMining=void 0,t.setIntervalMining=async function(e,{interval:t}){const r="hardhat"===e.mode?1e3*t:t;await e.request({method:"evm_setIntervalMining",params:[r]})}},692415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setLoggingEnabled=void 0,t.setLoggingEnabled=async function(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}},479295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setMinGasPrice=void 0;const n=r(214368);t.setMinGasPrice=async function(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[(0,n.numberToHex)(t)]})}},260072:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockBaseFeePerGas=void 0;const n=r(214368);t.setNextBlockBaseFeePerGas=async function(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[(0,n.numberToHex)(t)]})}},940191:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockTimestamp=void 0;const n=r(214368);t.setNextBlockTimestamp=async function(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[(0,n.numberToHex)(t)]})}},913046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNonce=void 0;const n=r(214368);t.setNonce=async function(e,{address:t,nonce:r}){await e.request({method:`${e.mode}_setNonce`,params:[t,(0,n.numberToHex)(r)]})}},671261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setRpcUrl=void 0,t.setRpcUrl=async function(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}},791509:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageAt=void 0;const n=r(214368);t.setStorageAt=async function(e,{address:t,index:r,value:i}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,"number"==typeof r?(0,n.numberToHex)(r):r,i]})}},673289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.snapshot=void 0,t.snapshot=async function(e){return await e.request({method:"evm_snapshot"})}},792e3:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopImpersonatingAccount=void 0,t.stopImpersonatingAccount=async function(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}},630598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addChain=void 0;const n=r(214368);t.addChain=async function(e,{chain:t}){const{id:r,name:i,nativeCurrency:o,rpcUrls:a,blockExplorers:s}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,n.numberToHex)(r),chainName:i,nativeCurrency:o,rpcUrls:a.default.http,blockExplorerUrls:s?Object.values(s).map((({url:e})=>e)):void 0}]})}},571827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deployContract=void 0;const n=r(981618),i=r(634514);t.deployContract=function(e,{abi:t,args:r,bytecode:o,...a}){const s=(0,n.encodeDeployData)({abi:t,args:r,bytecode:o});return(0,i.sendTransaction)(e,{...a,data:s})}},736186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddresses=void 0;const n=r(115257);t.getAddresses=async function(e){return"local"===e.account?.type?[e.account.address]:(await e.request({method:"eth_accounts"})).map((e=>(0,n.checksumAddress)(e)))}},690450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPermissions=void 0,t.getPermissions=async function(e){return await e.request({method:"wallet_getPermissions"})}},887934:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareTransactionRequest=void 0;const n=r(157449),i=r(34485),o=r(867787),a=r(851907),s=r(933099),c=r(307377),u=r(973874),l=r(366956),d=r(71526),f=r(933105);t.prepareTransactionRequest=async function(e,t){const{account:r=e.account,chain:h,gas:p,nonce:g,type:m}=t;if(!r)throw new c.AccountNotFoundError;const y=(0,n.parseAccount)(r),b=await(0,l.getAction)(e,a.getBlock,"getBlock")({blockTag:"latest"}),v={...t,from:y.address};if(void 0===g&&(v.nonce=await(0,l.getAction)(e,s.getTransactionCount,"getTransactionCount")({address:y.address,blockTag:"pending"})),void 0===m)try{v.type=(0,f.getTransactionType)(v)}catch{v.type="bigint"==typeof b.baseFeePerGas?"eip1559":"legacy"}if("eip1559"===v.type){const{maxFeePerGas:r,maxPriorityFeePerGas:n}=await(0,i.internal_estimateFeesPerGas)(e,{block:b,chain:h,request:v});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestAddresses=void 0;const n=r(115257);t.requestAddresses=async function(e){return(await e.request({method:"eth_requestAccounts"})).map((e=>(0,n.getAddress)(e)))}},561205:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestPermissions=void 0,t.requestPermissions=async function(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}},278930:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendRawTransaction=void 0,t.sendRawTransaction=async function(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]})}},634514:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendTransaction=void 0;const n=r(157449),i=r(307377),o=r(755014),a=r(726214),s=r(456941),c=r(575847),u=r(366956),l=r(71526),d=r(659334),f=r(887934),h=r(278930);t.sendTransaction=async function(e,t){const{account:r=e.account,chain:p=e.chain,accessList:g,data:m,gas:y,gasPrice:b,maxFeePerGas:v,maxPriorityFeePerGas:w,nonce:A,to:C,value:E,...x}=t;if(!r)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});const S=(0,n.parseAccount)(r);try{let r;if((0,l.assertRequest)(t),null!==p&&(r=await(0,u.getAction)(e,d.getChainId,"getChainId")({}),(0,o.assertCurrentChain)({currentChainId:r,chain:p})),"local"===S.type){const t=await(0,u.getAction)(e,f.prepareTransactionRequest,"prepareTransactionRequest")({account:S,accessList:g,chain:p,data:m,gas:y,gasPrice:b,maxFeePerGas:v,maxPriorityFeePerGas:w,nonce:A,to:C,value:E,...x});r||(r=await(0,u.getAction)(e,d.getChainId,"getChainId")({}));const n=p?.serializers?.transaction,i=await S.signTransaction({...t,chainId:r},{serializer:n});return await(0,u.getAction)(e,h.sendRawTransaction,"sendRawTransaction")({serializedTransaction:i})}const n=e.chain?.formatters?.transactionRequest?.format,i=(n||c.formatTransactionRequest)({...(0,s.extract)(x,{format:n}),accessList:g,data:m,from:S.address,gas:y,gasPrice:b,maxFeePerGas:v,maxPriorityFeePerGas:w,nonce:A,to:C,value:E});return await e.request({method:"eth_sendTransaction",params:[i]})}catch(I){throw(0,a.getTransactionError)(I,{...t,account:S,chain:t.chain||void 0})}}},455504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signMessage=void 0;const n=r(157449),i=r(307377),o=r(214368);t.signMessage=async function(e,{account:t=e.account,message:r}){if(!t)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});const a=(0,n.parseAccount)(t);if("local"===a.type)return a.signMessage({message:r});const s="string"==typeof r?(0,o.stringToHex)(r):r.raw instanceof Uint8Array?(0,o.toHex)(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,a.address]})}},737859:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signTransaction=void 0;const n=r(157449),i=r(307377),o=r(755014),a=r(575847),s=r(366956),c=r(419970),u=r(71526),l=r(659334);t.signTransaction=async function(e,t){const{account:r=e.account,chain:d=e.chain,...f}=t;if(!r)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});const h=(0,n.parseAccount)(r);(0,u.assertRequest)({account:h,...t});const p=await(0,s.getAction)(e,l.getChainId,"getChainId")({});null!==d&&(0,o.assertCurrentChain)({currentChainId:p,chain:d});const g=d?.formatters||e.chain?.formatters,m=g?.transactionRequest?.format||a.formatTransactionRequest;return"local"===h.type?h.signTransaction({...f,chainId:p},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...m(f),chainId:(0,c.numberToHex)(p),from:h.address}]})}},433327:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signTypedData=void 0;const n=r(157449),i=r(307377),o=r(771482),a=r(766527),s=r(72318);t.signTypedData=async function(e,{account:t=e.account,domain:r,message:c,primaryType:u,types:l}){if(!t)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});const d=(0,n.parseAccount)(t),f={EIP712Domain:(0,s.getTypesForEIP712Domain)({domain:r}),...l};if((0,s.validateTypedData)({domain:r,message:c,primaryType:u,types:f}),"local"===d.type)return d.signTypedData({domain:r,primaryType:u,types:f,message:c});const h=(0,a.stringify)({domain:r??{},primaryType:u,types:f,message:c},((e,t)=>(0,o.isHex)(t)?t.toLowerCase():t));return e.request({method:"eth_signTypedData_v4",params:[d.address,h]})}},903413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchChain=void 0;const n=r(214368);t.switchChain=async function(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,n.numberToHex)(t)}]})}},492775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchAsset=void 0,t.watchAsset=async function(e,t){return await e.request({method:"wallet_watchAsset",params:t})}},721609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.writeContract=void 0;const n=r(36217),i=r(366956),o=r(634514);t.writeContract=async function(e,{abi:t,address:r,args:a,dataSuffix:s,functionName:c,...u}){const l=(0,n.encodeFunctionData)({abi:t,args:a,functionName:c});return await(0,i.getAction)(e,o.sendTransaction,"sendTransaction")({data:`${l}${s?s.replace("0x",""):""}`,to:r,...u})}},226586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formattersCelo=void 0;const n=r(15987),i=r(214368),o=r(483849),a=r(477100),s=r(575847),c=r(313408);t.formattersCelo={block:(0,o.defineBlock)({exclude:["difficulty","gasLimit","mixHash","nonce","uncles"],format(e){const t=e.transactions?.map((e=>"string"==typeof e?e:{...(0,a.formatTransaction)(e),feeCurrency:e.feeCurrency,..."0x7b"!==e.type?{gatewayFee:e.gatewayFee?(0,n.hexToBigInt)(e.gatewayFee):null,gatewayFeeRecipient:e.gatewayFeeRecipient||null}:{}}));return{randomness:e.randomness,transactions:t}}}),transaction:(0,a.defineTransaction)({format(e){const t={feeCurrency:e.feeCurrency};return"0x7b"===e.type?t.type="cip64":("0x7c"===e.type&&(t.type="cip42"),t.gatewayFee=e.gatewayFee?(0,n.hexToBigInt)(e.gatewayFee):null,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}}),transactionRequest:(0,s.defineTransactionRequest)({format(e){const t={feeCurrency:e.feeCurrency};return(0,c.isCIP64)(e)?t.type="0x7b":((0,c.isCIP42)(e)&&(t.type="0x7c"),t.gatewayFee=void 0!==e.gatewayFee?(0,i.numberToHex)(e.gatewayFee):void 0,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}})}},227904:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertTransactionCIP64=t.assertTransactionCIP42=t.serializersCelo=t.serializeTransactionCelo=void 0;const n=r(79746),i=r(192857),o=r(601679),a=r(585296),s=r(208305),c=r(283755),u=r(939415),l=r(214368),d=r(246915),f=r(706653),h=r(823067),p=r(313408);t.serializeTransactionCelo=(e,t)=>(0,p.isCIP64)(e)?function(e,t){y(e);const{chainId:r,gas:n,nonce:i,to:o,value:a,maxFeePerGas:s,maxPriorityFeePerGas:h,accessList:p,feeCurrency:g,data:m}=e,b=[(0,l.toHex)(r),i?(0,l.toHex)(i):"0x",h?(0,l.toHex)(h):"0x",s?(0,l.toHex)(s):"0x",n?(0,l.toHex)(n):"0x",o??"0x",a?(0,l.toHex)(a):"0x",m??"0x",(0,f.serializeAccessList)(p),g];t&&b.push(27n===t.v?"0x":(0,l.toHex)(1),(0,u.trim)(t.r),(0,u.trim)(t.s));return(0,c.concatHex)(["0x7b",(0,d.toRlp)(b)])}(e,t):(0,p.isCIP42)(e)?function(e,t){m(e);const{chainId:r,gas:n,nonce:i,to:o,value:a,maxFeePerGas:s,maxPriorityFeePerGas:h,accessList:p,feeCurrency:g,gatewayFeeRecipient:y,gatewayFee:b,data:v}=e,w=[(0,l.toHex)(r),i?(0,l.toHex)(i):"0x",h?(0,l.toHex)(h):"0x",s?(0,l.toHex)(s):"0x",n?(0,l.toHex)(n):"0x",g??"0x",y??"0x",b?(0,l.toHex)(b):"0x",o??"0x",a?(0,l.toHex)(a):"0x",v??"0x",(0,f.serializeAccessList)(p)];t&&w.push(27n===t.v?"0x":(0,l.toHex)(1),(0,u.trim)(t.r),(0,u.trim)(t.s));return(0,c.concatHex)(["0x7c",(0,d.toRlp)(w)])}(e,t):(0,h.serializeTransaction)(e,t),t.serializersCelo={transaction:t.serializeTransactionCelo};const g=2n**256n-1n;function m(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:u,to:l,feeCurrency:d,gatewayFee:f,gatewayFeeRecipient:h}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(c)throw new i.BaseError("`gasPrice` is not a valid CIP-42 Transaction attribute.");if((0,p.isPresent)(u)&&u>g)throw new a.FeeCapTooHighError({maxFeePerGas:u});if((0,p.isPresent)(r)&&(0,p.isPresent)(u)&&r>u)throw new a.TipAboveFeeCapError({maxFeePerGas:u,maxPriorityFeePerGas:r});if((0,p.isPresent)(f)&&(0,p.isEmpty)(h)||(0,p.isPresent)(h)&&(0,p.isEmpty)(f))throw new i.BaseError("`gatewayFee` and `gatewayFeeRecipient` must be provided together.");if((0,p.isPresent)(d)&&!(0,s.isAddress)(d))throw new i.BaseError("`feeCurrency` MUST be a token address for CIP-42 transactions.");if((0,p.isPresent)(h)&&!(0,s.isAddress)(h))throw new n.InvalidAddressError(h);if((0,p.isEmpty)(d)&&(0,p.isEmpty)(h))throw new i.BaseError("Either `feeCurrency` or `gatewayFeeRecipient` must be provided for CIP-42 transactions.")}function y(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:u,to:l,feeCurrency:d}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(c)throw new i.BaseError("`gasPrice` is not a valid CIP-64 Transaction attribute.");if((0,p.isPresent)(u)&&u>g)throw new a.FeeCapTooHighError({maxFeePerGas:u});if((0,p.isPresent)(r)&&(0,p.isPresent)(u)&&r>u)throw new a.TipAboveFeeCapError({maxFeePerGas:u,maxPriorityFeePerGas:r});if((0,p.isPresent)(d)&&!(0,s.isAddress)(d))throw new i.BaseError("`feeCurrency` MUST be a token address for CIP-64 transactions.");if((0,p.isEmpty)(d))throw new i.BaseError("`feeCurrency` must be provided for CIP-64 transactions.")}t.assertTransactionCIP42=m,t.assertTransactionCIP64=y},313408:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCIP64=t.isCIP42=t.isEIP1559=t.isPresent=t.isEmpty=void 0;const n=r(939415);function i(e){return 0===e||0n===e||null==e||"0"===e||""===e||"string"==typeof e&&("0x"===(0,n.trim)(e).toLowerCase()||"0x00"===(0,n.trim)(e).toLowerCase())}function o(e){return!i(e)}function a(e){return o(e.maxFeePerGas)&&o(e.maxPriorityFeePerGas)}t.isEmpty=i,t.isPresent=o,t.isEIP1559=a,t.isCIP42=function(e){return"cip42"===e.type||a(e)&&(o(e.feeCurrency)||o(e.gatewayFeeRecipient)||o(e.gatewayFee))},t.isCIP64=function(e){return"cip64"===e.type||a(e)&&o(e.feeCurrency)&&i(e.gatewayFee)&&i(e.gatewayFeeRecipient)}},144162:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.acala=void 0;const n=r(293300);t.acala=(0,n.defineChain)({id:787,name:"Acala",network:"acala",nativeCurrency:{name:"Acala",symbol:"ACA",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]},default:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]}},blockExplorers:{default:{name:"Acala Blockscout",url:"https://blockscout.acala.network"}},testnet:!1})},879130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arbitrum=void 0;const n=r(293300);t.arbitrum=(0,n.defineChain)({id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}})},245952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arbitrumGoerli=void 0;const n=r(293300);t.arbitrumGoerli=(0,n.defineChain)({id:421613,name:"Arbitrum Goerli",network:"arbitrum-goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-goerli.g.alchemy.com/v2"],webSocket:["wss://arb-goerli.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-goerli.infura.io/v3"],webSocket:["wss://arbitrum-goerli.infura.io/ws/v3"]},default:{http:["https://goerli-rollup.arbitrum.io/rpc"]},public:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://goerli.arbiscan.io"},default:{name:"Arbiscan",url:"https://goerli.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0})},296816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arbitrumNova=void 0;const n=r(293300);t.arbitrumNova=(0,n.defineChain)({id:42170,name:"Arbitrum Nova",network:"arbitrum-nova",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{blast:{http:["https://arbitrum-nova.public.blastapi.io"],webSocket:["wss://arbitrum-nova.public.blastapi.io"]},default:{http:["https://nova.arbitrum.io/rpc"]},public:{http:["https://nova.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://nova.arbiscan.io"},blockScout:{name:"BlockScout",url:"https://nova-explorer.arbitrum.io/"},default:{name:"Arbiscan",url:"https://nova.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1746963}}})},809337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arbitrumSepolia=void 0;const n=r(293300);t.arbitrumSepolia=(0,n.defineChain)({id:421614,name:"Arbitrum Sepolia",network:"arbitrum-sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-sepolia.g.alchemy.com/v2"],webSocket:["wss://arb-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]},public:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://sepolia.arbiscan.io"},default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0})},682785:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.astar=void 0;const n=r(293300);t.astar=(0,n.defineChain)({id:592,name:"Astar",network:"astar-mainnet",nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},rpcUrls:{public:{http:["https://astar.api.onfinality.io/public"]},default:{http:["https://astar.api.onfinality.io/public"]}},blockExplorers:{default:{name:"Astar Subscan",url:"https://astar.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:761794}},testnet:!1})},615965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.astarZkatana=void 0;const n=r(293300);t.astarZkatana=(0,n.defineChain)({id:1261120,name:"Astar zkEVM Testnet zKatana",network:"zKatana",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zkatana.gelato.digital","https://rpc.startale.com/zkatana"]},public:{http:["https://rpc.zkatana.gelato.digital","https://rpc.startale.com/zkatana"]}},blockExplorers:{blockscout:{name:"Blockscout zKatana chain explorer",url:"https://zkatana.blockscout.com"},default:{name:"zKatana Explorer",url:"https://zkatana.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:31317}},testnet:!0})},893392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aurora=void 0;const n=r(293300);t.aurora=(0,n.defineChain)({id:1313161554,name:"Aurora",network:"aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{infura:{http:["https://aurora-mainnet.infura.io/v3"]},default:{http:["https://mainnet.aurora.dev"]},public:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{etherscan:{name:"Aurorascan",url:"https://aurorascan.dev"},default:{name:"Aurorascan",url:"https://aurorascan.dev"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:62907816}}})},888397:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auroraTestnet=void 0;const n=r(293300);t.auroraTestnet=(0,n.defineChain)({id:1313161555,name:"Aurora Testnet",network:"aurora-testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{infura:{http:["https://aurora-testnet.infura.io/v3"]},default:{http:["https://testnet.aurora.dev"]},public:{http:["https://testnet.aurora.dev"]}},blockExplorers:{etherscan:{name:"Aurorascan",url:"https://testnet.aurorascan.dev"},default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev"}},testnet:!0})},71535:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.avalanche=void 0;const n=r(293300);t.avalanche=(0,n.defineChain)({id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}})},212547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.avalancheFuji=void 0;const n=r(293300);t.avalancheFuji=(0,n.defineChain)({id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0})},226054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bahamut=void 0;const n=r(293300);t.bahamut=(0,n.defineChain)({id:5165,network:"bahamut",name:"Bahamut",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.bahamut.io","https://bahamut.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut.publicnode.com","wss://ws2.sahara.bahamutchain.com"]},public:{http:["https://rpc1.bahamut.io","https://bahamut.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut.publicnode.com","wss://ws2.sahara.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://www.ftnscan.com"}}})},817345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base=void 0;const n=r(293300),i=r(445343);t.base=(0,n.defineChain)({id:8453,network:"base",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-mainnet.g.alchemy.com/v2"],webSocket:["wss://base-mainnet.g.alchemy.com/v2"]},infura:{http:["https://base-mainnet.infura.io/v3"],webSocket:["wss://base-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{blockscout:{name:"Basescout",url:"https://base.blockscout.com"},default:{name:"Basescan",url:"https://basescan.org"},etherscan:{name:"Basescan",url:"https://basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022}}},{formatters:i.formattersOptimism})},152051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.baseGoerli=void 0;const n=r(293300),i=r(445343);t.baseGoerli=(0,n.defineChain)({id:84531,network:"base-goerli",name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-goerli.g.alchemy.com/v2"],webSocket:["wss://base-goerli.g.alchemy.com/v2"]},default:{http:["https://goerli.base.org"]},public:{http:["https://goerli.base.org"]}},blockExplorers:{etherscan:{name:"Basescan",url:"https://goerli.basescan.org"},default:{name:"Basescan",url:"https://goerli.basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988}},testnet:!0,sourceId:5},{formatters:i.formattersOptimism})},582360:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.baseSepolia=void 0;const n=r(293300),i=r(445343);t.baseSepolia=(0,n.defineChain)({id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-sepolia.g.alchemy.com/v2"],webSocket:["wss://base-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia.base.org"]},public:{http:["https://sepolia.base.org"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"},default:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"}},testnet:!0,sourceId:11155111},{formatters:i.formattersOptimism})},480833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bearNetworkChainMainnet=void 0;const n=r(293300);t.bearNetworkChainMainnet=(0,n.defineChain)({id:641230,name:"Bear Network Chain Mainnet",network:"BearNetworkChainMainnet",nativeCurrency:{decimals:18,name:"BearNetworkChain",symbol:"BRNKC"},rpcUrls:{public:{http:["https://brnkc-mainnet.bearnetwork.net"]},default:{http:["https://brnkc-mainnet.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkScan",url:"https://brnkscan.bearnetwork.net"}}})},539686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bearNetworkChainTestnet=void 0;const n=r(293300);t.bearNetworkChainTestnet=(0,n.defineChain)({id:751230,name:"Bear Network Chain Testnet",network:"BearNetworkChainTestnet",nativeCurrency:{decimals:18,name:"tBRNKC",symbol:"tBRNKC"},rpcUrls:{public:{http:["https://brnkc-test.bearnetwork.net"]},default:{http:["https://brnkc-test.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkTestScan",url:"https://brnktest-scan.bearnetwork.net"}},testnet:!0})},791615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitTorrent=void 0;const n=r(293300);t.bitTorrent=(0,n.defineChain)({id:199,name:"BitTorrent",network:"bittorrent-chain-mainnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://rpc.bittorrentchain.io"]},public:{http:["https://rpc.bittorrentchain.io"]}},blockExplorers:{etherscan:{name:"Bttcscan",url:"https://bttcscan.com"},default:{name:"Bttcscan",url:"https://bttcscan.com"}}})},960628:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitTorrentTestnet=void 0;const n=r(293300);t.bitTorrentTestnet=(0,n.defineChain)({id:1028,name:"BitTorrent Chain Testnet",network:"bittorrent-chain-testnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://testrpc.bittorrentchain.io"]},public:{http:["https://testrpc.bittorrentchain.io"]}},blockExplorers:{etherscan:{name:"Bttcscan",url:"https://testnet.bttcscan.com"},default:{name:"Bttcscan",url:"https://testnet.bttcscan.com"}},testnet:!0})},290938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boba=void 0;const n=r(293300);t.boba=(0,n.defineChain)({id:288,name:"Boba Network",network:"boba",nativeCurrency:{decimals:18,name:"Boba",symbol:"BOBA"},rpcUrls:{default:{http:["https://mainnet.boba.network"]},public:{http:["https://mainnet.boba.network"]}},blockExplorers:{etherscan:{name:"BOBAScan",url:"https://bobascan.com"},default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}})},377287:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bronos=void 0;const n=r(293300);t.bronos=(0,n.defineChain)({id:1039,name:"Bronos",network:"bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]},public:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}})},727036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bronosTestnet=void 0;const n=r(293300);t.bronosTestnet=(0,n.defineChain)({id:1038,name:"Bronos Testnet",network:"bronos-testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]},public:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0})},484938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bsc=void 0;const n=r(293300);t.bsc=(0,n.defineChain)({id:56,name:"BNB Smart Chain",network:"bsc",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]},public:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}})},60267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bscTestnet=void 0;const n=r(293300);t.bscTestnet=(0,n.defineChain)({id:97,name:"Binance Smart Chain Testnet",network:"bsc-testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]},public:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://testnet.bscscan.com"},default:{name:"BscScan",url:"https://testnet.bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0})},175342:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bxn=void 0;const n=r(293300);t.bxn=(0,n.defineChain)({id:4999,name:"BlackFort Exchange Network",network:"bxn",nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},rpcUrls:{default:{http:["https://mainnet.blackfort.network/rpc"]},public:{http:["https://mainnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.blackfort.network"}}})},13255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bxnTestnet=void 0;const n=r(293300);t.bxnTestnet=(0,n.defineChain)({id:4777,name:"BlackFort Exchange Network Testnet",network:"bxnTestnet",nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},rpcUrls:{default:{http:["https://testnet.blackfort.network/rpc"]},public:{http:["https://testnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.blackfort.network"}}})},424869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canto=void 0;const n=r(293300);t.canto=(0,n.defineChain)({id:7700,name:"Canto",network:"canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]},public:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}})},192381:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.celo=void 0;const n=r(293300),i=r(226586),o=r(227904);t.celo=(0,n.defineChain)({id:42220,name:"Celo",network:"celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]},infura:{http:["https://celo-mainnet.infura.io/v3"]},public:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet"},etherscan:{name:"CeloScan",url:"https://celoscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1},{formatters:i.formattersCelo,serializers:o.serializersCelo})},485358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.celoAlfajores=void 0;const n=r(293300),i=r(226586),o=r(227904);t.celoAlfajores=(0,n.defineChain)({id:44787,name:"Alfajores",network:"celo-alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]},infura:{http:["https://celo-alfajores.infura.io/v3"]},public:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores"},etherscan:{name:"CeloScan",url:"https://alfajores.celoscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001}},testnet:!0},{formatters:i.formattersCelo,serializers:o.serializersCelo})},89607:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.celoCannoli=void 0;const n=r(293300),i=r(226586),o=r(227904);t.celoCannoli=(0,n.defineChain)({id:17323,name:"Cannoli",network:"celo-cannoli",nativeCurrency:{decimals:18,name:"CELO",symbol:"C-CELO"},rpcUrls:{default:{http:["https://forno.cannoli.celo-testnet.org"]},public:{http:["https://forno.cannoli.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/cannoli"}},contracts:{multicall3:{address:"0x5Acb0aa8BF4E8Ff0d882Ee187140713C12BF9718",blockCreated:87429}},testnet:!0},{formatters:i.formattersCelo,serializers:o.serializersCelo})},275645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chiliz=void 0;const n=r(293300);t.chiliz=(0,n.defineChain)({id:88888,name:"Chiliz Chain",network:"chiliz-chain",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://rpc.ankr.com/chiliz","https://chiliz.publicnode.com"]},public:{http:["https://rpc.ankr.com/chiliz","https://chiliz.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"https://scan.chiliz.com"}}})},701334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classic=void 0;const n=r(293300);t.classic=(0,n.defineChain)({id:61,name:"Ethereum Classic",network:"classic",nativeCurrency:{decimals:18,name:"ETC",symbol:"ETC"},rpcUrls:{default:{http:["https://etc.rivet.link"]},public:{http:["https://etc.rivet.link"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.com/etc/mainnet"}}})},672218:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.confluxESpace=void 0;const n=r(293300);t.confluxESpace=(0,n.defineChain)({id:1030,name:"Conflux eSpace",network:"cfx-espace",nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evm.confluxrpc.org"],webSocket:["wss://evm.confluxrpc.org/ws"]},public:{http:["https://evm.confluxrpc.org"],webSocket:["wss://evm.confluxrpc.org/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evm.confluxscan.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:68602935}}})},353179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.confluxESpaceTestnet=void 0;const n=r(293300);t.confluxESpaceTestnet=(0,n.defineChain)({id:71,name:"Conflux eSpace Testnet",network:"cfx-espace-testnet",testnet:!0,nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evmtestnet.confluxrpc.org"],webSocket:["wss://evmtestnet.confluxrpc.org/ws"]},public:{http:["https://evmtestnet.confluxrpc.org"],webSocket:["wss://evmtestnet.confluxrpc.org/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evmtestnet.confluxscan.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:117499050}}})},911063:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coreDao=void 0;const n=r(293300);t.coreDao=(0,n.defineChain)({id:1116,name:"Core Dao",network:"coreDao",nativeCurrency:{decimals:18,name:"Core",symbol:"CORE"},rpcUrls:{public:{http:["https://rpc.coredao.org"]},default:{http:["https://rpc.coredao.org"]}},blockExplorers:{default:{name:"CoreDao",url:"https://scan.coredao.org"},etherscan:{name:"CoreDao",url:"https://scan.coredao.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11907934}},testnet:!1})},26314:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cronos=void 0;const n=r(293300);t.cronos=(0,n.defineChain)({id:25,name:"Cronos Mainnet",network:"cronos",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://evm.cronos.org"]},public:{http:["https://evm.cronos.org"]}},blockExplorers:{default:{name:"Cronoscan",url:"https://cronoscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}})},986283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cronosTestnet=void 0;const n=r(293300);t.cronosTestnet=(0,n.defineChain)({id:338,name:"Cronos Testnet",network:"cronos-testnet",nativeCurrency:{decimals:18,name:"CRO",symbol:"tCRO"},rpcUrls:{default:{http:["https://evm-t3.cronos.org"]},public:{http:["https://evm-t3.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://cronos.org/explorer/testnet3"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:10191251}},testnet:!0})},413147:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crossbell=void 0;const n=r(293300);t.crossbell=(0,n.defineChain)({id:3737,network:"crossbell",name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]},public:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:38246031}}})},56361:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dfk=void 0;const n=r(293300);t.dfk=(0,n.defineChain)({id:53935,name:"DFK Chain",network:"dfk",nativeCurrency:{decimals:18,name:"Jewel",symbol:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]},public:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{etherscan:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"},default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}}})},919412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dogechain=void 0;const n=r(293300);t.dogechain=(0,n.defineChain)({id:2e3,name:"Dogechain",network:"dogechain",nativeCurrency:{decimals:18,name:"Dogechain",symbol:"DC"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]},public:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{etherscan:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog"},default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog"}}})},281192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgeware=void 0;const n=r(293300);t.edgeware=(0,n.defineChain)({id:2021,name:"Edgeware EdgeEVM Mainnet",network:"edgeware",nativeCurrency:{decimals:18,name:"Edgeware",symbol:"EDG"},rpcUrls:{default:{http:["https://edgeware-evm.jelliedowl.net"]},public:{http:["https://edgeware-evm.jelliedowl.net"]}},blockExplorers:{etherscan:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live"},default:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18117872}}})},357637:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgewareTestnet=void 0;const n=r(293300);t.edgewareTestnet=(0,n.defineChain)({id:2022,name:"Beresheet BereEVM Testnet",network:"edgewareTestnet",nativeCurrency:{decimals:18,name:"Testnet EDG",symbol:"tEDG"},rpcUrls:{default:{http:["https://beresheet-evm.jelliedowl.net"]},public:{http:["https://beresheet-evm.jelliedowl.net"]}},blockExplorers:{etherscan:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live"},default:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live"}}})},338875:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ekta=void 0;const n=r(293300);t.ekta=(0,n.defineChain)({id:1994,name:"Ekta",network:"ekta",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{public:{http:["https://main.ekta.io"]},default:{http:["https://main.ekta.io"]}},blockExplorers:{default:{name:"Ektascan",url:"https://ektascan.io"}}})},440568:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ektaTestnet=void 0;const n=r(293300);t.ektaTestnet=(0,n.defineChain)({id:1004,name:"Ekta Testnet",network:"ekta-testnet",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{public:{http:["https://test.ekta.io:8545"]},default:{http:["https://test.ekta.io:8545"]}},blockExplorers:{default:{name:"Test Ektascan",url:"https://test.ektascan.io"}},testnet:!0})},545291:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eos=void 0;const n=r(293300);t.eos=(0,n.defineChain)({id:17777,name:"EOS EVM",network:"eos",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.evm.eosnetwork.com"]},public:{http:["https://api.evm.eosnetwork.com"]}},blockExplorers:{etherscan:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com"},default:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7943933}}})},321128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eosTestnet=void 0;const n=r(293300);t.eosTestnet=(0,n.defineChain)({id:15557,name:"EOS EVM Testnet",network:"eos",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.testnet.evm.eosnetwork.com"]},public:{http:["https://api.testnet.evm.eosnetwork.com"]}},blockExplorers:{etherscan:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com"},default:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9067940}},testnet:!0})},891438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evmos=void 0;const n=r(293300);t.evmos=(0,n.defineChain)({id:9001,name:"Evmos",network:"evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]},public:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}})},69895:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evmosTestnet=void 0;const n=r(293300);t.evmosTestnet=(0,n.defineChain)({id:9e3,name:"Evmos Testnet",network:"evmos-testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]},public:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}}})},326095:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fantom=void 0;const n=r(293300);t.fantom=(0,n.defineChain)({id:250,name:"Fantom",network:"fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.ankr.com/fantom"]},public:{http:["https://rpc.ankr.com/fantom"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://ftmscan.com"},default:{name:"FTMScan",url:"https://ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}})},448392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fantomSonicTestnet=void 0;const n=r(293300);t.fantomSonicTestnet=(0,n.defineChain)({id:64240,name:"Fantom Sonic Open Testnet",network:"fantom-sonic-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpcapi.sonic.fantom.network"]},public:{http:["https://rpcapi.sonic.fantom.network"]}},blockExplorers:{default:{name:"Fantom Sonic Open Testnet Explorer",url:"https://public-sonic.fantom.network"}},testnet:!0})},632804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fantomTestnet=void 0;const n=r(293300);t.fantomTestnet=(0,n.defineChain)({id:4002,name:"Fantom Testnet",network:"fantom-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]},public:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://testnet.ftmscan.com"},default:{name:"FTMScan",url:"https://testnet.ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}}})},949054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fibo=void 0;const n=r(293300);t.fibo=(0,n.defineChain)({id:12306,name:"Fibo Chain",network:"fibochain",nativeCurrency:{decimals:18,name:"fibo",symbol:"FIBO"},rpcUrls:{default:{http:["https://network.hzroc.art"]},public:{http:["https://network.hzroc.art"]}},blockExplorers:{default:{name:"FiboScan",url:"https://scan.fibochain.org"}}})},340819:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filecoin=void 0;const n=r(293300);t.filecoin=(0,n.defineChain)({id:314,name:"Filecoin Mainnet",network:"filecoin-mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]},public:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"},filscan:{name:"Filscan",url:"https://filscan.io"},filscout:{name:"Filscout",url:"https://filscout.io/en"},glif:{name:"Glif",url:"https://explorer.glif.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328594}}})},520703:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filecoinCalibration=void 0;const n=r(293300);t.filecoinCalibration=(0,n.defineChain)({id:314159,name:"Filecoin Calibration",network:"filecoin-calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]},public:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}}})},183783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filecoinHyperspace=void 0;const n=r(293300);t.filecoinHyperspace=(0,n.defineChain)({id:3141,name:"Filecoin Hyperspace",network:"filecoin-hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]},public:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"},filscan:{name:"Filscan",url:"https://hyperspace.filscan.io"}}})},567386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flare=void 0;const n=r(293300);t.flare=(0,n.defineChain)({id:14,name:"Flare Mainnet",network:"flare-mainnet",nativeCurrency:{decimals:18,name:"flare",symbol:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]},public:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network"}}})},5915:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flareTestnet=void 0;const n=r(293300);t.flareTestnet=(0,n.defineChain)({id:114,name:"Coston2",network:"coston2",nativeCurrency:{decimals:18,name:"coston2flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]},public:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network"}},testnet:!0})},494331:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.foundry=void 0;const n=r(293300);t.foundry=(0,n.defineChain)({id:31337,name:"Foundry",network:"foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}})},346777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fuse=void 0;const n=r(293300);t.fuse=(0,n.defineChain)({id:122,name:"Fuse",network:"fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]},public:{http:["https://rpc.fuse.io"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:16146628}}})},738425:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fuseSparknet=void 0;const n=r(293300);t.fuseSparknet=(0,n.defineChain)({id:123,name:"Fuse Sparknet",network:"fuse",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]},public:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io"}}})},804663:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gnosis=void 0;const n=r(293300);t.gnosis=(0,n.defineChain)({id:100,name:"Gnosis",network:"gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]},public:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{etherscan:{name:"Gnosisscan",url:"https://gnosisscan.io"},default:{name:"Gnosis Chain Explorer",url:"https://blockscout.com/xdai/mainnet"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}})},413643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gnosisChiado=void 0;const n=r(293300);t.gnosisChiado=(0,n.defineChain)({id:10200,name:"Gnosis Chiado",network:"chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]},public:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4967313}},testnet:!0})},536103:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gobi=void 0;const n=r(293300);t.gobi=(0,n.defineChain)({id:1663,name:"Horizen Gobi Testnet",network:"gobi",nativeCurrency:{decimals:18,name:"Test ZEN",symbol:"tZEN"},rpcUrls:{public:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]},default:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"Gobi Explorer",url:"https://gobi-explorer.horizen.io"}},contracts:{},testnet:!0})},380482:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.goerli=void 0;const n=r(293300);t.goerli=(0,n.defineChain)({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0})},7781:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.haqqMainnet=void 0;const n=r(293300);t.haqqMainnet=(0,n.defineChain)({id:11235,name:"HAQQ Mainnet",network:"haqq-mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]},public:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network"}}})},463180:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.haqqTestedge2=void 0;const n=r(293300);t.haqqTestedge2=(0,n.defineChain)({id:54211,name:"HAQQ Testedge 2",network:"haqq-testedge-2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]},public:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network"}}})},531828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hardhat=void 0;const n=r(293300);t.hardhat=(0,n.defineChain)({id:31337,name:"Hardhat",network:"hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"]}}})},349006:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.harmonyOne=void 0;const n=r(293300);t.harmonyOne=(0,n.defineChain)({id:16666e5,name:"Harmony One",network:"harmony",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{public:{http:["https://rpc.ankr.com/harmony"]},default:{http:["https://rpc.ankr.com/harmony"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}})},107137:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.holesky=void 0;const n=r(293300);t.holesky=(0,n.defineChain)({id:17e3,network:"holesky",name:"Holesky",nativeCurrency:{name:"Holesky Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky.publicnode.com"]},public:{http:["https://ethereum-holesky.publicnode.com"]}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:77}},testnet:!0})},729735:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iotex=void 0;const n=r(293300);t.iotex=(0,n.defineChain)({id:4689,name:"IoTeX",network:"iotex",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]},public:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}}})},816252:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iotexTestnet=void 0;const n=r(293300);t.iotexTestnet=(0,n.defineChain)({id:4690,name:"IoTeX Testnet",network:"iotex-testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]},public:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}}})},240031:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jbc=void 0;const n=r(293300);t.jbc=(0,n.defineChain)({id:8899,name:"JIBCHAIN L1",network:"jbc",nativeCurrency:{name:"JBC",symbol:"JBC",decimals:18},rpcUrls:{default:{http:["https://rpc-l1.jibchain.net"]},public:{http:["https://rpc-l1.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-l1.jibchain.net"}},contracts:{multicall3:{address:"0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC",blockCreated:2299048}},testnet:!1})},439080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.karura=void 0;const n=r(293300);t.karura=(0,n.defineChain)({id:686,name:"Karura",network:"karura",nativeCurrency:{name:"Karura",symbol:"KAR",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]},default:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]}},blockExplorers:{default:{name:"Karura Blockscout",url:"https://blockscout.karura.network"}},testnet:!1})},261677:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kava=void 0;const n=r(293300);t.kava=(0,n.defineChain)({id:2222,name:"Kava EVM",network:"kava-mainnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{public:{http:["https://evm.kava.io"]},default:{http:["https://evm.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Explorer",url:"https://kavascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3661165}},testnet:!1})},309254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kavaTestnet=void 0;const n=r(293300);t.kavaTestnet=(0,n.defineChain)({id:2221,name:"Kava EVM Testnet",network:"kava-testnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{public:{http:["https://evm.testnet.kava.io"]},default:{http:["https://evm.testnet.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Testnet Explorer",url:"https://testnet.kavascan.com/"}},contracts:{multicall3:{address:"0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6",blockCreated:7242179}},testnet:!0})},930059:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.klaytn=void 0;const n=r(293300);t.klaytn=(0,n.defineChain)({id:8217,name:"Klaytn",network:"klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-cypress.klaytn.net"]},public:{http:["https://public-en-cypress.klaytn.net"]}},blockExplorers:{etherscan:{name:"KlaytnScope",url:"https://scope.klaytn.com"},default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}})},782576:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.klaytnBaobab=void 0;const n=r(293300);t.klaytnBaobab=(0,n.defineChain)({id:1001,name:"Klaytn Baobab Testnet",network:"klaytn-baobab",nativeCurrency:{decimals:18,name:"Baobab Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-baobab.klaytn.net"]},public:{http:["https://public-en-baobab.klaytn.net"]}},blockExplorers:{etherscan:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"},default:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0})},212402:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kroma=void 0;const n=r(293300);t.kroma=(0,n.defineChain)({id:255,network:"kroma",name:"Kroma",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.kroma.network"]},public:{http:["https://api.kroma.network"]}},blockExplorers:{default:{name:"Kroma Explorer",url:"https://blockscout.kroma.network"}},testnet:!1})},536049:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kromaSepolia=void 0;const n=r(293300);t.kromaSepolia=(0,n.defineChain)({id:2358,network:"kroma-sepolia",name:"Kroma Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.sepolia.kroma.network"]},public:{http:["https://api.sepolia.kroma.network"]}},blockExplorers:{default:{name:"Kroma Sepolia Explorer",url:"https://blockscout.sepolia.kroma.network"}},testnet:!0})},34295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.linea=void 0;const n=r(293300);t.linea=(0,n.defineChain)({id:59144,name:"Linea Mainnet",network:"linea-mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-mainnet.infura.io/v3"],webSocket:["wss://linea-mainnet.infura.io/ws/v3"]},default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.linea.build"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42}},testnet:!1})},293068:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineaTestnet=void 0;const n=r(293300);t.lineaTestnet=(0,n.defineChain)({id:59140,name:"Linea Goerli Testnet",network:"linea-testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-goerli.infura.io/v3"],webSocket:["wss://linea-goerli.infura.io/ws/v3"]},default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]},public:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build"},etherscan:{name:"Etherscan",url:"https://goerli.lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.goerli.linea.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0})},357299:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localhost=void 0;const n=r(293300);t.localhost=(0,n.defineChain)({id:1337,name:"Localhost",network:"localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"]}}})},507496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lukso=void 0;const n=r(293300);t.lukso=(0,n.defineChain)({id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]},public:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network"}}})},170662:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mainnet=void 0;const n=r(293300);t.mainnet=(0,n.defineChain)({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},411726:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mandala=void 0;const n=r(293300);t.mandala=(0,n.defineChain)({id:595,name:"Mandala TC9",network:"mandala",nativeCurrency:{name:"Mandala",symbol:"mACA",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]},default:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]}},blockExplorers:{default:{name:"Mandala Blockscout",url:"https://blockscout.mandala.aca-staging.network"}},testnet:!0})},371049:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.manta=void 0;const n=r(293300);t.manta=(0,n.defineChain)({id:169,name:"Manta Pacific Mainnet",network:"manta",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.manta.network/http"]},public:{http:["https://pacific-rpc.manta.network/http"]}},blockExplorers:{etherscan:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network"},default:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:332890}}})},362730:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mantaTestnet=void 0;const n=r(293300);t.mantaTestnet=(0,n.defineChain)({id:3441005,name:"Manta Pacific Testnet",network:"manta-testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://manta-testnet.calderachain.xyz/http"]},public:{http:["https://manta-testnet.calderachain.xyz/http"]}},blockExplorers:{etherscan:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network"},default:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network"}},contracts:{multicall3:{address:"0x211B1643b95Fe76f11eD8880EE810ABD9A4cf56C",blockCreated:419915}},testnet:!0})},713719:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mantle=void 0;const n=r(293300);t.mantle=(0,n.defineChain)({id:5e3,name:"Mantle",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]},public:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"},default:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}})},349900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mantleTestnet=void 0;const n=r(293300);t.mantleTestnet=(0,n.defineChain)({id:5001,name:"Mantle Testnet",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.testnet.mantle.xyz"]},public:{http:["https://rpc.testnet.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz"},default:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz"}},testnet:!0})},471391:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.meter=void 0;const n=r(293300);t.meter=(0,n.defineChain)({id:82,name:"Meter",network:"meter",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpc.meter.io"]},public:{http:["https://rpc.meter.io"]}},blockExplorers:{default:{name:"MeterScan",url:"https://scan.meter.io"}}})},123092:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.meterTestnet=void 0;const n=r(293300);t.meterTestnet=(0,n.defineChain)({id:83,name:"Meter Testnet",network:"meter-testnet",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpctest.meter.io"]},public:{http:["https://rpctest.meter.io"]}},blockExplorers:{default:{name:"MeterTestnetScan",url:"https://scan-warringstakes.meter.io"}}})},271788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.metis=void 0;const n=r(293300);t.metis=(0,n.defineChain)({id:1088,name:"Metis",network:"andromeda",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://andromeda.metis.io/?owner=1088"]},public:{http:["https://andromeda.metis.io/?owner=1088"]}},blockExplorers:{default:{name:"Andromeda Explorer",url:"https://andromeda-explorer.metis.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}})},173254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.metisGoerli=void 0;const n=r(293300);t.metisGoerli=(0,n.defineChain)({id:599,name:"Metis Goerli",network:"metis-goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]},public:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}}})},375018:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mev=void 0;const n=r(293300);t.mev=(0,n.defineChain)({id:7518,network:"MEVerse",name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]},public:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:86881340}}})},706827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mevTestnet=void 0;const n=r(293300);t.mevTestnet=(0,n.defineChain)({id:4759,network:"MEVerse Testnet",name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]},public:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:64371115}},testnet:!0})},339520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.modeTestnet=void 0;const n=r(293300);t.modeTestnet=(0,n.defineChain)({id:919,name:"Mode Testnet",network:"mode-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.mode.network"]},public:{http:["https://sepolia.mode.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.mode.network"}},contracts:{multicall3:{address:"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF",blockCreated:3019007}},testnet:!0})},708170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moonbaseAlpha=void 0;const n=r(293300);t.moonbaseAlpha=(0,n.defineChain)({id:1287,name:"Moonbase Alpha",network:"moonbase-alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]},public:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonbase.moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0})},647054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moonbeam=void 0;const n=r(293300);t.moonbeam=(0,n.defineChain)({id:1284,name:"Moonbeam",network:"moonbeam",nativeCurrency:{decimals:18,name:"GLMR",symbol:"GLMR"},rpcUrls:{public:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]},default:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1})},92283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moonbeamDev=void 0;const n=r(293300);t.moonbeamDev=(0,n.defineChain)({id:1281,name:"Moonbeam Development Node",network:"development",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]},public:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]}}})},581139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moonriver=void 0;const n=r(293300);t.moonriver=(0,n.defineChain)({id:1285,name:"Moonriver",network:"moonriver",nativeCurrency:{decimals:18,name:"MOVR",symbol:"MOVR"},rpcUrls:{public:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]},default:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonriver.moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1})},753274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.neonDevnet=void 0;const n=r(293300);t.neonDevnet=(0,n.defineChain)({id:245022926,network:"neonDevnet",name:"Neon EVM DevNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://devnet.neonevm.org"]},public:{http:["https://devnet.neonevm.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://devnet.neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:205206112}},testnet:!0})},992618:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.neonMainnet=void 0;const n=r(293300);t.neonMainnet=(0,n.defineChain)({id:245022934,network:"neonMainnet",name:"Neon EVM MainNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://neon-proxy-mainnet.solana.p2p.org"]},public:{http:["https://neon-proxy-mainnet.solana.p2p.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://neonscan.org"}},contracts:{},testnet:!1})},367634:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nexi=void 0;const n=r(293300);t.nexi=(0,n.defineChain)({id:4242,name:"Nexi",network:"nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]},public:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{etherscan:{name:"NexiScan",url:"https://www.nexiscan.com"},default:{name:"NexiScan",url:"https://www.nexiscan.com"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:25770160}}})},277001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nexilix=void 0;const n=r(293300);t.nexilix=(0,n.defineChain)({id:240,name:"Nexilix Smart Chain",network:"nexilix",nativeCurrency:{decimals:18,name:"Nexilix",symbol:"NEXILIX"},rpcUrls:{default:{http:["https://rpcurl.pos.nexilix.com"]},public:{http:["https://rpcurl.pos.nexilix.com"]}},blockExplorers:{etherscan:{name:"NexilixScan",url:"https://scan.nexilix.com"},default:{name:"NexilixScan",url:"https://scan.nexilix.com"}},contracts:{multicall3:{address:"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244",blockCreated:74448}}})},640128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oasisTestnet=void 0;const n=r(293300);t.oasisTestnet=(0,n.defineChain)({id:4090,network:"oasis-testnet",name:"Oasis Testnet",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.oasis.bahamutchain.com"]},public:{http:["https://rpc1.oasis.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://oasis.ftnscan.com"}},testnet:!0})},147123:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oasys=void 0;const n=r(293300);t.oasys=(0,n.defineChain)({id:248,name:"Oasys",network:"oasys",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.oasys.games"]},public:{http:["https://rpc.mainnet.oasys.games"]}},blockExplorers:{default:{name:"OasysScan",url:"https://scan.oasys.games"}}})},379501:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.okc=void 0;const n=r(293300);t.okc=(0,n.defineChain)({id:66,name:"OKC",network:"okc",nativeCurrency:{decimals:18,name:"OKT",symbol:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]},public:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10364792}}})},288565:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opBNB=void 0;const n=r(293300);t.opBNB=(0,n.defineChain)({id:204,name:"opBNB",network:"opBNB Mainnet",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{public:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]},default:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://mainnet.opbnbscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:512881}}})},267790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opBNBTestnet=void 0;const n=r(293300);t.opBNBTestnet=(0,n.defineChain)({id:5611,name:"opBNB Testnet",network:"opBNB Testnet",nativeCurrency:{decimals:18,name:"tBNB",symbol:"tBNB"},rpcUrls:{public:{http:["https://opbnb-testnet-rpc.bnbchain.org"]},default:{http:["https://opbnb-testnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://testnet.opbnbscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3705108}},testnet:!0})},606786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optimism=void 0;const n=r(293300),i=r(445343);t.optimism=(0,n.defineChain)({id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},{formatters:i.formattersOptimism})},690744:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optimismGoerli=void 0;const n=r(293300),i=r(445343);t.optimismGoerli=(0,n.defineChain)({id:420,name:"Optimism Goerli",network:"optimism-goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-goerli.g.alchemy.com/v2"],webSocket:["wss://opt-goerli.g.alchemy.com/v2"]},infura:{http:["https://optimism-goerli.infura.io/v3"],webSocket:["wss://optimism-goerli.infura.io/ws/v3"]},default:{http:["https://goerli.optimism.io"]},public:{http:["https://goerli.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"},default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461}},testnet:!0},{formatters:i.formattersOptimism})},264737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optimismSepolia=void 0;const n=r(293300),i=r(445343);t.optimismSepolia=(0,n.defineChain)({id:11155420,name:"Optimism Sepolia",network:"optimism-sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-sepolia.g.alchemy.com/v2"],webSocket:["wss://opt-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia.optimism.io"]},public:{http:["https://sepolia.optimism.io"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"},default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204}},testnet:!0},{formatters:i.formattersOptimism})},700235:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pgn=void 0;const n=r(293300),i=r(445343);t.pgn=(0,n.defineChain)({id:424,network:"pgn",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.publicgoods.network"]},public:{http:["https://rpc.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Explorer",url:"https://explorer.publicgoods.network"},blocksout:{name:"PGN Explorer",url:"https://explorer.publicgoods.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3380209}}},{formatters:i.formattersOptimism})},767272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pgnTestnet=void 0;const n=r(293300),i=r(445343);t.pgnTestnet=(0,n.defineChain)({id:58008,network:"pgn-testnet",name:"PGN ",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.publicgoods.network"]},public:{http:["https://sepolia.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network"},blocksout:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3754925}},testnet:!0},{formatters:i.formattersOptimism})},490495:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.plinga=void 0;const n=r(293300);t.plinga=(0,n.defineChain)({id:242,name:"Plinga",network:"plinga",nativeCurrency:{name:"Plinga",symbol:"PLINGA",decimals:18},rpcUrls:{default:{http:["https://rpcurl.mainnet.plgchain.com"]},public:{http:["https://rpcurl.mainnet.plgchain.com"]}},blockExplorers:{default:{name:"Plgscan",url:"https://www.plgscan.com"}},contracts:{multicall3:{address:"0x0989576160f2e7092908BB9479631b901060b6e4",blockCreated:204489}}})},453672:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygon=void 0;const n=r(293300);t.polygon=(0,n.defineChain)({id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}})},226227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygonMumbai=void 0;const n=r(293300);t.polygonMumbai=(0,n.defineChain)({id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/polygon_mumbai"]},public:{http:["https://rpc.ankr.com/polygon_mumbai"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0})},187269:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygonZkEvm=void 0;const n=r(293300);t.polygonZkEvm=(0,n.defineChain)({id:1101,name:"Polygon zkEVM",network:"polygon-zkevm",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]},public:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}})},87806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygonZkEvmTestnet=void 0;const n=r(293300);t.polygonZkEvmTestnet=(0,n.defineChain)({id:1442,name:"Polygon zkEVM Testnet",network:"polygon-zkevm-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]},public:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://explorer.public.zkevm-test.net"},default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}})},446374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pulsechain=void 0;const n=r(293300);t.pulsechain=(0,n.defineChain)({id:369,network:"pulsechain",name:"PulseChain",nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]},public:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.pulsechain.com"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},586964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pulsechainV4=void 0;const n=r(293300);t.pulsechainV4=(0,n.defineChain)({id:943,network:"pulsechainV4",name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]},public:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},492493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.qMainnet=void 0;const n=r(293300);t.qMainnet=(0,n.defineChain)({id:35441,name:"Q Mainnet",network:"q-mainnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.q.org"]},public:{http:["https://rpc.q.org"]}},blockExplorers:{default:{name:"Q Mainnet Explorer",url:"https://explorer.q.org"}}})},258570:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.qTestnet=void 0;const n=r(293300);t.qTestnet=(0,n.defineChain)({id:35443,name:"Q Testnet",network:"q-testnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.qtestnet.org"]},public:{http:["https://rpc.qtestnet.org"]}},blockExplorers:{default:{name:"Q Testnet Explorer",url:"https://explorer.qtestnet.org"}},testnet:!0})},217714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rollux=void 0;const n=r(293300);t.rollux=(0,n.defineChain)({id:570,name:"Rollux Mainnet",network:"rollux",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.rollux.com"],webSocket:["wss://rpc.rollux.com/wss"]},public:{http:["https://rollux.public-rpc.com"]}},blockExplorers:{default:{name:"RolluxExplorer",url:"https://explorer.rollux.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:119222}}})},524659:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rolluxTestnet=void 0;const n=r(293300);t.rolluxTestnet=(0,n.defineChain)({id:57e3,name:"Rollux Testnet",network:"rollux-testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc-tanenbaum.rollux.com/"],webSocket:["wss://rpc-tanenbaum.rollux.com/wss"]},public:{http:["https://rpc-tanenbaum.rollux.com/"]}},blockExplorers:{default:{name:"RolluxTestnetExplorer",url:"https://rollux.tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1813675}}})},585242:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ronin=void 0;const n=r(293300);t.ronin=(0,n.defineChain)({id:2020,name:"Ronin",network:"ronin",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://api.roninchain.com/rpc"]},public:{http:["https://api.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Ronin Explorer",url:"https://app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:26023535}}})},793848:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rootstock=void 0;const n=r(293300);t.rootstock=(0,n.defineChain)({id:30,name:"Rootstock Mainnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"RBTC"},rpcUrls:{public:{http:["https://public-node.rsk.co"]},default:{http:["https://public-node.rsk.co"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://rootstock.blockscout.com"},default:{name:"RSK Explorer",url:"https://explorer.rsk.co"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4249540}}})},652377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saigon=void 0;const n=r(293300);t.saigon=(0,n.defineChain)({id:2021,name:"Saigon Testnet",network:"saigon",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://saigon-testnet.roninchain.com/rpc"]},public:{http:["https://saigon-testnet.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Saigon Explorer",url:"https://saigon-explorer.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18736871}},testnet:!0})},102282:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sapphire=void 0;const n=r(293300);t.sapphire=(0,n.defineChain)({id:23294,name:"Oasis Sapphire",network:"sapphire",nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},rpcUrls:{default:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]},public:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]}},blockExplorers:{default:{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:734531}}})},251051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sapphireTestnet=void 0;const n=r(293300);t.sapphireTestnet=(0,n.defineChain)({id:23295,name:"Oasis Sapphire Testnet",network:"sapphire-testnet",nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},rpcUrls:{default:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]},public:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev"}},testnet:!0})},476229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scroll=void 0;const n=r(293300);t.scroll=(0,n.defineChain)({id:534352,name:"Scroll",network:"scroll",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]},public:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com"},blockscout:{name:"Blockscout",url:"https://blockscout.scroll.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1})},457436:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scrollSepolia=void 0;const n=r(293300);t.scrollSepolia=(0,n.defineChain)({id:534351,name:"Scroll Sepolia",network:"scroll-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"]},public:{http:["https://sepolia-rpc.scroll.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.scroll.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9473}},testnet:!0})},129918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scrollTestnet=void 0;const n=r(293300);t.scrollTestnet=(0,n.defineChain)({id:534353,name:"Scroll Testnet",network:"scroll-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]},public:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.scroll.io"}},testnet:!0})},732787:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sepolia=void 0;const n=r(293300);t.sepolia=(0,n.defineChain)({id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x21B000Fd62a880b2125A61e36a284BB757b76025",blockCreated:3914906}},testnet:!0})},357819:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shardeumSphinx=void 0;const n=r(293300);t.shardeumSphinx=(0,n.defineChain)({id:8082,name:"Shardeum Sphinx",network:"shmSphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]},public:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0})},255882:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shibarium=void 0;const n=r(293300);t.shibarium=(0,n.defineChain)({id:109,name:"Shibarium",network:"shibarium",nativeCurrency:{name:"Bone",symbol:"BONE",decimals:18},rpcUrls:{default:{http:["https://rpc.shibrpc.com"]},public:{http:["https://rpc.shibrpc.com"]}},blockExplorers:{etherscan:{name:"Blockscout",url:"https://shibariumscan.io"},default:{name:"Blockscout",url:"https://shibariumscan.io"}},contracts:{multicall3:{address:"0x864Bf681ADD6052395188A89101A1B37d3B4C961",blockCreated:265900}}})},398225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimmer=void 0;const n=r(293300);t.shimmer=(0,n.defineChain)({id:148,name:"Shimmer",network:"shimmer",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{public:{http:["https://json-rpc.evm.shimmer.network"]},default:{http:["https://json-rpc.evm.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.shimmer.network"}}})},561682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimmerTestnet=void 0;const n=r(293300);t.shimmerTestnet=(0,n.defineChain)({id:1073,name:"Shimmer Testnet",network:"shimmer-testnet",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{public:{http:["https://json-rpc.evm.testnet.shimmer.network"]},default:{http:["https://json-rpc.evm.testnet.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.testnet.shimmer.network"}},testnet:!0})},701855:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleBlockBrawlers=void 0;const n=r(293300);t.skaleBlockBrawlers=(0,n.defineChain)({id:391845894,name:"SKALE | Block Brawlers",network:"skale-brawl",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]},public:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}})},271536:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleCalypso=void 0;const n=r(293300);t.skaleCalypso=(0,n.defineChain)({id:1564830818,name:"SKALE | Calypso NFT Hub",network:"skale-calypso",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]},public:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3107626}}})},767597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleCalypsoTestnet=void 0;const n=r(293300);t.skaleCalypsoTestnet=(0,n.defineChain)({id:344106930,name:"SKALE | Calypso NFT Hub Testnet",network:"skale-calypso-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-utter-unripe-menkar"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-utter-unripe-menkar"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2131424}},testnet:!0})},379272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleChaosTestnet=void 0;const n=r(293300);t.skaleChaosTestnet=(0,n.defineChain)({id:1351057110,name:"SKALE | Chaos Testnet",network:"skale-chaos-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-fast-active-bellatrix"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-fast-active-bellatrix"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1192202}},testnet:!0})},650417:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleCryptoBlades=void 0;const n=r(293300);t.skaleCryptoBlades=(0,n.defineChain)({id:1026062157,name:"SKALE | CryptoBlades",network:"skale-cryptoblades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]},public:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}})},671514:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleCryptoColosseum=void 0;const n=r(293300);t.skaleCryptoColosseum=(0,n.defineChain)({id:2046399126,name:"SKALE | Crypto Colosseum",network:"skale-crypto-coloseeum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]},public:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}})},104501:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleEuropa=void 0;const n=r(293300);t.skaleEuropa=(0,n.defineChain)({id:2046399126,name:"SKALE | Europa Liquidity Hub",network:"skale-europa",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]},public:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3113495}}})},166094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleEuropaTestnet=void 0;const n=r(293300);t.skaleEuropaTestnet=(0,n.defineChain)({id:476158412,name:"SKALE | Europa Liquidity Hub Testnet",network:"skale-europa-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-legal-crazy-castor"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-legal-crazy-castor"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2071911}},testnet:!0})},114752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleExorde=void 0;const n=r(293300);t.skaleExorde=(0,n.defineChain)({id:2139927552,name:"SKALE | Exorde",network:"skale-exorde",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]},public:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}})},66862:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleHumanProtocol=void 0;const n=r(293300);t.skaleHumanProtocol=(0,n.defineChain)({id:1273227453,name:"SKALE | Human Protocol",network:"skale-human-protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]},public:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}})},674168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleNebula=void 0;const n=r(293300);t.skaleNebula=(0,n.defineChain)({id:1482601649,name:"SKALE | Nebula Gaming Hub",network:"skale-nebula",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]},public:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2372986}}})},388597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleNebulaTestnet=void 0;const n=r(293300);t.skaleNebulaTestnet=(0,n.defineChain)({id:503129905,name:"SKALE | Nebula Gaming Hub Testnet",network:"skale-nebula-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2205882}},testnet:!0})},223911:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleRazor=void 0;const n=r(293300);t.skaleRazor=(0,n.defineChain)({id:278611351,name:"SKALE | Razor Network",network:"skale-razor",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]},public:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}})},992321:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleTitan=void 0;const n=r(293300);t.skaleTitan=(0,n.defineChain)({id:1350216234,name:"SKALE | Titan Community Hub",network:"skale-titan",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]},public:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2076458}}})},81186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleTitanTestnet=void 0;const n=r(293300);t.skaleTitanTestnet=(0,n.defineChain)({id:1517929550,name:"SKALE | Titan Community Hub Testnet",network:"skale-titan-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-aware-chief-gianfar"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-aware-chief-gianfar"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2085155}},testnet:!0})},890022:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.songbird=void 0;const n=r(293300);t.songbird=(0,n.defineChain)({id:19,name:"Songbird Mainnet",network:"songbird-mainnet",nativeCurrency:{decimals:18,name:"songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]},public:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network"}}})},598879:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.songbirdTestnet=void 0;const n=r(293300);t.songbirdTestnet=(0,n.defineChain)({id:16,name:"Coston",network:"coston",nativeCurrency:{decimals:18,name:"costonflare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]},public:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network"}},testnet:!0})},247616:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spicy=void 0;const n=r(293300);t.spicy=(0,n.defineChain)({id:88882,name:"Chiliz Spicy Testnet",network:"chiliz-spicy-Testnet",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy.publicnode.com"]},public:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"http://spicy-explorer.chiliz.com"}},testnet:!0})},853502:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syscoin=void 0;const n=r(293300);t.syscoin=(0,n.defineChain)({id:57,name:"Syscoin Mainnet",network:"syscoin",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]},public:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:287139}}})},377463:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syscoinTestnet=void 0;const n=r(293300);t.syscoinTestnet=(0,n.defineChain)({id:5700,name:"Syscoin Tanenbaum Testnet",network:"syscoin-testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]},public:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]}},blockExplorers:{default:{name:"SyscoinTestnetExplorer",url:"https://tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:271288}}})},61220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taikoJolnir=void 0;const n=r(293300);t.taikoJolnir=(0,n.defineChain)({id:167007,name:"Taiko Jolnir (Alpha-5 Testnet)",network:"tko-jolnir",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.jolnir.taiko.xyz"]},public:{http:["https://rpc.jolnir.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.jolnir.taiko.xyz"}}})},610126:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taikoTestnetSepolia=void 0;const n=r(293300);t.taikoTestnetSepolia=(0,n.defineChain)({id:167005,name:"Taiko (Alpha-3 Testnet)",network:"taiko-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.test.taiko.xyz"]},public:{http:["https://rpc.test.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.test.taiko.xyz"}}})},936561:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taraxa=void 0;const n=r(293300);t.taraxa=(0,n.defineChain)({id:841,name:"Taraxa Mainnet",network:"taraxa",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]},public:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}})},303922:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taraxaTestnet=void 0;const n=r(293300);t.taraxaTestnet=(0,n.defineChain)({id:842,name:"Taraxa Testnet",network:"taraxa-testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]},public:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0})},580313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.telos=void 0;const n=r(293300);t.telos=(0,n.defineChain)({id:40,name:"Telos",network:"telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://mainnet.telos.net/evm"]},public:{http:["https://mainnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}})},641338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.telosTestnet=void 0;const n=r(293300);t.telosTestnet=(0,n.defineChain)({id:41,name:"Telos",network:"telosTestnet",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://testnet.telos.net/evm"]},public:{http:["https://testnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0})},976576:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tenet=void 0;const n=r(293300);t.tenet=(0,n.defineChain)({id:1559,name:"Tenet",network:"tenet-mainnet",nativeCurrency:{name:"TENET",symbol:"TENET",decimals:18},rpcUrls:{public:{http:["https://rpc.tenet.org"]},default:{http:["https://rpc.tenet.org"]}},blockExplorers:{default:{name:"TenetScan Mainnet",url:"https://tenetscan.io"}},testnet:!1})},208389:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.thunderTestnet=void 0;const n=r(293300);t.thunderTestnet=(0,n.defineChain)({id:997,name:"5ireChain Thunder Testnet",network:"5ireChain",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.5ire.network"]},public:{http:["https://rpc-testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Explorer",url:"https://explorer.5ire.network"}},testnet:!0})},884672:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vechain=void 0;const n=r(293300);t.vechain=(0,n.defineChain)({id:100009,name:"Vechain",network:"vechain",nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},rpcUrls:{default:{http:["https://mainnet.vechain.org"]},public:{http:["https://mainnet.vechain.org"]}},blockExplorers:{default:{name:"Vechain Explorer",url:"https://explore.vechain.org"},vechainStats:{name:"Vechain Stats",url:"https://vechainstats.com"}}})},778087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wanchain=void 0;const n=r(293300);t.wanchain=(0,n.defineChain)({id:888,name:"Wanchain",network:"wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]},public:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{etherscan:{name:"WanScan",url:"https://wanscan.org"},default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:25312390}}})},812380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wanchainTestnet=void 0;const n=r(293300);t.wanchainTestnet=(0,n.defineChain)({id:999,name:"Wanchain Testnet",network:"wanchainTestnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]},public:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{etherscan:{name:"WanScanTest",url:"https://wanscan.org"},default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:24743448}},testnet:!0})},49264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wemix=void 0;const n=r(293300);t.wemix=(0,n.defineChain)({id:1111,name:"WEMIX",network:"wemix-mainnet",nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},rpcUrls:{default:{http:["https://api.wemix.com"]},public:{http:["https://api.wemix.com"]}},blockExplorers:{etherscan:{name:"wemixExplorer",url:"https://explorer.wemix.com"},default:{name:"wemixExplorer",url:"https://explorer.wemix.com"}}})},197677:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wemixTestnet=void 0;const n=r(293300);t.wemixTestnet=(0,n.defineChain)({id:1112,name:"WEMIX Testnet",network:"wemix-testnet",nativeCurrency:{name:"WEMIX",symbol:"tWEMIX",decimals:18},rpcUrls:{default:{http:["https://api.test.wemix.com"]},public:{http:["https://api.test.wemix.com"]}},blockExplorers:{etherscan:{name:"wemixExplorer",url:"https://testnet.wemixscan.com"},default:{name:"wemixExplorer",url:"https://testnet.wemixscan.com"}},testnet:!0})},266523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xdc=void 0;const n=r(293300);t.xdc=(0,n.defineChain)({id:50,name:"XinFin Network",network:"xdc",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xinfin.network"]},public:{http:["https://rpc.xinfin.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.xinfin.network"},default:{name:"Blocksscan",url:"https://xdc.blocksscan.io"}}})},68440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xdcTestnet=void 0;const n=r(293300);t.xdcTestnet=(0,n.defineChain)({id:51,name:"Apothem Network",network:"xdc-testnet",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]},public:{http:["https://erpc.apothem.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.apothem.network"},default:{name:"Blocksscan",url:"https://apothem.blocksscan.io"}}})},58173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zetachainAthensTestnet=void 0;const n=r(293300);t.zetachainAthensTestnet=(0,n.defineChain)({id:7001,name:"ZetaChain Athens Testnet",network:"zetachain-athens-testnet",nativeCurrency:{decimals:18,name:"Zeta",symbol:"aZETA"},rpcUrls:{public:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]},default:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]}},blockExplorers:{default:{name:"ZetaScan",url:"https://athens3.explorer.zetachain.com"}},testnet:!0})},80708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zhejiang=void 0;const n=r(293300);t.zhejiang=(0,n.defineChain)({id:1337803,network:"zhejiang",name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]},public:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{beaconchain:{name:"Etherscan",url:"https://zhejiang.beaconcha.in"},blockscout:{name:"Blockscout",url:"https://blockscout.com/eth/zhejiang-testnet"},default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0})},282996:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zilliqa=void 0;const n=r(293300);t.zilliqa=(0,n.defineChain)({id:32769,name:"Zilliqa",network:"zilliqa",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://api.zilliqa.com"]},public:{http:["https://api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.zilliqa.com"}},testnet:!1})},104009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zilliqaTestnet=void 0;const n=r(293300);t.zilliqaTestnet=(0,n.defineChain)({id:33101,name:"Zilliqa Testnet",network:"zilliqa-testnet",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://dev-api.zilliqa.com"]},public:{http:["https://dev-api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.testnet.zilliqa.com"}},testnet:!0})},681129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkFair=void 0;const n=r(293300);t.zkFair=(0,n.defineChain)({id:42766,name:"ZKFair Mainnet",network:"zkfair-mainnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://rpc.zkfair.io"]},public:{http:["https://rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://scan.zkfair.io"}},testnet:!1})},234026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkFairTestnet=void 0;const n=r(293300);t.zkFairTestnet=(0,n.defineChain)({id:43851,name:"ZKFair Testnet",network:"zkfair-testnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://testnet-rpc.zkfair.io"]},public:{http:["https://testnet-rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://testnet-scan.zkfair.io"}},testnet:!0})},439864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkSync=void 0;const n=r(293300),i=r(367141),o=r(149401);t.zkSync=(0,n.defineChain)({id:324,name:"zkSync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]},public:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}}},{serializers:o.serializersZkSync,formatters:i.formattersZkSync})},476272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkSyncSepoliaTestnet=void 0;const n=r(293300),i=r(367141),o=r(149401);t.zkSyncSepoliaTestnet=(0,n.defineChain)({id:300,name:"zkSync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]},public:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://sepolia.explorer.zksync.io/"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0},{serializers:o.serializersZkSync,formatters:i.formattersZkSync})},502005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkSyncTestnet=void 0;const n=r(293300),i=r(367141),o=r(149401);t.zkSyncTestnet=(0,n.defineChain)({id:280,name:"zkSync Era Testnet",network:"zksync-era-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]},public:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://goerli.explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0},{serializers:o.serializersZkSync,formatters:i.formattersZkSync})},709442:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zora=void 0;const n=r(293300),i=r(445343);t.zora=(0,n.defineChain)({id:7777777,name:"Zora",network:"zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]},public:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882}}},{formatters:i.formattersOptimism})},296033:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zoraSepolia=void 0;const n=r(293300),i=r(445343);t.zoraSepolia=(0,n.defineChain)({id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]},public:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83160}},testnet:!0},{formatters:i.formattersOptimism})},527139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zoraTestnet=void 0;const n=r(293300),i=r(445343);t.zoraTestnet=(0,n.defineChain)({id:999,name:"Zora Goerli Testnet",network:"zora-testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]},public:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123}},testnet:!0},{formatters:i.formattersOptimism})},610971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fantomSonicTestnet=t.fantom=t.ektaTestnet=t.ekta=t.evmosTestnet=t.evmos=t.eosTestnet=t.eos=t.edgewareTestnet=t.edgeware=t.dogechain=t.dfk=t.crossbell=t.cronosTestnet=t.cronos=t.coreDao=t.confluxESpaceTestnet=t.confluxESpace=t.classic=t.celoCannoli=t.chiliz=t.celoAlfajores=t.celo=t.canto=t.bxnTestnet=t.bxn=t.bscTestnet=t.bsc=t.bronosTestnet=t.bronos=t.boba=t.bitTorrentTestnet=t.bitTorrent=t.bearNetworkChainTestnet=t.bearNetworkChainMainnet=t.baseSepolia=t.baseGoerli=t.base=t.bahamut=t.avalancheFuji=t.avalanche=t.auroraTestnet=t.aurora=t.astarZkatana=t.arbitrumSepolia=t.astar=t.arbitrumNova=t.arbitrumGoerli=t.arbitrum=t.acala=void 0,t.moonriver=t.moonbeamDev=t.moonbeam=t.moonbaseAlpha=t.modeTestnet=t.mevTestnet=t.mev=t.metisGoerli=t.metis=t.meterTestnet=t.meter=t.mantleTestnet=t.mantle=t.mantaTestnet=t.manta=t.mandala=t.mainnet=t.lukso=t.localhost=t.lineaTestnet=t.linea=t.kromaSepolia=t.kroma=t.klaytnBaobab=t.klaytn=t.kavaTestnet=t.kava=t.holesky=t.haqqTestedge2=t.haqqMainnet=t.harmonyOne=t.hardhat=t.gnosisChiado=t.gnosis=t.goerli=t.gobi=t.karura=t.jbc=t.iotexTestnet=t.iotex=t.fuseSparknet=t.fuse=t.foundry=t.flareTestnet=t.flare=t.filecoinHyperspace=t.filecoinCalibration=t.filecoin=t.fibo=t.fantomTestnet=void 0,t.skaleTitan=t.skaleRazor=t.skaleNebulaTestnet=t.skaleNebula=t.skaleHumanProtocol=t.skaleExorde=t.skaleEuropaTestnet=t.skaleEuropa=t.skaleCryptoColosseum=t.skaleCryptoBlades=t.skaleChaosTestnet=t.skaleCalypsoTestnet=t.skaleCalypso=t.skaleBlockBrawlers=t.shimmerTestnet=t.shimmer=t.sepolia=t.scrollTestnet=t.scrollSepolia=t.scroll=t.sapphireTestnet=t.sapphire=t.saigon=t.rootstock=t.ronin=t.rolluxTestnet=t.rollux=t.qTestnet=t.qMainnet=t.pulsechainV4=t.pulsechain=t.polygonZkEvm=t.polygonZkEvmTestnet=t.polygonMumbai=t.polygon=t.plinga=t.pgnTestnet=t.pgn=t.opBNBTestnet=t.opBNB=t.optimismSepolia=t.optimismGoerli=t.optimism=t.okc=t.oasisTestnet=t.oasys=t.nexilix=t.nexi=t.neonMainnet=t.neonDevnet=void 0,t.zoraTestnet=t.zoraSepolia=t.zora=t.zilliqaTestnet=t.zilliqa=t.zetachainAthensTestnet=t.zkSyncSepoliaTestnet=t.zkSyncTestnet=t.zkSync=t.zkFairTestnet=t.zkFair=t.zhejiang=t.xdcTestnet=t.xdc=t.wemixTestnet=t.wemix=t.wanchainTestnet=t.wanchain=t.vechain=t.thunderTestnet=t.tenet=t.telosTestnet=t.telos=t.taraxaTestnet=t.taikoTestnetSepolia=t.taikoJolnir=t.taraxa=t.syscoinTestnet=t.syscoin=t.shibarium=t.shardeumSphinx=t.spicy=t.songbirdTestnet=t.songbird=t.skaleTitanTestnet=void 0;var n=r(144162);Object.defineProperty(t,"acala",{enumerable:!0,get:function(){return n.acala}});var i=r(879130);Object.defineProperty(t,"arbitrum",{enumerable:!0,get:function(){return i.arbitrum}});var o=r(245952);Object.defineProperty(t,"arbitrumGoerli",{enumerable:!0,get:function(){return o.arbitrumGoerli}});var a=r(296816);Object.defineProperty(t,"arbitrumNova",{enumerable:!0,get:function(){return a.arbitrumNova}});var s=r(682785);Object.defineProperty(t,"astar",{enumerable:!0,get:function(){return s.astar}});var c=r(809337);Object.defineProperty(t,"arbitrumSepolia",{enumerable:!0,get:function(){return c.arbitrumSepolia}});var u=r(615965);Object.defineProperty(t,"astarZkatana",{enumerable:!0,get:function(){return u.astarZkatana}});var l=r(893392);Object.defineProperty(t,"aurora",{enumerable:!0,get:function(){return l.aurora}});var d=r(888397);Object.defineProperty(t,"auroraTestnet",{enumerable:!0,get:function(){return d.auroraTestnet}});var f=r(71535);Object.defineProperty(t,"avalanche",{enumerable:!0,get:function(){return f.avalanche}});var h=r(212547);Object.defineProperty(t,"avalancheFuji",{enumerable:!0,get:function(){return h.avalancheFuji}});var p=r(226054);Object.defineProperty(t,"bahamut",{enumerable:!0,get:function(){return p.bahamut}});var g=r(817345);Object.defineProperty(t,"base",{enumerable:!0,get:function(){return g.base}});var m=r(152051);Object.defineProperty(t,"baseGoerli",{enumerable:!0,get:function(){return m.baseGoerli}});var y=r(582360);Object.defineProperty(t,"baseSepolia",{enumerable:!0,get:function(){return y.baseSepolia}});var b=r(480833);Object.defineProperty(t,"bearNetworkChainMainnet",{enumerable:!0,get:function(){return b.bearNetworkChainMainnet}});var v=r(539686);Object.defineProperty(t,"bearNetworkChainTestnet",{enumerable:!0,get:function(){return v.bearNetworkChainTestnet}});var w=r(791615);Object.defineProperty(t,"bitTorrent",{enumerable:!0,get:function(){return w.bitTorrent}});var A=r(960628);Object.defineProperty(t,"bitTorrentTestnet",{enumerable:!0,get:function(){return A.bitTorrentTestnet}});var C=r(290938);Object.defineProperty(t,"boba",{enumerable:!0,get:function(){return C.boba}});var E=r(377287);Object.defineProperty(t,"bronos",{enumerable:!0,get:function(){return E.bronos}});var x=r(727036);Object.defineProperty(t,"bronosTestnet",{enumerable:!0,get:function(){return x.bronosTestnet}});var S=r(484938);Object.defineProperty(t,"bsc",{enumerable:!0,get:function(){return S.bsc}});var I=r(60267);Object.defineProperty(t,"bscTestnet",{enumerable:!0,get:function(){return I.bscTestnet}});var k=r(175342);Object.defineProperty(t,"bxn",{enumerable:!0,get:function(){return k.bxn}});var _=r(13255);Object.defineProperty(t,"bxnTestnet",{enumerable:!0,get:function(){return _.bxnTestnet}});var T=r(424869);Object.defineProperty(t,"canto",{enumerable:!0,get:function(){return T.canto}});var M=r(192381);Object.defineProperty(t,"celo",{enumerable:!0,get:function(){return M.celo}});var P=r(485358);Object.defineProperty(t,"celoAlfajores",{enumerable:!0,get:function(){return P.celoAlfajores}});var j=r(275645);Object.defineProperty(t,"chiliz",{enumerable:!0,get:function(){return j.chiliz}});var D=r(89607);Object.defineProperty(t,"celoCannoli",{enumerable:!0,get:function(){return D.celoCannoli}});var O=r(701334);Object.defineProperty(t,"classic",{enumerable:!0,get:function(){return O.classic}});var B=r(672218);Object.defineProperty(t,"confluxESpace",{enumerable:!0,get:function(){return B.confluxESpace}});var N=r(353179);Object.defineProperty(t,"confluxESpaceTestnet",{enumerable:!0,get:function(){return N.confluxESpaceTestnet}});var R=r(911063);Object.defineProperty(t,"coreDao",{enumerable:!0,get:function(){return R.coreDao}});var L=r(26314);Object.defineProperty(t,"cronos",{enumerable:!0,get:function(){return L.cronos}});var F=r(986283);Object.defineProperty(t,"cronosTestnet",{enumerable:!0,get:function(){return F.cronosTestnet}});var U=r(413147);Object.defineProperty(t,"crossbell",{enumerable:!0,get:function(){return U.crossbell}});var z=r(56361);Object.defineProperty(t,"dfk",{enumerable:!0,get:function(){return z.dfk}});var H=r(919412);Object.defineProperty(t,"dogechain",{enumerable:!0,get:function(){return H.dogechain}});var V=r(281192);Object.defineProperty(t,"edgeware",{enumerable:!0,get:function(){return V.edgeware}});var K=r(357637);Object.defineProperty(t,"edgewareTestnet",{enumerable:!0,get:function(){return K.edgewareTestnet}});var G=r(545291);Object.defineProperty(t,"eos",{enumerable:!0,get:function(){return G.eos}});var q=r(321128);Object.defineProperty(t,"eosTestnet",{enumerable:!0,get:function(){return q.eosTestnet}});var Q=r(891438);Object.defineProperty(t,"evmos",{enumerable:!0,get:function(){return Q.evmos}});var W=r(69895);Object.defineProperty(t,"evmosTestnet",{enumerable:!0,get:function(){return W.evmosTestnet}});var J=r(338875);Object.defineProperty(t,"ekta",{enumerable:!0,get:function(){return J.ekta}});var Y=r(440568);Object.defineProperty(t,"ektaTestnet",{enumerable:!0,get:function(){return Y.ektaTestnet}});var Z=r(326095);Object.defineProperty(t,"fantom",{enumerable:!0,get:function(){return Z.fantom}});var $=r(448392);Object.defineProperty(t,"fantomSonicTestnet",{enumerable:!0,get:function(){return $.fantomSonicTestnet}});var X=r(632804);Object.defineProperty(t,"fantomTestnet",{enumerable:!0,get:function(){return X.fantomTestnet}});var ee=r(949054);Object.defineProperty(t,"fibo",{enumerable:!0,get:function(){return ee.fibo}});var te=r(340819);Object.defineProperty(t,"filecoin",{enumerable:!0,get:function(){return te.filecoin}});var re=r(520703);Object.defineProperty(t,"filecoinCalibration",{enumerable:!0,get:function(){return re.filecoinCalibration}});var ne=r(183783);Object.defineProperty(t,"filecoinHyperspace",{enumerable:!0,get:function(){return ne.filecoinHyperspace}});var ie=r(567386);Object.defineProperty(t,"flare",{enumerable:!0,get:function(){return ie.flare}});var oe=r(5915);Object.defineProperty(t,"flareTestnet",{enumerable:!0,get:function(){return oe.flareTestnet}});var ae=r(494331);Object.defineProperty(t,"foundry",{enumerable:!0,get:function(){return ae.foundry}});var se=r(346777);Object.defineProperty(t,"fuse",{enumerable:!0,get:function(){return se.fuse}});var ce=r(738425);Object.defineProperty(t,"fuseSparknet",{enumerable:!0,get:function(){return ce.fuseSparknet}});var ue=r(729735);Object.defineProperty(t,"iotex",{enumerable:!0,get:function(){return ue.iotex}});var le=r(816252);Object.defineProperty(t,"iotexTestnet",{enumerable:!0,get:function(){return le.iotexTestnet}});var de=r(240031);Object.defineProperty(t,"jbc",{enumerable:!0,get:function(){return de.jbc}});var fe=r(439080);Object.defineProperty(t,"karura",{enumerable:!0,get:function(){return fe.karura}});var he=r(536103);Object.defineProperty(t,"gobi",{enumerable:!0,get:function(){return he.gobi}});var pe=r(380482);Object.defineProperty(t,"goerli",{enumerable:!0,get:function(){return pe.goerli}});var ge=r(804663);Object.defineProperty(t,"gnosis",{enumerable:!0,get:function(){return ge.gnosis}});var me=r(413643);Object.defineProperty(t,"gnosisChiado",{enumerable:!0,get:function(){return me.gnosisChiado}});var ye=r(531828);Object.defineProperty(t,"hardhat",{enumerable:!0,get:function(){return ye.hardhat}});var be=r(349006);Object.defineProperty(t,"harmonyOne",{enumerable:!0,get:function(){return be.harmonyOne}});var ve=r(7781);Object.defineProperty(t,"haqqMainnet",{enumerable:!0,get:function(){return ve.haqqMainnet}});var we=r(463180);Object.defineProperty(t,"haqqTestedge2",{enumerable:!0,get:function(){return we.haqqTestedge2}});var Ae=r(107137);Object.defineProperty(t,"holesky",{enumerable:!0,get:function(){return Ae.holesky}});var Ce=r(261677);Object.defineProperty(t,"kava",{enumerable:!0,get:function(){return Ce.kava}});var Ee=r(309254);Object.defineProperty(t,"kavaTestnet",{enumerable:!0,get:function(){return Ee.kavaTestnet}});var xe=r(930059);Object.defineProperty(t,"klaytn",{enumerable:!0,get:function(){return xe.klaytn}});var Se=r(782576);Object.defineProperty(t,"klaytnBaobab",{enumerable:!0,get:function(){return Se.klaytnBaobab}});var Ie=r(212402);Object.defineProperty(t,"kroma",{enumerable:!0,get:function(){return Ie.kroma}});var ke=r(536049);Object.defineProperty(t,"kromaSepolia",{enumerable:!0,get:function(){return ke.kromaSepolia}});var _e=r(34295);Object.defineProperty(t,"linea",{enumerable:!0,get:function(){return _e.linea}});var Te=r(293068);Object.defineProperty(t,"lineaTestnet",{enumerable:!0,get:function(){return Te.lineaTestnet}});var Me=r(357299);Object.defineProperty(t,"localhost",{enumerable:!0,get:function(){return Me.localhost}});var Pe=r(507496);Object.defineProperty(t,"lukso",{enumerable:!0,get:function(){return Pe.lukso}});var je=r(170662);Object.defineProperty(t,"mainnet",{enumerable:!0,get:function(){return je.mainnet}});var De=r(411726);Object.defineProperty(t,"mandala",{enumerable:!0,get:function(){return De.mandala}});var Oe=r(371049);Object.defineProperty(t,"manta",{enumerable:!0,get:function(){return Oe.manta}});var Be=r(362730);Object.defineProperty(t,"mantaTestnet",{enumerable:!0,get:function(){return Be.mantaTestnet}});var Ne=r(713719);Object.defineProperty(t,"mantle",{enumerable:!0,get:function(){return Ne.mantle}});var Re=r(349900);Object.defineProperty(t,"mantleTestnet",{enumerable:!0,get:function(){return Re.mantleTestnet}});var Le=r(471391);Object.defineProperty(t,"meter",{enumerable:!0,get:function(){return Le.meter}});var Fe=r(123092);Object.defineProperty(t,"meterTestnet",{enumerable:!0,get:function(){return Fe.meterTestnet}});var Ue=r(271788);Object.defineProperty(t,"metis",{enumerable:!0,get:function(){return Ue.metis}});var ze=r(173254);Object.defineProperty(t,"metisGoerli",{enumerable:!0,get:function(){return ze.metisGoerli}});var He=r(375018);Object.defineProperty(t,"mev",{enumerable:!0,get:function(){return He.mev}});var Ve=r(706827);Object.defineProperty(t,"mevTestnet",{enumerable:!0,get:function(){return Ve.mevTestnet}});var Ke=r(339520);Object.defineProperty(t,"modeTestnet",{enumerable:!0,get:function(){return Ke.modeTestnet}});var Ge=r(708170);Object.defineProperty(t,"moonbaseAlpha",{enumerable:!0,get:function(){return Ge.moonbaseAlpha}});var qe=r(647054);Object.defineProperty(t,"moonbeam",{enumerable:!0,get:function(){return qe.moonbeam}});var Qe=r(92283);Object.defineProperty(t,"moonbeamDev",{enumerable:!0,get:function(){return Qe.moonbeamDev}});var We=r(581139);Object.defineProperty(t,"moonriver",{enumerable:!0,get:function(){return We.moonriver}});var Je=r(753274);Object.defineProperty(t,"neonDevnet",{enumerable:!0,get:function(){return Je.neonDevnet}});var Ye=r(992618);Object.defineProperty(t,"neonMainnet",{enumerable:!0,get:function(){return Ye.neonMainnet}});var Ze=r(367634);Object.defineProperty(t,"nexi",{enumerable:!0,get:function(){return Ze.nexi}});var $e=r(277001);Object.defineProperty(t,"nexilix",{enumerable:!0,get:function(){return $e.nexilix}});var Xe=r(147123);Object.defineProperty(t,"oasys",{enumerable:!0,get:function(){return Xe.oasys}});var et=r(640128);Object.defineProperty(t,"oasisTestnet",{enumerable:!0,get:function(){return et.oasisTestnet}});var tt=r(379501);Object.defineProperty(t,"okc",{enumerable:!0,get:function(){return tt.okc}});var rt=r(606786);Object.defineProperty(t,"optimism",{enumerable:!0,get:function(){return rt.optimism}});var nt=r(690744);Object.defineProperty(t,"optimismGoerli",{enumerable:!0,get:function(){return nt.optimismGoerli}});var it=r(264737);Object.defineProperty(t,"optimismSepolia",{enumerable:!0,get:function(){return it.optimismSepolia}});var ot=r(288565);Object.defineProperty(t,"opBNB",{enumerable:!0,get:function(){return ot.opBNB}});var at=r(267790);Object.defineProperty(t,"opBNBTestnet",{enumerable:!0,get:function(){return at.opBNBTestnet}});var st=r(700235);Object.defineProperty(t,"pgn",{enumerable:!0,get:function(){return st.pgn}});var ct=r(767272);Object.defineProperty(t,"pgnTestnet",{enumerable:!0,get:function(){return ct.pgnTestnet}});var ut=r(490495);Object.defineProperty(t,"plinga",{enumerable:!0,get:function(){return ut.plinga}});var lt=r(453672);Object.defineProperty(t,"polygon",{enumerable:!0,get:function(){return lt.polygon}});var dt=r(226227);Object.defineProperty(t,"polygonMumbai",{enumerable:!0,get:function(){return dt.polygonMumbai}});var ft=r(87806);Object.defineProperty(t,"polygonZkEvmTestnet",{enumerable:!0,get:function(){return ft.polygonZkEvmTestnet}});var ht=r(187269);Object.defineProperty(t,"polygonZkEvm",{enumerable:!0,get:function(){return ht.polygonZkEvm}});var pt=r(446374);Object.defineProperty(t,"pulsechain",{enumerable:!0,get:function(){return pt.pulsechain}});var gt=r(586964);Object.defineProperty(t,"pulsechainV4",{enumerable:!0,get:function(){return gt.pulsechainV4}});var mt=r(492493);Object.defineProperty(t,"qMainnet",{enumerable:!0,get:function(){return mt.qMainnet}});var yt=r(258570);Object.defineProperty(t,"qTestnet",{enumerable:!0,get:function(){return yt.qTestnet}});var bt=r(217714);Object.defineProperty(t,"rollux",{enumerable:!0,get:function(){return bt.rollux}});var vt=r(524659);Object.defineProperty(t,"rolluxTestnet",{enumerable:!0,get:function(){return vt.rolluxTestnet}});var wt=r(585242);Object.defineProperty(t,"ronin",{enumerable:!0,get:function(){return wt.ronin}});var At=r(793848);Object.defineProperty(t,"rootstock",{enumerable:!0,get:function(){return At.rootstock}});var Ct=r(652377);Object.defineProperty(t,"saigon",{enumerable:!0,get:function(){return Ct.saigon}});var Et=r(102282);Object.defineProperty(t,"sapphire",{enumerable:!0,get:function(){return Et.sapphire}});var xt=r(251051);Object.defineProperty(t,"sapphireTestnet",{enumerable:!0,get:function(){return xt.sapphireTestnet}});var St=r(476229);Object.defineProperty(t,"scroll",{enumerable:!0,get:function(){return St.scroll}});var It=r(457436);Object.defineProperty(t,"scrollSepolia",{enumerable:!0,get:function(){return It.scrollSepolia}});var kt=r(129918);Object.defineProperty(t,"scrollTestnet",{enumerable:!0,get:function(){return kt.scrollTestnet}});var _t=r(732787);Object.defineProperty(t,"sepolia",{enumerable:!0,get:function(){return _t.sepolia}});var Tt=r(398225);Object.defineProperty(t,"shimmer",{enumerable:!0,get:function(){return Tt.shimmer}});var Mt=r(561682);Object.defineProperty(t,"shimmerTestnet",{enumerable:!0,get:function(){return Mt.shimmerTestnet}});var Pt=r(701855);Object.defineProperty(t,"skaleBlockBrawlers",{enumerable:!0,get:function(){return Pt.skaleBlockBrawlers}});var jt=r(271536);Object.defineProperty(t,"skaleCalypso",{enumerable:!0,get:function(){return jt.skaleCalypso}});var Dt=r(767597);Object.defineProperty(t,"skaleCalypsoTestnet",{enumerable:!0,get:function(){return Dt.skaleCalypsoTestnet}});var Ot=r(379272);Object.defineProperty(t,"skaleChaosTestnet",{enumerable:!0,get:function(){return Ot.skaleChaosTestnet}});var Bt=r(650417);Object.defineProperty(t,"skaleCryptoBlades",{enumerable:!0,get:function(){return Bt.skaleCryptoBlades}});var Nt=r(671514);Object.defineProperty(t,"skaleCryptoColosseum",{enumerable:!0,get:function(){return Nt.skaleCryptoColosseum}});var Rt=r(104501);Object.defineProperty(t,"skaleEuropa",{enumerable:!0,get:function(){return Rt.skaleEuropa}});var Lt=r(166094);Object.defineProperty(t,"skaleEuropaTestnet",{enumerable:!0,get:function(){return Lt.skaleEuropaTestnet}});var Ft=r(114752);Object.defineProperty(t,"skaleExorde",{enumerable:!0,get:function(){return Ft.skaleExorde}});var Ut=r(66862);Object.defineProperty(t,"skaleHumanProtocol",{enumerable:!0,get:function(){return Ut.skaleHumanProtocol}});var zt=r(674168);Object.defineProperty(t,"skaleNebula",{enumerable:!0,get:function(){return zt.skaleNebula}});var Ht=r(388597);Object.defineProperty(t,"skaleNebulaTestnet",{enumerable:!0,get:function(){return Ht.skaleNebulaTestnet}});var Vt=r(223911);Object.defineProperty(t,"skaleRazor",{enumerable:!0,get:function(){return Vt.skaleRazor}});var Kt=r(992321);Object.defineProperty(t,"skaleTitan",{enumerable:!0,get:function(){return Kt.skaleTitan}});var Gt=r(81186);Object.defineProperty(t,"skaleTitanTestnet",{enumerable:!0,get:function(){return Gt.skaleTitanTestnet}});var qt=r(890022);Object.defineProperty(t,"songbird",{enumerable:!0,get:function(){return qt.songbird}});var Qt=r(598879);Object.defineProperty(t,"songbirdTestnet",{enumerable:!0,get:function(){return Qt.songbirdTestnet}});var Wt=r(247616);Object.defineProperty(t,"spicy",{enumerable:!0,get:function(){return Wt.spicy}});var Jt=r(357819);Object.defineProperty(t,"shardeumSphinx",{enumerable:!0,get:function(){return Jt.shardeumSphinx}});var Yt=r(255882);Object.defineProperty(t,"shibarium",{enumerable:!0,get:function(){return Yt.shibarium}});var Zt=r(853502);Object.defineProperty(t,"syscoin",{enumerable:!0,get:function(){return Zt.syscoin}});var $t=r(377463);Object.defineProperty(t,"syscoinTestnet",{enumerable:!0,get:function(){return $t.syscoinTestnet}});var Xt=r(936561);Object.defineProperty(t,"taraxa",{enumerable:!0,get:function(){return Xt.taraxa}});var er=r(61220);Object.defineProperty(t,"taikoJolnir",{enumerable:!0,get:function(){return er.taikoJolnir}});var tr=r(610126);Object.defineProperty(t,"taikoTestnetSepolia",{enumerable:!0,get:function(){return tr.taikoTestnetSepolia}});var rr=r(303922);Object.defineProperty(t,"taraxaTestnet",{enumerable:!0,get:function(){return rr.taraxaTestnet}});var nr=r(580313);Object.defineProperty(t,"telos",{enumerable:!0,get:function(){return nr.telos}});var ir=r(641338);Object.defineProperty(t,"telosTestnet",{enumerable:!0,get:function(){return ir.telosTestnet}});var or=r(976576);Object.defineProperty(t,"tenet",{enumerable:!0,get:function(){return or.tenet}});var ar=r(208389);Object.defineProperty(t,"thunderTestnet",{enumerable:!0,get:function(){return ar.thunderTestnet}});var sr=r(884672);Object.defineProperty(t,"vechain",{enumerable:!0,get:function(){return sr.vechain}});var cr=r(778087);Object.defineProperty(t,"wanchain",{enumerable:!0,get:function(){return cr.wanchain}});var ur=r(812380);Object.defineProperty(t,"wanchainTestnet",{enumerable:!0,get:function(){return ur.wanchainTestnet}});var lr=r(49264);Object.defineProperty(t,"wemix",{enumerable:!0,get:function(){return lr.wemix}});var dr=r(197677);Object.defineProperty(t,"wemixTestnet",{enumerable:!0,get:function(){return dr.wemixTestnet}});var fr=r(266523);Object.defineProperty(t,"xdc",{enumerable:!0,get:function(){return fr.xdc}});var hr=r(68440);Object.defineProperty(t,"xdcTestnet",{enumerable:!0,get:function(){return hr.xdcTestnet}});var pr=r(80708);Object.defineProperty(t,"zhejiang",{enumerable:!0,get:function(){return pr.zhejiang}});var gr=r(681129);Object.defineProperty(t,"zkFair",{enumerable:!0,get:function(){return gr.zkFair}});var mr=r(234026);Object.defineProperty(t,"zkFairTestnet",{enumerable:!0,get:function(){return mr.zkFairTestnet}});var yr=r(439864);Object.defineProperty(t,"zkSync",{enumerable:!0,get:function(){return yr.zkSync}});var br=r(502005);Object.defineProperty(t,"zkSyncTestnet",{enumerable:!0,get:function(){return br.zkSyncTestnet}});var vr=r(476272);Object.defineProperty(t,"zkSyncSepoliaTestnet",{enumerable:!0,get:function(){return vr.zkSyncSepoliaTestnet}});var wr=r(58173);Object.defineProperty(t,"zetachainAthensTestnet",{enumerable:!0,get:function(){return wr.zetachainAthensTestnet}});var Ar=r(282996);Object.defineProperty(t,"zilliqa",{enumerable:!0,get:function(){return Ar.zilliqa}});var Cr=r(104009);Object.defineProperty(t,"zilliqaTestnet",{enumerable:!0,get:function(){return Cr.zilliqaTestnet}});var Er=r(709442);Object.defineProperty(t,"zora",{enumerable:!0,get:function(){return Er.zora}});var xr=r(296033);Object.defineProperty(t,"zoraSepolia",{enumerable:!0,get:function(){return xr.zoraSepolia}});var Sr=r(527139);Object.defineProperty(t,"zoraTestnet",{enumerable:!0,get:function(){return Sr.zoraTestnet}})},445343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formattersOptimism=void 0;const n=r(15987),i=r(483849),o=r(477100),a=r(928490);t.formattersOptimism={block:(0,i.defineBlock)({format(e){const t=e.transactions?.map((e=>{if("string"==typeof e)return e;const t=(0,o.formatTransaction)(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,n.hexToBigInt)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}));return{transactions:t,stateRoot:e.stateRoot}}}),transaction:(0,o.defineTransaction)({format(e){const t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,n.hexToBigInt)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:(0,a.defineTransactionReceipt)({format:e=>({l1GasPrice:e.l1GasPrice?(0,n.hexToBigInt)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,n.hexToBigInt)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,n.hexToBigInt)(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})}},367141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formattersZkSync=void 0;const n=r(15987),i=r(184962),o=r(214368),a=r(483849),s=r(873886),c=r(477100),u=r(928490),l=r(575847);t.formattersZkSync={block:(0,a.defineBlock)({format(e){const r=e.transactions?.map((e=>{if("string"==typeof e)return e;const r=t.formattersZkSync.transaction.format(e);return"0x71"===r.typeHex?r.type="eip712":"0xff"===r.typeHex&&(r.type="priority"),r}));return{l1BatchNumber:e.l1BatchNumber?(0,n.hexToBigInt)(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?(0,n.hexToBigInt)(e.l1BatchTimestamp):null,transactions:r}}}),transaction:(0,c.defineTransaction)({format(e){const t={};return"0x71"===e.type?t.type="eip712":"0xff"===e.type&&(t.type="priority"),{...t,l1BatchNumber:e.l1BatchNumber?(0,n.hexToBigInt)(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?(0,n.hexToBigInt)(e.l1BatchTxIndex):null}}}),transactionReceipt:(0,u.defineTransactionReceipt)({format:e=>({l1BatchNumber:e.l1BatchNumber?(0,n.hexToBigInt)(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?(0,n.hexToBigInt)(e.l1BatchTxIndex):null,logs:e.logs.map((e=>({...(0,s.formatLog)(e),l1BatchNumber:e.l1BatchNumber?(0,n.hexToBigInt)(e.l1BatchNumber):null,transactionLogIndex:(0,n.hexToNumber)(e.transactionLogIndex),logType:e.logType}))),l2ToL1Logs:e.l2ToL1Logs.map((e=>({blockNumber:(0,n.hexToBigInt)(e.blockHash),blockHash:e.blockHash,l1BatchNumber:(0,n.hexToBigInt)(e.l1BatchNumber),transactionIndex:(0,n.hexToBigInt)(e.transactionIndex),shardId:(0,n.hexToBigInt)(e.shardId),isService:e.isService,sender:e.sender,key:e.key,value:e.value,transactionHash:e.transactionHash,logIndex:(0,n.hexToBigInt)(e.logIndex)})))})}),transactionRequest:(0,l.defineTransactionRequest)({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format:e=>e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:(0,o.toHex)(e.gasPerPubdata)}:{},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from((0,i.hexToBytes)(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps}:{},...e.customSignature?{customSignature:e.customSignature}:{}},type:"eip712"===e.type?"0x71":"0xff"}:{}})}},149401:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertTransactionEIP712=t.serializersZkSync=t.serializeTransactionZkSync=void 0;const n=r(79746),i=r(192857),o=r(601679),a=r(208305),s=r(283755),c=r(214368),u=r(246915),l=r(823067);function d(e){const{chainId:t,to:r,from:s,paymaster:c,paymasterInput:u}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(r&&!(0,a.isAddress)(r))throw new n.InvalidAddressError({address:r});if(s&&!(0,a.isAddress)(s))throw new n.InvalidAddressError({address:s});if(c&&!(0,a.isAddress)(c))throw new n.InvalidAddressError({address:c});if(c&&!u)throw new i.BaseError("`paymasterInput` must be provided when `paymaster` is defined");if(!c&&u)throw new i.BaseError("`paymaster` must be provided when `paymasterInput` is defined")}t.serializeTransactionZkSync=(e,t)=>{return"customSignature"in(r=e)||"paymaster"in r||"paymasterInput"in r||"gasPerPubdata"in r||"factoryDeps"in r?function(e){const{chainId:t,gas:r,nonce:n,to:i,from:o,value:a,maxFeePerGas:l,maxPriorityFeePerGas:f,customSignature:h,factoryDeps:p,paymaster:g,paymasterInput:m,gasPerPubdata:y,data:b}=e;d(e);const v=[n?(0,c.toHex)(n):"0x",f?(0,c.toHex)(f):"0x",l?(0,c.toHex)(l):"0x",r?(0,c.toHex)(r):"0x",i??"0x",a?(0,c.toHex)(a):"0x",b??"0x",(0,c.toHex)(t),(0,c.toHex)(""),(0,c.toHex)(""),(0,c.toHex)(t),o??"0x",y?(0,c.toHex)(y):"0x",p??[],h??"0x",g&&m?[g,m]:[]];return(0,s.concatHex)(["0x71",(0,u.toRlp)(v)])}(e):(0,l.serializeTransaction)(e,t);var r},t.serializersZkSync={transaction:t.serializeTransactionZkSync},t.assertTransactionEIP712=d},930208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=void 0;const n=r(551436),i=r(643540);t.createClient=function(e){const{batch:t,cacheTime:r=e.pollingInterval??4e3,key:o="base",name:a="Base Client",pollingInterval:s=4e3,type:c="base"}=e,u=e.chain,l=e.account?(0,n.parseAccount)(e.account):void 0,{config:d,request:f,value:h}=e.transport({chain:u,pollingInterval:s}),p={account:l,batch:t,cacheTime:r,chain:u,key:o,name:a,pollingInterval:s,request:f,transport:{...d,...h},type:c,uid:(0,i.uid)()};return Object.assign(p,{extend:function e(t){return r=>{const n=r(t);for(const e in p)delete n[e];const i={...t,...n};return Object.assign(i,{extend:e(i)})}}(p)})}},331761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPublicClient=void 0;const n=r(930208),i=r(819629);t.createPublicClient=function(e){const{key:t="public",name:r="Public Client"}=e;return(0,n.createClient)({...e,key:t,name:r,type:"publicClient"}).extend(i.publicActions)}},63964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTestClient=void 0;const n=r(930208),i=r(643592);t.createTestClient=function(e){const{key:t="test",name:r="Test Client",mode:o}=e;return(0,n.createClient)({...e,key:t,name:r,type:"testClient"}).extend((e=>({mode:o,...(0,i.testActions)({mode:o})(e)})))}},307821:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWalletClient=void 0;const n=r(930208),i=r(227861);t.createWalletClient=function(e){const{key:t="wallet",name:r="Wallet Client",transport:o}=e;return(0,n.createClient)({...e,key:t,name:r,transport:e=>o({...e,retryCount:0}),type:"walletClient"}).extend(i.walletActions)}},819629:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicActions=void 0;const n=r(714635),i=r(427982),o=r(843188),a=r(846009),s=r(715344),c=r(146606),u=r(647),l=r(497276),d=r(257398),f=r(372181),h=r(503349),p=r(34485),g=r(867787),m=r(964774),y=r(816546),b=r(851907),v=r(389790),w=r(932808),A=r(663079),C=r(659334),E=r(983619),x=r(951064),S=r(394589),I=r(775593),k=r(908682),_=r(64479),T=r(461112),M=r(634686),P=r(927182),j=r(848910),D=r(933099),O=r(47552),B=r(574701),N=r(554884),R=r(40238),L=r(712460),F=r(58980),U=r(895963),z=r(408040),H=r(592535),V=r(16469),K=r(395309),G=r(854091),q=r(21841),Q=r(887934),W=r(278930);t.publicActions=function(e){return{call:t=>(0,c.call)(e,t),createBlockFilter:()=>(0,u.createBlockFilter)(e),createContractEventFilter:t=>(0,l.createContractEventFilter)(e,t),createEventFilter:t=>(0,d.createEventFilter)(e,t),createPendingTransactionFilter:()=>(0,f.createPendingTransactionFilter)(e),estimateContractGas:t=>(0,h.estimateContractGas)(e,t),estimateGas:t=>(0,g.estimateGas)(e,t),getBalance:t=>(0,y.getBalance)(e,t),getBlock:t=>(0,b.getBlock)(e,t),getBlockNumber:t=>(0,v.getBlockNumber)(e,t),getBlockTransactionCount:t=>(0,w.getBlockTransactionCount)(e,t),getBytecode:t=>(0,A.getBytecode)(e,t),getChainId:()=>(0,C.getChainId)(e),getContractEvents:t=>(0,E.getContractEvents)(e,t),getEnsAddress:t=>(0,n.getEnsAddress)(e,t),getEnsAvatar:t=>(0,i.getEnsAvatar)(e,t),getEnsName:t=>(0,o.getEnsName)(e,t),getEnsResolver:t=>(0,a.getEnsResolver)(e,t),getEnsText:t=>(0,s.getEnsText)(e,t),getFeeHistory:t=>(0,x.getFeeHistory)(e,t),estimateFeesPerGas:t=>(0,p.estimateFeesPerGas)(e,t),getFilterChanges:t=>(0,S.getFilterChanges)(e,t),getFilterLogs:t=>(0,I.getFilterLogs)(e,t),getGasPrice:()=>(0,k.getGasPrice)(e),getLogs:t=>(0,_.getLogs)(e,t),getProof:t=>(0,T.getProof)(e,t),estimateMaxPriorityFeePerGas:t=>(0,m.estimateMaxPriorityFeePerGas)(e,t),getStorageAt:t=>(0,M.getStorageAt)(e,t),getTransaction:t=>(0,P.getTransaction)(e,t),getTransactionConfirmations:t=>(0,j.getTransactionConfirmations)(e,t),getTransactionCount:t=>(0,D.getTransactionCount)(e,t),getTransactionReceipt:t=>(0,O.getTransactionReceipt)(e,t),multicall:t=>(0,B.multicall)(e,t),prepareTransactionRequest:t=>(0,Q.prepareTransactionRequest)(e,t),readContract:t=>(0,N.readContract)(e,t),sendRawTransaction:t=>(0,W.sendRawTransaction)(e,t),simulateContract:t=>(0,R.simulateContract)(e,t),verifyMessage:t=>(0,F.verifyMessage)(e,t),verifyTypedData:t=>(0,U.verifyTypedData)(e,t),uninstallFilter:t=>(0,L.uninstallFilter)(e,t),waitForTransactionReceipt:t=>(0,z.waitForTransactionReceipt)(e,t),watchBlocks:t=>(0,V.watchBlocks)(e,t),watchBlockNumber:t=>(0,H.watchBlockNumber)(e,t),watchContractEvent:t=>(0,K.watchContractEvent)(e,t),watchEvent:t=>(0,G.watchEvent)(e,t),watchPendingTransactions:t=>(0,q.watchPendingTransactions)(e,t)}}},643592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testActions=void 0;const n=r(764138),i=r(997390),o=r(618117),a=r(165686),s=r(886725),c=r(479313),u=r(194128),l=r(67407),d=r(901372),f=r(192738),h=r(436899),p=r(639566),g=r(822339),m=r(215706),y=r(62569),b=r(509409),v=r(800144),w=r(914695),A=r(608196),C=r(316521),E=r(260692),x=r(692415),S=r(479295),I=r(260072),k=r(940191),_=r(913046),T=r(671261),M=r(791509),P=r(673289),j=r(792e3);t.testActions=function({mode:e}){return t=>{const r=t.extend((()=>({mode:e})));return{dropTransaction:e=>(0,n.dropTransaction)(r,e),dumpState:()=>(0,i.dumpState)(r),getAutomine:()=>(0,o.getAutomine)(r),getTxpoolContent:()=>(0,a.getTxpoolContent)(r),getTxpoolStatus:()=>(0,s.getTxpoolStatus)(r),impersonateAccount:e=>(0,c.impersonateAccount)(r,e),increaseTime:e=>(0,u.increaseTime)(r,e),inspectTxpool:()=>(0,l.inspectTxpool)(r),loadState:e=>(0,d.loadState)(r,e),mine:e=>(0,f.mine)(r,e),removeBlockTimestampInterval:()=>(0,h.removeBlockTimestampInterval)(r),reset:e=>(0,p.reset)(r,e),revert:e=>(0,g.revert)(r,e),sendUnsignedTransaction:e=>(0,m.sendUnsignedTransaction)(r,e),setAutomine:e=>(0,y.setAutomine)(r,e),setBalance:e=>(0,b.setBalance)(r,e),setBlockGasLimit:e=>(0,v.setBlockGasLimit)(r,e),setBlockTimestampInterval:e=>(0,w.setBlockTimestampInterval)(r,e),setCode:e=>(0,A.setCode)(r,e),setCoinbase:e=>(0,C.setCoinbase)(r,e),setIntervalMining:e=>(0,E.setIntervalMining)(r,e),setLoggingEnabled:e=>(0,x.setLoggingEnabled)(r,e),setMinGasPrice:e=>(0,S.setMinGasPrice)(r,e),setNextBlockBaseFeePerGas:e=>(0,I.setNextBlockBaseFeePerGas)(r,e),setNextBlockTimestamp:e=>(0,k.setNextBlockTimestamp)(r,e),setNonce:e=>(0,_.setNonce)(r,e),setRpcUrl:e=>(0,T.setRpcUrl)(r,e),setStorageAt:e=>(0,M.setStorageAt)(r,e),snapshot:()=>(0,P.snapshot)(r),stopImpersonatingAccount:e=>(0,j.stopImpersonatingAccount)(r,e)}}}},227861:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletActions=void 0;const n=r(659334),i=r(630598),o=r(571827),a=r(736186),s=r(690450),c=r(887934),u=r(601485),l=r(561205),d=r(278930),f=r(634514),h=r(455504),p=r(737859),g=r(433327),m=r(903413),y=r(492775),b=r(721609);t.walletActions=function(e){return{addChain:t=>(0,i.addChain)(e,t),deployContract:t=>(0,o.deployContract)(e,t),getAddresses:()=>(0,a.getAddresses)(e),getChainId:()=>(0,n.getChainId)(e),getPermissions:()=>(0,s.getPermissions)(e),prepareTransactionRequest:t=>(0,c.prepareTransactionRequest)(e,t),requestAddresses:()=>(0,u.requestAddresses)(e),requestPermissions:t=>(0,l.requestPermissions)(e,t),sendRawTransaction:t=>(0,d.sendRawTransaction)(e,t),sendTransaction:t=>(0,f.sendTransaction)(e,t),signMessage:t=>(0,h.signMessage)(e,t),signTransaction:t=>(0,p.signTransaction)(e,t),signTypedData:t=>(0,g.signTypedData)(e,t),switchChain:t=>(0,m.switchChain)(e,t),watchAsset:t=>(0,y.watchAsset)(e,t),writeContract:t=>(0,b.writeContract)(e,t)}}},967763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTransport=void 0;const n=r(996961);t.createTransport=function({key:e,name:t,request:r,retryCount:i=3,retryDelay:o=150,timeout:a,type:s},c){return{config:{key:e,name:t,request:r,retryCount:i,retryDelay:o,timeout:a,type:s},request:(0,n.buildRequest)(r,{retryCount:i,retryDelay:o}),value:c}}},188699:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.custom=void 0;const n=r(967763);t.custom=function(e,t={}){const{key:r="custom",name:i="Custom Provider",retryDelay:o}=t;return({retryCount:a})=>(0,n.createTransport)({key:r,name:i,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:o,type:"custom"})}},558574:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rankTransports=t.fallback=void 0;const n=r(996961),i=r(6189),o=r(967763);function a({chain:e,interval:t=4e3,onTransports:r,sampleCount:n=10,timeout:o=1e3,transports:a,weights:s={}}){const{stability:c=.7,latency:u=.3}=s,l=[],d=async()=>{const s=await Promise.all(a.map((async t=>{const r=t({chain:e,retryCount:0,timeout:o}),n=Date.now();let i,a;try{await r.request({method:"net_listening"}),a=1}catch{a=0}finally{i=Date.now()}return{latency:i-n,success:a}})));l.push(s),l.length>n&&l.shift();const f=Math.max(...l.map((e=>Math.max(...e.map((({latency:e})=>e)))))),h=a.map(((e,t)=>{const r=l.map((e=>e[t].latency)),n=1-r.reduce(((e,t)=>e+t),0)/r.length/f,i=l.map((e=>e[t].success)),o=i.reduce(((e,t)=>e+t),0)/i.length;return 0===o?[0,t]:[u*n+c*o,t]})).sort(((e,t)=>t[0]-e[0]));r(h.map((([,e])=>a[e]))),await(0,i.wait)(t),d()};d()}t.fallback=function(e,t={}){const{key:r="fallback",name:i="Fallback",rank:s=!1,retryCount:c,retryDelay:u}=t;return({chain:t,pollingInterval:l=4e3,timeout:d})=>{let f=e,h=()=>{};const p=(0,o.createTransport)({key:r,name:i,async request({method:e,params:r}){const i=async(o=0)=>{const a=f[o]({chain:t,retryCount:0,timeout:d});try{const t=await a.request({method:e,params:r});return h({method:e,params:r,response:t,transport:a,status:"success"}),t}catch(s){if(h({error:s,method:e,params:r,transport:a,status:"error"}),(0,n.isDeterministicError)(s))throw s;if(o===f.length-1)throw s;return i(o+1)}};return i()},retryCount:c,retryDelay:u,type:"fallback"},{onResponse:e=>h=e,transports:f.map((e=>e({chain:t,retryCount:0})))});if(s){const e="object"==typeof s?s:{};a({chain:t,interval:e.interval??l,onTransports:e=>f=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:f,weights:e.weights})}return p}},t.rankTransports=a},486788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.http=void 0;const n=r(997811),i=r(974839),o=r(75591),a=r(280817),s=r(967763);t.http=function(e,t={}){const{batch:r,fetchOptions:c,key:u="http",name:l="HTTP JSON-RPC",retryDelay:d}=t;return({chain:f,retryCount:h,timeout:p})=>{const{batchSize:g=1e3,wait:m=0}="object"==typeof r?r:{},y=t.retryCount??h,b=p??t.timeout??1e4,v=e||f?.rpcUrls.default.http[0];if(!v)throw new i.UrlRequiredError;return(0,s.createTransport)({key:u,name:l,async request({method:t,params:i}){const s={method:t,params:i},{schedule:u}=(0,o.createBatchScheduler)({id:`${e}`,wait:m,shouldSplitBatch:e=>e.length>g,fn:e=>a.rpc.http(v,{body:e,fetchOptions:c,timeout:b}),sort:(e,t)=>e.id-t.id}),[{error:l,result:d}]=await(async e=>r?u(e):[await a.rpc.http(v,{body:e,fetchOptions:c,timeout:b})])(s);if(l)throw new n.RpcRequestError({body:s,error:l,url:v});return d},retryCount:y,retryDelay:d,timeout:b,type:"http"},{fetchOptions:c,url:e})}}},987673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.webSocket=void 0;const n=r(997811),i=r(974839),o=r(280817),a=r(967763);t.webSocket=function(e,t={}){const{key:r="webSocket",name:s="WebSocket JSON-RPC",retryDelay:c}=t;return({chain:u,retryCount:l,timeout:d})=>{const f=t.retryCount??l,h=d??t.timeout??1e4,p=e||u?.rpcUrls.default.webSocket?.[0];if(!p)throw new i.UrlRequiredError;return(0,a.createTransport)({key:r,name:s,async request({method:e,params:t}){const r={method:e,params:t},i=await(0,o.getSocket)(p),{error:a,result:s}=await o.rpc.webSocketAsync(i,{body:r,timeout:h});if(a)throw new n.RpcRequestError({body:r,error:a,url:p});return s},retryCount:f,retryDelay:c,timeout:h,type:"webSocket"},{getSocket:()=>(0,o.getSocket)(p),async subscribe({params:e,onData:t,onError:r}){const n=await(0,o.getSocket)(p),{result:i}=await new Promise(((i,a)=>o.rpc.webSocket(n,{body:{method:"eth_subscribe",params:e},onResponse(e){if(e.error)return a(e.error),void r?.(e.error);"number"!=typeof e.id?"eth_subscription"===e.method&&t(e.params):i(e)}})));return{subscriptionId:i,unsubscribe:async()=>new Promise((e=>o.rpc.webSocket(n,{body:{method:"eth_unsubscribe",params:[i]},onResponse:e})))}}})}}},100455:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.universalSignatureValidatorAbi=t.smartAccountAbi=t.addressResolverAbi=t.textResolverAbi=t.universalResolverReverseAbi=t.universalResolverResolveAbi=t.multicall3Abi=void 0,t.multicall3Abi=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}];const r=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}];t.universalResolverResolveAbi=[...r,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],t.universalResolverReverseAbi=[...r,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],t.textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],t.addressResolverAbi=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],t.smartAccountAbi=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],t.universalSignatureValidatorAbi=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},838118:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroAddress=void 0,t.zeroAddress="0x0000000000000000000000000000000000000000"},520349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroHash=void 0,t.zeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},964970:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aggregate3Signature=void 0,t.aggregate3Signature="0x82ad56cb"},23289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.universalSignatureValidatorByteCode=void 0,t.universalSignatureValidatorByteCode="0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},368993:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=void 0,t.maxInt8=127n,t.maxInt16=32767n,t.maxInt24=8388607n,t.maxInt32=2n**31n-1n,t.maxInt40=2n**39n-1n,t.maxInt48=2n**47n-1n,t.maxInt56=2n**55n-1n,t.maxInt64=2n**63n-1n,t.maxInt72=2n**71n-1n,t.maxInt80=2n**79n-1n,t.maxInt88=2n**87n-1n,t.maxInt96=2n**95n-1n,t.maxInt104=2n**103n-1n,t.maxInt112=2n**111n-1n,t.maxInt120=2n**119n-1n,t.maxInt128=2n**127n-1n,t.maxInt136=2n**135n-1n,t.maxInt144=2n**143n-1n,t.maxInt152=2n**151n-1n,t.maxInt160=2n**159n-1n,t.maxInt168=2n**167n-1n,t.maxInt176=2n**175n-1n,t.maxInt184=2n**183n-1n,t.maxInt192=2n**191n-1n,t.maxInt200=2n**199n-1n,t.maxInt208=2n**207n-1n,t.maxInt216=2n**215n-1n,t.maxInt224=2n**223n-1n,t.maxInt232=2n**231n-1n,t.maxInt240=2n**239n-1n,t.maxInt248=2n**247n-1n,t.maxInt256=2n**255n-1n,t.minInt8=-128n,t.minInt16=-32768n,t.minInt24=-8388608n,t.minInt32=-(2n**31n),t.minInt40=-(2n**39n),t.minInt48=-(2n**47n),t.minInt56=-(2n**55n),t.minInt64=-(2n**63n),t.minInt72=-(2n**71n),t.minInt80=-(2n**79n),t.minInt88=-(2n**87n),t.minInt96=-(2n**95n),t.minInt104=-(2n**103n),t.minInt112=-(2n**111n),t.minInt120=-(2n**119n),t.minInt128=-(2n**127n),t.minInt136=-(2n**135n),t.minInt144=-(2n**143n),t.minInt152=-(2n**151n),t.minInt160=-(2n**159n),t.minInt168=-(2n**167n),t.minInt176=-(2n**175n),t.minInt184=-(2n**183n),t.minInt192=-(2n**191n),t.minInt200=-(2n**199n),t.minInt208=-(2n**207n),t.minInt216=-(2n**215n),t.minInt224=-(2n**223n),t.minInt232=-(2n**231n),t.minInt240=-(2n**239n),t.minInt248=-(2n**247n),t.minInt256=-(2n**255n),t.maxUint8=255n,t.maxUint16=65535n,t.maxUint24=2n**24n-1n,t.maxUint32=2n**32n-1n,t.maxUint40=2n**40n-1n,t.maxUint48=2n**48n-1n,t.maxUint56=2n**56n-1n,t.maxUint64=2n**64n-1n,t.maxUint72=2n**72n-1n,t.maxUint80=2n**80n-1n,t.maxUint88=2n**88n-1n,t.maxUint96=2n**96n-1n,t.maxUint104=2n**104n-1n,t.maxUint112=2n**112n-1n,t.maxUint120=2n**120n-1n,t.maxUint128=2n**128n-1n,t.maxUint136=2n**136n-1n,t.maxUint144=2n**144n-1n,t.maxUint152=2n**152n-1n,t.maxUint160=2n**160n-1n,t.maxUint168=2n**168n-1n,t.maxUint176=2n**176n-1n,t.maxUint184=2n**184n-1n,t.maxUint192=2n**192n-1n,t.maxUint200=2n**200n-1n,t.maxUint208=2n**208n-1n,t.maxUint216=2n**216n-1n,t.maxUint224=2n**224n-1n,t.maxUint232=2n**232n-1n,t.maxUint240=2n**240n-1n,t.maxUint248=2n**248n-1n,t.maxUint256=2n**256n-1n},407077:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPanic=t.solidityError=t.panicReasons=void 0,t.panicReasons={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},t.solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},t.solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},510632:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.presignMessagePrefix=void 0,t.presignMessagePrefix="\x19Ethereum Signed Message:\n"},886734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.weiUnits=t.gweiUnits=t.etherUnits=void 0,t.etherUnits={gwei:9,wei:18},t.gweiUnits={ether:-9,wei:9},t.weiUnits={ether:-18,gwei:-9}},112060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiDecodingTypeError=t.InvalidAbiEncodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiItemAmbiguityError=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=t.AbiConstructorNotFoundError=void 0;const n=r(539807),i=r(269662),o=r(192857);class a extends o.BaseError{constructor({docsPath:e}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}t.AbiConstructorNotFoundError=a;class s extends o.BaseError{constructor({docsPath:e}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}t.AbiConstructorParamsNotFoundError=s;class c extends o.BaseError{constructor({data:e,size:t}){super([`Data size of ${t} bytes is invalid.`,"Size must be in increments of 32 bytes (size % 32 === 0)."].join("\n"),{metaMessages:[`Data: ${e} (${t} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeInvalidError"})}}t.AbiDecodingDataSizeInvalidError=c;class u extends o.BaseError{constructor({data:e,params:t,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.formatAbiParams)(t,{includeName:!0})})`,`Data: ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}t.AbiDecodingDataSizeTooSmallError=u;class l extends o.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}t.AbiDecodingZeroDataError=l;class d extends o.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${e}`,`Given length: ${t}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}t.AbiEncodingArrayLengthMismatchError=d;class f extends o.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.size)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}t.AbiEncodingBytesSizeMismatchError=f;class h extends o.BaseError{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}t.AbiEncodingLengthMismatchError=h;class p extends o.BaseError{constructor(e,{docsPath:t}){super([`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorInputsNotFoundError"})}}t.AbiErrorInputsNotFoundError=p;class g extends o.BaseError{constructor(e,{docsPath:t}={}){super([`Error ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorNotFoundError"})}}t.AbiErrorNotFoundError=g;class m extends o.BaseError{constructor(e,{docsPath:t}){super([`Encoded error signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}t.AbiErrorSignatureNotFoundError=m;class y extends o.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}t.AbiEventSignatureEmptyTopicsError=y;class b extends o.BaseError{constructor(e,{docsPath:t}){super([`Encoded event signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}t.AbiEventSignatureNotFoundError=b;class v extends o.BaseError{constructor(e,{docsPath:t}={}){super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}t.AbiEventNotFoundError=v;class w extends o.BaseError{constructor(e,{docsPath:t}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}t.AbiFunctionNotFoundError=w;class A extends o.BaseError{constructor(e,{docsPath:t}){super([`Function "${e}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}t.AbiFunctionOutputsNotFoundError=A;class C extends o.BaseError{constructor(e,{docsPath:t}){super([`Encoded function signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionSignatureNotFoundError"})}}t.AbiFunctionSignatureNotFoundError=C;class E extends o.BaseError{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,n.formatAbiItem)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,n.formatAbiItem)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItemAmbiguityError"})}}t.AbiItemAmbiguityError=E;class x extends o.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}t.BytesSizeMismatchError=x;class S extends o.BaseError{constructor({abiItem:e,data:t,params:r,size:i}){super([`Data size of ${i} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.formatAbiParams)(r,{includeName:!0})})`,`Data: ${t} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=i}}t.DecodeLogDataMismatch=S;class I extends o.BaseError{constructor({abiItem:e,param:t}){super([`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.formatAbiItem)(e,{includeName:!0})}".`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}t.DecodeLogTopicsMismatch=I;class k extends o.BaseError{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}t.InvalidAbiEncodingTypeError=k;class _ extends o.BaseError{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}t.InvalidAbiDecodingTypeError=_;class T extends o.BaseError{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}t.InvalidArrayError=T;class M extends o.BaseError{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}t.InvalidDefinitionTypeError=M;class P extends o.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}t.UnsupportedPackedAbiType=P},307377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccountNotFoundError=void 0;const n=r(192857);class i extends n.BaseError{constructor({docsPath:e}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient."].join("\n"),{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}t.AccountNotFoundError=i},79746:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAddressError=void 0;const n=r(192857);class i extends n.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}t.InvalidAddressError=i},192857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;const n=r(344427);class i extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,n.getVersion)()});const r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof i&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return o(this,e)}}function o(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e?o(e.cause,t):t?null:e}t.BaseError=i},574227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockNotFoundError=void 0;const n=r(192857);class i extends n.BaseError{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}t.BlockNotFoundError=i},935927:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OffchainLookupSenderMismatchError=t.OffchainLookupResponseMalformedError=t.OffchainLookupError=void 0;const n=r(766527),i=r(192857),o=r(344427);class a extends i.BaseError{constructor({callbackSelector:e,cause:t,data:r,extraData:n,sender:i,urls:a}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",a&&[" Gateway URL(s):",...a.map((e=>` ${(0,o.getUrl)(e)}`))],` Sender: ${i}`,` Data: ${r}`,` Callback selector: ${e}`,` Extra data: ${n}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}t.OffchainLookupError=a;class s extends i.BaseError{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.getUrl)(t)}`,`Response: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}t.OffchainLookupResponseMalformedError=s;class c extends i.BaseError{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}t.OffchainLookupSenderMismatchError=c},601679:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=void 0;const n=r(192857);class i extends n.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}t.ChainDoesNotSupportContract=i;class o extends n.BaseError{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} \u2013 ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} \u2013 ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}t.ChainMismatchError=o;class a extends n.BaseError{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}t.ChainNotFoundError=a;class s extends n.BaseError{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}t.ClientChainNotConfiguredError=s;class c extends n.BaseError{constructor({chainId:e}){super(`Chain ID "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}t.InvalidChainIdError=c},582054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawContractError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=void 0;const n=r(157449),i=r(407077),o=r(250054),a=r(539807),s=r(306430),c=r(517706),u=r(896668),l=r(929014),d=r(112060),f=r(192857),h=r(88094),p=r(344427);class g extends f.BaseError{constructor(e,{account:t,docsPath:r,chain:i,data:o,gas:a,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:d,nonce:f,to:p,value:g}){const m=t?(0,n.parseAccount)(t):void 0,y=(0,h.prettyPrint)({from:m?.address,to:p,value:void 0!==g&&`${(0,u.formatEther)(g)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:a,gasPrice:void 0!==s&&`${(0,l.formatGwei)(s)} gwei`,maxFeePerGas:void 0!==c&&`${(0,l.formatGwei)(c)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,l.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}t.CallExecutionError=g;class m extends f.BaseError{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:o,sender:u}){const l=(0,c.getAbiItem)({abi:t,args:r,name:o}),d=l?(0,s.formatAbiItemWithArgs)({abiItem:l,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,a.formatAbiItem)(l,{includeName:!0}):void 0,g=(0,h.prettyPrint)({address:n&&(0,p.getContractAddress)(n),function:f,args:d&&"()"!==d&&`${[...Array(o?.length??0).keys()].map((()=>" ")).join("")}${d}`,sender:u});super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",g].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=o,this.sender=u}}t.ContractFunctionExecutionError=m;class y extends f.BaseError{constructor({abi:e,data:t,functionName:r,message:n}){let c,u,l,f,h;if(t&&"0x"!==t)try{u=(0,o.decodeErrorResult)({abi:e,data:t});const{abiItem:r,errorName:n,args:c}=u;if("Error"===n)f=c[0];else if("Panic"===n){const[e]=c;f=i.panicReasons[e]}else{const e=r?(0,a.formatAbiItem)(r,{includeName:!0}):void 0,t=r&&c?(0,s.formatAbiItemWithArgs)({abiItem:r,args:c,includeFunctionName:!1,includeName:!1}):void 0;l=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map((()=>" ")).join("")}${t}`:""]}}catch(p){c=p}else n&&(f=n);c instanceof d.AbiErrorSignatureNotFoundError&&(h=c.signature,l=[`Unable to decode signature "${h}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${h}.`]),super(f&&"execution reverted"!==f||h?[`The contract function "${r}" reverted with the following ${h?"signature":"reason"}:`,f||h].join("\n"):`The contract function "${r}" reverted.`,{cause:c,metaMessages:l}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=u,this.reason=f,this.signature=h}}t.ContractFunctionRevertedError=y;class b extends f.BaseError{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}t.ContractFunctionZeroDataError=b;class v extends f.BaseError{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}t.RawContractError=v},379138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PositionOutOfBoundsError=t.NegativeOffsetError=void 0;const n=r(192857);class i extends n.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}t.NegativeOffsetError=i;class o extends n.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}t.PositionOutOfBoundsError=o},621304:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=void 0;const n=r(192857);class i extends n.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=i;class o extends n.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=o},984077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeOverflowError=t.OffsetOutOfBoundsError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.IntegerOutOfRangeError=t.DataLengthTooShortError=t.DataLengthTooLongError=void 0;const n=r(192857);class i extends n.BaseError{constructor({consumed:e,length:t}){super(`Consumed bytes (${e}) is shorter than data length (${t-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooLongError"})}}t.DataLengthTooLongError=i;class o extends n.BaseError{constructor({length:e,dataLength:t}){super(`Data length (${t-1}) is shorter than consumed bytes length (${e-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooShortError"})}}t.DataLengthTooShortError=o;class a extends n.BaseError{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}t.IntegerOutOfRangeError=a;class s extends n.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesBooleanError"})}}t.InvalidBytesBooleanError=s;class c extends n.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}t.InvalidHexBooleanError=c;class u extends n.BaseError{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexValueError"})}}t.InvalidHexValueError=u;class l extends n.BaseError{constructor({nextOffset:e,offset:t}){super(`Next offset (${e}) is greater than previous offset + consumed bytes (${t})`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffsetOutOfBoundsError"})}}t.OffsetOutOfBoundsError=l;class d extends n.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}t.SizeOverflowError=d},438838:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarUriResolutionError=t.EnsAvatarInvalidNftUriError=t.EnsAvatarInvalidMetadataError=void 0;const n=r(192857);class i extends n.BaseError{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}t.EnsAvatarInvalidMetadataError=i;class o extends n.BaseError{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}t.EnsAvatarInvalidNftUriError=o;class a extends n.BaseError{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}t.EnsAvatarUriResolutionError=a;class s extends n.BaseError{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}t.EnsAvatarUnsupportedNamespaceError=s},700137:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EstimateGasExecutionError=void 0;const n=r(896668),i=r(929014),o=r(192857),a=r(88094);class s extends o.BaseError{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:c,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){const g=(0,a.prettyPrint)({from:t?.address,to:h,value:void 0!==p&&`${(0,n.formatEther)(p)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==u&&`${(0,i.formatGwei)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.formatGwei)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",g].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}t.EstimateGasExecutionError=s},973874:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaxFeePerGasTooLowError=t.Eip1559FeesNotSupportedError=t.BaseFeeScalarError=void 0;const n=r(929014),i=r(192857);class o extends i.BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}t.BaseFeeScalarError=o;class a extends i.BaseError{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}t.Eip1559FeesNotSupportedError=a;class s extends i.BaseError{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,n.formatGwei)(e)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}t.MaxFeePerGasTooLowError=s},150896:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterTypeNotSupportedError=void 0;const n=r(192857);class i extends n.BaseError{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}t.FilterTypeNotSupportedError=i},585296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNodeError=t.TipAboveFeeCapError=t.TransactionTypeNotSupportedError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.NonceMaxValueError=t.NonceTooLowError=t.NonceTooHighError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=void 0;const n=r(929014),i=r(192857);class o extends i.BaseError{constructor({cause:e,message:t}={}){const r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/}),t.ExecutionRevertedError=o;class a extends i.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/}),t.FeeCapTooHighError=a;class s extends i.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/}),t.FeeCapTooLowError=s;class c extends i.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/}),t.NonceTooHighError=c;class u extends i.BaseError{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/}),t.NonceTooLowError=u;class l extends i.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/}),t.NonceMaxValueError=l;class d extends i.BaseError{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/}),t.InsufficientFundsError=d;class f extends i.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/}),t.IntrinsicGasTooHighError=f;class h extends i.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/}),t.IntrinsicGasTooLowError=h;class p extends i.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/}),t.TransactionTypeNotSupportedError=p;class g extends i.BaseError{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.formatGwei)(r)} gwei`:""}).`].join("\n"),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(g,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/}),t.TipAboveFeeCapError=g;class m extends i.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}t.UnknownNodeError=m},997811:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=t.RpcRequestError=t.WebSocketRequestError=t.HttpRequestError=void 0;const n=r(766527),i=r(192857),o=r(344427);class a extends i.BaseError{constructor({body:e,details:t,headers:r,status:i,url:a}){super("HTTP request failed.",{details:t,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,o.getUrl)(a)}`,e&&`Request body: ${(0,n.stringify)(e)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=r,this.status=i,this.url=a}}t.HttpRequestError=a;class s extends i.BaseError{constructor({body:e,details:t,url:r}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${(0,o.getUrl)(r)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}t.WebSocketRequestError=s;class c extends i.BaseError{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.getUrl)(r)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}t.RpcRequestError=c;class u extends i.BaseError{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,o.getUrl)(t)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}t.TimeoutError=u},859577:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownRpcError=t.SwitchChainError=t.ChainDisconnectedError=t.ProviderDisconnectedError=t.UnsupportedProviderMethodError=t.UnauthorizedProviderError=t.UserRejectedRequestError=t.JsonRpcVersionUnsupportedError=t.LimitExceededRpcError=t.MethodNotSupportedRpcError=t.TransactionRejectedRpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.InvalidParamsRpcError=t.MethodNotFoundRpcError=t.InvalidRequestRpcError=t.ParseRpcError=t.ProviderRpcError=t.RpcError=void 0;const n=r(192857),i=r(997811);class o extends n.BaseError{constructor(e,{code:t,docsPath:r,metaMessages:n,shortMessage:o}){super(o,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof i.RpcRequestError?e.code:t??-1}}t.RpcError=o;class a extends o{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}t.ProviderRpcError=a;class s extends o{constructor(e){super(e,{code:s.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700}),t.ParseRpcError=s;class c extends o{constructor(e){super(e,{code:c.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600}),t.InvalidRequestRpcError=c;class u extends o{constructor(e){super(e,{code:u.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601}),t.MethodNotFoundRpcError=u;class l extends o{constructor(e){super(e,{code:l.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602}),t.InvalidParamsRpcError=l;class d extends o{constructor(e){super(e,{code:d.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603}),t.InternalRpcError=d;class f extends o{constructor(e){super(e,{code:f.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3}),t.InvalidInputRpcError=f;class h extends o{constructor(e){super(e,{code:h.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001}),t.ResourceNotFoundRpcError=h;class p extends o{constructor(e){super(e,{code:p.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002}),t.ResourceUnavailableRpcError=p;class g extends o{constructor(e){super(e,{code:g.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003}),t.TransactionRejectedRpcError=g;class m extends o{constructor(e){super(e,{code:m.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004}),t.MethodNotSupportedRpcError=m;class y extends o{constructor(e){super(e,{code:y.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005}),t.LimitExceededRpcError=y;class b extends o{constructor(e){super(e,{code:b.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006}),t.JsonRpcVersionUnsupportedError=b;class v extends a{constructor(e){super(e,{code:v.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001}),t.UserRejectedRequestError=v;class w extends a{constructor(e){super(e,{code:w.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100}),t.UnauthorizedProviderError=w;class A extends a{constructor(e){super(e,{code:A.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200}),t.UnsupportedProviderMethodError=A;class C extends a{constructor(e){super(e,{code:C.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900}),t.ProviderDisconnectedError=C;class E extends a{constructor(e){super(e,{code:E.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901}),t.ChainDisconnectedError=E;class x extends a{constructor(e){super(e,{code:x.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902}),t.SwitchChainError=x;t.UnknownRpcError=class extends o{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},88094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializableTransactionError=t.InvalidLegacyVError=t.FeeConflictError=t.prettyPrint=void 0;const n=r(896668),i=r(929014),o=r(192857);function a(e){const t=Object.entries(e).map((([e,t])=>void 0===t||!1===t?null:[e,t])).filter(Boolean),r=t.reduce(((e,[t])=>Math.max(e,t.length)),0);return t.map((([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`)).join("\n")}t.prettyPrint=a;class s extends o.BaseError{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}t.FeeConflictError=s;class c extends o.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}t.InvalidLegacyVError=c;class u extends o.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}t.InvalidSerializableTransactionError=u;class l extends o.BaseError{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}t.InvalidSerializedTransactionTypeError=l;class d extends o.BaseError{constructor({attributes:e,serializedTransaction:t,type:r}){const n=Object.entries(e).map((([e,t])=>void 0===t?e:void 0)).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,n.length>0?`Missing Attributes: ${n.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=r}}t.InvalidSerializedTransactionError=d;class f extends o.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}t.InvalidStorageKeySizeError=f;class h extends o.BaseError{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:c,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){const g=a({chain:o&&`${o?.name} (id: ${o?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,n.formatEther)(p)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==u&&`${(0,i.formatGwei)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.formatGwei)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",g].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}t.TransactionExecutionError=h;class p extends o.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let o="Transaction";r&&void 0!==i&&(o=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(o=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(o=`Transaction at block number "${t}" at index "${i}"`),n&&(o=`Transaction with hash "${n}"`),super(`${o} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}t.TransactionNotFoundError=p;class g extends o.BaseError{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}t.TransactionReceiptNotFoundError=g;class m extends o.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}t.WaitForTransactionReceiptTimeoutError=m},974839:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlRequiredError=void 0;const n=r(192857);class i extends n.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}t.UrlRequiredError=i},344427:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVersion=t.getUrl=t.getContractAddress=void 0;const n=r(249390);t.getContractAddress=e=>e;t.getUrl=e=>e;t.getVersion=()=>`viem@${n.version}`},249390:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.21.3"},302576:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=t.weiUnits=t.gweiUnits=t.etherUnits=t.zeroAddress=t.multicall3Abi=t.webSocket=t.createWalletClient=t.createTransport=t.walletActions=t.testActions=t.publicActions=t.createTestClient=t.createPublicClient=t.http=t.fallback=t.custom=t.createClient=t.getContract=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.UnknownSignatureError=t.UnknownTypeError=t.SolidityProtectedKeywordError=t.InvalidStructSignatureError=t.InvalidSignatureError=t.InvalidParenthesisError=t.InvalidParameterError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.InvalidAbiItemError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=t.CircularReferenceError=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=void 0,t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiEventNotFoundError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingLengthMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=t.AbiConstructorNotFoundError=t.presignMessagePrefix=t.zeroHash=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=void 0,t.InvalidHexBooleanError=t.IntegerOutOfRangeError=t.InvalidBytesBooleanError=t.DataLengthTooShortError=t.DataLengthTooLongError=t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=t.UserRejectedRequestError=t.UnsupportedProviderMethodError=t.UnknownRpcError=t.UnauthorizedProviderError=t.TransactionRejectedRpcError=t.SwitchChainError=t.RpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.ProviderRpcError=t.ProviderDisconnectedError=t.ParseRpcError=t.MethodNotSupportedRpcError=t.MethodNotFoundRpcError=t.LimitExceededRpcError=t.JsonRpcVersionUnsupportedError=t.InvalidRequestRpcError=t.InvalidParamsRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.ChainDisconnectedError=t.MaxFeePerGasTooLowError=t.Eip1559FeesNotSupportedError=t.BaseFeeScalarError=t.RawContractError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=t.BlockNotFoundError=t.BaseError=t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiEncodingTypeError=t.InvalidAbiDecodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiFunctionSignatureNotFoundError=void 0,t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeDeployData=t.decodeAbiParameters=t.formatLog=t.formatBlock=t.defineBlock=t.namehash=t.labelhash=t.UrlRequiredError=t.SliceOffsetOutOfBoundsError=t.SizeExceedsPaddingSizeError=t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializedTransactionError=t.InvalidSerializableTransactionError=t.InvalidLegacyVError=t.FeeConflictError=t.InvalidAddressError=t.WebSocketRequestError=t.TimeoutError=t.RpcRequestError=t.HttpRequestError=t.FilterTypeNotSupportedError=t.UnknownNodeError=t.TransactionTypeNotSupportedError=t.TipAboveFeeCapError=t.NonceTooLowError=t.NonceTooHighError=t.NonceMaxValueError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=t.EstimateGasExecutionError=t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarInvalidNftUriError=t.EnsAvatarUriResolutionError=t.SizeOverflowError=t.OffsetOutOfBoundsError=t.InvalidHexValueError=void 0,t.toHex=t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toBytes=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.verifyTypedData=t.verifyMessage=t.toRlp=t.hexToRlp=t.bytesToRlp=t.signatureToHex=t.compactSignatureToHex=t.signatureToCompactSignature=t.recoverTypedDataAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.hexToSignature=t.hexToCompactSignature=t.compactSignatureToSignature=t.hashTypedData=t.hashDomain=t.getTransactionType=t.getSerializedTransactionType=t.getCreateAddress=t.getCreate2Address=t.getContractAddress=t.getAbiItem=t.rpcTransactionType=t.formatTransactionRequest=t.defineTransactionRequest=t.formatTransactionReceipt=t.defineTransactionReceipt=t.transactionType=t.formatTransaction=t.defineTransaction=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=void 0,t.parseUnits=t.parseTransaction=t.parseGwei=t.parseEther=t.padHex=t.padBytes=t.pad=t.ripemd160=t.sha256=t.keccak256=t.isHex=t.isHash=t.isBytes=t.isAddressEqual=t.isAddress=t.hashMessage=t.getFunctionSignature=t.getFunctionSelector=t.getEventSignature=t.getEventSelector=t.getContractError=t.getAddress=t.checksumAddress=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.formatUnits=t.formatGwei=t.formatEther=t.encodePacked=t.getChainContractAddress=t.extractChain=t.defineChain=t.assertCurrentChain=t.concatHex=t.concatBytes=t.concat=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.bytesToBigInt=void 0,t.getTypesForEIP712Domain=t.domainSeparator=t.validateTypedData=t.trim=t.stringify=t.sliceHex=t.sliceBytes=t.slice=t.size=t.serializeTransaction=t.serializeAccessList=void 0;var n=r(208557);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return n.CircularReferenceError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return n.InvalidAbiParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return n.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return n.InvalidAbiItemError}}),Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return n.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return n.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return n.InvalidModifierError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return n.InvalidParameterError}}),Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return n.InvalidParenthesisError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return n.InvalidSignatureError}}),Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return n.InvalidStructSignatureError}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return n.SolidityProtectedKeywordError}}),Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return n.UnknownTypeError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return n.UnknownSignatureError}}),Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return n.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return n.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return n.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return n.parseAbiParameters}});var i=r(370894);Object.defineProperty(t,"getContract",{enumerable:!0,get:function(){return i.getContract}});var o=r(930208);Object.defineProperty(t,"createClient",{enumerable:!0,get:function(){return o.createClient}});var a=r(188699);Object.defineProperty(t,"custom",{enumerable:!0,get:function(){return a.custom}});var s=r(558574);Object.defineProperty(t,"fallback",{enumerable:!0,get:function(){return s.fallback}});var c=r(486788);Object.defineProperty(t,"http",{enumerable:!0,get:function(){return c.http}});var u=r(331761);Object.defineProperty(t,"createPublicClient",{enumerable:!0,get:function(){return u.createPublicClient}});var l=r(63964);Object.defineProperty(t,"createTestClient",{enumerable:!0,get:function(){return l.createTestClient}});var d=r(819629);Object.defineProperty(t,"publicActions",{enumerable:!0,get:function(){return d.publicActions}});var f=r(643592);Object.defineProperty(t,"testActions",{enumerable:!0,get:function(){return f.testActions}});var h=r(227861);Object.defineProperty(t,"walletActions",{enumerable:!0,get:function(){return h.walletActions}});var p=r(967763);Object.defineProperty(t,"createTransport",{enumerable:!0,get:function(){return p.createTransport}});var g=r(307821);Object.defineProperty(t,"createWalletClient",{enumerable:!0,get:function(){return g.createWalletClient}});var m=r(987673);Object.defineProperty(t,"webSocket",{enumerable:!0,get:function(){return m.webSocket}});var y=r(100455);Object.defineProperty(t,"multicall3Abi",{enumerable:!0,get:function(){return y.multicall3Abi}});var b=r(838118);Object.defineProperty(t,"zeroAddress",{enumerable:!0,get:function(){return b.zeroAddress}});var v=r(886734);Object.defineProperty(t,"etherUnits",{enumerable:!0,get:function(){return v.etherUnits}}),Object.defineProperty(t,"gweiUnits",{enumerable:!0,get:function(){return v.gweiUnits}}),Object.defineProperty(t,"weiUnits",{enumerable:!0,get:function(){return v.weiUnits}});var w=r(368993);Object.defineProperty(t,"maxInt8",{enumerable:!0,get:function(){return w.maxInt8}}),Object.defineProperty(t,"maxInt16",{enumerable:!0,get:function(){return w.maxInt16}}),Object.defineProperty(t,"maxInt24",{enumerable:!0,get:function(){return w.maxInt24}}),Object.defineProperty(t,"maxInt32",{enumerable:!0,get:function(){return w.maxInt32}}),Object.defineProperty(t,"maxInt40",{enumerable:!0,get:function(){return w.maxInt40}}),Object.defineProperty(t,"maxInt48",{enumerable:!0,get:function(){return w.maxInt48}}),Object.defineProperty(t,"maxInt56",{enumerable:!0,get:function(){return w.maxInt56}}),Object.defineProperty(t,"maxInt64",{enumerable:!0,get:function(){return w.maxInt64}}),Object.defineProperty(t,"maxInt72",{enumerable:!0,get:function(){return w.maxInt72}}),Object.defineProperty(t,"maxInt80",{enumerable:!0,get:function(){return w.maxInt80}}),Object.defineProperty(t,"maxInt88",{enumerable:!0,get:function(){return w.maxInt88}}),Object.defineProperty(t,"maxInt96",{enumerable:!0,get:function(){return w.maxInt96}}),Object.defineProperty(t,"maxInt104",{enumerable:!0,get:function(){return w.maxInt104}}),Object.defineProperty(t,"maxInt112",{enumerable:!0,get:function(){return w.maxInt112}}),Object.defineProperty(t,"maxInt120",{enumerable:!0,get:function(){return w.maxInt120}}),Object.defineProperty(t,"maxInt128",{enumerable:!0,get:function(){return w.maxInt128}}),Object.defineProperty(t,"maxInt136",{enumerable:!0,get:function(){return w.maxInt136}}),Object.defineProperty(t,"maxInt144",{enumerable:!0,get:function(){return w.maxInt144}}),Object.defineProperty(t,"maxInt152",{enumerable:!0,get:function(){return w.maxInt152}}),Object.defineProperty(t,"maxInt160",{enumerable:!0,get:function(){return w.maxInt160}}),Object.defineProperty(t,"maxInt168",{enumerable:!0,get:function(){return w.maxInt168}}),Object.defineProperty(t,"maxInt176",{enumerable:!0,get:function(){return w.maxInt176}}),Object.defineProperty(t,"maxInt184",{enumerable:!0,get:function(){return w.maxInt184}}),Object.defineProperty(t,"maxInt192",{enumerable:!0,get:function(){return w.maxInt192}}),Object.defineProperty(t,"maxInt200",{enumerable:!0,get:function(){return w.maxInt200}}),Object.defineProperty(t,"maxInt208",{enumerable:!0,get:function(){return w.maxInt208}}),Object.defineProperty(t,"maxInt216",{enumerable:!0,get:function(){return w.maxInt216}}),Object.defineProperty(t,"maxInt224",{enumerable:!0,get:function(){return w.maxInt224}}),Object.defineProperty(t,"maxInt232",{enumerable:!0,get:function(){return w.maxInt232}}),Object.defineProperty(t,"maxInt240",{enumerable:!0,get:function(){return w.maxInt240}}),Object.defineProperty(t,"maxInt248",{enumerable:!0,get:function(){return w.maxInt248}}),Object.defineProperty(t,"maxInt256",{enumerable:!0,get:function(){return w.maxInt256}}),Object.defineProperty(t,"maxUint8",{enumerable:!0,get:function(){return w.maxUint8}}),Object.defineProperty(t,"maxUint16",{enumerable:!0,get:function(){return w.maxUint16}}),Object.defineProperty(t,"maxUint24",{enumerable:!0,get:function(){return w.maxUint24}}),Object.defineProperty(t,"maxUint32",{enumerable:!0,get:function(){return w.maxUint32}}),Object.defineProperty(t,"maxUint40",{enumerable:!0,get:function(){return w.maxUint40}}),Object.defineProperty(t,"maxUint48",{enumerable:!0,get:function(){return w.maxUint48}}),Object.defineProperty(t,"maxUint56",{enumerable:!0,get:function(){return w.maxUint56}}),Object.defineProperty(t,"maxUint64",{enumerable:!0,get:function(){return w.maxUint64}}),Object.defineProperty(t,"maxUint72",{enumerable:!0,get:function(){return w.maxUint72}}),Object.defineProperty(t,"maxUint80",{enumerable:!0,get:function(){return w.maxUint80}}),Object.defineProperty(t,"maxUint88",{enumerable:!0,get:function(){return w.maxUint88}}),Object.defineProperty(t,"maxUint96",{enumerable:!0,get:function(){return w.maxUint96}}),Object.defineProperty(t,"maxUint104",{enumerable:!0,get:function(){return w.maxUint104}}),Object.defineProperty(t,"maxUint112",{enumerable:!0,get:function(){return w.maxUint112}}),Object.defineProperty(t,"maxUint120",{enumerable:!0,get:function(){return w.maxUint120}}),Object.defineProperty(t,"maxUint128",{enumerable:!0,get:function(){return w.maxUint128}}),Object.defineProperty(t,"maxUint136",{enumerable:!0,get:function(){return w.maxUint136}}),Object.defineProperty(t,"maxUint144",{enumerable:!0,get:function(){return w.maxUint144}}),Object.defineProperty(t,"maxUint152",{enumerable:!0,get:function(){return w.maxUint152}}),Object.defineProperty(t,"maxUint160",{enumerable:!0,get:function(){return w.maxUint160}}),Object.defineProperty(t,"maxUint168",{enumerable:!0,get:function(){return w.maxUint168}}),Object.defineProperty(t,"maxUint176",{enumerable:!0,get:function(){return w.maxUint176}}),Object.defineProperty(t,"maxUint184",{enumerable:!0,get:function(){return w.maxUint184}}),Object.defineProperty(t,"maxUint192",{enumerable:!0,get:function(){return w.maxUint192}}),Object.defineProperty(t,"maxUint200",{enumerable:!0,get:function(){return w.maxUint200}}),Object.defineProperty(t,"maxUint208",{enumerable:!0,get:function(){return w.maxUint208}}),Object.defineProperty(t,"maxUint216",{enumerable:!0,get:function(){return w.maxUint216}}),Object.defineProperty(t,"maxUint224",{enumerable:!0,get:function(){return w.maxUint224}}),Object.defineProperty(t,"maxUint232",{enumerable:!0,get:function(){return w.maxUint232}}),Object.defineProperty(t,"maxUint240",{enumerable:!0,get:function(){return w.maxUint240}}),Object.defineProperty(t,"maxUint248",{enumerable:!0,get:function(){return w.maxUint248}}),Object.defineProperty(t,"maxUint256",{enumerable:!0,get:function(){return w.maxUint256}}),Object.defineProperty(t,"minInt8",{enumerable:!0,get:function(){return w.minInt8}}),Object.defineProperty(t,"minInt16",{enumerable:!0,get:function(){return w.minInt16}}),Object.defineProperty(t,"minInt24",{enumerable:!0,get:function(){return w.minInt24}}),Object.defineProperty(t,"minInt32",{enumerable:!0,get:function(){return w.minInt32}}),Object.defineProperty(t,"minInt40",{enumerable:!0,get:function(){return w.minInt40}}),Object.defineProperty(t,"minInt48",{enumerable:!0,get:function(){return w.minInt48}}),Object.defineProperty(t,"minInt56",{enumerable:!0,get:function(){return w.minInt56}}),Object.defineProperty(t,"minInt64",{enumerable:!0,get:function(){return w.minInt64}}),Object.defineProperty(t,"minInt72",{enumerable:!0,get:function(){return w.minInt72}}),Object.defineProperty(t,"minInt80",{enumerable:!0,get:function(){return w.minInt80}}),Object.defineProperty(t,"minInt88",{enumerable:!0,get:function(){return w.minInt88}}),Object.defineProperty(t,"minInt96",{enumerable:!0,get:function(){return w.minInt96}}),Object.defineProperty(t,"minInt104",{enumerable:!0,get:function(){return w.minInt104}}),Object.defineProperty(t,"minInt112",{enumerable:!0,get:function(){return w.minInt112}}),Object.defineProperty(t,"minInt120",{enumerable:!0,get:function(){return w.minInt120}}),Object.defineProperty(t,"minInt128",{enumerable:!0,get:function(){return w.minInt128}}),Object.defineProperty(t,"minInt136",{enumerable:!0,get:function(){return w.minInt136}}),Object.defineProperty(t,"minInt144",{enumerable:!0,get:function(){return w.minInt144}}),Object.defineProperty(t,"minInt152",{enumerable:!0,get:function(){return w.minInt152}}),Object.defineProperty(t,"minInt160",{enumerable:!0,get:function(){return w.minInt160}}),Object.defineProperty(t,"minInt168",{enumerable:!0,get:function(){return w.minInt168}}),Object.defineProperty(t,"minInt176",{enumerable:!0,get:function(){return w.minInt176}}),Object.defineProperty(t,"minInt184",{enumerable:!0,get:function(){return w.minInt184}}),Object.defineProperty(t,"minInt192",{enumerable:!0,get:function(){return w.minInt192}}),Object.defineProperty(t,"minInt200",{enumerable:!0,get:function(){return w.minInt200}}),Object.defineProperty(t,"minInt208",{enumerable:!0,get:function(){return w.minInt208}}),Object.defineProperty(t,"minInt216",{enumerable:!0,get:function(){return w.minInt216}}),Object.defineProperty(t,"minInt224",{enumerable:!0,get:function(){return w.minInt224}}),Object.defineProperty(t,"minInt232",{enumerable:!0,get:function(){return w.minInt232}}),Object.defineProperty(t,"minInt240",{enumerable:!0,get:function(){return w.minInt240}}),Object.defineProperty(t,"minInt248",{enumerable:!0,get:function(){return w.minInt248}}),Object.defineProperty(t,"minInt256",{enumerable:!0,get:function(){return w.minInt256}});var A=r(520349);Object.defineProperty(t,"zeroHash",{enumerable:!0,get:function(){return A.zeroHash}});var C=r(510632);Object.defineProperty(t,"presignMessagePrefix",{enumerable:!0,get:function(){return C.presignMessagePrefix}});var E=r(112060);Object.defineProperty(t,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return E.AbiConstructorNotFoundError}}),Object.defineProperty(t,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return E.AbiConstructorParamsNotFoundError}}),Object.defineProperty(t,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return E.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(t,"AbiDecodingDataSizeTooSmallError",{enumerable:!0,get:function(){return E.AbiDecodingDataSizeTooSmallError}}),Object.defineProperty(t,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return E.AbiDecodingZeroDataError}}),Object.defineProperty(t,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return E.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(t,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return E.AbiEncodingLengthMismatchError}}),Object.defineProperty(t,"AbiEncodingBytesSizeMismatchError",{enumerable:!0,get:function(){return E.AbiEncodingBytesSizeMismatchError}}),Object.defineProperty(t,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return E.AbiErrorInputsNotFoundError}}),Object.defineProperty(t,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return E.AbiErrorNotFoundError}}),Object.defineProperty(t,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return E.AbiErrorSignatureNotFoundError}}),Object.defineProperty(t,"AbiEventNotFoundError",{enumerable:!0,get:function(){return E.AbiEventNotFoundError}}),Object.defineProperty(t,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return E.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(t,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return E.AbiEventSignatureNotFoundError}}),Object.defineProperty(t,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return E.AbiFunctionNotFoundError}}),Object.defineProperty(t,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return E.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(t,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return E.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(t,"BytesSizeMismatchError",{enumerable:!0,get:function(){return E.BytesSizeMismatchError}}),Object.defineProperty(t,"DecodeLogDataMismatch",{enumerable:!0,get:function(){return E.DecodeLogDataMismatch}}),Object.defineProperty(t,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return E.DecodeLogTopicsMismatch}}),Object.defineProperty(t,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return E.InvalidAbiDecodingTypeError}}),Object.defineProperty(t,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return E.InvalidAbiEncodingTypeError}}),Object.defineProperty(t,"InvalidArrayError",{enumerable:!0,get:function(){return E.InvalidArrayError}}),Object.defineProperty(t,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return E.InvalidDefinitionTypeError}}),Object.defineProperty(t,"UnsupportedPackedAbiType",{enumerable:!0,get:function(){return E.UnsupportedPackedAbiType}});var x=r(192857);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return x.BaseError}});var S=r(574227);Object.defineProperty(t,"BlockNotFoundError",{enumerable:!0,get:function(){return S.BlockNotFoundError}});var I=r(582054);Object.defineProperty(t,"CallExecutionError",{enumerable:!0,get:function(){return I.CallExecutionError}}),Object.defineProperty(t,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return I.ContractFunctionExecutionError}}),Object.defineProperty(t,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return I.ContractFunctionRevertedError}}),Object.defineProperty(t,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return I.ContractFunctionZeroDataError}}),Object.defineProperty(t,"RawContractError",{enumerable:!0,get:function(){return I.RawContractError}});var k=r(973874);Object.defineProperty(t,"BaseFeeScalarError",{enumerable:!0,get:function(){return k.BaseFeeScalarError}}),Object.defineProperty(t,"Eip1559FeesNotSupportedError",{enumerable:!0,get:function(){return k.Eip1559FeesNotSupportedError}}),Object.defineProperty(t,"MaxFeePerGasTooLowError",{enumerable:!0,get:function(){return k.MaxFeePerGasTooLowError}});var _=r(859577);Object.defineProperty(t,"ChainDisconnectedError",{enumerable:!0,get:function(){return _.ChainDisconnectedError}}),Object.defineProperty(t,"InternalRpcError",{enumerable:!0,get:function(){return _.InternalRpcError}}),Object.defineProperty(t,"InvalidInputRpcError",{enumerable:!0,get:function(){return _.InvalidInputRpcError}}),Object.defineProperty(t,"InvalidParamsRpcError",{enumerable:!0,get:function(){return _.InvalidParamsRpcError}}),Object.defineProperty(t,"InvalidRequestRpcError",{enumerable:!0,get:function(){return _.InvalidRequestRpcError}}),Object.defineProperty(t,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return _.JsonRpcVersionUnsupportedError}}),Object.defineProperty(t,"LimitExceededRpcError",{enumerable:!0,get:function(){return _.LimitExceededRpcError}}),Object.defineProperty(t,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return _.MethodNotFoundRpcError}}),Object.defineProperty(t,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return _.MethodNotSupportedRpcError}}),Object.defineProperty(t,"ParseRpcError",{enumerable:!0,get:function(){return _.ParseRpcError}}),Object.defineProperty(t,"ProviderDisconnectedError",{enumerable:!0,get:function(){return _.ProviderDisconnectedError}}),Object.defineProperty(t,"ProviderRpcError",{enumerable:!0,get:function(){return _.ProviderRpcError}}),Object.defineProperty(t,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return _.ResourceNotFoundRpcError}}),Object.defineProperty(t,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return _.ResourceUnavailableRpcError}}),Object.defineProperty(t,"RpcError",{enumerable:!0,get:function(){return _.RpcError}}),Object.defineProperty(t,"SwitchChainError",{enumerable:!0,get:function(){return _.SwitchChainError}}),Object.defineProperty(t,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return _.TransactionRejectedRpcError}}),Object.defineProperty(t,"UnauthorizedProviderError",{enumerable:!0,get:function(){return _.UnauthorizedProviderError}}),Object.defineProperty(t,"UnknownRpcError",{enumerable:!0,get:function(){return _.UnknownRpcError}}),Object.defineProperty(t,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return _.UnsupportedProviderMethodError}}),Object.defineProperty(t,"UserRejectedRequestError",{enumerable:!0,get:function(){return _.UserRejectedRequestError}});var T=r(601679);Object.defineProperty(t,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return T.ChainDoesNotSupportContract}}),Object.defineProperty(t,"ChainMismatchError",{enumerable:!0,get:function(){return T.ChainMismatchError}}),Object.defineProperty(t,"ChainNotFoundError",{enumerable:!0,get:function(){return T.ChainNotFoundError}}),Object.defineProperty(t,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return T.ClientChainNotConfiguredError}}),Object.defineProperty(t,"InvalidChainIdError",{enumerable:!0,get:function(){return T.InvalidChainIdError}});var M=r(984077);Object.defineProperty(t,"DataLengthTooLongError",{enumerable:!0,get:function(){return M.DataLengthTooLongError}}),Object.defineProperty(t,"DataLengthTooShortError",{enumerable:!0,get:function(){return M.DataLengthTooShortError}}),Object.defineProperty(t,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return M.InvalidBytesBooleanError}}),Object.defineProperty(t,"IntegerOutOfRangeError",{enumerable:!0,get:function(){return M.IntegerOutOfRangeError}}),Object.defineProperty(t,"InvalidHexBooleanError",{enumerable:!0,get:function(){return M.InvalidHexBooleanError}}),Object.defineProperty(t,"InvalidHexValueError",{enumerable:!0,get:function(){return M.InvalidHexValueError}}),Object.defineProperty(t,"OffsetOutOfBoundsError",{enumerable:!0,get:function(){return M.OffsetOutOfBoundsError}}),Object.defineProperty(t,"SizeOverflowError",{enumerable:!0,get:function(){return M.SizeOverflowError}});var P=r(438838);Object.defineProperty(t,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return P.EnsAvatarUriResolutionError}}),Object.defineProperty(t,"EnsAvatarInvalidNftUriError",{enumerable:!0,get:function(){return P.EnsAvatarInvalidNftUriError}}),Object.defineProperty(t,"EnsAvatarUnsupportedNamespaceError",{enumerable:!0,get:function(){return P.EnsAvatarUnsupportedNamespaceError}});var j=r(700137);Object.defineProperty(t,"EstimateGasExecutionError",{enumerable:!0,get:function(){return j.EstimateGasExecutionError}});var D=r(585296);Object.defineProperty(t,"ExecutionRevertedError",{enumerable:!0,get:function(){return D.ExecutionRevertedError}}),Object.defineProperty(t,"FeeCapTooHighError",{enumerable:!0,get:function(){return D.FeeCapTooHighError}}),Object.defineProperty(t,"FeeCapTooLowError",{enumerable:!0,get:function(){return D.FeeCapTooLowError}}),Object.defineProperty(t,"InsufficientFundsError",{enumerable:!0,get:function(){return D.InsufficientFundsError}}),Object.defineProperty(t,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return D.IntrinsicGasTooHighError}}),Object.defineProperty(t,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return D.IntrinsicGasTooLowError}}),Object.defineProperty(t,"NonceMaxValueError",{enumerable:!0,get:function(){return D.NonceMaxValueError}}),Object.defineProperty(t,"NonceTooHighError",{enumerable:!0,get:function(){return D.NonceTooHighError}}),Object.defineProperty(t,"NonceTooLowError",{enumerable:!0,get:function(){return D.NonceTooLowError}}),Object.defineProperty(t,"TipAboveFeeCapError",{enumerable:!0,get:function(){return D.TipAboveFeeCapError}}),Object.defineProperty(t,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return D.TransactionTypeNotSupportedError}}),Object.defineProperty(t,"UnknownNodeError",{enumerable:!0,get:function(){return D.UnknownNodeError}});var O=r(150896);Object.defineProperty(t,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return O.FilterTypeNotSupportedError}});var B=r(997811);Object.defineProperty(t,"HttpRequestError",{enumerable:!0,get:function(){return B.HttpRequestError}}),Object.defineProperty(t,"RpcRequestError",{enumerable:!0,get:function(){return B.RpcRequestError}}),Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return B.TimeoutError}}),Object.defineProperty(t,"WebSocketRequestError",{enumerable:!0,get:function(){return B.WebSocketRequestError}});var N=r(79746);Object.defineProperty(t,"InvalidAddressError",{enumerable:!0,get:function(){return N.InvalidAddressError}});var R=r(88094);Object.defineProperty(t,"FeeConflictError",{enumerable:!0,get:function(){return R.FeeConflictError}}),Object.defineProperty(t,"InvalidLegacyVError",{enumerable:!0,get:function(){return R.InvalidLegacyVError}}),Object.defineProperty(t,"InvalidSerializableTransactionError",{enumerable:!0,get:function(){return R.InvalidSerializableTransactionError}}),Object.defineProperty(t,"InvalidSerializedTransactionError",{enumerable:!0,get:function(){return R.InvalidSerializedTransactionError}}),Object.defineProperty(t,"InvalidSerializedTransactionTypeError",{enumerable:!0,get:function(){return R.InvalidSerializedTransactionTypeError}}),Object.defineProperty(t,"InvalidStorageKeySizeError",{enumerable:!0,get:function(){return R.InvalidStorageKeySizeError}}),Object.defineProperty(t,"TransactionExecutionError",{enumerable:!0,get:function(){return R.TransactionExecutionError}}),Object.defineProperty(t,"TransactionNotFoundError",{enumerable:!0,get:function(){return R.TransactionNotFoundError}}),Object.defineProperty(t,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return R.TransactionReceiptNotFoundError}}),Object.defineProperty(t,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return R.WaitForTransactionReceiptTimeoutError}});var L=r(621304);Object.defineProperty(t,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return L.SizeExceedsPaddingSizeError}}),Object.defineProperty(t,"SliceOffsetOutOfBoundsError",{enumerable:!0,get:function(){return L.SliceOffsetOutOfBoundsError}});var F=r(974839);Object.defineProperty(t,"UrlRequiredError",{enumerable:!0,get:function(){return F.UrlRequiredError}});var U=r(817219);Object.defineProperty(t,"labelhash",{enumerable:!0,get:function(){return U.labelhash}});var z=r(244130);Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return z.namehash}});var H=r(483849);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return H.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return H.formatBlock}});var V=r(873886);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return V.formatLog}});var K=r(480507);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return K.decodeAbiParameters}});var G=r(120138);Object.defineProperty(t,"decodeDeployData",{enumerable:!0,get:function(){return G.decodeDeployData}});var q=r(250054);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return q.decodeErrorResult}});var Q=r(538507);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return Q.decodeEventLog}});var W=r(509025);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return W.decodeFunctionData}});var J=r(608540);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return J.decodeFunctionResult}});var Y=r(689219);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return Y.encodeAbiParameters}});var Z=r(981618);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return Z.encodeDeployData}});var $=r(580494);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return $.encodeErrorResult}});var X=r(607873);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return X.encodeEventTopics}});var ee=r(36217);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return ee.encodeFunctionData}});var te=r(820708);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return te.encodeFunctionResult}});var re=r(477100);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return re.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return re.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return re.transactionType}});var ne=r(928490);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return ne.defineTransactionReceipt}}),Object.defineProperty(t,"formatTransactionReceipt",{enumerable:!0,get:function(){return ne.formatTransactionReceipt}});var ie=r(575847);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return ie.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return ie.formatTransactionRequest}}),Object.defineProperty(t,"rpcTransactionType",{enumerable:!0,get:function(){return ie.rpcTransactionType}});var oe=r(517706);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return oe.getAbiItem}});var ae=r(74763);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return ae.getContractAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return ae.getCreate2Address}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return ae.getCreateAddress}});var se=r(880523);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return se.getSerializedTransactionType}});var ce=r(933105);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return ce.getTransactionType}});var ue=r(281835);Object.defineProperty(t,"hashDomain",{enumerable:!0,get:function(){return ue.hashDomain}}),Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return ue.hashTypedData}});var le=r(339801);Object.defineProperty(t,"compactSignatureToSignature",{enumerable:!0,get:function(){return le.compactSignatureToSignature}});var de=r(223674);Object.defineProperty(t,"hexToCompactSignature",{enumerable:!0,get:function(){return de.hexToCompactSignature}});var fe=r(615769);Object.defineProperty(t,"hexToSignature",{enumerable:!0,get:function(){return fe.hexToSignature}});var he=r(966795);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return he.recoverAddress}});var pe=r(924674);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return pe.recoverMessageAddress}});var ge=r(832899);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return ge.recoverPublicKey}});var me=r(386399);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return me.recoverTypedDataAddress}});var ye=r(919453);Object.defineProperty(t,"signatureToCompactSignature",{enumerable:!0,get:function(){return ye.signatureToCompactSignature}});var be=r(632154);Object.defineProperty(t,"compactSignatureToHex",{enumerable:!0,get:function(){return be.compactSignatureToHex}});var ve=r(822063);Object.defineProperty(t,"signatureToHex",{enumerable:!0,get:function(){return ve.signatureToHex}});var we=r(246915);Object.defineProperty(t,"bytesToRlp",{enumerable:!0,get:function(){return we.bytesToRlp}}),Object.defineProperty(t,"hexToRlp",{enumerable:!0,get:function(){return we.hexToRlp}}),Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return we.toRlp}});var Ae=r(670043);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return Ae.verifyMessage}});var Ce=r(473296);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return Ce.verifyTypedData}});var Ee=r(71526);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return Ee.assertRequest}});var xe=r(293523);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return xe.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return xe.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return xe.assertTransactionLegacy}});var Se=r(184962);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return Se.boolToBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return Se.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return Se.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return Se.stringToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return Se.toBytes}});var Ie=r(214368);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return Ie.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return Ie.bytesToHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return Ie.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return Ie.stringToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return Ie.toHex}});var ke=r(441049);Object.defineProperty(t,"bytesToBigInt",{enumerable:!0,get:function(){return ke.bytesToBigInt}}),Object.defineProperty(t,"bytesToBigint",{enumerable:!0,get:function(){return ke.bytesToBigInt}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return ke.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return ke.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return ke.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return ke.fromBytes}});var _e=r(78383);Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return _e.ccipFetch}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return _e.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return _e.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return _e.offchainLookupSignature}});var Te=r(283755);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return Te.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return Te.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return Te.concatHex}});var Me=r(755014);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return Me.assertCurrentChain}});var Pe=r(293300);Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return Pe.defineChain}});var je=r(178224);Object.defineProperty(t,"extractChain",{enumerable:!0,get:function(){return je.extractChain}});var De=r(778849);Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return De.getChainContractAddress}});var Oe=r(668597);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return Oe.encodePacked}});var Be=r(896668);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return Be.formatEther}});var Ne=r(929014);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return Ne.formatGwei}});var Re=r(516159);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return Re.formatUnits}});var Le=r(15987);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return Le.fromHex}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return Le.hexToBigInt}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return Le.hexToBool}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return Le.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return Le.hexToString}});var Fe=r(734308);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return Fe.fromRlp}});var Ue=r(115257);Object.defineProperty(t,"checksumAddress",{enumerable:!0,get:function(){return Ue.checksumAddress}}),Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return Ue.getAddress}});var ze=r(868062);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return ze.getContractError}});var He=r(110566);Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return He.getEventSelector}});var Ve=r(932917);Object.defineProperty(t,"getEventSignature",{enumerable:!0,get:function(){return Ve.getEventSignature}});var Ke=r(801462);Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return Ke.getFunctionSelector}});var Ge=r(519813);Object.defineProperty(t,"getFunctionSignature",{enumerable:!0,get:function(){return Ge.getFunctionSignature}});var qe=r(73588);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return qe.hashMessage}});var Qe=r(208305);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return Qe.isAddress}});var We=r(651213);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return We.isAddressEqual}});var Je=r(270732);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return Je.isBytes}});var Ye=r(920899);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return Ye.isHash}});var Ze=r(771482);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return Ze.isHex}});var $e=r(829336);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return $e.keccak256}});var Xe=r(875248);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return Xe.sha256}});var et=r(381855);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return et.ripemd160}});var tt=r(511965);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return tt.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return tt.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return tt.padHex}});var rt=r(68184);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return rt.parseEther}});var nt=r(406234);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return nt.parseGwei}});var it=r(23356);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return it.parseTransaction}});var ot=r(914491);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return ot.parseUnits}});var at=r(706653);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return at.serializeAccessList}});var st=r(823067);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return st.serializeTransaction}});var ct=r(269662);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return ct.size}});var ut=r(93577);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return ut.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return ut.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return ut.sliceHex}});var lt=r(766527);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return lt.stringify}});var dt=r(939415);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return dt.trim}});var ft=r(72318);Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return ft.validateTypedData}}),Object.defineProperty(t,"domainSeparator",{enumerable:!0,get:function(){return ft.domainSeparator}}),Object.defineProperty(t,"getTypesForEIP712Domain",{enumerable:!0,get:function(){return ft.getTypesForEIP712Domain}})},480507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeAbiParameters=void 0;const n=r(112060),i=r(115257),o=r(269662),a=r(93577),s=r(939415),c=r(15987),u=r(689219);function l({data:e,param:t,position:r}){const o=(0,u.getArrayComponents)(t.type);if(o){const[n,i]=o;return function(e,{param:t,length:r,position:n}){if(!r){const r=(0,c.hexToNumber)((0,a.slice)(e,n,n+32,{strict:!0})),i=(0,c.hexToNumber)((0,a.slice)(e,r,r+32,{strict:!0}));let o=0;const s=[];for(let n=0;n!e)),i=n?[]:{};let o=0;if(d(t)){const s=(0,c.hexToNumber)((0,a.slice)(e,r,r+32,{strict:!0}));for(let r=0;r48?(0,c.hexToBigInt)(e,{signed:r}):(0,c.hexToNumber)(e,{signed:r})}}(f,{param:t});if("address"===t.type)return function(e){return{consumed:32,value:(0,i.checksumAddress)((0,a.slice)(e,-20))}}(f);if("bool"===t.type)return function(e){return{consumed:32,value:(0,c.hexToBool)(e)}}(f);throw new n.InvalidAbiDecodingTypeError(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function d(e){const{type:t}=e;if("string"===t)return!0;if("bytes"===t)return!0;if(t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(d);const r=(0,u.getArrayComponents)(e.type);return!(!r||!d({...e,type:r[1]}))}t.decodeAbiParameters=function(e,t){if("0x"===t&&e.length>0)throw new n.AbiDecodingZeroDataError;if((0,o.size)(t)&&(0,o.size)(t)<32)throw new n.AbiDecodingDataSizeTooSmallError({data:t,params:e,size:(0,o.size)(t)});return function({data:e,params:t}){const r=[];let i=0;for(let a=0;a=(0,o.size)(e))throw new n.AbiDecodingDataSizeTooSmallError({data:e,params:t,size:(0,o.size)(e)});const s=t[a],{consumed:c,value:u}=l({data:e,param:s,position:i});r.push(u),i+=c}return r}({data:t,params:e})}},120138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeDeployData=void 0;const n=r(112060),i=r(480507),o="/docs/contract/decodeDeployData";t.decodeDeployData=function({abi:e,bytecode:t,data:r}){if(r===t)return{bytecode:t};const a=e.find((e=>"type"in e&&"constructor"===e.type));if(!a)throw new n.AbiConstructorNotFoundError({docsPath:o});if(!("inputs"in a))throw new n.AbiConstructorParamsNotFoundError({docsPath:o});if(!a.inputs||0===a.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:o});return{args:(0,i.decodeAbiParameters)(a.inputs,`0x${r.replace(t,"")}`),bytecode:t}}},250054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeErrorResult=void 0;const n=r(407077),i=r(112060),o=r(93577),a=r(801462),s=r(480507),c=r(539807);t.decodeErrorResult=function({abi:e,data:t}){const r=(0,o.slice)(t,0,4);if("0x"===r)throw new i.AbiDecodingZeroDataError;const u=[...e||[],n.solidityError,n.solidityPanic].find((e=>"error"===e.type&&r===(0,a.getFunctionSelector)((0,c.formatAbiItem)(e))));if(!u)throw new i.AbiErrorSignatureNotFoundError(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:u,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.decodeAbiParameters)(u.inputs,(0,o.slice)(t,4)):void 0,errorName:u.name}}},538507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeEventLog=void 0;const n=r(112060),i=r(110566),o=r(480507),a=r(539807),s="/docs/contract/decodeEventLog";function c({param:e,value:t}){if("string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))return t;return((0,o.decodeAbiParameters)([e],t)||[])[0]}t.decodeEventLog=function({abi:e,data:t,strict:r,topics:u}){const l=r??!0,[d,...f]=u;if(!d)throw new n.AbiEventSignatureEmptyTopicsError({docsPath:s});const h=e.find((e=>"event"===e.type&&d===(0,i.getEventSelector)((0,a.formatAbiItem)(e))));if(!h||!("name"in h)||"event"!==h.type)throw new n.AbiEventSignatureNotFoundError(d,{docsPath:s});const{name:p,inputs:g}=h,m=g?.some((e=>!("name"in e&&e.name)));let y=m?[]:{};const b=g.filter((e=>"indexed"in e&&e.indexed));for(let i=0;i!("indexed"in e&&e.indexed)));if(v.length>0)if(t&&"0x"!==t)try{const e=(0,o.decodeAbiParameters)(v,t);if(e)if(m)y=[...y,...e];else for(let t=0;t0?y:void 0}}},509025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionData=void 0;const n=r(112060),i=r(93577),o=r(801462),a=r(480507),s=r(539807);t.decodeFunctionData=function({abi:e,data:t}){const r=(0,i.slice)(t,0,4),c=e.find((e=>"function"===e.type&&r===(0,o.getFunctionSelector)((0,s.formatAbiItem)(e))));if(!c)throw new n.AbiFunctionSignatureNotFoundError(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:c.name,args:"inputs"in c&&c.inputs&&c.inputs.length>0?(0,a.decodeAbiParameters)(c.inputs,(0,i.slice)(t,4)):void 0}}},608540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionResult=void 0;const n=r(112060),i=r(480507),o=r(517706),a="/docs/contract/decodeFunctionResult";t.decodeFunctionResult=function({abi:e,args:t,functionName:r,data:s}){let c=e[0];if(r&&(c=(0,o.getAbiItem)({abi:e,args:t,name:r}),!c))throw new n.AbiFunctionNotFoundError(r,{docsPath:a});if("function"!==c.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:a});if(!c.outputs)throw new n.AbiFunctionOutputsNotFoundError(c.name,{docsPath:a});const u=(0,i.decodeAbiParameters)(c.outputs,s);return u&&u.length>1?u:u&&1===u.length?u[0]:void 0}},689219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArrayComponents=t.encodeAbiParameters=void 0;const n=r(112060),i=r(79746),o=r(208305),a=r(283755),s=r(511965),c=r(269662),u=r(93577),l=r(214368);function d({param:e,value:t}){const r=h(e.type);if(r){const[i,o]=r;return function(e,{length:t,param:r}){const i=null===t;if(!Array.isArray(e))throw new n.InvalidArrayError(e);if(!i&&e.length!==t)throw new n.AbiEncodingArrayLengthMismatchError({expectedLength:t,givenLength:e.length,type:`${r.type}[${t}]`});let o=!1;const s=[];for(let n=0;n0?(0,a.concat)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,a.concat)(s.map((({encoded:e})=>e)))}}(t,{length:i,param:{...e,type:o}})}if("tuple"===e.type)return function(e,{param:t}){let r=!1;const n=[];for(let i=0;ie)))}}(t,{param:e});if("address"===e.type)return function(e){if(!(0,o.isAddress)(e))throw new i.InvalidAddressError({address:e});return{dynamic:!1,encoded:(0,s.padHex)(e.toLowerCase())}}(t);if("bool"===e.type)return function(e){return{dynamic:!1,encoded:(0,s.padHex)((0,l.boolToHex)(e))}}(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){return function(e,{signed:t}){return{dynamic:!1,encoded:(0,l.numberToHex)(e,{size:32,signed:t})}}(t,{signed:e.type.startsWith("int")})}if(e.type.startsWith("bytes"))return function(e,{param:t}){const[,r]=t.type.split("bytes"),i=(0,c.size)(e);if(!r){let t=e;return i%32!=0&&(t=(0,s.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,a.concat)([(0,s.padHex)((0,l.numberToHex)(i,{size:32})),t])}}if(i!==parseInt(r))throw new n.AbiEncodingBytesSizeMismatchError({expectedSize:parseInt(r),value:e});return{dynamic:!1,encoded:(0,s.padHex)(e,{dir:"right"})}}(t,{param:e});if("string"===e.type)return function(e){const t=(0,l.stringToHex)(e),r=Math.ceil((0,c.size)(t)/32),n=[];for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeDeployData=void 0;const n=r(112060),i=r(283755),o=r(689219),a="/docs/contract/encodeDeployData";t.encodeDeployData=function({abi:e,args:t,bytecode:r}){if(!t||0===t.length)return r;const s=e.find((e=>"type"in e&&"constructor"===e.type));if(!s)throw new n.AbiConstructorNotFoundError({docsPath:a});if(!("inputs"in s))throw new n.AbiConstructorParamsNotFoundError({docsPath:a});if(!s.inputs||0===s.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:a});const c=(0,o.encodeAbiParameters)(s.inputs,t);return(0,i.concatHex)([r,c])}},580494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeErrorResult=void 0;const n=r(112060),i=r(283755),o=r(801462),a=r(689219),s=r(539807),c=r(517706),u="/docs/contract/encodeErrorResult";t.encodeErrorResult=function({abi:e,errorName:t,args:r}){let l=e[0];if(t&&(l=(0,c.getAbiItem)({abi:e,args:r,name:t}),!l))throw new n.AbiErrorNotFoundError(t,{docsPath:u});if("error"!==l.type)throw new n.AbiErrorNotFoundError(void 0,{docsPath:u});const d=(0,s.formatAbiItem)(l),f=(0,o.getFunctionSelector)(d);let h="0x";if(r&&r.length>0){if(!l.inputs)throw new n.AbiErrorInputsNotFoundError(l.name,{docsPath:u});h=(0,a.encodeAbiParameters)(l.inputs,r)}return(0,i.concatHex)([f,h])}},607873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeEventTopics=void 0;const n=r(112060),i=r(150896),o=r(184962),a=r(110566),s=r(829336),c=r(689219),u=r(539807),l=r(517706);function d({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,s.keccak256)((0,o.toBytes)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new i.FilterTypeNotSupportedError(e.type);return(0,c.encodeAbiParameters)([e],[t])}t.encodeEventTopics=function({abi:e,eventName:t,args:r}){let i=e[0];if(t&&(i=(0,l.getAbiItem)({abi:e,args:r,name:t}),!i))throw new n.AbiEventNotFoundError(t,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==i.type)throw new n.AbiEventNotFoundError(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const o=(0,u.formatAbiItem)(i),s=(0,a.getEventSelector)(o);let c=[];if(r&&"inputs"in i){const e=i.inputs?.filter((e=>"indexed"in e&&e.indexed)),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map((e=>r[e.name]))??[]:[];t.length>0&&(c=e?.map(((e,r)=>Array.isArray(t[r])?t[r].map(((n,i)=>d({param:e,value:t[r][i]}))):t[r]?d({param:e,value:t[r]}):null))??[])}return[s,...c]}},36217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionData=void 0;const n=r(112060),i=r(283755),o=r(801462),a=r(689219),s=r(539807),c=r(517706);t.encodeFunctionData=function({abi:e,args:t,functionName:r}){let u=e[0];if(r&&(u=(0,c.getAbiItem)({abi:e,args:t,name:r}),!u))throw new n.AbiFunctionNotFoundError(r,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==u.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const l=(0,s.formatAbiItem)(u),d=(0,o.getFunctionSelector)(l),f="inputs"in u&&u.inputs?(0,a.encodeAbiParameters)(u.inputs,t??[]):void 0;return(0,i.concatHex)([d,f??"0x"])}},820708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionResult=void 0;const n=r(112060),i=r(689219),o=r(517706);t.encodeFunctionResult=function({abi:e,functionName:t,result:r}){let a=e[0];if(t&&(a=(0,o.getAbiItem)({abi:e,name:t}),!a))throw new n.AbiFunctionNotFoundError(t,{docsPath:"/docs/contract/encodeFunctionResult"});if("function"!==a.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionResult"});if(!a.outputs)throw new n.AbiFunctionOutputsNotFoundError(a.name,{docsPath:"/docs/contract/encodeFunctionResult"});let s=Array.isArray(r)?r:[r];return 0!==a.outputs.length||s[0]||(s=[]),(0,i.encodeAbiParameters)(a.outputs,s)}},668597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacked=void 0;const n=r(112060),i=r(79746),o=r(208305),a=r(283755),s=r(511965),c=r(214368),u=r(685797);function l(e,t,r=!1){if("address"===e){const e=t;if(!(0,o.isAddress)(e))throw new i.InvalidAddressError({address:e});return(0,s.pad)(e.toLowerCase(),{size:r?32:null})}if("string"===e)return(0,c.stringToHex)(t);if("bytes"===e)return t;if("bool"===e)return(0,s.pad)((0,c.boolToHex)(t),{size:r?32:1});const d=e.match(u.integerRegex);if(d){const[e,n,i="256"]=d,o=parseInt(i)/8;return(0,c.numberToHex)(t,{size:r?32:o,signed:"int"===n})}const f=e.match(u.bytesRegex);if(f){const[e,i]=f;if(parseInt(i)!==(t.length-2)/2)throw new n.BytesSizeMismatchError({expectedSize:parseInt(i),givenSize:(t.length-2)/2});return(0,s.pad)(t,{dir:"right",size:r?32:null})}const h=e.match(u.arrayRegex);if(h&&Array.isArray(t)){const[e,r]=h,n=[];for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParams=t.formatAbiItem=void 0;const n=r(112060);function i(e,{includeName:t=!1}={}){return e?e.map((e=>function(e,{includeName:t}){if(e.type.startsWith("tuple"))return`(${i(e.components,{includeName:t})})${e.type.slice(5)}`;return e.type+(t&&e.name?` ${e.name}`:"")}(e,{includeName:t}))).join(t?", ":","):""}t.formatAbiItem=function(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.InvalidDefinitionTypeError(e.type);return`${e.name}(${i(e.inputs,{includeName:t})})`},t.formatAbiParams=i},306430:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItemWithArgs=void 0;const n=r(766527);t.formatAbiItemWithArgs=function({abiItem:e,args:t,includeFunctionName:r=!0,includeName:i=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map(((e,r)=>`${i&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,n.stringify)(t[r]):t[r]}`)).join(", ")})`}},517706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAmbiguousTypes=t.isArgOfType=t.getAbiItem=void 0;const n=r(112060),i=r(771482),o=r(110566),a=r(801462),s=r(208305);function c(e,t){const r=typeof e,n=t.type;switch(n){case"address":return(0,s.isAddress)(e);case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:return"tuple"===n&&"components"in t?Object.values(t.components).every(((t,r)=>c(Object.values(e)[r],t))):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?"number"===r||"bigint"===r:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?"string"===r||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)&&(Array.isArray(e)&&e.every((e=>c(e,{...t,type:n.replace(/(\[[0-9]{0,}\])$/,"")}))))}}function u(e,t,r){for(const n in e){const i=e[n],o=t[n];if("tuple"===i.type&&"tuple"===o.type&&"components"in i&&"components"in o)return u(i.components,o.components,r[n]);const a=[i.type,o.type];if(!(!a.includes("address")||!a.includes("bytes20"))||(a.includes("address")&&a.includes("string")||!(!a.includes("address")||!a.includes("bytes")))&&(0,s.isAddress)(r[n]))return a}}t.getAbiItem=function({abi:e,args:t=[],name:r}){const s=(0,i.isHex)(r,{strict:!1}),l=e.filter((e=>s?"function"===e.type?(0,a.getFunctionSelector)(e)===r:"event"===e.type&&(0,o.getEventSelector)(e)===r:"name"in e&&e.name===r));if(0===l.length)return;if(1===l.length)return l[0];let d;for(const i of l){if(!("inputs"in i))continue;if(!t||0===t.length){if(!i.inputs||0===i.inputs.length)return i;continue}if(!i.inputs)continue;if(0===i.inputs.length)continue;if(i.inputs.length!==t.length)continue;if(t.every(((e,t)=>{const r="inputs"in i&&i.inputs[t];return!!r&&c(e,r)}))){if(d&&"inputs"in d&&d.inputs){const e=u(i.inputs,d.inputs,t);if(e)throw new n.AbiItemAmbiguityError({abiItem:i,type:e[0]},{abiItem:d,type:e[1]})}d=i}}return d||l[0]},t.isArgOfType=c,t.getAmbiguousTypes=u},551436:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicKeyToAddress=t.parseAccount=void 0;var n=r(157449);Object.defineProperty(t,"parseAccount",{enumerable:!0,get:function(){return n.parseAccount}});var i=r(535896);Object.defineProperty(t,"publicKeyToAddress",{enumerable:!0,get:function(){return i.publicKeyToAddress}})},115257:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddress=t.checksumAddress=void 0;const n=r(79746),i=r(184962),o=r(829336),a=r(208305);function s(e,t){const r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,o.keccak256)((0,i.stringToBytes)(r),"bytes"),a=(t?r.substring(`${t}0x`.length):r).split("");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&a[i]&&(a[i]=a[i].toUpperCase()),(15&n[i>>1])>=8&&a[i+1]&&(a[i+1]=a[i+1].toUpperCase());return`0x${a.join("")}`}t.checksumAddress=s,t.getAddress=function(e,t){if(!(0,a.isAddress)(e))throw new n.InvalidAddressError({address:e});return s(e,t)}},74763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=t.getContractAddress=void 0;const n=r(283755),i=r(270732),o=r(511965),a=r(93577),s=r(184962),c=r(246915),u=r(829336),l=r(115257);function d(e){const t=(0,s.toBytes)((0,l.getAddress)(e.from));let r=(0,s.toBytes)(e.nonce);return 0===r[0]&&(r=new Uint8Array([])),(0,l.getAddress)(`0x${(0,u.keccak256)((0,c.toRlp)([t,r],"bytes")).slice(26)}`)}function f(e){const t=(0,s.toBytes)((0,l.getAddress)(e.from)),r=(0,o.pad)((0,i.isBytes)(e.salt)?e.salt:(0,s.toBytes)(e.salt),{size:32}),c="bytecodeHash"in e?(0,i.isBytes)(e.bytecodeHash)?e.bytecodeHash:(0,s.toBytes)(e.bytecodeHash):(0,u.keccak256)(e.bytecode,"bytes");return(0,l.getAddress)((0,a.slice)((0,u.keccak256)((0,n.concat)([(0,s.toBytes)("0xff"),t,r,c])),12))}t.getContractAddress=function(e){return"CREATE2"===e.opcode?f(e):d(e)},t.getCreateAddress=d,t.getCreate2Address=f},208305:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddress=void 0;const r=/^0x[a-fA-F0-9]{40}$/;t.isAddress=function(e){return r.test(e)}},651213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddressEqual=void 0;const n=r(79746),i=r(208305);t.isAddressEqual=function(e,t){if(!(0,i.isAddress)(e))throw new n.InvalidAddressError({address:e});if(!(0,i.isAddress)(t))throw new n.InvalidAddressError({address:t});return e.toLowerCase()===t.toLowerCase()}},996961:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildRequest=t.isDeterministicError=void 0;const n=r(192857),i=r(997811),o=r(859577),a=r(876774);t.isDeterministicError=e=>"code"in e?-1!==e.code&&-32004!==e.code&&-32005!==e.code&&-32042!==e.code&&-32603!==e.code:!!(e instanceof i.HttpRequestError&&e.status)&&(403!==e.status&&408!==e.status&&413!==e.status&&429!==e.status&&500!==e.status&&502!==e.status&&503!==e.status&&504!==e.status),t.buildRequest=function(e,{retryDelay:r=150,retryCount:s=3}={}){return async c=>(0,a.withRetry)((async()=>{try{return await e(c)}catch(t){const e=t;switch(e.code){case o.ParseRpcError.code:throw new o.ParseRpcError(e);case o.InvalidRequestRpcError.code:throw new o.InvalidRequestRpcError(e);case o.MethodNotFoundRpcError.code:throw new o.MethodNotFoundRpcError(e);case o.InvalidParamsRpcError.code:throw new o.InvalidParamsRpcError(e);case o.InternalRpcError.code:throw new o.InternalRpcError(e);case o.InvalidInputRpcError.code:throw new o.InvalidInputRpcError(e);case o.ResourceNotFoundRpcError.code:throw new o.ResourceNotFoundRpcError(e);case o.ResourceUnavailableRpcError.code:throw new o.ResourceUnavailableRpcError(e);case o.TransactionRejectedRpcError.code:throw new o.TransactionRejectedRpcError(e);case o.MethodNotSupportedRpcError.code:throw new o.MethodNotSupportedRpcError(e);case o.LimitExceededRpcError.code:throw new o.LimitExceededRpcError(e);case o.JsonRpcVersionUnsupportedError.code:throw new o.JsonRpcVersionUnsupportedError(e);case o.UserRejectedRequestError.code:throw new o.UserRejectedRequestError(e);case o.UnauthorizedProviderError.code:throw new o.UnauthorizedProviderError(e);case o.UnsupportedProviderMethodError.code:throw new o.UnsupportedProviderMethodError(e);case o.ProviderDisconnectedError.code:throw new o.ProviderDisconnectedError(e);case o.ChainDisconnectedError.code:throw new o.ChainDisconnectedError(e);case o.SwitchChainError.code:throw new o.SwitchChainError(e);case 5e3:throw new o.UserRejectedRequestError(e);default:if(t instanceof n.BaseError)throw t;throw new o.UnknownRpcError(e)}}}),{delay:({count:e,error:t})=>{if(t&&t instanceof i.HttpRequestError){const e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*parseInt(e)}return(1<!(0,t.isDeterministicError)(e)})}},78383:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ccipFetch=t.offchainLookup=t.offchainLookupAbiItem=t.offchainLookupSignature=void 0;const n=r(146606),i=r(935927),o=r(997811),a=r(250054),s=r(689219),c=r(651213),u=r(283755),l=r(771482),d=r(766527);async function f({data:e,sender:t,urls:r}){let n=new Error("An unknown error occurred.");for(let s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertCurrentChain=void 0;const n=r(601679);t.assertCurrentChain=function({chain:e,currentChainId:t}){if(!e)throw new n.ChainNotFoundError;if(t!==e.id)throw new n.ChainMismatchError({chain:e,currentChainId:t})}},293300:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineChain=void 0,t.defineChain=function(e,t={}){const{fees:r=e.fees,formatters:n=e.formatters,serializers:i=e.serializers}=t;return{...e,fees:r,formatters:n,serializers:i}}},178224:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractChain=void 0,t.extractChain=function({chains:e,id:t}){return e.find((e=>e.id===t))}},778849:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChainContractAddress=void 0;const n=r(601679);t.getChainContractAddress=function({blockNumber:e,chain:t,contract:r}){const i=t?.contracts?.[r];if(!i)throw new n.ChainDoesNotSupportContract({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new n.ChainDoesNotSupportContract({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},241772:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractFunctionType=t.extractFunctionParams=t.extractFunctionName=t.extractFunctionParts=void 0;const r=/((function|event)\s)?(.*)(\((.*)\))/;function n(e){const t=e.match(r),n=t?.[2]||void 0,i=t?.[3];return{type:n,name:i,params:t?.[5]||void 0}}t.extractFunctionParts=n,t.extractFunctionName=function(e){return n(e).name},t.extractFunctionParams=function(e){const t=n(e).params,r=t?.split(",").map((e=>e.trim().split(" ")));return r?.map((e=>({type:e[0],name:"indexed"===e[1]?e[2]:e[1],..."indexed"===e[1]?{indexed:!0}:{}})))},t.extractFunctionType=function(e){return n(e).type}},35738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCursor=void 0;const n=r(379138),i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.PositionOutOfBoundsError({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.NegativeOffsetError({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},incrementPosition(e){if(e<0)throw new n.NegativeOffsetError({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){const e=this.inspectByte();return this.position++,e},readBytes(e){const t=this.inspectBytes(e);return this.position+=e,t},readUint8(){const e=this.inspectUint8();return this.position+=1,e},readUint16(){const e=this.inspectUint16();return this.position+=2,e},readUint24(){const e=this.inspectUint24();return this.position+=3,e},readUint32(){const e=this.inspectUint32();return this.position+=4,e},setPosition(e){this.assertPosition(e),this.position=e}};t.createCursor=function(e){const t=Object.create(i);return t.bytes=e,t.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),t}},283755:(e,t)=>{"use strict";function r(e){let t=0;for(const i of e)t+=i.length;const r=new Uint8Array(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}function n(e){return`0x${e.reduce(((e,t)=>e+t.replace("0x","")),"")}`}Object.defineProperty(t,"__esModule",{value:!0}),t.concatHex=t.concatBytes=t.concat=void 0,t.concat=function(e){return"string"==typeof e[0]?n(e):r(e)},t.concatBytes=r,t.concatHex=n},270732:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBytes=void 0,t.isBytes=function(e){return!!e&&("object"==typeof e&&("BYTES_PER_ELEMENT"in e&&(1===e.BYTES_PER_ELEMENT&&"Uint8Array"===e.constructor.name)))}},651702:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBytesEqual=void 0;const n=r(25059),i=r(184962),o=r(771482);t.isBytesEqual=function(e,t){const r=(0,o.isHex)(e)?(0,i.toBytes)(e):e,a=(0,o.isHex)(t)?(0,i.toBytes)(t):t;return(0,n.equalBytes)(r,a)}},771482:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHex=void 0,t.isHex=function(e,{strict:t=!0}={}){return!!e&&("string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}},511965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.padBytes=t.padHex=t.pad=void 0;const n=r(621304);function i(e,{dir:t,size:r=32}={}){if(null===r)return e;const i=e.replace("0x","");if(i.length>2*r)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}function o(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:r,type:"bytes"});const i=new Uint8Array(r);for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.size=void 0;const n=r(771482);t.size=function(e){return(0,n.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},93577:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sliceHex=t.sliceBytes=t.slice=void 0;const n=r(621304),i=r(771482),o=r(269662);function a(e,t){if("number"==typeof t&&t>0&&t>(0,o.size)(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:(0,o.size)(e)})}function s(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,o.size)(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:(0,o.size)(e)})}function c(e,t,r,{strict:n}={}){a(e,t);const i=e.slice(t,r);return n&&s(i,t,r),i}function u(e,t,r,{strict:n}={}){a(e,t);const i=`0x${e.replace("0x","").slice(2*(t??0),2*(r??e.length))}`;return n&&s(i,t,r),i}t.slice=function(e,t,r,{strict:n}={}){return(0,i.isHex)(e,{strict:!1})?u(e,t,r,{strict:n}):c(e,t,r,{strict:n})},t.sliceBytes=c,t.sliceHex=u},939415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trim=void 0,t.trim=function(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigInt=t.fromBytes=void 0;const n=r(984077),i=r(939415),o=r(15987),a=r(214368);function s(e,t={}){void 0!==t.size&&(0,o.assertSize)(e,{size:t.size});const r=(0,a.bytesToHex)(e,t);return(0,o.hexToBigInt)(r)}function c(e,t={}){let r=e;if(void 0!==t.size&&((0,o.assertSize)(r,{size:t.size}),r=(0,i.trim)(r)),r.length>1||r[0]>1)throw new n.InvalidBytesBooleanError(r);return Boolean(r[0])}function u(e,t={}){void 0!==t.size&&(0,o.assertSize)(e,{size:t.size});const r=(0,a.bytesToHex)(e,t);return(0,o.hexToNumber)(r)}function l(e,t={}){let r=e;return void 0!==t.size&&((0,o.assertSize)(r,{size:t.size}),r=(0,i.trim)(r,{dir:"right"})),(new TextDecoder).decode(r)}t.fromBytes=function(e,t){const r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?u(e,r):"bigint"===n?s(e,r):"boolean"===n?c(e,r):"string"===n?l(e,r):(0,a.bytesToHex)(e,r)},t.bytesToBigInt=s,t.bytesToBool=c,t.bytesToNumber=u,t.bytesToString=l},15987:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.assertSize=void 0;const n=r(984077),i=r(269662),o=r(939415),a=r(184962);function s(e,{size:t}){if((0,i.size)(e)>t)throw new n.SizeOverflowError({givenSize:(0,i.size)(e),maxSize:t})}function c(e,t={}){const{signed:r}=t;t.size&&s(e,{size:t.size});const n=BigInt(e);if(!r)return n;const i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function u(e,t={}){let r=e;if(t.size&&(s(r,{size:t.size}),r=(0,o.trim)(r)),"0x00"===(0,o.trim)(r))return!1;if("0x01"===(0,o.trim)(r))return!0;throw new n.InvalidHexBooleanError(r)}function l(e,t={}){return Number(c(e,t))}function d(e,t={}){let r=(0,a.hexToBytes)(e);return t.size&&(s(r,{size:t.size}),r=(0,o.trim)(r,{dir:"right"})),(new TextDecoder).decode(r)}t.assertSize=s,t.fromHex=function(e,t){const r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?l(e,r):"bigint"===n?c(e,r):"string"===n?d(e,r):"boolean"===n?u(e,r):(0,a.hexToBytes)(e,r)},t.hexToBigInt=c,t.hexToBool=u,t.hexToNumber=l,t.hexToString=d},734308:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rlpToHex=t.rlpToBytes=t.fromRlp=void 0;const n=r(192857),i=r(984077),o=r(35738),a=r(184962),s=r(214368);function c(e,t="hex"){const r=(()=>{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new i.InvalidHexValueError(e);return(0,a.hexToBytes)(e)}return e})();return u((0,o.createCursor)(r),t)}function u(e,t="hex"){if(0===e.bytes.length)return"hex"===t?(0,s.bytesToHex)(e.bytes):e.bytes;const r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){const n=l(e,r,128),i=e.readBytes(n);return"hex"===t?(0,s.bytesToHex)(i):i}return function(e,t,r){const n=e.position,i=[];for(;e.position-n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.toBytes=void 0;const n=r(192857),i=r(771482),o=r(511965),a=r(15987),s=r(214368),c=new TextEncoder;function u(e,t={}){const r=new Uint8Array(1);return r[0]=Number(e),"number"==typeof t.size?((0,a.assertSize)(r,{size:t.size}),(0,o.pad)(r,{size:t.size})):r}t.toBytes=function(e,t={}){return"number"==typeof e||"bigint"==typeof e?h(e,t):"boolean"==typeof e?u(e,t):(0,i.isHex)(e)?f(e,t):p(e,t)},t.boolToBytes=u;const l={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=l.zero&&e<=l.nine?e-l.zero:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function f(e,t={}){let r=e;t.size&&((0,a.assertSize)(r,{size:t.size}),r=(0,o.pad)(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);const s=i.length/2,c=new Uint8Array(s);for(let o=0,a=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toHex=void 0;const n=r(984077),i=r(511965),o=r(15987),a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e,t={}){const r=`0x${Number(e)}`;return"number"==typeof t.size?((0,o.assertSize)(r,{size:t.size}),(0,i.pad)(r,{size:t.size})):r}function c(e,t={}){let r="";for(let i=0;is||a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRlp=t.bytesToRlp=t.toRlp=void 0;const n=r(302576),i=r(35738),o=r(184962),a=r(214368);function s(e,t="hex"){const r=c(e),n=(0,i.createCursor)(new Uint8Array(r.length));return r.encode(n),"hex"===t?(0,a.bytesToHex)(n.bytes):n.bytes}function c(e){return Array.isArray(e)?function(e){const t=e.reduce(((e,t)=>e+t.length),0),r=u(t);return{length:t<=55?1+t:1+r+t,encode(n){t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t));for(const{encode:t}of e)t(n)}}}(e.map((e=>c(e)))):function(e){const t="string"==typeof e?(0,o.hexToBytes)(e):e,r=u(t.length),n=1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length;return{length:n,encode(e){1===t.length&&t[0]<128?e.pushBytes(t):t.length<=55?(e.pushByte(128+t.length),e.pushBytes(t)):(e.pushByte(183+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function u(e){if(e<256)return 1;if(e<65536)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new n.BaseError("Length is too large.")}t.toRlp=s,t.bytesToRlp=function(e,t="bytes"){return s(e,t)},t.hexToRlp=function(e,t="hex"){return s(e,t)}},904728:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAvatarRecord=void 0;const n=r(943158);t.parseAvatarRecord=async function(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?async function(e,{gatewayUrls:t,record:r}){const i=(0,n.parseNftUri)(r),o=await(0,n.getNftTokenUri)(e,{nft:i}),{uri:a,isOnChain:s,isEncoded:c}=(0,n.resolveAvatarUri)({uri:o,gatewayUrls:t});if(s&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const e=c?atob(a.replace("data:application/json;base64,","")):a,r=JSON.parse(e);return(0,n.parseAvatarUri)({uri:(0,n.getJsonImage)(r),gatewayUrls:t})}let u=i.tokenID;"erc1155"===i.namespace&&(u=u.replace("0x","").padStart(64,"0"));return(0,n.getMetadataAvatarUri)({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,u)})}(e,{gatewayUrls:t,record:r}):(0,n.parseAvatarUri)({uri:r,gatewayUrls:t})}},943158:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNftTokenUri=t.parseNftUri=t.parseAvatarUri=t.getMetadataAvatarUri=t.getJsonImage=t.resolveAvatarUri=t.getGateway=t.isImageUri=void 0;const n=r(554884),i=r(438838),o=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,a=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?[\w\-.]+))?(?\/.*)?$/,s=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,c=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function u(e){try{const t=await fetch(e,{method:"HEAD"});if(200===t.status){const e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){return("object"!=typeof t||void 0===t.response)&&(!!globalThis.hasOwnProperty("Image")&&new Promise((t=>{const r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})))}}function l(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function d({uri:e,gatewayUrls:t}){const r=s.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};const n=l(t?.ipfs,"https://ipfs.io"),u=l(t?.arweave,"https://arweave.net"),d=e.match(o),{protocol:f,subpath:h,target:p,subtarget:g=""}=d?.groups||{},m="ipns:/"===f||"ipns/"===h,y="ipfs:/"===f||"ipfs/"===h||a.test(e);if(e.startsWith("http")&&!m&&!y){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((m||y)&&p)return{uri:`${n}/${m?"ipns":"ipfs"}/${p}${g}`,isOnChain:!1,isEncoded:!1};if("ar:/"===f&&p)return{uri:`${u}/${p}${g||""}`,isOnChain:!1,isEncoded:!1};let b=e.replace(c,"");if(b.startsWith("e.json()));return await h({gatewayUrls:e,uri:f(r)})}catch{throw new i.EnsAvatarUriResolutionError({uri:t})}},t.parseAvatarUri=h,t.parseNftUri=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[r,n,o]=t.split("/"),[a,s]=r.split(":"),[c,u]=n.split(":");if(!a||"eip155"!==a.toLowerCase())throw new i.EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!s)throw new i.EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!u)throw new i.EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!o)throw new i.EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!c)throw new i.EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:parseInt(s),namespace:c.toLowerCase(),contractAddress:u,tokenID:o}},t.getNftTokenUri=async function(e,{nft:t}){if("erc721"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new i.EnsAvatarUnsupportedNamespaceError({namespace:t.namespace})}},868793:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeLabelhash=void 0,t.encodeLabelhash=function(e){return`[${e.slice(2)}]`}},734776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodedLabelToLabelhash=void 0;const n=r(771482);t.encodedLabelToLabelhash=function(e){if(66!==e.length)return null;if(0!==e.indexOf("["))return null;if(65!==e.indexOf("]"))return null;const t=`0x${e.slice(1,65)}`;return(0,n.isHex)(t)?t:null}},840130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNullUniversalResolverError=void 0;const n=r(407077),i=r(192857),o=r(582054);t.isNullUniversalResolverError=function(e,t){if(!(e instanceof i.BaseError))return!1;const r=e.walk((e=>e instanceof o.ContractFunctionRevertedError));return r instanceof o.ContractFunctionRevertedError&&("ResolverNotFound"===r.data?.errorName||("ResolverWildcardNotSupported"===r.data?.errorName||(!!r.reason?.includes("Wildcard on non-extended resolvers is not supported")||"reverse"===t&&r.reason===n.panicReasons[50])))}},817219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.labelhash=void 0;const n=r(184962),i=r(214368),o=r(829336),a=r(734776);t.labelhash=function(e){const t=new Uint8Array(32).fill(0);return e?(0,a.encodedLabelToLabelhash)(e)||(0,o.keccak256)((0,n.stringToBytes)(e)):(0,i.bytesToHex)(t)}},244130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.namehash=void 0;const n=r(283755),i=r(184962),o=r(214368),a=r(829336),s=r(734776);t.namehash=function(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,o.bytesToHex)(t);const r=e.split(".");for(let o=r.length-1;o>=0;o-=1){const e=(0,s.encodedLabelToLabelhash)(r[o]),c=e?(0,i.toBytes)(e):(0,a.keccak256)((0,i.stringToBytes)(r[o]),"bytes");t=(0,a.keccak256)((0,n.concat)([t,c]),"bytes")}return(0,o.bytesToHex)(t)}},487801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packetToBytes=void 0;const n=r(184962),i=r(868793),o=r(817219);t.packetToBytes=function(e){const t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);const r=new Uint8Array((0,n.stringToBytes)(t).byteLength+2);let a=0;const s=t.split(".");for(let c=0;c255&&(e=(0,n.stringToBytes)((0,i.encodeLabelhash)((0,o.labelhash)(s[c])))),r[a]=e.length,r.set(e,a+1),a+=e.length+1}return r.byteLength!==a+1?r.slice(0,a+1):r}},551868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCallError=void 0;const n=r(582054),i=r(585296),o=r(611132);t.getCallError=function(e,{docsPath:t,...r}){const a=(()=>{const t=(0,o.getNodeError)(e,r);return t instanceof i.UnknownNodeError?e:t})();return new n.CallExecutionError(a,{docsPath:t,...r})}},868062:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContractError=void 0;const n=r(112060),i=r(192857),o=r(582054),a=r(859577),s=3;t.getContractError=function(e,{abi:t,address:r,args:c,docsPath:u,functionName:l,sender:d}){const{code:f,data:h,message:p,shortMessage:g}=e instanceof o.RawContractError?e:e instanceof i.BaseError?e.walk((e=>"data"in e))||e.walk():{},m=e instanceof n.AbiDecodingZeroDataError?new o.ContractFunctionZeroDataError({functionName:l}):[s,a.InternalRpcError.code].includes(f)&&(h||p||g)?new o.ContractFunctionRevertedError({abi:t,data:"object"==typeof h?h.data:h,functionName:l,message:g??p}):e;return new o.ContractFunctionExecutionError(m,{abi:t,args:c,contractAddress:r,docsPath:u,functionName:l,sender:d})}},642515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEstimateGasError=void 0;const n=r(700137),i=r(585296),o=r(611132);t.getEstimateGasError=function(e,{docsPath:t,...r}){const a=(()=>{const t=(0,o.getNodeError)(e,r);return t instanceof i.UnknownNodeError?e:t})();return new n.EstimateGasExecutionError(a,{docsPath:t,...r})}},611132:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeError=t.containsNodeError=void 0;const n=r(192857),i=r(585296),o=r(997811),a=r(859577);t.containsNodeError=function(e){return e instanceof a.TransactionRejectedRpcError||e instanceof a.InvalidInputRpcError||e instanceof o.RpcRequestError&&e.code===i.ExecutionRevertedError.code},t.getNodeError=function(e,t){const r=(e.details||"").toLowerCase(),o=e.walk((e=>e.code===i.ExecutionRevertedError.code));return o instanceof n.BaseError?new i.ExecutionRevertedError({cause:e,message:o.details}):i.ExecutionRevertedError.nodeMessage.test(r)?new i.ExecutionRevertedError({cause:e,message:e.details}):i.FeeCapTooHighError.nodeMessage.test(r)?new i.FeeCapTooHighError({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.FeeCapTooLowError.nodeMessage.test(r)?new i.FeeCapTooLowError({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.NonceTooHighError.nodeMessage.test(r)?new i.NonceTooHighError({cause:e,nonce:t?.nonce}):i.NonceTooLowError.nodeMessage.test(r)?new i.NonceTooLowError({cause:e,nonce:t?.nonce}):i.NonceMaxValueError.nodeMessage.test(r)?new i.NonceMaxValueError({cause:e,nonce:t?.nonce}):i.InsufficientFundsError.nodeMessage.test(r)?new i.InsufficientFundsError({cause:e}):i.IntrinsicGasTooHighError.nodeMessage.test(r)?new i.IntrinsicGasTooHighError({cause:e,gas:t?.gas}):i.IntrinsicGasTooLowError.nodeMessage.test(r)?new i.IntrinsicGasTooLowError({cause:e,gas:t?.gas}):i.TransactionTypeNotSupportedError.nodeMessage.test(r)?new i.TransactionTypeNotSupportedError({cause:e}):i.TipAboveFeeCapError.nodeMessage.test(r)?new i.TipAboveFeeCapError({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.UnknownNodeError({cause:e})}},726214:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionError=void 0;const n=r(585296),i=r(88094),o=r(611132);t.getTransactionError=function(e,{docsPath:t,...r}){const a=(()=>{const t=(0,o.getNodeError)(e,r);return t instanceof n.UnknownNodeError?e:t})();return new i.TransactionExecutionError(a,{docsPath:t,...r})}},659861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFilterRequestScope=void 0,t.createFilterRequestScope=function(e,{method:t}){const r={};return"fallback"===e.transport.type&&e.transport.onResponse?.((({method:e,response:n,status:i,transport:o})=>{"success"===i&&t===e&&(r[n]=o.request)})),t=>r[t]||e.request}},483849:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineBlock=t.formatBlock=void 0;const n=r(621370),i=r(477100);function o(e){const t=e.transactions?.map((e=>"string"==typeof e?e:(0,i.formatTransaction)(e)));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}t.formatBlock=o,t.defineBlock=(0,n.defineFormatter)("block",o)},456941:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extract=void 0,t.extract=function(e,{format:t}){if(!t)return{};const r={};return function t(n){const i=Object.keys(n);for(const o of i)o in e&&(r[o]=e[o]),n[o]&&"object"==typeof n[o]&&!Array.isArray(n[o])&&t(n[o])}(t(e||{})),r}},64898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatFeeHistory=void 0,t.formatFeeHistory=function(e){return{baseFeePerGas:e.baseFeePerGas.map((e=>BigInt(e))),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map((e=>e.map((e=>BigInt(e)))))}}},621370:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineFormatter=void 0,t.defineFormatter=function(e,t){return({exclude:r,format:n})=>({exclude:r,format:e=>{const i=t(e);if(r)for(const t of r)delete i[t];return{...i,...n(e)}},type:e})}},873886:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatLog=void 0,t.formatLog=function(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}},643542:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatProof=void 0;const n=r(419970);t.formatProof=function(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?(0,n.hexToNumber)(e.nonce):void 0,storageProof:e.storageProof?(t=e.storageProof,t.map((e=>({...e,value:BigInt(e.value)})))):void 0};var t}},477100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransaction=t.formatTransaction=t.transactionType=void 0;const n=r(15987),i=r(621370);function o(e){const r={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.hexToNumber)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,n.hexToNumber)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?t.transactionType[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return r.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof r.v){if(0n===r.v||27n===r.v)return 0;if(1n===r.v||28n===r.v)return 1;if(r.v>=35n)return r.v%2n===0n?1:0}})(),"legacy"===r.type&&(delete r.accessList,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas,delete r.yParity),"eip2930"===r.type&&(delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),r}t.transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"},t.formatTransaction=o,t.defineTransaction=(0,i.defineFormatter)("transaction",o)},928490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionReceipt=t.formatTransactionReceipt=void 0;const n=r(15987),i=r(621370),o=r(873886),a=r(477100),s={"0x0":"reverted","0x1":"success"};function c(e){return{...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map((e=>(0,o.formatLog)(e))):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.hexToNumber)(e.transactionIndex):null,status:e.status?s[e.status]:null,type:e.type?a.transactionType[e.type]||e.type:null}}t.formatTransactionReceipt=c,t.defineTransactionReceipt=(0,i.defineFormatter)("transactionReceipt",c)},575847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionRequest=t.formatTransactionRequest=t.rpcTransactionType=void 0;const n=r(214368),i=r(621370);function o(e){return{...e,gas:void 0!==e.gas?(0,n.numberToHex)(e.gas):void 0,gasPrice:void 0!==e.gasPrice?(0,n.numberToHex)(e.gasPrice):void 0,maxFeePerGas:void 0!==e.maxFeePerGas?(0,n.numberToHex)(e.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==e.maxPriorityFeePerGas?(0,n.numberToHex)(e.maxPriorityFeePerGas):void 0,nonce:void 0!==e.nonce?(0,n.numberToHex)(e.nonce):void 0,type:void 0!==e.type?t.rpcTransactionType[e.type]:void 0,value:void 0!==e.value?(0,n.numberToHex)(e.value):void 0}}t.rpcTransactionType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"},t.formatTransactionRequest=o,t.defineTransactionRequest=(0,i.defineFormatter)("transactionRequest",o)},366956:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAction=void 0,t.getAction=function(e,t,r){return n=>e[t.name||r]?.(n)??t(e,n)}},110566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEventSelector=void 0;const n=r(184962),i=r(932917),o=r(829336);t.getEventSelector=e=>{return t=(0,i.getEventSignature)(e),(0,o.keccak256)((0,n.toBytes)(t));var t}},932917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEventSignature=void 0;const n=r(519813);t.getEventSignature=e=>(0,n.getFunctionSignature)(e)},801462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFunctionSelector=void 0;const n=r(93577),i=r(184962),o=r(519813),a=r(829336);t.getFunctionSelector=e=>{return(0,n.slice)((t=(0,o.getFunctionSignature)(e),(0,a.keccak256)((0,i.toBytes)(t))),0,4);var t}},519813:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFunctionSignature=void 0;const n=r(208557),i=r(680312);t.getFunctionSignature=e=>{const t="string"==typeof e?e:(0,n.formatAbiItem)(e);return(0,i.normalizeSignature)(t)}},920899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHash=void 0;const n=r(771482),i=r(269662);t.isHash=function(e){return(0,n.isHex)(e)&&32===(0,i.size)(e)}},829336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;const n=r(641140),i=r(771482),o=r(184962),a=r(214368);t.keccak256=function(e,t){const r=t||"hex",s=(0,n.keccak_256)((0,i.isHex)(e,{strict:!1})?(0,o.toBytes)(e):e);return"bytes"===r?s:(0,a.toHex)(s)}},680312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeSignature=void 0;const n=r(192857);t.normalizeSignature=function(e){let t=!0,r="",i=0,o="",a=!1;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=void 0;const n=r(788659),i=r(771482),o=r(184962),a=r(214368);t.ripemd160=function(e,t){const r=t||"hex",s=(0,n.ripemd160)((0,i.isHex)(e,{strict:!1})?(0,o.toBytes)(e):e);return"bytes"===r?s:(0,a.toHex)(s)}},875248:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha256=void 0;const n=r(108348),i=r(771482),o=r(184962),a=r(214368);t.sha256=function(e,t){const r=t||"hex",s=(0,n.sha256)((0,i.isHex)(e,{strict:!1})?(0,o.toBytes)(e):e);return"bytes"===r?s:(0,a.toHex)(s)}},419970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=t.extractFunctionParts=t.extractFunctionType=t.extractFunctionParams=t.extractFunctionName=t.isAddressEqual=t.isAddress=t.getAddress=t.getCreate2Address=t.getCreateAddress=t.getContractAddress=t.publicKeyToAddress=t.parseAccount=t.formatAbiParams=t.formatAbiItem=t.formatAbiItemWithArgs=t.encodePacked=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.getAbiItem=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeAbiParameters=t.validateTypedData=t.stringify=t.rpc=t.getSocket=t.integerRegex=t.bytesRegex=t.arrayRegex=t.getChainContractAddress=t.extractChain=t.defineChain=t.assertCurrentChain=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.buildRequest=t.isDeterministicError=void 0,t.getEstimateGasError=t.getContractError=t.getCallError=t.getNodeError=t.containsNodeError=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBigInt=t.hexToBool=t.fromHex=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.bytesToBigInt=t.stringToHex=t.numberToHex=t.toHex=t.bytesToHex=t.boolToHex=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.toBytes=t.boolToBytes=t.toRlp=t.extract=t.formatTransactionRequest=t.defineTransactionRequest=t.defineTransactionReceipt=t.formatLog=t.transactionType=t.formatTransaction=t.defineTransaction=t.formatBlock=t.defineBlock=t.trim=t.sliceHex=t.sliceBytes=t.slice=t.size=t.padHex=t.padBytes=t.pad=t.isHex=t.isBytes=t.concatHex=t.concatBytes=void 0,t.parseGwei=t.parseEther=t.parseUnits=t.formatUnits=t.formatGwei=t.formatEther=t.serializeAccessList=t.serializeTransaction=t.prepareTransactionRequest=t.parseTransaction=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.getTransactionType=t.getSerializedTransactionType=t.hashMessage=t.verifyTypedData=t.verifyMessage=t.recoverTypedDataAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.hashTypedData=t.ripemd160=t.sha256=t.keccak256=t.isHash=t.getFunctionSelector=t.getEventSelector=t.defineFormatter=t.getTransactionError=void 0;var n=r(996961);Object.defineProperty(t,"isDeterministicError",{enumerable:!0,get:function(){return n.isDeterministicError}}),Object.defineProperty(t,"buildRequest",{enumerable:!0,get:function(){return n.buildRequest}});var i=r(78383);Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return i.ccipFetch}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return i.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return i.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return i.offchainLookupSignature}});var o=r(755014);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return o.assertCurrentChain}});var a=r(293300);Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return a.defineChain}});var s=r(178224);Object.defineProperty(t,"extractChain",{enumerable:!0,get:function(){return s.extractChain}});var c=r(778849);Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return c.getChainContractAddress}});var u=r(685797);Object.defineProperty(t,"arrayRegex",{enumerable:!0,get:function(){return u.arrayRegex}}),Object.defineProperty(t,"bytesRegex",{enumerable:!0,get:function(){return u.bytesRegex}}),Object.defineProperty(t,"integerRegex",{enumerable:!0,get:function(){return u.integerRegex}});var l=r(280817);Object.defineProperty(t,"getSocket",{enumerable:!0,get:function(){return l.getSocket}}),Object.defineProperty(t,"rpc",{enumerable:!0,get:function(){return l.rpc}});var d=r(766527);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}});var f=r(72318);Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return f.validateTypedData}});var h=r(480507);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return h.decodeAbiParameters}});var p=r(250054);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return p.decodeErrorResult}});var g=r(538507);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return g.decodeEventLog}});var m=r(509025);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return m.decodeFunctionData}});var y=r(608540);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return y.decodeFunctionResult}});var b=r(689219);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return b.encodeAbiParameters}});var v=r(981618);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return v.encodeDeployData}});var w=r(580494);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return w.encodeErrorResult}});var A=r(607873);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return A.encodeEventTopics}});var C=r(36217);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return C.encodeFunctionData}});var E=r(820708);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return E.encodeFunctionResult}});var x=r(517706);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return x.getAbiItem}});var S=r(208557);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return S.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return S.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return S.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return S.parseAbiParameters}});var I=r(668597);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return I.encodePacked}});var k=r(306430);Object.defineProperty(t,"formatAbiItemWithArgs",{enumerable:!0,get:function(){return k.formatAbiItemWithArgs}});var _=r(539807);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return _.formatAbiItem}}),Object.defineProperty(t,"formatAbiParams",{enumerable:!0,get:function(){return _.formatAbiParams}});var T=r(157449);Object.defineProperty(t,"parseAccount",{enumerable:!0,get:function(){return T.parseAccount}});var M=r(535896);Object.defineProperty(t,"publicKeyToAddress",{enumerable:!0,get:function(){return M.publicKeyToAddress}});var P=r(74763);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return P.getContractAddress}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return P.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return P.getCreate2Address}});var j=r(115257);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return j.getAddress}});var D=r(208305);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return D.isAddress}});var O=r(651213);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return O.isAddressEqual}});var B=r(241772);Object.defineProperty(t,"extractFunctionName",{enumerable:!0,get:function(){return B.extractFunctionName}}),Object.defineProperty(t,"extractFunctionParams",{enumerable:!0,get:function(){return B.extractFunctionParams}}),Object.defineProperty(t,"extractFunctionType",{enumerable:!0,get:function(){return B.extractFunctionType}}),Object.defineProperty(t,"extractFunctionParts",{enumerable:!0,get:function(){return B.extractFunctionParts}});var N=r(283755);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return N.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return N.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return N.concatHex}});var R=r(270732);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return R.isBytes}});var L=r(771482);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return L.isHex}});var F=r(511965);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return F.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return F.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return F.padHex}});var U=r(269662);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return U.size}});var z=r(93577);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return z.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return z.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return z.sliceHex}});var H=r(939415);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return H.trim}});var V=r(483849);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return V.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return V.formatBlock}});var K=r(477100);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return K.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return K.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return K.transactionType}});var G=r(873886);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return G.formatLog}});var q=r(928490);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return q.defineTransactionReceipt}});var Q=r(575847);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return Q.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return Q.formatTransactionRequest}});var W=r(456941);Object.defineProperty(t,"extract",{enumerable:!0,get:function(){return W.extract}});var J=r(246915);Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return J.toRlp}});var Y=r(184962);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return Y.boolToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return Y.toBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return Y.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return Y.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return Y.stringToBytes}});var Z=r(214368);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return Z.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return Z.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return Z.toHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return Z.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return Z.stringToHex}});var $=r(441049);Object.defineProperty(t,"bytesToBigInt",{enumerable:!0,get:function(){return $.bytesToBigInt}}),Object.defineProperty(t,"bytesToBigint",{enumerable:!0,get:function(){return $.bytesToBigInt}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return $.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return $.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return $.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return $.fromBytes}});var X=r(15987);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return X.fromHex}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return X.hexToBool}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return X.hexToBigInt}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return X.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return X.hexToString}});var ee=r(734308);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return ee.fromRlp}});var te=r(611132);Object.defineProperty(t,"containsNodeError",{enumerable:!0,get:function(){return te.containsNodeError}}),Object.defineProperty(t,"getNodeError",{enumerable:!0,get:function(){return te.getNodeError}});var re=r(551868);Object.defineProperty(t,"getCallError",{enumerable:!0,get:function(){return re.getCallError}});var ne=r(868062);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return ne.getContractError}});var ie=r(642515);Object.defineProperty(t,"getEstimateGasError",{enumerable:!0,get:function(){return ie.getEstimateGasError}});var oe=r(726214);Object.defineProperty(t,"getTransactionError",{enumerable:!0,get:function(){return oe.getTransactionError}});var ae=r(621370);Object.defineProperty(t,"defineFormatter",{enumerable:!0,get:function(){return ae.defineFormatter}});var se=r(110566);Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return se.getEventSelector}});var ce=r(801462);Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return ce.getFunctionSelector}});var ue=r(920899);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return ue.isHash}});var le=r(829336);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return le.keccak256}});var de=r(875248);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return de.sha256}});var fe=r(381855);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return fe.ripemd160}});var he=r(281835);Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return he.hashTypedData}});var pe=r(966795);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return pe.recoverAddress}});var ge=r(924674);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return ge.recoverMessageAddress}});var me=r(832899);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return me.recoverPublicKey}});var ye=r(386399);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return ye.recoverTypedDataAddress}});var be=r(670043);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return be.verifyMessage}});var ve=r(473296);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return ve.verifyTypedData}});var we=r(73588);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return we.hashMessage}});var Ae=r(880523);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return Ae.getSerializedTransactionType}});var Ce=r(933105);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return Ce.getTransactionType}});var Ee=r(71526);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return Ee.assertRequest}});var xe=r(293523);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return xe.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return xe.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return xe.assertTransactionLegacy}});var Se=r(23356);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return Se.parseTransaction}});var Ie=r(887934);Object.defineProperty(t,"prepareTransactionRequest",{enumerable:!0,get:function(){return Ie.prepareTransactionRequest}});var ke=r(823067);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return ke.serializeTransaction}});var _e=r(706653);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return _e.serializeAccessList}});var Te=r(896668);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return Te.formatEther}});var Me=r(929014);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return Me.formatGwei}});var Pe=r(516159);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return Pe.formatUnits}});var je=r(914491);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return je.parseUnits}});var De=r(68184);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return De.parseEther}});var Oe=r(406234);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return Oe.parseGwei}})},767566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observe=t.cleanupCache=t.listenersCache=void 0,t.listenersCache=new Map,t.cleanupCache=new Map;let r=0;t.observe=function(e,n,i){const o=++r,a=()=>t.listenersCache.get(e)||[],s=()=>{const r=t.cleanupCache.get(e);1===a().length&&r&&r(),(()=>{const r=a();t.listenersCache.set(e,r.filter((e=>e.id!==o)))})()},c=a();if(t.listenersCache.set(e,[...c,{id:o,fns:n}]),c&&c.length>0)return s;const u={};for(const t in n)u[t]=(...e)=>{const r=a();if(0!==r.length)for(const n of r)n.fns[t]?.(...e)};const l=i(u);return"function"==typeof l&&t.cleanupCache.set(e,l),s}},810733:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.poll=void 0;const n=r(6189);t.poll=function(e,{emitOnBegin:t,initialWaitTime:r,interval:i}){let o=!0;const a=()=>o=!1;return(async()=>{let s;t&&(s=await e({unpoll:a}));const c=await(r?.(s))??i;await(0,n.wait)(c);const u=async()=>{o&&(await e({unpoll:a}),await(0,n.wait)(i),u())};u()})(),a}},75591:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBatchScheduler=void 0;const r=new Map;t.createBatchScheduler=function({fn:e,id:t,shouldSplitBatch:n,wait:i=0,sort:o}){const a=async()=>{const t=c();s();const r=t.map((({args:e})=>e));0!==r.length&&e(r).then((e=>{o&&Array.isArray(e)&&e.sort(o);for(let r=0;r{for(let r=0;rr.delete(t),c=()=>r.get(t)||[],u=e=>r.set(t,[...c(),e]);return{flush:s,async schedule(e){const t={},r=new Promise(((e,r)=>{t.resolve=e,t.reject=r})),o=n?.([...c().map((({args:e})=>e)),e]);o&&a();return c().length>0?(u({args:e,pendingPromise:t}),r):(u({args:e,pendingPromise:t}),setTimeout(a,i),r)}}}},517370:(e,t)=>{"use strict";function r(e){const r=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),n=r(e,t.promiseCache),i=r(e,t.responseCache);return{clear:()=>{n.clear(),i.clear()},promise:n,response:i}}Object.defineProperty(t,"__esModule",{value:!0}),t.withCache=t.getCache=t.responseCache=t.promiseCache=void 0,t.promiseCache=new Map,t.responseCache=new Map,t.getCache=r,t.withCache=async function(e,{cacheKey:t,cacheTime:n=1/0}){const i=r(t),o=i.response.get();if(o&&n>0){if((new Date).getTime()-o.created.getTime(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withRetry=void 0;const n=r(6189);t.withRetry=function(e,{delay:t=100,retryCount:r=2,shouldRetry:i=()=>!0}={}){return new Promise(((o,a)=>{const s=async({count:c=0}={})=>{try{const t=await e();o(t)}catch(u){if(c{const r="function"==typeof t?t({count:c,error:e}):t;r&&await(0,n.wait)(r),s({count:c+1})})({error:u});a(u)}};s()}))}},364971:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=void 0,t.withTimeout=function(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:n}){return new Promise(((i,o)=>{(async()=>{let a;try{const s=new AbortController;r>0&&(a=setTimeout((()=>{n?s.abort():o(t)}),r)),i(await e({signal:s?.signal}))}catch(s){"AbortError"===s.name&&o(t),o(s)}finally{clearTimeout(a)}})()}))}},685797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.integerRegex=t.bytesRegex=t.arrayRegex=void 0,t.arrayRegex=/^(.*)\[([0-9]*)\]$/,t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/},280817:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=t.getSocket=t.socketsCache=void 0;const n=r(466027),i=r(997811),o=r(75591),a=r(364971),s=r(766527);let c=0;t.socketsCache=new Map,t.getSocket=async function(e){let r=t.socketsCache.get(e);if(r)return r;const{schedule:i}=(0,o.createBatchScheduler)({id:e,fn:async()=>{const i=new n.WebSocket(e),o=new Map,a=new Map,s=({data:e})=>{const t=JSON.parse(e),r="eth_subscription"===t.method,n=r?t.params.subscription:t.id,i=r?a:o,s=i.get(n);s&&s({data:e}),r||i.delete(n)},c=()=>{t.socketsCache.delete(e),i.removeEventListener("close",c),i.removeEventListener("message",s)};return i.addEventListener("close",c),i.addEventListener("message",s),i.readyState===n.WebSocket.CONNECTING&&await new Promise(((e,t)=>{i&&(i.onopen=e,i.onerror=t)})),r=Object.assign(i,{requests:o,subscriptions:a}),t.socketsCache.set(e,r),[r]}}),[a,[s]]=await i();return s},t.rpc={http:async function(e,{body:t,fetchOptions:r={},timeout:n=1e4}){const{headers:o,method:u,signal:l}=r;try{const d=await(0,a.withTimeout)((async({signal:i})=>await fetch(e,{...r,body:Array.isArray(t)?(0,s.stringify)(t.map((e=>({jsonrpc:"2.0",id:e.id??c++,...e})))):(0,s.stringify)({jsonrpc:"2.0",id:t.id??c++,...t}),headers:{...o,"Content-Type":"application/json"},method:u||"POST",signal:l||(n>0?i:void 0)})),{errorInstance:new i.TimeoutError({body:t,url:e}),timeout:n,signal:!0});let f;if(f=d.headers.get("Content-Type")?.startsWith("application/json")?await d.json():await d.text(),!d.ok)throw new i.HttpRequestError({body:t,details:(0,s.stringify)(f.error)||d.statusText,headers:d.headers,status:d.status,url:e});return f}catch(d){if(d instanceof i.HttpRequestError)throw d;if(d instanceof i.TimeoutError)throw d;throw new i.HttpRequestError({body:t,details:d.message,url:e})}},webSocket:function(e,{body:t,onResponse:r}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new i.WebSocketRequestError({body:t,url:e.url,details:"Socket is closed."});const n=c++,o=({data:i})=>{const a=JSON.parse(i);"number"==typeof a.id&&n!==a.id||(r?.(a),"eth_subscribe"===t.method&&"string"==typeof a.result&&e.subscriptions.set(a.result,o),"eth_unsubscribe"===t.method&&e.subscriptions.delete(t.params?.[0]))};return e.requests.set(n,o),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:n})),e},webSocketAsync:async function(e,{body:r,timeout:n=1e4}){return(0,a.withTimeout)((()=>new Promise((n=>t.rpc.webSocket(e,{body:r,onResponse:n})))),{errorInstance:new i.TimeoutError({body:r,url:e.url}),timeout:n})}}},632154:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactSignatureToHex=void 0;const n=r(484183),i=r(15987);t.compactSignatureToHex=function({r:e,yParityAndS:t}){return`0x${new n.secp256k1.Signature((0,i.hexToBigInt)(e),(0,i.hexToBigInt)(t)).toCompactHex()}`}},339801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactSignatureToSignature=void 0;const n=r(184962),i=r(214368);t.compactSignatureToSignature=function({r:e,yParityAndS:t}){const r=(0,n.hexToBytes)(t),o=128&r[0]?28n:27n,a=r;return 28n===o&&(a[0]&=127),{r:e,s:(0,i.bytesToHex)(a),v:o}}},73588:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashMessage=void 0;const n=r(510632),i=r(283755),o=r(184962),a=r(829336);t.hashMessage=function(e,t){const r="string"==typeof e?(0,o.stringToBytes)(e):e.raw instanceof Uint8Array?e.raw:(0,o.toBytes)(e.raw),s=(0,o.stringToBytes)(`${n.presignMessagePrefix}${r.length}`);return(0,a.keccak256)((0,i.concat)([s,r]),t)}},281835:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashDomain=t.hashTypedData=void 0;const n=r(689219),i=r(283755),o=r(214368),a=r(829336),s=r(72318);function c({domain:e,types:t}){return u({data:e,primaryType:"EIP712Domain",types:t})}function u({data:e,primaryType:t,types:r}){const n=l({data:e,primaryType:t,types:r});return(0,a.keccak256)(n)}function l({data:e,primaryType:t,types:r}){const i=[{type:"bytes32"}],o=[d({primaryType:t,types:r})];for(const n of r[t]){const[t,a]=h({types:r,name:n.name,type:n.type,value:e[n.name]});i.push(t),o.push(a)}return(0,n.encodeAbiParameters)(i,o)}function d({primaryType:e,types:t}){const r=(0,o.toHex)(function({primaryType:e,types:t}){let r="";const n=f({primaryType:e,types:t});n.delete(e);const i=[e,...Array.from(n).sort()];for(const o of i)r+=`${o}(${t[o].map((({name:e,type:t})=>`${t} ${e}`)).join(",")})`;return r}({primaryType:e,types:t}));return(0,a.keccak256)(r)}function f({primaryType:e,types:t},r=new Set){const n=e.match(/^\w*/u),i=n?.[0];if(r.has(i)||void 0===t[i])return r;r.add(i);for(const o of t[i])f({primaryType:o.type,types:t},r);return r}function h({types:e,name:t,type:r,value:i}){if(void 0!==e[r])return[{type:"bytes32"},(0,a.keccak256)(l({data:i,primaryType:r,types:e}))];if("bytes"===r){return i=`0x${(i.length%2?"0":"")+i.slice(2)}`,[{type:"bytes32"},(0,a.keccak256)(i)]}if("string"===r)return[{type:"bytes32"},(0,a.keccak256)((0,o.toHex)(i))];if(r.lastIndexOf("]")===r.length-1){const o=r.slice(0,r.lastIndexOf("[")),s=i.map((r=>h({name:t,type:o,types:e,value:r})));return[{type:"bytes32"},(0,a.keccak256)((0,n.encodeAbiParameters)(s.map((([e])=>e)),s.map((([,e])=>e))))]}return[{type:r},i]}t.hashTypedData=function({domain:e,message:t,primaryType:r,types:n}){const o=void 0===e?{}:e,l={EIP712Domain:(0,s.getTypesForEIP712Domain)({domain:o}),...n};(0,s.validateTypedData)({domain:o,message:t,primaryType:r,types:l});const d=["0x1901"];return o&&d.push(c({domain:o,types:l})),"EIP712Domain"!==r&&d.push(u({data:t,primaryType:r,types:l})),(0,a.keccak256)((0,i.concat)(d))},t.hashDomain=c},223674:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToCompactSignature=void 0;const n=r(484183),i=r(214368);t.hexToCompactSignature=function(e){const{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130));return{r:(0,i.numberToHex)(t,{size:32}),yParityAndS:(0,i.numberToHex)(r,{size:32})}}},615769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToSignature=void 0;const n=r(484183),i=r(214368);t.hexToSignature=function(e){const{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130)),o=BigInt(`0x${e.slice(130)}`);return{r:(0,i.numberToHex)(t,{size:32}),s:(0,i.numberToHex)(r,{size:32}),v:o}}},966795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=void 0;const n=r(535896),i=r(832899);t.recoverAddress=async function({hash:e,signature:t}){return(0,n.publicKeyToAddress)(await(0,i.recoverPublicKey)({hash:e,signature:t}))}},924674:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverMessageAddress=void 0;const n=r(73588),i=r(966795);t.recoverMessageAddress=async function({message:e,signature:t}){return(0,i.recoverAddress)({hash:(0,n.hashMessage)(e),signature:t})}},832899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverPublicKey=void 0;const n=r(771482),i=r(15987),o=r(214368);t.recoverPublicKey=async function({hash:e,signature:t}){const a=(0,n.isHex)(t)?t:(0,o.toHex)(t),s=(0,n.isHex)(e)?e:(0,o.toHex)(e);let c=(0,i.hexToNumber)(`0x${a.slice(130)}`);0!==c&&1!==c||(c+=27);const{secp256k1:u}=await Promise.resolve().then((()=>r(484183)));return`0x${u.Signature.fromCompact(a.substring(2,130)).addRecoveryBit(c-27).recoverPublicKey(s.substring(2)).toHex(!1)}`}},386399:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedDataAddress=void 0;const n=r(281835),i=r(966795);t.recoverTypedDataAddress=async function({domain:e,message:t,primaryType:r,signature:o,types:a}){return(0,i.recoverAddress)({hash:(0,n.hashTypedData)({domain:e,message:t,primaryType:r,types:a}),signature:o})}},919453:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signatureToCompactSignature=void 0;const n=r(419970);t.signatureToCompactSignature=function(e){const{r:t,s:r,v:i}=e;let o=r;if(1n===i-27n){const e=(0,n.hexToBytes)(r);e[0]|=128,o=(0,n.bytesToHex)(e)}return{r:t,yParityAndS:o}}},822063:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signatureToHex=void 0;const n=r(484183),i=r(15987),o=r(214368);t.signatureToHex=function({r:e,s:t,v:r}){return`0x${new n.secp256k1.Signature((0,i.hexToBigInt)(e),(0,i.hexToBigInt)(t)).toCompactHex()}${(0,o.toHex)(r).slice(2)}`}},670043:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=void 0;const n=r(115257),i=r(651213),o=r(924674);t.verifyMessage=async function({address:e,message:t,signature:r}){return(0,i.isAddressEqual)((0,n.getAddress)(e),await(0,o.recoverMessageAddress)({message:t,signature:r}))}},473296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=void 0;const n=r(115257),i=r(651213),o=r(386399);t.verifyTypedData=async function({address:e,domain:t,message:r,primaryType:a,signature:s,types:c}){return(0,i.isAddressEqual)((0,n.getAddress)(e),await(0,o.recoverTypedDataAddress)({domain:t,message:r,primaryType:a,signature:s,types:c}))}},766527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0;t.stringify=(e,t,r)=>JSON.stringify(e,((e,r)=>{const n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n}),r)},71526:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertRequest=void 0;const n=r(157449),i=r(79746),o=r(585296),a=r(88094),s=r(208305);t.assertRequest=function(e){const{account:t,gasPrice:r,maxFeePerGas:c,maxPriorityFeePerGas:u,to:l}=e,d=t?(0,n.parseAccount)(t):void 0;if(d&&!(0,s.isAddress)(d.address))throw new i.InvalidAddressError({address:d.address});if(l&&!(0,s.isAddress)(l))throw new i.InvalidAddressError({address:l});if(void 0!==r&&(void 0!==c||void 0!==u))throw new a.FeeConflictError;if(c&&c>2n**256n-1n)throw new o.FeeCapTooHighError({maxFeePerGas:c});if(u&&c&&u>c)throw new o.TipAboveFeeCapError({maxFeePerGas:c,maxPriorityFeePerGas:u})}},293523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=void 0;const n=r(79746),i=r(192857),o=r(601679),a=r(585296),s=r(208305);t.assertTransactionEIP1559=function(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:u,to:l}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(c)throw new i.BaseError("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(u&&u>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:u});if(r&&u&&r>u)throw new a.TipAboveFeeCapError({maxFeePerGas:u,maxPriorityFeePerGas:r})},t.assertTransactionEIP2930=function(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:u,to:l}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(r||u)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(c&&c>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:c})},t.assertTransactionLegacy=function(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:u,to:l,accessList:d}=e;if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(void 0!==t&&t<=0)throw new o.InvalidChainIdError({chainId:t});if(r||u)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(c&&c>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:c});if(d)throw new i.BaseError("`accessList` is not a valid Legacy Transaction attribute.")}},880523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSerializedTransactionType=void 0;const n=r(88094),i=r(93577),o=r(15987);t.getSerializedTransactionType=function(e){const t=(0,i.sliceHex)(e,0,1);if("0x02"===t)return"eip1559";if("0x01"===t)return"eip2930";if("0x"!==t&&(0,o.hexToNumber)(t)>=192)return"legacy";throw new n.InvalidSerializedTransactionTypeError({serializedType:t})}},933105:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionType=void 0;const n=r(88094);t.getTransactionType=function(e){if(e.type)return e.type;if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new n.InvalidSerializableTransactionError({transaction:e})}},23356:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAccessList=t.toTransactionArray=t.parseTransaction=void 0;const n=r(79746),i=r(88094),o=r(208305),a=r(771482),s=r(511965),c=r(939415),u=r(15987),l=r(734308),d=r(920899),f=r(293523),h=r(880523);function p(e){return(0,l.fromRlp)(`0x${e.slice(4)}`,"hex")}function g(e){const t=[];for(let r=0;r(0,d.isHash)(e)?e:(0,c.trim)(e)))})}return t}function m(e){const t=e.slice(-3),r="0x"===t[0]||0n===(0,u.hexToBigInt)(t[0])?27n:28n;return{r:(0,s.padHex)(t[1],{size:32}),s:(0,s.padHex)(t[2],{size:32}),v:r,yParity:27n===r?0:1}}t.parseTransaction=function(e){const t=(0,h.getSerializedTransactionType)(e);return"eip1559"===t?function(e){const t=p(e),[r,n,o,s,c,l,d,h,y,b,v,w]=t;if(9!==t.length&&12!==t.length)throw new i.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:o,maxFeePerGas:s,gas:c,to:l,value:d,data:h,accessList:y,...t.length>9?{v:b,r:v,s:w}:{}},serializedTransaction:e,type:"eip1559"});const A={chainId:(0,u.hexToNumber)(r),type:"eip1559"};(0,a.isHex)(l)&&"0x"!==l&&(A.to=l);(0,a.isHex)(c)&&"0x"!==c&&(A.gas=(0,u.hexToBigInt)(c));(0,a.isHex)(h)&&"0x"!==h&&(A.data=h);(0,a.isHex)(n)&&"0x"!==n&&(A.nonce=(0,u.hexToNumber)(n));(0,a.isHex)(d)&&"0x"!==d&&(A.value=(0,u.hexToBigInt)(d));(0,a.isHex)(s)&&"0x"!==s&&(A.maxFeePerGas=(0,u.hexToBigInt)(s));(0,a.isHex)(o)&&"0x"!==o&&(A.maxPriorityFeePerGas=(0,u.hexToBigInt)(o));0!==y.length&&"0x"!==y&&(A.accessList=g(y));(0,f.assertTransactionEIP1559)(A);return{...12===t.length?m(t):void 0,...A}}(e):"eip2930"===t?function(e){const t=p(e),[r,n,o,s,c,l,d,h,y,b,v]=t;if(8!==t.length&&11!==t.length)throw new i.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,gasPrice:o,gas:s,to:c,value:l,data:d,accessList:h,...t.length>8?{v:y,r:b,s:v}:{}},serializedTransaction:e,type:"eip2930"});const w={chainId:(0,u.hexToNumber)(r),type:"eip2930"};(0,a.isHex)(c)&&"0x"!==c&&(w.to=c);(0,a.isHex)(s)&&"0x"!==s&&(w.gas=(0,u.hexToBigInt)(s));(0,a.isHex)(d)&&"0x"!==d&&(w.data=d);(0,a.isHex)(n)&&"0x"!==n&&(w.nonce=(0,u.hexToNumber)(n));(0,a.isHex)(l)&&"0x"!==l&&(w.value=(0,u.hexToBigInt)(l));(0,a.isHex)(o)&&"0x"!==o&&(w.gasPrice=(0,u.hexToBigInt)(o));0!==h.length&&"0x"!==h&&(w.accessList=g(h));(0,f.assertTransactionEIP2930)(w);return{...11===t.length?m(t):void 0,...w}}(e):function(e){const t=(0,l.fromRlp)(e,"hex"),[r,n,o,s,c,d,h,p,g]=t;if(6!==t.length&&9!==t.length)throw new i.InvalidSerializedTransactionError({attributes:{nonce:r,gasPrice:n,gas:o,to:s,value:c,data:d,...t.length>6?{v:h,r:p,s:g}:{}},serializedTransaction:e,type:"legacy"});const m={type:"legacy"};(0,a.isHex)(s)&&"0x"!==s&&(m.to=s);(0,a.isHex)(o)&&"0x"!==o&&(m.gas=(0,u.hexToBigInt)(o));(0,a.isHex)(d)&&"0x"!==d&&(m.data=d);(0,a.isHex)(r)&&"0x"!==r&&(m.nonce=(0,u.hexToNumber)(r));(0,a.isHex)(c)&&"0x"!==c&&(m.value=(0,u.hexToBigInt)(c));(0,a.isHex)(n)&&"0x"!==n&&(m.gasPrice=(0,u.hexToBigInt)(n));if((0,f.assertTransactionLegacy)(m),6===t.length)return m;const y=(0,a.isHex)(h)&&"0x"!==h?(0,u.hexToBigInt)(h):0n;if("0x"===g&&"0x"===p)return y>0&&(m.chainId=Number(y)),m;const b=y,v=Number((b-35n)/2n);if(v>0)m.chainId=v;else if(27n!==b&&28n!==b)throw new i.InvalidLegacyVError({v:b});return m.v=b,m.s=g,m.r=p,m}(e)},t.toTransactionArray=p,t.parseAccessList=g},706653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeAccessList=void 0;const n=r(79746),i=r(88094),o=r(208305);t.serializeAccessList=function(e){if(!e||0===e.length)return[];const t=[];for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeTransaction=void 0;const n=r(88094),i=r(283755),o=r(939415),a=r(214368),s=r(246915),c=r(293523),u=r(933105),l=r(706653);t.serializeTransaction=function(e,t){const r=(0,u.getTransactionType)(e);return"eip1559"===r?function(e,t){const{chainId:r,gas:n,nonce:u,to:d,value:f,maxFeePerGas:h,maxPriorityFeePerGas:p,accessList:g,data:m}=e;(0,c.assertTransactionEIP1559)(e);const y=(0,l.serializeAccessList)(g),b=[(0,a.toHex)(r),u?(0,a.toHex)(u):"0x",p?(0,a.toHex)(p):"0x",h?(0,a.toHex)(h):"0x",n?(0,a.toHex)(n):"0x",d??"0x",f?(0,a.toHex)(f):"0x",m??"0x",y];if(t){const e=0n===t.v?"0x":1n===t.v?(0,a.toHex)(1):27n===t.v?"0x":(0,a.toHex)(1);b.push(e,(0,o.trim)(t.r),(0,o.trim)(t.s))}return(0,i.concatHex)(["0x02",(0,s.toRlp)(b)])}(e,t):"eip2930"===r?function(e,t){const{chainId:r,gas:n,data:u,nonce:d,to:f,value:h,accessList:p,gasPrice:g}=e;(0,c.assertTransactionEIP2930)(e);const m=(0,l.serializeAccessList)(p),y=[(0,a.toHex)(r),d?(0,a.toHex)(d):"0x",g?(0,a.toHex)(g):"0x",n?(0,a.toHex)(n):"0x",f??"0x",h?(0,a.toHex)(h):"0x",u??"0x",m];if(t){const e=0n===t.v?"0x":1n===t.v?(0,a.toHex)(1):27n===t.v?"0x":(0,a.toHex)(1);y.push(e,(0,o.trim)(t.r),(0,o.trim)(t.s))}return(0,i.concatHex)(["0x01",(0,s.toRlp)(y)])}(e,t):function(e,t){const{chainId:r=0,gas:i,data:o,nonce:u,to:l,value:d,gasPrice:f}=e;(0,c.assertTransactionLegacy)(e);let h=[u?(0,a.toHex)(u):"0x",f?(0,a.toHex)(f):"0x",i?(0,a.toHex)(i):"0x",l??"0x",d?(0,a.toHex)(d):"0x",o??"0x"];if(t){const e=(()=>{if(r>0)return BigInt(2*r)+BigInt(35n+t.v-27n);if(t.v>=35n){return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n)}const e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new n.InvalidLegacyVError({v:t.v});return e})();h=[...h,(0,a.toHex)(e),t.r,t.s]}else r>0&&(h=[...h,(0,a.toHex)(r),"0x","0x"]);return(0,s.toRlp)(h)}(e,t)}},72318:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.domainSeparator=t.getTypesForEIP712Domain=t.validateTypedData=void 0;const n=r(112060),i=r(79746),o=r(208305),a=r(269662),s=r(214368),c=r(685797),u=r(281835);function l({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},"number"==typeof e?.chainId&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}t.validateTypedData=function({domain:e,message:t,primaryType:r,types:u}){const l=u,d=(e,t)=>{for(const r of e){const{name:e,type:u}=r,f=u,h=t[e],p=f.match(c.integerRegex);if(p&&("number"==typeof h||"bigint"==typeof h)){const[e,t,r]=p;(0,s.numberToHex)(h,{signed:"int"===t,size:parseInt(r)/8})}if("address"===f&&"string"==typeof h&&!(0,o.isAddress)(h))throw new i.InvalidAddressError({address:h});const g=f.match(c.bytesRegex);if(g){const[e,t]=g;if(t&&(0,a.size)(h)!==parseInt(t))throw new n.BytesSizeMismatchError({expectedSize:parseInt(t),givenSize:(0,a.size)(h)})}const m=l[f];m&&d(m,h)}};if(l.EIP712Domain&&e&&d(l.EIP712Domain,e),"EIP712Domain"!==r){const e=l[r];d(e,t)}},t.getTypesForEIP712Domain=l,t.domainSeparator=function({domain:e}){return(0,u.hashDomain)({domain:e,types:{EIP712Domain:l({domain:e})}})}},643540:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uid=void 0;let r,n=256;t.uid=function(e=11){if(!r||n+e>512){r="",n=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(n,n+++e)}},896668:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatEther=void 0;const n=r(886734),i=r(516159);t.formatEther=function(e,t="wei"){return(0,i.formatUnits)(e,n.etherUnits[t])}},929014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatGwei=void 0;const n=r(886734),i=r(516159);t.formatGwei=function(e,t="wei"){return(0,i.formatUnits)(e,n.gweiUnits[t])}},516159:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUnits=void 0,t.formatUnits=function(e,t){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[i,o]=[r.slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${o?`.${o}`:""}`}},68184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=void 0;const n=r(886734),i=r(914491);t.parseEther=function(e,t="wei"){return(0,i.parseUnits)(e,n.etherUnits[t])}},406234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseGwei=void 0;const n=r(886734),i=r(914491);t.parseGwei=function(e,t="wei"){return(0,i.parseUnits)(e,n.gweiUnits[t])}},914491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnits=void 0,t.parseUnits=function(e,t){let[r,n="0"]=e.split(".");const i=r.startsWith("-");if(i&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){const[e,i,o]=[n.slice(0,t-1),n.slice(t-1,t),n.slice(t)],a=Math.round(Number(`${i}.${o}`));n=a>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${a}`,n.length>t&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,t)}else n=n.padEnd(t,"0");return BigInt(`${i?"-":""}${r}${n}`)}},6189:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wait=void 0,t.wait=async function(e){return new Promise((t=>setTimeout(t,e)))}},514086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(331635).__exportStar(r(971898),t)},526366:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commABI=void 0,t.commABI=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"channel",type:"address"},{indexed:!1,internalType:"address",name:"delegate",type:"address"}],name:"AddDelegate",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"_chainName",type:"string"},{indexed:!0,internalType:"uint256",name:"_chainID",type:"uint256"},{indexed:!0,internalType:"address",name:"_channelOwnerAddress",type:"address"},{indexed:!1,internalType:"string",name:"_ethereumChannelAddress",type:"string"}],name:"ChannelAlias",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"bytes",name:"publickey",type:"bytes"}],name:"PublicKeyRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"channel",type:"address"},{indexed:!1,internalType:"address",name:"delegate",type:"address"}],name:"RemoveDelegate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"bytes",name:"identity",type:"bytes"}],name:"SendNotification",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"user",type:"address"}],name:"Subscribe",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"user",type:"address"}],name:"Unsubscribe",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"_channel",type:"address"},{indexed:!1,internalType:"address",name:"_user",type:"address"},{indexed:!1,internalType:"uint256",name:"_notifID",type:"uint256"},{indexed:!1,internalType:"string",name:"_notifSettings",type:"string"}],name:"UserNotifcationSettingsAdded",type:"event"},{inputs:[],name:"DOMAIN_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"EPNSCoreAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"NAME_HASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"SEND_NOTIFICATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"SUBSCRIBE_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"UNSUBSCRIBE_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_delegate",type:"address"}],name:"addDelegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_channelList",type:"address[]"}],name:"batchSubscribe",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_channelList",type:"address[]"}],name:"batchUnsubscribe",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"_publicKey",type:"bytes"}],name:"broadcastUserPublicKey",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"chainID",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"chainName",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"uint256",name:"_notifID",type:"uint256"},{internalType:"string",name:"_notifSettings",type:"string"}],name:"changeUserChannelSettings",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"completeMigration",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"delegatedNotificationSenders",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_publicKey",type:"bytes"}],name:"getWalletFromPublicKey",outputs:[{internalType:"address",name:"wallet",type:"address"}],stateMutability:"pure",type:"function"},{inputs:[],name:"governance",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_pushChannelAdmin",type:"address"},{internalType:"string",name:"_chainName",type:"string"}],name:"initialize",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isMigrationComplete",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"address",name:"_user",type:"address"}],name:"isUserSubscribed",outputs:[{internalType:"bool",name:"isSubscriber",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"mapAddressUsers",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startIndex",type:"uint256"},{internalType:"uint256",name:"_endIndex",type:"uint256"},{internalType:"address[]",name:"_channelList",type:"address[]"},{internalType:"address[]",name:"_usersList",type:"address[]"}],name:"migrateSubscribeData",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"pushChannelAdmin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_delegate",type:"address"}],name:"removeDelegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"bytes",name:"_identity",type:"bytes"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"sendNotifBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"bytes",name:"_identity",type:"bytes"}],name:"sendNotification",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_coreAddress",type:"address"}],name:"setEPNSCoreAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_governanceAddress",type:"address"}],name:"setGovernanceAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"subscribe",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"channel",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"subscribeBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"address",name:"_user",type:"address"}],name:"subscribeViaCore",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAdmin",type:"address"}],name:"transferPushChannelAdminControl",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"unsubscribe",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"channel",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"unsubscribeBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"userToChannelNotifs",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"users",outputs:[{internalType:"bool",name:"userActivated",type:"bool"},{internalType:"bool",name:"publicKeyRegistered",type:"bool"},{internalType:"uint256",name:"userStartBlock",type:"uint256"},{internalType:"uint256",name:"subscribedCount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"usersCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_channelAddress",type:"string"}],name:"verifyChannelAlias",outputs:[],stateMutability:"nonpayable",type:"function"}]},124677:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coreABI=void 0,t.coreABI=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"enum EPNSCoreStorageV1_5.ChannelType",name:"channelType",type:"uint8"},{indexed:!1,internalType:"bytes",name:"identity",type:"bytes"}],name:"AddChannel",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!1,internalType:"bytes",name:"_subGraphData",type:"bytes"}],name:"AddSubGraph",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"}],name:"ChannelBlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"_channel",type:"address"},{indexed:!1,internalType:"uint256",name:"totalNotifOptions",type:"uint256"},{indexed:!1,internalType:"string",name:"_notifSettings",type:"string"},{indexed:!1,internalType:"string",name:"_notifDescription",type:"string"}],name:"ChannelNotifcationSettingsAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"ChannelOwnershipTransfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"revoker",type:"address"}],name:"ChannelVerificationRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"verifier",type:"address"}],name:"ChannelVerified",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"amountClaimed",type:"uint256"}],name:"ChatIncentiveClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"uint256",name:"amountRefunded",type:"uint256"}],name:"DeactivateChannel",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"requestSender",type:"address"},{indexed:!1,internalType:"address",name:"requestReceiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amountForReqReceiver",type:"uint256"},{indexed:!1,internalType:"uint256",name:"feePoolAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"timestamp",type:"uint256"}],name:"IncentivizeChatReqReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"uint256",name:"amountDeposited",type:"uint256"}],name:"ReactivateChannel",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"uint256",name:"rewardAmount",type:"uint256"}],name:"RewardsClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"rewardAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"fromEpoch",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tillEpoch",type:"uint256"}],name:"RewardsHarvested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"amountStaked",type:"uint256"}],name:"Staked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"uint256",name:"amountRefunded",type:"uint256"}],name:"TimeBoundChannelDestroyed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"amountUnstaked",type:"uint256"}],name:"Unstaked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!1,internalType:"bytes",name:"identity",type:"bytes"},{indexed:!0,internalType:"uint256",name:"amountDeposited",type:"uint256"}],name:"UpdateChannel",type:"event"},{inputs:[],name:"ADD_CHANNEL_MIN_FEES",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"CHANNEL_POOL_FUNDS",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"CREATE_CHANNEL_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"FEE_AMOUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MIN_POOL_CONTRIBUTION",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"PROTOCOL_POOL_FEES",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"PUSH_TOKEN_ADDRESS",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"REFERRAL_CODE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"UNISWAP_V2_ROUTER",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"WETH_ADDRESS",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"aDaiAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_rewardAmount",type:"uint256"}],name:"addPoolFees",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"_subGraphData",type:"bytes"}],name:"addSubGraph",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startIndex",type:"uint256"},{internalType:"uint256",name:"_endIndex",type:"uint256"},{internalType:"address[]",name:"_channelList",type:"address[]"}],name:"batchVerification",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channelAddress",type:"address"}],name:"blockChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_user",type:"address"},{internalType:"uint256",name:"_epochId",type:"uint256"}],name:"calculateEpochRewards",outputs:[{internalType:"uint256",name:"rewards",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"celebUserFunds",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"channelById",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"channelNotifSettings",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"channelUpdateCounter",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"channels",outputs:[{internalType:"enum EPNSCoreStorageV1_5.ChannelType",name:"channelType",type:"uint8"},{internalType:"uint8",name:"channelState",type:"uint8"},{internalType:"address",name:"verifiedBy",type:"address"},{internalType:"uint256",name:"poolContribution",type:"uint256"},{internalType:"uint256",name:"channelHistoricalZ",type:"uint256"},{internalType:"uint256",name:"channelFairShareCount",type:"uint256"},{internalType:"uint256",name:"channelLastUpdate",type:"uint256"},{internalType:"uint256",name:"channelStartBlock",type:"uint256"},{internalType:"uint256",name:"channelUpdateBlock",type:"uint256"},{internalType:"uint256",name:"channelWeight",type:"uint256"},{internalType:"uint256",name:"expiryTime",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"channelsCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"claimChatIncentives",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_notifOptions",type:"uint256"},{internalType:"string",name:"_notifSettings",type:"string"},{internalType:"string",name:"_notifDescription",type:"string"},{internalType:"uint256",name:"_amountDeposited",type:"uint256"}],name:"createChannelSettings",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"enum EPNSCoreStorageV1_5.ChannelType",name:"_channelType",type:"uint8"},{internalType:"bytes",name:"_identity",type:"bytes"},{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"uint256",name:"_channelExpiryTime",type:"uint256"}],name:"createChannelWithPUSH",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"daiAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tillEpoch",type:"uint256"}],name:"daoHarvestPaginated",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"deactivateChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channelAddress",type:"address"}],name:"destroyTimeBoundChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"epnsCommunicator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"epochDuration",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"epochRewards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"epochToTotalStakedWeight",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"genesisEpoch",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"getChannelVerfication",outputs:[{internalType:"uint8",name:"verificationStatus",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"governance",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"groupFairShareCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"groupHistoricalZ",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"groupLastUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"groupNormalizedWeight",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"requestSender",type:"address"},{internalType:"address",name:"requestReceiver",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"handleChatRequestData",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"harvestAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tillEpoch",type:"uint256"}],name:"harvestPaginated",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_pushChannelAdmin",type:"address"},{internalType:"address",name:"_pushTokenAddress",type:"address"},{internalType:"address",name:"_wethAddress",type:"address"},{internalType:"address",name:"_uniswapRouterAddress",type:"address"},{internalType:"address",name:"_lendingPoolProviderAddress",type:"address"},{internalType:"address",name:"_daiAddress",type:"address"},{internalType:"address",name:"_aDaiAddress",type:"address"},{internalType:"uint256",name:"_referralCode",type:"uint256"}],name:"initialize",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"initializeStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isMigrationComplete",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_from",type:"uint256"},{internalType:"uint256",name:"_to",type:"uint256"}],name:"lastEpochRelative",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"lendingPoolProviderAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"pauseContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"previouslySetEpochRewards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"pushChannelAdmin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"reactivateChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_commAddress",type:"address"}],name:"setEpnsCommunicatorAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_newFees",type:"uint256"}],name:"setFeeAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_governanceAddress",type:"address"}],name:"setGovernanceAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_newFees",type:"uint256"}],name:"setMinChannelCreationFees",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_newAmount",type:"uint256"}],name:"setMinPoolContribution",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"stake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalStakedAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_newAdmin",type:"address"}],name:"transferPushChannelAdminControl",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unPauseContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unstake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"unverifyChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"bytes",name:"_newIdentity",type:"bytes"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"updateChannelMeta",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"userFeesInfo",outputs:[{internalType:"uint256",name:"stakedAmount",type:"uint256"},{internalType:"uint256",name:"stakedWeight",type:"uint256"},{internalType:"uint256",name:"lastStakedBlock",type:"uint256"},{internalType:"uint256",name:"lastClaimedBlock",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"usersRewardsClaimed",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"verifyChannel",outputs:[],stateMutability:"nonpayable",type:"function"}]},229329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tokenABI=void 0,t.tokenABI=[{inputs:[{internalType:"address",name:"account",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"holder",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"}],name:"HolderWeightChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DELEGATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PERMIT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"rawAmount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"born",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"rawAmount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint32",name:"",type:"uint32"}],name:"checkpoints",outputs:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint96",name:"votes",type:"uint96"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getCurrentVotes",outputs:[{internalType:"uint96",name:"",type:"uint96"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPriorVotes",outputs:[{internalType:"uint96",name:"",type:"uint96"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"holderDelegation",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"holderWeight",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"rawAmount",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"holder",type:"address"}],name:"resetHolderWeight",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"delegate",type:"address"}],name:"returnHolderDelegation",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"returnHolderRatio",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"delegate",type:"address"},{internalType:"bool",name:"value",type:"bool"}],name:"setHolderDelegation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"dst",type:"address"},{internalType:"uint256",name:"rawAmount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"src",type:"address"},{internalType:"address",name:"dst",type:"address"},{internalType:"uint256",name:"rawAmount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]},407705:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAliasInfo=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(746290),s=r(441786);t.getAliasInfo=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{alias:t,aliasChain:r,env:n=o.default.ENV.PROD}=e||{},c=a.ALIAS_CHAIN_ID[r][n],u=(0,i.getCAIPWithChainId)(t,c,"Alias"),l=`${`${(0,i.getAPIBaseUrls)(n)}/v1/alias`}/${u}/channel`;return yield(0,s.axiosGet)(l).then((e=>e.data)).catch((e=>{console.error(`[EPNS-SDK] - API ${l}: `,e)}))}))},809317:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(331635).__exportStar(r(407705),t)},551301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getSubscribers=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786);t._getSubscribers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){console.warn("\n [Push SDK]: _getSubscribers() Deprecation Warning!\n This method has been deprecated, please use the below alternatives\n if you need to,\n * to check if user is subscribed or not: user.getSubscriptions()\n * get channels count: channels.getChannels()\n");const{channel:t,env:r=o.default.ENV.PROD}=e||{},n=yield(0,i.getCAIPAddress)(r,t,"Channel"),s=(0,i.getCAIPDetails)(n);if(!s)throw Error("Invalid Channel CAIP!");const c=s.networkId,u=`${`${(0,i.getAPIBaseUrls)(r)}/channels/_get_subscribers`}`,l={channel:s.address,blockchain:c,op:"read"};return(yield(0,a.axiosPost)(u,l)).data.subscribers}))},305752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChannel=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(292302);t.getChannel=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{channel:t,env:r=o.default.ENV.PROD,raw:n=!0}=e||{},c=yield(0,i.getCAIPAddress)(r,t,"Channel"),u=`${`${(0,i.getAPIBaseUrls)(r)}/v1/channels`}/${c}`;return yield(0,a.axiosGet)(u).then((e=>(n||(e.data.channel_settings=e.data.channel_settings?(0,s.parseSettings)(e.data.channel_settings):null),e.data)))}))},713854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChannelNotifications=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786);t.getChannelNotifications=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{channel:t,env:r=o.default.ENV.PROD,page:n=o.default.PAGINATION.INITIAL_PAGE,limit:s=o.default.PAGINATION.LIMIT,filter:c=null,raw:u=!0}=e||{},l=yield(0,i.getCAIPAddress)(r,t,"Channel"),d=`${`${(0,i.getAPIBaseUrls)(r)}/v2/channels`}/${l}/notifications?${(0,i.getQueryParams)(c?{page:n,limit:s,notificationType:c,raw:u}:{page:n,limit:s,raw:u})}`;return yield(0,a.axiosGet)(d).then((e=>e.data))}))},397479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChannels=void 0;const n=r(331635),i=r(191227),o=r(795924),a=r(441786);t.getChannels=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{env:t=i.default.ENV.PROD,page:r=1,limit:n=10,sort:s=i.default.FILTER.CHANNEL_LIST.SORT.SUBSCRIBER,order:c=i.default.FILTER.CHANNEL_LIST.ORDER.DESCENDING}=e||{},u=`${`${(0,o.getAPIBaseUrls)(t)}/v1/channels`}?page=${r}&limit=${n}&sort=${s}&order=${c}`;return yield(0,a.axiosGet)(u).then((e=>e.data)).catch((e=>{throw console.error(`[Push SDK] - API ${u}: `,e),Error(`[Push SDK] - API - Error - API ${u} -: ${e}`)}))}))},347987:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDelegates=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786);t.getDelegates=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{channel:t,env:r=o.default.ENV.PROD}=e||{},n=yield(0,i.getCAIPAddress)(r,t,"Channel"),s=`${`${(0,i.getAPIBaseUrls)(r)}/v1/channels`}/${n}/delegates`;return yield(0,a.axiosGet)(s).then((e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.delegates})).catch((e=>{console.error(`[EPNS-SDK] - API ${s}: `,e)}))}))},148492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSubscribers=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(516758);t.getSubscribers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){try{const{channel:r,page:n=1,limit:c=10,category:u=null,setting:l=!1,env:d=o.default.ENV.PROD,raw:f=!0}=e||{};try{if(null==r||0==r.length)throw new Error("channel cannot be null or empty");if(n<=0)throw new Error("page must be greater than 0");if(c<=0)throw new Error("limit must be greater than 0");if(c>30)throw new Error("limit must be lesser than or equal to 30");const e=yield(0,i.getCAIPAddress)(d,r,"Channel");let t=`${(0,i.getAPIBaseUrls)(d)}/v1/channels/${e}/subscribers?page=${n}&limit=${c}&setting=${l}`;return u&&(t+=`&category=${u}`),yield(0,a.axiosGet)(t).then((e=>f?e.data:(0,s.parseSubscrbersApiResponse)(e.data))).catch((e=>{console.error(`[Push SDK] - API ${t}: `,e)}))}catch(t){throw console.error("[Push SDK] - API - Error - API send() -: ",t),Error(`[Push SDK] - API - Error - API send() -: ${t}`)}}catch(t){throw console.error("[Push SDK] - API - Error - API send() -: ",t),Error(`[Push SDK] - API - Error - API send() -: ${t}`)}}))},918559:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(331635);n.__exportStar(r(551301),t),n.__exportStar(r(305752),t),n.__exportStar(r(713854),t),n.__exportStar(r(397479),t),n.__exportStar(r(347987),t),n.__exportStar(r(148492),t),n.__exportStar(r(805343),t),n.__exportStar(r(316563),t),n.__exportStar(r(545571),t),n.__exportStar(r(102730),t),n.__exportStar(r(324062),t)},805343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.search=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786);t.search=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{query:t,env:r=o.default.ENV.PROD,page:n=o.default.PAGINATION.INITIAL_PAGE,limit:s=o.default.PAGINATION.LIMIT}=e||{};if(!t)throw Error('"query" not provided!');const c=`${(0,i.getAPIBaseUrls)(r)}/v1/channels/search/`,u={page:n,limit:(0,i.getLimit)(s),query:t},l=`${c}?${(0,i.getQueryParams)(u)}`;return(0,a.axiosGet)(l).then((e=>e.data.channels)).catch((e=>{console.error(`[Push SDK] - API ${l}: `,e)}))}))},648562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeInformationV2=t.getTypeInformation=t.getSubscriptionMessageV2=t.getSubscriptionMessage=t.getDomainInformation=void 0;t.getDomainInformation=(e,t)=>({name:"EPNS COMM V1",chainId:e,verifyingContract:t});t.getSubscriptionMessage=(e,t,r)=>{const n="Unsubscribe"===r?"unsubscriber":"subscriber";return{channel:e,[n]:t,action:r}};t.getSubscriptionMessageV2=(e,t,r,n)=>{const i="Unsubscribe"===r?"unsubscriber":"subscriber";return"Subscribe"==r?JSON.stringify({channel:e,[i]:t,action:r,userSetting:null!=n?n:""},null,4):JSON.stringify({channel:e,[i]:t,action:r},null,4)};t.getTypeInformation=e=>"Subscribe"===e?{Subscribe:[{name:"channel",type:"address"},{name:"subscriber",type:"address"},{name:"action",type:"string"}]}:{Unsubscribe:[{name:"channel",type:"address"},{name:"unsubscriber",type:"address"},{name:"action",type:"string"}]};t.getTypeInformationV2=()=>({Data:[{name:"data",type:"string"}]})},316563:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe=void 0;const n=r(331635),i=r(795924),o=r(648562),a=r(397067),s=r(441786);t.subscribe=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{signer:t,channelAddress:r,userAddress:n,verifyingContractAddress:c,origin:u,env:l=a.default.ENV.PROD,onSuccess:d,onError:f}=e||{};try{const e=yield(0,i.getCAIPAddress)(l,r,"Channel"),a=(0,i.getCAIPDetails)(e);if(!a)throw Error("Invalid Channel CAIP!");const f=parseInt(a.networkId,10),h=yield(0,i.getCAIPAddress)(l,n,"User"),p=(0,i.getCAIPDetails)(h);if(!p)throw Error("Invalid User CAIP!");const{API_BASE_URL:g,EPNS_COMMUNICATOR_CONTRACT:m}=(0,i.getConfig)(l,a),y=`${g}/v1/channels/${e}/subscribe`,b=(0,o.getDomainInformation)(f,c||m),v=(0,o.getTypeInformation)("Subscribe"),w=(0,o.getSubscriptionMessage)(a.address,p.address,"Subscribe"),A=new i.Signer(t),C=yield A.signTypedData(b,v,w,"Subscribe"),E={verificationProof:C,message:Object.assign(Object.assign({},w),{channel:e,subscriber:h}),origin:u};return yield(0,s.axiosPost)(y,E),"function"==typeof d&&d(),{status:"success",message:"successfully opted into channel"}}catch(h){return"function"==typeof f&&f(h),{status:"error",message:h instanceof Error?h.message:JSON.stringify(h)}}}))},545571:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeV2=void 0;const n=r(331635),i=r(795924),o=r(648562),a=r(397067),s=r(441786);t.subscribeV2=e=>n.__awaiter(void 0,void 0,void 0,(function*(){var t,r;const{signer:n,channelAddress:c,userAddress:u,settings:l,verifyingContractAddress:d,env:f=a.default.ENV.PROD,origin:h,onSuccess:p,onError:g}=e||{};try{const e=yield(0,i.getCAIPAddress)(f,c,"Channel"),t=(0,i.getCAIPDetails)(e);if(!t)throw Error("Invalid Channel CAIP!");const r=parseInt(t.networkId,10),a=yield(0,i.getCAIPAddress)(f,u,"User"),g=(0,i.getCAIPDetails)(a);if(!g)throw Error("Invalid User CAIP!");const{API_BASE_URL:m,EPNS_COMMUNICATOR_CONTRACT:y}=(0,i.getConfig)(f,t),b=`${m}/v1/channels/${e}/subscribe`,v=(0,o.getDomainInformation)(r,d||y),w=(0,o.getTypeInformationV2)(),A={data:(0,o.getSubscriptionMessageV2)(t.address,g.address,"Subscribe",l)},C=new i.Signer(n),E=yield C.signTypedData(v,w,A,"Data"),x={verificationProof:`eip712v2:${E}`,message:A.data,origin:h},S=yield(0,s.axiosPost)(b,x);return"function"==typeof p&&p(),{status:S.status,message:"successfully opted into channel"}}catch(m){return"function"==typeof g&&g(m),{status:null!==(r=null===(t=null==m?void 0:m.response)||void 0===t?void 0:t.status)&&void 0!==r?r:"",message:m instanceof Error?m.message:JSON.stringify(m)}}}))},102730:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unsubscribe=void 0;const n=r(331635),i=r(795924),o=r(648562),a=r(397067),s=r(441786);t.unsubscribe=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{signer:t,channelAddress:r,userAddress:n,verifyingContractAddress:c,env:u=a.default.ENV.PROD,onSuccess:l,onError:d}=e||{};try{const e=yield(0,i.getCAIPAddress)(u,r,"Channel"),a=(0,i.getCAIPDetails)(e);if(!a)throw Error("Invalid Channel CAIP!");const d=parseInt(a.networkId,10),f=yield(0,i.getCAIPAddress)(u,n,"User"),h=(0,i.getCAIPDetails)(f);if(!h)throw Error("Invalid User CAIP!");const{API_BASE_URL:p,EPNS_COMMUNICATOR_CONTRACT:g}=(0,i.getConfig)(u,a),m=`${p}/v1/channels/${e}/unsubscribe`,y=(0,o.getDomainInformation)(d,c||g),b=(0,o.getTypeInformation)("Unsubscribe"),v=(0,o.getSubscriptionMessage)(a.address,h.address,"Unsubscribe"),w=new i.Signer(t),A=yield w.signTypedData(y,b,v,"Unsubscribe"),C={verificationProof:A,message:Object.assign(Object.assign({},v),{channel:e,unsubscriber:f})};return yield(0,s.axiosPost)(m,C),"function"==typeof l&&l(),{status:"success",message:"successfully opted out channel"}}catch(f){return"function"==typeof d&&d(f),{status:"error",message:f instanceof Error?f.message:JSON.stringify(f)}}}))},324062:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unsubscribeV2=void 0;const n=r(331635),i=r(795924),o=r(648562),a=r(397067),s=r(441786);t.unsubscribeV2=e=>n.__awaiter(void 0,void 0,void 0,(function*(){var t,r;const{signer:n,channelAddress:c,userAddress:u,verifyingContractAddress:l,env:d=a.default.ENV.PROD,onSuccess:f,onError:h}=e||{};try{const e=yield(0,i.getCAIPAddress)(d,c,"Channel"),t=(0,i.getCAIPDetails)(e);if(!t)throw Error("Invalid Channel CAIP!");const r=parseInt(t.networkId,10),a=yield(0,i.getCAIPAddress)(d,u,"User"),h=(0,i.getCAIPDetails)(a);if(!h)throw Error("Invalid User CAIP!");const{API_BASE_URL:p,EPNS_COMMUNICATOR_CONTRACT:g}=(0,i.getConfig)(d,t),m=`${p}/v1/channels/${e}/unsubscribe`,y=(0,o.getDomainInformation)(r,l||g),b=(0,o.getTypeInformationV2)(),v={data:(0,o.getSubscriptionMessageV2)(t.address,h.address,"Unsubscribe")},w=new i.Signer(n),A=yield w.signTypedData(y,b,v,"Data"),C={verificationProof:`eip712v2:${A}`,message:v.data},E=yield(0,s.axiosPost)(m,C);return"function"==typeof f&&f(),{status:E.status,message:"successfully opted out channel"}}catch(p){return"function"==typeof h&&h(p),{status:null!==(r=null===(t=null==p?void 0:p.response)||void 0===t?void 0:t.status)&&void 0!==r?r:"",message:p instanceof Error?p.message:JSON.stringify(p)}}}))},559190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addAdmins=void 0;const n=r(331635),i=r(746290),o=r(397067),a=r(500547),s=r(88634);t.addAdmins=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,admins:n,account:c=null,signer:u=null,env:l=o.default.ENV.PROD,pgpPrivateKey:d=null,overrideSecretKeyGeneration:f=!i.ALPHA_FEATURE_CONFIG[o.PACKAGE_BUILD].feature.includes(o.default.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==c&&null==u)throw new Error("At least one from account or signer is necessary!");if(!n||0===n.length)throw new Error("Admin address array cannot be empty!");const e={chatId:r,upsert:{members:[],admins:n},remove:[],account:c,signer:u,pgpPrivateKey:d,env:l,overrideSecretKeyGeneration:f};return yield(0,s.updateGroupMembers)(e)}catch(h){throw(0,a.handleError)(h,t.addAdmins.name)}}))},804991:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addMembers=void 0;const n=r(331635),i=r(746290),o=r(397067),a=r(500547),s=r(88634);t.addMembers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,members:n,account:c=null,signer:u=null,env:l=o.default.ENV.PROD,pgpPrivateKey:d=null,overrideSecretKeyGeneration:f=!i.ALPHA_FEATURE_CONFIG[o.PACKAGE_BUILD].feature.includes(o.default.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==c&&null==u)throw new Error("At least one from account or signer is necessary!");if(!n||0===n.length)throw new Error("Member address array cannot be empty!");const e={chatId:r,upsert:{members:n,admins:[]},remove:[],account:c,signer:u,pgpPrivateKey:d,env:l,overrideSecretKeyGeneration:f};return yield(0,s.updateGroupMembers)(e)}catch(h){throw(0,a.handleError)(h,t.addMembers.name)}}))},665447:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.approveCore=t.approve=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(441786),u=r(299348),l=r(446206),d=r(918781),f=r(746290),h=r(500547);t.approve=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.approveCore)(e,a.PGPHelper)}));t.approveCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{status:n="Approved",account:p=null,signer:g=null,senderAddress:m,env:y=o.default.ENV.PROD,pgpPrivateKey:b=null,overrideSecretKeyGeneration:v=!f.ALPHA_FEATURE_CONFIG[o.PACKAGE_BUILD].feature.includes(o.default.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};if(null==p&&null==g)throw new Error("At least one from account or signer is necessary!");const w=(0,a.getWallet)({account:p,signer:g}),A=yield(0,a.getAccountAddress)(w),C=!(0,i.isValidPushCAIP)(m),E=yield(0,a.getConnectedUserV2Core)(w,b,y,r),x=C?yield(0,i.convertToValidDID)(A,y):yield(0,i.convertToValidDID)(m,y),S=C?yield(0,i.convertToValidDID)(m,y):yield(0,i.convertToValidDID)(A,y);let I,k=null,_="pgp";if(C){const e=yield(0,l.getGroupInfo)({chatId:m,env:y});if(e&&!e.isPublic&&(e.encryptedSecret||!v)){_="pgpv2";const t=u.generateRandomSecret(15),n=(yield(0,d.getAllGroupMembersPublicKeys)({chatId:e.chatId,env:y})).map((e=>e.publicKey));n.push(E.publicKey),k=yield r.pgpEncrypt({plainText:t,keys:n})}}switch(_){case"pgp":I={fromDID:x,toDID:S,status:n};break;case"pgpv2":I={fromDID:x,toDID:S,status:n,encryptedSecret:k}}const T=s.SHA256(JSON.stringify(I)).toString(),M=yield r.sign({message:T,signingKey:E.privateKey}),P={fromDID:x,toDID:S,signature:M,status:n,sigType:_,verificationProof:`${_}:${M}`,encryptedSecret:k},j=`${(0,i.getAPIBaseUrls)(y)}/v1/chat/request/accept`;return(0,c.axiosPut)(j,P).then((e=>e.data)).catch((e=>{throw(0,h.handleError)(e,t.approve.name)}))}))},898255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chat=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(813951),c=r(500547);t.chat=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:r,pgpPrivateKey:n,env:u=o.default.ENV.PROD,toDecrypt:l=!1,recipient:d}=e||{},f=yield(0,i.convertToValidDID)(r,u),h=yield(0,i.convertToValidDID)(d,u);if(!(0,i.isValidPushCAIP)(f))throw new Error(`Invalid address ${f}`);const p=`${(0,i.getAPIBaseUrls)(u)}/v1/chat/users/${f}/chat/${h}`;try{const e=(yield(0,a.axiosGet)(p)).data;if(0!==Object.keys(e).length){const t=(0,s.addDeprecatedInfo)([e]),[r]=yield(0,s.getInboxLists)({lists:t,user:f,toDecrypt:l,pgpPrivateKey:n,env:u},s.PGPHelper);return r}return e}catch(g){throw(0,c.handleError)(g,t.chat.name)}}))},503114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chatsCore=t.chats=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(441786),c=r(500547);t.chats=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.chatsCore)(e,a.PGPHelper)}));t.chatsCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:n,pgpPrivateKey:u,env:l=o.default.ENV.PROD,toDecrypt:d=!1,page:f=1,limit:h=10}=e||{};if(!(0,i.isValidPushCAIP)(n))throw new Error("Invalid address!");const p=yield(0,i.convertToValidDID)(n,l),g=`${`${(0,i.getAPIBaseUrls)(l)}/v1/chat/users/${p}/chats?page=${f}&limit=${h}`}`;try{const e=(yield(0,s.axiosGet)(g)).data.chats,t=(0,a.addDeprecatedInfo)(e);return yield(0,a.getInboxLists)({lists:t,user:p,toDecrypt:d,pgpPrivateKey:u,env:l},r)}catch(m){throw(0,c.handleError)(m,t.chats.name)}}))},113738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conversationHash=void 0;const n=r(331635),i=r(397067),o=r(500547),a=r(795924),s=r(813951);t.conversationHash=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{conversationId:r,account:n,env:c=i.default.ENV.PROD}=e||{};try{if(!(0,a.isValidPushCAIP)(n))throw new Error("Invalid address!");const e=yield(0,a.convertToValidDID)(r,c),t=yield(0,a.convertToValidDID)(n,c);return yield(0,s.getConversationHashService)({conversationId:e,account:t,env:c})}catch(u){throw(0,o.handleError)(u,t.conversationHash.name)}}))},84590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createGroupCore=t.createGroup=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(441786),u=r(500547);t.createGroup=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.createGroupCore)(e,a.PGPHelper)}));t.createGroupCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:l=null,signer:d=null,groupName:f,groupDescription:h,members:p,groupImage:g,admins:m,isPublic:y,contractAddressNFT:b,numberOfNFTs:v,contractAddressERC20:w,numberOfERC20:A,env:C=o.default.ENV.PROD,pgpPrivateKey:E=null,meta:x,groupType:S,scheduleAt:I,scheduleEnd:k,rules:_}=e||{};try{if(null==l&&null==d)throw new Error("At least one from account or signer is necessary!");(0,a.validateScheduleDates)(I,k);const e=(0,a.getWallet)({account:l,signer:d});(0,a.createGroupRequestValidator)(f,p,m,h,b,v,w,A);const t=p.map((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,i.convertToValidDID)(e,C)})))),o=m.map((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,i.convertToValidDID)(e,C)})))),u=yield Promise.all(t),T=yield Promise.all(o),M=yield(0,a.getConnectedUserV2Core)(e,E,C,r),P={groupName:f,groupDescription:null==h?null:h,members:u,groupImage:null==g?null:g,admins:T,isPublic:y,contractAddressNFT:null==b?null:b,numberOfNFTs:null==v?0:v,contractAddressERC20:null==w?null:w,numberOfERC20:null==A?0:A,groupCreator:M.did},j=s.SHA256(JSON.stringify(P)).toString(),D=yield r.sign({message:j,signingKey:M.privateKey}),O="pgp"+":"+D,B=`${(0,i.getAPIBaseUrls)(C)}/v1/chat/groups`,N=(0,a.createGroupPayload)(f,u,T,y,M.did,O,h,g,b,v,w,A,x,S,I,k,_);return(yield(0,c.axiosPost)(B,N)).data}catch(T){throw(0,u.handleError)(T,t.createGroup.name)}}))},769402:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createGroupCoreV2=t.createGroupV2=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(500547),u=r(441786);t.createGroupV2=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.createGroupCoreV2)(e,a.PGPHelper)}));t.createGroupCoreV2=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:d=null,signer:f=null,pgpPrivateKey:h=null,env:p=o.default.ENV.PROD,groupName:g,groupDescription:m,groupImage:y,rules:b,isPublic:v,groupType:w,config:{meta:A,scheduleAt:C,scheduleEnd:E,status:x},members:S,admins:I}=e;try{const t=(0,a.getWallet)({account:d,signer:f}),o=yield(0,a.getConnectedUserV2Core)(t,h,p,r),c=S.map((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,i.convertToValidDID)(e,p)})))),k=I.map((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,i.convertToValidDID)(e,p)})))),_=yield Promise.all(c),T=yield Promise.all(k);l(e);const M={groupName:g,groupDescription:m,groupImage:y,rules:b,isPublic:v,groupType:w},P=s.SHA256(JSON.stringify(M)).toString(),j=`pgpv2:${yield r.sign({message:P,signingKey:o.privateKey})}:${o.did}`,D={meta:A,scheduleAt:C,scheduleEnd:E,status:x},O=s.SHA256(JSON.stringify(D)).toString(),B=`pgpv2:${yield r.sign({message:O,signingKey:o.privateKey})}:${o.did}`,N={members:_,admins:T},R=s.SHA256(JSON.stringify(N)).toString(),L=`pgpv2:${yield r.sign({message:R,signingKey:o.privateKey})}:${o.did}`,F=`${(0,i.getAPIBaseUrls)(p)}/v2/chat/groups`,U={groupName:g,groupDescription:m,groupImage:y,rules:b,isPublic:v,groupType:w,profileVerificationProof:j,config:{meta:A,scheduleAt:C,scheduleEnd:E,status:x,configVerificationProof:B},members:_,admins:T,idempotentVerificationProof:L};return(yield(0,u.axiosPost)(F,U)).data}catch(k){throw(0,c.handleError)(k,t.createGroupV2.name)}}));const l=e=>{const{account:t=null,signer:r=null,pgpPrivateKey:n=null,groupName:o,groupDescription:s,groupImage:c,rules:u,isPublic:l,groupType:d,config:{meta:f,scheduleAt:h,scheduleEnd:p,status:g},members:m,admins:y}=e;if(!n&&!r)throw new Error("At least one from pgpPrivateKey or signer is necessary!");if(null==o||0==o.length)throw new Error("groupName cannot be null or empty");if(o.length>50)throw new Error("groupName cannot be more than 50 characters");if(s&&s.length>150)throw new Error("groupDescription cannot be more than 150 characters");for(let a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllGroupMembers=void 0;const n=r(331635),i=r(152983),o=r(676349);t.getAllGroupMembers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:t,env:r}=e,n=(yield(0,o.getGroupMemberCount)({chatId:t,env:r})).overallCount,a=Math.ceil(n/5e3),s=Array.from({length:a},((e,t)=>t+1)),c=[],u=s.map((e=>(0,i.getGroupMembers)({chatId:t,env:r,page:e,limit:5e3})));return(yield Promise.all(u)).forEach((e=>{e.length>0&&c.push(...e)})),c}))},918781:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllGroupMembersPublicKeys=void 0;const n=r(331635),i=r(676349),o=r(935930);t.getAllGroupMembersPublicKeys=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:t,env:r}=e,n=(yield(0,i.getGroupMemberCount)({chatId:t,env:r})).approvedCount,a=Math.ceil(n/5e3),s=Array.from({length:a},((e,t)=>t+1)),c=[],u=s.map((e=>(0,o.getGroupMembersPublicKeys)({chatId:t,env:r,page:e,limit:5e3})));return(yield Promise.all(u)).forEach((e=>{e.members.length>0&&c.push(...e.members)})),c}))},906559:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChatInfo=void 0;const n=r(331635),i=r(397067),o=r(500547),a=r(795924),s=r(441786);t.getChatInfo=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{recipient:r,account:n,env:c=i.default.ENV.PROD}=e;try{if(!r||!n)throw new Error("receipient and account cannot be null or empty");const e=`${(0,a.getAPIBaseUrls)(c)}/v1/chat/${yield(0,a.convertToValidDID)(r,c)}/address/${yield(0,a.convertToValidDID)(n,c)}`;return(yield(0,s.axiosGet)(e)).data}catch(u){throw(0,o.handleError)(u,t.getChatInfo.name)}}))},61638:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroup=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(500547);t.getGroup=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,env:n=o.default.ENV.PROD}=e||{};try{if(null==r||0==r.length)throw new Error("chatId cannot be null or empty");const e=`${(0,i.getAPIBaseUrls)(n)}/v1/chat/groups/${r}`;return(yield(0,a.axiosGet)(e)).data}catch(c){throw(0,s.handleError)(c,t.getGroup.name)}}))},334264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupAccess=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(500547);t.getGroupAccess=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,did:n,env:c=o.default.ENV.PROD}=e||{};try{if(null==r||0===r.length)throw new Error("chatId cannot be null or empty");if(null==n||0===n.length)throw new Error("did cannot be null or empty");const e=yield(0,i.convertToValidDID)(n,c),t=`${(0,i.getAPIBaseUrls)(c)}/v1/chat/groups/${r}/access/${e}`;return(yield(0,a.axiosGet)(t)).data}catch(u){throw(0,s.handleError)(u,t.getGroupAccess.name)}}))},91012:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupByName=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(500547);t.getGroupByName=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{groupName:r,env:n=o.default.ENV.PROD}=e||{};try{if(console.log("============================================="),console.log("NOTICE: The method 'getGroupByName' will be deprecated on January 1st, 2024. Please update your code to remove this."),console.log("============================================="),null==r||0==r.length)throw new Error("Group Name cannot be null or empty");const e=`${(0,i.getAPIBaseUrls)(n)}/v1/chat/groups?groupName=${r}`;return(yield(0,a.axiosGet)(e)).data}catch(c){throw(0,s.handleError)(c,t.getGroupByName.name)}}))},446206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupInfo=void 0;const n=r(331635),i=r(272505),o=r(795924),a=r(397067),s=r(500547);t.getGroupInfo=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,env:n=a.default.ENV.PROD}=e||{};try{if(null==r||0==r.length)throw new Error("chatId cannot be null or empty");const e=`${(0,o.getAPIBaseUrls)(n)}/v2/chat/groups/${r}`;return i.default.get(e).then((e=>e.data)).catch((e=>{var t,r;if(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)throw new Error(null===(r=null==e?void 0:e.response)||void 0===r?void 0:r.data);throw new Error(e)}))}catch(c){throw(0,s.handleError)(c,t.getGroupInfo.name)}}))},676349:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupMemberCount=void 0;const n=r(331635),i=r(272505),o=r(795924),a=r(397067),s=r(500547);t.getGroupMemberCount=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,env:n=a.default.ENV.PROD}=e;try{if(!r)throw new Error("Chat ID is required.");const e=`${(0,o.getAPIBaseUrls)(n)}/v1/chat/groups/${r}/members/count`,t=yield i.default.get(e),{totalMembersCount:a}=t.data;return a}catch(c){throw(0,s.handleError)(c,t.getGroupMemberCount.name)}}))},144238:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupMemberStatus=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(500547);t.getGroupMemberStatus=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,did:n,env:c=o.default.ENV.PROD}=e||{};try{if(null==r||0===r.length)throw new Error("chatId cannot be null or empty");if(null==n||0===n.length)throw new Error("did cannot be null or empty");const e=yield(0,i.convertToValidDID)(n,c),t=`${(0,i.getAPIBaseUrls)(c)}/v1/chat/groups/${r}/members/${e}/status`;return(yield(0,a.axiosGet)(t)).data}catch(u){throw(0,s.handleError)(u,t.getGroupMemberStatus.name)}}))},152983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupMembers=void 0;const n=r(331635),i=r(272505),o=r(795924),a=r(397067),s=r(500547);t.getGroupMembers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,page:n=1,limit:c=20,env:u=a.default.ENV.PROD,pending:l,role:d}=e;try{if(!r)throw new Error("Chat ID is required.");let e=`${(0,o.getAPIBaseUrls)(u)}/v1/chat/groups/${r}/members?pageNumber=${n}&pageSize=${c}`;void 0!==l&&(e+=`&pending=${l}`),d&&(e+=`&role=${encodeURIComponent(d)}`);return(yield i.default.get(e)).data.members}catch(f){throw(0,s.handleError)(f,t.getGroupMembers.name)}}))},935930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupMembersPublicKeys=void 0;const n=r(331635),i=r(272505),o=r(795924),a=r(397067),s=r(500547);t.getGroupMembersPublicKeys=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,page:n=1,limit:c=20,env:u=a.default.ENV.PROD}=e;try{if(!r)throw new Error("Chat ID is required.");const e=`${(0,o.getAPIBaseUrls)(u)}/v1/chat/groups/${r}/members/publicKeys?pageNumber=${n}&pageSize=${c}`;return(yield i.default.get(e)).data}catch(l){throw(0,s.handleError)(l,t.getGroupMembersPublicKeys.name)}}))},299348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomSecret=t.aesDecrypt=t.aesEncrypt=void 0;const n=r(921396);t.aesEncrypt=({plainText:e,secretKey:t})=>n.AES.encrypt(e,t).toString();t.aesDecrypt=({cipherText:e,secretKey:t})=>n.AES.decrypt(e,t).toString(n.enc.Utf8);t.generateRandomSecret=e=>{let t="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decryptAndVerifyMessage=t.getDecryptedPrivateKey=t.getEip712Signature=t.getEip191Signature=t.getEncryptedRequestCore=t.getEncryptedRequest=t.decryptFeeds=t.signMessageWithPGPCore=t.signMessageWithPGP=t.encryptAndSignCore=t.encryptAndSign=void 0;const n=r(331635),i=r(129272),o=r(299348),a=r(921396),s=r(75232),c=r(795924),u=r(75232),l=r(772324),d=r(397067),f=r(902729),h=r(299348),p=r(499051),g=r(61638),m=r(622042),y=r(134631),b="eip712v2";t.encryptAndSign=({plainText:e,keys:r,privateKeyArmored:o,secretKey:a})=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.encryptAndSignCore)({plainText:e,keys:r,privateKeyArmored:o,secretKey:a,pgpHelper:i.PGPHelper})}));t.encryptAndSignCore=({plainText:e,keys:t,privateKeyArmored:r,secretKey:i,pgpHelper:a})=>n.__awaiter(void 0,void 0,void 0,(function*(){const n=o.aesEncrypt({plainText:e,secretKey:i});return{cipherText:n,encryptedSecret:yield a.pgpEncrypt({plainText:i,keys:t}),signature:yield a.sign({message:n,signingKey:r}),sigType:"pgp",encType:"pgp"}}));t.signMessageWithPGP=({message:e,privateKeyArmored:r})=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.signMessageWithPGPCore)({message:e,privateKeyArmored:r,pgpHelper:i.PGPHelper})}));t.signMessageWithPGPCore=({message:e,privateKeyArmored:t,pgpHelper:r})=>n.__awaiter(void 0,void 0,void 0,(function*(){return{signature:yield r.sign({message:e,signingKey:t}),sigType:"pgp"}}));t.decryptFeeds=({feeds:e,connectedUser:r,pgpPrivateKey:i,env:o=d.default.ENV.PROD,pgpHelper:a})=>n.__awaiter(void 0,void 0,void 0,(function*(){const s=e=>n.__awaiter(void 0,void 0,void 0,(function*(){if(!i)throw new Error("Decrypted private key is necessary");if("PlainText"!==e.msg.encType){const n=e.msg.fromCAIP10;let s;if(n===r.wallets.split(",")[0])s=r.publicKey;else{const e=`pgpPubKey-${n}`;if(m.cache.has(e))s=m.cache.get(e);else{const t=yield(0,u.get)({account:n,env:o});m.cache.set(e,t.publicKey),s=t.publicKey}}e.msg=yield(0,t.decryptAndVerifyMessage)(e.msg,s,i,o,a)}}));for(const t of e)yield s(t);return e}));t.getEncryptedRequest=(e,r,o,a,s,c,u)=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.getEncryptedRequestCore)(e,r,o,a,s,c,u,i.PGPHelper)}));t.getEncryptedRequestCore=(e,r,i,a,u,d,f,h)=>n.__awaiter(void 0,void 0,void 0,(function*(){if(a){if(d){if(d.isPublic){const{signature:e}=yield(0,t.signMessageWithPGPCore)({message:i,privateKeyArmored:r.privateKey,pgpHelper:h});return{message:i,encryptionType:"PlainText",aesEncryptedSecret:"",signature:e}}if(d.sessionKey&&d.encryptedSecret){const e=o.aesEncrypt({plainText:i,secretKey:f});return{message:e,encryptionType:"pgpv1:group",aesEncryptedSecret:null,signature:yield h.sign({message:e,signingKey:r.privateKey})}}{const e=(yield(0,g.getGroup)({chatId:d.chatId,env:u})).members.map((e=>e.publicKey)),{cipherText:n,encryptedSecret:o,signature:a}=yield(0,t.encryptAndSignCore)({plainText:i,keys:e,privateKeyArmored:r.privateKey,secretKey:f,pgpHelper:h});return{message:n,encryptionType:"pgp",aesEncryptedSecret:o,signature:a}}}throw new Error("Unable to find Group Data")}{const n=yield(0,s.get)({account:e,env:u});if(null==n?void 0:n.publicKey){if(n.publicKey.includes("-----BEGIN PGP PUBLIC KEY BLOCK-----")){const{cipherText:e,encryptedSecret:o,signature:a}=yield(0,t.encryptAndSignCore)({plainText:i,keys:[n.publicKey,r.publicKey],privateKeyArmored:r.privateKey,secretKey:f,pgpHelper:h});return{message:e,encryptionType:"pgp",aesEncryptedSecret:o,signature:a}}{const{signature:e}=yield(0,t.signMessageWithPGPCore)({message:i,privateKeyArmored:r.privateKey,pgpHelper:h});return{message:i,encryptionType:"PlainText",aesEncryptedSecret:"",signature:e}}}{if(!(0,c.isValidPushCAIP)(e))throw new Error("Invalid receiver address!");yield(0,l.createUserService)({user:e,publicKey:"",encryptedPrivateKey:"",env:u});const{signature:n}=yield(0,t.signMessageWithPGPCore)({message:i,privateKeyArmored:r.privateKey,pgpHelper:h});return{message:i,encryptionType:"PlainText",aesEncryptedSecret:"",signature:n}}}}));t.getEip191Signature=(e,t,r="v1")=>n.__awaiter(void 0,void 0,void 0,(function*(){if(!(null==e?void 0:e.signer))return console.warn("This method is deprecated. Provide signer in the function"),{signature:"xyz",sigType:"a"};const n=null==e?void 0:e.signer,i=new c.Signer(n),o=yield i.signMessage(t);return{verificationProof:`${"v1"===r?"eip191":"eip191v2"}:${o}`}}));t.getEip712Signature=(e,t,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){if(!(null==e?void 0:e.signer))return console.warn("This method is deprecated. Provide signer in the function"),{signature:"xyz",sigType:"a"};const n=(0,f.getTypeInformation)(),i=null==e?void 0:e.signer,o=new c.Signer(i);let a;try{a=yield o.getChainId()}catch(l){a=1}const s=(0,f.getDomainInformation)(a),u=yield o.signTypedData(r?{}:s,n,{data:t},"Data");return{verificationProof:r?`${b}:${u}`:`${b}:${a}:${u}`}})),t.getDecryptedPrivateKey=function(e,t,r,i){return n.__awaiter(this,void 0,void 0,(function*(){let n;return n=e.signer?yield(0,c.decryptPGPKey)({signer:e.signer,encryptedPGPPrivateKey:t.encryptedPrivateKey,env:i}):yield(0,c.decryptWithWalletRPCMethod)(t.encryptedPrivateKey,r),n}))};t.decryptAndVerifyMessage=(e,t,r,o,s=i.PGPHelper)=>n.__awaiter(void 0,void 0,void 0,(function*(){if(e.verificationProof&&"pgpv2"===e.verificationProof.split(":")[0]){const r={fromDID:e.fromDID,toDID:e.fromDID,fromCAIP10:e.fromCAIP10,toCAIP10:e.toCAIP10,messageObj:e.messageObj,messageType:e.messageType,encType:e.encType,encryptedSecret:e.encryptedSecret},n=a.SHA256(JSON.stringify(r)).toString(),i=e.verificationProof.split(":")[1];yield s.verifySignature({messageContent:n,signatureArmored:i,publicKeyArmored:t})}else if(e.verificationProof&&"pgpv3"===e.verificationProof.split(":")[0]){const r={fromDID:e.fromDID,toDID:e.fromDID,fromCAIP10:e.fromCAIP10,toCAIP10:e.toCAIP10,messageObj:e.messageObj,messageType:e.messageType,encType:e.encType,sessionKey:e.sessionKey,encryptedSecret:e.encryptedSecret},n=a.SHA256(JSON.stringify(r)).toString(),i=e.verificationProof.split(":")[1];yield s.verifySignature({messageContent:n,signatureArmored:i,publicKeyArmored:t})}else if(null==e.link){const r={fromDID:e.fromDID,toDID:e.toDID,messageContent:e.messageContent,messageType:e.messageType},n=a.SHA256(JSON.stringify(r)).toString();try{yield s.verifySignature({messageContent:n,signatureArmored:e.signature,publicKeyArmored:t})}catch(i){yield s.verifySignature({messageContent:e.messageContent,signatureArmored:e.signature,publicKeyArmored:t})}}else yield s.verifySignature({messageContent:e.messageContent,signatureArmored:e.signature,publicKeyArmored:t});const n=Object.assign({},e);try{let t;if("pgpv1:group"===e.encType){const n=`sessionKey-${e.sessionKey}`;if(m.cache.has(n))t=m.cache.get(n);else{const i=yield(0,p.getEncryptedSecret)({sessionKey:e.sessionKey,env:o});t=yield s.pgpDecrypt({cipherText:i,toPrivateKeyArmored:r}),m.cache.set(n,t)}}else t=yield s.pgpDecrypt({cipherText:e.encryptedSecret,toPrivateKeyArmored:r});if(n.messageContent=(0,h.aesDecrypt)({cipherText:e.messageContent,secretKey:t}),e.messageObj){const r=(0,h.aesDecrypt)({cipherText:e.messageObj,secretKey:t});try{n.messageObj=JSON.parse(r)}catch(i){n.messageObj=r}try{if(n.messageObj.reference){const e=n.messageObj.reference;if(e&&1===e.split(":").length){const t=yield(0,y.getCID)(e,{env:o});n.messageObj.reference=t.cid}}}catch(i){}}}catch(i){n.messageContent=n.messageObj="Unable to Decrypt Message"}return n}))},499051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEncryptedSecret=void 0;const n=r(331635),i=r(272505),o=r(397067),a=r(795924);t.getEncryptedSecret=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{sessionKey:r,env:n=o.default.ENV.PROD}=e||{};try{if(null==r)throw new Error("sessionKey is required");const e=`${(0,a.getAPIBaseUrls)(n)}/v1/chat/encryptedsecret/sessionKey/${r}`;return i.default.get(e).then((e=>e.data.encryptedSecret)).catch((e=>{var t,r;if(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)throw new Error(null===(r=null==e?void 0:e.response)||void 0===r?void 0:r.data);throw new Error(e)}))}catch(s){throw console.error(`[Push SDK] - API - Error - API ${t.getEncryptedSecret.name} -: `,s),Error(`[Push SDK] - API - Error - API ${t.getEncryptedSecret.name} -: ${s}`)}}))},901812:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroup=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786);t.getGroup=(e,t)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{env:r=o.default.ENV.PROD}=e||{},n=`${(0,i.getAPIBaseUrls)(r)}/v1/chat/groups/${t}`;return(0,a.axiosGet)(n).then((e=>e.data)).catch((e=>{throw console.error(`[Push SDK] - API ${n}: `,e),Error(`[Push SDK] - API ${n}: ${e}`)}))}))},233707:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDeprecatedInfoToMessages=t.addDeprecatedInfo=t.decryptConversation=t.getTrendingSpaceInboxLists=t.getSpaceInboxLists=t.getInboxLists=void 0;const n=r(331635),i=r(129272),o=r(397067),a=r(795924),s=r(75232),c=r(134631),u=r(82950),l=r(622042);t.getInboxLists=(e,t=i.PGPHelper)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{lists:r,user:n,toDecrypt:i,pgpPrivateKey:c,env:l=o.default.ENV.PROD}=e||{};if(i){const e=yield(0,s.get)({account:(0,a.pCAIP10ToWallet)(n),env:l});return(0,u.decryptFeeds)({feeds:r,connectedUser:e,pgpPrivateKey:c,pgpHelper:t,env:l})}return r}));t.getSpaceInboxLists=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{lists:t,user:r,toDecrypt:n,pgpPrivateKey:l,env:d=o.default.ENV.PROD}=e||{},f=yield(0,s.get)({account:(0,a.pCAIP10ToWallet)(r),env:d}),h=[];for(const e of t){let t;t=null!==e.threadhash?yield(0,c.getCID)(e.threadhash,{env:d}):{encType:"PlainText",encryptedSecret:"",fromCAIP10:"",fromDID:"",link:"",messageContent:"",messageType:"",sigType:"",signature:"",toCAIP10:"",toDID:""},h.push(Object.assign(Object.assign({},e),{msg:t,spaceInformation:e.spaceInformation}))}return n?(0,u.decryptFeeds)({feeds:h,connectedUser:f,pgpPrivateKey:l,pgpHelper:i.PGPHelper,env:d}):h}));t.getTrendingSpaceInboxLists=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{lists:t,env:r=o.default.ENV.PROD}=e||{},n=[];for(const e of t){let t;t=null!==e.threadhash?yield(0,c.getCID)(e.threadhash,{env:r}):{encType:"PlainText",encryptedSecret:"",fromCAIP10:"",fromDID:"",link:"",messageContent:"",messageType:"",sigType:"",signature:"",toCAIP10:"",toDID:""},n.push(Object.assign(Object.assign({},e),{msg:t,spaceInformation:e.spaceInformation}))}return n}));t.decryptConversation=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{messages:t,connectedUser:r,pgpPrivateKey:n,pgpHelper:a=i.PGPHelper,env:c=o.default.ENV.PROD}=e||{};let d;for(let e=0;e{const e={};return t=>(t.forEach((t=>{if((0,a.isValidNFTCAIP)(t.did)){const r=t.did.split(":").slice(0,5).join(":"),n=t.did.split(":")[5];(!e[r]||n>e[r].split(":")[5])&&(e[r]=t.did)}})),t.forEach((t=>{if((0,a.isValidNFTCAIP)(t.did)){const r=t.did.split(":").slice(0,5).join(":");e[r]!==t.did&&(t.deprecated=!0,t.deprecatedCode="NFT Owner Changed")}})),t)})(),t.addDeprecatedInfoToMessages=(()=>{const e={};return t=>(t.forEach((t=>{if((0,a.isValidNFTCAIP)(t.fromDID)){const r=t.fromDID.split(":").slice(0,5).join(":"),n=t.fromDID.split(":")[5];(!e[r]||n>e[r].split(":")[5])&&(e[r]=t.fromDID)}})),t.forEach((t=>{if((0,a.isValidNFTCAIP)(t.fromDID)){const r=t.fromDID.split(":").slice(0,5).join(":");e[r]!==t.fromDID&&(t.deprecated=!0,t.deprecatedCode="NFT Owner Changed")}})),t)})()},813951:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(331635);n.__exportStar(r(299348),t),n.__exportStar(r(129272),t),n.__exportStar(r(965044),t),n.__exportStar(r(82950),t),n.__exportStar(r(772324),t),n.__exportStar(r(233707),t),n.__exportStar(r(357673),t),n.__exportStar(r(188117),t),n.__exportStar(r(901812),t),n.__exportStar(r(989074),t)},357673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSpacesMembersList=t.getMembersList=t.convertToWalletAddressList=t.getSpaceAdminsList=t.getAdminsList=t.updateGroupPayload=t.groupAccessToSpaceAccess=t.convertRulesToSpaceRules=t.convertSpaceRulesToRules=t.mapSpaceListTypeToChatListType=t.spaceDtoToSpaceInfoDto=t.groupInfoDtoToSpaceInfoDto=t.groupDtoToSpaceDtoV2=t.groupDtoToSpaceDto=t.createGroupPayload=t.rejectRequestPayload=t.sendMessagePayloadCore=t.sendMessagePayload=void 0;const n=r(331635),i=r(795924),o=r(82950),a=r(397067),s=r(129272),c=r(299348),u=r(921396),l=r(876584),d=r(701728);t.sendMessagePayload=(e,r,i,o,a,c,u)=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.sendMessagePayloadCore)(e,r,i,o,a,c,u,s.PGPHelper)}));t.sendMessagePayloadCore=(e,t,r,a,l,d,f,h)=>n.__awaiter(void 0,void 0,void 0,(function*(){const n=!(0,i.isValidPushCAIP)(e);let p;p=n&&(null==d?void 0:d.encryptedSecret)&&d.sessionKey?yield(0,s.pgpDecrypt)({cipherText:d.encryptedSecret,toPrivateKeyArmored:t.privateKey}):c.generateRandomSecret(15);const{message:g,signature:m}=yield(0,o.getEncryptedRequestCore)(e,t,a,n,f,d,p,h),{message:y,encryptionType:b,aesEncryptedSecret:v}=yield(0,o.getEncryptedRequestCore)(e,t,JSON.stringify(r),n,f,d,p,h),w={fromDID:(0,i.walletToPCAIP10)(t.wallets.split(",")[0]),toDID:n?e:(0,i.walletToPCAIP10)(e),fromCAIP10:(0,i.walletToPCAIP10)(t.wallets.split(",")[0]),toCAIP10:n?e:(0,i.walletToPCAIP10)(e),messageType:l,messageObj:"PlainText"===b?r:y,encType:b,sessionKey:d&&!d.isPublic&&"pgpv1:group"===b?d.sessionKey:null,encryptedSecret:v,messageContent:g,signature:m,sigType:"pgpv3"},A={fromDID:w.fromDID,toDID:w.fromDID,fromCAIP10:w.fromCAIP10,toCAIP10:w.toCAIP10,messageObj:w.messageObj,messageType:w.messageType,encType:w.encType,sessionKey:w.sessionKey,encryptedSecret:w.encryptedSecret},C=u.SHA256(JSON.stringify(A)).toString(),E=yield h.sign({message:C,signingKey:t.privateKey});return w.verificationProof=`pgpv3:${E}`,w}));t.rejectRequestPayload=(e,t,r,n)=>({fromDID:e,toDID:t,verificationProof:r+":"+n});t.createGroupPayload=(e,t,r,n,i,o,a,s,c,u,l,d,f,h,p,g,m)=>({groupName:e,groupDescription:a,members:t,groupImage:s,admins:r,isPublic:n,contractAddressNFT:c,numberOfNFTs:u,contractAddressERC20:l,numberOfERC20:d,groupCreator:i,verificationProof:o,meta:f,groupType:h,scheduleAt:p,scheduleEnd:g,rules:m});t.groupDtoToSpaceDto=e=>{var t;const r={members:e.members.map((e=>({wallet:e.wallet,publicKey:e.publicKey,isSpeaker:e.isAdmin,image:e.image}))),pendingMembers:e.pendingMembers.map((e=>({wallet:e.wallet,publicKey:e.publicKey,isSpeaker:e.isAdmin,image:e.image}))),contractAddressERC20:e.contractAddressERC20,numberOfERC20:e.numberOfERC20,contractAddressNFT:e.contractAddressNFT,numberOfNFTTokens:e.numberOfNFTTokens,verificationProof:e.verificationProof,spaceImage:e.groupImage,spaceName:e.groupName,isPublic:e.isPublic,spaceDescription:e.groupDescription,spaceCreator:e.groupCreator,spaceId:e.chatId,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:null!==(t=e.status)&&void 0!==t?t:null,meta:e.meta};return e.rules&&(r.rules={entry:e.rules.entry}),r};t.groupDtoToSpaceDtoV2=(e,t=a.ENV.PROD)=>n.__awaiter(void 0,void 0,void 0,(function*(){var r;const n=yield(0,l.getAllGroupMembers)({chatId:e.chatId,env:t}),i={members:n.filter((e=>e.intent)).map((e=>{var t,r;return{wallet:e.address,publicKey:null!==(t=e.userInfo.publicKey)&&void 0!==t?t:"",isSpeaker:"admin"===e.role,image:null!==(r=e.userInfo.profile.picture)&&void 0!==r?r:""}})),pendingMembers:n.filter((e=>!e.intent)).map((e=>{var t,r;return{wallet:e.address,publicKey:null!==(t=e.userInfo.publicKey)&&void 0!==t?t:"",isSpeaker:"admin"===e.role,image:null!==(r=e.userInfo.profile.picture)&&void 0!==r?r:""}})),contractAddressERC20:null,numberOfERC20:0,contractAddressNFT:null,numberOfNFTTokens:0,verificationProof:"a",spaceImage:e.groupImage,spaceName:e.groupName,isPublic:e.isPublic,spaceDescription:e.groupDescription,spaceCreator:e.groupCreator,spaceId:e.chatId,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:null!==(r=e.status)&&void 0!==r?r:null,meta:e.meta};return e.rules&&(i.rules={entry:e.rules.entry}),i}));t.groupInfoDtoToSpaceInfoDto=e=>{var t,r,n,i,o;return{spaceName:e.groupName,spaceImage:e.groupImage,spaceDescription:e.groupDescription,isPublic:e.isPublic,spaceCreator:e.groupCreator,spaceId:e.chatId,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:null!==(t=e.status)&&void 0!==t?t:null,rules:null!==(r=e.rules)&&void 0!==r?r:null,meta:null!==(n=e.meta)&&void 0!==n?n:null,sessionKey:null!==(i=e.sessionKey)&&void 0!==i?i:null,encryptedSecret:null!==(o=e.encryptedSecret)&&void 0!==o?o:null}};t.spaceDtoToSpaceInfoDto=e=>({spaceName:e.spaceName,spaceImage:e.spaceImage,spaceDescription:e.spaceDescription,isPublic:e.isPublic,spaceCreator:e.spaceCreator,spaceId:e.spaceId,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:e.status,rules:e.rules,meta:e.meta,sessionKey:null,encryptedSecret:null,inviteeDetails:e.inviteeDetails});t.mapSpaceListTypeToChatListType=e=>{switch(e){case d.SpaceListType.SPACES:return d.ChatListType.CHATS;case d.SpaceListType.REQUESTS:return d.ChatListType.REQUESTS;default:throw new Error(`Unsupported SpaceListType: ${e}`)}};t.convertSpaceRulesToRules=e=>({entry:e.entry,chat:void 0});t.convertRulesToSpaceRules=e=>({entry:e.entry});t.groupAccessToSpaceAccess=e=>{const r={entry:e.entry};return e.rules&&(r.rules=(0,t.convertRulesToSpaceRules)(e.rules)),r};t.updateGroupPayload=(e,t,r,n,i,o,a,s,c,u,l,d,f)=>Object.assign(Object.assign({groupName:e,groupImage:s,groupDescription:a,members:t,admins:r,address:n,verificationProof:i,encryptedSecret:o,scheduleAt:c,scheduleEnd:u,status:l},void 0!==d&&{meta:d}),void 0!==f&&{rules:f});t.getAdminsList=(e,r)=>[...e?(0,t.convertToWalletAddressList)(e.filter((e=>e.isAdmin))):[],...r?(0,t.convertToWalletAddressList)(r.filter((e=>e.isAdmin))):[]];t.getSpaceAdminsList=(e,r)=>[...e?(0,t.convertToWalletAddressList)(e.filter((e=>e.isSpeaker))):[],...r?(0,t.convertToWalletAddressList)(r.filter((e=>e.isSpeaker))):[]];t.convertToWalletAddressList=e=>e?e.map((e=>e.wallet)):[];t.getMembersList=(e,r)=>{const n=[...e||[],...r||[]];return(0,t.convertToWalletAddressList)(n)};t.getSpacesMembersList=(e,r)=>{const n=[...e||[],...r||[]];return(0,t.convertToWalletAddressList)(n)}},129272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pgpDecrypt=t.verifySignature=t.sign=t.pgpEncrypt=t.generateKeyPair=t.PGPHelper=void 0;const n=r(331635),i=r(815604),o={generateKeyPair(){return n.__awaiter(this,void 0,void 0,(function*(){const e=yield i.generateKey({type:"rsa",rsaBits:2048,userIDs:[{name:"",email:""}]});return{privateKeyArmored:e.privateKey,publicKeyArmored:e.publicKey}}))},sign({message:e,signingKey:t}){return n.__awaiter(this,void 0,void 0,(function*(){const r=yield i.createMessage({text:e}),n=yield i.readPrivateKey({armoredKey:t});return yield i.sign({message:r,signingKeys:n,detached:!0})}))},pgpEncrypt({plainText:e,keys:t}){return n.__awaiter(this,void 0,void 0,(function*(){const r=[];for(let e=0;en.__awaiter(void 0,void 0,void 0,(function*(){const e=yield i.generateKey({type:"rsa",rsaBits:2048,userIDs:[{name:"",email:""}]});return{privateKeyArmored:e.privateKey,publicKeyArmored:e.publicKey}}));t.pgpEncrypt=({plainText:e,keys:t})=>n.__awaiter(void 0,void 0,void 0,(function*(){const r=[];for(let e=0;en.__awaiter(void 0,void 0,void 0,(function*(){const r=yield i.createMessage({text:e}),n=yield i.readPrivateKey({armoredKey:t});return yield i.sign({message:r,signingKeys:n,detached:!0})}));t.verifySignature=({messageContent:e,signatureArmored:t,publicKeyArmored:r})=>n.__awaiter(void 0,void 0,void 0,(function*(){const n=yield i.createMessage({text:e}),o=yield i.readSignature({armoredSignature:t}),a=yield i.readKey({armoredKey:r}),s=yield i.verify({message:n,signature:o,verificationKeys:a}),{verified:c}=s.signatures[0];try{yield c}catch(u){throw new Error("Signature could not be verified: "+u)}}));t.pgpDecrypt=({cipherText:e,toPrivateKeyArmored:t})=>n.__awaiter(void 0,void 0,void 0,(function*(){const r=yield i.readMessage({armoredMessage:e}),n=yield i.readPrivateKey({armoredKey:t}),{data:o}=yield i.decrypt({message:r,decryptionKeys:n});return o}))},772324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMessagesService=t.getConversationHashService=t.authUpdateUserService=t.createUserService=void 0;const n=r(331635),i=r(397067),o=r(795924),a=r(82950),s=r(565870),c=r(441786);t.createUserService=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{wallet:t,publicKey:r="",encryptedPrivateKey:u="",env:l=i.default.ENV.PROD,origin:d}=e||{};let{user:f}=e||{};const h=`${(0,o.getAPIBaseUrls)(l)}/v2/users/`;if((0,o.isValidNFTCAIP)(f)){const e=Math.floor(Date.now()/1e3);6!==f.split(":").length&&(f=`${f}:${e}`)}const p={caip10:(0,o.walletToPCAIP10)(f),did:(0,o.walletToPCAIP10)(f),publicKey:r,encryptedPrivateKey:u},g=(0,o.generateHash)(p),m=yield(0,a.getEip191Signature)(t,g,"v2"),y=Object.assign(Object.assign(Object.assign({},p),{origin:d}),m);return(0,c.axiosPost)(h,y).then((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return e.data&&(e.data.publicKey=yield(0,o.verifyProfileKeys)(e.data.encryptedPrivateKey,e.data.publicKey,e.data.did,e.data.wallets,e.data.verificationProof)),(0,s.populateDeprecatedUser)(e.data)})))).catch((e=>{throw Error(`[Push SDK] - API ${h}: ${e}`)}))}));t.authUpdateUserService=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{user:t,wallet:r,publicKey:u="",encryptedPrivateKey:l="",env:d=i.default.ENV.PROD}=e||{},f=`${(0,o.getAPIBaseUrls)(d)}/v2/users/${(0,o.walletToPCAIP10)(t)}/auth`,h={caip10:(0,o.walletToPCAIP10)(t),did:(0,o.walletToPCAIP10)(t),publicKey:u,encryptedPrivateKey:l},p=(0,o.generateHash)(h),g=yield(0,a.getEip191Signature)(r,p,"v2"),m=Object.assign(Object.assign({},h),g),{did:y}=m,b=n.__rest(m,["did"]);return(0,c.axiosPut)(f,b).then((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return e.data&&(e.data.publicKey=yield(0,o.verifyProfileKeys)(e.data.encryptedPrivateKey,e.data.publicKey,e.data.did,e.data.wallets,e.data.verificationProof)),(0,s.populateDeprecatedUser)(e.data)})))).catch((e=>{throw Error(`[Push SDK] - API ${f}: ${e}`)}))}));t.getConversationHashService=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{conversationId:t,account:r,env:n=i.default.ENV.PROD}=e||{},a=`${(0,o.getAPIBaseUrls)(n)}/v1/chat/users/${(0,o.walletToPCAIP10)(r)}/conversations/${t}/hash`;return(0,c.axiosGet)(a).then((e=>e.data)).catch((e=>{throw new Error(e)}))}));t.getMessagesService=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{threadhash:t,limit:r,env:n=i.default.ENV.PROD}=e||{},a={fetchLimit:r},s=`${`${(0,o.getAPIBaseUrls)(n)}/v1/chat/conversationhash/${t}`}?${(0,o.getQueryParams)(a)}`;return(0,c.axiosGet)(s).then((e=>e.data)).catch((e=>{throw new Error(e)}))}))},902729:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyProfileSignature=t.getTypedData=t.getTypeInformation=t.getDomainInformation=void 0;const n=r(331635),i=r(151594),o=r(302576);t.getDomainInformation=e=>({name:"PUSH CHAT ID",chainId:e,verifyingContract:"0x0000000000000000000000000000000000000000"});t.getTypeInformation=()=>({Data:[{name:"data",type:"string"}]});t.getTypedData=(e,r,n)=>{const i={data:e},o=(0,t.getTypeInformation)(),a=(0,t.getDomainInformation)(r);let s,c={};return"V1"===n?s={EIP712Domain:[],Data:o.Data}:(s={EIP712Domain:[{name:"name",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"}],Data:o.Data},c=a),{types:s,primaryType:"Data",domain:c,message:i}};t.verifyProfileSignature=(e,r,a)=>n.__awaiter(void 0,void 0,void 0,(function*(){const n="eip712v2";let s,c=null;const u=e.split(":")[0];if(u!==n&&"eip191"!==u&&"eip191v2"!==u||e.split(":").length>3)return!1;if(2===e.split(":").length?s=e.split(":")[1]:(c=parseInt(e.split(":")[1]),s=e.split(":")[2]),u===n)try{const e=(0,t.getTypedData)(r,c,"V2");return(0,i.recoverTypedSignature)({data:e,signature:s,version:i.SignTypedDataVersion.V4}).toLowerCase()===a.toLowerCase()}catch(l){const e=(0,t.getTypedData)(r,c,"V1");return(0,i.recoverTypedSignature)({data:e,signature:s,version:i.SignTypedDataVersion.V4}).toLowerCase()===a.toLowerCase()}else try{return(yield o.recoverAddress({hash:o.hashMessage(r),signature:s})).toLowerCase()===a.toLowerCase()}catch(l){return!1}}))},965044:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConnectedUserV2Core=t.getConnectedUserV2=void 0;const n=r(331635),i=r(397067),o=r(75232),a=r(989074),s=r(813951);t.getConnectedUserV2=(e,r,i)=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.getConnectedUserV2Core)(e,r,i,s.PGPHelper)}));t.getConnectedUserV2Core=(e,t,r,c)=>n.__awaiter(void 0,void 0,void 0,(function*(){const n=yield(0,a.getAccountAddress)(e),u=yield(0,o.get)({account:n,env:r||i.default.ENV.PROD});if(null==u?void 0:u.encryptedPrivateKey){if(t)return Object.assign(Object.assign({},u),{privateKey:t});{console.warn("Please note that if you don't pass the pgpPrivateKey parameter, a wallet popup will appear every time the approveRequest endpoint is called. We strongly recommend passing this parameter, and it will become mandatory in future versions of the API.");const t=yield(0,s.getDecryptedPrivateKey)(e,u,n,r);return Object.assign(Object.assign({},u),{privateKey:t})}}{const t={};e.account&&(t.account=e.account),u&&u.did&&(t.account=u.did),e.signer&&(t.signer=e.signer),t.env=r;const i=yield(0,o.createUserCore)(t,c),a=yield(0,s.getDecryptedPrivateKey)(e,i,n,r);return Object.assign(Object.assign({},i),{privateKey:a})}}))},188117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateGroupMemberUpdateOptions=t.updateGroupRequestValidator=t.validateScheduleDates=t.createSpaceRequestValidator=t.createGroupRequestValidator=void 0;const n=r(795924);t.createGroupRequestValidator=(e,t,r,i,o,a,s,c)=>{if(null==e||0==e.length)throw new Error("groupName cannot be null or empty");if(e.length>50)throw new Error("groupName cannot be more than 50 characters");if(i&&i.length>150)throw new Error("groupDescription cannot be more than 150 characters");if(null==t)throw new Error("members cannot be null");for(let u=0;u0&&!(0,n.isValidFullCAIP10)(o))throw new Error("Invalid contractAddressNFT address!");if(null!=a&&a<0)throw new Error("numberOfNFTs cannot be negative number");if(null!=s&&(null==s?void 0:s.length)>0&&!(0,n.isValidFullCAIP10)(s))throw new Error("Invalid contractAddressERC20 address!");if(null!=c&&c<0)throw new Error("numberOfERC20 cannot be negative number")};t.createSpaceRequestValidator=(e,t,r,i,o,a,s,c)=>{if(null==e||0==e.length)throw new Error("spaceName cannot be null or empty");if(e.length>50)throw new Error("groupName cannot be more than 50 characters");if(t&&t.length>150)throw new Error("spaceDescription cannot be more than 150 characters");if(null==r)throw new Error("members cannot be null");for(let u=0;u0&&!(0,n.isValidFullCAIP10)(o))throw new Error("Invalid contractAddressNFT address!");if(null!=a&&a<0)throw new Error("numberOfNFTs cannot be negative number");if(null!=s&&(null==s?void 0:s.length)>0&&!(0,n.isValidFullCAIP10)(s))throw new Error("Invalid contractAddressERC20 address!");if(null!=c&&c<0)throw new Error("numberOfERC20 cannot be negative number")};t.validateScheduleDates=(e,t)=>{if(e){const r=new Date(e),n=new Date;if(r=e)throw new Error("Schedule start time must be earlier than end time.")}}};t.updateGroupRequestValidator=(e,t,r,i,o,a)=>{if(null==e||0==e.length)throw new Error("chatId cannot be null or empty");if(null==t||0==t.length)throw new Error("groupName cannot be null or empty");if(null!=t&&t.length>50)throw new Error("groupName cannot be more than 50 characters");if(a&&null!=a&&a.length>150)throw new Error("groupDescription cannot be more than 150 characters");if(null!=r&&r.length>0)for(let s=0;s0)for(let s=0;s{const{chatId:t,upsert:r,remove:i}=e;if(!t||0===t.trim().length)throw new Error("Chat ID cannot be null or empty.");const o=["members","admins"];if(Object.keys(r).forEach((e=>{if(!o.includes(e))throw new Error(`Invalid role: ${e}. Allowed roles are ${o.join(", ")}.`);if(r[e]&&r[e].length>1e3)throw new Error(`${e} array cannot have more than 1000 addresses.`);r[e].forEach((t=>{if(!(0,n.isValidPushCAIP)(t))throw new Error(`Invalid address found in ${e} list.`)}))})),i&&i.length>1e3)throw new Error("Remove array cannot have more than 1000 addresses.");i.forEach((e=>{if(!(0,n.isValidPushCAIP)(e))throw new Error("Invalid address found in remove list.")}))}},989074:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAccountAddress=t.getWallet=void 0;const n=r(331635),i=r(795924);t.getWallet=e=>{const{account:t,signer:r}=e||{};return{account:t?(0,i.pCAIP10ToWallet)(t):t,signer:r}};t.getAccountAddress=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:t,signer:r}=e||{},n=new i.Signer(r);return t||(yield n.getAddress())||""}))},116729:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.historyCore=t.history=void 0;const n=r(331635),i=r(397067),o=r(500547),a=r(795924),s=r(75232),c=r(813951);var u;!function(e){e[e.MIN=1]="MIN",e[e.DEFAULT=10]="DEFAULT",e[e.MAX=30]="MAX"}(u||(u={}));t.history=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.historyCore)(e,c.PGPHelper)}));t.historyCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{threadhash:n,limit:l=u.DEFAULT,pgpPrivateKey:d="",account:f,toDecrypt:h=!1,env:p=i.default.ENV.PROD}=e||{};try{if(lu.MAX)throw l{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decryptConversation=t.decryptPGPKey=t.decryptWithWalletRPCMethod=void 0;const n=r(331635);n.__exportStar(r(503114),t),n.__exportStar(r(898255),t),n.__exportStar(r(183847),t),n.__exportStar(r(210539),t),n.__exportStar(r(113738),t),n.__exportStar(r(665447),t),n.__exportStar(r(116729),t),n.__exportStar(r(145819),t);var i=r(449203);Object.defineProperty(t,"decryptWithWalletRPCMethod",{enumerable:!0,get:function(){return i.decryptWithWalletRPCMethod}});var o=r(449203);Object.defineProperty(t,"decryptPGPKey",{enumerable:!0,get:function(){return o.decryptPGPKey}});var a=r(813951);Object.defineProperty(t,"decryptConversation",{enumerable:!0,get:function(){return a.decryptConversation}}),n.__exportStar(r(357673),t),n.__exportStar(r(84590),t),n.__exportStar(r(769402),t),n.__exportStar(r(681089),t),n.__exportStar(r(61638),t),n.__exportStar(r(91012),t),n.__exportStar(r(804991),t),n.__exportStar(r(559190),t),n.__exportStar(r(245374),t),n.__exportStar(r(63601),t),n.__exportStar(r(334264),t),n.__exportStar(r(638009),t),n.__exportStar(r(380469),t),n.__exportStar(r(144238),t),n.__exportStar(r(152983),t),n.__exportStar(r(446206),t),n.__exportStar(r(676349),t),n.__exportStar(r(935930),t),n.__exportStar(r(40323),t),n.__exportStar(r(906559),t)},134631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCID=void 0;const n=r(331635),i=r(397067),o=r(500547),a=r(795924),s=r(441786);t.getCID=function e(t,r){return n.__awaiter(this,void 0,void 0,(function*(){const{env:n=i.default.ENV.PROD}=r||{},c=`${(0,a.getAPIBaseUrls)(n)}/v1/ipfs/${t}`;try{const e=yield(0,s.axiosGet)(c);return e.data}catch(u){throw(0,o.handleError)(u,e.name)}}))}},145819:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.latestCore=t.latest=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(116729);t.latest=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.latestCore)(e,o.PGPHelper)}));t.latestCore=(e,t)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{threadhash:t,pgpPrivateKey:r="",account:n,toDecrypt:o=!1,env:s=i.default.ENV.PROD}=e||{};return(0,a.history)({threadhash:t,toDecrypt:o,limit:1,pgpPrivateKey:r,account:n,env:s})}))},40323:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.modifyRoles=void 0;const n=r(331635),i=r(746290),o=r(397067),a=r(500547),s=r(88634);t.modifyRoles=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,newRole:n,members:c,account:u=null,signer:l=null,env:d=o.default.ENV.PROD,pgpPrivateKey:f=null,overrideSecretKeyGeneration:h=!i.ALPHA_FEATURE_CONFIG[o.PACKAGE_BUILD].feature.includes(o.default.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==u&&null==l)throw new Error("At least one from account or signer is necessary!");if(!c||0===c.length)throw new Error("Members array cannot be empty!");const e={chatId:r,upsert:{admins:"ADMIN"===n?c:[],members:"MEMBER"===n?c:[]},remove:[],account:u,signer:l,pgpPrivateKey:f,env:d,overrideSecretKeyGeneration:h};return yield(0,s.updateGroupMembers)(e)}catch(p){throw(0,a.handleError)(p,t.modifyRoles.name)}}))},380469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reject=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(441786),u=r(500547);t.reject=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:r=null,signer:n=null,senderAddress:l,env:d=o.default.ENV.PROD,pgpPrivateKey:f=null}=e||{};if(null==r&&null==n)throw new Error("At least one from account or signer is necessary!");const h=(0,a.getWallet)({account:r,signer:n}),p=yield(0,a.getAccountAddress)(h),g=`${(0,i.getAPIBaseUrls)(d)}/v1/chat/request/reject`;let m=!0;(0,i.isValidPushCAIP)(l)&&(m=!1);const y=yield(0,a.getConnectedUserV2)(h,f,d);let b=yield(0,i.convertToValidDID)(l,d),v=yield(0,i.convertToValidDID)(p,d);m&&(b=yield(0,i.convertToValidDID)(p,d),v=yield(0,i.convertToValidDID)(l,d));const w={fromDID:b,toDID:v},A=s.SHA256(JSON.stringify(w)).toString(),C=yield(0,a.sign)({message:A,signingKey:y.privateKey}),E=(0,a.rejectRequestPayload)(b,v,"pgp",C);return(0,c.axiosPut)(g,E).then((e=>e.data)).catch((e=>{throw(0,u.handleError)(e,t.reject.name)}))}))},63601:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeAdmins=void 0;const n=r(331635),i=r(746290),o=r(397067),a=r(500547),s=r(88634);t.removeAdmins=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,admins:n,account:c=null,signer:u=null,env:l=o.default.ENV.PROD,pgpPrivateKey:d=null,overrideSecretKeyGeneration:f=!i.ALPHA_FEATURE_CONFIG[o.PACKAGE_BUILD].feature.includes(o.default.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==c&&null==u)throw new Error("At least one from account or signer is necessary!");if(!n||0===n.length)throw new Error("Admin address array cannot be empty!");const e={chatId:r,upsert:{members:[],admins:[]},remove:n,account:c,signer:u,pgpPrivateKey:d,env:l,overrideSecretKeyGeneration:f};return yield(0,s.updateGroupMembers)(e)}catch(h){throw(0,a.handleError)(h,t.removeAdmins.name)}}))},245374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeMembers=void 0;const n=r(331635),i=r(746290),o=r(397067),a=r(500547),s=r(88634);t.removeMembers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,members:n,account:c=null,signer:u=null,env:l=o.default.ENV.PROD,pgpPrivateKey:d=null,overrideSecretKeyGeneration:f=!i.ALPHA_FEATURE_CONFIG[o.PACKAGE_BUILD].feature.includes(o.default.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==c&&null==u)throw new Error("At least one from account or signer is necessary!");if(!n||0===n.length)throw new Error("Member address array cannot be empty!");const e={chatId:r,upsert:{members:[],admins:[]},remove:n,account:c,signer:u,pgpPrivateKey:d,env:l,overrideSecretKeyGeneration:f};return yield(0,s.updateGroupMembers)(e)}catch(h){throw(0,a.handleError)(h,t.removeMembers.name)}}))},183847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestsCore=t.requests=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(813951),c=r(500547);t.requests=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.requestsCore)(e,s.PGPHelper)}));t.requestsCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:n,pgpPrivateKey:u,env:l=o.default.ENV.PROD,toDecrypt:d=!1,page:f=1,limit:h=10}=e||{},p=yield(0,i.convertToValidDID)(n,l),g=`${(0,i.getAPIBaseUrls)(l)}/v1/chat/users/${p}/requests?page=${f}&limit=${h}`;try{if(!(0,i.isValidPushCAIP)(p))throw new Error("Invalid address!");const e=(yield(0,a.axiosGet)(g)).data.requests,t=(0,s.addDeprecatedInfo)(e);return yield(0,s.getInboxLists)({lists:t,user:p,toDecrypt:d,pgpPrivateKey:u,env:l},r)}catch(m){throw(0,c.handleError)(m,t.requests.name)}}))},638009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.search=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(500547);t.search=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{searchTerm:r,pageNumber:n,pageSize:c,env:u=o.default.ENV.PROD}=e||{};try{const e=`${(0,i.getAPIBaseUrls)(u)}/v1/chat/groups/search`;return(yield(0,a.axiosPost)(e,{searchTerm:r,pageNumber:n,pageSize:c})).data}catch(l){throw(0,s.handleError)(l,t.search.name)}}))},210539:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendCore=t.send=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(113738),c=r(813951),u=r(357877),l=r(441786),d=r(446206),f=r(500547);t.send=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.sendCore)(e,a.PGPHelper)}));t.sendCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){try{const t=p(e),{messageType:n,messageObj:u,account:f,to:g,signer:m,pgpPrivateKey:y,env:b}=t;yield h(t);const v=(0,a.getWallet)({account:f,signer:m}),w=yield(0,a.getConnectedUserV2Core)(v,y,b,r),A=yield(0,i.convertToValidDID)(g,b),C=(0,i.getAPIBaseUrls)(b),E=!(0,i.isValidPushCAIP)(g),x=E?yield(0,d.getGroupInfo)({chatId:g,env:b}):null;let S;S=n===o.MessageType.REPLY||n===o.MessageType.COMPOSITE?"MessageType Not Supported by this sdk version. Plz upgrade !!!":u.content;const I=yield(0,s.conversationHash)({conversationId:A,account:w.did,env:b});let k;k=E||!I||(null==I?void 0:I.threadHash)?`${C}/v1/chat/message`:`${C}/v1/chat/request`;const _=yield(0,c.sendMessagePayloadCore)(A,w,u,S,n,x,b,r);return(yield(0,l.axiosPost)(k,_)).data}catch(n){throw(0,f.handleError)(n,t.send.name)}}));const h=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{messageType:t,messageObj:r,account:n,to:o,signer:s,pgpPrivateKey:c,env:l}=e;if(!n&&!s)throw new Error("Unable to detect sender. Please ensure that either 'account' or 'signer' is properly defined.");if(!s&&!c)throw new Error("Unable to decrypt keys. Please ensure that either 'signer' or 'pgpPrivateKey' is properly defined.");const d=(0,a.getWallet)({account:n,signer:s}),f=yield(0,a.getAccountAddress)(d);if(!(0,i.isValidPushCAIP)(f))throw new Error("Invalid sender. Please ensure that either 'account' or 'signer' is properly defined.");(0,u.validateMessageObj)(r,t)})),p=e=>{var t,r,i;const a=void 0!==(null===(t=e.message)||void 0===t?void 0:t.type)?e.message.type:null!==(r=e.messageType)&&void 0!==r?r:"Text";let s=e.message;if(void 0===s){if(void 0===e.messageObj&&![o.MessageType.TEXT,o.MessageType.IMAGE,o.MessageType.FILE,o.MessageType.MEDIA_EMBED,o.MessageType.GIF].includes(a))throw new Error("Options.message is required");s=void 0!==e.messageObj?e.messageObj:{content:null!==(i=e.messageContent)&&void 0!==i?i:""}}else{const{type:e}=s;s=n.__rest(s,["type"])}if(a===o.MessageType.REPLY){if("object"!=typeof s.content)throw new Error("Options.message is not properly defined for Reply");{const e=s.content,{type:t}=e,r=n.__rest(e,["type"]);s.content={messageType:t,messageObj:r}}}if(a===o.MessageType.COMPOSITE){if(!(s.content instanceof Array))throw new Error("Options.message is not properly defined for Composite");s.content=s.content.map((e=>{const{type:t}=e;return{messageType:t,messageObj:n.__rest(e,["type"])}}))}const c=void 0!==e.account?e.account:null,u=void 0!==e.to?e.to:e.receiverAddress;if(void 0===u)throw new Error("Options.to is required");return{messageType:a,messageObj:s,account:c,to:u,signer:void 0!==e.signer?e.signer:null,pgpPrivateKey:void 0!==e.pgpPrivateKey?e.pgpPrivateKey:null,env:void 0!==e.env?e.env:o.default.ENV.PROD}}},681089:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateGroupCore=t.updateGroup=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(441786),u=r(61638),l=r(299348),d=r(144238),f=r(500547);t.updateGroup=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.updateGroupCore)(e,a.PGPHelper)}));t.updateGroupCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:h,groupName:p,groupImage:g,groupDescription:m,members:y,admins:b,account:v=null,signer:w=null,env:A=o.default.ENV.PROD,pgpPrivateKey:C=null,scheduleAt:E,scheduleEnd:x,status:S,meta:I,rules:k}=e||{};try{if(null==v&&null==w)throw new Error("At least one from account or signer is necessary!");const e=(0,a.getWallet)({account:v,signer:w}),t=yield(0,a.getAccountAddress)(e);(0,a.updateGroupRequestValidator)(h,p,y,b,t,m);const o=yield(0,a.getConnectedUserV2Core)(e,C,A,r),f=y.map((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,i.convertToValidDID)(e,A)})))),_=b.map((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,i.convertToValidDID)(e,A)})))),T=yield Promise.all(f),M=yield Promise.all(_),P=yield(0,u.getGroup)({chatId:h,env:A}),j=new Set(T.map((e=>e.toLowerCase()))),D=yield(0,d.getGroupMemberStatus)({chatId:h,did:o.did,env:A});let O=!0;P.members.map((e=>{j.has(e.wallet.toLowerCase())||(O=!1)}));let B=null;if(!(O&&D.isMember||P.isPublic)){const e=l.generateRandomSecret(15),t=[];P.members.map((e=>{j.has(e.wallet.toLowerCase())&&t.push(e.publicKey)})),D.isMember||t.push(o.publicKey),B=yield r.pgpEncrypt({plainText:e,keys:t})}const N={groupName:p,groupDescription:null==m?null:m,groupImage:null==g?null:g,members:T,admins:M,chatId:h},R=s.SHA256(JSON.stringify(N)).toString(),L=yield r.sign({message:R,signingKey:o.privateKey}),F="pgp"+":"+L+":"+v,U=`${(0,i.getAPIBaseUrls)(A)}/v1/chat/groups/${h}`,z=(0,a.updateGroupPayload)(p,T,M,o.did,F,B,m,g,E,x,S,I,k);return(yield(0,c.axiosPut)(U,z)).data}catch(_){throw(0,f.handleError)(_,t.updateGroup.name)}}))},668943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateGroupConfig=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(441786),u=r(500547);t.updateGroupConfig=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,meta:n,scheduleAt:l,scheduleEnd:d,status:f,account:h=null,signer:p=null,env:g=o.default.ENV.PROD,pgpPrivateKey:m=null}=e||{};try{if(null==h&&null==p)throw new Error("At least one from account or signer is necessary!");const e=(0,a.getWallet)({account:h,signer:p}),t={meta:n,scheduleAt:l,scheduleEnd:d,status:f},o=s.SHA256(JSON.stringify(t)).toString(),u=yield(0,a.getConnectedUserV2)(e,m,g),y=yield(0,a.sign)({message:o,signingKey:u.privateKey}),b="pgpv2"+":"+y+":"+u.did,v=`${(0,i.getAPIBaseUrls)(g)}/v1/chat/groups/${r}/config`,w=t;w.configVerificationProof=b;return(yield(0,c.axiosPut)(v,w)).data}catch(y){throw(0,u.handleError)(y,t.updateGroupConfig.name)}}))},88634:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateGroupMembers=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(446206),u=r(144238),l=r(299348),d=r(918781),f=r(746290),h=r(441786),p=r(500547);t.updateGroupMembers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,upsert:g,remove:m,account:y=null,signer:b=null,env:v=o.default.ENV.PROD,pgpPrivateKey:w=null,overrideSecretKeyGeneration:A=!f.ALPHA_FEATURE_CONFIG[o.PACKAGE_BUILD].feature.includes(o.default.ALPHA_FEATURES.SCALABILITY_V2)}=e;try{(0,a.validateGroupMemberUpdateOptions)(e);const t=(0,a.getWallet)({account:y,signer:b}),o=yield(0,a.getConnectedUserV2Core)(t,w,v,a.PGPHelper),f=Object.entries(g).map((([e,t])=>n.__awaiter(void 0,void 0,void 0,(function*(){const r=yield Promise.all(t.map((e=>(0,i.convertToValidDID)(e,v))));return[e,r]})))),p=Object.fromEntries(yield Promise.all(f)),C=yield Promise.all(m.map((e=>(0,i.convertToValidDID)(e,v))));let E=null;const x=yield(0,c.getGroupInfo)({chatId:r,env:v});if(!x)throw new Error("Group not found");if(!x.isPublic&&(x.encryptedSecret||!A)){const{isMember:e}=yield(0,u.getGroupMemberStatus)({chatId:r,did:o.did,env:v}),t=yield(0,d.getAllGroupMembersPublicKeys)({chatId:r,env:v}),n=new Set(C.map((e=>e.toLowerCase())));let i=!0;if(t.map((e=>{n.has(e.did.toLowerCase())&&(i=!1)})),!i||!e){const r=l.generateRandomSecret(15),i=[];t.map((e=>{n.has(e.did.toLowerCase())||i.push(e.publicKey)})),e||i.push(o.publicKey),E=yield(0,a.pgpEncrypt)({plainText:r,keys:i})}}const S={upsert:p,remove:C,encryptedSecret:E},I=s.SHA256(JSON.stringify(S)).toString(),k=yield a.PGPHelper.sign({message:I,signingKey:o.privateKey}),_=`${"pgpv2"}:${k}:${o.did}`,T=`${(0,i.getAPIBaseUrls)(v)}/v1/chat/groups/${r}/members`,M={upsert:p,remove:C,encryptedSecret:E,deltaVerificationProof:_};return(yield(0,h.axiosPut)(T,M)).data}catch(C){throw(0,p.handleError)(C,t.updateGroupMembers.name)}}))},517496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateGroupProfile=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(921396),c=r(441786),u=r(446206),l=r(500547);t.updateGroupProfile=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{chatId:r,groupName:d,groupImage:f,groupDescription:h,rules:p,account:g=null,signer:m=null,env:y=o.default.ENV.PROD,pgpPrivateKey:b=null}=e||{};try{if(null==g&&null==m)throw new Error("At least one from account or signer is necessary!");const e=(0,a.getWallet)({account:g,signer:m}),t=yield(0,a.getAccountAddress)(e);(0,a.updateGroupRequestValidator)(r,d,[],[],t,h);const o=yield(0,u.getGroupInfo)({chatId:r,env:y}),l={groupName:d,groupDescription:h,groupImage:f,rules:null!=p?p:{},isPublic:o.isPublic,groupType:o.groupType},v=s.SHA256(JSON.stringify(l)).toString(),w=yield(0,a.getConnectedUserV2)(e,b,y),A=yield(0,a.sign)({message:v,signingKey:w.privateKey}),C="pgpv2"+":"+A+":"+w.did,E=`${(0,i.getAPIBaseUrls)(y)}/v1/chat/groups/${r}/profile`,{isPublic:x,groupType:S}=l,I=n.__rest(l,["isPublic","groupType"]);I.profileVerificationProof=C;return(yield(0,c.axiosPut)(E,I)).data}catch(v){throw(0,l.handleError)(v,t.updateGroupProfile.name)}}))},746290:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ALPHA_FEATURE_CONFIG=t.VIEM_CONFIG=t.CHANNEL_TYPE=t.ABIS=t.MIN_TOKEN_BALANCE=t.TOKEN_VIEM_NETWORK_MAP=t.TOKEN=t.CORE_CONFIG=t.VIEM_CORE_CONFIG=t.CHAIN_NAME=t.CHAIN_ID=t.ALIAS_CHAIN_ID=t.ETH_CHAIN_ID=t.API_BASE_URL=void 0;const n=r(397067),i=r(124677),o=r(526366),a=r(229329),s=r(610971),c=r(139225);t.API_BASE_URL={[n.ENV.PROD]:"https://backend.epns.io/apis",[n.ENV.STAGING]:"https://backend-staging.epns.io/apis",[n.ENV.DEV]:"https://backend-dev.epns.io/apis",[n.ENV.LOCAL]:"http://localhost:4000/apis"};const u="eip155:1",l="eip155:11155111",d="eip155:137",f="eip155:80002",h="eip155:56",p="eip155:97",g="eip155:11155420",m="eip155:10",y="eip155:2442",b="eip155:1101",v="eip155:421614",w="eip155:42161",A="eip155:123",C="eip155:122",E="eip155:80085",x="eip155:111557560",S="eip155:7560";t.ETH_CHAIN_ID={[n.ENV.PROD]:1,[n.ENV.STAGING]:11155111,[n.ENV.DEV]:11155111,[n.ENV.LOCAL]:11155111},t.ALIAS_CHAIN_ID={POLYGON:{[n.ENV.PROD]:137,[n.ENV.STAGING]:80002,[n.ENV.DEV]:80002,[n.ENV.LOCAL]:80002},BSC:{[n.ENV.PROD]:56,[n.ENV.STAGING]:97,[n.ENV.DEV]:97,[n.ENV.LOCAL]:97},OPTIMISM:{[n.ENV.PROD]:10,[n.ENV.STAGING]:11155420,[n.ENV.DEV]:11155420,[n.ENV.LOCAL]:11155420},POLYGONZKEVM:{[n.ENV.PROD]:1101,[n.ENV.STAGING]:2442,[n.ENV.DEV]:2442,[n.ENV.LOCAL]:2442},ARBITRUMONE:{[n.ENV.PROD]:42161,[n.ENV.STAGING]:421614,[n.ENV.DEV]:421614,[n.ENV.LOCAL]:421614},FUSE:{[n.ENV.PROD]:122,[n.ENV.STAGING]:123,[n.ENV.DEV]:123,[n.ENV.LOCAL]:123},BERACHAIN:{[n.ENV.PROD]:0,[n.ENV.STAGING]:80085,[n.ENV.DEV]:80085,[n.ENV.LOCAL]:80085},CYBERCONNECT:{[n.ENV.PROD]:7560,[n.ENV.STAGING]:111557560,[n.ENV.DEV]:111557560,[n.ENV.LOCAL]:111557560}},t.CHAIN_ID=Object.assign({ETHEREUM:t.ETH_CHAIN_ID},t.ALIAS_CHAIN_ID),t.CHAIN_NAME={1:"ETHEREUM",11155111:"ETHEREUM",137:"POLYGON",80002:"POLYGON",56:"BSC",97:"BSC",10:"OPTIMISM",11155420:"OPTIMISM",1101:"POLYGONZKEVM",2442:"POLYGONZKEVM",421614:"ARBITRUN",42161:"ARBITRUM",122:"FUSE",123:"FUSE",80085:"BERACHAIN",7560:"CYBER_CONNECT_MAINNET",111557560:"CYBER_CONNECT_TESTNET"},t.VIEM_CORE_CONFIG={[n.ENV.PROD]:{NETWORK:s.mainnet,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_CORE_CONTRACT:"0x66329Fdd4042928BfCAB60b179e1538D56eeeeeE"},[n.ENV.STAGING]:{NETWORK:s.sepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_CORE_CONTRACT:"0x9d65129223451fbd58fc299c635cd919baf2564c"},[n.ENV.DEV]:{NETWORK:s.sepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_CORE_CONTRACT:"0x5ab1520e2bd519bdab2e1347eee81c00a77f4946"},[n.ENV.LOCAL]:{NETWORK:s.sepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_CORE_CONTRACT:"0x5ab1520e2bd519bdab2e1347eee81c00a77f4946"}},t.CORE_CONFIG={[n.ENV.PROD]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_CORE_CONTRACT:"0x66329Fdd4042928BfCAB60b179e1538D56eeeeeE"},[n.ENV.STAGING]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_CORE_CONTRACT:"0x9d65129223451fbd58fc299c635cd919baf2564c"},[n.ENV.DEV]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_CORE_CONTRACT:"0x5ab1520e2bd519bdab2e1347eee81c00a77f4946"},[n.ENV.LOCAL]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_CORE_CONTRACT:"0x5ab1520e2bd519bdab2e1347eee81c00a77f4946"}};const I={[n.ENV.PROD]:{[u]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[d]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[h]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[m]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[b]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[w]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[C]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[S]:{API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xbf895df410b7fcbe093973600950ba392f7e1d8e"}},[n.ENV.STAGING]:{[l]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x0c34d54a09cfe75bccd878a469206ae77e0fe6e7"},[f]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[p]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[g]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x9Dc25996ba72A2FD7E64e7a674232a683f406F1A"},[y]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x6e489b7af21ceb969f49a90e481274966ce9d74d"},[v]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x9Dc25996ba72A2FD7E64e7a674232a683f406F1A"},[A]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[E]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x7b9C405e261ba671f008c20D0321f62d08C140EC"},[x]:{API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x6e489B7af21cEb969f49A90E481274966ce9D74d"}},[n.ENV.DEV]:{[l]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9dDCD7ed7151afab43044E4D694FA064742C428c"},[f]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[p]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x4132061E3349ff36cFfCadA460E10Bd4f31F7ea8"},[g]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[y]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[v]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[A]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x7eBb54D86CF928115965DB596a3E600404dD8039"},[E]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0xA1DF3E68D085aa6918bcc2506b24e499830Db0eB"},[x]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550B5c92baA056Fc0F08132f49508145F"}},[n.ENV.LOCAL]:{[l]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x9dDCD7ed7151afab43044E4D694FA064742C428c"},[f]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[p]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x4132061E3349ff36cFfCadA460E10Bd4f31F7ea8"},[g]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[y]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[v]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[A]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x7eBb54D86CF928115965DB596a3E600404dD8039"},[E]:{API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0xA1DF3E68D085aa6918bcc2506b24e499830Db0eB"},[x]:{API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550B5c92baA056Fc0F08132f49508145F"}}};t.default=I,t.TOKEN={[n.ENV.PROD]:"0xf418588522d5dd018b425E472991E52EBBeEEEEE",[n.ENV.STAGING]:"0x37c779a1564DCc0e3914aB130e0e787d93e21804",[n.ENV.DEV]:"0x37c779a1564DCc0e3914aB130e0e787d93e21804",[n.ENV.LOCAL]:"0x37c779a1564DCc0e3914aB130e0e787d93e21804"},t.TOKEN_VIEM_NETWORK_MAP={[n.ENV.PROD]:s.mainnet,[n.ENV.STAGING]:s.sepolia,[n.ENV.DEV]:s.sepolia,[n.ENV.LOCAL]:s.sepolia},t.MIN_TOKEN_BALANCE={[n.ENV.PROD]:50,[n.ENV.STAGING]:50,[n.ENV.DEV]:50,[n.ENV.LOCAL]:50},t.ABIS={CORE:i.coreABI,COMM:o.commABI,TOKEN:a.tokenABI},t.CHANNEL_TYPE={TIMEBOUND:4,GENERAL:2},t.VIEM_CONFIG={[n.ENV.PROD]:{[u]:{NETWORK:s.mainnet,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[d]:{NETWORK:s.polygon,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[h]:{NETWORK:s.bsc,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[m]:{NETWORK:s.optimism,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[b]:{NETWORK:s.polygonZkEvm,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[w]:{NETWORK:s.arbitrum,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[C]:{NETWORK:s.fuse,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[S]:{NETWORK:c.cyberConnectMainnet,API_BASE_URL:t.API_BASE_URL[n.ENV.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xbf895df410b7fcbe093973600950ba392f7e1d8e"}},[n.ENV.STAGING]:{[l]:{NETWORK:s.sepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x0c34d54a09cfe75bccd878a469206ae77e0fe6e7"},[f]:{NETWORK:c.polygonAmoy,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[p]:{NETWORK:s.bscTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[g]:{NETWORK:s.optimismSepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x9Dc25996ba72A2FD7E64e7a674232a683f406F1A"},[y]:{NETWORK:c.polygonZkEvmCordona,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x6e489b7af21ceb969f49a90e481274966ce9d74d"},[v]:{NETWORK:s.arbitrumSepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x9Dc25996ba72A2FD7E64e7a674232a683f406F1A"},[A]:{NETWORK:s.fuseSparknet,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[E]:{NETWORK:c.berachainTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x7b9C405e261ba671f008c20D0321f62d08C140EC"},[x]:{NETWORK:c.cyberConnectTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x6e489B7af21cEb969f49A90E481274966ce9D74d"}},[n.ENV.DEV]:{[l]:{NETWORK:s.sepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9dDCD7ed7151afab43044E4D694FA064742C428c"},[f]:{NETWORK:c.polygonAmoy,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[p]:{NETWORK:s.bscTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x4132061E3349ff36cFfCadA460E10Bd4f31F7ea8"},[g]:{NETWORK:s.optimismSepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[y]:{NETWORK:c.polygonZkEvmCordona,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[v]:{NETWORK:s.arbitrumSepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[A]:{NETWORK:s.fuseSparknet,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x7eBb54D86CF928115965DB596a3E600404dD8039"},[E]:{NETWORK:c.berachainTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0xA1DF3E68D085aa6918bcc2506b24e499830Db0eB"},[x]:{NETWORK:c.cyberConnectTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550B5c92baA056Fc0F08132f49508145F"}},[n.ENV.LOCAL]:{[l]:{NETWORK:s.sepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9dDCD7ed7151afab43044E4D694FA064742C428c"},[f]:{NETWORK:c.polygonAmoy,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[p]:{NETWORK:s.bscTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x4132061E3349ff36cFfCadA460E10Bd4f31F7ea8"},[g]:{NETWORK:s.optimismSepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[y]:{NETWORK:c.polygonZkEvmCordona,API_BASE_URL:t.API_BASE_URL[n.ENV.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550b5c92baa056fc0f08132f49508145f"},[v]:{NETWORK:s.arbitrumSepolia,API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x754787358fac861ef904c92d54f7adb659779317"},[A]:{NETWORK:s.fuseSparknet,API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x7eBb54D86CF928115965DB596a3E600404dD8039"},[E]:{NETWORK:c.berachainTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0xA1DF3E68D085aa6918bcc2506b24e499830Db0eB"},[x]:{NETWORK:c.cyberConnectTestnet,API_BASE_URL:t.API_BASE_URL[n.ENV.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x9cb3bd7550B5c92baA056Fc0F08132f49508145F"}}},t.ALPHA_FEATURE_CONFIG={STABLE:{feature:[]},ALPHA:{feature:[n.default.ALPHA_FEATURES.SCALABILITY_V2]}}},397067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PACKAGE_BUILD=t.ALPHA_FEATURES=t.MessageType=t.ENCRYPTION_TYPE=t.ENV=void 0;const n=r(207065);var i,o;!function(e){e.PROD="prod",e.STAGING="staging",e.DEV="dev",e.LOCAL="local"}(i=t.ENV||(t.ENV={})),function(e){e.PGP_V1="x25519-xsalsa20-poly1305",e.PGP_V2="aes256GcmHkdfSha256",e.PGP_V3="eip191-aes256-gcm-hkdf-sha256",e.NFTPGP_V1="pgpv1:nft"}(o=t.ENCRYPTION_TYPE||(t.ENCRYPTION_TYPE={})),function(e){e.TEXT="Text",e.IMAGE="Image",e.VIDEO="Video",e.AUDIO="Audio",e.FILE="File",e.GIF="GIF",e.MEDIA_EMBED="MediaEmbed",e.META="Meta",e.REACTION="Reaction",e.RECEIPT="Receipt",e.USER_ACTIVITY="UserActivity",e.INTENT="Intent",e.REPLY="Reply",e.COMPOSITE="Composite",e.PAYMENT="Payment"}(t.MessageType||(t.MessageType={})),t.ALPHA_FEATURES={SCALABILITY_V2:"SCALABILITY_V2"},t.PACKAGE_BUILD=n.version.includes("alpha")?"ALPHA":"STABLE";const a={ENV:i,ENCRYPTION_TYPE:o,PAGINATION:{INITIAL_PAGE:1,LIMIT:10,LIMIT_MIN:1,LIMIT_MAX:50},DEFAULT_CHAIN_ID:11155111,DEV_CHAIN_ID:99999,NON_ETH_CHAINS:[137,80002,56,97,10,11155420,2442,1101,421614,42161,122,123,80085,111557560,7560],ETH_CHAINS:[1,11155111],ENC_TYPE_V1:"x25519-xsalsa20-poly1305",ENC_TYPE_V2:"aes256GcmHkdfSha256",ENC_TYPE_V3:"eip191-aes256-gcm-hkdf-sha256",ENC_TYPE_V4:"pgpv1:nft",ALPHA_FEATURES:t.ALPHA_FEATURES};t.default=a},191227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(397067),i=r(146180),o=r(701728),a=r(416062),s=r(200635),c=r(899024),u=r(574338),l={ENV:n.ENV,STREAM:a.STREAM,CHAT:{LIST_TYPE:o.ChatListType,MESSAGE_TYPE:n.MessageType,GROUP:{RULES:{CONDITION_TYPE:c.ConditionType,CATEGORY:c.GROUP_RULES_CATEGORY,SUBCATEGORY:c.GROUP_RULES_SUB_CATEGORY,PERMISSION:c.GROUP_RULES_PERMISSION,INVITER_ROLE:c.GROUP_INVITER_ROLE}}},VIDEO:{EVENT:a.VideoEventType,STATUS:c.VideoCallStatus,INITIAL_DATA:u.initVideoCallData},SPACE:{EVENT:a.SpaceEventType,INITIAL_DATA:s.initSpaceData},ALPHA_FEATURES:n.ALPHA_FEATURES,USER:{ENCRYPTION_TYPE:n.ENCRYPTION_TYPE},NOTIFICATION:{TYPE:c.NotifictaionType,CHANNEL:{LIST_TYPE:i.ChannelListType}},FILTER:{CHANNEL_LIST:{SORT:i.ChannelListSortType,ORDER:i.ChannelListOrderType},NOTIFICATION_TYPE:c.NotifictaionType}};t.default=l},139225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cyberConnectMainnet=t.cyberConnectTestnet=t.berachainTestnet=t.polygonAmoy=t.polygonZkEvmCordona=void 0;const n=r(302576);t.polygonZkEvmCordona=(0,n.defineChain)({id:2442,name:"Polygon zkEVM Cardona Testnet",network:"polygon-zkevm-testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.cardona.zkevm-rpc.com/"]},public:{http:["https://rpc.cardona.zkevm-rpc.com/"]}},blockExplorers:{default:{name:"Polygon zkEVM Cardona",url:" https://cardona-zkevm.polygonscan.com/"}},testnet:!0}),t.polygonAmoy=(0,n.defineChain)({id:80002,name:"Polygon Amoy Testnet",network:"polygon-amoy",nativeCurrency:{decimals:18,name:"MATIC",symbol:"MATIC"},rpcUrls:{default:{http:["https://rpc-amoy.polygon.technology/"]},public:{http:["https://rpc-amoy.polygon.technology/"]}},blockExplorers:{default:{name:"Polygon Amoy",url:"https://www.oklink.com/amoy"}},testnet:!0}),t.berachainTestnet=(0,n.defineChain)({id:80085,name:"Berachain Artio",network:"berachain-testnet",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},rpcUrls:{default:{http:["https://artio.rpc.berachain.com"]},public:{http:["https://artio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain",url:"https://artio.beratrail.io"}},testnet:!0}),t.cyberConnectTestnet=(0,n.defineChain)({id:111557560,name:"Cyber Testnet",network:"cyberconnect-testent",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber-testnet.alt.technology"]},public:{http:["https://cyber-testnet.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet.cyberscan.co"}},contracts:{multicall3:{address:"0xffc391F0018269d4758AEA1a144772E8FB99545E",blockCreated:304545}},testnet:!0}),t.cyberConnectMainnet=(0,n.defineChain)({id:7560,name:"Cyber",network:"cyberconnect-mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber.alt.technology"]},public:{http:["https://cyber.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://cyberscan.co",apiUrl:"https://cyberscan.co/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}})},430076:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpStatus=void 0,function(e){e[e.BadRequest=400]="BadRequest",e[e.NotFound=404]="NotFound",e[e.Forbidden=403]="Forbidden",e[e.InternalError=500]="InternalError"}(t.HttpStatus||(t.HttpStatus={}))},500547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleError=t.isErrorWithResponseV2=t.isErrorWithResponse=t.ValidationError=void 0;const n=r(430076);class i extends Error{constructor(e,t,r,n){super(r),this.name="ValidationError",this.status=e,this.errorCode=t,this.details=n}format(){return{status:this.status,errorCode:this.errorCode,message:this.message,details:this.details,timestamp:(new Date).toISOString()}}}function o(e){return"object"==typeof e&&null!==e&&"response"in e&&"object"==typeof e.response&&null!==e.response&&"status"in e.response&&"data"in e.response&&"object"==typeof e.response.data&&"status"in e.response.data&&"errorCode"in e.response.data&&"message"in e.response.data&&"details"in e.response.data&&"timestamp"in e.response.data}function a(e){return"object"==typeof e&&null!==e&&"response"in e&&"object"==typeof e.response&&null!==e.response&&"status"in e.response&&"data"in e.response&&"object"==typeof e.response.data&&"error"in e.response.data&&"message"in e.response.data&&"validation"in e.response.data}t.ValidationError=i,t.isErrorWithResponse=o,t.isErrorWithResponseV2=a,t.handleError=function(e,t){var r,s,c;let u=n.HttpStatus.InternalError,l="00000000000",d="An unexpected error occurred. Please contact support or try again later.",f="";if(o(e)){if(u=(null===(r=e.response)||void 0===r?void 0:r.status)||n.HttpStatus.InternalError,null===(s=e.response)||void 0===s?void 0:s.data){const t=e.response.data;l=t.errorCode||l,d=t.message||d,f=t.details||JSON.stringify(t)}}else if(a(e)){u=(null===(c=e.response)||void 0===c?void 0:c.status)||n.HttpStatus.InternalError;const t=e.response.data;d=t.message||d,f=t.validation||JSON.stringify(t)}else e instanceof Error&&(d=e.message,f=e.stack||"");const h=new i(u,l,d,f),p=`[Error - API ${t}]`;return console.error(`${p} ${JSON.stringify(h.format(),null,2)}`),h}},527596:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pCAIP10ToWallet=t.walletToPCAIP10=t.getCAIPWithChainId=t.getCAIPAddress=t.getFallbackETHCAIPAddress=t.getCAIPDetails=t.validateCAIP=t.isValidFullCAIP10=t.convertToValidDID=t.isValidPushCAIP=t.isValidEOACAIP=t.isValidNFTCAIP=t.isValidSCWCAIP=void 0;const n=r(331635),i=r(302576),o=r(397067),a=r(75232);t.isValidSCWCAIP=e=>{try{const t=e.split(":");return 4===t.length&&"scw"===t[0]&&"eip155"===t[1]&&!isNaN(Number(t[2]))&&Number(t[2])>0&&i.isAddress(t[3])}catch(t){return!1}};t.isValidNFTCAIP=e=>{try{const t=e.split(":");return(5===t.length||6===t.length)&&"nft"===t[0].toLowerCase()&&!isNaN(Number(t[4]))&&Number(t[4])>0&&!isNaN(Number(t[2]))&&Number(t[2])>0&&i.isAddress(t[3])&&"eip155"===t[1]}catch(t){return!1}};t.isValidEOACAIP=e=>{try{const t=e.split(":");return 3===t.length?"eip155"===t[0]&&!isNaN(Number(t[1]))&&Number(t[1])>0&&i.isAddress(t[2]):2===t.length&&("eip155"===t[0]&&i.isAddress(t[1]))}catch(t){return!1}};t.isValidPushCAIP=e=>(0,t.isValidEOACAIP)(e)||(0,t.isValidSCWCAIP)(e)||(0,t.isValidNFTCAIP)(e)||i.isAddress(e);t.convertToValidDID=(e,r=o.ENV.STAGING,i,s)=>n.__awaiter(void 0,void 0,void 0,(function*(){if(!(0,t.isValidPushCAIP)(e))return e;if((0,t.isValidEOACAIP)(e)||(0,t.isValidSCWCAIP)(e)||(0,t.isValidNFTCAIP)(e)&&6===e.split(":").length)return e;if((0,t.isValidNFTCAIP)(e)){const t=yield(0,a.get)({account:e,env:r});if(t&&t.did)return t.did;const n=Math.floor(Date.now()/1e3);return`${e}:${n}`}return i?`eip155:${i}:${e}`:`eip155:${e}`}));t.isValidFullCAIP10=e=>{const t=e.split(":");return!isNaN(Number(t[1]))&&("eip155"===t[0]&&!isNaN(Number(t[1]))&&Number(t[1])>0&&i.isAddress(t[2]))};const s={eip155:({address:e})=>(0,t.isValidPushCAIP)(e)};function c(e){const[r,n,i]=e.split(":");if(!r)return!1;if(!n)return!1;if(!i)return!1;if((0,t.isValidNFTCAIP)(e))return!0;return(0,s[r])({address:i})}function u(e,t){let r=1;return e!==o.default.ENV.DEV&&e!==o.default.ENV.STAGING&&e!==o.default.ENV.LOCAL||(r=11155111),`eip155:${r}:${t}`}t.validateCAIP=c,t.getCAIPDetails=function(e){if(c(e)){const[t,r,n]=e.split(":");return{blockchain:t,networkId:r,address:n}}return null},t.getFallbackETHCAIPAddress=u,t.getCAIPAddress=function(e,r,i){return n.__awaiter(this,void 0,void 0,(function*(){if((0,t.isValidNFTCAIP)(r))return yield(0,t.convertToValidDID)(r,e);if(c(r))return r;if((0,t.isValidPushCAIP)(r))return u(e,r);throw Error(`Invalid Address! ${i} \n Address: ${r}`)}))};t.getCAIPWithChainId=(e,r,n)=>{if((0,t.isValidPushCAIP)(e))return e.includes("eip155:")?e:`eip155:${r}:${e}`;throw Error(`Invalid Address! ${n} \n Address: ${e}`)};t.walletToPCAIP10=e=>(0,t.isValidNFTCAIP)(e)||e.includes("eip155:")?e:"eip155:"+e;t.pCAIP10ToWallet=e=>(0,t.isValidNFTCAIP)(e)?e:e=e.replace("eip155:","")},565944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLimit=t.getQueryParams=void 0;const n=r(397067);t.getQueryParams=function(e){return Object.keys(e).map((t=>`${t}=${encodeURIComponent(e[t])}`)).join("&")},t.getLimit=function(e){return e||n.default.PAGINATION.LIMIT}},622042:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cache=void 0;const n=r(489096);t.cache=new n.LRUCache({max:200,maxSize:512e3,sizeCalculation:(e,t)=>"string"==typeof e?e.length:(new TextEncoder).encode(JSON.stringify(e)).length,ttl:3e5,allowStale:!1})},859848:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAPIBaseUrls=t.getConfig=void 0;const n=r(746290);t.getConfig=(e,{blockchain:t,networkId:r})=>{const i=`${t}:${r}`,o=n.default[e][i];if(!o)throw Error(`\n [Push SDK] - cannot determine config for \n env: ${e},\n blockchain: ${t},\n networkId: ${r}\n `);return o},t.getAPIBaseUrls=function(e){if(!e)throw Error("ENV not provided!");return n.API_BASE_URL[e]}},449203:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePssword=t.verifyProfileKeys=t.preparePGPPublicKey=t.encryptPGPKey=t.decryptV2=t.encryptV2=t.stringToHex=t.hexToBytes=t.generateHash=t.decryptPGPKey=t.decryptWithWalletRPCMethod=t.encryptV1=t.getPublicKey=void 0;const n=r(331635),i=r(151594),o=r(151594),a=r(921396),s=r(813951),c=r(397067),u=r(527596),l=r(902729),d=r(71827),f=r(552096),h=r(960380),p=r(302576),g=r(610971);let m;if("undefined"!=typeof window&&window.crypto)m=window.crypto;else{try{m=r(991565).webcrypto}catch(w){throw new Error("Unable To load crypto")}}t.getPublicKey=e=>n.__awaiter(void 0,void 0,void 0,(function*(){var t;const{account:r,signer:n}=e||{},i=n?new h.Signer(n):void 0,o=r||(yield null==i?void 0:i.getAddress())||"",a=p.createWalletClient({chain:g.mainnet,transport:p.custom(window.ethereum)}),s=(null===(t=null==n?void 0:n.provider)||void 0===t?void 0:t.provider)||a;return yield s.request({method:"eth_getEncryptionPublicKey",params:[o]})}));t.encryptV1=(e,t,r)=>i.encrypt({publicKey:t,data:e,version:r});t.decryptWithWalletRPCMethod=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){return console.warn("decryptWithWalletRPCMethod method is DEPRECATED. Use decryptPGPKey method with signer!"),yield(0,t.decryptPGPKey)({encryptedPGPPrivateKey:e,account:r})}));t.decryptPGPKey=e=>n.__awaiter(void 0,void 0,void 0,(function*(){var r,n,i;const{encryptedPGPPrivateKey:a,account:l=null,signer:h=null,env:m=c.default.ENV.PROD,toUpgrade:y=!0,additionalMeta:b=null,progressHook:v}=e||{};try{if(null==l&&null==h)throw new Error("At least one from account or signer is necessary!");const e=(0,s.getWallet)({account:l,signer:h}),A=yield(0,s.getAccountAddress)(e);if(!(0,u.isValidPushCAIP)(A))throw new Error("Invalid address!");const{version:C}=JSON.parse(a);let E;switch(null==v||v(f.default["PUSH-DECRYPT-01"]),C){case c.default.ENC_TYPE_V1:if(null===(r=null==e?void 0:e.signer)||void 0===r?void 0:r.privateKey)E=(0,o.decrypt)({encryptedData:JSON.parse(a),privateKey:null===(n=null==e?void 0:e.signer)||void 0===n?void 0:n.privateKey.substring(2)});else{const e=p.createWalletClient({chain:g.mainnet,transport:p.custom(window.ethereum)}),t=(null===(i=null==h?void 0:h.provider)||void 0===i?void 0:i.provider)||e;E=yield t.request({method:"eth_decrypt",params:[a,A]})}break;case c.default.ENC_TYPE_V2:{if(!(null==e?void 0:e.signer))throw new Error("Cannot Decrypt this encryption version without signer!");const{preKey:r}=JSON.parse(a),n="Enable Push Chat Profile \n"+r;let i;try{const{verificationProof:r}=yield(0,s.getEip712Signature)(e,n,!0);i=yield(0,t.decryptV2)(JSON.parse(a),(0,t.hexToBytes)(r||""))}catch(w){const{verificationProof:r}=yield(0,s.getEip712Signature)(e,n,!1);i=yield(0,t.decryptV2)(JSON.parse(a),(0,t.hexToBytes)(r||""))}E=(new TextDecoder).decode(i);break}case c.default.ENC_TYPE_V3:{if(!(null==e?void 0:e.signer))throw new Error("Cannot Decrypt this encryption version without signer!");const{preKey:r}=JSON.parse(a),n="Enable Push Profile \n"+r,{verificationProof:i}=yield(0,s.getEip191Signature)(e,n),o=yield(0,t.decryptV2)(JSON.parse(a),(0,t.hexToBytes)(i||""));E=(new TextDecoder).decode(o);break}case c.default.ENC_TYPE_V4:{let r=null;if(null==b?void 0:b.NFTPGP_V1)r=b.NFTPGP_V1.password;else{if(!(null==e?void 0:e.signer))throw new Error("Cannot Decrypt this encryption version without signer!");const{encryptedPassword:n}=JSON.parse(a);r=yield(0,t.decryptPGPKey)({encryptedPGPPrivateKey:JSON.stringify(n),signer:h,env:m})}const n=yield(0,t.decryptV2)(JSON.parse(a),(0,t.hexToBytes)((0,t.stringToHex)(r)));E=(new TextDecoder).decode(n);break}default:throw new Error("Invalid Encryption Type")}if(h&&y&&C!==c.default.ENC_TYPE_V4)try{yield(0,d.upgrade)({env:m,account:A,signer:h,progressHook:v})}catch(w){const e=f.default["PUSH-ERROR-01"];null==v||v(e(w))}return null==v||v(f.default["PUSH-DECRYPT-02"]),E}catch(w){const e=f.default["PUSH-ERROR-00"];throw null==v||v(e(t.decryptPGPKey.name,w)),Error(`[Push SDK] - API - Error - API ${t.decryptPGPKey.name} -: ${w}`)}}));t.generateHash=e=>a.SHA256(JSON.stringify(e)).toString(a.enc.Hex);const y=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return m.getRandomValues(e)})),b=e=>e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"");t.hexToBytes=e=>{const t=new Uint8Array(e.length/2);for(let r=0;r{let t="";for(let r=0;rn.__awaiter(void 0,void 0,void 0,(function*(){const r=yield m.subtle.importKey("raw",e,"HKDF",!1,["deriveKey"]);return m.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:t,info:new ArrayBuffer(0)},r,{name:"AES-GCM",length:256},!0,["encrypt","decrypt"])}));t.encryptV2=(e,t,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const n=m.getRandomValues(new Uint8Array(32)),i=m.getRandomValues(new Uint8Array(12)),o=yield v(t,n),a={name:"AES-GCM",iv:i};r&&(a.additionalData=r);const s=yield m.subtle.encrypt(a,o,e);return{ciphertext:b(new Uint8Array(s)),salt:b(n),nonce:b(i)}}));t.decryptV2=(e,r,i)=>n.__awaiter(void 0,void 0,void 0,(function*(){const n=yield v(r,(0,t.hexToBytes)(e.salt)),o={name:"AES-GCM",iv:(0,t.hexToBytes)(e.nonce)};i&&(o.additionalData=i);const a=yield m.subtle.decrypt(o,n,(0,t.hexToBytes)(e.ciphertext));return new Uint8Array(a)}));t.encryptPGPKey=(e,r,i,a)=>n.__awaiter(void 0,void 0,void 0,(function*(){var n,u,l;let d;switch(e){case c.default.ENC_TYPE_V1:{let a;a=(null===(n=null==i?void 0:i.signer)||void 0===n?void 0:n.privateKey)?(0,o.getEncryptionPublicKey)(null===(u=null==i?void 0:i.signer)||void 0===u?void 0:u.privateKey.substring(2)):yield(0,t.getPublicKey)(i),d=(0,t.encryptV1)(r,a,e);break}case c.default.ENC_TYPE_V2:{const e=b(yield y(new Uint8Array(32))),n="Enable Push Chat Profile \n"+e,{verificationProof:o}=yield(0,s.getEip712Signature)(i,n,!0),a=(new TextEncoder).encode(r);d=yield(0,t.encryptV2)(a,(0,t.hexToBytes)(o||"")),d.version=c.default.ENC_TYPE_V2,d.preKey=e;break}case c.default.ENC_TYPE_V3:{const e=b(yield y(new Uint8Array(32))),n="Enable Push Profile \n"+e,{verificationProof:o}=yield(0,s.getEip191Signature)(i,n),a=(new TextEncoder).encode(r);d=yield(0,t.encryptV2)(a,(0,t.hexToBytes)(o||"")),d.version=c.default.ENC_TYPE_V3,d.preKey=e;break}case c.default.ENC_TYPE_V4:{if(!(null===(l=null==a?void 0:a.NFTPGP_V1)||void 0===l?void 0:l.password))throw new Error("Password is required!");const e=(new TextEncoder).encode(r);d=yield(0,t.encryptV2)(e,(0,t.hexToBytes)((0,t.stringToHex)(a.NFTPGP_V1.password))),d.version=c.default.ENC_TYPE_V4,d.preKey="";break}default:throw new Error("Invalid Encryption Type")}return d}));t.preparePGPPublicKey=(e,t,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){let r;switch(e){case c.default.ENC_TYPE_V1:r=t;break;case c.default.ENC_TYPE_V2:case c.default.ENC_TYPE_V3:case c.default.ENC_TYPE_V4:{const e="DEPRECATED";r=JSON.stringify({key:t,signature:e});break}default:throw new Error("Invalid Encryption Type")}return r}));t.verifyProfileKeys=(e,r,i,o,a)=>n.__awaiter(void 0,void 0,void 0,(function*(){let n;try{if(n=JSON.parse(r).key,void 0===n)throw new Error("Invalid Public Key")}catch(s){n=r}try{if(r&&r.length>0&&a&&"eip191v2"===a.split(":")[0]){const s={caip10:o,did:i,publicKey:r,encryptedPrivateKey:e};if((0,u.isValidNFTCAIP)(i)){const t="owner",r=JSON.parse(e);t in r&&delete r[t],s.encryptedPrivateKey=JSON.stringify(r)}const c=(0,t.generateHash)(s);if(yield(0,l.verifyProfileSignature)(a,c,(0,u.isValidNFTCAIP)(i)?(0,u.pCAIP10ToWallet)(JSON.parse(e).owner):(0,u.pCAIP10ToWallet)(i)))return n;throw new Error("Invalid Signature")}return n}catch(s){return console.warn(`Cannot Verify keys for DID : ${i} !!!`),n}}));t.validatePssword=e=>{if(e.length<8)throw new Error("Password must be at least 8 characters long!");if(!/[A-Z]/.test(e))throw new Error("Password must contain at least one uppercase letter!");if(!/[a-z]/.test(e))throw new Error("Password must contain at least one lowercase letter!");if(!/\d/.test(e))throw new Error("Password must contain at least one digit!");if(!/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(e))throw new Error("Password must contain at least one special character!")}},795924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(331635);n.__exportStar(r(859848),t),n.__exportStar(r(527596),t),n.__exportStar(r(565944),t),n.__exportStar(r(449203),t),n.__exportStar(r(960380),t)},960380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Signer=void 0;const n=r(331635);t.Signer=class{constructor(e){this.signer=e}isViemSigner(e){return"function"==typeof e.signTypedData&&"function"==typeof e.getChainId&&1===e.signMessage.length&&1===e.signTypedData.length}signMessage(e){return n.__awaiter(this,void 0,void 0,(function*(){if("signMessage"in this.signer&&"function"==typeof this.signer.signMessage)return this.isViemSigner(this.signer)?this.signer.signMessage({message:e,account:this.signer.account}):this.signer.signMessage(e);throw new Error("Signer does not support signMessage")}))}signTypedData(e,t,r,i){return n.__awaiter(this,void 0,void 0,(function*(){if(this.isViemSigner(this.signer))return this.signer.signTypedData({domain:e,types:t,primaryType:i,message:r,account:this.signer.account});if("_signTypedData"in this.signer)return this.signer._signTypedData(e,t,r);if("signTypedData"in this.signer)return this.signer.signTypedData(e,t,r);throw new Error("Signer does not support signTypedData")}))}getAddress(){var e;return n.__awaiter(this,void 0,void 0,(function*(){return this.isViemSigner(this.signer)?null!==(e=this.signer.account.address)&&void 0!==e?e:"":yield this.signer.getAddress()}))}getChainId(){return n.__awaiter(this,void 0,void 0,(function*(){if(this.isViemSigner(this.signer))return this.signer.getChainId();if("provider"in this.signer&&this.signer.provider){const e=yield this.signer.provider.getNetwork();return Number(e.chainId)}return 1}))}}},971898:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.video=t.space=t.chat=t.payloads=t.utils=t.user=t.channels=t.alias=t.PushAPI=t.CONSTANTS=void 0;const n=r(331635),i=r(809317);t.alias=i;const o=r(918559);t.channels=o;const a=r(75232);t.user=a;const s=r(710644);t.utils=s;const c=r(446392);t.payloads=c;const u=r(585101);t.chat=u;const l=r(200635);t.space=l;const d=r(574338);t.video=d;const f=r(191227);t.CONSTANTS=f.default,n.__exportStar(r(899024),t),n.__exportStar(r(146180),t),n.__exportStar(r(416062),t),n.__exportStar(r(701728),t);var h=r(435669);Object.defineProperty(t,"PushAPI",{enumerable:!0,get:function(){return h.PushAPI}})},773773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIDEO_NOTIFICATION_ACCESS_TYPE=t.DEFAULT_DOMAIN=t.SPACE_ROLES=t.SPACE_INVITE_ROLES=t.SPACE_DISCONNECT_TYPE=t.SPACE_ACCEPT_REQUEST_TYPE=t.SPACE_REQUEST_TYPE=t.VIDEO_CALL_TYPE=t.ADDITIONAL_META_TYPE=t.NOTIFICATION_TYPE=t.IDENTITY_TYPE=t.SUPPORTED_CHAINS=t.SOURCE_TYPES=t.CHAIN_ID_TO_SOURCE=void 0,t.CHAIN_ID_TO_SOURCE={1:"ETH_MAINNET",11155111:"ETH_TEST_SEPOLIA",137:"POLYGON_MAINNET",80002:"POLYGON_TEST_AMOY",56:"BSC_MAINNET",97:"BSC_TESTNET",10:"OPTIMISM_MAINNET",11155420:"OPTIMISM_TESTNET",2442:"POLYGON_ZK_EVM_TESTNET",1101:"POLYGON_ZK_EVM_MAINNET",421614:"ARBITRUM_TESTNET",42161:"ARBITRUMONE_MAINNET",122:"FUSE_MAINNET",123:"FUSE_TESTNET",80085:"BERACHAIN_TESTNET",7560:"CYBER_CONNECT_MAINNET",111557560:"CYBER_CONNECT_TESTNET"},t.SOURCE_TYPES={ETH_MAINNET:"ETH_MAINNET",ETH_TEST_SEPOLIA:"ETH_TEST_SEPOLIA",POLYGON_MAINNET:"POLYGON_MAINNET",POLYGON_TEST_AMOY:"POLYGON_TEST_AMOY",BSC_MAINNET:"BSC_MAINNET",BSC_TESTNET:"BSC_TESTNET",OPTIMISM_MAINNET:"OPTIMISM_MAINNET",OPTIMISM_TESTNET:"OPTIMISM_TESTNET",POLYGON_ZK_EVM_TESTNET:"POLYGON_ZK_EVM_TESTNET",POLYGON_ZK_EVM_MAINNET:"POLYGON_ZK_EVM_MAINNET",ARBITRUM_TESTNET:"ARBITRUM_TESTNET",ARBITRUMONE_MAINNET:"ARBITRUMONE_MAINNET",FUSE_TESTNET:"FUSE_TESTNET",FUSE_MAINNET:"FUSE_MAINNET",BERACHAIN_TESTNET:"BERACHAIN_TESTNET",THE_GRAPH:"THE_GRAPH",PUSH_VIDEO:"PUSH_VIDEO",SIMULATE:"SIMULATE",CYBER_CONNECT_TESTNET:"CYBER_CONNECT_TESTNET",CYBER_CONNECT_MAINNET:"CYBER_CONNECT_MAINNET"},t.SUPPORTED_CHAINS=[1,11155111,42,137,80002,56,97,10,11155420,2442,1101,421614,42161,122,123,80085,111557560,7560],function(e){e[e.MINIMAL=0]="MINIMAL",e[e.IPFS=1]="IPFS",e[e.DIRECT_PAYLOAD=2]="DIRECT_PAYLOAD",e[e.SUBGRAPH=3]="SUBGRAPH"}(t.IDENTITY_TYPE||(t.IDENTITY_TYPE={})),function(e){e[e.BROADCAST=1]="BROADCAST",e[e.TARGETTED=3]="TARGETTED",e[e.SUBSET=4]="SUBSET"}(t.NOTIFICATION_TYPE||(t.NOTIFICATION_TYPE={})),function(e){e[e.CUSTOM=0]="CUSTOM",e[e.PUSH_VIDEO=1]="PUSH_VIDEO",e[e.PUSH_SPACE=2]="PUSH_SPACE"}(t.ADDITIONAL_META_TYPE||(t.ADDITIONAL_META_TYPE={})),function(e){e[e.PUSH_VIDEO=1]="PUSH_VIDEO",e[e.PUSH_SPACE=2]="PUSH_SPACE"}(t.VIDEO_CALL_TYPE||(t.VIDEO_CALL_TYPE={})),function(e){e[e.JOIN_SPEAKER=0]="JOIN_SPEAKER",e[e.ESTABLISH_MESH=1]="ESTABLISH_MESH",e[e.INVITE_TO_PROMOTE=2]="INVITE_TO_PROMOTE",e[e.REQUEST_TO_PROMOTE=3]="REQUEST_TO_PROMOTE"}(t.SPACE_REQUEST_TYPE||(t.SPACE_REQUEST_TYPE={})),function(e){e[e.ACCEPT_JOIN_SPEAKER=0]="ACCEPT_JOIN_SPEAKER",e[e.ACCEPT_INVITE=1]="ACCEPT_INVITE",e[e.ACCEPT_PROMOTION=2]="ACCEPT_PROMOTION"}(t.SPACE_ACCEPT_REQUEST_TYPE||(t.SPACE_ACCEPT_REQUEST_TYPE={})),function(e){e[e.STOP=0]="STOP",e[e.LEAVE=1]="LEAVE"}(t.SPACE_DISCONNECT_TYPE||(t.SPACE_DISCONNECT_TYPE={})),function(e){e[e.CO_HOST=0]="CO_HOST",e[e.SPEAKER=1]="SPEAKER"}(t.SPACE_INVITE_ROLES||(t.SPACE_INVITE_ROLES={})),function(e){e[e.HOST=0]="HOST",e[e.CO_HOST=1]="CO_HOST",e[e.SPEAKER=2]="SPEAKER",e[e.LISTENER=3]="LISTENER"}(t.SPACE_ROLES||(t.SPACE_ROLES={})),t.DEFAULT_DOMAIN="push.org",function(e){e.PUSH_CHAT="PUSH_CHAT"}(t.VIDEO_NOTIFICATION_ACCESS_TYPE||(t.VIDEO_NOTIFICATION_ACCESS_TYPE={}))},553125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCAIPFormat=t.getSource=t.getPayloadIdentity=t.getVerificationProof=t.getRecipientFieldForAPIPayload=t.getRecipients=t.getPayloadForAPIInput=t.getUUID=void 0;const n=r(331635),i=r(122831),o=r(795924),a=r(921396),s=r(773773),c=r(813951);t.getUUID=function(){return(0,i.v4)()},t.getPayloadForAPIInput=function(e,t){var r,n,i,o,a,s,c,u,l,d,f,h,p,g,m,y,b,v,w,A,C;return(null==e?void 0:e.notification)&&(null==e?void 0:e.payload)?{notification:{title:null===(r=null==e?void 0:e.notification)||void 0===r?void 0:r.title,body:null===(n=null==e?void 0:e.notification)||void 0===n?void 0:n.body},data:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({acta:(null===(i=null==e?void 0:e.payload)||void 0===i?void 0:i.cta)||"",aimg:(null===(o=null==e?void 0:e.payload)||void 0===o?void 0:o.img)||"",amsg:(null===(a=null==e?void 0:e.payload)||void 0===a?void 0:a.body)||"",asub:(null===(s=null==e?void 0:e.payload)||void 0===s?void 0:s.title)||"",type:(null===(c=null==e?void 0:e.type)||void 0===c?void 0:c.toString())||""},(null==e?void 0:e.expiry)&&{etime:null==e?void 0:e.expiry}),(null===(u=null==e?void 0:e.payload)||void 0===u?void 0:u.etime)&&{etime:null===(l=null==e?void 0:e.payload)||void 0===l?void 0:l.etime}),(null==e?void 0:e.hidden)&&{hidden:null==e?void 0:e.hidden}),(null===(d=null==e?void 0:e.payload)||void 0===d?void 0:d.hidden)&&{hidden:null===(f=null==e?void 0:e.payload)||void 0===f?void 0:f.hidden}),(null===(h=null==e?void 0:e.payload)||void 0===h?void 0:h.silent)&&{silent:null===(p=null==e?void 0:e.payload)||void 0===p?void 0:p.silent}),(null===(g=null==e?void 0:e.payload)||void 0===g?void 0:g.sectype)&&{sectype:null===(m=null==e?void 0:e.payload)||void 0===m?void 0:m.sectype}),(null===(y=null==e?void 0:e.payload)||void 0===y?void 0:y.metadata)&&{metadata:null===(b=null==e?void 0:e.payload)||void 0===b?void 0:b.metadata}),(null===(v=null==e?void 0:e.payload)||void 0===v?void 0:v.additionalMeta)&&{additionalMeta:null===(w=null==e?void 0:e.payload)||void 0===w?void 0:w.additionalMeta}),(null===(A=null==e?void 0:e.payload)||void 0===A?void 0:A.index)&&{index:null===(C=null==e?void 0:e.payload)||void 0===C?void 0:C.index}),recipients:t}:null},t.getRecipients=function({env:e,notificationType:t,channel:r,recipients:i,secretType:a}){return n.__awaiter(this,void 0,void 0,(function*(){let c="";if(a){let r="";if(t===s.NOTIFICATION_TYPE.TARGETTED){if("string"==typeof i)return c=yield(0,o.getCAIPAddress)(e,i,"Recipient"),r="",{[c]:r}}else if(t===s.NOTIFICATION_TYPE.SUBSET&&Array.isArray(i)){return i.reduce(((t,i)=>n.__awaiter(this,void 0,void 0,(function*(){return c=yield(0,o.getCAIPAddress)(e,i,"Recipient"),r="",Object.assign(Object.assign({},t),{[c]:r})}))),{})}}else{if(t===s.NOTIFICATION_TYPE.BROADCAST)return yield(0,o.getCAIPAddress)(e,r,"Recipient");if(t===s.NOTIFICATION_TYPE.TARGETTED){if("string"==typeof i)return yield(0,o.getCAIPAddress)(e,i,"Recipient")}else if(t===s.NOTIFICATION_TYPE.SUBSET&&Array.isArray(i)&&Array.isArray(i)){const t={};return i.map((r=>n.__awaiter(this,void 0,void 0,(function*(){c=yield(0,o.getCAIPAddress)(e,r,"Recipient"),t[c]=null})))),t}}return i}))},t.getRecipientFieldForAPIPayload=function({env:e,notificationType:t,recipients:r,channel:i}){return n.__awaiter(this,void 0,void 0,(function*(){return t===s.NOTIFICATION_TYPE.TARGETTED&&"string"==typeof r?yield(0,o.getCAIPAddress)(e,r,"Recipient"):yield(0,o.getCAIPAddress)(e,i,"Recipient")}))},t.getVerificationProof=function({senderType:e,signer:t,chainId:r,notificationType:i,identityType:u,verifyingContract:l,payload:d,ipfsHash:f,graph:h={},uuid:p,chatId:g,wallet:m,pgpPrivateKey:y,env:b,rules:v}){return n.__awaiter(this,void 0,void 0,(function*(){let n=null,m=null;switch(u){case s.IDENTITY_TYPE.MINIMAL:n={data:`${u}+${i}+${d.notification.title}+${d.notification.body}`};break;case s.IDENTITY_TYPE.IPFS:n={data:`1+${f}`};break;case s.IDENTITY_TYPE.DIRECT_PAYLOAD:n={data:`2+${JSON.stringify(d)}`};break;case s.IDENTITY_TYPE.SUBGRAPH:n={data:`3+graph:${null==h?void 0:h.id}+${null==h?void 0:h.counter}`};break;default:throw new Error("Invalid IdentityType")}switch(e){case 0:{const e={Data:[{name:"data",type:"string"}]},i={name:"EPNS COMM V1",chainId:r,verifyingContract:l},a=new o.Signer(t);m=`eip712v2:${yield a.signTypedData(i,e,n,"Data")}::uid::${p}`;break}case 1:{const e=a.SHA256(JSON.stringify(n)).toString();m=`pgpv2:${yield(0,c.sign)({message:e,signingKey:y})}:meta:${g}::uid::${p}`;break}default:throw new Error("Invalid SenderType")}return m}))},t.getPayloadIdentity=function({identityType:e,payload:t,notificationType:r,ipfsHash:n,graph:i={}}){if(e===s.IDENTITY_TYPE.MINIMAL)return`0+${r}+${t.notification.title}+${t.notification.body}`;if(e===s.IDENTITY_TYPE.IPFS)return`1+${n}`;if(e===s.IDENTITY_TYPE.DIRECT_PAYLOAD){return`2+${JSON.stringify(t)}`}return e===s.IDENTITY_TYPE.SUBGRAPH?`3+graph:${null==i?void 0:i.id}+${null==i?void 0:i.counter}`:null},t.getSource=function(e,t,r){return 1===r?s.SOURCE_TYPES.PUSH_VIDEO:t===s.IDENTITY_TYPE.SUBGRAPH?s.SOURCE_TYPES.THE_GRAPH:s.CHAIN_ID_TO_SOURCE[e]},t.getCAIPFormat=function(e,t){return s.SUPPORTED_CHAINS.includes(e)?`eip155:${e}:${t}`:t}},446392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SPACE_DISCONNECT_TYPE=t.SPACE_ACCEPT_REQUEST_TYPE=t.SPACE_REQUEST_TYPE=t.ADDITIONAL_META_TYPE=t.IDENTITY_TYPE=t.NOTIFICATION_TYPE=void 0;r(331635).__exportStar(r(672770),t);var n=r(773773);Object.defineProperty(t,"NOTIFICATION_TYPE",{enumerable:!0,get:function(){return n.NOTIFICATION_TYPE}}),Object.defineProperty(t,"IDENTITY_TYPE",{enumerable:!0,get:function(){return n.IDENTITY_TYPE}}),Object.defineProperty(t,"ADDITIONAL_META_TYPE",{enumerable:!0,get:function(){return n.ADDITIONAL_META_TYPE}}),Object.defineProperty(t,"SPACE_REQUEST_TYPE",{enumerable:!0,get:function(){return n.SPACE_REQUEST_TYPE}}),Object.defineProperty(t,"SPACE_ACCEPT_REQUEST_TYPE",{enumerable:!0,get:function(){return n.SPACE_ACCEPT_REQUEST_TYPE}}),Object.defineProperty(t,"SPACE_DISCONNECT_TYPE",{enumerable:!0,get:function(){return n.SPACE_DISCONNECT_TYPE}})},672770:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendNotification=void 0;const n=r(331635),i=r(553125),o=r(795924),a=r(773773),s=r(397067),c=r(441786);t.sendNotification=function(e){var t;return n.__awaiter(this,void 0,void 0,(function*(){try{const{senderType:r=0,signer:u,type:l,identityType:d,payload:f,recipients:h,channel:p,graph:g,ipfsHash:m,env:y=s.ENV.PROD,chatId:b,rules:v,pgpPrivateKey:w,channelFound:A=!0}=e||{};!function(e){var t,r;if(!(null==e?void 0:e.channel))throw'[Push SDK] - Error - sendNotification() - "channel" is mandatory!';if(!(0,o.isValidPushCAIP)(e.channel))throw'[Push SDK] - Error - sendNotification() - "channel" is invalid!';if(0===e.senderType&&void 0===e.signer)throw'[Push SDK] - Error - sendNotification() - "signer" is mandatory!';if(1===e.senderType&&void 0===e.pgpPrivateKey)throw'[Push SDK] - Error - sendNotification() - "pgpPrivateKey" is mandatory!';if((null==e?void 0:e.identityType)===a.IDENTITY_TYPE.DIRECT_PAYLOAD||(null==e?void 0:e.identityType)===a.IDENTITY_TYPE.MINIMAL){if(!e.notification)throw'[Push SDK] - Error - sendNotification() - "notification" mandatory for Identity Type: Direct Payload, Minimal!';if(!e.payload)throw'[Push SDK] - Error - sendNotification() - "payload" mandatory for Identity Type: Direct Payload, Minimal!'}const n=null===(t=e.payload)||void 0===t?void 0:t.additionalMeta,i="object"==typeof(null===(r=e.payload)||void 0===r?void 0:r.additionalMeta)&&(e.payload.additionalMeta.type===`${a.VIDEO_CALL_TYPE.PUSH_VIDEO}+1`||e.payload.additionalMeta.type===`${a.VIDEO_CALL_TYPE.PUSH_SPACE}+1`);if(n&&i&&!e.chatId&&!e.rules)throw new Error("[Push SDK] - Error - sendNotification() - Either chatId or rules object is required to send a additional meta notification for video or spaces")}(e),f&&f.additionalMeta&&"object"==typeof f.additionalMeta&&!f.additionalMeta.domain&&(f.additionalMeta.domain=a.DEFAULT_DOMAIN);const C=yield(0,o.getCAIPAddress)(y,p,"Channel"),E=(0,o.getCAIPDetails)(C);if(!E)throw Error("Invalid Channel CAIP!");const x=(0,i.getUUID)(),S=parseInt(E.networkId,10),I=(0,o.getAPIBaseUrls)(y);let k="";if(0===r){const{EPNS_COMMUNICATOR_CONTRACT:e}=(0,o.getConfig)(y,E);k=e}const _=yield(0,i.getRecipients)({env:y,notificationType:l,channel:C,recipients:h,secretType:null==f?void 0:f.sectype}),T=(0,i.getPayloadForAPIInput)(e,_),M=yield(0,i.getVerificationProof)({senderType:r,signer:u,chainId:S,identityType:d,notificationType:l,verifyingContract:k,payload:T,graph:g,ipfsHash:m,uuid:x,chatId:null!==(t=null==v?void 0:v.access.data.chatId)&&void 0!==t?t:b,pgpPrivateKey:w}),P=(0,i.getPayloadIdentity)({identityType:d,payload:T,notificationType:l,graph:g,ipfsHash:m}),j=(yield function(e){return n.__awaiter(this,void 0,void 0,(function*(){try{const{channelFound:t,channelorAlias:r,recipient:n,type:i,env:o,senderType:s}=e||{};return 1!==s&&!t&&(r==("string"==typeof n&&3==(null==n?void 0:n.split(":").length)?n.split(":")[2]:n)&&i==a.NOTIFICATION_TYPE.TARGETTED)}catch(t){return!0}}))}({channelFound:A,channelorAlias:e.channel,recipient:e.recipients,type:e.type,env:e.env,senderType:e.senderType}))?a.SOURCE_TYPES.SIMULATE:(0,i.getSource)(S,d,r),D=Object.assign({verificationProof:M,identity:P,sender:1!==r||(0,o.isValidNFTCAIP)(C)?C:`${null==E?void 0:E.blockchain}:${null==E?void 0:E.address}`,source:j,recipient:yield(0,i.getRecipientFieldForAPIPayload)({env:y,notificationType:l,recipients:h||"",channel:C})},v||b?{rules:null!=v?v:{access:{data:{chatId:b},type:a.VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT}}}:{}),O=`${I}/v1/payloads/`;return yield(0,c.axiosPost)(O,D,{headers:{"Content-Type":"application/json"}})}catch(r){throw console.error("[Push SDK] - Error - sendNotification() - ",JSON.stringify(r)),r}}))}},552096:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={"PUSH-CREATE-01":{progressId:"PUSH-CREATE-01",progressTitle:"Generating Secure Profile Signature",progressInfo:"This step is only done for first time users and might take a few seconds. PGP keys are getting generated to provide you with secure yet seamless web3 communication",level:"INFO"},"PUSH-CREATE-02":{progressId:"PUSH-CREATE-02",progressTitle:"Signing Generated Profile",progressInfo:"This step is only done for first time users. Please sign the message to continue.",level:"INFO"},"PUSH-CREATE-03":{progressId:"PUSH-CREATE-03",progressTitle:"Encrypting Generated Profile",progressInfo:"Encrypting your keys. Please sign the message to continue.",level:"INFO"},"PUSH-CREATE-04":{progressId:"PUSH-CREATE-04",progressTitle:"Syncing Generated Profile",progressInfo:"Please sign the message to continue. Great job! You are almost fully onboarded to Push Protocol!",level:"INFO"},"PUSH-CREATE-05":{progressId:"PUSH-CREATE-05",progressTitle:"Setup Complete",progressInfo:"",level:"SUCCESS"},"PUSH-UPGRADE-01":{progressId:"PUSH-UPGRADE-01",progressTitle:"Generating New Profile Signature",progressInfo:"Trying to Upgrade Push Keys to latest version. Please sign the message to continue.",level:"INFO"},"PUSH-UPGRADE-02":{progressId:"PUSH-UPGRADE-02",progressTitle:"Decrypting Old Profile",progressInfo:"Trying to Upgrade Push Keys to latest version. Please sign the message to continue.",level:"INFO"},"PUSH-UPGRADE-03":{progressId:"PUSH-UPGRADE-03",progressTitle:"Generating Encrypted New Profile",progressInfo:"Trying to Upgrade Push Keys to latest version. Encrypting Push Keys with latest version. Please sign the message to continue.",level:"INFO"},"PUSH-UPGRADE-04":{progressId:"PUSH-UPGRADE-04",progressTitle:"Syncing New Profile",progressInfo:"Please sign the message to continue. Upgraded keys are almost ready!",level:"INFO"},"PUSH-UPGRADE-05":{progressId:"PUSH-UPGRADE-05",progressTitle:"Upgrade Completed, Welcome to Push Protocol",progressInfo:"",level:"SUCCESS"},"PUSH-DECRYPT-01":{progressId:"PUSH-DECRYPT-01",progressTitle:"Decrypting Profile",progressInfo:"Please sign the transaction to decrypt profile",level:"INFO"},"PUSH-DECRYPT-02":{progressId:"PUSH-DECRYPT-02",progressTitle:"Push Profile Unlocked",progressInfo:"Unlocking push profile",level:"SUCCESS"},"PUSH-AUTH-UPDATE-01":e=>({progressId:"PUSH-AUTH-UPDATE-01",progressTitle:"Generating New Profile Signature",progressInfo:`Trying to Update Push Keys to ${e} version. Please sign the message to continue.`,level:"INFO"}),"PUSH-AUTH-UPDATE-02":e=>({progressId:"PUSH-AUTH-UPDATE-02",progressTitle:"Generating New Encrypted Profile",progressInfo:`Encrypting Push Keys with ${e} version. Please sign the message to continue.`,level:"INFO"}),"PUSH-AUTH-UPDATE-03":{progressId:"PUSH-AUTH-UPDATE-03",progressTitle:"Syncing Updated Profile",progressInfo:"Please sign the message to continue. Updated keys are almost ready!",level:"INFO"},"PUSH-AUTH-UPDATE-04":{progressId:"PUSH-AUTH-UPDATE-04",progressTitle:"Update Completed, Welcome to Push Protocol",progressInfo:"",level:"SUCCESS"},"PUSH-AUTH-UPDATE-05":{progressId:"PUSH-AUTH-UPDATE-05",progressTitle:"Generating New Profile Signature",progressInfo:"Trying to Update Push Profile creds. Please sign the message to continue.",level:"INFO"},"PUSH-AUTH-UPDATE-06":{progressId:"PUSH-AUTH-UPDATE-06",progressTitle:"Generating New Profile Signature",progressInfo:"Encrypting Push Keys with new creds. Please sign the message to continue.",level:"INFO"},"PUSH-DECRYPT-AUTH-01":{progressId:"PUSH-DECRYPT-AUTH-01",progressTitle:"Decrypting Profile Creds",progressInfo:"Please sign the transaction to decrypt profile creds",level:"INFO"},"PUSH-DECRYPT-AUTH-02":{progressId:"PUSH-DECRYPT-AUTH-02",progressTitle:"Push Profile Creds Unlocked",progressInfo:"Unlocking push profile creds",level:"SUCCESS"},"PUSH-PROFILE-UPDATE-01":{progressId:"PUSH-PROFILE-UPDATE-01",progressTitle:"Syncing Updated Profile",progressInfo:"Steady lads, your profile is getting a new look!",level:"INFO"},"PUSH-PROFILE-UPDATE-02":{progressId:"PUSH-PROFILE-UPDATE-02",progressTitle:"Profile Update Completed, Welcome to Push Protocol",progressInfo:"",level:"SUCCESS"},"PUSH-CHANNEL-CREATE-01":{progressId:"PUSH-CHANNEL-CREATE-01",progressTitle:"Uploading data to IPFS",progressInfo:"The channel\u2019s data is getting uploaded to IPFS",level:"INFO"},"PUSH-CHANNEL-CREATE-02":{progressId:"PUSH-CHANNEL-CREATE-02",progressTitle:"Approving PUSH tokens",progressInfo:"Gives approval to Push Core contract to spend 50 DAI",level:"INFO"},"PUSH-CHANNEL-CREATE-03":{progressId:"PUSH-CHANNEL-CREATE-03",progressTitle:"Channel is getting created",progressInfo:"Calls Push Core contract to create your channel",level:"INFO"},"PUSH-CHANNEL-CREATE-04":{progressId:"PUSH-CHANNEL-CREATE-04",progressTitle:"Channel creation is done, Welcome to Push Ecosystem",progressInfo:"Channel creation is completed",level:"SUCCESS"},"PUSH-CHANNEL-UPDATE-01":{progressId:"PUSH-CHANNEL-UPDATE-01",progressTitle:"Uploading new data to IPFS",progressInfo:"The channel\u2019s new data is getting uploaded to IPFS",level:"INFO"},"PUSH-CHANNEL-UPDATE-02":{progressId:"PUSH-CHANNEL-UPDATE-02",progressTitle:"Approving PUSH tokens",progressInfo:"Gives approval to Push Core contract to spend 50 DAI",level:"INFO"},"PUSH-CHANNEL-UPDATE-03":{progressId:"PUSH-CHANNEL-UPDATE-03",progressTitle:"Channel is getting updated",progressInfo:"Calls Push Core contract to update your channel details",level:"INFO"},"PUSH-CHANNEL-UPDATE-04":{progressId:"PUSH-CHANNEL-UPDATE-04",progressTitle:"Channel is updated with new data",progressInfo:"Channel is successfully updated",level:"SUCCESS"},"PUSH-ERROR-00":(e,t)=>({progressId:"PUSH-ERROR-00",progressTitle:"Non Specific Error",progressInfo:`[Push SDK] - API - Error - API ${e}() -: ${t}`,level:"ERROR"}),"PUSH-ERROR-01":e=>({progressId:"PUSH-ERROR-01",progressTitle:"Upgrade Profile Failed",progressInfo:`[Push SDK] - API - Error - API decryptPgpKey() -: ${e}`,level:"WARN"}),"PUSH-ERROR-02":(e,t)=>({progressId:"PUSH-ERROR-02",progressTitle:"Transaction failed",progressInfo:`[Push SDK] - Contract - Error - ${e} -: ${t}`,level:"ERROR"})};t.default=r},146180:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelListOrderType=t.ChannelListSortType=t.ChannelListType=t.FeedType=void 0,function(e){e.INBOX="INBOX",e.SPAM="SPAM"}(t.FeedType||(t.FeedType={})),function(e){e.ALL="all",e.VERIFIED="verified",e.UNVERIFIED="unverified"}(t.ChannelListType||(t.ChannelListType={})),function(e){e.SUBSCRIBER="subscribers"}(t.ChannelListSortType||(t.ChannelListSortType={})),function(e){e.ASCENDING="asc",e.DESCENDING="desc"}(t.ChannelListOrderType||(t.ChannelListOrderType={}))},977036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;const n=r(331635),i=r(746290),o=i,a=r(809317),s=r(587096);class c extends s.PushNotificationBaseClass{constructor(e,t,r){super(e,t,r),this.info=e=>n.__awaiter(this,void 0,void 0,(function*(){try{return yield a.getAliasInfo(Object.assign(Object.assign({},e),{env:this.env}))}catch(t){throw new Error(`Push SDK Error: API : alias::info : ${t}`)}})),this.initiate=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){try{this.checkSignerObjectExists();const r=`eip155:${yield this.getChainId(this.signer)}`;if(!i.default[this.env][r]||!o.VIEM_CONFIG[this.env][r])throw new Error("Unsupported Chainid");const n=i.default[this.env][r].EPNS_COMMUNICATOR_CONTRACT,a=this.createContractInstance(n,o.ABIS.COMM,o.VIEM_CONFIG[this.env][r].NETWORK),s=yield this.initiateAddAlias(a,e);let c={tx:s};return(null==t?void 0:t.raw)&&(c=Object.assign(Object.assign({},c),{raw:{initiateVerificationProof:s}})),c}catch(r){throw new Error(`Push SDK Error: Contract : alias::add : ${r}`)}})),this.verify=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){try{this.checkSignerObjectExists();const r=`eip155:${yield this.getChainId(this.signer)}`;if(!i.default[this.env][r]||!o.VIEM_CONFIG[this.env][r])throw new Error("Unsupported Chainid");const n=i.default[this.env][r].EPNS_COMMUNICATOR_CONTRACT,a=this.createContractInstance(n,o.ABIS.COMM,o.VIEM_CONFIG[this.env][r].NETWORK),{verifyAliasRes:s,channelInfo:c}=yield this.verifyAlias(a,e);let u={tx:s};return(null==t?void 0:t.raw)&&(u=Object.assign(Object.assign({},u),{raw:{initiateVerificationProof:c.initiate_verification_proof,verifyVerificationProof:s}})),u}catch(r){throw new Error(`Push SDK Error: Contract : alias::verify : ${r}`)}}))}}t.Alias=c},797547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Channel=void 0;const n=r(331635),i=r(397067),o=r(302576),a=r(918559),s=r(746290),c=r(795924),u=r(446392),l=r(552096),d=r(146180),f=r(977036),h=r(765533),p=r(587096);class g extends p.PushNotificationBaseClass{constructor(e,t,r){super(e,t,r),this.info=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){try{const{raw:r=!0}=t||{};return this.checkUserAddressExists(e),e=null!=e?e:(0,c.getFallbackETHCAIPAddress)(this.env,this.account),yield a.getChannel({channel:e,env:this.env,raw:r})}catch(r){throw new Error(`Push SDK Error: API : channel::info : ${r}`)}})),this.search=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){try{const{page:r=i.default.PAGINATION.INITIAL_PAGE,limit:n=i.default.PAGINATION.LIMIT}=t||{};return yield a.search({query:e,page:r,limit:n,env:this.env})}catch(r){throw new Error(`Push SDK Error: API : channel::search : ${r}`)}})),this.subscribers=e=>n.__awaiter(this,void 0,void 0,(function*(){var t,r;try{let n=(null==e?void 0:e.channel)?e.channel:this.account?(0,c.getFallbackETHCAIPAddress)(this.env,this.account):null;return this.checkUserAddressExists(n),n=(0,c.validateCAIP)(n)?n:(0,c.getFallbackETHCAIPAddress)(this.env,n),e&&e.page?yield a.getSubscribers({channel:n,env:this.env,page:e.page,limit:null!==(t=e.limit)&&void 0!==t?t:10,setting:null!==(r=e.setting)&&void 0!==r&&r,category:e.category,raw:e.raw}):yield a._getSubscribers({channel:n,env:this.env})}catch(n){throw new Error(`Push SDK Error: API : channel::subscribers : ${n}`)}})),this.send=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){var r,n;try{this.checkSignerObjectExists();const i=yield this.getChannelOrAliasInfo(null!==(r=t.channel)&&void 0!==r?r:this.account),o=this.generateNotificationLowLevelPayload({signer:this.signer,env:this.env,recipients:e,options:t,channel:null!==(n=t.channel)&&void 0!==n?n:this.account,channelInfo:i});return yield u.sendNotification(o)}catch(i){throw new Error(`Push SDK Error: API : channel::send : ${i}`)}})),this.create=e=>n.__awaiter(this,void 0,void 0,(function*(){const{name:t,description:r,url:n,icon:i,alias:a=null,progressHook:u}=e||{};try{let d;this.validateChannelParameters(e);const f=yield this.createContractInstance(s.TOKEN[this.env],s.ABIS.TOKEN,s.TOKEN_VIEM_NETWORK_MAP[this.env]),h=yield this.fetchBalance(f,this.account),p=o.parseUnits(s.MIN_TOKEN_BALANCE[this.env].toString(),18);if(p>h)throw new Error("Insufficient PUSH balance");if(a){if(!(0,c.validateCAIP)(a))throw new Error("Invalid alias CAIP");const e=(0,c.getCAIPDetails)(a);d={[`${null==e?void 0:e.blockchain}:${null==e?void 0:e.networkId}`]:null==e?void 0:e.address}}null==u||u(l.default["PUSH-CREATE-01"]);const g={name:t,info:r,url:n,icon:i,aliasDetails:null!=d?d:{}},m=yield this.uploadToIPFSViaPushNode(JSON.stringify(g));if(!((yield this.fetchAllownace(f,this.account,s.CORE_CONFIG[this.env].EPNS_CORE_CONTRACT))>=p)){null==u||u(l.default["PUSH-CREATE-02"]);if(!(yield this.approveToken(f,s.CORE_CONFIG[this.env].EPNS_CORE_CONTRACT,p)))throw new Error("Something went wrong while approving the token")}const y=s.CHANNEL_TYPE.GENERAL,b="1+"+m,v=o.stringToBytes(b);null==u||u(l.default["PUSH-CREATE-03"]);const w=yield this.createChannel(this.coreContract,y,v,p);return null==u||u(l.default["PUSH-CREATE-04"]),{transactionHash:w}}catch(d){const e=l.default["PUSH-ERROR-02"];throw null==u||u(e("Create Channel",d)),new Error(`Push SDK Error: Contract : createChannelWithPUSH : ${d}`)}})),this.update=e=>n.__awaiter(this,void 0,void 0,(function*(){const{name:t,description:r,url:n,icon:i,alias:a=null,progressHook:u}=e||{};try{let d;this.validateChannelParameters(e);const f=yield this.createContractInstance(s.TOKEN[this.env],s.ABIS.TOKEN,s.TOKEN_VIEM_NETWORK_MAP[this.env]),h=yield this.fetchBalance(f,this.account),p=yield this.fetchUpdateCounter(this.coreContract,this.account),g=o.parseUnits(s.MIN_TOKEN_BALANCE[this.env].toString(),18)*p;if(g>h)throw new Error("Insufficient PUSH balance");if(a){if(!(0,c.validateCAIP)(a))throw new Error("Invalid alias CAIP");const e=(0,c.getCAIPDetails)(a);d={[`${null==e?void 0:e.blockchain}:${null==e?void 0:e.networkId}`]:null==e?void 0:e.address}}null==u||u(l.default["PUSH-UPDATE-01"]);const m={name:t,info:r,url:n,icon:i,aliasDetails:null!=d?d:{}},y=yield this.uploadToIPFSViaPushNode(JSON.stringify(m));if(!((yield this.fetchAllownace(f,this.account,s.CORE_CONFIG[this.env].EPNS_CORE_CONTRACT))>=g)){null==u||u(l.default["PUSH-UPDATE-02"]);if(!(yield this.approveToken(f,s.CORE_CONFIG[this.env].EPNS_CORE_CONTRACT,g)))throw new Error("Something went wrong while approving the token")}const b="1+"+y,v=o.stringToBytes(b);null==u||u(l.default["PUSH-UPDATE-03"]);const w=yield this.updateChannel(this.coreContract,this.account,v,g);return null==u||u(l.default["PUSH-UPDATE-04"]),{transactionHash:w}}catch(d){const e=l.default["PUSH-ERROR-02"];throw null==u||u(e("Update Channel",d)),new Error(`Push SDK Error: Contract channel::update : ${d}`)}})),this.verify=e=>n.__awaiter(this,void 0,void 0,(function*(){try{if(this.checkSignerObjectExists(),(0,c.validateCAIP)(e)&&(e=e.split(":")[2]),!o.isAddress(e))throw new Error("Invalid channel address");const t=yield this.info(this.account);if(0==(null==t?void 0:t.verified_status))throw new Error("Only verified channel can verify other channel");const r=yield this.verifyChannel(this.coreContract,e);if(!r)throw new Error("Something went wrong while verifying the channel");return{transactionHash:r}}catch(t){throw new Error(`Push SDK Error: Contract channel::verify : ${t}`)}})),this.setting=e=>n.__awaiter(this,void 0,void 0,(function*(){try{this.checkSignerObjectExists();const t=yield this.createContractInstance(s.TOKEN[this.env],s.ABIS.TOKEN,s.TOKEN_VIEM_NETWORK_MAP[this.env]),r=yield this.fetchBalance(t,this.account),n=o.parseUnits(s.MIN_TOKEN_BALANCE[this.env].toString(),18),i=n*(yield this.fetchUpdateCounter(this.coreContract,this.account));if(i>r)throw new Error("Insufficient PUSH balance");if(!((yield this.fetchAllownace(t,this.account,s.CORE_CONFIG[this.env].EPNS_CORE_CONTRACT))>=i)){if(!(yield this.approveToken(t,s.CORE_CONFIG[this.env].EPNS_CORE_CONTRACT,i)))throw new Error("Something went wrong while approving your token")}const{setting:a,description:c}=this.getMinimalSetting(e);return{transactionHash:yield this.createChanelSettings(this.coreContract,e.length,a,c,n)}}catch(t){throw new Error(`Push SDK Error: Contract : channel::setting : ${t}`)}})),this.notifications=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){try{const{page:r,limit:n,filter:i=null,raw:o=!0}=t||{};return yield a.getChannelNotifications({channel:e,env:this.env,filter:i,raw:o,page:r,limit:n})}catch(r){throw new Error(`Push SDK Error: Contract : channel::notifications : ${r}`)}})),this.list=e=>n.__awaiter(this,void 0,void 0,(function*(){try{const{page:t,limit:r,sort:n=d.ChannelListSortType.SUBSCRIBER,order:i=d.ChannelListOrderType.DESCENDING}=e||{};return yield a.getChannels({env:this.env,page:t,limit:r,sort:n,order:i})}catch(t){throw new Error(`Push SDK Error: Contract : channel::list : ${t}`)}})),this.delegate=new h.Delegate(e,t,r),this.alias=new f.Alias(e,t,r)}}t.Channel=g},765533:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Delegate=void 0;const n=r(331635),i=r(746290),o=i,a=r(918559),s=r(795924),c=r(587096);class u extends c.PushNotificationBaseClass{constructor(e,t,r){super(e,t,r),this.get=e=>n.__awaiter(this,void 0,void 0,(function*(){try{let t=(null==e?void 0:e.channel)?e.channel:this.account?(0,s.getFallbackETHCAIPAddress)(this.env,this.account):null;return this.checkUserAddressExists(t),t=(0,s.validateCAIP)(t)?t:(0,s.getFallbackETHCAIPAddress)(this.env,t),this.checkUserAddressExists(t),yield a.getDelegates({channel:t,env:this.env})}catch(t){throw new Error(`Push SDK Error: API : delegate::get : ${t}`)}})),this.add=e=>n.__awaiter(this,void 0,void 0,(function*(){try{this.checkSignerObjectExists(),(0,s.validateCAIP)(e)&&(e=this.getAddressFromCaip(e));const t=`eip155:${yield this.getChainId(this.signer)}`;if(!i.default[this.env][t]||!o.VIEM_CONFIG[this.env][t])throw new Error("Unsupported Chainid");const r=i.default[this.env][t].EPNS_COMMUNICATOR_CONTRACT,n=this.createContractInstance(r,o.ABIS.COMM,o.VIEM_CONFIG[this.env][t].NETWORK);return{transactionHash:yield this.addDelegator(n,e)}}catch(t){throw new Error(`Push SDK Error: Contract : delegate::add : ${t}`)}})),this.remove=e=>n.__awaiter(this,void 0,void 0,(function*(){try{this.checkSignerObjectExists(),(0,s.validateCAIP)(e)&&(e=this.getAddressFromCaip(e));const t=`eip155:${yield this.getChainId(this.signer)}`;if(!i.default[this.env][t]||!o.VIEM_CONFIG[this.env][t])throw new Error("Unsupported Chainid");const r=i.default[this.env][t].EPNS_COMMUNICATOR_CONTRACT,n=this.createContractInstance(r,o.ABIS.COMM,o.VIEM_CONFIG[this.env][t].NETWORK);return{transactionHash:yield this.removeDelegator(n,e)}}catch(t){throw new Error(`Push SDK Error: Contract : delegate::remove : ${t}`)}}))}}t.Delegate=u},409537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Notification=t.FEED_MAP=void 0;const n=r(331635),i=r(397067),o=r(146180),a=r(75232),s=r(918559),c=r(795924),u=r(587096),l="Channel is needed";t.FEED_MAP={INBOX:!1,SPAM:!0};class d extends u.PushNotificationBaseClass{constructor(e,r,u){super(e,r,u),this.list=(e=o.FeedType.INBOX,r)=>n.__awaiter(this,void 0,void 0,(function*(){const{page:o=i.default.PAGINATION.INITIAL_PAGE,limit:s=i.default.PAGINATION.LIMIT,channels:u=[],raw:l=!1}=r||{};try{let i;(null==r?void 0:r.account)?i=this.isValidPCaip(r.account)?(0,c.pCAIP10ToWallet)(r.account):r.account:this.account&&(i=(0,c.getFallbackETHCAIPAddress)(this.env,this.account)),this.checkUserAddressExists(i);const d=this.getAddressFromCaip(i);if(0==u.length)return yield a.getFeeds({user:d,page:o,limit:s,spam:t.FEED_MAP[e],raw:l,env:this.env});{const r=u.map((r=>n.__awaiter(this,void 0,void 0,(function*(){return yield a.getFeedsPerChannel({user:d,page:o,limit:s,spam:t.FEED_MAP[e],raw:l,env:this.env,channels:[r]})})))),i=yield Promise.all(r);return i.flat()}}catch(d){throw new Error(`Push SDK Error: API : notifcaiton::list : ${d}`)}})),this.subscriptions=e=>n.__awaiter(this,void 0,void 0,(function*(){try{const{page:t=i.default.PAGINATION.INITIAL_PAGE,limit:r=i.default.PAGINATION.LIMIT,channel:n=null,raw:o}=e||{};let s;return(null==e?void 0:e.account)?s=this.isValidPCaip(e.account)?(0,c.pCAIP10ToWallet)(e.account):e.account:this.account&&(s=(0,c.getFallbackETHCAIPAddress)(this.env,this.account)),this.checkUserAddressExists(s),yield a.getSubscriptions({user:s,env:this.env,channel:n,raw:o})}catch(t){throw new Error(`Push SDK Error: API : notifcaiton::subscriptions : ${t}`)}})),this.subscribe=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){try{const{onSuccess:r,onError:n,settings:i}=t||{};if(this.checkSignerObjectExists(),this.checkUserAddressExists(),!e&&""!=e)throw new Error(l);this.isValidPCaip(e)&&(e=(0,c.pCAIP10ToWallet)(e)),(0,c.validateCAIP)(e)||(e=(0,c.getFallbackETHCAIPAddress)(this.env,e));const o=(0,c.getCAIPDetails)(e),a=(0,c.getCAIPWithChainId)(this.account,parseInt(null==o?void 0:o.networkId)),u=this.getMinimalUserSetting(i);return yield s.subscribeV2({signer:this.signer,channelAddress:e,userAddress:a,env:this.env,settings:null!=u?u:"",onSuccess:r,onError:n})}catch(r){throw new Error(`Push SDK Error: API : notifcaiton::subscribe : ${r}`)}})),this.unsubscribe=(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){try{const{onSuccess:r,onError:n}=t||{};if(this.checkUserAddressExists(),this.checkSignerObjectExists(),!e&&""!=e)return new Error(l);this.isValidPCaip(e)&&(e=(0,c.pCAIP10ToWallet)(e)),(0,c.validateCAIP)(e)||(e=(0,c.getFallbackETHCAIPAddress)(this.env,e));const i=(0,c.getCAIPDetails)(e),o=(0,c.getCAIPWithChainId)(this.account,parseInt(null==i?void 0:i.networkId));return yield s.unsubscribeV2({signer:this.signer,channelAddress:e,userAddress:o,env:this.env,onSuccess:r,onError:n})}catch(r){throw new Error(`Push SDK Error: API : notifcaiton::unsubscribe : ${r}`)}}))}}t.Notification=d},587096:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PushNotificationBaseClass=t.FEED_MAP=void 0;const n=r(331635),i=r(397067),o=r(746290),a=r(813951),s=r(773773),c=r(802890),u=r(302576),l=r(918559),d=r(795924),f=r(441786),h=r(435669),p=r(302576),g="-",m="+";t.FEED_MAP={INBOX:!1,SPAM:!0};t.PushNotificationBaseClass=class{constructor(e,t,r){this.signer=e,this.env=t,this.guestMode=!(!r||!e),this.account=r,this.initializeCoreContract({signer:this.signer,env:this.env})}initializeCoreContract(e){return n.__awaiter(this,void 0,void 0,(function*(){const{env:t=i.ENV.STAGING,signer:r=null}=e||{};let n,s;if(r){n=yield(0,a.getAccountAddress)({account:null,signer:r});if(new d.Signer(r).isViemSigner(r)){const e=(0,u.createPublicClient)({chain:o.TOKEN_VIEM_NETWORK_MAP[t],transport:(0,u.http)()});s=(0,u.getContract)({abi:o.ABIS.CORE,address:o.CORE_CONFIG[t].EPNS_CORE_CONTRACT,publicClient:e,walletClient:r})}else s=new c.ethers.Contract(o.CORE_CONFIG[t].EPNS_CORE_CONTRACT,o.ABIS.CORE,r)}this.coreContract=s}))}checkUserAddressExists(e){if(!e&&!this.account&&!this.guestMode)throw new Error("Account is required");return!0}checkSignerObjectExists(){if(!this.signer)throw new Error(h.PushAPI.ensureSignerMessage());return!0}getNotificationType(e,t){return 1==e.length?"*"==e[0]?{recipient:t,type:s.NOTIFICATION_TYPE.BROADCAST}:{recipient:e[0],type:s.NOTIFICATION_TYPE.TARGETTED}:{recipient:e,type:s.NOTIFICATION_TYPE.SUBSET}}generateNotificationLowLevelPayload({signer:e,env:t,recipients:r,options:n,channel:i,channelInfo:o}){var a,c,u,l,d,f,h,p,m,y,b,v,w,A,C,E,x,S;i||(i=`${this.account}`);const I=this.getNotificationType(r,i),k=s.IDENTITY_TYPE.DIRECT_PAYLOAD;let _="";const T=o&&o.channel_settings?JSON.parse(o.channel_settings):null,M=!!o;(null===(a=n.payload)||void 0===a?void 0:a.category)&&T&&(2==T[n.payload.category-1].type&&(_=n.payload.category+g+2+g+T[n.payload.category-1].default),1==T[n.payload.category-1].type&&(_=n.payload.category+g+1),3==T[n.payload.category-1].type&&(_=n.payload.category+g+3+g+T[n.payload.category-1].default.lower));return{signer:e,channel:i,type:I.type,identityType:k,notification:n.notification,payload:{title:null!==(u=null===(c=n.payload)||void 0===c?void 0:c.title)&&void 0!==u?u:n.notification.title,body:null!==(d=null===(l=n.payload)||void 0===l?void 0:l.body)&&void 0!==d?d:n.notification.body,cta:null!==(h=null===(f=n.payload)||void 0===f?void 0:f.cta)&&void 0!==h?h:"",img:null!==(m=null===(p=n.payload)||void 0===p?void 0:p.embed)&&void 0!==m?m:"",hidden:null===(y=n.config)||void 0===y?void 0:y.hidden,etime:null===(b=n.config)||void 0===b?void 0:b.expiry,silent:null===(v=n.config)||void 0===v?void 0:v.silent,additionalMeta:null===(w=n.payload)||void 0===w?void 0:w.meta,index:(null===(A=n.payload)||void 0===A?void 0:A.category)?_:""},recipients:I.recipient,graph:null===(C=n.advanced)||void 0===C?void 0:C.graph,ipfsHash:null===(E=n.advanced)||void 0===E?void 0:E.ipfs,env:t,chatId:null===(x=n.advanced)||void 0===x?void 0:x.chatid,pgpPrivateKey:null===(S=n.advanced)||void 0===S?void 0:S.pgpPrivateKey,channelFound:M}}isEmpty(e){return 0==e.trim().length}isValidLength(e,t=125,r=1){return e.length>=r&&e.length<=t}isValidUrl(e){return!!new RegExp("^((?:https|http):\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}verifyEmptyChannelParameters(e){if(this.isEmpty(e.name))throw new Error("Channel name cannot be empty");if(this.isEmpty(e.description))throw new Error("Channel description cannot be empty");if(this.isEmpty(e.icon))throw new Error("Channel icon cannot be empty");if(this.isEmpty(e.url))throw new Error("Channel url cannot ne empty");return!0}validateParameterLength(e){if(this.isValidLength(e.name)){if(this.isValidLength(e.description)){if(this.isValidLength(e.url)&&this.isValidUrl(e.url))return!0;throw new Error("Channel url either excees 125 characters or is not a valid url")}throw new Error("Channel description should not exceed 125 characters")}throw new Error("Channel name should not exceed 125 characters")}validateChannelParameters(e){return this.verifyEmptyChannelParameters(e)&&this.validateParameterLength(e)}createContractInstance(e,t,r){if(!this.signer)throw new Error("Signer is not provided");let n;const i=this.signer?new d.Signer(this.signer):null;if(null==i?void 0:i.isViemSigner(this.signer)){const i=(0,u.createPublicClient)({chain:r,transport:(0,u.http)()});n=(0,u.getContract)({abi:t,address:e,publicClient:i,walletClient:this.signer})}else n=new c.ethers.Contract(e,t,this.signer);return n}fetchBalance(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error("Signer is not provided");let r;const n=new d.Signer(this.signer);try{return r=n.isViemSigner(this.signer)?BigInt(yield e.read.balanceOf({args:[t]})):BigInt(yield e.balanceOf(t)),r}catch(i){throw new Error(JSON.stringify(i))}}))}fetchAllownace(e,t,r){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error("Signer is not provided");const n=new d.Signer(this.signer);let i;try{return i=n.isViemSigner(this.signer)?BigInt(yield e.read.allowance({args:[t,r]})):BigInt(yield e.allowance(t,r)),i}catch(o){throw new Error(JSON.stringify(o))}}))}fetchUpdateCounter(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error("Signer is not provided");let r;const n=new d.Signer(this.signer);try{return r=n.isViemSigner(this.signer)?BigInt(yield e.read.channelUpdateCounter({args:[t]})):BigInt(yield e.channelUpdateCounter(t)),r+BigInt(1)}catch(i){throw new Error(JSON.stringify(i))}}))}approveToken(e,t,r){var i,o;return n.__awaiter(this,void 0,void 0,(function*(){try{if(!this.signer)throw new Error("Signer is not provided");if(new d.Signer(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const n=e.write.approve({args:[t,r]});yield n}else{if(!this.signer||!this.signer.provider)throw new Error("ethers provider/signer is not provided");const n=e.approve(t,r),a=yield n;yield null===(o=null===(i=this.signer)||void 0===i?void 0:i.provider)||void 0===o?void 0:o.waitForTransaction(a.hash)}return!0}catch(n){return console.error(n),!1}}))}createChannel(e,t,r,i){var o,a;return n.__awaiter(this,void 0,void 0,(function*(){let n;try{if(!this.signer)throw new Error("Signer is not provided");if(new d.Signer(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const o=e.write.createChannelWithPUSH({args:[t,(0,u.toHex)(new Uint8Array(r)),i,this.getTimeBound()]});n=yield o}else{const s=e.createChannelWithPUSH(t,r,i,this.getTimeBound(),{gasLimit:1e6}),c=yield s,u=yield null===(a=null===(o=this.signer)||void 0===o?void 0:o.provider)||void 0===a?void 0:a.waitForTransaction(c.hash);if(0==(null==u?void 0:u.status))throw new Error("Something Went wrong while creating your channel");n=c.hash}return n}catch(s){throw new Error(null==s?void 0:s.message)}}))}updateChannel(e,t,r,i){var o,a;return n.__awaiter(this,void 0,void 0,(function*(){let n;try{if(!this.signer)throw new Error("Signer is not provided");if(new d.Signer(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const o=e.write.updateChannelMeta({args:[t,(0,u.toHex)(new Uint8Array(r)),i]});n=yield o}else{const s=e.updateChannelMeta(t,r,i,{gasLimit:1e6}),c=yield s,u=yield null===(a=null===(o=this.signer)||void 0===o?void 0:o.provider)||void 0===a?void 0:a.waitForTransaction(c.hash);if(0==(null==u?void 0:u.status))throw new Error("Something Went wrong while updating your channel");n=c.hash}return n}catch(s){throw new Error(null==s?void 0:s.message)}}))}verifyChannel(e,t){var r,i;return n.__awaiter(this,void 0,void 0,(function*(){try{if(!this.signer)throw new Error("Signer is not provided");let n;if(new d.Signer(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const r=e.write.verify({args:[t]});n=yield r}else{if(!this.signer.provider)throw new Error("ethers provider is not provided");const o=e.verify(t),a=yield o;yield null===(i=null===(r=this.signer)||void 0===r?void 0:r.provider)||void 0===i?void 0:i.waitForTransaction(a.hash),n=a.hash}return n}catch(n){throw new Error(n.message)}}))}createChanelSettings(e,t,r,i,o){var a,s;return n.__awaiter(this,void 0,void 0,(function*(){try{if(!this.signer)throw new Error("Signer is not provided");let n;if(new d.Signer(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const a=e.write.createChannelSettings({args:[t,r,i,o]});n=yield a}else{if(!this.signer.provider)throw new Error("ethers provider is not provided");const c=e.createChannelSettings(t,r,i,o),u=yield c;yield null===(s=null===(a=this.signer)||void 0===a?void 0:a.provider)||void 0===s?void 0:s.waitForTransaction(u.hash),n=u.hash}return n}catch(n){throw new Error(n.message)}}))}addDelegator(e,t){var r,i;return n.__awaiter(this,void 0,void 0,(function*(){try{if(!this.signer)throw new Error("Signer is not provided");let n;if(new d.Signer(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const r=e.write.addDelegate({args:[t]});n=yield r}else{if(!this.signer.provider)throw new Error("ethers provider is not provided");const o=e.addDelegate(t),a=yield o;yield null===(i=null===(r=this.signer)||void 0===r?void 0:r.provider)||void 0===i?void 0:i.waitForTransaction(a.hash),n=a.hash}return n}catch(n){throw new Error(n.message)}}))}removeDelegator(e,t){var r,i;return n.__awaiter(this,void 0,void 0,(function*(){try{if(!this.signer)throw new Error("Signer is not provided");let n;if(new d.Signer(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const r=e.write.removeDelegate({args:[t]});n=yield r}else{if(!this.signer.provider)throw new Error("ethers provider is not provided");const o=e.removeDelegate(t),a=yield o;yield null===(i=null===(r=this.signer)||void 0===r?void 0:r.provider)||void 0===i?void 0:i.waitForTransaction(a.hash),n=a.hash}return n}catch(n){throw new Error(n.message)}}))}getChainId(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error("Signer is not provided");return new d.Signer(this.signer).getChainId()}))}uploadToIPFSViaPushNode(e){return n.__awaiter(this,void 0,void 0,(function*(){try{return(yield(0,f.axiosPost)(`${o.CORE_CONFIG[this.env].API_BASE_URL}/v1/ipfs/upload`,{data:e})).data.cid}catch(t){throw new Error("Something went wrong while uploading data to IPFS")}}))}getTimeBound(e){return 0}getMinimalSetting(e){var t,r;let n="",i="";for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PushAPI=void 0;const n=r(331635),i=r(397067),o=r(75232),a=r(585101),s=r(813951),c=r(900487),u=r(301264),l=r(682288),d=r(527034),f=r(514419),h=r(797547),p=r(409537),g=r(746290),m=r(813943),y=r(232198),b=r(795924),v=r(622042),w=r(122831);class A{constructor(e,t,r,n,i,o,a,s,f){this.signer=a,this.readMode=r,this.alpha=n,this.env=e,this.account=t,this.chainWiseAccount=(0,b.walletToPCAIP10)(t),this.decryptedPgpPvtKey=i,this.pgpPublicKey=o,this.progressHook=s,this.channel=new h.Channel(this.signer,this.env,this.account),this.notification=new p.Notification(this.signer,this.env,this.account),this.uid=(0,w.v4)(),this.cache=v.cache,this.chat=new c.Chat(this.account,this.env,this.alpha,this.decryptedPgpPvtKey,this.signer,this.progressHook),this.space=new m.Space(this.account,this.env,this.decryptedPgpPvtKey,this.signer,this.progressHook),this.profile=new u.Profile(this.account,this.env,this.cache,this.decryptedPgpPvtKey,this.progressHook),this.encryption=new l.Encryption(this.account,this.env,this.decryptedPgpPvtKey,this.pgpPublicKey,this.signer,this.progressHook),this.user=new d.User(this.account,this.env),this.video=new y.Video(this.account,this.env,this.decryptedPgpPvtKey,this.signer),this.errors=f||[]}static initialize(...e){return n.__awaiter(this,void 0,void 0,(function*(){try{let r,n,c;if(1===e.length&&"object"==typeof e[0])"account"in e[0]&&"string"==typeof e[0].account?n=e[0]:[r]=e;else{if(2!==e.length)throw new Error("Invalid arguments provided to initialize method.");[r,n]=e}if(n&&"decryptedPGPPrivateKey"in n&&"string"==typeof n.decryptedPGPPrivateKey&&(c=n.decryptedPGPPrivateKey),!r&&!(null==n?void 0:n.account))throw new Error("Either 'signer' or 'account' must be provided.");let u=!r&&!c;const l={env:i.ENV.STAGING,version:i.default.ENC_TYPE_V3,autoUpgrade:!0,account:null},d=Object.assign(Object.assign(Object.assign({},l),n),{version:(null==n?void 0:n.version)||l.version,versionMeta:(null==n?void 0:n.versionMeta)||l.versionMeta,autoUpgrade:void 0!==(null==n?void 0:n.autoUpgrade)?null==n?void 0:n.autoUpgrade:l.autoUpgrade,alpha:(null==n?void 0:n.alpha)&&n.alpha.feature?n.alpha:g.ALPHA_FEATURE_CONFIG[i.PACKAGE_BUILD]}),f=[];let h,p;if(h=r?yield(0,s.getAccountAddress)((0,s.getWallet)({account:d.account,signer:r})):null==n?void 0:n.account,!h)throw new Error("Account could not be derived.");const m=yield o.get({account:h,env:d.env});if(m&&m.publicKey&&(p=m.publicKey),!u)try{if(m&&m.encryptedPrivateKey)c||(c=yield a.decryptPGPKey({encryptedPGPPrivateKey:m.encryptedPrivateKey,signer:r,toUpgrade:d.autoUpgrade,additionalMeta:d.versionMeta,progressHook:d.progressHook,env:d.env}));else{const e=yield o.create({env:d.env,account:h,signer:r,version:d.version,additionalMeta:d.versionMeta,origin:d.origin,progressHook:d.progressHook});c=e.decryptedPrivateKey,p=e.publicKey}}catch(t){const e="Error decrypting PGP private key ...swiching to Guest mode";if(f.push({type:"ERROR",message:e}),console.error(e),(0,b.isValidNFTCAIP)(h)){const e="NFT Account Detected. If this NFT was recently transferred to you, please ensure you have received the correct password from the previous owner. Alternatively, you can reinitialize for a fresh start. Please be aware that reinitialization will result in the loss of all previous account data.";f.push({type:"WARN",message:e}),console.warn(e)}u=!0}return new A(d.env,h,u,d.alpha,c,p,r,d.progressHook,f)}catch(t){throw console.error("Error initializing PushAPI:",t),t}}))}reinitialize(e){return n.__awaiter(this,void 0,void 0,(function*(){const t=yield o.create({env:this.env,account:this.account,signer:this.signer,additionalMeta:e.versionMeta,progressHook:this.progressHook});this.decryptedPgpPvtKey=t.decryptedPrivateKey,this.pgpPublicKey=t.publicKey,this.readMode=!1,this.errors=[],this.uid=(0,w.v4)(),this.chat=new c.Chat(this.account,this.env,this.alpha,this.decryptedPgpPvtKey,this.signer,this.progressHook),this.profile=new u.Profile(this.account,this.env,this.cache,this.decryptedPgpPvtKey,this.progressHook),this.encryption=new l.Encryption(this.account,this.env,this.decryptedPgpPvtKey,this.pgpPublicKey,this.signer,this.progressHook)}))}initStream(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(this.stream)throw new Error("Stream is already initialized.");return this.stream=yield f.PushStream.initialize(this.account,e,this.env,this.decryptedPgpPvtKey,this.progressHook,this.signer,t),this.stream}))}info(e){return n.__awaiter(this,void 0,void 0,(function*(){const t=(null==e?void 0:e.overrideAccount)||this.account;return yield o.get({account:t,env:this.env})}))}readmode(){return this.readMode}static ensureSignerMessage(){return"Operation not allowed in read-only mode. Signer is required."}}t.PushAPI=A},900487:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Chat=void 0;const n=r(331635),i=r(397067),o=r(701728),a=r(75232),s=r(585101),c=r(813951),u=r(795924),l=r(517496),d=r(527034),f=r(668943),h=r(435669);t.Chat=class{constructor(e,t,r,o,a,c){this.account=e,this.env=t,this.alpha=r,this.decryptedPgpPvtKey=o,this.signer=a,this.progressHook=c,this.group={create:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){var r,n,i;if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());const o={account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env,groupName:e,groupDescription:null!==(r=null==t?void 0:t.description)&&void 0!==r?r:null,groupImage:null!==(n=null==t?void 0:t.image)&&void 0!==n?n:null,rules:null!==(i=null==t?void 0:t.rules)&&void 0!==i?i:{},isPublic:!(null==t?void 0:t.private),groupType:"default",config:{meta:null,scheduleAt:null,scheduleEnd:null,status:null},members:(null==t?void 0:t.members)?t.members:[],admins:(null==t?void 0:t.admins)?t.admins:[]},a=yield s.createGroupV2(o);return this.scalabilityV2Feature?a:yield s.getGroup({chatId:a.chatId,env:this.env})})),participants:{list:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){const{page:r=1,limit:n=20,filter:i={pending:void 0,role:void 0}}=null!=t?t:{},o={chatId:e,page:r,limit:n,pending:i.pending,role:i.role,env:this.env};return{members:yield s.getGroupMembers(o)}})),count:e=>n.__awaiter(this,void 0,void 0,(function*(){const t=yield s.getGroupMemberCount({chatId:e,env:this.env});return{participants:t.overallCount-t.pendingCount,pending:t.pendingCount}})),status:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){const r=(null==t?void 0:t.overrideAccount)||this.account,n=yield s.getGroupMemberStatus({chatId:e,did:r,env:this.env});return{pending:n.isPending,role:n.isAdmin?"admin":"member",participant:n.isMember}}))},permissions:e=>n.__awaiter(this,void 0,void 0,(function*(){const t={chatId:e,did:this.account,env:this.env};return yield s.getGroupAccess(t)})),info:e=>n.__awaiter(this,void 0,void 0,(function*(){return this.scalabilityV2Feature?yield s.getGroupInfo({chatId:e,env:this.env}):yield s.getGroup({chatId:e,env:this.env})})),update:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());const r=yield s.getGroupInfo({chatId:e,env:this.env});if(!r)throw new Error("Group not found");const n={chatId:e,groupName:t.name?t.name:r.groupName,groupDescription:void 0!==t.description?t.description:r.groupDescription,groupImage:void 0!==t.image?t.image:r.groupImage,rules:t.rules?t.rules:r.rules,account:this.account,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env},i={chatId:e,meta:t.meta?t.meta:r.meta,scheduleAt:t.scheduleAt?t.scheduleAt:r.scheduleAt,scheduleEnd:t.scheduleEnd?t.scheduleEnd:r.scheduleEnd,status:t.status?t.status:r.status,account:this.account,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env};yield(0,l.updateGroupProfile)(n);const o=yield(0,f.updateGroupConfig)(i);return this.scalabilityV2Feature?o:yield s.getGroup({chatId:o.chatId,env:this.env})})),add:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());const{role:r,accounts:n}=t;if(!["ADMIN","MEMBER"].includes(r))throw new Error("Invalid role provided.");if(!n||0===n.length)throw new Error("accounts array cannot be empty!");let i;return n.forEach((e=>{if(!(0,u.isValidPushCAIP)(e))throw new Error(`Invalid account address: ${e}`)})),i="ADMIN"===r?yield s.addAdmins({chatId:e,admins:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature}):yield s.addMembers({chatId:e,members:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature}),this.scalabilityV2Feature?i:yield s.getGroup({chatId:i.chatId,env:this.env})})),remove:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){const{accounts:r}=t;if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());if(!r||0===r.length)throw new Error("Accounts array cannot be empty!");r.forEach((e=>{if(!(0,u.isValidPushCAIP)(e))throw new Error(`Invalid account address: ${e}`)}));const n=[],i=[];for(const t of r){const r=yield s.getGroupMemberStatus({chatId:e,did:t,env:this.env});r.isAdmin?n.push(t):r.isMember&&i.push(t)}return n.length>0&&(yield s.removeAdmins({chatId:e,admins:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature})),i.length>0&&(yield s.removeMembers({chatId:e,members:i,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature})),yield this.group.info(e)})),modify:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){const{role:r,accounts:n}=t;if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());if(!["ADMIN","MEMBER"].includes(r))throw new Error("Invalid role provided.");if(!n||0===n.length)throw new Error("accounts array cannot be empty!");return n.forEach((e=>{if(!(0,u.isValidPushCAIP)(e))throw new Error(`Invalid account address: ${e}`)})),yield s.modifyRoles({chatId:e,newRole:r,members:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature})})),join:e=>n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());const t=yield s.getGroupMemberStatus({chatId:e,did:this.account,env:this.env});return t.isPending?yield s.approve({senderAddress:e,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature}):t.isMember||(yield s.addMembers({chatId:e,members:[this.account],env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature})),yield this.group.info(e)})),leave:e=>n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());let t;return t=(yield s.getGroupMemberStatus({chatId:e,did:this.account,env:this.env})).isAdmin?yield s.removeAdmins({chatId:e,admins:[this.account],env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature}):yield s.removeMembers({chatId:e,members:[this.account],env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature}),this.scalabilityV2Feature?t:yield s.getGroup({chatId:t.chatId,env:this.env})})),reject:e=>n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());yield s.reject({senderAddress:e,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey})}))},this.userInstance=new d.User(this.account,this.env),this.scalabilityV2Feature=this.alpha.feature.includes(i.ALPHA_FEATURES.SCALABILITY_V2)}list(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const r={account:(null==t?void 0:t.overrideAccount)||this.account,pgpPrivateKey:this.decryptedPgpPvtKey,page:null==t?void 0:t.page,limit:null==t?void 0:t.limit,env:this.env,toDecrypt:!!this.decryptedPgpPvtKey};switch(e){case o.ChatListType.CHATS:return yield s.chats(r);case o.ChatListType.REQUESTS:return yield s.requests(r);default:throw new Error("Invalid Chat List Type")}}))}latest(e){return n.__awaiter(this,void 0,void 0,(function*(){const{threadHash:t,intent:r}=yield s.conversationHash({conversationId:e,account:this.account,env:this.env});if(!t)return{};const n=yield s.latest({threadhash:t,toDecrypt:!!this.decryptedPgpPvtKey,pgpPrivateKey:this.decryptedPgpPvtKey,account:this.account,env:this.env}),i=r?"CHATS":"REQUESTS";return n.map((e=>Object.assign(Object.assign({},e),{listType:i})))}))}history(e,t){return n.__awaiter(this,void 0,void 0,(function*(){let r;const{threadHash:n,intent:i}=yield s.conversationHash({conversationId:e,account:this.account,env:this.env});if(r=(null==t?void 0:t.reference)?t.reference:n,!r)return[];const o=yield s.history({account:this.account,env:this.env,threadhash:r,pgpPrivateKey:this.decryptedPgpPvtKey,toDecrypt:!!this.decryptedPgpPvtKey,limit:null==t?void 0:t.limit}),a=i?"CHATS":"REQUESTS";return o.map((e=>Object.assign(Object.assign({},e),{listType:a})))}))}send(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());t.type||(t.type=i.MessageType.TEXT);const r={message:t,to:e,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env};return yield s.send(r)}))}decrypt(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());return yield s.decryptConversation({pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env,messages:e,pgpHelper:c.PGPHelper,connectedUser:yield this.userInstance.info()})}))}accept(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());return yield s.approve({senderAddress:e,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature})}))}reject(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());yield s.reject({senderAddress:e,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey})}))}block(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());const t=yield a.get({account:this.account,env:this.env});for(const r of e)if(!(0,u.isValidPushCAIP)(r))throw new Error("Invalid address in the users: "+r);if(t.profile.blockedUsersList||(t.profile.blockedUsersList=[]),t.profile.blockedUsersList=[...new Set([...t.profile.blockedUsersList,...e])],!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());return yield a.profile.update({pgpPrivateKey:this.decryptedPgpPvtKey,account:this.account,profile:{name:t.profile.name,desc:t.profile.desc,picture:t.profile.picture,blockedUsersList:t.profile.blockedUsersList},env:this.env,progressHook:this.progressHook})}))}unblock(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(h.PushAPI.ensureSignerMessage());const t=yield a.get({account:this.account,env:this.env});for(const n of e)if(!(0,u.isValidPushCAIP)(n))throw new Error("Invalid address in the users: "+n);if(!t.profile.blockedUsersList)return t;const r=e.map((e=>n.__awaiter(this,void 0,void 0,(function*(){return(yield(0,u.convertToValidDID)(e,this.env)).toLowerCase()})))),i=yield Promise.all(r);return t.profile.blockedUsersList=t.profile.blockedUsersList.filter((e=>{i.includes(e.toLowerCase())})),yield a.profile.update({pgpPrivateKey:this.decryptedPgpPvtKey,account:this.account,profile:{name:t.profile.name,desc:t.profile.desc,picture:t.profile.picture,blockedUsersList:t.profile.blockedUsersList},env:this.env,progressHook:this.progressHook})}))}info(e,t){var r,i,o;return n.__awaiter(this,void 0,void 0,(function*(){const n=(null==t?void 0:t.overrideAccount)||this.account,a={recipient:e,account:n,env:this.env};try{const t=yield s.getChatInfo(a),c=null!==(i=null===(r=t.meta)||void 0===r?void 0:r.group)&&void 0!==i&&i;let l=e;if(c)l=t.chatId;else{const e=(null!==(o=t.participants)&&void 0!==o?o:[]).find((e=>e!==(0,u.walletToPCAIP10)(n)));e&&(l=e)}return{meta:t.meta,list:t.list,participants:t.participants,chatId:t.chatId,recipient:l}}catch(c){throw console.error("Error in Chat.info: ",c),new Error(`Error fetching chat info: ${c}`)}}))}}},682288:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Encryption=void 0;const n=r(331635),i=r(75232),o=r(435669),a=r(527034);t.Encryption=class{constructor(e,t,r,n,i,o){this.account=e,this.env=t,this.decryptedPgpPvtKey=r,this.pgpPublicKey=n,this.signer=i,this.progressHook=o,this.userInstance=new a.User(this.account,this.env)}info(){return n.__awaiter(this,void 0,void 0,(function*(){const e=yield this.userInstance.info();let t;return this.signer&&(t=yield i.decryptAuth({account:this.account,env:this.env,signer:this.signer,progressHook:this.progressHook,additionalMeta:{NFTPGP_V1:{encryptedPassword:JSON.stringify(JSON.parse(e.encryptedPrivateKey).encryptedPassword)}}})),Object.assign({decryptedPgpPrivateKey:this.decryptedPgpPvtKey,pgpPublicKey:this.pgpPublicKey},null!=t?{decryptedPassword:t}:{})}))}update(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(o.PushAPI.ensureSignerMessage());if(!this.decryptedPgpPvtKey||!this.pgpPublicKey)throw new Error(o.PushAPI.ensureSignerMessage());return yield i.auth.update({account:this.account,pgpEncryptionVersion:e,additionalMeta:null==t?void 0:t.versionMeta,progressHook:this.progressHook,signer:this.signer,env:this.env,pgpPrivateKey:this.decryptedPgpPvtKey,pgpPublicKey:this.pgpPublicKey})}))}}},301264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Profile=void 0;const n=r(331635),i=r(75232),o=r(435669);t.Profile=class{constructor(e,t,r,n,i){this.account=e,this.env=t,this.cache=r,this.decryptedPgpPvtKey=n,this.progressHook=i}info(e){return n.__awaiter(this,void 0,void 0,(function*(){const t=(null==e?void 0:e.overrideAccount)||this.account,r=`profile-${t}`;if(this.cache.has(r))return this.cache.get(r);const n=yield i.get({account:t,env:this.env});return this.cache.set(r,n.profile),n.profile}))}update(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.decryptedPgpPvtKey)throw new Error(o.PushAPI.ensureSignerMessage());const{name:t,desc:r,picture:n}=e,a=yield i.profile.update({pgpPrivateKey:this.decryptedPgpPvtKey,account:this.account,profile:{name:t,desc:r,picture:n},env:this.env,progressHook:this.progressHook}),s=`profile-${this.account}`;return this.cache.delete(s),a.profile}))}}},701728:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SpaceListType=t.ChatListType=void 0,function(e){e.CHATS="CHATS",e.REQUESTS="REQUESTS"}(t.ChatListType||(t.ChatListType={})),function(e){e.SPACES="SPACES",e.REQUESTS="REQUESTS"}(t.SpaceListType||(t.SpaceListType={}))},813943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Space=void 0;const n=r(331635),i=r(701728),o=r(200635),a=r(585101),s=r(435669),c=r(517496),u=r(668943),l=r(585101),d=r(795924),f=r(900487),h=r(795924),p=r(442097),g=r(459657);t.Space=class{constructor(e,t,r,i,o){this.account=e,this.env=t,this.decryptedPgpPvtKey=r,this.signer=i,this.progressHook=o,this.participants={list:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){const{page:r=1,limit:n=20}=null!=t?t:{},i={chatId:e,page:r,limit:n,env:this.env};return{members:(yield a.getGroupMembers(i)).map((e=>({address:e.address,intent:e.intent,role:"ADMIN"===e.role.toUpperCase()?"SPEAKER":"LISTENER",userInfo:e.userInfo})))}})),count:e=>n.__awaiter(this,void 0,void 0,(function*(){const t=yield a.getGroupMemberCount({chatId:e,env:this.env});return{participants:t.overallCount-t.pendingCount,pending:t.pendingCount}})),status:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){const r=yield a.getGroupMemberStatus({chatId:e,did:t,env:this.env});return{pending:r.isPending,role:r.isAdmin?"SPEAKER":"LISTENER",participant:r.isMember}}))},this.chatInstance=new f.Chat(this.account,this.env,{feature:[]},this.decryptedPgpPvtKey,this.signer)}create(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error("Signer is required to create a space.");const r={signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,spaceName:e,spaceDescription:t.description||null,listeners:t.participants.listeners,speakers:t.participants.speakers,spaceImage:t.image||null,isPublic:"boolean"!=typeof t.private||!t.private,rules:t.rules||{},config:{scheduleAt:t.schedule.start,scheduleEnd:t.schedule.end||null},env:this.env};return yield o.createV2(r)}))}update(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());let r=null;try{if(r=yield a.getGroupInfo({chatId:e,env:this.env}),!r)throw new Error("Space not found")}catch(d){throw new Error("Space not found")}const n={chatId:e,groupName:t.name?t.name:r.groupName,groupDescription:t.description?t.description:r.groupDescription,groupImage:t.image?t.image:r.groupImage,rules:t.rules?t.rules:r.rules,account:this.account,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env},i={chatId:e,meta:t.meta?t.meta:r.meta,scheduleAt:t.scheduleAt?t.scheduleAt:r.scheduleAt,scheduleEnd:t.scheduleEnd?t.scheduleEnd:r.scheduleEnd,status:t.status?t.status:r.status,account:this.account,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env};yield(0,c.updateGroupProfile)(n);const o=yield(0,u.updateGroupConfig)(i);return(0,l.groupInfoDtoToSpaceInfoDto)(o)}))}info(e){return n.__awaiter(this,void 0,void 0,(function*(){const t=yield a.getGroupInfo({chatId:e,env:this.env});return(0,l.groupInfoDtoToSpaceInfoDto)(t)}))}permissions(e){return n.__awaiter(this,void 0,void 0,(function*(){const t={chatId:e,did:this.account,env:this.env};return yield a.getGroupAccess(t)}))}add(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());const{role:r,accounts:n}=t;if(!["SPEAKER","LISTENER"].includes(r))throw new Error("Invalid role provided.");if(!n||0===n.length)throw new Error("accounts array cannot be empty!");let i;return n.forEach((e=>{if(!(0,d.isValidPushCAIP)(e))throw new Error(`Invalid account address: ${e}`)})),i="SPEAKER"===r?yield a.addAdmins({chatId:e,admins:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1}):yield a.addMembers({chatId:e,members:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1}),(0,l.groupInfoDtoToSpaceInfoDto)(i)}))}remove(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const{accounts:r}=t;if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());if(!r||0===r.length)throw new Error("Accounts array cannot be empty!");r.forEach((e=>{if(!(0,d.isValidPushCAIP)(e))throw new Error(`Invalid account address: ${e}`)}));const n=[],i=[];for(const t of r){const r=yield a.getGroupMemberStatus({chatId:e,did:t,env:this.env});r.isAdmin?n.push(t):r.isMember&&i.push(t)}return n.length>0&&(yield a.removeAdmins({chatId:e,admins:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1})),i.length>0&&(yield a.removeMembers({chatId:e,members:i,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1})),yield this.info(e)}))}modify(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const{role:r,accounts:n}=t;if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());if(!["SPEAKER","LISTENER"].includes(r))throw new Error("Invalid role provided.");if(!n||0===n.length)throw new Error("accounts array cannot be empty!");n.forEach((e=>{if(!(0,d.isValidPushCAIP)(e))throw new Error(`Invalid account address: ${e}`)}));let i=null;i="SPEAKER"===r?"ADMIN":"MEMBER";const o=yield a.modifyRoles({chatId:e,newRole:i,members:n,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1});return(0,l.groupInfoDtoToSpaceInfoDto)(o)}))}join(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());const t=yield a.getGroupMemberStatus({chatId:e,did:this.account,env:this.env});return t.isPending?yield a.approve({senderAddress:e,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1}):t.isMember||(yield a.addMembers({chatId:e,members:[this.account],env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1})),yield this.info(e)}))}leave(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());let t;return t=(yield a.getGroupMemberStatus({chatId:e,did:this.account,env:this.env})).isAdmin?yield a.removeAdmins({chatId:e,admins:[this.account],env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1}):yield a.removeMembers({chatId:e,members:[this.account],env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!1}),(0,l.groupInfoDtoToSpaceInfoDto)(t)}))}search(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const{page:r=1,limit:n=20}=null!=t?t:{};return(yield o.search({searchTerm:e,pageNumber:r,pageSize:n,env:this.env})).map((e=>a.spaceDtoToSpaceInfoDto(e)))}))}trending(e){return n.__awaiter(this,void 0,void 0,(function*(){const{page:t=1,limit:r=20}=null!=e?e:{};return yield o.trending({page:t,limit:r,env:this.env})}))}list(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const r={account:(null==t?void 0:t.overrideAccount)||this.account,pgpPrivateKey:this.decryptedPgpPvtKey,page:null==t?void 0:t.page,limit:null==t?void 0:t.limit,env:this.env,toDecrypt:!!this.decryptedPgpPvtKey};switch(e){case i.SpaceListType.SPACES:return yield o.spaces(r);case i.SpaceListType.REQUESTS:return yield o.requests(r);default:throw new Error("Invalid Space List Type")}}))}accept(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());return this.chatInstance.accept(e)}))}reject(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());return this.chatInstance.reject(e)}))}get chat(){return{send:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){return this.chatInstance.send(e,t)})),decrypt:e=>n.__awaiter(this,void 0,void 0,(function*(){if(!this.signer)throw new Error(s.PushAPI.ensureSignerMessage());return yield this.chatInstance.decrypt(e)})),latest:e=>n.__awaiter(this,void 0,void 0,(function*(){return yield this.chatInstance.latest(e)})),history:(e,t)=>n.__awaiter(this,void 0,void 0,(function*(){return yield this.chatInstance.history(e,t)}))}}initialize(e){return n.__awaiter(this,void 0,void 0,(function*(){const{onChange:t,spaceId:r}=e;if(!this.signer)throw new Error("Signer is required for push space");if(!this.decryptedPgpPvtKey)throw new Error("PushSDK was initialized in readonly mode. Space functionality is not available.");const n=yield new h.Signer(this.signer).getChainId();if(!n)throw new Error("Chain Id not retrievable from signer");const i=new g.Space({signer:this.signer,chainId:n,pgpPrivateKey:this.decryptedPgpPvtKey,setSpaceData:t,address:this.account,env:this.env});yield i.initialize({spaceId:r});const o=yield this.info(r);return new p.SpaceV2({spaceV1Instance:i,spaceInfo:o})}))}}},527034:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.User=void 0;const n=r(331635),i=r(75232);t.User=class{constructor(e,t){this.account=e,this.env=t}info(e){return n.__awaiter(this,void 0,void 0,(function*(){const t=(null==e?void 0:e.overrideAccount)||this.account;return yield i.get({account:t,env:this.env})}))}}},232198:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Video=void 0;const n=r(331635),i=r(191227),o=r(899024),a=r(795924),s=r(668865),c=r(676393),u=r(389407),l=r(716912);t.Video=class{constructor(e,t,r,n){this.account=e,this.env=t,this.decryptedPgpPvtKey=r,this.signer=n,this.peerInfos={}}initialize(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const{stream:r,config:n,media:d}=t;if(!this.signer)throw new Error("Signer is required for push video");if(!this.decryptedPgpPvtKey)throw new Error("PushSDK was initialized in readonly mode. Video functionality is not available.");const f=yield new a.Signer(this.signer).getChainId();if(!f)throw new Error("Chain Id not retrievable from signer");const h=new s.Video({signer:this.signer,chainId:f,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env,setData:e});return yield h.create(Object.assign(Object.assign(Object.assign({},d&&{stream:d}),(null==n?void 0:n.audio)&&{audio:n.audio}),(null==n?void 0:n.video)&&{video:n.video})),r.on(i.default.STREAM.VIDEO,(e=>{const{address:t,signal:r,meta:{rules:n}}=e.peerInfo,c=n.access.data.chatId;e.event===i.default.VIDEO.EVENT.REQUEST&&(this.peerInfos[(0,a.walletToPCAIP10)(e.peerInfo.address)]=e.peerInfo,h.setData((e=>(0,u.produce)(e,(e=>{e.local.address=this.account,e.incoming[0].address=t,e.incoming[0].status=o.VideoCallStatus.RECEIVED,e.meta.chatId=c,e.meta.initiator.address=t,e.meta.initiator.signal=r}))))),c&&c===h.data.meta.chatId&&(e.event===i.default.VIDEO.EVENT.DENY&&(h.data.local.stream&&(0,l.endStream)(h.data.local.stream),h.setData((()=>s.initVideoCallData))),e.event!==i.default.VIDEO.EVENT.APPROVE&&e.event!==i.default.VIDEO.EVENT.RETRY_APPROVE||h.connect({peerAddress:t,signalData:r}),e.event===i.default.VIDEO.EVENT.RETRY_REQUEST&&h.isInitiator()&&h.request({senderAddress:this.account,recipientAddress:t,rules:n,retry:!0}),e.event!==i.default.VIDEO.EVENT.RETRY_REQUEST||h.isInitiator()||h.acceptRequest({signalData:r,senderAddress:this.account,recipientAddress:t,rules:n,retry:!0}))})),new c.VideoV2({videoV1Instance:h,account:this.account,decryptedPgpPvtKey:this.decryptedPgpPvtKey,env:this.env,peerInfos:this.peerInfos})}))}}},942754:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataModifier=void 0;const n=r(416062),i=r(899024),o=r(773773);class a{static handleChatGroupEvent(e,t=!1){switch(e.eventType){case"create":return this.mapToCreateGroupEvent(e,t);case"update":return this.mapToUpdateGroupEvent(e,t);case n.GroupEventType.JoinGroup:return this.mapToJoinGroupEvent(e,t);case n.GroupEventType.LeaveGroup:return this.mapToLeaveGroupEvent(e,t);case n.MessageEventType.Request:return this.mapToRequestEvent(e,t);case n.GroupEventType.Remove:return this.mapToRemoveEvent(e,t);case n.GroupEventType.RoleChange:return this.mapToRoleChangeEvent(e,t);default:return console.warn("Unknown eventType:",e.eventType),e}}static mapToJoinGroupEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,chatId:e.chatId,from:e.from,to:e.to,event:n.GroupEventType.JoinGroup};return t?Object.assign(Object.assign({},r),{raw:{verificationProof:e.verificationProof}}):r}static mapToLeaveGroupEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,chatId:e.chatId,from:e.from,to:e.to,event:n.GroupEventType.LeaveGroup};return t?Object.assign(Object.assign({},r),{raw:{verificationProof:e.verificationProof}}):r}static mapToRequestEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,chatId:e.chatId,from:e.from,to:e.to,event:n.MessageEventType.Request,meta:{group:e.isGroup||!1}};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToRemoveEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,chatId:e.chatId,from:e.from,to:e.to,event:n.GroupEventType.Remove};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToRoleChangeEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,chatId:e.chatId,from:e.from,to:e.to,newRole:e.newRole,event:n.GroupEventType.RoleChange};return t&&(r.raw={verificationProof:e.verificationProof}),r}static buildChatGroupEventMetaAndRaw(e,t){const r={name:e.groupName,description:e.groupDescription,image:e.groupImage,owner:e.groupCreator,private:!e.isPublic,rules:e.rules||{}};if(t){return{meta:r,raw:{verificationProof:e.verificationProof}}}return{meta:r}}static mapToGroupEvent(e,t,r){const{meta:n,raw:i}=this.buildChatGroupEventMetaAndRaw(t,r),o={event:e,origin:t.messageOrigin,timestamp:t.timestamp,chatId:t.chatId,from:t.from,meta:n};return r&&(o.raw=i),o}static mapToCreateGroupEvent(e,t){return this.mapToGroupEvent(n.GroupEventType.CreateGroup,e,t)}static mapToUpdateGroupEvent(e,t){return this.mapToGroupEvent(n.GroupEventType.UpdateGroup,e,t)}static mapToMessageEvent(e,t=!1,r){!1===e.hasIntent&&"message"===r&&(r=n.MessageEventType.Request);const i={event:r,origin:e.messageOrigin,timestamp:e.timestamp.toString(),chatId:e.chatId,from:e.fromCAIP10,to:[e.toCAIP10],message:Object.assign({type:e.messageType},e.messageObj),meta:{group:e.isGroup||!1},reference:e.cid};if(t){const t={fromCAIP10:e.fromCAIP10,toCAIP10:e.toCAIP10,fromDID:e.fromDID,toDID:e.toDID,encType:e.encType,encryptedSecret:e.encryptedSecret,signature:e.signature,sigType:e.sigType,verificationProof:e.verificationProof,previousReference:e.link};i.raw=t}return i}static handleChatEvent(e,t=!1){if(!e)throw console.error("Error in handleChatEvent: data is undefined or null"),new Error("data is undefined or null");const r={Chat:n.MessageEventType.Message,Request:n.MessageEventType.Request,Approve:n.MessageEventType.Accept,Reject:n.MessageEventType.Reject},i=e.eventType||e.messageCategory;if(!r[i])throw console.error("Error in handleChatEvent: Invalid eventType or messageCategory",JSON.stringify(e)),new Error("Invalid eventType or messageCategory in data");const o=r[i];return o?this.mapToMessageEvent(e,t,o):(console.warn("Unknown eventType:",e.eventType||e.messageCategory),e)}static mapToNotificationEvent(e,t,r,i=!1){var o,a,s;const c=Object.keys(n.NOTIFICATION.TYPE).find((t=>n.NOTIFICATION.TYPE[t]===e.payload.data.type))||"BROADCAST";let u;u=Array.isArray(e.payload.recipients)?e.payload.recipients:"string"==typeof e.payload.recipients?[e.payload.recipients]:Object.keys(e.payload.recipients);const l={event:t,origin:r,timestamp:e.epoch,from:e.sender,to:u,notifID:e.payload_id.toString(),channel:{name:e.payload.data.app,icon:e.payload.data.icon,url:e.payload.data.url},meta:{type:"NOTIFICATION."+c},message:{notification:{title:e.payload.notification.title,body:e.payload.notification.body},payload:{title:e.payload.data.asub,body:e.payload.data.amsg,cta:e.payload.data.acta,embed:e.payload.data.aimg,meta:{domain:(null===(o=e.payload.data.additionalMeta)||void 0===o?void 0:o.domain)||"push.org",type:null===(a=e.payload.data.additionalMeta)||void 0===a?void 0:a.type,data:null===(s=e.payload.data.additionalMeta)||void 0===s?void 0:s.data}}},config:{expiry:e.payload.data.etime,silent:"1"===e.payload.data.silent,hidden:"1"===e.payload.data.hidden},source:e.source};return i&&(l.raw={verificationProof:e.payload.verificationProof}),l}static convertToProposedName(e){switch(e){case"message":return n.ProposedEventNames.Message;case"request":return n.ProposedEventNames.Request;case"accept":return n.ProposedEventNames.Accept;case"reject":return n.ProposedEventNames.Reject;case"leaveGroup":return n.ProposedEventNames.LeaveGroup;case"joinGroup":return n.ProposedEventNames.JoinGroup;case"createGroup":return n.ProposedEventNames.CreateGroup;case"updateGroup":return n.ProposedEventNames.UpdateGroup;case"remove":return n.ProposedEventNames.Remove;case"roleChange":return n.ProposedEventNames.RoleChange;default:throw new Error(`Unknown current event name: ${e}`)}}static convertToProposedNameForSpace(e){switch(e){case"create":return n.ProposedEventNames.CreateSpace;case"update":return n.ProposedEventNames.UpdateSpace;case"request":return n.ProposedEventNames.SpaceRequest;case"accept":return n.ProposedEventNames.SpaceAccept;case"reject":return n.ProposedEventNames.SpaceReject;case"leaveSpace":return n.ProposedEventNames.LeaveSpace;case"joinSpace":return n.ProposedEventNames.JoinSpace;case"remove":return n.ProposedEventNames.SpaceRemove;case"start":return n.ProposedEventNames.StartSpace;case"stop":return n.ProposedEventNames.StopSpace;default:throw new Error(`Unknown current event name: ${e}`)}}static handleToField(e){var t;switch(e.event){case n.ProposedEventNames.LeaveGroup:case n.ProposedEventNames.JoinGroup:e.to=null;break;case n.ProposedEventNames.Accept:case n.ProposedEventNames.Reject:(null===(t=e.meta)||void 0===t?void 0:t.group)&&(e.to=null)}}static handleSpaceEvent(e,t=!1){switch(e.eventType){case"create":return this.mapToCreateSpaceEvent(e,t);case"update":return this.mapToUpdateSpaceEvent(e,t);case"request":return this.mapToRequestSpaceEvent(e,t);case"remove":return this.mapToRemoveSpaceEvent(e,t);case"joinSpace":return this.mapToJoinSpaceEvent(e,t);case"leaveSpace":return this.mapToLeaveSpaceEvent(e,t);case"start":return this.mapToStartSpaceEvent(e,t);case"stop":return this.mapToStopSpaceEvent(e,t);default:switch(e.messageCategory){case"Approve":return this.mapToSpaceApproveEvent(e,t);case"Reject":return this.mapToSpaceRejectEvent(e,t);default:return console.warn("Unknown eventType or messageCategory for space:",e.eventType,e.messageCategory),e}}}static mapToCreateSpaceEvent(e,t){const r={event:e.eventType,origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.spaceCreator,meta:{name:e.spaceName,description:e.spaceDescription,image:e.spaceImage,owner:e.spaceCreator,private:!e.isPublic,rules:e.rules||{}}};return t&&(r.raw={verificationProof:e.verificationProof||""}),r}static mapToUpdateSpaceEvent(e,t){const r={event:e.eventType,origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.spaceCreator,meta:{name:e.spaceName,description:e.spaceDescription,image:e.spaceImage,owner:e.spaceCreator,private:!e.isPublic,rules:e.rules||{}}};return t&&(r.raw={verificationProof:e.verificationProof||""}),r}static mapToRequestSpaceEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.from,to:e.to,event:n.MessageEventType.Request};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToSpaceApproveEvent(e,t){const r={event:"request",origin:"other"===e.messageOrigin?"self":"other",timestamp:e.timestamp,spaceId:e.chatId,from:e.fromCAIP10,to:[e.toCAIP10]};return t&&(r.raw={verificationProof:e.verificationProof||""}),r}static mapToSpaceRejectEvent(e,t){const r={event:"reject",origin:"other"===e.messageOrigin?"other":"self",timestamp:e.timestamp.toString(),spaceId:e.chatId,from:e.fromCAIP10,to:null};return t&&(r.raw={verificationProof:e.verificationProof||""}),r}static mapToRemoveSpaceEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.from,to:e.to,event:"remove"};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToJoinSpaceEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.from,to:e.to,event:e.eventType};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToLeaveSpaceEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.from,to:e.to,event:e.eventType};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToStartSpaceEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.from,to:null,event:e.eventType};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToStopSpaceEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,spaceId:e.spaceId,from:e.from,to:null,event:e.eventType};return t&&(r.raw={verificationProof:e.verificationProof}),r}static convertToProposedNameForVideo(e){switch(e){case i.VideoCallStatus.INITIALIZED:return n.VideoEventType.REQUEST;case i.VideoCallStatus.RECEIVED:return n.VideoEventType.APPROVE;case i.VideoCallStatus.CONNECTED:return n.VideoEventType.CONNECT;case i.VideoCallStatus.ENDED:return n.VideoEventType.DISCONNECT;case i.VideoCallStatus.DISCONNECTED:return n.VideoEventType.DENY;case i.VideoCallStatus.RETRY_INITIALIZED:return n.VideoEventType.RETRY_REQUEST;case i.VideoCallStatus.RETRY_RECEIVED:return n.VideoEventType.RETRY_APPROVE;default:throw new Error(`Unknown video call status: ${e}`)}}static mapToVideoEvent(e,t,r=!1){var n,i;const{senderAddress:s,signalData:c,status:u,chatId:l}=JSON.parse(null===(n=e.payload.data.additionalMeta)||void 0===n?void 0:n.data),d={address:s,signal:c,meta:{rules:null!==(i=e.payload.rules)&&void 0!==i?i:{access:{type:o.VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT,data:{chatId:l}}}}},f={event:a.convertToProposedNameForVideo(u),origin:t,timestamp:e.epoch,peerInfo:d};return r&&(f.raw={verificationProof:e.payload.verificationProof}),f}}t.DataModifier=a},514419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PushStream=void 0;const n=r(331635),i=r(137007),o=r(967149),a=r(397067),s=r(416062),c=r(942754),u=r(795924),l=r(900487),d=r(746290),f=r(446392),h=r(122831);class p extends i.EventEmitter{constructor(e,t,r,n,i,o){var s;super(),this._listen=t,this.decryptedPgpPvtKey=n,this.progressHook=i,this.signer=o,this.account=e,this.raw=null!==(s=r.raw)&&void 0!==s&&s,this.options=r,this.listen=t,this.disconnected=!1,this.uid=(0,h.v4)(),this.chatSocketCount=0,this.notifSocketCount=0,this.chatSocketConnected=!1,this.notifSocketConnected=!1,this.chatInstance=new l.Chat(this.account,this.options.env,d.ALPHA_FEATURE_CONFIG[a.PACKAGE_BUILD],this.decryptedPgpPvtKey,this.signer,this.progressHook)}static initialize(e,t,r,i,o,a,c){return n.__awaiter(this,void 0,void 0,(function*(){const n={raw:!1,connection:{auto:!0,retries:3},env:r};if(!t||0===t.length)throw new Error("The listen property must have at least one STREAM type.");const u=Object.assign(Object.assign({},n),c),l=u.overrideAccount||e;t.includes("*")&&(t=Object.values(s.STREAM));return new p(l,t,u,i,o,a)}))}reinit(e,t){return n.__awaiter(this,void 0,void 0,(function*(){this.uid=(0,h.v4)(),this.listen=e,this.options=Object.assign(Object.assign({},this.options),t),yield this.disconnect(),yield this.connect()}))}connect(){return n.__awaiter(this,void 0,void 0,(function*(){return new Promise(((e,t)=>{(()=>{n.__awaiter(this,void 0,void 0,(function*(){var r,i,a,l,d,h,p,g,m,y,b,v,w,A;const C=!this.listen||0===this.listen.length||this.listen.includes(s.STREAM.CHAT)||this.listen.includes(s.STREAM.CHAT_OPS)||this.listen.includes(s.STREAM.SPACE)||this.listen.includes(s.STREAM.SPACE_OPS),E=!this.listen||0===this.listen.length||this.listen.includes(s.STREAM.NOTIF)||this.listen.includes(s.STREAM.NOTIF_OPS)||this.listen.includes(s.STREAM.VIDEO);let x=!1,S=!1;const I=()=>{(C&&x||!C)&&(E&&S||!E)&&(this.emit(s.STREAM.CONNECT),console.log("RestAPI::PushStream::connect - Emitted STREAM.CONNECT"),e())};setTimeout((()=>{this.notifSocketConnected||this.chatSocketConnected||t(new Error("Connection timeout"))}),5e3);const k=e=>n.__awaiter(this,void 0,void 0,(function*(){"chat"===e?(x=!1,this.chatSocketConnected=!1,this.chatSocketCount--,S?this.pushNotificationSocket&&this.pushNotificationSocket.connected&&(console.log("RestAPI::PushStream::handleSocketDisconnection - Disconnecting Notification Socket..."),this.pushNotificationSocket.disconnect()):(this.emit(s.STREAM.DISCONNECT),console.log("RestAPI::PushStream::handleSocketDisconnection - Emitted STREAM.DISCONNECT for chat."))):"notif"===e&&(S=!1,this.notifSocketConnected=!1,this.notifSocketCount--,x?this.pushChatSocket&&this.pushChatSocket.connected&&(console.log("RestAPI::PushStream::handleSocketDisconnection - Disconnecting Chat Socket..."),this.pushChatSocket.disconnect()):(this.emit(s.STREAM.DISCONNECT),console.log("RestAPI::PushStream::handleSocketDisconnection - Emitted STREAM.DISCONNECT for notification.")))}));C&&(this.pushChatSocket?this.pushChatSocket&&!this.chatSocketConnected?(console.log("RestAPI::PushStream::ChatSocket::Reconnect - Attempting to reconnect push chat socket..."),this.pushChatSocket.connect()):console.log("RestAPI::PushStream::ChatSocket::Status - Push chat socket already connected"):(console.log("RestAPI::PushStream::ChatSocket::Create - pushChatSocket does not exist, creating new socket connection..."),this.pushChatSocket=yield(0,o.createSocketConnection)({user:(0,u.walletToPCAIP10)(this.account),socketType:"chat",socketOptions:{autoConnect:null===(a=null===(i=null===(r=this.options)||void 0===r?void 0:r.connection)||void 0===i?void 0:i.auto)||void 0===a||a,reconnectionAttempts:null!==(h=null===(d=null===(l=this.options)||void 0===l?void 0:l.connection)||void 0===d?void 0:d.retries)&&void 0!==h?h:3},env:null===(p=this.options)||void 0===p?void 0:p.env}),this.pushChatSocket||t(new Error("RestAPI::PushStream::ChatSocket::Error - Push chat socket not connected")))),E&&(this.pushNotificationSocket?this.pushNotificationSocket&&!this.notifSocketConnected?(console.log("RestAPI::PushStream::NotifSocket::Reconnect - Attempting to reconnect push notification socket..."),this.notifSocketCount++,this.pushNotificationSocket.connect()):console.log("RestAPI::PushStream::NotifSocket::Status - Push notification socket already connected"):(console.log("RestAPI::PushStream::NotifSocket::Create - pushNotificationSocket does not exist, creating new socket connection..."),this.pushNotificationSocket=yield(0,o.createSocketConnection)({user:(0,u.pCAIP10ToWallet)(this.account),env:null===(g=this.options)||void 0===g?void 0:g.env,socketOptions:{autoConnect:null===(b=null===(y=null===(m=this.options)||void 0===m?void 0:m.connection)||void 0===y?void 0:y.auto)||void 0===b||b,reconnectionAttempts:null!==(A=null===(w=null===(v=this.options)||void 0===v?void 0:v.connection)||void 0===w?void 0:w.retries)&&void 0!==A?A:3}}),this.pushNotificationSocket||t(new Error("RestAPI::PushStream::NotifSocket::Error - Push notification socket not connected"))));const _=e=>!this.listen||0===this.listen.length||this.listen.includes(e);this.pushChatSocket&&(this.pushChatSocket.on(s.EVENTS.CONNECT,(()=>n.__awaiter(this,void 0,void 0,(function*(){x=!0,this.chatSocketCount++,this.chatSocketConnected=!0,I(),console.log(`RestAPI::PushStream::EVENTS.CONNECT::Chat Socket Connected (ID: ${this.pushChatSocket.id})`)})))),this.pushChatSocket.on(s.EVENTS.DISCONNECT,(()=>n.__awaiter(this,void 0,void 0,(function*(){yield k("chat")})))),this.pushChatSocket.on(s.EVENTS.CHAT_GROUPS,(e=>{try{const t=c.DataModifier.handleChatGroupEvent(e,this.raw);t.event=c.DataModifier.convertToProposedName(t.event),t.streamUid=this.uid,c.DataModifier.handleToField(t),this.shouldEmitChat(e.chatId)&&(e.eventType===s.GroupEventType.JoinGroup||e.eventType===s.GroupEventType.LeaveGroup||e.eventType===s.MessageEventType.Request||e.eventType===s.GroupEventType.Remove||e.eventType===s.GroupEventType.RoleChange?_(s.STREAM.CHAT)&&this.emit(s.STREAM.CHAT,t):_(s.STREAM.CHAT_OPS)&&this.emit(s.STREAM.CHAT_OPS,t))}catch(t){console.error("Error handling CHAT_GROUPS event:",t,"Data:",e)}})),this.pushChatSocket.on(s.EVENTS.CHAT_RECEIVED_MESSAGE,(e=>n.__awaiter(this,void 0,void 0,(function*(){try{"Chat"!=e.messageCategory&&"Request"!=e.messageCategory||this.decryptedPgpPvtKey&&(e=(e=yield this.chatInstance.decrypt([e]))[0]);const t=c.DataModifier.handleChatEvent(e,this.raw);t.event=c.DataModifier.convertToProposedName(t.event),c.DataModifier.handleToField(t),this.shouldEmitChat(e.chatId)&&_(s.STREAM.CHAT)&&this.emit(s.STREAM.CHAT,t)}catch(t){console.error("Error handling CHAT_RECEIVED_MESSAGE event:",t,"Data:",e)}})))),this.pushChatSocket.on("SPACES",(e=>{try{const t=c.DataModifier.handleSpaceEvent(e,this.raw);t.event=c.DataModifier.convertToProposedNameForSpace(t.event),c.DataModifier.handleToField(t),this.shouldEmitSpace(e.spaceId)&&(e.eventType===s.SpaceEventType.Join||e.eventType===s.SpaceEventType.Leave||e.eventType===s.MessageEventType.Request||e.eventType===s.SpaceEventType.Remove||e.eventType===s.SpaceEventType.Start||e.eventType===s.SpaceEventType.Stop?_(s.STREAM.SPACE)&&this.emit(s.STREAM.SPACE,t):_(s.STREAM.SPACE_OPS)&&this.emit(s.STREAM.SPACE_OPS,t))}catch(t){console.error("Error handling SPACES event:",t,"Data:",e)}})),this.pushChatSocket.on("SPACES_MESSAGES",(e=>{try{const t=c.DataModifier.handleSpaceEvent(e,this.raw);t.event=c.DataModifier.convertToProposedNameForSpace(t.event),c.DataModifier.handleToField(t),this.shouldEmitSpace(e.spaceId)&&_(s.STREAM.SPACE)&&this.emit(s.STREAM.SPACE,t)}catch(t){console.error("Error handling SPACES event:",t,"Data:",e)}}))),this.pushNotificationSocket&&(this.pushNotificationSocket.on(s.EVENTS.CONNECT,(()=>n.__awaiter(this,void 0,void 0,(function*(){console.log(`RestAPI::PushStream::NotifSocket::Connect - Notification Socket Connected (ID: ${this.pushNotificationSocket.id})`),S=!0,this.notifSocketCount++,this.notifSocketConnected=!0,I()})))),this.pushNotificationSocket.on(s.EVENTS.DISCONNECT,(()=>n.__awaiter(this,void 0,void 0,(function*(){console.log("RestAPI::PushStream::NotifSocket::Disconnect - Notification socket disconnected."),yield k("notif")})))),this.pushNotificationSocket.on(s.EVENTS.USER_FEEDS,(e=>{var t;try{if((null===(t=e.payload.data.additionalMeta)||void 0===t?void 0:t.type)===`${f.ADDITIONAL_META_TYPE.PUSH_VIDEO}+1`&&_(s.STREAM.VIDEO)&&this.shouldEmitVideo(e.sender)){const t=c.DataModifier.mapToVideoEvent(e,this.account===e.sender?s.MessageOrigin.Self:s.MessageOrigin.Other,this.raw);this.emit(s.STREAM.VIDEO,t)}else{const t=c.DataModifier.mapToNotificationEvent(e,s.NotificationEventType.INBOX,this.account===e.sender?"self":"other",this.raw);this.shouldEmitChannel(t.from)&&_(s.STREAM.NOTIF)&&this.emit(s.STREAM.NOTIF,t)}}catch(r){console.error(`RestAPI::PushStream::NotifSocket::UserFeeds::Error - Error handling event: ${r}, Data: ${JSON.stringify(e)}`)}})),this.pushNotificationSocket.on(s.EVENTS.USER_SPAM_FEEDS,(e=>{try{const t=c.DataModifier.mapToNotificationEvent(e,s.NotificationEventType.SPAM,this.account===e.sender?"self":"other",this.raw);t.origin=this.account===t.from?"self":"other",this.shouldEmitChannel(t.from)&&_(s.STREAM.NOTIF)&&this.emit(s.STREAM.NOTIF,t)}catch(t){console.error("Error handling USER_SPAM_FEEDS event:",t,"Data:",e)}}))),this.disconnected=!1}))})()}))}))}connected(){return console.log(`RestAPI::PushStream::connected::Notification Socket Connected: ${this.notifSocketConnected}`),console.log(`RestAPI::PushStream::connected::Chat Socket Connected: ${this.chatSocketConnected}`),this.notifSocketConnected||this.chatSocketConnected}disconnect(){return n.__awaiter(this,void 0,void 0,(function*(){this.pushChatSocket&&this.chatSocketConnected&&(this.pushChatSocket.disconnect(),console.log("RestAPI::PushStream::disconnect::Push chat socket disconnected.")),this.pushNotificationSocket&&this.notifSocketConnected&&(this.pushNotificationSocket.disconnect(),console.log("RestAPI::PushStream::disconnect::Push notification socket disconnected."))}))}info(){return{options:this.options,listen:this.listen}}shouldEmitChat(e){var t;return!((null===(t=this.options.filter)||void 0===t?void 0:t.chats)&&0!==this.options.filter.chats.length&&!this.options.filter.chats.includes("*"))||this.options.filter.chats.includes(e)}shouldEmitSpace(e){var t;return!((null===(t=this.options.filter)||void 0===t?void 0:t.spaces)&&0!==this.options.filter.spaces.length&&!this.options.filter.spaces.includes("*"))||this.options.filter.spaces.includes(e)}shouldEmitChannel(e){var t;return!((null===(t=this.options.filter)||void 0===t?void 0:t.channels)&&0!==this.options.filter.channels.length&&!this.options.filter.channels.includes("*"))||this.options.filter.channels.includes(e)}shouldEmitVideo(e){var t;return!((null===(t=this.options.filter)||void 0===t?void 0:t.video)&&0!==this.options.filter.video.length&&!this.options.filter.video.includes("*"))||this.options.filter.video.includes(e)}}t.PushStream=p},416062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=t.NOTIFICATION=t.ProposedEventNames=t.VideoEventType=t.SpaceEventType=t.GroupEventType=t.MessageEventType=t.MessageOrigin=t.NotificationEventType=t.STREAM=void 0,function(e){e.PROFILE="STREAM.PROFILE",e.ENCRYPTION="STREAM.ENCRYPTION",e.NOTIF="STREAM.NOTIF",e.NOTIF_OPS="STREAM.NOTIF_OPS",e.CHAT="STREAM.CHAT",e.CHAT_OPS="STREAM.CHAT_OPS",e.SPACE="STREAM.SPACE",e.SPACE_OPS="STREAM.SPACE_OPS",e.VIDEO="STREAM.VIDEO",e.CONNECT="STREAM.CONNECT",e.DISCONNECT="STREAM.DISCONNECT"}(t.STREAM||(t.STREAM={})),function(e){e.INBOX="notification.inbox",e.SPAM="notification.spam"}(t.NotificationEventType||(t.NotificationEventType={})),function(e){e.Other="other",e.Self="self"}(t.MessageOrigin||(t.MessageOrigin={})),function(e){e.Message="message",e.Request="request",e.Accept="accept",e.Reject="reject"}(t.MessageEventType||(t.MessageEventType={})),function(e){e.CreateGroup="createGroup",e.UpdateGroup="updateGroup",e.JoinGroup="joinGroup",e.LeaveGroup="leaveGroup",e.Remove="remove",e.RoleChange="roleChange"}(t.GroupEventType||(t.GroupEventType={})),function(e){e.CreateSpace="createSpace",e.UpdateSpace="updateSpace",e.Join="joinSpace",e.Leave="leaveSpace",e.Remove="remove",e.Stop="stop",e.Start="start"}(t.SpaceEventType||(t.SpaceEventType={})),function(e){e.REQUEST="video.request",e.APPROVE="video.approve",e.DENY="video.deny",e.CONNECT="video.connect",e.DISCONNECT="video.disconnect",e.RETRY_REQUEST="video.retry.request",e.RETRY_APPROVE="video.retry.approve"}(t.VideoEventType||(t.VideoEventType={})),function(e){e.Message="chat.message",e.Request="chat.request",e.Accept="chat.accept",e.Reject="chat.reject",e.LeaveGroup="chat.group.participant.leave",e.JoinGroup="chat.group.participant.join",e.CreateGroup="chat.group.create",e.UpdateGroup="chat.group.update",e.Remove="chat.group.participant.remove",e.RoleChange="chat.group.participant.role",e.CreateSpace="space.create",e.UpdateSpace="space.update",e.SpaceRequest="space.request",e.SpaceAccept="space.accept",e.SpaceReject="space.reject",e.LeaveSpace="space.participant.leave",e.JoinSpace="space.participant.join",e.SpaceRemove="space.participant.remove",e.StartSpace="space.start",e.StopSpace="space.stop"}(t.ProposedEventNames||(t.ProposedEventNames={})),t.NOTIFICATION={TYPE:{BROADCAST:1,TARGETTED:3,SUBSET:4}},function(e){e.CONNECT="connect",e.DISCONNECT="disconnect",e.USER_FEEDS="userFeeds",e.USER_SPAM_FEEDS="userSpamFeeds",e.CHAT_RECEIVED_MESSAGE="CHATS",e.CHAT_GROUPS="CHAT_GROUPS"}(t.EVENTS||(t.EVENTS={}))},967149:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSocketConnection=void 0;const n=r(331635),i=r(538007),o=r(746290),a=r(795924);t.createSocketConnection=function({user:e,env:t,socketType:r="notification",socketOptions:s}){return n.__awaiter(this,void 0,void 0,(function*(){const{autoConnect:n=!0,reconnectionAttempts:c=5,reconnectionDelay:u,reconnectionDelayMax:l}=s||{};let d=o.API_BASE_URL[t];d.endsWith("/apis")&&(d=d.substring(0,d.length-5));const f=["websocket"];let h=null;try{const o="chat"===r?(0,a.walletToPCAIP10)(e):yield(0,a.getCAIPAddress)(t,e,"User"),s="notification"===r?{address:o}:{mode:"chat",did:o};h=(0,i.io)(d,Object.assign(Object.assign({transports:f,query:s,autoConnect:n,reconnectionAttempts:c},void 0!==u&&{reconnectionDelay:u}),void 0!==l&&{reconnectionDelayMax:l}))}catch(p){console.error("[PUSH-SDK] - Socket connection error: ",p)}return h}))}},459657:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Space=t.initSpaceData=t.initSpaceSpecificData=t.initLiveSpaceData=void 0;const n=r(331635),i=r(389407),o=r(397067),a=r(574338),s=r(995954),c=r(53283),u=r(296075),l=r(822723),d=r(894793),f=r(149370),h=r(481058),p=r(785081),g=r(286426),m=r(348909),y=r(172151),b=r(988684),v=r(578783),w=r(585593),A=r(839567),C=r(899024),E=r(773773),x=r(444163),S=r(83790),I=r(19701),k=r(899229),_=r(521058),T=r(795924);t.initLiveSpaceData={host:{address:"",audio:null,emojiReactions:null},coHosts:[],speakers:[],listeners:[]},t.initSpaceSpecificData={members:[],pendingMembers:[],contractAddressERC20:null,numberOfERC20:-1,contractAddressNFT:null,numberOfNFTTokens:-1,verificationProof:"",spaceImage:null,spaceName:"",isPublic:!1,spaceDescription:"",spaceCreator:"",spaceId:"",scheduleAt:null,scheduleEnd:null,status:null,inviteeDetails:{},liveSpaceData:t.initLiveSpaceData},t.initSpaceData=Object.assign(Object.assign({},t.initSpaceSpecificData),{connectionData:a.initVideoCallData});class M extends a.Video{constructor(e){const{signer:r,pgpPrivateKey:a,address:M,chainId:P,env:j=o.default.ENV.PROD,setSpaceData:D}=e||{};super({signer:r,chainId:P,pgpPrivateKey:a,env:j,callType:E.VIDEO_CALL_TYPE.PUSH_SPACE,onReceiveStream:(e,t,r)=>n.__awaiter(this,void 0,void 0,(function*(){var n;if(this.spaceSpecificData.status===C.ChatStatus.ACTIVE&&(null===(n=this.data.meta.broadcast)||void 0===n?void 0:n.hostAddress)&&this.data.meta.broadcast.hostAddress===this.data.local.address){(0,A.default)(this.mergedStream,e);const n=(0,i.produce)(this.spaceSpecificData.liveSpaceData,(e=>{const n=this.spaceSpecificData.liveSpaceData.listeners.findIndex((e=>e.address===t));e.speakers.push({address:t,audio:r,emojiReactions:n>-1?this.spaceSpecificData.liveSpaceData.listeners[n].emojiReactions:null}),n>-1&&e.listeners.splice(n,1)}));this.setSpaceSpecificData((()=>Object.assign(Object.assign({},this.spaceSpecificData),{liveSpaceData:n}))),yield(0,x.default)({liveSpaceData:n,pgpPrivateKey:this.pgpPrivateKey,env:this.env,spaceId:this.spaceSpecificData.spaceId,signer:this.signer,action:S.CHAT.META.GROUP.ADMIN.PRVILEGE})}})),setData:function(){}}),this.mergedStream=null,this.initialize=w.initialize,this.update=s.update,this.createAudioStream=()=>n.__awaiter(this,void 0,void 0,(function*(){yield this.create({audio:!0,video:!1})})),this.start=c.start,this.onReceiveMetaMessage=k.onReceiveMetaMessage,this.onJoinListener=_.onJoinListener,this.inviteToPromote=u.inviteToPromote,this.acceptPromotionInvite=l.acceptPromotionInvite,this.connectInvitee=d.connectInvitee,this.rejectPromotionInvite=f.rejectPromotionInvite,this.requestToBePromoted=h.requestToBePromoted,this.broadcastRaisedHand=I.broadcastRaisedHand,this.acceptPromotionRequest=p.acceptPromotionRequest,this.connectPromotor=m.connectPromotor,this.rejectPromotionRequest=g.rejectPromotionRequest,this.join=y.join,this.leave=b.leave,this.stop=v.stop,this.setData=function(e){const t=e(this.data);D((()=>Object.assign(Object.assign({},this.spaceSpecificData),{connectionData:t}))),this.data=t},this.setSpaceSpecificData=function(e){const t=e(this.spaceSpecificData);D((()=>Object.assign(Object.assign({},t),{connectionData:this.data}))),this.spaceSpecificData=t},this.setSpaceData=function(e){const t=e(Object.assign(Object.assign({},this.spaceSpecificData),{connectionData:this.data})),{connectionData:r}=t,i=n.__rest(t,["connectionData"]);this.spaceSpecificData=i,this.setData((()=>r))},this.setData((e=>(0,i.produce)(e,(e=>{e.local.address=(0,T.pCAIP10ToWallet)(M)})))),D((()=>t.initSpaceData)),this.spaceSpecificData=t.initSpaceSpecificData}}t.Space=M,t.default=M},442097:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SpaceV2=void 0;const n=r(331635),i=r(773773);t.SpaceV2=class{constructor({spaceV1Instance:e,spaceInfo:t}){this.spaceV1Instance=e,this.spaceInfo=t}start(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.start()}))}join(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.join()}))}update(e){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.update(e)}))}leave(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.leave()}))}stop(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.stop()}))}requestForMic(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.requestToBePromoted({role:i.SPACE_INVITE_ROLES.SPEAKER,promotorAddress:this.spaceInfo.spaceCreator})}))}acceptMicRequest({address:e,signal:t}){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.acceptPromotionRequest({promoteeAddress:e,spaceId:this.spaceInfo.spaceId,role:i.SPACE_INVITE_ROLES.SPEAKER,signalData:t})}))}rejectMicRequest({address:e}){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.rejectPromotionRequest({promoteeAddress:e})}))}inviteToPromote({address:e}){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.inviteToPromote({inviteeAddress:e,role:i.SPACE_INVITE_ROLES.SPEAKER})}))}acceptPromotionInvite({signal:e}){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.acceptPromotionInvite({invitorAddress:this.spaceInfo.spaceCreator,spaceId:this.spaceInfo.spaceId,signalData:e})}))}rejectPromotionInvite(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.spaceV1Instance.rejectPromotionInvite({invitorAddress:this.spaceInfo.spaceCreator})}))}config({audio:e}){"boolean"==typeof e&&this.spaceV1Instance.enableAudio({state:e})}}},822723:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.acceptPromotionInvite=void 0;const n=r(331635),i=r(773773);t.acceptPromotionInvite=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{signalData:t,invitorAddress:r,spaceId:n}=e||{};this.acceptRequest({signalData:t,senderAddress:this.data.local.address,recipientAddress:r,chatId:n,details:{type:i.SPACE_ACCEPT_REQUEST_TYPE.ACCEPT_INVITE,data:{}}})}))}},785081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.acceptPromotionRequest=void 0;const n=r(331635),i=r(389407),o=r(468786),a=r(444163),s=r(795924),c=r(899024);t.acceptPromotionRequest=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{signalData:t,promoteeAddress:r,spaceId:n,role:u}=e||{};yield(0,o.addSpeakers)({spaceId:this.spaceSpecificData.spaceId,signer:this.signer,pgpPrivateKey:this.pgpPrivateKey,speakers:[(0,s.pCAIP10ToWallet)(r)],env:this.env});const l=(0,i.produce)(this.spaceSpecificData.liveSpaceData,(e=>{const t=this.spaceSpecificData.liveSpaceData.listeners.findIndex((e=>(0,s.pCAIP10ToWallet)(e.address)===(0,s.pCAIP10ToWallet)(r)));e.listeners.splice(t,1),e.speakers.push({address:(0,s.pCAIP10ToWallet)(r),emojiReactions:null,audio:null})}));yield(0,a.default)({spaceId:this.spaceSpecificData.spaceId,pgpPrivateKey:this.pgpPrivateKey,env:this.env,signer:this.signer,liveSpaceData:l,action:c.CHAT.META.SPACE.SPEAKER.PRVILEGE})}))}},608263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addListeners=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(804991);t.addListeners=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{spaceId:r,listeners:n,account:s=null,signer:c=null,env:u=i.default.ENV.PROD,pgpPrivateKey:l=null}=e||{};try{const e=yield(0,a.addMembers)({chatId:r,members:n,account:s,signer:c,env:u,pgpPrivateKey:l});return(0,o.groupDtoToSpaceDtoV2)(e,u)}catch(d){throw console.error(`[Push SDK] - API - Error - API ${t.addListeners.name} -: `,d),Error(`[Push SDK] - API - Error - API ${t.addListeners.name} -: ${d}`)}}))},468786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addSpeakers=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(559190);t.addSpeakers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){var t,r;const{spaceId:n,speakers:s,signer:c=null,env:u=(null!==(t=null==e?void 0:e.env)&&void 0!==t?t:i.default.ENV.PROD),pgpPrivateKey:l=(null!==(r=null==e?void 0:e.pgpPrivateKey)&&void 0!==r?r:null)}=e,d=yield(0,a.addAdmins)({chatId:n,admins:s,signer:c,env:u,pgpPrivateKey:l});return(0,o.groupDtoToSpaceDtoV2)(d,u)}))},415714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.approve=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(665447);t.approve=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{status:r="Approved",account:n=null,signer:s=null,senderAddress:c,env:u=o.default.ENV.PROD,pgpPrivateKey:l=null}=e||{};try{if(null==n&&null==s)throw new Error("At least one from account or signer is necessary!");if(!(0,i.isValidPushCAIP)(c)&&!c.startsWith("spaces:"))throw new Error("Not a valid spaceId or ETH address");return yield(0,a.approve)({status:r,account:n,signer:s,senderAddress:c,env:u,pgpPrivateKey:l})}catch(d){throw console.error(`[Push SDK] - API - Error - API ${t.approve.name} -: `,d),Error(`[Push SDK] - API - Error - API ${t.approve.name} -: ${d}`)}}))},19701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcastRaisedHand=void 0;const n=r(331635),i=r(389407),o=r(444163),a=r(83790),s=r(795924);t.broadcastRaisedHand=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{promoteeAddress:t}=e||{},r=(0,i.produce)(this.spaceSpecificData.liveSpaceData,(e=>{const r=this.spaceSpecificData.liveSpaceData.listeners.findIndex((e=>(0,s.pCAIP10ToWallet)(e.address)===(0,s.pCAIP10ToWallet)(t)));-1!==r&&(e.listeners[r].handRaised=!0)}));this.setSpaceSpecificData((()=>Object.assign(Object.assign({},this.spaceSpecificData),{liveSpaceData:r}))),yield(0,o.default)({liveSpaceData:r,pgpPrivateKey:this.pgpPrivateKey,env:this.env,spaceId:this.spaceSpecificData.spaceId,signer:this.signer,action:a.CHAT.META.GROUP.USER.INTERACTION})}))}},894793:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectInvitee=void 0;const n=r(331635),i=r(389407),o=r(468786);t.connectInvitee=function(e){var t;return n.__awaiter(this,void 0,void 0,(function*(){const{signalData:r,inviteeAddress:n}=e||{};if(!(null===(t=this.spaceSpecificData)||void 0===t?void 0:t.inviteeDetails)||!Object.keys(this.spaceSpecificData.inviteeDetails).includes(n))return Promise.resolve();this.spaceSpecificData.inviteeDetails[n];this.setSpaceSpecificData((e=>(0,i.produce)(e,(e=>{e.inviteeDetails&&delete e.inviteeDetails[n]})))),yield(0,o.addSpeakers)({spaceId:this.spaceSpecificData.spaceId,signer:this.signer,pgpPrivateKey:this.pgpPrivateKey,speakers:[n]}),this.connect({signalData:r,peerAddress:n})}))}},348909:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectPromotor=void 0;const n=r(331635);t.connectPromotor=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{signalData:t,promotorAddress:r}=e||{};this.connect({signalData:t,peerAddress:r})}))}},884939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(84590);t.create=function e(t){return n.__awaiter(this,void 0,void 0,(function*(){const{signer:r,spaceName:n,spaceDescription:s,listeners:c,spaceImage:u,speakers:l,isPublic:d,contractAddressNFT:f,numberOfNFTs:h,contractAddressERC20:p,numberOfERC20:g,env:m=i.default.ENV.PROD,pgpPrivateKey:y=null,scheduleAt:b,scheduleEnd:v,rules:w}=t||{},A=w?(0,o.convertSpaceRulesToRules)(w):null;try{const e=yield(0,a.createGroup)({signer:r,groupName:n,groupDescription:s,members:c,groupImage:u,admins:l,isPublic:d,contractAddressNFT:f,numberOfNFTs:h,contractAddressERC20:p,numberOfERC20:g,env:m,pgpPrivateKey:y,groupType:"spaces",scheduleAt:b,scheduleEnd:v,rules:A});return(0,o.groupDtoToSpaceDto)(e)}catch(C){throw console.error(`[Push SDK] - API - Error - API ${e.name} -: `,C),Error(`[Push SDK] - API - Error - API ${e.name} -: ${C}`)}}))}},661947:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createV2=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(585101);t.createV2=function e(t){var r;return n.__awaiter(this,void 0,void 0,(function*(){const{signer:n,spaceName:s,spaceDescription:c,listeners:u,spaceImage:l,speakers:d,isPublic:f,env:h=i.default.ENV.PROD,pgpPrivateKey:p=null,rules:g,config:m}=t||{},y=g?(0,o.convertSpaceRulesToRules)(g):null;try{const e=yield(0,a.createGroupV2)({signer:n,groupName:s,groupDescription:c,members:u,groupImage:l,admins:d,isPublic:f,env:h,pgpPrivateKey:p,groupType:"spaces",config:{meta:null,scheduleAt:m.scheduleAt,scheduleEnd:null!==(r=m.scheduleEnd)&&void 0!==r?r:null,status:"PENDING"},rules:y});return(0,o.groupInfoDtoToSpaceInfoDto)(e)}catch(b){throw console.error(`[Push SDK] - API - Error - API ${e.name} -: `,b),new Error(`[Push SDK] - API - Error - API ${e.name} -: ${b}`)}}))}},62715:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.get=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(61638);t.get=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{spaceId:r,env:n=i.default.ENV.PROD}=e||{};try{if(null==r||0==r.length)throw new Error("spaceId cannot be null or empty");const e=yield(0,a.getGroup)({chatId:r,env:n});return(0,o.groupDtoToSpaceDto)(e)}catch(s){throw console.error(`[Push SDK] - API - Error - API ${t.get.name} -: `,s),Error(`[Push SDK] - API - Error - API ${t.get.name} -: ${s}`)}}))},572289:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAccess=void 0;const n=r(331635),i=r(397067),o=r(585101);t.getAccess=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{spaceId:r,did:n,env:a=i.default.ENV.PROD}=e||{};try{if(null==r||0===r.length)throw new Error("spaceId cannot be null or empty");if(null==n||0===n.length)throw new Error("did cannot be null or empty");const e=yield(0,o.getGroupAccess)({chatId:r,did:n,env:a});return(0,o.groupAccessToSpaceAccess)(e)}catch(s){throw console.error(`[Push SDK] - API - Error - API ${t.getAccess.name} -: `,s),Error(`[Push SDK] - API - Error - API ${t.getAccess.name} -: ${s}`)}}))},839567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=(e,t)=>{e.addStream(t,void 0)}},412277:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(331635),i=r(585101),o=r(397067),a=r(459657);t.default=({localAddress:e,spaceId:t,pgpPrivateKey:r,env:s})=>n.__awaiter(void 0,void 0,void 0,(function*(){var n,c;const u=(yield(0,i.conversationHash)({account:e,conversationId:t,env:s})).threadHash;let l=a.initLiveSpaceData;const d=yield(0,i.history)({threadhash:u,account:e,pgpPrivateKey:r,toDecrypt:!0,env:s});let f=null;for(const e of d)if(e.messageType===o.MessageType.META&&"object"==typeof e.messageObj&&null!==e.messageObj){f=e;break}return null!==f&&"object"==typeof f.messageObj&&null!==f.messageObj&&(l=null===(c=null===(n=f.messageObj)||void 0===n?void 0:n.info)||void 0===c?void 0:c.arbitrary),l}))},83621:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>e.replace("eip155:","")},444163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(331635),i=r(585101),o=r(397067);t.default=({liveSpaceData:e,action:t,spaceId:r,pgpPrivateKey:a,signer:s,env:c})=>n.__awaiter(void 0,void 0,void 0,(function*(){yield(0,i.send)({receiverAddress:r,pgpPrivateKey:a,env:c,signer:s,messageType:o.MessageType.META,messageObj:{content:t,info:{affected:[],arbitrary:e}}})}))},200635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.space=void 0;const n=r(331635);n.__exportStar(r(83621),t),n.__exportStar(r(677388),t),n.__exportStar(r(173794),t),n.__exportStar(r(62715),t),n.__exportStar(r(632179),t),n.__exportStar(r(884939),t),n.__exportStar(r(794625),t),n.__exportStar(r(468786),t),n.__exportStar(r(495473),t),n.__exportStar(r(608263),t),n.__exportStar(r(640738),t),n.__exportStar(r(415714),t),n.__exportStar(r(596025),t),n.__exportStar(r(572289),t),n.__exportStar(r(377971),t),n.__exportStar(r(661947),t);var i=r(363025);Object.defineProperty(t,"space",{enumerable:!0,get:function(){return i.spaceFeed}}),n.__exportStar(r(459657),t)},632179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.info=void 0;const n=r(331635),i=r(813951),o=r(61638),a=r(397067);t.info=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{spaceId:r,env:n=a.default.ENV.PROD}=e||{};try{if(null==r||0==r.length)throw new Error("spaceId cannot be null or empty");const e=yield(0,o.getGroup)({chatId:r,env:n});return(0,i.groupDtoToSpaceDto)(e)}catch(s){throw console.error(`[Push SDK] - API - Error - API ${t.info.name} -: `,s),Error(`[Push SDK] - API - Error - API ${t.info.name} -: ${s}`)}}))},585593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initialize=void 0;const n=r(331635),i=r(899024),o=r(62715),a=r(412277);t.initialize=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{spaceId:t}=e||{},r=yield(0,o.get)({spaceId:t,env:this.env});let n=this.spaceSpecificData.liveSpaceData;r.status===i.ChatStatus.ACTIVE&&(n=yield(0,a.default)({localAddress:this.data.local.address,spaceId:t,pgpPrivateKey:this.pgpPrivateKey,env:this.env})),this.setSpaceSpecificData((()=>Object.assign(Object.assign({},r),{liveSpaceData:n})))}))}},296075:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inviteToPromote=void 0;const n=r(331635),i=r(389407),o=r(773773);t.inviteToPromote=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{inviteeAddress:t,role:r}=e||{};this.setSpaceSpecificData((e=>(0,i.produce)(e,(e=>{e.inviteeDetails&&(e.inviteeDetails[t]=r)})))),this.request({senderAddress:this.data.local.address,recipientAddress:t,chatId:this.spaceSpecificData.spaceId,details:{type:o.SPACE_REQUEST_TYPE.INVITE_TO_PROMOTE,data:{role:r}}})}))}},172151:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.join=void 0;const n=r(331635),i=r(773773),o=r(899024),a=r(415714),s=r(62715),c=r(503892),u=r(83621);t.join=function e(){return n.__awaiter(this,void 0,void 0,(function*(){try{const e=yield(0,s.get)({spaceId:this.spaceSpecificData.spaceId,env:this.env});if(e.status!==o.ChatStatus.ACTIVE)throw new Error("Space not active yet");let t=!1,r=!1;const n=(0,u.default)(this.data.local.address);e.members.forEach((e=>{(0,u.default)(e.wallet)===n&&(e.isSpeaker?t=!0:r=!0)}));let l=!1;e.pendingMembers.forEach((e=>{(0,u.default)(e.wallet)===n&&e.isSpeaker&&(l=!0)}));const d=(0,u.default)(e.spaceCreator),f=(0,c.default)(this.data.incoming,d);if((t||l)&&f>-1)return Promise.resolve();t||r||(yield(0,a.approve)({signer:this.signer,pgpPrivateKey:this.pgpPrivateKey,senderAddress:this.spaceSpecificData.spaceId,env:this.env})),(t||l)&&(!this.data.local.stream&&(yield this.create({audio:!0,video:!1})),yield this.request({senderAddress:this.data.local.address,recipientAddress:d,chatId:this.spaceSpecificData.spaceId,details:{type:i.SPACE_REQUEST_TYPE.JOIN_SPEAKER,data:{}}}));const h=yield(0,s.get)({spaceId:this.spaceSpecificData.spaceId,env:this.env});this.setSpaceSpecificData((()=>Object.assign(Object.assign({},h),{liveSpaceData:this.spaceSpecificData.liveSpaceData})))}catch(t){throw console.error(`[Push SDK] - API - Error - API ${e.name} -: `,t),Error(`[Push SDK] - API - Error - API ${e.name} -: ${t}`)}}))}},988684:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.leave=void 0;const n=r(331635),i=r(773773);t.leave=function(){return n.__awaiter(this,void 0,void 0,(function*(){try{this.data.incoming.slice(1).forEach((({address:e})=>{this.disconnect({peerAddress:e,details:{type:i.SPACE_DISCONNECT_TYPE.LEAVE,data:{}}})}))}catch(e){throw console.error(`[Push SDK] - API - Error - API ${stop.name} -: `,e),Error(`[Push SDK] - API - Error - API ${stop.name} -: ${e}`)}}))}},521058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onJoinListener=void 0;const n=r(331635),i=r(444163),o=r(62715),a=r(795924),s=r(389407),c=r(83790);t.onJoinListener=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{receivedAddress:t}=e||{};if((0,a.pCAIP10ToWallet)(this.spaceSpecificData.spaceCreator)!==this.data.local.address)return;if(!(yield(0,o.get)({spaceId:this.spaceSpecificData.spaceId,env:this.env})).members.find((e=>(0,a.pCAIP10ToWallet)(e.wallet)===(0,a.pCAIP10ToWallet)(t)&&!e.isSpeaker)))return;const r=(0,s.produce)(this.spaceSpecificData.liveSpaceData,(e=>{this.spaceSpecificData.liveSpaceData.listeners.find((e=>(0,a.pCAIP10ToWallet)(e.address)===(0,a.pCAIP10ToWallet)(t)))||e.listeners.push({address:(0,a.pCAIP10ToWallet)(t),handRaised:!1,emojiReactions:null})}));this.setSpaceSpecificData((()=>Object.assign(Object.assign({},this.spaceSpecificData),{liveSpaceData:r}))),yield(0,i.default)({spaceId:this.spaceSpecificData.spaceId,pgpPrivateKey:this.pgpPrivateKey,env:this.env,signer:this.signer,liveSpaceData:r,action:c.CHAT.META.SPACE.LISTENER.ADD})}))}},899229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onReceiveMetaMessage=void 0;const n=r(397067);t.onReceiveMetaMessage=function(e){var t,r;const{receivedMetaMessage:i}=e||{};if(i.messageType!==n.MessageType.META||"object"!=typeof i.messageObj||!(null===(r=null===(t=null==i?void 0:i.messageObj)||void 0===t?void 0:t.info)||void 0===r?void 0:r.arbitrary))return;const o=i.messageObj.info.arbitrary;this.setSpaceSpecificData((()=>Object.assign(Object.assign({},this.spaceSpecificData),{liveSpaceData:o})))}},149370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rejectPromotionInvite=void 0;const n=r(331635);t.rejectPromotionInvite=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{invitorAddress:t}=e||{};this.disconnect({peerAddress:t})}))}},286426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rejectPromotionRequest=void 0;const n=r(331635),i=r(389407),o=r(444163),a=r(83790),s=r(795924);t.rejectPromotionRequest=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{promoteeAddress:t}=e||{};this.disconnect({peerAddress:(0,s.pCAIP10ToWallet)(t)});const r=(0,i.produce)(this.spaceSpecificData.liveSpaceData,(e=>{const r=this.spaceSpecificData.liveSpaceData.listeners.findIndex((e=>e.address===(0,s.pCAIP10ToWallet)(t)));r>-1&&(e.listeners[r].handRaised=!1)}));this.setSpaceSpecificData((()=>Object.assign(Object.assign({},this.spaceSpecificData),{liveSpaceData:r}))),yield(0,o.default)({liveSpaceData:r,pgpPrivateKey:this.pgpPrivateKey,env:this.env,spaceId:this.spaceSpecificData.spaceId,signer:this.signer,action:a.CHAT.META.GROUP.USER.INTERACTION})}))}},640738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeListeners=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(245374);t.removeListeners=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{spaceId:r,listeners:n,account:s=null,signer:c=null,env:u=i.default.ENV.PROD,pgpPrivateKey:l=null}=e||{};try{const e=yield(0,a.removeMembers)({chatId:r,members:n,account:s,signer:c,env:u,pgpPrivateKey:l});return(0,o.groupDtoToSpaceDtoV2)(e,u)}catch(d){throw console.error(`[Push SDK] - API - Error - API ${t.removeListeners.name} -: `,d),Error(`[Push SDK] - API - Error - API ${t.removeListeners.name} -: ${d}`)}}))},495473:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeSpeakers=void 0;const n=r(331635),i=r(397067),o=r(813951),a=r(63601);t.removeSpeakers=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{spaceId:r,speakers:n,signer:s=null,env:c=i.default.ENV.PROD,pgpPrivateKey:u=null}=e||{};try{const e=yield(0,a.removeAdmins)({chatId:r,admins:n,signer:s,env:c,pgpPrivateKey:u});return(0,o.groupDtoToSpaceDtoV2)(e,c)}catch(l){throw console.error(`[Push SDK] - API - Error - API ${t.removeSpeakers.name} -: `,l),Error(`[Push SDK] - API - Error - API ${t.removeSpeakers.name} -: ${l}`)}}))},481058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestToBePromoted=void 0;const n=r(331635),i=r(795924),o=r(773773);t.requestToBePromoted=function(e){return n.__awaiter(this,void 0,void 0,(function*(){const{role:t,promotorAddress:r}=e||{};this.request({senderAddress:this.data.local.address,recipientAddress:(0,i.pCAIP10ToWallet)(r),chatId:this.spaceSpecificData.spaceId,details:{type:o.SPACE_REQUEST_TYPE.REQUEST_TO_PROMOTE,data:{role:t}}})}))}},596025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requests=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(441786);t.requests=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:r,pgpPrivateKey:n,env:c=o.default.ENV.PROD,toDecrypt:u=!1,page:l=1,limit:d=10}=e||{},f=yield(0,i.convertToValidDID)(r,c),h=`${(0,i.getAPIBaseUrls)(c)}/v1/spaces/users/${f}/requests?page=${l}&limit=${d}`;try{if(!(0,i.isValidPushCAIP)(f))throw new Error("Invalid address!");const e=(yield(0,s.axiosGet)(h)).data.requests;return yield(0,a.getSpaceInboxLists)({lists:e,user:f,toDecrypt:u,pgpPrivateKey:n,env:c})}catch(p){throw console.error(`[Push SDK] - API ${t.requests.name}: `,p),Error(`[Push SDK] - API ${t.requests.name}: ${p}`)}}))},377971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.search=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786);t.search=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{searchTerm:r,pageNumber:n,pageSize:s,env:c=o.default.ENV.PROD}=e||{};try{const e=`${(0,i.getAPIBaseUrls)(c)}/v1/spaces/search`;return(0,a.axiosPost)(e,{searchTerm:r,pageNumber:n,pageSize:s}).then((e=>e.data)).catch((e=>{var t,r;if(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)throw new Error(null===(r=null==e?void 0:e.response)||void 0===r?void 0:r.data);throw new Error(e)}))}catch(u){throw console.error(`[Push SDK] - API - Error - API ${t.search.name} -: `,u),Error(`[Push SDK] - API - Error - API ${t.search.name} -: ${u}`)}}))},363025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spaceFeed=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(441786);t.spaceFeed=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:r,pgpPrivateKey:n,env:c=o.default.ENV.PROD,toDecrypt:u=!1,recipient:l}=e||{},d=yield(0,i.convertToValidDID)(r,c),f=yield(0,i.convertToValidDID)(l,c);if(!(0,i.isValidPushCAIP)(d))throw new Error(`Invalid address ${d}`);const h=`${(0,i.getAPIBaseUrls)(c)}/v1/spaces/users/${d}/space/${f}`;try{const e=(yield(0,s.axiosGet)(h)).data;if(0!==Object.keys(e).length){const[t]=yield(0,a.getSpaceInboxLists)({lists:[e],user:d,toDecrypt:u,pgpPrivateKey:n,env:c});return t}return e}catch(p){throw console.error(`[Push SDK] - API ${t.spaceFeed.name}: `,p),Error(`[Push SDK] - API ${t.spaceFeed.name}: ${p}`)}}))},677388:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spaces=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(441786);t.spaces=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:r,pgpPrivateKey:n,env:c=o.default.ENV.PROD,page:u=1,limit:l=10}=e||{};if(!(0,i.isValidPushCAIP)(r))throw new Error("Invalid address!");const d=yield(0,i.convertToValidDID)(r,c),f=`${`${(0,i.getAPIBaseUrls)(c)}/v1/spaces/users/${d}/spaces?page=${u}&limit=${l}`}`;try{const e=!1,t=(yield(0,s.axiosGet)(f)).data.spaces;return yield(0,a.getSpaceInboxLists)({lists:t,user:d,toDecrypt:e,pgpPrivateKey:n,env:c})}catch(h){throw console.error(`[Push SDK] - API ${t.spaces.name}: `,h),Error(`[Push SDK] - API ${t.spaces.name}: ${h}`)}}))},53283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.start=void 0;const n=r(331635),i=r(899024),o=r(813951),a=r(62715),s=r(681089),c=r(389407),u=r(795924),l=r(83790),d=r(444163);t.start=function e(){return n.__awaiter(this,void 0,void 0,(function*(){try{!this.data.local.stream&&(yield this.create({audio:!0,video:!1}));const e=yield(0,a.get)({spaceId:this.spaceSpecificData.spaceId,env:this.env});if(e.status!==i.ChatStatus.PENDING)throw new Error("Unable to start the space as it is not in the pending state");if(this.data.local.address!==(0,u.pCAIP10ToWallet)(e.spaceCreator))throw new Error("Only host is allowed to start a space");const t=(0,o.getSpacesMembersList)(e.members,e.pendingMembers),r=(0,o.getSpaceAdminsList)(e.members,e.pendingMembers),n=yield(0,s.updateGroup)({chatId:this.spaceSpecificData.spaceId,groupName:e.spaceName,groupImage:e.spaceImage,groupDescription:e.spaceDescription,members:t,admins:r,signer:this.signer,env:this.env,pgpPrivateKey:this.pgpPrivateKey,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:i.ChatStatus.ACTIVE}),f={host:{address:this.data.local.address,audio:this.data.local.audio,emojiReactions:null},coHosts:[],speakers:[],listeners:[]};yield(0,d.default)({liveSpaceData:f,action:l.CHAT.META.SPACE.CREATE,spaceId:this.spaceSpecificData.spaceId,signer:this.signer,pgpPrivateKey:this.pgpPrivateKey,env:this.env}),this.setSpaceData((e=>(0,c.produce)(e,(e=>{(e=Object.assign(Object.assign({},(0,o.groupDtoToSpaceDto)(n)),{liveSpaceData:f,connectionData:e.connectionData})).connectionData.meta.broadcast={livepeerInfo:null,hostAddress:this.data.local.address}}))))}catch(t){throw console.error(`[Push SDK] - API - Error - API ${e.name} -: `,t),Error(`[Push SDK] - API - Error - API ${e.name} -: ${t}`)}}))}},578783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stop=void 0;const n=r(331635),i=r(813951),o=r(681089),a=r(62715),s=r(899024),c=r(773773);t.stop=function e(){return n.__awaiter(this,void 0,void 0,(function*(){try{const e=yield(0,a.get)({spaceId:this.spaceSpecificData.spaceId,env:this.env});if(e.status===s.ChatStatus.ENDED)throw new Error("Space already ended");const t=(0,i.getSpacesMembersList)(e.members,e.pendingMembers),r=(0,i.getSpaceAdminsList)(e.members,e.pendingMembers),n=yield(0,o.updateGroup)({chatId:this.spaceSpecificData.spaceId,groupName:e.spaceName,groupImage:e.spaceImage,groupDescription:e.spaceDescription,members:t,admins:r,signer:this.signer,env:this.env,pgpPrivateKey:this.pgpPrivateKey,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:s.ChatStatus.ENDED});this.setSpaceSpecificData((()=>Object.assign(Object.assign({},(0,i.groupDtoToSpaceDto)(n)),{liveSpaceData:this.spaceSpecificData.liveSpaceData}))),this.data.incoming.slice(1).forEach((({address:e})=>{this.disconnect({peerAddress:e,details:{type:c.SPACE_DISCONNECT_TYPE.STOP,data:{}}})}))}catch(t){throw console.error(`[Push SDK] - API - Error - API ${e.name} -: `,t),Error(`[Push SDK] - API - Error - API ${e.name} -: ${t}`)}}))}},173794:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trending=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(813951),s=r(441786);t.trending=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{env:r=o.default.ENV.PROD,page:n=1,limit:c=10}=e||{},u=`${(0,i.getAPIBaseUrls)(r)}/v1/spaces/trending?page=${n}&limit=${c}`;try{const e=(yield(0,s.axiosGet)(u)).data.spaces;return yield(0,a.getTrendingSpaceInboxLists)({lists:e,env:r})}catch(l){throw console.error(`[Push SDK] - API ${t.trending.name}: `,l),Error(`[Push SDK] - API ${t.trending.name}: ${l}`)}}))},995954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.update=void 0;const n=r(331635),i=r(899024),o=r(813951),a=r(681089),s=r(62715);t.update=function e(t){return n.__awaiter(this,void 0,void 0,(function*(){const{spaceName:r,spaceImage:n,spaceDescription:c,scheduleAt:u,scheduleEnd:l,meta:d}=t||{};try{const e=yield(0,s.get)({spaceId:this.spaceSpecificData.spaceId,env:this.env}),t=(0,o.getSpacesMembersList)(e.members,e.pendingMembers),f=(0,o.getSpaceAdminsList)(e.members,e.pendingMembers);if(e.status===i.ChatStatus.ACTIVE&&u)throw new Error("Unable change the start date/time of an active space");if(e.status===i.ChatStatus.ENDED&&l)throw new Error("Unable change the end date/time of an ended space");const h=yield(0,a.updateGroup)({chatId:this.spaceSpecificData.spaceId,groupName:r||e.spaceName,groupImage:n||e.spaceImage,groupDescription:c||e.spaceDescription,members:t,admins:f,signer:this.signer,env:this.env,pgpPrivateKey:this.pgpPrivateKey,scheduleAt:u||e.scheduleAt,scheduleEnd:l||e.scheduleEnd,meta:d||e.meta});this.setSpaceSpecificData((()=>Object.assign(Object.assign({},(0,o.groupDtoToSpaceDto)(h)),{liveSpaceData:this.spaceSpecificData.liveSpaceData})))}catch(f){throw console.error(`[Push SDK] - API - Error - API ${e.name} -: `,f),Error(`[Push SDK] - API - Error - API ${e.name} -: ${f}`)}}))}},794625:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.update=void 0;const n=r(331635),i=r(397067),o=r(899024),a=r(813951),s=r(681089),c=r(62715);t.update=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{spaceId:r,spaceName:n,spaceImage:u,spaceDescription:l,listeners:d,speakers:f,signer:h,env:p=i.default.ENV.PROD,pgpPrivateKey:g=null,scheduleAt:m,scheduleEnd:y,status:b}=e||{};try{const e=yield(0,c.get)({spaceId:r,env:p});if(e.status===o.ChatStatus.ACTIVE&&m)throw new Error("Unable change the start date/time of an active space");if(e.status===o.ChatStatus.ENDED&&y)throw new Error("Unable change the end date/time of an ended space");const t=yield(0,s.updateGroup)({chatId:r,groupName:n,groupImage:u,groupDescription:l,members:d,admins:f,signer:h,env:p,pgpPrivateKey:g,scheduleAt:m,scheduleEnd:y,status:b});return(0,a.groupDtoToSpaceDto)(t)}catch(v){throw console.error(`[Push SDK] - API - Error - API ${t.update.name} -: `,v),Error(`[Push SDK] - API - Error - API ${t.update.name} -: ${v}`)}}))},899024:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotifictaionType=t.VideoCallStatus=t.GROUP_INVITER_ROLE=t.GROUP_RULES_PERMISSION=t.GROUP_RULES_SUB_CATEGORY=t.GROUP_RULES_CATEGORY=t.ConditionType=t.ChatStatus=void 0;const n=r(331635);n.__exportStar(r(83790),t),n.__exportStar(r(293078),t),function(e){e.ACTIVE="ACTIVE",e.PENDING="PENDING",e.ENDED="ENDED"}(t.ChatStatus||(t.ChatStatus={})),function(e){e.PUSH="PUSH",e.GUILD="GUILD"}(t.ConditionType||(t.ConditionType={})),function(e){e.PUSH="PUSH",e.GUILD="GUILD",e.ERC721="ERC721",e.ERC20="ERC20",e.CUSTOM_ENDPOINT="CustomEndpoint",e.INVITE="INVITE"}(t.GROUP_RULES_CATEGORY||(t.GROUP_RULES_CATEGORY={})),function(e){e.DEFAULT="DEFAULT",e.HOLDER="holder",e.GET="GET"}(t.GROUP_RULES_SUB_CATEGORY||(t.GROUP_RULES_SUB_CATEGORY={})),function(e){e.ENTRY="Entry",e.CHAT="Chat"}(t.GROUP_RULES_PERMISSION||(t.GROUP_RULES_PERMISSION={})),function(e){e.ADMIN="ADMIN",e.OWNER="OWNER"}(t.GROUP_INVITER_ROLE||(t.GROUP_INVITER_ROLE={})),function(e){e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.INITIALIZED=1]="INITIALIZED",e[e.RECEIVED=2]="RECEIVED",e[e.CONNECTED=3]="CONNECTED",e[e.DISCONNECTED=4]="DISCONNECTED",e[e.ENDED=5]="ENDED",e[e.RETRY_INITIALIZED=6]="RETRY_INITIALIZED",e[e.RETRY_RECEIVED=7]="RETRY_RECEIVED"}(t.VideoCallStatus||(t.VideoCallStatus={})),function(e){e[e.BROADCAT=1]="BROADCAT",e[e.TARGETTED=3]="TARGETTED",e[e.SUBSET=4]="SUBSET"}(t.NotifictaionType||(t.NotifictaionType={}))},83790:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHAT=void 0,t.CHAT={META:{GROUP:{CREATE:"CREATE_GROUP",MEMBER:{ADD:"ADD_MEMBER",REMOVE:"REMOVE_MEMBER",PRIVILEGE:"ASSIGN_MEMBER_PRIVILEGE"},ADMIN:{PRVILEGE:"ASSIGN_ADMIN_PRIVILEGE"},UPDATE:"UPDATE_GROUP",PROFILE:{UPDATE:"UPDATE_GROUP_PROFILE"},META:{UPDATE:"UPDATE_GROUP_META"},USER:{INTERACTION:"USER_INTERACTION"}},SPACE:{CREATE:"CREATE_SPACE",LISTENER:{ADD:"ADD_LISTENER",REMOVE:"REMOVE_LISTENER",PRVILEGE:"ASSIGN_LISTENER_PRIVILEGE"},SPEAKER:{PRVILEGE:"ASSIGN_SPEAKER_PRIVILEGE"},COHOST:{PRVILEGE:"ASSIGN_COHOST_PRIVILEGE"}}},REACTION:{THUMBSUP:"\ud83d\udc4d",THUMBSDOWN:"\ud83d\udc4e",HEART:"\u2764\ufe0f",CLAP:"\ud83d\udc4f",LAUGH:"\ud83d\ude02",SAD:"\ud83d\ude22",ANGRY:"\ud83d\ude21",SUPRISE:"\ud83d\ude32",FIRE:"\ud83d\udd25"},RECEIPT:{READ:"READ_RECEIPT"},UA:{LISTENER:{JOIN:"LISTENER_JOIN",LEAVE:"LISTENER_LEAVE",MICREQUEST:"LISTENER_REQUEST_MIC"},SPEAKER:{MIC_ON:"SPEAKER_MIC_ON",MIC_OFF:"SPEAKER_MIC_OFF"}},INTENT:{ACCEPT:"ACCEPT_INTENT",REJECT:"REJECT_INTENT",JOIN:"JOIN_GROUP",LEAVE:"LEAVE_GROUP"}}},293078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},923270:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.authUpdate=void 0;const n=r(331635),i=r(813951),o=r(397067),a=r(795924),s=r(552096),c=r(750539);var u;!function(e){e["x25519-xsalsa20-poly1305"]="PGP_V1",e.aes256GcmHkdfSha256="PGP_V2",e["eip191-aes256-gcm-hkdf-sha256"]="PGP_V3",e["pgpv1:nft"]="NFTPGP_V1"}(u||(u={}));t.authUpdate=e=>n.__awaiter(void 0,void 0,void 0,(function*(){var r;const{pgpPrivateKey:n,pgpEncryptionVersion:l,signer:d,pgpPublicKey:f,account:h=null,env:p=o.default.ENV.PROD,additionalMeta:g,progressHook:m}=e||{};try{const e=(0,i.getWallet)({account:h,signer:d}),t=yield(0,i.getAccountAddress)(e),y=l===o.default.ENCRYPTION_TYPE.NFTPGP_V1;if(!(0,a.isValidPushCAIP)(t))throw new Error("Invalid address!");const b=(0,a.walletToPCAIP10)(t),v=yield(0,c.get)({account:b,env:p});if(!v||!v.encryptedPrivateKey)throw new Error("User not Found!");y?null==m||m(s.default["PUSH-AUTH-UPDATE-05"]):null==m||m(s.default["PUSH-AUTH-UPDATE-01"](u[l]));const w=yield(0,a.preparePGPPublicKey)(l,f,e);y?null==m||m(s.default["PUSH-AUTH-UPDATE-06"]):null==m||m(s.default["PUSH-AUTH-UPDATE-02"](u[l]));const A=yield(0,a.encryptPGPKey)(l,n,e,g);if(l===o.ENCRYPTION_TYPE.NFTPGP_V1){const t=yield(0,a.encryptPGPKey)(o.ENCRYPTION_TYPE.PGP_V3,null===(r=null==g?void 0:g.NFTPGP_V1)||void 0===r?void 0:r.password,e,g);A.encryptedPassword=t}null==m||m(s.default["PUSH-AUTH-UPDATE-03"]);const C={user:v.did,wallet:e,publicKey:w,encryptedPrivateKey:JSON.stringify(A),env:p},E=yield(0,i.authUpdateUserService)(C);return null==m||m(s.default["PUSH-AUTH-UPDATE-04"]),E}catch(y){const e=s.default["PUSH-ERROR-00"];throw null==m||m(e(t.authUpdate.name,y)),Error(`[Push SDK] - API - Error - API ${t.authUpdate.name} -: ${y}`)}}))},599669:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUserCore=t.create=void 0;const n=r(331635),i=r(813951),o=r(397067),a=r(795924),s=r(552096);t.create=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return yield(0,t.createUserCore)(e,i.PGPHelper)}));t.createUserCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){var n,c;const u="$0Pc",{env:l=o.default.ENV.PROD,account:d=null,signer:f=null,version:h=o.default.ENC_TYPE_V3,additionalMeta:p={NFTPGP_V1:{password:u+(0,i.generateRandomSecret)(10)}},progressHook:g,origin:m}=e||{};try{if(null==d&&null==f)throw new Error("At least one from account or signer is necessary!");const e=(0,i.getWallet)({account:d,signer:f}),t=yield(0,i.getAccountAddress)(e);if(!(0,a.isValidPushCAIP)(t))throw new Error("Invalid address!");(null===(n=null==p?void 0:p.NFTPGP_V1)||void 0===n?void 0:n.password)&&(0,a.validatePssword)(p.NFTPGP_V1.password);const u=(0,a.walletToPCAIP10)(t);let y=h;(0,a.isValidNFTCAIP)(u)?y=o.default.ENC_TYPE_V4:f||(y=o.default.ENC_TYPE_V1),null==g||g(s.default["PUSH-CREATE-01"]);const b=yield r.generateKeyPair();null==g||g(s.default["PUSH-CREATE-02"]);const v=yield(0,a.preparePGPPublicKey)(y,b.publicKeyArmored,e);null==g||g(s.default["PUSH-CREATE-03"]);const w=yield(0,a.encryptPGPKey)(y,b.privateKeyArmored,e,p);if(y===o.default.ENC_TYPE_V4){const t=yield(0,a.encryptPGPKey)(o.default.ENC_TYPE_V3,null===(c=p.NFTPGP_V1)||void 0===c?void 0:c.password,e,p);w.encryptedPassword=t}null==g||g(s.default["PUSH-CREATE-04"]);const A={user:u,wallet:e,publicKey:v,encryptedPrivateKey:JSON.stringify(w),env:l,origin:m},C=yield(0,i.createUserService)(A);return null==g||g(s.default["PUSH-CREATE-05"]),C.decryptedPrivateKey=b.privateKeyArmored,C}catch(y){const e=s.default["PUSH-ERROR-00"];throw null==g||g(e(t.create.name,y)),Error(`[Push SDK] - API - Error - API ${t.create.name} -: ${y}`)}}))},900608:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUserWithProfile=void 0;const n=r(331635),i=r(599669),o=r(626129),a=r(795924);t.createUserWithProfile=e=>n.__awaiter(void 0,void 0,void 0,(function*(){try{let t=yield(0,i.create)(e);if(e.profile){const r=yield(0,a.decryptPGPKey)({account:t.did,encryptedPGPPrivateKey:t.encryptedPrivateKey,env:e.env,signer:e.signer});t=yield(0,o.profileUpdate)({account:t.did,env:e.env,pgpPrivateKey:r,profile:e.profile})}return t}catch(t){throw new Error(`[Push SDK] - Error in createUserWithProfile -: ${t}`)}}))},241551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decryptAuth=void 0;const n=r(331635),i=r(397067),o=r(795924),a=r(552096);t.decryptAuth=e=>n.__awaiter(void 0,void 0,void 0,(function*(){var r;const{account:n,signer:s,env:c=i.default.ENV.PROD,additionalMeta:u,progressHook:l}=e||{};try{if(!(0,o.isValidNFTCAIP)(n))return null;null==l||l(a.default["PUSH-DECRYPT-AUTH-01"]);const e=yield(0,o.decryptPGPKey)({encryptedPGPPrivateKey:null===(r=null==u?void 0:u.NFTPGP_V1)||void 0===r?void 0:r.encryptedPassword,signer:s,account:n,env:c});return null==l||l(a.default["PUSH-DECRYPT-AUTH-02"]),e}catch(d){throw null==l||l(a.default["PUSH-ERROR-00"](t.decryptAuth.name,d)),Error(`[Push SDK] - API - Error - API ${t.decryptAuth.name} -: ${d}`)}}))},609397:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDelegations=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786);t.getDelegations=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{user:t,env:r=o.default.ENV.PROD}=e||{},n=yield(0,i.getCAIPAddress)(r,t,"User"),s=`${`${(0,i.getAPIBaseUrls)(r)}/v1/users/${n}/delegations`}`;return(0,a.axiosGet)(s).then((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.delegations)||[]})).catch((e=>{console.error(`[EPNS-SDK] - API ${s}: `,e)}))}))},582135:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeeds=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(710644),s=r(441786);t.getFeeds=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{user:t,env:r=o.default.ENV.PROD,page:n=o.default.PAGINATION.INITIAL_PAGE,limit:c=o.default.PAGINATION.LIMIT,spam:u=!1,raw:l=!1}=e||{},d=yield(0,i.getCAIPAddress)(r,t,"User"),f=`${(0,i.getAPIBaseUrls)(r)}/v1/users/${d}/feeds`,h={page:n,limit:(0,i.getLimit)(c),spam:u},p=`${f}?${(0,i.getQueryParams)(h)}`;return(0,s.axiosGet)(p).then((e=>{var t,r;return l?(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.feeds)||[]:(0,a.parseApiResponse)(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.feeds)||[]})).catch((e=>{console.error(`[Push SDK] - API ${p}: `,e)}))}))},493233:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeedsPerChannel=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(710644),s=r(441786);t.getFeedsPerChannel=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{user:t,env:r=o.default.ENV.PROD,page:n=o.default.PAGINATION.INITIAL_PAGE,limit:c=o.default.PAGINATION.LIMIT,spam:u=!1,raw:l=!1,channels:d=[]}=e||{},f=yield(0,i.getCAIPAddress)(r,t,"User"),h=(0,i.getAPIBaseUrls)(r);if(0==d.length)throw new Error("channels cannot be empty");const p=`${h}/v1/users/${f}/channels/${yield(0,i.getCAIPAddress)(r,d[0],"Channel")}/feeds`,g={page:n,limit:(0,i.getLimit)(c),spam:u},m=`${p}?${(0,i.getQueryParams)(g)}`;return(0,s.axiosGet)(m).then((e=>{var t,r;return l?(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.feeds)||[]:(0,a.parseApiResponse)(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.feeds)||[]})).catch((e=>{console.error(`[Push SDK] - API ${m}: `,e)}))}))},973704:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSubscriptions=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(441786),s=r(634074);t.getSubscriptions=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{user:t,env:r=o.default.ENV.PROD,channel:n=null,raw:c=!0}=e||{},u=yield(0,i.getCAIPAddress)(r,t,"User"),l=`${`${(0,i.getAPIBaseUrls)(r)}/v1/users/${u}/subscriptions`}?${n?(0,i.getQueryParams)({channel:n}):""}`;return(0,a.axiosGet)(l).then((e=>{var t,r;return c?(null===(t=e.data)||void 0===t?void 0:t.subscriptions)||[]:(0,s.parseSubscriptionsApiResponse)((null===(r=e.data)||void 0===r?void 0:r.subscriptions)||[])})).catch((e=>{console.error(`[Push SDK] - API ${l}: `,e)}))}))},750539:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.get=void 0;const n=r(331635),i=r(527596),o=r(795924),a=r(397067),s=r(565870),c=r(441786);t.get=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{account:t,env:r=a.default.ENV.PROD}=e||{};if(!(0,i.isValidPushCAIP)(t))throw new Error("Invalid address!");const u=(0,i.walletToPCAIP10)(t),l=`${(0,o.getAPIBaseUrls)(r)}/v2/users/?caip10=${u}`;return(0,c.axiosGet)(l).then((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return e.data&&(e.data.publicKey=yield(0,o.verifyProfileKeys)(e.data.encryptedPrivateKey,e.data.publicKey,e.data.did,e.data.wallets,e.data.verificationProof)),(0,s.populateDeprecatedUser)(e.data)})))).catch((e=>{throw console.error(`[Push SDK] - API ${l}: `,e),Error(`[Push SDK] - API ${l}: ${e}`)}))}))},482120:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBatch=void 0;const n=r(331635),i=r(527596),o=r(795924),a=r(397067),s=r(565870),c=r(441786);t.getBatch=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{env:t=a.default.ENV.PROD,userIds:r}=e||{},u=`${(0,o.getAPIBaseUrls)(t)}/v2/users/batch`;if(r.length>100)throw new Error("Too many user IDs. Maximum allowed: 100");for(let e=0;e(e.data.users.forEach(((t,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){e.data.users[r].publicKey=yield(0,o.verifyProfileKeys)(t.encryptedPrivateKey,t.publicKey,t.did,t.caip10,t.verificationProof),e.data.users[r]=(0,s.populateDeprecatedUser)(e.data.users[r])})))),e.data))).catch((e=>{throw console.error(`[Push SDK] - API ${u}: `,e),Error(`[Push SDK] - API ${u}: ${e}`)}))}))},75232:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.profile=t.auth=void 0;const n=r(331635),i=r(923270),o=r(626129);n.__exportStar(r(599669),t),n.__exportStar(r(582135),t),n.__exportStar(r(973704),t),n.__exportStar(r(750539),t),n.__exportStar(r(609397),t),n.__exportStar(r(482120),t),n.__exportStar(r(71827),t),n.__exportStar(r(241551),t),n.__exportStar(r(900608),t),n.__exportStar(r(493233),t),t.auth={update:i.authUpdate},t.profile={update:o.profileUpdate,updateCore:o.profileUpdateCore}},626129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.profileUpdateCore=t.profileUpdate=void 0;const n=r(331635),i=r(921396),o=r(813951),a=r(397067),s=r(795924),c=r(750539),u=r(565870),l=r(552096),d=r(441786);t.profileUpdate=e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,t.profileUpdateCore)(e,o.PGPHelper)}));t.profileUpdateCore=(e,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{pgpPrivateKey:o,account:f,profile:h,env:p=a.default.ENV.PROD,progressHook:g}=e||{};try{if(!(0,s.isValidPushCAIP)(f))throw new Error("Invalid account!");const e=yield(0,c.get)({account:f,env:p});if(!e||!e.did)throw new Error("User not Found!");let t=null;if(h.blockedUsersList){for(const t of h.blockedUsersList)if(!(0,s.isValidPushCAIP)(t))throw new Error("Invalid address in the blockedUsersList: "+t);const e=h.blockedUsersList.map((e=>n.__awaiter(void 0,void 0,void 0,(function*(){return(0,s.convertToValidDID)(e,p)}))));t=yield Promise.all(e),t=Array.from(new Set(t))}const a={name:h.name?h.name:e.profile.name,desc:h.desc?h.desc:e.profile.desc,picture:h.picture?h.picture:e.profile.picture,blockedUsersList:h.blockedUsersList?t:[]},m=i.SHA256(JSON.stringify(a)).toString(),y=yield r.sign({message:m,signingKey:o}),b=`${"pgpv2"}:${y}`,v=Object.assign(Object.assign({},a),{verificationProof:b}),w=`${(0,s.getAPIBaseUrls)(p)}/v2/users/${e.did}/profile`;null==g||g(l.default["PUSH-PROFILE-UPDATE-01"]);const A=yield(0,d.axiosPut)(w,v);return A.data&&(A.data.publicKey=yield(0,s.verifyProfileKeys)(A.data.encryptedPrivateKey,A.data.publicKey,A.data.did,A.data.wallets,A.data.verificationProof)),null==g||g(l.default["PUSH-PROFILE-UPDATE-02"]),(0,u.populateDeprecatedUser)(A.data)}catch(m){const e=l.default["PUSH-ERROR-00"];throw null==g||g(e(t.profileUpdate.name,m)),Error(`[Push SDK] - API - Error - API ${t.profileUpdate.name} -: ${m}`)}}))},71827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.upgrade=void 0;const n=r(331635),i=r(813951),o=r(397067),a=r(795924),s=r(923270),c=r(750539),u=r(552096);t.upgrade=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const{env:r=o.default.ENV.PROD,account:n=null,signer:l,additionalMeta:d,progressHook:f}=e||{};try{const e=(0,i.getWallet)({account:n,signer:l}),t=yield(0,i.getAccountAddress)(e);if(!(0,a.isValidPushCAIP)(t))throw new Error("Invalid address!");const h=yield(0,c.get)({account:t,env:r});if(!h||!h.encryptedPrivateKey)throw new Error("User Not Found!");const p=o.default.ENCRYPTION_TYPE.PGP_V3,{version:g}=JSON.parse(h.encryptedPrivateKey);if(g===p||g===o.default.ENCRYPTION_TYPE.NFTPGP_V1)return h;null==f||f(u.default["PUSH-UPGRADE-02"]);const m=yield(0,a.decryptPGPKey)({encryptedPGPPrivateKey:h.encryptedPrivateKey,signer:l,env:r,toUpgrade:!1,additionalMeta:d}),y=yield(0,s.authUpdate)({pgpPrivateKey:m,pgpEncryptionVersion:p,signer:l,pgpPublicKey:h.publicKey,account:h.did,env:r,additionalMeta:d,progressHook:f});return null==f||f(u.default["PUSH-UPGRADE-05"]),y}catch(h){const e=u.default["PUSH-ERROR-00"];throw null==f||f(e(t.upgrade.name,h)),Error(`[Push SDK] - API - Error - API ${t.upgrade.name} -: ${h}`)}}))},441786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.axiosDelete=t.axiosPut=t.axiosPost=t.axiosGet=void 0;const n=r(331635),i=r(272505),o=r(207065).version,a=e=>{const t=Object.assign(Object.assign({},null==e?void 0:e.headers),{"X-JS-SDK-VERSION":o});return Object.assign(Object.assign({},e),{headers:t})},s=e=>{var t;const r=e.headers["x-deprecation-notice"];if(r){const n=null===(t=e.config.method)||void 0===t?void 0:t.toUpperCase(),i=e.config.url;console.warn(`%cDeprecation Notice%c Method: ${n}, Path: ${i}, Notice: ${r}`,"color: white; background-color: red; font-weight: bold; padding: 2px 4px;","color: red; font-weight: bold;")}return e};t.axiosGet=(e,t)=>n.__awaiter(void 0,void 0,void 0,(function*(){return i.default.get(e,a(t)).then((e=>s(e)))}));t.axiosPost=(e,t,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){return i.default.post(e,t,a(r)).then((e=>s(e)))}));t.axiosPut=(e,t,r)=>n.__awaiter(void 0,void 0,void 0,(function*(){return i.default.put(e,t,a(r)).then((e=>s(e)))}));t.axiosDelete=(e,t)=>n.__awaiter(void 0,void 0,void 0,(function*(){return i.default.delete(e,a(t)).then((e=>s(e)))}))},710644:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(331635).__exportStar(r(744111),t)},744111:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseApiResponse=void 0,t.parseApiResponse=function(e){return e.map((e=>{const{payload:{data:{acta:t="",amsg:r="",asub:n="",icon:i="",url:o="",sid:a="",app:s="",aimg:c="",secret:u=""},notification:l},source:d}=e;return{cta:t,title:n||"",message:r||l.body||"",icon:i,url:o,sid:a,app:s,image:c,blockchain:d,notification:l,secret:u}}))}},292302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSettings=void 0;t.parseSettings=e=>{var t,r;let n;try{n=JSON.parse(e)}catch(o){n=e}const i=[];for(let a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSubscrbersApiResponse=void 0;const n=r(292302);t.parseSubscrbersApiResponse=function(e){const t=e.subscribers.map((e=>({subscriber:e.subscriber,settings:e.settings?(0,n.parseSettings)(e.settings):null})));return{itemcount:e.itemcount,subscribers:[...t]}}},634074:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSubscriptionsApiResponse=void 0;const n=r(292302);t.parseSubscriptionsApiResponse=function(e){return e.map((e=>({channel:e.channel,user_settings:e.user_settings?(0,n.parseSettings)(e.user_settings):null})))}},565870:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.populateDeprecatedUser=void 0;t.populateDeprecatedUser=e=>{if(!e)return e;e.name=e.profile.name,e.about=e.profile.desc,e.profilePicture=e.profile.picture,e.numMsg=e.msgSent,e.allowedNumMsg=e.maxMsgPersisted;let t="",r="",n="";try{const{version:r}=JSON.parse(e.encryptedPrivateKey);t=r}catch(i){}e.encryptionType=t;try{r=e.verificationProof.split(":")[0],n=e.verificationProof.split(":")[1]}catch(i){}return e.signature=n,e.sigType=r,e.encryptedPassword=null,e.nftOwner=null,e.linkedListHash=null,e.nfts=null,e}},357877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateMessageObj=void 0;const n=r(455288),i=r(83790),o=r(397067),a=e=>{const t=[];for(const r in e)"string"==typeof e[r]?t.push(e[r]):"object"==typeof e[r]&&t.push(...a(e[r]));return t},s=n.object({content:n.string().required().allow("")}),c=n.object({content:n.string().valid(...Object.values(a(i.CHAT.META))).required(),info:n.object({affected:n.array().items(n.string()).required(),arbitrary:n.object().pattern(n.string(),n.any())}).required()}),u=n.object({content:n.string().valid(...Object.values(a(i.CHAT.REACTION))).required(),reference:n.string().required()}),l=n.object({content:n.string().valid(...Object.values(a(i.CHAT.RECEIPT))).required(),reference:n.string().required()}),d=n.object({content:n.string().valid(...Object.values(a(i.CHAT.UA))).required(),info:n.object({affected:n.array().items(n.string()).required(),arbitrary:n.object().pattern(n.string(),n.any())}).required()}),f=n.object({content:n.string().valid(...Object.values(a(i.CHAT.INTENT)))}),h=n.object({content:n.object({messageType:n.string().valid(...Object.values([o.MessageType.TEXT,o.MessageType.IMAGE,o.MessageType.AUDIO,o.MessageType.VIDEO,o.MessageType.FILE,o.MessageType.MEDIA_EMBED])).required(),messageObj:n.object({content:n.string().required()}).required()}).required(),reference:n.string().required()}),p=n.object({content:n.array().items(n.object({messageType:n.string().valid(...Object.values([o.MessageType.TEXT,o.MessageType.IMAGE,o.MessageType.AUDIO,o.MessageType.VIDEO,o.MessageType.FILE,o.MessageType.MEDIA_EMBED])).required(),messageObj:n.object({content:n.string().required()}).required()})).required()});t.validateMessageObj=(e,t)=>{let r;switch(t){case o.MessageType.TEXT:case o.MessageType.IMAGE:case o.MessageType.VIDEO:case o.MessageType.AUDIO:case o.MessageType.FILE:case o.MessageType.MEDIA_EMBED:case o.MessageType.GIF:r=s.validate(e).error;break;case o.MessageType.META:r=c.validate(e).error;break;case o.MessageType.REACTION:r=u.validate(e).error;break;case o.MessageType.RECEIPT:r=l.validate(e).error;break;case o.MessageType.USER_ACTIVITY:r=d.validate(e).error;break;case o.MessageType.INTENT:r=f.validate(e).error;break;case o.MessageType.REPLY:r=h.validate(e).error;break;case o.MessageType.COMPOSITE:r=p.validate(e).error;break;default:throw new Error("Invalid MessageType")}if(r)throw new Error("Unable to parse this messageType. Please ensure 'messageObj' is properly defined.")}},668865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Video=t.initVideoCallData=void 0;const n=r(331635),i=r(941770),o=r(389407),a=r(397067),s=r(789386),c=r(716912),u=r(843156),l=r(307624),d=r(899024),f=r(503892),h=r(166209),p=r(557037),g=r(773773),m=r(683038);t.initVideoCallData={meta:{chatId:"",initiator:{address:"",signal:null},broadcast:{livepeerInfo:null,hostAddress:"",coHostAddress:""}},local:{stream:null,audio:null,video:null,address:""},incoming:[{stream:null,audio:null,video:null,address:"",status:d.VideoCallStatus.UNINITIALIZED,retryCount:0}]};t.Video=class{constructor({signer:e,chainId:r,pgpPrivateKey:i,env:o=a.default.ENV.PROD,setData:s,callType:c=g.VIDEO_CALL_TYPE.PUSH_VIDEO,onReceiveStream:u=()=>n.__awaiter(this,void 0,void 0,(function*(){return Promise.resolve()}))}){this.peerInstances={},this.signer=e,this.chainId=r,this.pgpPrivateKey=i,this.env=o,this.callType=c,this.onReceiveStream=u,s((()=>t.initVideoCallData)),this.data=t.initVideoCallData,this.setData=function(e){s(e),this.data=e(this.data)}}create(e){return n.__awaiter(this,void 0,void 0,(function*(){const{audio:t=!0,video:r=!0,stream:n=null}=e||{};try{const e=null!==n?n:yield navigator.mediaDevices.getUserMedia({video:r,audio:t});this.setData((n=>(0,o.produce)(n,(n=>{n.local.stream=e,n.local.video=r,n.local.audio=t}))))}catch(i){console.error("error in create",i)}}))}request(e){return n.__awaiter(this,void 0,void 0,(function*(){const{senderAddress:r,recipientAddress:n,chatId:a,rules:y,onReceiveMessage:b,retry:v=!1,details:w}=e||{};y&&(0,m.validateVideoRules)(y);const A=Array.isArray(n)?n:[n];for(const e of A)try{this.setData((t=>(0,o.produce)(t,(n=>{n.local.address=r,n.meta.chatId=null!=a?a:y.access.data.chatId,n.meta.initiator.address=r;const i=(0,f.default)(t.incoming,e);-1===i?n.incoming.push({stream:null,audio:null,video:null,address:e,status:v?d.VideoCallStatus.RETRY_INITIALIZED:d.VideoCallStatus.INITIALIZED,retryCount:v?1:0}):(n.incoming[i].address=e,n.incoming[i].status=v?d.VideoCallStatus.RETRY_INITIALIZED:d.VideoCallStatus.INITIALIZED,n.incoming[i].retryCount+=v?1:0)}))));const n=yield(0,l.getIceServerConfig)(this.env);this.peerInstances[e]=new i({initiator:!0,trickle:!1,stream:this.data.local.stream,config:{iceServers:n}}),this.peerInstances[e].on("signal",(t=>{this.setData((e=>(0,o.produce)(e,(e=>{e.meta.initiator.signal=t})))),(0,s.default)({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:r,recipientAddress:e,status:v?d.VideoCallStatus.RETRY_INITIALIZED:d.VideoCallStatus.INITIALIZED,chatId:a,rules:y,signalData:t,env:this.env,callType:this.callType,callDetails:w})})),this.peerInstances[e].on("connect",(()=>{this.peerInstances[e].send(`initial message from ${r}`),this.peerInstances[e].send(JSON.stringify({type:"isVideoOn",value:this.data.local.video})),this.peerInstances[e].send(JSON.stringify({type:"isAudioOn",value:this.data.local.audio}));const t=(0,h.default)({incomingPeers:this.data.incoming});this.peerInstances[e].send(JSON.stringify({type:"connectedAddresses",value:t}))})),this.peerInstances[e].on("data",(n=>{var i,s,l,d,m;if((0,u.default)(n)){const u=JSON.parse(n);if("connectedAddresses"===u.type){const e=u.value,t=(0,h.default)({incomingPeers:this.data.incoming}),n=(0,p.default)({localAddress:r,localConnectedAddresses:t,receivedConnectedAddresses:e});this.request({senderAddress:r,recipientAddress:n,chatId:a,rules:y,details:{type:g.SPACE_REQUEST_TYPE.ESTABLISH_MESH,data:{}}})}if("isVideoOn"===u.type&&this.setData((t=>(0,o.produce)(t,(r=>{const n=(0,f.default)(t.incoming,e);r.incoming[n].video=u.value})))),"isAudioOn"===u.type&&this.setData((t=>(0,o.produce)(t,(r=>{const n=(0,f.default)(t.incoming,e);r.incoming[n].audio=u.value})))),"endCall"===u.type){if(this.callType===g.VIDEO_CALL_TYPE.PUSH_SPACE&&(null===(i=null==u?void 0:u.details)||void 0===i?void 0:i.type)===g.SPACE_DISCONNECT_TYPE.LEAVE&&(null===(s=this.peerInstances[e])||void 0===s||s.destroy(),this.peerInstances[e]=null,this.setData((t=>(0,o.produce)(t,(r=>{const n=(0,f.default)(t.incoming,e);r.incoming.splice(n,1)}))))),this.callType===g.VIDEO_CALL_TYPE.PUSH_SPACE&&(null===(l=null==u?void 0:u.details)||void 0===l?void 0:l.type)===g.SPACE_DISCONNECT_TYPE.STOP){for(const e in this.peerInstances)null===(d=this.peerInstances[e])||void 0===d||d.destroy(),this.peerInstances[e]=null;this.data.local.stream&&(0,c.endStream)(this.data.local.stream),this.setData((()=>t.initVideoCallData))}this.callType===g.VIDEO_CALL_TYPE.PUSH_VIDEO&&(null===(m=this.peerInstances[e])||void 0===m||m.destroy(),this.peerInstances[e]=null,this.data.local.stream&&(0,c.endStream)(this.data.local.stream),this.setData((()=>t.initVideoCallData)))}}else b&&b(n)})),this.peerInstances[e].on("stream",(t=>{const r=(0,f.default)(this.data.incoming,e);this.onReceiveStream(t,e,this.data.incoming[r].audio),this.setData((e=>(0,o.produce)(e,(e=>{e.incoming[r].stream=t}))))}))}catch(C){console.error("error in request",C)}}))}acceptRequest(e){return n.__awaiter(this,void 0,void 0,(function*(){const{signalData:r,senderAddress:n,recipientAddress:a,chatId:y,rules:b,onReceiveMessage:v,retry:w=!1,details:A}=e||{};b&&(0,m.validateVideoRules)(b);try{if(this.peerInstances[a])return Promise.resolve();const e=yield(0,l.getIceServerConfig)(this.env);this.peerInstances[a]=new i({initiator:!1,trickle:!1,stream:this.data.local.stream,config:{iceServers:e}}),this.setData((e=>(0,o.produce)(e,(t=>{t.local.address=n,t.meta.chatId=null!=y?y:b.access.data.chatId,t.meta.initiator.address=n;const r=(0,f.default)(e.incoming,a);-1===r?t.incoming.push({stream:null,audio:null,video:null,address:a,status:w?d.VideoCallStatus.RETRY_INITIALIZED:d.VideoCallStatus.INITIALIZED,retryCount:w?1:0}):(t.incoming[r].address=a,t.incoming[r].status=w?d.VideoCallStatus.RETRY_RECEIVED:d.VideoCallStatus.RECEIVED,t.incoming[r].retryCount+=w?1:0)})))),this.peerInstances[a].on("error",(e=>{this.data.incoming[0].retryCount>=5&&this.disconnect({peerAddress:a}),(0,s.default)({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:n,recipientAddress:a,status:d.VideoCallStatus.RETRY_INITIALIZED,chatId:y,rules:b,signalData:null,callType:this.callType,env:this.env})})),this.peerInstances[a].signal(r),this.peerInstances[a].on("signal",(e=>{this.setData((t=>(0,o.produce)(t,(t=>{t.meta.initiator.signal=e})))),(0,s.default)({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:n,recipientAddress:a,status:w?d.VideoCallStatus.RETRY_RECEIVED:d.VideoCallStatus.RECEIVED,chatId:y,rules:b,signalData:e,env:this.env,callType:this.callType,callDetails:A})})),this.peerInstances[a].on("connect",(()=>{this.peerInstances[a].send(JSON.stringify({type:"isVideoOn",value:this.data.local.video})),this.peerInstances[a].send(JSON.stringify({type:"isAudioOn",value:this.data.local.audio}));const e=(0,h.default)({incomingPeers:this.data.incoming});this.peerInstances[a].send(JSON.stringify({type:"connectedAddresses",value:e})),this.setData((e=>(0,o.produce)(e,(t=>{const r=(0,f.default)(e.incoming,a);t.incoming[r].status=d.VideoCallStatus.CONNECTED}))))})),this.peerInstances[a].on("data",(e=>{var r,i,s,l,d;if((0,u.default)(e)){const u=JSON.parse(e);if("connectedAddresses"===u.type){const e=u.value,t=(0,h.default)({incomingPeers:this.data.incoming}),r=(0,p.default)({localAddress:n,localConnectedAddresses:t,receivedConnectedAddresses:e});this.request({senderAddress:n,recipientAddress:r,chatId:y,rules:b,details:{type:g.SPACE_REQUEST_TYPE.ESTABLISH_MESH,data:{}}})}if("isVideoOn"===u.type&&this.setData((e=>(0,o.produce)(e,(t=>{const r=(0,f.default)(e.incoming,a);t.incoming[r].video=u.value})))),"isAudioOn"===u.type&&this.setData((e=>(0,o.produce)(e,(t=>{const r=(0,f.default)(e.incoming,a);t.incoming[r].audio=u.value})))),"endCall"===u.type){if(this.callType===g.VIDEO_CALL_TYPE.PUSH_SPACE&&(null===(r=null==u?void 0:u.details)||void 0===r?void 0:r.type)===g.SPACE_DISCONNECT_TYPE.LEAVE&&(null===(i=this.peerInstances[a])||void 0===i||i.destroy(),this.peerInstances[a]=null,this.setData((e=>(0,o.produce)(e,(t=>{const r=(0,f.default)(e.incoming,a);t.incoming.splice(r,1)}))))),this.callType===g.VIDEO_CALL_TYPE.PUSH_SPACE&&(null===(s=null==u?void 0:u.details)||void 0===s?void 0:s.type)===g.SPACE_DISCONNECT_TYPE.STOP){for(const e in this.peerInstances)null===(l=this.peerInstances[e])||void 0===l||l.destroy(),this.peerInstances[e]=null;this.data.local.stream&&(0,c.endStream)(this.data.local.stream),this.setData((()=>t.initVideoCallData))}this.callType===g.VIDEO_CALL_TYPE.PUSH_VIDEO&&(null===(d=this.peerInstances[a])||void 0===d||d.destroy(),this.peerInstances[a]=null,this.data.local.stream&&(0,c.endStream)(this.data.local.stream),this.setData((()=>t.initVideoCallData)))}}else v&&v(e)})),this.peerInstances[a].on("stream",(e=>{const t=(0,f.default)(this.data.incoming,a);this.onReceiveStream(e,a,this.data.incoming[t].audio),this.setData((r=>(0,o.produce)(r,(r=>{r.incoming[t].stream=e}))))}))}catch(C){console.error("error in accept request",C)}}))}connect(e){var t;const{peerAddress:r,signalData:n}=e||{};try{r||console.warn("disconnect requires a peer address"),this.peerInstances[r||this.data.incoming[0].address].on("error",(e=>{const t=r?(0,f.default)(this.data.incoming,r):0;this.data.incoming[t].retryCount>=5&&this.disconnect({peerAddress:r||this.data.incoming[0].address}),this.request({senderAddress:this.data.local.address,recipientAddress:this.data.incoming[t].address,chatId:this.data.meta.chatId,retry:!0})})),null===(t=this.peerInstances[r||this.data.incoming[0].address])||void 0===t||t.signal(n),this.setData((e=>(0,o.produce)(e,(t=>{const n=r?(0,f.default)(e.incoming,r):0;t.incoming[n].status=d.VideoCallStatus.CONNECTED})))),(0,s.default)({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:this.data.local.address,recipientAddress:r||this.data.incoming[0].address,status:d.VideoCallStatus.CONNECTED,rules:{access:{type:g.VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT,data:{chatId:this.data.meta.chatId}}},signalData:n,env:this.env})}catch(i){console.error("error in connect",i)}}disconnect(e){var r,n,i;const{peerAddress:o,details:a}=e||{};try{(null==e?void 0:e.peerAddress)||console.warn("disconnect requires a peer address");const u=o?(0,f.default)(this.data.incoming,o):0,l=this.data.incoming[u].status===d.VideoCallStatus.CONNECTED;l&&(null===(r=this.peerInstances[o||this.data.incoming[0].address])||void 0===r||r.send(JSON.stringify({type:"endCall",value:!0,details:a})),null===(n=this.peerInstances[o||this.data.incoming[0].address])||void 0===n||n.destroy()),(0,s.default)({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:this.data.local.address,recipientAddress:this.data.incoming[u].address,status:l?d.VideoCallStatus.ENDED:d.VideoCallStatus.DISCONNECTED,chatId:this.data.meta.chatId,signalData:null,env:this.env,callType:this.callType,callDetails:a}),null===(i=this.peerInstances[o||this.data.incoming[0].address])||void 0===i||i.destroy(),this.peerInstances[o||this.data.incoming[0].address]=null,this.data.local.stream&&(0,c.endStream)(this.data.local.stream),this.setData((()=>t.initVideoCallData))}catch(u){console.error("error in disconnect",u)}}enableVideo(e){var t;const{state:r}=e||{};if(this.data.local.video!==r){for(const e of this.data.incoming)e.status===d.VideoCallStatus.CONNECTED&&(null===(t=this.peerInstances[e.address])||void 0===t||t.send(JSON.stringify({type:"isVideoOn",value:r})));this.data.local.stream&&(r?(0,c.restartVideoStream)(this.data.local.stream):(0,c.stopVideoStream)(this.data.local.stream),this.setData((e=>(0,o.produce)(e,(e=>{e.local.video=r})))))}}enableAudio(e){const{state:t}=e||{};if(this.data.local.audio!==t){for(const e of this.data.incoming)if(e.status===d.VideoCallStatus.CONNECTED&&this.peerInstances[e.address])try{this.peerInstances[e.address].send(JSON.stringify({type:"isAudioOn",value:t}))}catch(r){console.error("Error sending data:",r)}this.data.local.stream&&(t?(0,c.restartAudioStream)(this.data.local.stream):(0,c.stopAudioStream)(this.data.local.stream),this.setData((e=>(0,o.produce)(e,(e=>{e.local.audio=t})))))}}isInitiator(){return""!==this.data.meta.initiator.address&&""!==this.data.local.address&&this.data.meta.initiator.address===this.data.local.address}}},676393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoV2=void 0;const n=r(331635),i=r(389407),o=r(585101),a=r(795924),s=r(773773),c=r(899024),u=r(349096);t.VideoV2=class{constructor({videoV1Instance:e,account:t,decryptedPgpPvtKey:r,env:n,peerInfos:i}){this.videoInstance=e,this.account=t,this.decryptedPgpPvtKey=r,this.env=n,this.peerInfos=i}request(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const{rules:r}=t||{};for(const t of e)if(!(0,a.isValidPushCAIP)(t))throw new Error("Invalid recipient address found");if(0===e.length)throw new Error("Alteast one recipient address is required for a video call");if(e.length>1&&(null==r?void 0:r.access.type)===s.VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT&&!r.access.data.chatId)throw new Error("For multiple recipient addresses, chatId is required for a video call");let n="";if(!(null==r?void 0:r.access.data.chatId)){let t=1;const r=30;for(;!n;){const i=yield(0,o.chats)({account:this.account,toDecrypt:!0,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env,page:t,limit:r});if(0===i.length)break;i.forEach((t=>{t.did===(0,a.walletToPCAIP10)(e[0])&&t.chatId&&(n=t.chatId)})),t++}if(!n)throw new Error(`ChatId not found between local user (${this.account}) and recipient (${e[0]}).`)}this.videoInstance.setData((t=>(0,i.produce)(t,(t=>{var i;t.local.address=this.account,t.incoming=e.map((e=>({address:(0,a.pCAIP10ToWallet)(e),status:c.VideoCallStatus.INITIALIZED}))),t.meta.chatId=null!==(i=null==r?void 0:r.access.data.chatId)&&void 0!==i?i:n})))),yield this.videoInstance.request({senderAddress:(0,a.pCAIP10ToWallet)(this.account),recipientAddress:e.map((e=>(0,a.pCAIP10ToWallet)(e))),rules:null!=r?r:{access:{type:s.VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT,data:{chatId:n}}}})}))}approve(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!e){const t=Object.keys(this.peerInfos);if(1!==t.length)throw new Error("Either no request exists or more than one request found. Please pass an address.");e=t[0]}const t=this.peerInfos[(0,a.walletToPCAIP10)(e)];(0,u.validatePeerInfo)(t),yield this.videoInstance.acceptRequest({senderAddress:(0,a.pCAIP10ToWallet)(this.account),recipientAddress:(0,a.pCAIP10ToWallet)(e),signalData:t.signal,rules:t.meta.rules})}))}deny(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!e){const t=Object.keys(this.peerInfos);if(1!==t.length)throw new Error("Either no request exists or more than one request found. Please pass an address.");e=t[0]}const t=this.peerInfos[(0,a.walletToPCAIP10)(e)];(0,u.validatePeerInfo)(t),yield this.videoInstance.disconnect({peerAddress:(0,a.pCAIP10ToWallet)(e)})}))}disconnect(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.videoInstance.disconnect()}))}config({video:e,audio:t}){"boolean"==typeof e&&this.videoInstance.enableVideo({state:e}),"boolean"==typeof t&&this.videoInstance.enableAudio({state:t})}}},557037:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=({localAddress:e,localConnectedAddresses:t,receivedConnectedAddresses:r})=>r.filter((r=>!t.includes(r)&&r!==e))},166209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(83621),i=r(899024);t.default=({incomingPeers:e})=>{const t=[];return e.forEach((e=>{e.status===i.VideoCallStatus.CONNECTED&&t.push((0,n.default)(e.address))})),t}},307624:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIceServerConfig=void 0;const n=r(331635),i=r(795924),o=r(397067),a=r(921396),s=r(441786);t.getIceServerConfig=(e=o.default.ENV.PROD)=>n.__awaiter(void 0,void 0,void 0,(function*(){const t=`${(0,i.getAPIBaseUrls)(e)}/v1/turnserver/iceconfig`,{data:r}=yield(0,s.axiosGet)(t),{config:n}=JSON.parse(a.AES.decrypt(r,"turnserversecret").toString(a.enc.Utf8));return n}))},503892:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=(e,t)=>e.findIndex((e=>e.address===t))},843156:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>{try{return JSON.parse(e)&&!!e}catch(t){return!1}}},716912:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.endStream=t.stopAudioStream=t.restartAudioStream=t.stopVideoStream=t.restartVideoStream=void 0;t.restartVideoStream=e=>{e.getVideoTracks().forEach((e=>e.enabled=!0))};t.stopVideoStream=e=>{e.getVideoTracks().forEach((e=>e.enabled=!1))};t.restartAudioStream=e=>{e.getAudioTracks().forEach((e=>e.enabled=!0))};t.stopAudioStream=e=>{e.getAudioTracks().forEach((e=>e.enabled=!1))};t.endStream=e=>{e.getTracks().forEach((e=>e.stop()))}},789386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(331635),i=r(795924),o=r(446392),a=r(397067),s=r(773773);t.default=({signer:e,chainId:t,pgpPrivateKey:r},{recipientAddress:c,senderAddress:u,chatId:l,rules:d,status:f,signalData:h=null,env:p=a.default.ENV.PROD,callType:g=s.VIDEO_CALL_TYPE.PUSH_VIDEO,callDetails:m})=>n.__awaiter(void 0,void 0,void 0,(function*(){var n;try{const a={recipientAddress:c,senderAddress:u,chatId:null!==(n=null==d?void 0:d.access.data.chatId)&&void 0!==n?n:l,signalData:h,status:f,callDetails:m},y=(0,i.getCAIPWithChainId)(u,t),b=(0,i.getCAIPWithChainId)(c,t),v=`Video Call from ${u}`,w=s.NOTIFICATION_TYPE.TARGETTED;yield(0,o.sendNotification)({senderType:1,signer:e,pgpPrivateKey:r,chatId:l,rules:d,type:w,identityType:2,notification:{title:v,body:v},payload:{title:"VideoCall",body:"VideoCall",cta:"",img:"",additionalMeta:{type:`${g}+1`,data:JSON.stringify(a)}},recipients:b,channel:y,env:p})}catch(a){console.error("Error occured while sending notification for video call",a)}}))},349096:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePeerInfo=void 0;const n=r(795924),i=r(773773);t.validatePeerInfo=e=>{const{signal:t,address:r,meta:o}=e;if(!t)throw new Error("Invalid signal data received");if(!(0,n.isValidPushCAIP)(r))throw new Error("Invalid address received");if(o.rules.access.type===i.VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT&&!o.rules.access.data.chatId)throw new Error("ChatId not found in meta.rules")}},683038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateVideoRules=void 0;const n=r(773773);t.validateVideoRules=e=>{if(e.access.type===n.VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT&&(!e.access.data.chatId||""===e.access.data.chatId))throw new Error("Invalid rules object recieved. For access as Push Chat, chatId is required!")}},574338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(331635).__exportStar(r(668865),t)},887179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(331635).__exportStar(r(863515),t)},441867:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(331635).__exportStar(r(771157),t)},771157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSocketConnection=void 0;const n=r(538007),i=r(81233),o=r(81258);t.createSocketConnection=function({user:e,env:t,socketType:r="notification",apiKey:a,socketOptions:s}){const{autoConnect:c=!0,reconnectionAttempts:u=5,reconnectionDelay:l,reconnectionDelayMax:d}=s||{},f=i.API_URLS[t],h=["websocket"];let p=null;try{const i="chat"===r?(0,o.walletToPCAIP10)(e):(0,o.getCAIPAddress)(t,e,"User");let a;a="notification"===r?{address:i}:{mode:"chat",did:i};const s=Object.assign(Object.assign({transports:h,query:a,autoConnect:c,reconnectionAttempts:u},void 0!==l&&{reconnectionDelay:l}),void 0!==d&&{reconnectionDelayMax:d});p=(0,n.io)(f,s)}catch(g){console.error("[PUSH-SDK] - Socket connection error: "),console.error(g)}finally{return p}}},81233:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.API_URLS=void 0;const n=r(94142);t.API_URLS={[n.ENV.PROD]:"https://backend.epns.io",[n.ENV.STAGING]:"https://backend-staging.epns.io",[n.ENV.DEV]:"https://backend-dev.epns.io",[n.ENV.LOCAL]:"http://localhost:4000"}},94142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=t.DEFAULT_CHAINS=t.ENV=void 0,function(e){e.PROD="prod",e.STAGING="staging",e.DEV="dev",e.LOCAL="local"}(t.ENV||(t.ENV={})),function(e){e[e.PROD=1]="PROD",e[e.STAGING=11155111]="STAGING",e[e.DEV=11155111]="DEV",e[e.LOCAL=11155111]="LOCAL"}(t.DEFAULT_CHAINS||(t.DEFAULT_CHAINS={})),t.EVENTS={CONNECT:"connect",DISCONNECT:"disconnect",USER_FEEDS:"userFeeds",USER_SPAM_FEEDS:"userSpamFeeds",CHAT_RECEIVED_MESSAGE:"CHATS",CHAT_GROUPS:"CHAT_GROUPS"}},81258:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletToPCAIP10=t.getCAIPAddress=t.getFallbackETHCAIPAddress=t.validateCAIP=t.isValidCAIP10NFTAddress=t.isValidETHAddress=void 0;const n=r(802890),i=r(94142);function o(e){return n.ethers.utils.isAddress(e)}t.isValidETHAddress=o;const a={eip155:({address:e})=>o(e)};function s(e){const[r,n,i]=e.split(":");if(!r)return!1;if(!n)return!1;if(!i)return!1;if((0,t.isValidCAIP10NFTAddress)(e))return!0;return(0,a[r])({address:i})}function c(e,t){let r;switch(e){case i.ENV.PROD:r=i.DEFAULT_CHAINS.PROD;break;case i.ENV.STAGING:r=i.DEFAULT_CHAINS.STAGING;break;case i.ENV.DEV:r=i.DEFAULT_CHAINS.DEV;break;case i.ENV.LOCAL:r=i.DEFAULT_CHAINS.LOCAL;break;default:r=i.DEFAULT_CHAINS.PROD}return`eip155:${r}:${t}`}t.isValidCAIP10NFTAddress=e=>{try{const t=e.split(":");return(5===t.length||6===t.length)&&"nft"===t[0].toLowerCase()&&!isNaN(Number(t[4]))&&Number(t[4])>0&&!isNaN(Number(t[2]))&&Number(t[2])>0&&n.ethers.utils.isAddress(t[3])&&"eip155"===t[1]}catch(t){return!1}},t.validateCAIP=s,t.getFallbackETHCAIPAddress=c,t.getCAIPAddress=function(e,t,r){if(s(t))return t;if(o(t))return c(e,t);throw Error(`Invalid Address! ${r}`)};t.walletToPCAIP10=e=>e.includes("eip155:")?e:"eip155:"+e},863515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=void 0;const n=r(331635),i=r(94142);Object.defineProperty(t,"EVENTS",{enumerable:!0,get:function(){return i.EVENTS}}),n.__exportStar(r(441867),t)},739209:(e,t,r)=>{"use strict";var n=r(376578),i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t{"use strict";var n=r(194901),i=r(116823),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},35548:(e,t,r)=>{"use strict";var n=r(133517),i=r(116823),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a constructor")}},473506:(e,t,r)=>{"use strict";var n=r(113925),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},206469:(e,t,r)=>{"use strict";var n=r(978227),i=r(202360),o=r(824913).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},190679:(e,t,r)=>{"use strict";var n=r(401625),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},28551:(e,t,r)=>{"use strict";var n=r(820034),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},919617:(e,t,r)=>{"use strict";var n=r(225397),i=r(435610),o=r(326198),a=function(e){return function(t,r,a){var s=n(t),c=o(s);if(0===c)return!e&&-1;var u,l=i(a,c);if(e&&r!=r){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},234598:(e,t,r)=>{"use strict";var n=r(779039);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},580926:(e,t,r)=>{"use strict";var n=r(479306),i=r(748981),o=r(169436),a=r(326198),s=TypeError,c="Reduce of empty array with no initial value",u=function(e){return function(t,r,u,l){var d=i(t),f=o(d),h=a(d);if(n(r),0===h&&u<2)throw new s(c);var p=e?h-1:0,g=e?-1:1;if(u<2)for(;;){if(p in f){l=f[p],p+=g;break}if(p+=g,e?p<0:h<=p)throw new s(c)}for(;e?p>=0:h>p;p+=g)p in f&&(l=r(l,f[p],p,d));return l}};e.exports={left:u(!1),right:u(!0)}},867680:(e,t,r)=>{"use strict";var n=r(179504);e.exports=n([].slice)},684428:(e,t,r)=>{"use strict";var n=r(978227)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(s){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(s){return!1}var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(s){}return r}},544576:(e,t,r)=>{"use strict";var n=r(179504),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},136955:(e,t,r)=>{"use strict";var n=r(92140),i=r(194901),o=r(544576),a=r(978227)("toStringTag"),s=Object,c="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=s(e),a))?r:c?o(t):"Object"===(n=o(t))&&i(t.callee)?"Arguments":n}},877740:(e,t,r)=>{"use strict";var n=r(39297),i=r(135031),o=r(377347),a=r(824913);e.exports=function(e,t,r){for(var s=i(t),c=a.f,u=o.f,l=0;l{"use strict";var n=r(978227)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(i){}}return!1}},266699:(e,t,r)=>{"use strict";var n=r(743724),i=r(824913),o=r(406980);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},406980:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},562106:(e,t,r)=>{"use strict";var n=r(350283),i=r(824913);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},436840:(e,t,r)=>{"use strict";var n=r(194901),i=r(824913),o=r(350283),a=r(939433);e.exports=function(e,t,r,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&o(r,u,s),s.global)c?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(l){}c?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},939433:(e,t,r)=>{"use strict";var n=r(444576),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},743724:(e,t,r)=>{"use strict";var n=r(779039);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},404055:(e,t,r)=>{"use strict";var n=r(444576),i=r(820034),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},188727:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},744265:(e,t,r)=>{"use strict";var n=r(882839);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},689544:(e,t,r)=>{"use strict";var n=r(882839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},216193:(e,t,r)=>{"use strict";var n=r(184215);e.exports="NODE"===n},107860:(e,t,r)=>{"use strict";var n=r(882839);e.exports=/web0s(?!.*chrome)/i.test(n)},882839:(e,t,r)=>{"use strict";var n=r(444576).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},839519:(e,t,r)=>{"use strict";var n,i,o=r(444576),a=r(882839),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(i=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},184215:(e,t,r)=>{"use strict";var n=r(444576),i=r(882839),o=r(544576),a=function(e){return i.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},746518:(e,t,r)=>{"use strict";var n=r(444576),i=r(377347).f,o=r(266699),a=r(436840),s=r(939433),c=r(877740),u=r(492796);e.exports=function(e,t){var r,l,d,f,h,p=e.target,g=e.global,m=e.stat;if(r=g?n:m?n[p]||s(p,{}):n[p]&&n[p].prototype)for(l in t){if(f=t[l],d=e.dontCallGetSet?(h=i(r,l))&&h.value:r[l],!u(g?l:p+(m?".":"#")+l,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(r,l,f,e)}}},779039:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},318745:(e,t,r)=>{"use strict";var n=r(640616),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},276080:(e,t,r)=>{"use strict";var n=r(227476),i=r(479306),o=r(640616),a=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},640616:(e,t,r)=>{"use strict";var n=r(779039);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},969565:(e,t,r)=>{"use strict";var n=r(640616),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},610350:(e,t,r)=>{"use strict";var n=r(743724),i=r(39297),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},146706:(e,t,r)=>{"use strict";var n=r(179504),i=r(479306);e.exports=function(e,t,r){try{return n(i(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(o){}}},227476:(e,t,r)=>{"use strict";var n=r(544576),i=r(179504);e.exports=function(e){if("Function"===n(e))return i(e)}},179504:(e,t,r)=>{"use strict";var n=r(640616),i=Function.prototype,o=i.call,a=n&&i.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},497751:(e,t,r)=>{"use strict";var n=r(444576),i=r(194901);e.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},450851:(e,t,r)=>{"use strict";var n=r(136955),i=r(655966),o=r(964117),a=r(926269),s=r(978227)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[n(e)]}},70081:(e,t,r)=>{"use strict";var n=r(969565),i=r(479306),o=r(28551),a=r(116823),s=r(450851),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(i(r))return o(n(r,e));throw new c(a(e)+" is not iterable")}},655966:(e,t,r)=>{"use strict";var n=r(479306),i=r(964117);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},444576:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297:(e,t,r)=>{"use strict";var n=r(179504),i=r(748981),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},130421:e=>{"use strict";e.exports={}},690757:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(r){}}},20397:(e,t,r)=>{"use strict";var n=r(497751);e.exports=n("document","documentElement")},135917:(e,t,r)=>{"use strict";var n=r(743724),i=r(779039),o=r(404055);e.exports=!n&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},169436:(e,t,r)=>{"use strict";var n=r(179504),i=r(779039),o=r(544576),a=Object,s=n("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},933706:(e,t,r)=>{"use strict";var n=r(179504),i=r(194901),o=r(477629),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},591181:(e,t,r)=>{"use strict";var n,i,o,a=r(258622),s=r(444576),c=r(820034),u=r(266699),l=r(39297),d=r(477629),f=r(766119),h=r(130421),p="Object already initialized",g=s.TypeError,m=s.WeakMap;if(a||d.state){var y=d.state||(d.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new g(p);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var b=f("state");h[b]=!0,n=function(e,t){if(l(e,b))throw new g(p);return t.facade=e,u(e,b,t),t},i=function(e){return l(e,b)?e[b]:{}},o=function(e){return l(e,b)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return r}}}},144209:(e,t,r)=>{"use strict";var n=r(978227),i=r(926269),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},194901:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},133517:(e,t,r)=>{"use strict";var n=r(179504),i=r(779039),o=r(194901),a=r(136955),s=r(497751),c=r(933706),u=function(){},l=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),h=!d.test(u),p=function(e){if(!o(e))return!1;try{return l(u,[],e),!0}catch(t){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(d,c(e))}catch(t){return!0}};g.sham=!0,e.exports=!l||i((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?g:p},492796:(e,t,r)=>{"use strict";var n=r(779039),i=r(194901),o=/#|\.prototype\./,a=function(e,t){var r=c[s(e)];return r===l||r!==u&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},964117:e=>{"use strict";e.exports=function(e){return null==e}},820034:(e,t,r)=>{"use strict";var n=r(194901);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},113925:(e,t,r)=>{"use strict";var n=r(820034);e.exports=function(e){return n(e)||null===e}},996395:e=>{"use strict";e.exports=!1},160788:(e,t,r)=>{"use strict";var n=r(820034),i=r(544576),o=r(978227)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}},210757:(e,t,r)=>{"use strict";var n=r(497751),i=r(194901),o=r(401625),a=r(7040),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,s(e))}},72652:(e,t,r)=>{"use strict";var n=r(276080),i=r(969565),o=r(28551),a=r(116823),s=r(144209),c=r(326198),u=r(401625),l=r(70081),d=r(450851),f=r(409539),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,r){var m,y,b,v,w,A,C,E=r&&r.that,x=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),I=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),_=n(t,E),T=function(e){return m&&f(m,"normal",e),new p(!0,e)},M=function(e){return x?(o(e),k?_(e[0],e[1],T):_(e[0],e[1])):k?_(e,T):_(e)};if(S)m=e.iterator;else if(I)m=e;else{if(!(y=d(e)))throw new h(a(e)+" is not iterable");if(s(y)){for(b=0,v=c(e);v>b;b++)if((w=M(e[b]))&&u(g,w))return w;return new p(!1)}m=l(e,y)}for(A=S?e.next:m.next;!(C=i(A,m)).done;){try{w=M(C.value)}catch(P){f(m,"throw",P)}if("object"==typeof w&&w&&u(g,w))return w}return new p(!1)}},409539:(e,t,r)=>{"use strict";var n=r(969565),i=r(28551),o=r(655966);e.exports=function(e,t,r){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(c){s=!0,a=c}if("throw"===t)throw r;if(s)throw a;return i(a),r}},926269:e=>{"use strict";e.exports={}},326198:(e,t,r)=>{"use strict";var n=r(218014);e.exports=function(e){return n(e.length)}},350283:(e,t,r)=>{"use strict";var n=r(179504),i=r(779039),o=r(194901),a=r(39297),s=r(743724),c=r(610350).CONFIGURABLE,u=r(933706),l=r(591181),d=l.enforce,f=l.get,h=String,p=Object.defineProperty,g=n("".slice),m=n("".replace),y=n([].join),b=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),v=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===g(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),b&&r&&a(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=d(e);return a(n,"source")||(n.source=y(v,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return o(this)&&f(this).source||u(this)}),"toString")},80741:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},891955:(e,t,r)=>{"use strict";var n,i,o,a,s,c=r(444576),u=r(193389),l=r(276080),d=r(959225).set,f=r(318265),h=r(689544),p=r(744265),g=r(107860),m=r(216193),y=c.MutationObserver||c.WebKitMutationObserver,b=c.document,v=c.process,w=c.Promise,A=u("queueMicrotask");if(!A){var C=new f,E=function(){var e,t;for(m&&(e=v.domain)&&e.exit();t=C.get();)try{t()}catch(r){throw C.head&&n(),r}e&&e.enter()};h||m||g||!y||!b?!p&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=l(a.then,a),n=function(){s(E)}):m?n=function(){v.nextTick(E)}:(d=l(d,c),n=function(){d(E)}):(i=!0,o=b.createTextNode(""),new y(E).observe(o,{characterData:!0}),n=function(){o.data=i=!i}),A=function(e){C.head||n(),C.add(e)}}e.exports=A},836043:(e,t,r)=>{"use strict";var n=r(479306),i=TypeError,o=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new i("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new o(e)}},160511:(e,t,r)=>{"use strict";var n=r(160788),i=TypeError;e.exports=function(e){if(n(e))throw new i("The method doesn't accept regular expressions");return e}},744213:(e,t,r)=>{"use strict";var n=r(743724),i=r(179504),o=r(969565),a=r(779039),s=r(971072),c=r(933717),u=r(248773),l=r(748981),d=r(169436),f=Object.assign,h=Object.defineProperty,p=i([].concat);e.exports=!f||a((function(){if(n&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach((function(e){t[e]=e})),7!==f({},e)[r]||s(f({},t)).join("")!==i}))?function(e,t){for(var r=l(e),i=arguments.length,a=1,f=c.f,h=u.f;i>a;)for(var g,m=d(arguments[a++]),y=f?p(s(m),f(m)):s(m),b=y.length,v=0;b>v;)g=y[v++],n&&!o(h,m,g)||(r[g]=m[g]);return r}:f},202360:(e,t,r)=>{"use strict";var n,i=r(28551),o=r(696801),a=r(188727),s=r(130421),c=r(20397),u=r(404055),l=r(766119),d="prototype",f="script",h=l("IE_PROTO"),p=function(){},g=function(e){return"<"+f+">"+e+""},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(o){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?m(n):(t=u("iframe"),r="java"+f+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):m(n);for(var i=a.length;i--;)delete y[d][a[i]];return y()};s[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[d]=i(e),r=new p,p[d]=null,r[h]=e):r=y(),void 0===t?r:o.f(r,t)}},696801:(e,t,r)=>{"use strict";var n=r(743724),i=r(48686),o=r(824913),a=r(28551),s=r(225397),c=r(971072);t.f=n&&!i?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),i=c(t),u=i.length,l=0;u>l;)o.f(e,r=i[l++],n[r]);return e}},824913:(e,t,r)=>{"use strict";var n=r(743724),i=r(135917),o=r(48686),a=r(28551),s=r(956969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",h="writable";t.f=n?o?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:d in r?r[d]:n[d],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),i)try{return u(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},377347:(e,t,r)=>{"use strict";var n=r(743724),i=r(969565),o=r(248773),a=r(406980),s=r(225397),c=r(956969),u=r(39297),l=r(135917),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=c(t),l)try{return d(e,t)}catch(r){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},138480:(e,t,r)=>{"use strict";var n=r(961828),i=r(188727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},933717:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},401625:(e,t,r)=>{"use strict";var n=r(179504);e.exports=n({}.isPrototypeOf)},961828:(e,t,r)=>{"use strict";var n=r(179504),i=r(39297),o=r(225397),a=r(919617).indexOf,s=r(130421),c=n([].push);e.exports=function(e,t){var r,n=o(e),u=0,l=[];for(r in n)!i(s,r)&&i(n,r)&&c(l,r);for(;t.length>u;)i(n,r=t[u++])&&(~a(l,r)||c(l,r));return l}},971072:(e,t,r)=>{"use strict";var n=r(961828),i=r(188727);e.exports=Object.keys||function(e){return n(e,i)}},248773:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},152967:(e,t,r)=>{"use strict";var n=r(146706),i=r(820034),o=r(567750),a=r(473506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(s){}return function(r,n){return o(r),a(n),i(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},153179:(e,t,r)=>{"use strict";var n=r(92140),i=r(136955);e.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},784270:(e,t,r)=>{"use strict";var n=r(969565),i=r(194901),o=r(820034),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&i(r=e.toString)&&!o(s=n(r,e)))return s;if(i(r=e.valueOf)&&!o(s=n(r,e)))return s;if("string"!==t&&i(r=e.toString)&&!o(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},135031:(e,t,r)=>{"use strict";var n=r(497751),i=r(179504),o=r(138480),a=r(933717),s=r(28551),c=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=a.f;return r?c(t,r(e)):t}},201103:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},10916:(e,t,r)=>{"use strict";var n=r(444576),i=r(880550),o=r(194901),a=r(492796),s=r(933706),c=r(978227),u=r(184215),l=r(996395),d=r(839519),f=i&&i.prototype,h=c("species"),p=!1,g=o(n.PromiseRejectionEvent),m=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===d)return!0;if(l&&(!f.catch||!f.finally))return!0;if(!d||d<51||!/native code/.test(e)){var r=new i((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(p=r.then((function(){}))instanceof n))return!0}return!(t||"BROWSER"!==u&&"DENO"!==u||g)}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:p}},880550:(e,t,r)=>{"use strict";var n=r(444576);e.exports=n.Promise},393438:(e,t,r)=>{"use strict";var n=r(28551),i=r(820034),o=r(836043);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},990537:(e,t,r)=>{"use strict";var n=r(880550),i=r(684428),o=r(10916).CONSTRUCTOR;e.exports=o||!i((function(e){n.all(e).then(void 0,(function(){}))}))},318265:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},957323:(e,t,r)=>{"use strict";var n,i,o=r(969565),a=r(179504),s=r(500655),c=r(867979),u=r(358429),l=r(725745),d=r(202360),f=r(591181).get,h=r(383635),p=r(718814),g=l("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,y=m,b=a("".charAt),v=a("".indexOf),w=a("".replace),A=a("".slice),C=(i=/b*/g,o(m,n=/a/,"a"),o(m,i,"a"),0!==n.lastIndex||0!==i.lastIndex),E=u.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(C||x||E||h||p)&&(y=function(e){var t,r,n,i,a,u,l,h=this,p=f(h),S=s(e),I=p.raw;if(I)return I.lastIndex=h.lastIndex,t=o(y,I,S),h.lastIndex=I.lastIndex,t;var k=p.groups,_=E&&h.sticky,T=o(c,h),M=h.source,P=0,j=S;if(_&&(T=w(T,"y",""),-1===v(T,"g")&&(T+="g"),j=A(S,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==b(S,h.lastIndex-1))&&(M="(?: "+M+")",j=" "+j,P++),r=new RegExp("^(?:"+M+")",T)),x&&(r=new RegExp("^"+M+"$(?!\\s)",T)),C&&(n=h.lastIndex),i=o(m,_?r:h,j),_?i?(i.input=A(i.input,P),i[0]=A(i[0],P),i.index=h.lastIndex,h.lastIndex+=i[0].length):h.lastIndex=0:C&&i&&(h.lastIndex=h.global?i.index+i[0].length:n),x&&i&&i.length>1&&o(g,i[0],r,(function(){for(a=1;a{"use strict";var n=r(28551);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},358429:(e,t,r)=>{"use strict";var n=r(779039),i=r(444576).RegExp,o=n((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=o||n((function(){return!i("a","y").sticky})),s=o||n((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},383635:(e,t,r)=>{"use strict";var n=r(779039),i=r(444576).RegExp;e.exports=n((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},718814:(e,t,r)=>{"use strict";var n=r(779039),i=r(444576).RegExp;e.exports=n((function(){var e=i("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},567750:(e,t,r)=>{"use strict";var n=r(964117),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},193389:(e,t,r)=>{"use strict";var n=r(444576),i=r(743724),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return n[e];var t=o(n,e);return t&&t.value}},987633:(e,t,r)=>{"use strict";var n=r(497751),i=r(562106),o=r(978227),a=r(743724),s=o("species");e.exports=function(e){var t=n(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},910687:(e,t,r)=>{"use strict";var n=r(824913).f,i=r(39297),o=r(978227)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!i(e,o)&&n(e,o,{configurable:!0,value:t})}},766119:(e,t,r)=>{"use strict";var n=r(725745),i=r(733392),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},477629:(e,t,r)=>{"use strict";var n=r(996395),i=r(444576),o=r(939433),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},725745:(e,t,r)=>{"use strict";var n=r(477629);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},602293:(e,t,r)=>{"use strict";var n=r(28551),i=r(35548),o=r(964117),a=r(978227)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||o(r=n(s)[a])?t:i(r)}},604495:(e,t,r)=>{"use strict";var n=r(839519),i=r(779039),o=r(444576).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},959225:(e,t,r)=>{"use strict";var n,i,o,a,s=r(444576),c=r(318745),u=r(276080),l=r(194901),d=r(39297),f=r(779039),h=r(20397),p=r(867680),g=r(404055),m=r(422812),y=r(689544),b=r(216193),v=s.setImmediate,w=s.clearImmediate,A=s.process,C=s.Dispatch,E=s.Function,x=s.MessageChannel,S=s.String,I=0,k={},_="onreadystatechange";f((function(){n=s.location}));var T=function(e){if(d(k,e)){var t=k[e];delete k[e],t()}},M=function(e){return function(){T(e)}},P=function(e){T(e.data)},j=function(e){s.postMessage(S(e),n.protocol+"//"+n.host)};v&&w||(v=function(e){m(arguments.length,1);var t=l(e)?e:E(e),r=p(arguments,1);return k[++I]=function(){c(t,void 0,r)},i(I),I},w=function(e){delete k[e]},b?i=function(e){A.nextTick(M(e))}:C&&C.now?i=function(e){C.now(M(e))}:x&&!y?(a=(o=new x).port2,o.port1.onmessage=P,i=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(j)?(i=j,s.addEventListener("message",P,!1)):i=_ in g("script")?function(e){h.appendChild(g("script"))[_]=function(){h.removeChild(this),T(e)}}:function(e){setTimeout(M(e),0)}),e.exports={set:v,clear:w}},435610:(e,t,r)=>{"use strict";var n=r(991291),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},225397:(e,t,r)=>{"use strict";var n=r(169436),i=r(567750);e.exports=function(e){return n(i(e))}},991291:(e,t,r)=>{"use strict";var n=r(80741);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},218014:(e,t,r)=>{"use strict";var n=r(991291),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},748981:(e,t,r)=>{"use strict";var n=r(567750),i=Object;e.exports=function(e){return i(n(e))}},872777:(e,t,r)=>{"use strict";var n=r(969565),i=r(820034),o=r(210757),a=r(655966),s=r(784270),c=r(978227),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!i(r)||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},956969:(e,t,r)=>{"use strict";var n=r(872777),i=r(210757);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},92140:(e,t,r)=>{"use strict";var n={};n[r(978227)("toStringTag")]="z",e.exports="[object z]"===String(n)},500655:(e,t,r)=>{"use strict";var n=r(136955),i=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},116823:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},733392:(e,t,r)=>{"use strict";var n=r(179504),i=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},7040:(e,t,r)=>{"use strict";var n=r(604495);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686:(e,t,r)=>{"use strict";var n=r(743724),i=r(779039);e.exports=n&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},422812:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e{"use strict";var n=r(444576),i=r(194901),o=n.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},978227:(e,t,r)=>{"use strict";var n=r(444576),i=r(725745),o=r(39297),a=r(733392),s=r(604495),c=r(7040),u=n.Symbol,l=i("wks"),d=c?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=s&&o(u,e)?u[e]:d("Symbol."+e)),l[e]}},874423:(e,t,r)=>{"use strict";var n=r(746518),i=r(919617).includes,o=r(779039),a=r(206469);n({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},272712:(e,t,r)=>{"use strict";var n=r(746518),i=r(580926).left,o=r(234598),a=r(839519);n({target:"Array",proto:!0,forced:!r(216193)&&a>79&&a<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},369085:(e,t,r)=>{"use strict";var n=r(746518),i=r(744213);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},426099:(e,t,r)=>{"use strict";var n=r(92140),i=r(436840),o=r(153179);n||i(Object.prototype,"toString",o,{unsafe:!0})},316499:(e,t,r)=>{"use strict";var n=r(746518),i=r(969565),o=r(479306),a=r(836043),s=r(201103),c=r(72652);n({target:"Promise",stat:!0,forced:r(990537)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,u=r.reject,l=s((function(){var r=o(t.resolve),a=[],s=0,l=1;c(e,(function(e){var o=s++,c=!1;l++,i(r,t,e).then((function(e){c||(c=!0,a[o]=e,--l||n(a))}),u)})),--l||n(a)}));return l.error&&u(l.value),r.promise}})},282003:(e,t,r)=>{"use strict";var n=r(746518),i=r(996395),o=r(10916).CONSTRUCTOR,a=r(880550),s=r(497751),c=r(194901),u=r(436840),l=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&c(a)){var d=s("Promise").prototype.catch;l.catch!==d&&u(l,"catch",d,{unsafe:!0})}},610436:(e,t,r)=>{"use strict";var n,i,o,a=r(746518),s=r(996395),c=r(216193),u=r(444576),l=r(969565),d=r(436840),f=r(152967),h=r(910687),p=r(987633),g=r(479306),m=r(194901),y=r(820034),b=r(190679),v=r(602293),w=r(959225).set,A=r(891955),C=r(690757),E=r(201103),x=r(318265),S=r(591181),I=r(880550),k=r(10916),_=r(836043),T="Promise",M=k.CONSTRUCTOR,P=k.REJECTION_EVENT,j=k.SUBCLASSING,D=S.getterFor(T),O=S.set,B=I&&I.prototype,N=I,R=B,L=u.TypeError,F=u.document,U=u.process,z=_.f,H=z,V=!!(F&&F.createEvent&&u.dispatchEvent),K="unhandledrejection",G=function(e){var t;return!(!y(e)||!m(t=e.then))&&t},q=function(e,t){var r,n,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&Z(t),t.rejection=1),!0===s?r=o:(d&&d.enter(),r=s(o),d&&(d.exit(),i=!0)),r===e.promise?u(new L("Promise-chain cycle")):(n=G(r))?l(n,r,c,u):c(r)):u(o)}catch(f){d&&!i&&d.exit(),u(f)}},Q=function(e,t){e.notified||(e.notified=!0,A((function(){for(var r,n=e.reactions;r=n.get();)q(r,e);e.notified=!1,t&&!e.rejection&&J(e)})))},W=function(e,t,r){var n,i;V?((n=F.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!P&&(i=u["on"+e])?i(n):e===K&&C("Unhandled promise rejection",r)},J=function(e){l(w,u,(function(){var t,r=e.facade,n=e.value;if(Y(e)&&(t=E((function(){c?U.emit("unhandledRejection",n,r):W(K,r,n)})),e.rejection=c||Y(e)?2:1,t.error))throw t.value}))},Y=function(e){return 1!==e.rejection&&!e.parent},Z=function(e){l(w,u,(function(){var t=e.facade;c?U.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)}))},$=function(e,t,r){return function(n){e(t,n,r)}},X=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Q(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new L("Promise can't be resolved itself");var n=G(t);n?A((function(){var r={done:!1};try{l(n,t,$(ee,r,e),$(X,r,e))}catch(i){X(r,i,e)}})):(e.value=t,e.state=1,Q(e,!1))}catch(i){X({done:!1},i,e)}}};if(M&&(R=(N=function(e){b(this,R),g(e),l(n,this);var t=D(this);try{e($(ee,t),$(X,t))}catch(r){X(t,r)}}).prototype,(n=function(e){O(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:0,value:null})}).prototype=d(R,"then",(function(e,t){var r=D(this),n=z(v(this,N));return r.parent=!0,n.ok=!m(e)||e,n.fail=m(t)&&t,n.domain=c?U.domain:void 0,0===r.state?r.reactions.add(n):A((function(){q(n,r)})),n.promise})),i=function(){var e=new n,t=D(e);this.promise=e,this.resolve=$(ee,t),this.reject=$(X,t)},_.f=z=function(e){return e===N||undefined===e?new i(e):H(e)},!s&&m(I)&&B!==Object.prototype)){o=B.then,j||d(B,"then",(function(e,t){var r=this;return new N((function(e,t){l(o,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete B.constructor}catch(te){}f&&f(B,R)}a({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:N}),h(N,T,!1,!0),p(T)},703362:(e,t,r)=>{"use strict";r(610436),r(316499),r(282003),r(7743),r(251481),r(240280)},7743:(e,t,r)=>{"use strict";var n=r(746518),i=r(969565),o=r(479306),a=r(836043),s=r(201103),c=r(72652);n({target:"Promise",stat:!0,forced:r(990537)},{race:function(e){var t=this,r=a.f(t),n=r.reject,u=s((function(){var a=o(t.resolve);c(e,(function(e){i(a,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},251481:(e,t,r)=>{"use strict";var n=r(746518),i=r(836043);n({target:"Promise",stat:!0,forced:r(10916).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return(0,t.reject)(e),t.promise}})},240280:(e,t,r)=>{"use strict";var n=r(746518),i=r(497751),o=r(996395),a=r(880550),s=r(10916).CONSTRUCTOR,c=r(393438),u=i("Promise"),l=o&&!s;n({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return c(l&&this===u?a:this,e)}})},327495:(e,t,r)=>{"use strict";var n=r(746518),i=r(957323);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},21699:(e,t,r)=>{"use strict";var n=r(746518),i=r(179504),o=r(160511),a=r(567750),s=r(500655),c=r(541436),u=i("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},334110:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasCORS=void 0;let r=!1;try{r="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(n){}t.hasCORS=r},428661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encode=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t},t.decode=function(e){let t={},r=e.split("&");for(let n=0,i=r.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e){if(e.length>8e3)throw"URI too long";const t=e,i=e.indexOf("["),o=e.indexOf("]");-1!=i&&-1!=o&&(e=e.substring(0,i)+e.substring(i,o).replace(/:/g,";")+e.substring(o,e.length));let a=r.exec(e||""),s={},c=14;for(;c--;)s[n[c]]=a[c]||"";-1!=i&&-1!=o&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0);return s.pathNames=function(e,t){const r=t.replace(/\/{2,9}/g,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,s.path),s.queryKey=function(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(r[t]=n)})),r}(0,s.query),s};const r=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]},814624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.globalThisShim=t.nextTick=void 0,t.createCookieJar=function(){},t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.globalThisShim="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")(),t.defaultBinaryType="arraybuffer"},804956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebTransport=t.WebSocket=t.NodeWebSocket=t.XHR=t.NodeXHR=t.Fetch=t.nextTick=t.parse=t.installTimerFunctions=t.transports=t.TransportError=t.Transport=t.protocol=t.SocketWithUpgrade=t.SocketWithoutUpgrade=t.Socket=void 0;const n=r(78223);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}});var i=r(78223);Object.defineProperty(t,"SocketWithoutUpgrade",{enumerable:!0,get:function(){return i.SocketWithoutUpgrade}}),Object.defineProperty(t,"SocketWithUpgrade",{enumerable:!0,get:function(){return i.SocketWithUpgrade}}),t.protocol=n.Socket.protocol;var o=r(644689);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return o.Transport}}),Object.defineProperty(t,"TransportError",{enumerable:!0,get:function(){return o.TransportError}});var a=r(319419);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return a.transports}});var s=r(185374);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var c=r(391015);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return c.parse}});var u=r(814624);Object.defineProperty(t,"nextTick",{enumerable:!0,get:function(){return u.nextTick}});var l=r(508209);Object.defineProperty(t,"Fetch",{enumerable:!0,get:function(){return l.Fetch}});var d=r(242071);Object.defineProperty(t,"NodeXHR",{enumerable:!0,get:function(){return d.XHR}});var f=r(242071);Object.defineProperty(t,"XHR",{enumerable:!0,get:function(){return f.XHR}});var h=r(538716);Object.defineProperty(t,"NodeWebSocket",{enumerable:!0,get:function(){return h.WS}});var p=r(538716);Object.defineProperty(t,"WebSocket",{enumerable:!0,get:function(){return p.WS}});var g=r(844480);Object.defineProperty(t,"WebTransport",{enumerable:!0,get:function(){return g.WT}})},78223:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=t.SocketWithUpgrade=t.SocketWithoutUpgrade=void 0;const i=r(319419),o=r(185374),a=r(428661),s=r(391015),c=r(124454),u=r(646376),l=r(814624),d=(0,n(r(456617)).default)("engine.io-client:socket"),f="function"==typeof addEventListener&&"function"==typeof removeEventListener,h=[];f&&addEventListener("offline",(()=>{d("closing %d connection(s) because the network was lost",h.length),h.forEach((e=>e()))}),!1);class p extends c.Emitter{constructor(e,t){if(super(),this.binaryType=l.defaultBinaryType,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const r=(0,s.parse)(e);t.hostname=r.host,t.secure="https"===r.protocol||"wss"===r.protocol,t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=(0,s.parse)(t.host).host);(0,o.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach((e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})),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?"/":""),"string"==typeof this.opts.query&&(this.opts.query=(0,a.decode)(this.opts.query)),f&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(d("adding listener for the 'offline' event"),this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},h.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=(0,l.createCookieJar)()),this._open()}createTransport(e){d('creating transport "%s"',e);const t=Object.assign({},this.opts.query);t.EIO=u.protocol,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return d("options: %j",r),new this._transportsByName[e](r)}_open(){if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);const e=this.opts.rememberUpgrade&&p.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){d("setting transport %s",e.name),this.transport&&(d("clearing existing transport %s",this.transport.name),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",(e=>this._onClose("transport close",e)))}onOpen(){d("socket open"),this.readyState="open",p.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(d('socket receive: type "%s", data "%s"',e.type,e.data),this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();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)}else d('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn((()=>{this._onClose("ping timeout")}),e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();d("flushing %d packets in socket",e.length),this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t0&&e>this._maxPayload)return d("only send %d out of %d packets",t,this.writeBuffer.length),this.writeBuffer.slice(0,t);e+=2}return d("payload size is %d (max: %d)",e,this._maxPayload),this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(d("throttled timer detected, scheduling connection close"),this._pingTimeoutTime=0,(0,l.nextTick)((()=>{this._onClose("ping timeout")}),this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this._onClose("forced close"),d("socket closing - telling transport to close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?r():e()})):this.upgrading?r():e()),this}_onError(e){if(d("socket error %j",e),p.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return d("trying next transport"),this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(d('socket close with reason: "%s"',e),this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),f&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=h.indexOf(this._offlineEventListener);-1!==e&&(d("removing listener for the 'offline' event"),h.splice(e,1))}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}t.SocketWithoutUpgrade=p,p.protocol=u.protocol;class g extends p{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade){d("starting upgrade probes");for(let e=0;e{r||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!r)if("pong"===n.type&&"probe"===n.data){if(d('probe transport "%s" pong',e),this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;p.priorWebsocketSuccess="websocket"===t.name,d('pausing current transport "%s"',this.transport.name),this.transport.pause((()=>{r||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{d('probe transport "%s" failed',e);const r=new Error("probe error");r.transport=t.name,this.emitReserved("upgradeError",r)}})))};function i(){r||(r=!0,u(),t.close(),t=null)}const o=r=>{const n=new Error("probe error: "+r);n.transport=t.name,i(),d('probe transport "%s" failed because of error: %s',e,r),this.emitReserved("upgradeError",n)};function a(){o("transport closed")}function s(){o("socket closed")}function c(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),i())}const u=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",c)};t.once("open",n),t.once("error",o),t.once("close",a),this.once("close",s),this.once("upgrading",c),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{r||t.open()}),200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let r=0;ri.transports[e])).filter((e=>!!e))),super(e,r)}}},644689:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=t.TransportError=void 0;const i=r(646376),o=r(124454),a=r(185374),s=r(428661),c=(0,n(r(456617)).default)("engine.io-client:transport");class u extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}t.TransportError=u;class l extends o.Emitter{constructor(e){super(),this.writable=!1,(0,a.installTimerFunctions)(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new u(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState?this.write(e):c("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=(0,i.decodePacket)(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-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=(0,s.encode)(e);return t.length?"?"+t:""}}t.Transport=l},319419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=r(242071),i=r(538716),o=r(844480);t.transports={websocket:i.WS,webtransport:o.WT,polling:n.XHR}},508209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Fetch=void 0;const n=r(630528);class i extends n.Polling{doPoll(){this._fetch().then((e=>{if(!e.ok)return this.onError("fetch read error",e.status,e);e.text().then((e=>this.onData(e)))})).catch((e=>{this.onError("fetch read error",e)}))}doWrite(e,t){this._fetch(e).then((e=>{if(!e.ok)return this.onError("fetch write error",e.status,e);t()})).catch((e=>{this.onError("fetch write error",e)}))}_fetch(e){var t;const r=void 0!==e,n=new Headers(this.opts.extraHeaders);return r&&n.set("content-type","text/plain;charset=UTF-8"),null===(t=this.socket._cookieJar)||void 0===t||t.appendCookies(n),fetch(this.uri(),{method:r?"POST":"GET",body:r?e:null,headers:n,credentials:this.opts.withCredentials?"include":"omit"}).then((e=>{var t;return null===(t=this.socket._cookieJar)||void 0===t||t.parseCookies(e.headers.getSetCookie()),e}))}}t.Fetch=i},242071:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=t.Request=t.BaseXHR=void 0;const i=r(630528),o=r(124454),a=r(185374),s=r(814624),c=r(334110),u=(0,n(r(456617)).default)("engine.io-client:polling");function l(){}class d extends i.Polling{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){u("xhr poll");const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}t.BaseXHR=d;class f extends o.Emitter{constructor(e,t,r){super(),this.createRequest=e,(0,a.installTimerFunctions)(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var e;const t=(0,a.pick)(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(t);try{u("xhr open %s: %s",this._method,this._uri),r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(n){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(n){}try{r.setRequestHeader("Accept","*/*")}catch(n){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.status||1223===r.status?this._onLoad():this.setTimeoutFn((()=>{this._onError("number"==typeof r.status?r.status:0)}),0))},u("xhr data %s",this._data),r.send(this._data)}catch(n){return void this.setTimeoutFn((()=>{this._onError(n)}),0)}"undefined"!=typeof document&&(this._index=f.requestsCount++,f.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=l,e)try{this._xhr.abort()}catch(t){}"undefined"!=typeof document&&delete f.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(t.Request=f,f.requestsCount=0,f.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",h);else if("function"==typeof addEventListener){const e="onpagehide"in s.globalThisShim?"pagehide":"unload";addEventListener(e,h,!1)}function h(){for(let e in f.requests)f.requests.hasOwnProperty(e)&&f.requests[e].abort()}const p=function(){const e=g({xdomain:!1});return e&&null!==e.responseType}();function g(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||c.hasCORS))return new XMLHttpRequest}catch(r){}if(!t)try{return new(s.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(r){}}t.XHR=class extends d{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=p&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new f(g,this.uri(),e)}}},630528:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Polling=void 0;const i=r(644689),o=r(185374),a=r(646376),s=(0,n(r(456617)).default)("engine.io-client:polling");class c extends i.Transport{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{s("paused"),this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(s("we are currently polling - waiting to pause"),e++,this.once("pollComplete",(function(){s("pre-pause polling complete"),--e||t()}))),this.writable||(s("we are currently writing - waiting to pause"),e++,this.once("drain",(function(){s("pre-pause writing complete"),--e||t()})))}else t()}_poll(){s("polling"),this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){s("polling got data %s",e);(0,a.decodePayload)(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState?this._poll():s('ignoring poll - transport state "%s"',this.readyState))}doClose(){const e=()=>{s("writing close packet"),this.write([{type:"close"}])};"open"===this.readyState?(s("transport open - closing"),e()):(s("transport not open - deferring close"),this.once("open",e))}write(e){this.writable=!1,(0,a.encodePayload)(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,o.randomString)()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}t.Polling=c},538716:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=t.BaseWS=void 0;const i=r(644689),o=r(185374),a=r(646376),s=r(814624),c=(0,n(r(456617)).default)("engine.io-client:websocket"),u="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class l extends i.Transport{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,r=u?{}:(0,o.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(n){return this.emitReserved("error",n)}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{try{this.doWrite(r,e)}catch(t){c("websocket closed before onclose event")}n&&(0,s.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},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]=(0,o.randomString)()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}t.BaseWS=l;const d=s.globalThisShim.WebSocket||s.globalThisShim.MozWebSocket;t.WS=class extends l{createSocket(e,t,r){return u?new d(e,t,r):t?new d(e,t):new d(e)}doWrite(e,t){this.ws.send(t)}}},844480:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WT=void 0;const i=r(644689),o=r(814624),a=r(646376),s=(0,n(r(456617)).default)("engine.io-client:webtransport");class c extends i.Transport{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then((()=>{s("transport closed gracefully"),this.onClose()})).catch((e=>{s("transport closed due to %s",e),this.onError("webtransport error",e)})),this._transport.ready.then((()=>{this._transport.createBidirectionalStream().then((e=>{const t=(0,a.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=(0,a.createPacketEncoderStream)();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();const i=()=>{r.read().then((({done:e,value:t})=>{e?s("session is closed"):(s("received chunk: %o",t),this.onPacket(t),i())})).catch((e=>{s("an error occurred while reading: %s",e)}))};i();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{n&&(0,o.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}}t.WT=c},185374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pick=function(e,...t){return t.reduce(((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t)),{})},t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=i.bind(n.globalThisShim),e.clearTimeoutFn=o.bind(n.globalThisShim)):(e.setTimeoutFn=n.globalThisShim.setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=n.globalThisShim.clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){if("string"==typeof e)return function(e){let t=0,r=0;for(let n=0,i=e.length;n=57344?r+=3:(n++,r+=4);return r}(e);return Math.ceil((e.byteLength||e.size)*a)},t.randomString=function(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)};const n=r(814624);const i=n.globalThisShim.setTimeout,o=n.globalThisShim.clearTimeout;const a=1.33},562046:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_PACKET=t.PACKET_TYPES_REVERSE=t.PACKET_TYPES=void 0;const r=Object.create(null);t.PACKET_TYPES=r,r.open="0",r.close="1",r.ping="2",r.pong="3",r.message="4",r.upgrade="5",r.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(r).forEach((e=>{n[r[e]]=e}));t.ERROR_PACKET={type:"error",data:"parser error"}},142745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0;const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let i=0;i<64;i++)n[r.charCodeAt(i)]=i;t.encode=e=>{let t,n=new Uint8Array(e),i=n.length,o="";for(t=0;t>2],o+=r[(3&n[t])<<4|n[t+1]>>4],o+=r[(15&n[t+1])<<2|n[t+2]>>6],o+=r[63&n[t+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o};t.decode=e=>{let t,r,i,o,a,s=.75*e.length,c=e.length,u=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);const l=new ArrayBuffer(s),d=new Uint8Array(l);for(t=0;t>4,d[u++]=(15&i)<<4|o>>2,d[u++]=(3&o)<<6|63&a;return l}},932662:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePacket=void 0;const n=r(562046),i=r(142745),o="function"==typeof ArrayBuffer;t.decodePacket=(e,t)=>{if("string"!=typeof e)return{type:"message",data:s(e,t)};const r=e.charAt(0);if("b"===r)return{type:"message",data:a(e.substring(1),t)};return n.PACKET_TYPES_REVERSE[r]?e.length>1?{type:n.PACKET_TYPES_REVERSE[r],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[r]}:n.ERROR_PACKET};const a=(e,t)=>{if(o){const r=(0,i.decode)(e);return s(r,t)}return{base64:!0,data:e}},s=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer},902686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacket=void 0,t.encodePacketToBinary=function(e,t){if(i&&e.data instanceof Blob)return e.data.arrayBuffer().then(u).then(t);if(o&&(e.data instanceof ArrayBuffer||a(e.data)))return t(u(e.data));s(e,!1,(e=>{l||(l=new TextEncoder),t(l.encode(e))}))};const n=r(562046),i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),o="function"==typeof ArrayBuffer,a=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,s=({type:e,data:t},r,s)=>i&&t instanceof Blob?r?s(t):c(t,s):o&&(t instanceof ArrayBuffer||a(t))?r?s(t):c(new Blob([t]),s):s(n.PACKET_TYPES[e]+(t||""));t.encodePacket=s;const c=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function u(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let l},646376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0,t.createPacketEncoderStream=function(){return new TransformStream({transform(e,t){(0,n.encodePacketToBinary)(e,(r=>{const n=r.length;let i;if(n<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,n);else if(n<65536){i=new Uint8Array(3);const e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,n)}else{i=new Uint8Array(9);const e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(i[0]|=128),t.enqueue(i),t.enqueue(r)}))}})},t.createPacketDecoderStream=function(e,t){s||(s=new TextDecoder);const r=[];let n=0,a=-1,l=!1;return new TransformStream({transform(d,f){for(r.push(d);;){if(0===n){if(c(r)<1)break;const e=u(r,1);l=!(128&~e[0]),a=127&e[0],n=a<126?3:126===a?1:2}else if(1===n){if(c(r)<2)break;const e=u(r,2);a=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(c(r)<8)break;const e=u(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){f.enqueue(o.ERROR_PACKET);break}a=i*Math.pow(2,32)+t.getUint32(4),n=3}else{if(c(r)e){f.enqueue(o.ERROR_PACKET);break}}}})};const n=r(902686);Object.defineProperty(t,"encodePacket",{enumerable:!0,get:function(){return n.encodePacket}});const i=r(932662);Object.defineProperty(t,"decodePacket",{enumerable:!0,get:function(){return i.decodePacket}});const o=r(562046),a=String.fromCharCode(30);t.encodePayload=(e,t)=>{const r=e.length,i=new Array(r);let o=0;e.forEach(((e,s)=>{(0,n.encodePacket)(e,!1,(e=>{i[s]=e,++o===r&&t(i.join(a))}))}))};let s;function c(e){return e.reduce(((e,t)=>e+t.length),0)}function u(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let i=0;i{const r=e.split(a),n=[];for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n=new Set,i="object"==typeof process&&process?process:{},o=(e,t,r,n)=>{"function"==typeof i.emitWarning?i.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)};let a=globalThis.AbortController,s=globalThis.AbortSignal;if(void 0===a){s=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},a=class{constructor(){t()}signal=new s;abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(const t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e="1"!==i.env?.LRU_CACHE_IGNORE_AC_WARNING;const t=()=>{e&&(e=!1,o("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}Symbol("type");const c=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),u=e=>c(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?l:null:null;class l extends Array{constructor(e){super(e),this.fill(0)}}class d{heap;length;static#e=!1;static create(e){const t=u(e);if(!t)return[];d.#e=!0;const r=new d(e,t);return d.#e=!1,r}constructor(e,t){if(!d.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class f{#t;#r;#n;#i;#o;#a;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#s;#c;#u;#l;#d;#f;#h;#p;#g;#m;#y;#b;#v;#w;#A;#C;#E;static unsafeExposeInternals(e){return{starts:e.#v,ttls:e.#w,sizes:e.#b,keyMap:e.#u,keyList:e.#l,valList:e.#d,next:e.#f,prev:e.#h,get head(){return e.#p},get tail(){return e.#g},free:e.#m,isBackgroundFetch:t=>e.#x(t),backgroundFetch:(t,r,n,i)=>e.#S(t,r,n,i),moveToTail:t=>e.#I(t),indexes:t=>e.#k(t),rindexes:t=>e.#_(t),isStale:t=>e.#T(t)}}get max(){return this.#t}get maxSize(){return this.#r}get calculatedSize(){return this.#c}get size(){return this.#s}get fetchMethod(){return this.#o}get memoMethod(){return this.#a}get dispose(){return this.#n}get disposeAfter(){return this.#i}constructor(e){const{max:t=0,ttl:r,ttlResolution:i=1,ttlAutopurge:a,updateAgeOnGet:s,updateAgeOnHas:l,allowStale:h,dispose:p,disposeAfter:g,noDisposeOnSet:m,noUpdateTTL:y,maxSize:b=0,maxEntrySize:v=0,sizeCalculation:w,fetchMethod:A,memoMethod:C,noDeleteOnFetchRejection:E,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:I,ignoreFetchAbort:k}=e;if(0!==t&&!c(t))throw new TypeError("max option must be a nonnegative integer");const _=t?u(t):Array;if(!_)throw new Error("invalid max value: "+t);if(this.#t=t,this.#r=b,this.maxEntrySize=v||this.#r,this.sizeCalculation=w,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==C&&"function"!=typeof C)throw new TypeError("memoMethod must be a function if defined");if(this.#a=C,void 0!==A&&"function"!=typeof A)throw new TypeError("fetchMethod must be a function if specified");if(this.#o=A,this.#C=!!A,this.#u=new Map,this.#l=new Array(t).fill(void 0),this.#d=new Array(t).fill(void 0),this.#f=new _(t),this.#h=new _(t),this.#p=0,this.#g=0,this.#m=d.create(t),this.#s=0,this.#c=0,"function"==typeof p&&(this.#n=p),"function"==typeof g?(this.#i=g,this.#y=[]):(this.#i=void 0,this.#y=void 0),this.#A=!!this.#n,this.#E=!!this.#i,this.noDisposeOnSet=!!m,this.noUpdateTTL=!!y,this.noDeleteOnFetchRejection=!!E,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!I,this.ignoreFetchAbort=!!k,0!==this.maxEntrySize){if(0!==this.#r&&!c(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!c(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#M()}if(this.allowStale=!!h,this.noDeleteOnStaleGet=!!x,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!l,this.ttlResolution=c(i)||0===i?i:1,this.ttlAutopurge=!!a,this.ttl=r||0,this.ttl){if(!c(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#P()}if(0===this.#t&&0===this.ttl&&0===this.#r)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#t&&!this.#r){const e="LRU_CACHE_UNBOUNDED";if((e=>!n.has(e))(e)){n.add(e);o("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,f)}}}getRemainingTTL(e){return this.#u.has(e)?1/0:0}#P(){const e=new l(this.#t),t=new l(this.#t);this.#w=e,this.#v=t,this.#j=(n,i,o=r.now())=>{if(t[n]=0!==i?o:0,e[n]=i,0!==i&&this.ttlAutopurge){const e=setTimeout((()=>{this.#T(n)&&this.#D(this.#l[n],"expire")}),i+1);e.unref&&e.unref()}},this.#O=n=>{t[n]=0!==e[n]?r.now():0},this.#B=(r,o)=>{if(e[o]){const a=e[o],s=t[o];if(!a||!s)return;r.ttl=a,r.start=s,r.now=n||i();const c=r.now-s;r.remainingTTL=a-c}};let n=0;const i=()=>{const e=r.now();if(this.ttlResolution>0){n=e;const t=setTimeout((()=>n=0),this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=r=>{const o=this.#u.get(r);if(void 0===o)return 0;const a=e[o],s=t[o];if(!a||!s)return 1/0;return a-((n||i())-s)},this.#T=r=>{const o=t[r],a=e[r];return!!a&&!!o&&(n||i())-o>a}}#O=()=>{};#B=()=>{};#j=()=>{};#T=()=>!1;#M(){const e=new l(this.#t);this.#c=0,this.#b=e,this.#N=t=>{this.#c-=e[t],e[t]=0},this.#R=(e,t,r,n)=>{if(this.#x(t))return 0;if(!c(r)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!c(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.#L=(t,r,n)=>{if(e[t]=r,this.#r){const r=this.#r-e[t];for(;this.#c>r;)this.#F(!0)}this.#c+=e[t],n&&(n.entrySize=r,n.totalCalculatedSize=this.#c)}}#N=e=>{};#L=(e,t,r)=>{};#R=(e,t,r,n)=>{if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#k({allowStale:e=this.allowStale}={}){if(this.#s)for(let t=this.#g;this.#U(t)&&(!e&&this.#T(t)||(yield t),t!==this.#p);)t=this.#h[t]}*#_({allowStale:e=this.allowStale}={}){if(this.#s)for(let t=this.#p;this.#U(t)&&(!e&&this.#T(t)||(yield t),t!==this.#g);)t=this.#f[t]}#U(e){return void 0!==e&&this.#u.get(this.#l[e])===e}*entries(){for(const e of this.#k())void 0===this.#d[e]||void 0===this.#l[e]||this.#x(this.#d[e])||(yield[this.#l[e],this.#d[e]])}*rentries(){for(const e of this.#_())void 0===this.#d[e]||void 0===this.#l[e]||this.#x(this.#d[e])||(yield[this.#l[e],this.#d[e]])}*keys(){for(const e of this.#k()){const t=this.#l[e];void 0===t||this.#x(this.#d[e])||(yield t)}}*rkeys(){for(const e of this.#_()){const t=this.#l[e];void 0===t||this.#x(this.#d[e])||(yield t)}}*values(){for(const e of this.#k()){void 0===this.#d[e]||this.#x(this.#d[e])||(yield this.#d[e])}}*rvalues(){for(const e of this.#_()){void 0===this.#d[e]||this.#x(this.#d[e])||(yield this.#d[e])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(const r of this.#k()){const n=this.#d[r],i=this.#x(n)?n.__staleWhileFetching:n;if(void 0!==i&&e(i,this.#l[r],this))return this.get(this.#l[r],t)}}forEach(e,t=this){for(const r of this.#k()){const n=this.#d[r],i=this.#x(n)?n.__staleWhileFetching:n;void 0!==i&&e.call(t,i,this.#l[r],this)}}rforEach(e,t=this){for(const r of this.#_()){const n=this.#d[r],i=this.#x(n)?n.__staleWhileFetching:n;void 0!==i&&e.call(t,i,this.#l[r],this)}}purgeStale(){let e=!1;for(const t of this.#_({allowStale:!0}))this.#T(t)&&(this.#D(this.#l[t],"expire"),e=!0);return e}info(e){const t=this.#u.get(e);if(void 0===t)return;const n=this.#d[t],i=this.#x(n)?n.__staleWhileFetching:n;if(void 0===i)return;const o={value:i};if(this.#w&&this.#v){const e=this.#w[t],n=this.#v[t];if(e&&n){const t=e-(r.now()-n);o.ttl=t,o.start=Date.now()}}return this.#b&&(o.size=this.#b[t]),o}dump(){const e=[];for(const t of this.#k({allowStale:!0})){const n=this.#l[t],i=this.#d[t],o=this.#x(i)?i.__staleWhileFetching:i;if(void 0===o||void 0===n)continue;const a={value:o};if(this.#w&&this.#v){a.ttl=this.#w[t];const e=r.now()-this.#v[t];a.start=Math.floor(Date.now()-e)}this.#b&&(a.size=this.#b[t]),e.unshift([n,a])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}set(e,t,r={}){if(void 0===t)return this.delete(e),this;const{ttl:n=this.ttl,start:i,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:s}=r;let{noUpdateTTL:c=this.noUpdateTTL}=r;const u=this.#R(e,t,r.size||0,a);if(this.maxEntrySize&&u>this.maxEntrySize)return s&&(s.set="miss",s.maxEntrySizeExceeded=!0),this.#D(e,"set"),this;let l=0===this.#s?void 0:this.#u.get(e);if(void 0===l)l=0===this.#s?this.#g:0!==this.#m.length?this.#m.pop():this.#s===this.#t?this.#F(!1):this.#s,this.#l[l]=e,this.#d[l]=t,this.#u.set(e,l),this.#f[this.#g]=l,this.#h[l]=this.#g,this.#g=l,this.#s++,this.#L(l,u,s),s&&(s.set="add"),c=!1;else{this.#I(l);const r=this.#d[l];if(t!==r){if(this.#C&&this.#x(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=r;void 0===t||o||(this.#A&&this.#n?.(t,e,"set"),this.#E&&this.#y?.push([t,e,"set"]))}else o||(this.#A&&this.#n?.(r,e,"set"),this.#E&&this.#y?.push([r,e,"set"]));if(this.#N(l),this.#L(l,u,s),this.#d[l]=t,s){s.set="replace";const e=r&&this.#x(r)?r.__staleWhileFetching:r;void 0!==e&&(s.oldValue=e)}}else s&&(s.set="update")}if(0===n||this.#w||this.#P(),this.#w&&(c||this.#j(l,n,i),s&&this.#B(s,l)),!o&&this.#E&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#i?.(...t)}return this}pop(){try{for(;this.#s;){const e=this.#d[this.#p];if(this.#F(!0),this.#x(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#E&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#i?.(...t)}}}#F(e){const t=this.#p,r=this.#l[t],n=this.#d[t];return this.#C&&this.#x(n)?n.__abortController.abort(new Error("evicted")):(this.#A||this.#E)&&(this.#A&&this.#n?.(n,r,"evict"),this.#E&&this.#y?.push([n,r,"evict"])),this.#N(t),e&&(this.#l[t]=void 0,this.#d[t]=void 0,this.#m.push(t)),1===this.#s?(this.#p=this.#g=0,this.#m.length=0):this.#p=this.#f[t],this.#u.delete(r),this.#s--,t}has(e,t={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:n}=t,i=this.#u.get(e);if(void 0!==i){const e=this.#d[i];if(this.#x(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#T(i))return r&&this.#O(i),n&&(n.has="hit",this.#B(n,i)),!0;n&&(n.has="stale",this.#B(n,i))}else n&&(n.has="miss");return!1}peek(e,t={}){const{allowStale:r=this.allowStale}=t,n=this.#u.get(e);if(void 0===n||!r&&this.#T(n))return;const i=this.#d[n];return this.#x(i)?i.__staleWhileFetching:i}#S(e,t,r,n){const i=void 0===t?void 0:this.#d[t];if(this.#x(i))return i;const o=new a,{signal:s}=r;s?.addEventListener("abort",(()=>o.abort(s.reason)),{signal:o.signal});const c={signal:o.signal,options:r,context:n},u=(n,i=!1)=>{const{aborted:a}=o.signal,s=r.ignoreFetchAbort&&void 0!==n;if(r.status&&(a&&!i?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,s&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),a&&!s&&!i)return l(o.signal.reason);const u=d;return this.#d[t]===d&&(void 0===n?u.__staleWhileFetching?this.#d[t]=u.__staleWhileFetching:this.#D(e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,n,c.options))),n},l=n=>{const{aborted:i}=o.signal,a=i&&r.allowStaleOnFetchAbort,s=a||r.allowStaleOnFetchRejection,c=s||r.noDeleteOnFetchRejection,u=d;if(this.#d[t]===d){!c||void 0===u.__staleWhileFetching?this.#D(e,"fetch"):a||(this.#d[t]=u.__staleWhileFetching)}if(s)return r.status&&void 0!==u.__staleWhileFetching&&(r.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw n};r.status&&(r.status.fetchDispatched=!0);const d=new Promise(((t,n)=>{const a=this.#o?.(e,i,c);a&&a instanceof Promise&&a.then((e=>t(void 0===e?void 0:e)),n),o.signal.addEventListener("abort",(()=>{r.ignoreFetchAbort&&!r.allowStaleOnFetchAbort||(t(void 0),r.allowStaleOnFetchAbort&&(t=e=>u(e,!0)))}))})).then(u,(e=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=e),l(e)))),f=Object.assign(d,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return void 0===t?(this.set(e,f,{...c.options,status:void 0}),t=this.#u.get(e)):this.#d[t]=f,f}#x(e){if(!this.#C)return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof a}async fetch(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:s=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:m,signal:y}=t;if(!this.#C)return m&&(m.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:m});const b={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:a,size:s,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:h,ignoreFetchAbort:f,status:m,signal:y};let v=this.#u.get(e);if(void 0===v){m&&(m.fetch="miss");const t=this.#S(e,v,b,p);return t.__returned=t}{const t=this.#d[v];if(this.#x(t)){const e=r&&void 0!==t.__staleWhileFetching;return m&&(m.fetch="inflight",e&&(m.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}const i=this.#T(v);if(!g&&!i)return m&&(m.fetch="hit"),this.#I(v),n&&this.#O(v),m&&this.#B(m,v),t;const o=this.#S(e,v,b,p),a=void 0!==o.__staleWhileFetching&&r;return m&&(m.fetch=i?"stale":"refresh",a&&i&&(m.returnedStale=!0)),a?o.__staleWhileFetching:o.__returned=o}}async forceFetch(e,t={}){const r=await this.fetch(e,t);if(void 0===r)throw new Error("fetch() returned undefined");return r}memo(e,t={}){const r=this.#a;if(!r)throw new Error("no memoMethod provided to constructor");const{context:n,forceRefresh:i,...o}=t,a=this.get(e,o);if(!i&&void 0!==a)return a;const s=r(e,a,{options:o,context:n});return this.set(e,s,o),s}get(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=t,a=this.#u.get(e);if(void 0!==a){const t=this.#d[a],s=this.#x(t);return o&&this.#B(o,a),this.#T(a)?(o&&(o.get="stale"),s?(o&&r&&void 0!==t.__staleWhileFetching&&(o.returnedStale=!0),r?t.__staleWhileFetching:void 0):(i||this.#D(e,"expire"),o&&r&&(o.returnedStale=!0),r?t:void 0)):(o&&(o.get="hit"),s?t.__staleWhileFetching:(this.#I(a),n&&this.#O(a),t))}o&&(o.get="miss")}#z(e,t){this.#h[t]=e,this.#f[e]=t}#I(e){e!==this.#g&&(e===this.#p?this.#p=this.#f[e]:this.#z(this.#h[e],this.#f[e]),this.#z(this.#g,e),this.#g=e)}delete(e){return this.#D(e,"delete")}#D(e,t){let r=!1;if(0!==this.#s){const n=this.#u.get(e);if(void 0!==n)if(r=!0,1===this.#s)this.#H(t);else{this.#N(n);const r=this.#d[n];if(this.#x(r)?r.__abortController.abort(new Error("deleted")):(this.#A||this.#E)&&(this.#A&&this.#n?.(r,e,t),this.#E&&this.#y?.push([r,e,t])),this.#u.delete(e),this.#l[n]=void 0,this.#d[n]=void 0,n===this.#g)this.#g=this.#h[n];else if(n===this.#p)this.#p=this.#f[n];else{const e=this.#h[n];this.#f[e]=this.#f[n];const t=this.#f[n];this.#h[t]=this.#h[n]}this.#s--,this.#m.push(n)}}if(this.#E&&this.#y?.length){const e=this.#y;let t;for(;t=e?.shift();)this.#i?.(...t)}return r}clear(){return this.#H("delete")}#H(e){for(const t of this.#_({allowStale:!0})){const r=this.#d[t];if(this.#x(r))r.__abortController.abort(new Error("deleted"));else{const n=this.#l[t];this.#A&&this.#n?.(r,n,e),this.#E&&this.#y?.push([r,n,e])}}if(this.#u.clear(),this.#d.fill(void 0),this.#l.fill(void 0),this.#w&&this.#v&&(this.#w.fill(0),this.#v.fill(0)),this.#b&&this.#b.fill(0),this.#p=0,this.#g=0,this.#m.length=0,this.#c=0,this.#s=0,this.#E&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#i?.(...t)}}}t.LRUCache=f},57743:(e,t)=>{"use strict";function r(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Object.defineProperty(t,"__esModule",{value:!0}),t.Backoff=r,r.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+r:e-r}return 0|Math.min(e,this.max)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(e){this.ms=e},r.prototype.setMax=function(e){this.max=e},r.prototype.setJitter=function(e){this.jitter=e}},538007:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebTransport=t.WebSocket=t.NodeWebSocket=t.XHR=t.NodeXHR=t.Fetch=t.Socket=t.Manager=t.protocol=void 0,t.io=u,t.connect=u,t.default=u;const i=r(976894),o=r(623776);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const a=r(356214);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return a.Socket}});const s=(0,n(r(59368)).default)("socket.io-client"),c={};function u(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const r=(0,i.url)(e,t.path||"/socket.io"),n=r.source,a=r.id,u=r.path,l=c[a]&&u in c[a].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||l?(s("ignoring socket cache for %s",n),d=new o.Manager(n,t)):(c[a]||(s("new io instance for %s",n),c[a]=new o.Manager(n,t)),d=c[a]),r.query&&!t.query&&(t.query=r.queryKey),d.socket(r.path,t)}Object.assign(u,{Manager:o.Manager,Socket:a.Socket,io:u,connect:u});var l=r(784627);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return l.protocol}});var d=r(804956);Object.defineProperty(t,"Fetch",{enumerable:!0,get:function(){return d.Fetch}}),Object.defineProperty(t,"NodeXHR",{enumerable:!0,get:function(){return d.NodeXHR}}),Object.defineProperty(t,"XHR",{enumerable:!0,get:function(){return d.XHR}}),Object.defineProperty(t,"NodeWebSocket",{enumerable:!0,get:function(){return d.NodeWebSocket}}),Object.defineProperty(t,"WebSocket",{enumerable:!0,get:function(){return d.WebSocket}}),Object.defineProperty(t,"WebTransport",{enumerable:!0,get:function(){return d.WebTransport}}),e.exports=u},623776:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;const s=r(804956),c=r(356214),u=o(r(784627)),l=r(625942),d=r(57743),f=r(124454),h=(0,a(r(59368)).default)("socket.io-client:manager");class p extends f.Emitter{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,(0,s.installTimerFunctions)(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new d.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||u;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(h("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;h("opening %s",this.uri),this.engine=new s.Socket(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=(0,l.on)(t,"open",(function(){r.onopen(),e&&e()})),i=t=>{h("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=(0,l.on)(t,"error",i);if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e);const r=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){h("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push((0,l.on)(e,"ping",this.onping.bind(this)),(0,l.on)(e,"data",this.ondata.bind(this)),(0,l.on)(e,"error",this.onerror.bind(this)),(0,l.on)(e,"close",this.onclose.bind(this)),(0,l.on)(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){(0,s.nextTick)((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){h("error",e),this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new c.Socket(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t){if(this.nsps[r].active)return void h("socket %s is still active, skipping close",r)}this._close()}_packet(e){h("writing packet %j",e);const t=this.encoder.encode(e);for(let r=0;re())),this.subs.length=0,this.decoder.destroy()}_close(){h("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;h("closed due to %s",e),this.cleanup(),null===(r=this.engine)||void 0===r||r.close(),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)h("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();h("will wait %dms before reconnect attempt",t),this._reconnecting=!0;const r=this.setTimeoutFn((()=>{e.skipReconnect||(h("attempting reconnect"),this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(h("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):(h("reconnect success"),e.onreconnect())})))}),t);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=p},625942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=function(e,t,r){return e.on(t,r),function(){e.off(t,r)}}},356214:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const i=r(784627),o=r(625942),a=r(124454),s=(0,n(r(59368)).default)("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class u extends a.Emitter{constructor(e,t,r){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,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[(0,o.on)(e,"open",this.onopen.bind(this)),(0,o.on)(e,"packet",this.onpacket.bind(this)),(0,o.on)(e,"error",this.onerror.bind(this)),(0,o.on)(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,o;if(c.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 a={type:i.PacketType.EVENT,data:t,options:{}};if(a.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++;s("emitting packet with ack id %d",e);const r=t.pop();this._registerAckCallback(e,r),a.id=e}const u=null===(n=null===(r=this.io.engine)||void 0===r?void 0:r.transport)||void 0===n?void 0:n.writable,l=this.connected&&!(null===(o=this.io.engine)||void 0===o?void 0:o._hasPingExpired());return this.flags.volatile&&!u?s("discard packet as the transport is not currently writable"):l?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a),this.flags={},this}_registerAckCallback(e,t){var r;const n=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===n)return void(this.acks[e]=t);const i=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise(((r,n)=>{const i=(e,t)=>e?n(e):r(t);i.withError=!0,t.push(i),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...n)=>{if(r!==this._queue[0])return;return null!==e?r.tryCount>this._opts.retries&&(s("packet [%d] is discarded after %d tries",r.id,r.tryCount),this._queue.shift(),t&&t(e)):(s("packet [%d] was successfully sent",r.id),this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()})),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(s("draining queue"),!this.connected||0===this._queue.length)return;const t=this._queue[0];!t.pending||e?(t.pending=!0,t.tryCount++,s("sending packet [%d] (try n\xb0%d)",t.id,t.tryCount),this.flags=t.flags,this.emit.apply(this,t.args)):s("packet [%d] has already been sent and is waiting for an ack",t.id)}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){s("transport is open - connecting"),"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:i.PacketType.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){s("close (%s)",e),this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case i.PacketType.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 i.PacketType.EVENT:case i.PacketType.BINARY_EVENT:this.onevent(e);break;case i.PacketType.ACK:case i.PacketType.BINARY_ACK:this.onack(e);break;case i.PacketType.DISCONNECT:this.ondisconnect();break;case i.PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];s("emitting event %j",t),null!=e.id&&(s("attaching ack callback to event"),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 r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...n){r||(r=!0,s("sending ack %j",n),t.packet({type:i.PacketType.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"==typeof t?(delete this.acks[e.id],s("calling ack %s with %j",e.id,e.data),t.withError&&e.data.unshift(null),t.apply(this,e.data)):s("bad ack %s",e.id)}onconnect(e,t){s("socket connected with id %s",e),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(){s("server disconnect (%s)",this.nsp),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&&(s("performing disconnect (%s)",this.nsp),this.packet({type:i.PacketType.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 r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=r(279133);function i(e,t){if(!e)return e;if((0,n.isBinary)(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=r(124454),i=r(184926),o=r(279133),a=(0,r(980852).default)("socket.io-parser"),s=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var c;t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(c=t.PacketType||(t.PacketType={}));function u(e){return"[object Object]"===Object.prototype.toString.call(e)}t.Encoder=class{constructor(e){this.replacer=e}encode(e){return a("encoding packet %j",e),e.type!==c.EVENT&&e.type!==c.ACK||!(0,o.hasBinary)(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===c.EVENT?c.BINARY_EVENT:c.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}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+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),a("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=(0,i.deconstructPacket)(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}};class l extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const r=t.type===c.BINARY_EVENT;r||t.type===c.BINARY_ACK?(t.type=r?c.EVENT:c.ACK,this.reconstructor=new d(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!(0,o.isBinary)(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(void 0===c[r.type])throw new Error("unknown packet type "+r.type);if(r.type===c.BINARY_EVENT||r.type===c.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw new Error("Illegal attachments");r.attachments=Number(i)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}r.nsp=e.substring(n,t)}else r.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!l.isPayloadValid(r.type,n))throw new Error("invalid payload");r.data=n}return a("decoded %s as %j",e,r),r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(t){return!1}}static isPayloadValid(e,t){switch(e){case c.CONNECT:return u(t);case c.DISCONNECT:return void 0===t;case c.CONNECT_ERROR:return"string"==typeof t||u(t);case c.EVENT:case c.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===s.indexOf(t[0]));case c.ACK:case c.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}t.Decoder=l;class d{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=(0,i.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},279133:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const r="function"==typeof ArrayBuffer,n=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),o="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function a(e){return r&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||i&&e instanceof Blob||o&&e instanceof File}t.isBinary=a,t.hasBinary=function e(t,r){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r{"use strict";r.d(t,{DO:()=>s,Id:()=>A,My:()=>l,OG:()=>k,Ph:()=>m,Q5:()=>j,aK:()=>S,aT:()=>g,aY:()=>a,dJ:()=>I,e8:()=>c,ex:()=>C,fg:()=>M,lX:()=>y,lq:()=>b,qj:()=>w,r4:()=>x,x:()=>D,z:()=>v,zW:()=>d});const n=BigInt(0),i=BigInt(1),o=BigInt(2);function a(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function s(e){if(!a(e))throw new Error("Uint8Array expected")}function c(e,t){if("boolean"!=typeof t)throw new Error(e+" boolean expected, got "+t)}const u=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function l(e){s(e);let t="";for(let r=0;r=h._0&&e<=h._9?e-h._0:e>=h.A&&e<=h.F?e-(h.A-10):e>=h.a&&e<=h.f?e-(h.a-10):void 0}function g(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let i=0,o=0;i"bigint"==typeof e&&n<=e;function x(e,t,r){return E(e)&&E(t)&&E(r)&&t<=e&&en;e>>=i,t+=1);return t}const k=e=>(o<new Uint8Array(e),T=e=>Uint8Array.from(e);function M(e,t,r){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=_(e),i=_(e),o=0;const a=()=>{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),c=(e=_())=>{i=s(T([0]),e),n=s(),0!==e.length&&(i=s(T([1]),e),n=s())},u=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e{let r;for(a(),c(e);!(r=t(u()));)c();return a(),r}}const P={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||a(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function j(e,t,r={}){const n=(t,r,n)=>{const i=P[r];if("function"!=typeof i)throw new Error("invalid validator function");const o=e[t];if(!(n&&void 0===o||i(o,e)))throw new Error("param "+String(t)+" is invalid. Expected "+r+", got "+o)};for(const[i,o]of Object.entries(t))n(i,o,!1);for(const[i,o]of Object.entries(r))n(i,o,!0);return e}function D(e){const t=new WeakMap;return(r,...n)=>{const i=t.get(r);if(void 0!==i)return i;const o=e(r,...n);return t.set(r,o),o}}},859705:(e,t,r)=>{"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function i(e,...t){if(!((r=e)instanceof Uint8Array||ArrayBuffer.isView(r)&&"Uint8Array"===r.constructor.name))throw new Error("Uint8Array expected");var r;if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){i(e);const r=t.outputLen;if(e.lengthme});const c="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;const u=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),l=(e,t)=>e<<32-t|e>>>t;function d(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}(e)),i(e),e}class f{clone(){return this._cloneInto()}}function h(e){const t=t=>e().update(d(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function p(e=32){if(c&&"function"==typeof c.getRandomValues)return c.getRandomValues(new Uint8Array(e));if(c&&"function"==typeof c.randomBytes)return c.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")}const g=(e,t,r)=>e&t^e&r^t&r;class m extends f{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=u(this.buffer)}update(e){a(this);const{view:t,buffer:r,blockLen:n}=this,i=(e=d(e)).length;for(let o=0;on-o&&(this.process(r,0),o=0);for(let a=o;a>i&o),s=Number(r&o),c=n?4:0,u=n?0:4;e.setUint32(t+c,a,n),e.setUint32(t+u,s,n)}(r,n-8,BigInt(8*this.length),i),this.process(r,0);const c=u(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=l/4,f=this.get();if(d>f.length)throw new Error("_sha2: outputLen bigger than state");for(let a=0;a>>3,n=l(t,17)^l(t,19)^t>>>10;v[f]=n+v[f-7]+r+v[f-16]|0}let{A:r,B:n,C:i,D:o,E:a,F:s,G:c,H:u}=this;for(let f=0;f<64;f++){const e=u+(l(a,6)^l(a,11)^l(a,25))+((d=a)&s^~d&c)+y[f]+v[f]|0,t=(l(r,2)^l(r,13)^l(r,22))+g(r,n,i)|0;u=c,c=s,s=a,a=o+e|0,o=i,i=n,n=r,r=e+t|0}var d;r=r+this.A|0,n=n+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,s=s+this.F|0,c=c+this.G|0,u=u+this.H|0,this.set(r,n,i,o,a,s,c,u)}roundClean(){v.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const A=h((()=>new w));class C extends f{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,o(e);const r=d(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let o=0;onew C(e,t).update(r).digest();E.create=(e,t)=>new C(e,t);var x=r(938293);const S=BigInt(0),I=BigInt(1),k=BigInt(2),_=BigInt(3),T=BigInt(4),M=BigInt(5),P=BigInt(8);function j(e,t){const r=e%t;return r>=S?r:t+r}function D(e,t,r){if(tS;)t&I&&(n=n*e%r),e=e*e%r,t>>=I;return n}function O(e,t,r){let n=e;for(;t-- >S;)n*=n,n%=r;return n}function B(e,t){if(e===S)throw new Error("invert: expected non-zero number");if(t<=S)throw new Error("invert: expected positive modulus, got "+t);let r=j(e,t),n=t,i=S,o=I,a=I,s=S;for(;r!==S;){const e=n/r,t=n%r,c=i-a*e,u=o-s*e;n=r,r=t,i=a,o=s,a=c,s=u}if(n!==I)throw new Error("invert: does not exist");return j(i,t)}function N(e){if(e%T===_){const t=(e+I)/T;return function(e,r){const n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw new Error("Cannot find square root");return n}}if(e%P===M){const t=(e-M)/P;return function(e,r){const n=e.mul(r,k),i=e.pow(n,t),o=e.mul(r,i),a=e.mul(e.mul(o,k),i),s=e.mul(o,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),r))throw new Error("Cannot find square root");return s}}return function(e){const t=(e-I)/k;let r,n,i;for(r=e-I,n=0;r%k===S;r/=k,n++);for(i=k;i1e3)throw new Error("Cannot find square root: likely non-prime P");if(1===n){const t=(e+I)/T;return function(e,r){const n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw new Error("Cannot find square root");return n}}const o=(r+I)/k;return function(e,a){if(e.pow(a,t)===e.neg(e.ONE))throw new Error("Cannot find square root");let s=n,c=e.pow(e.mul(e.ONE,i),r),u=e.pow(a,o),l=e.pow(a,r);for(;!e.eql(l,e.ONE);){if(e.eql(l,e.ZERO))return e.ZERO;let t=1;for(let n=e.sqr(l);t 0, got "+e);const{nBitLength:i,nByteLength:o}=L(e,t);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let a;const s=Object.freeze({ORDER:e,BITS:i,BYTES:o,MASK:(0,x.OG)(i),ZERO:S,ONE:I,create:t=>j(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return S<=t&&te===S,isOdd:e=>(e&I)===I,neg:t=>j(-t,e),eql:(e,t)=>e===t,sqr:t=>j(t*t,e),add:(t,r)=>j(t+r,e),sub:(t,r)=>j(t-r,e),mul:(t,r)=>j(t*r,e),pow:(e,t)=>function(e,t,r){if(rS;)r&I&&(n=e.mul(n,i)),i=e.sqr(i),r>>=I;return n}(s,e,t),div:(t,r)=>j(t*B(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>B(t,e),sqrt:n.sqrt||(t=>(a||(a=N(e)),a(s,t))),invertBatch:e=>function(e,t){const r=new Array(t.length),n=t.reduce(((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n))),e.ONE),i=e.inv(n);return t.reduceRight(((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n))),i),r}(s,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,x.z)(e,o):(0,x.lq)(e,o),fromBytes:e=>{if(e.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+e.length);return r?(0,x.lX)(e):(0,x.Ph)(e)}});return Object.freeze(s)}function U(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function z(e){const t=U(e);return t+Math.ceil(t/2)}const H=BigInt(0),V=BigInt(1);function K(e,t){const r=t.negate();return e?r:t}function G(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function q(e,t){G(e,t);return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1)}}function Q(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach(((e,r)=>{if(!(e instanceof t))throw new Error("invalid point at index "+r)}))}function W(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach(((e,r)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+r)}))}const J=new WeakMap,Y=new WeakMap;function Z(e){return Y.get(e)||1}function $(e){return function(e){const t=R.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});(0,x.Q5)(e,t)}(e.Fp),(0,x.Q5)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...L(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}function X(e){void 0!==e.lowS&&(0,x.e8)("lowS",e.lowS),void 0!==e.prehash&&(0,x.e8)("prehash",e.prehash)}const{Ph:ee,aT:te}=x,re={Err:class extends Error{constructor(e=""){super(e)}},_tlv:{encode:(e,t)=>{const{Err:r}=re;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(1&t.length)throw new r("tlv.encode: unpadded data");const n=t.length/2,i=x.zW(n);if(i.length/2&128)throw new r("tlv.encode: long form length too big");const o=n>127?x.zW(i.length/2|128):"";return x.zW(e)+o+i+t},decode(e,t){const{Err:r}=re;let n=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[n++]!==e)throw new r("tlv.decode: wrong tlv");const i=t[n++];let o=0;if(!!(128&i)){const e=127&i;if(!e)throw new r("tlv.decode(long): indefinite length not supported");if(e>4)throw new r("tlv.decode(long): byte length is too big");const a=t.subarray(n,n+e);if(a.length!==e)throw new r("tlv.decode: length bytes not complete");if(0===a[0])throw new r("tlv.decode(long): zero leftmost byte");for(const t of a)o=o<<8|t;if(n+=e,o<128)throw new r("tlv.decode(long): not minimal encoding")}else o=i;const a=t.subarray(n,n+o);if(a.length!==o)throw new r("tlv.decode: wrong value length");return{v:a,l:t.subarray(n+o)}}},_int:{encode(e){const{Err:t}=re;if(e{const i=t.toAffine();return x.Id(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),o=t.fromBytes||(e=>{const t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function a(e){const{a:n,b:i}=t,o=r.sqr(e),a=r.mul(o,e);return r.add(r.add(a,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),a(t.Gx)))throw new Error("bad generator point: equation left != right");function s(e){const{allowedPrivateKeyLengths:r,nByteLength:n,wrapPrivateKey:i,n:o}=t;if(r&&"bigint"!=typeof e){if(x.aY(e)&&(e=x.My(e)),"string"!=typeof e||!r.includes(e.length))throw new Error("invalid private key");e=e.padStart(2*n,"0")}let a;try{a="bigint"==typeof e?e:x.Ph((0,x.qj)("private key",e,n))}catch(s){throw new Error("invalid private key, expected hex or "+n+" bytes, got "+typeof e)}return i&&(a=j(a,o)),x.aK("private key",a,ie,o),a}function c(e){if(!(e instanceof d))throw new Error("ProjectivePoint expected")}const u=(0,x.x)(((e,t)=>{const{px:n,py:i,pz:o}=e;if(r.eql(o,r.ONE))return{x:n,y:i};const a=e.is0();null==t&&(t=a?r.ONE:r.inv(o));const s=r.mul(n,t),c=r.mul(i,t),u=r.mul(o,t);if(a)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw new Error("invZ was invalid");return{x:s,y:c}})),l=(0,x.x)((e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.py))return;throw new Error("bad point: ZERO")}const{x:n,y:i}=e.toAffine();if(!r.isValid(n)||!r.isValid(i))throw new Error("bad point: x or y not FE");const o=r.sqr(i),s=a(n);if(!r.eql(o,s))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0}));class d{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw new Error("x required");if(null==t||!r.isValid(t))throw new Error("y required");if(null==n||!r.isValid(n))throw new Error("z required");Object.freeze(this)}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw new Error("invalid affine point");if(e instanceof d)throw new Error("projective point not allowed");const i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?d.ZERO:new d(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(d.fromAffine)}static fromHex(e){const t=d.fromAffine(o((0,x.qj)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return d.BASE.multiply(s(e))}static msm(e,t){return function(e,t,r,n){if(Q(r,e),W(n,t),r.length!==n.length)throw new Error("arrays of points and scalars must have equal length");const i=e.ZERO,o=(0,x.dJ)(BigInt(r.length)),a=o>12?o-3:o>4?o-2:o?2:1,s=(1<=0;l-=a){c.fill(i);for(let t=0;t>BigInt(l)&BigInt(s));c[i]=c[i].add(r[t])}let e=i;for(let t=c.length-1,r=i;t>0;t--)r=r.add(c[t]),e=e.add(r);if(u=u.add(e),0!==l)for(let t=0;tne||u>ne;)s&ie&&(l=l.add(p)),u&ie&&(f=f.add(p)),p=p.double(),s>>=ie,u>>=ie;return a&&(l=l.negate()),c&&(f=f.negate()),f=new d(r.mul(f.px,n.beta),f.py,f.pz),l.add(f)}multiply(e){const{endo:n,n:i}=t;let o,a;if(x.aK("scalar",e,ie,i),n){const{k1neg:t,k1:i,k2neg:s,k2:c}=n.splitScalar(e);let{p:u,f:l}=this.wNAF(i),{p:f,f:p}=this.wNAF(c);u=h.constTimeNegate(t,u),f=h.constTimeNegate(s,f),f=new d(r.mul(f.px,n.beta),f.py,f.pz),o=u.add(f),a=l.add(p)}else{const{p:t,f:r}=this.wNAF(e);o=t,a=r}return d.normalizeZ([o,a])[0]}multiplyAndAddUnsafe(e,t,r){const n=d.BASE,i=(e,t)=>t!==ne&&t!==ie&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?void 0:o}toAffine(e){return u(this,e)}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===ie)return!0;if(r)return r(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===ie?this:r?r(d,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return(0,x.e8)("isCompressed",e),this.assertValidity(),i(d,this,e)}toHex(e=!0){return(0,x.e8)("isCompressed",e),x.My(this.toRawBytes(e))}}d.BASE=new d(t.Gx,t.Gy,r.ONE),d.ZERO=new d(r.ZERO,r.ONE,r.ZERO);const f=t.nBitLength,h=(p=d,g=t.endo?Math.ceil(f/2):f,{constTimeNegate:K,hasPrecomputes:e=>1!==Z(e),unsafeLadder(e,t,r=p.ZERO){let n=e;for(;t>H;)t&V&&(r=r.add(n)),n=n.double(),t>>=V;return r},precomputeWindow(e,t){const{windows:r,windowSize:n}=q(t,g),i=[];let o=e,a=o;for(let s=0;s>=u,n>i&&(n-=c,r+=V);const d=e,f=e+Math.abs(n)-1,h=l%2!=0,p=n<0;0===n?a=a.add(K(h,t[d])):o=o.add(K(p,t[f]))}return{p:o,f:a}},wNAFUnsafe(e,t,r,n=p.ZERO){const{windows:i,windowSize:o}=q(e,g),a=BigInt(2**e-1),s=2**e,c=BigInt(e);for(let u=0;u>=c,i>o&&(i-=s,r+=V),0===i)continue;let l=t[e+Math.abs(i)-1];i<0&&(l=l.negate()),n=n.add(l)}return n},getPrecomputes(e,t,r){let n=J.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&J.set(t,r(n))),n},wNAFCached(e,t,r){const n=Z(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)},wNAFCachedUnsafe(e,t,r,n){const i=Z(e);return 1===i?this.unsafeLadder(e,t,n):this.wNAFUnsafe(i,this.getPrecomputes(i,e,r),t,n)},setWindowSize(e,t){G(t,g),Y.set(e,t),J.delete(e)}});var p,g;return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:s,weierstrassEquation:a,isWithinCurveOrder:function(e){return x.r4(e,ie,t.n)}}}function se(e){const t=function(e){const t=$(e);return x.Q5(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:r,n:n}=t,i=r.BYTES+1,o=2*r.BYTES+1;function a(e){return j(e,n)}function s(e){return B(e,n)}const{ProjectivePoint:c,normPrivateKeyToScalar:u,weierstrassEquation:l,isWithinCurveOrder:d}=ae({...t,toBytes(e,t,n){const i=t.toAffine(),o=r.toBytes(i.x),a=x.Id;return(0,x.e8)("isCompressed",n),n?a(Uint8Array.from([t.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,r.toBytes(i.y))},fromBytes(e){const t=e.length,n=e[0],a=e.subarray(1);if(t!==i||2!==n&&3!==n){if(t===o&&4===n){return{x:r.fromBytes(a.subarray(0,r.BYTES)),y:r.fromBytes(a.subarray(r.BYTES,2*r.BYTES))}}throw new Error("invalid Point, expected length of "+i+", or uncompressed "+o+", got "+t)}{const e=x.Ph(a);if(!x.r4(e,ie,r.ORDER))throw new Error("Point is not on curve");const t=l(e);let i;try{i=r.sqrt(t)}catch(s){const e=s instanceof Error?": "+s.message:"";throw new Error("Point is not on curve"+e)}return!(1&~n)!==((i&ie)===ie)&&(i=r.neg(i)),{x:e,y:i}}}}),f=e=>x.My(x.lq(e,t.nByteLength));function h(e){return e>n>>ie}const p=(e,t,r)=>x.Ph(e.slice(t,r));class g{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){const r=t.nByteLength;return e=(0,x.qj)("compactSignature",e,2*r),new g(p(e,0,r),p(e,r,2*r))}static fromDER(e){const{r:t,s:r}=re.toSig((0,x.qj)("DER",e));return new g(t,r)}assertValidity(){x.aK("r",this.r,ie,n),x.aK("s",this.s,ie,n)}addRecoveryBit(e){return new g(this.r,this.s,e)}recoverPublicKey(e){const{r:n,s:i,recovery:o}=this,u=v((0,x.qj)("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw new Error("recovery id invalid");const l=2===o||3===o?n+t.n:n;if(l>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const d=1&o?"03":"02",h=c.fromHex(d+f(l)),p=s(l),g=a(-u*p),m=a(i*p),y=c.BASE.multiplyAndAddUnsafe(h,g,m);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return h(this.s)}normalizeS(){return this.hasHighS()?new g(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return x.aT(this.toDERHex())}toDERHex(){return re.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return x.aT(this.toCompactHex())}toCompactHex(){return f(this.r)+f(this.s)}}const m={isValidPrivateKey(e){try{return u(e),!0}catch(t){return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const e=z(t.n);return function(e,t,r=!1){const n=e.length,i=U(t),o=z(t);if(n<16||n1024)throw new Error("expected "+o+"-1024 bytes of input, got "+n);const a=j(r?(0,x.Ph)(e):(0,x.lX)(e),t-I)+I;return r?(0,x.z)(a,i):(0,x.lq)(a,i)}(t.randomBytes(e),t.n)},precompute:(e=8,t=c.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function y(e){const t=x.aY(e),r="string"==typeof e,n=(t||r)&&e.length;return t?n===i||n===o:r?n===2*i||n===2*o:e instanceof c}const b=t.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const r=x.Ph(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},v=t.bits2int_modN||function(e){return a(b(e))},w=x.OG(t.nBitLength);function A(e){return x.aK("num < 2^"+t.nBitLength,e,ne,w),x.lq(e,t.nByteLength)}function C(e,n,i=E){if(["recovered","canonical"].some((e=>e in i)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:l}=t;let{lowS:f,prehash:p,extraEntropy:m}=i;null==f&&(f=!0),e=(0,x.qj)("msgHash",e),X(i),p&&(e=(0,x.qj)("prehashed msgHash",o(e)));const y=v(e),w=u(n),C=[A(w),A(y)];if(null!=m&&!1!==m){const e=!0===m?l(r.BYTES):m;C.push((0,x.qj)("extraEntropy",e))}const S=x.Id(...C),I=y;return{seed:S,k2sig:function(e){const t=b(e);if(!d(t))return;const r=s(t),n=c.BASE.multiply(t).toAffine(),i=a(n.x);if(i===ne)return;const o=a(r*a(I+i*w));if(o===ne)return;let u=(n.x===i?0:2)|Number(n.y&ie),l=o;return f&&h(o)&&(l=function(e){return h(e)?a(-e):e}(o),u^=1),new g(i,l,u)}}}const E={lowS:t.lowS,prehash:!1},S={lowS:t.lowS,prehash:!1};return c.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return c.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(y(e))throw new Error("first arg must be private key");if(!y(t))throw new Error("second arg must be public key");return c.fromHex(t).multiply(u(e)).toRawBytes(r)},sign:function(e,r,n=E){const{seed:i,k2sig:o}=C(e,r,n),a=t;return x.fg(a.hash.outputLen,a.nByteLength,a.hmac)(i,o)},verify:function(e,r,n,i=S){const o=e;r=(0,x.qj)("msgHash",r),n=(0,x.qj)("publicKey",n);const{lowS:u,prehash:l,format:d}=i;if(X(i),"strict"in i)throw new Error("options.strict was renamed to lowS");if(void 0!==d&&"compact"!==d&&"der"!==d)throw new Error("format must be compact or der");const f="string"==typeof o||x.aY(o),h=!f&&!d&&"object"==typeof o&&null!==o&&"bigint"==typeof o.r&&"bigint"==typeof o.s;if(!f&&!h)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let p,m;try{if(h&&(p=new g(o.r,o.s)),f){try{"compact"!==d&&(p=g.fromDER(o))}catch(k){if(!(k instanceof re.Err))throw k}p||"der"===d||(p=g.fromCompact(o))}m=c.fromHex(n)}catch(_){return!1}if(!p)return!1;if(u&&p.hasHighS())return!1;l&&(r=t.hash(r));const{r:y,s:b}=p,w=v(r),A=s(b),C=a(w*A),E=a(y*A),I=c.BASE.multiplyAndAddUnsafe(m,C,E)?.toAffine();return!!I&&a(I.x)===y},ProjectivePoint:c,Signature:g,utils:m}}function ce(e){return{hash:e,hmac:(t,...r)=>E(e,t,function(...e){let t=0;for(let n=0;n(e+t/fe)/t;function pe(e){const t=ue,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),a=BigInt(23),s=BigInt(44),c=BigInt(88),u=e*e*e%t,l=u*u*e%t,d=O(l,r,t)*l%t,f=O(d,r,t)*l%t,h=O(f,fe,t)*u%t,p=O(h,i,t)*h%t,g=O(p,o,t)*p%t,m=O(g,s,t)*g%t,y=O(m,c,t)*m%t,b=O(y,s,t)*g%t,v=O(b,r,t)*l%t,w=O(v,a,t)*p%t,A=O(w,n,t)*u%t,C=O(A,fe,t);if(!ge.eql(ge.sqr(C),e))throw new Error("Cannot find square root");return C}const ge=F(ue,void 0,void 0,{sqrt:pe}),me=function(e,t){const r=t=>se({...e,...ce(t)});return Object.freeze({...r(t),create:r})}({a:BigInt(0),b:BigInt(7),Fp:ge,n:le,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=le,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-de*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),s=he(o*e,t),c=he(-n*e,t);let u=j(e-s*r-c*i,t),l=j(-s*n-c*o,t);const d=u>a,f=l>a;if(d&&(u=t-u),f&&(l=t-l),u>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:u,k2neg:f,k2:l}}}},A);BigInt(0);me.ProjectivePoint},589190:(e,t,r)=>{"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function i(e,...t){if(!((r=e)instanceof Uint8Array||ArrayBuffer.isView(r)&&"Uint8Array"===r.constructor.name))throw new Error("Uint8Array expected");var r;if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function o(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function a(e,t){i(e);const r=t.outputLen;if(e.lengtho,DO:()=>i,Fe:()=>n,Ht:()=>a})},563741:(e,t,r)=>{"use strict";r.d(t,{lY:()=>_});var n=r(589190);const i=BigInt(2**32-1),o=BigInt(32);function a(e,t=!1){return t?{h:Number(e&i),l:Number(e>>o&i)}:{h:0|Number(e>>o&i),l:0|Number(e&i)}}function s(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;ie<>>32-r,u=(e,t,r)=>t<>>32-r,l=(e,t,r)=>t<>>64-r,d=(e,t,r)=>e<>>64-r;var f=r(404976);const h=[],p=[],g=[],m=BigInt(0),y=BigInt(1),b=BigInt(2),v=BigInt(7),w=BigInt(256),A=BigInt(113);for(let T=0,M=y,P=1,j=0;T<24;T++){[P,j]=[j,(2*P+3*j)%5],h.push(2*(5*j+P)),p.push((T+1)*(T+2)/2%64);let e=m;for(let t=0;t<7;t++)M=(M<>v)*A)%w,M&b&&(e^=y<<(y<r>32?l(e,t,r):c(e,t,r),S=(e,t,r)=>r>32?d(e,t,r):u(e,t,r);class I extends f.Vw{constructor(e,t,r,i=!1,o=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.Fe)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,f.DH)(this.state)}keccak(){f.qv||(0,f.Fc)(this.state32),function(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let n=0;n<10;n++)r[n]=e[n]^e[n+10]^e[n+20]^e[n+30]^e[n+40];for(let n=0;n<10;n+=2){const t=(n+8)%10,i=(n+2)%10,o=r[i],a=r[i+1],s=x(o,a,1)^r[t],c=S(o,a,1)^r[t+1];for(let r=0;r<50;r+=10)e[n+r]^=s,e[n+r+1]^=c}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=p[r],o=x(t,i,n),a=S(t,i,n),s=h[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let n=0;n<50;n+=10){for(let t=0;t<10;t++)r[t]=e[n+t];for(let t=0;t<10;t++)e[n+t]^=~r[(t+2)%10]&r[(t+4)%10]}e[0]^=C[n],e[1]^=E[n]}r.fill(0)}(this.state32,this.rounds),f.qv||(0,f.Fc)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.CC)(this);const{blockLen:t,state:r}=this,i=(e=(0,f.ZJ)(e)).length;for(let n=0;n=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.Fe)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.Ht)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new I(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}const k=(e,t,r)=>(0,f.ld)((()=>new I(t,e,r))),_=k(1,136,32)},404976:(e,t,r)=>{"use strict";r.d(t,{DH:()=>i,Fc:()=>l,O8:()=>o,Ow:()=>a,Vw:()=>f,ZJ:()=>d,aZ:()=>s,ld:()=>h,qv:()=>c});var n=r(589190);const i=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),o=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),a=(e,t)=>e<<32-t|e>>>t,s=(e,t)=>e<>>32-t>>>0,c=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])(),u=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function l(e){for(let t=0;te().update(d(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}},466027:(e,t,r)=>{"use strict";r.r(t),r.d(t,{WebSocket:()=>n});const n=function(){if("undefined"!=typeof WebSocket)return WebSocket;if(void 0!==global.WebSocket)return global.WebSocket;if(void 0!==window.WebSocket)return window.WebSocket;if(void 0!==self.WebSocket)return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}()},124454:(e,t,r)=>{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}r.r(t),r.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i{"use strict";r.d(t,{InterVar:()=>a,ProviderRpcError:()=>n,ProviderRpcErrorCode:()=>g,Q9:()=>h,gb:()=>p,kh:()=>b,mt:()=>v,Vq:()=>A,createEIP1193Provider:()=>i,fromHex:()=>s.aD,PW:()=>l,isHex:()=>C.q,toHex:()=>u.nj,tf:()=>y,P2:()=>d,xM:()=>f});class n extends Error{constructor(e){super(e.message),this.message=e.message,this.code=e.code,this.data=e.data}}const i=(e,t)=>{let r;e.request?r=e.request.bind(e):e.sendAsync&&(r=o(e));return e.request=async({method:e,params:i})=>{const o=e;if(t&&null===t[o])throw new n({code:4200,message:`The Provider does not support the requested method: ${e}`});if(t&&t[o])return t[o]({baseRequest:r,params:i});if(r)return r({method:e,params:i});throw new n({code:4200,message:`The Provider does not support the requested method: ${e}`})},e},o=e=>({method:t,params:r})=>new Promise(((n,i)=>{e.sendAsync({id:0,jsonrpc:"2.0",method:t,params:r},((e,{result:t})=>{e?i(JSON.parse(e)):n(null==t?null:t)}))})),a='\n@font-face {\n font-family: \'Inter\';\n font-style: normal;\n font-weight: 300 600;\n font-display: swap;\n src: url("https://rsms.me/inter/font-files/InterVariable.woff2") format("woff2-variations");\n}\n';var s=r(244872),c=r(62595),u=r(796891);const l=e=>l(e),d=e=>{const t=(0,s.uU)(e);return(0,c.c)(t)},f=e=>{if(!e)return e;const t=(0,s.aD)(e,"bigint");return(0,c.c)(t)},h=e=>(0,u.cK)(e),p=async e=>{const t=await r.e(72945).then(r.bind(r,372945)),{id:n,label:i,token:o,publicRpcUrl:a,blockExplorerUrl:c,rpcUrl:u}=e;switch(n){case"0x89":{const{polygon:e}=t;return e}case"0xa":{const{optimism:e}=t;return e}case"0xa4b1":{const{arbitrum:e}=t;return e}case"0x144":{const{zkSync:e}=t;return e}case"0x38":{const{bsc:e}=t;return e}case"0x1":{const{mainnet:e}=t;return e}case"0xaa36a7":{const{sepolia:e}=t;return e}case"0xfa":{const{fantom:e}=t;return e}case"0xa86a":{const{avalanche:e}=t;return e}case"0xa4ec":{const{celo:e}=t;return e}case"0x2105":{const{base:e}=t;return e}case"0x14a33":{const{baseGoerli:e}=t;return e}case"0x64":{const{gnosis:e}=t;return e}case"0x63564C40":{const{harmonyOne:e}=t;return e}case"0x27bc86aa":{const{degen:e}=t;return e}default:{const{extractChain:e,defineChain:l}=await r.e(23207).then(r.bind(r,123207)),d=e({chains:Object.values(t),id:(0,s.aD)(n,"number")});return d||l({id:(0,s.aD)(n,"number"),name:null!=i?i:"",nativeCurrency:{decimals:18,name:null!=o?o:"",symbol:null!=o?o:""},rpcUrls:{default:{http:[null!=u?u:"",null!=a?a:""]}},blockExplorers:{default:{name:"Explorer",url:null!=c?c:""}}})}}};var g;!function(e){e[e.ACCOUNT_ACCESS_REJECTED=4001]="ACCOUNT_ACCESS_REJECTED",e[e.ACCOUNT_ACCESS_ALREADY_REQUESTED=-32002]="ACCOUNT_ACCESS_ALREADY_REQUESTED",e[e.UNAUTHORIZED=4100]="UNAUTHORIZED",e[e.INVALID_PARAMS=-32602]="INVALID_PARAMS",e[e.UNSUPPORTED_METHOD=4200]="UNSUPPORTED_METHOD",e[e.DISCONNECTED=4900]="DISCONNECTED",e[e.CHAIN_DISCONNECTED=4901]="CHAIN_DISCONNECTED",e[e.CHAIN_NOT_ADDED=4902]="CHAIN_NOT_ADDED",e[e.DOES_NOT_EXIST=-32601]="DOES_NOT_EXIST",e[e.UNRECOGNIZED_CHAIN_ID=-32603]="UNRECOGNIZED_CHAIN_ID"}(g||(g={}));var m=r(16075);function y(e,t){const r=e.validate(t);return r.error?r:null}const b=m.alternatives().try(m.string().pattern(/^0x[0-9a-fA-F]+$/),m.number().positive()),v=m.string().valid("evm"),w=m.object({address:m.string().required(),icon:m.string().optional()}),A=m.object({namespace:v,id:b.required(),rpcUrl:m.string(),label:m.string(),token:m.string(),secondaryTokens:m.array().max(5).items(w).optional(),icon:m.string(),color:m.string(),publicRpcUrl:m.string(),protectedRpcUrl:m.string(),blockExplorerUrl:m.string()});var C=r(809629)},906517:(e,t,r)=>{"use strict";r.d(t,{eL:()=>n,sz:()=>i});const n={gwei:9,wei:18},i={ether:-9,wei:9}},962446:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});class n extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"viem@2.12.0"});const r=t.cause instanceof n?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof n&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://viem.sh${i}${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return i(this,e)}}function i(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e?i(e.cause,t):t?null:e}},861177:(e,t,r)=>{"use strict";r.d(t,{Fl:()=>o,ii:()=>i});var n=r(962446);class i extends n.C{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class o extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}n.C},350316:(e,t,r)=>{"use strict";r.d(t,{H2:()=>o,Ty:()=>i,u:()=>a});var n=r(962446);class i extends n.C{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}n.C;class o extends n.C{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}n.C;class a extends n.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},809629:(e,t,r)=>{"use strict";function n(e,{strict:t=!0}={}){return!!e&&("string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}r.d(t,{q:()=>n})},299069:(e,t,r)=>{"use strict";r.d(t,{eV:()=>i});var n=r(861177);function i(e,{dir:t,size:r=32}={}){return"string"==typeof e?function(e,{dir:t,size:r=32}={}){if(null===r)return e;const i=e.replace("0x","");if(i.length>2*r)throw new n.Fl({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.Fl({size:e.length,targetSize:r,type:"bytes"});const i=new Uint8Array(r);for(let n=0;n{"use strict";r.d(t,{E:()=>i});var n=r(809629);function i(e){return(0,n.q)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},405074:(e,t,r)=>{"use strict";function n(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let i=0;in})},244872:(e,t,r)=>{"use strict";r.d(t,{ME:()=>l,Sl:()=>s,aD:()=>c,uU:()=>u});var n=r(350316),i=r(346699),o=r(405074),a=r(315633);function s(e,{size:t}){if((0,i.E)(e)>t)throw new n.u({givenSize:(0,i.E)(e),maxSize:t})}function c(e,t){const r="string"==typeof t?{to:t}:t,i=r.to;return"number"===i?l(e,r):"bigint"===i?u(e,r):"string"===i?function(e,t={}){let r=(0,a.aT)(e);t.size&&(s(r,{size:t.size}),r=(0,o.B)(r,{dir:"right"}));return(new TextDecoder).decode(r)}(e,r):"boolean"===i?function(e,t={}){let r=e;t.size&&(s(r,{size:t.size}),r=(0,o.B)(r));if("0x00"===(0,o.B)(r))return!1;if("0x01"===(0,o.B)(r))return!0;throw new n.H2(r)}(e,r):(0,a.aT)(e,r)}function u(e,t={}){const{signed:r}=t;t.size&&s(e,{size:t.size});const n=BigInt(e);if(!r)return n;const i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function l(e,t={}){return Number(u(e,t))}},315633:(e,t,r)=>{"use strict";r.d(t,{Af:()=>h,ZJ:()=>u,aT:()=>f});var n=r(962446),i=r(809629),o=r(299069),a=r(244872),s=r(796891);const c=new TextEncoder;function u(e,t={}){return"number"==typeof e||"bigint"==typeof e?function(e,t){const r=(0,s.cK)(e,t);return f(r)}(e,t):"boolean"==typeof e?function(e,t={}){const r=new Uint8Array(1);if(r[0]=Number(e),"number"==typeof t.size)return(0,a.Sl)(r,{size:t.size}),(0,o.eV)(r,{size:t.size});return r}(e,t):(0,i.q)(e)?f(e,t):h(e,t)}const l={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=l.zero&&e<=l.nine?e-l.zero:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function f(e,t={}){let r=e;t.size&&((0,a.Sl)(r,{size:t.size}),r=(0,o.eV)(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);const s=i.length/2,c=new Uint8Array(s);for(let o=0,a=0;o{"use strict";r.d(t,{My:()=>c,cK:()=>u,nj:()=>s});var n=r(350316),i=r(299069),o=r(244872);const a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e,t={}){return"number"==typeof e||"bigint"==typeof e?u(e,t):"string"==typeof e?function(e,t={}){const r=l.encode(e);return c(r,t)}(e,t):"boolean"==typeof e?function(e,t={}){const r=`0x${Number(e)}`;if("number"==typeof t.size)return(0,o.Sl)(r,{size:t.size}),(0,i.eV)(r,{size:t.size});return r}(e,t):c(e,t)}function c(e,t={}){let r="";for(let i=0;is||a{"use strict";r.d(t,{c:()=>o});var n=r(906517),i=r(947776);function o(e,t="wei"){return(0,i.J)(e,n.eL[t])}},947776:(e,t,r)=>{"use strict";function n(e,t){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[i,o]=[r.slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${o?`.${o}`:""}`}r.d(t,{J:()=>n})},308121:(e,t,r)=>{"use strict";r.d(t,{$:()=>Ar,A:()=>gr,B:()=>Ct,C:()=>mi,D:()=>re,E:()=>te,F:()=>kr,G:()=>St,H:()=>Dt,I:()=>_r,J:()=>_t,K:()=>Tr,L:()=>Ye,M:()=>ri,N:()=>Br,O:()=>Fn,P:()=>Zn,Q:()=>ne,R:()=>zi,S:()=>jr,T:()=>Pt,U:()=>tr,V:()=>yr,W:()=>ao,X:()=>Ci,Y:()=>_i,Z:()=>Ze,_:()=>wr,a:()=>mt,a0:()=>ee,a1:()=>et,a2:()=>Ot,a3:()=>Ge,a4:()=>de,a5:()=>xe,a6:()=>le,a7:()=>K,a8:()=>Er,a9:()=>vr,aA:()=>xr,aB:()=>hs,aa:()=>Ai,ab:()=>Ei,ac:()=>Ir,ad:()=>rr,ae:()=>Y,af:()=>be,ag:()=>di,ah:()=>Ee,ai:()=>Wt,aj:()=>Yn,ak:()=>br,al:()=>Qt,am:()=>zn,an:()=>wi,ao:()=>he,ap:()=>ce,aq:()=>oe,ar:()=>ie,as:()=>ue,at:()=>Lr,au:()=>Gn,av:()=>Fr,aw:()=>Kn,ax:()=>Ht,ay:()=>Vt,az:()=>zt,b:()=>wt,c:()=>tt,d:()=>At,e:()=>It,f:()=>pi,g:()=>Yt,h:()=>fe,i:()=>Pr,j:()=>Et,k:()=>Tt,l:()=>st,m:()=>gt,n:()=>qe,o:()=>jt,p:()=>kt,q:()=>Cr,r:()=>ae,s:()=>$e,t:()=>xt,u:()=>Sr,v:()=>Mt,w:()=>Rr,x:()=>pr,y:()=>fr,z:()=>hr});var n=r(949426),i=r(95768),o=r(652994),a=r(215964);function s(e){return new o.c((function(t){(0,a.Tg)(e()).subscribe(t)}))}var c=r(709336),u=r(167791),l=(0,r(282947).L)((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})),d=r(69419);function f(e,t){var r="object"==typeof t;return new Promise((function(n,i){var o=new d.Ms({next:function(e){n(e),o.unsubscribe()},error:i,complete:function(){r?n(t.defaultValue):i(new l)}});e.subscribe(o)}))}var h=r(761209),p=r(757516);function g(e,t,r){return r?g(e,t).pipe((0,p.I)(r)):new o.c((function(r){var n=function(){for(var e=[],t=0;tnull!=e;function ee(e){return e.includes("11?`${e.slice(0,4)}\u2026${e.slice(-6)}`:e}async function ne(e){try{return await navigator.clipboard.writeText(e)}catch(t){console.error("Failed to copy: ",t)}}const ie=e=>"number"==typeof e?`0x${e.toString(16)}`:e;function oe(e){return`0x${(1e9*e).toString(16)}`}const ae={"0x1":"Ethereum","0xaa36a7":"Sepolia","0x38":"Binance","0x89":"Polygon","0xfa":"Fantom","0xa":"OP Mainnet","0x45":"OP Kovan","0xa86a":"Avalanche","0xa4ec":"Celo","0x2105":"Base","0x14a33":"Base Goerli","0x64":"Gnosis","0x63564C40":"Harmony One","0xa4b1":"Arbitrum One","0xa4ba":"Arbitrum Nova","0x27bc86aa":"Degen","0x890":"SNAX"};function se(e){switch(e){case"0x1":case"0x89":case"0xa":case"0xa4b1":case"0x144":return"0x1";case"0x5":case"0xaa36a7":return e;default:return null}}const ce={main:"0x1",sepolia:"0xaa36a7",xdai:"0x64","bsc-main":"0x38","matic-main":"0x89","fantom-main":"0xfa","matic-mumbai":"0x80001",degen:"0x27bc86aa",SNAX:"0x890"},ue={"0x1":{icon:G,color:"#627EEA"},"0xaa36a7":{icon:G,color:"#627EEA"},"0x38":{icon:'\n \n \n \n',color:"#F3BA2F"},"0x89":{icon:q,color:"#8247E5"},"0xfa":{icon:'\n \n \n \n',color:"#1969FF"},"0xa":{icon:Q,color:"#FF0420"},"0x45":{icon:Q,color:"#FF0420"},"0xa86a":{icon:'\n \n \n \n',color:"#E84142"},"0xa4ec":{icon:'\n\n\x3c!-- Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n\n\n\n\n',color:"#FBCC5C"},"0x64":{icon:'\n \n \n \n \n \n \n \n',color:"#04795B"},"0x63564C40":{icon:'\n \n \n \n \n \n \n \n \n \n',color:"#ffffff"},"0xa4b1":{icon:W,color:"#33394B"},"0xa4ba":{icon:W,color:"#33394B"},"0x2105":{icon:J,color:"#0259F9"},"0x14a33":{icon:J,color:"#0259F9"},"0x80001":{icon:q,color:"#8247E5"},"0x27bc86aa":{icon:'\n\n\n \n \n \n \n \n \n \n\n',color:"#a36dfe"},"0x890":{icon:'\n\n\n\n\n',color:"#00D1FF"}},le={icon:Y,color:"#33394B"};function de(e){return e?ue[e.toLowerCase()]:void 0}function fe(e,t){return!!t.find((({id:t,namespace:r})=>t===e.id&&r===e.namespace))}const he={pending:{backgroundColor:"var(--onboard-primary-700, var(--primary-700))",borderColor:"#6370E5",eventIcon:'\n\n \n\n'},success:{backgroundColor:"#052E17",borderColor:"var(--onboard-success-300, var(--success-300))",eventIcon:'\n\n \n\n'},error:{backgroundColor:"#FDB1B11A",borderColor:"var(--onboard-danger-300, var(--danger-300))",eventIcon:'\n\n\n'},hint:{backgroundColor:"var(--onboard-gray-500, var(--gray-500))",borderColor:"var(--onboard-gray-500, var(--gray-500))",iconColor:"var(--onboard-gray-100, var(--gray-100))",eventIcon:Z}},pe=e=>new Promise((t=>setTimeout(t,e)));function ge(e){try{return localStorage.getItem(e)}catch(t){return null}}function me(e,t){try{localStorage.setItem(e,t)}catch(r){return}}function ye(e){try{localStorage.removeItem(e)}catch(t){return}}let be={svelteInstance:null,device:function(){if("undefined"!=typeof window){const e=D.getParser(window.navigator.userAgent),t=e.getOS(),r=e.getBrowser(),{type:n}=e.getPlatform();return{type:n,os:t,browser:r}}return{type:null,os:null,browser:null}}(),initialWalletInit:[],gas:void 0,containerElements:{accountCenter:void 0,connectModal:void 0},unstoppableResolution:void 0,wagmi:void 0};function ve(e){be=Object.assign(Object.assign({},be),e)}const we={wallets:[],walletModules:[],chains:[],accountCenter:{enabled:!0,position:"bottomRight",expanded:!1,minimal:!0},notify:{enabled:!0,position:"topRight",replacement:{gasPriceProbability:{speedup:80,cancel:95}}},notifications:[],locale:"",connect:{showSidebar:!0,disableClose:!1},appMetadata:null,wagmiConfig:null},Ae={TERMS_AGREEMENT:"onboard.js:agreement",LAST_CONNECTED_WALLET:"onboard.js:last_connected_wallet"},Ce=768,Ee="https://rpc.blocknative.com/boost",xe="https://docs.blocknative.com/blocknative-mev-protection/transaction-boost",Se="add_chains",Ie="update_chains",ke="reset_store",_e="add_wallet",Te="update_wallet",Me="remove_wallet",Pe="update_account",je="update_account_center",De="update_connect_modal",Oe="set_wallet_modules",Be="set_locale",Ne="update_notify",Re="add_notification",Le="remove_notification",Fe="update_balance",Ue="update_app_metadata",ze="update_wagmi_config";const He=new n.t(we),Ve=new i.B;function Ke(e){const t=He.getValue();Ve.next(function(e,t){const{type:r,payload:n}=t;switch(r){case Se:return Object.assign(Object.assign({},e),{chains:[...e.chains,...n]});case Ie:{const t=n,r=e.chains,i=r.findIndex((e=>e.id===t.id));return r[i]=t,Object.assign(Object.assign({},e),{chains:r})}case _e:{const t=n,r=e.wallets.find((({label:e})=>e===t.label));return Object.assign(Object.assign({},e),{wallets:[r||n,...e.wallets.filter((({label:e})=>e!==t.label))]})}case Te:{const t=n,{id:r}=t,i=H(t,["id"]),o=e.wallets.map((e=>e.label===r?Object.assign(Object.assign({},e),i):e));return Object.assign(Object.assign({},e),{wallets:o})}case Me:{const t=n;return Object.assign(Object.assign({},e),{wallets:e.wallets.filter((({label:e})=>e!==t.id))})}case Pe:{const t=n,{id:r,address:i}=t,o=H(t,["id","address"]),a=e.wallets.map((e=>(e.label===r&&(e.accounts=e.accounts.map((e=>e.address===i?Object.assign(Object.assign({},e),o):e))),e)));return Object.assign(Object.assign({},e),{wallets:a})}case Fe:{const t=n;return Object.assign(Object.assign({},e),{wallets:t})}case De:{const t=n;return Object.assign(Object.assign({},e),{connect:Object.assign(Object.assign({},e.connect),t)})}case je:{const t=n;return Object.assign(Object.assign({},e),{accountCenter:Object.assign(Object.assign({},e.accountCenter),t)})}case Ne:{const t=n;return Object.assign(Object.assign({},e),{notify:Object.assign(Object.assign({},e.notify),t)})}case Re:{const t=n,r=[...e.notifications],i=r.findIndex((({id:e})=>e===t.id));return-1!==i?r[i]=t:r.unshift(t),Object.assign(Object.assign({},e),{notifications:r})}case Le:{const t=n;return Object.assign(Object.assign({},e),{notifications:e.notifications.filter((e=>e.id!==t))})}case Oe:return Object.assign(Object.assign({},e),{walletModules:n});case Be:return O.Hg.set(n),Object.assign(Object.assign({},e),{locale:n});case Ue:{const t=n;return Object.assign(Object.assign({},e),{appMetadata:Object.assign(Object.assign(Object.assign({},e.appMetadata),t),{name:t.name||""})})}case ze:{const t=n;return Object.assign(Object.assign({},e),{wagmiConfig:t})}case ke:return we;default:throw new Error(`Unknown type: ${r} in appStore reducer`)}}(t,e))}Ve.subscribe(He);const Ge={select:function(e){if(!e)return Ve.asObservable();if(!Object.keys(He.getValue()).includes(String(e)))throw new Error(`key: ${e} does not exist on this store`);return Ve.asObservable().pipe((t=e,(0,b.F)((function(e,n){return r?r(e[t],n[t]):e[t]===n[t]}))),E(e),(0,v.p)(X));var t,r},get:function(){return He.getValue()}};function qe(){}const Qe=e=>e;function We(e){return e()}function Je(){return Object.create(null)}function Ye(e){e.forEach(We)}function Ze(e){return"function"==typeof e}function $e(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let Xe;function et(e,t){return Xe||(Xe=document.createElement("a")),Xe.href=t,e===Xe.href}function tt(e,t,r){e.$$.on_destroy.push(function(e,...t){if(null==e)return qe;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}(t,r))}function rt(e,t,r,n){if(e){const i=nt(e,t,r,n);return e[0](i)}}function nt(e,t,r,n){return e[1]&&n?function(e,t){for(const r in t)e[r]=t[r];return e}(r.ctx.slice(),e[1](n(t))):r.ctx}function it(e,t,r,n){if(e[2]&&n){const i=e[2](n(r));if(void 0===t.dirty)return i;if("object"==typeof i){const e=[],r=Math.max(t.dirty.length,i.length);for(let n=0;n32){const t=[],r=e.ctx.length/32;for(let e=0;ewindow.performance.now():()=>Date.now(),dt=ut?e=>requestAnimationFrame(e):qe;const ft=new Set;function ht(e){ft.forEach((t=>{t.c(e)||(ft.delete(t),t.f())})),0!==ft.size&&dt(ht)}function pt(e){let t;return 0===ft.size&&dt(ht),{promise:new Promise((r=>{ft.add(t={c:e,f:r})})),abort(){ft.delete(t)}}}function gt(e,t){e.appendChild(t)}function mt(e,t,r){const n=yt(e);if(!n.getElementById(t)){const e=Et("style");e.id=t,e.textContent=r,vt(n,e)}}function yt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function bt(e){const t=Et("style");return vt(yt(e),t),t.sheet}function vt(e,t){return gt(e.head||e,t),t.sheet}function wt(e,t,r){e.insertBefore(t,r||null)}function At(e){e.parentNode&&e.parentNode.removeChild(e)}function Ct(e,t){for(let r=0;re.removeEventListener(t,r,n)}function _t(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function Tt(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Mt(e,t){t=""+t,e.data!==t&&(e.data=t)}function Pt(e,t,r,n){null==r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function jt(e,t,r){for(let n=0;n>>0}(l)}_${s}`,f=yt(e),{stylesheet:h,rules:p}=Nt.get(f)||function(e,t){const r={stylesheet:bt(t),rules:{}};return Nt.set(e,r),r}(f,e);p[d]||(p[d]=!0,h.insertRule(`@keyframes ${d} ${l}`,h.cssRules.length));const g=e.style.animation||"";return e.style.animation=`${g?`${g}, `:""}${d} ${n}ms linear ${i}ms 1 both`,Lt+=1,d}function Ut(e,t){const r=(e.style.animation||"").split(", "),n=r.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),i=r.length-n.length;i&&(e.style.animation=n.join(", "),Lt-=i,Lt||dt((()=>{Lt||(Nt.forEach((e=>{const{ownerNode:t}=e.stylesheet;t&&At(t)})),Nt.clear())})))}function zt(e,t,r,n){if(!t)return qe;const i=e.getBoundingClientRect();if(t.left===i.left&&t.right===i.right&&t.top===i.top&&t.bottom===i.bottom)return qe;const{delay:o=0,duration:a=300,easing:s=Qe,start:c=lt()+o,end:u=c+a,tick:l=qe,css:d}=r(e,{from:t,to:i},n);let f,h=!0,p=!1;function g(){d&&Ut(e,f),h=!1}return pt((e=>{if(!p&&e>=c&&(p=!0),p&&e>=u&&(l(1,0),g()),!h)return!1;if(p){const t=0+1*s((e-c)/a);l(t,1-t)}return!0})),d&&(f=Ft(e,0,1,a,o,s,d)),o||(p=!0),l(0,1),g}function Ht(e){const t=getComputedStyle(e);if("absolute"!==t.position&&"fixed"!==t.position){const{width:r,height:n}=t,i=e.getBoundingClientRect();e.style.position="absolute",e.style.width=r,e.style.height=n,Vt(e,i)}}function Vt(e,t){const r=e.getBoundingClientRect();if(t.left!==r.left||t.top!==r.top){const n=getComputedStyle(e),i="none"===n.transform?"":n.transform;e.style.transform=`${i} translate(${t.left-r.left}px, ${t.top-r.top}px)`}}function Kt(e){Rt=e}function Gt(){if(!Rt)throw new Error("Function called outside component initialization");return Rt}function qt(e){Gt().$$.on_mount.push(e)}function Qt(e){Gt().$$.on_destroy.push(e)}function Wt(e,t){const r=e.$$.callbacks[t.type];r&&r.slice().forEach((e=>e.call(this,t)))}const Jt=[],Yt=[];let Zt=[];const $t=[],Xt=Promise.resolve();let er=!1;function tr(e){Zt.push(e)}function rr(e){$t.push(e)}const nr=new Set;let ir,or=0;function ar(){if(0!==or)return;const e=Rt;do{try{for(;or{ir=null}))),ir}function ur(e,t,r){e.dispatchEvent(function(e,t,{bubbles:r=!1,cancelable:n=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,r,n,t),i}(`${t?"intro":"outro"}${r}`))}const lr=new Set;let dr;function fr(){dr={r:0,c:[],p:dr}}function hr(){dr.r||Ye(dr.c),dr=dr.p}function pr(e,t){e&&e.i&&(lr.delete(e),e.i(t))}function gr(e,t,r,n){if(e&&e.o){if(lr.has(e))return;lr.add(e),dr.c.push((()=>{lr.delete(e),n&&(r&&e.d(1),n())})),e.o(t)}else n&&n()}const mr={duration:0};function yr(e,t,r){const n={direction:"in"};let i,o,a=t(e,r,n),s=!1,c=0;function u(){i&&Ut(e,i)}function l(){const{delay:t=0,duration:r=300,easing:n=Qe,tick:l=qe,css:d}=a||mr;d&&(i=Ft(e,0,1,r,t,n,d,c++)),l(0,1);const f=lt()+t,h=f+r;o&&o.abort(),s=!0,tr((()=>ur(e,!0,"start"))),o=pt((t=>{if(s){if(t>=h)return l(1,0),ur(e,!0,"end"),u(),s=!1;if(t>=f){const e=n((t-f)/r);l(e,1-e)}}return s}))}let d=!1;return{start(){d||(d=!0,Ut(e),Ze(a)?(a=a(n),cr().then(l)):l())},invalidate(){d=!1},end(){s&&(u(),s=!1)}}}function br(e,t,r){const n={direction:"out"};let i,o=t(e,r,n),a=!0;const s=dr;function c(){const{delay:t=0,duration:r=300,easing:n=Qe,tick:c=qe,css:u}=o||mr;u&&(i=Ft(e,1,0,r,t,n,u));const l=lt()+t,d=l+r;tr((()=>ur(e,!1,"start"))),pt((t=>{if(a){if(t>=d)return c(0,1),ur(e,!1,"end"),--s.r||Ye(s.c),!1;if(t>=l){const e=n((t-l)/r);c(1-e,e)}}return a}))}return s.r+=1,Ze(o)?cr().then((()=>{o=o(n),c()})):c(),{end(t){t&&o.tick&&o.tick(1,0),a&&(i&&Ut(e,i),a=!1)}}}function vr(e,t,r,n){const i={direction:"both"};let o=t(e,r,i),a=n?0:1,s=null,c=null,u=null;function l(){u&&Ut(e,u)}function d(e,t){const r=e.b-a;return t*=Math.abs(r),{a:a,b:e.b,d:r,duration:t,start:e.start,end:e.start+t,group:e.group}}function f(t){const{delay:r=0,duration:n=300,easing:i=Qe,tick:f=qe,css:h}=o||mr,p={start:lt()+r,b:t};t||(p.group=dr,dr.r+=1),s||c?c=p:(h&&(l(),u=Ft(e,a,t,n,r,i,h)),t&&f(0,1),s=d(p,n),tr((()=>ur(e,t,"start"))),pt((t=>{if(c&&t>c.start&&(s=d(c,n),c=null,ur(e,s.b,"start"),h&&(l(),u=Ft(e,a,s.b,s.duration,0,i,o.css))),s)if(t>=s.end)f(a=s.b,1-a),ur(e,s.b,"end"),c||(s.b?l():--s.group.r||Ye(s.group.c)),s=null;else if(t>=s.start){const e=t-s.start;a=s.a+s.d*i(e/s.duration),f(a,1-a)}return!(!s&&!c)})))}return{run(e){Ze(o)?cr().then((()=>{o=o(i),f(e)})):f(e)},end(){l(),s=c=null}}}function wr(e,t){const r=t.token={};function n(e,n,i,o){if(t.token!==r)return;t.resolved=o;let a=t.ctx;void 0!==i&&(a=a.slice(),a[i]=o);const s=e&&(t.current=e)(a);let c=!1;t.block&&(t.blocks?t.blocks.forEach(((e,r)=>{r!==n&&e&&(fr(),gr(e,1,1,(()=>{t.blocks[r]===e&&(t.blocks[r]=null)})),hr())})):t.block.d(1),s.c(),pr(s,1),s.m(t.mount(),t.anchor),c=!0),t.block=s,t.blocks&&(t.blocks[n]=s),c&&ar()}if(!(i=e)||"object"!=typeof i&&"function"!=typeof i||"function"!=typeof i.then){if(t.current!==t.then)return n(t.then,1,t.value,e),!0;t.resolved=e}else{const r=Gt();if(e.then((e=>{Kt(r),n(t.then,1,t.value,e),Kt(null)}),(e=>{if(Kt(r),n(t.catch,2,t.error,e),Kt(null),!t.hasCatch)throw e})),t.current!==t.pending)return n(t.pending,0),!0}var i}function Ar(e,t,r){const n=t.slice(),{resolved:i}=e;e.current===e.then&&(n[e.value]=i),e.current===e.catch&&(n[e.error]=i),e.block.p(n,r)}function Cr(e,t){e.d(1),t.delete(e.key)}function Er(e,t){gr(e,1,1,(()=>{t.delete(e.key)}))}function xr(e,t){e.f(),Er(e,t)}function Sr(e,t,r,n,i,o,a,s,c,u,l,d){let f=e.length,h=o.length,p=f;const g={};for(;p--;)g[e[p].key]=p;const m=[],y=new Map,b=new Map,v=[];for(p=h;p--;){const e=d(i,o,p),s=r(e);let c=a.get(s);c?n&&v.push((()=>c.p(e,t))):(c=u(s,e),c.c()),y.set(s,m[p]=c),s in g&&b.set(s,Math.abs(p-g[s]))}const w=new Set,A=new Set;function C(e){pr(e,1),e.m(s,l),a.set(e.key,e),l=e.first,h--}for(;f&&h;){const t=m[h-1],r=e[f-1],n=t.key,i=r.key;t===r?(l=t.first,f--,h--):y.has(i)?!a.has(n)||w.has(n)?C(t):A.has(i)?f--:b.get(n)>b.get(i)?(A.add(n),C(t)):(w.add(i),f--):(c(r,a),f--)}for(;f--;){const t=e[f];y.has(t.key)||c(t,a)}for(;h;)C(m[h-1]);return Ye(v),m}function Ir(e,t,r){const n=e.$$.props[t];void 0!==n&&(e.$$.bound[n]=r,r(e.$$.ctx[n]))}function kr(e){e&&e.c()}function _r(e,t,r,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,r),n||tr((()=>{const t=e.$$.on_mount.map(We).filter(Ze);e.$$.on_destroy?e.$$.on_destroy.push(...t):Ye(t),e.$$.on_mount=[]})),o.forEach(tr)}function Tr(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];Zt.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),Zt=t}(r.after_update),Ye(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Mr(e,t){-1===e.$$.dirty[0]&&(Jt.push(e),er||(er=!0,Xt.then(ar)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const o=n.length?n[0]:r;return u.ctx&&i(u.ctx[t],u.ctx[t]=o)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](o),l&&Mr(e,t)),r})):[],u.update(),l=!0,Ye(u.before_update),u.fragment=!!n&&n(u.ctx),t.target){if(t.hydrate){const e=(d=t.target,Array.from(d.childNodes));u.fragment&&u.fragment.l(e),e.forEach(At)}else u.fragment&&u.fragment.c();t.intro&&pr(e.$$.fragment),_r(e,t.target,t.anchor,t.customElement),ar()}var d;Kt(c)}class jr{$destroy(){Tr(this,1),this.$destroy=qe}$on(e,t){if(!Ze(t))return qe;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Dr=new i.B,Or=new i.B,Br=new n.t({inProgress:!1,actionRequired:""}),Nr=new n.t(null),Rr=Ge.select("wallets").pipe((0,y.t)(1));Dr.pipe(M(Rr),E("1")).subscribe((e=>{e.forEach((({label:e})=>{Or.next(e)})),Ke({type:ke})}));const Lr=new n.t([]);function Fr(e){const t=Lr.getValue();Lr.next(t.filter((t=>t.hash!==e)))}s((()=>{const e=new i.B;return qt((()=>{e.next()})),e.asObservable().pipe((0,C.s)(1))}));const Ur=s((()=>{const e=new i.B;return Qt((()=>{e.next()})),e.asObservable().pipe((0,C.s)(1))}));s((()=>{const e=new i.B;var t;return t=()=>{e.next()},Gt().$$.after_update.push(t),e.asObservable().pipe((0,u.Q)(Ur))})),s((()=>{const e=new i.B;var t;return t=()=>{e.next()},Gt().$$.before_update.push(t),e.asObservable().pipe((0,u.Q)(Ur))}));const zr={default:{"--w3o-background-color":"unset","--w3o-foreground-color":"unset","--w3o-text-color":"unset","--w3o-border-color":"unset","--w3o-action-color":"unset","--w3o-border-radius":"unset","--w3o-font-family":"inherit"},light:{"--w3o-background-color":"#ffffff","--w3o-foreground-color":"#EFF1FC","--w3o-text-color":"#1a1d26","--w3o-border-color":"#d0d4f7","--w3o-action-color":"#6370E5","--w3o-border-radius":"16px","--w3o-font-family":"inherit"},dark:{"--w3o-background-color":"#1A1D26","--w3o-foreground-color":"#242835","--w3o-text-color":"#EFF1FC","--w3o-border-color":"#33394B","--w3o-action-color":"#929bed","--w3o-border-radius":"16px","--w3o-font-family":"inherit"}},Hr=e=>"string"==typeof e&&"system"===e?Gr():Vr(e),Vr=e=>"string"==typeof e&&e in zr?zr[e]:"object"==typeof e?e:void 0,Kr=e=>{Object.keys(e).forEach((t=>{document.documentElement.style.setProperty(t,e[t]||null)}))},Gr=()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");e.matches?Kr(zr.dark):Kr(zr.light),(0,c.R)(e,"change").pipe((0,u.Q)(Dr)).subscribe((e=>{e.matches?Kr(zr.dark):Kr(zr.light)}))},qr=B.object().unknown(),Qr=B.object({namespace:N.mt.required(),id:N.kh.required()}),Wr=B.any().allow(B.object({name:B.string().required(),avatar:B.string(),contentHash:B.any().allow(B.string(),null),getText:B.function().arity(1).required()}),null),Jr=B.any().allow(B.object({name:B.string().required()}),null),Yr=B.any().allow(B.object({eth:B.number()}).unknown(),null),Zr=B.any().allow(B.object({balance:B.string().required(),icon:B.string()}),null),$r=B.object({address:B.string().required(),ens:Wr,uns:Jr,balance:Yr,secondaryTokens:Zr}),Xr=B.array().items(N.Vq).unique(((e,t)=>e.id===t.id)).error((e=>"array.unique"===e[0].code?new Error(`There is a duplicate Chain ID in your Onboard Chains array: ${e}`):new Error(`${e}`))),en=B.array().items($r),tn=B.object({label:B.string(),icon:B.string(),provider:qr,instance:qr,accounts:en,chains:B.array().items(Qr),wagmiConnector:qr}).required().error(new Error("wallet must be defined")),rn=B.array().items(tn),nn=B.object({name:B.string().required(),url:B.string().uri().required()}),on=B.object({version:B.string().required(),termsUrl:B.string().uri(),privacyUrl:B.string().uri()}),an=B.object({name:B.string().required(),description:B.string().required(),icon:B.string(),logo:B.string(),gettingStartedGuide:B.string(),email:B.string(),appUrl:B.string(),explore:B.string(),recommendedInjectedWallets:B.array().items(nn),agreement:on}),sn=B.object({name:B.string(),description:B.string(),icon:B.string(),logo:B.string(),gettingStartedGuide:B.string(),email:B.string(),appUrl:B.string(),explore:B.string(),recommendedInjectedWallets:B.array().items(nn),agreement:on});B.object({label:B.string().required(),getInfo:B.function().arity(1).required(),getInterface:B.function().arity(1).required()});const cn=B.array().items(B.function()).required(),un=B.string(),ln=B.string().valid("topRight","bottomRight","bottomLeft","topLeft"),dn=[70,80,90,95,99],fn=B.object({transactionHandler:B.function().optional(),enabled:B.boolean(),position:ln,replacement:B.object({gasPriceProbability:B.object({speedup:B.number().valid(...dn),cancel:B.number().valid(...dn)})})}),hn=B.object({desktop:fn,mobile:fn}),pn=B.object({enabled:B.boolean(),position:ln,minimal:B.boolean(),containerElement:B.string(),hideTransactionProtectionBtn:B.boolean(),transactionProtectionInfoLink:B.string()}),gn=B.object({enabled:B.boolean(),position:ln,expanded:B.boolean(),minimal:B.boolean(),hideTransactionProtectionBtn:B.boolean(),transactionProtectionInfoLink:B.string(),containerElement:B.string()}),mn=B.object({showSidebar:B.boolean(),disableClose:B.boolean(),autoConnectLastWallet:B.boolean(),autoConnectAllPreviousWallet:B.boolean(),iDontHaveAWalletLink:B.string(),wheresMyWalletLink:B.string(),removeWhereIsMyWalletWarning:B.boolean(),removeIDontHaveAWalletInfoLink:B.boolean(),disableUDResolution:B.boolean()}),yn=B.object({accountCenter:B.string(),connectModal:B.string()}),bn=B.object({"--w3o-background-color":B.string(),"--w3o-font-family":B.string(),"--w3o-foreground-color":B.string(),"--w3o-text-color":B.string(),"--w3o-border-color":B.string(),"--w3o-action-color":B.string(),"--w3o-border-radius":B.string()}),vn=B.string().valid("default","dark","light","system"),wn=B.alternatives().try(bn,vn),An=B.object({wallets:cn,chains:Xr.required(),appMetadata:an,i18n:B.object().unknown(),apiKey:B.string(),accountCenter:B.object({desktop:pn,mobile:pn,hideTransactionProtectionBtn:B.boolean(),transactionProtectionInfoLink:B.string()}),notify:[hn,fn],gas:B.object({get:B.function().required(),stream:B.function().required()}),wagmi:B.function(),connect:mn,containerElements:yn,transactionPreview:B.any(),theme:wn,disableFontDownload:B.boolean(),unstoppableResolution:B.function()}),Cn=B.object({autoSelect:B.alternatives().try(B.object({label:B.string().required(),disableModals:B.boolean()}),B.string())}),En=B.object({label:B.string().required()}).required(),xn=B.object({address:B.string().required(),icon:B.string().optional()}),Sn=B.object({chainId:N.kh.required(),chainNamespace:N.mt,wallet:B.string(),rpcUrl:B.string(),label:B.string(),token:B.string(),protectedRpcUrl:B.string(),secondaryTokens:B.array().max(5).items(xn).optional()}),In=B.object({key:B.string().required(),type:B.string().allow("pending","error","success","hint"),eventCode:B.string(),message:B.string().required(),id:B.string().required(),autoDismiss:B.number(),onClick:B.function(),link:B.string()});B.object({sendTransaction:B.function(),estimateGas:B.function(),gasPrice:B.function(),balance:B.alternatives(B.string(),B.number()),txDetails:B.object({value:B.alternatives(B.string(),B.number()),to:B.string(),from:B.string()}),txApproveReminderTimeout:B.number()});const kn=B.object({key:B.string(),type:B.string().allow("pending","error","success","hint"),eventCode:B.string(),message:B.string(),id:B.string(),autoDismiss:B.number(),onClick:B.function(),link:B.string()});function _n(e){return(0,N.tf)(tn,e)}function Tn(e,t){return(0,N.tf)(B.string().required().label(t||"value"),e)}function Mn(e){return(0,N.tf)(Sn,e)}function Pn(e){return(0,N.tf)(un,e)}function jn(e){return(0,N.tf)(fn,e)}function Dn(e){return(0,N.tf)(kn,e)}function On(e){return(0,N.tf)(rn,e)}function Bn(e){return(0,N.tf)(wn,e)}function Nn(e){const{label:t,token:r,rpcUrl:n,id:i,namespace:o}=e,a=Mn({label:t,token:r,rpcUrl:n,chainId:i,chainNamespace:o});if(a)throw a;Ke({type:Ie,payload:e})}function Rn(e){const t=_n(e);if(t)throw console.error(t),t;Ke({type:_e,payload:e})}function Ln(e,t){const r=_n(t);if(r)throw console.error(r),r;Ke({type:Te,payload:Object.assign({id:e},t)})}function Fn(e,t){const r=_n(e)||t&&Tn(t,"address");if(r)throw r;if(t){const r=e.accounts.find((e=>e.address===t));r&&(e.accounts=[r,...e.accounts.filter((({address:e})=>e!==r.address))])}!function(e){const{wagmi:t}=be;if(!t)return;try{const{label:r}=e,{wagmiConnect:n,getWagmiConnector:i}=t,o=Ge.get().wagmiConfig,a=i(r);n(o,{connector:a}).then((()=>{Ln(r,{wagmiConnector:a})}))}catch(r){console.error(`Error updating Wagmi connector on primary wallet switch ${r}`)}}(e),Rn(e)}function Un(e,t,r){Ke({type:Pe,payload:Object.assign({id:e,address:t},r)})}function zn(e){const t=(r=e,(0,N.tf)(gn,r));var r;if(t)throw t;Ke({type:je,payload:e})}function Hn(e){const t=(r=e,(0,N.tf)(mn,r));var r;if(t)throw t;Ke({type:De,payload:e})}function Vn(e){const t=jn(e);if(t)throw t;Ke({type:Ne,payload:e})}function Kn(e){const t=(r=e,(0,N.tf)(In,r));var r;if(t)throw t;Ke({type:Re,payload:e})}function Gn(e){if("string"!=typeof e)throw new Error("Notification id must be of type string");Ke({type:Le,payload:e})}function qn(e){const t=(r=e,(0,N.tf)(cn,r));var r;if(t)throw t;const n=function(e){const{device:t}=be;return t?e.reduce(((e,r)=>{const n=r({device:t});return n&&e.push(...Array.isArray(n)?n:[n]),e}),[]):[]}(e),i=(o=n).filter(((e,t)=>e&&o.findIndex((t=>t&&t.label===e.label))===t));var o;Ke({type:Oe,payload:i})}function Qn(e){const t=Bn(e);if(t)throw t;const r=Hr(e);r&&Kr(r)}function Wn(e){const t=(r=e,(0,N.tf)(sn,r));var r;if(t)throw t;Ke({type:Ue,payload:e})}function Jn(e){Ke({type:ze,payload:e})}async function Yn(e){if(e){const r=(t=e,(0,N.tf)(Cn,t));if(r)throw r}var t;const{chains:r}=Ge.get();if(!r.length)throw new Error("At least one chain must be set before attempting to connect a wallet");let{autoSelect:n}=e||{};n||(n={label:"",disableModals:!1}),n&&("string"==typeof n||n.label)&&await pe(50),Ge.get().walletModules.length||qn(be.initialWalletInit),Br.next({autoSelect:"string"==typeof n?{label:n,disableModals:!1}:n,inProgress:!0});return f(Br.pipe((0,v.p)((({inProgress:e,actionRequired:t})=>!1===e&&!t)),M(Rr),E(1)))}async function Zn(e){const t=(r=e,(0,N.tf)(En,r));var r;if(t)throw t;const{label:n}=e,{wagmi:i}=be;if(i){const e=await i.wagmiDisconnectWallet(n);e&&Jn(e)}Or.next(n),function(e){const t=Tn(e,"wallet id");if(t)throw t;Ke({type:Me,payload:{id:e}})}(n);const o=ge(Ae.LAST_CONNECTED_WALLET);if(o)try{const e=JSON.parse(o);Array.isArray(e)&&e.indexOf(n)>=0&&me(Ae.LAST_CONNECTED_WALLET,JSON.stringify(e.filter((e=>e!==n)))),"string"==typeof e&&e===n&&ye(Ae.LAST_CONNECTED_WALLET)}catch(a){console.error(`There was an error disconnecting the last connected wallet from localStorage - Error: ${a}`)}return Ge.get().wallets}B.object({id:B.string().required(),key:B.string().required(),type:B.string().allow("pending","error","success","hint").required(),eventCode:B.string().required(),message:B.string().required(),autoDismiss:B.number().required(),network:B.string().required(),startTime:B.number(),onClick:B.function(),link:B.string()});const $n=async(e,t)=>{if(!t)return[];const n=t.rpcUrl;if(!t.secondaryTokens||!t.secondaryTokens.length||!n)return[];return await Promise.all(t.secondaryTokens.map((async i=>{try{const{createPublicClient:o,http:a}=await r.e(1973).then(r.bind(r,601973)),s=o({chain:await(0,N.gb)(t),transport:a(t.providerConnectionInfo&&t.providerConnectionInfo.url?t.providerConnectionInfo.url:n)}),c={abi:[{inputs:[{name:"owner",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],stateMutability:"view",type:"function"}],address:i.address},u=s.readContract(Object.assign(Object.assign({},c),{functionName:"balanceOf",args:[e]}))||"",l=s.readContract(Object.assign(Object.assign({},c),{functionName:"symbol",args:[]}))||"",[d,f]=await Promise.all([u,l]);return{name:f,balance:(0,N.xM)(d.toString()),icon:i.icon}}catch(o){console.error(`There was an error fetching balance and/or symbol \n for token contract: ${i.address} - ${o}`)}})))},Xn={};async function ei(e){if(!e)return null;if(!Xn[e.rpcUrl]){const t=await(async e=>{switch(e){case"0x89":case"0xa":case"0xa4b1":case"0x144":case"0x1":{const{mainnet:e}=await Promise.all([r.e(11031),r.e(76868)]).then(r.bind(r,76868));return e}case"0xaa36a7":{const{sepolia:e}=await Promise.all([r.e(11031),r.e(76868)]).then(r.bind(r,76868));return e}default:return null}})(e.id);if(!t)return null;const{createPublicClient:n,http:i}=await r.e(1973).then(r.bind(r,601973)),o=n({chain:t,transport:i()});Xn[e.rpcUrl]=o}return Xn[e.rpcUrl]}function ti(e){return e.request({method:"eth_requestAccounts"})}function ri(e){return e.request({method:"eth_selectAccounts"})}function ni(e){return e.request({method:"eth_chainId"})}function ii(e){const{provider:t,disconnected$:r}=e;return g((e=>{t.on("accountsChanged",e)}),(e=>{t.removeListener("accountsChanged",e)})).pipe((0,u.Q)(r))}function oi(e,t){const r=Or.pipe((0,v.p)((e=>e===t)),(0,C.s)(1)),n=ii({provider:e,disconnected$:r}).pipe((0,P.u)());n.subscribe((async([e])=>{try{await async function(e){const t=Ge.get().wallets.find((t=>t.label===e));if(!t)return;const r=await async function(e){try{const t=await e.request({method:"wallet_getPermissions"});return Array.isArray(t)?t:[]}catch(t){return[]}}(t.provider),n=r.find((({parentCapability:e})=>"eth_accounts"===e));if(n){const{value:e}=n.caveats.find((({type:e})=>"restrictReturnedAccounts"===e))||{value:null};if(e){const r=t.accounts.filter((({address:t})=>e.includes(t)));Ln(t.label,Object.assign(Object.assign({},t),{accounts:r}))}}}(t)}catch(s){console.warn("Web3Onboard: Error whilst trying to sync connected accounts:",s)}if(!e)return void Zn({label:t});const{wallets:r}=Ge.get(),n=r.find((e=>e.label===t)),i=n?n.accounts:[],[[o],a]=R(i,(t=>t.address===e));Ln(t,{accounts:[o||{address:e,ens:null,uns:null,balance:null},...a]})})),n.pipe(j((async([e])=>{if(!e)return;const{wallets:r,chains:n}=Ge.get(),i=r.find((e=>e.label===t));if(!i)return;const{chains:o,accounts:a}=i,[s]=o,c=n.find((({namespace:e,id:t})=>"evm"===e&&t===s.id));if(!c)return;const u=ci(e,c),l=$n(e,c),d=a.find((t=>t.address===e)),f=n.find((({id:e})=>e===se(s.id))),h=d&&d.ens?Promise.resolve(d.ens):f?ai(e,f):Promise.resolve(null),p=d&&d.uns?Promise.resolve(d.uns):f?si(e,f):Promise.resolve(null);return Promise.all([Promise.resolve(e),u,h,p,l])}))).subscribe((e=>{if(!e)return;const[r,n,i,o,a]=e;Un(t,r,{balance:n,ens:i,uns:o,secondaryTokens:a})}));const i=function(e){const{provider:t,disconnected$:r}=e;return g((e=>{t.on("chainChanged",e)}),(e=>{t.removeListener("chainChanged",e)})).pipe((0,u.Q)(r))}({provider:e,disconnected$:r}).pipe((0,P.u)());i.subscribe((async e=>{const{wallets:r}=Ge.get(),n=r.find((e=>e.label===t));if(!n)return;const{chains:i,accounts:o}=n,[a]=i;if((0,L.q)(e)||(e=(0,F.nj)(e)),e===a.id)return;const s=o.map((({address:e})=>({address:e,ens:null,uns:null,balance:null})));Ln(t,{chains:[{namespace:"evm",id:e}],accounts:s})})),i.pipe(j((async e=>{const{wallets:r,chains:n}=Ge.get(),i=r.find((e=>e.label===t)),o=(null==i?void 0:i.accounts)||[];(0,L.q)(e)||(e=(0,F.nj)(e));const a=n.find((({namespace:t,id:r})=>"evm"===t&&r===e));return a?Promise.all(o.map((async({address:t})=>{const r=ci(t,a),i=$n(t,a),o=n.find((({id:t})=>t===se(e))),s=o?ai(t,o):Promise.resolve(null),c=o?si(t,o):Promise.resolve(null),[u,l,d,f]=await Promise.all([r,s,c,i]);return{address:t,balance:u,ens:l,uns:d,secondaryTokens:f}}))):Promise.resolve(null)}))).subscribe((e=>{e&&Ln(t,{accounts:e})})),r.subscribe((()=>{e.disconnect&&e.disconnect()}))}async function ai(e,t){if(!t)return null;const n=await ei(t);if(!n)return null;try{const t=await n.getEnsName({address:e});let i=null;if(t){const{labelhash:e,normalize:o}=await Promise.all([r.e(11031),r.e(69575)]).then(r.bind(r,69575)).then((function(e){return e.i})),a=o(t),s=await n.getEnsResolver({name:a}),c=await n.getEnsAvatar({name:a}),u=e(a);i={name:t,avatar:c,contentHash:u,ensResolver:s,getText:async e=>await n.getEnsText({name:t,key:e})}}return i}catch(i){return console.error(i),null}}async function si(e,t){const{unstoppableResolution:r}=be;if(!r||!(0,N.PW)(e)||!t)return null;try{return await r(e)}catch(n){return console.error(n),null}}async function ci(e,t){if(!t)return null;const{wallets:r}=Ge.get();try{const n=r.find((e=>!!e.provider));if(!n)return null;const i=n.provider,o=await i.request({method:"eth_getBalance",params:[e,"latest"]});return o?{[t.token||"eth"]:(0,N.P2)(o)}:null}catch(n){return console.error(n),null}}function ui(e,t){return e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]})}function li(e,t){return e.request({method:"wallet_addEthereumChain",params:[{chainId:t.id,chainName:t.label,nativeCurrency:{name:t.label,symbol:t.token,decimals:18},rpcUrls:[t.publicRpcUrl||t.rpcUrl],blockExplorerUrls:t.blockExplorerUrl?[t.blockExplorerUrl]:null}]})}function di(e,t,r){return e.request({method:"wallet_addEthereumChain",params:[{chainId:t.id,chainName:t.label,nativeCurrency:{name:t.label,symbol:t.token,decimals:18},rpcUrls:[r],blockExplorerUrls:t.blockExplorerUrl?[t.blockExplorerUrl]:void 0}]})}const fi=async(e,t)=>{try{const{id:r}=t;return await li(e,t),await ui(e,r),r}catch(r){return}},hi=()=>({addOrSwitchChain:fi,getChainId:ni,requestAccounts:ti,switchChain:ui});async function pi(e){const t=Mn(e);if(t)throw t;const{wallets:r,chains:n}=Ge.get(),{chainId:i,chainNamespace:o="evm",wallet:a,rpcUrl:s,label:c,token:u}=e,l=ie(i),d=n.find((({namespace:e,id:t})=>e===o&&t.toLowerCase()===l.toLowerCase()));if(!d)throw new Error(`Chain with chainId: ${i} and chainNamespace: ${o} has not been set and must be added when Onboard is initialized.`);const h=a?r.find((({label:e})=>e===a)):r[0];if(!h)throw new Error(a?`Wallet with label ${a} is not connected`:"A wallet must be connected before a chain can be set");const[p]=h.chains;if(p.namespace===o&&p.id===l)return!0;try{return await ui(h.provider,l),!0}catch(t){const{code:e}=t,r=Nr.pipe((0,v.p)((e=>null===e)),(0,w.T)((()=>!1)));if(e===N.ProviderRpcErrorCode.CHAIN_NOT_ADDED||e===N.ProviderRpcErrorCode.UNRECOGNIZED_CHAIN_ID)return(s||c||u)&&(s&&(d.rpcUrl=s),c&&(d.label=c),u&&(d.token=u),Nn(d)),gi(h,d,r,l);if(e===N.ProviderRpcErrorCode.UNSUPPORTED_METHOD)return Nr.next({chain:d}),f(r)}return!1}const gi=async(e,t,r,n)=>{try{return await li(e.provider,t),await ui(e.provider,n),!0}catch(i){const{code:e}=i;return e!==N.ProviderRpcErrorCode.ACCOUNT_ACCESS_REJECTED&&(Nr.next({chain:t}),f(r))}};var mi={connect:{selectingWallet:{header:"Available Wallets",sidebar:{heading:"",subheading:"Connect your wallet",paragraph:"Connecting your wallet is like \u201clogging in\u201d to Web3. Select your wallet from the options to get started.",IDontHaveAWallet:"I don't have a wallet"},recommendedWalletsPart1:"{app} only supports",recommendedWalletsPart2:"on this platform. Please use or install one of the supported wallets to continue",installWallet:"You do not have any wallets installed that {app} supports, please use a supported wallet",agreement:{agree:"I agree to the",terms:"Terms & Conditions",and:"and",privacy:"Privacy Policy"},whyDontISeeMyWallet:"Why don't I see my wallet?",learnMore:"Click here to learn more"},connectingWallet:{header:"{connectionRejected, select, false {Connecting to {wallet}...} other {Connection Rejected}}",sidebar:{subheading:"Approve Connection",paragraph:"Please approve the connection in your wallet and authorize access to continue."},mainText:"Connecting...",paragraph:"Make sure to select all accounts that you want to grant access to.",previousConnection:"{wallet} already has a pending connection request, please open the {wallet} app to login and connect.",rejectedText:"Connection Rejected!",rejectedCTA:"Click here to try again",primaryButton:"Back to wallets"},connectedWallet:{header:"Connection Successful",sidebar:{subheading:"Connection Successful!",paragraph:"Your wallet is now connected to {app}"},mainText:"Connected"}},modals:{actionRequired:{heading:"Action required in {wallet}",paragraph:"Please switch the active account in your wallet.",linkText:"Learn more.",buttonText:"Okay"},switchChain:{heading:"Switch Chain",paragraph1:"{app} requires that you switch your wallet to the {nextNetworkName} network to continue.",paragraph2:"*Some wallets may not support changing networks. If you can not change networks in your wallet you may consider switching to a different wallet."},confirmDisconnectAll:{heading:"Disconnect all Wallets",description:"Are you sure that you would like to disconnect all your wallets?",confirm:"Confirm",cancel:"Cancel"},confirmTransactionProtection:{heading:"Enable Transaction Protection",description:"Protect RPC endpoints hide your transaction from front-running and sandwich bots.",link:"Learn more",enable:"Enable",dismiss:"Dismiss"}},accountCenter:{connectAnotherWallet:"Connect another Wallet",disconnectAllWallets:"Disconnect all Wallets",currentNetwork:"Current Network",enableTransactionProtection:"Enable Transaction Protection",appInfo:"App Info",learnMore:"Learn More",gettingStartedGuide:"Getting Started Guide",smartContracts:"Smart Contract(s)",explore:"Explore",poweredBy:"powered by",addAccount:"Add Account",setPrimaryAccount:"Set Primary Account",disconnectWallet:"Disconnect Wallet",copyAddress:"Copy Wallet address"},notify:{transaction:{txRequest:"Your transaction is waiting for you to confirm",nsfFail:"You have insufficient funds for this transaction",txUnderpriced:"The gas price for your transaction is too low, try a higher gas price",txRepeat:"This could be a repeat transaction",txAwaitingApproval:"You have a previous transaction waiting for you to confirm",txConfirmReminder:"Please confirm your transaction to continue",txSendFail:"You rejected the transaction",txSent:"Your transaction has been sent to the network",txStallPending:"Your transaction has stalled before it was sent, please try again",txStuck:"Your transaction is stuck due to a nonce gap",txPool:"Your transaction has started",txStallConfirmed:"Your transaction has stalled and hasn't been confirmed",txSpeedUp:"Your transaction has been sped up",txCancel:"Your transaction is being canceled",txFailed:"Your transaction has failed",txConfirmed:"Your transaction has succeeded",txError:"Oops something went wrong, please try again",txReplaceError:"There was an error replacing your transaction, please try again"},watched:{txPool:"Your account is {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txSpeedUp:"Transaction for {formattedValue} {asset} {preposition} {counterpartyShortened} has been sped up",txCancel:"Transaction for {formattedValue} {asset} {preposition} {counterpartyShortened} has been canceled",txConfirmed:"Your account successfully {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txFailed:"Your account failed to {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txStuck:"Your transaction is stuck due to a nonce gap"},time:{minutes:"min",seconds:"sec"}}};function yi(e){mt(e,"svelte-1ubf722",".close-button.svelte-1ubf722.svelte-1ubf722{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;height:2rem;width:2rem;border-radius:2rem;cursor:pointer;color:var(--onboard-close-button-color, inherit)}.close-button.svelte-1ubf722.svelte-1ubf722:hover::before{opacity:0.2}.close-button.svelte-1ubf722:hover .svg-box.svelte-1ubf722{opacity:1}.close-button.svelte-1ubf722.svelte-1ubf722::before{content:'';position:absolute;height:inherit;width:inherit;opacity:0.1;background:currentColor;transition:300ms ease-in-out opacity}.svg-box.svelte-1ubf722.svelte-1ubf722{position:absolute;height:1.5rem;width:1.5rem;opacity:0.6;transition:300ms ease-in-out opacity}")}function bi(e){let t,r;return{c(){t=Et("div"),r=Et("div"),Tt(r,"class","svg-box svelte-1ubf722"),Tt(t,"class","close-button svelte-1ubf722")},m(e,n){wt(e,t,n),gt(t,r),r.innerHTML='\n \n \n \n'},p:qe,i:qe,o:qe,d(e){e&&At(t)}}}class vi extends jr{constructor(e){super(),Pr(this,e,null,bi,$e,{},yi)}}function wi(e){const t=e-1;return t*t*t+1}function Ai(e){return Math.pow(e-1,3)*(1-e)+1}function Ci(e,{delay:t=0,duration:r=400,easing:n=Qe}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:e=>"opacity: "+e*i}}function Ei(e,{delay:t=0,duration:r=400,easing:n=wi,x:i=0,y:o=0,opacity:a=0}={}){const s=getComputedStyle(e),c=+s.opacity,u="none"===s.transform?"":s.transform,l=c*(1-a),[d,f]=ct(i),[h,p]=ct(o);return{delay:t,duration:r,easing:n,css:(e,t)=>`\n\t\t\ttransform: ${u} translate(${(1-e)*d}${f}, ${(1-e)*h}${p});\n\t\t\topacity: ${c-l*t}`}}function xi(e,{delay:t=0,duration:r=400,easing:n=wi,axis:i="y"}={}){const o=getComputedStyle(e),a=+o.opacity,s="y"===i?"height":"width",c=parseFloat(o[s]),u="y"===i?["top","bottom"]:["left","right"],l=u.map((e=>`${e[0].toUpperCase()}${e.slice(1)}`)),d=parseFloat(o[`padding${l[0]}`]),f=parseFloat(o[`padding${l[1]}`]),h=parseFloat(o[`margin${l[0]}`]),p=parseFloat(o[`margin${l[1]}`]),g=parseFloat(o[`border${l[0]}Width`]),m=parseFloat(o[`border${l[1]}Width`]);return{delay:t,duration:r,easing:n,css:e=>`overflow: hidden;opacity: ${Math.min(20*e,1)*a};${s}: ${e*c}px;padding-${u[0]}: ${e*d}px;padding-${u[1]}: ${e*f}px;margin-${u[0]}: ${e*h}px;margin-${u[1]}: ${e*p}px;border-${u[0]}-width: ${e*g}px;border-${u[1]}-width: ${e*m}px;`}}function Si(e){mt(e,"svelte-7ee2g7","section.svelte-7ee2g7{top:0;left:0;pointer-events:none;z-index:var(--onboard-modal-z-index, var(--modal-z-index))}.background.svelte-7ee2g7{background:var(--onboard-modal-backdrop, var(--modal-backdrop));pointer-events:all}.full-screen-background.svelte-7ee2g7{width:100vw;height:100vh;height:100dvh}.max-height.svelte-7ee2g7{max-height:calc(100vh - 2rem)}.modal-position.svelte-7ee2g7{top:var(--onboard-modal-top, var(--modal-top));bottom:var(--onboard-modal-bottom, var(--modal-bottom));left:var(--onboard-modal-left, var(--modal-left));right:var(--onboard-modal-right, var(--modal-right))}.modal-overflow.svelte-7ee2g7{overflow:hidden}.modal-styling.svelte-7ee2g7{--border-radius:var(\n --onboard-modal-border-radius,\n var(--w3o-border-radius, 1rem)\n );border-radius:var(--border-radius) var(--border-radius) 0 0;box-shadow:var(--onboard-modal-box-shadow, var(--box-shadow-0));max-width:100vw}.modal.svelte-7ee2g7{overflow-y:auto;background:var(--onboard-modal-background, white);color:var(--onboard-modal-color, initial)}.width-100.svelte-7ee2g7{width:100%}.modal-container-mobile.svelte-7ee2g7{bottom:0}@media all and (min-width: 768px){.modal-styling.svelte-7ee2g7{border-radius:var(--border-radius)}.modal-container-mobile.svelte-7ee2g7{bottom:unset;margin:1rem}.width-100.svelte-7ee2g7{width:unset}}")}function Ii(e){let t,r,n,i,o,a,s,c,u,l;const d=e[3].default,f=rt(d,e,e[2],null);return{c(){t=Et("section"),r=Et("div"),n=Et("div"),i=Et("div"),o=Et("div"),a=Et("div"),f&&f.c(),Tt(a,"class","modal relative svelte-7ee2g7"),Tt(o,"class","modal-overflow modal-styling relative flex justify-center svelte-7ee2g7"),Tt(o,"style",""+(e[1]?"max-width: 100%;":"")),Tt(i,"class","flex relative max-height svelte-7ee2g7"),Dt(i,"width-100",e[1]),Tt(n,"class","modal-container-mobile modal-position flex svelte-7ee2g7"),Dt(n,"absolute",!e[1]),Dt(n,"width-100",e[1]),Tt(r,"class","background flex items-center justify-center relative svelte-7ee2g7"),Dt(r,"full-screen-background",!e[1]),Tt(t,"class","svelte-7ee2g7"),Dt(t,"fixed",!e[1])},m(s,d){wt(s,t,d),gt(t,r),gt(r,n),gt(n,i),gt(i,o),gt(o,a),f&&f.m(a,null),c=!0,u||(l=[kt(i,"click",_t(e[4])),kt(r,"click",(function(){Ze(e[0])&&e[0].apply(this,arguments)}))],u=!0)},p(t,[r]){e=t,f&&f.p&&(!c||4&r)&&ot(f,d,e,e[2],c?it(d,e[2],r,null):at(e[2]),null)},i(e){c||(pr(f,e),tr((()=>{c&&(s||(s=vr(t,Ci,{},!0)),s.run(1))})),c=!0)},o(e){gr(f,e),s||(s=vr(t,Ci,{},!1)),s.run(0),c=!1},d(e){e&&At(t),f&&f.d(e),e&&s&&s.end(),u=!1,Ye(l)}}}function ki(e,t,r){let{$$slots:n={},$$scope:i}=t;const o=!!be.containerElements.connectModal,a=document.documentElement;qt((()=>{o||(a.style.position="sticky",a.style.overflow="hidden")})),Qt((()=>{o||(a.style.position="",a.style.removeProperty("overflow"))}));let{close:s}=t;return e.$$set=e=>{"close"in e&&r(0,s=e.close),"$$scope"in e&&r(2,i=e.$$scope)},[s,o,i,n,function(t){Wt.call(this,e,t)}]}class _i extends jr{constructor(e){super(),Pr(this,e,ki,Ii,$e,{close:0},Si)}}function Ti(e){mt(e,"svelte-tz7ru1",".container.svelte-tz7ru1{padding:var(--onboard-spacing-4, var(--spacing-4));font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:24px}input.svelte-tz7ru1{height:1rem;width:1rem;margin-right:0.5rem}")}function Mi(e){let t,r,n,i,o,a,s,c,u,l,d,f,h=e[1]("connect.selectingWallet.agreement.agree")+"",p=e[3]&&function(e){let t,r,n,i=e[1]("connect.selectingWallet.agreement.terms")+"",o=e[4]?" "+e[1]("connect.selectingWallet.agreement.and")+" ":".";return{c(){t=Et("a"),r=xt(i),n=xt(o),Tt(t,"href",e[3]),Tt(t,"target","_blank")},m(e,i){wt(e,t,i),gt(t,r),wt(e,n,i)},p(e,t){2&t&&i!==(i=e[1]("connect.selectingWallet.agreement.terms")+"")&&Mt(r,i),2&t&&o!==(o=e[4]?" "+e[1]("connect.selectingWallet.agreement.and")+" ":".")&&Mt(n,o)},d(e){e&&At(t),e&&At(n)}}}(e),g=e[4]&&function(e){let t,r,n,i=e[1]("connect.selectingWallet.agreement.privacy")+"";return{c(){t=Et("a"),r=xt(i),n=xt("."),Tt(t,"href",e[4]),Tt(t,"target","_blank")},m(e,i){wt(e,t,i),gt(t,r),wt(e,n,i)},p(e,t){2&t&&i!==(i=e[1]("connect.selectingWallet.agreement.privacy")+"")&&Mt(r,i)},d(e){e&&At(t),e&&At(n)}}}(e);return{c(){t=Et("div"),r=Et("label"),n=Et("input"),i=St(),o=Et("span"),a=xt(h),s=St(),c=xt(" "),u=St(),p&&p.c(),l=St(),g&&g.c(),Tt(n,"class"," svelte-tz7ru1"),Tt(n,"type","checkbox"),Tt(r,"class","flex"),Tt(t,"class","container flex items-center svelte-tz7ru1")},m(h,m){wt(h,t,m),gt(t,r),gt(r,n),n.checked=e[0],gt(r,i),gt(r,o),gt(o,a),gt(o,s),gt(o,c),gt(o,u),p&&p.m(o,null),gt(o,l),g&&g.m(o,null),d||(f=kt(n,"change",e[6]),d=!0)},p(e,t){1&t&&(n.checked=e[0]),2&t&&h!==(h=e[1]("connect.selectingWallet.agreement.agree")+"")&&Mt(a,h),e[3]&&p.p(e,t),e[4]&&g.p(e,t)},d(e){e&&At(t),p&&p.d(),g&&g.d(),d=!1,f()}}}function Pi(e){let t,r=e[5]&&Mi(e);return{c(){r&&r.c(),t=It()},m(e,n){r&&r.m(e,n),wt(e,t,n)},p(e,[t]){e[5]&&r.p(e,t)},i:qe,o:qe,d(e){r&&r.d(e),e&&At(t)}}}function ji(e,t,r){let n,i;tt(e,O._,(e=>r(1,i=e)));let{agreed:o}=t;const{terms:a,privacy:s,version:c}=JSON.parse(ge(Ae.TERMS_AGREEMENT)||"{}"),u=Ge.select("appMetadata").pipe((0,m.Z)(Ge.get().appMetadata),(0,y.t)(1));tt(e,u,(e=>r(7,n=e)));const{termsUrl:l,privacyUrl:d,version:f}=n&&n.agreement||{termsUrl:"",privacyUrl:"",version:""},h=!!(l&&!a||d&&!s||f&&f!==c);return o=!h,e.$$set=e=>{"agreed"in e&&r(0,o=e.agreed)},e.$$.update=()=>{1&e.$$.dirty&&(o?me(Ae.TERMS_AGREEMENT,JSON.stringify({version:f,terms:!!l,privacy:!!d})):!1===o&&ye(Ae.TERMS_AGREEMENT))},[o,i,u,l,d,h,function(){o=this.checked,r(0,o)}]}class Di extends jr{constructor(e){super(),Pr(this,e,ji,Pi,$e,{agreed:0},Ti)}}function Oi(e){mt(e,"svelte-2btye1",".icon.svelte-2btye1{color:var(--onboard-white, var(--white));border-radius:50px;bottom:-0.25rem;right:-0.25rem}.yellow.svelte-2btye1{background:var(--onboard-warning-500, var(--warning-500))}")}function Bi(e){let t,r,n;return{c(){t=Et("div"),Tt(t,"class",r=st(`${e[2]} icon flex absolute`)+" svelte-2btye1"),Tt(t,"style",n=`width: ${e[0]}px; height: ${e[0]}px; padding: ${e[0]/6}px;`),Dt(t,"yellow","yellow"===e[1])},m(e,r){wt(e,t,r),t.innerHTML='\n \n \n \n'},p(e,[i]){4&i&&r!==(r=st(`${e[2]} icon flex absolute`)+" svelte-2btye1")&&Tt(t,"class",r),1&i&&n!==(n=`width: ${e[0]}px; height: ${e[0]}px; padding: ${e[0]/6}px;`)&&Tt(t,"style",n),6&i&&Dt(t,"yellow","yellow"===e[1])},i:qe,o:qe,d(e){e&&At(t)}}}function Ni(e,t,r){let{size:n}=t,{color:i="yellow"}=t,{class:o="test"}=t;return e.$$set=e=>{"size"in e&&r(0,n=e.size),"color"in e&&r(1,i=e.color),"class"in e&&r(2,o=e.class)},[n,i,o]}class Ri extends jr{constructor(e){super(),Pr(this,e,Ni,Bi,$e,{size:0,color:1,class:2},Oi)}}function Li(e){mt(e,"svelte-1bikw7k",".icon.svelte-1bikw7k{color:var(--onboard-white, var(--white));border-radius:50px}.green.svelte-1bikw7k{background:var(--onboard-success-600, var(--success-600))}.blue.svelte-1bikw7k{background:var(--onboard-primary-1, var(--primary-1))}")}function Fi(e){let t,r;return{c(){t=Et("div"),Tt(t,"class","icon flex svelte-1bikw7k"),Tt(t,"style",r=`width: ${e[0]}px; height: ${e[0]}px; padding: ${e[0]/5}px;`),Dt(t,"green","green"===e[1]),Dt(t,"blue","blue"===e[1])},m(e,r){wt(e,t,r),t.innerHTML=$},p(e,[n]){1&n&&r!==(r=`width: ${e[0]}px; height: ${e[0]}px; padding: ${e[0]/5}px;`)&&Tt(t,"style",r),2&n&&Dt(t,"green","green"===e[1]),2&n&&Dt(t,"blue","blue"===e[1])},i:qe,o:qe,d(e){e&&At(t)}}}function Ui(e,t,r){let{size:n}=t,{color:i="green"}=t;return e.$$set=e=>{"size"in e&&r(0,n=e.size),"color"in e&&r(1,i=e.color)},[n,i]}class zi extends jr{constructor(e){super(),Pr(this,e,Ui,Fi,$e,{size:0,color:1},Li)}}function Hi(e){mt(e,"svelte-1le5672",".loading-container.svelte-1le5672.svelte-1le5672{font-family:inherit;font-size:inherit;color:inherit}span.svelte-1le5672.svelte-1le5672{font-family:inherit;font-size:0.889em;margin-top:1rem}.loading.svelte-1le5672.svelte-1le5672{display:inline-block}.loading.svelte-1le5672 div.svelte-1le5672{font-size:inherit;display:block;position:absolute;border:3px solid;border-radius:50%;animation:svelte-1le5672-bn-loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:currentColor transparent transparent transparent}.loading.svelte-1le5672 .loading-first.svelte-1le5672{animation-delay:-0.45s}.loading.svelte-1le5672 .loading-second.svelte-1le5672{animation-delay:-0.3s}.loading.svelte-1le5672 .loading-third.svelte-1le5672{animation-delay:-0.15s}@keyframes svelte-1le5672-bn-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function Vi(e){let t,r;return{c(){t=Et("span"),r=xt(e[0]),Tt(t,"class","svelte-1le5672")},m(e,n){wt(e,t,n),gt(t,r)},p(e,t){1&t&&Mt(r,e[0])},d(e){e&&At(t)}}}function Ki(e){let t,r,n,i,o,a,s,c,u,l,d,f,h=e[0]&&Vi(e);return{c(){t=Et("div"),r=Et("div"),n=Et("div"),o=St(),a=Et("div"),c=St(),u=Et("div"),f=St(),h&&h.c(),Tt(n,"class","loading-first svelte-1le5672"),Tt(n,"style",i=`height: ${e[1]}; width: ${e[1]};`),Tt(a,"class","loading-second svelte-1le5672"),Tt(a,"style",s=`height: ${e[1]}; width: ${e[1]};`),Tt(u,"class","loading-third svelte-1le5672"),Tt(u,"style",l=`height: ${e[1]}; width: ${e[1]};`),Tt(r,"class","loading relative svelte-1le5672"),Tt(r,"style",d=`height: ${e[1]}; width: ${e[1]};`),Tt(t,"class","loading-container flex flex-column justify-center items-center absolute svelte-1le5672")},m(e,i){wt(e,t,i),gt(t,r),gt(r,n),gt(r,o),gt(r,a),gt(r,c),gt(r,u),gt(t,f),h&&h.m(t,null)},p(e,[o]){2&o&&i!==(i=`height: ${e[1]}; width: ${e[1]};`)&&Tt(n,"style",i),2&o&&s!==(s=`height: ${e[1]}; width: ${e[1]};`)&&Tt(a,"style",s),2&o&&l!==(l=`height: ${e[1]}; width: ${e[1]};`)&&Tt(u,"style",l),2&o&&d!==(d=`height: ${e[1]}; width: ${e[1]};`)&&Tt(r,"style",d),e[0]?h?h.p(e,o):(h=Vi(e),h.c(),h.m(t,null)):h&&(h.d(1),h=null)},i:qe,o:qe,d(e){e&&At(t),h&&h.d()}}}function Gi(e,t,r){let{description:n=""}=t,{size:i="2rem"}=t;return e.$$set=e=>{"description"in e&&r(0,n=e.description),"size"in e&&r(1,i=e.size)},[n,i]}class qi extends jr{constructor(e){super(),Pr(this,e,Gi,Ki,$e,{description:0,size:1},Hi)}}function Qi(e){mt(e,"svelte-i129jl",".icon.svelte-i129jl{height:100%}.border-custom.svelte-i129jl{border:1px solid var(--border-color)}.border-yellow.svelte-i129jl{border:1px solid var(--onboard-warning-500, var(--warning-500))}.border-gray.svelte-i129jl{border:1px solid var(--onboard-gray-400, var(--gray-400))}.border-green.svelte-i129jl{border:1px solid var(--onboard-success-500, var(--success-500))}.border-dark-green.svelte-i129jl{border:1px solid var(--onboard-success-700, var(--success-700))}.border-blue.svelte-i129jl{border:1px solid\n var(\n --onboard-wallet-app-icon-border-color,\n var(--onboard-primary-300, var(--primary-300))\n )}.border-dark-blue.svelte-i129jl{border:1px solid\n var(\n --onboard-wallet-app-icon-border-color,\n var(--onboard-primary-600, var(--primary-600))\n )}.border-transparent.svelte-i129jl{border:1px solid transparent}.border-black.svelte-i129jl{border:1px solid var(--onboard-gray-600, var(--gray-600))}.background-gray.svelte-i129jl{background:var(\n --onboard-wallet-app-icon-background-gray,\n var(--onboard-gray-500, var(--gray-500))\n )}.background-light-gray.svelte-i129jl{background:var(\n --onboard-wallet-app-icon-background-light-gray,\n var(--onboard-gray-100, var(--gray-100))\n )}.background-light-blue.svelte-i129jl{background:var(\n --onboard-wallet-app-icon-background-light-blue,\n var(--onboard-primary-100, var(--primary-100))\n )}.background-green.svelte-i129jl{background:var(\n --onboard-wallet-app-icon-background-green,\n var(--onboard-success-100, var(--success-100))\n )}.background-white.svelte-i129jl{background:var(\n --onboard-wallet-app-icon-background-white,\n var(--onboard-white, var(--white))\n )}.background-transparent.svelte-i129jl{background:var(\n --onboard-wallet-app-icon-background-transparent,\n transparent\n )}@keyframes svelte-i129jl-pulse{from{opacity:0}to{opacity:1}}.placeholder-icon.svelte-i129jl{width:100%;height:100%;background:var(--onboard-gray-100, var(--gray-100));border-radius:32px;animation:svelte-i129jl-pulse infinite 750ms alternate ease-in-out}.spinner-container.svelte-i129jl{color:var(--onboard-primary-300, var(--primary-300))}img.svelte-i129jl{max-width:100%;height:auto}.pending-status-icon{z-index:1;fill:white;box-shadow:0px 2px 12px 0px rgba(0, 0, 0, 0.1)}.status-icon-container.svelte-i129jl{right:-0.25rem;bottom:-0.25rem;position:absolute}")}const Wi=e=>({}),Ji=e=>({});function Yi(e){let t,r,n,i={ctx:e,current:null,token:null,hasCatch:!1,pending:no,then:Xi,catch:$i,value:13,blocks:[,,,]};return wr(r=e[1],i),{c(){t=It(),i.block.c()},m(e,r){wt(e,t,r),i.block.m(e,i.anchor=r),i.mount=()=>t.parentNode,i.anchor=t,n=!0},p(t,n){e=t,i.ctx=e,2&n&&r!==(r=e[1])&&wr(r,i)||Ar(i,e,n)},i(e){n||(pr(i.block),n=!0)},o(e){for(let t=0;t<3;t+=1){gr(i.blocks[t])}n=!1},d(e){e&&At(t),i.block.d(e),i.token=null,i=null}}}function Zi(e){let t,r,n;return r=new qi({props:{size:"2rem"}}),{c(){t=Et("div"),kr(r.$$.fragment),Tt(t,"class","spinner-container svelte-i129jl")},m(e,i){wt(e,t,i),_r(r,t,null),n=!0},p:qe,i(e){n||(pr(r.$$.fragment,e),n=!0)},o(e){gr(r.$$.fragment,e),n=!1},d(e){e&&At(t),Tr(r)}}}function $i(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function Xi(e){let t,r,n,i,o,a;function s(e,t){return 2&t&&(r=null),null==r&&(r=!!ee(e[13])),r?to:eo}let c=s(e,-1),u=c(e),l=e[2]&&e[9]<=Ce&&ro();return{c(){t=Et("div"),u.c(),i=St(),l&&l.c(),o=It(),Tt(t,"class","icon flex justify-center items-center svelte-i129jl")},m(e,r){wt(e,t,r),u.m(t,null),wt(e,i,r),l&&l.m(e,r),wt(e,o,r),a=!0},p(e,r){c===(c=s(e,r))&&u?u.p(e,r):(u.d(1),u=c(e),u&&(u.c(),u.m(t,null))),e[2]&&e[9]<=Ce?l?516&r&&pr(l,1):(l=ro(),l.c(),pr(l,1),l.m(o.parentNode,o)):l&&(fr(),gr(l,1,1,(()=>{l=null})),hr())},i(e){a||(e&&(n||tr((()=>{n=yr(t,Ci,{}),n.start()}))),pr(l),a=!0)},o(e){gr(l),a=!1},d(e){e&&At(t),u.d(),e&&At(i),l&&l.d(e),e&&At(o)}}}function eo(e){let t,r;return{c(){t=Et("img"),et(t.src,r=e[13])||Tt(t,"src",r),Tt(t,"alt","logo"),Tt(t,"class","svelte-i129jl")},m(e,r){wt(e,t,r)},p(e,n){2&n&&!et(t.src,r=e[13])&&Tt(t,"src",r)},d(e){e&&At(t)}}}function to(e){let t,r,n=e[13]+"";return{c(){t=new Ot(!1),r=It(),t.a=r},m(e,i){t.m(n,e,i),wt(e,r,i)},p(e,r){2&r&&n!==(n=e[13]+"")&&t.p(n)},d(e){e&&At(r),e&&t.d()}}}function ro(e){let t,r,n;return r=new Ri({props:{class:"pending-status-icon",size:20}}),{c(){t=Et("div"),kr(r.$$.fragment),Tt(t,"class","status-icon-container svelte-i129jl")},m(e,i){wt(e,t,i),_r(r,t,null),n=!0},i(e){n||(pr(r.$$.fragment,e),n=!0)},o(e){gr(r.$$.fragment,e),n=!1},d(e){e&&At(t),Tr(r)}}}function no(e){let t;return{c(){t=Et("div"),Tt(t,"class","placeholder-icon svelte-i129jl")},m(e,r){wt(e,t,r)},p:qe,i:qe,o:qe,d(e){e&&At(t)}}}function io(e){let t,r,n,i,o,a,s,c;tr(e[12]);const u=[Zi,Yi],l=[];function d(e,t){return e[2]&&e[9]>=Ce?0:1}r=d(e),n=l[r]=u[r](e);const f=e[11].status,h=rt(f,e,e[10],Ji);return{c(){t=Et("div"),n.c(),i=St(),h&&h.c(),Tt(t,"class","relative svelte-i129jl"),Tt(t,"style",o=`${"custom"===e[6]?`background-color: ${e[7]}`:""}; padding: ${e[3]-1}px; width: ${e[0]}px; height: ${e[0]}px; border-radius: ${e[8]}px; color: ${e[4]};`),Dt(t,"border-custom","custom"===e[5]),Dt(t,"border-yellow","yellow"===e[5]),Dt(t,"border-gray","gray"===e[5]),Dt(t,"border-green","green"===e[5]),Dt(t,"border-dark-green","darkGreen"===e[5]),Dt(t,"border-blue","blue"===e[5]),Dt(t,"border-dark-blue","darkBlue"===e[5]),Dt(t,"border-transparent","transparent"===e[5]),Dt(t,"border-black","black"===e[5]),Dt(t,"background-gray","gray"===e[6]),Dt(t,"background-light-gray","lightGray"===e[6]),Dt(t,"background-light-blue","lightBlue"===e[6]),Dt(t,"background-green","green"===e[6]),Dt(t,"background-white","white"===e[6]),Dt(t,"background-transparent","transparent"===e[6])},m(n,o){wt(n,t,o),l[r].m(t,null),gt(t,i),h&&h.m(t,null),a=!0,s||(c=kt(window,"resize",e[12]),s=!0)},p(e,[s]){let c=r;r=d(e),r===c?l[r].p(e,s):(fr(),gr(l[c],1,1,(()=>{l[c]=null})),hr(),n=l[r],n?n.p(e,s):(n=l[r]=u[r](e),n.c()),pr(n,1),n.m(t,i)),h&&h.p&&(!a||1024&s)&&ot(h,f,e,e[10],a?it(f,e[10],s,Wi):at(e[10]),Ji),(!a||473&s&&o!==(o=`${"custom"===e[6]?`background-color: ${e[7]}`:""}; padding: ${e[3]-1}px; width: ${e[0]}px; height: ${e[0]}px; border-radius: ${e[8]}px; color: ${e[4]};`))&&Tt(t,"style",o),(!a||32&s)&&Dt(t,"border-custom","custom"===e[5]),(!a||32&s)&&Dt(t,"border-yellow","yellow"===e[5]),(!a||32&s)&&Dt(t,"border-gray","gray"===e[5]),(!a||32&s)&&Dt(t,"border-green","green"===e[5]),(!a||32&s)&&Dt(t,"border-dark-green","darkGreen"===e[5]),(!a||32&s)&&Dt(t,"border-blue","blue"===e[5]),(!a||32&s)&&Dt(t,"border-dark-blue","darkBlue"===e[5]),(!a||32&s)&&Dt(t,"border-transparent","transparent"===e[5]),(!a||32&s)&&Dt(t,"border-black","black"===e[5]),(!a||64&s)&&Dt(t,"background-gray","gray"===e[6]),(!a||64&s)&&Dt(t,"background-light-gray","lightGray"===e[6]),(!a||64&s)&&Dt(t,"background-light-blue","lightBlue"===e[6]),(!a||64&s)&&Dt(t,"background-green","green"===e[6]),(!a||64&s)&&Dt(t,"background-white","white"===e[6]),(!a||64&s)&&Dt(t,"background-transparent","transparent"===e[6])},i(e){a||(pr(n),pr(h,e),a=!0)},o(e){gr(n),gr(h,e),a=!1},d(e){e&&At(t),l[r].d(),h&&h.d(e),s=!1,c()}}}function oo(e,t,r){let n,{$$slots:i={},$$scope:o}=t,{size:a}=t,{icon:s}=t,{loading:c=!1}=t,{padding:u=a/6}=t,{color:l="black"}=t,{border:d="transparent"}=t,{background:f="transparent"}=t,{customBackgroundColor:h=""}=t,{radius:p=12}=t;return e.$$set=e=>{"size"in e&&r(0,a=e.size),"icon"in e&&r(1,s=e.icon),"loading"in e&&r(2,c=e.loading),"padding"in e&&r(3,u=e.padding),"color"in e&&r(4,l=e.color),"border"in e&&r(5,d=e.border),"background"in e&&r(6,f=e.background),"customBackgroundColor"in e&&r(7,h=e.customBackgroundColor),"radius"in e&&r(8,p=e.radius),"$$scope"in e&&r(10,o=e.$$scope)},[a,s,c,u,l,d,f,h,p,n,o,i,function(){r(9,n=window.innerWidth)}]}class ao extends jr{constructor(e){super(),Pr(this,e,oo,io,$e,{size:0,icon:1,loading:2,padding:3,color:4,border:5,background:6,customBackgroundColor:7,radius:8},Qi)}}function so(e){mt(e,"svelte-q2gson",".container.svelte-q2gson{gap:1rem;padding:0.75rem;color:var(--onboard-warning-700, var(--warning-700));font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px;border:1px solid var(--onboard-warning-400, var(--warning-400));background:var(--onboard-warning-100, var(--warning-100));border-radius:12px}.icon.svelte-q2gson{color:var(--onboard-warning-700, var(--warning-700));width:1rem;height:1rem;flex:0 0 auto}")}function co(e){let t,r,n,i,o,a;const s=e[1].default,c=rt(s,e,e[0],null);return{c(){t=Et("div"),r=Et("div"),c&&c.c(),n=St(),i=Et("div"),Tt(i,"class","icon svelte-q2gson"),Tt(t,"class","container flex justify-between svelte-q2gson")},m(e,o){wt(e,t,o),gt(t,r),c&&c.m(r,null),gt(t,n),gt(t,i),i.innerHTML=Z,a=!0},p(e,[t]){c&&c.p&&(!a||1&t)&&ot(c,s,e,e[0],a?it(s,e[0],t,null):at(e[0]),null)},i(e){a||(pr(c,e),e&&(o||tr((()=>{o=yr(t,xi,{delay:50,duration:500}),o.start()}))),a=!0)},o(e){gr(c,e),a=!1},d(e){e&&At(t),c&&c.d(e)}}}function uo(e,t,r){let{$$slots:n={},$$scope:i}=t;return e.$$set=e=>{"$$scope"in e&&r(0,i=e.$$scope)},[i,n]}class lo extends jr{constructor(e){super(),Pr(this,e,uo,co,$e,{},so)}}function fo(e){mt(e,"svelte-1kfgpsl",".container.svelte-1kfgpsl{padding:var(--onboard-spacing-4, var(--spacing-4));color:var(\n --onboard-connect-accent-text-color,\n var(--onboard-gray-700, var(--gray-700))\n )}.connecting-container.svelte-1kfgpsl{padding:var(--onboard-spacing-4, var(--spacing-4));border-radius:var(--onboard-border-radius-1, var(--border-radius-1));background:var(--onboard-success-100, var(--success-100));border:1px solid var(--onboard-success-600, var(--success-600));width:100%}.text.svelte-1kfgpsl{right:var(--onboard-spacing-5, var(--spacing-5))}.tick.svelte-1kfgpsl{color:var(--onboard-success-700, var(--success-700))}")}function ho(e){let t,r,n,i,o,a,s,c,u,l,d,f,h,p,g,m,y,b=e[2]("connect.connectedWallet.mainText",{default:mi.connect.connectedWallet.mainText,values:{wallet:e[0].label}})+"";return o=new ao({props:{size:40,padding:8,background:e[1]&&e[1].icon?"lightBlue":"lightGray",border:"darkGreen",icon:e[1]&&e[1].icon||Y}}),c=new zi({props:{size:17}}),d=new ao({props:{size:40,padding:8,border:"darkGreen",background:"white",icon:e[0].icon}}),{c(){t=Et("div"),r=Et("div"),n=Et("div"),i=Et("div"),kr(o.$$.fragment),a=St(),s=Et("div"),kr(c.$$.fragment),u=St(),l=Et("div"),kr(d.$$.fragment),f=St(),h=Et("div"),p=xt(b),g=St(),m=Et("div"),Tt(s,"class","relative"),Pt(s,"right","1rem"),Pt(s,"top","4px"),Pt(s,"z-index","1"),Tt(l,"class","relative"),Pt(l,"right","1.75rem"),Tt(i,"class","flex justify-center items-end relative"),Tt(h,"class","text relative svelte-1kfgpsl"),Tt(n,"class","flex items-center"),Tt(m,"class","tick flex items-center svelte-1kfgpsl"),Pt(m,"width","24px"),Tt(r,"class","connecting-container flex justify-between items-center svelte-1kfgpsl"),Tt(t,"class","container svelte-1kfgpsl")},m(e,b){wt(e,t,b),gt(t,r),gt(r,n),gt(n,i),_r(o,i,null),gt(i,a),gt(i,s),_r(c,s,null),gt(i,u),gt(i,l),_r(d,l,null),gt(n,f),gt(n,h),gt(h,p),gt(r,g),gt(r,m),m.innerHTML=$,y=!0},p(e,[t]){const r={};2&t&&(r.background=e[1]&&e[1].icon?"lightBlue":"lightGray"),2&t&&(r.icon=e[1]&&e[1].icon||Y),o.$set(r);const n={};1&t&&(n.icon=e[0].icon),d.$set(n),(!y||5&t)&&b!==(b=e[2]("connect.connectedWallet.mainText",{default:mi.connect.connectedWallet.mainText,values:{wallet:e[0].label}})+"")&&Mt(p,b)},i(e){y||(pr(o.$$.fragment,e),pr(c.$$.fragment,e),pr(d.$$.fragment,e),y=!0)},o(e){gr(o.$$.fragment,e),gr(c.$$.fragment,e),gr(d.$$.fragment,e),y=!1},d(e){e&&At(t),Tr(o),Tr(c),Tr(d)}}}function po(e,t,r){let n,i;tt(e,O._,(e=>r(2,i=e)));let{selectedWallet:o}=t;const a=Ge.select("appMetadata").pipe((0,m.Z)(Ge.get().appMetadata),(0,y.t)(1));return tt(e,a,(e=>r(1,n=e))),e.$$set=e=>{"selectedWallet"in e&&r(0,o=e.selectedWallet)},[o,n,i,a]}class go extends jr{constructor(e){super(),Pr(this,e,po,ho,$e,{selectedWallet:0},fo)}}function mo(e){mt(e,"svelte-j1ywa3",".container.svelte-j1ywa3{padding:var(--onboard-spacing-4, var(--spacing-4))}.connecting-container.svelte-j1ywa3{width:100%;padding:var(--onboard-spacing-4, var(--spacing-4));transition:background-color 100ms ease-in-out,\n border-color 100ms ease-in-out;border-radius:24px;background:var(--onboard-primary-100, var(--primary-100));border:1px solid;border-color:var(--onboard-primary-300, var(--primary-300));color:var(--onboard-gray-600, var(--gray-600))}.connecting-container.warning.svelte-j1ywa3{background:var(--onboard-warning-100, var(--warning-100));border-color:var(--onboard-warning-400, var(--warning-400))}.text.svelte-j1ywa3{line-height:16px;margin-bottom:var(--onboard-spacing-5, var(--spacing-5))}.text.text-rejected.svelte-j1ywa3{line-height:24px;margin-bottom:0}.subtext.svelte-j1ywa3{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px}.rejected-cta.svelte-j1ywa3{color:var(--onboard-primary-500, var(--primary-500))}.onboard-button-primary.svelte-j1ywa3{bottom:var(--onboard-spacing-3, var(--spacing-3))}.ml.svelte-j1ywa3{margin-left:var(--onboard-spacing-4, var(--spacing-4))}@media all and (max-width: 520px){.connecting-container.svelte-j1ywa3{border-radius:var(--onboard-border-radius-4, var(--border-radius-4))}.container.svelte-j1ywa3{padding-bottom:0}.wallet-badges.svelte-j1ywa3{display:none}.connecting-wallet-info.svelte-j1ywa3{margin:0}.onboard-button-primary.svelte-j1ywa3{display:none}}")}function yo(e){let t,r,n=e[7]("connect.connectingWallet."+(e[5]?"previousConnection":"paragraph"),{default:mi.connect.connectingWallet.paragraph,values:{wallet:e[1].label}})+"";return{c(){t=Et("div"),r=xt(n),Tt(t,"class","subtext svelte-j1ywa3")},m(e,n){wt(e,t,n),gt(t,r)},p(e,t){162&t&&n!==(n=e[7]("connect.connectingWallet."+(e[5]?"previousConnection":"paragraph"),{default:mi.connect.connectingWallet.paragraph,values:{wallet:e[1].label}})+"")&&Mt(r,n)},d(e){e&&At(t)}}}function bo(e){let t,r,n,i,o=e[7]("connect.connectingWallet.rejectedCTA",{default:mi.connect.connectingWallet.rejectedCTA,values:{wallet:e[1].label}})+"";return{c(){t=Et("div"),r=xt(o),Tt(t,"class","rejected-cta pointer subtext svelte-j1ywa3")},m(o,a){wt(o,t,a),gt(t,r),n||(i=kt(t,"click",(function(){Ze(e[0])&&e[0].apply(this,arguments)})),n=!0)},p(t,n){e=t,130&n&&o!==(o=e[7]("connect.connectingWallet.rejectedCTA",{default:mi.connect.connectingWallet.rejectedCTA,values:{wallet:e[1].label}})+"")&&Mt(r,o)},d(e){e&&At(t),n=!1,i()}}}function vo(e){let t,r,n,i,o,a,s,c,u,l,d,f,h,p,g,m,y,b,v,w=e[7]("connect.connectingWallet."+(e[4]?"rejectedText":"mainText"),{default:e[4]?mi.connect.connectingWallet.rejectedText:mi.connect.connectingWallet.mainText,values:{wallet:e[1].label}})+"",A=e[7]("connect.connectingWallet.primaryButton",{default:mi.connect.connectingWallet.primaryButton})+"";function C(e,t){return e[4]?bo:yo}o=new ao({props:{size:40,padding:8,icon:e[6]&&e[6].icon||Y,border:e[4]||e[5]?"yellow":"blue",background:"lightGray"}}),c=new ao({props:{size:40,padding:8,border:e[4]||e[5]?"yellow":"blue",background:"white",icon:e[1].icon}});let E=C(e),x=E(e);return{c(){t=Et("div"),r=Et("div"),n=Et("div"),i=Et("div"),kr(o.$$.fragment),a=St(),s=Et("div"),kr(c.$$.fragment),u=St(),l=Et("div"),d=Et("div"),f=xt(w),h=St(),x.c(),p=St(),g=Et("button"),m=xt(A),Tt(s,"class","relative"),Pt(s,"right","0.5rem"),Tt(i,"class","flex justify-center relative wallet-badges svelte-j1ywa3"),Tt(d,"class","text svelte-j1ywa3"),Dt(d,"text-rejected",e[4]),Tt(l,"class","flex flex-column justify-center ml connecting-wallet-info svelte-j1ywa3"),Tt(n,"class","flex"),Tt(r,"class","connecting-container flex justify-between items-center svelte-j1ywa3"),Dt(r,"warning",e[4]||e[5]),Tt(g,"class","onboard-button-primary absolute svelte-j1ywa3"),Tt(t,"class","container flex flex-column items-center svelte-j1ywa3")},m(w,A){wt(w,t,A),gt(t,r),gt(r,n),gt(n,i),_r(o,i,null),gt(i,a),gt(i,s),_r(c,s,null),gt(n,u),gt(n,l),gt(l,d),gt(d,f),gt(l,h),x.m(l,null),gt(t,p),gt(t,g),gt(g,m),y=!0,b||(v=kt(g,"click",e[9]),b=!0)},p(e,[t]){const n={};64&t&&(n.icon=e[6]&&e[6].icon||Y),48&t&&(n.border=e[4]||e[5]?"yellow":"blue"),o.$set(n);const i={};48&t&&(i.border=e[4]||e[5]?"yellow":"blue"),2&t&&(i.icon=e[1].icon),c.$set(i),(!y||146&t)&&w!==(w=e[7]("connect.connectingWallet."+(e[4]?"rejectedText":"mainText"),{default:e[4]?mi.connect.connectingWallet.rejectedText:mi.connect.connectingWallet.mainText,values:{wallet:e[1].label}})+"")&&Mt(f,w),(!y||16&t)&&Dt(d,"text-rejected",e[4]),E===(E=C(e))&&x?x.p(e,t):(x.d(1),x=E(e),x&&(x.c(),x.m(l,null))),(!y||48&t)&&Dt(r,"warning",e[4]||e[5]),(!y||128&t)&&A!==(A=e[7]("connect.connectingWallet.primaryButton",{default:mi.connect.connectingWallet.primaryButton})+"")&&Mt(m,A)},i(e){y||(pr(o.$$.fragment,e),pr(c.$$.fragment,e),y=!0)},o(e){gr(o.$$.fragment,e),gr(c.$$.fragment,e),y=!1},d(e){e&&At(t),Tr(o),Tr(c),x.d(),b=!1,v()}}}function wo(e,t,r){let n,i;tt(e,O._,(e=>r(7,i=e)));let{connectWallet:o}=t,{selectedWallet:a}=t,{deselectWallet:s}=t,{setStep:c}=t,{connectionRejected:u}=t,{previousConnectionRequest:l}=t;const d=Ge.select("appMetadata").pipe((0,m.Z)(Ge.get().appMetadata),(0,y.t)(1));tt(e,d,(e=>r(6,n=e)));return e.$$set=e=>{"connectWallet"in e&&r(0,o=e.connectWallet),"selectedWallet"in e&&r(1,a=e.selectedWallet),"deselectWallet"in e&&r(2,s=e.deselectWallet),"setStep"in e&&r(3,c=e.setStep),"connectionRejected"in e&&r(4,u=e.connectionRejected),"previousConnectionRequest"in e&&r(5,l=e.previousConnectionRequest)},[o,a,s,c,u,l,n,i,d,()=>{s(a.label),c("selectingWallet")}]}class Ao extends jr{constructor(e){super(),Pr(this,e,wo,vo,$e,{connectWallet:0,selectedWallet:1,deselectWallet:2,setStep:3,connectionRejected:4,previousConnectionRequest:5},mo)}}function Co(e){mt(e,"svelte-1uy2ffh",".outer-container.svelte-1uy2ffh{padding:var(--onboard-spacing-4, var(--spacing-4))}.link.svelte-1uy2ffh{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px;color:var(--onboard-primary-500, var(--primary-500));text-decoration:none}")}function Eo(e,t,r){const n=e.slice();return n[3]=t[r].name,n[4]=t[r].url,n[6]=r,n}function xo(e){let t,r=e[1]("connect.selectingWallet.installWallet",{default:mi.connect.selectingWallet.installWallet,values:{app:e[0].name||"this app"}})+"";return{c(){t=xt(r)},m(e,r){wt(e,t,r)},p(e,n){3&n&&r!==(r=e[1]("connect.selectingWallet.installWallet",{default:mi.connect.selectingWallet.installWallet,values:{app:e[0].name||"this app"}})+"")&&Mt(t,r)},d(e){e&&At(t)}}}function So(e){let t,r,n,i,o=e[1]("connect.selectingWallet.recommendedWalletsPart1",{default:mi.connect.selectingWallet.recommendedWalletsPart1,values:{app:e[0].name||"This app"}})+"",a=e[1]("connect.selectingWallet.recommendedWalletsPart2",{default:mi.connect.selectingWallet.recommendedWalletsPart2})+"",s=e[0].recommendedInjectedWallets,c=[];for(let u=0;ur(1,i=e)));const o=Ge.select("appMetadata").pipe((0,m.Z)(Ge.get().appMetadata),(0,y.t)(1));return tt(e,o,(e=>r(0,n=e))),[n,i,o]}class Mo extends jr{constructor(e){super(),Pr(this,e,To,_o,$e,{},Co)}}function Po(e){mt(e,"svelte-1ct6vh0","button.svelte-1ct6vh0:disabled{opacity:0.5}button.wallet-button-styling.svelte-1ct6vh0{position:relative;align-items:flex-start;flex:1;padding:0;background:none;color:var(--onboard-wallet-button-color, inherit)}.wallet-button-container.svelte-1ct6vh0{display:flex}.wallet-button-container-inner.svelte-1ct6vh0{position:relative;display:flex;flex-flow:column;align-items:center;gap:0.5rem;padding:0.75rem;width:5rem}.name.svelte-1ct6vh0{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:1rem;text-overflow:ellipsis;max-width:5rem;max-height:2rem;overflow:hidden}.status-icon.svelte-1ct6vh0{position:absolute;top:3.5rem;left:3.5rem}@media screen and (min-width: 768px){button.wallet-button-styling.svelte-1ct6vh0{transition:background-color 250ms ease-in-out;background:var(--onboard-wallet-button-background, none);border:1px solid transparent;border-color:var(--onboard-wallet-button-border-color, var(--border-color));border-radius:var(--onboard-wallet-button-border-radius, var(--border-radius-1))}button.wallet-button-styling.svelte-1ct6vh0:hover{background:var(--onboard-wallet-button-background-hover, var(--foreground-color));color:var(--onboard-wallet-button-color-hover)}.wallet-button-container-inner.svelte-1ct6vh0{flex:1;flex-flow:row nowrap;gap:1rem;padding:1rem}button.connected.svelte-1ct6vh0{border-color:var(--onboard-success-500, var(--success-500))}.name.svelte-1ct6vh0{font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:1.25rem;text-align:initial;max-width:inherit;max-height:3rem}.status-icon.svelte-1ct6vh0{top:0;bottom:0;left:auto;right:1rem;margin:auto;height:20px}}")}function jo(e){let t,r,n;return r=new zi({props:{size:20}}),{c(){t=Et("div"),kr(r.$$.fragment),Tt(t,"class","status-icon svelte-1ct6vh0")},m(e,i){wt(e,t,i),_r(r,t,null),n=!0},i(e){n||(pr(r.$$.fragment,e),n=!0)},o(e){gr(r.$$.fragment,e),n=!1},d(e){e&&At(t),Tr(r)}}}function Do(e){let t,r,n,i,o,a,s,c,u,l,d,f;tr(e[7]),i=new ao({props:{size:e[6]>=Ce?48:56,icon:e[0],loading:e[4],border:e[3]?"green":"custom",background:"transparent"}});let h=e[3]&&jo();return{c(){t=Et("div"),r=Et("button"),n=Et("div"),kr(i.$$.fragment),o=St(),a=Et("div"),s=xt(e[1]),c=St(),h&&h.c(),Tt(a,"class","name svelte-1ct6vh0"),Tt(n,"class","wallet-button-container-inner svelte-1ct6vh0"),Tt(r,"class","wallet-button-styling svelte-1ct6vh0"),r.disabled=e[5],Dt(r,"connected",e[3]),Tt(t,"class","wallet-button-container svelte-1ct6vh0")},m(u,p){wt(u,t,p),gt(t,r),gt(r,n),_r(i,n,null),gt(n,o),gt(n,a),gt(a,s),gt(n,c),h&&h.m(n,null),l=!0,d||(f=[kt(window,"resize",e[7]),kt(r,"click",(function(){Ze(e[2])&&e[2].apply(this,arguments)}))],d=!0)},p(t,[o]){e=t;const a={};64&o&&(a.size=e[6]>=Ce?48:56),1&o&&(a.icon=e[0]),16&o&&(a.loading=e[4]),8&o&&(a.border=e[3]?"green":"custom"),i.$set(a),(!l||2&o)&&Mt(s,e[1]),e[3]?h?8&o&&pr(h,1):(h=jo(),h.c(),pr(h,1),h.m(n,null)):h&&(fr(),gr(h,1,1,(()=>{h=null})),hr()),(!l||32&o)&&(r.disabled=e[5]),(!l||8&o)&&Dt(r,"connected",e[3])},i(e){l||(pr(i.$$.fragment,e),pr(h),e&&(u||tr((()=>{u=yr(r,Ci,{}),u.start()}))),l=!0)},o(e){gr(i.$$.fragment,e),gr(h),l=!1},d(e){e&&At(t),Tr(i),h&&h.d(),d=!1,Ye(f)}}}function Oo(e,t,r){let n,{icon:i}=t,{label:o}=t,{onClick:a}=t,{connected:s}=t,{connecting:c}=t,{disabled:u}=t;return e.$$set=e=>{"icon"in e&&r(0,i=e.icon),"label"in e&&r(1,o=e.label),"onClick"in e&&r(2,a=e.onClick),"connected"in e&&r(3,s=e.connected),"connecting"in e&&r(4,c=e.connecting),"disabled"in e&&r(5,u=e.disabled)},[i,o,a,s,c,u,n,function(){r(6,n=window.innerWidth)}]}class Bo extends jr{constructor(e){super(),Pr(this,e,Oo,Do,$e,{icon:0,label:1,onClick:2,connected:3,connecting:4,disabled:5},Po)}}function No(e){mt(e,"svelte-kpc6js",".wallets-container.svelte-kpc6js{display:flex;gap:0.5rem;overflow-x:scroll;overflow-y:hidden;padding:0.75rem 0.5rem;border-bottom:1px solid var(--border-color);-ms-overflow-style:none;scrollbar-width:none}.wallets-container.svelte-kpc6js::-webkit-scrollbar{display:none}.warning-container.svelte-kpc6js{margin:1rem 1rem 0}.notice-container.svelte-kpc6js{flex:0 0 100%;margin-top:0.75rem}@media all and (min-width: 768px){.wallets-container.svelte-kpc6js{display:grid;grid-template-columns:repeat(var(--onboard-wallet-columns, 2), 1fr);padding:1rem;border:none}.notice-container.svelte-kpc6js{grid-column:span 2;margin:0}}")}function Ro(e,t,r){const n=e.slice();return n[10]=t[r],n}function Lo(e){let t,r,n;return r=new lo({props:{$$slots:{default:[Fo]},$$scope:{ctx:e}}}),{c(){t=Et("div"),kr(r.$$.fragment),Tt(t,"class","warning-container svelte-kpc6js")},m(e,i){wt(e,t,i),_r(r,t,null),n=!0},p(e,t){const n={};8200&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n)},i(e){n||(pr(r.$$.fragment,e),n=!0)},o(e){gr(r.$$.fragment,e),n=!1},d(e){e&&At(t),Tr(r)}}}function Fo(e){let t,r;return{c(){t=new Ot(!1),r=It(),t.a=r},m(n,i){t.m(e[3],n,i),wt(n,r,i)},p(e,r){8&r&&t.p(e[3])},d(e){e&&At(r),e&&t.d()}}}function Uo(e){let t,r;function n(){return e[9](e[10])}return t=new Bo({props:{connected:e[7](e[10].label),connecting:e[2]===e[10].label,label:e[10].label,icon:e[10].icon,onClick:n,disabled:e[4]<=Ce&&e[2]&&e[2]!==e[10].label}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(r,i){e=r;const o={};1&i&&(o.connected=e[7](e[10].label)),5&i&&(o.connecting=e[2]===e[10].label),1&i&&(o.label=e[10].label),1&i&&(o.icon=e[10].icon),3&i&&(o.onClick=n),21&i&&(o.disabled=e[4]<=Ce&&e[2]&&e[2]!==e[10].label),t.$set(o)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function zo(e){let t,r,n,i,o,a=e[5]("connect.selectingWallet.whyDontISeeMyWallet",{default:mi.connect.selectingWallet.whyDontISeeMyWallet})+"",s=e[5]("connect.selectingWallet.learnMore",{default:mi.connect.selectingWallet.learnMore})+"";return{c(){t=Et("div"),r=xt(a),n=St(),i=Et("a"),o=xt(s),Tt(i,"class","link pointer"),Tt(i,"href",e[6].wheresMyWalletLink||Vo),Tt(i,"target","_blank"),Tt(i,"rel","noreferrer noopener")},m(e,a){wt(e,t,a),gt(t,r),wt(e,n,a),wt(e,i,a),gt(i,o)},p(e,t){32&t&&a!==(a=e[5]("connect.selectingWallet.whyDontISeeMyWallet",{default:mi.connect.selectingWallet.whyDontISeeMyWallet})+"")&&Mt(r,a),32&t&&s!==(s=e[5]("connect.selectingWallet.learnMore",{default:mi.connect.selectingWallet.learnMore})+"")&&Mt(o,s)},d(e){e&&At(t),e&&At(n),e&&At(i)}}}function Ho(e){let t,r,n,i,o,a,s;tr(e[8]);let c=e[3]&&Lo(e),u=e[0],l=[];for(let h=0;hgr(l[e],1,1,(()=>{l[e]=null}));let f=!e[6].removeWhereIsMyWalletWarning&&function(e){let t,r,n;return r=new lo({props:{$$slots:{default:[zo]},$$scope:{ctx:e}}}),{c(){t=Et("div"),kr(r.$$.fragment),Tt(t,"class","notice-container svelte-kpc6js")},m(e,i){wt(e,t,i),_r(r,t,null),n=!0},p(e,t){const n={};8224&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n)},i(e){n||(pr(r.$$.fragment,e),n=!0)},o(e){gr(r.$$.fragment,e),n=!1},d(e){e&&At(t),Tr(r)}}}(e);return{c(){t=Et("div"),c&&c.c(),r=St(),n=Et("div");for(let e=0;e{c=null})),hr()),151&o){let t;for(u=e[0],t=0;tr(5,n=e)));let i,{wallets:o}=t,{selectWallet:a}=t,{connectingWalletLabel:s}=t,{connectingErrorMessage:c}=t;const{connect:u}=Ge.get();return e.$$set=e=>{"wallets"in e&&r(0,o=e.wallets),"selectWallet"in e&&r(1,a=e.selectWallet),"connectingWalletLabel"in e&&r(2,s=e.connectingWalletLabel),"connectingErrorMessage"in e&&r(3,c=e.connectingErrorMessage)},[o,a,s,c,i,n,u,function(e){const{wallets:t}=Ge.get();return!!t.find((t=>t.label===e))},function(){r(4,i=window.innerWidth)},e=>a(e)]}class Go extends jr{constructor(e){super(),Pr(this,e,Ko,Ho,$e,{wallets:0,selectWallet:1,connectingWalletLabel:2,connectingErrorMessage:3},No)}}function qo(e){mt(e,"svelte-obaru3",".sidebar.svelte-obaru3{--background-color:var(\n --onboard-connect-sidebar-background,\n var(--w3o-foreground-color, none)\n );--text-color:var(--onboard-connect-sidebar-color, inherit);--border-color:var(--onboard-connect-sidebar-border-color, inherit);display:flex;flex-flow:column;gap:1rem;padding:1rem;align-items:center}.inner-container.svelte-obaru3{display:flex;flex-flow:column;align-items:center;align-self:stretch;gap:0.5rem;padding:1.5rem;text-align:center;border:1px solid transparent;border-radius:12px;border-color:var(--border-color);background:var(--background-color);color:var(--text-color)}.icon-container.svelte-obaru3{display:flex;height:3.5rem;width:auto;min-width:3.5rem;max-width:100%}.heading.svelte-obaru3{font-size:var(--onboard-font-size-3, var(--font-size-3));margin:0 0 var(--onboard-spacing-5, var(--spacing-5)) 0}.subheading.svelte-obaru3{line-height:1rem}.description.svelte-obaru3{line-height:1.25rem;font-size:var(--onboard-font-size-6, var(--font-size-6))}img.svelte-obaru3{max-width:100%;height:auto}.indicators.svelte-obaru3{margin-top:auto}.indicator.svelte-obaru3{box-sizing:content-box;width:8px;height:8px;border-radius:8px;background:var(\n --onboard-connect-sidebar-progress-background,\n var(--onboard-gray-700, var(--gray-700))\n );transition:background 250ms ease-in-out}.indicator.on.svelte-obaru3{background:var(\n --onboard-connect-sidebar-progress-color,\n var(--action-color)\n );border:2px solid\n var(\n --onboard-connect-sidebar-progress-background,\n var(--onboard-gray-700, var(--gray-700))\n )}.join.svelte-obaru3{box-sizing:content-box;z-index:1;right:4px;height:2px;background:var(\n --onboard-connect-sidebar-progress-background,\n var(--onboard-gray-700, var(--gray-700))\n );transition:background 250ms ease-in-out}.join.active.svelte-obaru3{background:var(\n --onboard-connect-sidebar-progress-color,\n var(--action-color)\n )}.no-link.svelte-obaru3{display:flex;flex-direction:row;align-items:center;padding:0.25rem 0.5rem 0.25rem 0.75rem;gap:0.25rem;font-size:var(--onboard-font-size-6, var(--font-size-6))}.info-icon.svelte-obaru3{width:1.25rem;display:flex;align-items:center}@media all and (min-width: 768px){.sidebar.svelte-obaru3{max-width:280px;border-right:1px solid;border-color:var(--border-color);background:var(--background-color)}.inner-container.svelte-obaru3{border:none;text-align:initial;flex:1;align-items:flex-start;gap:1rem}.indicators.svelte-obaru3{margin-bottom:0.25rem}}")}function Qo(e){let t,r,n,i=e[3](`connect.${e[0]}.sidebar.header`,{default:""});function o(e,t){return e[2]&&(e[2].logo||e[2].icon)?Jo:Wo}let a=o(e),s=a(e),c=i&&$o(e);return{c(){t=Et("div"),s.c(),r=St(),c&&c.c(),n=It(),Tt(t,"class","icon-container svelte-obaru3")},m(e,i){wt(e,t,i),s.m(t,null),wt(e,r,i),c&&c.m(e,i),wt(e,n,i)},p(e,r){a===(a=o(e))&&s?s.p(e,r):(s.d(1),s=a(e),s&&(s.c(),s.m(t,null))),9&r&&(i=e[3](`connect.${e[0]}.sidebar.header`,{default:""})),i?c?c.p(e,r):(c=$o(e),c.c(),c.m(n.parentNode,n)):c&&(c.d(1),c=null)},d(e){e&&At(t),s.d(),e&&At(r),c&&c.d(e),e&&At(n)}}}function Wo(e){let t,r;return{c(){t=new Ot(!1),r=It(),t.a=r},m(e,n){t.m(V,e,n),wt(e,r,n)},p:qe,d(e){e&&At(r),e&&t.d()}}}function Jo(e){let t,r;function n(e,r){return 4&r&&(t=null),null==t&&(t=!!ee(e[2].logo||e[2].icon)),t?Zo:Yo}let i=n(e,-1),o=i(e);return{c(){o.c(),r=It()},m(e,t){o.m(e,t),wt(e,r,t)},p(e,t){i===(i=n(e,t))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},d(e){o.d(e),e&&At(r)}}}function Yo(e){let t,r;return{c(){t=Et("img"),et(t.src,r=e[2].logo||e[2].icon)||Tt(t,"src",r),Tt(t,"alt","logo"),Tt(t,"class","svelte-obaru3")},m(e,r){wt(e,t,r)},p(e,n){4&n&&!et(t.src,r=e[2].logo||e[2].icon)&&Tt(t,"src",r)},d(e){e&&At(t)}}}function Zo(e){let t,r,n=(e[2].logo||e[2].icon)+"";return{c(){t=new Ot(!1),r=xt("\u200b"),t.a=r},m(e,i){t.m(n,e,i),wt(e,r,i)},p(e,r){4&r&&n!==(n=(e[2].logo||e[2].icon)+"")&&t.p(n)},d(e){e&&t.d(),e&&At(r)}}}function $o(e){let t,r,n=e[3](`connect.${e[0]}.sidebar.header`,{default:e[7]})+"";return{c(){t=Et("div"),r=xt(n),Tt(t,"class","heading svelte-obaru3")},m(e,n){wt(e,t,n),gt(t,r)},p(e,t){9&t&&n!==(n=e[3](`connect.${e[0]}.sidebar.header`,{default:e[7]})+"")&&Mt(r,n)},d(e){e&&At(t)}}}function Xo(e){let t,r,n,i,o,a,s,c,u,l,d,f;return{c(){t=Et("div"),r=Et("div"),n=St(),i=Et("div"),a=St(),s=Et("div"),c=St(),u=Et("div"),d=St(),f=Et("div"),Tt(r,"class","indicator relative svelte-obaru3"),Dt(r,"on",!0),Tt(i,"class","join relative svelte-obaru3"),Tt(i,"style",o=""+("selectingWallet"!==e[0]?"right: 4px; width: 52px;":"right: 2px; width: 54px;")),Dt(i,"active","selectingWallet"!==e[0]),Tt(s,"class","indicator relative svelte-obaru3"),Tt(s,"style","right: 8px;"),Dt(s,"on","selectingWallet"!==e[0]),Tt(u,"class","join relative svelte-obaru3"),Tt(u,"style",l=""+("connectedWallet"===e[0]?"right: 12px; width: 52px;":"right: 10px; width: 54px;")),Dt(u,"active","connectedWallet"===e[0]),Tt(f,"style","right: 16px;"),Tt(f,"class","indicator relative svelte-obaru3"),Dt(f,"on","connectedWallet"===e[0]),Tt(t,"class","indicators flex items-center svelte-obaru3")},m(e,o){wt(e,t,o),gt(t,r),gt(t,n),gt(t,i),gt(t,a),gt(t,s),gt(t,c),gt(t,u),gt(t,d),gt(t,f)},p(e,t){1&t&&o!==(o=""+("selectingWallet"!==e[0]?"right: 4px; width: 52px;":"right: 2px; width: 54px;"))&&Tt(i,"style",o),1&t&&Dt(i,"active","selectingWallet"!==e[0]),1&t&&Dt(s,"on","selectingWallet"!==e[0]),1&t&&l!==(l=""+("connectedWallet"===e[0]?"right: 12px; width: 52px;":"right: 10px; width: 54px;"))&&Tt(u,"style",l),1&t&&Dt(u,"active","connectedWallet"===e[0]),1&t&&Dt(f,"on","connectedWallet"===e[0])},d(e){e&&At(t)}}}function ea(e){let t,r,n,i,o,a,s,c,u,l,d,f;return{c(){t=Et("div"),r=Et("div"),n=St(),i=Et("div"),a=St(),s=Et("div"),c=St(),u=Et("div"),d=St(),f=Et("div"),Tt(r,"class","indicator relative svelte-obaru3"),Dt(r,"on",!0),Tt(i,"class","join relative svelte-obaru3"),Tt(i,"style",o="right: 2px; "+("selectingWallet"!==e[0]?"width: 78px;":"width: 82px;")),Dt(i,"active","selectingWallet"!==e[0]),Tt(s,"class","indicator relative svelte-obaru3"),Tt(s,"style","right: 4px;"),Dt(s,"on","selectingWallet"!==e[0]),Tt(u,"class","join relative svelte-obaru3"),Tt(u,"style",l="right: 6px; "+("connectedWallet"===e[0]?"width: 74px;":"width: 81px;")),Dt(u,"active","connectedWallet"===e[0]),Tt(f,"style","right: 8px;"),Tt(f,"class","indicator relative svelte-obaru3"),Dt(f,"on","connectedWallet"===e[0]),Tt(t,"class","indicators flex items-center svelte-obaru3")},m(e,o){wt(e,t,o),gt(t,r),gt(t,n),gt(t,i),gt(t,a),gt(t,s),gt(t,c),gt(t,u),gt(t,d),gt(t,f)},p(e,t){1&t&&o!==(o="right: 2px; "+("selectingWallet"!==e[0]?"width: 78px;":"width: 82px;"))&&Tt(i,"style",o),1&t&&Dt(i,"active","selectingWallet"!==e[0]),1&t&&Dt(s,"on","selectingWallet"!==e[0]),1&t&&l!==(l="right: 6px; "+("connectedWallet"===e[0]?"width: 74px;":"width: 81px;"))&&Tt(u,"style",l),1&t&&Dt(u,"active","connectedWallet"===e[0]),1&t&&Dt(f,"on","connectedWallet"===e[0])},d(e){e&&At(t)}}}function ta(e){let t,r,n,i,o,a,s,c,u,l,d,f,h,p,g,m=e[3](`connect.${e[0]}.sidebar.subheading`,{default:e[5]})+"",y=e[3](`connect.${e[0]}.sidebar.paragraph`,{values:{app:e[2]&&e[2].name||"This App"},default:e[6]})+"";tr(e[9]);let b=e[1]>=Ce&&Qo(e),v=!e[4].removeIDontHaveAWalletInfoLink&&function(e){let t,r,n,i,o=e[3]("connect.selectingWallet.sidebar.IDontHaveAWallet",{default:mi.connect.selectingWallet.sidebar.IDontHaveAWallet})+"";return{c(){t=Et("a"),r=xt(o),n=St(),i=Et("div"),Tt(i,"class","info-icon svelte-obaru3"),Tt(t,"href",e[4].iDontHaveAWalletLink||"https://ethereum.org/en/wallets/find-wallet/#main-content"),Tt(t,"target","_blank"),Tt(t,"rel","noreferrer noopener"),Tt(t,"class","no-link svelte-obaru3")},m(e,o){wt(e,t,o),gt(t,r),gt(t,n),gt(t,i),i.innerHTML=Z},p(e,t){8&t&&o!==(o=e[3]("connect.selectingWallet.sidebar.IDontHaveAWallet",{default:mi.connect.selectingWallet.sidebar.IDontHaveAWallet})+"")&&Mt(r,o)},d(e){e&&At(t)}}}(e),w=e[1]=Ce&&ea(e);return{c(){t=Et("div"),r=Et("div"),b&&b.c(),n=St(),i=Et("div"),o=xt(m),a=St(),s=Et("div"),c=xt(y),u=St(),v&&v.c(),l=St(),w&&w.c(),d=St(),A&&A.c(),f=St(),h=Et("div"),Tt(i,"class","subheading svelte-obaru3"),Tt(s,"class","description svelte-obaru3"),Tt(r,"class","inner-container svelte-obaru3"),Tt(t,"class","sidebar svelte-obaru3")},m(m,y){wt(m,t,y),gt(t,r),b&&b.m(r,null),gt(r,n),gt(r,i),gt(i,o),gt(r,a),gt(r,s),gt(s,c),gt(r,u),v&&v.m(r,null),gt(r,l),w&&w.m(r,null),gt(t,d),A&&A.m(t,null),gt(t,f),gt(t,h),h.innerHTML=K,p||(g=kt(window,"resize",e[9]),p=!0)},p(e,[i]){e[1]>=Ce?b?b.p(e,i):(b=Qo(e),b.c(),b.m(r,n)):b&&(b.d(1),b=null),9&i&&m!==(m=e[3](`connect.${e[0]}.sidebar.subheading`,{default:e[5]})+"")&&Mt(o,m),13&i&&y!==(y=e[3](`connect.${e[0]}.sidebar.paragraph`,{values:{app:e[2]&&e[2].name||"This App"},default:e[6]})+"")&&Mt(c,y),e[4].removeIDontHaveAWalletInfoLink||v.p(e,i),e[1]=Ce?A?A.p(e,i):(A=ea(e),A.c(),A.m(t,f)):A&&(A.d(1),A=null)},i:qe,o:qe,d(e){e&&At(t),b&&b.d(),v&&v.d(),w&&w.d(),A&&A.d(),p=!1,g()}}}function ra(e,t,r){let n,i;tt(e,O._,(e=>r(3,i=e)));let{step:o}=t;const{connect:a}=Ge.get(),s=mi.connect[o].sidebar,{subheading:c,paragraph:u}=s,{heading:l}=s;let d;const f=Ge.select("appMetadata").pipe((0,m.Z)(Ge.get().appMetadata),(0,y.t)(1));return tt(e,f,(e=>r(2,n=e))),e.$$set=e=>{"step"in e&&r(0,o=e.step)},[o,d,n,i,a,c,u,l,f,function(){r(1,d=window.innerWidth)}]}class na extends jr{constructor(e){super(),Pr(this,e,ra,ta,$e,{step:0},qo)}}function ia(e){mt(e,"svelte-1qwmck3",".container.svelte-1qwmck3{--background-color:var(\n --onboard-main-scroll-container-background,\n var(--w3o-background-color)\n );--foreground-color:var(--w3o-foreground-color);--text-color:var(--onboard-connect-text-color, var(--w3o-text-color));--border-color:var(--w3o-border-color, var(--gray-200));--action-color:var(--w3o-action-color, var(--primary-500));font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, 1rem);background:var(--background-color);color:var(--text-color);border-color:var(--border-color);line-height:24px;overflow:hidden;position:relative;display:flex;height:min-content;flex-flow:column-reverse}.content.svelte-1qwmck3{width:var(--onboard-connect-content-width, 100%)}.header.svelte-1qwmck3{display:flex;padding:1rem;border-bottom:1px solid transparent;background:var(--onboard-connect-header-background);color:var(--onboard-connect-header-color);border-color:var(--border-color)}.header-heading.svelte-1qwmck3{line-height:1rem}.button-container.svelte-1qwmck3{right:0.5rem;top:0.5rem}.mobile-header.svelte-1qwmck3{display:flex;gap:0.5rem;height:4.5rem;padding:1rem;border-bottom:1px solid;border-color:var(--border-color)}.mobile-subheader.svelte-1qwmck3{opacity:0.6;font-size:0.875rem;font-weight:400;line-height:1rem;margin-top:0.25rem}.icon-container.svelte-1qwmck3{display:flex;flex:0 0 auto;height:2.5rem;width:2.5rem;min-width:2.5rem;justify-content:center;align-items:center}.disabled.svelte-1qwmck3{opacity:0.2;pointer-events:none;overflow:hidden}.icon-container svg{display:block;height:100%;width:auto}.w-full.svelte-1qwmck3{width:100%}.scroll-container.svelte-1qwmck3{overflow-y:auto;transition:opacity 250ms ease-in-out;scrollbar-width:none}.scroll-container.svelte-1qwmck3::-webkit-scrollbar{display:none}@media all and (min-width: 768px){.container.svelte-1qwmck3{margin:0;flex-flow:row;height:var(--onboard-connect-content-height, 440px)}.content.svelte-1qwmck3{width:var(--onboard-connect-content-width, 488px)}.mobile-subheader.svelte-1qwmck3{display:none}.icon-container.svelte-1qwmck3{display:none}}")}function oa(e){let t,r;return t=new _i({props:{close:!e[16].disableClose&&e[20],$$slots:{default:[ya]},$$scope:{ctx:e}}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,r){const n={};32766&r[0]|32&r[1]&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function aa(e){let t,r,n,i,o,a=e[14](`connect.${e[5]}.header`,{default:mi.connect[e[5]].header,values:{connectionRejected:e[1],wallet:e[3]&&e[3].label}})+"",s="selectingWallet"===e[5]?`(${e[12]})`:"";return{c(){t=Et("div"),r=Et("div"),n=xt(a),i=St(),o=xt(s),Tt(r,"class","header-heading svelte-1qwmck3"),Tt(t,"class","header relative flex items-center svelte-1qwmck3")},m(e,a){wt(e,t,a),gt(t,r),gt(r,n),gt(r,i),gt(r,o)},p(e,t){16426&t[0]&&a!==(a=e[14](`connect.${e[5]}.header`,{default:mi.connect[e[5]].header,values:{connectionRejected:e[1],wallet:e[3]&&e[3].label}})+"")&&Mt(n,a),4128&t[0]&&s!==(s="selectingWallet"===e[5]?`(${e[12]})`:"")&&Mt(o,s)},d(e){e&&At(t)}}}function sa(e){let t,r,n,i,o,a,s,c,u,l=e[14]("connectingWallet"===e[5]&&e[3]?`connect.${e[5]}.header`:`connect.${e[5]}.sidebar.subheading`,{default:"connectingWallet"===e[5]&&e[3]?mi.connect[e[5]].header:mi.connect[e[5]].sidebar.subheading,values:{connectionRejected:e[1],wallet:e[3]&&e[3].label}})+"",d="selectingWallet"===e[5]?`${e[12]} available wallets`:"1 account selected";function f(e,t){return e[13]&&e[13].icon?ua:ca}let h=f(e),p=h(e);return{c(){t=Et("div"),r=Et("div"),p.c(),n=St(),i=Et("div"),o=Et("div"),a=xt(l),s=St(),c=Et("div"),u=xt(d),Tt(r,"class","icon-container svelte-1qwmck3"),Tt(o,"class","header-heading svelte-1qwmck3"),Tt(c,"class","mobile-subheader svelte-1qwmck3"),Tt(i,"class","flex flex-column justify-center w-full svelte-1qwmck3"),Tt(t,"class","mobile-header svelte-1qwmck3")},m(e,l){wt(e,t,l),gt(t,r),p.m(r,null),gt(t,n),gt(t,i),gt(i,o),gt(o,a),gt(i,s),gt(i,c),gt(c,u)},p(e,t){h===(h=f(e))&&p?p.p(e,t):(p.d(1),p=h(e),p&&(p.c(),p.m(r,null))),16426&t[0]&&l!==(l=e[14]("connectingWallet"===e[5]&&e[3]?`connect.${e[5]}.header`:`connect.${e[5]}.sidebar.subheading`,{default:"connectingWallet"===e[5]&&e[3]?mi.connect[e[5]].header:mi.connect[e[5]].sidebar.subheading,values:{connectionRejected:e[1],wallet:e[3]&&e[3].label}})+"")&&Mt(a,l),4128&t[0]&&d!==(d="selectingWallet"===e[5]?`${e[12]} available wallets`:"1 account selected")&&Mt(u,d)},d(e){e&&At(t),p.d()}}}function ca(e){let t,r;return{c(){t=new Ot(!1),r=It(),t.a=r},m(e,n){t.m(V,e,n),wt(e,r,n)},p:qe,d(e){e&&At(r),e&&t.d()}}}function ua(e){let t,r;function n(e,r){return 8192&r[0]&&(t=null),null==t&&(t=!!ee(e[13].icon)),t?da:la}let i=n(e,[-1,-1]),o=i(e);return{c(){o.c(),r=It()},m(e,t){o.m(e,t),wt(e,r,t)},p(e,t){i===(i=n(e,t))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},d(e){o.d(e),e&&At(r)}}}function la(e){let t,r;return{c(){t=Et("img"),et(t.src,r=e[13].icon)||Tt(t,"src",r),Tt(t,"alt","logo")},m(e,r){wt(e,t,r)},p(e,n){8192&n[0]&&!et(t.src,r=e[13].icon)&&Tt(t,"src",r)},d(e){e&&At(t)}}}function da(e){let t,r,n=e[13].icon+"";return{c(){t=new Ot(!1),r=It(),t.a=r},m(e,i){t.m(n,e,i),wt(e,r,i)},p(e,r){8192&r[0]&&n!==(n=e[13].icon+"")&&t.p(n)},d(e){e&&At(r),e&&t.d()}}}function fa(e){let t,r,n,i;const o=[pa,ha],a=[];function s(e,t){return e[2].length?0:1}return t=s(e),r=a[t]=o[t](e),{c(){r.c(),n=It()},m(e,r){a[t].m(e,r),wt(e,n,r),i=!0},p(e,i){let c=t;t=s(e),t===c?a[t].p(e,i):(fr(),gr(a[c],1,1,(()=>{a[c]=null})),hr(),r=a[t],r?r.p(e,i):(r=a[t]=o[t](e),r.c()),pr(r,1),r.m(n.parentNode,n))},i(e){i||(pr(r),i=!0)},o(e){gr(r),i=!1},d(e){a[t].d(e),e&&At(n)}}}function ha(e){let t,r;return t=new Mo({}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p:qe,i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function pa(e){let t,r,n,i,o,a;function s(t){e[24](t)}let c={};return void 0!==e[7]&&(c.agreed=e[7]),t=new Di({props:c}),Yt.push((()=>Ir(t,"agreed",s))),o=new Go({props:{selectWallet:e[18],wallets:e[2],connectingWalletLabel:e[8],connectingErrorMessage:e[9]}}),{c(){kr(t.$$.fragment),n=St(),i=Et("div"),kr(o.$$.fragment),Tt(i,"class","svelte-1qwmck3"),Dt(i,"disabled",!e[7])},m(e,r){_r(t,e,r),wt(e,n,r),wt(e,i,r),_r(o,i,null),a=!0},p(e,n){const s={};!r&&128&n[0]&&(r=!0,s.agreed=e[7],rr((()=>r=!1))),t.$set(s);const c={};4&n[0]&&(c.wallets=e[2]),256&n[0]&&(c.connectingWalletLabel=e[8]),512&n[0]&&(c.connectingErrorMessage=e[9]),o.$set(c),(!a||128&n[0])&&Dt(i,"disabled",!e[7])},i(e){a||(pr(t.$$.fragment,e),pr(o.$$.fragment,e),a=!0)},o(e){gr(t.$$.fragment,e),gr(o.$$.fragment,e),a=!1},d(e){Tr(t,e),e&&At(n),e&&At(i),Tr(o)}}}function ga(e){let t,r;return t=new Ao({props:{connectWallet:e[21],connectionRejected:e[1],previousConnectionRequest:e[6],setStep:e[22],deselectWallet:e[19],selectedWallet:e[3]}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,r){const n={};2&r[0]&&(n.connectionRejected=e[1]),64&r[0]&&(n.previousConnectionRequest=e[6]),8&r[0]&&(n.selectedWallet=e[3]),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function ma(e){let t,r;return t=new go({props:{selectedWallet:e[3]}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,r){const n={};8&r[0]&&(n.selectedWallet=e[3]),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function ya(e){let t,r,n,i,o,a,s,c,u,l=e[16].showSidebar&&function(e){let t,r;return t=new na({props:{step:e[5]}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,r){const n={};32&r[0]&&(n.step=e[5]),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}(e);function d(e,t){return e[4]<=Ce?sa:aa}let f=d(e),h=f(e),p=!e[16].disableClose&&function(e){let t,r,n,i,o;return r=new vi({}),{c(){t=Et("div"),kr(r.$$.fragment),Tt(t,"class","button-container absolute svelte-1qwmck3")},m(a,s){wt(a,t,s),_r(r,t,null),n=!0,i||(o=kt(t,"click",e[20]),i=!0)},p:qe,i(e){n||(pr(r.$$.fragment,e),n=!0)},o(e){gr(r.$$.fragment,e),n=!1},d(e){e&&At(t),Tr(r),i=!1,o()}}}(e),g=("selectingWallet"===e[5]||e[4]<=Ce)&&fa(e),m=e[11]&&ga(e),y="connectedWallet"===e[5]&&e[3]&&e[4]>=Ce&&ma(e);return{c(){t=Et("div"),l&&l.c(),r=St(),n=Et("div"),h.c(),i=St(),p&&p.c(),o=St(),a=Et("div"),g&&g.c(),s=St(),m&&m.c(),c=St(),y&&y.c(),Tt(a,"class","scroll-container svelte-1qwmck3"),Tt(n,"class","content flex flex-column svelte-1qwmck3"),Tt(t,"class","container svelte-1qwmck3")},m(d,f){wt(d,t,f),l&&l.m(t,null),gt(t,r),gt(t,n),h.m(n,null),gt(n,i),p&&p.m(n,null),gt(n,o),gt(n,a),g&&g.m(a,null),gt(a,s),m&&m.m(a,null),gt(a,c),y&&y.m(a,null),e[25](a),u=!0},p(e,t){e[16].showSidebar&&l.p(e,t),f===(f=d(e))&&h?h.p(e,t):(h.d(1),h=f(e),h&&(h.c(),h.m(n,i))),e[16].disableClose||p.p(e,t),"selectingWallet"===e[5]||e[4]<=Ce?g?(g.p(e,t),48&t[0]&&pr(g,1)):(g=fa(e),g.c(),pr(g,1),g.m(a,s)):g&&(fr(),gr(g,1,1,(()=>{g=null})),hr()),e[11]?m?(m.p(e,t),2048&t[0]&&pr(m,1)):(m=ga(e),m.c(),pr(m,1),m.m(a,c)):m&&(fr(),gr(m,1,1,(()=>{m=null})),hr()),"connectedWallet"===e[5]&&e[3]&&e[4]>=Ce?y?(y.p(e,t),56&t[0]&&pr(y,1)):(y=ma(e),y.c(),pr(y,1),y.m(a,null)):y&&(fr(),gr(y,1,1,(()=>{y=null})),hr())},i(e){u||(pr(l),pr(p),pr(g),pr(m),pr(y),u=!0)},o(e){gr(l),gr(p),gr(g),gr(m),gr(y),u=!1},d(r){r&&At(t),l&&l.d(),h.d(),p&&p.d(),g&&g.d(),m&&m.d(),y&&y.d(),e[25](null)}}}function ba(e){let t,r,n,i;tr(e[23]);let o=!e[0].disableModals&&oa(e);return{c(){o&&o.c(),t=It()},m(a,s){o&&o.m(a,s),wt(a,t,s),r=!0,n||(i=kt(window,"resize",e[23]),n=!0)},p(e,r){e[0].disableModals?o&&(fr(),gr(o,1,1,(()=>{o=null})),hr()):o?(o.p(e,r),1&r[0]&&pr(o,1)):(o=oa(e),o.c(),pr(o,1),o.m(t.parentNode,t))},i(e){r||(pr(o),r=!0)},o(e){gr(o),r=!1},d(e){o&&o.d(e),e&&At(t),n=!1,i()}}}function va(e,t,r){let o,a,s,c,l;tt(e,O._,(e=>r(14,l=e)));let{autoSelect:d}=t;const h=Ge.select("appMetadata").pipe((0,m.Z)(Ge.get().appMetadata),(0,y.t)(1));tt(e,h,(e=>r(13,s=e)));const{walletModules:p,connect:g,chains:w}=Ge.get(),E=new i.B,{unstoppableResolution:x,wagmi:S}=be;let I,k,_,T,M,P,j=!1,D=!1,B=[];const R=new n.t("selectingWallet");async function L({label:e,icon:t,getInterface:n}){r(8,_=e);try{const i=Ge.get().wallets.find((t=>t.label===e));if(i)return Rn(i),setTimeout((()=>U("connectedWallet")),1),void r(3,I=i);const{chains:o}=Ge.get(),{provider:a,instance:c}=await n({chains:o,EventEmitter:z,appMetadata:s}),u=await t;r(3,I={label:e,icon:u,provider:a,instance:c,accounts:[],chains:[{namespace:"evm",id:"0x1"}]}),r(9,T=""),H(),setTimeout((()=>U("connectingWallet")),1)}catch(i){const{message:e}=i;r(9,T=e),r(8,_=""),H()}}async function F(){r(1,j=!1);const{provider:e,label:t}=I;E.next();try{let i,o;if(S){const{buildWagmiConfig:r,wagmiConnect:n,getWagmiConnector:a}=S,s=await r(w,{label:t,provider:e});Jn(s),o=a(t);const c=await Promise.race([n(s,{connector:o}),f(E.pipe(A([])))]);if(!c||!("accounts"in c))return;const[u]=c.accounts;i=u}else{const[t]=await Promise.race([ti(e),f(E.pipe(A([])))]);if(!t)return;i=t}if(Ge.get().connect.autoConnectLastWallet||Ge.get().connect.autoConnectAllPreviousWallet){let e=ge(Ae.LAST_CONNECTED_WALLET);try{let r=JSON.parse(e);if(r&&Array.isArray(r)){e=[...new Set([t,...r])]}}catch(n){if(!(n instanceof SyntaxError&&e&&"string"==typeof e))throw new Error(n);e=[e]}e||(e=[t]),me(Ae.LAST_CONNECTED_WALLET,JSON.stringify(e))}const a={accounts:[{address:i,ens:null,uns:null,balance:null}],chains:[{namespace:"evm",id:await ni(e)}],wagmiConnector:o};Rn(Object.assign(Object.assign({},I),a)),oi(e,t),function(e){r(3,I=Object.assign(Object.assign({},I),e))}(a),U("connectedWallet"),H()}catch(i){const{code:e}=i;if(H(),e===N.ProviderRpcErrorCode.ACCOUNT_ACCESS_REJECTED)return r(1,j=!0),void(d.disableModals?Br.next({inProgress:!1}):d.label&&r(0,d.label="",d));if(e===N.ProviderRpcErrorCode.ACCOUNT_ACCESS_ALREADY_REQUESTED)return r(6,D=!0),d.disableModals?void Br.next({inProgress:!1}):void ii({provider:I.provider,disconnected$:Br.pipe((0,v.p)((({inProgress:e})=>!e)),A(""))}).pipe((0,C.s)(1)).subscribe((([e])=>{e&&F()}))}}function U(e){E.next(),R.next(e)}function H(){P&&P.scrollTo(0,0)}return tt(e,R,(e=>r(5,c=e))),Br.pipe((0,b.F)(((e,t)=>e.autoSelect&&t.autoSelect&&e.autoSelect.disableModals===t.autoSelect.disableModals)),(0,v.p)((({autoSelect:e})=>e&&!1===e.disableModals)),(0,u.Q)(Ur)).subscribe((()=>{I&&F()})),R.pipe((0,u.Q)(Ur)).subscribe((e=>{switch(e){case"selectingWallet":if(d.label){const e=p.find((({label:e})=>e.toLowerCase()===d.label.toLowerCase()));e?async function(e){const{getIcon:t,getInterface:r,label:n}=e;L({label:n,icon:t(),getInterface:r})}(e):d.disableModals&&Br.next({inProgress:!1})}else r(8,_=""),async function(){r(2,B=p.map((({getIcon:e,getInterface:t,label:r})=>({label:r,icon:e(),getInterface:t}))))}();break;case"connectingWallet":F();break;case"connectedWallet":r(8,_=""),async function(){const{accounts:e,chains:t}=I,r=Ge.get().chains,[n]=t,i=r.find((({namespace:e,id:t})=>e===n.namespace&&t===n.id)),{address:o}=e[0];let{balance:a,ens:s,uns:c,secondaryTokens:u}=e[0];if(null===a&&ci(o,i).then((e=>{Un(I.label,o,{balance:e})})),i&&!u&&Array.isArray(i.secondaryTokens)&&i.secondaryTokens.length&&$n(o,i).then((e=>{Un(I.label,o,{secondaryTokens:e})})),null===s&&se(n.id)){const e=w.find((({id:e})=>e===se(n.id)));ai(o,e).then((e=>{Un(I.label,o,{ens:e})}))}null===c&&x&&si(o,i).then((e=>{Un(I.label,o,{uns:e})})),setTimeout((()=>Br.next({inProgress:!1})),1500)}()}})),e.$$set=e=>{"autoSelect"in e&&r(0,d=e.autoSelect)},e.$$.update=()=>{4&e.$$.dirty[0]&&r(12,o=B.length-Ge.get().wallets.length),58&e.$$.dirty[0]&&r(11,a="connectingWallet"===c&&I&&M>=Ce||M<=Ce&&j&&"connectingWallet"===c&&I)},[d,j,B,I,M,c,D,k,_,T,P,a,o,s,l,h,g,R,L,function(){r(3,I=null)},function(){Br.next({inProgress:!1})},F,U,function(){r(4,M=window.innerWidth)},function(e){k=e,r(7,k)},function(e){Yt[e?"unshift":"push"]((()=>{P=e,r(10,P)}))}]}class wa extends jr{constructor(e){super(),Pr(this,e,va,ba,$e,{autoSelect:0},ia,[-1,-1])}}function Aa(e){mt(e,"svelte-12yam41",".container.svelte-12yam41{padding:var(--onboard-spacing-4, var(--spacing-4));font-family:var(--onboard-font-family-normal, var(--font-family-normal));line-height:16px;font-size:var(--onboard-font-size-5, var(--font-size-5))}.close.svelte-12yam41{top:var(--onboard-spacing-5, var(--spacing-5));right:var(--onboard-spacing-5, var(--spacing-5));padding:0.5rem}h4.svelte-12yam41{font-size:var(--onboard-font-size-3, var(--font-size-3));margin:var(--onboard-spacing-4, var(--spacing-4)) 0}p.svelte-12yam41{margin:0 0 var(--onboard-spacing-4, var(--spacing-4)) 0;max-width:488px}")}function Ca(e){let t,r,n,i,o,a,s,c,u,l,d,f,h,p,g,m=e[0]("modals.switchChain.heading",{default:mi.modals.switchChain.heading})+"",y=e[0]("modals.switchChain.paragraph1",{default:mi.modals.switchChain.paragraph1,values:{app:e[1]&&e[1].name||"This app",nextNetworkName:e[2]}})+"",b=e[0]("modals.switchChain.paragraph2",{default:mi.modals.switchChain.paragraph2})+"";return f=new vi({}),{c(){t=Et("div"),r=Et("h4"),n=xt(m),i=St(),o=Et("p"),a=xt(y),s=St(),c=Et("p"),u=xt(b),l=St(),d=Et("div"),kr(f.$$.fragment),Tt(r,"class","svelte-12yam41"),Tt(o,"class","svelte-12yam41"),Tt(c,"class","svelte-12yam41"),Tt(d,"class","close absolute svelte-12yam41"),Tt(t,"class","container relative svelte-12yam41")},m(m,y){wt(m,t,y),gt(t,r),gt(r,n),gt(t,i),gt(t,o),gt(o,a),gt(t,s),gt(t,c),gt(c,u),gt(t,l),gt(t,d),_r(f,d,null),h=!0,p||(g=kt(d,"click",e[3]),p=!0)},p(e,t){(!h||1&t)&&m!==(m=e[0]("modals.switchChain.heading",{default:mi.modals.switchChain.heading})+"")&&Mt(n,m),(!h||3&t)&&y!==(y=e[0]("modals.switchChain.paragraph1",{default:mi.modals.switchChain.paragraph1,values:{app:e[1]&&e[1].name||"This app",nextNetworkName:e[2]}})+"")&&Mt(a,y),(!h||1&t)&&b!==(b=e[0]("modals.switchChain.paragraph2",{default:mi.modals.switchChain.paragraph2})+"")&&Mt(u,b)},i(e){h||(pr(f.$$.fragment,e),h=!0)},o(e){gr(f.$$.fragment,e),h=!1},d(e){e&&At(t),Tr(f),p=!1,g()}}}function Ea(e){let t,r;return t=new _i({props:{close:e[3],$$slots:{default:[Ca]},$$scope:{ctx:e}}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,[r]){const n={};67&r&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function xa(e,t,r){let n,i,o;tt(e,Nr,(e=>r(5,n=e))),tt(e,O._,(e=>r(0,i=e)));const a=n.chain.label;const s=Ge.select("appMetadata").pipe((0,m.Z)(Ge.get().appMetadata),(0,y.t)(1));return tt(e,s,(e=>r(1,o=e))),[i,o,a,function(){Nr.next(null)},s]}class Sa extends jr{constructor(e){super(),Pr(this,e,xa,Ea,$e,{},Aa)}}function Ia(e){mt(e,"svelte-z54y2j",".icon.svelte-z54y2j{border-radius:50px;color:var(--onboard-primary-500, var(--primary-500))}")}function ka(e){let t,r;return{c(){t=Et("div"),Tt(t,"class","icon flex svelte-z54y2j"),Tt(t,"style",r=`width: ${e[0]}px; height: ${e[0]}px;`)},m(e,r){wt(e,t,r),t.innerHTML=Z},p(e,[n]){1&n&&r!==(r=`width: ${e[0]}px; height: ${e[0]}px;`)&&Tt(t,"style",r)},i:qe,o:qe,d(e){e&&At(t)}}}function _a(e,t,r){let{size:n=20}=t;return e.$$set=e=>{"size"in e&&r(0,n=e.size)},[n]}class Ta extends jr{constructor(e){super(),Pr(this,e,_a,ka,$e,{size:0},Ia)}}function Ma(e){mt(e,"svelte-20hjq1",".content.svelte-20hjq1{padding:1rem;width:300px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:24px;background:var(\n --onboard-action-required-modal-background,\n var(--onboard-white, var(--white))\n )}.icon-container.svelte-20hjq1{width:3rem;height:3rem;background:var(--onboard-primary-100, var(--primary-100));border-radius:24px}h4.svelte-20hjq1{margin:1.5rem 0 0.5rem 0;font-weight:600}.action-required-heading.svelte-20hjq1,.action-required-info.svelte-20hjq1{color:var(\n --onboard-action-required-text-color,\n var(--onboard-black, inherit)\n )}.action-required-btn.svelte-20hjq1{color:var(\n --onboard-action-required-btn-text-color,\n var(--onboard-black, inherit)\n )}p.svelte-20hjq1{margin:0;font-weight:400}a.svelte-20hjq1{font-weight:600}button.svelte-20hjq1{margin-top:1.5rem;font-weight:600}")}function Pa(e){let t,r,n=e[1]("modals.actionRequired.linkText",{values:{wallet:e[0]}})+"";return{c(){t=Et("a"),r=xt(n),Tt(t,"href","https://metamask.zendesk.com/hc/en-us/articles/360061346311-Switching-accounts-in-MetaMask"),Tt(t,"target","_blank"),Tt(t,"rel","noreferrer noopener"),Tt(t,"class","svelte-20hjq1")},m(e,n){wt(e,t,n),gt(t,r)},p(e,t){3&t&&n!==(n=e[1]("modals.actionRequired.linkText",{values:{wallet:e[0]}})+"")&&Mt(r,n)},d(e){e&&At(t)}}}function ja(e){let t,r,n,i,o,a,s,c,u,l,d,f,h,p,g,m,y=e[1]("modals.actionRequired.heading",{values:{wallet:e[0]}})+"",b=e[1]("modals.actionRequired.paragraph",{values:{wallet:e[0]}})+"",v=e[1]("modals.actionRequired.buttonText")+"";n=new Ta({});let w="MetaMask"===e[0]&&Pa(e);return{c(){t=Et("div"),r=Et("div"),kr(n.$$.fragment),i=St(),o=Et("h4"),a=xt(y),s=St(),c=Et("p"),u=xt(b),l=St(),w&&w.c(),d=St(),f=Et("button"),h=xt(v),Tt(r,"class","icon-container flex justify-center items-center svelte-20hjq1"),Tt(o,"class","action-required-heading svelte-20hjq1"),Tt(c,"class","action-required-info svelte-20hjq1"),Tt(f,"class","button-neutral-solid rounded action-required-btn svelte-20hjq1"),Tt(t,"class","content svelte-20hjq1")},m(y,b){wt(y,t,b),gt(t,r),_r(n,r,null),gt(t,i),gt(t,o),gt(o,a),gt(t,s),gt(t,c),gt(c,u),gt(c,l),w&&w.m(c,null),gt(t,d),gt(t,f),gt(f,h),p=!0,g||(m=kt(f,"click",e[2]),g=!0)},p(e,t){(!p||3&t)&&y!==(y=e[1]("modals.actionRequired.heading",{values:{wallet:e[0]}})+"")&&Mt(a,y),(!p||3&t)&&b!==(b=e[1]("modals.actionRequired.paragraph",{values:{wallet:e[0]}})+"")&&Mt(u,b),"MetaMask"===e[0]?w?w.p(e,t):(w=Pa(e),w.c(),w.m(c,null)):w&&(w.d(1),w=null),(!p||2&t)&&v!==(v=e[1]("modals.actionRequired.buttonText")+"")&&Mt(h,v)},i(e){p||(pr(n.$$.fragment,e),p=!0)},o(e){gr(n.$$.fragment,e),p=!1},d(e){e&&At(t),Tr(n),w&&w.d(),g=!1,m()}}}function Da(e){let t,r;return t=new _i({props:{close:e[2],$$slots:{default:[ja]},$$scope:{ctx:e}}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,[r]){const n={};11&r&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function Oa(e,t,r){let n;tt(e,O._,(e=>r(1,n=e)));let{wallet:i}=t;return e.$$set=e=>{"wallet"in e&&r(0,i=e.wallet)},[i,n,function(){Br.next({inProgress:!1,actionRequired:""})}]}class Ba extends jr{constructor(e){super(),Pr(this,e,Oa,Da,$e,{wallet:0},Ma)}}function Na(e){mt(e,"svelte-w5zexe",".flex{display:flex}.inline-flex{display:inline-flex}.flex-column{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.justify-around{justify-content:space-around}.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.pointer{cursor:pointer}.shadow-1{box-shadow:var(--onboard-shadow-1, var(--shadow-1))}.w-100{width:100%}*{box-sizing:border-box}input{background:var(--onboard-white, var(--white))}input{width:100%;padding:0.5rem 1rem;outline:2px solid var(--onboard-gray-200, var(--gray-200));border:none;border-radius:8px;font-size:1rem;line-height:1.5;color:var(--onboard-gray-600, var(--gray-600));transition:all 200ms ease-in-out}input[type='checkbox']{-webkit-appearance:none;appearance:none;width:auto;background:var(--onboard-white, var(--white));outline:1px solid var(--onboard-gray-300, var(--gray-300));border:none;padding:0.5em;border-radius:3px;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer}input[type='checkbox']:hover{border-color:var(\n --onboard-checkbox-background,\n var(--onboard-primary-500, var(--primary-500))\n )}input[type='checkbox']:checked{background:var(\n --onboard-checkbox-background,\n var(--onboard-primary-500, var(--primary-500))\n );border-color:var(\n --onboard-checkbox-background,\n var(--onboard-primary-500, var(--primary-500))\n );color:var(--onboard-checkbox-color, var(--onboard-white, var(--white)))}input[type='checkbox']:checked:after{content:url(\"data:image/svg+xml,%3Csvg width='0.885em' height='0.6em' viewBox='0 0 14 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 6L5 11L14 2L12.59 0.58L5 8.17L1.41 4.59L0 6Z' fill='white'/%3E%3C/svg%3E\");font-size:12px;position:absolute;color:var(--onboard-checkbox-color, var(--onboard-white, var(--white)))}input:hover{border-color:var(\n --onboard-checkbox-color,\n var(--onboard-white, var(--white))\n )}input:focus{border-color:var(--onboard-primary-500, var(--primary-500));box-shadow:0 0 1px 1px\n var(\n --onboard-checkbox-background,\n var(--onboard-primary-500, var(--primary-500))\n );box-shadow:0 0 0 1px -moz-mac-focusring}input:disabled, textarea:disabled, select:disabled{background:var(--gray-100)}input::-moz-focus-inner{outline:0;padding:0;margin-top:-2px;margin-bottom:-2px}a{color:var(\n --onboard-link-color,\n var(--onboard-primary-500, var(--primary-500))\n );text-decoration:none}a:hover{text-decoration:underline}button{display:flex;align-items:center;justify-content:center;padding:calc(var(--onboard-spacing-4, var(--spacing-4)) - 1px);border-radius:24px;cursor:pointer;font:inherit;border:none;transition:background-color 150ms ease-in-out, color 150ms ease-in-out}.onboard-button-primary{background:var(--onboard-white, var(--white));padding:calc(var(--onboard-spacing-5, var(--spacing-5)) - 1px)\n calc(var(--onboard-spacing-4, var(--spacing-4)) - 1px);color:var(--onboard-gray-500, var(--gray-500));font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));border:1px solid var(--onboard-gray-500, var(--gray-500));font-weight:600}.button-neutral-solid{width:100%;border-radius:8px;background:var(--onboard-gray-500, var(--gray-500));color:var(--onboard-white, var(--white));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}.button-neutral-solid-b{width:100%;background:var(--onboard-gray-100, var(--gray-100));color:var(--onboard-gray-500, var(--gray-500));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}button.rounded{border-radius:24px}.button-neutral-solid:hover{background:var(--onboard-gray-700, var(--gray-700))}.button-neutral-solid-b:hover{background:var(--onboard-gray-200, var(--gray-200))}.button-neutral-solid:active{color:var(--onboard-gray-300, var(--gray-300))}.button-neutral-solid-b:active{color:var(--onboard-gray-600, var(--gray-600));background:var(--onboard-gray-300, var(--gray-300))}.container.svelte-w5zexe{padding:16px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));pointer-events:none;touch-action:none;width:100%}.z-indexed.svelte-w5zexe{z-index:var(--account-center-z-index)}@media all and (min-width: 428px){.container.svelte-w5zexe{max-width:348px}}")}function Ra(e){let t,r;return t=new wa({props:{autoSelect:e[8].autoSelect}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,r){const n={};256&r&&(n.autoSelect=e[8].autoSelect),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function La(e){let t,r;return t=new Ba({props:{wallet:e[8].actionRequired}}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},p(e,r){const n={};256&r&&(n.wallet=e[8].actionRequired),t.$set(n)},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function Fa(e){let t,r;return t=new Sa({}),{c(){kr(t.$$.fragment)},m(e,n){_r(t,e,n),r=!0},i(e){r||(pr(t.$$.fragment,e),r=!0)},o(e){gr(t.$$.fragment,e),r=!1},d(e){Tr(t,e)}}}function Ua(e){let t,r,n,i,o,a,s=e[3].position.includes("bottom")&&e[1].position.includes("bottom")&&e[7],c=e[3].position.includes("top")&&e[1].position.includes("top")&&e[7],u=s&&za(e),l={ctx:e,current:null,token:null,hasCatch:!1,pending:Qa,then:qa,catch:Ga,value:23,blocks:[,,,]};wr(e[16],l);let d=c&&Wa(e);return{c(){t=Et("div"),u&&u.c(),r=St(),n=Et("div"),l.block.c(),i=St(),d&&d.c(),Tt(n,"id","account-center-with-notify"),Tt(t,"class","container flex flex-column fixed z-indexed svelte-w5zexe"),Tt(t,"style",o=e[15](cs)[e[1].position]+"; "+("mobile"===e[11].type&&e[1].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[1].position.includes("bottom")?"padding-top:0;":""))},m(e,o){wt(e,t,o),u&&u.m(t,null),gt(t,r),gt(t,n),l.block.m(n,l.anchor=null),l.mount=()=>n,l.anchor=null,gt(t,i),d&&d.m(t,null),a=!0},p(n,i){e=n,138&i&&(s=e[3].position.includes("bottom")&&e[1].position.includes("bottom")&&e[7]),s?u?(u.p(e,i),138&i&&pr(u,1)):(u=za(e),u.c(),pr(u,1),u.m(t,r)):u&&(fr(),gr(u,1,1,(()=>{u=null})),hr()),Ar(l,e,i),138&i&&(c=e[3].position.includes("top")&&e[1].position.includes("top")&&e[7]),c?d?(d.p(e,i),138&i&&pr(d,1)):(d=Wa(e),d.c(),pr(d,1),d.m(t,null)):d&&(fr(),gr(d,1,1,(()=>{d=null})),hr()),(!a||2&i&&o!==(o=e[15](cs)[e[1].position]+"; "+("mobile"===e[11].type&&e[1].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[1].position.includes("bottom")?"padding-top:0;":"")))&&Tt(t,"style",o)},i(e){a||(pr(u),pr(l.block),pr(d),a=!0)},o(e){gr(u);for(let t=0;t<3;t+=1){gr(l.blocks[t])}gr(d),a=!1},d(e){e&&At(t),u&&u.d(),l.block.d(),l.token=null,l=null,d&&d.d()}}}function za(e){let t,r,n={ctx:e,current:null,token:null,hasCatch:!1,pending:Ka,then:Va,catch:Ha,value:22,blocks:[,,,]};return wr(e[17],n),{c(){t=It(),n.block.c()},m(e,i){wt(e,t,i),n.block.m(e,n.anchor=i),n.mount=()=>t.parentNode,n.anchor=t,r=!0},p(t,r){Ar(n,e=t,r)},i(e){r||(pr(n.block),r=!0)},o(e){for(let t=0;t<3;t+=1){gr(n.blocks[t])}r=!1},d(e){e&&At(t),n.block.d(e),n.token=null,n=null}}}function Ha(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function Va(e){let t,r,n=e[22]&&function(e){let t,r,n;var i=e[22];function o(e){return{props:{notifications:e[10],position:e[3].position,sharedContainer:e[0]}}}i&&(t=Bt(i,o(e)));return{c(){t&&kr(t.$$.fragment),r=It()},m(e,i){t&&_r(t,e,i),wt(e,r,i),n=!0},p(e,n){const a={};if(1024&n&&(a.notifications=e[10]),8&n&&(a.position=e[3].position),1&n&&(a.sharedContainer=e[0]),i!==(i=e[22])){if(t){fr();const e=t;gr(e.$$.fragment,1,0,(()=>{Tr(e,1)})),hr()}i?(t=Bt(i,o(e)),kr(t.$$.fragment),pr(t.$$.fragment,1),_r(t,r.parentNode,r)):t=null}else i&&t.$set(a)},i(e){n||(t&&pr(t.$$.fragment,e),n=!0)},o(e){t&&gr(t.$$.fragment,e),n=!1},d(e){e&&At(r),t&&Tr(t,e)}}}(e);return{c(){n&&n.c(),t=It()},m(e,i){n&&n.m(e,i),wt(e,t,i),r=!0},p(e,t){e[22]&&n.p(e,t)},i(e){r||(pr(n),r=!0)},o(e){gr(n),r=!1},d(e){n&&n.d(e),e&&At(t)}}}function Ka(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function Ga(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function qa(e){let t,r,n=e[23]&&function(e){let t,r,n;var i=e[23];function o(e){return{}}i&&(t=Bt(i,o()));return{c(){t&&kr(t.$$.fragment),r=It()},m(e,i){t&&_r(t,e,i),wt(e,r,i),n=!0},p(e,n){if(i!==(i=e[23])){if(t){fr();const e=t;gr(e.$$.fragment,1,0,(()=>{Tr(e,1)})),hr()}i?(t=Bt(i,o()),kr(t.$$.fragment),pr(t.$$.fragment,1),_r(t,r.parentNode,r)):t=null}},i(e){n||(t&&pr(t.$$.fragment,e),n=!0)},o(e){t&&gr(t.$$.fragment,e),n=!1},d(e){e&&At(r),t&&Tr(t,e)}}}(e);return{c(){n&&n.c(),t=It()},m(e,i){n&&n.m(e,i),wt(e,t,i),r=!0},p(e,t){e[23]&&n.p(e,t)},i(e){r||(pr(n),r=!0)},o(e){gr(n),r=!1},d(e){n&&n.d(e),e&&At(t)}}}function Qa(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function Wa(e){let t,r,n={ctx:e,current:null,token:null,hasCatch:!1,pending:Za,then:Ya,catch:Ja,value:22,blocks:[,,,]};return wr(e[17],n),{c(){t=It(),n.block.c()},m(e,i){wt(e,t,i),n.block.m(e,n.anchor=i),n.mount=()=>t.parentNode,n.anchor=t,r=!0},p(t,r){Ar(n,e=t,r)},i(e){r||(pr(n.block),r=!0)},o(e){for(let t=0;t<3;t+=1){gr(n.blocks[t])}r=!1},d(e){e&&At(t),n.block.d(e),n.token=null,n=null}}}function Ja(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function Ya(e){let t,r,n=e[22]&&function(e){let t,r,n;var i=e[22];function o(e){return{props:{notifications:e[10],position:e[3].position,sharedContainer:e[0]}}}i&&(t=Bt(i,o(e)));return{c(){t&&kr(t.$$.fragment),r=It()},m(e,i){t&&_r(t,e,i),wt(e,r,i),n=!0},p(e,n){const a={};if(1024&n&&(a.notifications=e[10]),8&n&&(a.position=e[3].position),1&n&&(a.sharedContainer=e[0]),i!==(i=e[22])){if(t){fr();const e=t;gr(e.$$.fragment,1,0,(()=>{Tr(e,1)})),hr()}i?(t=Bt(i,o(e)),kr(t.$$.fragment),pr(t.$$.fragment,1),_r(t,r.parentNode,r)):t=null}else i&&t.$set(a)},i(e){n||(t&&pr(t.$$.fragment,e),n=!0)},o(e){t&&gr(t.$$.fragment,e),n=!1},d(e){e&&At(r),t&&Tr(t,e)}}}(e);return{c(){n&&n.c(),t=It()},m(e,i){n&&n.m(e,i),wt(e,t,i),r=!0},p(e,t){e[22]&&n.p(e,t)},i(e){r||(pr(n),r=!0)},o(e){gr(n),r=!1},d(e){n&&n.d(e),e&&At(t)}}}function Za(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function $a(e){let t,r,n,i,o=e[1].enabled&&e[2].length&&Xa(e);return{c(){t=Et("div"),r=Et("div"),o&&o.c(),Tt(t,"class","container flex flex-column fixed z-indexed svelte-w5zexe"),Tt(t,"style",n=e[15](cs)[e[1].position]+"; "+("mobile"===e[11].type&&e[1].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[1].position.includes("bottom")?"padding-top:0;":""))},m(e,n){wt(e,t,n),gt(t,r),o&&o.m(r,null),i=!0},p(e,a){e[1].enabled&&e[2].length?o?(o.p(e,a),6&a&&pr(o,1)):(o=Xa(e),o.c(),pr(o,1),o.m(r,null)):o&&(fr(),gr(o,1,1,(()=>{o=null})),hr()),(!i||2&a&&n!==(n=e[15](cs)[e[1].position]+"; "+("mobile"===e[11].type&&e[1].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[1].position.includes("bottom")?"padding-top:0;":"")))&&Tt(t,"style",n)},i(e){i||(pr(o),i=!0)},o(e){gr(o),i=!1},d(e){e&&At(t),o&&o.d()}}}function Xa(e){let t,r,n={ctx:e,current:null,token:null,hasCatch:!1,pending:rs,then:ts,catch:es,value:23,blocks:[,,,]};return wr(e[16],n),{c(){t=It(),n.block.c()},m(e,i){wt(e,t,i),n.block.m(e,n.anchor=i),n.mount=()=>t.parentNode,n.anchor=t,r=!0},p(t,r){Ar(n,e=t,r)},i(e){r||(pr(n.block),r=!0)},o(e){for(let t=0;t<3;t+=1){gr(n.blocks[t])}r=!1},d(e){e&&At(t),n.block.d(e),n.token=null,n=null}}}function es(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function ts(e){let t,r,n=e[23]&&function(e){let t,r,n;var i=e[23];function o(e){return{}}i&&(t=Bt(i,o()));return{c(){t&&kr(t.$$.fragment),r=It()},m(e,i){t&&_r(t,e,i),wt(e,r,i),n=!0},p(e,n){if(i!==(i=e[23])){if(t){fr();const e=t;gr(e.$$.fragment,1,0,(()=>{Tr(e,1)})),hr()}i?(t=Bt(i,o()),kr(t.$$.fragment),pr(t.$$.fragment,1),_r(t,r.parentNode,r)):t=null}},i(e){n||(t&&pr(t.$$.fragment,e),n=!0)},o(e){t&&gr(t.$$.fragment,e),n=!1},d(e){e&&At(r),t&&Tr(t,e)}}}(e);return{c(){n&&n.c(),t=It()},m(e,i){n&&n.m(e,i),wt(e,t,i),r=!0},p(e,t){e[23]&&n.p(e,t)},i(e){r||(pr(n),r=!0)},o(e){gr(n),r=!1},d(e){n&&n.d(e),e&&At(t)}}}function rs(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function ns(e){let t,r,n,i={ctx:e,current:null,token:null,hasCatch:!1,pending:as,then:os,catch:is,value:22,blocks:[,,,]};return wr(e[17],i),{c(){t=Et("div"),i.block.c(),Tt(t,"class","container flex flex-column fixed z-indexed svelte-w5zexe"),Tt(t,"style",r=e[15](us)[e[3].position]+"; "+("mobile"===e[11].type&&e[3].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[3].position.includes("bottom")?"padding-top:0;":""))},m(e,r){wt(e,t,r),i.block.m(t,i.anchor=null),i.mount=()=>t,i.anchor=null,n=!0},p(o,a){Ar(i,e=o,a),(!n||8&a&&r!==(r=e[15](us)[e[3].position]+"; "+("mobile"===e[11].type&&e[3].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[3].position.includes("bottom")?"padding-top:0;":"")))&&Tt(t,"style",r)},i(e){n||(pr(i.block),n=!0)},o(e){for(let t=0;t<3;t+=1){gr(i.blocks[t])}n=!1},d(e){e&&At(t),i.block.d(),i.token=null,i=null}}}function is(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function os(e){let t,r,n=e[22]&&function(e){let t,r,n;var i=e[22];function o(e){return{props:{notifications:e[10],position:e[3].position,sharedContainer:e[0]}}}i&&(t=Bt(i,o(e)));return{c(){t&&kr(t.$$.fragment),r=It()},m(e,i){t&&_r(t,e,i),wt(e,r,i),n=!0},p(e,n){const a={};if(1024&n&&(a.notifications=e[10]),8&n&&(a.position=e[3].position),1&n&&(a.sharedContainer=e[0]),i!==(i=e[22])){if(t){fr();const e=t;gr(e.$$.fragment,1,0,(()=>{Tr(e,1)})),hr()}i?(t=Bt(i,o(e)),kr(t.$$.fragment),pr(t.$$.fragment,1),_r(t,r.parentNode,r)):t=null}else i&&t.$set(a)},i(e){n||(t&&pr(t.$$.fragment,e),n=!0)},o(e){t&&gr(t.$$.fragment,e),n=!1},d(e){e&&At(r),t&&Tr(t,e)}}}(e);return{c(){n&&n.c(),t=It()},m(e,i){n&&n.m(e,i),wt(e,t,i),r=!0},p(e,t){e[22]&&n.p(e,t)},i(e){r||(pr(n),r=!0)},o(e){gr(n),r=!1},d(e){n&&n.d(e),e&&At(t)}}}function as(e){return{c:qe,m:qe,p:qe,i:qe,o:qe,d:qe}}function ss(e){let t,r,n,i,o,a,s,c=e[8].inProgress&&Ra(e),u=e[8].actionRequired&&La(e),l=e[9]&&Fa(),d=e[4]&&Ua(e),f=e[5]&&$a(e),h=e[6]&&ns(e);return{c(){c&&c.c(),t=St(),u&&u.c(),r=St(),l&&l.c(),n=St(),d&&d.c(),i=St(),f&&f.c(),o=St(),h&&h.c(),a=It()},m(e,p){c&&c.m(e,p),wt(e,t,p),u&&u.m(e,p),wt(e,r,p),l&&l.m(e,p),wt(e,n,p),d&&d.m(e,p),wt(e,i,p),f&&f.m(e,p),wt(e,o,p),h&&h.m(e,p),wt(e,a,p),s=!0},p(e,[s]){e[8].inProgress?c?(c.p(e,s),256&s&&pr(c,1)):(c=Ra(e),c.c(),pr(c,1),c.m(t.parentNode,t)):c&&(fr(),gr(c,1,1,(()=>{c=null})),hr()),e[8].actionRequired?u?(u.p(e,s),256&s&&pr(u,1)):(u=La(e),u.c(),pr(u,1),u.m(r.parentNode,r)):u&&(fr(),gr(u,1,1,(()=>{u=null})),hr()),e[9]?l?512&s&&pr(l,1):(l=Fa(),l.c(),pr(l,1),l.m(n.parentNode,n)):l&&(fr(),gr(l,1,1,(()=>{l=null})),hr()),e[4]?d?(d.p(e,s),16&s&&pr(d,1)):(d=Ua(e),d.c(),pr(d,1),d.m(i.parentNode,i)):d&&(fr(),gr(d,1,1,(()=>{d=null})),hr()),e[5]?f?(f.p(e,s),32&s&&pr(f,1)):(f=$a(e),f.c(),pr(f,1),f.m(o.parentNode,o)):f&&(fr(),gr(f,1,1,(()=>{f=null})),hr()),e[6]?h?(h.p(e,s),64&s&&pr(h,1)):(h=ns(e),h.c(),pr(h,1),h.m(a.parentNode,a)):h&&(fr(),gr(h,1,1,(()=>{h=null})),hr())},i(e){s||(pr(c),pr(u),pr(l),pr(d),pr(f),pr(h),s=!0)},o(e){gr(c),gr(u),gr(l),gr(d),gr(f),gr(h),s=!1},d(e){c&&c.d(e),e&&At(t),u&&u.d(e),e&&At(r),l&&l.d(e),e&&At(n),d&&d.d(e),e&&At(i),f&&f.d(e),e&&At(o),h&&h.d(e),e&&At(a)}}}const cs="account-center",us="notify-onboard-container";function ls(e,t,n){let i,o,a,s,c,u,l,d,f,h,p,g;tt(e,Rr,(e=>n(2,d=e))),tt(e,Br,(e=>n(8,h=e))),tt(e,Nr,(e=>n(9,p=e)));const{device:b,containerElements:v}=be,w=Ge.select("accountCenter").pipe((0,m.Z)(Ge.get().accountCenter),(0,y.t)(1));tt(e,w,(e=>n(1,l=e)));const A=Ge.select("notify").pipe((0,m.Z)(Ge.get().notify),(0,y.t)(1));tt(e,A,(e=>n(3,f=e)));const C=Ge.select("notifications").pipe((0,m.Z)(Ge.get().notifications));tt(e,C,(e=>n(10,g=e)));const E=l.enabled?r.e(43875).then(r.bind(r,43875)).then((e=>e.default)):Promise.resolve(null),x=f.enabled?r.e(42534).then(r.bind(r,942534)).then((e=>e.default)):Promise.resolve(null),S=l.enabled&&v&&v.accountCenter;if(S){((e,t,r,n)=>{const i=e.attachShadow({mode:"open"});let o=document.querySelector("onboard-v2").shadowRoot.styleSheets;const a=new CSSStyleSheet;Object.values(o).forEach((e=>{Object.values(e.cssRules).forEach((e=>a.insertRule(e.cssText)))})),i.adoptedStyleSheets=[a];const s=document.querySelector(t);if(s.appendChild(e),!s)throw new Error(`Element with query ${t} does not exist.`);(async()=>{let e=await r;e&&new e({target:i,props:{settings:n,mountInContainer:!0}})})()})(document.createElement("onboard-account-center"),S,E,l)}return e.$$.update=()=>{10&e.$$.dirty&&n(0,i=!S&&l.enabled&&f.enabled&&f.position===l.position),10&e.$$.dirty&&n(7,o="mobile"===b.type||l.position===f.position),10&e.$$.dirty&&n(18,a=f.position.includes("bottom")&&l.position.includes("bottom")||f.position.includes("top")&&l.position.includes("top")),262158&e.$$.dirty&&n(6,s=f.enabled&&(!l.enabled||S||f.position!==l.position&&"mobile"!==b.type||"mobile"===b.type&&!a||!d.length)),262158&e.$$.dirty&&n(5,c=l.enabled&&(!f.enabled||f.position!==l.position&&"mobile"!==b.type||"mobile"===b.type&&!a)&&d.length),262159&e.$$.dirty&&n(4,u=f.enabled&&l.enabled&&(i||"mobile"===b.type&&a)&&d.length)},[i,l,d,f,u,c,s,o,h,p,g,b,w,A,C,e=>({topLeft:`\n top: var(--${e}-position-top, 0); \n left: var(--${e}-position-left, 0);`,topRight:`\n top: var(--${e}-position-top, 0); \n right: var(--${e}-position-right, 0);`,bottomRight:`\n bottom: var(--${e}-position-bottom, 0); \n right: var(--${e}-position-right, 0);`,bottomLeft:`\n bottom: var(--${e}-position-bottom, 0); \n left: var(--${e}-position-left, 0);`}),E,x,a]}class ds extends jr{constructor(e){super(),Pr(this,e,ls,ss,$e,{},Na)}}const fs={connectWallet:Yn,disconnectWallet:Zn,setChain:pi,state:{get:Ge.get,select:Ge.select,actions:{setWalletModules:qn,setLocale:function(e){const t=Pn(e);if(t)throw t;Ke({type:Be,payload:e})},updateNotify:Vn,customNotification:function(e){const t=Dn(e);if(t)throw t;const r=`customNotification-${((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),""))()}`,n=Object.assign(Object.assign({},e),{id:r,key:r});Kn(n);const i=()=>{n.id&&Gn(n.id)},o=t=>{const r=Dn(e);if(r)throw r;return Kn(Object.assign(Object.assign({},t),{id:n.id,key:n.key})),{dismiss:i,update:o}};return Kn(n),{dismiss:i,update:o}},updateBalances:async function(e){const{wallets:t,chains:r}=Ge.get(),n=await Promise.all(t.map((async t=>{const n=r.find((({id:e})=>e===t.chains[0].id));if(!n)return;const i=await Promise.all(t.accounts.map((async t=>{const r=await $n(t.address,n);if(!e||e.some((e=>e.toLowerCase()===t.address.toLowerCase()))){const e=await ci(t.address,n);return Object.assign(Object.assign({},t),{balance:e,secondaryTokens:r})}return Object.assign(Object.assign({},t),{secondaryTokens:r})})));return Object.assign(Object.assign({},t),{accounts:i})})));!function(e){const t=On(e);if(t)throw t;Ke({type:Fe,payload:e})}(n)},updateAccountCenter:zn,setPrimaryWallet:Fn,updateTheme:Qn,updateAppMetadata:Wn}}};function hs(e){if("undefined"==typeof window)return fs;if(e){const r=(t=e,(0,N.tf)(An,t));if(r)throw r}var t;const{wallets:r,chains:n,appMetadata:i,i18n:o,accountCenter:a,notify:s,gas:c,connect:u,containerElements:l,transactionPreview:d,theme:f,disableFontDownload:h,unstoppableResolution:p,wagmi:g}=e;l&&ve({containerElements:l});const{device:m,svelteInstance:y}=be;if(y&&(console.warn("Re-initializing Onboard and resetting back to initial state"),Dr.next()),function(e){if(e){const{en:t}=e,r=U(mi,t||{});(0,O.Kc)("en",r),Object.keys(e).filter((e=>"en"!==e)).forEach((t=>{const r=e[t];r&&(0,O.Kc)(t,r)}))}else(0,O.Kc)("en",mi);(0,O.Ts)({fallbackLocale:"en",initialLocale:(0,O.WL)()})}(o),function(e){Ke({type:Se,payload:e.map((e=>{var{namespace:t="evm",id:r,rpcUrl:n}=e,i=H(e,["namespace","id","rpcUrl"]);return Object.assign(Object.assign({},i),{namespace:t,id:r.toLowerCase(),rpcUrl:n?n.trim():null})}))})}(function(e){return e.map((e=>{var{id:t}=e,r=H(e,["id"]);const n=ie(t);return Object.assign({id:n},r)}))}(n)),void 0!==u&&Hn(u),void 0!==a){let e;const{hideTransactionProtectionBtn:t,transactionProtectionInfoLink:r}=a;"mobile"===m.type?e=Object.assign(Object.assign(Object.assign({},we.accountCenter),{hideTransactionProtectionBtn:t,transactionProtectionInfoLink:r}),a.mobile?a.mobile:{}):a.desktop&&(e=Object.assign(Object.assign(Object.assign({},we.accountCenter),{hideTransactionProtectionBtn:t,transactionProtectionInfoLink:r}),a.desktop)),void 0!==e&&zn(e)}let b;if(void 0!==g&&(b=g(Object.assign({disconnect:Zn,updateChain:Nn},hi()))),void 0!==s)if(console.warn("Support for notifications on transaction state changes have been deprecated. Custom notifications can still be sent ot the user."),"desktop"in s||"mobile"in s){const e=function(e){return(0,N.tf)(hn,e)}(s);if(e)throw e;s&&s.desktop&&s.desktop.position&&a&&a.desktop&&a.desktop.position&&(s.desktop.position=a.desktop.position),s&&s.mobile&&s.mobile.position&&a&&a.mobile&&a.mobile.position&&(s.mobile.position=a.mobile.position);let t={};"mobile"===m.type&&s.mobile?t=Object.assign(Object.assign({},we.notify),s.mobile):s.desktop&&(t=Object.assign(Object.assign({},we.notify),s.desktop)),Vn(t)}else{const e=jn(s);if(e)throw e;Vn(Object.assign(Object.assign({},we.notify),s))}else{Vn(we.notify)}const v=y||function(e,t){class r extends HTMLElement{constructor(){super()}}customElements.get("onboard-v2")||customElements.define("onboard-v2",r);ps(e,t)||gs();const n=document.createElement("onboard-v2"),i=n.attachShadow({mode:"open"});let o;n.style.all="initial",i.innerHTML="\n\n \n ",be&&be.containerElements&&be.containerElements.connectModal&&(o=be.containerElements.connectModal);const a=o||Ge.get().accountCenter.containerElement||"body",s=document.querySelector(a);if(!s)throw new Error(`Element with query ${a} does not exist.`);s.appendChild(n);const c=new ds({target:i});return c}(f||{},h||!1);if(ve({svelteInstance:v,initialWalletInit:r,gas:c,unstoppableResolution:p,wagmi:b}),i&&Wn(i),d&&console.error("Transaction Preview support has been removed and is no longer supported within Web3-Onboard"),f&&Qn(f),u&&(u.autoConnectLastWallet||u.autoConnectAllPreviousWallet)){const e=ge(Ae.LAST_CONNECTED_WALLET);try{const t=JSON.parse(e);t&&Array.isArray(t)&&t.length&&ms(t,u),t&&"string"==typeof t&&ms([t],u)}catch(w){w instanceof SyntaxError&&e&&fs.connectWallet({autoSelect:{label:e,disableModals:!0}})}}return fs}const ps=(e,t)=>!!t||(!(!document.body||!getComputedStyle(document.body).getPropertyValue("--onboard-font-family-normal")&&!getComputedStyle(document.body).getPropertyValue("--w3o-font-family"))||!!e&&!("object"!=typeof e||!e["--w3o-font-family"])),gs=async()=>{const{InterVar:e}=await Promise.resolve().then(r.bind(r,645599)),t=document.createElement("style");t.innerHTML=`\n ${e}\n `,document.body.appendChild(t)},ms=async(e,t)=>{const r=[],n=e;if(t.autoConnectAllPreviousWallet)for(let i=n.length;i--;){(await fs.connectWallet({autoSelect:{label:n[i],disableModals:!0}})).some((e=>e.label===n[i]))&&r.unshift(n[i])}else fs.connectWallet({autoSelect:{label:n[0],disableModals:!0}}),r.push(n[0]);me(Ae.LAST_CONNECTED_WALLET,JSON.stringify(r))}},630666:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(452484);class i extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,n.HF)()});const r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof i&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return o(this,e)}}function o(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e?o(e.cause,t):t?null:e}},760891:(e,t,r)=>{"use strict";r.d(t,{Fl:()=>o,NV:()=>a,ii:()=>i});var n=r(630666);class i extends n.C{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class o extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}class a extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesLengthError"})}}},617666:(e,t,r)=>{"use strict";r.d(t,{Ty:()=>i,u:()=>a,xO:()=>o});var n=r(630666);class i extends n.C{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class o extends n.C{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesBooleanError"})}}n.C;n.C;class a extends n.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},452484:(e,t,r)=>{"use strict";r.d(t,{RZ:()=>n,ID:()=>i,HF:()=>o});const n=e=>e,i=e=>e,o=()=>"viem@2.12.0"},624331:(e,t,r)=>{"use strict";function n(e,{strict:t=!0}={}){return!!e&&("string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}r.d(t,{q:()=>n})},260855:(e,t,r)=>{"use strict";r.d(t,{db:()=>o,eV:()=>i});var n=r(760891);function i(e,{dir:t,size:r=32}={}){return"string"==typeof e?o(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.Fl({size:e.length,targetSize:r,type:"bytes"});const i=new Uint8Array(r);for(let n=0;n2*r)throw new n.Fl({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}},288929:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(624331);function i(e){return(0,n.q)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},133594:(e,t,r)=>{"use strict";r.d(t,{ME:()=>s,Sl:()=>o,uU:()=>a});var n=r(617666),i=r(288929);function o(e,{size:t}){if((0,i.E)(e)>t)throw new n.u({givenSize:(0,i.E)(e),maxSize:t})}function a(e,t={}){const{signed:r}=t;t.size&&o(e,{size:t.size});const n=BigInt(e);if(!r)return n;const i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function s(e,t={}){return Number(a(e,t))}},908373:(e,t,r)=>{"use strict";r.d(t,{$P:()=>c,My:()=>u,cK:()=>l,i3:()=>f,nj:()=>s});var n=r(617666),i=r(260855),o=r(133594);const a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e,t={}){return"number"==typeof e||"bigint"==typeof e?l(e,t):"string"==typeof e?f(e,t):"boolean"==typeof e?c(e,t):u(e,t)}function c(e,t={}){const r=`0x${Number(e)}`;return"number"==typeof t.size?((0,o.Sl)(r,{size:t.size}),(0,i.eV)(r,{size:t.size})):r}function u(e,t={}){let r="";for(let i=0;is||a{"use strict";function n(e,t){const r=e.exec(t);return r?.groups}r.d(t,{BD:()=>i,Ge:()=>o,Yv:()=>n,wj:()=>a});const i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,o=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,a=/^\(.+?\).*?$/},552071:(e,t,r)=>{"use strict";r.d(t,{_Q:()=>d,HT:()=>l,yE:()=>f});const n=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,a=new Uint8Array(o);e[t];){var l=r[e.charCodeAt(t)];if(255===l)return;for(var d=0,f=o-1;(0!==l||d>>0,a[f]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var h=o-i;h!==o&&0===a[h];)h++;for(var p=new Uint8Array(n+(o-h)),g=n;h!==o;)p[g++]=a[h++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var a=(o-i)*l+1>>>0,u=new Uint8Array(a);i!==o;){for(var d=t[i],f=0,h=a-1;(0!==d||f>>0,u[h]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");n=f,i++}for(var p=a-n;p!==a&&0===u[p];)p++;for(var g=c.repeat(r);pnew s({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class u{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new o(e,t,r),this.decoder=new a(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const l=({name:e,prefix:t,encode:r,decode:n})=>new u(e,t,r,n),d=({prefix:e,name:t,alphabet:r})=>{const{encode:o,decode:a}=n(r,t);return l({prefix:e,name:t,encode:o,decode:e=>(0,i.au)(a(e))})},f=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>l({prefix:t,name:e,encode:e=>((e,t,r)=>{const n="="===t[t.length-1],i=(1<r;)a-=r,o+=t[i&s>>a];if(a&&(o+=t[i&s<((e,t,r,n)=>{const i={};for(let l=0;l=8&&(s-=8,a[u++]=255&c>>s)}if(s>=r||255&c<<8-s)throw new SyntaxError("Unexpected end of data");return a})(t,n,r,e)})},633431:(e,t,r)=>{"use strict";r.r(t),r.d(t,{base32:()=>i,base32hex:()=>c,base32hexpad:()=>l,base32hexpadupper:()=>d,base32hexupper:()=>u,base32pad:()=>a,base32padupper:()=>s,base32upper:()=>o,base32z:()=>f});var n=r(552071);const i=(0,n.yE)({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),o=(0,n.yE)({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),a=(0,n.yE)({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),s=(0,n.yE)({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),c=(0,n.yE)({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),u=(0,n.yE)({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),l=(0,n.yE)({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),d=(0,n.yE)({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),f=(0,n.yE)({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})},852807:(e,t,r)=>{"use strict";r.r(t),r.d(t,{base58btc:()=>i,base58flickr:()=>o});var n=r(552071);const i=(0,n._Q)({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),o=(0,n._Q)({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})},192081:(e,t,r)=>{"use strict";r.d(t,{aI:()=>n,au:()=>i,dI:()=>a,sH:()=>o});new Uint8Array(0);const n=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},o=e=>(new TextEncoder).encode(e),a=e=>(new TextDecoder).decode(e)},754070:(e,t,r)=>{"use strict";r(674973),r(814403),r(852807),r(633431),r(192081);Symbol.toStringTag,Symbol.for("nodejs.util.inspect.custom");Symbol.for("@ipld/js-cid/CID")},814403:(e,t,r)=>{"use strict";r.d(t,{D4:()=>a,aI:()=>s,np:()=>c,vt:()=>o});var n=r(192081),i=r(674973);const o=(e,t)=>{const r=t.byteLength,n=i.OY(e),o=n+i.OY(r),a=new Uint8Array(o+r);return i.s_(e,a,0),i.s_(r,a,n),a.set(t,o),new c(e,r,t,a)},a=e=>{const t=(0,n.au)(e),[r,o]=i.D4(t),[a,s]=i.D4(t.subarray(o)),u=t.subarray(o+s);if(u.byteLength!==a)throw new Error("Incorrect length");return new c(r,a,u,t)},s=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&(0,n.aI)(e.bytes,t.bytes);class c{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}},674973:(e,t,r)=>{"use strict";r.d(t,{D4:()=>w,s_:()=>A,OY:()=>C});var n=function e(t,r,n){r=r||[];var s=n=n||0;for(;t>=a;)r[n++]=255&t|i,t/=128;for(;t&o;)r[n++]=255&t|i,t>>>=7;return r[n]=0|t,e.bytes=n-s+1,r},i=128,o=-128,a=Math.pow(2,31);var s=function e(t,r){var n,i=0,o=0,a=r=r||0,s=t.length;do{if(a>=s)throw e.bytes=0,new RangeError("Could not decode varint");n=t[a++],i+=o<28?(n&u)<=c);return e.bytes=a-r,i},c=128,u=127;var l=Math.pow(2,7),d=Math.pow(2,14),f=Math.pow(2,21),h=Math.pow(2,28),p=Math.pow(2,35),g=Math.pow(2,42),m=Math.pow(2,49),y=Math.pow(2,56),b=Math.pow(2,63);const v={encode:n,decode:s,encodingLength:function(e){return e[v.decode(e,t),v.decode.bytes],A=(e,t,r=0)=>(v.encode(e,t,r),t),C=e=>v.encodingLength(e)},815604:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AEADEncryptedDataPacket:()=>Gs,CleartextMessage:()=>Zc,CompressedDataPacket:()=>Os,LiteralDataPacket:()=>Ss,MarkerPacket:()=>Xs,Message:()=>Gc,OnePassSignaturePacket:()=>Ms,PacketList:()=>js,PrivateKey:()=>Oc,PublicKey:()=>Dc,PublicKeyEncryptedSessionKeyPacket:()=>qs,PublicKeyPacket:()=>Ys,PublicSubkeyPacket:()=>ec,SecretKeyPacket:()=>rc,SecretSubkeyPacket:()=>ac,Signature:()=>uc,SignaturePacket:()=>_s,Subkey:()=>_c,SymEncryptedIntegrityProtectedDataPacket:()=>Vs,SymEncryptedSessionKeyPacket:()=>Js,SymmetricallyEncryptedDataPacket:()=>$s,TrustPacket:()=>sc,UnparseablePacket:()=>gi,UserAttributePacket:()=>tc,UserIDPacket:()=>oc,armor:()=>ge,config:()=>ae,createCleartextMessage:()=>Xc,createMessage:()=>Jc,decrypt:()=>au,decryptKey:()=>nu,decryptSessionKeys:()=>du,encrypt:()=>ou,encryptKey:()=>iu,encryptSessionKey:()=>lu,enums:()=>Y,generateKey:()=>eu,generateSessionKey:()=>uu,readCleartextMessage:()=>$c,readKey:()=>Lc,readKeys:()=>Uc,readMessage:()=>Wc,readPrivateKey:()=>Fc,readPrivateKeys:()=>zc,readSignature:()=>lc,reformatKey:()=>tu,revokeKey:()=>ru,sign:()=>su,unarmor:()=>pe,verify:()=>cu});const n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=Symbol("doneWritingPromise"),o=Symbol("doneWritingResolve"),a=Symbol("doneWritingReject"),s=Symbol("readingIndex");class c extends Array{constructor(){super(),this[i]=new Promise(((e,t)=>{this[o]=e,this[a]=t})),this[i].catch((()=>{}))}}function u(e){return e&&e.getReader&&Array.isArray(e)}function l(e){if(!u(e)){const t=e.getWriter(),r=t.releaseLock;return t.releaseLock=()=>{t.closed.catch((function(){})),r.call(t)},t}this.stream=e}c.prototype.getReader=function(){return void 0===this[s]&&(this[s]=0),{read:async()=>(await this[i],this[s]===this.length?{value:void 0,done:!0}:{value:this[this[s]++],done:!1})}},c.prototype.readToEnd=async function(e){await this[i];const t=e(this.slice(this[s]));return this.length=0,t},c.prototype.clone=function(){const e=new c;return e[i]=this[i].then((()=>{e.push(...this)})),e},l.prototype.write=async function(e){this.stream.push(e)},l.prototype.close=async function(){this.stream[o]()},l.prototype.abort=async function(e){return this.stream[a](e),e},l.prototype.releaseLock=function(){};const d="object"==typeof n.process&&"object"==typeof n.process.versions,f=d&&void 0;function h(e){return u(e)?"array":n.ReadableStream&&n.ReadableStream.prototype.isPrototypeOf(e)?"web":S&&S.prototype.isPrototypeOf(e)?"ponyfill":f&&f.prototype.isPrototypeOf(e)?"node":!(!e||!e.getReader)&&"web-like"}function p(e){return Uint8Array.prototype.isPrototypeOf(e)}function g(e){if(1===e.length)return e[0];let t=0;for(let i=0;i{t||(m.isBuffer(n)&&(n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength)),r.enqueue(n),e.pause())})),e.on("end",(()=>{t||r.close()})),e.on("error",(e=>r.error(e)))},pull(){e.resume()},cancel(r){t=!0,e.destroy(r)}})};class e extends y{constructor(e,t){super(t),this._reader=D(e)}async _read(e){try{for(;;){const{done:e,value:t}=await this._reader.read();if(e){this.push(null);break}if(!this.push(t))break}}catch(e){this.destroy(e)}}async _destroy(e,t){this._reader.cancel(e).then(t,t)}}v=function(t,r){return new e(t,r)}}const w=new WeakSet,A=Symbol("externalBuffer");function C(e){if(this.stream=e,e[A]&&(this[A]=e[A].slice()),u(e)){const t=e.getReader();return this._read=t.read.bind(t),this._releaseLock=()=>{},void(this._cancel=async()=>{})}let t=h(e);if("node"===t&&(e=b(e)),t){const t=e.getReader();return this._read=t.read.bind(t),this._releaseLock=()=>{t.closed.catch((function(){})),t.releaseLock()},void(this._cancel=t.cancel.bind(t))}let r=!1;this._read=async()=>r||w.has(e)?{value:void 0,done:!0}:(r=!0,{value:e,done:!1}),this._releaseLock=()=>{if(r)try{w.add(e)}catch(e){}}}C.prototype.read=async function(){return this[A]&&this[A].length?{done:!1,value:this[A].shift()}:this._read()},C.prototype.releaseLock=function(){this[A]&&(this.stream[A]=this[A]),this._releaseLock()},C.prototype.cancel=function(e){return this._cancel(e)},C.prototype.readLine=async function(){let e,t=[];for(;!e;){let{done:r,value:n}=await this.read();if(n+="",r)return t.length?j(t):void 0;const i=n.indexOf("\n")+1;i&&(e=j(t.concat(n.substr(0,i))),t=[]),i!==n.length&&t.push(n.substr(i))}return this.unshift(...t),e},C.prototype.readByte=async function(){const{done:e,value:t}=await this.read();if(e)return;const r=t[0];return this.unshift(K(t,1)),r},C.prototype.readBytes=async function(e){const t=[];let r=0;for(;;){const{done:n,value:i}=await this.read();if(n)return t.length?j(t):void 0;if(t.push(i),r+=i.length,r>=e){const r=j(t);return this.unshift(K(r,e)),K(r,0,e)}}},C.prototype.peekBytes=async function(e){const t=await this.readBytes(e);return this.unshift(t),t},C.prototype.unshift=function(...e){this[A]||(this[A]=[]),1===e.length&&p(e[0])&&this[A].length&&e[0].length&&this[A][0].byteOffset>=e[0].length?this[A][0]=new Uint8Array(this[A][0].buffer,this[A][0].byteOffset-e[0].length,this[A][0].byteLength+e[0].length):this[A].unshift(...e.filter((e=>e&&e.length)))},C.prototype.readToEnd=async function(e=j){const t=[];for(;;){const{done:e,value:r}=await this.read();if(e)break;t.push(r)}return e(t)};let E,x,{ReadableStream:S,WritableStream:I,TransformStream:k}=n;async function _(){if(k)return;const[e,t]=await Promise.all([Promise.resolve().then((function(){return eh})),Promise.resolve().then((function(){return Ah}))]);({ReadableStream:S,WritableStream:I,TransformStream:k}=e);const{createReadableStreamWrapper:r}=t;n.ReadableStream&&S!==n.ReadableStream&&(E=r(S),x=r(n.ReadableStream))}const T=d&&void 0;function M(e){let t=h(e);return"node"===t?b(e):"web"===t&&E?E(e):t?e:new S({start(t){t.enqueue(e),t.close()}})}function P(e){if(h(e))return e;const t=new c;return(async()=>{const r=O(t);await r.write(e),await r.close()})(),t}function j(e){return e.some((e=>h(e)&&!u(e)))?function(e){e=e.map(M);const t=R((async function(e){await Promise.all(n.map((t=>q(t,e))))}));let r=Promise.resolve();const n=e.map(((n,i)=>F(n,((n,o)=>(r=r.then((()=>B(n,t.writable,{preventClose:i!==e.length-1}))),r)))));return t.readable}(e):e.some((e=>u(e)))?function(e){const t=new c;let r=Promise.resolve();return e.forEach(((n,i)=>(r=r.then((()=>B(n,t,{preventClose:i!==e.length-1}))),r))),t}(e):"string"==typeof e[0]?e.join(""):T&&T.isBuffer(e[0])?T.concat(e):g(e)}function D(e){return new C(e)}function O(e){return new l(e)}async function B(e,t,{preventClose:r=!1,preventAbort:n=!1,preventCancel:i=!1}={}){if(h(e)&&!u(e)){e=M(e);try{if(e[A]){const r=O(t);for(let t=0;t{t=e,r=n})),t=null,r=null)},close:n.close.bind(n),abort:n.error.bind(n)})}}function L(e,t=()=>{},r=()=>{}){if(u(e)){const n=new c;return(async()=>{const i=O(n);try{const n=await G(e),o=t(n),a=r();let s;s=void 0!==o&&void 0!==a?j([o,a]):void 0!==o?o:a,await i.write(s),await i.close()}catch(e){await i.abort(e)}})(),n}if(h(e))return N(e,{async transform(e,r){try{const n=await t(e);void 0!==n&&r.enqueue(n)}catch(e){r.error(e)}},async flush(e){try{const t=await r();void 0!==t&&e.enqueue(t)}catch(t){e.error(t)}}});const n=t(e),i=r();return void 0!==n&&void 0!==i?j([n,i]):void 0!==n?n:i}function F(e,t){if(h(e)&&!u(e)){let r;const n=new k({start(e){r=e}}),i=B(e,n.writable),o=R((async function(e){r.error(e),await i,await new Promise(setTimeout)}));return t(n.readable,o.writable),o.readable}e=P(e);const r=new c;return t(e,r),r}function U(e,t){let r;const n=F(e,((e,i)=>{const o=D(e);o.remainder=()=>(o.releaseLock(),B(e,i),n),r=t(o)}));return r}function z(e){if(u(e))return e.clone();if(h(e)){const t=function(e){if(u(e))throw Error("ArrayStream cannot be tee()d, use clone() instead");if(h(e)){const t=M(e).tee();return t[0][A]=t[1][A]=e[A],t}return[K(e),K(e)]}(e);return V(e,t[0]),t[1]}return K(e)}function H(e){return u(e)?z(e):h(e)?new S({start(t){const r=F(e,(async(e,r)=>{const n=D(e),i=O(r);try{for(;;){await i.ready;const{done:r,value:o}=await n.read();if(r){try{t.close()}catch(e){}return void await i.close()}try{t.enqueue(o)}catch(e){}await i.write(o)}}catch(e){t.error(e),await i.abort(e)}}));V(e,r)}}):K(e)}function V(e,t){Object.entries(Object.getOwnPropertyDescriptors(e.constructor.prototype)).forEach((([r,n])=>{"constructor"!==r&&(n.value?n.value=n.value.bind(t):n.get=n.get.bind(t),Object.defineProperty(e,r,n))}))}function K(e,t=0,r=1/0){if(u(e))throw Error("Not implemented");if(h(e)){if(t>=0&&r>=0){let n=0;return N(e,{transform(e,i){n=t&&i.enqueue(K(e,Math.max(t-n,0),r-n)),n+=e.length):i.terminate()}})}if(t<0&&(r<0||r===1/0)){let n=[];return L(e,(e=>{e.length>=-t?n=[e]:n.push(e)}),(()=>K(j(n),t,r)))}if(0===t&&r<0){let n;return L(e,(e=>{const i=n?j([n,e]):e;if(i.length>=-r)return n=K(i,r),K(i,t,r);n=i}))}return console.warn(`stream.slice(input, ${t}, ${r}) not implemented efficiently.`),Q((async()=>K(await G(e),t,r)))}return e[A]&&(e=j(e[A].concat([e]))),!p(e)||T&&T.isBuffer(e)?e.slice(t,r):(r===1/0&&(r=e.length),e.subarray(t,r))}async function G(e,t=j){return u(e)?e.readToEnd(t):h(e)?D(e).readToEnd(t):e}async function q(e,t){if(h(e)){if(e.cancel)return e.cancel(t);if(e.destroy)return e.destroy(t),await new Promise(setTimeout),t}}function Q(e){const t=new c;return(async()=>{const r=O(t);try{await r.write(await e()),await r.close()}catch(e){await r.abort(e)}})(),t}class W{constructor(e){if(void 0===e)throw Error("Invalid BigInteger input");if(e instanceof Uint8Array){const t=e,r=Array(t.length);for(let e=0;eBigInt(0);){const e=r&BigInt(1);r>>=BigInt(1);const o=i*n%t.value;i=e?o:i,n=n*n%t.value}return new W(i)}modInv(e){const{gcd:t,x:r}=this._egcd(e);if(!t.isOne())throw Error("Inverse does not exist");return r.add(e).mod(e)}_egcd(e){let t=BigInt(0),r=BigInt(1),n=BigInt(1),i=BigInt(0),o=this.value;for(e=e.value;e!==BigInt(0);){const a=o/e;let s=t;t=n-a*t,n=s,s=r,r=i-a*r,i=s,s=e,e=o%e,o=s}return{x:new W(n),y:new W(i),gcd:new W(o)}}gcd(e){let t=this.value;for(e=e.value;e!==BigInt(0);){const r=e;e=t%e,t=r}return new W(t)}ileftShift(e){return this.value<<=e.value,this}leftShift(e){return this.clone().ileftShift(e)}irightShift(e){return this.value>>=e.value,this}rightShift(e){return this.clone().irightShift(e)}equal(e){return this.value===e.value}lt(e){return this.valuee.value}gte(e){return this.value>=e.value}isZero(){return this.value===BigInt(0)}isOne(){return this.value===BigInt(1)}isNegative(){return this.valueNumber.MAX_SAFE_INTEGER)throw Error("Number can only safely store up to 53 bits");return e}getBit(e){return(this.value>>BigInt(e)&BigInt(1))===BigInt(0)?0:1}bitLength(){const e=new W(0),t=new W(1),r=new W(-1),n=this.isNegative()?r:e;let i=1;const o=this.clone();for(;!o.irightShift(t).equal(n);)i++;return i}byteLength(){const e=new W(0),t=new W(-1),r=this.isNegative()?t:e,n=new W(8);let i=1;const o=this.clone();for(;!o.irightShift(n).equal(r);)i++;return i}toUint8Array(e="be",t){let r=this.value.toString(16);r.length%2==1&&(r="0"+r);const n=r.length/2,i=new Uint8Array(t||n),o=t?t-n:0;let a=0;for(;a{e[J][r]=t}))),void 0!==e[J][t])return e[J][t];throw Error("Invalid enum value.")}};const Z=(()=>{try{return!1}catch(n){}return!1})(),$={isString:function(e){return"string"==typeof e||e instanceof String},isArray:function(e){return e instanceof Array},isUint8Array:p,isStream:h,readNumber:function(e){let t=0;for(let r=0;r>8*(t-n-1)&255;return r},readDate:function(e){const t=$.readNumber(e);return new Date(1e3*t)},writeDate:function(e){const t=Math.floor(e.getTime()/1e3);return $.writeNumber(t,4)},normalizeDate:function(e=Date.now()){return null===e||e===1/0?e:new Date(1e3*Math.floor(+e/1e3))},readMPI:function(e){const t=7+(e[0]<<8|e[1])>>>3;return e.subarray(2,2+t)},leftPad(e,t){const r=new Uint8Array(t),n=t-e.length;return r.set(e,n),r},uint8ArrayToMPI:function(e){const t=$.uint8ArrayBitLength(e);if(0===t)throw Error("Zero MPI");const r=e.subarray(e.length-Math.ceil(t/8)),n=new Uint8Array([(65280&t)>>8,255&t]);return $.concatUint8Array([n,r])},uint8ArrayBitLength:function(e){let t;for(t=0;t>1);for(let r=0;r>1;r++)t[r]=parseInt(e.substr(r<<1,2),16);return t},uint8ArrayToHex:function(e){const t=[],r=e.length;let n,i=0;for(;i{if(!$.isString(e))throw Error("stringToUint8Array: Data must be in the form of a string");const t=new Uint8Array(e.length);for(let r=0;rr("",!0)))},decodeUTF8:function(e){const t=new TextDecoder("utf-8");function r(e,r=!1){return t.decode(e,{stream:!r})}return L(e,r,(()=>r(new Uint8Array,!0)))},concat:j,concatUint8Array:g,equalsUint8Array:function(e,t){if(!$.isUint8Array(e)||!$.isUint8Array(t))throw Error("Data must be in the form of a Uint8Array");if(e.length!==t.length)return!1;for(let r=0;r>>16;return 0!==r&&(e=r,t+=16),r=e>>8,0!==r&&(e=r,t+=8),r=e>>4,0!==r&&(e=r,t+=4),r=e>>2,0!==r&&(e=r,t+=2),r=e>>1,0!==r&&(e=r,t+=1),t},double:function(e){const t=new Uint8Array(e.length),r=e.length-1;for(let n=0;n>7;return t[r]=e[r]<<1^135*(e[0]>>7),t},shiftRight:function(e,t){if(t)for(let r=e.length-1;r>=0;r--)e[r]>>=t,r>0&&(e[r]|=e[r-1]<<8-t);return e},getWebCrypto:function(){return void 0!==n&&n.crypto&&n.crypto.subtle},getBigInteger:async function(){if("undefined"!=typeof BigInt)return W;{const{default:e}=await Promise.resolve().then((function(){return Ih}));return e}},getNodeCrypto:function(){},getNodeZlib:function(){},getNodeBuffer:function(){return{}.Buffer},getHardwareConcurrency:function(){return"undefined"!=typeof navigator?navigator.hardwareConcurrency||1:(void 0).cpus().length},isEmailAddress:function(e){return!!$.isString(e)&&/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+([a-zA-Z]{2,}[0-9]*|xn--[a-zA-Z\-0-9]+)))$/.test(e)},canonicalizeEOL:function(e){let t=!1;return L(e,(e=>{let r;t&&(e=$.concatUint8Array([new Uint8Array([13]),e])),13===e[e.length-1]?(t=!0,e=e.subarray(0,-1)):t=!1;const n=[];for(let t=0;r=e.indexOf(10,t)+1,r;t=r)13!==e[r-2]&&n.push(r);if(!n.length)return e;const i=new Uint8Array(e.length+n.length);let o=0;for(let t=0;tt?new Uint8Array([13]):void 0))},nativeEOL:function(e){let t=!1;return L(e,(e=>{let r;13===(e=t&&10!==e[0]?$.concatUint8Array([new Uint8Array([13]),e]):new Uint8Array(e))[e.length-1]?(t=!0,e=e.subarray(0,-1)):t=!1;let n=0;for(let t=0;t!==e.length;t=r){r=e.indexOf(13,t)+1,r||(r=e.length);const i=r-(10===e[r]?1:0);t&&e.copyWithin(n,t,i),n+=i-t}return e.subarray(0,n)}),(()=>t?new Uint8Array([13]):void 0))},removeTrailingSpaces:function(e){return e.split("\n").map((e=>{let t=e.length-1;for(;t>=0&&(" "===e[t]||"\t"===e[t]||"\r"===e[t]);t--);return e.substr(0,t+1)})).join("\n")},wrapError:function(e,t){if(!t)return Error(e);try{t.message=e+": "+t.message}catch(e){}return t},constructAllowedPackets:function(e){const t={};return e.forEach((e=>{if(!e.tag)throw Error("Invalid input: expected a packet class");t[e.tag]=e})),t},anyPromise:function(e){return new Promise((async(t,r)=>{let n;await Promise.all(e.map((async e=>{try{t(await e)}catch(e){n=e}}))),r(n)}))},selectUint8Array:function(e,t,r){const n=Math.max(t.length,r.length),i=new Uint8Array(n);let o=0;for(let a=0;a{t=$.concatUint8Array([t,e]);const r=[],n=Math.floor(t.length/45),i=45*n,o=ee(t.subarray(0,i));for(let t=0;tt.length?ee(t)+"\n":""))}function ne(e){let t="";return L(e,(e=>{t+=e;let r=0;const n=[" ","\t","\r","\n"];for(let a=0;a0&&(i-r)%4!=0;i--)n.includes(t[i])&&r--;const o=te(t.substr(0,i));return t=t.substr(i),o}),(()=>te(t)))}function ie(e){return ne(e.replace(/-/g,"+").replace(/_/g,"/"))}function oe(e,t){let r=re(e).replace(/[\r\n]/g,"");return t&&(r=r.replace(/[+]/g,"-").replace(/[/]/g,"_").replace(/[=]/g,"")),r}X?(ee=e=>X.from(e).toString("base64"),te=e=>{const t=X.from(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}):(ee=e=>btoa($.uint8ArrayToString(e)),te=e=>$.stringToUint8Array(atob(e)));var ae={preferredHashAlgorithm:Y.hash.sha256,preferredSymmetricAlgorithm:Y.symmetric.aes256,preferredCompressionAlgorithm:Y.compression.uncompressed,deflateLevel:6,aeadProtect:!1,preferredAEADAlgorithm:Y.aead.eax,aeadChunkSizeByte:12,v5Keys:!1,s2kIterationCountByte:224,allowUnauthenticatedMessages:!1,allowUnauthenticatedStream:!1,checksumRequired:!1,minRSABits:2047,passwordCollisionCheck:!1,revocationsExpire:!1,allowInsecureDecryptionWithSigningKeys:!1,allowInsecureVerificationWithReformattedKeys:!1,constantTimePKCS1Decryption:!1,constantTimePKCS1DecryptionSupportedSymmetricAlgorithms:new Set([Y.symmetric.aes128,Y.symmetric.aes192,Y.symmetric.aes256]),minBytesForWebCrypto:1e3,ignoreUnsupportedPackets:!0,ignoreMalformedPackets:!1,additionalAllowedPackets:[],showVersion:!1,showComment:!1,versionString:"OpenPGP.js 5.11.2",commentString:"https://openpgpjs.org",maxUserIDLength:5120,knownNotations:[],useIndutnyElliptic:!0,rejectHashAlgorithms:new Set([Y.hash.md5,Y.hash.ripemd]),rejectMessageHashAlgorithms:new Set([Y.hash.md5,Y.hash.ripemd,Y.hash.sha1]),rejectPublicKeyAlgorithms:new Set([Y.publicKey.elgamal,Y.publicKey.dsa]),rejectCurves:new Set([Y.curve.secp256k1])};function se(e){const t=e.match(/^-----BEGIN PGP (MESSAGE, PART \d+\/\d+|MESSAGE, PART \d+|SIGNED MESSAGE|MESSAGE|PUBLIC KEY BLOCK|PRIVATE KEY BLOCK|SIGNATURE)-----$/m);if(!t)throw Error("Unknown ASCII armor type");return/MESSAGE, PART \d+\/\d+/.test(t[1])?Y.armor.multipartSection:/MESSAGE, PART \d+/.test(t[1])?Y.armor.multipartLast:/SIGNED MESSAGE/.test(t[1])?Y.armor.signed:/MESSAGE/.test(t[1])?Y.armor.message:/PUBLIC KEY BLOCK/.test(t[1])?Y.armor.publicKey:/PRIVATE KEY BLOCK/.test(t[1])?Y.armor.privateKey:/SIGNATURE/.test(t[1])?Y.armor.signature:void 0}function ce(e,t){let r="";return t.showVersion&&(r+="Version: "+t.versionString+"\n"),t.showComment&&(r+="Comment: "+t.commentString+"\n"),e&&(r+="Comment: "+e+"\n"),r+="\n",r}function ue(e){return re(function(e){let t=13501623;return L(e,(e=>{const r=de?Math.floor(e.length/4):0,n=new Uint32Array(e.buffer,e.byteOffset,r);for(let i=0;i>24&255]^le[1][t>>16&255]^le[2][t>>8&255]^le[3][255&t];for(let i=4*r;i>8^le[0][255&t^e[i]]}),(()=>new Uint8Array([t,t>>8,t>>16])))}(e))}const le=[Array(255),Array(255),Array(255),Array(255)];for(let Vp=0;Vp<=255;Vp++){let e=Vp<<16;for(let t=0;t<8;t++)e=e<<1^(8388608&e?8801531:0);le[0][Vp]=(16711680&e)>>16|65280&e|(255&e)<<16}for(let Vp=0;Vp<=255;Vp++)le[1][Vp]=le[0][Vp]>>8^le[0][255&le[0][Vp]];for(let Vp=0;Vp<=255;Vp++)le[2][Vp]=le[1][Vp]>>8^le[0][255&le[1][Vp]];for(let Vp=0;Vp<=255;Vp++)le[3][Vp]=le[2][Vp]>>8^le[0][255&le[2][Vp]];const de=function(){const e=new ArrayBuffer(2);return new DataView(e).setInt16(0,255,!0),255===new Int16Array(e)[0]}();function fe(e){for(let t=0;t=0&&n!==e.length-1&&(t=e.slice(0,n),r=e.slice(n+1).substr(0,4)),{body:t,checksum:r}}function pe(e,t=ae){return new Promise((async(r,n)=>{try{const i=/^-----[^-]+-----$/m,o=/^[ \f\r\t\u00a0\u2000-\u200a\u202f\u205f\u3000]*$/;let a;const s=[];let c,u,l,d=s,f=[],h=ne(F(e,(async(e,t)=>{const p=D(e);try{for(;;){let e=await p.readLine();if(void 0===e)throw Error("Misformed armored text");if(e=$.removeTrailingSpaces(e.replace(/[\r\n]/g,"")),a)if(c)u||2!==a||(i.test(e)?(f=f.join("\r\n"),u=!0,fe(d),d=[],c=!1):f.push(e.replace(/^- /,"")));else if(i.test(e)&&n(Error("Mandatory blank line missing between armor headers and armor data")),o.test(e)){if(fe(d),c=!0,u||2!==a){r({text:f,data:h,headers:s,type:a});break}}else d.push(e);else i.test(e)&&(a=se(e))}}catch(e){return void n(e)}const g=O(t);try{for(;;){await g.ready;const{done:e,value:t}=await p.read();if(e)throw Error("Misformed armored text");const r=t+"";if(-1!==r.indexOf("=")||-1!==r.indexOf("-")){let e=await p.readToEnd();e.length||(e=""),e=r+e,e=$.removeTrailingSpaces(e.replace(/\r/g,""));const t=e.split(i);if(1===t.length)throw Error("Misformed armored text");const n=he(t[0].slice(0,-1));l=n.checksum,await g.write(n.body);break}await g.write(r)}await g.ready,await g.close()}catch(e){await g.abort(e)}})));h=F(h,(async(e,r)=>{const n=G(ue(H(e)));n.catch((()=>{})),await B(e,r,{preventClose:!0});const i=O(r);try{const e=(await n).replace("\n","");if(l!==e&&(l||t.checksumRequired))throw Error("Ascii armor integrity check failed");await i.ready,await i.close()}catch(e){await i.abort(e)}}))}catch(e){n(e)}})).then((async e=>(u(e.data)&&(e.data=await G(e.data)),e)))}function ge(e,t,r,n,i,o=ae){let a,s;e===Y.armor.signed&&(a=t.text,s=t.hash,t=t.data);const c=H(t),u=[];switch(e){case Y.armor.multipartSection:u.push("-----BEGIN PGP MESSAGE, PART "+r+"/"+n+"-----\n"),u.push(ce(i,o)),u.push(re(t)),u.push("=",ue(c)),u.push("-----END PGP MESSAGE, PART "+r+"/"+n+"-----\n");break;case Y.armor.multipartLast:u.push("-----BEGIN PGP MESSAGE, PART "+r+"-----\n"),u.push(ce(i,o)),u.push(re(t)),u.push("=",ue(c)),u.push("-----END PGP MESSAGE, PART "+r+"-----\n");break;case Y.armor.signed:u.push("-----BEGIN PGP SIGNED MESSAGE-----\n"),u.push("Hash: "+s+"\n\n"),u.push(a.replace(/^-/gm,"- -")),u.push("\n-----BEGIN PGP SIGNATURE-----\n"),u.push(ce(i,o)),u.push(re(t)),u.push("=",ue(c)),u.push("-----END PGP SIGNATURE-----\n");break;case Y.armor.message:u.push("-----BEGIN PGP MESSAGE-----\n"),u.push(ce(i,o)),u.push(re(t)),u.push("=",ue(c)),u.push("-----END PGP MESSAGE-----\n");break;case Y.armor.publicKey:u.push("-----BEGIN PGP PUBLIC KEY BLOCK-----\n"),u.push(ce(i,o)),u.push(re(t)),u.push("=",ue(c)),u.push("-----END PGP PUBLIC KEY BLOCK-----\n");break;case Y.armor.privateKey:u.push("-----BEGIN PGP PRIVATE KEY BLOCK-----\n"),u.push(ce(i,o)),u.push(re(t)),u.push("=",ue(c)),u.push("-----END PGP PRIVATE KEY BLOCK-----\n");break;case Y.armor.signature:u.push("-----BEGIN PGP SIGNATURE-----\n"),u.push(ce(i,o)),u.push(re(t)),u.push("=",ue(c)),u.push("-----END PGP SIGNATURE-----\n")}return $.concat(u)}class me{constructor(){this.bytes=""}read(e){return this.bytes=$.uint8ArrayToString(e.subarray(0,8)),this.bytes.length}write(){return $.stringToUint8Array(this.bytes)}toHex(){return $.uint8ArrayToHex($.stringToUint8Array(this.bytes))}equals(e,t=!1){return t&&(e.isWildcard()||this.isWildcard())||this.bytes===e.bytes}isNull(){return""===this.bytes}isWildcard(){return/^0+$/.test(this.toHex())}static mapToHex(e){return e.toHex()}static fromID(e){const t=new me;return t.read($.hexToUint8Array(e)),t}static wildcard(){const e=new me;return e.read(new Uint8Array(8)),e}}var ye=function(){var e,t,r=!1;function n(r,n){var i=e[(t[r]+t[n])%255];return 0!==r&&0!==n||(i=0),i}var i,o,a,s,c=!1;function u(){function u(r){var n,i,o;for(i=o=function(r){var n=e[255-t[r]];return 0===r&&(n=0),n}(r),n=0;n<4;n++)o^=i=255&(i<<1|i>>>7);return 99^o}r||function(){e=[],t=[];var n,i,o=1;for(n=0;n<255;n++)e[n]=o,i=128&o,o<<=1,o&=255,128===i&&(o^=27),o^=e[n],t[e[n]]=n;e[255]=e[0],t[0]=0,r=!0}(),i=[],o=[],a=[[],[],[],[]],s=[[],[],[],[]];for(var l=0;l<256;l++){var d=u(l);i[l]=d,o[d]=l,a[0][l]=n(2,d)<<24|d<<16|d<<8|n(3,d),s[0][d]=n(14,l)<<24|n(9,l)<<16|n(13,l)<<8|n(11,l);for(var f=1;f<4;f++)a[f][l]=a[f-1][l]>>>8|a[f-1][l]<<24,s[f][d]=s[f-1][d]>>>8|s[f-1][d]<<24}c=!0}var l=function(e,t){c||u();var r=new Uint32Array(t);r.set(i,512),r.set(o,768);for(var n=0;n<4;n++)r.set(a[n],4096+1024*n>>2),r.set(s[n],8192+1024*n>>2);var l=function(e,t,r){"use asm";var n=0,i=0,o=0,a=0,s=0,c=0,u=0,l=0,d=0,f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,A=0,C=0,E=0;var x=new e.Uint32Array(r),S=new e.Uint8Array(r);function I(e,t,r,s,c,u,l,d){e=e|0;t=t|0;r=r|0;s=s|0;c=c|0;u=u|0;l=l|0;d=d|0;var f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0;f=r|0x400,h=r|0x800,p=r|0xc00;c=c^x[(e|0)>>2],u=u^x[(e|4)>>2],l=l^x[(e|8)>>2],d=d^x[(e|12)>>2];for(v=16;(v|0)<=s<<4;v=v+16|0){g=x[(r|c>>22&1020)>>2]^x[(f|u>>14&1020)>>2]^x[(h|l>>6&1020)>>2]^x[(p|d<<2&1020)>>2]^x[(e|v|0)>>2],m=x[(r|u>>22&1020)>>2]^x[(f|l>>14&1020)>>2]^x[(h|d>>6&1020)>>2]^x[(p|c<<2&1020)>>2]^x[(e|v|4)>>2],y=x[(r|l>>22&1020)>>2]^x[(f|d>>14&1020)>>2]^x[(h|c>>6&1020)>>2]^x[(p|u<<2&1020)>>2]^x[(e|v|8)>>2],b=x[(r|d>>22&1020)>>2]^x[(f|c>>14&1020)>>2]^x[(h|u>>6&1020)>>2]^x[(p|l<<2&1020)>>2]^x[(e|v|12)>>2];c=g,u=m,l=y,d=b}n=x[(t|c>>22&1020)>>2]<<24^x[(t|u>>14&1020)>>2]<<16^x[(t|l>>6&1020)>>2]<<8^x[(t|d<<2&1020)>>2]^x[(e|v|0)>>2],i=x[(t|u>>22&1020)>>2]<<24^x[(t|l>>14&1020)>>2]<<16^x[(t|d>>6&1020)>>2]<<8^x[(t|c<<2&1020)>>2]^x[(e|v|4)>>2],o=x[(t|l>>22&1020)>>2]<<24^x[(t|d>>14&1020)>>2]<<16^x[(t|c>>6&1020)>>2]<<8^x[(t|u<<2&1020)>>2]^x[(e|v|8)>>2],a=x[(t|d>>22&1020)>>2]<<24^x[(t|c>>14&1020)>>2]<<16^x[(t|u>>6&1020)>>2]<<8^x[(t|l<<2&1020)>>2]^x[(e|v|12)>>2]}function k(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;I(0x0000,0x0800,0x1000,E,e,t,r,n)}function _(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var o=0;I(0x0400,0x0c00,0x2000,E,e,n,r,t);o=i,i=a,a=o}function T(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;I(0x0000,0x0800,0x1000,E,s^e,c^t,u^r,l^d);s=n,c=i,u=o,l=a}function M(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;var f=0;I(0x0400,0x0c00,0x2000,E,e,d,r,t);f=i,i=a,a=f;n=n^s,i=i^c,o=o^u,a=a^l;s=e,c=t,u=r,l=d}function P(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;I(0x0000,0x0800,0x1000,E,s,c,u,l);s=n=n^e,c=i=i^t,u=o=o^r,l=a=a^d}function j(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;I(0x0000,0x0800,0x1000,E,s,c,u,l);n=n^e,i=i^t,o=o^r,a=a^d;s=e,c=t,u=r,l=d}function D(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;I(0x0000,0x0800,0x1000,E,s,c,u,l);s=n,c=i,u=o,l=a;n=n^e,i=i^t,o=o^r,a=a^d}function O(e,t,r,s){e=e|0;t=t|0;r=r|0;s=s|0;I(0x0000,0x0800,0x1000,E,d,f,h,p);p=~b&p|b&p+1;h=~y&h|y&h+((p|0)==0);f=~m&f|m&f+((h|0)==0);d=~g&d|g&d+((f|0)==0);n=n^e;i=i^t;o=o^r;a=a^s}function B(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,a=0,d=0,f=0,h=0,p=0,g=0,m=0,y=0;e=e^s,t=t^c,r=r^u,n=n^l;i=v|0,o=w|0,a=A|0,d=C|0;for(;(m|0)<128;m=m+1|0){if(i>>>31){f=f^e,h=h^t,p=p^r,g=g^n}i=i<<1|o>>>31,o=o<<1|a>>>31,a=a<<1|d>>>31,d=d<<1;y=n&1;n=n>>>1|r<<31,r=r>>>1|t<<31,t=t>>>1|e<<31,e=e>>>1;if(y)e=e^0xe1000000}s=f,c=h,u=p,l=g}function N(e){e=e|0;E=e}function R(e,t,r,s){e=e|0;t=t|0;r=r|0;s=s|0;n=e,i=t,o=r,a=s}function L(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;s=e,c=t,u=r,l=n}function F(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;d=e,f=t,h=r,p=n}function U(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;g=e,m=t,y=r,b=n}function z(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;p=~b&p|b&n,h=~y&h|y&r,f=~m&f|m&t,d=~g&d|g&e}function H(e){e=e|0;if(e&15)return-1;S[e|0]=n>>>24,S[e|1]=n>>>16&255,S[e|2]=n>>>8&255,S[e|3]=n&255,S[e|4]=i>>>24,S[e|5]=i>>>16&255,S[e|6]=i>>>8&255,S[e|7]=i&255,S[e|8]=o>>>24,S[e|9]=o>>>16&255,S[e|10]=o>>>8&255,S[e|11]=o&255,S[e|12]=a>>>24,S[e|13]=a>>>16&255,S[e|14]=a>>>8&255,S[e|15]=a&255;return 16}function V(e){e=e|0;if(e&15)return-1;S[e|0]=s>>>24,S[e|1]=s>>>16&255,S[e|2]=s>>>8&255,S[e|3]=s&255,S[e|4]=c>>>24,S[e|5]=c>>>16&255,S[e|6]=c>>>8&255,S[e|7]=c&255,S[e|8]=u>>>24,S[e|9]=u>>>16&255,S[e|10]=u>>>8&255,S[e|11]=u&255,S[e|12]=l>>>24,S[e|13]=l>>>16&255,S[e|14]=l>>>8&255,S[e|15]=l&255;return 16}function K(){k(0,0,0,0);v=n,w=i,A=o,C=a}function G(e,t,r){e=e|0;t=t|0;r=r|0;var s=0;if(t&15)return-1;while((r|0)>=16){Q[e&7](S[t|0]<<24|S[t|1]<<16|S[t|2]<<8|S[t|3],S[t|4]<<24|S[t|5]<<16|S[t|6]<<8|S[t|7],S[t|8]<<24|S[t|9]<<16|S[t|10]<<8|S[t|11],S[t|12]<<24|S[t|13]<<16|S[t|14]<<8|S[t|15]);S[t|0]=n>>>24,S[t|1]=n>>>16&255,S[t|2]=n>>>8&255,S[t|3]=n&255,S[t|4]=i>>>24,S[t|5]=i>>>16&255,S[t|6]=i>>>8&255,S[t|7]=i&255,S[t|8]=o>>>24,S[t|9]=o>>>16&255,S[t|10]=o>>>8&255,S[t|11]=o&255,S[t|12]=a>>>24,S[t|13]=a>>>16&255,S[t|14]=a>>>8&255,S[t|15]=a&255;s=s+16|0,t=t+16|0,r=r-16|0}return s|0}function q(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;if(t&15)return-1;while((r|0)>=16){W[e&1](S[t|0]<<24|S[t|1]<<16|S[t|2]<<8|S[t|3],S[t|4]<<24|S[t|5]<<16|S[t|6]<<8|S[t|7],S[t|8]<<24|S[t|9]<<16|S[t|10]<<8|S[t|11],S[t|12]<<24|S[t|13]<<16|S[t|14]<<8|S[t|15]);n=n+16|0,t=t+16|0,r=r-16|0}return n|0}var Q=[k,_,T,M,P,j,D,O];var W=[T,B];return{set_rounds:N,set_state:R,set_iv:L,set_nonce:F,set_mask:U,set_counter:z,get_state:H,get_iv:V,gcm_init:K,cipher:G,mac:q}}({Uint8Array:Uint8Array,Uint32Array:Uint32Array},e,t);return l.set_key=function(e,t,n,o,a,c,u,d,f){var h=r.subarray(0,60),p=r.subarray(256,316);h.set([t,n,o,a,c,u,d,f]);for(var g=e,m=1;g<4*e+28;g++){var y=h[g-1];(g%e==0||8===e&&g%e==4)&&(y=i[y>>>24]<<24^i[y>>>16&255]<<16^i[y>>>8&255]<<8^i[255&y]),g%e==0&&(y=y<<8^y>>>24^m<<24,m=m<<1^(128&m?27:0)),h[g]=h[g-e]^y}for(var b=0;b=g-4?y:s[0][i[y>>>24]]^s[1][i[y>>>16&255]]^s[2][i[y>>>8&255]]^s[3][i[255&y]];l.set_rounds(e+5)},l};return l.ENC={ECB:0,CBC:2,CFB:4,OFB:6,CTR:7},l.DEC={ECB:1,CBC:3,CFB:5,OFB:6,CTR:7},l.MAC={CBC:0,GCM:1},l.HEAP_DATA=16384,l}();function be(e){return e instanceof Uint8Array}function ve(e,t){const r=e?e.byteLength:t||65536;if(4095&r||r<=0)throw Error("heap size must be a positive integer and a multiple of 4096");return e||new Uint8Array(new ArrayBuffer(r))}function we(e,t,r,n,i){const o=e.length-t,a=oe+t.length),0),r=new Uint8Array(t);let n=0;for(let i=0;i>2,i.getUint32(0),i.getUint32(4),i.getUint32(8),i.getUint32(12),n>16?i.getUint32(16):0,n>16?i.getUint32(20):0,n>24?i.getUint32(24):0,n>24?i.getUint32(28):0),void 0!==t){if(16!==t.length)throw new Ee("illegal iv size");let e=new DataView(t.buffer,t.byteOffset,t.byteLength);r.set_iv(e.getUint32(0),e.getUint32(4),e.getUint32(8),e.getUint32(12))}else r.set_iv(0,0,0,0)}AES_Encrypt_process(e){if(!be(e))throw new TypeError("data isn't of expected type");let{heap:t,asm:r}=this.acquire_asm(),n=ye.ENC[this.mode],i=ye.HEAP_DATA,o=this.pos,a=this.len,s=0,c=e.length||0,u=0,l=0,d=new Uint8Array(a+c&-16);for(;c>0;)l=we(t,o+a,e,s,c),a+=l,s+=l,c-=l,l=r.cipher(n,i+o,a),l&&d.set(t.subarray(o,o+l),u),u+=l,l0;)f=we(t,o+a,e,s,c),a+=f,s+=f,c-=f,f=r.cipher(n,i+o,a-(c?0:d)),f&&h.set(t.subarray(o,o+f),u),u+=f,f0){if(o%16){if(this.hasOwnProperty("padding"))throw new Ee("data length must be a multiple of the block size");o+=16-o%16}if(t.cipher(r,n+i,o),this.hasOwnProperty("padding")&&this.padding){let t=e[i+a-1];if(t<1||t>16||t>a)throw new xe("bad padding");let r=0;for(let n=t;n>1;n--)r|=t^e[i+a-n];if(r)throw new xe("bad padding");a-=t}}const s=new Uint8Array(a);return a>0&&s.set(e.subarray(i,i+a)),this.pos=0,this.len=0,this.release_asm(),s}}class _e{static encrypt(e,t,r=!1){return new _e(t,r).encrypt(e)}static decrypt(e,t,r=!1){return new _e(t,r).decrypt(e)}constructor(e,t=!1,r){this.aes=r||new ke(e,void 0,t,"ECB")}encrypt(e){return Ae(this.aes.AES_Encrypt_process(e),this.aes.AES_Encrypt_finish())}decrypt(e){return Ae(this.aes.AES_Decrypt_process(e),this.aes.AES_Decrypt_finish())}}function Te(e){const t=function(e){const t=new _e(e);this.encrypt=function(e){return t.encrypt(e)},this.decrypt=function(e){return t.decrypt(e)}};return t.blockSize=t.prototype.blockSize=16,t.keySize=t.prototype.keySize=e/8,t}function Me(e,t,r,n,i,o){const a=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],s=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],c=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],u=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],l=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],d=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],f=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],h=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];let p,g,m,y,b,v,w,A,C,E,x,S,I,k,_=0,T=t.length;const M=32===e.length?3:9;A=3===M?r?[0,32,2]:[30,-2,-2]:r?[0,32,2,62,30,-2,64,96,2]:[94,62,-2,32,64,2,30,-2,-2],r&&(t=function(e,t){const r=8-e.length%8;let n;if(2===t&&r<8)n=32;else if(1===t)n=r;else{if(t||!(r<8)){if(8===r)return e;throw Error("des: invalid padding")}n=0}const i=new Uint8Array(e.length+r);for(let o=0;o>>4^w),w^=m,v^=m<<4,m=65535&(v>>>16^w),w^=m,v^=m<<16,m=858993459&(w>>>2^v),v^=m,w^=m<<2,m=16711935&(w>>>8^v),v^=m,w^=m<<8,m=1431655765&(v>>>1^w),w^=m,v^=m<<1,v=v<<1|v>>>31,w=w<<1|w>>>31,g=0;g>>4|w<<28)^e[p+1],m=v,v=w,w=m^(s[y>>>24&63]|u[y>>>16&63]|d[y>>>8&63]|h[63&y]|a[b>>>24&63]|c[b>>>16&63]|l[b>>>8&63]|f[63&b]);m=v,v=w,w=m}v=v>>>1|v<<31,w=w>>>1|w<<31,m=1431655765&(v>>>1^w),w^=m,v^=m<<1,m=16711935&(w>>>8^v),v^=m,w^=m<<8,m=858993459&(w>>>2^v),v^=m,w^=m<<2,m=65535&(v>>>16^w),w^=m,v^=m<<16,m=252645135&(v>>>4^w),w^=m,v^=m<<4,1===n&&(r?(C=v,x=w):(v^=E,w^=S)),P[j++]=v>>>24,P[j++]=v>>>16&255,P[j++]=v>>>8&255,P[j++]=255&v,P[j++]=w>>>24,P[j++]=w>>>16&255,P[j++]=w>>>8&255,P[j++]=255&w}return r||(P=function(e,t){let r,n=null;if(2===t)r=32;else if(1===t)n=e[e.length-1];else{if(t)throw Error("des: invalid padding");r=0}if(!n){for(n=1;e[e.length-n]===r;)n++;n--}return e.subarray(0,e.length-n)}(P,o)),P}function Pe(e){const t=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],r=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],n=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],i=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],o=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],a=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],s=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],u=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],l=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],d=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],f=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],h=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],p=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],g=e.length>8?3:1,m=Array(32*g),y=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0];let b,v,w,A=0,C=0;for(let E=0;E>>4^E),E^=w,g^=w<<4,w=65535&(E>>>-16^g),g^=w,E^=w<<-16,w=858993459&(g>>>2^E),E^=w,g^=w<<2,w=65535&(E>>>-16^g),g^=w,E^=w<<-16,w=1431655765&(g>>>1^E),E^=w,g^=w<<1,w=16711935&(E>>>8^g),g^=w,E^=w<<8,w=1431655765&(g>>>1^E),E^=w,g^=w<<1,w=g<<8|E>>>20&240,g=E<<24|E<<8&16711680|E>>>8&65280|E>>>24&240,E=w;for(let e=0;e<16;e++)y[e]?(g=g<<2|g>>>26,E=E<<2|E>>>26):(g=g<<1|g>>>27,E=E<<1|E>>>27),g&=-15,E&=-15,b=t[g>>>28]|r[g>>>24&15]|n[g>>>20&15]|i[g>>>16&15]|o[g>>>12&15]|a[g>>>8&15]|s[g>>>4&15],v=c[E>>>28]|u[E>>>24&15]|l[E>>>20&15]|d[E>>>16&15]|f[E>>>12&15]|h[E>>>8&15]|p[E>>>4&15],w=65535&(v>>>16^b),m[C++]=b^w,m[C++]=v^w<<16}return m}function je(e){this.key=[];for(let t=0;t<3;t++)this.key.push(new Uint8Array(e.subarray(8*t,8*t+8)));this.encrypt=function(e){return Me(Pe(this.key[2]),Me(Pe(this.key[1]),Me(Pe(this.key[0]),e,!0,0,null,null),!1,0,null,null),!0,0,null,null)}}function De(){this.BlockSize=8,this.KeySize=16,this.setKey=function(e){if(this.masking=Array(16),this.rotate=Array(16),this.reset(),e.length!==this.KeySize)throw Error("CAST-128: keys must be 16 bytes");return this.keySchedule(e),!0},this.reset=function(){for(let e=0;e<16;e++)this.masking[e]=0,this.rotate[e]=0},this.getBlockSize=function(){return this.BlockSize},this.encrypt=function(e){const t=Array(e.length);for(let o=0;o>>24&255,t[o+1]=c>>>16&255,t[o+2]=c>>>8&255,t[o+3]=255&c,t[o+4]=s>>>24&255,t[o+5]=s>>>16&255,t[o+6]=s>>>8&255,t[o+7]=255&s}return t},this.decrypt=function(e){const t=Array(e.length);for(let o=0;o>>24&255,t[o+1]=c>>>16&255,t[o+2]=c>>>8&255,t[o+3]=255&c,t[o+4]=s>>>24&255,t[o+5]=s>>16&255,t[o+6]=s>>8&255,t[o+7]=255&s}return t};const e=[,,,,];e[0]=[,,,,],e[0][0]=[4,0,13,15,12,14,8],e[0][1]=[5,2,16,18,17,19,10],e[0][2]=[6,3,23,22,21,20,9],e[0][3]=[7,1,26,25,27,24,11],e[1]=[,,,,],e[1][0]=[0,6,21,23,20,22,16],e[1][1]=[1,4,0,2,1,3,18],e[1][2]=[2,5,7,6,5,4,17],e[1][3]=[3,7,10,9,11,8,19],e[2]=[,,,,],e[2][0]=[4,0,13,15,12,14,8],e[2][1]=[5,2,16,18,17,19,10],e[2][2]=[6,3,23,22,21,20,9],e[2][3]=[7,1,26,25,27,24,11],e[3]=[,,,,],e[3][0]=[0,6,21,23,20,22,16],e[3][1]=[1,4,0,2,1,3,18],e[3][2]=[2,5,7,6,5,4,17],e[3][3]=[3,7,10,9,11,8,19];const t=[,,,,];function r(e,t,r){const n=t+e,i=n<>>32-r;return(o[0][i>>>24]^o[1][i>>>16&255])-o[2][i>>>8&255]+o[3][255&i]}function n(e,t,r){const n=t^e,i=n<>>32-r;return o[0][i>>>24]-o[1][i>>>16&255]+o[2][i>>>8&255]^o[3][255&i]}function i(e,t,r){const n=t-e,i=n<>>32-r;return(o[0][i>>>24]+o[1][i>>>16&255]^o[2][i>>>8&255])-o[3][255&i]}t[0]=[,,,,],t[0][0]=[24,25,23,22,18],t[0][1]=[26,27,21,20,22],t[0][2]=[28,29,19,18,25],t[0][3]=[30,31,17,16,28],t[1]=[,,,,],t[1][0]=[3,2,12,13,8],t[1][1]=[1,0,14,15,13],t[1][2]=[7,6,8,9,3],t[1][3]=[5,4,10,11,7],t[2]=[,,,,],t[2][0]=[19,18,28,29,25],t[2][1]=[17,16,30,31,28],t[2][2]=[23,22,24,25,18],t[2][3]=[21,20,26,27,22],t[3]=[,,,,],t[3][0]=[8,9,7,6,3],t[3][1]=[10,11,5,4,7],t[3][2]=[12,13,3,2,8],t[3][3]=[14,15,1,0,13],this.keySchedule=function(r){const n=[,,,,,,,,],i=Array(32);let a;for(let e=0;e<4;e++)a=4*e,n[e]=r[a]<<24|r[a+1]<<16|r[a+2]<<8|r[a+3];const s=[6,7,4,5];let c,u=0;for(let l=0;l<2;l++)for(let r=0;r<4;r++){for(a=0;a<4;a++){const t=e[r][a];c=n[t[1]],c^=o[4][n[t[2]>>>2]>>>24-8*(3&t[2])&255],c^=o[5][n[t[3]>>>2]>>>24-8*(3&t[3])&255],c^=o[6][n[t[4]>>>2]>>>24-8*(3&t[4])&255],c^=o[7][n[t[5]>>>2]>>>24-8*(3&t[5])&255],c^=o[s[a]][n[t[6]>>>2]>>>24-8*(3&t[6])&255],n[t[0]]=c}for(a=0;a<4;a++){const e=t[r][a];c=o[4][n[e[0]>>>2]>>>24-8*(3&e[0])&255],c^=o[5][n[e[1]>>>2]>>>24-8*(3&e[1])&255],c^=o[6][n[e[2]>>>2]>>>24-8*(3&e[2])&255],c^=o[7][n[e[3]>>>2]>>>24-8*(3&e[3])&255],c^=o[4+a][n[e[4]>>>2]>>>24-8*(3&e[4])&255],i[u]=c,u++}}for(let e=0;e<16;e++)this.masking[e]=i[e],this.rotate[e]=31&i[16+e]};const o=[,,,,,,,,];o[0]=[821772500,2678128395,1810681135,1059425402,505495343,2617265619,1610868032,3483355465,3218386727,2294005173,3791863952,2563806837,1852023008,365126098,3269944861,584384398,677919599,3229601881,4280515016,2002735330,1136869587,3744433750,2289869850,2731719981,2714362070,879511577,1639411079,575934255,717107937,2857637483,576097850,2731753936,1725645e3,2810460463,5111599,767152862,2543075244,1251459544,1383482551,3052681127,3089939183,3612463449,1878520045,1510570527,2189125840,2431448366,582008916,3163445557,1265446783,1354458274,3529918736,3202711853,3073581712,3912963487,3029263377,1275016285,4249207360,2905708351,3304509486,1442611557,3585198765,2712415662,2731849581,3248163920,2283946226,208555832,2766454743,1331405426,1447828783,3315356441,3108627284,2957404670,2981538698,3339933917,1669711173,286233437,1465092821,1782121619,3862771680,710211251,980974943,1651941557,430374111,2051154026,704238805,4128970897,3144820574,2857402727,948965521,3333752299,2227686284,718756367,2269778983,2731643755,718440111,2857816721,3616097120,1113355533,2478022182,410092745,1811985197,1944238868,2696854588,1415722873,1682284203,1060277122,1998114690,1503841958,82706478,2315155686,1068173648,845149890,2167947013,1768146376,1993038550,3566826697,3390574031,940016341,3355073782,2328040721,904371731,1205506512,4094660742,2816623006,825647681,85914773,2857843460,1249926541,1417871568,3287612,3211054559,3126306446,1975924523,1353700161,2814456437,2438597621,1800716203,722146342,2873936343,1151126914,4160483941,2877670899,458611604,2866078500,3483680063,770352098,2652916994,3367839148,3940505011,3585973912,3809620402,718646636,2504206814,2914927912,3631288169,2857486607,2860018678,575749918,2857478043,718488780,2069512688,3548183469,453416197,1106044049,3032691430,52586708,3378514636,3459808877,3211506028,1785789304,218356169,3571399134,3759170522,1194783844,1523787992,3007827094,1975193539,2555452411,1341901877,3045838698,3776907964,3217423946,2802510864,2889438986,1057244207,1636348243,3761863214,1462225785,2632663439,481089165,718503062,24497053,3332243209,3344655856,3655024856,3960371065,1195698900,2971415156,3710176158,2115785917,4027663609,3525578417,2524296189,2745972565,3564906415,1372086093,1452307862,2780501478,1476592880,3389271281,18495466,2378148571,901398090,891748256,3279637769,3157290713,2560960102,1447622437,4284372637,216884176,2086908623,1879786977,3588903153,2242455666,2938092967,3559082096,2810645491,758861177,1121993112,215018983,642190776,4169236812,1196255959,2081185372,3508738393,941322904,4124243163,2877523539,1848581667,2205260958,3180453958,2589345134,3694731276,550028657,2519456284,3789985535,2973870856,2093648313,443148163,46942275,2734146937,1117713533,1115362972,1523183689,3717140224,1551984063],o[1]=[522195092,4010518363,1776537470,960447360,4267822970,4005896314,1435016340,1929119313,2913464185,1310552629,3579470798,3724818106,2579771631,1594623892,417127293,2715217907,2696228731,1508390405,3994398868,3925858569,3695444102,4019471449,3129199795,3770928635,3520741761,990456497,4187484609,2783367035,21106139,3840405339,631373633,3783325702,532942976,396095098,3548038825,4267192484,2564721535,2011709262,2039648873,620404603,3776170075,2898526339,3612357925,4159332703,1645490516,223693667,1567101217,3362177881,1029951347,3470931136,3570957959,1550265121,119497089,972513919,907948164,3840628539,1613718692,3594177948,465323573,2659255085,654439692,2575596212,2699288441,3127702412,277098644,624404830,4100943870,2717858591,546110314,2403699828,3655377447,1321679412,4236791657,1045293279,4010672264,895050893,2319792268,494945126,1914543101,2777056443,3894764339,2219737618,311263384,4275257268,3458730721,669096869,3584475730,3835122877,3319158237,3949359204,2005142349,2713102337,2228954793,3769984788,569394103,3855636576,1425027204,108000370,2736431443,3671869269,3043122623,1750473702,2211081108,762237499,3972989403,2798899386,3061857628,2943854345,867476300,964413654,1591880597,1594774276,2179821409,552026980,3026064248,3726140315,2283577634,3110545105,2152310760,582474363,1582640421,1383256631,2043843868,3322775884,1217180674,463797851,2763038571,480777679,2718707717,2289164131,3118346187,214354409,200212307,3810608407,3025414197,2674075964,3997296425,1847405948,1342460550,510035443,4080271814,815934613,833030224,1620250387,1945732119,2703661145,3966000196,1388869545,3456054182,2687178561,2092620194,562037615,1356438536,3409922145,3261847397,1688467115,2150901366,631725691,3840332284,549916902,3455104640,394546491,837744717,2114462948,751520235,2221554606,2415360136,3999097078,2063029875,803036379,2702586305,821456707,3019566164,360699898,4018502092,3511869016,3677355358,2402471449,812317050,49299192,2570164949,3259169295,2816732080,3331213574,3101303564,2156015656,3705598920,3546263921,143268808,3200304480,1638124008,3165189453,3341807610,578956953,2193977524,3638120073,2333881532,807278310,658237817,2969561766,1641658566,11683945,3086995007,148645947,1138423386,4158756760,1981396783,2401016740,3699783584,380097457,2680394679,2803068651,3334260286,441530178,4016580796,1375954390,761952171,891809099,2183123478,157052462,3683840763,1592404427,341349109,2438483839,1417898363,644327628,2233032776,2353769706,2201510100,220455161,1815641738,182899273,2995019788,3627381533,3702638151,2890684138,1052606899,588164016,1681439879,4038439418,2405343923,4229449282,167996282,1336969661,1688053129,2739224926,1543734051,1046297529,1138201970,2121126012,115334942,1819067631,1902159161,1941945968,2206692869,1159982321],o[2]=[2381300288,637164959,3952098751,3893414151,1197506559,916448331,2350892612,2932787856,3199334847,4009478890,3905886544,1373570990,2450425862,4037870920,3778841987,2456817877,286293407,124026297,3001279700,1028597854,3115296800,4208886496,2691114635,2188540206,1430237888,1218109995,3572471700,308166588,570424558,2187009021,2455094765,307733056,1310360322,3135275007,1384269543,2388071438,863238079,2359263624,2801553128,3380786597,2831162807,1470087780,1728663345,4072488799,1090516929,532123132,2389430977,1132193179,2578464191,3051079243,1670234342,1434557849,2711078940,1241591150,3314043432,3435360113,3091448339,1812415473,2198440252,267246943,796911696,3619716990,38830015,1526438404,2806502096,374413614,2943401790,1489179520,1603809326,1920779204,168801282,260042626,2358705581,1563175598,2397674057,1356499128,2217211040,514611088,2037363785,2186468373,4022173083,2792511869,2913485016,1173701892,4200428547,3896427269,1334932762,2455136706,602925377,2835607854,1613172210,41346230,2499634548,2457437618,2188827595,41386358,4172255629,1313404830,2405527007,3801973774,2217704835,873260488,2528884354,2478092616,4012915883,2555359016,2006953883,2463913485,575479328,2218240648,2099895446,660001756,2341502190,3038761536,3888151779,3848713377,3286851934,1022894237,1620365795,3449594689,1551255054,15374395,3570825345,4249311020,4151111129,3181912732,310226346,1133119310,530038928,136043402,2476768958,3107506709,2544909567,1036173560,2367337196,1681395281,1758231547,3641649032,306774401,1575354324,3716085866,1990386196,3114533736,2455606671,1262092282,3124342505,2768229131,4210529083,1833535011,423410938,660763973,2187129978,1639812e3,3508421329,3467445492,310289298,272797111,2188552562,2456863912,310240523,677093832,1013118031,901835429,3892695601,1116285435,3036471170,1337354835,243122523,520626091,277223598,4244441197,4194248841,1766575121,594173102,316590669,742362309,3536858622,4176435350,3838792410,2501204839,1229605004,3115755532,1552908988,2312334149,979407927,3959474601,1148277331,176638793,3614686272,2083809052,40992502,1340822838,2731552767,3535757508,3560899520,1354035053,122129617,7215240,2732932949,3118912700,2718203926,2539075635,3609230695,3725561661,1928887091,2882293555,1988674909,2063640240,2491088897,1459647954,4189817080,2302804382,1113892351,2237858528,1927010603,4002880361,1856122846,1594404395,2944033133,3855189863,3474975698,1643104450,4054590833,3431086530,1730235576,2984608721,3084664418,2131803598,4178205752,267404349,1617849798,1616132681,1462223176,736725533,2327058232,551665188,2945899023,1749386277,2575514597,1611482493,674206544,2201269090,3642560800,728599968,1680547377,2620414464,1388111496,453204106,4156223445,1094905244,2754698257,2201108165,3757000246,2704524545,3922940700,3996465027],o[3]=[2645754912,532081118,2814278639,3530793624,1246723035,1689095255,2236679235,4194438865,2116582143,3859789411,157234593,2045505824,4245003587,1687664561,4083425123,605965023,672431967,1336064205,3376611392,214114848,4258466608,3232053071,489488601,605322005,3998028058,264917351,1912574028,756637694,436560991,202637054,135989450,85393697,2152923392,3896401662,2895836408,2145855233,3535335007,115294817,3147733898,1922296357,3464822751,4117858305,1037454084,2725193275,2127856640,1417604070,1148013728,1827919605,642362335,2929772533,909348033,1346338451,3547799649,297154785,1917849091,4161712827,2883604526,3968694238,1469521537,3780077382,3375584256,1763717519,136166297,4290970789,1295325189,2134727907,2798151366,1566297257,3672928234,2677174161,2672173615,965822077,2780786062,289653839,1133871874,3491843819,35685304,1068898316,418943774,672553190,642281022,2346158704,1954014401,3037126780,4079815205,2030668546,3840588673,672283427,1776201016,359975446,3750173538,555499703,2769985273,1324923,69110472,152125443,3176785106,3822147285,1340634837,798073664,1434183902,15393959,216384236,1303690150,3881221631,3711134124,3960975413,106373927,2578434224,1455997841,1801814300,1578393881,1854262133,3188178946,3258078583,2302670060,1539295533,3505142565,3078625975,2372746020,549938159,3278284284,2620926080,181285381,2865321098,3970029511,68876850,488006234,1728155692,2608167508,836007927,2435231793,919367643,3339422534,3655756360,1457871481,40520939,1380155135,797931188,234455205,2255801827,3990488299,397000196,739833055,3077865373,2871719860,4022553888,772369276,390177364,3853951029,557662966,740064294,1640166671,1699928825,3535942136,622006121,3625353122,68743880,1742502,219489963,1664179233,1577743084,1236991741,410585305,2366487942,823226535,1050371084,3426619607,3586839478,212779912,4147118561,1819446015,1911218849,530248558,3486241071,3252585495,2886188651,3410272728,2342195030,20547779,2982490058,3032363469,3631753222,312714466,1870521650,1493008054,3491686656,615382978,4103671749,2534517445,1932181,2196105170,278426614,6369430,3274544417,2913018367,697336853,2143000447,2946413531,701099306,1558357093,2805003052,3500818408,2321334417,3567135975,216290473,3591032198,23009561,1996984579,3735042806,2024298078,3739440863,569400510,2339758983,3016033873,3097871343,3639523026,3844324983,3256173865,795471839,2951117563,4101031090,4091603803,3603732598,971261452,534414648,428311343,3389027175,2844869880,694888862,1227866773,2456207019,3043454569,2614353370,3749578031,3676663836,459166190,4132644070,1794958188,51825668,2252611902,3084671440,2036672799,3436641603,1099053433,2469121526,3059204941,1323291266,2061838604,1018778475,2233344254,2553501054,334295216,3556750194,1065731521,183467730],o[4]=[2127105028,745436345,2601412319,2788391185,3093987327,500390133,1155374404,389092991,150729210,3891597772,3523549952,1935325696,716645080,946045387,2901812282,1774124410,3869435775,4039581901,3293136918,3438657920,948246080,363898952,3867875531,1286266623,1598556673,68334250,630723836,1104211938,1312863373,613332731,2377784574,1101634306,441780740,3129959883,1917973735,2510624549,3238456535,2544211978,3308894634,1299840618,4076074851,1756332096,3977027158,297047435,3790297736,2265573040,3621810518,1311375015,1667687725,47300608,3299642885,2474112369,201668394,1468347890,576830978,3594690761,3742605952,1958042578,1747032512,3558991340,1408974056,3366841779,682131401,1033214337,1545599232,4265137049,206503691,103024618,2855227313,1337551222,2428998917,2963842932,4015366655,3852247746,2796956967,3865723491,3747938335,247794022,3755824572,702416469,2434691994,397379957,851939612,2314769512,218229120,1380406772,62274761,214451378,3170103466,2276210409,3845813286,28563499,446592073,1693330814,3453727194,29968656,3093872512,220656637,2470637031,77972100,1667708854,1358280214,4064765667,2395616961,325977563,4277240721,4220025399,3605526484,3355147721,811859167,3069544926,3962126810,652502677,3075892249,4132761541,3498924215,1217549313,3250244479,3858715919,3053989961,1538642152,2279026266,2875879137,574252750,3324769229,2651358713,1758150215,141295887,2719868960,3515574750,4093007735,4194485238,1082055363,3417560400,395511885,2966884026,179534037,3646028556,3738688086,1092926436,2496269142,257381841,3772900718,1636087230,1477059743,2499234752,3811018894,2675660129,3285975680,90732309,1684827095,1150307763,1723134115,3237045386,1769919919,1240018934,815675215,750138730,2239792499,1234303040,1995484674,138143821,675421338,1145607174,1936608440,3238603024,2345230278,2105974004,323969391,779555213,3004902369,2861610098,1017501463,2098600890,2628620304,2940611490,2682542546,1171473753,3656571411,3687208071,4091869518,393037935,159126506,1662887367,1147106178,391545844,3452332695,1891500680,3016609650,1851642611,546529401,1167818917,3194020571,2848076033,3953471836,575554290,475796850,4134673196,450035699,2351251534,844027695,1080539133,86184846,1554234488,3692025454,1972511363,2018339607,1491841390,1141460869,1061690759,4244549243,2008416118,2351104703,2868147542,1598468138,722020353,1027143159,212344630,1387219594,1725294528,3745187956,2500153616,458938280,4129215917,1828119673,544571780,3503225445,2297937496,1241802790,267843827,2694610800,1397140384,1558801448,3782667683,1806446719,929573330,2234912681,400817706,616011623,4121520928,3603768725,1761550015,1968522284,4053731006,4192232858,4005120285,872482584,3140537016,3894607381,2287405443,1963876937,3663887957,1584857e3,2975024454,1833426440,4025083860],o[5]=[4143615901,749497569,1285769319,3795025788,2514159847,23610292,3974978748,844452780,3214870880,3751928557,2213566365,1676510905,448177848,3730751033,4086298418,2307502392,871450977,3222878141,4110862042,3831651966,2735270553,1310974780,2043402188,1218528103,2736035353,4274605013,2702448458,3936360550,2693061421,162023535,2827510090,687910808,23484817,3784910947,3371371616,779677500,3503626546,3473927188,4157212626,3500679282,4248902014,2466621104,3899384794,1958663117,925738300,1283408968,3669349440,1840910019,137959847,2679828185,1239142320,1315376211,1547541505,1690155329,739140458,3128809933,3933172616,3876308834,905091803,1548541325,4040461708,3095483362,144808038,451078856,676114313,2861728291,2469707347,993665471,373509091,2599041286,4025009006,4170239449,2149739950,3275793571,3749616649,2794760199,1534877388,572371878,2590613551,1753320020,3467782511,1405125690,4270405205,633333386,3026356924,3475123903,632057672,2846462855,1404951397,3882875879,3915906424,195638627,2385783745,3902872553,1233155085,3355999740,2380578713,2702246304,2144565621,3663341248,3894384975,2502479241,4248018925,3094885567,1594115437,572884632,3385116731,767645374,1331858858,1475698373,3793881790,3532746431,1321687957,619889600,1121017241,3440213920,2070816767,2833025776,1933951238,4095615791,890643334,3874130214,859025556,360630002,925594799,1764062180,3920222280,4078305929,979562269,2810700344,4087740022,1949714515,546639971,1165388173,3069891591,1495988560,922170659,1291546247,2107952832,1813327274,3406010024,3306028637,4241950635,153207855,2313154747,1608695416,1150242611,1967526857,721801357,1220138373,3691287617,3356069787,2112743302,3281662835,1111556101,1778980689,250857638,2298507990,673216130,2846488510,3207751581,3562756981,3008625920,3417367384,2198807050,529510932,3547516680,3426503187,2364944742,102533054,2294910856,1617093527,1204784762,3066581635,1019391227,1069574518,1317995090,1691889997,3661132003,510022745,3238594800,1362108837,1817929911,2184153760,805817662,1953603311,3699844737,120799444,2118332377,207536705,2282301548,4120041617,145305846,2508124933,3086745533,3261524335,1877257368,2977164480,3160454186,2503252186,4221677074,759945014,254147243,2767453419,3801518371,629083197,2471014217,907280572,3900796746,940896768,2751021123,2625262786,3161476951,3661752313,3260732218,1425318020,2977912069,1496677566,3988592072,2140652971,3126511541,3069632175,977771578,1392695845,1698528874,1411812681,1369733098,1343739227,3620887944,1142123638,67414216,3102056737,3088749194,1626167401,2546293654,3941374235,697522451,33404913,143560186,2595682037,994885535,1247667115,3859094837,2699155541,3547024625,4114935275,2968073508,3199963069,2732024527,1237921620,951448369,1898488916,1211705605,2790989240,2233243581,3598044975],o[6]=[2246066201,858518887,1714274303,3485882003,713916271,2879113490,3730835617,539548191,36158695,1298409750,419087104,1358007170,749914897,2989680476,1261868530,2995193822,2690628854,3443622377,3780124940,3796824509,2976433025,4259637129,1551479e3,512490819,1296650241,951993153,2436689437,2460458047,144139966,3136204276,310820559,3068840729,643875328,1969602020,1680088954,2185813161,3283332454,672358534,198762408,896343282,276269502,3014846926,84060815,197145886,376173866,3943890818,3813173521,3545068822,1316698879,1598252827,2633424951,1233235075,859989710,2358460855,3503838400,3409603720,1203513385,1193654839,2792018475,2060853022,207403770,1144516871,3068631394,1121114134,177607304,3785736302,326409831,1929119770,2983279095,4183308101,3474579288,3200513878,3228482096,119610148,1170376745,3378393471,3163473169,951863017,3337026068,3135789130,2907618374,1183797387,2015970143,4045674555,2182986399,2952138740,3928772205,384012900,2454997643,10178499,2879818989,2596892536,111523738,2995089006,451689641,3196290696,235406569,1441906262,3890558523,3013735005,4158569349,1644036924,376726067,1006849064,3664579700,2041234796,1021632941,1374734338,2566452058,371631263,4007144233,490221539,206551450,3140638584,1053219195,1853335209,3412429660,3562156231,735133835,1623211703,3104214392,2738312436,4096837757,3366392578,3110964274,3956598718,3196820781,2038037254,3877786376,2339753847,300912036,3766732888,2372630639,1516443558,4200396704,1574567987,4069441456,4122592016,2699739776,146372218,2748961456,2043888151,35287437,2596680554,655490400,1132482787,110692520,1031794116,2188192751,1324057718,1217253157,919197030,686247489,3261139658,1028237775,3135486431,3059715558,2460921700,986174950,2661811465,4062904701,2752986992,3709736643,367056889,1353824391,731860949,1650113154,1778481506,784341916,357075625,3608602432,1074092588,2480052770,3811426202,92751289,877911070,3600361838,1231880047,480201094,3756190983,3094495953,434011822,87971354,363687820,1717726236,1901380172,3926403882,2481662265,400339184,1490350766,2661455099,1389319756,2558787174,784598401,1983468483,30828846,3550527752,2716276238,3841122214,1765724805,1955612312,1277890269,1333098070,1564029816,2704417615,1026694237,3287671188,1260819201,3349086767,1016692350,1582273796,1073413053,1995943182,694588404,1025494639,3323872702,3551898420,4146854327,453260480,1316140391,1435673405,3038941953,3486689407,1622062951,403978347,817677117,950059133,4246079218,3278066075,1486738320,1417279718,481875527,2549965225,3933690356,760697757,1452955855,3897451437,1177426808,1702951038,4085348628,2447005172,1084371187,3516436277,3068336338,1073369276,1027665953,3284188590,1230553676,1368340146,2226246512,267243139,2274220762,4070734279,2497715176,2423353163,2504755875],o[7]=[3793104909,3151888380,2817252029,895778965,2005530807,3871412763,237245952,86829237,296341424,3851759377,3974600970,2475086196,709006108,1994621201,2972577594,937287164,3734691505,168608556,3189338153,2225080640,3139713551,3033610191,3025041904,77524477,185966941,1208824168,2344345178,1721625922,3354191921,1066374631,1927223579,1971335949,2483503697,1551748602,2881383779,2856329572,3003241482,48746954,1398218158,2050065058,313056748,4255789917,393167848,1912293076,940740642,3465845460,3091687853,2522601570,2197016661,1727764327,364383054,492521376,1291706479,3264136376,1474851438,1685747964,2575719748,1619776915,1814040067,970743798,1561002147,2925768690,2123093554,1880132620,3151188041,697884420,2550985770,2607674513,2659114323,110200136,1489731079,997519150,1378877361,3527870668,478029773,2766872923,1022481122,431258168,1112503832,897933369,2635587303,669726182,3383752315,918222264,163866573,3246985393,3776823163,114105080,1903216136,761148244,3571337562,1690750982,3166750252,1037045171,1888456500,2010454850,642736655,616092351,365016990,1185228132,4174898510,1043824992,2023083429,2241598885,3863320456,3279669087,3674716684,108438443,2132974366,830746235,606445527,4173263986,2204105912,1844756978,2532684181,4245352700,2969441100,3796921661,1335562986,4061524517,2720232303,2679424040,634407289,885462008,3294724487,3933892248,2094100220,339117932,4048830727,3202280980,1458155303,2689246273,1022871705,2464987878,3714515309,353796843,2822958815,4256850100,4052777845,551748367,618185374,3778635579,4020649912,1904685140,3069366075,2670879810,3407193292,2954511620,4058283405,2219449317,3135758300,1120655984,3447565834,1474845562,3577699062,550456716,3466908712,2043752612,881257467,869518812,2005220179,938474677,3305539448,3850417126,1315485940,3318264702,226533026,965733244,321539988,1136104718,804158748,573969341,3708209826,937399083,3290727049,2901666755,1461057207,4013193437,4066861423,3242773476,2421326174,1581322155,3028952165,786071460,3900391652,3918438532,1485433313,4023619836,3708277595,3678951060,953673138,1467089153,1930354364,1533292819,2492563023,1346121658,1685000834,1965281866,3765933717,4190206607,2052792609,3515332758,690371149,3125873887,2180283551,2903598061,3933952357,436236910,289419410,14314871,1242357089,2904507907,1616633776,2666382180,585885352,3471299210,2699507360,1432659641,277164553,3354103607,770115018,2303809295,3741942315,3177781868,2853364978,2269453327,3774259834,987383833,1290892879,225909803,1741533526,890078084,1496906255,1111072499,916028167,243534141,1252605537,2204162171,531204876,290011180,3916834213,102027703,237315147,209093447,1486785922,220223953,2758195998,4175039106,82940208,3127791296,2569425252,518464269,1353887104,3941492737,2377294467,3935040926]}function Oe(e){this.cast5=new De,this.cast5.setKey(e),this.encrypt=function(e){return this.cast5.encrypt(e)}}je.keySize=je.prototype.keySize=24,je.blockSize=je.prototype.blockSize=8,Oe.blockSize=Oe.prototype.blockSize=8,Oe.keySize=Oe.prototype.keySize=16;const Be=4294967295;function Ne(e,t){return(e<>>32-t)&Be}function Re(e,t){return e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24}function Le(e,t,r){e.splice(t,4,255&r,r>>>8&255,r>>>16&255,r>>>24&255)}function Fe(e,t){return e>>>8*t&255}function Ue(e){this.tf=function(){let e=null,t=null,r=-1,n=[],i=[[],[],[],[]];function o(e){return i[0][Fe(e,0)]^i[1][Fe(e,1)]^i[2][Fe(e,2)]^i[3][Fe(e,3)]}function a(e){return i[0][Fe(e,3)]^i[1][Fe(e,0)]^i[2][Fe(e,1)]^i[3][Fe(e,2)]}function s(e,t){let r=o(t[0]),i=a(t[1]);t[2]=Ne(t[2]^r+i+n[4*e+8]&Be,31),t[3]=Ne(t[3],1)^r+2*i+n[4*e+9]&Be,r=o(t[2]),i=a(t[3]),t[0]=Ne(t[0]^r+i+n[4*e+10]&Be,31),t[1]=Ne(t[1],1)^r+2*i+n[4*e+11]&Be}function c(e,t){let r=o(t[0]),i=a(t[1]);t[2]=Ne(t[2],1)^r+i+n[4*e+10]&Be,t[3]=Ne(t[3]^r+2*i+n[4*e+11]&Be,31),r=o(t[2]),i=a(t[3]),t[0]=Ne(t[0],1)^r+i+n[4*e+8]&Be,t[1]=Ne(t[1]^r+2*i+n[4*e+9]&Be,31)}return{name:"twofish",blocksize:16,open:function(t){let r,o,a,s,c;e=t;const u=[],l=[],d=[];let f;const h=[];let p,g,m;const y=[[8,1,7,13,6,15,3,2,0,11,5,9,14,12,10,4],[2,8,11,13,15,7,6,14,3,1,9,4,0,10,12,5]],b=[[14,12,11,8,1,2,3,5,15,4,10,6,7,0,9,13],[1,14,2,11,4,12,3,7,6,13,10,5,15,9,0,8]],v=[[11,10,5,14,6,13,9,0,12,8,15,3,2,4,7,1],[4,12,7,5,1,6,9,10,0,14,13,8,2,11,3,15]],w=[[13,7,15,4,1,2,6,14,9,11,3,0,8,5,12,10],[11,9,5,1,12,3,13,14,6,4,7,15,2,0,8,10]],A=[0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15],C=[0,9,2,11,4,13,6,15,8,1,10,3,12,5,14,7],E=[[],[]],x=[[],[],[],[]];function S(e){return e^e>>2^[0,90,180,238][3&e]}function I(e){return e^e>>1^e>>2^[0,238,180,90][3&e]}function k(e,t){let r,n,i;for(r=0;r<8;r++)n=t>>>24,t=t<<8&Be|e>>>24,e=e<<8&Be,i=n<<1,128&n&&(i^=333),t^=n^i<<16,i^=n>>>1,1&n&&(i^=166),t^=i<<24|i<<8;return t}function _(e,t){const r=t>>4,n=15&t,i=y[e][r^n],o=b[e][A[n]^C[r]];return w[e][A[o]^C[i]]<<4|v[e][i^o]}function T(e,t){let r=Fe(e,0),n=Fe(e,1),i=Fe(e,2),o=Fe(e,3);switch(f){case 4:r=E[1][r]^Fe(t[3],0),n=E[0][n]^Fe(t[3],1),i=E[0][i]^Fe(t[3],2),o=E[1][o]^Fe(t[3],3);case 3:r=E[1][r]^Fe(t[2],0),n=E[1][n]^Fe(t[2],1),i=E[0][i]^Fe(t[2],2),o=E[0][o]^Fe(t[2],3);case 2:r=E[0][E[0][r]^Fe(t[1],0)]^Fe(t[0],0),n=E[0][E[1][n]^Fe(t[1],1)]^Fe(t[0],1),i=E[1][E[0][i]^Fe(t[1],2)]^Fe(t[0],2),o=E[1][E[1][o]^Fe(t[1],3)]^Fe(t[0],3)}return x[0][r]^x[1][n]^x[2][i]^x[3][o]}for(e=e.slice(0,32),r=e.length;16!==r&&24!==r&&32!==r;)e[r++]=0;for(r=0;r>2]=Re(e,r);for(r=0;r<256;r++)E[0][r]=_(0,r),E[1][r]=_(1,r);for(r=0;r<256;r++)p=E[1][r],g=S(p),m=I(p),x[0][r]=p+(g<<8)+(m<<16)+(m<<24),x[2][r]=g+(m<<8)+(p<<16)+(m<<24),p=E[0][r],g=S(p),m=I(p),x[1][r]=m+(m<<8)+(g<<16)+(p<<24),x[3][r]=g+(p<<8)+(m<<16)+(g<<24);for(f=d.length/2,r=0;r=0;t--)c(t,o);Le(t,r,o[2]^n[0]),Le(t,r+4,o[3]^n[1]),Le(t,r+8,o[0]^n[2]),Le(t,r+12,o[1]^n[3]),r+=16},finalize:function(){return t}}}(),this.tf.open(Array.from(e),0),this.encrypt=function(e){return this.tf.encrypt(Array.from(e),0)}}function ze(){}function He(e){this.bf=new ze,this.bf.init(e),this.encrypt=function(e){return this.bf.encryptBlock(e)}}Ue.keySize=Ue.prototype.keySize=32,Ue.blockSize=Ue.prototype.blockSize=16,ze.prototype.BLOCKSIZE=8,ze.prototype.SBOXES=[[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]],ze.prototype.PARRAY=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],ze.prototype.NN=16,ze.prototype._clean=function(e){return e<0&&(e=2147483648+(2147483647&e)),e},ze.prototype._F=function(e){let t;const r=255&e,n=255&(e>>>=8),i=255&(e>>>=8),o=255&(e>>>=8);return t=this.sboxes[0][o]+this.sboxes[1][i],t^=this.sboxes[2][n],t+=this.sboxes[3][r],t},ze.prototype._encryptBlock=function(e){let t,r=e[0],n=e[1];for(t=0;t>>24-8*t&255,i[t+n]=r[1]>>>24-8*t&255;return i},ze.prototype._decryptBlock=function(e){let t,r=e[0],n=e[1];for(t=this.NN+1;t>1;--t){r^=this.parray[t],n=this._F(r)^n;const e=r;r=n,n=e}r^=this.parray[1],n^=this.parray[0],e[0]=this._clean(n),e[1]=this._clean(r)},ze.prototype.init=function(e){let t,r=0;for(this.parray=[],t=0;t=e.length&&(r=0);this.parray[t]=this.PARRAY[t]^n}for(this.sboxes=[],t=0;t<4;++t)for(this.sboxes[t]=[],r=0;r<256;++r)this.sboxes[t][r]=this.SBOXES[t][r];const n=[0,0];for(t=0;t>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=t+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=r+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=c+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=u+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=l+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=d+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=f+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=h+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=p+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=g+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=m+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=y+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=b+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=v+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;k=w+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=b^h^r^e;_=I<<1|I>>>31;k=_+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=v^p^c^t;T=I<<1|I>>>31;k=T+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=w^g^u^r;M=I<<1|I>>>31;k=M+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=_^m^l^c;P=I<<1|I>>>31;k=P+(A<<5|A>>>27)+S+(C&E|~C&x)+0x5a827999|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=T^y^d^u;j=I<<1|I>>>31;k=j+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=M^b^f^l;D=I<<1|I>>>31;k=D+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=P^v^h^d;O=I<<1|I>>>31;k=O+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=j^w^p^f;B=I<<1|I>>>31;k=B+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=D^_^g^h;N=I<<1|I>>>31;k=N+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=O^T^m^p;R=I<<1|I>>>31;k=R+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=B^M^y^g;L=I<<1|I>>>31;k=L+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=N^P^b^m;F=I<<1|I>>>31;k=F+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=R^j^v^y;U=I<<1|I>>>31;k=U+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=L^D^w^b;z=I<<1|I>>>31;k=z+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=F^O^_^v;H=I<<1|I>>>31;k=H+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=U^B^T^w;V=I<<1|I>>>31;k=V+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=z^N^M^_;K=I<<1|I>>>31;k=K+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=H^R^P^T;G=I<<1|I>>>31;k=G+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=V^L^j^M;q=I<<1|I>>>31;k=q+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=K^F^D^P;Q=I<<1|I>>>31;k=Q+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=G^U^O^j;W=I<<1|I>>>31;k=W+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=q^z^B^D;J=I<<1|I>>>31;k=J+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Q^H^N^O;Y=I<<1|I>>>31;k=Y+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=W^V^R^B;Z=I<<1|I>>>31;k=Z+(A<<5|A>>>27)+S+(C^E^x)+0x6ed9eba1|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=J^K^L^N;$=I<<1|I>>>31;k=$+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Y^G^F^R;X=I<<1|I>>>31;k=X+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Z^q^U^L;ee=I<<1|I>>>31;k=ee+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=$^Q^z^F;te=I<<1|I>>>31;k=te+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=X^W^H^U;re=I<<1|I>>>31;k=re+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ee^J^V^z;ne=I<<1|I>>>31;k=ne+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=te^Y^K^H;ie=I<<1|I>>>31;k=ie+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=re^Z^G^V;oe=I<<1|I>>>31;k=oe+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ne^$^q^K;ae=I<<1|I>>>31;k=ae+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ie^X^Q^G;se=I<<1|I>>>31;k=se+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=oe^ee^W^q;ce=I<<1|I>>>31;k=ce+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ae^te^J^Q;ue=I<<1|I>>>31;k=ue+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=se^re^Y^W;le=I<<1|I>>>31;k=le+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ce^ne^Z^J;de=I<<1|I>>>31;k=de+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ue^ie^$^Y;fe=I<<1|I>>>31;k=fe+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=le^oe^X^Z;he=I<<1|I>>>31;k=he+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=de^ae^ee^$;pe=I<<1|I>>>31;k=pe+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=fe^se^te^X;ge=I<<1|I>>>31;k=ge+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=he^ce^re^ee;me=I<<1|I>>>31;k=me+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=pe^ue^ne^te;ye=I<<1|I>>>31;k=ye+(A<<5|A>>>27)+S+(C&E|C&x|E&x)-0x70e44324|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ge^le^ie^re;be=I<<1|I>>>31;k=be+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=me^de^oe^ne;ve=I<<1|I>>>31;k=ve+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ye^fe^ae^ie;we=I<<1|I>>>31;k=we+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=be^he^se^oe;Ae=I<<1|I>>>31;k=Ae+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ve^pe^ce^ae;Ce=I<<1|I>>>31;k=Ce+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=we^ge^ue^se;Ee=I<<1|I>>>31;k=Ee+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Ae^me^le^ce;xe=I<<1|I>>>31;k=xe+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Ce^ye^de^ue;Se=I<<1|I>>>31;k=Se+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Ee^be^fe^le;Ie=I<<1|I>>>31;k=Ie+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=xe^ve^he^de;ke=I<<1|I>>>31;k=ke+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Se^we^pe^fe;_e=I<<1|I>>>31;k=_e+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Ie^Ae^ge^he;Te=I<<1|I>>>31;k=Te+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=ke^Ce^me^pe;Me=I<<1|I>>>31;k=Me+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=_e^Ee^ye^ge;Pe=I<<1|I>>>31;k=Pe+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Te^xe^be^me;je=I<<1|I>>>31;k=je+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Me^Se^ve^ye;De=I<<1|I>>>31;k=De+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Pe^Ie^we^be;Oe=I<<1|I>>>31;k=Oe+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=je^ke^Ae^ve;Be=I<<1|I>>>31;k=Be+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=De^_e^Ce^we;Ne=I<<1|I>>>31;k=Ne+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;I=Oe^Te^Ee^Ae;Re=I<<1|I>>>31;k=Re+(A<<5|A>>>27)+S+(C^E^x)-0x359d3e2a|0;S=x;x=E;E=C<<30|C>>>2;C=A;A=k;n=n+A|0;i=i+C|0;o=o+E|0;a=a+x|0;s=s+S|0}function C(e){e=e|0;A(w[e|0]<<24|w[e|1]<<16|w[e|2]<<8|w[e|3],w[e|4]<<24|w[e|5]<<16|w[e|6]<<8|w[e|7],w[e|8]<<24|w[e|9]<<16|w[e|10]<<8|w[e|11],w[e|12]<<24|w[e|13]<<16|w[e|14]<<8|w[e|15],w[e|16]<<24|w[e|17]<<16|w[e|18]<<8|w[e|19],w[e|20]<<24|w[e|21]<<16|w[e|22]<<8|w[e|23],w[e|24]<<24|w[e|25]<<16|w[e|26]<<8|w[e|27],w[e|28]<<24|w[e|29]<<16|w[e|30]<<8|w[e|31],w[e|32]<<24|w[e|33]<<16|w[e|34]<<8|w[e|35],w[e|36]<<24|w[e|37]<<16|w[e|38]<<8|w[e|39],w[e|40]<<24|w[e|41]<<16|w[e|42]<<8|w[e|43],w[e|44]<<24|w[e|45]<<16|w[e|46]<<8|w[e|47],w[e|48]<<24|w[e|49]<<16|w[e|50]<<8|w[e|51],w[e|52]<<24|w[e|53]<<16|w[e|54]<<8|w[e|55],w[e|56]<<24|w[e|57]<<16|w[e|58]<<8|w[e|59],w[e|60]<<24|w[e|61]<<16|w[e|62]<<8|w[e|63])}function E(e){e=e|0;w[e|0]=n>>>24;w[e|1]=n>>>16&255;w[e|2]=n>>>8&255;w[e|3]=n&255;w[e|4]=i>>>24;w[e|5]=i>>>16&255;w[e|6]=i>>>8&255;w[e|7]=i&255;w[e|8]=o>>>24;w[e|9]=o>>>16&255;w[e|10]=o>>>8&255;w[e|11]=o&255;w[e|12]=a>>>24;w[e|13]=a>>>16&255;w[e|14]=a>>>8&255;w[e|15]=a&255;w[e|16]=s>>>24;w[e|17]=s>>>16&255;w[e|18]=s>>>8&255;w[e|19]=s&255}function x(){n=0x67452301;i=0xefcdab89;o=0x98badcfe;a=0x10325476;s=0xc3d2e1f0;c=u=0}function S(e,t,r,l,d,f,h){e=e|0;t=t|0;r=r|0;l=l|0;d=d|0;f=f|0;h=h|0;n=e;i=t;o=r;a=l;s=d;c=f;u=h}function I(e,t){e=e|0;t=t|0;var r=0;if(e&63)return-1;while((t|0)>=64){C(e);e=e+64|0;t=t-64|0;r=r+64|0}c=c+r|0;if(c>>>0>>0)u=u+1|0;return r|0}function k(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;if(e&63)return-1;if(~r)if(r&31)return-1;if((t|0)>=64){n=I(e,t)|0;if((n|0)==-1)return-1;e=e+n|0;t=t-n|0}n=n+t|0;c=c+t|0;if(c>>>0>>0)u=u+1|0;w[e|t]=0x80;if((t|0)>=56){for(i=t+1|0;(i|0)<64;i=i+1|0)w[e|i]=0x00;C(e);t=0;w[e|0]=0}for(i=t+1|0;(i|0)<59;i=i+1|0)w[e|i]=0;w[e|56]=u>>>21&255;w[e|57]=u>>>13&255;w[e|58]=u>>>5&255;w[e|59]=u<<3&255|c>>>29;w[e|60]=c>>>21&255;w[e|61]=c>>>13&255;w[e|62]=c>>>5&255;w[e|63]=c<<3&255;C(e);if(~r)E(r);return n|0}function _(){n=l;i=d;o=f;a=h;s=p;c=64;u=0}function T(){n=g;i=m;o=y;a=b;s=v;c=64;u=0}function M(e,t,r,w,C,E,S,I,k,_,T,M,P,j,D,O){e=e|0;t=t|0;r=r|0;w=w|0;C=C|0;E=E|0;S=S|0;I=I|0;k=k|0;_=_|0;T=T|0;M=M|0;P=P|0;j=j|0;D=D|0;O=O|0;x();A(e^0x5c5c5c5c,t^0x5c5c5c5c,r^0x5c5c5c5c,w^0x5c5c5c5c,C^0x5c5c5c5c,E^0x5c5c5c5c,S^0x5c5c5c5c,I^0x5c5c5c5c,k^0x5c5c5c5c,_^0x5c5c5c5c,T^0x5c5c5c5c,M^0x5c5c5c5c,P^0x5c5c5c5c,j^0x5c5c5c5c,D^0x5c5c5c5c,O^0x5c5c5c5c);g=n;m=i;y=o;b=a;v=s;x();A(e^0x36363636,t^0x36363636,r^0x36363636,w^0x36363636,C^0x36363636,E^0x36363636,S^0x36363636,I^0x36363636,k^0x36363636,_^0x36363636,T^0x36363636,M^0x36363636,P^0x36363636,j^0x36363636,D^0x36363636,O^0x36363636);l=n;d=i;f=o;h=a;p=s;c=64;u=0}function P(e,t,r){e=e|0;t=t|0;r=r|0;var c=0,u=0,l=0,d=0,f=0,h=0;if(e&63)return-1;if(~r)if(r&31)return-1;h=k(e,t,-1)|0;c=n,u=i,l=o,d=a,f=s;T();A(c,u,l,d,f,0x80000000,0,0,0,0,0,0,0,0,0,672);if(~r)E(r);return h|0}function j(e,t,r,c,u){e=e|0;t=t|0;r=r|0;c=c|0;u=u|0;var l=0,d=0,f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0;if(e&63)return-1;if(~u)if(u&31)return-1;w[e+t|0]=r>>>24;w[e+t+1|0]=r>>>16&255;w[e+t+2|0]=r>>>8&255;w[e+t+3|0]=r&255;P(e,t+4|0,-1)|0;l=g=n,d=m=i,f=y=o,h=b=a,p=v=s;c=c-1|0;while((c|0)>0){_();A(g,m,y,b,v,0x80000000,0,0,0,0,0,0,0,0,0,672);g=n,m=i,y=o,b=a,v=s;T();A(g,m,y,b,v,0x80000000,0,0,0,0,0,0,0,0,0,672);g=n,m=i,y=o,b=a,v=s;l=l^n;d=d^i;f=f^o;h=h^a;p=p^s;c=c-1|0}n=l;i=d;o=f;a=h;s=p;if(~u)E(u);return 0}return{reset:x,init:S,process:I,finish:k,hmac_reset:_,hmac_init:M,hmac_finish:P,pbkdf2_generate_block:j}};class We{constructor(){this.pos=0,this.len=0}reset(){const{asm:e}=this.acquire_asm();return this.result=null,this.pos=0,this.len=0,e.reset(),this}process(e){if(null!==this.result)throw new Ce("state must be reset before processing new data");const{asm:t,heap:r}=this.acquire_asm();let n=this.pos,i=this.len,o=0,a=e.length,s=0;for(;a>0;)s=we(r,n+i,e,o,a),i+=s,o+=s,a-=s,s=t.process(n,i),n+=s,i-=s,i||(n=0);return this.pos=n,this.len=i,this}finish(){if(null!==this.result)throw new Ce("state must be reset before processing new data");const{asm:e,heap:t}=this.acquire_asm();return e.finish(this.pos,this.len,0),this.result=new Uint8Array(this.HASH_SIZE),this.result.set(t.subarray(0,this.HASH_SIZE)),this.pos=0,this.len=0,this.release_asm(),this}}const Je=[],Ye=[];class Ze extends We{constructor(){super(),this.NAME="sha1",this.BLOCK_SIZE=64,this.HASH_SIZE=20,this.acquire_asm()}acquire_asm(){return void 0!==this.heap&&void 0!==this.asm||(this.heap=Je.pop()||ve(),this.asm=Ye.pop()||Qe({Uint8Array:Uint8Array},null,this.heap.buffer),this.reset()),{heap:this.heap,asm:this.asm}}release_asm(){void 0!==this.heap&&void 0!==this.asm&&(Je.push(this.heap),Ye.push(this.asm)),this.heap=void 0,this.asm=void 0}static bytes(e){return(new Ze).process(e).finish().result}}Ze.NAME="sha1",Ze.heap_pool=[],Ze.asm_pool=[],Ze.asm_function=Qe;const $e=[],Xe=[];class et extends We{constructor(){super(),this.NAME="sha256",this.BLOCK_SIZE=64,this.HASH_SIZE=32,this.acquire_asm()}acquire_asm(){return void 0!==this.heap&&void 0!==this.asm||(this.heap=$e.pop()||ve(),this.asm=Xe.pop()||function(e,t,r){"use asm";var n=0,i=0,o=0,a=0,s=0,c=0,u=0,l=0,d=0,f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,A=0,C=0,E=0,x=0,S=0,I=0,k=0,_=0,T=new e.Uint8Array(r);function M(e,t,r,d,f,h,p,g,m,y,b,v,w,A,C,E){e=e|0;t=t|0;r=r|0;d=d|0;f=f|0;h=h|0;p=p|0;g=g|0;m=m|0;y=y|0;b=b|0;v=v|0;w=w|0;A=A|0;C=C|0;E=E|0;var x=0,S=0,I=0,k=0,_=0,T=0,M=0,P=0;x=n;S=i;I=o;k=a;_=s;T=c;M=u;P=l;P=e+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0x428a2f98|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;M=t+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0x71374491|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;T=r+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0xb5c0fbcf|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;_=d+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0xe9b5dba5|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;k=f+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0x3956c25b|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;I=h+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0x59f111f1|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;S=p+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0x923f82a4|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;x=g+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0xab1c5ed5|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;P=m+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0xd807aa98|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;M=y+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0x12835b01|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;T=b+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0x243185be|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;_=v+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0x550c7dc3|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;k=w+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0x72be5d74|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;I=A+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0x80deb1fe|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;S=C+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0x9bdc06a7|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;x=E+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0xc19bf174|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;e=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(C>>>17^C>>>19^C>>>10^C<<15^C<<13)+e+y|0;P=e+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0xe49b69c1|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;t=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+t+b|0;M=t+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0xefbe4786|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;r=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+r+v|0;T=r+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0x0fc19dc6|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;d=(f>>>7^f>>>18^f>>>3^f<<25^f<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+d+w|0;_=d+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0x240ca1cc|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;f=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+f+A|0;k=f+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0x2de92c6f|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;h=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+h+C|0;I=h+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0x4a7484aa|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;p=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(f>>>17^f>>>19^f>>>10^f<<15^f<<13)+p+E|0;S=p+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0x5cb0a9dc|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;g=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+g+e|0;x=g+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0x76f988da|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;m=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+m+t|0;P=m+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0x983e5152|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;y=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+y+r|0;M=y+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0xa831c66d|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;b=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+b+d|0;T=b+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0xb00327c8|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;v=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+v+f|0;_=v+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0xbf597fc7|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;w=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+w+h|0;k=w+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0xc6e00bf3|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;A=(C>>>7^C>>>18^C>>>3^C<<25^C<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+A+p|0;I=A+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0xd5a79147|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;C=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+C+g|0;S=C+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0x06ca6351|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;E=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+E+m|0;x=E+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0x14292967|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;e=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(C>>>17^C>>>19^C>>>10^C<<15^C<<13)+e+y|0;P=e+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0x27b70a85|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;t=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+t+b|0;M=t+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0x2e1b2138|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;r=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+r+v|0;T=r+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0x4d2c6dfc|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;d=(f>>>7^f>>>18^f>>>3^f<<25^f<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+d+w|0;_=d+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0x53380d13|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;f=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+f+A|0;k=f+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0x650a7354|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;h=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+h+C|0;I=h+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0x766a0abb|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;p=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(f>>>17^f>>>19^f>>>10^f<<15^f<<13)+p+E|0;S=p+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0x81c2c92e|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;g=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+g+e|0;x=g+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0x92722c85|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;m=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+m+t|0;P=m+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0xa2bfe8a1|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;y=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+y+r|0;M=y+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0xa81a664b|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;b=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+b+d|0;T=b+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0xc24b8b70|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;v=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+v+f|0;_=v+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0xc76c51a3|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;w=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+w+h|0;k=w+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0xd192e819|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;A=(C>>>7^C>>>18^C>>>3^C<<25^C<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+A+p|0;I=A+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0xd6990624|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;C=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+C+g|0;S=C+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0xf40e3585|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;E=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+E+m|0;x=E+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0x106aa070|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;e=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(C>>>17^C>>>19^C>>>10^C<<15^C<<13)+e+y|0;P=e+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0x19a4c116|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;t=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+t+b|0;M=t+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0x1e376c08|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;r=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+r+v|0;T=r+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0x2748774c|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;d=(f>>>7^f>>>18^f>>>3^f<<25^f<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+d+w|0;_=d+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0x34b0bcb5|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;f=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+f+A|0;k=f+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0x391c0cb3|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;h=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+h+C|0;I=h+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0x4ed8aa4a|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;p=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(f>>>17^f>>>19^f>>>10^f<<15^f<<13)+p+E|0;S=p+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0x5b9cca4f|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;g=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+g+e|0;x=g+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0x682e6ff3|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;m=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+m+t|0;P=m+P+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(M^_&(T^M))+0x748f82ee|0;k=k+P|0;P=P+(x&S^I&(x^S))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;y=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+y+r|0;M=y+M+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(T^k&(_^T))+0x78a5636f|0;I=I+M|0;M=M+(P&x^S&(P^x))+(P>>>2^P>>>13^P>>>22^P<<30^P<<19^P<<10)|0;b=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+b+d|0;T=b+T+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(_^I&(k^_))+0x84c87814|0;S=S+T|0;T=T+(M&P^x&(M^P))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;v=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+v+f|0;_=v+_+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(I^k))+0x8cc70208|0;x=x+_|0;_=_+(T&M^P&(T^M))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;w=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+w+h|0;k=w+k+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(I^x&(S^I))+0x90befffa|0;P=P+k|0;k=k+(_&T^M&(_^T))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;A=(C>>>7^C>>>18^C>>>3^C<<25^C<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+A+p|0;I=A+I+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(S^P&(x^S))+0xa4506ceb|0;M=M+I|0;I=I+(k&_^T&(k^_))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;C=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+C+g|0;S=C+S+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(P^x))+0xbef9a3f7|0;T=T+S|0;S=S+(I&k^_&(I^k))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;E=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+E+m|0;x=E+x+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(P^T&(M^P))+0xc67178f2|0;_=_+x|0;x=x+(S&I^k&(S^I))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;n=n+x|0;i=i+S|0;o=o+I|0;a=a+k|0;s=s+_|0;c=c+T|0;u=u+M|0;l=l+P|0}function P(e){e=e|0;M(T[e|0]<<24|T[e|1]<<16|T[e|2]<<8|T[e|3],T[e|4]<<24|T[e|5]<<16|T[e|6]<<8|T[e|7],T[e|8]<<24|T[e|9]<<16|T[e|10]<<8|T[e|11],T[e|12]<<24|T[e|13]<<16|T[e|14]<<8|T[e|15],T[e|16]<<24|T[e|17]<<16|T[e|18]<<8|T[e|19],T[e|20]<<24|T[e|21]<<16|T[e|22]<<8|T[e|23],T[e|24]<<24|T[e|25]<<16|T[e|26]<<8|T[e|27],T[e|28]<<24|T[e|29]<<16|T[e|30]<<8|T[e|31],T[e|32]<<24|T[e|33]<<16|T[e|34]<<8|T[e|35],T[e|36]<<24|T[e|37]<<16|T[e|38]<<8|T[e|39],T[e|40]<<24|T[e|41]<<16|T[e|42]<<8|T[e|43],T[e|44]<<24|T[e|45]<<16|T[e|46]<<8|T[e|47],T[e|48]<<24|T[e|49]<<16|T[e|50]<<8|T[e|51],T[e|52]<<24|T[e|53]<<16|T[e|54]<<8|T[e|55],T[e|56]<<24|T[e|57]<<16|T[e|58]<<8|T[e|59],T[e|60]<<24|T[e|61]<<16|T[e|62]<<8|T[e|63])}function j(e){e=e|0;T[e|0]=n>>>24;T[e|1]=n>>>16&255;T[e|2]=n>>>8&255;T[e|3]=n&255;T[e|4]=i>>>24;T[e|5]=i>>>16&255;T[e|6]=i>>>8&255;T[e|7]=i&255;T[e|8]=o>>>24;T[e|9]=o>>>16&255;T[e|10]=o>>>8&255;T[e|11]=o&255;T[e|12]=a>>>24;T[e|13]=a>>>16&255;T[e|14]=a>>>8&255;T[e|15]=a&255;T[e|16]=s>>>24;T[e|17]=s>>>16&255;T[e|18]=s>>>8&255;T[e|19]=s&255;T[e|20]=c>>>24;T[e|21]=c>>>16&255;T[e|22]=c>>>8&255;T[e|23]=c&255;T[e|24]=u>>>24;T[e|25]=u>>>16&255;T[e|26]=u>>>8&255;T[e|27]=u&255;T[e|28]=l>>>24;T[e|29]=l>>>16&255;T[e|30]=l>>>8&255;T[e|31]=l&255}function D(){n=0x6a09e667;i=0xbb67ae85;o=0x3c6ef372;a=0xa54ff53a;s=0x510e527f;c=0x9b05688c;u=0x1f83d9ab;l=0x5be0cd19;d=f=0}function O(e,t,r,h,p,g,m,y,b,v){e=e|0;t=t|0;r=r|0;h=h|0;p=p|0;g=g|0;m=m|0;y=y|0;b=b|0;v=v|0;n=e;i=t;o=r;a=h;s=p;c=g;u=m;l=y;d=b;f=v}function B(e,t){e=e|0;t=t|0;var r=0;if(e&63)return-1;while((t|0)>=64){P(e);e=e+64|0;t=t-64|0;r=r+64|0}d=d+r|0;if(d>>>0>>0)f=f+1|0;return r|0}function N(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;if(e&63)return-1;if(~r)if(r&31)return-1;if((t|0)>=64){n=B(e,t)|0;if((n|0)==-1)return-1;e=e+n|0;t=t-n|0}n=n+t|0;d=d+t|0;if(d>>>0>>0)f=f+1|0;T[e|t]=0x80;if((t|0)>=56){for(i=t+1|0;(i|0)<64;i=i+1|0)T[e|i]=0x00;P(e);t=0;T[e|0]=0}for(i=t+1|0;(i|0)<59;i=i+1|0)T[e|i]=0;T[e|56]=f>>>21&255;T[e|57]=f>>>13&255;T[e|58]=f>>>5&255;T[e|59]=f<<3&255|d>>>29;T[e|60]=d>>>21&255;T[e|61]=d>>>13&255;T[e|62]=d>>>5&255;T[e|63]=d<<3&255;P(e);if(~r)j(r);return n|0}function R(){n=h;i=p;o=g;a=m;s=y;c=b;u=v;l=w;d=64;f=0}function L(){n=A;i=C;o=E;a=x;s=S;c=I;u=k;l=_;d=64;f=0}function F(e,t,r,T,P,j,O,B,N,R,L,F,U,z,H,V){e=e|0;t=t|0;r=r|0;T=T|0;P=P|0;j=j|0;O=O|0;B=B|0;N=N|0;R=R|0;L=L|0;F=F|0;U=U|0;z=z|0;H=H|0;V=V|0;D();M(e^0x5c5c5c5c,t^0x5c5c5c5c,r^0x5c5c5c5c,T^0x5c5c5c5c,P^0x5c5c5c5c,j^0x5c5c5c5c,O^0x5c5c5c5c,B^0x5c5c5c5c,N^0x5c5c5c5c,R^0x5c5c5c5c,L^0x5c5c5c5c,F^0x5c5c5c5c,U^0x5c5c5c5c,z^0x5c5c5c5c,H^0x5c5c5c5c,V^0x5c5c5c5c);A=n;C=i;E=o;x=a;S=s;I=c;k=u;_=l;D();M(e^0x36363636,t^0x36363636,r^0x36363636,T^0x36363636,P^0x36363636,j^0x36363636,O^0x36363636,B^0x36363636,N^0x36363636,R^0x36363636,L^0x36363636,F^0x36363636,U^0x36363636,z^0x36363636,H^0x36363636,V^0x36363636);h=n;p=i;g=o;m=a;y=s;b=c;v=u;w=l;d=64;f=0}function U(e,t,r){e=e|0;t=t|0;r=r|0;var d=0,f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0;if(e&63)return-1;if(~r)if(r&31)return-1;v=N(e,t,-1)|0;d=n,f=i,h=o,p=a,g=s,m=c,y=u,b=l;L();M(d,f,h,p,g,m,y,b,0x80000000,0,0,0,0,0,0,768);if(~r)j(r);return v|0}function z(e,t,r,d,f){e=e|0;t=t|0;r=r|0;d=d|0;f=f|0;var h=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,A=0,C=0,E=0,x=0,S=0,I=0,k=0,_=0;if(e&63)return-1;if(~f)if(f&31)return-1;T[e+t|0]=r>>>24;T[e+t+1|0]=r>>>16&255;T[e+t+2|0]=r>>>8&255;T[e+t+3|0]=r&255;U(e,t+4|0,-1)|0;h=A=n,p=C=i,g=E=o,m=x=a,y=S=s,b=I=c,v=k=u,w=_=l;d=d-1|0;while((d|0)>0){R();M(A,C,E,x,S,I,k,_,0x80000000,0,0,0,0,0,0,768);A=n,C=i,E=o,x=a,S=s,I=c,k=u,_=l;L();M(A,C,E,x,S,I,k,_,0x80000000,0,0,0,0,0,0,768);A=n,C=i,E=o,x=a,S=s,I=c,k=u,_=l;h=h^n;p=p^i;g=g^o;m=m^a;y=y^s;b=b^c;v=v^u;w=w^l;d=d-1|0}n=h;i=p;o=g;a=m;s=y;c=b;u=v;l=w;if(~f)j(f);return 0}return{reset:D,init:O,process:B,finish:N,hmac_reset:R,hmac_init:F,hmac_finish:U,pbkdf2_generate_block:z}}({Uint8Array:Uint8Array},null,this.heap.buffer),this.reset()),{heap:this.heap,asm:this.asm}}release_asm(){void 0!==this.heap&&void 0!==this.asm&&($e.push(this.heap),Xe.push(this.asm)),this.heap=void 0,this.asm=void 0}static bytes(e){return(new et).process(e).finish().result}}et.NAME="sha256";var tt=rt;function rt(e,t){if(!e)throw Error(t||"Assertion failed")}rt.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)};var nt=void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function it(e,t){return e(t={exports:{}},t.exports),t.exports}function ot(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var at=it((function(e){e.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}));function st(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function ct(e){return 1===e.length?"0"+e:e}function ut(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}var lt={inherits:at,toArray:function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>8,a=255&i;o?r.push(o,a):r.push(a)}else for(n=0;n>>0}return o},split32:function(e,t){for(var r=Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},rotr32:function(e,t){return e>>>t|e<<32-t},rotl32:function(e,t){return e<>>32-t},sum32:function(e,t){return e+t>>>0},sum32_3:function(e,t,r){return e+t+r>>>0},sum32_4:function(e,t,r,n){return e+t+r+n>>>0},sum32_5:function(e,t,r,n,i){return e+t+r+n+i>>>0},sum64:function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},sum64_hi:function(e,t,r,n){return(t+n>>>0>>0},sum64_lo:function(e,t,r,n){return t+n>>>0},sum64_4_hi:function(e,t,r,n,i,o,a,s){var c=0,u=t;return c+=(u=u+n>>>0)>>0)>>0)>>0},sum64_4_lo:function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},sum64_5_hi:function(e,t,r,n,i,o,a,s,c,u){var l=0,d=t;return l+=(d=d+n>>>0)>>0)>>0)>>0)>>0},sum64_5_lo:function(e,t,r,n,i,o,a,s,c,u){return t+n+o+s+u>>>0},rotr64_hi:function(e,t,r){return(t<<32-r|e>>>r)>>>0},rotr64_lo:function(e,t,r){return(e<<32-r|t>>>r)>>>0},shr64_hi:function(e,t,r){return e>>>r},shr64_lo:function(e,t,r){return(e<<32-r|t>>>r)>>>0}};function dt(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var ft=dt;dt.prototype.update=function(e,t){if(e=lt.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=lt.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o>>3},xt=function(e){return pt(e,17)^pt(e,19)^e>>>10},St=lt.sum32,It=lt.sum32_4,kt=lt.sum32_5,_t=vt,Tt=wt,Mt=At,Pt=Ct,jt=Et,Dt=xt,Ot=ht.BlockHash,Bt=[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 Nt(){if(!(this instanceof Nt))return new Nt;Ot.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Bt,this.W=Array(64)}lt.inherits(Nt,Ot);var Rt=Nt;function Lt(){if(!(this instanceof Lt))return new Lt;Rt.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Nt.blockSize=512,Nt.outSize=256,Nt.hmacStrength=192,Nt.padLength=64,Nt.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n>>32-i,r)}function jr(e,t,r,n,i,o,a){return Pr(t&r|~t&n,e,t,i,o,a)}function Dr(e,t,r,n,i,o,a){return Pr(t&n|r&~n,e,t,i,o,a)}function Or(e,t,r,n,i,o,a){return Pr(t^r^n,e,t,i,o,a)}function Br(e,t,r,n,i,o,a){return Pr(r^(t|~n),e,t,i,o,a)}function Nr(e){const t=[];let r;for(r=0;r<64;r+=4)t[r>>2]=e.charCodeAt(r)+(e.charCodeAt(r+1)<<8)+(e.charCodeAt(r+2)<<16)+(e.charCodeAt(r+3)<<24);return t}const Rr="0123456789abcdef".split("");function Lr(e){let t="",r=0;for(;r<4;r++)t+=Rr[e>>8*r+4&15]+Rr[e>>8*r&15];return t}function Fr(e,t){return e+t&4294967295}const Ur=$.getWebCrypto(),zr=$.getNodeCrypto(),Hr=zr&&zr.getHashes();function Vr(e){if(zr&&Hr.includes(e))return async function(t){const r=zr.createHash(e);return L(t,(e=>{r.update(e)}),(()=>new Uint8Array(r.digest())))}}function Kr(e,t){return async function(r,n=ae){if(u(r)&&(r=await G(r)),!$.isStream(r)&&Ur&&t&&r.length>=n.minBytesForWebCrypto)return new Uint8Array(await Ur.digest(t,r));const i=e();return L(r,(e=>{i.update(e)}),(()=>new Uint8Array(i.digest())))}}function Gr(e,t){return async function(r,n=ae){if(u(r)&&(r=await G(r)),$.isStream(r)){const t=new e;return L(r,(e=>{t.process(e)}),(()=>t.finish().result))}return Ur&&t&&r.length>=n.minBytesForWebCrypto?new Uint8Array(await Ur.digest(t,r)):e.bytes(r)}}const qr={md5:Vr("md5")||async function(e){const t=function(e){const t=e.length,r=[1732584193,-271733879,-1732584194,271733878];let n;for(n=64;n<=e.length;n+=64)Mr(r,Nr(e.substring(n-64,n)));e=e.substring(n-64);const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n>2]|=e.charCodeAt(n)<<(n%4<<3);if(i[n>>2]|=128<<(n%4<<3),n>55)for(Mr(r,i),n=0;n<16;n++)i[n]=0;return i[14]=8*t,Mr(r,i),r}($.uint8ArrayToString(e));return $.hexToUint8Array(function(e){for(let t=0;tnew Uint8Array(o.update(e))))}(e,t,r,n);if($.isAES(e))return function(e,t,r,n,i){if($.getWebCrypto()&&24!==t.length&&!$.isStream(r)&&r.length>=3e3*i.minBytesForWebCrypto)return async function(e,t,r,n){const i="AES-CBC",o=await Yr.importKey("raw",t,{name:i},!1,["encrypt"]),{blockSize:a}=Jr(e),s=$.concatUint8Array([new Uint8Array(a),r]),c=new Uint8Array(await Yr.encrypt({name:i,iv:n},o,s)).subarray(0,r.length);return function(e,t){for(let r=0;ro.aes.AES_Encrypt_process(e)),(()=>o.aes.AES_Encrypt_finish()))}(e,t,r,n,i);const a=new(Jr(e))(t),s=a.blockSize,c=n.slice();let u=new Uint8Array;const l=e=>{e&&(u=$.concatUint8Array([u,e]));const t=new Uint8Array(u.length);let r,n=0;for(;e?u.length>=s:u.length;){const e=a.encrypt(c);for(r=0;rnew Uint8Array(o.update(e))))}(e,t,r,n);if($.isAES(e))return function(e,t,r,n){if($.isStream(r)){const e=new Wr(t,n);return L(r,(t=>e.aes.AES_Decrypt_process(t)),(()=>e.aes.AES_Decrypt_finish()))}return Wr.decrypt(r,t,n)}(0,t,r,n);const o=new(Jr(e))(t),a=o.blockSize;let s=n,c=new Uint8Array;const u=e=>{e&&(c=$.concatUint8Array([c,e]));const t=new Uint8Array(c.length);let r,n=0;for(;e?c.length>=a:c.length;){const e=o.encrypt(s);for(s=c.subarray(0,a),r=0;r48)throw new Ee("illegal counter size");let e=Math.pow(2,r)-1;n.set_mask(0,0,e/4294967296|0,0|e)}else r=48,n.set_mask(0,0,65535,4294967295);if(void 0===e)throw Error("nonce is required");{let t=e.length;if(!t||t>16)throw new Ee("illegal nonce size");let r=new DataView(new ArrayBuffer(16));new Uint8Array(r.buffer).set(e),n.set_nonce(r.getUint32(0),r.getUint32(4),r.getUint32(8),r.getUint32(12))}if(void 0!==t){if(t<0||t>=Math.pow(2,r))throw new Ee("illegal counter value");n.set_counter(0,0,t/4294967296|0,0|t)}}}class rn{static encrypt(e,t,r=!0,n){return new rn(t,n,r).encrypt(e)}static decrypt(e,t,r=!0,n){return new rn(t,n,r).decrypt(e)}constructor(e,t,r=!0,n){this.aes=n||new ke(e,t,r,"CBC")}encrypt(e){return Ae(this.aes.AES_Encrypt_process(e),this.aes.AES_Encrypt_finish())}decrypt(e){return Ae(this.aes.AES_Decrypt_process(e),this.aes.AES_Decrypt_finish())}}const nn=$.getWebCrypto(),on=$.getNodeCrypto(),an=16;function sn(e,t){const r=e.length-an;for(let n=0;n>3),17+(u>>3)),8-(7&u)).subarray(1),h=new Uint8Array(wn),p=new Uint8Array(t.length+An);let g,m=0;for(g=0;g16)throw new Ee("illegal tagSize value");const s=t.length||0,c=new Uint8Array(16);12!==s?(this._gcm_mac_process(t),a[0]=0,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=0,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=0,a[11]=s>>>29,a[12]=s>>>21&255,a[13]=s>>>13&255,a[14]=s>>>5&255,a[15]=s<<3&255,o.mac(ye.MAC.GCM,ye.HEAP_DATA,16),o.get_iv(ye.HEAP_DATA),o.set_iv(0,0,0,0),c.set(a.subarray(0,16))):(c.set(t),c[15]=1);const u=new DataView(c.buffer);if(this.gamma0=u.getUint32(12),o.set_nonce(u.getUint32(0),u.getUint32(4),u.getUint32(8),0),o.set_mask(0,0,0,4294967295),void 0!==r){if(r.length>_n)throw new Ee("illegal adata length");r.length?(this.adata=r,this._gcm_mac_process(r)):this.adata=void 0}else this.adata=void 0;if(this.counter<1||this.counter>4294967295)throw new RangeError("counter must be a positive 32-bit integer");o.set_counter(0,0,0,this.gamma0+this.counter|0)}static encrypt(e,t,r,n,i){return new Tn(t,r,n,i).encrypt(e)}static decrypt(e,t,r,n,i){return new Tn(t,r,n,i).decrypt(e)}encrypt(e){return this.AES_GCM_encrypt(e)}decrypt(e){return this.AES_GCM_decrypt(e)}AES_GCM_Encrypt_process(e){let t=0,r=e.length||0,{asm:n,heap:i}=this.aes.acquire_asm(),o=this.counter,a=this.aes.pos,s=this.aes.len,c=0,u=s+r&-16,l=0;if((o-1<<4)+s+r>_n)throw new RangeError("counter overflow");const d=new Uint8Array(u);for(;r>0;)l=we(i,a+s,e,t,r),s+=l,t+=l,r-=l,l=n.cipher(ye.ENC.CTR,ye.HEAP_DATA+a,s),l=n.mac(ye.MAC.GCM,ye.HEAP_DATA+a,l),l&&d.set(i.subarray(a,a+l),c),o+=l>>>4,c+=l,l>>29,t[4]=u>>>21,t[5]=u>>>13&255,t[6]=u>>>5&255,t[7]=u<<3&255,t[8]=t[9]=t[10]=0,t[11]=l>>>29,t[12]=l>>>21&255,t[13]=l>>>13&255,t[14]=l>>>5&255,t[15]=l<<3&255,e.mac(ye.MAC.GCM,ye.HEAP_DATA,16),e.get_iv(ye.HEAP_DATA),e.set_counter(0,0,0,this.gamma0),e.cipher(ye.ENC.CTR,ye.HEAP_DATA,16),s.set(t.subarray(0,n),a),this.counter=1,this.aes.pos=0,this.aes.len=0,s}AES_GCM_Decrypt_process(e){let t=0,r=e.length||0,{asm:n,heap:i}=this.aes.acquire_asm(),o=this.counter,a=this.tagSize,s=this.aes.pos,c=this.aes.len,u=0,l=c+r>a?c+r-a&-16:0,d=c+r-l,f=0;if((o-1<<4)+c+r>_n)throw new RangeError("counter overflow");const h=new Uint8Array(l);for(;r>d;)f=we(i,s+c,e,t,r-d),c+=f,t+=f,r-=f,f=n.mac(ye.MAC.GCM,ye.HEAP_DATA+s,f),f=n.cipher(ye.DEC.CTR,ye.HEAP_DATA+s,f),f&&h.set(i.subarray(s,s+f),u),o+=f>>>4,u+=f,s=0,c=0;return r>0&&(c+=we(i,0,e,t,r)),this.counter=o,this.aes.pos=s,this.aes.len=c,h}AES_GCM_Decrypt_finish(){let{asm:e,heap:t}=this.aes.acquire_asm(),r=this.tagSize,n=this.adata,i=this.counter,o=this.aes.pos,a=this.aes.len,s=a-r;if(a>>29,t[4]=d>>>21,t[5]=d>>>13&255,t[6]=d>>>5&255,t[7]=d<<3&255,t[8]=t[9]=t[10]=0,t[11]=f>>>29,t[12]=f>>>21&255,t[13]=f>>>13&255,t[14]=f>>>5&255,t[15]=f<<3&255,e.mac(ye.MAC.GCM,ye.HEAP_DATA,16),e.get_iv(ye.HEAP_DATA),e.set_counter(0,0,0,this.gamma0),e.cipher(ye.ENC.CTR,ye.HEAP_DATA,16);let h=0;for(let p=0;p0;){for(o=we(r,0,e,n,i),n+=o,i-=o;15&o;)r[o++]=0;t.mac(ye.MAC.GCM,ye.HEAP_DATA,o)}}}const Mn=$.getWebCrypto(),Pn=$.getNodeCrypto(),jn=$.getNodeBuffer(),Dn=16,On="AES-GCM";async function Bn(e,t){if(e!==Y.symmetric.aes128&&e!==Y.symmetric.aes192&&e!==Y.symmetric.aes256)throw Error("GCM mode supports only AES cipher");if($.getNodeCrypto())return{encrypt:async function(e,r,n=new Uint8Array){const i=new Pn.createCipheriv("aes-"+8*t.length+"-gcm",t,r);i.setAAD(n);const o=jn.concat([i.update(e),i.final(),i.getAuthTag()]);return new Uint8Array(o)},decrypt:async function(e,r,n=new Uint8Array){const i=new Pn.createDecipheriv("aes-"+8*t.length+"-gcm",t,r);i.setAAD(n),i.setAuthTag(e.slice(e.length-Dn,e.length));const o=jn.concat([i.update(e.slice(0,e.length-Dn)),i.final()]);return new Uint8Array(o)}};if($.getWebCrypto()&&24!==t.length){const e=await Mn.importKey("raw",t,{name:On},!1,["encrypt","decrypt"]);return{encrypt:async function(r,n,i=new Uint8Array){if(!r.length)return Tn.encrypt(r,t,n,i);const o=await Mn.encrypt({name:On,iv:n,additionalData:i,tagLength:128},e,r);return new Uint8Array(o)},decrypt:async function(r,n,i=new Uint8Array){if(r.length===Dn)return Tn.decrypt(r,t,n,i);const o=await Mn.decrypt({name:On,iv:n,additionalData:i,tagLength:128},e,r);return new Uint8Array(o)}}}return{encrypt:async function(e,r,n){return Tn.encrypt(e,t,r,n)},decrypt:async function(e,r,n){return Tn.decrypt(e,t,r,n)}}}Bn.getNonce=function(e,t){const r=e.slice();for(let n=0;n>>8)-1}(e,t,r,n)}function h(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function p(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function g(e,t,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(e[o]^t[o]),e[o]^=n,t[o]^=n}function m(e,r){var n,i,o,a=t(),s=t();for(n=0;n<16;n++)s[n]=r[n];for(p(s),p(s),p(s),i=0;i<2;i++){for(a[0]=s[0]-65517,n=1;n<15;n++)a[n]=s[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,g(s,a,1-o)}for(n=0;n<16;n++)e[2*n]=255&s[n],e[2*n+1]=s[n]>>8}function y(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return m(r,e),m(n,t),f(r,0,n,0)}function b(e){var t=new Uint8Array(32);return m(t,e),1&t[0]}function v(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function w(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function A(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function C(e,t,r){var n,i,o=0,a=0,s=0,c=0,u=0,l=0,d=0,f=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,A=0,C=0,E=0,x=0,S=0,I=0,k=0,_=0,T=0,M=0,P=0,j=0,D=0,O=0,B=0,N=r[0],R=r[1],L=r[2],F=r[3],U=r[4],z=r[5],H=r[6],V=r[7],K=r[8],G=r[9],q=r[10],Q=r[11],W=r[12],J=r[13],Y=r[14],Z=r[15];o+=(n=t[0])*N,a+=n*R,s+=n*L,c+=n*F,u+=n*U,l+=n*z,d+=n*H,f+=n*V,h+=n*K,p+=n*G,g+=n*q,m+=n*Q,y+=n*W,b+=n*J,v+=n*Y,w+=n*Z,a+=(n=t[1])*N,s+=n*R,c+=n*L,u+=n*F,l+=n*U,d+=n*z,f+=n*H,h+=n*V,p+=n*K,g+=n*G,m+=n*q,y+=n*Q,b+=n*W,v+=n*J,w+=n*Y,A+=n*Z,s+=(n=t[2])*N,c+=n*R,u+=n*L,l+=n*F,d+=n*U,f+=n*z,h+=n*H,p+=n*V,g+=n*K,m+=n*G,y+=n*q,b+=n*Q,v+=n*W,w+=n*J,A+=n*Y,C+=n*Z,c+=(n=t[3])*N,u+=n*R,l+=n*L,d+=n*F,f+=n*U,h+=n*z,p+=n*H,g+=n*V,m+=n*K,y+=n*G,b+=n*q,v+=n*Q,w+=n*W,A+=n*J,C+=n*Y,E+=n*Z,u+=(n=t[4])*N,l+=n*R,d+=n*L,f+=n*F,h+=n*U,p+=n*z,g+=n*H,m+=n*V,y+=n*K,b+=n*G,v+=n*q,w+=n*Q,A+=n*W,C+=n*J,E+=n*Y,x+=n*Z,l+=(n=t[5])*N,d+=n*R,f+=n*L,h+=n*F,p+=n*U,g+=n*z,m+=n*H,y+=n*V,b+=n*K,v+=n*G,w+=n*q,A+=n*Q,C+=n*W,E+=n*J,x+=n*Y,S+=n*Z,d+=(n=t[6])*N,f+=n*R,h+=n*L,p+=n*F,g+=n*U,m+=n*z,y+=n*H,b+=n*V,v+=n*K,w+=n*G,A+=n*q,C+=n*Q,E+=n*W,x+=n*J,S+=n*Y,I+=n*Z,f+=(n=t[7])*N,h+=n*R,p+=n*L,g+=n*F,m+=n*U,y+=n*z,b+=n*H,v+=n*V,w+=n*K,A+=n*G,C+=n*q,E+=n*Q,x+=n*W,S+=n*J,I+=n*Y,k+=n*Z,h+=(n=t[8])*N,p+=n*R,g+=n*L,m+=n*F,y+=n*U,b+=n*z,v+=n*H,w+=n*V,A+=n*K,C+=n*G,E+=n*q,x+=n*Q,S+=n*W,I+=n*J,k+=n*Y,_+=n*Z,p+=(n=t[9])*N,g+=n*R,m+=n*L,y+=n*F,b+=n*U,v+=n*z,w+=n*H,A+=n*V,C+=n*K,E+=n*G,x+=n*q,S+=n*Q,I+=n*W,k+=n*J,_+=n*Y,T+=n*Z,g+=(n=t[10])*N,m+=n*R,y+=n*L,b+=n*F,v+=n*U,w+=n*z,A+=n*H,C+=n*V,E+=n*K,x+=n*G,S+=n*q,I+=n*Q,k+=n*W,_+=n*J,T+=n*Y,M+=n*Z,m+=(n=t[11])*N,y+=n*R,b+=n*L,v+=n*F,w+=n*U,A+=n*z,C+=n*H,E+=n*V,x+=n*K,S+=n*G,I+=n*q,k+=n*Q,_+=n*W,T+=n*J,M+=n*Y,P+=n*Z,y+=(n=t[12])*N,b+=n*R,v+=n*L,w+=n*F,A+=n*U,C+=n*z,E+=n*H,x+=n*V,S+=n*K,I+=n*G,k+=n*q,_+=n*Q,T+=n*W,M+=n*J,P+=n*Y,j+=n*Z,b+=(n=t[13])*N,v+=n*R,w+=n*L,A+=n*F,C+=n*U,E+=n*z,x+=n*H,S+=n*V,I+=n*K,k+=n*G,_+=n*q,T+=n*Q,M+=n*W,P+=n*J,j+=n*Y,D+=n*Z,v+=(n=t[14])*N,w+=n*R,A+=n*L,C+=n*F,E+=n*U,x+=n*z,S+=n*H,I+=n*V,k+=n*K,_+=n*G,T+=n*q,M+=n*Q,P+=n*W,j+=n*J,D+=n*Y,O+=n*Z,w+=(n=t[15])*N,a+=38*(C+=n*L),s+=38*(E+=n*F),c+=38*(x+=n*U),u+=38*(S+=n*z),l+=38*(I+=n*H),d+=38*(k+=n*V),f+=38*(_+=n*K),h+=38*(T+=n*G),p+=38*(M+=n*q),g+=38*(P+=n*Q),m+=38*(j+=n*W),y+=38*(D+=n*J),b+=38*(O+=n*Y),v+=38*(B+=n*Z),o=(n=(o+=38*(A+=n*R))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=c,e[4]=u,e[5]=l,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function E(e,t){C(e,t,t)}function x(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)E(i,i),2!==n&&4!==n&&C(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function S(e,r,n){var i,o,s=new Uint8Array(32),c=new Float64Array(80),u=t(),l=t(),d=t(),f=t(),h=t(),p=t();for(o=0;o<31;o++)s[o]=r[o];for(s[31]=127&r[31]|64,s[0]&=248,v(c,n),o=0;o<16;o++)l[o]=c[o],f[o]=u[o]=d[o]=0;for(u[0]=f[0]=1,o=254;o>=0;--o)g(u,l,i=s[o>>>3]>>>(7&o)&1),g(d,f,i),w(h,u,d),A(u,u,d),w(d,l,f),A(l,l,f),E(f,h),E(p,u),C(u,d,u),C(d,l,h),w(h,u,d),A(u,u,d),E(l,u),A(d,f,p),C(u,d,a),w(u,u,f),C(d,d,u),C(u,f,p),C(f,l,c),E(l,h),g(u,l,i),g(d,f,i);for(o=0;o<16;o++)c[o+16]=u[o],c[o+32]=d[o],c[o+48]=l[o],c[o+64]=f[o];var y=c.subarray(32),b=c.subarray(16);return x(y,y),C(b,b,y),m(e,b),0}function I(e,t){return S(e,t,n)}function k(e,r){var n=t(),i=t(),o=t(),a=t(),s=t(),u=t(),l=t(),d=t(),f=t();A(n,e[1],e[0]),A(f,r[1],r[0]),C(n,n,f),w(i,e[0],e[1]),w(f,r[0],r[1]),C(i,i,f),C(o,e[3],r[3]),C(o,o,c),C(a,e[2],r[2]),w(a,a,a),A(s,i,n),A(u,a,o),w(l,a,o),w(d,i,n),C(e[0],s,u),C(e[1],d,l),C(e[2],l,u),C(e[3],s,d)}function _(e,t,r){var n;for(n=0;n<4;n++)g(e[n],t[n],r)}function T(e,r){var n=t(),i=t(),o=t();x(o,r[2]),C(n,r[0],o),C(i,r[1],o),m(e,i),e[31]^=b(n)<<7}function M(e,t,r){var n,a;for(h(e[0],i),h(e[1],o),h(e[2],o),h(e[3],i),a=255;a>=0;--a)_(e,t,n=r[a/8|0]>>(7&a)&1),k(t,e),k(e,e),_(e,t,n)}function P(e,r){var n=[t(),t(),t(),t()];h(n[0],u),h(n[1],l),h(n[2],o),C(n[3],u,l),M(e,n,r)}function j(n,i,o){var a,s,c=[t(),t(),t(),t()];for(o||r(i,32),(a=e.hash(i.subarray(0,32)))[0]&=248,a[31]&=127,a[31]|=64,P(c,a),T(n,c),s=0;s<32;s++)i[s+32]=n[s];return 0}var D=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 O(e,t){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i>4)*D[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*D[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function B(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;O(e,r)}function N(e,r){var n=t(),a=t(),c=t(),u=t(),l=t(),f=t(),p=t();return h(e[2],o),v(e[1],r),E(c,e[1]),C(u,c,s),A(c,c,e[2]),w(u,e[2],u),E(l,u),E(f,l),C(p,f,l),C(n,p,c),C(n,n,u),function(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)E(i,i),1!==n&&C(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}(n,n),C(n,n,c),C(n,n,u),C(n,n,u),C(e[0],n,u),E(a,e[0]),C(a,a,u),y(a,c)&&C(e[0],e[0],d),E(a,e[0]),C(a,a,u),y(a,c)?-1:(b(e[0])===r[31]>>7&&A(e[0],i,e[0]),C(e[3],e[0],e[1]),0)}var R=64;function L(){for(var e=0;e=0},e.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return j(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(L(e),64!==e.length)throw Error("bad secret key size");for(var t=new Uint8Array(32),r=0;re&&(c.imod(o.leftShift(i)).iadd(o),u=c.mod(a).toNumber())}while(!await Vn(c,t,r));return c}async function Vn(e,t,r){return!(t&&!e.dec().gcd(t).isOne()||!await async function(e){const t=await $.getBigInteger();return Kn.every((r=>0!==e.mod(new t(r))))}(e)||!await async function(e,t){const r=await $.getBigInteger();return(t=t||new r(2)).modExp(e.dec(),e).isOne()}(e)||!await async function(e,t){const r=await $.getBigInteger(),n=e.bitLength();t||(t=Math.max(1,n/48|0));const i=e.dec();let o=0;for(;!i.getBit(o);)o++;const a=e.rightShift(new r(o));for(;t>0;t--){let t,n=(await Un(new r(2),i)).modExp(a,e);if(!n.isOne()&&!n.equal(i)){for(t=1;tt-11)throw Error("Message too long");const n=function(e){const t=new Uint8Array(e);let r=0;for(;r=8&!n;if(t)return $.selectUint8Array(a,o,t);if(a)return o;throw Error("Decryption error")}async function Wn(e,t,r){let n;if(t.length!==Qr.getHashByteLength(e))throw Error("Invalid hash length");const i=new Uint8Array(Gn[e].length);for(n=0;n{Zn.generateKeyPair("rsa",r,((r,n,i)=>{r?t(r):e(Xn.decode(i,"der"))}))}));return{n:n.modulus.toArrayLike(Uint8Array),e:n.publicExponent.toArrayLike(Uint8Array),d:n.privateExponent.toArrayLike(Uint8Array),p:n.prime2.toArrayLike(Uint8Array),q:n.prime1.toArrayLike(Uint8Array),u:n.coefficient.toArrayLike(Uint8Array)}}let r,n,i;do{n=await Hn(e-(e>>1),t,40),r=await Hn(e>>1,t,40),i=r.mul(n)}while(i.bitLength()!==e);const o=r.dec().imul(n.dec());return n.lt(r)&&([r,n]=[n,r]),{n:i.toUint8Array(),e:t.toUint8Array(),d:t.modInv(o).toUint8Array(),p:r.toUint8Array(),q:n.toUint8Array(),u:r.modInv(n).toUint8Array()}},validateParams:async function(e,t,r,n,i,o){const a=await $.getBigInteger();if(e=new a(e),n=new a(n),i=new a(i),!n.mul(i).equal(e))return!1;const s=new a(2);if(o=new a(o),!n.mul(o).mod(i).isOne())return!1;t=new a(t),r=new a(r);const c=new a(Math.floor(e.bitLength()/3)),u=await Un(s,s.leftShift(c)),l=u.mul(r).mul(t);return!(!l.mod(n.dec()).equal(u)||!l.mod(i.dec()).equal(u))}}),ri=Object.freeze({__proto__:null,encrypt:async function(e,t,r,n){const i=await $.getBigInteger();t=new i(t),r=new i(r),n=new i(n);const o=new i(qn(e,t.byteLength())),a=await Un(new i(1),t.dec());return{c1:r.modExp(a,t).toUint8Array(),c2:n.modExp(a,t).imul(o).imod(t).toUint8Array()}},decrypt:async function(e,t,r,n,i){const o=await $.getBigInteger();return e=new o(e),t=new o(t),r=new o(r),n=new o(n),Qn(e.modExp(n,r).modInv(r).imul(t).imod(r).toUint8Array("be",r.byteLength()),i)},validateParams:async function(e,t,r,n){const i=await $.getBigInteger();e=new i(e),t=new i(t),r=new i(r);const o=new i(1);if(t.lte(o)||t.gte(e))return!1;const a=new i(e.bitLength()),s=new i(1023);if(a.lt(s))return!1;if(!t.modExp(e.dec(),e).isOne())return!1;let c=t;const u=new i(1),l=new i(2).leftShift(new i(17));for(;u.lt(l);){if(c=c.mul(t).imod(e),c.isOne())return!1;u.iinc()}n=new i(n);const d=new i(2),f=await Un(d.leftShift(a.dec()),d.leftShift(a)),h=e.dec().imul(f).iadd(n);return!!r.equal(t.modExp(h,e))}});class ni{constructor(e){if(e instanceof ni)this.oid=e.oid;else if($.isArray(e)||$.isUint8Array(e)){if(6===(e=new Uint8Array(e))[0]){if(e[1]!==e.length-2)throw Error("Length mismatch in DER encoded oid");e=e.subarray(2)}this.oid=e}else this.oid=""}read(e){if(e.length>=1){const t=e[0];if(e.length>=1+t)return this.oid=e.subarray(1,1+t),1+this.oid.length}throw Error("Invalid oid")}write(){return $.concatUint8Array([new Uint8Array([this.oid.length]),this.oid])}toHex(){return $.uint8ArrayToHex(this.oid)}getName(){const e=this.toHex();if(Y.curve[e])return Y.write(Y.curve,e);throw Error("Unknown curve object identifier.")}}function ii(e,t){return e.keyPair({priv:t})}function oi(e,t){const r=e.keyPair({pub:t});if(!0!==r.validate().result)throw Error("Invalid elliptic public key");return r}async function ai(e){if(!ae.useIndutnyElliptic)throw Error("This curve is only supported in the full build of OpenPGP.js");const{default:t}=await Promise.resolve().then((function(){return Hp}));return new t.ec(e)}function si(e){let t,r=0;const n=e[0];return n<192?([r]=e,t=1):n<255?(r=(e[0]-192<<8)+e[1]+192,t=2):255===n&&(r=$.readNumber(e.subarray(1,5)),t=5),{len:r,offset:t}}function ci(e){return e<192?new Uint8Array([e]):e>191&&e<8384?new Uint8Array([192+(e-192>>8),e-192&255]):$.concatUint8Array([new Uint8Array([255]),$.writeNumber(e,4)])}function ui(e){if(e<0||e>30)throw Error("Partial Length power must be between 1 and 30");return new Uint8Array([224+e])}function li(e){return new Uint8Array([192|e])}function di(e,t){return $.concatUint8Array([li(e),ci(t)])}function fi(e){return[Y.packet.literalData,Y.packet.compressedData,Y.packet.symmetricallyEncryptedData,Y.packet.symEncryptedIntegrityProtectedData,Y.packet.aeadEncryptedData].includes(e)}async function hi(e,t){const r=D(e);let n,i;try{const o=await r.peekBytes(2);if(!o||o.length<2||!(128&o[0]))throw Error("Error during parsing. This message / key probably does not conform to a valid OpenPGP format.");const a=await r.readByte();let s,u,l=-1,d=-1;d=0,!!(64&a)&&(d=1),d?l=63&a:(l=(63&a)>>2,u=3&a);const f=fi(l);let h,p=null;if(f){if("array"===$.isStream(e)){const e=new c;n=O(e),p=e}else{const e=new k;n=O(e.writable),p=e.readable}i=t({tag:l,packet:p})}else p=[];do{if(d){const e=await r.readByte();if(h=!1,e<192)s=e;else if(e>=192&&e<224)s=(e-192<<8)+await r.readByte()+192;else if(e>223&&e<255){if(s=1<<(31&e),h=!0,!f)throw new TypeError("This packet type does not support partial lengths.")}else s=await r.readByte()<<24|await r.readByte()<<16|await r.readByte()<<8|await r.readByte()}else switch(u){case 0:s=await r.readByte();break;case 1:s=await r.readByte()<<8|await r.readByte();break;case 2:s=await r.readByte()<<24|await r.readByte()<<16|await r.readByte()<<8|await r.readByte();break;default:s=1/0}if(s>0){let e=0;for(;;){n&&await n.ready;const{done:t,value:i}=await r.read();if(t){if(s===1/0)break;throw Error("Unexpected end of packet")}const o=s===1/0?i:i.subarray(0,s-e);if(n?await n.write(o):p.push(o),e+=i.length,e>=s){r.unshift(i.subarray(s-e+i.length));break}}}}while(h);const g=await r.peekBytes(f?1/0:2);return n?(await n.ready,await n.close()):(p=$.concatUint8Array(p),await t({tag:l,packet:p})),!g||!g.length}catch(e){if(n)return await n.abort(e),!0;throw e}finally{n&&await i,r.releaseLock()}}class pi extends Error{constructor(...e){super(...e),Error.captureStackTrace&&Error.captureStackTrace(this,pi),this.name="UnsupportedError"}}class gi{constructor(e,t){this.tag=e,this.rawContent=t}write(){return this.rawContent}}const mi=$.getWebCrypto(),yi=$.getNodeCrypto(),bi={p256:"P-256",p384:"P-384",p521:"P-521"},vi=yi?yi.getCurves():[],wi=yi?{secp256k1:vi.includes("secp256k1")?"secp256k1":void 0,p256:vi.includes("prime256v1")?"prime256v1":void 0,p384:vi.includes("secp384r1")?"secp384r1":void 0,p521:vi.includes("secp521r1")?"secp521r1":void 0,ed25519:vi.includes("ED25519")?"ED25519":void 0,curve25519:vi.includes("X25519")?"X25519":void 0,brainpoolP256r1:vi.includes("brainpoolP256r1")?"brainpoolP256r1":void 0,brainpoolP384r1:vi.includes("brainpoolP384r1")?"brainpoolP384r1":void 0,brainpoolP512r1:vi.includes("brainpoolP512r1")?"brainpoolP512r1":void 0}:{},Ai={p256:{oid:[6,8,42,134,72,206,61,3,1,7],keyType:Y.publicKey.ecdsa,hash:Y.hash.sha256,cipher:Y.symmetric.aes128,node:wi.p256,web:bi.p256,payloadSize:32,sharedSize:256},p384:{oid:[6,5,43,129,4,0,34],keyType:Y.publicKey.ecdsa,hash:Y.hash.sha384,cipher:Y.symmetric.aes192,node:wi.p384,web:bi.p384,payloadSize:48,sharedSize:384},p521:{oid:[6,5,43,129,4,0,35],keyType:Y.publicKey.ecdsa,hash:Y.hash.sha512,cipher:Y.symmetric.aes256,node:wi.p521,web:bi.p521,payloadSize:66,sharedSize:528},secp256k1:{oid:[6,5,43,129,4,0,10],keyType:Y.publicKey.ecdsa,hash:Y.hash.sha256,cipher:Y.symmetric.aes128,node:wi.secp256k1,payloadSize:32},ed25519:{oid:[6,9,43,6,1,4,1,218,71,15,1],keyType:Y.publicKey.eddsaLegacy,hash:Y.hash.sha512,node:!1,payloadSize:32},curve25519:{oid:[6,10,43,6,1,4,1,151,85,1,5,1],keyType:Y.publicKey.ecdh,hash:Y.hash.sha256,cipher:Y.symmetric.aes128,node:!1,payloadSize:32},brainpoolP256r1:{oid:[6,9,43,36,3,3,2,8,1,1,7],keyType:Y.publicKey.ecdsa,hash:Y.hash.sha256,cipher:Y.symmetric.aes128,node:wi.brainpoolP256r1,payloadSize:32},brainpoolP384r1:{oid:[6,9,43,36,3,3,2,8,1,1,11],keyType:Y.publicKey.ecdsa,hash:Y.hash.sha384,cipher:Y.symmetric.aes192,node:wi.brainpoolP384r1,payloadSize:48},brainpoolP512r1:{oid:[6,9,43,36,3,3,2,8,1,1,13],keyType:Y.publicKey.ecdsa,hash:Y.hash.sha512,cipher:Y.symmetric.aes256,node:wi.brainpoolP512r1,payloadSize:64}};class Ci{constructor(e,t){try{($.isArray(e)||$.isUint8Array(e))&&(e=new ni(e)),e instanceof ni&&(e=e.getName()),this.name=Y.write(Y.curve,e)}catch(e){throw new pi("Unknown curve")}t=t||Ai[this.name],this.keyType=t.keyType,this.oid=t.oid,this.hash=t.hash,this.cipher=t.cipher,this.node=t.node&&Ai[this.name],this.web=t.web&&Ai[this.name],this.payloadSize=t.payloadSize,this.web&&$.getWebCrypto()?this.type="web":this.node&&$.getNodeCrypto()?this.type="node":"curve25519"===this.name?this.type="curve25519":"ed25519"===this.name&&(this.type="ed25519")}async genKeyPair(){let e;switch(this.type){case"web":try{return await async function(e){const t=await mi.generateKey({name:"ECDSA",namedCurve:bi[e]},!0,["sign","verify"]),r=await mi.exportKey("jwk",t.privateKey);return{publicKey:xi(await mi.exportKey("jwk",t.publicKey)),privateKey:ie(r.d)}}(this.name)}catch(e){$.printDebugError("Browser did not support generating ec key "+e.message);break}case"node":return async function(e){const t=yi.createECDH(wi[e]);return await t.generateKeys(),{publicKey:new Uint8Array(t.getPublicKey()),privateKey:new Uint8Array(t.getPrivateKey())}}(this.name);case"curve25519":{const t=Fn(32);t[0]=127&t[0]|64,t[31]&=248;const r=t.slice().reverse();return e=Rn.box.keyPair.fromSecretKey(r),{publicKey:$.concatUint8Array([new Uint8Array([64]),e.publicKey]),privateKey:t}}case"ed25519":{const e=Fn(32),t=Rn.sign.keyPair.fromSeed(e);return{publicKey:$.concatUint8Array([new Uint8Array([64]),t.publicKey]),privateKey:e}}}const t=await ai(this.name);return e=await t.genKeyPair({entropy:$.uint8ArrayToString(Fn(32))}),{publicKey:new Uint8Array(e.getPublic("array",!1)),privateKey:e.getPrivate().toArrayLike(Uint8Array)}}}async function Ei(e,t,r,n){const i={p256:!0,p384:!0,p521:!0,secp256k1:!0,curve25519:e===Y.publicKey.ecdh,brainpoolP256r1:!0,brainpoolP384r1:!0,brainpoolP512r1:!0},o=t.getName();if(!i[o])return!1;if("curve25519"===o){n=n.slice().reverse();const{publicKey:e}=Rn.box.keyPair.fromSecretKey(n);r=new Uint8Array(r);const t=new Uint8Array([64,...e]);return!!$.equalsUint8Array(t,r)}const a=await ai(o);try{r=oi(a,r).getPublic()}catch(e){return!1}return!!ii(a,n).getPublic().eq(r)}function xi(e){const t=ie(e.x),r=ie(e.y),n=new Uint8Array(t.length+r.length+1);return n[0]=4,n.set(t,1),n.set(r,t.length+1),n}function Si(e,t,r){const n=e,i=r.slice(1,n+1),o=r.slice(n+1,2*n+1);return{kty:"EC",crv:t,x:oe(i,!0),y:oe(o,!0),ext:!0}}function Ii(e,t,r,n){const i=Si(e,t,r);return i.d=oe(n,!0),i}const ki=$.getWebCrypto(),_i=$.getNodeCrypto();async function Ti(e,t,r,n,i,o){const a=new Ci(e);if(r&&!$.isStream(r)){const o={publicKey:n,privateKey:i};switch(a.type){case"web":try{return await async function(e,t,r,n){const i=e.payloadSize,o=Ii(e.payloadSize,bi[e.name],n.publicKey,n.privateKey),a=await ki.importKey("jwk",o,{name:"ECDSA",namedCurve:bi[e.name],hash:{name:Y.read(Y.webHash,e.hash)}},!1,["sign"]),s=new Uint8Array(await ki.sign({name:"ECDSA",namedCurve:bi[e.name],hash:{name:Y.read(Y.webHash,t)}},a,r));return{r:s.slice(0,i),s:s.slice(i,i<<1)}}(a,t,r,o)}catch(e){if("p521"!==a.name&&("DataError"===e.name||"OperationError"===e.name))throw e;$.printDebugError("Browser did not support signing: "+e.message)}break;case"node":{const e=await async function(e,t,r,n){const i=_i.createSign(Y.read(Y.hash,t));i.write(r),i.end();const o=Di.encode({version:1,parameters:e.oid,privateKey:Array.from(n.privateKey),publicKey:{unused:0,data:Array.from(n.publicKey)}},"pem",{label:"EC PRIVATE KEY"});return ji.decode(i.sign(o),"der")}(a,t,r,o);return{r:e.r.toArrayLike(Uint8Array),s:e.s.toArrayLike(Uint8Array)}}}}return async function(e,t,r){const n=ii(await ai(e.name),r).sign(t);return{r:n.r.toArrayLike(Uint8Array),s:n.s.toArrayLike(Uint8Array)}}(a,o,i)}async function Mi(e,t,r,n,i,o){const a=new Ci(e);if(n&&!$.isStream(n))switch(a.type){case"web":try{return await async function(e,t,{r:r,s:n},i,o){const a=Si(e.payloadSize,bi[e.name],o),s=await ki.importKey("jwk",a,{name:"ECDSA",namedCurve:bi[e.name],hash:{name:Y.read(Y.webHash,e.hash)}},!1,["verify"]),c=$.concatUint8Array([r,n]).buffer;return ki.verify({name:"ECDSA",namedCurve:bi[e.name],hash:{name:Y.read(Y.webHash,t)}},s,c,i)}(a,t,r,n,i)}catch(e){if("p521"!==a.name&&("DataError"===e.name||"OperationError"===e.name))throw e;$.printDebugError("Browser did not support verifying: "+e.message)}break;case"node":return async function(e,t,{r:r,s:n},i,o){const{default:a}=await Promise.resolve().then((function(){return Eh})),s=_i.createVerify(Y.read(Y.hash,t));s.write(i),s.end();const c=Bi.encode({algorithm:{algorithm:[1,2,840,10045,2,1],parameters:e.oid},subjectPublicKey:{unused:0,data:Array.from(o)}},"pem",{label:"PUBLIC KEY"}),u=ji.encode({r:new a(r),s:new a(n)},"der");try{return s.verify(c,u)}catch(e){return!1}}(a,t,r,n,i)}return async function(e,t,r,n){return oi(await ai(e.name),n).verify(r,t)}(a,r,void 0===t?n:o,i)}const Pi=void 0,ji=_i?Pi.define("ECDSASignature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())})):void 0,Di=_i?Pi.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").explicit(0).optional().any(),this.key("publicKey").explicit(1).optional().bitstr())})):void 0,Oi=_i?Pi.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())})):void 0,Bi=_i?Pi.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(Oi),this.key("subjectPublicKey").bitstr())})):void 0;var Ni=Object.freeze({__proto__:null,sign:Ti,verify:Mi,validateParams:async function(e,t,r){const n=new Ci(e);if(n.keyType!==Y.publicKey.ecdsa)return!1;switch(n.type){case"web":case"node":{const n=Fn(8),i=Y.hash.sha256,o=await Qr.digest(i,n);try{const a=await Ti(e,i,n,t,r,o);return await Mi(e,i,a,n,t,o)}catch(e){return!1}}default:return Ei(Y.publicKey.ecdsa,e,t,r)}}});Rn.hash=e=>new Uint8Array(er().update(e).digest());var Ri=Object.freeze({__proto__:null,sign:async function(e,t,r,n,i,o){if(Qr.getHashByteLength(t)new Uint8Array(er().update(e).digest());var Fi=Object.freeze({__proto__:null,generate:async function(e){if(e===Y.publicKey.ed25519){const e=Fn(32),{publicKey:t}=Rn.sign.keyPair.fromSeed(e);return{A:t,seed:e}}throw Error("Unsupported EdDSA algorithm")},sign:async function(e,t,r,n,i,o){if(Qr.getHashByteLength(t)=0;--l)for(let e=s-1;e>=0;--e)c[1]=s*l+(e+1),u[0]=o[0]^c[0],u[1]=o[1]^c[1],u[2]=a[2*e],u[3]=a[2*e+1],u=Hi(r.decrypt(Vi(u))),o=u.subarray(0,2),a[2*e]=u[2],a[2*e+1]=u[3];if(o[0]===n[0]&&o[1]===n[1])return Vi(a);throw Error("Key Data Integrity failed")}function Hi(e){const{length:t}=e,r=function(e){if($.isString(e)){const{length:t}=e,r=new ArrayBuffer(t),n=new Uint8Array(r);for(let i=0;i0){const r=e[t-1];if(r>=1){const n=e.subarray(t-r),i=new Uint8Array(r).fill(r);if($.equalsUint8Array(n,i))return e.subarray(0,t-r)}}throw Error("Invalid padding")}var Qi=Object.freeze({__proto__:null,encode:Gi,decode:qi});const Wi=$.getWebCrypto(),Ji=$.getNodeCrypto();function Yi(e,t,r,n){return $.concatUint8Array([t.write(),new Uint8Array([e]),r.write(),$.stringToUint8Array("Anonymous Sender "),n.subarray(0,20)])}async function Zi(e,t,r,n,i=!1,o=!1){let a;if(i){for(a=0;a=0&&0===t[a];a--);t=t.subarray(0,a+1)}return(await Qr.digest(e,$.concatUint8Array([new Uint8Array([0,0,0,1]),t,n]))).subarray(0,r)}async function $i(e,t,r,n){if(n.length!==e.payloadSize){const t=new Uint8Array(e.payloadSize);t.set(n,e.payloadSize-n.length),n=t}switch(e.type){case"curve25519":{const e=n.slice().reverse();return{secretKey:e,sharedKey:Rn.scalarMult(e,t.subarray(1))}}case"web":if(e.web&&$.getWebCrypto())try{return await async function(e,t,r,n){const i=Ii(e.payloadSize,e.web.web,r,n);let o=Wi.importKey("jwk",i,{name:"ECDH",namedCurve:e.web.web},!0,["deriveKey","deriveBits"]);const a=Si(e.payloadSize,e.web.web,t);let s=Wi.importKey("jwk",a,{name:"ECDH",namedCurve:e.web.web},!0,[]);[o,s]=await Promise.all([o,s]);let c=Wi.deriveBits({name:"ECDH",namedCurve:e.web.web,public:s},o,e.web.sharedSize),u=Wi.exportKey("jwk",o);[c,u]=await Promise.all([c,u]);const l=new Uint8Array(c);return{secretKey:ie(u.d),sharedKey:l}}(e,t,r,n)}catch(e){$.printDebugError(e)}break;case"node":return async function(e,t,r){const n=Ji.createECDH(e.node.node);n.setPrivateKey(r);const i=new Uint8Array(n.computeSecret(t));return{secretKey:new Uint8Array(n.getPrivateKey()),sharedKey:i}}(e,t,n)}return async function(e,t,r){const n=await ai(e.name);t=oi(n,t),r=ii(n,r);const i=new Uint8Array(r.getPrivate()),o=r.derive(t.getPublic()),a=n.curve.p.byteLength();return{secretKey:i,sharedKey:o.toArrayLike(Uint8Array,"be",a)}}(e,t,n)}var Xi=Object.freeze({__proto__:null,validateParams:async function(e,t,r){return Ei(Y.publicKey.ecdh,e,t,r)},encrypt:async function(e,t,r,n,i){const o=Gi(r),a=new Ci(e),{publicKey:s,sharedKey:c}=await async function(e,t){switch(e.type){case"curve25519":{const r=Fn(32),{secretKey:n,sharedKey:i}=await $i(e,t,null,r);let{publicKey:o}=Rn.box.keyPair.fromSecretKey(n);return o=$.concatUint8Array([new Uint8Array([64]),o]),{publicKey:o,sharedKey:i}}case"web":if(e.web&&$.getWebCrypto())try{return await async function(e,t){const r=Si(e.payloadSize,e.web.web,t);let n=Wi.generateKey({name:"ECDH",namedCurve:e.web.web},!0,["deriveKey","deriveBits"]),i=Wi.importKey("jwk",r,{name:"ECDH",namedCurve:e.web.web},!1,[]);[n,i]=await Promise.all([n,i]);let o=Wi.deriveBits({name:"ECDH",namedCurve:e.web.web,public:i},n.privateKey,e.web.sharedSize),a=Wi.exportKey("jwk",n.publicKey);[o,a]=await Promise.all([o,a]);const s=new Uint8Array(o);return{publicKey:new Uint8Array(xi(a)),sharedKey:s}}(e,t)}catch(e){$.printDebugError(e)}break;case"node":return async function(e,t){const r=Ji.createECDH(e.node.node);r.generateKeys();const n=new Uint8Array(r.computeSecret(t));return{publicKey:new Uint8Array(r.getPublicKey()),sharedKey:n}}(e,t)}return async function(e,t){const r=await ai(e.name),n=await e.genKeyPair();t=oi(r,t);const i=ii(r,n.privateKey),o=n.publicKey,a=i.derive(t.getPublic()),s=r.curve.p.byteLength();return{publicKey:o,sharedKey:a.toArrayLike(Uint8Array,"be",s)}}(e,t)}(a,n),u=Yi(Y.publicKey.ecdh,e,t,i),{keySize:l}=Jr(t.cipher);return{publicKey:s,wrappedKey:Ui(await Zi(t.hash,c,l,u),o)}},decrypt:async function(e,t,r,n,i,o,a){const s=new Ci(e),{sharedKey:c}=await $i(s,r,i,o),u=Yi(Y.publicKey.ecdh,e,t,a),{keySize:l}=Jr(t.cipher);let d;for(let f=0;f<3;f++)try{return qi(zi(await Zi(t.hash,c,l,u,1===f,2===f),n))}catch(e){d=e}throw d}});const eo=$.getWebCrypto(),to=$.getNodeCrypto(),ro=to&&to.webcrypto&&to.webcrypto.subtle;async function no(e,t,r,n,i){const o=Y.read(Y.webHash,e);if(!o)throw Error("Hash algo not supported with HKDF");if(eo||ro){const e=eo||ro,a=await e.importKey("raw",t,"HKDF",!1,["deriveBits"]),s=await e.deriveBits({name:"HKDF",hash:o,salt:r,info:n},a,8*i);return new Uint8Array(s)}if(to){const o=Y.read(Y.hash,e),a=(e,t)=>to.createHmac(o,e).update(t).digest(),s=a(r,t),c=s.length,u=Math.ceil(i/c),l=new Uint8Array(u*c),d=new Uint8Array(c+n.length+1);d.set(n,c);for(let e=0;e0?d:d.subarray(c));d.set(t,0),l.set(t,e*c)}return l.subarray(0,i)}throw Error("No HKDF implementation available")}const io={x25519:$.encodeUTF8("OpenPGP X25519")};var oo=Object.freeze({__proto__:null,generate:async function(e){if(e===Y.publicKey.x25519){const e=Fn(32),{publicKey:t}=Rn.box.keyPair.fromSecretKey(e);return{A:t,k:e}}throw Error("Unsupported ECDH algorithm")},validateParams:async function(e,t,r){if(e===Y.publicKey.x25519){const{publicKey:e}=Rn.box.keyPair.fromSecretKey(r);return $.equalsUint8Array(t,e)}return!1},encrypt:async function(e,t,r){if(e===Y.publicKey.x25519){const e=Fn(32),n=Rn.scalarMult(e,r),{publicKey:i}=Rn.box.keyPair.fromSecretKey(e),o=$.concatUint8Array([i,r,n]),{keySize:a}=Jr(Y.symmetric.aes128);return{ephemeralPublicKey:i,wrappedKey:Ui(await no(Y.hash.sha256,o,new Uint8Array,io.x25519,a),t)}}throw Error("Unsupported ECDH algorithm")},decrypt:async function(e,t,r,n,i){if(e===Y.publicKey.x25519){const e=Rn.scalarMult(i,t),o=$.concatUint8Array([t,n,e]),{keySize:a}=Jr(Y.symmetric.aes128);return zi(await no(Y.hash.sha256,o,new Uint8Array,io.x25519,a),r)}throw Error("Unsupported ECDH algorithm")}}),ao=Object.freeze({__proto__:null,CurveWithOID:Ci,ecdh:Xi,ecdhX:oo,ecdsa:Ni,eddsaLegacy:Ri,eddsa:Fi,generate:async function(e){const t=await $.getBigInteger();e=new Ci(e);const r=await e.genKeyPair(),n=new t(r.publicKey).toUint8Array(),i=new t(r.privateKey).toUint8Array("be",e.payloadSize);return{oid:e.oid,Q:n,secret:i,hash:e.hash,cipher:e.cipher}},getPreferredHashAlgo:function(e){return Ai[Y.write(Y.curve,e.toHex())].hash}}),so=Object.freeze({__proto__:null,sign:async function(e,t,r,n,i,o){const a=await $.getBigInteger(),s=new a(1);let c,u,l,d;n=new a(n),i=new a(i),r=new a(r),o=new a(o),r=r.mod(n),o=o.mod(i);const f=new a(t.subarray(0,i.byteLength())).mod(i);for(;;){if(c=await Un(s,i),u=r.modExp(c,n).imod(i),u.isZero())continue;const e=o.mul(u).imod(i);if(d=f.add(e).imod(i),l=c.modInv(i).imul(d).imod(i),!l.isZero())break}return{r:u.toUint8Array("be",i.byteLength()),s:l.toUint8Array("be",i.byteLength())}},verify:async function(e,t,r,n,i,o,a,s){const c=await $.getBigInteger(),u=new c(0);if(t=new c(t),r=new c(r),o=new c(o),a=new c(a),i=new c(i),s=new c(s),t.lte(u)||t.gte(a)||r.lte(u)||r.gte(a))return $.printDebug("invalid DSA Signature"),!1;const l=new c(n.subarray(0,a.byteLength())).imod(a),d=r.modInv(a);if(d.isZero())return $.printDebug("invalid DSA Signature"),!1;i=i.mod(o),s=s.mod(o);const f=l.mul(d).imod(a),h=t.mul(d).imod(a),p=i.modExp(f,o),g=s.modExp(h,o);return p.mul(g).imod(o).imod(a).equal(t)},validateParams:async function(e,t,r,n,i){const o=await $.getBigInteger();e=new o(e),t=new o(t),r=new o(r),n=new o(n);const a=new o(1);if(r.lte(a)||r.gte(e))return!1;if(!e.dec().mod(t).isZero())return!1;if(!r.modExp(t,e).isOne())return!1;const s=new o(t.bitLength()),c=new o(150);if(s.lt(c)||!await Vn(t,null,32))return!1;i=new o(i);const u=new o(2),l=await Un(u.leftShift(s.dec()),u.leftShift(s)),d=t.mul(l).add(i);return!!n.equal(r.modExp(d,e))}}),co={rsa:ti,elgamal:ri,elliptic:ao,dsa:so,nacl:Rn},uo=Object.freeze({__proto__:null,parseSignatureParams:function(e,t){let r=0;switch(e){case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaSign:return{s:$.readMPI(t.subarray(r))};case Y.publicKey.dsa:case Y.publicKey.ecdsa:{const e=$.readMPI(t.subarray(r));return r+=e.length+2,{r:e,s:$.readMPI(t.subarray(r))}}case Y.publicKey.eddsaLegacy:{let e=$.readMPI(t.subarray(r));r+=e.length+2,e=$.leftPad(e,32);let n=$.readMPI(t.subarray(r));return n=$.leftPad(n,32),{r:e,s:n}}case Y.publicKey.ed25519:{const e=t.subarray(r,r+64);return r+=e.length,{RS:e}}default:throw new pi("Unknown signature algorithm.")}},verify:async function(e,t,r,n,i,o){switch(e){case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaSign:{const{n:e,e:a}=n,s=$.leftPad(r.s,e.length);return co.rsa.verify(t,i,s,e,a,o)}case Y.publicKey.dsa:{const{g:e,p:i,q:a,y:s}=n,{r:c,s:u}=r;return co.dsa.verify(t,c,u,o,e,i,a,s)}case Y.publicKey.ecdsa:{const{oid:e,Q:a}=n,s=new co.elliptic.CurveWithOID(e).payloadSize,c=$.leftPad(r.r,s),u=$.leftPad(r.s,s);return co.elliptic.ecdsa.verify(e,t,{r:c,s:u},i,a,o)}case Y.publicKey.eddsaLegacy:{const{oid:e,Q:a}=n;return co.elliptic.eddsaLegacy.verify(e,t,r,i,a,o)}case Y.publicKey.ed25519:{const{A:a}=n;return co.elliptic.eddsa.verify(e,t,r,i,a,o)}default:throw Error("Unknown signature algorithm.")}},sign:async function(e,t,r,n,i,o){if(!r||!n)throw Error("Missing key parameters");switch(e){case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaSign:{const{n:e,e:a}=r,{d:s,p:c,q:u,u:l}=n;return{s:await co.rsa.sign(t,i,e,a,s,c,u,l,o)}}case Y.publicKey.dsa:{const{g:e,p:i,q:a}=r,{x:s}=n;return co.dsa.sign(t,o,e,i,a,s)}case Y.publicKey.elgamal:throw Error("Signing with Elgamal is not defined in the OpenPGP standard.");case Y.publicKey.ecdsa:{const{oid:e,Q:a}=r,{d:s}=n;return co.elliptic.ecdsa.sign(e,t,i,a,s,o)}case Y.publicKey.eddsaLegacy:{const{oid:e,Q:a}=r,{seed:s}=n;return co.elliptic.eddsaLegacy.sign(e,t,i,a,s,o)}case Y.publicKey.ed25519:{const{A:a}=r,{seed:s}=n;return co.elliptic.eddsa.sign(e,t,i,a,s,o)}default:throw Error("Unknown signature algorithm.")}}});class lo{constructor(e){e&&(this.data=e)}read(e){if(e.length>=1){const t=e[0];if(e.length>=1+t)return this.data=e.subarray(1,1+t),1+this.data.length}throw Error("Invalid symmetric key")}write(){return $.concatUint8Array([new Uint8Array([this.data.length]),this.data])}}class fo{constructor(e){if(e){const{hash:t,cipher:r}=e;this.hash=t,this.cipher=r}else this.hash=null,this.cipher=null}read(e){if(e.length<4||3!==e[0]||1!==e[1])throw new pi("Cannot read KDFParams");return this.hash=e[2],this.cipher=e[3],4}write(){return new Uint8Array([3,1,this.hash,this.cipher])}}class ho{static fromObject({wrappedKey:e,algorithm:t}){const r=new ho;return r.wrappedKey=e,r.algorithm=t,r}read(e){let t=0,r=e[t++];this.algorithm=r%2?e[t++]:null,r-=r%2,this.wrappedKey=e.subarray(t,t+r),t+=r}write(){return $.concatUint8Array([this.algorithm?new Uint8Array([this.wrappedKey.length+1,this.algorithm]):new Uint8Array([this.wrappedKey.length]),this.wrappedKey])}}function po(e){try{e.getName()}catch(e){throw new pi("Unknown curve OID")}}var go=Object.freeze({__proto__:null,publicKeyEncrypt:async function(e,t,r,n,i){switch(e){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:{const{n:e,e:t}=r;return{c:await co.rsa.encrypt(n,e,t)}}case Y.publicKey.elgamal:{const{p:e,g:t,y:i}=r;return co.elgamal.encrypt(n,e,t,i)}case Y.publicKey.ecdh:{const{oid:e,Q:t,kdfParams:o}=r,{publicKey:a,wrappedKey:s}=await co.elliptic.ecdh.encrypt(e,o,n,t,i);return{V:a,C:new lo(s)}}case Y.publicKey.x25519:{if(!$.isAES(t))throw Error("X25519 keys can only encrypt AES session keys");const{A:i}=r,{ephemeralPublicKey:o,wrappedKey:a}=await co.elliptic.ecdhX.encrypt(e,n,i);return{ephemeralPublicKey:o,C:ho.fromObject({algorithm:t,wrappedKey:a})}}default:return[]}},publicKeyDecrypt:async function(e,t,r,n,i,o){switch(e){case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaEncrypt:{const{c:e}=n,{n:i,e:a}=t,{d:s,p:c,q:u,u:l}=r;return co.rsa.decrypt(e,i,a,s,c,u,l,o)}case Y.publicKey.elgamal:{const{c1:e,c2:i}=n,a=t.p,s=r.x;return co.elgamal.decrypt(e,i,a,s,o)}case Y.publicKey.ecdh:{const{oid:e,Q:o,kdfParams:a}=t,{d:s}=r,{V:c,C:u}=n;return co.elliptic.ecdh.decrypt(e,a,c,u.data,o,s,i)}case Y.publicKey.x25519:{const{A:i}=t,{k:o}=r,{ephemeralPublicKey:a,C:s}=n;if(!$.isAES(s.algorithm))throw Error("AES session key expected");return co.elliptic.ecdhX.decrypt(e,a,s.wrappedKey,i,o)}default:throw Error("Unknown public key encryption algorithm.")}},parsePublicKeyParams:function(e,t){let r=0;switch(e){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaSign:{const e=$.readMPI(t.subarray(r));r+=e.length+2;const n=$.readMPI(t.subarray(r));return r+=n.length+2,{read:r,publicParams:{n:e,e:n}}}case Y.publicKey.dsa:{const e=$.readMPI(t.subarray(r));r+=e.length+2;const n=$.readMPI(t.subarray(r));r+=n.length+2;const i=$.readMPI(t.subarray(r));r+=i.length+2;const o=$.readMPI(t.subarray(r));return r+=o.length+2,{read:r,publicParams:{p:e,q:n,g:i,y:o}}}case Y.publicKey.elgamal:{const e=$.readMPI(t.subarray(r));r+=e.length+2;const n=$.readMPI(t.subarray(r));r+=n.length+2;const i=$.readMPI(t.subarray(r));return r+=i.length+2,{read:r,publicParams:{p:e,g:n,y:i}}}case Y.publicKey.ecdsa:{const e=new ni;r+=e.read(t),po(e);const n=$.readMPI(t.subarray(r));return r+=n.length+2,{read:r,publicParams:{oid:e,Q:n}}}case Y.publicKey.eddsaLegacy:{const e=new ni;r+=e.read(t),po(e);let n=$.readMPI(t.subarray(r));return r+=n.length+2,n=$.leftPad(n,33),{read:r,publicParams:{oid:e,Q:n}}}case Y.publicKey.ecdh:{const e=new ni;r+=e.read(t),po(e);const n=$.readMPI(t.subarray(r));r+=n.length+2;const i=new fo;return r+=i.read(t.subarray(r)),{read:r,publicParams:{oid:e,Q:n,kdfParams:i}}}case Y.publicKey.ed25519:case Y.publicKey.x25519:{const e=t.subarray(r,r+32);return r+=e.length,{read:r,publicParams:{A:e}}}default:throw new pi("Unknown public key encryption algorithm.")}},parsePrivateKeyParams:function(e,t,r){let n=0;switch(e){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaSign:{const e=$.readMPI(t.subarray(n));n+=e.length+2;const r=$.readMPI(t.subarray(n));n+=r.length+2;const i=$.readMPI(t.subarray(n));n+=i.length+2;const o=$.readMPI(t.subarray(n));return n+=o.length+2,{read:n,privateParams:{d:e,p:r,q:i,u:o}}}case Y.publicKey.dsa:case Y.publicKey.elgamal:{const e=$.readMPI(t.subarray(n));return n+=e.length+2,{read:n,privateParams:{x:e}}}case Y.publicKey.ecdsa:case Y.publicKey.ecdh:{const e=new Ci(r.oid);let i=$.readMPI(t.subarray(n));return n+=i.length+2,i=$.leftPad(i,e.payloadSize),{read:n,privateParams:{d:i}}}case Y.publicKey.eddsaLegacy:{const e=new Ci(r.oid);let i=$.readMPI(t.subarray(n));return n+=i.length+2,i=$.leftPad(i,e.payloadSize),{read:n,privateParams:{seed:i}}}case Y.publicKey.ed25519:{const e=t.subarray(n,n+32);return n+=e.length,{read:n,privateParams:{seed:e}}}case Y.publicKey.x25519:{const e=t.subarray(n,n+32);return n+=e.length,{read:n,privateParams:{k:e}}}default:throw new pi("Unknown public key encryption algorithm.")}},parseEncSessionKeyParams:function(e,t){let r=0;switch(e){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:return{c:$.readMPI(t.subarray(r))};case Y.publicKey.elgamal:{const e=$.readMPI(t.subarray(r));return r+=e.length+2,{c1:e,c2:$.readMPI(t.subarray(r))}}case Y.publicKey.ecdh:{const e=$.readMPI(t.subarray(r));r+=e.length+2;const n=new lo;return n.read(t.subarray(r)),{V:e,C:n}}case Y.publicKey.x25519:{const e=t.subarray(r,r+32);r+=e.length;const n=new ho;return n.read(t.subarray(r)),{ephemeralPublicKey:e,C:n}}default:throw new pi("Unknown public key encryption algorithm.")}},serializeParams:function(e,t){const r=new Set([Y.publicKey.ed25519,Y.publicKey.x25519]),n=Object.keys(t).map((n=>{const i=t[n];return $.isUint8Array(i)?r.has(e)?i:$.uint8ArrayToMPI(i):i.write()}));return $.concatUint8Array(n)},generateParams:function(e,t,r){switch(e){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaSign:return co.rsa.generate(t,65537).then((({n:e,e:t,d:r,p:n,q:i,u:o})=>({privateParams:{d:r,p:n,q:i,u:o},publicParams:{n:e,e:t}})));case Y.publicKey.ecdsa:return co.elliptic.generate(r).then((({oid:e,Q:t,secret:r})=>({privateParams:{d:r},publicParams:{oid:new ni(e),Q:t}})));case Y.publicKey.eddsaLegacy:return co.elliptic.generate(r).then((({oid:e,Q:t,secret:r})=>({privateParams:{seed:r},publicParams:{oid:new ni(e),Q:t}})));case Y.publicKey.ecdh:return co.elliptic.generate(r).then((({oid:e,Q:t,secret:r,hash:n,cipher:i})=>({privateParams:{d:r},publicParams:{oid:new ni(e),Q:t,kdfParams:new fo({hash:n,cipher:i})}})));case Y.publicKey.ed25519:return co.elliptic.eddsa.generate(e).then((({A:e,seed:t})=>({privateParams:{seed:t},publicParams:{A:e}})));case Y.publicKey.x25519:return co.elliptic.ecdhX.generate(e).then((({A:e,k:t})=>({privateParams:{k:t},publicParams:{A:e}})));case Y.publicKey.dsa:case Y.publicKey.elgamal:throw Error("Unsupported algorithm for key generation.");default:throw Error("Unknown public key algorithm.")}},validateParams:async function(e,t,r){if(!t||!r)throw Error("Missing key parameters");switch(e){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaSign:{const{n:e,e:n}=t,{d:i,p:o,q:a,u:s}=r;return co.rsa.validateParams(e,n,i,o,a,s)}case Y.publicKey.dsa:{const{p:e,q:n,g:i,y:o}=t,{x:a}=r;return co.dsa.validateParams(e,n,i,o,a)}case Y.publicKey.elgamal:{const{p:e,g:n,y:i}=t,{x:o}=r;return co.elgamal.validateParams(e,n,i,o)}case Y.publicKey.ecdsa:case Y.publicKey.ecdh:{const n=co.elliptic[Y.read(Y.publicKey,e)],{oid:i,Q:o}=t,{d:a}=r;return n.validateParams(i,o,a)}case Y.publicKey.eddsaLegacy:{const{Q:e,oid:n}=t,{seed:i}=r;return co.elliptic.eddsaLegacy.validateParams(n,e,i)}case Y.publicKey.ed25519:{const{A:n}=t,{seed:i}=r;return co.elliptic.eddsa.validateParams(e,n,i)}case Y.publicKey.x25519:{const{A:n}=t,{k:i}=r;return co.elliptic.ecdhX.validateParams(e,n,i)}default:throw Error("Unknown public key algorithm.")}},getPrefixRandom:async function(e){const{blockSize:t}=Jr(e),r=await Fn(t),n=new Uint8Array([r[r.length-2],r[r.length-1]]);return $.concat([r,n])},generateSessionKey:function(e){const{keySize:t}=Jr(e);return Fn(t)},getAEADMode:function(e){const t=Y.read(Y.aead,e);return Nn[t]},getCipher:Jr,getPreferredCurveHashAlgo:function(e,t){switch(e){case Y.publicKey.ecdsa:case Y.publicKey.eddsaLegacy:return co.elliptic.getPreferredHashAlgo(t);case Y.publicKey.ed25519:return co.elliptic.eddsa.getPreferredHashAlgo(e);default:throw Error("Unknown elliptic signing algo")}}});const mo={cipher:qe,hash:Qr,mode:Nn,publicKey:co,signature:uo,random:zn,pkcs1:Jn,pkcs5:Qi,aesKW:Ki};Object.assign(mo,go);var yo="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function bo(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)}const vo={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(let o=0;o=0;)e[t]=0}const _o=256,To=286,Mo=30,Po=15,jo=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Do=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Oo=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Bo=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],No=Array(576);ko(No);const Ro=Array(60);ko(Ro);const Lo=Array(512);ko(Lo);const Fo=Array(256);ko(Fo);const Uo=Array(29);ko(Uo);const zo=Array(Mo);function Ho(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}let Vo,Ko,Go;function qo(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Qo(e){return e<256?Lo[e]:Lo[256+(e>>>7)]}function Wo(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Jo(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<>>=1,r<<=1}while(--t>0);return r>>>1}function $o(e,t,r){const n=Array(16);let i,o,a=0;for(i=1;i<=Po;i++)n[i]=a=a+r[i-1]<<1;for(o=0;o<=t;o++){const t=e[2*o+1];0!==t&&(e[2*o]=Zo(n[t]++,t))}}function Xo(e){let t;for(t=0;t8?Wo(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ta(e,t,r,n){const i=2*t,o=2*r;return e[i]>1;a>=1;a--)ra(e,r,a);c=o;do{a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ra(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=s,r[2*c]=r[2*a]+r[2*s],e.depth[c]=(e.depth[a]>=e.depth[s]?e.depth[a]:e.depth[s])+1,r[2*a+1]=r[2*s+1]=c,e.heap[1]=c++,ra(e,r,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){const r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let u,l,d,f,h,p,g=0;for(f=0;f<=Po;f++)e.bl_count[f]=0;for(r[2*e.heap[e.heap_max]+1]=0,u=e.heap_max+1;u<573;u++)l=e.heap[u],f=r[2*r[2*l+1]+1]+1,f>c&&(f=c,g++),r[2*l+1]=f,l>n||(e.bl_count[f]++,h=0,l>=s&&(h=a[l-s]),p=r[2*l],e.opt_len+=p*(f+h),o&&(e.static_len+=p*(i[2*l+1]+h)));if(0!==g){do{for(f=c-1;0===e.bl_count[f];)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,g-=2}while(g>0);for(f=c;0!==f;f--)for(l=e.bl_count[f];0!==l;)d=e.heap[--u],d>n||(r[2*d+1]!==f&&(e.opt_len+=(f-r[2*d+1])*r[2*d],r[2*d+1]=f),l--)}}(e,t),$o(r,u,e.bl_count)}function oa(e,t,r){let n,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(Fo[r]+_o+1)]++,e.dyn_dtree[2*Qo(t)]++),e.last_lit===e.lit_bufsize-1}function la(e,t,r,n){let i=65535&e,o=e>>>16&65535,a=0;for(;0!==r;){a=r>2e3?2e3:r,r-=a;do{i=i+t[n++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16}const da=function(){let e;const t=[];for(let r=0;r<256;r++){e=r;for(let t=0;t<8;t++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();function fa(e,t,r,n){const i=da,o=n+r;e^=-1;for(let a=n;a>>8^i[255&(e^t[a])];return~e}var ha={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};const pa=258,ga=262,ma=103,ya=113,ba=666;function va(e,t){return e.msg=ha[t],t}function wa(e){return(e<<1)-(e>4?9:0)}function Aa(e){let t=e.length;for(;--t>=0;)e[t]=0}function Ca(e){const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(So(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function Ea(e,t){(function(e,t,r,n){let i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){let t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<_o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),ia(e,e.l_desc),ia(e,e.d_desc),a=function(e){let t;for(oa(e,e.dyn_ltree,e.l_desc.max_code),oa(e,e.dyn_dtree,e.d_desc.max_code),ia(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*Bo[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?ca(e,t,r,n):4===e.strategy||o===i?(Jo(e,2+(n?1:0),3),na(e,No,Ro)):(Jo(e,4+(n?1:0),3),function(e,t,r,n){let i;for(Jo(e,t-257,5),Jo(e,r-1,5),Jo(e,n-4,4),i=0;i=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ca(e.strm)}function xa(e,t){e.pending_buf[e.pending++]=t}function Sa(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Ia(e,t,r,n){let i=e.avail_in;return i>n&&(i=n),0===i?0:(e.avail_in-=i,So(t,e.input,e.next_in,i,r),1===e.state.wrap?e.adler=la(e.adler,t,i,r):2===e.state.wrap&&(e.adler=fa(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)}function ka(e,t){let r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-ga?e.strstart-(e.w_size-ga):0,u=e.window,l=e.w_mask,d=e.prev,f=e.strstart+pa;let h=u[o+a-1],p=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(r=t,u[r+a]===p&&u[r+a-1]===h&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&oa){if(e.match_start=t,a=n,n>=s)break;h=u[o+a-1],p=u[o+a]}}}while((t=d[t&l])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function _a(e){const t=e.w_size;let r,n,i,o,a;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-ga)){So(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,n=e.hash_size,r=n;do{i=e.head[--r],e.head[r]=i>=t?i-t:0}while(--n);n=t,r=n;do{i=e.prev[--r],e.prev[r]=i>=t?i-t:0}while(--n);o+=t}if(0===e.strm.avail_in)break;if(n=Ia(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3)if(n=ua(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=ua(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(_a(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;const n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,Ea(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-ga&&(Ea(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Ea(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Ea(e,!1),e.strm.avail_out),1)})),new Pa(4,4,8,4,Ta),new Pa(4,5,16,8,Ta),new Pa(4,6,32,32,Ta),new Pa(4,4,16,16,Ma),new Pa(8,16,32,32,Ma),new Pa(8,16,128,128,Ma),new Pa(8,32,128,256,Ma),new Pa(32,128,258,1024,Ma),new Pa(32,258,258,4096,Ma)];class Da{constructor(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Co(1146),this.dyn_dtree=new Co(122),this.bl_tree=new Co(78),Aa(this.dyn_ltree),Aa(this.dyn_dtree),Aa(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Co(16),this.heap=new Co(573),Aa(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Co(573),Aa(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}}function Oa(e){const t=function(e){let t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:ya,e.adler=2===t.wrap?0:1,t.last_flush=0,function(e){sa||(function(){let e,t,r,n,i;const o=Array(16);for(r=0,n=0;n<28;n++)for(Uo[n]=r,e=0;e<1<>=7;n5||t<0)return e?va(e,Io):Io;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||n.status===ba&&4!==t)return va(e,0===e.avail_out?-5:Io);if(n.strm=e,r=n.last_flush,n.last_flush=t,42===n.status)if(2===n.wrap)e.adler=0,xa(n,31),xa(n,139),xa(n,8),n.gzhead?(xa(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),xa(n,255&n.gzhead.time),xa(n,n.gzhead.time>>8&255),xa(n,n.gzhead.time>>16&255),xa(n,n.gzhead.time>>24&255),xa(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),xa(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(xa(n,255&n.gzhead.extra.length),xa(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=fa(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(xa(n,0),xa(n,0),xa(n,0),xa(n,0),xa(n,0),xa(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),xa(n,3),n.status=ya);else{let t=8+(n.w_bits-8<<4)<<8,r=-1;r=n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=r<<6,0!==n.strstart&&(t|=32),t+=31-t%31,n.status=ya,Sa(n,t),0!==n.strstart&&(Sa(n,e.adler>>>16),Sa(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=fa(e.adler,n.pending_buf,n.pending-i,i)),Ca(e),i=n.pending,n.pending!==n.pending_buf_size));)xa(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=fa(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=fa(e.adler,n.pending_buf,n.pending-i,i)),Ca(e),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexi&&(e.adler=fa(e.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=fa(e.adler,n.pending_buf,n.pending-i,i)),Ca(e),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexi&&(e.adler=fa(e.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=ma)}else n.status=ma;if(n.status===ma&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Ca(e),n.pending+2<=n.pending_buf_size&&(xa(n,255&e.adler),xa(n,e.adler>>8&255),e.adler=0,n.status=ya)):n.status=ya),0!==n.pending){if(Ca(e),0===e.avail_out)return n.last_flush=-1,0}else if(0===e.avail_in&&wa(t)<=wa(r)&&4!==t)return va(e,-5);if(n.status===ba&&0!==e.avail_in)return va(e,-5);if(0!==e.avail_in||0!==n.lookahead||0!==t&&n.status!==ba){var a=2===n.strategy?function(e,t){let r;for(;;){if(0===e.lookahead&&(_a(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=ua(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Ea(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Ea(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Ea(e,!1),0===e.strm.avail_out)?1:2}(n,t):3===n.strategy?function(e,t){let r,n,i,o;const a=e.window;for(;;){if(e.lookahead<=pa){if(_a(e),e.lookahead<=pa&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(i=e.strstart-1,n=a[i],n===a[++i]&&n===a[++i]&&n===a[++i])){o=e.strstart+pa;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=ua(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=ua(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Ea(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Ea(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Ea(e,!1),0===e.strm.avail_out)?1:2}(n,t):ja[n.level].func(n,t);if(3!==a&&4!==a||(n.status=ba),1===a||3===a)return 0===e.avail_out&&(n.last_flush=-1),0;if(2===a&&(1===t?function(e){Jo(e,2,3),Yo(e,256,No),function(e){16===e.bi_valid?(Wo(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}(n):5!==t&&(ca(n,0,0,!1),3===t&&(Aa(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Ca(e),0===e.avail_out))return n.last_flush=-1,0}return 4!==t?0:n.wrap<=0?1:(2===n.wrap?(xa(n,255&e.adler),xa(n,e.adler>>8&255),xa(n,e.adler>>16&255),xa(n,e.adler>>24&255),xa(n,255&e.total_in),xa(n,e.total_in>>8&255),xa(n,e.total_in>>16&255),xa(n,e.total_in>>24&255)):(Sa(n,e.adler>>>16),Sa(n,65535&e.adler)),Ca(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)}try{String.fromCharCode.call(null,0)}catch(n){}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(n){}const Na=new Ao(256);for(let Vp=0;Vp<256;Vp++)Na[Vp]=Vp>=252?6:Vp>=248?5:Vp>=240?4:Vp>=224?3:Vp>=192?2:1;function Ra(e){let t,r,n,i,o=0;const a=e.length;for(n=0;n>>6,s[i++]=128|63&t):t<65536?(s[i++]=224|t>>>12,s[i++]=128|t>>>6&63,s[i++]=128|63&t):(s[i++]=240|t>>>18,s[i++]=128|t>>>12&63,s[i++]=128|t>>>6&63,s[i++]=128|63&t);return s}Na[254]=Na[254]=1;class La{constructor(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}}class Fa{constructor(e){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,...e||{}};const t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new La,this.strm.avail_out=0;var r,n,i=function(e,t,r,n,i,o){if(!e)return Io;let a=1;if(-1===t&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||8!==r||n<8||n>15||t<0||t>9||o<0||o>4)return va(e,Io);8===n&&(n=9);const s=new Da;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<=r.w_size&&(0===o&&(Aa(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new Ao(r.w_size),So(u,t,l-r.w_size,r.w_size,0),t=u,l=r.w_size),a=e.avail_in,s=e.next_in,c=e.input,e.avail_in=l,e.next_in=0,e.input=t,_a(r);r.lookahead>=3;){n=r.strstart,i=r.lookahead-2;do{r.ins_h=(r.ins_h<0||0===r.avail_out)&&1!==i);return 4===o?(i=function(e){let t;return e&&e.state?(t=e.state.status,42!==t&&69!==t&&73!==t&&91!==t&&t!==ma&&t!==ya&&t!==ba?va(e,Io):(e.state=null,t===ya?va(e,-3):0)):Io}(this.strm),this.onEnd(i),this.ended=!0,0===i):2!==o||(this.onEnd(0),r.avail_out=0,!0)}onData(e){this.chunks.push(e)}onEnd(e){0===e&&(this.result=xo(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg}}function Ua(e,t){let r,n,i,o,a,s,c,u,l,d;const f=e.state;r=e.next_in;const h=e.input,p=r+(e.avail_in-5);n=e.next_out;const g=e.output,m=n-(t-e.avail_out),y=n+(e.avail_out-257),b=f.dmax,v=f.wsize,w=f.whave,A=f.wnext,C=f.window;i=f.hold,o=f.bits;const E=f.lencode,x=f.distcode,S=(1<>>24,i>>>=s,o-=s,s=a>>>16&255,0===s)g[n++]=65535&a;else{if(!(16&s)){if(!(64&s)){a=E[(65535&a)+(i&(1<>>=s,o-=s),o<15&&(i+=h[r++]<>>24,i>>>=s,o-=s,s=a>>>16&255,!(16&s)){if(!(64&s)){a=x[(65535&a)+(i&(1<b){e.msg="invalid distance too far back",f.mode=30;break e}if(i>>>=s,o-=s,s=n-m,u>s){if(s=u-s,s>w&&f.sane){e.msg="invalid distance too far back",f.mode=30;break e}if(l=0,d=C,0===A){if(l+=v-s,s2;)g[n++]=d[l++],g[n++]=d[l++],g[n++]=d[l++],c-=3;c&&(g[n++]=d[l++],c>1&&(g[n++]=d[l++]))}else{l=n-u;do{g[n++]=g[l++],g[n++]=g[l++],g[n++]=g[l++],c-=3}while(c>2);c&&(g[n++]=g[l++],c>1&&(g[n++]=g[l++]))}break}}break}}while(r>3,r-=c,o-=c<<3,i&=(1<=1&&0===I[y];y--);if(b>y&&(b=y),0===y)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(m=1;m0&&(0===e||1!==y))return-1;for(k[1]=0,p=1;p852||2===e&&C>592)return 1;for(;;){_=p-w,a[g]h?(T=P[j+a[g]],M=x[S+a[g]]):(T=96,M=0),u=1<>w)+l]=_<<24|T<<16|M}while(0!==l);for(u=1<>=1;if(0!==u?(E&=u-1,E+=u):E=0,g++,0==--I[p]){if(p===y)break;p=t[r+a[g]]}if(p>b&&(E&D)!==d){for(0===w&&(w=b),f+=m,v=p-w,A=1<852||2===e&&C>592)return 1;d=E&D,i[d]=b<<24|v<<16|f-o}}return 0!==E&&(i[f+E]=p-w<<24|64<<16),s.bits=b,0}const Qa=12,Wa=30;function Ja(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}class Ya{constructor(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Co(320),this.work=new Co(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}}function Za(e,t){let r,n;return e?(n=new Ya,e.state=n,n.window=null,r=function(e,t){let r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Io:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,function(e){let t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,function(e){let t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Eo(852),t.distcode=t.distdyn=new Eo(592),t.sane=1,t.back=-1,0):Io}(e)):Io}(e))):Io}(e,t),0!==r&&(e.state=null),r):Io}let $a,Xa,es=!0;function ts(e){if(es){let t;for($a=new Eo(512),Xa=new Eo(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(qa(1,e.lens,0,288,$a,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;qa(2,e.lens,0,32,Xa,0,e.work,{bits:5}),es=!1}e.lencode=$a,e.lenbits=9,e.distcode=Xa,e.distbits=5}function rs(e,t,r,n){let i;const o=e.state;return null===o.window&&(o.wsize=1<=o.wsize?(So(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),So(o.window,t,r-n,i,o.wnext),(n-=i)?(So(o.window,t,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,r.check=fa(r.check,k,2,0),u=0,l=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=Wa;break}if(8!=(15&u)){e.msg="unknown compression method",r.mode=Wa;break}if(u>>>=4,l-=4,C=8+(15&u),0===r.wbits)r.wbits=C;else if(C>r.wbits){e.msg="invalid window size",r.mode=Wa;break}r.dmax=1<>8&1),512&r.flags&&(k[0]=255&u,k[1]=u>>>8&255,r.check=fa(r.check,k,2,0)),u=0,l=0,r.mode=3;case 3:for(;l<32;){if(0===s)break e;s--,u+=n[o++]<>>8&255,k[2]=u>>>16&255,k[3]=u>>>24&255,r.check=fa(r.check,k,4,0)),u=0,l=0,r.mode=4;case 4:for(;l<16;){if(0===s)break e;s--,u+=n[o++]<>8),512&r.flags&&(k[0]=255&u,k[1]=u>>>8&255,r.check=fa(r.check,k,2,0)),u=0,l=0,r.mode=5;case 5:if(1024&r.flags){for(;l<16;){if(0===s)break e;s--,u+=n[o++]<>>8&255,r.check=fa(r.check,k,2,0)),u=0,l=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(h=r.length,h>s&&(h=s),h&&(r.head&&(C=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),So(r.head.extra,n,o,h,C)),512&r.flags&&(r.check=fa(r.check,n,h,o)),s-=h,o+=h,r.length-=h),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break e;h=0;do{C=n[o+h++],r.head&&C&&r.length<65536&&(r.head.name+=String.fromCharCode(C))}while(C&&h>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Qa;break;case 10:for(;l<32;){if(0===s)break e;s--,u+=n[o++]<>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===s)break e;s--,u+=n[o++]<>>=1,l-=1,3&u){case 0:r.mode=14;break;case 1:if(ts(r),r.mode=20,6===t){u>>>=2,l-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=Wa}u>>>=2,l-=2;break;case 14:for(u>>>=7&l,l-=7&l;l<32;){if(0===s)break e;s--,u+=n[o++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=Wa;break}if(r.length=65535&u,u=0,l=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(h=r.length,h){if(h>s&&(h=s),h>c&&(h=c),0===h)break e;So(i,n,o,h,a),s-=h,o+=h,c-=h,a+=h,r.length-=h;break}r.mode=Qa;break;case 17:for(;l<14;){if(0===s)break e;s--,u+=n[o++]<>>=5,l-=5,r.ndist=1+(31&u),u>>>=5,l-=5,r.ncode=4+(15&u),u>>>=4,l-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Wa;break}r.have=0,r.mode=18;case 18:for(;r.have>>=3,l-=3}for(;r.have<19;)r.lens[_[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,x={bits:r.lenbits},E=qa(0,r.lens,0,19,r.lencode,0,r.work,x),r.lenbits=x.bits,E){e.msg="invalid code lengths set",r.mode=Wa;break}r.have=0,r.mode=19;case 19:for(;r.have>>24,y=I>>>16&255,b=65535&I,!(m<=l);){if(0===s)break e;s--,u+=n[o++]<>>=m,l-=m,r.lens[r.have++]=b;else{if(16===b){for(S=m+2;l>>=m,l-=m,0===r.have){e.msg="invalid bit length repeat",r.mode=Wa;break}C=r.lens[r.have-1],h=3+(3&u),u>>>=2,l-=2}else if(17===b){for(S=m+3;l>>=m,l-=m,C=0,h=3+(7&u),u>>>=3,l-=3}else{for(S=m+7;l>>=m,l-=m,C=0,h=11+(127&u),u>>>=7,l-=7}if(r.have+h>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Wa;break}for(;h--;)r.lens[r.have++]=C}}if(r.mode===Wa)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=Wa;break}if(r.lenbits=9,x={bits:r.lenbits},E=qa(1,r.lens,0,r.nlen,r.lencode,0,r.work,x),r.lenbits=x.bits,E){e.msg="invalid literal/lengths set",r.mode=Wa;break}if(r.distbits=6,r.distcode=r.distdyn,x={bits:r.distbits},E=qa(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,x),r.distbits=x.bits,E){e.msg="invalid distances set",r.mode=Wa;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(s>=6&&c>=258){e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=u,r.bits=l,Ua(e,f),a=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,u=r.hold,l=r.bits,r.mode===Qa&&(r.back=-1);break}for(r.back=0;I=r.lencode[u&(1<>>24,y=I>>>16&255,b=65535&I,!(m<=l);){if(0===s)break e;s--,u+=n[o++]<>v)],m=I>>>24,y=I>>>16&255,b=65535&I,!(v+m<=l);){if(0===s)break e;s--,u+=n[o++]<>>=v,l-=v,r.back+=v}if(u>>>=m,l-=m,r.back+=m,r.length=b,0===y){r.mode=26;break}if(32&y){r.back=-1,r.mode=Qa;break}if(64&y){e.msg="invalid literal/length code",r.mode=Wa;break}r.extra=15&y,r.mode=22;case 22:if(r.extra){for(S=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;I=r.distcode[u&(1<>>24,y=I>>>16&255,b=65535&I,!(m<=l);){if(0===s)break e;s--,u+=n[o++]<>v)],m=I>>>24,y=I>>>16&255,b=65535&I,!(v+m<=l);){if(0===s)break e;s--,u+=n[o++]<>>=v,l-=v,r.back+=v}if(u>>>=m,l-=m,r.back+=m,64&y){e.msg="invalid distance code",r.mode=Wa;break}r.offset=b,r.extra=15&y,r.mode=24;case 24:if(r.extra){for(S=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Wa;break}r.mode=25;case 25:if(0===c)break e;if(h=f-c,r.offset>h){if(h=r.offset-h,h>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Wa;break}h>r.wnext?(h-=r.wnext,p=r.wsize-h):p=r.wnext-h,h>r.length&&(h=r.length),g=r.window}else g=i,p=a-r.offset,h=r.length;h>c&&(h=c),c-=h,r.length-=h;do{i[a++]=g[p++]}while(--h);0===r.length&&(r.mode=21);break;case 26:if(0===c)break e;i[a++]=r.length,c--,r.mode=21;break;case 27:if(r.wrap){for(;l<32;){if(0===s)break e;s--,u|=n[o++]<=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new La,this.strm.avail_out=0;let r=Za(this.strm,t.windowBits);if(0!==r)throw Error(ha[r]);if(this.header=new os,function(e,t){let r;e&&e.state&&(r=e.state,!(2&r.wrap)||(r.head=t,t.done=!1))}(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Ra(t.dictionary):t.dictionary instanceof ArrayBuffer&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=is(this.strm,t.dictionary),0!==r)))throw Error(ha[r])}push(e,t){const{strm:r,options:{chunkSize:n,dictionary:i}}=this;let o,a,s=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?r.input=function(e){const t=new Ao(e.length);for(let r=0,n=t.length;r0||0===r.avail_out)&&1!==o);return 1===o&&(a=4),4===a?(o=function(e){if(!e||!e.state)return Io;const t=e.state;return t.window&&(t.window=null),e.state=null,0}(this.strm),this.onEnd(o),this.ended=!0,0===o):2!==a||(this.onEnd(0),r.avail_out=0,!0)}onData(e){this.chunks.push(e)}onEnd(e){0===e&&(this.result=xo(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg}}var ss=[0,1,3,7,15,31,63,127,255],cs=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};cs.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)},cs.prototype.read=function(e){for(var t=0;e>0;){this._ensureByte();var r=8-this.bitOffset;if(e>=r)t<<=r,t|=ss[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,e-=r;else{t<<=e;var n=r-e;t|=(this.curByte&ss[e]<>n,this.bitOffset+=e,e=0}}return t},cs.prototype.seek=function(e){var t=e%8,r=(e-t)/8;this.bitOffset=t,this.stream.seek(r),this.hasByte=!1},cs.prototype.pi=function(){var e,t=new Uint8Array(6);for(e=0;e("00"+e.toString(16)).slice(-2))).join("")}(t)};var us=cs,ls=function(){};ls.prototype.readByte=function(){throw Error("abstract method readByte() not implemented")},ls.prototype.read=function(e,t,r){for(var n=0;n>>0},this.updateCRC=function(t){e=e<<8^ds[255&(e>>>24^t)]},this.updateCRCRun=function(t,r){for(;r-- >0;)e=e<<8^ds[255&(e>>>24^t)]}}),ps=function(e,t){var r,n=e[t];for(r=t;r>0;r--)e[r]=e[r-1];return e[0]=n,n},gs=-2,ms=-3,ys=-4,bs=-5,vs=-6,ws=-7,As={"-1":"Bad file checksum"};As[gs]="Not bzip data",As[ms]="Unexpected input EOF",As[ys]="Unexpected output EOF",As[bs]="Data error",As[vs]="Out of memory",As[ws]="Obsolete (pre 0.9.5) bzip format not supported.";var Cs=function(e,t){var r=As[e]||"unknown error";t&&(r+=": "+t);var n=new TypeError(r);throw n.errorCode=e,n},Es=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};Es.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new hs,!0):(this.writeCount=-1,!1)},Es.prototype._start_bunzip=function(e,t){var r=new Uint8Array(4);4===e.read(r,0,4)&&"BZh"===String.fromCharCode(r[0],r[1],r[2])||Cs(gs,"bad magic");var n=r[3]-48;(n<1||n>9)&&Cs(gs,"level out of range"),this.reader=new us(e),this.dbufSize=1e5*n,this.nextoutput=0,this.outputStream=t,this.streamCRC=0},Es.prototype._get_next_block=function(){var e,t,r,n=this.reader,i=n.pi();if("177245385090"===i)return!1;"314159265359"!==i&&Cs(gs),this.targetBlockCRC=n.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,n.read(1)&&Cs(ws);var o=n.read(24);o>this.dbufSize&&Cs(bs,"initial position out of bounds");var a=n.read(16),s=new Uint8Array(256),c=0;for(e=0;e<16;e++)if(a&1<<15-e){var u=16*e;for(r=n.read(16),t=0;t<16;t++)r&1<<15-t&&(s[c++]=u+t)}var l=n.read(3);(l<2||l>6)&&Cs(bs);var d=n.read(15);0===d&&Cs(bs);var f=new Uint8Array(256);for(e=0;e=l&&Cs(bs);h[e]=ps(f,t)}var p,g=c+2,m=[];for(t=0;t20)&&Cs(bs),n.read(1);)n.read(1)?a--:a++;v[e]=a}for(y=b=v[0],e=1;eb?b=v[e]:v[e]=d&&Cs(bs),p=m[h[I++]]),e=p.minLen,t=n.read(e);e>p.maxLen&&Cs(bs),!(t<=p.limit[e]);e++)t=t<<1|n.read(1);((t-=p.base[e])<0||t>=258)&&Cs(bs);var _=p.permute[t];if(0!==_&&1!==_){if(x)for(x=0,S+a>this.dbufSize&&Cs(bs),C[E=s[f[0]]]+=a;a--;)k[S++]=E;if(_>c)break;S>=this.dbufSize&&Cs(bs),C[E=s[E=ps(f,e=_-1)]]++,k[S++]=E}else x||(x=1,a=0),a+=0===_?x:2*x,x<<=1}for((o<0||o>=S)&&Cs(bs),t=0,e=0;e<256;e++)r=t+C[e],C[e]=t,t=r;for(e=0;e>=8,P=-1),this.writePos=T,this.writeCurrent=M,this.writeCount=S,this.writeRun=P,!0},Es.prototype._read_bunzip=function(e,t){var r,n,i;if(this.writeCount<0)return 0;var o=this.dbuf,a=this.writePos,s=this.writeCurrent,c=this.writeCount;this.outputsize;for(var u=this.writeRun;c;){for(c--,n=s,s=255&(a=o[a]),a>>=8,3==u++?(r=s,i=n,s=-1):(r=1,i=s),this.blockCRC.updateCRCRun(i,r);r--;)this.outputStream.writeByte(i),this.nextoutput++;s!=n&&(u=0)}return this.writeCount=c,this.blockCRC.getCRC()!==this.targetBlockCRC&&Cs(bs,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var xs=function(e,t,r){for(var n=function(e){if("readByte"in e)return e;var t=new fs;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(e){this.pos=e},t.eof=function(){return this.pos>=e.length},t}(e),i=function(e){var t=new fs,r=!0;if(e)if("number"==typeof e)t.buffer=new Uint8Array(e),r=!1;else{if("writeByte"in e)return e;t.buffer=e,r=!1}else t.buffer=new Uint8Array(16384);return t.pos=0,t.writeByte=function(e){if(r&&this.pos>=this.buffer.length){var t=new Uint8Array(2*this.buffer.length);t.set(this.buffer),this.buffer=t}this.buffer[this.pos++]=e},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!r)throw new TypeError("outputsize does not match decoded input");var e=new Uint8Array(this.pos);e.set(this.buffer.subarray(0,this.pos)),this.buffer=e}return this.buffer},t._coerced=!0,t}(t),o=new Es(n,i);!("eof"in n)||!n.eof();)if(o._init_block())o._read_bunzip();else{var a=o.reader.read(32)>>>0;if(a!==o.streamCRC&&Cs(bs,"Bad stream CRC (got "+o.streamCRC.toString(16)+" expected "+a.toString(16)+")"),!r||!("eof"in n)||n.eof())break;o._start_bunzip(n,i)}if("getBuffer"in i)return i.getBuffer()};class Ss{static get tag(){return Y.packet.literalData}constructor(e=new Date){this.format=Y.literal.utf8,this.date=$.normalizeDate(e),this.text=null,this.data=null,this.filename=""}setText(e,t=Y.literal.utf8){this.format=t,this.text=e,this.data=null}getText(e=!1){return(null===this.text||$.isStream(this.text))&&(this.text=$.decodeUTF8($.nativeEOL(this.getBytes(e)))),this.text}setBytes(e,t){this.format=t,this.data=e,this.text=null}getBytes(e=!1){return null===this.data&&(this.data=$.canonicalizeEOL($.encodeUTF8(this.text))),e?H(this.data):this.data}setFilename(e){this.filename=e}getFilename(){return this.filename}async read(e){await U(e,(async e=>{const t=await e.readByte(),r=await e.readByte();this.filename=$.decodeUTF8(await e.readBytes(r)),this.date=$.readDate(await e.readBytes(4));let n=e.remainder();u(n)&&(n=await G(n)),this.setBytes(n,t)}))}writeHeader(){const e=$.encodeUTF8(this.filename),t=new Uint8Array([e.length]),r=new Uint8Array([this.format]),n=$.writeDate(this.date);return $.concatUint8Array([r,t,e,n])}write(){const e=this.writeHeader(),t=this.getBytes();return $.concat([e,t])}}const Is=Symbol("verified"),ks=new Set([Y.signatureSubpacket.issuer,Y.signatureSubpacket.issuerFingerprint,Y.signatureSubpacket.embeddedSignature]);class _s{static get tag(){return Y.packet.signature}constructor(){this.version=null,this.signatureType=null,this.hashAlgorithm=null,this.publicKeyAlgorithm=null,this.signatureData=null,this.unhashedSubpackets=[],this.signedHashValue=null,this.created=null,this.signatureExpirationTime=null,this.signatureNeverExpires=!0,this.exportable=null,this.trustLevel=null,this.trustAmount=null,this.regularExpression=null,this.revocable=null,this.keyExpirationTime=null,this.keyNeverExpires=null,this.preferredSymmetricAlgorithms=null,this.revocationKeyClass=null,this.revocationKeyAlgorithm=null,this.revocationKeyFingerprint=null,this.issuerKeyID=new me,this.rawNotations=[],this.notations={},this.preferredHashAlgorithms=null,this.preferredCompressionAlgorithms=null,this.keyServerPreferences=null,this.preferredKeyServer=null,this.isPrimaryUserID=null,this.policyURI=null,this.keyFlags=null,this.signersUserID=null,this.reasonForRevocationFlag=null,this.reasonForRevocationString=null,this.features=null,this.signatureTargetPublicKeyAlgorithm=null,this.signatureTargetHashAlgorithm=null,this.signatureTargetHash=null,this.embeddedSignature=null,this.issuerKeyVersion=null,this.issuerFingerprint=null,this.preferredAEADAlgorithms=null,this.revoked=null,this[Is]=null}read(e){let t=0;if(this.version=e[t++],4!==this.version&&5!==this.version)throw new pi(`Version ${this.version} of the signature packet is unsupported.`);if(this.signatureType=e[t++],this.publicKeyAlgorithm=e[t++],this.hashAlgorithm=e[t++],t+=this.readSubPackets(e.subarray(t,e.length),!0),!this.created)throw Error("Missing signature creation time subpacket.");this.signatureData=e.subarray(0,t),t+=this.readSubPackets(e.subarray(t,e.length),!1),this.signedHashValue=e.subarray(t,t+2),t+=2,this.params=mo.signature.parseSignatureParams(this.publicKeyAlgorithm,e.subarray(t,e.length))}writeParams(){return this.params instanceof Promise?Q((async()=>mo.serializeParams(this.publicKeyAlgorithm,await this.params))):mo.serializeParams(this.publicKeyAlgorithm,this.params)}write(){const e=[];return e.push(this.signatureData),e.push(this.writeUnhashedSubPackets()),e.push(this.signedHashValue),e.push(this.writeParams()),$.concat(e)}async sign(e,t,r=new Date,n=!1){5===e.version?this.version=5:this.version=4;const i=[new Uint8Array([this.version,this.signatureType,this.publicKeyAlgorithm,this.hashAlgorithm])];this.created=$.normalizeDate(r),this.issuerKeyVersion=e.version,this.issuerFingerprint=e.getFingerprintBytes(),this.issuerKeyID=e.getKeyID(),i.push(this.writeHashedSubPackets()),this.unhashedSubpackets=[],this.signatureData=$.concat(i);const o=this.toHash(this.signatureType,t,n),a=await this.hash(this.signatureType,t,o,n);this.signedHashValue=K(z(a),0,2);const s=async()=>mo.signature.sign(this.publicKeyAlgorithm,this.hashAlgorithm,e.publicParams,e.privateParams,o,await G(a));$.isStream(a)?this.params=s():(this.params=await s(),this[Is]=!0)}writeHashedSubPackets(){const e=Y.signatureSubpacket,t=[];let r;if(null===this.created)throw Error("Missing signature creation time");t.push(Ts(e.signatureCreationTime,!0,$.writeDate(this.created))),null!==this.signatureExpirationTime&&t.push(Ts(e.signatureExpirationTime,!0,$.writeNumber(this.signatureExpirationTime,4))),null!==this.exportable&&t.push(Ts(e.exportableCertification,!0,new Uint8Array([this.exportable?1:0]))),null!==this.trustLevel&&(r=new Uint8Array([this.trustLevel,this.trustAmount]),t.push(Ts(e.trustSignature,!0,r))),null!==this.regularExpression&&t.push(Ts(e.regularExpression,!0,this.regularExpression)),null!==this.revocable&&t.push(Ts(e.revocable,!0,new Uint8Array([this.revocable?1:0]))),null!==this.keyExpirationTime&&t.push(Ts(e.keyExpirationTime,!0,$.writeNumber(this.keyExpirationTime,4))),null!==this.preferredSymmetricAlgorithms&&(r=$.stringToUint8Array($.uint8ArrayToString(this.preferredSymmetricAlgorithms)),t.push(Ts(e.preferredSymmetricAlgorithms,!1,r))),null!==this.revocationKeyClass&&(r=new Uint8Array([this.revocationKeyClass,this.revocationKeyAlgorithm]),r=$.concat([r,this.revocationKeyFingerprint]),t.push(Ts(e.revocationKey,!1,r))),this.issuerKeyID.isNull()||5===this.issuerKeyVersion||t.push(Ts(e.issuer,!0,this.issuerKeyID.write())),this.rawNotations.forEach((({name:n,value:i,humanReadable:o,critical:a})=>{r=[new Uint8Array([o?128:0,0,0,0])];const s=$.encodeUTF8(n);r.push($.writeNumber(s.length,2)),r.push($.writeNumber(i.length,2)),r.push(s),r.push(i),r=$.concat(r),t.push(Ts(e.notationData,a,r))})),null!==this.preferredHashAlgorithms&&(r=$.stringToUint8Array($.uint8ArrayToString(this.preferredHashAlgorithms)),t.push(Ts(e.preferredHashAlgorithms,!1,r))),null!==this.preferredCompressionAlgorithms&&(r=$.stringToUint8Array($.uint8ArrayToString(this.preferredCompressionAlgorithms)),t.push(Ts(e.preferredCompressionAlgorithms,!1,r))),null!==this.keyServerPreferences&&(r=$.stringToUint8Array($.uint8ArrayToString(this.keyServerPreferences)),t.push(Ts(e.keyServerPreferences,!1,r))),null!==this.preferredKeyServer&&t.push(Ts(e.preferredKeyServer,!1,$.encodeUTF8(this.preferredKeyServer))),null!==this.isPrimaryUserID&&t.push(Ts(e.primaryUserID,!1,new Uint8Array([this.isPrimaryUserID?1:0]))),null!==this.policyURI&&t.push(Ts(e.policyURI,!1,$.encodeUTF8(this.policyURI))),null!==this.keyFlags&&(r=$.stringToUint8Array($.uint8ArrayToString(this.keyFlags)),t.push(Ts(e.keyFlags,!0,r))),null!==this.signersUserID&&t.push(Ts(e.signersUserID,!1,$.encodeUTF8(this.signersUserID))),null!==this.reasonForRevocationFlag&&(r=$.stringToUint8Array(String.fromCharCode(this.reasonForRevocationFlag)+this.reasonForRevocationString),t.push(Ts(e.reasonForRevocation,!0,r))),null!==this.features&&(r=$.stringToUint8Array($.uint8ArrayToString(this.features)),t.push(Ts(e.features,!1,r))),null!==this.signatureTargetPublicKeyAlgorithm&&(r=[new Uint8Array([this.signatureTargetPublicKeyAlgorithm,this.signatureTargetHashAlgorithm])],r.push($.stringToUint8Array(this.signatureTargetHash)),r=$.concat(r),t.push(Ts(e.signatureTarget,!0,r))),null!==this.embeddedSignature&&t.push(Ts(e.embeddedSignature,!0,this.embeddedSignature.write())),null!==this.issuerFingerprint&&(r=[new Uint8Array([this.issuerKeyVersion]),this.issuerFingerprint],r=$.concat(r),t.push(Ts(e.issuerFingerprint,5===this.version,r))),null!==this.preferredAEADAlgorithms&&(r=$.stringToUint8Array($.uint8ArrayToString(this.preferredAEADAlgorithms)),t.push(Ts(e.preferredAEADAlgorithms,!1,r)));const n=$.concat(t),i=$.writeNumber(n.length,2);return $.concat([i,n])}writeUnhashedSubPackets(){const e=[];this.unhashedSubpackets.forEach((t=>{e.push(ci(t.length)),e.push(t)}));const t=$.concat(e),r=$.writeNumber(t.length,2);return $.concat([r,t])}readSubPacket(e,t=!0){let r=0;const n=!!(128&e[r]),i=127&e[r];if(t||(this.unhashedSubpackets.push(e.subarray(r,e.length)),ks.has(i)))switch(r++,i){case Y.signatureSubpacket.signatureCreationTime:this.created=$.readDate(e.subarray(r,e.length));break;case Y.signatureSubpacket.signatureExpirationTime:{const t=$.readNumber(e.subarray(r,e.length));this.signatureNeverExpires=0===t,this.signatureExpirationTime=t;break}case Y.signatureSubpacket.exportableCertification:this.exportable=1===e[r++];break;case Y.signatureSubpacket.trustSignature:this.trustLevel=e[r++],this.trustAmount=e[r++];break;case Y.signatureSubpacket.regularExpression:this.regularExpression=e[r];break;case Y.signatureSubpacket.revocable:this.revocable=1===e[r++];break;case Y.signatureSubpacket.keyExpirationTime:{const t=$.readNumber(e.subarray(r,e.length));this.keyExpirationTime=t,this.keyNeverExpires=0===t;break}case Y.signatureSubpacket.preferredSymmetricAlgorithms:this.preferredSymmetricAlgorithms=[...e.subarray(r,e.length)];break;case Y.signatureSubpacket.revocationKey:this.revocationKeyClass=e[r++],this.revocationKeyAlgorithm=e[r++],this.revocationKeyFingerprint=e.subarray(r,r+20);break;case Y.signatureSubpacket.issuer:this.issuerKeyID.read(e.subarray(r,e.length));break;case Y.signatureSubpacket.notationData:{const t=!!(128&e[r]);r+=4;const i=$.readNumber(e.subarray(r,r+2));r+=2;const o=$.readNumber(e.subarray(r,r+2));r+=2;const a=$.decodeUTF8(e.subarray(r,r+i)),s=e.subarray(r+i,r+i+o);this.rawNotations.push({name:a,humanReadable:t,value:s,critical:n}),t&&(this.notations[a]=$.decodeUTF8(s));break}case Y.signatureSubpacket.preferredHashAlgorithms:this.preferredHashAlgorithms=[...e.subarray(r,e.length)];break;case Y.signatureSubpacket.preferredCompressionAlgorithms:this.preferredCompressionAlgorithms=[...e.subarray(r,e.length)];break;case Y.signatureSubpacket.keyServerPreferences:this.keyServerPreferences=[...e.subarray(r,e.length)];break;case Y.signatureSubpacket.preferredKeyServer:this.preferredKeyServer=$.decodeUTF8(e.subarray(r,e.length));break;case Y.signatureSubpacket.primaryUserID:this.isPrimaryUserID=0!==e[r++];break;case Y.signatureSubpacket.policyURI:this.policyURI=$.decodeUTF8(e.subarray(r,e.length));break;case Y.signatureSubpacket.keyFlags:this.keyFlags=[...e.subarray(r,e.length)];break;case Y.signatureSubpacket.signersUserID:this.signersUserID=$.decodeUTF8(e.subarray(r,e.length));break;case Y.signatureSubpacket.reasonForRevocation:this.reasonForRevocationFlag=e[r++],this.reasonForRevocationString=$.decodeUTF8(e.subarray(r,e.length));break;case Y.signatureSubpacket.features:this.features=[...e.subarray(r,e.length)];break;case Y.signatureSubpacket.signatureTarget:{this.signatureTargetPublicKeyAlgorithm=e[r++],this.signatureTargetHashAlgorithm=e[r++];const t=mo.getHashByteLength(this.signatureTargetHashAlgorithm);this.signatureTargetHash=$.uint8ArrayToString(e.subarray(r,r+t));break}case Y.signatureSubpacket.embeddedSignature:this.embeddedSignature=new _s,this.embeddedSignature.read(e.subarray(r,e.length));break;case Y.signatureSubpacket.issuerFingerprint:this.issuerKeyVersion=e[r++],this.issuerFingerprint=e.subarray(r,e.length),5===this.issuerKeyVersion?this.issuerKeyID.read(this.issuerFingerprint):this.issuerKeyID.read(this.issuerFingerprint.subarray(-8));break;case Y.signatureSubpacket.preferredAEADAlgorithms:this.preferredAEADAlgorithms=[...e.subarray(r,e.length)];break;default:{const e=Error("Unknown signature subpacket type "+i);if(n)throw e;$.printDebug(e)}}}readSubPackets(e,t=!0,r){const n=$.readNumber(e.subarray(0,2));let i=2;for(;i<2+n;){const n=si(e.subarray(i,e.length));i+=n.offset,this.readSubPacket(e.subarray(i,i+n.len),t,r),i+=n.len}return i}toSign(e,t){const r=Y.signature;switch(e){case r.binary:return null!==t.text?$.encodeUTF8(t.getText(!0)):t.getBytes(!0);case r.text:{const e=t.getBytes(!0);return $.canonicalizeEOL(e)}case r.standalone:return new Uint8Array(0);case r.certGeneric:case r.certPersona:case r.certCasual:case r.certPositive:case r.certRevocation:{let e,n;if(t.userID)n=180,e=t.userID;else{if(!t.userAttribute)throw Error("Either a userID or userAttribute packet needs to be supplied for certification.");n=209,e=t.userAttribute}const i=e.write();return $.concat([this.toSign(r.key,t),new Uint8Array([n]),$.writeNumber(i.length,4),i])}case r.subkeyBinding:case r.subkeyRevocation:case r.keyBinding:return $.concat([this.toSign(r.key,t),this.toSign(r.key,{key:t.bind})]);case r.key:if(void 0===t.key)throw Error("Key packet is required for this signature.");return t.key.writeForHash(this.version);case r.keyRevocation:return this.toSign(r.key,t);case r.timestamp:return new Uint8Array(0);case r.thirdParty:throw Error("Not implemented");default:throw Error("Unknown signature type.")}}calculateTrailer(e,t){let r=0;return L(z(this.signatureData),(e=>{r+=e.length}),(()=>{const n=[];return 5!==this.version||this.signatureType!==Y.signature.binary&&this.signatureType!==Y.signature.text||(t?n.push(new Uint8Array(6)):n.push(e.writeHeader())),n.push(new Uint8Array([this.version,255])),5===this.version&&n.push(new Uint8Array(4)),n.push($.writeNumber(r,4)),$.concat(n)}))}toHash(e,t,r=!1){const n=this.toSign(e,t);return $.concat([n,this.signatureData,this.calculateTrailer(t,r)])}async hash(e,t,r,n=!1){return r||(r=this.toHash(e,t,n)),mo.hash.digest(this.hashAlgorithm,r)}async verify(e,t,r,n=new Date,i=!1,o=ae){if(!this.issuerKeyID.equals(e.getKeyID()))throw Error("Signature was not issued by the given public key");if(this.publicKeyAlgorithm!==e.algorithm)throw Error("Public key algorithm used to sign signature does not match issuer key algorithm.");const a=t===Y.signature.binary||t===Y.signature.text;if(!this[Is]||a){let n,o;if(this.hashed?o=await this.hashed:(n=this.toHash(t,r,i),o=await this.hash(t,r,n)),o=await G(o),this.signedHashValue[0]!==o[0]||this.signedHashValue[1]!==o[1])throw Error("Signed digest did not match");if(this.params=await this.params,this[Is]=await mo.signature.verify(this.publicKeyAlgorithm,this.hashAlgorithm,this.params,e.publicParams,n,o),!this[Is])throw Error("Signature verification failed")}const s=$.normalizeDate(n);if(s&&this.created>s)throw Error("Signature creation time is in the future");if(s&&s>=this.getExpirationTime())throw Error("Signature is expired");if(o.rejectHashAlgorithms.has(this.hashAlgorithm))throw Error("Insecure hash algorithm: "+Y.read(Y.hash,this.hashAlgorithm).toUpperCase());if(o.rejectMessageHashAlgorithms.has(this.hashAlgorithm)&&[Y.signature.binary,Y.signature.text].includes(this.signatureType))throw Error("Insecure message hash algorithm: "+Y.read(Y.hash,this.hashAlgorithm).toUpperCase());if(this.rawNotations.forEach((({name:e,critical:t})=>{if(t&&o.knownNotations.indexOf(e)<0)throw Error("Unknown critical notation: "+e)})),null!==this.revocationKeyClass)throw Error("This key is intended to be revoked with an authorized key, which OpenPGP.js does not support.")}isExpired(e=new Date){const t=$.normalizeDate(e);return null!==t&&!(this.created<=t&&t_s.prototype.calculateTrailer.apply(await this.correspondingSig,e)))}async verify(){const e=await this.correspondingSig;if(!e||e.constructor.tag!==Y.packet.signature)throw Error("Corresponding signature packet missing");if(e.signatureType!==this.signatureType||e.hashAlgorithm!==this.hashAlgorithm||e.publicKeyAlgorithm!==this.publicKeyAlgorithm||!e.issuerKeyID.equals(this.issuerKeyID))throw Error("Corresponding signature packet does not match one-pass signature packet");return e.hashed=this.hashed,e.verify.apply(e,arguments)}}function Ps(e,t){if(!t[e]){let r;try{r=Y.read(Y.packet,e)}catch(t){throw new pi("Unknown packet type with tag: "+e)}throw Error("Packet not allowed in this context: "+r)}return new t[e]}Ms.prototype.hash=_s.prototype.hash,Ms.prototype.toHash=_s.prototype.toHash,Ms.prototype.toSign=_s.prototype.toSign;class js extends Array{static async fromBinary(e,t,r=ae){const n=new js;return await n.read(e,t,r),n}async read(e,t,r=ae){r.additionalAllowedPackets.length&&(t={...t,...$.constructAllowedPackets(r.additionalAllowedPackets)}),this.stream=F(e,(async(e,n)=>{const i=O(n);try{for(;;)if(await i.ready,await hi(e,(async e=>{try{if(e.tag===Y.packet.marker||e.tag===Y.packet.trust)return;const n=Ps(e.tag,t);n.packets=new js,n.fromStream=$.isStream(e.packet),await n.read(e.packet,r),await i.write(n)}catch(t){const o=!r.ignoreUnsupportedPackets&&t instanceof pi,a=!(r.ignoreMalformedPackets||t instanceof pi);if(o||a||fi(e.tag))await i.abort(t);else{const t=new gi(e.tag,e.packet);await i.write(t)}$.printDebugError(t)}})))return await i.ready,void await i.close()}catch(e){await i.abort(e)}}));const n=D(this.stream);for(;;){const{done:e,value:t}=await n.read();if(e?this.stream=null:this.push(t),e||fi(t.constructor.tag))break}n.releaseLock()}write(){const e=[];for(let t=0;t{if(t.push(e),i+=e.length,i>=o){const e=Math.min(Math.log(i)/Math.LN2|0,30),r=2**e,n=$.concat([ui(e)].concat(t));return t=[n.subarray(1+r)],i=t[0].length,n.subarray(0,1+r)}}),(()=>$.concat([ci(i)].concat(t)))))}else{if($.isStream(n)){let t=0;e.push(L(z(n),(e=>{t+=e.length}),(()=>di(r,t))))}else e.push(di(r,n.length));e.push(n)}}return $.concat(e)}filterByTag(...e){const t=new js,r=e=>t=>e===t;for(let n=0;nt.constructor.tag===e))}indexOfTag(...e){const t=[],r=this,n=e=>t=>e===t;for(let i=0;i{this.algorithm=await e.readByte(),this.compressed=e.remainder(),await this.decompress(t)}))}write(){return null===this.compressed&&this.compress(),$.concat([new Uint8Array([this.algorithm]),this.compressed])}async decompress(e=ae){const t=Y.read(Y.compression,this.algorithm),r=zs[t];if(!r)throw Error(t+" decompression not supported");this.packets=await js.fromBinary(r(this.compressed),Ds,e)}compress(){const e=Y.read(Y.compression,this.algorithm),t=Us[e];if(!t)throw Error(e+" compression not supported");this.compressed=t(this.packets.write(),this.deflateLevel)}}const Bs=$.getNodeZlib();function Ns(e){return e}function Rs(e,t,r={}){return function(n){return!$.isStream(n)||u(n)?Q((()=>G(n).then((t=>new Promise(((n,i)=>{e(t,r,((e,t)=>{if(e)return i(e);n(t)}))})))))):b(v(n).pipe(t(r)))}}function Ls(e,t={}){return function(r){const n=new e(t);return L(r,(e=>{if(e.length)return n.push(e,2),n.result}),(()=>{if(e===Fa)return n.push([],4),n.result}))}}function Fs(e){return function(t){return Q((async()=>e(await G(t))))}}const Us=Bs?{zip:(e,t)=>Rs(Bs.deflateRaw,Bs.createDeflateRaw,{level:t})(e),zlib:(e,t)=>Rs(Bs.deflate,Bs.createDeflate,{level:t})(e)}:{zip:(e,t)=>Ls(Fa,{raw:!0,level:t})(e),zlib:(e,t)=>Ls(Fa,{level:t})(e)},zs=Bs?{uncompressed:Ns,zip:Rs(Bs.inflateRaw,Bs.createInflateRaw),zlib:Rs(Bs.inflate,Bs.createInflate),bzip2:Fs(xs)}:{uncompressed:Ns,zip:Ls(as,{raw:!0}),zlib:Ls(as),bzip2:Fs(xs)},Hs=$.constructAllowedPackets([Ss,Os,Ms,_s]);class Vs{static get tag(){return Y.packet.symEncryptedIntegrityProtectedData}constructor(){this.version=1,this.encrypted=null,this.packets=null}async read(e){await U(e,(async e=>{const t=await e.readByte();if(1!==t)throw new pi(`Version ${t} of the SEIP packet is unsupported.`);this.encrypted=e.remainder()}))}write(){return $.concat([new Uint8Array([1]),this.encrypted])}async encrypt(e,t,r=ae){const{blockSize:n}=mo.getCipher(e);let i=this.packets.write();u(i)&&(i=await G(i));const o=await mo.getPrefixRandom(e),a=new Uint8Array([211,20]),s=$.concat([o,i,a]),c=await mo.hash.sha1(H(s)),l=$.concat([s,c]);return this.encrypted=await mo.mode.cfb.encrypt(e,t,l,new Uint8Array(n),r),!0}async decrypt(e,t,r=ae){const{blockSize:n}=mo.getCipher(e);let i=z(this.encrypted);u(i)&&(i=await G(i));const o=await mo.mode.cfb.decrypt(e,t,i,new Uint8Array(n)),a=K(H(o),-20),s=K(o,0,-20),c=Promise.all([G(await mo.hash.sha1(H(s))),G(a)]).then((([e,t])=>{if(!$.equalsUint8Array(e,t))throw Error("Modification detected.");return new Uint8Array})),l=K(s,n+2);let d=K(l,0,-2);return d=j([d,Q((()=>c))]),$.isStream(i)&&r.allowUnauthenticatedStream||(d=await G(d)),this.packets=await js.fromBinary(d,Hs,r),!0}}const Ks=$.constructAllowedPackets([Ss,Os,Ms,_s]);class Gs{static get tag(){return Y.packet.aeadEncryptedData}constructor(){this.version=1,this.cipherAlgorithm=null,this.aeadAlgorithm=Y.aead.eax,this.chunkSizeByte=null,this.iv=null,this.encrypted=null,this.packets=null}async read(e){await U(e,(async e=>{const t=await e.readByte();if(1!==t)throw new pi(`Version ${t} of the AEAD-encrypted data packet is not supported.`);this.cipherAlgorithm=await e.readByte(),this.aeadAlgorithm=await e.readByte(),this.chunkSizeByte=await e.readByte();const r=mo.getAEADMode(this.aeadAlgorithm);this.iv=await e.readBytes(r.ivLength),this.encrypted=e.remainder()}))}write(){return $.concat([new Uint8Array([this.version,this.cipherAlgorithm,this.aeadAlgorithm,this.chunkSizeByte]),this.iv,this.encrypted])}async decrypt(e,t,r=ae){this.packets=await js.fromBinary(await this.crypt("decrypt",t,z(this.encrypted)),Ks,r)}async encrypt(e,t,r=ae){this.cipherAlgorithm=e;const{ivLength:n}=mo.getAEADMode(this.aeadAlgorithm);this.iv=mo.random.getRandomBytes(n),this.chunkSizeByte=r.aeadChunkSizeByte;const i=this.packets.write();this.encrypted=await this.crypt("encrypt",t,i)}async crypt(e,t,r){const n=mo.getAEADMode(this.aeadAlgorithm),i=await n(this.cipherAlgorithm,t),o="decrypt"===e?n.tagLength:0,a="encrypt"===e?n.tagLength:0,s=2**(this.chunkSizeByte+6)+o,c=new ArrayBuffer(21),u=new Uint8Array(c,0,13),l=new Uint8Array(c),d=new DataView(c),f=new Uint8Array(c,5,8);u.set([192|Gs.tag,this.version,this.cipherAlgorithm,this.aeadAlgorithm,this.chunkSizeByte],0);let h=0,p=Promise.resolve(),g=0,m=0;const y=this.iv;return F(r,(async(t,r)=>{if("array"!==$.isStream(t)){const e=new k({},{highWaterMark:$.getHardwareConcurrency()*2**(this.chunkSizeByte+6),size:e=>e.length});B(e.readable,r),r=e.writable}const c=D(t),b=O(r);try{for(;;){let t=await c.readBytes(s+o)||new Uint8Array;const r=t.subarray(t.length-o);let v,w;if(t=t.subarray(0,t.length-o),!h||t.length?(c.unshift(r),v=i[e](t,n.getNonce(y,f),u),m+=t.length-o+a):(d.setInt32(17,g),v=i[e](r,n.getNonce(y,f),l),m+=a,w=!0),g+=t.length-o,p=p.then((()=>v)).then((async e=>{await b.ready,await b.write(e),m-=e.length})).catch((e=>b.abort(e))),(w||m>b.desiredSize)&&await p,w){await b.close();break}d.setInt32(9,++h)}}catch(e){await b.abort(e)}}))}}class qs{static get tag(){return Y.packet.publicKeyEncryptedSessionKey}constructor(){this.version=3,this.publicKeyID=new me,this.publicKeyAlgorithm=null,this.sessionKey=null,this.sessionKeyAlgorithm=null,this.encrypted={}}read(e){let t=0;if(this.version=e[t++],3!==this.version)throw new pi(`Version ${this.version} of the PKESK packet is unsupported.`);t+=this.publicKeyID.read(e.subarray(t)),this.publicKeyAlgorithm=e[t++],this.encrypted=mo.parseEncSessionKeyParams(this.publicKeyAlgorithm,e.subarray(t),this.version),this.publicKeyAlgorithm===Y.publicKey.x25519&&(this.sessionKeyAlgorithm=Y.write(Y.symmetric,this.encrypted.C.algorithm))}write(){const e=[new Uint8Array([this.version]),this.publicKeyID.write(),new Uint8Array([this.publicKeyAlgorithm]),mo.serializeParams(this.publicKeyAlgorithm,this.encrypted)];return $.concatUint8Array(e)}async encrypt(e){const t=Y.write(Y.publicKey,this.publicKeyAlgorithm),r=Qs(this.version,t,this.sessionKeyAlgorithm,this.sessionKey);this.encrypted=await mo.publicKeyEncrypt(t,this.sessionKeyAlgorithm,e.publicParams,r,e.getFingerprintBytes())}async decrypt(e,t){if(this.publicKeyAlgorithm!==e.algorithm)throw Error("Decryption error");const r=t?Qs(this.version,this.publicKeyAlgorithm,t.sessionKeyAlgorithm,t.sessionKey):null,n=await mo.publicKeyDecrypt(this.publicKeyAlgorithm,e.publicParams,e.privateParams,this.encrypted,e.getFingerprintBytes(),r),{sessionKey:i,sessionKeyAlgorithm:o}=function(e,t,r,n){switch(t){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:case Y.publicKey.elgamal:case Y.publicKey.ecdh:{const e=r.subarray(0,r.length-2),t=r.subarray(r.length-2),i=$.writeChecksum(e.subarray(e.length%8)),o=i[0]===t[0]&i[1]===t[1],a={sessionKeyAlgorithm:e[0],sessionKey:e.subarray(1)};if(n){const e=o&a.sessionKeyAlgorithm===n.sessionKeyAlgorithm&a.sessionKey.length===n.sessionKey.length;return{sessionKey:$.selectUint8Array(e,a.sessionKey,n.sessionKey),sessionKeyAlgorithm:$.selectUint8(e,a.sessionKeyAlgorithm,n.sessionKeyAlgorithm)}}if(o&&Y.read(Y.symmetric,a.sessionKeyAlgorithm))return a;throw Error("Decryption error")}case Y.publicKey.x25519:return{sessionKey:r};default:throw Error("Unsupported public key algorithm")}}(this.version,this.publicKeyAlgorithm,n,t);this.publicKeyAlgorithm!==Y.publicKey.x25519&&(this.sessionKeyAlgorithm=o),this.sessionKey=i}}function Qs(e,t,r,n){switch(t){case Y.publicKey.rsaEncrypt:case Y.publicKey.rsaEncryptSign:case Y.publicKey.elgamal:case Y.publicKey.ecdh:return $.concatUint8Array([new Uint8Array([r]),n,$.writeChecksum(n.subarray(n.length%8))]);case Y.publicKey.x25519:return n;default:throw Error("Unsupported public key algorithm")}}class Ws{constructor(e=ae){this.algorithm=Y.hash.sha256,this.type="iterated",this.c=e.s2kIterationCountByte,this.salt=null}getCount(){return 16+(15&this.c)<<6+(this.c>>4)}read(e){let t=0;try{this.type=Y.read(Y.s2k,e[t++])}catch(e){throw new pi("Unknown S2K type.")}switch(this.algorithm=e[t++],this.type){case"simple":break;case"salted":this.salt=e.subarray(t,t+8),t+=8;break;case"iterated":this.salt=e.subarray(t,t+8),t+=8,this.c=e[t++];break;case"gnu":if("GNU"!==$.uint8ArrayToString(e.subarray(t,t+3)))throw new pi("Unknown s2k type.");if(t+=3,1001!==1e3+e[t++])throw new pi("Unknown s2k gnu protection mode.");this.type="gnu-dummy";break;default:throw new pi("Unknown s2k type.")}return t}write(){if("gnu-dummy"===this.type)return new Uint8Array([101,0,...$.stringToUint8Array("GNU"),1]);const e=[new Uint8Array([Y.write(Y.s2k,this.type),this.algorithm])];switch(this.type){case"simple":break;case"salted":e.push(this.salt);break;case"iterated":e.push(this.salt),e.push(new Uint8Array([this.c]));break;case"gnu":throw Error("GNU s2k type not supported.");default:throw Error("Unknown s2k type.")}return $.concatUint8Array(e)}async produceKey(e,t){e=$.encodeUTF8(e);const r=[];let n=0,i=0;for(;n{this.privateParams[e].fill(0),delete this.privateParams[e]})),this.privateParams=null,this.isEncrypted=!0)}}async function nc(e,t,r){const{keySize:n}=mo.getCipher(r);return e.produceKey(t,n)}var ic=it((function(e){!function(){function t(e){function t(){return Ee0&&(t.semantic=" "),t}}function m(e,t){return function(){var r,o,s,u,l;for(u=n(),r=a("star"),s=0,l=void 0===t?0:t;null!==(o=e());)s+=1,c(r,o);return s>=l?r:(i(u),null)}}function y(e){return e.charCodeAt(0)>=128}function b(){return s("cr",l("\r")())}function v(){return s("crlf",d(b,C)())}function w(){return s("dquote",l('"')())}function A(){return s("htab",l("\t")())}function C(){return s("lf",l("\n")())}function E(){return s("sp",l(" ")())}function x(){return s("vchar",u((function(t){var r=t.charCodeAt(0),n=33<=r&&r<=126;return e.rfc6532&&(n=n||y(t)),n})))}function S(){return s("wsp",f(E,A)())}function I(){var e=s("quoted-pair",f(d(l("\\"),f(x,S)),ne)());return null===e?null:(e.semantic=e.semantic[1],e)}function k(){return s("fws",f(oe,d(h(d(m(S),p(v))),m(S,1)))())}function _(){return s("ctext",f((function(){return u((function(t){var r=t.charCodeAt(0),n=33<=r&&r<=39||42<=r&&r<=91||93<=r&&r<=126;return e.rfc6532&&(n=n||y(t)),n}))}),te)())}function T(){return s("ccontent",f(_,I,M)())}function M(){return s("comment",d(l("("),m(d(h(k),T)),h(k),l(")"))())}function P(){return s("cfws",f(d(m(d(h(k),M),1),h(k)),k)())}function j(){return s("atext",u((function(t){var r="a"<=t&&t<="z"||"A"<=t&&t<="Z"||"0"<=t&&t<="9"||["!","#","$","%","&","'","*","+","-","/","=","?","^","_","`","{","|","}","~"].indexOf(t)>=0;return e.rfc6532&&(r=r||y(t)),r})))}function D(){return s("atom",d(g(h(P)),m(j,1),g(h(P)))())}function O(){var e,t;return null===(e=s("dot-atom-text",m(j,1)()))||null!==(t=m(d(l("."),m(j,1)))())&&c(e,t),e}function B(){return s("dot-atom",d(p(h(P)),O,p(h(P)))())}function N(){return s("qtext",f((function(){return u((function(t){var r=t.charCodeAt(0),n=33===r||35<=r&&r<=91||93<=r&&r<=126;return e.rfc6532&&(n=n||y(t)),n}))}),re)())}function R(){return s("qcontent",f(N,I)())}function L(){return s("quoted-string",d(p(h(P)),p(w),m(d(h(g(k)),R)),h(p(k)),p(w),p(h(P)))())}function F(){return s("word",f(D,L)())}function U(){return s("address",f(z,K)())}function z(){return s("mailbox",f(H,X)())}function H(){return s("name-addr",d(h(G),V)())}function V(){return s("angle-addr",f(d(p(h(P)),l("<"),X,l(">"),p(h(P))),ae)())}function K(){return s("group",d(G,l(":"),h(W),l(";"),p(h(P)))())}function G(){return s("display-name",(null!==(e=s("phrase",f(ie,m(F,1))()))&&(e.semantic=function(e){return e.replace(/([ \t]|\r\n)+/g," ").replace(/^\s*/,"").replace(/\s*$/,"")}(e.semantic)),e));var e}function q(){return s("mailbox-list",f(d(z,m(d(l(","),z))),ue)())}function Q(){return s("address-list",f(d(U,m(d(l(","),U))),le)())}function W(){return s("group-list",f(q,p(P),de)())}function J(){return s("local-part",f(fe,B,L)())}function Y(){return s("dtext",f((function(){return u((function(t){var r=t.charCodeAt(0),n=33<=r&&r<=90||94<=r&&r<=126;return e.rfc6532&&(n=n||y(t)),n}))}),pe)())}function Z(){return s("domain-literal",d(p(h(P)),l("["),m(d(h(k),Y)),h(k),l("]"),p(h(P)))())}function $(){return s("domain",(t=f(he,B,Z)(),e.rejectTLD&&t&&t.semantic&&t.semantic.indexOf(".")<0?null:(t&&(t.semantic=t.semantic.replace(/\s+/g,"")),t)));var t}function X(){return s("addr-spec",d(J,l("@"),$)())}function ee(){return e.strict?null:s("obs-NO-WS-CTL",u((function(e){var t=e.charCodeAt(0);return 1<=t&&t<=8||11===t||12===t||14<=t&&t<=31||127===t})))}function te(){return e.strict?null:s("obs-ctext",ee())}function re(){return e.strict?null:s("obs-qtext",ee())}function ne(){return e.strict?null:s("obs-qp",d(l("\\"),f(l("\0"),ee,C,b))())}function ie(){return e.strict?null:e.atInDisplayName?s("obs-phrase",d(F,m(f(F,l("."),l("@"),g(P))))()):s("obs-phrase",d(F,m(f(F,l("."),g(P))))())}function oe(){return e.strict?null:s("obs-FWS",m(d(p(h(v)),S),1)())}function ae(){return e.strict?null:s("obs-angle-addr",d(p(h(P)),l("<"),se,X,l(">"),p(h(P)))())}function se(){return e.strict?null:s("obs-route",d(ce,l(":"))())}function ce(){return e.strict?null:s("obs-domain-list",d(m(f(p(P),l(","))),l("@"),$,m(d(l(","),p(h(P)),h(d(l("@"),$)))))())}function ue(){return e.strict?null:s("obs-mbox-list",d(m(d(p(h(P)),l(","))),z,m(d(l(","),h(d(z,p(P))))))())}function le(){return e.strict?null:s("obs-addr-list",d(m(d(p(h(P)),l(","))),U,m(d(l(","),h(d(U,p(P))))))())}function de(){return e.strict?null:s("obs-group-list",d(m(d(p(h(P)),l(",")),1),p(h(P)))())}function fe(){return e.strict?null:s("obs-local-part",d(F,m(d(l("."),F)))())}function he(){return e.strict?null:s("obs-domain",d(D,m(d(l("."),D)))())}function pe(){return e.strict?null:s("obs-dtext",f(ee,I)())}function ge(e,t){var r,n,i;if(null==t)return null;for(n=[t];n.length>0;){if((i=n.pop()).name===e)return i;for(r=i.children.length-1;r>=0;r-=1)n.push(i.children[r])}return null}function me(e,t){var r,n,i,o,a;if(null==t)return null;for(n=[t],o=[],a={},r=0;r0;)if((i=n.pop()).name in a)o.push(i);else for(r=i.children.length-1;r>=0;r-=1)n.push(i.children[r]);return o}function ye(t){var r,n,i,o,a;if(null===t)return null;for(r=[],n=me(["group","mailbox"],t),i=0;i1?null:t.addresses&&t.addresses[0]:null}(a):e.simple?a&&a.addresses:a}function be(e){var t,r=ge("display-name",e),n=[],i=me(["mailbox"],e);for(t=0;t0;)for("cfws"===(i=n.pop()).name&&o.push(i),r=i.children.length-1;r>=0;r-=1)n.push(i.children[r]);return o}(0,e),i=me(["comment"],e),o=ge("local-part",r),a=ge("domain",r);return{node:e,parts:{name:t,address:r,local:o,domain:a,comments:n},type:e.name,name:we(t),address:we(r),local:we(o),domain:we(a),comments:Ae(i),groupName:we(e.groupName)}}function we(e){return null!=e?e.semantic:null}function Ae(e){var t="";if(e)for(var r=0;r`),t.userID=r.join(" "),t}read(e,t=ae){const r=$.decodeUTF8(e);if(r.length>t.maxUserIDLength)throw Error("User ID string is too long");try{const{name:e,address:t,comments:n}=ic.parseOneAddress({input:r,atInDisplayName:!0});this.comment=n.replace(/^\(|\)$/g,""),this.name=e,this.email=t}catch(e){}this.userID=r}write(){return $.encodeUTF8(this.userID)}equals(e){return e&&e.userID===this.userID}}class ac extends rc{static get tag(){return Y.packet.secretSubkey}constructor(e=new Date,t=ae){super(e,t)}}class sc{static get tag(){return Y.packet.trust}read(){throw new pi("Trust packets are not supported")}write(){throw new pi("Trust packets are not supported")}}const cc=$.constructAllowedPackets([_s]);class uc{constructor(e){this.packets=e||new js}write(){return this.packets.write()}armor(e=ae){return ge(Y.armor.signature,this.write(),void 0,void 0,void 0,e)}getSigningKeyIDs(){return this.packets.map((e=>e.issuerKeyID))}}async function lc({armoredSignature:e,binarySignature:t,config:r,...n}){r={...ae,...r};let i=e||t;if(!i)throw Error("readSignature: must pass options object containing `armoredSignature` or `binarySignature`");if(e&&!$.isString(e))throw Error("readSignature: options.armoredSignature must be a string");if(t&&!$.isUint8Array(t))throw Error("readSignature: options.binarySignature must be a Uint8Array");const o=Object.keys(n);if(o.length>0)throw Error("Unknown option: "+o.join(", "));if(e){const{type:e,data:t}=await pe(i,r);if(e!==Y.armor.signature)throw Error("Armored text not of type signature");i=t}const a=await js.fromBinary(i,cc,r);return new uc(a)}async function dc(e,t){const r=new ac(e.date,t);return r.packets=null,r.algorithm=Y.write(Y.publicKey,e.algorithm),await r.generate(e.rsaBits,e.curve),await r.computeFingerprintAndKeyID(),r}async function fc(e,t){const r=new rc(e.date,t);return r.packets=null,r.algorithm=Y.write(Y.publicKey,e.algorithm),await r.generate(e.rsaBits,e.curve,e.config),await r.computeFingerprintAndKeyID(),r}async function hc(e,t,r,n,i=new Date,o){let a,s;for(let c=e.length-1;c>=0;c--)try{(!a||e[c].created>=a.created)&&(await e[c].verify(t,r,n,i,void 0,o),a=e[c])}catch(e){s=e}if(!a)throw $.wrapError(`Could not find valid ${Y.read(Y.signature,r)} signature in key ${t.getKeyID().toHex()}`.replace("certGeneric ","self-").replace(/([a-z])([A-Z])/g,((e,t,r)=>t+" "+r.toLowerCase())),s);return a}function pc(e,t,r=new Date){const n=$.normalizeDate(r);if(null!==n){const r=Ac(e,t);return!(e.created<=n&&n0&&(o.keyExpirationTime=r.keyExpirationTime,o.keyNeverExpires=!1),await bc(i,null,t,o,r.date,void 0,void 0,void 0,n)}async function mc(e,t,r=new Date,n={},i){let o=i.preferredHashAlgorithm,a=o;if(e){const t=await e.getPrimaryUser(r,n,i);t.selfCertification.preferredHashAlgorithms&&([a]=t.selfCertification.preferredHashAlgorithms,o=mo.hash.getHashByteLength(o)<=mo.hash.getHashByteLength(a)?a:o)}switch(t.algorithm){case Y.publicKey.ecdsa:case Y.publicKey.eddsaLegacy:case Y.publicKey.ed25519:a=mo.getPreferredCurveHashAlgo(t.algorithm,t.publicParams.oid)}return mo.hash.getHashByteLength(o)<=mo.hash.getHashByteLength(a)?a:o}async function yc(e,t=[],r=new Date,n=[],i=ae){const o={symmetric:Y.symmetric.aes128,aead:Y.aead.eax,compression:Y.compression.uncompressed}[e],a={symmetric:i.preferredSymmetricAlgorithm,aead:i.preferredAEADAlgorithm,compression:i.preferredCompressionAlgorithm}[e],s={symmetric:"preferredSymmetricAlgorithms",aead:"preferredAEADAlgorithms",compression:"preferredCompressionAlgorithms"}[e],c=await Promise.all(t.map((async function(e,t){const o=(await e.getPrimaryUser(r,n[t],i)).selfCertification[s];return!!o&&o.indexOf(a)>=0})));return c.every(Boolean)?a:o}async function bc(e,t,r,n,i,o,a=[],s=!1,c){if(r.isDummy())throw Error("Cannot sign with a gnu-dummy key.");if(!r.isDecrypted())throw Error("Signing key is not decrypted.");const u=new _s;return Object.assign(u,n),u.publicKeyAlgorithm=r.algorithm,u.hashAlgorithm=await mc(t,r,i,o,c),u.rawNotations=a,await u.sign(r,e,i,s),u}async function vc(e,t,r,n=new Date,i){(e=e[r])&&(t[r].length?await Promise.all(e.map((async function(e){e.isExpired(n)||i&&!await i(e)||t[r].some((function(t){return $.equalsUint8Array(t.writeParams(),e.writeParams())}))||t[r].push(e)}))):t[r]=e)}async function wc(e,t,r,n,i,o,a=new Date,s){o=o||e;const c=[];return await Promise.all(n.map((async function(e){try{i&&!e.issuerKeyID.equals(i.issuerKeyID)||(await e.verify(o,t,r,s.revocationsExpire?a:null,!1,s),c.push(e.issuerKeyID))}catch(e){}}))),i?(i.revoked=!!c.some((e=>e.equals(i.issuerKeyID)))||i.revoked||!1,i.revoked):c.length>0}function Ac(e,t){let r;return!1===t.keyNeverExpires&&(r=e.created.getTime()+1e3*t.keyExpirationTime),r?new Date(r):1/0}function Cc(e,t={}){switch(e.type=e.type||t.type,e.curve=e.curve||t.curve,e.rsaBits=e.rsaBits||t.rsaBits,e.keyExpirationTime=void 0!==e.keyExpirationTime?e.keyExpirationTime:t.keyExpirationTime,e.passphrase=$.isString(e.passphrase)?e.passphrase:t.passphrase,e.date=e.date||t.date,e.sign=e.sign||!1,e.type){case"ecc":try{e.curve=Y.write(Y.curve,e.curve)}catch(e){throw Error("Unknown curve")}e.curve!==Y.curve.ed25519Legacy&&e.curve!==Y.curve.curve25519Legacy||(e.curve=e.sign?Y.curve.ed25519Legacy:Y.curve.curve25519Legacy),e.sign?e.algorithm=e.curve===Y.curve.ed25519Legacy?Y.publicKey.eddsaLegacy:Y.publicKey.ecdsa:e.algorithm=Y.publicKey.ecdh;break;case"rsa":e.algorithm=Y.publicKey.rsaEncryptSign;break;default:throw Error("Unsupported key type "+e.type)}return e}function Ec(e,t){const r=e.algorithm;return!(r===Y.publicKey.rsaEncrypt||r===Y.publicKey.elgamal||r===Y.publicKey.ecdh||r===Y.publicKey.x25519||t.keyFlags&&!(t.keyFlags[0]&Y.keyFlags.signData))}function xc(e,t){const r=e.algorithm;return!(r===Y.publicKey.dsa||r===Y.publicKey.rsaSign||r===Y.publicKey.ecdsa||r===Y.publicKey.eddsaLegacy||r===Y.publicKey.ed25519||t.keyFlags&&!(t.keyFlags[0]&Y.keyFlags.encryptCommunication)&&!(t.keyFlags[0]&Y.keyFlags.encryptStorage))}function Sc(e,t){return!(!t.allowInsecureDecryptionWithSigningKeys&&e.keyFlags&&!(e.keyFlags[0]&Y.keyFlags.encryptCommunication)&&!(e.keyFlags[0]&Y.keyFlags.encryptStorage))}function Ic(e,t){const r=Y.write(Y.publicKey,e.algorithm),n=e.getAlgorithmInfo();if(t.rejectPublicKeyAlgorithms.has(r))throw Error(n.algorithm+" keys are considered too weak.");switch(r){case Y.publicKey.rsaEncryptSign:case Y.publicKey.rsaSign:case Y.publicKey.rsaEncrypt:if(n.bitse.getKeys(s).length>0));return 0===c.length?null:(await Promise.all(c.map((async t=>{const o=await t.getSigningKey(s,e.created,void 0,n);if(e.revoked||await i.isRevoked(e,o.keyPacket,r,n))throw Error("User certificate is revoked");try{await e.verify(o.keyPacket,Y.signature.certGeneric,a,r,void 0,n)}catch(e){throw $.wrapError("User certificate is invalid",e)}}))),!0)}async verifyAllCertifications(e,t=new Date,r){const n=this,i=this.selfCertifications.concat(this.otherCertifications);return Promise.all(i.map((async i=>({keyID:i.issuerKeyID,valid:await n.verifyCertificate(i,e,t,r).catch((()=>!1))}))))}async verify(e=new Date,t){if(!this.selfCertifications.length)throw Error("No self-certifications found");const r=this,n=this.mainKey.keyPacket,i={userID:this.userID,userAttribute:this.userAttribute,key:n};let o;for(let a=this.selfCertifications.length-1;a>=0;a--)try{const o=this.selfCertifications[a];if(o.revoked||await r.isRevoked(o,void 0,e,t))throw Error("Self-certification is revoked");try{await o.verify(n,Y.signature.certGeneric,i,e,void 0,t)}catch(e){throw $.wrapError("Self-certification is invalid",e)}return!0}catch(e){o=e}throw o}async update(e,t,r){const n=this.mainKey.keyPacket,i={userID:this.userID,userAttribute:this.userAttribute,key:n};await vc(e,this,"selfCertifications",t,(async function(e){try{return await e.verify(n,Y.signature.certGeneric,i,t,!1,r),!0}catch(e){return!1}})),await vc(e,this,"otherCertifications",t),await vc(e,this,"revocationSignatures",t,(function(e){return wc(n,Y.signature.certRevocation,i,[e],void 0,void 0,t,r)}))}async revoke(e,{flag:t=Y.reasonForRevocation.noReason,string:r=""}={},n=new Date,i=ae){const o={userID:this.userID,userAttribute:this.userAttribute,key:e},a=new kc(o.userID||o.userAttribute,this.mainKey);return a.revocationSignatures.push(await bc(o,null,e,{signatureType:Y.signature.certRevocation,reasonForRevocationFlag:Y.write(Y.reasonForRevocation,t),reasonForRevocationString:r},n,void 0,void 0,!1,i)),await a.update(this),a}}class _c{constructor(e,t){this.keyPacket=e,this.bindingSignatures=[],this.revocationSignatures=[],this.mainKey=t}toPacketList(){const e=new js;return e.push(this.keyPacket),e.push(...this.revocationSignatures),e.push(...this.bindingSignatures),e}clone(){const e=new _c(this.keyPacket,this.mainKey);return e.bindingSignatures=[...this.bindingSignatures],e.revocationSignatures=[...this.revocationSignatures],e}async isRevoked(e,t,r=new Date,n=ae){const i=this.mainKey.keyPacket;return wc(i,Y.signature.subkeyRevocation,{key:i,bind:this.keyPacket},this.revocationSignatures,e,t,r,n)}async verify(e=new Date,t=ae){const r=this.mainKey.keyPacket,n={key:r,bind:this.keyPacket},i=await hc(this.bindingSignatures,r,Y.signature.subkeyBinding,n,e,t);if(i.revoked||await this.isRevoked(i,null,e,t))throw Error("Subkey is revoked");if(pc(this.keyPacket,i,e))throw Error("Subkey is expired");return i}async getExpirationTime(e=new Date,t=ae){const r=this.mainKey.keyPacket,n={key:r,bind:this.keyPacket};let i;try{i=await hc(this.bindingSignatures,r,Y.signature.subkeyBinding,n,e,t)}catch(e){return null}const o=Ac(this.keyPacket,i),a=i.getExpirationTime();return oi.bindingSignatures[t].created&&(i.bindingSignatures[t]=e),!1;try{return await e.verify(n,Y.signature.subkeyBinding,o,t,void 0,r),!0}catch(e){return!1}})),await vc(e,this,"revocationSignatures",t,(function(e){return wc(n,Y.signature.subkeyRevocation,o,[e],void 0,void 0,t,r)}))}async revoke(e,{flag:t=Y.reasonForRevocation.noReason,string:r=""}={},n=new Date,i=ae){const o={key:e,bind:this.keyPacket},a=new _c(this.keyPacket,this.mainKey);return a.revocationSignatures.push(await bc(o,null,e,{signatureType:Y.signature.subkeyRevocation,reasonForRevocationFlag:Y.write(Y.reasonForRevocation,t),reasonForRevocationString:r},n,void 0,void 0,!1,i)),await a.update(this),a}hasSameFingerprintAs(e){return this.keyPacket.hasSameFingerprintAs(e.keyPacket||e)}}["getKeyID","getFingerprint","getAlgorithmInfo","getCreationTime","isDecrypted"].forEach((e=>{_c.prototype[e]=function(){return this.keyPacket[e]()}}));const Tc=$.constructAllowedPackets([_s]),Mc=new Set([Y.packet.publicKey,Y.packet.privateKey]),Pc=new Set([Y.packet.publicKey,Y.packet.privateKey,Y.packet.publicSubkey,Y.packet.privateSubkey]);class jc{packetListToStructure(e,t=new Set){let r,n,i,o;for(const a of e){if(a instanceof gi){Pc.has(a.tag)&&!o&&(o=Mc.has(a.tag)?Mc:Pc);continue}const e=a.constructor.tag;if(o){if(!o.has(e))continue;o=null}if(t.has(e))throw Error("Unexpected packet type: "+e);switch(e){case Y.packet.publicKey:case Y.packet.secretKey:if(this.keyPacket)throw Error("Key block contains multiple keys");if(this.keyPacket=a,n=this.getKeyID(),!n)throw Error("Missing Key ID");break;case Y.packet.userID:case Y.packet.userAttribute:r=new kc(a,this),this.users.push(r);break;case Y.packet.publicSubkey:case Y.packet.secretSubkey:r=null,i=new _c(a,this),this.subkeys.push(i);break;case Y.packet.signature:switch(a.signatureType){case Y.signature.certGeneric:case Y.signature.certPersona:case Y.signature.certCasual:case Y.signature.certPositive:if(!r){$.printDebug("Dropping certification signatures without preceding user packet");continue}a.issuerKeyID.equals(n)?r.selfCertifications.push(a):r.otherCertifications.push(a);break;case Y.signature.certRevocation:r?r.revocationSignatures.push(a):this.directSignatures.push(a);break;case Y.signature.key:this.directSignatures.push(a);break;case Y.signature.subkeyBinding:if(!i){$.printDebug("Dropping subkey binding signature without preceding subkey packet");continue}i.bindingSignatures.push(a);break;case Y.signature.keyRevocation:this.revocationSignatures.push(a);break;case Y.signature.subkeyRevocation:if(!i){$.printDebug("Dropping subkey revocation signature without preceding subkey packet");continue}i.revocationSignatures.push(a)}}}}toPacketList(){const e=new js;return e.push(this.keyPacket),e.push(...this.revocationSignatures),e.push(...this.directSignatures),this.users.map((t=>e.push(...t.toPacketList()))),this.subkeys.map((t=>e.push(...t.toPacketList()))),e}clone(e=!1){const t=new this.constructor(this.toPacketList());return e&&t.getKeys().forEach((e=>{if(e.keyPacket=Object.create(Object.getPrototypeOf(e.keyPacket),Object.getOwnPropertyDescriptors(e.keyPacket)),!e.keyPacket.isDecrypted())return;const t={};Object.keys(e.keyPacket.privateParams).forEach((r=>{t[r]=new Uint8Array(e.keyPacket.privateParams[r])})),e.keyPacket.privateParams=t})),t}getSubkeys(e=null){return this.subkeys.filter((t=>!e||t.getKeyID().equals(e,!0)))}getKeys(e=null){const t=[];return e&&!this.getKeyID().equals(e,!0)||t.push(this),t.concat(this.getSubkeys(e))}getKeyIDs(){return this.getKeys().map((e=>e.getKeyID()))}getUserIDs(){return this.users.map((e=>e.userID?e.userID.userID:null)).filter((e=>null!==e))}write(){return this.toPacketList().write()}async getSigningKey(e=null,t=new Date,r={},n=ae){await this.verifyPrimaryKey(t,r,n);const i=this.keyPacket,o=this.subkeys.slice().sort(((e,t)=>t.keyPacket.created-e.keyPacket.created));let a;for(const s of o)if(!e||s.getKeyID().equals(e))try{await s.verify(t,n);const e={key:i,bind:s.keyPacket},r=await hc(s.bindingSignatures,i,Y.signature.subkeyBinding,e,t,n);if(!Ec(s.keyPacket,r))continue;if(!r.embeddedSignature)throw Error("Missing embedded signature");return await hc([r.embeddedSignature],s.keyPacket,Y.signature.keyBinding,e,t,n),Ic(s.keyPacket,n),s}catch(e){a=e}try{const o=await this.getPrimaryUser(t,r,n);if((!e||i.getKeyID().equals(e))&&Ec(i,o.selfCertification))return Ic(i,n),this}catch(e){a=e}throw $.wrapError("Could not find valid signing key packet in key "+this.getKeyID().toHex(),a)}async getEncryptionKey(e,t=new Date,r={},n=ae){await this.verifyPrimaryKey(t,r,n);const i=this.keyPacket,o=this.subkeys.slice().sort(((e,t)=>t.keyPacket.created-e.keyPacket.created));let a;for(const s of o)if(!e||s.getKeyID().equals(e))try{await s.verify(t,n);const e={key:i,bind:s.keyPacket},r=await hc(s.bindingSignatures,i,Y.signature.subkeyBinding,e,t,n);if(xc(s.keyPacket,r))return Ic(s.keyPacket,n),s}catch(e){a=e}try{const o=await this.getPrimaryUser(t,r,n);if((!e||i.getKeyID().equals(e))&&xc(i,o.selfCertification))return Ic(i,n),this}catch(e){a=e}throw $.wrapError("Could not find valid encryption key packet in key "+this.getKeyID().toHex(),a)}async isRevoked(e,t,r=new Date,n=ae){return wc(this.keyPacket,Y.signature.keyRevocation,{key:this.keyPacket},this.revocationSignatures,e,t,r,n)}async verifyPrimaryKey(e=new Date,t={},r=ae){const n=this.keyPacket;if(await this.isRevoked(null,null,e,r))throw Error("Primary key is revoked");const{selfCertification:i}=await this.getPrimaryUser(e,t,r);if(pc(n,i,e))throw Error("Primary key is expired");const o=await hc(this.directSignatures,n,Y.signature.key,{key:n},e,r).catch((()=>{}));if(o&&pc(n,o,e))throw Error("Primary key is expired")}async getExpirationTime(e,t=ae){let r;try{const{selfCertification:n}=await this.getPrimaryUser(null,e,t),i=Ac(this.keyPacket,n),o=n.getExpirationTime(),a=await hc(this.directSignatures,this.keyPacket,Y.signature.key,{key:this.keyPacket},null,t).catch((()=>{}));if(a){const e=Ac(this.keyPacket,a);r=Math.min(i,o,e)}else r=ie.subkeys.some((e=>t.hasSameFingerprintAs(e))))))throw Error("Cannot update public key with private key if subkeys mismatch");return e.update(this,r)}const n=this.clone();return await vc(e,n,"revocationSignatures",t,(i=>wc(n.keyPacket,Y.signature.keyRevocation,n,[i],null,e.keyPacket,t,r))),await vc(e,n,"directSignatures",t),await Promise.all(e.users.map((async e=>{const i=n.users.filter((t=>e.userID&&e.userID.equals(t.userID)||e.userAttribute&&e.userAttribute.equals(t.userAttribute)));if(i.length>0)await Promise.all(i.map((n=>n.update(e,t,r))));else{const t=e.clone();t.mainKey=n,n.users.push(t)}}))),await Promise.all(e.subkeys.map((async e=>{const i=n.subkeys.filter((t=>t.hasSameFingerprintAs(e)));if(i.length>0)await Promise.all(i.map((n=>n.update(e,t,r))));else{const t=e.clone();t.mainKey=n,n.subkeys.push(t)}}))),n}async getRevocationCertificate(e=new Date,t=ae){const r={key:this.keyPacket},n=await hc(this.revocationSignatures,this.keyPacket,Y.signature.keyRevocation,r,e,t),i=new js;return i.push(n),ge(Y.armor.publicKey,i.write(),null,null,"This is a revocation certificate")}async applyRevocationCertificate(e,t=new Date,r=ae){const n=await pe(e,r),i=(await js.fromBinary(n.data,Tc,r)).findPacket(Y.packet.signature);if(!i||i.signatureType!==Y.signature.keyRevocation)throw Error("Could not find revocation signature packet");if(!i.issuerKeyID.equals(this.getKeyID()))throw Error("Revocation signature does not match key");try{await i.verify(this.keyPacket,Y.signature.keyRevocation,{key:this.keyPacket},t,void 0,r)}catch(e){throw $.wrapError("Could not verify revocation signature",e)}const o=this.clone();return o.revocationSignatures.push(i),o}async signPrimaryUser(e,t,r,n=ae){const{index:i,user:o}=await this.getPrimaryUser(t,r,n),a=await o.certify(e,t,n),s=this.clone();return s.users[i]=a,s}async signAllUsers(e,t=new Date,r=ae){const n=this.clone();return n.users=await Promise.all(this.users.map((function(n){return n.certify(e,t,r)}))),n}async verifyPrimaryUser(e,t=new Date,r,n=ae){const i=this.keyPacket,{user:o}=await this.getPrimaryUser(t,r,n);return e?await o.verifyAllCertifications(e,t,n):[{keyID:i.getKeyID(),valid:await o.verify(t,n).catch((()=>!1))}]}async verifyAllUsers(e,t=new Date,r=ae){const n=this.keyPacket,i=[];return await Promise.all(this.users.map((async o=>{const a=e?await o.verifyAllCertifications(e,t,r):[{keyID:n.getKeyID(),valid:await o.verify(t,r).catch((()=>!1))}];i.push(...a.map((e=>({userID:o.userID?o.userID.userID:null,userAttribute:o.userAttribute,keyID:e.keyID,valid:e.valid}))))}))),i}}["getKeyID","getFingerprint","getAlgorithmInfo","getCreationTime","hasSameFingerprintAs"].forEach((e=>{jc.prototype[e]=_c.prototype[e]}));class Dc extends jc{constructor(e){if(super(),this.keyPacket=null,this.revocationSignatures=[],this.directSignatures=[],this.users=[],this.subkeys=[],e&&(this.packetListToStructure(e,new Set([Y.packet.secretKey,Y.packet.secretSubkey])),!this.keyPacket))throw Error("Invalid key: missing public-key packet")}isPrivate(){return!1}toPublic(){return this}armor(e=ae){return ge(Y.armor.publicKey,this.toPacketList().write(),void 0,void 0,void 0,e)}}class Oc extends Dc{constructor(e){if(super(),this.packetListToStructure(e,new Set([Y.packet.publicKey,Y.packet.publicSubkey])),!this.keyPacket)throw Error("Invalid key: missing private-key packet")}isPrivate(){return!0}toPublic(){const e=new js,t=this.toPacketList();for(const r of t)switch(r.constructor.tag){case Y.packet.secretKey:{const t=Ys.fromSecretKeyPacket(r);e.push(t);break}case Y.packet.secretSubkey:{const t=ec.fromSecretSubkeyPacket(r);e.push(t);break}default:e.push(r)}return new Dc(e)}armor(e=ae){return ge(Y.armor.privateKey,this.toPacketList().write(),void 0,void 0,void 0,e)}async getDecryptionKeys(e,t=new Date,r={},n=ae){const i=this.keyPacket,o=[];for(let s=0;se.isDecrypted()))}async validate(e=ae){if(!this.isPrivate())throw Error("Cannot validate a public key");let t;if(this.keyPacket.isDummy()){const r=await this.getSigningKey(null,null,void 0,{...e,rejectPublicKeyAlgorithms:new Set,minRSABits:0});r&&!r.keyPacket.isDummy()&&(t=r.keyPacket)}else t=this.keyPacket;if(t)return t.validate();{const e=this.getKeys(),t=e.map((e=>e.keyPacket.isDummy())).every(Boolean);if(t)throw Error("Cannot validate an all-gnu-dummy key");return Promise.all(e.map((async e=>e.keyPacket.validate())))}}clearPrivateParams(){this.getKeys().forEach((({keyPacket:e})=>{e.isDecrypted()&&e.clearPrivateParams()}))}async revoke({flag:e=Y.reasonForRevocation.noReason,string:t=""}={},r=new Date,n=ae){if(!this.isPrivate())throw Error("Need private key for revoking");const i={key:this.keyPacket},o=this.clone();return o.revocationSignatures.push(await bc(i,null,this.keyPacket,{signatureType:Y.signature.keyRevocation,reasonForRevocationFlag:Y.write(Y.reasonForRevocation,e),reasonForRevocationString:t},r,void 0,void 0,void 0,n)),o}async addSubkey(e={}){const t={...ae,...e.config};if(e.passphrase)throw Error("Subkey could not be encrypted here, please encrypt whole key");if(e.rsaBitse!==t))]}const a=oc.fromObject(t),s={};s.userID=a,s.key=e;const c={};return c.signatureType=Y.signature.certGeneric,c.keyFlags=[Y.keyFlags.certifyKeys|Y.keyFlags.signData],c.preferredSymmetricAlgorithms=o([Y.symmetric.aes256,Y.symmetric.aes128,Y.symmetric.aes192],n.preferredSymmetricAlgorithm),n.aeadProtect&&(c.preferredAEADAlgorithms=o([Y.aead.eax,Y.aead.ocb],n.preferredAEADAlgorithm)),c.preferredHashAlgorithms=o([Y.hash.sha256,Y.hash.sha512],n.preferredHashAlgorithm),c.preferredCompressionAlgorithms=o([Y.compression.zlib,Y.compression.zip,Y.compression.uncompressed],n.preferredCompressionAlgorithm),0===i&&(c.isPrimaryUserID=!0),c.features=[0],c.features[0]|=Y.features.modificationDetection,n.aeadProtect&&(c.features[0]|=Y.features.aead),n.v5Keys&&(c.features[0]|=Y.features.v5Keys),r.keyExpirationTime>0&&(c.keyExpirationTime=r.keyExpirationTime,c.keyNeverExpires=!1),{userIDPacket:a,signaturePacket:await bc(s,null,e,c,r.date,void 0,void 0,void 0,n)}}))).then((e=>{e.forEach((({userIDPacket:e,signaturePacket:t})=>{i.push(e),i.push(t)}))})),await Promise.all(t.map((async function(t,i){const o=r.subkeys[i];return{secretSubkeyPacket:t,subkeySignaturePacket:await gc(t,e,o,n)}}))).then((e=>{e.forEach((({secretSubkeyPacket:e,subkeySignaturePacket:t})=>{i.push(e),i.push(t)}))}));const o={key:e};return i.push(await bc(o,null,e,{signatureType:Y.signature.keyRevocation,reasonForRevocationFlag:Y.reasonForRevocation.noReason,reasonForRevocationString:""},r.date,void 0,void 0,void 0,n)),r.passphrase&&e.clearPrivateParams(),await Promise.all(t.map((async function(e,t){r.subkeys[t].passphrase&&e.clearPrivateParams()}))),new Oc(i)}async function Lc({armoredKey:e,binaryKey:t,config:r,...n}){if(r={...ae,...r},!e&&!t)throw Error("readKey: must pass options object containing `armoredKey` or `binaryKey`");if(e&&!$.isString(e))throw Error("readKey: options.armoredKey must be a string");if(t&&!$.isUint8Array(t))throw Error("readKey: options.binaryKey must be a Uint8Array");const i=Object.keys(n);if(i.length>0)throw Error("Unknown option: "+i.join(", "));let o;if(e){const{type:t,data:n}=await pe(e,r);if(t!==Y.armor.publicKey&&t!==Y.armor.privateKey)throw Error("Armored text not of type key");o=n}else o=t;return Nc(await js.fromBinary(o,Bc,r))}async function Fc({armoredKey:e,binaryKey:t,config:r,...n}){if(r={...ae,...r},!e&&!t)throw Error("readPrivateKey: must pass options object containing `armoredKey` or `binaryKey`");if(e&&!$.isString(e))throw Error("readPrivateKey: options.armoredKey must be a string");if(t&&!$.isUint8Array(t))throw Error("readPrivateKey: options.binaryKey must be a Uint8Array");const i=Object.keys(n);if(i.length>0)throw Error("Unknown option: "+i.join(", "));let o;if(e){const{type:t,data:n}=await pe(e,r);if(t!==Y.armor.privateKey)throw Error("Armored text not of type private key");o=n}else o=t;const a=await js.fromBinary(o,Bc,r);return new Oc(a)}async function Uc({armoredKeys:e,binaryKeys:t,config:r,...n}){r={...ae,...r};let i=e||t;if(!i)throw Error("readKeys: must pass options object containing `armoredKeys` or `binaryKeys`");if(e&&!$.isString(e))throw Error("readKeys: options.armoredKeys must be a string");if(t&&!$.isUint8Array(t))throw Error("readKeys: options.binaryKeys must be a Uint8Array");const o=Object.keys(n);if(o.length>0)throw Error("Unknown option: "+o.join(", "));if(e){const{type:t,data:n}=await pe(e,r);if(t!==Y.armor.publicKey&&t!==Y.armor.privateKey)throw Error("Armored text not of type key");i=n}const a=[],s=await js.fromBinary(i,Bc,r),c=s.indexOfTag(Y.packet.publicKey,Y.packet.secretKey);if(0===c.length)throw Error("No key packet found");for(let u=0;u0?t.map((e=>e.issuerKeyID)):e.packets.filterByTag(Y.packet.signature).map((e=>e.issuerKeyID))}async decrypt(e,t,r,n=new Date,i=ae){const o=r||await this.decryptSessionKeys(e,t,n,i),a=this.packets.filterByTag(Y.packet.symmetricallyEncryptedData,Y.packet.symEncryptedIntegrityProtectedData,Y.packet.aeadEncryptedData);if(0===a.length)throw Error("No encrypted data found");const s=a[0];let c=null;const u=Promise.all(o.map((async({algorithm:e,data:t})=>{if(!$.isUint8Array(t)||!$.isString(e))throw Error("Invalid session key for decryption.");try{const r=Y.write(Y.symmetric,e);await s.decrypt(r,t,i)}catch(e){$.printDebugError(e),c=e}})));if(q(s.encrypted),s.encrypted=null,await u,!s.packets||!s.packets.length)throw c||Error("Decryption failed.");const l=new Gc(s.packets);return s.packets=new js,l}async decryptSessionKeys(e,t,r=new Date,n=ae){let i,o=[];if(t){const e=this.packets.filterByTag(Y.packet.symEncryptedSessionKey);if(0===e.length)throw Error("No symmetrically encrypted session key packet found.");await Promise.all(t.map((async function(t,r){let i;i=r?await js.fromBinary(e.write(),Vc,n):e,await Promise.all(i.map((async function(e){try{await e.decrypt(t),o.push(e)}catch(e){$.printDebugError(e)}})))})))}else{if(!e)throw Error("No key or password specified.");{const t=this.packets.filterByTag(Y.packet.publicKeyEncryptedSessionKey);if(0===t.length)throw Error("No public key encrypted session key packet found.");await Promise.all(t.map((async function(t){await Promise.all(e.map((async function(e){let a=[Y.symmetric.aes256,Y.symmetric.aes128,Y.symmetric.tripledes,Y.symmetric.cast5];try{const t=await e.getPrimaryUser(r,void 0,n);t.selfCertification.preferredSymmetricAlgorithms&&(a=a.concat(t.selfCertification.preferredSymmetricAlgorithms))}catch(e){}const s=(await e.getDecryptionKeys(t.publicKeyID,null,void 0,n)).map((e=>e.keyPacket));await Promise.all(s.map((async function(e){if(e&&!e.isDummy()){if(!e.isDecrypted())throw Error("Decryption key is not decrypted.");if(!n.constantTimePKCS1Decryption||t.publicKeyAlgorithm!==Y.publicKey.rsaEncrypt&&t.publicKeyAlgorithm!==Y.publicKey.rsaEncryptSign&&t.publicKeyAlgorithm!==Y.publicKey.rsaSign&&t.publicKeyAlgorithm!==Y.publicKey.elgamal)try{if(await t.decrypt(e),!a.includes(Y.write(Y.symmetric,t.sessionKeyAlgorithm)))throw Error("A non-preferred symmetric algorithm was used.");o.push(t)}catch(e){$.printDebugError(e),i=e}else{const r=t.write();await Promise.all(Array.from(n.constantTimePKCS1DecryptionSupportedSymmetricAlgorithms).map((async t=>{const n=new qs;n.read(r);const a={sessionKeyAlgorithm:t,sessionKey:mo.generateSessionKey(t)};try{await n.decrypt(e,a),o.push(n)}catch(e){$.printDebugError(e),i=e}})))}}})))}))),q(t.encrypted),t.encrypted=null})))}}if(o.length>0){if(o.length>1){const e=new Set;o=o.filter((t=>{const r=t.sessionKeyAlgorithm+$.uint8ArrayToString(t.sessionKey);return!e.has(r)&&(e.add(r),!0)}))}return o.map((e=>({data:e.sessionKey,algorithm:Y.read(Y.symmetric,e.sessionKeyAlgorithm)})))}throw i||Error("Session key decryption failed.")}getLiteralData(){const e=this.unwrapCompressed().packets.findPacket(Y.packet.literalData);return e&&e.getBytes()||null}getFilename(){const e=this.unwrapCompressed().packets.findPacket(Y.packet.literalData);return e&&e.getFilename()||null}getText(){const e=this.unwrapCompressed().packets.findPacket(Y.packet.literalData);return e?e.getText():null}static async generateSessionKey(e=[],t=new Date,r=[],n=ae){const i=await yc("symmetric",e,t,r,n),o=Y.read(Y.symmetric,i),a=n.aeadProtect&&await async function(e,t=new Date,r=[],n=ae){let i=!0;return await Promise.all(e.map((async function(e,o){const a=await e.getPrimaryUser(t,r[o],n);a.selfCertification.features&&a.selfCertification.features[0]&Y.features.aead||(i=!1)}))),i}(e,t,r,n)?Y.read(Y.aead,await yc("aead",e,t,r,n)):void 0;return await Promise.all(e.map((e=>e.getEncryptionKey().catch((()=>null)).then((e=>{if(e&&e.keyPacket.algorithm===Y.publicKey.x25519&&!$.isAES(i))throw Error("Could not generate a session key compatible with the given `encryptionKeys`: X22519 keys can only be used to encrypt AES session keys; change `config.preferredSymmetricAlgorithm` accordingly.")}))))),{data:mo.generateSessionKey(i),algorithm:o,aeadAlgorithm:a}}async encrypt(e,t,r,n=!1,i=[],o=new Date,a=[],s=ae){if(r){if(!$.isUint8Array(r.data)||!$.isString(r.algorithm))throw Error("Invalid session key for encryption.")}else if(e&&e.length)r=await Gc.generateSessionKey(e,o,a,s);else{if(!t||!t.length)throw Error("No keys, passwords, or session key provided.");r=await Gc.generateSessionKey(void 0,void 0,void 0,s)}const{data:c,algorithm:u,aeadAlgorithm:l}=r,d=await Gc.encryptSessionKey(c,u,l,e,t,n,i,o,a,s);let f;l?(f=new Gs,f.aeadAlgorithm=Y.write(Y.aead,l)):f=new Vs,f.packets=this.packets;const h=Y.write(Y.symmetric,u);return await f.encrypt(h,c,s),d.packets.push(f),f.packets=new js,d}static async encryptSessionKey(e,t,r,n,i,o=!1,a=[],s=new Date,c=[],u=ae){const l=new js,d=Y.write(Y.symmetric,t),f=r&&Y.write(Y.aead,r);if(n){const t=await Promise.all(n.map((async function(t,r){const n=await t.getEncryptionKey(a[r],s,c,u),i=new qs;return i.publicKeyID=o?me.wildcard():n.getKeyID(),i.publicKeyAlgorithm=n.keyPacket.algorithm,i.sessionKey=e,i.sessionKeyAlgorithm=d,await i.encrypt(n.keyPacket),delete i.sessionKey,i})));l.push(...t)}if(i){const t=async function(e,t){try{return await e.decrypt(t),1}catch(e){return 0}},r=(e,t)=>e+t,n=async function(e,o,a,s){const c=new Js(u);return c.sessionKey=e,c.sessionKeyAlgorithm=o,a&&(c.aeadAlgorithm=a),await c.encrypt(s,u),u.passwordCollisionCheck&&1!==(await Promise.all(i.map((e=>t(c,e))))).reduce(r)?n(e,o,s):(delete c.sessionKey,c)},o=await Promise.all(i.map((t=>n(e,d,f,t))));l.push(...o)}return new Gc(l)}async sign(e=[],t=null,r=[],n=new Date,i=[],o=[],a=ae){const s=new js,c=this.packets.findPacket(Y.packet.literalData);if(!c)throw Error("No literal data packet to sign.");let u,l;const d=null===c.text?Y.signature.binary:Y.signature.text;if(t)for(l=t.packets.filterByTag(Y.packet.signature),u=l.length-1;u>=0;u--){const t=l[u],r=new Ms;r.signatureType=t.signatureType,r.hashAlgorithm=t.hashAlgorithm,r.publicKeyAlgorithm=t.publicKeyAlgorithm,r.issuerKeyID=t.issuerKeyID,e.length||0!==u||(r.flags=1),s.push(r)}return await Promise.all(Array.from(e).reverse().map((async function(t,o){if(!t.isPrivate())throw Error("Need private key for signing");const s=r[e.length-1-o],c=await t.getSigningKey(s,n,i,a),u=new Ms;return u.signatureType=d,u.hashAlgorithm=await mc(t,c.keyPacket,n,i,a),u.publicKeyAlgorithm=c.keyPacket.algorithm,u.issuerKeyID=c.getKeyID(),o===e.length-1&&(u.flags=1),u}))).then((e=>{e.forEach((e=>s.push(e)))})),s.push(c),s.push(...await qc(c,e,t,r,n,i,o,!1,a)),new Gc(s)}compress(e,t=ae){if(e===Y.compression.uncompressed)return this;const r=new Os(t);r.algorithm=e,r.packets=this.packets;const n=new js;return n.push(r),new Gc(n)}async signDetached(e=[],t=null,r=[],n=new Date,i=[],o=[],a=ae){const s=this.packets.findPacket(Y.packet.literalData);if(!s)throw Error("No literal data packet to sign.");return new uc(await qc(s,e,t,r,n,i,o,!0,a))}async verify(e,t=new Date,r=ae){const n=this.unwrapCompressed(),i=n.packets.filterByTag(Y.packet.literalData);if(1!==i.length)throw Error("Can only verify message with one literal data packet.");u(n.packets.stream)&&n.packets.push(...await G(n.packets.stream,(e=>e||[])));const o=n.packets.filterByTag(Y.packet.onePassSignature).reverse(),a=n.packets.filterByTag(Y.packet.signature);return o.length&&!a.length&&$.isStream(n.packets.stream)&&!u(n.packets.stream)?(await Promise.all(o.map((async e=>{e.correspondingSig=new Promise(((t,r)=>{e.correspondingSigResolve=t,e.correspondingSigReject=r})),e.signatureData=Q((async()=>(await e.correspondingSig).signatureData)),e.hashed=G(await e.hash(e.signatureType,i[0],void 0,!1)),e.hashed.catch((()=>{}))}))),n.packets.stream=F(n.packets.stream,(async(e,t)=>{const r=D(e),n=O(t);try{for(let e=0;e{t.correspondingSigReject(e)})),await n.abort(e)}})),Qc(o,i,e,t,!1,r)):Qc(a,i,e,t,!1,r)}verifyDetached(e,t,r=new Date,n=ae){const i=this.unwrapCompressed().packets.filterByTag(Y.packet.literalData);if(1!==i.length)throw Error("Can only verify message with one literal data packet.");return Qc(e.packets.filterByTag(Y.packet.signature),i,t,r,!0,n)}unwrapCompressed(){const e=this.packets.filterByTag(Y.packet.compressedData);return e.length?new Gc(e[0].packets):this}async appendSignature(e,t=ae){await this.packets.read($.isUint8Array(e)?e:(await pe(e)).data,Kc,t)}write(){return this.packets.write()}armor(e=ae){return ge(Y.armor.message,this.write(),null,null,null,e)}}async function qc(e,t,r=null,n=[],i=new Date,o=[],a=[],s=!1,c=ae){const u=new js,l=null===e.text?Y.signature.binary:Y.signature.text;if(await Promise.all(t.map((async(t,r)=>{const u=o[r];if(!t.isPrivate())throw Error("Need private key for signing");const d=await t.getSigningKey(n[r],i,u,c);return bc(e,t,d.keyPacket,{signatureType:l},i,u,a,s,c)}))).then((e=>{u.push(...e)})),r){const e=r.packets.filterByTag(Y.packet.signature);u.push(...e)}return u}async function Qc(e,t,r,n=new Date,i=!1,o=ae){return Promise.all(e.filter((function(e){return["text","binary"].includes(Y.read(Y.signature,e.signatureType))})).map((async function(e){return async function(e,t,r,n=new Date,i=!1,o=ae){let a,s;for(const l of r){const t=l.getKeys(e.issuerKeyID);if(t.length>0){a=l,s=t[0];break}}const c=e instanceof Ms?e.correspondingSig:e,u={keyID:e.issuerKeyID,verified:(async()=>{if(!s)throw Error("Could not find signing key with key ID "+e.issuerKeyID.toHex());await e.verify(s.keyPacket,e.signatureType,t[0],n,i,o);const r=await c;if(s.getCreationTime()>r.created)throw Error("Key is newer than the signature");try{await a.getSigningKey(s.getKeyID(),r.created,void 0,o)}catch(e){if(!o.allowInsecureVerificationWithReformattedKeys||!e.message.match(/Signature creation time is in the future/))throw e;await a.getSigningKey(s.getKeyID(),n,void 0,o)}return!0})(),signature:(async()=>{const e=await c,t=new js;return e&&t.push(e),new uc(t)})()};return u.signature.catch((()=>{})),u.verified.catch((()=>{})),u}(e,t,r,n,i,o)})))}async function Wc({armoredMessage:e,binaryMessage:t,config:r,...n}){r={...ae,...r};let i=e||t;if(!i)throw Error("readMessage: must pass options object containing `armoredMessage` or `binaryMessage`");if(e&&!$.isString(e)&&!$.isStream(e))throw Error("readMessage: options.armoredMessage must be a string or stream");if(t&&!$.isUint8Array(t)&&!$.isStream(t))throw Error("readMessage: options.binaryMessage must be a Uint8Array or stream");const o=Object.keys(n);if(o.length>0)throw Error("Unknown option: "+o.join(", "));const a=$.isStream(i);if(a&&(await _(),i=M(i)),e){const{type:e,data:t}=await pe(i,r);if(e!==Y.armor.message)throw Error("Armored text not of type message");i=t}const s=await js.fromBinary(i,Hc,r),c=new Gc(s);return c.fromStream=a,c}async function Jc({text:e,binary:t,filename:r,date:n=new Date,format:i=(void 0!==e?"utf8":"binary"),...o}){let a=void 0!==e?e:t;if(void 0===a)throw Error("createMessage: must pass options object containing `text` or `binary`");if(e&&!$.isString(e)&&!$.isStream(e))throw Error("createMessage: options.text must be a string or stream");if(t&&!$.isUint8Array(t)&&!$.isStream(t))throw Error("createMessage: options.binary must be a Uint8Array or stream");const s=Object.keys(o);if(s.length>0)throw Error("Unknown option: "+s.join(", "));const c=$.isStream(a);c&&(await _(),a=M(a));const u=new Ss(n);void 0!==e?u.setText(a,Y.write(Y.literal,i)):u.setBytes(a,Y.write(Y.literal,i)),void 0!==r&&u.setFilename(r);const l=new js;l.push(u);const d=new Gc(l);return d.fromStream=c,d}const Yc=$.constructAllowedPackets([_s]);class Zc{constructor(e,t){if(this.text=$.removeTrailingSpaces(e).replace(/\r?\n/g,"\r\n"),t&&!(t instanceof uc))throw Error("Invalid signature input");this.signature=t||new uc(new js)}getSigningKeyIDs(){const e=[];return this.signature.packets.forEach((function(t){e.push(t.issuerKeyID)})),e}async sign(e,t=null,r=[],n=new Date,i=[],o=[],a=ae){const s=new Ss;s.setText(this.text);const c=new uc(await qc(s,e,t,r,n,i,o,!0,a));return new Zc(this.text,c)}verify(e,t=new Date,r=ae){const n=this.signature.packets.filterByTag(Y.packet.signature),i=new Ss;return i.setText(this.text),Qc(n,[i],e,t,!0,r)}getText(){return this.text.replace(/\r\n/g,"\n")}armor(e=ae){let t=this.signature.packets.map((function(e){return Y.read(Y.hash,e.hashAlgorithm).toUpperCase()}));t=t.filter((function(e,t,r){return r.indexOf(e)===t}));const r={hash:t.join(),text:this.text,data:this.signature.packets.write()};return ge(Y.armor.signed,r,void 0,void 0,void 0,e)}}async function $c({cleartextMessage:e,config:t,...r}){if(t={...ae,...t},!e)throw Error("readCleartextMessage: must pass options object containing `cleartextMessage`");if(!$.isString(e))throw Error("readCleartextMessage: options.cleartextMessage must be a string");const n=Object.keys(r);if(n.length>0)throw Error("Unknown option: "+n.join(", "));const i=await pe(e);if(i.type!==Y.armor.signed)throw Error("No cleartext signed message.");const o=await js.fromBinary(i.data,Yc,t);!function(e,t){const r=function(e){const r=e=>t=>e.hashAlgorithm===t;for(let n=0;n0)throw Error("Unknown option: "+r.join(", "));return new Zc(e)}async function eu({userIDs:e=[],passphrase:t,type:r="ecc",rsaBits:n=4096,curve:i="curve25519",keyExpirationTime:o=0,date:a=new Date,subkeys:s=[{}],format:c="armored",config:u,...l}){mu(u={...ae,...u}),e=yu(e);const d=Object.keys(l);if(d.length>0)throw Error("Unknown option: "+d.join(", "));if(0===e.length)throw Error("UserIDs are required for key generation");if("rsa"===r&&nCc(e.subkeys[r],e)));let r=[fc(e,t)];r=r.concat(e.subkeys.map((e=>dc(e,t))));const n=await Promise.all(r),i=await Rc(n[0],n.slice(1),e,t),o=await i.getRevocationCertificate(e.date,t);return i.revocationSignatures=[],{key:i,revocationCertificate:o}}(f,u);return e.getKeys().forEach((({keyPacket:e})=>Ic(e,u))),{privateKey:wu(e,c,u),publicKey:wu(e.toPublic(),c,u),revocationCertificate:t}}catch(e){throw $.wrapError("Error generating keypair",e)}}async function tu({privateKey:e,userIDs:t=[],passphrase:r,keyExpirationTime:n=0,date:i,format:o="armored",config:a,...s}){mu(a={...ae,...a}),t=yu(t);const c=Object.keys(s);if(c.length>0)throw Error("Unknown option: "+c.join(", "));if(0===t.length)throw Error("UserIDs are required for key reformat");const u={privateKey:e,userIDs:t,passphrase:r,keyExpirationTime:n,date:i};try{const{key:e,revocationCertificate:t}=await async function(e,t){e=s(e);const{privateKey:r}=e;if(!r.isPrivate())throw Error("Cannot reformat a public key");if(r.keyPacket.isDummy())throw Error("Cannot reformat a gnu-dummy primary key");if(!r.getKeys().every((({keyPacket:e})=>e.isDecrypted())))throw Error("Key is not decrypted");const n=r.keyPacket;e.subkeys||(e.subkeys=await Promise.all(r.subkeys.map((async e=>{const r=e.keyPacket,i={key:n,bind:r},o=await hc(e.bindingSignatures,n,Y.signature.subkeyBinding,i,null,t).catch((()=>({})));return{sign:o.keyFlags&&o.keyFlags[0]&Y.keyFlags.signData}}))));const i=r.subkeys.map((e=>e.keyPacket));if(e.subkeys.length!==i.length)throw Error("Number of subkey options does not match number of subkeys");e.subkeys=e.subkeys.map((t=>s(t,e)));const o=await Rc(n,i,e,t),a=await o.getRevocationCertificate(e.date,t);return o.revocationSignatures=[],{key:o,revocationCertificate:a};function s(e,t={}){return e.keyExpirationTime=e.keyExpirationTime||t.keyExpirationTime,e.passphrase=$.isString(e.passphrase)?e.passphrase:t.passphrase,e.date=e.date||t.date,e}}(u,a);return{privateKey:wu(e,o,a),publicKey:wu(e.toPublic(),o,a),revocationCertificate:t}}catch(e){throw $.wrapError("Error reformatting keypair",e)}}async function ru({key:e,revocationCertificate:t,reasonForRevocation:r,date:n=new Date,format:i="armored",config:o,...a}){mu(o={...ae,...o});const s=Object.keys(a);if(s.length>0)throw Error("Unknown option: "+s.join(", "));try{const a=t?await e.applyRevocationCertificate(t,n,o):await e.revoke(r,n,o);return a.isPrivate()?{privateKey:wu(a,i,o),publicKey:wu(a.toPublic(),i,o)}:{privateKey:null,publicKey:wu(a,i,o)}}catch(e){throw $.wrapError("Error revoking key",e)}}async function nu({privateKey:e,passphrase:t,config:r,...n}){mu(r={...ae,...r});const i=Object.keys(n);if(i.length>0)throw Error("Unknown option: "+i.join(", "));if(!e.isPrivate())throw Error("Cannot decrypt a public key");const o=e.clone(!0),a=$.isArray(t)?t:[t];try{return await Promise.all(o.getKeys().map((e=>$.anyPromise(a.map((t=>e.keyPacket.decrypt(t))))))),await o.validate(r),o}catch(e){throw o.clearPrivateParams(),$.wrapError("Error decrypting private key",e)}}async function iu({privateKey:e,passphrase:t,config:r,...n}){mu(r={...ae,...r});const i=Object.keys(n);if(i.length>0)throw Error("Unknown option: "+i.join(", "));if(!e.isPrivate())throw Error("Cannot encrypt a public key");const o=e.clone(!0),a=o.getKeys(),s=$.isArray(t)?t:Array(a.length).fill(t);if(s.length!==a.length)throw Error("Invalid number of passphrases given for key encryption");try{return await Promise.all(a.map((async(e,t)=>{const{keyPacket:n}=e;await n.encrypt(s[t],r),n.clearPrivateParams()}))),o}catch(e){throw o.clearPrivateParams(),$.wrapError("Error encrypting private key",e)}}async function ou({message:e,encryptionKeys:t,signingKeys:r,passwords:n,sessionKey:i,format:o="armored",signature:a=null,wildcard:s=!1,signingKeyIDs:c=[],encryptionKeyIDs:u=[],date:l=new Date,signingUserIDs:d=[],encryptionUserIDs:f=[],signatureNotations:h=[],config:p,...g}){if(mu(p={...ae,...p}),fu(e),pu(o),t=yu(t),r=yu(r),n=yu(n),c=yu(c),u=yu(u),d=yu(d),f=yu(f),h=yu(h),g.detached)throw Error("The `detached` option has been removed from openpgp.encrypt, separately call openpgp.sign instead. Don't forget to remove the `privateKeys` option as well.");if(g.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.encrypt, pass `encryptionKeys` instead");if(g.privateKeys)throw Error("The `privateKeys` option has been removed from openpgp.encrypt, pass `signingKeys` instead");if(void 0!==g.armor)throw Error("The `armor` option has been removed from openpgp.encrypt, pass `format` instead.");const m=Object.keys(g);if(m.length>0)throw Error("Unknown option: "+m.join(", "));r||(r=[]);const y=e.fromStream;try{if((r.length||a)&&(e=await e.sign(r,a,c,l,d,h,p)),e=e.compress(await yc("compression",t,l,f,p),p),e=await e.encrypt(t,n,i,s,u,l,f,p),"object"===o)return e;const g="armored"===o;return bu(g?e.armor(p):e.write(),y,g?"utf8":"binary")}catch(e){throw $.wrapError("Error encrypting message",e)}}async function au({message:e,decryptionKeys:t,passwords:r,sessionKeys:n,verificationKeys:i,expectSigned:o=!1,format:a="utf8",signature:s=null,date:c=new Date,config:u,...l}){if(mu(u={...ae,...u}),fu(e),i=yu(i),t=yu(t),r=yu(r),n=yu(n),l.privateKeys)throw Error("The `privateKeys` option has been removed from openpgp.decrypt, pass `decryptionKeys` instead");if(l.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.decrypt, pass `verificationKeys` instead");const d=Object.keys(l);if(d.length>0)throw Error("Unknown option: "+d.join(", "));try{const l=await e.decrypt(t,r,n,c,u);i||(i=[]);const d={};if(d.signatures=s?await l.verifyDetached(s,i,c,u):await l.verify(i,c,u),d.data="binary"===a?l.getLiteralData():l.getText(),d.filename=l.getFilename(),vu(d,e),o){if(0===i.length)throw Error("Verification keys are required to verify message signatures");if(0===d.signatures.length)throw Error("Message is not signed");d.data=j([d.data,Q((async()=>{await $.anyPromise(d.signatures.map((e=>e.verified)))}))])}return d.data=await bu(d.data,e.fromStream,a),d}catch(e){throw $.wrapError("Error decrypting message",e)}}async function su({message:e,signingKeys:t,format:r="armored",detached:n=!1,signingKeyIDs:i=[],date:o=new Date,signingUserIDs:a=[],signatureNotations:s=[],config:c,...u}){if(mu(c={...ae,...c}),hu(e),pu(r),t=yu(t),i=yu(i),a=yu(a),s=yu(s),u.privateKeys)throw Error("The `privateKeys` option has been removed from openpgp.sign, pass `signingKeys` instead");if(void 0!==u.armor)throw Error("The `armor` option has been removed from openpgp.sign, pass `format` instead.");const l=Object.keys(u);if(l.length>0)throw Error("Unknown option: "+l.join(", "));if(e instanceof Zc&&"binary"===r)throw Error("Cannot return signed cleartext message in binary format");if(e instanceof Zc&&n)throw Error("Cannot detach-sign a cleartext message");if(!t||0===t.length)throw Error("No signing keys provided");try{let u;if(u=n?await e.signDetached(t,void 0,i,o,a,s,c):await e.sign(t,void 0,i,o,a,s,c),"object"===r)return u;const l="armored"===r;return u=l?u.armor(c):u.write(),n&&(u=F(e.packets.write(),(async(e,t)=>{await Promise.all([B(u,t),G(e).catch((()=>{}))])}))),bu(u,e.fromStream,l?"utf8":"binary")}catch(e){throw $.wrapError("Error signing message",e)}}async function cu({message:e,verificationKeys:t,expectSigned:r=!1,format:n="utf8",signature:i=null,date:o=new Date,config:a,...s}){if(mu(a={...ae,...a}),hu(e),t=yu(t),s.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.verify, pass `verificationKeys` instead");const c=Object.keys(s);if(c.length>0)throw Error("Unknown option: "+c.join(", "));if(e instanceof Zc&&"binary"===n)throw Error("Can't return cleartext message data as binary");if(e instanceof Zc&&i)throw Error("Can't verify detached cleartext signature");try{const s={};if(s.signatures=i?await e.verifyDetached(i,t,o,a):await e.verify(t,o,a),s.data="binary"===n?e.getLiteralData():e.getText(),e.fromStream&&!i&&vu(s,e),r){if(0===s.signatures.length)throw Error("Message is not signed");s.data=j([s.data,Q((async()=>{await $.anyPromise(s.signatures.map((e=>e.verified)))}))])}return s.data=await bu(s.data,e.fromStream,n),s}catch(e){throw $.wrapError("Error verifying signed message",e)}}async function uu({encryptionKeys:e,date:t=new Date,encryptionUserIDs:r=[],config:n,...i}){if(mu(n={...ae,...n}),e=yu(e),r=yu(r),i.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.generateSessionKey, pass `encryptionKeys` instead");const o=Object.keys(i);if(o.length>0)throw Error("Unknown option: "+o.join(", "));try{return await Gc.generateSessionKey(e,t,r,n)}catch(e){throw $.wrapError("Error generating session key",e)}}async function lu({data:e,algorithm:t,aeadAlgorithm:r,encryptionKeys:n,passwords:i,format:o="armored",wildcard:a=!1,encryptionKeyIDs:s=[],date:c=new Date,encryptionUserIDs:u=[],config:l,...d}){if(mu(l={...ae,...l}),function(e){if(!$.isUint8Array(e))throw Error("Parameter [data] must be of type Uint8Array")}(e),function(e){if(!$.isString(e))throw Error("Parameter [algorithm] must be of type String")}(t),pu(o),n=yu(n),i=yu(i),s=yu(s),u=yu(u),d.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.encryptSessionKey, pass `encryptionKeys` instead");const f=Object.keys(d);if(f.length>0)throw Error("Unknown option: "+f.join(", "));if(!(n&&0!==n.length||i&&0!==i.length))throw Error("No encryption keys or passwords provided.");try{return wu(await Gc.encryptSessionKey(e,t,r,n,i,a,s,c,u,l),o,l)}catch(e){throw $.wrapError("Error encrypting session key",e)}}async function du({message:e,decryptionKeys:t,passwords:r,date:n=new Date,config:i,...o}){if(mu(i={...ae,...i}),fu(e),t=yu(t),r=yu(r),o.privateKeys)throw Error("The `privateKeys` option has been removed from openpgp.decryptSessionKeys, pass `decryptionKeys` instead");const a=Object.keys(o);if(a.length>0)throw Error("Unknown option: "+a.join(", "));try{return await e.decryptSessionKeys(t,r,n,i)}catch(e){throw $.wrapError("Error decrypting session keys",e)}}function fu(e){if(!(e instanceof Gc))throw Error("Parameter [message] needs to be of type Message")}function hu(e){if(!(e instanceof Zc||e instanceof Gc))throw Error("Parameter [message] needs to be of type Message or CleartextMessage")}function pu(e){if("armored"!==e&&"binary"!==e&&"object"!==e)throw Error("Unsupported format "+e)}const gu=Object.keys(ae).length;function mu(e){const t=Object.keys(e);if(t.length!==gu)for(const r of t)if(void 0===ae[r])throw Error("Unknown config property: "+r)}function yu(e){return e&&!$.isArray(e)&&(e=[e]),e}async function bu(e,t,r="utf8"){const n=$.isStream(e);return"array"===n?G(e):"node"===t?(e=v(e),"binary"!==r&&e.setEncoding(r),e):"web"===t&&"ponyfill"===n?x(e):e}function vu(e,t){e.data=F(t.packets.stream,(async(t,r)=>{await B(e.data,r,{preventClose:!0});const n=O(r);try{await G(t,(e=>e)),await n.close()}catch(e){await n.abort(e)}}))}function wu(e,t,r){switch(t){case"object":return e;case"armored":return e.armor(r);case"binary":return e.write();default:throw Error("Unsupported format "+t)}}const Au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:e=>`Symbol(${e})`;function Cu(){}const Eu="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;function xu(e){return"object"==typeof e&&null!==e||"function"==typeof e}const Su=Cu,Iu=Promise,ku=Promise.prototype.then,_u=Promise.resolve.bind(Iu),Tu=Promise.reject.bind(Iu);function Mu(e){return new Iu(e)}function Pu(e){return _u(e)}function ju(e){return Tu(e)}function Du(e,t,r){return ku.call(e,t,r)}function Ou(e,t,r){Du(Du(e,t,r),void 0,Su)}function Bu(e,t){Ou(e,t)}function Nu(e,t){Ou(e,void 0,t)}function Ru(e,t,r){return Du(e,t,r)}function Lu(e){Du(e,void 0,Su)}const Fu=(()=>{const e=Eu&&Eu.queueMicrotask;if("function"==typeof e)return e;const t=Pu(void 0);return e=>Du(t,e)})();function Uu(e,t,r){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function zu(e,t,r){try{return Pu(Uu(e,t,r))}catch(e){return ju(e)}}class Hu{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){const t=this._back;let r=t;16383===t._elements.length&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size}shift(){const e=this._front;let t=e;const r=this._cursor;let n=r+1;const i=e._elements,o=i[r];return 16384===n&&(t=e._next,n=0),--this._size,this._cursor=n,e!==t&&(this._front=t),i[r]=void 0,o}forEach(e){let t=this._cursor,r=this._front,n=r._elements;for(;!(t===n.length&&void 0===r._next||t===n.length&&(r=r._next,n=r._elements,t=0,0===n.length));)e(n[t]),++t}peek(){const e=this._front,t=this._cursor;return e._elements[t]}}function Vu(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?Qu(e):"closed"===t._state?function(e){Qu(e),Yu(e)}(e):Wu(e,t._storedError)}function Ku(e,t){return If(e._ownerReadableStream,t)}function Gu(e){"readable"===e._ownerReadableStream._state?Ju(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e){Wu(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"))}(e),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function qu(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function Qu(e){e._closedPromise=Mu(((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r}))}function Wu(e,t){Qu(e),Ju(e,t)}function Ju(e,t){void 0!==e._closedPromise_reject&&(Lu(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function Yu(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const Zu=Au("[[AbortSteps]]"),$u=Au("[[ErrorSteps]]"),Xu=Au("[[CancelSteps]]"),el=Au("[[PullSteps]]"),tl=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},rl=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function nl(e,t){if(void 0!==e&&"object"!=typeof(r=e)&&"function"!=typeof r)throw new TypeError(t+" is not an object.");var r}function il(e,t){if("function"!=typeof e)throw new TypeError(t+" is not a function.")}function ol(e,t){if(!function(e){return"object"==typeof e&&null!==e||"function"==typeof e}(e))throw new TypeError(t+" is not an object.")}function al(e,t,r){if(void 0===e)throw new TypeError(`Parameter ${t} is required in '${r}'.`)}function sl(e,t,r){if(void 0===e)throw new TypeError(`${t} is required in '${r}'.`)}function cl(e){return Number(e)}function ul(e){return 0===e?0:e}function ll(e,t){const r=Number.MAX_SAFE_INTEGER;let n=Number(e);if(n=ul(n),!tl(n))throw new TypeError(t+" is not a finite number");if(n=function(e){return ul(rl(e))}(n),n<0||n>r)throw new TypeError(`${t} is outside the accepted range of 0 to ${r}, inclusive`);return tl(n)&&0!==n?n:0}function dl(e,t){if(!xf(e))throw new TypeError(t+" is not a ReadableStream.")}function fl(e){return new yl(e)}function hl(e,t){e._reader._readRequests.push(t)}function pl(e,t,r){const n=e._reader._readRequests.shift();r?n._closeSteps():n._chunkSteps(t)}function gl(e){return e._reader._readRequests.length}function ml(e){const t=e._reader;return void 0!==t&&!!bl(t)}class yl{constructor(e){if(al(e,1,"ReadableStreamDefaultReader"),dl(e,"First parameter"),Sf(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");Vu(this,e),this._readRequests=new Hu}get closed(){return bl(this)?this._closedPromise:ju(wl("closed"))}cancel(e=void 0){return bl(this)?void 0===this._ownerReadableStream?ju(qu("cancel")):Ku(this,e):ju(wl("cancel"))}read(){if(!bl(this))return ju(wl("read"));if(void 0===this._ownerReadableStream)return ju(qu("read from"));let e,t;const r=Mu(((r,n)=>{e=r,t=n}));return vl(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),r}releaseLock(){if(!bl(this))throw wl("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");Gu(this)}}}function bl(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function vl(e,t){const r=e._ownerReadableStream;r._disturbed=!0,"closed"===r._state?t._closeSteps():"errored"===r._state?t._errorSteps(r._storedError):r._readableStreamController[el](t)}function wl(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}let Al;Object.defineProperties(yl.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(yl.prototype,Au.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0}),"symbol"==typeof Au.asyncIterator&&(Al={[Au.asyncIterator](){return this}},Object.defineProperty(Al,Au.asyncIterator,{enumerable:!1}));class Cl{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){const e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?Ru(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){const t=()=>this._returnSteps(e);return this._ongoingPromise?Ru(this._ongoingPromise,t,t):t()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const e=this._reader;if(void 0===e._ownerReadableStream)return ju(qu("iterate"));let t,r;const n=Mu(((e,n)=>{t=e,r=n}));return vl(e,{_chunkSteps:e=>{this._ongoingPromise=void 0,Fu((()=>t({value:e,done:!1})))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,Gu(e),t({value:void 0,done:!0})},_errorSteps:t=>{this._ongoingPromise=void 0,this._isFinished=!0,Gu(e),r(t)}}),n}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;const t=this._reader;if(void 0===t._ownerReadableStream)return ju(qu("finish iterating"));if(!this._preventCancel){const r=Ku(t,e);return Gu(t),Ru(r,(()=>({value:e,done:!0})))}return Gu(t),Pu({value:e,done:!0})}}const El={next(){return xl(this)?this._asyncIteratorImpl.next():ju(Sl("next"))},return(e){return xl(this)?this._asyncIteratorImpl.return(e):ju(Sl("return"))}};function xl(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl")}function Sl(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}void 0!==Al&&Object.setPrototypeOf(El,Al);const Il=Number.isNaN||function(e){return e!=e};function kl(e){return!!function(e){return"number"==typeof e&&(!Il(e)&&!(e<0))}(e)&&e!==1/0}function _l(e){const t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function Tl(e,t,r){if(!kl(r=Number(r)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function Ml(e){e._queue=new Hu,e._queueTotalSize=0}function Pl(e){return e.slice()}class jl{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!Bl(this))throw Yl("view");return this._view}respond(e){if(!Bl(this))throw Yl("respond");if(al(e,1,"respond"),e=ll(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,function(e,t){if(!kl(t=Number(t)))throw new RangeError("bytesWritten must be a finite");Gl(e,t)}(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!Bl(this))throw Yl("respondWithNewView");if(al(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");!function(e,t){const r=e._pendingPullIntos.peek();if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=t.buffer,Gl(e,t.byteLength)}(this._associatedReadableByteStreamController,e)}}Object.defineProperties(jl.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(jl.prototype,Au.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class Dl{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!Ol(this))throw Zl("byobRequest");if(null===this._byobRequest&&this._pendingPullIntos.length>0){const e=this._pendingPullIntos.peek(),t=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),r=Object.create(jl.prototype);!function(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}(r,this,t),this._byobRequest=r}return this._byobRequest}get desiredSize(){if(!Ol(this))throw Zl("desiredSize");return Jl(this)}close(){if(!Ol(this))throw Zl("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");const e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);!function(e){const t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0&&e._pendingPullIntos.peek().bytesFilled>0){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Wl(e,t),t}Ql(e),kf(t)}}(this)}enqueue(e){if(!Ol(this))throw Zl("enqueue");if(al(e,1,"enqueue"),!ArrayBuffer.isView(e))throw new TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");const t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);!function(e,t){const r=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==r._state)return;const n=t.buffer,i=t.byteOffset,o=t.byteLength,a=n;ml(r)?0===gl(r)?Fl(e,a,i,o):pl(r,new Uint8Array(a,i,o),!1):ed(r)?(Fl(e,a,i,o),Kl(e)):Fl(e,a,i,o),Nl(e)}(this,e)}error(e=void 0){if(!Ol(this))throw Zl("error");Wl(this,e)}[Xu](e){this._pendingPullIntos.length>0&&(this._pendingPullIntos.peek().bytesFilled=0),Ml(this);const t=this._cancelAlgorithm(e);return Ql(this),t}[el](e){const t=this._controlledReadableByteStream;if(this._queueTotalSize>0){const t=this._queue.shift();this._queueTotalSize-=t.byteLength,Hl(this);const r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);return void e._chunkSteps(r)}const r=this._autoAllocateChunkSize;if(void 0!==r){let n;try{n=new ArrayBuffer(r)}catch(t){return void e._errorSteps(t)}const i={buffer:n,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(i)}hl(t,e),Nl(this)}}function Ol(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function Bl(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function Nl(e){const t=function(e){const t=e._controlledReadableByteStream;if("readable"!==t._state)return!1;if(e._closeRequested)return!1;if(!e._started)return!1;if(ml(t)&&gl(t)>0)return!0;if(ed(t)&&Xl(t)>0)return!0;return Jl(e)>0}(e);t&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,Ou(e._pullAlgorithm(),(()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Nl(e))}),(t=>{Wl(e,t)}))))}function Rl(e,t){let r=!1;"closed"===e._state&&(r=!0);const n=Ll(t);"default"===t.readerType?pl(e,n,r):function(e,t,r){const n=e._reader._readIntoRequests.shift();r?n._closeSteps(t):n._chunkSteps(t)}(e,n,r)}function Ll(e){const t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function Fl(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function Ul(e,t){const r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,i=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+i,a=o-o%r;let s=i,c=!1;a>n&&(s=a-t.bytesFilled,c=!0);const u=e._queue;for(;s>0;){const r=u.peek(),n=Math.min(s,r.byteLength),i=t.byteOffset+t.bytesFilled;l=t.buffer,d=i,f=r.buffer,h=r.byteOffset,p=n,new Uint8Array(l).set(new Uint8Array(f,h,p),d),r.byteLength===n?u.shift():(r.byteOffset+=n,r.byteLength-=n),e._queueTotalSize-=n,zl(e,n,t),s-=n}var l,d,f,h,p;return c}function zl(e,t,r){Vl(e),r.bytesFilled+=t}function Hl(e){0===e._queueTotalSize&&e._closeRequested?(Ql(e),kf(e._controlledReadableByteStream)):Nl(e)}function Vl(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function Kl(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;const t=e._pendingPullIntos.peek();Ul(e,t)&&(ql(e),Rl(e._controlledReadableByteStream,t))}}function Gl(e,t){const r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");!function(e,t){t.buffer=t.buffer;const r=e._controlledReadableByteStream;if(ed(r))for(;Xl(r)>0;)Rl(r,ql(e))}(e,r)}else!function(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(zl(e,t,r),r.bytesFilled0){const t=r.byteOffset+r.bytesFilled,i=r.buffer.slice(t-n,t);Fl(e,i,0,i.byteLength)}r.buffer=r.buffer,r.bytesFilled-=n,Rl(e._controlledReadableByteStream,r),Kl(e)}(e,t,r);Nl(e)}function ql(e){const t=e._pendingPullIntos.shift();return Vl(e),t}function Ql(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function Wl(e,t){const r=e._controlledReadableByteStream;"readable"===r._state&&(function(e){Vl(e),e._pendingPullIntos=new Hu}(e),Ml(e),Ql(e),_f(r,t))}function Jl(e){const t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function Yl(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function Zl(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function $l(e,t){e._reader._readIntoRequests.push(t)}function Xl(e){return e._reader._readIntoRequests.length}function ed(e){const t=e._reader;return void 0!==t&&!!rd(t)}Object.defineProperties(Dl.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(Dl.prototype,Au.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class td{constructor(e){if(al(e,1,"ReadableStreamBYOBReader"),dl(e,"First parameter"),Sf(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Ol(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");Vu(this,e),this._readIntoRequests=new Hu}get closed(){return rd(this)?this._closedPromise:ju(nd("closed"))}cancel(e=void 0){return rd(this)?void 0===this._ownerReadableStream?ju(qu("cancel")):Ku(this,e):ju(nd("cancel"))}read(e){if(!rd(this))return ju(nd("read"));if(!ArrayBuffer.isView(e))return ju(new TypeError("view must be an array buffer view"));if(0===e.byteLength)return ju(new TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return ju(new TypeError("view's buffer must have non-zero byteLength"));if(void 0===this._ownerReadableStream)return ju(qu("read from"));let t,r;const n=Mu(((e,n)=>{t=e,r=n}));return function(e,t,r){const n=e._ownerReadableStream;n._disturbed=!0,"errored"===n._state?r._errorSteps(n._storedError):function(e,t,r){const n=e._controlledReadableByteStream;let i=1;t.constructor!==DataView&&(i=t.constructor.BYTES_PER_ELEMENT);const o=t.constructor,a={buffer:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:i,viewConstructor:o,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(a),void $l(n,r);if("closed"!==n._state){if(e._queueTotalSize>0){if(Ul(e,a)){const t=Ll(a);return Hl(e),void r._chunkSteps(t)}if(e._closeRequested){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");return Wl(e,t),void r._errorSteps(t)}}e._pendingPullIntos.push(a),$l(n,r),Nl(e)}else{const e=new o(a.buffer,a.byteOffset,0);r._closeSteps(e)}}(n._readableStreamController,t,r)}(this,e,{_chunkSteps:e=>t({value:e,done:!1}),_closeSteps:e=>t({value:e,done:!0}),_errorSteps:e=>r(e)}),n}releaseLock(){if(!rd(this))throw nd("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");Gu(this)}}}function rd(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function nd(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function id(e,t){const{highWaterMark:r}=e;if(void 0===r)return t;if(Il(r)||r<0)throw new RangeError("Invalid highWaterMark");return r}function od(e){const{size:t}=e;return t||(()=>1)}function ad(e,t){nl(e,t);const r=null==e?void 0:e.highWaterMark,n=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:cl(r),size:void 0===n?void 0:sd(n,t+" has member 'size' that")}}function sd(e,t){return il(e,t),t=>cl(e(t))}function cd(e,t,r){return il(e,r),r=>zu(e,t,[r])}function ud(e,t,r){return il(e,r),()=>zu(e,t,[])}function ld(e,t,r){return il(e,r),r=>Uu(e,t,[r])}function dd(e,t,r){return il(e,r),(r,n)=>zu(e,t,[r,n])}function fd(e,t){if(!md(e))throw new TypeError(t+" is not a WritableStream.")}Object.defineProperties(td.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(td.prototype,Au.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});class hd{constructor(e={},t={}){void 0===e?e=null:ol(e,"First parameter");const r=ad(t,"Second parameter"),n=function(e,t){nl(e,t);const r=null==e?void 0:e.abort,n=null==e?void 0:e.close,i=null==e?void 0:e.start,o=null==e?void 0:e.type,a=null==e?void 0:e.write;return{abort:void 0===r?void 0:cd(r,e,t+" has member 'abort' that"),close:void 0===n?void 0:ud(n,e,t+" has member 'close' that"),start:void 0===i?void 0:ld(i,e,t+" has member 'start' that"),write:void 0===a?void 0:dd(a,e,t+" has member 'write' that"),type:o}}(e,"First parameter");if(gd(this),void 0!==n.type)throw new RangeError("Invalid type is specified");const i=od(r);!function(e,t,r,n){const i=Object.create(Dd.prototype);let o=()=>{},a=()=>Pu(void 0),s=()=>Pu(void 0),c=()=>Pu(void 0);void 0!==t.start&&(o=()=>t.start(i)),void 0!==t.write&&(a=e=>t.write(e,i)),void 0!==t.close&&(s=()=>t.close()),void 0!==t.abort&&(c=e=>t.abort(e)),Od(e,i,o,a,s,c,r,n)}(this,n,id(r,1),i)}get locked(){if(!md(this))throw zd("locked");return yd(this)}abort(e=void 0){return md(this)?yd(this)?ju(new TypeError("Cannot abort a stream that already has a writer")):bd(this,e):ju(zd("abort"))}close(){return md(this)?yd(this)?ju(new TypeError("Cannot close a stream that already has a writer")):Ed(this)?ju(new TypeError("Cannot close an already-closing stream")):vd(this):ju(zd("close"))}getWriter(){if(!md(this))throw zd("getWriter");return pd(this)}}function pd(e){return new Id(e)}function gd(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new Hu,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function md(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function yd(e){return void 0!==e._writer}function bd(e,t){const r=e._state;if("closed"===r||"errored"===r)return Pu(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let n=!1;"erroring"===r&&(n=!0,t=void 0);const i=Mu(((r,i)=>{e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:i,_reason:t,_wasAlreadyErroring:n}}));return e._pendingAbortRequest._promise=i,n||Ad(e,t),i}function vd(e){const t=e._state;if("closed"===t||"errored"===t)return ju(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));const r=Mu(((t,r)=>{const n={_resolve:t,_reject:r};e._closeRequest=n})),n=e._writer;var i;return void 0!==n&&e._backpressure&&"writable"===t&&$d(n),Tl(i=e._writableStreamController,jd,0),Rd(i),r}function wd(e,t){"writable"!==e._state?Cd(e):Ad(e,t)}function Ad(e,t){const r=e._writableStreamController;e._state="erroring",e._storedError=t;const n=e._writer;void 0!==n&&Td(n,t),!function(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}(e)&&r._started&&Cd(e)}function Cd(e){e._state="errored",e._writableStreamController[$u]();const t=e._storedError;if(e._writeRequests.forEach((e=>{e._reject(t)})),e._writeRequests=new Hu,void 0===e._pendingAbortRequest)return void xd(e);const r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void xd(e);Ou(e._writableStreamController[Zu](r._reason),(()=>{r._resolve(),xd(e)}),(t=>{r._reject(t),xd(e)}))}function Ed(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function xd(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const t=e._writer;void 0!==t&&qd(t,e._storedError)}function Sd(e,t){const r=e._writer;void 0!==r&&t!==e._backpressure&&(t?function(e){Wd(e)}(r):$d(r)),e._backpressure=t}Object.defineProperties(hd.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(hd.prototype,Au.toStringTag,{value:"WritableStream",configurable:!0});class Id{constructor(e){if(al(e,1,"WritableStreamDefaultWriter"),fd(e,"First parameter"),yd(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;const t=e._state;if("writable"===t)!Ed(e)&&e._backpressure?Wd(this):Yd(this),Kd(this);else if("erroring"===t)Jd(this,e._storedError),Kd(this);else if("closed"===t)Yd(this),Kd(this),Qd(this);else{const t=e._storedError;Jd(this,t),Gd(this,t)}}get closed(){return kd(this)?this._closedPromise:ju(Hd("closed"))}get desiredSize(){if(!kd(this))throw Hd("desiredSize");if(void 0===this._ownerWritableStream)throw Vd("desiredSize");return function(e){const t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:Nd(t._writableStreamController)}(this)}get ready(){return kd(this)?this._readyPromise:ju(Hd("ready"))}abort(e=void 0){return kd(this)?void 0===this._ownerWritableStream?ju(Vd("abort")):function(e,t){return bd(e._ownerWritableStream,t)}(this,e):ju(Hd("abort"))}close(){if(!kd(this))return ju(Hd("close"));const e=this._ownerWritableStream;return void 0===e?ju(Vd("close")):Ed(e)?ju(new TypeError("Cannot close an already-closing stream")):_d(this)}releaseLock(){if(!kd(this))throw Hd("releaseLock");void 0!==this._ownerWritableStream&&Md(this)}write(e=void 0){return kd(this)?void 0===this._ownerWritableStream?ju(Vd("write to")):Pd(this,e):ju(Hd("write"))}}function kd(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function _d(e){return vd(e._ownerWritableStream)}function Td(e,t){"pending"===e._readyPromiseState?Zd(e,t):function(e,t){Jd(e,t)}(e,t)}function Md(e){const t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Td(e,r),function(e,t){"pending"===e._closedPromiseState?qd(e,t):function(e,t){Gd(e,t)}(e,t)}(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function Pd(e,t){const r=e._ownerWritableStream,n=r._writableStreamController,i=function(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return Ld(e,t),1}}(n,t);if(r!==e._ownerWritableStream)return ju(Vd("write to"));const o=r._state;if("errored"===o)return ju(r._storedError);if(Ed(r)||"closed"===o)return ju(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return ju(r._storedError);const a=function(e){return Mu(((t,r)=>{const n={_resolve:t,_reject:r};e._writeRequests.push(n)}))}(r);return function(e,t,r){try{Tl(e,t,r)}catch(t){return void Ld(e,t)}const n=e._controlledWritableStream;Ed(n)||"writable"!==n._state||Sd(n,Fd(e)),Rd(e)}(n,t,i),a}Object.defineProperties(Id.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(Id.prototype,Au.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});const jd={};class Dd{constructor(){throw new TypeError("Illegal constructor")}error(e=void 0){if(!function(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")}(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&Ud(this,e)}[Zu](e){const t=this._abortAlgorithm(e);return Bd(this),t}[$u](){Ml(this)}}function Od(e,t,r,n,i,o,a,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,Ml(t),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=a,t._writeAlgorithm=n,t._closeAlgorithm=i,t._abortAlgorithm=o;const c=Fd(t);Sd(e,c),Ou(Pu(r()),(()=>{t._started=!0,Rd(t)}),(r=>{t._started=!0,wd(e,r)}))}function Bd(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Nd(e){return e._strategyHWM-e._queueTotalSize}function Rd(e){const t=e._controlledWritableStream;if(!e._started)return;if(void 0!==t._inFlightWriteRequest)return;if("erroring"===t._state)return void Cd(t);if(0===e._queue.length)return;const r=e._queue.peek().value;r===jd?function(e){const t=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),_l(e);const r=e._closeAlgorithm();Bd(e),Ou(r,(()=>{!function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";const t=e._writer;void 0!==t&&Qd(t)}(t)}),(e=>{!function(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),wd(e,t)}(t,e)}))}(e):function(e,t){const r=e._controlledWritableStream;!function(e){e._inFlightWriteRequest=e._writeRequests.shift()}(r);Ou(e._writeAlgorithm(t),(()=>{!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(r);const t=r._state;if(_l(e),!Ed(r)&&"writable"===t){const t=Fd(e);Sd(r,t)}Rd(e)}),(t=>{"writable"===r._state&&Bd(e),function(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,wd(e,t)}(r,t)}))}(e,r)}function Ld(e,t){"writable"===e._controlledWritableStream._state&&Ud(e,t)}function Fd(e){return Nd(e)<=0}function Ud(e,t){const r=e._controlledWritableStream;Bd(e),Ad(r,t)}function zd(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function Hd(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function Vd(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Kd(e){e._closedPromise=Mu(((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"}))}function Gd(e,t){Kd(e),qd(e,t)}function qd(e,t){void 0!==e._closedPromise_reject&&(Lu(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function Qd(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function Wd(e){e._readyPromise=Mu(((t,r)=>{e._readyPromise_resolve=t,e._readyPromise_reject=r})),e._readyPromiseState="pending"}function Jd(e,t){Wd(e),Zd(e,t)}function Yd(e){Wd(e),$d(e)}function Zd(e,t){void 0!==e._readyPromise_reject&&(Lu(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function $d(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(Dd.prototype,{error:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(Dd.prototype,Au.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});const Xd="undefined"!=typeof DOMException?DOMException:void 0,ef=function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(Xd)?Xd:function(){const e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return Object.defineProperty(e.prototype=Object.create(Error.prototype),"constructor",{value:e,writable:!0,configurable:!0}),e}();function tf(e,t,r,n,i,o){const a=fl(e),s=pd(t);e._disturbed=!0;let c=!1,u=Pu(void 0);return Mu(((l,d)=>{let f;if(void 0!==o){if(f=()=>{const r=new ef("Aborted","AbortError"),o=[];n||o.push((()=>"writable"===t._state?bd(t,r):Pu(void 0))),i||o.push((()=>"readable"===e._state?If(e,r):Pu(void 0))),g((()=>Promise.all(o.map((e=>e())))),!0,r)},o.aborted)return void f();o.addEventListener("abort",f)}if(p(e,a._closedPromise,(e=>{n?m(!0,e):g((()=>bd(t,e)),!0,e)})),p(t,s._closedPromise,(t=>{i?m(!0,t):g((()=>If(e,t)),!0,t)})),function(e,t,r){"closed"===e._state?r():Bu(t,r)}(e,a._closedPromise,(()=>{r?m():g((()=>function(e){const t=e._ownerWritableStream,r=t._state;return Ed(t)||"closed"===r?Pu(void 0):"errored"===r?ju(t._storedError):_d(e)}(s)))})),Ed(t)||"closed"===t._state){const t=new TypeError("the destination writable stream closed before all data could be piped to it");i?m(!0,t):g((()=>If(e,t)),!0,t)}function h(){const e=u;return Du(u,(()=>e!==u?h():void 0))}function p(e,t,r){"errored"===e._state?r(e._storedError):Nu(t,r)}function g(e,r,n){function i(){Ou(e(),(()=>y(r,n)),(e=>y(!0,e)))}c||(c=!0,"writable"!==t._state||Ed(t)?i():Bu(h(),i))}function m(e,r){c||(c=!0,"writable"!==t._state||Ed(t)?y(e,r):Bu(h(),(()=>y(e,r))))}function y(e,t){Md(s),Gu(a),void 0!==o&&o.removeEventListener("abort",f),e?d(t):l(void 0)}Lu(Mu(((e,t)=>{!function r(n){n?e():Du(c?Pu(!0):Du(s._readyPromise,(()=>Mu(((e,t)=>{vl(a,{_chunkSteps:t=>{u=Du(Pd(s,t),void 0,Cu),e(!1)},_closeSteps:()=>e(!0),_errorSteps:t})})))),r,t)}(!1)})))}))}class rf{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!nf(this))throw pf("desiredSize");return df(this)}close(){if(!nf(this))throw pf("close");if(!ff(this))throw new TypeError("The stream is not in a state that permits close");cf(this)}enqueue(e=void 0){if(!nf(this))throw pf("enqueue");if(!ff(this))throw new TypeError("The stream is not in a state that permits enqueue");return uf(this,e)}error(e=void 0){if(!nf(this))throw pf("error");lf(this,e)}[Xu](e){Ml(this);const t=this._cancelAlgorithm(e);return sf(this),t}[el](e){const t=this._controlledReadableStream;if(this._queue.length>0){const r=_l(this);this._closeRequested&&0===this._queue.length?(sf(this),kf(t)):of(this),e._chunkSteps(r)}else hl(t,e),of(this)}}function nf(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function of(e){af(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,Ou(e._pullAlgorithm(),(()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,of(e))}),(t=>{lf(e,t)}))))}function af(e){const t=e._controlledReadableStream;return!!ff(e)&&(!!e._started&&(!!(Sf(t)&&gl(t)>0)||df(e)>0))}function sf(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function cf(e){if(!ff(e))return;const t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(sf(e),kf(t))}function uf(e,t){if(!ff(e))return;const r=e._controlledReadableStream;if(Sf(r)&&gl(r)>0)pl(r,t,!1);else{let r;try{r=e._strategySizeAlgorithm(t)}catch(t){throw lf(e,t),t}try{Tl(e,t,r)}catch(t){throw lf(e,t),t}}of(e)}function lf(e,t){const r=e._controlledReadableStream;"readable"===r._state&&(Ml(e),sf(e),_f(r,t))}function df(e){const t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function ff(e){const t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function hf(e,t,r,n,i,o,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,Ml(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=o,t._pullAlgorithm=n,t._cancelAlgorithm=i,e._readableStreamController=t,Ou(Pu(r()),(()=>{t._started=!0,of(t)}),(e=>{lf(t,e)}))}function pf(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function gf(e,t,r){return il(e,r),r=>zu(e,t,[r])}function mf(e,t,r){return il(e,r),r=>zu(e,t,[r])}function yf(e,t,r){return il(e,r),r=>Uu(e,t,[r])}function bf(e,t){if("bytes"!=(e=""+e))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}function vf(e,t){if("byob"!=(e=""+e))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}function wf(e,t){nl(e,t);const r=null==e?void 0:e.preventAbort,n=null==e?void 0:e.preventCancel,i=null==e?void 0:e.preventClose,o=null==e?void 0:e.signal;return void 0!==o&&function(e,t){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}(e))throw new TypeError(t+" is not an AbortSignal.")}(o,t+" has member 'signal' that"),{preventAbort:!!r,preventCancel:!!n,preventClose:!!i,signal:o}}Object.defineProperties(rf.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(rf.prototype,Au.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class Af{constructor(e={},t={}){void 0===e?e=null:ol(e,"First parameter");const r=ad(t,"Second parameter"),n=function(e,t){nl(e,t);const r=e,n=null==r?void 0:r.autoAllocateChunkSize,i=null==r?void 0:r.cancel,o=null==r?void 0:r.pull,a=null==r?void 0:r.start,s=null==r?void 0:r.type;return{autoAllocateChunkSize:void 0===n?void 0:ll(n,t+" has member 'autoAllocateChunkSize' that"),cancel:void 0===i?void 0:gf(i,r,t+" has member 'cancel' that"),pull:void 0===o?void 0:mf(o,r,t+" has member 'pull' that"),start:void 0===a?void 0:yf(a,r,t+" has member 'start' that"),type:void 0===s?void 0:bf(s,t+" has member 'type' that")}}(e,"First parameter");if(Ef(this),"bytes"===n.type){if(void 0!==r.size)throw new RangeError("The strategy for a byte stream cannot have a size function");!function(e,t,r){const n=Object.create(Dl.prototype);let i=()=>{},o=()=>Pu(void 0),a=()=>Pu(void 0);void 0!==t.start&&(i=()=>t.start(n)),void 0!==t.pull&&(o=()=>t.pull(n)),void 0!==t.cancel&&(a=e=>t.cancel(e));const s=t.autoAllocateChunkSize;if(0===s)throw new TypeError("autoAllocateChunkSize must be greater than 0");!function(e,t,r,n,i,o,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,Ml(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=o,t._pullAlgorithm=n,t._cancelAlgorithm=i,t._autoAllocateChunkSize=a,t._pendingPullIntos=new Hu,e._readableStreamController=t,Ou(Pu(r()),(()=>{t._started=!0,Nl(t)}),(e=>{Wl(t,e)}))}(e,n,i,o,a,r,s)}(this,n,id(r,0))}else{const e=od(r);!function(e,t,r,n){const i=Object.create(rf.prototype);let o=()=>{},a=()=>Pu(void 0),s=()=>Pu(void 0);void 0!==t.start&&(o=()=>t.start(i)),void 0!==t.pull&&(a=()=>t.pull(i)),void 0!==t.cancel&&(s=e=>t.cancel(e)),hf(e,i,o,a,s,r,n)}(this,n,id(r,1),e)}}get locked(){if(!xf(this))throw Tf("locked");return Sf(this)}cancel(e=void 0){return xf(this)?Sf(this)?ju(new TypeError("Cannot cancel a stream that already has a reader")):If(this,e):ju(Tf("cancel"))}getReader(e=void 0){if(!xf(this))throw Tf("getReader");const t=function(e,t){nl(e,t);const r=null==e?void 0:e.mode;return{mode:void 0===r?void 0:vf(r,t+" has member 'mode' that")}}(e,"First parameter");return void 0===t.mode?fl(this):function(e){return new td(e)}(this)}pipeThrough(e,t={}){if(!xf(this))throw Tf("pipeThrough");al(e,1,"pipeThrough");const r=function(e,t){nl(e,t);const r=null==e?void 0:e.readable;sl(r,"readable","ReadableWritablePair"),dl(r,t+" has member 'readable' that");const n=null==e?void 0:e.writable;return sl(n,"writable","ReadableWritablePair"),fd(n,t+" has member 'writable' that"),{readable:r,writable:n}}(e,"First parameter"),n=wf(t,"Second parameter");if(Sf(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(yd(r.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return Lu(tf(this,r.writable,n.preventClose,n.preventAbort,n.preventCancel,n.signal)),r.readable}pipeTo(e,t={}){if(!xf(this))return ju(Tf("pipeTo"));if(void 0===e)return ju("Parameter 1 is required in 'pipeTo'.");if(!md(e))return ju(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let r;try{r=wf(t,"Second parameter")}catch(e){return ju(e)}return Sf(this)?ju(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):yd(e)?ju(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):tf(this,e,r.preventClose,r.preventAbort,r.preventCancel,r.signal)}tee(){if(!xf(this))throw Tf("tee");const e=function(e){const t=fl(e);let r,n,i,o,a,s=!1,c=!1,u=!1;const l=Mu((e=>{a=e}));function d(){return s||(s=!0,vl(t,{_chunkSteps:e=>{Fu((()=>{s=!1;const t=e,r=e;c||uf(i._readableStreamController,t),u||uf(o._readableStreamController,r)}))},_closeSteps:()=>{s=!1,c||cf(i._readableStreamController),u||cf(o._readableStreamController),c&&u||a(void 0)},_errorSteps:()=>{s=!1}})),Pu(void 0)}function f(){}return i=Cf(f,d,(function(t){if(c=!0,r=t,u){const t=Pl([r,n]),i=If(e,t);a(i)}return l})),o=Cf(f,d,(function(t){if(u=!0,n=t,c){const t=Pl([r,n]),i=If(e,t);a(i)}return l})),Nu(t._closedPromise,(e=>{lf(i._readableStreamController,e),lf(o._readableStreamController,e),c&&u||a(void 0)})),[i,o]}(this);return Pl(e)}values(e=void 0){if(!xf(this))throw Tf("values");return function(e,t){const r=fl(e),n=new Cl(r,t),i=Object.create(El);return i._asyncIteratorImpl=n,i}(this,function(e){return nl(e,"First parameter"),{preventCancel:!!(null==e?void 0:e.preventCancel)}}(e).preventCancel)}}function Cf(e,t,r,n=1,i=()=>1){const o=Object.create(Af.prototype);return Ef(o),hf(o,Object.create(rf.prototype),e,t,r,n,i),o}function Ef(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function xf(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function Sf(e){return void 0!==e._reader}function If(e,t){return e._disturbed=!0,"closed"===e._state?Pu(void 0):"errored"===e._state?ju(e._storedError):(kf(e),Ru(e._readableStreamController[Xu](t),Cu))}function kf(e){e._state="closed";const t=e._reader;void 0!==t&&(Yu(t),bl(t)&&(t._readRequests.forEach((e=>{e._closeSteps()})),t._readRequests=new Hu))}function _f(e,t){e._state="errored",e._storedError=t;const r=e._reader;void 0!==r&&(Ju(r,t),bl(r)?(r._readRequests.forEach((e=>{e._errorSteps(t)})),r._readRequests=new Hu):(r._readIntoRequests.forEach((e=>{e._errorSteps(t)})),r._readIntoRequests=new Hu))}function Tf(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function Mf(e,t){nl(e,t);const r=null==e?void 0:e.highWaterMark;return sl(r,"highWaterMark","QueuingStrategyInit"),{highWaterMark:cl(r)}}Object.defineProperties(Af.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(Af.prototype,Au.toStringTag,{value:"ReadableStream",configurable:!0}),"symbol"==typeof Au.asyncIterator&&Object.defineProperty(Af.prototype,Au.asyncIterator,{value:Af.prototype.values,writable:!0,configurable:!0});const Pf=function(e){return e.byteLength};class jf{constructor(e){al(e,1,"ByteLengthQueuingStrategy"),e=Mf(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!Of(this))throw Df("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!Of(this))throw Df("size");return Pf}}function Df(e){return new TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`)}function Of(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")}Object.defineProperties(jf.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(jf.prototype,Au.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});const Bf=function(){return 1};class Nf{constructor(e){al(e,1,"CountQueuingStrategy"),e=Mf(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!Lf(this))throw Rf("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!Lf(this))throw Rf("size");return Bf}}function Rf(e){return new TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`)}function Lf(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")}function Ff(e,t,r){return il(e,r),r=>zu(e,t,[r])}function Uf(e,t,r){return il(e,r),r=>Uu(e,t,[r])}function zf(e,t,r){return il(e,r),(r,n)=>zu(e,t,[r,n])}Object.defineProperties(Nf.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(Nf.prototype,Au.toStringTag,{value:"CountQueuingStrategy",configurable:!0});class Hf{constructor(e={},t={},r={}){void 0===e&&(e=null);const n=ad(t,"Second parameter"),i=ad(r,"Third parameter"),o=function(e,t){nl(e,t);const r=null==e?void 0:e.flush,n=null==e?void 0:e.readableType,i=null==e?void 0:e.start,o=null==e?void 0:e.transform,a=null==e?void 0:e.writableType;return{flush:void 0===r?void 0:Ff(r,e,t+" has member 'flush' that"),readableType:n,start:void 0===i?void 0:Uf(i,e,t+" has member 'start' that"),transform:void 0===o?void 0:zf(o,e,t+" has member 'transform' that"),writableType:a}}(e,"First parameter");if(void 0!==o.readableType)throw new RangeError("Invalid readableType specified");if(void 0!==o.writableType)throw new RangeError("Invalid writableType specified");const a=id(i,0),s=od(i),c=id(n,1),u=od(n);let l;!function(e,t,r,n,i,o){function a(){return t}e._writable=function(e,t,r,n,i=1,o=()=>1){const a=Object.create(hd.prototype);return gd(a),Od(a,Object.create(Dd.prototype),e,t,r,n,i,o),a}(a,(function(t){return function(e,t){const r=e._transformStreamController;return e._backpressure?Ru(e._backpressureChangePromise,(()=>{const n=e._writable;if("erroring"===n._state)throw n._storedError;return Zf(r,t)})):Zf(r,t)}(e,t)}),(function(){return function(e){const t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return Jf(r),Ru(n,(()=>{if("errored"===t._state)throw t._storedError;cf(t._readableStreamController)}),(r=>{throw Kf(e,r),t._storedError}))}(e)}),(function(t){return function(e,t){return Kf(e,t),Pu(void 0)}(e,t)}),r,n),e._readable=Cf(a,(function(){return function(e){return qf(e,!1),e._backpressureChangePromise}(e)}),(function(t){return Gf(e,t),Pu(void 0)}),i,o),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,qf(e,!0),e._transformStreamController=void 0}(this,Mu((e=>{l=e})),c,u,a,s),function(e,t){const r=Object.create(Qf.prototype);let n=e=>{try{return Yf(r,e),Pu(void 0)}catch(e){return ju(e)}},i=()=>Pu(void 0);void 0!==t.transform&&(n=e=>t.transform(e,r)),void 0!==t.flush&&(i=()=>t.flush(r)),function(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}(e,r,n,i)}(this,o),void 0!==o.start?l(o.start(this._transformStreamController)):l(void 0)}get readable(){if(!Vf(this))throw Xf("readable");return this._readable}get writable(){if(!Vf(this))throw Xf("writable");return this._writable}}function Vf(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function Kf(e,t){lf(e._readable._readableStreamController,t),Gf(e,t)}function Gf(e,t){Jf(e._transformStreamController),Ld(e._writable._writableStreamController,t),e._backpressure&&qf(e,!1)}function qf(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=Mu((t=>{e._backpressureChangePromise_resolve=t})),e._backpressure=t}Object.defineProperties(Hf.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(Hf.prototype,Au.toStringTag,{value:"TransformStream",configurable:!0});class Qf{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Wf(this))throw $f("desiredSize");return df(this._controlledTransformStream._readable._readableStreamController)}enqueue(e=void 0){if(!Wf(this))throw $f("enqueue");Yf(this,e)}error(e=void 0){if(!Wf(this))throw $f("error");var t;t=e,Kf(this._controlledTransformStream,t)}terminate(){if(!Wf(this))throw $f("terminate");!function(e){const t=e._controlledTransformStream;cf(t._readable._readableStreamController),Gf(t,new TypeError("TransformStream terminated"))}(this)}}function Wf(e){return!!xu(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function Jf(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function Yf(e,t){const r=e._controlledTransformStream,n=r._readable._readableStreamController;if(!ff(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{uf(n,t)}catch(e){throw Gf(r,e),r._readable._storedError}const i=function(e){return!af(e)}(n);i!==r._backpressure&&qf(r,!0)}function Zf(e,t){return Ru(e._transformAlgorithm(t),void 0,(t=>{throw Kf(e._controlledTransformStream,t),t}))}function $f(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}function Xf(e){return new TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}Object.defineProperties(Qf.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof Au.toStringTag&&Object.defineProperty(Qf.prototype,Au.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});var eh=Object.freeze({__proto__:null,ByteLengthQueuingStrategy:jf,CountQueuingStrategy:Nf,ReadableByteStreamController:Dl,ReadableStream:Af,ReadableStreamBYOBReader:td,ReadableStreamBYOBRequest:jl,ReadableStreamDefaultController:rf,ReadableStreamDefaultReader:yl,TransformStream:Hf,TransformStreamDefaultController:Qf,WritableStream:hd,WritableStreamDefaultController:Dd,WritableStreamDefaultWriter:Id}),th=function(e,t){return th=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},th(e,t)};function rh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function r(){this.constructor=e}th(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function nh(e){if(!e)throw new TypeError("Assertion failed")}function ih(){}function oh(e){return"object"==typeof e&&null!==e||"function"==typeof e}function ah(e){if("function"!=typeof e)return!1;var t=!1;try{new e({start:function(){t=!0}})}catch(e){}return t}function sh(e){return!!oh(e)&&"function"==typeof e.getReader}function ch(e){return!!oh(e)&&"function"==typeof e.getWriter}function uh(e){return!!oh(e)&&!!sh(e.readable)&&!!ch(e.writable)}function lh(e){try{return e.getReader({mode:"byob"}).releaseLock(),!0}catch(e){return!1}}function dh(e,t){var r=(void 0===t?{}:t).type;return nh(sh(e)),nh(!1===e.locked),"bytes"===(r=fh(r))?new mh(e):new ph(e)}function fh(e){var t=e+"";if("bytes"===t)return t;if(void 0===e)return e;throw new RangeError("Invalid type is specified")}var hh=function(){function e(e){this._underlyingReader=void 0,this._readerMode=void 0,this._readableStreamController=void 0,this._pendingRead=void 0,this._underlyingStream=e,this._attachDefaultReader()}return e.prototype.start=function(e){this._readableStreamController=e},e.prototype.cancel=function(e){return nh(void 0!==this._underlyingReader),this._underlyingReader.cancel(e)},e.prototype._attachDefaultReader=function(){if("default"!==this._readerMode){this._detachReader();var e=this._underlyingStream.getReader();this._readerMode="default",this._attachReader(e)}},e.prototype._attachReader=function(e){var t=this;nh(void 0===this._underlyingReader),this._underlyingReader=e;var r=this._underlyingReader.closed;r&&r.then((function(){return t._finishPendingRead()})).then((function(){e===t._underlyingReader&&t._readableStreamController.close()}),(function(r){e===t._underlyingReader&&t._readableStreamController.error(r)})).catch(ih)},e.prototype._detachReader=function(){void 0!==this._underlyingReader&&(this._underlyingReader.releaseLock(),this._underlyingReader=void 0,this._readerMode=void 0)},e.prototype._pullWithDefaultReader=function(){var e=this;this._attachDefaultReader();var t=this._underlyingReader.read().then((function(t){var r=e._readableStreamController;t.done?e._tryClose():r.enqueue(t.value)}));return this._setPendingRead(t),t},e.prototype._tryClose=function(){try{this._readableStreamController.close()}catch(e){}},e.prototype._setPendingRead=function(e){var t,r=this,n=function(){r._pendingRead===t&&(r._pendingRead=void 0)};this._pendingRead=t=e.then(n,n)},e.prototype._finishPendingRead=function(){var e=this;if(this._pendingRead){var t=function(){return e._finishPendingRead()};return this._pendingRead.then(t,t)}},e}(),ph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rh(t,e),t.prototype.pull=function(){return this._pullWithDefaultReader()},t}(hh);function gh(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var mh=function(e){function t(t){var r=this,n=lh(t);return(r=e.call(this,t)||this)._supportsByob=n,r}return rh(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return"bytes"},enumerable:!1,configurable:!0}),t.prototype._attachByobReader=function(){if("byob"!==this._readerMode){nh(this._supportsByob),this._detachReader();var e=this._underlyingStream.getReader({mode:"byob"});this._readerMode="byob",this._attachReader(e)}},t.prototype.pull=function(){if(this._supportsByob){var e=this._readableStreamController.byobRequest;if(e)return this._pullWithByobRequest(e)}return this._pullWithDefaultReader()},t.prototype._pullWithByobRequest=function(e){var t=this;this._attachByobReader();var r=new Uint8Array(e.view.byteLength),n=this._underlyingReader.read(r).then((function(r){var n,i,o;t._readableStreamController,r.done?(t._tryClose(),e.respond(0)):(n=r.value,i=e.view,o=gh(n),gh(i).set(o,0),e.respond(r.value.byteLength))}));return this._setPendingRead(n),n},t}(hh);function yh(e){nh(ch(e)),nh(!1===e.locked);var t=e.getWriter();return new bh(t)}var bh=function(){function e(e){var t=this;this._writableStreamController=void 0,this._pendingWrite=void 0,this._state="writable",this._storedError=void 0,this._underlyingWriter=e,this._errorPromise=new Promise((function(e,r){t._errorPromiseReject=r})),this._errorPromise.catch(ih)}return e.prototype.start=function(e){var t=this;this._writableStreamController=e,this._underlyingWriter.closed.then((function(){t._state="closed"})).catch((function(e){return t._finishErroring(e)}))},e.prototype.write=function(e){var t=this,r=this._underlyingWriter;if(null===r.desiredSize)return r.ready;var n=r.write(e);n.catch((function(e){return t._finishErroring(e)})),r.ready.catch((function(e){return t._startErroring(e)}));var i=Promise.race([n,this._errorPromise]);return this._setPendingWrite(i),i},e.prototype.close=function(){var e=this;return void 0===this._pendingWrite?this._underlyingWriter.close():this._finishPendingWrite().then((function(){return e.close()}))},e.prototype.abort=function(e){if("errored"!==this._state)return this._underlyingWriter.abort(e)},e.prototype._setPendingWrite=function(e){var t,r=this,n=function(){r._pendingWrite===t&&(r._pendingWrite=void 0)};this._pendingWrite=t=e.then(n,n)},e.prototype._finishPendingWrite=function(){var e=this;if(void 0===this._pendingWrite)return Promise.resolve();var t=function(){return e._finishPendingWrite()};return this._pendingWrite.then(t,t)},e.prototype._startErroring=function(e){var t=this;if("writable"===this._state){this._state="erroring",this._storedError=e;var r=function(){return t._finishErroring(e)};void 0===this._pendingWrite?r():this._finishPendingWrite().then(r,r),this._writableStreamController.error(e)}},e.prototype._finishErroring=function(e){"writable"===this._state&&this._startErroring(e),"erroring"===this._state&&(this._state="errored",this._errorPromiseReject(this._storedError))},e}();function vh(e){nh(uh(e));var t=e.readable,r=e.writable;nh(!1===t.locked),nh(!1===r.locked);var n,i=t.getReader();try{n=r.getWriter()}catch(e){throw i.releaseLock(),e}return new wh(i,n)}var wh=function(){function e(e,t){var r=this;this._transformStreamController=void 0,this._onRead=function(e){if(!e.done)return r._transformStreamController.enqueue(e.value),r._reader.read().then(r._onRead)},this._onError=function(e){r._flushReject(e),r._transformStreamController.error(e),r._reader.cancel(e).catch(ih),r._writer.abort(e).catch(ih)},this._onTerminate=function(){r._flushResolve(),r._transformStreamController.terminate();var e=new TypeError("TransformStream terminated");r._writer.abort(e).catch(ih)},this._reader=e,this._writer=t,this._flushPromise=new Promise((function(e,t){r._flushResolve=e,r._flushReject=t}))}return e.prototype.start=function(e){this._transformStreamController=e,this._reader.read().then(this._onRead).then(this._onTerminate,this._onError);var t=this._reader.closed;t&&t.then(this._onTerminate,this._onError)},e.prototype.transform=function(e){return this._writer.write(e)},e.prototype.flush=function(){var e=this;return this._writer.close().then((function(){return e._flushPromise}))},e}(),Ah=Object.freeze({__proto__:null,createReadableStreamWrapper:function(e){nh(function(e){return!!ah(e)&&!!sh(new e)}(e));var t=function(e){try{return new e({type:"bytes"}),!0}catch(e){return!1}}(e);return function(r,n){var i=(void 0===n?{}:n).type;if("bytes"!==(i=fh(i))||t||(i=void 0),r.constructor===e&&("bytes"!==i||lh(r)))return r;if("bytes"===i){var o=dh(r,{type:i});return new e(o)}return o=dh(r),new e(o)}},createTransformStreamWrapper:function(e){return nh(function(e){return!!ah(e)&&!!uh(new e)}(e)),function(t){if(t.constructor===e)return t;var r=vh(t);return new e(r)}},createWrappingReadableSource:dh,createWrappingTransformer:vh,createWrappingWritableSink:yh,createWritableStreamWrapper:function(e){return nh(function(e){return!!ah(e)&&!!ch(new e)}(e)),function(t){if(t.constructor===e)return t;var r=yh(t);return new e(r)}}}),Ch=it((function(e){!function(e,t){function r(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o=void 0}catch(e){}function a(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function s(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},i.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r=0;r=t;r-=6)i=a(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=a(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,c=Math.min(o,o-a)+r,u=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-d.length]+d+n:d+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var f=u[e],h=l[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?g+n:c[f-g.length]+g+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,u=new e(o),l=this.clone();if(c){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),u[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return!(8191&t)&&(r+=13,t>>>=13),!(127&t)&&(r+=7,t>>>=7),!(15&t)&&(r+=4,t>>>=4),!(3&t)&&(r+=2,t>>>=2),!(1&t)&&r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,g=h>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],w=8191&v,A=v>>>13,C=0|a[4],E=8191&C,x=C>>>13,S=0|a[5],I=8191&S,k=S>>>13,_=0|a[6],T=8191&_,M=_>>>13,P=0|a[7],j=8191&P,D=P>>>13,O=0|a[8],B=8191&O,N=O>>>13,R=0|a[9],L=8191&R,F=R>>>13,U=0|s[0],z=8191&U,H=U>>>13,V=0|s[1],K=8191&V,G=V>>>13,q=0|s[2],Q=8191&q,W=q>>>13,J=0|s[3],Y=8191&J,Z=J>>>13,$=0|s[4],X=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,he=0|s[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,z)|0))<<13)|0;u=((o=Math.imul(f,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H);var ye=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,K)|0))<<13)|0;u=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,G)|0;var be=(u+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,Q)|0))<<13)|0;u=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,W)|0;var ve=(u+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Y)|0))<<13)|0;u=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(x,z)|0,o=Math.imul(x,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Z)|0;var we=(u+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var Ae=(u+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;u=((o=o+Math.imul(f,ne)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0;var Ce=(u+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;u=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0;var Ee=(u+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(f,ce)|0))<<13)|0;u=((o=o+Math.imul(f,ue)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(N,z)|0,o=Math.imul(N,H),n=n+Math.imul(j,K)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(D,K)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,Z)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,ue)|0;var xe=(u+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;u=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,G)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,de)|0,o=o+Math.imul(g,fe)|0;var Se=(u+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ge)|0)+Math.imul(f,pe)|0))<<13)|0;u=((o=o+Math.imul(f,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,n=n+Math.imul(y,de)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Ie=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((o=o+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,W))+Math.imul(F,Q)|0,o=Math.imul(F,W),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,ue)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,ue)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var ke=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,Z))+Math.imul(F,Y)|0,o=Math.imul(F,Z),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,n=n+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,fe)|0;var _e=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ge)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,ge)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,n=n+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Te=(u+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(j,ce)|0,i=(i=i+Math.imul(j,ue)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,ue)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(u+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ge)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,ue)|0,n=n+Math.imul(j,de)|0,i=(i=i+Math.imul(j,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((o=o+Math.imul(M,ge)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,ce),i=(i=Math.imul(L,ue))+Math.imul(F,ce)|0,o=Math.imul(F,ue),n=n+Math.imul(B,de)|0,i=(i=i+Math.imul(B,fe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,fe)|0;var je=(u+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,ge)|0)+Math.imul(D,pe)|0))<<13)|0;u=((o=o+Math.imul(D,ge)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,de),i=(i=Math.imul(L,fe))+Math.imul(F,de)|0,o=Math.imul(F,fe);var De=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(N,pe)|0))<<13)|0;u=((o=o+Math.imul(N,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(u+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,ge))+Math.imul(F,pe)|0))<<13)|0;return u=((o=Math.imul(F,ge))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=Ae,c[6]=Ce,c[7]=Ee,c[8]=xe,c[9]=Se,c[10]=Ie,c[11]=ke,c[12]=_e,c[13]=Te,c[14]=Me,c[15]=Pe,c[16]=je,c[17]=De,c[18]=Oe,0!==u&&(c[19]=u,r.length++),r};function h(e,t,r){return(new p).mulp(e,t,r)}function p(e,t){this.x=e,this.y=t}Math.imul||(f=d),i.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?f(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):h(this,e,t),r},p.prototype.makeRBT=function(e){for(var t=Array(e),r=i.prototype._countBits(e)-1,n=0;n>=1;return n},p.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),o=e,a=0|o.words[o.length-1];0!=(r=26-this._countBits(a))&&(o=o.ushln(r),n.iushln(r),a=0|o.words[o.length-1]);var s,c=n.length-o.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=Array(s.length);for(var u=0;u=0;d--){var f=67108864*(0|n.words[o.length+d])+(0|n.words[o.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(o,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(o,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var l=n.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;!(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,g=1;!(n.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s),a.isub(c)):(n.isub(t),s.isub(o),c.isub(a))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,l=1;!(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;!(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new A(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var e=new i(null);return e.words=Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},n(y,m),y.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new b;else if("p192"===e)t=new v;else{if("p25519"!==e)throw Error("Unknown prime "+e);t=new w}return g[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(!(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);r(!o.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,o),f=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=a;0!==h.cmp(s);){for(var g=h,m=0;0!==g.cmp(s);m++)g=g.redSqr();r(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var d=u>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===n&&0===l)&&(o=this.mul(o,r[a]),s=0,a=0)):s=0}c=26}return o},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new C(e)},n(C,A),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,nt)})),Eh=Object.freeze({__proto__:null,default:Ch,__moduleExports:Ch});class xh{constructor(e){if(void 0===e)throw Error("Invalid BigInteger input");this.value=new Ch(e)}clone(){const e=new xh(null);return this.value.copy(e.value),e}iinc(){return this.value.iadd(new Ch(1)),this}inc(){return this.clone().iinc()}idec(){return this.value.isub(new Ch(1)),this}dec(){return this.clone().idec()}iadd(e){return this.value.iadd(e.value),this}add(e){return this.clone().iadd(e)}isub(e){return this.value.isub(e.value),this}sub(e){return this.clone().isub(e)}imul(e){return this.value.imul(e.value),this}mul(e){return this.clone().imul(e)}imod(e){return this.value=this.value.umod(e.value),this}mod(e){return this.clone().imod(e)}modExp(e,t){const r=t.isEven()?Ch.red(t.value):Ch.mont(t.value),n=this.clone();return n.value=n.value.toRed(r).redPow(e.value).fromRed(),n}modInv(e){if(!this.gcd(e).isOne())throw Error("Inverse does not exist");return new xh(this.value.invm(e.value))}gcd(e){return new xh(this.value.gcd(e.value))}ileftShift(e){return this.value.ishln(e.value.toNumber()),this}leftShift(e){return this.clone().ileftShift(e)}irightShift(e){return this.value.ishrn(e.value.toNumber()),this}rightShift(e){return this.clone().irightShift(e)}equal(e){return this.value.eq(e.value)}lt(e){return this.value.lt(e.value)}lte(e){return this.value.lte(e.value)}gt(e){return this.value.gt(e.value)}gte(e){return this.value.gte(e.value)}isZero(){return this.value.isZero()}isOne(){return this.value.eq(new Ch(1))}isNegative(){return this.value.isNeg()}isEven(){return this.value.isEven()}abs(){const e=this.clone();return e.value=e.value.abs(),e}toString(){return this.value.toString()}toNumber(){return this.value.toNumber()}getBit(e){return this.value.testn(e)?1:0}bitLength(){return this.value.bitLength()}byteLength(){return this.value.byteLength()}toUint8Array(e="be",t){return this.value.toArrayLike(Uint8Array,e,t)}}var Sh,Ih=Object.freeze({__proto__:null,default:xh}),kh=it((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}})),_h=it((function(e,t){var r=t;r.assert=tt,r.toArray=kh.toArray,r.zero2=kh.zero2,r.toHex=kh.toHex,r.encode=kh.encode,r.getNAF=function(e,t){for(var r=[],n=1<=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,c=1;c0||t.cmpn(-i)>0;){var o,a,s,c=e.andln(3)+n&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),o=1&c?3!=(s=e.andln(7)+n&7)&&5!==s||2!==u?c:-c:0,r[0].push(o),a=1&u?3!=(s=t.andln(7)+i&7)&&5!==s||2!==c?u:-u:0,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new Ch(e,"hex","le")}})),Th=function(e){return Sh||(Sh=new Mh(null)),Sh.generate(e)};function Mh(e){this.rand=e}var Ph=Mh;if(Mh.prototype.generate=function(e){return this._rand(e)},Mh.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Rh=Nh;function Lh(e,t){this.curve=e,this.type=t,this.precomputed=null}Nh.prototype.point=function(){throw Error("Not implemented")},Nh.prototype.validate=function(){throw Error("Not implemented")},Nh.prototype._fixedNafMul=function(e,t){Bh(e.precomputed);var r=e._getDoubles(),n=Dh(t,1),i=(1<=a;t--)s=(s<<1)+n[t];o.push(s)}for(var c=this.jpoint(null,null,null),u=this.jpoint(null,null,null),l=i;l>0;l--){for(a=0;a=0;s--){for(t=0;s>=0&&0===o[s];s--)t++;if(s>=0&&t++,a=a.dblp(t),s<0)break;var c=o[s];Bh(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},Nh.prototype._wnafMulAdd=function(e,t,r,n,i){for(var o=this._wnafT1,a=this._wnafT2,s=this._wnafT3,c=0,u=0;u=1;u-=2){var d=u-1,f=u;if(1===o[d]&&1===o[f]){var h=[t[d],null,null,t[f]];0===t[d].y.cmp(t[f].y)?(h[1]=t[d].add(t[f]),h[2]=t[d].toJ().mixedAdd(t[f].neg())):0===t[d].y.cmp(t[f].y.redNeg())?(h[1]=t[d].toJ().mixedAdd(t[f]),h[2]=t[d].add(t[f].neg())):(h[1]=t[d].toJ().mixedAdd(t[f]),h[2]=t[d].toJ().mixedAdd(t[f].neg()));var p=[-3,-1,-5,-7,0,7,5,1,3],g=Oh(r[d],r[f]);c=Math.max(g[0].length,c),s[d]=Array(c),s[f]=Array(c);for(var m=0;m=0;u--){for(var A=0;u>=0;){var C=!0;for(m=0;m=0&&A++,v=v.dblp(A),u<0)break;for(m=0;m0?E=a[m][x-1>>1]:x<0&&(E=a[m][-x-1>>1].neg()),v="affine"===E.type?v.mixedAdd(E):v.add(E))}}for(u=0;u=Math.ceil((e.bitLength()+1)/t.step)},Lh.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(o=t,a=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:n,b:i},{a:o,b:a}]},Uh.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(u).neg()}},Uh.prototype.pointFromX=function(e,t){(e=new Ch(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},Uh.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},Uh.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},Hh.prototype.isInfinity=function(){return this.inf},Hh.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Hh.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},Hh.prototype.getX=function(){return this.x.fromRed()},Hh.prototype.getY=function(){return this.y.fromRed()},Hh.prototype.mul=function(e){return e=new Ch(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},Hh.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Hh.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Hh.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},Hh.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},Hh.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},at(Vh,Rh.BasePoint),Uh.prototype.jpoint=function(e,t,r){return new Vh(this,e,t,r)},Vh.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},Vh.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Vh.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),d=n.redMul(u),f=c.redSqr().redIAdd(l).redISub(d).redISub(d),h=c.redMul(d.redISub(f)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},Vh.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),l=r.redMul(c),d=s.redSqr().redIAdd(u).redISub(l).redISub(l),f=s.redMul(l.redISub(d)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},Vh.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},Vh.prototype.inspect=function(){return this.isInfinity()?"":""},Vh.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},at(Kh,Rh);var Gh=Kh;function qh(e,t,r){Rh.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Ch(t,16),this.z=new Ch(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Kh.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},at(qh,Rh.BasePoint),Kh.prototype.decodePoint=function(e,t){if(33===(e=_h.toArray(e,t)).length&&64===e[0]&&(e=e.slice(1,33).reverse()),32!==e.length)throw Error("Unknown point compression format");return this.point(e,1)},Kh.prototype.point=function(e,t){return new qh(this,e,t)},Kh.prototype.pointFromJSON=function(e){return qh.fromJSON(this,e)},qh.prototype.precompute=function(){},qh.prototype._encode=function(e){var t=this.curve.p.byteLength();return e?[64].concat(this.getX().toArray("le",t)):this.getX().toArray("be",t)},qh.fromJSON=function(e,t){return new qh(e,t[0],t[1]||e.one)},qh.prototype.inspect=function(){return this.isInfinity()?"":""},qh.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},qh.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},qh.prototype.add=function(){throw Error("Not supported on Montgomery curve")},qh.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},qh.prototype.mul=function(e){for(var t=(e=new Ch(e,16)).clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},qh.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},qh.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},qh.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},qh.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},qh.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var Qh=_h.assert;function Wh(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,Rh.call(this,"edwards",e),this.a=new Ch(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Ch(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Ch(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Qh(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}at(Wh,Rh);var Jh=Wh;function Yh(e,t,r,n,i){Rh.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Ch(t,16),this.y=new Ch(r,16),this.z=n?new Ch(n,16):this.curve.one,this.t=i&&new Ch(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Wh.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},Wh.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},Wh.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},Wh.prototype.pointFromX=function(e,t){(e=new Ch(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=n.redMul(i.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");var s=a.fromRed().isOdd();return(t&&!s||!t&&s)&&(a=a.redNeg()),this.point(e,a)},Wh.prototype.pointFromY=function(e,t){(e=new Ch(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=n.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},Wh.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},at(Yh,Rh.BasePoint),Wh.prototype.pointFromJSON=function(e){return Yh.fromJSON(this,e)},Wh.prototype.point=function(e,t,r,n){return new Yh(this,e,t,r,n)},Yh.fromJSON=function(e,t){return new Yh(e,t[0],t[1],t[2])},Yh.prototype.inspect=function(){return this.isInfinity()?"":""},Yh.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},Yh.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),c=i.redMul(a),u=o.redMul(s),l=i.redMul(s),d=a.redMul(o);return this.curve.point(c,u,d,l)},Yh.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),c=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(c),t=a.redMul(u.redSub(o)),r=a.redMul(c)}}else{var u=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),c=u.redSub(s).redSub(s),e=this.curve._mulC(n.redISub(u)).redMul(c),t=this.curve._mulC(u).redMul(i.redISub(o)),r=u.redMul(c)}return this.curve.point(e,t,r)},Yh.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Yh.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),u=o.redMul(a),l=s.redMul(c),d=o.redMul(c),f=a.redMul(s);return this.curve.point(u,l,f,d)},Yh.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),u=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=n.redMul(c).redMul(l);return this.curve.twisted?(t=n.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=c.redMul(u)):(t=n.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(c).redMul(u)),this.curve.point(d,t,r)},Yh.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},Yh.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},Yh.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},Yh.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},Yh.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},Yh.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Yh.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Yh.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Yh.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},Yh.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},Yh.prototype.toP=Yh.prototype.normalize,Yh.prototype.mixedAdd=Yh.prototype.add;var Zh=it((function(e,t){var r=t;r.base=Rh,r.short=zh,r.mont=Gh,r.edwards=Jh})),$h=lt.rotl32,Xh=lt.sum32,ep=lt.sum32_5,tp=bt,rp=ht.BlockHash,np=[1518500249,1859775393,2400959708,3395469782];function ip(){if(!(this instanceof ip))return new ip;rp.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}lt.inherits(ip,rp);var op=ip;ip.blockSize=512,ip.outSize=160,ip.hmacStrength=80,ip.padLength=64,ip.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),tt(e.length<=this.blockSize);for(var t=e.length;t=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var hp=fp;fp.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},fp.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=kh.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"};var yp=_h.assert;function bp(e,t){if(e instanceof bp)return e;this._importDER(e,t)||(yp(e.r&&e.s,"Signature without r or s"),this.r=new Ch(e.r,16),this.s=new Ch(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var vp=bp;function wp(){this.place=0}function Ap(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}bp.prototype._importDER=function(e,t){e=_h.toArray(e,t);var r=new wp;if(48!==e[r.place++])return!1;if(Ap(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var n=Ap(e,r),i=e.slice(r.place,n+r.place);if(r.place+=n,2!==e[r.place++])return!1;var o=Ap(e,r);if(e.length!==o+r.place)return!1;var a=e.slice(r.place,o+r.place);return 0===i[0]&&128&i[1]&&(i=i.slice(1)),0===a[0]&&128&a[1]&&(a=a.slice(1)),this.r=new Ch(i),this.s=new Ch(a),this.recoveryParam=null,!0},bp.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=Cp(t),r=Cp(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];Ep(n,t.length),(n=n.concat(t)).push(2),Ep(n,r.length);var i=n.concat(r),o=[48];return Ep(o,i.length),o=o.concat(i),_h.encode(o,e)};var xp=_h.assert;function Sp(e){if(!(this instanceof Sp))return new Sp(e);"string"==typeof e&&(xp(dp.hasOwnProperty(e),"Unknown curve "+e),e=dp[e]),e instanceof dp.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var Ip=Sp;Sp.prototype.keyPair=function(e){return new mp(this,e)},Sp.prototype.keyFromPrivate=function(e,t){return mp.fromPrivate(this,e,t)},Sp.prototype.keyFromPublic=function(e,t){return mp.fromPublic(this,e,t)},Sp.prototype.genKeyPair=function(e){e||(e={});var t=new hp({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||Th(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()});if("mont"===this.curve.type){var r=new Ch(t.generate(32));return this.keyFromPrivate(r)}for(var n=this.n.byteLength(),i=this.n.sub(new Ch(2));;)if(!((r=new Ch(t.generate(n))).cmp(i)>0))return r.iaddn(1),this.keyFromPrivate(r)},Sp.prototype._truncateToN=function(e,t,r){var n=(r=r||8*e.byteLength())-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},Sp.prototype.truncateMsg=function(e){var t;return e instanceof Uint8Array?(t=8*e.byteLength,e=this._truncateToN(new Ch(e,16),!1,t)):"string"==typeof e?(t=4*e.length,e=this._truncateToN(new Ch(e,16),!1,t)):e=this._truncateToN(new Ch(e,16)),e},Sp.prototype.sign=function(e,t,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this.truncateMsg(e);for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),a=e.toArray("be",i),s=new hp({hash:this.hash,entropy:o,nonce:a,pers:n.pers,persEnc:n.persEnc||"utf8"}),c=this.n.sub(new Ch(1)),u=0;;u++){var l=n.k?n.k(u):new Ch(s.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(c)>=0)){var d=this.g.mul(l);if(!d.isInfinity()){var f=d.getX(),h=f.umod(this.n);if(0!==h.cmpn(0)){var p=l.invm(this.n).mul(h.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var g=(d.getY().isOdd()?1:0)|(0!==f.cmp(h)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),g^=1),new vp({r:h,s:p,recoveryParam:g})}}}}}},Sp.prototype.verify=function(e,t,r,n){return r=this.keyFromPublic(r,n),t=new vp(t,"hex"),this._verify(this.truncateMsg(e),t,r)||this._verify(this._truncateToN(new Ch(e,16)),t,r)},Sp.prototype._verify=function(e,t,r){var n=t.r,i=t.s;if(n.cmpn(1)<0||n.cmp(this.n)>=0)return!1;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;var o,a=i.invm(this.n),s=a.mul(e).umod(this.n),c=a.mul(n).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(s,r.getPublic(),c)).isInfinity()&&o.eqXToP(n):!(o=this.g.mulAdd(s,r.getPublic(),c)).isInfinity()&&0===o.getX().umod(this.n).cmp(n)},Sp.prototype.recoverPubKey=function(e,t,r,n){xp((3&r)===r,"The recovery param is more than two bits"),t=new vp(t,n);var i=this.n,o=new Ch(e),a=t.r,s=t.s,c=1&r,u=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");a=u?this.curve.pointFromX(a.add(this.curve.n),c):this.curve.pointFromX(a,c);var l=t.r.invm(i),d=i.sub(o).mul(l).umod(i),f=s.mul(l).umod(i);return this.g.mulAdd(d,a,f)},Sp.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new vp(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw Error("Unable to find valid recovery factor")};var kp=_h.assert,_p=_h.parseBytes,Tp=_h.cachedProperty;function Mp(e,t){if(this.eddsa=e,t.hasOwnProperty("secret")&&(this._secret=_p(t.secret)),e.isPoint(t.pub))this._pub=t.pub;else if(this._pubBytes=_p(t.pub),this._pubBytes&&33===this._pubBytes.length&&64===this._pubBytes[0]&&(this._pubBytes=this._pubBytes.slice(1,33)),this._pubBytes&&32!==this._pubBytes.length)throw Error("Unknown point compression format")}Mp.fromPublic=function(e,t){return t instanceof Mp?t:new Mp(e,{pub:t})},Mp.fromSecret=function(e,t){return t instanceof Mp?t:new Mp(e,{secret:t})},Mp.prototype.secret=function(){return this._secret},Tp(Mp,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),Tp(Mp,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),Tp(Mp,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),Tp(Mp,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),Tp(Mp,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),Tp(Mp,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),Mp.prototype.sign=function(e){return kp(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},Mp.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},Mp.prototype.getSecret=function(e){return kp(this._secret,"KeyPair is public only"),_h.encode(this.secret(),e)},Mp.prototype.getPublic=function(e,t){return _h.encode((t?[64]:[]).concat(this.pubBytes()),e)};var Pp=Mp,jp=_h.assert,Dp=_h.cachedProperty,Op=_h.parseBytes;function Bp(e,t){this.eddsa=e,"object"!=typeof t&&(t=Op(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),jp(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof Ch&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}Dp(Bp,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),Dp(Bp,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),Dp(Bp,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),Dp(Bp,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),Bp.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Bp.prototype.toHex=function(){return _h.encode(this.toBytes(),"hex").toUpperCase()};var Np=Bp,Rp=_h.assert,Lp=_h.parseBytes;function Fp(e){if(Rp("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof Fp))return new Fp(e);e=dp[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=up.sha512}var Up=Fp;Fp.prototype.sign=function(e,t){e=Lp(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),s=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},Fp.prototype.verify=function(e,t,r){e=Lp(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},Fp.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";function n(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}r.d(t,{J:()=>n})},428953:(e,t,r)=>{"use strict";r.d(t,{T:()=>oe});var n=r(725276);const i=/^error (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;const o=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;const a=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;const s=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;function c(e){return s.test(e)}function u(e){return(0,n.Yv)(s,e)}const l=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;const d=/^fallback\(\) external(?:\s(?payable{1}))?$/;const f=/^receive\(\) external payable$/;new Set(["memory","indexed","storage","calldata"]);const h=new Set(["indexed"]),p=new Set(["calldata","memory","storage"]);class g extends Error{constructor(e,t={}){const r=t.cause instanceof g?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof g&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],"Version: abitype@1.0.7"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class m extends g{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class y extends g{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class b extends g{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class v extends g{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class w extends g{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class A extends g{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class C extends g{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class E extends g{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class x extends g{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class S extends g{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class I extends g{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class k extends g{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}const _=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function T(e,t={}){if(function(e){return a.test(e)}(e)){const r=function(e){return(0,n.Yv)(a,e)}(e);if(!r)throw new E({signature:e,type:"function"});const i=O(r.parameters),o=[],s=i.length;for(let e=0;e[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,P=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,j=/^u?int$/;function D(e,t){const r=function(e,t,r){let n="";if(r)for(const i of Object.entries(r)){if(!i)continue;let e="";for(const t of i[1])e+=`[${t.type}${t.name?`:${t.name}`:""}]`;n+=`(${i[0]}{${e}})`}return t?`${t}:${e}${n}`:e}(e,t?.type,t?.structs);if(_.has(r))return _.get(r);const i=n.wj.test(e),o=(0,n.Yv)(i?P:M,e);if(!o)throw new b({param:e});if(o.name&&function(e){return"address"===e||"bool"===e||"function"===e||"string"===e||"tuple"===e||n.BD.test(e)||n.Ge.test(e)||N.test(e)}(o.name))throw new v({param:e,name:o.name});const a=o.name?{name:o.name}:{},s="indexed"===o.modifier?{indexed:!0}:{},c=t?.structs??{};let u,l={};if(i){u="tuple";const e=O(o.type),t=[],r=e.length;for(let n=0;n[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/;function L(e,t,r=new Set){const i=[],o=e.length;for(let a=0;avoid 0!==e)).length>0)))}({request:l})&&!n)try{return await async function(e,t){const{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:i,blockTag:o="latest",data:a,multicallAddress:s,to:c}=t;let u=s;if(!u){if(!e.chain)throw new G.YE;u=(0,Y.M)({blockNumber:i,chain:e.chain,contract:"multicall3"})}const l=i?(0,Z.cK)(i):void 0,d=l||o,{schedule:f}=(0,re.u)({id:`${e.uid}.${d}`,wait:n,shouldSplitBatch(e){const t=e.reduce(((e,{data:t})=>e+(t.length-2)),0);return t>2*r},fn:async t=>{const r=t.map((e=>({allowFailure:!0,callData:e.data,target:e.to}))),n=(0,J.p)({abi:z.v2,args:[r],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{data:n,to:u},d]});return(0,Q.e)({abi:z.v2,args:[r],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:h,success:p}]=await f({data:a,to:c});if(!p)throw new q.$S({data:h});return"0x"===h?{data:void 0}:{data:h}}(e,{...l,blockNumber:o,blockTag:a})}catch(_){if(!(_ instanceof G.YE||_ instanceof G.rj))throw _}const d=await e.request({method:"eth_call",params:n?[l,r,n]:[l,r]});return"0x"===d?{data:void 0}:{data:d}}catch(_){const n=function(e){if(!(e instanceof K.C))return;const t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(_),{offchainLookup:i,offchainLookupSignature:o}=await r.e(51190).then(r.bind(r,551190));if(!1!==e.ccipRead&&n?.slice(0,10)===o&&v)return{data:await i(e,{data:n,to:v})};if(I&&"0x101bb98d"===n?.slice(0,10))throw new q.Po({factory:d});throw function(e,{docsPath:t,...r}){const n=(()=>{const t=(0,X.l)(e,r);return t instanceof $.RM?e:t})();return new q.zX(n,{docsPath:t,...r})}(_,{...t,account:E,chain:e.chain})}}},194823:(e,t,r)=>{"use strict";r.d(t,{Ag:()=>o,Rm:()=>c,SJ:()=>s,_:()=>u,oX:()=>a,v2:()=>n});const n=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],i=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],o=[...i,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],a=[...i,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],s=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],c=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],u=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}]},945945:(e,t,r)=>{"use strict";r.d(t,{LX:()=>n,WN:()=>i,nP:()=>o});const n="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",i="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",o="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},24453:(e,t,r)=>{"use strict";r.d(t,{J9:()=>o,Mc:()=>i,fD:()=>n});const n={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},o={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},270638:(e,t,r)=>{"use strict";r.d(t,{eL:()=>n,sz:()=>i});const n={gwei:9,wei:18},i={ether:-9,wei:9}},137372:(e,t,r)=>{"use strict";r.d(t,{BI:()=>w,Iy:()=>c,Iz:()=>y,MR:()=>b,M_:()=>m,Nc:()=>l,O:()=>u,Wq:()=>h,YE:()=>f,YF:()=>s,YW:()=>a,_z:()=>p,d_:()=>I,dm:()=>S,fo:()=>A,gH:()=>d,j:()=>x,kE:()=>g,l3:()=>C,nK:()=>E,nM:()=>v});var n=r(895167),i=r(885182),o=r(345765);class a extends o.C{constructor({docsPath:e}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:e,name:"AbiConstructorNotFoundError"})}}class s extends o.C{constructor({docsPath:e}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}o.C;class c extends o.C{constructor({data:e,params:t,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.A)(t,{includeName:!0})})`,`Data: ${e} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}class u extends o.C{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class l extends o.C{constructor({expectedLength:e,givenLength:t,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${e}`,`Given length: ${t}`].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends o.C{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.E)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class f extends o.C{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}o.C;o.C;class h extends o.C{constructor(e,{docsPath:t}){super([`Encoded error signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends o.C{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class g extends o.C{constructor(e,{docsPath:t}){super([`Encoded event signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class m extends o.C{constructor(e,{docsPath:t}={}){super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:t,name:"AbiEventNotFoundError"})}}class y extends o.C{constructor(e,{docsPath:t}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t,name:"AbiFunctionNotFoundError"})}}class b extends o.C{constructor(e,{docsPath:t}){super([`Function "${e}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}o.C;class v extends o.C{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,n.B)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,n.B)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class w extends o.C{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class A extends o.C{constructor({abiItem:e,data:t,params:r,size:i}){super([`Data size of ${i} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.A)(r,{includeName:!0})})`,`Data: ${t} (${i} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=i}}class C extends o.C{constructor({abiItem:e,param:t}){super([`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.B)(e,{includeName:!0})}".`].join("\n"),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class E extends o.C{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t,name:"InvalidAbiEncodingType"})}}class x extends o.C{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t,name:"InvalidAbiDecodingType"})}}class S extends o.C{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}}class I extends o.C{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}o.C},14306:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(345765);class i extends n.C{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},345765:(e,t,r)=>{"use strict";r.d(t,{C:()=>o});const n="2.21.55";let i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${n}`};class o extends Error{constructor(e,t={}){const r=t.cause instanceof o?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof o&&t.cause.docsPath||t.docsPath,s=i.getDocsUrl?.({...t,docsPath:a});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...i.version?[`Version: ${i.version}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=a,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=n}walk(e){return a(this,e)}}function a(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e&&void 0!==e.cause?a(e.cause,t):t?null:e}},398703:(e,t,r)=>{"use strict";r.d(t,{EH:()=>o,YE:()=>s,jF:()=>a,rj:()=>i});var n=r(345765);class i extends n.C{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class o extends n.C{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} \u2013 ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} \u2013 ${e.name}`],name:"ChainMismatchError"})}}class a extends n.C{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join("\n"),{name:"ChainNotFoundError"})}}class s extends n.C{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}n.C},453513:(e,t,r)=>{"use strict";r.d(t,{zX:()=>y,bG:()=>b,M:()=>v,rR:()=>w,Po:()=>A,$S:()=>C});var n=r(413033),i=r(24453),o=r(815462),a=r(895167),s=r(218463);function c({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map(((e,r)=>`${n&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,s.A)(t[r]):t[r]}`)).join(", ")})`}var u=r(284586),l=r(149436),d=r(579670),f=r(137372),h=r(345765),p=r(136883),g=r(148990),m=r(321163);class y extends h.C{constructor(e,{account:t,docsPath:r,chain:i,data:o,gas:a,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:f,to:h,value:m,stateOverride:y}){const b=t?(0,n.J)(t):void 0;let v=(0,g.aO)({from:b?.address,to:h,value:void 0!==m&&`${(0,l.c)(m)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:a,gasPrice:void 0!==s&&`${(0,d.Q)(s)} gwei`,maxFeePerGas:void 0!==c&&`${(0,d.Q)(c)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,d.Q)(u)} gwei`,nonce:f});y&&(v+=`\n${(0,p.uj)(y)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class b extends h.C{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:o,sender:s}){const l=(0,u.iY)({abi:t,args:r,name:o}),d=l?c({abiItem:l,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,a.B)(l,{includeName:!0}):void 0,h=(0,g.aO)({address:n&&(0,m.R)(n),function:f,args:d&&"()"!==d&&`${[...Array(o?.length??0).keys()].map((()=>" ")).join("")}${d}`,sender:s});super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],h&&"Contract Call:",h].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=o,this.sender=s}}class v extends h.C{constructor({abi:e,data:t,functionName:r,message:n}){let s,u,l,d,h;if(t&&"0x"!==t)try{u=(0,o.W)({abi:e,data:t});const{abiItem:r,errorName:n,args:s}=u;if("Error"===n)d=s[0];else if("Panic"===n){const[e]=s;d=i.fD[e]}else{const e=r?(0,a.B)(r,{includeName:!0}):void 0,t=r&&s?c({abiItem:r,args:s,includeFunctionName:!1,includeName:!1}):void 0;l=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map((()=>" ")).join("")}${t}`:""]}}catch(p){s=p}else n&&(d=n);s instanceof f.Wq&&(h=s.signature,l=[`Unable to decode signature "${h}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${h}.`]),super(d&&"execution reverted"!==d||h?[`The contract function "${r}" reverted with the following ${h?"signature":"reason"}:`,d||h].join("\n"):`The contract function "${r}" reverted.`,{cause:s,metaMessages:l,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=u,this.reason=d,this.signature=h}}class w extends h.C{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class A extends h.C{constructor({factory:e}){super("Deployment for counterfactual contract call failed"+(e?` for factory "${e}".`:""),{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class C extends h.C{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},858146:(e,t,r)=>{"use strict";r.d(t,{B4:()=>i,SK:()=>o,hX:()=>a});var n=r(345765);class i extends n.C{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class o extends n.C{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class a extends n.C{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},836440:(e,t,r)=>{"use strict";r.d(t,{Fl:()=>o,NV:()=>a,ii:()=>i});var n=r(345765);class i extends n.C{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class o extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class a extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}},94317:(e,t,r)=>{"use strict";r.d(t,{H2:()=>a,Ty:()=>i,u:()=>s,xO:()=>o});var n=r(345765);class i extends n.C{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class o extends n.C{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class a extends n.C{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}n.C;class s extends n.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},92592:(e,t,r)=>{"use strict";r.d(t,{A7:()=>o,BG:()=>a,Fo:()=>h,K0:()=>c,Oh:()=>u,RM:()=>m,jj:()=>s,k5:()=>d,lN:()=>g,lY:()=>f,uC:()=>p,vW:()=>l});var n=r(579670),i=r(345765);class o extends i.C{constructor({cause:e,message:t}={}){const r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class a extends i.C{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.Q)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class s extends i.C{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.Q)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class c extends i.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u extends i.C{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class l extends i.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.C{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class f extends i.C{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class h extends i.C{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.C{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class g extends i.C{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.Q)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.Q)(r)} gwei`:""}).`].join("\n"),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(g,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class m extends i.C{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}},176595:(e,t,r)=>{"use strict";r.d(t,{Ci:()=>a,J8:()=>s,MU:()=>c});var n=r(218463),i=r(345765),o=r(321163);class a extends i.C{constructor({body:e,cause:t,details:r,headers:i,status:a,url:s}){super("HTTP request failed.",{cause:t,details:r,metaMessages:[a&&`Status: ${a}`,`URL: ${(0,o.I)(s)}`,e&&`Request body: ${(0,n.A)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=i,this.status=a,this.url=s}}i.C;class s extends i.C{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.I)(r)}`,`Request body: ${(0,n.A)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}i.C;class c extends i.C{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,o.I)(t)}`,`Request body: ${(0,n.A)(e)}`],name:"TimeoutError"})}}},136883:(e,t,r)=>{"use strict";r.d(t,{Hi:()=>i,ft:()=>o,uj:()=>s});var n=r(345765);class i extends n.C{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class o extends n.C{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function a(e){return e.reduce(((e,{slot:t,value:r})=>`${e} ${t}: ${r}\n`),"")}function s(e){return e.reduce(((e,{address:t,...r})=>{let n=`${e} ${t}:\n`;return r.nonce&&(n+=` nonce: ${r.nonce}\n`),r.balance&&(n+=` balance: ${r.balance}\n`),r.code&&(n+=` code: ${r.code}\n`),r.state&&(n+=" state:\n",n+=a(r.state)),r.stateDiff&&(n+=" stateDiff:\n",n+=a(r.stateDiff)),n})," State Override:\n").slice(0,-1)}},148990:(e,t,r)=>{"use strict";r.d(t,{$s:()=>u,Kc:()=>d,Kz:()=>l,Vg:()=>c,WA:()=>f,aO:()=>a,n3:()=>s});var n=r(149436),i=r(579670),o=r(345765);function a(e){const t=Object.entries(e).map((([e,t])=>void 0===t||!1===t?null:[e,t])).filter(Boolean),r=t.reduce(((e,[t])=>Math.max(e,t.length)),0);return t.map((([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`)).join("\n")}class s extends o.C{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n"),{name:"FeeConflictError"})}}o.C;class c extends o.C{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}o.C;o.C;o.C;class u extends o.C{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:c,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){const g=a({chain:o&&`${o?.name} (id: ${o?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,n.c)(p)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==u&&`${(0,i.Q)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.Q)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.Q)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",g].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class l extends o.C{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let o="Transaction";r&&void 0!==i&&(o=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(o=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(o=`Transaction at block number "${t}" at index "${i}"`),n&&(o=`Transaction with hash "${n}"`),super(`${o} could not be found.`,{name:"TransactionNotFoundError"})}}class d extends o.C{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class f extends o.C{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},321163:(e,t,r)=>{"use strict";r.d(t,{I:()=>i,R:()=>n});const n=e=>e,i=e=>e},541821:(e,t,r)=>{"use strict";r.d(t,{n:()=>b});var n=r(137372),i=r(964569),o=r(835834),a=r(885182),s=r(993577),c=r(38583),u=r(94317),l=r(6675),d=r(584192);function f(e,t={}){void 0!==t.size&&(0,l.Sl)(e,{size:t.size});const r=(0,d.My)(e,t);return(0,l.uU)(r,t)}function h(e,t={}){let r=e;if(void 0!==t.size&&((0,l.Sl)(r,{size:t.size}),r=(0,c.B)(r)),r.length>1||r[0]>1)throw new u.xO(r);return Boolean(r[0])}function p(e,t={}){void 0!==t.size&&(0,l.Sl)(e,{size:t.size});const r=(0,d.My)(e,t);return(0,l.ME)(r,t)}function g(e,t={}){let r=e;return void 0!==t.size&&((0,l.Sl)(r,{size:t.size}),r=(0,c.B)(r,{dir:"right"})),(new TextDecoder).decode(r)}var m=r(644706),y=r(794531);function b(e,t){const r="string"==typeof t?(0,m.aT)(t):t,i=(0,o.l)(r);if(0===(0,a.E)(r)&&e.length>0)throw new n.O;if((0,a.E)(t)&&(0,a.E)(t)<32)throw new n.Iy({data:"string"==typeof t?t:(0,d.My)(t),params:e,size:(0,a.E)(t)});let s=0;const c=[];for(let n=0;n!e)),i=n?[]:{};let o=0;if(C(t)){const a=r+p(e.readBytes(A));for(let r=0;r48?f(i,{signed:r}):p(i,{signed:r}),32]}(e,t);if("string"===t.type)return function(e,{staticPosition:t}){const r=p(e.readBytes(32)),n=t+r;e.setPosition(n);const i=p(e.readBytes(32));if(0===i)return e.setPosition(t+32),["",32];const o=e.readBytes(i,32),a=g((0,c.B)(o));return e.setPosition(t+32),[a,32]}(e,{staticPosition:r});throw new n.j(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const w=32,A=32;function C(e){const{type:t}=e;if("string"===t)return!0;if("bytes"===t)return!0;if(t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(C);const r=(0,y.k)(e.type);return!(!r||!C({...e,type:r[1]}))}},815462:(e,t,r)=>{"use strict";r.d(t,{W:()=>u});var n=r(24453),i=r(137372),o=r(993577),a=r(122599),s=r(541821),c=r(895167);function u(e){const{abi:t,data:r}=e,u=(0,o.di)(r,0,4);if("0x"===u)throw new i.O;const l=[...t||[],n.Mc,n.J9].find((e=>"error"===e.type&&u===(0,a.V)((0,c.B)(e))));if(!l)throw new i.Wq(u,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,s.n)(l.inputs,(0,o.di)(r,4)):void 0,errorName:l.name}}},446652:(e,t,r)=>{"use strict";r.d(t,{e:()=>s});var n=r(137372),i=r(541821),o=r(284586);const a="/docs/contract/decodeFunctionResult";function s(e){const{abi:t,args:r,functionName:s,data:c}=e;let u=t[0];if(s){const e=(0,o.iY)({abi:t,args:r,name:s});if(!e)throw new n.Iz(s,{docsPath:a});u=e}if("function"!==u.type)throw new n.Iz(void 0,{docsPath:a});if(!u.outputs)throw new n.MR(u.name,{docsPath:a});const l=(0,i.n)(u.outputs,c);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}},794531:(e,t,r)=>{"use strict";r.d(t,{h:()=>p,k:()=>y});var n=r(137372),i=r(14306),o=r(345765),a=r(94317),s=r(529873),c=r(825419),u=r(540586),l=r(885182),d=r(993577),f=r(584192),h=r(158213);function p(e,t){if(e.length!==t.length)throw new n.YE({expectedLength:e.length,givenLength:t.length});const r=function({params:e,values:t}){const r=[];for(let n=0;n0?(0,c.xW)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,c.xW)(a.map((({encoded:e})=>e)))}}(t,{length:i,param:{...e,type:o}})}if("tuple"===e.type)return function(e,{param:t}){let r=!1;const n=[];for(let i=0;ie)))}}(t,{param:e});if("address"===e.type)return function(e){if(!(0,s.P)(e))throw new i.M({address:e});return{dynamic:!1,encoded:(0,u.db)(e.toLowerCase())}}(t);if("bool"===e.type)return function(e){if("boolean"!=typeof e)throw new o.C(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,u.db)((0,f.$P)(e))}}(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const r=e.type.startsWith("int"),[,,n="256"]=h.Ge.exec(e.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){const n=2n**(BigInt(r)-(t?1n:0n))-1n,i=t?-n-1n:0n;if(e>n||e{"use strict";r.d(t,{m:()=>s});var n=r(137372),i=r(825419),o=r(794531);const a="/docs/contract/encodeDeployData";function s(e){const{abi:t,args:r,bytecode:s}=e;if(!r||0===r.length)return s;const c=t.find((e=>"type"in e&&"constructor"===e.type));if(!c)throw new n.YW({docsPath:a});if(!("inputs"in c))throw new n.YF({docsPath:a});if(!c.inputs||0===c.inputs.length)throw new n.YF({docsPath:a});const u=(0,o.h)(c.inputs,r);return(0,i.aP)([s,u])}},277330:(e,t,r)=>{"use strict";r.d(t,{p:()=>l});var n=r(825419),i=r(794531),o=r(137372),a=r(122599),s=r(895167),c=r(284586);const u="/docs/contract/encodeFunctionData";function l(e){const{args:t}=e,{abi:r,functionName:l}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){const{abi:t,args:r,functionName:n}=e;let i=t[0];if(n){const e=(0,c.iY)({abi:t,args:r,name:n});if(!e)throw new o.Iz(n,{docsPath:u});i=e}if("function"!==i.type)throw new o.Iz(void 0,{docsPath:u});return{abi:[i],functionName:(0,a.V)((0,s.B)(i))}}(e),d=r[0],f=l,h="inputs"in d&&d.inputs?(0,i.h)(d.inputs,t??[]):void 0;return(0,n.aP)([f,h??"0x"])}},895167:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,B:()=>i});var n=r(137372);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.d_(e.type);return`${e.name}(${o(e.inputs,{includeName:t})})`}function o(e,{includeName:t=!1}={}){return e?e.map((e=>function(e,{includeName:t}){if(e.type.startsWith("tuple"))return`(${o(e.components,{includeName:t})})${e.type.slice(5)}`;return e.type+(t&&e.name?` ${e.name}`:"")}(e,{includeName:t}))).join(t?", ":","):""}},284586:(e,t,r)=>{"use strict";r.d(t,{iY:()=>c});var n=r(137372),i=r(646394),o=r(529873),a=r(809777),s=r(122599);function c(e){const{abi:t,args:r=[],name:o}=e,c=(0,i.q)(o,{strict:!1}),d=t.filter((e=>c?"function"===e.type?(0,s.V)(e)===o:"event"===e.type&&(0,a.h)(e)===o:"name"in e&&e.name===o));if(0===d.length)return;if(1===d.length)return d[0];let f;for(const i of d){if(!("inputs"in i))continue;if(!r||0===r.length){if(!i.inputs||0===i.inputs.length)return i;continue}if(!i.inputs)continue;if(0===i.inputs.length)continue;if(i.inputs.length!==r.length)continue;if(r.every(((e,t)=>{const r="inputs"in i&&i.inputs[t];return!!r&&u(e,r)}))){if(f&&"inputs"in f&&f.inputs){const e=l(i.inputs,f.inputs,r);if(e)throw new n.nM({abiItem:i,type:e[0]},{abiItem:f,type:e[1]})}f=i}}return f||d[0]}function u(e,t){const r=typeof e,n=t.type;switch(n){case"address":return(0,o.P)(e,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:return"tuple"===n&&"components"in t?Object.values(t.components).every(((t,r)=>u(Object.values(e)[r],t))):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?"number"===r||"bigint"===r:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?"string"===r||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)&&(Array.isArray(e)&&e.every((e=>u(e,{...t,type:n.replace(/(\[[0-9]{0,}\])$/,"")}))))}}function l(e,t,r){for(const n in e){const i=e[n],a=t[n];if("tuple"===i.type&&"tuple"===a.type&&"components"in i&&"components"in a)return l(i.components,a.components,r[n]);const s=[i.type,a.type];if(!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&(0,o.P)(r[n],{strict:!1}))return s}}},964569:(e,t,r)=>{"use strict";r.d(t,{b:()=>l,o:()=>u});var n=r(14306),i=r(644706),o=r(282040),a=r(676447),s=r(529873);const c=new a.A(8192);function u(e,t){if(c.has(`${e}.${t}`))return c.get(`${e}.${t}`);const r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,o.S)((0,i.Af)(r),"bytes"),a=(t?r.substring(`${t}0x`.length):r).split("");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&a[i]&&(a[i]=a[i].toUpperCase()),(15&n[i>>1])>=8&&a[i+1]&&(a[i+1]=a[i+1].toUpperCase());const s=`0x${a.join("")}`;return c.set(`${e}.${t}`,s),s}function l(e,t){if(!(0,s.P)(e,{strict:!1}))throw new n.M({address:e});return u(e,t)}},529873:(e,t,r)=>{"use strict";r.d(t,{P:()=>s});var n=r(676447),i=r(964569);const o=/^0x[a-fA-F0-9]{40}$/,a=new n.A(8192);function s(e,t){const{strict:r=!0}=t??{},n=`${e}.${r}`;if(a.has(n))return a.get(n);const s=!(!o.test(e)||e.toLowerCase()!==e&&r&&(0,i.o)(e)!==e);return a.set(n,s),s}},732589:(e,t,r)=>{"use strict";r.d(t,{h:()=>o});var n=r(14306),i=r(529873);function o(e,t){if(!(0,i.P)(e,{strict:!1}))throw new n.M({address:e});if(!(0,i.P)(t,{strict:!1}))throw new n.M({address:t});return e.toLowerCase()===t.toLowerCase()}},969985:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(398703);function i({blockNumber:e,chain:t,contract:r}){const i=t?.contracts?.[r];if(!i)throw new n.rj({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new n.rj({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},835834:(e,t,r)=>{"use strict";r.d(t,{l:()=>o});var n=r(858146);const i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new n.hX({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.SK({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.B4({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new n.B4({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function o(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(i);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}},825419:(e,t,r)=>{"use strict";function n(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(const i of e)t+=i.length;const r=new Uint8Array(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}(e)}function i(e){return`0x${e.reduce(((e,t)=>e+t.replace("0x","")),"")}`}r.d(t,{aP:()=>i,xW:()=>n})},646394:(e,t,r)=>{"use strict";function n(e,{strict:t=!0}={}){return!!e&&("string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}r.d(t,{q:()=>n})},540586:(e,t,r)=>{"use strict";r.d(t,{db:()=>o,eV:()=>i});var n=r(836440);function i(e,{dir:t,size:r=32}={}){return"string"==typeof e?o(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.Fl({size:e.length,targetSize:r,type:"bytes"});const i=new Uint8Array(r);for(let n=0;n2*r)throw new n.Fl({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}},885182:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(646394);function i(e){return(0,n.q)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},993577:(e,t,r)=>{"use strict";r.d(t,{A1:()=>u,di:()=>a,iN:()=>l});var n=r(836440),i=r(646394),o=r(885182);function a(e,t,r,{strict:n}={}){return(0,i.q)(e,{strict:!1})?l(e,t,r,{strict:n}):u(e,t,r,{strict:n})}function s(e,t){if("number"==typeof t&&t>0&&t>(0,o.E)(e)-1)throw new n.ii({offset:t,position:"start",size:(0,o.E)(e)})}function c(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,o.E)(e)!==r-t)throw new n.ii({offset:r,position:"end",size:(0,o.E)(e)})}function u(e,t,r,{strict:n}={}){s(e,t);const i=e.slice(t,r);return n&&c(i,t,r),i}function l(e,t,r,{strict:n}={}){s(e,t);const i=`0x${e.replace("0x","").slice(2*(t??0),2*(r??e.length))}`;return n&&c(i,t,r),i}},38583:(e,t,r)=>{"use strict";function n(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let i=0;in})},6675:(e,t,r)=>{"use strict";r.d(t,{ME:()=>u,Nx:()=>c,Sl:()=>a,uU:()=>s});var n=r(94317),i=r(885182),o=r(38583);function a(e,{size:t}){if((0,i.E)(e)>t)throw new n.u({givenSize:(0,i.E)(e),maxSize:t})}function s(e,t={}){const{signed:r}=t;t.size&&a(e,{size:t.size});const n=BigInt(e);if(!r)return n;const i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e,t={}){let r=e;if(t.size&&(a(r,{size:t.size}),r=(0,o.B)(r)),"0x00"===(0,o.B)(r))return!1;if("0x01"===(0,o.B)(r))return!0;throw new n.H2(r)}function u(e,t={}){return Number(s(e,t))}},644706:(e,t,r)=>{"use strict";r.d(t,{Af:()=>h,ZJ:()=>u,aT:()=>f});var n=r(345765),i=r(646394),o=r(540586),a=r(6675),s=r(584192);const c=new TextEncoder;function u(e,t={}){return"number"==typeof e||"bigint"==typeof e?function(e,t){const r=(0,s.cK)(e,t);return f(r)}(e,t):"boolean"==typeof e?function(e,t={}){const r=new Uint8Array(1);if(r[0]=Number(e),"number"==typeof t.size)return(0,a.Sl)(r,{size:t.size}),(0,o.eV)(r,{size:t.size});return r}(e,t):(0,i.q)(e)?f(e,t):h(e,t)}const l={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=l.zero&&e<=l.nine?e-l.zero:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function f(e,t={}){let r=e;t.size&&((0,a.Sl)(r,{size:t.size}),r=(0,o.eV)(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);const s=i.length/2,c=new Uint8Array(s);for(let o=0,a=0;o{"use strict";r.d(t,{$P:()=>c,My:()=>u,cK:()=>l,i3:()=>f,nj:()=>s});var n=r(94317),i=r(540586),o=r(6675);const a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e,t={}){return"number"==typeof e||"bigint"==typeof e?l(e,t):"string"==typeof e?f(e,t):"boolean"==typeof e?c(e,t):u(e,t)}function c(e,t={}){const r=`0x${Number(e)}`;return"number"==typeof t.size?((0,o.Sl)(r,{size:t.size}),(0,i.eV)(r,{size:t.size})):r}function u(e,t={}){let r="";for(let i=0;is||a{"use strict";r.d(t,{l:()=>o});var n=r(345765),i=r(92592);function o(e,t){const r=(e.details||"").toLowerCase(),o=e instanceof n.C?e.walk((e=>e?.code===i.A7.code)):e;return o instanceof n.C?new i.A7({cause:e,message:o.details}):i.A7.nodeMessage.test(r)?new i.A7({cause:e,message:e.details}):i.BG.nodeMessage.test(r)?new i.BG({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.jj.nodeMessage.test(r)?new i.jj({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.K0.nodeMessage.test(r)?new i.K0({cause:e,nonce:t?.nonce}):i.Oh.nodeMessage.test(r)?new i.Oh({cause:e,nonce:t?.nonce}):i.vW.nodeMessage.test(r)?new i.vW({cause:e,nonce:t?.nonce}):i.k5.nodeMessage.test(r)?new i.k5({cause:e}):i.lY.nodeMessage.test(r)?new i.lY({cause:e,gas:t?.gas}):i.Fo.nodeMessage.test(r)?new i.Fo({cause:e,gas:t?.gas}):i.uC.nodeMessage.test(r)?new i.uC({cause:e}):i.lN.nodeMessage.test(r)?new i.lN({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.RM({cause:e})}},699789:(e,t,r)=>{"use strict";function n(e,{format:t}){if(!t)return{};const r={};return function t(n){const i=Object.keys(n);for(const o of i)o in e&&(r[o]=e[o]),n[o]&&"object"==typeof n[o]&&!Array.isArray(n[o])&&t(n[o])}(t(e||{})),r}r.d(t,{o:()=>n})},857671:(e,t,r)=>{"use strict";r.d(t,{Bv:()=>o});var n=r(584192);const i={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function o(e){const t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map((e=>({address:e.contractAddress,r:e.r,s:e.s,chainId:(0,n.cK)(e.chainId),nonce:(0,n.cK)(e.nonce),...void 0!==e.yParity?{yParity:(0,n.cK)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,n.cK)(e.v)}:{}})))),void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map((e=>(0,n.My)(e))):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=(0,n.cK)(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=(0,n.cK)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,n.cK)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=(0,n.cK)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,n.cK)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=(0,n.cK)(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=i[e.type]),void 0!==e.value&&(t.value=(0,n.cK)(e.value)),t}},282040:(e,t,r)=>{"use strict";r.d(t,{S:()=>s});var n=r(563741),i=r(646394),o=r(644706),a=r(584192);function s(e,t){const r=t||"hex",s=(0,n.lY)((0,i.q)(e,{strict:!1})?(0,o.ZJ)(e):e);return"bytes"===r?s:(0,a.nj)(s)}},809777:(e,t,r)=>{"use strict";r.d(t,{h:()=>n});const n=r(761569).k},122599:(e,t,r)=>{"use strict";r.d(t,{V:()=>o});var n=r(993577),i=r(761569);const o=e=>(0,n.di)((0,i.k)(e),0,4)},761569:(e,t,r)=>{"use strict";r.d(t,{k:()=>f});var n=r(644706),i=r(282040);const o=e=>(0,i.S)((0,n.ZJ)(e));var a=r(725276);const s=/^tuple(?(\[(\d*)\])*)$/;function c(e){let t=e.type;if(s.test(e.type)&&"components"in e){t="(";const r=e.components.length;for(let i=0;i{var t;return function(e){let t=!0,r="",n=0,i="",o=!1;for(let a=0;a{"use strict";r.d(t,{A:()=>n});class n extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){const e=this.keys().next().value;e&&this.delete(e)}return this}}},552167:(e,t,r)=>{"use strict";r.d(t,{u:()=>o});var n=r(9091);const i=new Map;function o({fn:e,id:t,shouldSplitBatch:r,wait:o=0,sort:a}){const s=async()=>{const t=u();c();const r=t.map((({args:e})=>e));0!==r.length&&e(r).then((e=>{a&&Array.isArray(e)&&e.sort(a);for(let r=0;r{for(let r=0;ri.delete(t),u=()=>i.get(t)||[],l=e=>i.set(t,[...u(),e]);return{flush:c,async schedule(e){const{promise:t,resolve:i,reject:a}=(0,n.Y)(),c=r?.([...u().map((({args:e})=>e)),e]);c&&s();return u().length>0?(l({args:e,resolve:i,reject:a}),t):(l({args:e,resolve:i,reject:a}),setTimeout(s,o),t)}}}},9091:(e,t,r)=>{"use strict";function n(){let e=()=>{},t=()=>{};return{promise:new Promise(((r,n)=>{e=r,t=n})),resolve:e,reject:t}}r.d(t,{Y:()=>n})},158213:(e,t,r)=>{"use strict";r.d(t,{BD:()=>n,Ge:()=>i});const n=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,i=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/},865547:(e,t,r)=>{"use strict";r.d(t,{yH:()=>l});var n=r(14306),i=r(836440),o=r(136883),a=r(529873),s=r(584192);function c(e){if(e&&0!==e.length)return e.reduce(((e,{slot:t,value:r})=>{if(66!==t.length)throw new i.NV({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new i.NV({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e}),{})}function u(e){const{balance:t,nonce:r,state:n,stateDiff:i,code:a}=e,u={};if(void 0!==a&&(u.code=a),void 0!==t&&(u.balance=(0,s.cK)(t)),void 0!==r&&(u.nonce=(0,s.cK)(r)),void 0!==n&&(u.state=c(n)),void 0!==i){if(u.state)throw new o.ft;u.stateDiff=c(i)}return u}function l(e){if(!e)return;const t={};for(const{address:r,...i}of e){if(!(0,a.P)(r,{strict:!1}))throw new n.M({address:r});if(t[r])throw new o.Hi({address:r});t[r]=u(i)}return t}},218463:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(e,t,r)=>JSON.stringify(e,((e,r)=>{const n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n}),r)},664055:(e,t,r)=>{"use strict";r.d(t,{c:()=>u});var n=r(413033);const i=2n**256n-1n;var o=r(14306),a=r(92592),s=r(148990),c=r(529873);function u(e){const{account:t,gasPrice:r,maxFeePerGas:u,maxPriorityFeePerGas:l,to:d}=e,f=t?(0,n.J)(t):void 0;if(f&&!(0,c.P)(f.address))throw new o.M({address:f.address});if(d&&!(0,c.P)(d))throw new o.M({address:d});if(void 0!==r&&(void 0!==u||void 0!==l))throw new s.n3;if(u&&u>i)throw new a.BG({maxFeePerGas:u});if(l&&u&&l>u)throw new a.lN({maxFeePerGas:u,maxPriorityFeePerGas:l})}},149436:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(270638),i=r(287135);function o(e,t="wei"){return(0,i.J)(e,n.eL[t])}},579670:(e,t,r)=>{"use strict";r.d(t,{Q:()=>o});var n=r(270638),i=r(287135);function o(e,t="wei"){return(0,i.J)(e,n.sz[t])}},287135:(e,t,r)=>{"use strict";function n(e,t){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[i,o]=[r.slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${o?`.${o}`:""}`}r.d(t,{J:()=>n})},207065:e=>{"use strict";e.exports=JSON.parse('{"name":"@pushprotocol/restapi","version":"1.7.20","type":"commonjs","publishConfig":{"registry":"https://registry.npmjs.org/"},"peerDependencies":{"ethers":"^5.0.0 || ^6.0.0"},"peerDependenciesMeta":{"ethers":{"optional":true}},"dependencies":{"@metamask/eth-sig-util":"^5.0.2","buffer":"^6.0.3","crypto-js":"^4.1.1","immer":"^10.0.2","joi":"^17.9.2","livepeer":"^2.5.8","lru-cache":"^10.1.0","openpgp":"^5.5.0","simple-peer":"^9.11.1","socket.io-client":"^4.7.2","video-stream-merger":"^4.0.1","viem":"^1.20.3","axios":"^0.27.2","uuid":"^9.0.0","unique-names-generator":"^4.7.1","tslib":"^2.3.0"},"scripts":{"test":"TS_NODE_PROJECT=\'./tsconfig.mocha.json\' NODE_OPTIONS=\'--loader ts-node/esm\' DOTENV_CONFIG_PATH=\'./tests/.env\' mocha -r ts-node/register -r dotenv/config \'tests/**/*.test.ts\' --timeout 1200000 --require tests/root.ts --serial"},"devDependencies":{"@types/chai":"^4.3.4","@types/chai-as-promised":"^7.1.5","@types/crypto-js":"^4.1.1","@types/mocha":"^10.0.1","chai":"^4.3.7","chai-as-promised":"^7.1.1","envfile":"^7.1.0","mocha":"^10.2.0","mocha-typescript":"^1.1.17","ts-node":"^10.9.1","typescript":"^5.0.2"},"main":"./src/index.js","typings":"./src/index.d.ts"}')},110780:e=>{"use strict";e.exports=JSON.parse('{"version":"2.1.1","information":{"description":"This file desribes all resolver keys with a defined meaning and related metadata used by Unstoppable Domains UNS Registry","documentation":"https://docs.unstoppabledomains.com/domain-registry-essentials/records-reference","contribution":"https://github.com/unstoppabledomains/uns/blob/main/resolver-keys.json"},"keys":{"crypto.BTC.address":{"deprecatedKeyName":"BTC","deprecated":false,"validationRegex":"^bc1[ac-hj-np-z02-9]{6,87}$|^[13][a-km-zA-HJ-NP-Z1-9]{25,39}$"},"crypto.ETH.address":{"deprecatedKeyName":"ETH","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.ZIL.address":{"deprecatedKeyName":"ZIL","deprecated":false,"validationRegex":"^zil1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}$"},"crypto.LTC.address":{"deprecatedKeyName":"LTC","deprecated":false,"validationRegex":"^[LM3][a-km-zA-HJ-NP-Z1-9]{26,33}$|^ltc1[a-zA-HJ-NP-Z0-9]{25,39}$"},"crypto.ETC.address":{"deprecatedKeyName":"ETC","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.EQL.address":{"deprecatedKeyName":"EQL","deprecated":false,"validationRegex":"^bnb[0-9a-z]{39}$"},"crypto.LINK.address":{"deprecatedKeyName":"LINK","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.USDC.address":{"deprecatedKeyName":"USDC","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.BAT.address":{"deprecatedKeyName":"BAT","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.REP.address":{"deprecatedKeyName":"REP","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.ZRX.address":{"deprecatedKeyName":"ZRX","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.DAI.address":{"deprecatedKeyName":"DAI","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.BCH.address":{"deprecatedKeyName":"BCH","deprecated":false,"validationRegex":"^[13][a-km-zA-HJ-NP-Z1-9]{33}$|^((bitcoincash|bchreg|bchtest):)?(q|p)[a-z0-9]{41}$|^((BITCOINCASH:)?(Q|P)[A-Z0-9]{41})$"},"crypto.XMR.address":{"deprecatedKeyName":"XMR","deprecated":false,"validationRegex":"^[48]{1}[0-9AB][1-9A-HJ-NP-Za-km-z]{93}$"},"crypto.DASH.address":{"deprecatedKeyName":"DASH","deprecated":false,"validationRegex":"^X[1-9A-HJ-NP-Za-km-z]{33}$"},"crypto.NEO.address":{"deprecatedKeyName":"NEO","deprecated":false,"validationRegex":"^A[0-9a-zA-Z]{33}$"},"crypto.SWTH.address":{"deprecatedKeyName":"SWTH","deprecated":false,"validationRegex":"^A[0-9a-zA-Z]{33}$"},"crypto.DOGE.address":{"deprecatedKeyName":"DOGE","deprecated":false,"validationRegex":"^D[5-9A-HJ-NP-U]{1}[1-9A-HJ-NP-Za-km-z]{32}$"},"crypto.XRP.address":{"deprecatedKeyName":"XRP","deprecated":false,"validationRegex":"^r[1-9a-km-zA-HJ-NP-Z]{24,34}$"},"crypto.ZEC.address":{"deprecatedKeyName":"ZEC","deprecated":false,"validationRegex":"^z([a-zA-Z0-9]){94}$|^zs1([a-zA-Z0-9]){75}$|^t([a-zA-Z0-9]){34}$"},"crypto.YEC.address":{"deprecatedKeyName":"YEC","deprecated":false,"validationRegex":"^y([a-zA-Z0-9]){94}$|^ys1([a-zA-Z0-9]){75}$|^s([a-zA-Z0-9]){34}$"},"crypto.ADA.address":{"deprecatedKeyName":"ADA","deprecated":false,"validationRegex":"^[1-9a-km-zA-HJ-NP-Z]{104}$|^A[1-9A-HJ-NP-Za-km-z]{58}$|^addr[0-9a-zA-Z]{99}$"},"crypto.EOS.address":{"deprecatedKeyName":"EOS","deprecated":false,"validationRegex":"^[a-z][a-z1-5.]{10}[a-z1-5]$"},"crypto.XLM.address":{"deprecatedKeyName":"XLM","deprecated":false,"validationRegex":"^G[A-Z2-7]{55}$"},"crypto.BNB.address":{"deprecatedKeyName":"BNB","deprecated":false,"validationRegex":"^bnb[0-9a-z]{39}$"},"crypto.BTG.address":{"deprecatedKeyName":"BTG","deprecated":false,"validationRegex":"^[GA][a-km-zA-HJ-NP-Z1-9]{33}$"},"crypto.NANO.address":{"deprecatedKeyName":"NANO","deprecated":false,"validationRegex":"^nano_[1-9a-z]{60}$"},"crypto.WAVES.address":{"deprecatedKeyName":"WAVES","deprecated":false,"validationRegex":"^3[a-km-zA-HJ-NP-Z1-9]{34}$"},"crypto.KMD.address":{"deprecatedKeyName":"KMD","deprecated":false,"validationRegex":"^R[a-km-zA-Z1-9]{33}$"},"crypto.AE.address":{"deprecatedKeyName":"AE","deprecated":false,"validationRegex":"^ak_[a-km-zA-Z1-9]{48,52}$"},"crypto.RSK.address":{"deprecatedKeyName":"RSK","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.WAN.address":{"deprecatedKeyName":"WAN","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.STRAT.address":{"deprecatedKeyName":"STRAT","deprecated":false,"validationRegex":"^S[a-km-zA-HJ-NP-Z1-9]{33}$"},"crypto.UBQ.address":{"deprecatedKeyName":"UBQ","deprecated":false,"validationRegex":"^0x[a-km-zA-HJ-NP-Z0-9]{40}$"},"crypto.XTZ.address":{"deprecatedKeyName":"XTZ","deprecated":false,"validationRegex":"^(tz|KT)[a-km-zA-HJ-NP-Z1-9]{34}$"},"crypto.IOTA.address":{"deprecatedKeyName":"IOTA","deprecated":false,"validationRegex":"^[A-Z0-9]{90}$|^iota1[a-z0-9]{59}$"},"crypto.VET.address":{"deprecatedKeyName":"VET","deprecated":false,"validationRegex":"^0x[a-km-zA-HJ-NP-Z0-9]{40}$"},"crypto.QTUM.address":{"deprecatedKeyName":"QTUM","deprecated":false,"validationRegex":"^Q[a-km-zA-HJ-NP-Z1-9]{33}$"},"crypto.ICX.address":{"deprecatedKeyName":"ICX","deprecated":false,"validationRegex":"^[a-km-zA-HJ-NP-Z0-9]{42}$"},"crypto.DGB.address":{"deprecatedKeyName":"DGB","deprecated":false,"validationRegex":"(^[a-km-zA-HJ-NP-Z1-9]{34}$)|(^[a-zA-Z1-9]{42}$)|(^dgb1[a-zA-Z0-9]{39}$)"},"crypto.XZC.address":{"deprecatedKeyName":"XZC","deprecated":false,"validationRegex":"^[a-km-zA-HJ-NP-Z1-9]{34}$"},"crypto.BURST.address":{"deprecatedKeyName":"BURST","deprecated":false,"validationRegex":"^BURST-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{5}"},"crypto.DCR.address":{"deprecatedKeyName":"DCR","deprecated":false,"validationRegex":null},"crypto.XEM.address":{"deprecatedKeyName":"XEM","deprecated":false,"validationRegex":"^N[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]{39}$"},"crypto.LSK.address":{"deprecatedKeyName":"LSK","deprecated":false,"validationRegex":"^\\\\d{1,21}[L]$"},"crypto.ATOM.address":{"deprecatedKeyName":"ATOM","deprecated":false,"validationRegex":"^(cosmos)1([qpzry9x8gf2tvdw0s3jn54khce6mua7l]+)$"},"crypto.ONG.address":{"deprecatedKeyName":"ONG","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.ONT.address":{"deprecatedKeyName":"ONT","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.SMART.address":{"deprecatedKeyName":"SMART","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.TPAY.address":{"deprecatedKeyName":"TPAY","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.GRS.address":{"deprecatedKeyName":"GRS","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.BSV.address":{"deprecatedKeyName":"BSV","deprecated":false,"validationRegex":"^bitcoincash:[a-zA-Z0-9]{42}$"},"crypto.GAS.address":{"deprecatedKeyName":"GAS","deprecated":false,"validationRegex":null},"crypto.TRX.address":{"deprecatedKeyName":"TRX","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.VTHO.address":{"deprecatedKeyName":"VTHO","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{42}$"},"crypto.BCD.address":{"deprecatedKeyName":"BCD","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.BTT.address":{"deprecatedKeyName":"BTT","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.KIN.address":{"deprecatedKeyName":"KIN","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{56}$"},"crypto.RVN.address":{"deprecatedKeyName":"RVN","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.ARK.address":{"deprecatedKeyName":"ARK","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.XVG.address":{"deprecatedKeyName":"XVG","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.ALGO.address":{"deprecatedKeyName":"ALGO","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{58}$"},"crypto.NEBL.address":{"deprecatedKeyName":"NEBL","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.XPM.address":{"deprecatedKeyName":"XPM","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.ONE.address":{"deprecatedKeyName":"ONE","deprecated":false,"validationRegex":"^one[a-zA-Z0-9]{39}$"},"crypto.BNTY.address":{"deprecatedKeyName":"BNTY","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.CRO.address":{"deprecatedKeyName":"CRO","deprecated":false,"validationRegex":"^0x[a-fA-F0-9]{40}$"},"crypto.TWT.address":{"deprecatedKeyName":"TWT","deprecated":false,"validationRegex":"^bnb[0-9a-z]{39}$"},"crypto.SIERRA.address":{"deprecatedKeyName":"SIERRA","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{34}$"},"crypto.VSYS.address":{"deprecatedKeyName":"VSYS","deprecated":false,"validationRegex":"^[a-zA-Z0-9]{35}$"},"crypto.HIVE.address":{"deprecatedKeyName":"HIVE","validationRegex":"^(?!s*$).+","deprecated":false},"crypto.HT.address":{"deprecatedKeyName":"HT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ENJ.address":{"deprecatedKeyName":"ENJ","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.YFI.address":{"deprecatedKeyName":"YFI","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MTA.address":{"deprecatedKeyName":"MTA","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.COMP.address":{"deprecatedKeyName":"COMP","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BAL.address":{"deprecatedKeyName":"BAL","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AMPL.address":{"deprecatedKeyName":"AMPL","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.LEND.address":{"deprecatedKeyName":"LEND","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TLOS.address":{"deprecatedKeyName":"TLOS","validationRegex":"^[a-z][a-z1-5.]{10}[a-z1-5]$","deprecated":false},"crypto.XDC.address":{"deprecatedKeyName":"XDC","validationRegex":"^xdc[a-fA-F0-9]{40}$","deprecated":false},"crypto.XST.address":{"deprecatedKeyName":"XST","validationRegex":"(?:RwxQ3jUs2BjKhseNX1em4msn2GyV5XAec[PQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]|RwxQ3jUs2BjKhseNX1em4msn2GyV5XAe[defghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]|RwxQ3jUs2BjKhseNX1em4msn2GyV5XA[fghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{2}|RwxQ3jUs2BjKhseNX1em4msn2GyV5X[BCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{3}|RwxQ3jUs2BjKhseNX1em4msn2GyV5[YZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{4}|RwxQ3jUs2BjKhseNX1em4msn2GyV[6789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{5}|RwxQ3jUs2BjKhseNX1em4msn2Gy[WXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{6}|RwxQ3jUs2BjKhseNX1em4msn2G[z][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{7}|RwxQ3jUs2BjKhseNX1em4msn2[HJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{8}|RwxQ3jUs2BjKhseNX1em4msn[3456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{9}|RwxQ3jUs2BjKhseNX1em4ms[opqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{10}|RwxQ3jUs2BjKhseNX1em4m[tuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{11}|RwxQ3jUs2BjKhseNX1em4[nopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{12}|RwxQ3jUs2BjKhseNX1em[56789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{13}|RwxQ3jUs2BjKhseNX1e[nopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{14}|RwxQ3jUs2BjKhseNX1[fghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{15}|RwxQ3jUs2BjKhseNX[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{16}|RwxQ3jUs2BjKhseN[YZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{17}|RwxQ3jUs2BjKhse[PQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{18}|RwxQ3jUs2BjKhs[fghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{19}|RwxQ3jUs2BjKh[tuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{20}|RwxQ3jUs2BjK[ijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21}|RwxQ3jUs2Bj[LMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}|RwxQ3jUs2B[kmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{23}|RwxQ3jUs2[CDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{24}|RwxQ3jUs[3456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{25}|RwxQ3jU[tuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{26}|RwxQ3j[VWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{27}|RwxQ3[kmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{28}|RwxQ[456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{29}|Rwx[RSTUVWXYZabcdefghijkmnopqrstuvwxyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{30}|Rw[yz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{31}|R[xyz][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{32}|S[123456789ABCDEFGHJKL][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{32}|SM[123456789ABCDEFGH][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{31}|SMJ11[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{29}|SMJ11[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{29}|SMJ12[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnop][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{28}|SMJ12q[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkm][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{27}|SMJ12qn[12345678][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{26}|SMJ12qn9[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghi][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{25}|SMJ12qn9j[123456789ABCDEFGHJKLM][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{24}|SMJ12qn9jN[123456789AB][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{23}|SMJ12qn9jNC[123456789AB][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}|SMJ12qn9jNCC[123456789ABCDEFGHJKLMNPQRSTUVW][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21}|SMJ12qn9jNCCX[123456789ABCDEFGH][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{20}|SMJ12qn9jNCCXJ[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkm][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{19}|SMJ12qn9jNCCXJn[123456789ABCDEFGHJKLMNPQRS][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{18}|SMJ12qn9jNCCXJnT[123456789ABCDEFGHJKLMNPQRSTUVWX][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{17}|SMJ12qn9jNCCXJnTY[123456789ABCDEFGHJKLMNPQ][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{16}|SMJ12qn9jNCCXJnTYR[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxy][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{15}|SMJ12qn9jNCCXJnTYRz[1234][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{14}|SMJ12qn9jNCCXJnTYRz5[123456789ABCDEFGHJKLMNPQRSTUVWX][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{13}|SMJ12qn9jNCCXJnTYRz5Y[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrst][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{12}|SMJ12qn9jNCCXJnTYRz5Yu[12345678][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{11}|SMJ12qn9jNCCXJnTYRz5Yu9[123456789ABCDEFGHJKLMNPQRSTUVWXY][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{10}|SMJ12qn9jNCCXJnTYRz5Yu9Z[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcd][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{9}|SMJ12qn9jNCCXJnTYRz5Yu9Ze[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkm][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{8}|SMJ12qn9jNCCXJnTYRz5Yu9Zen[123456789ABCD][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{7}|SMJ12qn9jNCCXJnTYRz5Yu9ZenE[123456789ABCDEFGHJKLMNPQ][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{6}|SMJ12qn9jNCCXJnTYRz5Yu9ZenER[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkm][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{5}|SMJ12qn9jNCCXJnTYRz5Yu9ZenERn[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghij][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{4}|SMJ12qn9jNCCXJnTYRz5Yu9ZenERnk[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghij][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{3}|SMJ12qn9jNCCXJnTYRz5Yu9ZenERnkk[123456789ABCDEFGHJKLMNPQRST][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{2}|SMJ12qn9jNCCXJnTYRz5Yu9ZenERnkkU[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstu][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]|SMJ12qn9jNCCXJnTYRz5Yu9ZenERnkkUv[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghi])","deprecated":false},"crypto.STRAX.address":{"deprecatedKeyName":"STRAX","validationRegex":"^X[a-km-zA-HJ-NP-Z1-9]{33}$","deprecated":false},"crypto.SIGNA.address":{"deprecatedKeyName":"SIGNA","validationRegex":"^S-((?=[A-Z2-9]{4})(?:[^IO]{4})-){3}(?=[A-Z2-9]{5})(?:[^IO]{5})$","deprecated":false},"crypto.NIM.address":{"deprecatedKeyName":"NIM","validationRegex":"^NQ[0-9]{2} ([A-Z0-9]{4} ){7}[A-Z0-9]{4}$","deprecated":false},"crypto.GUAP.address":{"deprecatedKeyName":"GUAP","validationRegex":"^(G|P)[a-zA-HJ-NP-Z0-9]{25,39}$","deprecated":false},"crypto.ELA.version.ELA.address":{"deprecatedKeyName":"ELA_ELA","validationRegex":"E[a-zA-HJ-NP-Z0-9]{33}","deprecated":false},"crypto.ELA.version.ESC.address":{"deprecatedKeyName":"ELA_ESC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.USDT.version.ERC20.address":{"deprecatedKeyName":"USDT_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.USDT.version.TRON.address":{"deprecatedKeyName":"USDT_TRON","validationRegex":"^[T][a-zA-HJ-NP-Z0-9]{33}$","deprecated":false},"crypto.USDT.version.EOS.address":{"deprecatedKeyName":"USDT_EOS","validationRegex":"^[a-z][a-z1-5.]{10}[a-z1-5]$","deprecated":false},"crypto.USDT.version.OMNI.address":{"deprecatedKeyName":"USDT_OMNI","validationRegex":"^(bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39}$","deprecated":false},"crypto.FTM.version.ERC20.address":{"deprecatedKeyName":"FTM_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FTM.version.BEP2.address":{"deprecatedKeyName":"FTM_BEP2","validationRegex":"^(bnb|tbnb)[a-zA-HJ-NP-Z0-9]{39}$","deprecated":false},"crypto.FTM.version.OPERA.address":{"deprecatedKeyName":"FTM_OPERA","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FUSE.version.ERC20.address":{"deprecatedKeyName":"FUSE_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FUSE.version.FUSE.address":{"deprecatedKeyName":"FUSE_FUSE","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MATIC.version.MATIC.address":{"deprecatedKeyName":"MATIC_MATIC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MATIC.version.BEP20.address":{"deprecatedKeyName":"MATIC_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MATIC.version.ERC20.address":{"deprecatedKeyName":"MATIC_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"social.payid.name":{"deprecatedKeyName":"payid","validationRegex":"^[0-9a-zA-Z]+\\\\$[0-9a-zA-Z]+\\\\.[0-9a-zA-Z]+$","deprecated":false},"social.picture.value":{"deprecatedKeyName":"picture","validationRegex":null,"deprecated":false},"whois.email.value":{"deprecatedKeyName":"email","validationRegex":"^[^@]+@[^\\\\.]+\\\\..+$","deprecated":false},"whois.for_sale.value":{"deprecatedKeyName":"for_sale","validationRegex":"(true)|(false)","deprecated":false},"ipfs.html.value":{"deprecatedKeyName":"html","validationRegex":".{0,100}","deprecated":false},"ipfs.redirect_domain.value":{"deprecatedKeyName":"redirect_domain","validationRegex":".{0,253}","deprecated":false},"dweb.ipfs.hash":{"deprecatedKeyName":"dweb_hash","validationRegex":".{0,100}","deprecated":false},"browser.redirect_url":{"deprecatedKeyName":"browser_redirect","validationRegex":".{0,253}","deprecated":false},"browser.preferred_protocols":{"deprecatedKeyName":"browser_preferred_protocols","validationRegex":null,"deprecated":false},"gundb.username.value":{"deprecatedKeyName":"gundb_username","validationRegex":null,"deprecated":false},"gundb.public_key.value":{"deprecatedKeyName":"gundb_public_key","validationRegex":null,"deprecated":false},"social.image.value":{"deprecatedKeyName":"image","validationRegex":null,"deprecated":false},"social.twitter.username":{"deprecatedKeyName":"twitter_username","validationRegex":null,"deprecated":false},"validation.social.twitter.username":{"deprecatedKeyName":"validation_twitter_username","validationRegex":null,"deprecated":false},"forwarding.url":{"deprecatedKeyName":"forwarding_url","validationRegex":"^(https?)://[^\\\\s/$.?#].[^\\\\s]*$","deprecated":false},"dns.ttl":{"deprecatedKeyName":"dns_ttl","validationRegex":null,"deprecated":false},"dns.A":{"deprecatedKeyName":"dns_A","validationRegex":null,"deprecated":false},"dns.A.ttl":{"deprecatedKeyName":"dns_A_ttl","validationRegex":null,"deprecated":false},"dns.AAAA":{"deprecatedKeyName":"dns_AAAA","validationRegex":null,"deprecated":false},"dns.AAAA.ttl":{"deprecatedKeyName":"dns_AAAA_ttl","validationRegex":null,"deprecated":false},"dns.AFSDB":{"deprecatedKeyName":"dns_AFSDB","validationRegex":null,"deprecated":false},"dns.AFSDB.ttl":{"deprecatedKeyName":"dns_AFSDB_ttl","validationRegex":null,"deprecated":false},"dns.APL":{"deprecatedKeyName":"dns_APL","validationRegex":null,"deprecated":false},"dns.APL.ttl":{"deprecatedKeyName":"dns_APL_ttl","validationRegex":null,"deprecated":false},"dns.CAA":{"deprecatedKeyName":"dns_CAA","validationRegex":null,"deprecated":false},"dns.CAA.ttl":{"deprecatedKeyName":"dns_CAA_ttl","validationRegex":null,"deprecated":false},"dns.CDNSKEY":{"deprecatedKeyName":"dns_CDNSKEY","validationRegex":null,"deprecated":false},"dns.CDNSKEY.ttl":{"deprecatedKeyName":"dns_CDNSKEY_ttl","validationRegex":null,"deprecated":false},"dns.CDS":{"deprecatedKeyName":"dns_CDS","validationRegex":null,"deprecated":false},"dns.CDS.ttl":{"deprecatedKeyName":"dns_CDS_ttl","validationRegex":null,"deprecated":false},"dns.CERT":{"deprecatedKeyName":"dns_CERT","validationRegex":null,"deprecated":false},"dns.CERT.ttl":{"deprecatedKeyName":"dns_CERT_ttl","validationRegex":null,"deprecated":false},"dns.CNAME":{"deprecatedKeyName":"dns_CNAME","validationRegex":null,"deprecated":false},"dns.CNAME.ttl":{"deprecatedKeyName":"dns_CNAME_ttl","validationRegex":null,"deprecated":false},"dns.CSYNC":{"deprecatedKeyName":"dns_CSYNC","validationRegex":null,"deprecated":false},"dns.CSYNC.ttl":{"deprecatedKeyName":"dns_CSYNC_ttl","validationRegex":null,"deprecated":false},"dns.DHCID":{"deprecatedKeyName":"dns_DHCID","validationRegex":null,"deprecated":false},"dns.DHCID.ttl":{"deprecatedKeyName":"dns_DHCID_ttl","validationRegex":null,"deprecated":false},"dns.DLV":{"deprecatedKeyName":"dns_DLV","validationRegex":null,"deprecated":false},"dns.DLV.ttl":{"deprecatedKeyName":"dns_DLV_ttl","validationRegex":null,"deprecated":false},"dns.DNAME":{"deprecatedKeyName":"dns_DNAME","validationRegex":null,"deprecated":false},"dns.DNAME.ttl":{"deprecatedKeyName":"dns_DNAME_ttl","validationRegex":null,"deprecated":false},"dns.DNSKEY":{"deprecatedKeyName":"dns_DNSKEY","validationRegex":null,"deprecated":false},"dns.DNSKEY.ttl":{"deprecatedKeyName":"dns_DNSKEY_ttl","validationRegex":null,"deprecated":false},"dns.DS":{"deprecatedKeyName":"dns_DS","validationRegex":null,"deprecated":false},"dns.DS.ttl":{"deprecatedKeyName":"dns_DS_ttl","validationRegex":null,"deprecated":false},"dns.EUI48":{"deprecatedKeyName":"dns_EUI48","validationRegex":null,"deprecated":false},"dns.EUI48.ttl":{"deprecatedKeyName":"dns_EUI48_ttl","validationRegex":null,"deprecated":false},"dns.EUI64":{"deprecatedKeyName":"dns_EUI64","validationRegex":null,"deprecated":false},"dns.EUI64.ttl":{"deprecatedKeyName":"dns_EUI64_ttl","validationRegex":null,"deprecated":false},"dns.HINFO":{"deprecatedKeyName":"dns_HINFO","validationRegex":null,"deprecated":false},"dns.HINFO.ttl":{"deprecatedKeyName":"dns_HINFO_ttl","validationRegex":null,"deprecated":false},"dns.HIP":{"deprecatedKeyName":"dns_HIP","validationRegex":null,"deprecated":false},"dns.HIP.ttl":{"deprecatedKeyName":"dns_HIP_ttl","validationRegex":null,"deprecated":false},"dns.HTTPS":{"deprecatedKeyName":"dns_HTTPS","validationRegex":null,"deprecated":false},"dns.HTTPS.ttl":{"deprecatedKeyName":"dns_HTTPS_ttl","validationRegex":null,"deprecated":false},"dns.IPSECKEY":{"deprecatedKeyName":"dns_IPSECKEY","validationRegex":null,"deprecated":false},"dns.IPSECKEY.ttl":{"deprecatedKeyName":"dns_IPSECKEY_ttl","validationRegex":null,"deprecated":false},"dns.KEY":{"deprecatedKeyName":"dns_KEY","validationRegex":null,"deprecated":false},"dns.KEY.ttl":{"deprecatedKeyName":"dns_KEY_ttl","validationRegex":null,"deprecated":false},"dns.KX":{"deprecatedKeyName":"dns_KX","validationRegex":null,"deprecated":false},"dns.KX.ttl":{"deprecatedKeyName":"dns_KX_ttl","validationRegex":null,"deprecated":false},"dns.LOC":{"deprecatedKeyName":"dns_LOC","validationRegex":null,"deprecated":false},"dns.LOC.ttl":{"deprecatedKeyName":"dns_LOC_ttl","validationRegex":null,"deprecated":false},"dns.MX":{"deprecatedKeyName":"dns_MX","validationRegex":null,"deprecated":false},"dns.MX.ttl":{"deprecatedKeyName":"dns_MX_ttl","validationRegex":null,"deprecated":false},"dns.NAPTR":{"deprecatedKeyName":"dns_NAPTR","validationRegex":null,"deprecated":false},"dns.NAPTR.ttl":{"deprecatedKeyName":"dns_NAPTR_ttl","validationRegex":null,"deprecated":false},"dns.NS":{"deprecatedKeyName":"dns_NS","validationRegex":null,"deprecated":false},"dns.NS.ttl":{"deprecatedKeyName":"dns_NS_ttl","validationRegex":null,"deprecated":false},"dns.NSEC":{"deprecatedKeyName":"dns_NSEC","validationRegex":null,"deprecated":false},"dns.NSEC.ttl":{"deprecatedKeyName":"dns_NSEC_ttl","validationRegex":null,"deprecated":false},"dns.NSEC3":{"deprecatedKeyName":"dns_NSEC3","validationRegex":null,"deprecated":false},"dns.NSEC3.ttl":{"deprecatedKeyName":"dns_NSEC3_ttl","validationRegex":null,"deprecated":false},"dns.NSEC3PARAM":{"deprecatedKeyName":"dns_NSEC3PARAM","validationRegex":null,"deprecated":false},"dns.NSEC3PARAM.ttl":{"deprecatedKeyName":"dns_NSEC3PARAM_ttl","validationRegex":null,"deprecated":false},"dns.OPENPGPKEY":{"deprecatedKeyName":"dns_OPENPGPKEY","validationRegex":null,"deprecated":false},"dns.OPENPGPKEY.ttl":{"deprecatedKeyName":"dns_OPENPGPKEY_ttl","validationRegex":null,"deprecated":false},"dns.PTR":{"deprecatedKeyName":"dns_PTR","validationRegex":null,"deprecated":false},"dns.PTR.ttl":{"deprecatedKeyName":"dns_PTR_ttl","validationRegex":null,"deprecated":false},"dns.RP":{"deprecatedKeyName":"dns_RP","validationRegex":null,"deprecated":false},"dns.RP.ttl":{"deprecatedKeyName":"dns_RP_ttl","validationRegex":null,"deprecated":false},"dns.RRSIG":{"deprecatedKeyName":"dns_RRSIG","validationRegex":null,"deprecated":false},"dns.RRSIG.ttl":{"deprecatedKeyName":"dns_RRSIG_ttl","validationRegex":null,"deprecated":false},"dns.SIG":{"deprecatedKeyName":"dns_SIG","validationRegex":null,"deprecated":false},"dns.SIG.ttl":{"deprecatedKeyName":"dns_SIG_ttl","validationRegex":null,"deprecated":false},"dns.SMIMEA":{"deprecatedKeyName":"dns_SMIMEA","validationRegex":null,"deprecated":false},"dns.SMIMEA.ttl":{"deprecatedKeyName":"dns_SMIMEA_ttl","validationRegex":null,"deprecated":false},"dns.SOA":{"deprecatedKeyName":"dns_SOA","validationRegex":null,"deprecated":false},"dns.SOA.ttl":{"deprecatedKeyName":"dns_SOA_ttl","validationRegex":null,"deprecated":false},"dns.SRV":{"deprecatedKeyName":"dns_SRV","validationRegex":null,"deprecated":false},"dns.SRV.ttl":{"deprecatedKeyName":"dns_SRV_ttl","validationRegex":null,"deprecated":false},"dns.SSHFP":{"deprecatedKeyName":"dns_SSHFP","validationRegex":null,"deprecated":false},"dns.SSHFP.ttl":{"deprecatedKeyName":"dns_SSHFP_ttl","validationRegex":null,"deprecated":false},"dns.SVCB":{"deprecatedKeyName":"dns_SVCB","validationRegex":null,"deprecated":false},"dns.SVCB.ttl":{"deprecatedKeyName":"dns_SVCB_ttl","validationRegex":null,"deprecated":false},"dns.TA":{"deprecatedKeyName":"dns_TA","validationRegex":null,"deprecated":false},"dns.TA.ttl":{"deprecatedKeyName":"dns_TA_ttl","validationRegex":null,"deprecated":false},"dns.TKEY":{"deprecatedKeyName":"dns_TKEY","validationRegex":null,"deprecated":false},"dns.TKEY.ttl":{"deprecatedKeyName":"dns_TKEY_ttl","validationRegex":null,"deprecated":false},"dns.TLSA":{"deprecatedKeyName":"dns_TLSA","validationRegex":null,"deprecated":false},"dns.TLSA.ttl":{"deprecatedKeyName":"dns_TLSA_ttl","validationRegex":null,"deprecated":false},"dns.TSIG":{"deprecatedKeyName":"dns_TSIG","validationRegex":null,"deprecated":false},"dns.TSIG.ttl":{"deprecatedKeyName":"dns_TSIG_ttl","validationRegex":null,"deprecated":false},"dns.TXT":{"deprecatedKeyName":"dns_TXT","validationRegex":null,"deprecated":false},"dns.TXT.ttl":{"deprecatedKeyName":"dns_TXT_ttl","validationRegex":null,"deprecated":false},"dns.URI":{"deprecatedKeyName":"dns_URI","validationRegex":null,"deprecated":false},"dns.URI.ttl":{"deprecatedKeyName":"dns_URI_ttl","validationRegex":null,"deprecated":false},"dns.ZONEMD":{"deprecatedKeyName":"dns_ZONEMD","validationRegex":null,"deprecated":false},"dns.ZONEMD.ttl":{"deprecatedKeyName":"dns_ZONEMD_ttl","validationRegex":null,"deprecated":false},"crypto.DOT.address":{"deprecatedKeyName":"DOT","validationRegex":null,"deprecated":false},"crypto.UNI.version.ERC20.address":{"deprecatedKeyName":"UNI_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.UNI.version.BEP20.address":{"deprecatedKeyName":"UNI_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.UNI.version.MATIC.address":{"deprecatedKeyName":"UNI_MATIC","validationRegex":null,"deprecated":false},"crypto.UNI.version.HRC20.address":{"deprecatedKeyName":"UNI_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.UNI.version.XDAI.address":{"deprecatedKeyName":"UNI_XDAI","validationRegex":null,"deprecated":false},"crypto.SOL.address":{"deprecatedKeyName":"SOL","validationRegex":null,"deprecated":false},"crypto.BUSD.version.ERC20.address":{"deprecatedKeyName":"BUSD_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BUSD.version.BEP20.address":{"deprecatedKeyName":"BUSD_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BUSD.version.HRC20.address":{"deprecatedKeyName":"BUSD_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ICP.address":{"deprecatedKeyName":"ICP","validationRegex":null,"deprecated":false},"crypto.THETA.address":{"deprecatedKeyName":"THETA","validationRegex":null,"deprecated":false},"crypto.WBTC.version.ERC20.address":{"deprecatedKeyName":"WBTC_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.WBTC.version.MATIC.address":{"deprecatedKeyName":"WBTC_MATIC","validationRegex":null,"deprecated":false},"crypto.WBTC.version.FANTOM.address":{"deprecatedKeyName":"WBTC_FANTOM","validationRegex":null,"deprecated":false},"crypto.WBTC.version.HRC20.address":{"deprecatedKeyName":"WBTC_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.WBTC.version.XDAI.address":{"deprecatedKeyName":"WBTC_XDAI","validationRegex":null,"deprecated":false},"crypto.FIL.address":{"deprecatedKeyName":"FIL","validationRegex":null,"deprecated":false},"crypto.CDAI.address":{"deprecatedKeyName":"CDAI","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KSM.address":{"deprecatedKeyName":"KSM","validationRegex":null,"deprecated":false},"crypto.OKB.address":{"deprecatedKeyName":"OKB","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AAVE.version.ERC20.address":{"deprecatedKeyName":"AAVE_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AAVE.version.MATIC.address":{"deprecatedKeyName":"AAVE_MATIC","validationRegex":null,"deprecated":false},"crypto.AAVE.version.FANTOM.address":{"deprecatedKeyName":"AAVE_FANTOM","validationRegex":null,"deprecated":false},"crypto.AAVE.version.HRC20.address":{"deprecatedKeyName":"AAVE_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SHIB.version.ERC20.address":{"deprecatedKeyName":"SHIB_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SHIB.version.MATIC.address":{"deprecatedKeyName":"SHIB_MATIC","validationRegex":null,"deprecated":false},"crypto.SHIB.version.FANTOM.address":{"deprecatedKeyName":"SHIB_FANTOM","validationRegex":null,"deprecated":false},"crypto.CEL.version.ERC20.address":{"deprecatedKeyName":"CEL_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CEL.version.MATIC.address":{"deprecatedKeyName":"CEL_MATIC","validationRegex":null,"deprecated":false},"crypto.CEL.version.FANTOM.address":{"deprecatedKeyName":"CEL_FANTOM","validationRegex":null,"deprecated":false},"crypto.CEL.version.HRC20.address":{"deprecatedKeyName":"CEL_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CUSDC.address":{"deprecatedKeyName":"CUSDC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CETH.address":{"deprecatedKeyName":"CETH","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AMP.address":{"deprecatedKeyName":"AMP","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CAKE.version.BEP20.address":{"deprecatedKeyName":"CAKE_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CAKE.version.HRC20.address":{"deprecatedKeyName":"CAKE_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MIOTA.address":{"deprecatedKeyName":"MIOTA","validationRegex":null,"deprecated":false},"crypto.FTT.address":{"deprecatedKeyName":"FTT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MKR.address":{"deprecatedKeyName":"MKR","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TFUEL.address":{"deprecatedKeyName":"TFUEL","validationRegex":null,"deprecated":false},"crypto.KLAY.address":{"deprecatedKeyName":"KLAY","validationRegex":null,"deprecated":false},"crypto.LUNA.address":{"deprecatedKeyName":"LUNA","validationRegex":null,"deprecated":false},"crypto.AVAX.address":{"deprecatedKeyName":"AVAX","validationRegex":null,"deprecated":false},"crypto.LEO.address":{"deprecatedKeyName":"LEO","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SAFEMOON.version.BEP20.address":{"deprecatedKeyName":"SAFEMOON_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SAFEMOON.version.HRC20.address":{"deprecatedKeyName":"SAFEMOON_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.UST.address":{"deprecatedKeyName":"UST","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.RUNE.address":{"deprecatedKeyName":"RUNE","validationRegex":"^(bnb|tbnb)[a-zA-HJ-NP-Z0-9]{39}$","deprecated":false},"crypto.HBAR.address":{"deprecatedKeyName":"HBAR","validationRegex":null,"deprecated":false},"crypto.TEL.version.ERC20.address":{"deprecatedKeyName":"TEL_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TEL.version.MATIC.address":{"deprecatedKeyName":"TEL_MATIC","validationRegex":null,"deprecated":false},"crypto.CHZ.address":{"deprecatedKeyName":"CHZ","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SUSHI.version.ERC20.address":{"deprecatedKeyName":"SUSHI_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SUSHI.version.BEP20.address":{"deprecatedKeyName":"SUSHI_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SUSHI.version.MATIC.address":{"deprecatedKeyName":"SUSHI_MATIC","validationRegex":null,"deprecated":false},"crypto.SUSHI.version.FANTOM.address":{"deprecatedKeyName":"SUSHI_FANTOM","validationRegex":null,"deprecated":false},"crypto.SUSHI.version.HRC20.address":{"deprecatedKeyName":"SUSHI_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.EGLD.address":{"deprecatedKeyName":"EGLD","validationRegex":null,"deprecated":false},"crypto.TUSD.version.ERC20.address":{"deprecatedKeyName":"TUSD_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TUSD.version.BEP20.address":{"deprecatedKeyName":"TUSD_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TUSD.version.AVAX.address":{"deprecatedKeyName":"TUSD_AVAX","validationRegex":null,"deprecated":false},"crypto.TUSD.version.HRC20.address":{"deprecatedKeyName":"TUSD_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TUSD.version.BEP2.address":{"deprecatedKeyName":"TUSD_BEP2","validationRegex":"^(bnb|tbnb)[a-zA-HJ-NP-Z0-9]{39}$","deprecated":false},"crypto.TUSD.version.TRON.address":{"deprecatedKeyName":"TUSD_TRON","validationRegex":"^[T][a-zA-HJ-NP-Z0-9]{33}$","deprecated":false},"crypto.HBTC.version.ERC20.address":{"deprecatedKeyName":"HBTC_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.HBTC.version.HRC20.address":{"deprecatedKeyName":"HBTC_HRC20","validationRegex":null,"deprecated":false},"crypto.SNX.version.ERC20.address":{"deprecatedKeyName":"SNX_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SNX.version.MATIC.address":{"deprecatedKeyName":"SNX_MATIC","validationRegex":null,"deprecated":false},"crypto.SNX.version.FANTOM.address":{"deprecatedKeyName":"SNX_FANTOM","validationRegex":null,"deprecated":false},"crypto.SNX.version.HRC20.address":{"deprecatedKeyName":"SNX_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.HOT.version.ERC20.address":{"deprecatedKeyName":"HOT_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.HOT.version.HRC20.address":{"deprecatedKeyName":"HOT_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.NEAR.address":{"deprecatedKeyName":"NEAR","validationRegex":null,"deprecated":false},"crypto.HNT.address":{"deprecatedKeyName":"HNT","validationRegex":null,"deprecated":false},"crypto.STETH.address":{"deprecatedKeyName":"STETH","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.NEXO.version.ERC20.address":{"deprecatedKeyName":"NEXO_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.NEXO.version.FANTOM.address":{"deprecatedKeyName":"NEXO_FANTOM","validationRegex":null,"deprecated":false},"crypto.PAX.address":{"deprecatedKeyName":"PAX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.STX.address":{"deprecatedKeyName":"STX","validationRegex":null,"deprecated":false},"crypto.MANA.version.ERC20.address":{"deprecatedKeyName":"MANA_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MANA.version.MATIC.address":{"deprecatedKeyName":"MANA_MATIC","validationRegex":null,"deprecated":false},"crypto.MDX.version.HRC20.address":{"deprecatedKeyName":"MDX_HRC20","validationRegex":null,"deprecated":false},"crypto.MDX.version.BEP20.address":{"deprecatedKeyName":"MDX_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ZEN.address":{"deprecatedKeyName":"ZEN","validationRegex":null,"deprecated":false},"crypto.ARRR.address":{"deprecatedKeyName":"ARRR","validationRegex":null,"deprecated":false},"crypto.BNT.address":{"deprecatedKeyName":"BNT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.LUSD.version.ERC20.address":{"deprecatedKeyName":"LUSD_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.LUSD.version.MATIC.address":{"deprecatedKeyName":"LUSD_MATIC","validationRegex":null,"deprecated":false},"crypto.GRT.version.ERC20.address":{"deprecatedKeyName":"GRT_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.GRT.version.MATIC.address":{"deprecatedKeyName":"GRT_MATIC","validationRegex":null,"deprecated":false},"crypto.GRT.version.HRC20.address":{"deprecatedKeyName":"GRT_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SC.address":{"deprecatedKeyName":"SC","validationRegex":null,"deprecated":false},"crypto.HUSD.version.ERC20.address":{"deprecatedKeyName":"HUSD_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.HUSD.version.HRC20.address":{"deprecatedKeyName":"HUSD_HRC20","validationRegex":null,"deprecated":false},"crypto.CRV.version.ERC20.address":{"deprecatedKeyName":"CRV_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CRV.version.MATIC.address":{"deprecatedKeyName":"CRV_MATIC","validationRegex":null,"deprecated":false},"crypto.CRV.version.FANTOM.address":{"deprecatedKeyName":"CRV_FANTOM","validationRegex":null,"deprecated":false},"crypto.UMA.address":{"deprecatedKeyName":"UMA","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.WRX.version.BEP2.address":{"deprecatedKeyName":"WRX_BEP2","validationRegex":"^(bnb|tbnb)[a-zA-HJ-NP-Z0-9]{39}$","deprecated":false},"crypto.WRX.version.MATIC.address":{"deprecatedKeyName":"WRX_MATIC","validationRegex":null,"deprecated":false},"crypto.AR.address":{"deprecatedKeyName":"AR","validationRegex":null,"deprecated":false},"crypto.OMG.address":{"deprecatedKeyName":"OMG","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.GT.address":{"deprecatedKeyName":"GT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.QNT.address":{"deprecatedKeyName":"QNT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CHSB.address":{"deprecatedKeyName":"CHSB","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.IOST.address":{"deprecatedKeyName":"IOST","validationRegex":null,"deprecated":false},"crypto.NXM.address":{"deprecatedKeyName":"NXM","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KCS.address":{"deprecatedKeyName":"KCS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.LPT.version.ERC20.address":{"deprecatedKeyName":"LPT_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.LPT.version.HRC20.address":{"deprecatedKeyName":"LPT_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.XSUSHI.address":{"deprecatedKeyName":"XSUSHI","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CUSDT.address":{"deprecatedKeyName":"CUSDT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FLOW.address":{"deprecatedKeyName":"FLOW","validationRegex":null,"deprecated":false},"crypto.ANKR.address":{"deprecatedKeyName":"ANKR","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.HBC.address":{"deprecatedKeyName":"HBC","validationRegex":null,"deprecated":false},"crypto.VGX.address":{"deprecatedKeyName":"VGX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FEI.address":{"deprecatedKeyName":"FEI","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BAKE.version.BEP20.address":{"deprecatedKeyName":"BAKE_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BAKE.version.HRC20.address":{"deprecatedKeyName":"BAKE_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.1INCH.version.ERC20.address":{"deprecatedKeyName":"1INCH_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.1INCH.version.BEP20.address":{"deprecatedKeyName":"1INCH_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.1INCH.version.MATIC.address":{"deprecatedKeyName":"1INCH_MATIC","validationRegex":null,"deprecated":false},"crypto.1INCH.version.HRC20.address":{"deprecatedKeyName":"1INCH_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CKB.address":{"deprecatedKeyName":"CKB","validationRegex":null,"deprecated":false},"crypto.WOO.version.ERC20.address":{"deprecatedKeyName":"WOO_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.WOO.version.HRC20.address":{"deprecatedKeyName":"WOO_HRC20","validationRegex":null,"deprecated":false},"crypto.TITAN.address":{"deprecatedKeyName":"TITAN","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.OMI.address":{"deprecatedKeyName":"OMI","validationRegex":null,"deprecated":false},"crypto.MINA.address":{"deprecatedKeyName":"MINA","validationRegex":null,"deprecated":false},"crypto.SETH.address":{"deprecatedKeyName":"SETH","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.RSR.address":{"deprecatedKeyName":"RSR","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.OXY.version.SOLANA.address":{"deprecatedKeyName":"OXY_SOLANA","validationRegex":null,"deprecated":false},"crypto.OXY.version.ERC20.address":{"deprecatedKeyName":"OXY_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.REN.version.ERC20.address":{"deprecatedKeyName":"REN_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.REN.version.HRC20.address":{"deprecatedKeyName":"REN_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.XCH.address":{"deprecatedKeyName":"XCH","validationRegex":null,"deprecated":false},"crypto.RENBTC.version.ERC20.address":{"deprecatedKeyName":"RENBTC_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.RENBTC.version.BEP20.address":{"deprecatedKeyName":"RENBTC_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.RENBTC.version.HRC20.address":{"deprecatedKeyName":"RENBTC_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.USDN.address":{"deprecatedKeyName":"USDN","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BCHA.address":{"deprecatedKeyName":"BCHA","validationRegex":null,"deprecated":false},"crypto.LRC.address":{"deprecatedKeyName":"LRC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.PUNDIX.address":{"deprecatedKeyName":"PUNDIX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ERG.address":{"deprecatedKeyName":"ERG","validationRegex":null,"deprecated":false},"crypto.WIN.address":{"deprecatedKeyName":"WIN","validationRegex":"^[T][a-zA-HJ-NP-Z0-9]{33}$","deprecated":false},"crypto.NPXS.address":{"deprecatedKeyName":"NPXS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TRIBE.address":{"deprecatedKeyName":"TRIBE","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MAID.address":{"deprecatedKeyName":"MAID","validationRegex":"^(bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39}$","deprecated":false},"crypto.ASD.address":{"deprecatedKeyName":"ASD","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CUNI.address":{"deprecatedKeyName":"CUNI","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CELO.address":{"deprecatedKeyName":"CELO","validationRegex":null,"deprecated":false},"crypto.DENT.address":{"deprecatedKeyName":"DENT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SNT.address":{"deprecatedKeyName":"SNT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FEG.version.ERC20.address":{"deprecatedKeyName":"FEG_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FEG.version.HRC20.address":{"deprecatedKeyName":"FEG_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SKL.address":{"deprecatedKeyName":"SKL","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ALUSD.address":{"deprecatedKeyName":"ALUSD","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MIR.version.ERC20.address":{"deprecatedKeyName":"MIR_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MIR.version.BEP20.address":{"deprecatedKeyName":"MIR_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.GLM.address":{"deprecatedKeyName":"GLM","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.PAXG.version.ERC20.address":{"deprecatedKeyName":"PAXG_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.PAXG.version.HRC20.address":{"deprecatedKeyName":"PAXG_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CFX.address":{"deprecatedKeyName":"CFX","validationRegex":null,"deprecated":false},"crypto.UOS.address":{"deprecatedKeyName":"UOS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SVCS.address":{"deprecatedKeyName":"SVCS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.REEF.version.ERC20.address":{"deprecatedKeyName":"REEF_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.REEF.version.BEP20.address":{"deprecatedKeyName":"REEF_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.REEF.version.HRC20.address":{"deprecatedKeyName":"REEF_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.GNO.address":{"deprecatedKeyName":"GNO","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.USDP.address":{"deprecatedKeyName":"USDP","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KAVA.address":{"deprecatedKeyName":"KAVA","validationRegex":null,"deprecated":false},"crypto.ALCX.address":{"deprecatedKeyName":"ALCX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.EWT.address":{"deprecatedKeyName":"EWT","validationRegex":null,"deprecated":false},"crypto.TON.address":{"deprecatedKeyName":"TON","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.RLC.address":{"deprecatedKeyName":"RLC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AXS.address":{"deprecatedKeyName":"AXS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AUDIO.address":{"deprecatedKeyName":"AUDIO","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.XVS.address":{"deprecatedKeyName":"XVS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BAND.version.ERC20.address":{"deprecatedKeyName":"BAND_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.BAND.version.FANTOM.address":{"deprecatedKeyName":"BAND_FANTOM","validationRegex":null,"deprecated":false},"crypto.NMR.address":{"deprecatedKeyName":"NMR","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.INJ.version.ERC20.address":{"deprecatedKeyName":"INJ_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.INJ.version.BEP20.address":{"deprecatedKeyName":"INJ_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.WAXP.address":{"deprecatedKeyName":"WAXP","validationRegex":null,"deprecated":false},"crypto.UQC.address":{"deprecatedKeyName":"UQC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.IOTX.address":{"deprecatedKeyName":"IOTX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FUN.address":{"deprecatedKeyName":"FUN","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.OCEAN.address":{"deprecatedKeyName":"OCEAN","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SAND.version.ERC20.address":{"deprecatedKeyName":"SAND_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SAND.version.HRC20.address":{"deprecatedKeyName":"SAND_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CTSI.version.ERC20.address":{"deprecatedKeyName":"CTSI_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CTSI.version.BEP20.address":{"deprecatedKeyName":"CTSI_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CTSI.version.MATIC.address":{"deprecatedKeyName":"CTSI_MATIC","validationRegex":null,"deprecated":false},"crypto.RAY.address":{"deprecatedKeyName":"RAY","validationRegex":null,"deprecated":false},"crypto.ANC.version.TERRA.address":{"deprecatedKeyName":"ANC_TERRA","validationRegex":null,"deprecated":false},"crypto.ANC.version.ERC20.address":{"deprecatedKeyName":"ANC_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.IQ.version.ERC20.address":{"deprecatedKeyName":"IQ_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.IQ.version.BEP20.address":{"deprecatedKeyName":"IQ_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.IQ.version.MATIC.address":{"deprecatedKeyName":"IQ_MATIC","validationRegex":null,"deprecated":false},"crypto.SUSD.version.ERC20.address":{"deprecatedKeyName":"SUSD_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SUSD.version.FANTOM.address":{"deprecatedKeyName":"SUSD_FANTOM","validationRegex":null,"deprecated":false},"crypto.KLV.address":{"deprecatedKeyName":"KLV","validationRegex":"^[T][a-zA-HJ-NP-Z0-9]{33}$","deprecated":false},"crypto.BTCST.address":{"deprecatedKeyName":"BTCST","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TLM.address":{"deprecatedKeyName":"TLM","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AKT.address":{"deprecatedKeyName":"AKT","validationRegex":null,"deprecated":false},"crypto.STMX.address":{"deprecatedKeyName":"STMX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.PROM.address":{"deprecatedKeyName":"PROM","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.XPRT.address":{"deprecatedKeyName":"XPRT","validationRegex":null,"deprecated":false},"crypto.SRM.version.ERC20.address":{"deprecatedKeyName":"SRM_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SRM.version.SOLANA.address":{"deprecatedKeyName":"SRM_SOLANA","validationRegex":null,"deprecated":false},"crypto.RPL.address":{"deprecatedKeyName":"RPL","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AGIX.address":{"deprecatedKeyName":"AGIX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CELR.address":{"deprecatedKeyName":"CELR","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.FET.address":{"deprecatedKeyName":"FET","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.OXT.address":{"deprecatedKeyName":"OXT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ARDR.address":{"deprecatedKeyName":"ARDR","validationRegex":null,"deprecated":false},"crypto.MATH.address":{"deprecatedKeyName":"MATH","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.10SET.address":{"deprecatedKeyName":"10SET","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.POLY.address":{"deprecatedKeyName":"POLY","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.GUSD.address":{"deprecatedKeyName":"GUSD","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.NKN.address":{"deprecatedKeyName":"NKN","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CVC.address":{"deprecatedKeyName":"CVC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.GTC.address":{"deprecatedKeyName":"GTC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.STEEM.address":{"deprecatedKeyName":"STEEM","validationRegex":null,"deprecated":false},"crypto.ORN.address":{"deprecatedKeyName":"ORN","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KEEP.version.ERC20.address":{"deprecatedKeyName":"KEEP_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KEEP.version.HRC20.address":{"deprecatedKeyName":"KEEP_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.HXRO.address":{"deprecatedKeyName":"HXRO","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ORBS.address":{"deprecatedKeyName":"ORBS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ALPHA.version.ERC20.address":{"deprecatedKeyName":"ALPHA_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ALPHA.version.BEP20.address":{"deprecatedKeyName":"ALPHA_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.DODO.version.ERC20.address":{"deprecatedKeyName":"DODO_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.DODO.version.BEP20.address":{"deprecatedKeyName":"DODO_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.OGN.address":{"deprecatedKeyName":"OGN","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KNCL.version.ERC20.address":{"deprecatedKeyName":"KNCL_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KNCL.version.FANTOM.address":{"deprecatedKeyName":"KNCL_FANTOM","validationRegex":null,"deprecated":false},"crypto.KNCL.version.HRC20.address":{"deprecatedKeyName":"KNCL_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MED.address":{"deprecatedKeyName":"MED","validationRegex":null,"deprecated":false},"crypto.XAUT.address":{"deprecatedKeyName":"XAUT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.VLX.address":{"deprecatedKeyName":"VLX","validationRegex":null,"deprecated":false},"crypto.PHA.address":{"deprecatedKeyName":"PHA","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.KOBE.address":{"deprecatedKeyName":"KOBE","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.PERP.address":{"deprecatedKeyName":"PERP","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.XHV.address":{"deprecatedKeyName":"XHV","validationRegex":null,"deprecated":false},"crypto.META.address":{"deprecatedKeyName":"META","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SEUR.address":{"deprecatedKeyName":"SEUR","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.MONA.address":{"deprecatedKeyName":"MONA","validationRegex":null,"deprecated":false},"crypto.ANT.address":{"deprecatedKeyName":"ANT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.HYDRA.address":{"deprecatedKeyName":"HYDRA","validationRegex":null,"deprecated":false},"crypto.ZKS.address":{"deprecatedKeyName":"ZKS","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SXP.version.ERC20.address":{"deprecatedKeyName":"SXP_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SXP.version.BEP20.address":{"deprecatedKeyName":"SXP_BEP20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.SXP.version.HRC20.address":{"deprecatedKeyName":"SXP_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.CSPR.address":{"deprecatedKeyName":"CSPR","validationRegex":null,"deprecated":false},"crypto.MTL.address":{"deprecatedKeyName":"MTL","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.NU.address":{"deprecatedKeyName":"NU","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ZMT.address":{"deprecatedKeyName":"ZMT","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.LOC.address":{"deprecatedKeyName":"LOC","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.TKO.address":{"deprecatedKeyName":"TKO","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.ETN.address":{"deprecatedKeyName":"ETN","validationRegex":null,"deprecated":false},"crypto.UBT.version.ERC20.address":{"deprecatedKeyName":"UBT_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.UBT.version.MATIC.address":{"deprecatedKeyName":"UBT_MATIC","validationRegex":null,"deprecated":false},"crypto.EXRD.address":{"deprecatedKeyName":"EXRD","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.NMX.address":{"deprecatedKeyName":"NMX","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.RIF.address":{"deprecatedKeyName":"RIF","validationRegex":null,"deprecated":false},"crypto.STORJ.version.ERC20.address":{"deprecatedKeyName":"STORJ_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.STORJ.version.HRC20.address":{"deprecatedKeyName":"STORJ_HRC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.AVA.address":{"deprecatedKeyName":"AVA","validationRegex":"^(bnb|tbnb)[a-zA-HJ-NP-Z0-9]{39}$","deprecated":false},"crypto.DPI.version.ERC20.address":{"deprecatedKeyName":"DPI_ERC20","validationRegex":"^0x[a-fA-F0-9]{40}$","deprecated":false},"crypto.DPI.version.MATIC.address":{"deprecatedKeyName":"DPI_MATIC","validationRegex":null,"deprecated":false}}}')},114698:e=>{"use strict";e.exports=JSON.parse('{"version":"0.4.0","networks":{"1":{"contracts":{"UNSRegistry":{"address":"0x049aba7510f45BA5b64ea9E658E342F904DB358D","implementation":"0xa715562307AA8AEDCba976b3793b3337F371c14a","legacyAddresses":[],"deploymentBlock":"0xd62e9d","forwarder":"0x049aba7510f45BA5b64ea9E658E342F904DB358D"},"CNSRegistry":{"address":"0xD1E5b0FF1287aA9f9A268759062E4Ab08b9Dacbe","legacyAddresses":[],"deploymentBlock":"0x8a958b","forwarder":"0x97B0E89fC1B7eD4A8B237D9d8Fcce9b234f25A37"},"MintingManager":{"address":"0x2a7084870bB724175a3C96Da8FaA55128fa3E19D","implementation":"0x8caAeaD19aab5f54C94BB9F4be32e200E54AC8D7","legacyAddresses":[],"deploymentBlock":"0xc2fee0","forwarder":"0xb970fbCF52cd8111c76c379D4f2FE12E7f8AE7fb"},"ProxyAdmin":{"address":"0xAA16DA78110D9A9742c760a1a064F28654Ab93de","legacyAddresses":[],"deploymentBlock":"0xc2fedc"},"SignatureController":{"address":"0x82EF94294C95aD0930055f31e53A34509227c5f7","legacyAddresses":[],"deploymentBlock":"0x8a95a6"},"MintingController":{"address":"0xb0EE56339C3253361730F50c08d3d7817ecD60Ca","legacyAddresses":[],"deploymentBlock":"0x8a95aa","deprecated":true},"WhitelistedMinter":{"address":"0xd3fF3377b0ceade1303dAF9Db04068ef8a650757","legacyAddresses":[],"deploymentBlock":"0xa76ad3","deprecated":true},"URIPrefixController":{"address":"0x09B091492759737C03da9dB7eDF1CD6BCC3A9d91","legacyAddresses":[],"deploymentBlock":"0x8a95ae","deprecated":true},"DomainZoneController":{"address":"0xeA70777e28E00E81f58b8921fC47F78B8a72eFE7","legacyAddresses":[],"deploymentBlock":"0x98ca20","deprecated":true},"Resolver":{"address":"0xb66DcE2DA6afAAa98F2013446dBCB0f4B0ab2842","legacyAddresses":["0xa1cac442be6673c49f8e74ffc7c4fd746f3cbd0d","0x878bc2f3f717766ab69c0a5f9a6144931e61aed3"],"deploymentBlock":"0x960844","forwarder":"0x486eb10E4F48C038513ECAf11585Ca2779768CF2"},"ProxyReader":{"address":"0x1BDc0fD4fbABeed3E611fd6195fCd5d41dcEF393","legacyAddresses":["0x58034A288D2E56B661c9056A0C27273E5460B63c","0xc3C2BAB5e3e52DBF311b2aAcEf2e40344f19494E","0xfEe4D4F0aDFF8D84c12170306507554bC7045878","0xa6E7cEf2EDDEA66352Fd68E5915b60BDbb7309f5","0x7ea9Ee21077F84339eDa9C80048ec6db678642B1"],"deploymentBlock":"0xde71cd"},"TwitterValidationOperator":{"address":"0x2F659766E3D08561CA3408FbAba7C0749ab2c402","legacyAddresses":["0xbb486C6E9cF1faA86a6E3eAAFE2e5665C0507855"],"deploymentBlock":"0xc300b5"},"FreeMinter":{"address":"0x1fC985cAc641ED5846b631f96F35d9b48Bc3b834","legacyAddresses":[],"deploymentBlock":"0xacc390","deprecated":true},"MintableERC721Predicate":{"address":"0x932532aA4c0174b8453839A6E44eE09Cc615F2b7","legacyAddresses":[],"deploymentBlock":"0xa3cf69"},"RootChainManager":{"address":"0xA0c68C638235ee32657e8f720a23ceC1bFc77C77","legacyAddresses":[],"deploymentBlock":"0xa3cf4d"}}},"4":{"contracts":{"UNSRegistry":{"address":"0x7fb83000B8eD59D3eAD22f0D584Df3a85fBC0086","implementation":"0xc479D7A65243f7Eb1641F06a6C04E5F06cb5c4F7","legacyAddresses":[],"deploymentBlock":"0x85e628","forwarder":"0x7fb83000B8eD59D3eAD22f0D584Df3a85fBC0086"},"CNSRegistry":{"address":"0xAad76bea7CFEc82927239415BB18D2e93518ecBB","legacyAddresses":[],"deploymentBlock":"0x7232bc","forwarder":"0xdf5CC97216785398D5C77348e68fc9461108f85d"},"MintingManager":{"address":"0xdAAf99A920D31F4f5720e4667b12b24e54A03070","implementation":"0x38Fa95a0AC0E59D6e2845eFADBc17aF0FF9c7089","legacyAddresses":[],"deploymentBlock":"0x85e629","forwarder":"0xfB13e29C4D31a48B4Cd61131Cf3b681416e11681"},"ProxyAdmin":{"address":"0xaf9815005A208d1460b6fC60B4f90B9f2185E88c","legacyAddresses":[],"deploymentBlock":"0x85e627"},"SignatureController":{"address":"0x66a5e3e2C27B4ce4F46BBd975270BE154748D164","legacyAddresses":[],"deploymentBlock":"0x7232be"},"MintingController":{"address":"0x51765307AeB3Df2E647014a2C501d5324212467c","legacyAddresses":[],"deploymentBlock":"0x7232bf","deprecated":true},"WhitelistedMinter":{"address":"0xbcB32f13f90978a9e059E8Cb40FaA9e6619d98e7","legacyAddresses":[],"deploymentBlock":"0x7232c6","deprecated":true},"URIPrefixController":{"address":"0xe1d2e4B9f0518CA5c803073C3dFa886470627237","legacyAddresses":[],"deploymentBlock":"0x7232c0","deprecated":true},"DomainZoneController":{"address":"0x6f8F96A566663C1d4fEe70edD37E9b62Fe39dE5D","legacyAddresses":[],"deploymentBlock":"0x7232c2","deprecated":true},"Resolver":{"address":"0x95AE1515367aa64C462c71e87157771165B1287A","legacyAddresses":[],"deploymentBlock":"0x7232cf","forwarder":"0xE172D8557d6F342b1b2976dE784F6Dff6ABC0a37"},"ProxyReader":{"address":"0xE6729D224D00b3dd4FC731C4Ee3274E35Da06578","legacyAddresses":["0x299974AeD8911bcbd2C61262605b89F591a53E83","0x9F19473F6a98a715176291c930558E1954fd3D1e","0x3A2e74CF832cbA3d77E72708d55370119E4323a6"],"deploymentBlock":"0x8dc79a"},"TwitterValidationOperator":{"address":"0x9ea4A63184ebE9CBA55CD1af473D98075Aa02b4C","legacyAddresses":["0x1CB337b3b208dc29a6AcE8d11Bb591b66c5Dd83d"],"deploymentBlock":"0x86935e"},"FreeMinter":{"address":"0x84214215904cDEbA9044ECf95F3eBF009185AAf4","legacyAddresses":[],"deploymentBlock":"0x740d93","deprecated":true}}},"5":{"contracts":{"UNSRegistry":{"address":"0x070e83FCed225184E67c86302493ffFCDB953f71","implementation":"0x4473e84898E3F58feEFb7529dfF9E83Ff26CCae9","legacyAddresses":[],"deploymentBlock":"0x5b57ea","forwarder":"0x070e83FCed225184E67c86302493ffFCDB953f71"},"CNSRegistry":{"address":"0x801452cFAC27e79a11c6b185986fdE09e8637589","legacyAddresses":[],"deploymentBlock":"0x5b57d7","forwarder":"0x00443017FFaa4C840Caf5Dc7d3CB59147f363080"},"MintingManager":{"address":"0x9ee42D3EB042e06F8Cd241890C4fA0d51e4DA345","implementation":"0xFB11410f3067BB6Db61bC335f0de23bE87A1767e","legacyAddresses":[],"deploymentBlock":"0x5b57ec","forwarder":"0x7F9F48cF94C69ce91D4b442DA186F31118ac0185"},"ProxyAdmin":{"address":"0xf4906E210523F9dA79E33811A44EE000441F4E04","legacyAddresses":[],"deploymentBlock":"0x5b57e8"},"SignatureController":{"address":"0x5199dAE4B24B987ba18FcE1b64664D1B798d372B","legacyAddresses":[],"deploymentBlock":"0x5b57d8"},"MintingController":{"address":"0xCEC41677be322049cC885c0DAe2fE0D52CA195ca","legacyAddresses":[],"deploymentBlock":"0x5b57d9","deprecated":true},"WhitelistedMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"URIPrefixController":{"address":"0x29465e3d2daA588E62375977bCe9b3f51406a794","legacyAddresses":[],"deploymentBlock":"0x5b57da","deprecated":true},"DomainZoneController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"Resolver":{"address":"0x0555344A5F440Bd1d8cb6B42db46c5e5D4070437","legacyAddresses":[],"deploymentBlock":"0x5b57dc","forwarder":"0xFCc1A95B7287Ae7a8B7cA813F12991dF5714d4C7"},"ProxyReader":{"address":"0xE3b961856C417d081a02cBa0161a051268F52677","legacyAddresses":["0x9A70ff906D422C2FD0F7B94244D6b36DB62Ee982","0xFc5f608149f4D9e2Ed0733efFe9DD57ee24BCF68"],"deploymentBlock":"0x65bdfe"},"TwitterValidationOperator":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"FreeMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"MintableERC721Predicate":{"address":"0x56E14C4C1748a818a5564D33cF774c59EB3eDF59","legacyAddresses":[],"deploymentBlock":"0x2fc240"},"RootChainManager":{"address":"0xBbD7cBFA79faee899Eaf900F13C9065bF03B1A74","legacyAddresses":[],"deploymentBlock":"0x2dc9b9"}}},"137":{"contracts":{"UNSRegistry":{"address":"0xa9a6A3626993D487d2Dbda3173cf58cA1a9D9e9f","legacyAddresses":[],"deploymentBlock":"0x019d6188","implementation":"0x5442953b0BFFf69FC945f5f1387cbFD2e2673447","forwarder":"0xa9a6A3626993D487d2Dbda3173cf58cA1a9D9e9f"},"CNSRegistry":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","forwarder":"0x0000000000000000000000000000000000000000"},"MintingManager":{"address":"0x7be83293BeeDc9Eba1bd76c66A65F10F3efaeC26","legacyAddresses":[],"deploymentBlock":"0x01272f41","implementation":"0xBb45a6E10224Aa36EAcd812205F3763D353e9783","forwarder":"0xC37d3c4326ab0E1D2b9D8b916bBdf5715f780fcF"},"ProxyAdmin":{"address":"0xe1D668052D52388F52b90f4d1798DB2b04bC3b88","legacyAddresses":[],"deploymentBlock":"0x01272d15"},"SignatureController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"MintingController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"WhitelistedMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"URIPrefixController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"DomainZoneController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"Resolver":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","forwarder":"0x0000000000000000000000000000000000000000"},"ProxyReader":{"address":"0x3E67b8c702a1292d1CEb025494C84367fcb12b45","legacyAddresses":["0x423F2531bd5d3C3D4EF7C318c2D1d9BEDE67c680","0xA3f32c8cd786dc089Bd1fC175F2707223aeE5d00"],"deploymentBlock":"0x019d61a9"},"TwitterValidationOperator":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"FreeMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"MintableERC721Predicate":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"RootChainManager":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"}}},"1337":{"contracts":{"UNSRegistry":{"address":"0x58a175BEbc8ec21A94ea63Aa5a28743945940EE6","legacyAddresses":[],"deploymentBlock":"0x0d","implementation":"0xe0aFC4e9E03e4aa67257Df7A2Eca77454309789D","forwarder":"0x58a175BEbc8ec21A94ea63Aa5a28743945940EE6"},"CNSRegistry":{"address":"0xC58206842E4030a3B2CaBC78780Ae7635173C533","legacyAddresses":[],"deploymentBlock":"0x01","forwarder":"0xAc52F68f31577E44aE0C7E95A42dC9eb574B9383"},"MintingManager":{"address":"0x27935e7e85db3c4e7885eB828B9e889BA69a4e7f","legacyAddresses":[],"deploymentBlock":"0x0f","implementation":"0xa1A2114B0C4bDF9AEe05fdd80801e6267639FAd9","forwarder":"0xC20631145b77a58018E2b10f2282Dd048E12fC81"},"ProxyAdmin":{"address":"0xbE5dEAC45dd1ca4ee18Dc2D585D84D3d3CB82B0D","legacyAddresses":[],"deploymentBlock":"0x01"},"SignatureController":{"address":"0x7bB6Cd9be29fab783c0b494A06FED8b2E2596B7a","legacyAddresses":[],"deploymentBlock":"0x02"},"MintingController":{"address":"0x4a3C194eB88966178bfDD81744ddDafED611B830","legacyAddresses":[],"deploymentBlock":"0x03","deprecated":true},"WhitelistedMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"URIPrefixController":{"address":"0x4872CC1be60A9DB9c880A0A437Da7a6AF134F08f","legacyAddresses":[],"deploymentBlock":"0x04","deprecated":true},"DomainZoneController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"Resolver":{"address":"0xF8C26340C1eAeA6c7fF1760B25005e1306953572","legacyAddresses":[],"deploymentBlock":"0x08","forwarder":"0x11dD97b7Ca847DfB6504e61B7B9Eb30F55E554a0"},"ProxyReader":{"address":"0x4e44E79e0cEc05D9e62e952B2088c02A3C450aeC","legacyAddresses":[],"deploymentBlock":"0x14"},"TwitterValidationOperator":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"FreeMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"MintableERC721Predicate":{"address":"0x7c3c91245769c8B7450aD522792deC4bd4bf797f","legacyAddresses":[],"deploymentBlock":"0x1b"},"RootChainManager":{"address":"0x2f5e6eed50C839835BD2873d428E1683793Ad09D","legacyAddresses":[],"deploymentBlock":"0x1d"}}},"80001":{"contracts":{"UNSRegistry":{"address":"0x2a93C52E7B6E7054870758e15A1446E769EdfB93","legacyAddresses":[],"deploymentBlock":"0x0189f713","implementation":"0xAc1a1F2136BfDe3a353a95C0676Cd0d55f311ee3","forwarder":"0x2a93C52E7B6E7054870758e15A1446E769EdfB93"},"CNSRegistry":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","forwarder":"0x0000000000000000000000000000000000000000"},"MintingManager":{"address":"0x428189346bb3CC52f031A1092fd47C919AC30A9f","legacyAddresses":[],"deploymentBlock":"0x01213f4a","implementation":"0xCC17E698bA21bae4277579F22cA51135AaF00777","forwarder":"0xEf3a491A8750BEC2Dff5339CF6Df94436d432C4d"},"ProxyAdmin":{"address":"0x460d63117c7Ab1624b7474C45BF46eC6702f57ce","legacyAddresses":[],"deploymentBlock":"0x01213b22"},"SignatureController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"MintingController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"WhitelistedMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"URIPrefixController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"DomainZoneController":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"Resolver":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","forwarder":"0x0000000000000000000000000000000000000000"},"ProxyReader":{"address":"0x6fe7c857C1B0E54492C8762f27e0a45CA7ff264B","legacyAddresses":["0xbd9e01F6513E7C05f71Bf21d419a3bDF1EA9104b","0x332A8191905fA8E6eeA7350B5799F225B8ed30a9"],"deploymentBlock":"0x0189f72d"},"TwitterValidationOperator":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"FreeMinter":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0","deprecated":true},"MintableERC721Predicate":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"},"RootChainManager":{"address":"0x0000000000000000000000000000000000000000","legacyAddresses":[],"deploymentBlock":"0x0"}}}}}')},603219:e=>{"use strict";e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},62951:e=>{"use strict";e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},264589:e=>{"use strict";e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},323241:e=>{"use strict";e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},1636:e=>{"use strict";e.exports={rE:"6.6.1"}},415579:e=>{"use strict";e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}}]); \ No newline at end of file diff --git a/pr-preview/pr-945/assets/js/98351.a95bd4d2.js.LICENSE.txt b/pr-preview/pr-945/assets/js/98351.d91f64bc.js.LICENSE.txt similarity index 100% rename from pr-preview/pr-945/assets/js/98351.a95bd4d2.js.LICENSE.txt rename to pr-preview/pr-945/assets/js/98351.d91f64bc.js.LICENSE.txt diff --git a/pr-preview/pr-945/assets/js/runtime~main.e7eca1af.js b/pr-preview/pr-945/assets/js/runtime~main.9b55d625.js similarity index 99% rename from pr-preview/pr-945/assets/js/runtime~main.e7eca1af.js rename to pr-preview/pr-945/assets/js/runtime~main.9b55d625.js index f37bc26b019..04c3fda9a34 100644 --- a/pr-preview/pr-945/assets/js/runtime~main.e7eca1af.js +++ b/pr-preview/pr-945/assets/js/runtime~main.9b55d625.js @@ -1 +1 @@ -(()=>{"use strict";var a,e,c,f,d,b={},r={};function t(a){var e=r[a];if(void 0!==e)return e.exports;var c=r[a]={id:a,loaded:!1,exports:{}};return b[a].call(c.exports,c,c.exports,t),c.loaded=!0,c.exports}t.m=b,t.amdO={},a=[],t.O=(e,c,f,d)=>{if(!c){var b=1/0;for(_=0;_=d)&&Object.keys(t.O).every((a=>t.O[a](c[g])))?c.splice(g--,1):(r=!1,d0&&a[_-1][2]>d;_--)a[_]=a[_-1];a[_]=[c,f,d]},t.n=a=>{var e=a&&a.__esModule?()=>a.default:()=>a;return t.d(e,{a:e}),e},c=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__,t.t=function(a,f){if(1&f&&(a=this(a)),8&f)return a;if("object"==typeof a&&a){if(4&f&&a.__esModule)return a;if(16&f&&"function"==typeof a.then)return a}var d=Object.create(null);t.r(d);var b={};e=e||[null,c({}),c([]),c(c)];for(var r=2&f&&a;"object"==typeof r&&!~e.indexOf(r);r=c(r))Object.getOwnPropertyNames(r).forEach((e=>b[e]=()=>a[e]));return b.default=()=>a,t.d(d,b),d},t.d=(a,e)=>{for(var c in e)t.o(e,c)&&!t.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:e[c]})},t.f={},t.e=a=>Promise.all(Object.keys(t.f).reduce(((e,c)=>(t.f[c](a,e),e)),[])),t.u=a=>"assets/js/"+({27:"84bcd2e8",40:"d64c534f",57:"8310ec5e",241:"dc9d9d7d",242:"bd5231ee",264:"33554c08",280:"c6e2e3a6",286:"aa802b21",288:"95096edc",408:"8a8581f0",460:"04151b48",558:"206a2a76",563:"fddc281d",564:"8b621697",582:"558b8bba",591:"8252d9d1",628:"58ec11bd",631:"c51e6b5a",742:"58802736",920:"60e544e0",949:"e14b20ec",979:"26aa4446",1057:"19be0f52",1058:"47f70b8a",1059:"4c10b97f",1062:"dc6e7ad5",1100:"72b1ab8f",1193:"265e1379",1286:"ce277db3",1332:"010fef8e",1375:"77f6fc98",1405:"7a0e73cd",1447:"9c504883",1451:"react-syntax-highlighter_languages_refractor_gedcom",1499:"68c53b77",1530:"52e10132",1536:"88958298",1551:"3163852f",1554:"bf1a6c1e",1568:"633051d5",1644:"24d1e5df",1683:"435c1d57",1719:"react-syntax-highlighter_languages_refractor_powershell",1728:"9659142e",1766:"5e8a2318",1807:"f0fd5ae9",1811:"8e619849",1874:"9e62c064",1901:"d2d75277",1927:"fff33ac4",1939:"ef91fd67",1941:"11ec5faf",1987:"57c844f3",2071:"a20ed76e",2078:"react-syntax-highlighter_languages_refractor_abap",2119:"d30b4225",2145:"eb36b2c1",2169:"e03529aa",2206:"80753a45",2237:"4cc9f601",2272:"react-syntax-highlighter_languages_refractor_pug",2274:"c98609e1",2280:"07892beb",2328:"4d80eee6",2337:"cc3e5c26",2383:"41b81e12",2385:"52cbf5a0",2416:"c737e91b",2419:"react-syntax-highlighter_languages_refractor_livescript",2468:"12eca085",2473:"164f70ac",2517:"f3e763e5",2549:"c6335d26",2598:"df30a0d5",2614:"49c96c56",2665:"d5606cb6",2666:"88805bdd",2690:"react-syntax-highlighter_languages_refractor_gherkin",2814:"f187f75c",2824:"react-syntax-highlighter_languages_refractor_robotframework",2834:"2cafcb46",2964:"065e482e",3132:"dd8234ec",3169:"ebab6303",3247:"65f9c841",3258:"c336d2d9",3291:"8050d968",3358:"3f92b6dc",3375:"react-syntax-highlighter_languages_refractor_twig",3392:"reactPlayerVidyard",3401:"07a24ab3",3407:"58121f3f",3472:"0858460b",3506:"a0c8f4d1",3519:"0f9e56a2",3688:"cd08d4b0",3694:"265804ab",3733:"react-syntax-highlighter_languages_refractor_lilypond",3769:"a7951825",3782:"a1db62ef",3874:"react-syntax-highlighter_languages_refractor_moonscript",3882:"eb3ba94e",3909:"react-syntax-highlighter_languages_refractor_promql",3921:"bc81f325",4019:"8ff11d0f",4100:"3fb7c2e9",4105:"22b47849",4167:"3cfe152a",4226:"f2eced51",4247:"0a6a88e9",4262:"7a259904",4266:"a62c6278",4289:"089859ad",4295:"30c8b998",4311:"5cdfd161",4377:"509b9638",4400:"feaf005b",4426:"1eaac6a5",4450:"5cea70f8",4469:"react-syntax-highlighter_languages_refractor_powerquery",4732:"8fc26804",4836:"cbf4c551",4866:"8bf829ee",4881:"cf2e8a32",4957:"5aac511a",4987:"54b95c75",5031:"e4a0154b",5133:"421a29de",5208:"react-syntax-highlighter_languages_refractor_hoon",5263:"49c48589",5265:"8a5f3d58",5281:"react-syntax-highlighter_languages_refractor_tcl",5314:"0bdb2564",5407:"daad3ec8",5427:"8343a638",5511:"5a527ab5",5521:"de2fe47e",5529:"react-syntax-highlighter_languages_refractor_django",5538:"367e4fc9",5615:"ee52a4f2",5655:"6765012a",5659:"1f96958f",5664:"6716300b",5672:"2d9fd3e8",5674:"13a4797c",5716:"a8533575",5717:"e1538bc3",5719:"83ca6e75",5779:"react-syntax-highlighter_languages_refractor_solidity",5838:"1bd3ee4e",5864:"d60a63a2",5889:"ce0a1787",5928:"151add9d",5963:"react-syntax-highlighter_languages_refractor_gn",5989:"5adeb76b",5999:"0aa60109",6051:"a0573330",6057:"de89ea4d",6094:"25a66ca5",6124:"6ef00491",6129:"c430b383",6135:"1f164800",6141:"05d06b69",6167:"609b18dd",6262:"804765a6",6268:"11bf9e76",6294:"3f0bde23",6334:"3b5280ba",6344:"40e8d2f8",6351:"ac7da1e4",6361:"94b49ec0",6385:"c0fbebdf",6394:"8e131a02",6405:"95b96bb9",6425:"5e7d406c",6438:"f86d83ea",6463:"reactPlayerKaltura",6476:"326c28e0",6483:"eb48eb31",6497:"a079ddf3",6511:"691162ab",6531:"f89ed123",6550:"7c5f602b",6804:"react-syntax-highlighter_languages_refractor_handlebars",6812:"275fbd78",6815:"65d2ee61",6839:"0bbcffdc",6845:"27de3a99",6893:"edfa1e84",6944:"6c0205ab",6999:"86e65b11",7048:"00c3eb1c",7052:"89a24274",7109:"59bc3ca8",7114:"236d3efd",7131:"c5987ac2",7139:"c80bab8b",7207:"da73f0d9",7231:"c93cd936",7237:"49bb035c",7261:"react-syntax-highlighter_languages_refractor_protobuf",7269:"0d4c2304",7273:"16f806b1",7276:"bd8c0afa",7337:"daf22984",7371:"d1e1b89b",7442:"bd359c2a",7454:"fe9101f7",7457:"45ad5f4e",7482:"2eb67f0a",7508:"34ab9615",7556:"ddbc9423",7562:"d84c8b75",7587:"fc4d4272",7605:"8240de52",7616:"9920bad0",7642:"200945dc",7674:"268d64cf",7686:"6823ceb4",7726:"479bd2e2",7752:"b96f418e",7765:"react-syntax-highlighter_languages_refractor_rego",7802:"df6d0412",7808:"15e516a5",7814:"c41c6f62",7818:"react-syntax-highlighter_languages_refractor_inform7",7854:"9793c9ab",7911:"c794484a",7959:"cf7df211",7989:"1a560913",7996:"3e50d90a",8022:"78963624",8047:"ad846957",8061:"3e0b10dc",8091:"6f7ca108",8099:"9cd0874c",8145:"29b06d52",8209:"01a85c17",8285:"53953b9d",8330:"react-syntax-highlighter_languages_refractor_vhdl",8336:"87242d08",8345:"469a95ce",8374:"d3e8ad86",8404:"350efd57",8417:"react-syntax-highlighter_languages_refractor_nix",8463:"86fed5f2",8515:"035376a3",8519:"971783f9",8577:"6edfd560",8608:"fec35715",8662:"b161e36c",8679:"687b58fd",8764:"11d8605d",8787:"fda12de5",8837:"6d5630c5",8872:"1710ee1e",8875:"278548b2",8878:"269d297d",8948:"f1011b2f",8967:"79599614",8987:"9d710a19",9054:"df2fb0af",9060:"react-syntax-highlighter_languages_refractor_gdscript",9110:"720485e0",9147:"8a96d16c",9149:"a07fa8ef",9240:"b2e24529",9301:"15f8bc50",9349:"66024a96",9379:"131b7b19",9450:"react-syntax-highlighter_languages_refractor_r",9481:"b2e9fe47",9504:"6bc7e0df",9587:"1df6fbe0",9631:"ddc2c0f0",9647:"5e95c892",9691:"fcf92d97",9729:"8aa90562",9771:"react-syntax-highlighter_languages_refractor_keyman",9777:"e2d05215",9784:"54988307",9901:"92c7eab1",9979:"22a80663",9982:"f2395723",10016:"a11ca41e",10047:"451bfaf9",10092:"24909fb1",10126:"5e2c3353",10153:"a74d7d18",10178:"2be0cfaf",10204:"react-syntax-highlighter_languages_refractor_pascal",10292:"ecb2d6d1",10313:"85869fec",10319:"f5140fc3",10323:"54f0ad11",10329:"b919b62a",10357:"8d32d193",10365:"react-syntax-highlighter_languages_refractor_hcl",10371:"d9680a2c",10378:"ccc701e7",10387:"bae01de0",10414:"84e426ea",10418:"5f2e2131",10428:"ea9cad3d",10488:"27172a78",10593:"dc4a2b93",10614:"688f552a",10622:"react-syntax-highlighter_languages_refractor_groovy",10864:"4e13d31b",10921:"84c155f2",10953:"react-syntax-highlighter_languages_refractor_aspnet",10981:"3e51ac17",10999:"c60c497d",11005:"3c32ea34",11048:"d3722b14",11072:"36d9f920",11074:"f7158734",11220:"react-syntax-highlighter_languages_refractor_haxe",11253:"ff34c2a3",11342:"08c1a781",11384:"0cea0860",11404:"95a8c77e",11406:"react-syntax-highlighter_languages_refractor_renpy",11460:"e65ec948",11482:"93cf290a",11505:"b0a511ac",11519:"20aff5c9",11530:"47896812",11543:"c0d396e4",11546:"deabba02",11605:"ce825ef8",11623:"5a354d02",11663:"6be95d8e",11675:"b0663634",11681:"384b5529",11695:"react-syntax-highlighter_languages_refractor_jsx",11707:"3aa26e06",11717:"8af70d64",11749:"react-syntax-highlighter_languages_refractor_erb",11768:"89a2b07d",11770:"71179f0d",11800:"61bfed03",11844:"f0d3c292",11848:"24b4f315",11852:"0e75c1a1",12042:"reactPlayerTwitch",12101:"5b86e82d",12102:"react-syntax-highlighter_languages_refractor_ftl",12111:"c46edbac",12138:"76608970",12171:"6294aeb7",12205:"2c5603d1",12266:"eaca4adb",12333:"ab727a48",12352:"ca216e25",12387:"4fac73d8",12424:"88684b9d",12490:"react-syntax-highlighter_languages_refractor_dataweave",12494:"b78be845",12547:"8f464baa",12569:"462bbb79",12581:"4c1ec688",12609:"4bf4ea84",12630:"7964aea2",12690:"54b88cfe",12748:"d5c39aa1",12762:"92964ffa",12772:"b5a9a661",12801:"af5f45b9",12820:"02b9e427",12892:"62e88fdb",12898:"db0ceabd",12929:"5d1ed832",12948:"bf598913",13065:"cb0a65f9",13094:"1f851c01",13142:"b5bc19c8",13151:"react-syntax-highlighter_languages_refractor_dax",13160:"8cc913f6",13198:"8ebeecd3",13260:"e2a00b72",13268:"977dc6eb",13277:"e6daf1de",13347:"d5cd114b",13360:"8486b8fa",13371:"ad39bf18",13407:"441f3e41",13438:"368e1eeb",13440:"react-syntax-highlighter_languages_refractor_ruby",13486:"007ad6c2",13506:"708022bf",13517:"ebb29d88",13518:"bf9244d8",13559:"2e4bc32a",13582:"cca5221f",13637:"131aac84",13648:"a1cb2e49",13690:"2e0f5eee",13734:"85bd101f",13749:"50a43d1d",13784:"fd092f84",13804:"9cdb2ac3",13883:"ba8b2d87",13911:"399d4577",13927:"a684f421",13979:"7fd476ac",14e3:"99accade",14106:"6f90034a",14118:"c3d37c91",14156:"65b20314",14207:"353365c0",14339:"02b980c0",14360:"dcac528e",14363:"bcc835b2",14387:"8da55221",14519:"2703ef47",14546:"2cf195af",14556:"edf1bff9",14586:"34720735",14616:"ab36059c",14664:"5102df2c",14672:"c4b8d3be",14676:"86ac1f62",14679:"53c639b1",14751:"597e0d1e",14771:"cf49fede",14780:"572ab204",14790:"8edaf9a5",14793:"b7dcdcad",14825:"926e3009",14886:"a3fa124c",14944:"e135ab31",14957:"48e5482b",14981:"2b63e488",15028:"da19030c",15080:"c67d5f1c",15113:"de9cd55e",15121:"531ef78e",15161:"782dba4f",15174:"91864d41",15191:"2ff6e069",15203:"react-syntax-highlighter_languages_refractor_coq",15220:"b6fb4db9",15277:"dd5a0e45",15291:"828f2741",15300:"bed6d8d6",15359:"76fdb267",15408:"038ad548",15410:"d0e186e6",15463:"e91e33b8",15468:"75dcd8ec",15477:"4b2cfd8c",15494:"62c90643",15620:"bd9a1857",15634:"e6970a8e",15676:"b3489a2f",15728:"e30125de",15758:"804b821f",15767:"67515884",15783:"9ab32d5b",15873:"react-syntax-highlighter_languages_refractor_applescript",15934:"e2237170",15971:"38fc7081",15972:"45ac6703",15987:"057ef766",15992:"4a75eabb",16039:"7aac9c4d",16079:"8990d820",16104:"47751582",16120:"6a41d27b",16144:"b5771a04",16152:"b10cc6ec",16168:"a45c903b",16194:"f06a807e",16208:"22bbc4b0",16221:"704af19b",16299:"68f60f75",16305:"react-syntax-highlighter_languages_refractor_csharp",16323:"cf59f57c",16328:"reactPlayerDailyMotion",16396:"974a7ed2",16403:"react-syntax-highlighter_languages_refractor_markupTemplating",16412:"9eb21b3a",16451:"055d2677",16458:"react-syntax-highlighter_languages_refractor_sass",16490:"6e4d9913",16512:"98abf98b",16539:"71522cd8",16550:"fc655ccb",16587:"5540d0db",16671:"f961bcda",16677:"a02d1aa6",16708:"0c935397",16745:"2eb5d71b",16794:"43084770",16822:"bc7fa82f",16829:"react-syntax-highlighter_languages_refractor_ebnf",16834:"bbfd62cb",16872:"860023f2",16934:"c425a1fc",16942:"react-syntax-highlighter_languages_refractor_log",16949:"cb3ab1df",16993:"03c8c5d4",16997:"a41d233f",16999:"9cccdfca",17029:"react-syntax-highlighter_languages_refractor_yaml",17031:"e4950434",17071:"49215773",17148:"react-syntax-highlighter_languages_refractor_io",17208:"aa6393a3",17261:"61eace94",17293:"ff38257a",17320:"a6ce5706",17407:"d7cfe959",17417:"837fb0d0",17419:"react-syntax-highlighter_languages_refractor_solutionFile",17495:"react-syntax-highlighter_languages_refractor_tap",17517:"b90b88f1",17529:"40132c69",17535:"30d42090",17553:"d23236dd",17570:"c022ae0f",17573:"dcac14a1",17595:"9518016b",17610:"627658c4",17645:"react-syntax-highlighter_languages_refractor_phpExtras",17692:"c854accd",17696:"react-syntax-highlighter_languages_refractor_neon",17735:"react-syntax-highlighter_languages_refractor_pascaligo",17742:"9ba6d041",17765:"daecf1ac",17780:"cb416afd",17857:"c2eb94b1",17912:"10b96f29",18003:"9431f4ef",18060:"93782e8a",18067:"8750a788",18094:"bb4410aa",18102:"809e8296",18124:"69958486",18155:"e356e411",18205:"2605ee34",18348:"f250869a",18353:"edf2de7a",18369:"react-syntax-highlighter_languages_refractor_factor",18381:"2db5f759",18401:"17896441",18432:"e9afde81",18438:"698b6e29",18446:"reactPlayerYouTube",18469:"4632ea63",18494:"e9c4bf46",18497:"react-syntax-highlighter_languages_refractor_abnf",18505:"616d86a5",18549:"54b44a2d",18553:"f90a076e",18607:"4c4702a1",18615:"react-syntax-highlighter_languages_refractor_textile",18621:"578d2057",18630:"7aed67a8",18701:"fd0888ca",18705:"2106a8c5",18716:"94c994d7",18724:"1e1ebbc2",18725:"6378b071",18754:"b1f4ebb3",18840:"403c19a8",18867:"5a786131",18884:"react-syntax-highlighter_languages_refractor_purebasic",18886:"a0664561",18993:"6df3e622",18998:"e21c4ed5",19013:"3f924e1b",19048:"react-syntax-highlighter_languages_refractor_http",19054:"eaf4d31a",19072:"df9030e8",19074:"c7d26a86",19117:"react-syntax-highlighter_languages_refractor_diff",19166:"790473be",19196:"react-syntax-highlighter_languages_refractor_scss",19211:"8a0865ae",19366:"aa6173fd",19488:"151b3cdb",19559:"7b906b0d",19569:"e0c90045",19636:"fb19ce74",19657:"5d2b6c00",19667:"70ccb0d9",19688:"react-syntax-highlighter_languages_refractor_git",19741:"85b545e2",19742:"a74020c2",19751:"6e75ae4a",19789:"59de25e9",19802:"35be9474",19836:"d7bd5962",19848:"1dbb113c",19909:"3456be4e",20031:"283967ed",20036:"f8a2fbb6",20060:"f83ae13b",20096:"react-syntax-highlighter_languages_refractor_ocaml",20101:"833193b7",20154:"478957a4",20156:"7696af57",20192:"75c81540",20209:"effa8f82",20247:"d70d51e2",20345:"react-syntax-highlighter_languages_refractor_falselang",20382:"10659806",20405:"fbaa2b93",20416:"efaa9a7c",20451:"react-syntax-highlighter_languages_refractor_graphql",20452:"1585f60d",20473:"8c89ea06",20504:"d26f808a",20557:"bebe0006",20600:"611d590a",20714:"84b5ae79",20715:"1e0266f6",20724:"react-syntax-highlighter_languages_refractor_docker",20731:"d063b25b",20738:"1cc63fde",20804:"0b0d702f",20813:"1fa78379",20833:"89020377",20891:"react-syntax-highlighter_languages_refractor_javastacktrace",20913:"1e6abbb5",20925:"react-syntax-highlighter_languages_refractor_scheme",20926:"7a77a761",21012:"e57aa837",21099:"4b9e6ddf",21110:"09e8b809",21163:"bbd6f071",21193:"b7af393c",21202:"87f9ae18",21233:"9af6d6b4",21269:"a09a24b7",21291:"42ecce42",21302:"c6309d62",21317:"d28bf642",21328:"dce59618",21353:"react-syntax-highlighter_languages_refractor_arff",21385:"react-syntax-highlighter_languages_refractor_dnsZoneFile",21398:"1493b123",21472:"6263a26e",21510:"b0535527",21610:"368b8c61",21658:"00c0805c",21724:"ef6ea4db",21740:"react-syntax-highlighter_languages_refractor_asm6502",21754:"00846ec3",21760:"54ddaf89",21826:"deb7cc50",21890:"d42c418a",21910:"a739f313",21983:"ea59ce26",21997:"6860c5fd",22021:"51994402",22047:"77c0e835",22060:"c2a6a93b",22066:"f20e9528",22110:"d1b09c4f",22125:"fd8c1fa9",22134:"c654f106",22269:"react-syntax-highlighter_languages_refractor_rip",22295:"bf669c84",22297:"6a336643",22300:"808151e7",22311:"e45dc856",22325:"559b3b95",22330:"992bfa5c",22336:"react-syntax-highlighter_languages_refractor_smarty",22337:"134430ad",22489:"2ed2eabc",22507:"731ca5f6",22508:"e4f65779",22585:"react-syntax-highlighter_languages_refractor_typescript",22628:"react-syntax-highlighter_languages_refractor_stan",22649:"e5f5e7be",22680:"36e1259f",22710:"8b648089",22711:"94db3141",22734:"35752ff7",22809:"32988486",22823:"e1732b4d",22883:"78c019df",22972:"42206b72",22976:"7c024dfa",23029:"918d27e6",23043:"2d893d60",23076:"d37decef",23159:"02633482",23180:"69f85179",23224:"react-syntax-highlighter_languages_refractor_objectivec",23231:"a23069be",23267:"6ad2f2bc",23281:"react-syntax-highlighter_languages_refractor_cobol",23300:"560ae20f",23361:"cff13e42",23405:"db5f6e59",23406:"1d92e03a",23410:"26e01f14",23414:"e4ca4709",23616:"b61f4f40",23625:"4dc25e8c",23664:"e8c1830c",23686:"ae0a9328",23706:"003717e4",23750:"eb7d31b7",23771:"96216215",23775:"12dcd077",23826:"1d72346f",23835:"8f1388f0",23877:"f5c055b4",23880:"2baefe8b",23887:"react-syntax-highlighter_languages_refractor_idris",23932:"31c3eda2",23943:"f9841376",23944:"8ead4fc6",23983:"1fd735f4",24050:"00aed27d",24175:"066bda7b",24221:"f83b8986",24237:"173ee416",24265:"60308593",24275:"b9dd72ce",24422:"a8012452",24426:"225481be",24429:"3568cf0c",24430:"9539702d",24439:"2383b453",24504:"d3001a82",24550:"7aada517",24560:"b98aebff",24561:"45879357",24646:"a81fd9ee",24659:"c3a50909",24758:"345f05f2",24812:"6ae8306d",24824:"be0c05e5",24830:"react-syntax-highlighter_languages_refractor_fsharp",24852:"5feae07f",24887:"721b9ffa",24890:"46cde13a",24903:"react-syntax-highlighter_languages_refractor_etlua",24908:"f1785d0f",24934:"88439bdc",24994:"6b03ecea",24997:"0e80cbd4",25020:"34366aa1",25035:"58082cb4",25060:"2c5ed484",25114:"26734393",25173:"604e09d8",25175:"6c00b9b0",25219:"36cf28e9",25266:"539d1863",25287:"0e2e1d8e",25292:"78545271",25315:"e0fd5824",25333:"3b80d618",25342:"4655cc14",25397:"e09f87d3",25419:"3ea5c28a",25445:"55683c80",25473:"153271ad",25507:"react-syntax-highlighter_languages_refractor_matlab",25535:"e3d5f021",25547:"9d19e17f",25559:"react-syntax-highlighter_languages_refractor_properties",25586:"2890cdde",25590:"2af58904",25601:"cae58d6e",25661:"ecb6575e",25733:"d2ef8bf9",25845:"456650f2",25891:"37328ebb",25930:"5de72664",25962:"ea22cc1b",25963:"f2495950",25964:"cb0b69cd",26023:"4f8de05f",26060:"react-syntax-highlighter_languages_refractor_nim",26173:"reactPlayerVimeo",26184:"eaaf191e",26190:"d5e69987",26196:"0afbc094",26228:"96a14053",26246:"b788a960",26257:"c732fedd",26259:"b0f873c3",26277:"1c28c71e",26285:"react-syntax-highlighter_languages_refractor_dot",26303:"b950ae6d",26396:"0bafac2f",26421:"e0c6dc0e",26426:"a9a934dd",26514:"cf1b0010",26520:"5a8a7aff",26614:"78e826e4",26835:"5b3097b2",26869:"737891d3",26876:"4c0c2deb",26878:"react-syntax-highlighter_languages_refractor_firestoreSecurityRules",26887:"ad17591b",26894:"c80c620c",26996:"1957effb",27030:"da47026c",27056:"0d68b582",27165:"199550a6",27202:"react-syntax-highlighter_languages_refractor_openqasm",27209:"e55f2f4e",27341:"28ef8a93",27349:"7a15e007",27435:"bbc30e0d",27443:"00a891f7",27446:"33a7c688",27510:"7e1274f7",27515:"cea7ec04",27517:"f09b4df3",27530:"1218e2bd",27534:"3010f1c9",27559:"4ee824b6",27571:"639a1b7c",27601:"181fd6a1",27615:"92dec2fe",27629:"d30dfcd3",27648:"f43df136",27650:"334aca5a",27705:"react-syntax-highlighter_languages_refractor_clike",27716:"a48096a6",27727:"8870bad1",27788:"070fb884",27812:"c0ef72dd",27822:"2ef8cd6c",27868:"ee18827a",27893:"20dddd66",27902:"63e5f7b5",27912:"react-syntax-highlighter_languages_refractor_liquid",27945:"af56cca7",28002:"dc8f846b",28079:"210622a6",28141:"react-syntax-highlighter_languages_refractor_naniscript",28145:"5ab51f3c",28164:"60a80873",28236:"3ae38b0a",28311:"7b6b775b",28462:"react-syntax-highlighter_languages_refractor_v",28494:"react-syntax-highlighter_languages_refractor_fortran",28603:"2ebc8231",28617:"0f9cd74c",28650:"2499d0ab",28676:"3c9b69fe",28680:"6b23884f",28687:"1c091e98",28706:"4bbed989",28734:"e6fe4cc5",28763:"e91a0703",28783:"438df00a",28789:"429c429e",28801:"17cdd50b",28985:"48d77013",29017:"52181999",29050:"fcb7333f",29084:"react-syntax-highlighter_languages_refractor_makefile",29158:"c354f0b4",29221:"da1a6735",29336:"8ee3b6bd",29419:"11330710",29442:"214805b5",29478:"80ac5db4",29504:"e2d1c1ed",29511:"c3c33ebf",29548:"react-syntax-highlighter_languages_refractor_nginx",29583:"cb23619b",29595:"bbf1a1c4",29615:"8413b679",29627:"react-syntax-highlighter_languages_refractor_markdown",29706:"40bcc614",29804:"7a2d783a",29810:"9a34f2aa",29855:"9d766b13",29887:"react-syntax-highlighter_languages_refractor_al",29934:"926e26ba",29976:"21eb889f",30005:"07d07e4e",30023:"35a84199",30087:"6e369425",30109:"137d3a47",30130:"c222aa0d",30201:"d574981b",30283:"83fd2e4f",30320:"c9ecba79",30325:"d83f50c7",30333:"2d33737a",30336:"ad790d1c",30355:"7176e37b",30370:"36eb743d",30413:"a4dd2e86",30438:"538c3fab",30443:"12c3d0e8",30453:"0311fa17",30483:"37ec961d",30504:"6e1c46a1",30601:"f26ea442",30640:"f5a91e8d",30684:"dd58769d",30713:"cbd3817f",30727:"8fda5026",30741:"b1388f77",30751:"c9f90f30",30755:"c1de8834",30764:"47458dd1",30794:"88429831",30815:"c01655ee",30857:"fe8349c6",30888:"2ae5e355",30893:"react-syntax-highlighter_languages_refractor_dhall",31002:"b27cb526",31138:"5b1bf06e",31142:"4cc7e4a8",31209:"8d21ba42",31239:"react-syntax-highlighter_languages_refractor_llvm",31243:"679d206b",31302:"dcdbe9aa",31309:"96ff8feb",31316:"4abb887c",31374:"2586ad1d",31393:"ff67560b",31443:"70ea09d2",31469:"016c6857",31502:"e9c371a6",31547:"a7302c93",31556:"71473e8d",31622:"73b907a8",31660:"82174fd7",31717:"fe063cf3",31726:"7218584b",31738:"3d1eea97",31768:"e17814b9",31822:"4700fec8",31836:"b5d49b70",31897:"38584736",31992:"17c9af37",32057:"7ab5ef39",32058:"7212c154",32168:"react-syntax-highlighter_languages_refractor_java",32184:"75f9059f",32185:"9990a12c",32270:"react-syntax-highlighter_languages_refractor_crystal",32272:"3b425c86",32300:"23ffa728",32314:"371973a4",32319:"83fd095c",32358:"cfe68a19",32384:"4fe6950f",32402:"b304dada",32415:"49a4fa5b",32431:"4ed82739",32547:"7e41a3f3",32564:"6b91ef2f",32566:"13eeb9b6",32597:"c5f51424",32619:"a71ef9f3",32648:"3f473e3b",32664:"804e189f",32687:"e076279f",32698:"e5593ff4",32723:"b3e62e9d",32742:"react-syntax-highlighter_languages_refractor_goModule",32752:"6a251a09",32768:"ef2363fd",32803:"342da00d",32857:"28372844",32886:"fd19bde0",32917:"4fd820bd",32928:"react-syntax-highlighter_languages_refractor_concurnas",32944:"169f843b",33153:"f13ed2a4",33246:"8f2603c5",33281:"678eb5cd",33320:"c1df4904",33333:"782370ba",33401:"86df7025",33493:"dbac4f0b",33504:"80a636e2",33539:"react-syntax-highlighter_languages_refractor_c",33550:"5e2f8b1f",33589:"d9724aa2",33613:"f668f451",33621:"66c73250",33656:"390740f2",33709:"a018a632",33760:"bd70db15",33777:"ebf5b3b3",33799:"7f50e1d2",33835:"6cbf99a4",33952:"0dabd4f0",33974:"0cf483f1",34048:"e4fa53cf",34075:"36471230",34090:"c41318a0",34093:"6ac9ae72",34097:"6cc106d5",34118:"react-syntax-highlighter_languages_refractor_csp",34336:"react-syntax-highlighter_languages_refractor_batch",34341:"daa659ca",34387:"f8d96fd7",34399:"eeac13f4",34453:"ac91d12c",34475:"25e75d93",34483:"08142ad0",34490:"3025f89f",34521:"dd25e00f",34531:"c7fe9c45",34559:"30dd09fb",34563:"e56961b8",34582:"b4db83a1",34656:"9942af5e",34672:"70f3f801",34678:"201a0500",34681:"0e2937f4",34747:"1ab565ee",34754:"26b4af5a",34796:"07771b90",34857:"56bff0da",34903:"675250a4",34924:"5b412298",34929:"992b795c",34939:"acb8ce8b",34967:"react-syntax-highlighter_languages_refractor_magma",34983:"e7ef37d7",35008:"91e8ebcb",35016:"4a0ea2e5",35063:"3eb1c3c4",35077:"4e2955b0",35106:"c6ea8a09",35150:"278f5c51",35209:"d945d2e7",35267:"eae386c9",35306:"696cc2ce",35397:"41b5f16a",35414:"35d7d22b",35447:"00c89828",35475:"ef51dad6",35491:"7ed328b7",35562:"d939f5f5",35603:"967a49c1",35703:"baa3bdcd",35785:"a5746cd4",35805:"69b3b150",35806:"2a637248",35827:"0287ff23",35837:"5212040f",35870:"57269503",35884:"0fe96742",35920:"8371f7c4",35966:"3f502d21",36020:"cae55ba7",36030:"8810f664",36033:"6ced10a4",36103:"e9c8bbd7",36137:"adaab7df",36195:"e487c8e6",36198:"f825aee5",36211:"07646cfb",36212:"079f615e",36225:"4ed67237",36227:"2b5167f1",36242:"987c2424",36258:"29ae3a93",36268:"react-syntax-highlighter_languages_refractor_avisynth",36278:"9a49ff8b",36321:"daba2da9",36332:"e9936e5a",36353:"reactPlayerPreview",36388:"716244e8",36477:"0ad4a848",36491:"421a17ff",36499:"337ac029",36509:"b4b2283c",36526:"97985e22",36537:"e4b329fa",36559:"1b82c7d9",36575:"9786a9ec",36617:"30618897",36628:"5cc8ca0f",36631:"737649ca",36652:"3e42ceaf",36715:"0a67fbc9",36787:"a6c6c313",36861:"416483b8",36871:"d2a9d211",36938:"2d45f6c7",37003:"afc801d1",37019:"c7a422cd",37037:"81d0f39e",37044:"8d0b89ff",37115:"68188daf",37130:"f67c1695",37171:"798d2723",37191:"cc41b2f5",37195:"7235d708",37228:"react-syntax-highlighter_languages_refractor_asmatmel",37242:"6ad61205",37249:"874ae5fd",37282:"4475f555",37322:"42b54026",37349:"3b253872",37361:"e76e77ba",37382:"c168b77c",37387:"65351f68",37399:"0f2d26b6",37410:"7b300f5f",37425:"684a8e80",37495:"react-syntax-highlighter_languages_refractor_yang",37539:"400df662",37572:"8c5c6aa4",37581:"react-syntax-highlighter_languages_refractor_eiffel",37614:"066f1fb8",37636:"75fa0d79",37643:"a6aa9e1f",37654:"ff34ab38",37661:"e9325ad9",37711:"57158e32",37717:"e2b6763a",37743:"react-syntax-highlighter_languages_refractor_warpscript",37841:"5190dab0",37892:"7bb65623",37904:"react-syntax-highlighter_languages_refractor_csv",37907:"de390d23",38070:"2823facd",38075:"2119c1e2",38081:"d84577d9",38099:"682f6497",38131:"9097d858",38154:"7d2a1e49",38234:"d24e03c4",38300:"react-syntax-highlighter_languages_refractor_ada",38308:"504ae1ba",38329:"8aa4234a",38339:"2f85cf1a",38386:"d8234f55",38403:"54c9ac3f",38413:"445badb6",38478:"2a9ef828",38500:"b50ddde7",38550:"c303c441",38561:"486a139f",38584:"react-syntax-highlighter_languages_refractor_plsql",38588:"6511b439",38621:"a315deb3",38674:"169627b2",38724:"d3155368",38725:"b7b23aa0",38749:"e82b7062",38773:"d95083ed",38791:"51e2b9b2",38809:"2bf5cfee",38963:"1f67849c",38964:"fe0ceb55",39047:"592f8e2a",39059:"react-syntax-highlighter_languages_refractor_less",39094:"88879bf9",39147:"18a4a555",39174:"3484aa91",39230:"9a985c31",39245:"bf5d98b4",39294:"a25e84b4",39322:"react-syntax-highlighter_languages_refractor_basic",39428:"f4ab8097",39430:"3a0bcb93",39604:"0e9131e7",39713:"ca8035eb",39730:"b70cacd3",39775:"297bf93b",39865:"dbfc931f",39868:"88e12ebd",39869:"06e7c4eb",39876:"7e40ac29",39920:"d27f5625",39922:"7048d4ce",39964:"react-syntax-highlighter_languages_refractor_gml",39975:"1ec70417",39991:"4ad7c3a7",40048:"33ed5c55",40080:"44da012a",40109:"9ff4a30a",40170:"fc3311f6",40175:"98564943",40256:"3059c001",40269:"react-syntax-highlighter_languages_refractor_erlang",40314:"e255d312",40318:"0b078435",40341:"d5c9d331",40370:"d677aac6",40458:"54968223",40494:"23036166",40510:"1cd8632f",40543:"637e72cc",40550:"09a58613",40578:"b8d5d32c",40587:"react-syntax-highlighter_languages_refractor_qsharp",40653:"5ae56628",40675:"7245b967",40676:"c272450b",40756:"99cd8ab7",40757:"8ed09d5c",40765:"2835814a",40771:"4b93b620",40844:"1dc5c4ab",40881:"5b7a800c",40883:"43da222d",40886:"38e25f39",40904:"81c108ae",40925:"249fb7f2",40956:"838b5b83",40973:"9fe80417",40999:"cffd3109",41029:"9f0b35a2",41125:"9a80a9cc",41162:"ed27be7a",41196:"b2f1ec6b",41209:"3d401b68",41237:"85b3c4be",41250:"66b70b55",41278:"f913c9e1",41310:"88e50461",41418:"3873cc26",41438:"ff940ee8",41484:"6509bd7f",41533:"9d583bbc",41550:"react-syntax-highlighter_languages_refractor_nand2tetrisHdl",41557:"321bc46c",41695:"289e4581",41763:"07dacd47",41783:"5d12b69a",41787:"d3911073",41841:"96ac8335",41870:"fa28b8ae",41883:"2103ef9b",41899:"b1f3581b",41953:"edab235e",41997:"729c9d8f",42014:"987115d4",42098:"ef7e9322",42117:"0c368d1a",42129:"react-syntax-highlighter_languages_refractor_javascript",42258:"react-syntax-highlighter_languages_refractor_aql",42371:"20565400",42374:"react-syntax-highlighter_languages_refractor_vala",42542:"c756e6f1",42547:"72295bf7",42585:"5607dd87",42594:"068107c8",42649:"38ebe2a8",42674:"react-syntax-highlighter_languages_refractor_rust",42700:"e2b8f3b3",42706:"ebf6d32a",42779:"7ec16b44",42850:"774c2114",42875:"react-syntax-highlighter_languages_refractor_dart",42916:"29607d76",42939:"98869011",42947:"1cd504d5",43065:"a11eb45c",43082:"2331f9e0",43171:"662feac7",43203:"5453b8ab",43205:"f8d3051e",43244:"85d80a2a",43246:"0d999725",43311:"react-syntax-highlighter_languages_refractor_tremor",43362:"82f87a0a",43371:"0730a75a",43373:"d8036dc6",43384:"70a9316b",43385:"1354288c",43396:"aafbd2cf",43399:"8544a0ae",43415:"ed04f1fb",43447:"7eeb0290",43492:"88cf06e5",43512:"d61cad73",43518:"c9a36032",43588:"e16fb186",43628:"a14c09e8",43657:"react-syntax-highlighter_languages_refractor_agda",43702:"3e5eea78",43725:"df8fcf34",43774:"3cd58ed7",43784:"fa5d4061",43864:"3ac01926",43867:"47d7a97c",43923:"d4a3106e",43929:"f77d0a36",43966:"3e43f116",44e3:"4160c096",44071:"b2a19ece",44164:"3d361716",44174:"b082f98f",44189:"6456cd00",44226:"5cbc3ad8",44263:"df895394",44284:"2d855ded",44315:"65dcd0ca",44321:"fd0a6753",44335:"db2831c5",44367:"1255c446",44416:"4d79096d",44422:"5e4beff6",44485:"59b1a96c",44498:"cd5af42f",44572:"react-syntax-highlighter_languages_refractor_sql",44603:"4576c8f1",44613:"86600345",44728:"8a64b13b",44760:"5352c3c1",44840:"c61b9d11",44843:"504bd232",44928:"react-syntax-highlighter_languages_refractor_cssExtras",44991:"9e1d9aa8",45006:"ecb2acb7",45020:"cc94ceb0",45041:"785022c5",45086:"4a36bee3",45134:"f5cb549a",45165:"3b01df24",45168:"dbf95cdb",45219:"41880870",45362:"4ddf9e85",45377:"98126bff",45379:"468ad1a5",45391:"0a3230e0",45399:"f0ec427a",45421:"8d19c782",45424:"react-syntax-highlighter_languages_refractor_pcaxis",45457:"2153f0f1",45473:"05ad514f",45482:"f9769a03",45538:"d9200ea4",45562:"119d0848",45578:"react-syntax-highlighter_languages_refractor_lua",45595:"52942f55",45605:"a5007b69",45615:"c3ef55e1",45633:"b47c3d90",45644:"31587db3",45655:"react-syntax-highlighter_languages_refractor_javadoclike",45664:"befd4bac",45688:"05841abf",45708:"a3a23757",45716:"ec2e8dec",45817:"6f68f3d9",45820:"3ef50eb7",45852:"react-syntax-highlighter_languages_refractor_xquery",45907:"ad7224a5",45916:"fbcdf376",45941:"e8817881",45956:"e0e75d4c",45957:"92867ac8",45977:"789a2e0b",46005:"bfd21d2e",46031:"5eee080d",46039:"a7369545",46098:"27a3eb30",46113:"33656b47",46148:"react-syntax-highlighter_languages_refractor_gap",46155:"67cdfdd2",46202:"5a815dde",46260:"a14ce513",46268:"dca0b9a7",46277:"6dfef0d2",46289:"7cc24991",46337:"6c0c92f0",46364:"189b1efe",46365:"a4177967",46370:"09f1b7a9",46510:"2d1f93fd",46560:"58b7b0b9",46608:"a25104ca",46614:"f061e388",46627:"5842531b",46684:"react-syntax-highlighter_languages_refractor_uorazor",46781:"343b998b",46783:"react-syntax-highlighter_languages_refractor_birb",46885:"b768d931",46895:"f3000fed",46932:"91cbdd24",47009:"26d4c39c",47030:"a1aecbfd",47078:"38cfee2c",47160:"0312cb91",47242:"249b7bb3",47249:"c3e81286",47268:"9c0047fb",47335:"673a4276",47362:"d2dfded4",47373:"81856798",47381:"9aaf6652",47474:"react-syntax-highlighter_languages_refractor_j",47484:"45fe6289",47508:"react-syntax-highlighter_languages_refractor_ejs",47627:"reactPlayerStreamable",47633:"e107c103",47659:"f42ee828",47681:"react-syntax-highlighter_languages_refractor_cshtml",47702:"react-syntax-highlighter_languages_refractor_uri",47747:"react-syntax-highlighter_languages_refractor_monkey",47767:"971a38c6",47784:"35cc95ed",47809:"0905db6b",47819:"47c18f0a",47821:"d01de654",47842:"dfa1c318",47868:"714b46c2",47893:"90160847",47982:"5ecc0e0d",47986:"6556f82c",48069:"617b3977",48073:"ce1419d7",48084:"f01ca2d8",48093:"48723664",48124:"a2a9ccee",48130:"8243d093",48135:"ab490682",48165:"e53b46e6",48179:"c5dc0443",48217:"react-syntax-highlighter_languages_refractor_editorconfig",48260:"ecfe4b02",48290:"1fa82a9c",48293:"359ea0ad",48296:"react-syntax-highlighter_languages_refractor_toml",48298:"3a9eba13",48306:"74a76ae0",48311:"154e5729",48330:"dc72c761",48358:"react-syntax-highlighter_languages_refractor_sqf",48383:"466f2ba5",48399:"932dd2b2",48407:"react-syntax-highlighter_languages_refractor_purescript",48410:"e409a3e8",48447:"8bc64f72",48448:"17fdb443",48466:"1d88f516",48479:"ef68cf0d",48495:"ba008c6f",48580:"57b63635",48607:"b0253b15",48614:"8564442d",48615:"6556f365",48628:"react-syntax-highlighter_languages_refractor_n1ql",48658:"react-syntax-highlighter_languages_refractor_nsis",48699:"3d9ee3c2",48724:"489198f0",48759:"1af51ab1",48769:"fff9a5a8",48820:"b9051fe3",48828:"de04d5f1",48842:"5b72e761",48872:"4f377837",48889:"2204bfae",49056:"a5141df7",49099:"react-syntax-highlighter_languages_refractor_parigp",49166:"ac1c1640",49184:"36636520",49193:"3bfe3344",49240:"095de2dd",49299:"0aa63ed8",49364:"5e57a6c5",49393:"9386137a",49418:"ca542251",49437:"16b624cd",49446:"55750b70",49470:"72190dff",49486:"d8da99b8",49516:"0db32707",49524:"e5928ccb",49558:"react-syntax-highlighter_languages_refractor_nevod",49688:"947f17cb",49706:"react-syntax-highlighter_languages_refractor_jsonp",49708:"85de6f50",49718:"d2e3ede3",49721:"e025d293",49741:"eb2a481c",49775:"59c2f98f",49816:"a4d22044",49826:"278ba6f1",49841:"react-syntax-highlighter_languages_refractor_bison",49910:"9790ecbd",50010:"58f19833",50015:"8515ba4d",50055:"489e804f",50070:"fb9907fb",50079:"2f6b6a72",50086:"dfc0f77b",50108:"08a2857f",50218:"9e78a629",50247:"1dd9bc03",50256:"06820533",50261:"b1918c75",50267:"react-syntax-highlighter_languages_refractor_cpp",50269:"react-syntax-highlighter_languages_refractor_parser",50273:"60a318f1",50355:"10caada3",50376:"459ece75",50429:"react-syntax-highlighter_languages_refractor_squirrel",50480:"c0b3a545",50524:"d7d82fec",50546:"react-syntax-highlighter_languages_refractor_javadoc",50559:"8fdf5cbb",50565:"6252d82a",50570:"b9157fbe",50627:"1b902f42",50633:"7e5acbc2",50677:"b89e34d7",50689:"28fb790d",50720:"b98a3192",50868:"fa0df550",50902:"react-syntax-highlighter_languages_refractor_jsstacktrace",50999:"7ddca44e",51076:"fb9d6a90",51126:"4894b2a5",51173:"1bb6e888",51197:"76aeeccf",51203:"bb5bc141",51230:"dccd5c7f",51261:"beb08ea5",51379:"5050e06a",51461:"e999d2e7",51476:"697b868e",51629:"da23fc7f",51698:"5a59ec38",51755:"acf3467f",51766:"52d9ca0e",51767:"ee41e96c",51786:"88bd1ae2",51853:"862cc2ae",51877:"5e7ceeac",51942:"972d9de3",51957:"b558b8bb",52059:"484cc2bf",52109:"5f63aa22",52123:"9e526c82",52187:"0949caca",52300:"9250359b",52323:"76c74c51",52338:"9cb3eb52",52350:"f430165d",52488:"c81bc7c4",52507:"e0e9c6d2",52520:"c0a1d8e7",52535:"ef889477",52575:"6208b38e",52602:"60075e55",52659:"3ef698e0",52670:"1760de55",52687:"da4a64b8",52711:"9e4087bc",52723:"reactPlayerMux",52736:"82d05188",52744:"1d691ac0",52771:"d61388e9",52824:"1a864cfe",52826:"3a84c761",52841:"f2480ceb",52870:"eaada425",52923:"1a4e325c",52950:"b7dbfcf5",53043:"5e7e9614",53059:"10216bca",53073:"b252d933",53104:"a2ae2293",53146:"react-syntax-highlighter_languages_refractor_pure",53155:"53829f6a",53244:"react-syntax-highlighter_languages_refractor_kusto",53290:"bf6cf1a0",53312:"857c9abd",53331:"1f4447b0",53340:"f2f586ea",53341:"a459382d",53346:"5b8828e9",53357:"c5ccab0a",53365:"1433766f",53373:"33b98b0e",53394:"8904d039",53411:"react-syntax-highlighter_languages_refractor_wolfram",53434:"e418e4b8",53512:"d5427438",53532:"c953d876",53533:"react-syntax-highlighter_languages_refractor_css",53535:"8d4a694f",53559:"e5ca2a09",53577:"d7b89466",53578:"9b1b579b",53633:"1eb9cbd0",53771:"33e591db",53844:"445fc630",53856:"f5330583",53883:"d09b5381",53894:"588bbf84",53926:"0e799f7d",53950:"react-syntax-highlighter_languages_refractor_json",53956:"ab0b233d",54024:"2acc85a0",54123:"ec7105bc",54130:"f856d019",54150:"1b384b21",54154:"9463bbe8",54190:"f7a0609b",54225:"3d9c0803",54270:"b7a87925",54305:"385b7a8b",54321:"985df1c8",54425:"6f7aec64",54439:"13587b6f",54443:"e7754b42",54488:"d5d5b97a",54521:"5b6b73b7",54544:"99e85153",54551:"d18a26dd",54578:"reactPlayerWistia",54583:"3d63fc2c",54637:"b85a9f98",54643:"1526b72e",54680:"5d3c38b9",54779:"react-syntax-highlighter_languages_refractor_icon",54809:"1f0b0f87",54836:"4cce6c45",54864:"4d813ae9",54923:"1331cac1",54924:"b2204922",54941:"2ee7302f",55123:"16cb573c",55134:"d4fd02a2",55172:"b6070a89",55196:"7e597538",55204:"8ddb77b9",55228:"136d1781",55254:"react-syntax-highlighter_languages_refractor_racket",55340:"42891609",55354:"7caa11fe",55413:"51f6fe90",55436:"b5a8b287",55491:"b9ec351d",55567:"d307b2e7",55636:"450ea376",55682:"fd3999a2",55689:"c39b98ae",55740:"654302d1",55759:"c39e9ffc",55838:"39c4eb85",55905:"79aae9ae",55918:"51e54913",55923:"cacaa339",56220:"8623028f",56276:"4c41c9c0",56279:"0eae0f27",56309:"react-syntax-highlighter_languages_refractor_systemd",56356:"a09cde74",56370:"73611494",56462:"d199957e",56513:"db89881b",56520:"456c6382",56649:"de65c9ca",56659:"react-syntax-highlighter_languages_refractor_n4js",56745:"0c8a934d",56786:"b29ba058",56863:"3c251c9b",56877:"26cc18e4",56894:"88ee6ffe",56935:"5ce82fd7",56941:"bf47a095",56949:"733ff2e4",56980:"8051ae43",57101:"3a8bd4bf",57155:"684eee01",57257:"1cee73ee",57275:"2b4792e5",57362:"e1498222",57390:"bf0a32f5",57446:"382e7033",57452:"6d461a16",57477:"652a49f9",57513:"0c4a29b5",57547:"0d31935c",57564:"66e058ba",57611:"1e37458e",57643:"59787bf6",57753:"c541a70c",57764:"ed4087e4",57800:"604cdde5",57810:"e9c59f9e",57870:"0a70c105",57897:"bca99e98",57912:"5cedbb53",57925:"be0253a0",57940:"441d194b",57946:"0ca0b0dc",57958:"7496857a",58004:"9fc89130",58006:"a10a40b8",58015:"34f0c71b",58027:"42535bf1",58154:"fb8d6a8b",58184:"c9f5fef1",58212:"d80f1f80",58232:"296f4fae",58243:"40c229dd",58369:"08a5ee24",58382:"21f8fbc5",58385:"530b174d",58400:"ec9d0c94",58406:"da086284",58426:"7979c47e",58435:"react-syntax-highlighter_languages_refractor_bro",58470:"069db899",58492:"26bd05d8",58496:"cf4e5fc9",58501:"ff95dbe5",58524:"react-syntax-highlighter_languages_refractor_haskell",58529:"ad9e86c8",58533:"115d24a6",58579:"758d3ea7",58625:"react-syntax-highlighter_languages_refractor_jsdoc",58653:"417344d1",58701:"cdfd964d",58724:"4a273e94",58737:"2c52c506",58779:"ccb430af",58797:"d7d61170",58874:"react-syntax-highlighter_languages_refractor_phpdoc",58885:"9db2d1a3",58898:"a1625a56",58899:"0930826d",58967:"react-syntax-highlighter_languages_refractor_webIdl",58988:"a0197bc0",59e3:"60c08eab",59077:"fabd6f9d",59080:"1380f56f",59083:"023fb35c",59121:"807581be",59228:"7b9efe2c",59259:"react-syntax-highlighter_languages_refractor_julia",59267:"bb7fbc9b",59339:"573ce20c",59364:"281af881",59400:"react-syntax-highlighter_languages_refractor_xmlDoc",59416:"react-syntax-highlighter_languages_refractor_wasm",59457:"5716a2db",59474:"2aa88386",59493:"react-syntax-highlighter_languages_refractor_cypher",59572:"b698923d",59595:"02c6cf8b",59613:"b933f59c",59638:"react-syntax-highlighter_languages_refractor_visualBasic",59670:"eed6e9fa",59682:"f6e782f1",59689:"d74ba37f",59693:"6a46ba5c",59697:"136e60ba",59709:"e0f251e8",59720:"0066d393",59776:"ab3396d1",59802:"react-syntax-highlighter_languages_refractor_zig",59811:"362ed32e",59872:"e55a4fef",59893:"d648e0dc",59918:"911d8c7f",59948:"274493b4",59959:"c5d0f198",59990:"dfbdb6e6",60026:"ccd9b945",60056:"8876920a",60060:"71d3d938",60105:"a2c4ea39",60150:"55013e73",60171:"f576c39e",60180:"7caeede7",60233:"082096a6",60274:"ab3a66ff",60318:"12163d80",60372:"59b25598",60397:"react-syntax-highlighter_languages_refractor_lolcode",60438:"4abb65f9",60635:"5b3d51ee",60645:"f1ae2ab6",60661:"e294a72f",60688:"375142f7",60704:"59be7119",60731:"78232d1a",60750:"119b5944",60795:"39d24ba3",60916:"0c5d4dc6",61062:"1a606663",61077:"09df528d",61259:"547da171",61269:"6696da19",61270:"c407fafb",61331:"86ed2047",61449:"f86990e3",61458:"d166fe6e",61487:"5c7abbfb",61499:"e7369992",61538:"5564a6f2",61591:"7999f1c8",61596:"d057c98e",61626:"react-syntax-highlighter_languages_refractor_coffeescript",61644:"443fb58c",61658:"bd0998c4",61684:"60000333",61734:"d4309a19",61745:"7f29bbea",61768:"0850322a",61789:"2ab56b4b",61825:"6fbe6a20",61834:"85816216",61867:"6453f134",61869:"fffa417e",61892:"7e45ec3c",61940:"d6a94e06",61955:"ef005f66",61984:"da1cffb4",61999:"0b966913",62018:"4f27f596",62030:"1edb61db",62059:"c4a1f4c8",62076:"3611c18f",62094:"691ed9da",62138:"1a4e3797",62145:"e7ad37fe",62180:"1433b888",62187:"ad924d3c",62253:"73180335",62255:"00b08266",62266:"react-syntax-highlighter_languages_refractor_scala",62278:"9ce6dddd",62331:"1d525bc6",62369:"ec129530",62447:"f186fa15",62526:"3c615ee9",62557:"595a064d",62586:"64a60d91",62623:"7ee78ddd",62633:"e44e64d2",62686:"85cca100",62700:"react-syntax-highlighter_languages_refractor_d",62702:"84176ea9",62703:"react-syntax-highlighter_languages_refractor_glsl",62748:"ef8a130c",62784:"c40457f4",62798:"d335c13c",62814:"c299247c",62879:"d51139b9",62900:"dd55089f",62924:"8e184430",62926:"424f7822",62972:"ecb76145",62987:"1744d9ef",62996:"react-syntax-highlighter_languages_refractor_kumir",63109:"3b55fa84",63189:"react-syntax-highlighter_languages_refractor_asciidoc",63192:"4e468cb5",63229:"1d6952be",63240:"e2aabbf2",63257:"react-syntax-highlighter_languages_refractor_avroIdl",63317:"3d433104",63347:"67110b34",63361:"65b2603f",63429:"4f305e9d",63501:"6437651f",63512:"c9d00955",63514:"react-syntax-highlighter_languages_refractor_shellSession",63540:"ae8a03f1",63544:"a7684126",63563:"react-syntax-highlighter_languages_refractor_soy",63564:"e8673c18",63617:"f3d53788",63649:"2fe40030",63734:"5c81920a",63778:"fb082bc4",63829:"dc513550",63838:"78fb8ac4",63862:"7508e420",63879:"355cddc1",63912:"7cbcc085",63936:"62c63405",63944:"a2ef8f4a",63945:"f8f774f6",63956:"3ca2f5e8",64056:"9c43bca2",64107:"12750430",64118:"f9d43cd0",64165:"b7928f35",64172:"c63a6bf2",64265:"cb021527",64266:"62dd094d",64276:"01258f32",64322:"44ad1539",64376:"46e3eb97",64405:"2d2846a3",64429:"8b423c88",64452:"3399f83d",64521:"c2e411a7",64598:"7a92f3a2",64625:"3d715aaf",64637:"6932e7e9",64649:"react-syntax-highlighter_languages_refractor_prolog",64669:"e7eebdd2",64741:"f47381a8",64757:"b9037fb3",64769:"dd6e7426",64789:"react-syntax-highlighter_languages_refractor_apl",64916:"react-syntax-highlighter_languages_refractor_lisp",64930:"react-syntax-highlighter_languages_refractor_tt2",64957:"076f04c4",64958:"42358eea",64966:"053cb7b9",64972:"react-syntax-highlighter_languages_refractor_elm",65005:"ee2c6227",65108:"5fe15dfe",65154:"f8c45d49",65211:"72851bf5",65214:"0366a4ab",65318:"102dc9d8",65443:"7f44bfbe",65506:"d0cf869c",65530:"746d0e9d",65541:"cbd403e1",65546:"84c33ac6",65555:"55585569",65558:"aef47f3c",65574:"f017e80d",65584:"b18c5707",65644:"ee60c80b",65704:"4c18ed88",65727:"9a3834db",65747:"react-syntax-highlighter_languages_refractor_antlr4",65768:"10f60329",65800:"d42442ad",65801:"bbaea50b",65833:"55efc743",65862:"b4422cbf",65893:"e84f4d3b",65908:"ba6db769",66051:"4e938852",66108:"4cc3e184",66151:"bbc1526c",66160:"ded3cf55",66167:"8668037f",66179:"0a883215",66253:"e792eed9",66269:"73324267",66294:"b31fc0c1",66302:"b87db3e4",66321:"4796a906",66326:"4c6aea94",66333:"react-syntax-highlighter_languages_refractor_brightscript",66335:"1b8b44cb",66377:"3d855a71",66391:"4c747e24",66461:"0781cab6",66464:"0f5ebe93",66476:"df2e5c06",66498:"991fb41c",66503:"react-syntax-highlighter_languages_refractor_qore",66543:"9ad862d6",66559:"d126772e",66570:"21d4be1f",66580:"d77891b1",66681:"8230e064",66685:"83b030ee",66721:"296c0e6c",66744:"b417c6aa",66785:"06721981",66814:"react-syntax-highlighter_languages_refractor_qml",66974:"d0c584e6",66988:"7c01d80d",67012:"c87c86f8",67021:"af7a29e3",67033:"4792e0e4",67046:"react-syntax-highlighter_languages_refractor_mongodb",67077:"9f6d52d0",67098:"a7bd4aaa",67099:"f2fb7a7e",67131:"4e2df8d1",67163:"93937d89",67188:"19d1e53c",67197:"d317da6b",67210:"3f061afd",67212:"4ac39b16",67233:"react-syntax-highlighter_languages_refractor_mizar",67251:"f2b0b23c",67348:"dd05240d",67356:"6d046fd1",67360:"1bd8ecb4",67409:"e38562d3",67430:"1bef7206",67459:"2355cca6",67463:"8c96a320",67489:"57603724",67507:"1c0e45ac",67509:"97421d25",67510:"ec737569",67554:"01cd3e16",67567:"cb2a4682",67570:"reactPlayerMixcloud",67741:"2c8a0136",67760:"ce85bb56",67775:"808a0f07",67778:"5e1dea42",67786:"d285a603",67824:"react-syntax-highlighter_languages_refractor_unrealscript",67844:"db2b8f72",67853:"a17829df",67880:"react-syntax-highlighter_languages_refractor_sml",67904:"0d9bb350",67970:"c705508e",67984:"f75e9c39",67994:"325894d6",67996:"107641aa",68083:"1368b7ad",68103:"eb9a02eb",68167:"a7695677",68169:"react-syntax-highlighter_languages_refractor_mermaid",68188:"26aa5820",68241:"af69b723",68249:"f964c4d2",68280:"e19e6f29",68284:"3f6c4654",68291:"7f4249ac",68302:"aae300c2",68325:"b3e46864",68405:"ff5e8246",68442:"f6ffd881",68483:"158bfad3",68516:"e755d0e6",68532:"1e5e38d2",68565:"react-syntax-highlighter_languages_refractor_psl",68589:"91808e49",68651:"6e8eec15",68658:"31c91ca6",68665:"react-syntax-highlighter_languages_refractor_excelFormula",68697:"40e8ceb7",68718:"6ab2947d",68755:"react-syntax-highlighter_languages_refractor_bbcode",68794:"f7890f03",68807:"02ef4c57",68827:"26fcf1a9",68857:"28abe367",68887:"a673bf6e",68960:"2374e6f8",69036:"a6fa8647",69057:"ef64c4f2",69067:"c08d19cb",69122:"66dcc4b5",69141:"38603233",69160:"f825d23a",69320:"77950fa2",69347:"b9ea81b2",69405:"950931e2",69418:"5ace20af",69443:"7c7d428a",69477:"4682d2d8",69538:"a924e136",69589:"6d09db5d",69699:"8ea8e566",69706:"ee44e581",69727:"aa4191a2",69739:"2c7448ca",69791:"f42f81c6",69813:"57037ddd",69919:"ee7da673",69920:"3d573c2b",69959:"5e7680af",69979:"reactPlayerSoundCloud",69984:"080a10de",69998:"23fb7a7a",70004:"7ba16f8f",70134:"2b4aad25",70137:"d1af5c8f",70158:"react-syntax-highlighter_languages_refractor_stylus",70166:"e4c53779",70194:"c31124d7",70202:"cf87040e",70206:"react-syntax-highlighter_languages_refractor_turtle",70274:"37af6c2e",70285:"9d8d3b82",70323:"f25eb25a",70410:"8efdab61",70452:"react-syntax-highlighter_languages_refractor_hsts",70479:"df744780",70500:"963b4e80",70577:"072a25fc",70673:"93992acb",70683:"f39fe5e1",70689:"9ecc99dd",70691:"29a327f0",70715:"b7405323",70749:"f26021be",70787:"9fe72ec7",70796:"20bc3b2a",70846:"c86fcd09",70901:"be6ae73c",70904:"react-syntax-highlighter_languages_refractor_apacheconf",70936:"17a70d5d",70973:"20325a74",70975:"d87902f8",70987:"d6c81112",70992:"f9fda3b4",71033:"530f4156",71089:"ee190ecb",71114:"react-syntax-highlighter_languages_refractor_verilog",71134:"a1a74ff7",71170:"82abf28b",71191:"react-syntax-highlighter_languages_refractor_smalltalk",71219:"08abace2",71249:"39ef07bf",71284:"50ae2127",71293:"a8e711ad",71338:"fa5754de",71407:"ab11b089",71522:"c009e0ea",71544:"fadaa97b",71545:"ba53c358",71547:"7e94978c",71575:"ec3d1d8f",71633:"d7155f24",71670:"b0a7cefa",71695:"aac8f64c",71784:"ac393c34",71786:"a9652de9",71897:"42ba7a72",71950:"5b08419b",71975:"cffab271",72132:"ad462f8f",72168:"14ab434b",72194:"1f42e7e9",72213:"511cd196",72226:"56244f75",72312:"5d1b72a5",72331:"react-syntax-highlighter_languages_refractor_sas",72370:"42e26ccb",72373:"8f4dec9c",72444:"4b7797e4",72478:"9c7cc367",72498:"437ede7f",72524:"d8a0d145",72638:"react-syntax-highlighter_languages_refractor_ini",72677:"0a1fbee2",72688:"react-syntax-highlighter_languages_refractor_flow",72758:"6801b6db",72762:"dada8f94",72791:"a75775f6",72799:"5840731b",72825:"8920885f",72842:"09b3005f",72891:"ef25b615",72905:"c493b44e",72923:"d79a09c1",72926:"a830e4b2",72942:"61eef94c",72961:"react-syntax-highlighter_languages_refractor_elixir",73e3:"1d03d6e2",73008:"68666167",73032:"a0dead3c",73078:"d667c0b1",73079:"1afa4d9b",73108:"5d03c6ac",73114:"00fba8ee",73222:"914dafa9",73294:"d2777c07",73305:"f8bc10ee",73314:"60f30c52",73420:"f5d7fbb5",73428:"38ef95cd",73435:"1157c0a0",73458:"9cbcbba7",73486:"b1b6f51f",73565:"react-syntax-highlighter_languages_refractor_bicep",73631:"321aeb62",73657:"7fef1252",73702:"react-syntax-highlighter_languages_refractor_wren",73728:"50c9449c",73740:"b099d865",73764:"react-syntax-highlighter_languages_refractor_splunkSpl",73770:"e5ce14ce",73784:"0461a59e",73792:"react-syntax-highlighter_languages_refractor_t4Vb",73814:"cca22f55",73841:"0707bfdf",73872:"cbff81e6",73907:"cef80e7b",73933:"66ba1253",73949:"6cab2901",73966:"86ea5176",73993:"ac4a5bdf",74080:"60b3a959",74086:"089a82e6",74100:"e3fb89bd",74128:"67ad386f",74139:"5255a2aa",74150:"react-syntax-highlighter_languages_refractor_python",74182:"e8f488f2",74231:"6ba34660",74256:"1424de6e",74274:"7f8a8201",74290:"0c8b9d2e",74314:"8bf21c87",74344:"c6d88f19",74348:"aed1a1f8",74378:"d0943c22",74379:"6f41f982",74394:"9d60ab49",74403:"ea5f7c81",74408:"7ac630cd",74415:"react-syntax-highlighter_languages_refractor_jq",74447:"react-syntax-highlighter_languages_refractor_autohotkey",74534:"a03ea81f",74559:"react-syntax-highlighter_languages_refractor_maxscript",74603:"aa075c5b",74685:"0b7fbfc6",74692:"215406cd",74735:"f935dd10",74743:"react-syntax-highlighter_languages_refractor_typoscript",74787:"2e5f32a6",74792:"7061117b",74859:"23c8644f",74876:"2f134766",74886:"bfeaad80",74906:"1e82b627",74932:"b3bee5cb",74970:"react-syntax-highlighter_languages_refractor_t4Cs",74991:"d9d5a6eb",75132:"99be92e2",75140:"47c0e8e9",75160:"ca95ed59",75165:"e6d88c2f",75187:"e4d42027",75189:"f1eb891b",75242:"b1931760",75335:"e80d6e48",75349:"33a01747",75371:"26e15311",75375:"27870954",75442:"448ddb3f",75445:"01238279",75447:"d2040756",75549:"3a4c81ec",75556:"d71f0f29",75558:"5035f47e",75565:"3cbd143d",75566:"c628ee99",75635:"25f1e45d",75642:"b79043a7",75664:"20b10583",75708:"a75d7931",75713:"5bea5d99",75737:"174f56f7",75757:"a96bf424",75760:"33ea99f7",75770:"32fe2928",75792:"acf18a7d",75817:"f9bd1242",75824:"5f30bdcd",75885:"d5a36a04",76038:"f4eaeb6f",76047:"ac855284",76090:"fc4f0796",76105:"f6ee50e4",76151:"06be8218",76188:"039c2abe",76226:"3a847c18",76276:"3fbbd404",76357:"dc71548b",76396:"1f8a7b48",76472:"c216db98",76474:"b429bf35",76481:"d56578af",76491:"1da04d3e",76549:"49518896",76572:"cb8b67e4",76639:"c1e1acf0",76641:"ab0bf3e7",76776:"5db7fa95",76778:"fa89cb6b",76785:"7fec31e2",76814:"69324566",76823:"51903cad",76840:"b1cc273b",76848:"fefe148d",76864:"aabc0ec8",76959:"react-syntax-highlighter_languages_refractor_reason",76999:"f9182fb2",77012:"43ad3ca2",77018:"95ee5932",77103:"58560ef1",77129:"72d07e92",77203:"832ee537",77211:"2f747fdf",77246:"c982175d",77250:"18288bc3",77324:"a924f441",77345:"5dbc3e8d",77373:"500c065c",77405:"cd2b8160",77445:"8c03fd2b",77471:"15caf699",77583:"5dca5ac8",77595:"3287d369",77600:"e81d0e1e",77614:"ef37accc",77650:"3b20c1dd",77696:"e3f4b308",77720:"4fcab111",77769:"66e4d0a2",77827:"211b51ca",77853:"f4587cab",77884:"f0d0e198",77897:"0c8d97b3",77909:"dd565dd8",78030:"react-syntax-highlighter_languages_refractor_keepalived",78034:"01ab01b6",78102:"9f88a2cd",78119:"97c0779d",78127:"fe55f083",78131:"07141e59",78149:"429814d4",78171:"0418c30a",78193:"dd43488e",78220:"15fe9bc6",78246:"d595705d",78296:"5a321768",78310:"b75244f3",78383:"9196162d",78423:"9496f51f",78439:"e64d5ab5",78477:"3612467c",78496:"f85e5383",78575:"c825b36e",78609:"a5a3f150",78668:"41bc5a85",78707:"34eacc23",78715:"c9c8151d",78856:"96ef95b3",78857:"react-syntax-highlighter_languages_refractor_jolie",78911:"965af625",78912:"d03b7a4d",78948:"6221e24e",78974:"431e05c0",79019:"8fe57593",79048:"a94703ab",79121:"c42c92be",79125:"28e3f086",79150:"aafe3f65",79153:"40c8b908",79189:"61f663f6",79242:"c820015d",79375:"d9992386",79449:"599e1944",79496:"cce13ea8",79532:"3f41baaa",79534:"af02ed74",79550:"9018a0ee",79587:"8284165d",79626:"82261fee",79669:"562762ea",79775:"965c27e3",79817:"797225bd",79824:"e9ecd197",79860:"9c454042",79872:"6c627f70",79910:"3aad441a",80055:"1660a08d",80092:"769f7d2f",80095:"eeb40fae",80139:"7cc2f713",80157:"d3a40c81",80168:"3ba7bdee",80172:"609c778c",80202:"abf5f816",80210:"2d6fa985",80218:"cda840ed",80239:"03c9f6fe",80292:"8050bc23",80346:"5c9d290a",80395:"5fc14df3",80445:"b5c55420",80449:"d65ccfad",80466:"1eb2e24f",80497:"076004cb",80509:"7e5bea7d",80517:"3746de72",80534:"a50a13ae",80535:"react-syntax-highlighter_languages_refractor_icuMessageFormat",80555:"47230c70",80614:"c91f1151",80625:"c31963e0",80722:"221a6728",80762:"79045086",80818:"eabd393d",80869:"e0f7d826",80877:"00c4c653",80921:"7d17e27c",80925:"1cbead02",80945:"44d9bf36",81018:"713c2b65",81126:"react-syntax-highlighter_languages_refractor_bnf",81133:"3ddae676",81182:"8592fd65",81215:"2622e14f",81252:"47b9c082",81253:"88a9b244",81285:"47472e67",81374:"react-syntax-highlighter_languages_refractor_chaiscript",81477:"81ce0256",81478:"b2d999b4",81523:"c6574ca3",81551:"4c13e417",81557:"f05f9002",81562:"f4fefb2b",81571:"842166e0",81587:"91f3db67",81647:"8d33dcef",81648:"6c5accb4",81689:"7d72dd5c",81690:"6f93b87b",81722:"2971748c",81739:"5f024599",81755:"7ee98428",81810:"dda8c5df",81833:"7b60984d",81845:"react-syntax-highlighter_languages_refractor_rest",81872:"28f63a4a",81876:"42c11118",81898:"ebe41efc",81899:"d71698ef",81920:"57412de7",81934:"e2949224",81940:"a427a491",81949:"4f2a7d1e",82089:"5e6a4890",82168:"e6648f6d",82169:"a57147ed",82261:"21745da0",82301:"a1ba0919",82312:"334af7bc",82387:"8c27e6c2",82405:"326287e5",82451:"194d9b3b",82465:"react-syntax-highlighter_languages_refractor_hlsl",82507:"0dc9b583",82509:"d63c2992",82537:"fd07ea8a",82561:"0bb24080",82697:"1587a16c",82723:"f335c91b",82737:"90cb823e",82751:"0bae03b5",82757:"react-syntax-highlighter_languages_refractor_tsx",82760:"87d435e3",82778:"be9ef770",82795:"react-syntax-highlighter_languages_refractor_perl",82814:"df688f1d",82948:"e094fc64",82957:"react-syntax-highlighter_languages_refractor_opencl",82996:"aa62adf4",83048:"6478aa15",83050:"2b10be0e",83056:"75d5b163",83249:"ccc49370",83254:"97ae6104",83294:"react-syntax-highlighter_languages_refractor_ignore",83319:"de015d47",83358:"8e0713dc",83362:"c3895984",83379:"a9d2e8b9",83458:"c71bde62",83501:"a78d6057",83519:"a8b251eb",83523:"a2bcdd9c",83526:"c5c4bba3",83537:"bb84d213",83556:"864105da",83571:"0703c8c0",83607:"15512226",83640:"ca4529ab",83660:"react-syntax-highlighter_languages_refractor_wiki",83705:"9e428f80",83748:"39ebe4fc",83750:"react-syntax-highlighter_languages_refractor_roboconf",83795:"688acf31",83816:"d7100e0b",83854:"2a3cbeba",83953:"554cfdc3",83964:"663de6d3",83972:"418e8cdd",83995:"15f74a0f",83997:"eb00eaeb",84002:"26b1b7c2",84028:"9068f0c9",84072:"b47ca0bb",84075:"c83612e8",84085:"4d7d3c38",84114:"68a59ac2",84142:"6991b80b",84164:"9b71048f",84165:"react-syntax-highlighter_languages_refractor_regex",84266:"15740554",84357:"fbca3986",84379:"002be5e5",84380:"react-syntax-highlighter_languages_refractor_kotlin",84508:"654d2c12",84512:"98f063ad",84599:"fa456b95",84604:"819c3599",84612:"7e3f713a",84618:"1b4c64c4",84630:"b9818803",84651:"950ca165",84694:"7728e7fc",84715:"d002a117",84799:"5392a2e7",84805:"2f565d80",84813:"6875c492",84814:"react-syntax-highlighter_languages_refractor_jsTemplates",84844:"9a5e78a1",84849:"15b007f7",84860:"8a011b37",84878:"3467b599",84911:"react-syntax-highlighter_languages_refractor_xeora",84940:"17ff4779",84983:"react-syntax-highlighter_languages_refractor_oz",85004:"a8ff281e",85038:"a6cf45db",85084:"f746b020",85118:"4a0c5286",85256:"react-syntax-highlighter_languages_refractor_arduino",85261:"9b16476c",85270:"370dd6af",85274:"65755be8",85296:"6294ba83",85335:"8011422f",85393:"238169b7",85421:"6ba05eba",85498:"294e2a7e",85541:"7ede7b6b",85601:"492894b8",85611:"c27bd714",85659:"452c2877",85672:"069d7fe6",85756:"eb0636f9",85761:"bb6de43f",85764:"756af54c",85807:"e53e3689",85811:"ea94acda",85901:"348e6255",85904:"5e406cff",85919:"12ef6b22",85931:"f43dccde",85960:"4b2beafe",85974:"5594002f",86066:"8a00ea0f",86097:"797518a2",86100:"react-syntax-highlighter_languages_refractor_iecst",86118:"react-syntax-highlighter_languages_refractor_haml",86304:"c9cf9c44",86312:"af4da409",86314:"react-syntax-highlighter_languages_refractor_puppet",86350:"c4ffec93",86394:"42bd8841",86439:"377aa359",86445:"2310845c",86536:"34039198",86611:"0c2bf8fc",86629:"10ddb313",86632:"14bbc827",86660:"react-syntax-highlighter_languages_refractor_vim",86682:"3d8f43a6",86688:"acc0ad9f",86691:"85bc4ade",86741:"e678c393",86761:"5694205a",86810:"71573d8d",86817:"react-syntax-highlighter_languages_refractor_velocity",86843:"3407173c",86874:"a3aedac7",86887:"reactPlayerFacebook",86916:"react-syntax-highlighter_languages_refractor_markup",86943:"react-syntax-highlighter/refractor-core-import",86958:"0b5b0129",86973:"b5683a3f",87009:"afec6c99",87026:"27ba3f26",87037:"179b0f27",87076:"b379fc0c",87088:"7bbde89b",87107:"c3dfaf41",87154:"caf73bf9",87168:"c690545c",87195:"ab18489a",87206:"a39047bc",87229:"fd7b20c0",87351:"react-syntax-highlighter_languages_refractor_json5",87384:"94a5927b",87393:"d065cd71",87394:"react-syntax-highlighter_languages_refractor_latte",87401:"c7658393",87403:"43acd4e4",87475:"14d25af5",87492:"434fdd5e",87623:"a46c8e03",87745:"b00f6a85",87797:"03809716",87801:"b5e1a6cc",87826:"57b87c5f",87851:"3009ed69",87852:"dbe0daa0",87864:"36f4dc34",87940:"fd40cf15",87952:"1cb5f507",87977:"9b002a17",87995:"7bc6d53d",88002:"4e800307",88047:"b791d8b9",88049:"2782d49b",88062:"501e4372",88156:"cdcb48bc",88190:"9f968b87",88196:"b49e047b",88224:"0fa0f141",88289:"f3840267",88307:"f716fabe",88352:"d406b88c",88379:"19f2ca6d",88434:"315ddae4",88449:"91f294be",88471:"36dfd3db",88514:"ac2dfd5f",88606:"18329464",88648:"63526b32",88670:"f9f47e39",88764:"29cb98a3",88813:"react-syntax-highlighter_languages_refractor_ichigojam",88866:"acf65e43",88906:"6588b4a3",88961:"cd36e440",89118:"8f3b4fe1",89136:"6aef6f7d",89200:"93ff6d8e",89202:"78db2db6",89207:"fcc80eb3",89228:"b4a53a7b",89274:"075a80bb",89315:"a0867ff0",89318:"ed119645",89345:"a0a27c6d",89359:"b8b5bd65",89374:"9ac62244",89401:"7667205a",89434:"39a0d842",89451:"89dd2c88",89523:"react-syntax-highlighter_languages_refractor_sparql",89536:"react-syntax-highlighter_languages_refractor_smali",89562:"6f2bec23",89653:"3e6c110a",89749:"fe94516f",89767:"11417f40",89788:"4f32aa66",89810:"28916d1d",89851:"0da678e3",89870:"570e864f",89883:"fe7fc6cf",89886:"f8877092",89901:"86d2b86f",89906:"9f20da83",89907:"react-syntax-highlighter_languages_refractor_bsl",89922:"a9188981",89925:"e4d1727b",89951:"c3047722",90135:"c22d2964",90156:"67750132",90189:"3ea95164",90211:"9263e0b5",90251:"a5d56b83",90268:"eb04b82b",90271:"5f80341c",90352:"d0680d38",90398:"641851e1",90428:"b9fc7718",90453:"4ac2fc34",90469:"aa8810f5",90476:"4d5a290f",90566:"e08a3998",90577:"84b4b0f0",90618:"07049aac",90638:"1ceb8501",90660:"fb46656d",90738:"d752a24b",90841:"25cb628f",90891:"69177293",91017:"1d3aaf79",91022:"67be0d90",91060:"react-syntax-highlighter_languages_refractor_apex",91084:"3eb7155c",91116:"06211346",91156:"react-syntax-highlighter_languages_refractor_gcode",91157:"ca4f381f",91222:"5058ca96",91230:"18e33524",91261:"ec22d082",91273:"eecc085a",91285:"c5c0b0a2",91322:"1441d32f",91323:"5a817b84",91375:"bf8d3126",91440:"4f5e4689",91501:"bee41f69",91545:"2ea21f12",91650:"a7b05e0e",91694:"38fc2797",91812:"dc5b7d00",91818:"97804c8f",91917:"1370da59",91974:"fdf73d72",92038:"react-syntax-highlighter_languages_refractor_autoit",92051:"87cf2e7f",92208:"react-syntax-highlighter_languages_refractor_php",92224:"react-syntax-highlighter_languages_refractor_jsExtras",92279:"react-syntax-highlighter_languages_refractor_t4Templating",92281:"react-syntax-highlighter_languages_refractor_hpkp",92310:"react-syntax-highlighter_languages_refractor_peoplecode",92325:"fe79fa06",92349:"94614d42",92353:"a63ec547",92357:"f3b9af56",92441:"d6d40f1a",92618:"70596a0e",92634:"34b5b841",92669:"cd85436c",92674:"e97676a8",92817:"a1c66966",92837:"3fb9fa74",92876:"4f07da2a",92878:"2ab6ed1b",92917:"5dc012c4",92941:"204c7f3a",92965:"00fcd487",93022:"e06a2e19",93043:"5a8284fb",93083:"f4a1322a",93125:"fdbbf13b",93134:"react-syntax-highlighter_languages_refractor_cfscript",93154:"react-syntax-highlighter_languages_refractor_go",93176:"31d83792",93209:"e753b790",93222:"a7b14b44",93260:"caaec321",93292:"3cb117e5",93306:"962f4cb5",93322:"35cd6961",93345:"1f01eb18",93453:"b7085b68",93594:"c1ffbd90",93621:"697b9cf4",93643:"8f5b2368",93683:"51fca4bb",93702:"8b14a28e",93750:"605113b7",93792:"84e6b9d1",93873:"106ef2cc",93895:"a87414cd",93896:"54f66e43",93905:"740d3abe",93908:"25199571",93918:"46b3a108",93931:"ff527a96",93943:"react-syntax-highlighter_languages_refractor_jexl",93992:"00680038",94002:"c6646684",94008:"c78e98fe",94099:"993cbf44",94136:"f9908443",94161:"3aaad431",94188:"47dbd172",94221:"be97ed8b",94297:"009100d0",94347:"fbf3b537",94431:"3ef996ea",94445:"533fc6b0",94453:"1821984a",94458:"6382a988",94471:"dd3a9da8",94536:"619cd51f",94544:"cac821de",94575:"1692cb21",94707:"aa959c31",94708:"2a184061",94715:"react-syntax-highlighter_languages_refractor_nasm",94731:"5b9a485d",94736:"00861925",94753:"react-syntax-highlighter_languages_refractor_processing",94768:"5363c4f1",94792:"1f67da4f",94804:"react-syntax-highlighter_languages_refractor_clojure",94828:"b6b3bb02",94882:"fa73b103",94950:"329ca26a",94987:"0f2fc92d",95026:"721813e2",95030:"a8ab55fc",95134:"366bfd22",95142:"06932a2f",95215:"4dfc54b0",95247:"a313a68e",95301:"d17d2a45",95356:"e39b329f",95373:"58385753",95391:"4df2e0be",95534:"5133cdf6",95551:"a342637f",95570:"react-syntax-highlighter_languages_refractor_mel",95593:"react-syntax-highlighter_languages_refractor_vbnet",95611:"react-syntax-highlighter_languages_refractor_actionscript",95700:"b801efaf",95754:"ccb1a797",95758:"8c923ee4",95790:"1f1225fd",95808:"6fec4aa1",95861:"e706ca3e",95897:"900ddb98",95910:"1156b798",95924:"cc7b7b9f",95927:"0311d3aa",95930:"2505d713",95974:"3d2a3a69",95999:"2936973e",96040:"fbc6c0d5",96052:"e7a82fd4",96064:"5917d54d",96184:"7d4f5762",96240:"bc91b8f4",96242:"cbbeb50f",96355:"636c6fa3",96385:"741edb4c",96388:"6559a382",96421:"93b756d6",96491:"7fa2298a",96514:"react-syntax-highlighter_languages_refractor_bash",96540:"ef44e405",96553:"937a6729",96593:"react-syntax-highlighter_languages_refractor_cmake",96604:"546ceb2f",96614:"f7965b57",96641:"react-syntax-highlighter_languages_refractor_q",96656:"4fcf0eb5",96663:"bfff7bcf",96750:"50db9164",96754:"95453379",96758:"f5eb0920",96776:"43cf978c",96915:"2303af1d",96946:"576cc9a3",96952:"c32d4a95",97e3:"be4d75bf",97007:"5187626c",97013:"36fbdcf0",97089:"697a5b17",97133:"7e9f6be8",97139:"2ac672d7",97160:"3350d1a4",97202:"f12d2f88",97297:"e41c387a",97351:"5954047d",97395:"87c52fcf",97446:"abe07a54",97458:"reactPlayerFilePlayer",97569:"5df541c2",97665:"07b21e7b",97804:"cac4c78d",97808:"b3505693",97811:"89b17141",97830:"e1bfd502",97872:"4d66e8f2",97880:"5daa4f35",97915:"569beb23",97933:"620b2e0c",98006:"2192572e",98095:"f294f0d5",98099:"44c0224a",98156:"react-syntax-highlighter_languages_refractor_latex",98169:"773afb13",98197:"aa3eb5cf",98228:"c777415e",98236:"d7666a50",98256:"ba463a9e",98275:"24fcab19",98407:"80d3668c",98465:"e765c54e",98472:"0918c6f4",98478:"1f300caa",98490:"react-syntax-highlighter_languages_refractor_xojo",98544:"bfb60894",98547:"d73d93a1",98581:"935f2afb",98602:"06815ac9",98633:"e3612ae5",98686:"1c027cd1",98745:"a8744008",98771:"1d5da270",98789:"dfa48919",98916:"11a54fde",99024:"ad6ca35f",99101:"react-syntax-highlighter_languages_refractor_brainfuck",99106:"830e770a",99126:"05da603f",99173:"694b99cd",99321:"ced11bf8",99340:"31533b35",99365:"280b35a1",99390:"76b93c25",99417:"1bad822d",99434:"f3496af0",99435:"d10fc7b7",99444:"ebea1b63",99458:"906e876d",99497:"109f5de4",99510:"react-syntax-highlighter_languages_refractor_swift",99575:"46bfa3ae",99580:"06be3ded",99631:"af9dc836",99672:"3731f685",99686:"bc15071f",99692:"3c11a2f8",99693:"9fb6a754",99774:"ed3431e4",99812:"react-syntax-highlighter_languages_refractor_cil",99858:"17e561ca",99957:"f168a6f0",99998:"212df811"}[a]||a)+"."+{27:"d34ec164",40:"a351bc02",57:"5116a9f3",241:"91b838a7",242:"87091ebc",264:"80ba297d",280:"3c2bba6a",286:"826a586c",288:"c79676e2",408:"109caf5f",460:"535a5d2b",558:"6f94f0d0",563:"32f79a56",564:"02c6f38f",579:"5bd8fbd1",582:"09ed949e",591:"e488739d",628:"6230ea7e",631:"8c10676f",742:"ddf447ef",920:"2351d782",949:"fb1d88cf",979:"ebe3df29",1057:"d50c3051",1058:"02c03603",1059:"6f658d83",1062:"52447627",1100:"4f5d218d",1193:"d67576fa",1286:"9d6757ad",1330:"0dd21680",1332:"8b8e3792",1375:"93942aa6",1405:"3a352cd9",1447:"801c0e96",1451:"ff338613",1499:"ebf4cbcd",1530:"624f6e31",1536:"eb2cdaf9",1538:"8de3dac2",1551:"427bdef1",1554:"bba3d71a",1568:"c715f6a0",1644:"c693b787",1683:"cc5eb156",1719:"d3d1a2d3",1728:"4d2bfb85",1766:"ea63fcbd",1807:"ac20b77c",1811:"746f1429",1874:"1e9abcdc",1901:"bac579a6",1927:"9b36532d",1939:"77598615",1941:"1dccf763",1973:"7714b1ab",1987:"aedb026b",2071:"71e0982e",2078:"e6009317",2119:"160cac64",2145:"b4064e4e",2169:"18429eb1",2206:"2768fc6d",2237:"b68871b7",2272:"b8dc56ae",2274:"fc61c7dd",2280:"8e95ec46",2328:"d4c9b777",2337:"5f6372b3",2383:"2c8d2eae",2385:"5c2932db",2416:"033d6454",2419:"26edbdb1",2468:"6730c062",2473:"7678da69",2517:"29d82a39",2549:"9522d4d0",2598:"cfd46873",2614:"394681d1",2665:"69c951eb",2666:"518c1ef9",2690:"78e94ca5",2814:"76d1bb13",2824:"78a2223c",2834:"5b68deeb",2964:"69e21527",3132:"70ef11bb",3169:"460f3718",3247:"5597c0fb",3258:"6fa5c8aa",3291:"8a39fddf",3358:"ac9cc5b7",3375:"71d1aea2",3392:"588965c9",3401:"1bb4f803",3407:"0097f14b",3472:"3336688e",3506:"4ae57f0c",3519:"765065f6",3540:"8123639f",3688:"e64dcca0",3694:"25f794b1",3733:"5d487e0f",3769:"c1f3ad15",3782:"73fe86a4",3874:"fdc6722c",3882:"c2061da9",3909:"21b2cfda",3921:"dab40cf3",4019:"bae65a41",4100:"1d590b82",4105:"bc443d11",4167:"5d079690",4226:"ff983834",4247:"9734c776",4262:"09422f75",4266:"508bd70c",4289:"55a02c2f",4295:"3a84307a",4311:"a2a77ae3",4377:"493c63f1",4400:"3d51ddb5",4426:"f2a99d27",4450:"bd5bcaf7",4469:"75c1a87a",4732:"6c71bff3",4836:"83d3df4b",4866:"b310fbe3",4881:"bdb19994",4954:"775faab1",4957:"827a5311",4987:"a8b72d13",5031:"777c1970",5133:"fd7dc1f9",5208:"b5f486ba",5263:"b062c022",5265:"401948c0",5281:"eb5fbfb6",5314:"5c7a4727",5407:"db47013e",5427:"9b0b5bdb",5511:"8e0e8e89",5521:"7491bcfb",5529:"5a763e08",5538:"d09d7399",5615:"4a5dc887",5655:"b46adcd5",5659:"839d810b",5664:"5a6ab61c",5672:"b4893e58",5674:"f1c84209",5716:"274e6f8b",5717:"d33e5698",5719:"e7b889a0",5779:"b39b455e",5838:"09800b50",5864:"dedddacf",5889:"8a57d3a7",5928:"5552cdf6",5963:"9fe88f5a",5989:"3ff05c51",5999:"775d23ef",6051:"a4d96d2b",6057:"fb0e4b6e",6094:"f5f02356",6124:"484bbec5",6129:"cf589559",6135:"c80de3c6",6141:"df37d0ef",6167:"0f7e0bc4",6262:"1609305b",6268:"0a7a5d5a",6294:"8637dc55",6334:"83725018",6344:"ddeed74d",6347:"4b879029",6351:"73d03237",6361:"1e61565e",6385:"a0ab8b06",6394:"043d9855",6405:"52aea5b1",6425:"6a30a07a",6438:"d3f1252e",6463:"8d881975",6476:"6b6cc2c4",6483:"97ea99a2",6497:"51be32fa",6511:"78c8ddd0",6531:"85add5f7",6550:"494cc961",6804:"6621886e",6812:"941af3b3",6815:"af2ef978",6839:"25cbe22a",6845:"02f3a891",6893:"f96442ac",6944:"baf3b280",6955:"83fc6d21",6999:"591796b4",7048:"d4100fd8",7052:"4794cb52",7109:"09c86149",7114:"34dabc01",7131:"a4ce0aa2",7139:"f010f2bf",7207:"505854a4",7231:"d9b3b344",7237:"a9e7f946",7261:"6fc8d15a",7269:"13b8022e",7273:"5fe7feac",7276:"46c399ca",7337:"4d7e051e",7371:"c81b5e13",7442:"712f02b2",7454:"e8bc9e53",7457:"11a1c8fe",7482:"1247086f",7508:"a247c0cf",7556:"a02e55d2",7562:"dfbec39a",7587:"288b18d8",7605:"f3874d6c",7616:"d5941e34",7642:"d28f9158",7674:"701e48ea",7686:"e69b280e",7726:"5e488c64",7752:"8985bedd",7765:"02eac481",7802:"c9c4e266",7808:"24702e8a",7814:"c8df4624",7818:"4aeafc24",7854:"5bb07363",7911:"628a5162",7959:"46abcf44",7984:"7bc53db0",7989:"0c23ea9d",7996:"67e6aa01",8022:"feb22a74",8047:"77e582bd",8061:"d5033178",8091:"791db314",8099:"baefeccb",8145:"62a8da0f",8209:"fb0bf3c1",8285:"58fd5501",8330:"a27718d5",8336:"dbe52ad4",8345:"872191f3",8374:"7f6d665d",8404:"adfa4a27",8417:"aa431b2e",8463:"36a08f0b",8515:"2a914255",8519:"b39814cc",8577:"cbe8c2cb",8608:"332b8969",8662:"1abcfeba",8679:"a00e3d06",8764:"c37afbb5",8787:"b16505d7",8837:"d2946986",8872:"dd9e3eb3",8875:"347ac997",8878:"c6c89356",8948:"fee3482b",8967:"77afc57b",8987:"73e94627",8989:"7a48202e",8995:"e8feda6c",9054:"c7635050",9060:"fbdb8c63",9110:"7220a0e5",9122:"ad5e0b15",9147:"8899419c",9149:"c05a716d",9240:"f2c00d78",9301:"d24b08d6",9349:"2ae97452",9379:"39904bdd",9450:"c205970b",9469:"f88b8c45",9481:"76fc322c",9504:"e245f1b5",9587:"584d8627",9631:"ec3d1c9a",9647:"05947a12",9691:"9e1c67bb",9729:"b10079d8",9771:"17164394",9777:"0e549eff",9784:"f64c0f04",9901:"4fe2f60e",9979:"d22484fe",9982:"59b4c299",10016:"30aa308b",10047:"679dcf83",10092:"137f5ee3",10119:"b1aef171",10126:"d16d1404",10153:"7510c28f",10178:"51440250",10204:"8afc14ce",10292:"5dc4b223",10313:"ca6d1e0e",10319:"170e2058",10323:"cde2bd66",10329:"08b3f0a1",10357:"b99bf46b",10365:"9ecfc04a",10371:"4400905b",10378:"6dfcd02e",10387:"6e119aa9",10414:"721272d3",10418:"8f7fdd68",10428:"8880b810",10488:"3958595c",10593:"7c61f8cd",10614:"e036bead",10622:"b7d3766f",10819:"efdbb041",10864:"eed4e3ae",10921:"6cc1f559",10953:"2586fc7e",10981:"c8ab6459",10999:"753ed2c0",11005:"e96dbcb2",11031:"7259a360",11048:"62aa623a",11072:"5678028c",11074:"b75319ca",11220:"98caea76",11253:"ebcb68ff",11342:"bfa3f8a8",11384:"ea9f14c8",11404:"0604a668",11406:"d88313d1",11460:"9a032363",11482:"064f6829",11505:"4dc70b8a",11519:"4240a231",11530:"7db9af50",11543:"2b46797d",11546:"c79d7d21",11605:"4b22d932",11623:"549a4448",11663:"3699ad67",11675:"9dc0b7f1",11679:"c62b7e03",11681:"52703f5a",11695:"82122478",11707:"e57c621e",11717:"dc9183d0",11749:"9716ad9d",11768:"ae8e2de6",11770:"bf1e0cba",11800:"db16eeee",11844:"c47e27cc",11848:"52122bbc",11852:"83144b8d",12042:"211c5d5a",12101:"849c27b5",12102:"d105eef6",12111:"70e75845",12138:"d15c1b77",12171:"8ffdd967",12205:"0c451536",12266:"eb715d53",12333:"5b6cb10b",12352:"281ab563",12387:"05514de3",12424:"3cf0f7ce",12490:"f4f91433",12494:"22c05d9c",12547:"800e54d6",12569:"473e65a8",12581:"83a1ae92",12609:"a47b72f3",12630:"1595396a",12690:"99703bb9",12748:"d84e330a",12762:"af14a870",12772:"1f21a6cd",12801:"5227d694",12820:"a6c2b331",12892:"b81ff364",12898:"7ac38f2b",12929:"c47074ad",12948:"642ea3d2",13065:"e6f8a38d",13094:"6a30406e",13142:"7a3d91c4",13151:"5c6a7db1",13160:"24243022",13198:"82e7ecd5",13260:"258199c6",13268:"f7931595",13277:"7d85c71a",13347:"622592f8",13360:"cf14d0e0",13371:"cc4db9ba",13407:"5b39b641",13438:"1efb19b0",13440:"2cd60272",13486:"c6a455e8",13506:"bd6ee61c",13517:"72ffe0d0",13518:"fc583cdd",13554:"e5688b96",13559:"4314f3ea",13582:"6dffc709",13637:"8ec979d6",13648:"dcfa025a",13690:"c9fa826d",13734:"480d761f",13749:"1d38d8ad",13784:"79a71d67",13804:"ba792943",13876:"39d87cce",13883:"a5d9b9f0",13911:"d5daac58",13927:"6664c789",13979:"e09f7b91",14e3:"db51d480",14106:"5e2d2439",14118:"6ac1e08e",14156:"c0dd417b",14207:"292b91ac",14339:"abead64e",14351:"db1a1d04",14360:"4c1eadbe",14363:"3cd912c6",14387:"c68fecc4",14485:"d0a3cee3",14519:"b75bfe88",14546:"24decc16",14556:"3aaabbc2",14586:"f2be4692",14616:"667905b3",14664:"4140fc78",14672:"618c4595",14676:"f5415278",14679:"6bd6d478",14751:"a9ccdf6b",14752:"652f8874",14771:"f2d5b962",14780:"5fb02a85",14790:"2b244749",14793:"a84cda17",14825:"3848280f",14886:"5e08f31a",14944:"b4642915",14957:"f1e969f3",14981:"338e5b59",15028:"864b275e",15080:"d6defe72",15113:"147b4efe",15121:"27ec9c41",15161:"cf1356a2",15174:"e0a7abb5",15191:"6a115dd6",15203:"30e6fea5",15220:"63a6106f",15277:"8bc57568",15291:"6eec101e",15300:"a579374b",15359:"f44bf23a",15408:"243179e4",15410:"3c8f6eb2",15463:"2b406e1e",15468:"dca62bb4",15477:"1da6143a",15494:"c73c734d",15620:"317ee9f9",15634:"95940bd0",15676:"f113c653",15728:"2aa7e7ac",15758:"fb75db86",15767:"36ec717d",15783:"5cf50e17",15857:"aa9f3eff",15873:"7219a06c",15934:"d9f40b2d",15971:"45768d9c",15972:"767bb773",15987:"970fac1a",15992:"604425b6",16039:"6d63dd18",16079:"4e479c19",16104:"9984461e",16120:"c3a45101",16144:"ceac4e96",16152:"4cc2ec62",16168:"32c1ae52",16194:"6b013920",16208:"beebbe20",16221:"fc6bcff7",16299:"25a87659",16305:"c9207cc5",16323:"5a2992ea",16328:"83ce50c7",16396:"27d94455",16403:"9366ffe5",16412:"236c7205",16451:"3498d0df",16458:"31514f17",16490:"5a2fca10",16512:"bcf6de50",16539:"afb30379",16550:"1f7a4079",16587:"9b715bcb",16671:"41b63d99",16677:"d1a8686d",16708:"77e6a977",16745:"37ce0f77",16794:"e97bb138",16822:"429eb749",16829:"7fcc9315",16834:"6927371e",16872:"55fed6a2",16934:"2a98d444",16942:"bffe56cc",16949:"17e39150",16993:"7b81edff",16997:"c01826e5",16999:"5c9b26f5",17029:"0d1d967d",17031:"a73a6349",17071:"613bc2f0",17148:"a4bb1633",17208:"81167bbb",17261:"906a517b",17293:"25437d8c",17320:"f84f488a",17407:"bd87bd57",17417:"897e2730",17419:"21402a45",17495:"7c0d0755",17517:"f1e3c5a0",17529:"dce86a07",17535:"2a2f40ab",17553:"faf68ff3",17570:"e3e20130",17573:"bb4af02a",17595:"726ff22b",17610:"4ccd78f4",17645:"96f7b9b3",17692:"04ebcb22",17696:"a251b3d9",17735:"5b0c3beb",17742:"b7573312",17765:"1515e4eb",17780:"1b64923c",17857:"4fc98b8a",17858:"2fc3da44",17912:"041d0f25",18003:"a7accbc7",18060:"5b07679b",18067:"6d6f2512",18094:"71a01b09",18102:"1da22c85",18124:"165f7201",18155:"8e3c8cbc",18205:"ab529798",18348:"67cb9763",18353:"7c22fedf",18369:"4d072ffb",18381:"874f84df",18401:"6b113479",18432:"03ee2ea7",18438:"29870749",18446:"6c29ff97",18469:"46475b1c",18494:"6c97468c",18497:"7d766d08",18505:"8284ff16",18549:"75f93b8d",18553:"fbca3e91",18607:"8055ad0e",18615:"69a05b56",18621:"eb11b752",18630:"a053eebd",18701:"e8a973f9",18705:"4e4fe6cf",18716:"cf04f340",18724:"f1ee3a90",18725:"eeafbc84",18754:"c45334b2",18840:"5d472188",18867:"247f33b0",18884:"1fd0c7cd",18886:"431f5516",18993:"7a255867",18998:"9ac45b95",19013:"13f570ef",19048:"0bca7852",19054:"aa70207c",19072:"64be1dd8",19074:"01af1317",19117:"cf3d189a",19166:"2853e2ce",19196:"2f136140",19211:"45819b4b",19366:"64a87f24",19488:"10765360",19559:"0abce808",19569:"9a055af5",19636:"9990ef1a",19657:"3b443953",19667:"10d0da80",19688:"6d0f52d0",19741:"22ed677c",19742:"4dce8e2c",19751:"487b431b",19789:"268ab4bd",19802:"8634c57d",19836:"06933f04",19848:"4fbed34f",19909:"bae0f7fb",20031:"f36f1bec",20036:"f10575c9",20060:"19007353",20096:"dcdec052",20101:"96d9dfcb",20154:"611b3c0c",20156:"f5374fe1",20192:"cc7193b0",20209:"1780a2ea",20247:"9cbee776",20345:"f2abedb0",20382:"bb6eabf2",20405:"0444e152",20416:"35e3cbb9",20451:"dc586398",20452:"e6d2c06d",20473:"2ba3107e",20504:"052bc74b",20557:"43f69061",20600:"1039a2f5",20712:"fe38c2d7",20714:"369a54a3",20715:"29f79c4a",20724:"d1a2f08d",20731:"f4424ab1",20738:"0ee94b30",20804:"3ea75034",20813:"9dae10ae",20833:"0d60999c",20891:"d0d93c9d",20913:"d5345066",20925:"b022baa5",20926:"39aef705",21012:"841e3c58",21099:"986a6625",21110:"00c94db8",21163:"56737120",21176:"75ed70ac",21193:"dc461e33",21202:"a474f178",21233:"69714eb1",21269:"bafb8744",21291:"2b6c8e8b",21302:"5e985511",21317:"31f5fb10",21328:"d8210d58",21353:"cf11440c",21385:"c3d1e3fc",21398:"c56afba6",21472:"ee6c6e95",21510:"0687e42b",21610:"22aa3fba",21658:"ae40e781",21689:"f9de7acb",21724:"75d68e79",21740:"39b2161c",21754:"55f0118b",21760:"197ce163",21826:"412d98a5",21890:"06e4aef7",21910:"d1a1d322",21983:"bb3e9a45",21987:"6172d1ad",21997:"94d3b154",22021:"e1e058f9",22047:"4e393b39",22060:"6e27b814",22066:"539a670a",22110:"0c9a4ae4",22125:"cb82b461",22130:"56c2a7fd",22134:"bd942ab0",22269:"f891f74b",22295:"d0a55e9c",22297:"1cede99c",22300:"46107e54",22311:"c4c46763",22315:"a2344639",22325:"966e3483",22330:"5ccfbdbb",22336:"569ff0d8",22337:"bb513e51",22489:"dc7d7787",22507:"58e712c1",22508:"0f350680",22585:"3342d146",22628:"8b052e3a",22649:"109651bf",22680:"0ec6639e",22710:"18bf9d62",22711:"9d17c8a2",22734:"ea55fdc2",22809:"142d0f48",22823:"c2a07736",22883:"ddc79150",22972:"451da933",22976:"cffc2170",23029:"d2b0e957",23043:"21ce38e9",23076:"77bb0ea1",23159:"e51773b5",23180:"eab02e26",23207:"8265e0e2",23224:"1f3044df",23231:"a6da0975",23267:"3a7ede15",23281:"f6112d14",23300:"4925a822",23361:"c11a4f73",23405:"a4b009f7",23406:"ce625322",23410:"ee1c11c8",23414:"a9f65c0c",23417:"241e376f",23616:"9e194cc6",23625:"6e492f98",23664:"3ac88a59",23686:"5081f6ed",23687:"97be2732",23706:"b213f76d",23750:"ff64984c",23771:"adf9102b",23775:"3d22000b",23826:"bff597e8",23835:"089f83e4",23877:"7d33df39",23880:"6ccea553",23887:"7af2030e",23932:"5f9b752b",23943:"9afcc961",23944:"f91f7a63",23983:"74686d85",24050:"7740b9ef",24073:"dc73af26",24104:"38a6059c",24175:"8194709b",24221:"f9d7e697",24237:"3043e31b",24265:"1b5db099",24275:"619641ea",24422:"8383ee07",24426:"e7e853da",24429:"7decdb4b",24430:"92d31e55",24439:"9d567299",24504:"7e86fe48",24550:"98216c58",24560:"d34758be",24561:"63b8806d",24646:"e2ab245f",24659:"2e30e25b",24758:"95cf038f",24812:"368cee6d",24824:"c3f143bc",24830:"bf8db0fc",24852:"6e90e2a1",24887:"867f7aa1",24890:"2df25261",24903:"bff356dd",24908:"7706087c",24934:"a26a5062",24994:"7d12b1ef",24997:"487b4d7b",25020:"57cbcd14",25035:"e6af8f39",25060:"2a4fbc43",25114:"4451f30f",25173:"7735f373",25175:"d8cfaf53",25219:"d0d8c265",25266:"195c4391",25287:"18187897",25292:"09960898",25315:"0a3a8ea6",25333:"b7c47548",25342:"61af2add",25397:"1f2fe9a4",25419:"6e2bad15",25445:"d34f1dc0",25473:"0f7c942f",25507:"813f83ff",25535:"f0d1fa1e",25547:"f3664a4b",25559:"7e3ede8c",25586:"17a23e14",25590:"27b35d93",25601:"a185cef8",25661:"d187985b",25733:"c210d3a5",25845:"4e20c13b",25891:"2c31f546",25930:"1300e8c1",25962:"daa110aa",25963:"478ca622",25964:"a80504fb",26023:"74f3e56d",26060:"129faa85",26169:"c113120d",26173:"f8f5952d",26184:"9e160905",26190:"2b16eaa7",26196:"75e47b10",26228:"cf288e77",26246:"773236c0",26257:"252aadb3",26259:"b80bbcea",26277:"1c12f156",26285:"a25feb6e",26303:"9a4c8758",26396:"f23326fd",26421:"703408c3",26426:"24024d25",26514:"7182a37d",26520:"1b8e970c",26614:"12c45e20",26835:"b3e704bc",26869:"ecac45dc",26876:"782ca673",26878:"42041bc2",26887:"80ab946a",26894:"3c2ab02f",26918:"f72961e9",26996:"d9260871",27030:"f18e7255",27056:"33950894",27165:"4b5d8476",27202:"2a6426f9",27209:"748b6e63",27341:"24367f4b",27349:"789d845e",27435:"4788e62e",27443:"99e5bef6",27446:"ead5f4f9",27510:"48c5c295",27515:"dd4799a7",27517:"cfa9132f",27530:"8684d7d9",27534:"9a0440ad",27559:"02ca474e",27571:"06a757d0",27601:"2f633972",27615:"4267ac34",27629:"7daf5538",27648:"2ca7f855",27650:"3d1103c8",27659:"1f257b55",27705:"69af597a",27716:"2f6e8fda",27727:"911db210",27788:"918788e7",27812:"4b0248b1",27822:"5c127101",27868:"f12276f3",27893:"6deb6abd",27899:"17ae2255",27902:"27826539",27912:"ed4fc731",27945:"e23f304e",28002:"2809c061",28079:"361e9c0b",28141:"c1772786",28145:"90b57941",28164:"c6b368b2",28172:"832d5275",28236:"ec3f2068",28311:"3081eae6",28462:"3afbfb7b",28494:"c2cc5745",28603:"97e454e0",28617:"b6364919",28650:"85f2c91b",28676:"d1b54ca3",28680:"fc31fb6f",28687:"3d981c2d",28706:"838ba10c",28734:"74f1e415",28763:"46963f37",28783:"6e5a6166",28789:"9d94faa8",28801:"1ea6fca9",28985:"b653de74",29017:"98f8c88f",29050:"8f862a39",29084:"a375c3db",29158:"74ce6564",29221:"eaf4c953",29336:"85a1eb1a",29419:"afcd9a80",29442:"eed76622",29478:"95aa591d",29504:"a0e9d03c",29511:"493d183d",29548:"0590bc7c",29583:"df94aa60",29595:"3fb23750",29615:"10b7a8c1",29627:"1b682bfe",29706:"fb7830fb",29804:"04544044",29810:"944b34fe",29855:"337c6215",29887:"ad2e65e8",29934:"bb0c1f06",29976:"9fd40b70",30005:"7eee7911",30023:"1baf0843",30087:"d0bfad91",30109:"bc0321db",30130:"704cccb0",30201:"eeb0df0b",30283:"c3966305",30320:"52e5f4fd",30325:"f23c4fdf",30333:"2033d359",30336:"452a3586",30355:"33fc88b7",30370:"1cf198a0",30413:"1f7cf626",30438:"052ef4f5",30443:"b65bc63b",30453:"ba76ae43",30483:"1fa169d1",30504:"f9d37c27",30601:"0ad63464",30640:"c0a68024",30684:"53f18519",30713:"f859f89e",30727:"9281133b",30741:"1feccca3",30751:"4dcea176",30755:"d2b2dc6f",30764:"095c318e",30794:"29dcdf16",30815:"965a4323",30857:"b891aedc",30888:"c389599c",30893:"57a136f7",31002:"50dd83d9",31138:"6887b389",31142:"cef21b8b",31209:"f349a579",31234:"afaf3d4e",31239:"4ee1ec0d",31243:"83b1f186",31302:"f7802a9c",31309:"f052de85",31316:"45904d9f",31329:"b70dd865",31374:"677b76e4",31393:"434b8aee",31443:"989def1f",31469:"83921600",31502:"1ea929fe",31547:"8e25b6cf",31556:"b32dc094",31622:"1f9827d7",31660:"d5f19f4e",31717:"ead4a476",31726:"7e55c8ab",31738:"c3a7dfe4",31768:"3ee9da9e",31822:"b377bd64",31836:"91d5f3b9",31897:"5ad31f57",31948:"c9d67c00",31992:"9c50d3bf",32057:"d89c7b36",32058:"7959728d",32168:"cd7d3de4",32184:"43037903",32185:"ab40f516",32270:"d0200982",32272:"7893f264",32300:"03d5568c",32314:"ba14daad",32319:"f6dc8f1d",32358:"b806a747",32384:"bf592f7d",32402:"a69c6793",32415:"5c120789",32431:"89070e21",32547:"1fe39a70",32564:"86403c2d",32566:"ee5fdd74",32597:"de3e7d70",32619:"79cb4292",32648:"2be99e52",32664:"8e5465e9",32687:"da3c3e48",32698:"6d73689c",32723:"f9e4669d",32742:"3d90752e",32752:"9e9afc06",32768:"f26face6",32803:"fa9b02d4",32857:"b0cceb04",32886:"ca40a727",32917:"2b4b9752",32928:"a02d9fc2",32944:"025fe3bb",33153:"aefced7f",33246:"7754d5a6",33281:"3d0bcb48",33320:"24f77b9e",33333:"79af560c",33401:"a36459ac",33493:"91bb1e0b",33504:"d339f857",33539:"b2bfaba0",33550:"88eed5d2",33589:"a7e5e712",33613:"b3be66e4",33621:"d4d3b485",33656:"c2208d7b",33709:"7eee8139",33760:"bc3d9820",33777:"9b77adc0",33799:"85571b56",33824:"c75028de",33835:"d2572075",33952:"2f7aee0c",33974:"e2ffad17",34048:"ae9388e3",34075:"6f9b95ec",34090:"af04eb52",34093:"a26eba22",34097:"ba697ed0",34118:"9e300092",34336:"8cf3d5c7",34341:"7fb84ebc",34387:"35525d39",34399:"4569ede0",34453:"dab4e89c",34475:"df0039b1",34483:"931e3959",34490:"b2ed92df",34521:"796d01d5",34531:"7be26788",34559:"be386985",34563:"05c5987d",34582:"0c59ded8",34656:"7563a977",34672:"d6072240",34678:"81f26af6",34681:"2ad25294",34747:"d5c7c216",34754:"91d0d368",34796:"74a29577",34857:"b9b7dcac",34903:"6393b66d",34924:"009a3c93",34929:"0fcee9f2",34939:"78c032d6",34967:"030b1f8b",34983:"01289235",35008:"ed4c0871",35016:"21d4acfd",35063:"3ec5f2b0",35077:"8fb7bf25",35106:"6184334d",35150:"8fcf0c5c",35209:"77e198b2",35238:"114e65f9",35267:"c649b68a",35306:"fe8cfc40",35317:"f2ea942f",35397:"54b8df09",35414:"77ca5697",35447:"b25b44b3",35475:"27a74a51",35491:"b3a03eb7",35562:"0f924d75",35603:"3636047d",35703:"86617bc6",35785:"3389112c",35805:"6518733f",35806:"7cb08c93",35827:"f486d15f",35837:"a61d0231",35860:"452dd4b0",35870:"fe43ee8c",35884:"0074fb2c",35920:"04f878ba",35966:"f447b492",36020:"0ec28cf3",36029:"4fc1afd4",36030:"bfc6d71e",36033:"c26896a9",36103:"f4779e53",36137:"c5ee4909",36195:"4877e423",36198:"bc4ee48b",36211:"88c6a04b",36212:"0b971a60",36225:"9dafed74",36227:"2f9d72fa",36242:"61599100",36258:"0274ab1f",36268:"76791714",36278:"ea4f6e79",36321:"6158bbe6",36332:"6e287ed1",36353:"bc689b49",36388:"1bff827a",36477:"6bc6169d",36491:"ddc205f1",36499:"01996096",36509:"d0c6e281",36526:"5a85b76b",36537:"1ba8ddb7",36559:"d0709efb",36575:"f7b048d3",36617:"49b6823c",36628:"7d750230",36631:"81d7b08d",36652:"44b987c6",36715:"25dd9316",36787:"58c79659",36861:"10a7be5e",36871:"8d6fa6aa",36938:"993e8232",37003:"e88f9806",37019:"319cad9c",37037:"34203290",37044:"f242508f",37107:"819fdbdb",37115:"44a3f0b8",37130:"a0434973",37171:"64b74f6a",37191:"954141e3",37195:"477c2c54",37228:"9ded0229",37242:"be3793de",37249:"6e735272",37282:"a6efe989",37322:"f35fdb65",37349:"a6aea374",37361:"777821d1",37382:"2f2ffd0c",37387:"f2004445",37399:"18d7c461",37410:"13f744ff",37425:"ddc9fb22",37495:"2a2bd192",37539:"60964466",37572:"e9604178",37581:"3271583e",37614:"146c3c8a",37636:"d8cedc73",37643:"16151a28",37654:"530ed361",37661:"e1cb235e",37705:"faea974b",37711:"349abdbe",37717:"a2f3cbbd",37743:"51419bf7",37841:"f18231d2",37892:"24bcce6b",37904:"d0fe704f",37907:"d670bf28",38070:"cbeb3ad4",38075:"240e8984",38081:"d6854678",38099:"aec076a9",38131:"d0f594e4",38154:"66b5f103",38234:"8464832a",38300:"6fd08c18",38308:"dea12cfc",38329:"d0dee650",38339:"e51c4c50",38386:"ad55590d",38403:"431c4a68",38413:"94e03100",38478:"35845c4b",38500:"f5ed5323",38550:"12e513e4",38561:"3a987144",38584:"8a1be1ad",38588:"6bede74a",38621:"c4c9a6ac",38674:"c3ad8e7f",38724:"11162d58",38725:"59bdc533",38749:"afd1fbf0",38773:"9ef3adb0",38791:"ef82ada5",38809:"0b714fed",38963:"ef54d4ea",38964:"5345f83d",39047:"5249876a",39059:"a0e21b8c",39094:"0378abb4",39147:"d1dab514",39174:"96a7c221",39229:"a9ebd2d0",39230:"cc2187f0",39245:"e0edfd9b",39294:"93c27e2e",39322:"34e44ce8",39428:"c74e5676",39430:"b205d438",39604:"8b6ed74a",39713:"b98ebbb7",39730:"13b9ca47",39775:"7e01335d",39865:"c02344e2",39868:"5220859d",39869:"8b7e0e06",39876:"c1a9f7da",39920:"87203e72",39922:"4f5cda61",39964:"265d70c6",39975:"d14dabe7",39991:"cda244e0",40048:"25a1df27",40080:"528b064c",40109:"74f9af4a",40170:"56bca77f",40175:"11c0f64d",40256:"e78b3f50",40269:"b76aae85",40314:"137adab4",40318:"01d836e8",40341:"1256faa3",40370:"e1d72d94",40458:"060de88f",40494:"5a07931e",40510:"fc72a133",40543:"ad0afc4c",40550:"fea53c64",40578:"f25d1b42",40587:"bf93bce1",40653:"a0a95326",40675:"6209be41",40676:"9349faa6",40756:"01449c0b",40757:"b407ed59",40765:"d1588f46",40771:"fca45640",40844:"233597b7",40881:"9bfed876",40883:"79f66b52",40886:"5bca45d2",40904:"3833315f",40925:"810ab3b0",40956:"acead7c0",40973:"8a8fa7c3",40999:"f7ae509b",41029:"a7e5190b",41125:"57bcb09c",41162:"116e1858",41196:"519b6813",41209:"ae344497",41237:"726db651",41250:"649b3bea",41278:"91bb601f",41310:"d71fb03f",41355:"c25655f7",41418:"9fc0fbae",41438:"4645d488",41462:"4b0e9248",41484:"0e7a4a66",41533:"2d6cbc5a",41550:"f1572b54",41557:"72466c7e",41695:"519737ac",41763:"f66a5f91",41783:"ba3caf62",41787:"f20fb2ec",41841:"2674e1f2",41870:"3188b0aa",41883:"8270cc3a",41899:"a2efdb55",41953:"19d68f9a",41997:"c3590c3d",42014:"ffc02a0f",42098:"e70c0bf0",42117:"c8714aa0",42129:"40a0f910",42131:"af892435",42258:"af6abe77",42371:"1f761de3",42374:"a2fe448a",42534:"f2ee6b52",42542:"4341beb7",42547:"af8237cf",42585:"981b7702",42594:"d1d5c7f9",42649:"82369ccf",42674:"42e5beba",42700:"11d50568",42706:"23f04c4d",42779:"d309e438",42850:"90cb0a6f",42875:"dcd8c52f",42916:"9aa51f23",42939:"498985e5",42947:"dc56f9d9",43065:"c2536897",43082:"e64146a9",43171:"8dc3e56d",43203:"931532da",43205:"24c888ef",43244:"1ac528c2",43246:"db389b0a",43253:"634d71b3",43311:"7e6749a9",43362:"420e979e",43371:"9966648d",43373:"5088d0d1",43384:"e0a56302",43385:"5f4f457e",43396:"626467a7",43399:"ac1fb935",43415:"ac688034",43447:"d39316a2",43492:"f7addd6b",43512:"fd07a4f0",43518:"9cb72bdf",43588:"2418a4b8",43628:"9b17224b",43657:"64fc9870",43702:"2f156ab5",43725:"90b46f84",43774:"01bd3c66",43784:"b8185bcf",43864:"bafec862",43867:"54596720",43875:"08a3d4f3",43923:"914e3ecb",43929:"aa8b3031",43966:"80668a8c",44e3:"b7bb807b",44071:"9e19d3ae",44164:"144df47c",44174:"7e2822f3",44189:"23518eaf",44226:"ba5e745d",44263:"2b3908be",44284:"afafdbd5",44315:"7bd12f0a",44321:"889593be",44335:"62e02984",44367:"4c712d44",44416:"2fb51a21",44422:"c5c3a7e8",44485:"d384a434",44498:"411da4bd",44572:"59ecc215",44603:"69273b3b",44613:"b9a1fc0f",44728:"a11c5cf4",44760:"96b744e9",44840:"a7a65400",44843:"fa2a09e8",44928:"0ac55e52",44991:"53e43ac4",45006:"a272f4d2",45020:"73d635de",45041:"8f2e48a3",45086:"f6d1bd5e",45131:"3a2801fc",45134:"cc638d8e",45165:"095167de",45168:"a99733a1",45219:"576e5a61",45362:"95699e49",45377:"ac514ff0",45379:"7ef914fa",45391:"dcb133aa",45399:"4e966d3e",45421:"9e205c88",45424:"265e962d",45457:"ec9ba4da",45473:"895507df",45482:"ff248a99",45538:"1bba7572",45562:"a208377a",45578:"3e83b313",45595:"582caec9",45605:"c09920c2",45615:"a7ea28b3",45633:"51d456f0",45644:"4a9291a0",45655:"14779ef4",45664:"12718341",45688:"10290a7d",45708:"df9c3e9a",45716:"e7ec2a20",45817:"cf523dd5",45820:"e92885f6",45852:"acd0ac6c",45907:"78aa7335",45916:"040645f5",45941:"26451c1c",45956:"ca81926e",45957:"5c9188d2",45977:"5475735b",46005:"9a68e792",46031:"604a289c",46039:"7d9e6078",46098:"d2e18b32",46113:"3d854413",46148:"b3d7b0de",46155:"f89f3a4d",46202:"39a86dd2",46260:"27869024",46268:"03972b1f",46277:"d3c75e48",46289:"57db7039",46337:"09c3766c",46364:"64a9f1eb",46365:"233fec7d",46370:"5084cef7",46510:"1109fefa",46560:"d920e1df",46595:"6afa156c",46608:"7c098479",46614:"852fab3e",46627:"a2bf0238",46684:"a82c0354",46781:"dde8b77a",46783:"4793b138",46885:"0e96179a",46895:"54441443",46902:"c579d688",46932:"8d369f4a",47009:"3a0f5544",47030:"441fafe1",47078:"842d3e00",47160:"12a01a4b",47242:"00df98e5",47249:"565eb4b2",47268:"d7443dfa",47335:"b32ae4af",47362:"5d1aa00f",47373:"44fd28c4",47377:"6fbab280",47381:"e712a43c",47402:"14b0676d",47474:"84e4adaf",47484:"74441851",47508:"31c28e34",47627:"32ded912",47633:"5c6e179f",47659:"5e6db92f",47681:"b5e14c74",47702:"0d5b0328",47747:"65f95d1d",47767:"a0117192",47784:"01d39286",47809:"e3131e4b",47819:"84b5e0db",47821:"203e2240",47842:"85c3dc2b",47868:"f1ee7ec7",47893:"20965c52",47982:"99a7d78e",47986:"76a0b717",48069:"85944796",48073:"edd6357a",48084:"f3510b9d",48093:"fec4bc9b",48124:"42b9e661",48130:"88376735",48135:"efedf740",48158:"4baa6a30",48165:"8f2aa48e",48179:"7fbb5a1e",48217:"ca819fab",48260:"8e9d396d",48290:"c0eac4d1",48293:"6b30a8c0",48296:"3eaa9001",48298:"6ec527ec",48306:"344fce42",48311:"00e2952e",48330:"08a9b4cd",48358:"bfb3f8f2",48383:"59599efe",48399:"4e4d9607",48407:"8026224c",48410:"ebb3677c",48447:"7eac031e",48448:"0aa192bf",48466:"714ac436",48479:"9ec65d9f",48495:"603ff377",48580:"c3ed6bca",48607:"ec55d17a",48614:"96963040",48615:"c2490bf1",48628:"a819c2f8",48658:"6d0ff423",48699:"7deedb6c",48724:"c3fca443",48759:"30a3aaa4",48769:"4b4dd3b4",48820:"4e97a704",48828:"23af81eb",48842:"92d849d0",48846:"7f978081",48872:"95984d7f",48889:"47e77177",49056:"1fb352bb",49099:"39341e37",49166:"902c339c",49184:"e44bb9f8",49193:"ceca4887",49240:"d96b42b3",49299:"9b85f523",49364:"0bfd7a6e",49393:"d8abd2fb",49418:"0c90af20",49437:"0ad50fa4",49446:"785dd448",49470:"d18b7f81",49486:"383a98bb",49516:"425b7665",49524:"692dc28d",49558:"7975dc6c",49688:"744caa1a",49706:"dda9f3ed",49708:"9d938f47",49718:"dd672da6",49721:"306827fe",49741:"d31410ee",49775:"db9b7943",49816:"b5bf4221",49826:"c6d75c42",49841:"60d73090",49910:"0842ba47",50010:"50b7ad81",50015:"41bf28ca",50018:"0cc207b0",50055:"e34b5018",50070:"ebc04168",50079:"f83ad25d",50086:"e37bbde1",50108:"34d3a649",50141:"273852d6",50218:"0afeeee0",50247:"210b8ffc",50256:"35c20263",50261:"f7558b8b",50267:"17761e19",50269:"742c1ae0",50273:"94511b45",50355:"e550524f",50376:"34ce20cc",50429:"cc94c87b",50439:"9fc3e7d6",50480:"f3bdf147",50524:"6647dc49",50546:"86df8b4e",50559:"ca6c09f5",50565:"a61310b8",50570:"2884ce34",50627:"8ff13f95",50633:"560f7c92",50677:"8b9d8319",50689:"88c7d302",50720:"c0066bcd",50868:"85cb2570",50902:"e03d9d86",50971:"b92a9eba",50974:"a5e82f88",50999:"6f0fcb31",51076:"259b8fb4",51126:"0ff629ff",51169:"48072014",51173:"08c2ec1a",51190:"43df367b",51197:"28a34fe8",51203:"1116db95",51230:"7480e344",51261:"362b6fbd",51379:"de7bd1e2",51461:"40a9c7b9",51476:"c545f0a0",51629:"d0e22db1",51698:"5dd9cc50",51755:"be4a35a2",51766:"93528fac",51767:"d24a7e01",51786:"b915f47c",51853:"5d016660",51877:"8dd1677d",51942:"0718e41d",51957:"9832f210",52059:"b0df50b7",52109:"dc7ea1f9",52123:"557df2a1",52187:"f7d7486d",52300:"cf101347",52323:"d3cb7902",52338:"de0790e0",52350:"9b273b8d",52488:"773d4cd4",52507:"7322cde0",52520:"6ccad9c5",52526:"b725cc54",52535:"8e990b8d",52575:"b266f10e",52602:"29de6057",52659:"86e70c19",52670:"c317f64a",52687:"5de79398",52711:"3d116f0a",52723:"423ca666",52736:"8a4777ee",52744:"7b9e263d",52771:"6d26ee2b",52824:"afb198bf",52826:"76090f40",52841:"5af92830",52848:"7562c4c1",52870:"c2e21c28",52923:"6fc42c6f",52950:"8ca9bcc9",53043:"38223208",53059:"c4d638fb",53073:"487693fa",53104:"c04e0788",53146:"ea828c13",53155:"4129932b",53244:"f578ff8b",53290:"af091327",53292:"96d0a125",53312:"0f186301",53331:"5e84d856",53340:"4097f37a",53341:"30935ebd",53346:"55e5b7ca",53357:"241b6b4f",53365:"6f6582fb",53373:"91c6aad5",53394:"8384aebe",53411:"8774a5e9",53434:"d1c139b4",53512:"d20bfd00",53532:"37544aa8",53533:"76a1cc99",53535:"e9cd8180",53559:"740a8912",53577:"31540c14",53578:"bfd576e9",53633:"5c4253c2",53771:"93860438",53844:"aa75fdcf",53856:"ca385ada",53883:"bff31bb6",53894:"8e47431f",53926:"de603a71",53950:"84ba9415",53956:"d0f0b813",54024:"df98640b",54029:"11f5f269",54123:"c4520d33",54130:"098bef22",54150:"61e13fa8",54154:"7cf1c986",54190:"06833098",54193:"eb9834da",54225:"0a2779e4",54270:"15345bec",54305:"13d8084c",54321:"894bfac0",54425:"f1728919",54439:"6de048b5",54443:"a63ab836",54488:"b769e69f",54521:"5504a5cb",54544:"617e6e39",54551:"f204d9da",54578:"253d3f50",54583:"5723cbef",54637:"3fe35d8b",54643:"cd927121",54680:"c158223a",54779:"b94ee155",54809:"c08e5849",54836:"6707a7b0",54864:"2386b6a6",54922:"3652ed82",54923:"2107447a",54924:"6c52afbb",54941:"90a52bfb",55123:"ec1a3d54",55134:"e0b52941",55172:"c07b2986",55196:"a37b1dd9",55204:"15716f94",55228:"288fa0da",55254:"b7b5270b",55340:"78d2ff6a",55354:"a152e9b1",55413:"ff62c67f",55436:"e172296c",55485:"7bd1b6ec",55491:"a6638880",55567:"2a95fa3e",55636:"a5aa0aeb",55682:"9246371e",55689:"09d9d45a",55740:"0830982e",55759:"01b018e4",55838:"37de2d14",55905:"c347394e",55918:"4693c2ef",55923:"3ffb42ee",56220:"bd8a49bd",56276:"4191d6bf",56279:"ecd3085e",56309:"a9da11de",56356:"8dc9ef2e",56370:"ec714623",56462:"02112908",56513:"09b22a52",56520:"93365c14",56625:"ceede442",56649:"14d4b922",56659:"9e87a307",56745:"611036d2",56786:"0f09dcfc",56863:"32f045a2",56877:"3e1ae19d",56894:"52cc1d74",56935:"927debcc",56941:"eb389b06",56949:"102dbd4f",56980:"fc11d413",57101:"088251f9",57155:"cc70e41d",57257:"3879f582",57275:"ae3ab0a0",57362:"f26f2272",57390:"c0e53158",57446:"4fc90169",57452:"546bb636",57477:"10233ec8",57513:"613ac3ff",57547:"e3c9ab3f",57564:"55c021f3",57611:"7eb39fd3",57643:"7458f2d8",57753:"eed32bad",57764:"d705a57c",57800:"15e4a013",57810:"e7c6e869",57870:"c67af506",57897:"7c32370d",57912:"cb0508a8",57925:"c02d0794",57940:"a16fce2c",57946:"c44984fa",57958:"df7a98d4",58004:"ffe81add",58006:"d6894bcc",58015:"e79aa0cc",58027:"cfbf6449",58044:"3e0e95bf",58154:"08ce4465",58184:"1aea3255",58206:"1c161728",58212:"091f767f",58232:"a26eed96",58243:"6dc1cd12",58369:"6b9ba505",58382:"04df2c2a",58385:"5dbd7430",58400:"7392dc20",58406:"8b37d413",58426:"2319a0b5",58435:"f857d982",58470:"d0c6948d",58492:"3a20cca9",58496:"5252dba7",58501:"4229e504",58524:"22e98ee9",58529:"961326c5",58533:"08d998cb",58579:"b1b91ad5",58625:"0a380ef5",58653:"a0dba71f",58701:"2cdc9013",58724:"114f98b6",58737:"9bc9fe3e",58779:"0d5493c1",58797:"e86f8e89",58874:"b13d0811",58885:"8c4a3ee6",58898:"d1acd975",58899:"5b8a8dc6",58913:"c65f8e72",58967:"f3c901fa",58988:"bd4ce82a",59e3:"fbd59af0",59077:"ee9a57c7",59080:"ee8989d5",59083:"841d571d",59121:"87e2701d",59228:"78eba025",59259:"4715751b",59267:"216b88f4",59339:"2d9de54f",59364:"c9360b84",59382:"b1ad8564",59400:"5af91d09",59416:"017461da",59457:"c9fb0c4f",59474:"e528a326",59493:"840769f4",59572:"c4007ed8",59595:"f1f4f2d6",59613:"f28cac78",59638:"0b909d14",59670:"3f10ce92",59682:"bc978bbd",59689:"94c4b554",59693:"4c6de799",59697:"9b4d75ef",59709:"c6409c27",59720:"3714f07c",59776:"4d92a863",59802:"52c1ab99",59811:"b05cfb27",59872:"c6ecaef9",59893:"dcbe723f",59918:"1eee6eda",59948:"6a5932a4",59959:"de588d38",59990:"23901892",60026:"41de3a87",60056:"e2ac539a",60060:"1c436ea7",60105:"2ee53919",60150:"29aba023",60171:"7469d085",60180:"71334370",60233:"bfbf2212",60274:"e27ee736",60318:"15c74831",60372:"b1b0a460",60397:"1bc49c5a",60438:"b34259f7",60635:"44dc1a56",60645:"4ef99546",60661:"8a96d3fa",60688:"5ec14497",60704:"90b2b630",60731:"c9229ae2",60750:"834cd4b9",60778:"cc1cdb72",60795:"36c560f2",60916:"87576958",61062:"aab6e6d0",61077:"c31b8a17",61259:"46d017ed",61269:"897f257f",61270:"c3a733c9",61331:"1d57a24c",61449:"8aa651c6",61458:"f80f46ae",61487:"29686f85",61499:"f719ffad",61538:"acf4d9b8",61591:"5e73ddc6",61596:"77525ee1",61626:"48611794",61644:"60fc3f60",61658:"277dc6e6",61684:"6efa4c68",61734:"b5b1dfea",61745:"4c51952c",61768:"beaa4d99",61789:"d0ca8832",61825:"f2cb9072",61834:"42185c28",61867:"a0e79556",61869:"ebede6e9",61892:"c20c8982",61940:"3b0ee62d",61955:"dfcbbf89",61984:"01d2ce10",61999:"fffe1be2",62018:"b42db897",62030:"1040c30a",62059:"f010e11b",62076:"2b00cb7c",62094:"2b82e463",62138:"31575f96",62145:"ab856f7c",62180:"8e1145ee",62187:"c0f68e50",62253:"1bf1a5c2",62255:"62acf222",62266:"676c5246",62278:"9089af14",62331:"5d248d31",62369:"11e95251",62447:"3264731c",62526:"d14f22b2",62557:"df213ab0",62586:"78e410de",62623:"f7ed8668",62633:"7dd77d65",62686:"3cd1e58e",62687:"11b635a0",62700:"fdec2fb7",62702:"9d5da39b",62703:"96b1572c",62748:"6f9e458f",62784:"e436be44",62798:"c8af3fde",62814:"f9c3a20e",62879:"fc8cfab8",62900:"75122b47",62924:"6daa82f3",62926:"00bf505d",62972:"29d9c000",62987:"e6b34a1c",62996:"bb0cf4b4",63109:"671e1d10",63189:"25c96fc0",63192:"29d37c34",63229:"b3a68d3f",63240:"b890018c",63257:"35f75eac",63317:"5f1e21a1",63347:"2d124931",63361:"1fa12f99",63429:"3d22d2e5",63501:"ef63cae1",63512:"c26283ac",63514:"e51c84a0",63540:"61eae021",63544:"05289179",63563:"017896e1",63564:"5ca344a8",63617:"6a6fde8c",63649:"0a89ca4f",63734:"1ac315e6",63778:"6400fe77",63829:"6ba5afd1",63838:"eb4e1392",63862:"edc34497",63879:"ab5045ba",63912:"fae87fef",63936:"b7a15a5a",63944:"2a31ec88",63945:"3c2458bf",63956:"cebb2612",64056:"cb543e86",64107:"189a68c9",64118:"abac6c96",64165:"8846a08b",64172:"cc0edf17",64265:"1050b9f7",64266:"c4342f50",64276:"9c7265e2",64322:"7d148a53",64376:"fe1a6d23",64405:"d9383e24",64429:"9dcdadc5",64452:"3b6240e3",64521:"321f81c4",64529:"41072dc9",64598:"a1aeb6cd",64625:"fe62a71d",64637:"9c2326d1",64649:"7f2f88dc",64669:"fdfacdd1",64741:"021a7235",64757:"bc9ca086",64769:"81c04deb",64789:"4d50968a",64916:"5f093dc2",64919:"1240e175",64930:"9ff828ee",64957:"e1ba8ad0",64958:"24abad5f",64966:"baf77fab",64972:"ed3f25b5",65005:"75d2def7",65108:"8f95e2f0",65114:"23aec1e6",65154:"72e3569c",65211:"4d74abdd",65214:"5e6c7e3c",65318:"a80c7485",65443:"ce8b61a4",65506:"3ddccb98",65530:"656b050b",65541:"0dffffc3",65546:"57c2acea",65555:"d99e5c1b",65558:"a4b55c48",65574:"bb141238",65584:"70475e69",65644:"5d77f0d3",65704:"89dba324",65727:"d0ff560d",65747:"3ec8b33a",65768:"1c68f290",65800:"236b3f90",65801:"dc2e29e5",65833:"a4cb71ef",65862:"af229597",65893:"a3adee34",65908:"97993a3c",66051:"fa3da376",66108:"e7b89fd8",66151:"3394d7cf",66160:"0adb59b3",66167:"91d3a6c4",66179:"8d57ae65",66253:"b5b26990",66269:"2bc3bbbd",66294:"9390948a",66302:"4b40f118",66321:"b92ad632",66326:"9eece9e8",66333:"96450da2",66335:"4eae4374",66377:"30897d20",66391:"a4be0364",66461:"4bdda241",66464:"2a305622",66476:"6f4f79e0",66498:"c9f2a7fa",66503:"c48629fd",66543:"d5950500",66559:"68796ef7",66570:"3e99ecf9",66580:"7d059a92",66681:"ff430538",66685:"6ae9bfe4",66721:"66596f4e",66744:"bbda848f",66785:"717328ea",66814:"d0de25fc",66974:"16b10332",66988:"1f6b8c39",67012:"089efb54",67021:"eed006be",67033:"af0184db",67046:"f4bc5c7d",67077:"68c528fe",67098:"9b40671d",67099:"0bcf502a",67131:"d7d9fe6e",67163:"2f87dc44",67188:"bf932ba2",67197:"79975bb2",67210:"15ea0648",67212:"66c7c237",67233:"84d01164",67251:"cf469778",67348:"dfb49dfb",67356:"3a0a7fcf",67360:"f9701fb5",67409:"23e8b00b",67430:"63e81897",67459:"04cf5c99",67463:"3289104c",67489:"71739b12",67507:"a216d309",67509:"48120f47",67510:"a8aa4ba3",67546:"91ba4455",67554:"8f8d7eb2",67567:"950ca1fd",67570:"ce4c2a4f",67641:"56a3380c",67741:"665626bd",67760:"38ed92a1",67775:"f81e0a42",67778:"165df2eb",67786:"3ad44ca1",67824:"96b52760",67844:"48851b77",67853:"921879d4",67880:"f62bb5dc",67904:"47696ba2",67970:"e38db563",67984:"efcdf02c",67994:"862ea0d7",67996:"8c27adfa",68083:"c176805a",68103:"229f2307",68167:"21d4f259",68169:"606a4a7c",68188:"3ea4860d",68241:"0166be64",68249:"0c7d150c",68280:"58e928d0",68284:"c9fe99b7",68291:"84b3c7d1",68302:"ce3ce601",68325:"ded7eb6d",68405:"cb1a817d",68442:"4e506ecb",68483:"4c115d43",68516:"2bd15422",68532:"4fb275e4",68565:"20611541",68589:"9aaa31d2",68651:"765ed43a",68658:"70bab1b4",68665:"c374b273",68697:"5e9855ed",68718:"1ff27b20",68755:"82ffab16",68786:"3d016b50",68794:"1e71340b",68807:"28ff0863",68827:"198ce38b",68857:"8978567b",68887:"cde25a67",68960:"e7cdc645",69036:"a08cca42",69057:"4d2e7a54",69067:"ed9304ce",69122:"8c320260",69141:"68e54c64",69160:"4b1c622c",69320:"d3d474bb",69347:"2e45f0fe",69405:"67841a29",69418:"3c985f41",69443:"078c712d",69477:"b5b01c93",69538:"77222587",69575:"a7a404a7",69589:"f56bca17",69699:"fbed8e7b",69706:"fc93f459",69727:"cd214ffd",69739:"0e14e58b",69791:"16c9164e",69813:"0f21d5cf",69919:"71d496f5",69920:"67a9ebae",69959:"239c8122",69979:"87ae6be1",69984:"39c4ed97",69995:"c103f46c",69998:"e4780ede",70004:"4717bfc5",70134:"c1024a13",70137:"444f80db",70158:"6f8c52ba",70166:"c5886b5f",70194:"fdee23fd",70202:"cdc982d6",70206:"2bf2600d",70274:"deb3e875",70285:"0803c736",70323:"b4bf5e8f",70410:"9abc3010",70452:"adab1cc3",70479:"465e2ffa",70500:"0e1930f7",70577:"ff2dab3b",70673:"f607eeaf",70683:"e3648967",70689:"767699c7",70691:"03b2b794",70715:"4dacdab3",70749:"5b9e0d2e",70787:"fcf221ed",70796:"e0ca1cb0",70846:"32308950",70901:"feb5dca2",70904:"d03297c2",70936:"66c28b9b",70973:"ac0c1194",70975:"6865c993",70987:"3ad182b7",70992:"f8e1e205",71033:"0834a3f4",71089:"1bef8f85",71114:"27e98c7a",71134:"e07ea21f",71170:"0cc3d160",71191:"4f69b180",71219:"f65f0d84",71249:"44be234d",71284:"544f9a1b",71293:"6f150d63",71338:"0fc3c593",71407:"94d9dec3",71452:"8c7a6e7c",71522:"55495f43",71544:"eaec1254",71545:"e118a855",71547:"820be594",71575:"d337d616",71633:"885cb9ee",71670:"3afa6a78",71695:"918fe665",71784:"48ebacec",71786:"158180a0",71897:"2cb5b1e2",71950:"646030f2",71975:"922ca742",72132:"1af4e404",72168:"79af1cc6",72194:"44d95656",72213:"356e9bd5",72226:"dd3ef60e",72312:"6a6001cc",72331:"ae2c42b8",72370:"d7efbe36",72373:"8c4f5745",72444:"e9a5a7df",72478:"f172448d",72498:"69682bcc",72524:"8af3827e",72638:"14a91bc1",72677:"f19f1fcf",72688:"e4016dcb",72758:"348c6d18",72762:"53ed6669",72791:"24e3fb36",72799:"57f725e2",72825:"fb755f53",72842:"434d9ad3",72891:"cb078b4c",72905:"c9de6a27",72923:"438837ba",72926:"f4e37cb5",72942:"bcbf5c46",72945:"93f9e981",72961:"ad9a8024",73e3:"574a13dc",73008:"a6dcb57c",73032:"906e0002",73045:"16577e5f",73078:"df067204",73079:"ffdaceb7",73108:"ea4105ce",73114:"01b28194",73222:"e0bd2afe",73294:"5c53928c",73305:"7556feec",73314:"b62f8e7c",73420:"bd58b5c2",73428:"03d170dc",73431:"0328f4bc",73435:"72e27d82",73458:"b4eb2e9e",73486:"8019c209",73565:"bd333102",73631:"653c04f8",73657:"fcfc8c32",73702:"c457cf9d",73728:"d5d64363",73740:"28c4ba7c",73764:"153eea93",73770:"c161f0e4",73784:"717e5582",73792:"b7e0dbf4",73814:"455481cc",73841:"0c14a3c4",73872:"281b7061",73907:"7a91594c",73933:"69764695",73949:"76fa1f39",73966:"afb9c5d1",73993:"cfccd467",74051:"a7773913",74080:"6e69641b",74086:"c81ce49e",74100:"e381ad26",74128:"510fdc5c",74139:"7b9e1444",74150:"2f513db4",74182:"7eb69187",74231:"82d43a68",74256:"b68ed267",74274:"73f5ffed",74290:"2ecd3269",74314:"36637783",74344:"27cdbd78",74348:"cb377e74",74378:"63693279",74379:"5645c027",74394:"fa9cd109",74403:"c5c18001",74408:"41ff1c4f",74415:"a3aa3687",74447:"d544ce53",74534:"4d051dc3",74559:"8f4bd274",74603:"bedeb27b",74676:"59eccb84",74685:"8c09e75c",74692:"83140d90",74735:"39137bc2",74743:"77053fea",74787:"cc970a50",74792:"109d737c",74859:"b9393e3d",74876:"19fbb49c",74886:"36a0282b",74906:"5083ca33",74932:"4211c292",74970:"be28efe7",74991:"1cdaeba6",75132:"63baee87",75140:"0728be79",75160:"10f041a5",75165:"d258a19b",75187:"a1b6ef85",75189:"03cedf59",75242:"77edad2f",75307:"234eb68a",75335:"cc6d83c5",75349:"fffc2b82",75371:"48c14ace",75375:"a5df8852",75442:"87899253",75445:"87738a98",75447:"edd3f5b1",75549:"e4bd0286",75556:"46d30950",75558:"831dd689",75565:"a6b22cf0",75566:"400cc260",75635:"d553d34b",75642:"3c0810be",75664:"489cd869",75708:"ca625aec",75713:"90ef026f",75737:"645ac056",75757:"75eb1853",75760:"d0d704eb",75770:"196f1efc",75792:"1100c3bc",75806:"1a896ca7",75817:"5e43b6e2",75824:"bf410098",75885:"bd1f3041",76038:"3692cb6f",76047:"55af6963",76090:"321353b3",76105:"9831d259",76151:"38638fae",76188:"52fe7726",76226:"c38d5005",76276:"be154b3f",76357:"eaa3ca90",76396:"d2a15428",76472:"87ea7c24",76474:"6c724883",76481:"06d2def4",76491:"2295748e",76549:"e6249223",76572:"e74821da",76639:"478b7f83",76641:"b4292f91",76776:"08959efc",76778:"13e906fe",76785:"3768bdb0",76814:"8aad8bac",76823:"eec5b92a",76840:"b626319b",76848:"1e28cac1",76864:"d75831e5",76868:"7959b29f",76959:"7b728a97",76999:"b9e818f6",77012:"d5a20989",77018:"2e4ab8b2",77103:"7f8fb294",77129:"21a44406",77203:"bb84e474",77211:"b6c93cb4",77246:"2050017a",77250:"9389329a",77324:"752f6210",77345:"0a74caac",77373:"d9c1dc27",77405:"54f2afb7",77445:"4ae6a19f",77471:"c1c4f4ca",77583:"1f17aa3e",77595:"51e19599",77600:"cc9cc846",77614:"68791b14",77650:"d143f880",77696:"3498918f",77720:"a0eeaf22",77769:"656a1e13",77812:"14c9fb35",77827:"e5bd1f5d",77853:"bcc1a1a1",77884:"72316b1f",77897:"6691ccbe",77909:"5ae2fa0a",78030:"2ac0a99c",78034:"f8b4e600",78102:"e5f13aaa",78119:"70abfd1a",78127:"8893fc02",78131:"aa647651",78149:"40eadbf6",78171:"6f446098",78193:"96af8928",78220:"c7e907df",78246:"fc0d53d8",78296:"eb467120",78310:"012ad662",78383:"880ce6a2",78423:"b5fa021c",78439:"b6edb5f8",78477:"337c7138",78496:"59877bf3",78575:"224f9c12",78609:"a6fa6b8e",78668:"df527b9d",78707:"58c59504",78715:"9ab493b4",78856:"97bcdf38",78857:"8a005e86",78911:"a1955f31",78912:"2e4785cc",78948:"443264f1",78974:"cfc40e64",79019:"c9a31aa6",79048:"f69b9aee",79121:"355a373b",79125:"426514ea",79150:"52873ef8",79153:"674e8498",79189:"4c553234",79242:"9bbe4ed3",79262:"01551d5c",79375:"d25d30b1",79449:"9b4b029a",79496:"937c8570",79532:"b4d86af2",79534:"3ca78da3",79550:"24d7ecdd",79587:"d563a181",79626:"ad33beeb",79669:"73e1a06a",79775:"0354ca17",79817:"42ae58a4",79824:"294003e3",79860:"0b54f47c",79872:"c6b4a7b9",79910:"09713f7f",80055:"e78208a2",80092:"62aca9a2",80095:"d1ad50c0",80139:"9ad5d1da",80157:"e767ea6c",80168:"535d4f82",80172:"ec367fc5",80202:"6671985c",80210:"b53ba69c",80218:"979b0fbd",80239:"3dada950",80292:"c2874ecd",80346:"7f40c8b2",80395:"5b7fd77a",80445:"f642e70b",80449:"4885e726",80466:"dc766cdd",80495:"cbb5be80",80497:"fd31d09f",80509:"4198e34f",80517:"5834effe",80534:"e5b9fde0",80535:"7daf76a5",80555:"bd0a549f",80614:"53414ae7",80625:"bec06634",80722:"80cd22de",80750:"1335137d",80762:"16d92b3c",80818:"1adfd383",80869:"eb102fb2",80877:"b46b95d5",80902:"4b1b5da2",80921:"2e8d3dae",80925:"d8a52332",80940:"de70c209",80945:"62ba8ee6",81018:"68447e00",81126:"ff50ef77",81133:"92d717f4",81182:"7e7f4699",81215:"5467170c",81252:"0a4a283a",81253:"c239091e",81285:"6d8a2334",81374:"0e800470",81477:"fac4c390",81478:"6a7e9b61",81523:"b7b7f170",81551:"9effe3a9",81557:"fd21b137",81562:"124781f0",81571:"c8d0d26f",81587:"79b4e592",81647:"4b1ac0e7",81648:"d3c8e1b4",81666:"253d5602",81689:"b7d04474",81690:"9a3f008d",81722:"afe5477c",81739:"b52d55f9",81755:"d3324ed2",81810:"8588bece",81833:"8da54ca5",81837:"e9b553c8",81845:"1f123408",81872:"d1a22381",81876:"c9e32893",81898:"017bf0f2",81899:"ef636155",81920:"a3470d35",81934:"b595edfa",81940:"15b75329",81949:"d26d71da",82089:"5011ac27",82144:"56591aac",82168:"27b64ae0",82169:"cc145a8e",82261:"d7ca8ca5",82301:"7426dd41",82312:"d27ba1f7",82387:"010fe7f6",82405:"21a3fe7e",82451:"564e0e9c",82465:"504a5463",82507:"6c9fa6cb",82509:"e050f7b9",82537:"7d7d7df9",82561:"934b70ff",82697:"a4e06bae",82723:"1abd7676",82737:"3c17a873",82751:"2bb3458c",82757:"9c99ad93",82760:"a4992b8e",82778:"36b8a024",82795:"dc336307",82814:"e1d30f1a",82948:"3f766a03",82957:"7e4d511f",82996:"a71fa549",83011:"e10e9c57",83048:"69d35c00",83050:"6c34a993",83056:"96eb134c",83249:"bdd7c072",83254:"0ecebf48",83294:"ffb24f82",83319:"fdc6b2b3",83358:"55aecf9f",83362:"eecbb724",83379:"c1af759f",83458:"2e9034ab",83501:"aac1e052",83519:"25a8daf8",83523:"7e821aad",83526:"08a774e5",83537:"a1c90822",83556:"cf87d435",83571:"f8be72aa",83607:"5641a6e5",83640:"05c41019",83660:"23d05078",83705:"9bce569e",83748:"2ada2fba",83750:"a4242f4f",83795:"da1833b8",83816:"91ddb885",83854:"2da4f752",83940:"ed015a32",83953:"5f8b1503",83964:"5c7f6b3c",83972:"42f8e4ef",83995:"ab19bc89",83997:"89edd80a",84002:"a89354c6",84028:"6e7830e8",84072:"bc239563",84075:"2a32bc6a",84085:"db1f01c4",84114:"bfdbbe14",84142:"f4db983b",84164:"2f12d09f",84165:"0e1fe89f",84266:"b170dc0b",84357:"dc31759a",84379:"cadb6827",84380:"2ca957d0",84508:"4f4ccb2d",84512:"dbc1e3fb",84599:"403d210e",84604:"573a9787",84612:"3043fb40",84618:"a0c1a6d7",84630:"19e8dd13",84651:"94f0b536",84694:"1002423f",84715:"05083fc0",84799:"94e43220",84805:"70082712",84813:"e1465c6a",84814:"f487be53",84844:"acfb0e7f",84849:"12b2ea2c",84860:"28bef3f1",84878:"a700b738",84911:"a10f4837",84940:"1c3062a6",84983:"ac83451c",85004:"02dec604",85038:"92e7b5e3",85084:"be2fb5ee",85118:"f49b45c5",85256:"3be79676",85261:"41e66733",85270:"6debec5c",85274:"93b770ad",85296:"ef59ce35",85335:"e1347873",85393:"378dfe23",85421:"2cae729b",85498:"123dd86d",85541:"ace9cb3e",85601:"8b08c50c",85611:"06fbd2be",85628:"e6a782a6",85659:"01cf286d",85672:"17b78a6e",85756:"18f20dc7",85761:"28320494",85764:"bb5f1777",85807:"2be0ec00",85811:"63338efb",85901:"f1c6a2a8",85904:"d806d5f4",85919:"dc9ee1ee",85931:"a781a302",85960:"ac17fda2",85974:"44069d5e",86066:"6edda3d1",86097:"18b980d4",86100:"7f305769",86118:"77ed38a8",86304:"2912a98b",86312:"5ef55a89",86314:"fe4dd1ac",86350:"66997112",86394:"426dd0b3",86439:"1d773b00",86445:"39447c28",86536:"243dd1eb",86611:"7c1671e8",86629:"2f18c032",86632:"76baf480",86660:"15b0c2ca",86682:"9bc658f7",86688:"00a359bd",86691:"58f206a8",86741:"2b0eb03b",86761:"61d62a62",86770:"4e9c6fa0",86810:"a526e672",86817:"16ea6b69",86843:"032a7423",86874:"6b511d3d",86887:"0ed2d273",86890:"c3878fa8",86916:"652a6386",86943:"892e96b9",86958:"15ce0355",86973:"54456a83",87009:"647b0e99",87026:"a1f407ec",87037:"bd6bd136",87076:"339b97c1",87088:"c13e8cb8",87107:"c10df0bb",87154:"576b78c5",87168:"8702f070",87195:"b9e689d4",87206:"85f4d793",87229:"11b9c86b",87351:"02876909",87384:"6bf60128",87393:"fe50dbd2",87394:"7168f21b",87401:"536e9608",87403:"fd42a015",87475:"56ce6541",87492:"3461b220",87623:"c6ff2ed1",87745:"a8a17fe8",87797:"b375c115",87801:"2aa951b5",87826:"a025a312",87851:"75af4a02",87852:"26c91437",87864:"84eae44b",87940:"f52794e3",87952:"1c30e0a3",87977:"1bdc0e24",87995:"0e73d589",88002:"6b669e54",88047:"552f2b3f",88049:"8ddc02c9",88062:"b7221a41",88146:"b32c6632",88156:"dfd7cfc6",88190:"504c8655",88196:"e076d83d",88224:"1c06588c",88289:"37c94f2e",88307:"4ebef7ed",88352:"7dd48130",88379:"c2bf5c8f",88434:"6bd0f795",88437:"5b236b64",88449:"f3be6526",88471:"bb27e82c",88514:"0f33cbf4",88606:"d3c180b5",88648:"ae7b31cd",88670:"81fece1f",88764:"0e875c42",88813:"832b6ebc",88866:"ce8a5eed",88906:"30491dc1",88961:"95e456ce",89118:"4f57df1e",89136:"54802c8a",89200:"6ce4e31b",89202:"7675deb9",89207:"8b8dc46e",89228:"6cf7291d",89274:"f2f34b8c",89315:"39ddd52b",89318:"39100830",89345:"51878c14",89359:"58ebf1f1",89374:"b3b19af9",89401:"08a4be81",89434:"f3a826a0",89451:"35e29d25",89523:"d54075e0",89536:"f445c188",89562:"1c799e41",89653:"88314bcb",89749:"e78b6f87",89767:"4554293f",89788:"501d5fb0",89810:"5873868b",89851:"dc2cb6a3",89870:"e2a008ae",89883:"9e060e06",89886:"488f83bc",89901:"a23601b3",89906:"61429891",89907:"555df5be",89922:"8f40dba8",89925:"4951c523",89951:"20b7d4af",90135:"be905ce8",90156:"7ad0375f",90189:"de457747",90211:"84e328c6",90251:"9ef3cfb9",90268:"0c7e2edc",90271:"e660fc1c",90352:"d4cf269d",90398:"e982850e",90416:"2dd48aa0",90428:"9f1babb8",90453:"8d187499",90469:"8ceb3604",90476:"8e1068e3",90566:"1666cd0f",90577:"2176ba5b",90618:"90830282",90638:"e3249ff1",90660:"5265c209",90738:"cc368534",90841:"973e1581",90891:"099fe824",91017:"e8620cf2",91022:"13a214b4",91060:"52bd4e42",91084:"c576a2fe",91093:"308f89c6",91116:"458b366a",91156:"f10a5464",91157:"ca6fb8c7",91222:"7b075a8e",91230:"375abac8",91261:"607b1402",91273:"0e2ff9a7",91285:"cbd82356",91322:"0cb4d988",91323:"c8fa9378",91375:"26441a12",91440:"677a9ed9",91501:"8282082c",91545:"509f8f49",91650:"1743fe75",91694:"9e046fce",91812:"60e3bd26",91818:"bf0df13c",91917:"cd0a15c1",91974:"bbf25065",92038:"95a2083f",92051:"4135e22f",92208:"4e37777f",92224:"1e19ce22",92279:"ef1288ff",92281:"d4478676",92306:"13271cd3",92310:"5db58cf3",92325:"6a644c7c",92349:"9b94b206",92353:"b2a47441",92357:"3174a33a",92441:"9c5ac920",92618:"af47c886",92634:"972fd224",92669:"22194652",92674:"3c3e7b94",92817:"fba12684",92837:"bcabc953",92876:"a67a0c2f",92878:"35a534a6",92917:"c884e3bc",92941:"081413b9",92965:"d9bd3754",93022:"81fe3745",93043:"024b483d",93083:"7e4f2be7",93125:"505001d1",93134:"45c72f35",93135:"ccf65555",93154:"17dbba77",93176:"963bed84",93209:"c3d92f1f",93222:"bbf44845",93260:"d2bab3af",93292:"4a9bc380",93306:"0afd0824",93322:"63cce803",93345:"14fed45d",93453:"e340f04f",93594:"c13099ab",93621:"10bc984b",93643:"e4e881c7",93683:"8e3fcb57",93702:"735b4375",93750:"f9c1748f",93792:"e04f9a09",93873:"2108b235",93895:"cbdb4e8e",93896:"772f1aff",93905:"d8343ce9",93908:"7d7d2c7c",93918:"73b7bcd6",93931:"de8beb1f",93943:"33c3351f",93992:"a277965d",94002:"d9e1746e",94008:"1698d3ab",94099:"9455ff0a",94136:"0afebcc2",94161:"202039aa",94188:"f8ae7aeb",94221:"ec0828e9",94297:"1a92bf85",94347:"07514dcb",94431:"47a6dced",94445:"010d7902",94453:"53795a43",94458:"75b1c9dd",94471:"af6fede0",94536:"80a8a238",94544:"df8cd351",94564:"39338afe",94575:"acd6dd68",94707:"7ed60eb8",94708:"c37d8aaf",94715:"d037bbb9",94731:"e4030f55",94736:"20385816",94753:"6a48e172",94768:"bff5182a",94792:"7c5d91af",94804:"6aeb0c62",94828:"1131b3a4",94882:"ea134931",94950:"5f5463d6",94987:"43870929",95026:"3db196cd",95030:"bf238c53",95134:"6a182818",95142:"54408c05",95163:"8126ae3d",95215:"73c509e3",95247:"a1480df3",95301:"c07e29ab",95356:"f054f9d0",95373:"12594b90",95391:"2034ae62",95534:"70070ba7",95551:"5acce6e2",95570:"5a7c2305",95593:"a6f6f823",95611:"7e7da08d",95700:"f78d233d",95754:"214802ee",95758:"bd923781",95790:"a042e77a",95808:"938c52be",95861:"8b59f093",95897:"7707e6b0",95910:"3a1b3ec2",95924:"75cb357d",95927:"8a642b12",95930:"610eb28c",95974:"6b6587b0",95999:"616b6cdc",96040:"3fcf65bf",96052:"bc3cb42f",96064:"e94e2070",96172:"afd6bc8a",96184:"266cb899",96240:"380f8751",96242:"b4494da5",96355:"32182dd7",96385:"85e95cfa",96388:"02ebc6ea",96421:"bb42ff40",96491:"c05b6ce3",96514:"2e92ea4d",96540:"29a81d53",96553:"aa9eb319",96593:"274c8762",96604:"24b68f43",96614:"fb81572e",96641:"e8c89d4a",96656:"878085cd",96663:"161e9559",96750:"20a0ed8a",96754:"75ead8ec",96758:"de6d0b0a",96776:"cfeecfea",96915:"4539186e",96946:"6fde2b4f",96952:"ed3dd946",97e3:"c6fc7e43",97007:"a9269081",97013:"c3f63168",97089:"2f4fb6fb",97133:"2d997b9f",97139:"df4e77d9",97160:"04c4e0fc",97202:"0fb66ada",97297:"3d54ad26",97351:"89f338c5",97395:"5dfce254",97446:"81d4a096",97458:"79260b84",97569:"e3e86bf5",97665:"21698b26",97804:"25fe03b4",97808:"c680d12b",97811:"71b5c712",97830:"dc9053ad",97872:"7cb49c26",97880:"e66d9b59",97913:"e9906591",97915:"e159a891",97933:"21fa81a8",98006:"2360f18e",98095:"2a636c85",98099:"960bd5c9",98156:"6f4300e8",98169:"f9a5d4e1",98197:"0f637822",98228:"4a7f9fe8",98236:"b5605f61",98256:"0464ebbe",98275:"9005979f",98351:"a95bd4d2",98407:"aceeeb80",98465:"16a26ce8",98472:"50dc5e84",98478:"c8dda311",98490:"1b206196",98544:"a50089b4",98547:"0555add4",98581:"86b89851",98602:"b9f430dd",98633:"a095bc66",98686:"30b61e21",98745:"98be5bd3",98766:"3c3a4f1f",98771:"57a340cd",98789:"ff843675",98916:"9286946c",99024:"93dc1c38",99101:"c42bf146",99106:"a5d2054b",99126:"7df5f462",99173:"b5c66f90",99318:"9b1af27c",99321:"6ae2f4b6",99340:"280d3504",99365:"de309518",99390:"5044358a",99417:"a3b3c0d3",99432:"b771a361",99434:"ab50925e",99435:"a84a924e",99444:"d3b5630e",99458:"fcff4398",99497:"52177a68",99510:"fda8e0e1",99573:"221803b4",99575:"8a530be4",99580:"c42091a3",99631:"6afb7d5d",99672:"ce0be61e",99686:"b874ac67",99692:"0ba39c24",99693:"6c3b08bb",99774:"a734cb52",99812:"166e0562",99858:"f92dfb95",99957:"aa563031",99998:"f59966a2"}[a]+".js",t.miniCssF=a=>{},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),t.o=(a,e)=>Object.prototype.hasOwnProperty.call(a,e),f={},d="push-website:",t.l=(a,e,c,b)=>{if(f[a])f[a].push(e);else{var r,g;if(void 0!==c)for(var h=document.getElementsByTagName("script"),_=0;_{r.onerror=r.onload=null,clearTimeout(i);var d=f[a];if(delete f[a],r.parentNode&&r.parentNode.removeChild(r),d&&d.forEach((a=>a(c))),e)return e(c)},i=setTimeout(s.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=s.bind(null,r.onerror),r.onload=s.bind(null,r.onload),g&&document.head.appendChild(r)}},t.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},t.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),t.p="/push-website/pr-preview/pr-945/",t.gca=function(a){return a={10659806:"20382",11330710:"29419",12750430:"64107",15512226:"83607",15740554:"84266",17896441:"18401",18329464:"88606",20565400:"42371",23036166:"40494",25199571:"93908",26734393:"25114",27870954:"75375",28372844:"32857",30618897:"36617",32988486:"22809",34039198:"86536",34720735:"14586",36471230:"34075",36636520:"49184",38584736:"31897",38603233:"69141",41880870:"45219",42891609:"55340",43084770:"16794",45879357:"24561",47751582:"16104",47896812:"11530",48723664:"48093",49215773:"17071",49518896:"76549",51994402:"22021",52181999:"29017",54968223:"40458",54988307:"9784",55585569:"65555",57269503:"35870",57603724:"67489",58385753:"95373",58802736:"742",60000333:"61684",60308593:"24265",67515884:"15767",67750132:"90156",68666167:"73008",69177293:"90891",69324566:"76814",69958486:"18124",73180335:"62253",73324267:"66269",73611494:"56370",76608970:"12138",78545271:"25292",78963624:"8022",79045086:"80762",79599614:"8967",81856798:"47373",85816216:"61834",86600345:"44613",88429831:"30794",88958298:"1536",89020377:"20833",90160847:"47893",95453379:"96754",96216215:"23771",98564943:"40175",98869011:"42939","84bcd2e8":"27",d64c534f:"40","8310ec5e":"57",dc9d9d7d:"241",bd5231ee:"242","33554c08":"264",c6e2e3a6:"280",aa802b21:"286","95096edc":"288","8a8581f0":"408","04151b48":"460","206a2a76":"558",fddc281d:"563","8b621697":"564","558b8bba":"582","8252d9d1":"591","58ec11bd":"628",c51e6b5a:"631","60e544e0":"920",e14b20ec:"949","26aa4446":"979","19be0f52":"1057","47f70b8a":"1058","4c10b97f":"1059",dc6e7ad5:"1062","72b1ab8f":"1100","265e1379":"1193",ce277db3:"1286","010fef8e":"1332","77f6fc98":"1375","7a0e73cd":"1405","9c504883":"1447","react-syntax-highlighter_languages_refractor_gedcom":"1451","68c53b77":"1499","52e10132":"1530","3163852f":"1551",bf1a6c1e:"1554","633051d5":"1568","24d1e5df":"1644","435c1d57":"1683","react-syntax-highlighter_languages_refractor_powershell":"1719","9659142e":"1728","5e8a2318":"1766",f0fd5ae9:"1807","8e619849":"1811","9e62c064":"1874",d2d75277:"1901",fff33ac4:"1927",ef91fd67:"1939","11ec5faf":"1941","57c844f3":"1987",a20ed76e:"2071","react-syntax-highlighter_languages_refractor_abap":"2078",d30b4225:"2119",eb36b2c1:"2145",e03529aa:"2169","80753a45":"2206","4cc9f601":"2237","react-syntax-highlighter_languages_refractor_pug":"2272",c98609e1:"2274","07892beb":"2280","4d80eee6":"2328",cc3e5c26:"2337","41b81e12":"2383","52cbf5a0":"2385",c737e91b:"2416","react-syntax-highlighter_languages_refractor_livescript":"2419","12eca085":"2468","164f70ac":"2473",f3e763e5:"2517",c6335d26:"2549",df30a0d5:"2598","49c96c56":"2614",d5606cb6:"2665","88805bdd":"2666","react-syntax-highlighter_languages_refractor_gherkin":"2690",f187f75c:"2814","react-syntax-highlighter_languages_refractor_robotframework":"2824","2cafcb46":"2834","065e482e":"2964",dd8234ec:"3132",ebab6303:"3169","65f9c841":"3247",c336d2d9:"3258","8050d968":"3291","3f92b6dc":"3358","react-syntax-highlighter_languages_refractor_twig":"3375",reactPlayerVidyard:"3392","07a24ab3":"3401","58121f3f":"3407","0858460b":"3472",a0c8f4d1:"3506","0f9e56a2":"3519",cd08d4b0:"3688","265804ab":"3694","react-syntax-highlighter_languages_refractor_lilypond":"3733",a7951825:"3769",a1db62ef:"3782","react-syntax-highlighter_languages_refractor_moonscript":"3874",eb3ba94e:"3882","react-syntax-highlighter_languages_refractor_promql":"3909",bc81f325:"3921","8ff11d0f":"4019","3fb7c2e9":"4100","22b47849":"4105","3cfe152a":"4167",f2eced51:"4226","0a6a88e9":"4247","7a259904":"4262",a62c6278:"4266","089859ad":"4289","30c8b998":"4295","5cdfd161":"4311","509b9638":"4377",feaf005b:"4400","1eaac6a5":"4426","5cea70f8":"4450","react-syntax-highlighter_languages_refractor_powerquery":"4469","8fc26804":"4732",cbf4c551:"4836","8bf829ee":"4866",cf2e8a32:"4881","5aac511a":"4957","54b95c75":"4987",e4a0154b:"5031","421a29de":"5133","react-syntax-highlighter_languages_refractor_hoon":"5208","49c48589":"5263","8a5f3d58":"5265","react-syntax-highlighter_languages_refractor_tcl":"5281","0bdb2564":"5314",daad3ec8:"5407","8343a638":"5427","5a527ab5":"5511",de2fe47e:"5521","react-syntax-highlighter_languages_refractor_django":"5529","367e4fc9":"5538",ee52a4f2:"5615","6765012a":"5655","1f96958f":"5659","6716300b":"5664","2d9fd3e8":"5672","13a4797c":"5674",a8533575:"5716",e1538bc3:"5717","83ca6e75":"5719","react-syntax-highlighter_languages_refractor_solidity":"5779","1bd3ee4e":"5838",d60a63a2:"5864",ce0a1787:"5889","151add9d":"5928","react-syntax-highlighter_languages_refractor_gn":"5963","5adeb76b":"5989","0aa60109":"5999",a0573330:"6051",de89ea4d:"6057","25a66ca5":"6094","6ef00491":"6124",c430b383:"6129","1f164800":"6135","05d06b69":"6141","609b18dd":"6167","804765a6":"6262","11bf9e76":"6268","3f0bde23":"6294","3b5280ba":"6334","40e8d2f8":"6344",ac7da1e4:"6351","94b49ec0":"6361",c0fbebdf:"6385","8e131a02":"6394","95b96bb9":"6405","5e7d406c":"6425",f86d83ea:"6438",reactPlayerKaltura:"6463","326c28e0":"6476",eb48eb31:"6483",a079ddf3:"6497","691162ab":"6511",f89ed123:"6531","7c5f602b":"6550","react-syntax-highlighter_languages_refractor_handlebars":"6804","275fbd78":"6812","65d2ee61":"6815","0bbcffdc":"6839","27de3a99":"6845",edfa1e84:"6893","6c0205ab":"6944","86e65b11":"6999","00c3eb1c":"7048","89a24274":"7052","59bc3ca8":"7109","236d3efd":"7114",c5987ac2:"7131",c80bab8b:"7139",da73f0d9:"7207",c93cd936:"7231","49bb035c":"7237","react-syntax-highlighter_languages_refractor_protobuf":"7261","0d4c2304":"7269","16f806b1":"7273",bd8c0afa:"7276",daf22984:"7337",d1e1b89b:"7371",bd359c2a:"7442",fe9101f7:"7454","45ad5f4e":"7457","2eb67f0a":"7482","34ab9615":"7508",ddbc9423:"7556",d84c8b75:"7562",fc4d4272:"7587","8240de52":"7605","9920bad0":"7616","200945dc":"7642","268d64cf":"7674","6823ceb4":"7686","479bd2e2":"7726",b96f418e:"7752","react-syntax-highlighter_languages_refractor_rego":"7765",df6d0412:"7802","15e516a5":"7808",c41c6f62:"7814","react-syntax-highlighter_languages_refractor_inform7":"7818","9793c9ab":"7854",c794484a:"7911",cf7df211:"7959","1a560913":"7989","3e50d90a":"7996",ad846957:"8047","3e0b10dc":"8061","6f7ca108":"8091","9cd0874c":"8099","29b06d52":"8145","01a85c17":"8209","53953b9d":"8285","react-syntax-highlighter_languages_refractor_vhdl":"8330","87242d08":"8336","469a95ce":"8345",d3e8ad86:"8374","350efd57":"8404","react-syntax-highlighter_languages_refractor_nix":"8417","86fed5f2":"8463","035376a3":"8515","971783f9":"8519","6edfd560":"8577",fec35715:"8608",b161e36c:"8662","687b58fd":"8679","11d8605d":"8764",fda12de5:"8787","6d5630c5":"8837","1710ee1e":"8872","278548b2":"8875","269d297d":"8878",f1011b2f:"8948","9d710a19":"8987",df2fb0af:"9054","react-syntax-highlighter_languages_refractor_gdscript":"9060","720485e0":"9110","8a96d16c":"9147",a07fa8ef:"9149",b2e24529:"9240","15f8bc50":"9301","66024a96":"9349","131b7b19":"9379","react-syntax-highlighter_languages_refractor_r":"9450",b2e9fe47:"9481","6bc7e0df":"9504","1df6fbe0":"9587",ddc2c0f0:"9631","5e95c892":"9647",fcf92d97:"9691","8aa90562":"9729","react-syntax-highlighter_languages_refractor_keyman":"9771",e2d05215:"9777","92c7eab1":"9901","22a80663":"9979",f2395723:"9982",a11ca41e:"10016","451bfaf9":"10047","24909fb1":"10092","5e2c3353":"10126",a74d7d18:"10153","2be0cfaf":"10178","react-syntax-highlighter_languages_refractor_pascal":"10204",ecb2d6d1:"10292","85869fec":"10313",f5140fc3:"10319","54f0ad11":"10323",b919b62a:"10329","8d32d193":"10357","react-syntax-highlighter_languages_refractor_hcl":"10365",d9680a2c:"10371",ccc701e7:"10378",bae01de0:"10387","84e426ea":"10414","5f2e2131":"10418",ea9cad3d:"10428","27172a78":"10488",dc4a2b93:"10593","688f552a":"10614","react-syntax-highlighter_languages_refractor_groovy":"10622","4e13d31b":"10864","84c155f2":"10921","react-syntax-highlighter_languages_refractor_aspnet":"10953","3e51ac17":"10981",c60c497d:"10999","3c32ea34":"11005",d3722b14:"11048","36d9f920":"11072",f7158734:"11074","react-syntax-highlighter_languages_refractor_haxe":"11220",ff34c2a3:"11253","08c1a781":"11342","0cea0860":"11384","95a8c77e":"11404","react-syntax-highlighter_languages_refractor_renpy":"11406",e65ec948:"11460","93cf290a":"11482",b0a511ac:"11505","20aff5c9":"11519",c0d396e4:"11543",deabba02:"11546",ce825ef8:"11605","5a354d02":"11623","6be95d8e":"11663",b0663634:"11675","384b5529":"11681","react-syntax-highlighter_languages_refractor_jsx":"11695","3aa26e06":"11707","8af70d64":"11717","react-syntax-highlighter_languages_refractor_erb":"11749","89a2b07d":"11768","71179f0d":"11770","61bfed03":"11800",f0d3c292:"11844","24b4f315":"11848","0e75c1a1":"11852",reactPlayerTwitch:"12042","5b86e82d":"12101","react-syntax-highlighter_languages_refractor_ftl":"12102",c46edbac:"12111","6294aeb7":"12171","2c5603d1":"12205",eaca4adb:"12266",ab727a48:"12333",ca216e25:"12352","4fac73d8":"12387","88684b9d":"12424","react-syntax-highlighter_languages_refractor_dataweave":"12490",b78be845:"12494","8f464baa":"12547","462bbb79":"12569","4c1ec688":"12581","4bf4ea84":"12609","7964aea2":"12630","54b88cfe":"12690",d5c39aa1:"12748","92964ffa":"12762",b5a9a661:"12772",af5f45b9:"12801","02b9e427":"12820","62e88fdb":"12892",db0ceabd:"12898","5d1ed832":"12929",bf598913:"12948",cb0a65f9:"13065","1f851c01":"13094",b5bc19c8:"13142","react-syntax-highlighter_languages_refractor_dax":"13151","8cc913f6":"13160","8ebeecd3":"13198",e2a00b72:"13260","977dc6eb":"13268",e6daf1de:"13277",d5cd114b:"13347","8486b8fa":"13360",ad39bf18:"13371","441f3e41":"13407","368e1eeb":"13438","react-syntax-highlighter_languages_refractor_ruby":"13440","007ad6c2":"13486","708022bf":"13506",ebb29d88:"13517",bf9244d8:"13518","2e4bc32a":"13559",cca5221f:"13582","131aac84":"13637",a1cb2e49:"13648","2e0f5eee":"13690","85bd101f":"13734","50a43d1d":"13749",fd092f84:"13784","9cdb2ac3":"13804",ba8b2d87:"13883","399d4577":"13911",a684f421:"13927","7fd476ac":"13979","99accade":"14000","6f90034a":"14106",c3d37c91:"14118","65b20314":"14156","353365c0":"14207","02b980c0":"14339",dcac528e:"14360",bcc835b2:"14363","8da55221":"14387","2703ef47":"14519","2cf195af":"14546",edf1bff9:"14556",ab36059c:"14616","5102df2c":"14664",c4b8d3be:"14672","86ac1f62":"14676","53c639b1":"14679","597e0d1e":"14751",cf49fede:"14771","572ab204":"14780","8edaf9a5":"14790",b7dcdcad:"14793","926e3009":"14825",a3fa124c:"14886",e135ab31:"14944","48e5482b":"14957","2b63e488":"14981",da19030c:"15028",c67d5f1c:"15080",de9cd55e:"15113","531ef78e":"15121","782dba4f":"15161","91864d41":"15174","2ff6e069":"15191","react-syntax-highlighter_languages_refractor_coq":"15203",b6fb4db9:"15220",dd5a0e45:"15277","828f2741":"15291",bed6d8d6:"15300","76fdb267":"15359","038ad548":"15408",d0e186e6:"15410",e91e33b8:"15463","75dcd8ec":"15468","4b2cfd8c":"15477","62c90643":"15494",bd9a1857:"15620",e6970a8e:"15634",b3489a2f:"15676",e30125de:"15728","804b821f":"15758","9ab32d5b":"15783","react-syntax-highlighter_languages_refractor_applescript":"15873",e2237170:"15934","38fc7081":"15971","45ac6703":"15972","057ef766":"15987","4a75eabb":"15992","7aac9c4d":"16039","8990d820":"16079","6a41d27b":"16120",b5771a04:"16144",b10cc6ec:"16152",a45c903b:"16168",f06a807e:"16194","22bbc4b0":"16208","704af19b":"16221","68f60f75":"16299","react-syntax-highlighter_languages_refractor_csharp":"16305",cf59f57c:"16323",reactPlayerDailyMotion:"16328","974a7ed2":"16396","react-syntax-highlighter_languages_refractor_markupTemplating":"16403","9eb21b3a":"16412","055d2677":"16451","react-syntax-highlighter_languages_refractor_sass":"16458","6e4d9913":"16490","98abf98b":"16512","71522cd8":"16539",fc655ccb:"16550","5540d0db":"16587",f961bcda:"16671",a02d1aa6:"16677","0c935397":"16708","2eb5d71b":"16745",bc7fa82f:"16822","react-syntax-highlighter_languages_refractor_ebnf":"16829",bbfd62cb:"16834","860023f2":"16872",c425a1fc:"16934","react-syntax-highlighter_languages_refractor_log":"16942",cb3ab1df:"16949","03c8c5d4":"16993",a41d233f:"16997","9cccdfca":"16999","react-syntax-highlighter_languages_refractor_yaml":"17029",e4950434:"17031","react-syntax-highlighter_languages_refractor_io":"17148",aa6393a3:"17208","61eace94":"17261",ff38257a:"17293",a6ce5706:"17320",d7cfe959:"17407","837fb0d0":"17417","react-syntax-highlighter_languages_refractor_solutionFile":"17419","react-syntax-highlighter_languages_refractor_tap":"17495",b90b88f1:"17517","40132c69":"17529","30d42090":"17535",d23236dd:"17553",c022ae0f:"17570",dcac14a1:"17573","9518016b":"17595","627658c4":"17610","react-syntax-highlighter_languages_refractor_phpExtras":"17645",c854accd:"17692","react-syntax-highlighter_languages_refractor_neon":"17696","react-syntax-highlighter_languages_refractor_pascaligo":"17735","9ba6d041":"17742",daecf1ac:"17765",cb416afd:"17780",c2eb94b1:"17857","10b96f29":"17912","9431f4ef":"18003","93782e8a":"18060","8750a788":"18067",bb4410aa:"18094","809e8296":"18102",e356e411:"18155","2605ee34":"18205",f250869a:"18348",edf2de7a:"18353","react-syntax-highlighter_languages_refractor_factor":"18369","2db5f759":"18381",e9afde81:"18432","698b6e29":"18438",reactPlayerYouTube:"18446","4632ea63":"18469",e9c4bf46:"18494","react-syntax-highlighter_languages_refractor_abnf":"18497","616d86a5":"18505","54b44a2d":"18549",f90a076e:"18553","4c4702a1":"18607","react-syntax-highlighter_languages_refractor_textile":"18615","578d2057":"18621","7aed67a8":"18630",fd0888ca:"18701","2106a8c5":"18705","94c994d7":"18716","1e1ebbc2":"18724","6378b071":"18725",b1f4ebb3:"18754","403c19a8":"18840","5a786131":"18867","react-syntax-highlighter_languages_refractor_purebasic":"18884",a0664561:"18886","6df3e622":"18993",e21c4ed5:"18998","3f924e1b":"19013","react-syntax-highlighter_languages_refractor_http":"19048",eaf4d31a:"19054",df9030e8:"19072",c7d26a86:"19074","react-syntax-highlighter_languages_refractor_diff":"19117","790473be":"19166","react-syntax-highlighter_languages_refractor_scss":"19196","8a0865ae":"19211",aa6173fd:"19366","151b3cdb":"19488","7b906b0d":"19559",e0c90045:"19569",fb19ce74:"19636","5d2b6c00":"19657","70ccb0d9":"19667","react-syntax-highlighter_languages_refractor_git":"19688","85b545e2":"19741",a74020c2:"19742","6e75ae4a":"19751","59de25e9":"19789","35be9474":"19802",d7bd5962:"19836","1dbb113c":"19848","3456be4e":"19909","283967ed":"20031",f8a2fbb6:"20036",f83ae13b:"20060","react-syntax-highlighter_languages_refractor_ocaml":"20096","833193b7":"20101","478957a4":"20154","7696af57":"20156","75c81540":"20192",effa8f82:"20209",d70d51e2:"20247","react-syntax-highlighter_languages_refractor_falselang":"20345",fbaa2b93:"20405",efaa9a7c:"20416","react-syntax-highlighter_languages_refractor_graphql":"20451","1585f60d":"20452","8c89ea06":"20473",d26f808a:"20504",bebe0006:"20557","611d590a":"20600","84b5ae79":"20714","1e0266f6":"20715","react-syntax-highlighter_languages_refractor_docker":"20724",d063b25b:"20731","1cc63fde":"20738","0b0d702f":"20804","1fa78379":"20813","react-syntax-highlighter_languages_refractor_javastacktrace":"20891","1e6abbb5":"20913","react-syntax-highlighter_languages_refractor_scheme":"20925","7a77a761":"20926",e57aa837:"21012","4b9e6ddf":"21099","09e8b809":"21110",bbd6f071:"21163",b7af393c:"21193","87f9ae18":"21202","9af6d6b4":"21233",a09a24b7:"21269","42ecce42":"21291",c6309d62:"21302",d28bf642:"21317",dce59618:"21328","react-syntax-highlighter_languages_refractor_arff":"21353","react-syntax-highlighter_languages_refractor_dnsZoneFile":"21385","1493b123":"21398","6263a26e":"21472",b0535527:"21510","368b8c61":"21610","00c0805c":"21658",ef6ea4db:"21724","react-syntax-highlighter_languages_refractor_asm6502":"21740","00846ec3":"21754","54ddaf89":"21760",deb7cc50:"21826",d42c418a:"21890",a739f313:"21910",ea59ce26:"21983","6860c5fd":"21997","77c0e835":"22047",c2a6a93b:"22060",f20e9528:"22066",d1b09c4f:"22110",fd8c1fa9:"22125",c654f106:"22134","react-syntax-highlighter_languages_refractor_rip":"22269",bf669c84:"22295","6a336643":"22297","808151e7":"22300",e45dc856:"22311","559b3b95":"22325","992bfa5c":"22330","react-syntax-highlighter_languages_refractor_smarty":"22336","134430ad":"22337","2ed2eabc":"22489","731ca5f6":"22507",e4f65779:"22508","react-syntax-highlighter_languages_refractor_typescript":"22585","react-syntax-highlighter_languages_refractor_stan":"22628",e5f5e7be:"22649","36e1259f":"22680","8b648089":"22710","94db3141":"22711","35752ff7":"22734",e1732b4d:"22823","78c019df":"22883","42206b72":"22972","7c024dfa":"22976","918d27e6":"23029","2d893d60":"23043",d37decef:"23076","02633482":"23159","69f85179":"23180","react-syntax-highlighter_languages_refractor_objectivec":"23224",a23069be:"23231","6ad2f2bc":"23267","react-syntax-highlighter_languages_refractor_cobol":"23281","560ae20f":"23300",cff13e42:"23361",db5f6e59:"23405","1d92e03a":"23406","26e01f14":"23410",e4ca4709:"23414",b61f4f40:"23616","4dc25e8c":"23625",e8c1830c:"23664",ae0a9328:"23686","003717e4":"23706",eb7d31b7:"23750","12dcd077":"23775","1d72346f":"23826","8f1388f0":"23835",f5c055b4:"23877","2baefe8b":"23880","react-syntax-highlighter_languages_refractor_idris":"23887","31c3eda2":"23932",f9841376:"23943","8ead4fc6":"23944","1fd735f4":"23983","00aed27d":"24050","066bda7b":"24175",f83b8986:"24221","173ee416":"24237",b9dd72ce:"24275",a8012452:"24422","225481be":"24426","3568cf0c":"24429","9539702d":"24430","2383b453":"24439",d3001a82:"24504","7aada517":"24550",b98aebff:"24560",a81fd9ee:"24646",c3a50909:"24659","345f05f2":"24758","6ae8306d":"24812",be0c05e5:"24824","react-syntax-highlighter_languages_refractor_fsharp":"24830","5feae07f":"24852","721b9ffa":"24887","46cde13a":"24890","react-syntax-highlighter_languages_refractor_etlua":"24903",f1785d0f:"24908","88439bdc":"24934","6b03ecea":"24994","0e80cbd4":"24997","34366aa1":"25020","58082cb4":"25035","2c5ed484":"25060","604e09d8":"25173","6c00b9b0":"25175","36cf28e9":"25219","539d1863":"25266","0e2e1d8e":"25287",e0fd5824:"25315","3b80d618":"25333","4655cc14":"25342",e09f87d3:"25397","3ea5c28a":"25419","55683c80":"25445","153271ad":"25473","react-syntax-highlighter_languages_refractor_matlab":"25507",e3d5f021:"25535","9d19e17f":"25547","react-syntax-highlighter_languages_refractor_properties":"25559","2890cdde":"25586","2af58904":"25590",cae58d6e:"25601",ecb6575e:"25661",d2ef8bf9:"25733","456650f2":"25845","37328ebb":"25891","5de72664":"25930",ea22cc1b:"25962",f2495950:"25963",cb0b69cd:"25964","4f8de05f":"26023","react-syntax-highlighter_languages_refractor_nim":"26060",reactPlayerVimeo:"26173",eaaf191e:"26184",d5e69987:"26190","0afbc094":"26196","96a14053":"26228",b788a960:"26246",c732fedd:"26257",b0f873c3:"26259","1c28c71e":"26277","react-syntax-highlighter_languages_refractor_dot":"26285",b950ae6d:"26303","0bafac2f":"26396",e0c6dc0e:"26421",a9a934dd:"26426",cf1b0010:"26514","5a8a7aff":"26520","78e826e4":"26614","5b3097b2":"26835","737891d3":"26869","4c0c2deb":"26876","react-syntax-highlighter_languages_refractor_firestoreSecurityRules":"26878",ad17591b:"26887",c80c620c:"26894","1957effb":"26996",da47026c:"27030","0d68b582":"27056","199550a6":"27165","react-syntax-highlighter_languages_refractor_openqasm":"27202",e55f2f4e:"27209","28ef8a93":"27341","7a15e007":"27349",bbc30e0d:"27435","00a891f7":"27443","33a7c688":"27446","7e1274f7":"27510",cea7ec04:"27515",f09b4df3:"27517","1218e2bd":"27530","3010f1c9":"27534","4ee824b6":"27559","639a1b7c":"27571","181fd6a1":"27601","92dec2fe":"27615",d30dfcd3:"27629",f43df136:"27648","334aca5a":"27650","react-syntax-highlighter_languages_refractor_clike":"27705",a48096a6:"27716","8870bad1":"27727","070fb884":"27788",c0ef72dd:"27812","2ef8cd6c":"27822",ee18827a:"27868","20dddd66":"27893","63e5f7b5":"27902","react-syntax-highlighter_languages_refractor_liquid":"27912",af56cca7:"27945",dc8f846b:"28002","210622a6":"28079","react-syntax-highlighter_languages_refractor_naniscript":"28141","5ab51f3c":"28145","60a80873":"28164","3ae38b0a":"28236","7b6b775b":"28311","react-syntax-highlighter_languages_refractor_v":"28462","react-syntax-highlighter_languages_refractor_fortran":"28494","2ebc8231":"28603","0f9cd74c":"28617","2499d0ab":"28650","3c9b69fe":"28676","6b23884f":"28680","1c091e98":"28687","4bbed989":"28706",e6fe4cc5:"28734",e91a0703:"28763","438df00a":"28783","429c429e":"28789","17cdd50b":"28801","48d77013":"28985",fcb7333f:"29050","react-syntax-highlighter_languages_refractor_makefile":"29084",c354f0b4:"29158",da1a6735:"29221","8ee3b6bd":"29336","214805b5":"29442","80ac5db4":"29478",e2d1c1ed:"29504",c3c33ebf:"29511","react-syntax-highlighter_languages_refractor_nginx":"29548",cb23619b:"29583",bbf1a1c4:"29595","8413b679":"29615","react-syntax-highlighter_languages_refractor_markdown":"29627","40bcc614":"29706","7a2d783a":"29804","9a34f2aa":"29810","9d766b13":"29855","react-syntax-highlighter_languages_refractor_al":"29887","926e26ba":"29934","21eb889f":"29976","07d07e4e":"30005","35a84199":"30023","6e369425":"30087","137d3a47":"30109",c222aa0d:"30130",d574981b:"30201","83fd2e4f":"30283",c9ecba79:"30320",d83f50c7:"30325","2d33737a":"30333",ad790d1c:"30336","7176e37b":"30355","36eb743d":"30370",a4dd2e86:"30413","538c3fab":"30438","12c3d0e8":"30443","0311fa17":"30453","37ec961d":"30483","6e1c46a1":"30504",f26ea442:"30601",f5a91e8d:"30640",dd58769d:"30684",cbd3817f:"30713","8fda5026":"30727",b1388f77:"30741",c9f90f30:"30751",c1de8834:"30755","47458dd1":"30764",c01655ee:"30815",fe8349c6:"30857","2ae5e355":"30888","react-syntax-highlighter_languages_refractor_dhall":"30893",b27cb526:"31002","5b1bf06e":"31138","4cc7e4a8":"31142","8d21ba42":"31209","react-syntax-highlighter_languages_refractor_llvm":"31239","679d206b":"31243",dcdbe9aa:"31302","96ff8feb":"31309","4abb887c":"31316","2586ad1d":"31374",ff67560b:"31393","70ea09d2":"31443","016c6857":"31469",e9c371a6:"31502",a7302c93:"31547","71473e8d":"31556","73b907a8":"31622","82174fd7":"31660",fe063cf3:"31717","7218584b":"31726","3d1eea97":"31738",e17814b9:"31768","4700fec8":"31822",b5d49b70:"31836","17c9af37":"31992","7ab5ef39":"32057","7212c154":"32058","react-syntax-highlighter_languages_refractor_java":"32168","75f9059f":"32184","9990a12c":"32185","react-syntax-highlighter_languages_refractor_crystal":"32270","3b425c86":"32272","23ffa728":"32300","371973a4":"32314","83fd095c":"32319",cfe68a19:"32358","4fe6950f":"32384",b304dada:"32402","49a4fa5b":"32415","4ed82739":"32431","7e41a3f3":"32547","6b91ef2f":"32564","13eeb9b6":"32566",c5f51424:"32597",a71ef9f3:"32619","3f473e3b":"32648","804e189f":"32664",e076279f:"32687",e5593ff4:"32698",b3e62e9d:"32723","react-syntax-highlighter_languages_refractor_goModule":"32742","6a251a09":"32752",ef2363fd:"32768","342da00d":"32803",fd19bde0:"32886","4fd820bd":"32917","react-syntax-highlighter_languages_refractor_concurnas":"32928","169f843b":"32944",f13ed2a4:"33153","8f2603c5":"33246","678eb5cd":"33281",c1df4904:"33320","782370ba":"33333","86df7025":"33401",dbac4f0b:"33493","80a636e2":"33504","react-syntax-highlighter_languages_refractor_c":"33539","5e2f8b1f":"33550",d9724aa2:"33589",f668f451:"33613","66c73250":"33621","390740f2":"33656",a018a632:"33709",bd70db15:"33760",ebf5b3b3:"33777","7f50e1d2":"33799","6cbf99a4":"33835","0dabd4f0":"33952","0cf483f1":"33974",e4fa53cf:"34048",c41318a0:"34090","6ac9ae72":"34093","6cc106d5":"34097","react-syntax-highlighter_languages_refractor_csp":"34118","react-syntax-highlighter_languages_refractor_batch":"34336",daa659ca:"34341",f8d96fd7:"34387",eeac13f4:"34399",ac91d12c:"34453","25e75d93":"34475","08142ad0":"34483","3025f89f":"34490",dd25e00f:"34521",c7fe9c45:"34531","30dd09fb":"34559",e56961b8:"34563",b4db83a1:"34582","9942af5e":"34656","70f3f801":"34672","201a0500":"34678","0e2937f4":"34681","1ab565ee":"34747","26b4af5a":"34754","07771b90":"34796","56bff0da":"34857","675250a4":"34903","5b412298":"34924","992b795c":"34929",acb8ce8b:"34939","react-syntax-highlighter_languages_refractor_magma":"34967",e7ef37d7:"34983","91e8ebcb":"35008","4a0ea2e5":"35016","3eb1c3c4":"35063","4e2955b0":"35077",c6ea8a09:"35106","278f5c51":"35150",d945d2e7:"35209",eae386c9:"35267","696cc2ce":"35306","41b5f16a":"35397","35d7d22b":"35414","00c89828":"35447",ef51dad6:"35475","7ed328b7":"35491",d939f5f5:"35562","967a49c1":"35603",baa3bdcd:"35703",a5746cd4:"35785","69b3b150":"35805","2a637248":"35806","0287ff23":"35827","5212040f":"35837","0fe96742":"35884","8371f7c4":"35920","3f502d21":"35966",cae55ba7:"36020","8810f664":"36030","6ced10a4":"36033",e9c8bbd7:"36103",adaab7df:"36137",e487c8e6:"36195",f825aee5:"36198","07646cfb":"36211","079f615e":"36212","4ed67237":"36225","2b5167f1":"36227","987c2424":"36242","29ae3a93":"36258","react-syntax-highlighter_languages_refractor_avisynth":"36268","9a49ff8b":"36278",daba2da9:"36321",e9936e5a:"36332",reactPlayerPreview:"36353","716244e8":"36388","0ad4a848":"36477","421a17ff":"36491","337ac029":"36499",b4b2283c:"36509","97985e22":"36526",e4b329fa:"36537","1b82c7d9":"36559","9786a9ec":"36575","5cc8ca0f":"36628","737649ca":"36631","3e42ceaf":"36652","0a67fbc9":"36715",a6c6c313:"36787","416483b8":"36861",d2a9d211:"36871","2d45f6c7":"36938",afc801d1:"37003",c7a422cd:"37019","81d0f39e":"37037","8d0b89ff":"37044","68188daf":"37115",f67c1695:"37130","798d2723":"37171",cc41b2f5:"37191","7235d708":"37195","react-syntax-highlighter_languages_refractor_asmatmel":"37228","6ad61205":"37242","874ae5fd":"37249","4475f555":"37282","42b54026":"37322","3b253872":"37349",e76e77ba:"37361",c168b77c:"37382","65351f68":"37387","0f2d26b6":"37399","7b300f5f":"37410","684a8e80":"37425","react-syntax-highlighter_languages_refractor_yang":"37495","400df662":"37539","8c5c6aa4":"37572","react-syntax-highlighter_languages_refractor_eiffel":"37581","066f1fb8":"37614","75fa0d79":"37636",a6aa9e1f:"37643",ff34ab38:"37654",e9325ad9:"37661","57158e32":"37711",e2b6763a:"37717","react-syntax-highlighter_languages_refractor_warpscript":"37743","5190dab0":"37841","7bb65623":"37892","react-syntax-highlighter_languages_refractor_csv":"37904",de390d23:"37907","2823facd":"38070","2119c1e2":"38075",d84577d9:"38081","682f6497":"38099","9097d858":"38131","7d2a1e49":"38154",d24e03c4:"38234","react-syntax-highlighter_languages_refractor_ada":"38300","504ae1ba":"38308","8aa4234a":"38329","2f85cf1a":"38339",d8234f55:"38386","54c9ac3f":"38403","445badb6":"38413","2a9ef828":"38478",b50ddde7:"38500",c303c441:"38550","486a139f":"38561","react-syntax-highlighter_languages_refractor_plsql":"38584","6511b439":"38588",a315deb3:"38621","169627b2":"38674",d3155368:"38724",b7b23aa0:"38725",e82b7062:"38749",d95083ed:"38773","51e2b9b2":"38791","2bf5cfee":"38809","1f67849c":"38963",fe0ceb55:"38964","592f8e2a":"39047","react-syntax-highlighter_languages_refractor_less":"39059","88879bf9":"39094","18a4a555":"39147","3484aa91":"39174","9a985c31":"39230",bf5d98b4:"39245",a25e84b4:"39294","react-syntax-highlighter_languages_refractor_basic":"39322",f4ab8097:"39428","3a0bcb93":"39430","0e9131e7":"39604",ca8035eb:"39713",b70cacd3:"39730","297bf93b":"39775",dbfc931f:"39865","88e12ebd":"39868","06e7c4eb":"39869","7e40ac29":"39876",d27f5625:"39920","7048d4ce":"39922","react-syntax-highlighter_languages_refractor_gml":"39964","1ec70417":"39975","4ad7c3a7":"39991","33ed5c55":"40048","44da012a":"40080","9ff4a30a":"40109",fc3311f6:"40170","3059c001":"40256","react-syntax-highlighter_languages_refractor_erlang":"40269",e255d312:"40314","0b078435":"40318",d5c9d331:"40341",d677aac6:"40370","1cd8632f":"40510","637e72cc":"40543","09a58613":"40550",b8d5d32c:"40578","react-syntax-highlighter_languages_refractor_qsharp":"40587","5ae56628":"40653","7245b967":"40675",c272450b:"40676","99cd8ab7":"40756","8ed09d5c":"40757","2835814a":"40765","4b93b620":"40771","1dc5c4ab":"40844","5b7a800c":"40881","43da222d":"40883","38e25f39":"40886","81c108ae":"40904","249fb7f2":"40925","838b5b83":"40956","9fe80417":"40973",cffd3109:"40999","9f0b35a2":"41029","9a80a9cc":"41125",ed27be7a:"41162",b2f1ec6b:"41196","3d401b68":"41209","85b3c4be":"41237","66b70b55":"41250",f913c9e1:"41278","88e50461":"41310","3873cc26":"41418",ff940ee8:"41438","6509bd7f":"41484","9d583bbc":"41533","react-syntax-highlighter_languages_refractor_nand2tetrisHdl":"41550","321bc46c":"41557","289e4581":"41695","07dacd47":"41763","5d12b69a":"41783",d3911073:"41787","96ac8335":"41841",fa28b8ae:"41870","2103ef9b":"41883",b1f3581b:"41899",edab235e:"41953","729c9d8f":"41997","987115d4":"42014",ef7e9322:"42098","0c368d1a":"42117","react-syntax-highlighter_languages_refractor_javascript":"42129","react-syntax-highlighter_languages_refractor_aql":"42258","react-syntax-highlighter_languages_refractor_vala":"42374",c756e6f1:"42542","72295bf7":"42547","5607dd87":"42585","068107c8":"42594","38ebe2a8":"42649","react-syntax-highlighter_languages_refractor_rust":"42674",e2b8f3b3:"42700",ebf6d32a:"42706","7ec16b44":"42779","774c2114":"42850","react-syntax-highlighter_languages_refractor_dart":"42875","29607d76":"42916","1cd504d5":"42947",a11eb45c:"43065","2331f9e0":"43082","662feac7":"43171","5453b8ab":"43203",f8d3051e:"43205","85d80a2a":"43244","0d999725":"43246","react-syntax-highlighter_languages_refractor_tremor":"43311","82f87a0a":"43362","0730a75a":"43371",d8036dc6:"43373","70a9316b":"43384","1354288c":"43385",aafbd2cf:"43396","8544a0ae":"43399",ed04f1fb:"43415","7eeb0290":"43447","88cf06e5":"43492",d61cad73:"43512",c9a36032:"43518",e16fb186:"43588",a14c09e8:"43628","react-syntax-highlighter_languages_refractor_agda":"43657","3e5eea78":"43702",df8fcf34:"43725","3cd58ed7":"43774",fa5d4061:"43784","3ac01926":"43864","47d7a97c":"43867",d4a3106e:"43923",f77d0a36:"43929","3e43f116":"43966","4160c096":"44000",b2a19ece:"44071","3d361716":"44164",b082f98f:"44174","6456cd00":"44189","5cbc3ad8":"44226",df895394:"44263","2d855ded":"44284","65dcd0ca":"44315",fd0a6753:"44321",db2831c5:"44335","1255c446":"44367","4d79096d":"44416","5e4beff6":"44422","59b1a96c":"44485",cd5af42f:"44498","react-syntax-highlighter_languages_refractor_sql":"44572","4576c8f1":"44603","8a64b13b":"44728","5352c3c1":"44760",c61b9d11:"44840","504bd232":"44843","react-syntax-highlighter_languages_refractor_cssExtras":"44928","9e1d9aa8":"44991",ecb2acb7:"45006",cc94ceb0:"45020","785022c5":"45041","4a36bee3":"45086",f5cb549a:"45134","3b01df24":"45165",dbf95cdb:"45168","4ddf9e85":"45362","98126bff":"45377","468ad1a5":"45379","0a3230e0":"45391",f0ec427a:"45399","8d19c782":"45421","react-syntax-highlighter_languages_refractor_pcaxis":"45424","2153f0f1":"45457","05ad514f":"45473",f9769a03:"45482",d9200ea4:"45538","119d0848":"45562","react-syntax-highlighter_languages_refractor_lua":"45578","52942f55":"45595",a5007b69:"45605",c3ef55e1:"45615",b47c3d90:"45633","31587db3":"45644","react-syntax-highlighter_languages_refractor_javadoclike":"45655",befd4bac:"45664","05841abf":"45688",a3a23757:"45708",ec2e8dec:"45716","6f68f3d9":"45817","3ef50eb7":"45820","react-syntax-highlighter_languages_refractor_xquery":"45852",ad7224a5:"45907",fbcdf376:"45916",e8817881:"45941",e0e75d4c:"45956","92867ac8":"45957","789a2e0b":"45977",bfd21d2e:"46005","5eee080d":"46031",a7369545:"46039","27a3eb30":"46098","33656b47":"46113","react-syntax-highlighter_languages_refractor_gap":"46148","67cdfdd2":"46155","5a815dde":"46202",a14ce513:"46260",dca0b9a7:"46268","6dfef0d2":"46277","7cc24991":"46289","6c0c92f0":"46337","189b1efe":"46364",a4177967:"46365","09f1b7a9":"46370","2d1f93fd":"46510","58b7b0b9":"46560",a25104ca:"46608",f061e388:"46614","5842531b":"46627","react-syntax-highlighter_languages_refractor_uorazor":"46684","343b998b":"46781","react-syntax-highlighter_languages_refractor_birb":"46783",b768d931:"46885",f3000fed:"46895","91cbdd24":"46932","26d4c39c":"47009",a1aecbfd:"47030","38cfee2c":"47078","0312cb91":"47160","249b7bb3":"47242",c3e81286:"47249","9c0047fb":"47268","673a4276":"47335",d2dfded4:"47362","9aaf6652":"47381","react-syntax-highlighter_languages_refractor_j":"47474","45fe6289":"47484","react-syntax-highlighter_languages_refractor_ejs":"47508",reactPlayerStreamable:"47627",e107c103:"47633",f42ee828:"47659","react-syntax-highlighter_languages_refractor_cshtml":"47681","react-syntax-highlighter_languages_refractor_uri":"47702","react-syntax-highlighter_languages_refractor_monkey":"47747","971a38c6":"47767","35cc95ed":"47784","0905db6b":"47809","47c18f0a":"47819",d01de654:"47821",dfa1c318:"47842","714b46c2":"47868","5ecc0e0d":"47982","6556f82c":"47986","617b3977":"48069",ce1419d7:"48073",f01ca2d8:"48084",a2a9ccee:"48124","8243d093":"48130",ab490682:"48135",e53b46e6:"48165",c5dc0443:"48179","react-syntax-highlighter_languages_refractor_editorconfig":"48217",ecfe4b02:"48260","1fa82a9c":"48290","359ea0ad":"48293","react-syntax-highlighter_languages_refractor_toml":"48296","3a9eba13":"48298","74a76ae0":"48306","154e5729":"48311",dc72c761:"48330","react-syntax-highlighter_languages_refractor_sqf":"48358","466f2ba5":"48383","932dd2b2":"48399","react-syntax-highlighter_languages_refractor_purescript":"48407",e409a3e8:"48410","8bc64f72":"48447","17fdb443":"48448","1d88f516":"48466",ef68cf0d:"48479",ba008c6f:"48495","57b63635":"48580",b0253b15:"48607","8564442d":"48614","6556f365":"48615","react-syntax-highlighter_languages_refractor_n1ql":"48628","react-syntax-highlighter_languages_refractor_nsis":"48658","3d9ee3c2":"48699","489198f0":"48724","1af51ab1":"48759",fff9a5a8:"48769",b9051fe3:"48820",de04d5f1:"48828","5b72e761":"48842","4f377837":"48872","2204bfae":"48889",a5141df7:"49056","react-syntax-highlighter_languages_refractor_parigp":"49099",ac1c1640:"49166","3bfe3344":"49193","095de2dd":"49240","0aa63ed8":"49299","5e57a6c5":"49364","9386137a":"49393",ca542251:"49418","16b624cd":"49437","55750b70":"49446","72190dff":"49470",d8da99b8:"49486","0db32707":"49516",e5928ccb:"49524","react-syntax-highlighter_languages_refractor_nevod":"49558","947f17cb":"49688","react-syntax-highlighter_languages_refractor_jsonp":"49706","85de6f50":"49708",d2e3ede3:"49718",e025d293:"49721",eb2a481c:"49741","59c2f98f":"49775",a4d22044:"49816","278ba6f1":"49826","react-syntax-highlighter_languages_refractor_bison":"49841","9790ecbd":"49910","58f19833":"50010","8515ba4d":"50015","489e804f":"50055",fb9907fb:"50070","2f6b6a72":"50079",dfc0f77b:"50086","08a2857f":"50108","9e78a629":"50218","1dd9bc03":"50247","06820533":"50256",b1918c75:"50261","react-syntax-highlighter_languages_refractor_cpp":"50267","react-syntax-highlighter_languages_refractor_parser":"50269","60a318f1":"50273","10caada3":"50355","459ece75":"50376","react-syntax-highlighter_languages_refractor_squirrel":"50429",c0b3a545:"50480",d7d82fec:"50524","react-syntax-highlighter_languages_refractor_javadoc":"50546","8fdf5cbb":"50559","6252d82a":"50565",b9157fbe:"50570","1b902f42":"50627","7e5acbc2":"50633",b89e34d7:"50677","28fb790d":"50689",b98a3192:"50720",fa0df550:"50868","react-syntax-highlighter_languages_refractor_jsstacktrace":"50902","7ddca44e":"50999",fb9d6a90:"51076","4894b2a5":"51126","1bb6e888":"51173","76aeeccf":"51197",bb5bc141:"51203",dccd5c7f:"51230",beb08ea5:"51261","5050e06a":"51379",e999d2e7:"51461","697b868e":"51476",da23fc7f:"51629","5a59ec38":"51698",acf3467f:"51755","52d9ca0e":"51766",ee41e96c:"51767","88bd1ae2":"51786","862cc2ae":"51853","5e7ceeac":"51877","972d9de3":"51942",b558b8bb:"51957","484cc2bf":"52059","5f63aa22":"52109","9e526c82":"52123","0949caca":"52187","9250359b":"52300","76c74c51":"52323","9cb3eb52":"52338",f430165d:"52350",c81bc7c4:"52488",e0e9c6d2:"52507",c0a1d8e7:"52520",ef889477:"52535","6208b38e":"52575","60075e55":"52602","3ef698e0":"52659","1760de55":"52670",da4a64b8:"52687","9e4087bc":"52711",reactPlayerMux:"52723","82d05188":"52736","1d691ac0":"52744",d61388e9:"52771","1a864cfe":"52824","3a84c761":"52826",f2480ceb:"52841",eaada425:"52870","1a4e325c":"52923",b7dbfcf5:"52950","5e7e9614":"53043","10216bca":"53059",b252d933:"53073",a2ae2293:"53104","react-syntax-highlighter_languages_refractor_pure":"53146","53829f6a":"53155","react-syntax-highlighter_languages_refractor_kusto":"53244",bf6cf1a0:"53290","857c9abd":"53312","1f4447b0":"53331",f2f586ea:"53340",a459382d:"53341","5b8828e9":"53346",c5ccab0a:"53357","1433766f":"53365","33b98b0e":"53373","8904d039":"53394","react-syntax-highlighter_languages_refractor_wolfram":"53411",e418e4b8:"53434",d5427438:"53512",c953d876:"53532","react-syntax-highlighter_languages_refractor_css":"53533","8d4a694f":"53535",e5ca2a09:"53559",d7b89466:"53577","9b1b579b":"53578","1eb9cbd0":"53633","33e591db":"53771","445fc630":"53844",f5330583:"53856",d09b5381:"53883","588bbf84":"53894","0e799f7d":"53926","react-syntax-highlighter_languages_refractor_json":"53950",ab0b233d:"53956","2acc85a0":"54024",ec7105bc:"54123",f856d019:"54130","1b384b21":"54150","9463bbe8":"54154",f7a0609b:"54190","3d9c0803":"54225",b7a87925:"54270","385b7a8b":"54305","985df1c8":"54321","6f7aec64":"54425","13587b6f":"54439",e7754b42:"54443",d5d5b97a:"54488","5b6b73b7":"54521","99e85153":"54544",d18a26dd:"54551",reactPlayerWistia:"54578","3d63fc2c":"54583",b85a9f98:"54637","1526b72e":"54643","5d3c38b9":"54680","react-syntax-highlighter_languages_refractor_icon":"54779","1f0b0f87":"54809","4cce6c45":"54836","4d813ae9":"54864","1331cac1":"54923",b2204922:"54924","2ee7302f":"54941","16cb573c":"55123",d4fd02a2:"55134",b6070a89:"55172","7e597538":"55196","8ddb77b9":"55204","136d1781":"55228","react-syntax-highlighter_languages_refractor_racket":"55254","7caa11fe":"55354","51f6fe90":"55413",b5a8b287:"55436",b9ec351d:"55491",d307b2e7:"55567","450ea376":"55636",fd3999a2:"55682",c39b98ae:"55689","654302d1":"55740",c39e9ffc:"55759","39c4eb85":"55838","79aae9ae":"55905","51e54913":"55918",cacaa339:"55923","8623028f":"56220","4c41c9c0":"56276","0eae0f27":"56279","react-syntax-highlighter_languages_refractor_systemd":"56309",a09cde74:"56356",d199957e:"56462",db89881b:"56513","456c6382":"56520",de65c9ca:"56649","react-syntax-highlighter_languages_refractor_n4js":"56659","0c8a934d":"56745",b29ba058:"56786","3c251c9b":"56863","26cc18e4":"56877","88ee6ffe":"56894","5ce82fd7":"56935",bf47a095:"56941","733ff2e4":"56949","8051ae43":"56980","3a8bd4bf":"57101","684eee01":"57155","1cee73ee":"57257","2b4792e5":"57275",e1498222:"57362",bf0a32f5:"57390","382e7033":"57446","6d461a16":"57452","652a49f9":"57477","0c4a29b5":"57513","0d31935c":"57547","66e058ba":"57564","1e37458e":"57611","59787bf6":"57643",c541a70c:"57753",ed4087e4:"57764","604cdde5":"57800",e9c59f9e:"57810","0a70c105":"57870",bca99e98:"57897","5cedbb53":"57912",be0253a0:"57925","441d194b":"57940","0ca0b0dc":"57946","7496857a":"57958","9fc89130":"58004",a10a40b8:"58006","34f0c71b":"58015","42535bf1":"58027",fb8d6a8b:"58154",c9f5fef1:"58184",d80f1f80:"58212","296f4fae":"58232","40c229dd":"58243","08a5ee24":"58369","21f8fbc5":"58382","530b174d":"58385",ec9d0c94:"58400",da086284:"58406","7979c47e":"58426","react-syntax-highlighter_languages_refractor_bro":"58435","069db899":"58470","26bd05d8":"58492",cf4e5fc9:"58496",ff95dbe5:"58501","react-syntax-highlighter_languages_refractor_haskell":"58524",ad9e86c8:"58529","115d24a6":"58533","758d3ea7":"58579","react-syntax-highlighter_languages_refractor_jsdoc":"58625","417344d1":"58653",cdfd964d:"58701","4a273e94":"58724","2c52c506":"58737",ccb430af:"58779",d7d61170:"58797","react-syntax-highlighter_languages_refractor_phpdoc":"58874","9db2d1a3":"58885",a1625a56:"58898","0930826d":"58899","react-syntax-highlighter_languages_refractor_webIdl":"58967",a0197bc0:"58988","60c08eab":"59000",fabd6f9d:"59077","1380f56f":"59080","023fb35c":"59083","807581be":"59121","7b9efe2c":"59228","react-syntax-highlighter_languages_refractor_julia":"59259",bb7fbc9b:"59267","573ce20c":"59339","281af881":"59364","react-syntax-highlighter_languages_refractor_xmlDoc":"59400","react-syntax-highlighter_languages_refractor_wasm":"59416","5716a2db":"59457","2aa88386":"59474","react-syntax-highlighter_languages_refractor_cypher":"59493",b698923d:"59572","02c6cf8b":"59595",b933f59c:"59613","react-syntax-highlighter_languages_refractor_visualBasic":"59638",eed6e9fa:"59670",f6e782f1:"59682",d74ba37f:"59689","6a46ba5c":"59693","136e60ba":"59697",e0f251e8:"59709","0066d393":"59720",ab3396d1:"59776","react-syntax-highlighter_languages_refractor_zig":"59802","362ed32e":"59811",e55a4fef:"59872",d648e0dc:"59893","911d8c7f":"59918","274493b4":"59948",c5d0f198:"59959",dfbdb6e6:"59990",ccd9b945:"60026","8876920a":"60056","71d3d938":"60060",a2c4ea39:"60105","55013e73":"60150",f576c39e:"60171","7caeede7":"60180","082096a6":"60233",ab3a66ff:"60274","12163d80":"60318","59b25598":"60372","react-syntax-highlighter_languages_refractor_lolcode":"60397","4abb65f9":"60438","5b3d51ee":"60635",f1ae2ab6:"60645",e294a72f:"60661","375142f7":"60688","59be7119":"60704","78232d1a":"60731","119b5944":"60750","39d24ba3":"60795","0c5d4dc6":"60916","1a606663":"61062","09df528d":"61077","547da171":"61259","6696da19":"61269",c407fafb:"61270","86ed2047":"61331",f86990e3:"61449",d166fe6e:"61458","5c7abbfb":"61487",e7369992:"61499","5564a6f2":"61538","7999f1c8":"61591",d057c98e:"61596","react-syntax-highlighter_languages_refractor_coffeescript":"61626","443fb58c":"61644",bd0998c4:"61658",d4309a19:"61734","7f29bbea":"61745","0850322a":"61768","2ab56b4b":"61789","6fbe6a20":"61825","6453f134":"61867",fffa417e:"61869","7e45ec3c":"61892",d6a94e06:"61940",ef005f66:"61955",da1cffb4:"61984","0b966913":"61999","4f27f596":"62018","1edb61db":"62030",c4a1f4c8:"62059","3611c18f":"62076","691ed9da":"62094","1a4e3797":"62138",e7ad37fe:"62145","1433b888":"62180",ad924d3c:"62187","00b08266":"62255","react-syntax-highlighter_languages_refractor_scala":"62266","9ce6dddd":"62278","1d525bc6":"62331",ec129530:"62369",f186fa15:"62447","3c615ee9":"62526","595a064d":"62557","64a60d91":"62586","7ee78ddd":"62623",e44e64d2:"62633","85cca100":"62686","react-syntax-highlighter_languages_refractor_d":"62700","84176ea9":"62702","react-syntax-highlighter_languages_refractor_glsl":"62703",ef8a130c:"62748",c40457f4:"62784",d335c13c:"62798",c299247c:"62814",d51139b9:"62879",dd55089f:"62900","8e184430":"62924","424f7822":"62926",ecb76145:"62972","1744d9ef":"62987","react-syntax-highlighter_languages_refractor_kumir":"62996","3b55fa84":"63109","react-syntax-highlighter_languages_refractor_asciidoc":"63189","4e468cb5":"63192","1d6952be":"63229",e2aabbf2:"63240","react-syntax-highlighter_languages_refractor_avroIdl":"63257","3d433104":"63317","67110b34":"63347","65b2603f":"63361","4f305e9d":"63429","6437651f":"63501",c9d00955:"63512","react-syntax-highlighter_languages_refractor_shellSession":"63514",ae8a03f1:"63540",a7684126:"63544","react-syntax-highlighter_languages_refractor_soy":"63563",e8673c18:"63564",f3d53788:"63617","2fe40030":"63649","5c81920a":"63734",fb082bc4:"63778",dc513550:"63829","78fb8ac4":"63838","7508e420":"63862","355cddc1":"63879","7cbcc085":"63912","62c63405":"63936",a2ef8f4a:"63944",f8f774f6:"63945","3ca2f5e8":"63956","9c43bca2":"64056",f9d43cd0:"64118",b7928f35:"64165",c63a6bf2:"64172",cb021527:"64265","62dd094d":"64266","01258f32":"64276","44ad1539":"64322","46e3eb97":"64376","2d2846a3":"64405","8b423c88":"64429","3399f83d":"64452",c2e411a7:"64521","7a92f3a2":"64598","3d715aaf":"64625","6932e7e9":"64637","react-syntax-highlighter_languages_refractor_prolog":"64649",e7eebdd2:"64669",f47381a8:"64741",b9037fb3:"64757",dd6e7426:"64769","react-syntax-highlighter_languages_refractor_apl":"64789","react-syntax-highlighter_languages_refractor_lisp":"64916","react-syntax-highlighter_languages_refractor_tt2":"64930","076f04c4":"64957","42358eea":"64958","053cb7b9":"64966","react-syntax-highlighter_languages_refractor_elm":"64972",ee2c6227:"65005","5fe15dfe":"65108",f8c45d49:"65154","72851bf5":"65211","0366a4ab":"65214","102dc9d8":"65318","7f44bfbe":"65443",d0cf869c:"65506","746d0e9d":"65530",cbd403e1:"65541","84c33ac6":"65546",aef47f3c:"65558",f017e80d:"65574",b18c5707:"65584",ee60c80b:"65644","4c18ed88":"65704","9a3834db":"65727","react-syntax-highlighter_languages_refractor_antlr4":"65747","10f60329":"65768",d42442ad:"65800",bbaea50b:"65801","55efc743":"65833",b4422cbf:"65862",e84f4d3b:"65893",ba6db769:"65908","4e938852":"66051","4cc3e184":"66108",bbc1526c:"66151",ded3cf55:"66160","8668037f":"66167","0a883215":"66179",e792eed9:"66253",b31fc0c1:"66294",b87db3e4:"66302","4796a906":"66321","4c6aea94":"66326","react-syntax-highlighter_languages_refractor_brightscript":"66333","1b8b44cb":"66335","3d855a71":"66377","4c747e24":"66391","0781cab6":"66461","0f5ebe93":"66464",df2e5c06:"66476","991fb41c":"66498","react-syntax-highlighter_languages_refractor_qore":"66503","9ad862d6":"66543",d126772e:"66559","21d4be1f":"66570",d77891b1:"66580","8230e064":"66681","83b030ee":"66685","296c0e6c":"66721",b417c6aa:"66744","06721981":"66785","react-syntax-highlighter_languages_refractor_qml":"66814",d0c584e6:"66974","7c01d80d":"66988",c87c86f8:"67012",af7a29e3:"67021","4792e0e4":"67033","react-syntax-highlighter_languages_refractor_mongodb":"67046","9f6d52d0":"67077",a7bd4aaa:"67098",f2fb7a7e:"67099","4e2df8d1":"67131","93937d89":"67163","19d1e53c":"67188",d317da6b:"67197","3f061afd":"67210","4ac39b16":"67212","react-syntax-highlighter_languages_refractor_mizar":"67233",f2b0b23c:"67251",dd05240d:"67348","6d046fd1":"67356","1bd8ecb4":"67360",e38562d3:"67409","1bef7206":"67430","2355cca6":"67459","8c96a320":"67463","1c0e45ac":"67507","97421d25":"67509",ec737569:"67510","01cd3e16":"67554",cb2a4682:"67567",reactPlayerMixcloud:"67570","2c8a0136":"67741",ce85bb56:"67760","808a0f07":"67775","5e1dea42":"67778",d285a603:"67786","react-syntax-highlighter_languages_refractor_unrealscript":"67824",db2b8f72:"67844",a17829df:"67853","react-syntax-highlighter_languages_refractor_sml":"67880","0d9bb350":"67904",c705508e:"67970",f75e9c39:"67984","325894d6":"67994","107641aa":"67996","1368b7ad":"68083",eb9a02eb:"68103",a7695677:"68167","react-syntax-highlighter_languages_refractor_mermaid":"68169","26aa5820":"68188",af69b723:"68241",f964c4d2:"68249",e19e6f29:"68280","3f6c4654":"68284","7f4249ac":"68291",aae300c2:"68302",b3e46864:"68325",ff5e8246:"68405",f6ffd881:"68442","158bfad3":"68483",e755d0e6:"68516","1e5e38d2":"68532","react-syntax-highlighter_languages_refractor_psl":"68565","91808e49":"68589","6e8eec15":"68651","31c91ca6":"68658","react-syntax-highlighter_languages_refractor_excelFormula":"68665","40e8ceb7":"68697","6ab2947d":"68718","react-syntax-highlighter_languages_refractor_bbcode":"68755",f7890f03:"68794","02ef4c57":"68807","26fcf1a9":"68827","28abe367":"68857",a673bf6e:"68887","2374e6f8":"68960",a6fa8647:"69036",ef64c4f2:"69057",c08d19cb:"69067","66dcc4b5":"69122",f825d23a:"69160","77950fa2":"69320",b9ea81b2:"69347","950931e2":"69405","5ace20af":"69418","7c7d428a":"69443","4682d2d8":"69477",a924e136:"69538","6d09db5d":"69589","8ea8e566":"69699",ee44e581:"69706",aa4191a2:"69727","2c7448ca":"69739",f42f81c6:"69791","57037ddd":"69813",ee7da673:"69919","3d573c2b":"69920","5e7680af":"69959",reactPlayerSoundCloud:"69979","080a10de":"69984","23fb7a7a":"69998","7ba16f8f":"70004","2b4aad25":"70134",d1af5c8f:"70137","react-syntax-highlighter_languages_refractor_stylus":"70158",e4c53779:"70166",c31124d7:"70194",cf87040e:"70202","react-syntax-highlighter_languages_refractor_turtle":"70206","37af6c2e":"70274","9d8d3b82":"70285",f25eb25a:"70323","8efdab61":"70410","react-syntax-highlighter_languages_refractor_hsts":"70452",df744780:"70479","963b4e80":"70500","072a25fc":"70577","93992acb":"70673",f39fe5e1:"70683","9ecc99dd":"70689","29a327f0":"70691",b7405323:"70715",f26021be:"70749","9fe72ec7":"70787","20bc3b2a":"70796",c86fcd09:"70846",be6ae73c:"70901","react-syntax-highlighter_languages_refractor_apacheconf":"70904","17a70d5d":"70936","20325a74":"70973",d87902f8:"70975",d6c81112:"70987",f9fda3b4:"70992","530f4156":"71033",ee190ecb:"71089","react-syntax-highlighter_languages_refractor_verilog":"71114",a1a74ff7:"71134","82abf28b":"71170","react-syntax-highlighter_languages_refractor_smalltalk":"71191","08abace2":"71219","39ef07bf":"71249","50ae2127":"71284",a8e711ad:"71293",fa5754de:"71338",ab11b089:"71407",c009e0ea:"71522",fadaa97b:"71544",ba53c358:"71545","7e94978c":"71547",ec3d1d8f:"71575",d7155f24:"71633",b0a7cefa:"71670",aac8f64c:"71695",ac393c34:"71784",a9652de9:"71786","42ba7a72":"71897","5b08419b":"71950",cffab271:"71975",ad462f8f:"72132","14ab434b":"72168","1f42e7e9":"72194","511cd196":"72213","56244f75":"72226","5d1b72a5":"72312","react-syntax-highlighter_languages_refractor_sas":"72331","42e26ccb":"72370","8f4dec9c":"72373","4b7797e4":"72444","9c7cc367":"72478","437ede7f":"72498",d8a0d145:"72524","react-syntax-highlighter_languages_refractor_ini":"72638","0a1fbee2":"72677","react-syntax-highlighter_languages_refractor_flow":"72688","6801b6db":"72758",dada8f94:"72762",a75775f6:"72791","5840731b":"72799","8920885f":"72825","09b3005f":"72842",ef25b615:"72891",c493b44e:"72905",d79a09c1:"72923",a830e4b2:"72926","61eef94c":"72942","react-syntax-highlighter_languages_refractor_elixir":"72961","1d03d6e2":"73000",a0dead3c:"73032",d667c0b1:"73078","1afa4d9b":"73079","5d03c6ac":"73108","00fba8ee":"73114","914dafa9":"73222",d2777c07:"73294",f8bc10ee:"73305","60f30c52":"73314",f5d7fbb5:"73420","38ef95cd":"73428","1157c0a0":"73435","9cbcbba7":"73458",b1b6f51f:"73486","react-syntax-highlighter_languages_refractor_bicep":"73565","321aeb62":"73631","7fef1252":"73657","react-syntax-highlighter_languages_refractor_wren":"73702","50c9449c":"73728",b099d865:"73740","react-syntax-highlighter_languages_refractor_splunkSpl":"73764",e5ce14ce:"73770","0461a59e":"73784","react-syntax-highlighter_languages_refractor_t4Vb":"73792",cca22f55:"73814","0707bfdf":"73841",cbff81e6:"73872",cef80e7b:"73907","66ba1253":"73933","6cab2901":"73949","86ea5176":"73966",ac4a5bdf:"73993","60b3a959":"74080","089a82e6":"74086",e3fb89bd:"74100","67ad386f":"74128","5255a2aa":"74139","react-syntax-highlighter_languages_refractor_python":"74150",e8f488f2:"74182","6ba34660":"74231","1424de6e":"74256","7f8a8201":"74274","0c8b9d2e":"74290","8bf21c87":"74314",c6d88f19:"74344",aed1a1f8:"74348",d0943c22:"74378","6f41f982":"74379","9d60ab49":"74394",ea5f7c81:"74403","7ac630cd":"74408","react-syntax-highlighter_languages_refractor_jq":"74415","react-syntax-highlighter_languages_refractor_autohotkey":"74447",a03ea81f:"74534","react-syntax-highlighter_languages_refractor_maxscript":"74559",aa075c5b:"74603","0b7fbfc6":"74685","215406cd":"74692",f935dd10:"74735","react-syntax-highlighter_languages_refractor_typoscript":"74743","2e5f32a6":"74787","7061117b":"74792","23c8644f":"74859","2f134766":"74876",bfeaad80:"74886","1e82b627":"74906",b3bee5cb:"74932","react-syntax-highlighter_languages_refractor_t4Cs":"74970",d9d5a6eb:"74991","99be92e2":"75132","47c0e8e9":"75140",ca95ed59:"75160",e6d88c2f:"75165",e4d42027:"75187",f1eb891b:"75189",b1931760:"75242",e80d6e48:"75335","33a01747":"75349","26e15311":"75371","448ddb3f":"75442","01238279":"75445",d2040756:"75447","3a4c81ec":"75549",d71f0f29:"75556","5035f47e":"75558","3cbd143d":"75565",c628ee99:"75566","25f1e45d":"75635",b79043a7:"75642","20b10583":"75664",a75d7931:"75708","5bea5d99":"75713","174f56f7":"75737",a96bf424:"75757","33ea99f7":"75760","32fe2928":"75770",acf18a7d:"75792",f9bd1242:"75817","5f30bdcd":"75824",d5a36a04:"75885",f4eaeb6f:"76038",ac855284:"76047",fc4f0796:"76090",f6ee50e4:"76105","06be8218":"76151","039c2abe":"76188","3a847c18":"76226","3fbbd404":"76276",dc71548b:"76357","1f8a7b48":"76396",c216db98:"76472",b429bf35:"76474",d56578af:"76481","1da04d3e":"76491",cb8b67e4:"76572",c1e1acf0:"76639",ab0bf3e7:"76641","5db7fa95":"76776",fa89cb6b:"76778","7fec31e2":"76785","51903cad":"76823",b1cc273b:"76840",fefe148d:"76848",aabc0ec8:"76864","react-syntax-highlighter_languages_refractor_reason":"76959",f9182fb2:"76999","43ad3ca2":"77012","95ee5932":"77018","58560ef1":"77103","72d07e92":"77129","832ee537":"77203","2f747fdf":"77211",c982175d:"77246","18288bc3":"77250",a924f441:"77324","5dbc3e8d":"77345","500c065c":"77373",cd2b8160:"77405","8c03fd2b":"77445","15caf699":"77471","5dca5ac8":"77583","3287d369":"77595",e81d0e1e:"77600",ef37accc:"77614","3b20c1dd":"77650",e3f4b308:"77696","4fcab111":"77720","66e4d0a2":"77769","211b51ca":"77827",f4587cab:"77853",f0d0e198:"77884","0c8d97b3":"77897",dd565dd8:"77909","react-syntax-highlighter_languages_refractor_keepalived":"78030","01ab01b6":"78034","9f88a2cd":"78102","97c0779d":"78119",fe55f083:"78127","07141e59":"78131","429814d4":"78149","0418c30a":"78171",dd43488e:"78193","15fe9bc6":"78220",d595705d:"78246","5a321768":"78296",b75244f3:"78310","9196162d":"78383","9496f51f":"78423",e64d5ab5:"78439","3612467c":"78477",f85e5383:"78496",c825b36e:"78575",a5a3f150:"78609","41bc5a85":"78668","34eacc23":"78707",c9c8151d:"78715","96ef95b3":"78856","react-syntax-highlighter_languages_refractor_jolie":"78857","965af625":"78911",d03b7a4d:"78912","6221e24e":"78948","431e05c0":"78974","8fe57593":"79019",a94703ab:"79048",c42c92be:"79121","28e3f086":"79125",aafe3f65:"79150","40c8b908":"79153","61f663f6":"79189",c820015d:"79242",d9992386:"79375","599e1944":"79449",cce13ea8:"79496","3f41baaa":"79532",af02ed74:"79534","9018a0ee":"79550","8284165d":"79587","82261fee":"79626","562762ea":"79669","965c27e3":"79775","797225bd":"79817",e9ecd197:"79824","9c454042":"79860","6c627f70":"79872","3aad441a":"79910","1660a08d":"80055","769f7d2f":"80092",eeb40fae:"80095","7cc2f713":"80139",d3a40c81:"80157","3ba7bdee":"80168","609c778c":"80172",abf5f816:"80202","2d6fa985":"80210",cda840ed:"80218","03c9f6fe":"80239","8050bc23":"80292","5c9d290a":"80346","5fc14df3":"80395",b5c55420:"80445",d65ccfad:"80449","1eb2e24f":"80466","076004cb":"80497","7e5bea7d":"80509","3746de72":"80517",a50a13ae:"80534","react-syntax-highlighter_languages_refractor_icuMessageFormat":"80535","47230c70":"80555",c91f1151:"80614",c31963e0:"80625","221a6728":"80722",eabd393d:"80818",e0f7d826:"80869","00c4c653":"80877","7d17e27c":"80921","1cbead02":"80925","44d9bf36":"80945","713c2b65":"81018","react-syntax-highlighter_languages_refractor_bnf":"81126","3ddae676":"81133","8592fd65":"81182","2622e14f":"81215","47b9c082":"81252","88a9b244":"81253","47472e67":"81285","react-syntax-highlighter_languages_refractor_chaiscript":"81374","81ce0256":"81477",b2d999b4:"81478",c6574ca3:"81523","4c13e417":"81551",f05f9002:"81557",f4fefb2b:"81562","842166e0":"81571","91f3db67":"81587","8d33dcef":"81647","6c5accb4":"81648","7d72dd5c":"81689","6f93b87b":"81690","2971748c":"81722","5f024599":"81739","7ee98428":"81755",dda8c5df:"81810","7b60984d":"81833","react-syntax-highlighter_languages_refractor_rest":"81845","28f63a4a":"81872","42c11118":"81876",ebe41efc:"81898",d71698ef:"81899","57412de7":"81920",e2949224:"81934",a427a491:"81940","4f2a7d1e":"81949","5e6a4890":"82089",e6648f6d:"82168",a57147ed:"82169","21745da0":"82261",a1ba0919:"82301","334af7bc":"82312","8c27e6c2":"82387","326287e5":"82405","194d9b3b":"82451","react-syntax-highlighter_languages_refractor_hlsl":"82465","0dc9b583":"82507",d63c2992:"82509",fd07ea8a:"82537","0bb24080":"82561","1587a16c":"82697",f335c91b:"82723","90cb823e":"82737","0bae03b5":"82751","react-syntax-highlighter_languages_refractor_tsx":"82757","87d435e3":"82760",be9ef770:"82778","react-syntax-highlighter_languages_refractor_perl":"82795",df688f1d:"82814",e094fc64:"82948","react-syntax-highlighter_languages_refractor_opencl":"82957",aa62adf4:"82996","6478aa15":"83048","2b10be0e":"83050","75d5b163":"83056",ccc49370:"83249","97ae6104":"83254","react-syntax-highlighter_languages_refractor_ignore":"83294",de015d47:"83319","8e0713dc":"83358",c3895984:"83362",a9d2e8b9:"83379",c71bde62:"83458",a78d6057:"83501",a8b251eb:"83519",a2bcdd9c:"83523",c5c4bba3:"83526",bb84d213:"83537","864105da":"83556","0703c8c0":"83571",ca4529ab:"83640","react-syntax-highlighter_languages_refractor_wiki":"83660","9e428f80":"83705","39ebe4fc":"83748","react-syntax-highlighter_languages_refractor_roboconf":"83750","688acf31":"83795",d7100e0b:"83816","2a3cbeba":"83854","554cfdc3":"83953","663de6d3":"83964","418e8cdd":"83972","15f74a0f":"83995",eb00eaeb:"83997","26b1b7c2":"84002","9068f0c9":"84028",b47ca0bb:"84072",c83612e8:"84075","4d7d3c38":"84085","68a59ac2":"84114","6991b80b":"84142","9b71048f":"84164","react-syntax-highlighter_languages_refractor_regex":"84165",fbca3986:"84357","002be5e5":"84379","react-syntax-highlighter_languages_refractor_kotlin":"84380","654d2c12":"84508","98f063ad":"84512",fa456b95:"84599","819c3599":"84604","7e3f713a":"84612","1b4c64c4":"84618",b9818803:"84630","950ca165":"84651","7728e7fc":"84694",d002a117:"84715","5392a2e7":"84799","2f565d80":"84805","6875c492":"84813","react-syntax-highlighter_languages_refractor_jsTemplates":"84814","9a5e78a1":"84844","15b007f7":"84849","8a011b37":"84860","3467b599":"84878","react-syntax-highlighter_languages_refractor_xeora":"84911","17ff4779":"84940","react-syntax-highlighter_languages_refractor_oz":"84983",a8ff281e:"85004",a6cf45db:"85038",f746b020:"85084","4a0c5286":"85118","react-syntax-highlighter_languages_refractor_arduino":"85256","9b16476c":"85261","370dd6af":"85270","65755be8":"85274","6294ba83":"85296","8011422f":"85335","238169b7":"85393","6ba05eba":"85421","294e2a7e":"85498","7ede7b6b":"85541","492894b8":"85601",c27bd714:"85611","452c2877":"85659","069d7fe6":"85672",eb0636f9:"85756",bb6de43f:"85761","756af54c":"85764",e53e3689:"85807",ea94acda:"85811","348e6255":"85901","5e406cff":"85904","12ef6b22":"85919",f43dccde:"85931","4b2beafe":"85960","5594002f":"85974","8a00ea0f":"86066","797518a2":"86097","react-syntax-highlighter_languages_refractor_iecst":"86100","react-syntax-highlighter_languages_refractor_haml":"86118",c9cf9c44:"86304",af4da409:"86312","react-syntax-highlighter_languages_refractor_puppet":"86314",c4ffec93:"86350","42bd8841":"86394","377aa359":"86439","2310845c":"86445","0c2bf8fc":"86611","10ddb313":"86629","14bbc827":"86632","react-syntax-highlighter_languages_refractor_vim":"86660","3d8f43a6":"86682",acc0ad9f:"86688","85bc4ade":"86691",e678c393:"86741","5694205a":"86761","71573d8d":"86810","react-syntax-highlighter_languages_refractor_velocity":"86817","3407173c":"86843",a3aedac7:"86874",reactPlayerFacebook:"86887","react-syntax-highlighter_languages_refractor_markup":"86916","react-syntax-highlighter/refractor-core-import":"86943","0b5b0129":"86958",b5683a3f:"86973",afec6c99:"87009","27ba3f26":"87026","179b0f27":"87037",b379fc0c:"87076","7bbde89b":"87088",c3dfaf41:"87107",caf73bf9:"87154",c690545c:"87168",ab18489a:"87195",a39047bc:"87206",fd7b20c0:"87229","react-syntax-highlighter_languages_refractor_json5":"87351","94a5927b":"87384",d065cd71:"87393","react-syntax-highlighter_languages_refractor_latte":"87394",c7658393:"87401","43acd4e4":"87403","14d25af5":"87475","434fdd5e":"87492",a46c8e03:"87623",b00f6a85:"87745","03809716":"87797",b5e1a6cc:"87801","57b87c5f":"87826","3009ed69":"87851",dbe0daa0:"87852","36f4dc34":"87864",fd40cf15:"87940","1cb5f507":"87952","9b002a17":"87977","7bc6d53d":"87995","4e800307":"88002",b791d8b9:"88047","2782d49b":"88049","501e4372":"88062",cdcb48bc:"88156","9f968b87":"88190",b49e047b:"88196","0fa0f141":"88224",f3840267:"88289",f716fabe:"88307",d406b88c:"88352","19f2ca6d":"88379","315ddae4":"88434","91f294be":"88449","36dfd3db":"88471",ac2dfd5f:"88514","63526b32":"88648",f9f47e39:"88670","29cb98a3":"88764","react-syntax-highlighter_languages_refractor_ichigojam":"88813",acf65e43:"88866","6588b4a3":"88906",cd36e440:"88961","8f3b4fe1":"89118","6aef6f7d":"89136","93ff6d8e":"89200","78db2db6":"89202",fcc80eb3:"89207",b4a53a7b:"89228","075a80bb":"89274",a0867ff0:"89315",ed119645:"89318",a0a27c6d:"89345",b8b5bd65:"89359","9ac62244":"89374","7667205a":"89401","39a0d842":"89434","89dd2c88":"89451","react-syntax-highlighter_languages_refractor_sparql":"89523","react-syntax-highlighter_languages_refractor_smali":"89536","6f2bec23":"89562","3e6c110a":"89653",fe94516f:"89749","11417f40":"89767","4f32aa66":"89788","28916d1d":"89810","0da678e3":"89851","570e864f":"89870",fe7fc6cf:"89883",f8877092:"89886","86d2b86f":"89901","9f20da83":"89906","react-syntax-highlighter_languages_refractor_bsl":"89907",a9188981:"89922",e4d1727b:"89925",c3047722:"89951",c22d2964:"90135","3ea95164":"90189","9263e0b5":"90211",a5d56b83:"90251",eb04b82b:"90268","5f80341c":"90271",d0680d38:"90352","641851e1":"90398",b9fc7718:"90428","4ac2fc34":"90453",aa8810f5:"90469","4d5a290f":"90476",e08a3998:"90566","84b4b0f0":"90577","07049aac":"90618","1ceb8501":"90638",fb46656d:"90660",d752a24b:"90738","25cb628f":"90841","1d3aaf79":"91017","67be0d90":"91022","react-syntax-highlighter_languages_refractor_apex":"91060","3eb7155c":"91084","06211346":"91116","react-syntax-highlighter_languages_refractor_gcode":"91156",ca4f381f:"91157","5058ca96":"91222","18e33524":"91230",ec22d082:"91261",eecc085a:"91273",c5c0b0a2:"91285","1441d32f":"91322","5a817b84":"91323",bf8d3126:"91375","4f5e4689":"91440",bee41f69:"91501","2ea21f12":"91545",a7b05e0e:"91650","38fc2797":"91694",dc5b7d00:"91812","97804c8f":"91818","1370da59":"91917",fdf73d72:"91974","react-syntax-highlighter_languages_refractor_autoit":"92038","87cf2e7f":"92051","react-syntax-highlighter_languages_refractor_php":"92208","react-syntax-highlighter_languages_refractor_jsExtras":"92224","react-syntax-highlighter_languages_refractor_t4Templating":"92279","react-syntax-highlighter_languages_refractor_hpkp":"92281","react-syntax-highlighter_languages_refractor_peoplecode":"92310",fe79fa06:"92325","94614d42":"92349",a63ec547:"92353",f3b9af56:"92357",d6d40f1a:"92441","70596a0e":"92618","34b5b841":"92634",cd85436c:"92669",e97676a8:"92674",a1c66966:"92817","3fb9fa74":"92837","4f07da2a":"92876","2ab6ed1b":"92878","5dc012c4":"92917","204c7f3a":"92941","00fcd487":"92965",e06a2e19:"93022","5a8284fb":"93043",f4a1322a:"93083",fdbbf13b:"93125","react-syntax-highlighter_languages_refractor_cfscript":"93134","react-syntax-highlighter_languages_refractor_go":"93154","31d83792":"93176",e753b790:"93209",a7b14b44:"93222",caaec321:"93260","3cb117e5":"93292","962f4cb5":"93306","35cd6961":"93322","1f01eb18":"93345",b7085b68:"93453",c1ffbd90:"93594","697b9cf4":"93621","8f5b2368":"93643","51fca4bb":"93683","8b14a28e":"93702","605113b7":"93750","84e6b9d1":"93792","106ef2cc":"93873",a87414cd:"93895","54f66e43":"93896","740d3abe":"93905","46b3a108":"93918",ff527a96:"93931","react-syntax-highlighter_languages_refractor_jexl":"93943","00680038":"93992",c6646684:"94002",c78e98fe:"94008","993cbf44":"94099",f9908443:"94136","3aaad431":"94161","47dbd172":"94188",be97ed8b:"94221","009100d0":"94297",fbf3b537:"94347","3ef996ea":"94431","533fc6b0":"94445","1821984a":"94453","6382a988":"94458",dd3a9da8:"94471","619cd51f":"94536",cac821de:"94544","1692cb21":"94575",aa959c31:"94707","2a184061":"94708","react-syntax-highlighter_languages_refractor_nasm":"94715","5b9a485d":"94731","00861925":"94736","react-syntax-highlighter_languages_refractor_processing":"94753","5363c4f1":"94768","1f67da4f":"94792","react-syntax-highlighter_languages_refractor_clojure":"94804",b6b3bb02:"94828",fa73b103:"94882","329ca26a":"94950","0f2fc92d":"94987","721813e2":"95026",a8ab55fc:"95030","366bfd22":"95134","06932a2f":"95142","4dfc54b0":"95215",a313a68e:"95247",d17d2a45:"95301",e39b329f:"95356","4df2e0be":"95391","5133cdf6":"95534",a342637f:"95551","react-syntax-highlighter_languages_refractor_mel":"95570","react-syntax-highlighter_languages_refractor_vbnet":"95593","react-syntax-highlighter_languages_refractor_actionscript":"95611",b801efaf:"95700",ccb1a797:"95754","8c923ee4":"95758","1f1225fd":"95790","6fec4aa1":"95808",e706ca3e:"95861","900ddb98":"95897","1156b798":"95910",cc7b7b9f:"95924","0311d3aa":"95927","2505d713":"95930","3d2a3a69":"95974","2936973e":"95999",fbc6c0d5:"96040",e7a82fd4:"96052","5917d54d":"96064","7d4f5762":"96184",bc91b8f4:"96240",cbbeb50f:"96242","636c6fa3":"96355","741edb4c":"96385","6559a382":"96388","93b756d6":"96421","7fa2298a":"96491","react-syntax-highlighter_languages_refractor_bash":"96514",ef44e405:"96540","937a6729":"96553","react-syntax-highlighter_languages_refractor_cmake":"96593","546ceb2f":"96604",f7965b57:"96614","react-syntax-highlighter_languages_refractor_q":"96641","4fcf0eb5":"96656",bfff7bcf:"96663","50db9164":"96750",f5eb0920:"96758","43cf978c":"96776","2303af1d":"96915","576cc9a3":"96946",c32d4a95:"96952",be4d75bf:"97000","5187626c":"97007","36fbdcf0":"97013","697a5b17":"97089","7e9f6be8":"97133","2ac672d7":"97139","3350d1a4":"97160",f12d2f88:"97202",e41c387a:"97297","5954047d":"97351","87c52fcf":"97395",abe07a54:"97446",reactPlayerFilePlayer:"97458","5df541c2":"97569","07b21e7b":"97665",cac4c78d:"97804",b3505693:"97808","89b17141":"97811",e1bfd502:"97830","4d66e8f2":"97872","5daa4f35":"97880","569beb23":"97915","620b2e0c":"97933","2192572e":"98006",f294f0d5:"98095","44c0224a":"98099","react-syntax-highlighter_languages_refractor_latex":"98156","773afb13":"98169",aa3eb5cf:"98197",c777415e:"98228",d7666a50:"98236",ba463a9e:"98256","24fcab19":"98275","80d3668c":"98407",e765c54e:"98465","0918c6f4":"98472","1f300caa":"98478","react-syntax-highlighter_languages_refractor_xojo":"98490",bfb60894:"98544",d73d93a1:"98547","935f2afb":"98581","06815ac9":"98602",e3612ae5:"98633","1c027cd1":"98686",a8744008:"98745","1d5da270":"98771",dfa48919:"98789","11a54fde":"98916",ad6ca35f:"99024","react-syntax-highlighter_languages_refractor_brainfuck":"99101","830e770a":"99106","05da603f":"99126","694b99cd":"99173",ced11bf8:"99321","31533b35":"99340","280b35a1":"99365","76b93c25":"99390","1bad822d":"99417",f3496af0:"99434",d10fc7b7:"99435",ebea1b63:"99444","906e876d":"99458","109f5de4":"99497","react-syntax-highlighter_languages_refractor_swift":"99510","46bfa3ae":"99575","06be3ded":"99580",af9dc836:"99631","3731f685":"99672",bc15071f:"99686","3c11a2f8":"99692","9fb6a754":"99693",ed3431e4:"99774","react-syntax-highlighter_languages_refractor_cil":"99812","17e561ca":"99858",f168a6f0:"99957","212df811":"99998"}[a]||a,t.p+t.u(a)},(()=>{var a={45354:0,71869:0};t.f.j=(e,c)=>{var f=t.o(a,e)?a[e]:void 0;if(0!==f)if(f)c.push(f[2]);else if(/^(45354|71869)$/.test(e))a[e]=0;else{var d=new Promise(((c,d)=>f=a[e]=[c,d]));c.push(f[2]=d);var b=t.p+t.u(e),r=new Error;t.l(b,(c=>{if(t.o(a,e)&&(0!==(f=a[e])&&(a[e]=void 0),f)){var d=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;r.message="Loading chunk "+e+" failed.\n("+d+": "+b+")",r.name="ChunkLoadError",r.type=d,r.request=b,f[1](r)}}),"chunk-"+e,e)}},t.O.j=e=>0===a[e];var e=(e,c)=>{var f,d,b=c[0],r=c[1],g=c[2],h=0;if(b.some((e=>0!==a[e]))){for(f in r)t.o(r,f)&&(t.m[f]=r[f]);if(g)var _=g(t)}for(e&&e(c);h{"use strict";var a,e,c,f,d,b={},r={};function t(a){var e=r[a];if(void 0!==e)return e.exports;var c=r[a]={id:a,loaded:!1,exports:{}};return b[a].call(c.exports,c,c.exports,t),c.loaded=!0,c.exports}t.m=b,t.amdO={},a=[],t.O=(e,c,f,d)=>{if(!c){var b=1/0;for(_=0;_=d)&&Object.keys(t.O).every((a=>t.O[a](c[g])))?c.splice(g--,1):(r=!1,d0&&a[_-1][2]>d;_--)a[_]=a[_-1];a[_]=[c,f,d]},t.n=a=>{var e=a&&a.__esModule?()=>a.default:()=>a;return t.d(e,{a:e}),e},c=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__,t.t=function(a,f){if(1&f&&(a=this(a)),8&f)return a;if("object"==typeof a&&a){if(4&f&&a.__esModule)return a;if(16&f&&"function"==typeof a.then)return a}var d=Object.create(null);t.r(d);var b={};e=e||[null,c({}),c([]),c(c)];for(var r=2&f&&a;"object"==typeof r&&!~e.indexOf(r);r=c(r))Object.getOwnPropertyNames(r).forEach((e=>b[e]=()=>a[e]));return b.default=()=>a,t.d(d,b),d},t.d=(a,e)=>{for(var c in e)t.o(e,c)&&!t.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:e[c]})},t.f={},t.e=a=>Promise.all(Object.keys(t.f).reduce(((e,c)=>(t.f[c](a,e),e)),[])),t.u=a=>"assets/js/"+({27:"84bcd2e8",40:"d64c534f",57:"8310ec5e",241:"dc9d9d7d",242:"bd5231ee",264:"33554c08",280:"c6e2e3a6",286:"aa802b21",288:"95096edc",408:"8a8581f0",460:"04151b48",558:"206a2a76",563:"fddc281d",564:"8b621697",582:"558b8bba",591:"8252d9d1",628:"58ec11bd",631:"c51e6b5a",742:"58802736",920:"60e544e0",949:"e14b20ec",979:"26aa4446",1057:"19be0f52",1058:"47f70b8a",1059:"4c10b97f",1062:"dc6e7ad5",1100:"72b1ab8f",1193:"265e1379",1286:"ce277db3",1332:"010fef8e",1375:"77f6fc98",1405:"7a0e73cd",1447:"9c504883",1451:"react-syntax-highlighter_languages_refractor_gedcom",1499:"68c53b77",1530:"52e10132",1536:"88958298",1551:"3163852f",1554:"bf1a6c1e",1568:"633051d5",1644:"24d1e5df",1683:"435c1d57",1719:"react-syntax-highlighter_languages_refractor_powershell",1728:"9659142e",1766:"5e8a2318",1807:"f0fd5ae9",1811:"8e619849",1874:"9e62c064",1901:"d2d75277",1927:"fff33ac4",1939:"ef91fd67",1941:"11ec5faf",1987:"57c844f3",2071:"a20ed76e",2078:"react-syntax-highlighter_languages_refractor_abap",2119:"d30b4225",2145:"eb36b2c1",2169:"e03529aa",2206:"80753a45",2237:"4cc9f601",2272:"react-syntax-highlighter_languages_refractor_pug",2274:"c98609e1",2280:"07892beb",2328:"4d80eee6",2337:"cc3e5c26",2383:"41b81e12",2385:"52cbf5a0",2416:"c737e91b",2419:"react-syntax-highlighter_languages_refractor_livescript",2468:"12eca085",2473:"164f70ac",2517:"f3e763e5",2549:"c6335d26",2598:"df30a0d5",2614:"49c96c56",2665:"d5606cb6",2666:"88805bdd",2690:"react-syntax-highlighter_languages_refractor_gherkin",2814:"f187f75c",2824:"react-syntax-highlighter_languages_refractor_robotframework",2834:"2cafcb46",2964:"065e482e",3132:"dd8234ec",3169:"ebab6303",3247:"65f9c841",3258:"c336d2d9",3291:"8050d968",3358:"3f92b6dc",3375:"react-syntax-highlighter_languages_refractor_twig",3392:"reactPlayerVidyard",3401:"07a24ab3",3407:"58121f3f",3472:"0858460b",3506:"a0c8f4d1",3519:"0f9e56a2",3688:"cd08d4b0",3694:"265804ab",3733:"react-syntax-highlighter_languages_refractor_lilypond",3769:"a7951825",3782:"a1db62ef",3874:"react-syntax-highlighter_languages_refractor_moonscript",3882:"eb3ba94e",3909:"react-syntax-highlighter_languages_refractor_promql",3921:"bc81f325",4019:"8ff11d0f",4100:"3fb7c2e9",4105:"22b47849",4167:"3cfe152a",4226:"f2eced51",4247:"0a6a88e9",4262:"7a259904",4266:"a62c6278",4289:"089859ad",4295:"30c8b998",4311:"5cdfd161",4377:"509b9638",4400:"feaf005b",4426:"1eaac6a5",4450:"5cea70f8",4469:"react-syntax-highlighter_languages_refractor_powerquery",4732:"8fc26804",4836:"cbf4c551",4866:"8bf829ee",4881:"cf2e8a32",4957:"5aac511a",4987:"54b95c75",5031:"e4a0154b",5133:"421a29de",5208:"react-syntax-highlighter_languages_refractor_hoon",5263:"49c48589",5265:"8a5f3d58",5281:"react-syntax-highlighter_languages_refractor_tcl",5314:"0bdb2564",5407:"daad3ec8",5427:"8343a638",5511:"5a527ab5",5521:"de2fe47e",5529:"react-syntax-highlighter_languages_refractor_django",5538:"367e4fc9",5615:"ee52a4f2",5655:"6765012a",5659:"1f96958f",5664:"6716300b",5672:"2d9fd3e8",5674:"13a4797c",5716:"a8533575",5717:"e1538bc3",5719:"83ca6e75",5779:"react-syntax-highlighter_languages_refractor_solidity",5838:"1bd3ee4e",5864:"d60a63a2",5889:"ce0a1787",5928:"151add9d",5963:"react-syntax-highlighter_languages_refractor_gn",5989:"5adeb76b",5999:"0aa60109",6051:"a0573330",6057:"de89ea4d",6094:"25a66ca5",6124:"6ef00491",6129:"c430b383",6135:"1f164800",6141:"05d06b69",6167:"609b18dd",6262:"804765a6",6268:"11bf9e76",6294:"3f0bde23",6334:"3b5280ba",6344:"40e8d2f8",6351:"ac7da1e4",6361:"94b49ec0",6385:"c0fbebdf",6394:"8e131a02",6405:"95b96bb9",6425:"5e7d406c",6438:"f86d83ea",6463:"reactPlayerKaltura",6476:"326c28e0",6483:"eb48eb31",6497:"a079ddf3",6511:"691162ab",6531:"f89ed123",6550:"7c5f602b",6804:"react-syntax-highlighter_languages_refractor_handlebars",6812:"275fbd78",6815:"65d2ee61",6839:"0bbcffdc",6845:"27de3a99",6893:"edfa1e84",6944:"6c0205ab",6999:"86e65b11",7048:"00c3eb1c",7052:"89a24274",7109:"59bc3ca8",7114:"236d3efd",7131:"c5987ac2",7139:"c80bab8b",7207:"da73f0d9",7231:"c93cd936",7237:"49bb035c",7261:"react-syntax-highlighter_languages_refractor_protobuf",7269:"0d4c2304",7273:"16f806b1",7276:"bd8c0afa",7337:"daf22984",7371:"d1e1b89b",7442:"bd359c2a",7454:"fe9101f7",7457:"45ad5f4e",7482:"2eb67f0a",7508:"34ab9615",7556:"ddbc9423",7562:"d84c8b75",7587:"fc4d4272",7605:"8240de52",7616:"9920bad0",7642:"200945dc",7674:"268d64cf",7686:"6823ceb4",7726:"479bd2e2",7752:"b96f418e",7765:"react-syntax-highlighter_languages_refractor_rego",7802:"df6d0412",7808:"15e516a5",7814:"c41c6f62",7818:"react-syntax-highlighter_languages_refractor_inform7",7854:"9793c9ab",7911:"c794484a",7959:"cf7df211",7989:"1a560913",7996:"3e50d90a",8022:"78963624",8047:"ad846957",8061:"3e0b10dc",8091:"6f7ca108",8099:"9cd0874c",8145:"29b06d52",8209:"01a85c17",8285:"53953b9d",8330:"react-syntax-highlighter_languages_refractor_vhdl",8336:"87242d08",8345:"469a95ce",8374:"d3e8ad86",8404:"350efd57",8417:"react-syntax-highlighter_languages_refractor_nix",8463:"86fed5f2",8515:"035376a3",8519:"971783f9",8577:"6edfd560",8608:"fec35715",8662:"b161e36c",8679:"687b58fd",8764:"11d8605d",8787:"fda12de5",8837:"6d5630c5",8872:"1710ee1e",8875:"278548b2",8878:"269d297d",8948:"f1011b2f",8967:"79599614",8987:"9d710a19",9054:"df2fb0af",9060:"react-syntax-highlighter_languages_refractor_gdscript",9110:"720485e0",9147:"8a96d16c",9149:"a07fa8ef",9240:"b2e24529",9301:"15f8bc50",9349:"66024a96",9379:"131b7b19",9450:"react-syntax-highlighter_languages_refractor_r",9481:"b2e9fe47",9504:"6bc7e0df",9587:"1df6fbe0",9631:"ddc2c0f0",9647:"5e95c892",9691:"fcf92d97",9729:"8aa90562",9771:"react-syntax-highlighter_languages_refractor_keyman",9777:"e2d05215",9784:"54988307",9901:"92c7eab1",9979:"22a80663",9982:"f2395723",10016:"a11ca41e",10047:"451bfaf9",10092:"24909fb1",10126:"5e2c3353",10153:"a74d7d18",10178:"2be0cfaf",10204:"react-syntax-highlighter_languages_refractor_pascal",10292:"ecb2d6d1",10313:"85869fec",10319:"f5140fc3",10323:"54f0ad11",10329:"b919b62a",10357:"8d32d193",10365:"react-syntax-highlighter_languages_refractor_hcl",10371:"d9680a2c",10378:"ccc701e7",10387:"bae01de0",10414:"84e426ea",10418:"5f2e2131",10428:"ea9cad3d",10488:"27172a78",10593:"dc4a2b93",10614:"688f552a",10622:"react-syntax-highlighter_languages_refractor_groovy",10864:"4e13d31b",10921:"84c155f2",10953:"react-syntax-highlighter_languages_refractor_aspnet",10981:"3e51ac17",10999:"c60c497d",11005:"3c32ea34",11048:"d3722b14",11072:"36d9f920",11074:"f7158734",11220:"react-syntax-highlighter_languages_refractor_haxe",11253:"ff34c2a3",11342:"08c1a781",11384:"0cea0860",11404:"95a8c77e",11406:"react-syntax-highlighter_languages_refractor_renpy",11460:"e65ec948",11482:"93cf290a",11505:"b0a511ac",11519:"20aff5c9",11530:"47896812",11543:"c0d396e4",11546:"deabba02",11605:"ce825ef8",11623:"5a354d02",11663:"6be95d8e",11675:"b0663634",11681:"384b5529",11695:"react-syntax-highlighter_languages_refractor_jsx",11707:"3aa26e06",11717:"8af70d64",11749:"react-syntax-highlighter_languages_refractor_erb",11768:"89a2b07d",11770:"71179f0d",11800:"61bfed03",11844:"f0d3c292",11848:"24b4f315",11852:"0e75c1a1",12042:"reactPlayerTwitch",12101:"5b86e82d",12102:"react-syntax-highlighter_languages_refractor_ftl",12111:"c46edbac",12138:"76608970",12171:"6294aeb7",12205:"2c5603d1",12266:"eaca4adb",12333:"ab727a48",12352:"ca216e25",12387:"4fac73d8",12424:"88684b9d",12490:"react-syntax-highlighter_languages_refractor_dataweave",12494:"b78be845",12547:"8f464baa",12569:"462bbb79",12581:"4c1ec688",12609:"4bf4ea84",12630:"7964aea2",12690:"54b88cfe",12748:"d5c39aa1",12762:"92964ffa",12772:"b5a9a661",12801:"af5f45b9",12820:"02b9e427",12892:"62e88fdb",12898:"db0ceabd",12929:"5d1ed832",12948:"bf598913",13065:"cb0a65f9",13094:"1f851c01",13142:"b5bc19c8",13151:"react-syntax-highlighter_languages_refractor_dax",13160:"8cc913f6",13198:"8ebeecd3",13260:"e2a00b72",13268:"977dc6eb",13277:"e6daf1de",13347:"d5cd114b",13360:"8486b8fa",13371:"ad39bf18",13407:"441f3e41",13438:"368e1eeb",13440:"react-syntax-highlighter_languages_refractor_ruby",13486:"007ad6c2",13506:"708022bf",13517:"ebb29d88",13518:"bf9244d8",13559:"2e4bc32a",13582:"cca5221f",13637:"131aac84",13648:"a1cb2e49",13690:"2e0f5eee",13734:"85bd101f",13749:"50a43d1d",13784:"fd092f84",13804:"9cdb2ac3",13883:"ba8b2d87",13911:"399d4577",13927:"a684f421",13979:"7fd476ac",14e3:"99accade",14106:"6f90034a",14118:"c3d37c91",14156:"65b20314",14207:"353365c0",14339:"02b980c0",14360:"dcac528e",14363:"bcc835b2",14387:"8da55221",14519:"2703ef47",14546:"2cf195af",14556:"edf1bff9",14586:"34720735",14616:"ab36059c",14664:"5102df2c",14672:"c4b8d3be",14676:"86ac1f62",14679:"53c639b1",14751:"597e0d1e",14771:"cf49fede",14780:"572ab204",14790:"8edaf9a5",14793:"b7dcdcad",14825:"926e3009",14886:"a3fa124c",14944:"e135ab31",14957:"48e5482b",14981:"2b63e488",15028:"da19030c",15080:"c67d5f1c",15113:"de9cd55e",15121:"531ef78e",15161:"782dba4f",15174:"91864d41",15191:"2ff6e069",15203:"react-syntax-highlighter_languages_refractor_coq",15220:"b6fb4db9",15277:"dd5a0e45",15291:"828f2741",15300:"bed6d8d6",15359:"76fdb267",15408:"038ad548",15410:"d0e186e6",15463:"e91e33b8",15468:"75dcd8ec",15477:"4b2cfd8c",15494:"62c90643",15620:"bd9a1857",15634:"e6970a8e",15676:"b3489a2f",15728:"e30125de",15758:"804b821f",15767:"67515884",15783:"9ab32d5b",15873:"react-syntax-highlighter_languages_refractor_applescript",15934:"e2237170",15971:"38fc7081",15972:"45ac6703",15987:"057ef766",15992:"4a75eabb",16039:"7aac9c4d",16079:"8990d820",16104:"47751582",16120:"6a41d27b",16144:"b5771a04",16152:"b10cc6ec",16168:"a45c903b",16194:"f06a807e",16208:"22bbc4b0",16221:"704af19b",16299:"68f60f75",16305:"react-syntax-highlighter_languages_refractor_csharp",16323:"cf59f57c",16328:"reactPlayerDailyMotion",16396:"974a7ed2",16403:"react-syntax-highlighter_languages_refractor_markupTemplating",16412:"9eb21b3a",16451:"055d2677",16458:"react-syntax-highlighter_languages_refractor_sass",16490:"6e4d9913",16512:"98abf98b",16539:"71522cd8",16550:"fc655ccb",16587:"5540d0db",16671:"f961bcda",16677:"a02d1aa6",16708:"0c935397",16745:"2eb5d71b",16794:"43084770",16822:"bc7fa82f",16829:"react-syntax-highlighter_languages_refractor_ebnf",16834:"bbfd62cb",16872:"860023f2",16934:"c425a1fc",16942:"react-syntax-highlighter_languages_refractor_log",16949:"cb3ab1df",16993:"03c8c5d4",16997:"a41d233f",16999:"9cccdfca",17029:"react-syntax-highlighter_languages_refractor_yaml",17031:"e4950434",17071:"49215773",17148:"react-syntax-highlighter_languages_refractor_io",17208:"aa6393a3",17261:"61eace94",17293:"ff38257a",17320:"a6ce5706",17407:"d7cfe959",17417:"837fb0d0",17419:"react-syntax-highlighter_languages_refractor_solutionFile",17495:"react-syntax-highlighter_languages_refractor_tap",17517:"b90b88f1",17529:"40132c69",17535:"30d42090",17553:"d23236dd",17570:"c022ae0f",17573:"dcac14a1",17595:"9518016b",17610:"627658c4",17645:"react-syntax-highlighter_languages_refractor_phpExtras",17692:"c854accd",17696:"react-syntax-highlighter_languages_refractor_neon",17735:"react-syntax-highlighter_languages_refractor_pascaligo",17742:"9ba6d041",17765:"daecf1ac",17780:"cb416afd",17857:"c2eb94b1",17912:"10b96f29",18003:"9431f4ef",18060:"93782e8a",18067:"8750a788",18094:"bb4410aa",18102:"809e8296",18124:"69958486",18155:"e356e411",18205:"2605ee34",18348:"f250869a",18353:"edf2de7a",18369:"react-syntax-highlighter_languages_refractor_factor",18381:"2db5f759",18401:"17896441",18432:"e9afde81",18438:"698b6e29",18446:"reactPlayerYouTube",18469:"4632ea63",18494:"e9c4bf46",18497:"react-syntax-highlighter_languages_refractor_abnf",18505:"616d86a5",18549:"54b44a2d",18553:"f90a076e",18607:"4c4702a1",18615:"react-syntax-highlighter_languages_refractor_textile",18621:"578d2057",18630:"7aed67a8",18701:"fd0888ca",18705:"2106a8c5",18716:"94c994d7",18724:"1e1ebbc2",18725:"6378b071",18754:"b1f4ebb3",18840:"403c19a8",18867:"5a786131",18884:"react-syntax-highlighter_languages_refractor_purebasic",18886:"a0664561",18993:"6df3e622",18998:"e21c4ed5",19013:"3f924e1b",19048:"react-syntax-highlighter_languages_refractor_http",19054:"eaf4d31a",19072:"df9030e8",19074:"c7d26a86",19117:"react-syntax-highlighter_languages_refractor_diff",19166:"790473be",19196:"react-syntax-highlighter_languages_refractor_scss",19211:"8a0865ae",19366:"aa6173fd",19488:"151b3cdb",19559:"7b906b0d",19569:"e0c90045",19636:"fb19ce74",19657:"5d2b6c00",19667:"70ccb0d9",19688:"react-syntax-highlighter_languages_refractor_git",19741:"85b545e2",19742:"a74020c2",19751:"6e75ae4a",19789:"59de25e9",19802:"35be9474",19836:"d7bd5962",19848:"1dbb113c",19909:"3456be4e",20031:"283967ed",20036:"f8a2fbb6",20060:"f83ae13b",20096:"react-syntax-highlighter_languages_refractor_ocaml",20101:"833193b7",20154:"478957a4",20156:"7696af57",20192:"75c81540",20209:"effa8f82",20247:"d70d51e2",20345:"react-syntax-highlighter_languages_refractor_falselang",20382:"10659806",20405:"fbaa2b93",20416:"efaa9a7c",20451:"react-syntax-highlighter_languages_refractor_graphql",20452:"1585f60d",20473:"8c89ea06",20504:"d26f808a",20557:"bebe0006",20600:"611d590a",20714:"84b5ae79",20715:"1e0266f6",20724:"react-syntax-highlighter_languages_refractor_docker",20731:"d063b25b",20738:"1cc63fde",20804:"0b0d702f",20813:"1fa78379",20833:"89020377",20891:"react-syntax-highlighter_languages_refractor_javastacktrace",20913:"1e6abbb5",20925:"react-syntax-highlighter_languages_refractor_scheme",20926:"7a77a761",21012:"e57aa837",21099:"4b9e6ddf",21110:"09e8b809",21163:"bbd6f071",21193:"b7af393c",21202:"87f9ae18",21233:"9af6d6b4",21269:"a09a24b7",21291:"42ecce42",21302:"c6309d62",21317:"d28bf642",21328:"dce59618",21353:"react-syntax-highlighter_languages_refractor_arff",21385:"react-syntax-highlighter_languages_refractor_dnsZoneFile",21398:"1493b123",21472:"6263a26e",21510:"b0535527",21610:"368b8c61",21658:"00c0805c",21724:"ef6ea4db",21740:"react-syntax-highlighter_languages_refractor_asm6502",21754:"00846ec3",21760:"54ddaf89",21826:"deb7cc50",21890:"d42c418a",21910:"a739f313",21983:"ea59ce26",21997:"6860c5fd",22021:"51994402",22047:"77c0e835",22060:"c2a6a93b",22066:"f20e9528",22110:"d1b09c4f",22125:"fd8c1fa9",22134:"c654f106",22269:"react-syntax-highlighter_languages_refractor_rip",22295:"bf669c84",22297:"6a336643",22300:"808151e7",22311:"e45dc856",22325:"559b3b95",22330:"992bfa5c",22336:"react-syntax-highlighter_languages_refractor_smarty",22337:"134430ad",22489:"2ed2eabc",22507:"731ca5f6",22508:"e4f65779",22585:"react-syntax-highlighter_languages_refractor_typescript",22628:"react-syntax-highlighter_languages_refractor_stan",22649:"e5f5e7be",22680:"36e1259f",22710:"8b648089",22711:"94db3141",22734:"35752ff7",22809:"32988486",22823:"e1732b4d",22883:"78c019df",22972:"42206b72",22976:"7c024dfa",23029:"918d27e6",23043:"2d893d60",23076:"d37decef",23159:"02633482",23180:"69f85179",23224:"react-syntax-highlighter_languages_refractor_objectivec",23231:"a23069be",23267:"6ad2f2bc",23281:"react-syntax-highlighter_languages_refractor_cobol",23300:"560ae20f",23361:"cff13e42",23405:"db5f6e59",23406:"1d92e03a",23410:"26e01f14",23414:"e4ca4709",23616:"b61f4f40",23625:"4dc25e8c",23664:"e8c1830c",23686:"ae0a9328",23706:"003717e4",23750:"eb7d31b7",23771:"96216215",23775:"12dcd077",23826:"1d72346f",23835:"8f1388f0",23877:"f5c055b4",23880:"2baefe8b",23887:"react-syntax-highlighter_languages_refractor_idris",23932:"31c3eda2",23943:"f9841376",23944:"8ead4fc6",23983:"1fd735f4",24050:"00aed27d",24175:"066bda7b",24221:"f83b8986",24237:"173ee416",24265:"60308593",24275:"b9dd72ce",24422:"a8012452",24426:"225481be",24429:"3568cf0c",24430:"9539702d",24439:"2383b453",24504:"d3001a82",24550:"7aada517",24560:"b98aebff",24561:"45879357",24646:"a81fd9ee",24659:"c3a50909",24758:"345f05f2",24812:"6ae8306d",24824:"be0c05e5",24830:"react-syntax-highlighter_languages_refractor_fsharp",24852:"5feae07f",24887:"721b9ffa",24890:"46cde13a",24903:"react-syntax-highlighter_languages_refractor_etlua",24908:"f1785d0f",24934:"88439bdc",24994:"6b03ecea",24997:"0e80cbd4",25020:"34366aa1",25035:"58082cb4",25060:"2c5ed484",25114:"26734393",25173:"604e09d8",25175:"6c00b9b0",25219:"36cf28e9",25266:"539d1863",25287:"0e2e1d8e",25292:"78545271",25315:"e0fd5824",25333:"3b80d618",25342:"4655cc14",25397:"e09f87d3",25419:"3ea5c28a",25445:"55683c80",25473:"153271ad",25507:"react-syntax-highlighter_languages_refractor_matlab",25535:"e3d5f021",25547:"9d19e17f",25559:"react-syntax-highlighter_languages_refractor_properties",25586:"2890cdde",25590:"2af58904",25601:"cae58d6e",25661:"ecb6575e",25733:"d2ef8bf9",25845:"456650f2",25891:"37328ebb",25930:"5de72664",25962:"ea22cc1b",25963:"f2495950",25964:"cb0b69cd",26023:"4f8de05f",26060:"react-syntax-highlighter_languages_refractor_nim",26173:"reactPlayerVimeo",26184:"eaaf191e",26190:"d5e69987",26196:"0afbc094",26228:"96a14053",26246:"b788a960",26257:"c732fedd",26259:"b0f873c3",26277:"1c28c71e",26285:"react-syntax-highlighter_languages_refractor_dot",26303:"b950ae6d",26396:"0bafac2f",26421:"e0c6dc0e",26426:"a9a934dd",26514:"cf1b0010",26520:"5a8a7aff",26614:"78e826e4",26835:"5b3097b2",26869:"737891d3",26876:"4c0c2deb",26878:"react-syntax-highlighter_languages_refractor_firestoreSecurityRules",26887:"ad17591b",26894:"c80c620c",26996:"1957effb",27030:"da47026c",27056:"0d68b582",27165:"199550a6",27202:"react-syntax-highlighter_languages_refractor_openqasm",27209:"e55f2f4e",27341:"28ef8a93",27349:"7a15e007",27435:"bbc30e0d",27443:"00a891f7",27446:"33a7c688",27510:"7e1274f7",27515:"cea7ec04",27517:"f09b4df3",27530:"1218e2bd",27534:"3010f1c9",27559:"4ee824b6",27571:"639a1b7c",27601:"181fd6a1",27615:"92dec2fe",27629:"d30dfcd3",27648:"f43df136",27650:"334aca5a",27705:"react-syntax-highlighter_languages_refractor_clike",27716:"a48096a6",27727:"8870bad1",27788:"070fb884",27812:"c0ef72dd",27822:"2ef8cd6c",27868:"ee18827a",27893:"20dddd66",27902:"63e5f7b5",27912:"react-syntax-highlighter_languages_refractor_liquid",27945:"af56cca7",28002:"dc8f846b",28079:"210622a6",28141:"react-syntax-highlighter_languages_refractor_naniscript",28145:"5ab51f3c",28164:"60a80873",28236:"3ae38b0a",28311:"7b6b775b",28462:"react-syntax-highlighter_languages_refractor_v",28494:"react-syntax-highlighter_languages_refractor_fortran",28603:"2ebc8231",28617:"0f9cd74c",28650:"2499d0ab",28676:"3c9b69fe",28680:"6b23884f",28687:"1c091e98",28706:"4bbed989",28734:"e6fe4cc5",28763:"e91a0703",28783:"438df00a",28789:"429c429e",28801:"17cdd50b",28985:"48d77013",29017:"52181999",29050:"fcb7333f",29084:"react-syntax-highlighter_languages_refractor_makefile",29158:"c354f0b4",29221:"da1a6735",29336:"8ee3b6bd",29419:"11330710",29442:"214805b5",29478:"80ac5db4",29504:"e2d1c1ed",29511:"c3c33ebf",29548:"react-syntax-highlighter_languages_refractor_nginx",29583:"cb23619b",29595:"bbf1a1c4",29615:"8413b679",29627:"react-syntax-highlighter_languages_refractor_markdown",29706:"40bcc614",29804:"7a2d783a",29810:"9a34f2aa",29855:"9d766b13",29887:"react-syntax-highlighter_languages_refractor_al",29934:"926e26ba",29976:"21eb889f",30005:"07d07e4e",30023:"35a84199",30087:"6e369425",30109:"137d3a47",30130:"c222aa0d",30201:"d574981b",30283:"83fd2e4f",30320:"c9ecba79",30325:"d83f50c7",30333:"2d33737a",30336:"ad790d1c",30355:"7176e37b",30370:"36eb743d",30413:"a4dd2e86",30438:"538c3fab",30443:"12c3d0e8",30453:"0311fa17",30483:"37ec961d",30504:"6e1c46a1",30601:"f26ea442",30640:"f5a91e8d",30684:"dd58769d",30713:"cbd3817f",30727:"8fda5026",30741:"b1388f77",30751:"c9f90f30",30755:"c1de8834",30764:"47458dd1",30794:"88429831",30815:"c01655ee",30857:"fe8349c6",30888:"2ae5e355",30893:"react-syntax-highlighter_languages_refractor_dhall",31002:"b27cb526",31138:"5b1bf06e",31142:"4cc7e4a8",31209:"8d21ba42",31239:"react-syntax-highlighter_languages_refractor_llvm",31243:"679d206b",31302:"dcdbe9aa",31309:"96ff8feb",31316:"4abb887c",31374:"2586ad1d",31393:"ff67560b",31443:"70ea09d2",31469:"016c6857",31502:"e9c371a6",31547:"a7302c93",31556:"71473e8d",31622:"73b907a8",31660:"82174fd7",31717:"fe063cf3",31726:"7218584b",31738:"3d1eea97",31768:"e17814b9",31822:"4700fec8",31836:"b5d49b70",31897:"38584736",31992:"17c9af37",32057:"7ab5ef39",32058:"7212c154",32168:"react-syntax-highlighter_languages_refractor_java",32184:"75f9059f",32185:"9990a12c",32270:"react-syntax-highlighter_languages_refractor_crystal",32272:"3b425c86",32300:"23ffa728",32314:"371973a4",32319:"83fd095c",32358:"cfe68a19",32384:"4fe6950f",32402:"b304dada",32415:"49a4fa5b",32431:"4ed82739",32547:"7e41a3f3",32564:"6b91ef2f",32566:"13eeb9b6",32597:"c5f51424",32619:"a71ef9f3",32648:"3f473e3b",32664:"804e189f",32687:"e076279f",32698:"e5593ff4",32723:"b3e62e9d",32742:"react-syntax-highlighter_languages_refractor_goModule",32752:"6a251a09",32768:"ef2363fd",32803:"342da00d",32857:"28372844",32886:"fd19bde0",32917:"4fd820bd",32928:"react-syntax-highlighter_languages_refractor_concurnas",32944:"169f843b",33153:"f13ed2a4",33246:"8f2603c5",33281:"678eb5cd",33320:"c1df4904",33333:"782370ba",33401:"86df7025",33493:"dbac4f0b",33504:"80a636e2",33539:"react-syntax-highlighter_languages_refractor_c",33550:"5e2f8b1f",33589:"d9724aa2",33613:"f668f451",33621:"66c73250",33656:"390740f2",33709:"a018a632",33760:"bd70db15",33777:"ebf5b3b3",33799:"7f50e1d2",33835:"6cbf99a4",33952:"0dabd4f0",33974:"0cf483f1",34048:"e4fa53cf",34075:"36471230",34090:"c41318a0",34093:"6ac9ae72",34097:"6cc106d5",34118:"react-syntax-highlighter_languages_refractor_csp",34336:"react-syntax-highlighter_languages_refractor_batch",34341:"daa659ca",34387:"f8d96fd7",34399:"eeac13f4",34453:"ac91d12c",34475:"25e75d93",34483:"08142ad0",34490:"3025f89f",34521:"dd25e00f",34531:"c7fe9c45",34559:"30dd09fb",34563:"e56961b8",34582:"b4db83a1",34656:"9942af5e",34672:"70f3f801",34678:"201a0500",34681:"0e2937f4",34747:"1ab565ee",34754:"26b4af5a",34796:"07771b90",34857:"56bff0da",34903:"675250a4",34924:"5b412298",34929:"992b795c",34939:"acb8ce8b",34967:"react-syntax-highlighter_languages_refractor_magma",34983:"e7ef37d7",35008:"91e8ebcb",35016:"4a0ea2e5",35063:"3eb1c3c4",35077:"4e2955b0",35106:"c6ea8a09",35150:"278f5c51",35209:"d945d2e7",35267:"eae386c9",35306:"696cc2ce",35397:"41b5f16a",35414:"35d7d22b",35447:"00c89828",35475:"ef51dad6",35491:"7ed328b7",35562:"d939f5f5",35603:"967a49c1",35703:"baa3bdcd",35785:"a5746cd4",35805:"69b3b150",35806:"2a637248",35827:"0287ff23",35837:"5212040f",35870:"57269503",35884:"0fe96742",35920:"8371f7c4",35966:"3f502d21",36020:"cae55ba7",36030:"8810f664",36033:"6ced10a4",36103:"e9c8bbd7",36137:"adaab7df",36195:"e487c8e6",36198:"f825aee5",36211:"07646cfb",36212:"079f615e",36225:"4ed67237",36227:"2b5167f1",36242:"987c2424",36258:"29ae3a93",36268:"react-syntax-highlighter_languages_refractor_avisynth",36278:"9a49ff8b",36321:"daba2da9",36332:"e9936e5a",36353:"reactPlayerPreview",36388:"716244e8",36477:"0ad4a848",36491:"421a17ff",36499:"337ac029",36509:"b4b2283c",36526:"97985e22",36537:"e4b329fa",36559:"1b82c7d9",36575:"9786a9ec",36617:"30618897",36628:"5cc8ca0f",36631:"737649ca",36652:"3e42ceaf",36715:"0a67fbc9",36787:"a6c6c313",36861:"416483b8",36871:"d2a9d211",36938:"2d45f6c7",37003:"afc801d1",37019:"c7a422cd",37037:"81d0f39e",37044:"8d0b89ff",37115:"68188daf",37130:"f67c1695",37171:"798d2723",37191:"cc41b2f5",37195:"7235d708",37228:"react-syntax-highlighter_languages_refractor_asmatmel",37242:"6ad61205",37249:"874ae5fd",37282:"4475f555",37322:"42b54026",37349:"3b253872",37361:"e76e77ba",37382:"c168b77c",37387:"65351f68",37399:"0f2d26b6",37410:"7b300f5f",37425:"684a8e80",37495:"react-syntax-highlighter_languages_refractor_yang",37539:"400df662",37572:"8c5c6aa4",37581:"react-syntax-highlighter_languages_refractor_eiffel",37614:"066f1fb8",37636:"75fa0d79",37643:"a6aa9e1f",37654:"ff34ab38",37661:"e9325ad9",37711:"57158e32",37717:"e2b6763a",37743:"react-syntax-highlighter_languages_refractor_warpscript",37841:"5190dab0",37892:"7bb65623",37904:"react-syntax-highlighter_languages_refractor_csv",37907:"de390d23",38070:"2823facd",38075:"2119c1e2",38081:"d84577d9",38099:"682f6497",38131:"9097d858",38154:"7d2a1e49",38234:"d24e03c4",38300:"react-syntax-highlighter_languages_refractor_ada",38308:"504ae1ba",38329:"8aa4234a",38339:"2f85cf1a",38386:"d8234f55",38403:"54c9ac3f",38413:"445badb6",38478:"2a9ef828",38500:"b50ddde7",38550:"c303c441",38561:"486a139f",38584:"react-syntax-highlighter_languages_refractor_plsql",38588:"6511b439",38621:"a315deb3",38674:"169627b2",38724:"d3155368",38725:"b7b23aa0",38749:"e82b7062",38773:"d95083ed",38791:"51e2b9b2",38809:"2bf5cfee",38963:"1f67849c",38964:"fe0ceb55",39047:"592f8e2a",39059:"react-syntax-highlighter_languages_refractor_less",39094:"88879bf9",39147:"18a4a555",39174:"3484aa91",39230:"9a985c31",39245:"bf5d98b4",39294:"a25e84b4",39322:"react-syntax-highlighter_languages_refractor_basic",39428:"f4ab8097",39430:"3a0bcb93",39604:"0e9131e7",39713:"ca8035eb",39730:"b70cacd3",39775:"297bf93b",39865:"dbfc931f",39868:"88e12ebd",39869:"06e7c4eb",39876:"7e40ac29",39920:"d27f5625",39922:"7048d4ce",39964:"react-syntax-highlighter_languages_refractor_gml",39975:"1ec70417",39991:"4ad7c3a7",40048:"33ed5c55",40080:"44da012a",40109:"9ff4a30a",40170:"fc3311f6",40175:"98564943",40256:"3059c001",40269:"react-syntax-highlighter_languages_refractor_erlang",40314:"e255d312",40318:"0b078435",40341:"d5c9d331",40370:"d677aac6",40458:"54968223",40494:"23036166",40510:"1cd8632f",40543:"637e72cc",40550:"09a58613",40578:"b8d5d32c",40587:"react-syntax-highlighter_languages_refractor_qsharp",40653:"5ae56628",40675:"7245b967",40676:"c272450b",40756:"99cd8ab7",40757:"8ed09d5c",40765:"2835814a",40771:"4b93b620",40844:"1dc5c4ab",40881:"5b7a800c",40883:"43da222d",40886:"38e25f39",40904:"81c108ae",40925:"249fb7f2",40956:"838b5b83",40973:"9fe80417",40999:"cffd3109",41029:"9f0b35a2",41125:"9a80a9cc",41162:"ed27be7a",41196:"b2f1ec6b",41209:"3d401b68",41237:"85b3c4be",41250:"66b70b55",41278:"f913c9e1",41310:"88e50461",41418:"3873cc26",41438:"ff940ee8",41484:"6509bd7f",41533:"9d583bbc",41550:"react-syntax-highlighter_languages_refractor_nand2tetrisHdl",41557:"321bc46c",41695:"289e4581",41763:"07dacd47",41783:"5d12b69a",41787:"d3911073",41841:"96ac8335",41870:"fa28b8ae",41883:"2103ef9b",41899:"b1f3581b",41953:"edab235e",41997:"729c9d8f",42014:"987115d4",42098:"ef7e9322",42117:"0c368d1a",42129:"react-syntax-highlighter_languages_refractor_javascript",42258:"react-syntax-highlighter_languages_refractor_aql",42371:"20565400",42374:"react-syntax-highlighter_languages_refractor_vala",42542:"c756e6f1",42547:"72295bf7",42585:"5607dd87",42594:"068107c8",42649:"38ebe2a8",42674:"react-syntax-highlighter_languages_refractor_rust",42700:"e2b8f3b3",42706:"ebf6d32a",42779:"7ec16b44",42850:"774c2114",42875:"react-syntax-highlighter_languages_refractor_dart",42916:"29607d76",42939:"98869011",42947:"1cd504d5",43065:"a11eb45c",43082:"2331f9e0",43171:"662feac7",43203:"5453b8ab",43205:"f8d3051e",43244:"85d80a2a",43246:"0d999725",43311:"react-syntax-highlighter_languages_refractor_tremor",43362:"82f87a0a",43371:"0730a75a",43373:"d8036dc6",43384:"70a9316b",43385:"1354288c",43396:"aafbd2cf",43399:"8544a0ae",43415:"ed04f1fb",43447:"7eeb0290",43492:"88cf06e5",43512:"d61cad73",43518:"c9a36032",43588:"e16fb186",43628:"a14c09e8",43657:"react-syntax-highlighter_languages_refractor_agda",43702:"3e5eea78",43725:"df8fcf34",43774:"3cd58ed7",43784:"fa5d4061",43864:"3ac01926",43867:"47d7a97c",43923:"d4a3106e",43929:"f77d0a36",43966:"3e43f116",44e3:"4160c096",44071:"b2a19ece",44164:"3d361716",44174:"b082f98f",44189:"6456cd00",44226:"5cbc3ad8",44263:"df895394",44284:"2d855ded",44315:"65dcd0ca",44321:"fd0a6753",44335:"db2831c5",44367:"1255c446",44416:"4d79096d",44422:"5e4beff6",44485:"59b1a96c",44498:"cd5af42f",44572:"react-syntax-highlighter_languages_refractor_sql",44603:"4576c8f1",44613:"86600345",44728:"8a64b13b",44760:"5352c3c1",44840:"c61b9d11",44843:"504bd232",44928:"react-syntax-highlighter_languages_refractor_cssExtras",44991:"9e1d9aa8",45006:"ecb2acb7",45020:"cc94ceb0",45041:"785022c5",45086:"4a36bee3",45134:"f5cb549a",45165:"3b01df24",45168:"dbf95cdb",45219:"41880870",45362:"4ddf9e85",45377:"98126bff",45379:"468ad1a5",45391:"0a3230e0",45399:"f0ec427a",45421:"8d19c782",45424:"react-syntax-highlighter_languages_refractor_pcaxis",45457:"2153f0f1",45473:"05ad514f",45482:"f9769a03",45538:"d9200ea4",45562:"119d0848",45578:"react-syntax-highlighter_languages_refractor_lua",45595:"52942f55",45605:"a5007b69",45615:"c3ef55e1",45633:"b47c3d90",45644:"31587db3",45655:"react-syntax-highlighter_languages_refractor_javadoclike",45664:"befd4bac",45688:"05841abf",45708:"a3a23757",45716:"ec2e8dec",45817:"6f68f3d9",45820:"3ef50eb7",45852:"react-syntax-highlighter_languages_refractor_xquery",45907:"ad7224a5",45916:"fbcdf376",45941:"e8817881",45956:"e0e75d4c",45957:"92867ac8",45977:"789a2e0b",46005:"bfd21d2e",46031:"5eee080d",46039:"a7369545",46098:"27a3eb30",46113:"33656b47",46148:"react-syntax-highlighter_languages_refractor_gap",46155:"67cdfdd2",46202:"5a815dde",46260:"a14ce513",46268:"dca0b9a7",46277:"6dfef0d2",46289:"7cc24991",46337:"6c0c92f0",46364:"189b1efe",46365:"a4177967",46370:"09f1b7a9",46510:"2d1f93fd",46560:"58b7b0b9",46608:"a25104ca",46614:"f061e388",46627:"5842531b",46684:"react-syntax-highlighter_languages_refractor_uorazor",46781:"343b998b",46783:"react-syntax-highlighter_languages_refractor_birb",46885:"b768d931",46895:"f3000fed",46932:"91cbdd24",47009:"26d4c39c",47030:"a1aecbfd",47078:"38cfee2c",47160:"0312cb91",47242:"249b7bb3",47249:"c3e81286",47268:"9c0047fb",47335:"673a4276",47362:"d2dfded4",47373:"81856798",47381:"9aaf6652",47474:"react-syntax-highlighter_languages_refractor_j",47484:"45fe6289",47508:"react-syntax-highlighter_languages_refractor_ejs",47627:"reactPlayerStreamable",47633:"e107c103",47659:"f42ee828",47681:"react-syntax-highlighter_languages_refractor_cshtml",47702:"react-syntax-highlighter_languages_refractor_uri",47747:"react-syntax-highlighter_languages_refractor_monkey",47767:"971a38c6",47784:"35cc95ed",47809:"0905db6b",47819:"47c18f0a",47821:"d01de654",47842:"dfa1c318",47868:"714b46c2",47893:"90160847",47982:"5ecc0e0d",47986:"6556f82c",48069:"617b3977",48073:"ce1419d7",48084:"f01ca2d8",48093:"48723664",48124:"a2a9ccee",48130:"8243d093",48135:"ab490682",48165:"e53b46e6",48179:"c5dc0443",48217:"react-syntax-highlighter_languages_refractor_editorconfig",48260:"ecfe4b02",48290:"1fa82a9c",48293:"359ea0ad",48296:"react-syntax-highlighter_languages_refractor_toml",48298:"3a9eba13",48306:"74a76ae0",48311:"154e5729",48330:"dc72c761",48358:"react-syntax-highlighter_languages_refractor_sqf",48383:"466f2ba5",48399:"932dd2b2",48407:"react-syntax-highlighter_languages_refractor_purescript",48410:"e409a3e8",48447:"8bc64f72",48448:"17fdb443",48466:"1d88f516",48479:"ef68cf0d",48495:"ba008c6f",48580:"57b63635",48607:"b0253b15",48614:"8564442d",48615:"6556f365",48628:"react-syntax-highlighter_languages_refractor_n1ql",48658:"react-syntax-highlighter_languages_refractor_nsis",48699:"3d9ee3c2",48724:"489198f0",48759:"1af51ab1",48769:"fff9a5a8",48820:"b9051fe3",48828:"de04d5f1",48842:"5b72e761",48872:"4f377837",48889:"2204bfae",49056:"a5141df7",49099:"react-syntax-highlighter_languages_refractor_parigp",49166:"ac1c1640",49184:"36636520",49193:"3bfe3344",49240:"095de2dd",49299:"0aa63ed8",49364:"5e57a6c5",49393:"9386137a",49418:"ca542251",49437:"16b624cd",49446:"55750b70",49470:"72190dff",49486:"d8da99b8",49516:"0db32707",49524:"e5928ccb",49558:"react-syntax-highlighter_languages_refractor_nevod",49688:"947f17cb",49706:"react-syntax-highlighter_languages_refractor_jsonp",49708:"85de6f50",49718:"d2e3ede3",49721:"e025d293",49741:"eb2a481c",49775:"59c2f98f",49816:"a4d22044",49826:"278ba6f1",49841:"react-syntax-highlighter_languages_refractor_bison",49910:"9790ecbd",50010:"58f19833",50015:"8515ba4d",50055:"489e804f",50070:"fb9907fb",50079:"2f6b6a72",50086:"dfc0f77b",50108:"08a2857f",50218:"9e78a629",50247:"1dd9bc03",50256:"06820533",50261:"b1918c75",50267:"react-syntax-highlighter_languages_refractor_cpp",50269:"react-syntax-highlighter_languages_refractor_parser",50273:"60a318f1",50355:"10caada3",50376:"459ece75",50429:"react-syntax-highlighter_languages_refractor_squirrel",50480:"c0b3a545",50524:"d7d82fec",50546:"react-syntax-highlighter_languages_refractor_javadoc",50559:"8fdf5cbb",50565:"6252d82a",50570:"b9157fbe",50627:"1b902f42",50633:"7e5acbc2",50677:"b89e34d7",50689:"28fb790d",50720:"b98a3192",50868:"fa0df550",50902:"react-syntax-highlighter_languages_refractor_jsstacktrace",50999:"7ddca44e",51076:"fb9d6a90",51126:"4894b2a5",51173:"1bb6e888",51197:"76aeeccf",51203:"bb5bc141",51230:"dccd5c7f",51261:"beb08ea5",51379:"5050e06a",51461:"e999d2e7",51476:"697b868e",51629:"da23fc7f",51698:"5a59ec38",51755:"acf3467f",51766:"52d9ca0e",51767:"ee41e96c",51786:"88bd1ae2",51853:"862cc2ae",51877:"5e7ceeac",51942:"972d9de3",51957:"b558b8bb",52059:"484cc2bf",52109:"5f63aa22",52123:"9e526c82",52187:"0949caca",52300:"9250359b",52323:"76c74c51",52338:"9cb3eb52",52350:"f430165d",52488:"c81bc7c4",52507:"e0e9c6d2",52520:"c0a1d8e7",52535:"ef889477",52575:"6208b38e",52602:"60075e55",52659:"3ef698e0",52670:"1760de55",52687:"da4a64b8",52711:"9e4087bc",52723:"reactPlayerMux",52736:"82d05188",52744:"1d691ac0",52771:"d61388e9",52824:"1a864cfe",52826:"3a84c761",52841:"f2480ceb",52870:"eaada425",52923:"1a4e325c",52950:"b7dbfcf5",53043:"5e7e9614",53059:"10216bca",53073:"b252d933",53104:"a2ae2293",53146:"react-syntax-highlighter_languages_refractor_pure",53155:"53829f6a",53244:"react-syntax-highlighter_languages_refractor_kusto",53290:"bf6cf1a0",53312:"857c9abd",53331:"1f4447b0",53340:"f2f586ea",53341:"a459382d",53346:"5b8828e9",53357:"c5ccab0a",53365:"1433766f",53373:"33b98b0e",53394:"8904d039",53411:"react-syntax-highlighter_languages_refractor_wolfram",53434:"e418e4b8",53512:"d5427438",53532:"c953d876",53533:"react-syntax-highlighter_languages_refractor_css",53535:"8d4a694f",53559:"e5ca2a09",53577:"d7b89466",53578:"9b1b579b",53633:"1eb9cbd0",53771:"33e591db",53844:"445fc630",53856:"f5330583",53883:"d09b5381",53894:"588bbf84",53926:"0e799f7d",53950:"react-syntax-highlighter_languages_refractor_json",53956:"ab0b233d",54024:"2acc85a0",54123:"ec7105bc",54130:"f856d019",54150:"1b384b21",54154:"9463bbe8",54190:"f7a0609b",54225:"3d9c0803",54270:"b7a87925",54305:"385b7a8b",54321:"985df1c8",54425:"6f7aec64",54439:"13587b6f",54443:"e7754b42",54488:"d5d5b97a",54521:"5b6b73b7",54544:"99e85153",54551:"d18a26dd",54578:"reactPlayerWistia",54583:"3d63fc2c",54637:"b85a9f98",54643:"1526b72e",54680:"5d3c38b9",54779:"react-syntax-highlighter_languages_refractor_icon",54809:"1f0b0f87",54836:"4cce6c45",54864:"4d813ae9",54923:"1331cac1",54924:"b2204922",54941:"2ee7302f",55123:"16cb573c",55134:"d4fd02a2",55172:"b6070a89",55196:"7e597538",55204:"8ddb77b9",55228:"136d1781",55254:"react-syntax-highlighter_languages_refractor_racket",55340:"42891609",55354:"7caa11fe",55413:"51f6fe90",55436:"b5a8b287",55491:"b9ec351d",55567:"d307b2e7",55636:"450ea376",55682:"fd3999a2",55689:"c39b98ae",55740:"654302d1",55759:"c39e9ffc",55838:"39c4eb85",55905:"79aae9ae",55918:"51e54913",55923:"cacaa339",56220:"8623028f",56276:"4c41c9c0",56279:"0eae0f27",56309:"react-syntax-highlighter_languages_refractor_systemd",56356:"a09cde74",56370:"73611494",56462:"d199957e",56513:"db89881b",56520:"456c6382",56649:"de65c9ca",56659:"react-syntax-highlighter_languages_refractor_n4js",56745:"0c8a934d",56786:"b29ba058",56863:"3c251c9b",56877:"26cc18e4",56894:"88ee6ffe",56935:"5ce82fd7",56941:"bf47a095",56949:"733ff2e4",56980:"8051ae43",57101:"3a8bd4bf",57155:"684eee01",57257:"1cee73ee",57275:"2b4792e5",57362:"e1498222",57390:"bf0a32f5",57446:"382e7033",57452:"6d461a16",57477:"652a49f9",57513:"0c4a29b5",57547:"0d31935c",57564:"66e058ba",57611:"1e37458e",57643:"59787bf6",57753:"c541a70c",57764:"ed4087e4",57800:"604cdde5",57810:"e9c59f9e",57870:"0a70c105",57897:"bca99e98",57912:"5cedbb53",57925:"be0253a0",57940:"441d194b",57946:"0ca0b0dc",57958:"7496857a",58004:"9fc89130",58006:"a10a40b8",58015:"34f0c71b",58027:"42535bf1",58154:"fb8d6a8b",58184:"c9f5fef1",58212:"d80f1f80",58232:"296f4fae",58243:"40c229dd",58369:"08a5ee24",58382:"21f8fbc5",58385:"530b174d",58400:"ec9d0c94",58406:"da086284",58426:"7979c47e",58435:"react-syntax-highlighter_languages_refractor_bro",58470:"069db899",58492:"26bd05d8",58496:"cf4e5fc9",58501:"ff95dbe5",58524:"react-syntax-highlighter_languages_refractor_haskell",58529:"ad9e86c8",58533:"115d24a6",58579:"758d3ea7",58625:"react-syntax-highlighter_languages_refractor_jsdoc",58653:"417344d1",58701:"cdfd964d",58724:"4a273e94",58737:"2c52c506",58779:"ccb430af",58797:"d7d61170",58874:"react-syntax-highlighter_languages_refractor_phpdoc",58885:"9db2d1a3",58898:"a1625a56",58899:"0930826d",58967:"react-syntax-highlighter_languages_refractor_webIdl",58988:"a0197bc0",59e3:"60c08eab",59077:"fabd6f9d",59080:"1380f56f",59083:"023fb35c",59121:"807581be",59228:"7b9efe2c",59259:"react-syntax-highlighter_languages_refractor_julia",59267:"bb7fbc9b",59339:"573ce20c",59364:"281af881",59400:"react-syntax-highlighter_languages_refractor_xmlDoc",59416:"react-syntax-highlighter_languages_refractor_wasm",59457:"5716a2db",59474:"2aa88386",59493:"react-syntax-highlighter_languages_refractor_cypher",59572:"b698923d",59595:"02c6cf8b",59613:"b933f59c",59638:"react-syntax-highlighter_languages_refractor_visualBasic",59670:"eed6e9fa",59682:"f6e782f1",59689:"d74ba37f",59693:"6a46ba5c",59697:"136e60ba",59709:"e0f251e8",59720:"0066d393",59776:"ab3396d1",59802:"react-syntax-highlighter_languages_refractor_zig",59811:"362ed32e",59872:"e55a4fef",59893:"d648e0dc",59918:"911d8c7f",59948:"274493b4",59959:"c5d0f198",59990:"dfbdb6e6",60026:"ccd9b945",60056:"8876920a",60060:"71d3d938",60105:"a2c4ea39",60150:"55013e73",60171:"f576c39e",60180:"7caeede7",60233:"082096a6",60274:"ab3a66ff",60318:"12163d80",60372:"59b25598",60397:"react-syntax-highlighter_languages_refractor_lolcode",60438:"4abb65f9",60635:"5b3d51ee",60645:"f1ae2ab6",60661:"e294a72f",60688:"375142f7",60704:"59be7119",60731:"78232d1a",60750:"119b5944",60795:"39d24ba3",60916:"0c5d4dc6",61062:"1a606663",61077:"09df528d",61259:"547da171",61269:"6696da19",61270:"c407fafb",61331:"86ed2047",61449:"f86990e3",61458:"d166fe6e",61487:"5c7abbfb",61499:"e7369992",61538:"5564a6f2",61591:"7999f1c8",61596:"d057c98e",61626:"react-syntax-highlighter_languages_refractor_coffeescript",61644:"443fb58c",61658:"bd0998c4",61684:"60000333",61734:"d4309a19",61745:"7f29bbea",61768:"0850322a",61789:"2ab56b4b",61825:"6fbe6a20",61834:"85816216",61867:"6453f134",61869:"fffa417e",61892:"7e45ec3c",61940:"d6a94e06",61955:"ef005f66",61984:"da1cffb4",61999:"0b966913",62018:"4f27f596",62030:"1edb61db",62059:"c4a1f4c8",62076:"3611c18f",62094:"691ed9da",62138:"1a4e3797",62145:"e7ad37fe",62180:"1433b888",62187:"ad924d3c",62253:"73180335",62255:"00b08266",62266:"react-syntax-highlighter_languages_refractor_scala",62278:"9ce6dddd",62331:"1d525bc6",62369:"ec129530",62447:"f186fa15",62526:"3c615ee9",62557:"595a064d",62586:"64a60d91",62623:"7ee78ddd",62633:"e44e64d2",62686:"85cca100",62700:"react-syntax-highlighter_languages_refractor_d",62702:"84176ea9",62703:"react-syntax-highlighter_languages_refractor_glsl",62748:"ef8a130c",62784:"c40457f4",62798:"d335c13c",62814:"c299247c",62879:"d51139b9",62900:"dd55089f",62924:"8e184430",62926:"424f7822",62972:"ecb76145",62987:"1744d9ef",62996:"react-syntax-highlighter_languages_refractor_kumir",63109:"3b55fa84",63189:"react-syntax-highlighter_languages_refractor_asciidoc",63192:"4e468cb5",63229:"1d6952be",63240:"e2aabbf2",63257:"react-syntax-highlighter_languages_refractor_avroIdl",63317:"3d433104",63347:"67110b34",63361:"65b2603f",63429:"4f305e9d",63501:"6437651f",63512:"c9d00955",63514:"react-syntax-highlighter_languages_refractor_shellSession",63540:"ae8a03f1",63544:"a7684126",63563:"react-syntax-highlighter_languages_refractor_soy",63564:"e8673c18",63617:"f3d53788",63649:"2fe40030",63734:"5c81920a",63778:"fb082bc4",63829:"dc513550",63838:"78fb8ac4",63862:"7508e420",63879:"355cddc1",63912:"7cbcc085",63936:"62c63405",63944:"a2ef8f4a",63945:"f8f774f6",63956:"3ca2f5e8",64056:"9c43bca2",64107:"12750430",64118:"f9d43cd0",64165:"b7928f35",64172:"c63a6bf2",64265:"cb021527",64266:"62dd094d",64276:"01258f32",64322:"44ad1539",64376:"46e3eb97",64405:"2d2846a3",64429:"8b423c88",64452:"3399f83d",64521:"c2e411a7",64598:"7a92f3a2",64625:"3d715aaf",64637:"6932e7e9",64649:"react-syntax-highlighter_languages_refractor_prolog",64669:"e7eebdd2",64741:"f47381a8",64757:"b9037fb3",64769:"dd6e7426",64789:"react-syntax-highlighter_languages_refractor_apl",64916:"react-syntax-highlighter_languages_refractor_lisp",64930:"react-syntax-highlighter_languages_refractor_tt2",64957:"076f04c4",64958:"42358eea",64966:"053cb7b9",64972:"react-syntax-highlighter_languages_refractor_elm",65005:"ee2c6227",65108:"5fe15dfe",65154:"f8c45d49",65211:"72851bf5",65214:"0366a4ab",65318:"102dc9d8",65443:"7f44bfbe",65506:"d0cf869c",65530:"746d0e9d",65541:"cbd403e1",65546:"84c33ac6",65555:"55585569",65558:"aef47f3c",65574:"f017e80d",65584:"b18c5707",65644:"ee60c80b",65704:"4c18ed88",65727:"9a3834db",65747:"react-syntax-highlighter_languages_refractor_antlr4",65768:"10f60329",65800:"d42442ad",65801:"bbaea50b",65833:"55efc743",65862:"b4422cbf",65893:"e84f4d3b",65908:"ba6db769",66051:"4e938852",66108:"4cc3e184",66151:"bbc1526c",66160:"ded3cf55",66167:"8668037f",66179:"0a883215",66253:"e792eed9",66269:"73324267",66294:"b31fc0c1",66302:"b87db3e4",66321:"4796a906",66326:"4c6aea94",66333:"react-syntax-highlighter_languages_refractor_brightscript",66335:"1b8b44cb",66377:"3d855a71",66391:"4c747e24",66461:"0781cab6",66464:"0f5ebe93",66476:"df2e5c06",66498:"991fb41c",66503:"react-syntax-highlighter_languages_refractor_qore",66543:"9ad862d6",66559:"d126772e",66570:"21d4be1f",66580:"d77891b1",66681:"8230e064",66685:"83b030ee",66721:"296c0e6c",66744:"b417c6aa",66785:"06721981",66814:"react-syntax-highlighter_languages_refractor_qml",66974:"d0c584e6",66988:"7c01d80d",67012:"c87c86f8",67021:"af7a29e3",67033:"4792e0e4",67046:"react-syntax-highlighter_languages_refractor_mongodb",67077:"9f6d52d0",67098:"a7bd4aaa",67099:"f2fb7a7e",67131:"4e2df8d1",67163:"93937d89",67188:"19d1e53c",67197:"d317da6b",67210:"3f061afd",67212:"4ac39b16",67233:"react-syntax-highlighter_languages_refractor_mizar",67251:"f2b0b23c",67348:"dd05240d",67356:"6d046fd1",67360:"1bd8ecb4",67409:"e38562d3",67430:"1bef7206",67459:"2355cca6",67463:"8c96a320",67489:"57603724",67507:"1c0e45ac",67509:"97421d25",67510:"ec737569",67554:"01cd3e16",67567:"cb2a4682",67570:"reactPlayerMixcloud",67741:"2c8a0136",67760:"ce85bb56",67775:"808a0f07",67778:"5e1dea42",67786:"d285a603",67824:"react-syntax-highlighter_languages_refractor_unrealscript",67844:"db2b8f72",67853:"a17829df",67880:"react-syntax-highlighter_languages_refractor_sml",67904:"0d9bb350",67970:"c705508e",67984:"f75e9c39",67994:"325894d6",67996:"107641aa",68083:"1368b7ad",68103:"eb9a02eb",68167:"a7695677",68169:"react-syntax-highlighter_languages_refractor_mermaid",68188:"26aa5820",68241:"af69b723",68249:"f964c4d2",68280:"e19e6f29",68284:"3f6c4654",68291:"7f4249ac",68302:"aae300c2",68325:"b3e46864",68405:"ff5e8246",68442:"f6ffd881",68483:"158bfad3",68516:"e755d0e6",68532:"1e5e38d2",68565:"react-syntax-highlighter_languages_refractor_psl",68589:"91808e49",68651:"6e8eec15",68658:"31c91ca6",68665:"react-syntax-highlighter_languages_refractor_excelFormula",68697:"40e8ceb7",68718:"6ab2947d",68755:"react-syntax-highlighter_languages_refractor_bbcode",68794:"f7890f03",68807:"02ef4c57",68827:"26fcf1a9",68857:"28abe367",68887:"a673bf6e",68960:"2374e6f8",69036:"a6fa8647",69057:"ef64c4f2",69067:"c08d19cb",69122:"66dcc4b5",69141:"38603233",69160:"f825d23a",69320:"77950fa2",69347:"b9ea81b2",69405:"950931e2",69418:"5ace20af",69443:"7c7d428a",69477:"4682d2d8",69538:"a924e136",69589:"6d09db5d",69699:"8ea8e566",69706:"ee44e581",69727:"aa4191a2",69739:"2c7448ca",69791:"f42f81c6",69813:"57037ddd",69919:"ee7da673",69920:"3d573c2b",69959:"5e7680af",69979:"reactPlayerSoundCloud",69984:"080a10de",69998:"23fb7a7a",70004:"7ba16f8f",70134:"2b4aad25",70137:"d1af5c8f",70158:"react-syntax-highlighter_languages_refractor_stylus",70166:"e4c53779",70194:"c31124d7",70202:"cf87040e",70206:"react-syntax-highlighter_languages_refractor_turtle",70274:"37af6c2e",70285:"9d8d3b82",70323:"f25eb25a",70410:"8efdab61",70452:"react-syntax-highlighter_languages_refractor_hsts",70479:"df744780",70500:"963b4e80",70577:"072a25fc",70673:"93992acb",70683:"f39fe5e1",70689:"9ecc99dd",70691:"29a327f0",70715:"b7405323",70749:"f26021be",70787:"9fe72ec7",70796:"20bc3b2a",70846:"c86fcd09",70901:"be6ae73c",70904:"react-syntax-highlighter_languages_refractor_apacheconf",70936:"17a70d5d",70973:"20325a74",70975:"d87902f8",70987:"d6c81112",70992:"f9fda3b4",71033:"530f4156",71089:"ee190ecb",71114:"react-syntax-highlighter_languages_refractor_verilog",71134:"a1a74ff7",71170:"82abf28b",71191:"react-syntax-highlighter_languages_refractor_smalltalk",71219:"08abace2",71249:"39ef07bf",71284:"50ae2127",71293:"a8e711ad",71338:"fa5754de",71407:"ab11b089",71522:"c009e0ea",71544:"fadaa97b",71545:"ba53c358",71547:"7e94978c",71575:"ec3d1d8f",71633:"d7155f24",71670:"b0a7cefa",71695:"aac8f64c",71784:"ac393c34",71786:"a9652de9",71897:"42ba7a72",71950:"5b08419b",71975:"cffab271",72132:"ad462f8f",72168:"14ab434b",72194:"1f42e7e9",72213:"511cd196",72226:"56244f75",72312:"5d1b72a5",72331:"react-syntax-highlighter_languages_refractor_sas",72370:"42e26ccb",72373:"8f4dec9c",72444:"4b7797e4",72478:"9c7cc367",72498:"437ede7f",72524:"d8a0d145",72638:"react-syntax-highlighter_languages_refractor_ini",72677:"0a1fbee2",72688:"react-syntax-highlighter_languages_refractor_flow",72758:"6801b6db",72762:"dada8f94",72791:"a75775f6",72799:"5840731b",72825:"8920885f",72842:"09b3005f",72891:"ef25b615",72905:"c493b44e",72923:"d79a09c1",72926:"a830e4b2",72942:"61eef94c",72961:"react-syntax-highlighter_languages_refractor_elixir",73e3:"1d03d6e2",73008:"68666167",73032:"a0dead3c",73078:"d667c0b1",73079:"1afa4d9b",73108:"5d03c6ac",73114:"00fba8ee",73222:"914dafa9",73294:"d2777c07",73305:"f8bc10ee",73314:"60f30c52",73420:"f5d7fbb5",73428:"38ef95cd",73435:"1157c0a0",73458:"9cbcbba7",73486:"b1b6f51f",73565:"react-syntax-highlighter_languages_refractor_bicep",73631:"321aeb62",73657:"7fef1252",73702:"react-syntax-highlighter_languages_refractor_wren",73728:"50c9449c",73740:"b099d865",73764:"react-syntax-highlighter_languages_refractor_splunkSpl",73770:"e5ce14ce",73784:"0461a59e",73792:"react-syntax-highlighter_languages_refractor_t4Vb",73814:"cca22f55",73841:"0707bfdf",73872:"cbff81e6",73907:"cef80e7b",73933:"66ba1253",73949:"6cab2901",73966:"86ea5176",73993:"ac4a5bdf",74080:"60b3a959",74086:"089a82e6",74100:"e3fb89bd",74128:"67ad386f",74139:"5255a2aa",74150:"react-syntax-highlighter_languages_refractor_python",74182:"e8f488f2",74231:"6ba34660",74256:"1424de6e",74274:"7f8a8201",74290:"0c8b9d2e",74314:"8bf21c87",74344:"c6d88f19",74348:"aed1a1f8",74378:"d0943c22",74379:"6f41f982",74394:"9d60ab49",74403:"ea5f7c81",74408:"7ac630cd",74415:"react-syntax-highlighter_languages_refractor_jq",74447:"react-syntax-highlighter_languages_refractor_autohotkey",74534:"a03ea81f",74559:"react-syntax-highlighter_languages_refractor_maxscript",74603:"aa075c5b",74685:"0b7fbfc6",74692:"215406cd",74735:"f935dd10",74743:"react-syntax-highlighter_languages_refractor_typoscript",74787:"2e5f32a6",74792:"7061117b",74859:"23c8644f",74876:"2f134766",74886:"bfeaad80",74906:"1e82b627",74932:"b3bee5cb",74970:"react-syntax-highlighter_languages_refractor_t4Cs",74991:"d9d5a6eb",75132:"99be92e2",75140:"47c0e8e9",75160:"ca95ed59",75165:"e6d88c2f",75187:"e4d42027",75189:"f1eb891b",75242:"b1931760",75335:"e80d6e48",75349:"33a01747",75371:"26e15311",75375:"27870954",75442:"448ddb3f",75445:"01238279",75447:"d2040756",75549:"3a4c81ec",75556:"d71f0f29",75558:"5035f47e",75565:"3cbd143d",75566:"c628ee99",75635:"25f1e45d",75642:"b79043a7",75664:"20b10583",75708:"a75d7931",75713:"5bea5d99",75737:"174f56f7",75757:"a96bf424",75760:"33ea99f7",75770:"32fe2928",75792:"acf18a7d",75817:"f9bd1242",75824:"5f30bdcd",75885:"d5a36a04",76038:"f4eaeb6f",76047:"ac855284",76090:"fc4f0796",76105:"f6ee50e4",76151:"06be8218",76188:"039c2abe",76226:"3a847c18",76276:"3fbbd404",76357:"dc71548b",76396:"1f8a7b48",76472:"c216db98",76474:"b429bf35",76481:"d56578af",76491:"1da04d3e",76549:"49518896",76572:"cb8b67e4",76639:"c1e1acf0",76641:"ab0bf3e7",76776:"5db7fa95",76778:"fa89cb6b",76785:"7fec31e2",76814:"69324566",76823:"51903cad",76840:"b1cc273b",76848:"fefe148d",76864:"aabc0ec8",76959:"react-syntax-highlighter_languages_refractor_reason",76999:"f9182fb2",77012:"43ad3ca2",77018:"95ee5932",77103:"58560ef1",77129:"72d07e92",77203:"832ee537",77211:"2f747fdf",77246:"c982175d",77250:"18288bc3",77324:"a924f441",77345:"5dbc3e8d",77373:"500c065c",77405:"cd2b8160",77445:"8c03fd2b",77471:"15caf699",77583:"5dca5ac8",77595:"3287d369",77600:"e81d0e1e",77614:"ef37accc",77650:"3b20c1dd",77696:"e3f4b308",77720:"4fcab111",77769:"66e4d0a2",77827:"211b51ca",77853:"f4587cab",77884:"f0d0e198",77897:"0c8d97b3",77909:"dd565dd8",78030:"react-syntax-highlighter_languages_refractor_keepalived",78034:"01ab01b6",78102:"9f88a2cd",78119:"97c0779d",78127:"fe55f083",78131:"07141e59",78149:"429814d4",78171:"0418c30a",78193:"dd43488e",78220:"15fe9bc6",78246:"d595705d",78296:"5a321768",78310:"b75244f3",78383:"9196162d",78423:"9496f51f",78439:"e64d5ab5",78477:"3612467c",78496:"f85e5383",78575:"c825b36e",78609:"a5a3f150",78668:"41bc5a85",78707:"34eacc23",78715:"c9c8151d",78856:"96ef95b3",78857:"react-syntax-highlighter_languages_refractor_jolie",78911:"965af625",78912:"d03b7a4d",78948:"6221e24e",78974:"431e05c0",79019:"8fe57593",79048:"a94703ab",79121:"c42c92be",79125:"28e3f086",79150:"aafe3f65",79153:"40c8b908",79189:"61f663f6",79242:"c820015d",79375:"d9992386",79449:"599e1944",79496:"cce13ea8",79532:"3f41baaa",79534:"af02ed74",79550:"9018a0ee",79587:"8284165d",79626:"82261fee",79669:"562762ea",79775:"965c27e3",79817:"797225bd",79824:"e9ecd197",79860:"9c454042",79872:"6c627f70",79910:"3aad441a",80055:"1660a08d",80092:"769f7d2f",80095:"eeb40fae",80139:"7cc2f713",80157:"d3a40c81",80168:"3ba7bdee",80172:"609c778c",80202:"abf5f816",80210:"2d6fa985",80218:"cda840ed",80239:"03c9f6fe",80292:"8050bc23",80346:"5c9d290a",80395:"5fc14df3",80445:"b5c55420",80449:"d65ccfad",80466:"1eb2e24f",80497:"076004cb",80509:"7e5bea7d",80517:"3746de72",80534:"a50a13ae",80535:"react-syntax-highlighter_languages_refractor_icuMessageFormat",80555:"47230c70",80614:"c91f1151",80625:"c31963e0",80722:"221a6728",80762:"79045086",80818:"eabd393d",80869:"e0f7d826",80877:"00c4c653",80921:"7d17e27c",80925:"1cbead02",80945:"44d9bf36",81018:"713c2b65",81126:"react-syntax-highlighter_languages_refractor_bnf",81133:"3ddae676",81182:"8592fd65",81215:"2622e14f",81252:"47b9c082",81253:"88a9b244",81285:"47472e67",81374:"react-syntax-highlighter_languages_refractor_chaiscript",81477:"81ce0256",81478:"b2d999b4",81523:"c6574ca3",81551:"4c13e417",81557:"f05f9002",81562:"f4fefb2b",81571:"842166e0",81587:"91f3db67",81647:"8d33dcef",81648:"6c5accb4",81689:"7d72dd5c",81690:"6f93b87b",81722:"2971748c",81739:"5f024599",81755:"7ee98428",81810:"dda8c5df",81833:"7b60984d",81845:"react-syntax-highlighter_languages_refractor_rest",81872:"28f63a4a",81876:"42c11118",81898:"ebe41efc",81899:"d71698ef",81920:"57412de7",81934:"e2949224",81940:"a427a491",81949:"4f2a7d1e",82089:"5e6a4890",82168:"e6648f6d",82169:"a57147ed",82261:"21745da0",82301:"a1ba0919",82312:"334af7bc",82387:"8c27e6c2",82405:"326287e5",82451:"194d9b3b",82465:"react-syntax-highlighter_languages_refractor_hlsl",82507:"0dc9b583",82509:"d63c2992",82537:"fd07ea8a",82561:"0bb24080",82697:"1587a16c",82723:"f335c91b",82737:"90cb823e",82751:"0bae03b5",82757:"react-syntax-highlighter_languages_refractor_tsx",82760:"87d435e3",82778:"be9ef770",82795:"react-syntax-highlighter_languages_refractor_perl",82814:"df688f1d",82948:"e094fc64",82957:"react-syntax-highlighter_languages_refractor_opencl",82996:"aa62adf4",83048:"6478aa15",83050:"2b10be0e",83056:"75d5b163",83249:"ccc49370",83254:"97ae6104",83294:"react-syntax-highlighter_languages_refractor_ignore",83319:"de015d47",83358:"8e0713dc",83362:"c3895984",83379:"a9d2e8b9",83458:"c71bde62",83501:"a78d6057",83519:"a8b251eb",83523:"a2bcdd9c",83526:"c5c4bba3",83537:"bb84d213",83556:"864105da",83571:"0703c8c0",83607:"15512226",83640:"ca4529ab",83660:"react-syntax-highlighter_languages_refractor_wiki",83705:"9e428f80",83748:"39ebe4fc",83750:"react-syntax-highlighter_languages_refractor_roboconf",83795:"688acf31",83816:"d7100e0b",83854:"2a3cbeba",83953:"554cfdc3",83964:"663de6d3",83972:"418e8cdd",83995:"15f74a0f",83997:"eb00eaeb",84002:"26b1b7c2",84028:"9068f0c9",84072:"b47ca0bb",84075:"c83612e8",84085:"4d7d3c38",84114:"68a59ac2",84142:"6991b80b",84164:"9b71048f",84165:"react-syntax-highlighter_languages_refractor_regex",84266:"15740554",84357:"fbca3986",84379:"002be5e5",84380:"react-syntax-highlighter_languages_refractor_kotlin",84508:"654d2c12",84512:"98f063ad",84599:"fa456b95",84604:"819c3599",84612:"7e3f713a",84618:"1b4c64c4",84630:"b9818803",84651:"950ca165",84694:"7728e7fc",84715:"d002a117",84799:"5392a2e7",84805:"2f565d80",84813:"6875c492",84814:"react-syntax-highlighter_languages_refractor_jsTemplates",84844:"9a5e78a1",84849:"15b007f7",84860:"8a011b37",84878:"3467b599",84911:"react-syntax-highlighter_languages_refractor_xeora",84940:"17ff4779",84983:"react-syntax-highlighter_languages_refractor_oz",85004:"a8ff281e",85038:"a6cf45db",85084:"f746b020",85118:"4a0c5286",85256:"react-syntax-highlighter_languages_refractor_arduino",85261:"9b16476c",85270:"370dd6af",85274:"65755be8",85296:"6294ba83",85335:"8011422f",85393:"238169b7",85421:"6ba05eba",85498:"294e2a7e",85541:"7ede7b6b",85601:"492894b8",85611:"c27bd714",85659:"452c2877",85672:"069d7fe6",85756:"eb0636f9",85761:"bb6de43f",85764:"756af54c",85807:"e53e3689",85811:"ea94acda",85901:"348e6255",85904:"5e406cff",85919:"12ef6b22",85931:"f43dccde",85960:"4b2beafe",85974:"5594002f",86066:"8a00ea0f",86097:"797518a2",86100:"react-syntax-highlighter_languages_refractor_iecst",86118:"react-syntax-highlighter_languages_refractor_haml",86304:"c9cf9c44",86312:"af4da409",86314:"react-syntax-highlighter_languages_refractor_puppet",86350:"c4ffec93",86394:"42bd8841",86439:"377aa359",86445:"2310845c",86536:"34039198",86611:"0c2bf8fc",86629:"10ddb313",86632:"14bbc827",86660:"react-syntax-highlighter_languages_refractor_vim",86682:"3d8f43a6",86688:"acc0ad9f",86691:"85bc4ade",86741:"e678c393",86761:"5694205a",86810:"71573d8d",86817:"react-syntax-highlighter_languages_refractor_velocity",86843:"3407173c",86874:"a3aedac7",86887:"reactPlayerFacebook",86916:"react-syntax-highlighter_languages_refractor_markup",86943:"react-syntax-highlighter/refractor-core-import",86958:"0b5b0129",86973:"b5683a3f",87009:"afec6c99",87026:"27ba3f26",87037:"179b0f27",87076:"b379fc0c",87088:"7bbde89b",87107:"c3dfaf41",87154:"caf73bf9",87168:"c690545c",87195:"ab18489a",87206:"a39047bc",87229:"fd7b20c0",87351:"react-syntax-highlighter_languages_refractor_json5",87384:"94a5927b",87393:"d065cd71",87394:"react-syntax-highlighter_languages_refractor_latte",87401:"c7658393",87403:"43acd4e4",87475:"14d25af5",87492:"434fdd5e",87623:"a46c8e03",87745:"b00f6a85",87797:"03809716",87801:"b5e1a6cc",87826:"57b87c5f",87851:"3009ed69",87852:"dbe0daa0",87864:"36f4dc34",87940:"fd40cf15",87952:"1cb5f507",87977:"9b002a17",87995:"7bc6d53d",88002:"4e800307",88047:"b791d8b9",88049:"2782d49b",88062:"501e4372",88156:"cdcb48bc",88190:"9f968b87",88196:"b49e047b",88224:"0fa0f141",88289:"f3840267",88307:"f716fabe",88352:"d406b88c",88379:"19f2ca6d",88434:"315ddae4",88449:"91f294be",88471:"36dfd3db",88514:"ac2dfd5f",88606:"18329464",88648:"63526b32",88670:"f9f47e39",88764:"29cb98a3",88813:"react-syntax-highlighter_languages_refractor_ichigojam",88866:"acf65e43",88906:"6588b4a3",88961:"cd36e440",89118:"8f3b4fe1",89136:"6aef6f7d",89200:"93ff6d8e",89202:"78db2db6",89207:"fcc80eb3",89228:"b4a53a7b",89274:"075a80bb",89315:"a0867ff0",89318:"ed119645",89345:"a0a27c6d",89359:"b8b5bd65",89374:"9ac62244",89401:"7667205a",89434:"39a0d842",89451:"89dd2c88",89523:"react-syntax-highlighter_languages_refractor_sparql",89536:"react-syntax-highlighter_languages_refractor_smali",89562:"6f2bec23",89653:"3e6c110a",89749:"fe94516f",89767:"11417f40",89788:"4f32aa66",89810:"28916d1d",89851:"0da678e3",89870:"570e864f",89883:"fe7fc6cf",89886:"f8877092",89901:"86d2b86f",89906:"9f20da83",89907:"react-syntax-highlighter_languages_refractor_bsl",89922:"a9188981",89925:"e4d1727b",89951:"c3047722",90135:"c22d2964",90156:"67750132",90189:"3ea95164",90211:"9263e0b5",90251:"a5d56b83",90268:"eb04b82b",90271:"5f80341c",90352:"d0680d38",90398:"641851e1",90428:"b9fc7718",90453:"4ac2fc34",90469:"aa8810f5",90476:"4d5a290f",90566:"e08a3998",90577:"84b4b0f0",90618:"07049aac",90638:"1ceb8501",90660:"fb46656d",90738:"d752a24b",90841:"25cb628f",90891:"69177293",91017:"1d3aaf79",91022:"67be0d90",91060:"react-syntax-highlighter_languages_refractor_apex",91084:"3eb7155c",91116:"06211346",91156:"react-syntax-highlighter_languages_refractor_gcode",91157:"ca4f381f",91222:"5058ca96",91230:"18e33524",91261:"ec22d082",91273:"eecc085a",91285:"c5c0b0a2",91322:"1441d32f",91323:"5a817b84",91375:"bf8d3126",91440:"4f5e4689",91501:"bee41f69",91545:"2ea21f12",91650:"a7b05e0e",91694:"38fc2797",91812:"dc5b7d00",91818:"97804c8f",91917:"1370da59",91974:"fdf73d72",92038:"react-syntax-highlighter_languages_refractor_autoit",92051:"87cf2e7f",92208:"react-syntax-highlighter_languages_refractor_php",92224:"react-syntax-highlighter_languages_refractor_jsExtras",92279:"react-syntax-highlighter_languages_refractor_t4Templating",92281:"react-syntax-highlighter_languages_refractor_hpkp",92310:"react-syntax-highlighter_languages_refractor_peoplecode",92325:"fe79fa06",92349:"94614d42",92353:"a63ec547",92357:"f3b9af56",92441:"d6d40f1a",92618:"70596a0e",92634:"34b5b841",92669:"cd85436c",92674:"e97676a8",92817:"a1c66966",92837:"3fb9fa74",92876:"4f07da2a",92878:"2ab6ed1b",92917:"5dc012c4",92941:"204c7f3a",92965:"00fcd487",93022:"e06a2e19",93043:"5a8284fb",93083:"f4a1322a",93125:"fdbbf13b",93134:"react-syntax-highlighter_languages_refractor_cfscript",93154:"react-syntax-highlighter_languages_refractor_go",93176:"31d83792",93209:"e753b790",93222:"a7b14b44",93260:"caaec321",93292:"3cb117e5",93306:"962f4cb5",93322:"35cd6961",93345:"1f01eb18",93453:"b7085b68",93594:"c1ffbd90",93621:"697b9cf4",93643:"8f5b2368",93683:"51fca4bb",93702:"8b14a28e",93750:"605113b7",93792:"84e6b9d1",93873:"106ef2cc",93895:"a87414cd",93896:"54f66e43",93905:"740d3abe",93908:"25199571",93918:"46b3a108",93931:"ff527a96",93943:"react-syntax-highlighter_languages_refractor_jexl",93992:"00680038",94002:"c6646684",94008:"c78e98fe",94099:"993cbf44",94136:"f9908443",94161:"3aaad431",94188:"47dbd172",94221:"be97ed8b",94297:"009100d0",94347:"fbf3b537",94431:"3ef996ea",94445:"533fc6b0",94453:"1821984a",94458:"6382a988",94471:"dd3a9da8",94536:"619cd51f",94544:"cac821de",94575:"1692cb21",94707:"aa959c31",94708:"2a184061",94715:"react-syntax-highlighter_languages_refractor_nasm",94731:"5b9a485d",94736:"00861925",94753:"react-syntax-highlighter_languages_refractor_processing",94768:"5363c4f1",94792:"1f67da4f",94804:"react-syntax-highlighter_languages_refractor_clojure",94828:"b6b3bb02",94882:"fa73b103",94950:"329ca26a",94987:"0f2fc92d",95026:"721813e2",95030:"a8ab55fc",95134:"366bfd22",95142:"06932a2f",95215:"4dfc54b0",95247:"a313a68e",95301:"d17d2a45",95356:"e39b329f",95373:"58385753",95391:"4df2e0be",95534:"5133cdf6",95551:"a342637f",95570:"react-syntax-highlighter_languages_refractor_mel",95593:"react-syntax-highlighter_languages_refractor_vbnet",95611:"react-syntax-highlighter_languages_refractor_actionscript",95700:"b801efaf",95754:"ccb1a797",95758:"8c923ee4",95790:"1f1225fd",95808:"6fec4aa1",95861:"e706ca3e",95897:"900ddb98",95910:"1156b798",95924:"cc7b7b9f",95927:"0311d3aa",95930:"2505d713",95974:"3d2a3a69",95999:"2936973e",96040:"fbc6c0d5",96052:"e7a82fd4",96064:"5917d54d",96184:"7d4f5762",96240:"bc91b8f4",96242:"cbbeb50f",96355:"636c6fa3",96385:"741edb4c",96388:"6559a382",96421:"93b756d6",96491:"7fa2298a",96514:"react-syntax-highlighter_languages_refractor_bash",96540:"ef44e405",96553:"937a6729",96593:"react-syntax-highlighter_languages_refractor_cmake",96604:"546ceb2f",96614:"f7965b57",96641:"react-syntax-highlighter_languages_refractor_q",96656:"4fcf0eb5",96663:"bfff7bcf",96750:"50db9164",96754:"95453379",96758:"f5eb0920",96776:"43cf978c",96915:"2303af1d",96946:"576cc9a3",96952:"c32d4a95",97e3:"be4d75bf",97007:"5187626c",97013:"36fbdcf0",97089:"697a5b17",97133:"7e9f6be8",97139:"2ac672d7",97160:"3350d1a4",97202:"f12d2f88",97297:"e41c387a",97351:"5954047d",97395:"87c52fcf",97446:"abe07a54",97458:"reactPlayerFilePlayer",97569:"5df541c2",97665:"07b21e7b",97804:"cac4c78d",97808:"b3505693",97811:"89b17141",97830:"e1bfd502",97872:"4d66e8f2",97880:"5daa4f35",97915:"569beb23",97933:"620b2e0c",98006:"2192572e",98095:"f294f0d5",98099:"44c0224a",98156:"react-syntax-highlighter_languages_refractor_latex",98169:"773afb13",98197:"aa3eb5cf",98228:"c777415e",98236:"d7666a50",98256:"ba463a9e",98275:"24fcab19",98407:"80d3668c",98465:"e765c54e",98472:"0918c6f4",98478:"1f300caa",98490:"react-syntax-highlighter_languages_refractor_xojo",98544:"bfb60894",98547:"d73d93a1",98581:"935f2afb",98602:"06815ac9",98633:"e3612ae5",98686:"1c027cd1",98745:"a8744008",98771:"1d5da270",98789:"dfa48919",98916:"11a54fde",99024:"ad6ca35f",99101:"react-syntax-highlighter_languages_refractor_brainfuck",99106:"830e770a",99126:"05da603f",99173:"694b99cd",99321:"ced11bf8",99340:"31533b35",99365:"280b35a1",99390:"76b93c25",99417:"1bad822d",99434:"f3496af0",99435:"d10fc7b7",99444:"ebea1b63",99458:"906e876d",99497:"109f5de4",99510:"react-syntax-highlighter_languages_refractor_swift",99575:"46bfa3ae",99580:"06be3ded",99631:"af9dc836",99672:"3731f685",99686:"bc15071f",99692:"3c11a2f8",99693:"9fb6a754",99774:"ed3431e4",99812:"react-syntax-highlighter_languages_refractor_cil",99858:"17e561ca",99957:"f168a6f0",99998:"212df811"}[a]||a)+"."+{27:"d34ec164",40:"a351bc02",57:"5116a9f3",241:"91b838a7",242:"87091ebc",264:"80ba297d",280:"3c2bba6a",286:"826a586c",288:"c79676e2",408:"109caf5f",460:"535a5d2b",558:"6f94f0d0",563:"32f79a56",564:"02c6f38f",579:"5bd8fbd1",582:"09ed949e",591:"e488739d",628:"6230ea7e",631:"8c10676f",742:"ddf447ef",920:"2351d782",949:"fb1d88cf",979:"ebe3df29",1057:"d50c3051",1058:"02c03603",1059:"6f658d83",1062:"52447627",1100:"4f5d218d",1193:"d67576fa",1286:"9d6757ad",1330:"0dd21680",1332:"8b8e3792",1375:"93942aa6",1405:"3a352cd9",1447:"801c0e96",1451:"ff338613",1499:"ebf4cbcd",1530:"624f6e31",1536:"eb2cdaf9",1538:"8de3dac2",1551:"427bdef1",1554:"bba3d71a",1568:"c715f6a0",1644:"c693b787",1683:"cc5eb156",1719:"d3d1a2d3",1728:"4d2bfb85",1766:"ea63fcbd",1807:"ac20b77c",1811:"746f1429",1874:"1e9abcdc",1901:"bac579a6",1927:"9b36532d",1939:"77598615",1941:"1dccf763",1973:"7714b1ab",1987:"aedb026b",2071:"71e0982e",2078:"e6009317",2119:"160cac64",2145:"b4064e4e",2169:"18429eb1",2206:"2768fc6d",2237:"b68871b7",2272:"b8dc56ae",2274:"fc61c7dd",2280:"8e95ec46",2328:"d4c9b777",2337:"5f6372b3",2383:"2c8d2eae",2385:"5c2932db",2416:"033d6454",2419:"26edbdb1",2468:"6730c062",2473:"7678da69",2517:"29d82a39",2549:"9522d4d0",2598:"cfd46873",2614:"394681d1",2665:"69c951eb",2666:"518c1ef9",2690:"78e94ca5",2814:"76d1bb13",2824:"78a2223c",2834:"5b68deeb",2964:"69e21527",3132:"70ef11bb",3169:"460f3718",3247:"5597c0fb",3258:"6fa5c8aa",3291:"8a39fddf",3358:"ac9cc5b7",3375:"71d1aea2",3392:"588965c9",3401:"1bb4f803",3407:"0097f14b",3472:"3336688e",3506:"4ae57f0c",3519:"765065f6",3540:"8123639f",3688:"e64dcca0",3694:"25f794b1",3733:"5d487e0f",3769:"c1f3ad15",3782:"73fe86a4",3874:"fdc6722c",3882:"c2061da9",3909:"21b2cfda",3921:"dab40cf3",4019:"bae65a41",4100:"1d590b82",4105:"bc443d11",4167:"5d079690",4226:"ff983834",4247:"9734c776",4262:"09422f75",4266:"508bd70c",4289:"55a02c2f",4295:"3a84307a",4311:"a2a77ae3",4377:"493c63f1",4400:"3d51ddb5",4426:"f2a99d27",4450:"bd5bcaf7",4469:"75c1a87a",4732:"6c71bff3",4836:"83d3df4b",4866:"b310fbe3",4881:"bdb19994",4954:"775faab1",4957:"827a5311",4987:"a8b72d13",5031:"777c1970",5133:"fd7dc1f9",5208:"b5f486ba",5263:"b062c022",5265:"401948c0",5281:"eb5fbfb6",5314:"5c7a4727",5407:"db47013e",5427:"9b0b5bdb",5511:"8e0e8e89",5521:"7491bcfb",5529:"5a763e08",5538:"d09d7399",5615:"4a5dc887",5655:"b46adcd5",5659:"839d810b",5664:"5a6ab61c",5672:"b4893e58",5674:"f1c84209",5716:"274e6f8b",5717:"d33e5698",5719:"e7b889a0",5779:"b39b455e",5838:"09800b50",5864:"dedddacf",5889:"8a57d3a7",5928:"5552cdf6",5963:"9fe88f5a",5989:"3ff05c51",5999:"775d23ef",6051:"a4d96d2b",6057:"fb0e4b6e",6094:"f5f02356",6124:"484bbec5",6129:"cf589559",6135:"c80de3c6",6141:"df37d0ef",6167:"0f7e0bc4",6262:"1609305b",6268:"0a7a5d5a",6294:"8637dc55",6334:"83725018",6344:"ddeed74d",6347:"4b879029",6351:"73d03237",6361:"1e61565e",6385:"a0ab8b06",6394:"043d9855",6405:"52aea5b1",6425:"6a30a07a",6438:"d3f1252e",6463:"8d881975",6476:"6b6cc2c4",6483:"97ea99a2",6497:"51be32fa",6511:"78c8ddd0",6531:"85add5f7",6550:"494cc961",6804:"6621886e",6812:"941af3b3",6815:"af2ef978",6839:"25cbe22a",6845:"02f3a891",6893:"f96442ac",6944:"baf3b280",6955:"83fc6d21",6999:"591796b4",7048:"d4100fd8",7052:"4794cb52",7109:"09c86149",7114:"34dabc01",7131:"a4ce0aa2",7139:"f010f2bf",7207:"505854a4",7231:"d9b3b344",7237:"a9e7f946",7261:"6fc8d15a",7269:"13b8022e",7273:"5fe7feac",7276:"46c399ca",7337:"4d7e051e",7371:"c81b5e13",7442:"712f02b2",7454:"e8bc9e53",7457:"11a1c8fe",7482:"1247086f",7508:"a247c0cf",7556:"a02e55d2",7562:"dfbec39a",7587:"288b18d8",7605:"f3874d6c",7616:"d5941e34",7642:"d28f9158",7674:"701e48ea",7686:"e69b280e",7726:"5e488c64",7752:"8985bedd",7765:"02eac481",7802:"c9c4e266",7808:"24702e8a",7814:"c8df4624",7818:"4aeafc24",7854:"5bb07363",7911:"628a5162",7959:"46abcf44",7984:"7bc53db0",7989:"0c23ea9d",7996:"67e6aa01",8022:"feb22a74",8047:"77e582bd",8061:"d5033178",8091:"791db314",8099:"baefeccb",8145:"62a8da0f",8209:"fb0bf3c1",8285:"58fd5501",8330:"a27718d5",8336:"dbe52ad4",8345:"872191f3",8374:"7f6d665d",8404:"adfa4a27",8417:"aa431b2e",8463:"36a08f0b",8515:"2a914255",8519:"b39814cc",8577:"cbe8c2cb",8608:"332b8969",8662:"1abcfeba",8679:"a00e3d06",8764:"c37afbb5",8787:"b16505d7",8837:"d2946986",8872:"dd9e3eb3",8875:"347ac997",8878:"c6c89356",8948:"fee3482b",8967:"77afc57b",8987:"73e94627",8989:"7a48202e",8995:"e8feda6c",9054:"c7635050",9060:"fbdb8c63",9110:"7220a0e5",9122:"ad5e0b15",9147:"8899419c",9149:"c05a716d",9240:"f2c00d78",9301:"d24b08d6",9349:"2ae97452",9379:"39904bdd",9450:"c205970b",9469:"f88b8c45",9481:"76fc322c",9504:"e245f1b5",9587:"584d8627",9631:"ec3d1c9a",9647:"05947a12",9691:"9e1c67bb",9729:"b10079d8",9771:"17164394",9777:"0e549eff",9784:"f64c0f04",9901:"4fe2f60e",9979:"d22484fe",9982:"59b4c299",10016:"30aa308b",10047:"679dcf83",10092:"137f5ee3",10119:"b1aef171",10126:"d16d1404",10153:"7510c28f",10178:"51440250",10204:"8afc14ce",10292:"5dc4b223",10313:"ca6d1e0e",10319:"170e2058",10323:"cde2bd66",10329:"08b3f0a1",10357:"b99bf46b",10365:"9ecfc04a",10371:"4400905b",10378:"6dfcd02e",10387:"6e119aa9",10414:"721272d3",10418:"8f7fdd68",10428:"8880b810",10488:"3958595c",10593:"7c61f8cd",10614:"e036bead",10622:"b7d3766f",10819:"efdbb041",10864:"eed4e3ae",10921:"6cc1f559",10953:"2586fc7e",10981:"c8ab6459",10999:"753ed2c0",11005:"e96dbcb2",11031:"7259a360",11048:"62aa623a",11072:"5678028c",11074:"b75319ca",11220:"98caea76",11253:"ebcb68ff",11342:"bfa3f8a8",11384:"ea9f14c8",11404:"0604a668",11406:"d88313d1",11460:"9a032363",11482:"064f6829",11505:"4dc70b8a",11519:"4240a231",11530:"7db9af50",11543:"2b46797d",11546:"c79d7d21",11605:"4b22d932",11623:"549a4448",11663:"3699ad67",11675:"9dc0b7f1",11679:"c62b7e03",11681:"52703f5a",11695:"82122478",11707:"e57c621e",11717:"dc9183d0",11749:"9716ad9d",11768:"ae8e2de6",11770:"bf1e0cba",11800:"db16eeee",11844:"c47e27cc",11848:"52122bbc",11852:"83144b8d",12042:"211c5d5a",12101:"849c27b5",12102:"d105eef6",12111:"70e75845",12138:"d15c1b77",12171:"8ffdd967",12205:"0c451536",12266:"eb715d53",12333:"5b6cb10b",12352:"281ab563",12387:"05514de3",12424:"3cf0f7ce",12490:"f4f91433",12494:"22c05d9c",12547:"800e54d6",12569:"473e65a8",12581:"83a1ae92",12609:"a47b72f3",12630:"1595396a",12690:"99703bb9",12748:"d84e330a",12762:"af14a870",12772:"1f21a6cd",12801:"5227d694",12820:"a6c2b331",12892:"b81ff364",12898:"7ac38f2b",12929:"c47074ad",12948:"642ea3d2",13065:"e6f8a38d",13094:"6a30406e",13142:"7a3d91c4",13151:"5c6a7db1",13160:"24243022",13198:"82e7ecd5",13260:"258199c6",13268:"f7931595",13277:"7d85c71a",13347:"622592f8",13360:"cf14d0e0",13371:"cc4db9ba",13407:"5b39b641",13438:"1efb19b0",13440:"2cd60272",13486:"c6a455e8",13506:"bd6ee61c",13517:"72ffe0d0",13518:"fc583cdd",13554:"e5688b96",13559:"4314f3ea",13582:"6dffc709",13637:"8ec979d6",13648:"dcfa025a",13690:"c9fa826d",13734:"480d761f",13749:"1d38d8ad",13784:"79a71d67",13804:"ba792943",13876:"39d87cce",13883:"a5d9b9f0",13911:"d5daac58",13927:"6664c789",13979:"e09f7b91",14e3:"db51d480",14106:"5e2d2439",14118:"6ac1e08e",14156:"c0dd417b",14207:"292b91ac",14339:"abead64e",14351:"db1a1d04",14360:"4c1eadbe",14363:"3cd912c6",14387:"c68fecc4",14485:"a02fadd4",14519:"b75bfe88",14546:"24decc16",14556:"3aaabbc2",14586:"f2be4692",14616:"667905b3",14664:"4140fc78",14672:"618c4595",14676:"f5415278",14679:"6bd6d478",14751:"a9ccdf6b",14752:"652f8874",14771:"f2d5b962",14780:"5fb02a85",14790:"2b244749",14793:"a84cda17",14825:"3848280f",14886:"5e08f31a",14944:"b4642915",14957:"f1e969f3",14981:"338e5b59",15028:"864b275e",15080:"d6defe72",15113:"147b4efe",15121:"27ec9c41",15161:"cf1356a2",15174:"e0a7abb5",15191:"6a115dd6",15203:"30e6fea5",15220:"63a6106f",15277:"8bc57568",15291:"6eec101e",15300:"a579374b",15359:"f44bf23a",15408:"243179e4",15410:"3c8f6eb2",15463:"2b406e1e",15468:"dca62bb4",15477:"1da6143a",15494:"c73c734d",15620:"317ee9f9",15634:"95940bd0",15676:"f113c653",15728:"2aa7e7ac",15758:"fb75db86",15767:"36ec717d",15783:"5cf50e17",15857:"aa9f3eff",15873:"7219a06c",15934:"d9f40b2d",15971:"45768d9c",15972:"767bb773",15987:"970fac1a",15992:"604425b6",16039:"6d63dd18",16079:"4e479c19",16104:"9984461e",16120:"c3a45101",16144:"ceac4e96",16152:"4cc2ec62",16168:"32c1ae52",16194:"6b013920",16208:"beebbe20",16221:"fc6bcff7",16299:"25a87659",16305:"c9207cc5",16323:"5a2992ea",16328:"83ce50c7",16396:"27d94455",16403:"9366ffe5",16412:"236c7205",16451:"3498d0df",16458:"31514f17",16490:"5a2fca10",16512:"bcf6de50",16539:"afb30379",16550:"1f7a4079",16587:"9b715bcb",16671:"41b63d99",16677:"d1a8686d",16708:"77e6a977",16745:"37ce0f77",16794:"e97bb138",16822:"429eb749",16829:"7fcc9315",16834:"6927371e",16872:"55fed6a2",16934:"2a98d444",16942:"bffe56cc",16949:"17e39150",16993:"7b81edff",16997:"c01826e5",16999:"5c9b26f5",17029:"0d1d967d",17031:"a73a6349",17071:"613bc2f0",17148:"a4bb1633",17208:"81167bbb",17261:"906a517b",17293:"25437d8c",17320:"f84f488a",17407:"bd87bd57",17417:"897e2730",17419:"21402a45",17495:"7c0d0755",17517:"f1e3c5a0",17529:"dce86a07",17535:"2a2f40ab",17553:"faf68ff3",17570:"e3e20130",17573:"bb4af02a",17595:"726ff22b",17610:"4ccd78f4",17645:"96f7b9b3",17692:"04ebcb22",17696:"a251b3d9",17735:"5b0c3beb",17742:"b7573312",17765:"1515e4eb",17780:"1b64923c",17857:"4fc98b8a",17858:"2fc3da44",17912:"041d0f25",18003:"a7accbc7",18060:"5b07679b",18067:"6d6f2512",18094:"71a01b09",18102:"1da22c85",18124:"165f7201",18155:"8e3c8cbc",18205:"ab529798",18348:"67cb9763",18353:"7c22fedf",18369:"4d072ffb",18381:"874f84df",18401:"6b113479",18432:"03ee2ea7",18438:"29870749",18446:"6c29ff97",18469:"46475b1c",18494:"6c97468c",18497:"7d766d08",18505:"8284ff16",18549:"75f93b8d",18553:"fbca3e91",18607:"8055ad0e",18615:"69a05b56",18621:"eb11b752",18630:"a053eebd",18701:"e8a973f9",18705:"4e4fe6cf",18716:"cf04f340",18724:"f1ee3a90",18725:"eeafbc84",18754:"c45334b2",18840:"5d472188",18867:"247f33b0",18884:"1fd0c7cd",18886:"431f5516",18993:"7a255867",18998:"9ac45b95",19013:"13f570ef",19048:"0bca7852",19054:"aa70207c",19072:"64be1dd8",19074:"01af1317",19117:"cf3d189a",19166:"2853e2ce",19196:"2f136140",19211:"45819b4b",19366:"64a87f24",19488:"10765360",19559:"0abce808",19569:"9a055af5",19636:"9990ef1a",19657:"3b443953",19667:"10d0da80",19688:"6d0f52d0",19741:"22ed677c",19742:"4dce8e2c",19751:"487b431b",19789:"268ab4bd",19802:"8634c57d",19836:"06933f04",19848:"4fbed34f",19909:"bae0f7fb",20031:"f36f1bec",20036:"f10575c9",20060:"19007353",20096:"dcdec052",20101:"96d9dfcb",20154:"611b3c0c",20156:"f5374fe1",20192:"cc7193b0",20209:"1780a2ea",20247:"9cbee776",20345:"f2abedb0",20382:"bb6eabf2",20405:"0444e152",20416:"35e3cbb9",20451:"dc586398",20452:"e6d2c06d",20473:"2ba3107e",20504:"052bc74b",20557:"43f69061",20600:"1039a2f5",20712:"fe38c2d7",20714:"369a54a3",20715:"29f79c4a",20724:"d1a2f08d",20731:"f4424ab1",20738:"0ee94b30",20804:"3ea75034",20813:"9dae10ae",20833:"0d60999c",20891:"d0d93c9d",20913:"d5345066",20925:"b022baa5",20926:"39aef705",21012:"841e3c58",21099:"986a6625",21110:"00c94db8",21163:"56737120",21176:"75ed70ac",21193:"dc461e33",21202:"a474f178",21233:"69714eb1",21269:"bafb8744",21291:"2b6c8e8b",21302:"5e985511",21317:"31f5fb10",21328:"d8210d58",21353:"cf11440c",21385:"c3d1e3fc",21398:"c56afba6",21472:"ee6c6e95",21510:"0687e42b",21610:"22aa3fba",21658:"ae40e781",21689:"f9de7acb",21724:"75d68e79",21740:"39b2161c",21754:"55f0118b",21760:"197ce163",21826:"412d98a5",21890:"06e4aef7",21910:"d1a1d322",21983:"bb3e9a45",21987:"6172d1ad",21997:"94d3b154",22021:"e1e058f9",22047:"4e393b39",22060:"6e27b814",22066:"539a670a",22110:"0c9a4ae4",22125:"cb82b461",22130:"56c2a7fd",22134:"bd942ab0",22269:"f891f74b",22295:"d0a55e9c",22297:"1cede99c",22300:"46107e54",22311:"c4c46763",22315:"a2344639",22325:"966e3483",22330:"5ccfbdbb",22336:"569ff0d8",22337:"bb513e51",22489:"dc7d7787",22507:"58e712c1",22508:"0f350680",22585:"3342d146",22628:"8b052e3a",22649:"109651bf",22680:"0ec6639e",22710:"18bf9d62",22711:"9d17c8a2",22734:"ea55fdc2",22809:"142d0f48",22823:"c2a07736",22883:"ddc79150",22972:"451da933",22976:"cffc2170",23029:"d2b0e957",23043:"21ce38e9",23076:"77bb0ea1",23159:"e51773b5",23180:"eab02e26",23207:"8265e0e2",23224:"1f3044df",23231:"a6da0975",23267:"3a7ede15",23281:"f6112d14",23300:"4925a822",23361:"c11a4f73",23405:"a4b009f7",23406:"ce625322",23410:"ee1c11c8",23414:"a9f65c0c",23417:"241e376f",23616:"9e194cc6",23625:"6e492f98",23664:"3ac88a59",23686:"5081f6ed",23687:"97be2732",23706:"b213f76d",23750:"ff64984c",23771:"adf9102b",23775:"3d22000b",23826:"bff597e8",23835:"089f83e4",23877:"7d33df39",23880:"6ccea553",23887:"7af2030e",23932:"5f9b752b",23943:"9afcc961",23944:"f91f7a63",23983:"74686d85",24050:"7740b9ef",24073:"dc73af26",24104:"38a6059c",24175:"8194709b",24221:"f9d7e697",24237:"3043e31b",24265:"1b5db099",24275:"619641ea",24422:"8383ee07",24426:"e7e853da",24429:"7decdb4b",24430:"92d31e55",24439:"9d567299",24504:"7e86fe48",24550:"98216c58",24560:"d34758be",24561:"63b8806d",24646:"e2ab245f",24659:"2e30e25b",24758:"95cf038f",24812:"368cee6d",24824:"c3f143bc",24830:"bf8db0fc",24852:"6e90e2a1",24887:"867f7aa1",24890:"2df25261",24903:"bff356dd",24908:"7706087c",24934:"a26a5062",24994:"7d12b1ef",24997:"487b4d7b",25020:"57cbcd14",25035:"e6af8f39",25060:"2a4fbc43",25114:"4451f30f",25173:"7735f373",25175:"d8cfaf53",25219:"d0d8c265",25266:"195c4391",25287:"18187897",25292:"09960898",25315:"0a3a8ea6",25333:"b7c47548",25342:"61af2add",25397:"1f2fe9a4",25419:"6e2bad15",25445:"d34f1dc0",25473:"0f7c942f",25507:"813f83ff",25535:"f0d1fa1e",25547:"f3664a4b",25559:"7e3ede8c",25586:"17a23e14",25590:"27b35d93",25601:"a185cef8",25661:"d187985b",25733:"c210d3a5",25845:"4e20c13b",25891:"2c31f546",25930:"1300e8c1",25962:"daa110aa",25963:"478ca622",25964:"a80504fb",26023:"74f3e56d",26060:"129faa85",26169:"c113120d",26173:"f8f5952d",26184:"9e160905",26190:"2b16eaa7",26196:"75e47b10",26228:"cf288e77",26246:"773236c0",26257:"252aadb3",26259:"b80bbcea",26277:"1c12f156",26285:"a25feb6e",26303:"9a4c8758",26396:"f23326fd",26421:"703408c3",26426:"24024d25",26514:"7182a37d",26520:"1b8e970c",26614:"12c45e20",26835:"b3e704bc",26869:"ecac45dc",26876:"782ca673",26878:"42041bc2",26887:"80ab946a",26894:"3c2ab02f",26918:"f72961e9",26996:"d9260871",27030:"f18e7255",27056:"33950894",27165:"4b5d8476",27202:"2a6426f9",27209:"748b6e63",27341:"24367f4b",27349:"789d845e",27435:"4788e62e",27443:"99e5bef6",27446:"ead5f4f9",27510:"48c5c295",27515:"dd4799a7",27517:"cfa9132f",27530:"8684d7d9",27534:"9a0440ad",27559:"02ca474e",27571:"06a757d0",27601:"2f633972",27615:"4267ac34",27629:"7daf5538",27648:"2ca7f855",27650:"3d1103c8",27659:"1f257b55",27705:"69af597a",27716:"2f6e8fda",27727:"911db210",27788:"918788e7",27812:"4b0248b1",27822:"5c127101",27868:"f12276f3",27893:"6deb6abd",27899:"17ae2255",27902:"27826539",27912:"ed4fc731",27945:"e23f304e",28002:"2809c061",28079:"361e9c0b",28141:"c1772786",28145:"90b57941",28164:"c6b368b2",28172:"832d5275",28236:"ec3f2068",28311:"3081eae6",28462:"3afbfb7b",28494:"c2cc5745",28603:"97e454e0",28617:"b6364919",28650:"85f2c91b",28676:"d1b54ca3",28680:"fc31fb6f",28687:"3d981c2d",28706:"838ba10c",28734:"74f1e415",28763:"46963f37",28783:"6e5a6166",28789:"9d94faa8",28801:"1ea6fca9",28985:"b653de74",29017:"98f8c88f",29050:"8f862a39",29084:"a375c3db",29158:"74ce6564",29221:"eaf4c953",29336:"85a1eb1a",29419:"afcd9a80",29442:"eed76622",29478:"95aa591d",29504:"a0e9d03c",29511:"493d183d",29548:"0590bc7c",29583:"df94aa60",29595:"3fb23750",29615:"10b7a8c1",29627:"1b682bfe",29706:"fb7830fb",29804:"04544044",29810:"944b34fe",29855:"337c6215",29887:"ad2e65e8",29934:"bb0c1f06",29976:"9fd40b70",30005:"7eee7911",30023:"1baf0843",30087:"d0bfad91",30109:"bc0321db",30130:"704cccb0",30201:"eeb0df0b",30283:"c3966305",30320:"52e5f4fd",30325:"f23c4fdf",30333:"2033d359",30336:"452a3586",30355:"33fc88b7",30370:"1cf198a0",30413:"1f7cf626",30438:"052ef4f5",30443:"b65bc63b",30453:"ba76ae43",30483:"1fa169d1",30504:"f9d37c27",30601:"0ad63464",30640:"c0a68024",30684:"53f18519",30713:"f859f89e",30727:"9281133b",30741:"1feccca3",30751:"4dcea176",30755:"d2b2dc6f",30764:"095c318e",30794:"29dcdf16",30815:"965a4323",30857:"b891aedc",30888:"c389599c",30893:"57a136f7",31002:"50dd83d9",31138:"6887b389",31142:"cef21b8b",31209:"f349a579",31234:"afaf3d4e",31239:"4ee1ec0d",31243:"83b1f186",31302:"f7802a9c",31309:"f052de85",31316:"45904d9f",31329:"b70dd865",31374:"677b76e4",31393:"434b8aee",31443:"989def1f",31469:"83921600",31502:"1ea929fe",31547:"8e25b6cf",31556:"b32dc094",31622:"1f9827d7",31660:"d5f19f4e",31717:"ead4a476",31726:"7e55c8ab",31738:"c3a7dfe4",31768:"3ee9da9e",31822:"b377bd64",31836:"91d5f3b9",31897:"5ad31f57",31948:"c9d67c00",31992:"9c50d3bf",32057:"d89c7b36",32058:"7959728d",32168:"cd7d3de4",32184:"43037903",32185:"ab40f516",32270:"d0200982",32272:"7893f264",32300:"03d5568c",32314:"ba14daad",32319:"f6dc8f1d",32358:"b806a747",32384:"bf592f7d",32402:"a69c6793",32415:"5c120789",32431:"89070e21",32547:"1fe39a70",32564:"86403c2d",32566:"ee5fdd74",32597:"de3e7d70",32619:"79cb4292",32648:"2be99e52",32664:"8e5465e9",32687:"da3c3e48",32698:"6d73689c",32723:"f9e4669d",32742:"3d90752e",32752:"9e9afc06",32768:"f26face6",32803:"fa9b02d4",32857:"b0cceb04",32886:"ca40a727",32917:"2b4b9752",32928:"a02d9fc2",32944:"025fe3bb",33153:"aefced7f",33246:"7754d5a6",33281:"3d0bcb48",33320:"24f77b9e",33333:"79af560c",33401:"a36459ac",33493:"91bb1e0b",33504:"d339f857",33539:"b2bfaba0",33550:"88eed5d2",33589:"a7e5e712",33613:"b3be66e4",33621:"d4d3b485",33656:"c2208d7b",33709:"7eee8139",33760:"bc3d9820",33777:"9b77adc0",33799:"85571b56",33824:"c75028de",33835:"d2572075",33952:"2f7aee0c",33974:"e2ffad17",34048:"ae9388e3",34075:"6f9b95ec",34090:"af04eb52",34093:"a26eba22",34097:"ba697ed0",34118:"9e300092",34336:"8cf3d5c7",34341:"7fb84ebc",34387:"35525d39",34399:"4569ede0",34453:"dab4e89c",34475:"df0039b1",34483:"931e3959",34490:"b2ed92df",34521:"796d01d5",34531:"7be26788",34559:"be386985",34563:"05c5987d",34582:"0c59ded8",34656:"7563a977",34672:"d6072240",34678:"81f26af6",34681:"2ad25294",34747:"d5c7c216",34754:"91d0d368",34796:"74a29577",34857:"b9b7dcac",34903:"6393b66d",34924:"009a3c93",34929:"0fcee9f2",34939:"78c032d6",34967:"030b1f8b",34983:"01289235",35008:"ed4c0871",35016:"21d4acfd",35063:"3ec5f2b0",35077:"8fb7bf25",35106:"6184334d",35150:"8fcf0c5c",35209:"77e198b2",35238:"114e65f9",35267:"c649b68a",35306:"fe8cfc40",35317:"f2ea942f",35397:"54b8df09",35414:"77ca5697",35447:"b25b44b3",35475:"27a74a51",35491:"b3a03eb7",35562:"0f924d75",35603:"3636047d",35703:"86617bc6",35785:"3389112c",35805:"6518733f",35806:"7cb08c93",35827:"f486d15f",35837:"a61d0231",35860:"452dd4b0",35870:"fe43ee8c",35884:"0074fb2c",35920:"04f878ba",35966:"f447b492",36020:"0ec28cf3",36029:"4fc1afd4",36030:"bfc6d71e",36033:"c26896a9",36103:"f4779e53",36137:"c5ee4909",36195:"4877e423",36198:"bc4ee48b",36211:"88c6a04b",36212:"0b971a60",36225:"9dafed74",36227:"2f9d72fa",36242:"61599100",36258:"0274ab1f",36268:"76791714",36278:"ea4f6e79",36321:"6158bbe6",36332:"6e287ed1",36353:"bc689b49",36388:"1bff827a",36477:"6bc6169d",36491:"ddc205f1",36499:"01996096",36509:"d0c6e281",36526:"5a85b76b",36537:"1ba8ddb7",36559:"d0709efb",36575:"f7b048d3",36617:"49b6823c",36628:"7d750230",36631:"81d7b08d",36652:"44b987c6",36715:"25dd9316",36787:"58c79659",36861:"10a7be5e",36871:"8d6fa6aa",36938:"993e8232",37003:"e88f9806",37019:"319cad9c",37037:"34203290",37044:"f242508f",37107:"819fdbdb",37115:"44a3f0b8",37130:"a0434973",37171:"64b74f6a",37191:"954141e3",37195:"477c2c54",37228:"9ded0229",37242:"be3793de",37249:"6e735272",37282:"a6efe989",37322:"f35fdb65",37349:"a6aea374",37361:"777821d1",37382:"2f2ffd0c",37387:"f2004445",37399:"18d7c461",37410:"13f744ff",37425:"ddc9fb22",37495:"2a2bd192",37539:"60964466",37572:"e9604178",37581:"3271583e",37614:"146c3c8a",37636:"d8cedc73",37643:"16151a28",37654:"530ed361",37661:"e1cb235e",37705:"faea974b",37711:"349abdbe",37717:"a2f3cbbd",37743:"51419bf7",37841:"f18231d2",37892:"24bcce6b",37904:"d0fe704f",37907:"d670bf28",38070:"cbeb3ad4",38075:"240e8984",38081:"d6854678",38099:"aec076a9",38131:"d0f594e4",38154:"66b5f103",38234:"8464832a",38300:"6fd08c18",38308:"dea12cfc",38329:"d0dee650",38339:"e51c4c50",38386:"ad55590d",38403:"431c4a68",38413:"94e03100",38478:"35845c4b",38500:"f5ed5323",38550:"12e513e4",38561:"3a987144",38584:"8a1be1ad",38588:"6bede74a",38621:"c4c9a6ac",38674:"c3ad8e7f",38724:"11162d58",38725:"59bdc533",38749:"afd1fbf0",38773:"9ef3adb0",38791:"ef82ada5",38809:"0b714fed",38963:"ef54d4ea",38964:"5345f83d",39047:"5249876a",39059:"a0e21b8c",39094:"0378abb4",39147:"d1dab514",39174:"96a7c221",39229:"a9ebd2d0",39230:"cc2187f0",39245:"e0edfd9b",39294:"93c27e2e",39322:"34e44ce8",39428:"c74e5676",39430:"b205d438",39604:"8b6ed74a",39713:"b98ebbb7",39730:"13b9ca47",39775:"7e01335d",39865:"c02344e2",39868:"5220859d",39869:"8b7e0e06",39876:"c1a9f7da",39920:"87203e72",39922:"4f5cda61",39964:"265d70c6",39975:"d14dabe7",39991:"cda244e0",40048:"25a1df27",40080:"528b064c",40109:"74f9af4a",40170:"56bca77f",40175:"11c0f64d",40256:"e78b3f50",40269:"b76aae85",40314:"137adab4",40318:"01d836e8",40341:"1256faa3",40370:"e1d72d94",40458:"060de88f",40494:"5a07931e",40510:"fc72a133",40543:"ad0afc4c",40550:"fea53c64",40578:"f25d1b42",40587:"bf93bce1",40653:"a0a95326",40675:"6209be41",40676:"9349faa6",40756:"01449c0b",40757:"b407ed59",40765:"d1588f46",40771:"fca45640",40844:"233597b7",40881:"9bfed876",40883:"79f66b52",40886:"5bca45d2",40904:"3833315f",40925:"810ab3b0",40956:"acead7c0",40973:"8a8fa7c3",40999:"f7ae509b",41029:"a7e5190b",41125:"57bcb09c",41162:"116e1858",41196:"519b6813",41209:"ae344497",41237:"726db651",41250:"649b3bea",41278:"91bb601f",41310:"d71fb03f",41355:"c25655f7",41418:"9fc0fbae",41438:"4645d488",41462:"4b0e9248",41484:"0e7a4a66",41533:"2d6cbc5a",41550:"f1572b54",41557:"72466c7e",41695:"519737ac",41763:"f66a5f91",41783:"ba3caf62",41787:"f20fb2ec",41841:"2674e1f2",41870:"3188b0aa",41883:"8270cc3a",41899:"a2efdb55",41953:"19d68f9a",41997:"c3590c3d",42014:"ffc02a0f",42098:"e70c0bf0",42117:"c8714aa0",42129:"40a0f910",42131:"af892435",42258:"af6abe77",42371:"1f761de3",42374:"a2fe448a",42534:"f2ee6b52",42542:"4341beb7",42547:"af8237cf",42585:"981b7702",42594:"d1d5c7f9",42649:"82369ccf",42674:"42e5beba",42700:"11d50568",42706:"23f04c4d",42779:"d309e438",42850:"90cb0a6f",42875:"dcd8c52f",42916:"9aa51f23",42939:"498985e5",42947:"dc56f9d9",43065:"c2536897",43082:"e64146a9",43171:"8dc3e56d",43203:"931532da",43205:"24c888ef",43244:"1ac528c2",43246:"db389b0a",43253:"634d71b3",43311:"7e6749a9",43362:"420e979e",43371:"9966648d",43373:"5088d0d1",43384:"e0a56302",43385:"5f4f457e",43396:"626467a7",43399:"ac1fb935",43415:"ac688034",43447:"d39316a2",43492:"f7addd6b",43512:"fd07a4f0",43518:"9cb72bdf",43588:"2418a4b8",43628:"9b17224b",43657:"64fc9870",43702:"2f156ab5",43725:"90b46f84",43774:"01bd3c66",43784:"b8185bcf",43864:"bafec862",43867:"54596720",43875:"08a3d4f3",43923:"914e3ecb",43929:"aa8b3031",43966:"80668a8c",44e3:"b7bb807b",44071:"9e19d3ae",44164:"144df47c",44174:"7e2822f3",44189:"23518eaf",44226:"ba5e745d",44263:"2b3908be",44284:"afafdbd5",44315:"7bd12f0a",44321:"889593be",44335:"62e02984",44367:"4c712d44",44416:"2fb51a21",44422:"c5c3a7e8",44485:"d384a434",44498:"411da4bd",44572:"59ecc215",44603:"69273b3b",44613:"b9a1fc0f",44728:"a11c5cf4",44760:"96b744e9",44840:"a7a65400",44843:"fa2a09e8",44928:"0ac55e52",44991:"53e43ac4",45006:"a272f4d2",45020:"73d635de",45041:"8f2e48a3",45086:"f6d1bd5e",45131:"3a2801fc",45134:"cc638d8e",45165:"095167de",45168:"a99733a1",45219:"576e5a61",45362:"95699e49",45377:"ac514ff0",45379:"7ef914fa",45391:"dcb133aa",45399:"4e966d3e",45421:"9e205c88",45424:"265e962d",45457:"ec9ba4da",45473:"895507df",45482:"ff248a99",45538:"1bba7572",45562:"a208377a",45578:"3e83b313",45595:"582caec9",45605:"c09920c2",45615:"a7ea28b3",45633:"51d456f0",45644:"4a9291a0",45655:"14779ef4",45664:"12718341",45688:"10290a7d",45708:"df9c3e9a",45716:"e7ec2a20",45817:"cf523dd5",45820:"e92885f6",45852:"acd0ac6c",45907:"78aa7335",45916:"040645f5",45941:"26451c1c",45956:"ca81926e",45957:"5c9188d2",45977:"5475735b",46005:"9a68e792",46031:"604a289c",46039:"7d9e6078",46098:"d2e18b32",46113:"3d854413",46148:"b3d7b0de",46155:"f89f3a4d",46202:"39a86dd2",46260:"27869024",46268:"03972b1f",46277:"d3c75e48",46289:"57db7039",46337:"09c3766c",46364:"64a9f1eb",46365:"233fec7d",46370:"5084cef7",46510:"1109fefa",46560:"d920e1df",46595:"6afa156c",46608:"7c098479",46614:"852fab3e",46627:"a2bf0238",46684:"a82c0354",46781:"dde8b77a",46783:"4793b138",46885:"0e96179a",46895:"54441443",46902:"c579d688",46932:"8d369f4a",47009:"3a0f5544",47030:"441fafe1",47078:"842d3e00",47160:"12a01a4b",47242:"00df98e5",47249:"565eb4b2",47268:"d7443dfa",47335:"b32ae4af",47362:"5d1aa00f",47373:"44fd28c4",47377:"6fbab280",47381:"e712a43c",47402:"14b0676d",47474:"84e4adaf",47484:"74441851",47508:"31c28e34",47627:"32ded912",47633:"5c6e179f",47659:"5e6db92f",47681:"b5e14c74",47702:"0d5b0328",47747:"65f95d1d",47767:"a0117192",47784:"01d39286",47809:"e3131e4b",47819:"84b5e0db",47821:"203e2240",47842:"85c3dc2b",47868:"f1ee7ec7",47893:"20965c52",47982:"99a7d78e",47986:"76a0b717",48069:"85944796",48073:"edd6357a",48084:"f3510b9d",48093:"fec4bc9b",48124:"42b9e661",48130:"88376735",48135:"efedf740",48158:"4baa6a30",48165:"8f2aa48e",48179:"7fbb5a1e",48217:"ca819fab",48260:"8e9d396d",48290:"c0eac4d1",48293:"6b30a8c0",48296:"3eaa9001",48298:"6ec527ec",48306:"344fce42",48311:"00e2952e",48330:"08a9b4cd",48358:"bfb3f8f2",48383:"59599efe",48399:"4e4d9607",48407:"8026224c",48410:"ebb3677c",48447:"7eac031e",48448:"0aa192bf",48466:"714ac436",48479:"9ec65d9f",48495:"603ff377",48580:"c3ed6bca",48607:"ec55d17a",48614:"96963040",48615:"c2490bf1",48628:"a819c2f8",48658:"6d0ff423",48699:"7deedb6c",48724:"c3fca443",48759:"30a3aaa4",48769:"4b4dd3b4",48820:"4e97a704",48828:"23af81eb",48842:"92d849d0",48846:"7f978081",48872:"95984d7f",48889:"47e77177",49056:"1fb352bb",49099:"39341e37",49166:"902c339c",49184:"e44bb9f8",49193:"ceca4887",49240:"d96b42b3",49299:"9b85f523",49364:"0bfd7a6e",49393:"d8abd2fb",49418:"0c90af20",49437:"0ad50fa4",49446:"785dd448",49470:"d18b7f81",49486:"383a98bb",49516:"425b7665",49524:"692dc28d",49558:"7975dc6c",49688:"744caa1a",49706:"dda9f3ed",49708:"9d938f47",49718:"dd672da6",49721:"306827fe",49741:"d31410ee",49775:"db9b7943",49816:"b5bf4221",49826:"c6d75c42",49841:"60d73090",49910:"0842ba47",50010:"50b7ad81",50015:"41bf28ca",50018:"0cc207b0",50055:"e34b5018",50070:"ebc04168",50079:"f83ad25d",50086:"e37bbde1",50108:"34d3a649",50141:"273852d6",50218:"0afeeee0",50247:"210b8ffc",50256:"35c20263",50261:"f7558b8b",50267:"17761e19",50269:"742c1ae0",50273:"94511b45",50355:"e550524f",50376:"34ce20cc",50429:"cc94c87b",50439:"9fc3e7d6",50480:"f3bdf147",50524:"6647dc49",50546:"86df8b4e",50559:"ca6c09f5",50565:"a61310b8",50570:"2884ce34",50627:"8ff13f95",50633:"560f7c92",50677:"8b9d8319",50689:"88c7d302",50720:"c0066bcd",50868:"85cb2570",50902:"e03d9d86",50971:"b92a9eba",50974:"a5e82f88",50999:"6f0fcb31",51076:"259b8fb4",51126:"0ff629ff",51169:"48072014",51173:"08c2ec1a",51190:"43df367b",51197:"28a34fe8",51203:"1116db95",51230:"7480e344",51261:"362b6fbd",51379:"de7bd1e2",51461:"40a9c7b9",51476:"c545f0a0",51629:"d0e22db1",51698:"5dd9cc50",51755:"be4a35a2",51766:"93528fac",51767:"d24a7e01",51786:"b915f47c",51853:"5d016660",51877:"8dd1677d",51942:"0718e41d",51957:"9832f210",52059:"b0df50b7",52109:"dc7ea1f9",52123:"557df2a1",52187:"f7d7486d",52300:"cf101347",52323:"d3cb7902",52338:"de0790e0",52350:"9b273b8d",52488:"773d4cd4",52507:"7322cde0",52520:"6ccad9c5",52526:"b725cc54",52535:"8e990b8d",52575:"b266f10e",52602:"29de6057",52659:"86e70c19",52670:"c317f64a",52687:"5de79398",52711:"3d116f0a",52723:"423ca666",52736:"8a4777ee",52744:"7b9e263d",52771:"6d26ee2b",52824:"afb198bf",52826:"76090f40",52841:"5af92830",52848:"7562c4c1",52870:"c2e21c28",52923:"6fc42c6f",52950:"8ca9bcc9",53043:"38223208",53059:"c4d638fb",53073:"487693fa",53104:"c04e0788",53146:"ea828c13",53155:"4129932b",53244:"f578ff8b",53290:"af091327",53292:"96d0a125",53312:"0f186301",53331:"5e84d856",53340:"4097f37a",53341:"30935ebd",53346:"55e5b7ca",53357:"241b6b4f",53365:"6f6582fb",53373:"91c6aad5",53394:"8384aebe",53411:"8774a5e9",53434:"d1c139b4",53512:"d20bfd00",53532:"37544aa8",53533:"76a1cc99",53535:"e9cd8180",53559:"740a8912",53577:"31540c14",53578:"bfd576e9",53633:"5c4253c2",53771:"93860438",53844:"aa75fdcf",53856:"ca385ada",53883:"bff31bb6",53894:"8e47431f",53926:"de603a71",53950:"84ba9415",53956:"d0f0b813",54024:"df98640b",54029:"11f5f269",54123:"c4520d33",54130:"098bef22",54150:"61e13fa8",54154:"7cf1c986",54190:"06833098",54193:"eb9834da",54225:"0a2779e4",54270:"15345bec",54305:"13d8084c",54321:"894bfac0",54425:"f1728919",54439:"6de048b5",54443:"a63ab836",54488:"b769e69f",54521:"5504a5cb",54544:"617e6e39",54551:"f204d9da",54578:"253d3f50",54583:"5723cbef",54637:"3fe35d8b",54643:"cd927121",54680:"c158223a",54779:"b94ee155",54809:"c08e5849",54836:"6707a7b0",54864:"2386b6a6",54922:"3652ed82",54923:"2107447a",54924:"6c52afbb",54941:"90a52bfb",55123:"ec1a3d54",55134:"e0b52941",55172:"c07b2986",55196:"a37b1dd9",55204:"15716f94",55228:"288fa0da",55254:"b7b5270b",55340:"78d2ff6a",55354:"a152e9b1",55413:"ff62c67f",55436:"e172296c",55485:"7bd1b6ec",55491:"a6638880",55567:"2a95fa3e",55636:"a5aa0aeb",55682:"9246371e",55689:"09d9d45a",55740:"0830982e",55759:"01b018e4",55838:"37de2d14",55905:"c347394e",55918:"4693c2ef",55923:"3ffb42ee",56220:"bd8a49bd",56276:"4191d6bf",56279:"ecd3085e",56309:"a9da11de",56356:"8dc9ef2e",56370:"ec714623",56462:"02112908",56513:"09b22a52",56520:"93365c14",56625:"ceede442",56649:"14d4b922",56659:"9e87a307",56745:"611036d2",56786:"0f09dcfc",56863:"32f045a2",56877:"3e1ae19d",56894:"52cc1d74",56935:"927debcc",56941:"eb389b06",56949:"102dbd4f",56980:"fc11d413",57101:"088251f9",57155:"cc70e41d",57257:"3879f582",57275:"ae3ab0a0",57362:"f26f2272",57390:"c0e53158",57446:"4fc90169",57452:"546bb636",57477:"10233ec8",57513:"613ac3ff",57547:"e3c9ab3f",57564:"55c021f3",57611:"7eb39fd3",57643:"7458f2d8",57753:"eed32bad",57764:"d705a57c",57800:"15e4a013",57810:"e7c6e869",57870:"c67af506",57897:"7c32370d",57912:"cb0508a8",57925:"c02d0794",57940:"a16fce2c",57946:"c44984fa",57958:"df7a98d4",58004:"ffe81add",58006:"d6894bcc",58015:"e79aa0cc",58027:"cfbf6449",58044:"3e0e95bf",58154:"08ce4465",58184:"1aea3255",58206:"1c161728",58212:"091f767f",58232:"a26eed96",58243:"6dc1cd12",58369:"6b9ba505",58382:"e641f9c7",58385:"5dbd7430",58400:"7392dc20",58406:"8b37d413",58426:"2319a0b5",58435:"f857d982",58470:"d0c6948d",58492:"3a20cca9",58496:"5252dba7",58501:"4229e504",58524:"22e98ee9",58529:"961326c5",58533:"08d998cb",58579:"b1b91ad5",58625:"0a380ef5",58653:"a0dba71f",58701:"2cdc9013",58724:"114f98b6",58737:"9bc9fe3e",58779:"0d5493c1",58797:"e86f8e89",58874:"b13d0811",58885:"8c4a3ee6",58898:"d1acd975",58899:"5b8a8dc6",58913:"c65f8e72",58967:"f3c901fa",58988:"bd4ce82a",59e3:"fbd59af0",59077:"ee9a57c7",59080:"ee8989d5",59083:"841d571d",59121:"87e2701d",59228:"78eba025",59259:"4715751b",59267:"216b88f4",59339:"2d9de54f",59364:"c9360b84",59382:"b1ad8564",59400:"5af91d09",59416:"017461da",59457:"c9fb0c4f",59474:"e528a326",59493:"840769f4",59572:"c4007ed8",59595:"f1f4f2d6",59613:"f28cac78",59638:"0b909d14",59670:"3f10ce92",59682:"bc978bbd",59689:"94c4b554",59693:"4c6de799",59697:"9b4d75ef",59709:"c6409c27",59720:"3714f07c",59776:"4d92a863",59802:"52c1ab99",59811:"b05cfb27",59872:"c6ecaef9",59893:"dcbe723f",59918:"1eee6eda",59948:"6a5932a4",59959:"de588d38",59990:"23901892",60026:"41de3a87",60056:"e2ac539a",60060:"1c436ea7",60105:"2ee53919",60150:"29aba023",60171:"7469d085",60180:"71334370",60233:"bfbf2212",60274:"e27ee736",60318:"15c74831",60372:"b1b0a460",60397:"1bc49c5a",60438:"b34259f7",60635:"44dc1a56",60645:"4ef99546",60661:"8a96d3fa",60688:"5ec14497",60704:"90b2b630",60731:"c9229ae2",60750:"834cd4b9",60778:"cc1cdb72",60795:"36c560f2",60916:"87576958",61062:"aab6e6d0",61077:"c31b8a17",61259:"46d017ed",61269:"897f257f",61270:"c3a733c9",61331:"1d57a24c",61449:"8aa651c6",61458:"f80f46ae",61487:"29686f85",61499:"f719ffad",61538:"acf4d9b8",61591:"5e73ddc6",61596:"77525ee1",61626:"48611794",61644:"60fc3f60",61658:"277dc6e6",61684:"6efa4c68",61734:"b5b1dfea",61745:"4c51952c",61768:"beaa4d99",61789:"d0ca8832",61825:"f2cb9072",61834:"42185c28",61867:"a0e79556",61869:"ebede6e9",61892:"c20c8982",61940:"3b0ee62d",61955:"dfcbbf89",61984:"01d2ce10",61999:"fffe1be2",62018:"b42db897",62030:"1040c30a",62059:"f010e11b",62076:"2b00cb7c",62094:"2b82e463",62138:"31575f96",62145:"ab856f7c",62180:"8e1145ee",62187:"c0f68e50",62253:"1bf1a5c2",62255:"62acf222",62266:"676c5246",62278:"9089af14",62331:"5d248d31",62369:"11e95251",62447:"3264731c",62526:"d14f22b2",62557:"df213ab0",62586:"78e410de",62623:"f7ed8668",62633:"7dd77d65",62686:"3cd1e58e",62687:"11b635a0",62700:"fdec2fb7",62702:"9d5da39b",62703:"96b1572c",62748:"6f9e458f",62784:"e436be44",62798:"c8af3fde",62814:"f9c3a20e",62879:"fc8cfab8",62900:"75122b47",62924:"6daa82f3",62926:"00bf505d",62972:"29d9c000",62987:"e6b34a1c",62996:"bb0cf4b4",63109:"671e1d10",63189:"25c96fc0",63192:"29d37c34",63229:"b3a68d3f",63240:"b890018c",63257:"35f75eac",63317:"5f1e21a1",63347:"2d124931",63361:"1fa12f99",63429:"3d22d2e5",63501:"ef63cae1",63512:"c26283ac",63514:"e51c84a0",63540:"61eae021",63544:"05289179",63563:"017896e1",63564:"5ca344a8",63617:"6a6fde8c",63649:"0a89ca4f",63734:"1ac315e6",63778:"6400fe77",63829:"6ba5afd1",63838:"eb4e1392",63862:"edc34497",63879:"ab5045ba",63912:"fae87fef",63936:"b7a15a5a",63944:"2a31ec88",63945:"3c2458bf",63956:"cebb2612",64056:"cb543e86",64107:"189a68c9",64118:"abac6c96",64165:"8846a08b",64172:"cc0edf17",64265:"1050b9f7",64266:"c4342f50",64276:"9c7265e2",64322:"7d148a53",64376:"fe1a6d23",64405:"d9383e24",64429:"9dcdadc5",64452:"3b6240e3",64521:"321f81c4",64529:"41072dc9",64598:"a1aeb6cd",64625:"fe62a71d",64637:"9c2326d1",64649:"7f2f88dc",64669:"fdfacdd1",64741:"021a7235",64757:"bc9ca086",64769:"81c04deb",64789:"4d50968a",64916:"5f093dc2",64919:"1240e175",64930:"9ff828ee",64957:"e1ba8ad0",64958:"24abad5f",64966:"baf77fab",64972:"ed3f25b5",65005:"75d2def7",65108:"8f95e2f0",65114:"23aec1e6",65154:"72e3569c",65211:"4d74abdd",65214:"5e6c7e3c",65318:"a80c7485",65443:"ce8b61a4",65506:"3ddccb98",65530:"656b050b",65541:"0dffffc3",65546:"57c2acea",65555:"d99e5c1b",65558:"a4b55c48",65574:"bb141238",65584:"70475e69",65644:"5d77f0d3",65704:"89dba324",65727:"d0ff560d",65747:"3ec8b33a",65768:"1c68f290",65800:"236b3f90",65801:"dc2e29e5",65833:"a4cb71ef",65862:"af229597",65893:"a3adee34",65908:"97993a3c",66051:"fa3da376",66108:"e7b89fd8",66151:"3394d7cf",66160:"0adb59b3",66167:"91d3a6c4",66179:"8d57ae65",66253:"b5b26990",66269:"2bc3bbbd",66294:"9390948a",66302:"4b40f118",66321:"b92ad632",66326:"9eece9e8",66333:"96450da2",66335:"4eae4374",66377:"30897d20",66391:"a4be0364",66461:"4bdda241",66464:"2a305622",66476:"6f4f79e0",66498:"c9f2a7fa",66503:"c48629fd",66543:"d5950500",66559:"68796ef7",66570:"3e99ecf9",66580:"7d059a92",66681:"ff430538",66685:"6ae9bfe4",66721:"66596f4e",66744:"bbda848f",66785:"717328ea",66814:"d0de25fc",66974:"16b10332",66988:"1f6b8c39",67012:"089efb54",67021:"eed006be",67033:"af0184db",67046:"f4bc5c7d",67077:"68c528fe",67098:"9b40671d",67099:"0bcf502a",67131:"d7d9fe6e",67163:"2f87dc44",67188:"bf932ba2",67197:"79975bb2",67210:"15ea0648",67212:"66c7c237",67233:"84d01164",67251:"cf469778",67348:"dfb49dfb",67356:"3a0a7fcf",67360:"f9701fb5",67409:"23e8b00b",67430:"63e81897",67459:"04cf5c99",67463:"3289104c",67489:"71739b12",67507:"a216d309",67509:"48120f47",67510:"a8aa4ba3",67546:"91ba4455",67554:"8f8d7eb2",67567:"950ca1fd",67570:"ce4c2a4f",67641:"56a3380c",67741:"665626bd",67760:"38ed92a1",67775:"f81e0a42",67778:"165df2eb",67786:"3ad44ca1",67824:"96b52760",67844:"48851b77",67853:"921879d4",67880:"f62bb5dc",67904:"47696ba2",67970:"e38db563",67984:"efcdf02c",67994:"862ea0d7",67996:"8c27adfa",68083:"c176805a",68103:"229f2307",68167:"21d4f259",68169:"606a4a7c",68188:"3ea4860d",68241:"0166be64",68249:"0c7d150c",68280:"58e928d0",68284:"c9fe99b7",68291:"84b3c7d1",68302:"ce3ce601",68325:"ded7eb6d",68405:"cb1a817d",68442:"4e506ecb",68483:"4c115d43",68516:"2bd15422",68532:"4fb275e4",68565:"20611541",68589:"9aaa31d2",68651:"765ed43a",68658:"70bab1b4",68665:"c374b273",68697:"5e9855ed",68718:"1ff27b20",68755:"82ffab16",68786:"3d016b50",68794:"1e71340b",68807:"28ff0863",68827:"198ce38b",68857:"8978567b",68887:"cde25a67",68960:"e7cdc645",69036:"a08cca42",69057:"4d2e7a54",69067:"ed9304ce",69122:"8c320260",69141:"68e54c64",69160:"4b1c622c",69320:"d3d474bb",69347:"2e45f0fe",69405:"67841a29",69418:"3c985f41",69443:"078c712d",69477:"b5b01c93",69538:"77222587",69575:"a7a404a7",69589:"f56bca17",69699:"fbed8e7b",69706:"fc93f459",69727:"cd214ffd",69739:"0e14e58b",69791:"16c9164e",69813:"0f21d5cf",69919:"71d496f5",69920:"67a9ebae",69959:"239c8122",69979:"87ae6be1",69984:"39c4ed97",69995:"c103f46c",69998:"e4780ede",70004:"4717bfc5",70134:"c1024a13",70137:"444f80db",70158:"6f8c52ba",70166:"c5886b5f",70194:"fdee23fd",70202:"cdc982d6",70206:"2bf2600d",70274:"deb3e875",70285:"0803c736",70323:"b4bf5e8f",70410:"9abc3010",70452:"adab1cc3",70479:"465e2ffa",70500:"0e1930f7",70577:"ff2dab3b",70673:"f607eeaf",70683:"e3648967",70689:"767699c7",70691:"03b2b794",70715:"4dacdab3",70749:"5b9e0d2e",70787:"fcf221ed",70796:"e0ca1cb0",70846:"32308950",70901:"feb5dca2",70904:"d03297c2",70936:"66c28b9b",70973:"ac0c1194",70975:"6865c993",70987:"3ad182b7",70992:"f8e1e205",71033:"0834a3f4",71089:"1bef8f85",71114:"27e98c7a",71134:"e07ea21f",71170:"0cc3d160",71191:"4f69b180",71219:"f65f0d84",71249:"44be234d",71284:"544f9a1b",71293:"6f150d63",71338:"0fc3c593",71407:"94d9dec3",71452:"8c7a6e7c",71522:"55495f43",71544:"eaec1254",71545:"e118a855",71547:"820be594",71575:"d337d616",71633:"885cb9ee",71670:"3afa6a78",71695:"918fe665",71784:"48ebacec",71786:"158180a0",71897:"2cb5b1e2",71950:"646030f2",71975:"922ca742",72132:"1af4e404",72168:"79af1cc6",72194:"44d95656",72213:"356e9bd5",72226:"dd3ef60e",72312:"6a6001cc",72331:"ae2c42b8",72370:"d7efbe36",72373:"8c4f5745",72444:"e9a5a7df",72478:"f172448d",72498:"69682bcc",72524:"8af3827e",72638:"14a91bc1",72677:"f19f1fcf",72688:"e4016dcb",72758:"348c6d18",72762:"53ed6669",72791:"24e3fb36",72799:"57f725e2",72825:"fb755f53",72842:"434d9ad3",72891:"cb078b4c",72905:"c9de6a27",72923:"438837ba",72926:"f4e37cb5",72942:"bcbf5c46",72945:"93f9e981",72961:"ad9a8024",73e3:"574a13dc",73008:"a6dcb57c",73032:"906e0002",73045:"16577e5f",73078:"df067204",73079:"ffdaceb7",73108:"ea4105ce",73114:"01b28194",73222:"e0bd2afe",73294:"5c53928c",73305:"7556feec",73314:"b62f8e7c",73420:"bd58b5c2",73428:"03d170dc",73431:"0328f4bc",73435:"72e27d82",73458:"b4eb2e9e",73486:"8019c209",73565:"bd333102",73631:"653c04f8",73657:"fcfc8c32",73702:"c457cf9d",73728:"d5d64363",73740:"28c4ba7c",73764:"153eea93",73770:"c161f0e4",73784:"717e5582",73792:"b7e0dbf4",73814:"455481cc",73841:"0c14a3c4",73872:"281b7061",73907:"7a91594c",73933:"69764695",73949:"76fa1f39",73966:"afb9c5d1",73993:"cfccd467",74051:"a7773913",74080:"6e69641b",74086:"c81ce49e",74100:"e381ad26",74128:"510fdc5c",74139:"7b9e1444",74150:"2f513db4",74182:"7eb69187",74231:"82d43a68",74256:"b68ed267",74274:"73f5ffed",74290:"2ecd3269",74314:"36637783",74344:"27cdbd78",74348:"cb377e74",74378:"63693279",74379:"5645c027",74394:"fa9cd109",74403:"c5c18001",74408:"41ff1c4f",74415:"a3aa3687",74447:"d544ce53",74534:"4d051dc3",74559:"8f4bd274",74603:"bedeb27b",74676:"59eccb84",74685:"8c09e75c",74692:"83140d90",74735:"39137bc2",74743:"77053fea",74787:"cc970a50",74792:"109d737c",74859:"b9393e3d",74876:"19fbb49c",74886:"36a0282b",74906:"5083ca33",74932:"4211c292",74970:"be28efe7",74991:"1cdaeba6",75132:"63baee87",75140:"0728be79",75160:"10f041a5",75165:"d258a19b",75187:"a1b6ef85",75189:"03cedf59",75242:"77edad2f",75307:"234eb68a",75335:"cc6d83c5",75349:"fffc2b82",75371:"48c14ace",75375:"a5df8852",75442:"87899253",75445:"87738a98",75447:"edd3f5b1",75549:"e4bd0286",75556:"46d30950",75558:"831dd689",75565:"a6b22cf0",75566:"400cc260",75635:"d553d34b",75642:"3c0810be",75664:"489cd869",75708:"ca625aec",75713:"90ef026f",75737:"645ac056",75757:"75eb1853",75760:"d0d704eb",75770:"196f1efc",75792:"1100c3bc",75806:"1a896ca7",75817:"5e43b6e2",75824:"bf410098",75885:"bd1f3041",76038:"3692cb6f",76047:"55af6963",76090:"321353b3",76105:"9831d259",76151:"38638fae",76188:"52fe7726",76226:"c38d5005",76276:"be154b3f",76357:"eaa3ca90",76396:"d2a15428",76472:"87ea7c24",76474:"6c724883",76481:"06d2def4",76491:"2295748e",76549:"e6249223",76572:"e74821da",76639:"478b7f83",76641:"b4292f91",76776:"08959efc",76778:"13e906fe",76785:"3768bdb0",76814:"8aad8bac",76823:"eec5b92a",76840:"b626319b",76848:"1e28cac1",76864:"d75831e5",76868:"7959b29f",76959:"7b728a97",76999:"b9e818f6",77012:"d5a20989",77018:"2e4ab8b2",77103:"7f8fb294",77129:"21a44406",77203:"bb84e474",77211:"b6c93cb4",77246:"2050017a",77250:"9389329a",77324:"752f6210",77345:"0a74caac",77373:"d9c1dc27",77405:"54f2afb7",77445:"4ae6a19f",77471:"c1c4f4ca",77583:"1f17aa3e",77595:"51e19599",77600:"cc9cc846",77614:"68791b14",77650:"d143f880",77696:"3498918f",77720:"a0eeaf22",77769:"656a1e13",77812:"14c9fb35",77827:"e5bd1f5d",77853:"bcc1a1a1",77884:"72316b1f",77897:"6691ccbe",77909:"5ae2fa0a",78030:"2ac0a99c",78034:"f8b4e600",78102:"e5f13aaa",78119:"70abfd1a",78127:"8893fc02",78131:"aa647651",78149:"40eadbf6",78171:"6f446098",78193:"96af8928",78220:"c7e907df",78246:"fc0d53d8",78296:"eb467120",78310:"012ad662",78383:"880ce6a2",78423:"b5fa021c",78439:"b6edb5f8",78477:"337c7138",78496:"59877bf3",78575:"224f9c12",78609:"a6fa6b8e",78668:"df527b9d",78707:"58c59504",78715:"9ab493b4",78856:"97bcdf38",78857:"8a005e86",78911:"a1955f31",78912:"2e4785cc",78948:"443264f1",78974:"cfc40e64",79019:"c9a31aa6",79048:"f69b9aee",79121:"355a373b",79125:"426514ea",79150:"52873ef8",79153:"674e8498",79189:"4c553234",79242:"9bbe4ed3",79262:"01551d5c",79375:"d25d30b1",79449:"9b4b029a",79496:"937c8570",79532:"b4d86af2",79534:"3ca78da3",79550:"24d7ecdd",79587:"d563a181",79626:"ad33beeb",79669:"73e1a06a",79775:"0354ca17",79817:"42ae58a4",79824:"294003e3",79860:"0b54f47c",79872:"c6b4a7b9",79910:"09713f7f",80055:"e78208a2",80092:"62aca9a2",80095:"d1ad50c0",80139:"9ad5d1da",80157:"e767ea6c",80168:"535d4f82",80172:"ec367fc5",80202:"6671985c",80210:"b53ba69c",80218:"979b0fbd",80239:"3dada950",80292:"c2874ecd",80346:"7f40c8b2",80395:"5b7fd77a",80445:"f642e70b",80449:"4885e726",80466:"dc766cdd",80495:"cbb5be80",80497:"fd31d09f",80509:"4198e34f",80517:"5834effe",80534:"e5b9fde0",80535:"7daf76a5",80555:"bd0a549f",80614:"53414ae7",80625:"bec06634",80722:"80cd22de",80750:"1335137d",80762:"16d92b3c",80818:"1adfd383",80869:"eb102fb2",80877:"b46b95d5",80902:"4b1b5da2",80921:"2e8d3dae",80925:"d8a52332",80940:"de70c209",80945:"62ba8ee6",81018:"68447e00",81126:"ff50ef77",81133:"92d717f4",81182:"7e7f4699",81215:"5467170c",81252:"0a4a283a",81253:"c239091e",81285:"6d8a2334",81374:"0e800470",81477:"fac4c390",81478:"6a7e9b61",81523:"b7b7f170",81551:"9effe3a9",81557:"fd21b137",81562:"124781f0",81571:"c8d0d26f",81587:"79b4e592",81647:"4b1ac0e7",81648:"d3c8e1b4",81666:"253d5602",81689:"b7d04474",81690:"9a3f008d",81722:"afe5477c",81739:"b52d55f9",81755:"d3324ed2",81810:"8588bece",81833:"8da54ca5",81837:"e9b553c8",81845:"1f123408",81872:"d1a22381",81876:"c9e32893",81898:"017bf0f2",81899:"ef636155",81920:"a3470d35",81934:"b595edfa",81940:"15b75329",81949:"d26d71da",82089:"5011ac27",82144:"56591aac",82168:"27b64ae0",82169:"cc145a8e",82261:"d7ca8ca5",82301:"7426dd41",82312:"d27ba1f7",82387:"010fe7f6",82405:"21a3fe7e",82451:"564e0e9c",82465:"504a5463",82507:"6c9fa6cb",82509:"e050f7b9",82537:"7d7d7df9",82561:"934b70ff",82697:"a4e06bae",82723:"1abd7676",82737:"3c17a873",82751:"2bb3458c",82757:"9c99ad93",82760:"a4992b8e",82778:"36b8a024",82795:"dc336307",82814:"e1d30f1a",82948:"3f766a03",82957:"7e4d511f",82996:"a71fa549",83011:"e10e9c57",83048:"69d35c00",83050:"6c34a993",83056:"96eb134c",83249:"bdd7c072",83254:"0ecebf48",83294:"ffb24f82",83319:"fdc6b2b3",83358:"55aecf9f",83362:"eecbb724",83379:"c1af759f",83458:"2e9034ab",83501:"aac1e052",83519:"25a8daf8",83523:"7e821aad",83526:"08a774e5",83537:"a1c90822",83556:"cf87d435",83571:"f8be72aa",83607:"5641a6e5",83640:"05c41019",83660:"23d05078",83705:"9bce569e",83748:"2ada2fba",83750:"a4242f4f",83795:"da1833b8",83816:"91ddb885",83854:"2da4f752",83940:"ed015a32",83953:"5f8b1503",83964:"5c7f6b3c",83972:"42f8e4ef",83995:"ab19bc89",83997:"89edd80a",84002:"a89354c6",84028:"6e7830e8",84072:"bc239563",84075:"2a32bc6a",84085:"db1f01c4",84114:"bfdbbe14",84142:"f4db983b",84164:"2f12d09f",84165:"0e1fe89f",84266:"b170dc0b",84357:"dc31759a",84379:"cadb6827",84380:"2ca957d0",84508:"4f4ccb2d",84512:"dbc1e3fb",84599:"403d210e",84604:"573a9787",84612:"3043fb40",84618:"a0c1a6d7",84630:"19e8dd13",84651:"94f0b536",84694:"1002423f",84715:"05083fc0",84799:"94e43220",84805:"70082712",84813:"e1465c6a",84814:"f487be53",84844:"acfb0e7f",84849:"12b2ea2c",84860:"28bef3f1",84878:"a700b738",84911:"a10f4837",84940:"1c3062a6",84983:"ac83451c",85004:"02dec604",85038:"92e7b5e3",85084:"be2fb5ee",85118:"f49b45c5",85256:"3be79676",85261:"41e66733",85270:"6debec5c",85274:"93b770ad",85296:"ef59ce35",85335:"e1347873",85393:"378dfe23",85421:"2cae729b",85498:"123dd86d",85541:"ace9cb3e",85601:"8b08c50c",85611:"06fbd2be",85628:"e6a782a6",85659:"01cf286d",85672:"17b78a6e",85756:"18f20dc7",85761:"28320494",85764:"bb5f1777",85807:"2be0ec00",85811:"63338efb",85901:"f1c6a2a8",85904:"d806d5f4",85919:"dc9ee1ee",85931:"a781a302",85960:"ac17fda2",85974:"44069d5e",86066:"6edda3d1",86097:"18b980d4",86100:"7f305769",86118:"77ed38a8",86304:"2912a98b",86312:"5ef55a89",86314:"fe4dd1ac",86350:"66997112",86394:"426dd0b3",86439:"1d773b00",86445:"39447c28",86536:"243dd1eb",86611:"7c1671e8",86629:"2f18c032",86632:"76baf480",86660:"15b0c2ca",86682:"9bc658f7",86688:"00a359bd",86691:"58f206a8",86741:"2b0eb03b",86761:"61d62a62",86770:"4e9c6fa0",86810:"a526e672",86817:"16ea6b69",86843:"032a7423",86874:"6b511d3d",86887:"0ed2d273",86890:"c3878fa8",86916:"652a6386",86943:"892e96b9",86958:"15ce0355",86973:"54456a83",87009:"647b0e99",87026:"a1f407ec",87037:"bd6bd136",87076:"339b97c1",87088:"c13e8cb8",87107:"c10df0bb",87154:"576b78c5",87168:"8702f070",87195:"b9e689d4",87206:"85f4d793",87229:"11b9c86b",87351:"02876909",87384:"6bf60128",87393:"fe50dbd2",87394:"7168f21b",87401:"536e9608",87403:"fd42a015",87475:"56ce6541",87492:"3461b220",87623:"c6ff2ed1",87745:"a8a17fe8",87797:"b375c115",87801:"2aa951b5",87826:"a025a312",87851:"75af4a02",87852:"26c91437",87864:"84eae44b",87940:"f52794e3",87952:"1c30e0a3",87977:"1bdc0e24",87995:"0e73d589",88002:"6b669e54",88047:"552f2b3f",88049:"8ddc02c9",88062:"b7221a41",88146:"b32c6632",88156:"dfd7cfc6",88190:"504c8655",88196:"e076d83d",88224:"1c06588c",88289:"37c94f2e",88307:"4ebef7ed",88352:"7dd48130",88379:"c2bf5c8f",88434:"6bd0f795",88437:"5b236b64",88449:"f3be6526",88471:"bb27e82c",88514:"0f33cbf4",88606:"d3c180b5",88648:"ae7b31cd",88670:"81fece1f",88764:"0e875c42",88813:"832b6ebc",88866:"ce8a5eed",88906:"30491dc1",88961:"95e456ce",89118:"4f57df1e",89136:"54802c8a",89200:"6ce4e31b",89202:"7675deb9",89207:"8b8dc46e",89228:"6cf7291d",89274:"f2f34b8c",89315:"39ddd52b",89318:"39100830",89345:"51878c14",89359:"58ebf1f1",89374:"b3b19af9",89401:"08a4be81",89434:"f3a826a0",89451:"35e29d25",89523:"d54075e0",89536:"f445c188",89562:"1c799e41",89653:"88314bcb",89749:"e78b6f87",89767:"4554293f",89788:"501d5fb0",89810:"5873868b",89851:"dc2cb6a3",89870:"e2a008ae",89883:"9e060e06",89886:"488f83bc",89901:"a23601b3",89906:"61429891",89907:"555df5be",89922:"8f40dba8",89925:"4951c523",89951:"20b7d4af",90135:"be905ce8",90156:"7ad0375f",90189:"de457747",90211:"84e328c6",90251:"9ef3cfb9",90268:"0c7e2edc",90271:"e660fc1c",90352:"d4cf269d",90398:"e982850e",90416:"2dd48aa0",90428:"9f1babb8",90453:"8d187499",90469:"8ceb3604",90476:"8e1068e3",90566:"1666cd0f",90577:"2176ba5b",90618:"90830282",90638:"e3249ff1",90660:"5265c209",90738:"cc368534",90841:"973e1581",90891:"099fe824",91017:"e8620cf2",91022:"13a214b4",91060:"52bd4e42",91084:"c576a2fe",91093:"308f89c6",91116:"458b366a",91156:"f10a5464",91157:"ca6fb8c7",91222:"7b075a8e",91230:"375abac8",91261:"607b1402",91273:"0e2ff9a7",91285:"cbd82356",91322:"0cb4d988",91323:"c8fa9378",91375:"26441a12",91440:"677a9ed9",91501:"8282082c",91545:"509f8f49",91650:"1743fe75",91694:"9e046fce",91812:"60e3bd26",91818:"bf0df13c",91917:"cd0a15c1",91974:"bbf25065",92038:"95a2083f",92051:"4135e22f",92208:"4e37777f",92224:"1e19ce22",92279:"ef1288ff",92281:"d4478676",92306:"13271cd3",92310:"5db58cf3",92325:"6a644c7c",92349:"9b94b206",92353:"b2a47441",92357:"3174a33a",92441:"9c5ac920",92618:"af47c886",92634:"972fd224",92669:"22194652",92674:"3c3e7b94",92817:"fba12684",92837:"bcabc953",92876:"a67a0c2f",92878:"35a534a6",92917:"c884e3bc",92941:"081413b9",92965:"d9bd3754",93022:"81fe3745",93043:"024b483d",93083:"7e4f2be7",93125:"505001d1",93134:"45c72f35",93135:"ccf65555",93154:"17dbba77",93176:"963bed84",93209:"c3d92f1f",93222:"bbf44845",93260:"d2bab3af",93292:"4a9bc380",93306:"0afd0824",93322:"63cce803",93345:"14fed45d",93453:"e340f04f",93594:"c13099ab",93621:"10bc984b",93643:"e4e881c7",93683:"8e3fcb57",93702:"735b4375",93750:"f9c1748f",93792:"e04f9a09",93873:"2108b235",93895:"cbdb4e8e",93896:"772f1aff",93905:"d8343ce9",93908:"7d7d2c7c",93918:"73b7bcd6",93931:"de8beb1f",93943:"33c3351f",93992:"a277965d",94002:"d9e1746e",94008:"1698d3ab",94099:"9455ff0a",94136:"0afebcc2",94161:"202039aa",94188:"f8ae7aeb",94221:"ec0828e9",94297:"1a92bf85",94347:"07514dcb",94431:"47a6dced",94445:"010d7902",94453:"53795a43",94458:"75b1c9dd",94471:"af6fede0",94536:"80a8a238",94544:"df8cd351",94564:"39338afe",94575:"acd6dd68",94707:"7ed60eb8",94708:"c37d8aaf",94715:"d037bbb9",94731:"e4030f55",94736:"20385816",94753:"6a48e172",94768:"bff5182a",94792:"7c5d91af",94804:"6aeb0c62",94828:"1131b3a4",94882:"ea134931",94950:"5f5463d6",94987:"43870929",95026:"3db196cd",95030:"bf238c53",95134:"6a182818",95142:"54408c05",95163:"8126ae3d",95215:"73c509e3",95247:"a1480df3",95301:"c07e29ab",95356:"f054f9d0",95373:"12594b90",95391:"2034ae62",95534:"70070ba7",95551:"5acce6e2",95570:"5a7c2305",95593:"a6f6f823",95611:"7e7da08d",95700:"f78d233d",95754:"214802ee",95758:"bd923781",95790:"a042e77a",95808:"938c52be",95861:"8b59f093",95897:"7707e6b0",95910:"3a1b3ec2",95924:"75cb357d",95927:"8a642b12",95930:"610eb28c",95974:"6b6587b0",95999:"616b6cdc",96040:"3fcf65bf",96052:"bc3cb42f",96064:"e94e2070",96172:"afd6bc8a",96184:"266cb899",96240:"380f8751",96242:"b4494da5",96355:"32182dd7",96385:"85e95cfa",96388:"02ebc6ea",96421:"bb42ff40",96491:"c05b6ce3",96514:"2e92ea4d",96540:"29a81d53",96553:"aa9eb319",96593:"274c8762",96604:"24b68f43",96614:"fb81572e",96641:"e8c89d4a",96656:"878085cd",96663:"161e9559",96750:"20a0ed8a",96754:"75ead8ec",96758:"de6d0b0a",96776:"cfeecfea",96915:"4539186e",96946:"6fde2b4f",96952:"ed3dd946",97e3:"c6fc7e43",97007:"a9269081",97013:"c3f63168",97089:"2f4fb6fb",97133:"2d997b9f",97139:"df4e77d9",97160:"04c4e0fc",97202:"0fb66ada",97297:"3d54ad26",97351:"89f338c5",97395:"5dfce254",97446:"81d4a096",97458:"79260b84",97569:"e3e86bf5",97665:"21698b26",97804:"25fe03b4",97808:"c680d12b",97811:"71b5c712",97830:"dc9053ad",97872:"7cb49c26",97880:"e66d9b59",97913:"e9906591",97915:"e159a891",97933:"21fa81a8",98006:"2360f18e",98095:"2a636c85",98099:"960bd5c9",98156:"6f4300e8",98169:"f9a5d4e1",98197:"0f637822",98228:"4a7f9fe8",98236:"b5605f61",98256:"0464ebbe",98275:"9005979f",98351:"d91f64bc",98407:"aceeeb80",98465:"16a26ce8",98472:"50dc5e84",98478:"c8dda311",98490:"1b206196",98544:"a50089b4",98547:"0555add4",98581:"86b89851",98602:"b9f430dd",98633:"a095bc66",98686:"30b61e21",98745:"98be5bd3",98766:"3c3a4f1f",98771:"57a340cd",98789:"ff843675",98916:"9286946c",99024:"93dc1c38",99101:"c42bf146",99106:"a5d2054b",99126:"7df5f462",99173:"b5c66f90",99318:"9b1af27c",99321:"6ae2f4b6",99340:"280d3504",99365:"de309518",99390:"5044358a",99417:"a3b3c0d3",99432:"b771a361",99434:"ab50925e",99435:"a84a924e",99444:"d3b5630e",99458:"fcff4398",99497:"52177a68",99510:"fda8e0e1",99573:"221803b4",99575:"8a530be4",99580:"c42091a3",99631:"6afb7d5d",99672:"ce0be61e",99686:"b874ac67",99692:"0ba39c24",99693:"6c3b08bb",99774:"a734cb52",99812:"166e0562",99858:"f92dfb95",99957:"aa563031",99998:"f59966a2"}[a]+".js",t.miniCssF=a=>{},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),t.o=(a,e)=>Object.prototype.hasOwnProperty.call(a,e),f={},d="push-website:",t.l=(a,e,c,b)=>{if(f[a])f[a].push(e);else{var r,g;if(void 0!==c)for(var h=document.getElementsByTagName("script"),_=0;_{r.onerror=r.onload=null,clearTimeout(i);var d=f[a];if(delete f[a],r.parentNode&&r.parentNode.removeChild(r),d&&d.forEach((a=>a(c))),e)return e(c)},i=setTimeout(s.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=s.bind(null,r.onerror),r.onload=s.bind(null,r.onload),g&&document.head.appendChild(r)}},t.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},t.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),t.p="/push-website/pr-preview/pr-945/",t.gca=function(a){return a={10659806:"20382",11330710:"29419",12750430:"64107",15512226:"83607",15740554:"84266",17896441:"18401",18329464:"88606",20565400:"42371",23036166:"40494",25199571:"93908",26734393:"25114",27870954:"75375",28372844:"32857",30618897:"36617",32988486:"22809",34039198:"86536",34720735:"14586",36471230:"34075",36636520:"49184",38584736:"31897",38603233:"69141",41880870:"45219",42891609:"55340",43084770:"16794",45879357:"24561",47751582:"16104",47896812:"11530",48723664:"48093",49215773:"17071",49518896:"76549",51994402:"22021",52181999:"29017",54968223:"40458",54988307:"9784",55585569:"65555",57269503:"35870",57603724:"67489",58385753:"95373",58802736:"742",60000333:"61684",60308593:"24265",67515884:"15767",67750132:"90156",68666167:"73008",69177293:"90891",69324566:"76814",69958486:"18124",73180335:"62253",73324267:"66269",73611494:"56370",76608970:"12138",78545271:"25292",78963624:"8022",79045086:"80762",79599614:"8967",81856798:"47373",85816216:"61834",86600345:"44613",88429831:"30794",88958298:"1536",89020377:"20833",90160847:"47893",95453379:"96754",96216215:"23771",98564943:"40175",98869011:"42939","84bcd2e8":"27",d64c534f:"40","8310ec5e":"57",dc9d9d7d:"241",bd5231ee:"242","33554c08":"264",c6e2e3a6:"280",aa802b21:"286","95096edc":"288","8a8581f0":"408","04151b48":"460","206a2a76":"558",fddc281d:"563","8b621697":"564","558b8bba":"582","8252d9d1":"591","58ec11bd":"628",c51e6b5a:"631","60e544e0":"920",e14b20ec:"949","26aa4446":"979","19be0f52":"1057","47f70b8a":"1058","4c10b97f":"1059",dc6e7ad5:"1062","72b1ab8f":"1100","265e1379":"1193",ce277db3:"1286","010fef8e":"1332","77f6fc98":"1375","7a0e73cd":"1405","9c504883":"1447","react-syntax-highlighter_languages_refractor_gedcom":"1451","68c53b77":"1499","52e10132":"1530","3163852f":"1551",bf1a6c1e:"1554","633051d5":"1568","24d1e5df":"1644","435c1d57":"1683","react-syntax-highlighter_languages_refractor_powershell":"1719","9659142e":"1728","5e8a2318":"1766",f0fd5ae9:"1807","8e619849":"1811","9e62c064":"1874",d2d75277:"1901",fff33ac4:"1927",ef91fd67:"1939","11ec5faf":"1941","57c844f3":"1987",a20ed76e:"2071","react-syntax-highlighter_languages_refractor_abap":"2078",d30b4225:"2119",eb36b2c1:"2145",e03529aa:"2169","80753a45":"2206","4cc9f601":"2237","react-syntax-highlighter_languages_refractor_pug":"2272",c98609e1:"2274","07892beb":"2280","4d80eee6":"2328",cc3e5c26:"2337","41b81e12":"2383","52cbf5a0":"2385",c737e91b:"2416","react-syntax-highlighter_languages_refractor_livescript":"2419","12eca085":"2468","164f70ac":"2473",f3e763e5:"2517",c6335d26:"2549",df30a0d5:"2598","49c96c56":"2614",d5606cb6:"2665","88805bdd":"2666","react-syntax-highlighter_languages_refractor_gherkin":"2690",f187f75c:"2814","react-syntax-highlighter_languages_refractor_robotframework":"2824","2cafcb46":"2834","065e482e":"2964",dd8234ec:"3132",ebab6303:"3169","65f9c841":"3247",c336d2d9:"3258","8050d968":"3291","3f92b6dc":"3358","react-syntax-highlighter_languages_refractor_twig":"3375",reactPlayerVidyard:"3392","07a24ab3":"3401","58121f3f":"3407","0858460b":"3472",a0c8f4d1:"3506","0f9e56a2":"3519",cd08d4b0:"3688","265804ab":"3694","react-syntax-highlighter_languages_refractor_lilypond":"3733",a7951825:"3769",a1db62ef:"3782","react-syntax-highlighter_languages_refractor_moonscript":"3874",eb3ba94e:"3882","react-syntax-highlighter_languages_refractor_promql":"3909",bc81f325:"3921","8ff11d0f":"4019","3fb7c2e9":"4100","22b47849":"4105","3cfe152a":"4167",f2eced51:"4226","0a6a88e9":"4247","7a259904":"4262",a62c6278:"4266","089859ad":"4289","30c8b998":"4295","5cdfd161":"4311","509b9638":"4377",feaf005b:"4400","1eaac6a5":"4426","5cea70f8":"4450","react-syntax-highlighter_languages_refractor_powerquery":"4469","8fc26804":"4732",cbf4c551:"4836","8bf829ee":"4866",cf2e8a32:"4881","5aac511a":"4957","54b95c75":"4987",e4a0154b:"5031","421a29de":"5133","react-syntax-highlighter_languages_refractor_hoon":"5208","49c48589":"5263","8a5f3d58":"5265","react-syntax-highlighter_languages_refractor_tcl":"5281","0bdb2564":"5314",daad3ec8:"5407","8343a638":"5427","5a527ab5":"5511",de2fe47e:"5521","react-syntax-highlighter_languages_refractor_django":"5529","367e4fc9":"5538",ee52a4f2:"5615","6765012a":"5655","1f96958f":"5659","6716300b":"5664","2d9fd3e8":"5672","13a4797c":"5674",a8533575:"5716",e1538bc3:"5717","83ca6e75":"5719","react-syntax-highlighter_languages_refractor_solidity":"5779","1bd3ee4e":"5838",d60a63a2:"5864",ce0a1787:"5889","151add9d":"5928","react-syntax-highlighter_languages_refractor_gn":"5963","5adeb76b":"5989","0aa60109":"5999",a0573330:"6051",de89ea4d:"6057","25a66ca5":"6094","6ef00491":"6124",c430b383:"6129","1f164800":"6135","05d06b69":"6141","609b18dd":"6167","804765a6":"6262","11bf9e76":"6268","3f0bde23":"6294","3b5280ba":"6334","40e8d2f8":"6344",ac7da1e4:"6351","94b49ec0":"6361",c0fbebdf:"6385","8e131a02":"6394","95b96bb9":"6405","5e7d406c":"6425",f86d83ea:"6438",reactPlayerKaltura:"6463","326c28e0":"6476",eb48eb31:"6483",a079ddf3:"6497","691162ab":"6511",f89ed123:"6531","7c5f602b":"6550","react-syntax-highlighter_languages_refractor_handlebars":"6804","275fbd78":"6812","65d2ee61":"6815","0bbcffdc":"6839","27de3a99":"6845",edfa1e84:"6893","6c0205ab":"6944","86e65b11":"6999","00c3eb1c":"7048","89a24274":"7052","59bc3ca8":"7109","236d3efd":"7114",c5987ac2:"7131",c80bab8b:"7139",da73f0d9:"7207",c93cd936:"7231","49bb035c":"7237","react-syntax-highlighter_languages_refractor_protobuf":"7261","0d4c2304":"7269","16f806b1":"7273",bd8c0afa:"7276",daf22984:"7337",d1e1b89b:"7371",bd359c2a:"7442",fe9101f7:"7454","45ad5f4e":"7457","2eb67f0a":"7482","34ab9615":"7508",ddbc9423:"7556",d84c8b75:"7562",fc4d4272:"7587","8240de52":"7605","9920bad0":"7616","200945dc":"7642","268d64cf":"7674","6823ceb4":"7686","479bd2e2":"7726",b96f418e:"7752","react-syntax-highlighter_languages_refractor_rego":"7765",df6d0412:"7802","15e516a5":"7808",c41c6f62:"7814","react-syntax-highlighter_languages_refractor_inform7":"7818","9793c9ab":"7854",c794484a:"7911",cf7df211:"7959","1a560913":"7989","3e50d90a":"7996",ad846957:"8047","3e0b10dc":"8061","6f7ca108":"8091","9cd0874c":"8099","29b06d52":"8145","01a85c17":"8209","53953b9d":"8285","react-syntax-highlighter_languages_refractor_vhdl":"8330","87242d08":"8336","469a95ce":"8345",d3e8ad86:"8374","350efd57":"8404","react-syntax-highlighter_languages_refractor_nix":"8417","86fed5f2":"8463","035376a3":"8515","971783f9":"8519","6edfd560":"8577",fec35715:"8608",b161e36c:"8662","687b58fd":"8679","11d8605d":"8764",fda12de5:"8787","6d5630c5":"8837","1710ee1e":"8872","278548b2":"8875","269d297d":"8878",f1011b2f:"8948","9d710a19":"8987",df2fb0af:"9054","react-syntax-highlighter_languages_refractor_gdscript":"9060","720485e0":"9110","8a96d16c":"9147",a07fa8ef:"9149",b2e24529:"9240","15f8bc50":"9301","66024a96":"9349","131b7b19":"9379","react-syntax-highlighter_languages_refractor_r":"9450",b2e9fe47:"9481","6bc7e0df":"9504","1df6fbe0":"9587",ddc2c0f0:"9631","5e95c892":"9647",fcf92d97:"9691","8aa90562":"9729","react-syntax-highlighter_languages_refractor_keyman":"9771",e2d05215:"9777","92c7eab1":"9901","22a80663":"9979",f2395723:"9982",a11ca41e:"10016","451bfaf9":"10047","24909fb1":"10092","5e2c3353":"10126",a74d7d18:"10153","2be0cfaf":"10178","react-syntax-highlighter_languages_refractor_pascal":"10204",ecb2d6d1:"10292","85869fec":"10313",f5140fc3:"10319","54f0ad11":"10323",b919b62a:"10329","8d32d193":"10357","react-syntax-highlighter_languages_refractor_hcl":"10365",d9680a2c:"10371",ccc701e7:"10378",bae01de0:"10387","84e426ea":"10414","5f2e2131":"10418",ea9cad3d:"10428","27172a78":"10488",dc4a2b93:"10593","688f552a":"10614","react-syntax-highlighter_languages_refractor_groovy":"10622","4e13d31b":"10864","84c155f2":"10921","react-syntax-highlighter_languages_refractor_aspnet":"10953","3e51ac17":"10981",c60c497d:"10999","3c32ea34":"11005",d3722b14:"11048","36d9f920":"11072",f7158734:"11074","react-syntax-highlighter_languages_refractor_haxe":"11220",ff34c2a3:"11253","08c1a781":"11342","0cea0860":"11384","95a8c77e":"11404","react-syntax-highlighter_languages_refractor_renpy":"11406",e65ec948:"11460","93cf290a":"11482",b0a511ac:"11505","20aff5c9":"11519",c0d396e4:"11543",deabba02:"11546",ce825ef8:"11605","5a354d02":"11623","6be95d8e":"11663",b0663634:"11675","384b5529":"11681","react-syntax-highlighter_languages_refractor_jsx":"11695","3aa26e06":"11707","8af70d64":"11717","react-syntax-highlighter_languages_refractor_erb":"11749","89a2b07d":"11768","71179f0d":"11770","61bfed03":"11800",f0d3c292:"11844","24b4f315":"11848","0e75c1a1":"11852",reactPlayerTwitch:"12042","5b86e82d":"12101","react-syntax-highlighter_languages_refractor_ftl":"12102",c46edbac:"12111","6294aeb7":"12171","2c5603d1":"12205",eaca4adb:"12266",ab727a48:"12333",ca216e25:"12352","4fac73d8":"12387","88684b9d":"12424","react-syntax-highlighter_languages_refractor_dataweave":"12490",b78be845:"12494","8f464baa":"12547","462bbb79":"12569","4c1ec688":"12581","4bf4ea84":"12609","7964aea2":"12630","54b88cfe":"12690",d5c39aa1:"12748","92964ffa":"12762",b5a9a661:"12772",af5f45b9:"12801","02b9e427":"12820","62e88fdb":"12892",db0ceabd:"12898","5d1ed832":"12929",bf598913:"12948",cb0a65f9:"13065","1f851c01":"13094",b5bc19c8:"13142","react-syntax-highlighter_languages_refractor_dax":"13151","8cc913f6":"13160","8ebeecd3":"13198",e2a00b72:"13260","977dc6eb":"13268",e6daf1de:"13277",d5cd114b:"13347","8486b8fa":"13360",ad39bf18:"13371","441f3e41":"13407","368e1eeb":"13438","react-syntax-highlighter_languages_refractor_ruby":"13440","007ad6c2":"13486","708022bf":"13506",ebb29d88:"13517",bf9244d8:"13518","2e4bc32a":"13559",cca5221f:"13582","131aac84":"13637",a1cb2e49:"13648","2e0f5eee":"13690","85bd101f":"13734","50a43d1d":"13749",fd092f84:"13784","9cdb2ac3":"13804",ba8b2d87:"13883","399d4577":"13911",a684f421:"13927","7fd476ac":"13979","99accade":"14000","6f90034a":"14106",c3d37c91:"14118","65b20314":"14156","353365c0":"14207","02b980c0":"14339",dcac528e:"14360",bcc835b2:"14363","8da55221":"14387","2703ef47":"14519","2cf195af":"14546",edf1bff9:"14556",ab36059c:"14616","5102df2c":"14664",c4b8d3be:"14672","86ac1f62":"14676","53c639b1":"14679","597e0d1e":"14751",cf49fede:"14771","572ab204":"14780","8edaf9a5":"14790",b7dcdcad:"14793","926e3009":"14825",a3fa124c:"14886",e135ab31:"14944","48e5482b":"14957","2b63e488":"14981",da19030c:"15028",c67d5f1c:"15080",de9cd55e:"15113","531ef78e":"15121","782dba4f":"15161","91864d41":"15174","2ff6e069":"15191","react-syntax-highlighter_languages_refractor_coq":"15203",b6fb4db9:"15220",dd5a0e45:"15277","828f2741":"15291",bed6d8d6:"15300","76fdb267":"15359","038ad548":"15408",d0e186e6:"15410",e91e33b8:"15463","75dcd8ec":"15468","4b2cfd8c":"15477","62c90643":"15494",bd9a1857:"15620",e6970a8e:"15634",b3489a2f:"15676",e30125de:"15728","804b821f":"15758","9ab32d5b":"15783","react-syntax-highlighter_languages_refractor_applescript":"15873",e2237170:"15934","38fc7081":"15971","45ac6703":"15972","057ef766":"15987","4a75eabb":"15992","7aac9c4d":"16039","8990d820":"16079","6a41d27b":"16120",b5771a04:"16144",b10cc6ec:"16152",a45c903b:"16168",f06a807e:"16194","22bbc4b0":"16208","704af19b":"16221","68f60f75":"16299","react-syntax-highlighter_languages_refractor_csharp":"16305",cf59f57c:"16323",reactPlayerDailyMotion:"16328","974a7ed2":"16396","react-syntax-highlighter_languages_refractor_markupTemplating":"16403","9eb21b3a":"16412","055d2677":"16451","react-syntax-highlighter_languages_refractor_sass":"16458","6e4d9913":"16490","98abf98b":"16512","71522cd8":"16539",fc655ccb:"16550","5540d0db":"16587",f961bcda:"16671",a02d1aa6:"16677","0c935397":"16708","2eb5d71b":"16745",bc7fa82f:"16822","react-syntax-highlighter_languages_refractor_ebnf":"16829",bbfd62cb:"16834","860023f2":"16872",c425a1fc:"16934","react-syntax-highlighter_languages_refractor_log":"16942",cb3ab1df:"16949","03c8c5d4":"16993",a41d233f:"16997","9cccdfca":"16999","react-syntax-highlighter_languages_refractor_yaml":"17029",e4950434:"17031","react-syntax-highlighter_languages_refractor_io":"17148",aa6393a3:"17208","61eace94":"17261",ff38257a:"17293",a6ce5706:"17320",d7cfe959:"17407","837fb0d0":"17417","react-syntax-highlighter_languages_refractor_solutionFile":"17419","react-syntax-highlighter_languages_refractor_tap":"17495",b90b88f1:"17517","40132c69":"17529","30d42090":"17535",d23236dd:"17553",c022ae0f:"17570",dcac14a1:"17573","9518016b":"17595","627658c4":"17610","react-syntax-highlighter_languages_refractor_phpExtras":"17645",c854accd:"17692","react-syntax-highlighter_languages_refractor_neon":"17696","react-syntax-highlighter_languages_refractor_pascaligo":"17735","9ba6d041":"17742",daecf1ac:"17765",cb416afd:"17780",c2eb94b1:"17857","10b96f29":"17912","9431f4ef":"18003","93782e8a":"18060","8750a788":"18067",bb4410aa:"18094","809e8296":"18102",e356e411:"18155","2605ee34":"18205",f250869a:"18348",edf2de7a:"18353","react-syntax-highlighter_languages_refractor_factor":"18369","2db5f759":"18381",e9afde81:"18432","698b6e29":"18438",reactPlayerYouTube:"18446","4632ea63":"18469",e9c4bf46:"18494","react-syntax-highlighter_languages_refractor_abnf":"18497","616d86a5":"18505","54b44a2d":"18549",f90a076e:"18553","4c4702a1":"18607","react-syntax-highlighter_languages_refractor_textile":"18615","578d2057":"18621","7aed67a8":"18630",fd0888ca:"18701","2106a8c5":"18705","94c994d7":"18716","1e1ebbc2":"18724","6378b071":"18725",b1f4ebb3:"18754","403c19a8":"18840","5a786131":"18867","react-syntax-highlighter_languages_refractor_purebasic":"18884",a0664561:"18886","6df3e622":"18993",e21c4ed5:"18998","3f924e1b":"19013","react-syntax-highlighter_languages_refractor_http":"19048",eaf4d31a:"19054",df9030e8:"19072",c7d26a86:"19074","react-syntax-highlighter_languages_refractor_diff":"19117","790473be":"19166","react-syntax-highlighter_languages_refractor_scss":"19196","8a0865ae":"19211",aa6173fd:"19366","151b3cdb":"19488","7b906b0d":"19559",e0c90045:"19569",fb19ce74:"19636","5d2b6c00":"19657","70ccb0d9":"19667","react-syntax-highlighter_languages_refractor_git":"19688","85b545e2":"19741",a74020c2:"19742","6e75ae4a":"19751","59de25e9":"19789","35be9474":"19802",d7bd5962:"19836","1dbb113c":"19848","3456be4e":"19909","283967ed":"20031",f8a2fbb6:"20036",f83ae13b:"20060","react-syntax-highlighter_languages_refractor_ocaml":"20096","833193b7":"20101","478957a4":"20154","7696af57":"20156","75c81540":"20192",effa8f82:"20209",d70d51e2:"20247","react-syntax-highlighter_languages_refractor_falselang":"20345",fbaa2b93:"20405",efaa9a7c:"20416","react-syntax-highlighter_languages_refractor_graphql":"20451","1585f60d":"20452","8c89ea06":"20473",d26f808a:"20504",bebe0006:"20557","611d590a":"20600","84b5ae79":"20714","1e0266f6":"20715","react-syntax-highlighter_languages_refractor_docker":"20724",d063b25b:"20731","1cc63fde":"20738","0b0d702f":"20804","1fa78379":"20813","react-syntax-highlighter_languages_refractor_javastacktrace":"20891","1e6abbb5":"20913","react-syntax-highlighter_languages_refractor_scheme":"20925","7a77a761":"20926",e57aa837:"21012","4b9e6ddf":"21099","09e8b809":"21110",bbd6f071:"21163",b7af393c:"21193","87f9ae18":"21202","9af6d6b4":"21233",a09a24b7:"21269","42ecce42":"21291",c6309d62:"21302",d28bf642:"21317",dce59618:"21328","react-syntax-highlighter_languages_refractor_arff":"21353","react-syntax-highlighter_languages_refractor_dnsZoneFile":"21385","1493b123":"21398","6263a26e":"21472",b0535527:"21510","368b8c61":"21610","00c0805c":"21658",ef6ea4db:"21724","react-syntax-highlighter_languages_refractor_asm6502":"21740","00846ec3":"21754","54ddaf89":"21760",deb7cc50:"21826",d42c418a:"21890",a739f313:"21910",ea59ce26:"21983","6860c5fd":"21997","77c0e835":"22047",c2a6a93b:"22060",f20e9528:"22066",d1b09c4f:"22110",fd8c1fa9:"22125",c654f106:"22134","react-syntax-highlighter_languages_refractor_rip":"22269",bf669c84:"22295","6a336643":"22297","808151e7":"22300",e45dc856:"22311","559b3b95":"22325","992bfa5c":"22330","react-syntax-highlighter_languages_refractor_smarty":"22336","134430ad":"22337","2ed2eabc":"22489","731ca5f6":"22507",e4f65779:"22508","react-syntax-highlighter_languages_refractor_typescript":"22585","react-syntax-highlighter_languages_refractor_stan":"22628",e5f5e7be:"22649","36e1259f":"22680","8b648089":"22710","94db3141":"22711","35752ff7":"22734",e1732b4d:"22823","78c019df":"22883","42206b72":"22972","7c024dfa":"22976","918d27e6":"23029","2d893d60":"23043",d37decef:"23076","02633482":"23159","69f85179":"23180","react-syntax-highlighter_languages_refractor_objectivec":"23224",a23069be:"23231","6ad2f2bc":"23267","react-syntax-highlighter_languages_refractor_cobol":"23281","560ae20f":"23300",cff13e42:"23361",db5f6e59:"23405","1d92e03a":"23406","26e01f14":"23410",e4ca4709:"23414",b61f4f40:"23616","4dc25e8c":"23625",e8c1830c:"23664",ae0a9328:"23686","003717e4":"23706",eb7d31b7:"23750","12dcd077":"23775","1d72346f":"23826","8f1388f0":"23835",f5c055b4:"23877","2baefe8b":"23880","react-syntax-highlighter_languages_refractor_idris":"23887","31c3eda2":"23932",f9841376:"23943","8ead4fc6":"23944","1fd735f4":"23983","00aed27d":"24050","066bda7b":"24175",f83b8986:"24221","173ee416":"24237",b9dd72ce:"24275",a8012452:"24422","225481be":"24426","3568cf0c":"24429","9539702d":"24430","2383b453":"24439",d3001a82:"24504","7aada517":"24550",b98aebff:"24560",a81fd9ee:"24646",c3a50909:"24659","345f05f2":"24758","6ae8306d":"24812",be0c05e5:"24824","react-syntax-highlighter_languages_refractor_fsharp":"24830","5feae07f":"24852","721b9ffa":"24887","46cde13a":"24890","react-syntax-highlighter_languages_refractor_etlua":"24903",f1785d0f:"24908","88439bdc":"24934","6b03ecea":"24994","0e80cbd4":"24997","34366aa1":"25020","58082cb4":"25035","2c5ed484":"25060","604e09d8":"25173","6c00b9b0":"25175","36cf28e9":"25219","539d1863":"25266","0e2e1d8e":"25287",e0fd5824:"25315","3b80d618":"25333","4655cc14":"25342",e09f87d3:"25397","3ea5c28a":"25419","55683c80":"25445","153271ad":"25473","react-syntax-highlighter_languages_refractor_matlab":"25507",e3d5f021:"25535","9d19e17f":"25547","react-syntax-highlighter_languages_refractor_properties":"25559","2890cdde":"25586","2af58904":"25590",cae58d6e:"25601",ecb6575e:"25661",d2ef8bf9:"25733","456650f2":"25845","37328ebb":"25891","5de72664":"25930",ea22cc1b:"25962",f2495950:"25963",cb0b69cd:"25964","4f8de05f":"26023","react-syntax-highlighter_languages_refractor_nim":"26060",reactPlayerVimeo:"26173",eaaf191e:"26184",d5e69987:"26190","0afbc094":"26196","96a14053":"26228",b788a960:"26246",c732fedd:"26257",b0f873c3:"26259","1c28c71e":"26277","react-syntax-highlighter_languages_refractor_dot":"26285",b950ae6d:"26303","0bafac2f":"26396",e0c6dc0e:"26421",a9a934dd:"26426",cf1b0010:"26514","5a8a7aff":"26520","78e826e4":"26614","5b3097b2":"26835","737891d3":"26869","4c0c2deb":"26876","react-syntax-highlighter_languages_refractor_firestoreSecurityRules":"26878",ad17591b:"26887",c80c620c:"26894","1957effb":"26996",da47026c:"27030","0d68b582":"27056","199550a6":"27165","react-syntax-highlighter_languages_refractor_openqasm":"27202",e55f2f4e:"27209","28ef8a93":"27341","7a15e007":"27349",bbc30e0d:"27435","00a891f7":"27443","33a7c688":"27446","7e1274f7":"27510",cea7ec04:"27515",f09b4df3:"27517","1218e2bd":"27530","3010f1c9":"27534","4ee824b6":"27559","639a1b7c":"27571","181fd6a1":"27601","92dec2fe":"27615",d30dfcd3:"27629",f43df136:"27648","334aca5a":"27650","react-syntax-highlighter_languages_refractor_clike":"27705",a48096a6:"27716","8870bad1":"27727","070fb884":"27788",c0ef72dd:"27812","2ef8cd6c":"27822",ee18827a:"27868","20dddd66":"27893","63e5f7b5":"27902","react-syntax-highlighter_languages_refractor_liquid":"27912",af56cca7:"27945",dc8f846b:"28002","210622a6":"28079","react-syntax-highlighter_languages_refractor_naniscript":"28141","5ab51f3c":"28145","60a80873":"28164","3ae38b0a":"28236","7b6b775b":"28311","react-syntax-highlighter_languages_refractor_v":"28462","react-syntax-highlighter_languages_refractor_fortran":"28494","2ebc8231":"28603","0f9cd74c":"28617","2499d0ab":"28650","3c9b69fe":"28676","6b23884f":"28680","1c091e98":"28687","4bbed989":"28706",e6fe4cc5:"28734",e91a0703:"28763","438df00a":"28783","429c429e":"28789","17cdd50b":"28801","48d77013":"28985",fcb7333f:"29050","react-syntax-highlighter_languages_refractor_makefile":"29084",c354f0b4:"29158",da1a6735:"29221","8ee3b6bd":"29336","214805b5":"29442","80ac5db4":"29478",e2d1c1ed:"29504",c3c33ebf:"29511","react-syntax-highlighter_languages_refractor_nginx":"29548",cb23619b:"29583",bbf1a1c4:"29595","8413b679":"29615","react-syntax-highlighter_languages_refractor_markdown":"29627","40bcc614":"29706","7a2d783a":"29804","9a34f2aa":"29810","9d766b13":"29855","react-syntax-highlighter_languages_refractor_al":"29887","926e26ba":"29934","21eb889f":"29976","07d07e4e":"30005","35a84199":"30023","6e369425":"30087","137d3a47":"30109",c222aa0d:"30130",d574981b:"30201","83fd2e4f":"30283",c9ecba79:"30320",d83f50c7:"30325","2d33737a":"30333",ad790d1c:"30336","7176e37b":"30355","36eb743d":"30370",a4dd2e86:"30413","538c3fab":"30438","12c3d0e8":"30443","0311fa17":"30453","37ec961d":"30483","6e1c46a1":"30504",f26ea442:"30601",f5a91e8d:"30640",dd58769d:"30684",cbd3817f:"30713","8fda5026":"30727",b1388f77:"30741",c9f90f30:"30751",c1de8834:"30755","47458dd1":"30764",c01655ee:"30815",fe8349c6:"30857","2ae5e355":"30888","react-syntax-highlighter_languages_refractor_dhall":"30893",b27cb526:"31002","5b1bf06e":"31138","4cc7e4a8":"31142","8d21ba42":"31209","react-syntax-highlighter_languages_refractor_llvm":"31239","679d206b":"31243",dcdbe9aa:"31302","96ff8feb":"31309","4abb887c":"31316","2586ad1d":"31374",ff67560b:"31393","70ea09d2":"31443","016c6857":"31469",e9c371a6:"31502",a7302c93:"31547","71473e8d":"31556","73b907a8":"31622","82174fd7":"31660",fe063cf3:"31717","7218584b":"31726","3d1eea97":"31738",e17814b9:"31768","4700fec8":"31822",b5d49b70:"31836","17c9af37":"31992","7ab5ef39":"32057","7212c154":"32058","react-syntax-highlighter_languages_refractor_java":"32168","75f9059f":"32184","9990a12c":"32185","react-syntax-highlighter_languages_refractor_crystal":"32270","3b425c86":"32272","23ffa728":"32300","371973a4":"32314","83fd095c":"32319",cfe68a19:"32358","4fe6950f":"32384",b304dada:"32402","49a4fa5b":"32415","4ed82739":"32431","7e41a3f3":"32547","6b91ef2f":"32564","13eeb9b6":"32566",c5f51424:"32597",a71ef9f3:"32619","3f473e3b":"32648","804e189f":"32664",e076279f:"32687",e5593ff4:"32698",b3e62e9d:"32723","react-syntax-highlighter_languages_refractor_goModule":"32742","6a251a09":"32752",ef2363fd:"32768","342da00d":"32803",fd19bde0:"32886","4fd820bd":"32917","react-syntax-highlighter_languages_refractor_concurnas":"32928","169f843b":"32944",f13ed2a4:"33153","8f2603c5":"33246","678eb5cd":"33281",c1df4904:"33320","782370ba":"33333","86df7025":"33401",dbac4f0b:"33493","80a636e2":"33504","react-syntax-highlighter_languages_refractor_c":"33539","5e2f8b1f":"33550",d9724aa2:"33589",f668f451:"33613","66c73250":"33621","390740f2":"33656",a018a632:"33709",bd70db15:"33760",ebf5b3b3:"33777","7f50e1d2":"33799","6cbf99a4":"33835","0dabd4f0":"33952","0cf483f1":"33974",e4fa53cf:"34048",c41318a0:"34090","6ac9ae72":"34093","6cc106d5":"34097","react-syntax-highlighter_languages_refractor_csp":"34118","react-syntax-highlighter_languages_refractor_batch":"34336",daa659ca:"34341",f8d96fd7:"34387",eeac13f4:"34399",ac91d12c:"34453","25e75d93":"34475","08142ad0":"34483","3025f89f":"34490",dd25e00f:"34521",c7fe9c45:"34531","30dd09fb":"34559",e56961b8:"34563",b4db83a1:"34582","9942af5e":"34656","70f3f801":"34672","201a0500":"34678","0e2937f4":"34681","1ab565ee":"34747","26b4af5a":"34754","07771b90":"34796","56bff0da":"34857","675250a4":"34903","5b412298":"34924","992b795c":"34929",acb8ce8b:"34939","react-syntax-highlighter_languages_refractor_magma":"34967",e7ef37d7:"34983","91e8ebcb":"35008","4a0ea2e5":"35016","3eb1c3c4":"35063","4e2955b0":"35077",c6ea8a09:"35106","278f5c51":"35150",d945d2e7:"35209",eae386c9:"35267","696cc2ce":"35306","41b5f16a":"35397","35d7d22b":"35414","00c89828":"35447",ef51dad6:"35475","7ed328b7":"35491",d939f5f5:"35562","967a49c1":"35603",baa3bdcd:"35703",a5746cd4:"35785","69b3b150":"35805","2a637248":"35806","0287ff23":"35827","5212040f":"35837","0fe96742":"35884","8371f7c4":"35920","3f502d21":"35966",cae55ba7:"36020","8810f664":"36030","6ced10a4":"36033",e9c8bbd7:"36103",adaab7df:"36137",e487c8e6:"36195",f825aee5:"36198","07646cfb":"36211","079f615e":"36212","4ed67237":"36225","2b5167f1":"36227","987c2424":"36242","29ae3a93":"36258","react-syntax-highlighter_languages_refractor_avisynth":"36268","9a49ff8b":"36278",daba2da9:"36321",e9936e5a:"36332",reactPlayerPreview:"36353","716244e8":"36388","0ad4a848":"36477","421a17ff":"36491","337ac029":"36499",b4b2283c:"36509","97985e22":"36526",e4b329fa:"36537","1b82c7d9":"36559","9786a9ec":"36575","5cc8ca0f":"36628","737649ca":"36631","3e42ceaf":"36652","0a67fbc9":"36715",a6c6c313:"36787","416483b8":"36861",d2a9d211:"36871","2d45f6c7":"36938",afc801d1:"37003",c7a422cd:"37019","81d0f39e":"37037","8d0b89ff":"37044","68188daf":"37115",f67c1695:"37130","798d2723":"37171",cc41b2f5:"37191","7235d708":"37195","react-syntax-highlighter_languages_refractor_asmatmel":"37228","6ad61205":"37242","874ae5fd":"37249","4475f555":"37282","42b54026":"37322","3b253872":"37349",e76e77ba:"37361",c168b77c:"37382","65351f68":"37387","0f2d26b6":"37399","7b300f5f":"37410","684a8e80":"37425","react-syntax-highlighter_languages_refractor_yang":"37495","400df662":"37539","8c5c6aa4":"37572","react-syntax-highlighter_languages_refractor_eiffel":"37581","066f1fb8":"37614","75fa0d79":"37636",a6aa9e1f:"37643",ff34ab38:"37654",e9325ad9:"37661","57158e32":"37711",e2b6763a:"37717","react-syntax-highlighter_languages_refractor_warpscript":"37743","5190dab0":"37841","7bb65623":"37892","react-syntax-highlighter_languages_refractor_csv":"37904",de390d23:"37907","2823facd":"38070","2119c1e2":"38075",d84577d9:"38081","682f6497":"38099","9097d858":"38131","7d2a1e49":"38154",d24e03c4:"38234","react-syntax-highlighter_languages_refractor_ada":"38300","504ae1ba":"38308","8aa4234a":"38329","2f85cf1a":"38339",d8234f55:"38386","54c9ac3f":"38403","445badb6":"38413","2a9ef828":"38478",b50ddde7:"38500",c303c441:"38550","486a139f":"38561","react-syntax-highlighter_languages_refractor_plsql":"38584","6511b439":"38588",a315deb3:"38621","169627b2":"38674",d3155368:"38724",b7b23aa0:"38725",e82b7062:"38749",d95083ed:"38773","51e2b9b2":"38791","2bf5cfee":"38809","1f67849c":"38963",fe0ceb55:"38964","592f8e2a":"39047","react-syntax-highlighter_languages_refractor_less":"39059","88879bf9":"39094","18a4a555":"39147","3484aa91":"39174","9a985c31":"39230",bf5d98b4:"39245",a25e84b4:"39294","react-syntax-highlighter_languages_refractor_basic":"39322",f4ab8097:"39428","3a0bcb93":"39430","0e9131e7":"39604",ca8035eb:"39713",b70cacd3:"39730","297bf93b":"39775",dbfc931f:"39865","88e12ebd":"39868","06e7c4eb":"39869","7e40ac29":"39876",d27f5625:"39920","7048d4ce":"39922","react-syntax-highlighter_languages_refractor_gml":"39964","1ec70417":"39975","4ad7c3a7":"39991","33ed5c55":"40048","44da012a":"40080","9ff4a30a":"40109",fc3311f6:"40170","3059c001":"40256","react-syntax-highlighter_languages_refractor_erlang":"40269",e255d312:"40314","0b078435":"40318",d5c9d331:"40341",d677aac6:"40370","1cd8632f":"40510","637e72cc":"40543","09a58613":"40550",b8d5d32c:"40578","react-syntax-highlighter_languages_refractor_qsharp":"40587","5ae56628":"40653","7245b967":"40675",c272450b:"40676","99cd8ab7":"40756","8ed09d5c":"40757","2835814a":"40765","4b93b620":"40771","1dc5c4ab":"40844","5b7a800c":"40881","43da222d":"40883","38e25f39":"40886","81c108ae":"40904","249fb7f2":"40925","838b5b83":"40956","9fe80417":"40973",cffd3109:"40999","9f0b35a2":"41029","9a80a9cc":"41125",ed27be7a:"41162",b2f1ec6b:"41196","3d401b68":"41209","85b3c4be":"41237","66b70b55":"41250",f913c9e1:"41278","88e50461":"41310","3873cc26":"41418",ff940ee8:"41438","6509bd7f":"41484","9d583bbc":"41533","react-syntax-highlighter_languages_refractor_nand2tetrisHdl":"41550","321bc46c":"41557","289e4581":"41695","07dacd47":"41763","5d12b69a":"41783",d3911073:"41787","96ac8335":"41841",fa28b8ae:"41870","2103ef9b":"41883",b1f3581b:"41899",edab235e:"41953","729c9d8f":"41997","987115d4":"42014",ef7e9322:"42098","0c368d1a":"42117","react-syntax-highlighter_languages_refractor_javascript":"42129","react-syntax-highlighter_languages_refractor_aql":"42258","react-syntax-highlighter_languages_refractor_vala":"42374",c756e6f1:"42542","72295bf7":"42547","5607dd87":"42585","068107c8":"42594","38ebe2a8":"42649","react-syntax-highlighter_languages_refractor_rust":"42674",e2b8f3b3:"42700",ebf6d32a:"42706","7ec16b44":"42779","774c2114":"42850","react-syntax-highlighter_languages_refractor_dart":"42875","29607d76":"42916","1cd504d5":"42947",a11eb45c:"43065","2331f9e0":"43082","662feac7":"43171","5453b8ab":"43203",f8d3051e:"43205","85d80a2a":"43244","0d999725":"43246","react-syntax-highlighter_languages_refractor_tremor":"43311","82f87a0a":"43362","0730a75a":"43371",d8036dc6:"43373","70a9316b":"43384","1354288c":"43385",aafbd2cf:"43396","8544a0ae":"43399",ed04f1fb:"43415","7eeb0290":"43447","88cf06e5":"43492",d61cad73:"43512",c9a36032:"43518",e16fb186:"43588",a14c09e8:"43628","react-syntax-highlighter_languages_refractor_agda":"43657","3e5eea78":"43702",df8fcf34:"43725","3cd58ed7":"43774",fa5d4061:"43784","3ac01926":"43864","47d7a97c":"43867",d4a3106e:"43923",f77d0a36:"43929","3e43f116":"43966","4160c096":"44000",b2a19ece:"44071","3d361716":"44164",b082f98f:"44174","6456cd00":"44189","5cbc3ad8":"44226",df895394:"44263","2d855ded":"44284","65dcd0ca":"44315",fd0a6753:"44321",db2831c5:"44335","1255c446":"44367","4d79096d":"44416","5e4beff6":"44422","59b1a96c":"44485",cd5af42f:"44498","react-syntax-highlighter_languages_refractor_sql":"44572","4576c8f1":"44603","8a64b13b":"44728","5352c3c1":"44760",c61b9d11:"44840","504bd232":"44843","react-syntax-highlighter_languages_refractor_cssExtras":"44928","9e1d9aa8":"44991",ecb2acb7:"45006",cc94ceb0:"45020","785022c5":"45041","4a36bee3":"45086",f5cb549a:"45134","3b01df24":"45165",dbf95cdb:"45168","4ddf9e85":"45362","98126bff":"45377","468ad1a5":"45379","0a3230e0":"45391",f0ec427a:"45399","8d19c782":"45421","react-syntax-highlighter_languages_refractor_pcaxis":"45424","2153f0f1":"45457","05ad514f":"45473",f9769a03:"45482",d9200ea4:"45538","119d0848":"45562","react-syntax-highlighter_languages_refractor_lua":"45578","52942f55":"45595",a5007b69:"45605",c3ef55e1:"45615",b47c3d90:"45633","31587db3":"45644","react-syntax-highlighter_languages_refractor_javadoclike":"45655",befd4bac:"45664","05841abf":"45688",a3a23757:"45708",ec2e8dec:"45716","6f68f3d9":"45817","3ef50eb7":"45820","react-syntax-highlighter_languages_refractor_xquery":"45852",ad7224a5:"45907",fbcdf376:"45916",e8817881:"45941",e0e75d4c:"45956","92867ac8":"45957","789a2e0b":"45977",bfd21d2e:"46005","5eee080d":"46031",a7369545:"46039","27a3eb30":"46098","33656b47":"46113","react-syntax-highlighter_languages_refractor_gap":"46148","67cdfdd2":"46155","5a815dde":"46202",a14ce513:"46260",dca0b9a7:"46268","6dfef0d2":"46277","7cc24991":"46289","6c0c92f0":"46337","189b1efe":"46364",a4177967:"46365","09f1b7a9":"46370","2d1f93fd":"46510","58b7b0b9":"46560",a25104ca:"46608",f061e388:"46614","5842531b":"46627","react-syntax-highlighter_languages_refractor_uorazor":"46684","343b998b":"46781","react-syntax-highlighter_languages_refractor_birb":"46783",b768d931:"46885",f3000fed:"46895","91cbdd24":"46932","26d4c39c":"47009",a1aecbfd:"47030","38cfee2c":"47078","0312cb91":"47160","249b7bb3":"47242",c3e81286:"47249","9c0047fb":"47268","673a4276":"47335",d2dfded4:"47362","9aaf6652":"47381","react-syntax-highlighter_languages_refractor_j":"47474","45fe6289":"47484","react-syntax-highlighter_languages_refractor_ejs":"47508",reactPlayerStreamable:"47627",e107c103:"47633",f42ee828:"47659","react-syntax-highlighter_languages_refractor_cshtml":"47681","react-syntax-highlighter_languages_refractor_uri":"47702","react-syntax-highlighter_languages_refractor_monkey":"47747","971a38c6":"47767","35cc95ed":"47784","0905db6b":"47809","47c18f0a":"47819",d01de654:"47821",dfa1c318:"47842","714b46c2":"47868","5ecc0e0d":"47982","6556f82c":"47986","617b3977":"48069",ce1419d7:"48073",f01ca2d8:"48084",a2a9ccee:"48124","8243d093":"48130",ab490682:"48135",e53b46e6:"48165",c5dc0443:"48179","react-syntax-highlighter_languages_refractor_editorconfig":"48217",ecfe4b02:"48260","1fa82a9c":"48290","359ea0ad":"48293","react-syntax-highlighter_languages_refractor_toml":"48296","3a9eba13":"48298","74a76ae0":"48306","154e5729":"48311",dc72c761:"48330","react-syntax-highlighter_languages_refractor_sqf":"48358","466f2ba5":"48383","932dd2b2":"48399","react-syntax-highlighter_languages_refractor_purescript":"48407",e409a3e8:"48410","8bc64f72":"48447","17fdb443":"48448","1d88f516":"48466",ef68cf0d:"48479",ba008c6f:"48495","57b63635":"48580",b0253b15:"48607","8564442d":"48614","6556f365":"48615","react-syntax-highlighter_languages_refractor_n1ql":"48628","react-syntax-highlighter_languages_refractor_nsis":"48658","3d9ee3c2":"48699","489198f0":"48724","1af51ab1":"48759",fff9a5a8:"48769",b9051fe3:"48820",de04d5f1:"48828","5b72e761":"48842","4f377837":"48872","2204bfae":"48889",a5141df7:"49056","react-syntax-highlighter_languages_refractor_parigp":"49099",ac1c1640:"49166","3bfe3344":"49193","095de2dd":"49240","0aa63ed8":"49299","5e57a6c5":"49364","9386137a":"49393",ca542251:"49418","16b624cd":"49437","55750b70":"49446","72190dff":"49470",d8da99b8:"49486","0db32707":"49516",e5928ccb:"49524","react-syntax-highlighter_languages_refractor_nevod":"49558","947f17cb":"49688","react-syntax-highlighter_languages_refractor_jsonp":"49706","85de6f50":"49708",d2e3ede3:"49718",e025d293:"49721",eb2a481c:"49741","59c2f98f":"49775",a4d22044:"49816","278ba6f1":"49826","react-syntax-highlighter_languages_refractor_bison":"49841","9790ecbd":"49910","58f19833":"50010","8515ba4d":"50015","489e804f":"50055",fb9907fb:"50070","2f6b6a72":"50079",dfc0f77b:"50086","08a2857f":"50108","9e78a629":"50218","1dd9bc03":"50247","06820533":"50256",b1918c75:"50261","react-syntax-highlighter_languages_refractor_cpp":"50267","react-syntax-highlighter_languages_refractor_parser":"50269","60a318f1":"50273","10caada3":"50355","459ece75":"50376","react-syntax-highlighter_languages_refractor_squirrel":"50429",c0b3a545:"50480",d7d82fec:"50524","react-syntax-highlighter_languages_refractor_javadoc":"50546","8fdf5cbb":"50559","6252d82a":"50565",b9157fbe:"50570","1b902f42":"50627","7e5acbc2":"50633",b89e34d7:"50677","28fb790d":"50689",b98a3192:"50720",fa0df550:"50868","react-syntax-highlighter_languages_refractor_jsstacktrace":"50902","7ddca44e":"50999",fb9d6a90:"51076","4894b2a5":"51126","1bb6e888":"51173","76aeeccf":"51197",bb5bc141:"51203",dccd5c7f:"51230",beb08ea5:"51261","5050e06a":"51379",e999d2e7:"51461","697b868e":"51476",da23fc7f:"51629","5a59ec38":"51698",acf3467f:"51755","52d9ca0e":"51766",ee41e96c:"51767","88bd1ae2":"51786","862cc2ae":"51853","5e7ceeac":"51877","972d9de3":"51942",b558b8bb:"51957","484cc2bf":"52059","5f63aa22":"52109","9e526c82":"52123","0949caca":"52187","9250359b":"52300","76c74c51":"52323","9cb3eb52":"52338",f430165d:"52350",c81bc7c4:"52488",e0e9c6d2:"52507",c0a1d8e7:"52520",ef889477:"52535","6208b38e":"52575","60075e55":"52602","3ef698e0":"52659","1760de55":"52670",da4a64b8:"52687","9e4087bc":"52711",reactPlayerMux:"52723","82d05188":"52736","1d691ac0":"52744",d61388e9:"52771","1a864cfe":"52824","3a84c761":"52826",f2480ceb:"52841",eaada425:"52870","1a4e325c":"52923",b7dbfcf5:"52950","5e7e9614":"53043","10216bca":"53059",b252d933:"53073",a2ae2293:"53104","react-syntax-highlighter_languages_refractor_pure":"53146","53829f6a":"53155","react-syntax-highlighter_languages_refractor_kusto":"53244",bf6cf1a0:"53290","857c9abd":"53312","1f4447b0":"53331",f2f586ea:"53340",a459382d:"53341","5b8828e9":"53346",c5ccab0a:"53357","1433766f":"53365","33b98b0e":"53373","8904d039":"53394","react-syntax-highlighter_languages_refractor_wolfram":"53411",e418e4b8:"53434",d5427438:"53512",c953d876:"53532","react-syntax-highlighter_languages_refractor_css":"53533","8d4a694f":"53535",e5ca2a09:"53559",d7b89466:"53577","9b1b579b":"53578","1eb9cbd0":"53633","33e591db":"53771","445fc630":"53844",f5330583:"53856",d09b5381:"53883","588bbf84":"53894","0e799f7d":"53926","react-syntax-highlighter_languages_refractor_json":"53950",ab0b233d:"53956","2acc85a0":"54024",ec7105bc:"54123",f856d019:"54130","1b384b21":"54150","9463bbe8":"54154",f7a0609b:"54190","3d9c0803":"54225",b7a87925:"54270","385b7a8b":"54305","985df1c8":"54321","6f7aec64":"54425","13587b6f":"54439",e7754b42:"54443",d5d5b97a:"54488","5b6b73b7":"54521","99e85153":"54544",d18a26dd:"54551",reactPlayerWistia:"54578","3d63fc2c":"54583",b85a9f98:"54637","1526b72e":"54643","5d3c38b9":"54680","react-syntax-highlighter_languages_refractor_icon":"54779","1f0b0f87":"54809","4cce6c45":"54836","4d813ae9":"54864","1331cac1":"54923",b2204922:"54924","2ee7302f":"54941","16cb573c":"55123",d4fd02a2:"55134",b6070a89:"55172","7e597538":"55196","8ddb77b9":"55204","136d1781":"55228","react-syntax-highlighter_languages_refractor_racket":"55254","7caa11fe":"55354","51f6fe90":"55413",b5a8b287:"55436",b9ec351d:"55491",d307b2e7:"55567","450ea376":"55636",fd3999a2:"55682",c39b98ae:"55689","654302d1":"55740",c39e9ffc:"55759","39c4eb85":"55838","79aae9ae":"55905","51e54913":"55918",cacaa339:"55923","8623028f":"56220","4c41c9c0":"56276","0eae0f27":"56279","react-syntax-highlighter_languages_refractor_systemd":"56309",a09cde74:"56356",d199957e:"56462",db89881b:"56513","456c6382":"56520",de65c9ca:"56649","react-syntax-highlighter_languages_refractor_n4js":"56659","0c8a934d":"56745",b29ba058:"56786","3c251c9b":"56863","26cc18e4":"56877","88ee6ffe":"56894","5ce82fd7":"56935",bf47a095:"56941","733ff2e4":"56949","8051ae43":"56980","3a8bd4bf":"57101","684eee01":"57155","1cee73ee":"57257","2b4792e5":"57275",e1498222:"57362",bf0a32f5:"57390","382e7033":"57446","6d461a16":"57452","652a49f9":"57477","0c4a29b5":"57513","0d31935c":"57547","66e058ba":"57564","1e37458e":"57611","59787bf6":"57643",c541a70c:"57753",ed4087e4:"57764","604cdde5":"57800",e9c59f9e:"57810","0a70c105":"57870",bca99e98:"57897","5cedbb53":"57912",be0253a0:"57925","441d194b":"57940","0ca0b0dc":"57946","7496857a":"57958","9fc89130":"58004",a10a40b8:"58006","34f0c71b":"58015","42535bf1":"58027",fb8d6a8b:"58154",c9f5fef1:"58184",d80f1f80:"58212","296f4fae":"58232","40c229dd":"58243","08a5ee24":"58369","21f8fbc5":"58382","530b174d":"58385",ec9d0c94:"58400",da086284:"58406","7979c47e":"58426","react-syntax-highlighter_languages_refractor_bro":"58435","069db899":"58470","26bd05d8":"58492",cf4e5fc9:"58496",ff95dbe5:"58501","react-syntax-highlighter_languages_refractor_haskell":"58524",ad9e86c8:"58529","115d24a6":"58533","758d3ea7":"58579","react-syntax-highlighter_languages_refractor_jsdoc":"58625","417344d1":"58653",cdfd964d:"58701","4a273e94":"58724","2c52c506":"58737",ccb430af:"58779",d7d61170:"58797","react-syntax-highlighter_languages_refractor_phpdoc":"58874","9db2d1a3":"58885",a1625a56:"58898","0930826d":"58899","react-syntax-highlighter_languages_refractor_webIdl":"58967",a0197bc0:"58988","60c08eab":"59000",fabd6f9d:"59077","1380f56f":"59080","023fb35c":"59083","807581be":"59121","7b9efe2c":"59228","react-syntax-highlighter_languages_refractor_julia":"59259",bb7fbc9b:"59267","573ce20c":"59339","281af881":"59364","react-syntax-highlighter_languages_refractor_xmlDoc":"59400","react-syntax-highlighter_languages_refractor_wasm":"59416","5716a2db":"59457","2aa88386":"59474","react-syntax-highlighter_languages_refractor_cypher":"59493",b698923d:"59572","02c6cf8b":"59595",b933f59c:"59613","react-syntax-highlighter_languages_refractor_visualBasic":"59638",eed6e9fa:"59670",f6e782f1:"59682",d74ba37f:"59689","6a46ba5c":"59693","136e60ba":"59697",e0f251e8:"59709","0066d393":"59720",ab3396d1:"59776","react-syntax-highlighter_languages_refractor_zig":"59802","362ed32e":"59811",e55a4fef:"59872",d648e0dc:"59893","911d8c7f":"59918","274493b4":"59948",c5d0f198:"59959",dfbdb6e6:"59990",ccd9b945:"60026","8876920a":"60056","71d3d938":"60060",a2c4ea39:"60105","55013e73":"60150",f576c39e:"60171","7caeede7":"60180","082096a6":"60233",ab3a66ff:"60274","12163d80":"60318","59b25598":"60372","react-syntax-highlighter_languages_refractor_lolcode":"60397","4abb65f9":"60438","5b3d51ee":"60635",f1ae2ab6:"60645",e294a72f:"60661","375142f7":"60688","59be7119":"60704","78232d1a":"60731","119b5944":"60750","39d24ba3":"60795","0c5d4dc6":"60916","1a606663":"61062","09df528d":"61077","547da171":"61259","6696da19":"61269",c407fafb:"61270","86ed2047":"61331",f86990e3:"61449",d166fe6e:"61458","5c7abbfb":"61487",e7369992:"61499","5564a6f2":"61538","7999f1c8":"61591",d057c98e:"61596","react-syntax-highlighter_languages_refractor_coffeescript":"61626","443fb58c":"61644",bd0998c4:"61658",d4309a19:"61734","7f29bbea":"61745","0850322a":"61768","2ab56b4b":"61789","6fbe6a20":"61825","6453f134":"61867",fffa417e:"61869","7e45ec3c":"61892",d6a94e06:"61940",ef005f66:"61955",da1cffb4:"61984","0b966913":"61999","4f27f596":"62018","1edb61db":"62030",c4a1f4c8:"62059","3611c18f":"62076","691ed9da":"62094","1a4e3797":"62138",e7ad37fe:"62145","1433b888":"62180",ad924d3c:"62187","00b08266":"62255","react-syntax-highlighter_languages_refractor_scala":"62266","9ce6dddd":"62278","1d525bc6":"62331",ec129530:"62369",f186fa15:"62447","3c615ee9":"62526","595a064d":"62557","64a60d91":"62586","7ee78ddd":"62623",e44e64d2:"62633","85cca100":"62686","react-syntax-highlighter_languages_refractor_d":"62700","84176ea9":"62702","react-syntax-highlighter_languages_refractor_glsl":"62703",ef8a130c:"62748",c40457f4:"62784",d335c13c:"62798",c299247c:"62814",d51139b9:"62879",dd55089f:"62900","8e184430":"62924","424f7822":"62926",ecb76145:"62972","1744d9ef":"62987","react-syntax-highlighter_languages_refractor_kumir":"62996","3b55fa84":"63109","react-syntax-highlighter_languages_refractor_asciidoc":"63189","4e468cb5":"63192","1d6952be":"63229",e2aabbf2:"63240","react-syntax-highlighter_languages_refractor_avroIdl":"63257","3d433104":"63317","67110b34":"63347","65b2603f":"63361","4f305e9d":"63429","6437651f":"63501",c9d00955:"63512","react-syntax-highlighter_languages_refractor_shellSession":"63514",ae8a03f1:"63540",a7684126:"63544","react-syntax-highlighter_languages_refractor_soy":"63563",e8673c18:"63564",f3d53788:"63617","2fe40030":"63649","5c81920a":"63734",fb082bc4:"63778",dc513550:"63829","78fb8ac4":"63838","7508e420":"63862","355cddc1":"63879","7cbcc085":"63912","62c63405":"63936",a2ef8f4a:"63944",f8f774f6:"63945","3ca2f5e8":"63956","9c43bca2":"64056",f9d43cd0:"64118",b7928f35:"64165",c63a6bf2:"64172",cb021527:"64265","62dd094d":"64266","01258f32":"64276","44ad1539":"64322","46e3eb97":"64376","2d2846a3":"64405","8b423c88":"64429","3399f83d":"64452",c2e411a7:"64521","7a92f3a2":"64598","3d715aaf":"64625","6932e7e9":"64637","react-syntax-highlighter_languages_refractor_prolog":"64649",e7eebdd2:"64669",f47381a8:"64741",b9037fb3:"64757",dd6e7426:"64769","react-syntax-highlighter_languages_refractor_apl":"64789","react-syntax-highlighter_languages_refractor_lisp":"64916","react-syntax-highlighter_languages_refractor_tt2":"64930","076f04c4":"64957","42358eea":"64958","053cb7b9":"64966","react-syntax-highlighter_languages_refractor_elm":"64972",ee2c6227:"65005","5fe15dfe":"65108",f8c45d49:"65154","72851bf5":"65211","0366a4ab":"65214","102dc9d8":"65318","7f44bfbe":"65443",d0cf869c:"65506","746d0e9d":"65530",cbd403e1:"65541","84c33ac6":"65546",aef47f3c:"65558",f017e80d:"65574",b18c5707:"65584",ee60c80b:"65644","4c18ed88":"65704","9a3834db":"65727","react-syntax-highlighter_languages_refractor_antlr4":"65747","10f60329":"65768",d42442ad:"65800",bbaea50b:"65801","55efc743":"65833",b4422cbf:"65862",e84f4d3b:"65893",ba6db769:"65908","4e938852":"66051","4cc3e184":"66108",bbc1526c:"66151",ded3cf55:"66160","8668037f":"66167","0a883215":"66179",e792eed9:"66253",b31fc0c1:"66294",b87db3e4:"66302","4796a906":"66321","4c6aea94":"66326","react-syntax-highlighter_languages_refractor_brightscript":"66333","1b8b44cb":"66335","3d855a71":"66377","4c747e24":"66391","0781cab6":"66461","0f5ebe93":"66464",df2e5c06:"66476","991fb41c":"66498","react-syntax-highlighter_languages_refractor_qore":"66503","9ad862d6":"66543",d126772e:"66559","21d4be1f":"66570",d77891b1:"66580","8230e064":"66681","83b030ee":"66685","296c0e6c":"66721",b417c6aa:"66744","06721981":"66785","react-syntax-highlighter_languages_refractor_qml":"66814",d0c584e6:"66974","7c01d80d":"66988",c87c86f8:"67012",af7a29e3:"67021","4792e0e4":"67033","react-syntax-highlighter_languages_refractor_mongodb":"67046","9f6d52d0":"67077",a7bd4aaa:"67098",f2fb7a7e:"67099","4e2df8d1":"67131","93937d89":"67163","19d1e53c":"67188",d317da6b:"67197","3f061afd":"67210","4ac39b16":"67212","react-syntax-highlighter_languages_refractor_mizar":"67233",f2b0b23c:"67251",dd05240d:"67348","6d046fd1":"67356","1bd8ecb4":"67360",e38562d3:"67409","1bef7206":"67430","2355cca6":"67459","8c96a320":"67463","1c0e45ac":"67507","97421d25":"67509",ec737569:"67510","01cd3e16":"67554",cb2a4682:"67567",reactPlayerMixcloud:"67570","2c8a0136":"67741",ce85bb56:"67760","808a0f07":"67775","5e1dea42":"67778",d285a603:"67786","react-syntax-highlighter_languages_refractor_unrealscript":"67824",db2b8f72:"67844",a17829df:"67853","react-syntax-highlighter_languages_refractor_sml":"67880","0d9bb350":"67904",c705508e:"67970",f75e9c39:"67984","325894d6":"67994","107641aa":"67996","1368b7ad":"68083",eb9a02eb:"68103",a7695677:"68167","react-syntax-highlighter_languages_refractor_mermaid":"68169","26aa5820":"68188",af69b723:"68241",f964c4d2:"68249",e19e6f29:"68280","3f6c4654":"68284","7f4249ac":"68291",aae300c2:"68302",b3e46864:"68325",ff5e8246:"68405",f6ffd881:"68442","158bfad3":"68483",e755d0e6:"68516","1e5e38d2":"68532","react-syntax-highlighter_languages_refractor_psl":"68565","91808e49":"68589","6e8eec15":"68651","31c91ca6":"68658","react-syntax-highlighter_languages_refractor_excelFormula":"68665","40e8ceb7":"68697","6ab2947d":"68718","react-syntax-highlighter_languages_refractor_bbcode":"68755",f7890f03:"68794","02ef4c57":"68807","26fcf1a9":"68827","28abe367":"68857",a673bf6e:"68887","2374e6f8":"68960",a6fa8647:"69036",ef64c4f2:"69057",c08d19cb:"69067","66dcc4b5":"69122",f825d23a:"69160","77950fa2":"69320",b9ea81b2:"69347","950931e2":"69405","5ace20af":"69418","7c7d428a":"69443","4682d2d8":"69477",a924e136:"69538","6d09db5d":"69589","8ea8e566":"69699",ee44e581:"69706",aa4191a2:"69727","2c7448ca":"69739",f42f81c6:"69791","57037ddd":"69813",ee7da673:"69919","3d573c2b":"69920","5e7680af":"69959",reactPlayerSoundCloud:"69979","080a10de":"69984","23fb7a7a":"69998","7ba16f8f":"70004","2b4aad25":"70134",d1af5c8f:"70137","react-syntax-highlighter_languages_refractor_stylus":"70158",e4c53779:"70166",c31124d7:"70194",cf87040e:"70202","react-syntax-highlighter_languages_refractor_turtle":"70206","37af6c2e":"70274","9d8d3b82":"70285",f25eb25a:"70323","8efdab61":"70410","react-syntax-highlighter_languages_refractor_hsts":"70452",df744780:"70479","963b4e80":"70500","072a25fc":"70577","93992acb":"70673",f39fe5e1:"70683","9ecc99dd":"70689","29a327f0":"70691",b7405323:"70715",f26021be:"70749","9fe72ec7":"70787","20bc3b2a":"70796",c86fcd09:"70846",be6ae73c:"70901","react-syntax-highlighter_languages_refractor_apacheconf":"70904","17a70d5d":"70936","20325a74":"70973",d87902f8:"70975",d6c81112:"70987",f9fda3b4:"70992","530f4156":"71033",ee190ecb:"71089","react-syntax-highlighter_languages_refractor_verilog":"71114",a1a74ff7:"71134","82abf28b":"71170","react-syntax-highlighter_languages_refractor_smalltalk":"71191","08abace2":"71219","39ef07bf":"71249","50ae2127":"71284",a8e711ad:"71293",fa5754de:"71338",ab11b089:"71407",c009e0ea:"71522",fadaa97b:"71544",ba53c358:"71545","7e94978c":"71547",ec3d1d8f:"71575",d7155f24:"71633",b0a7cefa:"71670",aac8f64c:"71695",ac393c34:"71784",a9652de9:"71786","42ba7a72":"71897","5b08419b":"71950",cffab271:"71975",ad462f8f:"72132","14ab434b":"72168","1f42e7e9":"72194","511cd196":"72213","56244f75":"72226","5d1b72a5":"72312","react-syntax-highlighter_languages_refractor_sas":"72331","42e26ccb":"72370","8f4dec9c":"72373","4b7797e4":"72444","9c7cc367":"72478","437ede7f":"72498",d8a0d145:"72524","react-syntax-highlighter_languages_refractor_ini":"72638","0a1fbee2":"72677","react-syntax-highlighter_languages_refractor_flow":"72688","6801b6db":"72758",dada8f94:"72762",a75775f6:"72791","5840731b":"72799","8920885f":"72825","09b3005f":"72842",ef25b615:"72891",c493b44e:"72905",d79a09c1:"72923",a830e4b2:"72926","61eef94c":"72942","react-syntax-highlighter_languages_refractor_elixir":"72961","1d03d6e2":"73000",a0dead3c:"73032",d667c0b1:"73078","1afa4d9b":"73079","5d03c6ac":"73108","00fba8ee":"73114","914dafa9":"73222",d2777c07:"73294",f8bc10ee:"73305","60f30c52":"73314",f5d7fbb5:"73420","38ef95cd":"73428","1157c0a0":"73435","9cbcbba7":"73458",b1b6f51f:"73486","react-syntax-highlighter_languages_refractor_bicep":"73565","321aeb62":"73631","7fef1252":"73657","react-syntax-highlighter_languages_refractor_wren":"73702","50c9449c":"73728",b099d865:"73740","react-syntax-highlighter_languages_refractor_splunkSpl":"73764",e5ce14ce:"73770","0461a59e":"73784","react-syntax-highlighter_languages_refractor_t4Vb":"73792",cca22f55:"73814","0707bfdf":"73841",cbff81e6:"73872",cef80e7b:"73907","66ba1253":"73933","6cab2901":"73949","86ea5176":"73966",ac4a5bdf:"73993","60b3a959":"74080","089a82e6":"74086",e3fb89bd:"74100","67ad386f":"74128","5255a2aa":"74139","react-syntax-highlighter_languages_refractor_python":"74150",e8f488f2:"74182","6ba34660":"74231","1424de6e":"74256","7f8a8201":"74274","0c8b9d2e":"74290","8bf21c87":"74314",c6d88f19:"74344",aed1a1f8:"74348",d0943c22:"74378","6f41f982":"74379","9d60ab49":"74394",ea5f7c81:"74403","7ac630cd":"74408","react-syntax-highlighter_languages_refractor_jq":"74415","react-syntax-highlighter_languages_refractor_autohotkey":"74447",a03ea81f:"74534","react-syntax-highlighter_languages_refractor_maxscript":"74559",aa075c5b:"74603","0b7fbfc6":"74685","215406cd":"74692",f935dd10:"74735","react-syntax-highlighter_languages_refractor_typoscript":"74743","2e5f32a6":"74787","7061117b":"74792","23c8644f":"74859","2f134766":"74876",bfeaad80:"74886","1e82b627":"74906",b3bee5cb:"74932","react-syntax-highlighter_languages_refractor_t4Cs":"74970",d9d5a6eb:"74991","99be92e2":"75132","47c0e8e9":"75140",ca95ed59:"75160",e6d88c2f:"75165",e4d42027:"75187",f1eb891b:"75189",b1931760:"75242",e80d6e48:"75335","33a01747":"75349","26e15311":"75371","448ddb3f":"75442","01238279":"75445",d2040756:"75447","3a4c81ec":"75549",d71f0f29:"75556","5035f47e":"75558","3cbd143d":"75565",c628ee99:"75566","25f1e45d":"75635",b79043a7:"75642","20b10583":"75664",a75d7931:"75708","5bea5d99":"75713","174f56f7":"75737",a96bf424:"75757","33ea99f7":"75760","32fe2928":"75770",acf18a7d:"75792",f9bd1242:"75817","5f30bdcd":"75824",d5a36a04:"75885",f4eaeb6f:"76038",ac855284:"76047",fc4f0796:"76090",f6ee50e4:"76105","06be8218":"76151","039c2abe":"76188","3a847c18":"76226","3fbbd404":"76276",dc71548b:"76357","1f8a7b48":"76396",c216db98:"76472",b429bf35:"76474",d56578af:"76481","1da04d3e":"76491",cb8b67e4:"76572",c1e1acf0:"76639",ab0bf3e7:"76641","5db7fa95":"76776",fa89cb6b:"76778","7fec31e2":"76785","51903cad":"76823",b1cc273b:"76840",fefe148d:"76848",aabc0ec8:"76864","react-syntax-highlighter_languages_refractor_reason":"76959",f9182fb2:"76999","43ad3ca2":"77012","95ee5932":"77018","58560ef1":"77103","72d07e92":"77129","832ee537":"77203","2f747fdf":"77211",c982175d:"77246","18288bc3":"77250",a924f441:"77324","5dbc3e8d":"77345","500c065c":"77373",cd2b8160:"77405","8c03fd2b":"77445","15caf699":"77471","5dca5ac8":"77583","3287d369":"77595",e81d0e1e:"77600",ef37accc:"77614","3b20c1dd":"77650",e3f4b308:"77696","4fcab111":"77720","66e4d0a2":"77769","211b51ca":"77827",f4587cab:"77853",f0d0e198:"77884","0c8d97b3":"77897",dd565dd8:"77909","react-syntax-highlighter_languages_refractor_keepalived":"78030","01ab01b6":"78034","9f88a2cd":"78102","97c0779d":"78119",fe55f083:"78127","07141e59":"78131","429814d4":"78149","0418c30a":"78171",dd43488e:"78193","15fe9bc6":"78220",d595705d:"78246","5a321768":"78296",b75244f3:"78310","9196162d":"78383","9496f51f":"78423",e64d5ab5:"78439","3612467c":"78477",f85e5383:"78496",c825b36e:"78575",a5a3f150:"78609","41bc5a85":"78668","34eacc23":"78707",c9c8151d:"78715","96ef95b3":"78856","react-syntax-highlighter_languages_refractor_jolie":"78857","965af625":"78911",d03b7a4d:"78912","6221e24e":"78948","431e05c0":"78974","8fe57593":"79019",a94703ab:"79048",c42c92be:"79121","28e3f086":"79125",aafe3f65:"79150","40c8b908":"79153","61f663f6":"79189",c820015d:"79242",d9992386:"79375","599e1944":"79449",cce13ea8:"79496","3f41baaa":"79532",af02ed74:"79534","9018a0ee":"79550","8284165d":"79587","82261fee":"79626","562762ea":"79669","965c27e3":"79775","797225bd":"79817",e9ecd197:"79824","9c454042":"79860","6c627f70":"79872","3aad441a":"79910","1660a08d":"80055","769f7d2f":"80092",eeb40fae:"80095","7cc2f713":"80139",d3a40c81:"80157","3ba7bdee":"80168","609c778c":"80172",abf5f816:"80202","2d6fa985":"80210",cda840ed:"80218","03c9f6fe":"80239","8050bc23":"80292","5c9d290a":"80346","5fc14df3":"80395",b5c55420:"80445",d65ccfad:"80449","1eb2e24f":"80466","076004cb":"80497","7e5bea7d":"80509","3746de72":"80517",a50a13ae:"80534","react-syntax-highlighter_languages_refractor_icuMessageFormat":"80535","47230c70":"80555",c91f1151:"80614",c31963e0:"80625","221a6728":"80722",eabd393d:"80818",e0f7d826:"80869","00c4c653":"80877","7d17e27c":"80921","1cbead02":"80925","44d9bf36":"80945","713c2b65":"81018","react-syntax-highlighter_languages_refractor_bnf":"81126","3ddae676":"81133","8592fd65":"81182","2622e14f":"81215","47b9c082":"81252","88a9b244":"81253","47472e67":"81285","react-syntax-highlighter_languages_refractor_chaiscript":"81374","81ce0256":"81477",b2d999b4:"81478",c6574ca3:"81523","4c13e417":"81551",f05f9002:"81557",f4fefb2b:"81562","842166e0":"81571","91f3db67":"81587","8d33dcef":"81647","6c5accb4":"81648","7d72dd5c":"81689","6f93b87b":"81690","2971748c":"81722","5f024599":"81739","7ee98428":"81755",dda8c5df:"81810","7b60984d":"81833","react-syntax-highlighter_languages_refractor_rest":"81845","28f63a4a":"81872","42c11118":"81876",ebe41efc:"81898",d71698ef:"81899","57412de7":"81920",e2949224:"81934",a427a491:"81940","4f2a7d1e":"81949","5e6a4890":"82089",e6648f6d:"82168",a57147ed:"82169","21745da0":"82261",a1ba0919:"82301","334af7bc":"82312","8c27e6c2":"82387","326287e5":"82405","194d9b3b":"82451","react-syntax-highlighter_languages_refractor_hlsl":"82465","0dc9b583":"82507",d63c2992:"82509",fd07ea8a:"82537","0bb24080":"82561","1587a16c":"82697",f335c91b:"82723","90cb823e":"82737","0bae03b5":"82751","react-syntax-highlighter_languages_refractor_tsx":"82757","87d435e3":"82760",be9ef770:"82778","react-syntax-highlighter_languages_refractor_perl":"82795",df688f1d:"82814",e094fc64:"82948","react-syntax-highlighter_languages_refractor_opencl":"82957",aa62adf4:"82996","6478aa15":"83048","2b10be0e":"83050","75d5b163":"83056",ccc49370:"83249","97ae6104":"83254","react-syntax-highlighter_languages_refractor_ignore":"83294",de015d47:"83319","8e0713dc":"83358",c3895984:"83362",a9d2e8b9:"83379",c71bde62:"83458",a78d6057:"83501",a8b251eb:"83519",a2bcdd9c:"83523",c5c4bba3:"83526",bb84d213:"83537","864105da":"83556","0703c8c0":"83571",ca4529ab:"83640","react-syntax-highlighter_languages_refractor_wiki":"83660","9e428f80":"83705","39ebe4fc":"83748","react-syntax-highlighter_languages_refractor_roboconf":"83750","688acf31":"83795",d7100e0b:"83816","2a3cbeba":"83854","554cfdc3":"83953","663de6d3":"83964","418e8cdd":"83972","15f74a0f":"83995",eb00eaeb:"83997","26b1b7c2":"84002","9068f0c9":"84028",b47ca0bb:"84072",c83612e8:"84075","4d7d3c38":"84085","68a59ac2":"84114","6991b80b":"84142","9b71048f":"84164","react-syntax-highlighter_languages_refractor_regex":"84165",fbca3986:"84357","002be5e5":"84379","react-syntax-highlighter_languages_refractor_kotlin":"84380","654d2c12":"84508","98f063ad":"84512",fa456b95:"84599","819c3599":"84604","7e3f713a":"84612","1b4c64c4":"84618",b9818803:"84630","950ca165":"84651","7728e7fc":"84694",d002a117:"84715","5392a2e7":"84799","2f565d80":"84805","6875c492":"84813","react-syntax-highlighter_languages_refractor_jsTemplates":"84814","9a5e78a1":"84844","15b007f7":"84849","8a011b37":"84860","3467b599":"84878","react-syntax-highlighter_languages_refractor_xeora":"84911","17ff4779":"84940","react-syntax-highlighter_languages_refractor_oz":"84983",a8ff281e:"85004",a6cf45db:"85038",f746b020:"85084","4a0c5286":"85118","react-syntax-highlighter_languages_refractor_arduino":"85256","9b16476c":"85261","370dd6af":"85270","65755be8":"85274","6294ba83":"85296","8011422f":"85335","238169b7":"85393","6ba05eba":"85421","294e2a7e":"85498","7ede7b6b":"85541","492894b8":"85601",c27bd714:"85611","452c2877":"85659","069d7fe6":"85672",eb0636f9:"85756",bb6de43f:"85761","756af54c":"85764",e53e3689:"85807",ea94acda:"85811","348e6255":"85901","5e406cff":"85904","12ef6b22":"85919",f43dccde:"85931","4b2beafe":"85960","5594002f":"85974","8a00ea0f":"86066","797518a2":"86097","react-syntax-highlighter_languages_refractor_iecst":"86100","react-syntax-highlighter_languages_refractor_haml":"86118",c9cf9c44:"86304",af4da409:"86312","react-syntax-highlighter_languages_refractor_puppet":"86314",c4ffec93:"86350","42bd8841":"86394","377aa359":"86439","2310845c":"86445","0c2bf8fc":"86611","10ddb313":"86629","14bbc827":"86632","react-syntax-highlighter_languages_refractor_vim":"86660","3d8f43a6":"86682",acc0ad9f:"86688","85bc4ade":"86691",e678c393:"86741","5694205a":"86761","71573d8d":"86810","react-syntax-highlighter_languages_refractor_velocity":"86817","3407173c":"86843",a3aedac7:"86874",reactPlayerFacebook:"86887","react-syntax-highlighter_languages_refractor_markup":"86916","react-syntax-highlighter/refractor-core-import":"86943","0b5b0129":"86958",b5683a3f:"86973",afec6c99:"87009","27ba3f26":"87026","179b0f27":"87037",b379fc0c:"87076","7bbde89b":"87088",c3dfaf41:"87107",caf73bf9:"87154",c690545c:"87168",ab18489a:"87195",a39047bc:"87206",fd7b20c0:"87229","react-syntax-highlighter_languages_refractor_json5":"87351","94a5927b":"87384",d065cd71:"87393","react-syntax-highlighter_languages_refractor_latte":"87394",c7658393:"87401","43acd4e4":"87403","14d25af5":"87475","434fdd5e":"87492",a46c8e03:"87623",b00f6a85:"87745","03809716":"87797",b5e1a6cc:"87801","57b87c5f":"87826","3009ed69":"87851",dbe0daa0:"87852","36f4dc34":"87864",fd40cf15:"87940","1cb5f507":"87952","9b002a17":"87977","7bc6d53d":"87995","4e800307":"88002",b791d8b9:"88047","2782d49b":"88049","501e4372":"88062",cdcb48bc:"88156","9f968b87":"88190",b49e047b:"88196","0fa0f141":"88224",f3840267:"88289",f716fabe:"88307",d406b88c:"88352","19f2ca6d":"88379","315ddae4":"88434","91f294be":"88449","36dfd3db":"88471",ac2dfd5f:"88514","63526b32":"88648",f9f47e39:"88670","29cb98a3":"88764","react-syntax-highlighter_languages_refractor_ichigojam":"88813",acf65e43:"88866","6588b4a3":"88906",cd36e440:"88961","8f3b4fe1":"89118","6aef6f7d":"89136","93ff6d8e":"89200","78db2db6":"89202",fcc80eb3:"89207",b4a53a7b:"89228","075a80bb":"89274",a0867ff0:"89315",ed119645:"89318",a0a27c6d:"89345",b8b5bd65:"89359","9ac62244":"89374","7667205a":"89401","39a0d842":"89434","89dd2c88":"89451","react-syntax-highlighter_languages_refractor_sparql":"89523","react-syntax-highlighter_languages_refractor_smali":"89536","6f2bec23":"89562","3e6c110a":"89653",fe94516f:"89749","11417f40":"89767","4f32aa66":"89788","28916d1d":"89810","0da678e3":"89851","570e864f":"89870",fe7fc6cf:"89883",f8877092:"89886","86d2b86f":"89901","9f20da83":"89906","react-syntax-highlighter_languages_refractor_bsl":"89907",a9188981:"89922",e4d1727b:"89925",c3047722:"89951",c22d2964:"90135","3ea95164":"90189","9263e0b5":"90211",a5d56b83:"90251",eb04b82b:"90268","5f80341c":"90271",d0680d38:"90352","641851e1":"90398",b9fc7718:"90428","4ac2fc34":"90453",aa8810f5:"90469","4d5a290f":"90476",e08a3998:"90566","84b4b0f0":"90577","07049aac":"90618","1ceb8501":"90638",fb46656d:"90660",d752a24b:"90738","25cb628f":"90841","1d3aaf79":"91017","67be0d90":"91022","react-syntax-highlighter_languages_refractor_apex":"91060","3eb7155c":"91084","06211346":"91116","react-syntax-highlighter_languages_refractor_gcode":"91156",ca4f381f:"91157","5058ca96":"91222","18e33524":"91230",ec22d082:"91261",eecc085a:"91273",c5c0b0a2:"91285","1441d32f":"91322","5a817b84":"91323",bf8d3126:"91375","4f5e4689":"91440",bee41f69:"91501","2ea21f12":"91545",a7b05e0e:"91650","38fc2797":"91694",dc5b7d00:"91812","97804c8f":"91818","1370da59":"91917",fdf73d72:"91974","react-syntax-highlighter_languages_refractor_autoit":"92038","87cf2e7f":"92051","react-syntax-highlighter_languages_refractor_php":"92208","react-syntax-highlighter_languages_refractor_jsExtras":"92224","react-syntax-highlighter_languages_refractor_t4Templating":"92279","react-syntax-highlighter_languages_refractor_hpkp":"92281","react-syntax-highlighter_languages_refractor_peoplecode":"92310",fe79fa06:"92325","94614d42":"92349",a63ec547:"92353",f3b9af56:"92357",d6d40f1a:"92441","70596a0e":"92618","34b5b841":"92634",cd85436c:"92669",e97676a8:"92674",a1c66966:"92817","3fb9fa74":"92837","4f07da2a":"92876","2ab6ed1b":"92878","5dc012c4":"92917","204c7f3a":"92941","00fcd487":"92965",e06a2e19:"93022","5a8284fb":"93043",f4a1322a:"93083",fdbbf13b:"93125","react-syntax-highlighter_languages_refractor_cfscript":"93134","react-syntax-highlighter_languages_refractor_go":"93154","31d83792":"93176",e753b790:"93209",a7b14b44:"93222",caaec321:"93260","3cb117e5":"93292","962f4cb5":"93306","35cd6961":"93322","1f01eb18":"93345",b7085b68:"93453",c1ffbd90:"93594","697b9cf4":"93621","8f5b2368":"93643","51fca4bb":"93683","8b14a28e":"93702","605113b7":"93750","84e6b9d1":"93792","106ef2cc":"93873",a87414cd:"93895","54f66e43":"93896","740d3abe":"93905","46b3a108":"93918",ff527a96:"93931","react-syntax-highlighter_languages_refractor_jexl":"93943","00680038":"93992",c6646684:"94002",c78e98fe:"94008","993cbf44":"94099",f9908443:"94136","3aaad431":"94161","47dbd172":"94188",be97ed8b:"94221","009100d0":"94297",fbf3b537:"94347","3ef996ea":"94431","533fc6b0":"94445","1821984a":"94453","6382a988":"94458",dd3a9da8:"94471","619cd51f":"94536",cac821de:"94544","1692cb21":"94575",aa959c31:"94707","2a184061":"94708","react-syntax-highlighter_languages_refractor_nasm":"94715","5b9a485d":"94731","00861925":"94736","react-syntax-highlighter_languages_refractor_processing":"94753","5363c4f1":"94768","1f67da4f":"94792","react-syntax-highlighter_languages_refractor_clojure":"94804",b6b3bb02:"94828",fa73b103:"94882","329ca26a":"94950","0f2fc92d":"94987","721813e2":"95026",a8ab55fc:"95030","366bfd22":"95134","06932a2f":"95142","4dfc54b0":"95215",a313a68e:"95247",d17d2a45:"95301",e39b329f:"95356","4df2e0be":"95391","5133cdf6":"95534",a342637f:"95551","react-syntax-highlighter_languages_refractor_mel":"95570","react-syntax-highlighter_languages_refractor_vbnet":"95593","react-syntax-highlighter_languages_refractor_actionscript":"95611",b801efaf:"95700",ccb1a797:"95754","8c923ee4":"95758","1f1225fd":"95790","6fec4aa1":"95808",e706ca3e:"95861","900ddb98":"95897","1156b798":"95910",cc7b7b9f:"95924","0311d3aa":"95927","2505d713":"95930","3d2a3a69":"95974","2936973e":"95999",fbc6c0d5:"96040",e7a82fd4:"96052","5917d54d":"96064","7d4f5762":"96184",bc91b8f4:"96240",cbbeb50f:"96242","636c6fa3":"96355","741edb4c":"96385","6559a382":"96388","93b756d6":"96421","7fa2298a":"96491","react-syntax-highlighter_languages_refractor_bash":"96514",ef44e405:"96540","937a6729":"96553","react-syntax-highlighter_languages_refractor_cmake":"96593","546ceb2f":"96604",f7965b57:"96614","react-syntax-highlighter_languages_refractor_q":"96641","4fcf0eb5":"96656",bfff7bcf:"96663","50db9164":"96750",f5eb0920:"96758","43cf978c":"96776","2303af1d":"96915","576cc9a3":"96946",c32d4a95:"96952",be4d75bf:"97000","5187626c":"97007","36fbdcf0":"97013","697a5b17":"97089","7e9f6be8":"97133","2ac672d7":"97139","3350d1a4":"97160",f12d2f88:"97202",e41c387a:"97297","5954047d":"97351","87c52fcf":"97395",abe07a54:"97446",reactPlayerFilePlayer:"97458","5df541c2":"97569","07b21e7b":"97665",cac4c78d:"97804",b3505693:"97808","89b17141":"97811",e1bfd502:"97830","4d66e8f2":"97872","5daa4f35":"97880","569beb23":"97915","620b2e0c":"97933","2192572e":"98006",f294f0d5:"98095","44c0224a":"98099","react-syntax-highlighter_languages_refractor_latex":"98156","773afb13":"98169",aa3eb5cf:"98197",c777415e:"98228",d7666a50:"98236",ba463a9e:"98256","24fcab19":"98275","80d3668c":"98407",e765c54e:"98465","0918c6f4":"98472","1f300caa":"98478","react-syntax-highlighter_languages_refractor_xojo":"98490",bfb60894:"98544",d73d93a1:"98547","935f2afb":"98581","06815ac9":"98602",e3612ae5:"98633","1c027cd1":"98686",a8744008:"98745","1d5da270":"98771",dfa48919:"98789","11a54fde":"98916",ad6ca35f:"99024","react-syntax-highlighter_languages_refractor_brainfuck":"99101","830e770a":"99106","05da603f":"99126","694b99cd":"99173",ced11bf8:"99321","31533b35":"99340","280b35a1":"99365","76b93c25":"99390","1bad822d":"99417",f3496af0:"99434",d10fc7b7:"99435",ebea1b63:"99444","906e876d":"99458","109f5de4":"99497","react-syntax-highlighter_languages_refractor_swift":"99510","46bfa3ae":"99575","06be3ded":"99580",af9dc836:"99631","3731f685":"99672",bc15071f:"99686","3c11a2f8":"99692","9fb6a754":"99693",ed3431e4:"99774","react-syntax-highlighter_languages_refractor_cil":"99812","17e561ca":"99858",f168a6f0:"99957","212df811":"99998"}[a]||a,t.p+t.u(a)},(()=>{var a={45354:0,71869:0};t.f.j=(e,c)=>{var f=t.o(a,e)?a[e]:void 0;if(0!==f)if(f)c.push(f[2]);else if(/^(45354|71869)$/.test(e))a[e]=0;else{var d=new Promise(((c,d)=>f=a[e]=[c,d]));c.push(f[2]=d);var b=t.p+t.u(e),r=new Error;t.l(b,(c=>{if(t.o(a,e)&&(0!==(f=a[e])&&(a[e]=void 0),f)){var d=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;r.message="Loading chunk "+e+" failed.\n("+d+": "+b+")",r.name="ChunkLoadError",r.type=d,r.request=b,f[1](r)}}),"chunk-"+e,e)}},t.O.j=e=>0===a[e];var e=(e,c)=>{var f,d,b=c[0],r=c[1],g=c[2],h=0;if(b.some((e=>0!==a[e]))){for(f in r)t.o(r,f)&&(t.m[f]=r[f]);if(g)var _=g(t)}for(e&&e(c);h!function(n){if("/"===n.search[1]){var a=n.search.slice(1).split("&").map((function(n){return n.replace(/~and~/g,"&")})).join("?");window.history.replaceState(null,null,n.pathname.slice(0,-1)+a+n.hash)}}(window.location) - + diff --git a/pr-preview/pr-945/blog/100-000-of-push-x-immune-fi-bug-bounty-program-goes-live/index.html b/pr-preview/pr-945/blog/100-000-of-push-x-immune-fi-bug-bounty-program-goes-live/index.html index 47023d5eaf9..8d86072f774 100644 --- a/pr-preview/pr-945/blog/100-000-of-push-x-immune-fi-bug-bounty-program-goes-live/index.html +++ b/pr-preview/pr-945/blog/100-000-of-push-x-immune-fi-bug-bounty-program-goes-live/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/13-defi-notifications-ethereum-needs-today/index.html b/pr-preview/pr-945/blog/13-defi-notifications-ethereum-needs-today/index.html index a7ec95355fc..56420621bfd 100644 --- a/pr-preview/pr-945/blog/13-defi-notifications-ethereum-needs-today/index.html +++ b/pr-preview/pr-945/blog/13-defi-notifications-ethereum-needs-today/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/4-reasons-to-seperate-your-dapp-communication-and-execution-layers/index.html b/pr-preview/pr-945/blog/4-reasons-to-seperate-your-dapp-communication-and-execution-layers/index.html index bfdfc6b60e6..d4372072147 100644 --- a/pr-preview/pr-945/blog/4-reasons-to-seperate-your-dapp-communication-and-execution-layers/index.html +++ b/pr-preview/pr-945/blog/4-reasons-to-seperate-your-dapp-communication-and-execution-layers/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/5-tips-for-mastering-the-art-of-successful-grant-proposals/index.html b/pr-preview/pr-945/blog/5-tips-for-mastering-the-art-of-successful-grant-proposals/index.html index 214e8cbcdc6..51992a6d839 100644 --- a/pr-preview/pr-945/blog/5-tips-for-mastering-the-art-of-successful-grant-proposals/index.html +++ b/pr-preview/pr-945/blog/5-tips-for-mastering-the-art-of-successful-grant-proposals/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/a-beginners-guide-to-epns-channels/index.html b/pr-preview/pr-945/blog/a-beginners-guide-to-epns-channels/index.html index 47c81e7efae..33fb0d4afda 100644 --- a/pr-preview/pr-945/blog/a-beginners-guide-to-epns-channels/index.html +++ b/pr-preview/pr-945/blog/a-beginners-guide-to-epns-channels/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/a-billion-reasons-to-build-finding-india-s-best-web3-developers/index.html b/pr-preview/pr-945/blog/a-billion-reasons-to-build-finding-india-s-best-web3-developers/index.html index f4fe8f1c696..95be8444968 100644 --- a/pr-preview/pr-945/blog/a-billion-reasons-to-build-finding-india-s-best-web3-developers/index.html +++ b/pr-preview/pr-945/blog/a-billion-reasons-to-build-finding-india-s-best-web3-developers/index.html @@ -19,7 +19,7 @@ - + diff --git "a/pr-preview/pr-945/blog/a-gr8-workshop\342\200\224gitcoin-hack/index.html" "b/pr-preview/pr-945/blog/a-gr8-workshop\342\200\224gitcoin-hack/index.html" index 2ad02a57612..45988aee521 100644 --- "a/pr-preview/pr-945/blog/a-gr8-workshop\342\200\224gitcoin-hack/index.html" +++ "b/pr-preview/pr-945/blog/a-gr8-workshop\342\200\224gitcoin-hack/index.html" @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/a-technical-deep-dive-5-simple-steps-to-get-started-with-push-nft-chat/index.html b/pr-preview/pr-945/blog/a-technical-deep-dive-5-simple-steps-to-get-started-with-push-nft-chat/index.html index 7bea5767195..198ce5921b7 100644 --- a/pr-preview/pr-945/blog/a-technical-deep-dive-5-simple-steps-to-get-started-with-push-nft-chat/index.html +++ b/pr-preview/pr-945/blog/a-technical-deep-dive-5-simple-steps-to-get-started-with-push-nft-chat/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/abstracting-chains-for-better-dapp-ux/index.html b/pr-preview/pr-945/blog/abstracting-chains-for-better-dapp-ux/index.html index e104d25f7af..89017a4c620 100644 --- a/pr-preview/pr-945/blog/abstracting-chains-for-better-dapp-ux/index.html +++ b/pr-preview/pr-945/blog/abstracting-chains-for-better-dapp-ux/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/accelerating-defi-with-epns/index.html b/pr-preview/pr-945/blog/accelerating-defi-with-epns/index.html index e9115dc1261..75822d5a7e9 100644 --- a/pr-preview/pr-945/blog/accelerating-defi-with-epns/index.html +++ b/pr-preview/pr-945/blog/accelerating-defi-with-epns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/advancing-ceramic-networks-decentralized/index.html b/pr-preview/pr-945/blog/advancing-ceramic-networks-decentralized/index.html index b7007f35c7b..1211a6c9c97 100644 --- a/pr-preview/pr-945/blog/advancing-ceramic-networks-decentralized/index.html +++ b/pr-preview/pr-945/blog/advancing-ceramic-networks-decentralized/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/advancing-charged-particles-interest/index.html b/pr-preview/pr-945/blog/advancing-charged-particles-interest/index.html index 5019c365867..23611460fb6 100644 --- a/pr-preview/pr-945/blog/advancing-charged-particles-interest/index.html +++ b/pr-preview/pr-945/blog/advancing-charged-particles-interest/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/advancing-clr-fund-funding-protocol/index.html b/pr-preview/pr-945/blog/advancing-clr-fund-funding-protocol/index.html index 6503ef51008..45159c1ef49 100644 --- a/pr-preview/pr-945/blog/advancing-clr-fund-funding-protocol/index.html +++ b/pr-preview/pr-945/blog/advancing-clr-fund-funding-protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/ama-with-alpha-finance-lab/index.html b/pr-preview/pr-945/blog/ama-with-alpha-finance-lab/index.html index 207568e03c0..bb25e572350 100644 --- a/pr-preview/pr-945/blog/ama-with-alpha-finance-lab/index.html +++ b/pr-preview/pr-945/blog/ama-with-alpha-finance-lab/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/ama-with-b.protocol/index.html b/pr-preview/pr-945/blog/ama-with-b.protocol/index.html index db662a7c23a..7b537ff6e36 100644 --- a/pr-preview/pr-945/blog/ama-with-b.protocol/index.html +++ b/pr-preview/pr-945/blog/ama-with-b.protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/ama-with-decentralized-club/index.html b/pr-preview/pr-945/blog/ama-with-decentralized-club/index.html index 2f4fdd476f2..0fed5e0449a 100644 --- a/pr-preview/pr-945/blog/ama-with-decentralized-club/index.html +++ b/pr-preview/pr-945/blog/ama-with-decentralized-club/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/ama-with-epns-at-yam-finance/index.html b/pr-preview/pr-945/blog/ama-with-epns-at-yam-finance/index.html index 7d717eb6249..d7091a6ce7c 100644 --- a/pr-preview/pr-945/blog/ama-with-epns-at-yam-finance/index.html +++ b/pr-preview/pr-945/blog/ama-with-epns-at-yam-finance/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/ama-with-matic-network/index.html b/pr-preview/pr-945/blog/ama-with-matic-network/index.html index daaa29d67cc..7c3c46ef536 100644 --- a/pr-preview/pr-945/blog/ama-with-matic-network/index.html +++ b/pr-preview/pr-945/blog/ama-with-matic-network/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/ama-with-satoshi-club/index.html b/pr-preview/pr-945/blog/ama-with-satoshi-club/index.html index 8a9da69e40e..e0d86e4e0a9 100644 --- a/pr-preview/pr-945/blog/ama-with-satoshi-club/index.html +++ b/pr-preview/pr-945/blog/ama-with-satoshi-club/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/ama-with-wormhole-for-cross-chain-requests-pre-pip/index.html b/pr-preview/pr-945/blog/ama-with-wormhole-for-cross-chain-requests-pre-pip/index.html index 13ae0adafc6..5ebaba391ab 100644 --- a/pr-preview/pr-945/blog/ama-with-wormhole-for-cross-chain-requests-pre-pip/index.html +++ b/pr-preview/pr-945/blog/ama-with-wormhole-for-cross-chain-requests-pre-pip/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/ama-with-yam-finance/index.html b/pr-preview/pr-945/blog/ama-with-yam-finance/index.html index 9d96059a313..d9af4ddde90 100644 --- a/pr-preview/pr-945/blog/ama-with-yam-finance/index.html +++ b/pr-preview/pr-945/blog/ama-with-yam-finance/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/amplify-campaign/index.html b/pr-preview/pr-945/blog/amplify-campaign/index.html index c702254710a..57c58f4baca 100644 --- a/pr-preview/pr-945/blog/amplify-campaign/index.html +++ b/pr-preview/pr-945/blog/amplify-campaign/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/an-introduction-to-push-notification-part-2-2-governance-use-cases/index.html b/pr-preview/pr-945/blog/an-introduction-to-push-notification-part-2-2-governance-use-cases/index.html index e58782196fa..eeb32f61057 100644 --- a/pr-preview/pr-945/blog/an-introduction-to-push-notification-part-2-2-governance-use-cases/index.html +++ b/pr-preview/pr-945/blog/an-introduction-to-push-notification-part-2-2-governance-use-cases/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/announcing-communicate-with-push-contest/index.html b/pr-preview/pr-945/blog/announcing-communicate-with-push-contest/index.html index cdbcd002894..42160ddbd99 100644 --- a/pr-preview/pr-945/blog/announcing-communicate-with-push-contest/index.html +++ b/pr-preview/pr-945/blog/announcing-communicate-with-push-contest/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/announcing-decentralize-with-push-contest/index.html b/pr-preview/pr-945/blog/announcing-decentralize-with-push-contest/index.html index 4913fcbe020..d2c34f41509 100644 --- a/pr-preview/pr-945/blog/announcing-decentralize-with-push-contest/index.html +++ b/pr-preview/pr-945/blog/announcing-decentralize-with-push-contest/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/announcing-epns-x-yam/index.html b/pr-preview/pr-945/blog/announcing-epns-x-yam/index.html index 61e1e858312..830a3f7f392 100644 --- a/pr-preview/pr-945/blog/announcing-epns-x-yam/index.html +++ b/pr-preview/pr-945/blog/announcing-epns-x-yam/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/announcing-group-chat-from-push-unstoppable/index.html b/pr-preview/pr-945/blog/announcing-group-chat-from-push-unstoppable/index.html index 0dcb98b0943..f368841f8c4 100644 --- a/pr-preview/pr-945/blog/announcing-group-chat-from-push-unstoppable/index.html +++ b/pr-preview/pr-945/blog/announcing-group-chat-from-push-unstoppable/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/announcing-our-series-a/index.html b/pr-preview/pr-945/blog/announcing-our-series-a/index.html index 208f784d334..63d1b9a96ee 100644 --- a/pr-preview/pr-945/blog/announcing-our-series-a/index.html +++ b/pr-preview/pr-945/blog/announcing-our-series-a/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/announcing-the-epns-push-token-generation-event/index.html b/pr-preview/pr-945/blog/announcing-the-epns-push-token-generation-event/index.html index cd05889d46d..a8c315f0a86 100644 --- a/pr-preview/pr-945/blog/announcing-the-epns-push-token-generation-event/index.html +++ b/pr-preview/pr-945/blog/announcing-the-epns-push-token-generation-event/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/announcing-the-push-chat-alpha-launch/index.html b/pr-preview/pr-945/blog/announcing-the-push-chat-alpha-launch/index.html index 5530cc30d88..552caa019e0 100644 --- a/pr-preview/pr-945/blog/announcing-the-push-chat-alpha-launch/index.html +++ b/pr-preview/pr-945/blog/announcing-the-push-chat-alpha-launch/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/announcing-volume-2-of-push-rockstars/index.html b/pr-preview/pr-945/blog/announcing-volume-2-of-push-rockstars/index.html index 79e8b2c9507..1e64091da5d 100644 --- a/pr-preview/pr-945/blog/announcing-volume-2-of-push-rockstars/index.html +++ b/pr-preview/pr-945/blog/announcing-volume-2-of-push-rockstars/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/announcing-winners-of-billion-reasons/index.html b/pr-preview/pr-945/blog/announcing-winners-of-billion-reasons/index.html index 6cbdc75626c..15f15466125 100644 --- a/pr-preview/pr-945/blog/announcing-winners-of-billion-reasons/index.html +++ b/pr-preview/pr-945/blog/announcing-winners-of-billion-reasons/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/april-monthly-recap/index.html b/pr-preview/pr-945/blog/april-monthly-recap/index.html index f1755318261..7c5bba84ef2 100644 --- a/pr-preview/pr-945/blog/april-monthly-recap/index.html +++ b/pr-preview/pr-945/blog/april-monthly-recap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/april-recap-blog-2024/index.html b/pr-preview/pr-945/blog/april-recap-blog-2024/index.html index 6cf73ed6980..dff77c8a368 100644 --- a/pr-preview/pr-945/blog/april-recap-blog-2024/index.html +++ b/pr-preview/pr-945/blog/april-recap-blog-2024/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/archive/index.html b/pr-preview/pr-945/blog/archive/index.html index 351df3fe3fb..8a7a07361c8 100644 --- a/pr-preview/pr-945/blog/archive/index.html +++ b/pr-preview/pr-945/blog/archive/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/audited-epns-push-protocol-v1-is-here/index.html b/pr-preview/pr-945/blog/audited-epns-push-protocol-v1-is-here/index.html index def2e5b1cd0..a77c47a232d 100644 --- a/pr-preview/pr-945/blog/audited-epns-push-protocol-v1-is-here/index.html +++ b/pr-preview/pr-945/blog/audited-epns-push-protocol-v1-is-here/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/august-monthly-recap/index.html b/pr-preview/pr-945/blog/august-monthly-recap/index.html index e9dc4670215..263f0c9bf38 100644 --- a/pr-preview/pr-945/blog/august-monthly-recap/index.html +++ b/pr-preview/pr-945/blog/august-monthly-recap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/avoiding-loan-liquidation/index.html b/pr-preview/pr-945/blog/avoiding-loan-liquidation/index.html index 683a406fba0..3e9ff9a856f 100644 --- a/pr-preview/pr-945/blog/avoiding-loan-liquidation/index.html +++ b/pr-preview/pr-945/blog/avoiding-loan-liquidation/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/back-2-school-grant-program/index.html b/pr-preview/pr-945/blog/back-2-school-grant-program/index.html index 8a16cd0458a..c117d72d0c8 100644 --- a/pr-preview/pr-945/blog/back-2-school-grant-program/index.html +++ b/pr-preview/pr-945/blog/back-2-school-grant-program/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/bankless-nation-and-push-partner-to-enable-news-notifications/index.html b/pr-preview/pr-945/blog/bankless-nation-and-push-partner-to-enable-news-notifications/index.html index a4adbaa2efe..3ccfe443101 100644 --- a/pr-preview/pr-945/blog/bankless-nation-and-push-partner-to-enable-news-notifications/index.html +++ b/pr-preview/pr-945/blog/bankless-nation-and-push-partner-to-enable-news-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/behold-the-metaverse/index.html b/pr-preview/pr-945/blog/behold-the-metaverse/index.html index 7b60fda665a..dc5ee3bf2df 100644 --- a/pr-preview/pr-945/blog/behold-the-metaverse/index.html +++ b/pr-preview/pr-945/blog/behold-the-metaverse/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/beincrypto-collaborates-with-push-to-bring-industry-news-and-high-quality-content-directly-to/index.html b/pr-preview/pr-945/blog/beincrypto-collaborates-with-push-to-bring-industry-news-and-high-quality-content-directly-to/index.html index 206ce09c7fc..93f02c7649a 100644 --- a/pr-preview/pr-945/blog/beincrypto-collaborates-with-push-to-bring-industry-news-and-high-quality-content-directly-to/index.html +++ b/pr-preview/pr-945/blog/beincrypto-collaborates-with-push-to-bring-industry-news-and-high-quality-content-directly-to/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/benchmarking-push-chat-message/index.html b/pr-preview/pr-945/blog/benchmarking-push-chat-message/index.html index 7c01fd05ef8..f211fc8eb9d 100644 --- a/pr-preview/pr-945/blog/benchmarking-push-chat-message/index.html +++ b/pr-preview/pr-945/blog/benchmarking-push-chat-message/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/billion-reason-to-build-bootcamp-covering-every-dimension-of-the-web3-ecosystem/index.html b/pr-preview/pr-945/blog/billion-reason-to-build-bootcamp-covering-every-dimension-of-the-web3-ecosystem/index.html index 597d75eb65d..f3a0f2a18c1 100644 --- a/pr-preview/pr-945/blog/billion-reason-to-build-bootcamp-covering-every-dimension-of-the-web3-ecosystem/index.html +++ b/pr-preview/pr-945/blog/billion-reason-to-build-bootcamp-covering-every-dimension-of-the-web3-ecosystem/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/birth-of-a-new-pantheon-thena-and-push-protocol-unite/index.html b/pr-preview/pr-945/blog/birth-of-a-new-pantheon-thena-and-push-protocol-unite/index.html index bde3e661388..ad1fd614c62 100644 --- a/pr-preview/pr-945/blog/birth-of-a-new-pantheon-thena-and-push-protocol-unite/index.html +++ b/pr-preview/pr-945/blog/birth-of-a-new-pantheon-thena-and-push-protocol-unite/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/blockchain-game-mode-on/index.html b/pr-preview/pr-945/blog/blockchain-game-mode-on/index.html index 9bb793db3f9..0b7cf7bcf98 100644 --- a/pr-preview/pr-945/blog/blockchain-game-mode-on/index.html +++ b/pr-preview/pr-945/blog/blockchain-game-mode-on/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/boosting-dao-infrastructure/index.html b/pr-preview/pr-945/blog/boosting-dao-infrastructure/index.html index e267514baa9..78bbeeb8220 100644 --- a/pr-preview/pr-945/blog/boosting-dao-infrastructure/index.html +++ b/pr-preview/pr-945/blog/boosting-dao-infrastructure/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/breaking-down-and-comparing-different-decentralized-communication-technologies/index.html b/pr-preview/pr-945/blog/breaking-down-and-comparing-different-decentralized-communication-technologies/index.html index ae08f5b4d02..f9efee77bae 100644 --- a/pr-preview/pr-945/blog/breaking-down-and-comparing-different-decentralized-communication-technologies/index.html +++ b/pr-preview/pr-945/blog/breaking-down-and-comparing-different-decentralized-communication-technologies/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/bringing-power-of-web3notif/index.html b/pr-preview/pr-945/blog/bringing-power-of-web3notif/index.html index 519ea1c21e0..a0e2ff261ca 100644 --- a/pr-preview/pr-945/blog/bringing-power-of-web3notif/index.html +++ b/pr-preview/pr-945/blog/bringing-power-of-web3notif/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/bringing-push-to-meta-mask-snaps/index.html b/pr-preview/pr-945/blog/bringing-push-to-meta-mask-snaps/index.html index 6df92edb045..a451b5ac67e 100644 --- a/pr-preview/pr-945/blog/bringing-push-to-meta-mask-snaps/index.html +++ b/pr-preview/pr-945/blog/bringing-push-to-meta-mask-snaps/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/buid-ling-the-future-of-web3-communication-with-epns-at-eth-online-2022/index.html b/pr-preview/pr-945/blog/buid-ling-the-future-of-web3-communication-with-epns-at-eth-online-2022/index.html index 9cb667387b1..dffb4382f37 100644 --- a/pr-preview/pr-945/blog/buid-ling-the-future-of-web3-communication-with-epns-at-eth-online-2022/index.html +++ b/pr-preview/pr-945/blog/buid-ling-the-future-of-web3-communication-with-epns-at-eth-online-2022/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/buidl-w-epns-ideas-to-hack/index.html b/pr-preview/pr-945/blog/buidl-w-epns-ideas-to-hack/index.html index 53adb0154f6..7fdc83357a8 100644 --- a/pr-preview/pr-945/blog/buidl-w-epns-ideas-to-hack/index.html +++ b/pr-preview/pr-945/blog/buidl-w-epns-ideas-to-hack/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/building-a-better-ux-in-bnb-with-our-8-launch-collaborators/index.html b/pr-preview/pr-945/blog/building-a-better-ux-in-bnb-with-our-8-launch-collaborators/index.html index e1a78377b9e..42ddce5b5d3 100644 --- a/pr-preview/pr-945/blog/building-a-better-ux-in-bnb-with-our-8-launch-collaborators/index.html +++ b/pr-preview/pr-945/blog/building-a-better-ux-in-bnb-with-our-8-launch-collaborators/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/building-a-leading-web3-communication-layer-what-s-it-take/index.html b/pr-preview/pr-945/blog/building-a-leading-web3-communication-layer-what-s-it-take/index.html index 823af35f421..8a6242d4eab 100644 --- a/pr-preview/pr-945/blog/building-a-leading-web3-communication-layer-what-s-it-take/index.html +++ b/pr-preview/pr-945/blog/building-a-leading-web3-communication-layer-what-s-it-take/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/building-ethereum-push-notification-service-protocol/index.html b/pr-preview/pr-945/blog/building-ethereum-push-notification-service-protocol/index.html index 17d78edcb8d..fa164f1e208 100644 --- a/pr-preview/pr-945/blog/building-ethereum-push-notification-service-protocol/index.html +++ b/pr-preview/pr-945/blog/building-ethereum-push-notification-service-protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/building-the-cities-of-the-future/index.html b/pr-preview/pr-945/blog/building-the-cities-of-the-future/index.html index 3dd6fb79cff..373b8619980 100644 --- a/pr-preview/pr-945/blog/building-the-cities-of-the-future/index.html +++ b/pr-preview/pr-945/blog/building-the-cities-of-the-future/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/building-web3-on-top-of-web2/index.html b/pr-preview/pr-945/blog/building-web3-on-top-of-web2/index.html index 95c33c13897..a206fc9c4a9 100644 --- a/pr-preview/pr-945/blog/building-web3-on-top-of-web2/index.html +++ b/pr-preview/pr-945/blog/building-web3-on-top-of-web2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/bundle-africa-ama-ethereum/index.html b/pr-preview/pr-945/blog/bundle-africa-ama-ethereum/index.html index 4503d11eeeb..61b73664f8e 100644 --- a/pr-preview/pr-945/blog/bundle-africa-ama-ethereum/index.html +++ b/pr-preview/pr-945/blog/bundle-africa-ama-ethereum/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/business-to-user-messaging-push-protocol-x-unstoppable-domains/index.html b/pr-preview/pr-945/blog/business-to-user-messaging-push-protocol-x-unstoppable-domains/index.html index 1ed7a813480..8cb5c5a6465 100644 --- a/pr-preview/pr-945/blog/business-to-user-messaging-push-protocol-x-unstoppable-domains/index.html +++ b/pr-preview/pr-945/blog/business-to-user-messaging-push-protocol-x-unstoppable-domains/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/calling-all-hobbyist-devs-channel-creation-gas-fee-is-now-refundable/index.html b/pr-preview/pr-945/blog/calling-all-hobbyist-devs-channel-creation-gas-fee-is-now-refundable/index.html index 8db44aef5a9..830dd48ae6c 100644 --- a/pr-preview/pr-945/blog/calling-all-hobbyist-devs-channel-creation-gas-fee-is-now-refundable/index.html +++ b/pr-preview/pr-945/blog/calling-all-hobbyist-devs-channel-creation-gas-fee-is-now-refundable/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/cold-start-solutions-scaling-consumer-crypto/index.html b/pr-preview/pr-945/blog/cold-start-solutions-scaling-consumer-crypto/index.html index 58b38606e6c..4b21e169140 100644 --- a/pr-preview/pr-945/blog/cold-start-solutions-scaling-consumer-crypto/index.html +++ b/pr-preview/pr-945/blog/cold-start-solutions-scaling-consumer-crypto/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/consumer-apps-that-can-be-built-on-push-chain/index.html b/pr-preview/pr-945/blog/consumer-apps-that-can-be-built-on-push-chain/index.html index 2f4a6b13996..1c218813620 100644 --- a/pr-preview/pr-945/blog/consumer-apps-that-can-be-built-on-push-chain/index.html +++ b/pr-preview/pr-945/blog/consumer-apps-that-can-be-built-on-push-chain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/cross-chain-requests-pre-pip/index.html b/pr-preview/pr-945/blog/cross-chain-requests-pre-pip/index.html index 3d4ffd1f025..c257c21b20e 100644 --- a/pr-preview/pr-945/blog/cross-chain-requests-pre-pip/index.html +++ b/pr-preview/pr-945/blog/cross-chain-requests-pre-pip/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/crpyto-ecommerce-platform-shopping/index.html b/pr-preview/pr-945/blog/crpyto-ecommerce-platform-shopping/index.html index 529d0071273..2763c9cd04e 100644 --- a/pr-preview/pr-945/blog/crpyto-ecommerce-platform-shopping/index.html +++ b/pr-preview/pr-945/blog/crpyto-ecommerce-platform-shopping/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/cryptocurrency-jobs-stay-notified-of-the-best-web3-opportunities-out-there/index.html b/pr-preview/pr-945/blog/cryptocurrency-jobs-stay-notified-of-the-best-web3-opportunities-out-there/index.html index 41fe06ea777..e7ce3890193 100644 --- a/pr-preview/pr-945/blog/cryptocurrency-jobs-stay-notified-of-the-best-web3-opportunities-out-there/index.html +++ b/pr-preview/pr-945/blog/cryptocurrency-jobs-stay-notified-of-the-best-web3-opportunities-out-there/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/d-yd-x-x-push-empowering-traders-with-transparent-governance/index.html b/pr-preview/pr-945/blog/d-yd-x-x-push-empowering-traders-with-transparent-governance/index.html index 142b6f7ac0a..43516e17d91 100644 --- a/pr-preview/pr-945/blog/d-yd-x-x-push-empowering-traders-with-transparent-governance/index.html +++ b/pr-preview/pr-945/blog/d-yd-x-x-push-empowering-traders-with-transparent-governance/index.html @@ -19,7 +19,7 @@ - + diff --git "a/pr-preview/pr-945/blog/dan-finlay-of-metamask\342\200\224volume-2/index.html" "b/pr-preview/pr-945/blog/dan-finlay-of-metamask\342\200\224volume-2/index.html" index 3498bef57bd..79ed8df6307 100644 --- "a/pr-preview/pr-945/blog/dan-finlay-of-metamask\342\200\224volume-2/index.html" +++ "b/pr-preview/pr-945/blog/dan-finlay-of-metamask\342\200\224volume-2/index.html" @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/deep-dive-into-push-snaps-features-and-getting-started-all-the-technical-specifications-and-getting-started-tips-you-need/index.html b/pr-preview/pr-945/blog/deep-dive-into-push-snaps-features-and-getting-started-all-the-technical-specifications-and-getting-started-tips-you-need/index.html index 1abf432bdf4..1761abe1236 100644 --- a/pr-preview/pr-945/blog/deep-dive-into-push-snaps-features-and-getting-started-all-the-technical-specifications-and-getting-started-tips-you-need/index.html +++ b/pr-preview/pr-945/blog/deep-dive-into-push-snaps-features-and-getting-started-all-the-technical-specifications-and-getting-started-tips-you-need/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/defi-aggregator-frontier-to-support/index.html b/pr-preview/pr-945/blog/defi-aggregator-frontier-to-support/index.html index 9569a787dfb..a2bde4102e0 100644 --- a/pr-preview/pr-945/blog/defi-aggregator-frontier-to-support/index.html +++ b/pr-preview/pr-945/blog/defi-aggregator-frontier-to-support/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/defi-forensics-harvest-finance/index.html b/pr-preview/pr-945/blog/defi-forensics-harvest-finance/index.html index 7426dd15b37..dbfe2c9d50a 100644 --- a/pr-preview/pr-945/blog/defi-forensics-harvest-finance/index.html +++ b/pr-preview/pr-945/blog/defi-forensics-harvest-finance/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/demystifying-pgp-encryption-in-push/index.html b/pr-preview/pr-945/blog/demystifying-pgp-encryption-in-push/index.html index 58a4c4f2925..7a43e96eb69 100644 --- a/pr-preview/pr-945/blog/demystifying-pgp-encryption-in-push/index.html +++ b/pr-preview/pr-945/blog/demystifying-pgp-encryption-in-push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/devconnect-2022-epns-is-all-set/index.html b/pr-preview/pr-945/blog/devconnect-2022-epns-is-all-set/index.html index a3d7c2831c7..542975daaa8 100644 --- a/pr-preview/pr-945/blog/devconnect-2022-epns-is-all-set/index.html +++ b/pr-preview/pr-945/blog/devconnect-2022-epns-is-all-set/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/developer-dao-x-push-enhancing-ux-through-web3-communication-tools/index.html b/pr-preview/pr-945/blog/developer-dao-x-push-enhancing-ux-through-web3-communication-tools/index.html index 9d0ed0fa696..e59ef8e0f6b 100644 --- a/pr-preview/pr-945/blog/developer-dao-x-push-enhancing-ux-through-web3-communication-tools/index.html +++ b/pr-preview/pr-945/blog/developer-dao-x-push-enhancing-ux-through-web3-communication-tools/index.html @@ -19,7 +19,7 @@ - + diff --git "a/pr-preview/pr-945/blog/dmitry-buterin\342\200\224rockstars-of-ethereum-vol-2/index.html" "b/pr-preview/pr-945/blog/dmitry-buterin\342\200\224rockstars-of-ethereum-vol-2/index.html" index 2bb18b555a8..dbc3fdb2002 100644 --- "a/pr-preview/pr-945/blog/dmitry-buterin\342\200\224rockstars-of-ethereum-vol-2/index.html" +++ "b/pr-preview/pr-945/blog/dmitry-buterin\342\200\224rockstars-of-ethereum-vol-2/index.html" @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/earnifi-never-miss-an-airdrop-with-push-notifications/index.html b/pr-preview/pr-945/blog/earnifi-never-miss-an-airdrop-with-push-notifications/index.html index da1dc302242..d47ddfa55e7 100644 --- a/pr-preview/pr-945/blog/earnifi-never-miss-an-airdrop-with-push-notifications/index.html +++ b/pr-preview/pr-945/blog/earnifi-never-miss-an-airdrop-with-push-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/empower-your-wallet-app-or-platform-with-push-delivery-nodes/index.html b/pr-preview/pr-945/blog/empower-your-wallet-app-or-platform-with-push-delivery-nodes/index.html index 6c51c9a774e..f12adf1a36b 100644 --- a/pr-preview/pr-945/blog/empower-your-wallet-app-or-platform-with-push-delivery-nodes/index.html +++ b/pr-preview/pr-945/blog/empower-your-wallet-app-or-platform-with-push-delivery-nodes/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/empowering-decentralized-decision-making-push-x-element-dao/index.html b/pr-preview/pr-945/blog/empowering-decentralized-decision-making-push-x-element-dao/index.html index db5e03c5fc3..75fee02bb53 100644 --- a/pr-preview/pr-945/blog/empowering-decentralized-decision-making-push-x-element-dao/index.html +++ b/pr-preview/pr-945/blog/empowering-decentralized-decision-making-push-x-element-dao/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/enhancing-blockchain-based-games-ux-through-in-game-chat-notifications/index.html b/pr-preview/pr-945/blog/enhancing-blockchain-based-games-ux-through-in-game-chat-notifications/index.html index 2a2a99195e4..84217574085 100644 --- a/pr-preview/pr-945/blog/enhancing-blockchain-based-games-ux-through-in-game-chat-notifications/index.html +++ b/pr-preview/pr-945/blog/enhancing-blockchain-based-games-ux-through-in-game-chat-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/enhancing-governance-through-web3-communication-tools/index.html b/pr-preview/pr-945/blog/enhancing-governance-through-web3-communication-tools/index.html index aee4055299f..e543a858034 100644 --- a/pr-preview/pr-945/blog/enhancing-governance-through-web3-communication-tools/index.html +++ b/pr-preview/pr-945/blog/enhancing-governance-through-web3-communication-tools/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/enhancing-security-and-ux-through-communication-push-notifications-for-safe-wallet/index.html b/pr-preview/pr-945/blog/enhancing-security-and-ux-through-communication-push-notifications-for-safe-wallet/index.html index c8caca43afc..5ec4bbbb888 100644 --- a/pr-preview/pr-945/blog/enhancing-security-and-ux-through-communication-push-notifications-for-safe-wallet/index.html +++ b/pr-preview/pr-945/blog/enhancing-security-and-ux-through-communication-push-notifications-for-safe-wallet/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/enhancing-the-de-fi-ux-on-polygon-push-x-quick-swap/index.html b/pr-preview/pr-945/blog/enhancing-the-de-fi-ux-on-polygon-push-x-quick-swap/index.html index fe5a48eace5..6333ab2e532 100644 --- a/pr-preview/pr-945/blog/enhancing-the-de-fi-ux-on-polygon-push-x-quick-swap/index.html +++ b/pr-preview/pr-945/blog/enhancing-the-de-fi-ux-on-polygon-push-x-quick-swap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/enhancing-web3-livestreaming-push-x-graviton/index.html b/pr-preview/pr-945/blog/enhancing-web3-livestreaming-push-x-graviton/index.html index 046291f5f12..54f5ae053eb 100644 --- a/pr-preview/pr-945/blog/enhancing-web3-livestreaming-push-x-graviton/index.html +++ b/pr-preview/pr-945/blog/enhancing-web3-livestreaming-push-x-graviton/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/enjoy-your-nft-stay-tuned-for-next-steps/index.html b/pr-preview/pr-945/blog/enjoy-your-nft-stay-tuned-for-next-steps/index.html index 17c4c9f8772..3525fc905d6 100644 --- a/pr-preview/pr-945/blog/enjoy-your-nft-stay-tuned-for-next-steps/index.html +++ b/pr-preview/pr-945/blog/enjoy-your-nft-stay-tuned-for-next-steps/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-allies-with-angle-protocol/index.html b/pr-preview/pr-945/blog/epns-allies-with-angle-protocol/index.html index a3a52454b96..bd4a6e81444 100644 --- a/pr-preview/pr-945/blog/epns-allies-with-angle-protocol/index.html +++ b/pr-preview/pr-945/blog/epns-allies-with-angle-protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-allies-with-commonwealth-to-bring-governance-notifications-to-users/index.html b/pr-preview/pr-945/blog/epns-allies-with-commonwealth-to-bring-governance-notifications-to-users/index.html index ce16f664f34..78c343693ab 100644 --- a/pr-preview/pr-945/blog/epns-allies-with-commonwealth-to-bring-governance-notifications-to-users/index.html +++ b/pr-preview/pr-945/blog/epns-allies-with-commonwealth-to-bring-governance-notifications-to-users/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-allies-with-mstable/index.html b/pr-preview/pr-945/blog/epns-allies-with-mstable/index.html index d2b6bcd444b..9b8af9e8bce 100644 --- a/pr-preview/pr-945/blog/epns-allies-with-mstable/index.html +++ b/pr-preview/pr-945/blog/epns-allies-with-mstable/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-allies-with-nft-tix/index.html b/pr-preview/pr-945/blog/epns-allies-with-nft-tix/index.html index 915049bf0de..b07704302ff 100644 --- a/pr-preview/pr-945/blog/epns-allies-with-nft-tix/index.html +++ b/pr-preview/pr-945/blog/epns-allies-with-nft-tix/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-allies-with-shapeshift/index.html b/pr-preview/pr-945/blog/epns-allies-with-shapeshift/index.html index f774801f7c9..05338a0f227 100644 --- a/pr-preview/pr-945/blog/epns-allies-with-shapeshift/index.html +++ b/pr-preview/pr-945/blog/epns-allies-with-shapeshift/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-ama-with-ama-lovers-club/index.html b/pr-preview/pr-945/blog/epns-ama-with-ama-lovers-club/index.html index e8c4b36adfe..d82050abb89 100644 --- a/pr-preview/pr-945/blog/epns-ama-with-ama-lovers-club/index.html +++ b/pr-preview/pr-945/blog/epns-ama-with-ama-lovers-club/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-atlantis-world-collaborate/index.html b/pr-preview/pr-945/blog/epns-and-atlantis-world-collaborate/index.html index d3e601e266c..4b1bafdb90a 100644 --- a/pr-preview/pr-945/blog/epns-and-atlantis-world-collaborate/index.html +++ b/pr-preview/pr-945/blog/epns-and-atlantis-world-collaborate/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-azuro/index.html b/pr-preview/pr-945/blog/epns-and-azuro/index.html index 5a2b3d84f8b..4b504709a1f 100644 --- a/pr-preview/pr-945/blog/epns-and-azuro/index.html +++ b/pr-preview/pr-945/blog/epns-and-azuro/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-coindesk-announce-media-push-notifications/index.html b/pr-preview/pr-945/blog/epns-and-coindesk-announce-media-push-notifications/index.html index 8013de18181..48be65dd1ee 100644 --- a/pr-preview/pr-945/blog/epns-and-coindesk-announce-media-push-notifications/index.html +++ b/pr-preview/pr-945/blog/epns-and-coindesk-announce-media-push-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-cryptocurrency-jobs-join-forces-to-facilitate-push-notifications-for-users/index.html b/pr-preview/pr-945/blog/epns-and-cryptocurrency-jobs-join-forces-to-facilitate-push-notifications-for-users/index.html index 10ceedb9d71..0b766e8d55c 100644 --- a/pr-preview/pr-945/blog/epns-and-cryptocurrency-jobs-join-forces-to-facilitate-push-notifications-for-users/index.html +++ b/pr-preview/pr-945/blog/epns-and-cryptocurrency-jobs-join-forces-to-facilitate-push-notifications-for-users/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-cryptomanga-team-up/index.html b/pr-preview/pr-945/blog/epns-and-cryptomanga-team-up/index.html index f075e83399c..cf4bc45d339 100644 --- a/pr-preview/pr-945/blog/epns-and-cryptomanga-team-up/index.html +++ b/pr-preview/pr-945/blog/epns-and-cryptomanga-team-up/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-flipside-crypto-join-forces/index.html b/pr-preview/pr-945/blog/epns-and-flipside-crypto-join-forces/index.html index 365a2544419..cbb35235127 100644 --- a/pr-preview/pr-945/blog/epns-and-flipside-crypto-join-forces/index.html +++ b/pr-preview/pr-945/blog/epns-and-flipside-crypto-join-forces/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-genesis-shards/index.html b/pr-preview/pr-945/blog/epns-and-genesis-shards/index.html index 2c03ca70052..554f8bc64f9 100644 --- a/pr-preview/pr-945/blog/epns-and-genesis-shards/index.html +++ b/pr-preview/pr-945/blog/epns-and-genesis-shards/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-h20-ally/index.html b/pr-preview/pr-945/blog/epns-and-h20-ally/index.html index 2130ebbacf0..65c95f919ad 100644 --- a/pr-preview/pr-945/blog/epns-and-h20-ally/index.html +++ b/pr-preview/pr-945/blog/epns-and-h20-ally/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-hermes/index.html b/pr-preview/pr-945/blog/epns-and-hermes/index.html index 25010d5ad02..31764e0b5a6 100644 --- a/pr-preview/pr-945/blog/epns-and-hermes/index.html +++ b/pr-preview/pr-945/blog/epns-and-hermes/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-lifi-team-up/index.html b/pr-preview/pr-945/blog/epns-and-lifi-team-up/index.html index 46b4c44f19f..4e7d86af17c 100644 --- a/pr-preview/pr-945/blog/epns-and-lifi-team-up/index.html +++ b/pr-preview/pr-945/blog/epns-and-lifi-team-up/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-nord-finance-team-up/index.html b/pr-preview/pr-945/blog/epns-and-nord-finance-team-up/index.html index abad767dc2a..90e0a85a677 100644 --- a/pr-preview/pr-945/blog/epns-and-nord-finance-team-up/index.html +++ b/pr-preview/pr-945/blog/epns-and-nord-finance-team-up/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-pine-form-an-alliance-to-enable-seamless-communication-for-users/index.html b/pr-preview/pr-945/blog/epns-and-pine-form-an-alliance-to-enable-seamless-communication-for-users/index.html index 95aaa5589e3..da08a58b6af 100644 --- a/pr-preview/pr-945/blog/epns-and-pine-form-an-alliance-to-enable-seamless-communication-for-users/index.html +++ b/pr-preview/pr-945/blog/epns-and-pine-form-an-alliance-to-enable-seamless-communication-for-users/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-quest3-unite-in-pilot-collaboration-to-bring-notifications-for-users/index.html b/pr-preview/pr-945/blog/epns-and-quest3-unite-in-pilot-collaboration-to-bring-notifications-for-users/index.html index 1458f4b9556..1201b0a4088 100644 --- a/pr-preview/pr-945/blog/epns-and-quest3-unite-in-pilot-collaboration-to-bring-notifications-for-users/index.html +++ b/pr-preview/pr-945/blog/epns-and-quest3-unite-in-pilot-collaboration-to-bring-notifications-for-users/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-realt-join-forces-to-facilitate-notifications/index.html b/pr-preview/pr-945/blog/epns-and-realt-join-forces-to-facilitate-notifications/index.html index 97195b0eab4..d8c11edac1b 100644 --- a/pr-preview/pr-945/blog/epns-and-realt-join-forces-to-facilitate-notifications/index.html +++ b/pr-preview/pr-945/blog/epns-and-realt-join-forces-to-facilitate-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-and-sturdy-form-an-alliance-to-enable-direct-communication-for-users/index.html b/pr-preview/pr-945/blog/epns-and-sturdy-form-an-alliance-to-enable-direct-communication-for-users/index.html index 4e3ca6fd70a..f2f1e756e93 100644 --- a/pr-preview/pr-945/blog/epns-and-sturdy-form-an-alliance-to-enable-direct-communication-for-users/index.html +++ b/pr-preview/pr-945/blog/epns-and-sturdy-form-an-alliance-to-enable-direct-communication-for-users/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-announces-ido-on-polkastarter/index.html b/pr-preview/pr-945/blog/epns-announces-ido-on-polkastarter/index.html index a4620604a51..518c8559a97 100644 --- a/pr-preview/pr-945/blog/epns-announces-ido-on-polkastarter/index.html +++ b/pr-preview/pr-945/blog/epns-announces-ido-on-polkastarter/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-at-ethdenver-2022-a-throwback/index.html b/pr-preview/pr-945/blog/epns-at-ethdenver-2022-a-throwback/index.html index 1ec01b3443b..0f5629cfb50 100644 --- a/pr-preview/pr-945/blog/epns-at-ethdenver-2022-a-throwback/index.html +++ b/pr-preview/pr-945/blog/epns-at-ethdenver-2022-a-throwback/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-at-nft-nyc-2022-all-set-for-the-nft-verse/index.html b/pr-preview/pr-945/blog/epns-at-nft-nyc-2022-all-set-for-the-nft-verse/index.html index bf3c5c6dea9..ec44d92f2a5 100644 --- a/pr-preview/pr-945/blog/epns-at-nft-nyc-2022-all-set-for-the-nft-verse/index.html +++ b/pr-preview/pr-945/blog/epns-at-nft-nyc-2022-all-set-for-the-nft-verse/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-awarded-aave-grant/index.html b/pr-preview/pr-945/blog/epns-awarded-aave-grant/index.html index 7f138b0580d..8dced82a9b4 100644 --- a/pr-preview/pr-945/blog/epns-awarded-aave-grant/index.html +++ b/pr-preview/pr-945/blog/epns-awarded-aave-grant/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-bring-push-notifs/index.html b/pr-preview/pr-945/blog/epns-bring-push-notifs/index.html index 90191ae9908..a7053c01ed4 100644 --- a/pr-preview/pr-945/blog/epns-bring-push-notifs/index.html +++ b/pr-preview/pr-945/blog/epns-bring-push-notifs/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-closes-10x-oversubscribed-extended-seed-round/index.html b/pr-preview/pr-945/blog/epns-closes-10x-oversubscribed-extended-seed-round/index.html index c504d9a3abd..cb25c20a9af 100644 --- a/pr-preview/pr-945/blog/epns-closes-10x-oversubscribed-extended-seed-round/index.html +++ b/pr-preview/pr-945/blog/epns-closes-10x-oversubscribed-extended-seed-round/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-collaborates-with-aave-to-bring/index.html b/pr-preview/pr-945/blog/epns-collaborates-with-aave-to-bring/index.html index 1a9b5e79dec..733c6a6bcfb 100644 --- a/pr-preview/pr-945/blog/epns-collaborates-with-aave-to-bring/index.html +++ b/pr-preview/pr-945/blog/epns-collaborates-with-aave-to-bring/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-collaborates-with-boardroom/index.html b/pr-preview/pr-945/blog/epns-collaborates-with-boardroom/index.html index 189f1fcb6e6..6baa106a5e5 100644 --- a/pr-preview/pr-945/blog/epns-collaborates-with-boardroom/index.html +++ b/pr-preview/pr-945/blog/epns-collaborates-with-boardroom/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-collaborates-with-bridge-mutual/index.html b/pr-preview/pr-945/blog/epns-collaborates-with-bridge-mutual/index.html index ba6eb42a423..136584935df 100644 --- a/pr-preview/pr-945/blog/epns-collaborates-with-bridge-mutual/index.html +++ b/pr-preview/pr-945/blog/epns-collaborates-with-bridge-mutual/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-collaborates-with-cvi/index.html b/pr-preview/pr-945/blog/epns-collaborates-with-cvi/index.html index 4b723d77ef9..526da641bea 100644 --- a/pr-preview/pr-945/blog/epns-collaborates-with-cvi/index.html +++ b/pr-preview/pr-945/blog/epns-collaborates-with-cvi/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-collaborates-with-d-xdao-to-enable-notifications-for-swapr-campaign-updates/index.html b/pr-preview/pr-945/blog/epns-collaborates-with-d-xdao-to-enable-notifications-for-swapr-campaign-updates/index.html index 59f8ca4fec8..8e0e63fd428 100644 --- a/pr-preview/pr-945/blog/epns-collaborates-with-d-xdao-to-enable-notifications-for-swapr-campaign-updates/index.html +++ b/pr-preview/pr-945/blog/epns-collaborates-with-d-xdao-to-enable-notifications-for-swapr-campaign-updates/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-collaborates-with-float-capital/index.html b/pr-preview/pr-945/blog/epns-collaborates-with-float-capital/index.html index 1a58821391a..d736b541225 100644 --- a/pr-preview/pr-945/blog/epns-collaborates-with-float-capital/index.html +++ b/pr-preview/pr-945/blog/epns-collaborates-with-float-capital/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-collaborates-with-gro-protocol/index.html b/pr-preview/pr-945/blog/epns-collaborates-with-gro-protocol/index.html index e47fe871c1e..cd7599714c8 100644 --- a/pr-preview/pr-945/blog/epns-collaborates-with-gro-protocol/index.html +++ b/pr-preview/pr-945/blog/epns-collaborates-with-gro-protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-collaborates-with-idle/index.html b/pr-preview/pr-945/blog/epns-collaborates-with-idle/index.html index ff8c31ad4b7..d5a7e4440a4 100644 --- a/pr-preview/pr-945/blog/epns-collaborates-with-idle/index.html +++ b/pr-preview/pr-945/blog/epns-collaborates-with-idle/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-collaborates-with-new-order/index.html b/pr-preview/pr-945/blog/epns-collaborates-with-new-order/index.html index d59ba70296c..4fd110d3f0d 100644 --- a/pr-preview/pr-945/blog/epns-collaborates-with-new-order/index.html +++ b/pr-preview/pr-945/blog/epns-collaborates-with-new-order/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-collaborates-with-nft-marketplace-digible/index.html b/pr-preview/pr-945/blog/epns-collaborates-with-nft-marketplace-digible/index.html index 7994dcb085d..2ebd33aa058 100644 --- a/pr-preview/pr-945/blog/epns-collaborates-with-nft-marketplace-digible/index.html +++ b/pr-preview/pr-945/blog/epns-collaborates-with-nft-marketplace-digible/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-collaborates-with-symphony-finance/index.html b/pr-preview/pr-945/blog/epns-collaborates-with-symphony-finance/index.html index 792dff9e843..a5993b5506b 100644 --- a/pr-preview/pr-945/blog/epns-collaborates-with-symphony-finance/index.html +++ b/pr-preview/pr-945/blog/epns-collaborates-with-symphony-finance/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-collaborates-with-tokenbrice/index.html b/pr-preview/pr-945/blog/epns-collaborates-with-tokenbrice/index.html index 6cb4cbae60e..77533386f4a 100644 --- a/pr-preview/pr-945/blog/epns-collaborates-with-tokenbrice/index.html +++ b/pr-preview/pr-945/blog/epns-collaborates-with-tokenbrice/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-collaborates-with-world/index.html b/pr-preview/pr-945/blog/epns-collaborates-with-world/index.html index 4a18dae969b..e4a33aa9fad 100644 --- a/pr-preview/pr-945/blog/epns-collaborates-with-world/index.html +++ b/pr-preview/pr-945/blog/epns-collaborates-with-world/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-community-ama-recap/index.html b/pr-preview/pr-945/blog/epns-community-ama-recap/index.html index 5848b3e5614..531c4873395 100644 --- a/pr-preview/pr-945/blog/epns-community-ama-recap/index.html +++ b/pr-preview/pr-945/blog/epns-community-ama-recap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-community-call-1/index.html b/pr-preview/pr-945/blog/epns-community-call-1/index.html index 6dab8de4e8c..e6e87f67805 100644 --- a/pr-preview/pr-945/blog/epns-community-call-1/index.html +++ b/pr-preview/pr-945/blog/epns-community-call-1/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-contract-v2-features/index.html b/pr-preview/pr-945/blog/epns-contract-v2-features/index.html index 574122ac15d..25e4d958167 100644 --- a/pr-preview/pr-945/blog/epns-contract-v2-features/index.html +++ b/pr-preview/pr-945/blog/epns-contract-v2-features/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-enables-snapshot-voting/index.html b/pr-preview/pr-945/blog/epns-enables-snapshot-voting/index.html index 96dbe6fa524..f65eab10b45 100644 --- a/pr-preview/pr-945/blog/epns-enables-snapshot-voting/index.html +++ b/pr-preview/pr-945/blog/epns-enables-snapshot-voting/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-ends-h1-2021/index.html b/pr-preview/pr-945/blog/epns-ends-h1-2021/index.html index 8e2d2b5e66c..aae4ec41a2f 100644 --- a/pr-preview/pr-945/blog/epns-ends-h1-2021/index.html +++ b/pr-preview/pr-945/blog/epns-ends-h1-2021/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-gets-listed-on-kucoin/index.html b/pr-preview/pr-945/blog/epns-gets-listed-on-kucoin/index.html index 3b2e993da5f..88cf40e917a 100644 --- a/pr-preview/pr-945/blog/epns-gets-listed-on-kucoin/index.html +++ b/pr-preview/pr-945/blog/epns-gets-listed-on-kucoin/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-gitcoin-2021/index.html b/pr-preview/pr-945/blog/epns-gitcoin-2021/index.html index 9bd3d99710f..4d60b8c46da 100644 --- a/pr-preview/pr-945/blog/epns-gitcoin-2021/index.html +++ b/pr-preview/pr-945/blog/epns-gitcoin-2021/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-gitcoin-gr8-hack/index.html b/pr-preview/pr-945/blog/epns-gitcoin-gr8-hack/index.html index 48a1fc30b49..3e846ff73ed 100644 --- a/pr-preview/pr-945/blog/epns-gitcoin-gr8-hack/index.html +++ b/pr-preview/pr-945/blog/epns-gitcoin-gr8-hack/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-governance-goes-live/index.html b/pr-preview/pr-945/blog/epns-governance-goes-live/index.html index 272b70f9404..a6e6869c559 100644 --- a/pr-preview/pr-945/blog/epns-governance-goes-live/index.html +++ b/pr-preview/pr-945/blog/epns-governance-goes-live/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-graph-hackathon-2022-winners-announced/index.html b/pr-preview/pr-945/blog/epns-graph-hackathon-2022-winners-announced/index.html index 3d18509f195..05ae164b97b 100644 --- a/pr-preview/pr-945/blog/epns-graph-hackathon-2022-winners-announced/index.html +++ b/pr-preview/pr-945/blog/epns-graph-hackathon-2022-winners-announced/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-honored-to-be-gnosisdao/index.html b/pr-preview/pr-945/blog/epns-honored-to-be-gnosisdao/index.html index 9d5cbcd8466..8743bdddece 100644 --- a/pr-preview/pr-945/blog/epns-honored-to-be-gnosisdao/index.html +++ b/pr-preview/pr-945/blog/epns-honored-to-be-gnosisdao/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-ideo-colab-product/index.html b/pr-preview/pr-945/blog/epns-ideo-colab-product/index.html index c4b53b5e013..96de1f28ffc 100644 --- a/pr-preview/pr-945/blog/epns-ideo-colab-product/index.html +++ b/pr-preview/pr-945/blog/epns-ideo-colab-product/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-inks-partnership-with-options/index.html b/pr-preview/pr-945/blog/epns-inks-partnership-with-options/index.html index 66099352d99..42eb2d07496 100644 --- a/pr-preview/pr-945/blog/epns-inks-partnership-with-options/index.html +++ b/pr-preview/pr-945/blog/epns-inks-partnership-with-options/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-integrates-with-bancor-network/index.html b/pr-preview/pr-945/blog/epns-integrates-with-bancor-network/index.html index 9c0f8d69a4b..3018c68596b 100644 --- a/pr-preview/pr-945/blog/epns-integrates-with-bancor-network/index.html +++ b/pr-preview/pr-945/blog/epns-integrates-with-bancor-network/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-integration-underway-to-enable/index.html b/pr-preview/pr-945/blog/epns-integration-underway-to-enable/index.html index 7d2313f4eeb..bf83c09c0c6 100644 --- a/pr-preview/pr-945/blog/epns-integration-underway-to-enable/index.html +++ b/pr-preview/pr-945/blog/epns-integration-underway-to-enable/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-introduces-gasless-march/index.html b/pr-preview/pr-945/blog/epns-introduces-gasless-march/index.html index c7359b740e3..690eedd4ebb 100644 --- a/pr-preview/pr-945/blog/epns-introduces-gasless-march/index.html +++ b/pr-preview/pr-945/blog/epns-introduces-gasless-march/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-joins-proof-of-humanity/index.html b/pr-preview/pr-945/blog/epns-joins-proof-of-humanity/index.html index d1d928a2db1..fb8a7b63b3e 100644 --- a/pr-preview/pr-945/blog/epns-joins-proof-of-humanity/index.html +++ b/pr-preview/pr-945/blog/epns-joins-proof-of-humanity/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-litepaper/index.html b/pr-preview/pr-945/blog/epns-litepaper/index.html index c0d02db9870..fc4ad4d62e6 100644 --- a/pr-preview/pr-945/blog/epns-litepaper/index.html +++ b/pr-preview/pr-945/blog/epns-litepaper/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-2022-april/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-2022-april/index.html index 5958cfbeeae..69fe258b142 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-2022-april/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-2022-april/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-2022-may/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-2022-may/index.html index 88c0462ab44..cb6d5221de5 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-2022-may/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-2022-may/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-april-2021/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-april-2021/index.html index 1ff50a0113a..5c6f1e361f2 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-april-2021/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-april-2021/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-aug-2021/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-aug-2021/index.html index 33f1e74895d..f8a59639b99 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-aug-2021/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-aug-2021/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-august/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-august/index.html index 81dfa00e87a..a2dfb59e601 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-august/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-august/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-feb-2021/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-feb-2021/index.html index dc0aa28f7ec..ebb6d63776d 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-feb-2021/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-feb-2021/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-genesis/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-genesis/index.html index de6fcb90fee..895c738a353 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-genesis/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-genesis/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-jan-2022/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-jan-2022/index.html index ec97e5d0e4f..855ad92d314 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-jan-2022/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-jan-2022/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-july-2021/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-july-2021/index.html index a423b39274e..2882ad8e11b 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-july-2021/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-july-2021/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-jun-2021/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-jun-2021/index.html index 4314a1fca2c..1a5d6bf6780 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-jun-2021/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-jun-2021/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-jun-30/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-jun-30/index.html index 1e24a83ce18..1bce4ffd703 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-jun-30/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-jun-30/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-march-2021/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-march-2021/index.html index a83f3c84f5f..418d135d46d 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-march-2021/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-march-2021/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-march-2022/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-march-2022/index.html index 55cd1ab51b9..8826bff8b08 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-march-2022/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-march-2022/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-nov-2021/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-nov-2021/index.html index afbd5ea3879..9fed5576c41 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-nov-2021/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-nov-2021/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-oct-2021/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-oct-2021/index.html index 9bd13ec6f5d..b2c17632dac 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-oct-2021/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-oct-2021/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks-sep-2021/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks-sep-2021/index.html index e62e81d7f02..5e342039dc9 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks-sep-2021/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks-sep-2021/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-monthly-blocks/index.html b/pr-preview/pr-945/blog/epns-monthly-blocks/index.html index a1669d11d1f..22c0d24c533 100644 --- a/pr-preview/pr-945/blog/epns-monthly-blocks/index.html +++ b/pr-preview/pr-945/blog/epns-monthly-blocks/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-partners-with-aragon/index.html b/pr-preview/pr-945/blog/epns-partners-with-aragon/index.html index b9816ad12b5..d5c7755923f 100644 --- a/pr-preview/pr-945/blog/epns-partners-with-aragon/index.html +++ b/pr-preview/pr-945/blog/epns-partners-with-aragon/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-partners-with-armor/index.html b/pr-preview/pr-945/blog/epns-partners-with-armor/index.html index ade213ecb68..c31b4619077 100644 --- a/pr-preview/pr-945/blog/epns-partners-with-armor/index.html +++ b/pr-preview/pr-945/blog/epns-partners-with-armor/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-partners-with-bZx-to-deliver/index.html b/pr-preview/pr-945/blog/epns-partners-with-bZx-to-deliver/index.html index fd616535527..ee2d21f8884 100644 --- a/pr-preview/pr-945/blog/epns-partners-with-bZx-to-deliver/index.html +++ b/pr-preview/pr-945/blog/epns-partners-with-bZx-to-deliver/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-partners-with-makerdao-development/index.html b/pr-preview/pr-945/blog/epns-partners-with-makerdao-development/index.html index 625eb3d8470..d76dff44300 100644 --- a/pr-preview/pr-945/blog/epns-partners-with-makerdao-development/index.html +++ b/pr-preview/pr-945/blog/epns-partners-with-makerdao-development/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-partners-with-plotx-to-bring/index.html b/pr-preview/pr-945/blog/epns-partners-with-plotx-to-bring/index.html index 5baf24d8c72..810f4d68a42 100644 --- a/pr-preview/pr-945/blog/epns-partners-with-plotx-to-bring/index.html +++ b/pr-preview/pr-945/blog/epns-partners-with-plotx-to-bring/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-partners-with-snapshot/index.html b/pr-preview/pr-945/blog/epns-partners-with-snapshot/index.html index afbbd398931..cc0bb534dbb 100644 --- a/pr-preview/pr-945/blog/epns-partners-with-snapshot/index.html +++ b/pr-preview/pr-945/blog/epns-partners-with-snapshot/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-partners-with-unilend-finance/index.html b/pr-preview/pr-945/blog/epns-partners-with-unilend-finance/index.html index 5794daf1ab1..627a8a58ac5 100644 --- a/pr-preview/pr-945/blog/epns-partners-with-unilend-finance/index.html +++ b/pr-preview/pr-945/blog/epns-partners-with-unilend-finance/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-partners-with-unstoppable-domains/index.html b/pr-preview/pr-945/blog/epns-partners-with-unstoppable-domains/index.html index d3ccfde5799..87a17a29602 100644 --- a/pr-preview/pr-945/blog/epns-partners-with-unstoppable-domains/index.html +++ b/pr-preview/pr-945/blog/epns-partners-with-unstoppable-domains/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-push-liquidity-rewards-program/index.html b/pr-preview/pr-945/blog/epns-push-liquidity-rewards-program/index.html index b26c0349c58..2b70cfcb95e 100644 --- a/pr-preview/pr-945/blog/epns-push-liquidity-rewards-program/index.html +++ b/pr-preview/pr-945/blog/epns-push-liquidity-rewards-program/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-push-notifications-are-never-boring/index.html b/pr-preview/pr-945/blog/epns-push-notifications-are-never-boring/index.html index bb3d6dfde2d..668ab206009 100644 --- a/pr-preview/pr-945/blog/epns-push-notifications-are-never-boring/index.html +++ b/pr-preview/pr-945/blog/epns-push-notifications-are-never-boring/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-push-notifications-arrive-at-defi/index.html b/pr-preview/pr-945/blog/epns-push-notifications-arrive-at-defi/index.html index 015671a8e2a..67274bff7e3 100644 --- a/pr-preview/pr-945/blog/epns-push-notifications-arrive-at-defi/index.html +++ b/pr-preview/pr-945/blog/epns-push-notifications-arrive-at-defi/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-push-notifications-to-back/index.html b/pr-preview/pr-945/blog/epns-push-notifications-to-back/index.html index 8e115f08800..57d33b21aa5 100644 --- a/pr-preview/pr-945/blog/epns-push-notifications-to-back/index.html +++ b/pr-preview/pr-945/blog/epns-push-notifications-to-back/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-push-notifications-to-backstop/index.html b/pr-preview/pr-945/blog/epns-push-notifications-to-backstop/index.html index e37bf8a7590..98876484254 100644 --- a/pr-preview/pr-945/blog/epns-push-notifications-to-backstop/index.html +++ b/pr-preview/pr-945/blog/epns-push-notifications-to-backstop/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-push-notifications-to-support-kyber/index.html b/pr-preview/pr-945/blog/epns-push-notifications-to-support-kyber/index.html index 08b3eca87bf..63a62e3ffd9 100644 --- a/pr-preview/pr-945/blog/epns-push-notifications-to-support-kyber/index.html +++ b/pr-preview/pr-945/blog/epns-push-notifications-to-support-kyber/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-push-notifications-to-support/index.html b/pr-preview/pr-945/blog/epns-push-notifications-to-support/index.html index 23fa49cde5f..fbe8d090f73 100644 --- a/pr-preview/pr-945/blog/epns-push-notifications-to-support/index.html +++ b/pr-preview/pr-945/blog/epns-push-notifications-to-support/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-push-polkastarter-ido-whitelist-results/index.html b/pr-preview/pr-945/blog/epns-push-polkastarter-ido-whitelist-results/index.html index eae3932424d..8fa1d0d067a 100644 --- a/pr-preview/pr-945/blog/epns-push-polkastarter-ido-whitelist-results/index.html +++ b/pr-preview/pr-945/blog/epns-push-polkastarter-ido-whitelist-results/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-rebrands-into-push-protocol-the-communication-protocol-for-web3/index.html b/pr-preview/pr-945/blog/epns-rebrands-into-push-protocol-the-communication-protocol-for-web3/index.html index f59de7748b5..73c4576a772 100644 --- a/pr-preview/pr-945/blog/epns-rebrands-into-push-protocol-the-communication-protocol-for-web3/index.html +++ b/pr-preview/pr-945/blog/epns-rebrands-into-push-protocol-the-communication-protocol-for-web3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-roadmap-2021/index.html b/pr-preview/pr-945/blog/epns-roadmap-2021/index.html index d650ab615f1..d338e96b27e 100644 --- a/pr-preview/pr-945/blog/epns-roadmap-2021/index.html +++ b/pr-preview/pr-945/blog/epns-roadmap-2021/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-roadmap-2022/index.html b/pr-preview/pr-945/blog/epns-roadmap-2022/index.html index 1fd9a7955e5..0cb8506fddf 100644 --- a/pr-preview/pr-945/blog/epns-roadmap-2022/index.html +++ b/pr-preview/pr-945/blog/epns-roadmap-2022/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-secures-partnership-with-matic/index.html b/pr-preview/pr-945/blog/epns-secures-partnership-with-matic/index.html index 732d4b15ec2..b87976183db 100644 --- a/pr-preview/pr-945/blog/epns-secures-partnership-with-matic/index.html +++ b/pr-preview/pr-945/blog/epns-secures-partnership-with-matic/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-showrunners-framework-and-backend-sdk-beta/index.html b/pr-preview/pr-945/blog/epns-showrunners-framework-and-backend-sdk-beta/index.html index 42d640ed12e..724265b857a 100644 --- a/pr-preview/pr-945/blog/epns-showrunners-framework-and-backend-sdk-beta/index.html +++ b/pr-preview/pr-945/blog/epns-showrunners-framework-and-backend-sdk-beta/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-snapshot-voting/index.html b/pr-preview/pr-945/blog/epns-snapshot-voting/index.html index eaef7b136de..2eb2b910712 100644 --- a/pr-preview/pr-945/blog/epns-snapshot-voting/index.html +++ b/pr-preview/pr-945/blog/epns-snapshot-voting/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-sponsoring-gitcoin-grants-12/index.html b/pr-preview/pr-945/blog/epns-sponsoring-gitcoin-grants-12/index.html index d28442214a0..65c8dd6fe90 100644 --- a/pr-preview/pr-945/blog/epns-sponsoring-gitcoin-grants-12/index.html +++ b/pr-preview/pr-945/blog/epns-sponsoring-gitcoin-grants-12/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-sponsoring-gitcoin-grants-round-13/index.html b/pr-preview/pr-945/blog/epns-sponsoring-gitcoin-grants-round-13/index.html index c46f5639065..7a72f938645 100644 --- a/pr-preview/pr-945/blog/epns-sponsoring-gitcoin-grants-round-13/index.html +++ b/pr-preview/pr-945/blog/epns-sponsoring-gitcoin-grants-round-13/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-successfully-raises-750k-usd/index.html b/pr-preview/pr-945/blog/epns-successfully-raises-750k-usd/index.html index cab9be50ab5..f1a82a042e1 100644 --- a/pr-preview/pr-945/blog/epns-successfully-raises-750k-usd/index.html +++ b/pr-preview/pr-945/blog/epns-successfully-raises-750k-usd/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-team-up-with-ethsign/index.html b/pr-preview/pr-945/blog/epns-team-up-with-ethsign/index.html index f00c0aca352..c14ddafad88 100644 --- a/pr-preview/pr-945/blog/epns-team-up-with-ethsign/index.html +++ b/pr-preview/pr-945/blog/epns-team-up-with-ethsign/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-teams-up-with-dydx/index.html b/pr-preview/pr-945/blog/epns-teams-up-with-dydx/index.html index ab407070465..f1ea63bcc14 100644 --- a/pr-preview/pr-945/blog/epns-teams-up-with-dydx/index.html +++ b/pr-preview/pr-945/blog/epns-teams-up-with-dydx/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-teams-up-with-the-defiant/index.html b/pr-preview/pr-945/blog/epns-teams-up-with-the-defiant/index.html index 8968b921481..e40a380da71 100644 --- a/pr-preview/pr-945/blog/epns-teams-up-with-the-defiant/index.html +++ b/pr-preview/pr-945/blog/epns-teams-up-with-the-defiant/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-to-add-push-notifications/index.html b/pr-preview/pr-945/blog/epns-to-add-push-notifications/index.html index 356ceed61d5..bbc2838dd81 100644 --- a/pr-preview/pr-945/blog/epns-to-add-push-notifications/index.html +++ b/pr-preview/pr-945/blog/epns-to-add-push-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-update-gitcoin-kernel-week-1/index.html b/pr-preview/pr-945/blog/epns-update-gitcoin-kernel-week-1/index.html index 11c14aa3c1b..20f8f807569 100644 --- a/pr-preview/pr-945/blog/epns-update-gitcoin-kernel-week-1/index.html +++ b/pr-preview/pr-945/blog/epns-update-gitcoin-kernel-week-1/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-update-gitcoin-kernel-week-3/index.html b/pr-preview/pr-945/blog/epns-update-gitcoin-kernel-week-3/index.html index 62483d41c41..3ebeb112094 100644 --- a/pr-preview/pr-945/blog/epns-update-gitcoin-kernel-week-3/index.html +++ b/pr-preview/pr-945/blog/epns-update-gitcoin-kernel-week-3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-update-gitcoin-week-2/index.html b/pr-preview/pr-945/blog/epns-update-gitcoin-week-2/index.html index 9fc70fc92a0..31f6925ed26 100644 --- a/pr-preview/pr-945/blog/epns-update-gitcoin-week-2/index.html +++ b/pr-preview/pr-945/blog/epns-update-gitcoin-week-2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-whitelist-for-polkastarter-is-now-open/index.html b/pr-preview/pr-945/blog/epns-whitelist-for-polkastarter-is-now-open/index.html index 39fa85bbf8f..66edb109545 100644 --- a/pr-preview/pr-945/blog/epns-whitelist-for-polkastarter-is-now-open/index.html +++ b/pr-preview/pr-945/blog/epns-whitelist-for-polkastarter-is-now-open/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-whitelist-meme-competition/index.html b/pr-preview/pr-945/blog/epns-whitelist-meme-competition/index.html index 97137ef4a83..7dae02c8b54 100644 --- a/pr-preview/pr-945/blog/epns-whitelist-meme-competition/index.html +++ b/pr-preview/pr-945/blog/epns-whitelist-meme-competition/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-x-aave-protection/index.html b/pr-preview/pr-945/blog/epns-x-aave-protection/index.html index 73bfccd0ba8..6e0b469dbea 100644 --- a/pr-preview/pr-945/blog/epns-x-aave-protection/index.html +++ b/pr-preview/pr-945/blog/epns-x-aave-protection/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-x-doingud/index.html b/pr-preview/pr-945/blog/epns-x-doingud/index.html index 96dab92f59b..a9bdbb9d3b9 100644 --- a/pr-preview/pr-945/blog/epns-x-doingud/index.html +++ b/pr-preview/pr-945/blog/epns-x-doingud/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-x-huobi/index.html b/pr-preview/pr-945/blog/epns-x-huobi/index.html index f5b6ce682dc..98425fab117 100644 --- a/pr-preview/pr-945/blog/epns-x-huobi/index.html +++ b/pr-preview/pr-945/blog/epns-x-huobi/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-x-ovix/index.html b/pr-preview/pr-945/blog/epns-x-ovix/index.html index 8cc64a656d5..177e997e3c2 100644 --- a/pr-preview/pr-945/blog/epns-x-ovix/index.html +++ b/pr-preview/pr-945/blog/epns-x-ovix/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-x-polychain-monsters-decentralized-communication-for-the-digital-collectible-ecosystem/index.html b/pr-preview/pr-945/blog/epns-x-polychain-monsters-decentralized-communication-for-the-digital-collectible-ecosystem/index.html index 73212029e23..70c786487f2 100644 --- a/pr-preview/pr-945/blog/epns-x-polychain-monsters-decentralized-communication-for-the-digital-collectible-ecosystem/index.html +++ b/pr-preview/pr-945/blog/epns-x-polychain-monsters-decentralized-communication-for-the-digital-collectible-ecosystem/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-x-stox-enabling-communication-for-the-global-portfolio-tracker/index.html b/pr-preview/pr-945/blog/epns-x-stox-enabling-communication-for-the-global-portfolio-tracker/index.html index 6ff2dd60c70..b77c36eab53 100644 --- a/pr-preview/pr-945/blog/epns-x-stox-enabling-communication-for-the-global-portfolio-tracker/index.html +++ b/pr-preview/pr-945/blog/epns-x-stox-enabling-communication-for-the-global-portfolio-tracker/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-x-the-graph-enabling-a-better-way-to-access-blockchain-data/index.html b/pr-preview/pr-945/blog/epns-x-the-graph-enabling-a-better-way-to-access-blockchain-data/index.html index b23eda31c68..11323b54342 100644 --- a/pr-preview/pr-945/blog/epns-x-the-graph-enabling-a-better-way-to-access-blockchain-data/index.html +++ b/pr-preview/pr-945/blog/epns-x-the-graph-enabling-a-better-way-to-access-blockchain-data/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-x-the-graph/index.html b/pr-preview/pr-945/blog/epns-x-the-graph/index.html index bb90aec7569..8074316b95e 100644 --- a/pr-preview/pr-945/blog/epns-x-the-graph/index.html +++ b/pr-preview/pr-945/blog/epns-x-the-graph/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/epns-x-wonderverse-decentralized-communication-for-web3-s-project-manager/index.html b/pr-preview/pr-945/blog/epns-x-wonderverse-decentralized-communication-for-web3-s-project-manager/index.html index 6dabfd04f45..e8e6a287108 100644 --- a/pr-preview/pr-945/blog/epns-x-wonderverse-decentralized-communication-for-web3-s-project-manager/index.html +++ b/pr-preview/pr-945/blog/epns-x-wonderverse-decentralized-communication-for-web3-s-project-manager/index.html @@ -19,7 +19,7 @@ - + diff --git "a/pr-preview/pr-945/blog/epns-\343\203\251\343\202\244\343\203\210\343\203\232\343\203\274\343\203\221\343\203\274/index.html" "b/pr-preview/pr-945/blog/epns-\343\203\251\343\202\244\343\203\210\343\203\232\343\203\274\343\203\221\343\203\274/index.html" index c7e2095c734..2ec13d1b68a 100644 --- "a/pr-preview/pr-945/blog/epns-\343\203\251\343\202\244\343\203\210\343\203\232\343\203\274\343\203\221\343\203\274/index.html" +++ "b/pr-preview/pr-945/blog/epns-\343\203\251\343\202\244\343\203\210\343\203\232\343\203\274\343\203\221\343\203\274/index.html" @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/estate-protocol-joins-frens-of-push/index.html b/pr-preview/pr-945/blog/estate-protocol-joins-frens-of-push/index.html index 859ffcd66db..61e601ed211 100644 --- a/pr-preview/pr-945/blog/estate-protocol-joins-frens-of-push/index.html +++ b/pr-preview/pr-945/blog/estate-protocol-joins-frens-of-push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/eth-new-york-buidl-the-future-of-web3-comm-with-epns/index.html b/pr-preview/pr-945/blog/eth-new-york-buidl-the-future-of-web3-comm-with-epns/index.html index 4a74266cf88..d8eac2fb036 100644 --- a/pr-preview/pr-945/blog/eth-new-york-buidl-the-future-of-web3-comm-with-epns/index.html +++ b/pr-preview/pr-945/blog/eth-new-york-buidl-the-future-of-web3-comm-with-epns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/explaining-push-nodes/index.html b/pr-preview/pr-945/blog/explaining-push-nodes/index.html index 27e30e8c89c..83b05fe562b 100644 --- a/pr-preview/pr-945/blog/explaining-push-nodes/index.html +++ b/pr-preview/pr-945/blog/explaining-push-nodes/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/exploring-the-role-of-zk-knowledge-in-decentralized-communication/index.html b/pr-preview/pr-945/blog/exploring-the-role-of-zk-knowledge-in-decentralized-communication/index.html index c82f0e6f124..884a87e820d 100644 --- a/pr-preview/pr-945/blog/exploring-the-role-of-zk-knowledge-in-decentralized-communication/index.html +++ b/pr-preview/pr-945/blog/exploring-the-role-of-zk-knowledge-in-decentralized-communication/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/fabwelt-partners-with-epns/index.html b/pr-preview/pr-945/blog/fabwelt-partners-with-epns/index.html index a8588e721c5..21f009e56a4 100644 --- a/pr-preview/pr-945/blog/fabwelt-partners-with-epns/index.html +++ b/pr-preview/pr-945/blog/fabwelt-partners-with-epns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/faq-push-chain/index.html b/pr-preview/pr-945/blog/faq-push-chain/index.html index d72fe746096..16723958078 100644 --- a/pr-preview/pr-945/blog/faq-push-chain/index.html +++ b/pr-preview/pr-945/blog/faq-push-chain/index.html @@ -19,7 +19,7 @@ - + diff --git "a/pr-preview/pr-945/blog/faq\342\200\224ethereum-push-notification-service/index.html" "b/pr-preview/pr-945/blog/faq\342\200\224ethereum-push-notification-service/index.html" index cd6d36d21fa..256f9db6c09 100644 --- "a/pr-preview/pr-945/blog/faq\342\200\224ethereum-push-notification-service/index.html" +++ "b/pr-preview/pr-945/blog/faq\342\200\224ethereum-push-notification-service/index.html" @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/fast-tracking-proposals-approved/index.html b/pr-preview/pr-945/blog/fast-tracking-proposals-approved/index.html index 1d0b4907f76..61f7486cd00 100644 --- a/pr-preview/pr-945/blog/fast-tracking-proposals-approved/index.html +++ b/pr-preview/pr-945/blog/fast-tracking-proposals-approved/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/february-monthly-recap/index.html b/pr-preview/pr-945/blog/february-monthly-recap/index.html index cb607daa495..2713b1e1335 100644 --- a/pr-preview/pr-945/blog/february-monthly-recap/index.html +++ b/pr-preview/pr-945/blog/february-monthly-recap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/friday-push-19/index.html b/pr-preview/pr-945/blog/friday-push-19/index.html index 8e275c9fd47..aefd55a9203 100644 --- a/pr-preview/pr-945/blog/friday-push-19/index.html +++ b/pr-preview/pr-945/blog/friday-push-19/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/gain-early-access-to-web3-push/index.html b/pr-preview/pr-945/blog/gain-early-access-to-web3-push/index.html index 77fe3a26f96..a9a005b2d04 100644 --- a/pr-preview/pr-945/blog/gain-early-access-to-web3-push/index.html +++ b/pr-preview/pr-945/blog/gain-early-access-to-web3-push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/gate.io-launching-push/index.html b/pr-preview/pr-945/blog/gate.io-launching-push/index.html index f4f377a593c..388a80c4ad0 100644 --- a/pr-preview/pr-945/blog/gate.io-launching-push/index.html +++ b/pr-preview/pr-945/blog/gate.io-launching-push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/geting-started-with-push-sdk-socket-api/index.html b/pr-preview/pr-945/blog/geting-started-with-push-sdk-socket-api/index.html index f174b41c921..bba28ee73c5 100644 --- a/pr-preview/pr-945/blog/geting-started-with-push-sdk-socket-api/index.html +++ b/pr-preview/pr-945/blog/geting-started-with-push-sdk-socket-api/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/getting-started-with-epns/index.html b/pr-preview/pr-945/blog/getting-started-with-epns/index.html index cae1b5e9405..668c32b53ed 100644 --- a/pr-preview/pr-945/blog/getting-started-with-epns/index.html +++ b/pr-preview/pr-945/blog/getting-started-with-epns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/getting-started-with-push-sdk-rest-api/index.html b/pr-preview/pr-945/blog/getting-started-with-push-sdk-rest-api/index.html index e1764d32457..9544bd78509 100644 --- a/pr-preview/pr-945/blog/getting-started-with-push-sdk-rest-api/index.html +++ b/pr-preview/pr-945/blog/getting-started-with-push-sdk-rest-api/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/getting-started-with-push-sdk-uiweb-api/index.html b/pr-preview/pr-945/blog/getting-started-with-push-sdk-uiweb-api/index.html index 19bb4931d63..17b48a5c0d3 100644 --- a/pr-preview/pr-945/blog/getting-started-with-push-sdk-uiweb-api/index.html +++ b/pr-preview/pr-945/blog/getting-started-with-push-sdk-uiweb-api/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/gitcoin-growing-open-source/index.html b/pr-preview/pr-945/blog/gitcoin-growing-open-source/index.html index fd1b3bae05d..9b42de89863 100644 --- a/pr-preview/pr-945/blog/gitcoin-growing-open-source/index.html +++ b/pr-preview/pr-945/blog/gitcoin-growing-open-source/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/going-bananas-push-protocol-partners-with-ape-swap-for-seamless-web3-communication/index.html b/pr-preview/pr-945/blog/going-bananas-push-protocol-partners-with-ape-swap-for-seamless-web3-communication/index.html index 5aad1bd2ebf..2e3e8fad045 100644 --- a/pr-preview/pr-945/blog/going-bananas-push-protocol-partners-with-ape-swap-for-seamless-web3-communication/index.html +++ b/pr-preview/pr-945/blog/going-bananas-push-protocol-partners-with-ape-swap-for-seamless-web3-communication/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/hack-the-future-of-defi/index.html b/pr-preview/pr-945/blog/hack-the-future-of-defi/index.html index 99da613406a..34a940712af 100644 --- a/pr-preview/pr-945/blog/hack-the-future-of-defi/index.html +++ b/pr-preview/pr-945/blog/hack-the-future-of-defi/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/halo-fi-teams-up-with-push-to-enable-effortless-savings-with-real-time-notifications/index.html b/pr-preview/pr-945/blog/halo-fi-teams-up-with-push-to-enable-effortless-savings-with-real-time-notifications/index.html index 450fe7b78f3..f9773a5c9e1 100644 --- a/pr-preview/pr-945/blog/halo-fi-teams-up-with-push-to-enable-effortless-savings-with-real-time-notifications/index.html +++ b/pr-preview/pr-945/blog/halo-fi-teams-up-with-push-to-enable-effortless-savings-with-real-time-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/hello-world-buid-ling-a-working-epns-mobile-app/index.html b/pr-preview/pr-945/blog/hello-world-buid-ling-a-working-epns-mobile-app/index.html index 96104c76539..4c9fd9e6d3e 100644 --- a/pr-preview/pr-945/blog/hello-world-buid-ling-a-working-epns-mobile-app/index.html +++ b/pr-preview/pr-945/blog/hello-world-buid-ling-a-working-epns-mobile-app/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-decentralized-notifications-can-revolutionize-on-chain/index.html b/pr-preview/pr-945/blog/how-decentralized-notifications-can-revolutionize-on-chain/index.html index f58710f6f06..a3c5f049522 100644 --- a/pr-preview/pr-945/blog/how-decentralized-notifications-can-revolutionize-on-chain/index.html +++ b/pr-preview/pr-945/blog/how-decentralized-notifications-can-revolutionize-on-chain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-developers-can-integrate-cartesi-and-push-protocol/index.html b/pr-preview/pr-945/blog/how-developers-can-integrate-cartesi-and-push-protocol/index.html index 4ab2ed2fc6e..7d491914327 100644 --- a/pr-preview/pr-945/blog/how-developers-can-integrate-cartesi-and-push-protocol/index.html +++ b/pr-preview/pr-945/blog/how-developers-can-integrate-cartesi-and-push-protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-epns-can-be-integrated/index.html b/pr-preview/pr-945/blog/how-epns-can-be-integrated/index.html index 9e9864162de..98c4328a83e 100644 --- a/pr-preview/pr-945/blog/how-epns-can-be-integrated/index.html +++ b/pr-preview/pr-945/blog/how-epns-can-be-integrated/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-push-and-cross-chain-communication-will-change-web3/index.html b/pr-preview/pr-945/blog/how-push-and-cross-chain-communication-will-change-web3/index.html index c925c706b21..b2aba5e0ba7 100644 --- a/pr-preview/pr-945/blog/how-push-and-cross-chain-communication-will-change-web3/index.html +++ b/pr-preview/pr-945/blog/how-push-and-cross-chain-communication-will-change-web3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-push-chat-is-different-from-traditional-chat-platforms/index.html b/pr-preview/pr-945/blog/how-push-chat-is-different-from-traditional-chat-platforms/index.html index 5b8806466a3..508478fe3ea 100644 --- a/pr-preview/pr-945/blog/how-push-chat-is-different-from-traditional-chat-platforms/index.html +++ b/pr-preview/pr-945/blog/how-push-chat-is-different-from-traditional-chat-platforms/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-push-enhances-privacy-in-on-chain-communications/index.html b/pr-preview/pr-945/blog/how-push-enhances-privacy-in-on-chain-communications/index.html index 9d2a789c0ed..379d3c3a7c2 100644 --- a/pr-preview/pr-945/blog/how-push-enhances-privacy-in-on-chain-communications/index.html +++ b/pr-preview/pr-945/blog/how-push-enhances-privacy-in-on-chain-communications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-push-protocol-can-revolutionize-data-driven-decision-making/index.html b/pr-preview/pr-945/blog/how-push-protocol-can-revolutionize-data-driven-decision-making/index.html index 32c9644392d..df2dc772327 100644 --- a/pr-preview/pr-945/blog/how-push-protocol-can-revolutionize-data-driven-decision-making/index.html +++ b/pr-preview/pr-945/blog/how-push-protocol-can-revolutionize-data-driven-decision-making/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-push-protocol-helps-build-thriving-nft-and-defi/index.html b/pr-preview/pr-945/blog/how-push-protocol-helps-build-thriving-nft-and-defi/index.html index e4d6ba5bb07..d5e3c194692 100644 --- a/pr-preview/pr-945/blog/how-push-protocol-helps-build-thriving-nft-and-defi/index.html +++ b/pr-preview/pr-945/blog/how-push-protocol-helps-build-thriving-nft-and-defi/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-push-works-with-other-protocols/index.html b/pr-preview/pr-945/blog/how-push-works-with-other-protocols/index.html index ad1de9d4d8d..ce50598bdd5 100644 --- a/pr-preview/pr-945/blog/how-push-works-with-other-protocols/index.html +++ b/pr-preview/pr-945/blog/how-push-works-with-other-protocols/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-to-build-a-game-collectibles-d-app-with-push-and-alchemy/index.html b/pr-preview/pr-945/blog/how-to-build-a-game-collectibles-d-app-with-push-and-alchemy/index.html index d97b7c4a1b5..af208139645 100644 --- a/pr-preview/pr-945/blog/how-to-build-a-game-collectibles-d-app-with-push-and-alchemy/index.html +++ b/pr-preview/pr-945/blog/how-to-build-a-game-collectibles-d-app-with-push-and-alchemy/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-to-build-a-real-time-analytics-dashboard-for-blockchain-transactions-with-alchemy-and-push/index.html b/pr-preview/pr-945/blog/how-to-build-a-real-time-analytics-dashboard-for-blockchain-transactions-with-alchemy-and-push/index.html index 13d9deb2c28..a95f50b48cc 100644 --- a/pr-preview/pr-945/blog/how-to-build-a-real-time-analytics-dashboard-for-blockchain-transactions-with-alchemy-and-push/index.html +++ b/pr-preview/pr-945/blog/how-to-build-a-real-time-analytics-dashboard-for-blockchain-transactions-with-alchemy-and-push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-to-claim-push-alpha-access-nft/index.html b/pr-preview/pr-945/blog/how-to-claim-push-alpha-access-nft/index.html index 2cb83979e74..712ab31abd4 100644 --- a/pr-preview/pr-945/blog/how-to-claim-push-alpha-access-nft/index.html +++ b/pr-preview/pr-945/blog/how-to-claim-push-alpha-access-nft/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-to-create-a-decentralized-reputation-system-with-alchemy-and-push-protocol/index.html b/pr-preview/pr-945/blog/how-to-create-a-decentralized-reputation-system-with-alchemy-and-push-protocol/index.html index a143c57b13b..87666655fc7 100644 --- a/pr-preview/pr-945/blog/how-to-create-a-decentralized-reputation-system-with-alchemy-and-push-protocol/index.html +++ b/pr-preview/pr-945/blog/how-to-create-a-decentralized-reputation-system-with-alchemy-and-push-protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-to-create-your-community-on-push-chat/index.html b/pr-preview/pr-945/blog/how-to-create-your-community-on-push-chat/index.html index ba693357b5c..61cf2e4ea8a 100644 --- a/pr-preview/pr-945/blog/how-to-create-your-community-on-push-chat/index.html +++ b/pr-preview/pr-945/blog/how-to-create-your-community-on-push-chat/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-to-get-started-with-epns/index.html b/pr-preview/pr-945/blog/how-to-get-started-with-epns/index.html index 0eba131ba78..be6d95e1dca 100644 --- a/pr-preview/pr-945/blog/how-to-get-started-with-epns/index.html +++ b/pr-preview/pr-945/blog/how-to-get-started-with-epns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-to-implement-gasless-vote/index.html b/pr-preview/pr-945/blog/how-to-implement-gasless-vote/index.html index 0035d5dbf5c..aa68807877e 100644 --- a/pr-preview/pr-945/blog/how-to-implement-gasless-vote/index.html +++ b/pr-preview/pr-945/blog/how-to-implement-gasless-vote/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-to-join-the-push-alpha-community/index.html b/pr-preview/pr-945/blog/how-to-join-the-push-alpha-community/index.html index 985143ab022..03a52e442bc 100644 --- a/pr-preview/pr-945/blog/how-to-join-the-push-alpha-community/index.html +++ b/pr-preview/pr-945/blog/how-to-join-the-push-alpha-community/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/how-wallets-use-push-to-become-a-super-app/index.html b/pr-preview/pr-945/blog/how-wallets-use-push-to-become-a-super-app/index.html index fe57fa420dc..58a7433cfd8 100644 --- a/pr-preview/pr-945/blog/how-wallets-use-push-to-become-a-super-app/index.html +++ b/pr-preview/pr-945/blog/how-wallets-use-push-to-become-a-super-app/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/huobi-global-will-launch-push-ethereum-push-notification-service/index.html b/pr-preview/pr-945/blog/huobi-global-will-launch-push-ethereum-push-notification-service/index.html index 495c817fe79..0677d0892b8 100644 --- a/pr-preview/pr-945/blog/huobi-global-will-launch-push-ethereum-push-notification-service/index.html +++ b/pr-preview/pr-945/blog/huobi-global-will-launch-push-ethereum-push-notification-service/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/huobi-supports-indian-artists/index.html b/pr-preview/pr-945/blog/huobi-supports-indian-artists/index.html index 0ddc984ad41..17b72481c57 100644 --- a/pr-preview/pr-945/blog/huobi-supports-indian-artists/index.html +++ b/pr-preview/pr-945/blog/huobi-supports-indian-artists/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/hyper-scalable-group-chats/index.html b/pr-preview/pr-945/blog/hyper-scalable-group-chats/index.html index 78e0598cc44..b38ebc51b2b 100644 --- a/pr-preview/pr-945/blog/hyper-scalable-group-chats/index.html +++ b/pr-preview/pr-945/blog/hyper-scalable-group-chats/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/icymi-epns-at-eth-cc-2022-paris/index.html b/pr-preview/pr-945/blog/icymi-epns-at-eth-cc-2022-paris/index.html index 346ddf504ee..12be09f4dd9 100644 --- a/pr-preview/pr-945/blog/icymi-epns-at-eth-cc-2022-paris/index.html +++ b/pr-preview/pr-945/blog/icymi-epns-at-eth-cc-2022-paris/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/in-2009-push-notifications-changes-web-2/index.html b/pr-preview/pr-945/blog/in-2009-push-notifications-changes-web-2/index.html index 9f858db25d6..2c8e661e31d 100644 --- a/pr-preview/pr-945/blog/in-2009-push-notifications-changes-web-2/index.html +++ b/pr-preview/pr-945/blog/in-2009-push-notifications-changes-web-2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/index-coop-stay-updated-about-the-latest-defi-products-with-push/index.html b/pr-preview/pr-945/blog/index-coop-stay-updated-about-the-latest-defi-products-with-push/index.html index 0f018d6ae0f..c28e46367f7 100644 --- a/pr-preview/pr-945/blog/index-coop-stay-updated-about-the-latest-defi-products-with-push/index.html +++ b/pr-preview/pr-945/blog/index-coop-stay-updated-about-the-latest-defi-products-with-push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/index.html b/pr-preview/pr-945/blog/index.html index 829d75efeb8..c6bcd47bb8c 100644 --- a/pr-preview/pr-945/blog/index.html +++ b/pr-preview/pr-945/blog/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/interoperable-communications-moving-across-an-open-web-with-push/index.html b/pr-preview/pr-945/blog/interoperable-communications-moving-across-an-open-web-with-push/index.html index 10d07093418..131c2d3e23d 100644 --- a/pr-preview/pr-945/blog/interoperable-communications-moving-across-an-open-web-with-push/index.html +++ b/pr-preview/pr-945/blog/interoperable-communications-moving-across-an-open-web-with-push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/introducing-notification-settings/index.html b/pr-preview/pr-945/blog/introducing-notification-settings/index.html index ef78de6f22e..0f33a362cc2 100644 --- a/pr-preview/pr-945/blog/introducing-notification-settings/index.html +++ b/pr-preview/pr-945/blog/introducing-notification-settings/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/introducing-push-improvement-proposal-pip/index.html b/pr-preview/pr-945/blog/introducing-push-improvement-proposal-pip/index.html index fda69c685e2..bc93d9399b9 100644 --- a/pr-preview/pr-945/blog/introducing-push-improvement-proposal-pip/index.html +++ b/pr-preview/pr-945/blog/introducing-push-improvement-proposal-pip/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/introducing-push-nft-chat-chats-and-comms-tied-to-your-nf-ts-done-right/index.html b/pr-preview/pr-945/blog/introducing-push-nft-chat-chats-and-comms-tied-to-your-nf-ts-done-right/index.html index f3f3d01a627..1c1c38b0cb9 100644 --- a/pr-preview/pr-945/blog/introducing-push-nft-chat-chats-and-comms-tied-to-your-nf-ts-done-right/index.html +++ b/pr-preview/pr-945/blog/introducing-push-nft-chat-chats-and-comms-tied-to-your-nf-ts-done-right/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/introducing-push-protocol-v1-5/index.html b/pr-preview/pr-945/blog/introducing-push-protocol-v1-5/index.html index a30a800afd2..a6a7b3eb3f8 100644 --- a/pr-preview/pr-945/blog/introducing-push-protocol-v1-5/index.html +++ b/pr-preview/pr-945/blog/introducing-push-protocol-v1-5/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/introducing-sns-for-push-nodes/index.html b/pr-preview/pr-945/blog/introducing-sns-for-push-nodes/index.html index 3881468db2d..28bac802832 100644 --- a/pr-preview/pr-945/blog/introducing-sns-for-push-nodes/index.html +++ b/pr-preview/pr-945/blog/introducing-sns-for-push-nodes/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/introducing-the-epns-chrome-browser-extension-alpha/index.html b/pr-preview/pr-945/blog/introducing-the-epns-chrome-browser-extension-alpha/index.html index 2a065ab1233..472fa0b72ff 100644 --- a/pr-preview/pr-945/blog/introducing-the-epns-chrome-browser-extension-alpha/index.html +++ b/pr-preview/pr-945/blog/introducing-the-epns-chrome-browser-extension-alpha/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/introducing-the-push-ambassador-india-program/index.html b/pr-preview/pr-945/blog/introducing-the-push-ambassador-india-program/index.html index 8f8c23eca7f..5d6c3e271e5 100644 --- a/pr-preview/pr-945/blog/introducing-the-push-ambassador-india-program/index.html +++ b/pr-preview/pr-945/blog/introducing-the-push-ambassador-india-program/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/introducing-the-push-points-program/index.html b/pr-preview/pr-945/blog/introducing-the-push-points-program/index.html index 3d4d0dcbb2c..17eb9c8f4d7 100644 --- a/pr-preview/pr-945/blog/introducing-the-push-points-program/index.html +++ b/pr-preview/pr-945/blog/introducing-the-push-points-program/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/introducing-the-push/index.html b/pr-preview/pr-945/blog/introducing-the-push/index.html index cc27ac50a0e..6394e7e2238 100644 --- a/pr-preview/pr-945/blog/introducing-the-push/index.html +++ b/pr-preview/pr-945/blog/introducing-the-push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/it-is-a-wrap-for-2020-a-rewind/index.html b/pr-preview/pr-945/blog/it-is-a-wrap-for-2020-a-rewind/index.html index 1a5e06fa609..4d4bd8b076e 100644 --- a/pr-preview/pr-945/blog/it-is-a-wrap-for-2020-a-rewind/index.html +++ b/pr-preview/pr-945/blog/it-is-a-wrap-for-2020-a-rewind/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/january-monthly-recap/index.html b/pr-preview/pr-945/blog/january-monthly-recap/index.html index 9e259ee8bef..8ff2dfc622a 100644 --- a/pr-preview/pr-945/blog/january-monthly-recap/index.html +++ b/pr-preview/pr-945/blog/january-monthly-recap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/join-us-for-the-eth-global-tokyo-hackathon/index.html b/pr-preview/pr-945/blog/join-us-for-the-eth-global-tokyo-hackathon/index.html index cf1eea245cd..1730f5eb6be 100644 --- a/pr-preview/pr-945/blog/join-us-for-the-eth-global-tokyo-hackathon/index.html +++ b/pr-preview/pr-945/blog/join-us-for-the-eth-global-tokyo-hackathon/index.html @@ -19,7 +19,7 @@ - + diff --git "a/pr-preview/pr-945/blog/join-us-for-the-ethbogot\303\241-2022-hackathon/index.html" "b/pr-preview/pr-945/blog/join-us-for-the-ethbogot\303\241-2022-hackathon/index.html" index 56cd430e22f..e5af169881c 100644 --- "a/pr-preview/pr-945/blog/join-us-for-the-ethbogot\303\241-2022-hackathon/index.html" +++ "b/pr-preview/pr-945/blog/join-us-for-the-ethbogot\303\241-2022-hackathon/index.html" @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/july-monthly-recap/index.html b/pr-preview/pr-945/blog/july-monthly-recap/index.html index e1033ff3d25..ca8d63eb24f 100644 --- a/pr-preview/pr-945/blog/july-monthly-recap/index.html +++ b/pr-preview/pr-945/blog/july-monthly-recap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/june-monthly-recap/index.html b/pr-preview/pr-945/blog/june-monthly-recap/index.html index 8810b3b6a63..e83ba34b911 100644 --- a/pr-preview/pr-945/blog/june-monthly-recap/index.html +++ b/pr-preview/pr-945/blog/june-monthly-recap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/just-what-can-you-use-epns-for/index.html b/pr-preview/pr-945/blog/just-what-can-you-use-epns-for/index.html index 1ba62792207..25a8cdf17be 100644 --- a/pr-preview/pr-945/blog/just-what-can-you-use-epns-for/index.html +++ b/pr-preview/pr-945/blog/just-what-can-you-use-epns-for/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/kaito-ama-recap/index.html b/pr-preview/pr-945/blog/kaito-ama-recap/index.html index 5168ae09d68..35bde7417ab 100644 --- a/pr-preview/pr-945/blog/kaito-ama-recap/index.html +++ b/pr-preview/pr-945/blog/kaito-ama-recap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/kernel-a-gitcoin-collective-joins/index.html b/pr-preview/pr-945/blog/kernel-a-gitcoin-collective-joins/index.html index 9048ad46313..dde2ea5c88a 100644 --- a/pr-preview/pr-945/blog/kernel-a-gitcoin-collective-joins/index.html +++ b/pr-preview/pr-945/blog/kernel-a-gitcoin-collective-joins/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/kicking-off-the-epns-nft-community/index.html b/pr-preview/pr-945/blog/kicking-off-the-epns-nft-community/index.html index f336ea90b2b..29afdc044bf 100644 --- a/pr-preview/pr-945/blog/kicking-off-the-epns-nft-community/index.html +++ b/pr-preview/pr-945/blog/kicking-off-the-epns-nft-community/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/launch-of-the-push-ambassadors-program-english-espanol/index.html b/pr-preview/pr-945/blog/launch-of-the-push-ambassadors-program-english-espanol/index.html index 0935fada1b1..82d0770e657 100644 --- a/pr-preview/pr-945/blog/launch-of-the-push-ambassadors-program-english-espanol/index.html +++ b/pr-preview/pr-945/blog/launch-of-the-push-ambassadors-program-english-espanol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/launching-the-future-of-web3-messaging-with-push-chat-and-push-group-chat/index.html b/pr-preview/pr-945/blog/launching-the-future-of-web3-messaging-with-push-chat-and-push-group-chat/index.html index 18e4ea122eb..412b78c27dd 100644 --- a/pr-preview/pr-945/blog/launching-the-future-of-web3-messaging-with-push-chat-and-push-group-chat/index.html +++ b/pr-preview/pr-945/blog/launching-the-future-of-web3-messaging-with-push-chat-and-push-group-chat/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/let-s-embark-on-a-mission-w-push-protocol/index.html b/pr-preview/pr-945/blog/let-s-embark-on-a-mission-w-push-protocol/index.html index 21b5417d5ac..11506845f6a 100644 --- a/pr-preview/pr-945/blog/let-s-embark-on-a-mission-w-push-protocol/index.html +++ b/pr-preview/pr-945/blog/let-s-embark-on-a-mission-w-push-protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/loan-update-high-utilization-or-low-liquidity-please-check-your-position/index.html b/pr-preview/pr-945/blog/loan-update-high-utilization-or-low-liquidity-please-check-your-position/index.html index 7925d1183e1..f72f2f91f95 100644 --- a/pr-preview/pr-945/blog/loan-update-high-utilization-or-low-liquidity-please-check-your-position/index.html +++ b/pr-preview/pr-945/blog/loan-update-high-utilization-or-low-liquidity-please-check-your-position/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/make-the-most-of-airdrops/index.html b/pr-preview/pr-945/blog/make-the-most-of-airdrops/index.html index 2aee9cb4bdd..c3fe7414e3f 100644 --- a/pr-preview/pr-945/blog/make-the-most-of-airdrops/index.html +++ b/pr-preview/pr-945/blog/make-the-most-of-airdrops/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/march-monthly-recap/index.html b/pr-preview/pr-945/blog/march-monthly-recap/index.html index a514bf2e405..0de52bbcfa9 100644 --- a/pr-preview/pr-945/blog/march-monthly-recap/index.html +++ b/pr-preview/pr-945/blog/march-monthly-recap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/maximize-network-resilience-the-advantage-of-push-protocol/index.html b/pr-preview/pr-945/blog/maximize-network-resilience-the-advantage-of-push-protocol/index.html index 0510a7fe957..8932f04705d 100644 --- a/pr-preview/pr-945/blog/maximize-network-resilience-the-advantage-of-push-protocol/index.html +++ b/pr-preview/pr-945/blog/maximize-network-resilience-the-advantage-of-push-protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/may-monthly-recap/index.html b/pr-preview/pr-945/blog/may-monthly-recap/index.html index b2c5bb7fcf4..13ae7aae632 100644 --- a/pr-preview/pr-945/blog/may-monthly-recap/index.html +++ b/pr-preview/pr-945/blog/may-monthly-recap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/meet-frens-of-epns/index.html b/pr-preview/pr-945/blog/meet-frens-of-epns/index.html index 192ad8da2f8..c50255155e5 100644 --- a/pr-preview/pr-945/blog/meet-frens-of-epns/index.html +++ b/pr-preview/pr-945/blog/meet-frens-of-epns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/meta-txn-power-house-biconomy/index.html b/pr-preview/pr-945/blog/meta-txn-power-house-biconomy/index.html index ee0e7db7d78..c79ab489479 100644 --- a/pr-preview/pr-945/blog/meta-txn-power-house-biconomy/index.html +++ b/pr-preview/pr-945/blog/meta-txn-power-house-biconomy/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/monthly-blocks/index.html b/pr-preview/pr-945/blog/monthly-blocks/index.html index 05dbcc8d1ca..8c32407c1d1 100644 --- a/pr-preview/pr-945/blog/monthly-blocks/index.html +++ b/pr-preview/pr-945/blog/monthly-blocks/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/monthly-recap-february-2024/index.html b/pr-preview/pr-945/blog/monthly-recap-february-2024/index.html index 7b8f454dec3..0472a0d4e30 100644 --- a/pr-preview/pr-945/blog/monthly-recap-february-2024/index.html +++ b/pr-preview/pr-945/blog/monthly-recap-february-2024/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/monthly-recap-january-2024/index.html b/pr-preview/pr-945/blog/monthly-recap-january-2024/index.html index fc10404d8cc..22f88b4cff4 100644 --- a/pr-preview/pr-945/blog/monthly-recap-january-2024/index.html +++ b/pr-preview/pr-945/blog/monthly-recap-january-2024/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/monthly-recap-march-2024/index.html b/pr-preview/pr-945/blog/monthly-recap-march-2024/index.html index 53a9d5d84d5..06d82ade158 100644 --- a/pr-preview/pr-945/blog/monthly-recap-march-2024/index.html +++ b/pr-preview/pr-945/blog/monthly-recap-march-2024/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/monthly-recap-november/index.html b/pr-preview/pr-945/blog/monthly-recap-november/index.html index 6c12163ce76..c5d8ca9661e 100644 --- a/pr-preview/pr-945/blog/monthly-recap-november/index.html +++ b/pr-preview/pr-945/blog/monthly-recap-november/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/monthly-recap-october-2024/index.html b/pr-preview/pr-945/blog/monthly-recap-october-2024/index.html index 5dee1a733c6..7dc2336fe34 100644 --- a/pr-preview/pr-945/blog/monthly-recap-october-2024/index.html +++ b/pr-preview/pr-945/blog/monthly-recap-october-2024/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/monthly-recap-september-2024/index.html b/pr-preview/pr-945/blog/monthly-recap-september-2024/index.html index be387dc47bc..1265116f02f 100644 --- a/pr-preview/pr-945/blog/monthly-recap-september-2024/index.html +++ b/pr-preview/pr-945/blog/monthly-recap-september-2024/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/monthly-updates-june-2024/index.html b/pr-preview/pr-945/blog/monthly-updates-june-2024/index.html index 8866bc9c5c7..f7de5985b51 100644 --- a/pr-preview/pr-945/blog/monthly-updates-june-2024/index.html +++ b/pr-preview/pr-945/blog/monthly-updates-june-2024/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/monthly-updates-may-2024/index.html b/pr-preview/pr-945/blog/monthly-updates-may-2024/index.html index 83374e3b3db..80c65b7fca9 100644 --- a/pr-preview/pr-945/blog/monthly-updates-may-2024/index.html +++ b/pr-preview/pr-945/blog/monthly-updates-may-2024/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/mover-integrates-with-epns/index.html b/pr-preview/pr-945/blog/mover-integrates-with-epns/index.html index 2849d043fc5..db3b0b764b5 100644 --- a/pr-preview/pr-945/blog/mover-integrates-with-epns/index.html +++ b/pr-preview/pr-945/blog/mover-integrates-with-epns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/my-app-would-like-to-send-you-push-notifications/index.html b/pr-preview/pr-945/blog/my-app-would-like-to-send-you-push-notifications/index.html index 42197a2d497..2806c15d354 100644 --- a/pr-preview/pr-945/blog/my-app-would-like-to-send-you-push-notifications/index.html +++ b/pr-preview/pr-945/blog/my-app-would-like-to-send-you-push-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/my-dapp-would-like-to-send-you-push-notifications/index.html b/pr-preview/pr-945/blog/my-dapp-would-like-to-send-you-push-notifications/index.html index 45da2888c97..116fe89565d 100644 --- a/pr-preview/pr-945/blog/my-dapp-would-like-to-send-you-push-notifications/index.html +++ b/pr-preview/pr-945/blog/my-dapp-would-like-to-send-you-push-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/new-push-yield-farming-rewards-full-details/index.html b/pr-preview/pr-945/blog/new-push-yield-farming-rewards-full-details/index.html index 681469a4c6e..cfaa1ad9052 100644 --- a/pr-preview/pr-945/blog/new-push-yield-farming-rewards-full-details/index.html +++ b/pr-preview/pr-945/blog/new-push-yield-farming-rewards-full-details/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/notify-decentralized-prediction-markets/index.html b/pr-preview/pr-945/blog/notify-decentralized-prediction-markets/index.html index 148a25cd580..c8c68de4070 100644 --- a/pr-preview/pr-945/blog/notify-decentralized-prediction-markets/index.html +++ b/pr-preview/pr-945/blog/notify-decentralized-prediction-markets/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/november-monthly-recap/index.html b/pr-preview/pr-945/blog/november-monthly-recap/index.html index 612d0666176..86b8331d13d 100644 --- a/pr-preview/pr-945/blog/november-monthly-recap/index.html +++ b/pr-preview/pr-945/blog/november-monthly-recap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/now-anyone-can-write-for-push-protocol/index.html b/pr-preview/pr-945/blog/now-anyone-can-write-for-push-protocol/index.html index 5d70cac8535..4981322b226 100644 --- a/pr-preview/pr-945/blog/now-anyone-can-write-for-push-protocol/index.html +++ b/pr-preview/pr-945/blog/now-anyone-can-write-for-push-protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/october-monthly-recap/index.html b/pr-preview/pr-945/blog/october-monthly-recap/index.html index 7dbaab21c07..4f413f38a82 100644 --- a/pr-preview/pr-945/blog/october-monthly-recap/index.html +++ b/pr-preview/pr-945/blog/october-monthly-recap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/openleverage-decentralized-push-notifs/index.html b/pr-preview/pr-945/blog/openleverage-decentralized-push-notifs/index.html index 050970dcae6..7d1c5fbc453 100644 --- a/pr-preview/pr-945/blog/openleverage-decentralized-push-notifs/index.html +++ b/pr-preview/pr-945/blog/openleverage-decentralized-push-notifs/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/oportunidades-de-desarrollo-profesional-con-push-protocol-en-latinoamerica/index.html b/pr-preview/pr-945/blog/oportunidades-de-desarrollo-profesional-con-push-protocol-en-latinoamerica/index.html index 5a28c691b06..774517e970d 100644 --- a/pr-preview/pr-945/blog/oportunidades-de-desarrollo-profesional-con-push-protocol-en-latinoamerica/index.html +++ b/pr-preview/pr-945/blog/oportunidades-de-desarrollo-profesional-con-push-protocol-en-latinoamerica/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/our-2021-year-in-review/index.html b/pr-preview/pr-945/blog/our-2021-year-in-review/index.html index 07868f15571..80468a6e175 100644 --- a/pr-preview/pr-945/blog/our-2021-year-in-review/index.html +++ b/pr-preview/pr-945/blog/our-2021-year-in-review/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/our-first-ever-epns-rockstar/index.html b/pr-preview/pr-945/blog/our-first-ever-epns-rockstar/index.html index 0c18aa8040a..fe7f641a016 100644 --- a/pr-preview/pr-945/blog/our-first-ever-epns-rockstar/index.html +++ b/pr-preview/pr-945/blog/our-first-ever-epns-rockstar/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/10/index.html b/pr-preview/pr-945/blog/page/10/index.html index 4ee2233eb0c..2422a0bc011 100644 --- a/pr-preview/pr-945/blog/page/10/index.html +++ b/pr-preview/pr-945/blog/page/10/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/11/index.html b/pr-preview/pr-945/blog/page/11/index.html index 5da4f2d217f..2fec1f6e1f4 100644 --- a/pr-preview/pr-945/blog/page/11/index.html +++ b/pr-preview/pr-945/blog/page/11/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/12/index.html b/pr-preview/pr-945/blog/page/12/index.html index 23efa30d8e4..118f5544b42 100644 --- a/pr-preview/pr-945/blog/page/12/index.html +++ b/pr-preview/pr-945/blog/page/12/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/13/index.html b/pr-preview/pr-945/blog/page/13/index.html index d8cb06d8c5c..615dedaaae1 100644 --- a/pr-preview/pr-945/blog/page/13/index.html +++ b/pr-preview/pr-945/blog/page/13/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/14/index.html b/pr-preview/pr-945/blog/page/14/index.html index 07a6b39d06d..25c9bb1e1ab 100644 --- a/pr-preview/pr-945/blog/page/14/index.html +++ b/pr-preview/pr-945/blog/page/14/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/15/index.html b/pr-preview/pr-945/blog/page/15/index.html index 16bf0b1e019..0db112d86c5 100644 --- a/pr-preview/pr-945/blog/page/15/index.html +++ b/pr-preview/pr-945/blog/page/15/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/16/index.html b/pr-preview/pr-945/blog/page/16/index.html index ec11e84cd34..ebf3885b8ee 100644 --- a/pr-preview/pr-945/blog/page/16/index.html +++ b/pr-preview/pr-945/blog/page/16/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/17/index.html b/pr-preview/pr-945/blog/page/17/index.html index 33fae536a2b..f68c009054c 100644 --- a/pr-preview/pr-945/blog/page/17/index.html +++ b/pr-preview/pr-945/blog/page/17/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/18/index.html b/pr-preview/pr-945/blog/page/18/index.html index 7f4bfb99205..605b11dc0aa 100644 --- a/pr-preview/pr-945/blog/page/18/index.html +++ b/pr-preview/pr-945/blog/page/18/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/19/index.html b/pr-preview/pr-945/blog/page/19/index.html index a2b2e2eae82..19ab0e46364 100644 --- a/pr-preview/pr-945/blog/page/19/index.html +++ b/pr-preview/pr-945/blog/page/19/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/2/index.html b/pr-preview/pr-945/blog/page/2/index.html index bd901c3b66e..f21aa6b977d 100644 --- a/pr-preview/pr-945/blog/page/2/index.html +++ b/pr-preview/pr-945/blog/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/20/index.html b/pr-preview/pr-945/blog/page/20/index.html index 5b80b5ee27a..00ec0d3ddfa 100644 --- a/pr-preview/pr-945/blog/page/20/index.html +++ b/pr-preview/pr-945/blog/page/20/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/21/index.html b/pr-preview/pr-945/blog/page/21/index.html index b6fdafd6adb..5c668b786c5 100644 --- a/pr-preview/pr-945/blog/page/21/index.html +++ b/pr-preview/pr-945/blog/page/21/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/22/index.html b/pr-preview/pr-945/blog/page/22/index.html index 8db057c696d..34321955217 100644 --- a/pr-preview/pr-945/blog/page/22/index.html +++ b/pr-preview/pr-945/blog/page/22/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/23/index.html b/pr-preview/pr-945/blog/page/23/index.html index 61804316dc7..f1b431d6a3f 100644 --- a/pr-preview/pr-945/blog/page/23/index.html +++ b/pr-preview/pr-945/blog/page/23/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/24/index.html b/pr-preview/pr-945/blog/page/24/index.html index b99019b0e6f..3a7ad957a71 100644 --- a/pr-preview/pr-945/blog/page/24/index.html +++ b/pr-preview/pr-945/blog/page/24/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/25/index.html b/pr-preview/pr-945/blog/page/25/index.html index fb35f684fdc..85cc810d243 100644 --- a/pr-preview/pr-945/blog/page/25/index.html +++ b/pr-preview/pr-945/blog/page/25/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/26/index.html b/pr-preview/pr-945/blog/page/26/index.html index 84335c24b71..0c1352bd3a1 100644 --- a/pr-preview/pr-945/blog/page/26/index.html +++ b/pr-preview/pr-945/blog/page/26/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/27/index.html b/pr-preview/pr-945/blog/page/27/index.html index c8de50483b0..95ded332141 100644 --- a/pr-preview/pr-945/blog/page/27/index.html +++ b/pr-preview/pr-945/blog/page/27/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/28/index.html b/pr-preview/pr-945/blog/page/28/index.html index 8a70e6ed017..ed24fb92ba3 100644 --- a/pr-preview/pr-945/blog/page/28/index.html +++ b/pr-preview/pr-945/blog/page/28/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/29/index.html b/pr-preview/pr-945/blog/page/29/index.html index 12c290a4264..c4038ae247f 100644 --- a/pr-preview/pr-945/blog/page/29/index.html +++ b/pr-preview/pr-945/blog/page/29/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/3/index.html b/pr-preview/pr-945/blog/page/3/index.html index d191052282d..54d27399be7 100644 --- a/pr-preview/pr-945/blog/page/3/index.html +++ b/pr-preview/pr-945/blog/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/30/index.html b/pr-preview/pr-945/blog/page/30/index.html index 855335096df..e73950b83f1 100644 --- a/pr-preview/pr-945/blog/page/30/index.html +++ b/pr-preview/pr-945/blog/page/30/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/31/index.html b/pr-preview/pr-945/blog/page/31/index.html index f5f799280fa..1a0e538a11b 100644 --- a/pr-preview/pr-945/blog/page/31/index.html +++ b/pr-preview/pr-945/blog/page/31/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/32/index.html b/pr-preview/pr-945/blog/page/32/index.html index 7bd8f670e37..a929e95a380 100644 --- a/pr-preview/pr-945/blog/page/32/index.html +++ b/pr-preview/pr-945/blog/page/32/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/33/index.html b/pr-preview/pr-945/blog/page/33/index.html index f776322039f..d106054dea6 100644 --- a/pr-preview/pr-945/blog/page/33/index.html +++ b/pr-preview/pr-945/blog/page/33/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/34/index.html b/pr-preview/pr-945/blog/page/34/index.html index 1122e58ad59..4b9a58132dd 100644 --- a/pr-preview/pr-945/blog/page/34/index.html +++ b/pr-preview/pr-945/blog/page/34/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/35/index.html b/pr-preview/pr-945/blog/page/35/index.html index 22b774df6d6..67e57a94207 100644 --- a/pr-preview/pr-945/blog/page/35/index.html +++ b/pr-preview/pr-945/blog/page/35/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/36/index.html b/pr-preview/pr-945/blog/page/36/index.html index 01975fbd1ff..5a9f632267c 100644 --- a/pr-preview/pr-945/blog/page/36/index.html +++ b/pr-preview/pr-945/blog/page/36/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/37/index.html b/pr-preview/pr-945/blog/page/37/index.html index 09385adf0a1..140415e5bc3 100644 --- a/pr-preview/pr-945/blog/page/37/index.html +++ b/pr-preview/pr-945/blog/page/37/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/38/index.html b/pr-preview/pr-945/blog/page/38/index.html index 3efa1d28acc..8012fb79c86 100644 --- a/pr-preview/pr-945/blog/page/38/index.html +++ b/pr-preview/pr-945/blog/page/38/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/39/index.html b/pr-preview/pr-945/blog/page/39/index.html index 45807868fd5..afc02f4b273 100644 --- a/pr-preview/pr-945/blog/page/39/index.html +++ b/pr-preview/pr-945/blog/page/39/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/4/index.html b/pr-preview/pr-945/blog/page/4/index.html index 754242c695c..2cf39cba7a2 100644 --- a/pr-preview/pr-945/blog/page/4/index.html +++ b/pr-preview/pr-945/blog/page/4/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/40/index.html b/pr-preview/pr-945/blog/page/40/index.html index bd56a03ac3f..2e86ffcbb62 100644 --- a/pr-preview/pr-945/blog/page/40/index.html +++ b/pr-preview/pr-945/blog/page/40/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/41/index.html b/pr-preview/pr-945/blog/page/41/index.html index ee112de3d57..2c607aacb9f 100644 --- a/pr-preview/pr-945/blog/page/41/index.html +++ b/pr-preview/pr-945/blog/page/41/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/5/index.html b/pr-preview/pr-945/blog/page/5/index.html index 841d719ad2f..8dbeba35daf 100644 --- a/pr-preview/pr-945/blog/page/5/index.html +++ b/pr-preview/pr-945/blog/page/5/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/6/index.html b/pr-preview/pr-945/blog/page/6/index.html index 354fbab54d9..49dfcdaab6f 100644 --- a/pr-preview/pr-945/blog/page/6/index.html +++ b/pr-preview/pr-945/blog/page/6/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/7/index.html b/pr-preview/pr-945/blog/page/7/index.html index c6c6560adf1..13af2bc4366 100644 --- a/pr-preview/pr-945/blog/page/7/index.html +++ b/pr-preview/pr-945/blog/page/7/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/8/index.html b/pr-preview/pr-945/blog/page/8/index.html index e79548e59ef..4875a39202f 100644 --- a/pr-preview/pr-945/blog/page/8/index.html +++ b/pr-preview/pr-945/blog/page/8/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/page/9/index.html b/pr-preview/pr-945/blog/page/9/index.html index 486eff15074..56576b742a2 100644 --- a/pr-preview/pr-945/blog/page/9/index.html +++ b/pr-preview/pr-945/blog/page/9/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/parallel-validators-and-dynamic-sharding/index.html b/pr-preview/pr-945/blog/parallel-validators-and-dynamic-sharding/index.html index 486b133d795..6c1b2f3e1b9 100644 --- a/pr-preview/pr-945/blog/parallel-validators-and-dynamic-sharding/index.html +++ b/pr-preview/pr-945/blog/parallel-validators-and-dynamic-sharding/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/poolz-finance-collaborates-with-epns/index.html b/pr-preview/pr-945/blog/poolz-finance-collaborates-with-epns/index.html index 62664a25184..88c8680d8f0 100644 --- a/pr-preview/pr-945/blog/poolz-finance-collaborates-with-epns/index.html +++ b/pr-preview/pr-945/blog/poolz-finance-collaborates-with-epns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/preparing-for-the-epns-push-ido/index.html b/pr-preview/pr-945/blog/preparing-for-the-epns-push-ido/index.html index 2c7503985c5..6449b2bf3f9 100644 --- a/pr-preview/pr-945/blog/preparing-for-the-epns-push-ido/index.html +++ b/pr-preview/pr-945/blog/preparing-for-the-epns-push-ido/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/programmable-money-2-meets-epns/index.html b/pr-preview/pr-945/blog/programmable-money-2-meets-epns/index.html index b6d8e8a093b..6da8741eb65 100644 --- a/pr-preview/pr-945/blog/programmable-money-2-meets-epns/index.html +++ b/pr-preview/pr-945/blog/programmable-money-2-meets-epns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/proud-to-support-gitcoin-grants-round-8/index.html b/pr-preview/pr-945/blog/proud-to-support-gitcoin-grants-round-8/index.html index 3a7a0c393d0..6d007dd330f 100644 --- a/pr-preview/pr-945/blog/proud-to-support-gitcoin-grants-round-8/index.html +++ b/pr-preview/pr-945/blog/proud-to-support-gitcoin-grants-round-8/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-2022-year-in-review/index.html b/pr-preview/pr-945/blog/push-2022-year-in-review/index.html index bcd8a884091..754d0b315ba 100644 --- a/pr-preview/pr-945/blog/push-2022-year-in-review/index.html +++ b/pr-preview/pr-945/blog/push-2022-year-in-review/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-and-lens-powering-ux-with-notifications-and-aaves-lens/index.html b/pr-preview/pr-945/blog/push-and-lens-powering-ux-with-notifications-and-aaves-lens/index.html index ba1a4c3eeee..00ce7bb294b 100644 --- a/pr-preview/pr-945/blog/push-and-lens-powering-ux-with-notifications-and-aaves-lens/index.html +++ b/pr-preview/pr-945/blog/push-and-lens-powering-ux-with-notifications-and-aaves-lens/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-and-phuture-finance-team-up-to-enhance-user-engagement/index.html b/pr-preview/pr-945/blog/push-and-phuture-finance-team-up-to-enhance-user-engagement/index.html index 535f0ad4827..4441ac19bbb 100644 --- a/pr-preview/pr-945/blog/push-and-phuture-finance-team-up-to-enhance-user-engagement/index.html +++ b/pr-preview/pr-945/blog/push-and-phuture-finance-team-up-to-enhance-user-engagement/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-and-tollan-worlds-partner-to-level-up-communication-with-gamers/index.html b/pr-preview/pr-945/blog/push-and-tollan-worlds-partner-to-level-up-communication-with-gamers/index.html index c6ec3ac5280..891a2b52159 100644 --- a/pr-preview/pr-945/blog/push-and-tollan-worlds-partner-to-level-up-communication-with-gamers/index.html +++ b/pr-preview/pr-945/blog/push-and-tollan-worlds-partner-to-level-up-communication-with-gamers/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-and-wherever-team-up-to-bring-web3-communication-tools-to-dapps/index.html b/pr-preview/pr-945/blog/push-and-wherever-team-up-to-bring-web3-communication-tools-to-dapps/index.html index bb63a7ceb70..a3c962d64f5 100644 --- a/pr-preview/pr-945/blog/push-and-wherever-team-up-to-bring-web3-communication-tools-to-dapps/index.html +++ b/pr-preview/pr-945/blog/push-and-wherever-team-up-to-bring-web3-communication-tools-to-dapps/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-channel-of-the-week/index.html b/pr-preview/pr-945/blog/push-channel-of-the-week/index.html index 2b6d9b3cc78..a7281adb941 100644 --- a/pr-preview/pr-945/blog/push-channel-of-the-week/index.html +++ b/pr-preview/pr-945/blog/push-channel-of-the-week/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-chat-the-solution-to-centralized-messaging/index.html b/pr-preview/pr-945/blog/push-chat-the-solution-to-centralized-messaging/index.html index 864bffa9c4c..b5b8316b121 100644 --- a/pr-preview/pr-945/blog/push-chat-the-solution-to-centralized-messaging/index.html +++ b/pr-preview/pr-945/blog/push-chat-the-solution-to-centralized-messaging/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-dao-extends-liquidity-rewards-program-in-v2-0/index.html b/pr-preview/pr-945/blog/push-dao-extends-liquidity-rewards-program-in-v2-0/index.html index 79e821f5354..a4b1a6daa16 100644 --- a/pr-preview/pr-945/blog/push-dao-extends-liquidity-rewards-program-in-v2-0/index.html +++ b/pr-preview/pr-945/blog/push-dao-extends-liquidity-rewards-program-in-v2-0/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-dao-progressive-decentralization-the-next-phase-of-push-governance/index.html b/pr-preview/pr-945/blog/push-dao-progressive-decentralization-the-next-phase-of-push-governance/index.html index d5fe3f4d826..8b9d34daa96 100644 --- a/pr-preview/pr-945/blog/push-dao-progressive-decentralization-the-next-phase-of-push-governance/index.html +++ b/pr-preview/pr-945/blog/push-dao-progressive-decentralization-the-next-phase-of-push-governance/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-eth-denver-full-itinerary/index.html b/pr-preview/pr-945/blog/push-eth-denver-full-itinerary/index.html index a477d5697a3..147a96e96d4 100644 --- a/pr-preview/pr-945/blog/push-eth-denver-full-itinerary/index.html +++ b/pr-preview/pr-945/blog/push-eth-denver-full-itinerary/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-ethIndia-push-bounties/index.html b/pr-preview/pr-945/blog/push-ethIndia-push-bounties/index.html index 0c259415cd0..844e6080de7 100644 --- a/pr-preview/pr-945/blog/push-ethIndia-push-bounties/index.html +++ b/pr-preview/pr-945/blog/push-ethIndia-push-bounties/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-ethglobal-istanbul-winner/index.html b/pr-preview/pr-945/blog/push-ethglobal-istanbul-winner/index.html index b1b8f187258..0fdcbec254d 100644 --- a/pr-preview/pr-945/blog/push-ethglobal-istanbul-winner/index.html +++ b/pr-preview/pr-945/blog/push-ethglobal-istanbul-winner/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-ethglobal-istanbul/index.html b/pr-preview/pr-945/blog/push-ethglobal-istanbul/index.html index c2a8211c782..6614dbd8b67 100644 --- a/pr-preview/pr-945/blog/push-ethglobal-istanbul/index.html +++ b/pr-preview/pr-945/blog/push-ethglobal-istanbul/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-game-theory-explained/index.html b/pr-preview/pr-945/blog/push-game-theory-explained/index.html index 645ddf867ad..3b59d9064be 100644 --- a/pr-preview/pr-945/blog/push-game-theory-explained/index.html +++ b/pr-preview/pr-945/blog/push-game-theory-explained/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-going-big-on-polygon-with-frens/index.html b/pr-preview/pr-945/blog/push-going-big-on-polygon-with-frens/index.html index df658da695d..f589ebc0ea2 100644 --- a/pr-preview/pr-945/blog/push-going-big-on-polygon-with-frens/index.html +++ b/pr-preview/pr-945/blog/push-going-big-on-polygon-with-frens/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-govearnance-updates/index.html b/pr-preview/pr-945/blog/push-govearnance-updates/index.html index 3f11493a996..189b01d1e19 100644 --- a/pr-preview/pr-945/blog/push-govearnance-updates/index.html +++ b/pr-preview/pr-945/blog/push-govearnance-updates/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-grants-program-going-live/index.html b/pr-preview/pr-945/blog/push-grants-program-going-live/index.html index 8ca040b74fb..06c65ce06b6 100644 --- a/pr-preview/pr-945/blog/push-grants-program-going-live/index.html +++ b/pr-preview/pr-945/blog/push-grants-program-going-live/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-grants-program-here/index.html b/pr-preview/pr-945/blog/push-grants-program-here/index.html index 22dc100486b..562b980222b 100644 --- a/pr-preview/pr-945/blog/push-grants-program-here/index.html +++ b/pr-preview/pr-945/blog/push-grants-program-here/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-group-chats-for-guilds/index.html b/pr-preview/pr-945/blog/push-group-chats-for-guilds/index.html index b78cbee2e7d..bc7e2382a34 100644 --- a/pr-preview/pr-945/blog/push-group-chats-for-guilds/index.html +++ b/pr-preview/pr-945/blog/push-group-chats-for-guilds/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-helps-mover-the-first-crypto-debit-card-to-power-communication-on-the-platform/index.html b/pr-preview/pr-945/blog/push-helps-mover-the-first-crypto-debit-card-to-power-communication-on-the-platform/index.html index 7c6a5a3c5d5..071b198278e 100644 --- a/pr-preview/pr-945/blog/push-helps-mover-the-first-crypto-debit-card-to-power-communication-on-the-platform/index.html +++ b/pr-preview/pr-945/blog/push-helps-mover-the-first-crypto-debit-card-to-power-communication-on-the-platform/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-is-live-on-polygon-and-quickswap/index.html b/pr-preview/pr-945/blog/push-is-live-on-polygon-and-quickswap/index.html index 6c0687d3ceb..bb7eebe9123 100644 --- a/pr-preview/pr-945/blog/push-is-live-on-polygon-and-quickswap/index.html +++ b/pr-preview/pr-945/blog/push-is-live-on-polygon-and-quickswap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-launches-wallet-to-wallet-video-chat/index.html b/pr-preview/pr-945/blog/push-launches-wallet-to-wallet-video-chat/index.html index 1bfc5234f52..5d207ffefbf 100644 --- a/pr-preview/pr-945/blog/push-launches-wallet-to-wallet-video-chat/index.html +++ b/pr-preview/pr-945/blog/push-launches-wallet-to-wallet-video-chat/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-monthly-blocks-october/index.html b/pr-preview/pr-945/blog/push-monthly-blocks-october/index.html index 0bd20635b59..f18456c3f8b 100644 --- a/pr-preview/pr-945/blog/push-monthly-blocks-october/index.html +++ b/pr-preview/pr-945/blog/push-monthly-blocks-october/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-monthly-blocks-september/index.html b/pr-preview/pr-945/blog/push-monthly-blocks-september/index.html index 7a418510251..957ff911ca8 100644 --- a/pr-preview/pr-945/blog/push-monthly-blocks-september/index.html +++ b/pr-preview/pr-945/blog/push-monthly-blocks-september/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-nodes-p2p/index.html b/pr-preview/pr-945/blog/push-nodes-p2p/index.html index b6fdb94b9ca..c42e21afc8e 100644 --- a/pr-preview/pr-945/blog/push-nodes-p2p/index.html +++ b/pr-preview/pr-945/blog/push-nodes-p2p/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-notifications-for-developer-dao-to-boost-community-participation/index.html b/pr-preview/pr-945/blog/push-notifications-for-developer-dao-to-boost-community-participation/index.html index 6c957346c8c..bd58ae098f3 100644 --- a/pr-preview/pr-945/blog/push-notifications-for-developer-dao-to-boost-community-participation/index.html +++ b/pr-preview/pr-945/blog/push-notifications-for-developer-dao-to-boost-community-participation/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-notifications-for-the-metaverse/index.html b/pr-preview/pr-945/blog/push-notifications-for-the-metaverse/index.html index e9626b9cf7f..df34414a6f7 100644 --- a/pr-preview/pr-945/blog/push-notifications-for-the-metaverse/index.html +++ b/pr-preview/pr-945/blog/push-notifications-for-the-metaverse/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-protocol-1/index.html b/pr-preview/pr-945/blog/push-protocol-1/index.html index db5671097ae..7a476a4838c 100644 --- a/pr-preview/pr-945/blog/push-protocol-1/index.html +++ b/pr-preview/pr-945/blog/push-protocol-1/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-protocol-allies-with-boba-network-to-enable-decentralized-communication/index.html b/pr-preview/pr-945/blog/push-protocol-allies-with-boba-network-to-enable-decentralized-communication/index.html index 78ce021763f..c9f2500f265 100644 --- a/pr-preview/pr-945/blog/push-protocol-allies-with-boba-network-to-enable-decentralized-communication/index.html +++ b/pr-preview/pr-945/blog/push-protocol-allies-with-boba-network-to-enable-decentralized-communication/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-protocol-and-phuture-finance-partner-to-bring-decentralized-notifications-to-the-platform/index.html b/pr-preview/pr-945/blog/push-protocol-and-phuture-finance-partner-to-bring-decentralized-notifications-to-the-platform/index.html index c4bf596befa..be32777afa3 100644 --- a/pr-preview/pr-945/blog/push-protocol-and-phuture-finance-partner-to-bring-decentralized-notifications-to-the-platform/index.html +++ b/pr-preview/pr-945/blog/push-protocol-and-phuture-finance-partner-to-bring-decentralized-notifications-to-the-platform/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-protocol-july-updates/index.html b/pr-preview/pr-945/blog/push-protocol-july-updates/index.html index fcf7fd0a625..2e1b9173779 100644 --- a/pr-preview/pr-945/blog/push-protocol-july-updates/index.html +++ b/pr-preview/pr-945/blog/push-protocol-july-updates/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-protocol-launches-on-bnb-chain/index.html b/pr-preview/pr-945/blog/push-protocol-launches-on-bnb-chain/index.html index 4b1d8c15481..aca115dd372 100644 --- a/pr-preview/pr-945/blog/push-protocol-launches-on-bnb-chain/index.html +++ b/pr-preview/pr-945/blog/push-protocol-launches-on-bnb-chain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-protocol-launches-on-polygon-enabling-communication-for-thousands-of-dapps/index.html b/pr-preview/pr-945/blog/push-protocol-launches-on-polygon-enabling-communication-for-thousands-of-dapps/index.html index 91386ecb5ae..e57a9285ad6 100644 --- a/pr-preview/pr-945/blog/push-protocol-launches-on-polygon-enabling-communication-for-thousands-of-dapps/index.html +++ b/pr-preview/pr-945/blog/push-protocol-launches-on-polygon-enabling-communication-for-thousands-of-dapps/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-protocol-monthly-updates-august/index.html b/pr-preview/pr-945/blog/push-protocol-monthly-updates-august/index.html index 4e8613d0ee2..e009aff2c07 100644 --- a/pr-preview/pr-945/blog/push-protocol-monthly-updates-august/index.html +++ b/pr-preview/pr-945/blog/push-protocol-monthly-updates-august/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-protocol-on-arbitrum-blockchain/index.html b/pr-preview/pr-945/blog/push-protocol-on-arbitrum-blockchain/index.html index 0a962842035..2ee2e80637a 100644 --- a/pr-preview/pr-945/blog/push-protocol-on-arbitrum-blockchain/index.html +++ b/pr-preview/pr-945/blog/push-protocol-on-arbitrum-blockchain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-protocol-push-is-now-listed-on-crypto-com/index.html b/pr-preview/pr-945/blog/push-protocol-push-is-now-listed-on-crypto-com/index.html index 17463246832..fdea48289a2 100644 --- a/pr-preview/pr-945/blog/push-protocol-push-is-now-listed-on-crypto-com/index.html +++ b/pr-preview/pr-945/blog/push-protocol-push-is-now-listed-on-crypto-com/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-protocol-s-bug-bounty-program-goes-live/index.html b/pr-preview/pr-945/blog/push-protocol-s-bug-bounty-program-goes-live/index.html index 1ff9e8f94a3..261a0cea59d 100644 --- a/pr-preview/pr-945/blog/push-protocol-s-bug-bounty-program-goes-live/index.html +++ b/pr-preview/pr-945/blog/push-protocol-s-bug-bounty-program-goes-live/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-protocol-selected-as-communication-partner-for-d-app-store-kit/index.html b/pr-preview/pr-945/blog/push-protocol-selected-as-communication-partner-for-d-app-store-kit/index.html index 0be2a170f8e..36eceb04358 100644 --- a/pr-preview/pr-945/blog/push-protocol-selected-as-communication-partner-for-d-app-store-kit/index.html +++ b/pr-preview/pr-945/blog/push-protocol-selected-as-communication-partner-for-d-app-store-kit/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-protocol-v2-fee-pool-and-incentivized-chats-are-here/index.html b/pr-preview/pr-945/blog/push-protocol-v2-fee-pool-and-incentivized-chats-are-here/index.html index c882f06b5df..81397245280 100644 --- a/pr-preview/pr-945/blog/push-protocol-v2-fee-pool-and-incentivized-chats-are-here/index.html +++ b/pr-preview/pr-945/blog/push-protocol-v2-fee-pool-and-incentivized-chats-are-here/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-roadmap-recap-2023/index.html b/pr-preview/pr-945/blog/push-roadmap-recap-2023/index.html index 89504f7e5a3..05a3c7eb593 100644 --- a/pr-preview/pr-945/blog/push-roadmap-recap-2023/index.html +++ b/pr-preview/pr-945/blog/push-roadmap-recap-2023/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-spaces-is-live-decentralized-audio-and-video-streaming-is-here/index.html b/pr-preview/pr-945/blog/push-spaces-is-live-decentralized-audio-and-video-streaming-is-here/index.html index 8e49cdede7a..6aa3524d0ff 100644 --- a/pr-preview/pr-945/blog/push-spaces-is-live-decentralized-audio-and-video-streaming-is-here/index.html +++ b/pr-preview/pr-945/blog/push-spaces-is-live-decentralized-audio-and-video-streaming-is-here/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-token-economics/index.html b/pr-preview/pr-945/blog/push-token-economics/index.html index bdb2b599f81..ea40dfbfbbf 100644 --- a/pr-preview/pr-945/blog/push-token-economics/index.html +++ b/pr-preview/pr-945/blog/push-token-economics/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-tokenomics-v2-engine/index.html b/pr-preview/pr-945/blog/push-tokenomics-v2-engine/index.html index b447250d9b7..ac8977da6da 100644 --- a/pr-preview/pr-945/blog/push-tokenomics-v2-engine/index.html +++ b/pr-preview/pr-945/blog/push-tokenomics-v2-engine/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/push-v2-is-live-new-rewards-utility-and-functionality/index.html b/pr-preview/pr-945/blog/push-v2-is-live-new-rewards-utility-and-functionality/index.html index 2b7aacb4561..64e80021f97 100644 --- a/pr-preview/pr-945/blog/push-v2-is-live-new-rewards-utility-and-functionality/index.html +++ b/pr-preview/pr-945/blog/push-v2-is-live-new-rewards-utility-and-functionality/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/pushing-ahead-in-time-push-and-timeswap/index.html b/pr-preview/pr-945/blog/pushing-ahead-in-time-push-and-timeswap/index.html index f9fdda55fd8..f6bd37ca686 100644 --- a/pr-preview/pr-945/blog/pushing-ahead-in-time-push-and-timeswap/index.html +++ b/pr-preview/pr-945/blog/pushing-ahead-in-time-push-and-timeswap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/qi-dao-taps-push-to-update-users-on-their-debt-positions/index.html b/pr-preview/pr-945/blog/qi-dao-taps-push-to-update-users-on-their-debt-positions/index.html index 22bf3878faa..97adc13050c 100644 --- a/pr-preview/pr-945/blog/qi-dao-taps-push-to-update-users-on-their-debt-positions/index.html +++ b/pr-preview/pr-945/blog/qi-dao-taps-push-to-update-users-on-their-debt-positions/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/quickswap-joins-frens-of-push/index.html b/pr-preview/pr-945/blog/quickswap-joins-frens-of-push/index.html index 38edcd1378d..d9996646403 100644 --- a/pr-preview/pr-945/blog/quickswap-joins-frens-of-push/index.html +++ b/pr-preview/pr-945/blog/quickswap-joins-frens-of-push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/randomized-node-selection-push-chain/index.html b/pr-preview/pr-945/blog/randomized-node-selection-push-chain/index.html index 58b5c974b6a..4c2b1c652e3 100644 --- a/pr-preview/pr-945/blog/randomized-node-selection-push-chain/index.html +++ b/pr-preview/pr-945/blog/randomized-node-selection-push-chain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/recreating-web2-communication-channels-in-web3-using-push/index.html b/pr-preview/pr-945/blog/recreating-web2-communication-channels-in-web3-using-push/index.html index 3a02cfa064b..2cae063a85d 100644 --- a/pr-preview/pr-945/blog/recreating-web2-communication-channels-in-web3-using-push/index.html +++ b/pr-preview/pr-945/blog/recreating-web2-communication-channels-in-web3-using-push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/reef-chain-integrates-epns-to-enable-seamless-communication-with-users/index.html b/pr-preview/pr-945/blog/reef-chain-integrates-epns-to-enable-seamless-communication-with-users/index.html index bba52dadd0e..8f8fa981899 100644 --- a/pr-preview/pr-945/blog/reef-chain-integrates-epns-to-enable-seamless-communication-with-users/index.html +++ b/pr-preview/pr-945/blog/reef-chain-integrates-epns-to-enable-seamless-communication-with-users/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/revolutionising-communication-for-defi-and-nft-with-push/index.html b/pr-preview/pr-945/blog/revolutionising-communication-for-defi-and-nft-with-push/index.html index 6d99010307b..3ca564ce863 100644 --- a/pr-preview/pr-945/blog/revolutionising-communication-for-defi-and-nft-with-push/index.html +++ b/pr-preview/pr-945/blog/revolutionising-communication-for-defi-and-nft-with-push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/revolutionizing-virtual-events-and-social-interactions-with-decentralized-video-chat/index.html b/pr-preview/pr-945/blog/revolutionizing-virtual-events-and-social-interactions-with-decentralized-video-chat/index.html index 0ceaff636bf..07d80bb3a4d 100644 --- a/pr-preview/pr-945/blog/revolutionizing-virtual-events-and-social-interactions-with-decentralized-video-chat/index.html +++ b/pr-preview/pr-945/blog/revolutionizing-virtual-events-and-social-interactions-with-decentralized-video-chat/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/roadmap-2022-q2-wrap-up/index.html b/pr-preview/pr-945/blog/roadmap-2022-q2-wrap-up/index.html index bf0399bbe4a..aa5b996f053 100644 --- a/pr-preview/pr-945/blog/roadmap-2022-q2-wrap-up/index.html +++ b/pr-preview/pr-945/blog/roadmap-2022-q2-wrap-up/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/roadmap-q1-wrap-up/index.html b/pr-preview/pr-945/blog/roadmap-q1-wrap-up/index.html index 04187125244..3ed84bd3971 100644 --- a/pr-preview/pr-945/blog/roadmap-q1-wrap-up/index.html +++ b/pr-preview/pr-945/blog/roadmap-q1-wrap-up/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/roseon-joins-frens-of-push/index.html b/pr-preview/pr-945/blog/roseon-joins-frens-of-push/index.html index 5b2c2cfb15c..160c7853688 100644 --- a/pr-preview/pr-945/blog/roseon-joins-frens-of-push/index.html +++ b/pr-preview/pr-945/blog/roseon-joins-frens-of-push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/ruler-protocol-innovating-the-defi/index.html b/pr-preview/pr-945/blog/ruler-protocol-innovating-the-defi/index.html index b6f8ffa4c89..652c8d10034 100644 --- a/pr-preview/pr-945/blog/ruler-protocol-innovating-the-defi/index.html +++ b/pr-preview/pr-945/blog/ruler-protocol-innovating-the-defi/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/scaling-web3notifs-on-polygon/index.html b/pr-preview/pr-945/blog/scaling-web3notifs-on-polygon/index.html index d1dc38433f5..8ff0fd6c025 100644 --- a/pr-preview/pr-945/blog/scaling-web3notifs-on-polygon/index.html +++ b/pr-preview/pr-945/blog/scaling-web3notifs-on-polygon/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/shaping-the-future-of-the-dex-user-experience-push-x-shape-shift/index.html b/pr-preview/pr-945/blog/shaping-the-future-of-the-dex-user-experience-push-x-shape-shift/index.html index c70be117c84..f1788f6aa25 100644 --- a/pr-preview/pr-945/blog/shaping-the-future-of-the-dex-user-experience-push-x-shape-shift/index.html +++ b/pr-preview/pr-945/blog/shaping-the-future-of-the-dex-user-experience-push-x-shape-shift/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/simplifying-nft-trading/index.html b/pr-preview/pr-945/blog/simplifying-nft-trading/index.html index ce5fbac056a..a6599594aaa 100644 --- a/pr-preview/pr-945/blog/simplifying-nft-trading/index.html +++ b/pr-preview/pr-945/blog/simplifying-nft-trading/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/socket-integrates-epns-to-send-users-important-updates-through-push-notifications/index.html b/pr-preview/pr-945/blog/socket-integrates-epns-to-send-users-important-updates-through-push-notifications/index.html index 02a77d6daf8..cfcf9c782d1 100644 --- a/pr-preview/pr-945/blog/socket-integrates-epns-to-send-users-important-updates-through-push-notifications/index.html +++ b/pr-preview/pr-945/blog/socket-integrates-epns-to-send-users-important-updates-through-push-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/staking-and-migration-guide-for-push-v2-rewards-program/index.html b/pr-preview/pr-945/blog/staking-and-migration-guide-for-push-v2-rewards-program/index.html index 92d769e1e66..f18bf528c02 100644 --- a/pr-preview/pr-945/blog/staking-and-migration-guide-for-push-v2-rewards-program/index.html +++ b/pr-preview/pr-945/blog/staking-and-migration-guide-for-push-v2-rewards-program/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/strategic-collabs/index.html b/pr-preview/pr-945/blog/strategic-collabs/index.html index 2ae4605ed61..1f18c7db69f 100644 --- a/pr-preview/pr-945/blog/strategic-collabs/index.html +++ b/pr-preview/pr-945/blog/strategic-collabs/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/superfluid-enhancing-web3-asset-streaming-with-push/index.html b/pr-preview/pr-945/blog/superfluid-enhancing-web3-asset-streaming-with-push/index.html index 75334a19950..f3277529cf2 100644 --- a/pr-preview/pr-945/blog/superfluid-enhancing-web3-asset-streaming-with-push/index.html +++ b/pr-preview/pr-945/blog/superfluid-enhancing-web3-asset-streaming-with-push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/superfluid-taps-push-to-update-users-on-money-streaming/index.html b/pr-preview/pr-945/blog/superfluid-taps-push-to-update-users-on-money-streaming/index.html index 649ad185f49..9138833a378 100644 --- a/pr-preview/pr-945/blog/superfluid-taps-push-to-update-users-on-money-streaming/index.html +++ b/pr-preview/pr-945/blog/superfluid-taps-push-to-update-users-on-money-streaming/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/aave/index.html b/pr-preview/pr-945/blog/tags/aave/index.html index bd9eda81b6f..85f0c13ba5b 100644 --- a/pr-preview/pr-945/blog/tags/aave/index.html +++ b/pr-preview/pr-945/blog/tags/aave/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/adoption/index.html b/pr-preview/pr-945/blog/tags/adoption/index.html index 341c3aeb6fc..61cac53c66e 100644 --- a/pr-preview/pr-945/blog/tags/adoption/index.html +++ b/pr-preview/pr-945/blog/tags/adoption/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/advisor/index.html b/pr-preview/pr-945/blog/tags/advisor/index.html index 58d46a96363..ba300fed518 100644 --- a/pr-preview/pr-945/blog/tags/advisor/index.html +++ b/pr-preview/pr-945/blog/tags/advisor/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ai/index.html b/pr-preview/pr-945/blog/tags/ai/index.html index ffeac046cd3..c9bedba7368 100644 --- a/pr-preview/pr-945/blog/tags/ai/index.html +++ b/pr-preview/pr-945/blog/tags/ai/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/airdrop/index.html b/pr-preview/pr-945/blog/tags/airdrop/index.html index f833192fa64..8791ae88bbd 100644 --- a/pr-preview/pr-945/blog/tags/airdrop/index.html +++ b/pr-preview/pr-945/blog/tags/airdrop/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ama/index.html b/pr-preview/pr-945/blog/tags/ama/index.html index 062f9369653..595ff6b53c9 100644 --- a/pr-preview/pr-945/blog/tags/ama/index.html +++ b/pr-preview/pr-945/blog/tags/ama/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ama/page/2/index.html b/pr-preview/pr-945/blog/tags/ama/page/2/index.html index 7f0f85e0b96..79ce435999e 100644 --- a/pr-preview/pr-945/blog/tags/ama/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/ama/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ambassador-program/index.html b/pr-preview/pr-945/blog/tags/ambassador-program/index.html index ddb18843817..27f33c23aa0 100644 --- a/pr-preview/pr-945/blog/tags/ambassador-program/index.html +++ b/pr-preview/pr-945/blog/tags/ambassador-program/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/analytics-engineering/index.html b/pr-preview/pr-945/blog/tags/analytics-engineering/index.html index 0064489c88a..3ea59482dec 100644 --- a/pr-preview/pr-945/blog/tags/analytics-engineering/index.html +++ b/pr-preview/pr-945/blog/tags/analytics-engineering/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/annoucements/index.html b/pr-preview/pr-945/blog/tags/annoucements/index.html index 28af64ec250..b7ea0b418a3 100644 --- a/pr-preview/pr-945/blog/tags/annoucements/index.html +++ b/pr-preview/pr-945/blog/tags/annoucements/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/announcements/index.html b/pr-preview/pr-945/blog/tags/announcements/index.html index 4264cd10f4e..82818dfdc5b 100644 --- a/pr-preview/pr-945/blog/tags/announcements/index.html +++ b/pr-preview/pr-945/blog/tags/announcements/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/announcements/page/2/index.html b/pr-preview/pr-945/blog/tags/announcements/page/2/index.html index 0e8ed503729..51049cfe1ca 100644 --- a/pr-preview/pr-945/blog/tags/announcements/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/announcements/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/announcements/page/3/index.html b/pr-preview/pr-945/blog/tags/announcements/page/3/index.html index f31653a1e6a..a33018ef13d 100644 --- a/pr-preview/pr-945/blog/tags/announcements/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/announcements/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/announcements/page/4/index.html b/pr-preview/pr-945/blog/tags/announcements/page/4/index.html index 5952e44223d..3d2b2b1b38d 100644 --- a/pr-preview/pr-945/blog/tags/announcements/page/4/index.html +++ b/pr-preview/pr-945/blog/tags/announcements/page/4/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/announcements/page/5/index.html b/pr-preview/pr-945/blog/tags/announcements/page/5/index.html index 883aa3ae135..f8adde7aaf5 100644 --- a/pr-preview/pr-945/blog/tags/announcements/page/5/index.html +++ b/pr-preview/pr-945/blog/tags/announcements/page/5/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/announcements/page/6/index.html b/pr-preview/pr-945/blog/tags/announcements/page/6/index.html index 0146b1fd0b0..9e93c566cf4 100644 --- a/pr-preview/pr-945/blog/tags/announcements/page/6/index.html +++ b/pr-preview/pr-945/blog/tags/announcements/page/6/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/announcements/page/7/index.html b/pr-preview/pr-945/blog/tags/announcements/page/7/index.html index 8eabdc68cfe..b13aa5de689 100644 --- a/pr-preview/pr-945/blog/tags/announcements/page/7/index.html +++ b/pr-preview/pr-945/blog/tags/announcements/page/7/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/announcements/page/8/index.html b/pr-preview/pr-945/blog/tags/announcements/page/8/index.html index 3963b16d528..6bba9acd89d 100644 --- a/pr-preview/pr-945/blog/tags/announcements/page/8/index.html +++ b/pr-preview/pr-945/blog/tags/announcements/page/8/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/annual-report/index.html b/pr-preview/pr-945/blog/tags/annual-report/index.html index e12a8d5e4cc..48fc2ee06dc 100644 --- a/pr-preview/pr-945/blog/tags/annual-report/index.html +++ b/pr-preview/pr-945/blog/tags/annual-report/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/any-chain-tx/index.html b/pr-preview/pr-945/blog/tags/any-chain-tx/index.html index 2f4391433b9..c1d12838278 100644 --- a/pr-preview/pr-945/blog/tags/any-chain-tx/index.html +++ b/pr-preview/pr-945/blog/tags/any-chain-tx/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/aragon/index.html b/pr-preview/pr-945/blog/tags/aragon/index.html index a45d85ec381..259254e58a2 100644 --- a/pr-preview/pr-945/blog/tags/aragon/index.html +++ b/pr-preview/pr-945/blog/tags/aragon/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/arbitrum/index.html b/pr-preview/pr-945/blog/tags/arbitrum/index.html index b60165901ac..b87958f4dcf 100644 --- a/pr-preview/pr-945/blog/tags/arbitrum/index.html +++ b/pr-preview/pr-945/blog/tags/arbitrum/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/bancor/index.html b/pr-preview/pr-945/blog/tags/bancor/index.html index f0f9ce2b576..bc667209bf2 100644 --- a/pr-preview/pr-945/blog/tags/bancor/index.html +++ b/pr-preview/pr-945/blog/tags/bancor/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/bankless/index.html b/pr-preview/pr-945/blog/tags/bankless/index.html index 48f51d9cf82..65ddbcdd9b7 100644 --- a/pr-preview/pr-945/blog/tags/bankless/index.html +++ b/pr-preview/pr-945/blog/tags/bankless/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/biconomy/index.html b/pr-preview/pr-945/blog/tags/biconomy/index.html index 56fd6442b73..d63739fe7d3 100644 --- a/pr-preview/pr-945/blog/tags/biconomy/index.html +++ b/pr-preview/pr-945/blog/tags/biconomy/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/billion-reasons-to-build/index.html b/pr-preview/pr-945/blog/tags/billion-reasons-to-build/index.html index 597ae767767..bedbff285de 100644 --- a/pr-preview/pr-945/blog/tags/billion-reasons-to-build/index.html +++ b/pr-preview/pr-945/blog/tags/billion-reasons-to-build/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain-defi/index.html b/pr-preview/pr-945/blog/tags/blockchain-defi/index.html index f1748554822..c53f97d6e24 100644 --- a/pr-preview/pr-945/blog/tags/blockchain-defi/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain-defi/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain-development/index.html b/pr-preview/pr-945/blog/tags/blockchain-development/index.html index 253a7621717..1a01245599c 100644 --- a/pr-preview/pr-945/blog/tags/blockchain-development/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain-development/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain-development/page/2/index.html b/pr-preview/pr-945/blog/tags/blockchain-development/page/2/index.html index af27bb5a617..9b2090d30b5 100644 --- a/pr-preview/pr-945/blog/tags/blockchain-development/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain-development/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain-technologies/index.html b/pr-preview/pr-945/blog/tags/blockchain-technologies/index.html index 551680c7518..211fc4d49a2 100644 --- a/pr-preview/pr-945/blog/tags/blockchain-technologies/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain-technologies/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain-technology/index.html b/pr-preview/pr-945/blog/tags/blockchain-technology/index.html index 253ff0b6594..806eef68920 100644 --- a/pr-preview/pr-945/blog/tags/blockchain-technology/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain-technology/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain-technology/page/2/index.html b/pr-preview/pr-945/blog/tags/blockchain-technology/page/2/index.html index 7b9a61fefeb..64a4bf395e4 100644 --- a/pr-preview/pr-945/blog/tags/blockchain-technology/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain-technology/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain-technology/page/3/index.html b/pr-preview/pr-945/blog/tags/blockchain-technology/page/3/index.html index aecebb720f8..da054dddcb6 100644 --- a/pr-preview/pr-945/blog/tags/blockchain-technology/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain-technology/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain-technology/page/4/index.html b/pr-preview/pr-945/blog/tags/blockchain-technology/page/4/index.html index 2114fc5d318..27b424796fd 100644 --- a/pr-preview/pr-945/blog/tags/blockchain-technology/page/4/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain-technology/page/4/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain-technology/page/5/index.html b/pr-preview/pr-945/blog/tags/blockchain-technology/page/5/index.html index 10804ac2698..559c4a9ed95 100644 --- a/pr-preview/pr-945/blog/tags/blockchain-technology/page/5/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain-technology/page/5/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain-technology/page/6/index.html b/pr-preview/pr-945/blog/tags/blockchain-technology/page/6/index.html index 95393051ab5..c7e91230391 100644 --- a/pr-preview/pr-945/blog/tags/blockchain-technology/page/6/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain-technology/page/6/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain-technology/page/7/index.html b/pr-preview/pr-945/blog/tags/blockchain-technology/page/7/index.html index 91af0867992..6cfcfb1abf7 100644 --- a/pr-preview/pr-945/blog/tags/blockchain-technology/page/7/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain-technology/page/7/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain-technology/page/8/index.html b/pr-preview/pr-945/blog/tags/blockchain-technology/page/8/index.html index c84fc1d8ba5..e8ca0affa4c 100644 --- a/pr-preview/pr-945/blog/tags/blockchain-technology/page/8/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain-technology/page/8/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/index.html b/pr-preview/pr-945/blog/tags/blockchain/index.html index d63ad25a96e..16da0e6950d 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/10/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/10/index.html index 6ef452fc288..fbf96728120 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/10/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/10/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/11/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/11/index.html index c4e77e7c098..f141aa5431f 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/11/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/11/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/12/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/12/index.html index 34a847ff144..5b669f4331b 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/12/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/12/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/13/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/13/index.html index d63730e4704..3176e736845 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/13/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/13/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/14/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/14/index.html index ee0be66caac..662e350c929 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/14/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/14/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/15/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/15/index.html index 251201991ce..8bf3c032ed0 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/15/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/15/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/16/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/16/index.html index 3420d91ceda..07b971ba8d2 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/16/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/16/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/17/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/17/index.html index 0fe6bf4fcc8..0e4c9adb49c 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/17/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/17/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/18/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/18/index.html index 3bc4ad2c8bf..3357fcbd167 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/18/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/18/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/2/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/2/index.html index 54104ad5b95..d03e18faa36 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/3/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/3/index.html index 6e5dfa57f46..a2d27a0ef28 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/4/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/4/index.html index fb30e01b993..6ae1ac6de4c 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/4/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/4/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/5/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/5/index.html index c0cba8f47f2..62ac6b86681 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/5/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/5/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/6/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/6/index.html index a84e5b333df..24afdfbed4f 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/6/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/6/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/7/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/7/index.html index a8fcd86635b..cf09d9854d9 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/7/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/7/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/8/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/8/index.html index 584d1575a46..c02d74ad3fd 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/8/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/8/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockchain/page/9/index.html b/pr-preview/pr-945/blog/tags/blockchain/page/9/index.html index 93fe0d50898..5c675d9ccb2 100644 --- a/pr-preview/pr-945/blog/tags/blockchain/page/9/index.html +++ b/pr-preview/pr-945/blog/tags/blockchain/page/9/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blockhain-development/index.html b/pr-preview/pr-945/blog/tags/blockhain-development/index.html index 88dd943e0b9..5f549439f7a 100644 --- a/pr-preview/pr-945/blog/tags/blockhain-development/index.html +++ b/pr-preview/pr-945/blog/tags/blockhain-development/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blog/index.html b/pr-preview/pr-945/blog/tags/blog/index.html index 78391584c69..be07a1cdfca 100644 --- a/pr-preview/pr-945/blog/tags/blog/index.html +++ b/pr-preview/pr-945/blog/tags/blog/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blog/page/2/index.html b/pr-preview/pr-945/blog/tags/blog/page/2/index.html index 53c07b8088b..53f767561ac 100644 --- a/pr-preview/pr-945/blog/tags/blog/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/blog/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/blog/page/3/index.html b/pr-preview/pr-945/blog/tags/blog/page/3/index.html index 7792e501d45..db21edfc786 100644 --- a/pr-preview/pr-945/blog/tags/blog/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/blog/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/bnb-chain/index.html b/pr-preview/pr-945/blog/tags/bnb-chain/index.html index 717b5dbfc17..8e746bfb80b 100644 --- a/pr-preview/pr-945/blog/tags/bnb-chain/index.html +++ b/pr-preview/pr-945/blog/tags/bnb-chain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/bnb/index.html b/pr-preview/pr-945/blog/tags/bnb/index.html index 38a8ce18e36..eb9fec4e4ab 100644 --- a/pr-preview/pr-945/blog/tags/bnb/index.html +++ b/pr-preview/pr-945/blog/tags/bnb/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/boardroom/index.html b/pr-preview/pr-945/blog/tags/boardroom/index.html index 88f0e16906b..64e2870efbb 100644 --- a/pr-preview/pr-945/blog/tags/boardroom/index.html +++ b/pr-preview/pr-945/blog/tags/boardroom/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/boba-network/index.html b/pr-preview/pr-945/blog/tags/boba-network/index.html index 44cacc8cab8..33f7dc17cb0 100644 --- a/pr-preview/pr-945/blog/tags/boba-network/index.html +++ b/pr-preview/pr-945/blog/tags/boba-network/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/bounty-program/index.html b/pr-preview/pr-945/blog/tags/bounty-program/index.html index 220de4e6459..285bddda543 100644 --- a/pr-preview/pr-945/blog/tags/bounty-program/index.html +++ b/pr-preview/pr-945/blog/tags/bounty-program/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/brb/index.html b/pr-preview/pr-945/blog/tags/brb/index.html index 621de248244..55af0ca9e96 100644 --- a/pr-preview/pr-945/blog/tags/brb/index.html +++ b/pr-preview/pr-945/blog/tags/brb/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/bug-bounty/index.html b/pr-preview/pr-945/blog/tags/bug-bounty/index.html index 6378ee39384..416665c3c6a 100644 --- a/pr-preview/pr-945/blog/tags/bug-bounty/index.html +++ b/pr-preview/pr-945/blog/tags/bug-bounty/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/buidl/index.html b/pr-preview/pr-945/blog/tags/buidl/index.html index 5d0dbfffd42..3ab0d8a6420 100644 --- a/pr-preview/pr-945/blog/tags/buidl/index.html +++ b/pr-preview/pr-945/blog/tags/buidl/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/bzx-protocol/index.html b/pr-preview/pr-945/blog/tags/bzx-protocol/index.html index 7b7af6ce7d2..818175022c7 100644 --- a/pr-preview/pr-945/blog/tags/bzx-protocol/index.html +++ b/pr-preview/pr-945/blog/tags/bzx-protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/case-study/index.html b/pr-preview/pr-945/blog/tags/case-study/index.html index d7b91c21bf6..883fb7bd896 100644 --- a/pr-preview/pr-945/blog/tags/case-study/index.html +++ b/pr-preview/pr-945/blog/tags/case-study/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ceramic-network/index.html b/pr-preview/pr-945/blog/tags/ceramic-network/index.html index cc2a0778c86..720e882f932 100644 --- a/pr-preview/pr-945/blog/tags/ceramic-network/index.html +++ b/pr-preview/pr-945/blog/tags/ceramic-network/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/chat/index.html b/pr-preview/pr-945/blog/tags/chat/index.html index 086327fcb51..e9a6ac66b99 100644 --- a/pr-preview/pr-945/blog/tags/chat/index.html +++ b/pr-preview/pr-945/blog/tags/chat/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/collaboration/index.html b/pr-preview/pr-945/blog/tags/collaboration/index.html index 6f3bc9ce7a7..3b3111a2eb3 100644 --- a/pr-preview/pr-945/blog/tags/collaboration/index.html +++ b/pr-preview/pr-945/blog/tags/collaboration/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/commonwealth/index.html b/pr-preview/pr-945/blog/tags/commonwealth/index.html index 4bc4b18fffe..4d424d50f85 100644 --- a/pr-preview/pr-945/blog/tags/commonwealth/index.html +++ b/pr-preview/pr-945/blog/tags/commonwealth/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/communication-tools/index.html b/pr-preview/pr-945/blog/tags/communication-tools/index.html index e524b425a80..a39852950f3 100644 --- a/pr-preview/pr-945/blog/tags/communication-tools/index.html +++ b/pr-preview/pr-945/blog/tags/communication-tools/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/communication/index.html b/pr-preview/pr-945/blog/tags/communication/index.html index c78148553ca..49ef42eb9a3 100644 --- a/pr-preview/pr-945/blog/tags/communication/index.html +++ b/pr-preview/pr-945/blog/tags/communication/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/community-and-ecosystem/index.html b/pr-preview/pr-945/blog/tags/community-and-ecosystem/index.html index 9f2668ed187..3aaee171655 100644 --- a/pr-preview/pr-945/blog/tags/community-and-ecosystem/index.html +++ b/pr-preview/pr-945/blog/tags/community-and-ecosystem/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/community-ecosystem/index.html b/pr-preview/pr-945/blog/tags/community-ecosystem/index.html index 9ebb6cec1a6..98616f1be0b 100644 --- a/pr-preview/pr-945/blog/tags/community-ecosystem/index.html +++ b/pr-preview/pr-945/blog/tags/community-ecosystem/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/community/index.html b/pr-preview/pr-945/blog/tags/community/index.html index 8b52c58b158..edb47a55830 100644 --- a/pr-preview/pr-945/blog/tags/community/index.html +++ b/pr-preview/pr-945/blog/tags/community/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/conference/index.html b/pr-preview/pr-945/blog/tags/conference/index.html index 493af62c3f9..61fa99f15a1 100644 --- a/pr-preview/pr-945/blog/tags/conference/index.html +++ b/pr-preview/pr-945/blog/tags/conference/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/consumer-apps/index.html b/pr-preview/pr-945/blog/tags/consumer-apps/index.html index 121372784e5..07ff7cbbea7 100644 --- a/pr-preview/pr-945/blog/tags/consumer-apps/index.html +++ b/pr-preview/pr-945/blog/tags/consumer-apps/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/consumer-crypto/index.html b/pr-preview/pr-945/blog/tags/consumer-crypto/index.html index 1e0e0326132..306afad3b28 100644 --- a/pr-preview/pr-945/blog/tags/consumer-crypto/index.html +++ b/pr-preview/pr-945/blog/tags/consumer-crypto/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/consumer-tx/index.html b/pr-preview/pr-945/blog/tags/consumer-tx/index.html index dd950f102a1..febf11ce5aa 100644 --- a/pr-preview/pr-945/blog/tags/consumer-tx/index.html +++ b/pr-preview/pr-945/blog/tags/consumer-tx/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/contests/index.html b/pr-preview/pr-945/blog/tags/contests/index.html index 4d7dac023e1..3138f135cfb 100644 --- a/pr-preview/pr-945/blog/tags/contests/index.html +++ b/pr-preview/pr-945/blog/tags/contests/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/crosschain/index.html b/pr-preview/pr-945/blog/tags/crosschain/index.html index 4ef375042a2..6e1dbb7a080 100644 --- a/pr-preview/pr-945/blog/tags/crosschain/index.html +++ b/pr-preview/pr-945/blog/tags/crosschain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/crypto/index.html b/pr-preview/pr-945/blog/tags/crypto/index.html index 8ae6b0d7bf8..13152987697 100644 --- a/pr-preview/pr-945/blog/tags/crypto/index.html +++ b/pr-preview/pr-945/blog/tags/crypto/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/crypto/page/2/index.html b/pr-preview/pr-945/blog/tags/crypto/page/2/index.html index daa9e843e97..96b16fddbfb 100644 --- a/pr-preview/pr-945/blog/tags/crypto/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/crypto/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/cryptocom/index.html b/pr-preview/pr-945/blog/tags/cryptocom/index.html index b20fd53eb4e..f074229e117 100644 --- a/pr-preview/pr-945/blog/tags/cryptocom/index.html +++ b/pr-preview/pr-945/blog/tags/cryptocom/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/cryptocurrency/index.html b/pr-preview/pr-945/blog/tags/cryptocurrency/index.html index e73415ba3cf..e2e31fb13e4 100644 --- a/pr-preview/pr-945/blog/tags/cryptocurrency/index.html +++ b/pr-preview/pr-945/blog/tags/cryptocurrency/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/cryptocurrency/page/2/index.html b/pr-preview/pr-945/blog/tags/cryptocurrency/page/2/index.html index 8646e947e17..94ae95a8c89 100644 --- a/pr-preview/pr-945/blog/tags/cryptocurrency/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/cryptocurrency/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/customer-success/index.html b/pr-preview/pr-945/blog/tags/customer-success/index.html index 1ce6dbbf886..a18d4c5a277 100644 --- a/pr-preview/pr-945/blog/tags/customer-success/index.html +++ b/pr-preview/pr-945/blog/tags/customer-success/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/cybersecurity/index.html b/pr-preview/pr-945/blog/tags/cybersecurity/index.html index 094a5579285..c493c43ca96 100644 --- a/pr-preview/pr-945/blog/tags/cybersecurity/index.html +++ b/pr-preview/pr-945/blog/tags/cybersecurity/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/dao/index.html b/pr-preview/pr-945/blog/tags/dao/index.html index 80968bc3c29..6d6ea473c17 100644 --- a/pr-preview/pr-945/blog/tags/dao/index.html +++ b/pr-preview/pr-945/blog/tags/dao/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/dapps/index.html b/pr-preview/pr-945/blog/tags/dapps/index.html index d315f9ceeb1..18306fa5d20 100644 --- a/pr-preview/pr-945/blog/tags/dapps/index.html +++ b/pr-preview/pr-945/blog/tags/dapps/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/data-analytics/index.html b/pr-preview/pr-945/blog/tags/data-analytics/index.html index 3aff20303af..58737c1af0c 100644 --- a/pr-preview/pr-945/blog/tags/data-analytics/index.html +++ b/pr-preview/pr-945/blog/tags/data-analytics/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/debitcard/index.html b/pr-preview/pr-945/blog/tags/debitcard/index.html index f613af85e0f..7a7b04960fa 100644 --- a/pr-preview/pr-945/blog/tags/debitcard/index.html +++ b/pr-preview/pr-945/blog/tags/debitcard/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/decentralization/index.html b/pr-preview/pr-945/blog/tags/decentralization/index.html index 3e54b7d7e95..44c045c4932 100644 --- a/pr-preview/pr-945/blog/tags/decentralization/index.html +++ b/pr-preview/pr-945/blog/tags/decentralization/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/decentralization/page/2/index.html b/pr-preview/pr-945/blog/tags/decentralization/page/2/index.html index e617bfcf16c..b184cfbe53e 100644 --- a/pr-preview/pr-945/blog/tags/decentralization/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/decentralization/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/decentralization/page/3/index.html b/pr-preview/pr-945/blog/tags/decentralization/page/3/index.html index fc4cff1010d..94262963801 100644 --- a/pr-preview/pr-945/blog/tags/decentralization/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/decentralization/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/decentralized/index.html b/pr-preview/pr-945/blog/tags/decentralized/index.html index fd447bb8c3a..b3beaa8848a 100644 --- a/pr-preview/pr-945/blog/tags/decentralized/index.html +++ b/pr-preview/pr-945/blog/tags/decentralized/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/defi/index.html b/pr-preview/pr-945/blog/tags/defi/index.html index 24a3619e792..ace87bfdcfc 100644 --- a/pr-preview/pr-945/blog/tags/defi/index.html +++ b/pr-preview/pr-945/blog/tags/defi/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/defi/page/2/index.html b/pr-preview/pr-945/blog/tags/defi/page/2/index.html index 9d7db0dcaf3..5988f72a82e 100644 --- a/pr-preview/pr-945/blog/tags/defi/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/defi/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/defi/page/3/index.html b/pr-preview/pr-945/blog/tags/defi/page/3/index.html index bf8633b468b..95ae8441556 100644 --- a/pr-preview/pr-945/blog/tags/defi/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/defi/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/defi/page/4/index.html b/pr-preview/pr-945/blog/tags/defi/page/4/index.html index 235e22a35d5..59976009661 100644 --- a/pr-preview/pr-945/blog/tags/defi/page/4/index.html +++ b/pr-preview/pr-945/blog/tags/defi/page/4/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/defi/page/5/index.html b/pr-preview/pr-945/blog/tags/defi/page/5/index.html index b3b5902da2c..ad7ccdd76b0 100644 --- a/pr-preview/pr-945/blog/tags/defi/page/5/index.html +++ b/pr-preview/pr-945/blog/tags/defi/page/5/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/delegation/index.html b/pr-preview/pr-945/blog/tags/delegation/index.html index f73ebb472c5..209951bebdb 100644 --- a/pr-preview/pr-945/blog/tags/delegation/index.html +++ b/pr-preview/pr-945/blog/tags/delegation/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/delivery-nodes/index.html b/pr-preview/pr-945/blog/tags/delivery-nodes/index.html index 34cd7d6d31e..8f85fb37b19 100644 --- a/pr-preview/pr-945/blog/tags/delivery-nodes/index.html +++ b/pr-preview/pr-945/blog/tags/delivery-nodes/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/democracy/index.html b/pr-preview/pr-945/blog/tags/democracy/index.html index 2ec4cb998df..5c722a95898 100644 --- a/pr-preview/pr-945/blog/tags/democracy/index.html +++ b/pr-preview/pr-945/blog/tags/democracy/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/design-research/index.html b/pr-preview/pr-945/blog/tags/design-research/index.html index ecbdc1c5d7c..926c1664ee1 100644 --- a/pr-preview/pr-945/blog/tags/design-research/index.html +++ b/pr-preview/pr-945/blog/tags/design-research/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/design-thinking/index.html b/pr-preview/pr-945/blog/tags/design-thinking/index.html index 93561eac727..83e668932ba 100644 --- a/pr-preview/pr-945/blog/tags/design-thinking/index.html +++ b/pr-preview/pr-945/blog/tags/design-thinking/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/design/index.html b/pr-preview/pr-945/blog/tags/design/index.html index b63b5e04295..5bc0a2225ea 100644 --- a/pr-preview/pr-945/blog/tags/design/index.html +++ b/pr-preview/pr-945/blog/tags/design/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/developer-tools/index.html b/pr-preview/pr-945/blog/tags/developer-tools/index.html index 09b18a19490..6cd9ee2bca9 100644 --- a/pr-preview/pr-945/blog/tags/developer-tools/index.html +++ b/pr-preview/pr-945/blog/tags/developer-tools/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/developer/index.html b/pr-preview/pr-945/blog/tags/developer/index.html index 4de27837eb2..5aa57ebf957 100644 --- a/pr-preview/pr-945/blog/tags/developer/index.html +++ b/pr-preview/pr-945/blog/tags/developer/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/developer/page/2/index.html b/pr-preview/pr-945/blog/tags/developer/page/2/index.html index f92548133a2..1676fbcc6d4 100644 --- a/pr-preview/pr-945/blog/tags/developer/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/developer/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/developerdao/index.html b/pr-preview/pr-945/blog/tags/developerdao/index.html index 8705443d679..1fb8fb193b5 100644 --- a/pr-preview/pr-945/blog/tags/developerdao/index.html +++ b/pr-preview/pr-945/blog/tags/developerdao/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/developers/index.html b/pr-preview/pr-945/blog/tags/developers/index.html index 277a5607ead..de0fa78dad0 100644 --- a/pr-preview/pr-945/blog/tags/developers/index.html +++ b/pr-preview/pr-945/blog/tags/developers/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/development/index.html b/pr-preview/pr-945/blog/tags/development/index.html index 4691df4f7fe..b8a5a79a609 100644 --- a/pr-preview/pr-945/blog/tags/development/index.html +++ b/pr-preview/pr-945/blog/tags/development/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/devops/index.html b/pr-preview/pr-945/blog/tags/devops/index.html index cbc5dbd49bf..1bf60bc9e1c 100644 --- a/pr-preview/pr-945/blog/tags/devops/index.html +++ b/pr-preview/pr-945/blog/tags/devops/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/devtools/index.html b/pr-preview/pr-945/blog/tags/devtools/index.html index e724c345e65..d85465d0406 100644 --- a/pr-preview/pr-945/blog/tags/devtools/index.html +++ b/pr-preview/pr-945/blog/tags/devtools/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/digital-art/index.html b/pr-preview/pr-945/blog/tags/digital-art/index.html index a337922a772..abb157f90cf 100644 --- a/pr-preview/pr-945/blog/tags/digital-art/index.html +++ b/pr-preview/pr-945/blog/tags/digital-art/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/digital-signatures/index.html b/pr-preview/pr-945/blog/tags/digital-signatures/index.html index 63fd479c888..70df3e17e18 100644 --- a/pr-preview/pr-945/blog/tags/digital-signatures/index.html +++ b/pr-preview/pr-945/blog/tags/digital-signatures/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/discord/index.html b/pr-preview/pr-945/blog/tags/discord/index.html index 619fca0d1e4..db26908bf0a 100644 --- a/pr-preview/pr-945/blog/tags/discord/index.html +++ b/pr-preview/pr-945/blog/tags/discord/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/dns/index.html b/pr-preview/pr-945/blog/tags/dns/index.html index 2190ed7ce7e..5a2c0374edc 100644 --- a/pr-preview/pr-945/blog/tags/dns/index.html +++ b/pr-preview/pr-945/blog/tags/dns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/domains/index.html b/pr-preview/pr-945/blog/tags/domains/index.html index 97a1e4bd4ba..a062462e7c2 100644 --- a/pr-preview/pr-945/blog/tags/domains/index.html +++ b/pr-preview/pr-945/blog/tags/domains/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/dynamic-sharding/index.html b/pr-preview/pr-945/blog/tags/dynamic-sharding/index.html index 3c0f27ee9fb..37938a94ae9 100644 --- a/pr-preview/pr-945/blog/tags/dynamic-sharding/index.html +++ b/pr-preview/pr-945/blog/tags/dynamic-sharding/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/easyfi/index.html b/pr-preview/pr-945/blog/tags/easyfi/index.html index 5d5d752cd22..0b3ac42256e 100644 --- a/pr-preview/pr-945/blog/tags/easyfi/index.html +++ b/pr-preview/pr-945/blog/tags/easyfi/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/eip-1559/index.html b/pr-preview/pr-945/blog/tags/eip-1559/index.html index 7bfe102b030..ae5ea970bf5 100644 --- a/pr-preview/pr-945/blog/tags/eip-1559/index.html +++ b/pr-preview/pr-945/blog/tags/eip-1559/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/eip/index.html b/pr-preview/pr-945/blog/tags/eip/index.html index 06cdf2dfc3e..f7980868ad9 100644 --- a/pr-preview/pr-945/blog/tags/eip/index.html +++ b/pr-preview/pr-945/blog/tags/eip/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/epns/index.html b/pr-preview/pr-945/blog/tags/epns/index.html index 60a5b1a71e0..b33f9bdb881 100644 --- a/pr-preview/pr-945/blog/tags/epns/index.html +++ b/pr-preview/pr-945/blog/tags/epns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/epnsproject/index.html b/pr-preview/pr-945/blog/tags/epnsproject/index.html index 0e620f873c8..f4c4f3e0c31 100644 --- a/pr-preview/pr-945/blog/tags/epnsproject/index.html +++ b/pr-preview/pr-945/blog/tags/epnsproject/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/epnsproject/page/10/index.html b/pr-preview/pr-945/blog/tags/epnsproject/page/10/index.html index b47f68593a4..bcf442bb7db 100644 --- a/pr-preview/pr-945/blog/tags/epnsproject/page/10/index.html +++ b/pr-preview/pr-945/blog/tags/epnsproject/page/10/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/epnsproject/page/11/index.html b/pr-preview/pr-945/blog/tags/epnsproject/page/11/index.html index d4570bbf58a..0f90aa19d18 100644 --- a/pr-preview/pr-945/blog/tags/epnsproject/page/11/index.html +++ b/pr-preview/pr-945/blog/tags/epnsproject/page/11/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/epnsproject/page/2/index.html b/pr-preview/pr-945/blog/tags/epnsproject/page/2/index.html index 688336fb5c4..0beb17bd9b7 100644 --- a/pr-preview/pr-945/blog/tags/epnsproject/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/epnsproject/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/epnsproject/page/3/index.html b/pr-preview/pr-945/blog/tags/epnsproject/page/3/index.html index b99aa44ce42..c3d5ab56525 100644 --- a/pr-preview/pr-945/blog/tags/epnsproject/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/epnsproject/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/epnsproject/page/4/index.html b/pr-preview/pr-945/blog/tags/epnsproject/page/4/index.html index 3f94335bccb..ebdd68951e6 100644 --- a/pr-preview/pr-945/blog/tags/epnsproject/page/4/index.html +++ b/pr-preview/pr-945/blog/tags/epnsproject/page/4/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/epnsproject/page/5/index.html b/pr-preview/pr-945/blog/tags/epnsproject/page/5/index.html index b8a76d488bb..662f6cb7c33 100644 --- a/pr-preview/pr-945/blog/tags/epnsproject/page/5/index.html +++ b/pr-preview/pr-945/blog/tags/epnsproject/page/5/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/epnsproject/page/6/index.html b/pr-preview/pr-945/blog/tags/epnsproject/page/6/index.html index bc4451b41eb..779f855edb7 100644 --- a/pr-preview/pr-945/blog/tags/epnsproject/page/6/index.html +++ b/pr-preview/pr-945/blog/tags/epnsproject/page/6/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/epnsproject/page/7/index.html b/pr-preview/pr-945/blog/tags/epnsproject/page/7/index.html index 848d3437686..889bae4b28c 100644 --- a/pr-preview/pr-945/blog/tags/epnsproject/page/7/index.html +++ b/pr-preview/pr-945/blog/tags/epnsproject/page/7/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/epnsproject/page/8/index.html b/pr-preview/pr-945/blog/tags/epnsproject/page/8/index.html index 79d4c0721c7..aec9bedd281 100644 --- a/pr-preview/pr-945/blog/tags/epnsproject/page/8/index.html +++ b/pr-preview/pr-945/blog/tags/epnsproject/page/8/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/epnsproject/page/9/index.html b/pr-preview/pr-945/blog/tags/epnsproject/page/9/index.html index 2778dacaca9..23bc6fe49ad 100644 --- a/pr-preview/pr-945/blog/tags/epnsproject/page/9/index.html +++ b/pr-preview/pr-945/blog/tags/epnsproject/page/9/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/erc-6551/index.html b/pr-preview/pr-945/blog/tags/erc-6551/index.html index 2b82a27215d..01175b77e0e 100644 --- a/pr-preview/pr-945/blog/tags/erc-6551/index.html +++ b/pr-preview/pr-945/blog/tags/erc-6551/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/eth-global/index.html b/pr-preview/pr-945/blog/tags/eth-global/index.html index 96561739735..eb8c1833915 100644 --- a/pr-preview/pr-945/blog/tags/eth-global/index.html +++ b/pr-preview/pr-945/blog/tags/eth-global/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethdenver-2023/index.html b/pr-preview/pr-945/blog/tags/ethdenver-2023/index.html index 5fd9f6d2ddf..c24c1747740 100644 --- a/pr-preview/pr-945/blog/tags/ethdenver-2023/index.html +++ b/pr-preview/pr-945/blog/tags/ethdenver-2023/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethdenver/index.html b/pr-preview/pr-945/blog/tags/ethdenver/index.html index 35c2d8e0243..3a9ba858649 100644 --- a/pr-preview/pr-945/blog/tags/ethdenver/index.html +++ b/pr-preview/pr-945/blog/tags/ethdenver/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum-blockchain/index.html b/pr-preview/pr-945/blog/tags/ethereum-blockchain/index.html index 7347b807bf0..099e67d3f9a 100644 --- a/pr-preview/pr-945/blog/tags/ethereum-blockchain/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum-blockchain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum-gas-fee/index.html b/pr-preview/pr-945/blog/tags/ethereum-gas-fee/index.html index e86ab8e8fce..7d31d0293f3 100644 --- a/pr-preview/pr-945/blog/tags/ethereum-gas-fee/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum-gas-fee/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/index.html b/pr-preview/pr-945/blog/tags/ethereum/index.html index bf31e31a447..d781ad736aa 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/10/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/10/index.html index 10e664fb2bc..8a905d45d30 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/10/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/10/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/11/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/11/index.html index f0dabbfd26a..05a6e048e4c 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/11/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/11/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/12/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/12/index.html index ab87e8f44b7..c08e28c1f82 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/12/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/12/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/13/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/13/index.html index 55f26ac3e0b..5273c40184a 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/13/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/13/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/14/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/14/index.html index 4dd47fd9c7f..093e5f30662 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/14/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/14/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/15/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/15/index.html index 3e7537ee6f5..e88f5c72618 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/15/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/15/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/16/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/16/index.html index 533e03e2980..cd5a1842db5 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/16/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/16/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/17/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/17/index.html index 63951177349..0a9a001ca54 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/17/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/17/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/18/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/18/index.html index 4fef601cd60..be6f865718e 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/18/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/18/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/19/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/19/index.html index a5d62fb6249..57b9afad692 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/19/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/19/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/2/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/2/index.html index fd08b49613f..386f6f2337e 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/20/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/20/index.html index 5032c079179..9d01316b8c2 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/20/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/20/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/21/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/21/index.html index b3996bd6849..0fa12fa0dd5 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/21/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/21/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/3/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/3/index.html index f74ef2dc6b4..74d7a1a698a 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/4/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/4/index.html index a9923190b4f..b74cc5dae86 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/4/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/4/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/5/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/5/index.html index da8657b7b12..10ff604bc8c 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/5/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/5/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/6/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/6/index.html index 92bad31d973..57f1b3f10bb 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/6/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/6/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/7/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/7/index.html index 26d1a5bccc9..2119d4333cc 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/7/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/7/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/8/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/8/index.html index a43fc691754..2869adf0925 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/8/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/8/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethereum/page/9/index.html b/pr-preview/pr-945/blog/tags/ethereum/page/9/index.html index f3b3c403dd6..67941e65692 100644 --- a/pr-preview/pr-945/blog/tags/ethereum/page/9/index.html +++ b/pr-preview/pr-945/blog/tags/ethereum/page/9/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ethglobal/index.html b/pr-preview/pr-945/blog/tags/ethglobal/index.html index 5b8c1dcd100..97e3907a9e9 100644 --- a/pr-preview/pr-945/blog/tags/ethglobal/index.html +++ b/pr-preview/pr-945/blog/tags/ethglobal/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/events/index.html b/pr-preview/pr-945/blog/tags/events/index.html index ae16dd6271b..964d12e572e 100644 --- a/pr-preview/pr-945/blog/tags/events/index.html +++ b/pr-preview/pr-945/blog/tags/events/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/exchange/index.html b/pr-preview/pr-945/blog/tags/exchange/index.html index fc857caed43..104e0599dfb 100644 --- a/pr-preview/pr-945/blog/tags/exchange/index.html +++ b/pr-preview/pr-945/blog/tags/exchange/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/faq/index.html b/pr-preview/pr-945/blog/tags/faq/index.html index 708b54f3ec1..f67a9ae6952 100644 --- a/pr-preview/pr-945/blog/tags/faq/index.html +++ b/pr-preview/pr-945/blog/tags/faq/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/first-principles-thinking/index.html b/pr-preview/pr-945/blog/tags/first-principles-thinking/index.html index 1075bcc5730..f420a952f49 100644 --- a/pr-preview/pr-945/blog/tags/first-principles-thinking/index.html +++ b/pr-preview/pr-945/blog/tags/first-principles-thinking/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/flash-loan/index.html b/pr-preview/pr-945/blog/tags/flash-loan/index.html index 02e2ccbf51c..e761b501a56 100644 --- a/pr-preview/pr-945/blog/tags/flash-loan/index.html +++ b/pr-preview/pr-945/blog/tags/flash-loan/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/frensofpush/index.html b/pr-preview/pr-945/blog/tags/frensofpush/index.html index dedb3937323..34910a868d8 100644 --- a/pr-preview/pr-945/blog/tags/frensofpush/index.html +++ b/pr-preview/pr-945/blog/tags/frensofpush/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/frensofpush/page/2/index.html b/pr-preview/pr-945/blog/tags/frensofpush/page/2/index.html index be5f36fa6b5..8cf1ff3d77e 100644 --- a/pr-preview/pr-945/blog/tags/frensofpush/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/frensofpush/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/funding/index.html b/pr-preview/pr-945/blog/tags/funding/index.html index a69a3a57499..af60036e128 100644 --- a/pr-preview/pr-945/blog/tags/funding/index.html +++ b/pr-preview/pr-945/blog/tags/funding/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/fundraising/index.html b/pr-preview/pr-945/blog/tags/fundraising/index.html index d5b5543b265..41f8fe0a4f1 100644 --- a/pr-preview/pr-945/blog/tags/fundraising/index.html +++ b/pr-preview/pr-945/blog/tags/fundraising/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/game-theory/index.html b/pr-preview/pr-945/blog/tags/game-theory/index.html index 5299973bfc8..af272e13886 100644 --- a/pr-preview/pr-945/blog/tags/game-theory/index.html +++ b/pr-preview/pr-945/blog/tags/game-theory/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/gaming/index.html b/pr-preview/pr-945/blog/tags/gaming/index.html index baf2be5de4d..5b3923df8c1 100644 --- a/pr-preview/pr-945/blog/tags/gaming/index.html +++ b/pr-preview/pr-945/blog/tags/gaming/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/gas-fees/index.html b/pr-preview/pr-945/blog/tags/gas-fees/index.html index 9194083d2ee..4d69d69d116 100644 --- a/pr-preview/pr-945/blog/tags/gas-fees/index.html +++ b/pr-preview/pr-945/blog/tags/gas-fees/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/gateio/index.html b/pr-preview/pr-945/blog/tags/gateio/index.html index 44eb9837749..377f4b86641 100644 --- a/pr-preview/pr-945/blog/tags/gateio/index.html +++ b/pr-preview/pr-945/blog/tags/gateio/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/gitcoin-grants/index.html b/pr-preview/pr-945/blog/tags/gitcoin-grants/index.html index b3ba9728966..7bf2d0b6424 100644 --- a/pr-preview/pr-945/blog/tags/gitcoin-grants/index.html +++ b/pr-preview/pr-945/blog/tags/gitcoin-grants/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/gitcoin/index.html b/pr-preview/pr-945/blog/tags/gitcoin/index.html index f42ee7b8aff..d632dc1355d 100644 --- a/pr-preview/pr-945/blog/tags/gitcoin/index.html +++ b/pr-preview/pr-945/blog/tags/gitcoin/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/gitcoin/page/2/index.html b/pr-preview/pr-945/blog/tags/gitcoin/page/2/index.html index 0b30859e948..3de42ce80d5 100644 --- a/pr-preview/pr-945/blog/tags/gitcoin/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/gitcoin/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/giveaway/index.html b/pr-preview/pr-945/blog/tags/giveaway/index.html index b6f6705c7f8..b7aaa866023 100644 --- a/pr-preview/pr-945/blog/tags/giveaway/index.html +++ b/pr-preview/pr-945/blog/tags/giveaway/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/gnosis/index.html b/pr-preview/pr-945/blog/tags/gnosis/index.html index b0e8c237818..d1b8a77d20a 100644 --- a/pr-preview/pr-945/blog/tags/gnosis/index.html +++ b/pr-preview/pr-945/blog/tags/gnosis/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/governance/index.html b/pr-preview/pr-945/blog/tags/governance/index.html index 58754a091de..ee73b3114fb 100644 --- a/pr-preview/pr-945/blog/tags/governance/index.html +++ b/pr-preview/pr-945/blog/tags/governance/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/governance/page/2/index.html b/pr-preview/pr-945/blog/tags/governance/page/2/index.html index fe6c3915cf6..7d16a49aac8 100644 --- a/pr-preview/pr-945/blog/tags/governance/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/governance/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/governance/page/3/index.html b/pr-preview/pr-945/blog/tags/governance/page/3/index.html index 8f652088c07..93b7424ff37 100644 --- a/pr-preview/pr-945/blog/tags/governance/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/governance/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/grant-writing/index.html b/pr-preview/pr-945/blog/tags/grant-writing/index.html index 5c32d2ed282..8ba054e257f 100644 --- a/pr-preview/pr-945/blog/tags/grant-writing/index.html +++ b/pr-preview/pr-945/blog/tags/grant-writing/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/grant/index.html b/pr-preview/pr-945/blog/tags/grant/index.html index 99999fa0d1f..f3d7e9a12d7 100644 --- a/pr-preview/pr-945/blog/tags/grant/index.html +++ b/pr-preview/pr-945/blog/tags/grant/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/grants-program/index.html b/pr-preview/pr-945/blog/tags/grants-program/index.html index 7fdcad1c5b5..5184b579421 100644 --- a/pr-preview/pr-945/blog/tags/grants-program/index.html +++ b/pr-preview/pr-945/blog/tags/grants-program/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/graph/index.html b/pr-preview/pr-945/blog/tags/graph/index.html index 96c398681d8..28d326c5689 100644 --- a/pr-preview/pr-945/blog/tags/graph/index.html +++ b/pr-preview/pr-945/blog/tags/graph/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/gratitude/index.html b/pr-preview/pr-945/blog/tags/gratitude/index.html index 8705a0d4b79..0f75efe368d 100644 --- a/pr-preview/pr-945/blog/tags/gratitude/index.html +++ b/pr-preview/pr-945/blog/tags/gratitude/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/gro-protocol/index.html b/pr-preview/pr-945/blog/tags/gro-protocol/index.html index 0ab133be1c1..1b23a6c6277 100644 --- a/pr-preview/pr-945/blog/tags/gro-protocol/index.html +++ b/pr-preview/pr-945/blog/tags/gro-protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/hackathons/index.html b/pr-preview/pr-945/blog/tags/hackathons/index.html index 0142cdb2d54..b44a22da568 100644 --- a/pr-preview/pr-945/blog/tags/hackathons/index.html +++ b/pr-preview/pr-945/blog/tags/hackathons/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/hacking/index.html b/pr-preview/pr-945/blog/tags/hacking/index.html index c484469c1ab..0172ab736e3 100644 --- a/pr-preview/pr-945/blog/tags/hacking/index.html +++ b/pr-preview/pr-945/blog/tags/hacking/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/healthcare/index.html b/pr-preview/pr-945/blog/tags/healthcare/index.html index 3eb63a36702..5419d2a4a45 100644 --- a/pr-preview/pr-945/blog/tags/healthcare/index.html +++ b/pr-preview/pr-945/blog/tags/healthcare/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/huobi/index.html b/pr-preview/pr-945/blog/tags/huobi/index.html index f27e5c5d92d..28b448edbeb 100644 --- a/pr-preview/pr-945/blog/tags/huobi/index.html +++ b/pr-preview/pr-945/blog/tags/huobi/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/huobiglobal/index.html b/pr-preview/pr-945/blog/tags/huobiglobal/index.html index c8729ef48c5..b90e4119ab6 100644 --- a/pr-preview/pr-945/blog/tags/huobiglobal/index.html +++ b/pr-preview/pr-945/blog/tags/huobiglobal/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/identity/index.html b/pr-preview/pr-945/blog/tags/identity/index.html index e0ef8bf6d8f..e6d9df86492 100644 --- a/pr-preview/pr-945/blog/tags/identity/index.html +++ b/pr-preview/pr-945/blog/tags/identity/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ideo/index.html b/pr-preview/pr-945/blog/tags/ideo/index.html index de2b445ff2b..1cce105349f 100644 --- a/pr-preview/pr-945/blog/tags/ideo/index.html +++ b/pr-preview/pr-945/blog/tags/ideo/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ido/index.html b/pr-preview/pr-945/blog/tags/ido/index.html index 6fe8ffa8728..d9ed0339fed 100644 --- a/pr-preview/pr-945/blog/tags/ido/index.html +++ b/pr-preview/pr-945/blog/tags/ido/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/immuenfi/index.html b/pr-preview/pr-945/blog/tags/immuenfi/index.html index 5aece23e78e..0f6e3d15650 100644 --- a/pr-preview/pr-945/blog/tags/immuenfi/index.html +++ b/pr-preview/pr-945/blog/tags/immuenfi/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/index.html b/pr-preview/pr-945/blog/tags/index.html index fd077837f6b..dd4d76e8bbf 100644 --- a/pr-preview/pr-945/blog/tags/index.html +++ b/pr-preview/pr-945/blog/tags/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/infrastructure/index.html b/pr-preview/pr-945/blog/tags/infrastructure/index.html index 04abb01c886..d8960161a16 100644 --- a/pr-preview/pr-945/blog/tags/infrastructure/index.html +++ b/pr-preview/pr-945/blog/tags/infrastructure/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/insights/index.html b/pr-preview/pr-945/blog/tags/insights/index.html index 46358f8de18..8509b78d9b0 100644 --- a/pr-preview/pr-945/blog/tags/insights/index.html +++ b/pr-preview/pr-945/blog/tags/insights/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/insurance/index.html b/pr-preview/pr-945/blog/tags/insurance/index.html index 76f1579259e..40ae8712ebd 100644 --- a/pr-preview/pr-945/blog/tags/insurance/index.html +++ b/pr-preview/pr-945/blog/tags/insurance/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/interoperability/index.html b/pr-preview/pr-945/blog/tags/interoperability/index.html index c75df08157f..ea10cfd6769 100644 --- a/pr-preview/pr-945/blog/tags/interoperability/index.html +++ b/pr-preview/pr-945/blog/tags/interoperability/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/interview/index.html b/pr-preview/pr-945/blog/tags/interview/index.html index 34d28d70cbd..004a5909fcb 100644 --- a/pr-preview/pr-945/blog/tags/interview/index.html +++ b/pr-preview/pr-945/blog/tags/interview/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/io-t/index.html b/pr-preview/pr-945/blog/tags/io-t/index.html index 7579be62b17..41207028676 100644 --- a/pr-preview/pr-945/blog/tags/io-t/index.html +++ b/pr-preview/pr-945/blog/tags/io-t/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/japanese/index.html b/pr-preview/pr-945/blog/tags/japanese/index.html index 3482acd87fb..bd2aaacbabf 100644 --- a/pr-preview/pr-945/blog/tags/japanese/index.html +++ b/pr-preview/pr-945/blog/tags/japanese/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/jobs/index.html b/pr-preview/pr-945/blog/tags/jobs/index.html index 660e2b3cde7..c35d8392a60 100644 --- a/pr-preview/pr-945/blog/tags/jobs/index.html +++ b/pr-preview/pr-945/blog/tags/jobs/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/kucoin/index.html b/pr-preview/pr-945/blog/tags/kucoin/index.html index 6355422ad9b..b2baba4f706 100644 --- a/pr-preview/pr-945/blog/tags/kucoin/index.html +++ b/pr-preview/pr-945/blog/tags/kucoin/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/latam/index.html b/pr-preview/pr-945/blog/tags/latam/index.html index dff1ee35a09..b5b38ff8fb7 100644 --- a/pr-preview/pr-945/blog/tags/latam/index.html +++ b/pr-preview/pr-945/blog/tags/latam/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/layer-2/index.html b/pr-preview/pr-945/blog/tags/layer-2/index.html index 7454858af2e..2a435f07d7f 100644 --- a/pr-preview/pr-945/blog/tags/layer-2/index.html +++ b/pr-preview/pr-945/blog/tags/layer-2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/liquidity-mining/index.html b/pr-preview/pr-945/blog/tags/liquidity-mining/index.html index fa3af09d39f..f6ab869063c 100644 --- a/pr-preview/pr-945/blog/tags/liquidity-mining/index.html +++ b/pr-preview/pr-945/blog/tags/liquidity-mining/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/liquidity-pool/index.html b/pr-preview/pr-945/blog/tags/liquidity-pool/index.html index 8a2d42e2e0a..2af5a336172 100644 --- a/pr-preview/pr-945/blog/tags/liquidity-pool/index.html +++ b/pr-preview/pr-945/blog/tags/liquidity-pool/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/liquidity/index.html b/pr-preview/pr-945/blog/tags/liquidity/index.html index 7f5214bfd09..e74903da85e 100644 --- a/pr-preview/pr-945/blog/tags/liquidity/index.html +++ b/pr-preview/pr-945/blog/tags/liquidity/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/listings/index.html b/pr-preview/pr-945/blog/tags/listings/index.html index d54a9c7b67e..86133200a70 100644 --- a/pr-preview/pr-945/blog/tags/listings/index.html +++ b/pr-preview/pr-945/blog/tags/listings/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/lite-paper/index.html b/pr-preview/pr-945/blog/tags/lite-paper/index.html index 05e5ed5c7b9..325d9200381 100644 --- a/pr-preview/pr-945/blog/tags/lite-paper/index.html +++ b/pr-preview/pr-945/blog/tags/lite-paper/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/live/index.html b/pr-preview/pr-945/blog/tags/live/index.html index 262530f29e1..d44bb61ecc6 100644 --- a/pr-preview/pr-945/blog/tags/live/index.html +++ b/pr-preview/pr-945/blog/tags/live/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/mainnet/index.html b/pr-preview/pr-945/blog/tags/mainnet/index.html index c718c698982..918541191c2 100644 --- a/pr-preview/pr-945/blog/tags/mainnet/index.html +++ b/pr-preview/pr-945/blog/tags/mainnet/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/matic-network/index.html b/pr-preview/pr-945/blog/tags/matic-network/index.html index d0facc5b985..4d7e2cc5d62 100644 --- a/pr-preview/pr-945/blog/tags/matic-network/index.html +++ b/pr-preview/pr-945/blog/tags/matic-network/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/matic/index.html b/pr-preview/pr-945/blog/tags/matic/index.html index 166d540da64..ff2c137a6ba 100644 --- a/pr-preview/pr-945/blog/tags/matic/index.html +++ b/pr-preview/pr-945/blog/tags/matic/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/media/index.html b/pr-preview/pr-945/blog/tags/media/index.html index a75100d5765..ff81c4181fa 100644 --- a/pr-preview/pr-945/blog/tags/media/index.html +++ b/pr-preview/pr-945/blog/tags/media/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/meme/index.html b/pr-preview/pr-945/blog/tags/meme/index.html index 068f6e42a13..446d2787128 100644 --- a/pr-preview/pr-945/blog/tags/meme/index.html +++ b/pr-preview/pr-945/blog/tags/meme/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/messaging/index.html b/pr-preview/pr-945/blog/tags/messaging/index.html index a1cc638f52e..12916f66171 100644 --- a/pr-preview/pr-945/blog/tags/messaging/index.html +++ b/pr-preview/pr-945/blog/tags/messaging/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/metamask-wallet/index.html b/pr-preview/pr-945/blog/tags/metamask-wallet/index.html index d5e3ccbdaf1..3c2c6017b1f 100644 --- a/pr-preview/pr-945/blog/tags/metamask-wallet/index.html +++ b/pr-preview/pr-945/blog/tags/metamask-wallet/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/metamask/index.html b/pr-preview/pr-945/blog/tags/metamask/index.html index 8ee5f87aa91..adc3fef2bc4 100644 --- a/pr-preview/pr-945/blog/tags/metamask/index.html +++ b/pr-preview/pr-945/blog/tags/metamask/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/metaverse/index.html b/pr-preview/pr-945/blog/tags/metaverse/index.html index e1c87418eac..c1591c99080 100644 --- a/pr-preview/pr-945/blog/tags/metaverse/index.html +++ b/pr-preview/pr-945/blog/tags/metaverse/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/mmorpg/index.html b/pr-preview/pr-945/blog/tags/mmorpg/index.html index dbe5651f00f..f8d1e1b88f1 100644 --- a/pr-preview/pr-945/blog/tags/mmorpg/index.html +++ b/pr-preview/pr-945/blog/tags/mmorpg/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/monthly-recap/index.html b/pr-preview/pr-945/blog/tags/monthly-recap/index.html index efb80d7f984..c74a826d80c 100644 --- a/pr-preview/pr-945/blog/tags/monthly-recap/index.html +++ b/pr-preview/pr-945/blog/tags/monthly-recap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/monthly-report/index.html b/pr-preview/pr-945/blog/tags/monthly-report/index.html index a2d067453ff..7203fd8946a 100644 --- a/pr-preview/pr-945/blog/tags/monthly-report/index.html +++ b/pr-preview/pr-945/blog/tags/monthly-report/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/multichain/index.html b/pr-preview/pr-945/blog/tags/multichain/index.html index d2d99ba0244..346e3d4084d 100644 --- a/pr-preview/pr-945/blog/tags/multichain/index.html +++ b/pr-preview/pr-945/blog/tags/multichain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/new-listings/index.html b/pr-preview/pr-945/blog/tags/new-listings/index.html index f68b96ea0f3..bca244e281c 100644 --- a/pr-preview/pr-945/blog/tags/new-listings/index.html +++ b/pr-preview/pr-945/blog/tags/new-listings/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/news-letter/index.html b/pr-preview/pr-945/blog/tags/news-letter/index.html index 70d551410b3..b823419d394 100644 --- a/pr-preview/pr-945/blog/tags/news-letter/index.html +++ b/pr-preview/pr-945/blog/tags/news-letter/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/newsletter/index.html b/pr-preview/pr-945/blog/tags/newsletter/index.html index 855136ca9ce..4c4ed5f21cc 100644 --- a/pr-preview/pr-945/blog/tags/newsletter/index.html +++ b/pr-preview/pr-945/blog/tags/newsletter/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/newsletter/page/2/index.html b/pr-preview/pr-945/blog/tags/newsletter/page/2/index.html index cb733a16e31..0eb5fd1ead9 100644 --- a/pr-preview/pr-945/blog/tags/newsletter/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/newsletter/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/newsletter/page/3/index.html b/pr-preview/pr-945/blog/tags/newsletter/page/3/index.html index 6e1f3fd2925..f09dd195bd5 100644 --- a/pr-preview/pr-945/blog/tags/newsletter/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/newsletter/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/newsletter/page/4/index.html b/pr-preview/pr-945/blog/tags/newsletter/page/4/index.html index e86dd03e4a8..2943337e879 100644 --- a/pr-preview/pr-945/blog/tags/newsletter/page/4/index.html +++ b/pr-preview/pr-945/blog/tags/newsletter/page/4/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/newsletter/page/5/index.html b/pr-preview/pr-945/blog/tags/newsletter/page/5/index.html index b62380cb209..ff02d49047d 100644 --- a/pr-preview/pr-945/blog/tags/newsletter/page/5/index.html +++ b/pr-preview/pr-945/blog/tags/newsletter/page/5/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/newsletter/page/6/index.html b/pr-preview/pr-945/blog/tags/newsletter/page/6/index.html index a8e9652fb08..bcfb1fd2825 100644 --- a/pr-preview/pr-945/blog/tags/newsletter/page/6/index.html +++ b/pr-preview/pr-945/blog/tags/newsletter/page/6/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/newsletter/page/7/index.html b/pr-preview/pr-945/blog/tags/newsletter/page/7/index.html index 8df7802f3bc..21ea1a09133 100644 --- a/pr-preview/pr-945/blog/tags/newsletter/page/7/index.html +++ b/pr-preview/pr-945/blog/tags/newsletter/page/7/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/newsletter/page/8/index.html b/pr-preview/pr-945/blog/tags/newsletter/page/8/index.html index 67e61aa94c0..19846b805b0 100644 --- a/pr-preview/pr-945/blog/tags/newsletter/page/8/index.html +++ b/pr-preview/pr-945/blog/tags/newsletter/page/8/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/nft-collectibles/index.html b/pr-preview/pr-945/blog/tags/nft-collectibles/index.html index 2b86515698b..f467119f359 100644 --- a/pr-preview/pr-945/blog/tags/nft-collectibles/index.html +++ b/pr-preview/pr-945/blog/tags/nft-collectibles/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/nft-utility/index.html b/pr-preview/pr-945/blog/tags/nft-utility/index.html index d12a8ccceba..edab4c3a287 100644 --- a/pr-preview/pr-945/blog/tags/nft-utility/index.html +++ b/pr-preview/pr-945/blog/tags/nft-utility/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/nft/index.html b/pr-preview/pr-945/blog/tags/nft/index.html index efd0d0aebe3..d23287eaea3 100644 --- a/pr-preview/pr-945/blog/tags/nft/index.html +++ b/pr-preview/pr-945/blog/tags/nft/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/nft/page/2/index.html b/pr-preview/pr-945/blog/tags/nft/page/2/index.html index 9ad447e157f..60d0a7c38e6 100644 --- a/pr-preview/pr-945/blog/tags/nft/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/nft/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/nft/page/3/index.html b/pr-preview/pr-945/blog/tags/nft/page/3/index.html index 47d24f8204a..c90050c25ae 100644 --- a/pr-preview/pr-945/blog/tags/nft/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/nft/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/non-fungible-tokens/index.html b/pr-preview/pr-945/blog/tags/non-fungible-tokens/index.html index 33a487de6e5..a090c8c345c 100644 --- a/pr-preview/pr-945/blog/tags/non-fungible-tokens/index.html +++ b/pr-preview/pr-945/blog/tags/non-fungible-tokens/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/notifications/index.html b/pr-preview/pr-945/blog/tags/notifications/index.html index b1eeb8d2927..450ddce01fa 100644 --- a/pr-preview/pr-945/blog/tags/notifications/index.html +++ b/pr-preview/pr-945/blog/tags/notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/notifications/page/2/index.html b/pr-preview/pr-945/blog/tags/notifications/page/2/index.html index c877050b99e..26ec7bfa14c 100644 --- a/pr-preview/pr-945/blog/tags/notifications/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/notifications/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/notifications/page/3/index.html b/pr-preview/pr-945/blog/tags/notifications/page/3/index.html index 2a2b2b2a918..68bada07bb5 100644 --- a/pr-preview/pr-945/blog/tags/notifications/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/notifications/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/notifications/page/4/index.html b/pr-preview/pr-945/blog/tags/notifications/page/4/index.html index baa521ef596..36e468167d6 100644 --- a/pr-preview/pr-945/blog/tags/notifications/page/4/index.html +++ b/pr-preview/pr-945/blog/tags/notifications/page/4/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/open-source/index.html b/pr-preview/pr-945/blog/tags/open-source/index.html index 1c826540b84..c7195b5fe57 100644 --- a/pr-preview/pr-945/blog/tags/open-source/index.html +++ b/pr-preview/pr-945/blog/tags/open-source/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/openleverage/index.html b/pr-preview/pr-945/blog/tags/openleverage/index.html index 3fc6182c6b3..cda4e7710bf 100644 --- a/pr-preview/pr-945/blog/tags/openleverage/index.html +++ b/pr-preview/pr-945/blog/tags/openleverage/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/opensea/index.html b/pr-preview/pr-945/blog/tags/opensea/index.html index 9b4bc53c336..b37e579a309 100644 --- a/pr-preview/pr-945/blog/tags/opensea/index.html +++ b/pr-preview/pr-945/blog/tags/opensea/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/parallel-validators/index.html b/pr-preview/pr-945/blog/tags/parallel-validators/index.html index f0e62d2c48e..7e180d4c2d7 100644 --- a/pr-preview/pr-945/blog/tags/parallel-validators/index.html +++ b/pr-preview/pr-945/blog/tags/parallel-validators/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/partnership/index.html b/pr-preview/pr-945/blog/tags/partnership/index.html index 491951bb67e..30ed6f340de 100644 --- a/pr-preview/pr-945/blog/tags/partnership/index.html +++ b/pr-preview/pr-945/blog/tags/partnership/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/partnerships/index.html b/pr-preview/pr-945/blog/tags/partnerships/index.html index 982d0edea6a..e949a6f7aa9 100644 --- a/pr-preview/pr-945/blog/tags/partnerships/index.html +++ b/pr-preview/pr-945/blog/tags/partnerships/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/partnerships/page/2/index.html b/pr-preview/pr-945/blog/tags/partnerships/page/2/index.html index f0fee8fa366..8e22d79170d 100644 --- a/pr-preview/pr-945/blog/tags/partnerships/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/partnerships/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/pgp/index.html b/pr-preview/pr-945/blog/tags/pgp/index.html index 96e51d2b206..1f5b5b518c5 100644 --- a/pr-preview/pr-945/blog/tags/pgp/index.html +++ b/pr-preview/pr-945/blog/tags/pgp/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/plotx/index.html b/pr-preview/pr-945/blog/tags/plotx/index.html index c9a47d939d9..854689fcbab 100644 --- a/pr-preview/pr-945/blog/tags/plotx/index.html +++ b/pr-preview/pr-945/blog/tags/plotx/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/pn-101/index.html b/pr-preview/pr-945/blog/tags/pn-101/index.html index 4ff6918efbe..3ccbc7901e9 100644 --- a/pr-preview/pr-945/blog/tags/pn-101/index.html +++ b/pr-preview/pr-945/blog/tags/pn-101/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/polkastarter/index.html b/pr-preview/pr-945/blog/tags/polkastarter/index.html index f91c71241e9..8d490d4e514 100644 --- a/pr-preview/pr-945/blog/tags/polkastarter/index.html +++ b/pr-preview/pr-945/blog/tags/polkastarter/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/polygon-network/index.html b/pr-preview/pr-945/blog/tags/polygon-network/index.html index 2fee2a50e76..cc3a7d2456e 100644 --- a/pr-preview/pr-945/blog/tags/polygon-network/index.html +++ b/pr-preview/pr-945/blog/tags/polygon-network/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/polygon/index.html b/pr-preview/pr-945/blog/tags/polygon/index.html index 592aa89e90d..32cc8b4f8b3 100644 --- a/pr-preview/pr-945/blog/tags/polygon/index.html +++ b/pr-preview/pr-945/blog/tags/polygon/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/pool-together/index.html b/pr-preview/pr-945/blog/tags/pool-together/index.html index dace1504479..18d3ad2e362 100644 --- a/pr-preview/pr-945/blog/tags/pool-together/index.html +++ b/pr-preview/pr-945/blog/tags/pool-together/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/portfolio/index.html b/pr-preview/pr-945/blog/tags/portfolio/index.html index 590af31baaa..24ff2abefc1 100644 --- a/pr-preview/pr-945/blog/tags/portfolio/index.html +++ b/pr-preview/pr-945/blog/tags/portfolio/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/prediction-markets/index.html b/pr-preview/pr-945/blog/tags/prediction-markets/index.html index a8e620bc7b2..3e2b9658dec 100644 --- a/pr-preview/pr-945/blog/tags/prediction-markets/index.html +++ b/pr-preview/pr-945/blog/tags/prediction-markets/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/products/index.html b/pr-preview/pr-945/blog/tags/products/index.html index 631889e7859..a348df703e0 100644 --- a/pr-preview/pr-945/blog/tags/products/index.html +++ b/pr-preview/pr-945/blog/tags/products/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/project-management/index.html b/pr-preview/pr-945/blog/tags/project-management/index.html index 7dd950ea925..d78501b74ce 100644 --- a/pr-preview/pr-945/blog/tags/project-management/index.html +++ b/pr-preview/pr-945/blog/tags/project-management/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/proof-of-stake/index.html b/pr-preview/pr-945/blog/tags/proof-of-stake/index.html index 0a615e4f99b..d3792e6ee03 100644 --- a/pr-preview/pr-945/blog/tags/proof-of-stake/index.html +++ b/pr-preview/pr-945/blog/tags/proof-of-stake/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/proposal/index.html b/pr-preview/pr-945/blog/tags/proposal/index.html index be46065dce7..e7053959e34 100644 --- a/pr-preview/pr-945/blog/tags/proposal/index.html +++ b/pr-preview/pr-945/blog/tags/proposal/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/protocol/index.html b/pr-preview/pr-945/blog/tags/protocol/index.html index cc331b9a687..b6bf7ac02b3 100644 --- a/pr-preview/pr-945/blog/tags/protocol/index.html +++ b/pr-preview/pr-945/blog/tags/protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-chain-benchmark/index.html b/pr-preview/pr-945/blog/tags/push-chain-benchmark/index.html index f5e313a05ff..255c302fcdc 100644 --- a/pr-preview/pr-945/blog/tags/push-chain-benchmark/index.html +++ b/pr-preview/pr-945/blog/tags/push-chain-benchmark/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-chain-fa-qs/index.html b/pr-preview/pr-945/blog/tags/push-chain-fa-qs/index.html index 9bf53535883..a33c6727b94 100644 --- a/pr-preview/pr-945/blog/tags/push-chain-fa-qs/index.html +++ b/pr-preview/pr-945/blog/tags/push-chain-fa-qs/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-chain-nodes/index.html b/pr-preview/pr-945/blog/tags/push-chain-nodes/index.html index 6a8002f4ac9..64c35d7c4f0 100644 --- a/pr-preview/pr-945/blog/tags/push-chain-nodes/index.html +++ b/pr-preview/pr-945/blog/tags/push-chain-nodes/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-chain/index.html b/pr-preview/pr-945/blog/tags/push-chain/index.html index e154e9b2a7c..517db24e3cc 100644 --- a/pr-preview/pr-945/blog/tags/push-chain/index.html +++ b/pr-preview/pr-945/blog/tags/push-chain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-chat/index.html b/pr-preview/pr-945/blog/tags/push-chat/index.html index 3c56e1ff501..563da9fef54 100644 --- a/pr-preview/pr-945/blog/tags/push-chat/index.html +++ b/pr-preview/pr-945/blog/tags/push-chat/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-network/index.html b/pr-preview/pr-945/blog/tags/push-network/index.html index 9cd7727e317..c9c5b1338c8 100644 --- a/pr-preview/pr-945/blog/tags/push-network/index.html +++ b/pr-preview/pr-945/blog/tags/push-network/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-notification-service/index.html b/pr-preview/pr-945/blog/tags/push-notification-service/index.html index 9db23d39125..424b79b97d2 100644 --- a/pr-preview/pr-945/blog/tags/push-notification-service/index.html +++ b/pr-preview/pr-945/blog/tags/push-notification-service/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-notification/index.html b/pr-preview/pr-945/blog/tags/push-notification/index.html index dc662485651..ab6845ac7f7 100644 --- a/pr-preview/pr-945/blog/tags/push-notification/index.html +++ b/pr-preview/pr-945/blog/tags/push-notification/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-notification/page/2/index.html b/pr-preview/pr-945/blog/tags/push-notification/page/2/index.html index 5fe6ae6c0bb..11b5f0f6bb8 100644 --- a/pr-preview/pr-945/blog/tags/push-notification/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/push-notification/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-notification/page/3/index.html b/pr-preview/pr-945/blog/tags/push-notification/page/3/index.html index b0cb04f5b82..ffae1e2bc1d 100644 --- a/pr-preview/pr-945/blog/tags/push-notification/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/push-notification/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-notification/page/4/index.html b/pr-preview/pr-945/blog/tags/push-notification/page/4/index.html index 5b18cfe43ed..50b80f23d3f 100644 --- a/pr-preview/pr-945/blog/tags/push-notification/page/4/index.html +++ b/pr-preview/pr-945/blog/tags/push-notification/page/4/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-notification/page/5/index.html b/pr-preview/pr-945/blog/tags/push-notification/page/5/index.html index 3f3596eb77f..e3dd2456eb8 100644 --- a/pr-preview/pr-945/blog/tags/push-notification/page/5/index.html +++ b/pr-preview/pr-945/blog/tags/push-notification/page/5/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-points/index.html b/pr-preview/pr-945/blog/tags/push-points/index.html index 2a5ea572ab1..6b0e5f6f14e 100644 --- a/pr-preview/pr-945/blog/tags/push-points/index.html +++ b/pr-preview/pr-945/blog/tags/push-points/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-protocol/index.html b/pr-preview/pr-945/blog/tags/push-protocol/index.html index e6da11a2886..783fc7464bf 100644 --- a/pr-preview/pr-945/blog/tags/push-protocol/index.html +++ b/pr-preview/pr-945/blog/tags/push-protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-protocol/page/2/index.html b/pr-preview/pr-945/blog/tags/push-protocol/page/2/index.html index 0b8208e7d34..2720357094f 100644 --- a/pr-preview/pr-945/blog/tags/push-protocol/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/push-protocol/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-protocol/page/3/index.html b/pr-preview/pr-945/blog/tags/push-protocol/page/3/index.html index a651bc0bf55..b07216d7afb 100644 --- a/pr-preview/pr-945/blog/tags/push-protocol/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/push-protocol/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-protocol/page/4/index.html b/pr-preview/pr-945/blog/tags/push-protocol/page/4/index.html index aaeef6a0387..98187cb73b8 100644 --- a/pr-preview/pr-945/blog/tags/push-protocol/page/4/index.html +++ b/pr-preview/pr-945/blog/tags/push-protocol/page/4/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-protocol/page/5/index.html b/pr-preview/pr-945/blog/tags/push-protocol/page/5/index.html index 6f1ddeb978d..30f6b2c05c1 100644 --- a/pr-preview/pr-945/blog/tags/push-protocol/page/5/index.html +++ b/pr-preview/pr-945/blog/tags/push-protocol/page/5/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-protocol/page/6/index.html b/pr-preview/pr-945/blog/tags/push-protocol/page/6/index.html index 7b2e82782f6..8f56c06d45c 100644 --- a/pr-preview/pr-945/blog/tags/push-protocol/page/6/index.html +++ b/pr-preview/pr-945/blog/tags/push-protocol/page/6/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-protocol/page/7/index.html b/pr-preview/pr-945/blog/tags/push-protocol/page/7/index.html index a3fbda36cee..feb643e45d6 100644 --- a/pr-preview/pr-945/blog/tags/push-protocol/page/7/index.html +++ b/pr-preview/pr-945/blog/tags/push-protocol/page/7/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-protocol/page/8/index.html b/pr-preview/pr-945/blog/tags/push-protocol/page/8/index.html index eceef45fc6b..485d03abee6 100644 --- a/pr-preview/pr-945/blog/tags/push-protocol/page/8/index.html +++ b/pr-preview/pr-945/blog/tags/push-protocol/page/8/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-tech/index.html b/pr-preview/pr-945/blog/tags/push-tech/index.html index 30f9c3a15fe..9b9ef9572fb 100644 --- a/pr-preview/pr-945/blog/tags/push-tech/index.html +++ b/pr-preview/pr-945/blog/tags/push-tech/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push-tokenomics/index.html b/pr-preview/pr-945/blog/tags/push-tokenomics/index.html index 5481835eccc..2ab74ef5699 100644 --- a/pr-preview/pr-945/blog/tags/push-tokenomics/index.html +++ b/pr-preview/pr-945/blog/tags/push-tokenomics/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/push/index.html b/pr-preview/pr-945/blog/tags/push/index.html index ef3f27ed308..f0524c06cec 100644 --- a/pr-preview/pr-945/blog/tags/push/index.html +++ b/pr-preview/pr-945/blog/tags/push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/pushnotification/index.html b/pr-preview/pr-945/blog/tags/pushnotification/index.html index f274fdc52cf..0a503d09906 100644 --- a/pr-preview/pr-945/blog/tags/pushnotification/index.html +++ b/pr-preview/pr-945/blog/tags/pushnotification/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/pushprotocol/index.html b/pr-preview/pr-945/blog/tags/pushprotocol/index.html index ab8f5bad718..628fa325ce5 100644 --- a/pr-preview/pr-945/blog/tags/pushprotocol/index.html +++ b/pr-preview/pr-945/blog/tags/pushprotocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/quadraticfunding/index.html b/pr-preview/pr-945/blog/tags/quadraticfunding/index.html index 628ac9c1c67..5176c1fc00d 100644 --- a/pr-preview/pr-945/blog/tags/quadraticfunding/index.html +++ b/pr-preview/pr-945/blog/tags/quadraticfunding/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/quick-swap/index.html b/pr-preview/pr-945/blog/tags/quick-swap/index.html index af6b381f2ee..72c0e9c5933 100644 --- a/pr-preview/pr-945/blog/tags/quick-swap/index.html +++ b/pr-preview/pr-945/blog/tags/quick-swap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/quiz/index.html b/pr-preview/pr-945/blog/tags/quiz/index.html index 99b5b5f7e61..f6b27d98181 100644 --- a/pr-preview/pr-945/blog/tags/quiz/index.html +++ b/pr-preview/pr-945/blog/tags/quiz/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/reputation-system/index.html b/pr-preview/pr-945/blog/tags/reputation-system/index.html index f915466ccc5..c25ce794281 100644 --- a/pr-preview/pr-945/blog/tags/reputation-system/index.html +++ b/pr-preview/pr-945/blog/tags/reputation-system/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/review/index.html b/pr-preview/pr-945/blog/tags/review/index.html index 342f877730f..dd346219c55 100644 --- a/pr-preview/pr-945/blog/tags/review/index.html +++ b/pr-preview/pr-945/blog/tags/review/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/rewards/index.html b/pr-preview/pr-945/blog/tags/rewards/index.html index 426b676914f..0a9cf210a3d 100644 --- a/pr-preview/pr-945/blog/tags/rewards/index.html +++ b/pr-preview/pr-945/blog/tags/rewards/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/roadmap/index.html b/pr-preview/pr-945/blog/tags/roadmap/index.html index 259d7adfe7e..6ad0cb9e176 100644 --- a/pr-preview/pr-945/blog/tags/roadmap/index.html +++ b/pr-preview/pr-945/blog/tags/roadmap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/roadmaps/index.html b/pr-preview/pr-945/blog/tags/roadmaps/index.html index c4d196a729b..fb0f20823ec 100644 --- a/pr-preview/pr-945/blog/tags/roadmaps/index.html +++ b/pr-preview/pr-945/blog/tags/roadmaps/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/rockstar/index.html b/pr-preview/pr-945/blog/tags/rockstar/index.html index b1be79777e6..58212bd692d 100644 --- a/pr-preview/pr-945/blog/tags/rockstar/index.html +++ b/pr-preview/pr-945/blog/tags/rockstar/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/roseon/index.html b/pr-preview/pr-945/blog/tags/roseon/index.html index 05edf07986e..e7746c8fefb 100644 --- a/pr-preview/pr-945/blog/tags/roseon/index.html +++ b/pr-preview/pr-945/blog/tags/roseon/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/sdk/index.html b/pr-preview/pr-945/blog/tags/sdk/index.html index 7f2b338b75c..7ab1403fc58 100644 --- a/pr-preview/pr-945/blog/tags/sdk/index.html +++ b/pr-preview/pr-945/blog/tags/sdk/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/shapeshift/index.html b/pr-preview/pr-945/blog/tags/shapeshift/index.html index 50d58a2b66b..4e0a9a33ba6 100644 --- a/pr-preview/pr-945/blog/tags/shapeshift/index.html +++ b/pr-preview/pr-945/blog/tags/shapeshift/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/shared-app-experience/index.html b/pr-preview/pr-945/blog/tags/shared-app-experience/index.html index 74be1976bb8..9d4c9088107 100644 --- a/pr-preview/pr-945/blog/tags/shared-app-experience/index.html +++ b/pr-preview/pr-945/blog/tags/shared-app-experience/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/shared-state-blockchain/index.html b/pr-preview/pr-945/blog/tags/shared-state-blockchain/index.html index 721d6f4f26e..c6544f18e75 100644 --- a/pr-preview/pr-945/blog/tags/shared-state-blockchain/index.html +++ b/pr-preview/pr-945/blog/tags/shared-state-blockchain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/snapshot/index.html b/pr-preview/pr-945/blog/tags/snapshot/index.html index 5b6e39b62b8..11314fba2a7 100644 --- a/pr-preview/pr-945/blog/tags/snapshot/index.html +++ b/pr-preview/pr-945/blog/tags/snapshot/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/social-media/index.html b/pr-preview/pr-945/blog/tags/social-media/index.html index f9b036ff10f..21bfaffe635 100644 --- a/pr-preview/pr-945/blog/tags/social-media/index.html +++ b/pr-preview/pr-945/blog/tags/social-media/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/social/index.html b/pr-preview/pr-945/blog/tags/social/index.html index 542b67b517b..4fdab86a8e8 100644 --- a/pr-preview/pr-945/blog/tags/social/index.html +++ b/pr-preview/pr-945/blog/tags/social/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/software-development/index.html b/pr-preview/pr-945/blog/tags/software-development/index.html index eb4db9de62b..c2bff102c19 100644 --- a/pr-preview/pr-945/blog/tags/software-development/index.html +++ b/pr-preview/pr-945/blog/tags/software-development/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/solidity/index.html b/pr-preview/pr-945/blog/tags/solidity/index.html index df8360169c5..9dd166007ea 100644 --- a/pr-preview/pr-945/blog/tags/solidity/index.html +++ b/pr-preview/pr-945/blog/tags/solidity/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/sponsorship/index.html b/pr-preview/pr-945/blog/tags/sponsorship/index.html index b5a27b91843..4392e0dbda0 100644 --- a/pr-preview/pr-945/blog/tags/sponsorship/index.html +++ b/pr-preview/pr-945/blog/tags/sponsorship/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/sports-betting/index.html b/pr-preview/pr-945/blog/tags/sports-betting/index.html index bb77db61715..8160be46419 100644 --- a/pr-preview/pr-945/blog/tags/sports-betting/index.html +++ b/pr-preview/pr-945/blog/tags/sports-betting/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/stable-coin/index.html b/pr-preview/pr-945/blog/tags/stable-coin/index.html index 36628fd39c0..84ddd573cb2 100644 --- a/pr-preview/pr-945/blog/tags/stable-coin/index.html +++ b/pr-preview/pr-945/blog/tags/stable-coin/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/staking/index.html b/pr-preview/pr-945/blog/tags/staking/index.html index a65a158e725..7a90a7a3f14 100644 --- a/pr-preview/pr-945/blog/tags/staking/index.html +++ b/pr-preview/pr-945/blog/tags/staking/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/stox/index.html b/pr-preview/pr-945/blog/tags/stox/index.html index c9173d144dd..84f378a39c7 100644 --- a/pr-preview/pr-945/blog/tags/stox/index.html +++ b/pr-preview/pr-945/blog/tags/stox/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/superfluid-protocol/index.html b/pr-preview/pr-945/blog/tags/superfluid-protocol/index.html index 85efb82a01b..63f281e61e5 100644 --- a/pr-preview/pr-945/blog/tags/superfluid-protocol/index.html +++ b/pr-preview/pr-945/blog/tags/superfluid-protocol/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/symphony/index.html b/pr-preview/pr-945/blog/tags/symphony/index.html index b5f1fe45c1d..1e4fe788504 100644 --- a/pr-preview/pr-945/blog/tags/symphony/index.html +++ b/pr-preview/pr-945/blog/tags/symphony/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/technical/index.html b/pr-preview/pr-945/blog/tags/technical/index.html index 11e3679ee09..0a07522d801 100644 --- a/pr-preview/pr-945/blog/tags/technical/index.html +++ b/pr-preview/pr-945/blog/tags/technical/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/technology/index.html b/pr-preview/pr-945/blog/tags/technology/index.html index 7521da31375..b07842a83b6 100644 --- a/pr-preview/pr-945/blog/tags/technology/index.html +++ b/pr-preview/pr-945/blog/tags/technology/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/tge/index.html b/pr-preview/pr-945/blog/tags/tge/index.html index 59027c3865a..7bad9af7144 100644 --- a/pr-preview/pr-945/blog/tags/tge/index.html +++ b/pr-preview/pr-945/blog/tags/tge/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/the-graph/index.html b/pr-preview/pr-945/blog/tags/the-graph/index.html index 613342ccb3a..328c0e06df4 100644 --- a/pr-preview/pr-945/blog/tags/the-graph/index.html +++ b/pr-preview/pr-945/blog/tags/the-graph/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/timeswap/index.html b/pr-preview/pr-945/blog/tags/timeswap/index.html index 617530cc40f..5438cba3dfc 100644 --- a/pr-preview/pr-945/blog/tags/timeswap/index.html +++ b/pr-preview/pr-945/blog/tags/timeswap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/token-economics/index.html b/pr-preview/pr-945/blog/tags/token-economics/index.html index 341fa88b818..bd41a6e91bf 100644 --- a/pr-preview/pr-945/blog/tags/token-economics/index.html +++ b/pr-preview/pr-945/blog/tags/token-economics/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/token-gated/index.html b/pr-preview/pr-945/blog/tags/token-gated/index.html index 47bb79f883d..5b61d9d0302 100644 --- a/pr-preview/pr-945/blog/tags/token-gated/index.html +++ b/pr-preview/pr-945/blog/tags/token-gated/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/token-sale/index.html b/pr-preview/pr-945/blog/tags/token-sale/index.html index 28588b0f5c1..eff46c4e015 100644 --- a/pr-preview/pr-945/blog/tags/token-sale/index.html +++ b/pr-preview/pr-945/blog/tags/token-sale/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/token/index.html b/pr-preview/pr-945/blog/tags/token/index.html index 9806b12aa3a..c73c9085f39 100644 --- a/pr-preview/pr-945/blog/tags/token/index.html +++ b/pr-preview/pr-945/blog/tags/token/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/tokenization/index.html b/pr-preview/pr-945/blog/tags/tokenization/index.html index 638044cd794..7f43a37b6c8 100644 --- a/pr-preview/pr-945/blog/tags/tokenization/index.html +++ b/pr-preview/pr-945/blog/tags/tokenization/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/tokenomics/index.html b/pr-preview/pr-945/blog/tags/tokenomics/index.html index f6c1ddb3ce9..c10eb9ac107 100644 --- a/pr-preview/pr-945/blog/tags/tokenomics/index.html +++ b/pr-preview/pr-945/blog/tags/tokenomics/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/truefi/index.html b/pr-preview/pr-945/blog/tags/truefi/index.html index 6656aca0b56..0b778094591 100644 --- a/pr-preview/pr-945/blog/tags/truefi/index.html +++ b/pr-preview/pr-945/blog/tags/truefi/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/twitter/index.html b/pr-preview/pr-945/blog/tags/twitter/index.html index 5109eded8bb..69836aea017 100644 --- a/pr-preview/pr-945/blog/tags/twitter/index.html +++ b/pr-preview/pr-945/blog/tags/twitter/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/unilend-finance/index.html b/pr-preview/pr-945/blog/tags/unilend-finance/index.html index f498410c63e..17dbb63872e 100644 --- a/pr-preview/pr-945/blog/tags/unilend-finance/index.html +++ b/pr-preview/pr-945/blog/tags/unilend-finance/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/uniswap/index.html b/pr-preview/pr-945/blog/tags/uniswap/index.html index 50502dc839d..497b58dabc9 100644 --- a/pr-preview/pr-945/blog/tags/uniswap/index.html +++ b/pr-preview/pr-945/blog/tags/uniswap/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/universal-apps/index.html b/pr-preview/pr-945/blog/tags/universal-apps/index.html index ab349d9698c..3c6a871b35f 100644 --- a/pr-preview/pr-945/blog/tags/universal-apps/index.html +++ b/pr-preview/pr-945/blog/tags/universal-apps/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/universal-smart-contracts/index.html b/pr-preview/pr-945/blog/tags/universal-smart-contracts/index.html index 11eaadf937a..4e66adc55d2 100644 --- a/pr-preview/pr-945/blog/tags/universal-smart-contracts/index.html +++ b/pr-preview/pr-945/blog/tags/universal-smart-contracts/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/unstoppable-domains/index.html b/pr-preview/pr-945/blog/tags/unstoppable-domains/index.html index 8e4c6c02cf6..d7346e28c68 100644 --- a/pr-preview/pr-945/blog/tags/unstoppable-domains/index.html +++ b/pr-preview/pr-945/blog/tags/unstoppable-domains/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/updates/index.html b/pr-preview/pr-945/blog/tags/updates/index.html index 59e7032334a..3eabf214fd3 100644 --- a/pr-preview/pr-945/blog/tags/updates/index.html +++ b/pr-preview/pr-945/blog/tags/updates/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/ux/index.html b/pr-preview/pr-945/blog/tags/ux/index.html index eb7e5d2b641..4380e7c1db2 100644 --- a/pr-preview/pr-945/blog/tags/ux/index.html +++ b/pr-preview/pr-945/blog/tags/ux/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/video/index.html b/pr-preview/pr-945/blog/tags/video/index.html index c9688c44cd4..41a6e9cf184 100644 --- a/pr-preview/pr-945/blog/tags/video/index.html +++ b/pr-preview/pr-945/blog/tags/video/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/vote/index.html b/pr-preview/pr-945/blog/tags/vote/index.html index eca43c873b7..6908e4efb1f 100644 --- a/pr-preview/pr-945/blog/tags/vote/index.html +++ b/pr-preview/pr-945/blog/tags/vote/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/voting/index.html b/pr-preview/pr-945/blog/tags/voting/index.html index 57bd9ef2649..893a8e7bb57 100644 --- a/pr-preview/pr-945/blog/tags/voting/index.html +++ b/pr-preview/pr-945/blog/tags/voting/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/wallets/index.html b/pr-preview/pr-945/blog/tags/wallets/index.html index b6a335ed6f5..21dc99a7e42 100644 --- a/pr-preview/pr-945/blog/tags/wallets/index.html +++ b/pr-preview/pr-945/blog/tags/wallets/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/wazirx/index.html b/pr-preview/pr-945/blog/tags/wazirx/index.html index 5c48068804a..5e339b36249 100644 --- a/pr-preview/pr-945/blog/tags/wazirx/index.html +++ b/pr-preview/pr-945/blog/tags/wazirx/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3-communication/index.html b/pr-preview/pr-945/blog/tags/web-3-communication/index.html index a56332d7882..ac07911db17 100644 --- a/pr-preview/pr-945/blog/tags/web-3-communication/index.html +++ b/pr-preview/pr-945/blog/tags/web-3-communication/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3-data-analytics/index.html b/pr-preview/pr-945/blog/tags/web-3-data-analytics/index.html index b145759792d..569262f8579 100644 --- a/pr-preview/pr-945/blog/tags/web-3-data-analytics/index.html +++ b/pr-preview/pr-945/blog/tags/web-3-data-analytics/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3-development/index.html b/pr-preview/pr-945/blog/tags/web-3-development/index.html index b42fcd7c312..29804998d09 100644 --- a/pr-preview/pr-945/blog/tags/web-3-development/index.html +++ b/pr-preview/pr-945/blog/tags/web-3-development/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3-game/index.html b/pr-preview/pr-945/blog/tags/web-3-game/index.html index 88252190d78..c6c568b1d61 100644 --- a/pr-preview/pr-945/blog/tags/web-3-game/index.html +++ b/pr-preview/pr-945/blog/tags/web-3-game/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3-notifications/index.html b/pr-preview/pr-945/blog/tags/web-3-notifications/index.html index 1ebcbd73835..efe50655720 100644 --- a/pr-preview/pr-945/blog/tags/web-3-notifications/index.html +++ b/pr-preview/pr-945/blog/tags/web-3-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3-notifs/index.html b/pr-preview/pr-945/blog/tags/web-3-notifs/index.html index ec3984fc7e9..0bb5440641b 100644 --- a/pr-preview/pr-945/blog/tags/web-3-notifs/index.html +++ b/pr-preview/pr-945/blog/tags/web-3-notifs/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3-tools/index.html b/pr-preview/pr-945/blog/tags/web-3-tools/index.html index 542786e2ab5..8213f6b3b4f 100644 --- a/pr-preview/pr-945/blog/tags/web-3-tools/index.html +++ b/pr-preview/pr-945/blog/tags/web-3-tools/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3-ux/index.html b/pr-preview/pr-945/blog/tags/web-3-ux/index.html index 196fbc95d20..61da7d7df2b 100644 --- a/pr-preview/pr-945/blog/tags/web-3-ux/index.html +++ b/pr-preview/pr-945/blog/tags/web-3-ux/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/index.html b/pr-preview/pr-945/blog/tags/web-3/index.html index 07359e02317..ed8adc5903b 100644 --- a/pr-preview/pr-945/blog/tags/web-3/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/10/index.html b/pr-preview/pr-945/blog/tags/web-3/page/10/index.html index e3858413f0c..8ffbd7ad3aa 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/10/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/10/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/11/index.html b/pr-preview/pr-945/blog/tags/web-3/page/11/index.html index 5f236dbfd13..14fdddec960 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/11/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/11/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/12/index.html b/pr-preview/pr-945/blog/tags/web-3/page/12/index.html index b4b3b127e41..a07a3110d33 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/12/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/12/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/13/index.html b/pr-preview/pr-945/blog/tags/web-3/page/13/index.html index 811792dbc1f..d97b07c6738 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/13/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/13/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/14/index.html b/pr-preview/pr-945/blog/tags/web-3/page/14/index.html index 878452209be..eab7d3e8f8d 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/14/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/14/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/15/index.html b/pr-preview/pr-945/blog/tags/web-3/page/15/index.html index d85294d752d..44493eb9e32 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/15/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/15/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/16/index.html b/pr-preview/pr-945/blog/tags/web-3/page/16/index.html index 9815b4bc056..695abaf7a2a 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/16/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/16/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/17/index.html b/pr-preview/pr-945/blog/tags/web-3/page/17/index.html index 725006bf1ca..299acd82d08 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/17/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/17/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/2/index.html b/pr-preview/pr-945/blog/tags/web-3/page/2/index.html index 6f0c238cb31..78343dc0b43 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/2/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/2/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/3/index.html b/pr-preview/pr-945/blog/tags/web-3/page/3/index.html index df2cdae7fb3..112e6d875fc 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/3/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/4/index.html b/pr-preview/pr-945/blog/tags/web-3/page/4/index.html index 719c994ce28..e925180b15f 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/4/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/4/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/5/index.html b/pr-preview/pr-945/blog/tags/web-3/page/5/index.html index dad3569ec53..dc26161d8fc 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/5/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/5/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/6/index.html b/pr-preview/pr-945/blog/tags/web-3/page/6/index.html index f5664900d64..ef30f8e2736 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/6/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/6/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/7/index.html b/pr-preview/pr-945/blog/tags/web-3/page/7/index.html index 051b7bbb044..c4e70874891 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/7/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/7/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/8/index.html b/pr-preview/pr-945/blog/tags/web-3/page/8/index.html index 239a08cfc30..b9c5cf2e3a9 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/8/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/8/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-3/page/9/index.html b/pr-preview/pr-945/blog/tags/web-3/page/9/index.html index 6c7c9a06632..67049b10371 100644 --- a/pr-preview/pr-945/blog/tags/web-3/page/9/index.html +++ b/pr-preview/pr-945/blog/tags/web-3/page/9/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-chat/index.html b/pr-preview/pr-945/blog/tags/web-chat/index.html index e269a6ceda1..d832aaf8156 100644 --- a/pr-preview/pr-945/blog/tags/web-chat/index.html +++ b/pr-preview/pr-945/blog/tags/web-chat/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-grant/index.html b/pr-preview/pr-945/blog/tags/web-grant/index.html index 5917407a410..bf624651328 100644 --- a/pr-preview/pr-945/blog/tags/web-grant/index.html +++ b/pr-preview/pr-945/blog/tags/web-grant/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/web-tools/index.html b/pr-preview/pr-945/blog/tags/web-tools/index.html index c32ac708740..5e4c4d04434 100644 --- a/pr-preview/pr-945/blog/tags/web-tools/index.html +++ b/pr-preview/pr-945/blog/tags/web-tools/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/whitelist/index.html b/pr-preview/pr-945/blog/tags/whitelist/index.html index 471c70c61f4..51ea5519099 100644 --- a/pr-preview/pr-945/blog/tags/whitelist/index.html +++ b/pr-preview/pr-945/blog/tags/whitelist/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/workshop/index.html b/pr-preview/pr-945/blog/tags/workshop/index.html index 495d3685ee7..cf50a0475c5 100644 --- a/pr-preview/pr-945/blog/tags/workshop/index.html +++ b/pr-preview/pr-945/blog/tags/workshop/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/yam-finance/index.html b/pr-preview/pr-945/blog/tags/yam-finance/index.html index 0d124f1bdf7..293605279c0 100644 --- a/pr-preview/pr-945/blog/tags/yam-finance/index.html +++ b/pr-preview/pr-945/blog/tags/yam-finance/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/year-in-review/index.html b/pr-preview/pr-945/blog/tags/year-in-review/index.html index a1779e93f39..637d5aa4eb5 100644 --- a/pr-preview/pr-945/blog/tags/year-in-review/index.html +++ b/pr-preview/pr-945/blog/tags/year-in-review/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/yield-farming/index.html b/pr-preview/pr-945/blog/tags/yield-farming/index.html index 6fe47b995fd..10d6b89cab1 100644 --- a/pr-preview/pr-945/blog/tags/yield-farming/index.html +++ b/pr-preview/pr-945/blog/tags/yield-farming/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/you-tube/index.html b/pr-preview/pr-945/blog/tags/you-tube/index.html index 0f6183fadb2..187ccde09b3 100644 --- a/pr-preview/pr-945/blog/tags/you-tube/index.html +++ b/pr-preview/pr-945/blog/tags/you-tube/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/zebpay/index.html b/pr-preview/pr-945/blog/tags/zebpay/index.html index effd8015b02..ae887bdded6 100644 --- a/pr-preview/pr-945/blog/tags/zebpay/index.html +++ b/pr-preview/pr-945/blog/tags/zebpay/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/tags/zkrollup/index.html b/pr-preview/pr-945/blog/tags/zkrollup/index.html index 04cd5b9c1ab..71bc272b52f 100644 --- a/pr-preview/pr-945/blog/tags/zkrollup/index.html +++ b/pr-preview/pr-945/blog/tags/zkrollup/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/taking-dao-communication-to-new-heights-push-x-aragon/index.html b/pr-preview/pr-945/blog/taking-dao-communication-to-new-heights-push-x-aragon/index.html index 0c27ad47b22..a197c6cda26 100644 --- a/pr-preview/pr-945/blog/taking-dao-communication-to-new-heights-push-x-aragon/index.html +++ b/pr-preview/pr-945/blog/taking-dao-communication-to-new-heights-push-x-aragon/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/telegram-quiz-contest/index.html b/pr-preview/pr-945/blog/telegram-quiz-contest/index.html index 2747856c6f1..89ef315a7be 100644 --- a/pr-preview/pr-945/blog/telegram-quiz-contest/index.html +++ b/pr-preview/pr-945/blog/telegram-quiz-contest/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/the-all-new-epns-dapp-ui/index.html b/pr-preview/pr-945/blog/the-all-new-epns-dapp-ui/index.html index bf9196f3557..8e947da8310 100644 --- a/pr-preview/pr-945/blog/the-all-new-epns-dapp-ui/index.html +++ b/pr-preview/pr-945/blog/the-all-new-epns-dapp-ui/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/the-developer-guide-to-enabling/index.html b/pr-preview/pr-945/blog/the-developer-guide-to-enabling/index.html index 79545fb92f7..48c11f0da48 100644 --- a/pr-preview/pr-945/blog/the-developer-guide-to-enabling/index.html +++ b/pr-preview/pr-945/blog/the-developer-guide-to-enabling/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/the-epns-mainnet-is-here/index.html b/pr-preview/pr-945/blog/the-epns-mainnet-is-here/index.html index 2879ac8a04f..c36b1ee4995 100644 --- a/pr-preview/pr-945/blog/the-epns-mainnet-is-here/index.html +++ b/pr-preview/pr-945/blog/the-epns-mainnet-is-here/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/the-first-nft-collection-from-epns/index.html b/pr-preview/pr-945/blog/the-first-nft-collection-from-epns/index.html index 24b2a805c5f..0729693fa57 100644 --- a/pr-preview/pr-945/blog/the-first-nft-collection-from-epns/index.html +++ b/pr-preview/pr-945/blog/the-first-nft-collection-from-epns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/the-rise-of-chains-and-fall-of-ux-in-web3-ux/index.html b/pr-preview/pr-945/blog/the-rise-of-chains-and-fall-of-ux-in-web3-ux/index.html index a1176c0be6e..b0c58a2842a 100644 --- a/pr-preview/pr-945/blog/the-rise-of-chains-and-fall-of-ux-in-web3-ux/index.html +++ b/pr-preview/pr-945/blog/the-rise-of-chains-and-fall-of-ux-in-web3-ux/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/the-role-of-randomness-in-push-nodes/index.html b/pr-preview/pr-945/blog/the-role-of-randomness-in-push-nodes/index.html index 40ed95da1c4..e3e49d25802 100644 --- a/pr-preview/pr-945/blog/the-role-of-randomness-in-push-nodes/index.html +++ b/pr-preview/pr-945/blog/the-role-of-randomness-in-push-nodes/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/the-wind-behind-epns/index.html b/pr-preview/pr-945/blog/the-wind-behind-epns/index.html index e88ff30497b..c48a71144fd 100644 --- a/pr-preview/pr-945/blog/the-wind-behind-epns/index.html +++ b/pr-preview/pr-945/blog/the-wind-behind-epns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/timeswap-partners-with-epns/index.html b/pr-preview/pr-945/blog/timeswap-partners-with-epns/index.html index faabb131788..d4befb9e741 100644 --- a/pr-preview/pr-945/blog/timeswap-partners-with-epns/index.html +++ b/pr-preview/pr-945/blog/timeswap-partners-with-epns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/token-gated-channel-for-our-rockstar-community/index.html b/pr-preview/pr-945/blog/token-gated-channel-for-our-rockstar-community/index.html index 1e321f1e6df..ef4da3398d9 100644 --- a/pr-preview/pr-945/blog/token-gated-channel-for-our-rockstar-community/index.html +++ b/pr-preview/pr-945/blog/token-gated-channel-for-our-rockstar-community/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/token-gated-group-chats/index.html b/pr-preview/pr-945/blog/token-gated-group-chats/index.html index 455333b6404..b8d4e557286 100644 --- a/pr-preview/pr-945/blog/token-gated-group-chats/index.html +++ b/pr-preview/pr-945/blog/token-gated-group-chats/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/transforming-decentralized-communication-with-push-and-ai/index.html b/pr-preview/pr-945/blog/transforming-decentralized-communication-with-push-and-ai/index.html index a692dc5c5ef..4d2efbdc3e1 100644 --- a/pr-preview/pr-945/blog/transforming-decentralized-communication-with-push-and-ai/index.html +++ b/pr-preview/pr-945/blog/transforming-decentralized-communication-with-push-and-ai/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/truefi-taking-defi-to-new/index.html b/pr-preview/pr-945/blog/truefi-taking-defi-to-new/index.html index 87741c3d3b2..ebc78e7f802 100644 --- a/pr-preview/pr-945/blog/truefi-taking-defi-to-new/index.html +++ b/pr-preview/pr-945/blog/truefi-taking-defi-to-new/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/understand-proof-of-stake-and-push-chain/index.html b/pr-preview/pr-945/blog/understand-proof-of-stake-and-push-chain/index.html index cbb54dee70c..b2751451ce6 100644 --- a/pr-preview/pr-945/blog/understand-proof-of-stake-and-push-chain/index.html +++ b/pr-preview/pr-945/blog/understand-proof-of-stake-and-push-chain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/understanding-delivery-nodes/index.html b/pr-preview/pr-945/blog/understanding-delivery-nodes/index.html index 46d5bec3a5c..736df882519 100644 --- a/pr-preview/pr-945/blog/understanding-delivery-nodes/index.html +++ b/pr-preview/pr-945/blog/understanding-delivery-nodes/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/understanding-nfts/index.html b/pr-preview/pr-945/blog/understanding-nfts/index.html index a501c044e0f..36d18af9f48 100644 --- a/pr-preview/pr-945/blog/understanding-nfts/index.html +++ b/pr-preview/pr-945/blog/understanding-nfts/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/unleashing-a-new-era-of-social-networking-push-x-soclly/index.html b/pr-preview/pr-945/blog/unleashing-a-new-era-of-social-networking-push-x-soclly/index.html index 956c95a028a..94597add47a 100644 --- a/pr-preview/pr-945/blog/unleashing-a-new-era-of-social-networking-push-x-soclly/index.html +++ b/pr-preview/pr-945/blog/unleashing-a-new-era-of-social-networking-push-x-soclly/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/unlocking-the-full-potential-of-push-a-look-at-push-token-utility/index.html b/pr-preview/pr-945/blog/unlocking-the-full-potential-of-push-a-look-at-push-token-utility/index.html index 741883ba2af..a7a422bb48f 100644 --- a/pr-preview/pr-945/blog/unlocking-the-full-potential-of-push-a-look-at-push-token-utility/index.html +++ b/pr-preview/pr-945/blog/unlocking-the-full-potential-of-push-a-look-at-push-token-utility/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/vamos-latam-fam/index.html b/pr-preview/pr-945/blog/vamos-latam-fam/index.html index 92f4fa6ff39..76984673b31 100644 --- a/pr-preview/pr-945/blog/vamos-latam-fam/index.html +++ b/pr-preview/pr-945/blog/vamos-latam-fam/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/we-alpha-homora-innovations/index.html b/pr-preview/pr-945/blog/we-alpha-homora-innovations/index.html index 9b30e2da15e..8e0a98ff6e4 100644 --- a/pr-preview/pr-945/blog/we-alpha-homora-innovations/index.html +++ b/pr-preview/pr-945/blog/we-alpha-homora-innovations/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/web3-and-push-protocol-through-the-lens-of-first-principle-thinking/index.html b/pr-preview/pr-945/blog/web3-and-push-protocol-through-the-lens-of-first-principle-thinking/index.html index ec293e81d48..18add47fa76 100644 --- a/pr-preview/pr-945/blog/web3-and-push-protocol-through-the-lens-of-first-principle-thinking/index.html +++ b/pr-preview/pr-945/blog/web3-and-push-protocol-through-the-lens-of-first-principle-thinking/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/web3-ultimate-communication-layer/index.html b/pr-preview/pr-945/blog/web3-ultimate-communication-layer/index.html index 89079be9e2c..719b1d8411f 100644 --- a/pr-preview/pr-945/blog/web3-ultimate-communication-layer/index.html +++ b/pr-preview/pr-945/blog/web3-ultimate-communication-layer/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/welcome-on-board-defi-dad/index.html b/pr-preview/pr-945/blog/welcome-on-board-defi-dad/index.html index 5dfb4790c61..32f89d718a5 100644 --- a/pr-preview/pr-945/blog/welcome-on-board-defi-dad/index.html +++ b/pr-preview/pr-945/blog/welcome-on-board-defi-dad/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/welcome-on-board-nischal/index.html b/pr-preview/pr-945/blog/welcome-on-board-nischal/index.html index 8655a163eeb..98f93a062a4 100644 --- a/pr-preview/pr-945/blog/welcome-on-board-nischal/index.html +++ b/pr-preview/pr-945/blog/welcome-on-board-nischal/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/welcome-on-board-sandeep/index.html b/pr-preview/pr-945/blog/welcome-on-board-sandeep/index.html index 153b42ed810..65d880693b7 100644 --- a/pr-preview/pr-945/blog/welcome-on-board-sandeep/index.html +++ b/pr-preview/pr-945/blog/welcome-on-board-sandeep/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/welcome-on-board-vivek/index.html b/pr-preview/pr-945/blog/welcome-on-board-vivek/index.html index 210b02bab18..89bbb6055a5 100644 --- a/pr-preview/pr-945/blog/welcome-on-board-vivek/index.html +++ b/pr-preview/pr-945/blog/welcome-on-board-vivek/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/were-still-pushing-a-deeper-look-into-push-chat/index.html b/pr-preview/pr-945/blog/were-still-pushing-a-deeper-look-into-push-chat/index.html index c6339ca12c5..dd0c4261010 100644 --- a/pr-preview/pr-945/blog/were-still-pushing-a-deeper-look-into-push-chat/index.html +++ b/pr-preview/pr-945/blog/were-still-pushing-a-deeper-look-into-push-chat/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/what-is-consumer-crypto-and-why-does-it-matter/index.html b/pr-preview/pr-945/blog/what-is-consumer-crypto-and-why-does-it-matter/index.html index 7b2f6dae1bc..7768e780af6 100644 --- a/pr-preview/pr-945/blog/what-is-consumer-crypto-and-why-does-it-matter/index.html +++ b/pr-preview/pr-945/blog/what-is-consumer-crypto-and-why-does-it-matter/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/what-is-decentralized-social-media/index.html b/pr-preview/pr-945/blog/what-is-decentralized-social-media/index.html index 387e6f2145a..301b1424cb7 100644 --- a/pr-preview/pr-945/blog/what-is-decentralized-social-media/index.html +++ b/pr-preview/pr-945/blog/what-is-decentralized-social-media/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/what-is-eip-1559/index.html b/pr-preview/pr-945/blog/what-is-eip-1559/index.html index 35dd3e3a7ae..b1856e1f289 100644 --- a/pr-preview/pr-945/blog/what-is-eip-1559/index.html +++ b/pr-preview/pr-945/blog/what-is-eip-1559/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/what-is-erc-6551-and-how-s-it-better-than-erc-721/index.html b/pr-preview/pr-945/blog/what-is-erc-6551-and-how-s-it-better-than-erc-721/index.html index 9187bec5a40..0246a18d552 100644 --- a/pr-preview/pr-945/blog/what-is-erc-6551-and-how-s-it-better-than-erc-721/index.html +++ b/pr-preview/pr-945/blog/what-is-erc-6551-and-how-s-it-better-than-erc-721/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/why-engaging-with-users-within-the-nft-verse-matters/index.html b/pr-preview/pr-945/blog/why-engaging-with-users-within-the-nft-verse-matters/index.html index 73a9325c236..dbaed7d9a14 100644 --- a/pr-preview/pr-945/blog/why-engaging-with-users-within-the-nft-verse-matters/index.html +++ b/pr-preview/pr-945/blog/why-engaging-with-users-within-the-nft-verse-matters/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/why-game-theory-is-the-most-important/index.html b/pr-preview/pr-945/blog/why-game-theory-is-the-most-important/index.html index 5284ca2ed62..5333d21a8b1 100644 --- a/pr-preview/pr-945/blog/why-game-theory-is-the-most-important/index.html +++ b/pr-preview/pr-945/blog/why-game-theory-is-the-most-important/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/why-onchain-push-notifications-matter/index.html b/pr-preview/pr-945/blog/why-onchain-push-notifications-matter/index.html index 66ea9fb912c..96eeb249684 100644 --- a/pr-preview/pr-945/blog/why-onchain-push-notifications-matter/index.html +++ b/pr-preview/pr-945/blog/why-onchain-push-notifications-matter/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/why-push-chain/index.html b/pr-preview/pr-945/blog/why-push-chain/index.html index 62cb4d150bc..45a3ee17f08 100644 --- a/pr-preview/pr-945/blog/why-push-chain/index.html +++ b/pr-preview/pr-945/blog/why-push-chain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/win-win-for-users-of-pooltogether-and-epns/index.html b/pr-preview/pr-945/blog/win-win-for-users-of-pooltogether-and-epns/index.html index 6d8ddda1296..7acc48a6505 100644 --- a/pr-preview/pr-945/blog/win-win-for-users-of-pooltogether-and-epns/index.html +++ b/pr-preview/pr-945/blog/win-win-for-users-of-pooltogether-and-epns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/wrapping-up-rockstars-of-epns-nft-drops/index.html b/pr-preview/pr-945/blog/wrapping-up-rockstars-of-epns-nft-drops/index.html index c6f5dc9edca..af9af63085a 100644 --- a/pr-preview/pr-945/blog/wrapping-up-rockstars-of-epns-nft-drops/index.html +++ b/pr-preview/pr-945/blog/wrapping-up-rockstars-of-epns-nft-drops/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/blog/zebpay-epns-rockstar/index.html b/pr-preview/pr-945/blog/zebpay-epns-rockstar/index.html index 7b4e8807e89..a363578dbc3 100644 --- a/pr-preview/pr-945/blog/zebpay-epns-rockstar/index.html +++ b/pr-preview/pr-945/blog/zebpay-epns-rockstar/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/bootcamp/index.html b/pr-preview/pr-945/bootcamp/index.html index 23372fbba79..b1bd5d307b5 100644 --- a/pr-preview/pr-945/bootcamp/index.html +++ b/pr-preview/pr-945/bootcamp/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/brb/index.html b/pr-preview/pr-945/brb/index.html index 6a13cb88360..6f4f3387c03 100644 --- a/pr-preview/pr-945/brb/index.html +++ b/pr-preview/pr-945/brb/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/chain/index.html b/pr-preview/pr-945/chain/index.html index e61beeb9618..8bc00fa2f4b 100644 --- a/pr-preview/pr-945/chain/index.html +++ b/pr-preview/pr-945/chain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/chain/knowledge/%5Bslug%5D/index.html b/pr-preview/pr-945/chain/knowledge/%5Bslug%5D/index.html index 912ed29e776..b0dd35e1d9a 100644 --- a/pr-preview/pr-945/chain/knowledge/%5Bslug%5D/index.html +++ b/pr-preview/pr-945/chain/knowledge/%5Bslug%5D/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/chain/knowledge/consumer-apps-that-can-be-built-on-push-chain/index.html b/pr-preview/pr-945/chain/knowledge/consumer-apps-that-can-be-built-on-push-chain/index.html index 426b118b95f..3aa13317130 100644 --- a/pr-preview/pr-945/chain/knowledge/consumer-apps-that-can-be-built-on-push-chain/index.html +++ b/pr-preview/pr-945/chain/knowledge/consumer-apps-that-can-be-built-on-push-chain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/chain/knowledge/faq-push-chain/index.html b/pr-preview/pr-945/chain/knowledge/faq-push-chain/index.html index 4fe187890d1..00abbb9d02f 100644 --- a/pr-preview/pr-945/chain/knowledge/faq-push-chain/index.html +++ b/pr-preview/pr-945/chain/knowledge/faq-push-chain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/chain/knowledge/index.html b/pr-preview/pr-945/chain/knowledge/index.html index afc7f1fb5c2..41224d3fb20 100644 --- a/pr-preview/pr-945/chain/knowledge/index.html +++ b/pr-preview/pr-945/chain/knowledge/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/chain/knowledge/parallel-validators-and-dynamic-sharding/index.html b/pr-preview/pr-945/chain/knowledge/parallel-validators-and-dynamic-sharding/index.html index d261388844a..823c66d1abb 100644 --- a/pr-preview/pr-945/chain/knowledge/parallel-validators-and-dynamic-sharding/index.html +++ b/pr-preview/pr-945/chain/knowledge/parallel-validators-and-dynamic-sharding/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/chain/knowledge/randomized-node-selection-push-chain/index.html b/pr-preview/pr-945/chain/knowledge/randomized-node-selection-push-chain/index.html index 1e6021dff1a..6abd02e794b 100644 --- a/pr-preview/pr-945/chain/knowledge/randomized-node-selection-push-chain/index.html +++ b/pr-preview/pr-945/chain/knowledge/randomized-node-selection-push-chain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/chain/knowledge/understand-proof-of-stake-and-push-chain/index.html b/pr-preview/pr-945/chain/knowledge/understand-proof-of-stake-and-push-chain/index.html index 36cdbc1a215..8099f9cc0ce 100644 --- a/pr-preview/pr-945/chain/knowledge/understand-proof-of-stake-and-push-chain/index.html +++ b/pr-preview/pr-945/chain/knowledge/understand-proof-of-stake-and-push-chain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/chain/knowledge/why-push-chain/index.html b/pr-preview/pr-945/chain/knowledge/why-push-chain/index.html index 336316521e4..c4f0e70831d 100644 --- a/pr-preview/pr-945/chain/knowledge/why-push-chain/index.html +++ b/pr-preview/pr-945/chain/knowledge/why-push-chain/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/cheatsheet/index.html b/pr-preview/pr-945/cheatsheet/index.html index 0013c4ebed4..1d58a75b2f3 100644 --- a/pr-preview/pr-945/cheatsheet/index.html +++ b/pr-preview/pr-945/cheatsheet/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/build-wallet-tracker/index.html b/pr-preview/pr-945/docs/build-wallet-tracker/index.html index 61df79efb05..ba9e8f22528 100644 --- a/pr-preview/pr-945/docs/build-wallet-tracker/index.html +++ b/pr-preview/pr-945/docs/build-wallet-tracker/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/build/all-api-calls/index.html b/pr-preview/pr-945/docs/chat/build/all-api-calls/index.html index cc7c2ea07da..b223b4bd253 100644 --- a/pr-preview/pr-945/docs/chat/build/all-api-calls/index.html +++ b/pr-preview/pr-945/docs/chat/build/all-api-calls/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/build/chat-requests/index.html b/pr-preview/pr-945/docs/chat/build/chat-requests/index.html index 2339766b4e1..1f37ee9a8e6 100644 --- a/pr-preview/pr-945/docs/chat/build/chat-requests/index.html +++ b/pr-preview/pr-945/docs/chat/build/chat-requests/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/build/conditional-rules-for-group/index.html b/pr-preview/pr-945/docs/chat/build/conditional-rules-for-group/index.html index f69dd484b2e..76ccccba389 100644 --- a/pr-preview/pr-945/docs/chat/build/conditional-rules-for-group/index.html +++ b/pr-preview/pr-945/docs/chat/build/conditional-rules-for-group/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/build/create-group/index.html b/pr-preview/pr-945/docs/chat/build/create-group/index.html index 2e4df62d499..03ea4f86ed7 100644 --- a/pr-preview/pr-945/docs/chat/build/create-group/index.html +++ b/pr-preview/pr-945/docs/chat/build/create-group/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/build/fetch-chats/index.html b/pr-preview/pr-945/docs/chat/build/fetch-chats/index.html index 316bcf38f18..805ab3969d8 100644 --- a/pr-preview/pr-945/docs/chat/build/fetch-chats/index.html +++ b/pr-preview/pr-945/docs/chat/build/fetch-chats/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/build/get-started/index.html b/pr-preview/pr-945/docs/chat/build/get-started/index.html index 5be6a69acbe..170f4b9b8d8 100644 --- a/pr-preview/pr-945/docs/chat/build/get-started/index.html +++ b/pr-preview/pr-945/docs/chat/build/get-started/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/build/group-permissions/index.html b/pr-preview/pr-945/docs/chat/build/group-permissions/index.html index 75d74d6b322..cb6a2376267 100644 --- a/pr-preview/pr-945/docs/chat/build/group-permissions/index.html +++ b/pr-preview/pr-945/docs/chat/build/group-permissions/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/build/group-requests/index.html b/pr-preview/pr-945/docs/chat/build/group-requests/index.html index 07752467e9d..1d4b8543e28 100644 --- a/pr-preview/pr-945/docs/chat/build/group-requests/index.html +++ b/pr-preview/pr-945/docs/chat/build/group-requests/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/build/index.html b/pr-preview/pr-945/docs/chat/build/index.html index 4381ac4595c..c77adb3df50 100644 --- a/pr-preview/pr-945/docs/chat/build/index.html +++ b/pr-preview/pr-945/docs/chat/build/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/build/initialize-user/index.html b/pr-preview/pr-945/docs/chat/build/initialize-user/index.html index 16c72d6214a..f016d208f62 100644 --- a/pr-preview/pr-945/docs/chat/build/initialize-user/index.html +++ b/pr-preview/pr-945/docs/chat/build/initialize-user/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/build/manage-group/index.html b/pr-preview/pr-945/docs/chat/build/manage-group/index.html index e7a566ef44d..74449679bbb 100644 --- a/pr-preview/pr-945/docs/chat/build/manage-group/index.html +++ b/pr-preview/pr-945/docs/chat/build/manage-group/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/build/manage-user/index.html b/pr-preview/pr-945/docs/chat/build/manage-user/index.html index 637f131f195..49b4eda824f 100644 --- a/pr-preview/pr-945/docs/chat/build/manage-user/index.html +++ b/pr-preview/pr-945/docs/chat/build/manage-user/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/build/send-message/index.html b/pr-preview/pr-945/docs/chat/build/send-message/index.html index 816021f0638..78805df5428 100644 --- a/pr-preview/pr-945/docs/chat/build/send-message/index.html +++ b/pr-preview/pr-945/docs/chat/build/send-message/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/build/stream-chat/index.html b/pr-preview/pr-945/docs/chat/build/stream-chat/index.html index be4d46cb516..13dd26ecadc 100644 --- a/pr-preview/pr-945/docs/chat/build/stream-chat/index.html +++ b/pr-preview/pr-945/docs/chat/build/stream-chat/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/concepts/encryption-version-in-push-chat/index.html b/pr-preview/pr-945/docs/chat/concepts/encryption-version-in-push-chat/index.html index e4e46536f30..11ba97413d8 100644 --- a/pr-preview/pr-945/docs/chat/concepts/encryption-version-in-push-chat/index.html +++ b/pr-preview/pr-945/docs/chat/concepts/encryption-version-in-push-chat/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/concepts/index.html b/pr-preview/pr-945/docs/chat/concepts/index.html index 7a773c2e96b..a91d30c1cd2 100644 --- a/pr-preview/pr-945/docs/chat/concepts/index.html +++ b/pr-preview/pr-945/docs/chat/concepts/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/concepts/push-chat-architecture/index.html b/pr-preview/pr-945/docs/chat/concepts/push-chat-architecture/index.html index 88c04766f82..c598bc8f46e 100644 --- a/pr-preview/pr-945/docs/chat/concepts/push-chat-architecture/index.html +++ b/pr-preview/pr-945/docs/chat/concepts/push-chat-architecture/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/index.html b/pr-preview/pr-945/docs/chat/index.html index 0780a605ffa..780803c1860 100644 --- a/pr-preview/pr-945/docs/chat/index.html +++ b/pr-preview/pr-945/docs/chat/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/message-types/file/index.html b/pr-preview/pr-945/docs/chat/message-types/file/index.html index 25828b95b02..a7742836882 100644 --- a/pr-preview/pr-945/docs/chat/message-types/file/index.html +++ b/pr-preview/pr-945/docs/chat/message-types/file/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/message-types/image/index.html b/pr-preview/pr-945/docs/chat/message-types/image/index.html index eb30c9a1a6a..9c42913a851 100644 --- a/pr-preview/pr-945/docs/chat/message-types/image/index.html +++ b/pr-preview/pr-945/docs/chat/message-types/image/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/message-types/index.html b/pr-preview/pr-945/docs/chat/message-types/index.html index abcf895ab7b..978faf68f83 100644 --- a/pr-preview/pr-945/docs/chat/message-types/index.html +++ b/pr-preview/pr-945/docs/chat/message-types/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/message-types/media-embed/index.html b/pr-preview/pr-945/docs/chat/message-types/media-embed/index.html index 495cf288dc8..18a984c6975 100644 --- a/pr-preview/pr-945/docs/chat/message-types/media-embed/index.html +++ b/pr-preview/pr-945/docs/chat/message-types/media-embed/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/message-types/meta/index.html b/pr-preview/pr-945/docs/chat/message-types/meta/index.html index f97bff53a56..e367e27826a 100644 --- a/pr-preview/pr-945/docs/chat/message-types/meta/index.html +++ b/pr-preview/pr-945/docs/chat/message-types/meta/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/message-types/reaction/index.html b/pr-preview/pr-945/docs/chat/message-types/reaction/index.html index 6e05e6436e1..a663b546789 100644 --- a/pr-preview/pr-945/docs/chat/message-types/reaction/index.html +++ b/pr-preview/pr-945/docs/chat/message-types/reaction/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/message-types/text/index.html b/pr-preview/pr-945/docs/chat/message-types/text/index.html index dcacc27e832..f80c3bbb09e 100644 --- a/pr-preview/pr-945/docs/chat/message-types/text/index.html +++ b/pr-preview/pr-945/docs/chat/message-types/text/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/playground/index.html b/pr-preview/pr-945/docs/chat/playground/index.html index dee776d19b2..1e86ed254d8 100644 --- a/pr-preview/pr-945/docs/chat/playground/index.html +++ b/pr-preview/pr-945/docs/chat/playground/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/playground/push-react-component-playground-example/index.html b/pr-preview/pr-945/docs/chat/playground/push-react-component-playground-example/index.html index 1e259617645..e81d4b1a924 100644 --- a/pr-preview/pr-945/docs/chat/playground/push-react-component-playground-example/index.html +++ b/pr-preview/pr-945/docs/chat/playground/push-react-component-playground-example/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/playground/push-sdk-playground/index.html b/pr-preview/pr-945/docs/chat/playground/push-sdk-playground/index.html index dc16659aa7f..5cab904513c 100644 --- a/pr-preview/pr-945/docs/chat/playground/push-sdk-playground/index.html +++ b/pr-preview/pr-945/docs/chat/playground/push-sdk-playground/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/quickstart/index.html b/pr-preview/pr-945/docs/chat/quickstart/index.html index bc6b751c014..f6ce5b5fcac 100644 --- a/pr-preview/pr-945/docs/chat/quickstart/index.html +++ b/pr-preview/pr-945/docs/chat/quickstart/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/supported-wallet-standards/index.html b/pr-preview/pr-945/docs/chat/supported-wallet-standards/index.html index 31c60cb53d5..075ed9251dd 100644 --- a/pr-preview/pr-945/docs/chat/supported-wallet-standards/index.html +++ b/pr-preview/pr-945/docs/chat/supported-wallet-standards/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatpreview-component/index.html b/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatpreview-component/index.html index 4458ce820af..de555dc53ae 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatpreview-component/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatpreview-component/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatpreviewlist-component/index.html b/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatpreviewlist-component/index.html index 6ba3d717616..1090cf645ef 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatpreviewlist-component/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatpreviewlist-component/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatprofile-component/index.html b/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatprofile-component/index.html index 025200a0347..429dc339152 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatprofile-component/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatprofile-component/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatuiprovider/index.html b/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatuiprovider/index.html index e08ddac2185..a371ded7a3f 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatuiprovider/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatuiprovider/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatview-component/index.html b/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatview-component/index.html index f53c55015f7..552988760b7 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatview-component/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatview-component/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatviewbubble-component/index.html b/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatviewbubble-component/index.html index 387038d5bca..6f176e0c60a 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatviewbubble-component/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatviewbubble-component/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatviewlist-component/index.html b/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatviewlist-component/index.html index 962e3b4815f..f14063fdb67 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatviewlist-component/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/Advanced/chatviewlist-component/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/Advanced/creategroupmodal-component/index.html b/pr-preview/pr-945/docs/chat/ui-components/Advanced/creategroupmodal-component/index.html index 8c173604855..214718d5f87 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/Advanced/creategroupmodal-component/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/Advanced/creategroupmodal-component/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/Advanced/messageinput-component/index.html b/pr-preview/pr-945/docs/chat/ui-components/Advanced/messageinput-component/index.html index b021e4ff3f0..a2cd5b48aec 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/Advanced/messageinput-component/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/Advanced/messageinput-component/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/Advanced/themization/index.html b/pr-preview/pr-945/docs/chat/ui-components/Advanced/themization/index.html index cb0c99886a3..cdfd5159e20 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/Advanced/themization/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/Advanced/themization/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/Advanced/userprofile-component/index.html b/pr-preview/pr-945/docs/chat/ui-components/Advanced/userprofile-component/index.html index d1ff73e9f7d..f7de8bc1c78 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/Advanced/userprofile-component/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/Advanced/userprofile-component/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/index.html b/pr-preview/pr-945/docs/chat/ui-components/index.html index 8c4007cf0a9..6e431448d33 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/integrate-chat-widget/index.html b/pr-preview/pr-945/docs/chat/ui-components/integrate-chat-widget/index.html index f61b19f559b..c026273b491 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/integrate-chat-widget/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/integrate-chat-widget/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/integrate-push-chat/index.html b/pr-preview/pr-945/docs/chat/ui-components/integrate-push-chat/index.html index 6202f1f6fb9..c83114003ce 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/integrate-push-chat/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/integrate-push-chat/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/chat/ui-components/integrate-support-bot/index.html b/pr-preview/pr-945/docs/chat/ui-components/integrate-support-bot/index.html index 1a5ae1034cb..d99df2752af 100644 --- a/pr-preview/pr-945/docs/chat/ui-components/integrate-support-bot/index.html +++ b/pr-preview/pr-945/docs/chat/ui-components/integrate-support-bot/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-contribute-further/index.html b/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-contribute-further/index.html index 3e9edfbb1d9..325916eff47 100644 --- a/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-contribute-further/index.html +++ b/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-contribute-further/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-push-ambassadors-program/index.html b/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-push-ambassadors-program/index.html index 3f582f56db4..49f5d323658 100644 --- a/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-push-ambassadors-program/index.html +++ b/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-push-ambassadors-program/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-push-bug-bounty-program/index.html b/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-push-bug-bounty-program/index.html index f123f764886..dffce486a1e 100644 --- a/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-push-bug-bounty-program/index.html +++ b/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-push-bug-bounty-program/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-push-grants/index.html b/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-push-grants/index.html index cd61de057b1..ad17d4006fd 100644 --- a/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-push-grants/index.html +++ b/pr-preview/pr-945/docs/dao/contribute-to-push-dao/contribute-push-grants/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/contribute-to-push-dao/push-missions/index.html b/pr-preview/pr-945/docs/dao/contribute-to-push-dao/push-missions/index.html index a9263eceaf3..0bb1fa9fff2 100644 --- a/pr-preview/pr-945/docs/dao/contribute-to-push-dao/push-missions/index.html +++ b/pr-preview/pr-945/docs/dao/contribute-to-push-dao/push-missions/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/contribute/index.html b/pr-preview/pr-945/docs/dao/contribute/index.html index fd700e0a17e..bc1199019a0 100644 --- a/pr-preview/pr-945/docs/dao/contribute/index.html +++ b/pr-preview/pr-945/docs/dao/contribute/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/governance/game-theory/index.html b/pr-preview/pr-945/docs/dao/governance/game-theory/index.html index 27c4fb2e3c3..266af2eccc5 100644 --- a/pr-preview/pr-945/docs/dao/governance/game-theory/index.html +++ b/pr-preview/pr-945/docs/dao/governance/game-theory/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/governance/getting-involved/index.html b/pr-preview/pr-945/docs/dao/governance/getting-involved/index.html index 4570b101504..c6ad3d76e2b 100644 --- a/pr-preview/pr-945/docs/dao/governance/getting-involved/index.html +++ b/pr-preview/pr-945/docs/dao/governance/getting-involved/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/governance/governance-process/index.html b/pr-preview/pr-945/docs/dao/governance/governance-process/index.html index 55b891ba948..386d5616284 100644 --- a/pr-preview/pr-945/docs/dao/governance/governance-process/index.html +++ b/pr-preview/pr-945/docs/dao/governance/governance-process/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/governance/index.html b/pr-preview/pr-945/docs/dao/governance/index.html index 2c559bd0800..049f581bfd1 100644 --- a/pr-preview/pr-945/docs/dao/governance/index.html +++ b/pr-preview/pr-945/docs/dao/governance/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/governance/introduction-to-push-governance/index.html b/pr-preview/pr-945/docs/dao/governance/introduction-to-push-governance/index.html index 3898b31f066..4f0ec865ba4 100644 --- a/pr-preview/pr-945/docs/dao/governance/introduction-to-push-governance/index.html +++ b/pr-preview/pr-945/docs/dao/governance/introduction-to-push-governance/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/governance/the-discussion-phase/index.html b/pr-preview/pr-945/docs/dao/governance/the-discussion-phase/index.html index c8018991c56..78ae327fcd7 100644 --- a/pr-preview/pr-945/docs/dao/governance/the-discussion-phase/index.html +++ b/pr-preview/pr-945/docs/dao/governance/the-discussion-phase/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/governance/the-governance-phase/index.html b/pr-preview/pr-945/docs/dao/governance/the-governance-phase/index.html index ee297509bd6..34b1fd30d55 100644 --- a/pr-preview/pr-945/docs/dao/governance/the-governance-phase/index.html +++ b/pr-preview/pr-945/docs/dao/governance/the-governance-phase/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/governance/the-proposal-phase/index.html b/pr-preview/pr-945/docs/dao/governance/the-proposal-phase/index.html index fb6397975fb..293c06ec4bc 100644 --- a/pr-preview/pr-945/docs/dao/governance/the-proposal-phase/index.html +++ b/pr-preview/pr-945/docs/dao/governance/the-proposal-phase/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/index.html b/pr-preview/pr-945/docs/dao/index.html index 50b655b6790..6922b9cbacd 100644 --- a/pr-preview/pr-945/docs/dao/index.html +++ b/pr-preview/pr-945/docs/dao/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/dao/mission/index.html b/pr-preview/pr-945/docs/dao/mission/index.html index 88149248273..d95848bffcf 100644 --- a/pr-preview/pr-945/docs/dao/mission/index.html +++ b/pr-preview/pr-945/docs/dao/mission/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/hackers/Hackathon-Winners/docs-hackers-hackathon-unfold-2023/index.html b/pr-preview/pr-945/docs/hackers/Hackathon-Winners/docs-hackers-hackathon-unfold-2023/index.html index 72a7e1e9151..8b24b60f025 100644 --- a/pr-preview/pr-945/docs/hackers/Hackathon-Winners/docs-hackers-hackathon-unfold-2023/index.html +++ b/pr-preview/pr-945/docs/hackers/Hackathon-Winners/docs-hackers-hackathon-unfold-2023/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-istanbul-2023/index.html b/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-istanbul-2023/index.html index 1c634984583..ae685dbc5d4 100644 --- a/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-istanbul-2023/index.html +++ b/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-istanbul-2023/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-online-2023/index.html b/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-online-2023/index.html index 5cab01ddeb5..ed44d2af5e0 100644 --- a/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-online-2023/index.html +++ b/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-online-2023/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-paris-2023/index.html b/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-paris-2023/index.html index 2dce038d1cd..3203d845475 100644 --- a/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-paris-2023/index.html +++ b/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-paris-2023/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-tokyo-2023/index.html b/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-tokyo-2023/index.html index 321bd064395..85ef3b1deef 100644 --- a/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-tokyo-2023/index.html +++ b/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-global-tokyo-2023/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-india-2023/index.html b/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-india-2023/index.html index 19a72379687..49584543f22 100644 --- a/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-india-2023/index.html +++ b/pr-preview/pr-945/docs/hackers/Hackathon-Winners/eth-india-2023/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/hackers/Hackathon-Winners/hackfs-2023/index.html b/pr-preview/pr-945/docs/hackers/Hackathon-Winners/hackfs-2023/index.html index b904e91fca0..28729faaf91 100644 --- a/pr-preview/pr-945/docs/hackers/Hackathon-Winners/hackfs-2023/index.html +++ b/pr-preview/pr-945/docs/hackers/Hackathon-Winners/hackfs-2023/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/hackers/cheat-sheet/index.html b/pr-preview/pr-945/docs/hackers/cheat-sheet/index.html index 81c7412b283..64bc36bed13 100644 --- a/pr-preview/pr-945/docs/hackers/cheat-sheet/index.html +++ b/pr-preview/pr-945/docs/hackers/cheat-sheet/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/hackers/explore-more/index.html b/pr-preview/pr-945/docs/hackers/explore-more/index.html index d40739176cd..2de0b540a12 100644 --- a/pr-preview/pr-945/docs/hackers/explore-more/index.html +++ b/pr-preview/pr-945/docs/hackers/explore-more/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/hackers/hackathon-winners/index.html b/pr-preview/pr-945/docs/hackers/hackathon-winners/index.html index f8e56408740..1638e47a905 100644 --- a/pr-preview/pr-945/docs/hackers/hackathon-winners/index.html +++ b/pr-preview/pr-945/docs/hackers/hackathon-winners/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/hackers/index.html b/pr-preview/pr-945/docs/hackers/index.html index 65ac4b0c4c3..9b382e4f504 100644 --- a/pr-preview/pr-945/docs/hackers/index.html +++ b/pr-preview/pr-945/docs/hackers/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/hackers/push-sdk/index.html b/pr-preview/pr-945/docs/hackers/push-sdk/index.html index 3bd06e4a14b..9af2c0934b2 100644 --- a/pr-preview/pr-945/docs/hackers/push-sdk/index.html +++ b/pr-preview/pr-945/docs/hackers/push-sdk/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/index.html b/pr-preview/pr-945/docs/index.html index 9e766944d5c..38c5cd052e8 100644 --- a/pr-preview/pr-945/docs/index.html +++ b/pr-preview/pr-945/docs/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/channel-delegates/index.html b/pr-preview/pr-945/docs/notifications/build/channel-delegates/index.html index 10ea9252856..acc8d58e6d9 100644 --- a/pr-preview/pr-945/docs/notifications/build/channel-delegates/index.html +++ b/pr-preview/pr-945/docs/notifications/build/channel-delegates/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/create-channel-settings/index.html b/pr-preview/pr-945/docs/notifications/build/create-channel-settings/index.html index 84ba150fa15..71b25a430e5 100644 --- a/pr-preview/pr-945/docs/notifications/build/create-channel-settings/index.html +++ b/pr-preview/pr-945/docs/notifications/build/create-channel-settings/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/create-channel/index.html b/pr-preview/pr-945/docs/notifications/build/create-channel/index.html index 68d2a60e666..fe71706e735 100644 --- a/pr-preview/pr-945/docs/notifications/build/create-channel/index.html +++ b/pr-preview/pr-945/docs/notifications/build/create-channel/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/fetch-notifications/index.html b/pr-preview/pr-945/docs/notifications/build/fetch-notifications/index.html index 0c9dd4720c2..72107a32277 100644 --- a/pr-preview/pr-945/docs/notifications/build/fetch-notifications/index.html +++ b/pr-preview/pr-945/docs/notifications/build/fetch-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/fetch-subscriptions/index.html b/pr-preview/pr-945/docs/notifications/build/fetch-subscriptions/index.html index b585aba0e22..6f5f2511182 100644 --- a/pr-preview/pr-945/docs/notifications/build/fetch-subscriptions/index.html +++ b/pr-preview/pr-945/docs/notifications/build/fetch-subscriptions/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/get-started/index.html b/pr-preview/pr-945/docs/notifications/build/get-started/index.html index c280e876ae2..3830548148c 100644 --- a/pr-preview/pr-945/docs/notifications/build/get-started/index.html +++ b/pr-preview/pr-945/docs/notifications/build/get-started/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/index.html b/pr-preview/pr-945/docs/notifications/build/index.html index 243d3811177..964195fd91f 100644 --- a/pr-preview/pr-945/docs/notifications/build/index.html +++ b/pr-preview/pr-945/docs/notifications/build/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/initialize-user/index.html b/pr-preview/pr-945/docs/notifications/build/initialize-user/index.html index a241e02ddce..68e56f72566 100644 --- a/pr-preview/pr-945/docs/notifications/build/initialize-user/index.html +++ b/pr-preview/pr-945/docs/notifications/build/initialize-user/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/integrating-notifications/index.html b/pr-preview/pr-945/docs/notifications/build/integrating-notifications/index.html index ebaef263505..8169f8b1079 100644 --- a/pr-preview/pr-945/docs/notifications/build/integrating-notifications/index.html +++ b/pr-preview/pr-945/docs/notifications/build/integrating-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/manage-channel/index.html b/pr-preview/pr-945/docs/notifications/build/manage-channel/index.html index 149c54db92a..e7c384a4d55 100644 --- a/pr-preview/pr-945/docs/notifications/build/manage-channel/index.html +++ b/pr-preview/pr-945/docs/notifications/build/manage-channel/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/manage-subscriptions/index.html b/pr-preview/pr-945/docs/notifications/build/manage-subscriptions/index.html index a34f625bd8a..39a87af0393 100644 --- a/pr-preview/pr-945/docs/notifications/build/manage-subscriptions/index.html +++ b/pr-preview/pr-945/docs/notifications/build/manage-subscriptions/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/manage-user/index.html b/pr-preview/pr-945/docs/notifications/build/manage-user/index.html index 7cff3679ba0..219f645918a 100644 --- a/pr-preview/pr-945/docs/notifications/build/manage-user/index.html +++ b/pr-preview/pr-945/docs/notifications/build/manage-user/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/send-notification-via-smart-contract/index.html b/pr-preview/pr-945/docs/notifications/build/send-notification-via-smart-contract/index.html index 6d2ea22636e..7d32f8f36aa 100644 --- a/pr-preview/pr-945/docs/notifications/build/send-notification-via-smart-contract/index.html +++ b/pr-preview/pr-945/docs/notifications/build/send-notification-via-smart-contract/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/send-notification/index.html b/pr-preview/pr-945/docs/notifications/build/send-notification/index.html index 342f2b0dd77..b038fc7f8ae 100644 --- a/pr-preview/pr-945/docs/notifications/build/send-notification/index.html +++ b/pr-preview/pr-945/docs/notifications/build/send-notification/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/stream-notifications/index.html b/pr-preview/pr-945/docs/notifications/build/stream-notifications/index.html index 5621f201df7..d1c843ef0de 100644 --- a/pr-preview/pr-945/docs/notifications/build/stream-notifications/index.html +++ b/pr-preview/pr-945/docs/notifications/build/stream-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/styling-notification-content/index.html b/pr-preview/pr-945/docs/notifications/build/styling-notification-content/index.html index e1e73b878e6..25a8b52deba 100644 --- a/pr-preview/pr-945/docs/notifications/build/styling-notification-content/index.html +++ b/pr-preview/pr-945/docs/notifications/build/styling-notification-content/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/testing-notifications/index.html b/pr-preview/pr-945/docs/notifications/build/testing-notifications/index.html index 546a5285807..c620fd5c77f 100644 --- a/pr-preview/pr-945/docs/notifications/build/testing-notifications/index.html +++ b/pr-preview/pr-945/docs/notifications/build/testing-notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/build/types-of-notification/index.html b/pr-preview/pr-945/docs/notifications/build/types-of-notification/index.html index 2bc11d8f1a5..0abe7483728 100644 --- a/pr-preview/pr-945/docs/notifications/build/types-of-notification/index.html +++ b/pr-preview/pr-945/docs/notifications/build/types-of-notification/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/concepts/index.html b/pr-preview/pr-945/docs/notifications/concepts/index.html index f284dc886b9..785bbcd71bb 100644 --- a/pr-preview/pr-945/docs/notifications/concepts/index.html +++ b/pr-preview/pr-945/docs/notifications/concepts/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/concepts/push-notification-architecture/index.html b/pr-preview/pr-945/docs/notifications/concepts/push-notification-architecture/index.html index 23dd968867b..cf82357b3ac 100644 --- a/pr-preview/pr-945/docs/notifications/concepts/push-notification-architecture/index.html +++ b/pr-preview/pr-945/docs/notifications/concepts/push-notification-architecture/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/concepts/push-notifications-for-web3/index.html b/pr-preview/pr-945/docs/notifications/concepts/push-notifications-for-web3/index.html index e226eac38f8..5dbfb243290 100644 --- a/pr-preview/pr-945/docs/notifications/concepts/push-notifications-for-web3/index.html +++ b/pr-preview/pr-945/docs/notifications/concepts/push-notifications-for-web3/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/important-concepts/index.html b/pr-preview/pr-945/docs/notifications/important-concepts/index.html index c7971b5958a..e1eea6cba65 100644 --- a/pr-preview/pr-945/docs/notifications/important-concepts/index.html +++ b/pr-preview/pr-945/docs/notifications/important-concepts/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/index.html b/pr-preview/pr-945/docs/notifications/index.html index fc247347a50..235f19a007d 100644 --- a/pr-preview/pr-945/docs/notifications/index.html +++ b/pr-preview/pr-945/docs/notifications/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/notification-standards/index.html b/pr-preview/pr-945/docs/notifications/notification-standards/index.html index 127563f6b5c..5d044e07e70 100644 --- a/pr-preview/pr-945/docs/notifications/notification-standards/index.html +++ b/pr-preview/pr-945/docs/notifications/notification-standards/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/notification-standards/notification-standards-advance/index.html b/pr-preview/pr-945/docs/notifications/notification-standards/notification-standards-advance/index.html index b08aaa854d1..d7bf0c8cfb3 100644 --- a/pr-preview/pr-945/docs/notifications/notification-standards/notification-standards-advance/index.html +++ b/pr-preview/pr-945/docs/notifications/notification-standards/notification-standards-advance/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/notification-standards/notification-standards-basic/index.html b/pr-preview/pr-945/docs/notifications/notification-standards/notification-standards-basic/index.html index 979d4873298..68da853dd25 100644 --- a/pr-preview/pr-945/docs/notifications/notification-standards/notification-standards-basic/index.html +++ b/pr-preview/pr-945/docs/notifications/notification-standards/notification-standards-basic/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/playground/index.html b/pr-preview/pr-945/docs/notifications/playground/index.html index 96434b60fa4..d5df75fadc4 100644 --- a/pr-preview/pr-945/docs/notifications/playground/index.html +++ b/pr-preview/pr-945/docs/notifications/playground/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/playground/push-react-component-playground-example/index.html b/pr-preview/pr-945/docs/notifications/playground/push-react-component-playground-example/index.html index db1d9227704..2bc8512a804 100644 --- a/pr-preview/pr-945/docs/notifications/playground/push-react-component-playground-example/index.html +++ b/pr-preview/pr-945/docs/notifications/playground/push-react-component-playground-example/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/playground/push-sdk-playground/index.html b/pr-preview/pr-945/docs/notifications/playground/push-sdk-playground/index.html index e06d4bbd1a3..7ccf28e874e 100644 --- a/pr-preview/pr-945/docs/notifications/playground/push-sdk-playground/index.html +++ b/pr-preview/pr-945/docs/notifications/playground/push-sdk-playground/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/push-smart-contracts/comm-smart-contract/index.html b/pr-preview/pr-945/docs/notifications/push-smart-contracts/comm-smart-contract/index.html index 9ca85fb2bff..b0ca986de44 100644 --- a/pr-preview/pr-945/docs/notifications/push-smart-contracts/comm-smart-contract/index.html +++ b/pr-preview/pr-945/docs/notifications/push-smart-contracts/comm-smart-contract/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/push-smart-contracts/contract-addresses/index.html b/pr-preview/pr-945/docs/notifications/push-smart-contracts/contract-addresses/index.html index 4a055a1b92d..42b784ec1bc 100644 --- a/pr-preview/pr-945/docs/notifications/push-smart-contracts/contract-addresses/index.html +++ b/pr-preview/pr-945/docs/notifications/push-smart-contracts/contract-addresses/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/push-smart-contracts/core-smart-contract/index.html b/pr-preview/pr-945/docs/notifications/push-smart-contracts/core-smart-contract/index.html index 29c9d3aa641..cdc72c19042 100644 --- a/pr-preview/pr-945/docs/notifications/push-smart-contracts/core-smart-contract/index.html +++ b/pr-preview/pr-945/docs/notifications/push-smart-contracts/core-smart-contract/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/push-smart-contracts/github-repositories/index.html b/pr-preview/pr-945/docs/notifications/push-smart-contracts/github-repositories/index.html index c2a17e9b38a..0e2f15406e7 100644 --- a/pr-preview/pr-945/docs/notifications/push-smart-contracts/github-repositories/index.html +++ b/pr-preview/pr-945/docs/notifications/push-smart-contracts/github-repositories/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/push-smart-contracts/index.html b/pr-preview/pr-945/docs/notifications/push-smart-contracts/index.html index 55a7bae3179..114423fd3bf 100644 --- a/pr-preview/pr-945/docs/notifications/push-smart-contracts/index.html +++ b/pr-preview/pr-945/docs/notifications/push-smart-contracts/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/push-smart-contracts/security-audits/index.html b/pr-preview/pr-945/docs/notifications/push-smart-contracts/security-audits/index.html index 4af063de8fc..94ea00c064c 100644 --- a/pr-preview/pr-945/docs/notifications/push-smart-contracts/security-audits/index.html +++ b/pr-preview/pr-945/docs/notifications/push-smart-contracts/security-audits/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/quickstart/index.html b/pr-preview/pr-945/docs/notifications/quickstart/index.html index 149dca8d971..e5f12bbf587 100644 --- a/pr-preview/pr-945/docs/notifications/quickstart/index.html +++ b/pr-preview/pr-945/docs/notifications/quickstart/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/aave-with-showrunners-example/index.html b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/aave-with-showrunners-example/index.html index 81fe2eae1d9..a3af4334e7a 100644 --- a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/aave-with-showrunners-example/index.html +++ b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/aave-with-showrunners-example/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/advance-protocol-based-trigger-oasis-protocol/index.html b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/advance-protocol-based-trigger-oasis-protocol/index.html index 1e64d2ddafd..cda03d0d8a2 100644 --- a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/advance-protocol-based-trigger-oasis-protocol/index.html +++ b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/advance-protocol-based-trigger-oasis-protocol/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/btc-tracker-with-showrunners-example/index.html b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/btc-tracker-with-showrunners-example/index.html index 9c9e5767fb8..8a4ab62b2a1 100644 --- a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/btc-tracker-with-showrunners-example/index.html +++ b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/btc-tracker-with-showrunners-example/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/defi-based-trigger/index.html b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/defi-based-trigger/index.html index b52aa48f6fe..c025c0e4075 100644 --- a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/defi-based-trigger/index.html +++ b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/defi-based-trigger/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/eth-tracker-with-showrunners-example/index.html b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/eth-tracker-with-showrunners-example/index.html index 662dab40827..ec7d20b4caa 100644 --- a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/eth-tracker-with-showrunners-example/index.html +++ b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/eth-tracker-with-showrunners-example/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/nft-based-trigger/index.html b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/nft-based-trigger/index.html index a93bc9a878a..4ebfeea7a78 100644 --- a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/nft-based-trigger/index.html +++ b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/nft-based-trigger/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/nft-transfer-trigger/index.html b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/nft-transfer-trigger/index.html index 0ea171bbe4a..20ea558c423 100644 --- a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/nft-transfer-trigger/index.html +++ b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/nft-transfer-trigger/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/notification-settings-with-showrunners-example/index.html b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/notification-settings-with-showrunners-example/index.html index a8cac62d265..c006671914d 100644 --- a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/notification-settings-with-showrunners-example/index.html +++ b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/notification-settings-with-showrunners-example/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/offchain-based-trigger/index.html b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/offchain-based-trigger/index.html index ca24bcc8131..4c1a51839be 100644 --- a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/offchain-based-trigger/index.html +++ b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/offchain-based-trigger/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/price-tracker-with-showrunners-example/index.html b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/price-tracker-with-showrunners-example/index.html index 05316453ad8..c43282e8e43 100644 --- a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/price-tracker-with-showrunners-example/index.html +++ b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/price-tracker-with-showrunners-example/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/service-based-trigger/index.html b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/service-based-trigger/index.html index c2cb64b1a71..1095ea7fbb6 100644 --- a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/service-based-trigger/index.html +++ b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/Examples/service-based-trigger/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/get-started/index.html b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/get-started/index.html index 21f72cfb44e..df2ccf962a4 100644 --- a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/get-started/index.html +++ b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/get-started/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/index.html b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/index.html index 4c554505d46..911062f367e 100644 --- a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/index.html +++ b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/scaffold-deepdive/index.html b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/scaffold-deepdive/index.html index 0cc99a50240..ec3fed3a770 100644 --- a/pr-preview/pr-945/docs/notifications/showrunners-scaffold/scaffold-deepdive/index.html +++ b/pr-preview/pr-945/docs/notifications/showrunners-scaffold/scaffold-deepdive/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/supported-wallet-standards/index.html b/pr-preview/pr-945/docs/notifications/supported-wallet-standards/index.html index f53dab84503..1539f95a584 100644 --- a/pr-preview/pr-945/docs/notifications/supported-wallet-standards/index.html +++ b/pr-preview/pr-945/docs/notifications/supported-wallet-standards/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/tutorials/advance-create-channel-and-notif-from-smart-contract/index.html b/pr-preview/pr-945/docs/notifications/tutorials/advance-create-channel-and-notif-from-smart-contract/index.html index 4b6e87bddba..f13a39388c7 100644 --- a/pr-preview/pr-945/docs/notifications/tutorials/advance-create-channel-and-notif-from-smart-contract/index.html +++ b/pr-preview/pr-945/docs/notifications/tutorials/advance-create-channel-and-notif-from-smart-contract/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/tutorials/create-your-channel-using-safe/index.html b/pr-preview/pr-945/docs/notifications/tutorials/create-your-channel-using-safe/index.html index 5abc077bbad..e41859d10c2 100644 --- a/pr-preview/pr-945/docs/notifications/tutorials/create-your-channel-using-safe/index.html +++ b/pr-preview/pr-945/docs/notifications/tutorials/create-your-channel-using-safe/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/tutorials/create-your-channel/index.html b/pr-preview/pr-945/docs/notifications/tutorials/create-your-channel/index.html index 2b81b77854c..029f5f84935 100644 --- a/pr-preview/pr-945/docs/notifications/tutorials/create-your-channel/index.html +++ b/pr-preview/pr-945/docs/notifications/tutorials/create-your-channel/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/tutorials/enabling-channel-on-other-chains/index.html b/pr-preview/pr-945/docs/notifications/tutorials/enabling-channel-on-other-chains/index.html index 44f718ab904..9e6c733f084 100644 --- a/pr-preview/pr-945/docs/notifications/tutorials/enabling-channel-on-other-chains/index.html +++ b/pr-preview/pr-945/docs/notifications/tutorials/enabling-channel-on-other-chains/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/tutorials/index.html b/pr-preview/pr-945/docs/notifications/tutorials/index.html index 639f37783d2..cc75785e379 100644 --- a/pr-preview/pr-945/docs/notifications/tutorials/index.html +++ b/pr-preview/pr-945/docs/notifications/tutorials/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/tutorials/integrate-notifications-via-aws-sns/index.html b/pr-preview/pr-945/docs/notifications/tutorials/integrate-notifications-via-aws-sns/index.html index b9250bbd6f8..7c51ceeb0c5 100644 --- a/pr-preview/pr-945/docs/notifications/tutorials/integrate-notifications-via-aws-sns/index.html +++ b/pr-preview/pr-945/docs/notifications/tutorials/integrate-notifications-via-aws-sns/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/tutorials/integrate-notifications-via-delivery-node/index.html b/pr-preview/pr-945/docs/notifications/tutorials/integrate-notifications-via-delivery-node/index.html index 434735c8461..089316ebc47 100644 --- a/pr-preview/pr-945/docs/notifications/tutorials/integrate-notifications-via-delivery-node/index.html +++ b/pr-preview/pr-945/docs/notifications/tutorials/integrate-notifications-via-delivery-node/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/tutorials/send-notification-via-subgraph/index.html b/pr-preview/pr-945/docs/notifications/tutorials/send-notification-via-subgraph/index.html index 7447541ed3c..14c81718a1f 100644 --- a/pr-preview/pr-945/docs/notifications/tutorials/send-notification-via-subgraph/index.html +++ b/pr-preview/pr-945/docs/notifications/tutorials/send-notification-via-subgraph/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/tutorials/token-transfer-notification-from-smart-contract/index.html b/pr-preview/pr-945/docs/notifications/tutorials/token-transfer-notification-from-smart-contract/index.html index 1fa46f413d3..a2d7a18fb8d 100644 --- a/pr-preview/pr-945/docs/notifications/tutorials/token-transfer-notification-from-smart-contract/index.html +++ b/pr-preview/pr-945/docs/notifications/tutorials/token-transfer-notification-from-smart-contract/index.html @@ -20,7 +20,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/ui-components/index.html b/pr-preview/pr-945/docs/notifications/ui-components/index.html index 68902575f8a..64bebd62213 100644 --- a/pr-preview/pr-945/docs/notifications/ui-components/index.html +++ b/pr-preview/pr-945/docs/notifications/ui-components/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/ui-components/subscription-manager-widget/index.html b/pr-preview/pr-945/docs/notifications/ui-components/subscription-manager-widget/index.html index 77d5314e267..5bfc4c1ac7b 100644 --- a/pr-preview/pr-945/docs/notifications/ui-components/subscription-manager-widget/index.html +++ b/pr-preview/pr-945/docs/notifications/ui-components/subscription-manager-widget/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/ui-components/widget-themization/index.html b/pr-preview/pr-945/docs/notifications/ui-components/widget-themization/index.html index c114487299a..5c50262a257 100644 --- a/pr-preview/pr-945/docs/notifications/ui-components/widget-themization/index.html +++ b/pr-preview/pr-945/docs/notifications/ui-components/widget-themization/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/notifications/ui-components/widgetuiprovider/index.html b/pr-preview/pr-945/docs/notifications/ui-components/widgetuiprovider/index.html index 0f361441bec..0c96008e61b 100644 --- a/pr-preview/pr-945/docs/notifications/ui-components/widgetuiprovider/index.html +++ b/pr-preview/pr-945/docs/notifications/ui-components/widgetuiprovider/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/rewards/index.html b/pr-preview/pr-945/docs/rewards/index.html index b06a9adc256..3ea97bde08d 100644 --- a/pr-preview/pr-945/docs/rewards/index.html +++ b/pr-preview/pr-945/docs/rewards/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/roadmap/index.html b/pr-preview/pr-945/docs/roadmap/index.html index ffdec7d93e9..291858427e8 100644 --- a/pr-preview/pr-945/docs/roadmap/index.html +++ b/pr-preview/pr-945/docs/roadmap/index.html @@ -19,7 +19,7 @@ - + @@ -367,7 +367,7 @@ .iBLYMD:hover{color:var(--ifm-color-primary-text);}/*!sc*/ data-styled.g111[id="Content__NavItem-sc-uc7jkx-5"]{content:"iBLYMD,"}/*!sc*/

Overview

-
Dec 15, 2024
+
Dec 16, 2024

Live roadmap is a living document that will be updated as we progress through our roadmap. It will be refreshed constantly with new features, milestones and other important information as we progress through our roadmap.

For feature request or support reach out to us support@push.org

diff --git a/pr-preview/pr-945/docs/roadmap/roadmap-recaps/$push/index.html b/pr-preview/pr-945/docs/roadmap/roadmap-recaps/$push/index.html index 8bc8d222e4c..f8fba41b484 100644 --- a/pr-preview/pr-945/docs/roadmap/roadmap-recaps/$push/index.html +++ b/pr-preview/pr-945/docs/roadmap/roadmap-recaps/$push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/roadmap/roadmap-recaps/index.html b/pr-preview/pr-945/docs/roadmap/roadmap-recaps/index.html index 264fa7c2057..3a718518f9d 100644 --- a/pr-preview/pr-945/docs/roadmap/roadmap-recaps/index.html +++ b/pr-preview/pr-945/docs/roadmap/roadmap-recaps/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/tokenomics/deepdive/$push/index.html b/pr-preview/pr-945/docs/tokenomics/deepdive/$push/index.html index db95c86cca0..3b9fb913cc3 100644 --- a/pr-preview/pr-945/docs/tokenomics/deepdive/$push/index.html +++ b/pr-preview/pr-945/docs/tokenomics/deepdive/$push/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/tokenomics/deepdive/index.html b/pr-preview/pr-945/docs/tokenomics/deepdive/index.html index 3dd7a6e0d78..24f2c986887 100644 --- a/pr-preview/pr-945/docs/tokenomics/deepdive/index.html +++ b/pr-preview/pr-945/docs/tokenomics/deepdive/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/tokenomics/index.html b/pr-preview/pr-945/docs/tokenomics/index.html index 59fbc873297..cf9378d57b6 100644 --- a/pr-preview/pr-945/docs/tokenomics/index.html +++ b/pr-preview/pr-945/docs/tokenomics/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/video/build/get-started/index.html b/pr-preview/pr-945/docs/video/build/get-started/index.html index 8356d769f6d..ebf3de47b8c 100644 --- a/pr-preview/pr-945/docs/video/build/get-started/index.html +++ b/pr-preview/pr-945/docs/video/build/get-started/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/video/build/index.html b/pr-preview/pr-945/docs/video/build/index.html index a67b7e269b6..2f3a8a728b0 100644 --- a/pr-preview/pr-945/docs/video/build/index.html +++ b/pr-preview/pr-945/docs/video/build/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/video/build/initialize-user/index.html b/pr-preview/pr-945/docs/video/build/initialize-user/index.html index 2437ceac9e0..89dd475009f 100644 --- a/pr-preview/pr-945/docs/video/build/initialize-user/index.html +++ b/pr-preview/pr-945/docs/video/build/initialize-user/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/video/build/initializing-video/index.html b/pr-preview/pr-945/docs/video/build/initializing-video/index.html index 91412fd7188..f76ffc66490 100644 --- a/pr-preview/pr-945/docs/video/build/initializing-video/index.html +++ b/pr-preview/pr-945/docs/video/build/initializing-video/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/video/build/manage-user/index.html b/pr-preview/pr-945/docs/video/build/manage-user/index.html index b8bc019ac0a..b5c7f992ec5 100644 --- a/pr-preview/pr-945/docs/video/build/manage-user/index.html +++ b/pr-preview/pr-945/docs/video/build/manage-user/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/video/build/manage-video-call/index.html b/pr-preview/pr-945/docs/video/build/manage-video-call/index.html index 075ebeba1ff..ae1e049067a 100644 --- a/pr-preview/pr-945/docs/video/build/manage-video-call/index.html +++ b/pr-preview/pr-945/docs/video/build/manage-video-call/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/video/build/request-video-call/index.html b/pr-preview/pr-945/docs/video/build/request-video-call/index.html index 9450da4ef0d..0e70c5d91ed 100644 --- a/pr-preview/pr-945/docs/video/build/request-video-call/index.html +++ b/pr-preview/pr-945/docs/video/build/request-video-call/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/video/build/setup-video-stream/index.html b/pr-preview/pr-945/docs/video/build/setup-video-stream/index.html index 095e26c9e8d..77640be9c55 100644 --- a/pr-preview/pr-945/docs/video/build/setup-video-stream/index.html +++ b/pr-preview/pr-945/docs/video/build/setup-video-stream/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/video/index.html b/pr-preview/pr-945/docs/video/index.html index e38ac103a5e..582802a1334 100644 --- a/pr-preview/pr-945/docs/video/index.html +++ b/pr-preview/pr-945/docs/video/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/video/playground/index.html b/pr-preview/pr-945/docs/video/playground/index.html index 1c5999a220f..f59d4a45d3a 100644 --- a/pr-preview/pr-945/docs/video/playground/index.html +++ b/pr-preview/pr-945/docs/video/playground/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/video/playground/push-react-component-playground-example/index.html b/pr-preview/pr-945/docs/video/playground/push-react-component-playground-example/index.html index 9aa659df507..80026bac5f4 100644 --- a/pr-preview/pr-945/docs/video/playground/push-react-component-playground-example/index.html +++ b/pr-preview/pr-945/docs/video/playground/push-react-component-playground-example/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/video/playground/push-sdk-playground/index.html b/pr-preview/pr-945/docs/video/playground/push-sdk-playground/index.html index dd2f7a7edb6..202b372c444 100644 --- a/pr-preview/pr-945/docs/video/playground/push-sdk-playground/index.html +++ b/pr-preview/pr-945/docs/video/playground/push-sdk-playground/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/video/quickstart/index.html b/pr-preview/pr-945/docs/video/quickstart/index.html index 4828e33b925..0f1d832b89a 100644 --- a/pr-preview/pr-945/docs/video/quickstart/index.html +++ b/pr-preview/pr-945/docs/video/quickstart/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/docs/video/supported-wallet-standards/index.html b/pr-preview/pr-945/docs/video/supported-wallet-standards/index.html index 05d1a809a5e..016963e8b90 100644 --- a/pr-preview/pr-945/docs/video/supported-wallet-standards/index.html +++ b/pr-preview/pr-945/docs/video/supported-wallet-standards/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/faq/index.html b/pr-preview/pr-945/faq/index.html index 4abd0d0e46a..0fbabe564c3 100644 --- a/pr-preview/pr-945/faq/index.html +++ b/pr-preview/pr-945/faq/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/frens/index.html b/pr-preview/pr-945/frens/index.html index 1facc018719..42579157fdf 100644 --- a/pr-preview/pr-945/frens/index.html +++ b/pr-preview/pr-945/frens/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/home/index.html b/pr-preview/pr-945/home/index.html index c1a2566a2de..b082228cdde 100644 --- a/pr-preview/pr-945/home/index.html +++ b/pr-preview/pr-945/home/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/index.html b/pr-preview/pr-945/index.html index e5cf72eec3c..1babbc714e9 100644 --- a/pr-preview/pr-945/index.html +++ b/pr-preview/pr-945/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/privacy/index.html b/pr-preview/pr-945/privacy/index.html index b7814c5dc3c..ed561fe24ca 100644 --- a/pr-preview/pr-945/privacy/index.html +++ b/pr-preview/pr-945/privacy/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/privacymobile/index.html b/pr-preview/pr-945/privacymobile/index.html index cd68c957017..f15830bed9c 100644 --- a/pr-preview/pr-945/privacymobile/index.html +++ b/pr-preview/pr-945/privacymobile/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/search/index.html b/pr-preview/pr-945/search/index.html index dcddc98aaa3..3e0bcdd5c53 100644 --- a/pr-preview/pr-945/search/index.html +++ b/pr-preview/pr-945/search/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/spaces/index.html b/pr-preview/pr-945/spaces/index.html index ea31cea57db..c933154ebd2 100644 --- a/pr-preview/pr-945/spaces/index.html +++ b/pr-preview/pr-945/spaces/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/template/index.html b/pr-preview/pr-945/template/index.html index 091eec186f4..03032623a0a 100644 --- a/pr-preview/pr-945/template/index.html +++ b/pr-preview/pr-945/template/index.html @@ -19,7 +19,7 @@ - + diff --git a/pr-preview/pr-945/tos/index.html b/pr-preview/pr-945/tos/index.html index 01dacdfb0ea..46fce2190d0 100644 --- a/pr-preview/pr-945/tos/index.html +++ b/pr-preview/pr-945/tos/index.html @@ -19,7 +19,7 @@ - +